
    ,h                       d dl mZ ddlmZmZ d dlmZ d dlZd dlZ G d de	      Z
e G d d	             Ze G d
 d             Z G d de	      Z G d de	      Ze G d d             Ze G d d             Ze G d d             Ze G d d             Ze G d d             Ze G d d             Ze G d d             Ze G d d             Ze G d  d!             Z G d" d#e      Ze G d$ d%             Ze G d& d'             Z G d( d)e      Z G d* d+e      Ze G d, d-             Ze G d. d/             Z  G d0 d1e	      Z!e G d2 d3             Z"	 	 dc	 	 	 	 	 	 	 ddd4Z#	 	 	 	 	 	 	 	 	 	 	 	 de	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dfd5Z$	 dg	 	 	 	 	 	 	 	 	 dhd6Z%did7Z&did8Z'did9Z(	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dj	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dkd:Z)dld;Z*dmd<Z+	 	 	 	 dn	 	 	 	 	 	 	 	 	 	 	 dod=Z,	 dg	 	 	 dpd>Z-	 dg	 	 	 	 	 dqd?Z.	 	 	 	 drd@Z/	 	 	 	 dsdAZ0didBZ1	 	 	 	 	 	 	 dt	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dudCZ2	 	 	 	 dvdDZ3	 	 	 	 dwdEZ4	 	 	 	 dxdFZ5didGZ6	 	 dc	 	 	 	 	 	 	 dydHZ7	 	 	 	 dzdIZ8	 	 	 	 d{dJZ9 edK      e G dL dM                    Z: edN      e G dO dP                    Z; edQ      e G dR dS                    Z< edT      e G dU dV                    Z= edW      e G dX dY                    Z> edZ      e G d[ d\                    Z? ed]      e G d^ d_                    Z@ ed`      e G da db                    ZAy)|    )annotations   )event_classT_JSON_DICT)	dataclassNc                  <     e Zd ZdZddZedd       Z fdZ xZS )ScriptIdz#
    Unique script identifier.
    c                    | S N selfs    q/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/selenium/webdriver/common/devtools/v136/runtime.pyto_jsonzScriptId.to_json           c                     | |      S r   r   clsjsons     r   	from_jsonzScriptId.from_json       4yr   c                >    dj                  t        | 	               S )NzScriptId({})formatsuper__repr__r   	__class__s    r   r   zScriptId.__repr__   s    $$UW%5%788r   returnstr)r   r"   r!   r	   	__name__
__module____qualname____doc__r   classmethodr   r   __classcell__r   s   @r   r	   r	      s+      9 9r   r	   c                  N    e Zd ZU dZded<   dZded<   dZded<   d	 Zed
        Z	y)SerializationOptionszd
    Represents options for serialization. Overrides ``generatePreview`` and ``returnByValue``.
    r"   serializationNtyping.Optional[int]	max_depthtyping.Optional[dict]additional_parametersc                    t               }| j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   |S )Nr-   maxDepthadditionalParameters)dictr-   r/   r1   r   r   s     r   r   zSerializationOptions.to_json+   sS    v $ 2 2_>>%#~~D%%1+/+E+ED'(r   c                     | t        |d         d|v rt        |d         nd d|v rt        |d               S d       S )Nr-   r3   r4   )r-   r/   r1   )r"   intr5   r   s     r   r   zSerializationOptions.from_json4   sY    d?34/9T/Ac$z*+tH^bfHf$t,B'C"D
 	
 mq
 	
r   )
r$   r%   r&   r'   __annotations__r/   r1   r   r(   r   r   r   r   r,   r,      sC      '+I#*
 4807 
 
r   r,   c                  \    e Zd ZU dZded<   dZded<   dZded<   dZd	ed
<   d Ze	d        Z
y)DeepSerializedValuez+
    Represents deep serialized value.
    r"   type_Ntyping.Optional[typing.Any]valuetyping.Optional[str]	object_idr.   weak_local_object_referencec                    t               }| j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   |S )Ntyper>   objectIdweakLocalObjectReference)r5   r<   r>   r@   rA   r6   s     r   r   zDeepSerializedValue.to_jsonM   sg    vzzV::! JJDM>>%#~~D++7/3/O/OD+,r   c           	          | t        |d         d|v r|d   nd d|v rt        |d         nd d|v rt        |d               S d       S )NrC   r>   rD   rE   )r<   r>   r@   rA   r"   r8   r   s     r   r   zDeepSerializedValue.from_jsonX   sg    d6l##*d?$w-/9T/Ac$z*+tQkosQsD1K,L(M	
 	
 z~	
 	
r   )r$   r%   r&   r'   r9   r>   r@   rA   r   r(   r   r   r   r   r;   r;   =   sK     J)-E&-&*I#*
 9=!5<	 
 
r   r;   c                  <     e Zd ZdZddZedd       Z fdZ xZS )RemoteObjectIdz#
    Unique object identifier.
    c                    | S r   r   r   s    r   r   zRemoteObjectId.to_jsonf   r   r   c                     | |      S r   r   r   s     r   r   zRemoteObjectId.from_jsoni   r   r   c                >    dj                  t        | 	               S )NzRemoteObjectId({})r   r   s    r   r   zRemoteObjectId.__repr__m   s    #**57+;+=>>r   r    )r   r"   r!   rI   r#   r*   s   @r   rI   rI   b   s+      ? ?r   rI   c                  <     e Zd ZdZddZedd       Z fdZ xZS )UnserializableValuez
    Primitive value which cannot be JSON-stringified. Includes values ``-0``, ``NaN``, ``Infinity``,
    ``-Infinity``, and bigint literals.
    c                    | S r   r   r   s    r   r   zUnserializableValue.to_jsonv   r   r   c                     | |      S r   r   r   s     r   r   zUnserializableValue.from_jsony   r   r   c                >    dj                  t        | 	               S )NzUnserializableValue({})r   r   s    r   r   zUnserializableValue.__repr__}   s    (//0@0BCCr   r    )r   r"   r!   rN   r#   r*   s   @r   rN   rN   q   s-      D Dr   rN   c                      e Zd ZU dZded<   dZded<   dZded<   dZded	<   dZd
ed<   dZ	ded<   dZ
ded<   dZded<   dZded<   dZded<   d Zed        Zy)RemoteObjectz?
    Mirror object referencing original JavaScript object.
    r"   r<   Nr?   subtype
class_namer=   r>   $typing.Optional[UnserializableValue]unserializable_valuedescriptionz$typing.Optional[DeepSerializedValue]deep_serialized_valuetyping.Optional[RemoteObjectId]r@   typing.Optional[ObjectPreview]previewztyping.Optional[CustomPreview]custom_previewc                   t               }| j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   | j
                  | j
                  j                         |d<   | j                  | j                  |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d	<   | j                  | j                  j                         |d
<   |S )NrC   rT   	classNamer>   unserializableValuerX   deepSerializedValuerD   r\   customPreview)r5   r<   rT   rU   r>   rW   r   rX   rY   r@   r\   r]   r6   s     r   r   zRemoteObject.to_json   s/   vzzV<<#"llDO??& $D::! JJDM$$0*.*C*C*K*K*MD&''"&"2"2D%%1*.*D*D*L*L*ND&'>>%#~~557D<<#"ll224DO*$($7$7$?$?$AD!r   c                    | t        |d         d|v rt        |d         nd d|v rt        |d         nd d|v r|d   nd d|v rt        j                  |d         nd d|v rt        |d         nd d|v rt        j                  |d         nd d|v rt        j                  |d         nd d	|v rt
        j                  |d	         nd d
|v rt        j                  |d
         
      S d 
      S )NrC   rT   r_   r>   r`   rX   ra   rD   r\   rb   )
r<   rT   rU   r>   rW   rX   rY   r@   r\   r]   )r"   rN   r   r;   rI   ObjectPreviewCustomPreviewr   s     r   r   zRemoteObject.from_json   s   d6l#,5,=CY(41<1Ds4,-$#*d?$w-_tx|_|!4!>!>tDY?Z![  CG4AT4ID/0t`uy}`}"5"?"?EZ@["\  DHDNRVDVn..tJ/?@\`@IT@QM++DO<W[M\`dMd=2243HI
 	
 ko
 	
r   )r$   r%   r&   r'   r9   rT   rU   r>   rW   rX   rY   r@   r\   r]   r   r(   r   r   r   r   rS   rS      s     J
 %)G!( (,J$+ *.E&- BF>E )-K%, CG?F 26I.5 /3G+259N29. 
 
r   rS   c                  <    e Zd ZU ded<   dZded<   d Zed        Zy)re   r"   headerNrZ   body_getter_idc                    t               }| j                  |d<   | j                  | j                  j                         |d<   |S )Nrg   bodyGetterId)r5   rg   rh   r   r6   s     r   r   zCustomPreview.to_json   s@    vX*#'#6#6#>#>#@D r   c                p     | t        |d         d|v rt        j                  |d               S d       S )Nrg   rj   )rg   rh   )r"   rI   r   r   s     r   r   zCustomPreview.from_json   sC    tH~&M[_cMc>33D4HI
 	
im
 	
r   )r$   r%   r&   r9   rh   r   r(   r   r   r   r   re   re      s/     K
 7;N3: 
 
r   re   c                  p    e Zd ZU dZded<   ded<   ded<   dZd	ed
<   dZd	ed<   dZded<   d Ze	d        Z
y)rd   z<
    Object containing abbreviated remote object value.
    r"   r<   booloverflowztyping.List[PropertyPreview]
propertiesNr?   rT   rX   z*typing.Optional[typing.List[EntryPreview]]entriesc                   t               }| j                  |d<   | j                  |d<   | j                  D cg c]  }|j	                          c}|d<   | j
                  | j
                  |d<   | j                  | j                  |d<   | j                  +| j                  D cg c]  }|j	                          c}|d<   |S c c}w c c}w )NrC   rn   ro   rT   rX   rp   )r5   r<   rn   ro   r   rT   rX   rp   r   r   is      r   r   zObjectPreview.to_json   s    vzzV==Z37??CaaiikC\<<#"llDO'"&"2"2D<<#48LLAqqyy{ADO D Bs   C$Cc                P    | t        |d         t        |d         |d   D cg c]  }t        j                  |       c}d|v rt        |d         nd d|v rt        |d         nd d|v r+|d   D cg c]  }t        j                  |       c}      S d       S c c}w c c}w )NrC   rn   ro   rT   rX   rp   )r<   rn   ro   rT   rX   rp   )r"   rm   PropertyPreviewr   EntryPreviewr   r   rs   s      r   r   zObjectPreview.from_json  s    d6l#$z*+>B<>PQ11!4Q,5,=CY(44AT4ID/0tLUY]L]YH1\++A.H
 	
 dh
 	
 R Is   B3B#)r$   r%   r&   r'   r9   rT   rX   rp   r   r(   r   r   r   r   rd   rd      s]     J N -, %)G!( )-K%, ;?G7> 
 
r   rd   c                  b    e Zd ZU ded<   ded<   dZded<   dZded<   dZded	<   d
 Zed        Z	y)ru   r"   namer<   Nr?   r>   r[   value_previewrT   c                   t               }| j                  |d<   | j                  |d<   | j                  | j                  |d<   | j                  | j                  j                         |d<   | j                  | j                  |d<   |S )Nry   rC   r>   valuePreviewrT   )r5   ry   r<   r>   rz   r   rT   r6   s     r   r   zPropertyPreview.to_json(  s{    vyyVzzV::! JJDM)#'#5#5#=#=#?D <<#"llDOr   c           
          | t        |d         t        |d         d|v rt        |d         nd d|v rt        j                  |d         nd d|v rt        |d               S d       S )Nry   rC   r>   r|   rT   )ry   r<   r>   rz   rT   )r"   rd   r   r   s     r   r   zPropertyPreview.from_json4  s}    T&\"d6l#(/4#d7m$TKY]aKa-11$~2FGgk,5,=CY(
 	

 DH
 	
r   )
r$   r%   r&   r9   r>   rz   rT   r   r(   r   r   r   r   ru   ru     sP     I J #'E& 59M18 %)G!(
 
 
r   ru   c                  <    e Zd ZU ded<   dZded<   d Zed        Zy)rv   rd   r>   Nr[   keyc                    t               }| j                  j                         |d<   | j                  | j                  j                         |d<   |S )Nr>   r   )r5   r>   r   r   r6   s     r   r   zEntryPreview.to_jsonG  sD    v

**,W88((**,DKr   c                     | t         j                  |d         d|v rt         j                  |d               S d       S )Nr>   r   )r>   r   )rd   r   r   s     r   r   zEntryPreview.from_jsonN  sF    ))$w-88=''U4
 	
KO
 	
r   )r$   r%   r&   r9   r   r   r(   r   r   r   r   rv   rv   ?  s0      +/C	'. 
 
r   rv   c                      e Zd ZU dZded<   ded<   ded<   dZded	<   dZd
ed<   dZded<   dZded<   dZ	d
ed<   dZ
d
ed<   dZded<   d Zed        Zy)PropertyDescriptorz%
    Object property descriptor.
    r"   ry   rm   configurable
enumerableNtyping.Optional[RemoteObject]r>   typing.Optional[bool]writablegetset_
was_thrownis_ownsymbolc                ^   t               }| j                  |d<   | j                  |d<   | j                  |d<   | j                  | j                  j                         |d<   | j                  | j                  |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  |d<   | j                  | j                  |d	<   | j                  | j                  j                         |d
<   |S )Nry   r   r   r>   r   r   set	wasThrownisOwnr   )r5   ry   r   r   r>   r   r   r   r   r   r   r   r6   s     r   r   zPropertyDescriptor.to_json}  s    vyyV#00^!__\::! JJ..0DM==$#}}D88((**,DK99 ))++-DK??& $D;;" KKDM;;"![[002DNr   c                    | t        |d         t        |d         t        |d         d|v rt        j                  |d         nd d|v rt        |d         nd d|v rt        j                  |d         nd d|v rt        j                  |d         nd d|v rt        |d         nd d	|v rt        |d	         nd d
|v rt        j                  |d
         
      S d 
      S )Nry   r   r   r>   r   r   r   r   r   r   )
ry   r   r   r>   r   r   r   r   r   r   )r"   rm   rS   r   r   s     r   r   zPropertyDescriptor.from_json  s    T&\"d>23D./;Bd?,((g7PT/9T/AT$z*+t7<}&&tE{3$8=''U442=2EtD-.4*1T/4W&t=E=M<))$x.9
 	
 TX
 	
r   )r$   r%   r&   r'   r9   r>   r   r   r   r   r   r   r   r(   r   r   r   r   r   r   V  s     I   ,0E(/ '+H#* *.C	&- +/D
'. )-J%, %)F!( -1F)0* 
 
r   r   c                  @    e Zd ZU dZded<   dZded<   d Zed        Zy)	InternalPropertyDescriptorzg
    Object internal property descriptor. This property isn't normally visible in JavaScript code.
    r"   ry   Nr   r>   c                    t               }| j                  |d<   | j                  | j                  j                         |d<   |S )Nry   r>   )r5   ry   r>   r   r6   s     r   r   z"InternalPropertyDescriptor.to_json  s;    vyyV::! JJ..0DMr   c                p     | t        |d         d|v rt        j                  |d               S d       S )Nry   r>   )ry   r>   r"   rS   r   r   s     r   r   z$InternalPropertyDescriptor.from_json  s@    T&\";Bd?,((g7
 	
PT
 	
r   )	r$   r%   r&   r'   r9   r>   r   r(   r   r   r   r   r   r     s4     I ,0E(/ 
 
r   r   c                  \    e Zd ZU dZded<   dZded<   dZded<   dZded<   d	 Ze	d
        Z
y)PrivatePropertyDescriptorz*
    Object private field descriptor.
    r"   ry   Nr   r>   r   r   c                .   t               }| j                  |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j
                  | j
                  j                         |d<   |S )Nry   r>   r   r   )r5   ry   r>   r   r   r   r6   s     r   r   z!PrivatePropertyDescriptor.to_json  s{    vyyV::! JJ..0DM88((**,DK99 ))++-DKr   c           	          | t        |d         d|v rt        j                  |d         nd d|v rt        j                  |d         nd d|v rt        j                  |d               S d       S )Nry   r>   r   r   )ry   r>   r   r   r   r   s     r   r   z#PrivatePropertyDescriptor.from_json  sy    T&\";Bd?,((g7PT7<}&&tE{3$8=''U4	
 	
 LP	
 	
r   )r$   r%   r&   r'   r9   r>   r   r   r   r(   r   r   r   r   r   r     sN     I ,0E(/ *.C	&- +/D
'.	 
 
r   r   c                  R    e Zd ZU dZdZded<   dZded<   dZded<   d	 Ze	d
        Z
y)CallArgumentz
    Represents function call argument. Either remote object id ``objectId``, primitive ``value``,
    unserializable primitive value or neither of (for undefined) them should be specified.
    Nr=   r>   rV   rW   rZ   r@   c                    t               }| j                  | j                  |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   |S )Nr>   r`   rD   )r5   r>   rW   r   r@   r6   s     r   r   zCallArgument.to_json  sl    v::! JJDM$$0*.*C*C*K*K*MD&'>>%#~~557Dr   c                     | d|v r|d   nd d|v rt         j                  |d         nd d|v rt        j                  |d               S d       S )Nr>   r`   rD   )r>   rW   r@   )rN   r   rI   r   s     r   r   zCallArgument.from_json  sn    #*d?$w-_tx|_|!4!>!>tDY?Z![  CGDNRVDVn..tJ/?@
 	
 ]a
 	
r   )r$   r%   r&   r'   r>   r9   rW   r@   r   r(   r   r   r   r   r   r     sJ    
 *.E&- BF>E 26I.5 
 
r   r   c                  <     e Zd ZdZddZedd       Z fdZ xZS )ExecutionContextIdz%
    Id of an execution context.
    c                    | S r   r   r   s    r   r   zExecutionContextId.to_json
  r   r   c                     | |      S r   r   r   s     r   r   zExecutionContextId.from_json  r   r   c                >    dj                  t        | 	               S )NzExecutionContextId({})r   r   s    r   r   zExecutionContextId.__repr__  s    '..uw/?/ABBr   )r!   r8   )r   r8   r!   r   r#   r*   s   @r   r   r     s-      C Cr   r   c                  ^    e Zd ZU dZded<   ded<   ded<   ded<   dZd	ed
<   d Zed        Zy)ExecutionContextDescriptionz+
    Description of an isolated world.
    r   id_r"   originry   	unique_idNr0   aux_datac                    t               }| j                  j                         |d<   | j                  |d<   | j                  |d<   | j
                  |d<   | j                  | j                  |d<   |S )Nidr   ry   uniqueIdauxData)r5   r   r   r   ry   r   r   r6   s     r   r   z#ExecutionContextDescription.to_json,  sc    vXX%%'T
XyyV>>Z==$"mmDOr   c           
          | t         j                  |d         t        |d         t        |d         t        |d         d|v rt        |d               S d       S )Nr   r   ry   r   r   )r   r   ry   r   r   )r   r   r"   r5   r   s     r   r   z%ExecutionContextDescription.from_json6  sj    ",,T$Z8tH~&T&\"$z*+.74.?T$y/*
 	

 FJ
 	
r   )	r$   r%   r&   r'   r9   r   r   r(   r   r   r   r   r   r     sJ    
 
 K I
 N '+H#* 
 
r   r   c                      e Zd ZU dZded<   ded<   ded<   ded<   dZd	ed
<   dZded<   dZded<   dZded<   dZ	ded<   dZ
ded<   d Zed        Zy)ExceptionDetailszu
    Detailed information about exception (or error) that was thrown during script compilation or
    execution.
    r8   exception_idr"   textline_numbercolumn_numberNztyping.Optional[ScriptId]	script_idr?   urltyping.Optional[StackTrace]stack_tracer   	exception#typing.Optional[ExecutionContextId]execution_context_idr0   exception_meta_datac                F   t               }| j                  |d<   | j                  |d<   | j                  |d<   | j                  |d<   | j
                  | j
                  j                         |d<   | j                  | j                  |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d	<   | j                  | j                  |d
<   |S )NexceptionIdr   
lineNumbercolumnNumberscriptIdr   
stackTracer   executionContextIdexceptionMetaData)r5   r   r   r   r   r   r   r   r   r   r   r   r6   s     r   r   zExceptionDetails.to_jsong  s   v"//]yyV!--\#11^>>%#~~557D88((DK'!%!1!1!9!9!;D>>% $ 6 6 8D$$0)-)B)B)J)J)LD%&##/(,(@(@D$%r   c                    | t        |d         t        |d         t        |d         t        |d         d|v rt        j                  |d         nd d|v rt        |d         nd d|v rt        j                  |d         nd d|v rt
        j                  |d         nd d	|v rt        j                  |d	         nd d
|v rt        |d
         
      S d 
      S )Nr   r   r   r   r   r   r   r   r   r   )
r   r   r   r   r   r   r   r   r   r   )r8   r"   r	   r   
StackTracerS   r   r5   r   s     r   r   zExceptionDetails.from_json{  s    T-01T&\"D./d>23>HD>Ph((j)9:VZ$)TMDK tDPTXDX
,,T,-?@^bCNRVCVl,,T+->?\`]quy]y!3!=!=dCW>X!Y  @DCVZ^C^T*=%> ?
 	
 ei
 	
r   )r$   r%   r&   r'   r9   r   r   r   r   r   r   r   r(   r   r   r   r   r   r   A  s    
  I   ,0I(/ !%C	$ 04K,3 04I,3 AE=D
 26.5( 
 
r   r   c                  <     e Zd ZdZddZedd       Z fdZ xZS )	Timestampz-
    Number of milliseconds since epoch.
    c                    | S r   r   r   s    r   r   zTimestamp.to_json  r   r   c                     | |      S r   r   r   s     r   r   zTimestamp.from_json  r   r   c                >    dj                  t        | 	               S )NzTimestamp({})r   r   s    r   r   zTimestamp.__repr__      %%eg&6&899r   r!   float)r   r   r!   r   r#   r*   s   @r   r   r     +      : :r   r   c                  <     e Zd ZdZddZedd       Z fdZ xZS )	TimeDeltaz!
    Number of milliseconds.
    c                    | S r   r   r   s    r   r   zTimeDelta.to_json  r   r   c                     | |      S r   r   r   s     r   r   zTimeDelta.from_json  r   r   c                >    dj                  t        | 	               S )NzTimeDelta({})r   r   s    r   r   zTimeDelta.__repr__  r   r   r   )r   r   r!   r   r#   r*   s   @r   r   r     r   r   r   c                  Z    e Zd ZU dZded<   ded<   ded<   ded<   ded	<   d
 Zed        Zy)	CallFramez8
    Stack entry for runtime errors and assertions.
    r"   function_namer	   r   r   r8   r   r   c                    t               }| j                  |d<   | j                  j                         |d<   | j                  |d<   | j
                  |d<   | j                  |d<   |S )NfunctionNamer   r   r   r   )r5   r   r   r   r   r   r   r6   s     r   r   zCallFrame.to_json  sb    v#11^>>113ZhhU!--\#11^r   c           
          | t        |d         t        j                  |d         t        |d         t        |d         t        |d               S )Nr   r   r   r   r   )r   r   r   r   r   )r"   r	   r   r8   r   s     r   r   zCallFrame.from_json  sU    d>23((j)9:DK D./d>23
 	
r   N)r$   r%   r&   r'   r9   r   r(   r   r   r   r   r   r     sG       
H   
 
r   r   c                  \    e Zd ZU dZded<   dZded<   dZded<   dZd	ed
<   d Ze	d        Z
y)r   z7
    Call frames for assertions or error messages.
    ztyping.List[CallFrame]call_framesNr?   rX   r   parentztyping.Optional[StackTraceId]	parent_idc                T   t               }| j                  D cg c]  }|j                          c}|d<   | j                  | j                  |d<   | j                  | j                  j                         |d<   | j
                  | j
                  j                         |d<   |S c c}w )N
callFramesrX   r   parentId)r5   r   r   rX   r   r   rr   s      r   r   zStackTrace.to_json  s    v373C3CDaaiikD\'"&"2"2D;;"![[002DN>>%#~~557D Es   B%c           	     
    | |d   D cg c]  }t         j                  |       c}d|v rt        |d         nd d|v rt        j                  |d         nd d|v rt        j                  |d               S d       S c c}w )Nr   rX   r   r   )r   rX   r   r   )r   r   r"   r   StackTraceIdrw   s      r   r   zStackTrace.from_json  s    9=l9KLA,,Q/L4AT4ID/0t;Ct;K:''X7QUBLPTBTl,,T*-=>	
 	
 [_	
 	
Ls   B )r$   r%   r&   r'   r9   rX   r   r   r   r(   r   r   r   r   r   r     sO     (' )-K%, +/F'. 04I,3	 
 
r   r   c                  <     e Zd ZdZddZedd       Z fdZ xZS )UniqueDebuggerIdz0
    Unique identifier of current debugger.
    c                    | S r   r   r   s    r   r   zUniqueDebuggerId.to_json  r   r   c                     | |      S r   r   r   s     r   r   zUniqueDebuggerId.from_json  r   r   c                >    dj                  t        | 	               S )NzUniqueDebuggerId({})r   r   s    r   r   zUniqueDebuggerId.__repr__  s    %,,UW-=-?@@r   r    )r   r"   r!   r   r#   r*   s   @r   r   r     s-      A Ar   r   c                  @    e Zd ZU dZded<   dZded<   d Zed        Zy)	r   z
    If ``debuggerId`` is set stack trace comes from another debugger and can be resolved there. This
    allows to track cross-debugger calls. See ``Runtime.StackTrace`` and ``Debugger.paused`` for usages.
    r"   r   Nz!typing.Optional[UniqueDebuggerId]debugger_idc                    t               }| j                  |d<   | j                  | j                  j                         |d<   |S )Nr   
debuggerId)r5   r   r   r   r6   s     r   r   zStackTraceId.to_json  s@    vXXT
'!%!1!1!9!9!;Dr   c                p     | t        |d         d|v rt        j                  |d               S d       S )Nr   r   )r   r   )r"   r   r   r   s     r   r   zStackTraceId.from_json  sC    DJJVZ^J^(2243EF
 	
dh
 	
r   )	r$   r%   r&   r'   r9   r   r   r(   r   r   r   r   r   r     s2     
H59K29 
 
r   r   c              #     K   t               }| j                         |d<   |||d<   |||d<   d|d}|}t        j                  |d         d|v rt        j                  |d         fS dfS w)	a=  
    Add handler to promise with given promise object id.

    :param promise_object_id: Identifier of the promise.
    :param return_by_value: *(Optional)* Whether the result is expected to be a JSON object that should be sent by value.
    :param generate_preview: *(Optional)* Whether preview should be generated for the result.
    :returns: A tuple with the following items:

        0. **result** - Promise result. Will contain rejected value if promise was rejected.
        1. **exceptionDetails** - *(Optional)* Exception details if stack strace is available.
    promiseObjectIdNreturnByValuegeneratePreviewzRuntime.awaitPromisemethodparamsresultexceptionDetailsr5   r   rS   r   r   )promise_object_idreturn_by_valuegenerate_previewr   cmd_dictr   s         r   await_promiser      s       &F 1 9 9 ;F""1#$4 !(H >DtH~.@RVZ@Z""4(:#;< `d s   A,A.c              #    K   t               }| |d<   ||j                         |d<   |!|D cg c]  }|j                          c}|d<   |||d<   |||d<   |||d<   |||d<   |||d	<   ||j                         |d
<   |	|	|d<   |
|
|d<   |||d<   ||j                         |d<   d|d}|}t        j                  |d         d|v rt        j                  |d         fS dfS c c}w w)a	  
    Calls function with given declaration on the given object. Object group of the result is
    inherited from the target object.

    :param function_declaration: Declaration of the function to call.
    :param object_id: *(Optional)* Identifier of the object to call function on. Either objectId or executionContextId should be specified.
    :param arguments: *(Optional)* Call arguments. All call arguments must belong to the same JavaScript world as the target object.
    :param silent: *(Optional)* In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides ```setPauseOnException```` state.
    :param return_by_value: *(Optional)* Whether the result is expected to be a JSON object which should be sent by value. Can be overriden by ````serializationOptions````.
    :param generate_preview: **(EXPERIMENTAL)** *(Optional)* Whether preview should be generated for the result.
    :param user_gesture: *(Optional)* Whether execution should be treated as initiated by user in the UI.
    :param await_promise: *(Optional)* Whether execution should ````await```` for resulting value and return once awaited promise is resolved.
    :param execution_context_id: *(Optional)* Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.
    :param object_group: *(Optional)* Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.
    :param throw_on_side_effect: **(EXPERIMENTAL)** *(Optional)* Whether to throw an exception if side effect cannot be ruled out during evaluation.
    :param unique_context_id: **(EXPERIMENTAL)** *(Optional)* An alternative way to specify the execution context to call function on. Compared to contextId that may be reused across processes, this is guaranteed to be system-unique, so it can be used to prevent accidental function call in context different than intended (e.g. as a result of navigation across process boundaries). This is mutually exclusive with ````executionContextId````.
    :param serialization_options: **(EXPERIMENTAL)** *(Optional)* Specifies the result serialization. If provided, overrides ````generatePreview```` and ````returnByValue```.
    :returns: A tuple with the following items:

        0. **result** - Call result.
        1. **exceptionDetails** - *(Optional)* Exception details.
    functionDeclarationNrD   	argumentssilentr   r   userGestureawaitPromiser   objectGroupthrowOnSideEffectuniqueContextIdserializationOptionszRuntime.callFunctionOnr   r   r   r   )function_declarationr@   r   r  r   r   user_gesturer   r   object_groupthrow_on_side_effectunique_context_idserialization_optionsr   rs   r   r   s                    r   call_function_onr  A  sm    J &F$8F !&..0z4=>qqyy{>{!x""1#$4 ! ,} !.~'';'C'C'E#$ ,}'&:"#$$5 !()>)F)F)H%&*H >DtH~.@RVZ@Z""4(:#;< `d 5 ?s   +C1C,B-C1c              #     K   t               }| |d<   ||d<   ||d<   ||j                         |d<   d|d}|}d|v rt        j                  |d         ndd	|v rt        j                  |d	         fS dfS w)
aX  
    Compiles expression.

    :param expression: Expression to compile.
    :param source_url: Source url to be set for the script.
    :param persist_script: Specifies whether the compiled script should be persisted.
    :param execution_context_id: *(Optional)* Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
    :returns: A tuple with the following items:

        0. **scriptId** - *(Optional)* Id of the script.
        1. **exceptionDetails** - *(Optional)* Exception details.
    
expression	sourceURLpersistScriptNr   zRuntime.compileScriptr   r   r   )r5   r   r	   r   r   )r  
source_urlpersist_scriptr   r   r   r   s          r   compile_scriptr    s     $ &F%F<$F;,F?'';'C'C'E#$)H >D0:d0B4
+,@RVZ@Z""4(:#;< `d s   A5A7c               #     K   ddi} | }yw)z<
    Disables reporting of execution contexts creation.
    r   zRuntime.disableNr   r   r   s     r   disabler    s     
 	#H >D   
c               #     K   ddi} | }yw)z>
    Discards collected exceptions and console API calls.
    r   zRuntime.discardConsoleEntriesNr   r  s     r   discard_console_entriesr    s     
 	1H >Dr  c               #     K   ddi} | }yw)z
    Enables reporting of execution contexts creation by means of ``executionContextCreated`` event.
    When the reporting gets enabled the event will be sent immediately for each existing execution
    context.
    r   zRuntime.enableNr   r  s     r   enabler    s      	"H >Dr  c              #    K   t               }| |d<   |||d<   |||d<   |||d<   ||j                         |d<   |||d<   |||d<   |||d	<   |||d
<   |	|	|d<   |
|
j                         |d<   |||d<   |||d<   |||d<   |||d<   ||j                         |d<   d|d}|}t        j                  |d         d|v rt        j                  |d         fS dfS w)a=  
    Evaluates expression on global object.

    :param expression: Expression to evaluate.
    :param object_group: *(Optional)* Symbolic group name that can be used to release multiple objects.
    :param include_command_line_api: *(Optional)* Determines whether Command Line API should be available during the evaluation.
    :param silent: *(Optional)* In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides ```setPauseOnException```` state.
    :param context_id: *(Optional)* Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page. This is mutually exclusive with ````uniqueContextId````, which offers an alternative way to identify the execution context that is more reliable in a multi-process environment.
    :param return_by_value: *(Optional)* Whether the result is expected to be a JSON object that should be sent by value.
    :param generate_preview: **(EXPERIMENTAL)** *(Optional)* Whether preview should be generated for the result.
    :param user_gesture: *(Optional)* Whether execution should be treated as initiated by user in the UI.
    :param await_promise: *(Optional)* Whether execution should ````await```` for resulting value and return once awaited promise is resolved.
    :param throw_on_side_effect: **(EXPERIMENTAL)** *(Optional)* Whether to throw an exception if side effect cannot be ruled out during evaluation. This implies ````disableBreaks```` below.
    :param timeout: **(EXPERIMENTAL)** *(Optional)* Terminate execution after timing out (number of milliseconds).
    :param disable_breaks: **(EXPERIMENTAL)** *(Optional)* Disable breakpoints during execution.
    :param repl_mode: **(EXPERIMENTAL)** *(Optional)* Setting this flag to true enables ````let```` re-declaration and top-level ````await````. Note that ````let```` variables can only be re-declared if they originate from ````replMode```` themselves.
    :param allow_unsafe_eval_blocked_by_csp: **(EXPERIMENTAL)** *(Optional)* The Content Security Policy (CSP) for the target might block 'unsafe-eval' which includes eval(), Function(), setTimeout() and setInterval() when called with non-callable arguments. This flag bypasses CSP for this evaluation and allows unsafe-eval. Defaults to true.
    :param unique_context_id: **(EXPERIMENTAL)** *(Optional)* An alternative way to specify the execution context to evaluate in. Compared to contextId that may be reused across processes, this is guaranteed to be system-unique, so it can be used to prevent accidental evaluation of the expression in context different than intended (e.g. as a result of navigation across process boundaries). This is mutually exclusive with ````contextId````.
    :param serialization_options: **(EXPERIMENTAL)** *(Optional)* Specifies the result serialization. If provided, overrides ````generatePreview```` and ````returnByValue```.
    :returns: A tuple with the following items:

        0. **result** - Evaluation result.
        1. **exceptionDetails** - *(Optional)* Exception details.
    r  Nr  includeCommandLineAPIr  	contextIdr   r   r  r  r  timeoutdisableBreaksreplModeallowUnsafeEvalBlockedByCSPr  r  zRuntime.evaluater   r   r   r   )r  r
  include_command_line_apir  
context_idr   r   r	  r   r  r!  disable_breaks	repl_mode allow_unsafe_eval_blocked_by_cspr  r  r   r   r   s                      r   evaluater*    s    T &F%F< ,}+*B&'!x(002{""1#$4 ! ,} !.~'&:"##OO-y!"0&z'30P,-$$5 !()>)F)F)H%&$H >DtH~.@RVZ@Z""4(:#;< `d s   C#C%c               #  6   K   ddi} | }t        |d         S w)zV
    Returns the isolate id.

    **EXPERIMENTAL**

    :returns: The isolate id.
    r   zRuntime.getIsolateIdr   )r"   r  s     r   get_isolate_idr,  #  s,      	(H >DtDz?s   c               #     K   ddi} | }t        |d         t        |d         t        |d         t        |d         fS w)a!  
    Returns the JavaScript heap usage.
    It is the total usage of the corresponding isolate not scoped to a particular Runtime.

    **EXPERIMENTAL**

    :returns: A tuple with the following items:

        0. **usedSize** - Used JavaScript heap size in bytes.
        1. **totalSize** - Allocated JavaScript heap size in bytes.
        2. **embedderHeapUsedSize** - Used size in bytes in the embedder's garbage-collected heap.
        3. **backingStorageSize** - Size in bytes of backing storage for array buffers and external strings.
    r   zRuntime.getHeapUsageusedSize	totalSizeembedderHeapUsedSizebackingStorageSize)r   r  s     r   get_heap_usager2  2  s^      	(H >Dd:d; d)*+d'()	 s   ?Ac              #    K   t               }| j                         |d<   |||d<   |||d<   |||d<   |||d<   d|d}|}|d	   D cg c]  }t        j                  |       c}d
|v r&|d
   D cg c]  }t        j                  |       c}ndd|v r&|d   D cg c]  }t
        j                  |       c}ndd|v rt        j                  |d         fS dfS c c}w c c}w c c}w w)a0  
    Returns properties of a given object. Object group of the result is inherited from the target
    object.

    :param object_id: Identifier of the object to return properties for.
    :param own_properties: *(Optional)* If true, returns properties belonging only to the element itself, not to its prototype chain.
    :param accessor_properties_only: **(EXPERIMENTAL)** *(Optional)* If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.
    :param generate_preview: **(EXPERIMENTAL)** *(Optional)* Whether preview should be generated for the results.
    :param non_indexed_properties_only: **(EXPERIMENTAL)** *(Optional)* If true, returns non-indexed properties only.
    :returns: A tuple with the following items:

        0. **result** - Object properties.
        1. **internalProperties** - *(Optional)* Internal object properties (only of the element itself).
        2. **privateProperties** - *(Optional)* Object private properties.
        3. **exceptionDetails** - *(Optional)* Exception details.
    rD   NownPropertiesaccessorPropertiesOnlyr   nonIndexedPropertiesOnlyzRuntime.getPropertiesr   r   internalPropertiesprivatePropertiesr   )r5   r   r   r   r   r   r   )	r@   own_propertiesaccessor_properties_onlyr   non_indexed_properties_onlyr   r   r   rs   s	            r   get_propertiesr<  L  s0    . &F"**,F:!"0++C'(#$4 !".-H)*)H >D26x.AQ		%	%a	(AYmquYu$?S:TUQ	#	-	-a	0U{WjnrWr>Q9RSA	"	,	,Q	/Sx|@RVZ@Z""4(:#;<	  ae	 AUSs*   A
C/C (C/5C%C/ C*<3C/c              #     K   t               }| | j                         |d<   d|d}|}|d   D cg c]  }t        |       c}S c c}w w)z
    Returns all let, const and class variables from global scope.

    :param execution_context_id: *(Optional)* Specifies in which execution context to lookup global scope variables.
    :returns: 
    r   zRuntime.globalLexicalScopeNamesr   names)r5   r   r"   )r   r   r   r   rs   s        r   global_lexical_scope_namesr?  z  s[      &F'';'C'C'E#$3H >D M*qCF***s   0AAAc              #     K   t               }| j                         |d<   |||d<   d|d}|}t        j                  |d         S w)z
    :param prototype_object_id: Identifier of the prototype to return objects for.
    :param object_group: *(Optional)* Symbolic group name that can be used to release the results.
    :returns: Array with objects.
    prototypeObjectIdr  zRuntime.queryObjectsr   objects)r5   r   rS   r   )prototype_object_idr
  r   r   r   s        r   query_objectsrD    s^      &F"5"="="?F ,}(H >D!!$y/22s   AAc              #  X   K   t               }| j                         |d<   d|d}|}yw)zk
    Releases remote object with given id.

    :param object_id: Identifier of the object to release.
    rD   zRuntime.releaseObjectr   Nr5   r   )r@   r   r   r   s       r   release_objectrG    s8      &F"**,F:)H >Ds   (*c              #  <   K   t               }| |d<   d|d}|}yw)zy
    Releases all remote objects that belong to a given group.

    :param object_group: Symbolic object group name.
    r  zRuntime.releaseObjectGroupr   Nr5   )r
  r   r   r   s       r   release_object_grouprJ    s/      &F(F=.H >D   c               #     K   ddi} | }yw)zS
    Tells inspected instance to run if it was waiting for debugger to attach.
    r   zRuntime.runIfWaitingForDebuggerNr   r  s     r   run_if_waiting_for_debuggerrM    s     
 	3H >Dr  c              #  B  K   t               }| j                         |d<   ||j                         |d<   |||d<   |||d<   |||d<   |||d<   |||d<   |||d	<   d
|d}	|	}
t        j                  |
d         d|
v rt        j                  |
d         fS dfS w)a  
    Runs script with given id in a given context.

    :param script_id: Id of the script to run.
    :param execution_context_id: *(Optional)* Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
    :param object_group: *(Optional)* Symbolic group name that can be used to release multiple objects.
    :param silent: *(Optional)* In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides ```setPauseOnException```` state.
    :param include_command_line_api: *(Optional)* Determines whether Command Line API should be available during the evaluation.
    :param return_by_value: *(Optional)* Whether the result is expected to be a JSON object which should be sent by value.
    :param generate_preview: *(Optional)* Whether preview should be generated for the result.
    :param await_promise: *(Optional)* Whether execution should ````await``` for resulting value and return once awaited promise is resolved.
    :returns: A tuple with the following items:

        0. **result** - Run result.
        1. **exceptionDetails** - *(Optional)* Exception details.
    r   Nr   r  r  r  r   r   r  zRuntime.runScriptr   r   r   r   )r   r   r
  r  r%  r   r   r   r   r   r   s              r   
run_scriptrO    s     4 &F"**,F:'';'C'C'E#$ ,}!x+*B&'""1#$4 ! !.~%H >DtH~.@RVZ@Z""4(:#;< `d s   BBc              #  <   K   t               }| |d<   d|d}|}yw)z
    Enables or disables async call stacks tracking.

    :param max_depth: Maximum depth of async call stacks. Setting to ```0``` will effectively disable collecting async call stacks (default).
    r3   zRuntime.setAsyncCallStackDepthr   NrI  )r/   r   r   r   s       r   set_async_call_stack_depthrQ    s/      &F"F:2H >DrK  c              #  <   K   t               }| |d<   d|d}|}yw)z1


    **EXPERIMENTAL**

    :param enabled:
    enabledz'Runtime.setCustomObjectFormatterEnabledr   NrI  )rS  r   r   r   s       r   #set_custom_object_formatter_enabledrT    s/      &FF9;H >DrK  c              #  <   K   t               }| |d<   d|d}|}yw)z.


    **EXPERIMENTAL**

    :param size:
    sizez$Runtime.setMaxCallStackSizeToCapturer   NrI  )rV  r   r   r   s       r   "set_max_call_stack_size_to_capturerW  (  s.      &FF6N8H >DrK  c               #     K   ddi} | }yw)z
    Terminate current or next JavaScript execution.
    Will cancel the termination when the outer-most script execution ends.

    **EXPERIMENTAL**
    r   zRuntime.terminateExecutionNr   r  s     r   terminate_executionrY  ;  s      	.H >Dr  c              #  t   K   t               }| |d<   ||j                         |d<   |||d<   d|d}|}yw)a+  
    If executionContextId is empty, adds binding with the given name on the
    global objects of all inspected contexts, including those created later,
    bindings survive reloads.
    Binding function takes exactly one argument, this argument should be string,
    in case of any other input, function throws an exception.
    Each binding function call produces Runtime.bindingCalled notification.

    :param name:
    :param execution_context_id: **(EXPERIMENTAL)** *(Optional)* If specified, the binding would only be exposed to the specified execution context. If omitted and ```executionContextName```` is not set, the binding is exposed to all execution contexts of the target. This parameter is mutually exclusive with ````executionContextName````. Deprecated in favor of ````executionContextName```` due to an unclear use case and bugs in implementation (crbug.com/1169639). ````executionContextId```` will be removed in the future.
    :param execution_context_name: *(Optional)* If specified, the binding is exposed to the executionContext with matching name, even for contexts created after the binding is added. See also ````ExecutionContext.name```` and ````worldName```` parameter to ````Page.addScriptToEvaluateOnNewDocument````. This parameter is mutually exclusive with ````executionContextId```.
    ry   Nr   executionContextNamezRuntime.addBindingr   rF  )ry   r   execution_context_namer   r   r   s         r   add_bindingr]  H  sY     " &FF6N'';'C'C'E#$))?%&&H >Ds   68c              #  <   K   t               }| |d<   d|d}|}yw)z
    This method does not remove binding function from global object but
    unsubscribes current runtime agent from Runtime.bindingCalled notifications.

    :param name:
    ry   zRuntime.removeBindingr   NrI  )ry   r   r   r   s       r   remove_bindingr_  f  s.      &FF6N)H >DrK  c              #     K   t               }| j                         |d<   d|d}|}d|v rt        j                  |d         S dS w)a  
    This method tries to lookup and populate exception details for a
    JavaScript Error object.
    Note that the stackTrace portion of the resulting exceptionDetails will
    only be populated if the Runtime domain was enabled at the time when the
    Error was thrown.

    **EXPERIMENTAL**

    :param error_object_id: The error object for which to resolve the exception details.
    :returns: 
    errorObjectIdzRuntime.getExceptionDetailsr   r   N)r5   r   r   r   )error_object_idr   r   r   s       r   get_exception_detailsrc  x  s^      &F-557F?/H >DCUY]C]%%d+=&>?gcggs   AAzRuntime.bindingCalledc                  B    e Zd ZU dZded<   ded<   ded<   ed	d       Zy)
BindingCalledzY
    **EXPERIMENTAL**

    Notification is issued every time when binding is called.
    r"   ry   payloadr   r   c                t     | t        |d         t        |d         t        j                  |d               S )Nry   rf  r   )ry   rf  r   )r"   r   r   r   s     r   r   zBindingCalled.from_json  s;    T&\"Y(!3!=!=dCW>X!Y
 	
r   N)r   r   r!   re  r$   r%   r&   r'   r9   r(   r   r   r   r   re  re    s+    
 IL,,
 
r   re  zRuntime.consoleAPICalledc                  `    e Zd ZU dZded<   ded<   ded<   ded	<   d
ed<   ded<   edd       Zy)ConsoleAPICalledz-
    Issued when console API was called.
    r"   r<   ztyping.List[RemoteObject]argsr   r   r   	timestampr   r   r?   contextc                F    | t        |d         |d   D cg c]  }t        j                  |       c}t        j                  |d         t        j                  |d         d|v rt
        j                  |d         nd d|v rt        |d               S d       S c c}w )NrC   rk  r   rl  r   rm  )r<   rk  r   rl  r   rm  )r"   rS   r   r   r   r   rw   s      r   r   zConsoleAPICalled.from_json  s    d6l#59&\B,((+B!3!=!=dCW>X!Y))${*;<DPTXDX
,,T,-?@^b,5,=CY(
 	
 DH
 	
Bs   B
N)r   r   r!   rj  rh  r   r   r   rj  rj    sB     J
##,, -, "!
 
r   rj  zRuntime.exceptionRevokedc                  8    e Zd ZU dZded<   ded<   edd       Zy)	ExceptionRevokedz6
    Issued when unhandled exception was revoked.
    r"   reasonr8   r   c                F     | t        |d         t        |d               S )Nrq  r   )rq  r   rG   r   s     r   r   zExceptionRevoked.from_json  s(    tH~&T-01
 	
r   N)r   r   r!   rp  rh  r   r   r   rp  rp    s&     K
 
r   rp  zRuntime.exceptionThrownc                  8    e Zd ZU dZded<   ded<   edd       Zy)	ExceptionThrownz9
    Issued when exception was thrown and unhandled.
    r   rl  r   exception_detailsc                n     | t         j                  |d         t        j                  |d               S )Nrl  r   )rl  ru  )r   r   r   r   s     r   r   zExceptionThrown.from_json  s6    ))${*;<.88>P9QR
 	
r   N)r   r   r!   rt  rh  r   r   r   rt  rt    s'     ''
 
r   rt  zRuntime.executionContextCreatedc                  .    e Zd ZU dZded<   edd       Zy)ExecutionContextCreatedz7
    Issued when new execution context is created.
    r   rm  c                @     | t         j                  |d               S )Nrm  )rm  )r   r   r   s     r   r   z!ExecutionContextCreated.from_json  s!    /99$y/J
 	
r   N)r   r   r!   rx  rh  r   r   r   rx  rx    s!     )(
 
r   rx  z!Runtime.executionContextDestroyedc                  8    e Zd ZU dZded<   ded<   edd       Zy)	ExecutionContextDestroyedz5
    Issued when execution context is destroyed.
    r   r   r"   execution_context_unique_idc                Z     | t         j                  |d         t        |d               S )Nr   executionContextUniqueId)r   r|  )r   r   r"   r   s     r   r   z#ExecutionContextDestroyed.from_json
  s1    !3!=!=dCW>X!Y(+D1K,L(M
 	
r   N)r   r   r!   r{  rh  r   r   r   r{  r{    s'     -,!$$
 
r   r{  z Runtime.executionContextsClearedc                  "    e Zd ZdZedd       Zy)ExecutionContextsClearedzC
    Issued when all executionContexts were cleared in browser
    c                     |        S r   r   r   s     r   r   z"ExecutionContextsCleared.from_json  s     
 	
r   N)r   r   r!   r  )r$   r%   r&   r'   r(   r   r   r   r   r  r    s    
 
 
r   r  zRuntime.inspectRequestedc                  B    e Zd ZU dZded<   ded<   ded<   ed
d       Zy	)InspectRequestedzs
    Issued when object should be inspected (for example, as a result of inspect() command line API
    call).
    rS   object_r5   hintsr   r   c                     | t         j                  |d         t        |d         d|v rt        j                  |d               S d       S )Nobjectr  r   )r  r  r   )rS   r   r5   r   r   s     r   r   zInspectRequested.from_json-  s[     **4>:tG}%]quy]y!3!=!=dCW>X!Y
 	
 @D
 	
r   N)r   r   r!   r  rh  r   r   r   r  r  !  s,     K==
 
r   r  )NN)r   rI   r   r   r   r   r!   ityping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[RemoteObject, typing.Optional[ExceptionDetails]]])NNNNNNNNNNNN)r  r"   r@   rZ   r   z*typing.Optional[typing.List[CallArgument]]r  r   r   r   r   r   r	  r   r   r   r   r   r
  r?   r  r   r  r?   r  %typing.Optional[SerializationOptions]r!   r  r   )
r  r"   r  r"   r  rm   r   r   r!   zvtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[typing.Optional[ScriptId], typing.Optional[ExceptionDetails]]])r!   0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])NNNNNNNNNNNNNNN)"r  r"   r
  r?   r%  r   r  r   r&  r   r   r   r   r   r	  r   r   r   r  r   r!  ztyping.Optional[TimeDelta]r'  r   r(  r   r)  r   r  r?   r  r  r!   r  )r!   z/typing.Generator[T_JSON_DICT, T_JSON_DICT, str])r!   zTtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[float, float, float, float]])NNNN)r@   rI   r9  r   r:  r   r   r   r;  r   r!   ztyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[typing.List[PropertyDescriptor], typing.Optional[typing.List[InternalPropertyDescriptor]], typing.Optional[typing.List[PrivatePropertyDescriptor]], typing.Optional[ExceptionDetails]]])r   r   r!   z<typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[str]])rC  rI   r
  r?   r!   z8typing.Generator[T_JSON_DICT, T_JSON_DICT, RemoteObject])r@   rI   r!   r  )r
  r"   r!   r  )NNNNNNN)r   r	   r   r   r
  r?   r  r   r%  r   r   r   r   r   r   r   r!   r  )r/   r8   r!   r  )rS  rm   r!   r  )rV  r8   r!   r  )ry   r"   r   r   r\  r?   r!   r  )ry   r"   r!   r  )rb  rI   r!   zMtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Optional[ExceptionDetails]])B
__future__r   utilr   r   dataclassesr   enumtypingr"   r	   r,   r;   rI   rN   rS   re   rd   ru   rv   r   r   r   r   r8   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r*  r,  r2  r<  r?  rD  rG  rJ  rM  rO  rQ  rT  rW  rY  r]  r_  rc  re  rj  rp  rt  rx  r{  r  r  r   r   r   <module>r     sd   # * !  9s 9 
 
 
@ !
 !
 !
H?S ?D# D  H
 H
 H
V 
 
 
2 ,
 ,
 ,
^ $
 $
 $
N 
 
 
, H
 H
 H
V 
 
 
2 $
 $
 $
N 
 
 
BC C (
 (
 (
V F
 F
 F
R: :: : $
 $
 $
N #
 #
 #
LAs A 
 
 
4 2626). 0 
q	F 6:@D(,1526.2/3DH-16:26GKG!G2G >G &	G
 /G 0G ,G -G BG +G 4G 0G  EG 
qG\ EI	      B	 
 
~ F	 .2:>(,:>1526.2/36:.204+/BF26GK!RR*R #8R &	R
 8R /R 0R ,R -R 4R ,R .R )R +@R 0R   E!R" 
q#Rj8 15:>26=A+!+-+ #8+ 0	+
 &;+ 
w+^ EI+A+	C+, .23+3*3 
@3*!	7"	7" EI-1(,:>1526/322A2 +2 &	2
 #82 /2 02 -2 
q2j	7"	7&	7&
 EI7;A !5 
8	<	7$h'h	Th2 $%

 
  &
( '(

 
  )
B '(

 
  )
" &'

 
  (
  ./

 
  0
 01

 
  2
" /0


 

  1

 '(

 
  )
r   