�
L�g� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl
mZ dd giZd
dgZ
edd
�� � Zd� Zd� Zd� ZdS )z,
Thin wrappers around `concurrent.futures`.
� )�contextmanager)�length_hint)� cpu_count� )�tqdm)�TqdmWarningzgithub.com/� casperdcl�
thread_map�process_map� c # �� K � t | dd� � }|p| � � � }t |||� � }| � |� � |V � |�| `dS | � |� � dS )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 �g/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/tqdm/contrib/concurrent.py�ensure_lockr s� � � � � �z�7�D�1�1�H��,�z�*�*�,�,�D��4��D�)�)�D��������
�J�J�J����������H�%�%�%�%�%� c �j � |� � � }d|vrt |d � � |d<