@claudecam/dashboard 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ var Xr=(Pt=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(Pt,{get:(vt,te)=>(typeof require<"u"?require:vt)[te]}):Pt)(function(Pt){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+Pt+'" is not supported')}),zn=(Pt,vt)=>()=>(vt||Pt((vt={exports:{}}).exports,vt),vt.exports),qn=zn((Pt,vt)=>{var te=(()=>{var ee=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<"u"&&(ee=ee||__filename),function(Je={}){var g=Je,Ke,re;g.ready=new Promise((t,e)=>{Ke=t,re=e}),(function(t){t.Id=t.Id||[],t.Id.push(function(){t.MakeSWCanvasSurface=function(e){var r=e,a=typeof OffscreenCanvas<"u"&&r instanceof OffscreenCanvas;if(!(typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement||a||(r=document.getElementById(e),r)))throw"Canvas with id "+e+" was not found";return(e=t.MakeSurface(r.width,r.height))&&(e.ie=r),e},t.MakeCanvasSurface||(t.MakeCanvasSurface=t.MakeSWCanvasSurface),t.MakeSurface=function(e,r){var a={width:e,height:r,colorType:t.ColorType.RGBA_8888,alphaType:t.AlphaType.Unpremul,colorSpace:t.ColorSpace.SRGB},o=e*r*4,s=t._malloc(o);return(a=t.Surface._makeRasterDirect(a,s,4*e))&&(a.ie=null,a.Pe=e,a.Me=r,a.Ne=o,a.re=s,a.getCanvas().clear(t.TRANSPARENT)),a},t.MakeRasterDirectSurface=function(e,r,a){return t.Surface._makeRasterDirect(e,r.byteOffset,a)},t.Surface.prototype.flush=function(e){if(t.Fd(this.Ed),this._flush(),this.ie){var r=new Uint8ClampedArray(t.HEAPU8.buffer,this.re,this.Ne);r=new ImageData(r,this.Pe,this.Me),e?this.ie.getContext("2d").putImageData(r,0,0,e[0],e[1],e[2]-e[0],e[3]-e[1]):this.ie.getContext("2d").putImageData(r,0,0)}},t.Surface.prototype.dispose=function(){this.re&&t._free(this.re),this.delete()},t.Fd=t.Fd||function(){},t.je=t.je||function(){return null}})})(g),(function(t){t.Id=t.Id||[],t.Id.push(function(){function e(l,h,b){return l&&l.hasOwnProperty(h)?l[h]:b}function r(l){var h=Gt(rt);return rt[h]=l,h}function a(l){return l.naturalHeight||l.videoHeight||l.displayHeight||l.height}function o(l){return l.naturalWidth||l.videoWidth||l.displayWidth||l.width}function s(l,h,b,_){return l.bindTexture(l.TEXTURE_2D,h),_||b.alphaType!==t.AlphaType.Premul||l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),h}function c(l,h,b){b||h.alphaType!==t.AlphaType.Premul||l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),l.bindTexture(l.TEXTURE_2D,null)}t.GetWebGLContext=function(l,h){if(!l)throw"null canvas passed into makeWebGLContext";var b={alpha:e(h,"alpha",1),depth:e(h,"depth",1),stencil:e(h,"stencil",8),antialias:e(h,"antialias",0),premultipliedAlpha:e(h,"premultipliedAlpha",1),preserveDrawingBuffer:e(h,"preserveDrawingBuffer",0),preferLowPowerToHighPerformance:e(h,"preferLowPowerToHighPerformance",0),failIfMajorPerformanceCaveat:e(h,"failIfMajorPerformanceCaveat",0),enableExtensionsByDefault:e(h,"enableExtensionsByDefault",1),explicitSwapControl:e(h,"explicitSwapControl",0),renderViaOffscreenBackBuffer:e(h,"renderViaOffscreenBackBuffer",0)};if(b.majorVersion=h&&h.majorVersion?h.majorVersion:typeof WebGL2RenderingContext<"u"?2:1,b.explicitSwapControl)throw"explicitSwapControl is not supported";return l=Tn(l,b),l?(Mr(l),R.Qd.getExtension("WEBGL_debug_renderer_info"),l):0},t.deleteContext=function(l){R===mt[l]&&(R=null),typeof JSEvents=="object"&&JSEvents.tf(mt[l].Qd.canvas),mt[l]&&mt[l].Qd.canvas&&(mt[l].Qd.canvas.Ke=void 0),mt[l]=null},t._setTextureCleanup({deleteTexture:function(l,h){var b=rt[h];b&&mt[l].Qd.deleteTexture(b),rt[h]=null}}),t.MakeWebGLContext=function(l){if(!this.Fd(l))return null;var h=this._MakeGrContext();if(!h)return null;h.Ed=l;var b=h.delete.bind(h);return h.delete=(function(){t.Fd(this.Ed),b()}).bind(h),R.te=h},t.MakeGrContext=t.MakeWebGLContext,t.GrDirectContext.prototype.getResourceCacheLimitBytes=function(){t.Fd(this.Ed),this._getResourceCacheLimitBytes()},t.GrDirectContext.prototype.getResourceCacheUsageBytes=function(){t.Fd(this.Ed),this._getResourceCacheUsageBytes()},t.GrDirectContext.prototype.releaseResourcesAndAbandonContext=function(){t.Fd(this.Ed),this._releaseResourcesAndAbandonContext()},t.GrDirectContext.prototype.setResourceCacheLimitBytes=function(l){t.Fd(this.Ed),this._setResourceCacheLimitBytes(l)},t.MakeOnScreenGLSurface=function(l,h,b,_,A,C){return!this.Fd(l.Ed)||(h=A===void 0||C===void 0?this._MakeOnScreenGLSurface(l,h,b,_):this._MakeOnScreenGLSurface(l,h,b,_,A,C),!h)?null:(h.Ed=l.Ed,h)},t.MakeRenderTarget=function(){var l=arguments[0];if(!this.Fd(l.Ed))return null;if(arguments.length===3){var h=this._MakeRenderTargetWH(l,arguments[1],arguments[2]);if(!h)return null}else if(arguments.length===2){if(h=this._MakeRenderTargetII(l,arguments[1]),!h)return null}else return null;return h.Ed=l.Ed,h},t.MakeWebGLCanvasSurface=function(l,h,b){h=h||null;var _=l,A=typeof OffscreenCanvas<"u"&&_ instanceof OffscreenCanvas;if(!(typeof HTMLCanvasElement<"u"&&_ instanceof HTMLCanvasElement||A||(_=document.getElementById(l),_)))throw"Canvas with id "+l+" was not found";if(l=this.GetWebGLContext(_,b),!l||0>l)throw"failed to create webgl context: err "+l;return l=this.MakeWebGLContext(l),h=this.MakeOnScreenGLSurface(l,_.width,_.height,h),h||(h=_.cloneNode(!0),_.parentNode.replaceChild(h,_),h.classList.add("ck-replaced"),t.MakeSWCanvasSurface(h))},t.MakeCanvasSurface=t.MakeWebGLCanvasSurface,t.Surface.prototype.makeImageFromTexture=function(l,h){return t.Fd(this.Ed),l=r(l),(h=this._makeImageFromTexture(this.Ed,l,h))&&(h.de=l),h},t.Surface.prototype.makeImageFromTextureSource=function(l,h,b){h||(h={height:a(l),width:o(l),colorType:t.ColorType.RGBA_8888,alphaType:b?t.AlphaType.Premul:t.AlphaType.Unpremul}),h.colorSpace||(h.colorSpace=t.ColorSpace.SRGB),t.Fd(this.Ed);var _=R.Qd;return b=s(_,_.createTexture(),h,b),R.version===2?_.texImage2D(_.TEXTURE_2D,0,_.RGBA,h.width,h.height,0,_.RGBA,_.UNSIGNED_BYTE,l):_.texImage2D(_.TEXTURE_2D,0,_.RGBA,_.RGBA,_.UNSIGNED_BYTE,l),c(_,h),this._resetContext(),this.makeImageFromTexture(b,h)},t.Surface.prototype.updateTextureFromSource=function(l,h,b){if(l.de){t.Fd(this.Ed);var _=l.getImageInfo(),A=R.Qd,C=s(A,rt[l.de],_,b);R.version===2?A.texImage2D(A.TEXTURE_2D,0,A.RGBA,o(h),a(h),0,A.RGBA,A.UNSIGNED_BYTE,h):A.texImage2D(A.TEXTURE_2D,0,A.RGBA,A.RGBA,A.UNSIGNED_BYTE,h),c(A,_,b),this._resetContext(),rt[l.de]=null,l.de=r(C),_.colorSpace=l.getColorSpace(),h=this._makeImageFromTexture(this.Ed,l.de,_),b=l.Dd.Hd,A=l.Dd.Ld,l.Dd.Hd=h.Dd.Hd,l.Dd.Ld=h.Dd.Ld,h.Dd.Hd=b,h.Dd.Ld=A,h.delete(),_.colorSpace.delete()}},t.MakeLazyImageFromTextureSource=function(l,h,b){h||(h={height:a(l),width:o(l),colorType:t.ColorType.RGBA_8888,alphaType:b?t.AlphaType.Premul:t.AlphaType.Unpremul}),h.colorSpace||(h.colorSpace=t.ColorSpace.SRGB);var _={makeTexture:function(){var A=R,C=A.Qd,m=s(C,C.createTexture(),h,b);return A.version===2?C.texImage2D(C.TEXTURE_2D,0,C.RGBA,h.width,h.height,0,C.RGBA,C.UNSIGNED_BYTE,l):C.texImage2D(C.TEXTURE_2D,0,C.RGBA,C.RGBA,C.UNSIGNED_BYTE,l),c(C,h,b),r(m)},freeSrc:function(){}};return l.constructor.name==="VideoFrame"&&(_.freeSrc=function(){l.close()}),t.Image._makeFromGenerator(h,_)},t.Fd=function(l){return l?Mr(l):!1},t.je=function(){return R&&R.te&&!R.te.isDeleted()?R.te:null}})})(g),(function(t){function e(i){return(o(255*i[3])<<24|o(255*i[0])<<16|o(255*i[1])<<8|o(255*i[2])<<0)>>>0}function r(i){if(i&&i._ck)return i;if(i instanceof Float32Array){for(var n=Math.floor(i.length/4),u=new Uint32Array(n),f=0;f<n;f++)u[f]=e(i.slice(4*f,4*(f+1)));return u}if(i instanceof Uint32Array)return i;if(i instanceof Array&&i[0]instanceof Float32Array)return i.map(e)}function a(i){if(i===void 0)return 1;var n=parseFloat(i);return i&&i.indexOf("%")!==-1?n/100:n}function o(i){return Math.round(Math.max(0,Math.min(i||0,255)))}function s(i,n){n&&n._ck||t._free(i)}function c(i,n,u){if(!i||!i.length)return B;if(i&&i._ck)return i.byteOffset;var f=t[n].BYTES_PER_ELEMENT;return u||(u=t._malloc(i.length*f)),t[n].set(i,u/f),u}function l(i){var n={Nd:B,count:i.length,colorType:t.ColorType.RGBA_F32};if(i instanceof Float32Array)n.Nd=c(i,"HEAPF32"),n.count=i.length/4;else if(i instanceof Uint32Array)n.Nd=c(i,"HEAPU32"),n.colorType=t.ColorType.RGBA_8888;else if(i instanceof Array){if(i&&i.length){for(var u=t._malloc(16*i.length),f=0,y=u/4,v=0;v<i.length;v++)for(var P=0;4>P;P++)t.HEAPF32[y+f]=i[v][P],f++;i=u}else i=B;n.Nd=i}else throw"Invalid argument to copyFlexibleColorArray, Not a color array "+typeof i;return n}function h(i){if(!i)return B;var n=U.toTypedArray();if(i.length){if(i.length===6||i.length===9)return c(i,"HEAPF32",k),i.length===6&&t.HEAPF32.set(Yn,6+k/4),k;if(i.length===16)return n[0]=i[0],n[1]=i[1],n[2]=i[3],n[3]=i[4],n[4]=i[5],n[5]=i[7],n[6]=i[12],n[7]=i[13],n[8]=i[15],k;throw"invalid matrix size"}if(i.m11===void 0)throw"invalid matrix argument";return n[0]=i.m11,n[1]=i.m21,n[2]=i.m41,n[3]=i.m12,n[4]=i.m22,n[5]=i.m42,n[6]=i.m14,n[7]=i.m24,n[8]=i.m44,k}function b(i){if(!i)return B;var n=Y.toTypedArray();if(i.length){if(i.length!==16&&i.length!==6&&i.length!==9)throw"invalid matrix size";return i.length===16?c(i,"HEAPF32",J):(n.fill(0),n[0]=i[0],n[1]=i[1],n[3]=i[2],n[4]=i[3],n[5]=i[4],n[7]=i[5],n[10]=1,n[12]=i[6],n[13]=i[7],n[15]=i[8],i.length===6&&(n[12]=0,n[13]=0,n[15]=1),J)}if(i.m11===void 0)throw"invalid matrix argument";return n[0]=i.m11,n[1]=i.m21,n[2]=i.m31,n[3]=i.m41,n[4]=i.m12,n[5]=i.m22,n[6]=i.m32,n[7]=i.m42,n[8]=i.m13,n[9]=i.m23,n[10]=i.m33,n[11]=i.m43,n[12]=i.m14,n[13]=i.m24,n[14]=i.m34,n[15]=i.m44,J}function _(i,n){return c(i,"HEAPF32",n||gt)}function A(i,n,u,f){var y=Ht.toTypedArray();return y[0]=i,y[1]=n,y[2]=u,y[3]=f,gt}function C(i){for(var n=new Float32Array(4),u=0;4>u;u++)n[u]=t.HEAPF32[i/4+u];return n}function m(i,n){return c(i,"HEAPF32",n||N)}function S(i,n){return c(i,"HEAPF32",n||Ye)}t.Color=function(i,n,u,f){return f===void 0&&(f=1),t.Color4f(o(i)/255,o(n)/255,o(u)/255,f)},t.ColorAsInt=function(i,n,u,f){return f===void 0&&(f=255),(o(f)<<24|o(i)<<16|o(n)<<8|o(u)<<0&268435455)>>>0},t.Color4f=function(i,n,u,f){return f===void 0&&(f=1),Float32Array.of(i,n,u,f)},Object.defineProperty(t,"TRANSPARENT",{get:function(){return t.Color4f(0,0,0,0)}}),Object.defineProperty(t,"BLACK",{get:function(){return t.Color4f(0,0,0,1)}}),Object.defineProperty(t,"WHITE",{get:function(){return t.Color4f(1,1,1,1)}}),Object.defineProperty(t,"RED",{get:function(){return t.Color4f(1,0,0,1)}}),Object.defineProperty(t,"GREEN",{get:function(){return t.Color4f(0,1,0,1)}}),Object.defineProperty(t,"BLUE",{get:function(){return t.Color4f(0,0,1,1)}}),Object.defineProperty(t,"YELLOW",{get:function(){return t.Color4f(1,1,0,1)}}),Object.defineProperty(t,"CYAN",{get:function(){return t.Color4f(0,1,1,1)}}),Object.defineProperty(t,"MAGENTA",{get:function(){return t.Color4f(1,0,1,1)}}),t.getColorComponents=function(i){return[Math.floor(255*i[0]),Math.floor(255*i[1]),Math.floor(255*i[2]),i[3]]},t.parseColorString=function(i,n){if(i=i.toLowerCase(),i.startsWith("#")){switch(n=255,i.length){case 9:n=parseInt(i.slice(7,9),16);case 7:var u=parseInt(i.slice(1,3),16),f=parseInt(i.slice(3,5),16),y=parseInt(i.slice(5,7),16);break;case 5:n=17*parseInt(i.slice(4,5),16);case 4:u=17*parseInt(i.slice(1,2),16),f=17*parseInt(i.slice(2,3),16),y=17*parseInt(i.slice(3,4),16)}return t.Color(u,f,y,n/255)}return i.startsWith("rgba")?(i=i.slice(5,-1),i=i.split(","),t.Color(+i[0],+i[1],+i[2],a(i[3]))):i.startsWith("rgb")?(i=i.slice(4,-1),i=i.split(","),t.Color(+i[0],+i[1],+i[2],a(i[3]))):i.startsWith("gray(")||i.startsWith("hsl")||!n||(i=n[i],i===void 0)?t.BLACK:i},t.multiplyByAlpha=function(i,n){return i=i.slice(),i[3]=Math.max(0,Math.min(i[3]*n,1)),i},t.Malloc=function(i,n){var u=t._malloc(n*i.BYTES_PER_ELEMENT);return{_ck:!0,length:n,byteOffset:u,Xd:null,subarray:function(f,y){return f=this.toTypedArray().subarray(f,y),f._ck=!0,f},toTypedArray:function(){return this.Xd&&this.Xd.length?this.Xd:(this.Xd=new i(t.HEAPU8.buffer,u,n),this.Xd._ck=!0,this.Xd)}}},t.Free=function(i){t._free(i.byteOffset),i.byteOffset=B,i.toTypedArray=null,i.Xd=null};var k=B,U,J=B,Y,gt=B,Ht,ft,N=B,Vr,Tt=B,Nr,Ve=B,Yr,Ne=B,Ce,Qt=B,zr,Ye=B,qr,Jr=B,Yn=Float32Array.of(0,0,1),B=0;t.onRuntimeInitialized=function(){function i(n,u,f,y,v,P,T){P||(P=4*y.width,y.colorType===t.ColorType.RGBA_F16?P*=2:y.colorType===t.ColorType.RGBA_F32&&(P*=4));var M=P*y.height,x=v?v.byteOffset:t._malloc(M);if(T?!n._readPixels(y,x,P,u,f,T):!n._readPixels(y,x,P,u,f))return v||t._free(x),null;if(v)return v.toTypedArray();switch(y.colorType){case t.ColorType.RGBA_8888:case t.ColorType.RGBA_F16:n=new Uint8Array(t.HEAPU8.buffer,x,M).slice();break;case t.ColorType.RGBA_F32:n=new Float32Array(t.HEAPU8.buffer,x,M).slice();break;default:return null}return t._free(x),n}Ht=t.Malloc(Float32Array,4),gt=Ht.byteOffset,Y=t.Malloc(Float32Array,16),J=Y.byteOffset,U=t.Malloc(Float32Array,9),k=U.byteOffset,zr=t.Malloc(Float32Array,12),Ye=zr.byteOffset,qr=t.Malloc(Float32Array,12),Jr=qr.byteOffset,ft=t.Malloc(Float32Array,4),N=ft.byteOffset,Vr=t.Malloc(Float32Array,4),Tt=Vr.byteOffset,Nr=t.Malloc(Float32Array,3),Ve=Nr.byteOffset,Yr=t.Malloc(Float32Array,3),Ne=Yr.byteOffset,Ce=t.Malloc(Int32Array,4),Qt=Ce.byteOffset,t.ColorSpace.SRGB=t.ColorSpace._MakeSRGB(),t.ColorSpace.DISPLAY_P3=t.ColorSpace._MakeDisplayP3(),t.ColorSpace.ADOBE_RGB=t.ColorSpace._MakeAdobeRGB(),t.GlyphRunFlags={IsWhiteSpace:t._GlyphRunFlags_isWhiteSpace},t.Path.MakeFromCmds=function(n){var u=c(n,"HEAPF32"),f=t.Path._MakeFromCmds(u,n.length);return s(u,n),f},t.Path.MakeFromVerbsPointsWeights=function(n,u,f){var y=c(n,"HEAPU8"),v=c(u,"HEAPF32"),P=c(f,"HEAPF32"),T=t.Path._MakeFromVerbsPointsWeights(y,n.length,v,u.length,P,f&&f.length||0);return s(y,n),s(v,u),s(P,f),T},t.Path.prototype.addArc=function(n,u,f){return n=m(n),this._addArc(n,u,f),this},t.Path.prototype.addCircle=function(n,u,f,y){return this._addCircle(n,u,f,!!y),this},t.Path.prototype.addOval=function(n,u,f){return f===void 0&&(f=1),n=m(n),this._addOval(n,!!u,f),this},t.Path.prototype.addPath=function(){var n=Array.prototype.slice.call(arguments),u=n[0],f=!1;if(typeof n[n.length-1]=="boolean"&&(f=n.pop()),n.length===1)this._addPath(u,1,0,0,0,1,0,0,0,1,f);else if(n.length===2)n=n[1],this._addPath(u,n[0],n[1],n[2],n[3],n[4],n[5],n[6]||0,n[7]||0,n[8]||1,f);else if(n.length===7||n.length===10)this._addPath(u,n[1],n[2],n[3],n[4],n[5],n[6],n[7]||0,n[8]||0,n[9]||1,f);else return null;return this},t.Path.prototype.addPoly=function(n,u){var f=c(n,"HEAPF32");return this._addPoly(f,n.length/2,u),s(f,n),this},t.Path.prototype.addRect=function(n,u){return n=m(n),this._addRect(n,!!u),this},t.Path.prototype.addRRect=function(n,u){return n=S(n),this._addRRect(n,!!u),this},t.Path.prototype.addVerbsPointsWeights=function(n,u,f){var y=c(n,"HEAPU8"),v=c(u,"HEAPF32"),P=c(f,"HEAPF32");this._addVerbsPointsWeights(y,n.length,v,u.length,P,f&&f.length||0),s(y,n),s(v,u),s(P,f)},t.Path.prototype.arc=function(n,u,f,y,v,P){return n=t.LTRBRect(n-f,u-f,n+f,u+f),v=(v-y)/Math.PI*180-360*!!P,P=new t.Path,P.addArc(n,y/Math.PI*180,v),this.addPath(P,!0),P.delete(),this},t.Path.prototype.arcToOval=function(n,u,f,y){return n=m(n),this._arcToOval(n,u,f,y),this},t.Path.prototype.arcToRotated=function(n,u,f,y,v,P,T){return this._arcToRotated(n,u,f,!!y,!!v,P,T),this},t.Path.prototype.arcToTangent=function(n,u,f,y,v){return this._arcToTangent(n,u,f,y,v),this},t.Path.prototype.close=function(){return this._close(),this},t.Path.prototype.conicTo=function(n,u,f,y,v){return this._conicTo(n,u,f,y,v),this},t.Path.prototype.computeTightBounds=function(n){this._computeTightBounds(N);var u=ft.toTypedArray();return n?(n.set(u),n):u.slice()},t.Path.prototype.cubicTo=function(n,u,f,y,v,P){return this._cubicTo(n,u,f,y,v,P),this},t.Path.prototype.dash=function(n,u,f){return this._dash(n,u,f)?this:null},t.Path.prototype.getBounds=function(n){this._getBounds(N);var u=ft.toTypedArray();return n?(n.set(u),n):u.slice()},t.Path.prototype.lineTo=function(n,u){return this._lineTo(n,u),this},t.Path.prototype.moveTo=function(n,u){return this._moveTo(n,u),this},t.Path.prototype.offset=function(n,u){return this._transform(1,0,n,0,1,u,0,0,1),this},t.Path.prototype.quadTo=function(n,u,f,y){return this._quadTo(n,u,f,y),this},t.Path.prototype.rArcTo=function(n,u,f,y,v,P,T){return this._rArcTo(n,u,f,y,v,P,T),this},t.Path.prototype.rConicTo=function(n,u,f,y,v){return this._rConicTo(n,u,f,y,v),this},t.Path.prototype.rCubicTo=function(n,u,f,y,v,P){return this._rCubicTo(n,u,f,y,v,P),this},t.Path.prototype.rLineTo=function(n,u){return this._rLineTo(n,u),this},t.Path.prototype.rMoveTo=function(n,u){return this._rMoveTo(n,u),this},t.Path.prototype.rQuadTo=function(n,u,f,y){return this._rQuadTo(n,u,f,y),this},t.Path.prototype.stroke=function(n){return n=n||{},n.width=n.width||1,n.miter_limit=n.miter_limit||4,n.cap=n.cap||t.StrokeCap.Butt,n.join=n.join||t.StrokeJoin.Miter,n.precision=n.precision||1,this._stroke(n)?this:null},t.Path.prototype.transform=function(){if(arguments.length===1){var n=arguments[0];this._transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6]||0,n[7]||0,n[8]||1)}else if(arguments.length===6||arguments.length===9)n=arguments,this._transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6]||0,n[7]||0,n[8]||1);else throw"transform expected to take 1 or 9 arguments. Got "+arguments.length;return this},t.Path.prototype.trim=function(n,u,f){return this._trim(n,u,!!f)?this:null},t.Image.prototype.encodeToBytes=function(n,u){var f=t.je();return n=n||t.ImageFormat.PNG,u=u||100,f?this._encodeToBytes(n,u,f):this._encodeToBytes(n,u)},t.Image.prototype.makeShaderCubic=function(n,u,f,y,v){return v=h(v),this._makeShaderCubic(n,u,f,y,v)},t.Image.prototype.makeShaderOptions=function(n,u,f,y,v){return v=h(v),this._makeShaderOptions(n,u,f,y,v)},t.Image.prototype.readPixels=function(n,u,f,y,v){var P=t.je();return i(this,n,u,f,y,v,P)},t.Canvas.prototype.clear=function(n){t.Fd(this.Ed),n=_(n),this._clear(n)},t.Canvas.prototype.clipRRect=function(n,u,f){t.Fd(this.Ed),n=S(n),this._clipRRect(n,u,f)},t.Canvas.prototype.clipRect=function(n,u,f){t.Fd(this.Ed),n=m(n),this._clipRect(n,u,f)},t.Canvas.prototype.concat=function(n){t.Fd(this.Ed),n=b(n),this._concat(n)},t.Canvas.prototype.drawArc=function(n,u,f,y,v){t.Fd(this.Ed),n=m(n),this._drawArc(n,u,f,y,v)},t.Canvas.prototype.drawAtlas=function(n,u,f,y,v,P,T){if(n&&y&&u&&f&&u.length===f.length){t.Fd(this.Ed),v||(v=t.BlendMode.SrcOver);var M=c(u,"HEAPF32"),x=c(f,"HEAPF32"),W=f.length/4,V=c(r(P),"HEAPU32");if(T&&"B"in T&&"C"in T)this._drawAtlasCubic(n,x,M,V,W,v,T.B,T.C,y);else{let d=t.FilterMode.Linear,w=t.MipmapMode.None;T&&(d=T.filter,"mipmap"in T&&(w=T.mipmap)),this._drawAtlasOptions(n,x,M,V,W,v,d,w,y)}s(M,u),s(x,f),s(V,P)}},t.Canvas.prototype.drawCircle=function(n,u,f,y){t.Fd(this.Ed),this._drawCircle(n,u,f,y)},t.Canvas.prototype.drawColor=function(n,u){t.Fd(this.Ed),n=_(n),u!==void 0?this._drawColor(n,u):this._drawColor(n)},t.Canvas.prototype.drawColorInt=function(n,u){t.Fd(this.Ed),this._drawColorInt(n,u||t.BlendMode.SrcOver)},t.Canvas.prototype.drawColorComponents=function(n,u,f,y,v){t.Fd(this.Ed),n=A(n,u,f,y),v!==void 0?this._drawColor(n,v):this._drawColor(n)},t.Canvas.prototype.drawDRRect=function(n,u,f){t.Fd(this.Ed),n=S(n,Ye),u=S(u,Jr),this._drawDRRect(n,u,f)},t.Canvas.prototype.drawImage=function(n,u,f,y){t.Fd(this.Ed),this._drawImage(n,u,f,y||null)},t.Canvas.prototype.drawImageCubic=function(n,u,f,y,v,P){t.Fd(this.Ed),this._drawImageCubic(n,u,f,y,v,P||null)},t.Canvas.prototype.drawImageOptions=function(n,u,f,y,v,P){t.Fd(this.Ed),this._drawImageOptions(n,u,f,y,v,P||null)},t.Canvas.prototype.drawImageNine=function(n,u,f,y,v){t.Fd(this.Ed),u=c(u,"HEAP32",Qt),f=m(f),this._drawImageNine(n,u,f,y,v||null)},t.Canvas.prototype.drawImageRect=function(n,u,f,y,v){t.Fd(this.Ed),m(u,N),m(f,Tt),this._drawImageRect(n,N,Tt,y,!!v)},t.Canvas.prototype.drawImageRectCubic=function(n,u,f,y,v,P){t.Fd(this.Ed),m(u,N),m(f,Tt),this._drawImageRectCubic(n,N,Tt,y,v,P||null)},t.Canvas.prototype.drawImageRectOptions=function(n,u,f,y,v,P){t.Fd(this.Ed),m(u,N),m(f,Tt),this._drawImageRectOptions(n,N,Tt,y,v,P||null)},t.Canvas.prototype.drawLine=function(n,u,f,y,v){t.Fd(this.Ed),this._drawLine(n,u,f,y,v)},t.Canvas.prototype.drawOval=function(n,u){t.Fd(this.Ed),n=m(n),this._drawOval(n,u)},t.Canvas.prototype.drawPaint=function(n){t.Fd(this.Ed),this._drawPaint(n)},t.Canvas.prototype.drawParagraph=function(n,u,f){t.Fd(this.Ed),this._drawParagraph(n,u,f)},t.Canvas.prototype.drawPatch=function(n,u,f,y,v){if(24>n.length)throw"Need 12 cubic points";if(u&&4>u.length)throw"Need 4 colors";if(f&&8>f.length)throw"Need 4 shader coordinates";t.Fd(this.Ed);let P=c(n,"HEAPF32"),T=u?c(r(u),"HEAPU32"):B,M=f?c(f,"HEAPF32"):B;y||(y=t.BlendMode.Modulate),this._drawPatch(P,T,M,y,v),s(M,f),s(T,u),s(P,n)},t.Canvas.prototype.drawPath=function(n,u){t.Fd(this.Ed),this._drawPath(n,u)},t.Canvas.prototype.drawPicture=function(n){t.Fd(this.Ed),this._drawPicture(n)},t.Canvas.prototype.drawPoints=function(n,u,f){t.Fd(this.Ed);var y=c(u,"HEAPF32");this._drawPoints(n,y,u.length/2,f),s(y,u)},t.Canvas.prototype.drawRRect=function(n,u){t.Fd(this.Ed),n=S(n),this._drawRRect(n,u)},t.Canvas.prototype.drawRect=function(n,u){t.Fd(this.Ed),n=m(n),this._drawRect(n,u)},t.Canvas.prototype.drawRect4f=function(n,u,f,y,v){t.Fd(this.Ed),this._drawRect4f(n,u,f,y,v)},t.Canvas.prototype.drawShadow=function(n,u,f,y,v,P,T){t.Fd(this.Ed);var M=c(v,"HEAPF32"),x=c(P,"HEAPF32");u=c(u,"HEAPF32",Ve),f=c(f,"HEAPF32",Ne),this._drawShadow(n,u,f,y,M,x,T),s(M,v),s(x,P)},t.getShadowLocalBounds=function(n,u,f,y,v,P,T){return n=h(n),f=c(f,"HEAPF32",Ve),y=c(y,"HEAPF32",Ne),this._getShadowLocalBounds(n,u,f,y,v,P,N)?(u=ft.toTypedArray(),T?(T.set(u),T):u.slice()):null},t.Canvas.prototype.drawTextBlob=function(n,u,f,y){t.Fd(this.Ed),this._drawTextBlob(n,u,f,y)},t.Canvas.prototype.drawVertices=function(n,u,f){t.Fd(this.Ed),this._drawVertices(n,u,f)},t.Canvas.prototype.getDeviceClipBounds=function(n){this._getDeviceClipBounds(Qt);var u=Ce.toTypedArray();return n?n.set(u):n=u.slice(),n},t.Canvas.prototype.getLocalToDevice=function(){this._getLocalToDevice(J);for(var n=J,u=Array(16),f=0;16>f;f++)u[f]=t.HEAPF32[n/4+f];return u},t.Canvas.prototype.getTotalMatrix=function(){this._getTotalMatrix(k);for(var n=Array(9),u=0;9>u;u++)n[u]=t.HEAPF32[k/4+u];return n},t.Canvas.prototype.makeSurface=function(n){return n=this._makeSurface(n),n.Ed=this.Ed,n},t.Canvas.prototype.readPixels=function(n,u,f,y,v){return t.Fd(this.Ed),i(this,n,u,f,y,v)},t.Canvas.prototype.saveLayer=function(n,u,f,y){return u=m(u),this._saveLayer(n||null,u,f||null,y||0)},t.Canvas.prototype.writePixels=function(n,u,f,y,v,P,T,M){if(n.byteLength%(u*f))throw"pixels length must be a multiple of the srcWidth * srcHeight";t.Fd(this.Ed);var x=n.byteLength/(u*f);P=P||t.AlphaType.Unpremul,T=T||t.ColorType.RGBA_8888,M=M||t.ColorSpace.SRGB;var W=x*u;return x=c(n,"HEAPU8"),u=this._writePixels({width:u,height:f,colorType:T,alphaType:P,colorSpace:M},x,W,y,v),s(x,n),u},t.ColorFilter.MakeBlend=function(n,u,f){return n=_(n),f=f||t.ColorSpace.SRGB,t.ColorFilter._MakeBlend(n,u,f)},t.ColorFilter.MakeMatrix=function(n){if(!n||n.length!==20)throw"invalid color matrix";var u=c(n,"HEAPF32"),f=t.ColorFilter._makeMatrix(u);return s(u,n),f},t.ContourMeasure.prototype.getPosTan=function(n,u){return this._getPosTan(n,N),n=ft.toTypedArray(),u?(u.set(n),u):n.slice()},t.ImageFilter.prototype.getOutputBounds=function(n,u,f){return n=m(n,N),u=h(u),this._getOutputBounds(n,u,Qt),u=Ce.toTypedArray(),f?(f.set(u),f):u.slice()},t.ImageFilter.MakeDropShadow=function(n,u,f,y,v,P){return v=_(v,gt),t.ImageFilter._MakeDropShadow(n,u,f,y,v,P)},t.ImageFilter.MakeDropShadowOnly=function(n,u,f,y,v,P){return v=_(v,gt),t.ImageFilter._MakeDropShadowOnly(n,u,f,y,v,P)},t.ImageFilter.MakeImage=function(n,u,f,y){if(f=m(f,N),y=m(y,Tt),"B"in u&&"C"in u)return t.ImageFilter._MakeImageCubic(n,u.B,u.C,f,y);let v=u.filter,P=t.MipmapMode.None;return"mipmap"in u&&(P=u.mipmap),t.ImageFilter._MakeImageOptions(n,v,P,f,y)},t.ImageFilter.MakeMatrixTransform=function(n,u,f){if(n=h(n),"B"in u&&"C"in u)return t.ImageFilter._MakeMatrixTransformCubic(n,u.B,u.C,f);let y=u.filter,v=t.MipmapMode.None;return"mipmap"in u&&(v=u.mipmap),t.ImageFilter._MakeMatrixTransformOptions(n,y,v,f)},t.Paint.prototype.getColor=function(){return this._getColor(gt),C(gt)},t.Paint.prototype.setColor=function(n,u){u=u||null,n=_(n),this._setColor(n,u)},t.Paint.prototype.setColorComponents=function(n,u,f,y,v){v=v||null,n=A(n,u,f,y),this._setColor(n,v)},t.Path.prototype.getPoint=function(n,u){return this._getPoint(n,N),n=ft.toTypedArray(),u?(u[0]=n[0],u[1]=n[1],u):n.slice(0,2)},t.Picture.prototype.makeShader=function(n,u,f,y,v){return y=h(y),v=m(v),this._makeShader(n,u,f,y,v)},t.Picture.prototype.cullRect=function(n){this._cullRect(N);var u=ft.toTypedArray();return n?(n.set(u),n):u.slice()},t.PictureRecorder.prototype.beginRecording=function(n,u){return n=m(n),this._beginRecording(n,!!u)},t.Surface.prototype.getCanvas=function(){var n=this._getCanvas();return n.Ed=this.Ed,n},t.Surface.prototype.makeImageSnapshot=function(n){return t.Fd(this.Ed),n=c(n,"HEAP32",Qt),this._makeImageSnapshot(n)},t.Surface.prototype.makeSurface=function(n){return t.Fd(this.Ed),n=this._makeSurface(n),n.Ed=this.Ed,n},t.Surface.prototype.Oe=function(n,u){return this.ce||(this.ce=this.getCanvas()),requestAnimationFrame((function(){t.Fd(this.Ed),n(this.ce),this.flush(u)}).bind(this))},t.Surface.prototype.requestAnimationFrame||(t.Surface.prototype.requestAnimationFrame=t.Surface.prototype.Oe),t.Surface.prototype.Le=function(n,u){this.ce||(this.ce=this.getCanvas()),requestAnimationFrame((function(){t.Fd(this.Ed),n(this.ce),this.flush(u),this.dispose()}).bind(this))},t.Surface.prototype.drawOnce||(t.Surface.prototype.drawOnce=t.Surface.prototype.Le),t.PathEffect.MakeDash=function(n,u){if(u||(u=0),!n.length||n.length%2===1)throw"Intervals array must have even length";var f=c(n,"HEAPF32");return u=t.PathEffect._MakeDash(f,n.length,u),s(f,n),u},t.PathEffect.MakeLine2D=function(n,u){return u=h(u),t.PathEffect._MakeLine2D(n,u)},t.PathEffect.MakePath2D=function(n,u){return n=h(n),t.PathEffect._MakePath2D(n,u)},t.Shader.MakeColor=function(n,u){return u=u||null,n=_(n),t.Shader._MakeColor(n,u)},t.Shader.Blend=t.Shader.MakeBlend,t.Shader.Color=t.Shader.MakeColor,t.Shader.MakeLinearGradient=function(n,u,f,y,v,P,T,M){M=M||null;var x=l(f),W=c(y,"HEAPF32");T=T||0,P=h(P);var V=ft.toTypedArray();return V.set(n),V.set(u,2),n=t.Shader._MakeLinearGradient(N,x.Nd,x.colorType,W,x.count,v,T,P,M),s(x.Nd,f),y&&s(W,y),n},t.Shader.MakeRadialGradient=function(n,u,f,y,v,P,T,M){M=M||null;var x=l(f),W=c(y,"HEAPF32");return T=T||0,P=h(P),n=t.Shader._MakeRadialGradient(n[0],n[1],u,x.Nd,x.colorType,W,x.count,v,T,P,M),s(x.Nd,f),y&&s(W,y),n},t.Shader.MakeSweepGradient=function(n,u,f,y,v,P,T,M,x,W){W=W||null;var V=l(f),d=c(y,"HEAPF32");return T=T||0,M=M||0,x=x||360,P=h(P),n=t.Shader._MakeSweepGradient(n,u,V.Nd,V.colorType,d,V.count,v,M,x,T,P,W),s(V.Nd,f),y&&s(d,y),n},t.Shader.MakeTwoPointConicalGradient=function(n,u,f,y,v,P,T,M,x,W){W=W||null;var V=l(v),d=c(P,"HEAPF32");x=x||0,M=h(M);var w=ft.toTypedArray();return w.set(n),w.set(f,2),n=t.Shader._MakeTwoPointConicalGradient(N,u,y,V.Nd,V.colorType,d,V.count,T,x,M,W),s(V.Nd,v),P&&s(d,P),n},t.Vertices.prototype.bounds=function(n){this._bounds(N);var u=ft.toTypedArray();return n?(n.set(u),n):u.slice()},t.Id&&t.Id.forEach(function(n){n()})},t.computeTonalColors=function(i){var n=c(i.ambient,"HEAPF32"),u=c(i.spot,"HEAPF32");this._computeTonalColors(n,u);var f={ambient:C(n),spot:C(u)};return s(n,i.ambient),s(u,i.spot),f},t.LTRBRect=function(i,n,u,f){return Float32Array.of(i,n,u,f)},t.XYWHRect=function(i,n,u,f){return Float32Array.of(i,n,i+u,n+f)},t.LTRBiRect=function(i,n,u,f){return Int32Array.of(i,n,u,f)},t.XYWHiRect=function(i,n,u,f){return Int32Array.of(i,n,i+u,n+f)},t.RRectXY=function(i,n,u){return Float32Array.of(i[0],i[1],i[2],i[3],n,u,n,u,n,u,n,u)},t.MakeAnimatedImageFromEncoded=function(i){i=new Uint8Array(i);var n=t._malloc(i.byteLength);return t.HEAPU8.set(i,n),(i=t._decodeAnimatedImage(n,i.byteLength))?i:null},t.MakeImageFromEncoded=function(i){i=new Uint8Array(i);var n=t._malloc(i.byteLength);return t.HEAPU8.set(i,n),(i=t._decodeImage(n,i.byteLength))?i:null};var Zt=null;t.MakeImageFromCanvasImageSource=function(i){var n=i.width,u=i.height;Zt||(Zt=document.createElement("canvas")),Zt.width=n,Zt.height=u;var f=Zt.getContext("2d",{willReadFrequently:!0});return f.drawImage(i,0,0),i=f.getImageData(0,0,n,u),t.MakeImage({width:n,height:u,alphaType:t.AlphaType.Unpremul,colorType:t.ColorType.RGBA_8888,colorSpace:t.ColorSpace.SRGB},i.data,4*n)},t.MakeImage=function(i,n,u){var f=t._malloc(n.length);return t.HEAPU8.set(n,f),t._MakeImage(i,f,n.length,u)},t.MakeVertices=function(i,n,u,f,y,v){var P=y&&y.length||0,T=0;return u&&u.length&&(T|=1),f&&f.length&&(T|=2),v===void 0||v||(T|=4),i=new t._VerticesBuilder(i,n.length/2,P,T),c(n,"HEAPF32",i.positions()),i.texCoords()&&c(u,"HEAPF32",i.texCoords()),i.colors()&&c(r(f),"HEAPU32",i.colors()),i.indices()&&c(y,"HEAPU16",i.indices()),i.detach()},(function(i){i.Id=i.Id||[],i.Id.push(function(){function n(d){return d&&(d.dir=d.dir===0?i.TextDirection.RTL:i.TextDirection.LTR),d}function u(d){if(!d||!d.length)return[];for(var w=[],H=0;H<d.length;H+=5){var z=i.LTRBRect(d[H],d[H+1],d[H+2],d[H+3]),_t=i.TextDirection.LTR;d[H+4]===0&&(_t=i.TextDirection.RTL),w.push({rect:z,dir:_t})}return i._free(d.byteOffset),w}function f(d){return d=d||{},d.weight===void 0&&(d.weight=i.FontWeight.Normal),d.width=d.width||i.FontWidth.Normal,d.slant=d.slant||i.FontSlant.Upright,d}function y(d){if(!d||!d.length)return B;for(var w=[],H=0;H<d.length;H++){var z=v(d[H]);w.push(z)}return c(w,"HEAPU32")}function v(d){if(M[d])return M[d];var w=st(d)+1,H=i._malloc(w);return ut(d,I,H,w),M[d]=H}function P(d){if(d._colorPtr=_(d.color),d._foregroundColorPtr=B,d._backgroundColorPtr=B,d._decorationColorPtr=B,d.foregroundColor&&(d._foregroundColorPtr=_(d.foregroundColor,x)),d.backgroundColor&&(d._backgroundColorPtr=_(d.backgroundColor,W)),d.decorationColor&&(d._decorationColorPtr=_(d.decorationColor,V)),Array.isArray(d.fontFamilies)&&d.fontFamilies.length?(d._fontFamiliesPtr=y(d.fontFamilies),d._fontFamiliesLen=d.fontFamilies.length):(d._fontFamiliesPtr=B,d._fontFamiliesLen=0),d.locale){var w=d.locale;d._localePtr=v(w),d._localeLen=st(w)+1}else d._localePtr=B,d._localeLen=0;if(Array.isArray(d.shadows)&&d.shadows.length){w=d.shadows;var H=w.map(function(dt){return dt.color||i.BLACK}),z=w.map(function(dt){return dt.blurRadius||0});d._shadowLen=w.length;for(var _t=i._malloc(8*w.length),ze=_t/4,qe=0;qe<w.length;qe++){var Kr=w[qe].offset||[0,0];i.HEAPF32[ze]=Kr[0],i.HEAPF32[ze+1]=Kr[1],ze+=2}d._shadowColorsPtr=l(H).Nd,d._shadowOffsetsPtr=_t,d._shadowBlurRadiiPtr=c(z,"HEAPF32")}else d._shadowLen=0,d._shadowColorsPtr=B,d._shadowOffsetsPtr=B,d._shadowBlurRadiiPtr=B;Array.isArray(d.fontFeatures)&&d.fontFeatures.length?(w=d.fontFeatures,H=w.map(function(dt){return dt.name}),z=w.map(function(dt){return dt.value}),d._fontFeatureLen=w.length,d._fontFeatureNamesPtr=y(H),d._fontFeatureValuesPtr=c(z,"HEAPU32")):(d._fontFeatureLen=0,d._fontFeatureNamesPtr=B,d._fontFeatureValuesPtr=B),Array.isArray(d.fontVariations)&&d.fontVariations.length?(w=d.fontVariations,H=w.map(function(dt){return dt.axis}),z=w.map(function(dt){return dt.value}),d._fontVariationLen=w.length,d._fontVariationAxesPtr=y(H),d._fontVariationValuesPtr=c(z,"HEAPF32")):(d._fontVariationLen=0,d._fontVariationAxesPtr=B,d._fontVariationValuesPtr=B)}function T(d){i._free(d._fontFamiliesPtr),i._free(d._shadowColorsPtr),i._free(d._shadowOffsetsPtr),i._free(d._shadowBlurRadiiPtr),i._free(d._fontFeatureNamesPtr),i._free(d._fontFeatureValuesPtr),i._free(d._fontVariationAxesPtr),i._free(d._fontVariationValuesPtr)}i.Paragraph.prototype.getRectsForRange=function(d,w,H,z){return d=this._getRectsForRange(d,w,H,z),u(d)},i.Paragraph.prototype.getRectsForPlaceholders=function(){var d=this._getRectsForPlaceholders();return u(d)},i.Paragraph.prototype.getGlyphInfoAt=function(d){return n(this._getGlyphInfoAt(d))},i.Paragraph.prototype.getClosestGlyphInfoAtCoordinate=function(d,w){return n(this._getClosestGlyphInfoAtCoordinate(d,w))},i.TypefaceFontProvider.prototype.registerFont=function(d,w){if(d=i.Typeface.MakeFreeTypeFaceFromData(d),!d)return null;w=v(w),this._registerFont(d,w)},i.ParagraphStyle=function(d){if(d.disableHinting=d.disableHinting||!1,d.ellipsis){var w=d.ellipsis;d._ellipsisPtr=v(w),d._ellipsisLen=st(w)+1}else d._ellipsisPtr=B,d._ellipsisLen=0;return d.heightMultiplier==null&&(d.heightMultiplier=-1),d.maxLines=d.maxLines||0,d.replaceTabCharacters=d.replaceTabCharacters||!1,w=(w=d.strutStyle)||{},w.strutEnabled=w.strutEnabled||!1,w.strutEnabled&&Array.isArray(w.fontFamilies)&&w.fontFamilies.length?(w._fontFamiliesPtr=y(w.fontFamilies),w._fontFamiliesLen=w.fontFamilies.length):(w._fontFamiliesPtr=B,w._fontFamiliesLen=0),w.fontStyle=f(w.fontStyle),w.fontSize==null&&(w.fontSize=-1),w.heightMultiplier==null&&(w.heightMultiplier=-1),w.halfLeading=w.halfLeading||!1,w.leading=w.leading||0,w.forceStrutHeight=w.forceStrutHeight||!1,d.strutStyle=w,d.textAlign=d.textAlign||i.TextAlign.Start,d.textDirection=d.textDirection||i.TextDirection.LTR,d.textHeightBehavior=d.textHeightBehavior||i.TextHeightBehavior.All,d.textStyle=i.TextStyle(d.textStyle),d.applyRoundingHack=d.applyRoundingHack!==!1,d},i.TextStyle=function(d){return d.color||(d.color=i.BLACK),d.decoration=d.decoration||0,d.decorationThickness=d.decorationThickness||0,d.decorationStyle=d.decorationStyle||i.DecorationStyle.Solid,d.textBaseline=d.textBaseline||i.TextBaseline.Alphabetic,d.fontSize==null&&(d.fontSize=-1),d.letterSpacing=d.letterSpacing||0,d.wordSpacing=d.wordSpacing||0,d.heightMultiplier==null&&(d.heightMultiplier=-1),d.halfLeading=d.halfLeading||!1,d.fontStyle=f(d.fontStyle),d};var M={},x=i._malloc(16),W=i._malloc(16),V=i._malloc(16);i.ParagraphBuilder.Make=function(d,w){return P(d.textStyle),w=i.ParagraphBuilder._Make(d,w),T(d.textStyle),w},i.ParagraphBuilder.MakeFromFontProvider=function(d,w){return P(d.textStyle),w=i.ParagraphBuilder._MakeFromFontProvider(d,w),T(d.textStyle),w},i.ParagraphBuilder.MakeFromFontCollection=function(d,w){return P(d.textStyle),w=i.ParagraphBuilder._MakeFromFontCollection(d,w),T(d.textStyle),w},i.ParagraphBuilder.ShapeText=function(d,w,H){let z=0;for(let _t of w)z+=_t.length;if(z!==d.length)throw"Accumulated block lengths must equal text.length";return i.ParagraphBuilder._ShapeText(d,w,H)},i.ParagraphBuilder.prototype.pushStyle=function(d){P(d),this._pushStyle(d),T(d)},i.ParagraphBuilder.prototype.pushPaintStyle=function(d,w,H){P(d),this._pushPaintStyle(d,w,H),T(d)},i.ParagraphBuilder.prototype.addPlaceholder=function(d,w,H,z,_t){H=H||i.PlaceholderAlignment.Baseline,z=z||i.TextBaseline.Alphabetic,this._addPlaceholder(d||0,w||0,H,z,_t||0)},i.ParagraphBuilder.prototype.setWordsUtf8=function(d){var w=c(d,"HEAPU32");this._setWordsUtf8(w,d&&d.length||0),s(w,d)},i.ParagraphBuilder.prototype.setWordsUtf16=function(d){var w=c(d,"HEAPU32");this._setWordsUtf16(w,d&&d.length||0),s(w,d)},i.ParagraphBuilder.prototype.setGraphemeBreaksUtf8=function(d){var w=c(d,"HEAPU32");this._setGraphemeBreaksUtf8(w,d&&d.length||0),s(w,d)},i.ParagraphBuilder.prototype.setGraphemeBreaksUtf16=function(d){var w=c(d,"HEAPU32");this._setGraphemeBreaksUtf16(w,d&&d.length||0),s(w,d)},i.ParagraphBuilder.prototype.setLineBreaksUtf8=function(d){var w=c(d,"HEAPU32");this._setLineBreaksUtf8(w,d&&d.length||0),s(w,d)},i.ParagraphBuilder.prototype.setLineBreaksUtf16=function(d){var w=c(d,"HEAPU32");this._setLineBreaksUtf16(w,d&&d.length||0),s(w,d)}})})(g),t.Id=t.Id||[],t.Id.push(function(){t.Path.prototype.op=function(i,n){return this._op(i,n)?this:null},t.Path.prototype.simplify=function(){return this._simplify()?this:null}}),t.Id=t.Id||[],t.Id.push(function(){t.Canvas.prototype.drawText=function(i,n,u,f,y){var v=st(i),P=t._malloc(v+1);ut(i,I,P,v+1),this._drawSimpleText(P,v,n,u,y,f),t._free(P)},t.Canvas.prototype.drawGlyphs=function(i,n,u,f,y,v){if(!(2*i.length<=n.length))throw"Not enough positions for the array of gyphs";t.Fd(this.Ed);let P=c(i,"HEAPU16"),T=c(n,"HEAPF32");this._drawGlyphs(i.length,P,T,u,f,y,v),s(T,n),s(P,i)},t.Font.prototype.getGlyphBounds=function(i,n,u){var f=c(i,"HEAPU16"),y=t._malloc(16*i.length);return this._getGlyphWidthBounds(f,i.length,B,y,n||null),n=new Float32Array(t.HEAPU8.buffer,y,4*i.length),s(f,i),u?(u.set(n),t._free(y),u):(i=Float32Array.from(n),t._free(y),i)},t.Font.prototype.getGlyphIDs=function(i,n,u){n||(n=i.length);var f=st(i)+1,y=t._malloc(f);return ut(i,I,y,f),i=t._malloc(2*n),n=this._getGlyphIDs(y,f-1,n,i),t._free(y),0>n?(t._free(i),null):(y=new Uint16Array(t.HEAPU8.buffer,i,n),u?(u.set(y),t._free(i),u):(u=Uint16Array.from(y),t._free(i),u))},t.Font.prototype.getGlyphIntercepts=function(i,n,u,f){var y=c(i,"HEAPU16"),v=c(n,"HEAPF32");return this._getGlyphIntercepts(y,i.length,!(i&&i._ck),v,n.length,!(n&&n._ck),u,f)},t.Font.prototype.getGlyphWidths=function(i,n,u){var f=c(i,"HEAPU16"),y=t._malloc(4*i.length);return this._getGlyphWidthBounds(f,i.length,y,B,n||null),n=new Float32Array(t.HEAPU8.buffer,y,i.length),s(f,i),u?(u.set(n),t._free(y),u):(i=Float32Array.from(n),t._free(y),i)},t.FontMgr.FromData=function(){if(!arguments.length)return null;var i=arguments;if(i.length===1&&Array.isArray(i[0])&&(i=arguments[0]),!i.length)return null;for(var n=[],u=[],f=0;f<i.length;f++){var y=new Uint8Array(i[f]),v=c(y,"HEAPU8");n.push(v),u.push(y.byteLength)}return n=c(n,"HEAPU32"),u=c(u,"HEAPU32"),i=t.FontMgr._fromData(n,u,i.length),t._free(n),t._free(u),i},t.Typeface.MakeFreeTypeFaceFromData=function(i){i=new Uint8Array(i);var n=c(i,"HEAPU8");return(i=t.Typeface._MakeFreeTypeFaceFromData(n,i.byteLength))?i:null},t.Typeface.prototype.getGlyphIDs=function(i,n,u){n||(n=i.length);var f=st(i)+1,y=t._malloc(f);return ut(i,I,y,f),i=t._malloc(2*n),n=this._getGlyphIDs(y,f-1,n,i),t._free(y),0>n?(t._free(i),null):(y=new Uint16Array(t.HEAPU8.buffer,i,n),u?(u.set(y),t._free(i),u):(u=Uint16Array.from(y),t._free(i),u))},t.TextBlob.MakeOnPath=function(i,n,u,f){if(i&&i.length&&n&&n.countPoints()){if(n.countPoints()===1)return this.MakeFromText(i,u);f||(f=0);var y=u.getGlyphIDs(i);y=u.getGlyphWidths(y);var v=[];n=new t.ContourMeasureIter(n,!1,1);for(var P=n.next(),T=new Float32Array(4),M=0;M<i.length&&P;M++){var x=y[M];if(f+=x/2,f>P.length()){if(P.delete(),P=n.next(),!P){i=i.substring(0,M);break}f=x/2}P.getPosTan(f,T);var W=T[2],V=T[3];v.push(W,V,T[0]-x/2*W,T[1]-x/2*V),f+=x/2}return i=this.MakeFromRSXform(i,v,u),P&&P.delete(),n.delete(),i}},t.TextBlob.MakeFromRSXform=function(i,n,u){var f=st(i)+1,y=t._malloc(f);return ut(i,I,y,f),i=c(n,"HEAPF32"),u=t.TextBlob._MakeFromRSXform(y,f-1,i,u),t._free(y),u||null},t.TextBlob.MakeFromRSXformGlyphs=function(i,n,u){var f=c(i,"HEAPU16");return n=c(n,"HEAPF32"),u=t.TextBlob._MakeFromRSXformGlyphs(f,2*i.length,n,u),s(f,i),u||null},t.TextBlob.MakeFromGlyphs=function(i,n){var u=c(i,"HEAPU16");return n=t.TextBlob._MakeFromGlyphs(u,2*i.length,n),s(u,i),n||null},t.TextBlob.MakeFromText=function(i,n){var u=st(i)+1,f=t._malloc(u);return ut(i,I,f,u),i=t.TextBlob._MakeFromText(f,u-1,n),t._free(f),i||null},t.MallocGlyphIDs=function(i){return t.Malloc(Uint16Array,i)}}),t.Id=t.Id||[],t.Id.push(function(){t.MakePicture=function(i){i=new Uint8Array(i);var n=t._malloc(i.byteLength);return t.HEAPU8.set(i,n),(i=t._MakePicture(n,i.byteLength))?i:null}}),t.Id=t.Id||[],t.Id.push(function(){t.RuntimeEffect.Make=function(i,n){return t.RuntimeEffect._Make(i,{onError:n||function(u){console.log("RuntimeEffect error",u)}})},t.RuntimeEffect.MakeForBlender=function(i,n){return t.RuntimeEffect._MakeForBlender(i,{onError:n||function(u){console.log("RuntimeEffect error",u)}})},t.RuntimeEffect.prototype.makeShader=function(i,n){var u=!i._ck,f=c(i,"HEAPF32");return n=h(n),this._makeShader(f,4*i.length,u,n)},t.RuntimeEffect.prototype.makeShaderWithChildren=function(i,n,u){var f=!i._ck,y=c(i,"HEAPF32");u=h(u);for(var v=[],P=0;P<n.length;P++)v.push(n[P].Dd.Hd);return n=c(v,"HEAPU32"),this._makeShaderWithChildren(y,4*i.length,f,n,v.length,u)},t.RuntimeEffect.prototype.makeBlender=function(i){var n=!i._ck,u=c(i,"HEAPF32");return this._makeBlender(u,4*i.length,n)}})})(g);var Xe=Object.assign({},g),Te="./this.program",Qe=typeof window=="object",Ot=typeof importScripts=="function",Ze=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",Q="",Se,ne,ae;if(Ze){var tr=Xr("fs"),Fe=Xr("path");Q=Ot?Fe.dirname(Q)+"/":__dirname+"/",Se=(t,e)=>(t=t.startsWith("file://")?new URL(t):Fe.normalize(t),tr.readFileSync(t,e?void 0:"utf8")),ae=t=>(t=Se(t,!0),t.buffer||(t=new Uint8Array(t)),t),ne=(t,e,r,a=!0)=>{t=t.startsWith("file://")?new URL(t):Fe.normalize(t),tr.readFile(t,a?void 0:"utf8",(o,s)=>{o?r(o):e(a?s.buffer:s)})},!g.thisProgram&&1<process.argv.length&&(Te=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),g.inspect=()=>"[Emscripten Module object]"}else(Qe||Ot)&&(Ot?Q=self.location.href:typeof document<"u"&&document.currentScript&&(Q=document.currentScript.src),ee&&(Q=ee),Q.indexOf("blob:")!==0?Q=Q.substr(0,Q.replace(/[?#].*/,"").lastIndexOf("/")+1):Q="",Se=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},Ot&&(ae=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),ne=(t,e,r)=>{var a=new XMLHttpRequest;a.open("GET",t,!0),a.responseType="arraybuffer",a.onload=()=>{a.status==200||a.status==0&&a.response?e(a.response):r()},a.onerror=r,a.send(null)});var Qr=g.print||console.log.bind(console),wt=g.printErr||console.error.bind(console);Object.assign(g,Xe),Xe=null,g.thisProgram&&(Te=g.thisProgram);var jt;g.wasmBinary&&(jt=g.wasmBinary),g.noExitRuntime,typeof WebAssembly!="object"&&ke("no native wasm support detected");var oe,D,er=!1,ht,I,At,Rt,E,O,F,rr;function nr(){var t=oe.buffer;g.HEAP8=ht=new Int8Array(t),g.HEAP16=At=new Int16Array(t),g.HEAP32=E=new Int32Array(t),g.HEAPU8=I=new Uint8Array(t),g.HEAPU16=Rt=new Uint16Array(t),g.HEAPU32=O=new Uint32Array(t),g.HEAPF32=F=new Float32Array(t),g.HEAPF64=rr=new Float64Array(t)}var K,ar=[],or=[],ir=[];function Zr(){var t=g.preRun.shift();ar.unshift(t)}var St=0,Ut=null;function ke(t){throw g.onAbort&&g.onAbort(t),t="Aborted("+t+")",wt(t),er=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),re(t),t}function ur(t){return t.startsWith("data:application/octet-stream;base64,")}var It;if(It="canvaskit.wasm",!ur(It)){var sr=It;It=g.locateFile?g.locateFile(sr,Q):Q+sr}function cr(t){if(t==It&&jt)return new Uint8Array(jt);if(ae)return ae(t);throw"both async and sync fetching of the wasm failed"}function tn(t){if(!jt&&(Qe||Ot)){if(typeof fetch=="function"&&!t.startsWith("file://"))return fetch(t,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw"failed to load wasm binary file at '"+t+"'";return e.arrayBuffer()}).catch(()=>cr(t));if(ne)return new Promise((e,r)=>{ne(t,a=>e(new Uint8Array(a)),r)})}return Promise.resolve().then(()=>cr(t))}function lr(t,e,r){return tn(t).then(a=>WebAssembly.instantiate(a,e)).then(a=>a).then(r,a=>{wt("failed to asynchronously prepare wasm: "+a),ke(a)})}function en(t,e){var r=It;return jt||typeof WebAssembly.instantiateStreaming!="function"||ur(r)||r.startsWith("file://")||Ze||typeof fetch!="function"?lr(r,t,e):fetch(r,{credentials:"same-origin"}).then(a=>WebAssembly.instantiateStreaming(a,t).then(e,function(o){return wt("wasm streaming compile failed: "+o),wt("falling back to ArrayBuffer instantiation"),lr(r,t,e)}))}var xe=t=>{for(;0<t.length;)t.shift()(g)},fr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Ft=(t,e,r)=>{var a=e+r;for(r=e;t[r]&&!(r>=a);)++r;if(16<r-e&&t.buffer&&fr)return fr.decode(t.subarray(e,r));for(a="";e<r;){var o=t[e++];if(o&128){var s=t[e++]&63;if((o&224)==192)a+=String.fromCharCode((o&31)<<6|s);else{var c=t[e++]&63;o=(o&240)==224?(o&15)<<12|s<<6|c:(o&7)<<18|s<<12|c<<6|t[e++]&63,65536>o?a+=String.fromCharCode(o):(o-=65536,a+=String.fromCharCode(55296|o>>10,56320|o&1023))}}else a+=String.fromCharCode(o)}return a},ie={};function Me(t){for(;t.length;){var e=t.pop();t.pop()(e)}}function Wt(t){return this.fromWireType(E[t>>2])}var Bt={},kt={},ue={},dr=void 0;function se(t){throw new dr(t)}function it(t,e,r){function a(l){l=r(l),l.length!==t.length&&se("Mismatched type converter count");for(var h=0;h<t.length;++h)pt(t[h],l[h])}t.forEach(function(l){ue[l]=e});var o=Array(e.length),s=[],c=0;e.forEach((l,h)=>{kt.hasOwnProperty(l)?o[h]=kt[l]:(s.push(l),Bt.hasOwnProperty(l)||(Bt[l]=[]),Bt[l].push(()=>{o[h]=kt[l],++c,c===s.length&&a(o)}))}),s.length===0&&a(o)}function ce(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError(`Unknown type size: ${t}`)}}var hr=void 0;function $(t){for(var e="";I[t];)e+=hr[I[t++]];return e}var Dt=void 0;function G(t){throw new Dt(t)}function rn(t,e,r={}){var a=e.name;if(t||G(`type "${a}" must have a positive integer typeid pointer`),kt.hasOwnProperty(t)){if(r.af)return;G(`Cannot register type '${a}' twice`)}kt[t]=e,delete ue[t],Bt.hasOwnProperty(t)&&(e=Bt[t],delete Bt[t],e.forEach(o=>o()))}function pt(t,e,r={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");rn(t,e,r)}function Re(t){G(t.Dd.Jd.Gd.name+" instance already deleted")}var Ie=!1;function pr(){}function yr(t){--t.count.value,t.count.value===0&&(t.Ld?t.Pd.Td(t.Ld):t.Jd.Gd.Td(t.Hd))}function mr(t,e,r){return e===r?t:r.Md===void 0?null:(t=mr(t,e,r.Md),t===null?null:r.Te(t))}var gr={},$t=[];function Be(){for(;$t.length;){var t=$t.pop();t.Dd.$d=!1,t.delete()}}var Vt=void 0,Nt={};function nn(t,e){for(e===void 0&&G("ptr should not be undefined");t.Md;)e=t.ge(e),t=t.Md;return Nt[e]}function le(t,e){return e.Jd&&e.Hd||se("makeClassHandle requires ptr and ptrType"),!!e.Pd!=!!e.Ld&&se("Both smartPtrType and smartPtr must be specified"),e.count={value:1},Yt(Object.create(t,{Dd:{value:e}}))}function Yt(t){return typeof FinalizationRegistry>"u"?(Yt=e=>e,t):(Ie=new FinalizationRegistry(e=>{yr(e.Dd)}),Yt=e=>{var r=e.Dd;return r.Ld&&Ie.register(e,{Dd:r},e),e},pr=e=>{Ie.unregister(e)},Yt(t))}function Et(){}function vr(t){if(t===void 0)return"_unknown";t=t.replace(/[^a-zA-Z0-9_]/g,"$");var e=t.charCodeAt(0);return 48<=e&&57>=e?`_${t}`:t}function De(t,e){return t=vr(t),{[t]:function(){return e.apply(this,arguments)}}[t]}function Ge(t,e,r){if(t[e].Kd===void 0){var a=t[e];t[e]=function(){return t[e].Kd.hasOwnProperty(arguments.length)||G(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${t[e].Kd})!`),t[e].Kd[arguments.length].apply(this,arguments)},t[e].Kd=[],t[e].Kd[a.Yd]=a}}function Le(t,e,r){g.hasOwnProperty(t)?((r===void 0||g[t].Kd!==void 0&&g[t].Kd[r]!==void 0)&&G(`Cannot register public name '${t}' twice`),Ge(g,t,t),g.hasOwnProperty(r)&&G(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),g[t].Kd[r]=e):(g[t]=e,r!==void 0&&(g[t].sf=r))}function an(t,e,r,a,o,s,c,l){this.name=t,this.constructor=e,this.ae=r,this.Td=a,this.Md=o,this.We=s,this.ge=c,this.Te=l,this.ef=[]}function He(t,e,r){for(;e!==r;)e.ge||G(`Expected null or instance of ${r.name}, got an instance of ${e.name}`),t=e.ge(t),e=e.Md;return t}function on(t,e){return e===null?(this.ue&&G(`null is not a valid ${this.name}`),0):(e.Dd||G(`Cannot pass "${je(e)}" as a ${this.name}`),e.Dd.Hd||G(`Cannot pass deleted object as a pointer of type ${this.name}`),He(e.Dd.Hd,e.Dd.Jd.Gd,this.Gd))}function un(t,e){if(e===null){if(this.ue&&G(`null is not a valid ${this.name}`),this.le){var r=this.ve();return t!==null&&t.push(this.Td,r),r}return 0}if(e.Dd||G(`Cannot pass "${je(e)}" as a ${this.name}`),e.Dd.Hd||G(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.ke&&e.Dd.Jd.ke&&G(`Cannot convert argument of type ${e.Dd.Pd?e.Dd.Pd.name:e.Dd.Jd.name} to parameter type ${this.name}`),r=He(e.Dd.Hd,e.Dd.Jd.Gd,this.Gd),this.le)switch(e.Dd.Ld===void 0&&G("Passing raw pointer to smart pointer is illegal"),this.kf){case 0:e.Dd.Pd===this?r=e.Dd.Ld:G(`Cannot convert argument of type ${e.Dd.Pd?e.Dd.Pd.name:e.Dd.Jd.name} to parameter type ${this.name}`);break;case 1:r=e.Dd.Ld;break;case 2:if(e.Dd.Pd===this)r=e.Dd.Ld;else{var a=e.clone();r=this.ff(r,et(function(){a.delete()})),t!==null&&t.push(this.Td,r)}break;default:G("Unsupporting sharing policy")}return r}function sn(t,e){return e===null?(this.ue&&G(`null is not a valid ${this.name}`),0):(e.Dd||G(`Cannot pass "${je(e)}" as a ${this.name}`),e.Dd.Hd||G(`Cannot pass deleted object as a pointer of type ${this.name}`),e.Dd.Jd.ke&&G(`Cannot convert argument of type ${e.Dd.Jd.name} to parameter type ${this.name}`),He(e.Dd.Hd,e.Dd.Jd.Gd,this.Gd))}function yt(t,e,r,a,o,s,c,l,h,b,_){this.name=t,this.Gd=e,this.ue=r,this.ke=a,this.le=o,this.df=s,this.kf=c,this.Ee=l,this.ve=h,this.ff=b,this.Td=_,o||e.Md!==void 0?this.toWireType=un:(this.toWireType=a?on:sn,this.Od=null)}function br(t,e,r){g.hasOwnProperty(t)||se("Replacing nonexistant public symbol"),g[t].Kd!==void 0&&r!==void 0?g[t].Kd[r]=e:(g[t]=e,g[t].Yd=r)}var cn=(t,e)=>{var r=[];return function(){if(r.length=0,Object.assign(r,arguments),t.includes("j")){var a=g["dynCall_"+t];a=r&&r.length?a.apply(null,[e].concat(r)):a.call(null,e)}else a=K.get(e).apply(null,r);return a}};function q(t,e){t=$(t);var r=t.includes("j")?cn(t,e):K.get(e);return typeof r!="function"&&G(`unknown function pointer with signature ${t}: ${e}`),r}var _r=void 0;function Pr(t){t=Wr(t);var e=$(t);return bt(t),e}function zt(t,e){function r(s){o[s]||kt[s]||(ue[s]?ue[s].forEach(r):(a.push(s),o[s]=!0))}var a=[],o={};throw e.forEach(r),new _r(`${t}: `+a.map(Pr).join([", "]))}function fe(t,e,r,a,o){var s=e.length;2>s&&G("argTypes array size mismatch! Must at least get return value and 'this' types!");var c=e[1]!==null&&r!==null,l=!1;for(r=1;r<e.length;++r)if(e[r]!==null&&e[r].Od===void 0){l=!0;break}var h=e[0].name!=="void",b=s-2,_=Array(b),A=[],C=[];return function(){if(arguments.length!==b&&G(`function ${t} called with ${arguments.length} arguments, expected ${b} args!`),C.length=0,A.length=c?2:1,A[0]=o,c){var m=e[1].toWireType(C,this);A[1]=m}for(var S=0;S<b;++S)_[S]=e[S+2].toWireType(C,arguments[S]),A.push(_[S]);if(S=a.apply(null,A),l)Me(C);else for(var k=c?1:2;k<e.length;k++){var U=k===1?m:_[k-2];e[k].Od!==null&&e[k].Od(U)}return m=h?e[0].fromWireType(S):void 0,m}}function de(t,e){for(var r=[],a=0;a<t;a++)r.push(O[e+4*a>>2]);return r}function wr(){this.Sd=[void 0],this.Ce=[]}var Z=new wr;function Oe(t){t>=Z.be&&--Z.get(t).Fe===0&&Z.Je(t)}var tt=t=>(t||G("Cannot use deleted val. handle = "+t),Z.get(t).value),et=t=>{switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return Z.Ie({Fe:1,value:t})}};function ln(t,e,r){switch(e){case 0:return function(a){return this.fromWireType((r?ht:I)[a])};case 1:return function(a){return this.fromWireType((r?At:Rt)[a>>1])};case 2:return function(a){return this.fromWireType((r?E:O)[a>>2])};default:throw new TypeError("Unknown integer type: "+t)}}function qt(t,e){var r=kt[t];return r===void 0&&G(e+" has unknown type "+Pr(t)),r}function je(t){if(t===null)return"null";var e=typeof t;return e==="object"||e==="array"||e==="function"?t.toString():""+t}function fn(t,e){switch(e){case 2:return function(r){return this.fromWireType(F[r>>2])};case 3:return function(r){return this.fromWireType(rr[r>>3])};default:throw new TypeError("Unknown float type: "+t)}}function dn(t,e,r){switch(e){case 0:return r?function(a){return ht[a]}:function(a){return I[a]};case 1:return r?function(a){return At[a>>1]}:function(a){return Rt[a>>1]};case 2:return r?function(a){return E[a>>2]}:function(a){return O[a>>2]};default:throw new TypeError("Unknown integer type: "+t)}}var ut=(t,e,r,a)=>{if(!(0<a))return 0;var o=r;a=r+a-1;for(var s=0;s<t.length;++s){var c=t.charCodeAt(s);if(55296<=c&&57343>=c){var l=t.charCodeAt(++s);c=65536+((c&1023)<<10)|l&1023}if(127>=c){if(r>=a)break;e[r++]=c}else{if(2047>=c){if(r+1>=a)break;e[r++]=192|c>>6}else{if(65535>=c){if(r+2>=a)break;e[r++]=224|c>>12}else{if(r+3>=a)break;e[r++]=240|c>>18,e[r++]=128|c>>12&63}e[r++]=128|c>>6&63}e[r++]=128|c&63}}return e[r]=0,r-o},st=t=>{for(var e=0,r=0;r<t.length;++r){var a=t.charCodeAt(r);127>=a?e++:2047>=a?e+=2:55296<=a&&57343>=a?(e+=4,++r):e+=3}return e},Ar=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,hn=(t,e)=>{for(var r=t>>1,a=r+e/2;!(r>=a)&&Rt[r];)++r;if(r<<=1,32<r-t&&Ar)return Ar.decode(I.subarray(t,r));for(r="",a=0;!(a>=e/2);++a){var o=At[t+2*a>>1];if(o==0)break;r+=String.fromCharCode(o)}return r},pn=(t,e,r)=>{if(r===void 0&&(r=2147483647),2>r)return 0;r-=2;var a=e;r=r<2*t.length?r/2:t.length;for(var o=0;o<r;++o)At[e>>1]=t.charCodeAt(o),e+=2;return At[e>>1]=0,e-a},yn=t=>2*t.length,mn=(t,e)=>{for(var r=0,a="";!(r>=e/4);){var o=E[t+4*r>>2];if(o==0)break;++r,65536<=o?(o-=65536,a+=String.fromCharCode(55296|o>>10,56320|o&1023)):a+=String.fromCharCode(o)}return a},gn=(t,e,r)=>{if(r===void 0&&(r=2147483647),4>r)return 0;var a=e;r=a+r-4;for(var o=0;o<t.length;++o){var s=t.charCodeAt(o);if(55296<=s&&57343>=s){var c=t.charCodeAt(++o);s=65536+((s&1023)<<10)|c&1023}if(E[e>>2]=s,e+=4,e+4>r)break}return E[e>>2]=0,e-a},vn=t=>{for(var e=0,r=0;r<t.length;++r){var a=t.charCodeAt(r);55296<=a&&57343>=a&&++r,e+=4}return e},bn={};function he(t){var e=bn[t];return e===void 0?$(t):e}var pe=[];function Er(){function t(e){e.$$$embind_global$$$=e;var r=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return r||delete e.$$$embind_global$$$,r}if(typeof globalThis=="object")return globalThis;if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&t(global)?$$$embind_global$$$=global:typeof self=="object"&&t(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")}function _n(t){var e=pe.length;return pe.push(t),e}function Pn(t,e){for(var r=Array(t),a=0;a<t;++a)r[a]=qt(O[e+4*a>>2],"parameter "+a);return r}var Cr=[];function wn(t){var e=Array(t+1);return function(r,a,o){e[0]=r;for(var s=0;s<t;++s){var c=qt(O[a+4*s>>2],"parameter "+s);e[s+1]=c.readValueFromPointer(o),o+=c.argPackAdvance}return r=new(r.bind.apply(r,e)),et(r)}}var Tr={};function An(t){var e=t.getExtension("ANGLE_instanced_arrays");e&&(t.vertexAttribDivisor=function(r,a){e.vertexAttribDivisorANGLE(r,a)},t.drawArraysInstanced=function(r,a,o,s){e.drawArraysInstancedANGLE(r,a,o,s)},t.drawElementsInstanced=function(r,a,o,s,c){e.drawElementsInstancedANGLE(r,a,o,s,c)})}function En(t){var e=t.getExtension("OES_vertex_array_object");e&&(t.createVertexArray=function(){return e.createVertexArrayOES()},t.deleteVertexArray=function(r){e.deleteVertexArrayOES(r)},t.bindVertexArray=function(r){e.bindVertexArrayOES(r)},t.isVertexArray=function(r){return e.isVertexArrayOES(r)})}function Cn(t){var e=t.getExtension("WEBGL_draw_buffers");e&&(t.drawBuffers=function(r,a){e.drawBuffersWEBGL(r,a)})}var Sr=1,ye=[],ct=[],me=[],Jt=[],rt=[],lt=[],ge=[],mt=[],xt=[],Mt=[],Fr={},kr={},xr=4;function j(t){ve||(ve=t)}function Gt(t){for(var e=Sr++,r=t.length;r<e;r++)t[r]=null;return e}function Tn(t,e){t.be||(t.be=t.getContext,t.getContext=function(a,o){return o=t.be(a,o),a=="webgl"==o instanceof WebGLRenderingContext?o:null});var r=1<e.majorVersion?t.getContext("webgl2",e):t.getContext("webgl",e);return r?Sn(r,e):0}function Sn(t,e){var r=Gt(mt),a={handle:r,attributes:e,version:e.majorVersion,Qd:t};return t.canvas&&(t.canvas.Ke=a),mt[r]=a,(typeof e.Ue>"u"||e.Ue)&&Fn(a),r}function Mr(t){return R=mt[t],g.qf=p=R&&R.Qd,!(t&&!p)}function Fn(t){if(t||(t=R),!t.bf){t.bf=!0;var e=t.Qd;An(e),En(e),Cn(e),e.ze=e.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"),e.De=e.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"),2<=t.version&&(e.Ae=e.getExtension("EXT_disjoint_timer_query_webgl2")),(2>t.version||!e.Ae)&&(e.Ae=e.getExtension("EXT_disjoint_timer_query")),e.rf=e.getExtension("WEBGL_multi_draw"),(e.getSupportedExtensions()||[]).forEach(function(r){r.includes("lose_context")||r.includes("debug")||e.getExtension(r)})}}var R,ve,Ue={},Rr=()=>{if(!We){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Te||"./this.program"},e;for(e in Ue)Ue[e]===void 0?delete t[e]:t[e]=Ue[e];var r=[];for(e in t)r.push(`${e}=${t[e]}`);We=r}return We},We,kn=[null,[],[]];function Ir(t){p.bindVertexArray(ge[t])}function Br(t,e){for(var r=0;r<t;r++){var a=E[e+4*r>>2];p.deleteVertexArray(ge[a]),ge[a]=null}}var be=[];function Dr(t,e,r,a){p.drawElements(t,e,r,a)}function Lt(t,e,r,a){for(var o=0;o<t;o++){var s=p[r](),c=s&&Gt(a);s?(s.name=c,a[c]=s):j(1282),E[e+4*o>>2]=c}}function Gr(t,e){Lt(t,e,"createVertexArray",ge)}function Lr(t,e,r){if(e){var a=void 0;switch(t){case 36346:a=1;break;case 36344:r!=0&&r!=1&&j(1280);return;case 34814:case 36345:a=0;break;case 34466:var o=p.getParameter(34467);a=o?o.length:0;break;case 33309:if(2>R.version){j(1282);return}a=2*(p.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>R.version){j(1280);return}a=t==33307?3:0}if(a===void 0)switch(o=p.getParameter(t),typeof o){case"number":a=o;break;case"boolean":a=o?1:0;break;case"string":j(1280);return;case"object":if(o===null)switch(t){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:a=0;break;default:j(1280);return}else{if(o instanceof Float32Array||o instanceof Uint32Array||o instanceof Int32Array||o instanceof Array){for(t=0;t<o.length;++t)switch(r){case 0:E[e+4*t>>2]=o[t];break;case 2:F[e+4*t>>2]=o[t];break;case 4:ht[e+t>>0]=o[t]?1:0}return}try{a=o.name|0}catch(s){j(1280),wt("GL_INVALID_ENUM in glGet"+r+"v: Unknown object returned from WebGL getParameter("+t+")! (error: "+s+")");return}}break;default:j(1280),wt("GL_INVALID_ENUM in glGet"+r+"v: Native code calling glGet"+r+"v("+t+") and it returns "+o+" of type "+typeof o+"!");return}switch(r){case 1:r=a,O[e>>2]=r,O[e+4>>2]=(r-O[e>>2])/4294967296;break;case 0:E[e>>2]=a;break;case 2:F[e>>2]=a;break;case 4:ht[e>>0]=a?1:0}}else j(1281)}var Kt=t=>{var e=st(t)+1,r=Ae(e);return r&&ut(t,I,r,e),r};function Hr(t){return t.slice(-1)=="]"&&t.lastIndexOf("[")}function _e(t){return t-=5120,t==0?ht:t==1?I:t==2?At:t==4?E:t==6?F:t==5||t==28922||t==28520||t==30779||t==30782?O:Rt}function $e(t,e,r,a,o){t=_e(t);var s=31-Math.clz32(t.BYTES_PER_ELEMENT),c=xr;return t.subarray(o>>s,o+a*(r*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[e-6402]||1)*(1<<s)+c-1&-c)>>s)}function L(t){var e=p.Re;if(e){var r=e.fe[t];return typeof r=="number"&&(e.fe[t]=r=p.getUniformLocation(e,e.Ge[t]+(0<r?"["+r+"]":""))),r}j(1282)}var Ct=[],Xt=[],Pe=t=>t%4===0&&(t%100!==0||t%400===0),Or=[31,29,31,30,31,30,31,31,30,31,30,31],jr=[31,28,31,30,31,30,31,31,30,31,30,31];function xn(t){var e=Array(st(t)+1);return ut(t,e,0,e.length),e}var Mn=(t,e,r,a)=>{function o(m,S,k){for(m=typeof m=="number"?m.toString():m||"";m.length<S;)m=k[0]+m;return m}function s(m,S){return o(m,S,"0")}function c(m,S){function k(J){return 0>J?-1:0<J?1:0}var U;return(U=k(m.getFullYear()-S.getFullYear()))===0&&(U=k(m.getMonth()-S.getMonth()))===0&&(U=k(m.getDate()-S.getDate())),U}function l(m){switch(m.getDay()){case 0:return new Date(m.getFullYear()-1,11,29);case 1:return m;case 2:return new Date(m.getFullYear(),0,3);case 3:return new Date(m.getFullYear(),0,2);case 4:return new Date(m.getFullYear(),0,1);case 5:return new Date(m.getFullYear()-1,11,31);case 6:return new Date(m.getFullYear()-1,11,30)}}function h(m){var S=m.Vd;for(m=new Date(new Date(m.Wd+1900,0,1).getTime());0<S;){var k=m.getMonth(),U=(Pe(m.getFullYear())?Or:jr)[k];if(S>U-m.getDate())S-=U-m.getDate()+1,m.setDate(1),11>k?m.setMonth(k+1):(m.setMonth(0),m.setFullYear(m.getFullYear()+1));else{m.setDate(m.getDate()+S);break}}return k=new Date(m.getFullYear()+1,0,4),S=l(new Date(m.getFullYear(),0,4)),k=l(k),0>=c(S,m)?0>=c(k,m)?m.getFullYear()+1:m.getFullYear():m.getFullYear()-1}var b=E[a+40>>2];a={nf:E[a>>2],mf:E[a+4>>2],pe:E[a+8>>2],we:E[a+12>>2],qe:E[a+16>>2],Wd:E[a+20>>2],Rd:E[a+24>>2],Vd:E[a+28>>2],uf:E[a+32>>2],lf:E[a+36>>2],pf:b&&b?Ft(I,b):""},r=r?Ft(I,r):"",b={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var _ in b)r=r.replace(new RegExp(_,"g"),b[_]);var A="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),C="January February March April May June July August September October November December".split(" ");b={"%a":m=>A[m.Rd].substring(0,3),"%A":m=>A[m.Rd],"%b":m=>C[m.qe].substring(0,3),"%B":m=>C[m.qe],"%C":m=>s((m.Wd+1900)/100|0,2),"%d":m=>s(m.we,2),"%e":m=>o(m.we,2," "),"%g":m=>h(m).toString().substring(2),"%G":m=>h(m),"%H":m=>s(m.pe,2),"%I":m=>(m=m.pe,m==0?m=12:12<m&&(m-=12),s(m,2)),"%j":m=>{for(var S=0,k=0;k<=m.qe-1;S+=(Pe(m.Wd+1900)?Or:jr)[k++]);return s(m.we+S,3)},"%m":m=>s(m.qe+1,2),"%M":m=>s(m.mf,2),"%n":()=>`
2
+ `,"%p":m=>0<=m.pe&&12>m.pe?"AM":"PM","%S":m=>s(m.nf,2),"%t":()=>" ","%u":m=>m.Rd||7,"%U":m=>s(Math.floor((m.Vd+7-m.Rd)/7),2),"%V":m=>{var S=Math.floor((m.Vd+7-(m.Rd+6)%7)/7);if(2>=(m.Rd+371-m.Vd-2)%7&&S++,S)S==53&&(k=(m.Rd+371-m.Vd)%7,k==4||k==3&&Pe(m.Wd)||(S=1));else{S=52;var k=(m.Rd+7-m.Vd-1)%7;(k==4||k==5&&Pe(m.Wd%400-1))&&S++}return s(S,2)},"%w":m=>m.Rd,"%W":m=>s(Math.floor((m.Vd+7-(m.Rd+6)%7)/7),2),"%y":m=>(m.Wd+1900).toString().substring(2),"%Y":m=>m.Wd+1900,"%z":m=>{m=m.lf;var S=0<=m;return m=Math.abs(m)/60,(S?"+":"-")+("0000"+(m/60*100+m%60)).slice(-4)},"%Z":m=>m.pf,"%%":()=>"%"},r=r.replace(/%%/g,"\0\0");for(_ in b)r.includes(_)&&(r=r.replace(new RegExp(_,"g"),b[_](a)));return r=r.replace(/\0\0/g,"%"),_=xn(r),_.length>e?0:(ht.set(_,t),_.length-1)};dr=g.InternalError=class extends Error{constructor(t){super(t),this.name="InternalError"}};for(var Ur=Array(256),we=0;256>we;++we)Ur[we]=String.fromCharCode(we);hr=Ur,Dt=g.BindingError=class extends Error{constructor(t){super(t),this.name="BindingError"}},Et.prototype.isAliasOf=function(t){if(!(this instanceof Et&&t instanceof Et))return!1;var e=this.Dd.Jd.Gd,r=this.Dd.Hd,a=t.Dd.Jd.Gd;for(t=t.Dd.Hd;e.Md;)r=e.ge(r),e=e.Md;for(;a.Md;)t=a.ge(t),a=a.Md;return e===a&&r===t},Et.prototype.clone=function(){if(this.Dd.Hd||Re(this),this.Dd.ee)return this.Dd.count.value+=1,this;var t=Yt,e=Object,r=e.create,a=Object.getPrototypeOf(this),o=this.Dd;return t=t(r.call(e,a,{Dd:{value:{count:o.count,$d:o.$d,ee:o.ee,Hd:o.Hd,Jd:o.Jd,Ld:o.Ld,Pd:o.Pd}}})),t.Dd.count.value+=1,t.Dd.$d=!1,t},Et.prototype.delete=function(){this.Dd.Hd||Re(this),this.Dd.$d&&!this.Dd.ee&&G("Object already scheduled for deletion"),pr(this),yr(this.Dd),this.Dd.ee||(this.Dd.Ld=void 0,this.Dd.Hd=void 0)},Et.prototype.isDeleted=function(){return!this.Dd.Hd},Et.prototype.deleteLater=function(){return this.Dd.Hd||Re(this),this.Dd.$d&&!this.Dd.ee&&G("Object already scheduled for deletion"),$t.push(this),$t.length===1&&Vt&&Vt(Be),this.Dd.$d=!0,this},g.getInheritedInstanceCount=function(){return Object.keys(Nt).length},g.getLiveInheritedInstances=function(){var t=[],e;for(e in Nt)Nt.hasOwnProperty(e)&&t.push(Nt[e]);return t},g.flushPendingDeletes=Be,g.setDelayFunction=function(t){Vt=t,$t.length&&Vt&&Vt(Be)},yt.prototype.Xe=function(t){return this.Ee&&(t=this.Ee(t)),t},yt.prototype.ye=function(t){this.Td&&this.Td(t)},yt.prototype.argPackAdvance=8,yt.prototype.readValueFromPointer=Wt,yt.prototype.deleteObject=function(t){t!==null&&t.delete()},yt.prototype.fromWireType=function(t){function e(){return this.le?le(this.Gd.ae,{Jd:this.df,Hd:r,Pd:this,Ld:t}):le(this.Gd.ae,{Jd:this,Hd:t})}var r=this.Xe(t);if(!r)return this.ye(t),null;var a=nn(this.Gd,r);if(a!==void 0)return a.Dd.count.value===0?(a.Dd.Hd=r,a.Dd.Ld=t,a.clone()):(a=a.clone(),this.ye(t),a);if(a=this.Gd.We(r),a=gr[a],!a)return e.call(this);a=this.ke?a.Qe:a.pointerType;var o=mr(r,this.Gd,a.Gd);return o===null?e.call(this):this.le?le(a.Gd.ae,{Jd:a,Hd:o,Pd:this,Ld:t}):le(a.Gd.ae,{Jd:a,Hd:o})},_r=g.UnboundTypeError=(function(t,e){var r=De(e,function(a){this.name=e,this.message=a,a=Error(a).stack,a!==void 0&&(this.stack=this.toString()+`
3
+ `+a.replace(/^Error(:[^\n]*)?\n/,""))});return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},r})(Error,"UnboundTypeError"),Object.assign(wr.prototype,{get(t){return this.Sd[t]},has(t){return this.Sd[t]!==void 0},Ie(t){var e=this.Ce.pop()||this.Sd.length;return this.Sd[e]=t,e},Je(t){this.Sd[t]=void 0,this.Ce.push(t)}}),Z.Sd.push({value:void 0},{value:null},{value:!0},{value:!1}),Z.be=Z.Sd.length,g.count_emval_handles=function(){for(var t=0,e=Z.be;e<Z.Sd.length;++e)Z.Sd[e]!==void 0&&++t;return t};for(var p,X=0;32>X;++X)be.push(Array(X));var Rn=new Float32Array(288);for(X=0;288>X;++X)Ct[X]=Rn.subarray(0,X+1);var In=new Int32Array(288);for(X=0;288>X;++X)Xt[X]=In.subarray(0,X+1);var Bn={Q:function(){return 0},Ab:()=>{},Cb:function(){return 0},xb:()=>{},yb:()=>{},R:function(){},zb:()=>{},v:function(t){var e=ie[t];delete ie[t];var r=e.ve,a=e.Td,o=e.Be,s=o.map(c=>c.$e).concat(o.map(c=>c.hf));it([t],s,c=>{var l={};return o.forEach((h,b)=>{var _=c[b],A=h.Ye,C=h.Ze,m=c[b+o.length],S=h.gf,k=h.jf;l[h.Ve]={read:U=>_.fromWireType(A(C,U)),write:(U,J)=>{var Y=[];S(k,U,m.toWireType(Y,J)),Me(Y)}}}),[{name:e.name,fromWireType:function(h){var b={},_;for(_ in l)b[_]=l[_].read(h);return a(h),b},toWireType:function(h,b){for(var _ in l)if(!(_ in b))throw new TypeError(`Missing field: "${_}"`);var A=r();for(_ in l)l[_].write(A,b[_]);return h!==null&&h.push(a,A),A},argPackAdvance:8,readValueFromPointer:Wt,Od:a}]})},pb:function(){},Gb:function(t,e,r,a,o){var s=ce(r);e=$(e),pt(t,{name:e,fromWireType:function(c){return!!c},toWireType:function(c,l){return l?a:o},argPackAdvance:8,readValueFromPointer:function(c){if(r===1)var l=ht;else if(r===2)l=At;else if(r===4)l=E;else throw new TypeError("Unknown boolean type size: "+e);return this.fromWireType(l[c>>s])},Od:null})},k:function(t,e,r,a,o,s,c,l,h,b,_,A,C){_=$(_),s=q(o,s),l&&(l=q(c,l)),b&&(b=q(h,b)),C=q(A,C);var m=vr(_);Le(m,function(){zt(`Cannot construct ${_} due to unbound types`,[a])}),it([t,e,r],a?[a]:[],function(S){if(S=S[0],a)var k=S.Gd,U=k.ae;else U=Et.prototype;S=De(m,function(){if(Object.getPrototypeOf(this)!==J)throw new Dt("Use 'new' to construct "+_);if(Y.Ud===void 0)throw new Dt(_+" has no accessible constructor");var Ht=Y.Ud[arguments.length];if(Ht===void 0)throw new Dt(`Tried to invoke ctor of ${_} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(Y.Ud).toString()}) parameters instead!`);return Ht.apply(this,arguments)});var J=Object.create(U,{constructor:{value:S}});S.prototype=J;var Y=new an(_,S,J,C,k,s,l,b);Y.Md&&(Y.Md.he===void 0&&(Y.Md.he=[]),Y.Md.he.push(Y)),k=new yt(_,Y,!0,!1,!1),U=new yt(_+"*",Y,!1,!1,!1);var gt=new yt(_+" const*",Y,!1,!0,!1);return gr[t]={pointerType:U,Qe:gt},br(m,S),[k,U,gt]})},f:function(t,e,r,a,o,s,c){var l=de(r,a);e=$(e),s=q(o,s),it([],[t],function(h){function b(){zt(`Cannot call ${_} due to unbound types`,l)}h=h[0];var _=`${h.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]);var A=h.Gd.constructor;return A[e]===void 0?(b.Yd=r-1,A[e]=b):(Ge(A,e,_),A[e].Kd[r-1]=b),it([],l,function(C){if(C=[C[0],null].concat(C.slice(1)),C=fe(_,C,null,s,c),A[e].Kd===void 0?(C.Yd=r-1,A[e]=C):A[e].Kd[r-1]=C,h.Gd.he)for(let m of h.Gd.he)m.constructor.hasOwnProperty(e)||(m.constructor[e]=C);return[]}),[]})},t:function(t,e,r,a,o,s){var c=de(e,r);o=q(a,o),it([],[t],function(l){l=l[0];var h=`constructor ${l.name}`;if(l.Gd.Ud===void 0&&(l.Gd.Ud=[]),l.Gd.Ud[e-1]!==void 0)throw new Dt(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${l.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return l.Gd.Ud[e-1]=()=>{zt(`Cannot construct ${l.name} due to unbound types`,c)},it([],c,function(b){return b.splice(1,0,null),l.Gd.Ud[e-1]=fe(h,b,null,o,s),[]}),[]})},b:function(t,e,r,a,o,s,c,l){var h=de(r,a);e=$(e),s=q(o,s),it([],[t],function(b){function _(){zt(`Cannot call ${A} due to unbound types`,h)}b=b[0];var A=`${b.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),l&&b.Gd.ef.push(e);var C=b.Gd.ae,m=C[e];return m===void 0||m.Kd===void 0&&m.className!==b.name&&m.Yd===r-2?(_.Yd=r-2,_.className=b.name,C[e]=_):(Ge(C,e,A),C[e].Kd[r-2]=_),it([],h,function(S){return S=fe(A,S,b,s,c),C[e].Kd===void 0?(S.Yd=r-2,C[e]=S):C[e].Kd[r-2]=S,[]}),[]})},o:function(t,e,r){t=$(t),it([],[e],function(a){return a=a[0],g[t]=a.fromWireType(r),[]})},Fb:function(t,e){e=$(e),pt(t,{name:e,fromWireType:function(r){var a=tt(r);return Oe(r),a},toWireType:function(r,a){return et(a)},argPackAdvance:8,readValueFromPointer:Wt,Od:null})},j:function(t,e,r,a){function o(){}r=ce(r),e=$(e),o.values={},pt(t,{name:e,constructor:o,fromWireType:function(s){return this.constructor.values[s]},toWireType:function(s,c){return c.value},argPackAdvance:8,readValueFromPointer:ln(e,r,a),Od:null}),Le(e,o)},c:function(t,e,r){var a=qt(t,"enum");e=$(e),t=a.constructor,a=Object.create(a.constructor.prototype,{value:{value:r},constructor:{value:De(`${a.name}_${e}`,function(){})}}),t.values[r]=a,t[e]=a},T:function(t,e,r){r=ce(r),e=$(e),pt(t,{name:e,fromWireType:function(a){return a},toWireType:function(a,o){return o},argPackAdvance:8,readValueFromPointer:fn(e,r),Od:null})},r:function(t,e,r,a,o,s){var c=de(e,r);t=$(t),o=q(a,o),Le(t,function(){zt(`Cannot call ${t} due to unbound types`,c)},e-1),it([],c,function(l){return l=[l[0],null].concat(l.slice(1)),br(t,fe(t,l,null,o,s),e-1),[]})},x:function(t,e,r,a,o){e=$(e),o===-1&&(o=4294967295),o=ce(r);var s=l=>l;if(a===0){var c=32-8*r;s=l=>l<<c>>>c}r=e.includes("unsigned")?function(l,h){return h>>>0}:function(l,h){return h},pt(t,{name:e,fromWireType:s,toWireType:r,argPackAdvance:8,readValueFromPointer:dn(e,o,a!==0),Od:null})},n:function(t,e,r){function a(s){s>>=2;var c=O;return new o(c.buffer,c[s+1],c[s])}var o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];r=$(r),pt(t,{name:r,fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{af:!0})},m:function(t,e,r,a,o,s,c,l,h,b,_,A){r=$(r),s=q(o,s),l=q(c,l),b=q(h,b),A=q(_,A),it([t],[e],function(C){return C=C[0],[new yt(r,C.Gd,!1,!1,!0,C,a,s,l,b,A)]})},S:function(t,e){e=$(e);var r=e==="std::string";pt(t,{name:e,fromWireType:function(a){var o=O[a>>2],s=a+4;if(r)for(var c=s,l=0;l<=o;++l){var h=s+l;if(l==o||I[h]==0){if(c=c?Ft(I,c,h-c):"",b===void 0)var b=c;else b+="\0",b+=c;c=h+1}}else{for(b=Array(o),l=0;l<o;++l)b[l]=String.fromCharCode(I[s+l]);b=b.join("")}return bt(a),b},toWireType:function(a,o){o instanceof ArrayBuffer&&(o=new Uint8Array(o));var s=typeof o=="string";s||o instanceof Uint8Array||o instanceof Uint8ClampedArray||o instanceof Int8Array||G("Cannot pass non-string to std::string");var c=r&&s?st(o):o.length,l=Ae(4+c+1),h=l+4;if(O[l>>2]=c,r&&s)ut(o,I,h,c+1);else if(s)for(s=0;s<c;++s){var b=o.charCodeAt(s);255<b&&(bt(h),G("String has UTF-16 code units that do not fit in 8 bits")),I[h+s]=b}else for(s=0;s<c;++s)I[h+s]=o[s];return a!==null&&a.push(bt,l),l},argPackAdvance:8,readValueFromPointer:Wt,Od:function(a){bt(a)}})},K:function(t,e,r){if(r=$(r),e===2)var a=hn,o=pn,s=yn,c=()=>Rt,l=1;else e===4&&(a=mn,o=gn,s=vn,c=()=>O,l=2);pt(t,{name:r,fromWireType:function(h){for(var b=O[h>>2],_=c(),A,C=h+4,m=0;m<=b;++m){var S=h+4+m*e;(m==b||_[S>>l]==0)&&(C=a(C,S-C),A===void 0?A=C:(A+="\0",A+=C),C=S+e)}return bt(h),A},toWireType:function(h,b){typeof b!="string"&&G(`Cannot pass non-string to C++ string type ${r}`);var _=s(b),A=Ae(4+_+e);return O[A>>2]=_>>l,o(b,A+4,_+e),h!==null&&h.push(bt,A),A},argPackAdvance:8,readValueFromPointer:Wt,Od:function(h){bt(h)}})},w:function(t,e,r,a,o,s){ie[t]={name:$(e),ve:q(r,a),Td:q(o,s),Be:[]}},e:function(t,e,r,a,o,s,c,l,h,b){ie[t].Be.push({Ve:$(e),$e:r,Ye:q(a,o),Ze:s,hf:c,gf:q(l,h),jf:b})},Hb:function(t,e){e=$(e),pt(t,{cf:!0,name:e,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},Eb:()=>!0,tb:()=>{throw 1/0},y:function(t,e,r){t=tt(t),e=qt(e,"emval::as");var a=[],o=et(a);return O[r>>2]=o,e.toWireType(a,t)},Y:function(t,e,r,a,o){t=pe[t],e=tt(e),r=he(r);var s=[];return O[a>>2]=et(s),t(e,r,s,o)},q:function(t,e,r,a){t=pe[t],e=tt(e),r=he(r),t(e,r,null,a)},d:Oe,H:function(t){return t===0?et(Er()):(t=he(t),et(Er()[t]))},p:function(t,e){var r=Pn(t,e),a=r[0];e=a.name+"_$"+r.slice(1).map(function(c){return c.name}).join("_")+"$";var o=Cr[e];if(o!==void 0)return o;var s=Array(t-1);return o=_n((c,l,h,b)=>{for(var _=0,A=0;A<t-1;++A)s[A]=r[A+1].readValueFromPointer(b+_),_+=r[A+1].argPackAdvance;for(c=c[l].apply(c,s),A=0;A<t-1;++A)r[A+1].Se&&r[A+1].Se(s[A]);if(!a.cf)return a.toWireType(h,c)}),Cr[e]=o},s:function(t,e){return t=tt(t),e=tt(e),et(t[e])},l:function(t){4<t&&(Z.get(t).Fe+=1)},G:function(t,e,r,a){t=tt(t);var o=Tr[e];return o||(o=wn(e),Tr[e]=o),o(t,r,a)},C:function(){return et([])},g:function(t){return et(he(t))},z:function(){return et({})},jb:function(t){return t=tt(t),!t},u:function(t){var e=tt(t);Me(e),Oe(t)},i:function(t,e,r){t=tt(t),e=tt(e),r=tt(r),t[e]=r},h:function(t,e){return t=qt(t,"_emval_take_value"),t=t.readValueFromPointer(e),et(t)},mb:function(){return-52},nb:function(){},a:()=>{ke("")},Db:()=>performance.now(),ub:t=>{var e=I.length;if(t>>>=0,2147483648<t)return!1;for(var r=1;4>=r;r*=2){var a=e*(1+.2/r);a=Math.min(a,t+100663296);var o=Math;a=Math.max(t,a);t:{o=o.min.call(o,2147483648,a+(65536-a%65536)%65536)-oe.buffer.byteLength+65535>>>16;try{oe.grow(o),nr();var s=1;break t}catch{}s=void 0}if(s)return!0}return!1},kb:function(){return R?R.handle:0},vb:(t,e)=>{var r=0;return Rr().forEach(function(a,o){var s=e+r;for(o=O[t+4*o>>2]=s,s=0;s<a.length;++s)ht[o++>>0]=a.charCodeAt(s);ht[o>>0]=0,r+=a.length+1}),0},wb:(t,e)=>{var r=Rr();O[t>>2]=r.length;var a=0;return r.forEach(function(o){a+=o.length+1}),O[e>>2]=a,0},J:()=>52,lb:function(){return 52},Bb:()=>52,ob:function(){return 70},P:(t,e,r,a)=>{for(var o=0,s=0;s<r;s++){var c=O[e>>2],l=O[e+4>>2];e+=8;for(var h=0;h<l;h++){var b=I[c+h],_=kn[t];b===0||b===10?((t===1?Qr:wt)(Ft(_,0)),_.length=0):_.push(b)}o+=l}return O[a>>2]=o,0},$:function(t){p.activeTexture(t)},aa:function(t,e){p.attachShader(ct[t],lt[e])},ba:function(t,e,r){p.bindAttribLocation(ct[t],e,r?Ft(I,r):"")},ca:function(t,e){t==35051?p.se=e:t==35052&&(p.Zd=e),p.bindBuffer(t,ye[e])},_:function(t,e){p.bindFramebuffer(t,me[e])},ac:function(t,e){p.bindRenderbuffer(t,Jt[e])},Mb:function(t,e){p.bindSampler(t,xt[e])},da:function(t,e){p.bindTexture(t,rt[e])},uc:Ir,xc:Ir,ea:function(t,e,r,a){p.blendColor(t,e,r,a)},fa:function(t){p.blendEquation(t)},ga:function(t,e){p.blendFunc(t,e)},Wb:function(t,e,r,a,o,s,c,l,h,b){p.blitFramebuffer(t,e,r,a,o,s,c,l,h,b)},ha:function(t,e,r,a){2<=R.version?r&&e?p.bufferData(t,I,a,r,e):p.bufferData(t,e,a):p.bufferData(t,r?I.subarray(r,r+e):e,a)},ia:function(t,e,r,a){2<=R.version?r&&p.bufferSubData(t,e,I,a,r):p.bufferSubData(t,e,I.subarray(a,a+r))},bc:function(t){return p.checkFramebufferStatus(t)},N:function(t){p.clear(t)},Z:function(t,e,r,a){p.clearColor(t,e,r,a)},O:function(t){p.clearStencil(t)},rb:function(t,e,r,a){return p.clientWaitSync(Mt[t],e,(r>>>0)+4294967296*a)},ja:function(t,e,r,a){p.colorMask(!!t,!!e,!!r,!!a)},ka:function(t){p.compileShader(lt[t])},la:function(t,e,r,a,o,s,c,l){2<=R.version?p.Zd||!c?p.compressedTexImage2D(t,e,r,a,o,s,c,l):p.compressedTexImage2D(t,e,r,a,o,s,I,l,c):p.compressedTexImage2D(t,e,r,a,o,s,l?I.subarray(l,l+c):null)},ma:function(t,e,r,a,o,s,c,l,h){2<=R.version?p.Zd||!l?p.compressedTexSubImage2D(t,e,r,a,o,s,c,l,h):p.compressedTexSubImage2D(t,e,r,a,o,s,c,I,h,l):p.compressedTexSubImage2D(t,e,r,a,o,s,c,h?I.subarray(h,h+l):null)},Ub:function(t,e,r,a,o){p.copyBufferSubData(t,e,r,a,o)},na:function(t,e,r,a,o,s,c,l){p.copyTexSubImage2D(t,e,r,a,o,s,c,l)},oa:function(){var t=Gt(ct),e=p.createProgram();return e.name=t,e.oe=e.me=e.ne=0,e.xe=1,ct[t]=e,t},pa:function(t){var e=Gt(lt);return lt[e]=p.createShader(t),e},qa:function(t){p.cullFace(t)},ra:function(t,e){for(var r=0;r<t;r++){var a=E[e+4*r>>2],o=ye[a];o&&(p.deleteBuffer(o),o.name=0,ye[a]=null,a==p.se&&(p.se=0),a==p.Zd&&(p.Zd=0))}},cc:function(t,e){for(var r=0;r<t;++r){var a=E[e+4*r>>2],o=me[a];o&&(p.deleteFramebuffer(o),o.name=0,me[a]=null)}},sa:function(t){if(t){var e=ct[t];e?(p.deleteProgram(e),e.name=0,ct[t]=null):j(1281)}},dc:function(t,e){for(var r=0;r<t;r++){var a=E[e+4*r>>2],o=Jt[a];o&&(p.deleteRenderbuffer(o),o.name=0,Jt[a]=null)}},Nb:function(t,e){for(var r=0;r<t;r++){var a=E[e+4*r>>2],o=xt[a];o&&(p.deleteSampler(o),o.name=0,xt[a]=null)}},ta:function(t){if(t){var e=lt[t];e?(p.deleteShader(e),lt[t]=null):j(1281)}},Vb:function(t){if(t){var e=Mt[t];e?(p.deleteSync(e),e.name=0,Mt[t]=null):j(1281)}},ua:function(t,e){for(var r=0;r<t;r++){var a=E[e+4*r>>2],o=rt[a];o&&(p.deleteTexture(o),o.name=0,rt[a]=null)}},vc:Br,yc:Br,va:function(t){p.depthMask(!!t)},wa:function(t){p.disable(t)},xa:function(t){p.disableVertexAttribArray(t)},ya:function(t,e,r){p.drawArrays(t,e,r)},sc:function(t,e,r,a){p.drawArraysInstanced(t,e,r,a)},qc:function(t,e,r,a,o){p.ze.drawArraysInstancedBaseInstanceWEBGL(t,e,r,a,o)},oc:function(t,e){for(var r=be[t],a=0;a<t;a++)r[a]=E[e+4*a>>2];p.drawBuffers(r)},za:Dr,tc:function(t,e,r,a,o){p.drawElementsInstanced(t,e,r,a,o)},rc:function(t,e,r,a,o,s,c){p.ze.drawElementsInstancedBaseVertexBaseInstanceWEBGL(t,e,r,a,o,s,c)},ic:function(t,e,r,a,o,s){Dr(t,a,o,s)},Aa:function(t){p.enable(t)},Ba:function(t){p.enableVertexAttribArray(t)},Sb:function(t,e){return(t=p.fenceSync(t,e))?(e=Gt(Mt),t.name=e,Mt[e]=t,e):0},Ca:function(){p.finish()},Da:function(){p.flush()},ec:function(t,e,r,a){p.framebufferRenderbuffer(t,e,r,Jt[a])},fc:function(t,e,r,a,o){p.framebufferTexture2D(t,e,r,rt[a],o)},Ea:function(t){p.frontFace(t)},Fa:function(t,e){Lt(t,e,"createBuffer",ye)},gc:function(t,e){Lt(t,e,"createFramebuffer",me)},hc:function(t,e){Lt(t,e,"createRenderbuffer",Jt)},Ob:function(t,e){Lt(t,e,"createSampler",xt)},Ga:function(t,e){Lt(t,e,"createTexture",rt)},wc:Gr,zc:Gr,Yb:function(t){p.generateMipmap(t)},Ha:function(t,e,r){r?E[r>>2]=p.getBufferParameter(t,e):j(1281)},Ia:function(){var t=p.getError()||ve;return ve=0,t},Ja:function(t,e){Lr(t,e,2)},Zb:function(t,e,r,a){t=p.getFramebufferAttachmentParameter(t,e,r),(t instanceof WebGLRenderbuffer||t instanceof WebGLTexture)&&(t=t.name|0),E[a>>2]=t},I:function(t,e){Lr(t,e,0)},Ka:function(t,e,r,a){t=p.getProgramInfoLog(ct[t]),t===null&&(t="(unknown error)"),e=0<e&&a?ut(t,I,a,e):0,r&&(E[r>>2]=e)},La:function(t,e,r){if(r)if(t>=Sr)j(1281);else if(t=ct[t],e==35716)t=p.getProgramInfoLog(t),t===null&&(t="(unknown error)"),E[r>>2]=t.length+1;else if(e==35719){if(!t.oe)for(e=0;e<p.getProgramParameter(t,35718);++e)t.oe=Math.max(t.oe,p.getActiveUniform(t,e).name.length+1);E[r>>2]=t.oe}else if(e==35722){if(!t.me)for(e=0;e<p.getProgramParameter(t,35721);++e)t.me=Math.max(t.me,p.getActiveAttrib(t,e).name.length+1);E[r>>2]=t.me}else if(e==35381){if(!t.ne)for(e=0;e<p.getProgramParameter(t,35382);++e)t.ne=Math.max(t.ne,p.getActiveUniformBlockName(t,e).length+1);E[r>>2]=t.ne}else E[r>>2]=p.getProgramParameter(t,e);else j(1281)},_b:function(t,e,r){r?E[r>>2]=p.getRenderbufferParameter(t,e):j(1281)},Ma:function(t,e,r,a){t=p.getShaderInfoLog(lt[t]),t===null&&(t="(unknown error)"),e=0<e&&a?ut(t,I,a,e):0,r&&(E[r>>2]=e)},Jb:function(t,e,r,a){t=p.getShaderPrecisionFormat(t,e),E[r>>2]=t.rangeMin,E[r+4>>2]=t.rangeMax,E[a>>2]=t.precision},Na:function(t,e,r){r?e==35716?(t=p.getShaderInfoLog(lt[t]),t===null&&(t="(unknown error)"),E[r>>2]=t?t.length+1:0):e==35720?(t=p.getShaderSource(lt[t]),E[r>>2]=t?t.length+1:0):E[r>>2]=p.getShaderParameter(lt[t],e):j(1281)},M:function(t){var e=Fr[t];if(!e){switch(t){case 7939:e=p.getSupportedExtensions()||[],e=e.concat(e.map(function(a){return"GL_"+a})),e=Kt(e.join(" "));break;case 7936:case 7937:case 37445:case 37446:(e=p.getParameter(t))||j(1280),e=e&&Kt(e);break;case 7938:e=p.getParameter(7938),e=2<=R.version?"OpenGL ES 3.0 ("+e+")":"OpenGL ES 2.0 ("+e+")",e=Kt(e);break;case 35724:e=p.getParameter(35724);var r=e.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);r!==null&&(r[1].length==3&&(r[1]+="0"),e="OpenGL ES GLSL ES "+r[1]+" ("+e+")"),e=Kt(e);break;default:j(1280)}Fr[t]=e}return e},ib:function(t,e){if(2>R.version)return j(1282),0;var r=kr[t];if(r)return 0>e||e>=r.length?(j(1281),0):r[e];switch(t){case 7939:return r=p.getSupportedExtensions()||[],r=r.concat(r.map(function(a){return"GL_"+a})),r=r.map(function(a){return Kt(a)}),r=kr[t]=r,0>e||e>=r.length?(j(1281),0):r[e];default:return j(1280),0}},Oa:function(t,e){if(e=e?Ft(I,e):"",t=ct[t]){var r=t,a=r.fe,o=r.He,s;if(!a)for(r.fe=a={},r.Ge={},s=0;s<p.getProgramParameter(r,35718);++s){var c=p.getActiveUniform(r,s),l=c.name;c=c.size;var h=Hr(l);h=0<h?l.slice(0,h):l;var b=r.xe;for(r.xe+=c,o[h]=[c,b],l=0;l<c;++l)a[b]=l,r.Ge[b++]=h}if(r=t.fe,a=0,o=e,s=Hr(e),0<s&&(a=parseInt(e.slice(s+1))>>>0,o=e.slice(0,s)),(o=t.He[o])&&a<o[0]&&(a+=o[1],r[a]=r[a]||p.getUniformLocation(t,e)))return a}else j(1281);return-1},Kb:function(t,e,r){for(var a=be[e],o=0;o<e;o++)a[o]=E[r+4*o>>2];p.invalidateFramebuffer(t,a)},Lb:function(t,e,r,a,o,s,c){for(var l=be[e],h=0;h<e;h++)l[h]=E[r+4*h>>2];p.invalidateSubFramebuffer(t,l,a,o,s,c)},Tb:function(t){return p.isSync(Mt[t])},Pa:function(t){return(t=rt[t])?p.isTexture(t):0},Qa:function(t){p.lineWidth(t)},Ra:function(t){t=ct[t],p.linkProgram(t),t.fe=0,t.He={}},mc:function(t,e,r,a,o,s){p.De.multiDrawArraysInstancedBaseInstanceWEBGL(t,E,e>>2,E,r>>2,E,a>>2,O,o>>2,s)},nc:function(t,e,r,a,o,s,c,l){p.De.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(t,E,e>>2,r,E,a>>2,E,o>>2,E,s>>2,O,c>>2,l)},Sa:function(t,e){t==3317&&(xr=e),p.pixelStorei(t,e)},pc:function(t){p.readBuffer(t)},Ta:function(t,e,r,a,o,s,c){if(2<=R.version)if(p.se)p.readPixels(t,e,r,a,o,s,c);else{var l=_e(s);p.readPixels(t,e,r,a,o,s,l,c>>31-Math.clz32(l.BYTES_PER_ELEMENT))}else(c=$e(s,o,r,a,c))?p.readPixels(t,e,r,a,o,s,c):j(1280)},$b:function(t,e,r,a){p.renderbufferStorage(t,e,r,a)},Xb:function(t,e,r,a,o){p.renderbufferStorageMultisample(t,e,r,a,o)},Pb:function(t,e,r){p.samplerParameterf(xt[t],e,r)},Qb:function(t,e,r){p.samplerParameteri(xt[t],e,r)},Rb:function(t,e,r){p.samplerParameteri(xt[t],e,E[r>>2])},Ua:function(t,e,r,a){p.scissor(t,e,r,a)},Va:function(t,e,r,a){for(var o="",s=0;s<e;++s){var c=a?E[a+4*s>>2]:-1,l=E[r+4*s>>2];c=l?Ft(I,l,0>c?void 0:c):"",o+=c}p.shaderSource(lt[t],o)},Wa:function(t,e,r){p.stencilFunc(t,e,r)},Xa:function(t,e,r,a){p.stencilFuncSeparate(t,e,r,a)},Ya:function(t){p.stencilMask(t)},Za:function(t,e){p.stencilMaskSeparate(t,e)},_a:function(t,e,r){p.stencilOp(t,e,r)},$a:function(t,e,r,a){p.stencilOpSeparate(t,e,r,a)},ab:function(t,e,r,a,o,s,c,l,h){if(2<=R.version)if(p.Zd)p.texImage2D(t,e,r,a,o,s,c,l,h);else if(h){var b=_e(l);p.texImage2D(t,e,r,a,o,s,c,l,b,h>>31-Math.clz32(b.BYTES_PER_ELEMENT))}else p.texImage2D(t,e,r,a,o,s,c,l,null);else p.texImage2D(t,e,r,a,o,s,c,l,h?$e(l,c,a,o,h):null)},bb:function(t,e,r){p.texParameterf(t,e,r)},cb:function(t,e,r){p.texParameterf(t,e,F[r>>2])},db:function(t,e,r){p.texParameteri(t,e,r)},eb:function(t,e,r){p.texParameteri(t,e,E[r>>2])},jc:function(t,e,r,a,o){p.texStorage2D(t,e,r,a,o)},fb:function(t,e,r,a,o,s,c,l,h){if(2<=R.version)if(p.Zd)p.texSubImage2D(t,e,r,a,o,s,c,l,h);else if(h){var b=_e(l);p.texSubImage2D(t,e,r,a,o,s,c,l,b,h>>31-Math.clz32(b.BYTES_PER_ELEMENT))}else p.texSubImage2D(t,e,r,a,o,s,c,l,null);else b=null,h&&(b=$e(l,c,o,s,h)),p.texSubImage2D(t,e,r,a,o,s,c,l,b)},gb:function(t,e){p.uniform1f(L(t),e)},hb:function(t,e,r){if(2<=R.version)e&&p.uniform1fv(L(t),F,r>>2,e);else{if(288>=e)for(var a=Ct[e-1],o=0;o<e;++o)a[o]=F[r+4*o>>2];else a=F.subarray(r>>2,r+4*e>>2);p.uniform1fv(L(t),a)}},Uc:function(t,e){p.uniform1i(L(t),e)},Vc:function(t,e,r){if(2<=R.version)e&&p.uniform1iv(L(t),E,r>>2,e);else{if(288>=e)for(var a=Xt[e-1],o=0;o<e;++o)a[o]=E[r+4*o>>2];else a=E.subarray(r>>2,r+4*e>>2);p.uniform1iv(L(t),a)}},Wc:function(t,e,r){p.uniform2f(L(t),e,r)},Xc:function(t,e,r){if(2<=R.version)e&&p.uniform2fv(L(t),F,r>>2,2*e);else{if(144>=e)for(var a=Ct[2*e-1],o=0;o<2*e;o+=2)a[o]=F[r+4*o>>2],a[o+1]=F[r+(4*o+4)>>2];else a=F.subarray(r>>2,r+8*e>>2);p.uniform2fv(L(t),a)}},Tc:function(t,e,r){p.uniform2i(L(t),e,r)},Sc:function(t,e,r){if(2<=R.version)e&&p.uniform2iv(L(t),E,r>>2,2*e);else{if(144>=e)for(var a=Xt[2*e-1],o=0;o<2*e;o+=2)a[o]=E[r+4*o>>2],a[o+1]=E[r+(4*o+4)>>2];else a=E.subarray(r>>2,r+8*e>>2);p.uniform2iv(L(t),a)}},Rc:function(t,e,r,a){p.uniform3f(L(t),e,r,a)},Qc:function(t,e,r){if(2<=R.version)e&&p.uniform3fv(L(t),F,r>>2,3*e);else{if(96>=e)for(var a=Ct[3*e-1],o=0;o<3*e;o+=3)a[o]=F[r+4*o>>2],a[o+1]=F[r+(4*o+4)>>2],a[o+2]=F[r+(4*o+8)>>2];else a=F.subarray(r>>2,r+12*e>>2);p.uniform3fv(L(t),a)}},Pc:function(t,e,r,a){p.uniform3i(L(t),e,r,a)},Oc:function(t,e,r){if(2<=R.version)e&&p.uniform3iv(L(t),E,r>>2,3*e);else{if(96>=e)for(var a=Xt[3*e-1],o=0;o<3*e;o+=3)a[o]=E[r+4*o>>2],a[o+1]=E[r+(4*o+4)>>2],a[o+2]=E[r+(4*o+8)>>2];else a=E.subarray(r>>2,r+12*e>>2);p.uniform3iv(L(t),a)}},Nc:function(t,e,r,a,o){p.uniform4f(L(t),e,r,a,o)},Mc:function(t,e,r){if(2<=R.version)e&&p.uniform4fv(L(t),F,r>>2,4*e);else{if(72>=e){var a=Ct[4*e-1],o=F;r>>=2;for(var s=0;s<4*e;s+=4){var c=r+s;a[s]=o[c],a[s+1]=o[c+1],a[s+2]=o[c+2],a[s+3]=o[c+3]}}else a=F.subarray(r>>2,r+16*e>>2);p.uniform4fv(L(t),a)}},Ac:function(t,e,r,a,o){p.uniform4i(L(t),e,r,a,o)},Bc:function(t,e,r){if(2<=R.version)e&&p.uniform4iv(L(t),E,r>>2,4*e);else{if(72>=e)for(var a=Xt[4*e-1],o=0;o<4*e;o+=4)a[o]=E[r+4*o>>2],a[o+1]=E[r+(4*o+4)>>2],a[o+2]=E[r+(4*o+8)>>2],a[o+3]=E[r+(4*o+12)>>2];else a=E.subarray(r>>2,r+16*e>>2);p.uniform4iv(L(t),a)}},Cc:function(t,e,r,a){if(2<=R.version)e&&p.uniformMatrix2fv(L(t),!!r,F,a>>2,4*e);else{if(72>=e)for(var o=Ct[4*e-1],s=0;s<4*e;s+=4)o[s]=F[a+4*s>>2],o[s+1]=F[a+(4*s+4)>>2],o[s+2]=F[a+(4*s+8)>>2],o[s+3]=F[a+(4*s+12)>>2];else o=F.subarray(a>>2,a+16*e>>2);p.uniformMatrix2fv(L(t),!!r,o)}},Dc:function(t,e,r,a){if(2<=R.version)e&&p.uniformMatrix3fv(L(t),!!r,F,a>>2,9*e);else{if(32>=e)for(var o=Ct[9*e-1],s=0;s<9*e;s+=9)o[s]=F[a+4*s>>2],o[s+1]=F[a+(4*s+4)>>2],o[s+2]=F[a+(4*s+8)>>2],o[s+3]=F[a+(4*s+12)>>2],o[s+4]=F[a+(4*s+16)>>2],o[s+5]=F[a+(4*s+20)>>2],o[s+6]=F[a+(4*s+24)>>2],o[s+7]=F[a+(4*s+28)>>2],o[s+8]=F[a+(4*s+32)>>2];else o=F.subarray(a>>2,a+36*e>>2);p.uniformMatrix3fv(L(t),!!r,o)}},Ec:function(t,e,r,a){if(2<=R.version)e&&p.uniformMatrix4fv(L(t),!!r,F,a>>2,16*e);else{if(18>=e){var o=Ct[16*e-1],s=F;a>>=2;for(var c=0;c<16*e;c+=16){var l=a+c;o[c]=s[l],o[c+1]=s[l+1],o[c+2]=s[l+2],o[c+3]=s[l+3],o[c+4]=s[l+4],o[c+5]=s[l+5],o[c+6]=s[l+6],o[c+7]=s[l+7],o[c+8]=s[l+8],o[c+9]=s[l+9],o[c+10]=s[l+10],o[c+11]=s[l+11],o[c+12]=s[l+12],o[c+13]=s[l+13],o[c+14]=s[l+14],o[c+15]=s[l+15]}}else o=F.subarray(a>>2,a+64*e>>2);p.uniformMatrix4fv(L(t),!!r,o)}},Fc:function(t){t=ct[t],p.useProgram(t),p.Re=t},Gc:function(t,e){p.vertexAttrib1f(t,e)},Hc:function(t,e){p.vertexAttrib2f(t,F[e>>2],F[e+4>>2])},Ic:function(t,e){p.vertexAttrib3f(t,F[e>>2],F[e+4>>2],F[e+8>>2])},Jc:function(t,e){p.vertexAttrib4f(t,F[e>>2],F[e+4>>2],F[e+8>>2],F[e+12>>2])},kc:function(t,e){p.vertexAttribDivisor(t,e)},lc:function(t,e,r,a,o){p.vertexAttribIPointer(t,e,r,a,o)},Kc:function(t,e,r,a,o,s){p.vertexAttribPointer(t,e,r,!!a,o,s)},Lc:function(t,e,r,a){p.viewport(t,e,r,a)},qb:function(t,e,r,a){p.waitSync(Mt[t],e,(r>>>0)+4294967296*a)},W:On,F:Gn,E:jn,X:Ln,Ib:Vn,V:Wn,U:Nn,A:$n,B:Un,D:Hn,L:Dn,sb:(t,e,r,a)=>Mn(t,e,r,a)};(function(){function t(r){if(D=r=r.exports,oe=D.Yc,nr(),K=D._c,or.unshift(D.Zc),St--,g.monitorRunDependencies&&g.monitorRunDependencies(St),St==0&&Ut){var a=Ut;Ut=null,a()}return r}var e={a:Bn};if(St++,g.monitorRunDependencies&&g.monitorRunDependencies(St),g.instantiateWasm)try{return g.instantiateWasm(e,t)}catch(r){wt("Module.instantiateWasm callback failed with error: "+r),re(r)}return en(e,function(r){t(r.instance)}).catch(re),{}})();var bt=g._free=t=>(bt=g._free=D.$c)(t),Ae=g._malloc=t=>(Ae=g._malloc=D.ad)(t),Wr=t=>(Wr=D.bd)(t);g.__embind_initialize_bindings=()=>(g.__embind_initialize_bindings=D.cd)();var nt=(t,e)=>(nt=D.dd)(t,e),at=()=>(at=D.ed)(),ot=t=>(ot=D.fd)(t);g.dynCall_viji=(t,e,r,a,o)=>(g.dynCall_viji=D.gd)(t,e,r,a,o),g.dynCall_vijiii=(t,e,r,a,o,s,c)=>(g.dynCall_vijiii=D.hd)(t,e,r,a,o,s,c),g.dynCall_viiiiij=(t,e,r,a,o,s,c,l)=>(g.dynCall_viiiiij=D.id)(t,e,r,a,o,s,c,l),g.dynCall_jii=(t,e,r)=>(g.dynCall_jii=D.jd)(t,e,r),g.dynCall_vij=(t,e,r,a)=>(g.dynCall_vij=D.kd)(t,e,r,a),g.dynCall_iiij=(t,e,r,a,o)=>(g.dynCall_iiij=D.ld)(t,e,r,a,o),g.dynCall_iiiij=(t,e,r,a,o,s)=>(g.dynCall_iiiij=D.md)(t,e,r,a,o,s),g.dynCall_viij=(t,e,r,a,o)=>(g.dynCall_viij=D.nd)(t,e,r,a,o),g.dynCall_viiij=(t,e,r,a,o,s)=>(g.dynCall_viiij=D.od)(t,e,r,a,o,s),g.dynCall_ji=(t,e)=>(g.dynCall_ji=D.pd)(t,e),g.dynCall_iij=(t,e,r,a)=>(g.dynCall_iij=D.qd)(t,e,r,a),g.dynCall_jiiiiii=(t,e,r,a,o,s,c)=>(g.dynCall_jiiiiii=D.rd)(t,e,r,a,o,s,c),g.dynCall_jiiiiji=(t,e,r,a,o,s,c,l)=>(g.dynCall_jiiiiji=D.sd)(t,e,r,a,o,s,c,l),g.dynCall_iijj=(t,e,r,a,o,s)=>(g.dynCall_iijj=D.td)(t,e,r,a,o,s),g.dynCall_iiiji=(t,e,r,a,o,s)=>(g.dynCall_iiiji=D.ud)(t,e,r,a,o,s),g.dynCall_iiji=(t,e,r,a,o)=>(g.dynCall_iiji=D.vd)(t,e,r,a,o),g.dynCall_iijjiii=(t,e,r,a,o,s,c,l,h)=>(g.dynCall_iijjiii=D.wd)(t,e,r,a,o,s,c,l,h),g.dynCall_vijjjii=(t,e,r,a,o,s,c,l,h,b)=>(g.dynCall_vijjjii=D.xd)(t,e,r,a,o,s,c,l,h,b),g.dynCall_jiji=(t,e,r,a,o)=>(g.dynCall_jiji=D.yd)(t,e,r,a,o),g.dynCall_viijii=(t,e,r,a,o,s,c)=>(g.dynCall_viijii=D.zd)(t,e,r,a,o,s,c),g.dynCall_iiiiij=(t,e,r,a,o,s,c)=>(g.dynCall_iiiiij=D.Ad)(t,e,r,a,o,s,c),g.dynCall_iiiiijj=(t,e,r,a,o,s,c,l,h)=>(g.dynCall_iiiiijj=D.Bd)(t,e,r,a,o,s,c,l,h),g.dynCall_iiiiiijj=(t,e,r,a,o,s,c,l,h,b)=>(g.dynCall_iiiiiijj=D.Cd)(t,e,r,a,o,s,c,l,h,b);function Dn(t,e,r,a,o){var s=at();try{K.get(t)(e,r,a,o)}catch(c){if(ot(s),c!==c+0)throw c;nt(1,0)}}function Gn(t,e,r){var a=at();try{return K.get(t)(e,r)}catch(o){if(ot(a),o!==o+0)throw o;nt(1,0)}}function Ln(t,e,r,a,o){var s=at();try{return K.get(t)(e,r,a,o)}catch(c){if(ot(s),c!==c+0)throw c;nt(1,0)}}function Hn(t,e,r,a){var o=at();try{K.get(t)(e,r,a)}catch(s){if(ot(o),s!==s+0)throw s;nt(1,0)}}function On(t,e){var r=at();try{return K.get(t)(e)}catch(a){if(ot(r),a!==a+0)throw a;nt(1,0)}}function jn(t,e,r,a){var o=at();try{return K.get(t)(e,r,a)}catch(s){if(ot(o),s!==s+0)throw s;nt(1,0)}}function Un(t,e,r){var a=at();try{K.get(t)(e,r)}catch(o){if(ot(a),o!==o+0)throw o;nt(1,0)}}function Wn(t,e,r,a,o,s,c,l,h,b){var _=at();try{return K.get(t)(e,r,a,o,s,c,l,h,b)}catch(A){if(ot(_),A!==A+0)throw A;nt(1,0)}}function $n(t,e){var r=at();try{K.get(t)(e)}catch(a){if(ot(r),a!==a+0)throw a;nt(1,0)}}function Vn(t,e,r,a,o,s,c){var l=at();try{return K.get(t)(e,r,a,o,s,c)}catch(h){if(ot(l),h!==h+0)throw h;nt(1,0)}}function Nn(t){var e=at();try{K.get(t)()}catch(r){if(ot(e),r!==r+0)throw r;nt(1,0)}}var Ee;Ut=function t(){Ee||$r(),Ee||(Ut=t)};function $r(){function t(){if(!Ee&&(Ee=!0,g.calledRun=!0,!er)){if(xe(or),Ke(g),g.onRuntimeInitialized&&g.onRuntimeInitialized(),g.postRun)for(typeof g.postRun=="function"&&(g.postRun=[g.postRun]);g.postRun.length;){var e=g.postRun.shift();ir.unshift(e)}xe(ir)}}if(!(0<St)){if(g.preRun)for(typeof g.preRun=="function"&&(g.preRun=[g.preRun]);g.preRun.length;)Zr();xe(ar),0<St||(g.setStatus?(g.setStatus("Running..."),setTimeout(function(){setTimeout(function(){g.setStatus("")},1),t()},1)):t())}}if(g.preInit)for(typeof g.preInit=="function"&&(g.preInit=[g.preInit]);0<g.preInit.length;)g.preInit.pop()();return $r(),Je.ready}})();typeof Pt=="object"&&typeof vt=="object"?vt.exports=te:typeof define=="function"&&define.amd&&define([],()=>te)});const Jn=qn();export{Jn as default};
4
+ //# sourceMappingURL=ui-CzK6-nAP.js.map