Uname: Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.213.251.212
Your Ip: 18.116.200.95
User: allssztx (535) | Group: allssztx (533)
Safe Mode: OFF
Disable Function:
NONE

name : utils.cpython-313.pyc
�

*}gr?���Sr/SQrSSKrSSKrSSKrSSKrSSKrSSKJ	r	 SSKJ
r SSKJr SSKJ
r
JrJr SrS	rS	rS
rSr\R*"S5r\R*"S
5rSrSrS&SjrSrSrSrSS.SjrSrSr Sr!Sr"S'Sjr#S(Sjr$S)Sjr%Sr&SS.Sjr'Sr(S r)S)S!jr*\R*"S"\RV5r,S#r-S*S$jr.S)S%jr/g)+zMiscellaneous utilities.)�collapse_rfc2231_value�
decode_params�decode_rfc2231�encode_rfc2231�
formataddr�
formatdate�format_datetime�getaddresses�
make_msgid�	mktime_tz�	parseaddr�	parsedate�parsedate_tz�parsedate_to_datetime�unquote�N)�quote)�AddressList)r)r
r�
_parsedate_tzz, �z
�'z[][\\()<>@,:;".]z[\\"]c�F�UR5 g![a gf=f)z;Return True if s may contain surrogate-escaped binary data.FT)�encode�UnicodeEncodeError)�ss �2/opt/alt/python313/lib64/python3.13/email/utils.py�_has_surrogatesr/s%��
�	���
�������s��
 � c�J�URSS5nURSS5$)N�utf-8�surrogateescape�replace)r�decode)�string�original_bytess  r�	_sanitizer$<s(��
�]�]�7�,=�>�N�� � ��)�4�4�c��Uup#URS5 U(aVURS5 Sn[RU5(aSn[R	SU5nU<U<U<SU<S3$U$![
aA [
U[5(aSSKJ	n U"U5nURU5nU<SU<S3s$f=f)	a�The inverse of parseaddr(), this takes a 2-tuple of the form
(realname, email_address) and returns the string value suitable
for an RFC 2822 From, To or Cc header.

If the first element of pair is false, then the second element is
returned unmodified.

The optional charset is the character set that is used to encode
realname in case realname is not ASCII safe.  Can be an instance of str or
a Charset-like object which has a header_encode method.  Default is
'utf-8'.
�asciir�"z\\\g<0>z <�>r)�Charset)r�
specialsre�search�	escapesre�subr�
isinstance�str�
email.charsetr*�
header_encode)�pair�charset�name�address�quotesr*�encoded_names       rrrHs����M�D��N�N�7���	C��K�K�� ��F�� � ��&�&����=�=��T�2�D�$*�D�&�'�B�B��N��"�	7��'�3�'�'�1�!�'�*��"�0�0��6�L� ,�g�6�6�
	7�s�A5�5AC�?Cc#�# �SnSn[U5H(upU(a
USU-4v� SnMUS:XaSnM#X4v� M* U(aUS4v� gg7f)NrF�\T)�	enumerate)�addr�pos�escape�chs    r�_iter_escaped_charsr@ks]���
�C�
�F��T�?������r�	�"�"��F�
�4�Z��F��)�O�#���D�k���s�AA
c��SU;aU$SnSn/n[U5H3upEUS:XdM
UcUnMX:waURXU5 US-nSnM5 U[U5:aURXS5 SRU5$)z Strip real names between quotes.r(rN�r)r@�append�len�join)r<�start�open_pos�resultr=r?s      r�_strip_quoted_realnamesrIzs���
�$����
�E��H�
�F�&�t�,���
��9������$��M�M�$�X�"6�7��a�����-�
�s�4�y���
�
�d�6�l�#�
�7�7�6�?�r%T)�strictc��U(d3[RSU55n[U5nUR$UVs/sHn[	U5PM nn[U5n[RU5n[U5n[
UR5nSnUH%n[U5nUSURS5--
nM' [U5U:waS/$U$s snf)z�Return a list of (REALNAME, EMAIL) or ('','') for each fieldvalue.

When parsing fails for a fieldvalue, a 2-tuple of ('', '') is returned in
its place.

If strict is true, use a strict parser which rejects malformed inputs.
c3�8# �UHn[U5v� M g7f)N�r0)�.0�vs  r�	<genexpr>�getaddresses.<locals>.<genexpr>�s���:�k��c�!�f�f�k�s�rrB�,�rr)
�
COMMASPACErE�_AddressList�addresslistr0�_pre_parse_validation�_post_parse_validationrI�countrD)�fieldvaluesrJ�all�arOr<rH�ns        rr	r	�s���$��o�o�:�k�:�:�������}�}��#.�/�;�a�3�q�6�;�K�/�'��4�K��?�?�;�'�D��T��A�
#�A�M�M�
2�F�	
�A�
��
$�A�&��	�Q������
�����6�{�a���z���M��%0s�Cc��[U5nSn[U5H'up#US:XaUS-
nMUS:XdMUS-nUS:dM' g US:H$)Nr�(rB�)F)rIr@)r<�opensr=r?s    r�_check_parenthesisrb�sX��"�4�(�D�
�E�&�t�,���
��9��Q�J�E�
�3�Y��Q�J�E��q�y��
-�
�Q�J�r%c�b�/nUH&n[U5(dSnURU5 M( U$)Nz('', ''))rbrC)�email_header_fields�accepted_valuesrOs   rrWrW�s7���O�
 ��!�!�$�$��A����q�!�!�
�r%c�T�/nUHnSUS;aSnURU5 M! U$)N�[rBrS)rC)�parsed_email_header_tuplesrerOs   rrXrX�s9���O�(���!�A�$�;��A����q�!�(�
�r%c	�`�S/SQUSUS/SQUSS-
USUSUS	US
U4-$)Nz"%s, %02d %s %04d %02d:%02d:%02d %s)�Mon�Tue�Wed�Thu�Fri�Sat�Sun��)�Jan�Feb�Mar�Apr�May�Jun�Jul�Aug�Sep�Oct�Nov�DecrBr����)�	timetuple�zones  r�_format_timetuple_and_zoner��sZ��/�9�)�A�,�G��!��	3�3<�Q�<�!�3C�	E��!��i��l�I�a�L�)�A�,��
3��r%c��Uc[R"5n[RRU[RR5nU(aUR5nSnOU(dUR
SS9n[X25$)a[Returns a date string as specified by RFC 2822, e.g.:

Fri, 09 Nov 2001 01:08:47 -0000

Optional timeval if given is a floating-point time value as accepted by
gmtime() and localtime(), otherwise the current time is used.

Optional localtime is a flag that when True, interprets timeval, and
returns a date relative to the local timezone instead of UTC, properly
taking daylight savings time into account.

Optional argument usegmt means that the timezone is written out as
an ascii string, not numeric one (so "GMT" instead of "+0000"). This
is needed for HTTP, and is only used when localtime==False.
NF)�tzinfo)�time�datetime�
fromtimestamp�timezone�utc�
astimezoner r)�timeval�	localtime�usegmt�dts    rrr�si��$���)�)�+��	�	�	�	(�	(��(�2C�2C�2G�2G�	H�B��
�]�]�_����
�
�Z�Z�t�Z�
$���2�&�&r%c��UR5nU(aCURb(UR[RR:wa[S5eSnO!URcSnOUR
S5n[X#5$)aTurn a datetime into a date string as specified in RFC 2822.

If usegmt is True, dt must be an aware datetime with an offset of zero.  In
this case 'GMT' will be rendered instead of the normal +0000 required by
RFC2822.  This is to support HTTP headers involving date stamps.
z%usegmt option requires a UTC datetime�GMTz-0000z%z)r�r�r�r�r��
ValueError�strftimer�)r�r��nowr�s    rrrsl��
�,�,�.�C�
�
�9�9���	�	�X�->�->�-B�-B� B��D�E�E���	���	����{�{�4� ��%�c�0�0r%c���SSKnSSKn[[R"5S-5n[R
"5nUR
S5nUcSnOSU-nUcUR5nSXEX`U4-nU$)acReturns a string suitable for RFC 2822 compliant Message-ID, e.g:

<142480216486.20800.16526388040877946887@nightshade.la.mastaler.com>

Optional idstring if given is a string used to strengthen the
uniqueness of the message id.  Optional domain if given provides the
portion of the message id after the '@'.  It defaults to the locally
defined hostname.
rN�d�@r�.z<%d.%d.%d%s@%s>)�random�socket�intr��os�getpid�getrandbits�getfqdn)�idstring�domainr�r�r��pid�randint�msgids        rr
r
st�����$�)�)�+�c�/�"�G�
�)�)�+�C�� � ��$�G�������>��
�~����!����w�&� I�I�E��Lr%c
��[U5nUc[S[U5-5eUGtp#Uc[R"USS6$[R"USSS[R"[R
"US9506$)Nz!Invalid date value or format "%s"rqr�)�seconds)rr�r0r�r��	timedelta)�data�parsed_date_tz�dtuple�tzs    rrr;s���"�4�(�N����<�s�4�y�H�I�I� �K�V�	�z�� � �&��!�*�-�-����f�R�a�j�F��$�$�X�%7�%7��%C�D�F�Fr%c�F�U(d"[U5RnU(dgUS$[U[5(aUSn[U[5(dg[U/5Sn[
[U5R5nU(a[U5S:�agUS$)z�
Parse addr into its constituent realname and email address parts.

Return a tuple of realname and email address, unless the parse fails, in
which case return a 2-tuple of ('', '').

If strict is True, use a strict parser which rejects malformed inputs.
rSrrB)rUrVr/�listr0rWrXrD)r<rJ�addrss   rrrFs�����T�"�.�.�����Q�x���$�����A�w���d�C� � �� �$��(��+�D�"�<��#5�#A�#A�B�E��C��J��N����8�Or%c�(�[U5S:�a�URS5(a;URS5(a%USSRSS5RSS5$URS5(aURS5(aUSS$U$)	zRemove quotes from a string.rBr(���z\\r:z\"�<r))rD�
startswith�endswithr rMs rrres~��
�3�x�!�|��>�>�#���3�<�<��#4�#4��q��9�$�$�V�T�2�:�:�5�#�F�F��>�>�#���3�<�<��#4�#4��q��9���Jr%c�Z�UR[S5n[U5S::aSSU4$U$)z#Decode string according to RFC 2231rrN)�split�TICKrD)r�partss  rrrqs.��
�G�G�D�!��E�
�5�z�Q���T�1�}���Lr%c��[RRUSU=(d SS9nUcUcU$UcSnU<SU<SU<3$)z�Encode string according to RFC 2231.

If neither charset nor language is given, then s is returned as-is.  If
charset is given but not language, the string is encoded using the empty
string for language.
rr')�safe�encodingr)�urllib�parser)rr4�languages   rrrysK��	�����1�2��0B�7��C�A���8�+������� �(�A�.�.r%z&^(?P<name>\w+)\*((?P<num>[0-9]+)\*?)?$c�$�US/n0nUSSH�up4URS5n[U5n[RU5nU(aGUR	SS5up7Ub[U5nUR
U/5RXtU45 M�URUS[U5-45 M� U(a�UR5H�up8/nSn	UR5 UH>upznU(a [RRU
S	S
9n
Sn	URU
5 M@ [[RU55nU	(a([U5up�nURX;USU-445 M�URUSU-45 M� U$)zwDecode parameters list according to RFC 2231.

params is a sequence of 2-tuples containing (param name, string value).
rrBN�*r5�numz"%s"Fzlatin-1)r�T)r�r�rfc2231_continuation�match�groupr��
setdefaultrCr�items�sortr�r��EMPTYSTRINGrEr)
�params�
new_params�rfc2231_paramsr5�value�encoded�mor��
continuations�extendedrr4r�s
             rrr�s���
��)��J��N��a�b�z����-�-��$������
!�
'�
'��
-��
������/�I�D����#�h���%�%�d�B�/�6�6��G�7L�M����t�V�e�E�l�%:�;�<�"��#1�#7�#7�#9��D��E��H���� �$1��������,�,�Q��,�C�A�#�H����Q��$1��+�*�*�5�1�2�E��+9�%�+@�(��5��!�!�4�8�V�e�^�)L�"M�N��!�!�4��%��"8�9�/$:�0�r%c���[U[5(a[U5S:wa[U5$Uup4nUcUn[	US5n[XcU5$![a [U5s$f=f)Nrzraw-unicode-escape)r/�tuplerDr�bytesr0�LookupError)r��errors�fallback_charsetr4r��text�rawbytess       rrr�ss���e�U�#�#�s�5�z�Q���u�~��$��G�t���#���T�/�0�H���8�f�-�-�����t�}���s�A�A+�*A+c��UbSSKnURSSSS9 Uc[RR5nUR	5$)aeReturn local time as an aware datetime object.

If called without arguments, return current time.  Otherwise *dt*
argument should be a datetime instance, and it is converted to the
local time zone according to the system time zone database.  If *dt* is
naive (that is, dt.tzinfo is None), it is assumed to be in local time.
The isdst parameter is ignored.

Nrz$The 'isdst' parameter to 'localtime'z>{name} is deprecated and slated for removal in Python {remove})r�)�message�remove)�warnings�_deprecatedr�r�r�)r��isdstr�s   rr�r��sP��
������2�T��	�	�

�z�
�
�
�
"�
"�
$��
�=�=�?�r%)r)NFF)F)NN)r zus-ascii)0�__doc__�__all__r��rer�r��urllib.parser��email._parseaddrrrrUrr
rrrTr��UEMPTYSTRING�CRLFr��compiler+r-rr$rr@rI�supports_strict_parsingr	rbrWrXr�rrr
rrrrr�ASCIIr�rrr�r�r%r�<module>r�s��
���$
�	����"�8�&�C�C�
�
�����
��
��
�Z�Z�+�
,�
��J�J�x� �	�	�5� �F��2��(,�)�X��	��'�:1�&�8F�#��>��/��z�z�"K��H�H���.�`*3�,6��4r%
© 2025 GrazzMean-Shell