
    +g6                    f   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K	Jr  \ " S S	5      5       r\ " S
 S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       rS(S jrS(S jr    S)S jrS*S jr    S+S jr    S,S jr      S-S jr      S.S jr    S/S jr        S0S jr\" S5      \ " S S5      5       5       r\" S5      \ " S  S!5      5       5       r\" S"5      \ " S# S$5      5       5       r\" S%5      \ " S& S'5      5       5       rg)1    )annotations   )event_classT_JSON_DICT)	dataclassN)dom)runtimec                      \ rS rSr% SrS\S'   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 5       rSrg)	Animation   z
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                   [        5       n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                  US'   U R                  US'   U R                  b  U R                  R                  5       US	'   U R                  b  U R                  US
'   U R                  b  U R                  R                  5       US'   U$ )Nidr   pausedState	playStateplaybackRate	startTimecurrentTimetyper   cssIdviewOrScrollTimeline)dictr   r   r   r   r   r   r   r   r   to_jsonr   r   selfjsons     y/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/selenium/webdriver/common/devtools/v133/animation.pyr'   Animation.to_json:   s    vXXT
yyV"//] OO[#11^ OO["//]zzV;;"![[002DN;;" KKDM''3+/+G+G+O+O+QD'(    c                   U " [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      S	U;   a  [        R	                  US	   5      OS S
U;   a  [        US
   5      OS SU;   a  [
        R	                  US   5      S9$ S S9$ )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+   r0   Animation.from_jsonL   s    DJT&\"d=124,-^ 45T+./tM23d6l#@HD@P?,,T(^<VZ)0D3tG}%ddz  C  eC$8$B$B4H^C_$`
 	
 IM
 	
r-    )__name__
__module____qualname____firstlineno____doc____annotations__r   r   r   r'   classmethodr0   __static_attributes__r5   r-   r+   r   r      s     
H I  O    J 04F,3 $(F ' FJBI$ 
 
r-   r   c                  r    \ rS rSr% 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)r1   ]   z
Timeline instance
zdom.ScrollOrientationaxisN"typing.Optional[dom.BackendNodeId]source_node_idztyping.Optional[float]start_offset
end_offsetsubject_node_idc                l   [        5       nU R                  R                  5       US'   U R                  b  U R                  R                  5       US'   U R                  b  U R                  US'   U R
                  b  U R
                  US'   U R                  b  U R                  R                  5       US'   U$ )Nr@   sourceNodeIdstartOffset	endOffsetsubjectNodeId)r&   r@   r'   rB   rC   rD   rE   r(   s     r+   r'   ViewOrScrollTimeline.to_jsonu   s    vyy((*V*#'#6#6#>#>#@D ("&"3"3D??& $D+$($8$8$@$@$BD!r-   c           
     J   U " [         R                  R                  US   5      SU;   a"  [         R                  R                  US   5      OS SU;   a  [	        US   5      OS SU;   a  [	        US   5      OS SU;   a$  [         R                  R                  US   5      S9$ S S9$ )Nr@   rG   rH   rI   rJ   )r@   rB   rC   rD   rE   )r   ScrollOrientationr0   BackendNodeIdr   r2   s     r+   r0   ViewOrScrollTimeline.from_json   s    &&00f>P^bfPf3,,66tN7KLlp7D7LtM23RV3>$3FuT+./DRaeiRiC--77_8MN
 	

 pt
 	
r-   r5   )r6   r7   r8   r9   r:   r;   rB   rC   rD   rE   r'   r<   r0   r=   r5   r-   r+   r1   r1   ]   s\       :>N6= ,0L(/ *.J&-
 ;?O7> 
 
r-   r1   c                      \ rS rSr% SrS\S'   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 5       r
Srg)r/      z
AnimationEffect instance
r   delay	end_delayiteration_start
iterationsdurationr   	directionfilleasingNrA   backend_node_idztyping.Optional[KeyframesRule]keyframes_rulec                   [        5       n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                  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$ )NrR   endDelayiterationStartrU   rV   rW   rX   rY   backendNodeIdkeyframesRule)r&   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r'   r[   r(   s     r+   r'   AnimationEffect.to_json   s    v

W>>Z!%!5!5!__\==Z NN[yyVX+$($8$8$@$@$BD!*$($7$7$?$?$AD!r-   c                p   U " [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      S	U;   a"  [        R                  R	                  US	   5      OS S
U;   a  [
        R	                  US
   5      S9
$ S S9
$ )NrR   r]   r^   rU   rV   rW   rX   rY   r_   r`   )
rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   )r   r   r   rN   r0   KeyframesRuler2   s     r+   r0   AnimationEffect.from_json   s    W&D,-!$'7"89T,/04
+,${+,T&\"tH~&RaeiRiC--77_8MNosM\`dMd=2243HI
 	
 ko
 	
r-   r5   )r6   r7   r8   r9   r:   r;   rZ   r[   r'   r<   r0   r=   r5   r-   r+   r/   r/      su     L    O N I K ;?O7> 6:N29  
 
r-   r/   c                  H    \ rS rSr% SrS\S'   SrS\S'   S r\S	 5       r	S
r
g)rc      z
Keyframes Rule
ztyping.List[KeyframeStyle]	keyframesNr   r   c                    [        5       nU R                   Vs/ s H  o"R                  5       PM     snUS'   U R                  b  U R                  US'   U$ s  snf )Nrg   r   )r&   rg   r'   r   )r)   r*   is      r+   r'   KeyframesRule.to_json   sL    v26..A.QYY[.A[99 99DL Bs   Ac                    U " US    Vs/ s H  n[         R                  U5      PM     snSU;   a  [        US   5      S9$ S S9$ s  snf )Nrg   r   )rg   r   )KeyframeStyler0   r   )r3   r*   ri   s      r+   r0   KeyframesRule.from_json   sU    ;?;LM;La}..q1;LM&,nT&\"
 	
:>
 	
Ms   Ar5   )r6   r7   r8   r9   r:   r;   r   r'   r<   r0   r=   r5   r-   r+   rc   rc      s5     *) "&D
% 
 
r-   rc   c                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rSr	g	)
rl      z
Keyframe Style
r   offsetrY   c                V    [        5       nU R                  US'   U R                  US'   U$ )Nrp   rY   )r&   rp   rY   r(   s     r+   r'   KeyframeStyle.to_json   s(    vXXr-   c                @    U " [        US   5      [        US   5      S9$ )Nrp   rY   )rp   rY   r   r2   s     r+   r0   KeyframeStyle.from_json   s'    tH~&tH~&
 	
r-   r5   N)
r6   r7   r8   r9   r:   r;   r'   r<   r0   r=   r5   r-   r+   rl   rl      s.     K K 
 
r-   rl   c               #     #    SS0n U v ng7f)z*
Disables animation domain notifications.
methodzAnimation.disableNr5   cmd_dictr*   s     r+   disablerz     s     
 	%H >D   
c               #     #    SS0n U v ng7f)z)
Enables animation domain notifications.
rw   zAnimation.enableNr5   rx   s     r+   enabler}     s     
 	$H >Dr{   c              #  T   #    [        5       nXS'   SUS.nUv n[        US   5      $ 7f)zq
Returns the current time of the an animation.

:param id_: Id of animation.
:returns: Current time of the page.
r   zAnimation.getCurrentTimerw   paramsr"   )r&   r   )r   r   ry   r*   s       r+   get_current_timer     s;      &F4L,H >Dm$%%s   &(c               #  6   #    SS0n U v n[        US   5      $ 7f)zc
Gets the playback rate of the document timeline.

:returns: Playback rate for animations on page.
rw   zAnimation.getPlaybackRater    )r   rx   s     r+   get_playback_rater   -  s-      	-H >Dn%&&s   c              #  f   #    [        5       nU  Vs/ s H  o"PM     snUS'   SUS.nUv ngs  snf 7f)zn
Releases a set of animations to no longer be manipulated.

:param animations: List of animation ids to seek.

animationszAnimation.releaseAnimationsr   Nr&   )r   r   ri   ry   r*   s        r+   release_animationsr   :  sB      &F'12z!Az2F</H >D 3s   1,1c              #  |   #    [        5       nXS'   SUS.nUv n[        R                  R                  US   5      $ 7f)zu
Gets the remote object of the Animation.

:param animation_id: Animation id.
:returns: Corresponding remote object.
animationIdzAnimation.resolveAnimationr   remoteObject)r&   r	   RemoteObjectr0   )animation_idr   ry   r*   s       r+   resolve_animationr   K  sH      &F(=.H >D))$~*>??s   :<c              #  n   #    [        5       nU  Vs/ s H  o3PM     snUS'   XS'   SUS.nUv ngs  snf 7f)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.
r   r"   zAnimation.seekAnimationsr   Nr   )r   r   r   ri   ry   r*   s         r+   seek_animationsr   ^  sJ      &F'12z!Az2F<(=,H >D 3   505c              #  n   #    [        5       nU  Vs/ s H  o3PM     snUS'   XS'   SUS.nUv ngs  snf 7f)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.
r   pausedzAnimation.setPausedr   Nr   )r   r   r   ri   ry   r*   s         r+   
set_pausedr   r  sJ      &F'12z!Az2F<8'H >D 3r   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zn
Sets the playback rate of the document timeline.

:param playback_rate: Playback rate for animations on page
r    zAnimation.setPlaybackRater   Nr   )r   r   ry   r*   s       r+   set_playback_rater     s,      &F*>-H >Ds   c              #  J   #    [        5       nXS'   XS'   X#S'   SUS.nUv ng7f)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.
r   rV   rR   zAnimation.setTimingr   Nr   )r   rV   rR   r   ry   r*   s         r+   
set_timingr     s;      &F(=!:7O'H >Ds   !#zAnimation.animationCanceledc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	AnimationCanceledi  z1
Event for when an animation has been cancelled.
r   r   c                &    U " [        US   5      S9$ Nr   )r   rt   r2   s     r+   r0   AnimationCanceled.from_json      DJ
 	
r-   r5   N)r*   r   returnr   	r6   r7   r8   r9   r:   r;   r<   r0   r=   r5   r-   r+   r   r           
H
 
r-   r   zAnimation.animationCreatedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	AnimationCreatedi  z1
Event for each animation that has been created.
r   r   c                &    U " [        US   5      S9$ r   rt   r2   s     r+   r0   AnimationCreated.from_json  r   r-   r5   N)r*   r   r   r   r   r5   r-   r+   r   r     r   r-   r   zAnimation.animationStartedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	AnimationStartedi  z,
Event for animation that has been started.
r   	animationc                :    U " [         R                  US   5      S9$ Nr   )r   r   r0   r2   s     r+   r0   AnimationStarted.from_json  "    ))${*;<
 	
r-   r5   N)r*   r   r   r   r   r5   r-   r+   r   r     !     
 
r-   r   zAnimation.animationUpdatedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	AnimationUpdatedi  z,
Event for animation that has been updated.
r   r   c                :    U " [         R                  US   5      S9$ r   r   r2   s     r+   r0   AnimationUpdated.from_json  r   r-   r5   N)r*   r   r   r   r   r5   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   )r   typing.List[str]r   r   )r   r   r   z@typing.Generator[T_JSON_DICT, T_JSON_DICT, runtime.RemoteObject])r   r   r   r   r   r   )r   r   r   r   r   r   )r   r   r   r   )r   r   rV   r   rR   r   r   r   )
__future__r   utilr   r   dataclassesr   enumtyping r   r	   r   r1   r/   rc   rl   rz   r}   r   r   r   r   r   r   r   r   r   r   r   r   r5   r-   r+   <module>r      s   # * !     I
 I
 I
X ,
 ,
 ,
^ B
 B
 B
J 
 
 
2 
 
 
0&&	8&&
'$	7"@@	G@&$ 
8($ 
8(	7"  
8	. *+

 
  ,
 )*

 
  +
 )*

 
  +
 )*

 
  +
r-   