Ë
    äØjj   ã                   ó\  — d dl mZ ddl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«      Z G d„ de«      Z G d„ de«      Z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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«      Z G d.„ d/e«      Z G d0„ d1e«      Z G d2„ d3e«      Z  G d4„ d5e«      Z! G d6„ d7e«      Z" G d8„ d9e«      Z# G d:„ d;e«      Z$ G d<„ d=ee«      Z% G d>„ d?e«      Z& G d@„ dAee«      Z G dB„ dCee«      Z' G dD„ dEe«      Z( G dF„ dGe)e«      Z* G dH„ dIe«      Z+ G dJ„ dKe«      Z, G dL„ dMe«      Z-yN)Oé    )Úabsolute_importé   )ÚIncompleteReadc                   ó   — e Zd ZdZy)Ú	HTTPErrorz#Base exception used by this module.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    ú`/opt/eval-harness/bench_task/venv/lib/python3.12/site-packages/pip/_vendor/urllib3/exceptions.pyr   r      s   „ Ù-àr   r   c                   ó   — e Zd ZdZy)ÚHTTPWarningz!Base warning used by this module.Nr   r   r   r   r   r      s   „ Ù+àr   r   c                   ó   — e Zd ZdZd„ Zd„ Zy)Ú	PoolErrorz/Base exception for errors caused within a pool.c                 óH   — || _         t        j                  | |›d|›�«       y )Nz: )Úpoolr   Ú__init__)Úselfr   Úmessages      r   r   zPoolError.__init__   s   € ØˆŒ	Ü×Ñ˜4ªT±7Ð!;Õ<r   c                 ó   — | j                   dfS )N)NN©Ú	__class__©r   s    r   Ú
__reduce__zPoolError.__reduce__   s   € à�~‰~˜|Ð+Ð+r   N©r	   r
   r   r   r   r   r   r   r   r   r      s   „ Ù9ò=ó,r   r   c                   ó   — e Zd ZdZd„ Zd„ Zy)ÚRequestErrorz8Base exception for PoolErrors that have associated URLs.c                 ó@   — || _         t        j                  | ||«       y ©N)Úurlr   r   )r   r   r#   r   s       r   r   zRequestError.__init__#   s   € ØˆŒÜ×Ñ˜4  wÕ/r   c                 ó8   — | j                   d | j                  d ffS r"   )r   r#   r   s    r   r   zRequestError.__reduce__'   s   € à�~‰~  d§h¡h°Ð5Ð5Ð5r   Nr   r   r   r   r    r        s   „ ÙBò0ó6r   r    c                   ó   — e Zd ZdZy)ÚSSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nr   r   r   r   r&   r&   ,   ó   „ ÙCàr   r&   c                   ó"   ‡ — e Zd ZdZˆ fd„Zˆ xZS )Ú
ProxyErrorz,Raised when the connection to a proxy fails.c                 ó>   •— t        t        | �
  ||g|¢­Ž  || _        y r"   )Úsuperr)   r   Úoriginal_error)r   r   ÚerrorÚargsr   s       €r   r   zProxyError.__init__5   s!   ø€ ÜŒj˜$Ñ(¨°%Ð?¸$Ó?Ø#ˆÕr   ©r	   r
   r   r   r   Ú__classcell__r   s   @r   r)   r)   2   s   ø„ Ù6÷$ð $r   r)   c                   ó   — e Zd ZdZy)ÚDecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nr   r   r   r   r2   r2   :   ó   „ ÙEàr   r2   c                   ó   — e Zd ZdZy)ÚProtocolErrorz>Raised when something unexpected happens mid-request/response.Nr   r   r   r   r5   r5   @   s   „ ÙHàr   r5   c                   ó   — e Zd ZdZdd„Zy)ÚMaxRetryErrora  Raised when the maximum number of retries is exceeded.

    :param pool: The connection pool
    :type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool`
    :param string url: The requested Url
    :param exceptions.Exception reason: The underlying error

    Nc                 óT   — || _         d|›d|›d�}t        j                  | |||«       y )NzMax retries exceeded with url: z (Caused by ú))Úreasonr    r   )r   r   r#   r:   r   s        r   r   zMaxRetryError.__init__W   s'   € Øˆ�âHKÊVÐTˆä×Ñ˜d D¨#¨wÕ7r   r"   ©r	   r
   r   r   r   r   r   r   r7   r7   M   s   „ ñô8r   r7   c                   ó   — e Zd ZdZdd„Zy)ÚHostChangedErrorz?Raised when an existing pool gets a request for a foreign host.c                 óL   — d|z  }t         j                  | |||«       || _        y )Nz)Tried to open a foreign host with url: %s)r    r   Úretries)r   r   r#   r?   r   s        r   r   zHostChangedError.__init__b   s'   € Ø=ÀÑCˆÜ×Ñ˜d D¨#¨wÔ7Øˆ�r   N)é   r;   r   r   r   r=   r=   _   s
   „ ÙIôr   r=   c                   ó   — e Zd ZdZy)ÚTimeoutStateErrorz1Raised when passing an invalid state to a timeoutNr   r   r   r   rB   rB   h   s   „ Ù;àr   rB   c                   ó   — e Zd ZdZy)ÚTimeoutErrorz¿Raised when a socket timeout error occurs.

    Catching this error will catch both :exc:`ReadTimeoutErrors
    <ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
    Nr   r   r   r   rD   rD   n   s   „ ñð 	r   rD   c                   ó   — e Zd ZdZy)ÚReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNr   r   r   r   rF   rF   x   s   „ ÙPàr   rF   c                   ó   — e Zd ZdZy)ÚConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNr   r   r   r   rH   rH   €   s   „ ÙJàr   rH   c                   ó   — e Zd ZdZy)ÚNewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.Nr   r   r   r   rJ   rJ   †   s   „ ÙRàr   rJ   c                   ó   — e Zd ZdZy)ÚEmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nr   r   r   r   rL   rL   Œ   ó   „ ÙMàr   rL   c                   ó   — e Zd ZdZy)ÚClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.Nr   r   r   r   rO   rO   ’   rM   r   rO   c                   ó   — e Zd ZdZy)ÚLocationValueErrorz<Raised when there is something wrong with a given URL input.Nr   r   r   r   rQ   rQ   ˜   s   „ ÙFàr   rQ   c                   ó   — e Zd ZdZd„ Zy)ÚLocationParseErrorz=Raised when get_host or similar fails to parse the URL input.c                 óH   — d|z  }t         j                  | |«       || _        y )NzFailed to parse: %s)r   r   Úlocation)r   rU   r   s      r   r   zLocationParseError.__init__¡   s#   € Ø'¨(Ñ2ˆÜ×Ñ˜4 Ô)à ˆ�r   Nr;   r   r   r   rS   rS   ž   s
   „ ÙGó!r   rS   c                   ó"   ‡ — e Zd ZdZˆ fd„Zˆ xZS )ÚURLSchemeUnknownz2Raised when a URL input has an unsupported scheme.c                 óD   •— d|z  }t         t        | �  |«       || _        y )NzNot supported URL scheme %s)r+   rW   r   Úscheme©r   rY   r   r   s      €r   r   zURLSchemeUnknown.__init__«   s$   ø€ Ø/°&Ñ8ˆÜÔ Ñ.¨wÔ7àˆ�r   r/   r   s   @r   rW   rW   ¨   s   ø„ Ù<÷ð r   rW   c                   ó   — e Zd ZdZdZdZy)ÚResponseErrorzDUsed as a container for an error reason supplied in a MaxRetryError.ztoo many error responsesz&too many {status_code} error responsesN)r	   r
   r   r   ÚGENERIC_ERRORÚSPECIFIC_ERRORr   r   r   r\   r\   ²   s   „ ÙNà.€MØ=�Nr   r\   c                   ó   — e Zd ZdZy)ÚSecurityWarningz0Warned when performing security reducing actionsNr   r   r   r   r`   r`   ¹   ó   „ Ù:àr   r`   c                   ó   — e Zd ZdZy)ÚSubjectAltNameWarningzBWarned when connecting to a host with a certificate missing a SAN.Nr   r   r   r   rc   rc   ¿   s   „ ÙLàr   rc   c                   ó   — e Zd ZdZy)ÚInsecureRequestWarningz/Warned when making an unverified HTTPS request.Nr   r   r   r   re   re   Å   s   „ Ù9àr   re   c                   ó   — e Zd ZdZy)ÚSystemTimeWarningz0Warned when system time is suspected to be wrongNr   r   r   r   rg   rg   Ë   ra   r   rg   c                   ó   — e Zd ZdZy)ÚInsecurePlatformWarningzIWarned when certain TLS/SSL configuration is not available on a platform.Nr   r   r   r   ri   ri   Ñ   s   „ ÙSàr   ri   c                   ó   — e Zd ZdZy)ÚSNIMissingWarningz9Warned when making a HTTPS request without SNI available.Nr   r   r   r   rk   rk   ×   r'   r   rk   c                   ó   — e Zd ZdZy)ÚDependencyWarningzc
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    Nr   r   r   r   rm   rm   Ý   ó   „ ñð
 	r   rm   c                   ó   — e Zd ZdZy)ÚResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.Nr   r   r   r   rp   rp   æ   r3   r   rp   c                   ó   — e Zd ZdZy)ÚBodyNotHttplibCompatiblez‡
    Body should be :class:`http.client.HTTPResponse` like
    (have an fp attribute which returns raw chunks) for read_chunked().
    Nr   r   r   r   rr   rr   ì   rn   r   rr   c                   ó(   ‡ — e Zd ZdZˆ fd„Zd„ Zˆ xZS )r   zÎ
    Response length doesn't match expected Content-Length

    Subclass of :class:`http.client.IncompleteRead` to allow int value
    for ``partial`` to avoid creating large objects on streamed reads.
    c                 ó.   •— t         t        | �  ||«       y r"   )r+   r   r   )r   ÚpartialÚexpectedr   s      €r   r   zIncompleteRead.__init__ý   s   ø€ ÜŒn˜dÑ,¨W°hÕ?r   c                 ó8   — d| j                   | j                  fz  S )Nz/IncompleteRead(%i bytes read, %i more expected))ru   rv   r   s    r   Ú__repr__zIncompleteRead.__repr__   s#   € Ø@Ø�L‰LØ�M‰MðD
ñ 
ð 	
r   ©r	   r
   r   r   r   rx   r0   r   s   @r   r   r   õ   s   ø„ ñô@ö
r   r   c                   ó(   ‡ — e Zd ZdZˆ fd„Zd„ Zˆ xZS )ÚInvalidChunkLengthz+Invalid chunk length in a chunked response.c                 óz   •— t         t        | �  |j                  «       |j                  «       || _        || _        y r"   )r+   r{   r   ÚtellÚlength_remainingÚresponseÚlength)r   r   r€   r   s      €r   r   zInvalidChunkLength.__init__
  s4   ø€ ÜÔ  $Ñ0Ø�M‰M‹O˜X×6Ñ6ô	
ð !ˆŒØˆ�r   c                 ó8   — d| j                   | j                  fz  S )Nz0InvalidChunkLength(got length %r, %i bytes read))r€   ru   r   s    r   rx   zInvalidChunkLength.__repr__  s#   € ØAØ�K‰KØ�L‰LðE
ñ 
ð 	
r   ry   r   s   @r   r{   r{     s   ø„ Ù5ôö
r   r{   c                   ó   — e Zd ZdZy)ÚInvalidHeaderz(The header provided was somehow invalid.Nr   r   r   r   rƒ   rƒ     s   „ Ù2àr   rƒ   c                   ó"   ‡ — e Zd ZdZˆ fd„Zˆ xZS )ÚProxySchemeUnknownz1ProxyManager does not support the supplied schemec                 óN   •— |dk(  rd }|€d}nd|z  }t         t        | �  |«       y )NÚ	localhostz>Proxy URL had no scheme, should start with http:// or https://zCProxy URL had unsupported scheme %s, should use http:// or https://)r+   r…   r   rZ   s      €r   r   zProxySchemeUnknown.__init__#  sA   ø€ ð �[Ò ØˆFØˆ>ØV‰Gð VØñð ô 	Ô  $Ñ0°Õ9r   r/   r   s   @r   r…   r…     s   ø„ Ù;÷:ð :r   r…   c                   ó   — e Zd ZdZy)ÚProxySchemeUnsupportedz=Fetching HTTPS resources through HTTPS proxies is unsupportedNr   r   r   r   r‰   r‰   2  s   „ ÙGàr   r‰   c                   ó"   ‡ — e Zd ZdZˆ fd„Zˆ xZS )ÚHeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.c                 óB   •— |xs d›d|›�}t         t        | �  |«       y )NÚUnknownz, unparsed data: )r+   r‹   r   )r   ÚdefectsÚunparsed_datar   r   s       €r   r   zHeaderParsingError.__init__;  s%   ø€ Ø-4Ò-A¸	Ñ-AÁ=ÐQˆÜÔ  $Ñ0°Õ9r   r/   r   s   @r   r‹   r‹   8  s   ø„ ÙX÷:ð :r   r‹   c                   ó   — e Zd ZdZy)ÚUnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyNr   r   r   r   r‘   r‘   @  r'   r   r‘   N).Ú
__future__r   Úpackages.six.moves.http_clientr   Úhttplib_IncompleteReadÚ	Exceptionr   ÚWarningr   r   r    r&   r)   r2   r5   ÚConnectionErrorr7   r=   rB   rD   rF   rH   rJ   rL   rO   Ú
ValueErrorrQ   rS   rW   r\   r`   rc   re   rg   ri   rk   rm   rp   rr   r{   rƒ   ÚAssertionErrorr…   r‰   r‹   r‘   r   r   r   ú<module>rš      sâ  ðÝ &å Tô
	�	ô 	ô	�'ô 	ô	,�	ô 	,ô	6�9ô 	6ô	ˆyô 	ô$�ô $ô	�)ô 	ô	�Iô 	ð  €ô8�Lô 8ô$�|ô ô	˜	ô 	ô	�9ô 	ô	�| \ô 	ô	˜,ô 	ô	Ð,¨iô 	ô	�Yô 	ô	�iô 	ô	˜ Yô 	ô!Ð+ô !ôÐ)ô ô>�Iô >ô	�kô 	ô	˜Oô 	ô	˜_ô 	ô	˜ô 	ô	˜oô 	ô	˜ô 	ô	˜ô 	ô	˜¨
ô 	ô	˜yô 	ô
�YÐ 6ô 
ô$
˜Ð$:ô 
ô"	�Iô 	ô:˜Ð)9ô :ô(	˜Zô 	ô:˜ô :ô	˜Iõ 	r   