+
    IV-j’  ã                   ó~   € R t ^ RIHt ^ RIHt ^ RIHt ^RIHt	 ^RI
Ht RR./tRR	.t]RR
 l4       tR tR tR tR# )z,
Thin wrappers around `concurrent.futures`.
)Úcontextmanager)Úlength_hint)Ú	cpu_count)Útqdm)ÚTqdmWarningzgithub.com/Ú	casperdclÚ
thread_mapÚprocess_mapc              #  óÐ   "  € \        V RR4      pT;'       g    V P                  4       p\        W1V4      pV P                  V4       Vx € Vf   V =R# V P                  V4       R# 5i)z>get (create if necessary) and then restore `tqdm_class`'s lockÚ_lockN)ÚgetattrÚget_lockÚset_lockr   )Ú
tqdm_classÚ	lock_nameÚold_lockÚlocks   &&  Úh/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/tqdm/contrib/concurrent.pyÚensure_lockr      sd   é € ô �z 7¨DÓ1€HØ×,Ð,�z×*Ñ*Ó,€DÜ�4 DÓ)€DØ×Ñ˜ÔØ
‚JØÒØÒà×Ñ˜HÖ%ùs   ‚A$A&c                ób  € VP                  4       pRV9  d   \        V^ ,          4      VR&   VP                  R\        4      pVP                  R\	        ^ \        4       ^,           4      4      pVP                  R^4      pVP                  RR4      p\        WXR7      ;_uu_ 4       p	V ! WeP                  V	3R7      ;_uu_ 4       p
\        V! V
P                  ! V.VO5RV/ 3/ VB 4      uuR	R	R	4       uuR	R	R	4       #   + '       g   i     M; i R	R	R	4       R	#   + '       g   i     R	# ; i)
zâ
Implementation of `thread_map` and `process_map`.

Parameters
----------
tqdm_class  : [default: tqdm.auto.tqdm].
max_workers  : [default: min(32, cpu_count() + 4)].
chunksize  : [default: 1].
lock_name  : [default: "":str].
Útotalr   Úmax_workersÚ	chunksizer   Ú )r   )r   ÚinitializerÚinitargsN)
Úcopyr   ÚpopÚ	tqdm_autoÚminr   r   r   ÚlistÚmap)ÚPoolExecutorÚfnÚ	iterablesÚtqdm_kwargsÚkwargsr   r   r   r   ÚlkÚexs   &&*,       r   Ú_executor_mapr)      sú   € ð ×ÑÓ€FØ�fÔÜ% i°¥lÓ3ˆˆw‰Ø—‘˜L¬)Ó4€JØ—*‘*˜]¬C°´I³KÀ!µOÓ,DÓE€KØ—
‘
˜;¨Ó*€IØ—
‘
˜;¨Ó+€IÜ	�Z×	5Õ	5¸á k×?RÑ?RØ$& 5÷*õ *Ø-/Ü™
 2§6¢6¨"Ð#N¨yÒ#NÀIÑ#NÑYÐRXÑYÓZ÷*ñ *÷ 
6Ò	5÷*÷ *úð *÷ 
6×	5×	5Ò	5ús$   Â&DÃ&C?	Ã*
DÃ?DÄ
DÄD.	c                ó,   € ^ RI Hp \        W0.VO5/ VB # )av  
Equivalent of `list(map(fn, *iterables))`
driven by `concurrent.futures.ThreadPoolExecutor`.

Parameters
----------
tqdm_class  : optional
    `tqdm` class to use for bars [default: tqdm.auto.tqdm].
max_workers  : int, optional
    Maximum number of workers to spawn; passed to
    `concurrent.futures.ThreadPoolExecutor.__init__`.
    [default: max(32, cpu_count() + 4)].
)ÚThreadPoolExecutor)Úconcurrent.futuresr+   r)   )r#   r$   r%   r+   s   &*, r   r   r   6   s   € õ 6ÜÐ+ÐK°)ÒK¸{ÑKÐKó    c                óú   € ^ RI Hp V'       dD   RV9  d=   \        \        \        V4      4      pVR8”  d   ^ RIHp V! RV,          \        ^R7       RV9  d   VP                  4       pRVR&   \        W0.VO5/ VB # )	af  
Equivalent of `list(map(fn, *iterables))`
driven by `concurrent.futures.ProcessPoolExecutor`.

Parameters
----------
tqdm_class  : optional
    `tqdm` class to use for bars [default: tqdm.auto.tqdm].
max_workers  : int, optional
    Maximum number of workers to spawn; passed to
    `concurrent.futures.ProcessPoolExecutor.__init__`.
    [default: min(32, cpu_count() + 4)].
chunksize  : int, optional
    Size of chunks sent to worker processes; passed to
    `concurrent.futures.ProcessPoolExecutor.map`. [default: 1].
lock_name  : str, optional
    Member of `tqdm_class.get_lock()` to use [default: mp_lock].
)ÚProcessPoolExecutorr   iè  )Úwarnz…Iterable length %d > 1000 but `chunksize` is not set. This may seriously degrade multiprocess performance. Set `chunksize=1` or more.)Ú
stacklevelr   Úmp_lock)
r,   r/   Úmaxr!   r   Úwarningsr0   r   r   r)   )r#   r$   r%   r/   Úlongest_iterable_lenr0   s   &*,   r   r	   r	   H   s…   € õ& 7ß�[¨Ô3ô  #¤3¤{°IÓ#>Ó?ÐØ $Ô&Ý%Ùð /à1EõFô ¨õ,ð ˜+Ô%Ø!×&Ñ&Ó(ˆØ#,ˆ�KÑ ÜÐ,ÐL°9ÒLÀÑLÐLr-   N)r   )Ú__doc__Ú
contextlibr   Úoperatorr   Úosr   Úautor   r   Ústdr   Ú
__author__Ú__all__r   r)   r   r	   © r-   r   Ú<module>r?      sW   ðñõ &Ý  Ý å $Ý à˜k˜]Ð+€
Ø˜Ð
'€ð ó
&ó ð
&ò[ò2Lô$!Mr-   