+
     h|  c            	       s  a  R5 tC0 t ^ RIt^ RIt^ RIHtHtHtHtHtH	t	H
t
HtHtHtHtHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHtHtHt ^ RIHt ^ R	IHt  ^R
IH t  . R6Ot&]PN                  ! ](4      t). t*] ^ k / t+RRRRRRR/RRRRRRR//t,] ^k ],R,          t-],R,          ;t.t/]]]]]3t0 ! R R]4      t1]]]13t2]
]]3t3R t4R R lt5] ! R R 4      4       t6 ! R! R"4      t ! R# R$4      t7R% R& lt8R' R( lt9R) t:R7R* lt;]4! R4      R8R+ l4       t<R, t=]4! R4      R8R- l4       t>]4! R4      R8R. l4       t?R9R/ R0 llt@R:R1 R2 lltAR;R3 R4 lltBR#   ]! d)     ^ RI"H#t# ]#! R]$R7      t  EL  ]!]%3 d    Rt   ELi ; ii ; i)<    N)ONE_OR_MORE	REMAINDERSUPPRESSZERO_OR_MOREActionArgumentParser_AppendAction_AppendConstAction_CountAction_HelpAction_StoreConstAction_VersionAction)defaultdict)total_ordering)starmap)Template)AnyDictList)Optional)Union)__version__)get_versionz..)ZrootZrelative_toZUNKNOWNfilebashZ_shtab_compgen_fileszshZ_filestcshZf	directoryZ_shtab_compgen_dirsz	_files -/Zdc                   s    ] tR t^6tRtR# )_ShtabPrintCompletionAction N)__name__
__module____qualname____firstlineno____static_attributes__r       3/usr/lib/python3.14/site-packages/shtab/__init__.pyr   r   6   s    r$   r   c                 s   a  V 3R  lpV# )c                 sZ   < S\         9  d   \         P                  S4       V \        S&   V # N)SUPPORTED_SHELLSappend_SUPPORTED_COMPLETERS)Zfuncshells   &r%   wrapperZmark_completer.<locals>.wrapper?   s*    ((##E*'+e$r$   r   )r*   r+   s   f r%   mark_completerr,   >   s     Nr$   c                s$    V ^8  d   QhR\         /# )   r*   strformat   "r%   __annotate__r3   H   s     M M Mr$   c                 s     \         V ,          #   \         d(    R P                  \        4      p\	        RT  RT 24      hi ; i),zshell (z) must be in )r)   ZKeyErrorjoinr'   ZNotImplementedError)r*   Z	supported   & r%   get_completerr7   H   sK    M$U++ MHH-.	!GE7-	{"KLLMs	    2Ac                   s   a  ] tR t^Pt o RtRV 3R lR lltV 3R lR ltV 3R lR ltV 3R lR	 ltV 3R
 lR lt	Rt
V tR# )Choicezv
Placeholder to mark a special completion `<type>`.

>>> ArgumentParser.add_argument(..., choices=[Choice("<type>")])
c                s*   < V ^8  d   QhRS[ RS[RR/# )r-   choice_typerequiredreturnN)r/   boolr1   __classdict__   "r%   r3   Choice.__annotate__W   s"        C  4  D  r$   c                s    W n         Wn        R# )z{
See below for parameters.

choice_type  : internal `type` name
required  : controls result of comparison to empty strings
Nr:   type)selfr9   r:      &&&r%   __init__ZChoice.__init__W   s     !	r$   c                s    < V ^8  d   QhRS[ /# )r-   r;   r.   r=   r?   r%   r3   r@   a   s     : :# :r$   c                s\    V P                   V P                  '       d	   R ,           # R,           # ) ?)rB   r:   )rC      &r%   __repr__ZChoice.__repr__a   s!    yy$---B99S99r$   c                &   < V ^8  d   QhRS[ RS[/# r-   otherr;   )objectZintr=   r?   r%   r3   r@   d   s      V  r$   c                sB    V P                   '       d   V'       d   ^ # R# ^ # )r    i)r:   rC   rL      &&r%   __cmp__ZChoice.__cmp__d   s    ===1%2%r$   c                rJ   rK   rM   r<   r=   r?   r%   r3   r@   i   s     ( (F (t (r$   c                s*    V P                  V4      ^ 8H  # r    rP   rN   rO   r%   __eq__ZChoice.__eq__i   s    ||E"a''r$   c                rJ   rK   rQ   r=   r?   r%   r3   r@   l   s     ' 'F 't 'r$   c                s*    V P                  V4      ^ 8  # rR   rS   rN   rO   r%   __lt__ZChoice.__lt__l   s    ||E"Q&&r$   rA   N)F)r   r    r!   r"   __doc__rE   rI   rP   rT   rU   r#   __classdictcell__)r>      @r%   r8   r8   P   s<     
   : : 
( (' 'r$   r8   c                   sB    ] tR t^ptRt]! R4      .t]! R4      .;ttRt	R# )r   zCExample: `ArgumentParser.add_argument(..., choices=Optional.FILE)`.r   r   r   N
r   r    r!   r"   rV   r8   FILEDIR	DIRECTORYr#   r   r$   r%   r   r   p   s#    M6NDk*++C)r$   r   c                   sF    ] tR t^wtRt]! RR4      .t]! RR4      .;ttRt	R# )RequiredzCExample: `ArgumentParser.add_argument(..., choices=Required.FILE)`.r   Tr   r   NrY   r   r$   r%   r]   r]   w   s(    M64 !Dk4011C)r$   r]   c                0    V ^8  d   QhR\         R\         /# )r-   r*   r;   r.   r0   r2   r%   r3   r3   ~   s     Q Q# Q# Qr$   c                 sb    \        V \        4      '       d   V P                  VR 4      # W ,          # )rF   )
isinstancedictget)Zopt_completer*   choice_type2fnrD   r%   complete2patternrc   ~   s3    ,-- UB' Q3A3OQr$   c                r^   )r-   stringr;   r.   r0   r2   r%   r3   r3      s     & &C &C &r$   c                s2    \         P                  ! RRV 4      # )z0Replace non-word chars [\W] with underscores [_]z\W_)resubrd   rH   r%   wordifyri      s    66%f%%r$   c                s   V P                  4        Uu0 uF)  p\        V P                  VP                  ,          4      kK+  	  ppV P                  P	                  4        UUu0 uF  w  r4\        V4      V9   g   K  VkK  	  upp# u upi u uppi )z?Get all the publicly-visible subcommands for a given subparser.)Z_get_subactionsZidchoicesdestitems)rg   iZpublic_parserskvs   &    r%   get_public_subcommandsrp      so    7:7J7J7LM7L!bQVV,-7LNM++++-I-$!A.1HAA-II NIs   /B!B	:B	c                s   aaa \         P                  4        UUu/ uF  w  r4W4R,          bK  	  uppoV'       d   SP                  V4       R oVVV3R loS! W4      # u uppi )a  
Recursive subcommand parser traversal, returning lists of information on
commands (formatted for output to the completions script).
printing bash helper syntax.

Returns:
  subparsers  : list of subparsers for each parser
  option_strings  : list of options strings for each parser
  compgens  : list of shtab `.complete` functions corresponding to actions
  choices  : list of choices corresponding to actions
  nargs  : list of number of args allowed for each action (if not 0 or 1)
r   c                sD    \        R V P                  4        4       . 4      # )z0Flattened list of all `parser`'s option strings.c              3   sf   "   T F'  qP                   \        8w  g   K  VP                  x  K)  	  R # 5ir&   )helpr   option_strings).0optr6   r%   	<genexpr>Z@get_bash_commands.<locals>.get_option_strings.<locals>.<genexpr>   s%     b+ICXXYaMaS+Is   11)Zsum_get_optional_actions)parserrH   r%   get_option_stringsZ-get_bash_commands.<locals>.get_option_strings   s#    b6+G+G+Ib
 	
r$   c                sL  < . p. p. p. p. p. p. p. p	. p
. p. p\        V P                  4       4       EF  w  rVP                  \        8X  d   K  \	        VR4      '       d1   \        VP                  RS!4      pVP                  V RV RV 24       VP                  '       Ed"   \        P                  RV R\        VP                  4       24       . pVP                   EF  p\        V\        4      '       d_   \        P                  RVP                   RV RVP                   24       VP                  V RV RS!VP                  ,           24       Kx  \        VP                  \         4      '       d   \        P                  RV4       \#        V4      pVV9   d   VP                  \%        V4      4       VP                  \%        V4      4       S#! VP                  V,          V R	\'        V4       24      w  pppppVP)                  V4       VP)                  V4       V	P)                  V4       V
P)                  V4       VP)                  V4       EKz  \        P                  R
V4       EK  VP                  \%        V4      4       EK  	  V'       d,   RP+                  V4      pVP                  V RV RV R24       VP,                  R9  g   EK  VP                  V RV RVP,                   24       EK  	  V'       dD   RP+                  V4      pVP                  V RV R24       \        P                  RV RV 24       RP+                  S"! V 4      4      pVP                  V RV R24       V P/                  4        EF  pV\        8X  d   K  VP0                   EF  p\	        VR4      '       d:   \        VP                  RS!4      pVP                  V R	\'        V4       RV 24       VP                  '       d   . pVP                   F  p\        V\        4      '       dj   \        P                  RVP                   RV RVP                   24       S!VP                  ,          pVP                  V R	\'        V4       RV 24       K  VP                  \%        V4      4       K  	  V'       d5   RP+                  V4      p VP                  V R	\'        V4       RV  R24       VP,                  f   EK\  VP,                  ^8w  g   EKp  VP                  V R	\'        V4       RVP,                   24       EK  	  EK  	  VP)                  V4       VP)                  V4       VP)                  V	4       VP)                  V
4       VP)                  V4       W#WEV3# )z9recurse through subparsers, appending to the return listscompleter   Z_pos_z	_COMPGEN=choices::zChoice.subcommand:%sre   skip:subcommand:%s' 'z_choices=('z')z_nargs=z_subparsers=('zsubcommands:z_option_strings=(')NZ1rG   )	enumerate_get_positional_actionsrq   r   hasattrrc   ry   r(   rj   logdebugsortedr_   r8   rB   rk   r`   rp   r/   ri   extendr5   nargsrv   rr   )$rw   prefix
subparsersrr   compgensrj   r   Zsub_subparsersZsub_option_stringsZsub_compgensZsub_choicesZ	sub_nargsZdiscovered_subparsersrm   
positionalZcomp_patternZthis_positional_choicesZchoicepublic_cmdsZnew_subparsersZnew_option_stringsZnew_compgensZnew_choicesZ	new_nargschoices_strZsubparsers_strZoptions_strings_stroptionaloption_stringZcomp_pattern_strZthis_optional_choicesZfunc_strZthis_choices_strrb   rx   recurses$   &&                               r%   r   Z"get_bash_commands.<locals>.recurse   s,   
 	 !#&v'E'E'GHMA(*z:../
0C0CV^\6(%s)L> JK!!!		HVHAfZ5G5G.H-IJK*,'(00F!&&11 		GFKK=&:??BS"TU 6(%s)NSYS^S^D_C`(ab#J$6$6==		/6:&<Z&H![0188VE3::3v;G !( * 2 26 :#)(!GFO+< =! . 2 , + )
 +11.A.556HI(//='..{;%,,Y7II&:FC 066s6{CA 1D +"'**-D"EKNNfXU1#[R#PQ '77xuQCwz7G7G6HIJm Ip !"ZZ(=>N~6FbIJIIVHA.C-DEF $jj);F)CD(:;N:OrRS446H8#!)!8!88Z00'78I8I6Sa'b$OO!(!GM$:#;9EUDVWY ###,.)"*"2"2 &ff55II}AfXQx}}o&VW'5fkk'BH$OO#)(!GM,B+C9XJ WY 288VE #3 -+0::6K+L(%ha(>'?{K[J\\^_a >>-(..A2ELLF81W]-C,DGHNNK[!\]; "9	 7H 	.)01%{#Y8eCCr$   )CHOICE_FUNCTIONSrl   update)Zroot_parserroot_prefixchoice_functionsrn   ro   rb   rx   r   s   &&&  @@@r%   get_bash_commandsr      s`     0@/E/E/GH/Gtqa6l/GHN./
{Dz ;,,Q Is   Ac                s   \        RT;'       g    V P                   24      p\        WVR7      w  rErgp\        R4      P	                  RP                  V4      RP                  V4      RP                  V4      RP                  V4      RP                  V4      V'       d   RV,           R,           MRVV P                  R7      # )	zK
Returns bash syntax autocompletion script.

See `complete` for arguments.
_shtab_)r   a  # AUTOMATICALLY GENERATED by `shtab`

${subparsers}

${option_strings}

${compgens}

${choices}

${nargs}

${preamble}
# $1=COMP_WORDS[1]
_shtab_compgen_files() {
  compgen -f -- $1  # files
}

# $1=COMP_WORDS[1]
_shtab_compgen_dirs() {
  compgen -d -- $1  # recurse into subdirs
}

# $1=COMP_WORDS[1]
_shtab_replace_nonword() {
  echo "${1//[^[:word:]]/_}"
}

# set default values (called for the initial parser & any subparsers)
_set_parser_defaults() {
  local subparsers_var="${prefix}_subparsers[@]"
  sub_parsers=${!subparsers_var-}

  local current_option_strings_var="${prefix}_option_strings[@]"
  current_option_strings=${!current_option_strings_var}

  completed_positional_actions=0

  _set_new_action "pos_${completed_positional_actions}" true
}

# $1=action identifier
# $2=positional action (bool)
# set all identifiers for an action's parameters
_set_new_action() {
  current_action="${prefix}_$(_shtab_replace_nonword $1)"

  local current_action_compgen_var=${current_action}_COMPGEN
  current_action_compgen="${!current_action_compgen_var-}"

  local current_action_choices_var="${current_action}_choices[@]"
  current_action_choices="${!current_action_choices_var-}"

  local current_action_nargs_var="${current_action}_nargs"
  if [ -n "${!current_action_nargs_var-}" ]; then
    current_action_nargs="${!current_action_nargs_var}"
  else
    current_action_nargs=1
  fi

  current_action_args_start_index=$(( $word_index + 1 - $pos_only ))

  current_action_is_positional=$2
}

# Notes:
# `COMPREPLY`: what will be rendered after completion is triggered
# `completing_word`: currently typed word to generate completions for
# `${!var}`: evaluates the content of `var` and expand its content as a variable
#     hello="world"
#     x="hello"
#     ${!x} -> ${hello} -> "world"
${root_prefix}() {
  local completing_word="${COMP_WORDS[COMP_CWORD]}"
  local previous_word="${COMP_WORDS[COMP_CWORD-1]}"
  local completed_positional_actions
  local current_action
  local current_action_args_start_index
  local current_action_choices
  local current_action_compgen
  local current_action_is_positional
  local current_action_nargs
  local current_option_strings
  local sub_parsers
  COMPREPLY=()

  local prefix=${root_prefix}
  local word_index=0
  local pos_only=0 # "--" delimeter not encountered yet
  _set_parser_defaults
  word_index=1

  # determine what arguments are appropriate for the current state
  # of the arg parser
  while [ $word_index -ne $COMP_CWORD ]; do
    local this_word="${COMP_WORDS[$word_index]}"

    if [[ $pos_only = 1 || " $this_word " != " -- " ]]; then
      if [[ -n $sub_parsers && " ${sub_parsers[@]} " == *" ${this_word} "* ]]; then
        # valid subcommand: add it to the prefix & reset the current action
        prefix="${prefix}_$(_shtab_replace_nonword $this_word)"
        _set_parser_defaults
      fi

      if [[ " ${current_option_strings[@]} " == *" ${this_word} "* ]]; then
        # a new action should be acquired (due to recognised option string or
        # no more input expected from current action);
        # the next positional action can fill in here
        _set_new_action $this_word false
      fi

      if [[ "$current_action_nargs" != "*" ]] && \
         [[ "$current_action_nargs" != "+" ]] && \
         [[ "$current_action_nargs" != *"..." ]] && \
         (( $word_index + 1 - $current_action_args_start_index - $pos_only >= \
            $current_action_nargs )); then
        $current_action_is_positional && let "completed_positional_actions += 1"
        _set_new_action "pos_${completed_positional_actions}" true
      fi
    else
      pos_only=1 # "--" delimeter encountered
    fi

    let "word_index+=1"
  done

  # Generate the completions

  if [[ $pos_only = 0 && "${completing_word}" == -* ]]; then
    # optional argument started: use option strings
    COMPREPLY=( $(compgen -W "${current_option_strings[*]}" -- "${completing_word}") )
  elif [[ "${previous_word}" == ">" || "${previous_word}" == ">>" ||
          "${previous_word}" =~ ^[12]">" || "${previous_word}" =~ ^[12]">>" ]]; then
    # handle redirection operators
    COMPREPLY=( $(compgen -f -- "${completing_word}") )
  else
    # use choices & compgen
    local IFS=$'\n' # items may contain spaces, so delimit using newline
    COMPREPLY=( $([ -n "${current_action_compgen}" ] \
                  && "${current_action_compgen}" "${completing_word}") )
    unset IFS
    COMPREPLY+=( $(compgen -W "${current_action_choices[*]}" -- "${completing_word}") )
  fi

  return 0
}

complete -o filenames -F ${root_prefix} ${prog}

# Custom Preamble

# End Custom Preamble
rF   )r   rr   r   rj   r   preambler   prog)ri   r   r   r   safe_substituter5   )	rw   r   r   r   r   rr   r   rj   r   s	   &&&&     r%   complete_bashr   &  s     GK$>$>6;;#?@AK;L.><@8J5  T3 T4h 5DO99Z(yy08$		'"ii19 *H4-.?A[[ 5D 
5i^r$   c                 sD    \         P                  ! R R\        V 4      4      # )z([^\w\s.,()-])z\\\1)rf   rg   r/   rh   rH   r%   
escape_zshr     s    66#Wc&k::r$   c                s  aaaaaaaa V P                   o\        RT;'       g    S 24      p\        P                  4        UUu/ uF  w  rEWER,          bK  	  uppoV'       d   SP	                  V4       R oR oVVV3R loV3R loTRSRV P                  4        Uu. uF!  qfP                  \        8w  g   K  S! W`4      NK#  	  upV P                  4        Uu. uF2  pVP                  \        8w  g   K  VP                  e   K*  S! W`4      NK4  	  up,           R	V P                  ;'       g    R
P                  4       P                  R4      ^ ,          R. R. //oRVVVV3R lloS! W4       \        SP                  4       4       UUu/ uF9  w  rx\        VP                  R. 4      4      ^8  g   K'  Wq8w  g   K/  VR,          VbK;  	  uppSV,          R&   SP                  4        UUu/ uF   w  rxVP                  R4      '       g   K  WxbK"  	  p	ppV	P!                  VSV,          4       \"        P%                  RV\        S4      4       R p
R pV3R lpV'       d   RVP'                  4        R2MR
p\)        R4      P+                  SVRP-                  \/        V
\        V	P                  4       4      4      4      RP-                  \/        V\        V	P                  4       4      4      4      RP-                  \/        V\        SP                  4       4      4      4      VR7      # u uppi u upi u upi u uppi u uppi )zJ
Returns zsh syntax autocompletion script.

See `complete` for arguments.
r   r   c                 sX    \        V \        4      ;'       g    V P                  \        8H  # r&   )r_   
OPTION_ENDr   r   rt   rH   r%   
is_opt_endZ complete_zsh.<locals>.is_opt_end  s     #z*DDcii9.DDr$   c                 s"    \        V \        4      # r&   )r_   OPTION_MULTIr   rH   r%   is_opt_multilineZ&complete_zsh.<locals>.is_opt_multiline  s    #|,,r$   c                 s  < VP                  4       P                  p\        V \        4      '       d   R MRP	                  S! V 4      '       d   RMS! V 4      '       d   RMR\        V P                  4      ^8  d+   RP	                  RP                  V P                  4      4      M)RP	                  RP                  V P                  4      4      \        V P                  '       d	   V! V 4      MR4      V P                  \        V R4      '       d   \        V P                  R	S4      MV P                  '       d   \        V P                  ^ ,          \        4      '       d%   SV P                  ^ ,          P                   ,          M9R
P	                  RP                  \#        \$        V P                  4      4      4      MRR7      P'                  RR4      # )z{nargs}{options}"[{help}]"z+{nargs}{options}"[{help}]:{dest}:{pattern}"z	"(- : *)"z"*"rF   z{{{}}}r4   z"{}"ry   r   ({}) )r   optionsrq   rk   patternz"")_get_formatter_expand_helpr_   FLAG_OPTIONr1   lenrr   r5   r   rq   rk   r   rc   ry   rj   r8   rB   mapr/   Zreplace)rt   rw   get_helprb   r   r   s   && r%   format_optionalZ%complete_zsh.<locals>.format_optional  s\   ((*771;2 2-#PRXRX&0oo{DTUXDYDY5_aJMcN`N`JaK#2D2D)EF"(--8J8J0K"LrBXXQXR% R%(unM EHKKK 9C3;;q>SY8Z8ZA 3 34sxxC(=>?UW SY 
S gdB	!r$   c                 s  < VP                  4       P                  pR P                  \        R\        R\
        R/P                  V P                  R4      \        V P                  '       d	   V! V 4      MV P                  P                  4       P                  R4      ^ ,          4      \        V R4      '       d   \        V P                  RS4      R
7      # V P                   '       d   \#        V P                   ^ ,          \$        4      '       d*   SV P                   ^ ,          P&                  ,          R
7      # RP                  R	P)                  \+        \,        V P                   4      4      4       R
7      # RR
7      # )z"{nargs}:{help}:{pattern}"z(*)z(*):z(-)*rF   r   ry   r   r   r   )r   rq   r   )r   r   r1   r   r   r   ra   r   r   rq   rk   stripsplitr   rc   ry   rj   r_   r8   rB   r5   r   r/   )rt   rw   r   rb   s   && r%   format_positionalZ'complete_zsh.<locals>.format_positional  s<   ((*77+22|VYOSSTWT]T]_abchhhXc]CHHKKMSSTXYZ[\]MTZN! N!$S\\5.I 3 
 	
 AD 5?s{{1~v4V4V^CKKN//0 3 
 	
 ]]388CS[[$9:; 3 
 	
 RT 3 
 	
r$   cmd	argumentsrq   rF   r   commandspathsc                 sf  <a  T;'       g    . p. pS P                  4        EF  pVP                  \        8X  g   VP                  '       g   K-  VP                  '       d!   \	        VP                  \
        4      '       g)   SV,          R ,          P                  S! VS 4      4       K  \        P                  RV R\        VP                  4       24       \        V4      pVP                  P                  4        EF  w  rgWe9  d   \        P                  RV4       K$  \        P                  RV4       VP                  4        Uu. uF#  pVP                  \        8w  g   K  S! VS 4      NK%  	  p	pV	P                  VV 3R lVP                  4        4       4       VP                  4       p
V
P                  pRV
n        T
P!                  VP"                  ;'       g    R4      P%                  4       pWn        V R\'        V4       2pR	VR
VP)                  R4      ^ ,          R V	R. VOVN/;pSV&   S! W}. VOVN4      pV Uu/ uF$  pVS9   g   K  SV,          R	,          SV,          bK&  	  upVR&   VP                  . VOVN4       \        P                  RWn4       EK  	  EK  	  V# u upi u upi )r   rz   r{   r}   r|   c              3   s   <"   T FG  p\        VP                  \        4      '       d   K%  VP                  \        8w  g   K<  S! VS4      x  KI  	  R # 5ir&   )r_   rj   r`   rq   r   )rs   rt   r   rw   s   & r%   ru   Z0complete_zsh.<locals>.recurse.<locals>.<genexpr>-  sE      %V#FC)#++t< 7@CH@T 7)#v66#Fs   "AAAi rF   re   r   rq   r   r   r   subcommands:%s:%s)r   rq   r   rj   r_   r`   r(   r   r   r   rp   rl   rv   r   r   Z_widthZ_format_textdescriptionr   ri   r   )rw   r   r   Zsubcmdsrg   r   r   	subparserrt   r   Z	formatterZbackup_widthZdescZnew_prefr   Znew_subcmdsZprefall_commandsr   r   r   s   f&&              r%   r   Zcomplete_zsh.<locals>.recurse  s   113Cxx8#3;;;;;;jd&C&CV$[1889J3PV9WX		HVHAfS[[.A-BCD4S9&)kk&7&7&9NC-		"6< IIos3 AJ@_@_@a!1@a88x/ 5V4@a  !1
 $$ %V#,#D#D#F%V V !* 8 8 :I#,#3#3L'.I$$11)2G2G2M2M2NTTVD'3$"(73<.9HsFDJJt,<Q,?i5#80 0Gl84 #*)}}}"MK %0+I$/D4<3G FT*51<3EE$/+IGJ' NN#;[#;(#;<II13@C ': 4V 7!1,+Is   J)#J)	J.J.r   c                 s   VR ,          pVR,          pRpRp. p\        VP                  4       4       FZ  w  rqVP                  R4      '       d   TMTpVP                  VP	                  VR ,          \        VR ,          4      V R7      4       K\  	  RP                  ^4      P                  V4      pV  RV  RV  RV  R	V  R
V RV  RV RV  RV R2# )r   r   z<{name}) _arguments -C -s ${prefix}_{name_wordify}_options ;;z"{name}) {prefix}_{name_wordify} ;;)nameZname_wordifyr   z
	zf() {
  local context state line curcontext="$curcontext" one_or_more='(-)*' remainder='(*)'

  if ((${z%_options[(I)${(q)one_or_more}*]} + ${z>_options[(I)${(q)remainder}*]} == 0)); then  # noqa: E501
    z_options+=(': :z_commands' '*::: :->z')
  fi
  _arguments -C -s $z_options

  case $state in
    ze)
      words=($line[1] "${words[@]}")
      (( CURRENT += 1 ))
      curcontext="${curcontext%:*:*}:z+-$line[1]:"
      case $line[1] in
        z
      esac
  esac
}
)r   rl   ra   r(   r1   ri   Z
expandtabsr5   )	r   r   r   r   Zcase_fmt_on_no_subZcase_fmt_on_subZcasesre   Zfmts	   &&       r%   command_caseZ"complete_zsh.<locals>.command_caseP  s   u~:&_B !12JA%,[[%<%</BTCLL

WWU^=T"(  *+ 3
 !!!$))%0  	 (;F8 DHOF8#7v >H  
F ( )/x 0		  	r$   c                 sB    R P                  VR,          4      pV  RV R2# )z
  r   z_options=(
  z
)
)r5   )r   r   r   s   && r%   command_optionZ$complete_zsh.<locals>.command_options  s3    KK 45	 	+  	r$   c                 s   < R P                  S.VR,          O4      pRP                  R \        VR,          P                  4       4       4       4      pRV  RV RV R2# )	r   r   z
    c              3   sj   "   T F)  w  rR \        V4       R\        VR,          4       R 2x  K+  	  R# 5i)Z"r{   rq   N)r   )rs   r   rt   s   &  r%   ru   Z5complete_zsh.<locals>.command_list.<locals>.<genexpr>}  s8      !V1TXS $%Z_$5Qz#f+7N6Oq!Q1Ts   13r   r   z&_commands() {
  local _commands=(
    z
  )
  _describe 'z commands' _commands
})r5   r   rl   )r   r   r   r   r   s   &&  r%   command_listZ"complete_zsh.<locals>.command_list{  s|    xx1 012== !V17
8K8Q8Q8S1T!V V 	J V  	r$   z# Custom Preamble
z

# End Custom Preamble
aj  #compdef ${prog}

# AUTOMATICALLY GENERATED by `shtab`

${command_commands}

${command_options}

${command_cases}
${preamble}

typeset -A opt_args

if [[ $zsh_eval_context[-1] == eval ]]; then
  # eval/source/. command, register function for later
  compdef ${root_prefix} -N ${prog}
else
  # autoload from fpath, call function directly
  ${root_prefix} "$@"
fi
)r   r   Zcommand_casesZcommand_commandsZcommand_optionsr   r&   )r   ri   r   rl   r   rv   rq   r   r   rj   r   r   r   r   r   ra   Z
setdefaultr   r   Zrstripr   r   r5   r   )rw   r   r   r   rn   ro   rt   r   r   Zsubcommandsr   r   r   r   rb   r   r   r   r   r   r   s   &&&&         @@@@@@@@r%   complete_zshr     s&    ;;DGK$7$74#89:K.>.D.D.FG.Fdaa5k.FGN./E-!	
 	4!779'S9CXX=Q -,9'S ?E>\>\>^VE>^sxx8+ 303 3%c2>^VE'E
 V''  EEGEE$K34>GRQRL. .` F   &l&8&8&:;-H;OFw{{7B'(1, 	 171F 	 ;-HLj)  ,113P3OFw{{:7N 	3  P ;[(ABII!;|0DE!F
" 	  
     * _iif[=N=N=P6Q RS7<@Q@Q@S9T#UV		'.&ASASAU:V"WX  +[ HN'SVEn-HPsB   L&L,:L,L16L1L1
$L63L6;L6*L<
L<c                s  aaaaaaa \        4       o\        4       o. o\        \        4      o\        P	                  4        UUu/ uF  w  rEWER,          bK  	  uppoV'       d   SP                  V4       V3R loRVVVVVV3R lloS! V ^ 4       SP	                  4        EF/  w  rg\        V4      ^8X  dE   \        VP                  4       4      ^ ,          pSP                  S! VR\        V4      4      4       KZ  . p	VP	                  4        F  w  rVP                  '       g   K  \        V
^R7       UUu. uF  w  rRV RV R2NK  	  pppR	P                  VP                  4      pR
P                  VRV R2.,           4      pV	P                  RV R24       K  	  RP                  V	4      pSP                  R\        V4       RV R24       EK2  	  S'       d   S'       d   SP                  R4       MRo\!        R4      P#                  V'       d   RV,           R,           MRVV P$                  RP                  \'        S4      4      RP                  \'        S4      4      RP                  S4      R7      # u uppi u uppi )z
Return tcsh syntax autocompletion script.

root_prefix:
  ignored (tcsh has no support for functions)

See `complete` for other arguments.
r   c              3   s,  <"   V P                   '       d:   R P                  \        \        V P                   4      4      pRV RV RV R2x  R# \	        V R4      '       d2   \        V P                  RS4      pV'       d   RV RV RV R2x  R# R# R# 5i)	r   'Z/z/(z)/'ry   r   z/'N)rj   r5   r   r/   r   rc   ry   )argZarg_typeZarg_selZchoice_strsZcomplete_fnrb   s   &&&  r%   get_specialsZ#complete_tcsh.<locals>.get_specials  s     ;;;((3sCKK#89KhZq	K=<<S*%%*3<<PK(1WIQ{m2>>  &s   BBc           	      sJ  < R V,          p\         P                  RW14       V'       d(   \         P                  RVRP                  V4      4       M. pV P                  4        F  p\         P                  RW4P                  4       VP
                  \        8w  g   K:  VP                   F  p\         P                  RW54       VP                  R4      '       d   SP                  VR,          4       M/VP                  R4      '       d   SP                  VR	,          4       SP                  S	! VR
V4      4       K  	  K  	  V P                  4        F  pVP
                  \        8w  g   K  V^,          p\         P                  RW1VP                  4       VS
V,          \        V4      &   V'       d   Kc  \        VP                  \        4      '       g   K  VP                  P!                  4        F+  w  rx\         P                  RW74       S! WW'.,           4       K-  	  K  	  R# )z| z%sParser @ %dz%s- Requires: %sr   z%s| Optional: %sz%s| | %sz--:r-   NN-:i   NNnz%s| Positional #%d: %sz%s| | SubParser: %sN)r   r   r5   rv   rk   rq   r   rr   Z
startswithaddr   r   Ztupler_   rj   r`   rl   )ZcparserZpositional_idxZrequirementsZ
log_prefixr   Zoptional_strr   Zsubcmdr   r   index_choicesoptionals_doubleoptionals_singlerecurse_parserspecialss   &&&      r%   r   Z%complete_tcsh.<locals>.recurse_parser  s   N*
		/:>II(*chh|6LML557HII(*mmD}}($,$;$;LIIj*C#..t44(,,\"-=>%0055(,,\"-=>OOL3$MN %<	 8 "99;J(*!#		2JPZP_P_`EOn-eL.AB#|
:3E3Et(L(L-7-?-?-E-E-G)		"7L&y,QYBYZ .H <r$   Zp)Zstartz[ "$cmd[z]" == "z" ]r~   z && zecho 'r   z( z || false )z || z'p@z@`set cmd=($COMMAND_LINE); z`@'r   z# AUTOMATICALLY GENERATED by `shtab`

${preamble}

complete ${prog} \
        'c/--/(${optionals_double_str})/' \
        'c/-/(${optionals_single_str})/' \
        ${optionals_special_str} \
        'p/*/()/'r   r   rF   r   z \
        )r   r   r   Zoptionals_double_strZoptionals_single_strZoptionals_special_strr&   )r   r   )Zsetr   r`   r   rl   r   r   Zlistvaluesr   r/   rj   r   r5   r(   r   r   r   r   r   )rw   r   r   r   rn   ro   ZidxZndictr   ZnlistZnnZiidxr   Zchecksr   Z
checks_strZ	nlist_strrb   r   r   r   r   r   r   s   &&&&             @@@@@@@r%   complete_tcshr     s3    uuH%M/?/E/E/GH/Gtqa6l/GHN./?[ [< 61#))+
u:?u||~&q)COOLc3s8<= E ;;=;;;LUVX`aLbcLbgaS<LbFc"'**S[["9K!'V}A7N6O-O!PJLL2j\!=> ) E*IOOc#c(+FykQTUV! ,$   %  * 	 	 &o19 *H4-.?AP[[[sxx?O8P/Q XXf-=&>?-228< & >>M In ds   I:6J 
c                s    V ^8  d   QhR\         R\        R\        \        ,          R\        \        \        \        \        3,          3,          R\        \
        ,          R\        /# )r-   rw   r*   r   r   r   r;   )r   r/   Optr   r   r   r0   r2   r%   r3   r3     sS      ^ C s3x S$sCx.01JMc(^ar$   c                s    \        V\        4      '       d   VP                  VR4      p\        V4      pV! V VVVR7      # )a  
shell:
  bash/zsh/tcsh
root_prefix:
  prefix for shell functions to avoid clashes (default: "_{parser.prog}")
preamble:
  mapping shell to text to prepend to generated script
  (e.g. `{"bash": "_myprog_custom_function(){ echo hello }"}`)
choice_functions:
  *deprecated*

N.B. `parser.add_argument().complete = ...` can be used to define custom
completions (e.g. filenames). See <../examples/pathcomplete.py>.
rF   )r   r   r   )r_   r`   ra   r7   )rw   r*   r   r   r   Z	completer   &&&&& r%   ry   ry     sD      (D!!<<r*e$I)	 r$   c                s    V ^8  d   QhR\         \        ,          R\        \        \        \        \        3,          3,          /# )r-   parentr   )r   r   r   r/   r   r0   r2   r%   r3   r3   3  sE     ! !c.1 !E#tTWTWUX PY KY EZ !r$   c                 s0   a a  ! V V3R  lR\         4      pV# )c                   s4   <a  ] tR tRt o RVV3R lltRtV tR# )0completion_action.<locals>.PrintCompletionActioni5  Nc                sl   < \        \        S;'       g    TVSR 7      4       VP                  ^ 4       R# ))r   N)Zprintry   Zexit)rC   rw   Z	namespacer   r   r   r   s   &&&&&r%   __call__Z9completion_action.<locals>.PrintCompletionAction.__call__6  s'    (6++VVhGHKKNr$   r   r&   )r   r    r!   r"   r   r#   rW   )r>   r   r   s   @r%   PrintCompletionActionr   5  s     	 	r$   r   )r   )r   r   r   s   ff r%   completion_actionr   3  s      ; 
 ! r$   c                s    V ^8  d   QhR\         R\        \        \        \        ,          3,          R\        R\        \         ,          R\        \        \
        \        \        3,          3,          /# )r-   rw   r   rq   r   r   )r   r   r/   r   r   r   r0   r2   r%   r3   r3   =  s^      d3i(  	
 Cc3h'(r$   c                s   \        V\        4      '       d   V.pR\        RRRVR\        W44      /pV^ ,          ^ ,          R8w  d*   VP	                  \        ^ ,          RR7       Vf   Q R	4       hV P
                  ! V/ VB  V # )
z
option_string:
  iff positional (no `-` prefix) then `parser` is assumed to actually be
  a subparser (subcommand mode)
parent:
  required in subcommand mode
rj   defaultNrq   Zactionr   rG   )r   r   z subcommand mode: parent required)r_   r/   r'   r   r   Zadd_argument)rw   r   rq   r   r   Zkwargsr   r%   add_argument_tor   =  s     -%%&#Yfd#F57F Qc!.q1=!E#EE!
1&1Mr$   c                s    V ^8  d   Qh/ ^ \         9   d   \        \        ,          ;R&   ^\         9   d,   \        \        \        \        \        3,          3,          ;R&   # )r-   r'   r   )__conditional_annotations__r   r/   r   r0   r2   r%   r3   r3      sK    J !  $s)  K NS S$sDcN*+ SO r$   )ry   r   r'   rZ   r\   r[   r&   )NrF   N)r   NrF   N)NrF   )z--print-completionzprint shell completion scriptNrF   )Dr   Zloggingrf   Zargparser   r   r   r   r   r   r   r   r	   r
   r   r   Zcollectionsr   Z	functoolsr   Z	itertoolsr   rd   r   Ztypingr   r   r   r   r   r   Z	_dist_verr   ZImportErrorZsetuptools_scmr   Z__file__ZLookupErrorZ__all__Z	getLoggerr   r   r'   r)   r   rZ   r\   r[   r   r   r   r   r,   r7   r8   r]   rc   ri   rp   r   r   r   r   r   ry   r   r   r3   )r   rX   r%   <module>r      s    	    $ $   " " "  & Z!     
V+UHfcJ&/VSQ/S  S ";/ /	C	& 	 .*EE
0,>M ' ' '>, ,2 2Q
&
JU-p m m`;
 R Rj b> b>J6! C    .!tB%    s*   E F E,,E<7F ;E<<F 