2bip%SSKrSSKJrJr SSKJrJr SSKJrJ r S\ S\ 4Sjr "S S \5r "S S \ 5r "S S\ 5r"SS\5r"SS\5r"SS\5r\S:XGavSSKJr \"5r\R+S5 \R+S5 \R+S5 \R+S5 \R+S5 \R+S5 \R+S5 \R+S5 \R+S5 \R+S 5 \R+S!5 \R+S"5 \R+S#5 \R+S$5 \R+S%5 \R+S&5 \R+S'5 \R+S(5 \R+S)5 SSKr\R/\R0"S*SS+.S,9SS-9 gg).N)ABCabstractmethod)ListUnion)SpanTextregexesreturnc$SRU5$)zoCombine a number of regexes in to a single regex. Returns: str: New regex with all regexes ORed together. |)join)r s ڎ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/rich/highlighter.py_combine_regexrs 88G cP\rSrSrSrS\\\4S\4Sjr\ S\SS4Sj5r Sr g) Highlighterz%Abstract base class for highlighters.textr c[U[5(a [U5nO5[U[5(aUR5nO[ SU<35eUR U5 U$)zHighlight a str or Text instance. Args: text (Union[str, ~Text]): Text to highlight. Raises: TypeError: If not called with text or str. Returns: Text: A test instance with highlighting applied. z#str or Text instance required, not ) isinstancestrr copy TypeError highlight)selfrhighlight_texts r__call__Highlighter.__call__sW dC !$ZN d # #!YY[NA$JK K ~&rNcg)zWApply highlighting in place to text. Args: text (~Text): A text object highlight. Nrrs rrHighlighter.highlight)rr!) __name__ __module__ __qualname____firstlineno____doc__rrr rrr__static_attributes__r!rrrrsC/U39-$* d t  rrc*\rSrSrSrS\SS4SjrSrg)NullHighlighter2z]A highlighter object that doesn't highlight. May be used to disable highlighting entirely. rr Ncg)z Nothing to doNr!r"s rrNullHighlighter.highlight9r$rr!)r%r&r'r(r)r rr*r!rrr,r,2s dtrr,cN\rSrSr%Sr/r\\\S'Sr \\S'S\ SS4S jr S r g) RegexHighlighter=z8Applies highlighting from a list of regular expressions. highlights base_stylerr NcbURnURHnU"X0RS9 M g)zlHighlight :class:`rich.text.Text` using regular expressions. Args: text (~Text): Text to highlighted. ) style_prefixN)highlight_regexr3r5)rrr8 re_highlights rrRegexHighlighter.highlightCs).. OOL L G,rr!) r%r&r'r(r)r3rr__annotations__r5r rr*r!rrr1r1=s3BJS J Hd Ht Hrr1cL\rSrSrSrSrSSS\"SSS S S S S SSSSSS5 /rSrg)ReprHighlighterPzAHighlights the text typically produced from ``__repr__`` methods.zrepr.zN(?P<)(?P[-\w.:|]*)(?P[\w\W]*)(?P>)z:(?P[\w_]{1,50})=(?P"?[\w_]+"?)?z(?P[][{}()])z8(?P[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})z4(?P([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4})z(?P(?:[0-9A-Fa-f]{1,2}-){7}[0-9A-Fa-f]{1,2}|(?:[0-9A-Fa-f]{1,2}:){7}[0-9A-Fa-f]{1,2}|(?:[0-9A-Fa-f]{4}\.){3}[0-9A-Fa-f]{4})z(?P(?:[0-9A-Fa-f]{1,2}-){5}[0-9A-Fa-f]{1,2}|(?:[0-9A-Fa-f]{1,2}:){5}[0-9A-Fa-f]{1,2}|(?:[0-9A-Fa-f]{4}\.){2}[0-9A-Fa-f]{4})zU(?P[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12})z(?P[\w.]*?)\(zD\b(?PTrue)\b|\b(?PFalse)\b|\b(?PNone)\bz(?P\.\.\.)zk(?P(?(?\B(/[-\w._+]+)*\/)(?P[-\w._+]*)?z_(?b?'''.*?(?(file|https|http|ws|wss)://[-0-9a-zA-Z$_+!`(),.?/;:&=%#]*)r!N) r%r&r'r(r)r5rr3r*r!rrr=r=PsOKJYE G C R R d " S # z R B n Q Jrr=c`^\rSrSrSrSr1SkrSr\"SSS\5/r S \ S S 4U4S jjr S r U=r $)JSONHighlighterjzHighlights JSONz$(?b?\".*?(?    zjson.z(?P[\{\[\(\)\]\}])zD\b(?Ptrue)\b|\b(?Pfalse)\b|\b(?Pnull)\bzE(?P(?[T U]U5 URnURRnUR n[ R"URU5HQnUR5upgUnU[U5:dM(X(n US- nU S:XaU"[XgS55 OX;aM:MS g)Nr:zjson.key) superrplainspansappendJSON_WHITESPACErefinditerJSON_STRspanlenr) rrrIrK whitespacematchstartendcursorchar __class__s rrJSONHighlighter.highlight{s $ "")) [[6EJEF3u:%}! 3;4J78'7rr!)r%r&r'r(r)rOrLr5rr3r rr* __classcell__)rXs@rr@r@jsJ7H-OJ ( S T   Jdtrr@c$\rSrSrSrSr/SQrSrg)ISO8601HighlighterzHighlights the ISO8601 date time strings. Regex reference: https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s07.html ziso8601.) z-^(?P[0-9]{4})-(?P1[0-2]|0[1-9])$zU^(?P(?P[0-9]{4})(?P1[0-2]|0[1-9])(?P3[01]|0[1-9]|[12][0-9]))$z]^(?P(?P[0-9]{4})-?(?P36[0-6]|3[0-5][0-9]|[12][0-9]{2}|0[1-9][0-9]|00[1-9]))$zC^(?P(?P[0-9]{4})-?W(?P5[0-3]|[1-4][0-9]|0[1-9]))$zS^(?P(?P[0-9]{4})-?W(?P5[0-3]|[1-4][0-9]|0[1-9])-?(?P[1-7]))$z>^(?P