0 #ˆl–ß=¿JJj"Tâ�Æ…pS�ÿÄ ƒh¹ÃÂÁonline 8 ˆl–ß=¿JJj"Tâ€~ão\TţŠ0Äa–ß=¿JJj"Tâ�Æ…pS�ÿÃ# ˆl–ß=¿JJj"Tâ€~ãA¸ÔÅ£Ç ƒh¹Æ¿Ä auto # ˆl–äY>” je¶…8 Cq§nµ1hßÈ ƒmÐ;ÇÀÅK a ´i]!ã@sædZddlZddlZddlZddlZddlmZmZddlm Z gd¢Z e  e  d¡j dd„¡Zd d „ZGd d „d eƒZeƒZd eedƒ<dd„Zdd„Zdd„Zdd„Zdd„ZeedœZdd„ZeedœZeedœZd dd„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})cCst | d¡ ¡¡S)Né)ÚbytesÚfromhexÚgroupr )Úm©rú,/usr/lib64/python3.9/email/_encoded_words.pyÚAórcCs| dd¡}t|ƒgfS)Nó_ó )ÚreplaceÚ_q_byte_subber)ÚencodedrrrrCs rc@s,eZdZde d¡e d¡Zdd„ZdS)Ú _QByteMaps-!*+/ÚasciicCs.||jvrt|ƒ||<nd |¡||<||S)Nz={:02X})ÚsafeÚchrÚformat)ÚselfÚkeyrrrÚ __missing__Ms z_QByteMap.__missing__N)Ú__name__Ú __module__Ú __qualname__rr rrr"rrrrrIsrÚ_ú cCsd dd„|Dƒ¡S)NÚcss|]}t|VqdS©N)Ú _q_byte_map©Ú.0ÚxrrrÚ Zrzencode_q..)Újoin©ÚbstringrrrrYsrcCstdd„|DƒƒS)Ncss|]}tt|ƒVqdSr))Úlenr*r+rrrr.]rzlen_q..)Úsumr0rrrr \sr cCsðt|ƒd}|r ddd|…nd}z&tj||dd�|rDt ¡gngfWStjyêztj|dd�t ¡gfWYStjyäz,tj|ddd�t ¡t ¡gfWYYStjyÞ|t ¡gfYYYS0Yn0Yn0dS)Nés===rT)ÚvalidateFs==) r2Úbase64Z b64decoderZInvalidBase64PaddingDefectÚbinasciiÚErrorZInvalidBase64CharactersDefectZInvalidBase64LengthDefect)rZpad_errZmissing_paddingrrrrds( þ þ ÿþrcCst |¡ d¡S)Nr)r6Z b64encoder r0rrrrŠsrcCs&tt|ƒdƒ\}}|d|r dndS)Nér4r)Údivmodr2)r1Z groups_of_3Zleftoverrrrr �sr )ÚqÚbc CsÞ| d¡\}}}}}| d¡\}}}| ¡}| dd¡}t||ƒ\}}z| |¡}WnztyŒ| t  d|›d�¡¡| |d¡}YnFt t fyÐ| dd¡}| ¡dkrÌ| t  d|›d �¡¡Yn0||||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