ó
    ¢F¸gï  ã                  ó~   • S r SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  \(       a   \" 5        " S S\5      5       rg	)
zgr.Timer() component.é    )Úannotations)ÚTYPE_CHECKING)Údocument)Ú	Component)ÚEventsc                  óŽ   ^ • \ rS rSrSr\R                  /r SSSS.     SU 4S jjjjrSS jr	SS jr
SS jrS	 rS
 rSrU =r$ )ÚTimeré   z¬
Special component that ticks at regular intervals when active. It is not visible, and only used to trigger events at a regular interval through the `tick` event listener.
T)ÚactiveÚrenderc               ó,   >• X l         [        TU ]	  XS9  g)a  
Parameters:
    value: Interval in seconds between each tick.
    active: Whether the timer is active.
    render: If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.
)Úvaluer   N)r   ÚsuperÚ__init__)Úselfr   r   r   Ú	__class__s       €Úh/Users/admin/workspace/ai/PDFMathTranslate/myenv/lib/python3.13/site-packages/gradio/components/timer.pyr   ÚTimer.__init__   s   ø€ ð ŒÜ‰Ñ˜uÐÒ4ó    c                ó   • U$ )z{
Parameters:
    payload: The interval of the timer as a float or None.
Returns:
    The interval of the timer as a float.
© )r   Úpayloads     r   Ú
preprocessÚTimer.preprocess*   s	   € ð ˆr   c                ó   • U$ )zy
Parameters:
    value: The interval of the timer as a float or None.
Returns:
    The interval of the timer as a float.
r   )r   r   s     r   ÚpostprocessÚTimer.postprocess3   s	   € ð ˆr   c                ó
   • SS0$ )NÚtypeÚnumberr   ©r   s    r   Úapi_infoÚTimer.api_info<   s   € Ø˜Ð!Ð!r   c                ó   • g©Né   r   r!   s    r   Úexample_payloadÚTimer.example_payload?   ó   € Ør   c                ó   • gr%   r   r!   s    r   Úexample_valueÚTimer.example_valueB   r)   r   )r   )r&   )r   Úfloatr   Úboolr   r.   )r   úfloat | NoneÚreturnr/   )r   r/   r0   r/   )r0   Údict)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   ÚtickÚEVENTSr   r   r   r"   r'   r+   Ú__static_attributes__Ú__classcell__)r   s   @r   r	   r	      sn   ø† ñð
 	‰ð€Fð ð5ð Øñ5àð5ð ð	5ð
 ÷5ñ 5ô ôô"ò÷ð r   r	   N)r6   Ú
__future__r   Útypingr   Úgradio_client.documentationr   Úgradio.components.baser   Úgradio.eventsr   r	   r   r   r   Ú<module>r@      s:   ðÙ å "å  å 0å ,Ý  æØñ 
ƒô2ˆIó 2ó ñ2r   