
    ,hI                     ^   S SK r S SKrS SKrS SKJr  S SKJr  SSKJ	r	  SSKJ
r
  SSKJr  SSKJr  SS	KJr  SS
KJr  SSKJr  SSKJr  \R&                  (       a  S SKr\R,                  " S5      r\R0                  " S5      r\R0                  " S5      r\R6                  S\R8                  4   r\R0                  " S\R<                  \\
4   S9rSBS jr SCS jr! SDS\RD                  \   S\#S\R6                  S/S4   4S jjr$SS.S\%S\RL                  \%   SS4S  jjr'\R0                  " S!\
S9r(\RR                  S"\S\
4S# j5       r*\RR                  S"\RL                  \%   S$\RD                  \(   S%\R8                  S\R6                  \/\(4   4S& j5       r*\RR                   SES"SS$\RD                  \(   S%\R8                  S\R6                  \/\(4   4S' jj5       r*\RR                   SFS"\RL                  \%   S$SS%\R8                  S\R6                  \/\
4   4S( jj5       r*  SGS"\R<                  \RL                  \%   \4   S$\RL                  \RD                  \(      S%\R8                  S\R<                  \
\R6                  \/\R<                  \
\(4   4   4   4S) jjr*\R0                  " S*\S9r+\RR                  S"\S\4S+ j5       r,\RR                  S"\RL                  \%   S$\RD                  \+   S%\R8                  S\R6                  \/\+4   4S, j5       r,\RR                   SES"SS$\RD                  \+   S%\R8                  S\R6                  \/\+4   4S- jj5       r,\RR                   SFS"\RL                  \%   S$SS%\R8                  S\R6                  \/\4   4S. jj5       r,  SGS"\R<                  \%\S4   S$\RL                  \RD                  \+      S%\R8                  S\R<                  \\R6                  \/\R<                  \\+4   4   4   4S/ jjr,S\R6                  S\R8                  4   S0\SS4S1 jr-SS2.S3\%S$\RL                  \RD                  \	      S%\R8                  S\R6                  \/\4   4S4 jjr.SS2.S3\%S$\RL                  \RD                  \      S%\R8                  S\R6                  \/\4   4S5 jjr/S3\%S6\R8                  S\R6                  \/\4   4S7 jr0S3\%S6\R8                  S\R6                  \/\4   4S8 jr1 SESSSS9.S:\RL                  \%   S3\%S;\RL                  \%   S<\RL                  \%   S=\RL                  \%   S6\R8                  S\R6                  \/\4   4S> jjjr2 " S? S@\5      r3S3\%S6\R8                  S\R6                  \/\4   4SA jr4g)H    Nupdate_wrapper)gettext   )Argument)Command)Context)Group)Option)	Parameterget_current_context)echoPRT.FC)boundfreturnt.Callable[P, R]c                 ,   ^  SU 4S jjn[        UT 5      $ )zUMarks a callback as wanting to receive the current context
object as first argument.
c                  ,   > T" [        5       /U Q70 UD6$ Nr   argskwargsr   s     H/var/www/auris/envauris/lib/python3.13/site-packages/click/decorators.pynew_funcpass_context.<locals>.new_func    s    $&8888    r   P.argsr   P.kwargsr   r   r   r   r   s   ` r   pass_contextr&      s    
9 (A&&r!   c                 ,   ^  SU 4S jjn[        UT 5      $ )zSimilar to :func:`pass_context`, but only pass the object on the
context onwards (:attr:`Context.obj`).  This is useful if that object
represents the state of a nested system.
c                  @   > T" [        5       R                  /U Q70 UD6$ r   )r   objr   s     r   r   pass_obj.<locals>.new_func,   s"    $&**<T<V<<r!   r"   r   r%   s   ` r   pass_objr+   &   s    = (A&&r!   object_typeensure#t.Callable[te.Concatenate[T, P], R]c                    ^ ^ SUU 4S jjnU$ )a  Given an object type this creates a decorator that will work
similar to :func:`pass_obj` but instead of passing the object of the
current context, it will find the innermost context of type
:func:`object_type`.

This generates a decorator that works roughly like this::

    from functools import update_wrapper

    def decorator(f):
        @pass_context
        def new_func(ctx, *args, **kwargs):
            obj = ctx.find_object(object_type)
            return ctx.invoke(f, obj, *args, **kwargs)
        return update_wrapper(new_func, f)
    return decorator

:param object_type: the type of the object to pass.
:param ensure: if set to `True`, a new object will be created and
               remembered on the context if it's not there yet.
c                 2   >^  SUU U4S jjn[        UT 5      $ )Nc                     > [        5       nT(       a  UR                  T5      nOUR                  T5      nUc  [        STR                  < S35      eUR
                  " TU/U Q70 UD6$ )Nz<Managed to invoke callback without a context object of type z
 existing.)r   ensure_objectfind_objectRuntimeError__name__invoke)r   r   ctxr)   r-   r   r,   s       r   r   8make_pass_decorator.<locals>.decorator.<locals>.new_funcL   sv    %'C ''4ook2{"''2';';&> !  ::a6t6v66r!   r"   r   )r   r   r-   r,   s   ` r   	decorator&make_pass_decorator.<locals>.decoratorK   s    	7 	7$ h**r!   )r   r.   r   r    )r,   r-   r9   s   `` r   make_pass_decoratorr<   2   s    2+ +* r!   )doc_descriptionkeyr=   zGt.Callable[[t.Callable[te.Concatenate[t.Any, P], R]], t.Callable[P, R]]c                B   ^  SU 4S jjnUc  ST < S3nSU S3Ul         U$ )a[  Create a decorator that passes a key from
:attr:`click.Context.meta` as the first argument to the decorated
function.

:param key: Key in ``Context.meta`` to pass.
:param doc_description: Description of the object being passed,
    inserted into the decorator's docstring. Defaults to "the 'key'
    key from Context.meta".

.. versionadded:: 8.0
c                 D   >^  SSSSS[         4U U4S jjn[        UT 5      $ )Nr   r#   r   r$   r   c                  d   > [        5       nUR                  T   nUR                  " TU/U Q70 UD6$ r   )r   metar6   )r   r   r7   r)   r   r>   s       r   r   2pass_meta_key.<locals>.decorator.<locals>.new_funcs   s3    %'C((3-C::a6t6v66r!   )r   r   )r   r   r>   s   ` r   r9    pass_meta_key.<locals>.decoratorr   s1    	7H 	7
 	7q 	7 	7
 h**r!   zthe z$ key from :attr:`click.Context.meta`zDecorator that passes z1 as the first argument to the decorated function.r   z't.Callable[te.Concatenate[t.Any, P], R]r   r   )__doc__)r>   r=   r9   s   `  r   pass_meta_keyrG   c   sC    +  'KL ! 1 2& 	&  r!   CmdTypenamec                     g r   r;   rI   s    r   commandrL      s    ,/r!   clsattrsc                     g r   r;   rI   rM   rN   s      r   rL   rL          
 +.r!   c                    g r   r;   rP   s      r   rL   rL           +.r!   c                     g r   r;   rP   s      r   rL   rL      s     +.r!   c                   ^ ^^ Sn[        T 5      (       a  T nSm Tb   S5       eT(       a   S5       eTc0  [        R                  " [        R                  [           [
        5      mS[        S[        4UUU 4S jjnUb  U" U5      $ U$ )a]  Creates a new :class:`Command` and uses the decorated function as
callback.  This will also automatically attach all decorated
:func:`option`\s and :func:`argument`\s as parameters to the command.

The name of the command defaults to the name of the function with
underscores replaced by dashes.  If you want to change that, you can
pass the intended name as the first argument.

All keyword arguments are forwarded to the underlying command class.
For the ``params`` argument, any decorated params are appended to
the end of the list.

Once decorated the function turns into a :class:`Command` instance
that can be invoked as a command line utility or be attached to a
command :class:`Group`.

:param name: the name of the command.  This defaults to the function
             name with underscores replaced by dashes.
:param cls: the command class to instantiate.  This defaults to
            :class:`Command`.

.. versionchanged:: 8.1
    This decorator can be applied without parentheses.

.. versionchanged:: 8.1
    The ``params`` argument can be used. Decorated params are
    appended to the end of the list.
Nz4Use 'command(cls=cls)(callable)' to specify a class.z7Use 'command(**kwargs)(callable)' to provide arguments.r   r   c                 "  > [        U [        5      (       a  [        S5      eTR                  SS 5      nUb  UO/ n U R                  nU ?UR                  [        U5      5        TR                  S5      c  U R                  TS'   [        R                  (       a  Tc   e[        T5      (       a   eT" ST=(       d*    U R                  R                  5       R                  SS5      U US.TD6nU R                  Ul	        U$ ! [         a     Nf = f)Nz5Attempted to convert a callback into a command twice.paramshelp_-)rI   callbackrW   r;   )
isinstancer   	TypeErrorpop__click_params__extendreversedAttributeErrorgetrF   tTYPE_CHECKINGcallabler5   lowerreplace)r   attr_paramsrW   decorator_paramscmdrN   rM   rI   s        r   r9   command.<locals>.decorator   s   a!!STTii$/ + 7R	6 11 "MM(#34599V$IIE&M???"?~~%% 
=))+33C=
 	
 ii
)  		s   D 
DD)rf   rd   castTyperH   r   _AnyCallable)rI   rM   rN   funcr9   s   ```  r   rL   rL      s    D ;?D~~{RRR{SSSy
{ffQVVG_g.\ g  > r!   GrpTypec                     g r   r;   rK   s    r   grouprs      s    (+r!   c                     g r   r;   rP   s      r   rs   rs     rQ   r!   c                    g r   r;   rP   s      r   rs   rs     rS   r!   c                     g r   r;   rP   s      r   rs   rs     s     ),r!   c                     Uc0  [         R                  " [         R                  [           [        5      n[        U 5      (       a  [        SSU0UD6" U 5      $ [        X40 UD6$ )zCreates a new :class:`Group` with a function as callback.  This
works otherwise the same as :func:`command` just that the `cls`
parameter is set to :class:`Group`.

.. versionchanged:: 8.1
    This decorator can be applied without parentheses.
rM   r;   )rd   rm   rn   rq   r
   rf   rL   rP   s      r   rs   rs     sR     {ffQVVG_e,~~(3(%(..4&&&r!   paramc                     [        U [        5      (       a  U R                  R                  U5        g [	        U S5      (       d  / U l        U R
                  R                  U5        g )Nr_   )r\   r   rW   appendhasattrr_   )r   rx   s     r   _param_memor|   1  sI    !W	q,--!#A	!!%(r!   )rM   param_declsc                 J   ^ ^^ T c  [         m S[        S[        4UU U4S jjnU$ )a  Attaches an argument to the command.  All positional arguments are
passed as parameter declarations to :class:`Argument`; all keyword
arguments are forwarded unchanged (except ``cls``).
This is equivalent to creating an :class:`Argument` instance manually
and attaching it to the :attr:`Command.params` list.

For the default argument class, refer to :class:`Argument` and
:class:`Parameter` for descriptions of parameters.

:param cls: the argument class to instantiate.  This defaults to
            :class:`Argument`.
:param param_decls: Passed as positional arguments to the constructor of
    ``cls``.
:param attrs: Passed as keyword arguments to the constructor of ``cls``.
r   r   c                 .   > [        U T" T40 TD65        U $ r   r|   r   rN   rM   r}   s    r   r9   argument.<locals>.decoratorP      As;0%01r!   )r   r   rM   r}   rN   r9   s   ``` r   argumentr   ;  s/    $ {R B   r!   c                 J   ^ ^^ T c  [         m S[        S[        4UU U4S jjnU$ )a  Attaches an option to the command.  All positional arguments are
passed as parameter declarations to :class:`Option`; all keyword
arguments are forwarded unchanged (except ``cls``).
This is equivalent to creating an :class:`Option` instance manually
and attaching it to the :attr:`Command.params` list.

For the default option class, refer to :class:`Option` and
:class:`Parameter` for descriptions of parameters.

:param cls: the option class to instantiate.  This defaults to
            :class:`Option`.
:param param_decls: Passed as positional arguments to the constructor of
    ``cls``.
:param attrs: Passed as keyword arguments to the constructor of ``cls``.
r   r   c                 .   > [        U T" T40 TD65        U $ r   r   r   s    r   r9   option.<locals>.decoratorl  r   r!   )r   r   r   s   ``` r   optionr   W  s/    $ {R B   r!   r   c                     S[         S[        S[        SS4S jnU (       d  Sn UR                  SS	5        UR                  S
U5        UR                  SS5        UR                  SS5        UR                  SS5        [	        U 0 UD6$ )a  Add a ``--yes`` option which shows a prompt before continuing if
not passed. If the prompt is declined, the program will exit.

:param param_decls: One or more option names. Defaults to the single
    value ``"--yes"``.
:param kwargs: Extra arguments are passed to :func:`option`.
r7   rx   valuer   Nc                 4    U(       d  U R                  5         g g r   )abortr7   rx   r   s      r   r[   %confirmation_option.<locals>.callback|  s    IIK r!   )z--yesis_flagTr[   expose_valueFpromptzDo you want to continue?rX   z%Confirm the action without prompting.)r	   r   bool
setdefaultr   )r}   r   r[   s      r   confirmation_optionr   s  s    g i     
i&
j(+
ne,
h :;
fEF;)&))r!   c                      U (       d  Sn UR                  SS5        UR                  SS5        UR                  SS5        [        U 0 UD6$ )a  Add a ``--password`` option which prompts for a password, hiding
input and asking to enter the value again for confirmation.

:param param_decls: One or more option names. Defaults to the single
    value ``"--password"``.
:param kwargs: Extra arguments are passed to :func:`option`.
)z
--passwordr   Tconfirmation_prompt
hide_input)r   r   r}   r   s     r   password_optionr     sM     %
h%
+T2
lD);)&))r!   )package_name	prog_namemessageversionr   r   r   c                >  ^ ^^^ Tc  [        S5      mT c  Tc~  [        R                  " 5       nUb  UR                  OSnUb  UR                  OSnAUbC  UR                  S5      mTS:X  a  UR                  S5      mT(       a  TR                  S5      S   mS[        S	[        S
[        SS4UUUU 4S jjn	U(       d  SnUR                  SS5        UR                  SS5        UR                  SS5        UR                  S[        S5      5        XS'   [        U0 UD6$ )aK  Add a ``--version`` option which immediately prints the version
number and exits the program.

If ``version`` is not provided, Click will try to detect it using
:func:`importlib.metadata.version` to get the version for the
``package_name``. On Python < 3.8, the ``importlib_metadata``
backport must be installed.

If ``package_name`` is not provided, Click will try to detect it by
inspecting the stack frames. This will be used to detect the
version, so it must match the name of the installed package.

:param version: The version number to show. If not provided, Click
    will try to detect it.
:param param_decls: One or more option names. Defaults to the single
    value ``"--version"``.
:param package_name: The package name to detect the version from. If
    not provided, Click will try to detect it.
:param prog_name: The name of the CLI to show in the message. If not
    provided, it will be detected from the command.
:param message: The message to show. The values ``%(prog)s``,
    ``%(package)s``, and ``%(version)s`` are available. Defaults to
    ``"%(prog)s, version %(version)s"``.
:param kwargs: Extra arguments are passed to :func:`option`.
:raise RuntimeError: ``version`` could not be detected.

.. versionchanged:: 8.0
    Add the ``package_name`` parameter, and the ``%(package)s``
    value for messages.

.. versionchanged:: 8.0
    Use :mod:`importlib.metadata` instead of ``pkg_resources``. The
    version is detected based on the package name, not the entry
    point name. The Python package name must match the installed
    package name, or be passed with ``package_name=``.
Nz%(prog)s, version %(version)sr5   __main____package__.r   r7   rx   r   r   c                   > U(       a  U R                   (       a  g Tc  U R                  5       R                  mTc  Tb   SSKJn   UR                  T5      mTc  [        ST< S35      e[        TTTTS.-  U R                  S9  U R                  5         g ! [
         a    SS Kn Naf = f! UR                   a    [        T< S35      S ef = f)Nr   )metadataz6 is not installed. Try passing 'package_name' instead.z$Could not determine the version for z automatically.)progpackager   color)resilient_parsing	find_root	info_name	importlibr   ImportErrorimportlib_metadatar   PackageNotFoundErrorr4   r   r   exit)r7   rx   r   r   r   r   r   r   s       r   r[    version_option.<locals>.callback  s    --
 11I?|76.
"**<8 ?6|6FoV  	y\gVV))	
 	
+  656 00 "#& '/ / s   B B* B'&B'*!C)z	--versionr   Tr   Fis_eagerrX   zShow the version and exit.r[   )rY   inspectcurrentframef_back	f_globalsrc   	partitionr	   r   r   r   r   )
r   r   r   r   r}   r   framer   r   r[   s
   ````      r   version_optionr     s&   X 34</$$&!&!2(.(:F$$	  $==4Lz)(}}];+55c:1=$g $i $ $ $ $L $
i&
ne,
j$'
fa <=>!:;)&))r!   c            	          ^  \ rS rSrSr SS\R                  \R                  \      S\R                  SS4U 4S jjjr
\S\S	\S
\SS4S j5       rSrU =r$ )
HelpOptioni  z_Pre-configured ``--help`` option which immediately prints the help page
and exits the program.
Nr}   r   r   c                   > U(       d  SnUR                  SS5        UR                  SS5        UR                  SS5        UR                  S[        S5      5        UR                  S	U R                  5        [        TU ]  " U40 UD6  g )
N)z--helpr   Tr   Fr   rX   zShow this message and exit.r[   )r   rY   	show_helpsuper__init__)selfr}   r   	__class__s      r   r   HelpOption.__init__  sy    
 %K)T*.%0*d+&!$A"BC*dnn5//r!   r7   rx   r   c                     U(       aE  U R                   (       d3  [        U R                  5       U R                  S9  U R	                  5         ggg)z<Callback that print the help page on ``<stdout>`` and exits.r   N)r   r   get_helpr   r   r   s      r   r   HelpOption.show_help"  s3     ..syy1HHJ /5r!   r;   r   )r5   
__module____qualname____firstlineno__rF   rd   OptionalSequencestrAnyr   staticmethodr	   r   r   r   __static_attributes____classcell__)r   s   @r   r   r     sx     480ZZ

300 %%0 
	0 0  w y  $  r!   r   c                  D    UR                  S[        5        [        U 0 UD6$ )zDecorator for the pre-configured ``--help`` option defined above.

:param param_decls: One or more option names. Defaults to the single
    value ``"--help"``.
:param kwargs: Extra arguments are passed to :func:`option`.
rM   )r   r   r   r   s     r   help_optionr   *  s$     eZ(;)&))r!   )r   z)t.Callable[te.Concatenate[Context, P], R]r   r   rE   )Fr   ).N)NN)5r   typestypingrd   	functoolsr   r   rY   corer   r   r	   r
   r   r   globalsr   utilsr   re   typing_extensionste	ParamSpecr   TypeVarr   r   Callabler   ro   Unionr   r&   r+   rn   r   r<   r   r   rG   rH   overloadrL   rq   rs   r|   r   r   r   r   r   r   r   r;   r!   r   <module>r      s      $         ( ??"
SAIIcNIIcNzz#quu*%YYt177<#89:'	' ,1..$(.ZZ679KKL.d 59	"#**S/NB ))IW
-  /, /7 /  /
 .
**S/.	
. UU. ZZ'(	. . .
. 
. UU	.
 ZZ'(. . -1.
**S/.&*.<=EE.ZZ'(. . 48'+O
''!**S/</
0O	
AFF7O	$O UUO WWWajj,'9I1J!JKKL	Od ))IU
+  + + +  +
 .
**S/.	
. UU. ZZ'(	. . .
. 
. UU	.
 ZZ'(. . -1,
**S/,&*,<=EE,ZZ%&, , .2'+'
''#|T)
*'	
AFF7O	$' UU' WWUAJJ~qwwug~/FFGGH	'*)1::c155j) )) ) ) <@JJqvvh'78JK%%ZZb: :>JJqvvf~6HIZZb8*c *QUU *qzz2$PR(?S *0*# * *1::rdBh;O *$  $n* %)!%#n*ZZ_n*n* **S/n* zz#	n*
 ZZ_n* een* ZZbn*b :*c *QUU *qzz2$(7K *r!   