§
    XŠtj  ã                   óÐ  — d Z ddlmZ ddlmZmZmZmZmZm	Z	m
Z
mZmZmZ ddlmZ ddlmZ dgZi ed“ed“ed“ej        d	“ed
“ej        d	“e
j        d“ej        d	“ej        d“ej        d“ej        d“ej        d	“ej        d“ej        d“ej        d“ej        d	“ej        d“ede	d
ej         dej!        dej"        dej#        dej$        dej        dedi	¥Z% G d„ de¦  «        Z&dS )zò
    pygments.formatters.terminal
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Formatter for terminal output with ANSI sequences.

    :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    )Ú	Formatter)
ÚKeywordÚNameÚCommentÚStringÚErrorÚNumberÚOperatorÚGenericÚTokenÚ
Whitespace)Ú
ansiformat)Úget_choice_optÚTerminalFormatter)Ú r   )ÚgrayÚbrightblack)ÚcyanÚ
brightcyan)ÚblueÚ
brightblue)ÚmagentaÚbrightmagenta)ÚgreenÚbrightgreen)Ú_cyan_Ú_brightcyan_)Ú_green_Ú_brightgreen_)r   r   )ÚredÚ	brightred)r   r   )Úyellowr"   )r!   r!   )ú**r#   )z	*magenta*z*brightmagenta*)Ú_brightred_r$   c                   ó@   — e Zd ZdZdZddgZg Zd„ Zd„ Zd„ Z	d„ Z
d	„ Zd
S )r   aÛ  
    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).
    ÚTerminalÚterminalÚconsolec                 óì   — t          j        | fi |¤Ž t          |dddgd¦  «        dk    | _        |                     dd ¦  «        pt
          | _        |                     dd¦  «        | _        d| _        d S )NÚbgÚlightÚdarkÚcolorschemeÚlinenosFr   )	r   Ú__init__r   ÚdarkbgÚgetÚTERMINAL_COLORSr-   r.   Ú_lineno)ÚselfÚoptionss     úZ/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/pygments/formatters/terminal.pyr/   zTerminalFormatter.__init__S   s€   € ÝÔ˜4Ð+Ð+ 7Ð+Ð+Ð+Ý$ W¨dØ&-¨vÐ%6¸ñAô AØDJòKˆŒà"Ÿ;š; }°dÑ;Ô;ÐN½ˆÔØ—{’{ 9¨eÑ4Ô4ˆŒØˆŒˆˆó    c                 ó.   — t          j        | ||¦  «        S ©N)r   Úformat)r4   ÚtokensourceÚoutfiles      r6   r:   zTerminalFormatter.format[   s   € ÝÔ  k°7Ñ;Ô;Ð;r7   c                 ó~   — | xj         dz  c_         |                     d| j         dk    rdpd| j         fz  ¦  «         d S )Né   z%s%04d: ú
r   )r3   Úwrite)r4   r<   s     r6   Ú_write_linenozTerminalFormatter._write_lineno^   sG   € ØˆŒ˜ÑˆŒØ�Š�j D¤L°AÒ$5Ð$>¸$Ð$DÀ"ÀdÄlÐ#SÑSÑTÔTÐTÐTÐTr7   c                 óš   — | j                              |¦  «        }|€#|j        }| j                              |¦  «        }|®#|| j                 S r9   )r-   r1   Úparentr0   )r4   ÚttypeÚcolorss      r6   Ú
_get_colorzTerminalFormatter._get_colorb   sR   € ð Ô!×%Ò% eÑ,Ô,ˆØˆnØ”LˆEØÔ%×)Ò)¨%Ñ0Ô0ˆFð ˆnð �d”kÔ"Ð"r7   c           
      ó4  — | j         r|                      |¦  «         |D ]Ú\  }}|                      |¦  «        }|                     d¦  «        D ]ª}|r7|                     t          ||                     d¦  «        ¦  «        ¦  «         n(|                     |                     d¦  «        ¦  «         |                     d¦  «        r2| j         r|                      |¦  «         Œ•|                     d¦  «         Œ«ŒÛ| j         r|                     d¦  «         d S d S )NTr?   )r.   rA   rF   Ú
splitlinesr@   r   ÚrstripÚendswith)r4   r;   r<   rD   ÚvalueÚcolorÚlines          r6   Úformat_unencodedz"TerminalFormatter.format_unencodedl   s-  € ØŒ<ð 	(Ø×Ò˜wÑ'Ô'Ð'à'ð 	,ð 	,‰LˆE�5Ø—O’O EÑ*Ô*ˆEà×(Ò(¨Ñ.Ô.ð 	,ð 	,�Øð 5Ø—M’M¥*¨U°D·K²KÀÑ4EÔ4EÑ"FÔ"FÑGÔGÐGÐGà—M’M $§+¢+¨dÑ"3Ô"3Ñ4Ô4Ð4Ø—=’= Ñ&Ô&ð ,Ø”|ð ,Ø×*Ò*¨7Ñ3Ô3Ð3Ð3àŸš dÑ+Ô+Ð+øð	,ð Œ<ð 	 Ø�MŠM˜$ÑÔÐÐÐð	 ð 	 r7   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesr/   r:   rA   rF   rN   © r7   r6   r   r   8   s‚   € € € € € ðð ð, €DØ˜9Ð%€GØ€Iðð ð ð<ð <ð <ðUð Uð Uð#ð #ð #ð ð  ð  ð  ð  r7   N)'rR   Úpygments.formatterr   Úpygments.tokenr   r   r   r   r   r	   r
   r   r   r   Úpygments.consoler   Úpygments.utilr   Ú__all__ÚPreprocÚTypeÚWordÚBuiltinÚFunctionÚ	NamespaceÚClassÚ	ExceptionÚ	DecoratorÚVariableÚConstantÚ	AttributeÚTagÚDeletedÚInsertedÚHeadingÚ
SubheadingÚPromptr2   r   rV   r7   r6   ú<module>rn      sT  ððð ð )Ð (Ð (Ð (Ð (Ð (ð1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1ð 1à 'Ð 'Ð 'Ð 'Ð 'Ð 'Ø (Ð (Ð (Ð (Ð (Ð (ð Ð
€ð
Ø	Ð+ðð Ð1ðð Ð1ð	ð
 „OÐ5ðð Ð1ðð „LÐ5ðð „MÐ9ðð 	„LÐ5ðð 	„MÐ2ðð 	„NÐ7ðð 	„JÐ4ðð 	„NÐ5ðð 	„NÐ2ðð 	„MÐ0ðð  	„MÐ0ð!ð" 	„NÐ5ð#ð$ 	„HÐ;ð%ð& Ð2Ø
Ð1à„OÐ9ØÔÐ1Ø„OÐ,ØÔÐ:Ø„NÐ,Ø„MÐ9à	Ð;ð;ð €ðBG ð G ð G ð G ð G ˜	ñ G ô G ð G ð G ð G r7   