Jz`f}TcsSSKrSSKrSSKr/SQr\\4rSrS9SjrS:Sjr Sr Sr \RS S 5r \RS S 5rS rS rS rSrSrSrSr0r0rSrS;SjrSr\R7SS9\lS;Sjr\R7S\S9\lSr\R7SS9\lSS8:Xa\="5 gg)>N)encodedecode encodebytes decodebytes b64encode b64decode b32encode b32decode b32hexencode b32hexdecode b16encode b16decode b85encode b85decode a85encode a85decode z85encode z85decodestandard_b64encodestandard_b64decodeurlsafe_b64encodeurlsafe_b64decodecsF[U[5(aURS5$[U[ 5(aU$[ U5R5$![a [ S5ef=f![a$ [SURR-5Sef=f)NZasciiz4string argument should contain only ASCII charactersz>argument should be a bytes-like object or ASCII string, not %r) isinstanceZstrrZUnicodeEncodeError ValueError bytes_types memoryviewtobytes TypeError __class____name__s /usr/lib64/python3.13/base64.py_bytes_from_decode_datar#"s!S U88G$ $![!!K!}$$&& " UST T U K)+,;;+?+?@AFJ KKsAA2A/2.B cs[R"USS9nUb%UR[R SU55$U$)NF)Znewline+/)binascii b2a_base64 translatebytes maketrans)r altcharsencoded r"rr3s=!!!U3G  !ABB NFcs[U5nUb0[U5nUR[RUS55n[R "XS9$)Nr$)Z strict_mode)r#r'r(r)r% a2b_base64)r r*Zvalidater,r"rrAsH$ "A*84 KK%8 9   q 77r-c[U5$N)rrr!r"rr[s Q<r-cr/r0)rrr!r"rrbs Q<r-r$s-_c>[U5R[5$r0)rr'_urlsafe_encode_translationrr!r"rrps Q< ! !"= >>r-csX[U5nUR[5n[U5$r0)r#r'_urlsafe_decode_translationrrr!r"rrys' "A /0A Q<r-zK Encode the bytes-like objects using {encoding} and return a bytes object. a Decode the {encoding} encoded bytes-like object or ASCII string s. Optional casefold is a flag specifying whether a lowercase alphabet is acceptable as input. For security purposes, the default is False. {extra_args} The result is returned as a bytes object. A binascii.Error is raised if the input is incorrectly padded or if there are non-alphabet characters present in the input. a RFC 3548 allows for optional mapping of the digit 0 (zero) to the letter O (oh), and for optional mapping of the digit 1 (one) to either the letter I (eye) or letter L (el). The optional argument map01 when not None, specifies which letter the digit 1 should be mapped to (when map01 is not None, the digit 0 is always mapped to the letter O). For security purposes the default is None, so that 0 and 1 are not allowed in the input. s ABCDEFGHIJKLMNOPQRSTUVWXYZ234567s 0123456789ABCDEFGHIJKLMNOPQRSTUVcsU[;aBUVs/sHn[U45PM nnUVVs/sHoCHoTU-PM M snn[U'Sn[U[5(d[ U5R 5n[ U5S-nU(a USSU- --n[5n[Rn[Un [S[ U5S5H8nU"XUS-5n XyU S- XS- S--XS- S--XS--- nM: US:XaS US S&O#US :XaS US S&OUS:XaSUSS&O US:XaSUSS&[U5$s snfs snnf)Nriiii s======is====is===i=) _b32tab2r(rrrrlen bytearrayZint from_bytesrange) alphabetr iZb32tabableftoverr+r?Zb32tab2cs r" _b32encoderGs}x'/0!%+00-3DD!eDeD a % % qM ! ! #1vzH X& &kGJx G 1c!fa  qAE{ #AG$"W-./"W-./I&' 1}  Q Q Q >;1Ds E EcsU[;a&[U5VVs0sHupEXT_M snn[U'[U5n[U5S-(a[R "S5eUb3[U5nUR [RSSU-55nU(aUR5n[U5nURS5nU[U5- n[5n[Un [S[U5S5H3n XU S-n Sn U H n U S-X-n M XRS5- nM5 US-(dUS ;a[R "S5eU(a3U(a,W SU--n U RS5nS SU-- S-nUSUUS S&[U5$s snnf![a [R "S5Sef=f) NizIncorrect paddings01sOr:rr4zNon-base32 digit found>rr6r8r9ii+i)_b32rev enumerater#r=r%Errorr'r(r)upperZrstripr>r@ZKeyErrorZto_bytes)rAr casefoldmap01ZkZvZlZpadcharsdecodedZb32revrBZquantaaccrFZlastrEs r" _b32decoderPsw.7.ABdaQTB"A 1vznn011 '. KKte|< = GGI AA A3q6zHkG X F 1c!fa #a!e E -ax69, - <<?"# 1u/nn011G H ||AX%!+IX >OC8 E..!9: D Es F'F--"Gc"[[U5$r0)rG _b32alphabetrr!r"rrs lA &&r-Zbase32)encodingcs$[[XU5$r0)rPrR)r rLrMr,r"rrs lA 77r-)rSZ extra_argscrQr0)rG_b32hexalphabetrr!r"r r s oq ))r-Z base32hexcs"[[X5$r0)rPrTr rL r"r r s oq 33r-ZcsJ[R"U5R5$r0)r%ZhexlifyrKrr!r"r r s   A  $ $ &&r-cs[U5nU(aUR5n[R"SU5(a[R "S5e[R "U5$)Ns [^0-9A-F]zNon-base16 digit found)r#rKreZsearchr%rJZ unhexlifyrUrVr"r r sN "A GGI yyq!!nn566   a  r-s<~s~>cs[U[5(d[U5R5n[ U5*S-nU(aUSU--n[ R "S[ U5S--5RU5nUVs/sH<nU(a U(dSO(U(aUS:XaSOX(S-X(S-S --XS--PM> n nU(a'U(d U S S:Xa US S -U S 'U S SU*U S 'S RU 5$s snf)Nr9r5z!%dIszi syi^ Ui9r;rr4r-) rrrrr=structStructZunpackjoin) rDZcharsZchars2padZfoldnuls foldspacespaddingZwordsZwordchunks r" _85encodera.s a % % qM ! ! #Aw!mG   MM&CFaK0 1 8 8 ;E !  td TZ%7dfn%bj4'()BY !!F!s ": qAF2JBZ '*r 88F !sAD)r]wrapcolr\adobecsD[cM[SS5Vs/sHn[U45PM snq[VVs/sHn[HoU-PM M snnq[ W[[USU5nU(a [ U-nU(a|[ U(aSOSU5n[S[U5U5Vs/sH nXuXR-PM nnU(a&[US5S-U:aURS5 S RU5nU(a U[- nU$s snfs snnfs snf) N!ivTr7r6rr;r-s ) _a85chars2r@r( _a85charsra _A85STARTZmaxr=appendr[_A85END) rDr]rbr\rcrBrCresultr_s r"rrFs(*/C.9QUA4[9 '0D!)DQ1uDuD q)ZdJ GF V#5aa1 CK9;AK(;; 6":"W, c"F# ' M%:D;sDD1Ds )r]rc ignorecharscs[U5nU(a]UR[5(d[SR [55eUR [ 5(aUSSnOUSSn[R"S5Rn/nURn/nURnURn US-Hn SU s=::aS::aJO OGU"U 5 [U5S:Xa.S n UHn S U -U S- -n M U"U"U 55 U "5 MXMZU S :XaU(a [S 5eU"S5 M|U(a"U S:XaU(a [S5eU"S5 MX;aM[SU -5e SRU5n S[U5- n U (aU SU *n U $![Ra [S 5Sef=f)Nz1Ascii85 encoded byte sequences must end with {!r}r7i!Isuuuurdiur4rrXzAscii85 overflowizzz inside Ascii85 5-tuplesiyzy inside Ascii85 5-tuple zNon-Ascii85 digit found: %cr-r9)r#ZendswithrirformatZ startswithrgrYrZpackrhZclearr=errorr[)rDr]rcrkpackIrNZdecoded_appendZcurrZ curr_appendZ curr_clearZxrOrjr^s r"rros "A zz'"""F7O  << " "!BA#2A MM$  $ $EG^^N D++KJ \@ a "7 " N4yA~.As(a"f-C.C"5:. '\ !;<< ; ' AL !;<< . /   :Q>? ?1@4XXg F#d)mG '" M-||C$%78dBCs >F''!GsU0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~cs[cG[Vs/sHn[U45PM snq[VVs/sHn[HoU-PM M snnq[ W[[U5$s snfs snnfr0) _b85chars2 _b85alphabetr( _b85charsra)rDr\rBrCrmr"r r sW*67QUA4[7 '0D!)DQ1uDuD Q :s 338Ds A%A*cs[c'S/S-q[[5HupU[U'M [U5n[ U5*S-nUSU--n/n[ R "S5Rn[S[ U5S5H=nXUS-nSnUHnUS-[U-nM URU"U55 M? S RU5n U(aU SU*n U $![a1 [U5H up[UbM[SX--5Se ef=f![ Ra [SU-5Sef=f) Nir4s~rlrrXz#bad base85 character at position %dz+base85 overflow in hunk starting at byte %dr-)_b85decrIrsr#r=rYrZror@rrrhrpr[) rDrBrFr^ZoutrqchunkrOZjrjr`r"rrs&3,l+ DAGAJ  "AAw!mG D7NA C MM$  $ $E 1c!fa ,AE   ,Bh+ , , JJuSz ",$XXc]F '" M !%( 91:%$%J'(u&./489 9   || ,J !"'+ , ,sC*/D(*"D%D%($E sU0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#s;_`|~r5cr1r0)r r'_z85_encode_translationrr!r"rrs Q< ! !"9 ::r-cs[U5nUR[5n[U5$![a.n[ UR SR SS55SeSnAff=f)NrZbase85Zz85)r#r'_z85_decode_translationrrargsZreplace)r ZerVr"rrsa "A +,AG| G**8U;<$FGs - A%)A  A%iLr9r8csUR[5=n(a[U5[:aiUR[[U5- 5=n(aAX#- n[U5[:a*UR[[U5- 5=n(aMA[R"U5nUR U5 UR[5=n(aMggr0)Zread MAXBINSIZEr=r%r&write)inputoutputr Znslines r"rrszz*% %! %!fz!UZZ 3q68I-J'Jr'J GA!fz!UZZ 3q68I-J'Jr'J""1% T zz*% %! % %r-csUR5=n(aA[R"U5nURU5 UR5=n(aM@ggr0)Zreadliner%r.r{)r|r}r~r rmr"rrsF.." "$ "    % Q.." "$ " "r-cs[U5nURS;a3SUR<SURR<3n[U5eUR S:wa0SUR URR4-n[U5eg![a*nSURR-n[U5UeSnAff=f)Nz"expected bytes-like object, not %s)rFrDZBz#expected single byte elements, not z from r6z(expected 1-D data, not %d-D data from %s)rrrrrnZndim)r ZmZerrmsgrmr"_input_type_checkr%s& qM xx&+,88Q[[5I5IKnvv{9+,661;;3G3G*HIn &2Q[[5I5IIn#%&s B C%CCcs[U5 /n[S[U5[5H3nXU[-nUR [ R "U55 M5 SRU5$)Nrr-)rr@r=rzrhr%r&r[)r ZpiecesrBrvrmr"rr5sca F 1c!fj )2a*n% h))%012 88F r-csD[U5 [R"U5$r0)rr%r.rr!r"rr@sa   q !!r-csSSKnSSKnSURSS3nURURSSS5up4[nWH<upxUS:Xa[nUS:Xa[nUS :Xa[nUS :XdM1[ U5 g W(a>USS :wa5[USS 5n U"XR R5 SSS5 gU"URRUR R5 g!URaCnURUl[ U5 [ U5 URS5 SnAGN SnAff=f!,(df  g=f) Nrzusage: zx [-h|-d|-e|-u] [file|-] -h: print this help message and exit -d, -u: decode -e: encode (default)r6Zhdeur7z-ez-dz-uz-hZ-Zrb) sysgetoptZargvrpZstderrZstdoutZprintZexitrrZopenZbufferZstdin) rrZusageZoptsryrZfuncZorCZfr`r"mainrGs0 }% E]]388AB<8  D+ 9Vd 9Vd 9Vd 9eElF +  Q3 $q'4  'A JJ%% & ' ' SYY  szz001 <<ZZ  c  e    ' 's#!C=%E=E 8E  E E!Z__main__r0)NF)FN)F)FFF)?rWrYr%Z__all__r(r>rr#rrrrr)r2r3rrZ_B32_ENCODE_DOCSTRINGZ_B32_DECODE_DOCSTRINGZ_B32_DECODE_MAP01_DOCSTRINGrRrTr<rHrGrPrrnZ__doc__rr r r r rfrergrirarrrsrtrrrur rZ _z85alphabetZ_z85_b85_decode_diffr=rxrwrrZ MAXLINESIZErzrrrrrrr)r-r"rs+  $i  K" 84$ooeU;#ooeU;? $ 3 5  !F+\')00(0C 8)00(3N1P *,33[3I 4-33[?A4C ' !*    0 %aU%'R %E|DPE    4'RE  //''7S!5666 //, E; G  1na    "26 zFr-