a DOg@s dZddlZddlZddlZddlZddlZddlZgdZgdZgdZ gdZ gdZ gdZ gd Z d Zd Zgd Zd ZiZddZdZdZddZeefddZeefddZddZGdddeZGdddeZGdddeZGd d!d!eeZGd"d#d#eeZdd$lm Z e d%d&Z!e d'd(Z"e d)d*Z#d+e!_d,e!j$_d-e!j%_d.e"_d/e"j&_d0e"j'_d1e"j(_d2e"j)_d3e"j%_d4e#_e"j&je#j&_e"j'je#j'_e"j(je#j(_d5e#j*_e"j)je#j)_e"j%je#j%_eZ+Gd6d%d%e!eZ,Gd7d'd'e"eZ-Gd8d)d)e#eZ.Gd9d:d:e!eZ/Gd;d<dd>e#eZ1d?d@Z2e2[2ddCdDZ3dEdFZ4ddGdHZ5dIdJZ6dKdLZ7ddMdNZ8dOdPZ9dQdRZ:ddSdTZ;dUdVZdXdYZ?e@dZZAdd]d^ZBddadbZCddcddZDddedfZEeFdgZGeHeGZIiZJGdhdidiejKZLddkdlZMddmdnZNddodpZOd_dAddeNfdqdrZPdsdtZQdudvZRdwdxZSdydzZTdaUd{d|ZVd}d~ZWdaXddZYddZZddZ[ddZ\ddZ]ddZ^da_ddZ`dddZadddZbddZcddZdddZeddZfddZgddZhddZiddZjdS)a3Parse (absolute and relative) URLs. urlparse module is based upon the following RFC specifications. RFC 3986 (STD66): "Uniform Resource Identifiers" by T. Berners-Lee, R. Fielding and L. Masinter, January 2005. RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter and L.Masinter, December 1999. RFC 2396: "Uniform Resource Identifiers (URI)": Generic Syntax by T. Berners-Lee, R. Fielding, and L. Masinter, August 1998. RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zawinski, July 1998. RFC 1808: "Relative Uniform Resource Locators", by R. Fielding, UC Irvine, June 1995. RFC 1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M. McCahill, December 1994 RFC 3986 is considered the current standard and any future changes to urlparse module should conform with it. The urlparse module is currently not entirely compliant with this RFC due to defacto scenarios for parsing, and for backward compatibility purposes, some parsing quirks from older RFCs are retained. The testcases in test_urlparse.py provides a good indicator of parsing behavior. The WHATWG URL Parser spec should also be considered. We are not compliant with it either due to existing user code API behavior expectations (Hyrum's Law). It serves as a useful guide when making changes. N)urlparse urlunparseurljoin urldefragurlsplit urlunsplit urlencodeparse_qs parse_qslquote quote_plusquote_from_bytesunquote unquote_plusunquote_to_bytes DefragResult ParseResult SplitResultDefragResultBytesParseResultBytesSplitResultBytes)ftphttpgophernntpimapwaisfilehttpsshttpmmsprosperortsprtspusftpsvnsvn+sshwswss)rrrrrtelnetrrrr!rr snewsr"r#r$rsyncr&r'r%nfsgitzgit+sshr(r))rrhdlr"rrrr r#r$sipsipsr!r%tel) rr/mailtonewsr*rrr+r0r1) rrrrrr r!rr#r$r0r1) rrr/rrr4rrrr r+rr"zAabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-.z!  )   cCsttdS)z,Clear the parse cache and the quoters cache.N) _parse_cacheclear _safe_quotersr<r<$/usr/lib64/python3.9/urllib/parse.py clear_cacheasr>asciistrictcCs|SNr<)objr<r<r=_nooppsrCcCs |||SrAencode)rBencodingerrorsr<r<r=_encode_resultssrHcstfdd|DS)Nc3s"|]}|r|ndVqdS)rNdecode.0xrFrGr<r= yz_decode_args..)tuple)argsrFrGr<rNr= _decode_argswsrScGsVt|dt}|ddD]}|rt|t|krtdq|rH|tfSt|tfS)Nrz$Cannot mix str and non-str arguments) isinstancestr TypeErrorrCrSrH)rR str_inputargr<r<r= _coerce_args{s  rZc@seZdZdZdZdddZdS) _ResultMixinStrz>Standard approach to encoding parsed results from str to bytesr<r?r@cs|jfdd|DS)Nc3s|]}|VqdSrArDrKrNr<r=rOrPz)_ResultMixinStr.encode..)_encoded_counterpartselfrFrGr<rNr=rEsz_ResultMixinStr.encodeN)r?r@)__name__ __module__ __qualname____doc__ __slots__rEr<r<r<r=r[sr[c@seZdZdZdZdddZdS) _ResultMixinBytesz>Standard approach to decoding parsed results from bytes to strr<r?r@cs|jfdd|DS)Nc3s|]}|VqdSrArIrKrNr<r=rOrPz+_ResultMixinBytes.decode..)_decoded_counterpartr]r<rNr=rJsz_ResultMixinBytes.decodeN)r?r@)r_r`rarbrcrJr<r<r<r=rdsrdc@sNeZdZdZdZeddZeddZeddZed d Z e e j Z d S) _NetlocResultMixinBasezHShared methods for the parsed result objects containing a netloc elementr<cCs |jdS)Nr _userinfor^r<r<r=usernamesz_NetlocResultMixinBase.usernamecCs |jdS)NrTrgrir<r<r=passwordsz_NetlocResultMixinBase.passwordcCsD|jd}|sdSt|tr dnd}||\}}}|||S)Nr%%) _hostinforUrV partitionlower)r^hostname separatorpercentzoner<r<r=rqs  z_NetlocResultMixinBase.hostnamecCsj|jd}|durfzt|d}Wn&tyFd|}t|dYn0d|kr\dksfntd|S)NrT z+Port could not be cast to integer value as rizPort out of range 0-65535)rnint ValueError)r^portmessager<r<r=rxs   z_NetlocResultMixinBase.portN)r_r`rarbrcpropertyrjrkrqrx classmethodtypes GenericAlias__class_getitem__r<r<r<r=rfs    rfc@s(eZdZdZeddZeddZdS)_NetlocResultMixinStrr<cCsD|j}|d\}}}|r4|d\}}}|s:///;?# The result is a named 6-tuple with fields corresponding to the above. It is either a ParseResult or ParseResultBytes object, depending on the type of the url parameter. The username, password, hostname, and port sub-components of netloc can also be accessed as attributes of the returned object. The scheme argument provides the default value of the scheme component when no scheme is found in url. If allow_fragments is False, no attempt is made to separate the fragment component from the previous component, which can be either path or query. Note that % escapes are not expanded. ;r)rZr uses_params _splitparamsr) rschemeallow_fragments_coerce_result splitresultrqueryrparamsresultr<r<r=r}s rcCsRd|vr,|d|d}|dkr6|dfSn |d}|d|||ddfS)N/rrrrT)findrfind)rir<r<r=rs   rcCsHt|}dD]"}|||}|dkr t||}q |||||dfS)Nz/?#r)lenrmin)rstartdelimcwdelimr<r<r= _splitnetlocs   rcCs|r |rdSddl}|dd}|dd}|dd}|dd}|d|}||kr`dSdD] }||vrdtd |d d qddS) Nrrrrr?NFKCz/?#@:znetloc 'z' contains invalid z#characters under NFKC normalization)isascii unicodedatareplace normalizerw)rrnnetloc2rr<r<r= _checknetlocs       rcCsB|dr td|s>tdnt|}t|tjr>tddS)Nvz\Av[a-fA-F0-9]+\..+\ZzIPvFuture address is invalidz%An IPv4 address cannot be in brackets) startswithrematchrw ipaddress ip_addressrU IPv4Address)rqipr<r<r=_check_bracketed_hosts      rcCst||\}}}|t}|t}tD]}||d}||d}q(t|}|||t|t|f}t |d}|r|||St tt krt d}}} | d} | dkr|d| D]} | tvrqq|d| || dd}}|dddkrpt|d\}}d|vr d |vs4d |vr:///?# The result is a named 5-tuple with fields corresponding to the above. It is either a SplitResult or SplitResultBytes object, depending on the type of the url parameter. The username, password, hostname, and port sub-components of netloc can also be accessed as attributes of the returned object. The scheme argument provides the default value of the scheme component when no scheme is found in url. If allow_fragments is False, no attempt is made to separate the fragment component from the previous component, which can be either path or query. Note that % escapes are not expanded. rNrrrT//rrzInvalid IPv6 URLrr)rZlstrip_WHATWG_C0_CONTROL_OR_SPACEstrip_UNSAFE_URL_BYTES_TO_REMOVErbooltyper9getrMAX_CACHE_SIZEr>r scheme_charsrprrwrorsplitrr)rrrrbkeycachedrrrrrbracketed_hostrr<r<r=rsN       " rcCs<t|\}}}}}}}|r&d||f}|t|||||fS)zPut a parsed URL back together again. This may result in a slightly different, but equivalent URL, if the URL that was parsed originally had redundant delimiters, e.g. a ? with an empty query (the draft states that these are equivalent).z%s;%s)rZr) componentsrrrrrrrr<r<r=rs  rcCst|\}}}}}}|s4|r$|tvs4|dddkr`|rP|dddkrPd|}d|pXd|}|rp|d|}|r|d|}|r|d |}||S) akCombine the elements of a tuple as returned by urlsplit() into a complete URL as a string. The data argument can be any five-item iterable. This may result in a slightly different, but equivalent URL, if the URL that was parsed originally had unnecessary delimiters (for example, a ? with an empty query; the RFC states that these are equivalent).NrrrTrrrrr)rZ uses_netloc)rrrrrrrr<r<r=rs    rc Cs|s|S|s|St||\}}}t|d|\}}}}}} t|||\} } } } }}| |ks`| tvrh||S| tvr| r|t| | | | ||fS|} | s| s|} |} |s|}|t| | | | ||fS|d}|ddkr|d=| dddkr| d}n(|| d}td|dd|dd<g}|D]N}|dkrZz |WntyVYn0n|dkrjq(n | |q(|ddvr| d|t| | d |pd| ||fS) zaJoin a base URL and a possibly relative URL to form an absolute interpretation of the latter.rrNrT...)rr) rZr uses_relativerrrfilterpop IndexErrorappendjoin)baserrrbschemebnetlocbpathbparamsbquery bfragmentrrpathrrr base_partssegments resolved_pathsegr<r<r=r&sb            rc CsTt|\}}d|vr>t|\}}}}}}t|||||df}nd}|}|t||S)zRemoves any existing fragment from URL. Returns a tuple of the defragmented URL and the fragment. If the URL contained no fragments, the second element is the empty string. rr)rZrrr) rrsrpaqfragdefragr<r<r=rks r0123456789ABCDEFabcdefc Cs|s|jdSt|tr"|d}|d}t|dkr<|S|dg}|j}tdurbddtDa|ddD]P}z(|t|dd ||d dWqnty|d||Yqn0qnd |S) z,unquote_to_bytes('abc%20def') -> b'abc def'.rPutf-8rmrTrNcSs.i|]&}tD]}||t||q qSr<)_hexdigrEbytesfromhex)rLrrr<r<r= s z$unquote_to_bytes..r) rrUrVrErr _hextobyterKeyErrorr)stringbitsresritemr<r<r=r~s,      rz([-]+)rrcCst|trt|||Sd|vr,|j|S|dur8d}|durDd}t|}|dg}|j}tdt|dD],}|t|||||||dqnd |S) aReplace %xx escapes by their single-character equivalent. The optional encoding and errors parameters specify how to decode percent-encoded sequences into Unicode characters, as accepted by the bytes.decode() method. By default, percent-encoded sequences are decoded with UTF-8, and invalid sequences are replaced by a placeholder character. unquote('abc%20def') -> 'abc def'. rlNrrrrTrr) rUrrrJr_asciirerrangerr)rrFrGrrrrr<r<r=rs   rF&c CsNi}t|||||||d}|D]*\} } | |vr>|| | q| g|| <q|S)aXParse a query given as a string argument. Arguments: qs: percent-encoded query string to be parsed keep_blank_values: flag indicating whether blank values in percent-encoded queries should be treated as blank strings. A true value indicates that blanks should be retained as blank strings. The default false value indicates that blank values are to be ignored and treated as if they were not included. strict_parsing: flag indicating what to do with parsing errors. If false (the default), errors are silently ignored. If true, errors raise a ValueError exception. encoding and errors: specify how to decode percent-encoded sequences into Unicode characters, as accepted by the bytes.decode() method. max_num_fields: int. If set, then throws a ValueError if there are more than n fields read by parse_qsl(). separator: str. The symbol to use for separating the query arguments. Defaults to &. Returns a dictionary. )rFrGmax_num_fieldsrr)r r) qskeep_blank_valuesstrict_parsingrFrGrrr parsed_resultpairsnamevaluer<r<r=r s  r cCs.t|\}}t|\}}|r*t|ttfs2td|durXd||} || krXtddd||D} g} | D]} | s|sqt| dd} t| dkr|rtd | f|rt| d nqtt| ds|rt| d  d d }t |||d}||}| d d d }t |||d}||}| ||fqt| S)aXParse a query given as a string argument. Arguments: qs: percent-encoded query string to be parsed keep_blank_values: flag indicating whether blank values in percent-encoded queries should be treated as blank strings. A true value indicates that blanks should be retained as blank strings. The default false value indicates that blank values are to be ignored and treated as if they were not included. strict_parsing: flag indicating what to do with parsing errors. If false (the default), errors are silently ignored. If true, errors raise a ValueError exception. encoding and errors: specify how to decode percent-encoded sequences into Unicode characters, as accepted by the bytes.decode() method. max_num_fields: int. If set, then throws a ValueError if there are more than n fields read by parse_qsl(). separator: str. The symbol to use for separating the query arguments. Defaults to &. Returns a list, as G-d intended. z*Separator must be of type string or bytes.NrTzMax number of fields exceededcSsg|]}|qSr<r<)rLs1r<r<r= rPzparse_qsl..=rzbad query field: %rrr+ rN) rZrUrVrrwcountrrrrr)rrrrFrGrrrrr num_fieldsr r name_valuenvr r r<r<r=r s:     r cCs|dd}t|||S)zLike unquote(), but also replace plus signs by spaces, as required for unquoting HTML form values. unquote_plus('%7e/abc+def') -> '~/abc def' rr)rr)rrFrGr<r<r=r's rsBABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-~c@s(eZdZdZddZddZddZdS) QuoterzA mapping from bytes (in range(0,256)) to strings. String values are percent-encoded byte values, unless the key < 128, and in the "safe" set (either the specified safe set, or default set). cCst||_dS)zsafe: bytes object.N) _ALWAYS_SAFEunionsafe)r^rr<r<r=__init__?szQuoter.__init__cCsd|jjt|fS)Nz<%s %r>) __class__r_dictrir<r<r=__repr__CszQuoter.__repr__cCs(||jvrt|nd|}|||<|S)Nz%{:02X})rchrformat)r^rrr<r<r= __missing__GszQuoter.__missing__N)r_r`rarbrrr r<r<r<r=r7srrcCsbt|tr8|s|S|durd}|dur*d}|||}n |durHtd|durXtdt||S)aquote('abc def') -> 'abc%20def' Each part of a URL, e.g. the path info, the query, etc., has a different set of reserved characters that must be quoted. The quote function offers a cautious (not minimal) way to quote a string for most of these parts. RFC 3986 Uniform Resource Identifier (URI): Generic Syntax lists the following (un)reserved characters. unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" reserved = gen-delims / sub-delims gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@" sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "=" Each of the reserved characters is reserved in some component of a URL, but not necessarily in all of them. The quote function %-escapes all characters that are neither in the unreserved chars ("always safe") nor the additional chars set via the safe arg. The default for the safe arg is '/'. The character is reserved, but in typical usage the quote function is being called on a path where the existing slash characters are to be preserved. Python 3.7 updates from using RFC 2396 to RFC 3986 to quote URL strings. Now, "~" is included in the set of unreserved characters. string and safe may be either str or bytes objects. encoding and errors must not be specified if string is a bytes object. The optional encoding and errors parameters specify how to deal with non-ASCII characters, as accepted by the str.encode method. By default, encoding='utf-8' (characters are encoded with UTF-8), and errors='strict' (unsupported characters raise a UnicodeEncodeError). Nrr@z,quote() doesn't support 'encoding' for bytesz*quote() doesn't support 'errors' for bytes)rUrVrErWr )rrrFrGr<r<r=r Ms' r cCsdt|trd|vs$t|tr2d|vr2t||||St|trBd}nd}t|||||}|ddS)zLike quote(), but also replace ' ' with '+', as required for quoting HTML form values. Plus signs in the original string are escaped unless they are included in safe. It also does not have safe default to '/'. r r)rUrVrr r)rrrFrGspacer<r<r=r s r cst|ttfstd|sdSt|tr6|dd}ntdd|D}|t|s^|Sz t |Wn$t yt |j t |<Yn0d fdd|DS)zLike quote(), but accepts a bytes object rather than a str, and does not perform string-to-bytes encoding. It always returns an ASCII string. quote_from_bytes(b'abc def?') -> 'abc%20def%3f' z!quote_from_bytes() expected bytesrr?ignorecSsg|]}|dkr|qS)r<)rLrr<r<r=r rPz$quote_from_bytes..csg|] }|qSr<r<)rLcharquoterr<r=r rP)rUr bytearrayrWrVrErstrip_ALWAYS_SAFE_BYTESrJr;rr __getitem__r)bsrr<r&r=r s   r c Cst|dr|}nNzt|r0t|dts0tWn.ty`t\}}}td|Yn0g} |s|D]j\} } t| t r|| |} n|t | |||} t| t r|| |} n|t | |||} | | d| qnn |D]\} } t| t r|| |} n|t | |||} t| t r@|| |} | | d| qt| t rn|| |||} | | d| qz t| } Wn8ty|t | |||} | | d| Yq0| D]B} t| t r|| |} n|t | |||} | | d| qqd | S)a^Encode a dict or sequence of two-element tuples into a URL query string. If any values in the query arg are sequences and doseq is true, each sequence element is converted to a separate parameter. If the query arg is a sequence of two-element tuples, the order of the parameters in the output will match the order of parameters in the input. The components of a query arg may each be either a string or a bytes type. The safe, encoding, and errors parameters are passed down to the function specified by quote_via (encoding and errors only if a component is a str). itemsrz1not a valid non-string sequence or mapping objectrr) hasattrr-rrUrQrWsysexc_infowith_tracebackrrVrr)rdoseqrrFrG quote_viatyvatblkrrMeltr<r<r=rsR                 rcCstjdtddt|S)Nz/urllib.parse.to_bytes() is deprecated as of 3.8r stacklevel)warningswarnDeprecationWarning _to_bytesrr<r<r=to_bytessrAcCsHt|trDz|d}Wn&tyBtdt|dYn0|S)zto_bytes(u"URL") --> 'URL'.ASCIIzURL z contains non-ASCII characters)rUrVrErJ UnicodeErrorreprr@r<r<r=r?s    r?cCs`t|}|dddkr<|dddkr<|dd}|dddkr\|dd}|S)zTransform a string like '' into 'scheme://host/path'. The string is returned unchanged if it's not a wrapped URL. NrTzURL:)rVrr@r<r<r=unwraps   rHcCstjdtddt|S)NzUurllib.parse.splittype() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr:)r<r=r> _splittyper@r<r<r= splittypesrJcCsDtdurtdtjat|}|r<|\}}||fSd|fS)z:splittype('type:opaquestring') --> 'type', 'opaquestring'.Nz ([^/:]+):(.*)) _typeprogrcompileDOTALLrgroupsrp)rrrdatar<r<r=rI$s   rIcCstjdtddt|S)NzUurllib.parse.splithost() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr:)r<r=r> _splithostr@r<r<r= splithost1srQcCsXtdurtdtjat|}|rP|\}}|rH|ddkrHd|}||fSd|fS)z;splithost('//host[:port]/path') --> 'host[:port]', '/path'.Nz//([^/#?]*)(.*)rr) _hostprogrrLrMrrN)rr host_portrr<r<r=rP9s  rPcCstjdtddt|S)NzUurllib.parse.splituser() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr:)r<r=r> _splituserhostr<r<r= splituserHsrWcCs |d\}}}|r|nd|fS)zJsplituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'.rNr)rVuserrr<r<r=rTOsrTcCstjdtddt|S)NzWurllib.parse.splitpasswd() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr:)r<r=r> _splitpasswd)rYr<r<r= splitpasswdUsr[cCs |d\}}}||r|ndfS)z/splitpasswd('user:passwd') -> 'user', 'passwd'.rNro)rYrpasswdr<r<r=rZ\srZcCstjdtddt|S)NzUurllib.parse.splitport() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr:)r<r=r> _splitportrUr<r<r= splitportbsr_cCsDtdurtdtjat|}|r<|\}}|r<||fS|dfS)z*splitport('host:port') --> 'host', 'port'.Nz (.*):([0-9]*)) _portprogrrLrM fullmatchrN)rVrrxr<r<r=r^ks  r^rcCstjdtddt||S)NzVurllib.parse.splitnport() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr:)r<r=r> _splitnport)rVdefportr<r<r= splitnportysrdcCsR|d\}}}|s|}n0|rJz t|}Wnty@d}Yn0||fS||fS)zSplit host and port, returning numeric port. Return given default port if no ':' found; defaults to -1. Return numerical port if a valid number are found after ':'. Return None if ':' but not a valid number.rN)rrvrw)rVrcrrxnportr<r<r=rbs   rbcCstjdtddt|S)NzVurllib.parse.splitquery() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr:)r<r=r> _splitqueryr@r<r<r= splitquerysrgcCs$|d\}}}|r||fS|dfS)z/splitquery('/path?query') --> '/path', 'query'.rNrX)rrrrr<r<r=rfsrfcCstjdtddt|S)NzTurllib.parse.splittag() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr:)r<r=r> _splittagr@r<r<r=splittagsricCs$|d\}}}|r||fS|dfS)z)splittag('/path#tag') --> '/path', 'tag'.rNrX)rrrtagr<r<r=rhsrhcCstjdtddt|S)NzUurllib.parse.splitattr() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr:)r<r=r> _splitattrr@r<r<r= splitattrsrlcCs|d}|d|ddfS)zksplitattr('/path;attr1=value1;attr2=value2;...') -> '/path', ['attr1=value1', 'attr2=value2', ...].rrrTN)r)rwordsr<r<r=rks rkcCstjdtddt|S)NzWurllib.parse.splitvalue() is deprecated as of 3.8, use urllib.parse.parse_qsl() insteadrr:)r<r=r> _splitvalue)attrr<r<r= splitvaluesrpcCs |d\}}}||r|ndfS)z-splitvalue('attr=value') --> 'attr', 'value'.rNr\)rorr r<r<r=rnsrn)rT)r)rT)T)rr)FFrrNr)FFrrNr)rr)rNN)rNN)r)r)r)krbrr/r| collectionsr<r__all__rrrnon_hierarchical uses_query uses_fragmentrrrrr9r>_implicit_encoding_implicit_errorsrCrHrSrZobjectr[rdrfrrr_DefragResultBase_SplitResultBase_ParseResultBaserrrrrrr ResultBaserrrrrrrrrrrrrrrrrrrrrLrrr r r frozensetrrr*r; defaultdictrr r r rrAr?rHrJrKrIrQrRrPrWrTr[rZr_r`r^rdrbrgrfrirhrlrkrprnr<r<r<r=s!    '           ?  E   * C  6   Q