ok

Mini Shell

Direktori : /proc/thread-self/root/opt/alt/python311/lib64/python3.11/urllib/__pycache__/
Upload File :
Current File : //proc/thread-self/root/opt/alt/python311/lib64/python3.11/urllib/__pycache__/parse.cpython-311.pyc

�

�f����,�dZddlmZddlZddlZddlZddlZddlZddlZgd�Z	gd�Z
gd�Zgd�Zgd�Z
gd	�Zgd
�ZdZdZgd
�Zd�ZdZdZd�Zeefd�Zeefd�Zd�ZGd�de��ZGd�de��ZGd�de��ZGd�dee��ZGd�dee��Zedd ��Z ed!d"��Z!ed#d$��Z"d%e _d&e j#_d'e j$_d(e!_d)e!j%_d*e!j&_d+e!j'_d,e!j(_d-e!j$_d.e"_e!j%je"j%_e!j&je"j&_e!j'je"j'_d/e"j)_e!j(je"j(_e!j$je"j$_eZ*Gd0�de e��Z+Gd1�d!e!e��Z,Gd2�d#e"e��Z-Gd3�d4e e��Z.Gd5�d6e!e��Z/Gd7�d8e"e��Z0d9�Z1e1��[1dtd<�Z2d=�Z3dud>�Z4d?�Z5d@�Z6ej7d;�A��dtdB���Z8dC�Z9dD�Z:dvdE�Z;dF�Z<dGZ=da>dH�Z?ej@dI��ZAdwdL�ZB		dxdO�ZC		dxdP�ZDdwdQ�ZEeFdR��ZGeHeG��ZIdS�ZJGdT�dUeK��ZLdydW�ZMdzdX�ZNej7dY���ZOd{dZ�ZPdMd:ddeNfd[�ZQd\�ZRd]�ZSd^�ZTd_�ZUdaVd`�ZWda�ZXdaYdb�ZZdc�Z[dd�Z\de�Z]df�Z^dg�Z_da`dh�Zad|dj�Zbd|dk�Zcdl�Zddm�Zedn�Zfdo�Zgdp�Zhdq�Zidr�Zjds�ZkdS)}a3Parse (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.

The WHATWG URL Parser spec should also be considered.  We are not compliant with
it either due to existing user code API behavior expectations (Hyrum's Law).
It serves as a useful guide when making changes.
�)�
namedtupleN)�urlparse�
urlunparse�urljoin�	urldefrag�urlsplit�
urlunsplit�	urlencode�parse_qs�	parse_qsl�quote�
quote_plus�quote_from_bytes�unquote�unquote_plus�unquote_to_bytes�DefragResult�ParseResult�SplitResult�DefragResultBytes�ParseResultBytes�SplitResultBytes)��ftp�http�gopher�nntp�imap�wais�file�https�shttp�mms�prospero�rtsp�rtsps�rtspu�sftp�svn�svn+ssh�ws�wss)rrrrr�telnetrrr r#r!r"�snewsr$r%r&r'�rsyncr)r*r(�nfs�gitzgit+sshr+r,)rr�hdlr$rrr!r"r%r&r'�sip�sipsr#r(�tel)
rr2�mailto�newsr-rrr.r3r4)
rrrrr!r"r#rr%r&r'r3r4)
rrr2rrr7rrr!r"r.r r$zAabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-.z!	

 )�	�
�
c�j�t���t���dS)zDClear internal performance caches. Undocumented; some tests want it.N)r�cache_clear�_byte_quoter_factory���3/opt/alt/python311/lib64/python3.11/urllib/parse.py�clear_cacherA^s,���������$�$�&�&�&�&�&r?�ascii�strictc��|S�Nr>)�objs r@�_nooprGls���Jr?c�.�|�||��SrE��encode)rF�encoding�errorss   r@�_encode_resultrMos���:�:�h��'�'�'r?c�>���t��fd�|D����S)Nc3�L�K�|]}|r|�����ndV��dS)rN��decode��.0�xrKrLs  ��r@�	<genexpr>z_decode_args.<locals>.<genexpr>us;�����G�G�Q�q�8����(�F�+�+�+�b�G�G�G�G�G�Gr?)�tuple)�argsrKrLs ``r@�_decode_argsrXss*�����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)�
isinstance�str�	TypeErrorrGrXrM)rW�	str_input�args   r@�_coerce_argsr`ws����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>rBrCc�4���|j��fd�|D���S)Nc3�D�K�|]}|�����V��dSrErIrRs  ��r@rUz)_ResultMixinStr.encode.<locals>.<genexpr>��1�����*T�*T�!�1�8�8�H�f�+E�+E�*T�*T�*T�*T�*T�*Tr?)�_encoded_counterpart��selfrKrLs ``r@rJz_ResultMixinStr.encode��,����(�t�(�*T�*T�*T�*T�*T�t�*T�*T�*T�U�Ur?N�rBrC)�__name__�
__module__�__qualname__�__doc__�	__slots__rJr>r?r@rbrb��9������H�H��I�V�V�V�V�V�Vr?rbc��eZdZdZdZdd�ZdS)�_ResultMixinBytesz>Standard approach to decoding parsed results from bytes to strr>rBrCc�4���|j��fd�|D���S)Nc3�D�K�|]}|�����V��dSrErPrRs  ��r@rUz+_ResultMixinBytes.decode.<locals>.<genexpr>�rer?)�_decoded_counterpartrgs ``r@rQz_ResultMixinBytes.decode�rir?Nrj)rkrlrmrnrorQr>r?r@rrrr�rpr?rrc��eZdZdZdZed���Zed���Zed���Zed���Z	e
ej��Z
dS)�_NetlocResultMixinBasezHShared methods for the parsed result objects containing a netloc elementr>c��|jdS)Nr��	_userinfo�rhs r@�usernamez_NetlocResultMixinBase.username�����~�a� � r?c��|jdS)NrZryr{s r@�passwordz_NetlocResultMixinBase.password�r}r?c��|jd}|sdSt|t��rdnd}|�|��\}}}|���|z|zS)Nr�%�%)�	_hostinfor[r\�	partition�lower)rh�hostname�	separator�percent�zones     r@r�z_NetlocResultMixinBase.hostname�si���>�!�$���	��4�&�h��4�4�>�C�C�$�	�"*�"4�"4�Y�"?�"?���'�4��~�~���'�)�D�0�0r?c���|jd}|�h|���r$|���rt|��}nt	d|�����d|cxkrdksnt	d���|S)NrZz+Port could not be cast to integer value as ri��zPort out of range 0-65535)r��isdigit�isascii�int�
ValueError)rh�ports  r@r�z_NetlocResultMixinBase.port�s����~�a� �����|�|�~�~�
Y�$�,�,�.�.�
Y��4�y�y��� �!W�t�!W�!W�X�X�X���&�&�&�&��&�&�&�&� �!<�=�=�=��r?N)rkrlrmrnro�propertyr|rr�r��classmethod�types�GenericAlias�__class_getitem__r>r?r@rwrw�s�������R�R��I�
�!�!��X�!��!�!��X�!��1�1��X�1��	�	��X�	�$��E�$6�7�7���r?rwc�>�eZdZdZed���Zed���ZdS)�_NetlocResultMixinStrr>c��|j}|�d��\}}}|r|�d��\}}}|sd}ndx}}||fS)N�@�:��netloc�
rpartitionr��rhr��userinfo�	have_info�hostinfor|�
have_passwordrs        r@rzz_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��rhr��_r��have_open_br�	bracketedr�r�s        r@r�z_NetlocResultMixinStr._hostinfo�s�������*�*�3�/�/���1�h�%-�%7�%7��%<�%<�"��<���	8� )� 3� 3�C� 8� 8��H�a������,�,�J�A�q�$�$� (� 2� 2�3� 7� 7��H�a���	��D���~�r?N�rkrlrmror�rzr�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@rzz!_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��%=�%=�"��<���	9� )� 3� 3�D� 9� 9��H�a������-�-�J�A�q�$�$� (� 2� 2�4� 8� 8��H�a���	��D���~�r?Nr�r>r?r@r�r��r�r?r�rzurl fragmentrz!scheme netloc path query fragmentrz(scheme netloc path params query fragmentz�
DefragResult(url, fragment)

A 2-tuple that contains the url without fragment identifier and the fragment
identifier as a separate argument.
z$The URL with no fragment identifier.z�
Fragment identifier separated from URL, that allows indirect identification of a
secondary resource by reference to a primary resource and additional identifying
information.
z�
SplitResult(scheme, netloc, path, query, fragment)

A 5-tuple that contains the different components of a URL. Similar to
ParseResult, but does not split params.
z%Specifies URL scheme for the request.z0
Network location where the request is made to.
z@
The hierarchical path, such as the path to a file to download.
z�
The query component, that contains non-hierarchical data, that along with data
in path component, identifies a resource in the scope of URI's scheme and
network location.
z�
Fragment identifier, that allows indirect identification of a secondary resource
by reference to a primary resource and additional identifying information.
zq
ParseResult(scheme, netloc, path, params, query, fragment)

A 6-tuple that contains components of a parsed URL.
z�
Parameters for last path element used to dereference the URI in order to provide
access to perform some operation on the resource.
c��eZdZdZd�ZdS)rr>c�B�|jr|jdz|jzS|jS)N�#��fragment�urlr{s r@�geturlzDefragResult.geturlEs&���=�	��8�c�>�D�M�1�1��8�Or?N�rkrlrmror�r>r?r@rrC�(�������I�����r?c��eZdZdZd�ZdS)rr>c� �t|��SrE�r	r{s r@r�zSplitResult.geturlM����$���r?Nr�r>r?r@rrK�(�������I� � � � � r?c��eZdZdZd�ZdS)rr>c� �t|��SrE�rr{s r@r�zParseResult.geturlRr�r?Nr�r>r?r@rrPr�r?c��eZdZdZd�ZdS)rr>c�B�|jr|jdz|jzS|jS)N�#r�r{s r@r�zDefragResultBytes.geturlXs&���=�	��8�d�?�T�]�2�2��8�Or?Nr�r>r?r@rrVr�r?rc��eZdZdZd�ZdS)rr>c� �t|��SrEr�r{s r@r�zSplitResultBytes.geturl`r�r?Nr�r>r?r@rr^r�r?rc��eZdZdZd�ZdS)rr>c� �t|��SrEr�r{s r@r�zParseResultBytes.geturler�r?Nr�r>r?r@rrcr�r?rc��ttfttftt
ff}|D]\}}||_||_�dSrE)rrrrrrrfru)�
_result_pairs�_decoded�_encodeds   r@�_fix_result_transcodingr�isW��	�(�)�	�&�'�	�&�'��M�
,�1�1���(�(0��%�(0��%�%�1�1r?rTc���t||��\}}}t|||��}|\}}}}}|tvrd|vrt|��\}}nd}t	||||||��}	||	��S)a�Parse a URL into 6 components:
    <scheme>://<netloc>/<path>;<params>?<query>#<fragment>

    The result is a named 6-tuple with fields corresponding to the
    above. It is either a ParseResult or ParseResultBytes object,
    depending on the type of the url parameter.

    The username, password, hostname, and port sub-components of netloc
    can also be accessed as attributes of the returned object.

    The scheme argument provides the default value of the scheme
    component when no scheme is found in url.

    If allow_fragments is False, no attempt is made to separate the
    fragment component from the previous component, which can be either
    path or query.

    Note that % escapes are not expanded.
    �;r)r`r�uses_params�_splitparamsr)
r��scheme�allow_fragments�_coerce_result�splitresultr��queryr��params�results
          r@rrvs���(#/�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�rrrZ)�find�rfind)r��is  r@r�r��so��
�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�l�|r|���rdSddl}|�dd��}|�dd��}|�dd��}|�dd��}|�d|��}||krdSdD]}||vrt	d	|zd
zdz����dS)Nrr�rr�r��?�NFKCz/?#@:znetloc 'z' contains invalid z#characters under NFKC normalization)r��unicodedata�replace�	normalizer�)r�r��n�netloc2r�s     r@�_checknetlocr��s�����V�^�^�%�%�����������s�B���A�	�	�	�#�r���A�	�	�	�#�r���A�	�	�	�#�r���A��#�#�F�A�.�.�G��G�|�|���
�D�D����<�<��Z�&�0�3H�H�B�C�D�D�
D��D�Dr?c��|�d��r&tjd|��std���dSt	j|��}t
|tj��rtd���dS)N�vz\Av[a-fA-F0-9]+\..+\ZzIPvFuture address is invalidz%An IPv4 address cannot be in brackets)�
startswith�re�matchr��	ipaddress�
ip_addressr[�IPv4Address)r��ips  r@�_check_bracketed_hostr��s������3���G��x�0�(�;�;�	>��<�=�=�=�	>�	>��
!�(�
+�
+���b�)�/�0�0�	G��E�F�F�F�	G�	Gr?)�typedc�0�t||��\}}}|�t��}|�t��}tD].}|�|d��}|�|d��}�/t
|��}dx}x}}|�d��}|dkru|d���r[|d�	��rA|d|�D]
}	|	tvrn*�|d|����||dzd�}}|dd�dkr}t|d��\}}d|vrd	|vsd	|vrd|vrtd
���d|vrGd	|vrC|�d��d�d	��d}
t|
��|rd|vr|�dd��\}}d|vr|�dd��\}}t#|��t%|||||��}||��S)
a�Parse a URL into 5 components:
    <scheme>://<netloc>/<path>?<query>#<fragment>

    The result is a named 5-tuple with fields corresponding to the
    above. It is either a SplitResult or SplitResultBytes object,
    depending on the type of the url parameter.

    The username, password, hostname, and port sub-components of netloc
    can also be accessed as attributes of the returned object.

    The scheme argument provides the default value of the scheme
    component when no scheme is found in url.

    If allow_fragments is False, no attempt is made to separate the
    fragment component from the previous component, which can be either
    path or query.

    Note that % escapes are not expanded.
    rr�rNrZ��//r�r�zInvalid IPv6 URLr�r�)r`�lstrip�_WHATWG_C0_CONTROL_OR_SPACE�strip�_UNSAFE_URL_BYTES_TO_REMOVEr��boolr�r��isalpha�scheme_charsr�r�r�r�r��splitr�r)r�r�r�r��br�r�r�r�r��bracketed_hostr�s            r@rr�s?��,#/�s�F�";�";��C����*�*�0�
1�
1�C�
�\�\�5�
6�
6�F�
(�'�'���k�k�!�R� � ������2�&�&����?�+�+�O� "�"�F�"�U�X�����
�
�A��1�u�u��Q����!�!�u�c�!�f�n�n�&6�&6�u��R�a�R��	5�	5�A���$�$���%��b�q�b�'�-�-�/�/�3�q��s�t�t�9�C�F�
�2�A�2�w�$���"�3��*�*����
�F�]�]�s�&�0�0�����3�f�#4�#4��/�0�0�0��&�=�=�S�F�]�]�#�-�-�c�2�2�1�5�?�?��D�D�Q�G�N�!�.�1�1�1��*�3�#�:�:��	�	�#�q�)�)�
��X�
�c�z�z��Y�Y�s�A�&�&�
��U�������F�F�C���9�9�A��>�!���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�rZr�rr�r�r�)r`�uses_netloc)r
r�r�r�r�r�r�s       r@r	r	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|}|s(|
s&|}|}
|s|}|t	|
|||
||f����S|�d��}|ddkr|d=|dd�dkr|�d��}n5||�d��z}t
d|dd���|dd�<g}|D]J}|dkr&	|����#t$rY�*wxYw|dkr�5|�	|���K|ddvr|�	d��|t	|
|d�
|��pd|
||f����S)	zaJoin a base URL and a possibly relative URL to form an absolute
    interpretation of the latter.rr����NrZ�..�.)rr)r`r�
uses_relativerrr�filter�pop�
IndexError�append�join)�baser�r�r��bscheme�bnetloc�bpath�bparams�bquery�	bfragmentr�r��pathr�r�r��
base_parts�segments�
resolved_path�segs                    r@rrs������
����� ,�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����E��E������	��E��~�j�&�&�$�*0�%��*C�D�D�E�E�	E����S�!�!�J��"�~����
�r�N��B�Q�B�x�3����:�:�c�?�?�����
�
�3���/�� ��h�q��t�n�5�5���2����M��&�&���$�;�;�
��!�!�#�#�#�#���
�
�
���
�����C�Z�Z��� � ��%�%�%�%���|�{�"�"�	���R� � � ��>�*�f�f�c�h�h��7�7�7��v�u�h�&8�9�9�:�:�:s�E�
E(�'E(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`rrr)	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��|s	|jdSt|t��r|�d��}|�d��}t	|��dkr|S|dg}|j}t�d�tD��a|dd�D]Z}	|t|dd���||dd����5#t$r|d��||��Y�WwxYwd�	|��S)	z,unquote_to_bytes('abc%20def') -> b'abc def'.r?�utf-8r�rZrNc��i|]?}tD]5}||z���t�||z����6�@Sr>)�_hexdigrJ�bytes�fromhex)rSr&rs   r@�
<dictcomp>z$unquote_to_bytes.<locals>.<dictcomp>�s\��9�9�9���9�9�+,��1�u�n�n�&�&��
�
�a�!�e�(<�(<�9�9�9�9r?r�)
rr[r\rJr�r�
_hextobyter.�KeyErrorr)�string�bits�resr�items     r@rrss7��������s��&�#���(����w�'�'���<�<����D�
�4�y�y�A�~�~��
���7�)�C�
�Z�F���9�9�&�9�9�9�
��Q�R�R�����	��F�:�d�2�A�2�h�'�(�(�(��F�4����8�������	�	�	��F�4�L�L�L��F�4�L�L�L�L�L�	�����8�8�C�=�=�s�1C� C*�)C*z([-]+)r,r�c���t|t��r#t|���||��Sd|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'.
    r�Nr,r�rrZr�r)
r[r/rrQr�_asciirer�ranger�r)r4rKrLr5r6rr�s       r@rr�s����&�%� � �A���'�'�.�.�x��@�@�@�
�&�������
�����
�~����>�>�&�!�!�D���7�)�C�
�Z�F�
�1�c�$�i�i��
#�
#��������Q��(�(�/�/��&�A�A�B�B�B���t�A��E�{�����
�7�7�3�<�<�r?F�&c	��i}t|||||||���}|D]+\}	}
|	|vr||	�|
���%|
g||	<�,|S)aXParse 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.

        max_num_fields: int. If set, then throws a ValueError if there
            are more than n fields read by parse_qsl().

        separator: str. The symbol to use for separating the query arguments.
            Defaults to &.

        Returns a dictionary.
    )rKrL�max_num_fieldsr�)rr)�qs�keep_blank_values�strict_parsingrKrLr=r��
parsed_result�pairs�name�values           r@rr�s���<�M��b�+�^�'��%3�y�
J�
J�
J�E��*�*���e��=� � ��$��&�&�u�-�-�-�-�#(�'�M�$����r?c�����|rt|ttf��std���t|t��r.t|t��st|d��}d}��fd�}nJ|sgStt	|����}t|t��rt|d��}d}d�}|sgS|�-d|�|��z}	||	krtd	���g}
|�|��D]f}|s|r`|�|��\}}
}|
s|rtd
|�����|s|r-||��}||��}|
�||f���g|
S)aXParse 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.

        max_num_fields: int. If set, then throws a ValueError
            if there are more than n fields read by parse_qsl().

        separator: str. The symbol to use for separating the query arguments.
            Defaults to &.

        Returns a list, as G-d intended.
    z*Separator must be of type string or bytes.rB�=c�(��t|�����S)N)rKrL)r)r$rKrLs ��r@�_unquotezparse_qsl.<locals>._unquote�s�����H�V�D�D�D�Dr?�=c�H�t|�dd����S)N�+� )rr�)r$s r@rHzparse_qsl.<locals>._unquotes��#�A�I�I�d�D�$9�$9�:�:�:r?NrZzMax number of fields exceededzbad query field: )	r[r\r/r��
memoryview�countrr�r)r>r?r@rKrLr=r��eqrH�
num_fields�r�
name_valuerC�has_eqrDs   ``          r@rr�s�����<�G�J�y�3��,�?�?�G��E�F�F�F��"�c���;��)�S�)�)�	0��I�w�/�/�I�
��	E�	E�	E�	E�	E�	E�	E��	��I��:�b�>�>�
"�
"���i��%�%�	2��i��1�1�I�
��	;�	;�	;����	�
�!�����)�,�,�,�
��J�&�&��<�=�=�=�
�A��h�h�y�)�)�(�(�
��	(��	(�",�"6�"6�r�":�":��D�&�%��
H�n�
H� �j�*�*�!F�G�G�G��
(�)�
(��x��~�~�� ���������$���'�'�'���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'
    �+� )r�r)r4rKrLs   r@rr"s)���^�^�C��
%�
%�F��6�8�V�,�,�,r?sBABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-~c��|dkr#tjdtd���tSt	dt
�d|�����)N�QuoterzoDeprecated in 3.11. urllib.parse.Quoter will be removed in Python 3.14. It was not intended to be a public API.r���
stacklevelzmodule z has no attribute )�warnings�warn�DeprecationWarning�_Quoter�AttributeErrorrk)rCs r@�__getattr__r`1sY���x����
�@�)�Q�	8�	8�	8�	8���
�I�8�I�I��I�I�
J�
J�Jr?c�$�eZdZdZd�Zd�Zd�ZdS)r^z�A mapping from bytes numbers (in range(0,256)) to strings.

    String values are percent-encoded byte values, unless the key < 128, and
    in either of the specified safe set, or the always safe set.
    c�D�t�|��|_dS)zsafe: bytes object.N)�_ALWAYS_SAFE�union�safe)rhres  r@�__init__z_Quoter.__init__Bs�� �&�&�t�,�,��	�	�	r?c�(�dt|���d�S)Nz<Quoter �>)�dictr{s r@�__repr__z_Quoter.__repr__Fs��)�$�t�*�*�)�)�)�)r?c�j�||jvrt|��nd�|��}|||<|S)Nz%{:02X})re�chr�format)rhrr6s   r@�__missing__z_Quoter.__missing__Is7���T�Y���c�!�f�f�f�I�,<�,<�Q�,?�,?����Q���
r?N)rkrlrmrnrfrjrnr>r?r@r^r^:sK��������-�-�-�*�*�*�����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. The
    quote function offers a cautious (not minimal) way to quote a
    string for most of these parts.

    RFC 3986 Uniform Resource Identifier (URI): Generic Syntax lists
    the following (un)reserved characters.

    unreserved    = ALPHA / DIGIT / "-" / "." / "_" / "~"
    reserved      = gen-delims / sub-delims
    gen-delims    = ":" / "/" / "?" / "#" / "[" / "]" / "@"
    sub-delims    = "!" / "$" / "&" / "'" / "(" / ")"
                  / "*" / "+" / "," / ";" / "="

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

    The quote function %-escapes all characters that are neither in the
    unreserved chars ("always safe") nor the additional chars set via the
    safe arg.

    The default for the safe arg is '/'. The character is reserved, but in
    typical usage the quote function is being called on a path where the
    existing slash characters are to be preserved.

    Python 3.7 updates from using RFC 2396 to RFC 3986 to quote URL strings.
    Now, "~" is included in the set of unreserved characters.

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

    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).
    Nr,rCz,quote() doesn't support 'encoding' for bytesz*quote() doesn't support 'errors' for bytes)r[r\rJr]r)r4rerKrLs    r@r
r
Os���N�&�#���J��	��M����H��>��F����x��0�0������J�K�K�K����H�I�I�I��F�D�)�)�)r?c��t|t��rd|vst|t��rd|vrt||||��St|t��rd}nd}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 '/'.
    rVrLrU)r[r\r/r
r�)r4rerKrL�spaces     r@rr�s���
�F�C�	 �	 �5�S��%6�%6�	�F�E�	"�	"�&7�'+�6�'9�'9��V�T�8�V�4�4�4��$����������
�6�4�%�<��6�
:�
:�F��>�>�#�s�#�#�#r?c�*�t|��jSrE)r^�__getitem__)res r@r=r=�s���4�=�=�$�$r?c���t|ttf��std���|sdSt|t��r|�dd��}ntd�|D����}|�t|z��s|���St|���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 bytesrrB�ignorec��g|]
}|dk�|��S)�r>)rSr�s  r@�
<listcomp>z$quote_from_bytes.<locals>.<listcomp>�s��1�1�1�A��S���a���r?c�&��g|]
}�|����Sr>r>)rS�char�quoters  �r@rxz$quote_from_bytes.<locals>.<listcomp>�s!���0�0�0�T�F�F�4�L�L�0�0�0r?)r[r/�	bytearrayr]r\rJ�rstrip�_ALWAYS_SAFE_BYTESrQr=r)�bsrer{s  @r@rr�s����
�b�5�)�,�-�-�=��;�<�<�<�
���r��$����3��{�{�7�H�-�-����1�1��1�1�1�2�2��
�9�9�'�$�.�/�/���y�y�{�{��
!�$�
'�
'�F�
�7�7�0�0�0�0�R�0�0�0�1�1�1r?c�T�t|d��r|���}nU	t|��r"t|dt��st
�n"#t
$r}td��|�d}~wwxYwg}|s�|D]�\}}	t|t��r
|||��}n|t|��|||��}t|	t��r
||	|��}	n|t|	��|||��}	|�|dz|	z�����nw|D�]s\}}	t|t��r
|||��}n|t|��|||��}t|	t��r(||	|��}	|�|dz|	z����t|	t��r*||	|||��}	|�|dz|	z����	t|	��}
|	D]Z}t|t��r
|||��}n|t|��|||��}|�|dz|z���[��.#t
$r:|t|	��|||��}	|�|dz|	z��Y��qwxYwd�	|��S)a^Encode a dict or sequence of two-element tuples 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 components of a query arg may each be either a string or a bytes type.

    The safe, encoding, and errors parameters are passed down to the function
    specified by quote_via (encoding and errors only if a component is a str).
    �itemsrz1not a valid non-string sequence or mapping objectNrFr;)
�hasattrr�r�r[rVr]r/r\rr)r��doseqrerKrL�	quote_via�err�l�kr�rT�elts            r@r
r
�s��"�u�g���:����
�
���	:��5�z�z�
 �*�U�1�X�u�"=�"=�
 �����
�	:�	:�	:��0�1�1�69�
:�����	:����	�A��(0��
	"�
	"�D�A�q��!�U�#�#�
>��I�a��&�&����I�c�!�f�f�d�H�f�=�=���!�U�#�#�
>��I�a��&�&����I�c�!�f�f�d�H�f�=�=��
�H�H�Q��W�q�[�!�!�!�!�
	"��	0�	0�D�A�q��!�U�#�#�
>��I�a��&�&����I�c�!�f�f�d�H�f�=�=���!�U�#�#�
0��I�a��&�&������S��1��%�%�%�%��A�s�#�#�
0��I�a��x��8�8������S��1��%�%�%�%�0��A���A� !�0�0��%�c�5�1�1�N�"+�)�C��"6�"6�C�C�"+�)�C��H�H�d�H�f�"M�"M�C�����S��3��/�/�/�/�0��
!�*�*�*�!�	�#�a�&�&�$��&�A�A�A��H�H�Q��W�q�[�)�)�)�)�)�*�����8�8�A�;�;�s*�1A�
A8�#A3�3A8� I�AJ�Jc�X�tjdtd���t|��S)Nz/urllib.parse.to_bytes() is deprecated as of 3.8r�rY)r[r\r]�	_to_bytes�r�s r@�to_bytesr��s/���M�C�$��4�4�4�4��S�>�>�r?c���t|t��rY	|�d�����}n0#t$r#t	dt|��zdz���wxYw|S)zto_bytes(u"URL") --> 'URL'.�ASCIIzURL z contains non-ASCII characters)r[r\rJrQ�UnicodeError�reprr�s r@r�r�s���
�#�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)z�Transform a string like '<URL:scheme://host/path>' into 'scheme://host/path'.

    The string is returned unchanged if it's not a wrapped URL.
    NrZ�<rrh�zURL:)r\rr�s r@�unwrapr�s~��
�c�(�(�.�.�
�
�C�
�2�A�2�w�#�~�~�#�b�c�c�(�c�/�/��!�B�$�i�o�o����
�2�A�2�w�&����!�"�"�g�m�m�o�o���Jr?c�X�tjdtd���t|��S)NzUurllib.parse.splittype() is deprecated as of 3.8, use urllib.parse.urlparse() insteadr�rY)r[r\r]�
_splittyper�s r@�	splittyper� �3���M�8�$��4�4�4�4��c�?�?�r?c���t�tjdtj��at�|��}|r-|���\}}|���|fSd|fS)z:splittype('type:opaquestring') --> 'type', 'opaquestring'.Nz
([^/:]+):(.*))�	_typeprogr��compile�DOTALLr��groupsr�)r�r�r��datas    r@r�r�(sd�����J���	�:�:�	��O�O�C� � �E��$��|�|�~�~�����|�|�~�~�t�#�#���9�r?c�X�tjdtd���t|��S)NzUurllib.parse.splithost() is deprecated as of 3.8, use urllib.parse.urlparse() insteadr�rY)r[r\r]�
_splithostr�s r@�	splithostr�5r�r?c���t�tjdtj��at�|��}|r.|���\}}|r|ddkrd|z}||fSd|fS)z;splithost('//host[:port]/path') --> 'host[:port]', '/path'.Nz//([^/#?]*)(.*)rr�)�	_hostprogr�r�r�r�r�)r�r��	host_portrs    r@r�r�=sy�����J�0�"�)�<�<�	��O�O�C� � �E����,�,�.�.��	�4��	�D��G�s�N�N���:�D��$�����9�r?c�X�tjdtd���t|��S)NzUurllib.parse.splituser() is deprecated as of 3.8, use urllib.parse.urlparse() insteadr�rY)r[r\r]�
_splituser��hosts r@�	splituserr�L�5���M�8�$��4�4�4�4��d���r?c�D�|�d��\}}}|r|nd|fS)zJsplituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'.r�N�r�)r��userr�s   r@r�r�Ss.������,�,��D�%���#�D�D�t�d�*�*r?c�X�tjdtd���t|��S)NzWurllib.parse.splitpasswd() is deprecated as of 3.8, use urllib.parse.urlparse() insteadr�rY)r[r\r]�_splitpasswd)r�s r@�splitpasswdr�Ys5���M�8�$��4�4�4�4�����r?c�D�|�d��\}}}||r|ndfS)z/splitpasswd('user:passwd') -> 'user', 'passwd'.r�N�r�)r�r��passwds   r@r�r�`s.���.�.��-�-��D�%���E�+�&�&�t�,�,r?c�X�tjdtd���t|��S)NzUurllib.parse.splitport() is deprecated as of 3.8, use urllib.parse.urlparse() insteadr�rY)r[r\r]�
_splitportr�s r@�	splitportr�fr�r?c���t�tjdtj��at�|��}|r|���\}}|r||fS|dfS)z*splitport('host:port') --> 'host', 'port'.Nz
(.*):([0-9]*))�	_portprogr�r�r��	fullmatchr�)r�r�r�s   r@r�r�ose�����J���	�:�:�	�����%�%�E����\�\�^�^�
��d��	���:����:�r?rc�Z�tjdtd���t||��S)NzVurllib.parse.splitnport() is deprecated as of 3.8, use urllib.parse.urlparse() insteadr�rY)r[r\r]�_splitnport)r��defports  r@�
splitnportr�}s7���M�8�$��4�4�4�4��t�W�%�%�%r?c���|�d��\}}}|s|}n@|r>|���r$|���rt|��}nd}||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 is found after ':'.
    Return None if ':' but not a valid number.r�N)r�r�r�r�)r�r�r�r��nports     r@r�r��sx��
����,�,��D�%�������	
���<�<�>�>�	�d�l�l�n�n�	���I�I�E�E��E��U�{����=�r?c�X�tjdtd���t|��S)NzVurllib.parse.splitquery() is deprecated as of 3.8, use urllib.parse.urlparse() insteadr�rY)r[r\r]�_splitqueryr�s r@�
splitqueryr��s5���M�8�$��4�4�4�4��s���r?c�H�|�d��\}}}|r||fS|dfS)z/splitquery('/path?query') --> '/path', 'query'.r�Nr�)r�rr�r�s    r@r�r��s6������,�,��D�%�����U�{����9�r?c�X�tjdtd���t|��S)NzTurllib.parse.splittag() is deprecated as of 3.8, use urllib.parse.urlparse() insteadr�rY)r[r\r]�	_splittagr�s r@�splittagr��s3���M�8�$��4�4�4�4��S�>�>�r?c�H�|�d��\}}}|r||fS|dfS)z)splittag('/path#tag') --> '/path', 'tag'.r�Nr�)r�rr��tags    r@r�r��s6���~�~�c�*�*��D�%�����S�y����9�r?c�X�tjdtd���t|��S)NzUurllib.parse.splitattr() is deprecated as of 3.8, use urllib.parse.urlparse() insteadr�rY)r[r\r]�
_splitattrr�s r@�	splitattrr��r�r?c�P�|�d��}|d|dd�fS)zksplitattr('/path;attr1=value1;attr2=value2;...') ->
        '/path', ['attr1=value1', 'attr2=value2', ...].r�rrZN)r)r��wordss  r@r�r��s*��
�I�I�c�N�N�E���8�U�1�2�2�Y��r?c�X�tjdtd���t|��S)NzWurllib.parse.splitvalue() is deprecated as of 3.8, use urllib.parse.parse_qsl() insteadr�rY)r[r\r]�_splitvalue)�attrs r@�
splitvaluer��s5���M�9�$��4�4�4�4��t���r?c�D�|�d��\}}}||r|ndfS)z-splitvalue('attr=value') --> 'attr', 'value'.rFNr�)r�r�rDs   r@r�r��s.������,�,��D�%���5�*�%�%�d�+�+r?)rT)r)T)r,r�)FFr,r�Nr;)r�NN)rNN)r�)r)lrn�collectionsr�	functoolsr��sysr�r[r��__all__rrr��non_hierarchical�
uses_query�
uses_fragmentrrrrA�_implicit_encoding�_implicit_errorsrGrMrXr`�objectrbrrrwr�r��_DefragResultBase�_SplitResultBase�_ParseResultBaser�r�r�r�rr�r��
ResultBaserrrrrrr�rr�r�r�r��	lru_cacherrr	rrr.r2rr�r9rrrr�	frozensetrcr/r~r`rir^r
rr=rr
r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r>r?r@�<module>r�s�����B#�"�"�"�"�"�����	�	�	�	�
�
�
�
�������������H�H�H��0�0�0�
�
����-�-�-��F�F�F��A�A�A�
�%�%�%�
�
��\��1�0�0��'�'�'��������"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�#8�#8�#8�#8�#8�V�#8�#8�#8�L�����2�O����<�����4�6G����<�J�~�~�>�>���:��6�8�8���:��=�?�?�����!K����&���"����#N����#����!����"����%���!�
���#3�"9�"A����"2�"9�"A���� 0� 5� =����#����
"2�!7�!?����$4�$=�$E���!�#�
������$�o���� � � � � �"�$9� � � �
 � � � � �"�$9� � � ������)�+<���� � � � � �'�)@� � � �
 � � � � �'�)@� � � �1�1�1�������"�"�"�"�<���)�)�)�)�D�D�D�(G�G�G����4� � � �6�6�6�!� �6�p	N�	N�	N����&B:�B:�B:�B:�J6�6�6� #��
�
����<�2�:�&�'�'������8:?�PS�'�'�'�'�T;@�QT�G
�G
�G
�G
�R-�-�-�-��y�!�"�"���U�<�(�(��K�K�K������d����*4*�4*�4*�4*�l$�$�$�$�$��%�%���%�2�2�2�2�(!�r�D��"�M�M�M�M�`������
�
�
����
�	�
�
�
����
�	�������+�+�+����-�-�-����
�	����&�&�&�&�����"���������������������,�,�,�,�,r?

Zerion Mini Shell 1.0