§ !A?h]!ãó4—dZddlZddlZddlZddlZddlmZmZddlm Z gd¢Z ej ej d¦«j d„¦«Zd„ZGd „d e¦«Ze¦«Zd eed ¦«<d „Zd„Zd„Zd„Zd„ZeedœZd„ZeedœZeedœZdd„ZdS)z¦ Routines for manipulating RFC2047 encoded words. This is currently a package-private API, but will be considered for promotion to a public API if there is demand. éN)Ú ascii_lettersÚdigits)Úerrors)Údecode_qÚencode_qÚdecode_bÚencode_bÚlen_qÚlen_bÚdecodeÚencodes=([a-fA-F0-9]{2})có€—t | d¦« ¦«¦«S)Né)ÚbytesÚfromhexÚgroupr )Úms úA/opt/alt/python-internal/lib64/python3.11/email/_encoded_words.pyúrAs(€•%—-’- §¢¨¡ ¤ × 1Ò 1Ñ 3Ô 3Ñ4Ô4€ócóP—| dd¦«}t|¦«gfS)Nó_ó )ÚreplaceÚ_q_byte_subber)Úencodeds rrrCs(€Ø�oŠo˜d DÑ)Ô)€GÝ ˜'Ñ "Ô " BÐ &Ð&rcó\—eZdZdejd¦«zejd¦«zZd„ZdS)Ú _QByteMaps-!*+/Úasciicóz—||jvrt|¦«||<nd |¦«||<||S)Nz={:02X})ÚsafeÚchrÚformat)ÚselfÚkeys rÚ __missing__z_QByteMap.__missing__MsA€Ø �$”)РРݘC™œˆD�‰IˆIà!×(Ò(¨Ñ-Ô-ˆD�‰IØ�CŒyÐrN)Ú__name__Ú __module__Ú __qualname__rr rr!r&©rrrrIsL€€€€€à Ð*�mÔ*¨7Ñ3Ô3Ñ 3°m°f´mÀGÑ6LÔ6LÑ L€DðððððrrÚ_ú có@—d d„|D¦«¦«S)NÚc3ó0K—|]}t|V—ŒdS©N)Ú _q_byte_map©Ú.0Úxs rú zencode_q..Zs&èè€Ð3Ð3 a•;˜q”>Ð3Ð3Ð3Ð3Ð3Ð3r)Újoin©Úbstrings rrrYs#€Ø �7Š7Ð3Ð3¨7Ð3Ñ3Ô3Ñ 3Ô 3Ð3rcó4—td„|D¦«¦«S)Nc3óJK—|]}tt|¦«V—ŒdSr0)Úlenr1r2s rr5zlen_q..]s.èè€Ð4Ð4 q�s•;˜q”>Ñ"Ô"Ð4Ð4Ð4Ð4Ð4Ð4r)Úsumr7s rr r \s€Ý Ð4Ð4¨GÐ4Ñ4Ô4Ñ 4Ô 4Ð4rcó8—t|¦«dz}|r ddd|z …nd} tj||zd¬¦«|rtj¦«gngfS#t j$r´ tj|d¬¦«tj¦«gfcYS#t j$rt tj|dzd¬¦«tj¦«tj¦«gfcYcYS#t j$r|tj¦«gfcYcYcYSwxYwwxYwwxYw)Nés===rT)ÚvalidateFs==) r;Úbase64Ú b64decoderÚInvalidBase64PaddingDefectÚbinasciiÚErrorÚInvalidBase64CharactersDefectÚInvalidBase64LengthDefect)rÚpad_errÚmissing_paddings rrrds™€õ�'‰lŒl˜QÑ€GØ,3Ð<�f˜Z˜a ™i˜ZÔ(Ð(¸€OðEå Ô ˜W Ñ6ÀÐ FÑ FÔ FØ5<Ð D�VÔ .Ñ 0Ô 0Ð 1Ð 1À"ð ð øõ Œ>ðEðEðEð  EåÔ  °5Ð9Ñ9Ô9ÝÔ5Ñ7Ô7Ð8ðð ð ð øõŒ~ð Eð Eð Eð EåÔ$ W¨u¡_¸uÐEÑEÔEÝÔ9Ñ;Ô;ÝÔ6Ñ8Ô8ð:ððððððøõ ”>ð Eð Eð Eð ¥Ô!AÑ!CÔ!CÐ DÐDÐDÐDÐDÐDÐDÐDÐDð  Eøøøð EøøøðEøøøsS¥0AÁDÁ&)BÂDÂDÂ">C%à DÃ!DÃ%%DÄ DÄ DÄDÄDÄDcóP—tj|¦« d¦«S)Nr)r@Ú b64encoder r7s rr r Šs!€Ý Ô ˜GÑ $Ô $× +Ò +¨GÑ 4Ô 4Ð4rcóZ—tt|¦«d¦«\}}|dz|rdndzS)Nér>r)Údivmodr;)r8Ú groups_of_3Úleftovers rr r �s4€Ý"¥3 w¡<¤<°Ñ3Ô3Ñ€K�à ˜‰? 8Ð2˜a˜a°Ñ 3Ð3r)ÚqÚbcó —| d¦«\}}}}}| d¦«\}}}| ¦«}| dd¦«}t ||¦«\}} | |¦«}n¼#t $rD| tj d|›d�¦«¦«| |d¦«}Ynottf$r\| dd¦«}| ¦«dkr+| tj d|›d �¦«¦«YnwxYw||||fS) a�Decode encoded word and return (string, charset, lang, defects) tuple. An RFC 2047/2243 encoded word has the form: =?charset*lang?cte?encoded_string?= where '*lang' may be omitted but the other parts may not be. This function expects exactly such a string (that is, it does not check the syntax and may raise errors if the string is not well formed), and returns the encoded_string decoded first from its Content Transfer Encoding and then from the resulting bytes into unicode using the specified charset. If the cte-decoded string does not successfully decode using the specified character set, a defect is added to the defects list and the unknown octets are replaced by the unicode 'unknown' character \uFDFF. The specified charset and language are returned. The default for language, which is rarely if ever encountered, is the empty string. ú?Ú*rÚsurrogateescapez0Encoded word contains bytes not decodable using z charsetú unknown-8bitzUnknown charset z* in encoded word; decoded as unknown bytes) ÚsplitÚ partitionÚlowerr Ú _cte_decodersr ÚUnicodeDecodeErrorÚappendrÚUndecodableBytesDefectÚ LookupErrorÚUnicodeEncodeErrorÚ CharsetError) Úewr+ÚcharsetÚcteÚ cte_stringÚlangr8ÚdefectsÚstrings rr r ˜s�€ð*&(§X¢X¨c¡]¤]Ñ"€A€w��Z Ø×(Ò(¨Ñ-Ô-Ñ€GˆQ�Ø �)Š)‰+Œ+€Cà×Ò Ð):Ñ;Ô;€GÝ$ SÔ)¨'Ñ2Ô2Ñ€GˆWð ?Ø—’ Ñ(Ô(ˆˆøÝ ð<ð<ð<Ø�Š•vÔ4ð6FØ29ð6Fð6Fð6FñGôGñ Hô Hð Hà—’ Ð):Ñ;Ô;ˆˆˆÝ Õ+Ð ,ð?ð?ð?Ø—’ Ð):Ñ;Ô;ˆØ �=Š=‰?Œ?˜nÒ ,Ð ,Ø �NŠN�6Ô.ð0=À'ð0=ð0=ð0=ñ>ô>ñ ?ô ?ð ?øøð?øøøð �7˜D 'Ð )Ð)sÁ8BÂA EÃA)EÅEúutf-8r.có@—|dkr| dd¦«}n| |¦«}|€7td|¦«}td|¦«}||z dkrdnd}t||¦«}|rd|z}d  ||||¦«S) aEncode string using the CTE encoding that produces the shorter result. Produces an RFC 2047/2243 encoded word of the form: =?charset*lang?cte?encoded_string?= where '*lang' is omitted unless the 'lang' parameter is given a value. Optional argument charset (defaults to utf-8) specifies the charset to use to encode the string to binary before CTE encoding it. Optional argument 'encoding' is the cte specifier for the encoding that should be used ('q' or 'b'); if it is None (the default) the encoding which produces the shortest encoded sequence is used, except that 'q' is preferred if it is up to five characters longer. Optional argument 'lang' (default '') gives the RFC 2243 language string to specify in the encoded word. rVrrUNrPrQérTz=?{}{}?{}?{}?=)r Ú_cte_encode_lengthÚ _cte_encodersr#)rgrbÚencodingrer8ÚqlenÚblenrs rr r Ìs²€ð"�.Ò Ð Ø—-’- Ð):Ñ;Ô;ˆˆà—-’- Ñ(Ô(ˆØÐÝ! #Ô& wÑ/Ô/ˆÝ! #Ô& wÑ/Ô/ˆà ™+¨š/˜/�3�3¨sˆÝ˜HÔ% gÑ.Ô.€GØ ðØ�T‰zˆØ × "Ò " 7¨D°(¸GÑ DÔ DÐDr)rhNr.)Ú__doc__Úrer@rCÚ functoolsrgrrÚemailrÚ__all__ÚpartialÚcompileÚsubrrÚdictrr1Úordrr rr r rZr rlrkr r*rrúrzs¼ððððR € € € Ø € € € Ø€€€ØÐÐÐØ(Ð(Ð(Ð(Ð(Ð(Ð(Ð(ØÐÐÐÐÐð ð ð €ð#�Ô" : 2¤:Ð.CÑ#DÔ#DÔ#HØ4Ð4ñ6ô6€ð'ð'ð'ð ð ð ð ð �ñ ô ð ðˆi‰kŒk€ ð€ ˆCˆC�‰HŒHÑð4ð4ð4ð5ð5ð5ð$Eð$Eð$EðL5ð5ð5ð4ð4ð4ð Ø ðð€ ð '*ð'*ð'*ðV Ø ðð€ ð Ø ððÐð EðEðEðEðEðEr