Ë
    8ø»ja  ã                  ó¬   — d Z ddlmZ ddlZddlmZmZ ddlmZ ej                  dee
eef   eeeef      f   Z G d„ dej                  eef   «      Zy)	uå  Copyright Â© 2019, [Encode OSS Ltd](https://www.encode.io/).

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
é    )ÚannotationsN)ÚCookieÚ	CookieJaré   )ÚCookieConflictÚCookiesc                  ó®   — e Zd ZdZddd„Zddd„Z	 	 	 d	 	 	 	 	 	 	 	 	 dd„Z	 	 d	 	 	 	 	 	 	 dd„Zddd„Zddd„Z	dd	„Z
dd
„Zdd„Zdd„Zdd„Zdd„Zdd„Zy) r   z#HTTP Cookies, as a mutable mapping.Nc                óÜ  — |�t        |t        «      rKt        «       | _        t        |t        «      r+|j	                  «       D ]  \  }}| j                  ||«       Œ y y t        |t        «      r,t        «       | _        |D ]  \  }}| j                  ||«       Œ y t        |t        «      r<t        «       | _        |j                  D ]  }| j                  j                  |«       Œ y || _        y ©N)	Ú
isinstanceÚdictr   ÚjarÚitemsÚsetÚlistr   Ú
set_cookie)ÚselfÚcookiesÚkeyÚvalueÚcookies        úD/var/www/html/GAP/venv/lib/python3.12/site-packages/impit/cookies.pyÚ__init__zCookies.__init__    sÆ   € Øˆ?œj¨´$Ô7Ü “{ˆDŒHÜ˜'¤4Ô(Ø")§-¡-£/ò )‘J�C˜Ø—H‘H˜S %Õ(ñ)ð )ô ˜¤Ô&Ü “{ˆDŒHØ%ò %‘
��UØ—‘˜˜eÕ$ñ%ä˜¤Ô)Ü “{ˆDŒHØ!Ÿ+™+ò ,�Ø—‘×#Ñ# FÕ+ñ,ð ˆD�Hó    c                ó   — i dd“d|“d|“dd“dd“d	|“d
t        |«      “d|j                  d«      “d|“dt        |«      “dd“dd“dd“dd“dd“dddi“dd“}t        di |¤Ž}| j                  j	                  |«       y)zCSet a cookie value by name. May optionally include domain and path.Úversionr   Únamer   ÚportNÚport_specifiedFÚdomainÚdomain_specifiedÚdomain_initial_dotú.ÚpathÚpath_specifiedÚsecureÚexpiresÚdiscardTÚcommentÚcomment_urlÚrestÚHttpOnlyÚrfc2109© )ÚboolÚ
startswithr   r   r   )r   r   r   r    r$   Úkwargsr   s          r   r   zCookies.set1   s
  € ð
Ø�qð
à�Dð
ð �Uð
ð �Dð	
ð
 ˜eð
ð �fð
ð ¤ V£ð
ð ! &×"3Ñ"3°CÓ"8ð
ð �Dð
ð œd 4›jð
ð �eð
ð �tð
ð �tð
ð �tð
ð ˜4ð
ð  �Z Ð&ð!
ð" �uð#
ˆô& Ñ!˜&Ñ!ˆØ�‰×Ñ˜FÕ#r   c                óØ   — d}| j                   D ]T  }|j                  |k(  sŒ|�|j                  |k(  sŒ%|�|j                  |k(  sŒ7|�d|› �}t	        |«      ‚|j
                  }ŒV |€|S |S )z„Get a cookie by name.

        May optionally include domain and path in order to specify exactly which cookie to retrieve.
        Nz!Multiple cookies exist with name=)r   r   r    r$   r   r   )r   r   Údefaultr    r$   r   r   Úmessages           r   ÚgetzCookies.getI   s   € ð ˆØ—h‘hò 	-ˆFØ�{‰{˜dÓ"Ø�> V§]¡]°fÓ%<Ø�| v§{¡{°dÓ':Ø Ð,Ø(IÈ$ÈÐ&P˜GÜ"0°Ó"9Ð9Ø &§¡™ð	-ð ˆ=ØˆNØˆr   c                óh  — |�|�| j                   j                  |||«      S | j                   D �cg c]5  }|j                  |k(  r$|�|j                  |k(  r|�|j                  |k(  r|‘Œ7 }}|D ]=  }| j                   j                  |j                  |j                  |j                  «       Œ? yc c}w )z…Delete a cookie by name.

        May optionally include domain and path in order to specify exactly which cookie to delete.
        N)r   Úclearr   r    r$   )r   r   r    r$   r   Úremoves         r   ÚdeletezCookies.deleteb   s°   € ð Ð $Ð"2Ø—8‘8—>‘> &¨$°Ó5Ð5ð Ÿ(™(ö
àØ�{‰{˜dÒ"Ø� 6§=¡=°FÒ#:Ø� §¡°Ò!4ò	 ð
ˆð 
ð ò 	DˆFØ�H‰H�N‰N˜6Ÿ=™=¨&¯+©+°v·{±{ÕCð	Dàùò
s   °:B/c                óŽ   — g }|�|j                  |«       |�|€J ‚|j                  |«        | j                  j                  |Ž  y)zDelete all cookies.

        Optionally include a domain and path in order to only delete a subset of all the cookies.
        N)Úappendr   r7   )r   r    r$   Úargss       r   r7   zCookies.clear{   sK   € ð
 ˆØÐØ�K‰K˜ÔØÐØÐ%Ð%Ð%Ø�K‰K˜ÔØˆ�‰�‰˜Òr   c                ór   — t        |«      }|j                  D ]  }| j                  j                  |«       Œ y)z>Update the cookie jar with new cookies. Accepts various types.N)r   r   r   )r   r   r   s      r   ÚupdatezCookies.updateˆ   s1   € ä˜'Ó"ˆØ—k‘kò 	(ˆFØ�H‰H×Ñ Õ'ñ	(r   c                ó&   — | j                  ||«      S )zSet a cookie by name.)r   ©r   r   r   s      r   Ú__setitem__zCookies.__setitem__Ž   s   € à�x‰x˜˜eÓ$Ð$r   c                óB   — | j                  |«      }|€t        |«      ‚|S )zGet a cookie by name.)r5   ÚKeyErrorr@   s      r   Ú__getitem__zCookies.__getitem__’   s#   € à—‘˜“ˆØˆ=Ü˜4“.Ð Øˆr   c                ó$   — | j                  |«      S )zDelete a cookie by name.)r9   )r   r   s     r   Ú__delitem__zCookies.__delitem__™   s   € à�{‰{˜4Ó Ð r   c                ó,   — t        | j                  «      S )z(Return the number of cookies in the jar.)Úlenr   ©r   s    r   Ú__len__zCookies.__len__�   s   € ä�4—8‘8‹}Ðr   c                ó(   — d„ | j                   D «       S )z<Return an iterator over the names of the cookies in the jar.c              3  ó4   K  — | ]  }|j                   –— Œ y ­wr   )r   )Ú.0r   s     r   ú	<genexpr>z#Cookies.__iter__.<locals>.<genexpr>£   s   è ø€ Ò3 �—•Ñ3ùs   ‚©r   rI   s    r   Ú__iter__zCookies.__iter__¡   s   € á3¨$¯(©(Ô3Ð3r   c                ó(   — | j                   D ]  } y y)z0Return True if there are any cookies in the jar.TFrO   )r   Ú_s     r   Ú__bool__zCookies.__bool__¥   s   € à—‘ò 	ˆAÙð	àr   c                óº   — dj                  | j                  D �cg c],  }d|j                  › d|j                  › d|j                  › d�‘Œ. c}«      }d|› d�S c c}w )z5Return a string representation of the Cookies object.z, z<Cookie ú=z for z />z	<Cookies[z]>)Újoinr   r   r   r    )r   r   Úcookies_reprs      r   Ú__repr__zCookies.__repr__«   s]   € à—y‘yØZ^×ZbÑZbÖcÐPVˆx˜Ÿ™�} A f§l¡l ^°5¸¿¹¸ÀsÒKÒcó
ˆð ˜<˜.¨Ð+Ð+ùò ds   š1Ar   )r   zCookieTypes | NoneÚreturnÚNone)Ú ú/)
r   Ústrr   r]   r    r]   r$   r]   rY   rZ   )NNN)
r   r]   r3   ú
str | Noner    r^   r$   r^   rY   r^   )NN)r   r]   r    r^   r$   r^   rY   rZ   )r    r^   r$   r^   rY   rZ   )r   r]   r   r]   rY   rZ   )r   r]   rY   r]   )r   r]   rY   rZ   )rY   Úint)rY   ztyping.Iterator[str])rY   r/   )rY   r]   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r5   r9   r7   r>   rA   rD   rF   rJ   rP   rS   rX   r.   r   r   r   r      s¯   „ Ù-ôô"$ð6 #Ø!Øðàðð ðð ð	ð
 ðð 
óð8 "Øð	àðð ðð ð	ð
 
óô2ô(ó%óó!óó4óô,r   )rc   Ú
__future__r   ÚtypingÚhttp.cookiejarr   r   Úimpitr   ÚUnionr   r]   r   ÚtupleÚCookieTypesÚMutableMappingr   r.   r   r   ú<module>rl      sb   ðñõ$ #ã ß ,å !à�l‰l˜9 i°°c¸3°h±ÀÀeÈCÐQTÈHÁoÑAVÐVÑW€ôT,ˆf×#Ñ# C¨ HÑ-õ T,r   