
    si #                       % S SK Jr  S SKrS SKrS SKJr  S SKJr  SSKJr  SSK	J
r
JrJr  SSKJr  SS	KJr  SS
KJr  SSKJrJr  SSKJr  SSKJrJrJrJr  SSKJr  SSKJrJ r   \RB                  (       a  SSKJ"r"J#r#   " S S5      r$ " S S\$5      r%\RB                  (       a  \$" SS 5      r&S\'S'   \%" SS 5      r(S\'S'   gg)    )annotationsN)HTTPException)ResponseNotReady   )
_TYPE_BODY)HTTPConnectionProxyConfigport_by_scheme)TimeoutError)BaseHTTPResponse)_TYPE_SOCKET_OPTIONS)_DEFAULT_TIMEOUT_TYPE_TIMEOUT)Url   )_RequestError_TimeoutErrorsend_requestsend_streaming_request)EmscriptenRequest)EmscriptenHttpResponseWrapperEmscriptenResponse)BaseHTTPConnectionBaseHTTPSConnectionc                     \ rS rSr% \S   rS\S'   S\S'   S\S'   S	\S
'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   SrS\S'   SrS\S'   \	r
S\S'   S\S'    S.\SS SSSS!.                 S/S" jjjr   S0         S1S# jjrS2S$ jr  S3SS%S%S%S&.                 S4S' jjjrS5S( jrS2S) jr\S6S* j5       r\S6S+ j5       r\S6S, j5       rS-rg)7EmscriptenHTTPConnection   httpztyping.ClassVar[int]default_portz%typing.ClassVar[_TYPE_SOCKET_OPTIONS]default_socket_optionszNone | floattimeoutstrhostintport	blocksizetuple[str, int] | Nonesource_address_TYPE_SOCKET_OPTIONS | Nonesocket_options
Url | NoneproxyProxyConfig | Noneproxy_configFboolis_verifiedNzbool | Noneproxy_is_verifiedztype[BaseHTTPResponse]response_classzEmscriptenResponse | None	_responsei    )r!   r(   r&   r*   r,   r.   c                   Xl         X l        [        U[        5      (       a  UOSU l        SU l        SU l        S U l        S U l        S U l	        XPl
        S U l        S U l        SU l        g )Ng        r   TF)r#   r%   
isinstancefloatr!   scheme_closedr3   r,   r.   r&   r(   r*   r0   )	selfr#   r%   r!   r(   r&   r*   r,   r.   s	            e/home/lanaiboy/weather-map/venv/lib/python3.13/site-packages/urllib3/contrib/emscripten/connection.py__init__!EmscriptenHTTPConnection.__init__.   sf     		",We"<"<w# 
 """     c                    g N )r9   r#   r%   headersr7   s        r:   
set_tunnel#EmscriptenHTTPConnection.set_tunnelI   s     	r=   c                    g r?   r@   r9   s    r:   connect EmscriptenHTTPConnection.connectR   s    r=   T)chunkedpreload_contentdecode_contentenforce_content_lengthc                  SU l         UR                  S5      (       a>  U R                  b  SU R                   3n	OSn	U R                   SU R                   U	 U 3n[        UUU R                  (       a  U R                  OSUS9n
U
R                  U5        U(       a*  UR                  5        H  u  pU
R                  X5        M     S U l
         U(       d  [        U
5      U l
        U R                  c  [        U
5      U l
        g g ! [         a  n[        UR                  5      UeS nAf[          a  n[#        UR                  5      UeS nAff = f)NF/: z://r   )urlmethodr!   rJ   )r8   
startswithr%   r7   r#   r   r!   set_bodyitems
set_headerr3   r   r   r   r   messager   r   )r9   rQ   rP   bodyrA   rH   rI   rJ   rK   r%   requestkves                 r:   rX    EmscriptenHTTPConnection.requestU   s    >>#yy$499+[[MTYYKvcU;C#$(LLDLLa)	
 	""1( (	2"!7!@~~%!-g!6 & 	1qyy)q0 	2		*1	2s$   4D 
ED%%E2EEc                    U R                   b3  [        U R                   U R                   R                  R                  U S9$ [	        5       e)N)internal_responserP   
connection)r3   r   rX   rP   r   rE   s    r:   getresponse$EmscriptenHTTPConnection.getresponse   sA    >>%0"&..NN**..  #$$r=   c                     SU l         S U l        g )NT)r8   r3   rE   s    r:   closeEmscriptenHTTPConnection.close   s    r=   c                    U R                   $ )zWhether the connection either is brand new or has been previously closed.
If this property is True then both ``is_connected`` and ``has_connected_to_proxy``
properties must be False.
)r8   rE   s    r:   	is_closed"EmscriptenHTTPConnection.is_closed   s     ||r=   c                    g)zLWhether the connection is actively connected to any origin (proxy or target)Tr@   rE   s    r:   is_connected%EmscriptenHTTPConnection.is_connected   s     r=   c                    g)zWhether the connection has successfully connected to its proxy.
This returns False if no proxy is in use. Used to determine whether
errors are coming from the proxy layer or from tunnelling to the target origin.
Fr@   rE   s    r:   has_connected_to_proxy/EmscriptenHTTPConnection.has_connected_to_proxy   s     r=   )r8   r3   r&   r#   r0   r%   r,   r.   r7   r*   r(   r!   r   )r#   r"   r%   r$   r!   r   r(   r'   r&   r$   r*   r)   r,   r+   r.   r-   returnNone)r   Nr   )
r#   r"   r%   
int | NonerA   typing.Mapping[str, str] | Noner7   r"   ro   rp   )ro   rp   )NN)rQ   r"   rP   r"   rW   z_TYPE_BODY | NonerA   rr   rH   r/   rI   r/   rJ   r/   rK   r/   ro   rp   )ro   r   )ro   r/   )__name__
__module____qualname____firstlineno__r
   r   __annotations__r0   r1   r   r2   r   r;   rB   rF   rX   r`   rc   propertyrf   ri   rl   __static_attributes__r@   r=   r:   r   r      s   )7)?L&?AA
I
IN**//$$K%){)-JN*J((
 !
 "2156: +/!! !
 ! /! ! 4! ! )! 
!< 37  1	
  
 #'37*2  $#'+*2*2 *2  	*2
 1*2 *2 *2 *2 !%*2 
*2X%      r=   r   c                    ^  \ rS rSr% \S   rSrS\S'   SrS\S'   Sr	S\S'   Sr
S	\S
'   S\S'   S\S'   S\S'   S\S'   SrS\S'   SrS\S'   SrS\S'   S\S'   SrS\S'    S\SS\R"                  SSSSSSSSSSSSSSSSS.                                             SU 4S jjjjr         S                   SS jjrSrU =r$ ) EmscriptenHTTPSConnection   httpsNint | str | None	cert_reqs
str | Noneca_certsca_cert_dirNone | str | bytesca_cert_data	cert_filekey_filekey_passwordtyping.Any | Nonessl_contextssl_versionrq   ssl_minimum_versionssl_maximum_version"None | str | typing.Literal[False]assert_hostnameassert_fingerprinti @  )r!   r(   r&   r*   r,   r.   r   r   r   server_hostnamer   r   r   r   r   r   r   r   r   r   c                 > [         TU ]  UUUUUUUUS9  SU l        UU l        UU l        UU l        Xl        Xl        Xl        Xl	        UU l
        UU l        UU l        U=(       a    [        R                  R                  U5      U l        U=(       a    [        R                  R                  U5      U l        UU l        S U l        SU l        g )N)r%   r!   r(   r&   r*   r,   r.   r}   T)superr;   r7   r   r   r   r   r   r   r   r   r   r   ospath
expanduserr   r   r   r   r0   )r9   r#   r%   r!   r(   r&   r*   r,   r.   r   r   r   r   r   r   r   r   r   r   r   r   r   r   	__class__s                          r:   r;   "EmscriptenHTTPSConnection.__init__   s    8 	))% 	 		
  "(&.."4&#6 #6  ARWW%7%7%A&J277+=+=k+J(  r=   c
                    g r?   r@   )
r9   r   r   r   r   r   r   r   r   r   s
             r:   set_cert"EmscriptenHTTPSConnection.set_cert   s     	r=   )r   r   r   r   r   r   r   r0   r   r   r7   r   r   r   r   r   rn   ).r#   r"   r%   r$   r!   r   r(   r'   r&   r$   r*   zNone | _TYPE_SOCKET_OPTIONSr,   r+   r.   r-   r   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rq   r   rq   r   r~   r   r   r   r   r   r   ro   rp   )	NNNNNNNNN)r   r   r   r   r   r~   r   r   r   r   r   r   r   r   r   r   r   r   ro   rp   )rs   rt   ru   rv   r
   r   r   rw   r   r   r   r   r   r   r   r   r   r    r;   r   ry   __classcell__)r   s   @r:   r{   r{      sI   !'*L"&I&Hj"K"'+L$+""$(K!(&**&**77%)
)
 : 
 "215 11 +/&*>B)-&*)-#"&+/*.*.(, $##'5: :  : 
 :  /:  :  (:  :  ):  $:  <:  ':   $!: " '#: $ %: &  ': ( )): * (+: , (-: . &/: 0 1: 2 3: 4 !5: 6 
7:  : |  $ $&*#'#>B)-"&+/  $	
 !  < '   ) 
 r=   r{   rO   r   _supports_http_protocolr   _supports_https_protocol))
__future__r   r   typinghttp.clientr   r   _base_connectionr   r_   r   r	   r
   
exceptionsr   responser   util.connectionr   util.timeoutr   r   util.urlr   fetchr   r   r   r   rX   r   r   r   TYPE_CHECKINGr   r   r   r{   r   rw   r   r@   r=   r:   <module>r      s    " 	  7 ( * E E & ( 3 ;  U U & G	KI IXY 8 Yz 
2J2q2Q/Q4MbRS4T1T r=   