asda?‰PNG  IHDR ? f ??C1 sRGB ??é gAMA ±? üa pHYs ? ??o¨d GIDATx^íüL”÷e÷Y?a?("Bh?_ò???¢§?q5k?*:t0A-o??¥]VkJ¢M??f?±8\k2íll£1]q?ù???T bhHdZgdZddlZddlZddlZddlZddlZddlZddlZ ddl m Z ddl m Z ddl mZddl mZmZmZddlmZd Zd Zd Zd Zd Zejd ZejdZdZdadZdZdZ dZ!d/dZ"dZ#dZ$dZ%dddZ&dZ'dZ(dZ)dZ*d0d Z+d1d!Z,d2d"Z-d#Z.ddd$Z/d%Z0d&Z1d2d'Z2ejd(ej3Z4d)Z5 d3d,Z6d4d.Z7dS)5zMiscellaneous utilities.)collapse_rfc2231_value decode_paramsdecode_rfc2231encode_rfc2231 formataddr formatdateformat_datetime getaddresses make_msgid mktime_tz parseaddr parsedate parsedate_tzparsedate_to_datetimeunquoteN)quote) AddressList)r )r r _parsedate_tz)Charsetz, z 'z[][\\()<>@,:;".]z[\\"]z/etc/python/email.cfgc:ttatS)z5"Cache implementation for _cached_strict_addr_parsing)_cached_strict_addr_parsing_use_strict_email_parsing_impl$/usr/lib64/python3.11/email/utils.py_use_strict_email_parsingr7s#*&D&F&F# &&rc~ttjd}|rdS t t }|5ddl}|dd}||| ddd}dddn #1swxYwYn#t$rYnwxYw|rdSd S) z]Returns True if strict email parsing is not disabled by config file or env variable. (PYTHON_EMAIL_DISABLE_STRICT_ADDR_PARSINGFrN)#) interpolationcomment_prefixesemail_addr_parsing)fallbackT) boolosenvirongetopen_EMAIL_CONFIG_FILE configparser ConfigParser read_file getbooleanFileNotFoundError)disabledfiler,configs rrr?sEBJNN#MNNOOHu z&'' z z    !.."!(/F   T " " "(()=?itx(yyH z z z z z z z z z z z z z z z      u 4s$B)A BB!$B!) B65B6cR |dS#t$rYdSwxYw)z;Return True if s may contain surrogate-escaped binary data.FT)encodeUnicodeEncodeError)ss r_has_surrogatesr8\s;   u tts  &&cZ|dd}|ddS)Nutf-8surrogateescapereplace)r5decode)stringoriginal_bytess r _sanitizer@is. ]]7,=>>N  ) 4 44rr:c|\}}|d|r |dd}t|rd}td|}|||d|dS#t $rDt |trt|}| |}|d|dcYSwxYw|S)aThe 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 <>) r5 specialsresearch escapesresubr6 isinstancestrr header_encode)paircharsetnameaddressquotes encoded_names rrrusMD' NN7 C C KK F  && ==T22D$*FDD&&&'''B B" 7 7 7'3'' +!'**"0066L , ggg6 6 6 6  7 NsA88A CCc#Kd}d}t|D]"\}}|r |d|zfVd}|dkrd}||fV#|r|dfVdSdS)NrF\T) enumerate)addrposescapechs r_iter_escaped_charsrYs C FT??R  r " " " "FF 4ZZFF)OOOO Dkrc8d|vr|Sd}d}g}t|D]:\}}|dkr/||}||kr|||||dz}d};|t|kr|||dd|S)z Strip real names between quotes.rCrNr)rYappendlenjoin)rUstartopen_posresultrVrXs r_strip_quoted_realnamesrbs $ EH F&t,,  R 99H$$MM$uX~"6777a s4yy d566l### 776??rT)strictc|dkrt}|s:td|D}t|}|jSd|D}t |}t|}t|}t |j}d}|D],}t|}|d|dzz }-t||krdgS|S)zReturn 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. Nc34K|]}t|VdS)NrJ.0vs r zgetaddresses..s(::c!ff::::::rc,g|]}t|Srrfrgs r z getaddresses..s///a3q66///rrr[,rr) r COMMASPACEr^ _AddressList addresslist_pre_parse_validation_post_parse_validationrbcountr]) fieldvaluesrcallarUranris rr r s~~*,, oo::k:::::   }//;///K' 44K ??; ' 'DTA #AM 2 2F A  $A & & Q  6{{az Mrct|}d}t|D]%\}}|dkr|dz }|dkr|dz}|dkrdS&|dkS)Nr(r[)F)rbrY)rUopensrVrXs r_check_parenthesisr}sp "4 ( (D E&t,,R 99 QJEE 3YY QJEqyyuu QJrc`g}|D](}t|sd}||)|S)Nz('', ''))r}r\)email_header_fieldsaccepted_valuesris rrrrrsHO ""!!$$ Aq!!!! rcVg}|D]#}d|dvrd}||$|S)N[r[rn)r\)parsed_email_header_tuplesrris rrsrs sGO("" !A$;;Aq!!!! rc dgd|d|dgd|ddz |d|d|d |d |fzS) Nz"%s, %02d %s %04d %02d:%02d:%02d %s)MonTueWedThuFriSatSun) JanFebMarAprMayJunJulAugSepOctNovDecr[rr) timetuplezones r_format_timetuple_and_zonersj /999)A,G!  3 3 33-B B BDEE E  {{4   %c4 0 00rcttjdz}tj}t jd}|d}nd|z}|t j}d|||||fz}|S)a{Returns 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. d@Nr.z<%d.%d.%d%s@%s>)intrr'getpidrandom getrandbitssocketgetfqdn)idstringdomainrpidrandintmsgids rr r Osx$)++c/""G )++C $$G> ~!! #w& I IE Lrc t|}|tdt|z|^}}|tj|ddStj|dddtjtj|iS)Nz!Invalid date value or format "%s"rrseconds)rrrJrr timedelta)dataparsed_date_tzdtupletzs rrrfs"4((N>#   G3<<#4#4 Gqt9$$VT22::5#FF F >>#   3<<#4#4 qt9  Jrcl|td}t|dkrdd|fS|S)z#Decode string according to RFC 2231rN)splitTICKr])r7partss rrrs5 GGD!  E 5zzQT1} Lrcrtj|d|pd}|||S|d}|d|d|S)zEncode 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. rrB)safeencodingNr)urllibparser)r7rMlanguages rrrsV  120B7CCA8+ (((AA ..rz&^(?P\w+)\*((?P[0-9]+)\*?)?$c|dg}i}|ddD]\}}|d}t|}t|}|rW|dd\}}|t |}||g|||f||dt|zf|r| D]\}}g}d} | |D]@\}} }|r#tj | d } d } || Att|}| r1t|\} } }||| | d|zff||d|zf|S) zDecode parameters list according to RFC 2231. params is a sequence of 2-tuples containing (param name, string value). rr[N*rNnumz"%s"Fzlatin-1)rT)rrrfc2231_continuationmatchgroupr setdefaultr\ritemssortrr EMPTYSTRINGr^r) params new_paramsrfc2231_paramsrNvalueencodedmor continuationsextendedr7rMrs rrrs )JNabbz = = e--$$ ! ' ' - -  =//ID##hh  % %dB / / 6 6UG7L M M M M   tVeEll%:; < < < <:#1#7#7#9#9 : : D-EH    $1  Q$ ,,Q,CCA#H Q+**51122E :+9%+@+@(5!!4'8Ve^)L"MNNNN!!4%"89999 rr<us-asciict|trt|dkrt|S|\}}}||}t |d} t |||S#t $rt|cYSwxYw)Nrzraw-unicode-escape)rItupler]rbytesrJ LookupError)rerrorsfallback_charsetrMrtextrawbytess rrrs eU # #s5zzQu~~$GXt#T/00H8Wf--- t}}sA$$B?Brcd|@tjtjjS|j|S|dd|fz}tj|}tj |} tj |j }tj||j }n#t$r|tjtj|ddz }tjo |jdk}|r tjn tj }|tj |kr&tj|tj|}ntj|}YnwxYw||S)aReturn 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. In this case, a positive or zero value for *isdst* causes localtime to presume initially that summer time (for example, Daylight Saving Time) is or is not (respectively) in effect for the specified time. A negative value for *isdst* causes the localtime() function to attempt to divine whether summer time is in effect for the specified time. Nrrrr)r)rrrrrrrrmktimerr tm_gmtofftm_zoneAttributeErrorgmtimedaylighttm_isdstaltzonetznamer<) risdsttmrlocaltmdeltardstgmtoffs rrrs{ z $$X%6%:;;FFHHH y}}  x 'Bk"ooGnW%%G *"7+<===  ugo 6 6  * * *X& G(<(rs    $ """"""888888&&&&&&CCCCCCCCCC"!!!!!       RZ+ , , BJx ,"''':   555B   2(,.....b      '''':1111&.FFF#     H / / / /"rz"KH...`*3,64%!%!%!%!%!%!r