HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pip/_vendor/pygments/formatters/__pycache__/irc.cpython-310.pyc
o

@%Ne��@s�dZddlmZddlmZmZmZmZmZm	Z	m
Z
mZmZm
Z
ddlmZdgZied�e
d�ed�ejd�ed	�ejd�e
jd
�ejd�ejd�ejd�ejd
�ejd�ejd�ejd�ejd�ejd�ejd�ede	d	ejdejdej dej!dejdedi�Z"idd�dd�dd�dd�dd�dd �d!d"�d#d$�d%d$�d&d'�d(d)�d*d)�d+d,�d-d.�d/d.�d0d1�d2d3�d4d5d��Z#d6d7�Z$Gd8d�de�Z%d9S):z�
    pygments.formatters.irc
    ~~~~~~~~~~~~~~~~~~~~~~~

    Formatter for IRC output

    :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�	Formatter)
�Keyword�Name�Comment�String�Error�Number�Operator�Generic�Token�
Whitespace)�get_choice_opt�IRCFormatter)�r)�gray�brightblack)�cyan�
brightcyan)�blue�
brightblue)�magentar)�green�brightgreen)�_cyan_�_brightcyan_)�_green_�
_brightgreen_)rr)�red�	brightred)rr)�yellowr)rr)�**r )z	*magenta*z*brightmagenta*)�_brightred_r!�white�black�r�r�r�r�r��orange�r�brightyellow��
lightgreen�	rr�
�	lightblue�rr��
brightmagenta�
��cCs�t|�dkr|Sd}}d|vr|d7}d|}|�d�}d|vr.|d7}d|}|�d�}t|�dkrE|dtt|��d	�7}d|}|||S)
Nr$r�_��*�r�r%)�len�strip�str�
IRC_COLOR_MAP�zfill)�color�text�add�sub�rF�E/usr/lib/python3/dist-packages/pip/_vendor/pygments/formatters/irc.py�	ircformatLs

rHc@s@eZdZdZdZddgZgZdd�Zdd�Zdd	�Z	d
d�Z
dS)
raS
    Format tokens with IRC color sequences

    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 in the output as well
        (default: ``False`` = no line numbers).
    �IRC�irccKsTtj|fi|��t|dddgd�dk|_|�dd�pt|_|�dd�|_d|_dS)N�bg�light�dark�colorscheme�linenosFr)	r�__init__r
�darkbg�get�
IRC_COLORSrNrO�_lineno)�self�optionsrFrFrGrPzs��
zIRCFormatter.__init__cCs"|jd7_|�d|j�dS)Nr$z
%04d: )rT�write)rU�outfilerFrFrG�
_write_lineno�szIRCFormatter._write_linenoc	Cs�|�|�|D]g\}}|�d�r|�|�|dd�}|j�|�}|dur2|j}|j�|�}|dus%|ri||j}|�d�}|dd�D]}|�|�|rY|�t||dd���qD|drh|�t||d��q|�|�q|�d�dS)N�
���)	rY�endswithrNrR�parentrQ�splitrWrH�rU�tokensourcerX�ttype�valuerB�spl�linerFrFrG�_format_unencoded_with_lineno�s.


�


��z*IRCFormatter._format_unencoded_with_linenocCs�|jr|�||�dS|D]V\}}|j�|�}|dur+|dd�}|j�|�}|dus|r^||j}|�d�}|dd�D]}|rI|�t||��|�d�q=|dr]|�t||d��q
|�|�q
dS)Nr[rZ)rOrerNrRrQr^rWrHr_rFrFrG�format_unencoded�s*�

��zIRCFormatter.format_unencodedN)�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenamesrPrYrerfrFrFrFrGrasN)&rj�pip._vendor.pygments.formatterr�pip._vendor.pygments.tokenrrrrrrr	r
rr�pip._vendor.pygments.utilr
�__all__�Preproc�Type�Word�Builtin�Function�	Namespace�Class�	Exception�	Decorator�Variable�Constant�	Attribute�Tag�Deleted�Inserted�Heading�
SubheadingrSr@rHrrFrFrFrG�<module>s�
0�������	�
���
������� ��������	�
���
������