+
    AžÀj�Y  ã                  ó:  € ^ RI Ht ^ RIHt ^ RIt^ RIt^RIH	t	 ^RI
Ht ^RIHt ^RIHt ^RIHt ]P"                  '       d   ^ RIt^ RIHt ]P,                  ! R	4      t ! R
 R4      tR R lt]P4                  ! R4      tR R lt ! R R]]4      t^RIHt R# )é    )ÚannotationsN)Ú_missing)ÚBadRequestKeyError)ÚImmutableHeadersMixin)Úiter_multi_items)Ú	MultiDict)ÚWSGIEnvironmentÚTc                  óÞ  € ] tR t^tRtRnR R llt]P                  R R l4       t]P                  R R l4       t]P                  R	 R
 l4       tR R ltR R lt	R R lt
Rt]P                  R R l4       t]P                  R R l4       t]P                  R R l4       t]P                  R R l4       t]P                  R R l4       tRoR R llt]P                  R R l4       t]P                  R R  l4       tRnR! R" lltR# R$ ltRpR% R& lltRpR' R( lltR) R* ltRnR+ R, lltR- R. ltR/ R0 ltR1 R2 lt]P                  R3 R4 l4       t]P                  R5 R6 l4       t]P                  RqR7 R8 ll4       t]P                  R9 R: l4       t]P                  R; R< l4       tR]3R= R> lltR? R@ ltRA RB ltRC RD ltRE RF ltRG RH ltRI RJ ltRK RL ltRM RN ltRO RP lt RQ RR lt!RS RT lt"]P                  RU RV l4       t#]P                  RW RX l4       t#]P                  RY RZ l4       t#R[ R\ lt#RnR] R^ llt$R_ R` lt%Ra Rb lt&Rc Rd lt'Re Rf lt(Rg Rh lt)Ri Rj lt*Rk Rl lt+Rmt,R# )rÚHeadersaÍ  An object that stores some headers. It has a dict-like interface,
but is ordered, can store the same key multiple times, and iterating
yields ``(key, value)`` pairs instead of only keys.

This data structure is useful if you want a nicer way to handle WSGI
headers which are stored as tuples in a list.

From Werkzeug 0.3 onwards, the :exc:`KeyError` raised by this class is
also a subclass of the :class:`~exceptions.BadRequest` HTTP exception
and will render a page for a ``400 BAD REQUEST`` if caught in a
catch-all for HTTP exceptions.

Headers is mostly compatible with the Python :class:`wsgiref.headers.Headers`
class, with the exception of `__getitem__`.  :mod:`wsgiref` will return
`None` for ``headers['missing']``, whereas :class:`Headers` will raise
a :class:`KeyError`.

To create a new ``Headers`` object, pass it a list, dict, or
other ``Headers`` object with default values. These values are
validated the same way values added later are.

The header keys are assumed to be trusted and valid, they must not come
from untrusted user input. Newlines in header values are not allowed and
will raise a ``ValueError``.

:param defaults: The list of default values for the :class:`Headers`.

.. versionchanged:: 3.1
    Implement ``|`` and ``|=`` operators.

.. versionchanged:: 2.1.0
    Default values are validated the same as values added later.

.. versionchanged:: 0.9
   This data structure now stores unicode values similar to how the
   multi dicts do it.  The main difference is that bytes can be set as
   well which will automatically be latin1 decoded.

.. versionchanged:: 0.9
   The :meth:`linked` function was removed without replacement as it
   was an API that does not support the changes to the encoding model.
Nc               ó    € V ^8„  d   QhRRRR/# )é   Údefaultsú“Headers | MultiDict[str, t.Any] | cabc.Mapping[str, t.Any | list[t.Any] | tuple[t.Any, ...] | set[t.Any]] | cabc.Iterable[tuple[str, t.Any]] | NoneÚreturnÚNone© )Úformats   "Ús/var/www/html/mycamper/aliexpress-site/backend/venv/lib/python3.14/site-packages/werkzeug/datastructures/headers.pyÚ__annotate__ÚHeaders.__annotate__@   s    € ÷ "ñ "ðð"ð 
ñ"ó    c                	óB   € . V n         Ve   V P                  V4       R # R # ©N)Ú_listÚextend)Úselfr   s   &&r   Ú__init__ÚHeaders.__init__@   s"   € ð -/ˆŒ
àÒØ�K‰K˜Ö!ñ  r   c               ó    € V ^8„  d   QhRRRR/# ©r   ÚkeyÚstrr   r   )r   s   "r   r   r   P   s   € ×/Ñ/˜sÐ/ sÑ/r   c                	ó   € R # r   r   ©r   r"   s   &&r   Ú__getitem__ÚHeaders.__getitem__O   s   € Ù,/r   c               ó    € V ^8„  d   QhRRRR/# )r   r"   Úintr   útuple[str, str]r   )r   s   "r   r   r   R   s   € ×;Ñ;˜sÐ; Ñ;r   c                	ó   € R # r   r   r%   s   &&r   r&   r'   Q   s   € Ù8;r   c               ó    € V ^8„  d   QhRRRR/# )r   r"   Úslicer   úte.Selfr   )r   s   "r   r   r   T   s   € ×5Ñ5˜uÐ5¨Ñ5r   c                	ó   € R # r   r   r%   s   &&r   r&   r'   S   ó   € Ù25r   c               ó    € V ^8„  d   QhRRRR/# )r   r"   ústr | int | slicer   zstr | tuple[str, str] | te.Selfr   )r   s   "r   r   r   U   s   € ÷ /ñ /Ð0ð /Ð5Tñ /r   c                	óæ   € \        V\        4      '       d   V P                  V4      # \        V\        4      '       d   V P                  V,          # V P                  V P                  V,          4      # r   )Ú
isinstancer#   Ú_get_keyr)   r   Ú	__class__r%   s   &&r   r&   r'   U   sP   € Ü�cœ3×ÒØ—=‘= Ó%Ð%ä�cœ3×ÒØ—:‘:˜c•?Ð"à�~‰~˜dŸj™j¨�oÓ.Ð.r   c               ó    € V ^8„  d   QhRRRR/# r!   r   )r   s   "r   r   r   ^   s   € ÷ &ñ &˜Cð & Cñ &r   c                	ó”   € VP                  4       pV P                   F  w  r4VP                  4       V8X  g   K  Vu # 	  \        V4      hr   )Úlowerr   r   )r   r"   ÚikeyÚkÚvs   &&   r   r5   ÚHeaders._get_key^   s=   € Ø�y‰y‹{ˆà—J”J‰DˆAØ�w‰w‹y˜DÖ Ø’ñ ô ! Ó%Ð%r   c               ó    € V ^8„  d   QhRRRR/# ©r   ÚotherÚobjectr   Úboolr   )r   s   "r   r   r   g   s   € ÷ Oñ O˜Fð O tñ Or   c                	óÈ   € VP                   V P                   Jd   \        # R  R lp\        \        W!P                  4      4      \        \        W P                  4      4      8H  # )c               ó    € V ^8„  d   QhRRRR/# )r   Úitemztuple[str, ...]r   r   )r   s   "r   r   Ú$Headers.__eq__.<locals>.__annotate__k   s   € ÷ 	.ñ 	.˜/ð 	.¨oñ 	.r   c                óF   € V ^ ,          P                  4       .V R,          O5# )r   :é   NN©r9   )rE   s   &r   ÚloweredÚHeaders.__eq__.<locals>.loweredk   s   € Ø˜•7—=‘=“?Ð- T¨"¥XÑ-Ð-r   )r6   ÚNotImplementedÚsetÚmapr   )r   r@   rJ   s   && r   Ú__eq__ÚHeaders.__eq__g   sF   € Ø�?‰? $§.¡.Ó0Ü!Ð!õ	.ô ”3�w§¡Ó,Ó-´´S¸Ç*Á*Ó5MÓ1NÑNÐNr   c               ó    € V ^8„  d   QhRRRR/# )r   r"   r#   r   z
str | Noner   )r   s   "r   r   r   s   s   € ×.Ñ.�sÐ.˜zÑ.r   c                	ó   € R # r   r   r%   s   &&r   ÚgetÚHeaders.getr   s   € Ù+.r   c               ó$   € V ^8„  d   QhRRRRRR/# ©r   r"   r#   Údefaultr   r   )r   s   "r   r   r   u   ó   € ×5Ñ5�sÐ5 SÐ5¨SÑ5r   c                	ó   € R # r   r   ©r   r"   rW   s   &&&r   rS   rT   t   r0   r   c               ó$   € V ^8„  d   QhRRRRRR/# ©r   r"   r#   rW   r
   r   ústr | Tr   )r   s   "r   r   r   w   ó   € ×7Ñ7�sÐ7 QÐ7¨7Ñ7r   c                	ó   € R # r   r   rZ   s   &&&r   rS   rT   v   ó   € Ù47r   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r"   r#   Útypeúcabc.Callable[[str], T]r   zT | Noner   )r   s   "r   r   r   y   s   € ×KÑK�sÐKÐ"9ÐK¸hÑKr   c                	ó   € R # r   r   ©r   r"   rb   s   &&&r   rS   rT   x   s   € ÙHKr   c               ó(   € V ^8„  d   QhRRRRRRRR/# )r   r"   r#   rW   r
   rb   rc   r   r   )r   s   "r   r   r   {   s   € ×PÑP�sÐP QÐPÐ.EÐPÈ!ÑPr   c                	ó   € R # r   r   )r   r"   rW   rb   s   &&&&r   rS   rT   z   s   € ÙMPr   c               ó(   € V ^8„  d   QhRRRRRRRR/# )r   r"   r#   rW   zstr | T | Nonerb   úcabc.Callable[[str], T] | Noner   r   )r   s   "r   r   r   |   s2   € ÷ )ñ )àð)ð  ð)ð -ð	)ð
 
ñ)r   c                ó�   €  V P                  V4      pTf   T#  T! T4      #   \         d    Tu # i ; i  \         d    Tu # i ; i)as  Return the default value if the requested data doesn't exist.
If `type` is provided and is a callable it should convert the value,
return it or raise a :exc:`ValueError` if that is not possible.  In
this case the function will return the default as if the value was not
found:

>>> d = Headers([('Content-Length', '42')])
>>> d.get('Content-Length', type=int)
42

:param key: The key to be looked up.
:param default: The default value to be returned if the key can't
                be looked up.  If not further specified `None` is
                returned.
:param type: A callable that is used to cast the value in the
             :class:`Headers`.  If a :exc:`ValueError` is raised
             by this callable the default value is returned.

.. versionchanged:: 3.0
    The ``as_bytes`` parameter was removed.

.. versionchanged:: 0.9
    The ``as_bytes`` parameter was added.
)r5   ÚKeyErrorÚ
ValueError)r   r"   rW   rb   Úrvs   &&&& r   rS   rT   |   sZ   € ð<	Ø—‘˜sÓ#ˆBð Š<ØˆIð	Ù˜“8ˆOøô ô 	ØŠNð	ûô ô 	ØŠNð	ús   ‚" š5 ¢2±2µAÁAc               ó    € V ^8„  d   QhRRRR/# )r   r"   r#   r   ú	list[str]r   )r   s   "r   r   r   ¨   s   € ×1Ñ1˜3Ð1 9Ñ1r   c                	ó   € R # r   r   r%   s   &&r   ÚgetlistÚHeaders.getlist§   s   € Ù.1r   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r"   r#   rb   rc   r   zlist[T]r   )r   s   "r   r   r   ª   s   € ×NÑN˜3ÐNÐ&=ÐNÀ'ÑNr   c                	ó   € R # r   r   re   s   &&&r   rq   rr   ©   s   € ÙKNr   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r"   r#   rb   ri   r   zlist[str] | list[T]r   )r   s   "r   r   r   «   s$   € ÷ "9ñ "9Øð"9Ø<ð"9à	ñ"9r   c                ó0  € VP                  4       pVe?   . pV  F4  w  rVVP                  4       V8X  g   K   VP                  V! V4      4       K6  	  V# V  UUu. uF  w  rVVP                  4       V8X  g   K  VNK   	  upp#   \         d     Ku  i ; iu uppi )a¬  Return the list of items for a given key. If that key is not in the
:class:`Headers`, the return value will be an empty list.  Just like
:meth:`get`, :meth:`getlist` accepts a `type` parameter.  All items will
be converted with the callable defined there.

:param key: The key to be looked up.
:param type: A callable that is used to cast the value in the
             :class:`Headers`.  If a :exc:`ValueError` is raised
             by this callable the value will be removed from the list.
:return: a :class:`list` of all the values for the key.

.. versionchanged:: 3.0
    The ``as_bytes`` parameter was removed.

.. versionchanged:: 0.9
    The ``as_bytes`` parameter was added.
)r9   Úappendrl   )r   r"   rb   r:   Úresultr;   r<   s   &&&    r   rq   rr   «   sŽ   € ð( �y‰y‹{ˆàÒØˆFã‘�Ø—7‘7“9 Ö$ð!ØŸ™¡d¨1£gÖ.ñ ð ˆMá"Ô8™d‘d�a a§g¡g£i°4Ñ&7—�™dÒ8Ð8øô &ô !Ú ð!üó
 9s   ¶B ÁBÁ6BÂ BÂBc               ó    € V ^8„  d   QhRRRR/# )r   Únamer#   r   ro   r   )r   s   "r   r   r   Ï   s   € ÷ "ñ "˜Cð " Iñ "r   c                ó$   € V P                  V4      # )z™Return a list of all the values for the named field.

This method is compatible with the :mod:`wsgiref`
:meth:`~wsgiref.headers.Headers.get_all` method.
)rq   )r   rz   s   &&r   Úget_allÚHeaders.get_allÏ   s   € ð �|‰|˜DÓ!Ð!r   c               ó    € V ^8„  d   QhRRRR/# )r   r9   rB   r   zt.Iterable[tuple[str, str]]r   )r   s   "r   r   r   ×   s   € ÷ ñ ˜4ð Ð,Gñ r   c              #  	ó^   "  € V  F"  w  r#V'       d   VP                  4       pW#3x € K$  	  R # 5ir   rI   )r   r9   r"   Úvalues   &&  r   ÚitemsÚHeaders.items×   s'   é € Û‰JˆCßØ—i‘i“k�Ø�*Ôó ùs   ‚+-c               ó    € V ^8„  d   QhRRRR/# )r   r9   rB   r   út.Iterable[str]r   )r   s   "r   r   r   Ý   s   € ÷ ñ ˜$ð ¨?ñ r   c              #  	óJ   "  € V P                  V4       F	  w  r#Vx € K  	  R # 5ir   ©r�   )r   r9   r"   Ú_s   &&  r   ÚkeysÚHeaders.keysÝ   s   é € Ø—j‘j Ö'‰FˆCØŒIó (ùs   ‚!#c               ó   € V ^8„  d   QhRR/# )r   r   r„   r   )r   s   "r   r   r   á   s   € ÷ ñ ˜ñ r   c              #  	óH   "  € V P                  4        F	  w  rVx € K  	  R # 5ir   r†   )r   r‡   r€   s   &  r   ÚvaluesÚHeaders.valuesá   s   é € ØŸ
™
ž‰HˆAØŒKó %ùs   ‚ "c               ó$   € V ^8„  d   QhRRRRRR/# )r   Úargr   Úkwargsr#   r   r   r   )r   s   "r   r   r   å   s*   € ÷ "!ñ "!ðð"!ð ð"!ð 
ñ"!r   c               ó¢   € Ve&   \        V4       F  w  r4V P                  W44       K  	  \        V4       F  w  r4V P                  W44       K  	  R# )aE  Extend headers in this object with items from another object
containing header items as well as keyword arguments.

To replace existing keys instead of extending, use
:meth:`update` instead.

If provided, the first argument can be another :class:`Headers`
object, a :class:`MultiDict`, :class:`dict`, or iterable of
pairs.

The header keys are assumed to be trusted and valid, they must not come
from untrusted user input. Newlines in header values are not allowed and
will raise a ``ValueError``.

.. versionchanged:: 1.0
    Support :class:`MultiDict`. Allow passing ``kwargs``.
N)r   Úadd©r   r�   r�   r"   r€   s   "",  r   r   ÚHeaders.extendå   sE   € ð: Š?Ü.¨sÖ3‘
�Ø—‘˜Ö$ñ 4ô +¨6Ö2‰JˆCØ�H‰H�SÖ ó 3r   c               ó    € V ^8„  d   QhRRRR/# )r   r"   r2   r   r   r   )r   s   "r   r   r   	  s   € ÷ ñ Ð0ð °Tñ r   c                	ór   € \        V\        4      '       d   V P                  V4       R # V P                  V R # r   )r4   r#   Ú_del_keyr   r%   s   &&r   Ú__delitem__ÚHeaders.__delitem__	  s)   € Ü�cœ3×ÒØ�M‰M˜#ÔÙà�J‰J�sŠOr   c               ó    € V ^8„  d   QhRRRR/# ©r   r"   r#   r   r   r   )r   s   "r   r   r     s   € ÷ ñ ˜Cð  Dñ r   c                	óÂ   € VP                  4       p. pV P                   F.  w  r4VP                  4       V8w  g   K  VP                  W434       K0  	  W P                  R &   R# ):NNNN)r9   r   rw   )r   r"   Únewr;   r<   s   &&   r   r—   ÚHeaders._del_key  sK   € Ø�i‰i‹kˆØˆà—J”J‰DˆAØ�w‰w‹y˜CÖØ—
‘
˜A˜6Ö"ñ ð �
‰
�1‹r   c               ó    € V ^8„  d   QhRRRR/# r›   r   )r   s   "r   r   r     s   € ÷ "ñ "˜#ð " $ñ "r   c                ó$   € V P                  V4      # )z2Remove a key.

:param key: The key to be removed.
)r—   r%   s   &&r   ÚremoveÚHeaders.remove  s   € ð
 �}‰}˜SÓ!Ð!r   c               ó   € V ^8„  d   QhRR/# ©r   r   r*   r   )r   s   "r   r   r   "  s   € ×)Ñ)�_Ñ)r   c                	ó   € R # r   r   ©r   s   &r   ÚpopÚHeaders.pop!  s   € Ù&)r   c               ó    € V ^8„  d   QhRRRR/# r!   r   )r   s   "r   r   r   $  s   € ×'Ñ'�sÐ'˜sÑ'r   c                	ó   € R # r   r   r%   s   &&r   r§   r¨   #  s   € Ù$'r   c               ó    € V ^8„  d   QhRRRR/# )r   r"   z
int | Noner   r*   r   )r   s   "r   r   r   &  s   € ×@Ñ@�zÐ@¨OÑ@r   c                	ó   € R # r   r   r%   s   &&r   r§   r¨   %  s   € Ù=@r   c               ó$   € V ^8„  d   QhRRRRRR/# rV   r   )r   s   "r   r   r   (  rX   r   c                	ó   € R # r   r   rZ   s   &&&r   r§   r¨   '  r0   r   c               ó$   € V ^8„  d   QhRRRRRR/# r\   r   )r   s   "r   r   r   *  r^   r   c                	ó   € R # r   r   rZ   s   &&&r   r§   r¨   )  r`   r   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r"   zstr | int | NonerW   r]   r   zstr | tuple[str, str] | Tr   )r   s   "r   r   r   +  s(   € ÷ ñ àðð ðð 
#ñ	r   c                ó&  € Vf   V P                   P                  4       # \        V\        4      '       d   V P                   P                  V4      #  V P	                  V4      pT P                  T4       T#   \
         d    T\        Jd   Tu # h i ; i)a!  Removes and returns a key or index.

:param key: The key to be popped.  If this is an integer the item at
            that position is removed, if it's a string the value for
            that key is.  If the key is omitted or `None` the last
            item is removed.
:return: an item.
)r   r§   r4   r)   r5   rk   r   r¡   )r   r"   rW   rm   s   &&& r   r§   r¨   +  s�   € ð Š;Ø—:‘:—>‘>Ó#Ð#ä�cœ3×ÒØ—:‘:—>‘> #Ó&Ð&ð	Ø—‘˜sÓ#ˆBð 	�‰�CÔØˆ	øô ô 	ØœhÓ&Ø’àð		ús   ÁA5 Á5BÂBc               ó   € V ^8„  d   QhRR/# r¤   r   )r   s   "r   r   r   I  s   € ÷  ñ  ˜ñ  r   c                ó6   € V P                   P                  4       # )z7Removes a key or index and returns a (key, value) item.)r   r§   r¦   s   &r   ÚpopitemÚHeaders.popitemI  s   € à�z‰z�~‰~ÓÐr   c               ó    € V ^8„  d   QhRRRR/# )r   r"   r#   r   rB   r   )r   s   "r   r   r   M  s   € ÷ ñ  ð ¨ñ r   c                óN   €  V P                  V4       R#   \         d     R# i ; i)zCheck if a key is present.FT)r5   rk   r%   s   &&r   Ú__contains__ÚHeaders.__contains__M  s,   € ð	Ø�M‰M˜#Ôñ øô ô 	Úð	ús   ‚ •$£$c               ó   € V ^8„  d   QhRR/# )r   r   zt.Iterator[tuple[str, str]]r   )r   s   "r   r   r   V  s   € ÷  ñ  Ð5ñ  r   c                ó,   € \        V P                  4      # )zYield ``(key, value)`` tuples.)Úiterr   r¦   s   &r   Ú__iter__ÚHeaders.__iter__V  s   € ä�D—J‘JÓÐr   c               ó   € V ^8„  d   QhRR/# ©r   r   r)   r   )r   s   "r   r   r   Z  s   € ÷ ñ ˜ñ r   c                	ó,   € \        V P                  4      # r   )Úlenr   r¦   s   &r   Ú__len__ÚHeaders.__len__Z  s   € Ü�4—:‘:‹Ðr   c               ó(   € V ^8„  d   QhRRRRRRRR/# ©r   r"   r#   r€   út.Anyr�   r   r   r   )r   s   "r   r   r   ]  s(   € ÷ ,ñ ,�sð , 5ð ,°uð ,Àñ ,r   c               óz   € V'       d   \        W#4      p\        V4      pV P                  P                  W34       R# )a˜  Add a new header tuple to the list.

Keyword arguments can specify additional parameters for the header
value, with underscores converted to dashes::

>>> d = Headers()
>>> d.add('Content-Type', 'text/plain')
>>> d.add('Content-Disposition', 'attachment', filename='foo.png')

The keyword argument dumping uses :func:`dump_options_header`
behind the scenes.

:param key: The header key. This is assumed to be trusted and valid, it
    must not come from untrusted user input.
:param value: The header value. Newlines are not allowed and will raise
    a ``ValueError``.

.. versionchanged:: 0.4.1
    keyword arguments were added for :mod:`wsgiref` compatibility.
N)Ú_options_header_vkwÚ_str_header_valuer   rw   )r   r"   r€   r�   Ú	value_strs   """, r   r’   ÚHeaders.add]  s0   € ÷* Ü'¨Ó6ˆEä% eÓ,ˆ	Ø�
‰
×Ñ˜3Ð*Ö+r   c               ó(   € V ^8„  d   QhRRRRRRRR/# rÇ   r   )r   s   "r   r   r   x  s(   € ÷ 'ñ '˜cð '¨%ð '¸eð 'Èñ 'r   c               ó,   € V P                   ! W3/ VB  R# )zœAdd a new header tuple to the list.

An alias for :meth:`add` for compatibility with the :mod:`wsgiref`
:meth:`~wsgiref.headers.Headers.add_header` method.
N)r’   )r   r"   r€   r�   s   """,r   Ú
add_headerÚHeaders.add_headerx  s   € ð 	�Š�Ñ&˜vÔ&r   c               ó   € V ^8„  d   QhRR/# )r   r   r   r   )r   s   "r   r   r   €  s   € ÷ ñ �tñ r   c                ó:   € V P                   P                  4        R# )zClears all headers.N)r   Úclearr¦   s   &r   rÔ   ÚHeaders.clear€  s   € à�
‰
×ÑÖr   c               ó(   € V ^8„  d   QhRRRRRRRR/# rÇ   r   )r   s   "r   r   r   „  s.   € ÷ (Oñ (O�sð (O 5ð (O°uð (OÀñ (Or   c               ó4  € V'       d   \        W#4      p\        V4      pV P                  '       g   V P                  P                  W34       R# \	        V P                  4      pVP                  4       p\        V4       F/  w  pw  r‰VP                  4       V8X  g   K  W3V P                  V&    M 	  V P                  P                  W34       R# V U
u. uF"  qª^ ,          P                  4       V8w  g   K   V
NK$  	  up
V P                  V^,           R% R# u up
i )ag  Remove all header tuples for `key` and add a new one.  The newly
added key either appears at the end of the list if there was no
entry or replaces the first one.

Keyword arguments can specify additional parameters for the header
value, with underscores converted to dashes.  See :meth:`add` for
more information.

.. versionchanged:: 0.6.1
   :meth:`set` now accepts the same arguments as :meth:`add`.

:param key: The header key. This is assumed to be trusted and valid, it
    must not come from untrusted user input.
:param value: The header value. Newlines are not allowed and will raise
    a ``ValueError``.
N)rÊ   rË   r   rw   r½   r9   Ú	enumerate)r   r"   r€   r�   rÌ   Ú	iter_listr:   ÚidxÚold_keyr‡   Úts   """,       r   rM   ÚHeaders.set„  sß   € ÷" Ü'¨Ó6ˆEä% eÓ,ˆ	à�z�zˆzØ�J‰J×Ñ˜sÐ.Ô/Ùä˜Ÿ™Ó$ˆ	Ø�y‰y‹{ˆä!*¨9Ö!5ÑˆC‘�'Ø�}‰}‹ $Ö&à#&Ð"2�—
‘
˜3‘Ùñ	 "6ð �J‰J×Ñ˜sÐ.Ô/Ùñ -6Ó N©I q¸1½¿¹»ÈÑ9M§ ©IÑ Nˆ�
‰
�3˜•7�9ÒùÒ Ns   ÃDÃ6Dc               ó$   € V ^8„  d   QhRRRRRR/# )r   r"   r#   rŒ   úcabc.Iterable[t.Any]r   r   r   )r   s   "r   r   r   ®  s"   € ÷ ñ ˜3ð Ð(<ð Àñ r   c                ó¼   € V'       dC   \        V4      pV P                  V\        V4      4       V F  pV P                  W4       K  	  R# V P	                  V4       R# )a1  Remove any existing values for a header and add new ones.

:param key: The header key. This is assumed to be trusted and valid, it
    must not come from untrusted user input.
:param value: An iterable of header values. Newlines are not allowed and
    will raise a ``ValueError``.

.. versionadded:: 1.0
N)r½   rM   Únextr’   r¡   )r   r"   rŒ   Úvalues_iterr€   s   &&&  r   ÚsetlistÚHeaders.setlist®  sG   € ÷ Ü˜v›,ˆKØ�H‰H�Sœ$˜{Ó+Ô,ã$�Ø—‘˜Ö$ó %ð �K‰K˜Ör   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r"   r#   rW   rÈ   r   r   )r   s   "r   r   r   Á  s!   € ÷ "ñ "˜cð "¨Eð "°cñ "r   c                óŒ   €  V P                  V4      #   \         d     Mi ; iT P                  Y4       T P                  T4      # )a  Return the first value for the key if it is in the headers,
otherwise set the header to the value given by ``default`` and
return that.

:param key: The header key. This is assumed to be trusted and valid, it
    must not come from untrusted user input.
:param default: The header value to set if the key is not present.
    Newlines are not allowed and will raise a ``ValueError``.
)r5   rk   rM   rZ   s   &&&r   Ú
setdefaultÚHeaders.setdefaultÁ  sE   € ð	Ø—=‘= Ó%Ð%øÜô 	Ùð	úð 	�‰�ÔØ�}‰}˜SÓ!Ð!s   ‚ “! !c               ó$   € V ^8„  d   QhRRRRRR/# )r   r"   r#   rW   rß   r   ro   r   )r   s   "r   r   r   Ó  s"   € ÷ !ñ ! #ð !Ð0Dð !Èñ !r   c                óR   € W9  d   V P                  W4       V P                  V4      # )a  Return the list of values for the key if it is in the
headers, otherwise set the header to the list of values given
by ``default`` and return that.

Unlike :meth:`MultiDict.setlistdefault`, modifying the returned
list will not affect the headers.

:param key: The header key. This is assumed to be trusted and valid, it
    must not come from untrusted user input.
:param default: An iterable of header values to set if the key is not
    present. Newlines are not allowed and will raise a ``ValueError``.

.. versionadded:: 1.0
)rã   rq   rZ   s   &&&r   ÚsetlistdefaultÚHeaders.setlistdefaultÓ  s$   € ð Œ?Ø�L‰L˜Ô&à�|‰|˜CÓ Ð r   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r"   r#   r€   rÈ   r   r   r   )r   s   "r   r   r   è  s   € ×>Ñ>˜sÐ>¨5Ð>°TÑ>r   c                	ó   € R # r   r   ©r   r"   r€   s   &&&r   Ú__setitem__ÚHeaders.__setitem__ç  s   € Ù;>r   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r"   r)   r€   ztuple[str, t.Any]r   r   r   )r   s   "r   r   r   ê  s   € ×JÑJ˜sÐJÐ+<ÐJÀÑJr   c                	ó   € R # r   r   rï   s   &&&r   rð   rñ   é  s   € ÙGJr   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r"   r-   r€   z cabc.Iterable[tuple[str, t.Any]]r   r   r   )r   s   "r   r   r   ì  s$   € ÷ ñ ØðØ!Aðà	ñr   c                	ó   € R # r   r   rï   s   &&&r   rð   rñ   ë  s   € ñ r   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r"   r2   r€   z<t.Any | tuple[str, t.Any] | cabc.Iterable[tuple[str, t.Any]]r   r   r   )r   s   "r   r   r   ï  s.   € ÷ Lñ LàðLð LðLð 
ñ	Lr   c                ó@  € \        V\        4      '       d   V P                  W4       R# \        V\        4      '       d+   V^ ,          \	        V^,          4      3V P
                  V&   R# V UUu. uF  w  r4V\	        V4      3NK  	  uppV P
                  V&   R# u uppi )z=Like :meth:`set` but also supports index/slice based setting.N)r4   r#   rM   r)   rË   r   )r   r"   r€   r;   r<   s   &&&  r   rð   rñ   ï  sv   € ô �cœ3×ÒØ�H‰H�SÖ Ü˜œS×!Ò!Ø# A�hÔ(9¸%À½(Ó(CÐCˆD�J‰J�s‹OáEJÔKÁU¹T¸Q Ô#4°QÓ#7Ó8ÁUÒKˆD�J‰J�s‹OùÓKs   Á/Bc               ó$   € V ^8„  d   QhRRRRRR/# )r   r�   z˜Headers | MultiDict[str, t.Any] | cabc.Mapping[str, t.Any | list[t.Any] | tuple[t.Any, ...] | cabc.Set[t.Any]] | cabc.Iterable[tuple[str, t.Any]] | Noner�   z9t.Any | list[t.Any] | tuple[t.Any, ...] | cabc.Set[t.Any]r   r   r   )r   s   "r   r   r   ü  s+   € ÷ 0%ñ 0%ðð0%ð Lð0%ð 
ñ0%r   c               ó¨  € Veð   \        V\        \        34      '       d9   VP                  4        F#  pV P	                  W1P                  V4      4       K%  	  M›\        V\        P                  4      '       d`   VP                  4        FJ  w  r4\        V\        \        \        34      '       d   V P	                  W44       K9  V P                  W44       KL  	  MV F  w  r4V P                  W44       K  	  VP                  4        FJ  w  r4\        V\        \        \        34      '       d   V P	                  W44       K9  V P                  W44       KL  	  R# )aò  Replace headers in this object with items from another
headers object and keyword arguments.

To extend existing keys instead of replacing, use :meth:`extend`
instead.

If provided, the first argument can be another :class:`Headers`
object, a :class:`MultiDict`, :class:`dict`, or iterable of
pairs.

The header keys are assumed to be trusted and valid, they must not come
from untrusted user input. Newlines in header values are not allowed and
will raise a ``ValueError``.

.. versionadded:: 1.0
N)r4   r   r   rˆ   rã   rq   ÚcabcÚMappingr�   ÚlistÚtuplerM   r“   s   "",  r   ÚupdateÚHeaders.updateü  sé   € ð< Š?Ü˜#¤¬Ð3×4Ò4ØŸ8™8ž:�CØ—L‘L §k¡k°#Ó&6Ö7ò &ä˜C¤§¡×.Ò.Ø"%§)¡)¦+‘J�CÜ! %¬$´´sÐ);×<Ò<ØŸ™ SÖ0àŸ™ Ö,ò	 #.ó #&‘J�CØ—H‘H˜SÖ(ñ #&ð !Ÿ,™,ž.‰JˆCÜ˜%¤$¬¬sÐ!3×4Ò4Ø—‘˜SÖ(à—‘˜Ö$ó	 )r   c               ó    € V ^8„  d   QhRRRR/# )r   r@   zLcabc.Mapping[str, t.Any | list[t.Any] | tuple[t.Any, ...] | cabc.Set[t.Any]]r   r.   r   )r   s   "r   r   r   .  s    € ÷ ñ ð
ðð
 
ñr   c                	ó”   € \        V\        P                  4      '       g   \        # V P	                  4       pVP                  V4       V# r   )r4   rú   rû   rL   Úcopyrþ   )r   r@   rm   s   && r   Ú__or__ÚHeaders.__or__.  s7   € ô ˜%¤§¡×.Ò.Ü!Ð!à�Y‰Y‹[ˆØ
�	‰	�%ÔØˆ	r   c               ó    € V ^8„  d   QhRRRR/# )r   r@   zocabc.Mapping[str, t.Any | list[t.Any] | tuple[t.Any, ...] | cabc.Set[t.Any]] | cabc.Iterable[tuple[str, t.Any]]r   r.   r   )r   s   "r   r   r   ;  s    € ÷ ñ ð/ðð 
ñr   c                	ó”   € \        V\        P                  \        P                  34      '       g   \        # V P                  V4       V # r   )r4   rú   rû   ÚIterablerL   rþ   ©r   r@   s   &&r   Ú__ior__ÚHeaders.__ior__;  s5   € ô ˜%¤$§,¡,´·±Ð!>×?Ò?Ü!Ð!à�‰�EÔØˆr   c               ó   € V ^8„  d   QhRR/# )r   r   zlist[tuple[str, str]]r   )r   s   "r   r   r   H  s   € ÷ ñ Ð3ñ r   c                ó   € \        V 4      # )zBConvert the headers into a list suitable for WSGI.

:return: list
)rü   r¦   s   &r   Úto_wsgi_listÚHeaders.to_wsgi_listH  s   € ô
 �D‹zÐr   c               ó   € V ^8„  d   QhRR/# ©r   r   r.   r   )r   s   "r   r   r   O  s   € ÷ *ñ *�gñ *r   c                	ó8   € V P                  V P                  4      # r   )r6   r   r¦   s   &r   r  ÚHeaders.copyO  s   € Ø�~‰~˜dŸj™jÓ)Ð)r   c               ó   € V ^8„  d   QhRR/# r  r   )r   s   "r   r   r   R  s   € ÷ ñ ˜'ñ r   c                	ó"   € V P                  4       # r   )r  r¦   s   &r   Ú__copy__ÚHeaders.__copy__R  s   € Ø�y‰y‹{Ðr   c               ó   € V ^8„  d   QhRR/# ©r   r   r#   r   )r   s   "r   r   r   U  s   € ÷ !ñ !˜ñ !r   c                ó¨   € . pV P                  4        F  w  r#VP                  V RV 24       K  	  VP                  R4       RP                  V4      # )z9Returns formatted headers suitable for HTTP transmission.z: z
)r  rw   Újoin)r   Ústrsr"   r€   s   &   r   Ú__str__ÚHeaders.__str__U  sN   € àˆØ×+Ñ+Ö-‰JˆCØ�K‰K˜3˜%˜r % Ð)Ö*ñ .à�‰�FÔØ�{‰{˜4Ó Ð r   c               ó   € V ^8„  d   QhRR/# r  r   )r   s   "r   r   r   ]  s   € ÷ 8ñ 8˜#ñ 8r   c                	óL   € \        V 4      P                   R \        V 4      : R2# )Ú(Ú))rb   Ú__name__rü   r¦   s   &r   Ú__repr__ÚHeaders.__repr__]  s$   € Ü�t“*×%Ñ%Ð& a¬¨T«
¡~°QÐ7Ð7r   )r   r   )NN)F).)-r"  Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   rÜ   Úoverloadr&   r5   rO   Ú__hash__rS   rq   r|   r�   rˆ   rŒ   r   r˜   r—   r¡   r§   r   rµ   r¹   r¾   rÄ   r’   rÐ   rÔ   rM   rã   rç   rë   rð   rþ   r  r	  r  r  r  r  r#  Ú__static_attributes__r   r   r   r   r      s#  † ñ)÷V"ð ‡Z�ZÜ/ó Ø/Ø‡Z�ZÜ;ó Ø;Ø‡Z�ZÜ5ó Ø5õ/õ&õOð €Hà‡Z�ZÜ.ó Ø.Ø‡Z�ZÜ5ó Ø5Ø‡Z�ZÜ7ó Ø7Ø‡Z�ZÜKó ØKØ‡Z�ZÜPó ØP÷)ðV ‡Z�ZÜ1ó Ø1Ø‡Z�ZÜNó ØN÷"9õH"÷÷õ÷"!õHõõ"ð ‡Z�ZÜ)ó Ø)Ø‡Z�ZÜ'ó Ø'Ø‡Z�ZÞ@ó Ø@Ø‡Z�ZÜ5ó Ø5Ø‡Z�ZÜ7ó Ø7ð !%Ø#÷õ< õõ õõ,õ6'õõ(OõTõ&"õ$!ð( ‡Z�ZÜ>ó Ø>Ø‡Z�ZÜJó ØJØ‡Z�Zôó ðõL÷0%õdõõõ*õõ!÷8ñ 8r   r   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r€   r#   Úkwzdict[str, t.Any]r   r   )r   s   "r   r   r   a  s"   € ÷ ñ ˜sð Ð(8ð ¸Sñ r   c                ó    € \         P                  ! YP                  4        UUu/ uF  w  r#VP                  R R4      VbK  	  upp4      # u uppi )r‡   Ú-)ÚhttpÚdump_options_headerr�   Úreplace)r€   r-  r;   r<   s   &&  r   rÊ   rÊ   a  sB   € Ü×#Ò#Ø·8±8´:Ô>±:©4¨1�—	‘	˜#˜sÓ# QÒ&±:Ò>óð ùÛ>s   ¤A
z[\r\n]c               ó    € V ^8„  d   QhRRRR/# )r   r€   rÈ   r   r#   r   )r   s   "r   r   r   j  s   € ÷ ñ ˜Uð  sñ r   c                óŒ   € \        V \        4      '       g   \        V 4      p \        P                  V 4      e   \	        R4      hV # )Nz2Header values must not contain newline characters.)r4   r#   Ú_newline_reÚsearchrl   )r€   s   &r   rË   rË   j  s:   € Ü�eœS×!Ò!Ü�E“
ˆä×Ñ˜%Ó Ò,ÜÐMÓNÐNà€Lr   c                  óŠ   a € ] tR tRtRtR V 3R lltR R ltRtR R	 ltR
 R lt	R R lt
R R ltR R ltR R ltRtV ;t# )ÚEnvironHeadersit  az  Read only version of the headers from a WSGI environment.  This
provides the same interface as `Headers` and is constructed from
a WSGI environment.
From Werkzeug 0.3 onwards, the `KeyError` raised by this class is also a
subclass of the :exc:`~exceptions.BadRequest` HTTP exception and will
render a page for a ``400 BAD REQUEST`` if caught in a catch-all for
HTTP exceptions.
c               ó    € V ^8„  d   QhRRRR/# )r   Úenvironr	   r   r   r   )r   s   "r   r   ÚEnvironHeaders.__annotate__~  s   € ÷ ñ  ð °Dñ r   c                	ó0   <€ \         SV `  4        Wn        R # r   )Úsuperr   r:  )r   r:  r6   s   &&€r   r   ÚEnvironHeaders.__init__~  s   ø€ Ü‰ÑÔØŽr   c               ó    € V ^8„  d   QhRRRR/# r?   r   )r   s   "r   r   r;  ‚  s   € ÷ -ñ -˜Fð - tñ -r   c                	ój   € \        V\        4      '       g   \        # V P                  VP                  J # r   )r4   r8  rL   r:  r  s   &&r   rO   ÚEnvironHeaders.__eq__‚  s(   € Ü˜%¤×0Ò0Ü!Ð!à�|‰|˜uŸ}™}Ð,Ð,r   Nc               ó    € V ^8„  d   QhRRRR/# r!   r   )r   s   "r   r   r;  Š  s   € ÷ "ñ "˜sð " sñ "r   c                	ó$   € V P                  V4      # r   )r5   r%   s   &&r   r&   ÚEnvironHeaders.__getitem__Š  s   € Ø�}‰}˜SÓ!Ð!r   c               ó    € V ^8„  d   QhRRRR/# r!   r   )r   s   "r   r   r;  �  s   € ÷ 	+ñ 	+˜Cð 	+ Cñ 	+r   c                	óä   € \        V\        4      '       g   \        V4      hVP                  4       P	                  R R4      pVR9   d   V P
                  V,          # V P
                  RV 2,          # )r/  r‡   ÚHTTP_¾   ÚCONTENT_TYPEÚCONTENT_LENGTH)r4   r#   r   Úupperr2  r:  r%   s   &&r   r5   ÚEnvironHeaders._get_key�  s_   € Ü˜#œs×#Ò#Ü$ SÓ)Ð)à�i‰i‹k×!Ñ! # sÓ+ˆàÐ4Ô4Ø—<‘< Õ$Ð$à�|‰|˜e C 5˜MÕ*Ð*r   c               ó   € V ^8„  d   QhRR/# rÁ   r   )r   s   "r   r   r;  ˜  s   € ÷ $ñ $˜ñ $r   c                	ó&   € \        R  V  4       4      # )c              3  ó&   "  € T F  p^x € K	  	  R# 5i)rH   Nr   )Ú.0r‡   s   & r   Ú	<genexpr>Ú)EnvironHeaders.__len__.<locals>.<genexpr>™  s   é € Ð#™d˜•1›dùs   ‚)Úsumr¦   s   &r   rÄ   ÚEnvironHeaders.__len__˜  s   € ÜÑ#™dÓ#Ó#Ð#r   c               ó   € V ^8„  d   QhRR/# )r   r   zcabc.Iterator[tuple[str, str]]r   )r   s   "r   r   r;  ›  s   € ÷ ;ñ ;Ð8ñ ;r   c              #  	óX  "  € V P                   P                  4        F‡  w  rVP                  R 4      '       d5   VR9  d.   VR,          P                  RR4      P	                  4       V3x € KP  VR9   g   KY  V'       g   Kc  VP                  RR4      P	                  4       V3x € K‰  	  R# 5i)rG  :é   NNr‡   r/  N>   ÚHTTP_CONTENT_TYPEÚHTTP_CONTENT_LENGTHrH  )r:  r�   Ú
startswithr2  Útitlerï   s   &  r   r¾   ÚEnvironHeaders.__iter__›  sŠ   é € ØŸ,™,×,Ñ,Ö.‰JˆCØ�~‰~˜g×&Ò&¨3ð 7ô ,ð ˜"•g—o‘o c¨3Ó/×5Ñ5Ó7¸Ð>Ô>ØÐ:Ö:¿u¹uØ—k‘k # sÓ+×1Ñ1Ó3°UÐ:Ô:ó /ùs   ‚A/B*Á6B*Â *B*c               ó   € V ^8„  d   QhRR/# )r   r   ú
t.NoReturnr   )r   s   "r   r   r;  ¥  s   € ÷ Iñ I�jñ Ir   c                	óH   € \        R \        V 4      P                  : R24      h©zcannot create z copies©Ú	TypeErrorrb   r"  r¦   s   &r   r  ÚEnvironHeaders.copy¥  ó!   € Ü˜.¬¨d«×)<Ñ)<Ñ(?¸wÐGÓHÐHr   c               ó    € V ^8„  d   QhRRRR/# )r   r@   rÈ   r   r^  r   )r   s   "r   r   r;  ¨  s   € ÷ Iñ I˜Eð I jñ Ir   c                	óH   € \        R \        V 4      P                  : R24      hr`  ra  r  s   &&r   r  ÚEnvironHeaders.__or__¨  rd  r   )r:  )r"  r%  r&  r'  r(  r   rO   r*  r&   r5   rÄ   r¾   r  r  r+  Ú__classcell__)r6   s   @r   r8  r8  t  sD   ø† ñ÷ð õ-ð €Hõ"õ	+õ$õ;õI÷Ió Ir   r8  )r0  ) Ú
__future__r   Úcollections.abcÚabcrú   ÚreÚtypingrÜ   Ú	_internalr   Ú
exceptionsr   Úmixinsr   Ú
structuresr   r   ÚTYPE_CHECKINGÚtyping_extensionsÚteÚ_typeshed.wsgir	   ÚTypeVarr
   r   rÊ   Úcompiler5  rË   r8  Ú r0  r   r   r   Ú<module>ry     sz   ðÝ "å Û 	Û å  Ý +Ý )Ý (Ý !à‡?‡?€?Û"Ý.à‡I‚IˆcƒN€÷J	8ñ J	8õZð �jŠj˜Ó#€õô5IÐ*¨Gô 5I÷r r   