| 96 | r+=o.substring(0,e.index), |
| 97 | o=o.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+(Number(e[1])+i):(r+=e[0], |
| 98 | "("===e[0]&&s++)}r+=")"}return r})(e),!0),this.lastIndex=0}exec(e){ |
| 99 | this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e) |
| 100 | ;if(!t)return null |
| 101 | ;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),s=this.matchIndexes[n] |
| 102 | ;return t.splice(0,n),Object.assign(t,s)}}class r{constructor(){ |
| 103 | this.rules=[],this.multiRegexes=[], |
| 104 | this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){ |
| 105 | if(this.multiRegexes[e])return this.multiRegexes[e];const t=new s |