§
    }ŠtjI  ã                   óÔ  — d Z ddlmZ ddlmZ ddlmZmZ  G d„ de¦  «        Z	 G d„ de¦  «        Z
 G d	„ d
e¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ dee¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ dee¦  «        Z G d„ dee¦  «        Z G d„ de¦  «        Z G d„ dee¦  «        Z G d„ de¦  «        Z G d„ d e¦  «        Z G d!„ d"e¦  «        Z G d#„ d$e¦  «        Z G d%„ d&e¦  «        Z G d'„ d(e¦  «        Z G d)„ d*e¦  «        Z  G d+„ d,e¦  «        Z! G d-„ d.e"¦  «        Z# G d/„ d0e"¦  «        Z$ G d1„ d2e¦  «        Z% G d3„ d4e¦  «        Z& G d5„ d6e¦  «        Z' G d7„ d8e¦  «        Z( G d9„ d:e¦  «        Z) G d;„ d<e)¦  «        Z* G d=„ d>e¦  «        Z+ G d?„ d@e¦  «        Z, G dA„ dBe¦  «        Z- G dC„ dDe¦  «        Z. G dE„ dFee.¦  «        Z/ G dG„ dHe0e.¦  «        Z1 G dI„ dJe1¦  «        Z2 G dK„ dLee"¦  «        Z3 G dM„ dNe¦  «        Z4 G dO„ dPe4¦  «        Z5 G dQ„ dRe4¦  «        Z6 G dS„ dTe6¦  «        Z7 G dU„ dVe¦  «        Z8 G dW„ dXe8¦  «        Z9 G dY„ dZe8¦  «        Z: G d[„ d\e8¦  «        Z; G d]„ d^e¦  «        Z< G d_„ d`e¦  «        Z= G da„ dbe¦  «        Z> G dc„ dde>¦  «        Z? G de„ dfe>¦  «        Z@ G dg„ dhe¦  «        ZA G di„ djeA¦  «        ZBdkS )lzContains all custom errors.é    )ÚEnum)ÚPath)Ú	HTTPErrorÚResponsec                   óD   ‡ — e Zd ZU dZeez  ed<   dedeez  fˆ fd„Zˆ xZS )ÚCacheNotFoundz9Exception thrown when the Huggingface cache is not found.Ú	cache_dirÚmsgc                 óP   •—  t          ¦   «         j        |g|¢R i |¤Ž || _        d S ©N)ÚsuperÚ__init__r	   )Úselfr
   r	   ÚargsÚkwargsÚ	__class__s        €úT/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/huggingface_hub/errors.pyr   zCacheNotFound.__init__   s5   ø€ Ø�‰ŒÔ˜Ð.˜tÐ.Ð.Ð. vÐ.Ð.Ð.Ø"ˆŒˆˆó    )	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ústrr   Ú__annotations__r   Ú__classcell__©r   s   @r   r   r      sg   ø€ € € € € € ØCÐCà�T‰zÐÐÑð#˜Cð #¨C°$©Jð #ð #ð #ð #ð #ð #ð #ð #ð #ð #r   r   c                   ó   — e Zd ZdZdS )ÚCorruptedCacheExceptionzGException for any unexpected structure in the Huggingface cache-system.N©r   r   r   r   © r   r   r   r      s   € € € € € ØQÐQÐQÐQr   r   c                   ó   — e Zd ZdZdS )ÚCachedRepoTreeNotFoundErrorz°Raised by [`get_cached_repo_tree`] when no tree listing is cached for the requested revision.

    The tree listing is populated as a side effect of [`snapshot_download`].
    Nr   r    r   r   r"   r"      ó   € € € € € ðð ð ð r   r"   c                   ó   — e Zd ZdZdS )ÚLocalTokenNotFoundErrorz0Raised if local token is required but not found.Nr   r    r   r   r%   r%   $   ó   € € € € € Ø:Ð:Ð:Ð:r   r%   c                   ó   — e Zd ZdZdS )Ú	OIDCErrora:  Raised when keyless CI/CD auth via OIDC token exchange ("Trusted Publishers") cannot proceed.

    Typically because `HF_OIDC_RESOURCE` is set but no id token is available: not running in a
    supported CI provider and `HF_OIDC_ID_TOKEN` is unset.

    See https://huggingface.co/docs/hub/trusted-publishers.
    Nr   r    r   r   r(   r(   +   s   € € € € € ðð ð ð r   r(   c                   ó&   — e Zd ZdZdZdZdZdZdZdS )ÚOAuthErrorCodezUKnown OAuth `error` codes returned by the Hub's token endpoint (RFC 6749 / RFC 8628).Úauthorization_pendingÚ	slow_downÚexpired_tokenÚaccess_deniedÚinvalid_grantN)	r   r   r   r   ÚAUTHORIZATION_PENDINGÚ	SLOW_DOWNÚEXPIRED_TOKENÚACCESS_DENIEDÚINVALID_GRANTr    r   r   r*   r*   8   s.   € € € € € Ø_Ð_à3ÐØ€IØ#€MØ#€MØ#€M€M€Mr   r*   c                   ó4   ‡ — e Zd ZdZddededz  fˆ fd„Zˆ xZS )ÚDeviceCodeErroraÑ  Raised when the Device Code OAuth login flow (RFC 8628) or an OAuth token refresh fails.

    Covers failures at any step: requesting the device code, polling for the token,
    authorization denied/expired, or unexpected server responses.

    Attributes:
        error_code (`str`, *optional*):
            The OAuth `error` code returned by the server, if any. Known values are listed in
            [`OAuthErrorCode`] but the server may return other codes.
    NÚmessageÚ
error_codec                 óX   •— t          ¦   «                              |¦  «         || _        d S r   )r   r   r8   )r   r7   r8   r   s      €r   r   zDeviceCodeError.__init__N   s&   ø€ Ý‰Œ×Ò˜Ñ!Ô!Ð!Ø$ˆŒˆˆr   r   ©r   r   r   r   r   r   r   r   s   @r   r6   r6   B   s^   ø€ € € € € ð	ð 	ð%ð % ð %°°t±ð %ð %ð %ð %ð %ð %ð %ð %ð %ð %r   r6   c                   ó   — e Zd ZdZdS )ÚOfflineModeIsEnabledzTRaised when a request is made but `HF_HUB_OFFLINE=1` is set as environment variable.Nr   r    r   r   r<   r<   V   s   € € € € € Ø^Ð^Ð^Ð^r   r<   c            	       ó€   ‡ — e Zd ZdZddœdedededz  fˆ fd„Zded	dfd
„Zededededz  d	d fd„¦   «         Z	d„ Z
ˆ xZS )ÚHfHubHTTPErrora>  
    HTTPError to inherit from for any custom HTTP Error raised in HF Hub.

    Any HTTPError is converted at least into a `HfHubHTTPError`. If some information is
    sent back by the server, it will be added to the error message.

    Added details:
    - Request ID sourced from headers in order of precedence: "X-Request-Id", "X-Amzn-Trace-Id", "X-Amz-Cf-Id".
    - Server error message from the header "X-Error-Message".
    - Server error message if we can found one in the response body.

    Example:
    ```py
        import httpx
        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
    ```
    N)Úserver_messager7   Úresponser?   c                ó$  •— |j                              d¦  «        p3|j                              d¦  «        p|j                              d¦  «        | _        || _        || _        |j        | _        t          ¦   «                              |¦  «         d S )Nzx-request-idzX-Amzn-Trace-Idzx-amz-cf-id)ÚheadersÚgetÚ
request_idr?   r@   Úrequestr   r   )r   r7   r@   r?   r   s       €r   r   zHfHubHTTPError.__init__x   sŒ   ø€ ð Ô× Ò  Ñ0Ô0ð 3ØÔ×#Ò#Ð$5Ñ6Ô6ð3àÔ×#Ò# MÑ2Ô2ð 	Œð
 -ˆÔØ ˆŒØÔ'ˆŒÝ‰Œ×Ò˜Ñ!Ô!Ð!Ð!Ð!r   Úadditional_messageÚreturnc                 óR   — | j         d         |z   f| j         dd…         z   | _         dS )zFAppend additional information to the `HfHubHTTPError` initial message.r   é   N)r   )r   rF   s     r   Úappend_to_messagez HfHubHTTPError.append_to_message‰   s+   € à”Y˜q”\Ð$6Ñ6Ð8¸4¼9ÀQÀRÀR¼=ÑHˆŒ	ˆ	ˆ	r   c                 ó   —  | |||¬¦  «        S )N)r@   r?   r    )Úclsr7   r@   r?   s       r   Ú_reconstruct_hf_hub_http_errorz-HfHubHTTPError._reconstruct_hf_hub_http_error�   s   € ð ˆs�7 X¸nÐMÑMÔMÐMr   c                 óR   — | j         j        t          | ¦  «        | j        | j        ffS )zeFix pickling of Exception subclass with kwargs. We need to override __reduce_ex__ of the parent class)r   rM   r   r@   r?   )r   Úprotocols     r   Ú__reduce_ex__zHfHubHTTPError.__reduce_ex__“   s%   € à”Ô=ÅÀDÁ	Ä	È4Ì=ÐZ^ÔZmÐ?nÐoÐor   )r   r   r   r   r   r   r   rJ   ÚclassmethodrM   rP   r   r   s   @r   r>   r>   Z   s  ø€ € € € € ðð ðD &*ð"ð "ð "àð"ð ð	"ð
 ˜d™
ð"ð "ð "ð "ð "ð "ð"I°Cð I¸Dð Ið Ið Ið Ið ðNØðNØ%-ðNØ?BÀT¹zðNà	ðNð Nð Nñ „[ðNð
pð pð pð pð pð pð pr   r>   c                   ó   — e Zd ZdZdS )ÚInferenceTimeoutErrorzBError raised when a model is unavailable or the request times out.Nr   r    r   r   rS   rS   ›   s   € € € € € ØLÐLÐLÐLr   rS   c                   ó   — e Zd ZdZdS )ÚInferenceEndpointErrorz8Generic exception when dealing with Inference Endpoints.Nr   r    r   r   rU   rU   ¢   s   € € € € € ØBÐBÐBÐBr   rU   c                   ó   — e Zd ZdZdS )ÚInferenceEndpointTimeoutErrorz<Exception for timeouts while waiting for Inference Endpoint.Nr   r    r   r   rW   rW   ¦   s   € € € € € ØFÐFÐFÐFr   rW   c                   ó   — e Zd ZdZdS )ÚSafetensorsParsingErrorz¥Raised when failing to parse a safetensors file metadata.

    This can be the case if the file is not a safetensors file or does not respect the specification.
    Nr   r    r   r   rY   rY   ­   r#   r   rY   c                   ó   — e Zd ZdZdS )ÚNotASafetensorsRepoErrorzŽRaised when a repo is not a Safetensors repo i.e. doesn't have either a `model.safetensors` or a
    `model.safetensors.index.json` file.
    Nr   r    r   r   r[   r[   ´   s   € € € € € ðð ð ð r   r[   c                   ó   — e Zd ZdZdS )ÚTextGenerationErrorz3Generic error raised if text-generation went wrong.Nr   r    r   r   r]   r]   ½   s   € € € € € Ø=Ð=Ð=Ð=r   r]   c                   ó   — e Zd ZdZdS )ÚValidationErrorzServer-side validation error.Nr   r    r   r   r_   r_   Â   s   € € € € € Ø'Ð'Ð'Ð'r   r_   c                   ó   — e Zd ZdS )ÚGenerationErrorN©r   r   r   r    r   r   ra   ra   Æ   ó   € € € € € Ø€Dr   ra   c                   ó   — e Zd ZdS )ÚOverloadedErrorNrb   r    r   r   re   re   Ê   rc   r   re   c                   ó   — e Zd ZdS )ÚIncompleteGenerationErrorNrb   r    r   r   rg   rg   Î   rc   r   rg   c                   ó   — e Zd ZdS )ÚUnknownErrorNrb   r    r   r   ri   ri   Ò   rc   r   ri   c                   ó   — e Zd ZdZdS )ÚHFValidationErrorzŸGeneric exception thrown by `huggingface_hub` validators.

    Inherits from [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError).
    Nr   r    r   r   rk   rk   Ù   r#   r   rk   c                   ó,   ‡ — e Zd ZdZdedefˆ fd„Zˆ xZS )Ú
HfUriErrora8  Raised when an `hf://...` URI is malformed.

    See [`parse_hf_uri`] and the
    [HF URIs reference](https://huggingface.co/docs/huggingface_hub/main/en/package_reference/hf_uris)
    for the canonical syntax.

    Inherits from [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError).
    Úurir
   c                 ó„   •— || _         || _        |rd|› d|› �nd|› �}t          ¦   «                              |¦  «         d S )NzInvalid HF URI 'z'. zInvalid HF URI. )rn   r
   r   r   )r   rn   r
   Úfull_msgr   s       €r   r   zHfUriError.__init__ê   sY   ø€ ØˆŒØˆŒØ7:ÐXÐ3 cÐ3Ð3¨cÐ3Ð3Ð3Ð@XÐSVÐ@XÐ@XˆÝ‰Œ×Ò˜Ñ"Ô"Ð"Ð"Ð"r   r:   r   s   @r   rm   rm   à   sU   ø€ € € € € ðð ð#˜Cð # cð #ð #ð #ð #ð #ð #ð #ð #ð #ð #r   rm   c                   ó   — e Zd ZdZdS )ÚDryRunErrorzXError triggered when a dry run is requested but cannot be performed (e.g. invalid repo).Nr   r    r   r   rr   rr   ô   s   € € € € € ØbÐbÐbÐbr   rr   c                   ó   — e Zd ZdZdS )ÚFileMetadataErrorz§Error triggered when the metadata of a file on the Hub cannot be retrieved (missing ETag or commit_hash).

    Inherits from `OSError` for backward compatibility.
    Nr   r    r   r   rt   rt   ø   r#   r   rt   c                   ó(   — e Zd ZU dZdZedz  ed<   dS )ÚBucketNotFoundErroraÍ  
    Raised when trying to access a bucket that does not exist.

    Attributes:
        bucket_id (`str` or `None`):
            The bucket id (namespace/name) that was not found, if it could be determined from the request URL.

    Example:

    ```py
    >>> from huggingface_hub import bucket_info
    >>> bucket_info("<non_existent_bucket>")
    (...)
    huggingface_hub.errors.BucketNotFoundError: 404 Client Error. (Request ID: XXX)

    Bucket Not Found for url: https://huggingface.co/api/buckets/namespace/name.
    Please make sure you specified the correct bucket id (namespace/name).
    If the bucket is private, make sure you are authenticated and your token has the required permissions.
    ```
    NÚ	bucket_id)r   r   r   r   rw   r   r   r    r   r   rv   rv     s2   € € € € € € ðð ð* !€Iˆs�T‰zÐ Ð Ñ Ð Ð r   rv   c                   ó   — e Zd ZU dZeed<   dS )ÚJobNotFoundErrorz•
    Raised when trying to access a Job that does not exist.

    Attributes:
        job_id (`str`):
            The job id that was not found.
    Újob_idN)r   r   r   r   r   r   r    r   r   ry   ry     s%   € € € € € € ðð ð €K€K�K€K€Kr   ry   c                   ó<   — e Zd ZU dZdZedz  ed<   dZedz  ed<   dS )ÚRepositoryNotFoundErroraã  
    Raised when trying to access a hf.co URL with an invalid repository name, or
    with a private repo name the user does not have access to.

    Attributes:
        repo_id (`str` or `None`):
            The repo id that was not found, if it could be determined from the request URL.
        repo_type (`str` or `None`):
            The repo type ("model", "dataset", or "space"), if it could be determined from the request URL.

    Example:

    ```py
    >>> from huggingface_hub import model_info
    >>> model_info("<non_existent_repository>")
    (...)
    huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: PvMw_VjBMjVdMz53WKIzP)

    Repository Not Found for url: https://huggingface.co/api/models/%3Cnon_existent_repository%3E.
    Please make sure you specified the correct `repo_id` and `repo_type`.
    If the repo is private, make sure you are authenticated and your token has the required permissions.
    Invalid username or password.
    ```
    NÚrepo_idÚ	repo_type©r   r   r   r   r}   r   r   r~   r    r   r   r|   r|   -  sF   € € € € € € ðð ð2 €GˆS�4‰ZÐÐÑØ €Iˆs�T‰zÐ Ð Ñ Ð Ð r   r|   c                   ó   — e Zd ZdZdS )ÚGatedRepoErrora¿  
    Raised when trying to access a gated repository for which the user is not on the
    authorized list.

    Note: derives from `RepositoryNotFoundError` to ensure backward compatibility.

    Example:

    ```py
    >>> from huggingface_hub import model_info
    >>> model_info("<gated_repository>")
    (...)
    huggingface_hub.errors.GatedRepoError: 403 Client Error. (Request ID: ViT1Bf7O_026LGSQuVqfa)

    Cannot access gated repo for url https://huggingface.co/api/models/ardent-figment/gated-model.
    Access to model ardent-figment/gated-model is restricted and you are not in the authorized list.
    Visit https://huggingface.co/ardent-figment/gated-model to ask for access.
    ```
    Nr   r    r   r   r�   r�   K  s   € € € € € ðð ð ð r   r�   c                   ó   — e Zd ZdZdS )ÚDisabledRepoErroraý  
    Raised when trying to access a repository that has been disabled by its author.

    Example:

    ```py
    >>> from huggingface_hub import dataset_info
    >>> dataset_info("laion/laion-art")
    (...)
    huggingface_hub.errors.DisabledRepoError: 403 Client Error. (Request ID: Root=1-659fc3fa-3031673e0f92c71a2260dbe2;bc6f4dfb-b30a-4862-af0a-5cfe827610d8)

    Cannot access repository for url https://huggingface.co/api/datasets/laion/laion-art.
    Access to this resource is disabled.
    ```
    Nr   r    r   r   rƒ   rƒ   a  ó   € € € € € ðð ð ð r   rƒ   c                   ó<   — e Zd ZU dZdZedz  ed<   dZedz  ed<   dS )ÚRevisionNotFoundErrora  
    Raised when trying to access a hf.co URL with a valid repository but an invalid
    revision.

    Attributes:
        repo_id (`str` or `None`):
            The repo id, if it could be determined from the request URL.
        repo_type (`str` or `None`):
            The repo type ("model", "dataset", or "space"), if it could be determined from the request URL.

    Example:

    ```py
    >>> from huggingface_hub import hf_hub_download
    >>> hf_hub_download('bert-base-cased', 'config.json', revision='<non-existent-revision>')
    (...)
    huggingface_hub.errors.RevisionNotFoundError: 404 Client Error. (Request ID: Mwhe_c3Kt650GcdKEFomX)

    Revision Not Found for url: https://huggingface.co/bert-base-cased/resolve/%3Cnon-existent-revision%3E/config.json.
    ```
    Nr}   r~   r   r    r   r   r†   r†   v  óF   € € € € € € ðð ð, €GˆS�4‰ZÐÐÑØ €Iˆs�T‰zÐ Ð Ñ Ð Ð r   r†   c                   ó   — e Zd ZdZdS )ÚRevisionResolutionErrorzù
    Raised by [`HfApi.resolve_revision`] when a revision cannot be resolved to a commit hash: the Hub could not be
    reached (offline mode, connection error, timeout, Hub downtime, ...) and no matching entry was found in the
    local cache.
    Nr   r    r   r   r‰   r‰   ‘  s   € € € € € ðð ð ð r   r‰   c                   ó   — e Zd ZdZdS )ÚEntryNotFoundErrora¿  
    Raised when entry not found, either locally or remotely.

    Example:

    ```py
    >>> from huggingface_hub import hf_hub_download
    >>> hf_hub_download('bert-base-cased', '<non-existent-file>')
    (...)
    huggingface_hub.errors.RemoteEntryNotFoundError (...)
    >>> hf_hub_download('bert-base-cased', '<non-existent-file>', local_files_only=True)
    (...)
    huggingface_hub.utils.errors.LocalEntryNotFoundError (...)
    ```
    Nr   r    r   r   r‹   r‹   š  r„   r   r‹   c                   ó<   — e Zd ZU dZdZedz  ed<   dZedz  ed<   dS )ÚRemoteEntryNotFoundErroraó  
    Raised when trying to access a hf.co URL with a valid repository and revision
    but an invalid filename.

    Attributes:
        repo_id (`str` or `None`):
            The repo id, if it could be determined from the request URL.
        repo_type (`str` or `None`):
            The repo type ("model", "dataset", or "space"), if it could be determined from the request URL.

    Example:

    ```py
    >>> from huggingface_hub import hf_hub_download
    >>> hf_hub_download('bert-base-cased', '<non-existent-file>')
    (...)
    huggingface_hub.errors.EntryNotFoundError: 404 Client Error. (Request ID: 53pNl6M0MxsnG5Sw8JA6x)

    Entry Not Found for url: https://huggingface.co/bert-base-cased/resolve/main/%3Cnon-existent-file%3E.
    ```
    Nr}   r~   r   r    r   r   r�   r�   ¬  r‡   r   r�   c                   ó(   ‡ — e Zd ZdZdefˆ fd„Zˆ xZS )ÚLocalEntryNotFoundErroraF  
    Raised when trying to access a file or snapshot that is not on the disk when network is
    disabled or unavailable (connection issue). The entry may exist on the Hub.

    Example:

    ```py
    >>> from huggingface_hub import hf_hub_download
    >>> hf_hub_download('bert-base-cased', '<non-cached-file>',  local_files_only=True)
    (...)
    huggingface_hub.errors.LocalEntryNotFoundError: Cannot find the requested files in the disk cache and outgoing traffic has been disabled. To enable hf.co look-ups and downloads online, set 'local_files_only' to False.
    ```
    r7   c                 óJ   •— t          ¦   «                              |¦  «         d S r   )r   r   )r   r7   r   s     €r   r   z LocalEntryNotFoundError.__init__Ö  s!   ø€ Ý‰Œ×Ò˜Ñ!Ô!Ð!Ð!Ð!r   r:   r   s   @r   r�   r�   Ç  sN   ø€ € € € € ðð ð" ð "ð "ð "ð "ð "ð "ð "ð "ð "ð "r   r�   c                   ó,   ‡ — e Zd ZdZdedefˆ fd„Zˆ xZS )ÚIncompleteSnapshotErrora-  
    Raised by [`snapshot_download`] when the Hub cannot be reached (offline, connection issue, or
    `local_files_only=True`) and the cached snapshot is known to be incomplete: some files listed in
    the repository's cached tree listing are missing from the local snapshot.

    This is a subclass of [`LocalEntryNotFoundError`] for backward compatibility.

    The `snapshot_path` attribute holds the path to the incomplete local snapshot, so a downstream library can locate
    the latest cached files even though they are known to be incomplete.
    r7   Úsnapshot_pathc                 óX   •— t          ¦   «                              |¦  «         || _        d S r   )r   r   r“   )r   r7   r“   r   s      €r   r   z IncompleteSnapshotError.__init__æ  s)   ø€ Ý‰Œ×Ò˜Ñ!Ô!Ð!Ø*ˆÔÐÐr   r:   r   s   @r   r’   r’   Ú  sU   ø€ € € € € ð	ð 	ð+ ð +°Cð +ð +ð +ð +ð +ð +ð +ð +ð +ð +r   r’   c                   ó   — e Zd ZdZdS )ÚBadRequestErroraG  
    Raised by `hf_raise_for_status` when the server returns a HTTP 400 error.

    Example:

    ```py
    >>> resp = httpx.post("hf.co/api/check", ...)
    >>> hf_raise_for_status(resp, endpoint_name="check")
    huggingface_hub.errors.BadRequestError: Bad request for check endpoint: {details} (Request ID: XXX)
    ```
    Nr   r    r   r   r–   r–   ì  s   € € € € € ð
ð 
ð 
ð 
r   r–   c                   ó   — e Zd ZdZdS )Ú	DDUFErrorz5Base exception for errors related to the DDUF format.Nr   r    r   r   r˜   r˜   ý  s   € € € € € Ø?Ð?Ð?Ð?r   r˜   c                   ó   — e Zd ZdZdS )ÚDDUFCorruptedFileErrorz1Exception thrown when the DDUF file is corrupted.Nr   r    r   r   rš   rš     ó   € € € € € Ø;Ð;Ð;Ð;r   rš   c                   ó   — e Zd ZdZdS )ÚDDUFExportErrorz-Base exception for errors during DDUF export.Nr   r    r   r   r�   r�     s   € € € € € Ø7Ð7Ð7Ð7r   r�   c                   ó   — e Zd ZdZdS )ÚDDUFInvalidEntryNameErrorz0Exception thrown when the entry name is invalid.Nr   r    r   r   rŸ   rŸ   	  r&   r   rŸ   c                   ó   — e Zd ZdZdS )ÚStrictDataclassErrorz&Base exception for strict dataclasses.Nr   r    r   r   r¡   r¡     s   € € € € € Ø0Ð0Ð0Ð0r   r¡   c                   ó   — e Zd ZdZdS )ÚStrictDataclassDefinitionErrorz@Exception thrown when a strict dataclass is defined incorrectly.Nr   r    r   r   r£   r£     s   € € € € € ØJÐJÐJÐJr   r£   c                   ó,   ‡ — e Zd ZdZdedefˆ fd„Zˆ xZS )Ú#StrictDataclassFieldValidationErrorzLException thrown when a strict dataclass fails validation for a given field.ÚfieldÚcausec                 ó€   •— d|› d�}|d|j         j        › d|› �z  }t          ¦   «                              |¦  «         d S )NzValidation error for field 'ú':ú
    ú: ©r   r   r   r   )r   r¦   r§   Úerror_messager   s       €r   r   z,StrictDataclassFieldValidationError.__init__  sQ   ø€ Ø@°uÐ@Ð@Ð@ˆØÐE %¤/Ô":ÐEÐE¸eÐEÐEÑEˆÝ‰Œ×Ò˜Ñ'Ô'Ð'Ð'Ð'r   ©r   r   r   r   r   Ú	Exceptionr   r   r   s   @r   r¥   r¥     sQ   ø€ € € € € ØVÐVð(˜cð (¨)ð (ð (ð (ð (ð (ð (ð (ð (ð (ð (r   r¥   c                   ó,   ‡ — e Zd ZdZdedefˆ fd„Zˆ xZS )Ú#StrictDataclassClassValidationErrorzOException thrown when a strict dataclass fails validation on a class validator.Ú	validatorr§   c                 ó€   •— d|› d�}|d|j         j        › d|› �z  }t          ¦   «                              |¦  «         d S )Nz&Class validation error for validator 'r©   rª   r«   r¬   )r   r²   r§   r­   r   s       €r   r   z,StrictDataclassClassValidationError.__init__$  sQ   ø€ ØNÀÐNÐNÐNˆØÐE %¤/Ô":ÐEÐE¸eÐEÐEÑEˆÝ‰Œ×Ò˜Ñ'Ô'Ð'Ð'Ð'r   r®   r   s   @r   r±   r±   !  sQ   ø€ € € € € ØYÐYð( #ð (¨ið (ð (ð (ð (ð (ð (ð (ð (ð (ð (r   r±   c                   ó   — e Zd ZdZdS )ÚXetDownloadErrorz:Exception thrown when the download from Xet Storage fails.Nr   r    r   r   rµ   rµ   -  s   € € € € € ØDÐDÐDÐDr   rµ   c                   ó   — e Zd ZdZdS )ÚFileDuplicationErrorz1Raised when duplicating files across repos fails.Nr   r    r   r   r·   r·   4  r›   r   r·   c                   ó   — e Zd ZdZdS )ÚCLIErrorz7CLI error with clean message (no traceback by default).Nr   r    r   r   r¹   r¹   ;  s   € € € € € ØAÐAÐAÐAr   r¹   c                   ó   — e Zd ZdZdS )ÚConfirmationErrorzERaised when a confirmation prompt is declined (non-interactive mode).Nr   r    r   r   r»   r»   ?  s   € € € € € ØOÐOÐOÐOr   r»   c                   ó   — e Zd ZdZdS )ÚCLIExtensionInstallErrorz(Error during CLI extension installation.Nr   r    r   r   r½   r½   C  s   € € € € € Ø2Ð2Ð2Ð2r   r½   c                   ó<   ‡ — e Zd ZdZddœdededz  ddfˆ fd„Zˆ xZS )ÚSandboxErrora  Base exception for sandbox operations (see `huggingface_hub.Sandbox`).

    Attributes:
        status_code: The HTTP status returned by the in-sandbox server, if the error
            originated from an API response (e.g. `404` for a missing file). `None` otherwise.
    N)Ústatus_coder7   rÀ   rG   c                óX   •— t          ¦   «                              |¦  «         || _        d S r   )r   r   rÀ   )r   r7   rÀ   r   s      €r   r   zSandboxError.__init__R  s)   ø€ Ý‰Œ×Ò˜Ñ!Ô!Ð!Ø&ˆÔÐÐr   )r   r   r   r   r   Úintr   r   r   s   @r   r¿   r¿   J  sq   ø€ € € € € ðð ð CGð 'ð 'ð ' ð '°S¸4±Zð 'È4ð 'ð 'ð 'ð 'ð 'ð 'ð 'ð 'ð 'ð 'r   r¿   c                   ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚSandboxCommandErrorzÐRaised when a command run in a sandbox exits with a non-zero code.

    Attributes:
        cmd: The command that failed.
        result: The full `SandboxCommandResult` (exit_code, stdout, stderr, ...).
    rG   Nc                 óô   •— || _         || _        |j        r|j        dd …         nd}|j        rd}n|j        �d|j        › �}n
d|j        › �}t          ¦   «                              d|›d|› d|› �¦  «         d S )	Niüÿÿz<empty>z	timed outzwas killed by signal zexited with code zCommand ú z
. stderr:
)ÚcmdÚresultÚstderrÚ	timed_outÚsignalÚ	exit_coder   r   )r   rÇ   rÈ   Ústderr_tailÚreasonr   s        €r   r   zSandboxCommandError.__init___  sŸ   ø€ ØˆŒØˆŒØ/5¬}ÐK�f”m E F FÔ+Ð+À)ˆØÔð 	<Ø ˆFˆFØŒ]Ð&Ø<¨V¬]Ð<Ð<ˆFˆFà;¨Ô)9Ð;Ð;ˆFÝ‰Œ×ÒÐL CÐLÐL¨FÐLÐL¸{ÐLÐLÑMÔMÐMÐMÐMr   )rG   N)r   r   r   r   r   r   r   s   @r   rÄ   rÄ   W  sQ   ø€ € € € € ðð ð
Nð 
Nð 
Nð 
Nð 
Nð 
Nð 
Nð 
Nð 
Nð 
Nr   rÄ   N)Cr   Úenumr   Úpathlibr   Úhttpxr   r   r¯   r   r   r"   ÚEnvironmentErrorr%   r(   r   r*   r6   ÚConnectionErrorr<   ÚOSErrorr>   ÚTimeoutErrorrS   rU   rW   rY   r[   r]   r_   ra   re   rg   ri   Ú
ValueErrorrk   rm   rr   rt   rv   ry   r|   r�   rƒ   r†   r‰   r‹   r�   ÚFileNotFoundErrorr�   r’   r–   r˜   rš   r�   rŸ   r¡   r£   r¥   r±   rµ   r·   r¹   r»   r½   r¿   rÄ   r    r   r   ú<module>rØ      s7	  ðØ !Ð !à Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð à %Ð %Ð %Ð %Ð %Ð %Ð %Ð %ð#ð #ð #ð #ð #�Iñ #ô #ð #ðRð Rð Rð Rð R˜iñ Rô Rð Rðð ð ð ð  )ñ ô ð ð;ð ;ð ;ð ;ð ;Ð.ñ ;ô ;ð ;ðð ð ð ð �	ñ ô ð ð$ð $ð $ð $ð $�S˜$ñ $ô $ð $ð%ð %ð %ð %ð %�iñ %ô %ð %ð(_ð _ð _ð _ð _˜?ñ _ô _ð _ð;pð ;pð ;pð ;pð ;p�Y ñ ;pô ;pð ;pðBMð Mð Mð Mð M˜I |ñ Mô Mð MðCð Cð Cð Cð C˜Yñ Cô Cð CðGð Gð Gð Gð GÐ$:¸Lñ Gô Gð Gðð ð ð ð ˜iñ ô ð ðð ð ð ð ˜yñ ô ð ð>ð >ð >ð >ð >˜)ñ >ô >ð >ð
(ð (ð (ð (ð (Ð)ñ (ô (ð (ð	ð 	ð 	ð 	ð 	Ð)ñ 	ô 	ð 	ð	ð 	ð 	ð 	ð 	Ð)ñ 	ô 	ð 	ð	ð 	ð 	ð 	ð 	Ð 3ñ 	ô 	ð 	ð	ð 	ð 	ð 	ð 	Ð&ñ 	ô 	ð 	ðð ð ð ð ˜
ñ ô ð ð#ð #ð #ð #ð #�ñ #ô #ð #ð(cð cð cð cð c�'ñ cô cð cðð ð ð ð ˜ñ ô ð ð!ð !ð !ð !ð !˜.ñ !ô !ð !ð8	ð 	ð 	ð 	ð 	�~ñ 	ô 	ð 	ð!ð !ð !ð !ð !˜nñ !ô !ð !ð<ð ð ð ð Ð,ñ ô ð ð,ð ð ð ð ˜ñ ô ð ð*!ð !ð !ð !ð !˜Nñ !ô !ð !ð6ð ð ð ð ˜iñ ô ð ðð ð ð ð ˜ñ ô ð ð$!ð !ð !ð !ð !˜~Ð/Añ !ô !ð !ð6"ð "ð "ð "ð "Ð/Ð1Cñ "ô "ð "ð&+ð +ð +ð +ð +Ð5ñ +ô +ð +ð$ð ð ð ð �n jñ ô ð ð"@ð @ð @ð @ð @�	ñ @ô @ð @ð<ð <ð <ð <ð <˜Yñ <ô <ð <ð8ð 8ð 8ð 8ð 8�iñ 8ô 8ð 8ð;ð ;ð ;ð ;ð ; ñ ;ô ;ð ;ð1ð 1ð 1ð 1ð 1˜9ñ 1ô 1ð 1ðKð Kð Kð Kð KÐ%9ñ Kô Kð Kð(ð (ð (ð (ð (Ð*>ñ (ô (ð (ð(ð (ð (ð (ð (Ð*>ñ (ô (ð (ðEð Eð Eð Eð E�yñ Eô Eð Eð<ð <ð <ð <ð <˜9ñ <ô <ð <ðBð Bð Bð Bð Bˆyñ Bô Bð BðPð Pð Pð Pð P˜ñ Pô Pð Pð3ð 3ð 3ð 3ð 3˜xñ 3ô 3ð 3ð
'ð 
'ð 
'ð 
'ð 
'�9ñ 
'ô 
'ð 
'ðNð Nð Nð Nð N˜,ñ Nô Nð Nð Nð Nr   