§
    ¬eîi­  ã                   ó   — d Z ddlZddlmZ ddlmZmZmZm	Z	 ddl
mZ ddlmZ ddlmZmZ erddlmZ dd	lmZmZ  ed
¦  «        Zdee         dz  deedf         fd„Ze	d%d„¦   «         Ze	deez  ej        z  dej        fd„¦   «         Zdeez  ej        z  dz  dej        dz  fd„Zdedz  dee         dee         fd„Z eded¬¦  «        Z eddd¬¦  «        Zere G d„ de¦  «        ¦   «         Z dedz  de!e         dddedz  fd„Z"dedz  de!e         ddd e#d!         dedz  f
d"„Z$de#e         dz  de!e         dddeedf         fd#„Z%de#e         dz  de!e         ddd e#d!         deedf         f
d$„Z&dS )&a:  This module contains helper functions related to parsing arguments for classes and methods.

Warning:
    Contents of this module are intended to be used internally by the library and *not* by the
    user. Changes to this module are not considered breaking changes and may not be documented in
    the changelog.
é    N)ÚSequence)ÚTYPE_CHECKINGÚProtocolÚTypeVarÚoverload)ÚLinkPreviewOptions)ÚTelegramObject)ÚJSONDictÚODVInput)Útype_check_only)ÚBotÚFileCredentialsÚTÚargÚreturn.c                 ó(   — | rt          | ¦  «        ndS )zÇParses an optional sequence into a tuple

    Args:
        arg (:obj:`Sequence`): The sequence to parse.

    Returns:
        :obj:`Tuple`: The sequence converted to a tuple or an empty tuple.
    © )Útuple©r   s    úc/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_utils/argumentparsing.pyÚparse_sequence_argr   +   s   € ð Ð$�5�‰:Œ:ˆ: "Ð$ó    c                 ó   — d S ©Nr   r   s    r   Úto_timedeltar   7   s   € Ø%( Sr   c                 ó   — d S r   r   r   s    r   r   r   ;   s	   € ð
 �Cr   c                 ór   — | €dS t          | t          t          z  ¦  «        rt          j        | ¬¦  «        S | S )a  Parses an optional time period in seconds into a timedelta

    Args:
        arg (:obj:`int` | :class:`datetime.timedelta`, optional): The time period to parse.

    Returns:
        :obj:`timedelta`: The time period converted to a timedelta object or :obj:`None`.
    N)Úseconds)Ú
isinstanceÚintÚfloatÚdtmÚ	timedeltar   s    r   r   r   C   s<   € ð €{ØˆtÝ�#•s�U‘{Ñ#Ô#ð *ÝŒ} SÐ)Ñ)Ô)Ð)Ø€Jr   Údisable_web_page_previewÚlink_preview_optionsc                 óP   — | r|rt          d¦  «        ‚| �t          | ¬¦  «        }|S )zŠWrapper around warn_about_deprecated_arg_return_new_arg. Takes care of converting
    disable_web_page_preview to LinkPreviewOptions.
    zXParameters `disable_web_page_preview` and `link_preview_options` are mutually exclusive.N)Úis_disabled)Ú
ValueErrorr   )r$   r%   s     r   Úparse_lpo_and_dwppr)   S   sK   € ð  ð 
Ð$8ð 
Ýðñ
ô 
ð 	
ð
  Ð+Ý1Ð>VÐWÑWÔWÐàÐr   ÚTele_coT)ÚboundÚ	covariantÚTeleCrypto_coÚHasDecryptMethodc                   ó¶   — e Zd ZdZedee         deddded         def
d	„¦   «         Z	edee         dee         ddded         de
ed
f         f
d„¦   «         ZdS )r.   r   ÚclsÚdataÚbotú
Bot | NoneÚcredentialsr   r   c                 ó   — d S r   r   ©r0   r1   r2   r4   s       r   Úde_json_decryptedz"HasDecryptMethod.de_json_decryptedn   s	   € ð  ˜Cr   .c                 ó   — d S r   r   r6   s       r   Úde_list_decryptedz"HasDecryptMethod.de_list_decryptedv   s	   € ð ),¨r   N)Ú__name__Ú
__module__Ú__qualname__Ú	__slots__ÚclassmethodÚtyper-   r
   Úlistr7   r   r9   r   r   r   r.   r.   j   s×   € € € € € àˆ	à	ð	 Ø�mÔ$ð	 àð	 ð ð	 ð Ð/Ô0ð		 ð
 ð	 ð 	 ð 	 ñ 
Œð	 ð 
ð	,Ø�mÔ$ð	,à�x”.ð	,ð ð	,ð Ð/Ô0ð		,ð
 �= #Ð%Ô&ð	,ð 	,ð 	,ñ 
Œð	,ð 	,ð 	,r   r1   r0   r2   r3   c                 ó6   — | €dS |                      | |¦  «        S )z<Wrapper around TO.de_json that returns None if data is None.N)Úde_json©r1   r0   r2   s      r   Úde_json_optionalrD      s"   € ð €|Øˆtà�;Š;�t˜SÑ!Ô!Ð!r   r4   r   c                 ó8   — | €dS |                      | ||¦  «        S )zFWrapper around TO.de_json_decrypted that returns None if data is None.N)r7   ©r1   r0   r2   r4   s       r   Úde_json_decrypted_optionalrG   ‰   s&   € ð €|Øˆtà× Ò   s¨KÑ8Ô8Ð8r   c                 ó6   — | €dS |                      | |¦  «        S )zEWrapper around TO.de_list that returns an empty list if data is None.Nr   )Úde_listrC   s      r   Úde_list_optionalrJ   –   s"   € ð €|Øˆrà�;Š;�t˜SÑ!Ô!Ð!r   c                 ó8   — | €dS |                      | ||¦  «        S )zOWrapper around TO.de_list_decrypted that returns an empty list if data is None.Nr   )r9   rF   s       r   Úde_list_decrypted_optionalrL       s&   € ð €|Øˆrà× Ò   s¨KÑ8Ô8Ð8r   )r   Nr   N)'Ú__doc__Údatetimer"   Úcollections.abcr   Útypingr   r   r   r   Útelegram._linkpreviewoptionsr   Útelegram._telegramobjectr	   Útelegram._utils.typesr
   r   r   Útelegramr   r   r   r   r   r   r    r!   r#   Úboolr)   r*   r-   r.   r?   rD   r@   rG   rJ   rL   r   r   r   ú<module>rV      s‚  ðð&ð ð Ð Ð Ð Ø $Ð $Ð $Ð $Ð $Ð $Ø =Ð =Ð =Ð =Ð =Ð =Ð =Ð =Ð =Ð =Ð =Ð =à ;Ð ;Ð ;Ð ;Ð ;Ð ;Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4àð .Ø&Ð&Ð&Ð&Ð&Ð&à-Ð-Ð-Ð-Ð-Ð-Ð-Ð-à€GˆC�L„L€ð	%˜H QœK¨$Ñ.ð 	%°5¸¸C¸´=ð 	%ð 	%ð 	%ð 	%ð 
Ø (Ð (Ð (ñ 
„Ø (ð 
ðàˆe‰�c”mÑ#ðð 	„]ð	ð ð ñ 
„ðð�c˜E‘k C¤MÑ1°DÑ8ð ¸S¼]ÈTÑ=Qð ð ð ð ð  Ø" T™kð ØAIÐJ\ÔA]ð àÐ Ô!ð ð  ð  ð  ð$ ˆ'�) >¸TÐ
BÑ
BÔ
B€Ø�˜Ð/AÈTÐRÑRÔR€àð ,àð,ð ,ð ,ð ,ð ,˜8ñ ,ô ,ñ „_ð,ð("Ø
�T‰/ð"Ø $ W¤ð"Ø4@ð"àˆt�^ð"ð "ð "ð "ð
9Ø
�T‰/ð
9à	ˆmÔ	ð
9ð 
ð
9ð Ð'Ô(ð	
9ð
 �TÑð
9ð 
9ð 
9ð 
9ð"Ø
ˆxŒ.˜4Ñ
ð"Ø&*¨7¤mð"Ø:Fð"à
ˆ7�Cˆ<Ôð"ð "ð "ð "ð
9Ø
ˆxŒ.˜4Ñ
ð
9à	ˆmÔ	ð
9ð 
ð
9ð Ð'Ô(ð	
9ð
 ˆ=˜#ÐÔð
9ð 
9ð 
9ð 
9ð 
9ð 
9r   