// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define(["exports","./_commonjsHelpers"],function(Z,q){var H={exports:{}};(function(aa,I){I=(()=>{var J="undefined"!==typeof document&&document.currentScript?document.currentScript.src:void 0;return function(a){function ba(b){return a.locateFile?a.locateFile(b,k):k+b}function B(b,c,e){var f=c+e;for(e=c;b[e]&&!(e>=f);)++e;if(16d?f+=String.fromCharCode(d):(d-=65536,f+=String.fromCharCode(55296|d>>10,56320|d&1023))}}else f+=String.fromCharCode(d)}return f}function L(b){M=b;a.HEAP8=r=new Int8Array(b);a.HEAP16=new Int16Array(b);a.HEAP32=n=new Int32Array(b);a.HEAPU8=p=new Uint8Array(b);a.HEAPU16=new Uint16Array(b);a.HEAPU32=l=new Uint32Array(b);a.HEAPF32=new Float32Array(b);a.HEAPF64=new Float64Array(b)}function t(b){if(a.onAbort)a.onAbort(b);b="Aborted("+ b+")";u(b);N=!0;b=new WebAssembly.RuntimeError(b+". Build with -sASSERTIONS for more info.");D(b);throw b;}function O(b){try{if(b==h&&v)return new Uint8Array(v);if(E)return E(b);throw"both async and sync fetching of the wasm failed";}catch(c){t(c)}}function ca(){return v||!P&&!x||"function"!=typeof fetch?Promise.resolve().then(function(){return O(h)}):fetch(h,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+h+"'";return b.arrayBuffer()}).catch(function(){return O(h)})} function F(b){for(;0=y.length&&(y.length=b+1),y[b]=c=R.get(b));return c}function da(b){this.excPtr=b;this.ptr=b-24;this.set_type=function(c){l[this.ptr+4>>2]=c};this.get_type=function(){return l[this.ptr+4>>2]};this.set_destructor=function(c){l[this.ptr+8>>2]=c};this.get_destructor=function(){return l[this.ptr+ 8>>2]};this.set_refcount=function(c){n[this.ptr>>2]=c};this.set_caught=function(c){r[this.ptr+12>>0]=c?1:0};this.get_caught=function(){return 0!=r[this.ptr+12>>0]};this.set_rethrown=function(c){r[this.ptr+13>>0]=c?1:0};this.get_rethrown=function(){return 0!=r[this.ptr+13>>0]};this.init=function(c,e){this.set_adjusted_ptr(0);this.set_type(c);this.set_destructor(e);this.set_refcount(0);this.set_caught(!1);this.set_rethrown(!1)};this.add_ref=function(){n[this.ptr>>2]+=1};this.release_ref=function(){var c= n[this.ptr>>2];n[this.ptr>>2]=c-1;return 1===c};this.set_adjusted_ptr=function(c){l[this.ptr+16>>2]=c};this.get_adjusted_ptr=function(){return l[this.ptr+16>>2]};this.get_exception_ptr=function(){if(S(this.get_type()))return l[this.excPtr>>2];var c=this.get_adjusted_ptr();return 0!==c?c:this.excPtr}}function G(b){function c(){if(!z&&(z=!0,a.calledRun=!0,!N)){F(T);U(a);if(a.onRuntimeInitialized)a.onRuntimeInitialized();if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)V.unshift(a.postRun.shift()); F(V)}}if(!(0{var c=new XMLHttpRequest;c.open("GET",b,!1);c.responseType="arraybuffer";c.send(null);return new Uint8Array(c.response)});a.print||console.log.bind(console);var u=a.printErr||console.warn.bind(console);Object.assign(a,X);X=null;a.arguments&&a.arguments; a.thisProgram&&a.thisProgram;a.quit&&a.quit;var v;a.wasmBinary&&(v=a.wasmBinary);a.noExitRuntime||!0;"object"!=typeof WebAssembly&&t("no native wasm support detected");var A,N=!1,K="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,M,r,p,n,l;a.INITIAL_MEMORY||16777216;var R,W=[],T=[],V=[],m=0,w=null;var h="lerc-wasm.wasm";h.startsWith("data:application/octet-stream;base64,")||(h=ba(h));var y=[],ea={a:function(b,c,e,f){t("Assertion failed: "+(b?B(p,b,void 0):"")+", at: "+[c?c?B(p,c,void 0): "":"unknown filename",e,f?f?B(p,f,void 0):"":"unknown function"])},c:function(b){return Y(b+24)+24},b:function(b,c,e){(new da(b)).init(c,e);throw b;},d:function(){t("")},f:function(b,c,e){p.copyWithin(b,c,c+e)},e:function(b){var c=p.length;b>>>=0;if(2147483648=e;e*=2){var f=c*(1+.2/e);f=Math.min(f,b+100663296);var d=Math;f=Math.max(b,f);d=d.min.call(d,2147483648,f+(65536-f%65536)%65536);a:{try{A.grow(d-M.byteLength+65535>>>16);L(A.buffer);var g=1;break a}catch(C){}g=void 0}if(g)return!0}return!1}}; (function(){function b(d,g){a.asm=d.exports;A=a.asm.g;L(A.buffer);R=a.asm.m;T.unshift(a.asm.h);m--;a.monitorRunDependencies&&a.monitorRunDependencies(m);0==m&&w&&(d=w,w=null,d())}function c(d){b(d.instance)}function e(d){return ca().then(function(g){return WebAssembly.instantiate(g,f)}).then(function(g){return g}).then(d,function(g){u("failed to asynchronously prepare wasm: "+g);t(g)})}var f={a:ea};m++;a.monitorRunDependencies&&a.monitorRunDependencies(m);if(a.instantiateWasm)try{return a.instantiateWasm(f, b)}catch(d){return u("Module.instantiateWasm callback failed with error: "+d),!1}(function(){return v||"function"!=typeof WebAssembly.instantiateStreaming||h.startsWith("data:application/octet-stream;base64,")||"function"!=typeof fetch?e(c):fetch(h,{credentials:"same-origin"}).then(function(d){return WebAssembly.instantiateStreaming(d,f).then(c,function(g){u("wasm streaming compile failed: "+g);u("falling back to ArrayBuffer instantiation");return e(c)})})})().catch(D);return{}})();a.___wasm_call_ctors= function(){return(a.___wasm_call_ctors=a.asm.h).apply(null,arguments)};a._lerc_getBlobInfo=function(){return(a._lerc_getBlobInfo=a.asm.i).apply(null,arguments)};a._lerc_getDataRanges=function(){return(a._lerc_getDataRanges=a.asm.j).apply(null,arguments)};a._lerc_decode=function(){return(a._lerc_decode=a.asm.k).apply(null,arguments)};a._lerc_decode_4D=function(){return(a._lerc_decode_4D=a.asm.l).apply(null,arguments)};var Y=a._malloc=function(){return(Y=a._malloc=a.asm.n).apply(null,arguments)};a._free= function(){return(a._free=a.asm.o).apply(null,arguments)};var S=a.___cxa_is_pointer_type=function(){return(S=a.___cxa_is_pointer_type=a.asm.p).apply(null,arguments)},z;w=function c(){z||G();z||(w=c)};a.run=G;if(a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);0