403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.52
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/css_parser/css/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/css_parser/css/__pycache__/cssunknownrule.cpython-312.pyc
�

��3e""��t�dZddlmZmZmZmZdgZdZdZddl	m
Z
ddlZddlZ
Gd	�de
j�Zy)
z9CSSUnknownRule implements DOM Level 2 CSS CSSUnknownRule.�)�unicode_literals�division�absolute_import�print_function�CSSUnknownRule�restructuredtextz$Id$�)�cssruleNc���eZdZdZ		d
�fd�	Zd�Zd�Zd�Z�fd�Ze	eed��Z
e	d	�d
��Ze	d��Z�xZ
S)rz�
    Represents an at-rule not supported by this user agent, so in
    effect all other at-rules not defined in css_parser.

    Format::

        @xxx until ';' or block {...}
    c�^��tt|�||��d|_|r||_||_y)z<
        :param cssText:
            of type string
        )�
parentRule�parentStyleSheetN)�superr�__init__�
_atkeyword�cssText�	_readonly)�selfrr
r�readonly�	__class__s     ��?/usr/lib/python3/dist-packages/css_parser/css/cssunknownrule.pyrzCSSUnknownRule.__init__s7���	�n�d�,�
�>N�	-�	P�����"�D�L�!���c�P�d|jj�d|j�d�S)Nzcss_parser.css.z	(cssText=�))r�__name__r�rs r�__repr__zCSSUnknownRule.__repr__%s ���N�N�#�#��L�L��	rc�`�d|jj|jt|�fzS)Nz-<css_parser.css.%s object cssText=%r at 0x%x>)rrr�idrs r�__str__zCSSUnknownRule.__str__*s0��>��N�N�#�#��L�L��t�H�B��	rc�@�tjj|�S)z#Return serialized property cssText.)�
css_parser�ser�do_CSSUnknownRulers r�_getCssTextzCSSUnknownRule._getCssText0s���~�~�/�/��5�5rc
�`����tt��|��j|�}�j	|d�}|r(�j|��jjk7rH�jjd�j|�ztjj��ygdd��d��fd�	}d��fd�	}d�fd�	}d��fd	�	}d��fd
�	}d��fd�	}	d��fd�	}
�j�}�jd||||||||	|
d
�|
���\}}
|xr�d}|
dk7r0d}�jjd�j|�z�n4�dr/d}�jjd�j|�z�|r(�j!|��_�j%|�yy)ad
        :exceptions:
            - :exc:`~xml.dom.SyntaxErr`:
              Raised if the specified CSS string value has a syntax error and
              is unparsable.
            - :exc:`~xml.dom.InvalidModificationErr`:
              Raised if the specified CSS string value represents a different
              type of rule than the current one.
            - :exc:`~xml.dom.HierarchyRequestErr`:
              Raised if the rule cannot be inserted at this point in the
              style sheet.
            - :exc:`~xml.dom.NoModificationAllowedErr`:
              Raised if the rule is readonly.
        Nz+CSSUnknownRule: No CSSUnknownRule found: %s)�errorT)�nesting�
wellformedc���|\}}}}|dk7rs|dvr�	dj|�n8|dvr4dddd�|}	�	dd	|k(r�	dj�n
t��	|dvr�	dsd}|j||||��|Sd
�	d<�
jj	d|�
�|S#t$r%d
�	d<�
jj	d|�
�Y�swxYw)N�EOFz{[(r(z}])�{�[�()�}�]r���Fr)z+CSSUnknownRule: Wrong nesting of {, [ or (.��tokenz};��line�col�%CSSUnknownRule: Expected end of rule.)�append�pop�
IndexError�_logr')�expected�seqr3�	tokenizer�type_�valr5r6�opening�newrs         ��r�CHARz(CSSUnknownRule._setCssText.<locals>.CHARPs���(-�%��s�D�#��u�$��e�|��I��-�-�c�2����(+�#�C�"@��"E��G�"�9�~�b�1�W�<� #�I�� 2� 2� 4�&0�l� 2�!5��d�{�3�y�>�#(���J�J�s�E��#�J�>�#�O�(-�C��%��I�I�O�O�$K�*/�$�1�#�O�� *�G�05�C��-� �I�I�O�O�-9�@E�,�G�G�s�)B%�%+C�Cc����|\}}}}�	j|�}|dk7r+�djd�|j||||��|Sd�d<�	jjd|��|S)	Nr+r(r.r4Fr)r7r2)�_tokenvaluer8r;r'�
r<r=r3r>r?r@r5r6rBrs
        ��r�FUNCTIONz,CSSUnknownRule._setCssText.<locals>.FUNCTIONls~���(-�%��s�D�#��&�&�u�-���u�$��	�N�)�)�#�.��J�J�s�E��#�J�>�#�O�(-�C��%��I�I�O�O�$K�*/�$�1�#�Orc�l��t�d�D]}dddd�|}|j||��g�d<y)z!close all blocks and return 'EOF'r(r/r0r)r,r-r.r+)�reversedr8)r<r=r3r>�x�closingrBs      �rr+z'CSSUnknownRule._setCssText.<locals>.EOFzsH���!�#�i�.�1�1�A�$'�c��<�Q�?�G��J�J�w��0�1�"$��I��rc�~���jjd|tjj��d�d<|S)NzCSSUnknownRule: Bad syntax.)r3r'Fr))r;r'�xml�dom�	SyntaxErr)r<r=r3r>rBrs    ��r�INVALIDz+CSSUnknownRule._setCssText.<locals>.INVALID�s:����	�	��� =�&+�3�7�7�3D�3D� �F�$)��L�!��rc���|\}}}}�	j|�}|dk7r|j||||��|Sd�d<�	jjd|��|S�Nr+r4Fr)r7r2)�_stringtokenvaluer8r;r'rFs
        ��r�STRINGz*CSSUnknownRule._setCssText.<locals>.STRING�sl���(-�%��s�D�#��,�,�U�3���u�$��J�J�s�E��#�J�>�#�O�(-�C��%��I�I�O�O�$K�*/�$�1�#�Orc���|\}}}}�	j|�}|dk7r|j||||��|Sd�d<�	jjd|��|SrR)�_uritokenvaluer8r;r'rFs
        ��r�URIz'CSSUnknownRule._setCssText.<locals>.URI�sl���(-�%��s�D�#��)�)�%�0���u�$��J�J�s�E��#�J�>�#�O�(-�C��%��I�I�O�O�$K�*/�$�1�#�Orc���|\}}}}|dk7r|j||||��|Sd�d<�	jjd|��|SrR)r8r;r'rFs
        ��r�defaultz+CSSUnknownRule._setCssText.<locals>.default�s\���(-�%��s�D�#��u�$��J�J�s�E��#�J�>�#�O�(-�C��%��I�I�O�O�$K�*/�$�1�#�Or)rCr+rGrPrTrW�S)r<r=r>�productionsrYrBr)r+Fz.CSSUnknownRule: No ending ";" or "}" found: %rr(z,CSSUnknownRule: Unclosed "{", "[" or "(": %r�N)rr�_setCssText�
_tokenize2�
_nexttoken�_type�_prods�	ATKEYWORDr;r'�	_valuestrrMrN�InvalidModificationErr�_tempSeq�_parserE�	atkeyword�_setSeq)rrr>�attokenrCrGr+rPrTrWrY�newseqr)r<rBrs`             @�rr]zCSSUnknownRule._setCssText4s����	�n�d�/��8��O�O�G�,�	��/�/�)�T�2���$�*�*�W�-����1F�1F�F��I�I�O�O�I� �N�N�7�3�4�"%�'�'�"@�"@�
�
B�
!�!%��C�
$�8
$�
�
 �

$�

$�	
$��]�]�_�F�#'�;�;��39�Y�DH�CF�HP�GN�FL�CF�AH�
<>�8?�36�$/�$8� �J��$�9��L�(9�J��5� �"�
��	�	���!%�'+�~�~�g�'>�!?�@��Y��"�
��	�	��� N�"&�.�.��"9�!:�;��!%�!1�!1�'�!:������V�$�rz*(DOM) The parsable textual representation.)�fget�fset�docc��|jSr\)�UNKNOWN_RULErs r�<lambda>zCSSUnknownRule.<lambda>�s���!2�!2�rz=The type of this rule, as defined by a CSSRule type constant.)rmc�,�t|j�Sr\)�boolrgrs rrpzCSSUnknownRule.<lambda>�s��t�D�N�N�';�r)�NNF)r�
__module__�__qualname__�__doc__rrr r%r]�propertyr�typer)�
__classcell__)rs@rrr
s`����/3�16�"��
�6�W%�r�K�k�G�I�G��2�)�*�D��;�<�Jr)rv�
__future__rrrr�__all__�
__docformat__�__version__rsr
r"�xml.domrM�CSSRuler�rr�<module>r�s;��?�R�R��
��"�
������G=�W�_�_�G=r

Youez - 2016 - github.com/yon3zu
LinuXploit