§
    l:Rf©  ã                   ó,  — d dl Zd dlmZ ej        r
d dlZddlmZ  e¦   «         Z	ej
        ddd
„¦   «         Zej
        ddedej        d	         fd„¦   «         Zddedej        d	         fd„Zdd„Zdd„Zddej        e         dej        e         fd„ZdS )é    N)Úlocalé   )ÚContextFÚsilentúte.Literal[False]Úreturnr   c                 ó   — d S ©N© ©r   s    ú@/var/www/bsim/venv/lib/python3.11/site-packages/click/globals.pyÚget_current_contextr      ó   € à€Có    .c                 ó   — d S r
   r   r   s    r   r   r      r   r   c                 ó²   — 	 t          j        dt          j        d         ¦  «        S # t          t
          f$ r}| st          d¦  «        |‚Y d}~nd}~ww xY wdS )a‚  Returns the current click context.  This can be used as a way to
    access the current context object from anywhere.  This is a more implicit
    alternative to the :func:`pass_context` decorator.  This function is
    primarily useful for helpers such as :func:`echo` which might be
    interested in changing its behavior based on the current context.

    To push the current context, :meth:`Context.scope` can be used.

    .. versionadded:: 5.0

    :param silent: if set to `True` the return value is `None` if no context
                   is available.  The default behavior is to raise a
                   :exc:`RuntimeError`.
    r   éÿÿÿÿz!There is no active click context.N)ÚtÚcastÚ_localÚstackÚAttributeErrorÚ
IndexErrorÚRuntimeError)r   Úes     r   r   r      sˆ   € ðKÝŒv�i¥¤¨bÔ!1Ñ2Ô2Ð2øÝ�JÐ'ð Kð Kð KØð 	KÝÐBÑCÔCÈÐJð	Kð 	Kð 	Kð 	Kð 	KøøøøðKøøøð ˆ4s   ‚$' §A¸AÁAÚctxc                 ól   — t           j                             dg ¦  «                             | ¦  «         dS )z*Pushes a new context to the current stack.r   N)r   Ú__dict__Ú
setdefaultÚappend)r   s    r   Úpush_contextr!   -   s.   € å
„O×Ò˜w¨Ñ+Ô+×2Ò2°3Ñ7Ô7Ð7Ð7Ð7r   c                  óB   — t           j                             ¦   «          dS )z%Removes the top level from the stack.N)r   r   Úpopr   r   r   Úpop_contextr$   2   s   € å
„L×ÒÑÔÐÐÐr   Úcolorc                 ó@   — | �| S t          d¬¦  «        }|�|j        S dS )zªInternal helper to get the default value of the color flag.  If a
    value is passed it's returned unchanged, otherwise it's looked up from
    the current context.
    NTr   )r   r%   )r%   r   s     r   Úresolve_color_defaultr'   7   s1   € ð
 ÐØˆå
 TÐ
*Ñ
*Ô
*€Cà
€ØŒyÐàˆ4r   )F)r   r   r   r   ).)r   r   r   N)r   Nr
   )Útypingr   Ú	threadingr   ÚTYPE_CHECKINGÚtyping_extensionsÚteÚcorer   r   Úoverloadr   ÚboolÚOptionalr!   r$   r'   r   r   r   ú<module>r1      sN  ðØ Ð Ð Ð Ø Ð Ð Ð Ð Ð à„?ð Ø"Ð"Ð"Ð"ØÐÐÐÐÐà	ˆ‰Œ€ð „ðð ð ð ñ „ðð „ðð  ð ¨q¬z¸)Ô/Dð ð ð ñ „ððð  ð °´¸IÔ1Fð ð ð ð ð08ð 8ð 8ð 8ð
ð ð ð ð
ð  ¤¨DÔ!1ð ¸Q¼ZÈÔ=Mð ð ð ð ð ð r   