+
    TBi[                     l   R t ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIHtH	t	 ^ RI
HtHtHtHtHtHtHt ^ RIHtHtHtHtHtHt ^ RIHt ^ RIHtHt ^ RIHtH t H!t!H"t"H#t# ^ R	I$H%t% ^ R
I&H't'H(t( ^ RI)H*t*H+t+ ^ RI,H-t-H.t. R t/R t0R t1R t2R t3R t4 ! R R]Pj                  4      t5]Pl                  3R lt7R# )z
pygments.cmdline
~~~~~~~~~~~~~~~~

Command line interface.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
N)dedent)__version__	highlight)ClassNotFoundOptionErrordocstring_headlineguess_decodeguess_decode_from_terminalterminal_encodingUnclosingTextIOWrapper)get_all_lexersget_lexer_by_nameguess_lexerload_lexer_from_fileget_lexer_for_filenamefind_lexer_class_for_filename)	TextLexer)LatexEmbeddedLexerLatexFormatter)get_all_formattersget_formatter_by_nameload_formatter_from_fileget_formatter_for_filenamefind_formatter_class)TerminalFormatter)Terminal256FormatterTerminalTrueColorFormatter)get_all_filtersfind_filter_class)get_all_stylesget_style_by_namec                 R   / pV '       g   V# V  F~  pVP                  4       '       g   K  VP                  R 4      pV FL  pVP                  4       p VP                  R^4      w  rVVP                  4       pVP                  4       pWaV&   KN  	  K  	  V#   \         d	    RY&    Kh  i ; i),=T)stripsplit
ValueError)o_strsoptso_stro_argso_argo_keyo_vals   &      5/usr/lib/python3.14/site-packages/pygments/cmdline.py_parse_optionsr/   !   s    D{{}}S!EKKME$${{32 $U 	  K	  #"#s   4BB&%B&c                     . pV '       g   V# V  FP  pR V9   d4   VP                  R ^4      w  r4VP                  V\        V.4      34       K=  VP                  V/ 34       KR  	  V# ):)r%   appendr/   )f_strsfiltersf_strfnamefoptss   &    r.   _parse_filtersr8   6   sa    G%< ;;sA.LENNE>5'#:;<NNE2;'  N    c                     V R 8X  dE   \        V4      p\        RVP                   R24       \        \        VP                  4      4       ^ # V R8X  dE   \        V4      p\        RVP                   R24       \        \        VP                  4      4       ^ # V R8X  d9   \        V4      p\        RV R24       \        \        VP                  4      4       ^ #   \        \        3 d#    \        T  R2\        P                  R7        ^# i ; i)	lexerzHelp on the z lexer:	formatterz formatter:filterz filter:z not found!file)r   printnamer   __doc__r   r   AttributeErrorr&   sysstderr)whatrA   clss   && r.   _print_helprH   C   s    7?#D)CL
'23&%&  [ &t,CL
+67&%&
 	 X#D)CLh/0&%&J' k"4s   A	C A	C ?C /DDc                 \   V R 8X  d   \        4        \        R4       \        R4       . p\        4        Fc  w  r#rERP                  V4      R,           TT;'       d(    RRP                  V4      ,           R,           ;'       g    R3pVP                  V4       Ke  	  VP	                  4        V F  p\        RP
                  ! V!  4       K  	  R# V R	8X  d   \        4        \        R
4       \        R4       . p\        4        F  p\        V4      p	RP                  VP                  4      R,           YP                  ;'       d2    RRP                  VP                  4      ,           R,           ;'       g    R3pVP                  V4       K  	  VP	                  4        V F  p\        RP
                  ! V!  4       K  	  R# V R8X  do   \        4        \        R4       \        R4       \        4        F>  p
\        V
4      p\        RV
,           R,           4       \        R\        V4       24       K@  	  R# V R8X  do   \        4        \        R4       \        R4       \        4        F>  p
\        V
4      p\        RV
,           R,           4       \        R\        V4       24       K@  	  R# R# )r;   zLexers:z~~~~~~~z, r1   z(filenames ) z* {}
    {} {}r<   zFormatters:z~~~~~~~~~~~r=   zFilters:z~~~~~~~~z* z    stylezStyles:N)r@   r   joinr2   sortformatr   r   aliases	filenamesr   r   r   r    )rF   infofullnamenamesexts_tupirG   docrA   s   &          r.   _print_listrZ   W   s0   wii(6(8$HT99U#C'AAMDIIdO;cAGGRICKK )9 			A$,,a01  
	mm%'C$S)C99S[[)C/mm 7B 7B 499S]]#;;cA7H 7HEGICKK	 (
 			A$,,a01  
	jj#%D#D)C$+#$D+C0123 &
 
ii"$D#D)C$+#$D+C0123 % 
r9   c                 *   ^ RI p/ pRV 9   d%   / p\        4        F  w  rErgRVRVRV/W4&   K  	  W2R&   RV 9   dK   / p\        4        F6  p\        V4      p	RVP                  RVP
                  RV	/W8P                  &   K8  	  W2R	&   R
V 9   d2   / p\        4        F  p
\        V
4      pR\        V4      /W:&   K  	  W2R&   RV 9   d2   / p\        4        F  p
\        V
4      pR\        V4      /W:&   K  	  W2R&   VP                  V\        P                  4       R# )    Nr;   rP   rQ   	mimetypeslexersr<   rY   
formattersr=   r4   rL   styles)jsonr   r   r   rP   rQ   rA   r   r   r   r    dumprD   stdout)requested_itemsra   resultrR   rS   rT   rQ   r]   rG   rY   rA   s   &          r.   _print_list_as_jsonrf      s4   F/!5C5E1HY5YYDN 6F  xo%%'C$S)C3;;S]]sDN (  $|?"#%D#D)C)#.DJ &
 !y/!"$D#D)C)#.DJ %
  xIIfcjj!r9   c                   aa& SP                   '       d   V P                  4        ^ # SP                  '       d   \        R\         R24       ^ # V3R lpSP
                  Ee   \        4       p\        S4      P                  4        F   w  rEV'       g   K  VP                  V4       K"  	  VP                  R4       VP                  R4       V'       d"   V P                  \        P                  4       ^# SP                  '       g   \        RR.4       0 R%mo&SP
                   Uu. uF  qfP                  R
4      NK  	  pp\         ;QJ d    V&3R lV 4       F  '       g   K   RM	  RM! V&3R lV 4       4      '       d"   V P                  \        P                  4       ^ # V'       g   S&pSP                  '       g   V F  p\#        V4       K  	  ^ # \%        V4       ^ # SP&                  '       dq   V! R4      '       g"   V P                  \        P                  4       ^# SP&                  w  rVR&9  d"   V P                  \        P                  4       ^# \)        W4      # \+        SP,                  ;'       g    . 4      p
SP.                  ;'       g    .  F  p VP1                  R^4      w  rWV	&   K  	  V
P5                  RV
P5                  R4      4      pV
P5                  RV
P5                  R4      4      pSP6                  '       d>   \9        SP6                  4      pVf   \:        p\        VP<                  ^ ,          4       ^ # SP>                  '       dU   \        P@                  PB                  PE                  4       p \G        VVR7      p\        VP<                  ^ ,          4       ^ # SPJ                  pSPL                  pVe   SPN                  pV'       g"   V P                  \        P                  4       ^# SPP                  '       g   SPR                  '       d"   V P                  \        P                  4       ^#  VV
R	&   \U        V3/ V
B p\        TPW                  T;'       g    R4      4       ^ # SPL                  e"   V P                  \        P                  4       ^# \Y        SPZ                  ;'       g    . 4      p\]        SP^                  4      pRpSPP                  pV'       dr   V'       d]   RV9   dV    RpRp	RV9   d   VPa                  R^4      w  pp	RV	9   d   Rp	V'       d   V	'       d   \c        VV	3/ V
B pM\c        V3/ V
B pM \e        V3/ V
B pRpSPR                  '       d   SPh                  '       d   \        R\        P                  R7       ^# SPR                  p \k        VR4      ;_uu_ 4       pVPE                  4       pRRR4       T'       g   \o        T4      w  ppT'       g    \q        TT3/ T
B pMMSPh                  '       ge   \        P@                  PB                  PE                  4       pV'       g   \u        V\        P@                  4      w  ppV'       g    \G        V3/ V
B pM&M%V'       g   \        R\        P                  R7       ^# V F  w  pp VPv                  ! V3/ VB  K  	  SPx                  pSPN                  pV'       dr   V'       d]   RV9   dV    RpRp	RV9   d   VPa                  R^4      w  pp	RV	9   d   Rp	V'       d   V	'       d   \{        VV	3/ V
B pM\{        V3/ V
B pM \U        V3/ V
B pV'       d$   V'       g    \}        V3/ V
B p \k        VR4      p MV'       gn   \~        P                  P5                  RR4      R(9   d   \        R'/ V
B pM<R\~        P                  P5                  R R4      9   d   \        R'/ V
B pM\        R'/ V
B p\        P                  PB                  p V'       g/   V'       d	   VVnE        M\        \        P                  4      VnE        V'       gj   \        P                  R)9   dU   VP                  R*9   dD   \        V VP                  R!7      p RVnE         ^ RIJp!V!P                  P                  V RRRRR"7      p V
P5                  R#R4      p"\        V"4      ^8X  d6   \        V\        4      '       d    V"^ ,          p#V"^,          p$\        V#V$V4      pSPh                  '       g*    \        VVVV 4       V'       d   V P                  4        ^ #   \        P@                  PB                  P                  4       p%V%'       g   M]V'       g"   \u        V%\        P@                  4      ^ ,          p%\        V%VVV 4       \        V R$4      '       g   K}  V P                  4        K   V'       d   V P                  4        ^ # ^ # u upi   \2         d
    RY&    EK~  i ; i  \H         d    \:        p ELi ; i  \H         d'   p\        T\        P                  R7        Rp?^# Rp?ii ; i  \H         d(   p\        RT\        P                  R7        Rp?^# Rp?ii ; i  \f        \H        3 d(   p\        RT\        P                  R7        Rp?^# Rp?ii ; i  + '       g   i     EL; i  \l         d(   p\        RT\        P                  R7        Rp?^# Rp?ii ; i  \H         dn   pSPr                  '       d5    \G        T3/ T
B p Rp?EL  \H         d    \;        R'/ T
B p  Rp?ELi ; i\        RT\        P                  R7        Rp?^# Rp?i\f         d(   p\        RT\        P                  R7        Rp?^# Rp?ii ; i  \H         d    \;        R'/ T
B p EL6i ; i  \H         d)   p\        RT\        P                  R7        Rp? ^# Rp?ii ; i  \H         d(   p\        RT\        P                  R7        Rp?^# Rp?ii ; i  \f        \H        3 d(   p\        RT\        P                  R7        Rp?^# Rp?ii ; i  \f        \H        3 d(   p\        RT\        P                  R7        Rp?^# Rp?ii ; i  \l         d(   p\        RT\        P                  R7        Rp?^# Rp?ii ; i  \         d     ELLi ; i  T'       d   T P                  4        i i ; i  \         d     T'       d   T P                  4        ^ # ^ # i ; i  T'       d   T P                  4        i i ; i)+r\   zPygments version uD   , (c) 2006-2024 by Georg Brandl, Matthäus Chajdas and contributors.c                    <a  \         ;QJ d@    V 3R  l\        S4      P                  4        4       F  '       g   K   R'       * # 	  R'       * # ! V 3R  l\        S4      P                  4        4       4      '       * # )c              3   >   <"   T F  w  rVS8w  g   K  Vx  K  	  R # 5iN ).0kvopts   &  r.   	<genexpr>5main_inner.<locals>.is_only_option.<locals>.<genexpr>   s     G':Vaa3hqq':s   
TF)anyvarsitems)ro   argnss   fr.   is_only_option"main_inner.<locals>.is_only_option   sO    3GtE{'8'8':G33GG3GG3GtE{'8'8':GGGGr9   NLra   rK   -VrL   sc              3   ,   <"   T F	  qS9  x  K  	  R # 5irj   rk   )rl   argallowed_typess   & r.   rp   main_inner.<locals>.<genexpr>   s     95C-'5s   TFHr#   
inencodingencodingoutencoding)r   r>   z.pyr1   zError:z5Error: -s option not usable when input file specifiedrbzError: cannot read infile:z7Error: when using -s a lexer has to be selected with -lwbzError: cannot open outfile:	COLORTERM256TERM)r   )convertr$   	autoresetwrapescapeinsideflush>   r;   rL   r=   r<   )r;   r<   r=   rk   )	truecolor24bit)win32cygwin)TerminalTerminal256)Xhelp
print_helpVr@   r   rx   setrs   rt   adddiscardrD   rE   ra   mainrstriprr   rZ   rf   r   rH   r/   OPr%   r&   getNr   r   rP   Cstdinbufferreadr   r   Safl	INPUTFILEr   get_style_defsr8   Fboolxrsplitr   r   r   rz   open	Exceptionr   r   gr	   
add_filteror   r   osenvironr   r   r   rc   r   r
   platformrA   r   colorama.initialise
initialisewrap_streamImportErrorlen
isinstancer   r   r   closereadlinehasattrr   KeyboardInterrupt)'parserru   rv   arg_setrm   rn   r|   largsrF   rA   parsed_optsp_optvaluer   r   r;   inpS_opta_optf_optfmtererrF_optsallow_custom_lexer_formatter	lexernamefilenamecodeinfninfpr6   r7   outfnoutfilecoloramar   leftrightliner}   s'   &f                                    @r.   
main_innerr      s
   zzzwww!+ /* * 	+H ww%K%%'DAqA ( 	cjj) zzz"dA,1GG4GSCG4395933395999cjj)!EzzzC     & wwwc""cjj)WW
77cjj)4&& !B/K B	&++c1-KD !&  {z/JKJ//-1LMK www-egg6=EemmA wwwii##%	
;E 	emmA GGEGGEcjj)777eooocjj)	#(K )%?;?E
 	e""5;;B/0 ww#**% EGGMMr*F $(=  E I'EY,>)#%.%5%5c1%=NHd}  $04 @3>@E 1JkJE
))C{C D777Izz#	dD!!Tyy{ "
 +D1D* .tTI[I   WWW yy$$&9$		JD*1#D8K8  Kzz# u	U,e,  GGEGGE'EUN%<%*\\#q%9NHd}#4Xt D7BDE 5UJkJE
-eC{C
 25HKH	5$'G
 zz~~k"-1GG2A[A"**..44,;{;)8K8**## 'EN /szz:EN S\\%88zz00(5>>J	O& ))55TU 6 OG ??>26L
<A*UN"C"CAQ"46 777	 dE5'2	 yy''002!5dCIIFqID$ug67G,,MMO  Y	 5>  	&!%K	&.  	E	*  	#CJJ'	T ! h#**5  / h#**5 "!! 	.#**E	 ! 7779 +D @K @( 9 ) 8K 89 (Ccjj9 h#**5 ! 1!0K01  	(Ccjj1	2 ! h#**5  / h#**5  / h#**5
  	/3::F	<  		*    ! 	 	  s  &g>hh h2 0i& 7i& ?i& i& j 7k* kk* l :o
 6o'=0p .p 6p p q /r <s s= )t 0t- t- >t- t- hhh/.h/2i#=ii#&j1jjk,kkk'	!k* 'k* *l5llo*n=mm-%n,m--noo oo
o$#o$'p2ppq(q

qr
#rr
ss  ss:s55s:=ttt*-u8u uu u4c                   *   a  ] tR tRt o RR ltRtV tR# )HelpFormatteri  Nc                    Vf(    \         P                  ! 4       P                  ^,
          p\        P
                  P                  WVW44       R #   \         d     L0i ; irj   )shutilget_terminal_sizecolumnsr   argparser   __init__)selfprogindent_incrementmax_help_positionwidths   &&&&&r.   r   HelpFormatter.__init__  sX    =002::Q> 	''4D(9	B  s   &A AArk   )      N)__name__
__module____qualname____firstlineno__r   __static_attributes____classdictcell__)__classdict__s   @r.   r   r     s     B Br9   r   c                @   Rp\         P                  ! VR\        R7      pVP                  R4      pVP	                  4       pVP                  RRRR7       VP                  R	R
RR7       VP                  RRRRR7       VP                  RRRR7       VP                  RRRRR7       VP                  RRRRR7       VP                  RRRR7       VP                  RRR R!7       VP                  R"4      pVP                  R#R
R$R7       VP                  R%R
R&R7       VP                  R'R
R(R7       VP                  R)R*RR
R+7       VP                  R,4      pVP	                  4       pVP                  R-R.R/R7       VP                  R0R1R2R3R47       VP                  R5R6R7R7       VP                  R8R
R9R7       VP                  R:R;^RPR<R=7       VP                  R>R
R?R7       VP                  R@RAR
RBR7       VP                  RCRDRER7       VP                  V RF,          4      p \        W(4      #   \         d     ^ # \         Ed    TP                  '       d   \        \        P                  RG7       \        RQ\        P                  RG7       \        RH\        P                  RG7       \        RI\        P                  RG7       \        RJ\        P                  RG7       \        RQ\        P                  RG7       \        \        P                  RG7       h ^ RKIp	T	P                  ! \        P                   ! 4       !  p
T
RR,          P#                  4       p\%        T
4      ^8  dK   TRLP'                  T
RS,          P)                  RM4      ^ ,          P#                  4       RF,          4      ,          p\        \        P                  RG7       \        RN\        P                  RG7       \        T\        P                  RG7       \        RO\        P                  RG7        ^# i ; i)Tz 
Main command line entry point.
z?Highlight an input file and write the result to an output file.F)descriptionadd_helpformatter_classzMain operationz-lLEXERz~Specify the lexer to use.  (Query names with -L.)  If not given and -g is not present, the lexer is guessed from the filename.)metavarr   z-g
store_truez`Guess the lexer from the file contents, or pass through as plain text if nothing can be guessed.)actionr   z-FzFILTER[:options]r2   znAdd a filter to the token stream.  (Query names with -L.) Filter options are given after a colon if necessary.)r   r   r   z-f	FORMATTERzSpecify the formatter to use.  (Query names with -L.) If not given, the formatter is guessed from the output filename, and defaults to the terminal formatter if the output is to the terminal or an unknown file extension.z-OzOPTION=value[,OPTION=value,...]zyGive options to the lexer and formatter as a comma-separated list of key-value pairs. Example: `-O bg=light,python=cool`.z-PzOPTION=valuezGive a single option to the lexer and formatter - with this you can pass options whose value contains commas and equal signs. Example: `-P "heading=Pygments, the Python highlighter"`.z-o
OUTPUTFILEz8Where to write the output.  Defaults to standard output.r   ?z5Where to read the input.  Defaults to standard input.)nargsr   zOperation flagsz-vzbPrint a detailed traceback on unhandled exceptions, which is useful for debugging and bug reports.z-sa!  Process lines one at a time until EOF, rather than waiting to process the entire file.  This only works for stdin, only for lexers with no line-spanning constructs, and is intended for streaming input such as you get from `tail -f`. Example usage: `tail -f sql.log | pygmentize -s -l sql`.z-xa  Allow custom lexers and formatters to be loaded from a .py file relative to the current working directory. For example, `-l ./customlexer.py -x`. By default, this option expects a file with a class named CustomLexer or CustomFormatter; you can also specify your own class name with a colon (`-l ./lexer.py:MyLexer`). Users should be very careful not to use this option with untrusted files, because it will import and run them.z--jsonz=Output as JSON. This can be only used in conjunction with -L.)r   defaultr   z*Special modes - do not do any highlightingz-SzSTYLE -f formatterzqPrint style definitions for STYLE for a formatter given with -f. The argument given by -a is formatter dependent.z-L*WHATzList lexers, formatters, styles or filters -- give additional arguments for the thing(s) you want to list (e.g. "styles"), or omit them to list everything.)r   r   r   z-NFILENAMEzGuess and print out a lexer name based solely on the given filename. Does not take input or highlight anything. If no specific lexer can be determined, "text" is printed.z-CzXLike -N, but print out a lexer name based solely on a given content from standard input.z-HstorezrPrint detailed help for the object <name> of type <type>, where <type> is one of "lexer", "formatter" or "filter".)r   r   r   r   ry   zPrint the package version.z-hz--helpzPrint this help.z-aARGzKFormatter-specific additional argument for the -S (print style sheet) mode.:   NNr>   z3An unhandled exception occurred while highlighting.z9Please report the whole traceback to the issue tracker atz.<https://github.com/pygments/pygments/issues>.Nz	
   (f{})
z*** Error while highlighting:z>*** If this is a bug you want to report, please rerun with -v.)NAMETYPEzA*****************************************************************)r   ArgumentParserr   add_argument_groupadd_mutually_exclusive_groupadd_argument
parse_argsr   BrokenPipeErrorr   rn   r@   rD   rE   	tracebackformat_exceptionexc_infor$   r   rO   r%   )argsdescr   	operationlexerselflagsspecial_modes_groupspecial_modesru   r  rR   msgs   &           r.   r   r     sU    MD$$5BDF ))*:;I557HgO  P \3  4 (?  @ k1  2 7.  /
 nXD  E
 lG  I 3D  F %%&78E	\3  4 
\C  D 
\6  7 
x '/  
 !3346'DDFM*  
 C<  =
 j6  7
 \/  0 WA/?C  D \)  + h|  ! $$e % 
 d2h'E&((  777szz"(,Gzz#Mzz#Bzz#(,szz"))3<<>:2hnnt9><&&tBx~~d';A'>'D'D'Fr'JKKC3::-CJJ?c

#N::	1s%   $
H/ /P=	PPF?PP)8rB   r   rD   r   r   textwrapr   pygmentsr   r   pygments.utilr   r   r   r   r	   r
   r   pygments.lexersr   r   r   r   r   r   pygments.lexers.specialr   pygments.formatters.latexr   r   pygments.formattersr   r   r   r   r   pygments.formatters.terminalr   pygments.formatters.terminal256r   r   pygments.filtersr   r   pygments.stylesr   r    r/   r8   rH   rZ   rf   r   r   argvr   rk   r9   r.   <module>r%     s    
 
    +  P P - HO O : \ ? =*
(04f*"XL ^
BH** B hh Lr9   