h^ nddlZddlZddlmZmZmZddlmZmZm Z m Z m Z ej dZ GddejZGdd ejZGd d ejZGd d eejZGddeejZdedeejfdZejedS)N)AnyOptionalTuple) IDNAErroralabeldecodeencodeulabelu [.。.。]c ZeZdZddededeeeffdZddededeeeffdZdS) Codecstrictdataerrorsreturnc|dkr"td||sdSt|t|fS)NrUnsupported error handling "{}"r)rformatr lenselfrrs v/builddir/build/BUILD/imunify360-venv-2.5.2/opt/imunify360/venv/lib/python3.11/site-packages/pip/_vendor/idna/codec.pyr z Codec.encode sN X  =DDVLLMM M 6d||SYY&&rc|dkr"td||sdSt|t|fS)Nrrr)rrr rrs rr z Codec.decodesN X  =DDVLLMM M 5d||SYY&&rN)r) __name__ __module__ __qualname__strrbytesintr r rrr r s''3''5;L''''''5'#'U38_''''''rr c 6eZdZdedededeeeffdZdS)IncrementalEncoderrrfinalrc|dkr"td||sdSt|}d}|r|dsd}|d=n |s|d=|rd}g}d}|D]=}|t ||r|dz }|t |z }>d||z} |t |z }| |fS) Nrrrr.rr)rr_unicode_dots_resplitappendrrjoin) rrrr'labels trailing_dotresultsizelabel result_bytess r_buffer_encodez!IncrementalEncoder._buffer_encodes X  =DDVLLMM M 6!''--  (": (# 2JJ (2J(#'L  E MM&-- ( ( (   CJJ DDyy((<7  L!!!T!!rN) rrr r!boolrr"r#r5r$rrr&r&sN"3""D"U5RU:EV""""""rr&c 6eZdZdedededeeeffdZdS)IncrementalDecoderrrr'rc|dkr"td||sdSt|tst|d}t|}d}|r|dsd}|d=n |s|d=|rd}g}d}|D]=}|t||r|d z }|t|z }>d ||z} |t|z }| |fS) Nrrrasciirr).rr) rr isinstancer!r+r,r-r rr.) rrrr'r/r0r1r2r3 result_strs r_buffer_decodez!IncrementalDecoder._buffer_decodeAs5 X  =DDVLLMM M 7$$$ &tW%%D!''--  '": '" 2JJ '2J'#&L  E MM&-- ( ( (   CJJ DDXXf%% 4  L!!!D!!rN) rrr rr!r6rr#r>r$rrr8r8@sM "3 " "D "U3PS8_ " " " " " "rr8ceZdZdS) StreamWriterNrrr r$rrr@r@dDrr@ceZdZdS) StreamReaderNrAr$rrrDrDhrBrrDnamerc |dkrdStj|tjtjt t ttS)Nidna2008)rEr r incrementalencoderincrementaldecoder streamwriter streamreader) codecs CodecInfor r r r&r8r@rD)rEs rsearch_functionrNlsM zt   ww~ww~--!!   r)rLretypingrrrcorerrr r r compiler+r BufferedIncrementalEncoderr&BufferedIncrementalDecoderr8r@rDr!rMrNregisterr$rrrVs '''''''''';;;;;;;;;;;;;;2::;;'''''FL'''(""""":"""D!"!"!"!"!":!"!"!"H     5&-        5&-    # (6+;"<     r