M;k=1<=M?++x:--x)this.renderNextFrame();return u.call(this.imageParts,null)>=0?this.renderNextFrame():this.finishRendering()},m.prototype.finishRendering=function(){var y,k,x,M,E,A,j,F,P,G,h3,y3,t2,Z3,Q3,X4;for(F=0,Z3=this.imageParts,E=0,P=Z3.length;E=this.frames.length))return y=this.frames[this.nextFrame++],x=this.freeWorkers.shift(),k=this.getTask(y),this.log("starting frame "+(k.index+1)+" of "+this.frames.length),this.activeWorkers.push(x),x.postMessage(k)},m.prototype.getContextData=function(y){return y.getImageData(0,0,this.options.width,this.options.height).data},m.prototype.getImageData=function(y){var k;return this._canvas==null&&(this._canvas=document.createElement("canvas"),this._canvas.width=this.options.width,this._canvas.height=this.options.height),k=this._canvas.getContext("2d"),k.setFill=this.options.background,k.fillRect(0,0,this.options.width,this.options.height),k.drawImage(y,0,0),this.getContextData(k)},m.prototype.getTask=function(y){var k,x;if(k=this.frames.indexOf(y),x={index:k,last:k===this.frames.length-1,delay:y.delay,transparent:y.transparent,width:this.options.width,height:this.options.height,quality:this.options.quality,dither:this.options.dither,globalPalette:this.options.globalPalette,repeat:this.options.repeat,canTransfer:f.name==="chrome"},y.data!=null)x.data=y.data;else if(y.context!=null)x.data=this.getContextData(y.context);else if(y.image!=null)x.data=this.getImageData(y.image);else throw new Error("Invalid frame");return x},m.prototype.log=function(){var y;if(y=1<=arguments.length?c.call(arguments,0):[],!!this.options.debug)return console.log.apply(console,y)},m}(a),i.exports=l},{"./browser.coffee":2,events:1}]},{},[3])(3)})});var t_=J((Sq,go)=>{N();(function(){var n=function(M,E){for(var A=0,j=k(0,M.length-1,!0),F=0;FE[F][1])return!1}return!0},o=.95047,i=1,s=1.08883,a=4*o/(o+15*i+3*s),l=9*i/(o+15*i+3*s),f=.008856,d=903.3,C=function(M){return M>f?Math.pow(M,1/3):7.787*M+16/116},u=function(M){return Math.pow(M,3)>f?Math.pow(M,3):(116*M-16)/d},c={CIEXYZ:{},CIExyY:{},CIELAB:{},CIELCH:{},CIELUV:{},CIELCHuv:{},sRGB:{},hex:{}};c.CIEXYZ.sRGB=function(x){var M=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],E=function(G){var h3=.055;return G<=.0031308?12.92*G:1.055*Math.pow(G,1/2.4)-.055},A=E(n(M[0],x)),j=E(n(M[1],x)),F=E(n(M[2],x));return[A,j,F]},c.sRGB.CIEXYZ=function(x){var M=x[0],E=x[1],A=x[2],j=function(Z3){var Q3=.055;return Z3>.04045?Math.pow((Z3+Q3)/(1+Q3),2.4):Z3/12.92},F=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],P=[j(M),j(E),j(A)],G=n(F[0],P),h3=n(F[1],P),y3=n(F[2],P);return[G,h3,y3]},c.CIEXYZ.CIExyY=function(x){var M=x[0],E=x[1],A=x[2],j=M+E+A;return j===0?[0,0,E]:[M/j,E/j,E]},c.CIExyY.CIEXYZ=function(x){var M=x[0],E=x[1],A=x[2];if(E===0)return[0,0,0];var j=M*A/E,F=(1-M-E)*A/E;return[j,A,F]},c.CIEXYZ.CIELAB=function(x){var M=x[0],E=x[1],A=x[2],j=C(M/o),F=C(E/i),P=C(A/s),G=116*F-16,h3=500*(j-F),y3=200*(F-P);return[G,h3,y3]},c.CIELAB.CIEXYZ=function(x){var M=x[0],E=x[1],A=x[2],j=(M+16)/116,F=j-A/200,P=E/500+j,G=o*u(P),h3=i*u(j),y3=s*u(F);return[G,h3,y3]},c.CIEXYZ.CIELUV=function(x){var M=x[0],E=x[1],A=x[2],j=4*M/(M+15*E+3*A),F=9*E/(M+15*E+3*A),P=116*C(E/i)-16;if(P===0)return[0,0,0];var G=13*P*(j-a),h3=13*P*(F-l);return[P,G,h3]},c.CIELUV.CIEXYZ=function(x){var M=x[0],E=x[1],A=x[2];if(M===0)return[0,0,0];var j=u((M+16)/116),F=E/(13*M)+a,P=A/(13*M)+l,G=j*i,h3=0-9*G*F/((F-4)*P-F*P),y3=(9*G-15*P*G-P*h3)/(3*P);return[h3,G,y3]};var g=function(M){var E=M[0],A=M[1],j=M[2],F=Math.pow(Math.pow(A,2)+Math.pow(j,2),1/2),P=Math.atan2(j,A),G=P*360/2/Math.PI;return G<0&&(G=360+G),[E,F,G]};c.CIELAB.CIELCH=g,c.CIELUV.CIELCHuv=g;var _=function(M){var E=M[0],A=M[1],j=M[2],F=j/360*2*Math.PI,P=Math.cos(F)*A,G=Math.sin(F)*A;return[E,P,G]};c.CIELCH.CIELAB=_,c.CIELCHuv.CIELUV=_;var v=function(M){M=M.map(function(j){return e(j,3)});for(var E=0;E1)throw new Error("Illegal sRGB value")}return M.map(function(j){return Math.round(j*255)})};c.sRGB.hex=function(x){var M="#";x=v(x);for(var E=0;EF;j?P++:P--)A.push(P);return A}})()});var r_=J((Aq,n_)=>{N();var T=T||{};T.Geometry=function(){};T.Geometry.intersectLineLine=function(n,e){var r=(n.intercept-e.intercept)/(e.slope-n.slope),o=n.slope*r+n.intercept;return{x:r,y:o}};T.Geometry.distanceFromOrigin=function(n){return Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2))};T.Geometry.distanceLineFromOrigin=function(n){return Math.abs(n.intercept)/Math.sqrt(Math.pow(n.slope,2)+1)};T.Geometry.perpendicularThroughPoint=function(n,e){var r=-1/n.slope,o=e.y-r*e.x;return{slope:r,intercept:o}};T.Geometry.angleFromOrigin=function(n){return Math.atan2(n.y,n.x)};T.Geometry.normalizeAngle=function(n){var e=2*Math.PI;return(n%e+e)%e};T.Geometry.lengthOfRayUntilIntersect=function(n,e){return e.intercept/(Math.sin(n)-e.slope*Math.cos(n))};T.Hsluv=function(){};T.Hsluv.getBounds=function(n){for(var e=[],r=Math.pow(n+16,3)/1560896,o=r>T.Hsluv.epsilon?r:n/T.Hsluv.kappa,i=0;i<3;)for(var s=i++,a=T.Hsluv.m[s][0],l=T.Hsluv.m[s][1],f=T.Hsluv.m[s][2],d=0;d<2;){var C=d++,u=(284517*a-94839*f)*o,c=(838422*f+769860*l+731718*a)*n*o-769860*C*n,g=(632260*f-126452*l)*o+126452*C;e.push({slope:u/g,intercept:c/g})}return e};T.Hsluv.maxSafeChromaForL=function(n){for(var e=T.Hsluv.getBounds(n),r=1/0,o=0;o=0&&(i=Math.min(i,l))}return i};T.Hsluv.dotProduct=function(n,e){for(var r=0,o=0,i=n.length;o.04045?Math.pow((n+.055)/1.055,2.4):n/12.92};T.Hsluv.xyzToRgb=function(n){return[T.Hsluv.fromLinear(T.Hsluv.dotProduct(T.Hsluv.m[0],n)),T.Hsluv.fromLinear(T.Hsluv.dotProduct(T.Hsluv.m[1],n)),T.Hsluv.fromLinear(T.Hsluv.dotProduct(T.Hsluv.m[2],n))]};T.Hsluv.rgbToXyz=function(n){var e=[T.Hsluv.toLinear(n[0]),T.Hsluv.toLinear(n[1]),T.Hsluv.toLinear(n[2])];return[T.Hsluv.dotProduct(T.Hsluv.minv[0],e),T.Hsluv.dotProduct(T.Hsluv.minv[1],e),T.Hsluv.dotProduct(T.Hsluv.minv[2],e)]};T.Hsluv.yToL=function(n){return n<=T.Hsluv.epsilon?n/T.Hsluv.refY*T.Hsluv.kappa:116*Math.pow(n/T.Hsluv.refY,.3333333333333333)-16};T.Hsluv.lToY=function(n){return n<=8?T.Hsluv.refY*n/T.Hsluv.kappa:T.Hsluv.refY*Math.pow((n+16)/116,3)};T.Hsluv.xyzToLuv=function(n){var e=n[0],r=n[1],o=n[2],i=e+15*r+3*o,s=4*e,a=9*r;i!=0?(s/=i,a/=i):(s=NaN,a=NaN);var l=T.Hsluv.yToL(r);if(l==0)return[0,0,0];var f=13*l*(s-T.Hsluv.refU),d=13*l*(a-T.Hsluv.refV);return[l,f,d]};T.Hsluv.luvToXyz=function(n){var e=n[0],r=n[1],o=n[2];if(e==0)return[0,0,0];var i=r/(13*e)+T.Hsluv.refU,s=o/(13*e)+T.Hsluv.refV,a=T.Hsluv.lToY(e),l=0-9*a*i/((i-4)*s-i*s),f=(9*a-15*s*a-s*l)/(3*s);return[l,a,f]};T.Hsluv.luvToLch=function(n){var e=n[0],r=n[1],o=n[2],i=Math.sqrt(r*r+o*o),s;if(i<1e-8)s=0;else{var a=Math.atan2(o,r);s=a*180/Math.PI,s<0&&(s=360+s)}return[e,i,s]};T.Hsluv.lchToLuv=function(n){var e=n[0],r=n[1],o=n[2],i=o/360*2*Math.PI,s=Math.cos(i)*r,a=Math.sin(i)*r;return[e,s,a]};T.Hsluv.hsluvToLch=function(n){var e=n[0],r=n[1],o=n[2];if(o>99.9999999)return[100,0,e];if(o<1e-8)return[0,0,e];var i=T.Hsluv.maxChromaForLH(o,e),s=i/100*r;return[o,s,e]};T.Hsluv.lchToHsluv=function(n){var e=n[0],r=n[1],o=n[2];if(e>99.9999999)return[o,0,100];if(e<1e-8)return[o,0,0];var i=T.Hsluv.maxChromaForLH(e,o),s=r/i*100;return[o,s,e]};T.Hsluv.hpluvToLch=function(n){var e=n[0],r=n[1],o=n[2];if(o>99.9999999)return[100,0,e];if(o<1e-8)return[0,0,e];var i=T.Hsluv.maxSafeChromaForL(o),s=i/100*r;return[o,s,e]};T.Hsluv.lchToHpluv=function(n){var e=n[0],r=n[1],o=n[2];if(e>99.9999999)return[o,0,100];if(e<1e-8)return[o,0,0];var i=T.Hsluv.maxSafeChromaForL(e),s=r/i*100;return[o,s,e]};T.Hsluv.rgbToHex=function(n){for(var e="#",r=0;r<3;){var o=r++,i=n[o],s=Math.round(i*255),a=s%16,l=(s-a)/16|0;e+=T.Hsluv.hexChars.charAt(l)+T.Hsluv.hexChars.charAt(a)}return e};T.Hsluv.hexToRgb=function(n){n=n.toLowerCase();for(var e=[],r=0;r<3;){var o=r++,i=T.Hsluv.hexChars.indexOf(n.charAt(o*2+1)),s=T.Hsluv.hexChars.indexOf(n.charAt(o*2+2)),a=i*16+s;e.push(a/255)}return e};T.Hsluv.lchToRgb=function(n){return T.Hsluv.xyzToRgb(T.Hsluv.luvToXyz(T.Hsluv.lchToLuv(n)))};T.Hsluv.rgbToLch=function(n){return T.Hsluv.luvToLch(T.Hsluv.xyzToLuv(T.Hsluv.rgbToXyz(n)))};T.Hsluv.hsluvToRgb=function(n){return T.Hsluv.lchToRgb(T.Hsluv.hsluvToLch(n))};T.Hsluv.rgbToHsluv=function(n){return T.Hsluv.lchToHsluv(T.Hsluv.rgbToLch(n))};T.Hsluv.hpluvToRgb=function(n){return T.Hsluv.lchToRgb(T.Hsluv.hpluvToLch(n))};T.Hsluv.rgbToHpluv=function(n){return T.Hsluv.lchToHpluv(T.Hsluv.rgbToLch(n))};T.Hsluv.hsluvToHex=function(n){return T.Hsluv.rgbToHex(T.Hsluv.hsluvToRgb(n))};T.Hsluv.hpluvToHex=function(n){return T.Hsluv.rgbToHex(T.Hsluv.hpluvToRgb(n))};T.Hsluv.hexToHsluv=function(n){return T.Hsluv.rgbToHsluv(T.Hsluv.hexToRgb(n))};T.Hsluv.hexToHpluv=function(n){return T.Hsluv.rgbToHpluv(T.Hsluv.hexToRgb(n))};T.Hsluv.m=[[3.240969941904521,-1.537383177570093,-.498610760293],[-.96924363628087,1.87596750150772,.041555057407175],[.055630079696993,-.20397695888897,1.056971514242878]];T.Hsluv.minv=[[.41239079926595,.35758433938387,.18048078840183],[.21263900587151,.71516867876775,.072192315360733],[.019330818715591,.11919477979462,.95053215224966]];T.Hsluv.refY=1;T.Hsluv.refU=.19783000664283;T.Hsluv.refV=.46831999493879;T.Hsluv.kappa=903.2962962;T.Hsluv.epsilon=.0088564516;T.Hsluv.hexChars="0123456789abcdef";var yP={hsluvToRgb:T.Hsluv.hsluvToRgb,rgbToHsluv:T.Hsluv.rgbToHsluv,hpluvToRgb:T.Hsluv.hpluvToRgb,rgbToHpluv:T.Hsluv.rgbToHpluv,hsluvToHex:T.Hsluv.hsluvToHex,hexToHsluv:T.Hsluv.hexToHsluv,hpluvToHex:T.Hsluv.hpluvToHex,hexToHpluv:T.Hsluv.hexToHpluv,lchToHpluv:T.Hsluv.lchToHpluv,hpluvToLch:T.Hsluv.hpluvToLch,lchToHsluv:T.Hsluv.lchToHsluv,hsluvToLch:T.Hsluv.hsluvToLch,lchToLuv:T.Hsluv.lchToLuv,luvToLch:T.Hsluv.luvToLch,xyzToLuv:T.Hsluv.xyzToLuv,luvToXyz:T.Hsluv.luvToXyz,xyzToRgb:T.Hsluv.xyzToRgb,rgbToXyz:T.Hsluv.rgbToXyz,lchToRgb:T.Hsluv.lchToRgb,rgbToLch:T.Hsluv.rgbToLch};n_.exports=yP});var d_=J(sC=>{N();"use strict";Object.defineProperty(sC,"__esModule",{value:!0});function LP(n,e,r=document){let o=`${n}${e}`,i=r.querySelector(o);if(!i)throw new Error(`Couldn't find any elements matching "${o}"`);return i}sC.getHTMLElement=LP});var C_=J(S8=>{N();"use strict";Object.defineProperty(S8,"__esModule",{value:!0});function _P(n,e="Assertion failure, expected argument to not be null!"){if(n===null)throw new Error(e);return n}S8.assertNotNull=_P;function NP(n,e="Assertion failure, expected argument to not be undefined!"){if(n===void 0)throw new Error(e);return n}S8.assertNotUndefined=NP;function wP(n="Code should never reach this point!"){throw new Error(n)}S8.hardFail=wP});var u_=J(z9=>{N();"use strict";Object.defineProperty(z9,"__esModule",{value:!0});var bP=d_();z9.getHTMLElement=bP.getHTMLElement;var aC=C_();z9.assertNotNull=aC.assertNotNull;z9.assertNotUndefined=aC.assertNotUndefined;z9.hardFail=aC.hardFail});var m_=J((rH,h_)=>{N();"use strict";function AP(){throw new Error("fingerprinting not supported in the browser")}h_.exports={createHash:AP}});var dC=J((oH,y_)=>{N();"use strict";var jP=m_();function RP(n){return n.charAt(0).toUpperCase()+n.slice(1)}function TP(n,e){return n===e?0:n=0)return-2;r=o}return r}function DP(n,e){var r={},o,i;for(o=0;o-1&&(r+="abcdefghijklmnopqrstuvwxyz"),e.indexOf("A")>-1&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),e.indexOf("#")>-1&&(r+="0123456789"),e.indexOf("!")>-1&&(r+="~`!@#$%^&*()_+-={}[]:\";'<>?,./|\\");for(var o=[],i=0;i0&&e[r].index>1].index;)n=e[r],e[r]=e[o],e[o]=n,r=o};lC.prototype.pop=function(){var n=this._items,e=n.length-1|0,r=n[0];if(!r||r.index>this._index)return null;if(this._index++,!e)return n.pop(),r;n[0]=n.pop();for(var o=e>>1,i=0,s,a,l,f,d,C,u;i=f.index));)n[l]=f,n[i]=d,i=l;return r};function C3(n,e){this.buf=n,this.pos=e|0}C3.prototype.isValid=function(){return this.pos<=this.buf.length};C3.prototype.getValue=function(){return this.buf.slice(0,this.pos)};C3.prototype.readBoolean=function(){return!!this.buf[this.pos++]};C3.prototype.skipBoolean=function(){this.pos++};C3.prototype.writeBoolean=function(n){this.buf[this.pos++]=!!n};C3.prototype.readInt=C3.prototype.readLong=function(){var n=0,e=0,r=this.buf,o,i,s,a;do o=r[this.pos++],i=o&128,n|=(o&127)<>1^-(n&1)};C3.prototype.skipInt=C3.prototype.skipLong=function(){for(var n=this.buf;n[this.pos++]&128;);};C3.prototype.writeInt=C3.prototype.writeLong=function(n){var e=this.buf,r,o;if(n>=-1073741824&&n<1073741824){o=n>=0?n<<1:~n<<1|1;do e[this.pos]=o&127,o>>=7;while(o&&(e[this.pos++]|=128))}else{r=n>=0?n*2:-n*2-1;do e[this.pos]=r&127,r/=128;while(r>=1&&(e[this.pos++]|=128))}this.pos++};C3.prototype.readFloat=function(){var n=this.buf,e=this.pos;if(this.pos+=4,!(this.pos>n.length))return this.buf.readFloatLE(e)};C3.prototype.skipFloat=function(){this.pos+=4};C3.prototype.writeFloat=function(n){var e=this.buf,r=this.pos;if(this.pos+=4,!(this.pos>e.length))return this.buf.writeFloatLE(n,r)};C3.prototype.readDouble=function(){var n=this.buf,e=this.pos;if(this.pos+=8,!(this.pos>n.length))return this.buf.readDoubleLE(e)};C3.prototype.skipDouble=function(){this.pos+=8};C3.prototype.writeDouble=function(n){var e=this.buf,r=this.pos;if(this.pos+=8,!(this.pos>e.length))return this.buf.writeDoubleLE(n,r)};C3.prototype.readFixed=function(n){var e=this.pos;if(this.pos+=n,!(this.pos>this.buf.length)){var r=new R(n);return this.buf.copy(r,0,e,e+n),r}};C3.prototype.skipFixed=function(n){this.pos+=n};C3.prototype.writeFixed=function(n,e){e=e||n.length;var r=this.pos;this.pos+=e,!(this.pos>this.buf.length)&&n.copy(this.buf,r,0,e)};C3.prototype.readBytes=function(){return this.readFixed(this.readLong())};C3.prototype.skipBytes=function(){var n=this.readLong();this.pos+=n};C3.prototype.writeBytes=function(n){var e=n.length;this.writeLong(e),this.writeFixed(n,e)};C3.prototype.readString=function(){var n=this.readLong(),e=this.pos,r=this.buf;if(this.pos+=n,!(this.pos>r.length))return this.buf.utf8Slice(e,e+n)};C3.prototype.skipString=function(){var n=this.readLong();this.pos+=n};C3.prototype.writeString=function(n){var e=R.byteLength(n);this.writeLong(e);var r=this.pos;this.pos+=e,!(this.pos>this.buf.length)&&this.buf.utf8Write(n,r,e)};C3.prototype.writeBinary=function(n,e){var r=this.pos;this.pos+=e,!(this.pos>this.buf.length)&&this.buf.write(n,r,e,"binary")};C3.prototype.matchBoolean=function(n){return this.buf[this.pos++]-n.buf[n.pos++]};C3.prototype.matchInt=C3.prototype.matchLong=function(n){var e=this.readLong(),r=n.readLong();return e===r?0:e>1;s&128;)s=i[this.pos++],e|=(s&127)<=8&&(o-=8,n[r++]=e,e>>=8);return n[r]=e,a&&fC(n,8),n};C3.prototype.packLongBytes=function(n){var e=(n[7]&128)>>7,r=this.buf,o=1,i=0,s=3,a;e?(fC(n,8),a=1):a=0;for(var l=[n.readUIntLE(0,3),n.readUIntLE(3,3),n.readUIntLE(6,2)];s&&!l[--s];);for(;i7;)r[this.pos++]=a&127|128,a>>=7,o-=7;a|=l[s]<>=7;while(a&&(r[this.pos++]|=128));this.pos++,e&&fC(n,8)};function fC(n,e){for(;e--;)n[e]=~n[e]}y_.exports={abstractFunction:PP,capitalize:RP,compare:TP,getHash:WP,toMap:DP,singleIndexOf:IP,hasDuplicates:FP,Lcg:Q5,OrderedQueue:lC,Tap:C3}});var k_=J((iH,g_)=>{N();"use strict";g_.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0}});var bo=J((sH,v_)=>{N();"use strict";var x_=typeof Symbol!="undefined"&&Symbol,BP=k_();v_.exports=function(){return typeof x_!="function"||typeof Symbol!="function"||typeof x_("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:BP()}});var L_=J((aH,M_)=>{N();"use strict";var OP="Function.prototype.bind called on incompatible ",CC=Array.prototype.slice,ZP=Object.prototype.toString,UP="[object Function]";M_.exports=function(e){var r=this;if(typeof r!="function"||ZP.call(r)!==UP)throw new TypeError(OP+r);for(var o=CC.call(arguments,1),i,s=function(){if(this instanceof i){var C=r.apply(this,o.concat(CC.call(arguments)));return Object(C)===C?C:this}else return r.apply(e,o.concat(CC.call(arguments)))},a=Math.max(0,r.length-o.length),l=[],f=0;f{N();"use strict";var VP=L_();__.exports=Function.prototype.bind||VP});var w_=J((fH,N_)=>{N();"use strict";var GP=Eo();N_.exports=GP.call(Function.call,Object.prototype.hasOwnProperty)});var Ro=J((dH,A_)=>{N();"use strict";var x3,A8=SyntaxError,b_=Function,q9=TypeError,uC=function(n){try{return b_('"use strict"; return ('+n+").constructor;")()}catch(e){}},e6=Object.getOwnPropertyDescriptor;if(e6)try{e6({},"")}catch(n){e6=null}var cC=function(){throw new q9},zP=e6?function(){try{return arguments.callee,cC}catch(n){try{return e6(arguments,"callee").get}catch(e){return cC}}}():cC,H9=bo()(),H1=Object.getPrototypeOf||function(n){return n.__proto__},$9={},qP=typeof Uint8Array=="undefined"?x3:H1(Uint8Array),K9={"%AggregateError%":typeof AggregateError=="undefined"?x3:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?x3:ArrayBuffer,"%ArrayIteratorPrototype%":H9?H1([][Symbol.iterator]()):x3,"%AsyncFromSyncIteratorPrototype%":x3,"%AsyncFunction%":$9,"%AsyncGenerator%":$9,"%AsyncGeneratorFunction%":$9,"%AsyncIteratorPrototype%":$9,"%Atomics%":typeof Atomics=="undefined"?x3:Atomics,"%BigInt%":typeof BigInt=="undefined"?x3:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?x3:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?x3:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?x3:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?x3:FinalizationRegistry,"%Function%":b_,"%GeneratorFunction%":$9,"%Int8Array%":typeof Int8Array=="undefined"?x3:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?x3:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?x3:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":H9?H1(H1([][Symbol.iterator]())):x3,"%JSON%":typeof JSON=="object"?JSON:x3,"%Map%":typeof Map=="undefined"?x3:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!H9?x3:H1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?x3:Promise,"%Proxy%":typeof Proxy=="undefined"?x3:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?x3:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?x3:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!H9?x3:H1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?x3:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":H9?H1(""[Symbol.iterator]()):x3,"%Symbol%":H9?Symbol:x3,"%SyntaxError%":A8,"%ThrowTypeError%":zP,"%TypedArray%":qP,"%TypeError%":q9,"%Uint8Array%":typeof Uint8Array=="undefined"?x3:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?x3:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?x3:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?x3:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?x3:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?x3:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?x3:WeakSet},HP=function n(e){var r;if(e==="%AsyncFunction%")r=uC("async function () {}");else if(e==="%GeneratorFunction%")r=uC("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=uC("async function* () {}");else if(e==="%AsyncGenerator%"){var o=n("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=n("%AsyncGenerator%");i&&(r=H1(i.prototype))}return K9[e]=r,r},E_={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},So=Eo(),Ao=w_(),$P=So.call(Function.call,Array.prototype.concat),KP=So.call(Function.apply,Array.prototype.splice),S_=So.call(Function.call,String.prototype.replace),jo=So.call(Function.call,String.prototype.slice),YP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,XP=/\\(\\)?/g,JP=function(e){var r=jo(e,0,1),o=jo(e,-1);if(r==="%"&&o!=="%")throw new A8("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&r!=="%")throw new A8("invalid intrinsic syntax, expected opening `%`");var i=[];return S_(e,YP,function(s,a,l,f){i[i.length]=l?S_(f,XP,"$1"):a||s}),i},QP=function(e,r){var o=e,i;if(Ao(E_,o)&&(i=E_[o],o="%"+i[0]+"%"),Ao(K9,o)){var s=K9[o];if(s===$9&&(s=HP(o)),typeof s=="undefined"&&!r)throw new q9("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:o,value:s}}throw new A8("intrinsic "+e+" does not exist!")};A_.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new q9("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new q9('"allowMissing" argument must be a boolean');var o=JP(e),i=o.length>0?o[0]:"",s=QP("%"+i+"%",r),a=s.name,l=s.value,f=!1,d=s.alias;d&&(i=d[0],KP(o,$P([0,1],d)));for(var C=1,u=!0;C=o.length){var v=e6(l,c);u=!!v,u&&"get"in v&&!("originalValue"in v.get)?l=v.get:l=l[c]}else u=Ao(l,c),l=l[c];u&&!f&&(K9[a]=l)}}return l}});var D_=J((CH,To)=>{N();"use strict";var pC=Eo(),Y9=Ro(),j_=Y9("%Function.prototype.apply%"),R_=Y9("%Function.prototype.call%"),T_=Y9("%Reflect.apply%",!0)||pC.call(R_,j_),W_=Y9("%Object.getOwnPropertyDescriptor%",!0),t6=Y9("%Object.defineProperty%",!0),eB=Y9("%Math.max%");if(t6)try{t6({},"a",{value:1})}catch(n){t6=null}To.exports=function(e){var r=T_(pC,R_,arguments);if(W_&&t6){var o=W_(r,"length");o.configurable&&t6(r,"length",{value:1+eB(0,e.length-(arguments.length-1))})}return r};var I_=function(){return T_(pC,j_,arguments)};t6?t6(To.exports,"apply",{value:I_}):To.exports.apply=I_});var Wo=J((uH,B_)=>{N();"use strict";var F_=Ro(),P_=D_(),tB=P_(F_("String.prototype.indexOf"));B_.exports=function(e,r){var o=F_(e,!!r);return typeof o=="function"&&tB(e,".prototype.")>-1?P_(o):o}});var U_=J((cH,Z_)=>{N();"use strict";var nB=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",rB=Wo(),hC=rB("Object.prototype.toString"),Io=function(e){return nB&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:hC(e)==="[object Arguments]"},O_=function(e){return Io(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&hC(e)!=="[object Array]"&&hC(e.callee)==="[object Function]"},oB=function(){return Io(arguments)}();Io.isLegacyArguments=O_;Z_.exports=oB?Io:O_});var z_=J((pH,G_)=>{N();"use strict";var iB=Object.prototype.toString,sB=Function.prototype.toString,aB=/^\s*(?:function)?\*/,V_=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",mC=Object.getPrototypeOf,lB=function(){if(!V_)return!1;try{return Function("return function*() {}")()}catch(n){}},yC;G_.exports=function(e){if(typeof e!="function")return!1;if(aB.test(sB.call(e)))return!0;if(!V_){var r=iB.call(e);return r==="[object GeneratorFunction]"}if(!mC)return!1;if(typeof yC=="undefined"){var o=lB();yC=o?mC(o):!1}return mC(e)===yC}});var gC=J((hH,q_)=>{N();var fB=Object.prototype.hasOwnProperty,dB=Object.prototype.toString;q_.exports=function(e,r,o){if(dB.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var s=0;s{N();"use strict";var kC=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"];H_.exports=function(){for(var e=[],r=0;r{N();"use strict";var CB=Ro(),Do=CB("%Object.getOwnPropertyDescriptor%");if(Do)try{Do([],"length")}catch(n){Do=null}$_.exports=Do});var _C=J((gH,Q_)=>{N();"use strict";var K_=gC(),uB=xC(),MC=Wo(),cB=MC("Object.prototype.toString"),pB=bo()(),Y_=pB&&typeof Symbol.toStringTag=="symbol",X_=uB(),hB=MC("Array.prototype.indexOf",!0)||function(e,r){for(var o=0;o-1}return Fo?yB(e):!1}});var iN=J((kH,oN)=>{N();"use strict";var eN=gC(),gB=xC(),tN=Wo(),kB=tN("Object.prototype.toString"),xB=bo()(),nN=xB&&typeof Symbol.toStringTag=="symbol",vB=gB(),MB=tN("String.prototype.slice"),rN={},NC=vC(),wC=Object.getPrototypeOf;nN&&NC&&wC&&eN(vB,function(n){if(typeof window[n]=="function"){var e=new window[n];if(!(Symbol.toStringTag in e))throw new EvalError("this engine has support for Symbol.toStringTag, but "+n+" does not have the property! Please report this.");var r=wC(e),o=NC(r,Symbol.toStringTag);if(!o){var i=wC(r);o=NC(i,Symbol.toStringTag)}rN[n]=o.get}});var LB=function(e){var r=!1;return eN(rN,function(o,i){if(!r)try{var s=o.call(e);s===i&&(r=s)}catch(a){}}),r},_B=_C();oN.exports=function(e){return _B(e)?nN?LB(e):MB(kB(e),8,-1):!1}});var kN=J(u3=>{N();"use strict";var NB=U_(),wB=z_(),i4=iN(),sN=_C();function X9(n){return n.call.bind(n)}var aN=typeof BigInt!="undefined",lN=typeof Symbol!="undefined",q0=X9(Object.prototype.toString),bB=X9(Number.prototype.valueOf),EB=X9(String.prototype.valueOf),SB=X9(Boolean.prototype.valueOf);aN&&(fN=X9(BigInt.prototype.valueOf));var fN;lN&&(dN=X9(Symbol.prototype.valueOf));var dN;function j8(n,e){if(typeof n!="object")return!1;try{return e(n),!0}catch(r){return!1}}u3.isArgumentsObject=NB;u3.isGeneratorFunction=wB;u3.isTypedArray=sN;function AB(n){return typeof Promise!="undefined"&&n instanceof Promise||n!==null&&typeof n=="object"&&typeof n.then=="function"&&typeof n.catch=="function"}u3.isPromise=AB;function jB(n){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(n):sN(n)||uN(n)}u3.isArrayBufferView=jB;function RB(n){return i4(n)==="Uint8Array"}u3.isUint8Array=RB;function TB(n){return i4(n)==="Uint8ClampedArray"}u3.isUint8ClampedArray=TB;function WB(n){return i4(n)==="Uint16Array"}u3.isUint16Array=WB;function IB(n){return i4(n)==="Uint32Array"}u3.isUint32Array=IB;function DB(n){return i4(n)==="Int8Array"}u3.isInt8Array=DB;function FB(n){return i4(n)==="Int16Array"}u3.isInt16Array=FB;function PB(n){return i4(n)==="Int32Array"}u3.isInt32Array=PB;function BB(n){return i4(n)==="Float32Array"}u3.isFloat32Array=BB;function OB(n){return i4(n)==="Float64Array"}u3.isFloat64Array=OB;function ZB(n){return i4(n)==="BigInt64Array"}u3.isBigInt64Array=ZB;function UB(n){return i4(n)==="BigUint64Array"}u3.isBigUint64Array=UB;function Po(n){return q0(n)==="[object Map]"}Po.working=typeof Map!="undefined"&&Po(new Map);function VB(n){return typeof Map=="undefined"?!1:Po.working?Po(n):n instanceof Map}u3.isMap=VB;function Bo(n){return q0(n)==="[object Set]"}Bo.working=typeof Set!="undefined"&&Bo(new Set);function GB(n){return typeof Set=="undefined"?!1:Bo.working?Bo(n):n instanceof Set}u3.isSet=GB;function Oo(n){return q0(n)==="[object WeakMap]"}Oo.working=typeof WeakMap!="undefined"&&Oo(new WeakMap);function zB(n){return typeof WeakMap=="undefined"?!1:Oo.working?Oo(n):n instanceof WeakMap}u3.isWeakMap=zB;function bC(n){return q0(n)==="[object WeakSet]"}bC.working=typeof WeakSet!="undefined"&&bC(new WeakSet);function qB(n){return bC(n)}u3.isWeakSet=qB;function Zo(n){return q0(n)==="[object ArrayBuffer]"}Zo.working=typeof ArrayBuffer!="undefined"&&Zo(new ArrayBuffer);function CN(n){return typeof ArrayBuffer=="undefined"?!1:Zo.working?Zo(n):n instanceof ArrayBuffer}u3.isArrayBuffer=CN;function Uo(n){return q0(n)==="[object DataView]"}Uo.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Uo(new DataView(new ArrayBuffer(1),0,1));function uN(n){return typeof DataView=="undefined"?!1:Uo.working?Uo(n):n instanceof DataView}u3.isDataView=uN;var EC=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function R8(n){return q0(n)==="[object SharedArrayBuffer]"}function cN(n){return typeof EC=="undefined"?!1:(typeof R8.working=="undefined"&&(R8.working=R8(new EC)),R8.working?R8(n):n instanceof EC)}u3.isSharedArrayBuffer=cN;function HB(n){return q0(n)==="[object AsyncFunction]"}u3.isAsyncFunction=HB;function $B(n){return q0(n)==="[object Map Iterator]"}u3.isMapIterator=$B;function KB(n){return q0(n)==="[object Set Iterator]"}u3.isSetIterator=KB;function YB(n){return q0(n)==="[object Generator]"}u3.isGeneratorObject=YB;function XB(n){return q0(n)==="[object WebAssembly.Module]"}u3.isWebAssemblyCompiledModule=XB;function pN(n){return j8(n,bB)}u3.isNumberObject=pN;function hN(n){return j8(n,EB)}u3.isStringObject=hN;function mN(n){return j8(n,SB)}u3.isBooleanObject=mN;function yN(n){return aN&&j8(n,fN)}u3.isBigIntObject=yN;function gN(n){return lN&&j8(n,dN)}u3.isSymbolObject=gN;function JB(n){return pN(n)||hN(n)||mN(n)||yN(n)||gN(n)}u3.isBoxedPrimitive=JB;function QB(n){return typeof Uint8Array!="undefined"&&(CN(n)||cN(n))}u3.isAnyArrayBuffer=QB;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(n){Object.defineProperty(u3,n,{enumerable:!1,value:function(){throw new Error(n+" is not supported in userland")}})})});var vN=J((vH,xN)=>{N();xN.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}});var MN=J((MH,SC)=>{N();typeof Object.create=="function"?SC.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:SC.exports=function(e,r){if(r){e.super_=r;var o=function(){};o.prototype=r.prototype,e.prototype=new o,e.prototype.constructor=e}}});var IC=J(c3=>{N();var LN=Object.getOwnPropertyDescriptors||function(e){for(var r=Object.keys(e),o={},i=0;i=i)return l;switch(l){case"%s":return String(o[r++]);case"%d":return Number(o[r++]);case"%j":try{return JSON.stringify(o[r++])}catch(f){return"[Circular]"}default:return l}}),a=o[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),RC(e)?r.showHidden=e:e&&c3._extend(r,e),n6(r.showHidden)&&(r.showHidden=!1),n6(r.depth)&&(r.depth=2),n6(r.colors)&&(r.colors=!1),n6(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=tO),zo(r,n,r.depth)}c3.inspect=$1;$1.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};$1.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function tO(n,e){var r=$1.styles[e];return r?"["+$1.colors[r][0]+"m"+n+"["+$1.colors[r][1]+"m":n}function nO(n,e){return n}function rO(n){var e={};return n.forEach(function(r,o){e[r]=!0}),e}function zo(n,e,r){if(n.customInspect&&e&&Ko(e.inspect)&&e.inspect!==c3.inspect&&!(e.constructor&&e.constructor.prototype===e)){var o=e.inspect(r,n);return Ho(o)||(o=zo(n,o,r)),o}var i=oO(n,e);if(i)return i;var s=Object.keys(e),a=rO(s);if(n.showHidden&&(s=Object.getOwnPropertyNames(e)),W8(e)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return AC(e);if(s.length===0){if(Ko(e)){var l=e.name?": "+e.name:"";return n.stylize("[Function"+l+"]","special")}if(T8(e))return n.stylize(RegExp.prototype.toString.call(e),"regexp");if($o(e))return n.stylize(Date.prototype.toString.call(e),"date");if(W8(e))return AC(e)}var f="",d=!1,C=["{","}"];if(NN(e)&&(d=!0,C=["[","]"]),Ko(e)){var u=e.name?": "+e.name:"";f=" [Function"+u+"]"}if(T8(e)&&(f=" "+RegExp.prototype.toString.call(e)),$o(e)&&(f=" "+Date.prototype.toUTCString.call(e)),W8(e)&&(f=" "+AC(e)),s.length===0&&(!d||e.length==0))return C[0]+f+C[1];if(r<0)return T8(e)?n.stylize(RegExp.prototype.toString.call(e),"regexp"):n.stylize("[Object]","special");n.seen.push(e);var c;return d?c=iO(n,e,r,a,s):c=s.map(function(g){return jC(n,e,r,a,g,d)}),n.seen.pop(),sO(c,f,C)}function oO(n,e){if(n6(e))return n.stylize("undefined","undefined");if(Ho(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(r,"string")}if(wN(e))return n.stylize(""+e,"number");if(RC(e))return n.stylize(""+e,"boolean");if(qo(e))return n.stylize("null","null")}function AC(n){return"["+Error.prototype.toString.call(n)+"]"}function iO(n,e,r,o,i){for(var s=[],a=0,l=e.length;a-1&&(s?l=l.split(`
`).map(function(d){return" "+d}).join(`
`).substr(2):l=`
`+l.split(`
`).map(function(d){return" "+d}).join(`
-`))):l=n.stylize("[Circular]","special")),e6(a)){if(s&&i.match(/^\d+$/))return l;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=n.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=n.stylize(a,"string"))}return a+": "+l}function eO(n,e,r){var o=0,i=n.reduce(function(s,a){return o++,a.indexOf(`
+`))):l=n.stylize("[Circular]","special")),n6(a)){if(s&&i.match(/^\d+$/))return l;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=n.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=n.stylize(a,"string"))}return a+": "+l}function sO(n,e,r){var o=0,i=n.reduce(function(s,a){return o++,a.indexOf(`
`)>=0&&o++,s+a.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(e===""?"":e+`
`)+" "+n.join(`,
- `)+" "+r[1]:r[0]+e+" "+n.join(", ")+" "+r[1]}c3.types=pN();function xN(n){return Array.isArray(n)}c3.isArray=xN;function SC(n){return typeof n=="boolean"}c3.isBoolean=SC;function zo(n){return n===null}c3.isNull=zo;function tO(n){return n==null}c3.isNullOrUndefined=tO;function vN(n){return typeof n=="number"}c3.isNumber=vN;function qo(n){return typeof n=="string"}c3.isString=qo;function nO(n){return typeof n=="symbol"}c3.isSymbol=nO;function e6(n){return n===void 0}c3.isUndefined=e6;function T8(n){return J9(n)&&AC(n)==="[object RegExp]"}c3.isRegExp=T8;c3.types.isRegExp=T8;function J9(n){return typeof n=="object"&&n!==null}c3.isObject=J9;function Ho(n){return J9(n)&&AC(n)==="[object Date]"}c3.isDate=Ho;c3.types.isDate=Ho;function W8(n){return J9(n)&&(AC(n)==="[object Error]"||n instanceof Error)}c3.isError=W8;c3.types.isNativeError=W8;function $o(n){return typeof n=="function"}c3.isFunction=$o;function rO(n){return n===null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||typeof n=="symbol"||typeof n=="undefined"}c3.isPrimitive=rO;c3.isBuffer=mN();function AC(n){return Object.prototype.toString.call(n)}function jC(n){return n<10?"0"+n.toString(10):n.toString(10)}var oO=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function iO(){var n=new Date,e=[jC(n.getHours()),jC(n.getMinutes()),jC(n.getSeconds())].join(":");return[n.getDate(),oO[n.getMonth()],e].join(" ")}c3.log=function(){console.log("%s - %s",iO(),c3.format.apply(c3,arguments))};c3.inherits=yN();c3._extend=function(n,e){if(!e||!J9(e))return n;for(var r=Object.keys(e),o=r.length;o--;)n[r[o]]=e[r[o]];return n};function MN(n,e){return Object.prototype.hasOwnProperty.call(n,e)}var t6=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;c3.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(t6&&e[t6]){var r=e[t6];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,t6,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var o,i,s=new Promise(function(f,d){o=f,i=d}),a=[],l=0;l{N();"use strict";var E3=aC(),LN=q8(),u2=RC(),Q9=E3.Tap,g3=u2.format,Ko={array:m0,boolean:K4,bytes:t0,double:o4,enum:n0,error:s2,fixed:r0,float:q0,int:z0,long:R2,map:o0,null:G0,record:s2,request:s2,string:H0,union:U2},TC=/^[A-Za-z_][A-Za-z0-9_]*$/,Z2=new E3.Lcg,_4=new Q9(new LN.SlowBuffer(1024)),S3=[],I8=null;function n6(n,e){if(n instanceof i3)return n;e=r6(n,e);var r;if(typeof n=="string"){if(e.namespace&&!~n.indexOf(".")&&!IC(n)&&(n=e.namespace+"."+n),r=e.registry[n],r)return r;if(IC(n))return r=e.registry[n]=n6({type:n},e),r;throw new Error(g3("undefined type name: %s",n))}if(e.typeHook&&(r=e.typeHook(n,e))){if(!(r instanceof i3))throw new Error(g3("invalid typehook return value: %j",r));return r}if(n.logicalType&&!I8){var o=e.logicalTypes[n.logicalType];if(o){var i={};Object.keys(e.registry).forEach(function(s){i[s]=e.registry[s]});try{return new o(n,e)}catch(s){if(e.assertLogicalTypes)throw s;I8=null,e.registry=i}}}return n instanceof Array?r=new U2(n,e):r=function(s){var a=Ko[s];if(a===void 0)throw new Error(g3("unknown type: %j",s));return new a(n,e)}(n.type),r}function i3(n){var e=this._name,r=I8||this;if(I8=null,!(n===void 0||e===void 0)){var o=n[e];if(o!==void 0)throw new Error(g3("duplicate type name: %s",e));n[e]=r}}i3.__reset=function(n){_4.buf=new LN.SlowBuffer(n)};i3.prototype.createResolver=function(n,e){if(!(n instanceof i3))throw new Error(g3("not a type: %j",n));if(n instanceof V2&&!(this instanceof V2))return this.createResolver(n._underlyingType,e);e=e||{},e.registry=e.registry||{};var r,o;if(this instanceof s2&&n instanceof s2&&(o=this._name+":"+n._name,r=e.registry[o],r))return r;if(r=new _N(this),o&&(e.registry[o]=r),n instanceof U2){var i=n._types.map(function(s){return this.createResolver(s,e)},this);r._read=function(s){var a=s.readLong(),l=i[a];if(l===void 0)throw new Error(g3("invalid union index: %s",a));return i[a]._read(s)}}else this._updateResolver(r,n,e);if(!r._read)throw new Error(g3("cannot read %s as %s",n,this));return r};i3.prototype.decode=function(n,e,r){var o=new Q9(n);o.pos=e|0;var i=NN(this,o,r);return o.isValid()?{value:i,offset:o.pos}:{value:void 0,offset:-1}};i3.prototype.encode=function(n,e,r){var o=new Q9(e);return o.pos=r|0,this._write(o,n),o.isValid()?o.pos:e.length-o.pos};i3.prototype.fromBuffer=function(n,e,r){var o=new Q9(n),i=NN(this,o,e,r);if(!o.isValid())throw new Error("truncated buffer");if(!r&&o.pos",this.constructor.name);var n=JSON.parse(this.getSchema(!0));return typeof n=="object"&&(n.type=void 0),g3("<%s %j>",this.constructor.name,n)};i3.prototype._check=E3.abstractFunction;i3.prototype._copy=E3.abstractFunction;i3.prototype._match=E3.abstractFunction;i3.prototype._read=E3.abstractFunction;i3.prototype._skip=E3.abstractFunction;i3.prototype._updateResolver=E3.abstractFunction;i3.prototype._write=E3.abstractFunction;i3.prototype.compare=E3.abstractFunction;i3.prototype.random=E3.abstractFunction;function H3(){i3.call(this)}u2.inherits(H3,i3);H3.prototype._updateResolver=function(n,e){e.constructor===this.constructor&&(n._read=this._read)};H3.prototype._copy=function(n){return this._check(n,G3),n};H3.prototype.compare=E3.compare;function G0(){H3.call(this)}u2.inherits(G0,H3);G0.prototype._check=function(n,e){var r=n===null;return!r&&e&&e(S3.slice(),n,this),r};G0.prototype._read=function(){return null};G0.prototype._skip=function(){};G0.prototype._write=function(n,e){e!==null&&G3(null,e,this)};G0.prototype._match=function(){return 0};G0.prototype.compare=G0.prototype._match;G0.prototype.random=G0.prototype._read;G0.prototype.toJSON=function(){return"null"};function K4(){H3.call(this)}u2.inherits(K4,H3);K4.prototype._check=function(n,e){var r=typeof n=="boolean";return!r&&e&&e(S3.slice(),n,this),r};K4.prototype._read=function(n){return n.readBoolean()};K4.prototype._skip=function(n){n.skipBoolean()};K4.prototype._write=function(n,e){typeof e!="boolean"&&G3(null,e,this),n.writeBoolean(e)};K4.prototype._match=function(n,e){return n.matchBoolean(e)};K4.prototype.random=function(){return Z2.nextBoolean()};K4.prototype.toJSON=function(){return"boolean"};function z0(){H3.call(this)}u2.inherits(z0,H3);z0.prototype._check=function(n,e){var r=n===(n|0);return!r&&e&&e(S3.slice(),n,this),r};z0.prototype._read=function(n){return n.readInt()};z0.prototype._skip=function(n){n.skipInt()};z0.prototype._write=function(n,e){e!==(e|0)&&G3(null,e,this),n.writeInt(e)};z0.prototype._match=function(n,e){return n.matchInt(e)};z0.prototype.random=function(){return Z2.nextInt(1e3)|0};z0.prototype.toJSON=function(){return"int"};function R2(){H3.call(this)}u2.inherits(R2,H3);R2.prototype._check=function(n,e){var r=typeof n=="number"&&n%1==0&&FC(n);return!r&&e&&e(S3.slice(),n,this),r};R2.prototype._read=function(n){var e=n.readLong();if(!FC(e))throw new Error("potential precision loss");return e};R2.prototype._skip=function(n){n.skipLong()};R2.prototype._write=function(n,e){(typeof e!="number"||e%1||!FC(e))&&G3(null,e,this),n.writeLong(e)};R2.prototype._match=function(n,e){return n.matchLong(e)};R2.prototype._updateResolver=function(n,e){(e instanceof R2||e instanceof z0)&&(n._read=e._read)};R2.prototype.random=function(){return Z2.nextInt()};R2.prototype.toJSON=function(){return"long"};R2.using=function(n,e){n=n||{};var r={toBuffer:"_toBuffer",fromBuffer:"_fromBuffer",fromJSON:"_fromJSON",toJSON:"_toJSON",isValid:"_isValid",compare:"compare"},o=new w0(e);return Object.keys(r).forEach(function(i){if(n[i]===void 0)throw new Error(g3("missing method implementation: %s",i));o[r[i]]=n[i]}),o};function q0(){H3.call(this)}u2.inherits(q0,H3);q0.prototype._check=function(n,e){var r=typeof n=="number";return!r&&e&&e(S3.slice(),n,this),r};q0.prototype._read=function(n){return n.readFloat()};q0.prototype._skip=function(n){n.skipFloat()};q0.prototype._write=function(n,e){typeof e!="number"&&G3(null,e,this),n.writeFloat(e)};q0.prototype._match=function(n,e){return n.matchFloat(e)};q0.prototype._updateResolver=function(n,e){(e instanceof q0||e instanceof R2||e instanceof z0)&&(n._read=e._read)};q0.prototype.random=function(){return Z2.nextFloat(1e3)};q0.prototype.toJSON=function(){return"float"};function o4(){H3.call(this)}u2.inherits(o4,H3);o4.prototype._check=function(n,e){var r=typeof n=="number";return!r&&e&&e(S3.slice(),n,this),r};o4.prototype._read=function(n){return n.readDouble()};o4.prototype._skip=function(n){n.skipDouble()};o4.prototype._write=function(n,e){typeof e!="number"&&G3(null,e,this),n.writeDouble(e)};o4.prototype._match=function(n,e){return n.matchDouble(e)};o4.prototype._updateResolver=function(n,e){(e instanceof o4||e instanceof q0||e instanceof R2||e instanceof z0)&&(n._read=e._read)};o4.prototype.random=function(){return Z2.nextFloat()};o4.prototype.toJSON=function(){return"double"};function H0(){H3.call(this)}u2.inherits(H0,H3);H0.prototype._check=function(n,e){var r=typeof n=="string";return!r&&e&&e(S3.slice(),n,this),r};H0.prototype._read=function(n){return n.readString()};H0.prototype._skip=function(n){n.skipString()};H0.prototype._write=function(n,e){typeof e!="string"&&G3(null,e,this),n.writeString(e)};H0.prototype._match=function(n,e){return n.matchString(e)};H0.prototype._updateResolver=function(n,e){(e instanceof H0||e instanceof t0)&&(n._read=this._read)};H0.prototype.random=function(){return Z2.nextString(Z2.nextInt(32))};H0.prototype.toJSON=function(){return"string"};function t0(){H3.call(this)}u2.inherits(t0,H3);t0.prototype._check=function(n,e){var r=T.isBuffer(n);return!r&&e&&e(S3.slice(),n,this),r};t0.prototype._read=function(n){return n.readBytes()};t0.prototype._skip=function(n){n.skipBytes()};t0.prototype._write=function(n,e){T.isBuffer(e)||G3(null,e,this),n.writeBytes(e)};t0.prototype._match=function(n,e){return n.matchBytes(e)};t0.prototype._updateResolver=H0.prototype._updateResolver;t0.prototype._copy=function(n,e){var r;switch((e&&e.coerce)|0){case 3:return this._check(n,G3),n.toString("binary");case 2:if(typeof n!="string")throw new Error(g3("cannot coerce to buffer: %j",n));return r=new T(n,"binary"),this._check(r,G3),r;case 1:if(!n||n.type!=="Buffer"||!(n.data instanceof Array))throw new Error(g3("cannot coerce to buffer: %j",n));return r=new T(n.data),this._check(r,G3),r;default:return this._check(n,G3),new T(n)}};t0.prototype.compare=T.compare;t0.prototype.random=function(){return Z2.nextBuffer(Z2.nextInt(32))};t0.prototype.toJSON=function(){return"bytes"};function U2(n,e){if(!(n instanceof Array))throw new Error(g3("non-array union schema: %j",n));if(!n.length)throw new Error("empty union");e=r6(n,e),i3.call(this),this._types=n.map(function(r){return n6(r,e)}),this._indices={},this._types.forEach(function(r,o){if(r instanceof U2)throw new Error("unions cannot be directly nested");var i=r._name||WC(r);if(this._indices[i]!==void 0)throw new Error(g3("duplicate union name: %j",i));this._indices[i]=o},this),this._constructors=this._types.map(function(r){var o=r._name||WC(r);if(o==="null")return null;var i;return~o.indexOf(".")?i="this['"+o+"'] = val;":i="this."+o+" = val;",new Function("val",i)})}u2.inherits(U2,i3);U2.prototype._check=function(n,e){var r=!1;if(n===null)r=this._indices.null!==void 0;else if(typeof n=="object"){var o=Object.keys(n);if(o.length===1){var i=o[0],s=this._indices[i];if(s!==void 0)return S3.push(i),r=this._types[s]._check(n[i],e),S3.pop(),r}}return!r&&e&&e(S3.slice(),n,this),r};U2.prototype._read=function(n){var e=n.readLong(),r=this._constructors[e];if(r)return new r(this._types[e]._read(n));if(r===null)return null;throw new Error(g3("invalid union index: %s",e))};U2.prototype._skip=function(n){this._types[n.readLong()]._skip(n)};U2.prototype._write=function(n,e){var r,o,i;e===null?(r=this._indices.null,r===void 0&&G3(null,e,this),n.writeLong(r)):(o=Object.keys(e),o.length===1&&(i=o[0],r=this._indices[i]),r===void 0&&G3(null,e,this),n.writeLong(r),this._types[r]._write(n,e[i]))};U2.prototype._match=function(n,e){var r=n.readLong(),o=e.readLong();return r===o?this._types[r]._match(n,e):r{N();"use strict";var S3=dC(),EN=H8(),c2=IC(),Q9=S3.Tap,g3=c2.format,Yo={array:y0,boolean:Y4,bytes:n0,double:s4,enum:r0,error:a2,fixed:o0,float:K0,int:$0,long:T2,map:i0,null:H0,record:a2,request:a2,string:Y0,union:V2},DC=/^[A-Za-z_][A-Za-z0-9_]*$/,U2=new S3.Lcg,_4=new Q9(new EN.SlowBuffer(1024)),A3=[],I8=null;function o6(n,e){if(n instanceof i3)return n;e=i6(n,e);var r;if(typeof n=="string"){if(e.namespace&&!~n.indexOf(".")&&!PC(n)&&(n=e.namespace+"."+n),r=e.registry[n],r)return r;if(PC(n))return r=e.registry[n]=o6({type:n},e),r;throw new Error(g3("undefined type name: %s",n))}if(e.typeHook&&(r=e.typeHook(n,e))){if(!(r instanceof i3))throw new Error(g3("invalid typehook return value: %j",r));return r}if(n.logicalType&&!I8){var o=e.logicalTypes[n.logicalType];if(o){var i={};Object.keys(e.registry).forEach(function(s){i[s]=e.registry[s]});try{return new o(n,e)}catch(s){if(e.assertLogicalTypes)throw s;I8=null,e.registry=i}}}return n instanceof Array?r=new V2(n,e):r=function(s){var a=Yo[s];if(a===void 0)throw new Error(g3("unknown type: %j",s));return new a(n,e)}(n.type),r}function i3(n){var e=this._name,r=I8||this;if(I8=null,!(n===void 0||e===void 0)){var o=n[e];if(o!==void 0)throw new Error(g3("duplicate type name: %s",e));n[e]=r}}i3.__reset=function(n){_4.buf=new EN.SlowBuffer(n)};i3.prototype.createResolver=function(n,e){if(!(n instanceof i3))throw new Error(g3("not a type: %j",n));if(n instanceof G2&&!(this instanceof G2))return this.createResolver(n._underlyingType,e);e=e||{},e.registry=e.registry||{};var r,o;if(this instanceof a2&&n instanceof a2&&(o=this._name+":"+n._name,r=e.registry[o],r))return r;if(r=new SN(this),o&&(e.registry[o]=r),n instanceof V2){var i=n._types.map(function(s){return this.createResolver(s,e)},this);r._read=function(s){var a=s.readLong(),l=i[a];if(l===void 0)throw new Error(g3("invalid union index: %s",a));return i[a]._read(s)}}else this._updateResolver(r,n,e);if(!r._read)throw new Error(g3("cannot read %s as %s",n,this));return r};i3.prototype.decode=function(n,e,r){var o=new Q9(n);o.pos=e|0;var i=AN(this,o,r);return o.isValid()?{value:i,offset:o.pos}:{value:void 0,offset:-1}};i3.prototype.encode=function(n,e,r){var o=new Q9(e);return o.pos=r|0,this._write(o,n),o.isValid()?o.pos:e.length-o.pos};i3.prototype.fromBuffer=function(n,e,r){var o=new Q9(n),i=AN(this,o,e,r);if(!o.isValid())throw new Error("truncated buffer");if(!r&&o.pos",this.constructor.name);var n=JSON.parse(this.getSchema(!0));return typeof n=="object"&&(n.type=void 0),g3("<%s %j>",this.constructor.name,n)};i3.prototype._check=S3.abstractFunction;i3.prototype._copy=S3.abstractFunction;i3.prototype._match=S3.abstractFunction;i3.prototype._read=S3.abstractFunction;i3.prototype._skip=S3.abstractFunction;i3.prototype._updateResolver=S3.abstractFunction;i3.prototype._write=S3.abstractFunction;i3.prototype.compare=S3.abstractFunction;i3.prototype.random=S3.abstractFunction;function $3(){i3.call(this)}c2.inherits($3,i3);$3.prototype._updateResolver=function(n,e){e.constructor===this.constructor&&(n._read=this._read)};$3.prototype._copy=function(n){return this._check(n,z3),n};$3.prototype.compare=S3.compare;function H0(){$3.call(this)}c2.inherits(H0,$3);H0.prototype._check=function(n,e){var r=n===null;return!r&&e&&e(A3.slice(),n,this),r};H0.prototype._read=function(){return null};H0.prototype._skip=function(){};H0.prototype._write=function(n,e){e!==null&&z3(null,e,this)};H0.prototype._match=function(){return 0};H0.prototype.compare=H0.prototype._match;H0.prototype.random=H0.prototype._read;H0.prototype.toJSON=function(){return"null"};function Y4(){$3.call(this)}c2.inherits(Y4,$3);Y4.prototype._check=function(n,e){var r=typeof n=="boolean";return!r&&e&&e(A3.slice(),n,this),r};Y4.prototype._read=function(n){return n.readBoolean()};Y4.prototype._skip=function(n){n.skipBoolean()};Y4.prototype._write=function(n,e){typeof e!="boolean"&&z3(null,e,this),n.writeBoolean(e)};Y4.prototype._match=function(n,e){return n.matchBoolean(e)};Y4.prototype.random=function(){return U2.nextBoolean()};Y4.prototype.toJSON=function(){return"boolean"};function $0(){$3.call(this)}c2.inherits($0,$3);$0.prototype._check=function(n,e){var r=n===(n|0);return!r&&e&&e(A3.slice(),n,this),r};$0.prototype._read=function(n){return n.readInt()};$0.prototype._skip=function(n){n.skipInt()};$0.prototype._write=function(n,e){e!==(e|0)&&z3(null,e,this),n.writeInt(e)};$0.prototype._match=function(n,e){return n.matchInt(e)};$0.prototype.random=function(){return U2.nextInt(1e3)|0};$0.prototype.toJSON=function(){return"int"};function T2(){$3.call(this)}c2.inherits(T2,$3);T2.prototype._check=function(n,e){var r=typeof n=="number"&&n%1==0&&OC(n);return!r&&e&&e(A3.slice(),n,this),r};T2.prototype._read=function(n){var e=n.readLong();if(!OC(e))throw new Error("potential precision loss");return e};T2.prototype._skip=function(n){n.skipLong()};T2.prototype._write=function(n,e){(typeof e!="number"||e%1||!OC(e))&&z3(null,e,this),n.writeLong(e)};T2.prototype._match=function(n,e){return n.matchLong(e)};T2.prototype._updateResolver=function(n,e){(e instanceof T2||e instanceof $0)&&(n._read=e._read)};T2.prototype.random=function(){return U2.nextInt()};T2.prototype.toJSON=function(){return"long"};T2.using=function(n,e){n=n||{};var r={toBuffer:"_toBuffer",fromBuffer:"_fromBuffer",fromJSON:"_fromJSON",toJSON:"_toJSON",isValid:"_isValid",compare:"compare"},o=new E0(e);return Object.keys(r).forEach(function(i){if(n[i]===void 0)throw new Error(g3("missing method implementation: %s",i));o[r[i]]=n[i]}),o};function K0(){$3.call(this)}c2.inherits(K0,$3);K0.prototype._check=function(n,e){var r=typeof n=="number";return!r&&e&&e(A3.slice(),n,this),r};K0.prototype._read=function(n){return n.readFloat()};K0.prototype._skip=function(n){n.skipFloat()};K0.prototype._write=function(n,e){typeof e!="number"&&z3(null,e,this),n.writeFloat(e)};K0.prototype._match=function(n,e){return n.matchFloat(e)};K0.prototype._updateResolver=function(n,e){(e instanceof K0||e instanceof T2||e instanceof $0)&&(n._read=e._read)};K0.prototype.random=function(){return U2.nextFloat(1e3)};K0.prototype.toJSON=function(){return"float"};function s4(){$3.call(this)}c2.inherits(s4,$3);s4.prototype._check=function(n,e){var r=typeof n=="number";return!r&&e&&e(A3.slice(),n,this),r};s4.prototype._read=function(n){return n.readDouble()};s4.prototype._skip=function(n){n.skipDouble()};s4.prototype._write=function(n,e){typeof e!="number"&&z3(null,e,this),n.writeDouble(e)};s4.prototype._match=function(n,e){return n.matchDouble(e)};s4.prototype._updateResolver=function(n,e){(e instanceof s4||e instanceof K0||e instanceof T2||e instanceof $0)&&(n._read=e._read)};s4.prototype.random=function(){return U2.nextFloat()};s4.prototype.toJSON=function(){return"double"};function Y0(){$3.call(this)}c2.inherits(Y0,$3);Y0.prototype._check=function(n,e){var r=typeof n=="string";return!r&&e&&e(A3.slice(),n,this),r};Y0.prototype._read=function(n){return n.readString()};Y0.prototype._skip=function(n){n.skipString()};Y0.prototype._write=function(n,e){typeof e!="string"&&z3(null,e,this),n.writeString(e)};Y0.prototype._match=function(n,e){return n.matchString(e)};Y0.prototype._updateResolver=function(n,e){(e instanceof Y0||e instanceof n0)&&(n._read=this._read)};Y0.prototype.random=function(){return U2.nextString(U2.nextInt(32))};Y0.prototype.toJSON=function(){return"string"};function n0(){$3.call(this)}c2.inherits(n0,$3);n0.prototype._check=function(n,e){var r=R.isBuffer(n);return!r&&e&&e(A3.slice(),n,this),r};n0.prototype._read=function(n){return n.readBytes()};n0.prototype._skip=function(n){n.skipBytes()};n0.prototype._write=function(n,e){R.isBuffer(e)||z3(null,e,this),n.writeBytes(e)};n0.prototype._match=function(n,e){return n.matchBytes(e)};n0.prototype._updateResolver=Y0.prototype._updateResolver;n0.prototype._copy=function(n,e){var r;switch((e&&e.coerce)|0){case 3:return this._check(n,z3),n.toString("binary");case 2:if(typeof n!="string")throw new Error(g3("cannot coerce to buffer: %j",n));return r=new R(n,"binary"),this._check(r,z3),r;case 1:if(!n||n.type!=="Buffer"||!(n.data instanceof Array))throw new Error(g3("cannot coerce to buffer: %j",n));return r=new R(n.data),this._check(r,z3),r;default:return this._check(n,z3),new R(n)}};n0.prototype.compare=R.compare;n0.prototype.random=function(){return U2.nextBuffer(U2.nextInt(32))};n0.prototype.toJSON=function(){return"bytes"};function V2(n,e){if(!(n instanceof Array))throw new Error(g3("non-array union schema: %j",n));if(!n.length)throw new Error("empty union");e=i6(n,e),i3.call(this),this._types=n.map(function(r){return o6(r,e)}),this._indices={},this._types.forEach(function(r,o){if(r instanceof V2)throw new Error("unions cannot be directly nested");var i=r._name||FC(r);if(this._indices[i]!==void 0)throw new Error(g3("duplicate union name: %j",i));this._indices[i]=o},this),this._constructors=this._types.map(function(r){var o=r._name||FC(r);if(o==="null")return null;var i;return~o.indexOf(".")?i="this['"+o+"'] = val;":i="this."+o+" = val;",new Function("val",i)})}c2.inherits(V2,i3);V2.prototype._check=function(n,e){var r=!1;if(n===null)r=this._indices.null!==void 0;else if(typeof n=="object"){var o=Object.keys(n);if(o.length===1){var i=o[0],s=this._indices[i];if(s!==void 0)return A3.push(i),r=this._types[s]._check(n[i],e),A3.pop(),r}}return!r&&e&&e(A3.slice(),n,this),r};V2.prototype._read=function(n){var e=n.readLong(),r=this._constructors[e];if(r)return new r(this._types[e]._read(n));if(r===null)return null;throw new Error(g3("invalid union index: %s",e))};V2.prototype._skip=function(n){this._types[n.readLong()]._skip(n)};V2.prototype._write=function(n,e){var r,o,i;e===null?(r=this._indices.null,r===void 0&&z3(null,e,this),n.writeLong(r)):(o=Object.keys(e),o.length===1&&(i=o[0],r=this._indices[i]),r===void 0&&z3(null,e,this),n.writeLong(r),this._types[r]._write(n,e[i]))};V2.prototype._match=function(n,e){var r=n.readLong(),o=e.readLong();return r===o?this._types[r]._match(n,e):r component higher in the tree to provide a loading
`),r+=`
);
}
-`}return r+="};",new Function(n.join(),r).apply(void 0,e)};s2.prototype._createReader=function(){var n=$1(this._name),e=[],r=[this._constructor],o,i;for(o=0,i=this._fields.length;o1)throw new Error(g3("multiple matches for %s",C.name));if(g.length)u=g[0],l[u]={resolver:C._type.createResolver(s[u]._type,r),name:C._name},a.push(C._name);else{if(C.getDefault()===void 0)throw new Error(g3("no match for default-less %s",C.name));a.push("undefined")}}var _=-1;for(f=i.length;f&&l[i[--f]._name]===void 0;)_=f;var v=$1(this._name),m=[v],y=[this._constructor],k=" return function read"+v+`(tap,lazy) {
+`);return e+="}",new Function(n.join(),e).apply(void 0,r)};a2.prototype._updateResolver=function(n,e,r){if(!~Jo(this).indexOf(e._name))throw new Error(g3("no alias for %s in %s",e._name,this._name));var o=this._fields,i=e._fields,s=S3.toMap(i,function(x){return x._name}),a=[],l={},f,d,C,u,c,g;for(f=0;f1)throw new Error(g3("multiple matches for %s",C.name));if(g.length)u=g[0],l[u]={resolver:C._type.createResolver(s[u]._type,r),name:C._name},a.push(C._name);else{if(C.getDefault()===void 0)throw new Error(g3("no match for default-less %s",C.name));a.push("undefined")}}var _=-1;for(f=i.length;f&&l[i[--f]._name]===void 0;)_=f;var v=Y1(this._name),m=[v],y=[this._constructor],k=" return function read"+v+`(tap,lazy) {
`;for(f=0;f=_?" ":" ",l[u]===void 0?(m.push("t"+f),y.push(C._type),k+="t"+f+`._skip(tap);
`):(m.push("t"+f),y.push(l[u].resolver),k+="var "+l[u].name+" = ",k+="t"+f+`._read(tap);
`);~_&&(k+=` }
`),k+=" return new "+v+"("+a.join()+`);
-};`,n._read=new Function(m.join(),k).apply(void 0,y)};s2.prototype._match=function(n,e){var r=this._fields,o,i,s,a,l;for(o=0,i=r.length;o",this._name)};function _N(n){this._readerType=n,this._items=null,this._read=null,this._size=0,this._symbols=null,this._values=null}_N.prototype.inspect=function(){return""};function NN(n,e,r,o){if(r){if(r._readerType!==n)throw new Error("invalid resolver");return r._read(e,o)}else return n._read(e)}function r6(n,e){if(n===null)throw new Error('invalid type: null (did you mean "null"?)');return e=e||{},e.registry=e.registry||{},e.namespace=n.namespace||e.namespace,e.logicalTypes=e.logicalTypes||{},e}function Yo(n,e,r){e=n.namespace||e,r=r||"name";var o=n[r];if(!o)throw new Error(g3("missing %s property in schema: %j",r,n));return{name:i(o),aliases:n.aliases?n.aliases.map(i):[]};function i(s){!~s.indexOf(".")&&e&&(s=e+"."+s);var a=$1(s);if(IC(a))throw new Error(g3("cannot rename primitive type: %j",a));return s.split(".").forEach(function(l){if(!TC.test(l))throw new Error(g3("invalid name: %j",s))}),s}}function $1(n){var e=n.split(".");return e[e.length-1]}function Xo(n){var e=[n._name],r=n._aliases,o,i;for(o=0,i=r.length;o=-9007199254740990&&n<=9007199254740990}function G3(n,e,r){throw new Error(g3("invalid %s: %j",r,e))}bN.exports={createType:n6,resolveNames:Yo,stringify:wN,types:function(){var n={Type:i3,LogicalType:V2},e=Object.keys(Ko),r,o,i;for(r=0,o=e.length;r{N();(function(n,e){typeof PC=="object"&&typeof BC!="undefined"?BC.exports=e():typeof define=="function"&&define.amd?define("underscore",e):(n=typeof globalThis!="undefined"?globalThis:n||self,function(){var r=n._,o=n._=e();o.noConflict=function(){return n._=r,o}}())})(PC,function(){var n="1.13.1",e=typeof self=="object"&&self.self===self&&self||typeof window=="object"&&window.global===window&&window||Function("return this")()||{},r=Array.prototype,o=Object.prototype,i=typeof Symbol!="undefined"?Symbol.prototype:null,s=r.push,a=r.slice,l=o.toString,f=o.hasOwnProperty,d=typeof ArrayBuffer!="undefined",C=typeof DataView!="undefined",u=Array.isArray,c=Object.keys,g=Object.create,_=d&&ArrayBuffer.isView,v=isNaN,m=isFinite,y=!{toString:null}.propertyIsEnumerable("toString"),k=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1;function M(p,h){return h=h==null?p.length-1:+h,function(){for(var L=Math.max(arguments.length-h,0),w=Array(L),S=0;S=0&&L<=x}}function ru(p){return function(h){return h==null?void 0:h[p]}}var B8=ru("byteLength"),Ww=nu(B8),Iw=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function Dw(p){return _?_(p)&&!P8(p):Ww(p)&&Iw.test(l.call(p))}var ou=d?Dw:tu(!1),i0=ru("length");function Fw(p){for(var h={},L=p.length,w=0;w":">",'"':""","'":"'","`":"`"},eb=Mu(Lu),tb=cu(Lu),nb=Mu(tb),rb=N3.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Li=/(.)^/,ob={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ib=/\\|'|\r|\n|\u2028|\u2029/g;function sb(p){return"\\"+ob[p]}var ab=/^\s*(\w|\$)+\s*$/;function lb(p,h,L){!h&&L&&(h=L),h=hu({},h,N3.templateSettings);var w=RegExp([(h.escape||Li).source,(h.interpolate||Li).source,(h.evaluate||Li).source].join("|")+"|$","g"),S=0,b="__p+='";p.replace(w,function(t3,p2,z2,Gu,zu){return b+=p.slice(S,zu).replace(ib,sb),S=zu+t3.length,p2?b+=`'+
-((__t=(`+p2+`))==null?'':_.escape(__t))+
-'`:z2?b+=`'+
-((__t=(`+z2+`))==null?'':__t)+
-'`:Gu&&(b+=`';
-`+Gu+`
+};`,n._read=new Function(m.join(),k).apply(void 0,y)};a2.prototype._match=function(n,e){var r=this._fields,o,i,s,a,l;for(o=0,i=r.length;o",this._name)};function SN(n){this._readerType=n,this._items=null,this._read=null,this._size=0,this._symbols=null,this._values=null}SN.prototype.inspect=function(){return""};function AN(n,e,r,o){if(r){if(r._readerType!==n)throw new Error("invalid resolver");return r._read(e,o)}else return n._read(e)}function i6(n,e){if(n===null)throw new Error('invalid type: null (did you mean "null"?)');return e=e||{},e.registry=e.registry||{},e.namespace=n.namespace||e.namespace,e.logicalTypes=e.logicalTypes||{},e}function Xo(n,e,r){e=n.namespace||e,r=r||"name";var o=n[r];if(!o)throw new Error(g3("missing %s property in schema: %j",r,n));return{name:i(o),aliases:n.aliases?n.aliases.map(i):[]};function i(s){!~s.indexOf(".")&&e&&(s=e+"."+s);var a=Y1(s);if(PC(a))throw new Error(g3("cannot rename primitive type: %j",a));return s.split(".").forEach(function(l){if(!DC.test(l))throw new Error(g3("invalid name: %j",s))}),s}}function Y1(n){var e=n.split(".");return e[e.length-1]}function Jo(n){var e=[n._name],r=n._aliases,o,i;for(o=0,i=r.length;o=-9007199254740990&&n<=9007199254740990}function z3(n,e,r){throw new Error(g3("invalid %s: %j",r,e))}RN.exports={createType:o6,resolveNames:Xo,stringify:jN,types:function(){var n={Type:i3,LogicalType:G2},e=Object.keys(Yo),r,o,i;for(r=0,o=e.length;r{N();(function(n,e){typeof ZC=="object"&&typeof UC!="undefined"?UC.exports=e():typeof define=="function"&&define.amd?define("underscore",e):(n=typeof globalThis!="undefined"?globalThis:n||self,function(){var r=n._,o=n._=e();o.noConflict=function(){return n._=r,o}}())})(ZC,function(){var n="1.13.1",e=typeof self=="object"&&self.self===self&&self||typeof window=="object"&&window.global===window&&window||Function("return this")()||{},r=Array.prototype,o=Object.prototype,i=typeof Symbol!="undefined"?Symbol.prototype:null,s=r.push,a=r.slice,l=o.toString,f=o.hasOwnProperty,d=typeof ArrayBuffer!="undefined",C=typeof DataView!="undefined",u=Array.isArray,c=Object.keys,g=Object.create,_=d&&ArrayBuffer.isView,v=isNaN,m=isFinite,y=!{toString:null}.propertyIsEnumerable("toString"),k=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1;function M(p,h){return h=h==null?p.length-1:+h,function(){for(var L=Math.max(arguments.length-h,0),w=Array(L),S=0;S=0&&L<=x}}function lu(p){return function(h){return h==null?void 0:h[p]}}var O8=lu("byteLength"),Ow=au(O8),Zw=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function Uw(p){return _?_(p)&&!B8(p):Ow(p)&&Zw.test(l.call(p))}var fu=d?Uw:su(!1),s0=lu("length");function Vw(p){for(var h={},L=p.length,w=0;w":">",'"':""","'":"'","`":"`"},sb=bu(Eu),ab=gu(Eu),lb=bu(ab),fb=w3.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},wi=/(.)^/,db={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Cb=/\\|'|\r|\n|\u2028|\u2029/g;function ub(p){return"\\"+db[p]}var cb=/^\s*(\w|\$)+\s*$/;function pb(p,h,L){!h&&L&&(h=L),h=xu({},h,w3.templateSettings);var w=RegExp([(h.escape||wi).source,(h.interpolate||wi).source,(h.evaluate||wi).source].join("|")+"|$","g"),S=0,b="__p+='";p.replace(w,function(t3,h2,q2,Ku,Yu){return b+=p.slice(S,Yu).replace(Cb,ub),S=Yu+t3.length,h2?b+=`'+
+((__t=(`+h2+`))==null?'':_.escape(__t))+
+'`:q2?b+=`'+
+((__t=(`+q2+`))==null?'':__t)+
+'`:Ku&&(b+=`';
+`+Ku+`
__p+='`),t3}),b+=`';
-`;var D=h.variable;if(D){if(!ab.test(D))throw new Error("variable is not a bare identifier: "+D)}else b=`with(obj||{}){
+`;var D=h.variable;if(D){if(!cb.test(D))throw new Error("variable is not a bare identifier: "+D)}else b=`with(obj||{}){
`+b+`}
`,D="obj";b=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
`+b+`return __p;
-`;var U;try{U=new Function(D,"_",b)}catch(t3){throw t3.source=b,t3}var s3=function(t3){return U.call(this,t3,N3)};return s3.source="function("+D+`){
-`+b+"}",s3}function fb(p,h,L){h=s7(h);var w=h.length;if(!w)return G2(L)?L.call(p):L;for(var S=0;S1)J1(U,h-1,L,w),S=w.length;else for(var s3=0,t3=U.length;s3h?(w&&(clearTimeout(w),w=null),U=p2,D=p.apply(S,b),w||(S=b=null)):!w&&L.trailing!==!1&&(w=setTimeout(s3,z2)),D};return t3.cancel=function(){clearTimeout(w),U=0,w=S=b=null},t3}function yb(p,h,L){var w,S,b,D,U,s3=function(){var p2=f7()-S;h>p2?w=setTimeout(s3,h-p2):(w=null,L||(D=p.apply(U,b)),w||(b=U=null))},t3=M(function(p2){return U=this,b=p2,S=f7(),w||(w=setTimeout(s3,h),L&&(D=p.apply(U,b))),D});return t3.cancel=function(){clearTimeout(w),w=b=U=null},t3}function gb(p,h){return s6(h,p)}function _i(p){return function(){return!p.apply(this,arguments)}}function kb(){var p=arguments,h=p.length-1;return function(){for(var L=h,w=p[h].apply(this,arguments);L--;)w=p[L].call(this,w);return w}}function xb(p,h){return function(){if(--p<1)return h.apply(this,arguments)}}function bu(p,h){var L;return function(){return--p>0&&(L=h.apply(this,arguments)),p<=1&&(h=null),L}}var vb=s6(bu,2);function Eu(p,h,L){h=s0(h,L);for(var w=c2(p),S,b=0,D=w.length;b0?0:S-1;b>=0&&b0?D=b>=0?b:Math.max(b+U,D):U=b>=0?Math.min(b+1,U):b+U+1;else if(L&&b&&U)return b=L(w,S),w[b]===S?b:-1;if(S!==S)return b=h(a.call(w,D,U),eu),b>=0?b+D:-1;for(b=p>0?D:U-1;b>=0&&b0?0:U-1;for(b||(S=L[D?D[s3]:s3],s3+=p);s3>=0&&s3=3;return h(L,l7(w,b,4),S,D)}}var bi=Wu(1),Iu=Wu(-1);function a6(p,h,L){var w=[];return h=s0(h,L),w4(p,function(S,b,D){h(S,b,D)&&w.push(S)}),w}function _b(p,h,L){return a6(p,_i(s0(h)),L)}function Du(p,h,L){h=s0(h,L);for(var w=!a0(p)&&c2(p),S=(w||p).length,b=0;b=0}var Nb=M(function(p,h,L){var w,S;return G2(h)?S=h:(h=s7(h),w=h.slice(0,-1),h=h[h.length-1]),Q1(p,function(b){var D=S;if(!D){if(w&&w.length&&(b=gi(b,w)),b==null)return;D=b[h]}return D==null?D:D.apply(b,L)})});function Ei(p,h){return Q1(p,xi(h))}function wb(p,h){return a6(p,a7(h))}function Pu(p,h,L){var w=-1/0,S=-1/0,b,D;if(h==null||typeof h=="number"&&typeof p[0]!="object"&&p!=null){p=a0(p)?p:X1(p);for(var U=0,s3=p.length;Uw&&(w=b)}else h=s0(h,L),w4(p,function(t3,p2,z2){D=h(t3,p2,z2),(D>S||D===-1/0&&w===-1/0)&&(w=t3,S=D)});return w}function bb(p,h,L){var w=1/0,S=1/0,b,D;if(h==null||typeof h=="number"&&typeof p[0]!="object"&&p!=null){p=a0(p)?p:X1(p);for(var U=0,s3=p.length;UU||D===void 0)return 1;if(D1&&(w=l7(w,h[1])),h=i7(p)):(w=Fb,h=J1(h,!1,!1),p=Object(p));for(var S=0,b=h.length;S