+
    NV-jí  ã                  óŽ   € ^ RI Ht ^ RIHtHt ^ RIt^ RIHtH	t	 ^ RI
t
R R lt]P                  ! RR7       ! R	 R
4      4       tR# )é    )Úannotations)ÚCallableÚMutableMappingN)ÚAnyÚLiteralc               ó    € V ^8„  d   QhRRRR/# )é   Úvaluer   Úreturn© )Úformats   "Úb/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/markdown_it/token.pyÚ__annotate__r   	   s   € ÷ 	ñ 	˜ð 	 ñ 	ó    c                ó\   € V '       g   / # \        V \        4      '       d   \        V 4      # V # )z‚Convert Token.attrs set as ``None`` or ``[[key, value], ...]`` to a dict.

This improves compatibility with upstream markdown-it.
)Ú
isinstanceÚlistÚdict)r
   s   &r   Úconvert_attrsr   	   s(   € ÷
 Øˆ	Ü�%œ×ÒÜ�E‹{ÐØ€Lr   T)Úslotsc            
      óº  € ] tR t^t$ R]R&    R]R&    R]R&    ]P                  ! ]R7      tR]R&    R	t	R
]R&    ^ t
R]R&    R	tR]R&    RtR]R&    RtR]R&    RtR]R&    ]P                  ! ]R7      tR]R&    RtR]R&    RtR]R&    R R ltR R ltR R ltR  R! ltR" R# ltR$ R% ltR& R' ltR( R) ltRR*R+R*R,R	R-R	R.]/R/ R0 llt]R1 R2 l4       tR3tR	# )4ÚTokenÚstrÚtypeÚtagzLiteral[-1, 0, 1]Únesting)Údefault_factoryzdict[str, str | int | float]ÚattrsNzlist[int] | NoneÚmapÚintÚlevelzlist[Token] | NoneÚchildrenÚ ÚcontentÚmarkupÚinfozdict[Any, Any]ÚmetaFÚboolÚblockÚhiddenc               ó   € V ^8„  d   QhRR/# )r	   r   ÚNoner   )r   s   "r   r   ÚToken.__annotate__M   s   € ÷ /ñ /˜tñ /r   c                	ó:   € \        V P                  4      V n        R # ©N)r   r   ©Úselfs   &r   Ú__post_init__ÚToken.__post_init__M   s   € Ü" 4§:¡:Ó.ˆŽ
r   c               ó    € V ^8„  d   QhRRRR/# )r	   Únamer   r   r    r   )r   s   "r   r   r-   P   s   € ÷ 3ñ 3˜cð 3 cñ 3r   c                	óÀ   € \         P                  ! R \        4       WP                  9  d   R# \	        V P                  P                  4       4      P                  V4      # )zEToken.attrIndex should not be used, since Token.attrs is a dictionaryéÿÿÿÿ)ÚwarningsÚwarnÚUserWarningr   r   ÚkeysÚindex©r1   r5   s   &&r   Ú	attrIndexÚToken.attrIndexP   sF   € Ü�ŠØSÜô	
ð —z‘zÔ!ØˆIÜ�D—J‘J—O‘OÓ%Ó&×,Ñ,¨TÓ2Ð2r   c               ó   € V ^8„  d   QhRR/# )r	   r   z#list[tuple[str, str | int | float]]r   )r   s   "r   r   r-   Y   s   € ÷ (ñ (Ð>ñ (r   c                óH   € \        V P                  P                  4       4      # )zGet (key, value) list of attrs.)r   r   Úitemsr0   s   &r   Ú	attrItemsÚToken.attrItemsY   s   € ä�D—J‘J×$Ñ$Ó&Ó'Ð'r   c               ó    € V ^8„  d   QhRRRR/# )r	   ÚattrDataztuple[str, str | int | float]r   r,   r   )r   s   "r   r   r-   ]   s   € ÷ "ñ "Ð!>ð "À4ñ "r   c                ó0   € Vw  r#V P                  W#4       R# )zAAdd `[ name, value ]` attribute to list. Init attrs if necessary.N)ÚattrSet)r1   rF   r5   r
   s   &&  r   ÚattrPushÚToken.attrPush]   s   € à‰ˆØ�‰�TÖ!r   c               ó$   € V ^8„  d   QhRRRRRR/# )r	   r5   r   r
   zstr | int | floatr   r,   r   )r   s   "r   r   r-   b   s"   € ÷ !ñ !˜Cð !Ð(9ð !¸dñ !r   c                ó"   € W P                   V&   R# )z>Set `name` attribute to `value`. Override old value if exists.N©r   )r1   r5   r
   s   &&&r   rH   ÚToken.attrSetb   s   € à �
‰
�4Ór   c               ó    € V ^8„  d   QhRRRR/# )r	   r5   r   r   zNone | str | int | floatr   )r   s   "r   r   r-   f   s   € ÷ *ñ *˜Cð *Ð$<ñ *r   c                ó:   € V P                   P                  VR4      # )z@Get the value of attribute `name`, or null if it does not exist.N)r   Úgetr=   s   &&r   ÚattrGetÚToken.attrGetf   s   € à�z‰z�~‰~˜d DÓ)Ð)r   c               ó$   € V ^8„  d   QhRRRRRR/# )r	   r5   r   r
   r   r,   r   )r   s   "r   r   r-   j   s!   € ÷ %ñ %˜Sð %¨ð %°ñ %r   c                óþ   € WP                   9   d_   V P                   V,          p\        V\        4      '       g    \        RV P                   V,           24      hV RV 2V P                   V&   R# W P                   V&   R# )zyJoin value to existing attribute via space.
Or create new attribute if not exists.
Useful to operate with token classes.
z#existing attr 'name' is not a str: Ú N)r   r   r   Ú	TypeError)r1   r5   r
   Úcurrents   &&& r   ÚattrJoinÚToken.attrJoinj   sq   € ð
 —:‘:ÔØ—j‘j Õ&ˆGÜ˜g¤s×+Ò+ÜØ9¸$¿*¹*ÀTÕ:JÐ9KÐLóð ð #* ¨!¨E¨7Ð3ˆD�J‰J�tÓà$�J‰J�tÓr   c               ó    € V ^8„  d   QhRRRR/# )r	   Úchangesr   r   r   r   )r   s   "r   r   r-   y   s   € ÷ +ñ +˜cð + eñ +r   c                ó0   € \         P                  ! V 3/ VB # )z&Return a shallow copy of the instance.)ÚdcÚreplace)r1   r\   s   &,r   ÚcopyÚ
Token.copyy   s   € ä�zŠz˜$Ñ* 'Ñ*Ð*r   TÚas_upstreamÚmeta_serializerÚfilterÚdict_factoryc               ó0   € V ^8„  d   QhRRRRRRRRRR	R
R/# )r	   r"   r(   rb   rc   z&Callable[[dict[Any, Any]], Any] | Nonerd   z!Callable[[str, Any], bool] | Nonere   z'Callable[..., MutableMapping[str, Any]]r   úMutableMapping[str, Any]r   )r   s   "r   r   r-   }   sI   € ÷ -ñ -ð ð-ð ð	-ð
 @ð-ð 2ð-ð >ð-ð 
"ñ-r   c               ó<  a a€ V! V 3R l\         P                  ! S 4       4       4      pS'       d!   V! V3R lVP                  4        4       4      pV'       dH   RV9   dA   VR,          '       g   RM+VR,          P                  4        UUu. uF  w  rxWx.NK
  	  uppVR&   V'       d   RV9   d   V! VR,          4      VR&   V'       dI   VP                  RR4      '       d1   VR,           U	u. uF  p	V	P	                  VSVVVR7      NK  	  up	VR&   V# u uppi u up	i )a’  Return the token as a dictionary.

:param children: Also convert children to dicts
:param as_upstream: Ensure the output dictionary is equal to that created by markdown-it
    For example, attrs are converted to null or lists
:param meta_serializer: hook for serializing ``Token.meta``
:param filter: A callable whose return code determines whether an
    attribute or element is included (``True``) or dropped (``False``).
    Is called with the (key, value) pair.
:param dict_factory: A callable to produce dictionaries from.
    For example, to produce ordered dictionaries instead of normal Python
    dictionaries, pass in ``collections.OrderedDict``.

c              3  óf   <"  € T F&  qP                   \        SVP                   4      3x € K(  	  R # 5ir/   )r5   Úgetattr)Ú.0Úfr1   s   & €r   Ú	<genexpr>Ú Token.as_dict.<locals>.<genexpr>”   s#   øé € ÐXÉÀ1§¡¬°°a·f±fÓ(=Õ>Ëùs   ƒ.1c              3  óN   <"  € T F  w  rS! W4      '       g   K  W3x € K  	  R # 5ir/   r   )rk   ÚkÚvrd   s   &  €r   rm   rn   –   s   øé € Ð"V±o©d¨aÉÐPQÏ¤6 A¥6³oùs   ƒ%š%r   Nr'   r"   )r"   rd   re   rb   rc   )r^   ÚfieldsrB   rQ   Úas_dict)
r1   r"   rb   rc   rd   re   Úmappingrp   rq   Úchilds
   f$$$d$    r   rs   ÚToken.as_dict}   s  ù€ ñ. ÔXÌÏ	Ê	ÐRVÌÓXÓXˆßÙ"Ô"V°g·m±m´oÓ"VÓVˆGß˜7 gÔ-ð ˜w×'Ô'ñ à)0°Õ)9×)?Ñ)?Ô)AÔBÑ)A¡ �q“fÑ)AÒBð �GÑ÷
 ˜v¨Ô0Ù-¨g°f­oÓ>ˆG�F‰Oß˜Ÿ™ J°×5Ò5ð % ZÖ0ó	#ñ 1�Eð —‘Ø%Ø!Ø!-Ø +Ø$3ð ö ñ 1ñ	#ˆG�JÑð ˆùó Cùò
	#s   ÂDÃ,Dc               ó    € V ^8„  d   QhRRRR/# )r	   Údctrg   r   r   r   )r   s   "r   r   r-   ­   s   € ÷ ñ Ð4ð ¸ñ r   c                ó¢   € V ! R/ VB pVP                   '       d0   VP                    Uu. uF  q0P                  V4      NK  	  upVn         V# u upi )zConvert a dict to a Token.r   )r"   Ú	from_dict)Úclsrx   ÚtokenÚcs   &&  r   rz   ÚToken.from_dict¬   sD   € ñ ‘
�c‘
ˆØ�>�>ˆ>Ø8=¿ºÓG¹°1Ÿm™m¨AÖ.¹ÑGˆEŒNØˆùò Hs   ©ArM   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__annotations__r^   Úfieldr   r   r   r!   r"   r$   r%   r&   r'   r)   r*   r2   r>   rC   rI   rH   rR   rY   r`   rs   Úclassmethodrz   Ú__static_attributes__r   r   r   r   r      s:  ‡ à
ƒIØ;à	ƒHØ!àÓðð +-¯(ª(À4Ô*H€EÐ'ÓHðð
 !€CÐ	Ó Ø=à€Eˆ3ƒNØ2à#'€HÐ Ó'Ø7à€GˆSÓØUà€FˆCÓØ?à€Dˆ#ƒNðð Ÿ8š8°DÔ9€Dˆ.Ó9Ø9à€Eˆ4Óðð €FˆDÓðõ/õ3õ(õ"õ
!õ*õ%õ+ð-ð ð-ð !ð	-ð
 CGð-ð 59ð-ð AE÷-ð^ ôó ôr   r   )Ú
__future__r   Úcollections.abcr   r   Údataclassesr^   Útypingr   r   r8   r   Ú	dataclassr   r   r   r   Ú<module>rŒ      s>   ðÝ "ç 4Û ß Û õ	ð ‡‚�DÔ÷\ð \ó ò\r   