Ë
    ì—0jñ*  ã                   ó@  — d Z ddlZd„ Z ee«      Z ed„ «      Z eej                  «      Z eej                  «      Z	 eej                  «      Zd„ Z e e«       «      Zd„ Z e e«       «      Zd„ Z e«       Z ee«      Zej%                  «        d„ Z e«       Z ee«      Z G d	„ d
«      Z e e«       j,                  «      Z ee«      Z eg j4                  «      Z eej:                  «      Z e e«       j>                  «      Z  ee!jD                  «      Z# ee$j                  d   «      Z% ee«      Z&	 e'‚# e'$ r8Z( ee(jR                  «      Z* ee(jR                  jV                  «      Z,Y dZ([(ndZ([(ww xY w eej                  «      Z- eej\                  «      Z/[[[[[[[dd„Z0d„ Z1dd„Z2d„ Z3d„ Z4 G d„ d«      Z5 G d„ d«      Z6d„ Z7 ee8e9   «      Z: ee9e!z  «      Z; ee<«      Z= ed«      Z> ee?«      Z@ eA«       D � cg c]  } | dd dk7  sŒ| ‘Œ c} ZByc c} w )zO
Define names for built-in types that aren't directly accessible as a builtin.
é    Nc                   ó   — y ©N© r   ó    ú"/usr/local/lib/python3.12/types.pyÚ_fr      s   € ˆ$r   c                   ó   — y r   r   r   r   r   Ú<lambda>r
      s   € ˜$r   c                  ó0   ‡— dŠˆfd„} | j                   d   S )Né   c                   ó   •— y r   r   )Úas   €r   Úfz_cell_factory.<locals>.f   s   ø� r   r   )Ú__closure__)r   r   s    @r   Ú_cell_factoryr      s   ø€ Ø	€Aôà�=‰=˜ÑÐr   c               #   ó   K  — d–— y ­w)Nr   r   r   r   r   Ú_gr      s   è ø€ Ø
ƒGùs   ‚c               ƒ   ó   K  — y ­wr   r   r   r   r   Ú_cr      s   è ø€ �ùs   ‚c                 ó   K  — d ­–— y ­wr   r   r   r   r   Ú_agr   "   s	   è ø€ Ý	ùs   ‚	c                   ó   — e Zd Zd„ Zy)Ú_Cc                  ó   — y r   r   ©Úselfs    r   Ú_mz_C._m(   s   € �$r   N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   '   s   „ Ûr   r   Úfromkeysc                 óv   — t        |«      }t        | ||«      \  }}}|� ||«       ||ur||d<    || ||fi |¤ŽS )zBCreate a class object dynamically using the appropriate metaclass.Ú__orig_bases__)Úresolve_basesÚprepare_class)ÚnameÚbasesÚkwdsÚ	exec_bodyÚresolved_basesÚmetaÚnss          r   Ú	new_classr-   B   sT   € ä" 5Ó)€NÜ" 4¨¸Ó>�N€Dˆ"ˆdØÐÙ�"ŒØ˜UÑ"Ø$ˆÐÑÙ��n bÑ1¨DÑ1Ð1r   c                 ó:  — t        | «      }d}d}t        | «      D ]p  \  }}t        |t        «      rŒt	        |d«      sŒ$|j                  | «      }d}t        |t        «      st        d«      ‚||||z   ||z   dz    |t        |«      dz
  z  }Œr |s| S t        |«      S )z8Resolve MRO entries dynamically as specified by PEP 560.Fr   Ú__mro_entries__Tz#__mro_entries__ must return a tupler   )	ÚlistÚ	enumerateÚ
isinstanceÚtypeÚhasattrr/   ÚtupleÚ	TypeErrorÚlen)r'   Ú	new_basesÚupdatedÚshiftÚiÚbaseÚnew_bases          r   r$   r$   L   s®   € ä�U“€IØ€GØ€EÜ˜UÖ#‰ˆˆ4Ü�dœDÔ!ØÜ�tÐ.Ô/ØØ×'Ñ'¨Ó.ˆØˆÜ˜(¤EÔ*ÜÐAÓBÐBà+3ˆI�a˜‘g˜a ™g a™iÐ(Ø”S˜“] QÑ&Ñ&‰Eð $ñ ØˆÜ�ÓÐr   c                 ó  — |€i }nt        |«      }d|v r|j                  d«      }n|rt        |d   «      }nt        }t        |t        «      rt	        ||«      }t        |d«      r |j                  | |fi |¤Ž}ni }|||fS )az  Call the __prepare__ method of the appropriate metaclass.

    Returns (metaclass, namespace, kwds) as a 3-tuple

    *metaclass* is the appropriate metaclass
    *namespace* is the prepared class namespace
    *kwds* is an updated copy of the passed in kwds argument with any
    'metaclass' entry removed. If no kwds argument is passed in, this will
    be an empty dict.
    Ú	metaclassr   Ú__prepare__)ÚdictÚpopr3   r2   Ú_calculate_metar4   r@   )r&   r'   r(   r+   r,   s        r   r%   r%   a   sŽ   € ð €|Ø‰ä�D‹zˆØ�dÑØ�x‰x˜Ó$‰áÜ˜˜a™“>‰DäˆDÜ�$œÔô ˜t UÓ+ˆÜˆt�]Ô#ØˆT×Ñ˜d EÑ2¨TÑ2‰àˆØ��Tˆ>Ðr   c                 óz   — | }|D ]3  }t        |«      }t        ||«      rŒt        ||«      r|}Œ*t        d«      ‚ |S )z%Calculate the most derived metaclass.zxmetaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases)r3   Ú
issubclassr6   )r+   r'   Úwinnerr<   Ú	base_metas        r   rC   rC   �   sR   € à€FÛˆÜ˜“Jˆ	Ü�f˜iÔ(ØÜ�i Ô(ØˆFØäð >ó ?ð 	?ð ð €Mr   c                ó®   — 	 | j                   j                  d| j                  «      S # t        $ r# t	        dt        | «      j                  ›�«      d‚w xY w)a»  Return the class's "original" bases prior to modification by `__mro_entries__`.

    Examples::

        from typing import TypeVar, Generic, NamedTuple, TypedDict

        T = TypeVar("T")
        class Foo(Generic[T]): ...
        class Bar(Foo[int], float): ...
        class Baz(list[str]): ...
        Eggs = NamedTuple("Eggs", [("a", int), ("b", str)])
        Spam = TypedDict("Spam", {"a": int, "b": str})

        assert get_original_bases(Bar) == (Foo[int], float)
        assert get_original_bases(Baz) == (list[str],)
        assert get_original_bases(Eggs) == (NamedTuple,)
        assert get_original_bases(Spam) == (TypedDict,)
        assert get_original_bases(int) == (object,)
    r#   z"Expected an instance of type, not N)Ú__dict__ÚgetÚ	__bases__ÚAttributeErrorr6   r3   r   )Úclss    r   Úget_original_basesrN   “   sW   € ð(Ø�|‰|×ÑÐ 0°#·-±-Ó@Ð@øÜò ÜØ0´°c³×1CÑ1CÐ0FÐGó
àð	ðús	   ‚%( ¨,Ac                   ó>   — e Zd ZdZd
d„Zdd„Zd„ Zd„ Zd„ Zd„ Z	d	„ Z
y)ÚDynamicClassAttributeaØ  Route attribute access on a class to __getattr__.

    This is a descriptor, used to define attributes that act differently when
    accessed through an instance and through a class.  Instance access remains
    normal, but access to an attribute through a class will be routed to the
    class's __getattr__ method; this is done by raising AttributeError.

    This allows one to have properties active on an instance, and have virtual
    attributes on the class with the same name.  (Enum used this between Python
    versions 3.4 - 3.9 .)

    Subclass from this to use a different method of accessing virtual attributes
    and still be treated properly by the inspect module. (Enum uses this since
    Python 3.10 .)

    Nc                 ó    — || _         || _        || _        |xs |j                  | _        |d u | _        t        t        |dd«      «      | _        y )NÚ__isabstractmethod__F)ÚfgetÚfsetÚfdelÚ__doc__Úoverwrite_docÚboolÚgetattrrR   )r   rS   rT   rU   Údocs        r   Ú__init__zDynamicClassAttribute.__init__À   sJ   € ØˆŒ	ØˆŒ	ØˆŒ	àÒ*˜dŸl™lˆŒØ  D˜[ˆÔä$(¬°Ð7MÈuÓ)UÓ$VˆÕ!r   c                 ó†   — |€| j                   r| S t        «       ‚| j                  €t        d«      ‚| j                  |«      S )Nzunreadable attribute)rR   rL   rS   )r   ÚinstanceÚ
ownerclasss      r   Ú__get__zDynamicClassAttribute.__get__Ê   sD   € ØÐØ×(Ò(Ø�Ü Ó"Ð"Ø�Y‰YÐÜ Ð!7Ó8Ð8Ø�y‰y˜Ó"Ð"r   c                 óV   — | j                   €t        d«      ‚| j                  ||«       y )Nzcan't set attribute)rT   rL   )r   r]   Úvalues      r   Ú__set__zDynamicClassAttribute.__set__Ó   s&   € Ø�9‰9ÐÜ Ð!6Ó7Ð7Ø�	‰	�(˜EÕ"r   c                 óT   — | j                   €t        d«      ‚| j                  |«       y )Nzcan't delete attribute)rU   rL   )r   r]   s     r   Ú
__delete__z DynamicClassAttribute.__delete__Ø   s$   € Ø�9‰9ÐÜ Ð!9Ó:Ð:Ø�	‰	�(Õr   c                 óÈ   — | j                   r|j                  nd } t        | «      || j                  | j                  |xs | j                  «      }| j                   |_         |S r   )rW   rV   r3   rT   rU   )r   rS   ÚfdocÚresults       r   ÚgetterzDynamicClassAttribute.getterÝ   sO   € Ø#×1Ò1ˆt�|Š|°tˆØ”�d“˜D $§)¡)¨T¯Y©Y¸Ò8LÀÇÁÓMˆØ#×1Ñ1ˆÔØˆr   c                 óŒ   —  t        | «      | j                  || j                  | j                  «      }| j                  |_        |S r   )r3   rS   rU   rV   rW   )r   rT   rg   s      r   ÚsetterzDynamicClassAttribute.setterã   s7   € Ø”�d“˜DŸI™I t¨T¯Y©Y¸¿¹ÓEˆØ#×1Ñ1ˆÔØˆr   c                 óŒ   —  t        | «      | j                  | j                  || j                  «      }| j                  |_        |S r   )r3   rS   rT   rV   rW   )r   rU   rg   s      r   ÚdeleterzDynamicClassAttribute.deleterè   s7   € Ø”�d“˜DŸI™I t§y¡y°$¸¿¹ÓEˆØ#×1Ñ1ˆÔØˆr   )NNNNr   )r   r   r    rV   r[   r_   rb   rd   rh   rj   rl   r   r   r   rP   rP   ¯   s+   „ ñó Wó#ò#ò
ò
òó
r   rP   c                   ó„   — e Zd Zd„ Zd„ Zd„ Zd„ Zed„ «       Zed„ «       Z	ed„ «       Z
ed„ «       ZeZe	Ze
ZeZd	„ Zd
„ ZeZy)Ú_GeneratorWrapperc                 óˆ   — || _         |j                  t        u | _        t	        |dd «      | _        t	        |dd «      | _        y )Nr   r    )Ú_GeneratorWrapper__wrappedÚ	__class__ÚGeneratorTypeÚ_GeneratorWrapper__isgenrY   r   r    )r   Úgens     r   r[   z_GeneratorWrapper.__init__ð   s:   € ØˆŒØ—}‘}¬Ð5ˆŒÜ  Z°Ó6ˆŒÜ# C¨¸Ó>ˆÕr   c                 ó8   — | j                   j                  |«      S r   )rp   Úsend)r   Úvals     r   rv   z_GeneratorWrapper.sendõ   s   € Ø�~‰~×"Ñ" 3Ó'Ð'r   c                 ó<   —  | j                   j                  |g|¢­Ž S r   )rp   Úthrow)r   ÚtpÚrests      r   ry   z_GeneratorWrapper.throw÷   s   € Ø#ˆt�~‰~×#Ñ# BÐ.¨Ò.Ð.r   c                 ó6   — | j                   j                  «       S r   )rp   Úcloser   s    r   r}   z_GeneratorWrapper.closeù   s   € Ø�~‰~×#Ñ#Ó%Ð%r   c                 ó.   — | j                   j                  S r   )rp   Úgi_coder   s    r   r   z_GeneratorWrapper.gi_codeû   s   € à�~‰~×%Ñ%Ð%r   c                 ó.   — | j                   j                  S r   )rp   Úgi_framer   s    r   r�   z_GeneratorWrapper.gi_frameþ   s   € à�~‰~×&Ñ&Ð&r   c                 ó.   — | j                   j                  S r   )rp   Ú
gi_runningr   s    r   rƒ   z_GeneratorWrapper.gi_running  s   € à�~‰~×(Ñ(Ð(r   c                 ó.   — | j                   j                  S r   )rp   Úgi_yieldfromr   s    r   r…   z_GeneratorWrapper.gi_yieldfrom  s   € à�~‰~×*Ñ*Ð*r   c                 ó,   — t        | j                  «      S r   )Únextrp   r   s    r   Ú__next__z_GeneratorWrapper.__next__  s   € Ü�D—N‘NÓ#Ð#r   c                 ó6   — | j                   r| j                  S | S r   )rs   rp   r   s    r   Ú__iter__z_GeneratorWrapper.__iter__  s   € Ø�<Š<Ø—>‘>Ð!Øˆr   N)r   r   r    r[   rv   ry   r}   Úpropertyr   r�   rƒ   r…   Úcr_codeÚcr_frameÚ
cr_runningÚcr_awaitrˆ   rŠ   Ú	__await__r   r   r   rn   rn   î   sƒ   „ ò?ò
(ò/ò&àñ&ó ð&àñ'ó ð'àñ)ó ð)àñ+ó ð+à€GØ€HØ€JØ€Hò$òð �Ir   rn   c                 ó€  ‡ ‡— t        ‰ «      st        d«      ‚‰ j                  t        u rqt	        ‰ dd«      j                  t
        u rT‰ j                  j                  }|dz  r‰ S |dz  r2‰ j                  }|j                  |j                  dz  ¬«      ‰ _        ‰ S ddl	}ddl
Š|j                  ‰ «      ˆˆ fd	„«       }|S )
z2Convert regular generator function to a coroutine.z$types.coroutine() expects a callableÚ__code__Ni€  é    é   )Úco_flagsr   c                  ó  •—  ‰| i |¤Ž}|j                   t        u s+|j                   t        u r|j                  j                  dz  r|S t        |‰j                  «      r!t        |‰j                  «      st        |«      S |S )Nr”   )	rq   ÚCoroutineTyperr   r   r•   r2   Ú	GeneratorÚ	Coroutinern   )ÚargsÚkwargsÚcoroÚ_collections_abcÚfuncs      €€r   Úwrappedzcoroutine.<locals>.wrapped3  sv   ø€ á�TÐ$˜VÑ$ˆØ�N‰NœmÑ+Ø�N‰NœmÑ+°·±×0EÑ0EÈÒ0MàˆKÜ�tÐ-×7Ñ7Ô8Ü˜4Ð!1×!;Ñ!;Ô<ô % TÓ*Ð*ð ˆr   )Úcallabler6   rq   ÚFunctionTyperY   ÚCodeTyper’   r•   ÚreplaceÚ	functoolsr�   Úwraps)rž   r•   Úcor¤   rŸ   r�   s   `    @r   Ú	coroutiner§     sµ   ù€ ô �DŒ>ÜÐ>Ó?Ð?à�‰œ,Ñ&Ü��j $Ó'×1Ñ1´XÑ=à—=‘=×)Ñ)ˆð �eÒØˆKð �dŠ?à—‘ˆBàŸJ™J°·±¸eÑ0C˜JÓDˆDŒMØˆKó ÛØ‡_�_�TÓôó ðð  €Nr   r   Ú_)r   NN)r   N)CrV   Úsysr   r3   r¡   Ú
LambdaTyper’   r¢   rI   ÚMappingProxyTypeÚimplementationÚSimpleNamespacer   ÚCellTyper   rr   r   r—   r}   r   ÚAsyncGeneratorTyper   r   Ú
MethodTyper7   ÚBuiltinFunctionTypeÚappendÚBuiltinMethodTypeÚobjectr[   ÚWrapperDescriptorTypeÚ__str__ÚMethodWrapperTypeÚstrÚjoinÚMethodDescriptorTyperA   ÚClassMethodDescriptorTypeÚ
ModuleTyper6   ÚexcÚ__traceback__ÚTracebackTypeÚtb_frameÚ	FrameTypeÚGetSetDescriptorTypeÚ__globals__ÚMemberDescriptorTyper-   r$   r%   rC   rN   rP   rn   r§   r0   ÚintÚGenericAliasÚ	UnionTypeÚEllipsisÚEllipsisTypeÚNoneTypeÚNotImplementedÚNotImplementedTypeÚglobalsÚ__all__)Úns   0r   Ú<module>rÐ      s.  ðñó ò Ù�B‹x€Ù‘,Ó€
Ù�—‘Ó€Ù˜Ÿ™Ó&Ð Ù�s×)Ñ)Ó*€òñ
 ‘“Ó €òá‘R“T“
€â ÙƒT€Ù�R“€Ø ‡�„
ò
á	ƒe€Ù˜#“YÐ ÷ñ á‘"“$—'‘'‹]€
á˜3“iÐ Ù˜Ÿ™“OÐ á˜VŸ_™_Ó-Ð Ù™›×)Ñ)Ó*Ð Ù˜CŸH™H“~Ð Ù  §¡¨zÑ!:Ó;Ð á�#‹Y€
ð1Ø
€OøØò 1Ù˜×*Ñ*Ó+€MÙ�S×&Ñ&×/Ñ/Ó0…Iûð1úñ ˜L×1Ñ1Ó2Ð Ù˜L×4Ñ4Ó5Ð àˆˆR��R˜˜mó2òó*ò@ò$÷8<ñ <÷~#ñ #òJ1ñf �D˜‘I‹€Ù��s‘‹O€	á�H‹~€Ù�‹:€Ù˜.Ó)Ð á”iÓ
0‘i� 1 R a 5¨C£<Š1�iÑ
0�ùÒ
0s$   Ä9D; Ä;E8Å .E3Å3E8ÈHÈH