Wc*csdZdZddlmZmZGddeZGddeZeedZd 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 MAXGROUPScs(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) ZreNcs~||_||_||_|z|xd||fz}t|trd}nd}|j |d|dz|_||j|d|z |_||vr+d||j |jfz}ndx|_|_tj|dS)Nz%s at position %dz s rz%s (line %d, column %d)) msgpatternposZ isinstanceZstrZcountZlinenoZrfindZcolnosuper__init__)selfrrrZnewline __class__s &/usr/lib64/python3.12/re/_constants.pyr zerror.__init__%s   3?%c 2C'3''!--C81s yyr N)rrrrrZ __reduce__rrrr rr8sB JJJJJr rrcsxdt|D}tjd|D|S)Ncs2g|]\}}t||S)r).0Zirs r z z_makecodes..Fs$ H H HGAt q$ ' ' ' Hr cs*i|]}|j|Srr)rZitem r z z_makecodes..Gs888$diioo8r )Z enumerateZglobalsZupdate)ZnamesZitemsrr _makecodesrEs; H Hy7G H HE I88%8899 Lr )-ZFAILUREZSUCCESSZANYZANY_ALLZASSERTZ ASSERT_NOTZATZBRANCHZCATEGORYZCHARSETZ BIGCHARSETZGROUPREFZGROUPREF_EXISTSZINZINFOZJUMPLITERALZMARKZ MAX_UNTILZ MIN_UNTIL NOT_LITERALZNEGATEZRANGEZREPEATZ REPEAT_ONEZ SUBPATTERNZMIN_REPEAT_ONEZ ATOMIC_GROUPZPOSSESSIVE_REPEATZPOSSESSIVE_REPEAT_ONEZGROUPREF_IGNOREZ IN_IGNORELITERAL_IGNORENOT_LITERAL_IGNOREZGROUPREF_LOC_IGNOREZ IN_LOC_IGNORELITERAL_LOC_IGNORENOT_LITERAL_LOC_IGNOREZGROUPREF_UNI_IGNOREZ IN_UNI_IGNORELITERAL_UNI_IGNORENOT_LITERAL_UNI_IGNOREZRANGE_UNI_IGNOREZ MIN_REPEATZ MAX_REPEATiN AT_BEGINNINGAT_BEGINNING_LINEZAT_BEGINNING_STRING AT_BOUNDARYAT_NON_BOUNDARYAT_END AT_END_LINEZ 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_LINEBREAKriiiii i@ii)ErZMAGICZ_srerrZ ExceptionrZintrrZOPCODESZATCODESZCHCODESrr!r r"Z OP_IGNOREr#r$ZOP_LOCALE_IGNOREr%r&ZOP_UNICODE_IGNOREr'r(r+r,Z AT_MULTILINEr)r-r*r.Z AT_LOCALEr/r0Z AT_UNICODEr1r2r3r4r5r9r6r:r7r8Z CH_LOCALEr;r<r=r>r?r@rArBZ CH_UNICODEZSRE_FLAG_TEMPLATEZSRE_FLAG_IGNORECASEZSRE_FLAG_LOCALEZSRE_FLAG_MULTILINEZSRE_FLAG_DOTALLZSRE_FLAG_UNICODEZSRE_FLAG_VERBOSEZSRE_FLAG_DEBUGZSRE_FLAG_ASCIIZSRE_INFO_PREFIXZSRE_INFO_LITERALZSRE_INFO_CHARSETrr r rCse&% %%%%%%%% IB         i 5  *0 0 b BCCL *')>$ m_,,  ***(20220: " ^#   '  ' # K (  ( N*N*$,*2  &.&.$,.6  r