!function(e){function r(o){if(t[o])return t[o].exports;var n=t[o]={exports:{},id:o,loaded:!1};return e[o].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}var t={};return r.m=e,r.c=t,r.p="/",r(0)}({0:function(e,r,t){e.exports=t(631)},631:function(e,r){"use strict";function t(e){if(N){var r=e>>2,t=Module.HEAP32[r+5],o=Module.HEAP32[r+6],n=Module.HEAP32[r+10],a=Module.HEAP32[r+11];R[F]||(R[F]=[]),R[F][D]={patternStart:Y,patternEnd:B,stringStart:t,stringEnd:o-t},Y=n,B=a,J=t,X=o-t}C++,D++}function o(e){
N&&(R[F]||(R[F]=[]),R[F][D]={patternStart:Y,patternEnd:B,stringStart:J,stringEnd:X},R[F].steps=D+1,R[F].status=e,D=0,F++)}function n(){y.namedSubpatternTable&&Module._free(y.namedSubpatternTable),y.regex&&Module._free(y.regex),y={}}function a(e,r){if(r+="C",y){if(y.pattern===e&&y.flags===r)return;n()}for(var t=0,o=!1,a=0,u=r.length;a<u;a++)switch(r[a]){case"g":o=!0;break;case"i":t|=l;break;case"m":t|=s;break;case"s":t|=d;break;case"x":t|=i;break;case"A":t|=c;break;case"C":t|=g;break;case"D":case"E":
t|=b;break;case"J":t|=v;break;case"N":t|=p;break;case"S":break;case"U":t|=m;break;case"X":t|=M;break;case"Y":t|=P;break;case"u":t|=f|h;break;case"P":t|=f;break;default:throw new Error("Unknown option '"+r[a]+"' supplied.")}y.pattern=e,y.flags=r,y.optionBits=t|E,y.globalMatch=o;var A=2*(2*e.length+1),w=Module._malloc(A);Module.stringToUTF16(e,w,A);var L=Module._malloc(4),C=Module._malloc(4),D=x(w,t,L,C,null);if(!D){var F=Module.Pointer_stringify(Module.HEAP32[L>>2])+" - offset: "+Module.HEAP32[C>>2];
return Module._free(w),Module._free(L),Module._free(C),n(),F||"Unknown compilation error"}Module.HEAP32[j()>>2]=z;var N=Module._malloc(4);T(D,null,H,N),y.namedSubpatternCount=Module.HEAP32[N>>2],Module._free(N);var R=Module._malloc(4);T(D,null,k,R),y.namedSubpatternTable=R;var Y=Module._malloc(4);T(D,null,S,Y),y.namedSubpatternSize=Module.HEAP32[Y>>2],Module._free(Y);var B=Module._malloc(4);T(D,null,_,B),y.ovectorLen=3*(Module.HEAP32[B>>2]+1),Module._free(B),y.matchLimit=U(),y.regex=D,Module._free(w),
Module._free(L),Module._free(C)}function u(e,r){if(!y.regex)throw new Error("No pattern supplied to matching function!");if(C=0,D=0,F=0,R=[],Y=B=0,y.subject!==e||!y.testStringPointer){y.testStringPointer&&Module._free(y.testStringPointer);var t=e.length,n=2*(2*t+1),a=Module._malloc(n);Module.stringToUTF16(e,a,n),y.testStringPointer=a,y.subject=e,y.subjectLength=t}var u=Module._malloc(4*y.ovectorLen),l=u>>2,s=0,d=0,i=[],b=0,M=void 0,m=null;do{if(M=L(y.regex,y.matchLimit,y.testStringPointer,y.subjectLength,s,d,u,y.ovectorLen),
M>=0){o(M),D=0,0===M&&(M=y.ovectorLen/3);for(var f=new Array(M),p=0,g=0;g<2*M;g+=2){var v=Module.HEAP32[l+g],E=Module.HEAP32[l+g+1],P=g/2,h=v!==-1;if(f[p++]={isParticipating:h,groupNum:P,start:v,end:E,content:e.substring(v,E),match:b},h&&E>=v&&y.namedSubpatternCount>0)for(var _=Module.HEAP32[y.namedSubpatternTable>>2],S=0;S<y.namedSubpatternCount;S++){var H=Module.HEAP8[_];void 0!==f[H]&&(f[H].groupName=Module.UTF16ToString(_+2)),_+=2*y.namedSubpatternSize}}i[b++]=f}else{if(M!==w){s>=y.subjectLength||(o(M),
m=M);break}if(0!==d&&s<y.subjectLength)Module.HEAP32[l]=s,Module.HEAP32[l+1]=s+1,s<y.subjectLength-1&&"\r"===e.charAt(s)&&"\n"===e.charAt(s+1)&&(Module.HEAP32[l+1]+=1),o(M);else{if(!(r&&s<y.subjectLength)){D>0&&o(M);break}Module.HEAP32[l]=s,Module.HEAP32[l+1]=s+1}}var k=Module.HEAP32[l+1]===Module.HEAP32[l];r?s=Module.HEAP32[l+1]+(k?1:0):(d=k?A|c:0,s=Module.HEAP32[l+1])}while(y.globalMatch);return Module._free(u),{matchResult:i,error:m,calloutData:R,steps:C}}importScripts("/pcrelib.js");var l=1,s=2,d=4,i=8,c=16,b=32,M=64,m=512,f=2048,p=4096,g=16384,v=524288,E=2097152,P=67108864,A=268435456,h=536870912,_=2,S=7,H=8,k=9,w=-1,x=Module.cwrap("pcre16_compile","number",["number","number","number","number","number"]),L=Module.cwrap("pcre16_exec","number",["number","number","number","number","number","number","number","number"]),T=Module.cwrap("pcre16_fullinfo","number",["number","number","number","number"]),j=Module.cwrap("getCalloutAddress","number",[]),U=Module.cwrap("getExtraAddress","number",[]),C=void 0,D=void 0,F=void 0,N=!1,y={},z=Runtime.addFunction(t),R=void 0,Y=0,B=0,J=0,X=0;
self.onmessage=function(e){try{var r=e.data,t=r.debugging,o=r.regex,n=r.flags,l=r.testString,s=r.bumpalong;self.postMessage("onload"),N=!!t;var d=a(o,n+(N?"Y":""));if(d)return void self.postMessage({error:d});var i=new Date,c=u(l,s);c.time=new Date-i,self.postMessage(c)}catch(b){console.error("An unhandled error was thrown, please report this",b),self.postMessage({error:b.message||"Unknown error occured"})}}}});
//# sourceMappingURL=pcreWorker.js.map