Ë
    [üàgg,  ã                   ó>  — d Z ddlZddlZddlmZmZmZmZ ddlm	Z	 ddl
mZ erddlZej                  Zn	 ddlZej                  ZerddlmZmZmZmZ ddlmZ ndxZxZxZZd	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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'ejR                  «      Z* G d*„ d+e*«      Z+ G d,„ d-e*«      Z, G d.„ d/e'«      Z- G d0„ d1e«      Z. G d2„ d3ee/«      Z0 G d4„ d5e0«      Z1 G d6„ d7e«      Z2 G d8„ d9e«      Z3 G d:„ d;e1e2«      Z4 G d<„ d=e3e2«      Z5 G d>„ d?e#«      Z6e�7ejn                  fZ8e6ejn                  fZ9ejt                  fZ;e6ejt                  fZ<n e=«       Z8e6e/fZ9 e=«       Z;e6fZ< G d@„ dAge<¢­Ž Z> G dB„ dCge9¢­Ž Z? G dD„ dEe@«      ZAy# e$ r dxZZY �ŒÔw xY w)FzHTTP related errors.é    N)ÚTYPE_CHECKINGÚOptionalÚTupleÚUnion)ÚMultiMappingé   )ÚStrOrURL)ÚClientResponseÚConnectionKeyÚFingerprintÚRequestInfo)ÚRawResponseMessage)ÚClientErrorÚClientConnectionErrorÚClientConnectionResetErrorÚClientOSErrorÚClientConnectorErrorÚClientProxyConnectionErrorÚClientSSLErrorÚClientConnectorDNSErrorÚClientConnectorSSLErrorÚClientConnectorCertificateErrorÚConnectionTimeoutErrorÚSocketTimeoutErrorÚServerConnectionErrorÚServerTimeoutErrorÚServerDisconnectedErrorÚServerFingerprintMismatchÚClientResponseErrorÚClientHttpProxyErrorÚWSServerHandshakeErrorÚContentTypeErrorÚClientPayloadErrorÚ
InvalidURLÚInvalidUrlClientErrorÚRedirectClientErrorÚNonHttpUrlClientErrorÚInvalidUrlRedirectClientErrorÚNonHttpUrlRedirectClientErrorÚWSMessageTypeErrorc                   ó   — e Zd ZdZy)r   z(Base class for client connection errors.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úW/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/aiohttp/client_exceptions.pyr   r   =   s   „ Ú2r2   r   c                   ó¾   — e Zd ZdZdddddœdedeedf   dee   d	ee   d
e	dee
e	      ddfd„Zde	fd„Zde	fd„Zedefd„«       Zej                   deddfd„«       Zy)r   a  Base class for exceptions that occur after getting a response.

    request_info: An instance of RequestInfo.
    history: A sequence of responses, if redirects occurred.
    status: HTTP status code.
    message: Error message.
    headers: Response headers.
    NÚ )ÚcodeÚstatusÚmessageÚheadersÚrequest_infoÚhistory.r6   r7   r8   r9   Úreturnc                óÚ   — || _         |�)|�t        d«      ‚t        j                  dt        d¬«       |�|| _        n|�|| _        nd| _        || _        || _        || _        ||f| _	        y )NzSBoth code and status arguments are provided; code is deprecated, use status insteadz/code argument is deprecated, use status insteadé   ©Ú
stacklevelr   )
r:   Ú
ValueErrorÚwarningsÚwarnÚDeprecationWarningr7   r8   r9   r;   Úargs)Úselfr:   r;   r6   r7   r8   r9   s          r3   Ú__init__zClientResponseError.__init__K   s…   € ð )ˆÔØÐØÐ!Ü ð=óð ô �M‰MØAÜ"Øõð
 ÐØ ˆD�KØÐØˆD�KàˆDŒKØˆŒØˆŒØˆŒØ! 7Ð+ˆ�	r2   c                 óŠ   — dj                  | j                  | j                  t        | j                  j
                  «      «      S )Nz{}, message={!r}, url={!r})Úformatr7   r8   Ústrr:   Úreal_url©rF   s    r3   Ú__str__zClientResponseError.__str__l   s7   € Ø+×2Ñ2Ø�K‰KØ�L‰LÜ�×!Ñ!×*Ñ*Ó+ó
ð 	
r2   c                 ó.  — | j                   ›d| j                  ›�}| j                  dk7  r|d| j                  ›�z  }| j                  dk7  r|d| j                  ›�z  }| j                  �|d| j                  ›�z  }t        | «      j                  › d|› d�S )	Nz, r   z	, status=r5   z
, message=z
, headers=ú(ú))r:   r;   r7   r8   r9   Útyper-   )rF   rE   s     r3   Ú__repr__zClientResponseError.__repr__s   sŸ   € Ø×#Ñ#Ð& b¨¯©Ð(8Ð9ˆØ�;‰;˜!ÒØ�i §¡˜Ð/Ñ/ˆDØ�<‰<˜2ÒØ�j §¡Ð 0Ð1Ñ1ˆDØ�<‰<Ð#Ø�j §¡Ð 0Ð1Ñ1ˆDÜ�t“*×%Ñ%Ð& a¨ v¨QÐ/Ð/r2   c                 óR   — t        j                  dt        d¬«       | j                  S ©Nz/code property is deprecated, use status insteadr>   r?   ©rB   rC   rD   r7   rL   s    r3   r6   zClientResponseError.code}   s#   € ä�‰Ø=ÜØõ	
ð
 �{‰{Ðr2   Úvaluec                 óJ   — t        j                  dt        d¬«       || _        y rT   rU   )rF   rV   s     r3   r6   zClientResponseError.code†   s    € ä�‰Ø=ÜØõ	
ð
 ˆ�r2   )r-   r.   r/   r0   r   r   r
   r   ÚintrJ   r   rG   rM   rR   Úpropertyr6   Úsetterr1   r2   r3   r   r   A   sÔ   „ ñð #Ø $ØØ/3ò,à!ð,ð �~ sÐ*Ñ+ð,ð
 �s‰mð,ð ˜‘ð,ð ð,ð ˜, sÑ+Ñ,ð,ð 
ó,ðB
˜ó 
ð0˜#ó 0ð ð�cò ó ðð 
‡[�[ð˜#ð  $ò ó ñr2   r   c                   ó   — e Zd ZdZy)r"   zContentType found is not valid.Nr,   r1   r2   r3   r"   r"   �   s   „ Ú)r2   r"   c                   ó   — e Zd ZdZy)r!   z!websocket server handshake error.Nr,   r1   r2   r3   r!   r!   ”   s   „ Ú+r2   r!   c                   ó   — e Zd ZdZy)r    z¡HTTP proxy error.

    Raised in :class:`aiohttp.connector.TCPConnector` if
    proxy responds with status other than ``200 OK``
    on ``CONNECT`` request.
    Nr,   r1   r2   r3   r    r    ˜   s   „ òr2   r    c                   ó   — e Zd ZdZy)ÚTooManyRedirectsz%Client was redirected too many times.Nr,   r1   r2   r3   r_   r_   ¡   s   „ Ú/r2   r_   c                   ó   — e Zd ZdZy)r   z$Base class for client socket errors.Nr,   r1   r2   r3   r   r   ¥   ó   „ Ú.r2   r   c                   ó   — e Zd ZdZy)r   ÚConnectionResetErrorNr,   r1   r2   r3   r   r   ©   s   „ Úr2   r   c                   ó   — e Zd ZdZy)r   zOSError error.Nr,   r1   r2   r3   r   r   ­   s   „ Úr2   r   c                   ó¾   ‡ — e Zd ZdZdededdfˆ fd„Zedefd„«       Zede	fd„«       Z
edee   fd	„«       Zedeeed
f   fd„«       Zde	fd„Zej(                  Zˆ xZS )r   zƒClient connector error.

    Raised in :class:`aiohttp.connector.TCPConnector` if
        a connection can not be established.
    Úconnection_keyÚos_errorr<   Nc                 ó|   •— || _         || _        t        ‰| �  |j                  |j
                  «       ||f| _        y ©N)Ú	_conn_keyÚ	_os_errorÚsuperrG   ÚerrnoÚstrerrorrE   )rF   rf   rg   Ú	__class__s      €r3   rG   zClientConnectorError.__init__¸   s6   ø€ Ø'ˆŒØ!ˆŒÜ‰Ñ˜Ÿ™¨×):Ñ):Ô;Ø# XÐ.ˆ�	r2   c                 ó   — | j                   S ri   )rk   rL   s    r3   rg   zClientConnectorError.os_error¾   s   € à�~‰~Ðr2   c                 ó.   — | j                   j                  S ri   ©rj   ÚhostrL   s    r3   rs   zClientConnectorError.hostÂ   ó   € à�~‰~×"Ñ"Ð"r2   c                 ó.   — | j                   j                  S ri   ©rj   ÚportrL   s    r3   rw   zClientConnectorError.portÆ   rt   r2   r   c                 ó.   — | j                   j                  S ri   )rj   ÚsslrL   s    r3   ry   zClientConnectorError.sslÊ   s   € à�~‰~×!Ñ!Ð!r2   c                 óŽ   — dj                  | | j                  du rd| j                  «      S | j                  | j                  «      S )Nz6Cannot connect to host {0.host}:{0.port} ssl:{1} [{2}]TÚdefault©rI   ry   rn   rL   s    r3   rM   zClientConnectorError.__str__Î   sB   € ØG×NÑNØ˜tŸx™x¨4Ñ/�)¸t¿}¹}ó
ð 	
Ø59·X±X¸t¿}¹}ó
ð 	
r2   )r-   r.   r/   r0   r   ÚOSErrorrG   rY   rg   rJ   rs   r   rX   rw   r   Ú
SSLContextÚboolry   rM   ÚBaseExceptionÚ
__reduce__Ú__classcell__©ro   s   @r3   r   r   ±   s·   ø„ ñð/ }ð /Àð /ÈDõ /ð ð˜'ò ó ðð ð#�cò #ó ð#ð ð#�h˜s‘mò #ó ð#ð ð"�U˜: t¨]Ð:Ñ;ò "ó ð"ð
˜ó 
ð ×)Ñ)„Jr2   r   c                   ó   — e Zd ZdZy)r   zŒDNS resolution failed during client connection.

    Raised in :class:`aiohttp.connector.TCPConnector` if
        DNS resolution fails.
    Nr,   r1   r2   r3   r   r   ×   ó   „ òr2   r   c                   ó   — e Zd ZdZy)r   zŠProxy connection error.

    Raised in :class:`aiohttp.connector.TCPConnector` if
        connection to proxy can not be established.
    Nr,   r1   r2   r3   r   r   ß   r…   r2   r   c                   óV   ‡ — e Zd ZdZdedededdfˆ fd„Zedefd„«       Z	defd	„Z
ˆ xZS )
ÚUnixClientConnectorErrorzŽUnix connector error.

    Raised in :py:class:`aiohttp.connector.UnixConnector`
    if connection to unix socket can not be established.
    Úpathrf   rg   r<   Nc                 ó4   •— || _         t        ‰| �	  ||«       y ri   )Ú_pathrl   rG   )rF   r‰   rf   rg   ro   s       €r3   rG   z!UnixClientConnectorError.__init__î   s   ø€ ð ˆŒ
Ü‰Ñ˜¨Õ2r2   c                 ó   — | j                   S ri   )r‹   rL   s    r3   r‰   zUnixClientConnectorError.pathô   s   € à�z‰zÐr2   c                 óŽ   — dj                  | | j                  du rd| j                  «      S | j                  | j                  «      S )Nz4Cannot connect to unix socket {0.path} ssl:{1} [{2}]Tr{   r|   rL   s    r3   rM   z UnixClientConnectorError.__str__ø   sB   € ØE×LÑLØ˜tŸx™x¨4Ñ/�)¸t¿}¹}ó
ð 	
Ø59·X±X¸t¿}¹}ó
ð 	
r2   )r-   r.   r/   r0   rJ   r   r}   rG   rY   r‰   rM   r‚   rƒ   s   @r3   rˆ   rˆ   ç   sT   ø„ ñð3Øð3Ø)6ð3ØBIð3à	õ3ð ð�cò ó ðð
˜÷ 
r2   rˆ   c                   ó   — e Zd ZdZy)r   zServer connection errors.Nr,   r1   r2   r3   r   r   þ   ó   „ Ú#r2   r   c                   ó.   — e Zd ZdZddeeedf   ddfd„Zy)r   zServer disconnected.Nr8   r<   c                 ó*   — |€d}|f| _         || _        y )NzServer disconnected)rE   r8   )rF   r8   s     r3   rG   z ServerDisconnectedError.__init__  s   € Øˆ?Ø+ˆGà�JˆŒ	Øˆ�r2   ri   )r-   r.   r/   r0   r   r   rJ   rG   r1   r2   r3   r   r     s&   „ Ùñ Ð&8¸#¸tÐ&CÑ Dð ÐPTô r2   r   c                   ó   — e Zd ZdZy)r   zServer timeout error.Nr,   r1   r2   r3   r   r     ó   „ Úr2   r   c                   ó   — e Zd ZdZy)r   zConnection timeout error.Nr,   r1   r2   r3   r   r     r�   r2   r   c                   ó   — e Zd ZdZy)r   zSocket timeout error.Nr,   r1   r2   r3   r   r     r“   r2   r   c            
       ó8   — e Zd ZdZdededededdf
d„Zdefd	„Zy)
r   z4SSL certificate does not match expected fingerprint.ÚexpectedÚgotrs   rw   r<   Nc                 óR   — || _         || _        || _        || _        ||||f| _        y ri   )r—   r˜   rs   rw   rE   )rF   r—   r˜   rs   rw   s        r3   rG   z"ServerFingerprintMismatch.__init__  s.   € Ø ˆŒØˆŒØˆŒ	ØˆŒ	Ø˜s D¨$Ð/ˆ�	r2   c                 ó¤   — dj                  | j                  j                  | j                  | j                  | j
                  | j                  «      S )Nz/<{} expected={!r} got={!r} host={!r} port={!r}>)rI   ro   r-   r—   r˜   rs   rw   rL   s    r3   rR   z"ServerFingerprintMismatch.__repr__#  s:   € Ø@×GÑGØ�N‰N×#Ñ# T§]¡]°D·H±H¸d¿i¹iÈÏÉó
ð 	
r2   )	r-   r.   r/   r0   ÚbytesrJ   rX   rG   rR   r1   r2   r3   r   r     s9   „ Ù>ð0 ð 0¨Uð 0¸#ð 0ÀSð 0ÈTó 0ð
˜#ô 
r2   r   c                   ó   — e Zd ZdZy)r#   zResponse payload error.Nr,   r1   r2   r3   r#   r#   )  s   „ Ú!r2   r#   c                   ó|   ‡ — e Zd ZdZddedeedf   ddfˆ fd„Zedefd„«       Z	edd„«       Z
defd	„Zdefd
„Zˆ xZS )r$   zbInvalid URL.

    URL used for fetching is malformed, e.g. it doesn't contains host
    part.
    NÚurlÚdescriptionr<   c                 óf   •— || _         || _        |rt        ‰| �  ||«       y t        ‰| �  |«       y ri   )Ú_urlÚ_descriptionrl   rG   )rF   rž   rŸ   ro   s      €r3   rG   zInvalidURL.__init__6  s3   ø€ ð ˆŒ	Ø'ˆÔáÜ‰GÑ˜S +Õ.ä‰GÑ˜SÕ!r2   c                 ó   — | j                   S ri   )r¡   rL   s    r3   rž   zInvalidURL.urlA  s   € à�y‰yÐr2   c                 ó   — | j                   S ri   )r¢   rL   s    r3   rŸ   zInvalidURL.descriptionE  s   € à× Ñ Ð r2   c                 ó<   — d| j                   j                  › d| › d�S )Nú<ú ú>)ro   r-   rL   s    r3   rR   zInvalidURL.__repr__I  s"   € Ø�4—>‘>×*Ñ*Ð+¨1¨T¨F°!Ð4Ð4r2   c                 óz   — | j                   r| j                  › d| j                   › �S t        | j                  «      S )Nz - )r¢   r¡   rJ   rL   s    r3   rM   zInvalidURL.__str__L  s5   € Ø×ÒØ—i‘i�[  D×$5Ñ$5Ð#6Ð7Ð7Ü�4—9‘9‹~Ðr2   ri   )r<   z
str | None)r-   r.   r/   r0   r	   r   rJ   rG   rY   rž   rŸ   rR   rM   r‚   rƒ   s   @r3   r$   r$   -  sr   ø„ ññ	"˜Hð 	"°5¸¸d¸Ñ3Cð 	"Ètõ 	"ð ð�Xò ó ðð ò!ó ð!ð5˜#ó 5ð˜÷ r2   r$   c                   ó   — e Zd ZdZy)r%   zInvalid URL client error.Nr,   r1   r2   r3   r%   r%   R  r�   r2   r%   c                   ó   — e Zd ZdZy)r&   zClient redirect error.Nr,   r1   r2   r3   r&   r&   V  s   „ Ú r2   r&   c                   ó   — e Zd ZdZy)r'   zNon http URL client error.Nr,   r1   r2   r3   r'   r'   Z  s   „ Ú$r2   r'   c                   ó   — e Zd ZdZy)r(   z"Invalid URL redirect client error.Nr,   r1   r2   r3   r(   r(   ^  s   „ Ú,r2   r(   c                   ó   — e Zd ZdZy)r)   z#Non http URL redirect client error.Nr,   r1   r2   r3   r)   r)   b  s   „ Ú-r2   r)   c                   ó   — e Zd ZdZy)r   zBase error for ssl.*Errors.Nr,   r1   r2   r3   r   r   f  s   „ Ú%r2   r   c                   ó   — e Zd ZdZy)r   zResponse ssl error.Nr,   r1   r2   r3   r   r   ~  s   „ Úr2   r   c                   óŽ   — e Zd ZdZdededdfd„Zedefd„«       Zede	fd„«       Z
edee   fd	„«       Zedefd
„«       Zde	fd„Zy)r   zResponse certificate error.rf   Úcertificate_errorr<   Nc                 ó2   — || _         || _        ||f| _        y ri   )rj   Ú_certificate_errorrE   )rF   rf   r²   s      r3   rG   z(ClientConnectorCertificateError.__init__…  s    € ð (ˆŒØ"3ˆÔØ#Ð%6Ð7ˆ�	r2   c                 ó   — | j                   S ri   )r´   rL   s    r3   r²   z1ClientConnectorCertificateError.certificate_errorŒ  s   € à×&Ñ&Ð&r2   c                 ó.   — | j                   j                  S ri   rr   rL   s    r3   rs   z$ClientConnectorCertificateError.host�  rt   r2   c                 ó.   — | j                   j                  S ri   rv   rL   s    r3   rw   z$ClientConnectorCertificateError.port”  rt   r2   c                 ó.   — | j                   j                  S ri   )rj   Úis_sslrL   s    r3   ry   z#ClientConnectorCertificateError.ssl˜  s   € à�~‰~×$Ñ$Ð$r2   c                 ó$   — dj                  | «      S )Nz{Cannot connect to host {0.host}:{0.port} ssl:{0.ssl} [{0.certificate_error.__class__.__name__}: {0.certificate_error.args}])rI   rL   s    r3   rM   z'ClientConnectorCertificateError.__str__œ  s   € ð*ç*0©&°«,ð	
r2   )r-   r.   r/   r0   r   Ú	ExceptionrG   rY   r²   rJ   rs   r   rX   rw   r   ry   rM   r1   r2   r3   r   r   ‚  sž   „ Ù%ð8Ø+ð8Ø@Ið8à	ó8ð ð' 9ò 'ó ð'ð ð#�cò #ó ð#ð ð#�h˜s‘mò #ó ð#ð ð%�Tò %ó ð%ð
˜ô 
r2   r   c                   ó   — e Zd ZdZy)r*   z$WebSocket message type is not valid.Nr,   r1   r2   r3   r*   r*   ¤  ra   r2   r*   )Br0   ÚasynciorB   Útypingr   r   r   r   Ú	multidictr   Útypedefsr	   ry   r~   ÚImportErrorÚclient_reqrepr
   r   r   r   Úhttp_parserr   Ú__all__r»   r   r   r"   r!   r    r_   r   rc   r   r}   r   r   r   r   rˆ   r   r   ÚTimeoutErrorr   r   r   r   r#   rA   r$   r%   r&   r'   r(   r)   r   ÚCertificateErrorÚcert_errorsÚcert_errors_basesÚSSLErrorÚ
ssl_errorsÚssl_error_basesÚtupler   r   Ú	TypeErrorr*   r1   r2   r3   ú<module>rÎ      s�  ðÙ ã Û ß 8Ó 8å "å áÛà—‘�Jð Ûà—^‘^ˆ
ñ ßVÓVÞ/àHLÐL€KÐL�.ÐL =Ð3Eð€ô@3�)ô 3ôL˜+ô Lô^*Ð*ô *ô,Ð0ô ,ôÐ.ô ô0Ð*ô 0ô/˜Kô /ôÐ!6Ð8Lô ôÐ)¨7ô ô#*˜=ô #*ôLÐ2ô ôÐ!5ô ô
Ð3ô 
ô.$Ð1ô $ôÐ3ô ô Ð.°×0DÑ0Dô  ô$Ð/ô $ô Ð+ô  ô
Ð 5ô 
ô "˜ô "ô"�˜jô "ôJ$˜Jô $ô!˜+ô !ô%˜Kô %ô-Ð$9Ð;Nô -ô.Ð$9Ð;Nô .ô&Ð)ô &ð €?Ø×'Ñ'Ð)€KàØ×ÑðÐð
 —,‘,�€JØ% s§|¡|Ð4�Oá“'€KàØðÐñ
 “€JØ%Ð'€Oõ˜ó õ
Ð'8ó 
ôD/˜õ /øða ò  ØÐˆ‹jð ús   ·H È	HÈH