+
    }i
                         ^ RI HtHtHtHtHt ^ RIHtHtH	t	H
t
 ^ RIHt ^ RIHt ^RIHtHt  ! R R]
4      t]RR	R
R/R R ll4       t]RR	/R R ll4       tRR	RR	R
RRR	/R R lltR	# )    )AnyDictOptionalUnionoverload)BrowserBrowserContext
PlaywrightPlaywrightContextManager)Literal)VirtualDisplay)launch_optionssync_attach_vdc                   f   a a ] tR t^t oRtV 3R ltV3R lV 3R lltV3R lV 3R lltRtVt	V ;t
# )Camoufoxz
Wrapper around playwright.sync_api.PlaywrightContextManager that automatically
launches a browser and closes it when the context manager is exited.
c                >   < \         SV `  4        Wn        R V n        R # N)super__init__r   browser)selfr   	__class__s   &,c/Users/ahmad/.openclaw/workspace/my-crawler/.venv/lib/python3.14/site-packages/camoufox/sync_api.pyr   Camoufox.__init__   s    ,AE    c                6   < V ^8  d   QhRS[ S[S[3,          /# )   return)r   r   r	   )format__classdict__s   "r   __annotate__Camoufox.__annotate__   s      5.!89 r   c                   < \         SV `  4        \        V P                  3/ V P                  B V n        V P
                  # r   )r   	__enter__
NewBrowser_playwrightr   r   )r   r   s   &r   r$   Camoufox.__enter__   s5    !$"2"2Jd6I6IJ||r   c                    < V ^8  d   QhRS[ /# )r   args)r   )r   r    s   "r   r!   r"       s        c  r   c                |   < V P                   '       d   V P                   P                  4        \        SV `  ! V!   R # r   )r   closer   __exit__)r   r)   r   s   &*r   r,   Camoufox.__exit__    s)    <<<LL $r   )r   r   )__name__
__module____qualname____firstlineno____doc__r   r$   r,   __static_attributes____classdictcell____classcell__)r   r    s   @@r   r   r      s)     
F
 
     r   r   from_optionsNpersistent_contextFc                    V ^8  d   QhR\         R\        \        \        \        3,          ,          R\
        R,          R\        /# )r   
playwrightr6   r7   Fr   )r
   r   r   strr   r   r   )r   s   "r   r!   r!   '   sC       4S>*  	 r   c                    R # r    r9   r6   r7   kwargss   &$$,r   r%   r%   &   s     r   c                    V ^8  d   QhR\         R\        \        \        \        3,          ,          R\
        R,          R\        /# )r   r9   r6   r7   Tr   )r
   r   r   r:   r   r   r	   )r   s   "r   r!   r!   1   sC       4S>*  	 r   c                    R # r   r<   r=   s   &$$,r   r%   r%   0   s     r   headlessdebugc                   V ^8  d   QhR\         R\        \        \        \        R,          3,          ,          R\        \
        \        \        3,          ,          R\        R\        \        ,          R\        \        \        3,          /# )r   r9   rA   virtualr6   r7   rB   r   )
r
   r   r   boolr   r   r:   r   r   r	   )r   s   "r   r!   r!   :   su     %4 %4%4 uT79#5567%4 4S>*	%4
 %4 D>%4 7N"#%4r   c               2   VR8X  d#   \        VR7      pVP                  4       VR&   RpMRpV'       g   \        RRVRV/VB pV'       d(   V P                  P                  ! R/ VB p\        Wv4      # V P                  P                  ! R/ VB p\        W4      # )	a`  
Launches a new browser instance for Camoufox given a set of launch options.

Parameters:
    from_options (Dict[str, Any]):
        A set of launch options generated by `launch_options()` to use
    persistent_context (bool):
        Whether to use a persistent context.
    **kwargs:
        All other keyword arugments passed to `launch_options()`.
rD   )rB   virtual_displayFNrA   rB   r<   )r   getr   firefoxlaunch_persistent_contextr   launch)	r9   rA   r6   r7   rB   r>   rG   contextr   s	   &$$$$,   r   r%   r%   :   s    ( 9(u5$3$7$7$9 !%OxOuOO $$>>NNg77   ''7,7G'33r   )typingr   r   r   r   r   playwright.sync_apir   r	   r
   r   typing_extensionsr   camoufox.virtdisplayr   utilsr   r   r   r%   r<   r   r   <module>rR      s    7 7  & / 1 '  , 
 .2 */	 
 
 .2 
%4 ;?%4 .2	%4
  %%4 !%4 %4r   