AlkantarClanX12

Your IP : 3.149.29.98


Current Path : /opt/alt/python311/lib64/python3.11/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/encodings/__pycache__/idna.cpython-311.opt-1.pyc

�

c��f�#��,�ddlZddlZddlZddlmZejd��ZdZdZd�Z	d�Z
d�ZGd	�d
ej��ZGd�dej
��ZGd
�dej��ZGd�deej��ZGd�deej��Zd�ZdS)�N)�	ucd_3_2_0u[.。.。]sxn--zxn--c�:�g}|D]>}tj|��r�|�tj|�����?d�|��}tjd|��}|D]�}tj|��s�tj|��s�tj	|��sxtj
|��sdtj|��sPtj|��s<tj
|��s(tj|��stj|��rt!d|z�����d�|D��}t#|��rGt#d�|D����rt!d���|dr|dst!d	���|S)
N��NFKCzInvalid character %rc�6�g|]}tj|����S�)�
stringprep�in_table_d1��.0�xs  �5/opt/alt/python311/lib64/python3.11/encodings/idna.py�
<listcomp>znameprep.<locals>.<listcomp>)s#��
7�
7�
7�A�j�$�Q�'�'�
7�
7�
7�c3�>K�|]}tj|��V��dS)N)r	�in_table_d2rs  r�	<genexpr>znameprep.<locals>.<genexpr>1s-����8�8�Q�z�%�a�(�(�8�8�8�8�8�8rzViolation of BIDI requirement 2r���zViolation of BIDI requirement 3)r	�in_table_b1�append�map_table_b2�join�unicodedata�	normalize�in_table_c12�in_table_c22�in_table_c3�in_table_c4�in_table_c5�in_table_c6�in_table_c7�in_table_c8�in_table_c9�UnicodeError�any)�label�newlabel�c�RandALs    r�nameprepr*s����H�
�4�4���!�!�$�$�	�����
�/��2�2�3�3�3�3��G�G�H���E�
�!�&�%�0�0�E��
;�
;���"�1�%�%�		;��"�1�%�%�		;��!�!�$�$�		;��!�!�$�$�		;��!�!�$�$�			;�
�!�!�$�$�		;��!�!�$�$�
		;��!�!�$�$�		;��!�!�$�$�		;��5��9�:�:�:�		;�8�
7��
7�
7�
7�F�
�6�{�{�B��8�8�%�8�8�8�8�8�	B��@�A�A�A�
�a�y�	B��r�
�	B��@�A�A�A��Lrc�\�	|�d��}dt|��cxkrdkrnn|Std���#t$rYnwxYwt|��}	|�d��}dt|��cxkrdkrnn|Std���#t$rYnwxYw|�t
��rtd���|�d��}t|z}dt|��cxkrdkrnn|Std���)N�asciir�@�label empty or too longzLabel starts with ACE prefix�punycode)�encode�lenr$r*�
startswith�sace_prefix�
ace_prefix)r&s r�ToASCIIr5<s��
6����W�%�%��
�s�5�z�z�����B�������L��4�5�5�5���
�
�
���
����
�U�O�O�E�6����W�%�%��

�s�5�z�z�����B�������L��4�5�5�5��
�
�
�
���
����
����$�$�;��9�:�:�:�
�L�L��$�$�E�
���E�	�3�u�:�:�������������
�0�
1�
1�1s#�A�
A�A�%B(�(
B5�4B5c�t�t|t��rd}n+	|�d��}d}n#t$rd}YnwxYw|sCt	|��}	|�d��}n#t$rtd���wxYw|�t��st|d��S|tt��d�}|�	d��}t|��}t|d�����t|d��krtd||���|S)NTr,FzInvalid character in IDN labelr/zIDNA does not round-trip)�
isinstance�bytesr0r$r*r2r4�strr1�decoder5�lower)r&�
pure_ascii�label1�result�label2s     r�	ToUnicoder@gs^���%������
�
�	��L�L��)�)�E��J�J���	�	�	��J�J�J�	�����A������	A��L�L��)�)�E�E���	A�	A�	A��?�@�@�@�	A�������J�'�'�#��5�'�"�"�"��3�z�?�?�#�#�
$�F��]�]�:�
&�
&�F��V�_�_�F��5�'��� � �"�"�c�&�'�&:�&:�:�:��5�u�f�E�E�E��Ms�2�A�A�A,�,Bc��eZdZdd�Zdd�ZdS)�Codec�strictc���|dkrtd|z���|sdS	|�d��}|�d��}|dd�D]-}dt|��cxkrdksntd	����.t|d��dkrtd
���|t|��fS#t$rYnwxYwt��}t�|��}|r|dsd}|d=nd}|D];}|r|�d��|�t|�����<t||z��t|��fS)NrC�unsupported error handling �rrr,�.rrr-r.zlabel too longr)
r$r0�splitr1�UnicodeEncodeError�	bytearray�dots�extendr5r8)�self�input�errorsr>�labelsr&�trailing_dots       rr0zCodec.encode�s����X����<�V�C�D�D�D��	��6�	&��\�\�'�*�*�F�
�\�\�$�'�'�F������
B�
B���C��J�J�+�+�+�+��+�+�+�+�&�'@�A�A�A�,��6�"�:���"�$�$�"�#3�4�4�4��3�u�:�:�%�%��"�	�	�	��D�	�����������E�"�"���	�&��*�	��L��r�
�
��L��	*�	*�E��
$��
�
�d�#�#�#��M�M�'�%�.�.�)�)�)�)��V�L�(�)�)�3�u�:�:�5�5s�B9�9
C�Cc��|dkrtd|z���|sdSt|t��st|��}t|vr5	|�d��t|��fS#t$rYnwxYw|�d��}|rt|d��dkrd}|d=nd	}g}|D]$}|�t|�����%d�
|��|zt|��fS)
NrC�Unsupported error handling �rrr,rGrr�.r)r$r7r8r4r:r1�UnicodeDecodeErrorrHrr@r)rMrNrOrPrQr>r&s       rr:zCodec.decode�s/���X����<�V�C�D�D�D��	��5��%��'�'�	!��%�L�L�E��U�"�"�
��|�|�G�,�,�c�%�j�j�8�8��%�
�
�
���
�������T�"�"���	�c�&��*�o�o��*�*��L��r�
�
��L����	,�	,�E��M�M�)�E�*�*�+�+�+�+��x�x�����,�c�%�j�j�8�8s�#A/�/
A<�;A<N)rC)�__name__�
__module__�__qualname__r0r:rrrrBrB�s=������#6�#6�#6�#6�J 9� 9� 9� 9� 9� 9rrBc��eZdZd�ZdS)�IncrementalEncoderc��|dkrtd|z���|sdSt�|��}d}|r|dsd}|d=n	|s|d=|rd}t��}d}|D]R}|r|�d��|dz
}|�t|����|t
|��z
}�S||z
}|t
|��z
}t|��|fS)	NrCrErFrrrGr�)r$rKrHrJrLr5r1r8�	rMrNrO�finalrPrQr>�sizer&s	         r�_buffer_encodez!IncrementalEncoder._buffer_encode�s���X����<�V�C�D�D�D��	��8����E�"�"�����	(��"�:�
(�#���2�J�J��
(��2�J��(�#'�L��������	�	�E��
��
�
�d�#�#�#���	���M�M�'�%�.�.�)�)�)��C��J�J��D�D��,�����L�!�!�!���f�
�
�t�$�$rN)rWrXrYrarrrr[r[�s#������ %� %� %� %� %rr[c��eZdZd�ZdS)�IncrementalDecoderc��|dkrtd|z���|sdSt|t��rt�|��}n%t|d��}|�d��}d}|r|dsd}|d=n	|s|d=|rd}g}d}|D]=}|�t
|����|r|d	z
}|t|��z
}�>d�|��|z}|t|��z
}||fS)
NrCrSrTr,rUrrrr])	r$r7r9rKrHrr@r1rr^s	         r�_buffer_decodez!IncrementalDecoder._buffer_decode�sB���X����<�V�C�D�D�D��	��7��e�S�!�!�	&��Z�Z��&�&�F�F���w�'�'�E��[�[��%�%�F����	'��"�:�
'�"���2�J�J��
'��2�J��'�#&�L������	�	�E��M�M�)�E�*�*�+�+�+��
���	���C��J�J��D�D����&�!�!�L�0����L�!�!�!����~�rN)rWrXrYrerrrrcrc�s#������$�$�$�$�$rrcc��eZdZdS)�StreamWriterN�rWrXrYrrrrgrg"��������Drrgc��eZdZdS)�StreamReaderNrhrrrrkrk%rirrkc	��tjdt��jt��jt
ttt���S)N�idna)�namer0r:�incrementalencoder�incrementaldecoder�streamwriter�streamreader)	�codecs�	CodecInforBr0r:r[rcrgrkrrr�getregentryru*s=����
��w�w�~��w�w�~�-�-�!�!����r)r	�rersrr�compilerKr4r3r*r5r@rB�BufferedIncrementalEncoderr[�BufferedIncrementalDecoderrcrgrkrurrr�<module>rzs���������������0�0�0�0�0�0��r�z�.�/�/���
���,�,�,�\)2�)2�)2�V%�%�%�RF9�F9�F9�F9�F9�F�L�F9�F9�F9�P!%�!%�!%�!%�!%��:�!%�!%�!%�F%�%�%�%�%��:�%�%�%�N	�	�	�	�	�5��,�	�	�	�	�	�	�	�	�5��,�	�	�	�
	�	�	�	�	r