§
    U1ÓaÜ  ã                   óX   — 	 d dl mZ n# e$ r	 d dlmZ Y nw xY wdZdZdZeeedœZd
d	„ZdS )é    ©ÚquoteaÒ  
# Run something, muting output or redirecting it to the debug stream
# depending on the value of _ARC_DEBUG.
# If ARGCOMPLETE_USE_TEMPFILES is set, use tempfiles for IPC.
__python_argcomplete_run() {
    if [[ -z "${ARGCOMPLETE_USE_TEMPFILES-}" ]]; then
        __python_argcomplete_run_inner "$@"
        return
    fi
    local tmpfile="$(mktemp)"
    _ARGCOMPLETE_STDOUT_FILENAME="$tmpfile" __python_argcomplete_run_inner "$@"
    local code=$?
    cat "$tmpfile"
    rm "$tmpfile"
    return $code
}

__python_argcomplete_run_inner() {
    if [[ -z "${_ARC_DEBUG-}" ]]; then
        "$@" 8>&1 9>&2 1>/dev/null 2>&1
    else
        "$@" 8>&1 9>&2 1>&9 2>&1
    fi
}

_python_argcomplete%(function_suffix)s() {
    local IFS=$'\013'
    local SUPPRESS_SPACE=0
    if compopt +o nospace 2> /dev/null; then
        SUPPRESS_SPACE=1
    fi
    COMPREPLY=( $(IFS="$IFS" \
                  COMP_LINE="$COMP_LINE" \
                  COMP_POINT="$COMP_POINT" \
                  COMP_TYPE="$COMP_TYPE" \
                  _ARGCOMPLETE_COMP_WORDBREAKS="$COMP_WORDBREAKS" \
                  _ARGCOMPLETE=1 \
                  _ARGCOMPLETE_SUPPRESS_SPACE=$SUPPRESS_SPACE \
                  __python_argcomplete_run "%(argcomplete_script)s") )
    if [[ $? != 0 ]]; then
        unset COMPREPLY
    elif [[ $SUPPRESS_SPACE == 1 ]] && [[ "${COMPREPLY-}" =~ [=/:]$ ]]; then
        compopt -o nospace
    fi
}
complete %(complete_opts)s -F _python_argcomplete%(function_suffix)s %(executables)s
zVcomplete "%(executable)s" 'p@*@`python-argcomplete-tcsh "%(argcomplete_script)s"`@' ;
a5  
function __fish_%(function_name)s_complete
    set -x _ARGCOMPLETE 1
    set -x _ARGCOMPLETE_DFS \t
    set -x _ARGCOMPLETE_IFS \n
    set -x _ARGCOMPLETE_SUPPRESS_SPACE 1
    set -x _ARGCOMPLETE_SHELL fish
    set -x COMP_LINE (commandline -p)
    set -x COMP_POINT (string length (commandline -cp))
    set -x COMP_TYPE
    if set -q _ARC_DEBUG
        %(argcomplete_script)s 8>&1 9>&2 1>&9 2>&1
    else
        %(argcomplete_script)s 8>&1 9>&2 1>/dev/null 2>&1
    end
end
complete %(completion_arg)s %(executable)s -f -a '(__fish_%(function_name)s_complete)'
)ÚbashÚtcshÚfishTr   Nc           	      óú  — |€|rdnd}nd                      |¦  «        }|dk    rKd„ | D ¦   «         }d                      |¦  «        }|}|rd|z   }	nd}d	}	t          t          ||||	¬
¦  «        z  }
n‹|dk    rHd	}
| D ]B}|p|}d|v rdnd}|                     dd¦  «        }|
t          t          ||||¬¦  «        z  z  }
ŒCn=d	}
| D ]8}|}|s|}|
t
                               |d	¦  «        t          ||¬¦  «        z  z  }
Œ9|
S )aÐ  
    Provide the shell code required to register a python executable for use with the argcomplete module.

    :param list(str) executables: Executables to be completed (when invoked exactly with this name)
    :param bool use_defaults: Whether to fallback to readline's default completion when no matches are generated.
    :param str shell: Name of the shell to output code for (bash or tcsh)
    :param complete_arguments: Arguments to call complete with
    :type complete_arguments: list(str) or None
    :param argcomplete_script: Script to call complete with, if not the executable to complete.
        If supplied, will be used to complete *all* passed executables.
    :type argcomplete_script: str or None
    Nz$-o nospace -o default -o bashdefaultz-o nospace -o bashdefaultú r   c                 ó,   — g | ]}t          |¦  «        ‘ŒS © r   )Ú.0Úis     ú?/usr/lib/python3/dist-packages/argcomplete/shell_integration.pyú
<listcomp>zshellcode.<locals>.<listcomp>f   s   € Ð<Ð<Ð<¨1�e A™hœhÐ<Ð<Ð<ó    Ú_z$1Ú )Úcomplete_optsÚexecutablesÚargcomplete_scriptÚfunction_suffixr   ú/z--pathz	--command)Ú
executabler   Úcompletion_argÚfunction_name)r   r   )ÚjoinÚbashcodeÚdictÚreplaceÚfishcodeÚshell_codesÚget)r   Úuse_defaultsÚshellÚcomplete_argumentsr   Úcomplete_optionsÚquoted_executablesÚexecutables_listÚscriptr   Úcoder   r   r   s                 r   Ú	shellcoder*   R   s–  € ð Ð!ØEQÐrÐAÐAÐWrÐÐàŸ8š8Ð$6Ñ7Ô7Ðà�‚€Ø<Ð<°Ð<Ñ<Ô<ÐØŸ8š8Ð$6Ñ7Ô7ÐØ#ˆØð 	!Ø! F™lˆOˆOàˆFØ ˆOÝ�$Ð-=ÐK[Ø28È/ð[ñ [ô [ñ [ˆˆà	�&ŠˆØˆØ%ð 	`ð 	`ˆJØ'Ð5¨:ˆFØ),°
Ð):Ð):˜X˜XÀˆNØ&×.Ò.¨s°CÑ8Ô8ˆMà•H�t¨zÈfØ3AÐQ^ð `ñ  `ô  `ñ `ñ `ˆDˆDð	`ð ˆØ%ð 	hð 	hˆJØ'ˆFàð $Ø#�Ø•K—O’O E¨2Ñ.Ô.µÀÐ`fÐ1gÑ1gÔ1gÑgÑgˆDˆDà€Kr   )Tr   NN)	Úshlexr   ÚImportErrorÚpipesr   Útcshcoder   r    r*   r   r   r   ú<module>r/      s—   ððØÐÐÐÐÐÐøØð ð ð ØÐÐÐÐÐÐÐðøøøð.€ð`€ð€ð&  ¨¸8ÐDÐD€ð0ð 0ð 0ð 0ð 0ð 0s   ‚	 ‰–