+
    ÁFñjÅ  ã                   óJ   € R t ^ RIHt ^ RIHt ^ RIHt R R ltR	R R lltR# )
a.  This module contains auxiliary functionality for parsing MessageEntity objects.

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.
)ÚSequence)ÚMessageEntity)ÚTextEncodingc                ó<   € V ^8„  d   QhR\         R\        R\         /# )é   ÚtextÚentityÚreturn)Ústrr   )Úformats   "ÚN/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/_utils/entities.pyÚ__annotate__r   !   s!   € ÷ 6ñ 6œsð 6¬Mð 6¼cñ 6ó    c                óì   € V P                  \        P                  4      pW!P                  ^,          VP                  VP                  ,           ^,           pVP                  \        P                  4      # )a  Returns the text from a given :class:`telegram.MessageEntity`.

Args:
    text (:obj:`str`): The text to extract the entity from.
    entity (:class:`telegram.MessageEntity`): The entity to extract the text from.

Returns:
    :obj:`str`: The text of the given entity.
)Úencoder   Ú	UTF_16_LEÚoffsetÚlengthÚdecode)r   r   Úentity_texts   && r   Úparse_message_entityr   !   sU   € ð —+‘+œl×4Ñ4Ó5€KØŸm™m¨aÕ/°6·=±=À6Ç=Á=Õ3PÐTUÕ2UÐV€Kà×Ñœl×4Ñ4Ó5Ð5r   Nc          
      ó¤   € V ^8„  d   QhR\         R\        \        ,          R\        \         ,          R,          R\        \        \         3,          /# )r   r   ÚentitiesÚtypesNr	   )r
   r   r   Údict)r   s   "r   r   r   1   sD   € ÷ ñ Ü
ðÜ!¤-Õ0ðÜ9AÄ#½ÈÕ9Mðä	Œ-œÐ
Õñr   c                ó�   € Vf   \         P                  pV Uu/ uF!  q3P                  V9   g   K  V\        W4      bK#  	  up# u upi )a  
Returns a :obj:`dict` that maps :class:`telegram.MessageEntity` to :obj:`str`.
It contains entities filtered by their ``type`` attribute as
the key, and the text that each entity belongs to as the value of the :obj:`dict`.

Args:
    text (:obj:`str`): The text to extract the entity from.
    entities (list[:class:`telegram.MessageEntity`]): The entities to extract the text from.
    types (list[:obj:`str`], optional): List of ``MessageEntity`` types as strings. If the
        ``type`` attribute of an entity is contained in this list, it will be returned.
        Defaults to :attr:`telegram.MessageEntity.ALL_TYPES`.

Returns:
    dict[:class:`telegram.MessageEntity`, :obj:`str`]: A dictionary of entities mapped to
    the text that belongs to them, calculated based on UTF-16 codepoints.
)r   Ú	ALL_TYPESÚtyper   )r   r   r   r   s   &&& r   Úparse_message_entitiesr   1   sQ   € ð& ‚}Ü×'Ñ'ˆñ BJóÙAI°vÏ[É[Ð\aÑMaÔ2ˆÔ$ TÓ2Ò2Áñð ùò s
   ™A°A)N)	Ú__doc__Úcollections.abcr   Útelegram._messageentityr   Útelegram._utils.stringsr   r   r   © r   r   Ú<module>r$      s$   ðñ&õ %å 1Ý 0õ6÷ ñ r   