hBdZddlmZddlmZmZmZmZmZm Z m Z m Z m Z m Z ddlmZddlmZdgZie de dedejd ed ejd e jd ejd ejd ejd ejdejd ejdejdejdejd ejdede d e j de j!d e j"de j#de j$de jdedi Z%GddeZ&dS)z pygments.formatters.terminal ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Formatter for terminal output with ANSI sequences. :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. ) Formatter) KeywordNameCommentStringErrorNumberOperatorGenericToken Whitespace) ansiformat)get_choice_optTerminalFormatter)r)gray brightblack)cyan brightcyan)blue brightblue)magenta brightmagenta)green brightgreen)_cyan_ _brightcyan_)_green_ _brightgreen_)rr)red brightred)rr)yellowr")r!r!)**r#)z *magenta*z*brightmagenta*) _brightred_r$c@eZdZdZdZddgZgZdZdZdZ dZ d Z d S) ra Format tokens with ANSI color sequences, for output in a text console. Color sequences are terminated at newlines, so that paging the output works correctly. The `get_style_defs()` method doesn't do anything special since there is no support for common styles. Options accepted: `bg` Set to ``"light"`` or ``"dark"`` depending on the terminal's background (default: ``"light"``). `colorscheme` A dictionary mapping token types to (lightbg, darkbg) color names or ``None`` (default: ``None`` = use builtin colorscheme). `linenos` Set to ``True`` to have line numbers on the terminal output as well (default: ``False`` = no line numbers). Terminalterminalconsolec tj|fi|t|dddgddk|_|ddpt |_|dd|_d|_dS)Nbglightdark colorschemelinenosFr) r__init__rdarkbggetTERMINAL_COLORSr-r._lineno)selfoptionss /builddir/build/BUILD/imunify360-venv-2.5.2/opt/imunify360/venv/lib/python3.11/site-packages/pip/_vendor/pygments/formatters/terminal.pyr/zTerminalFormatter.__init__Ss4++7+++$Wd&-v%6AADJK ";;}d;;N{{9e44  c.tj|||SN)rformat)r4 tokensourceoutfiles r6r:zTerminalFormatter.format[sk7;;;r7c~|xjdz c_|d|jdkrdpd|jfzdS)Nz%s%04d:  r)r3write)r4r<s r6 _write_linenozTerminalFormatter._write_lineno^sG   jDLA$5$>$$D"dl#SSTTTTTr7c|j|}|#|j}|j|}|#||jSr9)r-r1parentr0)r4ttypecolorss r6 _get_colorzTerminalFormatter._get_colorbsR!%%e,,nLE%))%00Fndk""r7c 4|jr|||D]\}}||}|dD]}|r7|t ||dn(||d|dr2|jr|||d|jr|ddSdS)NTr?)r.rArF splitlinesr@rrstripendswith)r4r;r<rDvaluecolorlines r6format_unencodedz"TerminalFormatter.format_unencodedls- < (   w ' ' '' , ,LE5OOE**E((.. , ,5MM*UDKK4E4E"F"FGGGGMM$++d"3"3444==&&,|,**73333 d+++ , < MM$       r7N) __name__ __module__ __qualname____doc__namealiases filenamesr/r:rArFrNr7r6rr8s, D9%GI<<<UUU###     r7N)'rRpip._vendor.pygments.formatterrpip._vendor.pygments.tokenrrrrrr r r r r pip._vendor.pygments.consolerpip._vendor.pygments.utilr__all__PreprocTypeWordBuiltinFunction NamespaceClass Exception DecoratorVariableConstant AttributeTagDeletedInsertedHeading SubheadingPromptr2rrVr7r6rnsT544444111111111111111111111111333333444444    +1 1   O5   1  L5 M9 L5 M2 N7 J4 N5 N2 M0  M0!" N5#$ H;%& 2 1 O9 1 O, : N, M9 ;;BG G G G G G G G G G r7