
var CanvasKitInit = (function() {
  var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
  if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;
  return (
function(CanvasKitInit) {
  CanvasKitInit = CanvasKitInit || {};


null;var r;r||(r=typeof CanvasKitInit !== 'undefined' ? CanvasKitInit : {});var ca,ea;r.ready=new Promise(function(a,b){ca=a;ea=b});
(function(a){a.ae=a.ae||[];a.ae.push(function(){a.MakeSWCanvasSurface=function(b){var c=b;if("CANVAS"!==c.tagName&&(c=document.getElementById(b),!c))throw"Canvas with id "+b+" was not found";if(b=a.MakeSurface(c.width,c.height))b.Sd=c;return b};a.MakeCanvasSurface||(a.MakeCanvasSurface=a.MakeSWCanvasSurface);a.MakeSurface=function(b,c){var f={width:b,height:c,colorType:a.ColorType.RGBA_8888,alphaType:a.AlphaType.Unpremul,colorSpace:a.ColorSpace.SRGB},g=b*c*4,l=a._malloc(g);if(f=a.Surface._makeRasterDirect(f,
l,4*b))f.Sd=null,f.Ff=b,f.Cf=c,f.Ef=g,f.jf=l,f.getCanvas().clear(a.TRANSPARENT);return f};a.MakeRasterDirectSurface=function(b,c,f){return a.Surface._makeRasterDirect(b,c.byteOffset,f)};a.Surface.prototype.flush=function(b){this._flush();if(this.Sd){var c=new Uint8ClampedArray(a.HEAPU8.buffer,this.jf,this.Ef);c=new ImageData(c,this.Ff,this.Cf);b?this.Sd.getContext("2d").putImageData(c,0,0,b[0],b[1],b[2]-b[0],b[3]-b[1]):this.Sd.getContext("2d").putImageData(c,0,0)}};a.Surface.prototype.dispose=function(){this.jf&&
a._free(this.jf);this.delete()};a.currentContext=a.currentContext||function(){};a.setCurrentContext=a.setCurrentContext||function(){}})})(r);
(function(a){a.ae=a.ae||[];a.ae.push(function(){function b(c,f,g){return c&&c.hasOwnProperty(f)?c[f]:g}a.GetWebGLContext=function(c,f){if(!c)throw"null canvas passed into makeWebGLContext";var g={alpha:b(f,"alpha",1),depth:b(f,"depth",1),stencil:b(f,"stencil",8),antialias:b(f,"antialias",0),premultipliedAlpha:b(f,"premultipliedAlpha",1),preserveDrawingBuffer:b(f,"preserveDrawingBuffer",0),preferLowPowerToHighPerformance:b(f,"preferLowPowerToHighPerformance",0),failIfMajorPerformanceCaveat:b(f,"failIfMajorPerformanceCaveat",
0),enableExtensionsByDefault:b(f,"enableExtensionsByDefault",1),explicitSwapControl:b(f,"explicitSwapControl",0),renderViaOffscreenBackBuffer:b(f,"renderViaOffscreenBackBuffer",0)};g.majorVersion=f&&f.majorVersion?f.majorVersion:"undefined"!==typeof WebGL2RenderingContext?2:1;if(g.explicitSwapControl)throw"explicitSwapControl is not supported";if(c=1<g.majorVersion?c.getContext("webgl2",g):c.getContext("webgl",g)){f=ha(ia);var l={Xf:f,attributes:g,version:g.majorVersion,Ne:c};c.canvas&&(c.canvas.tf=
l);ia[f]=l;("undefined"===typeof g.Lf||g.Lf)&&ma(l);g=f}else g=0;if(!g)return 0;na(g);return g};a.deleteContext=function(c){v===ia[c]&&(v=null);"object"===typeof JSEvents&&JSEvents.Hg(ia[c].Ne.canvas);ia[c]&&ia[c].Ne.canvas&&(ia[c].Ne.canvas.tf=void 0);ia[c]=null};a.MakeWebGLCanvasSurface=function(c,f,g){f=f||null;var l=c,q="undefined"!==typeof OffscreenCanvas&&l instanceof OffscreenCanvas;if(!("undefined"!==typeof HTMLCanvasElement&&l instanceof HTMLCanvasElement||q||(l=document.getElementById(c),
l)))throw"Canvas with id "+c+" was not found";c=this.GetWebGLContext(l,g);if(!c||0>c)throw"failed to create webgl context: err "+c;g=this.MakeGrContext(c);f=this.MakeOnScreenGLSurface(g,l.width,l.height,f);if(!f)return f=l.cloneNode(!0),l.parentNode.replaceChild(f,l),f.classList.add("ck-replaced"),a.MakeSWCanvasSurface(f);f.se=c;f.grContext=g;f.openGLversion=l.tf.version;return f};a.MakeCanvasSurface=a.MakeWebGLCanvasSurface})})(r);
(function(a){function b(d,e,h,m,p){for(var z=0;z<d.length;z++)e[z*h+(z*p+m+h)%h]=d[z];return e}function c(d){for(var e=d*d,h=Array(e);e--;)h[e]=0===e%(d+1)?1:0;return h}function f(d){return d?d.constructor===Float32Array&&4===d.length:!1}function g(d){return(t(255*d[3])<<24|t(255*d[0])<<16|t(255*d[1])<<8|t(255*d[2])<<0)>>>0}function l(d){if(d instanceof Float32Array){for(var e=Math.floor(d.length/4),h=new Uint32Array(e),m=0;m<e;m++)h[m]=g(d.slice(4*m,4*(m+1)));return h}if(d instanceof Uint32Array)return d;
if(d instanceof Array&&d[0]instanceof Float32Array)return d.map(g)}function q(d){if(void 0===d)return 1;var e=parseFloat(d);return d&&-1!==d.indexOf("%")?e/100:e}function t(d){return Math.round(Math.max(0,Math.min(d||0,255)))}function x(d,e){e&&!e._ck&&a._free(d)}function w(d,e,h){if(!d||!d.length)return S;if(d._ck)return d.byteOffset;var m=a[e].BYTES_PER_ELEMENT;h||(h=a._malloc(d.length*m));a[e].set(d,h/m);return h}function I(d){var e={he:S,count:d.length,Ue:a.ColorType.RGBA_F32};if(d instanceof
Float32Array)e.he=w(d,"HEAPF32"),e.count=d.length/4;else if(d instanceof Uint32Array)e.he=w(d,"HEAPU32"),e.Ue=a.ColorType.RGBA_8888;else if(d instanceof Array){if(d&&d.length){for(var h=a._malloc(16*d.length),m=0,p=h/4,z=0;z<d.length;z++)for(var C=0;4>C;C++)a.HEAPF32[p+m]=d[z][C],m++;d=h}else d=S;e.he=d}else throw"Invalid argument to copyFlexibleColorArray, Not a color array "+typeof d;return e}function L(d){if(!d)return S;if(d.length){if(6===d.length||9===d.length)return w(d,"HEAPF32",La),6===d.length&&
a.HEAPF32.set(Id,6+La/4),La;if(16===d.length){var e=Db.toTypedArray();e[0]=d[0];e[1]=d[1];e[2]=d[3];e[3]=d[4];e[4]=d[5];e[5]=d[7];e[6]=d[12];e[7]=d[13];e[8]=d[15];return La}throw"invalid matrix size";}e=Db.toTypedArray();e[0]=d.m11;e[1]=d.m21;e[2]=d.m41;e[3]=d.m12;e[4]=d.m22;e[5]=d.m42;e[6]=d.m14;e[7]=d.m24;e[8]=d.m44;return La}function Q(d){if(!d)return S;var e=hc.toTypedArray();if(d.length){if(16!==d.length&&6!==d.length&&9!==d.length)throw"invalid matrix size";if(16===d.length)return w(d,"HEAPF32",
Ma);e.fill(0);e[0]=d[0];e[1]=d[1];e[3]=d[2];e[4]=d[3];e[5]=d[4];e[7]=d[5];e[12]=d[6];e[13]=d[7];e[15]=d[8];6===d.length&&(e[12]=0,e[13]=0,e[15]=1);return Ma}e[0]=d.m11;e[1]=d.m21;e[2]=d.m31;e[3]=d.m41;e[4]=d.m12;e[5]=d.m22;e[6]=d.m32;e[7]=d.m42;e[8]=d.m13;e[9]=d.m23;e[10]=d.m33;e[11]=d.m43;e[12]=d.m14;e[13]=d.m24;e[14]=d.m34;e[15]=d.m44;return Ma}function A(d){for(var e=Array(16),h=0;16>h;h++)e[h]=a.HEAPF32[d/4+h];return e}function M(d,e){return w(d,"HEAPF32",e||ib)}function Y(d,e,h,m){var p=ic.toTypedArray();
p[0]=d;p[1]=e;p[2]=h;p[3]=m;return ib}function da(d){for(var e=new Float32Array(4),h=0;4>h;h++)e[h]=a.HEAPF32[d/4+h];return e}function ba(d,e){return w(d,"HEAPF32",e||ja)}function pa(d,e){return w(d,"HEAPF32",e||jc)}function jb(){for(var d=0,e=0;e<arguments.length-1;e+=2)d+=arguments[e]*arguments[e+1];return d}function kb(d,e,h){for(var m=Array(d.length),p=0;p<h;p++)for(var z=0;z<h;z++){for(var C=0,J=0;J<h;J++)C+=d[h*p+J]*e[h*J+z];m[p*h+z]=C}return m}function Oc(d,e){for(var h=kb(e[0],e[1],d),m=2;m<
e.length;)h=kb(h,e[m],d),m++;return h}a.Color=function(d,e,h,m){void 0===m&&(m=1);return a.Color4f(t(d)/255,t(e)/255,t(h)/255,m)};a.ColorAsInt=function(d,e,h,m){void 0===m&&(m=255);return(t(m)<<24|t(d)<<16|t(e)<<8|t(h)<<0&268435455)>>>0};a.Color4f=function(d,e,h,m){void 0===m&&(m=1);return Float32Array.of(d,e,h,m)};Object.defineProperty(a,"TRANSPARENT",{get:function(){return a.Color4f(0,0,0,0)}});Object.defineProperty(a,"BLACK",{get:function(){return a.Color4f(0,0,0,1)}});Object.defineProperty(a,
"WHITE",{get:function(){return a.Color4f(1,1,1,1)}});Object.defineProperty(a,"RED",{get:function(){return a.Color4f(1,0,0,1)}});Object.defineProperty(a,"GREEN",{get:function(){return a.Color4f(0,1,0,1)}});Object.defineProperty(a,"BLUE",{get:function(){return a.Color4f(0,0,1,1)}});Object.defineProperty(a,"YELLOW",{get:function(){return a.Color4f(1,1,0,1)}});Object.defineProperty(a,"CYAN",{get:function(){return a.Color4f(0,1,1,1)}});Object.defineProperty(a,"MAGENTA",{get:function(){return a.Color4f(1,
0,1,1)}});a.getColorComponents=function(d){return[Math.floor(255*d[0]),Math.floor(255*d[1]),Math.floor(255*d[2]),d[3]]};a.parseColorString=function(d,e){d=d.toLowerCase();if(d.startsWith("#")){e=255;switch(d.length){case 9:e=parseInt(d.slice(7,9),16);case 7:var h=parseInt(d.slice(1,3),16);var m=parseInt(d.slice(3,5),16);var p=parseInt(d.slice(5,7),16);break;case 5:e=17*parseInt(d.slice(4,5),16);case 4:h=17*parseInt(d.slice(1,2),16),m=17*parseInt(d.slice(2,3),16),p=17*parseInt(d.slice(3,4),16)}return a.Color(h,
m,p,e/255)}return d.startsWith("rgba")?(d=d.slice(5,-1),d=d.split(","),a.Color(+d[0],+d[1],+d[2],q(d[3]))):d.startsWith("rgb")?(d=d.slice(4,-1),d=d.split(","),a.Color(+d[0],+d[1],+d[2],q(d[3]))):d.startsWith("gray(")||d.startsWith("hsl")||!e||(d=e[d],void 0===d)?a.BLACK:d};a.multiplyByAlpha=function(d,e){d=d.slice();d[3]=Math.max(0,Math.min(d[3]*e,1));return d};a.Malloc=function(d,e){var h=a._malloc(e*d.BYTES_PER_ELEMENT);return{_ck:!0,length:e,byteOffset:h,ue:null,subarray:function(m,p){m=this.toTypedArray().subarray(m,
p);m._ck=!0;return m},toTypedArray:function(){if(this.ue&&this.ue.length)return this.ue;this.ue=new d(a.HEAPU8.buffer,h,e);this.ue._ck=!0;return this.ue}}};a.Free=function(d){a._free(d.byteOffset);d.byteOffset=S;d.toTypedArray=null;d.ue=null};var La=S,Db,Ma=S,hc,ib=S,ic,Da,ja=S,Pc,Ua=S,Qc,kc=S,Rc,lc=S,Sc,mc=S,Tc,jc=S,Uc,Vc=S,Id=Float32Array.of(0,0,1),nc={};a.ve=function(){this.re=[];this.Zd=null;Object.defineProperty(this,"length",{enumerable:!0,get:function(){return this.re.length/4}})};a.ve.prototype.push=
function(d,e,h,m){this.Zd||this.re.push(d,e,h,m)};a.ve.prototype.set=function(d,e,h,m,p){0>d||d>=this.re.length/4||(d*=4,this.Zd?(d=this.Zd/4+d,a.HEAPF32[d]=e,a.HEAPF32[d+1]=h,a.HEAPF32[d+2]=m,a.HEAPF32[d+3]=p):(this.re[d]=e,this.re[d+1]=h,this.re[d+2]=m,this.re[d+3]=p))};a.ve.prototype.build=function(){return this.Zd?this.Zd:this.Zd=w(this.re,"HEAPF32")};a.ve.prototype.delete=function(){this.Zd&&(a._free(this.Zd),this.Zd=null)};a.Oe=function(){this.Te=[];this.Zd=null;Object.defineProperty(this,"length",
{enumerable:!0,get:function(){return this.Te.length}})};a.Oe.prototype.push=function(d){this.Zd||this.Te.push(d)};a.Oe.prototype.set=function(d,e){0>d||d>=this.Te.length||(d*=4,this.Zd?a.HEAPU32[this.Zd/4+d]=e:this.Te[d]=e)};a.Oe.prototype.build=function(){return this.Zd?this.Zd:this.Zd=w(this.Te,"HEAPU32")};a.Oe.prototype.delete=function(){this.Zd&&(a._free(this.Zd),this.Zd=null)};a.RectBuilder=a.ve;a.RSXFormBuilder=a.ve;a.ColorBuilder=a.Oe;var S=0;a.onRuntimeInitialized=function(){function d(e,
h,m,p,z,C){C||(C=4*p.width,p.colorType===a.ColorType.RGBA_F16?C*=2:p.colorType===a.ColorType.RGBA_F32&&(C*=4));var J=C*p.height;var N=z?z.byteOffset:a._malloc(J);if(!e._readPixels(p,N,C,h,m))return z||a._free(N),null;if(z)return z.toTypedArray();switch(p.colorType){case a.ColorType.RGBA_8888:case a.ColorType.RGBA_F16:e=(new Uint8Array(a.HEAPU8.buffer,N,J)).slice();break;case a.ColorType.RGBA_F32:e=(new Float32Array(a.HEAPU8.buffer,N,J)).slice();break;default:return null}a._free(N);return e}ic=a.Malloc(Float32Array,
4);ib=ic.byteOffset;hc=a.Malloc(Float32Array,16);Ma=hc.byteOffset;Db=a.Malloc(Float32Array,9);La=Db.byteOffset;Tc=a.Malloc(Float32Array,12);jc=Tc.byteOffset;Uc=a.Malloc(Float32Array,12);Vc=Uc.byteOffset;Da=a.Malloc(Float32Array,4);ja=Da.byteOffset;Pc=a.Malloc(Float32Array,4);Ua=Pc.byteOffset;Qc=a.Malloc(Float32Array,3);kc=Qc.byteOffset;Rc=a.Malloc(Float32Array,3);lc=Rc.byteOffset;Sc=a.Malloc(Int32Array,4);mc=Sc.byteOffset;a.ColorSpace.SRGB=a.ColorSpace._MakeSRGB();a.ColorSpace.DISPLAY_P3=a.ColorSpace._MakeDisplayP3();
a.ColorSpace.ADOBE_RGB=a.ColorSpace._MakeAdobeRGB();a.GlyphRunFlags={IsWhiteSpace:a._GlyphRunFlags_isWhiteSpace};a.Path.MakeFromCmds=function(e){for(var h=0,m=0;m<e.length;m++)h+=e[m].length;if(nc[h])var p=nc[h];else p=new Float32Array(h),nc[h]=p;var z=0;for(m=0;m<e.length;m++)for(var C=0;C<e[m].length;C++)p[z]=e[m][C],z++;e=[w(p,"HEAPF32"),h];h=a.Path._MakeFromCmds(e[0],e[1]);a._free(e[0]);return h};a.Path.MakeFromVerbsPointsWeights=function(e,h,m){var p=w(e,"HEAPU8"),z=w(h,"HEAPF32"),C=w(m,"HEAPF32"),
J=a.Path._MakeFromVerbsPointsWeights(p,e.length,z,h.length,C,m&&m.length||0);x(p,e);x(z,h);x(C,m);return J};a.Path.prototype.addArc=function(e,h,m){e=ba(e);this._addArc(e,h,m);return this};a.Path.prototype.addOval=function(e,h,m){void 0===m&&(m=1);e=ba(e);this._addOval(e,!!h,m);return this};a.Path.prototype.addPath=function(){var e=Array.prototype.slice.call(arguments),h=e[0],m=!1;"boolean"===typeof e[e.length-1]&&(m=e.pop());if(1===e.length)this._addPath(h,1,0,0,0,1,0,0,0,1,m);else if(2===e.length)e=
e[1],this._addPath(h,e[0],e[1],e[2],e[3],e[4],e[5],e[6]||0,e[7]||0,e[8]||1,m);else if(7===e.length||10===e.length)this._addPath(h,e[1],e[2],e[3],e[4],e[5],e[6],e[7]||0,e[8]||0,e[9]||1,m);else return null;return this};a.Path.prototype.addPoly=function(e,h){var m=w(e,"HEAPF32");this._addPoly(m,e.length/2,h);x(m,e);return this};a.Path.prototype.addRect=function(e,h){e=ba(e);this._addRect(e,!!h);return this};a.Path.prototype.addRRect=function(e,h){e=pa(e);this._addRRect(e,!!h);return this};a.Path.prototype.addVerbsPointsWeights=
function(e,h,m){var p=w(e,"HEAPU8"),z=w(h,"HEAPF32"),C=w(m,"HEAPF32");this._addVerbsPointsWeights(p,e.length,z,h.length,C,m&&m.length||0);x(p,e);x(z,h);x(C,m)};a.Path.prototype.arc=function(e,h,m,p,z,C){e=a.LTRBRect(e-m,h-m,e+m,h+m);z=(z-p)/Math.PI*180-360*!!C;C=new a.Path;C.addArc(e,p/Math.PI*180,z);this.addPath(C,!0);C.delete();return this};a.Path.prototype.arcToOval=function(e,h,m,p){e=ba(e);this._arcToOval(e,h,m,p);return this};a.Path.prototype.arcToRotated=function(e,h,m,p,z,C,J){this._arcToRotated(e,
h,m,!!p,!!z,C,J);return this};a.Path.prototype.arcToTangent=function(e,h,m,p,z){this._arcToTangent(e,h,m,p,z);return this};a.Path.prototype.close=function(){this._close();return this};a.Path.prototype.conicTo=function(e,h,m,p,z){this._conicTo(e,h,m,p,z);return this};a.Path.prototype.computeTightBounds=function(e){this._computeTightBounds(ja);var h=Da.toTypedArray();return e?(e.set(h),e):h.slice()};a.Path.prototype.cubicTo=function(e,h,m,p,z,C){this._cubicTo(e,h,m,p,z,C);return this};a.Path.prototype.dash=
function(e,h,m){return this._dash(e,h,m)?this:null};a.Path.prototype.getBounds=function(e){this._getBounds(ja);var h=Da.toTypedArray();return e?(e.set(h),e):h.slice()};a.Path.prototype.lineTo=function(e,h){this._lineTo(e,h);return this};a.Path.prototype.moveTo=function(e,h){this._moveTo(e,h);return this};a.Path.prototype.offset=function(e,h){this._transform(1,0,e,0,1,h,0,0,1);return this};a.Path.prototype.quadTo=function(e,h,m,p){this._quadTo(e,h,m,p);return this};a.Path.prototype.rArcTo=function(e,
h,m,p,z,C,J){this._rArcTo(e,h,m,p,z,C,J);return this};a.Path.prototype.rConicTo=function(e,h,m,p,z){this._rConicTo(e,h,m,p,z);return this};a.Path.prototype.rCubicTo=function(e,h,m,p,z,C){this._rCubicTo(e,h,m,p,z,C);return this};a.Path.prototype.rLineTo=function(e,h){this._rLineTo(e,h);return this};a.Path.prototype.rMoveTo=function(e,h){this._rMoveTo(e,h);return this};a.Path.prototype.rQuadTo=function(e,h,m,p){this._rQuadTo(e,h,m,p);return this};a.Path.prototype.stroke=function(e){e=e||{};e.width=
e.width||1;e.miter_limit=e.miter_limit||4;e.cap=e.cap||a.StrokeCap.Butt;e.join=e.join||a.StrokeJoin.Miter;e.precision=e.precision||1;return this._stroke(e)?this:null};a.Path.prototype.transform=function(){if(1===arguments.length){var e=arguments[0];this._transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6]||0,e[7]||0,e[8]||1)}else if(6===arguments.length||9===arguments.length)e=arguments,this._transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6]||0,e[7]||0,e[8]||1);else throw"transform expected to take 1 or 9 arguments. Got "+
arguments.length;return this};a.Path.prototype.trim=function(e,h,m){return this._trim(e,h,!!m)?this:null};a.Image.prototype.makeShaderCubic=function(e,h,m,p,z){z=L(z);return this._makeShaderCubic(e,h,m,p,z)};a.Image.prototype.makeShaderOptions=function(e,h,m,p,z){z=L(z);return this._makeShaderOptions(e,h,m,p,z)};a.Image.prototype.readPixels=function(e,h,m,p,z){return d(this,e,h,m,p,z)};a.Canvas.prototype.clear=function(e){e=M(e);this._clear(e)};a.Canvas.prototype.clipRRect=function(e,h,m){e=pa(e);
this._clipRRect(e,h,m)};a.Canvas.prototype.clipRect=function(e,h,m){e=ba(e);this._clipRect(e,h,m)};a.Canvas.prototype.concat=function(e){e=Q(e);this._concat(e)};a.Canvas.prototype.drawArc=function(e,h,m,p,z){e=ba(e);this._drawArc(e,h,m,p,z)};a.Canvas.prototype.drawAtlas=function(e,h,m,p,z,C,J){if(e&&p&&h&&m&&h.length===m.length){z||(z=a.BlendMode.SrcOver);var N;h.build?N=h.build():N=w(h,"HEAPF32");if(m.build){var O=m.build();var T=m.length}else O=w(m,"HEAPF32"),T=m.length/4;var u=S;C&&(C.build?u=
C.build():u=w(l(C),"HEAPU32"));if(J&&"B"in J&&"C"in J)this._drawAtlasCubic(e,O,N,u,T,z,J.B,J.C,p);else{let H=a.FilterMode.Linear,R=a.MipmapMode.None;J&&(H=J.filter,"mipmap"in J&&(R=J.mipmap));this._drawAtlasOptions(e,O,N,u,T,z,H,R,p)}N&&!h.build&&x(N,h);O&&!m.build&&x(O,m);u&&!C.build&&x(u,C)}};a.Canvas.prototype.drawColor=function(e,h){e=M(e);void 0!==h?this._drawColor(e,h):this._drawColor(e)};a.Canvas.prototype.drawColorComponents=function(e,h,m,p,z){e=Y(e,h,m,p);void 0!==z?this._drawColor(e,z):
this._drawColor(e)};a.Canvas.prototype.drawDRRect=function(e,h,m){e=pa(e,jc);h=pa(h,Vc);this._drawDRRect(e,h,m)};a.Canvas.prototype.drawGlyphs=function(e,h,m,p,z,C){if(!(2*e.length<=h.length))throw"Not enough positions for the array of gyphs";const J=w(e,"HEAPU16"),N=w(h,"HEAPF32");this._drawGlyphs(e.length,J,N,m,p,z,C);x(N,h);x(J,e)};a.Canvas.prototype.drawImageNine=function(e,h,m,p,z){h=w(h,"HEAP32",mc);m=ba(m);this._drawImageNine(e,h,m,p,z||null)};a.Canvas.prototype.drawImageRect=function(e,h,
m,p,z){ba(h,ja);ba(m,Ua);this._drawImageRect(e,ja,Ua,p,!!z)};a.Canvas.prototype.drawImageRectCubic=function(e,h,m,p,z,C){ba(h,ja);ba(m,Ua);this._drawImageRectCubic(e,ja,Ua,p,z,C||null)};a.Canvas.prototype.drawImageRectOptions=function(e,h,m,p,z,C){ba(h,ja);ba(m,Ua);this._drawImageRectOptions(e,ja,Ua,p,z,C||null)};a.Canvas.prototype.drawOval=function(e,h){e=ba(e);this._drawOval(e,h)};a.Canvas.prototype.drawPatch=function(e,h,m,p,z){if(24>e.length)throw"Need 12 cubic points";if(h&&4>h.length)throw"Need 4 colors";
if(m&&8>m.length)throw"Need 4 shader coordinates";const C=w(e,"HEAPF32"),J=h?w(l(h),"HEAPU32"):S,N=m?w(m,"HEAPF32"):S;p||(p=a.BlendMode.Modulate);this._drawPatch(C,J,N,p,z);x(N,m);x(J,h);x(C,e)};a.Canvas.prototype.drawPoints=function(e,h,m){var p=w(h,"HEAPF32");this._drawPoints(e,p,h.length/2,m);x(p,h)};a.Canvas.prototype.drawRRect=function(e,h){e=pa(e);this._drawRRect(e,h)};a.Canvas.prototype.drawRect=function(e,h){e=ba(e);this._drawRect(e,h)};a.Canvas.prototype.drawShadow=function(e,h,m,p,z,C,J){var N=
w(z,"HEAPF32"),O=w(C,"HEAPF32");h=w(h,"HEAPF32",kc);m=w(m,"HEAPF32",lc);this._drawShadow(e,h,m,p,N,O,J);x(N,z);x(O,C)};a.getShadowLocalBounds=function(e,h,m,p,z,C,J){e=L(e);m=w(m,"HEAPF32",kc);p=w(p,"HEAPF32",lc);if(!this._getShadowLocalBounds(e,h,m,p,z,C,ja))return null;h=Da.toTypedArray();return J?(J.set(h),J):h.slice()};a.Canvas.prototype.getLocalToDevice=function(){this._getLocalToDevice(Ma);return A(Ma)};a.Canvas.prototype.findMarkedCTM=function(e){return this._findMarkedCTM(e,Ma)?A(Ma):null};
a.Canvas.prototype.getTotalMatrix=function(){this._getTotalMatrix(La);for(var e=Array(9),h=0;9>h;h++)e[h]=a.HEAPF32[La/4+h];return e};a.Canvas.prototype.readPixels=function(e,h,m,p,z){return d(this,e,h,m,p,z)};a.Canvas.prototype.saveLayer=function(e,h,m,p){h=ba(h);return this._saveLayer(e||null,h,m||null,p||0)};a.Canvas.prototype.writePixels=function(e,h,m,p,z,C,J,N){if(e.byteLength%(h*m))throw"pixels length must be a multiple of the srcWidth * srcHeight";var O=e.byteLength/(h*m);C=C||a.AlphaType.Unpremul;
J=J||a.ColorType.RGBA_8888;N=N||a.ColorSpace.SRGB;var T=O*h;O=w(e,"HEAPU8");h=this._writePixels({width:h,height:m,colorType:J,alphaType:C,colorSpace:N},O,T,p,z);x(O,e);return h};a.ColorFilter.MakeBlend=function(e,h){e=M(e);return a.ColorFilter._MakeBlend(e,h)};a.ColorFilter.MakeMatrix=function(e){if(!e||20!==e.length)throw"invalid color matrix";var h=w(e,"HEAPF32"),m=a.ColorFilter._makeMatrix(h);x(h,e);return m};a.ContourMeasure.prototype.getPosTan=function(e,h){this._getPosTan(e,ja);e=Da.toTypedArray();
return h?(h.set(e),h):e.slice()};a.ImageFilter.MakeMatrixTransform=function(e,h,m){e=L(e);return a.ImageFilter._MakeMatrixTransform(e,h,m)};a.Paint.prototype.getColor=function(){this._getColor(ib);return da(ib)};a.Paint.prototype.setColor=function(e,h){h=h||null;e=M(e);this._setColor(e,h)};a.Paint.prototype.setColorComponents=function(e,h,m,p,z){z=z||null;e=Y(e,h,m,p);this._setColor(e,z)};a.Path.prototype.getPoint=function(e,h){this._getPoint(e,ja);e=Da.toTypedArray();return h?(h[0]=e[0],h[1]=e[1],
h):e.slice(0,2)};a.PictureRecorder.prototype.beginRecording=function(e){e=ba(e);return this._beginRecording(e)};a.Surface.prototype.makeImageSnapshot=function(e){e=w(e,"HEAP32",mc);return this._makeImageSnapshot(e)};a.Surface.prototype.requestAnimationFrame=function(e,h){this.Pe||(this.Pe=this.getCanvas());requestAnimationFrame(function(){void 0!==this.se&&a.setCurrentContext(this.se);e(this.Pe);this.flush(h)}.bind(this))};a.Surface.prototype.drawOnce=function(e,h){this.Pe||(this.Pe=this.getCanvas());
requestAnimationFrame(function(){void 0!==this.se&&a.setCurrentContext(this.se);e(this.Pe);this.flush(h);this.dispose()}.bind(this))};a.PathEffect.MakeDash=function(e,h){h||(h=0);if(!e.length||1===e.length%2)throw"Intervals array must have even length";var m=w(e,"HEAPF32");h=a.PathEffect._MakeDash(m,e.length,h);x(m,e);return h};a.Shader.MakeColor=function(e,h){h=h||null;e=M(e);return a.Shader._MakeColor(e,h)};a.Shader.Blend=a.Shader.MakeBlend;a.Shader.Color=a.Shader.MakeColor;a.Shader.Lerp=a.Shader.MakeLerp;
a.Shader.MakeLinearGradient=function(e,h,m,p,z,C,J,N){N=N||null;var O=I(m),T=w(p,"HEAPF32");J=J||0;C=L(C);var u=Da.toTypedArray();u.set(e);u.set(h,2);e=a.Shader._MakeLinearGradient(ja,O.he,O.Ue,T,O.count,z,J,C,N);x(O.he,m);p&&x(T,p);return e};a.Shader.MakeRadialGradient=function(e,h,m,p,z,C,J,N){N=N||null;var O=I(m),T=w(p,"HEAPF32");J=J||0;C=L(C);e=a.Shader._MakeRadialGradient(e[0],e[1],h,O.he,O.Ue,T,O.count,z,J,C,N);x(O.he,m);p&&x(T,p);return e};a.Shader.MakeSweepGradient=function(e,h,m,p,z,C,J,
N,O,T){T=T||null;var u=I(m),H=w(p,"HEAPF32");J=J||0;N=N||0;O=O||360;C=L(C);e=a.Shader._MakeSweepGradient(e,h,u.he,u.Ue,H,u.count,z,N,O,J,C,T);x(u.he,m);p&&x(H,p);return e};a.Shader.MakeTwoPointConicalGradient=function(e,h,m,p,z,C,J,N,O,T){T=T||null;var u=I(z),H=w(C,"HEAPF32");O=O||0;N=L(N);var R=Da.toTypedArray();R.set(e);R.set(m,2);e=a.Shader._MakeTwoPointConicalGradient(ja,h,p,u.he,u.Ue,H,u.count,J,O,N,T);x(u.he,z);C&&x(H,C);return e};a.Vertices.prototype.bounds=function(e){this._bounds(ja);var h=
Da.toTypedArray();return e?(e.set(h),e):h.slice()};a.ae&&a.ae.forEach(function(e){e()})};a.computeTonalColors=function(d){var e=w(d.ambient,"HEAPF32"),h=w(d.spot,"HEAPF32");this._computeTonalColors(e,h);var m={ambient:da(e),spot:da(h)};x(e,d.ambient);x(h,d.spot);return m};a.LTRBRect=function(d,e,h,m){return Float32Array.of(d,e,h,m)};a.XYWHRect=function(d,e,h,m){return Float32Array.of(d,e,d+h,e+m)};a.LTRBiRect=function(d,e,h,m){return Int32Array.of(d,e,h,m)};a.XYWHiRect=function(d,e,h,m){return Int32Array.of(d,
e,d+h,e+m)};a.RRectXY=function(d,e,h){return Float32Array.of(d[0],d[1],d[2],d[3],e,h,e,h,e,h,e,h)};a.MakeAnimatedImageFromEncoded=function(d){d=new Uint8Array(d);var e=a._malloc(d.byteLength);a.HEAPU8.set(d,e);return(d=a._decodeAnimatedImage(e,d.byteLength))?d:null};a.MakeImageFromEncoded=function(d){d=new Uint8Array(d);var e=a._malloc(d.byteLength);a.HEAPU8.set(d,e);return(d=a._decodeImage(e,d.byteLength))?d:null};var lb=null;a.MakeImageFromCanvasImageSource=function(d){var e=d.width,h=d.height;
lb||(lb=document.createElement("canvas"));lb.width=e;lb.height=h;var m=lb.getContext("2d");m.drawImage(d,0,0);d=m.getImageData(0,0,e,h);return a.MakeImage({width:e,height:h,alphaType:a.AlphaType.Unpremul,colorType:a.ColorType.RGBA_8888,colorSpace:a.ColorSpace.SRGB},d.data,4*e)};a.MakeImage=function(d,e,h){var m=a._malloc(e.length);a.HEAPU8.set(e,m);return a._MakeImage(d,m,e.length,h)};a.MakeVertices=function(d,e,h,m,p,z){var C=p&&p.length||0,J=0;h&&h.length&&(J|=1);m&&m.length&&(J|=2);void 0===z||
z||(J|=4);d=new a._VerticesBuilder(d,e.length/2,C,J);w(e,"HEAPF32",d.positions());d.texCoords()&&w(h,"HEAPF32",d.texCoords());if(d.colors()){if(m.build)throw"Color builder not accepted by MakeVertices, use array of ints";w(l(m),"HEAPU32",d.colors())}d.indices()&&w(p,"HEAPU16",d.indices());return d.detach()};a.Matrix={};a.Matrix.identity=function(){return c(3)};a.Matrix.invert=function(d){var e=d[0]*d[4]*d[8]+d[1]*d[5]*d[6]+d[2]*d[3]*d[7]-d[2]*d[4]*d[6]-d[1]*d[3]*d[8]-d[0]*d[5]*d[7];return e?[(d[4]*
d[8]-d[5]*d[7])/e,(d[2]*d[7]-d[1]*d[8])/e,(d[1]*d[5]-d[2]*d[4])/e,(d[5]*d[6]-d[3]*d[8])/e,(d[0]*d[8]-d[2]*d[6])/e,(d[2]*d[3]-d[0]*d[5])/e,(d[3]*d[7]-d[4]*d[6])/e,(d[1]*d[6]-d[0]*d[7])/e,(d[0]*d[4]-d[1]*d[3])/e]:null};a.Matrix.mapPoints=function(d,e){for(var h=0;h<e.length;h+=2){var m=e[h],p=e[h+1],z=d[6]*m+d[7]*p+d[8],C=d[3]*m+d[4]*p+d[5];e[h]=(d[0]*m+d[1]*p+d[2])/z;e[h+1]=C/z}return e};a.Matrix.multiply=function(){return Oc(3,arguments)};a.Matrix.rotated=function(d,e,h){e=e||0;h=h||0;var m=Math.sin(d);
d=Math.cos(d);return[d,-m,jb(m,h,1-d,e),m,d,jb(-m,e,1-d,h),0,0,1]};a.Matrix.scaled=function(d,e,h,m){h=h||0;m=m||0;var p=b([d,e],c(3),3,0,1);return b([h-d*h,m-e*m],p,3,2,0)};a.Matrix.skewed=function(d,e,h,m){h=h||0;m=m||0;var p=b([d,e],c(3),3,1,-1);return b([-d*h,-e*m],p,3,2,0)};a.Matrix.translated=function(d,e){return b(arguments,c(3),3,2,0)};a.Vector={};a.Vector.dot=function(d,e){return d.map(function(h,m){return h*e[m]}).reduce(function(h,m){return h+m})};a.Vector.lengthSquared=function(d){return a.Vector.dot(d,
d)};a.Vector.length=function(d){return Math.sqrt(a.Vector.lengthSquared(d))};a.Vector.mulScalar=function(d,e){return d.map(function(h){return h*e})};a.Vector.add=function(d,e){return d.map(function(h,m){return h+e[m]})};a.Vector.sub=function(d,e){return d.map(function(h,m){return h-e[m]})};a.Vector.dist=function(d,e){return a.Vector.length(a.Vector.sub(d,e))};a.Vector.normalize=function(d){return a.Vector.mulScalar(d,1/a.Vector.length(d))};a.Vector.cross=function(d,e){return[d[1]*e[2]-d[2]*e[1],d[2]*
e[0]-d[0]*e[2],d[0]*e[1]-d[1]*e[0]]};a.M44={};a.M44.identity=function(){return c(4)};a.M44.translated=function(d){return b(d,c(4),4,3,0)};a.M44.scaled=function(d){return b(d,c(4),4,0,1)};a.M44.rotated=function(d,e){return a.M44.rotatedUnitSinCos(a.Vector.normalize(d),Math.sin(e),Math.cos(e))};a.M44.rotatedUnitSinCos=function(d,e,h){var m=d[0],p=d[1];d=d[2];var z=1-h;return[z*m*m+h,z*m*p-e*d,z*m*d+e*p,0,z*m*p+e*d,z*p*p+h,z*p*d-e*m,0,z*m*d-e*p,z*p*d+e*m,z*d*d+h,0,0,0,0,1]};a.M44.lookat=function(d,e,
h){e=a.Vector.normalize(a.Vector.sub(e,d));h=a.Vector.normalize(h);h=a.Vector.normalize(a.Vector.cross(e,h));var m=a.M44.identity();b(h,m,4,0,0);b(a.Vector.cross(h,e),m,4,1,0);b(a.Vector.mulScalar(e,-1),m,4,2,0);b(d,m,4,3,0);d=a.M44.invert(m);return null===d?a.M44.identity():d};a.M44.perspective=function(d,e,h){var m=1/(e-d);h/=2;h=Math.cos(h)/Math.sin(h);return[h,0,0,0,0,h,0,0,0,0,(e+d)*m,2*e*d*m,0,0,-1,1]};a.M44.rc=function(d,e,h){return d[4*e+h]};a.M44.multiply=function(){return Oc(4,arguments)};
a.M44.invert=function(d){var e=d[0],h=d[4],m=d[8],p=d[12],z=d[1],C=d[5],J=d[9],N=d[13],O=d[2],T=d[6],u=d[10],H=d[14],R=d[3],aa=d[7],ka=d[11];d=d[15];var va=e*C-h*z,wa=e*J-m*z,la=e*N-p*z,F=h*J-m*C,k=h*N-p*C,n=m*N-p*J,y=O*aa-T*R,B=O*ka-u*R,D=O*d-H*R,E=T*ka-u*aa,K=T*d-H*aa,Z=u*d-H*ka,qa=va*Z-wa*K+la*E+F*D-k*B+n*y,fa=1/qa;if(0===qa||Infinity===fa)return null;va*=fa;wa*=fa;la*=fa;F*=fa;k*=fa;n*=fa;y*=fa;B*=fa;D*=fa;E*=fa;K*=fa;Z*=fa;e=[C*Z-J*K+N*E,J*D-z*Z-N*B,z*K-C*D+N*y,C*B-z*E-J*y,m*K-h*Z-p*E,e*Z-m*
D+p*B,h*D-e*K-p*y,e*E-h*B+m*y,aa*n-ka*k+d*F,ka*la-R*n-d*wa,R*k-aa*la+d*va,aa*wa-R*F-ka*va,u*k-T*n-H*F,O*n-u*la+H*wa,T*la-O*k-H*va,O*F-T*wa+u*va];return e.every(function(Ea){return!isNaN(Ea)&&Infinity!==Ea&&-Infinity!==Ea})?e:null};a.M44.transpose=function(d){return[d[0],d[4],d[8],d[12],d[1],d[5],d[9],d[13],d[2],d[6],d[10],d[14],d[3],d[7],d[11],d[15]]};a.M44.mustInvert=function(d){d=a.M44.invert(d);if(null===d)throw"Matrix not invertible";return d};a.M44.setupCamera=function(d,e,h){var m=a.M44.lookat(h.eye,
h.coa,h.up);h=a.M44.perspective(h.near,h.far,h.angle);e=[(d[2]-d[0])/2,(d[3]-d[1])/2,e];d=a.M44.multiply(a.M44.translated([(d[0]+d[2])/2,(d[1]+d[3])/2,0]),a.M44.scaled(e));return a.M44.multiply(d,h,m,a.M44.mustInvert(d))};a.ColorMatrix={};a.ColorMatrix.identity=function(){var d=new Float32Array(20);d[0]=1;d[6]=1;d[12]=1;d[18]=1;return d};a.ColorMatrix.scaled=function(d,e,h,m){var p=new Float32Array(20);p[0]=d;p[6]=e;p[12]=h;p[18]=m;return p};var Jd=[[6,7,11,12],[0,10,2,12],[0,1,5,6]];a.ColorMatrix.rotated=
function(d,e,h){var m=a.ColorMatrix.identity();d=Jd[d];m[d[0]]=h;m[d[1]]=e;m[d[2]]=-e;m[d[3]]=h;return m};a.ColorMatrix.postTranslate=function(d,e,h,m,p){d[4]+=e;d[9]+=h;d[14]+=m;d[19]+=p;return d};a.ColorMatrix.concat=function(d,e){for(var h=new Float32Array(20),m=0,p=0;20>p;p+=5){for(var z=0;4>z;z++)h[m++]=d[p]*e[z]+d[p+1]*e[z+5]+d[p+2]*e[z+10]+d[p+3]*e[z+15];h[m++]=d[p]*e[4]+d[p+1]*e[9]+d[p+2]*e[14]+d[p+3]*e[19]+d[p+4]}return h};(function(d){d.ae=d.ae||[];d.ae.push(function(){function e(u){if(!u||
!u.length)return[];for(var H=[],R=0;R<u.length;R+=5){var aa=d.LTRBRect(u[R],u[R+1],u[R+2],u[R+3]);aa.direction=0===u[R+4]?d.TextDirection.RTL:d.TextDirection.LTR;H.push(aa)}d._free(u.byteOffset);return H}function h(u){u=u||{};void 0===u.weight&&(u.weight=d.FontWeight.Normal);u.width=u.width||d.FontWidth.Normal;u.slant=u.slant||d.FontSlant.Upright;return u}function m(u){if(!u||!u.length)return S;for(var H=[],R=0;R<u.length;R++){var aa=p(u[R]);H.push(aa)}return w(H,"HEAPU32")}function p(u){if(J[u])return J[u];
var H=oa(u)+1,R=d._malloc(H);ra(u,G,R,H);return J[u]=R}function z(u){u._colorPtr=M(u.color);u._foregroundColorPtr=S;u._backgroundColorPtr=S;u._decorationColorPtr=S;u.foregroundColor&&(u._foregroundColorPtr=M(u.foregroundColor,N));u.backgroundColor&&(u._backgroundColorPtr=M(u.backgroundColor,O));u.decorationColor&&(u._decorationColorPtr=M(u.decorationColor,T));Array.isArray(u.fontFamilies)&&u.fontFamilies.length?(u._fontFamiliesPtr=m(u.fontFamilies),u._fontFamiliesLen=u.fontFamilies.length):(u._fontFamiliesPtr=
S,u._fontFamiliesLen=0)}function C(u){d._free(u._fontFamiliesPtr)}d.Paragraph.prototype.getRectsForRange=function(u,H,R,aa){u=this._getRectsForRange(u,H,R,aa);return e(u)};d.Paragraph.prototype.getRectsForPlaceholders=function(){var u=this._getRectsForPlaceholders();return e(u)};d.TypefaceFontProvider.prototype.registerFont=function(u,H){u=d.FontMgr.RefDefault().MakeTypefaceFromData(u);if(!u)return null;H=p(H);this._registerFont(u,H)};d.ParagraphStyle=function(u){u.disableHinting=u.disableHinting||
!1;if(u.ellipsis){var H=u.ellipsis;u._ellipsisPtr=p(H);u._ellipsisLen=oa(H)+1}else u._ellipsisPtr=S,u._ellipsisLen=0;u.heightMultiplier=u.heightMultiplier||0;u.maxLines=u.maxLines||0;H=(H=u.strutStyle)||{};H.strutEnabled=H.strutEnabled||!1;H.strutEnabled&&Array.isArray(H.fontFamilies)&&H.fontFamilies.length?(H._fontFamiliesPtr=m(H.fontFamilies),H._fontFamiliesLen=H.fontFamilies.length):(H._fontFamiliesPtr=S,H._fontFamiliesLen=0);H.fontStyle=h(H.fontStyle);H.fontSize=H.fontSize||0;H.heightMultiplier=
H.heightMultiplier||0;H.halfLeading=H.halfLeading||!1;H.leading=H.leading||0;H.forceStrutHeight=H.forceStrutHeight||!1;u.strutStyle=H;u.textAlign=u.textAlign||d.TextAlign.Start;u.textDirection=u.textDirection||d.TextDirection.LTR;u.textHeightBehavior=u.textHeightBehavior||d.TextHeightBehavior.All;u.textStyle=d.TextStyle(u.textStyle);return u};d.TextStyle=function(u){u.color||(u.color=d.BLACK);u.decoration=u.decoration||0;u.decorationThickness=u.decorationThickness||0;u.decorationStyle=u.decorationStyle||
d.DecorationStyle.Solid;u.textBaseline=u.textBaseline||d.TextBaseline.Alphabetic;u.fontSize=u.fontSize||0;u.letterSpacing=u.letterSpacing||0;u.wordSpacing=u.wordSpacing||0;u.heightMultiplier=u.heightMultiplier||0;u.halfLeading=u.halfLeading||!1;if(u.locale){var H=u.locale;u._localePtr=p(H);u._localeLen=oa(H)+1}else u._localePtr=S,u._localeLen=0;u.fontStyle=h(u.fontStyle);if(u.shadows){H=u.shadows;var R=H.map(function(F){return F.color||d.BLACK}),aa=H.map(function(F){return F.blurRadius||0});u._shadowLen=
H.length;for(var ka=d._malloc(2*H.length,"HEAPF32"),va=ka/4,wa=0;wa<H.length;wa++){var la=H[wa].offset||[0,0];d.HEAPF32[va]=la[0];d.HEAPF32[va+1]=la[1];va+=2}u._shadowColorsPtr=I(R).he;u._shadowOffsetsPtr=ka;u._shadowBlurRadiiPtr=w(aa,"HEAPF32")}else u._shadowLen=0,u._shadowColorsPtr=S,u._shadowOffsetsPtr=S,u._shadowBlurRadiiPtr=S;u.fontFeatures?(H=u.fontFeatures,R=H.map(function(F){return F.name}),aa=H.map(function(F){return F.value}),u._fontFeatureLen=H.length,u._fontFeatureNamesPtr=m(R),u._fontFeatureValuesPtr=
w(aa,"HEAPU32")):(u._fontFeatureLen=0,u._fontFeatureNamesPtr=S,u._fontFeatureValuesPtr=S);return u};var J={},N=d._malloc(16),O=d._malloc(16),T=d._malloc(16);d.ParagraphBuilder.Make=function(u,H){z(u.textStyle);H=d.ParagraphBuilder._Make(u,H);C(u.textStyle);return H};d.ParagraphBuilder.MakeFromFontProvider=function(u,H){z(u.textStyle);H=d.ParagraphBuilder._MakeFromFontProvider(u,H);C(u.textStyle);return H};d.ParagraphBuilder.ShapeText=function(u,H,R){let aa=0;for(const ka of H)aa+=ka.length;if(aa!==
u.length)throw"Accumulated block lengths must equal text.length";return d.ParagraphBuilder._ShapeText(u,H,R)};d.ParagraphBuilder.prototype.pushStyle=function(u){z(u);this._pushStyle(u);C(u)};d.ParagraphBuilder.prototype.pushPaintStyle=function(u,H,R){z(u);this._pushPaintStyle(u,H,R);C(u)};d.ParagraphBuilder.prototype.addPlaceholder=function(u,H,R,aa,ka){R=R||d.PlaceholderAlignment.Baseline;aa=aa||d.TextBaseline.Alphabetic;this._addPlaceholder(u||0,H||0,R,aa,ka||0)}})})(r);a.ae=a.ae||[];a.ae.push(function(){a.Path.prototype.op=
function(d,e){return this._op(d,e)?this:null};a.Path.prototype.simplify=function(){return this._simplify()?this:null}});a.ae=a.ae||[];a.ae.push(function(){a.Canvas.prototype.drawText=function(d,e,h,m,p){var z=oa(d),C=a._malloc(z+1);ra(d,G,C,z+1);this._drawSimpleText(C,z,e,h,p,m);a._free(C)};a.Font.prototype.getGlyphBounds=function(d,e,h){var m=w(d,"HEAPU16"),p=a._malloc(16*d.length);this._getGlyphWidthBounds(m,d.length,S,p,e||null);e=new Float32Array(a.HEAPU8.buffer,p,4*d.length);x(m,d);if(h)return h.set(e),
a._free(p),h;d=Float32Array.from(e);a._free(p);return d};a.Font.prototype.getGlyphIDs=function(d,e,h){e||(e=d.length);var m=oa(d)+1,p=a._malloc(m);ra(d,G,p,m);d=a._malloc(2*e);e=this._getGlyphIDs(p,m-1,e,d);a._free(p);if(0>e)return a._free(d),null;p=new Uint16Array(a.HEAPU8.buffer,d,e);if(h)return h.set(p),a._free(d),h;h=Uint16Array.from(p);a._free(d);return h};a.Font.prototype.getGlyphWidths=function(d,e,h){var m=w(d,"HEAPU16"),p=a._malloc(4*d.length);this._getGlyphWidthBounds(m,d.length,p,S,e||
null);e=new Float32Array(a.HEAPU8.buffer,p,d.length);x(m,d);if(h)return h.set(e),a._free(p),h;d=Float32Array.from(e);a._free(p);return d};a.FontMgr.FromData=function(){if(!arguments.length)return null;var d=arguments;1===d.length&&Array.isArray(d[0])&&(d=arguments[0]);if(!d.length)return null;for(var e=[],h=[],m=0;m<d.length;m++){var p=new Uint8Array(d[m]),z=w(p,"HEAPU8");e.push(z);h.push(p.byteLength)}e=w(e,"HEAPU32");h=w(h,"HEAPU32");d=a.FontMgr._fromData(e,h,d.length);a._free(e);a._free(h);return d};
a.FontMgr.prototype.MakeTypefaceFromData=function(d){d=new Uint8Array(d);var e=w(d,"HEAPU8");return(d=this._makeTypefaceFromData(e,d.byteLength))?d:null};a.TextBlob.MakeOnPath=function(d,e,h,m){if(d&&d.length&&e&&e.countPoints()){if(1===e.countPoints())return this.MakeFromText(d,h);m||(m=0);var p=h.getGlyphIDs(d),z=h.getGlyphWidths(p);p=new a.RSXFormBuilder;e=new a.ContourMeasureIter(e,!1,1);for(var C=e.next(),J=new Float32Array(4),N=0;N<d.length&&C;N++){var O=z[N];m+=O/2;if(m>C.length()){C.delete();
C=e.next();if(!C){d=d.substring(0,N);break}m=O/2}C.getPosTan(m,J);var T=J[2],u=J[3];p.push(T,u,J[0]-O/2*T,J[1]-O/2*u);m+=O/2}d=this.MakeFromRSXform(d,p,h);p.delete();C&&C.delete();e.delete();return d}};a.TextBlob.MakeFromRSXform=function(d,e,h){var m=oa(d)+1,p=a._malloc(m);ra(d,G,p,m);d=S;e.build?d=e.build():d=w(e,"HEAPF32");e=a.TextBlob._MakeFromRSXform(p,m-1,d,h);a._free(p);return e?e:null};a.TextBlob.MakeFromRSXformGlyphs=function(d,e,h){var m=w(d,"HEAPU16"),p=S;e.build?p=e.build():p=w(e,"HEAPF32");
e=a.TextBlob._MakeFromRSXformGlyphs(m,2*d.length,p,h);x(m,d);return e?e:null};a.TextBlob.MakeFromGlyphs=function(d,e){var h=w(d,"HEAPU16");e=a.TextBlob._MakeFromGlyphs(h,2*d.length,e);x(h,d);return e?e:null};a.TextBlob.MakeFromText=function(d,e){var h=oa(d)+1,m=a._malloc(h);ra(d,G,m,h);d=a.TextBlob._MakeFromText(m,h-1,e);a._free(m);return d?d:null};a.MallocGlyphIDs=function(d){return a.Malloc(Uint16Array,d)}});a.ae=a.ae||[];a.ae.push(function(){a.MakePicture=function(d){d=new Uint8Array(d);var e=
a._malloc(d.byteLength);a.HEAPU8.set(d,e);return(d=a._MakePicture(e,d.byteLength))?d:null}});(function(){function d(F){for(var k=0;k<F.length;k++)if(void 0!==F[k]&&!Number.isFinite(F[k]))return!1;return!0}function e(F){var k=a.getColorComponents(F);F=k[0];var n=k[1],y=k[2];k=k[3];if(1===k)return F=F.toString(16).toLowerCase(),n=n.toString(16).toLowerCase(),y=y.toString(16).toLowerCase(),F=1===F.length?"0"+F:F,n=1===n.length?"0"+n:n,y=1===y.length?"0"+y:y,"#"+F+n+y;k=0===k||1===k?k:k.toFixed(8);return"rgba("+
F+", "+n+", "+y+", "+k+")"}function h(F){return a.parseColorString(F,va)}function m(F){F=wa.exec(F);if(!F)return null;var k=parseFloat(F[4]),n=16;switch(F[5]){case "em":case "rem":n=16*k;break;case "pt":n=4*k/3;break;case "px":n=k;break;case "pc":n=16*k;break;case "in":n=96*k;break;case "cm":n=96*k/2.54;break;case "mm":n=96/25.4*k;break;case "q":n=96/25.4/4*k;break;case "%":n=16/75*k}return{style:F[1],variant:F[2],weight:F[3],sizePx:n,family:F[6].trim()}}function p(F){this.Sd=F;this.Ud=new a.Paint;
this.Ud.setAntiAlias(!0);this.Ud.setStrokeMiter(10);this.Ud.setStrokeCap(a.StrokeCap.Butt);this.Ud.setStrokeJoin(a.StrokeJoin.Miter);this.af="10px monospace";this.ye=new a.Font(null,10);this.ye.setSubpixel(!0);this.ge=this.me=a.BLACK;this.Be=0;this.Re=a.TRANSPARENT;this.De=this.Ce=0;this.Se=this.oe=1;this.Qe=0;this.Ae=[];this.Td=a.BlendMode.SrcOver;this.Ud.setStrokeWidth(this.Se);this.Ud.setBlendMode(this.Td);this.Xd=new a.Path;this.Yd=a.Matrix.identity();this.uf=[];this.He=[];this.qe=function(){this.Xd.delete();
this.Ud.delete();this.ye.delete();this.He.forEach(function(k){k.qe()})};Object.defineProperty(this,"currentTransform",{enumerable:!0,get:function(){return{a:this.Yd[0],c:this.Yd[1],e:this.Yd[2],b:this.Yd[3],d:this.Yd[4],f:this.Yd[5]}},set:function(k){k.a&&this.setTransform(k.a,k.b,k.c,k.d,k.e,k.f)}});Object.defineProperty(this,"fillStyle",{enumerable:!0,get:function(){return f(this.ge)?e(this.ge):this.ge},set:function(k){"string"===typeof k?this.ge=h(k):k.ze&&(this.ge=k)}});Object.defineProperty(this,
"font",{enumerable:!0,get:function(){return this.af},set:function(k){var n=m(k),y=n.family;n.typeface=la[y]?la[y][(n.style||"normal")+"|"+(n.variant||"normal")+"|"+(n.weight||"normal")]||la[y]["*"]:null;n&&(this.ye.setSize(n.sizePx),this.ye.setTypeface(n.typeface),this.af=k)}});Object.defineProperty(this,"globalAlpha",{enumerable:!0,get:function(){return this.oe},set:function(k){!isFinite(k)||0>k||1<k||(this.oe=k)}});Object.defineProperty(this,"globalCompositeOperation",{enumerable:!0,get:function(){switch(this.Td){case a.BlendMode.SrcOver:return"source-over";
case a.BlendMode.DstOver:return"destination-over";case a.BlendMode.Src:return"copy";case a.BlendMode.Dst:return"destination";case a.BlendMode.Clear:return"clear";case a.BlendMode.SrcIn:return"source-in";case a.BlendMode.DstIn:return"destination-in";case a.BlendMode.SrcOut:return"source-out";case a.BlendMode.DstOut:return"destination-out";case a.BlendMode.SrcATop:return"source-atop";case a.BlendMode.DstATop:return"destination-atop";case a.BlendMode.Xor:return"xor";case a.BlendMode.Plus:return"lighter";
case a.BlendMode.Multiply:return"multiply";case a.BlendMode.Screen:return"screen";case a.BlendMode.Overlay:return"overlay";case a.BlendMode.Darken:return"darken";case a.BlendMode.Lighten:return"lighten";case a.BlendMode.ColorDodge:return"color-dodge";case a.BlendMode.ColorBurn:return"color-burn";case a.BlendMode.HardLight:return"hard-light";case a.BlendMode.SoftLight:return"soft-light";case a.BlendMode.Difference:return"difference";case a.BlendMode.Exclusion:return"exclusion";case a.BlendMode.Hue:return"hue";
case a.BlendMode.Saturation:return"saturation";case a.BlendMode.Color:return"color";case a.BlendMode.Luminosity:return"luminosity"}},set:function(k){switch(k){case "source-over":this.Td=a.BlendMode.SrcOver;break;case "destination-over":this.Td=a.BlendMode.DstOver;break;case "copy":this.Td=a.BlendMode.Src;break;case "destination":this.Td=a.BlendMode.Dst;break;case "clear":this.Td=a.BlendMode.Clear;break;case "source-in":this.Td=a.BlendMode.SrcIn;break;case "destination-in":this.Td=a.BlendMode.DstIn;
break;case "source-out":this.Td=a.BlendMode.SrcOut;break;case "destination-out":this.Td=a.BlendMode.DstOut;break;case "source-atop":this.Td=a.BlendMode.SrcATop;break;case "destination-atop":this.Td=a.BlendMode.DstATop;break;case "xor":this.Td=a.BlendMode.Xor;break;case "lighter":this.Td=a.BlendMode.Plus;break;case "plus-lighter":this.Td=a.BlendMode.Plus;break;case "plus-darker":throw"plus-darker is not supported";case "multiply":this.Td=a.BlendMode.Multiply;break;case "screen":this.Td=a.BlendMode.Screen;
break;case "overlay":this.Td=a.BlendMode.Overlay;break;case "darken":this.Td=a.BlendMode.Darken;break;case "lighten":this.Td=a.BlendMode.Lighten;break;case "color-dodge":this.Td=a.BlendMode.ColorDodge;break;case "color-burn":this.Td=a.BlendMode.ColorBurn;break;case "hard-light":this.Td=a.BlendMode.HardLight;break;case "soft-light":this.Td=a.BlendMode.SoftLight;break;case "difference":this.Td=a.BlendMode.Difference;break;case "exclusion":this.Td=a.BlendMode.Exclusion;break;case "hue":this.Td=a.BlendMode.Hue;
break;case "saturation":this.Td=a.BlendMode.Saturation;break;case "color":this.Td=a.BlendMode.Color;break;case "luminosity":this.Td=a.BlendMode.Luminosity;break;default:return}this.Ud.setBlendMode(this.Td)}});Object.defineProperty(this,"imageSmoothingEnabled",{enumerable:!0,get:function(){return!0},set:function(){}});Object.defineProperty(this,"imageSmoothingQuality",{enumerable:!0,get:function(){return"high"},set:function(){}});Object.defineProperty(this,"lineCap",{enumerable:!0,get:function(){switch(this.Ud.getStrokeCap()){case a.StrokeCap.Butt:return"butt";
case a.StrokeCap.Round:return"round";case a.StrokeCap.Square:return"square"}},set:function(k){switch(k){case "butt":this.Ud.setStrokeCap(a.StrokeCap.Butt);break;case "round":this.Ud.setStrokeCap(a.StrokeCap.Round);break;case "square":this.Ud.setStrokeCap(a.StrokeCap.Square)}}});Object.defineProperty(this,"lineDashOffset",{enumerable:!0,get:function(){return this.Qe},set:function(k){isFinite(k)&&(this.Qe=k)}});Object.defineProperty(this,"lineJoin",{enumerable:!0,get:function(){switch(this.Ud.getStrokeJoin()){case a.StrokeJoin.Miter:return"miter";
case a.StrokeJoin.Round:return"round";case a.StrokeJoin.Bevel:return"bevel"}},set:function(k){switch(k){case "miter":this.Ud.setStrokeJoin(a.StrokeJoin.Miter);break;case "round":this.Ud.setStrokeJoin(a.StrokeJoin.Round);break;case "bevel":this.Ud.setStrokeJoin(a.StrokeJoin.Bevel)}}});Object.defineProperty(this,"lineWidth",{enumerable:!0,get:function(){return this.Ud.getStrokeWidth()},set:function(k){0>=k||!k||(this.Se=k,this.Ud.setStrokeWidth(k))}});Object.defineProperty(this,"miterLimit",{enumerable:!0,
get:function(){return this.Ud.getStrokeMiter()},set:function(k){0>=k||!k||this.Ud.setStrokeMiter(k)}});Object.defineProperty(this,"shadowBlur",{enumerable:!0,get:function(){return this.Be},set:function(k){0>k||!isFinite(k)||(this.Be=k)}});Object.defineProperty(this,"shadowColor",{enumerable:!0,get:function(){return e(this.Re)},set:function(k){this.Re=h(k)}});Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,get:function(){return this.Ce},set:function(k){isFinite(k)&&(this.Ce=k)}});Object.defineProperty(this,
"shadowOffsetY",{enumerable:!0,get:function(){return this.De},set:function(k){isFinite(k)&&(this.De=k)}});Object.defineProperty(this,"strokeStyle",{enumerable:!0,get:function(){return e(this.me)},set:function(k){"string"===typeof k?this.me=h(k):k.ze&&(this.me=k)}});this.arc=function(k,n,y,B,D,E){u(this.Xd,k,n,y,y,0,B,D,E)};this.arcTo=function(k,n,y,B,D){N(this.Xd,k,n,y,B,D)};this.beginPath=function(){this.Xd.delete();this.Xd=new a.Path};this.bezierCurveTo=function(k,n,y,B,D,E){var K=this.Xd;d([k,
n,y,B,D,E])&&(K.isEmpty()&&K.moveTo(k,n),K.cubicTo(k,n,y,B,D,E))};this.clearRect=function(k,n,y,B){this.Ud.setStyle(a.PaintStyle.Fill);this.Ud.setBlendMode(a.BlendMode.Clear);this.Sd.drawRect(a.XYWHRect(k,n,y,B),this.Ud);this.Ud.setBlendMode(this.Td)};this.clip=function(k,n){"string"===typeof k?(n=k,k=this.Xd):k&&k.hf&&(k=k.$d);k||(k=this.Xd);k=k.copy();n&&"evenodd"===n.toLowerCase()?k.setFillType(a.FillType.EvenOdd):k.setFillType(a.FillType.Winding);this.Sd.clipPath(k,a.ClipOp.Intersect,!0);k.delete()};
this.closePath=function(){O(this.Xd)};this.createImageData=function(){if(1===arguments.length){var k=arguments[0];return new C(new Uint8ClampedArray(4*k.width*k.height),k.width,k.height)}if(2===arguments.length){k=arguments[0];var n=arguments[1];return new C(new Uint8ClampedArray(4*k*n),k,n)}throw"createImageData expects 1 or 2 arguments, got "+arguments.length;};this.createLinearGradient=function(k,n,y,B){if(d(arguments)){var D=new J(k,n,y,B);this.He.push(D);return D}};this.createPattern=function(k,
n){k=new aa(k,n);this.He.push(k);return k};this.createRadialGradient=function(k,n,y,B,D,E){if(d(arguments)){var K=new ka(k,n,y,B,D,E);this.He.push(K);return K}};this.drawImage=function(k){var n=this.$e();if(3===arguments.length||5===arguments.length)var y=a.XYWHRect(arguments[1],arguments[2],arguments[3]||k.width(),arguments[4]||k.height()),B=a.XYWHRect(0,0,k.width(),k.height());else if(9===arguments.length)y=a.XYWHRect(arguments[5],arguments[6],arguments[7],arguments[8]),B=a.XYWHRect(arguments[1],
arguments[2],arguments[3],arguments[4]);else throw"invalid number of args for drawImage, need 3, 5, or 9; got "+arguments.length;this.Sd.drawImageRect(k,B,y,n,!1);n.dispose()};this.ellipse=function(k,n,y,B,D,E,K,Z){u(this.Xd,k,n,y,B,D,E,K,Z)};this.$e=function(){var k=this.Ud.copy();k.setStyle(a.PaintStyle.Fill);if(f(this.ge)){var n=a.multiplyByAlpha(this.ge,this.oe);k.setColor(n)}else n=this.ge.ze(this.Yd),k.setColor(a.Color(0,0,0,this.oe)),k.setShader(n);k.dispose=function(){this.delete()};return k};
this.fill=function(k,n){"string"===typeof k?(n=k,k=this.Xd):k&&k.hf&&(k=k.$d);if("evenodd"===n)this.Xd.setFillType(a.FillType.EvenOdd);else{if("nonzero"!==n&&n)throw"invalid fill rule";this.Xd.setFillType(a.FillType.Winding)}k||(k=this.Xd);n=this.$e();var y=this.Ee(n);y&&(this.Sd.save(),this.we(),this.Sd.drawPath(k,y),this.Sd.restore(),y.dispose());this.Sd.drawPath(k,n);n.dispose()};this.fillRect=function(k,n,y,B){var D=this.$e(),E=this.Ee(D);E&&(this.Sd.save(),this.we(),this.Sd.drawRect(a.XYWHRect(k,
n,y,B),E),this.Sd.restore(),E.dispose());this.Sd.drawRect(a.XYWHRect(k,n,y,B),D);D.dispose()};this.fillText=function(k,n,y){var B=this.$e();k=a.TextBlob.MakeFromText(k,this.ye);var D=this.Ee(B);D&&(this.Sd.save(),this.we(),this.Sd.drawTextBlob(k,n,y,D),this.Sd.restore(),D.dispose());this.Sd.drawTextBlob(k,n,y,B);k.delete();B.dispose()};this.getImageData=function(k,n,y,B){return(k=this.Sd.readPixels(k,n,{width:y,height:B,colorType:a.ColorType.RGBA_8888,alphaType:a.AlphaType.Unpremul,colorSpace:a.ColorSpace.SRGB}))?
new C(new Uint8ClampedArray(k.buffer),y,B):null};this.getLineDash=function(){return this.Ae.slice()};this.vf=function(k){var n=a.Matrix.invert(this.Yd);a.Matrix.mapPoints(n,k);return k};this.isPointInPath=function(k,n,y){var B=arguments;if(3===B.length)var D=this.Xd;else if(4===B.length)D=B[0],k=B[1],n=B[2],y=B[3];else throw"invalid arg count, need 3 or 4, got "+B.length;if(!isFinite(k)||!isFinite(n))return!1;y=y||"nonzero";if("nonzero"!==y&&"evenodd"!==y)return!1;B=this.vf([k,n]);k=B[0];n=B[1];D.setFillType("nonzero"===
y?a.FillType.Winding:a.FillType.EvenOdd);return D.contains(k,n)};this.isPointInStroke=function(k,n){var y=arguments;if(2===y.length)var B=this.Xd;else if(3===y.length)B=y[0],k=y[1],n=y[2];else throw"invalid arg count, need 2 or 3, got "+y.length;if(!isFinite(k)||!isFinite(n))return!1;y=this.vf([k,n]);k=y[0];n=y[1];B=B.copy();B.setFillType(a.FillType.Winding);B.stroke({width:this.lineWidth,miter_limit:this.miterLimit,cap:this.Ud.getStrokeCap(),join:this.Ud.getStrokeJoin(),precision:.3});y=B.contains(k,
n);B.delete();return y};this.lineTo=function(k,n){H(this.Xd,k,n)};this.measureText=function(){throw Error("Clients wishing to properly measure text should use the Paragraph API");};this.moveTo=function(k,n){var y=this.Xd;d([k,n])&&y.moveTo(k,n)};this.putImageData=function(k,n,y,B,D,E,K){if(d([n,y,B,D,E,K]))if(void 0===B)this.Sd.writePixels(k.data,k.width,k.height,n,y);else if(B=B||0,D=D||0,E=E||k.width,K=K||k.height,0>E&&(B+=E,E=Math.abs(E)),0>K&&(D+=K,K=Math.abs(K)),0>B&&(E+=B,B=0),0>D&&(K+=D,D=
0),!(0>=E||0>=K)){k=a.MakeImage({width:k.width,height:k.height,alphaType:a.AlphaType.Unpremul,colorType:a.ColorType.RGBA_8888,colorSpace:a.ColorSpace.SRGB},k.data,4*k.width);var Z=a.XYWHRect(B,D,E,K);n=a.XYWHRect(n+B,y+D,E,K);y=a.Matrix.invert(this.Yd);this.Sd.save();this.Sd.concat(y);this.Sd.drawImageRect(k,Z,n,null,!1);this.Sd.restore();k.delete()}};this.quadraticCurveTo=function(k,n,y,B){var D=this.Xd;d([k,n,y,B])&&(D.isEmpty()&&D.moveTo(k,n),D.quadTo(k,n,y,B))};this.rect=function(k,n,y,B){var D=
this.Xd;k=a.XYWHRect(k,n,y,B);d(k)&&D.addRect(k)};this.resetTransform=function(){this.Xd.transform(this.Yd);var k=a.Matrix.invert(this.Yd);this.Sd.concat(k);this.Yd=this.Sd.getTotalMatrix()};this.restore=function(){var k=this.uf.pop();if(k){var n=a.Matrix.multiply(this.Yd,a.Matrix.invert(k.If));this.Xd.transform(n);this.Ud.delete();this.Ud=k.fg;this.Ae=k.bg;this.Se=k.xg;this.me=k.wg;this.ge=k.fs;this.Ce=k.ug;this.De=k.vg;this.Be=k.jg;this.Re=k.tg;this.oe=k.Pf;this.Td=k.Qf;this.Qe=k.cg;this.af=k.Nf;
this.Sd.restore();this.Yd=this.Sd.getTotalMatrix()}};this.rotate=function(k){if(isFinite(k)){var n=a.Matrix.rotated(-k);this.Xd.transform(n);this.Sd.rotate(k/Math.PI*180,0,0);this.Yd=this.Sd.getTotalMatrix()}};this.save=function(){if(this.ge.xe){var k=this.ge.xe();this.He.push(k)}else k=this.ge;if(this.me.xe){var n=this.me.xe();this.He.push(n)}else n=this.me;this.uf.push({If:this.Yd.slice(),bg:this.Ae.slice(),xg:this.Se,wg:n,fs:k,ug:this.Ce,vg:this.De,jg:this.Be,tg:this.Re,Pf:this.oe,cg:this.Qe,Qf:this.Td,
fg:this.Ud.copy(),Nf:this.af});this.Sd.save()};this.scale=function(k,n){if(d(arguments)){var y=a.Matrix.scaled(1/k,1/n);this.Xd.transform(y);this.Sd.scale(k,n);this.Yd=this.Sd.getTotalMatrix()}};this.setLineDash=function(k){for(var n=0;n<k.length;n++)if(!isFinite(k[n])||0>k[n])return;1===k.length%2&&Array.prototype.push.apply(k,k);this.Ae=k};this.setTransform=function(k,n,y,B,D,E){d(arguments)&&(this.resetTransform(),this.transform(k,n,y,B,D,E))};this.we=function(){var k=a.Matrix.invert(this.Yd);
this.Sd.concat(k);this.Sd.concat(a.Matrix.translated(this.Ce,this.De));this.Sd.concat(this.Yd)};this.Ee=function(k){var n=a.multiplyByAlpha(this.Re,this.oe);if(!a.getColorComponents(n)[3]||!(this.Be||this.De||this.Ce))return null;k=k.copy();k.setColor(n);var y=a.MaskFilter.MakeBlur(a.BlurStyle.Normal,this.Be/2,!1);k.setMaskFilter(y);k.dispose=function(){y.delete();this.delete()};return k};this.kf=function(){var k=this.Ud.copy();k.setStyle(a.PaintStyle.Stroke);if(f(this.me)){var n=a.multiplyByAlpha(this.me,
this.oe);k.setColor(n)}else n=this.me.ze(this.Yd),k.setColor(a.Color(0,0,0,this.oe)),k.setShader(n);k.setStrokeWidth(this.Se);if(this.Ae.length){var y=a.PathEffect.MakeDash(this.Ae,this.Qe);k.setPathEffect(y)}k.dispose=function(){y&&y.delete();this.delete()};return k};this.stroke=function(k){k=k?k.$d:this.Xd;var n=this.kf(),y=this.Ee(n);y&&(this.Sd.save(),this.we(),this.Sd.drawPath(k,y),this.Sd.restore(),y.dispose());this.Sd.drawPath(k,n);n.dispose()};this.strokeRect=function(k,n,y,B){var D=this.kf(),
E=this.Ee(D);E&&(this.Sd.save(),this.we(),this.Sd.drawRect(a.XYWHRect(k,n,y,B),E),this.Sd.restore(),E.dispose());this.Sd.drawRect(a.XYWHRect(k,n,y,B),D);D.dispose()};this.strokeText=function(k,n,y){var B=this.kf();k=a.TextBlob.MakeFromText(k,this.ye);var D=this.Ee(B);D&&(this.Sd.save(),this.we(),this.Sd.drawTextBlob(k,n,y,D),this.Sd.restore(),D.dispose());this.Sd.drawTextBlob(k,n,y,B);k.delete();B.dispose()};this.translate=function(k,n){if(d(arguments)){var y=a.Matrix.translated(-k,-n);this.Xd.transform(y);
this.Sd.translate(k,n);this.Yd=this.Sd.getTotalMatrix()}};this.transform=function(k,n,y,B,D,E){k=[k,y,D,n,B,E,0,0,1];n=a.Matrix.invert(k);this.Xd.transform(n);this.Sd.concat(k);this.Yd=this.Sd.getTotalMatrix()};this.addHitRegion=function(){};this.clearHitRegions=function(){};this.drawFocusIfNeeded=function(){};this.removeHitRegion=function(){};this.scrollPathIntoView=function(){};Object.defineProperty(this,"canvas",{value:null,writable:!1})}function z(F){this.lf=F;this.se=new p(F.getCanvas());this.bf=
[];this.Bf=a.FontMgr.RefDefault();this.decodeImage=function(k){k=a.MakeImageFromEncoded(k);if(!k)throw"Invalid input";this.bf.push(k);return k};this.loadFont=function(k,n){k=this.Bf.MakeTypefaceFromData(k);if(!k)return null;this.bf.push(k);var y=(n.style||"normal")+"|"+(n.variant||"normal")+"|"+(n.weight||"normal");n=n.family;la[n]||(la[n]={"*":k});la[n][y]=k};this.makePath2D=function(k){k=new R(k);this.bf.push(k.$d);return k};this.getContext=function(k){return"2d"===k?this.se:null};this.toDataURL=
function(k,n){this.lf.flush();var y=this.lf.makeImageSnapshot();if(y){k=k||"image/png";var B=a.ImageFormat.PNG;"image/jpeg"===k&&(B=a.ImageFormat.JPEG);if(n=y.encodeToBytes(B,n||.92)){y.delete();k="data:"+k+";base64,";if("undefined"!==typeof Buffer)n=Buffer.from(n).toString("base64");else{y=0;B=n.length;for(var D="",E;y<B;)E=n.slice(y,Math.min(y+32768,B)),D+=String.fromCharCode.apply(null,E),y+=32768;n=btoa(D)}return k+n}}};this.dispose=function(){this.se.qe();this.bf.forEach(function(k){k.delete()});
this.lf.dispose()}}function C(F,k,n){if(!k||0===n)throw"invalid dimensions, width and height must be non-zero";if(F.length%4)throw"arr must be a multiple of 4";n=n||F.length/(4*k);Object.defineProperty(this,"data",{value:F,writable:!1});Object.defineProperty(this,"height",{value:n,writable:!1});Object.defineProperty(this,"width",{value:k,writable:!1})}function J(F,k,n,y){this.ce=null;this.je=[];this.ee=[];this.addColorStop=function(B,D){if(0>B||1<B||!isFinite(B))throw"offset must be between 0 and 1 inclusively";
D=h(D);var E=this.ee.indexOf(B);if(-1!==E)this.je[E]=D;else{for(E=0;E<this.ee.length&&!(this.ee[E]>B);E++);this.ee.splice(E,0,B);this.je.splice(E,0,D)}};this.xe=function(){var B=new J(F,k,n,y);B.je=this.je.slice();B.ee=this.ee.slice();return B};this.qe=function(){this.ce&&(this.ce.delete(),this.ce=null)};this.ze=function(B){var D=[F,k,n,y];a.Matrix.mapPoints(B,D);B=D[0];var E=D[1],K=D[2];D=D[3];this.qe();return this.ce=a.Shader.MakeLinearGradient([B,E],[K,D],this.je,this.ee,a.TileMode.Clamp)}}function N(F,
k,n,y,B,D){if(d([k,n,y,B,D])){if(0>D)throw"radii cannot be negative";F.isEmpty()&&F.moveTo(k,n);F.arcToTangent(k,n,y,B,D)}}function O(F){if(!F.isEmpty()){var k=F.getBounds();(k[3]-k[1]||k[2]-k[0])&&F.close()}}function T(F,k,n,y,B,D,E){E=(E-D)/Math.PI*180;D=D/Math.PI*180;k=a.LTRBRect(k-y,n-B,k+y,n+B);1E-5>Math.abs(Math.abs(E)-360)?(n=E/2,F.arcToOval(k,D,n,!1),F.arcToOval(k,D+n,n,!1)):F.arcToOval(k,D,E,!1)}function u(F,k,n,y,B,D,E,K,Z){if(d([k,n,y,B,D,E,K])){if(0>y||0>B)throw"radii cannot be negative";
var qa=2*Math.PI,fa=E%qa;0>fa&&(fa+=qa);var Ea=fa-E;E=fa;K+=Ea;!Z&&K-E>=qa?K=E+qa:Z&&E-K>=qa?K=E-qa:!Z&&E>K?K=E+(qa-(E-K)%qa):Z&&E<K&&(K=E-(qa-(K-E)%qa));D?(Z=a.Matrix.rotated(D,k,n),D=a.Matrix.rotated(-D,k,n),F.transform(D),T(F,k,n,y,B,E,K),F.transform(Z)):T(F,k,n,y,B,E,K)}}function H(F,k,n){d([k,n])&&(F.isEmpty()&&F.moveTo(k,n),F.lineTo(k,n))}function R(F){this.$d=null;"string"===typeof F?this.$d=a.Path.MakeFromSVGString(F):F&&F.hf?this.$d=F.$d.copy():this.$d=new a.Path;this.hf=function(){return this.$d};
this.addPath=function(k,n){n||(n={a:1,c:0,e:0,b:0,d:1,f:0});this.$d.addPath(k.$d,[n.a,n.c,n.e,n.b,n.d,n.f])};this.arc=function(k,n,y,B,D,E){u(this.$d,k,n,y,y,0,B,D,E)};this.arcTo=function(k,n,y,B,D){N(this.$d,k,n,y,B,D)};this.bezierCurveTo=function(k,n,y,B,D,E){var K=this.$d;d([k,n,y,B,D,E])&&(K.isEmpty()&&K.moveTo(k,n),K.cubicTo(k,n,y,B,D,E))};this.closePath=function(){O(this.$d)};this.ellipse=function(k,n,y,B,D,E,K,Z){u(this.$d,k,n,y,B,D,E,K,Z)};this.lineTo=function(k,n){H(this.$d,k,n)};this.moveTo=
function(k,n){var y=this.$d;d([k,n])&&y.moveTo(k,n)};this.quadraticCurveTo=function(k,n,y,B){var D=this.$d;d([k,n,y,B])&&(D.isEmpty()&&D.moveTo(k,n),D.quadTo(k,n,y,B))};this.rect=function(k,n,y,B){var D=this.$d;k=a.XYWHRect(k,n,y,B);d(k)&&D.addRect(k)}}function aa(F,k){this.ce=null;this.Df=F;this._transform=a.Matrix.identity();""===k&&(k="repeat");switch(k){case "repeat-x":this.Fe=a.TileMode.Repeat;this.Ge=a.TileMode.Decal;break;case "repeat-y":this.Fe=a.TileMode.Decal;this.Ge=a.TileMode.Repeat;break;
case "repeat":this.Ge=this.Fe=a.TileMode.Repeat;break;case "no-repeat":this.Ge=this.Fe=a.TileMode.Decal;break;default:throw"invalid repetition mode "+k;}this.setTransform=function(n){n=[n.a,n.c,n.e,n.b,n.d,n.f,0,0,1];d(n)&&(this._transform=n)};this.xe=function(){var n=new aa;n.Fe=this.Fe;n.Ge=this.Ge;return n};this.qe=function(){this.ce&&(this.ce.delete(),this.ce=null)};this.ze=function(){this.qe();return this.ce=this.Df.makeShaderCubic(this.Fe,this.Ge,1/3,1/3,this._transform)}}function ka(F,k,n,
y,B,D){this.ce=null;this.je=[];this.ee=[];this.addColorStop=function(E,K){if(0>E||1<E||!isFinite(E))throw"offset must be between 0 and 1 inclusively";K=h(K);var Z=this.ee.indexOf(E);if(-1!==Z)this.je[Z]=K;else{for(Z=0;Z<this.ee.length&&!(this.ee[Z]>E);Z++);this.ee.splice(Z,0,E);this.je.splice(Z,0,K)}};this.xe=function(){var E=new ka(F,k,n,y,B,D);E.je=this.je.slice();E.ee=this.ee.slice();return E};this.qe=function(){this.ce&&(this.ce.delete(),this.ce=null)};this.ze=function(E){var K=[F,k,y,B];a.Matrix.mapPoints(E,
K);var Z=K[0],qa=K[1],fa=K[2];K=K[3];var Ea=(Math.abs(E[0])+Math.abs(E[4]))/2;E=n*Ea;Ea*=D;this.qe();return this.ce=a.Shader.MakeTwoPointConicalGradient([Z,qa],E,[fa,K],Ea,this.je,this.ee,a.TileMode.Clamp)}}a._testing={};var va={aliceblue:Float32Array.of(.941,.973,1,1),antiquewhite:Float32Array.of(.98,.922,.843,1),aqua:Float32Array.of(0,1,1,1),aquamarine:Float32Array.of(.498,1,.831,1),azure:Float32Array.of(.941,1,1,1),beige:Float32Array.of(.961,.961,.863,1),bisque:Float32Array.of(1,.894,.769,1),black:Float32Array.of(0,
0,0,1),blanchedalmond:Float32Array.of(1,.922,.804,1),blue:Float32Array.of(0,0,1,1),blueviolet:Float32Array.of(.541,.169,.886,1),brown:Float32Array.of(.647,.165,.165,1),burlywood:Float32Array.of(.871,.722,.529,1),cadetblue:Float32Array.of(.373,.62,.627,1),chartreuse:Float32Array.of(.498,1,0,1),chocolate:Float32Array.of(.824,.412,.118,1),coral:Float32Array.of(1,.498,.314,1),cornflowerblue:Float32Array.of(.392,.584,.929,1),cornsilk:Float32Array.of(1,.973,.863,1),crimson:Float32Array.of(.863,.078,.235,
1),cyan:Float32Array.of(0,1,1,1),darkblue:Float32Array.of(0,0,.545,1),darkcyan:Float32Array.of(0,.545,.545,1),darkgoldenrod:Float32Array.of(.722,.525,.043,1),darkgray:Float32Array.of(.663,.663,.663,1),darkgreen:Float32Array.of(0,.392,0,1),darkgrey:Float32Array.of(.663,.663,.663,1),darkkhaki:Float32Array.of(.741,.718,.42,1),darkmagenta:Float32Array.of(.545,0,.545,1),darkolivegreen:Float32Array.of(.333,.42,.184,1),darkorange:Float32Array.of(1,.549,0,1),darkorchid:Float32Array.of(.6,.196,.8,1),darkred:Float32Array.of(.545,
0,0,1),darksalmon:Float32Array.of(.914,.588,.478,1),darkseagreen:Float32Array.of(.561,.737,.561,1),darkslateblue:Float32Array.of(.282,.239,.545,1),darkslategray:Float32Array.of(.184,.31,.31,1),darkslategrey:Float32Array.of(.184,.31,.31,1),darkturquoise:Float32Array.of(0,.808,.82,1),darkviolet:Float32Array.of(.58,0,.827,1),deeppink:Float32Array.of(1,.078,.576,1),deepskyblue:Float32Array.of(0,.749,1,1),dimgray:Float32Array.of(.412,.412,.412,1),dimgrey:Float32Array.of(.412,.412,.412,1),dodgerblue:Float32Array.of(.118,
.565,1,1),firebrick:Float32Array.of(.698,.133,.133,1),floralwhite:Float32Array.of(1,.98,.941,1),forestgreen:Float32Array.of(.133,.545,.133,1),fuchsia:Float32Array.of(1,0,1,1),gainsboro:Float32Array.of(.863,.863,.863,1),ghostwhite:Float32Array.of(.973,.973,1,1),gold:Float32Array.of(1,.843,0,1),goldenrod:Float32Array.of(.855,.647,.125,1),gray:Float32Array.of(.502,.502,.502,1),green:Float32Array.of(0,.502,0,1),greenyellow:Float32Array.of(.678,1,.184,1),grey:Float32Array.of(.502,.502,.502,1),honeydew:Float32Array.of(.941,
1,.941,1),hotpink:Float32Array.of(1,.412,.706,1),indianred:Float32Array.of(.804,.361,.361,1),indigo:Float32Array.of(.294,0,.51,1),ivory:Float32Array.of(1,1,.941,1),khaki:Float32Array.of(.941,.902,.549,1),lavender:Float32Array.of(.902,.902,.98,1),lavenderblush:Float32Array.of(1,.941,.961,1),lawngreen:Float32Array.of(.486,.988,0,1),lemonchiffon:Float32Array.of(1,.98,.804,1),lightblue:Float32Array.of(.678,.847,.902,1),lightcoral:Float32Array.of(.941,.502,.502,1),lightcyan:Float32Array.of(.878,1,1,1),
lightgoldenrodyellow:Float32Array.of(.98,.98,.824,1),lightgray:Float32Array.of(.827,.827,.827,1),lightgreen:Float32Array.of(.565,.933,.565,1),lightgrey:Float32Array.of(.827,.827,.827,1),lightpink:Float32Array.of(1,.714,.757,1),lightsalmon:Float32Array.of(1,.627,.478,1),lightseagreen:Float32Array.of(.125,.698,.667,1),lightskyblue:Float32Array.of(.529,.808,.98,1),lightslategray:Float32Array.of(.467,.533,.6,1),lightslategrey:Float32Array.of(.467,.533,.6,1),lightsteelblue:Float32Array.of(.69,.769,.871,
1),lightyellow:Float32Array.of(1,1,.878,1),lime:Float32Array.of(0,1,0,1),limegreen:Float32Array.of(.196,.804,.196,1),linen:Float32Array.of(.98,.941,.902,1),magenta:Float32Array.of(1,0,1,1),maroon:Float32Array.of(.502,0,0,1),mediumaquamarine:Float32Array.of(.4,.804,.667,1),mediumblue:Float32Array.of(0,0,.804,1),mediumorchid:Float32Array.of(.729,.333,.827,1),mediumpurple:Float32Array.of(.576,.439,.859,1),mediumseagreen:Float32Array.of(.235,.702,.443,1),mediumslateblue:Float32Array.of(.482,.408,.933,
1),mediumspringgreen:Float32Array.of(0,.98,.604,1),mediumturquoise:Float32Array.of(.282,.82,.8,1),mediumvioletred:Float32Array.of(.78,.082,.522,1),midnightblue:Float32Array.of(.098,.098,.439,1),mintcream:Float32Array.of(.961,1,.98,1),mistyrose:Float32Array.of(1,.894,.882,1),moccasin:Float32Array.of(1,.894,.71,1),navajowhite:Float32Array.of(1,.871,.678,1),navy:Float32Array.of(0,0,.502,1),oldlace:Float32Array.of(.992,.961,.902,1),olive:Float32Array.of(.502,.502,0,1),olivedrab:Float32Array.of(.42,.557,
.137,1),orange:Float32Array.of(1,.647,0,1),orangered:Float32Array.of(1,.271,0,1),orchid:Float32Array.of(.855,.439,.839,1),palegoldenrod:Float32Array.of(.933,.91,.667,1),palegreen:Float32Array.of(.596,.984,.596,1),paleturquoise:Float32Array.of(.686,.933,.933,1),palevioletred:Float32Array.of(.859,.439,.576,1),papayawhip:Float32Array.of(1,.937,.835,1),peachpuff:Float32Array.of(1,.855,.725,1),peru:Float32Array.of(.804,.522,.247,1),pink:Float32Array.of(1,.753,.796,1),plum:Float32Array.of(.867,.627,.867,
1),powderblue:Float32Array.of(.69,.878,.902,1),purple:Float32Array.of(.502,0,.502,1),rebeccapurple:Float32Array.of(.4,.2,.6,1),red:Float32Array.of(1,0,0,1),rosybrown:Float32Array.of(.737,.561,.561,1),royalblue:Float32Array.of(.255,.412,.882,1),saddlebrown:Float32Array.of(.545,.271,.075,1),salmon:Float32Array.of(.98,.502,.447,1),sandybrown:Float32Array.of(.957,.643,.376,1),seagreen:Float32Array.of(.18,.545,.341,1),seashell:Float32Array.of(1,.961,.933,1),sienna:Float32Array.of(.627,.322,.176,1),silver:Float32Array.of(.753,
.753,.753,1),skyblue:Float32Array.of(.529,.808,.922,1),slateblue:Float32Array.of(.416,.353,.804,1),slategray:Float32Array.of(.439,.502,.565,1),slategrey:Float32Array.of(.439,.502,.565,1),snow:Float32Array.of(1,.98,.98,1),springgreen:Float32Array.of(0,1,.498,1),steelblue:Float32Array.of(.275,.51,.706,1),tan:Float32Array.of(.824,.706,.549,1),teal:Float32Array.of(0,.502,.502,1),thistle:Float32Array.of(.847,.749,.847,1),tomato:Float32Array.of(1,.388,.278,1),transparent:Float32Array.of(0,0,0,0),turquoise:Float32Array.of(.251,
.878,.816,1),violet:Float32Array.of(.933,.51,.933,1),wheat:Float32Array.of(.961,.871,.702,1),white:Float32Array.of(1,1,1,1),whitesmoke:Float32Array.of(.961,.961,.961,1),yellow:Float32Array.of(1,1,0,1),yellowgreen:Float32Array.of(.604,.804,.196,1)};a._testing.parseColor=h;a._testing.colorToString=e;var wa=/(italic|oblique|normal|)\s*(small-caps|normal|)\s*(bold|bolder|lighter|[1-9]00|normal|)\s*([\d\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q)(.+)/,la={"Noto Mono":{"*":null},monospace:{"*":null}};a._testing.parseFontString=
m;a.MakeCanvas=function(F,k){return(F=a.MakeSurface(F,k))?new z(F):null};a.ImageData=function(){if(2===arguments.length){var F=arguments[0],k=arguments[1];return new C(new Uint8ClampedArray(4*F*k),F,k)}if(3===arguments.length){var n=arguments[0];if(n.prototype.constructor!==Uint8ClampedArray)throw"bytes must be given as a Uint8ClampedArray";F=arguments[1];k=arguments[2];if(n%4)throw"bytes must be given in a multiple of 4";if(n%F)throw"bytes must divide evenly by width";if(k&&k!==n/(4*F))throw"invalid height given";
return new C(n,F,n/(4*F))}throw"invalid number of arguments - takes 2 or 3, saw "+arguments.length;}})()})(r);var sa={},ta;for(ta in r)r.hasOwnProperty(ta)&&(sa[ta]=r[ta]);var ua="./this.program";function xa(a,b){throw b;}var ya=!1,za=!1,Aa=!1,Ba=!1;ya="object"===typeof window;za="function"===typeof importScripts;Aa="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node;Ba=!ya&&!Aa&&!za;var Ca="",Fa,Ga,Ha,Ia;
if(Aa)Ca=za?require("path").dirname(Ca)+"/":__dirname+"/",Fa=function(a,b){Ha||(Ha=require("fs"));Ia||(Ia=require("path"));a=Ia.normalize(a);return Ha.readFileSync(a,b?null:"utf8")},Ga=function(a){a=Fa(a,!0);a.buffer||(a=new Uint8Array(a));assert(a.buffer);return a},1<process.argv.length&&(ua=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),process.on("uncaughtException",function(a){if(!(a instanceof Ja))throw a;}),process.on("unhandledRejection",Ka),xa=function(a){process.exit(a)},r.inspect=
function(){return"[Emscripten Module object]"};else if(Ba)"undefined"!=typeof read&&(Fa=function(a){return read(a)}),Ga=function(a){if("function"===typeof readbuffer)return new Uint8Array(readbuffer(a));a=read(a,"binary");assert("object"===typeof a);return a},"function"===typeof quit&&(xa=function(a){quit(a)}),"undefined"!==typeof print&&("undefined"===typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!==typeof printErr?printErr:print);else if(ya||za)za?Ca=self.location.href:
"undefined"!==typeof document&&document.currentScript&&(Ca=document.currentScript.src),_scriptDir&&(Ca=_scriptDir),0!==Ca.indexOf("blob:")?Ca=Ca.substr(0,Ca.lastIndexOf("/")+1):Ca="",Fa=function(a){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);return b.responseText},za&&(Ga=function(a){var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)});var Na=r.print||console.log.bind(console),Oa=r.printErr||console.warn.bind(console);
for(ta in sa)sa.hasOwnProperty(ta)&&(r[ta]=sa[ta]);sa=null;r.thisProgram&&(ua=r.thisProgram);r.quit&&(xa=r.quit);var Pa=0,Qa;r.wasmBinary&&(Qa=r.wasmBinary);var noExitRuntime;r.noExitRuntime&&(noExitRuntime=r.noExitRuntime);"object"!==typeof WebAssembly&&Ka("no native wasm support detected");var Ra,Sa=!1;function assert(a,b){a||Ka("Assertion failed: "+b)}var Ta="undefined"!==typeof TextDecoder?new TextDecoder("utf8"):void 0;
function Va(a,b,c){var f=b+c;for(c=b;a[c]&&!(c>=f);)++c;if(16<c-b&&a.subarray&&Ta)return Ta.decode(a.subarray(b,c));for(f="";b<c;){var g=a[b++];if(g&128){var l=a[b++]&63;if(192==(g&224))f+=String.fromCharCode((g&31)<<6|l);else{var q=a[b++]&63;g=224==(g&240)?(g&15)<<12|l<<6|q:(g&7)<<18|l<<12|q<<6|a[b++]&63;65536>g?f+=String.fromCharCode(g):(g-=65536,f+=String.fromCharCode(55296|g>>10,56320|g&1023))}}else f+=String.fromCharCode(g)}return f}function Wa(a,b){return a?Va(G,a,b):""}
function ra(a,b,c,f){if(!(0<f))return 0;var g=c;f=c+f-1;for(var l=0;l<a.length;++l){var q=a.charCodeAt(l);if(55296<=q&&57343>=q){var t=a.charCodeAt(++l);q=65536+((q&1023)<<10)|t&1023}if(127>=q){if(c>=f)break;b[c++]=q}else{if(2047>=q){if(c+1>=f)break;b[c++]=192|q>>6}else{if(65535>=q){if(c+2>=f)break;b[c++]=224|q>>12}else{if(c+3>=f)break;b[c++]=240|q>>18;b[c++]=128|q>>12&63}b[c++]=128|q>>6&63}b[c++]=128|q&63}}b[c]=0;return c-g}
function oa(a){for(var b=0,c=0;c<a.length;++c){var f=a.charCodeAt(c);55296<=f&&57343>=f&&(f=65536+((f&1023)<<10)|a.charCodeAt(++c)&1023);127>=f?++b:b=2047>=f?b+2:65535>=f?b+3:b+4}return b}var Xa="undefined"!==typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function Ya(a,b){var c=a>>1;for(var f=c+b/2;!(c>=f)&&Za[c];)++c;c<<=1;if(32<c-a&&Xa)return Xa.decode(G.subarray(a,c));c="";for(f=0;!(f>=b/2);++f){var g=$a[a+2*f>>1];if(0==g)break;c+=String.fromCharCode(g)}return c}
function ab(a,b,c){void 0===c&&(c=2147483647);if(2>c)return 0;c-=2;var f=b;c=c<2*a.length?c/2:a.length;for(var g=0;g<c;++g)$a[b>>1]=a.charCodeAt(g),b+=2;$a[b>>1]=0;return b-f}function bb(a){return 2*a.length}function cb(a,b){for(var c=0,f="";!(c>=b/4);){var g=P[a+4*c>>2];if(0==g)break;++c;65536<=g?(g-=65536,f+=String.fromCharCode(55296|g>>10,56320|g&1023)):f+=String.fromCharCode(g)}return f}
function db(a,b,c){void 0===c&&(c=2147483647);if(4>c)return 0;var f=b;c=f+c-4;for(var g=0;g<a.length;++g){var l=a.charCodeAt(g);if(55296<=l&&57343>=l){var q=a.charCodeAt(++g);l=65536+((l&1023)<<10)|q&1023}P[b>>2]=l;b+=4;if(b+4>c)break}P[b>>2]=0;return b-f}function eb(a){for(var b=0,c=0;c<a.length;++c){var f=a.charCodeAt(c);55296<=f&&57343>=f&&++c;b+=4}return b}var fb,gb,G,$a,Za,P,hb,U,mb;
function nb(){var a=Ra.buffer;fb=a;r.HEAP8=gb=new Int8Array(a);r.HEAP16=$a=new Int16Array(a);r.HEAP32=P=new Int32Array(a);r.HEAPU8=G=new Uint8Array(a);r.HEAPU16=Za=new Uint16Array(a);r.HEAPU32=hb=new Uint32Array(a);r.HEAPF32=U=new Float32Array(a);r.HEAPF64=mb=new Float64Array(a)}var ob,pb=[],qb=[],rb=[],sb=[];function tb(){var a=r.preRun.shift();pb.unshift(a)}var ub=0,vb=null,wb=null;r.preloadedImages={};r.preloadedAudios={};
function Ka(a){if(r.onAbort)r.onAbort(a);Oa(a);Sa=!0;a=new WebAssembly.RuntimeError("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");ea(a);throw a;}function xb(a){var b=yb;return String.prototype.startsWith?b.startsWith(a):0===b.indexOf(a)}function zb(){return xb("data:application/octet-stream;base64,")}var yb="canvaskit.wasm";if(!zb()){var Ab=yb;yb=r.locateFile?r.locateFile(Ab,Ca):Ca+Ab}
function Bb(){try{if(Qa)return new Uint8Array(Qa);if(Ga)return Ga(yb);throw"both async and sync fetching of the wasm failed";}catch(a){Ka(a)}}function Cb(){return Qa||!ya&&!za||"function"!==typeof fetch||xb("file://")?Promise.resolve().then(Bb):fetch(yb,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+yb+"'";return a.arrayBuffer()}).catch(function(){return Bb()})}
function Eb(a){for(;0<a.length;){var b=a.shift();if("function"==typeof b)b(r);else{var c=b.Of;"number"===typeof c?void 0===b.mf?ob.get(c)():ob.get(c)(b.mf):c(void 0===b.mf?null:b.mf)}}}function Fb(a){this.Vd=a-16;this.og=function(b){P[this.Vd+8>>2]=b};this.lg=function(b){P[this.Vd+0>>2]=b};this.mg=function(){P[this.Vd+4>>2]=0};this.kg=function(){gb[this.Vd+12>>0]=0};this.ng=function(){gb[this.Vd+13>>0]=0};this.Zf=function(b,c){this.og(b);this.lg(c);this.mg();this.kg();this.ng()}}
var Gb=0,Hb={},Ib=[null,[],[]],Jb={},Kb={};function Lb(a){for(;a.length;){var b=a.pop();a.pop()(b)}}function Mb(a){return this.fromWireType(hb[a>>2])}var Nb={},Ob={},Pb={};function Qb(a){if(void 0===a)return"_unknown";a=a.replace(/[^a-zA-Z0-9_]/g,"$");var b=a.charCodeAt(0);return 48<=b&&57>=b?"_"+a:a}function Rb(a,b){a=Qb(a);return(new Function("body","return function "+a+'() {\n    "use strict";    return body.apply(this, arguments);\n};\n'))(b)}
function Sb(a){var b=Error,c=Rb(a,function(f){this.name=a;this.message=f;f=Error(f).stack;void 0!==f&&(this.stack=this.toString()+"\n"+f.replace(/^Error(:[^\n]*)?\n/,""))});c.prototype=Object.create(b.prototype);c.prototype.constructor=c;c.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message};return c}var Tb=void 0;function Ub(a){throw new Tb(a);}
function Vb(a,b,c){function f(t){t=c(t);t.length!==a.length&&Ub("Mismatched type converter count");for(var x=0;x<a.length;++x)Wb(a[x],t[x])}a.forEach(function(t){Pb[t]=b});var g=Array(b.length),l=[],q=0;b.forEach(function(t,x){Ob.hasOwnProperty(t)?g[x]=Ob[t]:(l.push(t),Nb.hasOwnProperty(t)||(Nb[t]=[]),Nb[t].push(function(){g[x]=Ob[t];++q;q===l.length&&f(g)}))});0===l.length&&f(g)}
function Xb(a){switch(a){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+a);}}var Yb=void 0;function Zb(a){for(var b="";G[a];)b+=Yb[G[a++]];return b}var $b=void 0;function V(a){throw new $b(a);}
function Wb(a,b,c){c=c||{};if(!("argPackAdvance"in b))throw new TypeError("registerType registeredInstance requires argPackAdvance");var f=b.name;a||V('type "'+f+'" must have a positive integer typeid pointer');if(Ob.hasOwnProperty(a)){if(c.Yf)return;V("Cannot register type '"+f+"' twice")}Ob[a]=b;delete Pb[a];Nb.hasOwnProperty(a)&&(b=Nb[a],delete Nb[a],b.forEach(function(g){g()}))}function ac(a){return{count:a.count,Ke:a.Ke,Xe:a.Xe,Vd:a.Vd,be:a.be,ie:a.ie,le:a.le}}
function bc(a){V(a.Rd.be.Wd.name+" instance already deleted")}var cc=!1;function dc(){}function ec(a){--a.count.value;0===a.count.value&&(a.ie?a.le.pe(a.ie):a.be.Wd.pe(a.Vd))}
function fc(a){if("undefined"===typeof FinalizationGroup)return fc=function(b){return b},a;cc=new FinalizationGroup(function(b){for(var c=b.next();!c.done;c=b.next())c=c.value,c.Vd?ec(c):console.warn("object already deleted: "+c.Vd)});fc=function(b){cc.register(b,b.Rd,b.Rd);return b};dc=function(b){cc.unregister(b.Rd)};return fc(a)}var oc=void 0,pc=[];function qc(){for(;pc.length;){var a=pc.pop();a.Rd.Ke=!1;a["delete"]()}}function rc(){}var sc={};
function tc(a,b,c){if(void 0===a[b].de){var f=a[b];a[b]=function(){a[b].de.hasOwnProperty(arguments.length)||V("Function '"+c+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+a[b].de+")!");return a[b].de[arguments.length].apply(this,arguments)};a[b].de=[];a[b].de[f.Ie]=f}}
function uc(a,b,c){r.hasOwnProperty(a)?((void 0===c||void 0!==r[a].de&&void 0!==r[a].de[c])&&V("Cannot register public name '"+a+"' twice"),tc(r,a,a),r.hasOwnProperty(c)&&V("Cannot register multiple overloads of a function with the same number of arguments ("+c+")!"),r[a].de[c]=b):(r[a]=b,void 0!==c&&(r[a].Fg=c))}function vc(a,b,c,f,g,l,q,t){this.name=a;this.constructor=b;this.Le=c;this.pe=f;this.ne=g;this.Rf=l;this.Ze=q;this.Kf=t;this.hg=[]}
function wc(a,b,c){for(;b!==c;)b.Ze||V("Expected null or instance of "+c.name+", got an instance of "+b.name),a=b.Ze(a),b=b.ne;return a}function xc(a,b){if(null===b)return this.pf&&V("null is not a valid "+this.name),0;b.Rd||V('Cannot pass "'+yc(b)+'" as a '+this.name);b.Rd.Vd||V("Cannot pass deleted object as a pointer of type "+this.name);return wc(b.Rd.Vd,b.Rd.be.Wd,this.Wd)}
function zc(a,b){if(null===b){this.pf&&V("null is not a valid "+this.name);if(this.df){var c=this.rf();null!==a&&a.push(this.pe,c);return c}return 0}b.Rd||V('Cannot pass "'+yc(b)+'" as a '+this.name);b.Rd.Vd||V("Cannot pass deleted object as a pointer of type "+this.name);!this.cf&&b.Rd.be.cf&&V("Cannot convert argument of type "+(b.Rd.le?b.Rd.le.name:b.Rd.be.name)+" to parameter type "+this.name);c=wc(b.Rd.Vd,b.Rd.be.Wd,this.Wd);if(this.df)switch(void 0===b.Rd.ie&&V("Passing raw pointer to smart pointer is illegal"),
this.sg){case 0:b.Rd.le===this?c=b.Rd.ie:V("Cannot convert argument of type "+(b.Rd.le?b.Rd.le.name:b.Rd.be.name)+" to parameter type "+this.name);break;case 1:c=b.Rd.ie;break;case 2:if(b.Rd.le===this)c=b.Rd.ie;else{var f=b.clone();c=this.ig(c,Ac(function(){f["delete"]()}));null!==a&&a.push(this.pe,c)}break;default:V("Unsupporting sharing policy")}return c}
function Bc(a,b){if(null===b)return this.pf&&V("null is not a valid "+this.name),0;b.Rd||V('Cannot pass "'+yc(b)+'" as a '+this.name);b.Rd.Vd||V("Cannot pass deleted object as a pointer of type "+this.name);b.Rd.be.cf&&V("Cannot convert argument of type "+b.Rd.be.name+" to parameter type "+this.name);return wc(b.Rd.Vd,b.Rd.be.Wd,this.Wd)}function Cc(a,b,c){if(b===c)return a;if(void 0===c.ne)return null;a=Cc(a,b,c.ne);return null===a?null:c.Kf(a)}var Dc={};
function Ec(a,b){for(void 0===b&&V("ptr should not be undefined");a.ne;)b=a.Ze(b),a=a.ne;return Dc[b]}function Fc(a,b){b.be&&b.Vd||Ub("makeClassHandle requires ptr and ptrType");!!b.le!==!!b.ie&&Ub("Both smartPtrType and smartPtr must be specified");b.count={value:1};return fc(Object.create(a,{Rd:{value:b}}))}
function Gc(a,b,c,f,g,l,q,t,x,w,I){this.name=a;this.Wd=b;this.pf=c;this.cf=f;this.df=g;this.gg=l;this.sg=q;this.Af=t;this.rf=x;this.ig=w;this.pe=I;g||void 0!==b.ne?this.toWireType=zc:(this.toWireType=f?xc:Bc,this.ke=null)}function Hc(a,b,c){r.hasOwnProperty(a)||Ub("Replacing nonexistant public symbol");void 0!==r[a].de&&void 0!==c?r[a].de[c]=b:(r[a]=b,r[a].Ie=c)}
function Ic(a,b){assert(0<=a.indexOf("j"),"getDynCaller should only be called with i64 sigs");var c=[];return function(){c.length=arguments.length;for(var f=0;f<arguments.length;f++)c[f]=arguments[f];var g;-1!=a.indexOf("j")?g=c&&c.length?r["dynCall_"+a].apply(null,[b].concat(c)):r["dynCall_"+a].call(null,b):g=ob.get(b).apply(null,c);return g}}
function Jc(a,b){a=Zb(a);var c=-1!=a.indexOf("j")?Ic(a,b):ob.get(b);"function"!==typeof c&&V("unknown function pointer with signature "+a+": "+b);return c}var Kc=void 0;function Lc(a){a=Mc(a);var b=Zb(a);Nc(a);return b}function Wc(a,b){function c(l){g[l]||Ob[l]||(Pb[l]?Pb[l].forEach(c):(f.push(l),g[l]=!0))}var f=[],g={};b.forEach(c);throw new Kc(a+": "+f.map(Lc).join([", "]));}
function Xc(a){var b=Function;if(!(b instanceof Function))throw new TypeError("new_ called with constructor type "+typeof b+" which is not a function");var c=Rb(b.name||"unknownFunctionName",function(){});c.prototype=b.prototype;c=new c;a=b.apply(c,a);return a instanceof Object?a:c}
function Yc(a,b,c,f,g){var l=b.length;2>l&&V("argTypes array size mismatch! Must at least get return value and 'this' types!");var q=null!==b[1]&&null!==c,t=!1;for(c=1;c<b.length;++c)if(null!==b[c]&&void 0===b[c].ke){t=!0;break}var x="void"!==b[0].name,w="",I="";for(c=0;c<l-2;++c)w+=(0!==c?", ":"")+"arg"+c,I+=(0!==c?", ":"")+"arg"+c+"Wired";a="return function "+Qb(a)+"("+w+") {\nif (arguments.length !== "+(l-2)+") {\nthrowBindingError('function "+a+" called with ' + arguments.length + ' arguments, expected "+
(l-2)+" args!');\n}\n";t&&(a+="var destructors = [];\n");var L=t?"destructors":"null";w="throwBindingError invoker fn runDestructors retType classParam".split(" ");f=[V,f,g,Lb,b[0],b[1]];q&&(a+="var thisWired = classParam.toWireType("+L+", this);\n");for(c=0;c<l-2;++c)a+="var arg"+c+"Wired = argType"+c+".toWireType("+L+", arg"+c+"); // "+b[c+2].name+"\n",w.push("argType"+c),f.push(b[c+2]);q&&(I="thisWired"+(0<I.length?", ":"")+I);a+=(x?"var rv = ":"")+"invoker(fn"+(0<I.length?", ":"")+I+");\n";if(t)a+=
"runDestructors(destructors);\n";else for(c=q?1:2;c<b.length;++c)l=1===c?"thisWired":"arg"+(c-2)+"Wired",null!==b[c].ke&&(a+=l+"_dtor("+l+"); // "+b[c].name+"\n",w.push(l+"_dtor"),f.push(b[c].ke));x&&(a+="var ret = retType.fromWireType(rv);\nreturn ret;\n");w.push(a+"}\n");return Xc(w).apply(null,f)}function Zc(a,b){for(var c=[],f=0;f<a;f++)c.push(P[(b>>2)+f]);return c}var $c=[],ad=[{},{value:void 0},{value:null},{value:!0},{value:!1}];
function bd(a){4<a&&0===--ad[a].sf&&(ad[a]=void 0,$c.push(a))}function Ac(a){switch(a){case void 0:return 1;case null:return 2;case !0:return 3;case !1:return 4;default:var b=$c.length?$c.pop():ad.length;ad[b]={sf:1,value:a};return b}}
function cd(a,b,c){switch(b){case 0:return function(f){return this.fromWireType((c?gb:G)[f])};case 1:return function(f){return this.fromWireType((c?$a:Za)[f>>1])};case 2:return function(f){return this.fromWireType((c?P:hb)[f>>2])};default:throw new TypeError("Unknown integer type: "+a);}}function dd(a,b){var c=Ob[a];void 0===c&&V(b+" has unknown type "+Lc(a));return c}function yc(a){if(null===a)return"null";var b=typeof a;return"object"===b||"array"===b||"function"===b?a.toString():""+a}
function ed(a,b){switch(b){case 2:return function(c){return this.fromWireType(U[c>>2])};case 3:return function(c){return this.fromWireType(mb[c>>3])};default:throw new TypeError("Unknown float type: "+a);}}
function fd(a,b,c){switch(b){case 0:return c?function(f){return gb[f]}:function(f){return G[f]};case 1:return c?function(f){return $a[f>>1]}:function(f){return Za[f>>1]};case 2:return c?function(f){return P[f>>2]}:function(f){return hb[f>>2]};default:throw new TypeError("Unknown integer type: "+a);}}function gd(a){a||V("Cannot use deleted val. handle = "+a);return ad[a].value}var hd={};function id(a){var b=hd[a];return void 0===b?Zb(a):b}var jd=[];
function kd(){return"object"===typeof globalThis?globalThis:Function("return this")()}function ld(a){var b=jd.length;jd.push(a);return b}function md(a,b){for(var c=Array(a),f=0;f<a;++f)c[f]=dd(P[(b>>2)+f],"parameter "+f);return c}var nd={},od;Aa?od=function(){var a=process.hrtime();return 1E3*a[0]+a[1]/1E6}:"undefined"!==typeof dateNow?od=dateNow:od=function(){return performance.now()};
function pd(a){var b=a.getExtension("ANGLE_instanced_arrays");b&&(a.vertexAttribDivisor=function(c,f){b.vertexAttribDivisorANGLE(c,f)},a.drawArraysInstanced=function(c,f,g,l){b.drawArraysInstancedANGLE(c,f,g,l)},a.drawElementsInstanced=function(c,f,g,l,q){b.drawElementsInstancedANGLE(c,f,g,l,q)})}
function qd(a){var b=a.getExtension("OES_vertex_array_object");b&&(a.createVertexArray=function(){return b.createVertexArrayOES()},a.deleteVertexArray=function(c){b.deleteVertexArrayOES(c)},a.bindVertexArray=function(c){b.bindVertexArrayOES(c)},a.isVertexArray=function(c){return b.isVertexArrayOES(c)})}function rd(a){var b=a.getExtension("WEBGL_draw_buffers");b&&(a.drawBuffers=function(c,f){b.drawBuffersWEBGL(c,f)})}
var sd=1,td=[],ud=[],vd=[],wd=[],xd=[],W=[],yd=[],zd=[],ia=[],Ad=[],Bd=[],Cd={},Dd={},Ed={},Fd=4;function Gd(a){Hd||(Hd=a)}function ha(a){for(var b=sd++,c=a.length;c<b;c++)a[c]=null;return b}function na(a){v=ia[a];r.Cg=X=v&&v.Ne;return!(a&&!X)}
function ma(a){a||(a=v);if(!a.$f){a.$f=!0;var b=a.Ne;pd(b);qd(b);rd(b);b.xf=b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");b.zf=b.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");b.Dg=b.getExtension("EXT_disjoint_timer_query");b.Eg=b.getExtension("WEBGL_multi_draw");(b.getSupportedExtensions()||[]).forEach(function(c){0>c.indexOf("lose_context")&&0>c.indexOf("debug")&&b.getExtension(c)})}}var Hd,v,Kd=[];
function Ld(a,b,c,f){for(var g=0;g<a;g++){var l=X[c](),q=l&&ha(f);l?(l.name=q,f[q]=l):Gd(1282);P[b+4*g>>2]=q}}
function Md(a,b){if(b){var c=void 0;switch(a){case 36346:c=1;break;case 36344:return;case 34814:case 36345:c=0;break;case 34466:var f=X.getParameter(34467);c=f?f.length:0;break;case 33309:if(2>v.version){Gd(1282);return}c=2*(X.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>v.version){Gd(1280);return}c=33307==a?3:0}if(void 0===c)switch(f=X.getParameter(a),typeof f){case "number":c=f;break;case "boolean":c=f?1:0;break;case "string":Gd(1280);return;case "object":if(null===f)switch(a){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:c=
0;break;default:Gd(1280);return}else{if(f instanceof Float32Array||f instanceof Uint32Array||f instanceof Int32Array||f instanceof Array){for(a=0;a<f.length;++a)P[b+4*a>>2]=f[a];return}try{c=f.name|0}catch(g){Gd(1280);Oa("GL_INVALID_ENUM in glGet0v: Unknown object returned from WebGL getParameter("+a+")! (error: "+g+")");return}}break;default:Gd(1280);Oa("GL_INVALID_ENUM in glGet0v: Native code calling glGet0v("+a+") and it returns "+f+" of type "+typeof f+"!");return}P[b>>2]=c}else Gd(1281)}
function Nd(a){var b=oa(a)+1,c=Od(b);ra(a,G,c,b);return c}function Pd(a){a-=5120;return 0==a?gb:1==a?G:2==a?$a:4==a?P:6==a?U:5==a||28922==a||28520==a||30779==a||30782==a?hb:Za}function Qd(a,b,c,f,g){a=Pd(a);var l=31-Math.clz32(a.BYTES_PER_ELEMENT),q=Fd;return a.subarray(g>>l,g+f*(c*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[b-6402]||1)*(1<<l)+q-1&-q)>>l)}var Rd=[],Sd=[],Td={};
function Ud(){if(!Vd){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"===typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ua||"./this.program"},b;for(b in Td)a[b]=Td[b];var c=[];for(b in a)c.push(b+"="+a[b]);Vd=c}return Vd}var Vd;function Wd(a){return 0===a%4&&(0!==a%100||0===a%400)}function Xd(a,b){for(var c=0,f=0;f<=b;c+=a[f++]);return c}
var Yd=[31,29,31,30,31,30,31,31,30,31,30,31],Zd=[31,28,31,30,31,30,31,31,30,31,30,31];function $d(a,b){for(a=new Date(a.getTime());0<b;){var c=a.getMonth(),f=(Wd(a.getFullYear())?Yd:Zd)[c];if(b>f-a.getDate())b-=f-a.getDate()+1,a.setDate(1),11>c?a.setMonth(c+1):(a.setMonth(0),a.setFullYear(a.getFullYear()+1));else{a.setDate(a.getDate()+b);break}}return a}
function ae(a,b,c,f){function g(A,M,Y){for(A="number"===typeof A?A.toString():A||"";A.length<M;)A=Y[0]+A;return A}function l(A,M){return g(A,M,"0")}function q(A,M){function Y(ba){return 0>ba?-1:0<ba?1:0}var da;0===(da=Y(A.getFullYear()-M.getFullYear()))&&0===(da=Y(A.getMonth()-M.getMonth()))&&(da=Y(A.getDate()-M.getDate()));return da}function t(A){switch(A.getDay()){case 0:return new Date(A.getFullYear()-1,11,29);case 1:return A;case 2:return new Date(A.getFullYear(),0,3);case 3:return new Date(A.getFullYear(),
0,2);case 4:return new Date(A.getFullYear(),0,1);case 5:return new Date(A.getFullYear()-1,11,31);case 6:return new Date(A.getFullYear()-1,11,30)}}function x(A){A=$d(new Date(A.fe+1900,0,1),A.gf);var M=new Date(A.getFullYear()+1,0,4),Y=t(new Date(A.getFullYear(),0,4));M=t(M);return 0>=q(Y,A)?0>=q(M,A)?A.getFullYear()+1:A.getFullYear():A.getFullYear()-1}var w=P[f+40>>2];f={Ag:P[f>>2],zg:P[f+4>>2],ef:P[f+8>>2],Ye:P[f+12>>2],Me:P[f+16>>2],fe:P[f+20>>2],ff:P[f+24>>2],gf:P[f+28>>2],Ig:P[f+32>>2],yg:P[f+
36>>2],Bg:w?Wa(w):""};c=Wa(c);w={"%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 I in w)c=c.replace(new RegExp(I,"g"),w[I]);var L="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Q="January February March April May June July August September October November December".split(" ");w={"%a":function(A){return L[A.ff].substring(0,3)},"%A":function(A){return L[A.ff]},"%b":function(A){return Q[A.Me].substring(0,3)},"%B":function(A){return Q[A.Me]},"%C":function(A){return l((A.fe+1900)/100|0,2)},"%d":function(A){return l(A.Ye,2)},"%e":function(A){return g(A.Ye,2," ")},"%g":function(A){return x(A).toString().substring(2)},"%G":function(A){return x(A)},"%H":function(A){return l(A.ef,
2)},"%I":function(A){A=A.ef;0==A?A=12:12<A&&(A-=12);return l(A,2)},"%j":function(A){return l(A.Ye+Xd(Wd(A.fe+1900)?Yd:Zd,A.Me-1),3)},"%m":function(A){return l(A.Me+1,2)},"%M":function(A){return l(A.zg,2)},"%n":function(){return"\n"},"%p":function(A){return 0<=A.ef&&12>A.ef?"AM":"PM"},"%S":function(A){return l(A.Ag,2)},"%t":function(){return"\t"},"%u":function(A){return A.ff||7},"%U":function(A){var M=new Date(A.fe+1900,0,1),Y=0===M.getDay()?M:$d(M,7-M.getDay());A=new Date(A.fe+1900,A.Me,A.Ye);return 0>
q(Y,A)?l(Math.ceil((31-Y.getDate()+(Xd(Wd(A.getFullYear())?Yd:Zd,A.getMonth()-1)-31)+A.getDate())/7),2):0===q(Y,M)?"01":"00"},"%V":function(A){var M=new Date(A.fe+1901,0,4),Y=t(new Date(A.fe+1900,0,4));M=t(M);var da=$d(new Date(A.fe+1900,0,1),A.gf);return 0>q(da,Y)?"53":0>=q(M,da)?"01":l(Math.ceil((Y.getFullYear()<A.fe+1900?A.gf+32-Y.getDate():A.gf+1-Y.getDate())/7),2)},"%w":function(A){return A.ff},"%W":function(A){var M=new Date(A.fe,0,1),Y=1===M.getDay()?M:$d(M,0===M.getDay()?1:7-M.getDay()+1);
A=new Date(A.fe+1900,A.Me,A.Ye);return 0>q(Y,A)?l(Math.ceil((31-Y.getDate()+(Xd(Wd(A.getFullYear())?Yd:Zd,A.getMonth()-1)-31)+A.getDate())/7),2):0===q(Y,M)?"01":"00"},"%y":function(A){return(A.fe+1900).toString().substring(2)},"%Y":function(A){return A.fe+1900},"%z":function(A){A=A.yg;var M=0<=A;A=Math.abs(A)/60;return(M?"+":"-")+String("0000"+(A/60*100+A%60)).slice(-4)},"%Z":function(A){return A.Bg},"%%":function(){return"%"}};for(I in w)0<=c.indexOf(I)&&(c=c.replace(new RegExp(I,"g"),w[I](f)));
I=be(c);if(I.length>b)return 0;gb.set(I,a);return I.length-1}Tb=r.InternalError=Sb("InternalError");for(var ce=Array(256),de=0;256>de;++de)ce[de]=String.fromCharCode(de);Yb=ce;$b=r.BindingError=Sb("BindingError");rc.prototype.isAliasOf=function(a){if(!(this instanceof rc&&a instanceof rc))return!1;var b=this.Rd.be.Wd,c=this.Rd.Vd,f=a.Rd.be.Wd;for(a=a.Rd.Vd;b.ne;)c=b.Ze(c),b=b.ne;for(;f.ne;)a=f.Ze(a),f=f.ne;return b===f&&c===a};
rc.prototype.clone=function(){this.Rd.Vd||bc(this);if(this.Rd.Xe)return this.Rd.count.value+=1,this;var a=fc(Object.create(Object.getPrototypeOf(this),{Rd:{value:ac(this.Rd)}}));a.Rd.count.value+=1;a.Rd.Ke=!1;return a};rc.prototype["delete"]=function(){this.Rd.Vd||bc(this);this.Rd.Ke&&!this.Rd.Xe&&V("Object already scheduled for deletion");dc(this);ec(this.Rd);this.Rd.Xe||(this.Rd.ie=void 0,this.Rd.Vd=void 0)};rc.prototype.isDeleted=function(){return!this.Rd.Vd};
rc.prototype.deleteLater=function(){this.Rd.Vd||bc(this);this.Rd.Ke&&!this.Rd.Xe&&V("Object already scheduled for deletion");pc.push(this);1===pc.length&&oc&&oc(qc);this.Rd.Ke=!0;return this};Gc.prototype.Sf=function(a){this.Af&&(a=this.Af(a));return a};Gc.prototype.wf=function(a){this.pe&&this.pe(a)};Gc.prototype.argPackAdvance=8;Gc.prototype.readValueFromPointer=Mb;Gc.prototype.deleteObject=function(a){if(null!==a)a["delete"]()};
Gc.prototype.fromWireType=function(a){function b(){return this.df?Fc(this.Wd.Le,{be:this.gg,Vd:c,le:this,ie:a}):Fc(this.Wd.Le,{be:this,Vd:a})}var c=this.Sf(a);if(!c)return this.wf(a),null;var f=Ec(this.Wd,c);if(void 0!==f){if(0===f.Rd.count.value)return f.Rd.Vd=c,f.Rd.ie=a,f.clone();f=f.clone();this.wf(a);return f}f=this.Wd.Rf(c);f=sc[f];if(!f)return b.call(this);f=this.cf?f.Hf:f.pointerType;var g=Cc(c,this.Wd,f.Wd);return null===g?b.call(this):this.df?Fc(f.Wd.Le,{be:f,Vd:g,le:this,ie:a}):Fc(f.Wd.Le,
{be:f,Vd:g})};r.getInheritedInstanceCount=function(){return Object.keys(Dc).length};r.getLiveInheritedInstances=function(){var a=[],b;for(b in Dc)Dc.hasOwnProperty(b)&&a.push(Dc[b]);return a};r.flushPendingDeletes=qc;r.setDelayFunction=function(a){oc=a;pc.length&&oc&&oc(qc)};Kc=r.UnboundTypeError=Sb("UnboundTypeError");r.count_emval_handles=function(){for(var a=0,b=5;b<ad.length;++b)void 0!==ad[b]&&++a;return a};
r.get_first_emval=function(){for(var a=5;a<ad.length;++a)if(void 0!==ad[a])return ad[a];return null};for(var X,ee=0;32>ee;++ee)Kd.push(Array(ee));var fe=new Float32Array(288);for(ee=0;288>ee;++ee)Rd[ee]=fe.subarray(0,ee+1);var ge=new Int32Array(288);for(ee=0;288>ee;++ee)Sd[ee]=ge.subarray(0,ee+1);function be(a){var b=Array(oa(a)+1);ra(a,b,0,b.length);return b}qb.push({Of:function(){he()}});
var Be={fb:function(a){return Od(a+16)+16},eb:function(a,b,c){(new Fb(a)).Zf(b,c);Gb++;throw a;},M:function(){return 0},Ab:function(){},xb:function(){return 0},yb:function(a,b,c,f,g,l){l<<=12;0!==(f&16)&&0!==a%16384?b=-28:0!==(f&32)?(a=ie(16384,b))?(je(a,0,b),Hb[a]={eg:a,dg:b,Gf:!0,fd:g,Gg:c,flags:f,offset:l},b=a):b=-48:b=-52;return b},zb:function(a,b){if(-1===(a|0)||0===b)a=-28;else{var c=Hb[a];c&&b===c.dg&&(Hb[a]=null,c.Gf&&Nc(c.eg));a=0}return a},O:function(){},N:function(){},z:function(a){var b=
Kb[a];delete Kb[a];var c=b.rf,f=b.pe,g=b.yf,l=g.map(function(q){return q.Wf}).concat(g.map(function(q){return q.qg}));Vb([a],l,function(q){var t={};g.forEach(function(x,w){var I=q[w],L=x.Uf,Q=x.Vf,A=q[w+g.length],M=x.pg,Y=x.rg;t[x.Mf]={read:function(da){return I.fromWireType(L(Q,da))},write:function(da,ba){var pa=[];M(Y,da,A.toWireType(pa,ba));Lb(pa)}}});return[{name:b.name,fromWireType:function(x){var w={},I;for(I in t)w[I]=t[I].read(x);f(x);return w},toWireType:function(x,w){for(var I in t)if(!(I in
w))throw new TypeError('Missing field:  "'+I+'"');var L=c();for(I in t)t[I].write(L,w[I]);null!==x&&x.push(f,L);return L},argPackAdvance:8,readValueFromPointer:Mb,ke:f}]})},Db:function(a,b,c,f,g){var l=Xb(c);b=Zb(b);Wb(a,{name:b,fromWireType:function(q){return!!q},toWireType:function(q,t){return t?f:g},argPackAdvance:8,readValueFromPointer:function(q){if(1===c)var t=gb;else if(2===c)t=$a;else if(4===c)t=P;else throw new TypeError("Unknown boolean type size: "+b);return this.fromWireType(t[q>>l])},
ke:null})},n:function(a,b,c,f,g,l,q,t,x,w,I,L,Q){I=Zb(I);l=Jc(g,l);t&&(t=Jc(q,t));w&&(w=Jc(x,w));Q=Jc(L,Q);var A=Qb(I);uc(A,function(){Wc("Cannot construct "+I+" due to unbound types",[f])});Vb([a,b,c],f?[f]:[],function(M){M=M[0];if(f){var Y=M.Wd;var da=Y.Le}else da=rc.prototype;M=Rb(A,function(){if(Object.getPrototypeOf(this)!==ba)throw new $b("Use 'new' to construct "+I);if(void 0===pa.te)throw new $b(I+" has no accessible constructor");var kb=pa.te[arguments.length];if(void 0===kb)throw new $b("Tried to invoke ctor of "+
I+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(pa.te).toString()+") parameters instead!");return kb.apply(this,arguments)});var ba=Object.create(da,{constructor:{value:M}});M.prototype=ba;var pa=new vc(I,M,ba,Q,Y,l,t,w);Y=new Gc(I,pa,!0,!1,!1);da=new Gc(I+"*",pa,!1,!1,!1);var jb=new Gc(I+" const*",pa,!1,!0,!1);sc[a]={pointerType:da,Hf:jb};Hc(A,M);return[Y,da,jb]})},f:function(a,b,c,f,g,l,q){var t=Zc(c,f);b=Zb(b);l=Jc(g,l);Vb([],[a],function(x){function w(){Wc("Cannot call "+
I+" due to unbound types",t)}x=x[0];var I=x.name+"."+b,L=x.Wd.constructor;void 0===L[b]?(w.Ie=c-1,L[b]=w):(tc(L,b,I),L[b].de[c-1]=w);Vb([],t,function(Q){Q=[Q[0],null].concat(Q.slice(1));Q=Yc(I,Q,null,l,q);void 0===L[b].de?(Q.Ie=c-1,L[b]=Q):L[b].de[c-1]=Q;return[]});return[]})},v:function(a,b,c,f,g,l){assert(0<b);var q=Zc(b,c);g=Jc(f,g);var t=[l],x=[];Vb([],[a],function(w){w=w[0];var I="constructor "+w.name;void 0===w.Wd.te&&(w.Wd.te=[]);if(void 0!==w.Wd.te[b-1])throw new $b("Cannot register multiple constructors with identical number of parameters ("+
(b-1)+") for class '"+w.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");w.Wd.te[b-1]=function(){Wc("Cannot construct "+w.name+" due to unbound types",q)};Vb([],q,function(L){w.Wd.te[b-1]=function(){arguments.length!==b-1&&V(I+" called with "+arguments.length+" arguments, expected "+(b-1));x.length=0;t.length=b;for(var Q=1;Q<b;++Q)t[Q]=L[Q].toWireType(x,arguments[Q-1]);Q=g.apply(null,t);Lb(x);return L[0].fromWireType(Q)};return[]});return[]})},
c:function(a,b,c,f,g,l,q,t){var x=Zc(c,f);b=Zb(b);l=Jc(g,l);Vb([],[a],function(w){function I(){Wc("Cannot call "+L+" due to unbound types",x)}w=w[0];var L=w.name+"."+b;t&&w.Wd.hg.push(b);var Q=w.Wd.Le,A=Q[b];void 0===A||void 0===A.de&&A.className!==w.name&&A.Ie===c-2?(I.Ie=c-2,I.className=w.name,Q[b]=I):(tc(Q,b,L),Q[b].de[c-2]=I);Vb([],x,function(M){M=Yc(L,M,w,l,q);void 0===Q[b].de?(M.Ie=c-2,Q[b]=M):Q[b].de[c-2]=M;return[]});return[]})},U:function(a,b,c){a=Zb(a);Vb([],[b],function(f){f=f[0];r[a]=
f.fromWireType(c);return[]})},Bb:function(a,b){b=Zb(b);Wb(a,{name:b,fromWireType:function(c){var f=ad[c].value;bd(c);return f},toWireType:function(c,f){return Ac(f)},argPackAdvance:8,readValueFromPointer:Mb,ke:null})},m:function(a,b,c,f){function g(){}c=Xb(c);b=Zb(b);g.values={};Wb(a,{name:b,constructor:g,fromWireType:function(l){return this.constructor.values[l]},toWireType:function(l,q){return q.value},argPackAdvance:8,readValueFromPointer:cd(b,c,f),ke:null});uc(b,g)},l:function(a,b,c){var f=dd(a,
"enum");b=Zb(b);a=f.constructor;f=Object.create(f.constructor.prototype,{value:{value:c},constructor:{value:Rb(f.name+"_"+b,function(){})}});a.values[c]=f;a[b]=f},P:function(a,b,c){c=Xb(c);b=Zb(b);Wb(a,{name:b,fromWireType:function(f){return f},toWireType:function(f,g){if("number"!==typeof g&&"boolean"!==typeof g)throw new TypeError('Cannot convert "'+yc(g)+'" to '+this.name);return g},argPackAdvance:8,readValueFromPointer:ed(b,c),ke:null})},s:function(a,b,c,f,g,l){var q=Zc(b,c);a=Zb(a);g=Jc(f,g);
uc(a,function(){Wc("Cannot call "+a+" due to unbound types",q)},b-1);Vb([],q,function(t){t=[t[0],null].concat(t.slice(1));Hc(a,Yc(a,t,null,g,l),b-1);return[]})},x:function(a,b,c,f,g){function l(w){return w}b=Zb(b);-1===g&&(g=4294967295);var q=Xb(c);if(0===f){var t=32-8*c;l=function(w){return w<<t>>>t}}var x=-1!=b.indexOf("unsigned");Wb(a,{name:b,fromWireType:l,toWireType:function(w,I){if("number"!==typeof I&&"boolean"!==typeof I)throw new TypeError('Cannot convert "'+yc(I)+'" to '+this.name);if(I<
f||I>g)throw new TypeError('Passing a number "'+yc(I)+'" from JS side to C/C++ side to an argument of type "'+b+'", which is outside the valid range ['+f+", "+g+"]!");return x?I>>>0:I|0},argPackAdvance:8,readValueFromPointer:fd(b,q,0!==f),ke:null})},u:function(a,b,c){function f(l){l>>=2;var q=hb;return new g(fb,q[l+1],q[l])}var g=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][b];c=Zb(c);Wb(a,{name:c,fromWireType:f,argPackAdvance:8,readValueFromPointer:f},
{Yf:!0})},p:function(a,b,c,f,g,l,q,t,x,w,I,L){c=Zb(c);l=Jc(g,l);t=Jc(q,t);w=Jc(x,w);L=Jc(I,L);Vb([a],[b],function(Q){Q=Q[0];return[new Gc(c,Q.Wd,!1,!1,!0,Q,f,l,t,w,L)]})},Q:function(a,b){b=Zb(b);var c="std::string"===b;Wb(a,{name:b,fromWireType:function(f){var g=hb[f>>2];if(c)for(var l=f+4,q=0;q<=g;++q){var t=f+4+q;if(q==g||0==G[t]){l=Wa(l,t-l);if(void 0===x)var x=l;else x+=String.fromCharCode(0),x+=l;l=t+1}}else{x=Array(g);for(q=0;q<g;++q)x[q]=String.fromCharCode(G[f+4+q]);x=x.join("")}Nc(f);return x},
toWireType:function(f,g){g instanceof ArrayBuffer&&(g=new Uint8Array(g));var l="string"===typeof g;l||g instanceof Uint8Array||g instanceof Uint8ClampedArray||g instanceof Int8Array||V("Cannot pass non-string to std::string");var q=(c&&l?function(){return oa(g)}:function(){return g.length})(),t=Od(4+q+1);hb[t>>2]=q;if(c&&l)ra(g,G,t+4,q+1);else if(l)for(l=0;l<q;++l){var x=g.charCodeAt(l);255<x&&(Nc(t),V("String has UTF-16 code units that do not fit in 8 bits"));G[t+4+l]=x}else for(l=0;l<q;++l)G[t+
4+l]=g[l];null!==f&&f.push(Nc,t);return t},argPackAdvance:8,readValueFromPointer:Mb,ke:function(f){Nc(f)}})},F:function(a,b,c){c=Zb(c);if(2===b){var f=Ya;var g=ab;var l=bb;var q=function(){return Za};var t=1}else 4===b&&(f=cb,g=db,l=eb,q=function(){return hb},t=2);Wb(a,{name:c,fromWireType:function(x){for(var w=hb[x>>2],I=q(),L,Q=x+4,A=0;A<=w;++A){var M=x+4+A*b;if(A==w||0==I[M>>t])Q=f(Q,M-Q),void 0===L?L=Q:(L+=String.fromCharCode(0),L+=Q),Q=M+b}Nc(x);return L},toWireType:function(x,w){"string"!==
typeof w&&V("Cannot pass non-string to C++ string type "+c);var I=l(w),L=Od(4+I+b);hb[L>>2]=I>>t;g(w,L+4,I+b);null!==x&&x.push(Nc,L);return L},argPackAdvance:8,readValueFromPointer:Mb,ke:function(x){Nc(x)}})},A:function(a,b,c,f,g,l){Kb[a]={name:Zb(b),rf:Jc(c,f),pe:Jc(g,l),yf:[]}},h:function(a,b,c,f,g,l,q,t,x,w){Kb[a].yf.push({Mf:Zb(b),Wf:c,Uf:Jc(f,g),Vf:l,qg:q,pg:Jc(t,x),rg:w})},Eb:function(a,b){b=Zb(b);Wb(a,{ag:!0,name:b,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},C:function(a,
b,c){a=gd(a);b=dd(b,"emval::as");var f=[],g=Ac(f);P[c>>2]=g;return b.toWireType(f,a)},mb:function(a,b,c,f,g){a=jd[a];b=gd(b);c=id(c);var l=[];P[f>>2]=Ac(l);return a(b,c,l,g)},B:function(a,b,c,f){a=jd[a];b=gd(b);c=id(c);a(b,c,null,f)},G:bd,ib:function(a){if(0===a)return Ac(kd());a=id(a);return Ac(kd()[a])},y:function(a,b){b=md(a,b);for(var c=b[0],f=c.name+"_$"+b.slice(1).map(function(w){return w.name}).join("_")+"$",g=["retType"],l=[c],q="",t=0;t<a-1;++t)q+=(0!==t?", ":"")+"arg"+t,g.push("argType"+
t),l.push(b[1+t]);f="return function "+Qb("methodCaller_"+f)+"(handle, name, destructors, args) {\n";var x=0;for(t=0;t<a-1;++t)f+="    var arg"+t+" = argType"+t+".readValueFromPointer(args"+(x?"+"+x:"")+");\n",x+=b[t+1].argPackAdvance;f+="    var rv = handle[name]("+q+");\n";for(t=0;t<a-1;++t)b[t+1].deleteObject&&(f+="    argType"+t+".deleteObject(arg"+t+");\n");c.ag||(f+="    return retType.toWireType(destructors, rv);\n");g.push(f+"};\n");a=Xc(g).apply(null,l);return ld(a)},J:function(a,b){a=gd(a);
b=gd(b);return Ac(a[b])},K:function(a){4<a&&(ad[a].sf+=1)},gb:function(a,b){a=gd(a);b=gd(b);return a instanceof b},hb:function(a,b,c,f){a=gd(a);var g=nd[b];if(!g){g="";for(var l=0;l<b;++l)g+=(0!==l?", ":"")+"arg"+l;var q="return function emval_allocator_"+b+"(constructor, argTypes, args) {\n";for(l=0;l<b;++l)q+="var argType"+l+" = requireRegisteredType(Module['HEAP32'][(argTypes >>> 2) + "+l+'], "parameter '+l+'");\nvar arg'+l+" = argType"+l+".readValueFromPointer(args);\nargs += argType"+l+"['argPackAdvance'];\n";
g=(new Function("requireRegisteredType","Module","__emval_register",q+("var obj = new constructor("+g+");\nreturn __emval_register(obj);\n}\n")))(dd,r,Ac);nd[b]=g}return g(a,c,f)},oa:function(){return Ac([])},za:function(a){return Ac(id(a))},kb:function(){return Ac({})},db:function(a){a=gd(a);return!a},lb:function(a){Lb(ad[a].value);bd(a)},w:function(a,b,c){a=gd(a);b=gd(b);c=gd(c);a[b]=c},t:function(a,b){a=dd(a,"_emval_take_value");a=a.readValueFromPointer(b);return Ac(a)},d:function(){Ka()},sb:function(a,
b){if(0===a)a=Date.now();else if(1===a||4===a)a=od();else return P[ke()>>2]=28,-1;P[b>>2]=a/1E3|0;P[b+4>>2]=a%1E3*1E6|0;return 0},Yc:function(a){X.activeTexture(a)},Zc:function(a,b){X.attachShader(ud[a],yd[b])},_c:function(a,b,c){X.bindAttribLocation(ud[a],b,Wa(c))},$c:function(a,b){35051==a?X.nf=b:35052==a&&(X.Je=b);X.bindBuffer(a,td[b])},$b:function(a,b){X.bindFramebuffer(a,vd[b])},ac:function(a,b){X.bindRenderbuffer(a,wd[b])},Nb:function(a,b){X.bindSampler(a,Ad[b])},ad:function(a,b){X.bindTexture(a,
xd[b])},uc:function(a){X.bindVertexArray(zd[a])},xc:function(a){X.bindVertexArray(zd[a])},bd:function(a,b,c,f){X.blendColor(a,b,c,f)},cd:function(a){X.blendEquation(a)},dd:function(a,b){X.blendFunc(a,b)},Ub:function(a,b,c,f,g,l,q,t,x,w){X.blitFramebuffer(a,b,c,f,g,l,q,t,x,w)},ed:function(a,b,c,f){2<=v.version?c?X.bufferData(a,G,f,c,b):X.bufferData(a,b,f):X.bufferData(a,c?G.subarray(c,c+b):b,f)},W:function(a,b,c,f){2<=v.version?X.bufferSubData(a,b,G,f,c):X.bufferSubData(a,b,G.subarray(f,f+c))},bc:function(a){return X.checkFramebufferStatus(a)},
X:function(a){X.clear(a)},Y:function(a,b,c,f){X.clearColor(a,b,c,f)},Z:function(a){X.clearStencil(a)},ab:function(a,b,c,f){return X.clientWaitSync(Bd[a],b,(c>>>0)+4294967296*f)},_:function(a,b,c,f){X.colorMask(!!a,!!b,!!c,!!f)},$:function(a){X.compileShader(yd[a])},aa:function(a,b,c,f,g,l,q,t){2<=v.version?X.Je?X.compressedTexImage2D(a,b,c,f,g,l,q,t):X.compressedTexImage2D(a,b,c,f,g,l,G,t,q):X.compressedTexImage2D(a,b,c,f,g,l,t?G.subarray(t,t+q):null)},ba:function(a,b,c,f,g,l,q,t,x){2<=v.version?
X.Je?X.compressedTexSubImage2D(a,b,c,f,g,l,q,t,x):X.compressedTexSubImage2D(a,b,c,f,g,l,q,G,x,t):X.compressedTexSubImage2D(a,b,c,f,g,l,q,x?G.subarray(x,x+t):null)},ca:function(a,b,c,f,g,l,q,t){X.copyTexSubImage2D(a,b,c,f,g,l,q,t)},da:function(){var a=ha(ud),b=X.createProgram();b.name=a;ud[a]=b;return a},ea:function(a){var b=ha(yd);yd[b]=X.createShader(a);return b},fa:function(a){X.cullFace(a)},ga:function(a,b){for(var c=0;c<a;c++){var f=P[b+4*c>>2],g=td[f];g&&(X.deleteBuffer(g),g.name=0,td[f]=null,
f==X.nf&&(X.nf=0),f==X.Je&&(X.Je=0))}},cc:function(a,b){for(var c=0;c<a;++c){var f=P[b+4*c>>2],g=vd[f];g&&(X.deleteFramebuffer(g),g.name=0,vd[f]=null)}},ha:function(a){if(a){var b=ud[a];b?(X.deleteProgram(b),b.name=0,ud[a]=null,Cd[a]=null):Gd(1281)}},dc:function(a,b){for(var c=0;c<a;c++){var f=P[b+4*c>>2],g=wd[f];g&&(X.deleteRenderbuffer(g),g.name=0,wd[f]=null)}},Ob:function(a,b){for(var c=0;c<a;c++){var f=P[b+4*c>>2],g=Ad[f];g&&(X.deleteSampler(g),g.name=0,Ad[f]=null)}},ia:function(a){if(a){var b=
yd[a];b?(X.deleteShader(b),yd[a]=null):Gd(1281)}},Wb:function(a){if(a){var b=Bd[a];b?(X.deleteSync(b),b.name=0,Bd[a]=null):Gd(1281)}},ja:function(a,b){for(var c=0;c<a;c++){var f=P[b+4*c>>2],g=xd[f];g&&(X.deleteTexture(g),g.name=0,xd[f]=null)}},vc:function(a,b){for(var c=0;c<a;c++){var f=P[b+4*c>>2];X.deleteVertexArray(zd[f]);zd[f]=null}},yc:function(a,b){for(var c=0;c<a;c++){var f=P[b+4*c>>2];X.deleteVertexArray(zd[f]);zd[f]=null}},ka:function(a){X.depthMask(!!a)},la:function(a){X.disable(a)},ma:function(a){X.disableVertexAttribArray(a)},
na:function(a,b,c){X.drawArrays(a,b,c)},sc:function(a,b,c,f){X.drawArraysInstanced(a,b,c,f)},qc:function(a,b,c,f,g){X.xf.drawArraysInstancedBaseInstanceWEBGL(a,b,c,f,g)},oc:function(a,b){for(var c=Kd[a],f=0;f<a;f++)c[f]=P[b+4*f>>2];X.drawBuffers(c)},pa:function(a,b,c,f){X.drawElements(a,b,c,f)},tc:function(a,b,c,f,g){X.drawElementsInstanced(a,b,c,f,g)},rc:function(a,b,c,f,g,l,q){X.xf.drawElementsInstancedBaseVertexBaseInstanceWEBGL(a,b,c,f,g,l,q)},ic:function(a,b,c,f,g,l){X.drawElements(a,f,g,l)},
qa:function(a){X.enable(a)},ra:function(a){X.enableVertexAttribArray(a)},Sb:function(a,b){return(a=X.fenceSync(a,b))?(b=ha(Bd),a.name=b,Bd[b]=a,b):0},sa:function(){X.finish()},ta:function(){X.flush()},ec:function(a,b,c,f){X.framebufferRenderbuffer(a,b,c,wd[f])},fc:function(a,b,c,f,g){X.framebufferTexture2D(a,b,c,xd[f],g)},ua:function(a){X.frontFace(a)},va:function(a,b){Ld(a,b,"createBuffer",td)},gc:function(a,b){Ld(a,b,"createFramebuffer",vd)},hc:function(a,b){Ld(a,b,"createRenderbuffer",wd)},Pb:function(a,
b){Ld(a,b,"createSampler",Ad)},wa:function(a,b){Ld(a,b,"createTexture",xd)},wc:function(a,b){Ld(a,b,"createVertexArray",zd)},zc:function(a,b){Ld(a,b,"createVertexArray",zd)},Xb:function(a){X.generateMipmap(a)},xa:function(a,b,c){c?P[c>>2]=X.getBufferParameter(a,b):Gd(1281)},ya:function(){var a=X.getError()||Hd;Hd=0;return a},Yb:function(a,b,c,f){a=X.getFramebufferAttachmentParameter(a,b,c);if(a instanceof WebGLRenderbuffer||a instanceof WebGLTexture)a=a.name|0;P[f>>2]=a},_a:function(a,b){Md(a,b)},
Aa:function(a,b,c,f){a=X.getProgramInfoLog(ud[a]);null===a&&(a="(unknown error)");b=0<b&&f?ra(a,G,f,b):0;c&&(P[c>>2]=b)},Ba:function(a,b,c){if(c)if(a>=sd)Gd(1281);else{var f=Cd[a];if(f)if(35716==b)a=X.getProgramInfoLog(ud[a]),null===a&&(a="(unknown error)"),P[c>>2]=a.length+1;else if(35719==b)P[c>>2]=f.qf;else if(35722==b){if(-1==f.Ve){a=ud[a];var g=X.getProgramParameter(a,35721);for(b=f.Ve=0;b<g;++b)f.Ve=Math.max(f.Ve,X.getActiveAttrib(a,b).name.length+1)}P[c>>2]=f.Ve}else if(35381==b){if(-1==f.We)for(a=
ud[a],g=X.getProgramParameter(a,35382),b=f.We=0;b<g;++b)f.We=Math.max(f.We,X.getActiveUniformBlockName(a,b).length+1);P[c>>2]=f.We}else P[c>>2]=X.getProgramParameter(ud[a],b);else Gd(1282)}else Gd(1281)},Zb:function(a,b,c){c?P[c>>2]=X.getRenderbufferParameter(a,b):Gd(1281)},Ca:function(a,b,c,f){a=X.getShaderInfoLog(yd[a]);null===a&&(a="(unknown error)");b=0<b&&f?ra(a,G,f,b):0;c&&(P[c>>2]=b)},Kb:function(a,b,c,f){a=X.getShaderPrecisionFormat(a,b);P[c>>2]=a.rangeMin;P[c+4>>2]=a.rangeMax;P[f>>2]=a.precision},
Da:function(a,b,c){c?35716==b?(a=X.getShaderInfoLog(yd[a]),null===a&&(a="(unknown error)"),P[c>>2]=a?a.length+1:0):35720==b?(a=X.getShaderSource(yd[a]),P[c>>2]=a?a.length+1:0):P[c>>2]=X.getShaderParameter(yd[a],b):Gd(1281)},I:function(a){if(Dd[a])return Dd[a];switch(a){case 7939:var b=X.getSupportedExtensions()||[];b=b.concat(b.map(function(f){return"GL_"+f}));b=Nd(b.join(" "));break;case 7936:case 7937:case 37445:case 37446:(b=X.getParameter(a))||Gd(1280);b=Nd(b);break;case 7938:b=X.getParameter(7938);
b=2<=v.version?"OpenGL ES 3.0 ("+b+")":"OpenGL ES 2.0 ("+b+")";b=Nd(b);break;case 35724:b=X.getParameter(35724);var c=b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==c&&(3==c[1].length&&(c[1]+="0"),b="OpenGL ES GLSL ES "+c[1]+" ("+b+")");b=Nd(b);break;default:return Gd(1280),0}return Dd[a]=b},$a:function(a,b){if(2>v.version)return Gd(1282),0;var c=Ed[a];if(c)return 0>b||b>=c.length?(Gd(1281),0):c[b];switch(a){case 7939:return c=X.getSupportedExtensions()||[],c=c.concat(c.map(function(f){return"GL_"+
f})),c=c.map(function(f){return Nd(f)}),c=Ed[a]=c,0>b||b>=c.length?(Gd(1281),0):c[b];default:return Gd(1280),0}},Ea:function(a,b){b=Wa(b);var c=0;if("]"==b[b.length-1]){var f=b.lastIndexOf("[");c="]"!=b[f+1]?parseInt(b.slice(f+1)):0;b=b.slice(0,f)}return(a=Cd[a]&&Cd[a].uniforms[b])&&0<=c&&c<a[0]?a[1]+c:-1},Lb:function(a,b,c){for(var f=Kd[b],g=0;g<b;g++)f[g]=P[c+4*g>>2];X.invalidateFramebuffer(a,f)},Mb:function(a,b,c,f,g,l,q){for(var t=Kd[b],x=0;x<b;x++)t[x]=P[c+4*x>>2];X.invalidateSubFramebuffer(a,
t,f,g,l,q)},Tb:function(a){return X.isSync(Bd[a])},Fa:function(a){return(a=xd[a])?X.isTexture(a):0},Ga:function(a){X.lineWidth(a)},Ha:function(a){X.linkProgram(ud[a]);var b=ud[a];a=Cd[a]={uniforms:{},qf:0,Ve:-1,We:-1};for(var c=a.uniforms,f=X.getProgramParameter(b,35718),g=0;g<f;++g){var l=X.getActiveUniform(b,g),q=l.name;a.qf=Math.max(a.qf,q.length+1);"]"==q.slice(-1)&&(q=q.slice(0,q.lastIndexOf("[")));var t=X.getUniformLocation(b,q);if(t){var x=ha(W);c[q]=[l.size,x];W[x]=t;for(var w=1;w<l.size;++w)t=
X.getUniformLocation(b,q+"["+w+"]"),x=ha(W),W[x]=t}}},mc:function(a,b,c,f,g,l){X.zf.multiDrawArraysInstancedBaseInstanceWEBGL(a,P,b>>2,P,c>>2,P,f>>2,hb,g>>2,l)},nc:function(a,b,c,f,g,l,q,t){X.zf.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(a,P,b>>2,c,P,f>>2,P,g>>2,P,l>>2,hb,q>>2,t)},Ia:function(a,b){3317==a&&(Fd=b);X.pixelStorei(a,b)},pc:function(a){X.readBuffer(a)},Ja:function(a,b,c,f,g,l,q){if(2<=v.version)if(X.nf)X.readPixels(a,b,c,f,g,l,q);else{var t=Pd(l);X.readPixels(a,b,c,f,g,l,t,
q>>31-Math.clz32(t.BYTES_PER_ELEMENT))}else(q=Qd(l,g,c,f,q))?X.readPixels(a,b,c,f,g,l,q):Gd(1280)},_b:function(a,b,c,f){X.renderbufferStorage(a,b,c,f)},Vb:function(a,b,c,f,g){X.renderbufferStorageMultisample(a,b,c,f,g)},Qb:function(a,b,c){X.samplerParameteri(Ad[a],b,c)},Rb:function(a,b,c){X.samplerParameteri(Ad[a],b,P[c>>2])},Ka:function(a,b,c,f){X.scissor(a,b,c,f)},La:function(a,b,c,f){for(var g="",l=0;l<b;++l){var q=f?P[f+4*l>>2]:-1;g+=Wa(P[c+4*l>>2],0>q?void 0:q)}X.shaderSource(yd[a],g)},Ma:function(a,
b,c){X.stencilFunc(a,b,c)},Na:function(a,b,c,f){X.stencilFuncSeparate(a,b,c,f)},Oa:function(a){X.stencilMask(a)},Pa:function(a,b){X.stencilMaskSeparate(a,b)},Qa:function(a,b,c){X.stencilOp(a,b,c)},Ra:function(a,b,c,f){X.stencilOpSeparate(a,b,c,f)},Sa:function(a,b,c,f,g,l,q,t,x){if(2<=v.version)if(X.Je)X.texImage2D(a,b,c,f,g,l,q,t,x);else if(x){var w=Pd(t);X.texImage2D(a,b,c,f,g,l,q,t,w,x>>31-Math.clz32(w.BYTES_PER_ELEMENT))}else X.texImage2D(a,b,c,f,g,l,q,t,null);else X.texImage2D(a,b,c,f,g,l,q,t,
x?Qd(t,q,f,g,x):null)},Ta:function(a,b,c){X.texParameterf(a,b,c)},Ua:function(a,b,c){X.texParameterf(a,b,U[c>>2])},Va:function(a,b,c){X.texParameteri(a,b,c)},Wa:function(a,b,c){X.texParameteri(a,b,P[c>>2])},jc:function(a,b,c,f,g){X.texStorage2D(a,b,c,f,g)},Xa:function(a,b,c,f,g,l,q,t,x){if(2<=v.version)if(X.Je)X.texSubImage2D(a,b,c,f,g,l,q,t,x);else if(x){var w=Pd(t);X.texSubImage2D(a,b,c,f,g,l,q,t,w,x>>31-Math.clz32(w.BYTES_PER_ELEMENT))}else X.texSubImage2D(a,b,c,f,g,l,q,t,null);else w=null,x&&
(w=Qd(t,q,g,l,x)),X.texSubImage2D(a,b,c,f,g,l,q,t,w)},Ya:function(a,b){X.uniform1f(W[a],b)},Za:function(a,b,c){if(2<=v.version)X.uniform1fv(W[a],U,c>>2,b);else{if(288>=b)for(var f=Rd[b-1],g=0;g<b;++g)f[g]=U[c+4*g>>2];else f=U.subarray(c>>2,c+4*b>>2);X.uniform1fv(W[a],f)}},Uc:function(a,b){X.uniform1i(W[a],b)},Vc:function(a,b,c){if(2<=v.version)X.uniform1iv(W[a],P,c>>2,b);else{if(288>=b)for(var f=Sd[b-1],g=0;g<b;++g)f[g]=P[c+4*g>>2];else f=P.subarray(c>>2,c+4*b>>2);X.uniform1iv(W[a],f)}},Wc:function(a,
b,c){X.uniform2f(W[a],b,c)},Xc:function(a,b,c){if(2<=v.version)X.uniform2fv(W[a],U,c>>2,2*b);else{if(144>=b)for(var f=Rd[2*b-1],g=0;g<2*b;g+=2)f[g]=U[c+4*g>>2],f[g+1]=U[c+(4*g+4)>>2];else f=U.subarray(c>>2,c+8*b>>2);X.uniform2fv(W[a],f)}},Tc:function(a,b,c){X.uniform2i(W[a],b,c)},Sc:function(a,b,c){if(2<=v.version)X.uniform2iv(W[a],P,c>>2,2*b);else{if(144>=b)for(var f=Sd[2*b-1],g=0;g<2*b;g+=2)f[g]=P[c+4*g>>2],f[g+1]=P[c+(4*g+4)>>2];else f=P.subarray(c>>2,c+8*b>>2);X.uniform2iv(W[a],f)}},Rc:function(a,
b,c,f){X.uniform3f(W[a],b,c,f)},Qc:function(a,b,c){if(2<=v.version)X.uniform3fv(W[a],U,c>>2,3*b);else{if(96>=b)for(var f=Rd[3*b-1],g=0;g<3*b;g+=3)f[g]=U[c+4*g>>2],f[g+1]=U[c+(4*g+4)>>2],f[g+2]=U[c+(4*g+8)>>2];else f=U.subarray(c>>2,c+12*b>>2);X.uniform3fv(W[a],f)}},Pc:function(a,b,c,f){X.uniform3i(W[a],b,c,f)},Oc:function(a,b,c){if(2<=v.version)X.uniform3iv(W[a],P,c>>2,3*b);else{if(96>=b)for(var f=Sd[3*b-1],g=0;g<3*b;g+=3)f[g]=P[c+4*g>>2],f[g+1]=P[c+(4*g+4)>>2],f[g+2]=P[c+(4*g+8)>>2];else f=P.subarray(c>>
2,c+12*b>>2);X.uniform3iv(W[a],f)}},Nc:function(a,b,c,f,g){X.uniform4f(W[a],b,c,f,g)},Mc:function(a,b,c){if(2<=v.version)X.uniform4fv(W[a],U,c>>2,4*b);else{if(72>=b){var f=Rd[4*b-1],g=U;c>>=2;for(var l=0;l<4*b;l+=4){var q=c+l;f[l]=g[q];f[l+1]=g[q+1];f[l+2]=g[q+2];f[l+3]=g[q+3]}}else f=U.subarray(c>>2,c+16*b>>2);X.uniform4fv(W[a],f)}},Ac:function(a,b,c,f,g){X.uniform4i(W[a],b,c,f,g)},Bc:function(a,b,c){if(2<=v.version)X.uniform4iv(W[a],P,c>>2,4*b);else{if(72>=b)for(var f=Sd[4*b-1],g=0;g<4*b;g+=4)f[g]=
P[c+4*g>>2],f[g+1]=P[c+(4*g+4)>>2],f[g+2]=P[c+(4*g+8)>>2],f[g+3]=P[c+(4*g+12)>>2];else f=P.subarray(c>>2,c+16*b>>2);X.uniform4iv(W[a],f)}},Cc:function(a,b,c,f){if(2<=v.version)X.uniformMatrix2fv(W[a],!!c,U,f>>2,4*b);else{if(72>=b)for(var g=Rd[4*b-1],l=0;l<4*b;l+=4)g[l]=U[f+4*l>>2],g[l+1]=U[f+(4*l+4)>>2],g[l+2]=U[f+(4*l+8)>>2],g[l+3]=U[f+(4*l+12)>>2];else g=U.subarray(f>>2,f+16*b>>2);X.uniformMatrix2fv(W[a],!!c,g)}},Dc:function(a,b,c,f){if(2<=v.version)X.uniformMatrix3fv(W[a],!!c,U,f>>2,9*b);else{if(32>=
b)for(var g=Rd[9*b-1],l=0;l<9*b;l+=9)g[l]=U[f+4*l>>2],g[l+1]=U[f+(4*l+4)>>2],g[l+2]=U[f+(4*l+8)>>2],g[l+3]=U[f+(4*l+12)>>2],g[l+4]=U[f+(4*l+16)>>2],g[l+5]=U[f+(4*l+20)>>2],g[l+6]=U[f+(4*l+24)>>2],g[l+7]=U[f+(4*l+28)>>2],g[l+8]=U[f+(4*l+32)>>2];else g=U.subarray(f>>2,f+36*b>>2);X.uniformMatrix3fv(W[a],!!c,g)}},Ec:function(a,b,c,f){if(2<=v.version)X.uniformMatrix4fv(W[a],!!c,U,f>>2,16*b);else{if(18>=b){var g=Rd[16*b-1],l=U;f>>=2;for(var q=0;q<16*b;q+=16){var t=f+q;g[q]=l[t];g[q+1]=l[t+1];g[q+2]=l[t+
2];g[q+3]=l[t+3];g[q+4]=l[t+4];g[q+5]=l[t+5];g[q+6]=l[t+6];g[q+7]=l[t+7];g[q+8]=l[t+8];g[q+9]=l[t+9];g[q+10]=l[t+10];g[q+11]=l[t+11];g[q+12]=l[t+12];g[q+13]=l[t+13];g[q+14]=l[t+14];g[q+15]=l[t+15]}}else g=U.subarray(f>>2,f+64*b>>2);X.uniformMatrix4fv(W[a],!!c,g)}},Fc:function(a){X.useProgram(ud[a])},Gc:function(a,b){X.vertexAttrib1f(a,b)},Hc:function(a,b){X.vertexAttrib2f(a,U[b>>2],U[b+4>>2])},Ic:function(a,b){X.vertexAttrib3f(a,U[b>>2],U[b+4>>2],U[b+8>>2])},Jc:function(a,b){X.vertexAttrib4f(a,U[b>>
2],U[b+4>>2],U[b+8>>2],U[b+12>>2])},kc:function(a,b){X.vertexAttribDivisor(a,b)},lc:function(a,b,c,f,g){X.vertexAttribIPointer(a,b,c,f,g)},Kc:function(a,b,c,f,g,l){X.vertexAttribPointer(a,b,c,!!f,g,l)},Lc:function(a,b,c,f){X.viewport(a,b,c,f)},bb:function(a,b,c,f){X.waitSync(Bd[a],b,(c>>>0)+4294967296*f)},e:function(a,b){le(a,b||1);throw"longjmp";},pb:function(a,b,c){G.copyWithin(a,b,b+c)},qb:function(a){a>>>=0;var b=G.length;if(2147483648<a)return!1;for(var c=1;4>=c;c*=2){var f=b*(1+.2/c);f=Math.min(f,
a+100663296);f=Math.max(16777216,a,f);0<f%65536&&(f+=65536-f%65536);a:{try{Ra.grow(Math.min(2147483648,f)-fb.byteLength+65535>>>16);nb();var g=1;break a}catch(l){}g=void 0}if(g)return!0}return!1},fd:function(){return v?v.Xf:0},V:function(a){return na(a)?0:-5},ub:function(a,b){var c=0;Ud().forEach(function(f,g){var l=b+c;g=P[a+4*g>>2]=l;for(l=0;l<f.length;++l)gb[g++>>0]=f.charCodeAt(l);gb[g>>0]=0;c+=f.length+1});return 0},vb:function(a,b){var c=Ud();P[a>>2]=c.length;var f=0;c.forEach(function(g){f+=
g.length+1});P[b>>2]=f;return 0},Fb:function(a){if(!noExitRuntime){if(r.onExit)r.onExit(a);Sa=!0}xa(a,new Ja(a))},E:function(){return 0},tb:function(a,b){a=1==a||2==a?2:Ka();gb[b>>0]=a;return 0},ob:function(a,b,c,f,g,l){a=Jb.Tf(a);b=Jb.Jf(a,b,c,f);P[l>>2]=b;return 0},wb:function(a,b,c,f){a=Jb.Tf(a);b=Jb.Jf(a,b,c);P[f>>2]=b;return 0},nb:function(){},L:function(a,b,c,f){for(var g=0,l=0;l<c;l++){for(var q=P[b+8*l>>2],t=P[b+(8*l+4)>>2],x=0;x<t;x++){var w=G[q+x],I=Ib[a];0===w||10===w?((1===a?Na:Oa)(Va(I,
0)),I.length=0):I.push(w)}g+=t}P[f>>2]=g;return 0},a:function(){return Pa|0},gd:function(a,b){X.bindFramebuffer(a,vd[b])},cb:function(a){X.clear(a)},Cb:function(a,b,c,f){X.clearColor(a,b,c,f)},jb:function(a){X.clearStencil(a)},H:function(a,b){Md(a,b)},k:me,q:ne,g:oe,D:pe,Jb:qe,T:re,S:se,R:te,i:ue,r:ve,j:we,o:xe,Ib:ye,Gb:ze,Hb:Ae,b:function(a){Pa=a|0},rb:function(a,b,c,f){return ae(a,b,c,f)}};
(function(){function a(g){r.asm=g.exports;Ra=r.asm.hd;nb();ob=r.asm.id;ub--;r.monitorRunDependencies&&r.monitorRunDependencies(ub);0==ub&&(null!==vb&&(clearInterval(vb),vb=null),wb&&(g=wb,wb=null,g()))}function b(g){a(g.instance)}function c(g){return Cb().then(function(l){return WebAssembly.instantiate(l,f)}).then(g,function(l){Oa("failed to asynchronously prepare wasm: "+l);Ka(l)})}var f={a:Be};ub++;r.monitorRunDependencies&&r.monitorRunDependencies(ub);if(r.instantiateWasm)try{return r.instantiateWasm(f,
a)}catch(g){return Oa("Module.instantiateWasm callback failed with error: "+g),!1}(function(){return Qa||"function"!==typeof WebAssembly.instantiateStreaming||zb()||xb("file://")||"function"!==typeof fetch?c(b):fetch(yb,{credentials:"same-origin"}).then(function(g){return WebAssembly.instantiateStreaming(g,f).then(b,function(l){Oa("wasm streaming compile failed: "+l);Oa("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(ea);return{}})();
var he=r.___wasm_call_ctors=function(){return(he=r.___wasm_call_ctors=r.asm.jd).apply(null,arguments)},je=r._memset=function(){return(je=r._memset=r.asm.kd).apply(null,arguments)},Od=r._malloc=function(){return(Od=r._malloc=r.asm.ld).apply(null,arguments)},Nc=r._free=function(){return(Nc=r._free=r.asm.md).apply(null,arguments)},ke=r.___errno_location=function(){return(ke=r.___errno_location=r.asm.nd).apply(null,arguments)},Mc=r.___getTypeName=function(){return(Mc=r.___getTypeName=r.asm.od).apply(null,
arguments)};r.___embind_register_native_and_builtin_types=function(){return(r.___embind_register_native_and_builtin_types=r.asm.pd).apply(null,arguments)};var Ce=r.stackSave=function(){return(Ce=r.stackSave=r.asm.qd).apply(null,arguments)},De=r.stackRestore=function(){return(De=r.stackRestore=r.asm.rd).apply(null,arguments)},le=r._setThrew=function(){return(le=r._setThrew=r.asm.sd).apply(null,arguments)},ie=r._memalign=function(){return(ie=r._memalign=r.asm.td).apply(null,arguments)};
r.dynCall_ji=function(){return(r.dynCall_ji=r.asm.ud).apply(null,arguments)};r.dynCall_iiji=function(){return(r.dynCall_iiji=r.asm.vd).apply(null,arguments)};r.dynCall_iijjiii=function(){return(r.dynCall_iijjiii=r.asm.wd).apply(null,arguments)};r.dynCall_iij=function(){return(r.dynCall_iij=r.asm.xd).apply(null,arguments)};r.dynCall_vijjjii=function(){return(r.dynCall_vijjjii=r.asm.yd).apply(null,arguments)};r.dynCall_viji=function(){return(r.dynCall_viji=r.asm.zd).apply(null,arguments)};
r.dynCall_vijiii=function(){return(r.dynCall_vijiii=r.asm.Ad).apply(null,arguments)};r.dynCall_viiiiij=function(){return(r.dynCall_viiiiij=r.asm.Bd).apply(null,arguments)};r.dynCall_viijii=function(){return(r.dynCall_viijii=r.asm.Cd).apply(null,arguments)};r.dynCall_jii=function(){return(r.dynCall_jii=r.asm.Dd).apply(null,arguments)};r.dynCall_iiij=function(){return(r.dynCall_iiij=r.asm.Ed).apply(null,arguments)};r.dynCall_iiiij=function(){return(r.dynCall_iiiij=r.asm.Fd).apply(null,arguments)};
r.dynCall_viij=function(){return(r.dynCall_viij=r.asm.Gd).apply(null,arguments)};r.dynCall_viiij=function(){return(r.dynCall_viiij=r.asm.Hd).apply(null,arguments)};r.dynCall_vij=function(){return(r.dynCall_vij=r.asm.Id).apply(null,arguments)};r.dynCall_jiiii=function(){return(r.dynCall_jiiii=r.asm.Jd).apply(null,arguments)};r.dynCall_jiiiiji=function(){return(r.dynCall_jiiiiji=r.asm.Kd).apply(null,arguments)};r.dynCall_jiiiiii=function(){return(r.dynCall_jiiiiii=r.asm.Ld).apply(null,arguments)};
r.dynCall_iijj=function(){return(r.dynCall_iijj=r.asm.Md).apply(null,arguments)};r.dynCall_jiji=function(){return(r.dynCall_jiji=r.asm.Nd).apply(null,arguments)};r.dynCall_iiiiij=function(){return(r.dynCall_iiiiij=r.asm.Od).apply(null,arguments)};r.dynCall_iiiiijj=function(){return(r.dynCall_iiiiijj=r.asm.Pd).apply(null,arguments)};r.dynCall_iiiiiijj=function(){return(r.dynCall_iiiiiijj=r.asm.Qd).apply(null,arguments)};
function me(a,b){var c=Ce();try{return ob.get(a)(b)}catch(f){De(c);if(f!==f+0&&"longjmp"!==f)throw f;le(1,0)}}function ne(a,b,c){var f=Ce();try{return ob.get(a)(b,c)}catch(g){De(f);if(g!==g+0&&"longjmp"!==g)throw g;le(1,0)}}function we(a,b,c,f){var g=Ce();try{ob.get(a)(b,c,f)}catch(l){De(g);if(l!==l+0&&"longjmp"!==l)throw l;le(1,0)}}function oe(a,b,c,f){var g=Ce();try{return ob.get(a)(b,c,f)}catch(l){De(g);if(l!==l+0&&"longjmp"!==l)throw l;le(1,0)}}
function ue(a,b){var c=Ce();try{ob.get(a)(b)}catch(f){De(c);if(f!==f+0&&"longjmp"!==f)throw f;le(1,0)}}function ve(a,b,c){var f=Ce();try{ob.get(a)(b,c)}catch(g){De(f);if(g!==g+0&&"longjmp"!==g)throw g;le(1,0)}}function qe(a,b,c,f,g,l){var q=Ce();try{return ob.get(a)(b,c,f,g,l)}catch(t){De(q);if(t!==t+0&&"longjmp"!==t)throw t;le(1,0)}}function xe(a,b,c,f,g){var l=Ce();try{ob.get(a)(b,c,f,g)}catch(q){De(l);if(q!==q+0&&"longjmp"!==q)throw q;le(1,0)}}
function re(a,b,c,f,g,l,q){var t=Ce();try{return ob.get(a)(b,c,f,g,l,q)}catch(x){De(t);if(x!==x+0&&"longjmp"!==x)throw x;le(1,0)}}function pe(a,b,c,f,g){var l=Ce();try{return ob.get(a)(b,c,f,g)}catch(q){De(l);if(q!==q+0&&"longjmp"!==q)throw q;le(1,0)}}function ye(a,b,c,f,g,l){var q=Ce();try{ob.get(a)(b,c,f,g,l)}catch(t){De(q);if(t!==t+0&&"longjmp"!==t)throw t;le(1,0)}}
function Ae(a,b,c,f,g,l,q,t,x,w){var I=Ce();try{ob.get(a)(b,c,f,g,l,q,t,x,w)}catch(L){De(I);if(L!==L+0&&"longjmp"!==L)throw L;le(1,0)}}function ze(a,b,c,f,g,l,q){var t=Ce();try{ob.get(a)(b,c,f,g,l,q)}catch(x){De(t);if(x!==x+0&&"longjmp"!==x)throw x;le(1,0)}}function se(a,b,c,f,g,l,q,t,x,w){var I=Ce();try{return ob.get(a)(b,c,f,g,l,q,t,x,w)}catch(L){De(I);if(L!==L+0&&"longjmp"!==L)throw L;le(1,0)}}function te(a){var b=Ce();try{ob.get(a)()}catch(c){De(b);if(c!==c+0&&"longjmp"!==c)throw c;le(1,0)}}var Ee;
function Ja(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}wb=function Fe(){Ee||Ge();Ee||(wb=Fe)};
function Ge(){function a(){if(!Ee&&(Ee=!0,r.calledRun=!0,!Sa)){Eb(qb);Eb(rb);ca(r);if(r.onRuntimeInitialized)r.onRuntimeInitialized();if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;){var b=r.postRun.shift();sb.unshift(b)}Eb(sb)}}if(!(0<ub)){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)tb();Eb(pb);0<ub||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1);a()},1)):a())}}
r.run=Ge;if(r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);0<r.preInit.length;)r.preInit.pop()();noExitRuntime=!0;Ge();


  return CanvasKitInit.ready
}
);
})();
if (typeof exports === 'object' && typeof module === 'object')
  module.exports = CanvasKitInit;
else if (typeof define === 'function' && define['amd'])
  define([], function() { return CanvasKitInit; });
else if (typeof exports === 'object')
  exports["CanvasKitInit"] = CanvasKitInit;
