Ë
    °ëjŽX  ã                   óZ  — U d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl	m
Z
 ddlmZmZmZmZmZ ddlZddlmZmZ ddlmZ ddlmZ dd	lmZ d
dlmZ d
dlmZmZmZm Z m!Z!m"Z"m#Z# ddlm$Z$ ddl%m&Z& ddl'm(Z( ddl)m*Z*  e$jV                  e,«      Z-dZ.dZ/ ej`                  dejb                  ¬«      Z2 G d„ de«      Z3 G d„ de«      Z4dejj                  fd„Z6eg ejj                  f   Z7e6a8e7e9d<   e6fde7ddfd„Z:dejj                  fd„Z;d8d „Z<ed!e=d"e=dejj                  fd#„«       Z>d$dd%ej~                  ej€                  fe
j‚                  d&œd'e*d(eBd)e=d*eCd+eCd,eeeD   eeeD   d-f   f   d.ee=ee=d-f   f   defd/„ZEd(eBd0eeB   deBfd1„ZFd9d2ed3eeB   ddfd4„ZGd5ee!   d6eBd2ede!fd7„ZHy):z>Contains utilities to handle HTTP requests in Huggingface Hub.é    N)Ú	lru_cache)Ú
HTTPStatus)ÚCallableÚOptionalÚTupleÚTypeÚUnion)Ú	HTTPErrorÚResponse)ÚHTTPAdapter)ÚPreparedRequest)ÚOfflineModeIsEnabledé   )Ú	constants)ÚBadRequestErrorÚDisabledRepoErrorÚEntryNotFoundErrorÚGatedRepoErrorÚHfHubHTTPErrorÚRepositoryNotFoundErrorÚRevisionNotFoundErroré   )Úlogging)ÚJSONDecodeError)ÚSliceFileObj)ÚHTTP_METHOD_TúX-Amzn-Trace-Idzx-request-ida  
        # staging or production endpoint
        ^https://[^/]+
        (
            # on /api/repo_type/repo_id
            /api/(models|datasets|spaces)/(.+)
            |
            # or /repo_id/resolve/revision/...
            /(.+)/resolve/(.+)
        )
    )Úflagsc                   ó6   ‡ — e Zd ZdZˆ fd„Zdedefˆ fd„Zˆ xZS )ÚUniqueRequestIdAdapterr   c                 óÞ  •— t        ‰| �  |fi |¤Ž t        |j                  vrO|j                  j	                  t
        «      xs t        t        j                  «       «      |j                  t        <   t        |j                  j	                  dd«      «      j                  d«      }t        j                  d|j                  t           › d|j                  › d|j                  › d|› d�	«       y )	NÚauthorizationÚ z
Bearer hf_zRequest z: ú z (authenticated: ú))ÚsuperÚadd_headersÚX_AMZN_TRACE_IDÚheadersÚgetÚX_REQUEST_IDÚstrÚuuidÚuuid4Ú
startswithÚloggerÚdebugÚmethodÚurl)ÚselfÚrequestÚkwargsÚ	has_tokenÚ	__class__s       €úh/home/oem/CyberBrain26-unified/dev-env/.venv/lib/python3.12/site-packages/huggingface_hub/utils/_http.pyr'   z"UniqueRequestIdAdapter.add_headersM   s¾   ø€ Ü‰Ñ˜GÑ. vÒ.ô  '§/¡/Ñ1Ø/6¯©×/BÑ/BÄ<Ó/PÒ/eÔTWÔX\×XbÑXbÓXdÓTeˆG�O‰OœOÑ,ô ˜Ÿ™×+Ñ+¨O¸RÓ@ÓA×LÑLÈ\ÓZˆ	Ü�‰Ø�w—‘¤Ñ7Ð8¸¸7¿>¹>Ð:JÈ!ÈGÏKÉKÈ=ÐXiÐjsÐitÐtuÐvõ	
ó    r5   Úreturnc                 óÚ   •— 	 t        ‰| �  |g|¢­i |¤ŽS # t        j                  $ rA}|j                  j                  t        «      }|�g |j                  ¢d|› d�‘­|_        ‚ d}~ww xY w)zSCatch any RequestException to append request id to the error message for debugging.Nz(Request ID: r%   )r&   ÚsendÚrequestsÚRequestExceptionr)   r*   r(   Úargs)r4   r5   r@   r6   ÚeÚ
request_idr8   s         €r9   r=   zUniqueRequestIdAdapter.sendZ   sr   ø€ ð	Ü‘7‘< Ð9¨$Ò9°&Ñ9Ð9øÜ×(Ñ(ò 	Ø Ÿ™×,Ñ,¬_Ó=ˆJØÐ%àA˜1Ÿ6™6ÐA ]°:°,¸aÐ#@ÑA�”Øûð	ús   ƒ –A*©<A%Á%A*)	Ú__name__Ú
__module__Ú__qualname__r(   r'   r   r   r=   Ú__classcell__)r8   s   @r9   r    r    J   s%   ø„ Ø'€Oô
ð	˜Oð 	À÷ 	ñ 	r:   r    c                   ó   — e Zd Zdedefd„Zy)ÚOfflineAdapterr5   r;   c                 ó4   — t        d|j                  › d�«      ‚)NzCannot reach za: offline mode is enabled. To disable it, please unset the `HF_HUB_OFFLINE` environment variable.)r   r3   )r4   r5   r@   r6   s       r9   r=   zOfflineAdapter.sendg   s&   € Ü"Ø˜GŸK™K˜=ð  )Jð  Kó
ð 	
r:   N)rC   rD   rE   r   r   r=   © r:   r9   rH   rH   f   s   „ ð
˜Oð 
Àô 
r:   rH   r;   c                  ó"  — t        j                  «       } t        j                  r6| j	                  dt        «       «       | j	                  dt        «       «       | S | j	                  dt        «       «       | j	                  dt        «       «       | S )Nzhttp://zhttps://)r>   ÚSessionr   ÚHF_HUB_OFFLINEÚmountrH   r    )Úsessions    r9   Ú_default_backend_factoryrP   m   sm   € Ü×ÑÓ €GÜ×ÒØ�‰�i¤Ó!1Ô2Ø�‰�j¤.Ó"2Ô3ð €Nð 	�‰�iÔ!7Ó!9Ô:Ø�‰�jÔ"8Ó":Ô;Ø€Nr:   Ú_GLOBAL_BACKEND_FACTORYÚbackend_factoryc                 ó   — | a t        «        y)aË  
    Configure the HTTP backend by providing a `backend_factory`. Any HTTP calls made by `huggingface_hub` will use a
    Session object instantiated by this factory. This can be useful if you are running your scripts in a specific
    environment requiring custom configuration (e.g. custom proxy or certifications).

    Use [`get_session`] to get a configured Session. Since `requests.Session` is not guaranteed to be thread-safe,
    `huggingface_hub` creates 1 Session instance per thread. They are all instantiated using the same `backend_factory`
    set in [`configure_http_backend`]. A LRU cache is used to cache the created sessions (and connections) between
    calls. Max size is 128 to avoid memory leaks if thousands of threads are spawned.

    See [this issue](https://github.com/psf/requests/issues/2766) to know more about thread-safety in `requests`.

    Example:
    ```py
    import requests
    from huggingface_hub import configure_http_backend, get_session

    # Create a factory function that returns a Session with configured proxies
    def backend_factory() -> requests.Session:
        session = requests.Session()
        session.proxies = {"http": "http://10.10.1.10:3128", "https": "https://10.10.1.11:1080"}
        return session

    # Set it as the default session factory
    configure_http_backend(backend_factory=backend_factory)

    # In practice, this is mostly done internally in `huggingface_hub`
    session = get_session()
    ```
    N)rQ   Úreset_sessions)rR   s    r9   Úconfigure_http_backendrU   |   s   € ð@ .ÐÜÕr:   c                  ód   — t        t        j                  «       t        j                  «       ¬«      S )aÜ  
    Get a `requests.Session` object, using the session factory from the user.

    Use [`get_session`] to get a configured Session. Since `requests.Session` is not guaranteed to be thread-safe,
    `huggingface_hub` creates 1 Session instance per thread. They are all instantiated using the same `backend_factory`
    set in [`configure_http_backend`]. A LRU cache is used to cache the created sessions (and connections) between
    calls. Max size is 128 to avoid memory leaks if thousands of threads are spawned.

    See [this issue](https://github.com/psf/requests/issues/2766) to know more about thread-safety in `requests`.

    Example:
    ```py
    import requests
    from huggingface_hub import configure_http_backend, get_session

    # Create a factory function that returns a Session with configured proxies
    def backend_factory() -> requests.Session:
        session = requests.Session()
        session.proxies = {"http": "http://10.10.1.10:3128", "https": "https://10.10.1.11:1080"}
        return session

    # Set it as the default session factory
    configure_http_backend(backend_factory=backend_factory)

    # In practice, this is mostly done internally in `huggingface_hub`
    session = get_session()
    ```
    ©Ú
process_idÚ	thread_id)Ú_get_session_from_cacheÚosÚgetpidÚ	threadingÚ	get_identrJ   r:   r9   Úget_sessionr_       s    € ô: #¬b¯i©i«kÄY×EXÑEXÓEZÔ[Ð[r:   c                  ó,   — t         j                  «        y)z«Reset the cache of sessions.

    Mostly used internally when sessions are reconfigured or an SSLError is raised.
    See [`configure_http_backend`] for more details.
    N)rZ   Úcache_clearrJ   r:   r9   rT   rT   À   s   € ô ×'Ñ'Õ)r:   rX   rY   c                 ó   — t        «       S )zÒ
    Create a new session per thread using global factory. Using LRU cache (maxsize 128) to avoid memory leaks when
    using thousands of threads. Cache is cleared when `configure_http_backend` is called.
    )rQ   rW   s     r9   rZ   rZ   É   s   € ô #Ó$Ð$r:   é   é   )Úmax_retriesÚbase_wait_timeÚmax_wait_timeÚretry_on_exceptionsÚretry_on_status_codesr2   r3   re   rf   rg   rh   .ri   c          	      ó$  — t        |t        «      r|f}t        |t        «      r|f}d}|}	d}
d|v r6t        |d   t        j                  t
        f«      r|d   j                  «       }
t        «       }	 |dz  }	 |
�|d   j                  |
«        |j                  d| |dœ|¤Ž}|j                  |vr|S t        j                  d|j                  › d| › d|› �«       ||kD  r|j                  «        |S 	 t        j                  d|	› d|› d|› d�«       t#        j$                  |	«       t'        ||	dz  «      }	ŒÅ# |$ rS}t        j                  d	|› d
| › d|› �«       t        |t        j                  «      r
t!        «        ||kD  r|‚Y d}~Œ—d}~ww xY w)a#  Wrapper around requests to retry calls on an endpoint, with exponential backoff.

    Endpoint call is retried on exceptions (ex: connection timeout, proxy error,...)
    and/or on specific status codes (ex: service unavailable). If the call failed more
    than `max_retries`, the exception is thrown or `raise_for_status` is called on the
    response object.

    Re-implement mechanisms from the `backoff` library to avoid adding an external
    dependencies to `hugging_face_hub`. See https://github.com/litl/backoff.

    Args:
        method (`Literal["GET", "OPTIONS", "HEAD", "POST", "PUT", "PATCH", "DELETE"]`):
            HTTP method to perform.
        url (`str`):
            The URL of the resource to fetch.
        max_retries (`int`, *optional*, defaults to `5`):
            Maximum number of retries, defaults to 5 (no retries).
        base_wait_time (`float`, *optional*, defaults to `1`):
            Duration (in seconds) to wait before retrying the first time.
            Wait time between retries then grows exponentially, capped by
            `max_wait_time`.
        max_wait_time (`float`, *optional*, defaults to `8`):
            Maximum duration (in seconds) to wait before retrying.
        retry_on_exceptions (`Type[Exception]` or `Tuple[Type[Exception]]`, *optional*):
            Define which exceptions must be caught to retry the request. Can be a single type or a tuple of types.
            By default, retry on `requests.Timeout` and `requests.ConnectionError`.
        retry_on_status_codes (`int` or `Tuple[int]`, *optional*, defaults to `503`):
            Define on which status codes the request must be retried. By default, only
            HTTP 503 Service Unavailable is retried.
        **kwargs (`dict`, *optional*):
            kwargs to pass to `requests.request`.

    Example:
    ```
    >>> from huggingface_hub.utils import http_backoff

    # Same usage as "requests.request".
    >>> response = http_backoff("GET", "https://www.google.com")
    >>> response.raise_for_status()

    # If you expect a Gateway Timeout from time to time
    >>> http_backoff("PUT", upload_url, data=data, retry_on_status_codes=504)
    >>> response.raise_for_status()
    ```

    <Tip warning={true}>

    When using `requests` it is possible to stream data by passing an iterator to the
    `data` argument. On http backoff this is a problem as the iterator is not reset
    after a failed call. This issue is mitigated for file objects or any IO streams
    by saving the initial position of the cursor (with `data.tell()`) and resetting the
    cursor between each call (with `data.seek()`). For arbitrary iterators, http backoff
    will fail. If this is a hard constraint for you, please let us know by opening an
    issue on [Github](https://github.com/huggingface/huggingface_hub).

    </Tip>
    r   NÚdatar   )r2   r3   zHTTP Error z thrown while requesting r$   ú'z' thrown while requesting zRetrying in z	s [Retry ú/z].r   rJ   )Ú
isinstanceÚtypeÚintÚioÚIOBaser   Útellr_   Úseekr5   Ústatus_coder0   ÚwarningÚraise_for_statusr>   ÚConnectionErrorrT   ÚtimeÚsleepÚmin)r2   r3   re   rf   rg   rh   ri   r6   Únb_triesÚ
sleep_timeÚio_obj_initial_posrO   ÚresponseÚerrs                 r9   Úhttp_backoffr�   Ò   sÃ  € ôN Ð%¤tÔ,Ø2Ð4ÐäÐ'¬Ô-Ø!6Ð 8Ðà€HØ€Jð
 ÐØ�ÑœJ v¨f¡~¼¿	¹	Ä<Ð7PÔQØ# F™^×0Ñ0Ó2Ðä‹m€GØ
Ø�A‰ˆð	ð "Ð-Ø�v‘×#Ñ#Ð$6Ô7ð '�w—‘ÐH¨f¸#ÑHÀÑHˆHØ×#Ñ#Ð+@Ñ@Ø�ô �N‰N˜[¨×)=Ñ)=Ð(>Ð>WÐX^ÐW_Ð_`ÐadÐ`eÐfÔgØ˜+Ò%Ø×)Ñ)Ô+ð  �ð	 &ô  	�‰˜ j \°¸8¸*ÀAÀkÀ]ÐRTÐUÔVÜ�
‰
�:Ôô ˜¨
°Q©Ó7ˆ
ðG øð* #ò 	Ü�N‰N˜Q˜s˜eÐ#=¸f¸XÀQÀsÀeÐLÔMä˜#œx×7Ñ7Ô8ÜÔ à˜+Ò%Ø�	ô &ûð	ús   Á8:D7 Â3>D7 Ä7FÄ<A	F
Æ
FÚendpointc                 óô   — |xs t         j                  }|dt         j                  t         j                  fvr@| j	                  t         j                  |«      } | j	                  t         j                  |«      } | S )z¤Replace the default endpoint in a URL by a custom one.

    This is useful when using a proxy and the Hugging Face Hub returns a URL with the default endpoint.
    N)r   ÚENDPOINTÚ_HF_DEFAULT_ENDPOINTÚ_HF_DEFAULT_STAGING_ENDPOINTÚreplace)r3   r‚   s     r9   Úfix_hf_endpoint_in_urlrˆ   P  s`   € ð
 Ò-œ9×-Ñ-€Hà˜œi×<Ñ<¼i×>dÑ>dÐeÑeØ�k‰kœ)×8Ñ8¸(ÓCˆØ�k‰kœ)×@Ñ@À(ÓKˆØ€Jr:   r   Úendpoint_namec                 ó°  — 	 | j                  «        y# t        $ �r¸}| j                  j                  d«      }| j                  j                  d«      }|dk(  r5| j                  › d�dz   d| j
                  › d�z   }t        t        || «      |‚|dk(  r5| j                  › d�dz   d	| j
                  › d�z   }t        t        || «      |‚|d
k(  r5| j                  › d�dz   d| j
                  › d�z   }t        t        || «      |‚|dk(  r;| j                  › d�dz   d| j
                  › d�z   dz   dz   }t        t        || «      |‚|dk(  sZ| j                  dk(  rƒ| j                  �w| j                  j
                  �at        j                  | j                  j
                  «      �8| j                  › d�dz   d| j
                  › d�z   dz   }t        t        || «      |‚| j                  dk(  r|�d|› d�nd}t        t        || «      |‚| j                  dk(  r9d| j                  › d|› d�d| j
                  › d�z   dz   }t        t         || «      |‚| j                  dk(  r[| j                  j                  j                  d«      }|› d|› d| j                  j                  d «      › d�}t        t         || «      |‚t        t         t#        |«      | «      |‚d}~ww xY w)!a  
    Internal version of `response.raise_for_status()` that will refine a
    potential HTTPError. Raised exception will be an instance of `HfHubHTTPError`.

    This helper is meant to be the unique method to raise_for_status when making a call
    to the Hugging Face Hub.


    Example:
    ```py
        import requests
        from huggingface_hub.utils import get_session, hf_raise_for_status, HfHubHTTPError

        response = get_session().post(...)
        try:
            hf_raise_for_status(response)
        except HfHubHTTPError as e:
            print(str(e)) # formatted message
            e.request_id, e.server_message # details returned by server

            # Complete the error message with additional information once it's raised
            e.append_to_message("
`create_commit` expects the repository to exist.")
            raise
    ```

    Args:
        response (`Response`):
            Response from the server.
        endpoint_name (`str`, *optional*):
            Name of the endpoint that has been called. If provided, the error message
            will be more complete.

    <Tip warning={true}>

    Raises when the request has failed:

        - [`~utils.RepositoryNotFoundError`]
            If the repository to download from cannot be found. This may be because it
            doesn't exist, because `repo_type` is not set correctly, or because the repo
            is `private` and you do not have access.
        - [`~utils.GatedRepoError`]
            If the repository exists but is gated and the user is not on the authorized
            list.
        - [`~utils.RevisionNotFoundError`]
            If the repository exists but the revision couldn't be find.
        - [`~utils.EntryNotFoundError`]
            If the repository exists but the entry (e.g. the requested file) couldn't be
            find.
        - [`~utils.BadRequestError`]
            If request failed with a HTTP 400 BadRequest error.
        - [`~utils.HfHubHTTPError`]
            If request failed for a reason not listed above.

    </Tip>
    zX-Error-CodeúX-Error-MessageÚRevisionNotFoundz Client Error.ú

zRevision Not Found for url: ú.ÚEntryNotFoundzEntry Not Found for url: Ú	GatedRepoz!Cannot access gated repo for url z$Access to this resource is disabled.z!Cannot access repository for url ú
ÚRepoNotFoundi‘  NzRepository Not Found for url: zœ
Please make sure you specified the correct `repo_id` and `repo_type`.
If you are trying to access a private or gated repo, make sure you are authenticated.i�  z

Bad request for z
 endpoint:z

Bad request:i“  z Forbidden: z
Cannot access content at: z2
Make sure your token has the correct permissions.i   ÚRangez. Requested range: z. Content-Range: zContent-Range)rw   r
   r)   r*   ru   r3   Ú_formatr   r   r   r   r5   ÚREPO_API_REGEXÚsearchr   r   r   r,   )r   r‰   rA   Ú
error_codeÚerror_messageÚmessageÚrange_headers          r9   Úhf_raise_for_statusr›   ]  s[  € ðpH?Ø×!Ñ!Õ#øÜó F?Ø×%Ñ%×)Ñ)¨.Ó9ˆ
Ø ×(Ñ(×,Ñ,Ð->Ó?ˆàÐ+Ò+Ø!×-Ñ-Ð.¨nÐ=ÀÑFÐKgÐhp×htÑhtÐguÐuvÐIwÑwˆGÜÔ/°¸(ÓCÈÐJà˜?Ò*Ø!×-Ñ-Ð.¨nÐ=ÀÑFÐKdÐem×eqÑeqÐdrÐrsÐItÑtˆGÜÔ,¨g°xÓ@ÀaÐGà˜;Ò&à×'Ñ'Ð(¨Ð7¸&Ñ@ÐEfÐgo×gsÑgsÐftÐtuÐCvÑvð ô œ.¨'°8Ó<À!ÐCàÐDÒDà×'Ñ'Ð(¨Ð7Øñà5°h·l±l°^À1ÐEñFð ñð 9ñ	9ð ô Ô+¨W°hÓ?ÀQÐFà˜>Ò)Ø× Ñ  CÒ'Ø× Ñ Ð,Ø× Ñ ×$Ñ$Ð0Ü×%Ñ% h×&6Ñ&6×&:Ñ&:Ó;ÐGð ×'Ñ'Ð(¨Ð7Øñà2°8·<±<°.ÀÐBñCð4ñ4ð ô Ô1°7¸HÓEÈ1ÐLà×!Ñ! SÒ(àDQÐD]Ð& } o°ZÑ@Ðcuð ô œ/¨7°HÓ=À1ÐDà×!Ñ! SÒ(à�x×+Ñ+Ð,¨L¸¸ÀqÐIØ0°·±°¸aÐ@ñAàGñHð ô
 œ.¨'°8Ó<À!ÐCà×!Ñ! SÒ(Ø#×+Ñ+×3Ñ3×7Ñ7¸Ó@ˆLØ˜Ð.¨|¨nÐ<MÈh×N^ÑN^×NbÑNbÐcrÓNsÐMtÐtuÐvˆGÜœ.¨'°8Ó<À!ÐCô ”n¤c¨!£f¨hÓ7¸QÐ>ûðMF?ús   ‚ “
K�J3KËKÚ
error_typeÚcustom_messagec                 ó  — g }|j                   j                  d«      }|�|j                  |«       	 |j                  «       }|j                  d«      }|�3t	        |t
        «      r|j                  |«       n|j                  |«       |j                  d«      }|� |D ]  }d|v sŒ|j                  |d   «       Œ |D �	cg c]#  }	|	j                  «       sŒ|	j                  «       ‘Œ% }}	t        t        j                  |«      «      }dj                  |«      }
|}|
r5|
j                  «       |j                  «       vrd	|v r	|d|
z   z  }n|d	|
z   z  }t        |j                   j                  t        d«      «      }|rd
|› d�}n1t        |j                   j                  t         d«      «      }|rd|› d�}|rI|j                  «       |j                  «       vr)d|v r |j#                  d«      }|d | z   ||d  z   }n|z  } | |j                  «       ||
xs d ¬«      S # t        $ rY |j                   j                  dd«      }|j                  r-d|j                  «       vr|j                  |j                  «       Y �ŒÂw xY wc c}	w )Nr‹   ÚerrorÚerrorsr™   zContent-Typer#   Úhtmlr‘   r�   z (Request ID: r%   z (Amzn Trace ID: )r   Úserver_message)r)   r*   ÚappendÚjsonrn   ÚlistÚextendr   ÚtextÚlowerÚstripÚdictÚfromkeysÚjoinr,   r+   r(   Úindex)rœ   r�   r   Úserver_errorsÚfrom_headersrk   rŸ   r    Úcontent_typeÚliner¢   Úfinal_error_messagerB   Úrequest_id_messageÚnewline_indexs                  r9   r”   r”   à  s•  € Ø€Mð ×#Ñ#×'Ñ'Ð(9Ó:€LØÐØ×Ñ˜\Ô*ð0à�}‰}‹ˆà—‘˜Ó!ˆØÐÜ˜%¤Ô&à×$Ñ$ UÕ+ð ×$Ñ$ UÔ+à—‘˜(Ó#ˆØÐàò ;�Ø Ò%Ø!×(Ñ(¨¨yÑ)9Õ:ð;ð /<ÖL d¸t¿z¹z½|�T—Z‘Z•\ÐL€MÐLô œŸ™ }Ó5Ó6€Mð —Y‘Y˜}Ó-€Nð )ÐÙ˜.×.Ñ.Ó0¸×8LÑ8LÓ8NÑNØ�^Ñ#Ø 4¨.Ñ#8Ñ8Ñà 6¨NÑ#:Ñ:Ðä�X×%Ñ%×)Ñ)¬,¸Ó;Ó<€JÙØ-¨j¨\¸Ð;Ñô ˜×)Ñ)×-Ñ-¬o¸rÓBÓCˆ
ÙØ#4°Z°LÀÐ!BÐÙ�j×&Ñ&Ó(Ð0C×0IÑ0IÓ0KÑKØÐ&Ñ&Ø/×5Ñ5°dÓ;ˆMà# N ]Ð3Ð6HÑHÐK^Ð_lÐ_mÐKnÑnñ  ð  Ð#5Ñ5Ðñ Ð)×/Ñ/Ó1¸HÐUcÒUkÐgkÔlÐløôU ò 0à×'Ñ'×+Ñ+¨N¸BÓ?ˆØ�=Š=˜V¨<×+=Ñ+=Ó+?Ñ?Ø× Ñ  §¡Ô/úð	0üò Ms%   ²A2H Â%H Â?JÃJÈAI>É=I>)r;   N)N)IÚ__doc__rq   r[   Úrer]   ry   r-   Ú	functoolsr   Úhttpr   Útypingr   r   r   r   r	   r>   r
   r   Úrequests.adaptersr   Úrequests.modelsr   Úhuggingface_hub.errorsr   r#   r   r    r   r   r   r   r   r   r   r   Ú_fixesr   Ú_lfsr   Ú_typingr   Ú
get_loggerrC   r0   r(   r+   ÚcompileÚVERBOSEr•   r    rH   rL   rP   ÚBACKEND_FACTORY_TrQ   Ú__annotations__rU   r_   rT   rp   rZ   ÚTimeoutrx   ÚSERVICE_UNAVAILABLEr,   ÚfloatÚ	Exceptionr�   rˆ   r›   r”   rJ   r:   r9   ú<module>rÉ      su  ðò Eã 	Û 	Û 	Û Û Û Ý Ý ß 9Õ 9ã ß (Ý )Ý +å 7å ÷÷ ñ õ Ý #Ý Ý "ð 
ˆ×	Ñ	˜HÓ	%€ð
 $€Ø€à�—‘ð
ð �*‰*ô€ô ˜[ô ô8
�[ô 
ð (×"2Ñ"2ó ð ˜R ×!1Ñ!1Ð1Ñ2Ð Ø-EÐ Ð*Ó Eð AYñ !Ð,=ð !Ð]aó !ðH\�X×%Ñ%ó \ó@*ð ð%¨ð %¸ð %À×@PÑ@Pò %ó ð%ð ØØà×ÑØ× Ñ ðPð :D×9WÑ9Wò{8Øð{8à	ð{8ð ð	{8ð
 ð{8ð ð{8ð ˜t I™°°d¸9±oÀsÐ6JÑ0KÐKÑLð{8ð !  e¨C°¨H¡oÐ!5Ñ6ð{8ð ó{8ð|
 ð 
¨x¸©}ð 
Àó 
ñ@? (ð @?¸8ÀC¹=ð @?ÐTXó @?ðFGm˜˜^Ñ,ð Gm¸cð GmÈXð GmÐZhô Gmr:   