(n,t)
| 123 | ;if("object"!=typeof e.endScope||null===e.endScope)throw K("endScope must be object"), |
| 124 | G;Z(e,e.end,{key:"endScope"}),e.end=h(e.end,{joinWith:""})}})(e)}function Q(e){ |
| 125 | function n(n,t){ |
| 126 | return RegExp(c(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(t?"g":"")) |
| 127 | }class t{constructor(){ |
| 128 | this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0} |
| 129 | addRule(e,n){ |
| 130 | n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]), |