AlkantarClanX12

Your IP : 3.146.152.119


Current Path : /opt/alt/python311/lib64/python3.11/email/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/email/__pycache__/_parseaddr.cpython-311.opt-2.pyc

�

c��f�E���	gd�ZddlZddlZdZdZdZgd�Zgd�Zdddddd	d
ddd
ddd
dd�Zd�Z	d�Z
d�Zd�Zd�Z
Gd�d��ZGd�de��ZdS))�	mktime_tz�	parsedate�parsedate_tz�quote�N� �z, )�jan�feb�mar�apr�may�jun�jul�aug�sep�oct�nov�dec�january�february�march�aprilr
�june�july�august�	september�october�november�december)�mon�tue�wed�thu�fri�sat�sunip���i���i���i����iD���i��)�UT�UTC�GMT�Z�AST�ADT�EST�EDT�CST�CDT�MST�MDT�PST�PDTc�b�	t|��}|sdS|d�d|d<t|��S)N�	r)�
_parsedate_tz�tuple)�data�ress  �7/opt/alt/python311/lib64/python3.11/email/_parseaddr.pyrr-sA�����
�
�C�����
�1�v�~���A����:�:��c
��	|sdS|���}|sdS|d�d��s!|d���tvr|d=n7|d�d��}|dkr|d|dzd�|d<t|��dkr;|d�d��}t|��dkr
||dd�z}t|��dkrm|d}|�d��}|dkr|�d��}|dkr|d|�||d�g|dd�<n|�d	��t|��d
krdS|dd
�}|\}}}}}|r|r|sdS|���}|tvr!||���}}|tvrdSt�	|��dz}|dkr|dz}|ddkr
|dd�}|�d��}|dkr||}}|ddkr|dd�}|sdS|d�
��s||}}|ddkr
|dd�}|�d��}t|��d
kr|\}	}
d}n�t|��dkr|\}	}
}nqt|��dkr\d|dvrR|d�d��}t|��d
kr|\}	}
d}nt|��dkr|\}	}
}ndSdS	t|��}t|��}t|	��}	t|
��}
t|��}n#t$rYdSwxYw|dkr|dkr|dz
}n|dz
}d}|�
��}|tvrt|}n>	t|��}n#t$rYnwxYw|dkr|�d��rd}|r"|dkrd}
|}nd}
|
|dzdz|dzdzzz}||||	|
|ddd|g
S)Nr�,���-��+���r���:��0�.�d�Dili�i�<)�split�endswith�lower�	_daynames�rfind�len�find�append�_monthnames�index�isdigit�int�
ValueError�upper�
_timezones�
startswith)r9�i�stuff�s�dd�mm�yy�tm�tz�thh�tmm�tss�tzoffset�tzsigns              r;r7r79s�������t��:�:�<�<�D����t��A�w������$��Q��
�
���9� <� <���G�G���G�M�M�#������6�6��1�g�a��c�d�d�m�D��G�
�4�y�y�A�~�~��Q��
�
�c�"�"���u�:�:��?�?��4����8�#�D�
�4�y�y�A�~�~���G��
�F�F�3�K�K����7�7����s���A��q�5�5��"�1�"��q����u�~�D����H�H��K�K��O�O�O�
�4�y�y�1�}�}��t�����8�D���R��R��R���2��"���t�	�����B�	�����R�X�X�Z�Z�B��
�[� � ��4�	�	�	�2�	�	��	"�B�	�B�w�w�
�b���	�"�v��}�}�
����W��
������A��1�u�u��R�B��	�"�v��}�}�
����W���	��4�
�a�5�=�=�?�?���R�B��	�"�v��}�}�
����W��	���#���B�
�2�w�w�!�|�|��
��c����	�R���A������c�3�3�	�R���A���#��A��,�,�
��U�[�[��
�
���r�7�7�a�<�<��J�S�#��C�C�
��W�W��\�\� �O�S�#�s�s��4��t��
��W�W��
��W�W���#�h�h���#�h�h���#�h�h���������t�t�����
�C�x�x�
��7�7��$�J�B�B�
�$�J�B��H�	�����B�	�Z����b�>���	��2�w�w�H�H���	�	�	��D�	�����Q�;�;�2�=�=��-�-�;��H��J��a�<�<��F� �y�H�H��F��x��}�d�2�h��n�b�5H�H�I����B��S�#�q�!�R��:�:s%�7AN�
N�N�O)�)
O6�5O6c�d�	t|��}t|t��r
|dd�S|S)Nr6)r�
isinstancer8�r9�ts  r;rr�s6��0��T���A��!�U������!��u���r<c��	|d�tj|dd�dz��Stj|��}||dz
S)Nr6�)rD)�time�mktime�calendar�timegmrms  r;rr�sH��O��A�w���{�4����8�e�+�,�,�,��O�D�!�!���4��7�{�r<c�X�	|�dd���dd��S)N�\z\\�"z\")�replace)�strs r;rr�s-����;�;�t�V�$�$�,�,�S�%�8�8�8r<c�b�eZdZ	d�Zd�Zd�Zd�Zd�Zd�Zd�Z	dd	�Z
d
�Zd�Zd�Z
dd�Zd�Zd
S)�
AddrlistClassc��	d|_d|_d|_d|_|j|jz|_|j|jz|jz|_|j�dd��|_||_g|_	dS)Nz()<>@,:;."[]rz 	z
rJr)
�specials�pos�LWS�CR�FWS�atomendsrx�
phraseends�field�commentlist��selfr�s  r;�__init__zAddrlistClass.__init__�s|��	�
(��
�����������8�d�g�%����
���0�4�7�:��
��-�/�/��R�8�8�����
�����r<c��	g}|jt|j��kr�|j|j|jdzvrJ|j|jdvr%|�|j|j��|xjdz
c_nD|j|jdkr-|j�|�����nn|jt|j��k��t�|��S)Nz

r?�()	r~rSr�rrUr��
getcomment�EMPTYSTRING�join)r��wslists  r;�gotonextzAddrlistClass.gotonext�s���4����h��T�Z���(�(��z�$�(�#�t�x�&�'8�8�8��:�d�h�'�v�5�5��M�M�$�*�T�X�"6�7�7�7����A�
������D�H�%��,�,�� �'�'����(9�(9�:�:�:�:���h��T�Z���(�(�����'�'�'r<c���	g}|jt|j��krN|���}|r||z
}n|�d��|jt|j��k�N|S)N)rr)r~rSr��
getaddressrU)r��result�ads   r;�getaddrlistzAddrlistClass.getaddrlist�su��	����h��T�Z���(�(����"�"�B��
(��"�����
�
�h�'�'�'��h��T�Z���(�(��
r<c��	g|_|���|j}|j}|���}|���g}|jt	|j��kr,|r(t�|j��|dfg}�n|j|jdvrF||_||_|���}t�|j��|fg}�n�|j|jdkr�g}t	|j��}|xjdz
c_|jt	|j��krz|���|j|kr'|j|jdkr|xjdz
c_n4||�	��z}|jt	|j��k�zn�|j|jdkrx|�
��}|jr?t�|��dzd�|j��zd	z|fg}nrt�|��|fg}nT|r)t�|j��|dfg}n)|j|j|jvr|xjdz
c_|���|jt	|j��kr&|j|jd
kr|xjdz
c_|S)Nrz.@rGr?�;�<z (r�)r>)r�r�r~�
getphraselistrSr��SPACEr��getaddrspecr��getrouteaddrr})r��oldpos�oldcl�plist�
returnlist�addrspec�fieldlen�	routeaddrs        r;r�zAddrlistClass.getaddresss���%�����
�
�������� ���"�"�$�$���
�
�����
��8�s�4�:���&�&��
H�$�z�z�$�*:�;�;�U�1�X�F�G�
��
�Z���
!�T�
)�
)��D�H�$�D���'�'�)�)�H� �:�:�d�&6�7�7��B�C�J�J�
�Z���
!�S�
(�
(��J��4�:���H��H�H��M�H�H��(�S���_�_�,�,��
�
�����8�h�&�&�4�:�d�h�+?�3�+F�+F��H�H��M�H�H��'�$�/�/�*;�*;�;�
��(�S���_�_�,�,���Z���
!�S�
(�
(��)�)�+�+�I���
>�$�z�z�%�0�0�4�7�"�x�x��(8�9�9� :�<?� @�AJ�L�M�
�
� %�z�z�%�0�0�)�<�=�
�
��
�$�z�z�$�*:�;�;�U�1�X�F�G�
�
���D�H�%���6�6����A�
����
�
�����8�c�$�*�o�o�%�%�$�*�T�X�*>�#�*E�*E��H�H��M�H�H��r<c��	|j|jdkrdSd}|xjdz
c_|���d}|jt|j��kr�|r|���d}n�|j|jdkr|xjdz
c_n�|j|jdkr|xjdz
c_d}nL|j|jdkr|xjdz
c_n%|���}|xjdz
c_n1|���|jt|j��k��|S)	Nr�Fr?r�>�@TrG)r�r~r�rS�	getdomainr�)r��expectroute�adlists   r;r�zAddrlistClass.getrouteaddrGs?��	��:�d�h��3�&�&��F������A�
����
�
�������h��T�Z���(�(��
���� � � �#�����D�H�%��,�,����A�
������D�H�%��,�,����A�
���"�����D�H�%��,�,����A�
�����)�)�+�+�����A�
�����M�M�O�O�O�!�h��T�Z���(�(�$�
r<c���	g}|���|jt|j��k�rzd}|j|jdkrX|r.|d���s|���|�d��|xjdz
c_d}n�|j|jdkr8|�dt|�����z��nq|j|j|j	vr1|r.|d���s|���nr|�|�
����|���}|r|r|�|��|jt|j��k��z|jt|j��ks|j|jdkrt�|��S|�d��|xjdz
c_|���|�
��}|stSt�|��|zS)	NTrJrDr?Frwz"%s"r�)r�r~rSr��strip�poprUr�getquoter��getatomr�r�r�)r��aslist�preserve_ws�ws�domains     r;r�zAddrlistClass.getaddrspecgs��*����
�
�����h��T�Z���(�(��K��z�$�(�#�s�*�*��!�&��*�"2�"2�"4�"4�!��J�J�L�L�L��
�
�c�"�"�"����A�
���#�����D�H�%��,�,��
�
�f�u�T�]�]�_�_�'=�'=�=�>�>�>�>���D�H�%���6�6��!�&��*�"2�"2�"4�"4�!��J�J�L�L�L���
�
�d�l�l�n�n�-�-�-������B��
"�r�
"��
�
�b�!�!�!�%�h��T�Z���(�(�(�8�s�4�:���&�&�$�*�T�X�*>�#�*E�*E��#�#�F�+�+�+��
�
�c�������A�
����
�
�������!�!���	�������'�'�&�0�0r<c�@�	g}|jt|j��k�rd|j|j|jvr|xjdz
c_�n|j|jdkr-|j�|�����n�|j|jdkr(|�|�����n�|j|jdkr&|xjdz
c_|�d��n^|j|jdkrtS|j|j|j	vrnE|�|�
����|jt|j��k��dt�|��S)Nr?r��[rJr�)r~rSr�rr�rUr��getdomainliteralr�r�r�r�)r��sdlists  r;r�zAddrlistClass.getdomain�sg��;����h��T�Z���(�(��z�$�(�#�t�x�/�/����A�
������D�H�%��,�,�� �'�'����(9�(9�:�:�:�:���D�H�%��,�,��
�
�d�3�3�5�5�6�6�6�6���D�H�%��,�,����A�
����
�
�c�"�"�"�"���D�H�%��,�,�#�"���D�H�%���6�6���
�
�d�l�l�n�n�-�-�-�#�h��T�Z���(�(�$����'�'�'r<Tc��	|j|j|krdSdg}d}|xjdz
c_|jt|j��kr�|r(|�|j|j��d}n�|j|j|vr|xjdz
c_n�|r>|j|jdkr(|�|�������|j|jdkrd}n%|�|j|j��|xjdz
c_|jt|j��k��t
�|��S)NrFr?r�rvT)r�r~rSrUr�r�r�)r��	beginchar�endchars�
allowcomments�slistrs      r;�getdelimitedzAddrlistClass.getdelimited�sN��	��:�d�h��9�,�,��2���������A�
����h��T�Z���(�(��
3����T�Z���1�2�2�2������D�H�%��1�1����A�
�����
3�4�:�d�h�#7�3�#>�#>����T�_�_�.�.�/�/�/����D�H�%��-�-�������T�Z���1�2�2�2��H�H��M�H�H��h��T�Z���(�(� ����&�&�&r<c�2�	|�ddd��S)Nrwz"
F�r��r�s r;r�zAddrlistClass.getquote�s��?�� � ��e�U�3�3�3r<c�2�	|�ddd��S)Nr�z)
Tr�r�s r;r�zAddrlistClass.getcomment�s��E�� � ��e�T�2�2�2r<c�8�	d|�ddd��zS)Nz[%s]r�z]
Fr�r�s r;r�zAddrlistClass.getdomainliteral�s"��/���)�)�#�u�e�<�<�<�<r<Nc�X�	dg}|�|j}|jt|j��krg|j|j|vrnR|�|j|j��|xjdz
c_|jt|j��k�gt
�|��S)Nrr?)r�r~rSr�rUr�r�)r�r��atomlists   r;r�zAddrlistClass.getatom�s���	!��4�����}�H��h��T�Z���(�(��z�$�(�#�x�/�/������
�4�8� 4�5�5�5��H�H��M�H�H��h��T�Z���(�(�����)�)�)r<c�h�	g}|jt|j��k�r|j|j|jvr|xjdz
c_n�|j|jdkr(|�|�����n�|j|jdkr-|j�|�����nG|j|j|jvrnK|�|�	|j����|jt|j��k��|S)Nr?rwr�)
r~rSr�r�rUr�r�r�r�r�)r�r�s  r;r�zAddrlistClass.getphraselist�s
��	����h��T�Z���(�(��z�$�(�#�t�x�/�/����A�
������D�H�%��,�,����T�]�]�_�_�-�-�-�-���D�H�%��,�,�� �'�'����(9�(9�:�:�:�:���D�H�%���8�8�����T�\�\�$�/�:�:�;�;�;��h��T�Z���(�(��r<)T�N)�__name__�
__module__�__qualname__r�r�r�r�r�r�r�r�r�r�r�r�r��r<r;r{r{�s�����������&(�(�(����9�9�9�v���@$1�$1�$1�L(�(�(�.#'�#'�#'�#'�J4�4�4�3�3�3�=�=�=�*�*�*�*�(����r<r{c�:�eZdZ	d�Zd�Zd�Zd�Zd�Zd�Zd�Z	dS)	�AddressListc��t�||��|r|���|_dSg|_dSr�)r{r�r��addresslistr�s  r;r�zAddressList.__init__sH�����t�U�+�+�+��	"�#�/�/�1�1�D����!�D���r<c�*�t|j��Sr�)rSr�r�s r;�__len__zAddressList.__len__	s���4�#�$�$�$r<c��td��}|jdd�|_|jD]%}||jvr|j�|���&|Sr��r�r�rU�r��other�newaddr�xs    r;�__add__zAddressList.__add__s`���d�#�#��"�.�q�q�q�1����"�	.�	.�A���(�(�(��#�*�*�1�-�-�-���r<c�`�|jD]%}||jvr|j�|���&|Sr�)r�rU�r�r�r�s   r;�__iadd__zAddressList.__iadd__s?���"�	+�	+�A���(�(�(�� �'�'��*�*�*���r<c�~�td��}|jD]%}||jvr|j�|���&|Sr�r�r�s    r;�__sub__zAddressList.__sub__sL���d�#�#���!�	.�	.�A���)�)�)��#�*�*�1�-�-�-���r<c�`�|jD]%}||jvr|j�|���&|Sr�)r��remover�s   r;�__isub__zAddressList.__isub__$s?���"�	+�	+�A��D�$�$�$�� �'�'��*�*�*���r<c��|j|Sr�)r�)r�rWs  r;�__getitem__zAddressList.__getitem__+s�����&�&r<N)
r�r�r�r�r�r�r�r�r�r�r�r<r;r�r�s�������J�"�"�"�%�%�%�������������'�'�'�'�'r<r�)�__all__rqrsr�r��
COMMASPACErVrQr\rr7rrrr{r�r�r<r;�<module>r�sI���
����������������
�
�I�I�I��

>�=�=�	��A�Q�A��$��$��$��$��$���
�
�
�
�z;�z;�z;�z������9�9�9�k�k�k�k�k�k�k�k�Z	-'�-'�-'�-'�-'�-�-'�-'�-'�-'�-'r<