@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 18.6 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
*/
import{g as r}from"./_commonjsHelpers.js";var e,t={exports:{}};function n(){return e||(e=1,r=t,n="undefined"!=typeof document?document.currentScript?.src:void 0,a=async function(r={}){var e,t,a,o=r,i=new Promise(((r,n)=>{e=r,t=n})),u="./this.program",s="";function f(r){return o.locateFile?o.locateFile(r,s):s+r}"undefined"!=typeof document&&document.currentScript&&(s=document.currentScript.src),n&&(s=n),s=s.startsWith("blob:")?"":s.slice(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1),a=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)},console.log.bind(console);var c,l,p,v,d,h,g,m,y,w,T,b,A=console.error.bind(console),C=!1;function W(){var r=l.buffer;p=new Int8Array(r),d=new Int16Array(r),o.HEAPU8=v=new Uint8Array(r),h=new Uint16Array(r),g=new Int32Array(r),o.HEAPU32=m=new Uint32Array(r),y=new Float32Array(r),o.HEAPF64=b=new Float64Array(r),w=new BigInt64Array(r),T=new BigUint64Array(r)}function P(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)z(o.preRun.shift());j(L)}function E(){Le.E()}function F(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)N(o.postRun.shift());j(H)}var _,x=0,R=null;function S(r){x++,o.monitorRunDependencies?.(x)}function $(r){if(x--,o.monitorRunDependencies?.(x),0==x&&R){var e=R;R=null,e()}}function k(r){o.onAbort?.(r),A(r="Aborted("+r+")"),C=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw t(e),e}function I(){return f("lyr3DMain.wasm")}function O(r){if(r==_&&c)return new Uint8Array(c);throw"both async and sync fetching of the wasm failed"}async function U(r){if(!c)try{var e=await a(r);return new Uint8Array(e)}catch{}return O(r)}async function D(r,e){try{var t=await U(r);return await WebAssembly.instantiate(t,e)}catch(n){A(`failed to asynchronously prepare wasm: ${n}`),k(n)}}async function V(r,e,t){if(!r&&"function"==typeof WebAssembly.instantiateStreaming)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(a){A(`wasm streaming compile failed: ${a}`),A("falling back to ArrayBuffer instantiation")}return D(e,t)}function B(){return{a:Ne}}async function M(){function r(r,e){return Le=r.exports,l=Le.D,W(),$r=Le.G,$(),Le}function e(e){return r(e.instance)}S();var n=B();if(o.instantiateWasm)return new Promise(((e,t)=>{o.instantiateWasm(n,((t,n)=>{e(r(t))}))}));_??=I();try{return e(await V(c,_,n))}catch(a){return t(a),Promise.reject(a)}}var j=r=>{for(;r.length>0;)r.shift()(o)},H=[],N=r=>H.push(r),L=[],z=r=>L.push(r);class G{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){m[this.ptr+4>>2]=r}get_type(){return m[this.ptr+4>>2]}set_destructor(r){m[this.ptr+8>>2]=r}get_destructor(){return m[this.ptr+8>>2]}set_caught(r){r=r?1:0,p[this.ptr+12]=r}get_caught(){return 0!=p[this.ptr+12]}set_rethrown(r){r=r?1:0,p[this.ptr+13]=r}get_rethrown(){return 0!=p[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){m[this.ptr+16>>2]=r}get_adjusted_ptr(){return m[this.ptr+16>>2]}}var Y=(r,e,t)=>{throw new G(r).init(e,t),r},q=()=>k(""),J={},K=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function Q(r){return this.fromWireType(m[r>>2])}var X,Z={},rr={},er={},tr=o.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},nr=r=>{throw new tr(r)},ar=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&nr("Mismatched type converter count");for(var a=0;a<r.length;++a)dr(r[a],n[a])}r.forEach((r=>er[r]=e));var a=new Array(e.length),o=[],i=0;e.forEach(((r,e)=>{rr.hasOwnProperty(r)?a[e]=rr[r]:(o.push(r),Z.hasOwnProperty(r)||(Z[r]=[]),Z[r].push((()=>{a[e]=rr[r],++i===o.length&&n(a)})))})),0===o.length&&n(a)},or=r=>{var e=J[r];delete J[r];var t=e.elements,n=t.length,a=t.map((r=>r.getterReturnType)).concat(t.map((r=>r.setterArgumentType))),o=e.rawConstructor,i=e.rawDestructor;ar([r],a,(r=>(t.forEach(((e,t)=>{var a=r[t],o=e.getter,i=e.getterContext,u=r[t+n],s=e.setter,f=e.setterContext;e.read=r=>a.fromWireType(o(i,r)),e.write=(r,e)=>{var t=[];s(f,r,u.toWireType(t,e)),K(t)}})),[{name:e.name,fromWireType:r=>{for(var e=new Array(n),a=0;a<n;++a)e[a]=t[a].read(r);return i(r),e},toWireType:(r,a)=>{if(n!==a.length)throw new TypeError(`Incorrect number of tuple elements for ${e.name}: expected=${n}, actual=${a.length}`);for(var u=o(),s=0;s<n;++s)t[s].write(u,a[s]);return null!==r&&r.push(i,u),u},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction:i}])))},ir={},ur=r=>{var e=ir[r];delete ir[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map((r=>r.getterReturnType)).concat(a.map((r=>r.setterArgumentType)));ar([r],o,(r=>{var o={};return a.forEach(((e,t)=>{var n=e.fieldName,i=r[t],u=r[t].optional,s=e.getter,f=e.getterContext,c=r[t+a.length],l=e.setter,p=e.setterContext;o[n]={read:r=>i.fromWireType(s(f,r)),write:(r,e)=>{var t=[];l(p,r,c.toWireType(t,e)),K(t)},optional:u}})),[{name:e.name,fromWireType:r=>{var e={};for(var t in o)e[t]=o[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var a in o)if(!(a in e)&&!o[a].optional)throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,e[a]);return null!==r&&r.push(n,i),i},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction:n}]}))},sr=r=>{if(null===r)return"null";var e=typeof r;return"object"===e||"array"===e||"function"===e?r.toString():""+r},fr=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);X=r},cr=r=>{for(var e="",t=r;v[t];)e+=X[v[t++]];return e},lr=o.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},pr=r=>{throw new lr(r)};function vr(r,e,t={}){var n=e.name;if(r||pr(`type "${n}" must have a positive integer typeid pointer`),rr.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;pr(`Cannot register type '${n}' twice`)}if(rr[r]=e,delete er[r],Z.hasOwnProperty(r)){var a=Z[r];delete Z[r],a.forEach((r=>r()))}}function dr(r,e,t={}){return vr(r,e,t)}var hr=(r,e,t)=>{switch(e){case 1:return t?r=>p[r]:r=>v[r];case 2:return t?r=>d[r>>1]:r=>h[r>>1];case 4:return t?r=>g[r>>2]:r=>m[r>>2];case 8:return t?r=>w[r>>3]:r=>T[r>>3];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},gr=(r,e,t,n,a)=>{var o=-1!=(e=cr(e)).indexOf("u");dr(r,{name:e,fromWireType:r=>r,toWireType:function(r,e){if("bigint"!=typeof e&&"number"!=typeof e)throw new TypeError(`Cannot convert "${sr(e)}" to ${this.name}`);return"number"==typeof e&&(e=BigInt(e)),e},argPackAdvance:mr,readValueFromPointer:hr(e,t,!o),destructorFunction:null})},mr=8,yr=(r,e,t,n)=>{dr(r,{name:e=cr(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:mr,readValueFromPointer:function(r){return this.fromWireType(v[r])},destructorFunction:null})},wr=[],Tr=[],br=r=>{r>9&&0===--Tr[r+1]&&(Tr[r]=void 0,wr.push(r))},Ar=()=>Tr.length/2-5-wr.length,Cr=()=>{Tr.push(0,1,void 0,1,null,1,!0,1,!1,1),o.count_emval_handles=Ar},Wr={toValue:r=>(r||pr(`Cannot use deleted val. handle = ${r}`),Tr[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=wr.pop()||Tr.length;return Tr[e]=r,Tr[e+1]=1,e}}}},Pr={name:"emscripten::val",fromWireType:r=>{var e=Wr.toValue(r);return br(r),e},toWireType:(r,e)=>Wr.toHandle(e),argPackAdvance:mr,readValueFromPointer:Q,destructorFunction:null},Er=r=>dr(r,Pr),Fr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(y[r>>2])};case 8:return function(r){return this.fromWireType(b[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},_r=(r,e,t)=>{dr(r,{name:e=cr(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:mr,readValueFromPointer:Fr(e,t),destructorFunction:null})},xr=(r,e)=>Object.defineProperty(e,"name",{value:r});function Rr(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}function Sr(r,e,t,n,a,o){var i=e.length;i<2&&pr("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var u=Rr(e),s="void"!==e[0].name,f=i-2,c=new Array(f),l=[],p=[];return xr(r,(function(...r){var t;p.length=0,l.length=1,l[0]=a;for(var o=0;o<f;++o)c[o]=e[o+2].toWireType(p,r[o]),l.push(c[o]);function i(r){if(u)K(p);else for(var n=2;n<e.length;n++){var a=1===n?t:c[n-2];null!==e[n].destructorFunction&&e[n].destructorFunction(a)}if(s)return e[0].fromWireType(r)}return i(n(...l))}))}var $r,kr=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||pr(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Ir=(r,e,t)=>{o.hasOwnProperty(r)?((void 0===t||void 0!==o[r].overloadTable&&void 0!==o[r].overloadTable[t])&&pr(`Cannot register public name '${r}' twice`),kr(o,r,r),o[r].overloadTable.hasOwnProperty(t)&&pr(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),o[r].overloadTable[t]=e):(o[r]=e,o[r].argCount=t)},Or=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(m[e+4*n>>2]);return t},Ur=(r,e,t)=>{o.hasOwnProperty(r)||nr("Replacing nonexistent public symbol"),void 0!==o[r].overloadTable&&void 0!==t?o[r].overloadTable[t]=e:(o[r]=e,o[r].argCount=t)},Dr=[],Vr=r=>{var e=Dr[r];return e||(Dr[r]=e=$r.get(r)),e},Br=(r,e,t=!1)=>{function n(){return Vr(e)}r=cr(r);var a=n();return"function"!=typeof a&&pr(`unknown function pointer with signature ${r}: ${e}`),a};class Mr extends Error{}var jr,Hr=r=>{var e=ze(r),t=cr(e);return Ye(e),t},Nr=(r,e)=>{var t=[],n={};function a(r){n[r]||rr[r]||(er[r]?er[r].forEach(a):(t.push(r),n[r]=!0))}throw e.forEach(a),new Mr(`${r}: `+t.map(Hr).join([", "]))},Lr=r=>{const e=(r=r.trim()).indexOf("(");return-1===e?r:r.slice(0,e)},zr=(r,e,t,n,a,o,i,u)=>{var s=Or(e,t);r=cr(r),r=Lr(r),a=Br(n,a,i),Ir(r,(function(){Nr(`Cannot call ${r} due to unbound types`,s)}),e-1),ar([],s,(t=>{var n=[t[0],null].concat(t.slice(1));return Ur(r,Sr(r,n,null,a,o),e-1),[]}))},Gr=(r,e,t,n,a)=>{e=cr(e);var o=r=>r;if(0===n){var i=32-8*t;o=r=>r<<i>>>i}var u=e.includes("unsigned"),s=(r,e)=>{};dr(r,{name:e,fromWireType:o,toWireType:u?function(r,e){return s(e,this.name),e>>>0}:function(r,e){return s(e,this.name),e},argPackAdvance:mr,readValueFromPointer:hr(e,t,0!==n),destructorFunction:null})},Yr=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][e];function a(r){var e=m[r>>2],t=m[r+4>>2];return new n(p.buffer,t,e)}dr(r,{name:t=cr(t),fromWireType:a,argPackAdvance:mr,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},qr=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,o=t+n-1,i=0;i<r.length;++i){var u=r.charCodeAt(i);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&r.charCodeAt(++i)),u<=127){if(t>=o)break;e[t++]=u}else if(u<=2047){if(t+1>=o)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=o)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=o)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u}}return e[t]=0,t-a},Jr=(r,e,t)=>qr(r,v,e,t),Kr=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},Qr="undefined"!=typeof TextDecoder?new TextDecoder:void 0,Xr=(r,e=0,t=NaN)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&Qr)return Qr.decode(r.subarray(e,a));for(var o="";e<a;){var i=r[e++];if(128&i){var u=63&r[e++];if(192!=(224&i)){var s=63&r[e++];if((i=224==(240&i)?(15&i)<<12|u<<6|s:(7&i)<<18|u<<12|s<<6|63&r[e++])<65536)o+=String.fromCharCode(i);else{var f=i-65536;o+=String.fromCharCode(55296|f>>10,56320|1023&f)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o},Zr=(r,e)=>r?Xr(v,r,e):"",re=(r,e)=>{dr(r,{name:e=cr(e),fromWireType(r){for(var e,t=m[r>>2],n=r+4,a=n,o=0;o<=t;++o){var i=n+o;if(o==t||0==v[i]){var u=Zr(a,i-a);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),a=i+1}}return Ye(r),e},toWireType(r,e){var t;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT||pr("Cannot pass non-string to std::string"),t=n?Kr(e):e.length;var a=Ge(4+t+1),o=a+4;return m[a>>2]=t,n?Jr(e,o,t+1):v.set(e,o),null!==r&&r.push(Ye,a),a},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction(r){Ye(r)}})},ee="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,te=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&h[n];)++n;if((t=n<<1)-r>32&&ee)return ee.decode(v.subarray(r,t));for(var o="",i=0;!(i>=e/2);++i){var u=d[r+2*i>>1];if(0==u)break;o+=String.fromCharCode(u)}return o},ne=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,o=0;o<a;++o){var i=r.charCodeAt(o);d[e>>1]=i,e+=2}return d[e>>1]=0,e-n},ae=r=>2*r.length,oe=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=g[r+4*t>>2];if(0==a)break;if(++t,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(a)}return n},ie=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,a=n+t-4,o=0;o<r.length;++o){var i=r.charCodeAt(o);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&r.charCodeAt(++o)),g[e>>2]=i,(e+=4)+4>a)break}return g[e>>2]=0,e-n},ue=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},se=(r,e,t)=>{var n,a,o,i;t=cr(t),2===e?(n=te,a=ne,i=ae,o=r=>h[r>>1]):4===e&&(n=oe,a=ie,i=ue,o=r=>m[r>>2]),dr(r,{name:t,fromWireType:r=>{for(var t,a=m[r>>2],i=r+4,u=0;u<=a;++u){var s=r+4+u*e;if(u==a||0==o(s)){var f=n(i,s-i);void 0===t?t=f:(t+=String.fromCharCode(0),t+=f),i=s+e}}return Ye(r),t},toWireType:(r,n)=>{"string"!=typeof n&&pr(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),u=Ge(4+o+e);return m[u>>2]=o/e,a(n,u+4,o+e),null!==r&&r.push(Ye,u),u},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction(r){Ye(r)}})},fe=(r,e,t,n,a,o)=>{J[r]={name:cr(e),rawConstructor:Br(t,n),rawDestructor:Br(a,o),elements:[]}},ce=(r,e,t,n,a,o,i,u,s)=>{J[r].elements.push({getterReturnType:e,getter:Br(t,n),getterContext:a,setterArgumentType:o,setter:Br(i,u),setterContext:s})},le=(r,e,t,n,a,o)=>{ir[r]={name:cr(e),rawConstructor:Br(t,n),rawDestructor:Br(a,o),fields:[]}},pe=(r,e,t,n,a,o,i,u,s,f)=>{ir[r].fields.push({fieldName:cr(e),getterReturnType:t,getter:Br(n,a),getterContext:o,setterArgumentType:i,setter:Br(u,s),setterContext:f})},ve=(r,e)=>{dr(r,{isVoid:!0,name:e=cr(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},de=r=>{r>9&&(Tr[r+1]+=1)},he=()=>Wr.toHandle([]),ge={},me=r=>{var e=ge[r];return void 0===e?cr(r):e},ye=r=>Wr.toHandle(me(r)),we=()=>Wr.toHandle({}),Te=(r,e,t)=>{r=Wr.toValue(r),e=Wr.toValue(e),t=Wr.toValue(t),r[e]=t},be=(r,e)=>{var t=rr[r];return void 0===t&&pr(`${e} has unknown type ${Hr(r)}`),t},Ae=(r,e)=>{var t=(r=be(r,"_emval_take_value")).readValueFromPointer(e);return Wr.toHandle(t)},Ce=(r,e,t,n)=>{var a=(new Date).getFullYear(),o=new Date(a,0,1),i=new Date(a,6,1),u=o.getTimezoneOffset(),s=i.getTimezoneOffset(),f=Math.max(u,s);m[r>>2]=60*f,g[e>>2]=Number(u!=s);var c=r=>{var e=r>=0?"-":"+",t=Math.abs(r);return`UTC${e}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`},l=c(u),p=c(s);s<u?(Jr(l,t,17),Jr(p,n,17)):(Jr(l,n,17),Jr(p,t,17))},We=()=>2147483648,Pe=(r,e)=>Math.ceil(r/e)*e,Ee=r=>{var e=(r-l.buffer.byteLength+65535)/65536|0;try{return l.grow(e),W(),1}catch(t){}},Fe=r=>{var e=v.length;r>>>=0;var t=We();if(r>t)return!1;for(var n=1;n<=4;n*=2){var a=e*(1+.2/n);a=Math.min(a,r+100663296);var o=Math.min(t,Pe(Math.max(r,a),65536));if(Ee(o))return!0}return!1},_e={},xe=()=>u||"./this.program",Re=()=>{if(!Re.strings){var r={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",_:xe()};for(var e in _e)void 0===_e[e]?delete r[e]:r[e]=_e[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);Re.strings=t}return Re.strings},Se=(r,e)=>{var t=0,n=0;for(var a of Re()){var o=e+t;m[r+n>>2]=o,t+=Jr(a,o,1/0)+1,n+=4}return 0},$e=(r,e)=>{var t=Re();m[r>>2]=t.length;var n=0;for(var a of t)n+=Kr(a)+1;return m[e>>2]=n,0},ke=(r,e)=>{r<128?e.push(r):e.push(r%128|128,r>>7)},Ie=r=>{for(var e={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},t={parameters:[],results:"v"==r[0]?[]:[e[r[0]]]},n=1;n<r.length;++n)t.parameters.push(e[r[n]]);return t},Oe=(r,e)=>{var t=r.slice(0,1),n=r.slice(1),a={i:127,p:127,j:126,f:125,d:124,e:111};for(var o of(e.push(96),ke(n.length,e),n))e.push(a[o]);"v"==t?e.push(0):e.push(1,a[t])},Ue=(r,e)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(Ie(e),r);var t=[1];Oe(e,t);var n=[0,97,115,109,1,0,0,0,1];ke(t.length,n),n.push(...t),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var a=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(a,{e:{f:r}}).exports.f},De=(r,e)=>{if(jr)for(var t=r;t<r+e;t++){var n=Vr(t);n&&jr.set(n,t)}},Ve=r=>(jr||(jr=new WeakMap,De(0,$r.length)),jr.get(r)||0),Be=[],Me=()=>{if(Be.length)return Be.pop();try{$r.grow(1)}catch(A){if(!(A instanceof RangeError))throw A;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return $r.length-1},je=(r,e)=>{$r.set(r,e),Dr[r]=$r.get(r)},He=(r,e)=>{var t=Ve(r);if(t)return t;var n=Me();try{je(n,r)}catch(A){if(!(A instanceof TypeError))throw A;var a=Ue(r,e);je(n,a)}return jr.set(r,n),n};fr(),Cr(),o.noExitRuntime&&o.noExitRuntime,o.print&&o.print,o.printErr&&(A=o.printErr),o.wasmBinary&&(c=o.wasmBinary),o.arguments&&o.arguments,o.thisProgram&&(u=o.thisProgram),o.addFunction=He,o.UTF8ToString=Zr;var Ne={k:Y,y:q,l:or,t:ur,q:gr,r:yr,B:Er,p:_r,c:zr,h:Gr,b:Yr,C:re,n:se,m:fe,d:ce,u:le,i:pe,s:ve,a:br,o:de,A:he,g:ye,j:we,e:Te,f:Ae,v:Ce,z:Fe,w:Se,x:$e},Le=await M();Le.E;var ze=Le.F,Ge=o._malloc=Le.H,Ye=o._free=Le.I;function qe(){function r(){o.calledRun=!0,C||(E(),e(o),o.onRuntimeInitialized?.(),F())}x>0?R=qe:(P(),x>0?R=qe:o.setStatus?(o.setStatus("Running..."),setTimeout((()=>{setTimeout((()=>o.setStatus("")),1),r()}),1)):r())}function Je(){if(o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.shift()()}return Je(),qe(),i},r.exports=a,r.exports.default=a),t.exports;var r,n,a}const a=r(n()),o=Object.freeze(Object.defineProperty({__proto__:null,default:a},Symbol.toStringTag,{value:"Module"}));export{o as l};