ó
    Ú2‰i»  ã            	       óÒ  • 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JrJr  S SKJr  S SKJrJrJr  \" S5      r\" \5      r\" \5      r\" \5      r\" \5      r SS
\	\   S\\\4   4S jjr SS\S
\	\   S\	\   4S jjr SS\S\S
\	\   S\4S jjrSS\S
\	\   S\4S jjrSS
\	\   S\4S jjr SS
\	\   S\\\4   4S jjr!S\S\"4S jr#S\S\"4S jr$S\S\S\"4S jr%g	)é    )Ú	getLogger)Úcompile)ÚMappingProxyType)ÚDictÚMappingÚOptional)Ú
create_keyÚ	get_valueÚ	set_value)ÚContext)Ú_BAGGAGE_PROPERTY_FORMATÚ_KEY_FORMATÚ_VALUE_FORMATÚbaggageNÚcontextÚreturnc                 ó&   • [        [        U S95      $ )z§Returns the name/value pairs in the Baggage

Args:
    context: The Context to use. If not set, uses current Context

Returns:
    The name/value pairs in the Baggage
©r   )r   Ú_get_baggage_valuer   s    Ú[/home/mande/repo/quber/.venv/lib/python3.13/site-packages/opentelemetry/baggage/__init__.pyÚget_allr   $   s   € ô Ô.°wÑ?Ó@Ð@ó    Únamec                 ó2   • [        US9R                  U 5      $ )a  Provides access to the value for a name/value pair in the
Baggage

Args:
    name: The name of the value to retrieve
    context: The Context to use. If not set, uses current Context

Returns:
    The value associated with the given name, or null if the given name is
    not present.
r   )r   Úget)r   r   s     r   Úget_baggager   2   s   € ô  gÑ.×2Ñ2°4Ó8Ð8r   Úvaluec                 óT   • [        US9R                  5       nXU '   [        [        X2S9$ )z×Sets a value in the Baggage

Args:
    name: The name of the value to set
    value: The value to set
    context: The Context to use. If not set, uses current Context

Returns:
    A Context with the value updated
r   )r   Úcopyr   Ú_BAGGAGE_KEY)r   r   r   r   s       r   Úset_baggager!   C   s+   € ô !¨Ñ1×6Ñ6Ó8€GØˆD�MÜ”\ 7Ñ<Ð<r   c                 óp   • [        US9R                  5       nUR                  U S5        [        [        X!S9$ )zÈRemoves a value from the Baggage

Args:
    name: The name of the value to remove
    context: The Context to use. If not set, uses current Context

Returns:
    A Context with the name/value removed
r   N)r   r   Úpopr   r    )r   r   r   s      r   Úremove_baggager$   U   s2   € ô !¨Ñ1×6Ñ6Ó8€GØ‡K�K��dÔä”\ 7Ñ<Ð<r   c                 ó    • [        [        0 U S9$ )z¦Removes all values from the Baggage

Args:
    context: The Context to use. If not set, uses current Context

Returns:
    A Context with all baggage entries removed
r   )r   r    r   s    r   Úclearr&   e   s   € ô ”\ 2¨wÑ7Ð7r   c                 óP   • [        [        U S9n[        U[        5      (       a  U$ 0 $ )Nr   )r
   r    Ú
isinstanceÚdict)r   r   s     r   r   r   q   s%   € Üœ¨gÑ6€GÜ�'œ4× Ñ ØˆØ€Ir   c                 óB   • [         R                  [        U 5      5      S L$ ©N)Ú_KEY_PATTERNÚ	fullmatchÚstr)r   s    r   Ú_is_valid_keyr/   x   s   € Ü×!Ñ!¤# d£)Ó,°DÐ8Ð8r   c                 óÚ   • [        U 5      R                  S5      n[        R                  US   5      S Ln[	        U5      S:”  a'  USS   H  n[
        R                  U5      b  M  Sn  U$    U$ )NÚ;r   é   F)r.   ÚsplitÚ_VALUE_PATTERNr-   ÚlenÚ_PROPERT_PATTERN)r   ÚpartsÚis_valid_valueÚpropertys       r   Ú_is_valid_valuer:   |   sq   € Ü�‹J×Ñ˜SÓ!€EÜ#×-Ñ-¨e°A©hÓ7¸tÐC€NÜ
ˆ5ƒz�Aƒ~Ø˜a˜b›	ˆHÜ×)Ñ)¨(Ó3Ó;Ø!&�ØØÐñ	 "ð Ðr   Úkeyc                 ó<   • [        U 5      =(       a    [        U5      $ r+   )r/   r:   )r;   r   s     r   Ú_is_valid_pairr=   ‡   s   € Ü˜Ó×8¤/°%Ó"8Ð8r   r+   )&Úloggingr   Úrer   Útypesr   Útypingr   r   r   Úopentelemetry.contextr	   r
   r   Úopentelemetry.context.contextr   Úopentelemetry.util.rer   r   r   r    Ú__name__Ú_loggerr,   r4   r6   r.   Úobjectr   r   r!   r$   r&   r   Úboolr/   r:   r=   © r   r   Ú<module>rJ      s~  ðõ Ý Ý "ß *Ñ *ç BÑ BÝ 1÷ñ ñ ˜)Ó$€Ù
�HÓ
€á�{Ó#€Ù˜Ó'€ÙÐ3Ó4Ð ð "&ñAØ�gÑðAàˆS�&ˆ[ÑõAð -1ñ9Ø
ð9Ø  Ñ)ð9àˆfÑõ9ð$ <@ñ=Ø
ð=Øð=Ø'/°Ñ'8ð=àõ=ñ$=˜ð = x°Ñ'8ð =ÀGõ =ñ 	8�8˜GÑ$ð 	8°õ 	8ñ ¨Ñ 1ð ¸TÀ#ÀvÀ+Ñ=Nõ ð9˜ð 9 ô 9ð˜6ð  dô ð9˜ð 9 Cð 9¨Dõ 9r   