Ë
    bQbj_7  ã                  óR  — 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 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d(d„Zd(d„Z	 	 	 	 d)d„Zd*d„Z	 	 	 	 d+d„Z	 	 	 	 d,d„Z	 	 	 	 	 	 d-d„Z	 	 	 	 	 	 d.d„Z	 	 	 	 d/d„Z	 	 	 	 	 	 	 	 d0d„Z ed«      e G d„ d«      «       «       Z ed«      e G d „ d!«      «       «       Z ed"«      e G d#„ d$«      «       «       Z ed%«      e G d&„ d'«      «       «       Zy)1é    )Úannotationsé   )Úevent_classÚT_JSON_DICT)Ú	dataclassN)Údom)Úruntimec                  ó¢   — 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
<   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)Ú	Animationz
    Animation instance.
    ÚstrÚid_ÚnameÚboolÚpaused_stateÚ
play_stateÚfloatÚplayback_rateÚ
start_timeÚcurrent_timeÚtype_Nz typing.Optional[AnimationEffect]Úsourceútyping.Optional[str]Úcss_idz%typing.Optional[ViewOrScrollTimeline]Úview_or_scroll_timelinec                óä  — t        «       }| j                  |d<   | j                  |d<   | j                  |d<   | j                  |d<   | j
                  |d<   | j                  |d<   | j                  |d<   | j                  |d<   | j                  �| j                  j                  «       |d	<   | j                  �| j                  |d
<   | j                  �| j                  j                  «       |d<   |S )NÚidr   ÚpausedStateÚ	playStateÚplaybackRateÚ	startTimeÚcurrentTimeÚtyper   ÚcssIdÚviewOrScrollTimeline)Údictr   r   r   r   r   r   r   r   r   Úto_jsonr   r   ©ÚselfÚjsons     úd/var/www/html/venv/lib/python3.12/site-packages/selenium/webdriver/common/devtools/v150/animation.pyr&   zAnimation.to_json:   sÞ   € Ü‹vˆØ—X‘XˆˆT‰
Ø—y‘yˆˆV‰Ø"×/Ñ/ˆˆ]ÑØ ŸO™Oˆˆ[ÑØ#×1Ñ1ˆˆ^ÑØ ŸO™Oˆˆ[ÑØ"×/Ñ/ˆˆ]ÑØ—z‘zˆˆV‰Ø�;‰;Ð"Ø!Ÿ[™[×0Ñ0Ó2ˆD�‰NØ�;‰;Ð"Ø ŸK™KˆD�‰MØ×'Ñ'Ð3Ø+/×+GÑ+G×+OÑ+OÓ+QˆDÐ'Ñ(Øˆó    c                ó†  —  | t        |d   «      t        |d   «      t        |d   «      t        |d   «      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   «      ¬«      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   ÚAnimationEffectÚ	from_jsonÚViewOrScrollTimeline©Úclsr)   s     r*   r.   zAnimation.from_jsonL   sÙ   € áÜ�D˜‘J“Ü�T˜&‘\Ó"Ü˜d =Ñ1Ó2Ü˜4 Ñ,Ó-Ü  ^Ñ 4Ó5Ü˜T +Ñ.Ó/Ü˜t MÑ2Ó3Ü�d˜6‘lÓ#Ø@HÈDÑ@P”?×,Ñ,¨T°(©^Ô<ÐVZØ)0°D©”3�t˜G‘}Ô%¸dØdzð  Cñ  eCÔ$8×$BÑ$BÀ4ÐH^ÑC_Ó$`ô
ð 	
ð IMô
ð 	
r+   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__r   r   r   r&   Úclassmethodr.   © r+   r*   r   r      s†   … ñð 
ƒHð ƒIð Óð ƒOð Óð Óð Óð ƒJð 04€FÐ,Ó3ð $(€FÐ Ó'ð FJÐÐBÓIòð$ ñ
ó ñ
r+   r   c                  ój   — 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	e
d„ «       Zy)r/   z
    Timeline instance
    zdom.ScrollOrientationÚaxisNú"typing.Optional[dom.BackendNodeId]Úsource_node_idútyping.Optional[float]Ústart_offsetÚ
end_offsetÚsubject_node_idc                ód  — t        «       }| j                  j                  «       |d<   | j                  �| j                  j                  «       |d<   | j                  �| j                  |d<   | j
                  �| j
                  |d<   | j                  �| j                  j                  «       |d<   |S )Nr:   ÚsourceNodeIdÚstartOffsetÚ	endOffsetÚsubjectNodeId)r%   r:   r&   r<   r>   r?   r@   r'   s     r*   r&   zViewOrScrollTimeline.to_jsonu   s¢   € Ü‹vˆØ—y‘y×(Ñ(Ó*ˆˆV‰Ø×ÑÐ*Ø#'×#6Ñ#6×#>Ñ#>Ó#@ˆD�Ñ Ø×ÑÐ(Ø"&×"3Ñ"3ˆD�ÑØ�?‰?Ð&Ø $§¡ˆD�ÑØ×ÑÐ+Ø$(×$8Ñ$8×$@Ñ$@Ó$BˆD�Ñ!Øˆr+   c           
     óF  —  | t         j                  j                  |d   «      d|v r"t         j                  j                  |d   «      nd d|v rt	        |d   «      nd d|v rt	        |d   «      nd d|v r't         j                  j                  |d   «      ¬«      S d ¬«      S )Nr:   rB   rC   rD   rE   )r:   r<   r>   r?   r@   )r   ÚScrollOrientationr.   ÚBackendNodeIdr   r0   s     r*   r.   zViewOrScrollTimeline.from_json‚   sª   € áÜ×&Ñ&×0Ñ0°°f±Ó>ØP^ÐbfÑPfœ3×,Ñ,×6Ñ6°t¸NÑ7KÔLÐlpØ7DÈÑ7Lœ˜t MÑ2Ô3ÐRVØ3>À$Ñ3F”u˜T +Ñ.Ô/ÈDØRaÐeiÑRiœC×-Ñ-×7Ñ7¸¸_Ñ8MÓNô
ð 	
ð
 ptô
ð 	
r+   )r2   r3   r4   r5   r6   r<   r>   r?   r@   r&   r7   r.   r8   r+   r*   r/   r/   ]   s\   … ñð  Óð :>€NÐ6Ó=ð ,0€LÐ(Ó/ð *.€JÐ&Ó-ð
 ;?€OÐ7Ó>òð ñ
ó ñ
r+   r/   c                  ó˜   — 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	<   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-   z"
    AnimationEffect instance
    r   ÚdelayÚ	end_delayÚiteration_startÚdurationr   Ú	directionÚfillÚeasingNr=   Ú
iterationsr;   Úbackend_node_idztyping.Optional[KeyframesRule]Úkeyframes_rulec                óÆ  — t        «       }| j                  |d<   | j                  |d<   | j                  |d<   | j                  |d<   | j
                  |d<   | j                  |d<   | j                  |d<   | j                  �| j                  |d<   | j                  �| j                  j                  «       |d	<   | j                  �| j                  j                  «       |d
<   |S )NrJ   ÚendDelayÚiterationStartrM   rN   rO   rP   rQ   ÚbackendNodeIdÚkeyframesRule)r%   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   r&   rS   r'   s     r*   r&   zAnimationEffect.to_json³   sÒ   € Ü‹vˆØŸ
™
ˆˆW‰ØŸ>™>ˆˆZÑØ!%×!5Ñ!5ˆÐÑØŸ=™=ˆˆZÑØ ŸN™Nˆˆ[ÑØ—y‘yˆˆV‰ØŸ™ˆˆX‰Ø�?‰?Ð&Ø!%§¡ˆD�ÑØ×ÑÐ+Ø$(×$8Ñ$8×$@Ñ$@Ó$BˆD�Ñ!Ø×ÑÐ*Ø$(×$7Ñ$7×$?Ñ$?Ó$AˆD�Ñ!Øˆr+   c                ó€  —  | t        |d   «      t        |d   «      t        |d   «      t        |d   «      t        |d   «      t        |d   «      t        |d   «      d|v rt        |d   «      nd d	|v r"t        j                  j	                  |d	   «      nd d
|v rt
        j	                  |d
   «      ¬«
      S d ¬«
      S )NrJ   rU   rV   rM   rN   rO   rP   rQ   rW   rX   )
rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   )r   r   r   rH   r.   ÚKeyframesRuler0   s     r*   r.   zAnimationEffect.from_jsonÄ   sÎ   € áÜ˜˜W™Ó&Ü˜D Ñ,Ó-Ü! $Ð'7Ñ"8Ó9Ü˜4 
Ñ+Ó,Ü˜$˜{Ñ+Ó,Ü�T˜&‘\Ó"Ü�t˜H‘~Ó&Ø4@ÀDÑ4H”u˜T ,Ñ/Ô0ÈdØRaÐeiÑRiœC×-Ñ-×7Ñ7¸¸_Ñ8MÔNÐosØM\Ð`dÑMdœ=×2Ñ2°4¸Ñ3HÓIô
ð 	
ð koô
ð 	
r+   )r2   r3   r4   r5   r6   rQ   rR   rS   r&   r7   r.   r8   r+   r*   r-   r-   �   sz   … ñð ƒLð Óð Óð ƒOð ƒNð ƒIð ƒKð *.€JÐ&Ó-ð ;?€OÐ7Ó>ð 6:€NÐ2Ó9òð" ñ
ó ñ
r+   r-   c                  ó@   — e Zd ZU dZded<   dZded<   d„ Zed„ «       Zy)	rZ   z
    Keyframes Rule
    ztyping.List[KeyframeStyle]Ú	keyframesNr   r   c                ó°   — t        «       }| j                  D �cg c]  }|j                  «       ‘Œ c}|d<   | j                  �| j                  |d<   |S c c}w )Nr\   r   )r%   r\   r&   r   )r(   r)   Úis      r*   r&   zKeyframesRule.to_jsonß   sJ   € Ü‹vˆØ26·.±.ÖA¨Q˜QŸY™Y�[ÒAˆˆ[ÑØ�9‰9Ð ØŸ9™9ˆD�‰LØˆùò Bs   ™Ac                ó–   —  | |d   D �cg c]  }t         j                  |«      ‘Œ c}d|v rt        |d   «      ¬«      S d ¬«      S c c}w )Nr\   r   )r\   r   )ÚKeyframeStyler.   r   )r1   r)   r^   s      r*   r.   zKeyframesRule.from_jsonæ   sO   € áØ;?ÀÑ;LÖM°a”}×.Ñ.¨qÕ1ÒMØ&,°¡n”�T˜&‘\Ó"ô
ð 	
à:>ô
ð 	
ùÚMs   ŠA)	r2   r3   r4   r5   r6   r   r&   r7   r.   r8   r+   r*   rZ   rZ   Ô   s5   … ñð *Ó)ð "&€DÐ
Ó%òð ñ
ó ñ
r+   rZ   c                  ó<   — e Zd ZU dZded<   ded<   d„ Zed„ «       Zy)r`   z
    Keyframe Style
    r   ÚoffsetrP   c                óV   — t        «       }| j                  |d<   | j                  |d<   |S )Nrb   rP   )r%   rb   rP   r'   s     r*   r&   zKeyframeStyle.to_jsonù   s(   € Ü‹vˆØŸ™ˆˆX‰ØŸ™ˆˆX‰Øˆr+   c                óF   —  | t        |d   «      t        |d   «      ¬«      S )Nrb   rP   )rb   rP   ©r   r0   s     r*   r.   zKeyframeStyle.from_jsonÿ   s'   € áÜ�t˜H‘~Ó&Ü�t˜H‘~Ó&ô
ð 	
r+   N)r2   r3   r4   r5   r6   r&   r7   r.   r8   r+   r*   r`   r`   î   s.   … ñð ƒKð ƒKòð ñ
ó ñ
r+   r`   c               #  ó   K  — ddi} | –—}y­w)z2
    Disables animation domain notifications.
    ÚmethodzAnimation.disableNr8   ©Úcmd_dictr)   s     r*   Údisablerj     s   è ø€ ð
 	Ð%ð€Hð ‰>�Dùó   ‚
c               #  ó   K  — ddi} | –—}y­w)z1
    Enables animation domain notifications.
    rg   zAnimation.enableNr8   rh   s     r*   Úenablerm     s   è ø€ ð
 	Ð$ð€Hð ‰>�Dùrk   c              #  óV   K  — t        «       }| |d<   d|dœ}|–—}t        |d   «      S ­w)z�
    Returns the current time of the an animation.

    :param id_: Id of animation.
    :returns: Current time of the page.
    r   zAnimation.getCurrentTime©rg   Úparamsr!   )r%   r   )r   rp   ri   r)   s       r*   Úget_current_timerq     s>   è ø€ ô ›&€FØ€Fˆ4�Là,Øñ€Hð ‰>€DÜ��mÑ$Ó%Ð%ùs   ‚')c               #  ó6   K  — ddi} | –—}t        |d   «      S ­w)zo
    Gets the playback rate of the document timeline.

    :returns: Playback rate for animations on page.
    rg   zAnimation.getPlaybackRater   )r   rh   s     r*   Úget_playback_raters   .  s.   è ø€ ð 	Ð-ð€Hð ‰>€DÜ��nÑ%Ó&Ð&ùs   ‚c              #  ób   K  — t        «       }| D �cg c]  }|‘Œ c}|d<   d|dœ}|–—}yc c}w ­w)zz
    Releases a set of animations to no longer be manipulated.

    :param animations: List of animation ids to seek.
    Ú
animationszAnimation.releaseAnimationsro   N©r%   )ru   rp   r^   ri   r)   s        r*   Úrelease_animationsrw   ;  s?   è ø€ ô ›&€FØ'1Ö2 !šAÒ2€Fˆ<Ñà/Øñ€Hð ‰>�Dùò 3ùs   ‚/‘	*š/c              #  ó~   K  — t        «       }| |d<   d|dœ}|–—}t        j                  j                  |d   «      S ­w)z…
    Gets the remote object of the Animation.

    :param animation_id: Animation id.
    :returns: Corresponding remote object.
    ÚanimationIdzAnimation.resolveAnimationro   ÚremoteObject)r%   r	   ÚRemoteObjectr.   )Úanimation_idrp   ri   r)   s       r*   Úresolve_animationr}   L  sK   è ø€ ô ›&€FØ(€Fˆ=Ñà.Øñ€Hð ‰>€DÜ×Ñ×)Ñ)¨$¨~Ñ*>Ó?Ð?ùs   ‚;=c              #  ól   K  — t        «       }| D �cg c]  }|‘Œ c}|d<   ||d<   d|dœ}|–—}yc c}w ­w)zÆ
    Seek a set of animations to a particular time within each animation.

    :param animations: List of animation ids to seek.
    :param current_time: Set the current time of each animation.
    ru   r!   zAnimation.seekAnimationsro   Nrv   )ru   r   rp   r^   ri   r)   s         r*   Úseek_animationsr   _  sI   è ø€ ô ›&€FØ'1Ö2 !šAÒ2€Fˆ<ÑØ(€Fˆ=Ñà,Øñ€Hð ‰>�Dùò 3ùó   ‚4‘	/š4c              #  ól   K  — t        «       }| D �cg c]  }|‘Œ c}|d<   ||d<   d|dœ}|–—}yc c}w ­w)z 
    Sets the paused state of a set of animations.

    :param animations: Animations to set the pause state of.
    :param paused: Paused state to set to.
    ru   ÚpausedzAnimation.setPausedro   Nrv   )ru   r‚   rp   r^   ri   r)   s         r*   Ú
set_pausedrƒ   s  sI   è ø€ ô ›&€FØ'1Ö2 !šAÒ2€Fˆ<ÑØ€Fˆ8Ñà'Øñ€Hð ‰>�Dùò 3ùr€   c              #  ó<   K  — t        «       }| |d<   d|dœ}|–—}y­w)zz
    Sets the playback rate of the document timeline.

    :param playback_rate: Playback rate for animations on page
    r   zAnimation.setPlaybackRatero   Nrv   )r   rp   ri   r)   s       r*   Úset_playback_rater…   ‡  s/   è ø€ ô ›&€FØ*€Fˆ>Ñà-Øñ€Hð ‰>�Dùs   ‚c              #  óP   K  — t        «       }| |d<   ||d<   ||d<   d|dœ}|–—}y­w)z±
    Sets the timing of an animation node.

    :param animation_id: Animation id.
    :param duration: Duration of the animation.
    :param delay: Delay of the animation.
    ry   rM   rJ   zAnimation.setTimingro   Nrv   )r|   rM   rJ   rp   ri   r)   s         r*   Ú
set_timingr‡   ˜  sB   è ø€ ô ›&€FØ(€Fˆ=ÑØ!€Fˆ:ÑØ€Fˆ7�Oà'Øñ€Hð ‰>�Dùs   ‚$&zAnimation.animationCanceledc                  ó.   — e Zd ZU dZded<   edd„«       Zy)ÚAnimationCanceledz9
    Event for when an animation has been cancelled.
    r   r   c                ó,   —  | t        |d   «      ¬«      S ©Nr   )r   re   r0   s     r*   r.   zAnimationCanceled.from_json¸  ó   € áÜ�D˜‘J“ô
ð 	
r+   N)r)   r   Úreturnr‰   ©r2   r3   r4   r5   r6   r7   r.   r8   r+   r*   r‰   r‰   ¯  ó    … ñð 
ƒHàò
ó ñ
r+   r‰   zAnimation.animationCreatedc                  ó.   — e Zd ZU dZded<   edd„«       Zy)ÚAnimationCreatedz9
    Event for each animation that has been created.
    r   r   c                ó,   —  | t        |d   «      ¬«      S r‹   re   r0   s     r*   r.   zAnimationCreated.from_jsonÈ  rŒ   r+   N)r)   r   r�   r‘   rŽ   r8   r+   r*   r‘   r‘   ¿  r�   r+   r‘   zAnimation.animationStartedc                  ó.   — e Zd ZU dZded<   edd„«       Zy)ÚAnimationStartedz4
    Event for animation that has been started.
    r   Ú	animationc                ó@   —  | t         j                  |d   «      ¬«      S ©Nr•   )r•   ©r   r.   r0   s     r*   r.   zAnimationStarted.from_jsonØ  ó"   € áÜ×)Ñ)¨$¨{Ñ*;Ó<ô
ð 	
r+   N)r)   r   r�   r”   rŽ   r8   r+   r*   r”   r”   Ï  ó!   … ñð Óàò
ó ñ
r+   r”   zAnimation.animationUpdatedc                  ó.   — e Zd ZU dZded<   edd„«       Zy)ÚAnimationUpdatedz4
    Event for animation that has been updated.
    r   r•   c                ó@   —  | t         j                  |d   «      ¬«      S r—   r˜   r0   s     r*   r.   zAnimationUpdated.from_jsonè  r™   r+   N)r)   r   r�   rœ   rŽ   r8   r+   r*   rœ   rœ   ß  rš   r+   rœ   )r�   ú0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])r   r   r�   ú1typing.Generator[T_JSON_DICT, T_JSON_DICT, float])r�   rŸ   )ru   útyping.List[str]r�   rž   )r|   r   r�   z@typing.Generator[T_JSON_DICT, T_JSON_DICT, runtime.RemoteObject])ru   r    r   r   r�   rž   )ru   r    r‚   r   r�   rž   )r   r   r�   rž   )r|   r   rM   r   rJ   r   r�   rž   )Ú
__future__r   Úutilr   r   Údataclassesr   ÚenumÚtypingÚ r   r	   r   r/   r-   rZ   r`   rj   rm   rq   rs   rw   r}   r   rƒ   r…   r‡   r‰   r‘   r”   rœ   r8   r+   r*   ú<module>r§      s  ðõ #ß *Ý !Û Û Ý Ý ð ÷I
ð I
ó ðI
ðX ÷,
ð ,
ó ð,
ð^ ÷C
ð C
ó ðC
ðL ÷
ð 
ó ð
ð2 ÷
ð 
ó ð
ó0óð&Øð&à	8ó&ó&
'ðØ$ðà	7óð"@Øð@à	Gó@ð&Ø$ðàðð 
8óð(Ø$ðàðð 
8óð(Øðà	7óð"Øðàðð ðð 
8ó	ñ. Ð*Ó+Ø
÷
ð 
ó ó ,ð
ñ Ð)Ó*Ø
÷
ð 
ó ó +ð
ñ Ð)Ó*Ø
÷
ð 
ó ó +ð
ñ Ð)Ó*Ø
÷
ð 
ó ó +ñ
r+   