Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/future/backports/urllib/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/future/backports/urllib/__pycache__/parse.cpython-311.pyc

�

�܋fЋ��:�dZddlmZmZmZddlmZmZmZm	Z	m
Z
mZddlm
Z
ddlZddlZddlZgd�Zgd�Zgd�Zgd	�Zgd
�Zgd�Zgd�Zd
ZdZiZd�ZdZdZd�Zeefd�Zeefd�Z d�Z!Gd�de"��Z#Gd�de"��Z$Gd�de"��Z%Gd�de%e#��Z&Gd�de%e$��Z'dd lm(Z(e(d!d"��Z)e(d#d$��Z*e(d%d&��Z+e&Z,Gd'�d!e)e#��Z-Gd(�d#e*e&��Z.Gd)�d%e+e&��Z/Gd*�d+e)e$��Z0Gd,�d-e*e'��Z1Gd.�d/e+e'��Z2d0�Z3e3��[3d[d3�Z4d4�Z5d\d5�Z6d[d6�Z7d7�Z8d8�Z9d]d9�Z:d:�Z;d;Z<ed<�e<D����Z=d=�Z>ej?d>��Z@d^dA�ZA		d_dC�ZB		d_dD�ZCd^dE�ZDeEedF����ZFeeF��ZGiZHGdG�dHejI��ZJd`dJ�ZKdadK�ZLdbdL�ZMdcdM�ZNdN�ZOdO�ZPdaQdP�ZRdaSdQ�ZTdaUdR�ZVdaWdS�ZXdaYdT�ZZda[dddV�Z\da]dW�Z^da_dX�Z`dY�ZadabdZ�ZcdS)ea�
Ported using Python-Future from the Python 3.3 standard library.

Parse (absolute and relative) URLs.

urlparse module is based upon the following RFC specifications.

RFC 3986 (STD66): "Uniform Resource Identifiers" by T. Berners-Lee, R. Fielding
and L.  Masinter, January 2005.

RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter
and L.Masinter, December 1999.

RFC 2396:  "Uniform Resource Identifiers (URI)": Generic Syntax by T.
Berners-Lee, R. Fielding, and L. Masinter, August 1998.

RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zawinski, July 1998.

RFC 1808: "Relative Uniform Resource Locators", by R. Fielding, UC Irvine, June
1995.

RFC 1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M.
McCahill, December 1994

RFC 3986 is considered the current standard and any future changes to
urlparse module should conform with it.  The urlparse module is
currently not entirely compliant with this RFC due to defacto
scenarios for parsing, and for backward compatibility purposes, some
parsing quirks from older RFCs are retained. The testcases in
test_urlparse.py provides a good indicator of parsing behavior.
�)�absolute_import�division�unicode_literals)�bytes�chr�dict�int�range�str)�raise_with_tracebackN)�urlparse�
urlunparse�urljoin�	urldefrag�urlsplit�
urlunsplit�	urlencode�parse_qs�	parse_qsl�quote�
quote_plus�quote_from_bytes�unquote�unquote_plus�unquote_to_bytes)�ftp�http�gopher�nntp�imap�wais�file�https�shttp�mms�prospero�rtsp�rtspu��sftp�svn�svn+ssh)rrrr�telnetr r!r"r%r#r$�snewsr&r'r(�rsyncr)r+r,r*�nfs�gitzgit+ssh)r�hdlr&rr r#r$r'r(�sip�sipsr%r)r*�tel)
rr2�mailto�newsr-r!r r.r3r4)rr!r r#r$r%rr'r(r3r4r))
rr2rrr7rr!r#r$r.r"r&r)zAabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-.�c�j�t���t���dS)z,Clear the parse cache and the quoters cache.N)�_parse_cache�clear�
_safe_quoters���n/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/future/backports/urllib/parse.py�clear_cacher@Ns,���������������r>�ascii�strictc��|S�Nr=)�objs r?�_nooprF]s���Jr>c�.�|�||��SrD��encode)rE�encoding�errorss   r?�_encode_resultrL`s���:�:�h��'�'�'r>c�>���t��fd�|D����S)Nc3�L�K�|]}|r|�����ndV��dS)r)N��decode��.0�xrJrKs  ��r?�	<genexpr>z_decode_args.<locals>.<genexpr>fs;�����G�G�Q�q�8����(�F�+�+�+�b�G�G�G�G�G�Gr>)�tuple)�argsrJrKs ``r?�_decode_argsrWds*�����G�G�G�G�G�$�G�G�G�G�G�Gr>c���t|dt��}|dd�D],}|r(t|t��|krtd����-|r|tfzSt	|��t
fzS)Nr�z$Cannot mix str and non-str arguments)�
isinstancer�	TypeErrorrFrWrL)rV�	str_input�args   r?�_coerce_argsr^hs����4��7�C�(�(�I��A�B�B�x�D�D���	D�:�c�3�'�'�9�4�4��B�C�C�C�����u�h�������� 1�1�1r>c��eZdZdZdZdd�ZdS)�_ResultMixinStrz>Standard approach to encoding parsed results from str to bytesr=rArBc�4���|j��fd�|D���S)Nc3�D�K�|]}|�����V��dSrDrHrQs  ��r?rTz)_ResultMixinStr.encode.<locals>.<genexpr>~�1�����*T�*T�!�1�8�8�H�f�+E�+E�*T�*T�*T�*T�*T�*Tr>)�_encoded_counterpart��selfrJrKs ``r?rIz_ResultMixinStr.encode}�,����(�t�(�*T�*T�*T�*T�*T�t�*T�*T�*T�U�Ur>N�rArB)�__name__�
__module__�__qualname__�__doc__�	__slots__rIr=r>r?r`r`y�9������H�H��I�V�V�V�V�V�Vr>r`c��eZdZdZdZdd�ZdS)�_ResultMixinBytesz>Standard approach to decoding parsed results from bytes to strr=rArBc�4���|j��fd�|D���S)Nc3�D�K�|]}|�����V��dSrDrOrQs  ��r?rTz+_ResultMixinBytes.decode.<locals>.<genexpr>�rcr>)�_decoded_counterpartres ``r?rPz_ResultMixinBytes.decode�rgr>Nrh)rirjrkrlrmrPr=r>r?rprp�rnr>rpc�n�eZdZdZdZed���Zed���Zed���Zed���Z	dS)�_NetlocResultMixinBasezHShared methods for the parsed result objects containing a netloc elementr=c��|jdS�Nr��	_userinfo�rfs r?�usernamez_NetlocResultMixinBase.username�����~�a� � r>c��|jdS)NrYrxrzs r?�passwordz_NetlocResultMixinBase.password�r|r>c�V�|jd}|sd}n|�|���}|Srw)�	_hostinfo�lower)rf�hostnames  r?r�z_NetlocResultMixinBase.hostname�s7���>�!�$���	(��H�H�
�
!��~�~�'�'�H��r>c�f�|jd}|�!t|d��}d|cxkrdksndS|S)NrY�
ri��)r�r	)rf�ports  r?r�z_NetlocResultMixinBase.port�sJ���~�a� �����t�R�=�=�D��$�'�'�'�'�%�'�'�'�'��t��r>N)
rirjrkrlrm�propertyr{r~r�r�r=r>r?ruru�s�������R�R��I�
�!�!��X�!��!�!��X�!�����X������X���r>ruc�>�eZdZdZed���Zed���ZdS)�_NetlocResultMixinStrr=c��|j}|�d��\}}}|r|�d��\}}}|sd}ndx}}||fS)N�@�:��netloc�
rpartition�	partition�rfr��userinfo�	have_info�hostinfor{�
have_passwordr~s        r?ryz_NetlocResultMixinStr._userinfo�sh�����(.�(9�(9�#�(>�(>�%��)�X��	'�08�0B�0B�3�0G�0G�-�H�m�X� �
 ����"&�&�H�x���!�!r>c� �|j}|�d��\}}}|�d��\}}}|r3|�d��\}}}|�d��\}}}n|�d��\}}}|sd}||fS)Nr��[�]r�r��	rfr��_r��have_open_br�	bracketedr�r��	have_ports	         r?r�z_NetlocResultMixinStr._hostinfo�s�������*�*�3�/�/���1�h�%-�%7�%7��%<�%<�"��<���	@� )� 3� 3�C� 8� 8��H�a��!%����!4�!4��A�y�$�$�(0�(:�(:�3�(?�(?�%�H�i���	��D���~�r>N�rirjrkrmr�ryr�r=r>r?r�r���M�������I�
�	"�	"��X�	"�����X���r>r�c�>�eZdZdZed���Zed���ZdS)�_NetlocResultMixinBytesr=c��|j}|�d��\}}}|r|�d��\}}}|sd}ndx}}||fS)N�@�:r�r�s        r?ryz!_NetlocResultMixinBytes._userinfo�sh�����(.�(9�(9�$�(?�(?�%��)�X��	'�08�0B�0B�4�0H�0H�-�H�m�X� �
 ����"&�&�H�x���!�!r>c� �|j}|�d��\}}}|�d��\}}}|r3|�d��\}}}|�d��\}}}n|�d��\}}}|sd}||fS)Nr��[�]r�r�r�s	         r?r�z!_NetlocResultMixinBytes._hostinfo�s�������*�*�4�0�0���1�h�%-�%7�%7��%=�%=�"��<���	A� )� 3� 3�D� 9� 9��H�a��!%����!5�!5��A�y�$�$�(0�(:�(:�4�(@�(@�%�H�i���	��D���~�r>Nr�r=r>r?r�r��r�r>r�)�
namedtuple�DefragResultzurl fragment�SplitResultz!scheme netloc path query fragment�ParseResultz(scheme netloc path params query fragmentc��eZdZdZd�ZdS)r�r=c�B�|jr|jdz|jzS|jS)N�#��fragment�urlrzs r?�geturlzDefragResult.geturl�s&���=�	��8�c�>�D�M�1�1��8�Or>N�rirjrkrmr�r=r>r?r�r���(�������I�����r>c��eZdZdZd�ZdS)r�r=c� �t|��SrD�rrzs r?r�zSplitResult.geturl�����$���r>Nr�r=r>r?r�r���(�������I� � � � � r>c��eZdZdZd�ZdS)r�r=c� �t|��SrD�rrzs r?r�zParseResult.geturlr�r>Nr�r=r>r?r�r��r�r>c��eZdZdZd�ZdS)�DefragResultBytesr=c�B�|jr|jdz|jzS|jS)N�#r�rzs r?r�zDefragResultBytes.geturls&���=�	��8�d�?�T�]�2�2��8�Or>Nr�r=r>r?r�r�r�r>r�c��eZdZdZd�ZdS)�SplitResultBytesr=c� �t|��SrDr�rzs r?r�zSplitResultBytes.geturlr�r>Nr�r=r>r?r�r�r�r>r�c��eZdZdZd�ZdS)�ParseResultBytesr=c� �t|��SrDr�rzs r?r�zParseResultBytes.geturlr�r>Nr�r=r>r?r�r�r�r>r�c��ttfttftt
ff}|D]\}}||_||_�dSrD)r�r�r�r�r�r�rdrs)�
_result_pairs�_decoded�_encodeds   r?�_fix_result_transcodingr�sW��	�(�)�	�&�'�	�&�'��M�
,�1�1���(�(0��%�(0��%�%�1�1r>r)Tc���t||��\}}}t|||��}|\}}}}}|tvrd|vrt|��\}}nd}t	||||||��}	||	��S)a#Parse a URL into 6 components:
    <scheme>://<netloc>/<path>;<params>?<query>#<fragment>
    Return a 6-tuple: (scheme, netloc, path, params, query, fragment).
    Note that we don't break the components up in smaller bits
    (e.g. netloc is a single string) and we don't expand % escapes.�;r))r^r�uses_params�_splitparamsr�)
r��scheme�allow_fragments�_coerce_result�splitresultr��queryr��params�results
          r?r
r
$s���#/�s�F�";�";��C����3���8�8�K�+6�(�F�F�C���
��������"�3�'�'���V�V���
����f�e�X�
F�
F�F��>�&�!�!�!r>c���d|vr4|�d|�d����}|dkr|dfSn|�d��}|d|�||dzd�fS)N�/r�rr)rY)�find�rfind)r��is  r?r�r�4so��
�s�{�{��H�H�S�#�)�)�C�.�.�)�)���q�5�5���7�N��
�H�H�S�M�M���r��r�7�C��!����I��r>c��t|��}dD].}|�||��}|dkrt||��}�/|||�||d�fS)Nz/?#r)�lenr��min)r��start�delim�c�wdelims     r?�_splitnetlocr�=sd����H�H�E�
�'�'�����!�U�#�#���Q�;�;���v�&�&�E���u�U�{��S����[�(�(r>c�.�t||��\}}}t|��}|||t|��t|��f}t�|d��}|r||��Stt��tkrt��dx}x}}|�d��}	|	dk�r9|d|	�dkr�|d|	��	��}||	dzd�}|dd�dkr2t|d��\}}d	|vrd
|vsd
|vrd	|vrtd���|rd|vr|�dd��\}}d
|vr|�d
d��\}}t|||||��}
|
t|<||
��S|d|	�D]
}|tvrnG�||	dzd�}|rtd�|D����r|d|	��	��|}}|dd�dkr2t|d��\}}d	|vrd
|vsd
|vrd	|vrtd���|rd|vr|�dd��\}}d
|vr|�d
d��\}}t|||||��}
|
t|<||
��S)aParse a URL into 5 components:
    <scheme>://<netloc>/<path>?<query>#<fragment>
    Return a 5-tuple: (scheme, netloc, path, query, fragment).
    Note that we don't break the components up in smaller bits
    (e.g. netloc is a single string) and we don't expand % escapes.Nr)r�rrrY��//r�r�zInvalid IPv6 URLr��?c3�K�|]}|dvV��	dS)�
0123456789Nr=�rRr�s  r?rTzurlsplit.<locals>.<genexpr>ls'����C�C��q��4�C�C�C�C�C�Cr>)r^�bool�typer:�getr��MAX_CACHE_SIZEr@r�r�r��
ValueError�splitr��scheme_chars�any)
r�r�r�r��key�cachedr�r�r�r��vr��rests
             r?rrEs��#/�s�F�";�";��C����?�+�+�O�

�v���S�	�	�4��<�<�
?�C�
�
�
�c�4�
(�
(�F�
�&��~�f�%�%�%�
�<���N�*�*��
�
�
� "�"�F�"�U�X�����
�
�A��1�u�u��r��r�7�f�����!��W�]�]�_�_�F��a��c�d�d�)�C��2�A�2�w�$���*�3��2�2�����F�]�]�s�&�'8�'8�����3�f�+<�+<�$�%7�8�8�8��
2�3�#�:�:� #�	�	�#�q� 1� 1�
��X��c�z�z� �Y�Y�s�A�.�.�
��U��F�F�C���A�A�A� !�L���!�>�!�$�$�$��R�a�R��		4�		4�A���$�$���%�
�q��s�t�t�9�D��
4�3�C�C�d�C�C�C�C�C�
4�!�"�1�"�g�m�m�o�o�t���
�2�A�2�w�$���"�3��*�*����
�F�]�]�s�&�0�0�����3�f�#4�#4��/�0�0�0��*�3�#�:�:��	�	�#�q�)�)�
��X�
�c�z�z��Y�Y�s�A�&�&�
��U��F�F�C���9�9�A��L����>�!���r>c	�p�t|�\}}}}}}}|r|�d|��}|t|||||f����S)z�Put a parsed URL back together again.  This may result in a
    slightly different, but equivalent URL, if the URL that was parsed
    originally had redundant delimiters, e.g. a ? with an empty query
    (the draft states that these are equivalent).r�)r^r)�
componentsr�r�r�r�r�r�r�s        r?rr}s[��3?�
�2K�A�F�F�C����.�
�&����f�f�%���>�*�f�f�c�5�(�%K�L�L�M�M�Mr>c���t|�\}}}}}}|s|r6|tvr-|dd�dkr|r|dd�dkrd|z}d|pdz|z}|r|dz|z}|r|dz|z}|r|d	z|z}||��S)
akCombine the elements of a tuple as returned by urlsplit() into a
    complete URL as a string. The data argument can be any five-item iterable.
    This may result in a slightly different, but equivalent URL, if the URL that
    was parsed originally had unnecessary delimiters (for example, a ? with an
    empty query; the RFC states that these are equivalent).Nr�r�rYr�r)r�r�r�)r^�uses_netloc)r�r�r�r�r�r�r�s       r?rr�s���+7�
�*C�9�F�F�C���.�
�*�&�*�V�{�2�2�s�2�A�2�w�$����2�3�r��r�7�c�>�>��s��3��f�l��#�c�)��
�!��s�l�S� ��� ��C�i�%����#��C�i�(�"���>�#���r>c
��|s|S|s|St||��\}}}t|d|��\}}}}}}	t|||��\}
}}}
}}|
|ks	|
tvr||��S|
tvr"|r|t	|
|||
||f����S|}|dd�dkr|t	|
|||
||f����S|s(|
s&|}|}
|s|}|t	|
|||
||f����S|�d��dd�|�d��z}|ddkrd|d<d|vr|�d��d|v�	d}t|��dz
}||kr0||dkr||dz
dvr||dz
|dz�=n|dz}||k�0n�L|ddgkrd|d<n't|��d	kr|ddkrdg|d
d�<|t	|
|d�|��|
||f����S)zaJoin a base URL and a possibly relative URL to form an absolute
    interpretation of the latter.r)NrYr�����.�..)r)r�r����)	r^r
�
uses_relativer�rr��remover��join)�baser�r�r��bscheme�bnetloc�bpath�bparams�bquery�	bfragmentr�r��pathr�r�r��segmentsr��ns                   r?rr�s�����
����� ,�T�3� 7� 7��D�#�~��T�2��/�/�8�G�W�e�W�f�i�
�S�'�?�3�3�2�F�F�D�&�%��
����F�-�7�7��~�c�"�"�"�
�����	I�!�>�*�f�f�d�.4�e�X�.G�#H�#H�I�I�
I����B�Q�B�x�3����~�j�&�&�$�*0�%��*C�D�D�E�E�	E��E��E������	��E��~�j�&�&�$�*0�%��*C�D�D�E�E�	E��{�{�3������$�t�z�z�#���6�H���|�s�������

��/�/����������/�/�
�
����M�M�A����!�e�e����t�#�#��Q�q�S�M��3�3��Q�q�S��1��W�%���!��A��!�e�e�
�
��B��:��������	�X���!�	�	����� 4� 4�������
��>�*�f�f�c�h�h�x�6H�6H�&,�e�X�&?�@�@�A�A�Ar>c��t|��\}}d|vr,t|��\}}}}}}t|||||df��}nd}|}|t||����S)z�Removes any existing fragment from URL.

    Returns a tuple of the defragmented URL and the fragment.  If
    the URL contained no fragments, the second element is the
    empty string.
    r�r))r^r
rr�)	r�r��sr�p�a�q�frag�defrags	         r?rr�sw��'�s�+�+��C��
�c�z�z�&�s�m�m���1�a��A�t��Q��1�a��B�/�0�0��������>�,�v�t�4�4�5�5�5r>�0123456789ABCDEFabcdefc	#�K�|]F}tD]<}||z���tt||zd��g��fV��=�GdS)�N)�_hexdigrIrr	)rRr�bs   r?rTrT�st����5�5��G�5�5�'(���E�>�>�#�#�U�C��A��r�N�N�+;�%<�%<�=�5�5�5�5�5�5�5r>c�&�|s|jtd��St|t��r|�d��}t|��}|�d��}t|��dkr|S|dg}|j}|dd�D]Z}	|t|dd���||dd����5#t$r|d��||��Y�WwxYwtd���	|��S)z,unquote_to_bytes('abc%20def') -> b'abc def'.r>�utf-8�%rYrNr�)
r�rrZrrIr��append�
_hextobyte�KeyErrorr)�string�bits�resr�items     r?rr�s-��������S�z�z���&�#���(����w�'�'���6�]�]�F��<�<����D�
�4�y�y�A�~�~��
���7�)�C�
�Z�F��Q�R�R�����	��F�:�d�2�A�2�h�'�(�(�(��F�4����8�������	�	�	��F�4�L�L�L��F�4�L�L�L�L�L�	������:�:�?�?�3���s�1C� C.�-C.z([-]+)r�replacec�x�d|vr	|j|S|�d}|�d}t�|��}|dg}|j}tdt	|��d��D]H}|t||���||����|||dz���Id�|��S)	a�Replace %xx escapes by their single-character equivalent. The optional
    encoding and errors parameters specify how to decode percent-encoded
    sequences into Unicode characters, as accepted by the bytes.decode()
    method.
    By default, percent-encoded sequences are decoded with UTF-8, and invalid
    sequences are replaced by a placeholder character.

    unquote('abc%20def') -> 'abc def'.
    �%Nrr"rrYr�r))r��_asciirerr
r�rrPr)rrJrKrr rr�s       r?rrs����&�������
�����
�~����>�>�&�!�!�D���7�)�C�
�Z�F�
�1�c�$�i�i��
#�
#��������Q��(�(�/�/��&�A�A�B�B�B���t�A��E�{�����
�7�7�3�<�<�r>Fc��i}t|||||���}|D]+\}}||vr||�|���%|g||<�,|S)aOParse a query given as a string argument.

        Arguments:

        qs: percent-encoded query string to be parsed

        keep_blank_values: flag indicating whether blank values in
            percent-encoded queries should be treated as blank strings.
            A true value indicates that blanks should be retained as
            blank strings.  The default false value indicates that
            blank values are to be ignored and treated as if they were
            not included.

        strict_parsing: flag indicating what to do with parsing errors.
            If false (the default), errors are silently ignored.
            If true, errors raise a ValueError exception.

        encoding and errors: specify how to decode percent-encoded sequences
            into Unicode characters, as accepted by the bytes.decode() method.
    �rJrK)rr)	�qs�keep_blank_values�strict_parsingrJrK�
parsed_result�pairs�name�values	         r?rrsx��,�M��b�+�^�'��
8�
8�
8�E��*�*���e��=� � ��$��&�&�u�-�-�-�-�#(�'�M�$����r>c�l�t|��\}}d�|�d��D��}g}|D]�}|s|s�|�dd��}	t|	��dkr-|rtd|�����|r|	�d��n�]t|	d��s|r�|	d�d	d
��}
t
|
||���}
||
��}
|	d�d	d
��}t
|||���}||��}|�|
|f����|S)a;Parse a query given as a string argument.

    Arguments:

    qs: percent-encoded query string to be parsed

    keep_blank_values: flag indicating whether blank values in
        percent-encoded queries should be treated as blank strings.  A
        true value indicates that blanks should be retained as blank
        strings.  The default false value indicates that blank values
        are to be ignored and treated as if they were  not included.

    strict_parsing: flag indicating what to do with parsing errors. If
        false (the default), errors are silently ignored. If true,
        errors raise a ValueError exception.

    encoding and errors: specify how to decode percent-encoded sequences
        into Unicode characters, as accepted by the bytes.decode() method.

    Returns a list, as G-d intended.
    c�B�g|]}|�d��D]}|���S)r��r�)rR�s1�s2s   r?�
<listcomp>zparse_qsl.<locals>.<listcomp>Ts/��@�@�@�B�"�(�(�3�-�-�@�@�B�R�@�@�@�@r>�&�=rYr�zbad query field: r)r�+� r')r^r�r�r�rr"r)r(r)r*rJrKr�r,�r�
name_value�nvr-r.s            r?rr<sa��.&�b�)�)��B��@�@�"�(�(�3�-�-�@�@�@�E�
�A��$�$�
��	�.�	��
�
�
�c�1�
%�
%���r�7�7�a�<�<��
H� �j�*�*�!F�G�G�G� �
��	�	�"�
�
�
�
���r�!�u�:�:�	$�*�	$��a�5�=�=��c�*�*�D��4�(�6�B�B�B�D�!�>�$�'�'�D��q�E�M�M�#�s�+�+�E��E�H�V�D�D�D�E�"�N�5�)�)�E�
�H�H�d�E�]�#�#�#���Hr>c�P�|�dd��}t|||��S)z�Like unquote(), but also replace plus signs by spaces, as required for
    unquoting HTML form values.

    unquote_plus('%7e/abc+def') -> '~/abc def'
    r7r8)r"r)rrJrKs   r?rrls)���^�^�C��
%�
%�F��6�8�V�,�,�,r>sAABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-c�$�eZdZdZd�Zd�Zd�ZdS)�Quoterz�A mapping from bytes (in range(0,256)) to strings.

    String values are percent-encoded byte values, unless the key < 128, and
    in the "safe" set (either the specified safe set, or default set).
    c�^�t�t|����|_dS)zsafe: bytes object.N)�_ALWAYS_SAFE�unionr�safe)rfrBs  r?�__init__zQuoter.__init__�s!�� �&�&�u�T�{�{�3�3��	�	�	r>c�&�dt|��zS)Nz<Quoter %r>)rrzs r?�__repr__zQuoter.__repr__�s���t�D�z�z�)�)r>c�j�||jvrt|��nd�|��}|||<|S)Nz%{0:02X})rBr�format)rfrr s   r?�__missing__zQuoter.__missing__�s7���T�Y���c�!�f�f�f�J�,=�,=�a�,@�,@����Q���
r>N)rirjrkrlrCrErHr=r>r?r>r>|sK��������4�4�4�*�*�*�����r>r>r�c���t|t��r#|s|S|�d}|�d}|�||��}n"|�td���|�td���t	||��S)a�quote('abc def') -> 'abc%20def'

    Each part of a URL, e.g. the path info, the query, etc., has a
    different set of reserved characters that must be quoted.

    RFC 2396 Uniform Resource Identifiers (URI): Generic Syntax lists
    the following reserved characters.

    reserved    = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
                  "$" | ","

    Each of these characters is reserved in some component of a URL,
    but not necessarily in all of them.

    By default, the quote function is intended for quoting the path
    section of a URL.  Thus, it will not encode '/'.  This character
    is reserved, but in typical usage the quote function is being
    called on a path where the existing slash characters are used as
    reserved characters.

    string and safe may be either str or bytes objects. encoding must
    not be specified if string is a str.

    The optional encoding and errors parameters specify how to deal with
    non-ASCII characters, as accepted by the str.encode method.
    By default, encoding='utf-8' (characters are encoded with UTF-8), and
    errors='strict' (unsupported characters raise a UnicodeEncodeError).
    NrrBz,quote() doesn't support 'encoding' for bytesz*quote() doesn't support 'errors' for bytes)rZrrIr[r)rrBrJrKs    r?rr�s���:�&�#���J��	��M����H��>��F����x��0�0������J�K�K�K����H�I�I�I��F�D�)�)�)r>c�H�t|t��rd|vst|t��rd|vrt||||��St|t��rtd��}ntd��}t|||z||��}|�dd��S)z�Like quote(), but also replace ' ' with '+', as required for quoting
    HTML form values. Plus signs in the original string are escaped unless
    they are included in safe. It also does not have safe default to '/'.
    r8� r7)rZrrrr")rrBrJrK�spaces     r?rr�s���
�F�C�	 �	 �5�S��%6�%6�	�F�E�	"�	"�&7�'+�6�'9�'9��V�T�8�V�4�4�4��$������C������d����
�6�4�%�<��6�
:�
:�F��>�>�#�s�#�#�#r>c���t|ttf��std���|st	d��St|��}t|t��r$t	|���dd��}n(t|��}td�|D����}|�t|z��s|���S	t|�n.#t$r!t|��jxt|<�YnwxYwt	d���
�fd�|D����S)z�Like quote(), but accepts a bytes object rather than a str, and does
    not perform string-to-bytes encoding.  It always returns an ASCII string.
    quote_from_bytes(b'abc def?') -> 'abc%20def%3f'
    z!quote_from_bytes() expected bytesr)rA�ignorec��g|]
}|dk�|��S)�r=r�s  r?r4z$quote_from_bytes.<locals>.<listcomp>�s��1�1�1�A��S���a���r>c�&��g|]
}�|����Sr=r=)rR�char�quoters  �r?r4z$quote_from_bytes.<locals>.<listcomp>�s!���5�5�5�$������5�5�5r>)rZr�	bytearrayr[rrI�rstrip�_ALWAYS_SAFE_BYTESrPr<rr>�__getitem__r)�bsrBrSs  @r?rr�sC���
�b�5�)�,�-�-�=��;�<�<�<�
���2�w�w��	�r���B��$����3��4�y�y�����2�2����T�{�{���1�1��1�1�1�2�2��
�9�9�'�$�.�/�/���y�y�{�{��@��t�$�����@�@�@�'-�d�|�|�'?�?�
�d��f�f�f�@�����r�7�7�<�<�5�5�5�5�"�5�5�5�6�6�6s� 
C.�.(D�Dc�
�t|d��r|���}nw	t|��r"t|dt��st
�nD#t
$r7t
j��\}}}ttd��|��YnwxYwg}|s�|D]�\}	}
t|	t��rt|	|��}	ntt|	��|||��}	t|
t��rt|
|��}
ntt|
��|||��}
|�|	dz|
z�����n�|D�]�\}	}
t|	t��rt|	|��}	ntt|	��|||��}	t|
t��r,t|
|��}
|�|	dz|
z����t|
t��r.t|
|||��}
|�|	dz|
z����	t|
��}|
D]b}t|t��rt||��}ntt|��|||��}|�|	dz|z���c��F#t
$r>tt|
��|||��}
|�|	dz|
z��Y���wxYwtd���
|��S)a#Encode a sequence of two-element tuples or dictionary into a URL query string.

    If any values in the query arg are sequences and doseq is true, each
    sequence element is converted to a separate parameter.

    If the query arg is a sequence of two-element tuples, the order of the
    parameters in the output will match the order of parameters in the
    input.

    The query arg may be either a string or a bytes type. When query arg is a
    string, the safe, encoding and error parameters are sent the quote_plus for
    encoding.
    �itemsrz1not a valid non-string sequence or mapping objectr6r5)�hasattrrZr�rZrUr[�sys�exc_inforrrrrr)
r��doseqrBrJrK�ty�va�tb�l�kr�rS�elts
             r?rr�s=���u�g���E����
�
���	E��5�z�z�
 �*�U�1�X�u�"=�"=�
 �����
�	E�	E�	E�����J�B��B� ��,?�"@�"@�AC�
E�
E�
E�
E�
E�	E����
	�A��(0��
	"�
	"�D�A�q��!�U�#�#�
?��q�$�'�'����s�1�v�v�t�X�v�>�>���!�U�#�#�
?��q�$�'�'����s�1�v�v�t�X�v�>�>��
�H�H�Q��W�q�[�!�!�!�!�
	"��	0�	0�D�A�q��!�U�#�#�
?��q�$�'�'����s�1�v�v�t�X�v�>�>���!�U�#�#�
0��q�$�'�'������S��1��%�%�%�%��A�s�#�#�
0��q�$��&�9�9������S��1��%�%�%�%�0��A���A� !�0�0��%�c�5�1�1�O�",�S�$�"7�"7�C�C�",�S��X�X�t�X�v�"N�"N�C�����S��3��/�/�/�/�0��
!�*�*�*�"�3�q�6�6�4��6�B�B�A��H�H�Q��W�q�[�)�)�)�)�)�*�����s�8�8�=�=����s$�1A�>B�B�"J�AK �K c���t|t��rY	|�d�����}n0#t$r#t	dt|��zdz���wxYw|S)zto_bytes(u"URL") --> 'URL'.�ASCIIzURL z contains non-ASCII characters)rZrrIrP�UnicodeError�repr�r�s r?�to_bytesrjHs���
�#�s���A�	A��*�*�W�%�%�,�,�.�.�C�C���	A�	A�	A��v��S�	�	�1�?� @�A�A�
A�	A�����Js	�'?�-A,c��t|�����}|dd�dkr*|dd�dkr|dd����}|dd�dkr|dd����}|S)z8unwrap('<URL:type://host/path>') --> 'type://host/path'.NrY�<r��>�zURL:)r�stripris r?�unwraprpUs{��

�c�(�(�.�.�
�
�C�
�2�A�2�w�#�~�~�#�b�c�c�(�c�/�/��!�B�$�i�o�o����
�2�A�2�w�&����A�B�B��
�
���#��Jr>c��t�ddl}|jd��at�|��}|rC|�d��}|���|t
|��dzd�fSd|fS)z:splittype('type:opaquestring') --> 'type', 'opaquestring'.Nrz
^([^/:]+):rY)�	_typeprog�re�compile�match�groupr�r�)r�rsrur�s    r?�	splittyperw^s~�����	�	�	��B�J�|�,�,�	��O�O�C� � �E��5����Q�����|�|�~�~�s�3�v�;�;��?�#3�#3�4�4�4���9�r>c��t�ddl}|jd��at�|��}|rJ|�d��}|�d��}|r|�d��sd|z}||fSd|fS)z;splithost('//host[:port]/path') --> 'host[:port]', '/path'.Nrz^//([^/?]*)(.*)$rYr�r�)�	_hostprogrsrtrurv�
startswith)r�rsru�	host_portr	s     r?�	splithostr|ls������	�	�	��B�J�1�2�2�	��O�O�C� � �E����K�K��N�N�	��{�{�1�~�~���	�����,�,�	���:�D��$�����9�r>c��t�ddl}|jd��at�|��}|r|�dd��Sd|fS)zJsplituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'.Nrz^(.*)@(.*)$rYr�)�	_userprogrsrtrurv��hostrsrus   r?�	splituserr�}sX�����	�	�	��B�J�}�-�-�	��O�O�D�!�!�E��&�U�[�[��A�&�&�&���:�r>c��t�ddl}|jd|j��at�|��}|r|�dd��S|dfS)z/splitpasswd('user:passwd') -> 'user', 'passwd'.Nrz^([^:]*):(.*)$rYr�)�_passwdprogrsrt�Srurv)�userrsrus   r?�splitpasswdr��s_�����	�	�	� �b�j�!1�"�$�7�7�����d�#�#�E��&�U�[�[��A�&�&�&���:�r>c��t�ddl}|jd��at�|��}|r|�dd��S|dfS)z*splitport('host:port') --> 'host', 'port'.Nrz^(.*):([0-9]+)$rYr�)�	_portprogrsrtrurvrs   r?�	splitportr��sY�����	�	�	��B�J�0�1�1�	��O�O�D�!�!�E��&�U�[�[��A�&�&�&���:�r>r�c��t�ddl}|jd��at�|��}|rQ|�dd��\}}	|std���t
|��}n#t
$rd}YnwxYw||fS||fS)z�Split host and port, returning numeric port.
    Return given default port if no ':' found; defaults to -1.
    Return numerical port if a valid number are found after ':'.
    Return None if ':' but not a valid number.Nrz^(.*):(.*)$rYr�z	no digits)�
_nportprogrsrtrurvr�r	)r��defportrsrur��nports      r?�
splitnportr��s������	�	�	��R�Z�
�.�.�
����T�"�"�E����[�[��A�&�&�
��d�	��6�z�+�6�6�6���I�I�E�E���	�	�	��E�E�E�	�����U�{����=�s� A3�3B�Bc��t�ddl}|jd��at�|��}|r|�dd��S|dfS)z/splitquery('/path?query') --> '/path', 'query'.Nrz^(.*)\?([^?]*)$rYr�)�
_queryprogrsrtrurv�r�rsrus   r?�
splitqueryr��s[�����	�	�	��R�Z� 1�2�2�
����S�!�!�E��&�U�[�[��A�&�&�&���9�r>c��t�ddl}|jd��at�|��}|r|�dd��S|dfS)z)splittag('/path#tag') --> '/path', 'tag'.Nrz^(.*)#([^#]*)$rYr�)�_tagprogrsrtrurvr�s   r?�splittagr��sY�����	�	�	��2�:�.�/�/���N�N�3���E��&�U�[�[��A�&�&�&���9�r>c�P�|�d��}|d|dd�fS)zksplitattr('/path;attr1=value1;attr2=value2;...') ->
        '/path', ['attr1=value1', 'attr2=value2', ...].r�rrYNr1)r��wordss  r?�	splitattrr��s*��
�I�I�c�N�N�E���8�U�1�2�2�Y��r>c��t�ddl}|jd��at�|��}|r|�dd��S|dfS)z-splitvalue('attr=value') --> 'attr', 'value'.Nrz^([^=]*)=(.*)$rYr�)�
_valueprogrsrtrurv)�attrrsrus   r?�
splitvaluer��s[�����	�	�	��R�Z� 0�1�1�
����T�"�"�E��&�U�[�[��A�&�&�&���:�r>)r)T)r)T)rr")FFrr")r�NN)r)NN)r�)Fr)NN)r�)drl�
__future__rrr�future.builtinsrrrr	r
r�future.utilsrrsr\�collections�__all__r�r�r��non_hierarchical�
uses_query�
uses_fragmentr�r�r:r@�_implicit_encoding�_implicit_errorsrFrLrWr^�objectr`rprur�r�r��_DefragResultBase�_SplitResultBase�_ParseResultBase�
ResultBaser�r�r�r�r�r�r�r
r�r�rrrrrrrrrtr%rrrr�	frozensetr@rVr<�defaultdictr>rrrrrjrprrrwryr|r~r�r�r�r�r�r�r�r�r�r�r�r�r�r�r=r>r?�<module>r�s����>C�B�B�B�B�B�B�B�B�B�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�-�-�-�-�-�-�	�	�	�	�
�
�
�
�����:�:�:��#�#�#�
�B�B�B��)�)�)��F�F�F��<�<�<�
�)�)�)�
�
����������������"4�/�(�(�(�(�!3�.�H�H�H�H�2�2�2�"V�V�V�V�V�f�V�V�V�V�V�V�V�V��V�V�V������V����@�����2�O����<�����4�6G����<#�"�"�"�"�"��J�~�~�>�>���:�m�-P�Q�Q���:�m�-W�X�X��
#�
������$�o���� � � � � �"�$9� � � �
 � � � � �"�$9� � � ������)�+<���� � � � � �'�)@� � � �
 � � � � �'�)@� � � �1�1�1�������"�"�"�"� ���)�)�)�)�6�6�6�6�p	N�	N�	N����&3A�3A�3A�3A�j6�6�6� #��
�T�5�5�"�5�5�5�5�5�
� � � �:�2�:�&�'�'������2:?�&/�����@;@�'0�.
�.
�.
�.
�`-�-�-�-��y��� &�'�'�(�(���U�<�(�(���
������[�
$����,**�**�**�**�X$�$�$�$�"7�7�7�7�8L�L�L�L�z������
�	����
�	���� 
�	�	�	�	���	�	�	�
�	�	�	�	��
�����*�
�	�	�	���	�	�	�����
�	�	�	�	�	r>

Hacked By AnonymousFox1.0, Coded By AnonymousFox