Wc*dZdZddlmZmZGddeZGddeZeedZd Z e d Z e d d =e d ddddddddddd Z e dddddddd d!d"d#d$d%d&d'd(d)d*Z e eeeiZe eeeiZe eeeiZeeeeiZeeee iZ!ee"ee#iZ$e%e%e&e&e'e'e(e(e)e*e+e,e-e-e.e.iZ/e%e0e&e1e'e2e(e3e)e4e+e5e-e6e.e7iZ8d+Z9d,Z:d-Z;d.Zd1Z?d2Z@d3ZAd+ZBd,ZCd-ZDd S)4zInternal support module for srei_4) MAXREPEAT MAXGROUPSc(eZdZdZdZdfd ZxZS)erroraiException raised for invalid regular expressions. Attributes: msg: The unformatted error message pattern: The regular expression pattern pos: The index in the pattern where compilation failed (may be None) lineno: The line corresponding to pos (may be None) colno: The column corresponding to pos (may be None) reNc~||_||_||_|z|xd||fz}t|trd}nd}|j |d|dz|_||j|d|z |_||vr+d||j |jfz}ndx|_|_tj|dS)Nz%s at position %d  rz%s (line %d, column %d)) msgpatternpos isinstancestrcountlinenorfindcolnosuper__init__)selfr r rnewline __class__s &/usr/lib64/python3.12/re/_constants.pyrzerror.__init__%s   3?%c 2C'3''!--C81s yyrN)rrrr&r, __reduce__r r!s@rr#r#8sB JJJJJrr#rcxdt|D}tjd|D|S)Nc2g|]\}}t||S)r#).0ir's r z_makecodes..Fs$ H H HGAt q$ ' ' ' Hrc*i|]}|j|Sr0r+)r1items r z_makecodes..Gs888$diioo8r) enumerateglobalsupdate)namesitemss r _makecodesr<Es; H Hy7G H HE I88%8899 Lr)-FAILURESUCCESSANYANY_ALLASSERT ASSERT_NOTATBRANCHCATEGORYCHARSET BIGCHARSETGROUPREFGROUPREF_EXISTSININFOJUMPLITERALMARK MAX_UNTIL MIN_UNTIL NOT_LITERALNEGATERANGEREPEAT REPEAT_ONE SUBPATTERNMIN_REPEAT_ONE ATOMIC_GROUPPOSSESSIVE_REPEATPOSSESSIVE_REPEAT_ONEGROUPREF_IGNORE IN_IGNORELITERAL_IGNORENOT_LITERAL_IGNOREGROUPREF_LOC_IGNORE IN_LOC_IGNORELITERAL_LOC_IGNORENOT_LITERAL_LOC_IGNOREGROUPREF_UNI_IGNORE IN_UNI_IGNORELITERAL_UNI_IGNORENOT_LITERAL_UNI_IGNORERANGE_UNI_IGNORE MIN_REPEAT MAX_REPEATN AT_BEGINNINGAT_BEGINNING_LINEAT_BEGINNING_STRING AT_BOUNDARYAT_NON_BOUNDARYAT_END AT_END_LINE AT_END_STRINGAT_LOC_BOUNDARYAT_LOC_NON_BOUNDARYAT_UNI_BOUNDARYAT_UNI_NON_BOUNDARYCATEGORY_DIGITCATEGORY_NOT_DIGITCATEGORY_SPACECATEGORY_NOT_SPACE CATEGORY_WORDCATEGORY_NOT_WORDCATEGORY_LINEBREAKCATEGORY_NOT_LINEBREAKCATEGORY_LOC_WORDCATEGORY_LOC_NOT_WORDCATEGORY_UNI_DIGITCATEGORY_UNI_NOT_DIGITCATEGORY_UNI_SPACECATEGORY_UNI_NOT_SPACECATEGORY_UNI_WORDCATEGORY_UNI_NOT_WORDCATEGORY_UNI_LINEBREAKCATEGORY_UNI_NOT_LINEBREAKr  @)ErMAGIC_srerr Exceptionrintr#r<OPCODESATCODESCHCODESrMr]rQr^ OP_IGNORErarbOP_LOCALE_IGNORErerfOP_UNICODE_IGNORErkrlrprq AT_MULTILINErnrsrort AT_LOCALErurv AT_UNICODErwrxryrzr{rr|rr}r~ CH_LOCALErrrrrrrr CH_UNICODESRE_FLAG_TEMPLATESRE_FLAG_IGNORECASESRE_FLAG_LOCALESRE_FLAG_MULTILINESRE_FLAG_DOTALLSRE_FLAG_UNICODESRE_FLAG_VERBOSESRE_FLAG_DEBUGSRE_FLAG_ASCIISRE_INFO_PREFIXSRE_INFO_LITERALSRE_INFO_CHARSETr0rrrse&% %%%%%%%% IB         i 5  *0 0 b BCCL *')>$ m_,,  ***(20220: " ^#   '  ' # K (  ( N*N*$,*2  &.&.$,.6  r