Sindbad~EG File Manager

Current Path : /proc/2233733/root/usr/local/lib/python3.12/site-packages/bs4/__pycache__/
Upload File :
Current File : //proc/2233733/root/usr/local/lib/python3.12/site-packages/bs4/__pycache__/dammit.cpython-312.pyc

�

(ٜgƠ��V�dZdZddlmZddlmZddlZddlZddlZddl	Z	dZ
	ddlZ
e
rd�Znd�ZdZd	Ze�Zej(ej+d
�ej,�ej(ej+d
�ej,�d�ee<ej(eej,�ej(eej,�d�ee<ddlmZGd
�de�ZGd�d�ZGd�d�Zy#e$r'	ddl
Z
n#e$r	ddlZ
n
#e$rdZ
YnwxYwYnwxYwY��wxYw)aBBeautiful Soup bonus library: Unicode, Dammit

This library converts a bytestream to Unicode through any means
necessary. It is heavily based on code from Mark Pilgrim's Universal
Feed Parser. It works best on XML and HTML, but it does not rewrite the
XML or HTML to reflect a new encoding; that's the tree builder's job.
�MIT�)�codepoint2name)�defaultdictNc�T�t|t�rytj|�dS)N�encoding)�
isinstance�str�chardet_module�detect��ss �5/usr/local/lib/python3.12/site-packages/bs4/dammit.py�chardet_dammitr+s%���a�����$�$�Q�'�
�3�3�c��y�N�rs rrr0s��rz$^\s*<\?.*encoding=['"](.*?)['"].*\?>z0<\s*meta[^>]+charset\s*=\s*["']?([^>]*?)[ /;'">]�ascii)�html�xml)�html5c���eZdZdZd�Ze�\ZZZdddddd�Ze	jd	�Ze	jd
�Ze
d��Ze
d��Ze
d
��Ze
dd��Ze
	dd��Ze
d��Zy)�EntitySubstitutionzFThe ability to substitute XML or HTML entities for certain characters.c���i}i}t�}tt�}ttj��D]�\}}|jd�r|dd}n|}||vr|||<|||<t
|�dk(rt|�dkr|dvr�Nt
|�dkDrtd�|D��r�ot
|�dk(r|j|���||dj|���t�}|D]T}||}	|	s|j|��d	j|	D�
cgc]}
|
d��	c}
�}|j|�d
|�d���Vt|j��D]}|D]}
|j|
���dd
j|�z}ttj��D]\}}t|�}|||<�||tj |�fScc}
w)u�Initialize variables used by this class to manage the plethora of
        HTML5 named entities.

        This function returns a 3-tuple containing two dictionaries
        and a regular expression:

        unicode_to_name - A mapping of Unicode strings like "⦨" to
        entity names like "angmsdaa". When a single Unicode string has
        multiple entity names, we try to choose the most commonly-used
        name.

        name_to_unicode: A mapping of entity names like "angmsdaa" to 
        Unicode strings like "⦨".

        named_entity_re: A regular expression matching (almost) any
        Unicode string that corresponds to an HTML5 named entity.
        �;N�����z<>&c3�8K�|]}t|�dk���y�w)rN)�ord)�.0�xs  r�	<genexpr>z?EntitySubstitution._populate_class_variables.<locals>.<genexpr>�s����)J�	�1�#�a�&�3�,�	�s�r�z(?![z])z(%s)�|)�setr�sortedr�items�endswith�lenr �all�add�join�list�valuesr�chr�re�compile)�unicode_to_name�name_to_unicode�short_entities� long_entities_by_first_character�name_with_semicolon�	character�name�	particles�short�
long_versionsr"�ignore�
long_entities�long_entity�
re_definition�	codepoints                r�_populate_class_variablesz,EntitySubstitution._populate_class_variablesFs���$�������+6�s�+;�(�.4�U�[�[�]�.C�*���#�+�+�C�0�*�3�B�/��*��
�?�*�(1���%�
*.�O�I�&��I��!�#��I���(<��U�*�
��9�~��!�c�)J�	�)J�&J���9�~��"��"�"�9�-�0��1��>�B�B�9�M�}/D�D�E�	�#�E�<�U�C�M� ��
�
�e�$����
�!>�
�1�!�A�$�
�!>�?���
�
�e�V�<�=�$�"�"B�"I�"I�"K�L�M�,���
�
�k�*� -�M�����)�!4�4�
� $�N�$8�$8�$:�;�O�I�t��I��I�)-�O�I�&� <������M�1J�J�J��+"?s�G
�apos�quot�amp�lt�gt)�'�"�&�<�>z&([<>]|&(?!#\d+;|#x[0-9a-fA-F]+;|\w+;))z([<>&])c�`�|jj|jd��}d|zS)zpUsed with a regular expression to substitute the
        appropriate HTML entity for a special character string.r�&%s;)�CHARACTER_TO_HTML_ENTITY�get�group��cls�matchobj�entitys   r�_substitute_html_entityz*EntitySubstitution._substitute_html_entity�s-���-�-�1�1�(�.�.��2C�D�����rc�H�|j|jd�}d|zS)zoUsed with a regular expression to substitute the
        appropriate XML entity for a special character string.rrN)�CHARACTER_TO_XML_ENTITYrQrRs   r�_substitute_xml_entityz)EntitySubstitution._substitute_xml_entity�s'���,�,�X�^�^�A�->�?�����rc�T�d}d|vrd|vrd}|jd|�}nd}||z|zS)a*Make a value into a quoted XML attribute, possibly escaping it.

         Most strings will be quoted using double quotes.

          Bob's Bar -> "Bob's Bar"

         If a string contains double quotes, it will be quoted using
         single quotes.

          Welcome to "my bar" -> 'Welcome to "my bar"'

         If a string contains both single and double quotes, the
         double quotes will be escaped, and the string will be quoted
         using double quotes.

          Welcome to "Bob's Bar" -> "Welcome to &quot;Bob's bar&quot;
        rIrHz&quot;)�replace)�self�value�
quote_with�replace_withs    r�quoted_attribute_valuez)EntitySubstitution.quoted_attribute_value�sE��&�
��%�<��e�|� (���
�
�c�<�8��!�
��E�!�J�.�.rc�x�|jj|j|�}|r|j|�}|S)aSubstitute XML entities for special XML characters.

        :param value: A string to be substituted. The less-than sign
          will become &lt;, the greater-than sign will become &gt;,
          and any ampersands will become &amp;. If you want ampersands
          that appear to be part of an entity definition to be left
          alone, use substitute_xml_containing_entities() instead.

        :param make_quoted_attribute: If True, then the string will be
         quoted, as befits an attribute value.
        )�AMPERSAND_OR_BRACKET�subrYr`�rSr]�make_quoted_attributes   r�substitute_xmlz!EntitySubstitution.substitute_xmls?���(�(�,�,��&�&��/��!��.�.�u�5�E��rc�x�|jj|j|�}|r|j|�}|S)a�Substitute XML entities for special XML characters.

        :param value: A string to be substituted. The less-than sign will
          become &lt;, the greater-than sign will become &gt;, and any
          ampersands that are not part of an entity defition will
          become &amp;.

        :param make_quoted_attribute: If True, then the string will be
         quoted, as befits an attribute value.
        )�BARE_AMPERSAND_OR_BRACKETrcrYr`rds   r�"substitute_xml_containing_entitiesz5EntitySubstitution.substitute_xml_containing_entitiess?���-�-�1�1��&�&��/��!��.�.�u�5�E��rc�N�|jj|j|�S)aReplace certain Unicode characters with named HTML entities.

        This differs from data.encode(encoding, 'xmlcharrefreplace')
        in that the goal is to make the result more readable (to those
        with ASCII displays) rather than to recover from
        errors. There's absolutely nothing wrong with a UTF-8 string
        containg a LATIN SMALL LETTER E WITH ACUTE, but replacing that
        character with "&eacute;" will make it more readable to some
        people.

        :param s: A Unicode string.
        )�CHARACTER_TO_HTML_ENTITY_RErcrV)rSr
s  r�substitute_htmlz"EntitySubstitution.substitute_html+s(���.�.�2�2��'�'��,�	,rN)F)�__name__�
__module__�__qualname__�__doc__rBrO�HTML_ENTITY_TO_CHARACTERrkrXr1r2rhrb�classmethodrVrYr`rfrirlrrrrrCs���P�uK�n%>�$?�"��7� ��
�
�
�
�
��!+��
�
�,/�!0��&�2�:�:�i�0�����������"/��"/�H����(�*/����*�,��,rrc�V�eZdZdZ			dd�Zd�Zed��Zed��Z	ed	d��Z
y)
�EncodingDetectoraLSuggests a number of possible encodings for a bytestring.

    Order of precedence:

    1. Encodings you specifically tell EncodingDetector to try first
    (the known_definite_encodings argument to the constructor).

    2. An encoding determined by sniffing the document's byte-order mark.

    3. Encodings you specifically tell EncodingDetector to try if
    byte-order mark sniffing fails (the user_encodings argument to the
    constructor).

    4. An encoding declared within the bytestring itself, either in an
    XML declaration (if the bytestring is to be interpreted as an XML
    document), or in a <meta> tag (if the bytestring is to be
    interpreted as an HTML document.)

    5. An encoding detected through textual analysis by chardet,
    cchardet, or a similar external library.

    4. UTF-8.

    5. Windows-1252.

    Nc�D�t|xsg�|_|r|xj|z
c_|xsg|_|xsg}t|D�cgc]}|j	���c}�|_d|_||_d|_|j|�\|_
|_ycc}w)a�Constructor.

        :param markup: Some markup in an unknown encoding.

        :param known_definite_encodings: When determining the encoding
            of `markup`, these encodings will be tried first, in
            order. In HTML terms, this corresponds to the "known
            definite encoding" step defined here:
            https://html.spec.whatwg.org/multipage/parsing.html#parsing-with-a-known-character-encoding

        :param user_encodings: These encodings will be tried after the
            `known_definite_encodings` have been tried and failed, and
            after an attempt to sniff the encoding by looking at a
            byte order mark has failed. In HTML terms, this
            corresponds to the step "user has explicitly instructed
            the user agent to override the document's character
            encoding", defined here:
            https://html.spec.whatwg.org/multipage/parsing.html#determining-the-character-encoding

        :param override_encodings: A deprecated alias for
            known_definite_encodings. Any encodings here will be tried
            immediately after the encodings in
            known_definite_encodings.

        :param is_html: If True, this markup is considered to be
            HTML. Otherwise it's assumed to be XML.

        :param exclude_encodings: These encodings will not be tried,
            even if they otherwise would be.

        N)r.�known_definite_encodings�user_encodingsr&�lower�exclude_encodings�chardet_encoding�is_html�declared_encoding�strip_byte_order_mark�markup�sniffed_encoding)r\r~rvr{ryrw�override_encodingsr"s        r�__init__zEncodingDetector.__init__Xs���D)-�-E�-K��(L��%���)�)�-?�?�)�,�2����-�3���!$�9J�%K�9J�A�a�g�g�i�9J�%K�!L��� $������!%���.2�-G�-G��-O�*���T�*��
&Ls�Bc�r�|�5|j�}||jvry||vr|j|�yy)z�Should we even bother to try this encoding?

        :param encoding: Name of an encoding.
        :param tried: Encodings that have already been tried. This will be modified
            as a side effect.
        FT)rxryr,)r\r�trieds   r�_usablezEncodingDetector._usable�sA�����~�~�'�H��4�1�1�1���u�$��	�	�(�#��rc#�K�t�}|jD]}|j||�s�|���|j|j|�r|j��|jD]}|j||�s�|���|j
�+|j
|j|j�|_|j|j
|�r|j
��|j�t|j�|_	|j|j|�r|j��dD]}|j||�s�|���y�w)zmYield a number of encodings that might work for this markup.

        :yield: A sequence of strings.
        N)�utf-8�windows-1252)r&rvr�rrwr|�find_declared_encodingr~r{rzr)r\r��es   r�	encodingszEncodingDetector.encodings�s'��������.�.�A��|�|�A�u�%���/��<�<��-�-�u�5��'�'�'��$�$�A��|�|�A�u�%���%��!�!�)�%)�%@�%@����T�\�\�&+�D�"��<�<��.�.��6��(�(�(�� � �(�$2�4�;�;�$?�D�!��<�<��-�-�u�5��'�'�'�+�A��|�|�A�u�%���+�s�,E�AE�CE�Ec�D�d}t|t�r||fSt|�dk\r|dddk(r|dddk7rd}|dd}||fSt|�dk\r|dddk(r|dddk7rd}|dd}||fS|dd	d
k(rd}|d	d}||fS|dddk(rd
}|dd}||fS|dddk(rd}|dd}||fS)z�If a byte-order mark is present, strip it and return the encoding it implies.

        :param data: Some markup.
        :return: A 2-tuple (modified data, implied encoding)
        N��s��zzutf-16bes��zutf-16le�sr�s��zutf-32bes��zutf-32le)rr	r*)rS�datars   rr}z&EncodingDetector.strip_byte_order_mark�s'�����d�C� ���>�!���I��N��b�q��[�!8���1�I��+�!�H����8�D��X�~���$�i�1�n�4���8�{�#:��1�Q�i�:�-�!�H����8�D��X�~���"�1�X��
(��H����8�D��X�~��
�"�1�X�,�
,�!�H����8�D��X�~���"�1�X�,�
,�!�H����8�D��X�~�rc��|rt|�x}}n#d}tdtt|�dz��}t|t�rt
t}n
t
t}|d}|d}d}	|j||��}
|
s|r|j||��}
|
�|
j�d}	|	r2t|	t�r|	jd	d
�}	|	j�Sy)a�Given a document, tries to find its declared encoding.

        An XML encoding is declared at the beginning of the document.

        An HTML encoding is declared in a <meta> tag, hopefully near the
        beginning of the document.

        :param markup: Some markup.
        :param is_html: If True, this markup is considered to be HTML. Otherwise
            it's assumed to be XML.
        :param search_entire_document: Since an encoding is supposed to declared near the beginning
            of the document, most of the time it's only necessary to search a few kilobytes of data.
            Set this to True to force this method to search the entire document.
        iig�������?rrN)�endposrrr[)r*�max�intr�bytes�encoding_resr	�search�groups�decoderx)rSr~r{�search_entire_document�
xml_endpos�html_endpos�res�xml_re�html_rer|�declared_encoding_matchs           rr�z'EncodingDetector.find_declared_encoding�s��� "�'*�6�{�2�J���J��d�C��F��d�(:�$;�<�K��f�e�$��u�%�C��s�#�C��U����f�+�� ��"(�-�-��z�-�"J��&�7�&-�n�n�V�K�n�&P�#�"�.� 7� >� >� @�� C����+�U�3�$5�$<�$<�W�i�$P�!�$�*�*�,�,�r)NFNNN)FF)rmrnrorpr�r��propertyr�rrr}r�rrrrtrt=s[���49=�26�9=�-P�^� �)��)�V����:�&��&rrtc���eZdZdZddd�Zgd�Zgddgddfd�Zd	�Z�d�d
�Z�d�d�Z	e
d��Zd
�Zd�Z
idd�dd�dd�dd�dd�dd�dd�dd�dd �d!d"�d#d$�d%d&�d'd(�d)d*�d+d,�d-d*�d.d*�d/d0d1d2d3d4d5d6d7d8d9d:d*d;d<d=��Zidd>�dd�dd?�dd@�ddA�ddB�ddC�ddD�ddE�d!dF�d#dG�d%dH�d'dI�d)d*�d+dJ�d-d*�d.d*�idKdL�dMdL�dNdO�dPdO�dQdR�dSdT�dUdV�dWdX�dYdZ�d[d\�d]d^�d_d`�dad*�dbdc�ddde�dfd�dgdh��ididj�dkdl�dmdn�dodp�dqdr�dsdG�dtdu�dvdw�dxdy�dzd{�d|dh�d}d�d~d�d�dT�d�d��d�d��d�d���id�d��d�d��d�d��d�d��d�dR�d�d?�d�d��d�dy�d�d��d�d��d�d��d�d��d�d*�d�d��d�d��d�d��d�d���id�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d���id�d��d�d��d�dR�d�d��d�d��d�d��d�d��d�d��d�de�d�dœd�dǓd�dɓd�dɓd�dɓd�dɓd�dɓd�dɓ�id�dГd�dj�d�dӓd�dӓd�dӓd�dӓd�dؓd�dؓd�dؓd�dؓd�d��d�dޓd�d��d�d��d�d��d�d��d�d���d�d�d�d�d�d�d�d�d�d�	�Zid�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d��d�d��d�d��d�d��d�d��d��d��d�d��d�d��d�d��d�d�i�d	�d
��d�d��d
�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d ��d!�d"��d#�d$��d%�d&��d'�d(��d)�d*��i�d+�d,��d-�d.��d/�d0��d1�d2��d3�d4��d5�d6��d7�d8��d9�d:��d;�d<��d=�d>��d?�d@��dA�dB��dC�dD��dE�dF��dG�dH��dI�dJ��dK�dL��i�dM�dN��dO�dP��dQ�dR��dS�dT��dU�dV��dW�dX��dY�dZ��d[�d\��d]�d^��d_�d`��da�db��dc�dd��de�df��dg�dh��di�dj��dk�dl��dm�dn��i�do�dp��dq�dr��ds�dt��du�dv��dw�dx��dy�dz��d{�d|��d}�d~��d�d���d��d���d��d���d��d���d��d���d��d���d��d���d��d���d��d���i�d��d���d��d���d��d���d��d���d��d���d��d���d��d���d�dg��d��d���d��d���d��d���d��d���d��d���d��d���d��d���d��d���d��d���i�d��d���d��d���d��d���d��d���d��d���d��d���d��d���d��d���ddÓ�dĐdœ�dƐdǓ�dȐdɓ�dʐd˓�d̐d͓�dΐdϓ�dАdѓ�dҐdӓ��dԐdՐd֐dל�Zg�dآZe�d��d�Ze�d��d�Ze		�dސd܄�Zy(��
UnicodeDammitz�A class for detecting the encoding of a *ML document and
    converting it to a Unicode string. If the source encoding is
    windows-1252, can replace MS smart quotes with their HTML or XML
    equivalents.z	mac-romanz	shift-jis)�	macintoshzx-sjis)r�z
iso-8859-1z
iso-8859-2NFc��||_g|_d|_||_t	j
t�|_t||||||�|_	t|t�s|dk(r||_t|�|_
d|_y|jj|_d}|jjD]-}	|jj}|j!|	�}|��-n|sX|jjD]?}	|	dk7r|j!|	d�}|��|jj#d�d|_n||_
|sd|_yy)a2Constructor.

        :param markup: A bytestring representing markup in an unknown encoding.

        :param known_definite_encodings: When determining the encoding
            of `markup`, these encodings will be tried first, in
            order. In HTML terms, this corresponds to the "known
            definite encoding" step defined here:
            https://html.spec.whatwg.org/multipage/parsing.html#parsing-with-a-known-character-encoding

        :param user_encodings: These encodings will be tried after the
            `known_definite_encodings` have been tried and failed, and
            after an attempt to sniff the encoding by looking at a
            byte order mark has failed. In HTML terms, this
            corresponds to the step "user has explicitly instructed
            the user agent to override the document's character
            encoding", defined here:
            https://html.spec.whatwg.org/multipage/parsing.html#determining-the-character-encoding

        :param override_encodings: A deprecated alias for
            known_definite_encodings. Any encodings here will be tried
            immediately after the encodings in
            known_definite_encodings.

        :param smart_quotes_to: By default, Microsoft smart quotes will, like all other characters, be converted
           to Unicode characters. Setting this to 'ascii' will convert them to ASCII quotes instead.
           Setting it to 'xml' will convert them to XML entity references, and setting it to 'html'
           will convert them to HTML entity references.
        :param is_html: If True, this markup is considered to be HTML. Otherwise
            it's assumed to be XML.
        :param exclude_encodings: These encodings will not be considered, even
            if the sniffing code thinks they might make sense.

        Fr$Nrr[zSSome characters could not be decoded, and were replaced with REPLACEMENT CHARACTER.T)�smart_quotes_to�tried_encodings�contains_replacement_charactersr{�logging�	getLoggerrm�logrt�detectorrr	r~�unicode_markup�original_encodingr��
_convert_from�warning)
r\r~rvr�r{ryrwr��urs
          rr�zUnicodeDammit.__init__sP��L /���!���/4��,�����$�$�X�.���(��,�g�7H��.�
��
��f�c�"�f��l� �D�K�"%�f�+�D��%)�D�"���m�m�*�*������
�
�/�/�H��]�]�)�)�F��"�"�8�,�A��}��	0��!�M�M�3�3���w�&��*�*�8�Y�?�A��=��H�H�$�$�C��<@�D�8��4� ����%)�D�"�rc��|jd�}|jdk(r+|jj|�j	�}|S|j
j|�}t
|�tk(r}|jdk(r7dj	�|dj	�zdj	�z}|Sdj	�|dj	�zdj	�z}|S|j	�}|S)z[Changes a MS smart quote character to an XML or HTML
        entity, or an ASCII character.rrrz&#xrrJr)rQr��MS_CHARS_TO_ASCIIrP�encode�MS_CHARS�type�tuple)r\�match�origrcs    r�_sub_ms_charzUnicodeDammit._sub_ms_charus����{�{�1�~�����7�*��(�(�,�,�T�2�9�9�;�C��
��-�-�#�#�D�)�C��C�y�E�!��'�'�5�0��,�,�.�3�q�6�=�=�?�:�S�Z�Z�\�I�C�
�
��*�*�,��Q�����8�3�:�:�<�G�C��
��j�j�l���
rc��|j|�}|r||f|jvry|jj||f�|j}|j�A||j
vr3d}t
j|�}|j|j|�}	|j|||�}||_||_|jS#t$r
}Yd}~yd}~wwxYw)z|Attempt to convert the markup to the proposed encoding.

        :param proposed: The name of a character encoding.
        Ns([�-�]))
�
find_codecr��appendr~r��ENCODINGS_WITH_SMART_QUOTESr1r2rcr��_to_unicoder��	Exception)r\�proposed�errorsr~�smart_quotes_re�smart_quotes_compiledr�r�s        rr�zUnicodeDammit._convert_from�s���
�?�?�8�,���H�f�-��1E�1E�E�����#�#�X�v�$6�7�����
� � �,��D�<�<�<�.�O�$&�J�J��$?�!�*�.�.�t�/@�/@�&�I�F�		�� � ���6�:�A��D�K�%-�D�"��{�{����	���	�s�!C	�		C�Cc��t|||�S)z}Given a string and its encoding, decodes the string into Unicode.

        :param encoding: The name of an encoding.
        )r	)r\r�rr�s    rr�zUnicodeDammit._to_unicode�s��
�4��6�*�*rc�H�|jsy|jjS)zhIf the markup is an HTML document, returns the encoding declared _within_
        the document.
        N)r{r�r|)r\s r�declared_html_encodingz$UnicodeDammit.declared_html_encoding�s��
�|�|���}�}�.�.�.rc�N�|j|jj||��xsf|xr!|j|jdd��xs?|xr!|j|jdd��xs|xr|j	�xs|}|r|j	�Sy)z�Convert the name of a character set to a codec name.

        :param charset: The name of a character set.
        :return: The name of a codec.
        �-r$�_N)�_codec�CHARSET_ALIASESrPr[rx)r\�charsetr]s   rr�zUnicodeDammit.find_codec�s������T�1�1�5�5�g�w�G�H���D�t�{�{�7�?�?�3��+C�D���E�t�{�{�7�?�?�3��+D�E���.�w�}�}����		���;�;�=� �rc�n�|s|Sd}	tj|�|}|S#ttf$rY|SwxYwr)�codecs�lookup�LookupError�
ValueError)r\r��codecs   rr�zUnicodeDammit._codec�sJ����N���	��M�M�'�"��E�����Z�(�	����	�s�!�4�4��)�euro�20AC��� ��)�sbquo�201A��)�fnof�192��)�bdquo�201E��)�hellip�2026��)�dagger�2020��)�Dagger�2021��)�circ�2C6��)�permil�2030��)�Scaron�160��)�lsaquo�2039��)�OElig�152���?��)z#x17D�17D����)�lsquo�2018)�rsquo�2019)�ldquo�201C)�rdquo�201D)�bull�2022)�ndash�2013)�mdash�2014)�tilde�2DC)�trade�2122)�scaron�161)�rsaquo�203A)�oelig�153)z#x17E�17E)�Yumlr$)�������������������������������EUR�,�fz,,z...�+z++�^�%�SrK�OE�ZrrHrrrIrr�*rr�rz--r �~r!z(TM)r"r
r#rLr$�oer%r&�zr'�Y�����!���c���GBP���$���YEN��r%����z..��r$��z(th)��z<<������z(R)�����o��z+-���2���3��)rH�acute��r����P�������1����z>>��z1/4��z1/2��z3/4�����A�������������AE���C���E���������I���������D���N���O���������������U�����������b���B���a�������������ae����r����������i�����������n�����������/�y)	������������������rs€�s‚�sƒ�s„�s…�s†�s‡�sˆ�s‰�sŠ�s‹�sŒ�sŽ�s‘�s’�s“�s”�s•�s–�s—�s˜�s™�sš�s›�sœ�sž�sŸ�s �s¡�s¢�s£�s¤�s¥�s¦�s§�s¨�s©�sª�s«�s¬�s­�s®�s¯�s°�s±�s²�s³�s´�sµ�s¶�s·�s¸�s¹�sº�s»�s¼�s½�s¾�s¿�sÀ�sÁ��sÂ��sÃ��sÄ��sÅ��sÆ��sÇ��sÈ��sÉ��sÊ��sË��sÌ��sÍ��sÎ��sÏ��sÐ��sÑ��sÒ��sÓ��sÔ��sÕ��sÖ��s×��sØ��sÙ��sÚ��sÛ��sÜ��sÝ��sÞ��sß��sà����sâ��sã��sä��så��sæ��sç��sè��sé��sê��së��sì��sí��sî��sï��sð��sñ��sò��só��sô�sõ�sö�s÷�sø�sù�sú�sûsüsýsþ)���))r�rr�)rrr�)rr r�rrrc��|jdd�j�dvrtd��|j�dvrtd��g}d}d}|t|�kr�||}t	|t
�st
|�}||jk\r7||jkr(|jD]\}}	}
||k\s�
||	ks�||
z
}nTnR|dk\rH||jvr:|j|||�|j|j|�|d	z
}|}n|d	z
}|t|�kr��|dk(r|S|j||d
�dj|�S)aFix characters from one encoding embedded in some other encoding.

        Currently the only situation supported is Windows-1252 (or its
        subset ISO-8859-1), embedded in UTF-8.

        :param in_bytes: A bytestring that you suspect contains
            characters from multiple encodings. Note that this _must_
            be a bytestring. If you've already converted the document
            to Unicode, you're too late.
        :param main_encoding: The primary encoding of `in_bytes`.
        :param embedded_encoding: The encoding that was used to embed characters
            in the main document.
        :return: A bytestring in which `embedded_encoding`
          characters have been converted to their `main_encoding`
          equivalents.
        r�r�)r��windows_1252zPWindows-1252 and ISO-8859-1 are the only currently supported embedded encodings.)�utf8r�z4UTF-8 is the only currently supported main encoding.rrrNr)
r[rx�NotImplementedErrorr*rr�r �FIRST_MULTIBYTE_MARKER�LAST_MULTIBYTE_MARKER�MULTIBYTE_MARKERS_AND_SIZES�WINDOWS_1252_TO_UTF8r�r-)rS�in_bytes�
main_encoding�embedded_encoding�byte_chunks�chunk_start�pos�byte�start�end�sizes           r�	detwinglezUnicodeDammit.detwingles���&�$�$�S�#�.�4�4�6�?,�,�%�&�'�
'���� �(9�9�%�F�H�
H��������C��M�!��C�=�D��d�C�(��4�y����2�2�2��C�5�5�5�),�(G�(G�$�E�3���u�}�����t����)H����$�#�*B�*B�"B��"�"�8�K��#<�=��"�"�3�#;�#;�D�#A�B��q���!���q���3�C��M�!�4�!���O�
���x���5�6��x�x��$�$r)�strict)r-r�)rmrnrorpr�r�r�r�r�r�r�r�r�r�r�r�r2r1r/r0rrr=rrrr�r�
sm���%0�!,�.�O�#
��9;�!%�u�� $��V*�p�"�>+��/��/�� 	�(��)�(���(��*�(���(��*�	(�
�+�(��+�
(��+�(���(��+�(��*�(��+�(��)�(���(��)�(���(� ��!(�"+�*�*�*�)�*�*�)�*�*�+�)��)�%�?(�H�HB
��%�B
��#�B
�	�#�B
�	�#�	B
�
	�$�B
�	�%�
B
�	�#�B
�	�$�B
�	�#�B
�	�#�B
�	�#�B
�	�#�B
�	�$�B
�	�#�B
�	�#�B
� 	�#�!B
�"	�#�#B
�$	�#�%B
�&	�#�'B
�(	�#�)B
�*	�#�+B
�,	�#�-B
�.	�#�/B
�0	�$�1B
�2	�#�3B
�4	�&�5B
�6	�#�7B
�8	�#�9B
�:	�$�;B
�<	�#�=B
�>	�#�?B
�@	�#�AB
�B	�#�CB
�D	�#�EB
�F	�#�GB
�H	�%�IB
�J	�#�KB
�N	�%�OB
�P	�#�QB
�R	�#�SB
�T	�$�UB
�V	�"�WB
�X	�&�YB
�Z	�$�[B
�\	�#�]B
�^	�#�_B
�`	�%�aB
�b	�#�cB
�d	�#�eB
�f	�$�gB
�h	�#�iB
�j	�#�kB
�l	�.�mB
�n	�#�oB
�p	�#�qB
�r	�#�sB
�t	�#�uB
�v	�#�wB
�x	�&�yB
�z	�$�{B
�|	�%�}B
�~	�%�B
�@	�%�AB
�B	�#�CB
�D	�#�EB
�F	�#�GB
�H	�#�IB
�J	�#�KB
�L	�#�MB
�N	�#�OB
�P	�$�QB
�R	�#�SB
�T	�#�UB
�V	�#�WB
�X	�#�YB
�Z	�#�[B
�\	�#�]B
�^	�#�_B
�`	�#�aB
�b	�#�cB
�d	�#�eB
�f	�#�gB
�h	�#�iB
�j	�#�kB
�l	�#�mB
�n	�#�oB
�p	�#�qB
�r	�#�sB
�t	�#�uB
�v	�#�wB
�x	�#�yB
�z	�#�{B
�|	�#�}B
�~	�#�B
�@	�#�AB
�B	�#�CB
�D	�#�EB
�F	�#�GB
�H	�#�IB
�J	�#�KB
�L	�#�MB
�N	�#�OB
�P	�$�QB
�R	�#�SB
�T	�#�UB
�V	�#�WB
�X	�#�YB
�Z	�#�[B
�\	�#�]B
�^	�#�_B
�`	�#�aB
�b	�#�cB
�d	�#�eB
�f	�#�gB
�h	�#�iB
�j	�#�kB
�l	�#�mB
�n	�#�oB
�p	�#�qB
�r���������CB
��R{
���{
���{
�	
�{�{
�	
��	{
�
	
��{
�	
��
{
�	
��{
�	
�{�{
�	
��{
�	
�{�{
�	
��{
�	
�{�{
�	
�{�{
�	
��{
�	
��{
� 	
��!{
�"	
��#{
�$	
��%{
�&	
��'{
�(	
��){
�*	
�{�+{
�,	
��-{
�.	
�{�/{
�0	
��1{
�2	
�{�3{
�4	
�{�5{
�6	
�{�7{
�8	
�{�9{
�:	
�{�;{
�<	
�{�={
�>	
�{�?{
�@	
�{�A{
�B	
�{�C{
�D	
�{�E{
�F	
�{�G{
�H	
�{�I{
�J	
�{�K{
�L	
�{�M{
�N	
�{�O{
�P	
�{�Q{
�R	
�{�S{
�T	
�{�U{
�V	
�{�W{
�X	
�{�Y{
�Z	
�{�[{
�\	
�{�]{
�^	
�{�_{
�`	
�{�a{
�b	
�{�c{
�d	
�{�e{
�f	
�{�g{
�h	
�{�i{
�j	
�{�k{
�l	
�{�m{
�n	
�{�o{
�p	
�{�q{
�r	
�{�s{
�t	
�{�u{
�v	
�{�w{
�x	
�{�y{
�z	
�{�{{
�|	
�{�}{
�~	
�{�{
�@	
�{�A{
�B	
�{�C{
�D	
�{�E{
�F	
�{�G{
�H	
�{�I{
�J	
�{�K{
�L	
�{�M{
�N	
�{�O{
�P	
�{�Q{
�R	
�{�S{
�T	
�{�U{
�V	
�{�W{
�X	
�{�Y{
�Z	
�{�[{
�\	
�{�]{
�^	
�{�_{
�`	
�{�a{
�b	
�{�c{
�d	
�{�e{
�f	
�{�g{
�h	
�{�i{
�j	
�{�k{
�l	
�{�m{
�n	
�{�o{
�p	
�{�q{
�r	
�{�s{
�t	
�{�u{
�v	
�{�w{
�x	
�{�y{
�z	
�w�{{
�|	
�{�}{
�~	
�{�{
�@	
�{�A{
�B	
�{�C{
�D	
�{�E{
�F	
�{�G{
�H	
�{�I{
�J	
�{�K{
�L	
�{�M{
�N	
�{�O{
�P	
�{�Q{
�R	
�{�S{
�T	
�{�U{
�V	
�{�W{
�X	
�{�Y{
�Z	
�{�[{
�\	
�{�]{
�^	
�{�_{
�`	
�{�a{
�b	
�{�c{
�d	
�{�e{
�f	
�{�g{
�h	
�{�i{
�j	
�{�k{
�l	
�{�m{
�n	
�{�o{
�p���u{
��z#
��9��;�A�>��7��;�A�>���/5�$2�@%��@%rr�)rp�__license__�
html.entitiesr�collectionsrr�r1r��stringr
�cchardet�ImportError�chardet�charset_normalizerr�xml_encoding�	html_meta�dictr�r2r�rrr�r	r�objectrrtr�rrr�<module>rKsH�����(�#�
�	��
���"�%��4�
�
;��C�	��v��
�R�Z�Z�	�(�(��1�2�4�4�
8��B�J�J�|�*�*�7�3�R�T�T�:���U��
�R�Z�Z�	�2�4�4�
(��B�J�J�|�R�T�T�*���S��
 �w,��w,�tK�K�Z|%�|%��[�"�
"�	)���"�	"�7���	"�!�N�	"��	"��"�sY�C<�<D(�D�D(�D"�
D�D"�D�D"�D�D"�D(�!D"�"D(�'D(

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists