kfNddlZddlZddlmZmZmZddlmZmZej dZ de dDZ dZ dZed zZe ezZeezd zZeezZejd Zejd Zejd ZGddZGddZdS)N) ascii_lettersascii_lowercasedigits)Optionalcastasciic@h|]}d|ddS)%02Xr)encode).0is r/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib64/python3.11/site-packages/yarl/_quoting_py.py rs.@@@ A ""7++@@@z:/?#[]@z!$'()*,+&=;z-._~s[A-Z0-9][A-Z0-9]z[A-Fa-f0-9][A-Fa-f0-9]zutf-8c ^eZdZddddddedededed d f d Zd eed eefd Zd S)_QuoterFT)safe protectedqsrequoterrrrreturnNc>||_||_||_||_dS)N)_safe _protected_qs_requote)selfrrrrs r__init__z_Quoter.__init__s$ # rvalc|dSt|tstd|sdStt|dd}t }t }|j}|tz }|js|dz }||j z }|d}d}|t|kr||}|d z }|r|tvr|d z }| |t|d kr=|d d} t| s/|d ||d z} t#t%|d ddd} n?#t($r2|d ||d z}Y$wxYw| |j vr||n<| |vr#| t+| n|||nTt|d krA|t|kr.|d ||d z}|t+dkrZ|jrS|| ||t|kr|d [|jr7|t+dkr$| t+d||vr| ||d|dd|t|k|d} | |kr|S| S)NArgument should be strrutf8ignore)errorsrrr s%25baser  +r ) isinstancestr TypeErrorrr bytearrayrALLOWEDrrlenBASCII_LOWERCASEappend_IS_HEXmatchextendclearchrintdecode ValueErrorordr ) r!r#bvalretpctrbsafeidxchbufunquotedret2s r__call__z_Quoter.__call__$s ;4#s## 6455 5 2C~~$$VH$==kkkkz x  FND  G$$CIIoocB 1HC+ )))bB 2s88q==abb'C"==--! 6*** q !#&s3qrr7>>'+B+B'L'L'L#M#M%!!! 6*** q  !  4?22 3!T)) 3x==1111 3IIKKKKXX]]sc$ii'7'7JJv&&&IIKKK1HCs3xxDM  2#d))##JJv&&&x S>>JJs3xx(((U{{ 2 JJ B ,,W55 6 6 6sCIIoovzz'"" 3;;J s 9F8GG__name__ __module__ __qualname__r3boolr"rrLrrrrs                  OHSMOhsmOOOOOOrrcReZdZddddededdfdZd eedeefd ZdS) _UnquoterrF)unsaferrUrrNcr||_||_t|_td|_dS)NT)r)_unsaferr_quoter _qs_quoter)r!rUrs rr"z_Unquoter.__init__ws1 yy !T***rr#c|dSt|tstd|sdSttjt }g}d}|t|kr||}|dz }|dkr|t|dz kr|||dz}t |rtt|dg}|dz } | |}n#t$r|d z t|jd zz } ||| |d z | | |}n2#t$r%|||d z |YYBwxYwYnwxYw|sP|jr@|d vr<||} | t'd || nZ||jvr<||} | t'd || n|||jrQ|dz t|jd zz } ||| |dz ||d kr=|jr ||jvr|d n|d ||jvrg|dt-t/|dd} | D]}|||||t|k|jr3||t|j d zdd|} | |kr|S| S)Nr%rrr)r r,r-r.r+z+=&;zCannot quote Noner1r0)r2r3r4rcodecsBufferedIncrementalDecoder utf8_decoderr7 _IS_HEX_STR fullmatchbytesr?r@UnicodeDecodeErrorbufferr9resetrrY RuntimeErrorrWrXhexrBupperjoin) r!r#decoderrDrGrHrEbrJ start_pctto_addhrKs rrLz_Unquoter.__call__}s ;4#s## 6455 5 2v8,..IICHHnnSB 1HCSyySCHHqL00#a-(((--s3R000122A1HC %#*>>!#4#4-%%%$'!Gc'..A.AA.E$E  3y37':#;<<< %'.~~a'8'8HH1%%%JJs37S='9:::$HH%%H %$! x -H$6$6!%!:!:!>"./B"C"CC 6****!T\11!%h!7!7!>"./B"C"CC 6**** 8,,,~ !Gc'.&9&9A&==  3y3723444 Syyx$2#5#5JJsOOOOJJsOOOT\!! 3BLL&&((,##BJJrNNNN JJrNNNmCHHnnp > 8 JJsC///!3556 7 7 7wws|| 3;;J s7#C99AF E+*F +*FF FF F rMrRrrrTrTvs~(*u+++#++++++ HHSMHhsmHHHHHHrrT)r[restringrrrtypingrrr r8range BPCT_ALLOWED GEN_DELIMSSUB_DELIMS_WITHOUT_QS SUB_DELIMSRESERVED UNRESERVEDr6compiler:r^getincrementaldecoderr]rrTrRrrrysY 9999999999!!!!!!!!)?)'22@@UU3ZZ@@@  ! "V +  " V #f , , , "*( ) )bj122 +v+G44 ]]]]]]]]@OOOOOOOOOOr