
    +g:                    $   S SK Jr  SSKJrJr  S SKJr  S SKrS SKrSSK	J
r
   " S S\5      r " S	 S
\5      r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r " S S\5      r    S$S jrS%S jrS%S jr    S&S jr    S'S jr   S(         S)S jjr    S*S jr   S(         S+S jjr    S,S jr\" S5      \ " S S 5      5       5       r\" S!5      \ " S" S#5      5       5       rg)-    )annotations   )event_classT_JSON_DICT)	dataclassN)domc                  J   ^  \ rS rSrSrSS jr\SS j5       rU 4S jrSr	U =r
$ )	LayerId   z
Unique Layer identifier.
c                    U $ N selfs    z/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/selenium/webdriver/common/devtools/v132/layer_tree.pyto_jsonLayerId.to_json           c                    U " U5      $ r   r   clsjsons     r   	from_jsonLayerId.from_json       4yr   c                >   > SR                  [        TU ]	  5       5      $ )NzLayerId({})formatsuper__repr__r   	__class__s    r   r!   LayerId.__repr__   s    ##EG$4$677r   r   returnstr)r   r'   r&   r
   __name__
__module____qualname____firstlineno____doc__r   classmethodr   r!   __static_attributes____classcell__r#   s   @r   r
   r
      s+      8 8r   r
   c                  J   ^  \ rS rSrSrSS jr\SS j5       rU 4S jrSr	U =r
$ )	
SnapshotId   z
Unique snapshot identifier.
c                    U $ r   r   r   s    r   r   SnapshotId.to_json"   r   r   c                    U " U5      $ r   r   r   s     r   r   SnapshotId.from_json%   r   r   c                >   > SR                  [        TU ]	  5       5      $ )NzSnapshotId({})r   r"   s    r   r!   SnapshotId.__repr__)   s    &&uw'7'9::r   r   r%   )r   r'   r&   r3   r(   r1   s   @r   r3   r3      s+      ; ;r   r3   c                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rS	r	g
)
ScrollRect-   z7
Rectangle where scrolling happens on the main thread.
dom.Rectrectr'   type_c                r    [        5       nU R                  R                  5       US'   U R                  US'   U$ )Nr?   type)dictr?   r   r@   r   r   s     r   r   ScrollRect.to_json8   s1    vyy((*VzzVr   c                h    U " [         R                  R                  US   5      [        US   5      S9$ )Nr?   rB   )r?   r@   )r   Rectr   r'   r   s     r   r   ScrollRect.from_json>   s1    ##DL1d6l#
 	
r   r   N
r)   r*   r+   r,   r-   __annotations__r   r.   r   r/   r   r   r   r<   r<   -   s.     N J 
 
r   r<   c                  `    \ rS rSr% SrS\S'   S\S'   SrS\S'   SrS\S	'   S
 r\	S 5       r
Srg)StickyPositionConstraintF   z
Sticky position constraints.
r>   sticky_box_rectcontaining_block_rectNtyping.Optional[LayerId]!nearest_layer_shifting_sticky_box'nearest_layer_shifting_containing_blockc                6   [        5       nU R                  R                  5       US'   U R                  R                  5       US'   U R                  b  U R                  R                  5       US'   U R
                  b  U R
                  R                  5       US'   U$ )NstickyBoxRectcontainingBlockRectnearestLayerShiftingStickyBox#nearestLayerShiftingContainingBlock)rC   rN   r   rO   rQ   rR   rD   s     r   r    StickyPositionConstraint.to_jsonW   s    v $ 4 4 < < >_&*&@&@&H&H&J"#11=484Z4Z4b4b4dD0177C:>:f:f:n:n:pD67r   c           	        U " [         R                  R                  US   5      [         R                  R                  US   5      SU;   a  [        R                  US   5      OS SU;   a  [        R                  US   5      S9$ S S9$ )NrT   rU   rV   rW   )rN   rO   rQ   rR   )r   rG   r   r
   r   s     r   r   "StickyPositionConstraint.from_jsona   s    HH..tO/DE"%(("4"4T:O5P"Q kJ  NR  kRg.?.?Ed@e.f  X\ w\  `d  wdG4E4EdKpFq4r	
 	
 jn	
 	
r   r   )r)   r*   r+   r,   r-   rJ   rQ   rR   r   r.   r   r/   r   r   r   rL   rL   F   sP      $# CG%'?F IM+-EL 
 
r   rL   c                  N    \ rS rSr% SrS\S'   S\S'   S\S'   S r\S	 5       rS
r	g)PictureTilek   zN
Serialized fragment of layer picture along with its offset within the layer.
floatxyr'   picturec                t    [        5       nU R                  US'   U R                  US'   U R                  US'   U$ )Nr_   r`   ra   )rC   r_   r`   ra   rD   s     r   r   PictureTile.to_jsony   s5    vFFS	FFS	,,Yr   c                Z    U " [        US   5      [        US   5      [        US   5      S9$ )Nr_   r`   ra   )r_   r`   ra   )r^   r'   r   s     r   r   PictureTile.from_json   s3    DIDIY(
 	
r   r   NrI   r   r   r   r\   r\   k   s5     H H L 
 
r   r\   c                      \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S\S	'   S
\S'   S\S'   SrS\S'   SrS\S'   SrS\S'   Sr	S\S'   Sr
S\S'   SrS\S'   SrS\S'   SrS\S'   SrS\S'   S r\S  5       rS!rg)"Layer   z(
Information about a compositing layer.
r
   layer_idr^   offset_xoffset_ywidthheightintpaint_countbooldraws_contentNrP   parent_layer_idz"typing.Optional[dom.BackendNodeId]backend_node_idz#typing.Optional[typing.List[float]]	transformtyping.Optional[float]anchor_xanchor_yanchor_zztyping.Optional[bool]	invisiblez(typing.Optional[typing.List[ScrollRect]]scroll_rectsz)typing.Optional[StickyPositionConstraint]sticky_position_constraintc                   [        5       nU R                  R                  5       US'   U R                  US'   U R                  US'   U R
                  US'   U R                  US'   U R                  US'   U R                  US'   U R                  b  U R                  R                  5       US'   U R                  b  U R                  R                  5       US	'   U R                  b  U R                   Vs/ s H  o"PM     snUS
'   U R                  b  U R                  US'   U R                  b  U R                  US'   U R                  b  U R                  US'   U R                  b  U R                  US'   U R                   b-  U R                    Vs/ s H  o"R                  5       PM     snUS'   U R"                  b  U R"                  R                  5       US'   U$ s  snf s  snf )NlayerIdoffsetXoffsetYrl   rm   
paintCountdrawsContentparentLayerIdbackendNodeIdrt   anchorXanchorYanchorZry   scrollRectsstickyPositionConstraint)rC   ri   r   rj   rk   rl   rm   ro   rq   rr   rs   rt   rv   rw   rx   ry   rz   r{   )r   r   is      r   r   Layer.to_json   s   v--//1Y--Y--Y

WX!--\#11^+$($8$8$@$@$BD!+$($8$8$@$@$BD!>>%,0NN ;NqN ;D==$"mmDO==$"mmDO==$"mmDO>>% $D(8<8I8I"J8I199;8I"JD**6/3/N/N/V/V/XD+, !< #Ks   1GGc                R   U " S0 S[         R                  US   5      _S[        US   5      _S[        US   5      _S[        US   5      _S[        US   5      _S	[        US
   5      _S[	        US   5      _SSU;   a  [         R                  US   5      OS _SSU;   a"  [
        R                  R                  US   5      OS _SSU;   a  US    Vs/ s H  n[        U5      PM     snOS _SSU;   a  [        US   5      OS _SSU;   a  [        US   5      OS _SSU;   a  [        US   5      OS _SSU;   a  [	        US   5      OS _SSU;   a)  US    Vs/ s H  n[        R                  U5      PM     snOS _SSU;   a  [        R                  US   5      _6$ S _6$ s  snf s  snf )Nri   r}   rj   r~   rk   r   rl   rm   ro   r   rq   r   rr   r   rs   r   rt   rv   r   rw   r   rx   r   ry   rz   r   r{   r   r   )	r
   r   r^   rn   rp   r   BackendNodeIdr<   rL   r   r   r   s      r   r   Layer.from_json   s    
&&tI7
4	?+
 4	?+
 W&	

 h(
 D./
 tN34
 IX[_H_G--d?.CDei
 SbeiRiC--77_8MNos
 @Kd?Rk):;):AuQx):;X\
 09D/@U4	?+d
 09D/@U4	?+d
 09D/@U4	?+d
 2=1Dd4,-$
 TadhSh4;NO;Na*..q1;NOnr
  pJ  NR  pR'?'I'I$OiJj'k!
 	
  X\!
 	
 <
 Ps   FF$r   )r)   r*   r+   r,   r-   rJ   rr   rs   rt   rv   rw   rx   ry   rz   r{   r   r.   r   r/   r   r   r   rg   rg      s      O O L M   15O-4 ;?O7> 6:I29 (,H$+ (,H$+ (,H$+ (,I$+ >BL:A MQ IP: 
 
r   rg   c                  J   ^  \ rS rSrSrSS jr\SS j5       rU 4S jrSr	U =r
$ )	PaintProfile   z'
Array of timings, one per paint step.
c                    U $ r   r   r   s    r   r   PaintProfile.to_json   r   r   c                    U " U5      $ r   r   r   s     r   r   PaintProfile.from_json   r   r   c                >   > SR                  [        TU ]	  5       5      $ )NzPaintProfile({})r   r"   s    r   r!   PaintProfile.__repr__   s    !(()9);<<r   r   )r&   typing.List[float])r   r   r&   r   r(   r1   s   @r   r   r      s+      = =r   r   c              #     #    [        5       nU R                  5       US'   SUS.nUv nUS    Vs/ s H  n[        U5      PM     snUS    Vs/ s H  n[        U5      PM     sn4$ s  snf s  snf 7f)a  
Provides the reasons why the given layer was composited.

:param layer_id: The id of the layer for which we want to get the reasons it was composited.
:returns: A tuple with the following items:

    0. **compositingReasons** - A list of strings specifying reasons for the given layer to become composited.
    1. **compositingReasonIds** - A list of strings specifying reason IDs for the given layer to become composited.
r}   zLayerTree.compositingReasonsmethodparamscompositingReasonscompositingReasonIdsrC   r   r'   )ri   r   cmd_dictr   r   s        r   compositing_reasonsr     s      &F ((*F90H >D2343AQ344565AQ56 46s   .A1A'	A1A,#A1c               #     #    SS0n U v ng7f)z'
Disables compositing tree inspection.
r   zLayerTree.disableNr   r   r   s     r   disabler     s     
 	%H >D   
c               #     #    SS0n U v ng7f)z&
Enables compositing tree inspection.
r   zLayerTree.enableNr   r   s     r   enabler   $  s     
 	$H >Dr   c              #     #    [        5       nU  Vs/ s H  o"R                  5       PM     snUS'   SUS.nUv n[        R                  US   5      $ s  snf 7f)z}
Returns the snapshot identifier.

:param tiles: An array of tiles composing the snapshot.
:returns: The id of the snapshot.
tileszLayerTree.loadSnapshotr   
snapshotIdrC   r   r3   r   )r   r   r   r   r   s        r   load_snapshotr   .  s[      &F,12Eqyy{E2F7O*H >D\ 233 3s   AA,Ac              #     #    [        5       nU R                  5       US'   SUS.nUv n[        R                  US   5      $ 7f)zw
Returns the layer snapshot identifier.

:param layer_id: The id of the layer.
:returns: The id of the layer snapshot.
r}   zLayerTree.makeSnapshotr   r   r   )ri   r   r   r   s       r   make_snapshotr   A  sM      &F ((*F9*H >D\ 233s   ?Ac              #     #    [        5       nU R                  5       US'   Ub  XS'   Ub  X$S'   Ub  UR                  5       US'   SUS.nUv nUS    Vs/ s H  n[        R                  U5      PM     sn$ s  snf 7f)a  
:param snapshot_id: The id of the layer snapshot.
:param min_repeat_count: *(Optional)* The maximum number of times to replay the snapshot (1, if not specified).
:param min_duration: *(Optional)* The minimum duration (in seconds) to replay the snapshot.
:param clip_rect: *(Optional)* The clip rectangle to apply when replaying the snapshot.
:returns: The array of paint profiles, one per run.
r   minRepeatCountminDurationclipRectzLayerTree.profileSnapshotr   timings)rC   r   r   r   )snapshot_idmin_repeat_countmin_duration	clip_rectr   r   r   r   s           r   profile_snapshotr   T  s      &F&..0F<##3  ,}&..0z-H >D/3I?!L""1%???s   AA;A63A;c              #  X   #    [        5       nU R                  5       US'   SUS.nUv ng7f)zf
Releases layer snapshot captured by the back-end.

:param snapshot_id: The id of the layer snapshot.
r   zLayerTree.releaseSnapshotr   NrC   r   )r   r   r   r   s       r   release_snapshotr   q  s7      &F&..0F<-H >Ds   (*c              #     #    [        5       nU R                  5       US'   Ub  XS'   Ub  X$S'   Ub  X4S'   SUS.nUv n[        US   5      $ 7f)a  
Replays the layer snapshot and returns the resulting bitmap.

:param snapshot_id: The id of the layer snapshot.
:param from_step: *(Optional)* The first step to replay from (replay from the very start if not specified).
:param to_step: *(Optional)* The last step to replay to (replay till the end if not specified).
:param scale: *(Optional)* The scale to apply while replaying (defaults to 1).
:returns: A data: URL for resulting image.
r   fromSteptoStepscalezLayerTree.replaySnapshotr   dataURLr   )r   	from_stepto_stepr   r   r   r   s          r   replay_snapshotr     so      &F&..0F<&z"xw,H >DtIs   A
Ac              #     #    [        5       nU R                  5       US'   SUS.nUv nUS    Vs/ s H  n[        U5      PM     sn$ s  snf 7f)z
Replays the layer snapshot and returns canvas log.

:param snapshot_id: The id of the layer snapshot.
:returns: The array of canvas function calls.
r   zLayerTree.snapshotCommandLogr   
commandLogr   )r   r   r   r   r   s        r   snapshot_command_logr     sZ      &F&..0F<0H >D!,/0/DG/000s   .AAAzLayerTree.layerPaintedc                  >    \ rS rSr% S\S'   S\S'   \S	S j5       rSrg)
LayerPaintedi  r
   ri   r>   clipc                |    U " [         R                  US   5      [        R                  R                  US   5      S9$ )Nr}   r   )ri   r   )r
   r   r   rG   r   s     r   r   LayerPainted.from_json  s7    &&tI7##DL1
 	
r   r   N)r   r   r&   r   r)   r*   r+   r,   rJ   r.   r   r/   r   r   r   r   r     s!     
N
 
r   r   zLayerTree.layerTreeDidChangec                  4    \ rS rSr% S\S'   \SS j5       rSrg)LayerTreeDidChangei  z#typing.Optional[typing.List[Layer]]layersc                z    U " SU;   a+  US    Vs/ s H  n[         R                  U5      PM     snS9$ S S9$ s  snf )Nr   )r   )rg   r   r   s      r   r   LayerTreeDidChange.from_json  sE    CKtCSX?1EOOA&?
 	
Y]
 	
?s   8r   N)r   r   r&   r   r   r   r   r   r   r     s     0/
 
r   r   )ri   r
   r&   z\typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[typing.List[str], typing.List[str]]])r&   0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])r   ztyping.List[PictureTile]r&   6typing.Generator[T_JSON_DICT, T_JSON_DICT, SnapshotId])ri   r
   r&   r   )NNN)
r   r3   r   typing.Optional[int]r   ru   r   ztyping.Optional[dom.Rect]r&   zEtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[PaintProfile]])r   r3   r&   r   )
r   r3   r   r   r   r   r   ru   r&   z/typing.Generator[T_JSON_DICT, T_JSON_DICT, str])r   r3   r&   z=typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[dict]])
__future__r   utilr   r   dataclassesr   enumtyping r   r'   r
   r3   r<   rL   r\   rg   listr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   <module>r      s   # * !   8c 8; ; 
 
 
0 !
 !
 !
H 
 
 
: e
 e
 e
P=4 =	c24'4	=4&44	=4* 26/3/3	@@.@ -@ -	@
 
M@:	7& +/(,(,	  '  &  &	 
 
7 >11	D1& %&

 
  '
 +,

 
  -
r   