2bi7SSKJr SSKrSSKJr SSKJr SSKJr /SQr Sr \R"S 5r \R"S 5r \R"S \R\R-5rS rS rSR'\\S9r\\S.r/SQrSrSSR1\Vs/sHo\-PM sn5-S-rS\-S-rS\-S-\-S-rSr\R"S5r\R"S\-S-5r\R"S\-S-5r\R"S\-S-5r \R"S\SS-S-5r!\R"S\-S -5r"S!\<S\<S\<S"3r#\R"\#\R\R-5r$\%"S#5r&\%"S$5r'\&\'-S%1-r(\(S&S'1-r)\)S(1-=r*r+"S)S*\"S*\ 55r,S+r-S3S,jr.S-r/S.r0S/r1S0r2S1r3S2r4gs snf)4)absolute_importN) namedtuple)LocationParseError)sixschemeauthhostportpathqueryfragment)httphttpsNz%[a-fA-F0-9]{2}z^(?:[a-zA-Z][a-zA-Z0-9+-]*:|/)zS^(?:([a-zA-Z][a-zA-Z0-9+.-]*):)?(?://([^\\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?$z(?:[0-9]{1,3}\.){3}[0-9]{1,3}z[0-9A-Fa-f]{1,4}z(?:{hex}:{hex}|{ipv4}))hexipv4)rls32) z(?:%(hex)s:){6}%(ls32)sz::(?:%(hex)s:){5}%(ls32)sz%(?:%(hex)s)?::(?:%(hex)s:){4}%(ls32)sz2(?:(?:%(hex)s:)?%(hex)s)?::(?:%(hex)s:){3}%(ls32)sz6(?:(?:%(hex)s:){0,2}%(hex)s)?::(?:%(hex)s:){2}%(ls32)sz/(?:(?:%(hex)s:){0,3}%(hex)s)?::%(hex)s:%(ls32)sz'(?:(?:%(hex)s:){0,4}%(hex)s)?::%(ls32)sz&(?:(?:%(hex)s:){0,5}%(hex)s)?::%(hex)sz(?:(?:%(hex)s:){0,6}%(hex)s)?::zCABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._\-~z(?:|)z (?:%25|%)(?:[z]|%[a-fA-F0-9]{2})+z\[z)?\]z!(?:[^\[\]%:/?#]|%[a-fA-F0-9]{2})*z!^(/[^?#]*)(?:\?([^#]*))?(?:#.*)?$^$(z)\]$z^(z)(?::0*?(|0|[1-9][0-9]{0,4}))?$zBABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-~z !$&'()*+,;=:@/?c^\rSrSrSrSrS U4Sjjr\S5r\S5r \S5r \S5r S r Sr U=r$) UrlRz Data structure for representing an HTTP URL. Used as a return value for :func:`parse_url`. Both the scheme and host are normalized as they are both case-insensitive according to RFC 3986. c >U(aURS5(dSU-nUbUR5n[[U]XX#XEXg5$)Nr) startswithlowersuperr __new__) clsr r r r r rr __class__s ڎ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/urllib3/util/url.pyr' Url.__new__[sM ,,:D  \\^FS#& T  cUR$)z@For backwards-compatibility with urlparse. We're nice like that.)r selfs r*hostname Url.hostnamemsyyr,cnUR=(d SnURbUSUR-- nU$)z)Absolute path including the query string.rr)r r)r/uris r* request_uriUrl.request_urirs4ii3 :: ! 3# #C r,crUR(aSURUR4-$UR$)z(Network location including host and portz%s:%d)r r r.s r*netloc Url.netloc|s- 99dii33 3yyr,cUupp4pVnSnUbXS-- nUbXS-- nUbX- nUbUS[U5-- nUbX- nUbUSU-- nUbUSU-- nU$)a  Convert self into a url This function should more or less round-trip with :func:`.parse_url`. The returned url may not be exactly the same as the url inputted to :func:`.parse_url`, but it should be equivalent by the RFC (e.g., urls with a blank port will have : removed). Example: :: >>> U = parse_url('http://google.com/mail/') >>> U.url 'http://google.com/mail/' >>> Url('http', 'username:password', 'host.com', 80, ... '/path', 'query', 'fragment').url 'http://username:password@host.com:80/path?query#fragment' z://rrr#)str) r/r r r r r rrurls r*r=Url.urls&;?7d$x   F? "C   $; C   KC   4#d)# #C   KC   4%< C   4(? "C r,cUR$N)r=r.s r*__str__ Url.__str__s xxr,)NNNNNNN)__name__ __module__ __qualname____firstlineno____doc__ __slots__r'propertyr0r4r7r=rA__static_attributes__ __classcell__)r)s@r*r r Rs I     $ %%Nr,r cSnSnUH*nURU5nUS:aMUbXR:dM&UnUnM, UbUS:aUSS4$USUXS-SU4$)a .. deprecated:: 1.25 Given a string and an iterable of delimiters, split on the first found delimiter. Return two split parts and the matched delimiter. If not found, then the first part is the full input string. Example:: >>> split_first('foo/bar?baz', '?/=') ('foo', 'bar?baz', '/') >>> split_first('foo/bar?baz', '123') ('foo/bar?baz', '', None) Scales linearly with number of delims. Not ideal for large number of delims. Nrr:)find)sdelimsmin_idx min_delimdidxs r* split_firstrUsw$GI ffQi 7  ?cmGI'A+"d{ Xg;A+-() 33r,c6UcU$[R"U5n[RSU5upUR SS5nX4R S5:Hn[ 5n[S[U55HnXGUS-n[U5n U(aUS:XdU S:aUR5U;aXh- nMBURS[U 5S SR 5RS 5R5-5 M URU5$) z^Percent-encodes a URI component without reapplying onto an already percent-encoded component. Nc@URS5R5$)Nr)groupupper)matchs r*'_encode_invalid_chars..sekk!n**,r,utf-8 surrogatepass%rrMr)r ensure_text PERCENT_REsubnencodecount bytearrayrangelenorddecodeextendrzfillrY) component allowed_charsencodingpercent_encodings uri_bytesis_percent_encodedencoded_componentibytebyte_ords r*_encode_invalid_charsrws *I $.??,i$ I  /:I*ood.CC!  1c)n %QU#t9 44< sNt{{} =  %    Xqr):)A)A)C)I)I!)L)R)R)T!UV&  # #H --r,cURS5n/nUH=nUS:XaM US:waURU5 M$U(dM-UR5 M? URS5(a#U(a US(aUR SS5 UR S5(aURS5 SR U5$)Nr.z..rr:)z/.z/..)splitappendpopr$insertendswithjoin)r segmentsoutputsegments r*_remove_path_dot_segmentsrszz#H F c>  _ MM' "V JJL sVvay a }}]## b 88F r,c U(Ga\[U[R5(a[R"U5nU[;Ga[ R U5nU(a[RU5nU(alURS5upEXUnURS5(a US:waUSSnOUSSnS[U[5-nUSUR5U-XS-$UR5$[R U5(dN[R"SRUR!S5Vs/sHn[#U5PM sn55$U$s snf)NrMz%25%.ry) isinstancer binary_type ensure_strNORMALIZABLE_SCHEMES IPV6_ADDRZ_RErZ ZONE_ID_REsearchspanr$rwUNRESERVED_CHARSr%IPV4_RErrz _idna_encode)r r is_ipv6rZstartendzone_idlabels r*_normalize_hostrs2 dCOO , ,>>$'D ) )#))$/G#))$/!&AJE"oG))%00W5E")!"+")!"+!$9'CS$TTG<--/'9DJFF::<']]4((~~II 3Pu|E2PQ KQsE' cU(a>[SU55(a'SSKJn WRUR5SSS9$UR5RS5$![a# [R "[ S5S5 Nkf=f!WRa& [R "[ SU-5S5 Nf=f) Nc3># UHn[U5S:v M g7f)r`N)ri).0xs r* _idna_encode..2s04aCFcM4sr)idnaz-Unable to parse URL without the 'idna' moduleT)strict std3_rulesz#Name '%s' is not a valid IDNA labelascii) any pip._vendorr ImportErrorr raise_fromrrdr% IDNAError)namers r*rr1s 04000  (  ;;tzz|DT;J J ::<  w ''  NN"#RS  ~~  NN"#ID#PQSW  s"A%B%*BB3C  C c[RU5R5up[U[5n[U[ 5nUbUSU-- nU$)zHPercent-encodes a request target so that there are no invalid charactersr) TARGET_RErZgroupsrw PATH_CHARS QUERY_CHARS)targetr rs r*_encode_targetrCsL//&)002KD "4 4F !% 5E #+ Mr,c ^U(d [5$Un[RU5(dSU-n[R U5R 5up#pEnUSL=(d UR 5[;nU(aUR 5nU(akURS5upn U=(d Sn[R U 5R 5upU(aU(a[U[5nU S:XaSn OSupn U b%[U 5n SU s=::aS::d O [U5e[X5n U(a"U(a[U5n[U[ 5nU(aU(a[U["5nU(aU(a[U[$5nU(d UcUbSnOSn[/U[*R05(a[*R2mO[*R4mU4Sjn [U "U5U "U5U "U 5U U "U5U "U5U "U5S 9$![&[(4a# [*R,"[U5S5s$f=f) a Given a url, return a parsed :class:`.Url` namedtuple. Best-effort is performed to parse incomplete urls. Fields not provided will be None. This parser is RFC 3986 and RFC 6874 compliant. The parser logic and helper functions are based heavily on work done in the ``rfc3986`` module. :param str url: URL to parse into a :class:`.Url` namedtuple. Partly backwards-compatible with :mod:`urlparse`. Example:: >>> parse_url('http://google.com/mail/') Url(scheme='http', host='google.com', port=None, path='/mail/', ...) >>> parse_url('google.com:80') Url(scheme=None, host='google.com', port=80, path=None, ...) >>> parse_url('/foo?bar') Url(scheme=None, host=None, port=None, path='/foo', query='bar', ...) z//Nrr:)NNNric>UcU$T"U5$r@r")r ensure_funcs r* ensure_typeparse_url..ensure_typesIq1;q>1r,r)r SCHEME_RErURI_RErZrr%r rpartition _HOST_PORT_RErwUSERINFO_CHARSintrrrrrFRAGMENT_CHARS ValueErrorAttributeErrorrrr text_typerar)r= source_urlr authorityr rr normalize_urir _ host_portr r rrs @r* parse_urlrMs, u J   C Sj"D39<<3D3K3K3M04$P&,,.>@JD ,T>Brz/ D  t9D&&(--t, T,T2D(z:D U)%=E X,X~FH    4DD#s}}%%oo nn 2 6"       % X& /  'D~~0rsG& "+ K /ZZ* + JJ8 9  JJ   ,  # * *wX * F* *X 388 < 1Y <= = C.1FF !F*[87B3 JJ; < **S8^c) * **S8^c) * 3/#56 **S>!B+?%?#%EF ZZk)G3 4    >2:: +AB Hm$!O3se; sCj ( )SE11 nZ*UI &Zz 4F.D<>($^B2q =s G-