§
    ÷„tjø  ã                  óÖ   — d dl mZ d dl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 d dlmZmZ d dlmZ er 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  G d„ de¦  «        ZdS )é    )ÚannotationsN)ÚTYPE_CHECKINGÚAnyÚ
CollectionÚMapping)ÚHTTPAdapter)Ú	DictCache)ÚPERMANENT_REDIRECT_STATUSESÚCacheController)ÚCallbackFileWrapper)ÚPreparedRequestÚResponse)ÚHTTPResponse)Ú	BaseCache)ÚBaseHeuristic)Ú
Serializerc                  ón   ‡ — e Zd Zh d£Z	 	 	 	 	 	 d)d*ˆ fd„Z	 	 	 	 	 	 d+d,ˆ fd#„Z	 	 d-d.ˆ fd'„Zd/ˆ fd(„Zˆ xZS )0ÚCacheControlAdapter>   ÚPUTÚPATCHÚDELETENTÚcacheúBaseCache | NoneÚcache_etagsÚboolÚcontroller_classútype[CacheController] | NoneÚ
serializerúSerializer | NoneÚ	heuristicúBaseHeuristic | NoneÚcacheable_methodsúCollection[str] | NoneÚargsr   ÚkwÚreturnÚNonec                óÊ   •—  t          ¦   «         j        |i |¤Ž |€t          ¦   «         n|| _        || _        |pd| _        |pt          }	 |	| j        ||¬¦  «        | _        d S )N)ÚGET)r   r   )ÚsuperÚ__init__r	   r   r    r"   r   Ú
controller)Úselfr   r   r   r   r    r"   r$   r%   Úcontroller_factoryÚ	__class__s             €ú^/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/pip/_vendor/cachecontrol/adapter.pyr+   zCacheControlAdapter.__init__   sy   ø€ ð 	�‰ŒÔ˜$Ð% "Ð%Ð%Ð%Ø$) M•Y‘[”[�[°uˆŒ
Ø"ˆŒØ!2Ð!>°hˆÔà-Ð@µÐØ,Ð,ØŒJ K¸Jð
ñ 
ô 
ˆŒˆˆó    FÚrequestr   ÚstreamÚtimeoutú7None | float | tuple[float, float] | tuple[float, None]Úverifyú
bool | strÚcertú4None | bytes | str | tuple[bytes | str, bytes | str]ÚproxiesúMapping[str, str] | Noner   c                óv  •— |p| j         }|j        |v r	 | j                             |¦  «        }	n# t          j        $ r d}	Y nw xY w|	r|                      ||	d¬¦  «        S |j                             | j         	                    |¦  «        ¦  «         t          ¦   «                              ||||||¦  «        }
|
S )z”
        Send a request. Use the request information to see if it
        exists in the cache and cache the response if we need to and can.
        NT)Ú
from_cache)r"   Úmethodr,   Úcached_requestÚzlibÚerrorÚbuild_responseÚheadersÚupdateÚconditional_headersr*   Úsend)r-   r2   r3   r4   r6   r8   r:   r"   Ú	cacheableÚcached_responseÚrespr/   s              €r0   rF   zCacheControlAdapter.send2   sÒ   ø€ ð &Ð?¨Ô)?ˆ	ØŒ>˜YÐ&Ð&ð'Ø"&¤/×"@Ò"@ÀÑ"IÔ"I��øÝ”:ð 'ð 'ð 'Ø"&���ð'øøøàð VØ×*Ò*¨7°OÐPTÐ*ÑUÔUÐUð ŒO×"Ò" 4¤?×#FÒ#FÀwÑ#OÔ#OÑPÔPÐPå‰wŒw�|Š|˜G V¨W°f¸dÀGÑLÔLˆàˆs   •0 °AÁAÚresponser   r=   c                ód  •‡
— |p| j         }|�s!|j        |v �r| j        r| j                             |¦  «        }|j        dk    rN| j                             ||¦  «        }||urd}|                     d¬¦  «         |                     ¦   «          |}n�t          |j        ¦  «        t          v r| j                             ||¦  «         nft          |j        t          j        | j        j        ||¦  «        ¦  «        |_        |j        r'|j        Š
dˆ
fd	„}t%          j        ||¦  «        |_        t)          ¦   «                              ||¦  «        }|j        | j        v rI|j        rB|j        €J ‚| j                             |j        ¦  «        }	| j                             |	¦  «         ||_        |S )z¥
        Build a response by making a request or using the cache.

        This will end up calling send and returning a potentially
        cached response
        i0  TF)Údecode_contentr-   r   r&   r'   c                óh   •—  ‰¦   «          | j         dk    r| j                             ¦   «          d S d S )Nr   )Ú
chunk_leftÚ_fpÚ_close)r-   Úsuper_update_chunk_lengths    €r0   Ú_update_chunk_lengthz@CacheControlAdapter.build_response.<locals>._update_chunk_length‰   s?   ø€ Ø1Ð1Ñ3Ô3Ð3Øœ?¨aÒ/Ð/Ø œHŸOšOÑ-Ô-Ð-Ð-Ð-ð 0Ð/r1   N)r-   r   r&   r'   )r"   r>   r    ÚapplyÚstatusr,   Úupdate_cached_responseÚreadÚrelease_connÚintr
   Úcache_responser   rO   Ú	functoolsÚpartialÚchunkedrR   ÚtypesÚ
MethodTyper*   rB   Úinvalidating_methodsÚokÚurlÚ	cache_urlr   Údeleter=   )r-   r2   rJ   r=   r"   rG   rH   rR   rI   rb   rQ   r/   s             @€r0   rB   z"CacheControlAdapter.build_responseP   sê  øø€ ð &Ð?¨Ô)?ˆ	Øñ 2	˜gœn°	Ð9Ñ9ð Œ~ð :Øœ>×/Ò/°Ñ9Ô9�ð Œ #Ò%Ð%ð
 #'¤/×"HÒ"HØ˜Xñ#ô #�ð #¨(Ð2Ð2Ø!%�Jð —’¨U�Ñ3Ô3Ð3Ø×%Ò%Ñ'Ô'Ð'à*��õ �X”_Ñ%Ô%Õ)DÐDÐDØ”×.Ò.¨w¸ÑAÔAÐAÐAõ  3Ø”LÝÔ%ØœÔ6¸Àñô ñ ô  �”ð Ô#ð 
Ø08Ô0MÐ-ð.ð .ð .ð .ð .ð .õ
 5:Ô4DØ,¨hñ5ô 5�HÔ1õ ™œ×/Ò/°¸ÑBÔBˆð Œ>˜TÔ6Ð6Ð6¸4¼7Ð6Ø”;Ð*Ð*Ð*Øœ×1Ò1°'´+Ñ>Ô>ˆIØŒJ×Ò˜iÑ(Ô(Ð(ð %ˆŒàˆr1   c                óz   •— | j                              ¦   «          t          ¦   «                              ¦   «          d S )N)r   Úcloser*   )r-   r/   s    €r0   re   zCacheControlAdapter.closeŸ   s,   ø€ ØŒ
×ÒÑÔÐÝ‰Œ�Š‰Œˆˆˆr1   )NTNNNN)r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r   r%   r   r&   r'   )FNTNNN)r2   r   r3   r   r4   r5   r6   r7   r8   r9   r:   r;   r"   r#   r&   r   )FN)
r2   r   rJ   r   r=   r   r"   r#   r&   r   )r&   r'   )	Ú__name__Ú
__module__Ú__qualname__r_   r+   rF   rB   re   Ú__classcell__)r/   s   @r0   r   r      së   ø€ € € € € Ø5Ð5Ð5Ðð #'Ø Ø9=Ø(,Ø*.Ø48ð
ð 
ð 
ð 
ð 
ð 
ð 
ð0 ØKOØ!ØGKØ,0Ø48ðð ð ð ð ð ð ðD !Ø48ðMð Mð Mð Mð Mð Mð Mð^ð ð ð ð ð ð ð ð ð r1   r   )Ú
__future__r   rZ   r]   r@   Útypingr   r   r   r   Úpip._vendor.requests.adaptersr   Úpip._vendor.cachecontrol.cacher	   Ú#pip._vendor.cachecontrol.controllerr
   r   Ú$pip._vendor.cachecontrol.filewrapperr   Úpip._vendor.requestsr   r   Úpip._vendor.urllib3r   r   Ú#pip._vendor.cachecontrol.heuristicsr   Ú"pip._vendor.cachecontrol.serializer   r   © r1   r0   ú<module>ru      sO  ðð #Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð Ø €€€Ø €€€Ø :Ð :Ð :Ð :Ð :Ð :Ð :Ð :Ð :Ð :Ð :Ð :à 5Ð 5Ð 5Ð 5Ð 5Ð 5à 4Ð 4Ð 4Ð 4Ð 4Ð 4Ø \Ð \Ð \Ð \Ð \Ð \Ð \Ð \Ø DÐ DÐ DÐ DÐ DÐ Dàð >Ø>Ð>Ð>Ð>Ð>Ð>Ð>Ð>Ø0Ð0Ð0Ð0Ð0Ð0à8Ð8Ð8Ð8Ð8Ð8ØAÐAÐAÐAÐAÐAØ=Ð=Ð=Ð=Ð=Ð=ðGð Gð Gð Gð G˜+ñ Gô Gð Gð Gð Gr1   