e8SrSSKrSrSrSrSrSrSrS rS r S r S r S r Sr Sr"SS\R5r"SS\R 5r"SS\R"5r"SS\\R$5r"SS\\R&5rSrg)uXCodec for the Punycode encoding, as specified in RFC 3492 Written by Martin v. Löwis. Nc[5n[5nUH?n[U5S:aUR[U55 M.UR U5 MA [ U5n[ U5U4$)z 3.1 Basic code point segregation) bytearraysetordappendaddsortedbytes)strbaseextendedcs 8/opt/imh/python3.13/lib/python3.13/encodings/punycode.py segregater s[ ;DuH  q6C< KKA  LLO  hH ;  cHSnUHn[U5U:dMUS- nM U$)z@Return the length of str, considering only characters below max.r)r)r maxresrs r selective_lenrs, C  q6C< 1HC Jrch[U5nUS- nX4:XagXnXQ:XaUS-U4$XQ:aUS- nM')aReturn a pair (index, pos), indicating the next occurrence of char in str. index is the position of the character considering only ordinals up to and including char, and pos is the position in the full string. index/pos is the starting position in the full string.r)r)len)r charindexposlrs rselective_findrsN CA  q 8 H 97C<  X QJE rcSn/nSnUH_nS=pg[U5n[X5n U S-X- -n [XXg5upgUS:XaO!XU- - n URU S- 5 UnSn M6UnMa U$)z3.2 Insertion unsort codingrrrr)rrrr) r roldcharresultoldindexrrrrcurlendeltas rinsertion_unsortr&0sG FH 1vs)dn-&sU7IE{ X% %E MM%' "HE Mrc8SUS--U- nUS:agUS:agU$)N$r)jbiasrs rTr-Fs+ A, C Qwq Rx Jrs$abcdefghijklmnopqrstuvwxyz0123456789c[5nSn[X15nX:a#UR[U5 [ U5$UR[X@U- SU- --5 X- SU- -nUS- nMg)(3.3 Generalized variable-length integersrrr()rr-rdigitsr )Nr,r"r+ts rgenerate_generalized_integerr3Nsx [F A aJ 5 MM&) $=  fQq5R!V"4567 UQ  Q rcU(aUS-nOUS-nXU-- nSnUS:aUS-nUS- nUS:aMUSU-US---nU$)Niri#r(&r*)r%firstnumchars divisionsr,s radaptr;[si  #  !  h EI #+ R  #+ U urz2 3D Krc[5nSn[U5H5upE[XS5nURU5 [ XTS:HX-S-5nM7 [ U5$)z3.4 Bias adaptationHrr)r enumerater3extendr;r )baselendeltasr"r,pointsr%ss rgenerate_integersrDjsZ[F D"6*  ( 5 aUAIw~a'78+ =rc~[U5up[X5n[[U5U5nU(aUS-U-$U$)N-)rr&rDr)textr rrAs rpunycode_encoderHus>t_ND d -F TF3H d{X%% Orc rSnSnSnXnUS- nSUs=::aS::a O OUS- nO:S Us=::aS ::a O OUS - nO$US:Xa[SXS- US XS- S 35eUS4$[Xb5n XHU-- nX:aX4$USU - -nUS- nM![a! US:Xa[SXUS-S5eUS-S4s$f=f)r/rrstrictpunycodezincomplete punycode stringNAZ09zInvalid extended code point ''r() IndexErrorUnicodeDecodeErrorr-) rextposr,errorsr"wr+rdigitr2s rdecode_generalized_numberrXs F A A  $#D !  4 4 4KE T !T !2IE x $Z!8V'DXUVhEWDXXY%Z\ \4<  aJ!) 9> ! aL Q/  $!(Xvax)EGGA:t# #  $sB (B65B6c SnSnSnSnU[U5:a[XXR5upxUcU$XHS-- nX4[U5S--- nUS:a&US:Xa[S XS- US US 35e[S 5nU[U5S--nUSU[ U5-XS-n[ XS:H[U55nUnU[U5:aMU$) z3.2 Insertion sort codingrrr=rNrirJrKzInvalid character U+x?)rrXrSrchrr;) r rrUrrr,rTnewposr%s rinsertion_sortr^s D C D F 3x= 1(26@  =K Qw D A && (?!(a%*4(355s8DSY]#DSzCI%T 2Uq[3t95% 3x= & KrcX[U[5(aURS5n[U[5(a [ U5nUR S5nUS:XaSnUR 5nO&[USUSU5nXS-SR 5n[X4U5$![a2n[SXRURUR5SeSnAff=f![a<nUS-n[SUXeR-XeR-UR5SeSnAff=f)NasciirFrrrK) isinstancer encode memoryviewr rfindupperrSstartendreasonr^)rGrUrr rexcoffsets rpunycode_decoderls${{7#$ ##T{ **T C by::< ;tDSz7F3DA<%%'7df55 " ;$WdIIsww%(ZZ16: ; ; 7q T!' !16''>!$-26 77s02B$ C#$ C .-CC # D)-7D$$D)c(\rSrSrSSjrSSjrSrg)Codecc2[U5nU[U54$N)rHrselfinputrUrs rrc Codec.encodese$CJrcZUS;a[SU35e[X5nU[U54$N)rJreplaceignorezUnsupported error handling: ) UnicodeErrorrlrrrs rdecode Codec.decodes6 8 8!=fXFG Ge,CJrr*N)rJ)__name__ __module__ __qualname____firstlineno__rcr{__static_attributes__r*rrrnrns rrnc\rSrSrSSjrSrg)IncrementalEncoderc[U5$rq)rHrsrtfinals rrcIncrementalEncoder.encodes u%%rr*NF)r}r~rrrcrr*rrrrs&rrc\rSrSrSSjrSrg)IncrementalDecoderc|URS;a[SUR35e[XR5$rw)rUrzrlrs rr{IncrementalDecoder.decodes5 ;;= =!=dkk]KL Lukk22rr*Nr)r}r~rrr{rr*rrrrs3rrc\rSrSrSrg) StreamWriterr*Nr}r~rrrr*rrrrrrc\rSrSrSrg) StreamReaderr*Nrr*rrrrrrrc [R"S[5R[5R[ [ [[S9$)NrK)namercr{incrementalencoderincrementaldecoder streamwriter streamreader) codecs CodecInfornrcr{rrrrr*rr getregentryrs6    w~~w~~--!! r)__doc__rrrrr&r-r0r3r;rDrHrXr^rlrnrrrrrr*rrrs  !$, 1   ><74 FLL &22&3223  5,,  5,, r