
    ,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ddl	m
Z
 ddl	mZ ddl	m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j&                        Ze G d d             Z G d dej&                        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e G d- d.             Z  G d/ d0ej&                        Z!dZd1Z"dZd2Z#	 	 	 	 d[	 	 	 	 	 	 	 	 	 	 	 d\d3Z$	 	 	 	 d]d4Z%	 	 	 	 d^d5Z&dZd6Z'	 	 d_	 	 	 	 	 	 	 d`d7Z(	 	 	 	 d[	 	 	 	 	 	 	 	 	 	 	 dad8Z)	 	 d_	 	 	 	 	 	 	 dbd9Z*	 	 d_	 	 	 	 	 	 	 	 	 	 	 	 	 dcd:Z+	 	 	 dd	 	 	 	 	 	 	 	 	 ded;Z,	 df	 	 	 	 	 dgd<Z-	 	 	 	 dhd=Z.	 df	 	 	 did>Z/	 	 	 	 dhd?Z0	 	 	 	 dhd@Z1	 	 	 	 djdAZ2	 	 	 	 dkdBZ3	 	 	 	 dldCZ4	 	 	 	 dmdDZ5	 	 	 	 dndEZ6	 	 	 	 dndFZ7	 	 	 	 dhdGZ8	 	 	 	 dhdHZ9	 	 	 	 dhdIZ:	 	 	 	 dhdJZ;	 df	 	 	 dodKZ<	 	 	 	 dpdLZ=	 df	 	 	 dqdMZ> edN      e G dO dP                    Z? edQ      e G dR dS                    Z@ edT      e G dU dV                    ZA edW      e G dX dY                    ZBy)r    )annotations   )event_classT_JSON_DICT)	dataclassN)dom)page)runtimec                  <    e Zd ZU dZded<   ded<   d Zed        Zy)SourceOrderConfigzR
    Configuration data for drawing the source order of an elements children.
    zdom.RGBAparent_outline_colorchild_outline_colorc                    t               }| j                  j                         |d<   | j                  j                         |d<   |S )NparentOutlineColorchildOutlineColor)dictr   to_jsonr   selfjsons     q/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/selenium/webdriver/common/devtools/v136/overlay.pyr   zSourceOrderConfig.to_json   sB    v%)%>%>%F%F%H!"$($<$<$D$D$F !    c                     | t         j                  j                  |d         t         j                  j                  |d               S )Nr   r   )r   r   r   RGBA	from_jsonclsr   s     r   r   zSourceOrderConfig.from_json"   s?    !$!3!3D9M4N!O # 2 248K3L M
 	
r   N__name__
__module____qualname____doc____annotations__r   classmethodr    r   r   r   r      s0     #" "! 
 
r   r   c                  @   e Zd ZU dZ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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)GridHighlightConfigzC
    Configuration data for the highlighting of Grid elements.
    Ntyping.Optional[bool]show_grid_extension_linesshow_positive_line_numbersshow_negative_line_numbersshow_area_namesshow_line_namesshow_track_sizestyping.Optional[dom.RGBA]grid_border_colorcell_border_colorrow_line_colorcolumn_line_colorgrid_border_dashcell_border_dashrow_line_dashcolumn_line_dashrow_gap_colorrow_hatch_colorcolumn_gap_colorcolumn_hatch_colorarea_border_colorgrid_background_colorc                j   t               }| j                  | j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   | j
                  | j
                  |d<   | j                  | j                  |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d	<   | j                  | j                  j                         |d
<   | j                  | j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   | j                   | j                   j                         |d<   | j"                  | j"                  j                         |d<   | j$                  | j$                  j                         |d<   | j&                  | j&                  j                         |d<   | j(                  | j(                  j                         |d<   | j*                  | j*                  j                         |d<   |S )NshowGridExtensionLinesshowPositiveLineNumbersshowNegativeLineNumbersshowAreaNamesshowLineNamesshowTrackSizesgridBorderColorcellBorderColorrowLineColorcolumnLineColorgridBorderDashcellBorderDashrowLineDashcolumnLineDashrowGapColorrowHatchColorcolumnGapColorcolumnHatchColorareaBorderColorgridBackgroundColor)r   r*   r+   r,   r-   r.   r/   r1   r   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r   s     r   r   zGridHighlightConfig.to_jsonk   s   v))5-1-K-KD)***6.2.M.MD*+**6.2.M.MD*++$($8$8D!+$($8$8D!  ,%)%:%:D!"!!-&*&<&<&D&D&FD"#!!-&*&<&<&D&D&FD"#*#'#6#6#>#>#@D !!-&*&<&<&D&D&FD"#  ,%)%:%:D!"  ,%)%:%:D!")"&"4"4D  ,%)%:%:D!")"&"4"4"<"<">D+$($8$8$@$@$BD!  ,%)%:%:%B%B%DD!""".'+'>'>'F'F'HD#$!!-&*&<&<&D&D&FD"#%%1*.*D*D*L*L*ND&'r   c           	         | d)i dd|v rt        |d         nd dd|v rt        |d         nd dd|v rt        |d         nd dd|v rt        |d         nd d	d
|v rt        |d
         nd dd|v rt        |d         nd dd|v r"t        j                  j                  |d         nd dd|v r"t        j                  j                  |d         nd dd|v r"t        j                  j                  |d         nd dd|v r"t        j                  j                  |d         nd dd|v rt        |d         nd dd|v rt        |d         nd dd|v rt        |d         nd dd|v rt        |d         nd dd|v r"t        j                  j                  |d         nd dd |v r"t        j                  j                  |d          nd d!d"|v r"t        j                  j                  |d"         nd d#d$|v r"t        j                  j                  |d$         nd d%d&|v r"t        j                  j                  |d&         nd d'd(|v r$t        j                  j                  |d(         S d S )*Nr*   r@   r+   rA   r,   rB   r-   rC   r.   rD   r/   rE   r1   rF   r2   rG   r3   rH   r4   rI   r5   rJ   r6   rK   r7   rL   r8   rM   r9   rN   r:   rO   r;   rP   r<   rQ   r=   rR   r>   rS   r&   )boolr   r   r   r   s     r   r   zGridHighlightConfig.from_json   s$    
NfjnNnd40H+I&Jtx
PimqPqtD1J,K'Lw{
 QjmqPqtD1J,K'Lw{
 <Kd;RDo!67X\	

 <Kd;RDo!67X\
 >NQU=UT$'7"89[_
 N_bfMfchh006G1HIlp
 N_bfMfchh006G1HIlp
 HVY]G]388--d>.BCcg
 N_bfMfchh006G1HIlp
 >NQU=UT$'7"89[_
 >NQU=UT$'7"89[_
 8E7L$tM23RV
 >NQU=UT$'7"89[_
 FSVZEZ#((,,T--@A`d
  JY\`I`CHH..tO/DEfj!
" L\_cKcSXX//5E0FGim#
$ PbeiOisxx11$7I2JKos%
& N_bfMfchh006G1HIlp'
( VknrUr#(("4"4T:O5P"Q)
 	
( y})
 	
r   )r    r!   r"   r#   r*   r$   r+   r,   r-   r.   r/   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r   r%   r   r&   r   r   r(   r(   *   s3    8<4; 9= 5< 9= 5< .2O*1 .2O*1 /3+2 4807 4807 15N-4 4807 /3+2 /3+2 ,0M(/ /3+2 04M,3 26O.5 37/6 5918 4807 8<4;*X 
 
r   r(   c                      e Zd ZU dZ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)FlexContainerHighlightConfigzM
    Configuration data for the highlighting of Flex container elements.
    Ntyping.Optional[LineStyle]container_borderline_separatoritem_separatortyping.Optional[BoxStyle]main_distributed_spacecross_distributed_spacerow_gap_spacecolumn_gap_spacecross_alignmentc                   t               }| j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j
                  | j
                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   |S )	NcontainerBorderlineSeparatoritemSeparatormainDistributedSpacecrossDistributedSpacerowGapSpacecolumnGapSpacecrossAlignment)
r   rY   r   rZ   r[   r]   r^   r_   r`   ra   r   s     r   r   z$FlexContainerHighlightConfig.to_json   s;   v  ,&*&;&;&C&C&ED"#*$($7$7$?$?$AD!*$($7$7$?$?$AD!&&2+/+F+F+N+N+PD'(''3,0,H,H,P,P,RD())"&"4"4"<"<">D  ,%)%:%:%B%B%DD!"+%)%9%9%A%A%CD!"r   c                    | 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         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   rd   re   rf   rg   rh   ri   rj   )rY   rZ   r[   r]   r^   r_   r`   ra   )	LineStyler   BoxStyler   s     r   r   z&FlexContainerHighlightConfig.from_json   s   M^bfMfY006G1HIlpIX\`I`9..tO/DEfjIX\`I`9..tO/DEfjWmquWu8#5#5d;Q6R#S{YptxYxH$6$6t<S7T$U  CERVZEZ(,,T--@A`dK[_cKcX//5E0FGimK[_cKcI//5E0FG	
 		
 jn	
 		
r   )r    r!   r"   r#   rY   r$   rZ   r[   r]   r^   r_   r`   ra   r   r%   r   r&   r   r   rW   rW      s     4807 26N.5 26N.5 9=5< :>6= 04M,3 37/6 37O/6( 

 

r   rW   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)
FlexItemHighlightConfigzH
    Configuration data for the highlighting of Flex item elements.
    Nr\   base_size_boxrX   base_size_borderflexibility_arrowc                   t               }| j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   |S )NbaseSizeBoxbaseSizeBorderflexibilityArrow)r   rp   r   rq   rr   r   s     r   r   zFlexItemHighlightConfig.to_json   s    v)"&"4"4"<"<">D  ,%)%:%:%B%B%DD!"!!-'+'='='E'E'GD#$r   c                     | 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 )Nrt   ru   rv   )rp   rq   rr   )rm   r   rl   r   s     r   r   z!FlexItemHighlightConfig.from_json  sy    ERVZEZ(,,T--@A`dL\`dLdY006F1GHjnOaeiOii11$7I2JK
 	
 pt
 	
r   )r    r!   r"   r#   rp   r$   rq   rr   r   r%   r   r&   r   r   ro   ro      sI     04M,3 4807 5918 
 
r   ro   c                  D    e Zd ZU dZdZded<   dZded<   d Zed        Z	y)	rl   z/
    Style information for drawing a line.
    Nr0   colortyping.Optional[str]patternc                    t               }| j                  | j                  j                         |d<   | j                  | j                  |d<   |S )Nry   r{   )r   ry   r   r{   r   s     r   r   zLineStyle.to_json  sE    v::! JJ..0DM<<#"llDOr   c                     | d|v r"t         j                  j                  |d         nd d|v rt        |d               S d       S )Nry   r{   )ry   r{   )r   r   r   strr   s     r   r   zLineStyle.from_json$  sM    7>$#(($$T']3D,5,=CY(
 	
CG
 	
r   )
r    r!   r"   r#   ry   r$   r{   r   r%   r   r&   r   r   rl   rl     s:     (,E$+ %)G!( 
 
r   rl   c                  D    e Zd ZU dZdZded<   dZded<   d Zed        Z	y)rm   z.
    Style information for drawing a box.
    Nr0   
fill_colorhatch_colorc                    t               }| j                  | j                  j                         |d<   | j                  | j                  j                         |d<   |S )N	fillColor
hatchColor)r   r   r   r   r   s     r   r   zBoxStyle.to_json7  sT    v??& $ 7 7 9D'!%!1!1!9!9!;Dr   c                     | d|v r"t         j                  j                  |d         nd d|v r't         j                  j                  |d               S d       S )Nr   r   )r   r   r   r   s     r   r   zBoxStyle.from_json?  s\    @Kt@Ssxx))${*;<Y]BNRVBV**4+=>
 	
\`
 	
r   )
r    r!   r"   r#   r   r$   r   r   r%   r   r&   r   r   rm   rm   ,  s:     -1J)0 .2K*1 
 
r   rm   c                  .    e Zd ZdZdZdZd Zed        Zy)ContrastAlgorithmaaaaaapcac                    | j                   S Nvaluer   s    r   r   zContrastAlgorithm.to_jsonL      zzr   c                     | |      S r   r&   r   s     r   r   zContrastAlgorithm.from_jsonO      4yr   N)	r    r!   r"   AAAAAAPCAr   r%   r   r&   r   r   r   r   G  s*    	B
CD  r   r   c                  2   e Zd ZU dZ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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) HighlightConfigzC
    Configuration data for the highlighting of page elements.
    Nr)   	show_infoshow_stylesshow_rulersshow_accessibility_infoshow_extension_linesr0   content_colorpadding_colorborder_colormargin_colorevent_target_colorshape_colorshape_margin_colorcss_grid_colortyping.Optional[ColorFormat]color_formatz$typing.Optional[GridHighlightConfig]grid_highlight_configz-typing.Optional[FlexContainerHighlightConfig]flex_container_highlight_configz(typing.Optional[FlexItemHighlightConfig]flex_item_highlight_configz"typing.Optional[ContrastAlgorithm]contrast_algorithmz7typing.Optional[ContainerQueryContainerHighlightConfig]*container_query_container_highlight_configc                   t               }| j                  | j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   | j
                  | j
                  |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d	<   | j                  | j                  j                         |d
<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j                   | j                   j                         |d<   | j"                  | j"                  j                         |d<   | j$                  | j$                  j                         |d<   | j&                  | j&                  j                         |d<   | j(                  | j(                  j                         |d<   |S )NshowInfo
showStyles
showRulersshowAccessibilityInfoshowExtensionLinescontentColorpaddingColorborderColormarginColoreventTargetColor
shapeColorshapeMarginColorcssGridColorcolorFormatgridHighlightConfigflexContainerHighlightConfigflexItemHighlightConfigcontrastAlgorithm&containerQueryContainerHighlightConfig)r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   s     r   r   zHighlightConfig.to_json  s   v>>%#~~D'!%!1!1D'!%!1!1D''3,0,H,HD()$$0)-)B)BD%&)#'#5#5#=#=#?D )#'#5#5#=#=#?D ("&"3"3";";"=D("&"3"3";";"=D"".'+'>'>'F'F'HD#$'!%!1!1!9!9!;D"".'+'>'>'F'F'HD#$*#'#6#6#>#>#@D ("&"3"3";";"=D%%1*.*D*D*L*L*ND&'//;373W3W3_3_3aD/0**6.2.M.M.U.U.WD*+"".(,(?(?(G(G(ID$%::F=A=l=l=t=t=vD9:r   c           	         | d'i dd|v rt        |d         nd dd|v rt        |d         nd dd|v rt        |d         nd dd|v rt        |d         nd d	d
|v rt        |d
         nd dd|v r"t        j                  j                  |d         nd dd|v r"t        j                  j                  |d         nd dd|v r"t        j                  j                  |d         nd dd|v r"t        j                  j                  |d         nd dd|v r"t        j                  j                  |d         nd dd|v r"t        j                  j                  |d         nd dd|v r"t        j                  j                  |d         nd dd|v r"t        j                  j                  |d         nd dd|v rt        j                  |d         nd dd|v rt
        j                  |d         nd dd |v rt        j                  |d          nd d!d"|v rt        j                  |d"         nd d#d$|v rt        j                  |d$         nd d%d&|v rt        j                  |d&         S d S )(Nr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r&   )
rU   r   r   r   ColorFormatr(   rW   ro   r   &ContainerQueryContainerHighlightConfigr   s     r   r   zHighlightConfig.from_json  sF    
0:d0Bd4
+,
4@D4HT,/0d
 5AD4HT,/0d
 LcfjKjD.E)F$Gpt	

 FZ]aEad+?&@!Agk
 GUX\F\#((,,T.-ABbf
 GUX\F\#((,,T.-ABbf
 ERUYDY++D,?@_c
 ERUYDY++D,?@_c
 PbeiOisxx11$7I2JKos
 CORVBV**4+=>\`
 PbeiOisxx11$7I2JKos
 HVY]G]388--d>.BCcg
 HUX\G\..tM/BCbf
 avy}`}"5"?"?EZ@["\  DH
  }[  _c  }c,H,R,RSWXvSw,x  im!
" nG  KO  nO'>'H'HNgIh'i  UY#
$ ZmptYt0::4@S;TUz~%
& \D  HL  \L7]7g7ghl  nV  iW  8X'
 	
& RV'
 	
r   )r    r!   r"   r#   r   r$   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r%   r   r&   r   r   r   r   T  s*    (,I$+ *.K&- *.K&- 6:29 37/6 04M,3 04M,3 /3L+2 /3L+2 5918 .2K*1 5918 15N-4 26L.5 CG?F VZ#%RY LP HO >B:A ko.0gn(T 
 
r   r   c                  2    e Zd ZdZdZdZdZd Zed        Z	y)r   rgbhslhwbhexc                    | j                   S r   r   r   s    r   r   zColorFormat.to_json  r   r   c                     | |      S r   r&   r   s     r   r   zColorFormat.from_json  r   r   N)
r    r!   r"   RGBHSLHWBHEX_r   r%   r   r&   r   r   r   r     s/    
C
C
CD  r   r   c                  <    e Zd ZU dZded<   ded<   d Zed        Zy)	GridNodeHighlightConfigz6
    Configurations for Persistent Grid Highlight
    r(   r   
dom.NodeIdnode_idc                    t               }| j                  j                         |d<   | j                  j                         |d<   |S )Nr   nodeId)r   r   r   r   r   s     r   r   zGridNodeHighlightConfig.to_json  s>    v&*&@&@&H&H&J"#--/Xr   c                     | t         j                  |d         t        j                  j                  |d               S )Nr   r   )r   r   )r(   r   r   NodeIdr   s     r   r   z!GridNodeHighlightConfig.from_json  s9    "5"?"?EZ@["\JJ((h8
 	
r   Nr   r&   r   r   r   r     s0     /.  
 
r   r   c                  8    e Zd ZU ded<   ded<   d Zed        Zy)FlexNodeHighlightConfigrW   r   r   r   c                    t               }| j                  j                         |d<   | j                  j                         |d<   |S )Nr   r   )r   r   r   r   r   s     r   r   zFlexNodeHighlightConfig.to_json  >    v/3/S/S/[/[/]+,--/Xr   c                     | t         j                  |d         t        j                  j                  |d               S )Nr   r   )r   r   )rW   r   r   r   r   s     r   r   z!FlexNodeHighlightConfig.from_json
  :    ,H,R,RSWXvSw,xJJ((h8
 	
r   Nr    r!   r"   r$   r   r%   r   r&   r   r   r   r     ,     &BA  
 
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)
"ScrollSnapContainerHighlightConfigNrX   snapport_bordersnap_area_borderr0   scroll_margin_colorscroll_padding_colorc                b   t               }| j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j
                  | j
                  j                         |d<   |S )NsnapportBordersnapAreaBorderscrollMarginColorscrollPaddingColor)r   r   r   r   r   r   r   s     r   r   z*ScrollSnapContainerHighlightConfig.to_json   s    v+%)%9%9%A%A%CD!"  ,%)%:%:%B%B%DD!"##/(,(@(@(H(H(JD$%$$0)-)B)B)J)J)LD%&r   c           	     ,    | d|v rt         j                  |d         nd d|v rt         j                  |d         nd d|v r"t        j                  j                  |d         nd d|v r't        j                  j                  |d               S d       S )Nr   r   r   r   )r   r   r   r   )rl   r   r   r   r   s     r   r   z,ScrollSnapContainerHighlightConfig.from_json,  s    K[_cKcI//5E0FGimL\`dLdY006F1GHjnQdhlQl 2 248K3L MrvSgkoSo!3!3D9M4N!O	
 	
 vz	
 	
r   )r    r!   r"   r   r$   r   r   r   r   r%   r   r&   r   r   r   r     sR     37O/6 4807 6:29 7;3:
 
 
r   r   c                  8    e Zd ZU ded<   ded<   d Zed        Zy)ScrollSnapHighlightConfigr   &scroll_snap_container_highlight_configr   r   c                    t               }| j                  j                         |d<   | j                  j                         |d<   |S )N"scrollSnapContainerHighlightConfigr   )r   r   r   r   r   s     r   r   z!ScrollSnapHighlightConfig.to_json>  s>    v595`5`5h5h5j12--/Xr   c                     | t         j                  |d         t        j                  j                  |d               S )Nr   r   )r   r   )r   r   r   r   r   s     r   r   z#ScrollSnapHighlightConfig.from_jsonD  sE    3U3_3_`d  fJ  aK  4LJJ((h8
 	
r   Nr   r&   r   r   r   r   6  s,     -ON  
 
r   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)
HingeConfigz-
    Configuration for dual screen hinge
    zdom.RectrectNr0   r   outline_colorc                    t               }| j                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   |S )Nr   r   outlineColor)r   r   r   r   r   r   s     r   r   zHingeConfig.to_jsonZ  sn    vyy((*V)#'#5#5#=#=#?D )#'#5#5#=#=#?D r   c                     | t         j                  j                  |d         d|v r"t         j                  j                  |d         nd d|v r't         j                  j                  |d               S d       S )Nr   r   r   )r   r   r   )r   Rectr   r   r   s     r   r   zHingeConfig.from_jsonc  sw    ##DL1FTX\F\#((,,T.-ABbfFTX\F\#((,,T.-AB
 	
 cg
 	
r   )
r    r!   r"   r#   r$   r   r   r   r%   r   r&   r   r   r   r   L  sA     N 04M,3 04M,3 
 
r   r   c                  F    e Zd ZU dZded<   ded<   ded<   d Zed        Zy	)
WindowControlsOverlayConfigz3
    Configuration for Window Controls Overlay
    rU   show_cssr~   selected_platformtheme_colorc                t    t               }| j                  |d<   | j                  |d<   | j                  |d<   |S )NshowCSSselectedPlatform
themeColor)r   r   r   r   r   s     r   r   z#WindowControlsOverlayConfig.to_jsonz  s<    v--Y#'#9#9 !--\r   c                `     | t        |d         t        |d         t        |d               S )Nr   r   r   )r   r   r   )rU   r~   r   s     r   r   z%WindowControlsOverlayConfig.from_json  s6    $y/*!$'9":;D./
 	
r   Nr   r&   r   r   r   r   l  s7     N   
 
r   r   c                  8    e Zd ZU ded<   ded<   d Zed        Zy)ContainerQueryHighlightConfigr   r   r   r   c                    t               }| j                  j                         |d<   | j                  j                         |d<   |S )Nr   r   )r   r   r   r   r   s     r   r   z%ContainerQueryHighlightConfig.to_json  s>    v9=9h9h9p9p9r56--/Xr   c                     | t         j                  |d         t        j                  j                  |d               S )Nr   r   )r   r   )r   r   r   r   r   s     r   r   z'ContainerQueryHighlightConfig.from_json  sE    7]7g7ghl  nV  iW  8XJJ((h8
 	
r   Nr   r&   r   r   r  r    s,     1WV  
 
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   NrX   rY   descendant_borderc                    t               }| j                  | j                  j                         |d<   | j                  | j                  j                         |d<   |S )Nrc   descendantBorder)r   rY   r   r  r   s     r   r   z.ContainerQueryContainerHighlightConfig.to_json  sZ    v  ,&*&;&;&C&C&ED"#!!-'+'='='E'E'GD#$r   c                     | d|v rt         j                  |d         nd d|v rt         j                  |d               S d       S )Nrc   r	  )rY   r  )rl   r   r   s     r   r   z0ContainerQueryContainerHighlightConfig.from_json  sW    M^bfMfY006G1HIlpOaeiOii11$7I2JK
 	
os
 	
r   )	r    r!   r"   rY   r$   r  r   r%   r   r&   r   r   r   r     s7     4807 5918 
 
r   r   c                  8    e Zd ZU ded<   ded<   d Zed        Zy)IsolatedElementHighlightConfigIsolationModeHighlightConfigisolation_mode_highlight_configr   r   c                    t               }| j                  j                         |d<   | j                  j                         |d<   |S )NisolationModeHighlightConfigr   )r   r  r   r   r   s     r   r   z&IsolatedElementHighlightConfig.to_json  r   r   c                     | t         j                  |d         t        j                  j                  |d               S )Nr  r   )r  r   )r  r   r   r   r   s     r   r   z(IsolatedElementHighlightConfig.from_json  r   r   Nr   r&   r   r   r  r    r   r   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)r  Nr0   resizer_colorresizer_handle_color
mask_colorc                   t               }| j                  | j                  j                         |d<   | j                  | j                  j                         |d<   | j                  | j                  j                         |d<   |S )NresizerColorresizerHandleColor	maskColor)r   r  r   r  r  r   s     r   r   z$IsolationModeHighlightConfig.to_json  sz    v)#'#5#5#=#=#?D $$0)-)B)B)J)J)LD%&??& $ 7 7 9Dr   c                    | d|v r"t         j                  j                  |d         nd d|v r"t         j                  j                  |d         nd d|v r't         j                  j                  |d               S d       S )Nr  r  r  )r  r  r  r   r   s     r   r   z&IsolationModeHighlightConfig.from_json  s    FTX\F\#((,,T.-ABbfSgkoSo!3!3D9M4N!Ouy@Kt@Ssxx))${*;<
 	
 Z^
 	
r   )
r    r!   r"   r  r$   r  r  r   r%   r   r&   r   r   r  r    sC     04M,3 7;3: -1J)0 
 
r   r  c                  6    e Zd ZdZdZdZdZdZd Ze	d        Z
y)	InspectModesearchForNodesearchForUAShadowDOMcaptureAreaScreenshotshowDistancesnonec                    | j                   S r   r   r   s    r   r   zInspectMode.to_json  r   r   c                     | |      S r   r&   r   s     r   r   zInspectMode.from_json  r   r   N)r    r!   r"   SEARCH_FOR_NODESEARCH_FOR_UA_SHADOW_DOMCAPTURE_AREA_SCREENSHOTSHOW_DISTANCESNONEr   r%   r   r&   r   r   r  r    s6    %O55$ND  r   r  c               #     K   ddi} | }yw)z(
    Disables domain notifications.
    methodzOverlay.disableNr&   cmd_dictr   s     r   disabler-    s     
 	#H >D   
c               #     K   ddi} | }yw)z'
    Enables domain notifications.
    r*  zOverlay.enableNr&   r+  s     r   enabler0    s     
 	"H >Dr.  c              #     K   t               }| j                         |d<   |||d<   |||d<   ||j                         |d<   |||d<   d|d}|}t        |d         S w)	a  
    For testing.

    :param node_id: Id of the node to get highlight object for.
    :param include_distance: *(Optional)* Whether to include distance info.
    :param include_style: *(Optional)* Whether to include style info.
    :param color_format: *(Optional)* The color format to get config with (default: hex).
    :param show_accessibility_info: *(Optional)* Whether to show accessibility info (default: true).
    :returns: Highlight data for the node.
    r   includeDistanceincludeStyler   r   z!Overlay.getHighlightObjectForTestr*  params	highlightr   r   )r   include_distanceinclude_styler   r   r5  r,  r   s           r   get_highlight_object_for_testr:    s     " &F(F8#$4 ! !.~ , 4 4 6}**A&'5H >D[!""s   AA!c              #     K   t               }| D cg c]  }|j                          c}|d<   d|d}|}t        |d         S c c}w w)z
    For Persistent Grid testing.

    :param node_ids: Ids of the node to get highlight object for.
    :returns: Grid Highlight data for the node ids provided.
    nodeIdsz&Overlay.getGridHighlightObjectsForTestr4  
highlightsr7  )node_idsr5  ir,  r   s        r   #get_grid_highlight_objects_for_testr@  2  sU      &F.677F9:H >D\"## 8s   A
A"A
c              #  r   K   t               }| j                         |d<   d|d}|}t        |d         S w)z
    For Source Order Viewer testing.

    :param node_id: Id of the node to highlight.
    :returns: Source order highlight data for the node id provided.
    r   z,Overlay.getSourceOrderHighlightObjectForTestr4  r6  r7  )r   r5  r,  r   s       r   *get_source_order_highlight_object_for_testrB  E  sF      &F(F8@H >D[!""s   57c               #     K   ddi} | }yw)z
    Hides any highlight.
    r*  zOverlay.hideHighlightNr&   r+  s     r   hide_highlightrD  X  s     
 	)H >Dr.  c              #     K   t               }| j                         |d<   ||j                         |d<   ||j                         |d<   d|d}|}yw)a  
    Highlights owner element of the frame with given id.
    Deprecated: Doesn't work reliably and cannot be fixed due to process
    separation (the owner node might be in a different process). Determine
    the owner node in the client and use highlightNode.

    :param frame_id: Identifier of the frame to highlight.
    :param content_color: *(Optional)* The content box highlight fill color (default: transparent).
    :param content_outline_color: *(Optional)* The content box highlight outline color (default: transparent).
    frameIdNr   contentOutlineColorzOverlay.highlightFramer4  r7  )frame_idr   content_outline_colorr5  r,  r   s         r   highlight_framerJ  b  sk      &F ((*F9 !.!6!6!8~((=(E(E(G$%*H >D   AAc              #     K   t               }| j                         |d<   ||j                         |d<   ||j                         |d<   ||j                         |d<   |||d<   d|d}|}yw)	a  
    Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or
    objectId must be specified.

    :param highlight_config: A descriptor for the highlight appearance.
    :param node_id: *(Optional)* Identifier of the node to highlight.
    :param backend_node_id: *(Optional)* Identifier of the backend node to highlight.
    :param object_id: *(Optional)* JavaScript object id of the node to be highlighted.
    :param selector: *(Optional)* Selectors to highlight relevant nodes.
    highlightConfigNr   backendNodeIdobjectIdselectorzOverlay.highlightNoder4  r7  )highlight_configr   backend_node_id	object_idrP  r5  r,  r   s           r   highlight_noderT  ~  s     " &F 0 8 8 :F"??,x""1"9"9";&..0z%z)H >Ds   A.A0c              #     K   t               }| j                         |d<   ||j                         |d<   ||j                         |d<   d|d}|}yw)a1  
    Highlights given quad. Coordinates are absolute with respect to the main frame viewport.

    :param quad: Quad to highlight
    :param color: *(Optional)* The highlight fill color (default: transparent).
    :param outline_color: *(Optional)* The highlight outline color (default: transparent).
    quadNry   r   zOverlay.highlightQuadr4  r7  )rV  ry   r   r5  r,  r   s         r   highlight_quadrW    sb      &F\\^F6N--/w !.!6!6!8~)H >DrK  c              #     K   t               }| |d<   ||d<   ||d<   ||d<   ||j                         |d<   ||j                         |d<   d|d	}|}yw)
a  
    Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.

    :param x: X coordinate
    :param y: Y coordinate
    :param width: Rectangle width
    :param height: Rectangle height
    :param color: *(Optional)* The highlight fill color (default: transparent).
    :param outline_color: *(Optional)* The highlight outline color (default: transparent).
    xywidthheightNry   r   zOverlay.highlightRectr4  r7  )	rY  rZ  r[  r\  ry   r   r5  r,  r   s	            r   highlight_rectr]    sx     $ &FF3KF3KF7OF8--/w !.!6!6!8~)H >Ds   AAc              #     K   t               }| j                         |d<   ||j                         |d<   ||j                         |d<   ||j                         |d<   d|d}|}yw)a  
    Highlights the source order of the children of the DOM node with given id or with the given
    JavaScript object wrapper. Either nodeId or objectId must be specified.

    :param source_order_config: A descriptor for the appearance of the overlay drawing.
    :param node_id: *(Optional)* Identifier of the node to highlight.
    :param backend_node_id: *(Optional)* Identifier of the backend node to highlight.
    :param object_id: *(Optional)* JavaScript object id of the node to be highlighted.
    sourceOrderConfigNr   rN  rO  zOverlay.highlightSourceOrderr4  r7  )source_order_configr   rR  rS  r5  r,  r   s          r   highlight_source_orderra    s      &F"5"="="?F"??,x""1"9"9";&..0z0H >Ds   A'A)c              #     K   t               }| j                         |d<   ||j                         |d<   d|d}|}yw)av  
    Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted.
    Backend then generates 'inspectNodeRequested' event upon element selection.

    :param mode: Set an inspection mode.
    :param highlight_config: *(Optional)* A descriptor for the highlight appearance of hovered-over nodes. May be omitted if ```enabled == false```.
    modeNrM  zOverlay.setInspectModer4  r7  )rc  rQ  r5  r,  r   s        r   set_inspect_moderd    sN      &F\\^F6N#$4$<$<$> !*H >Ds   =?c              #  <   K   t               }| |d<   d|d}|}yw)zu
    Highlights owner element of all frames detected to be ads.

    :param show: True for showing ad highlights
    showzOverlay.setShowAdHighlightsr4  Nr   rf  r5  r,  r   s       r   set_show_ad_highlightsri    .      &FF6N/H >D   c              #  @   K   t               }| | |d<   d|d}|}yw)zk
    :param message: *(Optional)* The message to display, also triggers resume and step over controls.
    Nmessagez"Overlay.setPausedInDebuggerMessager4  rg  )rm  r5  r,  r   s       r   set_paused_in_debugger_messagern     s5      &F#y6H >Ds   c              #  <   K   t               }| |d<   d|d}|}yw)zn
    Requests that backend shows debug borders on layers

    :param show: True for showing debug borders
    rf  zOverlay.setShowDebugBordersr4  Nrg  rh  s       r   set_show_debug_bordersrp  0  rj  rk  c              #  <   K   t               }| |d<   d|d}|}yw)zh
    Requests that backend shows the FPS counter

    :param show: True for showing the FPS counter
    rf  zOverlay.setShowFPSCounterr4  Nrg  rh  s       r   set_show_fps_counterrr  A  s.      &FF6N-H >Drk  c              #  ~   K   t               }| D cg c]  }|j                          c}|d<   d|d}|}yc c}w w)z
    Highlight multiple elements with the CSS Grid overlay.

    :param grid_node_highlight_configs: An array of node identifiers and descriptors for the highlight appearance.
    gridNodeHighlightConfigszOverlay.setShowGridOverlaysr4  Nr7  )grid_node_highlight_configsr5  r?  r,  r   s        r   set_show_grid_overlaysrv  R  sG      &F?Z)[!!))+)[F%&/H >D *\   =8=c              #  ~   K   t               }| D cg c]  }|j                          c}|d<   d|d}|}yc c}w w)zx
    :param flex_node_highlight_configs: An array of node identifiers and descriptors for the highlight appearance.
    flexNodeHighlightConfigszOverlay.setShowFlexOverlaysr4  Nr7  )flex_node_highlight_configsr5  r?  r,  r   s        r   set_show_flex_overlaysr{  c  sG      &F?Z)[!!))+)[F%&/H >D *\rw  c              #  ~   K   t               }| D cg c]  }|j                          c}|d<   d|d}|}yc c}w w)zz
    :param scroll_snap_highlight_configs: An array of node identifiers and descriptors for the highlight appearance.
    scrollSnapHighlightConfigsz!Overlay.setShowScrollSnapOverlaysr4  Nr7  )scroll_snap_highlight_configsr5  r?  r,  r   s        r   set_show_scroll_snap_overlaysr  r  sG      &FA^+_AAIIK+_F'(5H >D ,`rw  c              #  ~   K   t               }| D cg c]  }|j                          c}|d<   d|d}|}yc c}w w)z~
    :param container_query_highlight_configs: An array of node identifiers and descriptors for the highlight appearance.
    containerQueryHighlightConfigsz%Overlay.setShowContainerQueryOverlaysr4  Nr7  )!container_query_highlight_configsr5  r?  r,  r   s        r   !set_show_container_query_overlaysr    sG      &FEf/g		/gF+,9H >D 0hrw  c              #  <   K   t               }| |d<   d|d}|}yw)zl
    Requests that backend shows paint rectangles

    :param result: True for showing paint rectangles
    resultzOverlay.setShowPaintRectsr4  Nrg  r  r5  r,  r   s       r   set_show_paint_rectsr    s/      &FF8-H >Drk  c              #  <   K   t               }| |d<   d|d}|}yw)zt
    Requests that backend shows layout shift regions

    :param result: True for showing layout shift regions
    r  z!Overlay.setShowLayoutShiftRegionsr4  Nrg  r  s       r   set_show_layout_shift_regionsr    s/      &FF85H >Drk  c              #  <   K   t               }| |d<   d|d}|}yw)zx
    Requests that backend shows scroll bottleneck rects

    :param show: True for showing scroll bottleneck rects
    rf  z$Overlay.setShowScrollBottleneckRectsr4  Nrg  rh  s       r    set_show_scroll_bottleneck_rectsr    s.      &FF6N8H >Drk  c              #  <   K   t               }| |d<   d|d}|}yw)zc
    Deprecated, no longer has any effect.

    :param show: True for showing hit-test borders
    rf  zOverlay.setShowHitTestBordersr4  Nrg  rh  s       r   set_show_hit_test_bordersr    s.      &FF6N1H >Drk  c              #  <   K   t               }| |d<   d|d}|}yw)zA
    Deprecated, no longer has any effect.

    :param show:
    rf  zOverlay.setShowWebVitalsr4  Nrg  rh  s       r   set_show_web_vitalsr    s.      &FF6N,H >Drk  c              #  <   K   t               }| |d<   d|d}|}yw)zf
    Paints viewport size upon main frame resize.

    :param show: Whether to paint size or not.
    rf  z#Overlay.setShowViewportSizeOnResizer4  Nrg  rh  s       r    set_show_viewport_size_on_resizer    s.      &FF6N7H >Drk  c              #  \   K   t               }| | j                         |d<   d|d}|}yw)zp
    Add a dual screen device hinge

    :param hinge_config: *(Optional)* hinge data, null means hideHinge
    NhingeConfigzOverlay.setShowHinger4  r7  )hinge_configr5  r,  r   s       r   set_show_hinger    s>      &F , 4 4 6}(H >D   *,c              #  ~   K   t               }| D cg c]  }|j                          c}|d<   d|d}|}yc c}w w)z
    Show elements in isolation mode with overlays.

    :param isolated_element_highlight_configs: An array of node identifiers and descriptors for the highlight appearance.
    isolatedElementHighlightConfigszOverlay.setShowIsolatedElementsr4  Nr7  )"isolated_element_highlight_configsr5  r?  r,  r   s        r   set_show_isolated_elementsr    sG      &FFh0i0iF,-3H >D 1jrw  c              #  \   K   t               }| | j                         |d<   d|d}|}yw)z
    Show Window Controls Overlay for PWA

    :param window_controls_overlay_config: *(Optional)* Window Controls Overlay data, null means hide Window Controls Overlay
    NwindowControlsOverlayConfigz$Overlay.setShowWindowControlsOverlayr4  r7  )window_controls_overlay_configr5  r,  r   s       r    set_show_window_controls_overlayr    s?      &F%10N0V0V0X,-8H >Dr  zOverlay.inspectNodeRequestedc                  .    e Zd ZU dZded<   edd       Zy)InspectNodeRequestedz
    Fired when the node should be inspected. This happens after call to ``setInspectMode`` or when
    user manually inspects an element.
    zdom.BackendNodeIdrR  c                T     | t         j                  j                  |d               S )NrN  )rR  )r   BackendNodeIdr   r   s     r   r   zInspectNodeRequested.from_json5  s(    --77_8MN
 	
r   N)r   r   returnr  r    r!   r"   r#   r$   r%   r   r&   r   r   r  r  +  s!    
 '&
 
r   r  zOverlay.nodeHighlightRequestedc                  .    e Zd ZU dZded<   edd       Zy)NodeHighlightRequestedzc
    Fired when the node should be highlighted. This happens after call to ``setInspectMode``.
    r   r   c                T     | t         j                  j                  |d               S )Nr   )r   )r   r   r   r   s     r   r   z NodeHighlightRequested.from_jsonD  s%    JJ((h8
 	
r   N)r   r   r  r  r  r&   r   r   r  r  <  s!     
 
r   r  zOverlay.screenshotRequestedc                  .    e Zd ZU dZded<   edd       Zy)ScreenshotRequestedzN
    Fired when user asks to capture screenshot of some area on the page.
    zpage.Viewportviewportc                T     | t         j                  j                  |d               S )Nr  )r  )r	   Viewportr   r   s     r   r   zScreenshotRequested.from_jsonT  s&    ]],,T*-=>
 	
r   N)r   r   r  r  r  r&   r   r   r  r  K  s!     
 
r   r  zOverlay.inspectModeCanceledc                  "    e Zd ZdZedd       Zy)InspectModeCanceledz3
    Fired when user cancels the inspect mode.
    c                     |        S r   r&   r   s     r   r   zInspectModeCanceled.from_jsonc  s     
 	
r   N)r   r   r  r  )r    r!   r"   r#   r%   r   r&   r   r   r  r  [  s    
 
 
r   r  )r  0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])NNNN)r   r   r8  r)   r9  r)   r   r   r   r)   r  0typing.Generator[T_JSON_DICT, T_JSON_DICT, dict])r>  ztyping.List[dom.NodeId]r  r  )r   r   r  r  )NN)rH  zpage.FrameIdr   r0   rI  r0   r  r  )rQ  r   r   typing.Optional[dom.NodeId]rR  "typing.Optional[dom.BackendNodeId]rS  'typing.Optional[runtime.RemoteObjectId]rP  rz   r  r  )rV  zdom.Quadry   r0   r   r0   r  r  )rY  intrZ  r  r[  r  r\  r  ry   r0   r   r0   r  r  )NNN)
r`  r   r   r  rR  r  rS  r  r  r  r   )rc  r  rQ  z typing.Optional[HighlightConfig]r  r  )rf  rU   r  r  )rm  rz   r  r  )ru  z$typing.List[GridNodeHighlightConfig]r  r  )rz  z$typing.List[FlexNodeHighlightConfig]r  r  )r~  z&typing.List[ScrollSnapHighlightConfig]r  r  )r  z*typing.List[ContainerQueryHighlightConfig]r  r  )r  rU   r  r  )r  ztyping.Optional[HingeConfig]r  r  )r  z+typing.List[IsolatedElementHighlightConfig]r  r  )r  z,typing.Optional[WindowControlsOverlayConfig]r  r  )C
__future__r   utilr   r   dataclassesr   enumtyping r   r	   r
   r   r(   rW   ro   rl   rm   Enumr   r   r   r   r   r   r   r   r   r  r   r  r  r  r-  r0  r:  r@  rB  rD  rJ  rT  rW  r]  ra  rd  ri  rn  rp  rr  rv  r{  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r&   r   r   <module>r     s   # * !      
 
 
0 C
 C
 C
L ;
 ;
 ;
| 
 
 
@ 
 
 
4 
 
 
4
		 
 }
 }
 }
@$))  
 
 
0 
 
 
*  
  
  
F 
 
 
* 
 
 
> 
 
 
: 
 
 
* 
 
 
. 
 
 
* 
 
 
:$))  37/3599= # #/ # - # 3	 #
 "7 # 
8 #F$)$	7$&##	7#& 48;?0  9 
8	< 04>B=A)-), < ;	
 ' 
8H ,037( 1 
8	< ,037  	
 ) 1 
8H 04>B=A	., < ;	
 
8@ >B: 
8,	7$ )-%	7 	7"	7"%I	7"%I	7'M	7+U	7	7"	7"	7"	7"	7"	7$ 6:2	7$,W	7$ X\(T	7$ +,

 
  -
 -.


 

  /

 *+

 
  ,
 *+


 

  ,

r   