Ë
    îñþi^  ã                  ó²   — d dl mZ d dlZd dlZd dlmZmZmZmZm	Z	 d dl
mZmZ d dlZ ed«      Z ed«      Zdd„Zdd„Z G d	„ d
e«      Zdd„Z	 	 	 	 dd„Zy)é    )ÚannotationsN)ÚAsyncIteratorÚCallableÚ	CoroutineÚIterableÚIterator)Ú	ParamSpecÚTypeVarÚPÚTc            
   ‡  ó:  ‡K  — t        j                  dt        «       t        j                  «       4 ƒd {  –—† Šdˆfd„}| D ]+  \  }}‰j                  |t        j                  |fi |¤Ž«       Œ- d d d «      ƒd {  –—†  y 7 ŒK7 Œ# 1 ƒd {  –—†7  sw Y   y xY w­w)NzOrun_until_first_complete is deprecated and will be removed in a future version.c              “  ód   •K  —  | «       ƒ d {  –—†  ‰j                   j                  «        y 7 Œ­w©N)Úcancel_scopeÚcancel)ÚfuncÚ
task_groups    €úU/root/aria/mcps/aria-brain/venv/lib/python3.12/site-packages/starlette/concurrency.pyÚrunz%run_until_first_complete.<locals>.run   s'   øè ø€ Ù“&�LˆLØ×#Ñ#×*Ñ*Õ,ð ús   ƒ0Ž.� 0)r   zCallable[[], Coroutine]ÚreturnÚNone)ÚwarningsÚwarnÚDeprecationWarningÚanyioÚcreate_task_groupÚ
start_soonÚ	functoolsÚpartial)Úargsr   r   Úkwargsr   s       @r   Úrun_until_first_completer"      s�   øè ø€ Ü‡M�MØYÜôô
 ×&Ñ&Ó(÷ Jð J¨Jõ	-ð !ò 	J‰LˆD�&Ø×!Ñ! #¤y×'8Ñ'8¸Ñ'HÀÑ'HÕIð	J÷J÷ Jñ Jøð Jø÷ J÷ Jñ JüsD   ƒ3B¶B·Bº7BÁ1BÁ<BÁ=BÂBÂBÂBÂBÂBc              �  óŽ   K  — t        j                  | g|¢­i |¤Ž} t        j                  j	                  | «      ƒ d {  –—† S 7 Œ­wr   )r   r   r   Ú	to_threadÚrun_sync)r   r    r!   s      r   Úrun_in_threadpoolr&      s;   è ø€ Ü×Ñ˜TÐ3 DÒ3¨FÑ3€DÜ—‘×)Ñ)¨$Ó/×/Ð/Ð/ús   ‚<A¾A¿Ac                  ó   — e Zd Zy)Ú_StopIterationN)Ú__name__Ú
__module__Ú__qualname__© ó    r   r(   r(   #   s   „ Ør-   r(   c                ó@   — 	 t        | «      S # t        $ r t        ‚w xY wr   )ÚnextÚStopIterationr(   )Úiterators    r   Ú_nextr2   '   s&   € ðÜ�H‹~ÐøÜò ÜÐðús   ‚
 �c               ó¦   K  — t        | «      }	 	 t        j                  j                  t        |«      ƒ d {  –—† ­–— Œ17 Œ# t
        $ r Y y w xY w­wr   )Úiterr   r$   r%   r2   r(   )r1   Úas_iterators     r   Úiterate_in_threadpoolr6   1   sL   è ø€ ô �x“.€KØ
ð	ÜŸ™×0Ñ0´¸ÓD×DÓDð àDùÜò 	Ùð	üs7   ‚A�'A ·A ¸A ¿AÁ A Á	AÁAÁAÁA)r    ztuple[Callable, dict]r   r   )r   zCallable[P, T]r    zP.argsr!   zP.kwargsr   r   )r1   zIterator[T]r   r   )r1   zIterable[T]r   zAsyncIterator[T])Ú
__future__r   r   r   Úcollections.abcr   r   r   r   r   Útypingr	   r
   Úanyio.to_threadr   r   r   r"   r&   Ú	Exceptionr(   r2   r6   r,   r-   r   ú<module>r<      s]   ðÝ "ã Û ß RÕ Rß %ã áˆcƒN€ÙˆCƒL€óJó 0ô
	�Yô 	óðØðàôr-   