@sketch-hq/sketch-web-renderer 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/index.js +1 -1
- package/dist/module-debug.wasm +0 -0
- package/dist/module-release.wasm +0 -0
- package/dist/static/js/web-renderer-153eddb1ca5fe2b48a1c.chunk.js +1 -0
- package/dist/static/js/web-renderer-64689ceb09327c7a0612.chunk.js +1 -0
- package/dist/static/js/{web-renderer-7abb9b7be51192a9d994.chunk.js → web-renderer-b4f9dd7400786ebe1320.chunk.js} +1 -1
- package/dist/ts/react/ShadowRoot.d.ts +4 -1
- package/dist/ts/react/ShadowRoot.d.ts.map +1 -1
- package/dist/ts/react/SketchWebReact.d.ts +1 -1
- package/dist/ts/react/SketchWebReact.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/static/js/web-renderer-3f92a939c48d943c9273.chunk.js +0 -1
- package/dist/static/js/web-renderer-97ee0746d1b62f4ad2a3.chunk.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_sketch_hq_sketch_web_renderer=self.webpackChunk_sketch_hq_sketch_web_renderer||[]).push([[425],{425:e=>{var t,r=(t="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e){var r,n,o=void 0!==(e=e||{})?e:{},i=Object.assign;o.ready=new Promise((function(e,t){r=e,n=t})),Object.getOwnPropertyDescriptor(o.ready,"_malloc")||(Object.defineProperty(o.ready,"_malloc",{configurable:!0,get:function(){we("You are getting _malloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_malloc",{configurable:!0,set:function(){we("You are setting _malloc on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"_free")||(Object.defineProperty(o.ready,"_free",{configurable:!0,get:function(){we("You are getting _free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"_free",{configurable:!0,set:function(){we("You are setting _free on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"___getTypeName")||(Object.defineProperty(o.ready,"___getTypeName",{configurable:!0,get:function(){we("You are getting ___getTypeName on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"___getTypeName",{configurable:!0,set:function(){we("You are setting ___getTypeName on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"___embind_register_native_and_builtin_types")||(Object.defineProperty(o.ready,"___embind_register_native_and_builtin_types",{configurable:!0,get:function(){we("You are getting ___embind_register_native_and_builtin_types on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"___embind_register_native_and_builtin_types",{configurable:!0,set:function(){we("You are setting ___embind_register_native_and_builtin_types on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}})),Object.getOwnPropertyDescriptor(o.ready,"onRuntimeInitialized")||(Object.defineProperty(o.ready,"onRuntimeInitialized",{configurable:!0,get:function(){we("You are getting onRuntimeInitialized on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}),Object.defineProperty(o.ready,"onRuntimeInitialized",{configurable:!0,set:function(){we("You are setting onRuntimeInitialized on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")}}));var a=i({},o),s=[],c="./this.program",d=(e,t)=>{throw t},l=!0,u=!1,p=!1,f=!1;if(o.ENVIRONMENT)throw new Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -s ENVIRONMENT=web or -s ENVIRONMENT=node)");var E,g="";function _(e){return o.locateFile?o.locateFile(e,g):g+e}function O(e){if(e instanceof Ms)return;let t=e;e&&"object"==typeof e&&e.stack&&(t=[e,e.stack]),m("exiting due to exception: "+t)}if(f){if("object"==typeof process||"object"==typeof window||"function"==typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");E=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),M("object"==typeof t),t)},"undefined"!=typeof scriptArgs?s=scriptArgs:void 0!==arguments&&(s=arguments),"function"==typeof quit&&(d=(e,t)=>{O(t),quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)}else{if(!l&&!u)throw new Error("environment detection error");if(u?g=self.location.href:"undefined"!=typeof document&&document.currentScript&&(g=document.currentScript.src),t&&(g=t),g=0!==g.indexOf("blob:")?g.substr(0,g.replace(/[?#].*/,"").lastIndexOf("/")+1):"","object"!=typeof window&&"function"!=typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");u&&(E=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)})}var T=o.print||console.log.bind(console),m=o.printErr||console.warn.bind(console);function h(e){h.shown||(h.shown={}),h.shown[e]||(h.shown[e]=1,m(e))}i(o,a),a=null,o.arguments&&(s=o.arguments),Object.getOwnPropertyDescriptor(o,"arguments")||Object.defineProperty(o,"arguments",{configurable:!0,get:function(){we("Module.arguments has been replaced with plain arguments_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),o.thisProgram&&(c=o.thisProgram),Object.getOwnPropertyDescriptor(o,"thisProgram")||Object.defineProperty(o,"thisProgram",{configurable:!0,get:function(){we("Module.thisProgram has been replaced with plain thisProgram (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),o.quit&&(d=o.quit),Object.getOwnPropertyDescriptor(o,"quit")||Object.defineProperty(o,"quit",{configurable:!0,get:function(){we("Module.quit has been replaced with plain quit_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),M(void 0===o.memoryInitializerPrefixURL,"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),M(void 0===o.pthreadMainPrefixURL,"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),M(void 0===o.cdInitializerPrefixURL,"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),M(void 0===o.filePackagePrefixURL,"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),M(void 0===o.read,"Module.read option was removed (modify read_ in JS)"),M(void 0===o.readAsync,"Module.readAsync option was removed (modify readAsync in JS)"),M(void 0===o.readBinary,"Module.readBinary option was removed (modify readBinary in JS)"),M(void 0===o.setWindowTitle,"Module.setWindowTitle option was removed (modify setWindowTitle in JS)"),M(void 0===o.TOTAL_MEMORY,"Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY"),Object.getOwnPropertyDescriptor(o,"read")||Object.defineProperty(o,"read",{configurable:!0,get:function(){we("Module.read has been replaced with plain read_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),Object.getOwnPropertyDescriptor(o,"readAsync")||Object.defineProperty(o,"readAsync",{configurable:!0,get:function(){we("Module.readAsync has been replaced with plain readAsync (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),Object.getOwnPropertyDescriptor(o,"readBinary")||Object.defineProperty(o,"readBinary",{configurable:!0,get:function(){we("Module.readBinary has been replaced with plain readBinary (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),Object.getOwnPropertyDescriptor(o,"setWindowTitle")||Object.defineProperty(o,"setWindowTitle",{configurable:!0,get:function(){we("Module.setWindowTitle has been replaced with plain setWindowTitle (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),M(!u,"worker environment detected but not enabled at build time. Add 'worker' to `-s ENVIRONMENT` to enable."),M(!p,"node environment detected but not enabled at build time. Add 'node' to `-s ENVIRONMENT` to enable."),M(!f,"shell environment detected but not enabled at build time. Add 'shell' to `-s ENVIRONMENT` to enable.");var y,D,w=0,b=e=>{w=e},v=()=>w;o.wasmBinary&&(y=o.wasmBinary),Object.getOwnPropertyDescriptor(o,"wasmBinary")||Object.defineProperty(o,"wasmBinary",{configurable:!0,get:function(){we("Module.wasmBinary has been replaced with plain wasmBinary (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),o.noExitRuntime,Object.getOwnPropertyDescriptor(o,"noExitRuntime")||Object.defineProperty(o,"noExitRuntime",{configurable:!0,get:function(){we("Module.noExitRuntime has been replaced with plain noExitRuntime (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),"object"!=typeof WebAssembly&&we("no native wasm support detected");var P,R=!1;function M(e,t){e||we("Assertion failed"+(t?": "+t:""))}var S="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function F(e,t,r){for(var n=t+r,o=t;e[o]&&!(o>=n);)++o;if(o-t>16&&e.subarray&&S)return S.decode(e.subarray(t,o));for(var i="";t<o;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var c=63&e[t++];if(224==(240&a)?a=(15&a)<<12|s<<6|c:(240!=(248&a)&&h("Invalid UTF-8 leading byte 0x"+a.toString(16)+" encountered when deserializing a UTF-8 string in wasm memory to a JS string!"),a=(7&a)<<18|s<<12|c<<6|63&e[t++]),a<65536)i+=String.fromCharCode(a);else{var d=a-65536;i+=String.fromCharCode(55296|d>>10,56320|1023&d)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function A(e,t){return e?F(N,e,t):""}function x(e,t,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(r>=i)break;t[r++]=s}else if(s<=2047){if(r+1>=i)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=i)break;s>1114111&&h("Invalid Unicode code point 0x"+s.toString(16)+" encountered when serializing a JS string to a UTF-8 string in wasm memory! (Valid unicode code points should be in range 0-0x10FFFF)."),t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-o}function I(e,t,r){return M("number"==typeof r,"stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),x(e,N,t,r)}function U(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}var j,C,N,H,k,X,Q,L,B,W="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function G(e,t){M(e%2==0,"Pointer passed to UTF16ToString must be aligned to two bytes!");for(var r=e,n=r>>1,o=n+t/2;!(n>=o)&&k[n];)++n;if((r=n<<1)-e>32&&W)return W.decode(N.subarray(e,r));for(var i="",a=0;!(a>=t/2);++a){var s=H[e+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i}function V(e,t,r){if(M(t%2==0,"Pointer passed to stringToUTF16 must be aligned to two bytes!"),M("number"==typeof r,"stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,o=(r-=2)<2*e.length?r/2:e.length,i=0;i<o;++i){var a=e.charCodeAt(i);H[t>>1]=a,t+=2}return H[t>>1]=0,t-n}function $(e){return 2*e.length}function Y(e,t){M(e%4==0,"Pointer passed to UTF32ToString must be aligned to four bytes!");for(var r=0,n="";!(r>=t/4);){var o=X[e+4*r>>2];if(0==o)break;if(++r,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function z(e,t,r){if(M(t%4==0,"Pointer passed to stringToUTF32 must be aligned to four bytes!"),M("number"==typeof r,"stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,o=n+r-4,i=0;i<e.length;++i){var a=e.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i)),X[t>>2]=a,(t+=4)+4>o)break}return X[t>>2]=0,t-n}function q(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t}function J(e,t){M(e.length>=0,"writeArrayToMemory array must have a length (should be an array or typed array)"),C.set(e,t)}function K(e,t,r){for(var n=0;n<e.length;++n)M(e.charCodeAt(n)===(255&e.charCodeAt(n))),C[t++>>0]=e.charCodeAt(n);r||(C[t>>0]=0)}function Z(e,t){return e%t>0&&(e+=t-e%t),e}function ee(e){j=e,o.HEAP8=C=new Int8Array(e),o.HEAP16=H=new Int16Array(e),o.HEAP32=X=new Int32Array(e),o.HEAPU8=N=new Uint8Array(e),o.HEAPU16=k=new Uint16Array(e),o.HEAPU32=Q=new Uint32Array(e),o.HEAPF32=L=new Float32Array(e),o.HEAPF64=B=new Float64Array(e)}var te=5242880;o.TOTAL_STACK&&M(te===o.TOTAL_STACK,"the stack size can no longer be determined at runtime");var re,ne=o.INITIAL_MEMORY||134217728;function oe(){var e=fs();M(0==(3&e)),X[e+4>>2]=34821223,X[e+8>>2]=2310721022,X[0]=1668509029}function ie(){if(!R){var e=fs(),t=Q[e+4>>2],r=Q[e+8>>2];34821223==t&&2310721022==r||we("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x2135467, but received 0x"+r.toString(16)+" 0x"+t.toString(16)),1668509029!==X[0]&&we("Runtime error: The application has corrupted its heap memory area (address zero)!")}}Object.getOwnPropertyDescriptor(o,"INITIAL_MEMORY")||Object.defineProperty(o,"INITIAL_MEMORY",{configurable:!0,get:function(){we("Module.INITIAL_MEMORY has been replaced with plain INITIAL_MEMORY (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),M(ne>=te,"INITIAL_MEMORY should be larger than TOTAL_STACK, was "+ne+"! (TOTAL_STACK="+te+")"),M("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&void 0!==Int32Array.prototype.subarray&&void 0!==Int32Array.prototype.set,"JS engine does not provide full typed array support"),M(!o.wasmMemory,"Use of `wasmMemory` detected. Use -s IMPORTED_MEMORY to define wasmMemory externally"),M(134217728==ne,"Detected runtime INITIAL_MEMORY setting. Use -s IMPORTED_MEMORY to define wasmMemory dynamically"),function(){var e=new Int16Array(1),t=new Int8Array(e.buffer);if(e[0]=25459,115!==t[0]||99!==t[1])throw"Runtime error: expected the system to be little-endian! (Run with -s SUPPORT_BIG_ENDIAN=1 to bypass)"}();var ae=[],se=[],ce=[],de=!1,le=!1;function ue(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)Ee(o.preRun.shift());Ie(ae)}function pe(){ie(),M(!de),de=!0,Ie(se)}function fe(){if(ie(),o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)_e(o.postRun.shift());Ie(ce)}function Ee(e){ae.unshift(e)}function ge(e){se.unshift(e)}function _e(e){ce.unshift(e)}M(Math.imul,"This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),M(Math.fround,"This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),M(Math.clz32,"This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),M(Math.trunc,"This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");var Oe=0,Te=null,me=null,he={};function ye(e){Oe++,o.monitorRunDependencies&&o.monitorRunDependencies(Oe),e?(M(!he[e]),he[e]=1,null===Te&&"undefined"!=typeof setInterval&&(Te=setInterval((function(){if(R)return clearInterval(Te),void(Te=null);var e=!1;for(var t in he)e||(e=!0,m("still waiting on run dependencies:")),m("dependency: "+t);e&&m("(end of list)")}),1e4))):m("warning: run dependency added without ID")}function De(e){if(Oe--,o.monitorRunDependencies&&o.monitorRunDependencies(Oe),e?(M(he[e]),delete he[e]):m("warning: run dependency removed without ID"),0==Oe&&(null!==Te&&(clearInterval(Te),Te=null),me)){var t=me;me=null,t()}}function we(e){o.onAbort&&o.onAbort(e),m(e="Aborted("+e+")"),R=!0,P=1;var t=new WebAssembly.RuntimeError(e);throw n(t),t}o.preloadedImages={},o.preloadedAudios={};var be={error:function(){we("Filesystem support (FS) was not included. The problem is that you are using files from JS, but files were not used from C/C++, so filesystem support was not auto-included. You can force-include filesystem support with -s FORCE_FILESYSTEM=1")},init:function(){be.error()},createDataFile:function(){be.error()},createPreloadedFile:function(){be.error()},createLazyFile:function(){be.error()},open:function(){be.error()},mkdev:function(){be.error()},registerDevice:function(){be.error()},analyzePath:function(){be.error()},loadFilesFromDB:function(){be.error()},ErrnoError:function(){be.error()}};o.FS_createDataFile=be.createDataFile,o.FS_createPreloadedFile=be.createPreloadedFile;var ve,Pe="data:application/octet-stream;base64,";function Re(e){return e.startsWith(Pe)}function Me(e){return e.startsWith("file://")}function Se(e,t){return function(){var r=e,n=t;return t||(n=o.asm),M(de,"native function `"+r+"` called before runtime initialization"),M(!le,"native function `"+r+"` called after runtime exit (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),n[e]||M(n[e],"exported native function `"+r+"` not found"),n[e].apply(null,arguments)}}function Fe(e){try{if(e==ve&&y)return new Uint8Array(y);if(E)return E(e);throw"both async and sync fetching of the wasm failed"}catch(e){we(e)}}function Ae(){return y||!l&&!u||"function"!=typeof fetch?Promise.resolve().then((function(){return Fe(ve)})):fetch(ve,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ve+"'";return e.arrayBuffer()})).catch((function(){return Fe(ve)}))}function xe(){var e={env:as,wasi_snapshot_preview1:as};function t(e,t){var r=e.exports;o.asm=r,M(D=o.asm.memory,"memory not found in wasm exports"),ee(D.buffer),M(re=o.asm.__indirect_function_table,"table not found in wasm exports"),ge(o.asm.__wasm_call_ctors),De("wasm-instantiate")}ye("wasm-instantiate");var r=o;function i(e){M(o===r,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),r=null,t(e.instance)}function a(t){return Ae().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){m("failed to asynchronously prepare wasm: "+e),Me(ve)&&m("warning: Loading from a file URI ("+ve+") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing"),we(e)}))}if(o.instantiateWasm)try{return o.instantiateWasm(e,t)}catch(e){return m("Module.instantiateWasm callback failed with error: "+e),!1}return(y||"function"!=typeof WebAssembly.instantiateStreaming||Re(ve)||"function"!=typeof fetch?a(i):fetch(ve,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(i,(function(e){return m("wasm streaming compile failed: "+e),m("falling back to ArrayBuffer instantiation"),a(i)}))}))).catch(n),{}}function Ie(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?je(r)():je(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(o)}}Re(ve="module-debug.wasm")||(ve=_(ve));var Ue=[];function je(e){var t=Ue[e];return t||(e>=Ue.length&&(Ue.length=e+1),Ue[e]=t=re.get(e)),M(re.get(e)==t,"JavaScript-side Wasm function table mirror is out of date!"),t}function Ce(e){if(e instanceof Ms||"unwind"==e)return P;d(1,e)}function Ne(e,t,r,n){we("Assertion failed: "+A(e)+", at: "+[t?A(t):"unknown filename",r,n?A(n):"unknown function"])}function He(e){return cs(e+16)+16}function ke(e){this.excPtr=e,this.ptr=e-16,this.set_type=function(e){X[this.ptr+4>>2]=e},this.get_type=function(){return X[this.ptr+4>>2]},this.set_destructor=function(e){X[this.ptr+8>>2]=e},this.get_destructor=function(){return X[this.ptr+8>>2]},this.set_refcount=function(e){X[this.ptr>>2]=e},this.set_caught=function(e){e=e?1:0,C[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=C[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,C[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=C[this.ptr+13>>0]},this.init=function(e,t){this.set_type(e),this.set_destructor(t),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var e=X[this.ptr>>2];X[this.ptr>>2]=e+1},this.release_ref=function(){var e=X[this.ptr>>2];return X[this.ptr>>2]=e-1,M(e>0),1===e}}function Xe(e,t,r){throw new ke(e).init(t,r),e+" - Exception catching is disabled, this exception cannot be caught. Compile with -s NO_DISABLE_EXCEPTION_CATCHING or -s EXCEPTION_CATCHING_ALLOWED=[..] to catch."}var Qe={};function Le(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function Be(e){return this.fromWireType(Q[e>>2])}var We={},Ge={},Ve={},$e=48,Ye=57;function ze(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=$e&&t<=Ye?"_"+e:e}function qe(e,t){return e=ze(e),new Function("body","return function "+e+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function Je(e,t){var r=qe(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var Ke=void 0;function Ze(e){throw new Ke(e)}function et(e,t,r){function n(t){var n=r(t);n.length!==e.length&&Ze("Mismatched type converter count");for(var o=0;o<e.length;++o)dt(e[o],n[o])}e.forEach((function(e){Ve[e]=t}));var o=new Array(t.length),i=[],a=0;t.forEach((function(e,t){Ge.hasOwnProperty(e)?o[t]=Ge[e]:(i.push(e),We.hasOwnProperty(e)||(We[e]=[]),We[e].push((function(){o[t]=Ge[e],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function tt(e){var t=Qe[e];delete Qe[e];var r=t.rawConstructor,n=t.rawDestructor,o=t.fields;et([e],o.map((function(e){return e.getterReturnType})).concat(o.map((function(e){return e.setterArgumentType}))),(function(e){var i={};return o.forEach((function(t,r){var n=t.fieldName,a=e[r],s=t.getter,c=t.getterContext,d=e[r+o.length],l=t.setter,u=t.setterContext;i[n]={read:function(e){return a.fromWireType(s(c,e))},write:function(e,t){var r=[];l(u,e,d.toWireType(r,t)),Le(r)}}})),[{name:t.name,fromWireType:function(e){var t={};for(var r in i)t[r]=i[r].read(e);return n(e),t},toWireType:function(e,t){for(var o in i)if(!(o in t))throw new TypeError('Missing field: "'+o+'"');var a=r();for(o in i)i[o].write(a,t[o]);return null!==e&&e.push(n,a),a},argPackAdvance:8,readValueFromPointer:Be,destructorFunction:n}]}))}function rt(e,t,r,n,o){}function nt(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}function ot(){for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);it=e}var it=void 0;function at(e){for(var t="",r=e;N[r];)t+=it[N[r++]];return t}var st=void 0;function ct(e){throw new st(e)}function dt(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=t.name;if(e||ct('type "'+n+'" must have a positive integer typeid pointer'),Ge.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;ct("Cannot register type '"+n+"' twice")}if(Ge[e]=t,delete Ve[e],We.hasOwnProperty(e)){var o=We[e];delete We[e],o.forEach((function(e){e()}))}}function lt(e,t,r,n,o){var i=nt(r);dt(e,{name:t=at(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:o},argPackAdvance:8,readValueFromPointer:function(e){var n;if(1===r)n=C;else if(2===r)n=H;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);n=X}return this.fromWireType(n[e>>i])},destructorFunction:null})}function ut(e){if(!(this instanceof Rt))return!1;if(!(e instanceof Rt))return!1;for(var t=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=e.$$.ptrType.registeredClass,o=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return t===n&&r===o}function pt(e){return{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}}function ft(e){ct(e.$$.ptrType.registeredClass.name+" instance already deleted")}var Et=!1;function gt(e){}function _t(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}function Ot(e){e.count.value-=1,0===e.count.value&&_t(e)}function Tt(e){return"undefined"==typeof FinalizationGroup?(Tt=e=>e,e):(Et=new FinalizationGroup((function(e){for(var t=e.next();!t.done;t=e.next()){var r=t.value;r.ptr?Ot(r):console.warn("object already deleted: "+r.ptr)}})),gt=e=>{Et.unregister(e.$$)},(Tt=e=>(Et.register(e,e.$$,e.$$),e))(e))}function mt(){if(this.$$.ptr||ft(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=Tt(Object.create(Object.getPrototypeOf(this),{$$:{value:pt(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function ht(){this.$$.ptr||ft(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ct("Object already scheduled for deletion"),gt(this),Ot(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function yt(){return!this.$$.ptr}var Dt=void 0,wt=[];function bt(){for(;wt.length;){var e=wt.pop();e.$$.deleteScheduled=!1,e.delete()}}function vt(){return this.$$.ptr||ft(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ct("Object already scheduled for deletion"),wt.push(this),1===wt.length&&Dt&&Dt(bt),this.$$.deleteScheduled=!0,this}function Pt(){Rt.prototype.isAliasOf=ut,Rt.prototype.clone=mt,Rt.prototype.delete=ht,Rt.prototype.isDeleted=yt,Rt.prototype.deleteLater=vt}function Rt(){}var Mt={};function St(e,t,r){if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||ct("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[t].overloadTable+")!"),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}}function Ft(e,t,r){o.hasOwnProperty(e)?((void 0===r||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[r])&&ct("Cannot register public name '"+e+"' twice"),St(o,e,e),o.hasOwnProperty(r)&&ct("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),o[e].overloadTable[r]=t):(o[e]=t,void 0!==r&&(o[e].numArguments=r))}function At(e,t,r,n,o,i,a,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function xt(e,t,r){for(;t!==r;)t.upcast||ct("Expected null or instance of "+r.name+", got an instance of "+t.name),e=t.upcast(e),t=t.baseClass;return e}function It(e,t){if(null===t)return this.isReference&&ct("null is not a valid "+this.name),0;t.$$||ct('Cannot pass "'+hr(t)+'" as a '+this.name),t.$$.ptr||ct("Cannot pass deleted object as a pointer of type "+this.name);var r=t.$$.ptrType.registeredClass;return xt(t.$$.ptr,r,this.registeredClass)}function Ut(e,t){var r;if(null===t)return this.isReference&&ct("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||ct('Cannot pass "'+hr(t)+'" as a '+this.name),t.$$.ptr||ct("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&t.$$.ptrType.isConst&&ct("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);var n=t.$$.ptrType.registeredClass;if(r=xt(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&ct("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:ct("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var o=t.clone();r=this.rawShare(r,Tr.toHandle((function(){o.delete()}))),null!==e&&e.push(this.rawDestructor,r)}break;default:ct("Unsupporting sharing policy")}return r}function jt(e,t){if(null===t)return this.isReference&&ct("null is not a valid "+this.name),0;t.$$||ct('Cannot pass "'+hr(t)+'" as a '+this.name),t.$$.ptr||ct("Cannot pass deleted object as a pointer of type "+this.name),t.$$.ptrType.isConst&&ct("Cannot convert argument of type "+t.$$.ptrType.name+" to parameter type "+this.name);var r=t.$$.ptrType.registeredClass;return xt(t.$$.ptr,r,this.registeredClass)}function Ct(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function Nt(e){this.rawDestructor&&this.rawDestructor(e)}function Ht(e){null!==e&&e.delete()}function kt(e,t,r){if(t===r)return e;if(void 0===r.baseClass)return null;var n=kt(e,t,r.baseClass);return null===n?null:r.downcast(n)}function Xt(){return Object.keys(Wt).length}function Qt(){var e=[];for(var t in Wt)Wt.hasOwnProperty(t)&&e.push(Wt[t]);return e}function Lt(e){Dt=e,wt.length&&Dt&&Dt(bt)}function Bt(){o.getInheritedInstanceCount=Xt,o.getLiveInheritedInstances=Qt,o.flushPendingDeletes=bt,o.setDelayFunction=Lt}var Wt={};function Gt(e,t){for(void 0===t&&ct("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t}function Vt(e,t){return t=Gt(e,t),Wt[t]}function $t(e,t){return t.ptrType&&t.ptr||Ze("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&Ze("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Tt(Object.create(e,{$$:{value:t}}))}function Yt(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=Vt(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function o(){return this.isSmartPointer?$t(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):$t(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i,a=this.registeredClass.getActualType(t),s=Mt[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var c=kt(t,this.registeredClass,i.registeredClass);return null===c?o.call(this):this.isSmartPointer?$t(i.registeredClass.instancePrototype,{ptrType:i,ptr:c,smartPtrType:this,smartPtr:e}):$t(i.registeredClass.instancePrototype,{ptrType:i,ptr:c})}function zt(){qt.prototype.getPointee=Ct,qt.prototype.destructor=Nt,qt.prototype.argPackAdvance=8,qt.prototype.readValueFromPointer=Be,qt.prototype.deleteObject=Ht,qt.prototype.fromWireType=Yt}function qt(e,t,r,n,o,i,a,s,c,d,l){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=c,this.rawShare=d,this.rawDestructor=l,o||void 0!==t.baseClass?this.toWireType=Ut:n?(this.toWireType=It,this.destructorFunction=null):(this.toWireType=jt,this.destructorFunction=null)}function Jt(e,t,r){o.hasOwnProperty(e)||Ze("Replacing nonexistant public symbol"),void 0!==o[e].overloadTable&&void 0!==r?o[e].overloadTable[r]=t:(o[e]=t,o[e].argCount=r)}function Kt(e,t,r){M("dynCall_"+e in o,"bad function pointer type - no table for sig '"+e+"'"),r&&r.length?M(r.length===e.substring(1).replace(/j/g,"--").length):M(1==e.length);var n=o["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)}function Zt(e,t,r){return e.includes("j")?Kt(e,t,r):(M(je(t),"missing table entry in dynCall: "+t),je(t).apply(null,r))}function er(e,t){M(e.includes("j"),"getDynCaller should only be called with i64 sigs");var r=[];return function(){r.length=arguments.length;for(var n=0;n<arguments.length;n++)r[n]=arguments[n];return Zt(e,t,r)}}function tr(e,t){var r=(e=at(e)).includes("j")?er(e,t):je(t);return"function"!=typeof r&&ct("unknown function pointer with signature "+e+": "+t),r}var rr=void 0;function nr(e){var t=ls(e),r=at(t);return ss(t),r}function or(e,t){var r=[],n={};throw t.forEach((function e(t){n[t]||Ge[t]||(Ve[t]?Ve[t].forEach(e):(r.push(t),n[t]=!0))})),new rr(e+": "+r.map(nr).join([", "]))}function ir(e,t,r,n,o,i,a,s,c,d,l,u,p){l=at(l),i=tr(o,i),s&&(s=tr(a,s)),d&&(d=tr(c,d)),p=tr(u,p);var f=ze(l);Ft(f,(function(){or("Cannot construct "+l+" due to unbound types",[n])})),et([e,t,r],n?[n]:[],(function(t){var r,o;t=t[0],o=n?(r=t.registeredClass).instancePrototype:Rt.prototype;var a=qe(f,(function(){if(Object.getPrototypeOf(this)!==c)throw new st("Use 'new' to construct "+l);if(void 0===u.constructor_body)throw new st(l+" has no accessible constructor");var e=u.constructor_body[arguments.length];if(void 0===e)throw new st("Tried to invoke ctor of "+l+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(u.constructor_body).toString()+") parameters instead!");return e.apply(this,arguments)})),c=Object.create(o,{constructor:{value:a}});a.prototype=c;var u=new At(l,a,c,p,r,i,s,d),E=new qt(l,u,!0,!1,!1),g=new qt(l+"*",u,!1,!1,!1),_=new qt(l+" const*",u,!1,!0,!1);return Mt[e]={pointerType:g,constPointerType:_},Jt(f,a),[E,g,_]}))}function ar(e,t){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type "+typeof e+" which is not a function");var r=qe(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,o=e.apply(n,t);return o instanceof Object?o:n}function sr(e,t,r,n,o){var i=t.length;i<2&&ct("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==t[1]&&null!==r,s=!1,c=1;c<t.length;++c)if(null!==t[c]&&void 0===t[c].destructorFunction){s=!0;break}var d="void"!==t[0].name,l="",u="";for(c=0;c<i-2;++c)l+=(0!==c?", ":"")+"arg"+c,u+=(0!==c?", ":"")+"arg"+c+"Wired";var p="return function "+ze(e)+"("+l+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+e+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";s&&(p+="var destructors = [];\n");var f=s?"destructors":"null",E=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[ct,n,o,Le,t[0],t[1]];for(a&&(p+="var thisWired = classParam.toWireType("+f+", this);\n"),c=0;c<i-2;++c)p+="var arg"+c+"Wired = argType"+c+".toWireType("+f+", arg"+c+"); // "+t[c+2].name+"\n",E.push("argType"+c),g.push(t[c+2]);if(a&&(u="thisWired"+(u.length>0?", ":"")+u),p+=(d?"var rv = ":"")+"invoker(fn"+(u.length>0?", ":"")+u+");\n",s)p+="runDestructors(destructors);\n";else for(c=a?1:2;c<t.length;++c){var _=1===c?"thisWired":"arg"+(c-2)+"Wired";null!==t[c].destructorFunction&&(p+=_+"_dtor("+_+"); // "+t[c].name+"\n",E.push(_+"_dtor"),g.push(t[c].destructorFunction))}return d&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",E.push(p),ar(Function,E).apply(null,g)}function cr(e,t){for(var r=[],n=0;n<e;n++)r.push(X[(t>>2)+n]);return r}function dr(e,t,r,n,o,i,a){var s=cr(r,n);t=at(t),i=tr(o,i),et([],[e],(function(e){var n=(e=e[0]).name+"."+t;function o(){or("Cannot call "+n+" due to unbound types",s)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var c=e.registeredClass.constructor;return void 0===c[t]?(o.argCount=r-1,c[t]=o):(St(c,t,n),c[t].overloadTable[r-1]=o),et([],s,(function(e){var o=[e[0],null].concat(e.slice(1)),s=sr(n,o,null,i,a);return void 0===c[t].overloadTable?(s.argCount=r-1,c[t]=s):c[t].overloadTable[r-1]=s,[]})),[]}))}function lr(e,t,r,n,o,i){M(t>0);var a=cr(t,r);o=tr(n,o),et([],[e],(function(e){var r="constructor "+(e=e[0]).name;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new st("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class '"+e.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return e.registeredClass.constructor_body[t-1]=()=>{or("Cannot construct "+e.name+" due to unbound types",a)},et([],a,(function(n){return n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=sr(r,n,null,o,i),[]})),[]}))}function ur(e,t,r,n,o,i,a,s){var c=cr(r,n);t=at(t),i=tr(o,i),et([],[e],(function(e){var n=(e=e[0]).name+"."+t;function o(){or("Cannot call "+n+" due to unbound types",c)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var d=e.registeredClass.instancePrototype,l=d[t];return void 0===l||void 0===l.overloadTable&&l.className!==e.name&&l.argCount===r-2?(o.argCount=r-2,o.className=e.name,d[t]=o):(St(d,t,n),d[t].overloadTable[r-2]=o),et([],c,(function(o){var s=sr(n,o,e,i,a);return void 0===d[t].overloadTable?(s.argCount=r-2,d[t]=s):d[t].overloadTable[r-2]=s,[]})),[]}))}var pr=[],fr=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Er(e){e>4&&0==--fr[e].refcount&&(fr[e]=void 0,pr.push(e))}function gr(){for(var e=0,t=5;t<fr.length;++t)void 0!==fr[t]&&++e;return e}function _r(){for(var e=5;e<fr.length;++e)if(void 0!==fr[e])return fr[e];return null}function Or(){o.count_emval_handles=gr,o.get_first_emval=_r}var Tr={toValue:function(e){return e||ct("Cannot use deleted val. handle = "+e),fr[e].value},toHandle:function(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=pr.length?pr.pop():fr.length;return fr[t]={refcount:1,value:e},t}}};function mr(e,t){dt(e,{name:t=at(t),fromWireType:function(e){var t=Tr.toValue(e);return Er(e),t},toWireType:function(e,t){return Tr.toHandle(t)},argPackAdvance:8,readValueFromPointer:Be,destructorFunction:null})}function hr(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function yr(e,t){switch(t){case 2:return function(e){return this.fromWireType(L[e>>2])};case 3:return function(e){return this.fromWireType(B[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function Dr(e,t,r){var n=nt(r);dt(e,{name:t=at(t),fromWireType:function(e){return e},toWireType:function(e,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+hr(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:yr(t,n),destructorFunction:null})}function wr(e,t,r){switch(t){case 0:return r?function(e){return C[e]}:function(e){return N[e]};case 1:return r?function(e){return H[e>>1]}:function(e){return k[e>>1]};case 2:return r?function(e){return X[e>>2]}:function(e){return Q[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}function br(e,t,r,n,o){t=at(t),-1===o&&(o=4294967295);var i=nt(r),a=e=>e;if(0===n){var s=32-8*r;a=e=>e<<s>>>s}var c=t.includes("unsigned"),d=(e,r)=>{if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError('Cannot convert "'+hr(e)+'" to '+r);if(e<n||e>o)throw new TypeError('Passing a number "'+hr(e)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+n+", "+o+"]!")};dt(e,{name:t,fromWireType:a,toWireType:c?function(e,t){return d(t,this.name),t>>>0}:function(e,t){return d(t,this.name),t},argPackAdvance:8,readValueFromPointer:wr(t,i,0!==n),destructorFunction:null})}function vr(e,t,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function o(e){var t=Q,r=t[e>>=2],o=t[e+1];return new n(j,o,r)}dt(e,{name:r=at(r),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})}function Pr(e,t,r,n,o,i,a,s,c,d,l,u){r=at(r),i=tr(o,i),s=tr(a,s),d=tr(c,d),u=tr(l,u),et([e],[t],(function(e){return e=e[0],[new qt(r,e.registeredClass,!1,!1,!0,e,n,i,s,d,u)]}))}function Rr(e,t){var r="std::string"===(t=at(t));dt(e,{name:t,fromWireType:function(e){var t,n=Q[e>>2];if(r)for(var o=e+4,i=0;i<=n;++i){var a=e+4+i;if(i==n||0==N[a]){var s=A(o,a-o);void 0===t?t=s:(t+=String.fromCharCode(0),t+=s),o=a+1}}else{var c=new Array(n);for(i=0;i<n;++i)c[i]=String.fromCharCode(N[e+4+i]);t=c.join("")}return ss(e),t},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n="string"==typeof t;n||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||ct("Cannot pass non-string to std::string");var o=(r&&n?()=>U(t):()=>t.length)(),i=cs(4+o+1);if(Q[i>>2]=o,r&&n)I(t,i+4,o+1);else if(n)for(var a=0;a<o;++a){var s=t.charCodeAt(a);s>255&&(ss(i),ct("String has UTF-16 code units that do not fit in 8 bits")),N[i+4+a]=s}else for(a=0;a<o;++a)N[i+4+a]=t[a];return null!==e&&e.push(ss,i),i},argPackAdvance:8,readValueFromPointer:Be,destructorFunction:function(e){ss(e)}})}function Mr(e,t,r){var n,o,i,a,s;r=at(r),2===t?(n=G,o=V,a=$,i=()=>k,s=1):4===t&&(n=Y,o=z,a=q,i=()=>Q,s=2),dt(e,{name:r,fromWireType:function(e){for(var r,o=Q[e>>2],a=i(),c=e+4,d=0;d<=o;++d){var l=e+4+d*t;if(d==o||0==a[l>>s]){var u=n(c,l-c);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),c=l+t}}return ss(e),r},toWireType:function(e,n){"string"!=typeof n&&ct("Cannot pass non-string to C++ string type "+r);var i=a(n),c=cs(4+i+t);return Q[c>>2]=i>>s,o(n,c+4,i+t),null!==e&&e.push(ss,c),c},argPackAdvance:8,readValueFromPointer:Be,destructorFunction:function(e){ss(e)}})}function Sr(e,t,r,n,o,i){Qe[e]={name:at(t),rawConstructor:tr(r,n),rawDestructor:tr(o,i),fields:[]}}function Fr(e,t,r,n,o,i,a,s,c,d){Qe[e].fields.push({fieldName:at(t),getterReturnType:r,getter:tr(n,o),getterContext:i,setterArgumentType:a,setter:tr(s,c),setterContext:d})}function Ar(e,t){dt(e,{isVoid:!0,name:t=at(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,t){}})}function xr(e){delete wa.xhrs[e-1]}function Ir(){throw"longjmp"}function Ur(e,t){var r=Ge[e];return void 0===r&&ct(t+" has unknown type "+nr(e)),r}function jr(e,t,r){e=Tr.toValue(e),t=Ur(t,"emval::as");var n=[],o=Tr.toHandle(n);return X[r>>2]=o,t.toWireType(n,e)}function Cr(e,t){for(var r=new Array(e),n=0;n<e;++n)r[n]=Ur(X[(t>>2)+n],"parameter "+n);return r}function Nr(e,t,r,n){e=Tr.toValue(e);for(var o=Cr(t,r),i=new Array(t),a=0;a<t;++a){var s=o[a];i[a]=s.readValueFromPointer(n),n+=s.argPackAdvance}var c=e.apply(void 0,i);return Tr.toHandle(c)}function Hr(e){var t=[];return X[e>>2]=Tr.toHandle(t),t}var kr={};function Xr(e){var t=kr[e];return void 0===t?at(e):t}var Qr=[];function Lr(e,t,r,n,o){return(e=Qr[e])(t=Tr.toValue(t),r=Xr(r),Hr(n),o)}function Br(e,t,r,n){(e=Qr[e])(t=Tr.toValue(t),r=Xr(r),null,n)}function Wr(){return"object"==typeof globalThis?globalThis:Function("return this")()}function Gr(e){return 0===e?Tr.toHandle(Wr()):(e=Xr(e),Tr.toHandle(Wr()[e]))}function Vr(e){var t=Qr.length;return Qr.push(e),t}var $r,Yr=[];function zr(e,t){var r=Cr(e,t),n=r[0],o=n.name+"_$"+r.slice(1).map((function(e){return e.name})).join("_")+"$",i=Yr[o];if(void 0!==i)return i;for(var a=["retType"],s=[n],c="",d=0;d<e-1;++d)c+=(0!==d?", ":"")+"arg"+d,a.push("argType"+d),s.push(r[1+d]);var l="return function "+ze("methodCaller_"+o)+"(handle, name, destructors, args) {\n",u=0;for(d=0;d<e-1;++d)l+=" var arg"+d+" = argType"+d+".readValueFromPointer(args"+(u?"+"+u:"")+");\n",u+=r[d+1].argPackAdvance;for(l+=" var rv = handle[name]("+c+");\n",d=0;d<e-1;++d)r[d+1].deleteObject&&(l+=" argType"+d+".deleteObject(arg"+d+");\n");return n.isVoid||(l+=" return retType.toWireType(destructors, rv);\n"),l+="};\n",a.push(l),i=Vr(ar(Function,a).apply(null,s)),Yr[o]=i,i}function qr(e){return e=Xr(e),Tr.toHandle(o[e])}function Jr(e,t){return e=Tr.toValue(e),t=Tr.toValue(t),Tr.toHandle(e[t])}function Kr(e){e>4&&(fr[e].refcount+=1)}function Zr(){return Tr.toHandle([])}function en(e){return Tr.toHandle(Xr(e))}function tn(){return Tr.toHandle({})}function rn(e){Le(Tr.toValue(e)),Er(e)}function nn(e,t,r){e=Tr.toValue(e),t=Tr.toValue(t),r=Tr.toValue(r),e[t]=r}function on(e,t){var r=(e=Ur(e,"_emval_take_value")).readValueFromPointer(t);return Tr.toHandle(r)}function an(e){return e=Tr.toValue(e),Tr.toHandle(typeof e)}function sn(){we("native code called abort()")}$r=()=>performance.now();var cn=!0;function dn(e){return X[ds()>>2]=e,e}function ln(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e||!cn)return dn(28),-1;r=$r()}return X[t>>2]=r/1e3|0,X[t+4>>2]=r%1e3*1e3*1e3|0,0}function un(e){cancelAnimationFrame(e)}function pn(e){var t=e.getExtension("ANGLE_instanced_arrays");if(t)return e.vertexAttribDivisor=function(e,r){t.vertexAttribDivisorANGLE(e,r)},e.drawArraysInstanced=function(e,r,n,o){t.drawArraysInstancedANGLE(e,r,n,o)},e.drawElementsInstanced=function(e,r,n,o,i){t.drawElementsInstancedANGLE(e,r,n,o,i)},1}function fn(e){var t=e.getExtension("OES_vertex_array_object");if(t)return e.createVertexArray=function(){return t.createVertexArrayOES()},e.deleteVertexArray=function(e){t.deleteVertexArrayOES(e)},e.bindVertexArray=function(e){t.bindVertexArrayOES(e)},e.isVertexArray=function(e){return t.isVertexArrayOES(e)},1}function En(e){var t=e.getExtension("WEBGL_draw_buffers");if(t)return e.drawBuffers=function(e,r){t.drawBuffersWEBGL(e,r)},1}function gn(e){return!!(e.dibvbi=e.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"))}function _n(e){return!!(e.mdibvbi=e.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"))}function On(e){return!!(e.multiDrawWebgl=e.getExtension("WEBGL_multi_draw"))}var Tn={counter:1,buffers:[],programs:[],framebuffers:[],renderbuffers:[],textures:[],shaders:[],vaos:[],contexts:[],offscreenCanvases:{},queries:[],samplers:[],transformFeedbacks:[],syncs:[],stringCache:{},stringiCache:{},unpackAlignment:4,recordError:function(e){Tn.lastError||(Tn.lastError=e)},getNewId:function(e){for(var t=Tn.counter++,r=e.length;r<t;r++)e[r]=null;return t},getSource:function(e,t,r,n){for(var o="",i=0;i<t;++i){var a=n?X[n+4*i>>2]:-1;o+=A(X[r+4*i>>2],a<0?void 0:a)}return o},createContext:function(e,t){e.getContextSafariWebGL2Fixed||(e.getContextSafariWebGL2Fixed=e.getContext,e.getContext=function(t,r){var n=e.getContextSafariWebGL2Fixed(t,r);return"webgl"==t==n instanceof WebGLRenderingContext?n:null});var r=t.majorVersion>1?e.getContext("webgl2",t):e.getContext("webgl",t);return r?Tn.registerContext(r,t):0},registerContext:function(e,t){var r=Tn.getNewId(Tn.contexts),n={handle:r,attributes:t,version:t.majorVersion,GLctx:e};return e.canvas&&(e.canvas.GLctxObject=n),Tn.contexts[r]=n,(void 0===t.enableExtensionsByDefault||t.enableExtensionsByDefault)&&Tn.initExtensions(n),r},makeContextCurrent:function(e){return Tn.currentContext=Tn.contexts[e],o.ctx=za=Tn.currentContext&&Tn.currentContext.GLctx,!(e&&!za)},getContext:function(e){return Tn.contexts[e]},deleteContext:function(e){Tn.currentContext===Tn.contexts[e]&&(Tn.currentContext=null),"object"==typeof JSEvents&&JSEvents.removeAllHandlersOnTarget(Tn.contexts[e].GLctx.canvas),Tn.contexts[e]&&Tn.contexts[e].GLctx.canvas&&(Tn.contexts[e].GLctx.canvas.GLctxObject=void 0),Tn.contexts[e]=null},initExtensions:function(e){if(e||(e=Tn.currentContext),!e.initExtensionsDone){e.initExtensionsDone=!0;var t=e.GLctx;pn(t),fn(t),En(t),gn(t),_n(t),e.version>=2&&(t.disjointTimerQueryExt=t.getExtension("EXT_disjoint_timer_query_webgl2")),(e.version<2||!t.disjointTimerQueryExt)&&(t.disjointTimerQueryExt=t.getExtension("EXT_disjoint_timer_query")),On(t),(t.getSupportedExtensions()||[]).forEach((function(e){e.includes("lose_context")||e.includes("debug")||t.getExtension(e)}))}}};function mn(e){za.activeTexture(e)}function hn(e,t){za.attachShader(Tn.programs[e],Tn.shaders[t])}function yn(e,t,r){za.bindAttribLocation(Tn.programs[e],t,A(r))}function Dn(e,t){35051==e?za.currentPixelPackBufferBinding=t:35052==e&&(za.currentPixelUnpackBufferBinding=t),za.bindBuffer(e,Tn.buffers[t])}function wn(e,t){za.bindFramebuffer(e,Tn.framebuffers[t])}function bn(e,t){za.bindRenderbuffer(e,Tn.renderbuffers[t])}function vn(e,t){za.bindSampler(e,Tn.samplers[t])}function Pn(e,t){za.bindTexture(e,Tn.textures[t])}function Rn(e){za.bindVertexArray(Tn.vaos[e])}function Mn(e){za.bindVertexArray(Tn.vaos[e])}function Sn(e,t,r,n){za.blendColor(e,t,r,n)}function Fn(e){za.blendEquation(e)}function An(e,t){za.blendFunc(e,t)}function xn(e,t,r,n,o,i,a,s,c,d){za.blitFramebuffer(e,t,r,n,o,i,a,s,c,d)}function In(e,t,r,n){Tn.currentContext.version>=2?r?za.bufferData(e,N,n,r,t):za.bufferData(e,t,n):za.bufferData(e,r?N.subarray(r,r+t):t,n)}function Un(e,t,r,n){Tn.currentContext.version>=2?za.bufferSubData(e,t,N,n,r):za.bufferSubData(e,t,N.subarray(n,n+r))}function jn(e){return za.checkFramebufferStatus(e)}function Cn(e){za.clear(e)}function Nn(e,t,r,n){za.clearColor(e,t,r,n)}function Hn(e){za.clearStencil(e)}function kn(e,t){return M(t===(0|t)),(e>>>0)+4294967296*t}function Xn(e,t,r,n){return za.clientWaitSync(Tn.syncs[e],t,kn(r,n))}function Qn(e,t,r,n){za.colorMask(!!e,!!t,!!r,!!n)}function Ln(e){za.compileShader(Tn.shaders[e])}function Bn(e,t,r,n,o,i,a,s){Tn.currentContext.version>=2?za.currentPixelUnpackBufferBinding?za.compressedTexImage2D(e,t,r,n,o,i,a,s):za.compressedTexImage2D(e,t,r,n,o,i,N,s,a):za.compressedTexImage2D(e,t,r,n,o,i,s?N.subarray(s,s+a):null)}function Wn(e,t,r,n,o,i,a,s,c){Tn.currentContext.version>=2?za.currentPixelUnpackBufferBinding?za.compressedTexSubImage2D(e,t,r,n,o,i,a,s,c):za.compressedTexSubImage2D(e,t,r,n,o,i,a,N,c,s):za.compressedTexSubImage2D(e,t,r,n,o,i,a,c?N.subarray(c,c+s):null)}function Gn(e,t,r,n,o,i,a,s){za.copyTexSubImage2D(e,t,r,n,o,i,a,s)}function Vn(){var e=Tn.getNewId(Tn.programs),t=za.createProgram();return t.name=e,t.maxUniformLength=t.maxAttributeLength=t.maxUniformBlockNameLength=0,t.uniformIdCounter=1,Tn.programs[e]=t,e}function $n(e){var t=Tn.getNewId(Tn.shaders);return Tn.shaders[t]=za.createShader(e),t}function Yn(e){za.cullFace(e)}function zn(e,t){for(var r=0;r<e;r++){var n=X[t+4*r>>2],o=Tn.buffers[n];o&&(za.deleteBuffer(o),o.name=0,Tn.buffers[n]=null,n==za.currentPixelPackBufferBinding&&(za.currentPixelPackBufferBinding=0),n==za.currentPixelUnpackBufferBinding&&(za.currentPixelUnpackBufferBinding=0))}}function qn(e,t){for(var r=0;r<e;++r){var n=X[t+4*r>>2],o=Tn.framebuffers[n];o&&(za.deleteFramebuffer(o),o.name=0,Tn.framebuffers[n]=null)}}function Jn(e){if(e){var t=Tn.programs[e];t?(za.deleteProgram(t),t.name=0,Tn.programs[e]=null):Tn.recordError(1281)}}function Kn(e,t){for(var r=0;r<e;r++){var n=X[t+4*r>>2],o=Tn.renderbuffers[n];o&&(za.deleteRenderbuffer(o),o.name=0,Tn.renderbuffers[n]=null)}}function Zn(e,t){for(var r=0;r<e;r++){var n=X[t+4*r>>2],o=Tn.samplers[n];o&&(za.deleteSampler(o),o.name=0,Tn.samplers[n]=null)}}function eo(e){if(e){var t=Tn.shaders[e];t?(za.deleteShader(t),Tn.shaders[e]=null):Tn.recordError(1281)}}function to(e){if(e){var t=Tn.syncs[e];t?(za.deleteSync(t),t.name=0,Tn.syncs[e]=null):Tn.recordError(1281)}}function ro(e,t){for(var r=0;r<e;r++){var n=X[t+4*r>>2],o=Tn.textures[n];o&&(za.deleteTexture(o),o.name=0,Tn.textures[n]=null)}}function no(e,t){for(var r=0;r<e;r++){var n=X[t+4*r>>2];za.deleteVertexArray(Tn.vaos[n]),Tn.vaos[n]=null}}function oo(e,t){for(var r=0;r<e;r++){var n=X[t+4*r>>2];za.deleteVertexArray(Tn.vaos[n]),Tn.vaos[n]=null}}function io(e){za.depthMask(!!e)}function ao(e){za.disable(e)}function so(e){za.disableVertexAttribArray(e)}function co(e,t,r){za.drawArrays(e,t,r)}function lo(e,t,r,n){za.drawArraysInstanced(e,t,r,n)}function uo(e,t,r,n,o){za.dibvbi.drawArraysInstancedBaseInstanceWEBGL(e,t,r,n,o)}var po=[];function fo(e,t){for(var r=po[e],n=0;n<e;n++)r[n]=X[t+4*n>>2];za.drawBuffers(r)}function Eo(e,t,r,n){za.drawElements(e,t,r,n)}function go(e,t,r,n,o){za.drawElementsInstanced(e,t,r,n,o)}function _o(e,t,r,n,o,i,a){za.dibvbi.drawElementsInstancedBaseVertexBaseInstanceWEBGL(e,t,r,n,o,i,a)}function Oo(e,t,r,n){za.drawElements(e,t,r,n)}function To(e,t,r,n,o,i){Oo(e,n,o,i)}function mo(e){za.enable(e)}function ho(e){za.enableVertexAttribArray(e)}function yo(e,t){var r=za.fenceSync(e,t);if(r){var n=Tn.getNewId(Tn.syncs);return r.name=n,Tn.syncs[n]=r,n}return 0}function Do(){za.finish()}function wo(){za.flush()}function bo(e,t,r,n){za.framebufferRenderbuffer(e,t,r,Tn.renderbuffers[n])}function vo(e,t,r,n,o){za.framebufferTexture2D(e,t,r,Tn.textures[n],o)}function Po(e){za.frontFace(e)}function Ro(e,t,r,n){for(var o=0;o<e;o++){var i=za[r](),a=i&&Tn.getNewId(n);i?(i.name=a,n[a]=i):Tn.recordError(1282),X[t+4*o>>2]=a}}function Mo(e,t){Ro(e,t,"createBuffer",Tn.buffers)}function So(e,t){Ro(e,t,"createFramebuffer",Tn.framebuffers)}function Fo(e,t){Ro(e,t,"createRenderbuffer",Tn.renderbuffers)}function Ao(e,t){Ro(e,t,"createSampler",Tn.samplers)}function xo(e,t){Ro(e,t,"createTexture",Tn.textures)}function Io(e,t){Ro(e,t,"createVertexArray",Tn.vaos)}function Uo(e,t){Ro(e,t,"createVertexArray",Tn.vaos)}function jo(e){za.generateMipmap(e)}function Co(e,t,r){r?X[r>>2]=za.getBufferParameter(e,t):Tn.recordError(1281)}function No(){var e=za.getError()||Tn.lastError;return Tn.lastError=0,e}function Ho(e){return Q[e>>2]+4294967296*X[e+4>>2]}function ko(e){return Q[e>>2]+4294967296*Q[e+4>>2]}function Xo(e,t){Q[e>>2]=t,Q[e+4>>2]=(t-Q[e>>2])/4294967296;var r=t>=0?ko(e):Ho(e);r!=t&&h("writeI53ToI64() out of range: serialized JS Number "+t+" to Wasm heap as bytes lo=0x"+Q[e>>2].toString(16)+", hi=0x"+Q[e+4>>2].toString(16)+", which deserializes back to "+r+" instead!")}function Qo(e,t,r){if(t){var n=void 0;switch(e){case 36346:n=1;break;case 36344:return void(0!=r&&1!=r&&Tn.recordError(1280));case 34814:case 36345:n=0;break;case 34466:var o=za.getParameter(34467);n=o?o.length:0;break;case 33309:if(Tn.currentContext.version<2)return void Tn.recordError(1282);n=2*(za.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(Tn.currentContext.version<2)return void Tn.recordError(1280);n=33307==e?3:0}if(void 0===n){var i=za.getParameter(e);switch(typeof i){case"number":n=i;break;case"boolean":n=i?1:0;break;case"string":return void Tn.recordError(1280);case"object":if(null===i)switch(e){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:n=0;break;default:return void Tn.recordError(1280)}else{if(i instanceof Float32Array||i instanceof Uint32Array||i instanceof Int32Array||i instanceof Array){for(var a=0;a<i.length;++a)switch(r){case 0:X[t+4*a>>2]=i[a];break;case 2:L[t+4*a>>2]=i[a];break;case 4:C[t+a>>0]=i[a]?1:0}return}try{n=0|i.name}catch(t){return Tn.recordError(1280),void m("GL_INVALID_ENUM in glGet"+r+"v: Unknown object returned from WebGL getParameter("+e+")! (error: "+t+")")}}break;default:return Tn.recordError(1280),void m("GL_INVALID_ENUM in glGet"+r+"v: Native code calling glGet"+r+"v("+e+") and it returns "+i+" of type "+typeof i+"!")}}switch(r){case 1:Xo(t,n);break;case 0:X[t>>2]=n;break;case 2:L[t>>2]=n;break;case 4:C[t>>0]=n?1:0}}else Tn.recordError(1281)}function Lo(e,t){Qo(e,t,2)}function Bo(e,t,r,n){var o=za.getFramebufferAttachmentParameter(e,t,r);(o instanceof WebGLRenderbuffer||o instanceof WebGLTexture)&&(o=0|o.name),X[n>>2]=o}function Wo(e,t){Qo(e,t,0)}function Go(e,t,r,n){var o=za.getProgramInfoLog(Tn.programs[e]);null===o&&(o="(unknown error)");var i=t>0&&n?I(o,n,t):0;r&&(X[r>>2]=i)}function Vo(e,t,r){if(r)if(e>=Tn.counter)Tn.recordError(1281);else if(e=Tn.programs[e],35716==t){var n=za.getProgramInfoLog(e);null===n&&(n="(unknown error)"),X[r>>2]=n.length+1}else if(35719==t){if(!e.maxUniformLength)for(var o=0;o<za.getProgramParameter(e,35718);++o)e.maxUniformLength=Math.max(e.maxUniformLength,za.getActiveUniform(e,o).name.length+1);X[r>>2]=e.maxUniformLength}else if(35722==t){if(!e.maxAttributeLength)for(o=0;o<za.getProgramParameter(e,35721);++o)e.maxAttributeLength=Math.max(e.maxAttributeLength,za.getActiveAttrib(e,o).name.length+1);X[r>>2]=e.maxAttributeLength}else if(35381==t){if(!e.maxUniformBlockNameLength)for(o=0;o<za.getProgramParameter(e,35382);++o)e.maxUniformBlockNameLength=Math.max(e.maxUniformBlockNameLength,za.getActiveUniformBlockName(e,o).length+1);X[r>>2]=e.maxUniformBlockNameLength}else X[r>>2]=za.getProgramParameter(e,t);else Tn.recordError(1281)}function $o(e,t,r){r?X[r>>2]=za.getRenderbufferParameter(e,t):Tn.recordError(1281)}function Yo(e,t,r,n){var o=za.getShaderInfoLog(Tn.shaders[e]);null===o&&(o="(unknown error)");var i=t>0&&n?I(o,n,t):0;r&&(X[r>>2]=i)}function zo(e,t,r,n){var o=za.getShaderPrecisionFormat(e,t);X[r>>2]=o.rangeMin,X[r+4>>2]=o.rangeMax,X[n>>2]=o.precision}function qo(e,t,r){if(r)if(35716==t){var n=za.getShaderInfoLog(Tn.shaders[e]);null===n&&(n="(unknown error)");var o=n?n.length+1:0;X[r>>2]=o}else if(35720==t){var i=za.getShaderSource(Tn.shaders[e]),a=i?i.length+1:0;X[r>>2]=a}else X[r>>2]=za.getShaderParameter(Tn.shaders[e],t);else Tn.recordError(1281)}function Jo(e){var t=U(e)+1,r=cs(t);return I(e,r,t),r}function Ko(e){var t=Tn.stringCache[e];if(!t){switch(e){case 7939:var r=za.getSupportedExtensions()||[];t=Jo((r=r.concat(r.map((function(e){return"GL_"+e})))).join(" "));break;case 7936:case 7937:case 37445:case 37446:var n=za.getParameter(e);n||Tn.recordError(1280),t=n&&Jo(n);break;case 7938:var o=za.getParameter(7938);t=Jo(o=Tn.currentContext.version>=2?"OpenGL ES 3.0 ("+o+")":"OpenGL ES 2.0 ("+o+")");break;case 35724:var i=za.getParameter(35724),a=i.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==a&&(3==a[1].length&&(a[1]=a[1]+"0"),i="OpenGL ES GLSL ES "+a[1]+" ("+i+")"),t=Jo(i);break;default:Tn.recordError(1280)}Tn.stringCache[e]=t}return t}function Zo(e,t){if(Tn.currentContext.version<2)return Tn.recordError(1282),0;var r=Tn.stringiCache[e];if(r)return t<0||t>=r.length?(Tn.recordError(1281),0):r[t];switch(e){case 7939:var n=za.getSupportedExtensions()||[];return n=(n=n.concat(n.map((function(e){return"GL_"+e})))).map((function(e){return Jo(e)})),r=Tn.stringiCache[e]=n,t<0||t>=r.length?(Tn.recordError(1281),0):r[t];default:return Tn.recordError(1280),0}}function ei(e){return parseInt(e)}function ti(e){return"]"==e.slice(-1)&&e.lastIndexOf("[")}function ri(e){var t,r,n=e.uniformLocsById,o=e.uniformSizeAndIdsByName;if(!n)for(e.uniformLocsById=n={},e.uniformArrayNamesById={},t=0;t<za.getProgramParameter(e,35718);++t){var i=za.getActiveUniform(e,t),a=i.name,s=i.size,c=ti(a),d=c>0?a.slice(0,c):a,l=e.uniformIdCounter;for(e.uniformIdCounter+=s,o[d]=[s,l],r=0;r<s;++r)n[l]=r,e.uniformArrayNamesById[l++]=d}}function ni(e,t){if(t=A(t),e=Tn.programs[e]){ri(e);var r=e.uniformLocsById,n=0,o=t,i=ti(t);i>0&&(n=ei(t.slice(i+1))>>>0,o=t.slice(0,i));var a=e.uniformSizeAndIdsByName[o];if(a&&n<a[0]&&(r[n+=a[1]]=r[n]||za.getUniformLocation(e,t)))return n}else Tn.recordError(1281);return-1}function oi(e,t,r){for(var n=po[t],o=0;o<t;o++)n[o]=X[r+4*o>>2];za.invalidateFramebuffer(e,n)}function ii(e,t,r,n,o,i,a){for(var s=po[t],c=0;c<t;c++)s[c]=X[r+4*c>>2];za.invalidateSubFramebuffer(e,s,n,o,i,a)}function ai(e){return za.isSync(Tn.syncs[e])}function si(e){var t=Tn.textures[e];return t?za.isTexture(t):0}function ci(e){za.lineWidth(e)}function di(e){e=Tn.programs[e],za.linkProgram(e),e.uniformLocsById=0,e.uniformSizeAndIdsByName={}}function li(e,t,r,n,o,i){za.mdibvbi.multiDrawArraysInstancedBaseInstanceWEBGL(e,X,t>>2,X,r>>2,X,n>>2,Q,o>>2,i)}function ui(e,t,r,n,o,i,a,s){za.mdibvbi.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(e,X,t>>2,r,X,n>>2,X,o>>2,X,i>>2,Q,a>>2,s)}function pi(e,t){3317==e&&(Tn.unpackAlignment=t),za.pixelStorei(e,t)}function fi(e){za.readBuffer(e)}function Ei(e,t,r,n){var o;return t*(e*r+(o=n)-1&-o)}function gi(e){return{5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[e-6402]||1}function _i(e){return 0==(e-=5120)?C:1==e?N:2==e?H:4==e?X:6==e?L:5==e||28922==e||28520==e||30779==e||30782==e?Q:k}function Oi(e){return 31-Math.clz32(e.BYTES_PER_ELEMENT)}function Ti(e,t,r,n,o,i){var a=_i(e),s=Oi(a),c=1<<s,d=Ei(r,n,gi(t)*c,Tn.unpackAlignment);return a.subarray(o>>s,o+d>>s)}function mi(e,t,r,n,o,i,a){if(Tn.currentContext.version>=2)if(za.currentPixelPackBufferBinding)za.readPixels(e,t,r,n,o,i,a);else{var s=_i(i);za.readPixels(e,t,r,n,o,i,s,a>>Oi(s))}else{var c=Ti(i,o,r,n,a);c?za.readPixels(e,t,r,n,o,i,c):Tn.recordError(1280)}}function hi(e,t,r,n){za.renderbufferStorage(e,t,r,n)}function yi(e,t,r,n,o){za.renderbufferStorageMultisample(e,t,r,n,o)}function Di(e,t,r){za.samplerParameterf(Tn.samplers[e],t,r)}function wi(e,t,r){za.samplerParameteri(Tn.samplers[e],t,r)}function bi(e,t,r){var n=X[r>>2];za.samplerParameteri(Tn.samplers[e],t,n)}function vi(e,t,r,n){za.scissor(e,t,r,n)}function Pi(e,t,r,n){var o=Tn.getSource(e,t,r,n);za.shaderSource(Tn.shaders[e],o)}function Ri(e,t,r){za.stencilFunc(e,t,r)}function Mi(e,t,r,n){za.stencilFuncSeparate(e,t,r,n)}function Si(e){za.stencilMask(e)}function Fi(e,t){za.stencilMaskSeparate(e,t)}function Ai(e,t,r){za.stencilOp(e,t,r)}function xi(e,t,r,n){za.stencilOpSeparate(e,t,r,n)}function Ii(e,t,r,n,o,i,a,s,c){if(Tn.currentContext.version>=2)if(za.currentPixelUnpackBufferBinding)za.texImage2D(e,t,r,n,o,i,a,s,c);else if(c){var d=_i(s);za.texImage2D(e,t,r,n,o,i,a,s,d,c>>Oi(d))}else za.texImage2D(e,t,r,n,o,i,a,s,null);else za.texImage2D(e,t,r,n,o,i,a,s,c?Ti(s,a,n,o,c):null)}function Ui(e,t,r){za.texParameterf(e,t,r)}function ji(e,t,r){var n=L[r>>2];za.texParameterf(e,t,n)}function Ci(e,t,r){za.texParameteri(e,t,r)}function Ni(e,t,r){var n=X[r>>2];za.texParameteri(e,t,n)}function Hi(e,t,r,n,o){za.texStorage2D(e,t,r,n,o)}function ki(e,t,r,n,o,i,a,s,c){if(Tn.currentContext.version>=2)if(za.currentPixelUnpackBufferBinding)za.texSubImage2D(e,t,r,n,o,i,a,s,c);else if(c){var d=_i(s);za.texSubImage2D(e,t,r,n,o,i,a,s,d,c>>Oi(d))}else za.texSubImage2D(e,t,r,n,o,i,a,s,null);else{var l=null;c&&(l=Ti(s,a,o,i,c)),za.texSubImage2D(e,t,r,n,o,i,a,s,l)}}function Xi(e){var t=za.currentProgram;if(t){var r=t.uniformLocsById[e];return"number"==typeof r&&(t.uniformLocsById[e]=r=za.getUniformLocation(t,t.uniformArrayNamesById[e]+(r>0?"["+r+"]":""))),r}Tn.recordError(1282)}function Qi(e,t){za.uniform1f(Xi(e),t)}var Li=[];function Bi(e,t,r){if(Tn.currentContext.version>=2)za.uniform1fv(Xi(e),L,r>>2,t);else{if(t<=288)for(var n=Li[t-1],o=0;o<t;++o)n[o]=L[r+4*o>>2];else n=L.subarray(r>>2,r+4*t>>2);za.uniform1fv(Xi(e),n)}}function Wi(e,t){za.uniform1i(Xi(e),t)}var Gi=[];function Vi(e,t,r){if(Tn.currentContext.version>=2)za.uniform1iv(Xi(e),X,r>>2,t);else{if(t<=288)for(var n=Gi[t-1],o=0;o<t;++o)n[o]=X[r+4*o>>2];else n=X.subarray(r>>2,r+4*t>>2);za.uniform1iv(Xi(e),n)}}function $i(e,t,r){za.uniform2f(Xi(e),t,r)}function Yi(e,t,r){if(Tn.currentContext.version>=2)za.uniform2fv(Xi(e),L,r>>2,2*t);else{if(t<=144)for(var n=Li[2*t-1],o=0;o<2*t;o+=2)n[o]=L[r+4*o>>2],n[o+1]=L[r+(4*o+4)>>2];else n=L.subarray(r>>2,r+8*t>>2);za.uniform2fv(Xi(e),n)}}function zi(e,t,r){za.uniform2i(Xi(e),t,r)}function qi(e,t,r){if(Tn.currentContext.version>=2)za.uniform2iv(Xi(e),X,r>>2,2*t);else{if(t<=144)for(var n=Gi[2*t-1],o=0;o<2*t;o+=2)n[o]=X[r+4*o>>2],n[o+1]=X[r+(4*o+4)>>2];else n=X.subarray(r>>2,r+8*t>>2);za.uniform2iv(Xi(e),n)}}function Ji(e,t,r,n){za.uniform3f(Xi(e),t,r,n)}function Ki(e,t,r){if(Tn.currentContext.version>=2)za.uniform3fv(Xi(e),L,r>>2,3*t);else{if(t<=96)for(var n=Li[3*t-1],o=0;o<3*t;o+=3)n[o]=L[r+4*o>>2],n[o+1]=L[r+(4*o+4)>>2],n[o+2]=L[r+(4*o+8)>>2];else n=L.subarray(r>>2,r+12*t>>2);za.uniform3fv(Xi(e),n)}}function Zi(e,t,r,n){za.uniform3i(Xi(e),t,r,n)}function ea(e,t,r){if(Tn.currentContext.version>=2)za.uniform3iv(Xi(e),X,r>>2,3*t);else{if(t<=96)for(var n=Gi[3*t-1],o=0;o<3*t;o+=3)n[o]=X[r+4*o>>2],n[o+1]=X[r+(4*o+4)>>2],n[o+2]=X[r+(4*o+8)>>2];else n=X.subarray(r>>2,r+12*t>>2);za.uniform3iv(Xi(e),n)}}function ta(e,t,r,n,o){za.uniform4f(Xi(e),t,r,n,o)}function ra(e,t,r){if(Tn.currentContext.version>=2)za.uniform4fv(Xi(e),L,r>>2,4*t);else{if(t<=72){var n=Li[4*t-1],o=L;r>>=2;for(var i=0;i<4*t;i+=4){var a=r+i;n[i]=o[a],n[i+1]=o[a+1],n[i+2]=o[a+2],n[i+3]=o[a+3]}}else n=L.subarray(r>>2,r+16*t>>2);za.uniform4fv(Xi(e),n)}}function na(e,t,r,n,o){za.uniform4i(Xi(e),t,r,n,o)}function oa(e,t,r){if(Tn.currentContext.version>=2)za.uniform4iv(Xi(e),X,r>>2,4*t);else{if(t<=72)for(var n=Gi[4*t-1],o=0;o<4*t;o+=4)n[o]=X[r+4*o>>2],n[o+1]=X[r+(4*o+4)>>2],n[o+2]=X[r+(4*o+8)>>2],n[o+3]=X[r+(4*o+12)>>2];else n=X.subarray(r>>2,r+16*t>>2);za.uniform4iv(Xi(e),n)}}function ia(e,t,r,n){if(Tn.currentContext.version>=2)za.uniformMatrix2fv(Xi(e),!!r,L,n>>2,4*t);else{if(t<=72)for(var o=Li[4*t-1],i=0;i<4*t;i+=4)o[i]=L[n+4*i>>2],o[i+1]=L[n+(4*i+4)>>2],o[i+2]=L[n+(4*i+8)>>2],o[i+3]=L[n+(4*i+12)>>2];else o=L.subarray(n>>2,n+16*t>>2);za.uniformMatrix2fv(Xi(e),!!r,o)}}function aa(e,t,r,n){if(Tn.currentContext.version>=2)za.uniformMatrix3fv(Xi(e),!!r,L,n>>2,9*t);else{if(t<=32)for(var o=Li[9*t-1],i=0;i<9*t;i+=9)o[i]=L[n+4*i>>2],o[i+1]=L[n+(4*i+4)>>2],o[i+2]=L[n+(4*i+8)>>2],o[i+3]=L[n+(4*i+12)>>2],o[i+4]=L[n+(4*i+16)>>2],o[i+5]=L[n+(4*i+20)>>2],o[i+6]=L[n+(4*i+24)>>2],o[i+7]=L[n+(4*i+28)>>2],o[i+8]=L[n+(4*i+32)>>2];else o=L.subarray(n>>2,n+36*t>>2);za.uniformMatrix3fv(Xi(e),!!r,o)}}function sa(e,t,r,n){if(Tn.currentContext.version>=2)za.uniformMatrix4fv(Xi(e),!!r,L,n>>2,16*t);else{if(t<=18){var o=Li[16*t-1],i=L;n>>=2;for(var a=0;a<16*t;a+=16){var s=n+a;o[a]=i[s],o[a+1]=i[s+1],o[a+2]=i[s+2],o[a+3]=i[s+3],o[a+4]=i[s+4],o[a+5]=i[s+5],o[a+6]=i[s+6],o[a+7]=i[s+7],o[a+8]=i[s+8],o[a+9]=i[s+9],o[a+10]=i[s+10],o[a+11]=i[s+11],o[a+12]=i[s+12],o[a+13]=i[s+13],o[a+14]=i[s+14],o[a+15]=i[s+15]}}else o=L.subarray(n>>2,n+64*t>>2);za.uniformMatrix4fv(Xi(e),!!r,o)}}function ca(e){e=Tn.programs[e],za.useProgram(e),za.currentProgram=e}function da(e,t){za.vertexAttrib1f(e,t)}function la(e,t){za.vertexAttrib2f(e,L[t>>2],L[t+4>>2])}function ua(e,t){za.vertexAttrib3f(e,L[t>>2],L[t+4>>2],L[t+8>>2])}function pa(e,t){za.vertexAttrib4f(e,L[t>>2],L[t+4>>2],L[t+8>>2],L[t+12>>2])}function fa(e,t){za.vertexAttribDivisor(e,t)}function Ea(e,t,r,n,o){za.vertexAttribIPointer(e,t,r,n,o)}function ga(e,t,r,n,o,i){za.vertexAttribPointer(e,t,r,!!n,o,i)}function _a(e,t,r,n){za.viewport(e,t,r,n)}function Oa(e,t,r,n){za.waitSync(Tn.syncs[e],t,kn(r,n))}function Ta(){return!u}function ma(e,t,r){N.copyWithin(e,t,t+r)}function ha(e,t){return requestAnimationFrame((function(r){je(e)(r,t)}))}function ya(e){try{return D.grow(e-j.byteLength+65535>>>16),ee(D.buffer),1}catch(t){m("emscripten_realloc_buffer: Attempted to grow heap from "+j.byteLength+" bytes to "+e+" bytes, but got error: "+t)}}function Da(e){var t=N.length;M((e>>>=0)>t);var r=2147483648;if(e>r)return m("Cannot enlarge memory, asked to go up to "+e+" bytes, but the limit is 2147483648 bytes!"),!1;for(var n=1;n<=4;n*=2){var o=t*(1+.2/n);o=Math.min(o,e+100663296);var i=Math.min(r,Z(Math.max(e,o),65536));if(ya(i))return!0}return m("Failed to grow the heap from "+t+" bytes to "+i+" bytes, not enough memory!"),!1}var wa={xhrs:[],setu64:function(e,t){Q[e>>2]=t,Q[e+4>>2]=t/4294967296|0},openDatabase:function(e,t,r,n){try{var o=indexedDB.open(e,t)}catch(e){return n(e)}o.onupgradeneeded=e=>{var t=e.target.result;t.objectStoreNames.contains("FILES")&&t.deleteObjectStore("FILES"),t.createObjectStore("FILES")},o.onsuccess=e=>r(e.target.result),o.onerror=e=>n(e)},staticInit:function(){wa.openDatabase("emscripten_filesystem",1,(e=>{wa.dbInstance=e,De("library_fetch_init")}),(()=>{wa.dbInstance=!1,De("library_fetch_init")})),"undefined"!=typeof ENVIRONMENT_IS_FETCH_WORKER&&ENVIRONMENT_IS_FETCH_WORKER||ye("library_fetch_init")}};function ba(e,t,r,n,o){var i=Q[e+8>>2];if(i){var a=A(i),s=e+112,c=A(s);c||(c="GET"),Q[e+4>>2];var d=Q[s+52>>2],l=Q[s+56>>2],u=!!Q[s+60>>2],p=(Q[s+64>>2],Q[s+68>>2]),f=Q[s+72>>2],E=Q[s+76>>2],g=Q[s+80>>2],_=Q[s+84>>2],O=Q[s+88>>2],T=!!(1&d),m=!!(2&d),h=!!(64&d),y=p?A(p):void 0,D=f?A(f):void 0,w=g?A(g):void 0,b=new XMLHttpRequest;if(b.withCredentials=u,b.open(c,a,!h,y,D),h||(b.timeout=l),b.url_=a,M(!m,"streaming uses moz-chunked-arraybuffer which is no longer supported; TODO: rewrite using fetch()"),b.responseType="arraybuffer",g&&b.overrideMimeType(w),E)for(;;){var v=Q[E>>2];if(!v)break;var P=Q[E+4>>2];if(!P)break;E+=8;var R=A(v),S=A(P);b.setRequestHeader(R,S)}wa.xhrs.push(b);var F=wa.xhrs.length;Q[e+0>>2]=F;var x=_&&O?N.slice(_,_+O):null;b.onload=n=>{U(T&&!m);var o=b.response?b.response.byteLength:0;wa.setu64(e+24,0),o&&wa.setu64(e+32,o),k[e+40>>1]=b.readyState,k[e+42>>1]=b.status,b.statusText&&I(b.statusText,e+44,64),b.status>=200&&b.status<300?t&&t(e,b,n):r&&r(e,b,n)},b.onerror=t=>{U(T);var n=b.status;wa.setu64(e+24,0),wa.setu64(e+32,b.response?b.response.byteLength:0),k[e+40>>1]=b.readyState,k[e+42>>1]=n,r&&r(e,b,t)},b.ontimeout=t=>{r&&r(e,b,t)},b.onprogress=t=>{var r=T&&m&&b.response?b.response.byteLength:0,o=0;T&&m&&(M(n,"When doing a streaming fetch, you should have an onprogress handler registered to receive the chunks!"),o=cs(r),N.set(new Uint8Array(b.response),o)),Q[e+12>>2]=o,wa.setu64(e+16,r),wa.setu64(e+24,t.loaded-r),wa.setu64(e+32,t.total),k[e+40>>1]=b.readyState,b.readyState>=3&&0===b.status&&t.loaded>0&&(b.status=200),k[e+42>>1]=b.status,b.statusText&&I(b.statusText,e+44,64),n&&n(e,b,t),o&&ss(o)},b.onreadystatechange=t=>{k[e+40>>1]=b.readyState,b.readyState>=2&&(k[e+42>>1]=b.status),o&&o(e,b,t)};try{b.send(x)}catch(t){r&&r(e,b,t)}}else r(e,0,"no url specified!");function U(t){var r=0,n=0;t&&(n=b.response?b.response.byteLength:0,r=cs(n),N.set(new Uint8Array(b.response),r)),Q[e+12>>2]=r,wa.setu64(e+16,n)}}function va(e,t){if(le||R)m("user callback triggered after runtime exited or application aborted. Ignoring.");else if(t)e();else try{e()}catch(e){Ce(e)}}function Pa(e,t,r,n,o){if(e){var i=Q[t+112+64>>2];i||(i=Q[t+8>>2]);var a=A(i);try{var s=e.transaction(["FILES"],"readwrite").objectStore("FILES").put(r,a);s.onsuccess=e=>{k[t+40>>1]=4,k[t+42>>1]=200,I("OK",t+44,64),n(t,0,a)},s.onerror=e=>{k[t+40>>1]=4,k[t+42>>1]=413,I("Payload Too Large",t+44,64),o(t,0,e)}}catch(e){o(t,0,e)}}else o(t,0,"IndexedDB not available!")}function Ra(e,t,r,n){if(e){var o=Q[t+112+64>>2];o||(o=Q[t+8>>2]);var i=A(o);try{var a=e.transaction(["FILES"],"readonly").objectStore("FILES").get(i);a.onsuccess=e=>{if(e.target.result){var o=e.target.result,i=o.byteLength||o.length,a=cs(i);N.set(new Uint8Array(o),a),Q[t+12>>2]=a,wa.setu64(t+16,i),wa.setu64(t+24,0),wa.setu64(t+32,i),k[t+40>>1]=4,k[t+42>>1]=200,I("OK",t+44,64),r(t,0,o)}else k[t+40>>1]=4,k[t+42>>1]=404,I("Not Found",t+44,64),n(t,0,"no data")},a.onerror=e=>{k[t+40>>1]=4,k[t+42>>1]=404,I("Not Found",t+44,64),n(t,0,e)}}catch(e){n(t,0,e)}}else n(t,0,"IndexedDB not available!")}function Ma(e,t,r,n){if(e){var o=Q[t+112+64>>2];o||(o=Q[t+8>>2]);var i=A(o);try{var a=e.transaction(["FILES"],"readwrite").objectStore("FILES").delete(i);a.onsuccess=e=>{var n=e.target.result;Q[t+12>>2]=0,wa.setu64(t+16,0),wa.setu64(t+24,0),wa.setu64(t+32,0),k[t+40>>1]=4,k[t+42>>1]=200,I("OK",t+44,64),r(t,0,n)},a.onerror=e=>{k[t+40>>1]=4,k[t+42>>1]=404,I("Not Found",t+44,64),n(t,0,e)}}catch(e){n(t,0,e)}}else n(t,0,"IndexedDB not available!")}function Sa(e,t,r,n,o){var i=e+112,a=A(i),s=Q[i+36>>2],c=Q[i+40>>2],d=Q[i+44>>2],l=Q[i+48>>2],u=Q[i+52>>2],p=!!(4&u),f=!!(32&u),E=!!(16&u),g=!!(64&u),_=(e,r,n)=>{va((function(){s?je(s)(e):t&&t(e)}),g)},O=(e,t,r)=>{va((function(){d?je(d)(e):n&&n(e)}),g)},T=(e,t,n)=>{va((function(){c?je(c)(e):r&&r(e)}),g)},m=(e,t,r)=>{va((function(){l?je(l)(e):o&&o(e)}),g)},h=(e,r,n)=>{Pa(wa.dbInstance,e,r.response,((e,r,n)=>{va((function(){s?je(s)(e):t&&t(e)}),g)}),((e,r,n)=>{va((function(){s?je(s)(e):t&&t(e)}),g)}))};if("EM_IDB_STORE"===a){var y=Q[i+84>>2];Pa(wa.dbInstance,e,N.slice(y,y+Q[i+88>>2]),_,T)}else if("EM_IDB_DELETE"===a)Ma(wa.dbInstance,e,_,T);else if(E){if(f)return 0;ba(e,p?h:_,T,O,m)}else Ra(wa.dbInstance,e,_,f?T:p?(e,t,r)=>{ba(e,h,T,O,m)}:(e,t,r)=>{ba(e,_,T,O,m)});return e}function Fa(e){return Tn.makeContextCurrent(e)?0:-5}var Aa={};function xa(){return c||"./this.program"}function Ia(){if(!Ia.strings){var e={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",_:xa()};for(var t in Aa)void 0===Aa[t]?delete e[t]:e[t]=Aa[t];var r=[];for(var t in e)r.push(t+"="+e[t]);Ia.strings=r}return Ia.strings}var Ua={mappings:{},buffers:[null,[],[]],printChar:function(e,t){var r=Ua.buffers[e];M(r),0===t||10===t?((1===e?T:m)(F(r,0)),r.length=0):r.push(t)},varargs:void 0,get:function(){return M(null!=Ua.varargs),Ua.varargs+=4,X[Ua.varargs-4>>2]},getStr:function(e){return A(e)},get64:function(e,t){return M(e>=0?0===t:-1===t),e}};function ja(e,t){var r=0;return Ia().forEach((function(n,o){var i=t+r;X[e+4*o>>2]=i,K(n,i),r+=n.length+1})),0}function Ca(e,t){var r=Ia();X[e>>2]=r.length;var n=0;return r.forEach((function(e){n+=e.length+1})),X[t>>2]=n,0}function Na(e){return we("it should not be possible to operate on streams when !SYSCALLS_REQUIRE_FILESYSTEM"),0}function Ha(e,t,r,n,o){we("it should not be possible to operate on streams when !SYSCALLS_REQUIRE_FILESYSTEM")}function ka(e,t,r,n){for(var o=0,i=0;i<r;i++){var a=X[t>>2],s=X[t+4>>2];t+=8;for(var c=0;c<s;c++)Ua.printChar(e,N[a+c]);o+=s}return X[n>>2]=o,0}function Xa(){return v()}function Qa(e,t){za.bindFramebuffer(e,Tn.framebuffers[t])}function La(e){za.clear(e)}function Ba(e,t,r,n){za.clearColor(e,t,r,n)}function Wa(e){za.clearStencil(e)}function Ga(e,t){Qo(e,t,0)}function Va(e){b(e)}function $a(e){return e%4==0&&(e%100!=0||e%400==0)}function Ya(e,t){for(var r=0,n=0;n<=t;r+=e[n++]);return r}var za,qa=[31,29,31,30,31,30,31,31,30,31,30,31],Ja=[31,28,31,30,31,30,31,31,30,31,30,31];function Ka(e,t){for(var r=new Date(e.getTime());t>0;){var n=$a(r.getFullYear()),o=r.getMonth(),i=(n?qa:Ja)[o];if(!(t>i-r.getDate()))return r.setDate(r.getDate()+t),r;t-=i-r.getDate()+1,r.setDate(1),o<11?r.setMonth(o+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r}function Za(e,t,r,n){var o=X[n+40>>2],i={tm_sec:X[n>>2],tm_min:X[n+4>>2],tm_hour:X[n+8>>2],tm_mday:X[n+12>>2],tm_mon:X[n+16>>2],tm_year:X[n+20>>2],tm_wday:X[n+24>>2],tm_yday:X[n+28>>2],tm_isdst:X[n+32>>2],tm_gmtoff:X[n+36>>2],tm_zone:o?A(o):""},a=A(r),s={"%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 c in s)a=a.replace(new RegExp(c,"g"),s[c]);var d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function u(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length<t;)n=r[0]+n;return n}function p(e,t){return u(e,t,"0")}function f(e,t){function r(e){return e<0?-1:e>0?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function E(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function g(e){var t=Ka(new Date(e.tm_year+1900,0,1),e.tm_yday),r=new Date(t.getFullYear(),0,4),n=new Date(t.getFullYear()+1,0,4),o=E(r),i=E(n);return f(o,t)<=0?f(i,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var _={"%a":function(e){return d[e.tm_wday].substring(0,3)},"%A":function(e){return d[e.tm_wday]},"%b":function(e){return l[e.tm_mon].substring(0,3)},"%B":function(e){return l[e.tm_mon]},"%C":function(e){return p((e.tm_year+1900)/100|0,2)},"%d":function(e){return p(e.tm_mday,2)},"%e":function(e){return u(e.tm_mday,2," ")},"%g":function(e){return g(e).toString().substring(2)},"%G":function(e){return g(e)},"%H":function(e){return p(e.tm_hour,2)},"%I":function(e){var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),p(t,2)},"%j":function(e){return p(e.tm_mday+Ya($a(e.tm_year+1900)?qa:Ja,e.tm_mon-1),3)},"%m":function(e){return p(e.tm_mon+1,2)},"%M":function(e){return p(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>=0&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return p(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var t=new Date(e.tm_year+1900,0,1),r=0===t.getDay()?t:Ka(t,7-t.getDay()),n=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(f(r,n)<0){var o=Ya($a(n.getFullYear())?qa:Ja,n.getMonth()-1)-31,i=31-r.getDate()+o+n.getDate();return p(Math.ceil(i/7),2)}return 0===f(r,t)?"01":"00"},"%V":function(e){var t,r=new Date(e.tm_year+1900,0,4),n=new Date(e.tm_year+1901,0,4),o=E(r),i=E(n),a=Ka(new Date(e.tm_year+1900,0,1),e.tm_yday);return f(a,o)<0?"53":f(i,a)<=0?"01":(t=o.getFullYear()<e.tm_year+1900?e.tm_yday+32-o.getDate():e.tm_yday+1-o.getDate(),p(Math.ceil(t/7),2))},"%w":function(e){return e.tm_wday},"%W":function(e){var t=new Date(e.tm_year,0,1),r=1===t.getDay()?t:Ka(t,0===t.getDay()?1:7-t.getDay()+1),n=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(f(r,n)<0){var o=Ya($a(n.getFullYear())?qa:Ja,n.getMonth()-1)-31,i=31-r.getDate()+o+n.getDate();return p(Math.ceil(i/7),2)}return 0===f(r,t)?"01":"00"},"%y":function(e){return(e.tm_year+1900).toString().substring(2)},"%Y":function(e){return e.tm_year+1900},"%z":function(e){var t=e.tm_gmtoff,r=t>=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(r?"+":"-")+String("0000"+t).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(var c in _)a.includes(c)&&(a=a.replace(new RegExp(c,"g"),_[c](i)));var O=os(a,!1);return O.length>t?0:(J(O,e),O.length-1)}function es(e,t,r,n){return Za(e,t,r,n)}Ke=o.InternalError=Je(Error,"InternalError"),ot(),st=o.BindingError=Je(Error,"BindingError"),Pt(),zt(),Bt(),rr=o.UnboundTypeError=Je(Error,"UnboundTypeError"),Or();for(var ts=0;ts<32;++ts)po.push(new Array(ts));var rs=new Float32Array(288);for(ts=0;ts<288;++ts)Li[ts]=rs.subarray(0,ts+1);var ns=new Int32Array(288);for(ts=0;ts<288;++ts)Gi[ts]=ns.subarray(0,ts+1);function os(e,t,r){var n=r>0?r:U(e)+1,o=new Array(n),i=x(e,o,0,o.length);return t&&(o.length=i),o}wa.staticInit();var is,as={__assert_fail:Ne,__cxa_allocate_exception:He,__cxa_throw:Xe,_embind_finalize_value_object:tt,_embind_register_bigint:rt,_embind_register_bool:lt,_embind_register_class:ir,_embind_register_class_class_function:dr,_embind_register_class_constructor:lr,_embind_register_class_function:ur,_embind_register_emval:mr,_embind_register_float:Dr,_embind_register_integer:br,_embind_register_memory_view:vr,_embind_register_smart_ptr:Pr,_embind_register_std_string:Rr,_embind_register_std_wstring:Mr,_embind_register_value_object:Sr,_embind_register_value_object_field:Fr,_embind_register_void:Ar,_emscripten_fetch_free:xr,_emscripten_throw_longjmp:Ir,_emval_as:jr,_emval_call:Nr,_emval_call_method:Lr,_emval_call_void_method:Br,_emval_decref:Er,_emval_get_global:Gr,_emval_get_method_caller:zr,_emval_get_module_property:qr,_emval_get_property:Jr,_emval_incref:Kr,_emval_new_array:Zr,_emval_new_cstring:en,_emval_new_object:tn,_emval_run_destructors:rn,_emval_set_property:nn,_emval_take_value:on,_emval_typeof:an,abort:sn,clock_gettime:ln,emscripten_cancel_animation_frame:un,emscripten_glActiveTexture:mn,emscripten_glAttachShader:hn,emscripten_glBindAttribLocation:yn,emscripten_glBindBuffer:Dn,emscripten_glBindFramebuffer:wn,emscripten_glBindRenderbuffer:bn,emscripten_glBindSampler:vn,emscripten_glBindTexture:Pn,emscripten_glBindVertexArray:Rn,emscripten_glBindVertexArrayOES:Mn,emscripten_glBlendColor:Sn,emscripten_glBlendEquation:Fn,emscripten_glBlendFunc:An,emscripten_glBlitFramebuffer:xn,emscripten_glBufferData:In,emscripten_glBufferSubData:Un,emscripten_glCheckFramebufferStatus:jn,emscripten_glClear:Cn,emscripten_glClearColor:Nn,emscripten_glClearStencil:Hn,emscripten_glClientWaitSync:Xn,emscripten_glColorMask:Qn,emscripten_glCompileShader:Ln,emscripten_glCompressedTexImage2D:Bn,emscripten_glCompressedTexSubImage2D:Wn,emscripten_glCopyTexSubImage2D:Gn,emscripten_glCreateProgram:Vn,emscripten_glCreateShader:$n,emscripten_glCullFace:Yn,emscripten_glDeleteBuffers:zn,emscripten_glDeleteFramebuffers:qn,emscripten_glDeleteProgram:Jn,emscripten_glDeleteRenderbuffers:Kn,emscripten_glDeleteSamplers:Zn,emscripten_glDeleteShader:eo,emscripten_glDeleteSync:to,emscripten_glDeleteTextures:ro,emscripten_glDeleteVertexArrays:no,emscripten_glDeleteVertexArraysOES:oo,emscripten_glDepthMask:io,emscripten_glDisable:ao,emscripten_glDisableVertexAttribArray:so,emscripten_glDrawArrays:co,emscripten_glDrawArraysInstanced:lo,emscripten_glDrawArraysInstancedBaseInstanceWEBGL:uo,emscripten_glDrawBuffers:fo,emscripten_glDrawElements:Eo,emscripten_glDrawElementsInstanced:go,emscripten_glDrawElementsInstancedBaseVertexBaseInstanceWEBGL:_o,emscripten_glDrawRangeElements:To,emscripten_glEnable:mo,emscripten_glEnableVertexAttribArray:ho,emscripten_glFenceSync:yo,emscripten_glFinish:Do,emscripten_glFlush:wo,emscripten_glFramebufferRenderbuffer:bo,emscripten_glFramebufferTexture2D:vo,emscripten_glFrontFace:Po,emscripten_glGenBuffers:Mo,emscripten_glGenFramebuffers:So,emscripten_glGenRenderbuffers:Fo,emscripten_glGenSamplers:Ao,emscripten_glGenTextures:xo,emscripten_glGenVertexArrays:Io,emscripten_glGenVertexArraysOES:Uo,emscripten_glGenerateMipmap:jo,emscripten_glGetBufferParameteriv:Co,emscripten_glGetError:No,emscripten_glGetFloatv:Lo,emscripten_glGetFramebufferAttachmentParameteriv:Bo,emscripten_glGetIntegerv:Wo,emscripten_glGetProgramInfoLog:Go,emscripten_glGetProgramiv:Vo,emscripten_glGetRenderbufferParameteriv:$o,emscripten_glGetShaderInfoLog:Yo,emscripten_glGetShaderPrecisionFormat:zo,emscripten_glGetShaderiv:qo,emscripten_glGetString:Ko,emscripten_glGetStringi:Zo,emscripten_glGetUniformLocation:ni,emscripten_glInvalidateFramebuffer:oi,emscripten_glInvalidateSubFramebuffer:ii,emscripten_glIsSync:ai,emscripten_glIsTexture:si,emscripten_glLineWidth:ci,emscripten_glLinkProgram:di,emscripten_glMultiDrawArraysInstancedBaseInstanceWEBGL:li,emscripten_glMultiDrawElementsInstancedBaseVertexBaseInstanceWEBGL:ui,emscripten_glPixelStorei:pi,emscripten_glReadBuffer:fi,emscripten_glReadPixels:mi,emscripten_glRenderbufferStorage:hi,emscripten_glRenderbufferStorageMultisample:yi,emscripten_glSamplerParameterf:Di,emscripten_glSamplerParameteri:wi,emscripten_glSamplerParameteriv:bi,emscripten_glScissor:vi,emscripten_glShaderSource:Pi,emscripten_glStencilFunc:Ri,emscripten_glStencilFuncSeparate:Mi,emscripten_glStencilMask:Si,emscripten_glStencilMaskSeparate:Fi,emscripten_glStencilOp:Ai,emscripten_glStencilOpSeparate:xi,emscripten_glTexImage2D:Ii,emscripten_glTexParameterf:Ui,emscripten_glTexParameterfv:ji,emscripten_glTexParameteri:Ci,emscripten_glTexParameteriv:Ni,emscripten_glTexStorage2D:Hi,emscripten_glTexSubImage2D:ki,emscripten_glUniform1f:Qi,emscripten_glUniform1fv:Bi,emscripten_glUniform1i:Wi,emscripten_glUniform1iv:Vi,emscripten_glUniform2f:$i,emscripten_glUniform2fv:Yi,emscripten_glUniform2i:zi,emscripten_glUniform2iv:qi,emscripten_glUniform3f:Ji,emscripten_glUniform3fv:Ki,emscripten_glUniform3i:Zi,emscripten_glUniform3iv:ea,emscripten_glUniform4f:ta,emscripten_glUniform4fv:ra,emscripten_glUniform4i:na,emscripten_glUniform4iv:oa,emscripten_glUniformMatrix2fv:ia,emscripten_glUniformMatrix3fv:aa,emscripten_glUniformMatrix4fv:sa,emscripten_glUseProgram:ca,emscripten_glVertexAttrib1f:da,emscripten_glVertexAttrib2fv:la,emscripten_glVertexAttrib3fv:ua,emscripten_glVertexAttrib4fv:pa,emscripten_glVertexAttribDivisor:fa,emscripten_glVertexAttribIPointer:Ea,emscripten_glVertexAttribPointer:ga,emscripten_glViewport:_a,emscripten_glWaitSync:Oa,emscripten_is_main_browser_thread:Ta,emscripten_memcpy_big:ma,emscripten_request_animation_frame:ha,emscripten_resize_heap:Da,emscripten_start_fetch:Sa,emscripten_webgl_make_context_current:Fa,environ_get:ja,environ_sizes_get:Ca,fd_close:Na,fd_seek:Ha,fd_write:ka,getTempRet0:Xa,glBindFramebuffer:Qa,glClear:La,glClearColor:Ba,glClearStencil:Wa,glGetIntegerv:Ga,invoke_ii:ws,invoke_iii:ys,invoke_iiii:_s,invoke_iiiii:Ds,invoke_v:Ps,invoke_vi:hs,invoke_vii:ms,invoke_viii:bs,invoke_viiii:Ts,invoke_viiiii:Os,invoke_viiiiii:Rs,invoke_viiiiiiiii:vs,setTempRet0:Va,strftime_l:es},ss=(xe(),o.___wasm_call_ctors=Se("__wasm_call_ctors"),o._free=Se("free")),cs=o._malloc=Se("malloc"),ds=o.___errno_location=Se("__errno_location"),ls=(o._saveSetjmp=Se("saveSetjmp"),o.___getTypeName=Se("__getTypeName")),us=(o.___embind_register_native_and_builtin_types=Se("__embind_register_native_and_builtin_types"),o.___dl_seterr=Se("__dl_seterr"),o._emscripten_main_thread_process_queued_calls=Se("emscripten_main_thread_process_queued_calls"),o._memalign=Se("memalign"),o._setThrew=Se("setThrew")),ps=o._emscripten_stack_init=function(){return(ps=o._emscripten_stack_init=o.asm.emscripten_stack_init).apply(null,arguments)},fs=(o._emscripten_stack_get_free=function(){return(o._emscripten_stack_get_free=o.asm.emscripten_stack_get_free).apply(null,arguments)},o._emscripten_stack_get_end=function(){return(fs=o._emscripten_stack_get_end=o.asm.emscripten_stack_get_end).apply(null,arguments)}),Es=o.stackSave=Se("stackSave"),gs=o.stackRestore=Se("stackRestore");function _s(e,t,r,n){var o=Es();try{return je(e)(t,r,n)}catch(e){if(gs(o),e!==e+0&&"longjmp"!==e)throw e;us(1,0)}}function Os(e,t,r,n,o,i){var a=Es();try{je(e)(t,r,n,o,i)}catch(e){if(gs(a),e!==e+0&&"longjmp"!==e)throw e;us(1,0)}}function Ts(e,t,r,n,o){var i=Es();try{je(e)(t,r,n,o)}catch(e){if(gs(i),e!==e+0&&"longjmp"!==e)throw e;us(1,0)}}function ms(e,t,r){var n=Es();try{je(e)(t,r)}catch(e){if(gs(n),e!==e+0&&"longjmp"!==e)throw e;us(1,0)}}function hs(e,t){var r=Es();try{je(e)(t)}catch(e){if(gs(r),e!==e+0&&"longjmp"!==e)throw e;us(1,0)}}function ys(e,t,r){var n=Es();try{return je(e)(t,r)}catch(e){if(gs(n),e!==e+0&&"longjmp"!==e)throw e;us(1,0)}}function Ds(e,t,r,n,o){var i=Es();try{return je(e)(t,r,n,o)}catch(e){if(gs(i),e!==e+0&&"longjmp"!==e)throw e;us(1,0)}}function ws(e,t){var r=Es();try{return je(e)(t)}catch(e){if(gs(r),e!==e+0&&"longjmp"!==e)throw e;us(1,0)}}function bs(e,t,r,n){var o=Es();try{je(e)(t,r,n)}catch(e){if(gs(o),e!==e+0&&"longjmp"!==e)throw e;us(1,0)}}function vs(e,t,r,n,o,i,a,s,c,d){var l=Es();try{je(e)(t,r,n,o,i,a,s,c,d)}catch(e){if(gs(l),e!==e+0&&"longjmp"!==e)throw e;us(1,0)}}function Ps(e){var t=Es();try{je(e)()}catch(e){if(gs(t),e!==e+0&&"longjmp"!==e)throw e;us(1,0)}}function Rs(e,t,r,n,o,i,a){var s=Es();try{je(e)(t,r,n,o,i,a)}catch(e){if(gs(s),e!==e+0&&"longjmp"!==e)throw e;us(1,0)}}function Ms(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function Ss(){ps(),oe()}function Fs(e){function t(){is||(is=!0,o.calledRun=!0,R||(pe(),r(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),M(!o._main,'compiled without a main, but one is present. if you added it from JS, use Module["onRuntimeInitialized"]'),fe()))}e=e||s,Oe>0||(Ss(),ue(),Oe>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),t()}),1)):t(),ie()))}if(o.stackAlloc=Se("stackAlloc"),o.dynCall_viji=Se("dynCall_viji"),o.dynCall_vijiii=Se("dynCall_vijiii"),o.dynCall_viiiiij=Se("dynCall_viiiiij"),o.dynCall_jii=Se("dynCall_jii"),o.dynCall_vij=Se("dynCall_vij"),o.dynCall_iiij=Se("dynCall_iiij"),o.dynCall_iiiij=Se("dynCall_iiiij"),o.dynCall_viij=Se("dynCall_viij"),o.dynCall_viiij=Se("dynCall_viiij"),o.dynCall_ji=Se("dynCall_ji"),o.dynCall_iij=Se("dynCall_iij"),o.dynCall_jiiiiii=Se("dynCall_jiiiiii"),o.dynCall_jiiiiji=Se("dynCall_jiiiiji"),o.dynCall_iijj=Se("dynCall_iijj"),o.dynCall_jiji=Se("dynCall_jiji"),o.dynCall_viijii=Se("dynCall_viijii"),o.dynCall_iiiiij=Se("dynCall_iiiiij"),o.dynCall_iiiiijj=Se("dynCall_iiiiijj"),o.dynCall_iiiiiijj=Se("dynCall_iiiiiijj"),Object.getOwnPropertyDescriptor(o,"intArrayFromString")||(o.intArrayFromString=()=>we("'intArrayFromString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"intArrayToString")||(o.intArrayToString=()=>we("'intArrayToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"ccall")||(o.ccall=()=>we("'ccall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"cwrap")||(o.cwrap=()=>we("'cwrap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"setValue")||(o.setValue=()=>we("'setValue' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getValue")||(o.getValue=()=>we("'getValue' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"allocate")||(o.allocate=()=>we("'allocate' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"UTF8ArrayToString")||(o.UTF8ArrayToString=()=>we("'UTF8ArrayToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"UTF8ToString")||(o.UTF8ToString=()=>we("'UTF8ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"stringToUTF8Array")||(o.stringToUTF8Array=()=>we("'stringToUTF8Array' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"stringToUTF8")||(o.stringToUTF8=()=>we("'stringToUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"lengthBytesUTF8")||(o.lengthBytesUTF8=()=>we("'lengthBytesUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"stackTrace")||(o.stackTrace=()=>we("'stackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"addOnPreRun")||(o.addOnPreRun=()=>we("'addOnPreRun' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"addOnInit")||(o.addOnInit=()=>we("'addOnInit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"addOnPreMain")||(o.addOnPreMain=()=>we("'addOnPreMain' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"addOnExit")||(o.addOnExit=()=>we("'addOnExit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"addOnPostRun")||(o.addOnPostRun=()=>we("'addOnPostRun' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"writeStringToMemory")||(o.writeStringToMemory=()=>we("'writeStringToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"writeArrayToMemory")||(o.writeArrayToMemory=()=>we("'writeArrayToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"writeAsciiToMemory")||(o.writeAsciiToMemory=()=>we("'writeAsciiToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"addRunDependency")||(o.addRunDependency=()=>we("'addRunDependency' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")),Object.getOwnPropertyDescriptor(o,"removeRunDependency")||(o.removeRunDependency=()=>we("'removeRunDependency' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")),Object.getOwnPropertyDescriptor(o,"FS_createFolder")||(o.FS_createFolder=()=>we("'FS_createFolder' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"FS_createPath")||(o.FS_createPath=()=>we("'FS_createPath' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")),Object.getOwnPropertyDescriptor(o,"FS_createDataFile")||(o.FS_createDataFile=()=>we("'FS_createDataFile' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")),Object.getOwnPropertyDescriptor(o,"FS_createPreloadedFile")||(o.FS_createPreloadedFile=()=>we("'FS_createPreloadedFile' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")),Object.getOwnPropertyDescriptor(o,"FS_createLazyFile")||(o.FS_createLazyFile=()=>we("'FS_createLazyFile' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")),Object.getOwnPropertyDescriptor(o,"FS_createLink")||(o.FS_createLink=()=>we("'FS_createLink' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"FS_createDevice")||(o.FS_createDevice=()=>we("'FS_createDevice' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")),Object.getOwnPropertyDescriptor(o,"FS_unlink")||(o.FS_unlink=()=>we("'FS_unlink' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")),Object.getOwnPropertyDescriptor(o,"getLEB")||(o.getLEB=()=>we("'getLEB' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getFunctionTables")||(o.getFunctionTables=()=>we("'getFunctionTables' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"alignFunctionTables")||(o.alignFunctionTables=()=>we("'alignFunctionTables' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerFunctions")||(o.registerFunctions=()=>we("'registerFunctions' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"addFunction")||(o.addFunction=()=>we("'addFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"removeFunction")||(o.removeFunction=()=>we("'removeFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getFuncWrapper")||(o.getFuncWrapper=()=>we("'getFuncWrapper' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"prettyPrint")||(o.prettyPrint=()=>we("'prettyPrint' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"dynCall")||(o.dynCall=()=>we("'dynCall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getCompilerSetting")||(o.getCompilerSetting=()=>we("'getCompilerSetting' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"print")||(o.print=()=>we("'print' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"printErr")||(o.printErr=()=>we("'printErr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getTempRet0")||(o.getTempRet0=()=>we("'getTempRet0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"setTempRet0")||(o.setTempRet0=()=>we("'setTempRet0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"callMain")||(o.callMain=()=>we("'callMain' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"abort")||(o.abort=()=>we("'abort' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"keepRuntimeAlive")||(o.keepRuntimeAlive=()=>we("'keepRuntimeAlive' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"zeroMemory")||(o.zeroMemory=()=>we("'zeroMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"stringToNewUTF8")||(o.stringToNewUTF8=()=>we("'stringToNewUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"setFileTime")||(o.setFileTime=()=>we("'setFileTime' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"emscripten_realloc_buffer")||(o.emscripten_realloc_buffer=()=>we("'emscripten_realloc_buffer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"ENV")||(o.ENV=()=>we("'ENV' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"withStackSave")||(o.withStackSave=()=>we("'withStackSave' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"ERRNO_CODES")||(o.ERRNO_CODES=()=>we("'ERRNO_CODES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"ERRNO_MESSAGES")||(o.ERRNO_MESSAGES=()=>we("'ERRNO_MESSAGES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"setErrNo")||(o.setErrNo=()=>we("'setErrNo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"inetPton4")||(o.inetPton4=()=>we("'inetPton4' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"inetNtop4")||(o.inetNtop4=()=>we("'inetNtop4' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"inetPton6")||(o.inetPton6=()=>we("'inetPton6' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"inetNtop6")||(o.inetNtop6=()=>we("'inetNtop6' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"readSockaddr")||(o.readSockaddr=()=>we("'readSockaddr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"writeSockaddr")||(o.writeSockaddr=()=>we("'writeSockaddr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"DNS")||(o.DNS=()=>we("'DNS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getHostByName")||(o.getHostByName=()=>we("'getHostByName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"GAI_ERRNO_MESSAGES")||(o.GAI_ERRNO_MESSAGES=()=>we("'GAI_ERRNO_MESSAGES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"Protocols")||(o.Protocols=()=>we("'Protocols' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"Sockets")||(o.Sockets=()=>we("'Sockets' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getRandomDevice")||(o.getRandomDevice=()=>we("'getRandomDevice' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"traverseStack")||(o.traverseStack=()=>we("'traverseStack' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"convertFrameToPC")||(o.convertFrameToPC=()=>we("'convertFrameToPC' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"UNWIND_CACHE")||(o.UNWIND_CACHE=()=>we("'UNWIND_CACHE' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"saveInUnwindCache")||(o.saveInUnwindCache=()=>we("'saveInUnwindCache' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"convertPCtoSourceLocation")||(o.convertPCtoSourceLocation=()=>we("'convertPCtoSourceLocation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"readAsmConstArgsArray")||(o.readAsmConstArgsArray=()=>we("'readAsmConstArgsArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"readAsmConstArgs")||(o.readAsmConstArgs=()=>we("'readAsmConstArgs' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"mainThreadEM_ASM")||(o.mainThreadEM_ASM=()=>we("'mainThreadEM_ASM' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"jstoi_q")||(o.jstoi_q=()=>we("'jstoi_q' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"jstoi_s")||(o.jstoi_s=()=>we("'jstoi_s' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getExecutableName")||(o.getExecutableName=()=>we("'getExecutableName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"listenOnce")||(o.listenOnce=()=>we("'listenOnce' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"autoResumeAudioContext")||(o.autoResumeAudioContext=()=>we("'autoResumeAudioContext' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"dynCallLegacy")||(o.dynCallLegacy=()=>we("'dynCallLegacy' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getDynCaller")||(o.getDynCaller=()=>we("'getDynCaller' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"dynCall")||(o.dynCall=()=>we("'dynCall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"callRuntimeCallbacks")||(o.callRuntimeCallbacks=()=>we("'callRuntimeCallbacks' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"wasmTableMirror")||(o.wasmTableMirror=()=>we("'wasmTableMirror' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"setWasmTableEntry")||(o.setWasmTableEntry=()=>we("'setWasmTableEntry' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getWasmTableEntry")||(o.getWasmTableEntry=()=>we("'getWasmTableEntry' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"handleException")||(o.handleException=()=>we("'handleException' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"runtimeKeepalivePush")||(o.runtimeKeepalivePush=()=>we("'runtimeKeepalivePush' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"runtimeKeepalivePop")||(o.runtimeKeepalivePop=()=>we("'runtimeKeepalivePop' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"callUserCallback")||(o.callUserCallback=()=>we("'callUserCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"maybeExit")||(o.maybeExit=()=>we("'maybeExit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"safeSetTimeout")||(o.safeSetTimeout=()=>we("'safeSetTimeout' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"asmjsMangle")||(o.asmjsMangle=()=>we("'asmjsMangle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"asyncLoad")||(o.asyncLoad=()=>we("'asyncLoad' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"alignMemory")||(o.alignMemory=()=>we("'alignMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"mmapAlloc")||(o.mmapAlloc=()=>we("'mmapAlloc' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"reallyNegative")||(o.reallyNegative=()=>we("'reallyNegative' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"unSign")||(o.unSign=()=>we("'unSign' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"reSign")||(o.reSign=()=>we("'reSign' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"formatString")||(o.formatString=()=>we("'formatString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"PATH")||(o.PATH=()=>we("'PATH' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"PATH_FS")||(o.PATH_FS=()=>we("'PATH_FS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"SYSCALLS")||(o.SYSCALLS=()=>we("'SYSCALLS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"syscallMmap2")||(o.syscallMmap2=()=>we("'syscallMmap2' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"syscallMunmap")||(o.syscallMunmap=()=>we("'syscallMunmap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getSocketFromFD")||(o.getSocketFromFD=()=>we("'getSocketFromFD' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getSocketAddress")||(o.getSocketAddress=()=>we("'getSocketAddress' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"JSEvents")||(o.JSEvents=()=>we("'JSEvents' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerKeyEventCallback")||(o.registerKeyEventCallback=()=>we("'registerKeyEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"specialHTMLTargets")||(o.specialHTMLTargets=()=>we("'specialHTMLTargets' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"maybeCStringToJsString")||(o.maybeCStringToJsString=()=>we("'maybeCStringToJsString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"findEventTarget")||(o.findEventTarget=()=>we("'findEventTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"findCanvasEventTarget")||(o.findCanvasEventTarget=()=>we("'findCanvasEventTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getBoundingClientRect")||(o.getBoundingClientRect=()=>we("'getBoundingClientRect' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"fillMouseEventData")||(o.fillMouseEventData=()=>we("'fillMouseEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerMouseEventCallback")||(o.registerMouseEventCallback=()=>we("'registerMouseEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerWheelEventCallback")||(o.registerWheelEventCallback=()=>we("'registerWheelEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerUiEventCallback")||(o.registerUiEventCallback=()=>we("'registerUiEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerFocusEventCallback")||(o.registerFocusEventCallback=()=>we("'registerFocusEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"fillDeviceOrientationEventData")||(o.fillDeviceOrientationEventData=()=>we("'fillDeviceOrientationEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerDeviceOrientationEventCallback")||(o.registerDeviceOrientationEventCallback=()=>we("'registerDeviceOrientationEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"fillDeviceMotionEventData")||(o.fillDeviceMotionEventData=()=>we("'fillDeviceMotionEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerDeviceMotionEventCallback")||(o.registerDeviceMotionEventCallback=()=>we("'registerDeviceMotionEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"screenOrientation")||(o.screenOrientation=()=>we("'screenOrientation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"fillOrientationChangeEventData")||(o.fillOrientationChangeEventData=()=>we("'fillOrientationChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerOrientationChangeEventCallback")||(o.registerOrientationChangeEventCallback=()=>we("'registerOrientationChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"fillFullscreenChangeEventData")||(o.fillFullscreenChangeEventData=()=>we("'fillFullscreenChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerFullscreenChangeEventCallback")||(o.registerFullscreenChangeEventCallback=()=>we("'registerFullscreenChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerRestoreOldStyle")||(o.registerRestoreOldStyle=()=>we("'registerRestoreOldStyle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"hideEverythingExceptGivenElement")||(o.hideEverythingExceptGivenElement=()=>we("'hideEverythingExceptGivenElement' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"restoreHiddenElements")||(o.restoreHiddenElements=()=>we("'restoreHiddenElements' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"setLetterbox")||(o.setLetterbox=()=>we("'setLetterbox' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"currentFullscreenStrategy")||(o.currentFullscreenStrategy=()=>we("'currentFullscreenStrategy' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"restoreOldWindowedStyle")||(o.restoreOldWindowedStyle=()=>we("'restoreOldWindowedStyle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"softFullscreenResizeWebGLRenderTarget")||(o.softFullscreenResizeWebGLRenderTarget=()=>we("'softFullscreenResizeWebGLRenderTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"doRequestFullscreen")||(o.doRequestFullscreen=()=>we("'doRequestFullscreen' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"fillPointerlockChangeEventData")||(o.fillPointerlockChangeEventData=()=>we("'fillPointerlockChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerPointerlockChangeEventCallback")||(o.registerPointerlockChangeEventCallback=()=>we("'registerPointerlockChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerPointerlockErrorEventCallback")||(o.registerPointerlockErrorEventCallback=()=>we("'registerPointerlockErrorEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"requestPointerLock")||(o.requestPointerLock=()=>we("'requestPointerLock' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"fillVisibilityChangeEventData")||(o.fillVisibilityChangeEventData=()=>we("'fillVisibilityChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerVisibilityChangeEventCallback")||(o.registerVisibilityChangeEventCallback=()=>we("'registerVisibilityChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerTouchEventCallback")||(o.registerTouchEventCallback=()=>we("'registerTouchEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"fillGamepadEventData")||(o.fillGamepadEventData=()=>we("'fillGamepadEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerGamepadEventCallback")||(o.registerGamepadEventCallback=()=>we("'registerGamepadEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerBeforeUnloadEventCallback")||(o.registerBeforeUnloadEventCallback=()=>we("'registerBeforeUnloadEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"fillBatteryEventData")||(o.fillBatteryEventData=()=>we("'fillBatteryEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"battery")||(o.battery=()=>we("'battery' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerBatteryEventCallback")||(o.registerBatteryEventCallback=()=>we("'registerBatteryEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"setCanvasElementSize")||(o.setCanvasElementSize=()=>we("'setCanvasElementSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getCanvasElementSize")||(o.getCanvasElementSize=()=>we("'getCanvasElementSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"demangle")||(o.demangle=()=>we("'demangle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"demangleAll")||(o.demangleAll=()=>we("'demangleAll' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"jsStackTrace")||(o.jsStackTrace=()=>we("'jsStackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"stackTrace")||(o.stackTrace=()=>we("'stackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getEnvStrings")||(o.getEnvStrings=()=>we("'getEnvStrings' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"checkWasiClock")||(o.checkWasiClock=()=>we("'checkWasiClock' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"flush_NO_FILESYSTEM")||(o.flush_NO_FILESYSTEM=()=>we("'flush_NO_FILESYSTEM' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"writeI53ToI64")||(o.writeI53ToI64=()=>we("'writeI53ToI64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"writeI53ToI64Clamped")||(o.writeI53ToI64Clamped=()=>we("'writeI53ToI64Clamped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"writeI53ToI64Signaling")||(o.writeI53ToI64Signaling=()=>we("'writeI53ToI64Signaling' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"writeI53ToU64Clamped")||(o.writeI53ToU64Clamped=()=>we("'writeI53ToU64Clamped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"writeI53ToU64Signaling")||(o.writeI53ToU64Signaling=()=>we("'writeI53ToU64Signaling' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"readI53FromI64")||(o.readI53FromI64=()=>we("'readI53FromI64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"readI53FromU64")||(o.readI53FromU64=()=>we("'readI53FromU64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"convertI32PairToI53")||(o.convertI32PairToI53=()=>we("'convertI32PairToI53' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"convertU32PairToI53")||(o.convertU32PairToI53=()=>we("'convertU32PairToI53' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"setImmediateWrapped")||(o.setImmediateWrapped=()=>we("'setImmediateWrapped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"clearImmediateWrapped")||(o.clearImmediateWrapped=()=>we("'clearImmediateWrapped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"polyfillSetImmediate")||(o.polyfillSetImmediate=()=>we("'polyfillSetImmediate' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"uncaughtExceptionCount")||(o.uncaughtExceptionCount=()=>we("'uncaughtExceptionCount' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"exceptionLast")||(o.exceptionLast=()=>we("'exceptionLast' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"exceptionCaught")||(o.exceptionCaught=()=>we("'exceptionCaught' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"ExceptionInfo")||(o.ExceptionInfo=()=>we("'ExceptionInfo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"CatchInfo")||(o.CatchInfo=()=>we("'CatchInfo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"exception_addRef")||(o.exception_addRef=()=>we("'exception_addRef' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"exception_decRef")||(o.exception_decRef=()=>we("'exception_decRef' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"Browser")||(o.Browser=()=>we("'Browser' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"funcWrappers")||(o.funcWrappers=()=>we("'funcWrappers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getFuncWrapper")||(o.getFuncWrapper=()=>we("'getFuncWrapper' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"setMainLoop")||(o.setMainLoop=()=>we("'setMainLoop' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"wget")||(o.wget=()=>we("'wget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"tempFixedLengthArray")||(o.tempFixedLengthArray=()=>we("'tempFixedLengthArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"miniTempWebGLFloatBuffers")||(o.miniTempWebGLFloatBuffers=()=>we("'miniTempWebGLFloatBuffers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"heapObjectForWebGLType")||(o.heapObjectForWebGLType=()=>we("'heapObjectForWebGLType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"heapAccessShiftForWebGLHeap")||(o.heapAccessShiftForWebGLHeap=()=>we("'heapAccessShiftForWebGLHeap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),o.GL=Tn,Object.getOwnPropertyDescriptor(o,"emscriptenWebGLGet")||(o.emscriptenWebGLGet=()=>we("'emscriptenWebGLGet' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"computeUnpackAlignedImageSize")||(o.computeUnpackAlignedImageSize=()=>we("'computeUnpackAlignedImageSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"emscriptenWebGLGetTexPixelData")||(o.emscriptenWebGLGetTexPixelData=()=>we("'emscriptenWebGLGetTexPixelData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"emscriptenWebGLGetUniform")||(o.emscriptenWebGLGetUniform=()=>we("'emscriptenWebGLGetUniform' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"webglGetUniformLocation")||(o.webglGetUniformLocation=()=>we("'webglGetUniformLocation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"webglPrepareUniformLocationsBeforeFirstUse")||(o.webglPrepareUniformLocationsBeforeFirstUse=()=>we("'webglPrepareUniformLocationsBeforeFirstUse' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"webglGetLeftBracePos")||(o.webglGetLeftBracePos=()=>we("'webglGetLeftBracePos' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"emscriptenWebGLGetVertexAttrib")||(o.emscriptenWebGLGetVertexAttrib=()=>we("'emscriptenWebGLGetVertexAttrib' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"emscriptenWebGLGetIndexed")||(o.emscriptenWebGLGetIndexed=()=>we("'emscriptenWebGLGetIndexed' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"Fetch")||(o.Fetch=()=>we("'Fetch' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"fetchDeleteCachedData")||(o.fetchDeleteCachedData=()=>we("'fetchDeleteCachedData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"fetchLoadCachedData")||(o.fetchLoadCachedData=()=>we("'fetchLoadCachedData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"fetchCacheData")||(o.fetchCacheData=()=>we("'fetchCacheData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"fetchXHR")||(o.fetchXHR=()=>we("'fetchXHR' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"writeGLArray")||(o.writeGLArray=()=>we("'writeGLArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"InternalError")||(o.InternalError=()=>we("'InternalError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"BindingError")||(o.BindingError=()=>we("'BindingError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"UnboundTypeError")||(o.UnboundTypeError=()=>we("'UnboundTypeError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"PureVirtualError")||(o.PureVirtualError=()=>we("'PureVirtualError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"init_embind")||(o.init_embind=()=>we("'init_embind' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"throwInternalError")||(o.throwInternalError=()=>we("'throwInternalError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"throwBindingError")||(o.throwBindingError=()=>we("'throwBindingError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"throwUnboundTypeError")||(o.throwUnboundTypeError=()=>we("'throwUnboundTypeError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"ensureOverloadTable")||(o.ensureOverloadTable=()=>we("'ensureOverloadTable' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"exposePublicSymbol")||(o.exposePublicSymbol=()=>we("'exposePublicSymbol' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"replacePublicSymbol")||(o.replacePublicSymbol=()=>we("'replacePublicSymbol' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"extendError")||(o.extendError=()=>we("'extendError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"createNamedFunction")||(o.createNamedFunction=()=>we("'createNamedFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registeredInstances")||(o.registeredInstances=()=>we("'registeredInstances' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getBasestPointer")||(o.getBasestPointer=()=>we("'getBasestPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerInheritedInstance")||(o.registerInheritedInstance=()=>we("'registerInheritedInstance' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"unregisterInheritedInstance")||(o.unregisterInheritedInstance=()=>we("'unregisterInheritedInstance' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getInheritedInstance")||(o.getInheritedInstance=()=>we("'getInheritedInstance' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getInheritedInstanceCount")||(o.getInheritedInstanceCount=()=>we("'getInheritedInstanceCount' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getLiveInheritedInstances")||(o.getLiveInheritedInstances=()=>we("'getLiveInheritedInstances' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registeredTypes")||(o.registeredTypes=()=>we("'registeredTypes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"awaitingDependencies")||(o.awaitingDependencies=()=>we("'awaitingDependencies' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"typeDependencies")||(o.typeDependencies=()=>we("'typeDependencies' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registeredPointers")||(o.registeredPointers=()=>we("'registeredPointers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"registerType")||(o.registerType=()=>we("'registerType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"whenDependentTypesAreResolved")||(o.whenDependentTypesAreResolved=()=>we("'whenDependentTypesAreResolved' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"embind_charCodes")||(o.embind_charCodes=()=>we("'embind_charCodes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"embind_init_charCodes")||(o.embind_init_charCodes=()=>we("'embind_init_charCodes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"readLatin1String")||(o.readLatin1String=()=>we("'readLatin1String' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getTypeName")||(o.getTypeName=()=>we("'getTypeName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"heap32VectorToArray")||(o.heap32VectorToArray=()=>we("'heap32VectorToArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"requireRegisteredType")||(o.requireRegisteredType=()=>we("'requireRegisteredType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getShiftFromSize")||(o.getShiftFromSize=()=>we("'getShiftFromSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"integerReadValueFromPointer")||(o.integerReadValueFromPointer=()=>we("'integerReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"enumReadValueFromPointer")||(o.enumReadValueFromPointer=()=>we("'enumReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"floatReadValueFromPointer")||(o.floatReadValueFromPointer=()=>we("'floatReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"simpleReadValueFromPointer")||(o.simpleReadValueFromPointer=()=>we("'simpleReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"runDestructors")||(o.runDestructors=()=>we("'runDestructors' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"new_")||(o.new_=()=>we("'new_' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"craftInvokerFunction")||(o.craftInvokerFunction=()=>we("'craftInvokerFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"embind__requireFunction")||(o.embind__requireFunction=()=>we("'embind__requireFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"tupleRegistrations")||(o.tupleRegistrations=()=>we("'tupleRegistrations' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"structRegistrations")||(o.structRegistrations=()=>we("'structRegistrations' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"genericPointerToWireType")||(o.genericPointerToWireType=()=>we("'genericPointerToWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"constNoSmartPtrRawPointerToWireType")||(o.constNoSmartPtrRawPointerToWireType=()=>we("'constNoSmartPtrRawPointerToWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"nonConstNoSmartPtrRawPointerToWireType")||(o.nonConstNoSmartPtrRawPointerToWireType=()=>we("'nonConstNoSmartPtrRawPointerToWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"init_RegisteredPointer")||(o.init_RegisteredPointer=()=>we("'init_RegisteredPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"RegisteredPointer")||(o.RegisteredPointer=()=>we("'RegisteredPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"RegisteredPointer_getPointee")||(o.RegisteredPointer_getPointee=()=>we("'RegisteredPointer_getPointee' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"RegisteredPointer_destructor")||(o.RegisteredPointer_destructor=()=>we("'RegisteredPointer_destructor' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"RegisteredPointer_deleteObject")||(o.RegisteredPointer_deleteObject=()=>we("'RegisteredPointer_deleteObject' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"RegisteredPointer_fromWireType")||(o.RegisteredPointer_fromWireType=()=>we("'RegisteredPointer_fromWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"runDestructor")||(o.runDestructor=()=>we("'runDestructor' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"releaseClassHandle")||(o.releaseClassHandle=()=>we("'releaseClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"finalizationGroup")||(o.finalizationGroup=()=>we("'finalizationGroup' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"detachFinalizer_deps")||(o.detachFinalizer_deps=()=>we("'detachFinalizer_deps' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"detachFinalizer")||(o.detachFinalizer=()=>we("'detachFinalizer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"attachFinalizer")||(o.attachFinalizer=()=>we("'attachFinalizer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"makeClassHandle")||(o.makeClassHandle=()=>we("'makeClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"init_ClassHandle")||(o.init_ClassHandle=()=>we("'init_ClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"ClassHandle")||(o.ClassHandle=()=>we("'ClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"ClassHandle_isAliasOf")||(o.ClassHandle_isAliasOf=()=>we("'ClassHandle_isAliasOf' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"throwInstanceAlreadyDeleted")||(o.throwInstanceAlreadyDeleted=()=>we("'throwInstanceAlreadyDeleted' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"ClassHandle_clone")||(o.ClassHandle_clone=()=>we("'ClassHandle_clone' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"ClassHandle_delete")||(o.ClassHandle_delete=()=>we("'ClassHandle_delete' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"deletionQueue")||(o.deletionQueue=()=>we("'deletionQueue' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"ClassHandle_isDeleted")||(o.ClassHandle_isDeleted=()=>we("'ClassHandle_isDeleted' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"ClassHandle_deleteLater")||(o.ClassHandle_deleteLater=()=>we("'ClassHandle_deleteLater' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"flushPendingDeletes")||(o.flushPendingDeletes=()=>we("'flushPendingDeletes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"delayFunction")||(o.delayFunction=()=>we("'delayFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"setDelayFunction")||(o.setDelayFunction=()=>we("'setDelayFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"RegisteredClass")||(o.RegisteredClass=()=>we("'RegisteredClass' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"shallowCopyInternalPointer")||(o.shallowCopyInternalPointer=()=>we("'shallowCopyInternalPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"downcastPointer")||(o.downcastPointer=()=>we("'downcastPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"upcastPointer")||(o.upcastPointer=()=>we("'upcastPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"validateThis")||(o.validateThis=()=>we("'validateThis' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"char_0")||(o.char_0=()=>we("'char_0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"char_9")||(o.char_9=()=>we("'char_9' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"makeLegalFunctionName")||(o.makeLegalFunctionName=()=>we("'makeLegalFunctionName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"emval_handle_array")||(o.emval_handle_array=()=>we("'emval_handle_array' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"emval_free_list")||(o.emval_free_list=()=>we("'emval_free_list' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"emval_symbols")||(o.emval_symbols=()=>we("'emval_symbols' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"init_emval")||(o.init_emval=()=>we("'init_emval' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"count_emval_handles")||(o.count_emval_handles=()=>we("'count_emval_handles' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"get_first_emval")||(o.get_first_emval=()=>we("'get_first_emval' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"getStringOrSymbol")||(o.getStringOrSymbol=()=>we("'getStringOrSymbol' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"Emval")||(o.Emval=()=>we("'Emval' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"emval_newers")||(o.emval_newers=()=>we("'emval_newers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"craftEmvalAllocator")||(o.craftEmvalAllocator=()=>we("'craftEmvalAllocator' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"emval_get_global")||(o.emval_get_global=()=>we("'emval_get_global' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"emval_methodCallers")||(o.emval_methodCallers=()=>we("'emval_methodCallers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"emval_registeredMethods")||(o.emval_registeredMethods=()=>we("'emval_registeredMethods' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"warnOnce")||(o.warnOnce=()=>we("'warnOnce' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"stackSave")||(o.stackSave=()=>we("'stackSave' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"stackRestore")||(o.stackRestore=()=>we("'stackRestore' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"stackAlloc")||(o.stackAlloc=()=>we("'stackAlloc' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"AsciiToString")||(o.AsciiToString=()=>we("'AsciiToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"stringToAscii")||(o.stringToAscii=()=>we("'stringToAscii' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"UTF16ToString")||(o.UTF16ToString=()=>we("'UTF16ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"stringToUTF16")||(o.stringToUTF16=()=>we("'stringToUTF16' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"lengthBytesUTF16")||(o.lengthBytesUTF16=()=>we("'lengthBytesUTF16' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"UTF32ToString")||(o.UTF32ToString=()=>we("'UTF32ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"stringToUTF32")||(o.stringToUTF32=()=>we("'stringToUTF32' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"lengthBytesUTF32")||(o.lengthBytesUTF32=()=>we("'lengthBytesUTF32' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"allocateUTF8")||(o.allocateUTF8=()=>we("'allocateUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(o,"allocateUTF8OnStack")||(o.allocateUTF8OnStack=()=>we("'allocateUTF8OnStack' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),o.writeStackCookie=oe,o.checkStackCookie=ie,Object.getOwnPropertyDescriptor(o,"ALLOC_NORMAL")||Object.defineProperty(o,"ALLOC_NORMAL",{configurable:!0,get:function(){we("'ALLOC_NORMAL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(o,"ALLOC_STACK")||Object.defineProperty(o,"ALLOC_STACK",{configurable:!0,get:function(){we("'ALLOC_STACK' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),me=function e(){is||Fs(),is||(me=e)},o.run=Fs,o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Fs(),e.ready});e.exports=r}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(){return(()=>{"use strict";var e,t,n={},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.m=n,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(i,s),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>"static/js/web-renderer-"+{425:"3f92a939c48d943c9273",816:"97ee0746d1b62f4ad2a3"}[e]+".chunk.js",o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="/",(()=>{var e={285:1};o.f.i=(t,n)=>{e[t]||importScripts(o.p+o.u(t))};var t=self.webpackChunk_sketch_hq_sketch_web_renderer=self.webpackChunk_sketch_hq_sketch_web_renderer||[],n=t.push.bind(t);t.push=t=>{var[r,i,s]=t;for(var a in i)o.o(i,a)&&(o.m[a]=i[a]);for(s&&s(o);r.length;)e[r.pop()]=1;n(t)}})();const i={delayedDraw:!0,offscreenCanvas:!1,safariWebGL2:!1,pageBoundariesLimit:!1};var s=/(iPhone|Macintosh|iPad)(.*)(Version)\/(0|[1-9]\d*)\.(0|[1-9]\d*)\.?(0|[1-9]\d*)?/;function a(e){for(var t=e.size(),n=[],r=0;r<t;++r){var o=e.get(r);n.push(o)}return n}var c=function(){function e(){this.listeners={}}return e.prototype.on=function(e,t){var n,r;this.listeners[e]=null!==(n=this.listeners[e])&&void 0!==n?n:new Set,null===(r=this.listeners[e])||void 0===r||r.add(t)},e.prototype.off=function(e,t){var n;null===(n=this.listeners[e])||void 0===n||n.delete(t)},e.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.listeners[e];(null==r?void 0:r.size)&&r.forEach((function(e){Promise.resolve().then((function(){e.apply(void 0,t)}))}))},e}(),u=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r};const l=new(function(){function e(){this.active=!0}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.active&&console.debug.apply(console,u(["[SketchWeb] [Debug]"],e))},e.prototype.warning=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.active&&console.warn.apply(console,u(["[SketchWeb] [Warn]"],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,u(["[SketchWeb] [Error]"],e))},e}());var h,d,p=function(){function e(e){this.label=e,this.startTime=performance.now(),this.startTimestamp=Date.now(),l.debug("[Performance] Start: "+this.label)}return e.prototype.measure=function(){var e=performance.now()-this.startTime;return{duration:e,end:this.startTimestamp+e,start:this.startTimestamp,id:this.label}},e.prototype.printMeasurement=function(){var e=this.measure().duration;if(e<1e3){var t=e.toFixed(2);l.debug("[Performance] End: "+this.label+" -> "+t+" ms")}else{var n=(e/1e3).toFixed(2);l.debug("[Performance] End: "+this.label+" -> "+n+" s")}},e}(),f=(h=function(e,t){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(n,r,o){var i=this.constructor,s=e.call(this,"("+n+") "+r)||this;return s.code=n,s.cause=o,s.name=t.name,Object.setPrototypeOf(s,i.prototype),s}return f(t,e),t}(Error);!function(e){e.debug="debug",e.release="release"}(d||(d={}));var b=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},v=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},y=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},w=(globalThis.indexedDB,function(e){function t(t){var n=t.canvas,r=t.locateFile,o=t.filePath,a=t.imagesURLFormat,c=t.imagesURLMap,u=t.backgroundColor,h=void 0===u?{r:1,g:1,b:1,a:1}:u,f=t.highlightColor,m=void 0===f?{r:0,g:0,b:0,a:1}:f,b=t.size,g=t.pixelRatio,v=t.mode,y=t.showTilesBorders,w=void 0!==y&&y,W=t.minimumZoomLevel,k=t.maximumZoomLevel,P=t.preserveDrawingBuffer,L=void 0!==P&&P,E=t.panBoundariesPadding,R=void 0===E?40:E,x=e.call(this)||this;return x.status={type:"INIT"},x.handleWebGLContextLost=function(){x.setStatus({type:"WEBGL_CONTEXT_LOST"})},x.debouncedFullDraw=function(e,t){var n;function r(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];clearTimeout(n),n=setTimeout((function(){e.apply(void 0,t)}),60)}return r.cancel=function(){n&&clearTimeout(n)},r}((function(){return x.draw(!0)})),x.canvas=n,x.locateFile=r,x.filePath=o,x.imagesURLFormat=a,x.imagesURLMap=c,x.backgroundColor=h,x.highlightColor=m,x.size=b,x.pixelRatio=g,x.mode=v,x.showTilesBorders=w,x.currentWebGLVersion=function(e){if(void 0===e&&(e=window.navigator.userAgent),e.includes("Chrome/")||e.includes("Chromium/")||e.includes("Opera/")||e.includes("Firefox/"))return null;var t=e.match(s);if(!t)return null;var n=t[1];return"Macintosh"!==n&&"iPad"!==n&&"iPhone"!==n?null:{hardware:n,version:{major:parseInt(t[4])||0,minor:parseInt(t[5])||0,patch:parseInt(t[6])||0}}}()&&!i.safariWebGL2?1:"undefined"!=typeof WebGL2RenderingContext?2:1,x.zoomLevels={min:W,max:k},x.preserveDrawingBuffer=L,x.panBoundariesPadding=R,l.active=v===d.debug,x.traceFirstPaint=new p("FirstPaint"),x}return b(t,e),t.prototype.init=function(){return v(this,void 0,void 0,(function(){var e;return y(this,(function(t){switch(t.label){case 0:this.setStatus({type:"INIT"}),t.label=1;case 1:return t.trys.push([1,5,,6]),[4,this.initSketchWebWasm()];case 2:return t.sent(),[4,this.setFile(this.filePath)];case 3:return t.sent(),[4,this.preloadImages()];case 4:return t.sent(),[3,6];case 5:return e=t.sent(),[2,this.fail(e instanceof m?e:new m("ERROR","Unexpected exception initializing the web renderer",e))];case 6:return[2]}}))}))},t.prototype.preloadImages=function(){var e=this;return new Promise((function(t){var n;null===(n=e.sketchWebWasm)||void 0===n||n.preloadImages((function(){t()}))}))},t.prototype.startRendering=function(){this.traceInitialRender=new p("InitialRender"),this.setStatus({type:"DRAWING_FILE"}),this.draw(!0,!1),this.sketchWebWasm.startRenderLoop()},t.prototype.createJSBridge=function(){var e=this;return{logDebug:function(e){l.debug("[C++] "+e)},logWarning:function(e){l.warning("[C++] "+e)},logError:function(e){l.error("[C++] "+e)},emitMetric:function(t,n,r,o){e.emit("metric",{id:t,start:n,end:r,duration:o})},resolveImageUrl:function(t){return e.imagesURLFormat?e.imagesURLFormat.replace(":imageId",t):e.imagesURLMap&&e.imagesURLMap[t]?e.imagesURLMap[t]:(l.warning("Not able to resolve the url for the image with UUID: "+t),"")},onDrawComplete:this.handleDrawComplete.bind(this),onAllImagesReady:function(){e.emit("allImagesReady")}}},t.prototype.downloadImages=function(){var e=this;return new Promise((function(t){var n,r=new p("ImagesDownload");null===(n=e.sketchWebWasm)||void 0===n||n.downloadImages((function(){r.printMeasurement(),e.emit("metric",r.measure()),l.debug("Images downloaded"),t()}))}))},t.prototype.initSketchWebWasm=function(){return v(this,void 0,void 0,(function(){var e,t,n,r,s,a,c,u=this;return y(this,(function(h){switch(h.label){case 0:return e=new p("WasmModuleDownload"),this.mode!==d.debug?[3,2]:[4,o.e(425).then(o.t.bind(o,425,23))];case 1:return t=h.sent(),[3,4];case 2:return[4,o.e(816).then(o.t.bind(o,816,23))];case 3:t=h.sent(),h.label=4;case 4:n=t.default,h.label=5;case 5:return h.trys.push([5,7,,8]),r=this,[4,n({FeatureFlags:i,currentWebGLVersion:this.currentWebGLVersion,locateFile:function(e){return u.locateFile.replace("{file}",e)},bridge:this.createJSBridge()})];case 6:return r.wasmModule=h.sent(),[3,8];case 7:throw s=h.sent(),new m("WASM_ERROR","An error occurred while trying to create the wasm module.",s);case 8:if(e.printMeasurement(),this.emit("metric",e.measure()),a={antialias:!1,majorVersion:this.currentWebGLVersion,alpha:!0,powerPreference:"high-performance",preserveDrawingBuffer:this.preserveDrawingBuffer},l.debug("Using WebGL "+a.majorVersion),!(c=this.wasmModule.GL.createContext(this.canvas,a)))throw new m("WEBGL_ERROR","Unable to create WebGL context. WebGL might be unsupported, disabled, or this device is not able to run WebGL correctly.");this.webglCtxHandle=c;try{this.sketchWebWasm=this.wasmModule.SketchWeb.MakeGL(this.webglCtxHandle,this.canvas.width,this.size.height)}catch(e){throw new m("WASM_ERROR","An error occurred while trying to create the SketchWebWasm object.",e)}return this.sketchWebWasm.setPixelRatio(this.pixelRatio),this.sketchWebWasm.setBackgroundColor(this.backgroundColor.r,this.backgroundColor.g,this.backgroundColor.b,this.backgroundColor.a),this.sketchWebWasm.setHighlightColor(this.highlightColor.r,this.highlightColor.g,this.highlightColor.b,this.highlightColor.a),this.sketchWebWasm.setRendererConfiguration({showTilesBorders:this.showTilesBorders}),this.sketchWebWasm.setZoomLevels(this.zoomLevels.min,this.zoomLevels.max),this.sketchWebWasm.setPanBoundariesPadding(this.panBoundariesPadding),this.canvas.addEventListener("webglcontextlost",this.handleWebGLContextLost),[2]}}))}))},t.prototype.generateDocumentPNG=function(){return v(this,void 0,void 0,(function(){return y(this,(function(e){switch(e.label){case 0:return[4,this.downloadImages()];case 1:return e.sent(),[2,this.sketchWebWasm.generateDocumentPNG()]}}))}))},t.prototype.handleDrawComplete=function(){"DRAWING_FILE"===this.status.type&&(this.traceInitialRender.printMeasurement(),this.emit("metric",this.traceInitialRender.measure()),this.traceFirstPaint.printMeasurement(),this.emit("metric",this.traceFirstPaint.measure()),this.setStatus({type:"READY"}),this.downloadImages())},t.prototype.looseWebGLContext=function(){var e=this.wasmModule.GL.getContext(this.webglCtxHandle);if(e){var t=e.GLctx.getExtension("WEBGL_lose_context");t?t.loseContext():console.warn("Unable to retrieve WEBGL_lose_context extension")}else console.warn("Unable to loose context. WebGL rendering context not found")},t.prototype.scaleDocumentToFit=function(){var e;null===(e=this.sketchWebWasm)||void 0===e||e.scaleDocumentToFit(),this.delayedDraw()},t.prototype.setFile=function(e){return v(this,void 0,void 0,(function(){var t=this;return y(this,(function(n){return this.setStatus({type:"LOADING_FILE"}),[2,new Promise((function(n,r){t.sketchWebWasm.setFile(e,(function(e){if(void 0===e&&(e=[]),e.length){l.debug("Parser warnings: "+e);var r=e.map((function(e){return{key:e}}));t.emit("warnings",r)}t.setStatus({type:"FILE_READY"}),t.emit("fileReady",t.getDocument()),n()}),(function(){return r(new m("FILE_ERROR","Error encountered while fetching and parsing the file"))}))}))]}))}))},t.prototype.delayedDraw=function(){if(!i.delayedDraw)return this.draw(!0);this.draw(),this.debouncedFullDraw()},t.prototype.draw=function(e,t){var n;void 0===e&&(e=!1),void 0===t&&(t=!1),null===(n=this.sketchWebWasm)||void 0===n||n.setNeedsUpdate(e,t)},t.prototype.fail=function(e){this.setStatus({type:"FAILURE",code:e.code,message:e.toString()+(e.cause?"\nWrapped Error: "+e.cause.toString():"")}),l.error(e),e.cause&&l.error(e.cause)},t.prototype.setPixelRatio=function(e){var t;this.pixelRatio=e,null===(t=this.sketchWebWasm)||void 0===t||t.setPixelRatio(e),this.delayedDraw()},t.prototype.setSize=function(e,t){var n;this.size.width=e,this.size.height=t,this.canvas.width=e,this.canvas.height=t,null===(n=this.sketchWebWasm)||void 0===n||n.resize(e,t)},t.prototype.setStatus=function(e){"FAILURE"!==this.status.type&&(l.debug("Status transition "+this.status.type+" => "+e.type+"}"),this.status=e,this.emit("status",e))},t.prototype.getDocument=function(){if(!this.sketchWebWasm)return null;if(!this.cachedDocumentInfo||this.cachedDocumentInfo.filePath!==this.filePath){var e=this.sketchWebWasm.getDocument();this.cachedDocumentInfo={filePath:this.filePath,document:g(g({},e),{artboards:a(e.artboards)})}}return this.cachedDocumentInfo.document},t.prototype.getArtboardAtPosition=function(e,t){var n;return null===(n=this.sketchWebWasm)||void 0===n?void 0:n.getArtboardAtPosition(e,t)},t.prototype.getPanAtPosition=function(e,t){var n;return null===(n=this.sketchWebWasm)||void 0===n?void 0:n.getPanAtPosition(e,t)},t.prototype.getStatus=function(){return this.status},t.prototype.setZoom=function(e,t){var n,r;null===(n=this.sketchWebWasm)||void 0===n||n.setZoomCenter(t.x,t.y),null===(r=this.sketchWebWasm)||void 0===r||r.setZoom(e),this.delayedDraw()},t.prototype.addZoom=function(e,t){var n,r;null===(n=this.sketchWebWasm)||void 0===n||n.setZoomCenter(t.x,t.y),null===(r=this.sketchWebWasm)||void 0===r||r.addZoom(e),this.delayedDraw()},t.prototype.setPan=function(e,t,n){var r;void 0===n&&(n=!1),null===(r=this.sketchWebWasm)||void 0===r||r.setPan(e,t,n),this.delayedDraw()},t.prototype.addPan=function(e,t){var n;null===(n=this.sketchWebWasm)||void 0===n||n.addPan(e,t),this.delayedDraw()},t.prototype.getPan=function(){if(this.sketchWebWasm)return this.sketchWebWasm.getPan()},t.prototype.getZoom=function(){var e;return null===(e=this.sketchWebWasm)||void 0===e?void 0:e.getZoom()},t.prototype.setMouse=function(e,t){var n;null===(n=this.sketchWebWasm)||void 0===n||n.setMouse(e,t)},t.prototype.setIsCameraMoving=function(e){var t;null===(t=this.sketchWebWasm)||void 0===t||t.setIsCameraMoving(e)},t.prototype.dispose=function(){var e,t;try{null===(e=this.sketchWebWasm)||void 0===e||e.stopRenderLoop(),null===(t=this.sketchWebWasm)||void 0===t||t.delete(),this.looseWebGLContext(),this.sketchWebWasm=null,this.wasmModule=null}catch(e){this.fail(new m("ERROR","Unexpected exception while disposing the SketchWebWasm object",e))}},t}(c));const W=Symbol("Comlink.proxy"),k=Symbol("Comlink.endpoint"),P=Symbol("Comlink.releaseProxy"),L=Symbol("Comlink.thrown"),E=e=>"object"==typeof e&&null!==e||"function"==typeof e,R=new Map([["proxy",{canHandle:e=>E(e)&&e[W],serialize(e){const{port1:t,port2:n}=new MessageChannel;return x(e,t),[n,[n]]},deserialize:e=>(e.start(),_(e,[],undefined))}],["throw",{canHandle:e=>E(e)&&L in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function x(e,t=self){t.addEventListener("message",(function n(r){if(!r||!r.data)return;const{id:o,type:i,path:s}=Object.assign({path:[]},r.data),a=(r.data.argumentList||[]).map(M);let c;try{const t=s.slice(0,-1).reduce(((e,t)=>e[t]),e),n=s.reduce(((e,t)=>e[t]),e);switch(i){case"GET":c=n;break;case"SET":t[s.slice(-1)[0]]=M(r.data.value),c=!0;break;case"APPLY":c=n.apply(t,a);break;case"CONSTRUCT":c=function(e){return Object.assign(e,{[W]:!0})}(new n(...a));break;case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel;x(e,n),c=function(e,t){return D.set(e,t),e}(t,[t])}break;case"RELEASE":c=void 0;break;default:return}}catch(e){c={value:e,[L]:0}}Promise.resolve(c).catch((e=>({value:e,[L]:0}))).then((e=>{const[r,s]=I(e);t.postMessage(Object.assign(Object.assign({},r),{id:o}),s),"RELEASE"===i&&(t.removeEventListener("message",n),S(t))}))})),t.start&&t.start()}function S(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function C(e){if(e)throw new Error("Proxy has been released and is not useable")}function _(e,t=[],n=function(){}){let r=!1;const o=new Proxy(n,{get(n,i){if(C(r),i===P)return()=>j(e,{type:"RELEASE",path:t.map((e=>e.toString()))}).then((()=>{S(e),r=!0}));if("then"===i){if(0===t.length)return{then:()=>o};const n=j(e,{type:"GET",path:t.map((e=>e.toString()))}).then(M);return n.then.bind(n)}return _(e,[...t,i])},set(n,o,i){C(r);const[s,a]=I(i);return j(e,{type:"SET",path:[...t,o].map((e=>e.toString())),value:s},a).then(M)},apply(n,o,i){C(r);const s=t[t.length-1];if(s===k)return j(e,{type:"ENDPOINT"}).then(M);if("bind"===s)return _(e,t.slice(0,-1));const[a,c]=O(i);return j(e,{type:"APPLY",path:t.map((e=>e.toString())),argumentList:a},c).then(M)},construct(n,o){C(r);const[i,s]=O(o);return j(e,{type:"CONSTRUCT",path:t.map((e=>e.toString())),argumentList:i},s).then(M)}});return o}function O(e){const t=e.map(I);return[t.map((e=>e[0])),(n=t.map((e=>e[1])),Array.prototype.concat.apply([],n))];var n}const D=new WeakMap;function I(e){for(const[t,n]of R)if(n.canHandle(e)){const[r,o]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},o]}return[{type:"RAW",value:e},D.get(e)||[]]}function M(e){switch(e.type){case"HANDLER":return R.get(e.name).deserialize(e.value);case"RAW":return e.value}}function j(e,t,n){return new Promise((r=>{const o=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");e.addEventListener("message",(function t(n){n.data&&n.data.id&&n.data.id===o&&(e.removeEventListener("message",t),r(n.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),n)}))}return x(w),{}})()}));
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(){return(()=>{"use strict";var e,t,n={},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.m=n,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(i,s),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>"static/js/web-renderer-"+{425:"64689ceb09327c7a0612",816:"153eddb1ca5fe2b48a1c"}[e]+".chunk.js",o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="/",(()=>{var e={285:1};o.f.i=(t,n)=>{e[t]||importScripts(o.p+o.u(t))};var t=self.webpackChunk_sketch_hq_sketch_web_renderer=self.webpackChunk_sketch_hq_sketch_web_renderer||[],n=t.push.bind(t);t.push=t=>{var[r,i,s]=t;for(var a in i)o.o(i,a)&&(o.m[a]=i[a]);for(s&&s(o);r.length;)e[r.pop()]=1;n(t)}})();const i={delayedDraw:!0,offscreenCanvas:!1,safariWebGL2:!1,pageBoundariesLimit:!1};var s=/(iPhone|Macintosh|iPad)(.*)(Version)\/(0|[1-9]\d*)\.(0|[1-9]\d*)\.?(0|[1-9]\d*)?/;function a(e){for(var t=e.size(),n=[],r=0;r<t;++r){var o=e.get(r);n.push(o)}return n}var c=function(){function e(){this.listeners={}}return e.prototype.on=function(e,t){var n,r;this.listeners[e]=null!==(n=this.listeners[e])&&void 0!==n?n:new Set,null===(r=this.listeners[e])||void 0===r||r.add(t)},e.prototype.off=function(e,t){var n;null===(n=this.listeners[e])||void 0===n||n.delete(t)},e.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.listeners[e];(null==r?void 0:r.size)&&r.forEach((function(e){Promise.resolve().then((function(){e.apply(void 0,t)}))}))},e}(),u=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r};const l=new(function(){function e(){this.active=!0}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.active&&console.debug.apply(console,u(["[SketchWeb] [Debug]"],e))},e.prototype.warning=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.active&&console.warn.apply(console,u(["[SketchWeb] [Warn]"],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,u(["[SketchWeb] [Error]"],e))},e}());var h,d,p=function(){function e(e){this.label=e,this.startTime=performance.now(),this.startTimestamp=Date.now(),l.debug("[Performance] Start: "+this.label)}return e.prototype.measure=function(){var e=performance.now()-this.startTime;return{duration:e,end:this.startTimestamp+e,start:this.startTimestamp,id:this.label}},e.prototype.printMeasurement=function(){var e=this.measure().duration;if(e<1e3){var t=e.toFixed(2);l.debug("[Performance] End: "+this.label+" -> "+t+" ms")}else{var n=(e/1e3).toFixed(2);l.debug("[Performance] End: "+this.label+" -> "+n+" s")}},e}(),f=(h=function(e,t){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(n,r,o){var i=this.constructor,s=e.call(this,"("+n+") "+r)||this;return s.code=n,s.cause=o,s.name=t.name,Object.setPrototypeOf(s,i.prototype),s}return f(t,e),t}(Error);!function(e){e.debug="debug",e.release="release"}(d||(d={}));var b=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},v=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},y=function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},w=(globalThis.indexedDB,function(e){function t(t){var n=t.canvas,r=t.locateFile,o=t.filePath,a=t.imagesURLFormat,c=t.imagesURLMap,u=t.backgroundColor,h=void 0===u?{r:1,g:1,b:1,a:1}:u,f=t.highlightColor,m=void 0===f?{r:0,g:0,b:0,a:1}:f,b=t.size,g=t.pixelRatio,v=t.mode,y=t.showTilesBorders,w=void 0!==y&&y,W=t.minimumZoomLevel,k=t.maximumZoomLevel,P=t.preserveDrawingBuffer,L=void 0!==P&&P,E=t.panBoundariesPadding,R=void 0===E?40:E,x=e.call(this)||this;return x.status={type:"INIT"},x.handleWebGLContextLost=function(){x.setStatus({type:"WEBGL_CONTEXT_LOST"})},x.debouncedFullDraw=function(e,t){var n;function r(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];clearTimeout(n),n=setTimeout((function(){e.apply(void 0,t)}),60)}return r.cancel=function(){n&&clearTimeout(n)},r}((function(){return x.draw(!0)})),x.canvas=n,x.locateFile=r,x.filePath=o,x.imagesURLFormat=a,x.imagesURLMap=c,x.backgroundColor=h,x.highlightColor=m,x.size=b,x.pixelRatio=g,x.mode=v,x.showTilesBorders=w,x.currentWebGLVersion=function(e){if(void 0===e&&(e=window.navigator.userAgent),e.includes("Chrome/")||e.includes("Chromium/")||e.includes("Opera/")||e.includes("Firefox/"))return null;var t=e.match(s);if(!t)return null;var n=t[1];return"Macintosh"!==n&&"iPad"!==n&&"iPhone"!==n?null:{hardware:n,version:{major:parseInt(t[4])||0,minor:parseInt(t[5])||0,patch:parseInt(t[6])||0}}}()&&!i.safariWebGL2?1:"undefined"!=typeof WebGL2RenderingContext?2:1,x.zoomLevels={min:W,max:k},x.preserveDrawingBuffer=L,x.panBoundariesPadding=R,l.active=v===d.debug,x.traceFirstPaint=new p("FirstPaint"),x}return b(t,e),t.prototype.init=function(){return v(this,void 0,void 0,(function(){var e;return y(this,(function(t){switch(t.label){case 0:this.setStatus({type:"INIT"}),t.label=1;case 1:return t.trys.push([1,5,,6]),[4,this.initSketchWebWasm()];case 2:return t.sent(),[4,this.setFile(this.filePath)];case 3:return t.sent(),[4,this.preloadImages()];case 4:return t.sent(),[3,6];case 5:return e=t.sent(),[2,this.fail(e instanceof m?e:new m("ERROR","Unexpected exception initializing the web renderer",e))];case 6:return[2]}}))}))},t.prototype.preloadImages=function(){var e=this;return new Promise((function(t){var n;null===(n=e.sketchWebWasm)||void 0===n||n.preloadImages((function(){t()}))}))},t.prototype.startRendering=function(){this.traceInitialRender=new p("InitialRender"),this.setStatus({type:"DRAWING_FILE"}),this.draw(!0,!1),this.sketchWebWasm.startRenderLoop()},t.prototype.createJSBridge=function(){var e=this;return{logDebug:function(e){l.debug("[C++] "+e)},logWarning:function(e){l.warning("[C++] "+e)},logError:function(e){l.error("[C++] "+e)},emitMetric:function(t,n,r,o){e.emit("metric",{id:t,start:n,end:r,duration:o})},resolveImageUrl:function(t){return e.imagesURLFormat?e.imagesURLFormat.replace(":imageId",t):e.imagesURLMap&&e.imagesURLMap[t]?e.imagesURLMap[t]:(l.warning("Not able to resolve the url for the image with UUID: "+t),"")},onDrawComplete:this.handleDrawComplete.bind(this),onAllImagesReady:function(){e.emit("allImagesReady")}}},t.prototype.downloadImages=function(){var e=this;return new Promise((function(t){var n,r=new p("ImagesDownload");null===(n=e.sketchWebWasm)||void 0===n||n.downloadImages((function(){r.printMeasurement(),e.emit("metric",r.measure()),l.debug("Images downloaded"),t()}))}))},t.prototype.initSketchWebWasm=function(){return v(this,void 0,void 0,(function(){var e,t,n,r,s,a,c,u=this;return y(this,(function(h){switch(h.label){case 0:return e=new p("WasmModuleDownload"),this.mode!==d.debug?[3,2]:[4,o.e(425).then(o.t.bind(o,425,23))];case 1:return t=h.sent(),[3,4];case 2:return[4,o.e(816).then(o.t.bind(o,816,23))];case 3:t=h.sent(),h.label=4;case 4:n=t.default,h.label=5;case 5:return h.trys.push([5,7,,8]),r=this,[4,n({FeatureFlags:i,currentWebGLVersion:this.currentWebGLVersion,locateFile:function(e){return u.locateFile.replace("{file}",e)},bridge:this.createJSBridge()})];case 6:return r.wasmModule=h.sent(),[3,8];case 7:throw s=h.sent(),new m("WASM_ERROR","An error occurred while trying to create the wasm module.",s);case 8:if(e.printMeasurement(),this.emit("metric",e.measure()),a={antialias:!1,majorVersion:this.currentWebGLVersion,alpha:!0,powerPreference:"high-performance",preserveDrawingBuffer:this.preserveDrawingBuffer},l.debug("Using WebGL "+a.majorVersion),!(c=this.wasmModule.GL.createContext(this.canvas,a)))throw new m("WEBGL_ERROR","Unable to create WebGL context. WebGL might be unsupported, disabled, or this device is not able to run WebGL correctly.");this.webglCtxHandle=c;try{this.sketchWebWasm=this.wasmModule.SketchWeb.MakeGL(this.webglCtxHandle,this.canvas.width,this.size.height)}catch(e){throw new m("WASM_ERROR","An error occurred while trying to create the SketchWebWasm object.",e)}return this.sketchWebWasm.setPixelRatio(this.pixelRatio),this.sketchWebWasm.setBackgroundColor(this.backgroundColor.r,this.backgroundColor.g,this.backgroundColor.b,this.backgroundColor.a),this.sketchWebWasm.setHighlightColor(this.highlightColor.r,this.highlightColor.g,this.highlightColor.b,this.highlightColor.a),this.sketchWebWasm.setRendererConfiguration({showTilesBorders:this.showTilesBorders}),this.sketchWebWasm.setZoomLevels(this.zoomLevels.min,this.zoomLevels.max),this.sketchWebWasm.setPanBoundariesPadding(this.panBoundariesPadding),this.canvas.addEventListener("webglcontextlost",this.handleWebGLContextLost),[2]}}))}))},t.prototype.generateDocumentPNG=function(){return v(this,void 0,void 0,(function(){return y(this,(function(e){switch(e.label){case 0:return[4,this.downloadImages()];case 1:return e.sent(),[2,this.sketchWebWasm.generateDocumentPNG()]}}))}))},t.prototype.handleDrawComplete=function(){"DRAWING_FILE"===this.status.type&&(this.traceInitialRender.printMeasurement(),this.emit("metric",this.traceInitialRender.measure()),this.traceFirstPaint.printMeasurement(),this.emit("metric",this.traceFirstPaint.measure()),this.setStatus({type:"READY"}),this.downloadImages())},t.prototype.looseWebGLContext=function(){var e=this.wasmModule.GL.getContext(this.webglCtxHandle);if(e){var t=e.GLctx.getExtension("WEBGL_lose_context");t?t.loseContext():console.warn("Unable to retrieve WEBGL_lose_context extension")}else console.warn("Unable to loose context. WebGL rendering context not found")},t.prototype.scaleDocumentToFit=function(){var e;null===(e=this.sketchWebWasm)||void 0===e||e.scaleDocumentToFit(),this.delayedDraw()},t.prototype.setFile=function(e){return v(this,void 0,void 0,(function(){var t=this;return y(this,(function(n){return this.setStatus({type:"LOADING_FILE"}),[2,new Promise((function(n,r){t.sketchWebWasm.setFile(e,(function(e){if(void 0===e&&(e=[]),e.length){l.debug("Parser warnings: "+e);var r=e.map((function(e){return{key:e}}));t.emit("warnings",r)}t.setStatus({type:"FILE_READY"}),t.emit("fileReady",t.getDocument()),n()}),(function(){return r(new m("FILE_ERROR","Error encountered while fetching and parsing the file"))}))}))]}))}))},t.prototype.delayedDraw=function(){if(!i.delayedDraw)return this.draw(!0);this.draw(),this.debouncedFullDraw()},t.prototype.draw=function(e,t){var n;void 0===e&&(e=!1),void 0===t&&(t=!1),null===(n=this.sketchWebWasm)||void 0===n||n.setNeedsUpdate(e,t)},t.prototype.fail=function(e){this.setStatus({type:"FAILURE",code:e.code,message:e.toString()+(e.cause?"\nWrapped Error: "+e.cause.toString():"")}),l.error(e),e.cause&&l.error(e.cause)},t.prototype.setPixelRatio=function(e){var t;this.pixelRatio=e,null===(t=this.sketchWebWasm)||void 0===t||t.setPixelRatio(e),this.delayedDraw()},t.prototype.setSize=function(e,t){var n;this.size.width=e,this.size.height=t,this.canvas.width=e,this.canvas.height=t,null===(n=this.sketchWebWasm)||void 0===n||n.resize(e,t)},t.prototype.setStatus=function(e){"FAILURE"!==this.status.type&&(l.debug("Status transition "+this.status.type+" => "+e.type+"}"),this.status=e,this.emit("status",e))},t.prototype.getDocument=function(){if(!this.sketchWebWasm)return null;if(!this.cachedDocumentInfo||this.cachedDocumentInfo.filePath!==this.filePath){var e=this.sketchWebWasm.getDocument();this.cachedDocumentInfo={filePath:this.filePath,document:g(g({},e),{artboards:a(e.artboards)})}}return this.cachedDocumentInfo.document},t.prototype.getArtboardAtPosition=function(e,t){var n;return null===(n=this.sketchWebWasm)||void 0===n?void 0:n.getArtboardAtPosition(e,t)},t.prototype.getPanAtPosition=function(e,t){var n;return null===(n=this.sketchWebWasm)||void 0===n?void 0:n.getPanAtPosition(e,t)},t.prototype.getStatus=function(){return this.status},t.prototype.setZoom=function(e,t){var n,r;null===(n=this.sketchWebWasm)||void 0===n||n.setZoomCenter(t.x,t.y),null===(r=this.sketchWebWasm)||void 0===r||r.setZoom(e),this.delayedDraw()},t.prototype.addZoom=function(e,t){var n,r;null===(n=this.sketchWebWasm)||void 0===n||n.setZoomCenter(t.x,t.y),null===(r=this.sketchWebWasm)||void 0===r||r.addZoom(e),this.delayedDraw()},t.prototype.setPan=function(e,t,n){var r;void 0===n&&(n=!1),null===(r=this.sketchWebWasm)||void 0===r||r.setPan(e,t,n),this.delayedDraw()},t.prototype.addPan=function(e,t){var n;null===(n=this.sketchWebWasm)||void 0===n||n.addPan(e,t),this.delayedDraw()},t.prototype.getPan=function(){if(this.sketchWebWasm)return this.sketchWebWasm.getPan()},t.prototype.getZoom=function(){var e;return null===(e=this.sketchWebWasm)||void 0===e?void 0:e.getZoom()},t.prototype.setMouse=function(e,t){var n;null===(n=this.sketchWebWasm)||void 0===n||n.setMouse(e,t)},t.prototype.setIsCameraMoving=function(e){var t;null===(t=this.sketchWebWasm)||void 0===t||t.setIsCameraMoving(e)},t.prototype.dispose=function(){var e,t;try{null===(e=this.sketchWebWasm)||void 0===e||e.stopRenderLoop(),null===(t=this.sketchWebWasm)||void 0===t||t.delete(),this.looseWebGLContext(),this.sketchWebWasm=null,this.wasmModule=null}catch(e){this.fail(new m("ERROR","Unexpected exception while disposing the SketchWebWasm object",e))}},t}(c));const W=Symbol("Comlink.proxy"),k=Symbol("Comlink.endpoint"),P=Symbol("Comlink.releaseProxy"),L=Symbol("Comlink.thrown"),E=e=>"object"==typeof e&&null!==e||"function"==typeof e,R=new Map([["proxy",{canHandle:e=>E(e)&&e[W],serialize(e){const{port1:t,port2:n}=new MessageChannel;return x(e,t),[n,[n]]},deserialize:e=>(e.start(),_(e,[],undefined))}],["throw",{canHandle:e=>E(e)&&L in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function x(e,t=self){t.addEventListener("message",(function n(r){if(!r||!r.data)return;const{id:o,type:i,path:s}=Object.assign({path:[]},r.data),a=(r.data.argumentList||[]).map(M);let c;try{const t=s.slice(0,-1).reduce(((e,t)=>e[t]),e),n=s.reduce(((e,t)=>e[t]),e);switch(i){case"GET":c=n;break;case"SET":t[s.slice(-1)[0]]=M(r.data.value),c=!0;break;case"APPLY":c=n.apply(t,a);break;case"CONSTRUCT":c=function(e){return Object.assign(e,{[W]:!0})}(new n(...a));break;case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel;x(e,n),c=function(e,t){return D.set(e,t),e}(t,[t])}break;case"RELEASE":c=void 0;break;default:return}}catch(e){c={value:e,[L]:0}}Promise.resolve(c).catch((e=>({value:e,[L]:0}))).then((e=>{const[r,s]=I(e);t.postMessage(Object.assign(Object.assign({},r),{id:o}),s),"RELEASE"===i&&(t.removeEventListener("message",n),S(t))}))})),t.start&&t.start()}function S(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function C(e){if(e)throw new Error("Proxy has been released and is not useable")}function _(e,t=[],n=function(){}){let r=!1;const o=new Proxy(n,{get(n,i){if(C(r),i===P)return()=>j(e,{type:"RELEASE",path:t.map((e=>e.toString()))}).then((()=>{S(e),r=!0}));if("then"===i){if(0===t.length)return{then:()=>o};const n=j(e,{type:"GET",path:t.map((e=>e.toString()))}).then(M);return n.then.bind(n)}return _(e,[...t,i])},set(n,o,i){C(r);const[s,a]=I(i);return j(e,{type:"SET",path:[...t,o].map((e=>e.toString())),value:s},a).then(M)},apply(n,o,i){C(r);const s=t[t.length-1];if(s===k)return j(e,{type:"ENDPOINT"}).then(M);if("bind"===s)return _(e,t.slice(0,-1));const[a,c]=O(i);return j(e,{type:"APPLY",path:t.map((e=>e.toString())),argumentList:a},c).then(M)},construct(n,o){C(r);const[i,s]=O(o);return j(e,{type:"CONSTRUCT",path:t.map((e=>e.toString())),argumentList:i},s).then(M)}});return o}function O(e){const t=e.map(I);return[t.map((e=>e[0])),(n=t.map((e=>e[1])),Array.prototype.concat.apply([],n))];var n}const D=new WeakMap;function I(e){for(const[t,n]of R)if(n.canHandle(e)){const[r,o]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},o]}return[{type:"RAW",value:e},D.get(e)||[]]}function M(e){switch(e.type){case"HANDLER":return R.get(e.name).deserialize(e.value);case"RAW":return e.value}}function j(e,t,n){return new Promise((r=>{const o=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");e.addEventListener("message",(function t(n){n.data&&n.data.id&&n.data.id===o&&(e.removeEventListener("message",t),r(n.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),n)}))}return x(w),{}})()}));
|
|
@@ -3,11 +3,14 @@ import { FlattenSimpleInterpolation } from 'styled-components';
|
|
|
3
3
|
export interface ShadowRootProps {
|
|
4
4
|
injectedStyles?: string | FlattenSimpleInterpolation;
|
|
5
5
|
}
|
|
6
|
+
export interface WithShadowRootProps {
|
|
7
|
+
useShadowRoot: boolean;
|
|
8
|
+
}
|
|
6
9
|
/**
|
|
7
10
|
* The ShadowRoot component creates the ShadowDom asynchronously,
|
|
8
11
|
* so the useEffect hooks are invoked before the ShadowDom is created, and this means that the children are still not rendered.
|
|
9
12
|
*
|
|
10
13
|
* By keeping the child as a separate component in the tree, the useEffects will be invoked correctly.
|
|
11
14
|
*/
|
|
12
|
-
export declare function withShadowRoot<Props>(Element: React.ComponentType<Props>): React.FC<Props & ShadowRootProps>;
|
|
15
|
+
export declare function withShadowRoot<Props>(Element: React.ComponentType<Props>): React.FC<Props & ShadowRootProps & WithShadowRootProps>;
|
|
13
16
|
//# sourceMappingURL=ShadowRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShadowRoot.d.ts","sourceRoot":"","sources":["../../../src/ts/react/ShadowRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAA;AAE/C,OAAO,EAGL,0BAA0B,EAC3B,MAAM,mBAAmB,CAAA;AAG1B,MAAM,WAAW,eAAe;IAC9B,cAAc,CAAC,EAAE,MAAM,GAAG,0BAA0B,CAAA;CACrD;AAoED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"ShadowRoot.d.ts","sourceRoot":"","sources":["../../../src/ts/react/ShadowRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAA;AAE/C,OAAO,EAGL,0BAA0B,EAC3B,MAAM,mBAAmB,CAAA;AAG1B,MAAM,WAAW,eAAe;IAC9B,cAAc,CAAC,EAAE,MAAM,GAAG,0BAA0B,CAAA;CACrD;AAoED,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,OAAO,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,2DAgBxE"}
|
|
@@ -7,5 +7,5 @@ export declare type SketchWebProps = Omit<ManagerSettings, 'filePath' | 'contain
|
|
|
7
7
|
export declare const SketchWebReact: React.FC<Pick<ManagerSettings, "locateFile" | "imagesURLFormat" | "imagesURLMap" | "backgroundColor" | "highlightColor" | "mode" | "showTilesBorders" | "minimumZoomLevel" | "maximumZoomLevel" | "preserveDrawingBuffer" | "panBoundariesPadding" | "initialZoom" | "initialPan"> & Partial<Pick<ManagerSettings, "filePath">> & {
|
|
8
8
|
onCanvasClick?: ((e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
9
9
|
onCanvasContextMenu?: ((e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
10
|
-
} & import("./ShadowRoot").ShadowRootProps>;
|
|
10
|
+
} & import("./ShadowRoot").ShadowRootProps & import("./ShadowRoot").WithShadowRootProps>;
|
|
11
11
|
//# sourceMappingURL=SketchWebReact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SketchWebReact.d.ts","sourceRoot":"","sources":["../../../src/ts/react/SketchWebReact.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAA;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAO5C,oBAAY,cAAc,GAAG,IAAI,CAC/B,eAAe,EACf,UAAU,GAAG,WAAW,GAAG,QAAQ,CACpC,GACC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,GAAG;IAC3C,aAAa,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,KAAK,IAAI,CAAA;IACzE,mBAAmB,CAAC,EAAE,CACpB,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,KAC5C,IAAI,CAAA;CACV,CAAA;AA2IH,eAAO,MAAM,cAAc;yBA/IH,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,KAAK,IAAI;+BAEpE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,KAC5C,IAAI;
|
|
1
|
+
{"version":3,"file":"SketchWebReact.d.ts","sourceRoot":"","sources":["../../../src/ts/react/SketchWebReact.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAA;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAO5C,oBAAY,cAAc,GAAG,IAAI,CAC/B,eAAe,EACf,UAAU,GAAG,WAAW,GAAG,QAAQ,CACpC,GACC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,GAAG;IAC3C,aAAa,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,KAAK,IAAI,CAAA;IACzE,mBAAmB,CAAC,EAAE,CACpB,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,KAC5C,IAAI,CAAA;CACV,CAAA;AA2IH,eAAO,MAAM,cAAc;yBA/IH,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,KAAK,IAAI;+BAEpE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,KAC5C,IAAI;wFA4IoD,CAAA"}
|