@thorvg/lottie-player 1.0.0-pre.4 → 1.0.0-pre.6
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e="undefined"!=typeof document?document.currentScript:null;const t=globalThis,r=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),o=new WeakMap;let a=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(r&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=o.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&o.set(t,e))}return e}toString(){return this.cssText}};const i=r?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return(e=>new a("string"==typeof e?e:e+"",void 0,n))(t)})(e):e,{is:s,defineProperty:l,getOwnPropertyDescriptor:u,getOwnPropertyNames:c,getOwnPropertySymbols:d,getPrototypeOf:h}=Object,p=globalThis,m=p.trustedTypes,f=m?m.emptyScript:"",g=p.reactiveElementPolyfillSupport,v=(e,t)=>e,y={toAttribute(e,t){switch(t){case Boolean:e=e?f:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},w=(e,t)=>!s(e,t),b={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:w};Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;class _ extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=b){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&l(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){const{get:n,set:o}=u(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){const a=n?.call(this);o.call(this,t),this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??b}static _$Ei(){if(this.hasOwnProperty(v("elementProperties")))return;const e=h(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(v("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(v("properties"))){const e=this.properties,t=[...c(e),...d(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(i(e))}else void 0!==e&&t.push(i(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,n)=>{if(r)e.adoptedStyleSheets=n.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const r of n){const n=document.createElement("style"),o=t.litNonce;void 0!==o&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){const r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){const o=(void 0!==r.converter?.toAttribute?r.converter:y).toAttribute(t,r.type);this._$Em=e,null==o?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(e,t){const r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){const e=r.getPropertyOptions(n),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:y;this._$Em=n,this[n]=o.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(r??=this.constructor.getPropertyOptions(e),!(r.hasChanged??w)(this[e],t))return;this.P(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[v("elementProperties")]=new Map,_[v("finalized")]=new Map,g?.({ReactiveElement:_}),(p.reactiveElementVersions??=[]).push("2.0.4");const E=globalThis,S=E.trustedTypes,$=S?S.createPolicy("lit-html",{createHTML:e=>e}):void 0,x="$lit$",C=`lit$${Math.random().toFixed(9).slice(2)}$`,P="?"+C,T=`<${P}>`,k=document,A=()=>k.createComment(""),D=e=>null===e||"object"!=typeof e&&"function"!=typeof e,F=Array.isArray,R="[ \t\n\f\r]",M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,O=/>/g,U=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),L=/'/g,j=/"/g,z=/^(?:script|style|textarea|title)$/i,I=(e=>(t,...r)=>({_$litType$:e,strings:t,values:r}))(1),N=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),W=new WeakMap,H=k.createTreeWalker(k,129);function G(e,t){if(!F(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==$?$.createHTML(t):t}class q{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let o=0,a=0;const i=e.length-1,s=this.parts,[l,u]=((e,t)=>{const r=e.length-1,n=[];let o,a=2===t?"<svg>":3===t?"<math>":"",i=M;for(let t=0;t<r;t++){const r=e[t];let s,l,u=-1,c=0;for(;c<r.length&&(i.lastIndex=c,l=i.exec(r),null!==l);)c=i.lastIndex,i===M?"!--"===l[1]?i=B:void 0!==l[1]?i=O:void 0!==l[2]?(z.test(l[2])&&(o=RegExp("</"+l[2],"g")),i=U):void 0!==l[3]&&(i=U):i===U?">"===l[0]?(i=o??M,u=-1):void 0===l[1]?u=-2:(u=i.lastIndex-l[2].length,s=l[1],i=void 0===l[3]?U:'"'===l[3]?j:L):i===j||i===L?i=U:i===B||i===O?i=M:(i=U,o=void 0);const d=i===U&&e[t+1].startsWith("/>")?" ":"";a+=i===M?r+T:u>=0?(n.push(s),r.slice(0,u)+x+r.slice(u)+C+d):r+C+(-2===u?t:d)}return[G(e,a+(e[r]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),n]})(e,t);if(this.el=q.createElement(l,r),H.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=H.nextNode())&&s.length<i;){if(1===n.nodeType){if(n.hasAttributes())for(const e of n.getAttributeNames())if(e.endsWith(x)){const t=u[a++],r=n.getAttribute(e).split(C),i=/([.?@])?(.*)/.exec(t);s.push({type:1,index:o,name:i[2],strings:r,ctor:"."===i[1]?Z:"?"===i[1]?Y:"@"===i[1]?ee:K}),n.removeAttribute(e)}else e.startsWith(C)&&(s.push({type:6,index:o}),n.removeAttribute(e));if(z.test(n.tagName)){const e=n.textContent.split(C),t=e.length-1;if(t>0){n.textContent=S?S.emptyScript:"";for(let r=0;r<t;r++)n.append(e[r],A()),H.nextNode(),s.push({type:2,index:++o});n.append(e[t],A())}}}else if(8===n.nodeType)if(n.data===P)s.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(C,e+1));)s.push({type:7,index:o}),e+=C.length-1}o++}}static createElement(e,t){const r=k.createElement("template");return r.innerHTML=e,r}}function Q(e,t,r=e,n){if(t===N)return t;let o=void 0!==n?r.o?.[n]:r.l;const a=D(t)?void 0:t._$litDirective$;return o?.constructor!==a&&(o?._$AO?.(!1),void 0===a?o=void 0:(o=new a(e),o._$AT(e,r,n)),void 0!==n?(r.o??=[])[n]=o:r.l=o),void 0!==o&&(t=Q(e,o._$AS(e,t.values),o,n)),t}class X{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??k).importNode(t,!0);H.currentNode=n;let o=H.nextNode(),a=0,i=0,s=r[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new J(o,o.nextSibling,this,e):1===s.type?t=new s.ctor(o,s.name,s.strings,this,e):6===s.type&&(t=new te(o,this,e)),this._$AV.push(t),s=r[++i]}a!==s?.index&&(o=H.nextNode(),a++)}return H.currentNode=k,n}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class J{get _$AU(){return this._$AM?._$AU??this.v}constructor(e,t,r,n){this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this.v=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Q(this,e,t),D(e)?e===V||null==e||""===e?(this._$AH!==V&&this._$AR(),this._$AH=V):e!==this._$AH&&e!==N&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>F(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==V&&D(this._$AH)?this._$AA.nextSibling.data=e:this.T(k.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,n="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=q.createElement(G(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new X(n,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=W.get(e.strings);return void 0===t&&W.set(e.strings,t=new q(e)),t}k(e){F(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const o of e)n===t.length?t.push(r=new J(this.O(A()),this.O(A()),this,this.options)):r=t[n],r._$AI(o),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this.v=e,this._$AP?.(e))}}class K{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,o){this.type=1,this._$AH=V,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=V}_$AI(e,t=this,r,n){const o=this.strings;let a=!1;if(void 0===o)e=Q(this,e,t,0),a=!D(e)||e!==this._$AH&&e!==N,a&&(this._$AH=e);else{const n=e;let i,s;for(e=o[0],i=0;i<o.length-1;i++)s=Q(this,n[r+i],t,i),s===N&&(s=this._$AH[i]),a||=!D(s)||s!==this._$AH[i],s===V?e=V:e!==V&&(e+=(s??"")+o[i+1]),this._$AH[i]=s}a&&!n&&this.j(e)}j(e){e===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Z extends K{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===V?void 0:e}}class Y extends K{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==V)}}class ee extends K{constructor(e,t,r,n,o){super(e,t,r,n,o),this.type=5}_$AI(e,t=this){if((e=Q(this,e,t,0)??V)===N)return;const r=this._$AH,n=e===V&&r!==V||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==V&&(r===V||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class te{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Q(this,e)}}const re=E.litHtmlPolyfillSupport;re?.(q,J),(E.litHtmlVersions??=[]).push("3.2.0");class ne extends _{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this.o=((e,t,r)=>{const n=r?.renderBefore??t;let o=n._$litPart$;if(void 0===o){const e=r?.renderBefore??null;n._$litPart$=o=new J(t.insertBefore(A(),e),e,void 0,r??{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return N}}ne._$litElement$=!0,ne.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ne});const oe=globalThis.litElementPolyfillSupport;oe?.({LitElement:ne}),(globalThis.litElementVersions??=[]).push("4.1.0");const ae={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:w},ie=(e=ae,t,r)=>{const{kind:n,metadata:o}=r;let a=globalThis.litPropertyMetadata.get(o);if(void 0===a&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(r.name,e),"accessor"===n){const{name:n}=r;return{set(r){const o=t.get.call(this);t.set.call(this,r),this.requestUpdate(n,o,e)},init(t){return void 0!==t&&this.P(n,void 0,e),t}}}if("setter"===n){const{name:n}=r;return function(r){const o=this[n];t.call(this,r),this.requestUpdate(n,o,e)}}throw Error("Unsupported decorator location: "+n)};function se(e){return(t,r)=>"object"==typeof r?ie(e,t,r):((e,t,r)=>{const n=t.hasOwnProperty(r);return t.constructor.createProperty(r,n?{...e,wrapped:!0}:e),n?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}for(var le,ue=[],ce=0;ce<256;++ce)ue.push((ce+256).toString(16).slice(1));var de=new Uint8Array(16);function he(){if(!le&&!(le="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return le(de)}var pe={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function me(e,t,r){if(pe.randomUUID&&!t&&!e)return pe.randomUUID();var n=(e=e||{}).random||(e.rng||he)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(ue[e[t+0]]+ue[e[t+1]]+ue[e[t+2]]+ue[e[t+3]]+"-"+ue[e[t+4]]+ue[e[t+5]]+"-"+ue[e[t+6]]+ue[e[t+7]]+"-"+ue[e[t+8]]+ue[e[t+9]]+"-"+ue[e[t+10]]+ue[e[t+11]]+ue[e[t+12]]+ue[e[t+13]]+ue[e[t+14]]+ue[e[t+15]]).toLowerCase()}(n)}var fe,ge=(fe="undefined"==typeof document?require("url").pathToFileURL(__filename).href:e&&e.src||new URL("lottie-player.cjs.js",document.baseURI).href,async function(t={}){var r,n,o=t,a=new Promise(((e,t)=>{r=e,n=t})),i="object"==typeof window,s="function"==typeof importScripts,l="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node;if(l){const{createRequire:t}=await Promise.resolve().then((function(){return Re}));var u=t("undefined"==typeof document?require("url").pathToFileURL(__filename).href:e&&e.src||new URL("lottie-player.cjs.js",document.baseURI).href)}var c,d,h=Object.assign({},o),p="./this.program",m=(e,t)=>{throw t},f="";if(l){var g=u("fs"),v=u("path");f=u("url").fileURLToPath(new URL("./","undefined"==typeof document?require("url").pathToFileURL(__filename).href:e&&e.src||new URL("lottie-player.cjs.js",document.baseURI).href)),d=e=>(e=H(e)?new URL(e):v.normalize(e),g.readFileSync(e)),c=(e,t=!0)=>(e=H(e)?new URL(e):v.normalize(e),new Promise(((r,n)=>{g.readFile(e,t?void 0:"utf8",((e,o)=>{e?n(e):r(t?o.buffer:o)}))}))),!o.thisProgram&&process.argv.length>1&&(p=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),m=(e,t)=>{throw process.exitCode=e,t}}else(i||s)&&(s?f=self.location.href:"undefined"!=typeof document&&document.currentScript&&(f=document.currentScript.src),fe&&(f=fe),f=f.startsWith("blob:")?"":f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1),s&&(d=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),c=e=>H(e)?new Promise(((t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r(n.status)},n.onerror=r,n.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var y=o.print||console.log.bind(console),w=o.printErr||console.error.bind(console);Object.assign(o,h),h=null,o.arguments&&o.arguments,o.thisProgram&&(p=o.thisProgram);var b,_,E,S,$,x,C,P,T,k,A=o.wasmBinary,D=!1;function F(){var e=b.buffer;o.HEAP8=E=new Int8Array(e),o.HEAP16=$=new Int16Array(e),o.HEAPU8=S=new Uint8Array(e),o.HEAPU16=x=new Uint16Array(e),o.HEAP32=C=new Int32Array(e),o.HEAPU32=P=new Uint32Array(e),o.HEAPF32=T=new Float32Array(e),o.HEAPF64=k=new Float64Array(e)}var R=[],M=[],B=[],O=0,U=null;function L(e){O++,o.monitorRunDependencies?.(O)}function j(e){if(O--,o.monitorRunDependencies?.(O),0==O&&U){var t=U;U=null,t()}}function z(e){o.onAbort?.(e),w(e="Aborted("+e+")"),D=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var I,N,V,W=e=>e.startsWith("data:application/octet-stream;base64,"),H=e=>e.startsWith("file://");function G(){if(o.locateFile){var t="thorvg-wasm.wasm";return W(t)?t:(r=t,o.locateFile?o.locateFile(r,f):f+r)}var r;return new URL("thorvg-wasm.wasm","undefined"==typeof document?require("url").pathToFileURL(__filename).href:e&&e.src||new URL("lottie-player.cjs.js",document.baseURI).href).href}function q(e){if(e==I&&A)return new Uint8Array(A);if(d)return d(e);throw"both async and sync fetching of the wasm failed"}function Q(e,t,r){return function(e){return A?Promise.resolve().then((()=>q(e))):c(e).then((e=>new Uint8Array(e)),(()=>q(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then(r,(e=>{w(`failed to asynchronously prepare wasm: ${e}`),z(e)}))}function X(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var J=e=>{for(;e.length>0;)e.shift()(o)},K=o.noExitRuntime||!0,Z=e=>fr(e),Y=()=>vr(),ee="undefined"!=typeof TextDecoder?new TextDecoder:void 0,te=(e,t,r)=>{for(var n=t+r,o=t;e[o]&&!(o>=n);)++o;if(o-t>16&&e.buffer&&ee)return ee.decode(e.subarray(t,o));for(var a="";t<o;){var i=e[t++];if(128&i){var s=63&e[t++];if(192!=(224&i)){var l=63&e[t++];if((i=224==(240&i)?(15&i)<<12|s<<6|l:(7&i)<<18|s<<12|l<<6|63&e[t++])<65536)a+=String.fromCharCode(i);else{var u=i-65536;a+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},re=(e,t)=>e?te(S,e,t):"";function ne(){var e=C[+$e.varargs>>2];return $e.varargs+=4,e}var oe=ne,ae={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,t)=>{for(var r=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=ae.isAbs(e),r="/"===e.substr(-1);return e=ae.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"),e||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=ae.splitPath(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},basename:e=>{if("/"===e)return"/";var t=(e=(e=ae.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:(...e)=>ae.normalize(e.join("/")),join2:(e,t)=>ae.normalize(e+"/"+t)},ie=e=>(ie=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);if(l)try{var e=u("crypto");if(e.randomFillSync)return t=>e.randomFillSync(t);var t=e.randomBytes;return e=>(e.set(t(e.byteLength)),e)}catch(e){}z("initRandomDevice")})())(e),se={resolve:(...e)=>{for(var t="",r=!1,n=e.length-1;n>=-1&&!r;n--){var o=n>=0?e[n]:Se.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");if(!o)return"";t=o+"/"+t,r=ae.isAbs(o)}return t=ae.normalizeArray(t.split("/").filter((e=>!!e)),!r).join("/"),(r?"/":"")+t||"."},relative:(e,t)=>{function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=se.resolve(e).substr(1),t=se.resolve(t).substr(1);for(var n=r(e.split("/")),o=r(t.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var l=[];for(s=i;s<n.length;s++)l.push("..");return(l=l.concat(o.slice(i))).join("/")}},le=[],ue=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},ce=(e,t,r,n)=>{if(!(n>0))return 0;for(var o=r,a=r+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i)),s<=127){if(r>=a)break;t[r++]=s}else if(s<=2047){if(r+1>=a)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=a)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=a)break;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 de(e,t,r){var n=ue(e)+1,o=new Array(n),a=ce(e,o,0,o.length);return o.length=a,o}var he,pe,me,ge={ttys:[],init(){},shutdown(){},register(e,t){ge.ttys[e]={input:[],output:[],ops:t},Se.registerDevice(e,ge.stream_ops)},stream_ops:{open(e){var t=ge.ttys[e.node.rdev];if(!t)throw new Se.ErrnoError(43);e.tty=t,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,t,r,n,o){if(!e.tty||!e.tty.ops.get_char)throw new Se.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new Se.ErrnoError(29)}if(void 0===s&&0===a)throw new Se.ErrnoError(6);if(null==s)break;a++,t[r+i]=s}return a&&(e.node.timestamp=Date.now()),a},write(e,t,r,n,o){if(!e.tty||!e.tty.ops.put_char)throw new Se.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,t[r+a])}catch(e){throw new Se.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:e=>(()=>{if(!le.length){var e=null;if(l){var t=Buffer.alloc(256),r=0,n=process.stdin.fd;try{r=g.readSync(n,t,0,256)}catch(e){if(!e.toString().includes("EOF"))throw e;r=0}r>0&&(e=t.slice(0,r).toString("utf-8"))}else"undefined"!=typeof window&&"function"==typeof window.prompt&&null!==(e=window.prompt("Input: "))&&(e+="\n");if(!e)return null;le=de(e)}return le.shift()})(),put_char(e,t){null===t||10===t?(y(te(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(y(te(e.output,0)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,t,r)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,t){null===t||10===t?(w(te(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(w(te(e.output,0)),e.output=[])}}},ve=e=>{z()},ye={ops_table:null,mount:e=>ye.createNode(null,"/",16895,0),createNode(e,t,r,n){if(Se.isBlkdev(r)||Se.isFIFO(r))throw new Se.ErrnoError(63);ye.ops_table||={dir:{node:{getattr:ye.node_ops.getattr,setattr:ye.node_ops.setattr,lookup:ye.node_ops.lookup,mknod:ye.node_ops.mknod,rename:ye.node_ops.rename,unlink:ye.node_ops.unlink,rmdir:ye.node_ops.rmdir,readdir:ye.node_ops.readdir,symlink:ye.node_ops.symlink},stream:{llseek:ye.stream_ops.llseek}},file:{node:{getattr:ye.node_ops.getattr,setattr:ye.node_ops.setattr},stream:{llseek:ye.stream_ops.llseek,read:ye.stream_ops.read,write:ye.stream_ops.write,allocate:ye.stream_ops.allocate,mmap:ye.stream_ops.mmap,msync:ye.stream_ops.msync}},link:{node:{getattr:ye.node_ops.getattr,setattr:ye.node_ops.setattr,readlink:ye.node_ops.readlink},stream:{}},chrdev:{node:{getattr:ye.node_ops.getattr,setattr:ye.node_ops.setattr},stream:Se.chrdev_stream_ops}};var o=Se.createNode(e,t,r,n);return Se.isDir(o.mode)?(o.node_ops=ye.ops_table.dir.node,o.stream_ops=ye.ops_table.dir.stream,o.contents={}):Se.isFile(o.mode)?(o.node_ops=ye.ops_table.file.node,o.stream_ops=ye.ops_table.file.stream,o.usedBytes=0,o.contents=null):Se.isLink(o.mode)?(o.node_ops=ye.ops_table.link.node,o.stream_ops=ye.ops_table.link.stream):Se.isChrdev(o.mode)&&(o.node_ops=ye.ops_table.chrdev.node,o.stream_ops=ye.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[t]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var n=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr(e){var t={};return t.dev=Se.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,Se.isDir(e.mode)?t.size=4096:Se.isFile(e.mode)?t.size=e.usedBytes:Se.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&ye.resizeFileStorage(e,t.size)},lookup(e,t){throw Se.genericErrors[44]},mknod:(e,t,r,n)=>ye.createNode(e,t,r,n),rename(e,t,r){if(Se.isDir(e.mode)){var n;try{n=Se.lookupNode(t,r)}catch(e){}if(n)for(var o in n.contents)throw new Se.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp},unlink(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir(e,t){var r=Se.lookupNode(e,t);for(var n in r.contents)throw new Se.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir(e){var t=[".",".."];for(var r of Object.keys(e.contents))t.push(r);return t},symlink(e,t,r){var n=ye.createNode(e,t,41471,0);return n.link=r,n},readlink(e){if(!Se.isLink(e.mode))throw new Se.ErrnoError(28);return e.link}},stream_ops:{read(e,t,r,n,o){var a=e.node.contents;if(o>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&a.subarray)t.set(a.subarray(o,o+i),r);else for(var s=0;s<i;s++)t[r+s]=a[o+s];return i},write(e,t,r,n,o,a){if(t.buffer===E.buffer&&(a=!1),!n)return 0;var i=e.node;if(i.timestamp=Date.now(),t.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=t.subarray(r,r+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=t.slice(r,r+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(t.subarray(r,r+n),o),n}if(ye.expandFileStorage(i,o+n),i.contents.subarray&&t.subarray)i.contents.set(t.subarray(r,r+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=t[r+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(e,t,r){var n=t;if(1===r?n+=e.position:2===r&&Se.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new Se.ErrnoError(28);return n},allocate(e,t,r){ye.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap(e,t,r,n,o){if(!Se.isFile(e.node.mode))throw new Se.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||!s||s.buffer!==E.buffer){if(i=!0,!(a=ve()))throw new Se.ErrnoError(48);s&&((r>0||r+t<s.length)&&(s=s.subarray?s.subarray(r,r+t):Array.prototype.slice.call(s,r,r+t)),E.set(s,a))}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(e,t,r,n,o)=>(ye.stream_ops.write(e,t,0,n,r,!1),0)}},we=(e,t,r,n,o,a)=>{Se.createDataFile(e,t,r,n,o,a)},be=o.preloadPlugins||[],_e=(e,t,r,n,o,a,i,s,l,u)=>{var d=t?se.resolve(ae.join2(e,t)):e;function h(r){function c(r){u?.(),s||we(e,t,r,n,o,l),a?.(),j()}((e,t,r,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return be.forEach((a=>{o||a.canHandle(t)&&(a.handle(e,t,r,n),o=!0)})),o})(r,d,c,(()=>{i?.(),j()}))||c(r)}L(),"string"==typeof r?((e,t,r)=>{var n=`al ${e}`;c(e).then((e=>{t(new Uint8Array(e)),n&&j()}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),n&&L()})(r,h,i):h(r)},Ee=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},Se={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:class{constructor(e){this.name="ErrnoError",this.errno=e}},genericErrors:{},filesystems:null,syncFSRequests:0,FSStream:class{constructor(){this.shared={}}get object(){return this.node}set object(e){this.node=e}get isRead(){return 1!=(2097155&this.flags)}get isWrite(){return!!(2097155&this.flags)}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(e){this.shared.flags=e}get position(){return this.shared.position}set position(e){this.shared.position=e}},FSNode:class{constructor(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=Se.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n,this.readMode=365,this.writeMode=146}get read(){return(this.mode&this.readMode)===this.readMode}set read(e){e?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(e){e?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return Se.isDir(this.mode)}get isDevice(){return Se.isChrdev(this.mode)}},lookupPath(e,t={}){if(!(e=se.resolve(e)))return{path:"",node:null};if((t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count>8)throw new Se.ErrnoError(32);for(var r=e.split("/").filter((e=>!!e)),n=Se.root,o="/",a=0;a<r.length;a++){var i=a===r.length-1;if(i&&t.parent)break;if(n=Se.lookupNode(n,r[a]),o=ae.join2(o,r[a]),Se.isMountpoint(n)&&(!i||i&&t.follow_mount)&&(n=n.mounted.root),!i||t.follow)for(var s=0;Se.isLink(n.mode);){var l=Se.readlink(o);if(o=se.resolve(ae.dirname(o),l),n=Se.lookupPath(o,{recurse_count:t.recurse_count+1}).node,s++>40)throw new Se.ErrnoError(32)}}return{path:o,node:n}},getPath(e){for(var t;;){if(Se.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?`${r}/${t}`:r+t:r}t=t?`${e.name}/${t}`:e.name,e=e.parent}},hashName(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%Se.nameTable.length},hashAddNode(e){var t=Se.hashName(e.parent.id,e.name);e.name_next=Se.nameTable[t],Se.nameTable[t]=e},hashRemoveNode(e){var t=Se.hashName(e.parent.id,e.name);if(Se.nameTable[t]===e)Se.nameTable[t]=e.name_next;else for(var r=Se.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode(e,t){var r=Se.mayLookup(e);if(r)throw new Se.ErrnoError(r);for(var n=Se.hashName(e.id,t),o=Se.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===t)return o}return Se.lookup(e,t)},createNode(e,t,r,n){var o=new Se.FSNode(e,t,r,n);return Se.hashAddNode(o),o},destroyNode(e){Se.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>!(49152&~e),flagsToPermissionString(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>Se.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2,mayLookup(e){if(!Se.isDir(e.mode))return 54;var t=Se.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate(e,t){try{return Se.lookupNode(e,t),20}catch(e){}return Se.nodePermissions(e,"wx")},mayDelete(e,t,r){var n;try{n=Se.lookupNode(e,t)}catch(e){return e.errno}var o=Se.nodePermissions(e,"wx");if(o)return o;if(r){if(!Se.isDir(n.mode))return 54;if(Se.isRoot(n)||Se.getPath(n)===Se.cwd())return 10}else if(Se.isDir(n.mode))return 31;return 0},mayOpen:(e,t)=>e?Se.isLink(e.mode)?32:Se.isDir(e.mode)&&("r"!==Se.flagsToPermissionString(t)||512&t)?31:Se.nodePermissions(e,Se.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=Se.MAX_OPEN_FDS;e++)if(!Se.streams[e])return e;throw new Se.ErrnoError(33)},getStreamChecked(e){var t=Se.getStream(e);if(!t)throw new Se.ErrnoError(8);return t},getStream:e=>Se.streams[e],createStream:(e,t=-1)=>(e=Object.assign(new Se.FSStream,e),-1==t&&(t=Se.nextfd()),e.fd=t,Se.streams[t]=e,e),closeStream(e){Se.streams[e]=null},dupStream(e,t=-1){var r=Se.createStream(e,t);return r.stream_ops?.dup?.(r),r},chrdev_stream_ops:{open(e){var t=Se.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open?.(e)},llseek(){throw new Se.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice(e,t){Se.devices[e]={stream_ops:t}},getDevice:e=>Se.devices[e],getMounts(e){for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push(...n.mounts)}return t},syncfs(e,t){"function"==typeof e&&(t=e,e=!1),Se.syncFSRequests++,Se.syncFSRequests>1&&w(`warning: ${Se.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var r=Se.getMounts(Se.root.mount),n=0;function o(e){return Se.syncFSRequests--,t(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=r.length&&o(null)}r.forEach((t=>{if(!t.type.syncfs)return a(null);t.type.syncfs(t,e,a)}))},mount(e,t,r){var n,o="/"===r,a=!r;if(o&&Se.root)throw new Se.ErrnoError(10);if(!o&&!a){var i=Se.lookupPath(r,{follow_mount:!1});if(r=i.path,n=i.node,Se.isMountpoint(n))throw new Se.ErrnoError(10);if(!Se.isDir(n.mode))throw new Se.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},l=e.mount(s);return l.mount=s,s.root=l,o?Se.root=l:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),l},unmount(e){var t=Se.lookupPath(e,{follow_mount:!1});if(!Se.isMountpoint(t.node))throw new Se.ErrnoError(28);var r=t.node,n=r.mounted,o=Se.getMounts(n);Object.keys(Se.nameTable).forEach((e=>{for(var t=Se.nameTable[e];t;){var r=t.name_next;o.includes(t.mount)&&Se.destroyNode(t),t=r}})),r.mounted=null;var a=r.mount.mounts.indexOf(n);r.mount.mounts.splice(a,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod(e,t,r){var n=Se.lookupPath(e,{parent:!0}).node,o=ae.basename(e);if(!o||"."===o||".."===o)throw new Se.ErrnoError(28);var a=Se.mayCreate(n,o);if(a)throw new Se.ErrnoError(a);if(!n.node_ops.mknod)throw new Se.ErrnoError(63);return n.node_ops.mknod(n,o,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,Se.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,Se.mknod(e,t,0)),mkdirTree(e,t){for(var r=e.split("/"),n="",o=0;o<r.length;++o)if(r[o]){n+="/"+r[o];try{Se.mkdir(n,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,t,r)=>(void 0===r&&(r=t,t=438),t|=8192,Se.mknod(e,t,r)),symlink(e,t){if(!se.resolve(e))throw new Se.ErrnoError(44);var r=Se.lookupPath(t,{parent:!0}).node;if(!r)throw new Se.ErrnoError(44);var n=ae.basename(t),o=Se.mayCreate(r,n);if(o)throw new Se.ErrnoError(o);if(!r.node_ops.symlink)throw new Se.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename(e,t){var r,n,o=ae.dirname(e),a=ae.dirname(t),i=ae.basename(e),s=ae.basename(t);if(r=Se.lookupPath(e,{parent:!0}).node,n=Se.lookupPath(t,{parent:!0}).node,!r||!n)throw new Se.ErrnoError(44);if(r.mount!==n.mount)throw new Se.ErrnoError(75);var l,u=Se.lookupNode(r,i),c=se.relative(e,a);if("."!==c.charAt(0))throw new Se.ErrnoError(28);if("."!==(c=se.relative(t,o)).charAt(0))throw new Se.ErrnoError(55);try{l=Se.lookupNode(n,s)}catch(e){}if(u!==l){var d=Se.isDir(u.mode),h=Se.mayDelete(r,i,d);if(h)throw new Se.ErrnoError(h);if(h=l?Se.mayDelete(n,s,d):Se.mayCreate(n,s))throw new Se.ErrnoError(h);if(!r.node_ops.rename)throw new Se.ErrnoError(63);if(Se.isMountpoint(u)||l&&Se.isMountpoint(l))throw new Se.ErrnoError(10);if(n!==r&&(h=Se.nodePermissions(r,"w")))throw new Se.ErrnoError(h);Se.hashRemoveNode(u);try{r.node_ops.rename(u,n,s),u.parent=n}catch(e){throw e}finally{Se.hashAddNode(u)}}},rmdir(e){var t=Se.lookupPath(e,{parent:!0}).node,r=ae.basename(e),n=Se.lookupNode(t,r),o=Se.mayDelete(t,r,!0);if(o)throw new Se.ErrnoError(o);if(!t.node_ops.rmdir)throw new Se.ErrnoError(63);if(Se.isMountpoint(n))throw new Se.ErrnoError(10);t.node_ops.rmdir(t,r),Se.destroyNode(n)},readdir(e){var t=Se.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new Se.ErrnoError(54);return t.node_ops.readdir(t)},unlink(e){var t=Se.lookupPath(e,{parent:!0}).node;if(!t)throw new Se.ErrnoError(44);var r=ae.basename(e),n=Se.lookupNode(t,r),o=Se.mayDelete(t,r,!1);if(o)throw new Se.ErrnoError(o);if(!t.node_ops.unlink)throw new Se.ErrnoError(63);if(Se.isMountpoint(n))throw new Se.ErrnoError(10);t.node_ops.unlink(t,r),Se.destroyNode(n)},readlink(e){var t=Se.lookupPath(e).node;if(!t)throw new Se.ErrnoError(44);if(!t.node_ops.readlink)throw new Se.ErrnoError(28);return se.resolve(Se.getPath(t.parent),t.node_ops.readlink(t))},stat(e,t){var r=Se.lookupPath(e,{follow:!t}).node;if(!r)throw new Se.ErrnoError(44);if(!r.node_ops.getattr)throw new Se.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>Se.stat(e,!0),chmod(e,t,r){var n;if(!(n="string"==typeof e?Se.lookupPath(e,{follow:!r}).node:e).node_ops.setattr)throw new Se.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod(e,t){Se.chmod(e,t,!0)},fchmod(e,t){var r=Se.getStreamChecked(e);Se.chmod(r.node,t)},chown(e,t,r,n){var o;if(!(o="string"==typeof e?Se.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new Se.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(e,t,r){Se.chown(e,t,r,!0)},fchown(e,t,r){var n=Se.getStreamChecked(e);Se.chown(n.node,t,r)},truncate(e,t){if(t<0)throw new Se.ErrnoError(28);var r;if(!(r="string"==typeof e?Se.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new Se.ErrnoError(63);if(Se.isDir(r.mode))throw new Se.ErrnoError(31);if(!Se.isFile(r.mode))throw new Se.ErrnoError(28);var n=Se.nodePermissions(r,"w");if(n)throw new Se.ErrnoError(n);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate(e,t){var r=Se.getStreamChecked(e);if(!(2097155&r.flags))throw new Se.ErrnoError(28);Se.truncate(r.node,t)},utime(e,t,r){var n=Se.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(t,r)})},open(e,t,r){if(""===e)throw new Se.ErrnoError(44);var n;if(r=64&(t="string"==typeof t?(e=>{var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===t)throw new Error(`Unknown file open mode: ${e}`);return t})(t):t)?4095&(r=void 0===r?438:r)|32768:0,"object"==typeof e)n=e;else{e=ae.normalize(e);try{n=Se.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var a=!1;if(64&t)if(n){if(128&t)throw new Se.ErrnoError(20)}else n=Se.mknod(e,r,0),a=!0;if(!n)throw new Se.ErrnoError(44);if(Se.isChrdev(n.mode)&&(t&=-513),65536&t&&!Se.isDir(n.mode))throw new Se.ErrnoError(54);if(!a){var i=Se.mayOpen(n,t);if(i)throw new Se.ErrnoError(i)}512&t&&!a&&Se.truncate(n,0),t&=-131713;var s=Se.createStream({node:n,path:Se.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),!o.logReadFiles||1&t||(Se.readFiles||(Se.readFiles={}),e in Se.readFiles||(Se.readFiles[e]=1)),s},close(e){if(Se.isClosed(e))throw new Se.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{Se.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,t,r){if(Se.isClosed(e))throw new Se.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new Se.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new Se.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read(e,t,r,n,o){if(n<0||o<0)throw new Se.ErrnoError(28);if(Se.isClosed(e))throw new Se.ErrnoError(8);if(1==(2097155&e.flags))throw new Se.ErrnoError(8);if(Se.isDir(e.node.mode))throw new Se.ErrnoError(31);if(!e.stream_ops.read)throw new Se.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new Se.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,t,r,n,o);return a||(e.position+=i),i},write(e,t,r,n,o,a){if(n<0||o<0)throw new Se.ErrnoError(28);if(Se.isClosed(e))throw new Se.ErrnoError(8);if(!(2097155&e.flags))throw new Se.ErrnoError(8);if(Se.isDir(e.node.mode))throw new Se.ErrnoError(31);if(!e.stream_ops.write)throw new Se.ErrnoError(28);e.seekable&&1024&e.flags&&Se.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new Se.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,t,r,n,o,a);return i||(e.position+=s),s},allocate(e,t,r){if(Se.isClosed(e))throw new Se.ErrnoError(8);if(t<0||r<=0)throw new Se.ErrnoError(28);if(!(2097155&e.flags))throw new Se.ErrnoError(8);if(!Se.isFile(e.node.mode)&&!Se.isDir(e.node.mode))throw new Se.ErrnoError(43);if(!e.stream_ops.allocate)throw new Se.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap(e,t,r,n,o){if(2&n&&!(2&o)&&2!=(2097155&e.flags))throw new Se.ErrnoError(2);if(1==(2097155&e.flags))throw new Se.ErrnoError(2);if(!e.stream_ops.mmap)throw new Se.ErrnoError(43);if(!t)throw new Se.ErrnoError(28);return e.stream_ops.mmap(e,t,r,n,o)},msync:(e,t,r,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,o):0,ioctl(e,t,r){if(!e.stream_ops.ioctl)throw new Se.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile(e,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error(`Invalid encoding type "${t.encoding}"`);var r,n=Se.open(e,t.flags),o=Se.stat(e).size,a=new Uint8Array(o);return Se.read(n,a,0,o,0),"utf8"===t.encoding?r=te(a,0):"binary"===t.encoding&&(r=a),Se.close(n),r},writeFile(e,t,r={}){r.flags=r.flags||577;var n=Se.open(e,r.flags,r.mode);if("string"==typeof t){var o=new Uint8Array(ue(t)+1),a=ce(t,o,0,o.length);Se.write(n,o,0,a,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");Se.write(n,t,0,t.byteLength,void 0,r.canOwn)}Se.close(n)},cwd:()=>Se.currentPath,chdir(e){var t=Se.lookupPath(e,{follow:!0});if(null===t.node)throw new Se.ErrnoError(44);if(!Se.isDir(t.node.mode))throw new Se.ErrnoError(54);var r=Se.nodePermissions(t.node,"x");if(r)throw new Se.ErrnoError(r);Se.currentPath=t.path},createDefaultDirectories(){Se.mkdir("/tmp"),Se.mkdir("/home"),Se.mkdir("/home/web_user")},createDefaultDevices(){Se.mkdir("/dev"),Se.registerDevice(Se.makedev(1,3),{read:()=>0,write:(e,t,r,n,o)=>n}),Se.mkdev("/dev/null",Se.makedev(1,3)),ge.register(Se.makedev(5,0),ge.default_tty_ops),ge.register(Se.makedev(6,0),ge.default_tty1_ops),Se.mkdev("/dev/tty",Se.makedev(5,0)),Se.mkdev("/dev/tty1",Se.makedev(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=ie(e).byteLength),e[--t]);Se.createDevice("/dev","random",r),Se.createDevice("/dev","urandom",r),Se.mkdir("/dev/shm"),Se.mkdir("/dev/shm/tmp")},createSpecialDirectories(){Se.mkdir("/proc");var e=Se.mkdir("/proc/self");Se.mkdir("/proc/self/fd"),Se.mount({mount(){var t=Se.createNode(e,"fd",16895,73);return t.node_ops={lookup(e,t){var r=+t,n=Se.getStreamChecked(r),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},t}},{},"/proc/self/fd")},createStandardStreams(e,t,r){e?Se.createDevice("/dev","stdin",e):Se.symlink("/dev/tty","/dev/stdin"),t?Se.createDevice("/dev","stdout",null,t):Se.symlink("/dev/tty","/dev/stdout"),r?Se.createDevice("/dev","stderr",null,r):Se.symlink("/dev/tty1","/dev/stderr"),Se.open("/dev/stdin",0),Se.open("/dev/stdout",1),Se.open("/dev/stderr",1)},staticInit(){[44].forEach((e=>{Se.genericErrors[e]=new Se.ErrnoError(e),Se.genericErrors[e].stack="<generic error, no stack>"})),Se.nameTable=new Array(4096),Se.mount(ye,{},"/"),Se.createDefaultDirectories(),Se.createDefaultDevices(),Se.createSpecialDirectories(),Se.filesystems={MEMFS:ye}},init(e,t,r){Se.initialized=!0,e??=o.stdin,t??=o.stdout,r??=o.stderr,Se.createStandardStreams(e,t,r)},quit(){Se.initialized=!1;for(var e=0;e<Se.streams.length;e++){var t=Se.streams[e];t&&Se.close(t)}},findObject(e,t){var r=Se.analyzePath(e,t);return r.exists?r.object:null},analyzePath(e,t){try{e=(n=Se.lookupPath(e,{follow:!t})).path}catch(e){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=Se.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=ae.basename(e),n=Se.lookupPath(e,{follow:!t}),r.exists=!0,r.path=n.path,r.object=n.node,r.name=n.node.name,r.isRoot="/"===n.path}catch(e){r.error=e.errno}return r},createPath(e,t,r,n){e="string"==typeof e?e:Se.getPath(e);for(var o=t.split("/").reverse();o.length;){var a=o.pop();if(a){var i=ae.join2(e,a);try{Se.mkdir(i)}catch(e){}e=i}}return i},createFile(e,t,r,n,o){var a=ae.join2("string"==typeof e?e:Se.getPath(e),t),i=Ee(n,o);return Se.create(a,i)},createDataFile(e,t,r,n,o,a){var i=t;e&&(e="string"==typeof e?e:Se.getPath(e),i=t?ae.join2(e,t):e);var s=Ee(n,o),l=Se.create(i,s);if(r){if("string"==typeof r){for(var u=new Array(r.length),c=0,d=r.length;c<d;++c)u[c]=r.charCodeAt(c);r=u}Se.chmod(l,146|s);var h=Se.open(l,577);Se.write(h,r,0,r.length,0,a),Se.close(h),Se.chmod(l,s)}},createDevice(e,t,r,n){var o=ae.join2("string"==typeof e?e:Se.getPath(e),t),a=Ee(!!r,!!n);Se.createDevice.major||(Se.createDevice.major=64);var i=Se.makedev(Se.createDevice.major++,0);return Se.registerDevice(i,{open(e){e.seekable=!1},close(e){n?.buffer?.length&&n(10)},read(e,t,n,o,a){for(var i=0,s=0;s<o;s++){var l;try{l=r()}catch(e){throw new Se.ErrnoError(29)}if(void 0===l&&0===i)throw new Se.ErrnoError(6);if(null==l)break;i++,t[n+s]=l}return i&&(e.node.timestamp=Date.now()),i},write(e,t,r,o,a){for(var i=0;i<o;i++)try{n(t[r+i])}catch(e){throw new Se.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),i}}),Se.mkdev(o,a,i)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");try{e.contents=d(e.url),e.usedBytes=e.contents.length}catch(e){throw new Se.ErrnoError(29)}},createLazyFile(e,t,r,n,o){class a{constructor(){this.lengthKnown=!1,this.chunks=[]}get(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}}setDataGetter(e){this.getter=e}cacheLength(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),o=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,a=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,i=1048576;o||(i=n);var s=this;s.setDataGetter((e=>{var t=e*i,o=(e+1)*i-1;if(o=Math.min(o,n-1),void 0===s.chunks[e]&&(s.chunks[e]=((e,t)=>{if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",r,!1),n!==i&&o.setRequestHeader("Range","bytes="+e+"-"+t),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+r+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):de(o.responseText||"")})(t,o)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!a&&n||(i=n=1,n=this.getter(0).length,i=n,y("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if("undefined"!=typeof XMLHttpRequest){if(!s)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i={isDevice:!1,contents:new a}}else i={isDevice:!1,url:r};var l=Se.createFile(e,t,i,n,o);i.contents?l.contents=i.contents:i.url&&(l.contents=null,l.url=i.url),Object.defineProperties(l,{usedBytes:{get:function(){return this.contents.length}}});var u={};function c(e,t,r,n,o){var a=e.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)t[r+s]=a[o+s];else for(s=0;s<i;s++)t[r+s]=a.get(o+s);return i}return Object.keys(l.stream_ops).forEach((e=>{var t=l.stream_ops[e];u[e]=(...e)=>(Se.forceLoadFile(l),t(...e))})),u.read=(e,t,r,n,o)=>(Se.forceLoadFile(l),c(e,t,r,n,o)),u.mmap=(e,t,r,n,o)=>{Se.forceLoadFile(l);var a=ve();if(!a)throw new Se.ErrnoError(48);return c(e,E,a,t,r),{ptr:a,allocated:!0}},l.stream_ops=u,l}},$e={DEFAULT_POLLMASK:5,calculateAt(e,t,r){if(ae.isAbs(t))return t;var n;if(n=-100===e?Se.cwd():$e.getStreamFromFD(e).path,0==t.length){if(!r)throw new Se.ErrnoError(44);return n}return ae.join2(n,t)},doStat(e,t,r){var n=e(t);C[r>>2]=n.dev,C[r+4>>2]=n.mode,P[r+8>>2]=n.nlink,C[r+12>>2]=n.uid,C[r+16>>2]=n.gid,C[r+20>>2]=n.rdev,V=[n.size>>>0,(N=n.size,+Math.abs(N)>=1?N>0?+Math.floor(N/4294967296)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)],C[r+24>>2]=V[0],C[r+28>>2]=V[1],C[r+32>>2]=4096,C[r+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return V=[Math.floor(o/1e3)>>>0,(N=Math.floor(o/1e3),+Math.abs(N)>=1?N>0?+Math.floor(N/4294967296)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)],C[r+40>>2]=V[0],C[r+44>>2]=V[1],P[r+48>>2]=o%1e3*1e3*1e3,V=[Math.floor(a/1e3)>>>0,(N=Math.floor(a/1e3),+Math.abs(N)>=1?N>0?+Math.floor(N/4294967296)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)],C[r+56>>2]=V[0],C[r+60>>2]=V[1],P[r+64>>2]=a%1e3*1e3*1e3,V=[Math.floor(i/1e3)>>>0,(N=Math.floor(i/1e3),+Math.abs(N)>=1?N>0?+Math.floor(N/4294967296)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)],C[r+72>>2]=V[0],C[r+76>>2]=V[1],P[r+80>>2]=i%1e3*1e3*1e3,V=[n.ino>>>0,(N=n.ino,+Math.abs(N)>=1?N>0?+Math.floor(N/4294967296)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)],C[r+88>>2]=V[0],C[r+92>>2]=V[1],0},doMsync(e,t,r,n,o){if(!Se.isFile(t.node.mode))throw new Se.ErrnoError(43);if(2&n)return 0;var a=S.slice(e,e+r);Se.msync(t,a,o,r,n)},getStreamFromFD:e=>Se.getStreamChecked(e),varargs:void 0,getStr:e=>re(e)},xe=e=>{for(var t="",r=e;S[r];)t+=he[S[r++]];return t},Ce={},Pe={},Te={},ke=e=>{throw new pe(e)},Ae=e=>{throw new me(e)},De=(e,t,r)=>{function n(t){var n=r(t);n.length!==e.length&&Ae("Mismatched type converter count");for(var o=0;o<e.length;++o)Fe(e[o],n[o])}e.forEach((e=>Te[e]=t));var o=new Array(t.length),a=[],i=0;t.forEach(((e,t)=>{Pe.hasOwnProperty(e)?o[t]=Pe[e]:(a.push(e),Ce.hasOwnProperty(e)||(Ce[e]=[]),Ce[e].push((()=>{o[t]=Pe[e],++i===a.length&&n(o)})))})),0===a.length&&n(o)};function Fe(e,t,r={}){return function(e,t,r={}){var n=t.name;if(e||ke(`type "${n}" must have a positive integer typeid pointer`),Pe.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;ke(`Cannot register type '${n}' twice`)}if(Pe[e]=t,delete Te[e],Ce.hasOwnProperty(e)){var o=Ce[e];delete Ce[e],o.forEach((e=>e()))}}(e,t,r)}var Me,Be=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),Oe=e=>{ke(e.$$.ptrType.registeredClass.name+" instance already deleted")},Ue=!1,Le=e=>{},je=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},ze=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var n=ze(e,t,r.baseClass);return null===n?null:r.downcast(n)},Ie={},Ne=()=>Object.keys(qe).length,Ve=()=>{var e=[];for(var t in qe)qe.hasOwnProperty(t)&&e.push(qe[t]);return e},We=[],He=()=>{for(;We.length;){var e=We.pop();e.$$.deleteScheduled=!1,e.delete()}},Ge=e=>{Me=e,We.length&&Me&&Me(He)},qe={},Qe=(e,t)=>(t=((e,t)=>{for(void 0===t&&ke("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t})(e,t),qe[t]),Xe=(e,t)=>(t.ptrType&&t.ptr||Ae("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&Ae("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Ke(Object.create(e,{$$:{value:t,writable:!0}})));function Je(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=Qe(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?Xe(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):Xe(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a,i=this.registeredClass.getActualType(t),s=Ie[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var l=ze(t,this.registeredClass,a.registeredClass);return null===l?o.call(this):this.isSmartPointer?Xe(a.registeredClass.instancePrototype,{ptrType:a,ptr:l,smartPtrType:this,smartPtr:e}):Xe(a.registeredClass.instancePrototype,{ptrType:a,ptr:l})}var Ke=e=>"undefined"==typeof FinalizationRegistry?(Ke=e=>e,e):(Ue=new FinalizationRegistry((e=>{je(e.$$)})),Ke=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t};Ue.register(e,r,e)}return e},Le=e=>Ue.unregister(e),Ke(e));function Ze(){}var Ye=(e,t)=>Object.defineProperty(t,"name",{value:e}),et=(e,t,r)=>{if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(...n){return e[t].overloadTable.hasOwnProperty(n.length)||ke(`Function '${r}' called with an invalid number of arguments (${n.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[n.length].apply(this,n)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}},tt=(e,t,r)=>{o.hasOwnProperty(e)?((void 0===r||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[r])&&ke(`Cannot register public name '${e}' twice`),et(o,e,e),o.hasOwnProperty(r)&&ke(`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 rt(e,t,r,n,o,a,i,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var nt=(e,t,r)=>{for(;t!==r;)t.upcast||ke(`Expected null or instance of ${r.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function ot(e,t){if(null===t)return this.isReference&&ke(`null is not a valid ${this.name}`),0;t.$$||ke(`Cannot pass "${Mt(t)}" as a ${this.name}`),t.$$.ptr||ke(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=t.$$.ptrType.registeredClass;return nt(t.$$.ptr,r,this.registeredClass)}function at(e,t){var r;if(null===t)return this.isReference&&ke(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t&&t.$$||ke(`Cannot pass "${Mt(t)}" as a ${this.name}`),t.$$.ptr||ke(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&ke(`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=nt(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&ke("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:ke(`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,Ft.toHandle((()=>o.delete()))),null!==e&&e.push(this.rawDestructor,r)}break;default:ke("Unsupporting sharing policy")}return r}function it(e,t){if(null===t)return this.isReference&&ke(`null is not a valid ${this.name}`),0;t.$$||ke(`Cannot pass "${Mt(t)}" as a ${this.name}`),t.$$.ptr||ke(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&ke(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;return nt(t.$$.ptr,r,this.registeredClass)}function st(e){return this.fromWireType(P[e>>2])}function lt(e,t,r,n,o,a,i,s,l,u,c){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=u,this.rawDestructor=c,o||void 0!==t.baseClass?this.toWireType=at:n?(this.toWireType=ot,this.destructorFunction=null):(this.toWireType=it,this.destructorFunction=null)}var ut,ct=(e,t,r)=>{o.hasOwnProperty(e)||Ae("Replacing nonexistent public symbol"),void 0!==o[e].overloadTable&&void 0!==r?o[e].overloadTable[r]=t:(o[e]=t,o[e].argCount=r)},dt=(e,t,r=[])=>{var n=((e,t,r)=>(e=e.replace(/p/g,"i"),(0,o["dynCall_"+e])(t,...r)))(e,t,r);return n},ht=(e,t)=>{e=xe(e);var r,n,o=(r=e,n=t,(...e)=>dt(r,n,e));return"function"!=typeof o&&ke(`unknown function pointer with signature ${e}: ${t}`),o},pt=e=>{var t=dr(e),r=xe(t);return ur(t),r},mt=(e,t)=>{var r=[],n={};throw t.forEach((function e(t){n[t]||Pe[t]||(Te[t]?Te[t].forEach(e):(r.push(t),n[t]=!0))})),new ut(`${e}: `+r.map(pt).join([", "]))},ft=(e,t)=>{for(var r=[],n=0;n<e;n++)r.push(P[t+4*n>>2]);return r},gt=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function vt(e){for(var t=1;t<e.length;++t)if(null!==e[t]&&void 0===e[t].destructorFunction)return!0;return!1}var yt=e=>{try{return e()}catch(e){z(e)}},wt=e=>{if(e instanceof X||"unwind"==e)return _;m(1,e)},bt=0,_t=()=>K||bt>0,Et=e=>{_=e,_t()||(o.onExit?.(e),D=!0),m(e,new X(e))},St=(e,t)=>{_=e,Et(e)},$t=e=>{if(!D)try{e(),(()=>{if(!_t())try{St(_)}catch(e){wt(e)}})()}catch(e){wt(e)}},xt={instrumentWasmImports(e){var t=/^(invoke_.*|__asyncjs__.*)$/;for(let[r,n]of Object.entries(e))"function"==typeof n&&(n.isAsync||t.test(r))},instrumentWasmExports(e){var t={};for(let[r,n]of Object.entries(e))t[r]="function"==typeof n?(...e)=>{xt.exportCallStack.push(r);try{return n(...e)}finally{D||(xt.exportCallStack.pop(),xt.maybeStopUnwind())}}:n;return t},State:{Normal:0,Unwinding:1,Rewinding:2,Disabled:3},state:0,StackSize:4096,currData:null,handleSleepReturnValue:0,exportCallStack:[],callStackNameToId:{},callStackIdToName:{},callStackId:0,asyncPromiseHandlers:null,sleepCallbacks:[],getCallStackId(e){var t=xt.callStackNameToId[e];return void 0===t&&(t=xt.callStackId++,xt.callStackNameToId[e]=t,xt.callStackIdToName[t]=e),t},maybeStopUnwind(){xt.currData&&xt.state===xt.State.Unwinding&&0===xt.exportCallStack.length&&(xt.state=xt.State.Normal,yt(kr),"undefined"!=typeof Fibers&&Fibers.trampoline())},whenDone:()=>new Promise(((e,t)=>{xt.asyncPromiseHandlers={resolve:e,reject:t}})),allocateData(){var e=cr(12+xt.StackSize);return xt.setDataHeader(e,e+12,xt.StackSize),xt.setDataRewindFunc(e),e},setDataHeader(e,t,r){P[e>>2]=t,P[e+4>>2]=t+r},setDataRewindFunc(e){var t=xt.exportCallStack[0],r=xt.getCallStackId(t);C[e+8>>2]=r},getDataRewindFuncName(e){var t=C[e+8>>2];return xt.callStackIdToName[t]},getDataRewindFunc:e=>lr[e],doRewind(e){var t=xt.getDataRewindFuncName(e);return xt.getDataRewindFunc(t)()},handleSleep(e){if(!D){if(xt.state===xt.State.Normal){var t=!1,r=!1;e(((e=0)=>{if(!D&&(xt.handleSleepReturnValue=e,t=!0,r)){xt.state=xt.State.Rewinding,yt((()=>Ar(xt.currData))),"undefined"!=typeof Browser&&Browser.mainLoop.func&&Browser.mainLoop.resume();var n,o=!1;try{n=xt.doRewind(xt.currData)}catch(e){n=e,o=!0}var a=!1;if(!xt.currData){var i=xt.asyncPromiseHandlers;i&&(xt.asyncPromiseHandlers=null,(o?i.reject:i.resolve)(n),a=!0)}if(o&&!a)throw n}})),r=!0,t||(xt.state=xt.State.Unwinding,xt.currData=xt.allocateData(),"undefined"!=typeof Browser&&Browser.mainLoop.func&&Browser.mainLoop.pause(),yt((()=>Tr(xt.currData))))}else xt.state===xt.State.Rewinding?(xt.state=xt.State.Normal,yt(Dr),ur(xt.currData),xt.currData=null,xt.sleepCallbacks.forEach($t)):z(`invalid state: ${xt.state}`);return xt.handleSleepReturnValue}},handleAsync:e=>xt.handleSleep((t=>{e().then(t)}))};function Ct(e,t,r,n,o,a){var i=t.length;i<2&&ke("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==t[1]&&null!==r,l=vt(t),u="void"!==t[0].name,c=[e,ke,n,o,gt,t[0],t[1]],d=0;d<i-2;++d)c.push(t[d+2]);if(c.push(xt),!l)for(d=s?1:2;d<t.length;++d)null!==t[d].destructorFunction&&c.push(t[d].destructorFunction);let[h,p]=function(e,t,r,n){var o=vt(e),a=e.length-2,i=[],s=["fn"];t&&s.push("thisWired");for(var l=0;l<a;++l)i.push(`arg${l}`),s.push(`arg${l}Wired`);i=i.join(","),s=s.join(",");var u=`\n return function (${i}) {\n if (arguments.length !== ${a}) {\n throwBindingError('function ' + humanName + ' called with ' + arguments.length + ' arguments, expected ${a}');\n }`;o&&(u+="var destructors = [];\n");var c=o?"destructors":"null",d=["humanName","throwBindingError","invoker","fn","runDestructors","retType","classParam"];for(t&&(u+=`var thisWired = classParam['toWireType'](${c}, this);\n`),l=0;l<a;++l)u+=`var arg${l}Wired = argType${l}['toWireType'](${c}, arg${l});\n`,d.push(`argType${l}`);u+=(r||n?"var rv = ":"")+`invoker(${s});\n`;var h=r?"rv":"";if(d.push("Asyncify"),u+=`function onDone(${h}) {\n`,o)u+="runDestructors(destructors);\n";else for(l=t?1:2;l<e.length;++l){var p=1===l?"thisWired":"arg"+(l-2)+"Wired";null!==e[l].destructorFunction&&(u+=`${p}_dtor(${p});\n`,d.push(`${p}_dtor`))}return r&&(u+="var ret = retType['fromWireType'](rv);\nreturn ret;\n"),u+="}\n",u+=`return Asyncify.currData ? Asyncify.whenDone().then(onDone) : onDone(${h});\n`,[d,u+="}\n"]}(t,s,u,a);h.push(p);var m=function(e,t){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var r=Ye(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,o=e.apply(n,t);return o instanceof Object?o:n}(Function,h)(...c);return Ye(e,m)}var Pt,Tt=e=>{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e},kt=[],At=[],Dt=()=>At.length/2-5-kt.length,Ft={toValue:e=>(e||ke("Cannot use deleted val. handle = "+e),At[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const t=kt.pop()||At.length;return At[t]=e,At[t+1]=1,t}}}},Rt={name:"emscripten::val",fromWireType:e=>{var t=Ft.toValue(e);return(e=>{e>9&&0==--At[e+1]&&(At[e]=void 0,kt.push(e))})(e),t},toWireType:(e,t)=>Ft.toHandle(t),argPackAdvance:8,readValueFromPointer:st,destructorFunction:null},Mt=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},Bt=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(T[e>>2])};case 8:return function(e){return this.fromWireType(k[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},Ot=(e,t,r)=>{switch(t){case 1:return r?e=>E[e]:e=>S[e];case 2:return r?e=>$[e>>1]:e=>x[e>>1];case 4:return r?e=>C[e>>2]:e=>P[e>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Ut=(e,t,r)=>ce(e,S,t,r),Lt="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,jt=(e,t)=>{for(var r=e,n=r>>1,o=n+t/2;!(n>=o)&&x[n];)++n;if((r=n<<1)-e>32&&Lt)return Lt.decode(S.subarray(e,r));for(var a="",i=0;!(i>=t/2);++i){var s=$[e+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},zt=(e,t,r)=>{if(r??=2147483647,r<2)return 0;for(var n=t,o=(r-=2)<2*e.length?r/2:e.length,a=0;a<o;++a){var i=e.charCodeAt(a);$[t>>1]=i,t+=2}return $[t>>1]=0,t-n},It=e=>2*e.length,Nt=(e,t)=>{for(var r=0,n="";!(r>=t/4);){var o=C[e+4*r>>2];if(0==o)break;if(++r,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},Vt=(e,t,r)=>{if(r??=2147483647,r<4)return 0;for(var n=t,o=n+r-4,a=0;a<e.length;++a){var i=e.charCodeAt(a);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++a)),C[t>>2]=i,(t+=4)+4>o)break}return C[t>>2]=0,t-n},Wt=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},Ht={};Pt=()=>performance.now();var Gt=e=>{var t=(e-b.buffer.byteLength+65535)/65536;try{return b.grow(t),F(),1}catch(e){}},qt=e=>xt.handleSleep((t=>{return r=t,setTimeout((()=>{$t(r)}),e);var r}));qt.isAsync=!0;var Qt,Xt,Jt,Kt={},Zt=()=>{if(!Zt.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",_:p||"./this.program"};for(var t in Kt)void 0===Kt[t]?delete e[t]:e[t]=Kt[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);Zt.strings=r}return Zt.strings},Yt=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN,er=e=>{var t=ue(e)+1,r=gr(t);return Ut(e,r,t),r},tr={errorCallback:(e,t,r,n)=>{var o=Y(),a=er(r);xr(e,t,a,n),Z(o)},initManagers:()=>{function e(){this.objects={},this.nextId=1,this.create=function(e,t={}){var r=this.nextId++;return t.refcount=1,t.object=e,this.objects[r]=t,r},this.get=function(e){if(e)return this.objects[e].object},this.reference=function(e){this.objects[e].refcount++},this.release=function(e){var t=this.objects[e];t.refcount--,t.refcount<=0&&delete this.objects[e]}}tr.mgrDevice||(tr.mgrSurface=tr.mgrSurface||new e,tr.mgrSwapChain=tr.mgrSwapChain||new e,tr.mgrAdapter=tr.mgrAdapter||new e,tr.mgrDevice=tr.mgrDevice||new e,tr.mgrQueue=tr.mgrQueue||new e,tr.mgrCommandBuffer=tr.mgrCommandBuffer||new e,tr.mgrCommandEncoder=tr.mgrCommandEncoder||new e,tr.mgrRenderPassEncoder=tr.mgrRenderPassEncoder||new e,tr.mgrComputePassEncoder=tr.mgrComputePassEncoder||new e,tr.mgrBindGroup=tr.mgrBindGroup||new e,tr.mgrBuffer=tr.mgrBuffer||new e,tr.mgrSampler=tr.mgrSampler||new e,tr.mgrTexture=tr.mgrTexture||new e,tr.mgrTextureView=tr.mgrTextureView||new e,tr.mgrQuerySet=tr.mgrQuerySet||new e,tr.mgrBindGroupLayout=tr.mgrBindGroupLayout||new e,tr.mgrPipelineLayout=tr.mgrPipelineLayout||new e,tr.mgrRenderPipeline=tr.mgrRenderPipeline||new e,tr.mgrComputePipeline=tr.mgrComputePipeline||new e,tr.mgrShaderModule=tr.mgrShaderModule||new e,tr.mgrRenderBundleEncoder=tr.mgrRenderBundleEncoder||new e,tr.mgrRenderBundle=tr.mgrRenderBundle||new e)},makeColor:e=>({r:k[e>>3],g:k[e+8>>3],b:k[e+16>>3],a:k[e+24>>3]}),makeExtent3D:e=>({width:P[e>>2],height:P[e+4>>2],depthOrArrayLayers:P[e+8>>2]}),makeOrigin3D:e=>({x:P[e>>2],y:P[e+4>>2],z:P[e+8>>2]}),makeImageCopyTexture:e=>({texture:tr.mgrTexture.get(P[e+4>>2]),mipLevel:P[e+8>>2],origin:tr.makeOrigin3D(e+12),aspect:tr.TextureAspect[P[e+24>>2]]}),makeTextureDataLayout:e=>{var t=P[e+16>>2],r=P[e+20>>2];return{offset:4294967296*P[e+4+8>>2]+P[e+8>>2],bytesPerRow:4294967295===t?void 0:t,rowsPerImage:4294967295===r?void 0:r}},makeImageCopyBuffer:e=>{var t=e+8,r=tr.makeTextureDataLayout(t);return r.buffer=tr.mgrBuffer.get(P[e+32>>2]),r},makePipelineConstants:(e,t)=>{if(e){for(var r={},n=0;n<e;++n){var o=t+16*n;r[re(P[o+4>>2])]=k[o+8>>3]}return r}},makePipelineLayout:e=>e?tr.mgrPipelineLayout.get(e):"auto",makeProgrammableStageDescriptor:e=>{if(e){var t={module:tr.mgrShaderModule.get(P[e+4>>2]),constants:tr.makePipelineConstants(P[e+12>>2],P[e+16>>2])},r=P[e+8>>2];return r&&(t.entryPoint=re(r)),t}},fillLimitStruct:(e,t)=>{var r=t+8;function n(t,n){var o=e[t];C[r+n>>2]=o}function o(t,n){var o=e[t];V=[o>>>0,(N=o,+Math.abs(N)>=1?N>0?+Math.floor(N/4294967296)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)],C[r+n>>2]=V[0],C[r+(n+4)>>2]=V[1]}n("maxTextureDimension1D",0),n("maxTextureDimension2D",4),n("maxTextureDimension3D",8),n("maxTextureArrayLayers",12),n("maxBindGroups",16),n("maxBindGroupsPlusVertexBuffers",20),n("maxBindingsPerBindGroup",24),n("maxDynamicUniformBuffersPerPipelineLayout",28),n("maxDynamicStorageBuffersPerPipelineLayout",32),n("maxSampledTexturesPerShaderStage",36),n("maxSamplersPerShaderStage",40),n("maxStorageBuffersPerShaderStage",44),n("maxStorageTexturesPerShaderStage",48),n("maxUniformBuffersPerShaderStage",52),n("minUniformBufferOffsetAlignment",72),n("minStorageBufferOffsetAlignment",76),o("maxUniformBufferBindingSize",56),o("maxStorageBufferBindingSize",64),n("maxVertexBuffers",80),o("maxBufferSize",88),n("maxVertexAttributes",96),n("maxVertexBufferArrayStride",100),n("maxInterStageShaderComponents",104),n("maxInterStageShaderVariables",108),n("maxColorAttachments",112),n("maxColorAttachmentBytesPerSample",116),n("maxComputeWorkgroupStorageSize",120),n("maxComputeInvocationsPerWorkgroup",124),n("maxComputeWorkgroupSizeX",128),n("maxComputeWorkgroupSizeY",132),n("maxComputeWorkgroupSizeZ",136),n("maxComputeWorkgroupsPerDimension",140)},Int_BufferMapState:{unmapped:1,pending:2,mapped:3},Int_CompilationMessageType:{error:0,warning:1,info:2},Int_DeviceLostReason:{undefined:1,unknown:1,destroyed:2},Int_PreferredFormat:{rgba8unorm:18,bgra8unorm:23},WGSLFeatureName:[,"readonly_and_readwrite_storage_textures","packed_4x8_integer_dot_product","unrestricted_pointer_parameters","pointer_composite_access"],AddressMode:[,"clamp-to-edge","repeat","mirror-repeat"],AlphaMode:[,"opaque","premultiplied"],BlendFactor:[,"zero","one","src","one-minus-src","src-alpha","one-minus-src-alpha","dst","one-minus-dst","dst-alpha","one-minus-dst-alpha","src-alpha-saturated","constant","one-minus-constant"],BlendOperation:[,"add","subtract","reverse-subtract","min","max"],BufferBindingType:[,"uniform","storage","read-only-storage"],BufferMapState:{1:"unmapped",2:"pending",3:"mapped"},CompareFunction:[,"never","less","equal","less-equal","greater","not-equal","greater-equal","always"],CompilationInfoRequestStatus:["success","error","device-lost","unknown"],CullMode:[,"none","front","back"],ErrorFilter:{1:"validation",2:"out-of-memory",3:"internal"},FeatureName:[,"depth-clip-control","depth32float-stencil8","timestamp-query","texture-compression-bc","texture-compression-etc2","texture-compression-astc","indirect-first-instance","shader-f16","rg11b10ufloat-renderable","bgra8unorm-storage","float32-filterable"],FilterMode:[,"nearest","linear"],FrontFace:[,"ccw","cw"],IndexFormat:[,"uint16","uint32"],LoadOp:[,"clear","load"],MipmapFilterMode:[,"nearest","linear"],PowerPreference:[,"low-power","high-performance"],PrimitiveTopology:[,"point-list","line-list","line-strip","triangle-list","triangle-strip"],QueryType:{1:"occlusion",2:"timestamp"},SamplerBindingType:[,"filtering","non-filtering","comparison"],StencilOperation:[,"keep","zero","replace","invert","increment-clamp","decrement-clamp","increment-wrap","decrement-wrap"],StorageTextureAccess:[,"write-only","read-only","read-write"],StoreOp:[,"store","discard"],TextureAspect:[,"all","stencil-only","depth-only"],TextureDimension:[,"1d","2d","3d"],TextureFormat:[,"r8unorm","r8snorm","r8uint","r8sint","r16uint","r16sint","r16float","rg8unorm","rg8snorm","rg8uint","rg8sint","r32float","r32uint","r32sint","rg16uint","rg16sint","rg16float","rgba8unorm","rgba8unorm-srgb","rgba8snorm","rgba8uint","rgba8sint","bgra8unorm","bgra8unorm-srgb","rgb10a2uint","rgb10a2unorm","rg11b10ufloat","rgb9e5ufloat","rg32float","rg32uint","rg32sint","rgba16uint","rgba16sint","rgba16float","rgba32float","rgba32uint","rgba32sint","stencil8","depth16unorm","depth24plus","depth24plus-stencil8","depth32float","depth32float-stencil8","bc1-rgba-unorm","bc1-rgba-unorm-srgb","bc2-rgba-unorm","bc2-rgba-unorm-srgb","bc3-rgba-unorm","bc3-rgba-unorm-srgb","bc4-r-unorm","bc4-r-snorm","bc5-rg-unorm","bc5-rg-snorm","bc6h-rgb-ufloat","bc6h-rgb-float","bc7-rgba-unorm","bc7-rgba-unorm-srgb","etc2-rgb8unorm","etc2-rgb8unorm-srgb","etc2-rgb8a1unorm","etc2-rgb8a1unorm-srgb","etc2-rgba8unorm","etc2-rgba8unorm-srgb","eac-r11unorm","eac-r11snorm","eac-rg11unorm","eac-rg11snorm","astc-4x4-unorm","astc-4x4-unorm-srgb","astc-5x4-unorm","astc-5x4-unorm-srgb","astc-5x5-unorm","astc-5x5-unorm-srgb","astc-6x5-unorm","astc-6x5-unorm-srgb","astc-6x6-unorm","astc-6x6-unorm-srgb","astc-8x5-unorm","astc-8x5-unorm-srgb","astc-8x6-unorm","astc-8x6-unorm-srgb","astc-8x8-unorm","astc-8x8-unorm-srgb","astc-10x5-unorm","astc-10x5-unorm-srgb","astc-10x6-unorm","astc-10x6-unorm-srgb","astc-10x8-unorm","astc-10x8-unorm-srgb","astc-10x10-unorm","astc-10x10-unorm-srgb","astc-12x10-unorm","astc-12x10-unorm-srgb","astc-12x12-unorm","astc-12x12-unorm-srgb"],TextureSampleType:[,"float","unfilterable-float","depth","sint","uint"],TextureViewDimension:[,"1d","2d","2d-array","cube","cube-array","3d"],VertexFormat:[,"uint8x2","uint8x4","sint8x2","sint8x4","unorm8x2","unorm8x4","snorm8x2","snorm8x4","uint16x2","uint16x4","sint16x2","sint16x4","unorm16x2","unorm16x4","snorm16x2","snorm16x4","float16x2","float16x4","float32","float32x2","float32x3","float32x4","uint32","uint32x2","uint32x3","uint32x4","sint32","sint32x2","sint32x3","sint32x4","unorm10-10-10-2"],VertexStepMode:[,"vertex-buffer-not-used","vertex","instance"],FeatureNameString2Enum:{undefined:"0","depth-clip-control":"1","depth32float-stencil8":"2","timestamp-query":"3","texture-compression-bc":"4","texture-compression-etc2":"5","texture-compression-astc":"6","indirect-first-instance":"7","shader-f16":"8","rg11b10ufloat-renderable":"9","bgra8unorm-storage":"10","float32-filterable":"11"}},rr=[0,"undefined"!=typeof document?document:0,"undefined"!=typeof window?window:0],nr=e=>{var t;return e=(t=e)>2?re(t):t,rr[e]||("undefined"!=typeof document?document.querySelector(e):void 0)},or=Se.createPath,ar=Se.createLazyFile,ir=Se.createDevice;Se.createPreloadedFile=_e,Se.staticInit(),o.FS_createPath=Se.createPath,o.FS_createDataFile=Se.createDataFile,o.FS_createPreloadedFile=Se.createPreloadedFile,o.FS_unlink=Se.unlink,o.FS_createLazyFile=Se.createLazyFile,o.FS_createDevice=Se.createDevice,(()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);he=e})(),pe=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},me=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Object.assign(Ze.prototype,{isAliasOf(e){if(!(this instanceof Ze))return!1;if(!(e instanceof Ze))return!1;var t=this.$$.ptrType.registeredClass,r=this.$$.ptr;e.$$=e.$$;for(var 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},clone(){if(this.$$.ptr||Oe(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=Ke(Object.create(Object.getPrototypeOf(this),{$$:{value:Be(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||Oe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ke("Object already scheduled for deletion"),Le(this),je(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Oe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ke("Object already scheduled for deletion"),We.push(this),1===We.length&&Me&&Me(He),this.$$.deleteScheduled=!0,this}}),o.getInheritedInstanceCount=Ne,o.getLiveInheritedInstances=Ve,o.flushPendingDeletes=He,o.setDelayFunction=Ge,Object.assign(lt.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor?.(e)},argPackAdvance:8,readValueFromPointer:st,fromWireType:Je}),ut=o.UnboundTypeError=(Qt=Error,(Jt=Ye(Xt="UnboundTypeError",(function(e){this.name=Xt,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(Qt.prototype),Jt.prototype.constructor=Jt,Jt.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},Jt),At.push(0,1,void 0,1,null,1,!0,1,!1,1),o.count_emval_handles=Dt,tr.initManagers();var sr={b:(e,t,r,n)=>{z(`Assertion failed: ${re(e)}, at: `+[t?re(t):"unknown filename",r,n?re(n):"unknown function"])},N:function(e,t,r){$e.varargs=r;try{var n=$e.getStreamFromFD(e);switch(t){case 0:if((o=ne())<0)return-28;for(;Se.streams[o];)o++;return Se.dupStream(n,o).fd;case 1:case 2:case 13:case 14:return 0;case 3:return n.flags;case 4:var o=ne();return n.flags|=o,0;case 12:return o=oe(),$[o+0>>1]=2,0}return-28}catch(e){if(void 0===Se||"ErrnoError"!==e.name)throw e;return-e.errno}},xa:function(e,t,r){$e.varargs=r;try{var n=$e.getStreamFromFD(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var o=n.tty.ops.ioctl_tcgets(n),a=oe();C[a>>2]=o.c_iflag||0,C[a+4>>2]=o.c_oflag||0,C[a+8>>2]=o.c_cflag||0,C[a+12>>2]=o.c_lflag||0;for(var i=0;i<32;i++)E[a+i+17]=o.c_cc[i]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){a=oe();var s=C[a>>2],l=C[a+4>>2],u=C[a+8>>2],c=C[a+12>>2],d=[];for(i=0;i<32;i++)d.push(E[a+i+17]);return n.tty.ops.ioctl_tcsets(n.tty,t,{c_iflag:s,c_oflag:l,c_cflag:u,c_lflag:c,c_cc:d})}return 0;case 21519:return n.tty?(a=oe(),C[a>>2]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return a=oe(),Se.ioctl(n,t,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var h=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=oe(),$[a>>1]=h[0],$[a+2>>1]=h[1]}return 0;default:return-28}}catch(e){if(void 0===Se||"ErrnoError"!==e.name)throw e;return-e.errno}},ya:function(e,t,r,n){$e.varargs=n;try{t=$e.getStr(t),t=$e.calculateAt(e,t);var o=n?ne():0;return Se.open(t,r,o).fd}catch(e){if(void 0===Se||"ErrnoError"!==e.name)throw e;return-e.errno}},za:()=>{z("")},fa:(e,t,r,n,o)=>{},Ba:(e,t,r,n)=>{Fe(e,{name:t=xe(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:n},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(S[e])},destructorFunction:null})},Fa:(e,t,r,n,o,a,i,s,l,u,c,d,h)=>{c=xe(c),a=ht(o,a),s&&=ht(i,s),u&&=ht(l,u),h=ht(d,h);var p=(e=>{if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?`_${e}`:e})(c);tt(p,(function(){mt(`Cannot construct ${c} due to unbound types`,[n])})),De([e,t,r],n?[n]:[],(t=>{var r,o;t=t[0],o=n?(r=t.registeredClass).instancePrototype:Ze.prototype;var i=Ye(c,(function(...e){if(Object.getPrototypeOf(this)!==l)throw new pe("Use 'new' to construct "+c);if(void 0===d.constructor_body)throw new pe(c+" has no accessible constructor");var t=d.constructor_body[e.length];if(void 0===t)throw new pe(`Tried to invoke ctor of ${c} with invalid number of parameters (${e.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return t.apply(this,e)})),l=Object.create(o,{constructor:{value:i}});i.prototype=l;var d=new rt(c,i,l,h,r,a,s,u);d.baseClass&&(d.baseClass.__derivedClasses??=[],d.baseClass.__derivedClasses.push(d));var m=new lt(c,d,!0,!1,!1),f=new lt(c+"*",d,!1,!1,!1),g=new lt(c+" const*",d,!1,!0,!1);return Ie[e]={pointerType:f,constPointerType:g},ct(p,i),[m,f,g]}))},Ea:(e,t,r,n,o,a)=>{var i=ft(t,r);o=ht(n,o),De([],[e],(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 pe(`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]=()=>{mt(`Cannot construct ${e.name} due to unbound types`,i)},De([],i,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=Ct(r,n,null,o,a),[]))),[]}))},q:(e,t,r,n,o,a,i,s,l)=>{var u=ft(r,n);t=xe(t),t=Tt(t),a=ht(o,a),De([],[e],(e=>{var n=`${(e=e[0]).name}.${t}`;function o(){mt(`Cannot call ${n} due to unbound types`,u)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var c=e.registeredClass.instancePrototype,d=c[t];return void 0===d||void 0===d.overloadTable&&d.className!==e.name&&d.argCount===r-2?(o.argCount=r-2,o.className=e.name,c[t]=o):(et(c,t,n),c[t].overloadTable[r-2]=o),De([],u,(o=>{var s=Ct(n,o,e,a,i,l);return void 0===c[t].overloadTable?(s.argCount=r-2,c[t]=s):c[t].overloadTable[r-2]=s,[]})),[]}))},Aa:e=>Fe(e,Rt),O:(e,t,r)=>{Fe(e,{name:t=xe(t),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:8,readValueFromPointer:Bt(t,r),destructorFunction:null})},R:(e,t,r,n,o,a,i)=>{var s=ft(t,r);e=xe(e),e=Tt(e),o=ht(n,o),tt(e,(function(){mt(`Cannot call ${e} due to unbound types`,s)}),t-1),De([],s,(r=>{var n=[r[0],null].concat(r.slice(1));return ct(e,Ct(e,n,null,o,a,i),t-1),[]}))},v:(e,t,r,n,o)=>{t=xe(t);var a=e=>e;if(0===n){var i=32-8*r;a=e=>e<<i>>>i}var s=t.includes("unsigned");Fe(e,{name:t,fromWireType:a,toWireType:s?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:8,readValueFromPointer:Ot(t,r,0!==n),destructorFunction:null})},l:(e,t,r)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function o(e){var t=P[e>>2],r=P[e+4>>2];return new n(E.buffer,r,t)}Fe(e,{name:r=xe(r),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},P:(e,t)=>{var r="std::string"===(t=xe(t));Fe(e,{name:t,fromWireType(e){var t,n=P[e>>2],o=e+4;if(r)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==S[s]){var l=re(a,s-a);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),a=s+1}}else{var u=new Array(n);for(i=0;i<n;++i)u[i]=String.fromCharCode(S[o+i]);t=u.join("")}return ur(e),t},toWireType(e,t){var n;t instanceof ArrayBuffer&&(t=new Uint8Array(t));var o="string"==typeof t;o||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||ke("Cannot pass non-string to std::string"),n=r&&o?ue(t):t.length;var a=cr(4+n+1),i=a+4;if(P[a>>2]=n,r&&o)Ut(t,i,n+1);else if(o)for(var s=0;s<n;++s){var l=t.charCodeAt(s);l>255&&(ur(i),ke("String has UTF-16 code units that do not fit in 8 bits")),S[i+s]=l}else for(s=0;s<n;++s)S[i+s]=t[s];return null!==e&&e.push(ur,a),a},argPackAdvance:8,readValueFromPointer:st,destructorFunction(e){ur(e)}})},J:(e,t,r)=>{var n,o,a,i;r=xe(r),2===t?(n=jt,o=zt,i=It,a=e=>x[e>>1]):4===t&&(n=Nt,o=Vt,i=Wt,a=e=>P[e>>2]),Fe(e,{name:r,fromWireType:e=>{for(var r,o=P[e>>2],i=e+4,s=0;s<=o;++s){var l=e+4+s*t;if(s==o||0==a(l)){var u=n(i,l-i);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),i=l+t}}return ur(e),r},toWireType:(e,n)=>{"string"!=typeof n&&ke(`Cannot pass non-string to C++ string type ${r}`);var a=i(n),s=cr(4+a+t);return P[s>>2]=a/t,o(n,s+4,a+t),null!==e&&e.push(ur,s),s},argPackAdvance:8,readValueFromPointer:st,destructorFunction(e){ur(e)}})},Ca:(e,t)=>{Fe(e,{isVoid:!0,name:t=xe(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},ta:(e,t,r)=>S.copyWithin(e,t,t+r),na:()=>{K=!1,bt=0},la:()=>{throw 1/0},B:(e,t)=>{var r,n,o;n="_emval_take_value",void 0===(o=Pe[r=e])&&ke(`${n} has unknown type ${pt(r)}`);var a=(e=o).readValueFromPointer(t);return Ft.toHandle(a)},oa:(e,t)=>{if(Ht[e]&&(clearTimeout(Ht[e].id),delete Ht[e]),!t)return 0;var r=setTimeout((()=>{delete Ht[e],$t((()=>hr(e,Pt())))}),t);return Ht[e]={id:r,timeout_ms:t},0},pa:(e,t,r,n)=>{var o=(new Date).getFullYear(),a=new Date(o,0,1),i=new Date(o,6,1),s=a.getTimezoneOffset(),l=i.getTimezoneOffset(),u=Math.max(s,l);P[e>>2]=60*u,C[t>>2]=Number(s!=l);var c=e=>{var t=e>=0?"-":"+",r=Math.abs(e);return`UTC${t}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`},d=c(s),h=c(l);l<s?(Ut(d,r,17),Ut(h,n,17)):(Ut(d,n,17),Ut(h,r,17))},sa:e=>{var t,r,n=S.length,o=2147483648;if((e>>>=0)>o)return!1;for(var a=1;a<=4;a*=2){var i=n*(1+.2/a);i=Math.min(i,e+100663296);var s=Math.min(o,(t=Math.max(e,i),r=65536,Math.ceil(t/r)*r));if(Gt(s))return!0}return!1},S:qt,qa:(e,t)=>{var r=0;return Zt().forEach(((n,o)=>{var a=t+r;P[e+4*o>>2]=a,((e,t)=>{for(var r=0;r<e.length;++r)E[t++]=e.charCodeAt(r);E[t]=0})(n,a),r+=n.length+1})),0},ra:(e,t)=>{var r=Zt();P[e>>2]=r.length;var n=0;return r.forEach((e=>n+=e.length+1)),P[t>>2]=n,0},M:function(e){try{var t=$e.getStreamFromFD(e);return Se.close(t),0}catch(e){if(void 0===Se||"ErrnoError"!==e.name)throw e;return e.errno}},wa:function(e,t,r,n){try{var o=((e,t,r,n)=>{for(var o=0,a=0;a<r;a++){var i=P[t>>2],s=P[t+4>>2];t+=8;var l=Se.read(e,E,i,s,n);if(l<0)return-1;if(o+=l,l<s)break}return o})($e.getStreamFromFD(e),t,r);return P[n>>2]=o,0}catch(e){if(void 0===Se||"ErrnoError"!==e.name)throw e;return e.errno}},ea:function(e,t,r,n,o){var a=Yt(t,r);try{if(isNaN(a))return 61;var i=$e.getStreamFromFD(e);return Se.llseek(i,a,n),V=[i.position>>>0,(N=i.position,+Math.abs(N)>=1?N>0?+Math.floor(N/4294967296)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0)],C[o>>2]=V[0],C[o+4>>2]=V[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(e){if(void 0===Se||"ErrnoError"!==e.name)throw e;return e.errno}},va:function(e,t,r,n){try{var o=((e,t,r,n)=>{for(var o=0,a=0;a<r;a++){var i=P[t>>2],s=P[t+4>>2];t+=8;var l=Se.write(e,E,i,s,n);if(l<0)return-1;if(o+=l,l<s)break}return o})($e.getStreamFromFD(e),t,r);return P[n>>2]=o,0}catch(e){if(void 0===Se||"ErrnoError"!==e.name)throw e;return e.errno}},m:function(e,t){var r=Y();try{return wr(e,t)}catch(e){if(Z(r),e!==e+0)throw e;pr(1,0)}},g:function(e,t,r){var n=Y();try{return $r(e,t,r)}catch(e){if(Z(n),e!==e+0)throw e;pr(1,0)}},e:function(e,t,r,n){var o=Y();try{return yr(e,t,r,n)}catch(e){if(Z(o),e!==e+0)throw e;pr(1,0)}},D:function(e,t,r,n,o,a){var i=Y();try{return Sr(e,t,r,n,o,a)}catch(e){if(Z(i),e!==e+0)throw e;pr(1,0)}},a:function(e,t){var r=Y();try{br(e,t)}catch(e){if(Z(r),e!==e+0)throw e;pr(1,0)}},c:function(e,t,r){var n=Y();try{_r(e,t,r)}catch(e){if(Z(n),e!==e+0)throw e;pr(1,0)}},f:function(e,t,r,n){var o=Y();try{xr(e,t,r,n)}catch(e){if(Z(o),e!==e+0)throw e;pr(1,0)}},A:function(e,t,r,n,o){var a=Y();try{Cr(e,t,r,n,o)}catch(e){if(Z(a),e!==e+0)throw e;pr(1,0)}},da:function(e,t,r,n,o,a){var i=Y();try{Er(e,t,r,n,o,a)}catch(e){if(Z(i),e!==e+0)throw e;pr(1,0)}},ma:Et,U:(e,t)=>{var r=tr.mgrAdapter.get(e);if(0!==t){var n=0;r.features.forEach((e=>{var r=tr.FeatureNameString2Enum[e];C[t+n>>2]=r,n+=4}))}return r.features.size},_:e=>tr.mgrAdapter.release(e),T:(e,t,r,n)=>{var o=tr.mgrAdapter.get(e),a={};if(t){var i=P[t+8>>2];if(i){var s=P[t+12>>2];a.requiredFeatures=Array.from(C.subarray(s>>2,s+4*i>>2),(e=>tr.FeatureName[e]))}var l=P[t+16>>2];if(l){var u=l+8,c={};function g(e,t){var r=P[u+t>>2];4294967295!=r&&(c[e]=r)}function v(e,t){var r=u+t,n=P[r>>2],o=P[r+4>>2];4294967295==n&&4294967295==o||(c[e]=4294967296*P[r+4>>2]+P[r>>2])}g("maxTextureDimension1D",0),g("maxTextureDimension2D",4),g("maxTextureDimension3D",8),g("maxTextureArrayLayers",12),g("maxBindGroups",16),g("maxBindGroupsPlusVertexBuffers",20),g("maxDynamicUniformBuffersPerPipelineLayout",28),g("maxDynamicStorageBuffersPerPipelineLayout",32),g("maxSampledTexturesPerShaderStage",36),g("maxSamplersPerShaderStage",40),g("maxStorageBuffersPerShaderStage",44),g("maxStorageTexturesPerShaderStage",48),g("maxUniformBuffersPerShaderStage",52),g("minUniformBufferOffsetAlignment",72),g("minStorageBufferOffsetAlignment",76),v("maxUniformBufferBindingSize",56),v("maxStorageBufferBindingSize",64),g("maxVertexBuffers",80),v("maxBufferSize",88),g("maxVertexAttributes",96),g("maxVertexBufferArrayStride",100),g("maxInterStageShaderComponents",104),g("maxInterStageShaderVariables",108),g("maxColorAttachments",112),g("maxColorAttachmentBytesPerSample",116),g("maxComputeWorkgroupStorageSize",120),g("maxComputeInvocationsPerWorkgroup",124),g("maxComputeWorkgroupSizeX",128),g("maxComputeWorkgroupSizeY",132),g("maxComputeWorkgroupSizeZ",136),g("maxComputeWorkgroupsPerDimension",140),a.requiredLimits=c}var d=P[t+20>>2];if(d){var h={};(p=P[d+4>>2])&&(h.label=re(p)),a.defaultQueue=h}var p,m=P[t+28>>2],f=P[t+32>>2];(p=P[t+4>>2])&&(a.label=re(p))}o.requestDevice(a).then((e=>{$t((()=>{var t={queueId:tr.mgrQueue.create(e.queue)},o=tr.mgrDevice.create(e,t);m&&e.lost.then((e=>{$t((()=>tr.errorCallback(m,tr.Int_DeviceLostReason[e.reason],e.message,f)))})),Cr(r,0,o,0,n)}))}),(function(e){$t((()=>{var t=Y(),o=er(e.message);Cr(r,1,0,o,n),Z(t)}))}))},w:e=>tr.mgrBindGroupLayout.release(e),t:e=>tr.mgrBindGroup.release(e),La:e=>{var t=tr.mgrBuffer.objects[e];if(t.onUnmap){for(var r=0;r<t.onUnmap.length;++r)t.onUnmap[r]();t.onUnmap=void 0}tr.mgrBuffer.get(e).destroy()},ja:function(e){var t,r=tr.mgrBuffer.get(e).size;return N=r,t=+Math.abs(N)>=1?N>0?+Math.floor(N/4294967296)>>>0:~~+Math.ceil((N-+(~~N>>>0))/4294967296)>>>0:0,mr(t),r>>>0},Ka:e=>tr.mgrBuffer.release(e),X:e=>tr.mgrCommandBuffer.release(e),ca:(e,t)=>{function r(e){var t=P[e+4>>2];if(0!==t){var r=C[e+8>>2];-1==r&&(r=void 0);var n=P[e+16>>2],o=P[e+20>>2],a=tr.makeColor(e+24);return{view:tr.mgrTextureView.get(t),depthSlice:r,resolveTarget:tr.mgrTextureView.get(P[e+12>>2]),clearValue:a,loadOp:tr.LoadOp[n],storeOp:tr.StoreOp[o]}}}function n(e,t){for(var n=[],o=0;o<e;++o)n.push(r(t+56*o));return n}function o(e){if(0!==e)return{view:tr.mgrTextureView.get(P[e>>2]),depthClearValue:T[e+12>>2],depthLoadOp:tr.LoadOp[P[e+4>>2]],depthStoreOp:tr.StoreOp[P[e+8>>2]],depthReadOnly:!!P[e+16>>2],stencilClearValue:P[e+28>>2],stencilLoadOp:tr.LoadOp[P[e+20>>2]],stencilStoreOp:tr.StoreOp[P[e+24>>2]],stencilReadOnly:!!P[e+32>>2]}}function a(e){if(0!==e)return{querySet:tr.mgrQuerySet.get(P[e>>2]),beginningOfPassWriteIndex:P[e+4>>2],endOfPassWriteIndex:P[e+8>>2]}}var i=function(e){var t=P[e>>2],r=void 0;if(0!==t){P[t+4>>2];var i=t;r=4294967296*P[i+4+8>>2]+P[i+8>>2]}var s={label:void 0,colorAttachments:n(P[e+8>>2],P[e+12>>2]),depthStencilAttachment:o(P[e+16>>2]),occlusionQuerySet:tr.mgrQuerySet.get(P[e+20>>2]),timestampWrites:a(P[e+24>>2]),maxDrawCount:r},l=P[e+4>>2];return l&&(s.label=re(l)),s}(t),s=tr.mgrCommandEncoder.get(e);return tr.mgrRenderPassEncoder.create(s.beginRenderPass(i))},F:(e,t,r,n)=>{var o=tr.mgrCommandEncoder.get(e),a=tr.makeExtent3D(n);o.copyTextureToTexture(tr.makeImageCopyTexture(t),tr.makeImageCopyTexture(r),a)},Y:(e,t)=>{var r=tr.mgrCommandEncoder.get(e);return tr.mgrCommandBuffer.create(r.finish())},W:e=>tr.mgrCommandEncoder.release(e),y:(e,t)=>{function r(e){var t,r=P[e+8>>2],n=P[e+32>>2],o=P[e+36>>2],a=P[e+4>>2];if(r){var i=P[(t=e+24)>>2]+4294967296*C[t+4>>2];return-1==i&&(i=void 0),{binding:a,resource:{buffer:tr.mgrBuffer.get(r),offset:4294967296*P[e+4+16>>2]+P[e+16>>2],size:i}}}return n?{binding:a,resource:tr.mgrSampler.get(n)}:{binding:a,resource:tr.mgrTextureView.get(o)}}var n={label:void 0,layout:tr.mgrBindGroupLayout.get(P[t+8>>2]),entries:function(e,t){for(var n=[],o=0;o<e;++o)n.push(r(t+40*o));return n}(P[t+12>>2],P[t+16>>2])},o=P[t+4>>2];o&&(n.label=re(o));var a=tr.mgrDevice.get(e);return tr.mgrBindGroup.create(a.createBindGroup(n))},u:(e,t)=>{function r(e){var t=P[e+4>>2];if(t)return{type:tr.BufferBindingType[t],hasDynamicOffset:!!P[e+8>>2],minBindingSize:4294967296*P[e+4+16>>2]+P[e+16>>2]}}function n(e){var t=P[e+4>>2];if(t)return{type:tr.SamplerBindingType[t]}}function o(e){var t=P[e+4>>2];if(t)return{sampleType:tr.TextureSampleType[t],viewDimension:tr.TextureViewDimension[P[e+8>>2]],multisampled:!!P[e+12>>2]}}function a(e){var t=P[e+4>>2];if(t)return{access:tr.StorageTextureAccess[t],format:tr.TextureFormat[P[e+8>>2]],viewDimension:tr.TextureViewDimension[P[e+12>>2]]}}var i={entries:function(e,t){for(var i,s=[],l=0;l<e;++l)s.push({binding:P[(i=t+80*l)+4>>2],visibility:P[i+8>>2],buffer:r(i+16),sampler:n(i+40),texture:o(i+48),storageTexture:a(i+64)});return s}(P[t+8>>2],P[t+12>>2])},s=P[t+4>>2];s&&(i.label=re(s));var l=tr.mgrDevice.get(e);return tr.mgrBindGroupLayout.create(l.createBindGroupLayout(i))},G:(e,t)=>{var r=!!P[t+24>>2],n={label:void 0,usage:P[t+8>>2],size:4294967296*P[t+4+16>>2]+P[t+16>>2],mappedAtCreation:r},o=P[t+4>>2];o&&(n.label=re(o));var a=tr.mgrDevice.get(e),i={},s=tr.mgrBuffer.create(a.createBuffer(n),i);return r&&(i.mapMode=2,i.onUnmap=[]),s},Z:(e,t)=>{var r;if(t){r={label:void 0};var n=P[t+4>>2];n&&(r.label=re(n))}var o=tr.mgrDevice.get(e);return tr.mgrCommandEncoder.create(o.createCommandEncoder(r))},s:(e,t)=>{for(var r=P[t+8>>2],n=P[t+12>>2],o=[],a=0;a<r;++a)o.push(tr.mgrBindGroupLayout.get(P[n+4*a>>2]));var i={label:void 0,bindGroupLayouts:o},s=P[t+4>>2];s&&(i.label=re(s));var l=tr.mgrDevice.get(e);return tr.mgrPipelineLayout.create(l.createPipelineLayout(i))},k:(e,t)=>{var r=(e=>{function t(e){if(e)return{operation:tr.BlendOperation[P[e>>2]],srcFactor:tr.BlendFactor[P[e+4>>2]],dstFactor:tr.BlendFactor[P[e+8>>2]]}}function r(e){if(e)return{alpha:t(e+12),color:t(e+0)}}function n(e,t){for(var n,o,a=[],i=0;i<e;++i)a.push((o=void 0,0===(o=P[(n=t+16*i)+4>>2])?void 0:{format:tr.TextureFormat[o],blend:r(P[n+8>>2]),writeMask:P[n+12>>2]}));return a}function o(e){return{compare:tr.CompareFunction[P[e>>2]],failOp:tr.StencilOperation[P[e+4>>2]],depthFailOp:tr.StencilOperation[P[e+8>>2]],passOp:tr.StencilOperation[P[e+12>>2]]}}function a(e,t){for(var r,n=[],o=0;o<e;++o)n.push((r=t+24*o,{format:tr.VertexFormat[P[r>>2]],offset:4294967296*P[r+4+8>>2]+P[r+8>>2],shaderLocation:P[r+16>>2]}));return n}function i(e){if(e){var t=P[e+8>>2];return 1===t?null:{arrayStride:4294967296*P[e+4>>2]+P[e>>2],stepMode:tr.VertexStepMode[t],attributes:a(P[e+12>>2],P[e+16>>2])}}}function s(e,t){if(e){for(var r=[],n=0;n<e;++n)r.push(i(t+24*n));return r}}var l={label:void 0,layout:tr.makePipelineLayout(P[e+8>>2]),vertex:function(e){if(e){var t={module:tr.mgrShaderModule.get(P[e+4>>2]),constants:tr.makePipelineConstants(P[e+12>>2],P[e+16>>2]),buffers:s(P[e+20>>2],P[e+24>>2])},r=P[e+8>>2];return r&&(t.entryPoint=re(r)),t}}(e+12),primitive:function(e){if(e){var t=P[e>>2],r=t?P[t+4>>2]:0;return{topology:tr.PrimitiveTopology[P[e+4>>2]],stripIndexFormat:tr.IndexFormat[P[e+8>>2]],frontFace:tr.FrontFace[P[e+12>>2]],cullMode:tr.CullMode[P[e+16>>2]],unclippedDepth:7===r&&!!P[t+8>>2]}}}(e+40),depthStencil:function(e){if(e)return{format:tr.TextureFormat[P[e+4>>2]],depthWriteEnabled:!!P[e+8>>2],depthCompare:tr.CompareFunction[P[e+12>>2]],stencilFront:o(e+16),stencilBack:o(e+32),stencilReadMask:P[e+48>>2],stencilWriteMask:P[e+52>>2],depthBias:C[e+56>>2],depthBiasSlopeScale:T[e+60>>2],depthBiasClamp:T[e+64>>2]}}(P[e+60>>2]),multisample:function(e){if(e)return{count:P[e+4>>2],mask:P[e+8>>2],alphaToCoverageEnabled:!!P[e+12>>2]}}(e+64),fragment:function(e){if(e){var t={module:tr.mgrShaderModule.get(P[e+4>>2]),constants:tr.makePipelineConstants(P[e+12>>2],P[e+16>>2]),targets:n(P[e+20>>2],P[e+24>>2])},r=P[e+8>>2];return r&&(t.entryPoint=re(r)),t}}(P[e+80>>2])},u=P[e+4>>2];return u&&(l.label=re(u)),l})(t),n=tr.mgrDevice.get(e);return tr.mgrRenderPipeline.create(n.createRenderPipeline(r))},E:(e,t)=>{var r;if(t){r={label:void 0,addressModeU:tr.AddressMode[P[t+8>>2]],addressModeV:tr.AddressMode[P[t+12>>2]],addressModeW:tr.AddressMode[P[t+16>>2]],magFilter:tr.FilterMode[P[t+20>>2]],minFilter:tr.FilterMode[P[t+24>>2]],mipmapFilter:tr.MipmapFilterMode[P[t+28>>2]],lodMinClamp:T[t+32>>2],lodMaxClamp:T[t+36>>2],compare:tr.CompareFunction[P[t+40>>2]]};var n=P[t+4>>2];n&&(r.label=re(n))}var o=tr.mgrDevice.get(e);return tr.mgrSampler.create(o.createSampler(r))},o:(e,t)=>{var r=P[t>>2],n=P[r+4>>2],o={label:void 0,code:""},a=P[t+4>>2];switch(a&&(o.label=re(a)),n){case 5:var i=P[r+8>>2],s=P[r+12>>2]>>2;o.code=P.subarray(s,s+i);break;case 6:var l=P[r+8>>2];l&&(o.code=re(l))}var u=tr.mgrDevice.get(e);return tr.mgrShaderModule.create(u.createShaderModule(o))},z:(e,t)=>{var r={label:void 0,size:tr.makeExtent3D(t+16),mipLevelCount:P[t+32>>2],sampleCount:P[t+36>>2],dimension:tr.TextureDimension[P[t+12>>2]],format:tr.TextureFormat[P[t+28>>2]],usage:P[t+8>>2]},n=P[t+4>>2];n&&(r.label=re(n));var o=P[t+40>>2];if(o){var a=P[t+44>>2];r.viewFormats=Array.from(C.subarray(a>>2,a+4*o>>2),(function(e){return tr.TextureFormat[e]}))}var i=tr.mgrDevice.get(e);return tr.mgrTexture.create(i.createTexture(r))},Ga:e=>{var t=tr.mgrDevice.objects[e].queueId;return tr.mgrQueue.reference(t),t},$:e=>tr.mgrDevice.release(e),Da:(e,t)=>{var r=P[t>>2],n=P[r+8>>2],o=nr(n).getContext("webgpu");if(!o)return 0;var a=P[t+4>>2];return a&&(o.surfaceLabelWebGPU=re(a)),tr.mgrSurface.create(o)},V:(e,t,r,n)=>{var o;if(t&&(o={powerPreference:tr.PowerPreference[P[t+8>>2]],forceFallbackAdapter:!!P[t+16>>2]}),!("gpu"in navigator)){var a=Y(),i=er("WebGPU not available on this browser (navigator.gpu is not available)");return Cr(r,1,0,i,n),void Z(a)}navigator.gpu.requestAdapter(o).then((e=>{$t((()=>{if(e)((e,t,n,o)=>{Cr(r,0,t,0,o)})(0,tr.mgrAdapter.create(e),0,n);else{var t=Y();((e,t,n,o)=>{Cr(r,1,0,n,o)})(0,0,er("WebGPU not available on this system (requestAdapter returned null)"),n),Z(t)}}))}),(e=>{$t((()=>{var t=Y();((e,t,n,o)=>{Cr(r,2,0,n,o)})(0,0,er(e.message),n),Z(t)}))}))},r:e=>tr.mgrPipelineLayout.release(e),Ja:e=>tr.mgrQueue.release(e),C:(e,t,r)=>{var n=tr.mgrQueue.get(e),o=Array.from(C.subarray(r>>2,r+4*t>>2),(e=>tr.mgrCommandBuffer.get(e)));n.submit(o)},ia:function(e,t,r,n,o,a){var i=Yt(r,n),s=tr.mgrQueue.get(e),l=tr.mgrBuffer.get(t),u=S.subarray(o,o+a);s.writeBuffer(l,i,u,0,a)},I:(e,t,r,n,o,a)=>{var i=tr.mgrQueue.get(e),s=tr.makeImageCopyTexture(t),l=tr.makeTextureDataLayout(o),u=tr.makeExtent3D(a),c=S.subarray(r,r+n);i.writeTexture(s,c,l,u)},K:(e,t,r,n,o,a)=>{tr.mgrRenderPassEncoder.get(e).drawIndexed(t,r,n,o,a)},ba:e=>{tr.mgrRenderPassEncoder.get(e).end()},aa:e=>tr.mgrRenderPassEncoder.release(e),d:(e,t,r,n,o)=>{var a=tr.mgrRenderPassEncoder.get(e),i=tr.mgrBindGroup.get(r);if(0==n)a.setBindGroup(t,i);else{for(var s=[],l=0;l<n;l++,o+=4)s.push(P[o>>2]);a.setBindGroup(t,i,s)}},ga:function(e,t,r,n,o,a,i){var s=Yt(n,o),l=Yt(a,i),u=tr.mgrRenderPassEncoder.get(e),c=tr.mgrBuffer.get(t);-1==l&&(l=void 0),u.setIndexBuffer(c,tr.IndexFormat[r],s,l)},h:(e,t)=>{var r=tr.mgrRenderPassEncoder.get(e),n=tr.mgrRenderPipeline.get(t);r.setPipeline(n)},p:(e,t,r,n,o)=>{tr.mgrRenderPassEncoder.get(e).setScissorRect(t,r,n,o)},i:(e,t)=>{tr.mgrRenderPassEncoder.get(e).setStencilReference(t)},ha:function(e,t,r,n,o,a,i){var s=Yt(n,o),l=Yt(a,i),u=tr.mgrRenderPassEncoder.get(e),c=tr.mgrBuffer.get(r);-1==l&&(l=void 0),u.setVertexBuffer(t,c,s,l)},j:e=>tr.mgrRenderPipeline.release(e),H:e=>tr.mgrSampler.release(e),n:e=>tr.mgrShaderModule.release(e),Ha:(e,t)=>{var r=P[t+4>>2],n=tr.mgrSurface.get(e),o=[P[t+28>>2],P[t+32>>2]];0!==o[0]&&(n.canvas.width=o[0]),0!==o[1]&&(n.canvas.height=o[1]);var a={device:tr.mgrDevice.get(r),format:tr.TextureFormat[P[t+8>>2]],usage:P[t+12>>2],alphaMode:tr.AlphaMode[P[t+24>>2]]};n.configure(a)},Ia:(e,t)=>{var r=tr.mgrSurface.get(e);try{var n=tr.mgrTexture.create(r.getCurrentTexture());P[t>>2]=n,C[t+4>>2]=0,C[t+8>>2]=0}catch(e){P[t>>2]=0,C[t+4>>2]=0,C[t+8>>2]=5}},Q:e=>tr.mgrSurface.release(e),Na:(e,t)=>{var r;if(t){var n=P[t+20>>2],o=P[t+28>>2];r={format:tr.TextureFormat[P[t+8>>2]],dimension:tr.TextureViewDimension[P[t+12>>2]],baseMipLevel:P[t+16>>2],mipLevelCount:4294967295===n?void 0:n,baseArrayLayer:P[t+24>>2],arrayLayerCount:4294967295===o?void 0:o,aspect:tr.TextureAspect[P[t+32>>2]]};var a=P[t+4>>2];a&&(r.label=re(a))}var i=tr.mgrTexture.get(e);return tr.mgrTextureView.create(i.createView(r))},Ma:e=>tr.mgrTexture.get(e).destroy(),Oa:e=>{var t=tr.mgrTexture.get(e);return tr.TextureFormat.indexOf(t.format)},ka:e=>tr.mgrTexture.get(e).height,ua:e=>tr.mgrTexture.get(e).width,L:e=>tr.mgrTexture.release(e),x:e=>tr.mgrTextureView.release(e)},lr=function(){var e,t,r,a,i={a:sr};function s(e,t){var r;return lr=e.exports,lr=xt.instrumentWasmExports(lr),b=lr.Pa,F(),lr.Ua,r=lr.Qa,M.unshift(r),j(),lr}if(L(),o.instantiateWasm)try{return o.instantiateWasm(i,s)}catch(e){w(`Module.instantiateWasm callback failed with error: ${e}`),n(e)}return I||(I=G()),(e=A,t=I,r=i,a=function(e){s(e.instance)},e||"function"!=typeof WebAssembly.instantiateStreaming||W(t)||H(t)||l||"function"!=typeof fetch?Q(t,r,a):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(a,(function(e){return w(`wasm streaming compile failed: ${e}`),w("falling back to ArrayBuffer instantiation"),Q(t,r,a)}))))).catch(n),{}}(),ur=e=>(ur=lr.Ra)(e),cr=e=>(cr=lr.Sa)(e),dr=e=>(dr=lr.Ta)(e),hr=(e,t)=>(hr=lr.Va)(e,t),pr=(e,t)=>(pr=lr.Wa)(e,t),mr=e=>(mr=lr.Xa)(e),fr=e=>(fr=lr.Ya)(e),gr=e=>(gr=lr.Za)(e),vr=()=>(vr=lr._a)(),yr=o.dynCall_iiii=(e,t,r,n)=>(yr=o.dynCall_iiii=lr.$a)(e,t,r,n),wr=o.dynCall_ii=(e,t)=>(wr=o.dynCall_ii=lr.ab)(e,t);o.dynCall_iiiii=(e,t,r,n,a)=>(o.dynCall_iiiii=lr.bb)(e,t,r,n,a),o.dynCall_iiiiiffiii=(e,t,r,n,a,i,s,l,u,c)=>(o.dynCall_iiiiiffiii=lr.cb)(e,t,r,n,a,i,s,l,u,c),o.dynCall_fii=(e,t,r)=>(o.dynCall_fii=lr.db)(e,t,r);var br=o.dynCall_vi=(e,t)=>(br=o.dynCall_vi=lr.eb)(e,t),_r=o.dynCall_vii=(e,t,r)=>(_r=o.dynCall_vii=lr.fb)(e,t,r),Er=o.dynCall_viiij=(e,t,r,n,a,i)=>(Er=o.dynCall_viiij=lr.gb)(e,t,r,n,a,i),Sr=o.dynCall_iiiiii=(e,t,r,n,a,i)=>(Sr=o.dynCall_iiiiii=lr.hb)(e,t,r,n,a,i),$r=o.dynCall_iii=(e,t,r)=>($r=o.dynCall_iii=lr.ib)(e,t,r),xr=o.dynCall_viii=(e,t,r,n)=>(xr=o.dynCall_viii=lr.jb)(e,t,r,n),Cr=o.dynCall_viiii=(e,t,r,n,a)=>(Cr=o.dynCall_viiii=lr.kb)(e,t,r,n,a);o.dynCall_viiiii=(e,t,r,n,a,i)=>(o.dynCall_viiiii=lr.lb)(e,t,r,n,a,i),o.dynCall_viiiiii=(e,t,r,n,a,i,s)=>(o.dynCall_viiiiii=lr.mb)(e,t,r,n,a,i,s),o.dynCall_v=e=>(o.dynCall_v=lr.nb)(e),o.dynCall_fi=(e,t)=>(o.dynCall_fi=lr.ob)(e,t),o.dynCall_iiiiiii=(e,t,r,n,a,i,s)=>(o.dynCall_iiiiiii=lr.pb)(e,t,r,n,a,i,s),o.dynCall_iiiiiiii=(e,t,r,n,a,i,s,l)=>(o.dynCall_iiiiiiii=lr.qb)(e,t,r,n,a,i,s,l),o.dynCall_iif=(e,t,r)=>(o.dynCall_iif=lr.rb)(e,t,r),o.dynCall_iiif=(e,t,r,n)=>(o.dynCall_iiif=lr.sb)(e,t,r,n),o.dynCall_iiffff=(e,t,r,n,a,i)=>(o.dynCall_iiffff=lr.tb)(e,t,r,n,a,i),o.dynCall_iiiffff=(e,t,r,n,a,i,s)=>(o.dynCall_iiiffff=lr.ub)(e,t,r,n,a,i,s),o.dynCall_jiji=(e,t,r,n,a)=>(o.dynCall_jiji=lr.vb)(e,t,r,n,a),o.dynCall_iiiiiiiii=(e,t,r,n,a,i,s,l,u)=>(o.dynCall_iiiiiiiii=lr.wb)(e,t,r,n,a,i,s,l,u),o.dynCall_iiiff=(e,t,r,n,a)=>(o.dynCall_iiiff=lr.xb)(e,t,r,n,a),o.dynCall_iiifi=(e,t,r,n,a)=>(o.dynCall_iiifi=lr.yb)(e,t,r,n,a),o.dynCall_viijii=(e,t,r,n,a,i,s)=>(o.dynCall_viijii=lr.zb)(e,t,r,n,a,i,s),o.dynCall_iiiiij=(e,t,r,n,a,i,s)=>(o.dynCall_iiiiij=lr.Ab)(e,t,r,n,a,i,s),o.dynCall_iiiiid=(e,t,r,n,a,i)=>(o.dynCall_iiiiid=lr.Bb)(e,t,r,n,a,i),o.dynCall_iiiiijj=(e,t,r,n,a,i,s,l,u)=>(o.dynCall_iiiiijj=lr.Cb)(e,t,r,n,a,i,s,l,u),o.dynCall_iiiiiijj=(e,t,r,n,a,i,s,l,u,c)=>(o.dynCall_iiiiiijj=lr.Db)(e,t,r,n,a,i,s,l,u,c);var Pr,Tr=e=>(Tr=lr.Eb)(e),kr=()=>(kr=lr.Fb)(),Ar=e=>(Ar=lr.Gb)(e),Dr=()=>(Dr=lr.Hb)();function Fr(){function e(){Pr||(Pr=!0,o.calledRun=!0,D||(o.noFSInit||Se.initialized||Se.init(),Se.ignorePermissions=!1,J(M),r(o),o.onRuntimeInitialized?.(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)e=o.postRun.shift(),B.unshift(e);var e;J(B)}()))}O>0||(function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)e=o.preRun.shift(),R.unshift(e);var e;J(R)}(),O>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((()=>{setTimeout((()=>o.setStatus("")),1),e()}),1)):e()))}if(o.addRunDependency=L,o.removeRunDependency=j,o.FS_createPreloadedFile=_e,o.FS_unlink=e=>Se.unlink(e),o.FS_createPath=or,o.FS_createDevice=ir,o.FS=Se,o.FS_createDataFile=we,o.FS_createLazyFile=ar,U=function e(){Pr||Fr(),Pr||(U=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Fr(),a});const ve="1.0.0";function ye(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}let we;var be,_e,Ee,Se,$e,xe,Ce;(async()=>{we=await ge({locateFile:(e,t)=>e.endsWith(".wasm")?"https://unpkg.com/@thorvg/lottie-player@latest/dist/thorvg-wasm.wasm":t+e})})(),exports.Renderer=void 0,(be=exports.Renderer||(exports.Renderer={})).SW="sw",be.WG="wg",exports.InitStatus=void 0,(_e=exports.InitStatus||(exports.InitStatus={})).IDLE="idle",_e.REQUESTED="requested",_e.INITIALIZED="initialized",exports.ExportableType=void 0,(Ee=exports.ExportableType||(exports.ExportableType={})).GIF="gif",Ee.TVG="tvg",Ee.PNG="png",exports.MimeType=void 0,(Se=exports.MimeType||(exports.MimeType={})).JSON="json",Se.JPG="jpg",Se.PNG="png",Se.SVG="svg",Se.TVG="tvg",exports.PlayerState=void 0,($e=exports.PlayerState||(exports.PlayerState={})).Destroyed="destroyed",$e.Error="error",$e.Loading="loading",$e.Paused="paused",$e.Playing="playing",$e.Stopped="stopped",$e.Frozen="frozen",exports.PlayMode=void 0,(xe=exports.PlayMode||(exports.PlayMode={})).Bounce="bounce",xe.Normal="normal",exports.PlayerEvent=void 0,(Ce=exports.PlayerEvent||(exports.PlayerEvent={})).Complete="complete",Ce.Destroyed="destroyed",Ce.Error="error",Ce.Frame="frame",Ce.Freeze="freeze",Ce.Load="load",Ce.Loop="loop",Ce.Pause="pause",Ce.Play="play",Ce.Ready="ready",Ce.Stop="stop";const Pe=async e=>{try{e=JSON.parse(e)}catch(t){const r=await(async e=>{if("string"!=typeof e)throw new Error("The url value must be a string");try{const t=new URL(e),r=await fetch(t.toString());return await r.json()}catch(e){throw new Error("An error occurred while trying to load the Lottie file from URL")}})(e);e=JSON.stringify(r)}return e},Te=async(e,t)=>{const r=new TextEncoder;let n=e;switch(typeof n){case"object":return n instanceof ArrayBuffer?new Uint8Array(n):(n=JSON.stringify(n),r.encode(n));case"string":if("json"===t)return n=await Pe(n),r.encode(n);const e=await(async e=>(await fetch(e)).arrayBuffer())(n);return new Uint8Array(e);default:throw new Error("Invalid src type")}},ke=e=>new Promise((t=>setTimeout(t,e))),Ae=(e,t)=>{const r=document.createElement("a");r.setAttribute("href",URL.createObjectURL(t)),r.setAttribute("download",e),document.body.appendChild(r),r.click(),document.body.removeChild(r)};let De="idle";class Fe extends ne{src;mimeType="json";renderConfig;speed=1;autoPlay=!1;count;loop=!1;direction=1;mode="normal";intermission=1;totalFrame=0;currentFrame=0;currentState="loading";get size(){return Float32Array.from(this._TVG?.size()||[0,0])}_TVG;_canvas;_imageData;_beginTime=Date.now();_counter=1;_timer;_observer;_observable=!1;async _init(){if(!we)return;if(!this._timer)return;clearInterval(this._timer),this._timer=void 0;const e=this.renderConfig?.renderer||"sw";await(async e=>{if("sw"!==e){for(;"requested"===De;)await ke(100);"initialized"!==De&&(De="requested",await we.init(),De="initialized")}})(e),this._TVG=new we.TvgLottieAnimation(e,`#${this._canvas.id}`),this.src&&this.load(this.src,this.mimeType)}_viewport(){const{left:e,right:t,top:r,bottom:n}=this.getBoundingClientRect(),o=window.innerWidth,a=window.innerHeight;let i=0,s=0,l=this._canvas.width,u=this._canvas.height;e<0&&(i=Math.abs(e),l-=i),r<0&&(s=Math.abs(r),u-=s),t>o&&(l-=t-o),n>a&&(u-=n-a),this._TVG.viewport(i,s,l,u)}_observerCallback(e){const t=e[0],r=t.target;r._observable=t.isIntersecting,t.isIntersecting?"frozen"===r.currentState&&r.play():"playing"===r.currentState&&(r.freeze(),r.dispatchEvent(new CustomEvent("freeze")))}firstUpdated(e){this._canvas=this.querySelector(".thorvg"),this._canvas.id=`thorvg-${me().replaceAll("-","").substring(0,6)}`,this._canvas.width=this._canvas.offsetWidth,this._canvas.height=this._canvas.offsetHeight,this._observer=new IntersectionObserver(this._observerCallback),this._observer.observe(this),this._TVG?this.src&&this.load(this.src,this.mimeType):this._timer=setInterval(this._init.bind(this),100)}createRenderRoot(){return this.style.display="block",this}async _animLoop(){this._TVG&&await this._update()&&(this._render(),window.requestAnimationFrame(this._animLoop.bind(this)))}_loadBytes(e,t=""){if(!this._TVG.load(e,this.mimeType,this._canvas.width,this._canvas.height,t))throw new Error("Unable to load an image. Error: ",this._TVG.error());this._render(),this.dispatchEvent(new CustomEvent("load")),this.autoPlay&&this.play()}_flush(){this._canvas.getContext("2d").putImageData(this._imageData,0,0)}_render(){if(this.renderConfig?.enableDevicePixelRatio){const e=1+.75*(window.devicePixelRatio-1),{width:t,height:r}=this._canvas.getBoundingClientRect();this._canvas.width=t*e,this._canvas.height=r*e}this._TVG.resize(this._canvas.width,this._canvas.height),this._viewport();if(!this._TVG.update())return;if("wg"===this.renderConfig?.renderer)return void this._TVG.render();const e=this._TVG.render(),t=new Uint8ClampedArray(e.buffer,e.byteOffset,e.byteLength);t.length<1||(this._imageData=new ImageData(t,this._canvas.width,this._canvas.height),this._flush())}async _update(){if("playing"!==this.currentState)return!1;const e=this._TVG.duration(),t=Date.now()/1e3;if(this.currentFrame=(t-this._beginTime)/e*this.totalFrame*this.speed,-1===this.direction&&(this.currentFrame=this.totalFrame-this.currentFrame),1===this.direction&&this.currentFrame>=this.totalFrame||-1===this.direction&&this.currentFrame<=0){const e=this.count?"bounce"===this.mode?2*this.count:this.count:0;if(this.loop||e&&this._counter<e)return"bounce"===this.mode&&(this.direction=1===this.direction?-1:1,this.currentFrame=1===this.direction?0:this.totalFrame),this.count&&(this._counter+=1),await ke(this.intermission),this.play(),!0;this.dispatchEvent(new CustomEvent("complete")),this.currentState="stopped"}return this.dispatchEvent(new CustomEvent("frame",{detail:{frame:this.currentFrame}})),this._TVG.frame(this.currentFrame)}_frame(e){this.pause(),this.currentFrame=e,this._TVG.frame(e)}async load(e,t="json"){try{await this._init();const r=await Te(e,t);this.dispatchEvent(new CustomEvent("ready")),this.mimeType=t,await this._loadBytes(r)}catch(e){this.currentState="error",this.dispatchEvent(new CustomEvent("error"))}}play(){if("json"===this.mimeType&&(this.totalFrame=this._TVG.totalFrame(),!(this.totalFrame<1)&&(this._beginTime=Date.now()/1e3,"playing"!==this.currentState)))return this._observable?(this.currentState="playing",void window.requestAnimationFrame(this._animLoop.bind(this))):void(this.currentState="frozen")}pause(){this.currentState="paused",this.dispatchEvent(new CustomEvent("pause"))}stop(){this.currentState="stopped",this.currentFrame=0,this._counter=1,this.seek(0),this.dispatchEvent(new CustomEvent("stop"))}freeze(){this.currentState="frozen",this.dispatchEvent(new CustomEvent("freeze"))}async seek(e){this._frame(e),await this._update(),this._render()}resize(e,t){this._canvas.width=e,this._canvas.height=t,"playing"!==this.currentState&&this._render()}destroy(){this._TVG&&(this._TVG.delete(),this._TVG=null,this.currentState="destroyed",this._observer&&(this._observer.disconnect(),this._observer=void 0),this.dispatchEvent(new CustomEvent("destroyed")),this.remove())}term(){we.term(),we=null}setLooping(e){this._TVG&&(this.loop=e)}setDirection(e){this._TVG&&(this.direction=e)}setSpeed(e){this._TVG&&(this.speed=e)}setBgColor(e){this._TVG&&(this._canvas.style.backgroundColor=e)}save(e){if(!this._TVG)return;const t=`output.${e}`;if("png"===e)return void this._canvas.toBlob((e=>{e&&Ae("output.png",e)}),"image/png");if(!this._TVG.save(e))throw new Error("Unable to save. Error: ",this._TVG.error());const r=we.FS.readFile(t);if("gif"===e&&r.length<6)throw new Error("Unable to save the GIF data. The generated file size is invalid.");if("tvg"===e&&r.length<33)throw new Error("Unable to save the TVG data. The generated file size is invalid.");const n=new Blob([r],{type:"application/octet-stream"});Ae(t,n)}getVersion(){return{THORVG_VERSION:ve}}render(){return I`
|
|
1
|
+
"use strict";var e="undefined"!=typeof document?document.currentScript:null;const t=globalThis,r=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),o=new WeakMap;let a=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(r&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=o.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&o.set(t,e))}return e}toString(){return this.cssText}};const i=r?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return(e=>new a("string"==typeof e?e:e+"",void 0,n))(t)})(e):e,{is:s,defineProperty:l,getOwnPropertyDescriptor:u,getOwnPropertyNames:c,getOwnPropertySymbols:d,getPrototypeOf:h}=Object,p=globalThis,m=p.trustedTypes,f=m?m.emptyScript:"",g=p.reactiveElementPolyfillSupport,v=(e,t)=>e,y={toAttribute(e,t){switch(t){case Boolean:e=e?f:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},w=(e,t)=>!s(e,t),b={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:w};Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;class _ extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=b){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&l(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){const{get:n,set:o}=u(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){const a=n?.call(this);o.call(this,t),this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??b}static _$Ei(){if(this.hasOwnProperty(v("elementProperties")))return;const e=h(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(v("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(v("properties"))){const e=this.properties,t=[...c(e),...d(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(i(e))}else void 0!==e&&t.push(i(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,n)=>{if(r)e.adoptedStyleSheets=n.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const r of n){const n=document.createElement("style"),o=t.litNonce;void 0!==o&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){const r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){const o=(void 0!==r.converter?.toAttribute?r.converter:y).toAttribute(t,r.type);this._$Em=e,null==o?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(e,t){const r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){const e=r.getPropertyOptions(n),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:y;this._$Em=n,this[n]=o.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(r??=this.constructor.getPropertyOptions(e),!(r.hasChanged??w)(this[e],t))return;this.P(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[v("elementProperties")]=new Map,_[v("finalized")]=new Map,g?.({ReactiveElement:_}),(p.reactiveElementVersions??=[]).push("2.0.4");const E=globalThis,S=E.trustedTypes,$=S?S.createPolicy("lit-html",{createHTML:e=>e}):void 0,C="$lit$",x=`lit$${Math.random().toFixed(9).slice(2)}$`,P="?"+x,T=`<${P}>`,k=document,A=()=>k.createComment(""),D=e=>null===e||"object"!=typeof e&&"function"!=typeof e,F=Array.isArray,R="[ \t\n\f\r]",M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,O=/>/g,U=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,L=/"/g,z=/^(?:script|style|textarea|title)$/i,N=(e=>(t,...r)=>({_$litType$:e,strings:t,values:r}))(1),I=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),W=new WeakMap,H=k.createTreeWalker(k,129);function G(e,t){if(!F(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==$?$.createHTML(t):t}class q{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let o=0,a=0;const i=e.length-1,s=this.parts,[l,u]=((e,t)=>{const r=e.length-1,n=[];let o,a=2===t?"<svg>":3===t?"<math>":"",i=M;for(let t=0;t<r;t++){const r=e[t];let s,l,u=-1,c=0;for(;c<r.length&&(i.lastIndex=c,l=i.exec(r),null!==l);)c=i.lastIndex,i===M?"!--"===l[1]?i=B:void 0!==l[1]?i=O:void 0!==l[2]?(z.test(l[2])&&(o=RegExp("</"+l[2],"g")),i=U):void 0!==l[3]&&(i=U):i===U?">"===l[0]?(i=o??M,u=-1):void 0===l[1]?u=-2:(u=i.lastIndex-l[2].length,s=l[1],i=void 0===l[3]?U:'"'===l[3]?L:j):i===L||i===j?i=U:i===B||i===O?i=M:(i=U,o=void 0);const d=i===U&&e[t+1].startsWith("/>")?" ":"";a+=i===M?r+T:u>=0?(n.push(s),r.slice(0,u)+C+r.slice(u)+x+d):r+x+(-2===u?t:d)}return[G(e,a+(e[r]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),n]})(e,t);if(this.el=q.createElement(l,r),H.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=H.nextNode())&&s.length<i;){if(1===n.nodeType){if(n.hasAttributes())for(const e of n.getAttributeNames())if(e.endsWith(C)){const t=u[a++],r=n.getAttribute(e).split(x),i=/([.?@])?(.*)/.exec(t);s.push({type:1,index:o,name:i[2],strings:r,ctor:"."===i[1]?Z:"?"===i[1]?Y:"@"===i[1]?ee:K}),n.removeAttribute(e)}else e.startsWith(x)&&(s.push({type:6,index:o}),n.removeAttribute(e));if(z.test(n.tagName)){const e=n.textContent.split(x),t=e.length-1;if(t>0){n.textContent=S?S.emptyScript:"";for(let r=0;r<t;r++)n.append(e[r],A()),H.nextNode(),s.push({type:2,index:++o});n.append(e[t],A())}}}else if(8===n.nodeType)if(n.data===P)s.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(x,e+1));)s.push({type:7,index:o}),e+=x.length-1}o++}}static createElement(e,t){const r=k.createElement("template");return r.innerHTML=e,r}}function Q(e,t,r=e,n){if(t===I)return t;let o=void 0!==n?r.o?.[n]:r.l;const a=D(t)?void 0:t._$litDirective$;return o?.constructor!==a&&(o?._$AO?.(!1),void 0===a?o=void 0:(o=new a(e),o._$AT(e,r,n)),void 0!==n?(r.o??=[])[n]=o:r.l=o),void 0!==o&&(t=Q(e,o._$AS(e,t.values),o,n)),t}class X{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??k).importNode(t,!0);H.currentNode=n;let o=H.nextNode(),a=0,i=0,s=r[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new J(o,o.nextSibling,this,e):1===s.type?t=new s.ctor(o,s.name,s.strings,this,e):6===s.type&&(t=new te(o,this,e)),this._$AV.push(t),s=r[++i]}a!==s?.index&&(o=H.nextNode(),a++)}return H.currentNode=k,n}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class J{get _$AU(){return this._$AM?._$AU??this.v}constructor(e,t,r,n){this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this.v=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Q(this,e,t),D(e)?e===V||null==e||""===e?(this._$AH!==V&&this._$AR(),this._$AH=V):e!==this._$AH&&e!==I&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>F(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==V&&D(this._$AH)?this._$AA.nextSibling.data=e:this.T(k.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,n="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=q.createElement(G(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new X(n,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=W.get(e.strings);return void 0===t&&W.set(e.strings,t=new q(e)),t}k(e){F(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const o of e)n===t.length?t.push(r=new J(this.O(A()),this.O(A()),this,this.options)):r=t[n],r._$AI(o),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this.v=e,this._$AP?.(e))}}class K{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,o){this.type=1,this._$AH=V,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=o,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=V}_$AI(e,t=this,r,n){const o=this.strings;let a=!1;if(void 0===o)e=Q(this,e,t,0),a=!D(e)||e!==this._$AH&&e!==I,a&&(this._$AH=e);else{const n=e;let i,s;for(e=o[0],i=0;i<o.length-1;i++)s=Q(this,n[r+i],t,i),s===I&&(s=this._$AH[i]),a||=!D(s)||s!==this._$AH[i],s===V?e=V:e!==V&&(e+=(s??"")+o[i+1]),this._$AH[i]=s}a&&!n&&this.j(e)}j(e){e===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Z extends K{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===V?void 0:e}}class Y extends K{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==V)}}class ee extends K{constructor(e,t,r,n,o){super(e,t,r,n,o),this.type=5}_$AI(e,t=this){if((e=Q(this,e,t,0)??V)===I)return;const r=this._$AH,n=e===V&&r!==V||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==V&&(r===V||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class te{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Q(this,e)}}const re=E.litHtmlPolyfillSupport;re?.(q,J),(E.litHtmlVersions??=[]).push("3.2.0");class ne extends _{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this.o=((e,t,r)=>{const n=r?.renderBefore??t;let o=n._$litPart$;if(void 0===o){const e=r?.renderBefore??null;n._$litPart$=o=new J(t.insertBefore(A(),e),e,void 0,r??{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return I}}ne._$litElement$=!0,ne.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ne});const oe=globalThis.litElementPolyfillSupport;oe?.({LitElement:ne}),(globalThis.litElementVersions??=[]).push("4.1.0");const ae={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:w},ie=(e=ae,t,r)=>{const{kind:n,metadata:o}=r;let a=globalThis.litPropertyMetadata.get(o);if(void 0===a&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(r.name,e),"accessor"===n){const{name:n}=r;return{set(r){const o=t.get.call(this);t.set.call(this,r),this.requestUpdate(n,o,e)},init(t){return void 0!==t&&this.P(n,void 0,e),t}}}if("setter"===n){const{name:n}=r;return function(r){const o=this[n];t.call(this,r),this.requestUpdate(n,o,e)}}throw Error("Unsupported decorator location: "+n)};function se(e){return(t,r)=>"object"==typeof r?ie(e,t,r):((e,t,r)=>{const n=t.hasOwnProperty(r);return t.constructor.createProperty(r,n?{...e,wrapped:!0}:e),n?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}for(var le,ue=[],ce=0;ce<256;++ce)ue.push((ce+256).toString(16).slice(1));var de=new Uint8Array(16);function he(){if(!le&&!(le="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return le(de)}var pe={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function me(e,t,r){if(pe.randomUUID&&!t&&!e)return pe.randomUUID();var n=(e=e||{}).random||(e.rng||he)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(ue[e[t+0]]+ue[e[t+1]]+ue[e[t+2]]+ue[e[t+3]]+"-"+ue[e[t+4]]+ue[e[t+5]]+"-"+ue[e[t+6]]+ue[e[t+7]]+"-"+ue[e[t+8]]+ue[e[t+9]]+"-"+ue[e[t+10]]+ue[e[t+11]]+ue[e[t+12]]+ue[e[t+13]]+ue[e[t+14]]+ue[e[t+15]]).toLowerCase()}(n)}var fe,ge=(fe="undefined"==typeof document?require("url").pathToFileURL(__filename).href:e&&e.src||new URL("lottie-player.cjs.js",document.baseURI).href,async function(t={}){var r,n,o=t,a=new Promise(((e,t)=>{r=e,n=t})),i="object"==typeof window,s="undefined"!=typeof WorkerGlobalScope,l="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&"renderer"!=process.type;if(l){const{createRequire:t}=await Promise.resolve().then((function(){return Fe}));let r="undefined"==typeof document?require("url").pathToFileURL(__filename).href:e&&e.src||new URL("lottie-player.cjs.js",document.baseURI).href;r.startsWith("data:")&&(r="/");var u=t(r)}var c,d,h=Object.assign({},o),p="./this.program",m=(e,t)=>{throw t},f="";if(l){var g=u("fs"),v=u("path");("undefined"==typeof document?require("url").pathToFileURL(__filename).href:e&&e.src||new URL("lottie-player.cjs.js",document.baseURI).href).startsWith("data:")||(f=v.dirname(u("url").fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:e&&e.src||new URL("lottie-player.cjs.js",document.baseURI).href))+"/"),d=e=>(e=H(e)?new URL(e):v.normalize(e),g.readFileSync(e)),c=(e,t=!0)=>(e=H(e)?new URL(e):v.normalize(e),new Promise(((r,n)=>{g.readFile(e,t?void 0:"utf8",((e,o)=>{e?n(e):r(t?o.buffer:o)}))}))),!o.thisProgram&&process.argv.length>1&&(p=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),m=(e,t)=>{throw process.exitCode=e,t}}else(i||s)&&(s?f=self.location.href:"undefined"!=typeof document&&document.currentScript&&(f=document.currentScript.src),fe&&(f=fe),f=f.startsWith("blob:")?"":f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1),s&&(d=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),c=e=>H(e)?new Promise(((t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r(n.status)},n.onerror=r,n.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var y=o.print||console.log.bind(console),w=o.printErr||console.error.bind(console);Object.assign(o,h),h=null,o.arguments&&o.arguments,o.thisProgram&&(p=o.thisProgram);var b,_,E,S,$,C,x,P,T,k,A=o.wasmBinary,D=!1;function F(){var e=b.buffer;o.HEAP8=E=new Int8Array(e),o.HEAP16=$=new Int16Array(e),o.HEAPU8=S=new Uint8Array(e),o.HEAPU16=C=new Uint16Array(e),o.HEAP32=x=new Int32Array(e),o.HEAPU32=P=new Uint32Array(e),o.HEAPF32=T=new Float32Array(e),o.HEAPF64=k=new Float64Array(e)}var R=[],M=[],B=[],O=0,U=null;function j(e){O++,o.monitorRunDependencies?.(O)}function L(e){if(O--,o.monitorRunDependencies?.(O),0==O&&U){var t=U;U=null,t()}}function z(e){o.onAbort?.(e),w(e="Aborted("+e+")"),D=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var N,I,V,W=e=>e.startsWith("data:application/octet-stream;base64,"),H=e=>e.startsWith("file://");function G(){if(o.locateFile){var t="thorvg-wasm.wasm";return W(t)?t:(r=t,o.locateFile?o.locateFile(r,f):f+r)}var r;return new URL("thorvg-wasm.wasm","undefined"==typeof document?require("url").pathToFileURL(__filename).href:e&&e.src||new URL("lottie-player.cjs.js",document.baseURI).href).href}function q(e){if(e==N&&A)return new Uint8Array(A);if(d)return d(e);throw"both async and sync fetching of the wasm failed"}function Q(e,t,r){return function(e){return A?Promise.resolve().then((()=>q(e))):c(e).then((e=>new Uint8Array(e)),(()=>q(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then(r,(e=>{w(`failed to asynchronously prepare wasm: ${e}`),z(e)}))}class X{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var J=e=>{for(;e.length>0;)e.shift()(o)},K=o.noExitRuntime||!0,Z=e=>ur(e),Y=()=>dr(),ee="undefined"!=typeof TextDecoder?new TextDecoder:void 0,te=(e,t=0,r=NaN)=>{for(var n=t+r,o=t;e[o]&&!(o>=n);)++o;if(o-t>16&&e.buffer&&ee)return ee.decode(e.subarray(t,o));for(var a="";t<o;){var i=e[t++];if(128&i){var s=63&e[t++];if(192!=(224&i)){var l=63&e[t++];if((i=224==(240&i)?(15&i)<<12|s<<6|l:(7&i)<<18|s<<12|l<<6|63&e[t++])<65536)a+=String.fromCharCode(i);else{var u=i-65536;a+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},re=(e,t)=>e?te(S,e,t):"",ne=()=>{var e=x[+$e.varargs>>2];return $e.varargs+=4,e},oe=ne,ae={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,t)=>{for(var r=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=ae.isAbs(e),r="/"===e.substr(-1);return e=ae.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"),e||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=ae.splitPath(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},basename:e=>{if("/"===e)return"/";var t=(e=(e=ae.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:(...e)=>ae.normalize(e.join("/")),join2:(e,t)=>ae.normalize(e+"/"+t)},ie=e=>(ie=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);if(l)try{var e=u("crypto");if(e.randomFillSync)return t=>e.randomFillSync(t);var t=e.randomBytes;return e=>(e.set(t(e.byteLength)),e)}catch(e){}z("initRandomDevice")})())(e),se={resolve:(...e)=>{for(var t="",r=!1,n=e.length-1;n>=-1&&!r;n--){var o=n>=0?e[n]:Se.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");if(!o)return"";t=o+"/"+t,r=ae.isAbs(o)}return t=ae.normalizeArray(t.split("/").filter((e=>!!e)),!r).join("/"),(r?"/":"")+t||"."},relative:(e,t)=>{function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=se.resolve(e).substr(1),t=se.resolve(t).substr(1);for(var n=r(e.split("/")),o=r(t.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var l=[];for(s=i;s<n.length;s++)l.push("..");return(l=l.concat(o.slice(i))).join("/")}},le=[],ue=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},ce=(e,t,r,n)=>{if(!(n>0))return 0;for(var o=r,a=r+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i)),s<=127){if(r>=a)break;t[r++]=s}else if(s<=2047){if(r+1>=a)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=a)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=a)break;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 de(e,t,r){var n=ue(e)+1,o=new Array(n),a=ce(e,o,0,o.length);return o.length=a,o}var he,pe,me,ge={ttys:[],init(){},shutdown(){},register(e,t){ge.ttys[e]={input:[],output:[],ops:t},Se.registerDevice(e,ge.stream_ops)},stream_ops:{open(e){var t=ge.ttys[e.node.rdev];if(!t)throw new Se.ErrnoError(43);e.tty=t,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,t,r,n,o){if(!e.tty||!e.tty.ops.get_char)throw new Se.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new Se.ErrnoError(29)}if(void 0===s&&0===a)throw new Se.ErrnoError(6);if(null==s)break;a++,t[r+i]=s}return a&&(e.node.timestamp=Date.now()),a},write(e,t,r,n,o){if(!e.tty||!e.tty.ops.put_char)throw new Se.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,t[r+a])}catch(e){throw new Se.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:e=>(()=>{if(!le.length){var e=null;if(l){var t=Buffer.alloc(256),r=0,n=process.stdin.fd;try{r=g.readSync(n,t,0,256)}catch(e){if(!e.toString().includes("EOF"))throw e;r=0}r>0&&(e=t.slice(0,r).toString("utf-8"))}else"undefined"!=typeof window&&"function"==typeof window.prompt&&null!==(e=window.prompt("Input: "))&&(e+="\n");if(!e)return null;le=de(e)}return le.shift()})(),put_char(e,t){null===t||10===t?(y(te(e.output)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(y(te(e.output)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,t,r)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,t){null===t||10===t?(w(te(e.output)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(w(te(e.output)),e.output=[])}}},ve=e=>{z()},ye={ops_table:null,mount:e=>ye.createNode(null,"/",16895,0),createNode(e,t,r,n){if(Se.isBlkdev(r)||Se.isFIFO(r))throw new Se.ErrnoError(63);ye.ops_table||={dir:{node:{getattr:ye.node_ops.getattr,setattr:ye.node_ops.setattr,lookup:ye.node_ops.lookup,mknod:ye.node_ops.mknod,rename:ye.node_ops.rename,unlink:ye.node_ops.unlink,rmdir:ye.node_ops.rmdir,readdir:ye.node_ops.readdir,symlink:ye.node_ops.symlink},stream:{llseek:ye.stream_ops.llseek}},file:{node:{getattr:ye.node_ops.getattr,setattr:ye.node_ops.setattr},stream:{llseek:ye.stream_ops.llseek,read:ye.stream_ops.read,write:ye.stream_ops.write,allocate:ye.stream_ops.allocate,mmap:ye.stream_ops.mmap,msync:ye.stream_ops.msync}},link:{node:{getattr:ye.node_ops.getattr,setattr:ye.node_ops.setattr,readlink:ye.node_ops.readlink},stream:{}},chrdev:{node:{getattr:ye.node_ops.getattr,setattr:ye.node_ops.setattr},stream:Se.chrdev_stream_ops}};var o=Se.createNode(e,t,r,n);return Se.isDir(o.mode)?(o.node_ops=ye.ops_table.dir.node,o.stream_ops=ye.ops_table.dir.stream,o.contents={}):Se.isFile(o.mode)?(o.node_ops=ye.ops_table.file.node,o.stream_ops=ye.ops_table.file.stream,o.usedBytes=0,o.contents=null):Se.isLink(o.mode)?(o.node_ops=ye.ops_table.link.node,o.stream_ops=ye.ops_table.link.stream):Se.isChrdev(o.mode)&&(o.node_ops=ye.ops_table.chrdev.node,o.stream_ops=ye.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[t]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var n=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr(e){var t={};return t.dev=Se.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,Se.isDir(e.mode)?t.size=4096:Se.isFile(e.mode)?t.size=e.usedBytes:Se.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&ye.resizeFileStorage(e,t.size)},lookup(e,t){throw Se.genericErrors[44]},mknod:(e,t,r,n)=>ye.createNode(e,t,r,n),rename(e,t,r){if(Se.isDir(e.mode)){var n;try{n=Se.lookupNode(t,r)}catch(e){}if(n)for(var o in n.contents)throw new Se.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp},unlink(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir(e,t){var r=Se.lookupNode(e,t);for(var n in r.contents)throw new Se.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir(e){var t=[".",".."];for(var r of Object.keys(e.contents))t.push(r);return t},symlink(e,t,r){var n=ye.createNode(e,t,41471,0);return n.link=r,n},readlink(e){if(!Se.isLink(e.mode))throw new Se.ErrnoError(28);return e.link}},stream_ops:{read(e,t,r,n,o){var a=e.node.contents;if(o>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&a.subarray)t.set(a.subarray(o,o+i),r);else for(var s=0;s<i;s++)t[r+s]=a[o+s];return i},write(e,t,r,n,o,a){if(t.buffer===E.buffer&&(a=!1),!n)return 0;var i=e.node;if(i.timestamp=Date.now(),t.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=t.subarray(r,r+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=t.slice(r,r+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(t.subarray(r,r+n),o),n}if(ye.expandFileStorage(i,o+n),i.contents.subarray&&t.subarray)i.contents.set(t.subarray(r,r+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=t[r+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(e,t,r){var n=t;if(1===r?n+=e.position:2===r&&Se.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new Se.ErrnoError(28);return n},allocate(e,t,r){ye.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap(e,t,r,n,o){if(!Se.isFile(e.node.mode))throw new Se.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||!s||s.buffer!==E.buffer){if(i=!0,!(a=ve()))throw new Se.ErrnoError(48);s&&((r>0||r+t<s.length)&&(s=s.subarray?s.subarray(r,r+t):Array.prototype.slice.call(s,r,r+t)),E.set(s,a))}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(e,t,r,n,o)=>(ye.stream_ops.write(e,t,0,n,r,!1),0)}},we=(e,t,r,n,o,a)=>{Se.createDataFile(e,t,r,n,o,a)},be=o.preloadPlugins||[],_e=(e,t,r,n,o,a,i,s,l,u)=>{var d=t?se.resolve(ae.join2(e,t)):e;function h(r){function c(r){u?.(),s||we(e,t,r,n,o,l),a?.(),L()}((e,t,r,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return be.forEach((a=>{o||a.canHandle(t)&&(a.handle(e,t,r,n),o=!0)})),o})(r,d,c,(()=>{i?.(),L()}))||c(r)}j(),"string"==typeof r?((e,t,r)=>{var n=`al ${e}`;c(e).then((e=>{t(new Uint8Array(e)),n&&L()}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),n&&j()})(r,h,i):h(r)},Ee=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},Se={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:class{name="ErrnoError";constructor(e){this.errno=e}},genericErrors:{},filesystems:null,syncFSRequests:0,readFiles:{},FSStream:class{shared={};get object(){return this.node}set object(e){this.node=e}get isRead(){return 1!=(2097155&this.flags)}get isWrite(){return!!(2097155&this.flags)}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(e){this.shared.flags=e}get position(){return this.shared.position}set position(e){this.shared.position=e}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.id=Se.nextInode++,this.name=t,this.mode=r,this.rdev=n}get read(){return(this.mode&this.readMode)===this.readMode}set read(e){e?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(e){e?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return Se.isDir(this.mode)}get isDevice(){return Se.isChrdev(this.mode)}},lookupPath(e,t={}){if(!(e=se.resolve(e)))return{path:"",node:null};if((t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count>8)throw new Se.ErrnoError(32);for(var r=e.split("/").filter((e=>!!e)),n=Se.root,o="/",a=0;a<r.length;a++){var i=a===r.length-1;if(i&&t.parent)break;if(n=Se.lookupNode(n,r[a]),o=ae.join2(o,r[a]),Se.isMountpoint(n)&&(!i||i&&t.follow_mount)&&(n=n.mounted.root),!i||t.follow)for(var s=0;Se.isLink(n.mode);){var l=Se.readlink(o);if(o=se.resolve(ae.dirname(o),l),n=Se.lookupPath(o,{recurse_count:t.recurse_count+1}).node,s++>40)throw new Se.ErrnoError(32)}}return{path:o,node:n}},getPath(e){for(var t;;){if(Se.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?`${r}/${t}`:r+t:r}t=t?`${e.name}/${t}`:e.name,e=e.parent}},hashName(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%Se.nameTable.length},hashAddNode(e){var t=Se.hashName(e.parent.id,e.name);e.name_next=Se.nameTable[t],Se.nameTable[t]=e},hashRemoveNode(e){var t=Se.hashName(e.parent.id,e.name);if(Se.nameTable[t]===e)Se.nameTable[t]=e.name_next;else for(var r=Se.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode(e,t){var r=Se.mayLookup(e);if(r)throw new Se.ErrnoError(r);for(var n=Se.hashName(e.id,t),o=Se.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===t)return o}return Se.lookup(e,t)},createNode(e,t,r,n){var o=new Se.FSNode(e,t,r,n);return Se.hashAddNode(o),o},destroyNode(e){Se.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>!(49152&~e),flagsToPermissionString(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>Se.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2,mayLookup(e){if(!Se.isDir(e.mode))return 54;var t=Se.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate(e,t){try{return Se.lookupNode(e,t),20}catch(e){}return Se.nodePermissions(e,"wx")},mayDelete(e,t,r){var n;try{n=Se.lookupNode(e,t)}catch(e){return e.errno}var o=Se.nodePermissions(e,"wx");if(o)return o;if(r){if(!Se.isDir(n.mode))return 54;if(Se.isRoot(n)||Se.getPath(n)===Se.cwd())return 10}else if(Se.isDir(n.mode))return 31;return 0},mayOpen:(e,t)=>e?Se.isLink(e.mode)?32:Se.isDir(e.mode)&&("r"!==Se.flagsToPermissionString(t)||512&t)?31:Se.nodePermissions(e,Se.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=Se.MAX_OPEN_FDS;e++)if(!Se.streams[e])return e;throw new Se.ErrnoError(33)},getStreamChecked(e){var t=Se.getStream(e);if(!t)throw new Se.ErrnoError(8);return t},getStream:e=>Se.streams[e],createStream:(e,t=-1)=>(e=Object.assign(new Se.FSStream,e),-1==t&&(t=Se.nextfd()),e.fd=t,Se.streams[t]=e,e),closeStream(e){Se.streams[e]=null},dupStream(e,t=-1){var r=Se.createStream(e,t);return r.stream_ops?.dup?.(r),r},chrdev_stream_ops:{open(e){var t=Se.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open?.(e)},llseek(){throw new Se.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice(e,t){Se.devices[e]={stream_ops:t}},getDevice:e=>Se.devices[e],getMounts(e){for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push(...n.mounts)}return t},syncfs(e,t){"function"==typeof e&&(t=e,e=!1),Se.syncFSRequests++,Se.syncFSRequests>1&&w(`warning: ${Se.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var r=Se.getMounts(Se.root.mount),n=0;function o(e){return Se.syncFSRequests--,t(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=r.length&&o(null)}r.forEach((t=>{if(!t.type.syncfs)return a(null);t.type.syncfs(t,e,a)}))},mount(e,t,r){var n,o="/"===r,a=!r;if(o&&Se.root)throw new Se.ErrnoError(10);if(!o&&!a){var i=Se.lookupPath(r,{follow_mount:!1});if(r=i.path,n=i.node,Se.isMountpoint(n))throw new Se.ErrnoError(10);if(!Se.isDir(n.mode))throw new Se.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},l=e.mount(s);return l.mount=s,s.root=l,o?Se.root=l:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),l},unmount(e){var t=Se.lookupPath(e,{follow_mount:!1});if(!Se.isMountpoint(t.node))throw new Se.ErrnoError(28);var r=t.node,n=r.mounted,o=Se.getMounts(n);Object.keys(Se.nameTable).forEach((e=>{for(var t=Se.nameTable[e];t;){var r=t.name_next;o.includes(t.mount)&&Se.destroyNode(t),t=r}})),r.mounted=null;var a=r.mount.mounts.indexOf(n);r.mount.mounts.splice(a,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod(e,t,r){var n=Se.lookupPath(e,{parent:!0}).node,o=ae.basename(e);if(!o||"."===o||".."===o)throw new Se.ErrnoError(28);var a=Se.mayCreate(n,o);if(a)throw new Se.ErrnoError(a);if(!n.node_ops.mknod)throw new Se.ErrnoError(63);return n.node_ops.mknod(n,o,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,Se.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,Se.mknod(e,t,0)),mkdirTree(e,t){for(var r=e.split("/"),n="",o=0;o<r.length;++o)if(r[o]){n+="/"+r[o];try{Se.mkdir(n,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,t,r)=>(void 0===r&&(r=t,t=438),t|=8192,Se.mknod(e,t,r)),symlink(e,t){if(!se.resolve(e))throw new Se.ErrnoError(44);var r=Se.lookupPath(t,{parent:!0}).node;if(!r)throw new Se.ErrnoError(44);var n=ae.basename(t),o=Se.mayCreate(r,n);if(o)throw new Se.ErrnoError(o);if(!r.node_ops.symlink)throw new Se.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename(e,t){var r,n,o=ae.dirname(e),a=ae.dirname(t),i=ae.basename(e),s=ae.basename(t);if(r=Se.lookupPath(e,{parent:!0}).node,n=Se.lookupPath(t,{parent:!0}).node,!r||!n)throw new Se.ErrnoError(44);if(r.mount!==n.mount)throw new Se.ErrnoError(75);var l,u=Se.lookupNode(r,i),c=se.relative(e,a);if("."!==c.charAt(0))throw new Se.ErrnoError(28);if("."!==(c=se.relative(t,o)).charAt(0))throw new Se.ErrnoError(55);try{l=Se.lookupNode(n,s)}catch(e){}if(u!==l){var d=Se.isDir(u.mode),h=Se.mayDelete(r,i,d);if(h)throw new Se.ErrnoError(h);if(h=l?Se.mayDelete(n,s,d):Se.mayCreate(n,s))throw new Se.ErrnoError(h);if(!r.node_ops.rename)throw new Se.ErrnoError(63);if(Se.isMountpoint(u)||l&&Se.isMountpoint(l))throw new Se.ErrnoError(10);if(n!==r&&(h=Se.nodePermissions(r,"w")))throw new Se.ErrnoError(h);Se.hashRemoveNode(u);try{r.node_ops.rename(u,n,s),u.parent=n}catch(e){throw e}finally{Se.hashAddNode(u)}}},rmdir(e){var t=Se.lookupPath(e,{parent:!0}).node,r=ae.basename(e),n=Se.lookupNode(t,r),o=Se.mayDelete(t,r,!0);if(o)throw new Se.ErrnoError(o);if(!t.node_ops.rmdir)throw new Se.ErrnoError(63);if(Se.isMountpoint(n))throw new Se.ErrnoError(10);t.node_ops.rmdir(t,r),Se.destroyNode(n)},readdir(e){var t=Se.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new Se.ErrnoError(54);return t.node_ops.readdir(t)},unlink(e){var t=Se.lookupPath(e,{parent:!0}).node;if(!t)throw new Se.ErrnoError(44);var r=ae.basename(e),n=Se.lookupNode(t,r),o=Se.mayDelete(t,r,!1);if(o)throw new Se.ErrnoError(o);if(!t.node_ops.unlink)throw new Se.ErrnoError(63);if(Se.isMountpoint(n))throw new Se.ErrnoError(10);t.node_ops.unlink(t,r),Se.destroyNode(n)},readlink(e){var t=Se.lookupPath(e).node;if(!t)throw new Se.ErrnoError(44);if(!t.node_ops.readlink)throw new Se.ErrnoError(28);return se.resolve(Se.getPath(t.parent),t.node_ops.readlink(t))},stat(e,t){var r=Se.lookupPath(e,{follow:!t}).node;if(!r)throw new Se.ErrnoError(44);if(!r.node_ops.getattr)throw new Se.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>Se.stat(e,!0),chmod(e,t,r){var n;if(!(n="string"==typeof e?Se.lookupPath(e,{follow:!r}).node:e).node_ops.setattr)throw new Se.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod(e,t){Se.chmod(e,t,!0)},fchmod(e,t){var r=Se.getStreamChecked(e);Se.chmod(r.node,t)},chown(e,t,r,n){var o;if(!(o="string"==typeof e?Se.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new Se.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(e,t,r){Se.chown(e,t,r,!0)},fchown(e,t,r){var n=Se.getStreamChecked(e);Se.chown(n.node,t,r)},truncate(e,t){if(t<0)throw new Se.ErrnoError(28);var r;if(!(r="string"==typeof e?Se.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new Se.ErrnoError(63);if(Se.isDir(r.mode))throw new Se.ErrnoError(31);if(!Se.isFile(r.mode))throw new Se.ErrnoError(28);var n=Se.nodePermissions(r,"w");if(n)throw new Se.ErrnoError(n);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate(e,t){var r=Se.getStreamChecked(e);if(!(2097155&r.flags))throw new Se.ErrnoError(28);Se.truncate(r.node,t)},utime(e,t,r){var n=Se.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(t,r)})},open(e,t,r){if(""===e)throw new Se.ErrnoError(44);var n;if(r=64&(t="string"==typeof t?(e=>{var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===t)throw new Error(`Unknown file open mode: ${e}`);return t})(t):t)?4095&(r=void 0===r?438:r)|32768:0,"object"==typeof e)n=e;else{e=ae.normalize(e);try{n=Se.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var a=!1;if(64&t)if(n){if(128&t)throw new Se.ErrnoError(20)}else n=Se.mknod(e,r,0),a=!0;if(!n)throw new Se.ErrnoError(44);if(Se.isChrdev(n.mode)&&(t&=-513),65536&t&&!Se.isDir(n.mode))throw new Se.ErrnoError(54);if(!a){var i=Se.mayOpen(n,t);if(i)throw new Se.ErrnoError(i)}512&t&&!a&&Se.truncate(n,0),t&=-131713;var s=Se.createStream({node:n,path:Se.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),!o.logReadFiles||1&t||e in Se.readFiles||(Se.readFiles[e]=1),s},close(e){if(Se.isClosed(e))throw new Se.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{Se.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,t,r){if(Se.isClosed(e))throw new Se.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new Se.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new Se.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read(e,t,r,n,o){if(n<0||o<0)throw new Se.ErrnoError(28);if(Se.isClosed(e))throw new Se.ErrnoError(8);if(1==(2097155&e.flags))throw new Se.ErrnoError(8);if(Se.isDir(e.node.mode))throw new Se.ErrnoError(31);if(!e.stream_ops.read)throw new Se.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new Se.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,t,r,n,o);return a||(e.position+=i),i},write(e,t,r,n,o,a){if(n<0||o<0)throw new Se.ErrnoError(28);if(Se.isClosed(e))throw new Se.ErrnoError(8);if(!(2097155&e.flags))throw new Se.ErrnoError(8);if(Se.isDir(e.node.mode))throw new Se.ErrnoError(31);if(!e.stream_ops.write)throw new Se.ErrnoError(28);e.seekable&&1024&e.flags&&Se.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new Se.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,t,r,n,o,a);return i||(e.position+=s),s},allocate(e,t,r){if(Se.isClosed(e))throw new Se.ErrnoError(8);if(t<0||r<=0)throw new Se.ErrnoError(28);if(!(2097155&e.flags))throw new Se.ErrnoError(8);if(!Se.isFile(e.node.mode)&&!Se.isDir(e.node.mode))throw new Se.ErrnoError(43);if(!e.stream_ops.allocate)throw new Se.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap(e,t,r,n,o){if(2&n&&!(2&o)&&2!=(2097155&e.flags))throw new Se.ErrnoError(2);if(1==(2097155&e.flags))throw new Se.ErrnoError(2);if(!e.stream_ops.mmap)throw new Se.ErrnoError(43);if(!t)throw new Se.ErrnoError(28);return e.stream_ops.mmap(e,t,r,n,o)},msync:(e,t,r,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,o):0,ioctl(e,t,r){if(!e.stream_ops.ioctl)throw new Se.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile(e,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error(`Invalid encoding type "${t.encoding}"`);var r,n=Se.open(e,t.flags),o=Se.stat(e).size,a=new Uint8Array(o);return Se.read(n,a,0,o,0),"utf8"===t.encoding?r=te(a):"binary"===t.encoding&&(r=a),Se.close(n),r},writeFile(e,t,r={}){r.flags=r.flags||577;var n=Se.open(e,r.flags,r.mode);if("string"==typeof t){var o=new Uint8Array(ue(t)+1),a=ce(t,o,0,o.length);Se.write(n,o,0,a,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");Se.write(n,t,0,t.byteLength,void 0,r.canOwn)}Se.close(n)},cwd:()=>Se.currentPath,chdir(e){var t=Se.lookupPath(e,{follow:!0});if(null===t.node)throw new Se.ErrnoError(44);if(!Se.isDir(t.node.mode))throw new Se.ErrnoError(54);var r=Se.nodePermissions(t.node,"x");if(r)throw new Se.ErrnoError(r);Se.currentPath=t.path},createDefaultDirectories(){Se.mkdir("/tmp"),Se.mkdir("/home"),Se.mkdir("/home/web_user")},createDefaultDevices(){Se.mkdir("/dev"),Se.registerDevice(Se.makedev(1,3),{read:()=>0,write:(e,t,r,n,o)=>n}),Se.mkdev("/dev/null",Se.makedev(1,3)),ge.register(Se.makedev(5,0),ge.default_tty_ops),ge.register(Se.makedev(6,0),ge.default_tty1_ops),Se.mkdev("/dev/tty",Se.makedev(5,0)),Se.mkdev("/dev/tty1",Se.makedev(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=ie(e).byteLength),e[--t]);Se.createDevice("/dev","random",r),Se.createDevice("/dev","urandom",r),Se.mkdir("/dev/shm"),Se.mkdir("/dev/shm/tmp")},createSpecialDirectories(){Se.mkdir("/proc");var e=Se.mkdir("/proc/self");Se.mkdir("/proc/self/fd"),Se.mount({mount(){var t=Se.createNode(e,"fd",16895,73);return t.node_ops={lookup(e,t){var r=+t,n=Se.getStreamChecked(r),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},t}},{},"/proc/self/fd")},createStandardStreams(e,t,r){e?Se.createDevice("/dev","stdin",e):Se.symlink("/dev/tty","/dev/stdin"),t?Se.createDevice("/dev","stdout",null,t):Se.symlink("/dev/tty","/dev/stdout"),r?Se.createDevice("/dev","stderr",null,r):Se.symlink("/dev/tty1","/dev/stderr"),Se.open("/dev/stdin",0),Se.open("/dev/stdout",1),Se.open("/dev/stderr",1)},staticInit(){[44].forEach((e=>{Se.genericErrors[e]=new Se.ErrnoError(e),Se.genericErrors[e].stack="<generic error, no stack>"})),Se.nameTable=new Array(4096),Se.mount(ye,{},"/"),Se.createDefaultDirectories(),Se.createDefaultDevices(),Se.createSpecialDirectories(),Se.filesystems={MEMFS:ye}},init(e,t,r){Se.initialized=!0,e??=o.stdin,t??=o.stdout,r??=o.stderr,Se.createStandardStreams(e,t,r)},quit(){Se.initialized=!1;for(var e=0;e<Se.streams.length;e++){var t=Se.streams[e];t&&Se.close(t)}},findObject(e,t){var r=Se.analyzePath(e,t);return r.exists?r.object:null},analyzePath(e,t){try{e=(n=Se.lookupPath(e,{follow:!t})).path}catch(e){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=Se.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=ae.basename(e),n=Se.lookupPath(e,{follow:!t}),r.exists=!0,r.path=n.path,r.object=n.node,r.name=n.node.name,r.isRoot="/"===n.path}catch(e){r.error=e.errno}return r},createPath(e,t,r,n){e="string"==typeof e?e:Se.getPath(e);for(var o=t.split("/").reverse();o.length;){var a=o.pop();if(a){var i=ae.join2(e,a);try{Se.mkdir(i)}catch(e){}e=i}}return i},createFile(e,t,r,n,o){var a=ae.join2("string"==typeof e?e:Se.getPath(e),t),i=Ee(n,o);return Se.create(a,i)},createDataFile(e,t,r,n,o,a){var i=t;e&&(e="string"==typeof e?e:Se.getPath(e),i=t?ae.join2(e,t):e);var s=Ee(n,o),l=Se.create(i,s);if(r){if("string"==typeof r){for(var u=new Array(r.length),c=0,d=r.length;c<d;++c)u[c]=r.charCodeAt(c);r=u}Se.chmod(l,146|s);var h=Se.open(l,577);Se.write(h,r,0,r.length,0,a),Se.close(h),Se.chmod(l,s)}},createDevice(e,t,r,n){var o=ae.join2("string"==typeof e?e:Se.getPath(e),t),a=Ee(!!r,!!n);Se.createDevice.major??=64;var i=Se.makedev(Se.createDevice.major++,0);return Se.registerDevice(i,{open(e){e.seekable=!1},close(e){n?.buffer?.length&&n(10)},read(e,t,n,o,a){for(var i=0,s=0;s<o;s++){var l;try{l=r()}catch(e){throw new Se.ErrnoError(29)}if(void 0===l&&0===i)throw new Se.ErrnoError(6);if(null==l)break;i++,t[n+s]=l}return i&&(e.node.timestamp=Date.now()),i},write(e,t,r,o,a){for(var i=0;i<o;i++)try{n(t[r+i])}catch(e){throw new Se.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),i}}),Se.mkdev(o,a,i)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");try{e.contents=d(e.url),e.usedBytes=e.contents.length}catch(e){throw new Se.ErrnoError(29)}},createLazyFile(e,t,r,n,o){class a{lengthKnown=!1;chunks=[];get(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}}setDataGetter(e){this.getter=e}cacheLength(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),o=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,a=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,i=1048576;o||(i=n);var s=this;s.setDataGetter((e=>{var t=e*i,o=(e+1)*i-1;if(o=Math.min(o,n-1),void 0===s.chunks[e]&&(s.chunks[e]=((e,t)=>{if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",r,!1),n!==i&&o.setRequestHeader("Range","bytes="+e+"-"+t),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+r+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):de(o.responseText||"")})(t,o)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!a&&n||(i=n=1,n=this.getter(0).length,i=n,y("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if("undefined"!=typeof XMLHttpRequest){if(!s)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i={isDevice:!1,contents:new a}}else i={isDevice:!1,url:r};var l=Se.createFile(e,t,i,n,o);i.contents?l.contents=i.contents:i.url&&(l.contents=null,l.url=i.url),Object.defineProperties(l,{usedBytes:{get:function(){return this.contents.length}}});var u={};function c(e,t,r,n,o){var a=e.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)t[r+s]=a[o+s];else for(s=0;s<i;s++)t[r+s]=a.get(o+s);return i}return Object.keys(l.stream_ops).forEach((e=>{var t=l.stream_ops[e];u[e]=(...e)=>(Se.forceLoadFile(l),t(...e))})),u.read=(e,t,r,n,o)=>(Se.forceLoadFile(l),c(e,t,r,n,o)),u.mmap=(e,t,r,n,o)=>{Se.forceLoadFile(l);var a=ve();if(!a)throw new Se.ErrnoError(48);return c(e,E,a,t,r),{ptr:a,allocated:!0}},l.stream_ops=u,l}},$e={DEFAULT_POLLMASK:5,calculateAt(e,t,r){if(ae.isAbs(t))return t;var n;if(n=-100===e?Se.cwd():$e.getStreamFromFD(e).path,0==t.length){if(!r)throw new Se.ErrnoError(44);return n}return ae.join2(n,t)},doStat(e,t,r){var n=e(t);x[r>>2]=n.dev,x[r+4>>2]=n.mode,P[r+8>>2]=n.nlink,x[r+12>>2]=n.uid,x[r+16>>2]=n.gid,x[r+20>>2]=n.rdev,V=[n.size>>>0,(I=n.size,+Math.abs(I)>=1?I>0?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],x[r+24>>2]=V[0],x[r+28>>2]=V[1],x[r+32>>2]=4096,x[r+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return V=[Math.floor(o/1e3)>>>0,(I=Math.floor(o/1e3),+Math.abs(I)>=1?I>0?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],x[r+40>>2]=V[0],x[r+44>>2]=V[1],P[r+48>>2]=o%1e3*1e3*1e3,V=[Math.floor(a/1e3)>>>0,(I=Math.floor(a/1e3),+Math.abs(I)>=1?I>0?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],x[r+56>>2]=V[0],x[r+60>>2]=V[1],P[r+64>>2]=a%1e3*1e3*1e3,V=[Math.floor(i/1e3)>>>0,(I=Math.floor(i/1e3),+Math.abs(I)>=1?I>0?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],x[r+72>>2]=V[0],x[r+76>>2]=V[1],P[r+80>>2]=i%1e3*1e3*1e3,V=[n.ino>>>0,(I=n.ino,+Math.abs(I)>=1?I>0?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],x[r+88>>2]=V[0],x[r+92>>2]=V[1],0},doMsync(e,t,r,n,o){if(!Se.isFile(t.node.mode))throw new Se.ErrnoError(43);if(2&n)return 0;var a=S.slice(e,e+r);Se.msync(t,a,o,r,n)},getStreamFromFD:e=>Se.getStreamChecked(e),varargs:void 0,getStr:e=>re(e)},Ce=e=>{for(var t="",r=e;S[r];)t+=he[S[r++]];return t},xe={},Pe={},Te={},ke=e=>{throw new pe(e)},Ae=e=>{throw new me(e)},De=(e,t,r)=>{function n(t){var n=r(t);n.length!==e.length&&Ae("Mismatched type converter count");for(var o=0;o<e.length;++o)Re(e[o],n[o])}e.forEach((e=>Te[e]=t));var o=new Array(t.length),a=[],i=0;t.forEach(((e,t)=>{Pe.hasOwnProperty(e)?o[t]=Pe[e]:(a.push(e),xe.hasOwnProperty(e)||(xe[e]=[]),xe[e].push((()=>{o[t]=Pe[e],++i===a.length&&n(o)})))})),0===a.length&&n(o)};function Re(e,t,r={}){return function(e,t,r={}){var n=t.name;if(e||ke(`type "${n}" must have a positive integer typeid pointer`),Pe.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;ke(`Cannot register type '${n}' twice`)}if(Pe[e]=t,delete Te[e],xe.hasOwnProperty(e)){var o=xe[e];delete xe[e],o.forEach((e=>e()))}}(e,t,r)}var Me=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),Be=e=>{ke(e.$$.ptrType.registeredClass.name+" instance already deleted")},Oe=!1,Ue=e=>{},je=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},Le=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var n=Le(e,t,r.baseClass);return null===n?null:r.downcast(n)},ze={},Ne={},Ie=(e,t)=>(t=((e,t)=>{for(void 0===t&&ke("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t})(e,t),Ne[t]),Ve=(e,t)=>(t.ptrType&&t.ptr||Ae("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&Ae("Both smartPtrType and smartPtr must be specified"),t.count={value:1},He(Object.create(e,{$$:{value:t,writable:!0}})));function We(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=Ie(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?Ve(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):Ve(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a,i=this.registeredClass.getActualType(t),s=ze[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var l=Le(t,this.registeredClass,a.registeredClass);return null===l?o.call(this):this.isSmartPointer?Ve(a.registeredClass.instancePrototype,{ptrType:a,ptr:l,smartPtrType:this,smartPtr:e}):Ve(a.registeredClass.instancePrototype,{ptrType:a,ptr:l})}var He=e=>"undefined"==typeof FinalizationRegistry?(He=e=>e,e):(Oe=new FinalizationRegistry((e=>{je(e.$$)})),He=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t};Oe.register(e,r,e)}return e},Ue=e=>Oe.unregister(e),He(e)),Ge=[];function qe(){}var Qe=(e,t)=>Object.defineProperty(t,"name",{value:e}),Xe=(e,t,r)=>{if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(...n){return e[t].overloadTable.hasOwnProperty(n.length)||ke(`Function '${r}' called with an invalid number of arguments (${n.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[n.length].apply(this,n)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}},Je=(e,t,r)=>{o.hasOwnProperty(e)?((void 0===r||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[r])&&ke(`Cannot register public name '${e}' twice`),Xe(o,e,e),o[e].overloadTable.hasOwnProperty(r)&&ke(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),o[e].overloadTable[r]=t):(o[e]=t,o[e].argCount=r)};function Ke(e,t,r,n,o,a,i,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var Ze=(e,t,r)=>{for(;t!==r;)t.upcast||ke(`Expected null or instance of ${r.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e};function Ye(e,t){if(null===t)return this.isReference&&ke(`null is not a valid ${this.name}`),0;t.$$||ke(`Cannot pass "${Tt(t)}" as a ${this.name}`),t.$$.ptr||ke(`Cannot pass deleted object as a pointer of type ${this.name}`);var r=t.$$.ptrType.registeredClass;return Ze(t.$$.ptr,r,this.registeredClass)}function et(e,t){var r;if(null===t)return this.isReference&&ke(`null is not a valid ${this.name}`),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t&&t.$$||ke(`Cannot pass "${Tt(t)}" as a ${this.name}`),t.$$.ptr||ke(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&ke(`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=Ze(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&ke("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:ke(`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,xt.toHandle((()=>o.delete()))),null!==e&&e.push(this.rawDestructor,r)}break;default:ke("Unsupporting sharing policy")}return r}function tt(e,t){if(null===t)return this.isReference&&ke(`null is not a valid ${this.name}`),0;t.$$||ke(`Cannot pass "${Tt(t)}" as a ${this.name}`),t.$$.ptr||ke(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&ke(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;return Ze(t.$$.ptr,r,this.registeredClass)}function rt(e){return this.fromWireType(P[e>>2])}function nt(e,t,r,n,o,a,i,s,l,u,c){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=u,this.rawDestructor=c,o||void 0!==t.baseClass?this.toWireType=et:n?(this.toWireType=Ye,this.destructorFunction=null):(this.toWireType=tt,this.destructorFunction=null)}var ot,at=(e,t,r)=>{o.hasOwnProperty(e)||Ae("Replacing nonexistent public symbol"),void 0!==o[e].overloadTable&&void 0!==r?o[e].overloadTable[r]=t:(o[e]=t,o[e].argCount=r)},it=(e,t,r=[])=>{var n=((e,t,r)=>(e=e.replace(/p/g,"i"),(0,o["dynCall_"+e])(t,...r)))(e,t,r);return n},st=(e,t)=>{e=Ce(e);var r,n,o=(r=e,n=t,(...e)=>it(r,n,e));return"function"!=typeof o&&ke(`unknown function pointer with signature ${e}: ${t}`),o},lt=e=>{var t=ar(e),r=Ce(t);return nr(t),r},ut=(e,t)=>{var r=[],n={};throw t.forEach((function e(t){n[t]||Pe[t]||(Te[t]?Te[t].forEach(e):(r.push(t),n[t]=!0))})),new ot(`${e}: `+r.map(lt).join([", "]))},ct=(e,t)=>{for(var r=[],n=0;n<e;n++)r.push(P[t+4*n>>2]);return r},dt=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function ht(e){for(var t=1;t<e.length;++t)if(null!==e[t]&&void 0===e[t].destructorFunction)return!0;return!1}var pt=e=>{try{return e()}catch(e){z(e)}},mt=e=>{if(e instanceof X||"unwind"==e)return _;m(1,e)},ft=0,gt=()=>K||ft>0,vt=e=>{_=e,gt()||(o.onExit?.(e),D=!0),m(e,new X(e))},yt=(e,t)=>{_=e,vt(e)},wt=e=>{if(!D)try{e(),(()=>{if(!gt())try{yt(_)}catch(e){mt(e)}})()}catch(e){mt(e)}},bt={instrumentWasmImports(e){var t=/^(invoke_.*|__asyncjs__.*)$/;for(let[r,n]of Object.entries(e))"function"==typeof n&&(n.isAsync||t.test(r))},instrumentWasmExports(e){var t={};for(let[r,n]of Object.entries(e))t[r]="function"==typeof n?(...e)=>{bt.exportCallStack.push(r);try{return n(...e)}finally{D||(bt.exportCallStack.pop(),bt.maybeStopUnwind())}}:n;return t},State:{Normal:0,Unwinding:1,Rewinding:2,Disabled:3},state:0,StackSize:4096,currData:null,handleSleepReturnValue:0,exportCallStack:[],callStackNameToId:{},callStackIdToName:{},callStackId:0,asyncPromiseHandlers:null,sleepCallbacks:[],getCallStackId(e){var t=bt.callStackNameToId[e];return void 0===t&&(t=bt.callStackId++,bt.callStackNameToId[e]=t,bt.callStackIdToName[t]=e),t},maybeStopUnwind(){bt.currData&&bt.state===bt.State.Unwinding&&0===bt.exportCallStack.length&&(bt.state=bt.State.Normal,pt(Sr),"undefined"!=typeof Fibers&&Fibers.trampoline())},whenDone:()=>new Promise(((e,t)=>{bt.asyncPromiseHandlers={resolve:e,reject:t}})),allocateData(){var e=or(12+bt.StackSize);return bt.setDataHeader(e,e+12,bt.StackSize),bt.setDataRewindFunc(e),e},setDataHeader(e,t,r){P[e>>2]=t,P[e+4>>2]=t+r},setDataRewindFunc(e){var t=bt.exportCallStack[0],r=bt.getCallStackId(t);x[e+8>>2]=r},getDataRewindFuncName(e){var t=x[e+8>>2];return bt.callStackIdToName[t]},getDataRewindFunc:e=>rr[e],doRewind(e){var t=bt.getDataRewindFuncName(e);return bt.getDataRewindFunc(t)()},handleSleep(e){if(!D){if(bt.state===bt.State.Normal){var t=!1,r=!1;e(((e=0)=>{if(!D&&(bt.handleSleepReturnValue=e,t=!0,r)){bt.state=bt.State.Rewinding,pt((()=>$r(bt.currData))),"undefined"!=typeof MainLoop&&MainLoop.func&&MainLoop.resume();var n,o=!1;try{n=bt.doRewind(bt.currData)}catch(e){n=e,o=!0}var a=!1;if(!bt.currData){var i=bt.asyncPromiseHandlers;i&&(bt.asyncPromiseHandlers=null,(o?i.reject:i.resolve)(n),a=!0)}if(o&&!a)throw n}})),r=!0,t||(bt.state=bt.State.Unwinding,bt.currData=bt.allocateData(),"undefined"!=typeof MainLoop&&MainLoop.func&&MainLoop.pause(),pt((()=>Er(bt.currData))))}else bt.state===bt.State.Rewinding?(bt.state=bt.State.Normal,pt(Cr),nr(bt.currData),bt.currData=null,bt.sleepCallbacks.forEach(wt)):z(`invalid state: ${bt.state}`);return bt.handleSleepReturnValue}},handleAsync:e=>bt.handleSleep((t=>{e().then(t)}))};function _t(e,t,r,n,o,a){var i=t.length;i<2&&ke("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==t[1]&&null!==r,l=ht(t),u="void"!==t[0].name,c=[e,ke,n,o,dt,t[0],t[1]],d=0;d<i-2;++d)c.push(t[d+2]);if(c.push(bt),!l)for(d=s?1:2;d<t.length;++d)null!==t[d].destructorFunction&&c.push(t[d].destructorFunction);let[h,p]=function(e,t,r,n){var o=ht(e),a=e.length-2,i=[],s=["fn"];t&&s.push("thisWired");for(var l=0;l<a;++l)i.push(`arg${l}`),s.push(`arg${l}Wired`);i=i.join(","),s=s.join(",");var u=`return function (${i}) {\n`;o&&(u+="var destructors = [];\n");var c=o?"destructors":"null",d=["humanName","throwBindingError","invoker","fn","runDestructors","retType","classParam"];for(t&&(u+=`var thisWired = classParam['toWireType'](${c}, this);\n`),l=0;l<a;++l)u+=`var arg${l}Wired = argType${l}['toWireType'](${c}, arg${l});\n`,d.push(`argType${l}`);u+=(r||n?"var rv = ":"")+`invoker(${s});\n`;var h=r?"rv":"";if(d.push("Asyncify"),u+=`function onDone(${h}) {\n`,o)u+="runDestructors(destructors);\n";else for(l=t?1:2;l<e.length;++l){var p=1===l?"thisWired":"arg"+(l-2)+"Wired";null!==e[l].destructorFunction&&(u+=`${p}_dtor(${p});\n`,d.push(`${p}_dtor`))}return r&&(u+="var ret = retType['fromWireType'](rv);\nreturn ret;\n"),u+="}\n",u+=`return Asyncify.currData ? Asyncify.whenDone().then(onDone) : onDone(${h});\n`,[d,u+="}\n"]}(t,s,u,a);h.push(p);var m=function(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,h)(...c);return Qe(e,m)}var Et=e=>{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e},St=[],$t=[],Ct=()=>$t.length/2-5-St.length,xt={toValue:e=>(e||ke("Cannot use deleted val. handle = "+e),$t[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const t=St.pop()||$t.length;return $t[t]=e,$t[t+1]=1,t}}}},Pt={name:"emscripten::val",fromWireType:e=>{var t=xt.toValue(e);return(e=>{e>9&&0==--$t[e+1]&&($t[e]=void 0,St.push(e))})(e),t},toWireType:(e,t)=>xt.toHandle(t),argPackAdvance:8,readValueFromPointer:rt,destructorFunction:null},Tt=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},kt=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(T[e>>2])};case 8:return function(e){return this.fromWireType(k[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},At=(e,t,r)=>{switch(t){case 1:return r?e=>E[e]:e=>S[e];case 2:return r?e=>$[e>>1]:e=>C[e>>1];case 4:return r?e=>x[e>>2]:e=>P[e>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Dt=(e,t,r)=>ce(e,S,t,r),Ft="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Rt=(e,t)=>{for(var r=e,n=r>>1,o=n+t/2;!(n>=o)&&C[n];)++n;if((r=n<<1)-e>32&&Ft)return Ft.decode(S.subarray(e,r));for(var a="",i=0;!(i>=t/2);++i){var s=$[e+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},Mt=(e,t,r)=>{if(r??=2147483647,r<2)return 0;for(var n=t,o=(r-=2)<2*e.length?r/2:e.length,a=0;a<o;++a){var i=e.charCodeAt(a);$[t>>1]=i,t+=2}return $[t>>1]=0,t-n},Bt=e=>2*e.length,Ot=(e,t)=>{for(var r=0,n="";!(r>=t/4);){var o=x[e+4*r>>2];if(0==o)break;if(++r,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},Ut=(e,t,r)=>{if(r??=2147483647,r<4)return 0;for(var n=t,o=n+r-4,a=0;a<e.length;++a){var i=e.charCodeAt(a);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++a)),x[t>>2]=i,(t+=4)+4>o)break}return x[t>>2]=0,t-n},jt=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},Lt={},zt=e=>{var t=(e-b.buffer.byteLength+65535)/65536|0;try{return b.grow(t),F(),1}catch(e){}},Nt=e=>bt.handleSleep((t=>{return r=t,setTimeout((()=>{wt(r)}),e);var r}));Nt.isAsync=!0;var It,Vt,Wt,Ht={},Gt=()=>{if(!Gt.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",_:p||"./this.program"};for(var t in Ht)void 0===Ht[t]?delete e[t]:e[t]=Ht[t];var r=[];for(var t in e)r.push(`${t}=${e[t]}`);Gt.strings=r}return Gt.strings},qt=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN,Qt=e=>{var t=ue(e)+1,r=cr(t);return Dt(e,r,t),r},Xt={errorCallback:(e,t,r,n)=>{var o=Y(),a=Qt(r);wr(e,t,a,n),Z(o)},initManagers:()=>{function e(){this.objects={},this.nextId=1,this.create=function(e,t={}){var r=this.nextId++;return t.refcount=1,t.object=e,this.objects[r]=t,r},this.get=function(e){if(e)return this.objects[e].object},this.reference=function(e){this.objects[e].refcount++},this.release=function(e){var t=this.objects[e];t.refcount--,t.refcount<=0&&delete this.objects[e]}}Xt.mgrSurface=new e,Xt.mgrSwapChain=new e,Xt.mgrAdapter=new e,Xt.mgrDevice=new e,Xt.mgrQueue=new e,Xt.mgrCommandBuffer=new e,Xt.mgrCommandEncoder=new e,Xt.mgrRenderPassEncoder=new e,Xt.mgrComputePassEncoder=new e,Xt.mgrBindGroup=new e,Xt.mgrBuffer=new e,Xt.mgrSampler=new e,Xt.mgrTexture=new e,Xt.mgrTextureView=new e,Xt.mgrQuerySet=new e,Xt.mgrBindGroupLayout=new e,Xt.mgrPipelineLayout=new e,Xt.mgrRenderPipeline=new e,Xt.mgrComputePipeline=new e,Xt.mgrShaderModule=new e,Xt.mgrRenderBundleEncoder=new e,Xt.mgrRenderBundle=new e},makeColor:e=>({r:k[e>>3],g:k[e+8>>3],b:k[e+16>>3],a:k[e+24>>3]}),makeExtent3D:e=>({width:P[e>>2],height:P[e+4>>2],depthOrArrayLayers:P[e+8>>2]}),makeOrigin3D:e=>({x:P[e>>2],y:P[e+4>>2],z:P[e+8>>2]}),makeImageCopyTexture:e=>({texture:Xt.mgrTexture.get(P[e+4>>2]),mipLevel:P[e+8>>2],origin:Xt.makeOrigin3D(e+12),aspect:Xt.TextureAspect[P[e+24>>2]]}),makeTextureDataLayout:e=>{var t=P[e+16>>2],r=P[e+20>>2];return{offset:4294967296*P[e+4+8>>2]+P[e+8>>2],bytesPerRow:4294967295===t?void 0:t,rowsPerImage:4294967295===r?void 0:r}},makeImageCopyBuffer:e=>{var t=e+8,r=Xt.makeTextureDataLayout(t);return r.buffer=Xt.mgrBuffer.get(P[e+32>>2]),r},makePipelineConstants:(e,t)=>{if(e){for(var r={},n=0;n<e;++n){var o=t+16*n;r[re(P[o+4>>2])]=k[o+8>>3]}return r}},makePipelineLayout:e=>e?Xt.mgrPipelineLayout.get(e):"auto",makeProgrammableStageDescriptor:e=>{if(e){var t={module:Xt.mgrShaderModule.get(P[e+4>>2]),constants:Xt.makePipelineConstants(P[e+12>>2],P[e+16>>2])},r=P[e+8>>2];return r&&(t.entryPoint=re(r)),t}},fillLimitStruct:(e,t)=>{var r=t+8;function n(t,n){var o=e[t];x[r+n>>2]=o}function o(t,n){var o=e[t];V=[o>>>0,(I=o,+Math.abs(I)>=1?I>0?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],x[r+n>>2]=V[0],x[r+(n+4)>>2]=V[1]}n("maxTextureDimension1D",0),n("maxTextureDimension2D",4),n("maxTextureDimension3D",8),n("maxTextureArrayLayers",12),n("maxBindGroups",16),n("maxBindGroupsPlusVertexBuffers",20),n("maxBindingsPerBindGroup",24),n("maxDynamicUniformBuffersPerPipelineLayout",28),n("maxDynamicStorageBuffersPerPipelineLayout",32),n("maxSampledTexturesPerShaderStage",36),n("maxSamplersPerShaderStage",40),n("maxStorageBuffersPerShaderStage",44),n("maxStorageTexturesPerShaderStage",48),n("maxUniformBuffersPerShaderStage",52),n("minUniformBufferOffsetAlignment",72),n("minStorageBufferOffsetAlignment",76),o("maxUniformBufferBindingSize",56),o("maxStorageBufferBindingSize",64),n("maxVertexBuffers",80),o("maxBufferSize",88),n("maxVertexAttributes",96),n("maxVertexBufferArrayStride",100),n("maxInterStageShaderComponents",104),n("maxInterStageShaderVariables",108),n("maxColorAttachments",112),n("maxColorAttachmentBytesPerSample",116),n("maxComputeWorkgroupStorageSize",120),n("maxComputeInvocationsPerWorkgroup",124),n("maxComputeWorkgroupSizeX",128),n("maxComputeWorkgroupSizeY",132),n("maxComputeWorkgroupSizeZ",136),n("maxComputeWorkgroupsPerDimension",140)},Int_BufferMapState:{unmapped:1,pending:2,mapped:3},Int_CompilationMessageType:{error:1,warning:2,info:3},Int_DeviceLostReason:{undefined:1,unknown:1,destroyed:2},Int_PreferredFormat:{rgba8unorm:18,bgra8unorm:23},WGSLFeatureName:[,"readonly_and_readwrite_storage_textures","packed_4x8_integer_dot_product","unrestricted_pointer_parameters","pointer_composite_access"],AddressMode:[,"clamp-to-edge","repeat","mirror-repeat"],AlphaMode:[,"opaque","premultiplied"],BlendFactor:[,"zero","one","src","one-minus-src","src-alpha","one-minus-src-alpha","dst","one-minus-dst","dst-alpha","one-minus-dst-alpha","src-alpha-saturated","constant","one-minus-constant"],BlendOperation:[,"add","subtract","reverse-subtract","min","max"],BufferBindingType:[,"uniform","storage","read-only-storage"],BufferMapState:{1:"unmapped",2:"pending",3:"mapped"},CompareFunction:[,"never","less","equal","less-equal","greater","not-equal","greater-equal","always"],CompilationInfoRequestStatus:["success","error","device-lost","unknown"],CullMode:[,"none","front","back"],ErrorFilter:{1:"validation",2:"out-of-memory",3:"internal"},FeatureName:[,"depth-clip-control","depth32float-stencil8","timestamp-query","texture-compression-bc","texture-compression-etc2","texture-compression-astc","indirect-first-instance","shader-f16","rg11b10ufloat-renderable","bgra8unorm-storage","float32-filterable"],FilterMode:[,"nearest","linear"],FrontFace:[,"ccw","cw"],IndexFormat:[,"uint16","uint32"],LoadOp:[,"clear","load"],MipmapFilterMode:[,"nearest","linear"],PowerPreference:[,"low-power","high-performance"],PrimitiveTopology:[,"point-list","line-list","line-strip","triangle-list","triangle-strip"],QueryType:{1:"occlusion",2:"timestamp"},SamplerBindingType:[,"filtering","non-filtering","comparison"],StencilOperation:[,"keep","zero","replace","invert","increment-clamp","decrement-clamp","increment-wrap","decrement-wrap"],StorageTextureAccess:[,"write-only","read-only","read-write"],StoreOp:[,"store","discard"],TextureAspect:[,"all","stencil-only","depth-only"],TextureDimension:[,"1d","2d","3d"],TextureFormat:[,"r8unorm","r8snorm","r8uint","r8sint","r16uint","r16sint","r16float","rg8unorm","rg8snorm","rg8uint","rg8sint","r32float","r32uint","r32sint","rg16uint","rg16sint","rg16float","rgba8unorm","rgba8unorm-srgb","rgba8snorm","rgba8uint","rgba8sint","bgra8unorm","bgra8unorm-srgb","rgb10a2uint","rgb10a2unorm","rg11b10ufloat","rgb9e5ufloat","rg32float","rg32uint","rg32sint","rgba16uint","rgba16sint","rgba16float","rgba32float","rgba32uint","rgba32sint","stencil8","depth16unorm","depth24plus","depth24plus-stencil8","depth32float","depth32float-stencil8","bc1-rgba-unorm","bc1-rgba-unorm-srgb","bc2-rgba-unorm","bc2-rgba-unorm-srgb","bc3-rgba-unorm","bc3-rgba-unorm-srgb","bc4-r-unorm","bc4-r-snorm","bc5-rg-unorm","bc5-rg-snorm","bc6h-rgb-ufloat","bc6h-rgb-float","bc7-rgba-unorm","bc7-rgba-unorm-srgb","etc2-rgb8unorm","etc2-rgb8unorm-srgb","etc2-rgb8a1unorm","etc2-rgb8a1unorm-srgb","etc2-rgba8unorm","etc2-rgba8unorm-srgb","eac-r11unorm","eac-r11snorm","eac-rg11unorm","eac-rg11snorm","astc-4x4-unorm","astc-4x4-unorm-srgb","astc-5x4-unorm","astc-5x4-unorm-srgb","astc-5x5-unorm","astc-5x5-unorm-srgb","astc-6x5-unorm","astc-6x5-unorm-srgb","astc-6x6-unorm","astc-6x6-unorm-srgb","astc-8x5-unorm","astc-8x5-unorm-srgb","astc-8x6-unorm","astc-8x6-unorm-srgb","astc-8x8-unorm","astc-8x8-unorm-srgb","astc-10x5-unorm","astc-10x5-unorm-srgb","astc-10x6-unorm","astc-10x6-unorm-srgb","astc-10x8-unorm","astc-10x8-unorm-srgb","astc-10x10-unorm","astc-10x10-unorm-srgb","astc-12x10-unorm","astc-12x10-unorm-srgb","astc-12x12-unorm","astc-12x12-unorm-srgb"],TextureSampleType:[,"float","unfilterable-float","depth","sint","uint"],TextureViewDimension:[,"1d","2d","2d-array","cube","cube-array","3d"],VertexFormat:[,"uint8x2","uint8x4","sint8x2","sint8x4","unorm8x2","unorm8x4","snorm8x2","snorm8x4","uint16x2","uint16x4","sint16x2","sint16x4","unorm16x2","unorm16x4","snorm16x2","snorm16x4","float16x2","float16x4","float32","float32x2","float32x3","float32x4","uint32","uint32x2","uint32x3","uint32x4","sint32","sint32x2","sint32x3","sint32x4","unorm10-10-10-2"],VertexStepMode:[,"vertex-buffer-not-used","vertex","instance"],FeatureNameString2Enum:{undefined:"0","depth-clip-control":"1","depth32float-stencil8":"2","timestamp-query":"3","texture-compression-bc":"4","texture-compression-etc2":"5","texture-compression-astc":"6","indirect-first-instance":"7","shader-f16":"8","rg11b10ufloat-renderable":"9","bgra8unorm-storage":"10","float32-filterable":"11"}},Jt=[0,"undefined"!=typeof document?document:0,"undefined"!=typeof window?window:0],Kt=e=>{var t;return e=(t=e)>2?re(t):t,Jt[e]||("undefined"!=typeof document?document.querySelector(e):void 0)},Zt=Se.createPath,Yt=Se.createLazyFile,er=Se.createDevice;Se.createPreloadedFile=_e,Se.staticInit(),o.FS_createPath=Se.createPath,o.FS_createDataFile=Se.createDataFile,o.FS_createPreloadedFile=Se.createPreloadedFile,o.FS_unlink=Se.unlink,o.FS_createLazyFile=Se.createLazyFile,o.FS_createDevice=Se.createDevice,(()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);he=e})(),pe=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},me=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Object.assign(qe.prototype,{isAliasOf(e){if(!(this instanceof qe))return!1;if(!(e instanceof qe))return!1;var t=this.$$.ptrType.registeredClass,r=this.$$.ptr;e.$$=e.$$;for(var 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},clone(){if(this.$$.ptr||Be(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=He(Object.create(Object.getPrototypeOf(this),{$$:{value:Me(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||Be(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ke("Object already scheduled for deletion"),Ue(this),je(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Be(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ke("Object already scheduled for deletion"),Ge.push(this),Ge.length,this.$$.deleteScheduled=!0,this}}),Object.assign(nt.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor?.(e)},argPackAdvance:8,readValueFromPointer:rt,fromWireType:We}),ot=o.UnboundTypeError=(It=Error,(Wt=Qe(Vt="UnboundTypeError",(function(e){this.name=Vt,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(It.prototype),Wt.prototype.constructor=Wt,Wt.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},Wt),$t.push(0,1,void 0,1,null,1,!0,1,!1,1),o.count_emval_handles=Ct,Xt.initManagers();var tr={b:(e,t,r,n)=>{z(`Assertion failed: ${re(e)}, at: `+[t?re(t):"unknown filename",r,n?re(n):"unknown function"])},N:function(e,t,r){$e.varargs=r;try{var n=$e.getStreamFromFD(e);switch(t){case 0:if((o=ne())<0)return-28;for(;Se.streams[o];)o++;return Se.dupStream(n,o).fd;case 1:case 2:case 13:case 14:return 0;case 3:return n.flags;case 4:var o=ne();return n.flags|=o,0;case 12:return o=oe(),$[o+0>>1]=2,0}return-28}catch(e){if(void 0===Se||"ErrnoError"!==e.name)throw e;return-e.errno}},xa:function(e,t,r){$e.varargs=r;try{var n=$e.getStreamFromFD(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var o=n.tty.ops.ioctl_tcgets(n),a=oe();x[a>>2]=o.c_iflag||0,x[a+4>>2]=o.c_oflag||0,x[a+8>>2]=o.c_cflag||0,x[a+12>>2]=o.c_lflag||0;for(var i=0;i<32;i++)E[a+i+17]=o.c_cc[i]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){a=oe();var s=x[a>>2],l=x[a+4>>2],u=x[a+8>>2],c=x[a+12>>2],d=[];for(i=0;i<32;i++)d.push(E[a+i+17]);return n.tty.ops.ioctl_tcsets(n.tty,t,{c_iflag:s,c_oflag:l,c_cflag:u,c_lflag:c,c_cc:d})}return 0;case 21519:return n.tty?(a=oe(),x[a>>2]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return a=oe(),Se.ioctl(n,t,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var h=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=oe(),$[a>>1]=h[0],$[a+2>>1]=h[1]}return 0;default:return-28}}catch(e){if(void 0===Se||"ErrnoError"!==e.name)throw e;return-e.errno}},ya:function(e,t,r,n){$e.varargs=n;try{t=$e.getStr(t),t=$e.calculateAt(e,t);var o=n?ne():0;return Se.open(t,r,o).fd}catch(e){if(void 0===Se||"ErrnoError"!==e.name)throw e;return-e.errno}},za:()=>{z("")},fa:(e,t,r,n,o)=>{},Ba:(e,t,r,n)=>{Re(e,{name:t=Ce(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:n},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(S[e])},destructorFunction:null})},Fa:(e,t,r,n,o,a,i,s,l,u,c,d,h)=>{c=Ce(c),a=st(o,a),s&&=st(i,s),u&&=st(l,u),h=st(d,h);var p=(e=>{var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?`_${e}`:e})(c);Je(p,(function(){ut(`Cannot construct ${c} due to unbound types`,[n])})),De([e,t,r],n?[n]:[],(t=>{var r,o;t=t[0],o=n?(r=t.registeredClass).instancePrototype:qe.prototype;var i=Qe(c,(function(...e){if(Object.getPrototypeOf(this)!==l)throw new pe("Use 'new' to construct "+c);if(void 0===d.constructor_body)throw new pe(c+" has no accessible constructor");var t=d.constructor_body[e.length];if(void 0===t)throw new pe(`Tried to invoke ctor of ${c} with invalid number of parameters (${e.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return t.apply(this,e)})),l=Object.create(o,{constructor:{value:i}});i.prototype=l;var d=new Ke(c,i,l,h,r,a,s,u);d.baseClass&&(d.baseClass.__derivedClasses??=[],d.baseClass.__derivedClasses.push(d));var m=new nt(c,d,!0,!1,!1),f=new nt(c+"*",d,!1,!1,!1),g=new nt(c+" const*",d,!1,!0,!1);return ze[e]={pointerType:f,constPointerType:g},at(p,i),[m,f,g]}))},Ea:(e,t,r,n,o,a)=>{var i=ct(t,r);o=st(n,o),De([],[e],(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 pe(`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]=()=>{ut(`Cannot construct ${e.name} due to unbound types`,i)},De([],i,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=_t(r,n,null,o,a),[]))),[]}))},q:(e,t,r,n,o,a,i,s,l,u)=>{var c=ct(r,n);t=Ce(t),t=Et(t),a=st(o,a),De([],[e],(e=>{var n=`${(e=e[0]).name}.${t}`;function o(){ut(`Cannot call ${n} due to unbound types`,c)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var u=e.registeredClass.instancePrototype,d=u[t];return void 0===d||void 0===d.overloadTable&&d.className!==e.name&&d.argCount===r-2?(o.argCount=r-2,o.className=e.name,u[t]=o):(Xe(u,t,n),u[t].overloadTable[r-2]=o),De([],c,(o=>{var s=_t(n,o,e,a,i,l);return void 0===u[t].overloadTable?(s.argCount=r-2,u[t]=s):u[t].overloadTable[r-2]=s,[]})),[]}))},Aa:e=>Re(e,Pt),O:(e,t,r)=>{Re(e,{name:t=Ce(t),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:8,readValueFromPointer:kt(t,r),destructorFunction:null})},R:(e,t,r,n,o,a,i,s)=>{var l=ct(t,r);e=Ce(e),e=Et(e),o=st(n,o),Je(e,(function(){ut(`Cannot call ${e} due to unbound types`,l)}),t-1),De([],l,(r=>{var n=[r[0],null].concat(r.slice(1));return at(e,_t(e,n,null,o,a,i),t-1),[]}))},v:(e,t,r,n,o)=>{t=Ce(t);var a=e=>e;if(0===n){var i=32-8*r;a=e=>e<<i>>>i}var s=t.includes("unsigned");Re(e,{name:t,fromWireType:a,toWireType:s?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:8,readValueFromPointer:At(t,r,0!==n),destructorFunction:null})},l:(e,t,r)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function o(e){var t=P[e>>2],r=P[e+4>>2];return new n(E.buffer,r,t)}Re(e,{name:r=Ce(r),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},P:(e,t)=>{var r="std::string"===(t=Ce(t));Re(e,{name:t,fromWireType(e){var t,n=P[e>>2],o=e+4;if(r)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==S[s]){var l=re(a,s-a);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),a=s+1}}else{var u=new Array(n);for(i=0;i<n;++i)u[i]=String.fromCharCode(S[o+i]);t=u.join("")}return nr(e),t},toWireType(e,t){var n;t instanceof ArrayBuffer&&(t=new Uint8Array(t));var o="string"==typeof t;o||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||ke("Cannot pass non-string to std::string"),n=r&&o?ue(t):t.length;var a=or(4+n+1),i=a+4;if(P[a>>2]=n,r&&o)Dt(t,i,n+1);else if(o)for(var s=0;s<n;++s){var l=t.charCodeAt(s);l>255&&(nr(i),ke("String has UTF-16 code units that do not fit in 8 bits")),S[i+s]=l}else for(s=0;s<n;++s)S[i+s]=t[s];return null!==e&&e.push(nr,a),a},argPackAdvance:8,readValueFromPointer:rt,destructorFunction(e){nr(e)}})},J:(e,t,r)=>{var n,o,a,i;r=Ce(r),2===t?(n=Rt,o=Mt,i=Bt,a=e=>C[e>>1]):4===t&&(n=Ot,o=Ut,i=jt,a=e=>P[e>>2]),Re(e,{name:r,fromWireType:e=>{for(var r,o=P[e>>2],i=e+4,s=0;s<=o;++s){var l=e+4+s*t;if(s==o||0==a(l)){var u=n(i,l-i);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),i=l+t}}return nr(e),r},toWireType:(e,n)=>{"string"!=typeof n&&ke(`Cannot pass non-string to C++ string type ${r}`);var a=i(n),s=or(4+a+t);return P[s>>2]=a/t,o(n,s+4,a+t),null!==e&&e.push(nr,s),s},argPackAdvance:8,readValueFromPointer:rt,destructorFunction(e){nr(e)}})},Ca:(e,t)=>{Re(e,{isVoid:!0,name:t=Ce(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},ta:(e,t,r)=>S.copyWithin(e,t,t+r),na:()=>{K=!1,ft=0},la:()=>{throw 1/0},B:(e,t)=>{var r,n,o;n="_emval_take_value",void 0===(o=Pe[r=e])&&ke(`${n} has unknown type ${lt(r)}`);var a=(e=o).readValueFromPointer(t);return xt.toHandle(a)},oa:(e,t)=>{if(Lt[e]&&(clearTimeout(Lt[e].id),delete Lt[e]),!t)return 0;var r=setTimeout((()=>{delete Lt[e],wt((()=>ir(e,performance.now())))}),t);return Lt[e]={id:r,timeout_ms:t},0},pa:(e,t,r,n)=>{var o=(new Date).getFullYear(),a=new Date(o,0,1),i=new Date(o,6,1),s=a.getTimezoneOffset(),l=i.getTimezoneOffset(),u=Math.max(s,l);P[e>>2]=60*u,x[t>>2]=Number(s!=l);var c=e=>{var t=e>=0?"-":"+",r=Math.abs(e);return`UTC${t}${String(Math.floor(r/60)).padStart(2,"0")}${String(r%60).padStart(2,"0")}`},d=c(s),h=c(l);l<s?(Dt(d,r,17),Dt(h,n,17)):(Dt(d,n,17),Dt(h,r,17))},sa:e=>{var t,r,n=S.length,o=2147483648;if((e>>>=0)>o)return!1;for(var a=1;a<=4;a*=2){var i=n*(1+.2/a);i=Math.min(i,e+100663296);var s=Math.min(o,(t=Math.max(e,i),r=65536,Math.ceil(t/r)*r));if(zt(s))return!0}return!1},S:Nt,qa:(e,t)=>{var r=0;return Gt().forEach(((n,o)=>{var a=t+r;P[e+4*o>>2]=a,((e,t)=>{for(var r=0;r<e.length;++r)E[t++]=e.charCodeAt(r);E[t]=0})(n,a),r+=n.length+1})),0},ra:(e,t)=>{var r=Gt();P[e>>2]=r.length;var n=0;return r.forEach((e=>n+=e.length+1)),P[t>>2]=n,0},M:function(e){try{var t=$e.getStreamFromFD(e);return Se.close(t),0}catch(e){if(void 0===Se||"ErrnoError"!==e.name)throw e;return e.errno}},wa:function(e,t,r,n){try{var o=((e,t,r,n)=>{for(var o=0,a=0;a<r;a++){var i=P[t>>2],s=P[t+4>>2];t+=8;var l=Se.read(e,E,i,s,n);if(l<0)return-1;if(o+=l,l<s)break}return o})($e.getStreamFromFD(e),t,r);return P[n>>2]=o,0}catch(e){if(void 0===Se||"ErrnoError"!==e.name)throw e;return e.errno}},ea:function(e,t,r,n,o){var a=qt(t,r);try{if(isNaN(a))return 61;var i=$e.getStreamFromFD(e);return Se.llseek(i,a,n),V=[i.position>>>0,(I=i.position,+Math.abs(I)>=1?I>0?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],x[o>>2]=V[0],x[o+4>>2]=V[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(e){if(void 0===Se||"ErrnoError"!==e.name)throw e;return e.errno}},va:function(e,t,r,n){try{var o=((e,t,r,n)=>{for(var o=0,a=0;a<r;a++){var i=P[t>>2],s=P[t+4>>2];t+=8;var l=Se.write(e,E,i,s,n);if(l<0)return-1;if(o+=l,l<s)break}return o})($e.getStreamFromFD(e),t,r);return P[n>>2]=o,0}catch(e){if(void 0===Se||"ErrnoError"!==e.name)throw e;return e.errno}},m:function(e,t){var r=Y();try{return pr(e,t)}catch(e){if(Z(r),e!==e+0)throw e;sr(1,0)}},g:function(e,t,r){var n=Y();try{return yr(e,t,r)}catch(e){if(Z(n),e!==e+0)throw e;sr(1,0)}},e:function(e,t,r,n){var o=Y();try{return hr(e,t,r,n)}catch(e){if(Z(o),e!==e+0)throw e;sr(1,0)}},D:function(e,t,r,n,o,a){var i=Y();try{return vr(e,t,r,n,o,a)}catch(e){if(Z(i),e!==e+0)throw e;sr(1,0)}},a:function(e,t){var r=Y();try{mr(e,t)}catch(e){if(Z(r),e!==e+0)throw e;sr(1,0)}},c:function(e,t,r){var n=Y();try{fr(e,t,r)}catch(e){if(Z(n),e!==e+0)throw e;sr(1,0)}},f:function(e,t,r,n){var o=Y();try{wr(e,t,r,n)}catch(e){if(Z(o),e!==e+0)throw e;sr(1,0)}},A:function(e,t,r,n,o){var a=Y();try{br(e,t,r,n,o)}catch(e){if(Z(a),e!==e+0)throw e;sr(1,0)}},da:function(e,t,r,n,o,a,i,s){var l=Y();try{gr(e,t,r,n,o,a,i,s)}catch(e){if(Z(l),e!==e+0)throw e;sr(1,0)}},ma:vt,U:(e,t)=>{var r=0,n=0;return Xt.mgrAdapter.get(e).features.forEach((e=>{var o=Xt.FeatureNameString2Enum[e];void 0!==o&&(0!==t&&(x[t+r>>2]=o,r+=4),n++)})),n},_:e=>Xt.mgrAdapter.release(e),T:(e,t,r,n)=>{var o=Xt.mgrAdapter.get(e),a={};if(t){var i=P[t+8>>2];if(i){var s=P[t+12>>2];a.requiredFeatures=Array.from(x.subarray(s>>2,s+4*i>>2),(e=>Xt.FeatureName[e]))}var l=P[t+16>>2];if(l){var u=l+8,c={};function g(e,t){var r=P[u+t>>2];4294967295!=r&&(c[e]=r)}function v(e,t){var r=u+t,n=P[r>>2],o=P[r+4>>2];4294967295==n&&4294967295==o||(c[e]=4294967296*P[r+4>>2]+P[r>>2])}g("maxTextureDimension1D",0),g("maxTextureDimension2D",4),g("maxTextureDimension3D",8),g("maxTextureArrayLayers",12),g("maxBindGroups",16),g("maxBindGroupsPlusVertexBuffers",20),g("maxDynamicUniformBuffersPerPipelineLayout",28),g("maxDynamicStorageBuffersPerPipelineLayout",32),g("maxSampledTexturesPerShaderStage",36),g("maxSamplersPerShaderStage",40),g("maxStorageBuffersPerShaderStage",44),g("maxStorageTexturesPerShaderStage",48),g("maxUniformBuffersPerShaderStage",52),g("minUniformBufferOffsetAlignment",72),g("minStorageBufferOffsetAlignment",76),v("maxUniformBufferBindingSize",56),v("maxStorageBufferBindingSize",64),g("maxVertexBuffers",80),v("maxBufferSize",88),g("maxVertexAttributes",96),g("maxVertexBufferArrayStride",100),g("maxInterStageShaderComponents",104),g("maxInterStageShaderVariables",108),g("maxColorAttachments",112),g("maxColorAttachmentBytesPerSample",116),g("maxComputeWorkgroupStorageSize",120),g("maxComputeInvocationsPerWorkgroup",124),g("maxComputeWorkgroupSizeX",128),g("maxComputeWorkgroupSizeY",132),g("maxComputeWorkgroupSizeZ",136),g("maxComputeWorkgroupsPerDimension",140),a.requiredLimits=c}var d=P[t+20>>2];if(d){var h={};(p=P[d+4>>2])&&(h.label=re(p)),a.defaultQueue=h}var p,m=P[t+28>>2],f=P[t+32>>2];(p=P[t+4>>2])&&(a.label=re(p))}o.requestDevice(a).then((e=>{wt((()=>{var t={queueId:Xt.mgrQueue.create(e.queue)},o=Xt.mgrDevice.create(e,t);m&&e.lost.then((e=>{wt((()=>Xt.errorCallback(m,Xt.Int_DeviceLostReason[e.reason],e.message,f)))})),br(r,0,o,0,n)}))}),(function(e){wt((()=>{var t=Y(),o=Qt(e.message);br(r,1,0,o,n),Z(t)}))}))},w:e=>Xt.mgrBindGroupLayout.release(e),t:e=>Xt.mgrBindGroup.release(e),La:e=>{var t=Xt.mgrBuffer.objects[e];if(t.onUnmap){for(var r=0;r<t.onUnmap.length;++r)t.onUnmap[r]();t.onUnmap=void 0}Xt.mgrBuffer.get(e).destroy()},ja:function(e){var t,r=Xt.mgrBuffer.get(e).size;return I=r,t=+Math.abs(I)>=1?I>0?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0,lr(t),r>>>0},Ka:e=>Xt.mgrBuffer.release(e),X:e=>Xt.mgrCommandBuffer.release(e),ca:(e,t)=>{function r(e){var t=P[e+4>>2];if(0!==t){var r=x[e+8>>2];-1==r&&(r=void 0);var n=P[e+16>>2],o=P[e+20>>2],a=Xt.makeColor(e+24);return{view:Xt.mgrTextureView.get(t),depthSlice:r,resolveTarget:Xt.mgrTextureView.get(P[e+12>>2]),clearValue:a,loadOp:Xt.LoadOp[n],storeOp:Xt.StoreOp[o]}}}function n(e,t){for(var n=[],o=0;o<e;++o)n.push(r(t+56*o));return n}function o(e){if(0!==e)return{view:Xt.mgrTextureView.get(P[e>>2]),depthClearValue:T[e+12>>2],depthLoadOp:Xt.LoadOp[P[e+4>>2]],depthStoreOp:Xt.StoreOp[P[e+8>>2]],depthReadOnly:!!P[e+16>>2],stencilClearValue:P[e+28>>2],stencilLoadOp:Xt.LoadOp[P[e+20>>2]],stencilStoreOp:Xt.StoreOp[P[e+24>>2]],stencilReadOnly:!!P[e+32>>2]}}function a(e){if(0!==e)return{querySet:Xt.mgrQuerySet.get(P[e>>2]),beginningOfPassWriteIndex:P[e+4>>2],endOfPassWriteIndex:P[e+8>>2]}}var i=function(e){var t=P[e>>2],r=void 0;if(0!==t){P[t+4>>2];var i=t;r=4294967296*P[i+4+8>>2]+P[i+8>>2]}var s={label:void 0,colorAttachments:n(P[e+8>>2],P[e+12>>2]),depthStencilAttachment:o(P[e+16>>2]),occlusionQuerySet:Xt.mgrQuerySet.get(P[e+20>>2]),timestampWrites:a(P[e+24>>2]),maxDrawCount:r},l=P[e+4>>2];return l&&(s.label=re(l)),s}(t),s=Xt.mgrCommandEncoder.get(e);return Xt.mgrRenderPassEncoder.create(s.beginRenderPass(i))},F:(e,t,r,n)=>{var o=Xt.mgrCommandEncoder.get(e),a=Xt.makeExtent3D(n);o.copyTextureToTexture(Xt.makeImageCopyTexture(t),Xt.makeImageCopyTexture(r),a)},Y:(e,t)=>{var r=Xt.mgrCommandEncoder.get(e);return Xt.mgrCommandBuffer.create(r.finish())},W:e=>Xt.mgrCommandEncoder.release(e),y:(e,t)=>{function r(e){var t,r=P[e+8>>2],n=P[e+32>>2],o=P[e+36>>2],a=P[e+4>>2];if(r){var i=P[(t=e+24)>>2]+4294967296*x[t+4>>2];return-1==i&&(i=void 0),{binding:a,resource:{buffer:Xt.mgrBuffer.get(r),offset:4294967296*P[e+4+16>>2]+P[e+16>>2],size:i}}}return n?{binding:a,resource:Xt.mgrSampler.get(n)}:{binding:a,resource:Xt.mgrTextureView.get(o)}}var n={label:void 0,layout:Xt.mgrBindGroupLayout.get(P[t+8>>2]),entries:function(e,t){for(var n=[],o=0;o<e;++o)n.push(r(t+40*o));return n}(P[t+12>>2],P[t+16>>2])},o=P[t+4>>2];o&&(n.label=re(o));var a=Xt.mgrDevice.get(e);return Xt.mgrBindGroup.create(a.createBindGroup(n))},u:(e,t)=>{function r(e){var t=P[e+4>>2];if(t)return{type:Xt.BufferBindingType[t],hasDynamicOffset:!!P[e+8>>2],minBindingSize:4294967296*P[e+4+16>>2]+P[e+16>>2]}}function n(e){var t=P[e+4>>2];if(t)return{type:Xt.SamplerBindingType[t]}}function o(e){var t=P[e+4>>2];if(t)return{sampleType:Xt.TextureSampleType[t],viewDimension:Xt.TextureViewDimension[P[e+8>>2]],multisampled:!!P[e+12>>2]}}function a(e){var t=P[e+4>>2];if(t)return{access:Xt.StorageTextureAccess[t],format:Xt.TextureFormat[P[e+8>>2]],viewDimension:Xt.TextureViewDimension[P[e+12>>2]]}}var i={entries:function(e,t){for(var i,s=[],l=0;l<e;++l)s.push({binding:P[(i=t+80*l)+4>>2],visibility:P[i+8>>2],buffer:r(i+16),sampler:n(i+40),texture:o(i+48),storageTexture:a(i+64)});return s}(P[t+8>>2],P[t+12>>2])},s=P[t+4>>2];s&&(i.label=re(s));var l=Xt.mgrDevice.get(e);return Xt.mgrBindGroupLayout.create(l.createBindGroupLayout(i))},G:(e,t)=>{var r=!!P[t+24>>2],n={label:void 0,usage:P[t+8>>2],size:4294967296*P[t+4+16>>2]+P[t+16>>2],mappedAtCreation:r},o=P[t+4>>2];o&&(n.label=re(o));var a=Xt.mgrDevice.get(e),i={},s=Xt.mgrBuffer.create(a.createBuffer(n),i);return r&&(i.mapMode=2,i.onUnmap=[]),s},Z:(e,t)=>{var r;if(t){r={label:void 0};var n=P[t+4>>2];n&&(r.label=re(n))}var o=Xt.mgrDevice.get(e);return Xt.mgrCommandEncoder.create(o.createCommandEncoder(r))},s:(e,t)=>{for(var r=P[t+8>>2],n=P[t+12>>2],o=[],a=0;a<r;++a)o.push(Xt.mgrBindGroupLayout.get(P[n+4*a>>2]));var i={label:void 0,bindGroupLayouts:o},s=P[t+4>>2];s&&(i.label=re(s));var l=Xt.mgrDevice.get(e);return Xt.mgrPipelineLayout.create(l.createPipelineLayout(i))},k:(e,t)=>{var r=(e=>{function t(e){if(e)return{operation:Xt.BlendOperation[P[e>>2]],srcFactor:Xt.BlendFactor[P[e+4>>2]],dstFactor:Xt.BlendFactor[P[e+8>>2]]}}function r(e){if(e)return{alpha:t(e+12),color:t(e+0)}}function n(e,t){for(var n,o,a=[],i=0;i<e;++i)a.push((o=void 0,0===(o=P[(n=t+16*i)+4>>2])?void 0:{format:Xt.TextureFormat[o],blend:r(P[n+8>>2]),writeMask:P[n+12>>2]}));return a}function o(e){return{compare:Xt.CompareFunction[P[e>>2]],failOp:Xt.StencilOperation[P[e+4>>2]],depthFailOp:Xt.StencilOperation[P[e+8>>2]],passOp:Xt.StencilOperation[P[e+12>>2]]}}function a(e,t){for(var r,n=[],o=0;o<e;++o)n.push((r=t+24*o,{format:Xt.VertexFormat[P[r>>2]],offset:4294967296*P[r+4+8>>2]+P[r+8>>2],shaderLocation:P[r+16>>2]}));return n}function i(e){if(e){var t=P[e+8>>2];return 1===t?null:{arrayStride:4294967296*P[e+4>>2]+P[e>>2],stepMode:Xt.VertexStepMode[t],attributes:a(P[e+12>>2],P[e+16>>2])}}}function s(e,t){if(e){for(var r=[],n=0;n<e;++n)r.push(i(t+24*n));return r}}var l={label:void 0,layout:Xt.makePipelineLayout(P[e+8>>2]),vertex:function(e){if(e){var t={module:Xt.mgrShaderModule.get(P[e+4>>2]),constants:Xt.makePipelineConstants(P[e+12>>2],P[e+16>>2]),buffers:s(P[e+20>>2],P[e+24>>2])},r=P[e+8>>2];return r&&(t.entryPoint=re(r)),t}}(e+12),primitive:function(e){if(e){var t=P[e>>2],r=t?P[t+4>>2]:0;return{topology:Xt.PrimitiveTopology[P[e+4>>2]],stripIndexFormat:Xt.IndexFormat[P[e+8>>2]],frontFace:Xt.FrontFace[P[e+12>>2]],cullMode:Xt.CullMode[P[e+16>>2]],unclippedDepth:7===r&&!!P[t+8>>2]}}}(e+40),depthStencil:function(e){if(e)return{format:Xt.TextureFormat[P[e+4>>2]],depthWriteEnabled:!!P[e+8>>2],depthCompare:Xt.CompareFunction[P[e+12>>2]],stencilFront:o(e+16),stencilBack:o(e+32),stencilReadMask:P[e+48>>2],stencilWriteMask:P[e+52>>2],depthBias:x[e+56>>2],depthBiasSlopeScale:T[e+60>>2],depthBiasClamp:T[e+64>>2]}}(P[e+60>>2]),multisample:function(e){if(e)return{count:P[e+4>>2],mask:P[e+8>>2],alphaToCoverageEnabled:!!P[e+12>>2]}}(e+64),fragment:function(e){if(e){var t={module:Xt.mgrShaderModule.get(P[e+4>>2]),constants:Xt.makePipelineConstants(P[e+12>>2],P[e+16>>2]),targets:n(P[e+20>>2],P[e+24>>2])},r=P[e+8>>2];return r&&(t.entryPoint=re(r)),t}}(P[e+80>>2])},u=P[e+4>>2];return u&&(l.label=re(u)),l})(t),n=Xt.mgrDevice.get(e);return Xt.mgrRenderPipeline.create(n.createRenderPipeline(r))},E:(e,t)=>{var r;if(t){r={label:void 0,addressModeU:Xt.AddressMode[P[t+8>>2]],addressModeV:Xt.AddressMode[P[t+12>>2]],addressModeW:Xt.AddressMode[P[t+16>>2]],magFilter:Xt.FilterMode[P[t+20>>2]],minFilter:Xt.FilterMode[P[t+24>>2]],mipmapFilter:Xt.MipmapFilterMode[P[t+28>>2]],lodMinClamp:T[t+32>>2],lodMaxClamp:T[t+36>>2],compare:Xt.CompareFunction[P[t+40>>2]]};var n=P[t+4>>2];n&&(r.label=re(n))}var o=Xt.mgrDevice.get(e);return Xt.mgrSampler.create(o.createSampler(r))},o:(e,t)=>{var r=P[t>>2],n=P[r+4>>2],o={label:void 0,code:""},a=P[t+4>>2];switch(a&&(o.label=re(a)),n){case 5:var i=P[r+8>>2],s=P[r+12>>2]>>2;o.code=P.subarray(s,s+i);break;case 6:var l=P[r+8>>2];l&&(o.code=re(l))}var u=Xt.mgrDevice.get(e);return Xt.mgrShaderModule.create(u.createShaderModule(o))},z:(e,t)=>{var r={label:void 0,size:Xt.makeExtent3D(t+16),mipLevelCount:P[t+32>>2],sampleCount:P[t+36>>2],dimension:Xt.TextureDimension[P[t+12>>2]],format:Xt.TextureFormat[P[t+28>>2]],usage:P[t+8>>2]},n=P[t+4>>2];n&&(r.label=re(n));var o=P[t+40>>2];if(o){var a=P[t+44>>2];r.viewFormats=Array.from(x.subarray(a>>2,a+4*o>>2),(function(e){return Xt.TextureFormat[e]}))}var i=Xt.mgrDevice.get(e);return Xt.mgrTexture.create(i.createTexture(r))},Ga:e=>{var t=Xt.mgrDevice.objects[e].queueId;return Xt.mgrQueue.reference(t),t},$:e=>Xt.mgrDevice.release(e),Da:(e,t)=>{var r=P[t>>2],n=P[r+8>>2],o=Kt(n).getContext("webgpu");if(!o)return 0;var a=P[t+4>>2];return a&&(o.surfaceLabelWebGPU=re(a)),Xt.mgrSurface.create(o)},V:(e,t,r,n)=>{var o;if(t&&(o={powerPreference:Xt.PowerPreference[P[t+8>>2]],forceFallbackAdapter:!!P[t+16>>2]}),!("gpu"in navigator)){var a=Y(),i=Qt("WebGPU not available on this browser (navigator.gpu is not available)");return br(r,1,0,i,n),void Z(a)}navigator.gpu.requestAdapter(o).then((e=>{wt((()=>{if(e)((e,t,n,o)=>{br(r,0,t,0,o)})(0,Xt.mgrAdapter.create(e),0,n);else{var t=Y();((e,t,n,o)=>{br(r,1,0,n,o)})(0,0,Qt("WebGPU not available on this system (requestAdapter returned null)"),n),Z(t)}}))}),(e=>{wt((()=>{var t=Y();((e,t,n,o)=>{br(r,2,0,n,o)})(0,0,Qt(e.message),n),Z(t)}))}))},r:e=>Xt.mgrPipelineLayout.release(e),Ja:e=>Xt.mgrQueue.release(e),C:(e,t,r)=>{var n=Xt.mgrQueue.get(e),o=Array.from(x.subarray(r>>2,r+4*t>>2),(e=>Xt.mgrCommandBuffer.get(e)));n.submit(o)},ia:function(e,t,r,n,o,a){var i=qt(r,n),s=Xt.mgrQueue.get(e),l=Xt.mgrBuffer.get(t),u=S.subarray(o,o+a);s.writeBuffer(l,i,u,0,a)},I:(e,t,r,n,o,a)=>{var i=Xt.mgrQueue.get(e),s=Xt.makeImageCopyTexture(t),l=Xt.makeTextureDataLayout(o),u=Xt.makeExtent3D(a),c=S.subarray(r,r+n);i.writeTexture(s,c,l,u)},K:(e,t,r,n,o,a)=>{Xt.mgrRenderPassEncoder.get(e).drawIndexed(t,r,n,o,a)},ba:e=>{Xt.mgrRenderPassEncoder.get(e).end()},aa:e=>Xt.mgrRenderPassEncoder.release(e),d:(e,t,r,n,o)=>{var a=Xt.mgrRenderPassEncoder.get(e),i=Xt.mgrBindGroup.get(r);if(0==n)a.setBindGroup(t,i);else{for(var s=[],l=0;l<n;l++,o+=4)s.push(P[o>>2]);a.setBindGroup(t,i,s)}},ga:function(e,t,r,n,o,a,i){var s=qt(n,o),l=qt(a,i),u=Xt.mgrRenderPassEncoder.get(e),c=Xt.mgrBuffer.get(t);-1==l&&(l=void 0),u.setIndexBuffer(c,Xt.IndexFormat[r],s,l)},h:(e,t)=>{var r=Xt.mgrRenderPassEncoder.get(e),n=Xt.mgrRenderPipeline.get(t);r.setPipeline(n)},p:(e,t,r,n,o)=>{Xt.mgrRenderPassEncoder.get(e).setScissorRect(t,r,n,o)},i:(e,t)=>{Xt.mgrRenderPassEncoder.get(e).setStencilReference(t)},ha:function(e,t,r,n,o,a,i){var s=qt(n,o),l=qt(a,i),u=Xt.mgrRenderPassEncoder.get(e),c=Xt.mgrBuffer.get(r);-1==l&&(l=void 0),u.setVertexBuffer(t,c,s,l)},j:e=>Xt.mgrRenderPipeline.release(e),H:e=>Xt.mgrSampler.release(e),n:e=>Xt.mgrShaderModule.release(e),Ha:(e,t)=>{var r=P[t+4>>2],n=Xt.mgrSurface.get(e),o=[P[t+28>>2],P[t+32>>2]];0!==o[0]&&(n.canvas.width=o[0]),0!==o[1]&&(n.canvas.height=o[1]);var a={device:Xt.mgrDevice.get(r),format:Xt.TextureFormat[P[t+8>>2]],usage:P[t+12>>2],alphaMode:Xt.AlphaMode[P[t+24>>2]]};n.configure(a)},Ia:(e,t)=>{var r=Xt.mgrSurface.get(e);try{var n=Xt.mgrTexture.create(r.getCurrentTexture());P[t>>2]=n,x[t+4>>2]=0,x[t+8>>2]=0}catch(e){P[t>>2]=0,x[t+4>>2]=0,x[t+8>>2]=5}},Q:e=>Xt.mgrSurface.release(e),Na:(e,t)=>{var r;if(t){var n=P[t+20>>2],o=P[t+28>>2];r={format:Xt.TextureFormat[P[t+8>>2]],dimension:Xt.TextureViewDimension[P[t+12>>2]],baseMipLevel:P[t+16>>2],mipLevelCount:4294967295===n?void 0:n,baseArrayLayer:P[t+24>>2],arrayLayerCount:4294967295===o?void 0:o,aspect:Xt.TextureAspect[P[t+32>>2]]};var a=P[t+4>>2];a&&(r.label=re(a))}var i=Xt.mgrTexture.get(e);return Xt.mgrTextureView.create(i.createView(r))},Ma:e=>Xt.mgrTexture.get(e).destroy(),Oa:e=>{var t=Xt.mgrTexture.get(e);return Xt.TextureFormat.indexOf(t.format)},ka:e=>Xt.mgrTexture.get(e).height,ua:e=>Xt.mgrTexture.get(e).width,L:e=>Xt.mgrTexture.release(e),x:e=>Xt.mgrTextureView.release(e)},rr=function(){var e,t,r,a,i={a:tr};function s(e,t){var r;return rr=e.exports,rr=bt.instrumentWasmExports(rr),b=rr.Pa,F(),rr.Ua,r=rr.Qa,M.unshift(r),L(),rr}if(j(),o.instantiateWasm)try{return o.instantiateWasm(i,s)}catch(e){w(`Module.instantiateWasm callback failed with error: ${e}`),n(e)}return N??=G(),(e=A,t=N,r=i,a=function(e){s(e.instance)},e||"function"!=typeof WebAssembly.instantiateStreaming||W(t)||H(t)||l||"function"!=typeof fetch?Q(t,r,a):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(a,(function(e){return w(`wasm streaming compile failed: ${e}`),w("falling back to ArrayBuffer instantiation"),Q(t,r,a)}))))).catch(n),{}}(),nr=e=>(nr=rr.Ra)(e),or=e=>(or=rr.Sa)(e),ar=e=>(ar=rr.Ta)(e),ir=(e,t)=>(ir=rr.Va)(e,t),sr=(e,t)=>(sr=rr.Wa)(e,t),lr=e=>(lr=rr.Xa)(e),ur=e=>(ur=rr.Ya)(e),cr=e=>(cr=rr.Za)(e),dr=()=>(dr=rr._a)(),hr=o.dynCall_iiii=(e,t,r,n)=>(hr=o.dynCall_iiii=rr.$a)(e,t,r,n),pr=o.dynCall_ii=(e,t)=>(pr=o.dynCall_ii=rr.ab)(e,t);o.dynCall_iiiii=(e,t,r,n,a)=>(o.dynCall_iiiii=rr.bb)(e,t,r,n,a),o.dynCall_iiiiiffiii=(e,t,r,n,a,i,s,l,u,c)=>(o.dynCall_iiiiiffiii=rr.cb)(e,t,r,n,a,i,s,l,u,c),o.dynCall_fii=(e,t,r)=>(o.dynCall_fii=rr.db)(e,t,r);var mr=o.dynCall_vi=(e,t)=>(mr=o.dynCall_vi=rr.eb)(e,t),fr=o.dynCall_vii=(e,t,r)=>(fr=o.dynCall_vii=rr.fb)(e,t,r),gr=o.dynCall_vijjj=(e,t,r,n,a,i,s,l)=>(gr=o.dynCall_vijjj=rr.gb)(e,t,r,n,a,i,s,l),vr=o.dynCall_iiiiii=(e,t,r,n,a,i)=>(vr=o.dynCall_iiiiii=rr.hb)(e,t,r,n,a,i),yr=o.dynCall_iii=(e,t,r)=>(yr=o.dynCall_iii=rr.ib)(e,t,r),wr=o.dynCall_viii=(e,t,r,n)=>(wr=o.dynCall_viii=rr.jb)(e,t,r,n),br=o.dynCall_viiii=(e,t,r,n,a)=>(br=o.dynCall_viiii=rr.kb)(e,t,r,n,a);o.dynCall_viiiii=(e,t,r,n,a,i)=>(o.dynCall_viiiii=rr.lb)(e,t,r,n,a,i),o.dynCall_viiiiii=(e,t,r,n,a,i,s)=>(o.dynCall_viiiiii=rr.mb)(e,t,r,n,a,i,s),o.dynCall_v=e=>(o.dynCall_v=rr.nb)(e),o.dynCall_fi=(e,t)=>(o.dynCall_fi=rr.ob)(e,t),o.dynCall_iiiiiii=(e,t,r,n,a,i,s)=>(o.dynCall_iiiiiii=rr.pb)(e,t,r,n,a,i,s),o.dynCall_iiiiiiii=(e,t,r,n,a,i,s,l)=>(o.dynCall_iiiiiiii=rr.qb)(e,t,r,n,a,i,s,l),o.dynCall_iif=(e,t,r)=>(o.dynCall_iif=rr.rb)(e,t,r),o.dynCall_iiif=(e,t,r,n)=>(o.dynCall_iiif=rr.sb)(e,t,r,n),o.dynCall_iiffff=(e,t,r,n,a,i)=>(o.dynCall_iiffff=rr.tb)(e,t,r,n,a,i),o.dynCall_iiiffff=(e,t,r,n,a,i,s)=>(o.dynCall_iiiffff=rr.ub)(e,t,r,n,a,i,s),o.dynCall_jiji=(e,t,r,n,a)=>(o.dynCall_jiji=rr.vb)(e,t,r,n,a),o.dynCall_iiiiiiiii=(e,t,r,n,a,i,s,l,u)=>(o.dynCall_iiiiiiiii=rr.wb)(e,t,r,n,a,i,s,l,u),o.dynCall_iiiff=(e,t,r,n,a)=>(o.dynCall_iiiff=rr.xb)(e,t,r,n,a),o.dynCall_iiifi=(e,t,r,n,a)=>(o.dynCall_iiifi=rr.yb)(e,t,r,n,a),o.dynCall_viijii=(e,t,r,n,a,i,s)=>(o.dynCall_viijii=rr.zb)(e,t,r,n,a,i,s),o.dynCall_iiiiij=(e,t,r,n,a,i,s)=>(o.dynCall_iiiiij=rr.Ab)(e,t,r,n,a,i,s),o.dynCall_iiiiid=(e,t,r,n,a,i)=>(o.dynCall_iiiiid=rr.Bb)(e,t,r,n,a,i),o.dynCall_iiiiijj=(e,t,r,n,a,i,s,l,u)=>(o.dynCall_iiiiijj=rr.Cb)(e,t,r,n,a,i,s,l,u),o.dynCall_iiiiiijj=(e,t,r,n,a,i,s,l,u,c)=>(o.dynCall_iiiiiijj=rr.Db)(e,t,r,n,a,i,s,l,u,c);var _r,Er=e=>(Er=rr.Eb)(e),Sr=()=>(Sr=rr.Fb)(),$r=e=>($r=rr.Gb)(e),Cr=()=>(Cr=rr.Hb)();function xr(){function e(){_r||(_r=!0,o.calledRun=!0,D||(o.noFSInit||Se.initialized||Se.init(),Se.ignorePermissions=!1,J(M),r(o),o.onRuntimeInitialized?.(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)e=o.postRun.shift(),B.unshift(e);var e;J(B)}()))}O>0||(function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)e=o.preRun.shift(),R.unshift(e);var e;J(R)}(),O>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((()=>{setTimeout((()=>o.setStatus("")),1),e()}),1)):e()))}if(o.addRunDependency=j,o.removeRunDependency=L,o.FS_createPreloadedFile=_e,o.FS_unlink=e=>Se.unlink(e),o.FS_createPath=Zt,o.FS_createDevice=er,o.FS=Se,o.FS_createDataFile=we,o.FS_createLazyFile=Yt,U=function e(){_r||xr(),_r||(U=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return xr(),a});const ve="1.0.0";function ye(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}let we;var be,_e,Ee,Se,$e,Ce;(async()=>{we=await ge({locateFile:(e,t)=>e.endsWith(".wasm")?"https://unpkg.com/@thorvg/lottie-player@latest/dist/thorvg-wasm.wasm":t+e})})(),exports.Renderer=void 0,(be=exports.Renderer||(exports.Renderer={})).SW="sw",be.WG="wg",exports.InitStatus=void 0,(_e=exports.InitStatus||(exports.InitStatus={})).IDLE="idle",_e.REQUESTED="requested",_e.INITIALIZED="initialized",exports.MimeType=void 0,(Ee=exports.MimeType||(exports.MimeType={})).JSON="json",Ee.JPG="jpg",Ee.PNG="png",Ee.SVG="svg",exports.PlayerState=void 0,(Se=exports.PlayerState||(exports.PlayerState={})).Destroyed="destroyed",Se.Error="error",Se.Loading="loading",Se.Paused="paused",Se.Playing="playing",Se.Stopped="stopped",Se.Frozen="frozen",exports.PlayMode=void 0,($e=exports.PlayMode||(exports.PlayMode={})).Bounce="bounce",$e.Normal="normal",exports.PlayerEvent=void 0,(Ce=exports.PlayerEvent||(exports.PlayerEvent={})).Complete="complete",Ce.Destroyed="destroyed",Ce.Error="error",Ce.Frame="frame",Ce.Freeze="freeze",Ce.Load="load",Ce.Loop="loop",Ce.Pause="pause",Ce.Play="play",Ce.Ready="ready",Ce.Stop="stop";const xe=async e=>{try{e=JSON.parse(e)}catch(t){const r=await(async e=>{if("string"!=typeof e)throw new Error("The url value must be a string");try{const t=new URL(e),r=await fetch(t.toString());return await r.json()}catch(e){throw new Error("An error occurred while trying to load the Lottie file from URL")}})(e);e=JSON.stringify(r)}return e},Pe=async(e,t)=>{const r=new TextEncoder;let n=e;switch(typeof n){case"object":return n instanceof ArrayBuffer?new Uint8Array(n):(n=JSON.stringify(n),r.encode(n));case"string":if("json"===t)return n=await xe(n),r.encode(n);const e=await(async e=>(await fetch(e)).arrayBuffer())(n);return new Uint8Array(e);default:throw new Error("Invalid src type")}},Te=e=>new Promise((t=>setTimeout(t,e))),ke=(e,t)=>{const r=document.createElement("a");r.setAttribute("href",URL.createObjectURL(t)),r.setAttribute("download",e),document.body.appendChild(r),r.click(),document.body.removeChild(r)};let Ae="idle";class De extends ne{src;mimeType="json";renderConfig;speed=1;autoPlay=!1;count;loop=!1;direction=1;mode="normal";intermission=1;totalFrame=0;currentFrame=0;currentState="loading";get size(){return Float32Array.from(this._TVG?.size()||[0,0])}_TVG;_canvas;_imageData;_beginTime=Date.now();_counter=1;_timer;_observer;_observable=!1;async _init(){if(!we)return;if(!this._timer)return;clearInterval(this._timer),this._timer=void 0;const e=this.renderConfig?.renderer||"sw";await(async e=>{if("sw"!==e){for(;"requested"===Ae;)await Te(100);"initialized"!==Ae&&(Ae="requested",await we.init(),Ae="initialized")}})(e),this._TVG=new we.TvgLottieAnimation(e,`#${this._canvas.id}`),this.src&&this.load(this.src,this.mimeType)}_viewport(){const{left:e,right:t,top:r,bottom:n}=this.getBoundingClientRect(),o=window.innerWidth,a=window.innerHeight;let i=0,s=0,l=this._canvas.width,u=this._canvas.height;e<0&&(i=Math.abs(e),l-=i),r<0&&(s=Math.abs(r),u-=s),t>o&&(l-=t-o),n>a&&(u-=n-a),this._TVG.viewport(i,s,l,u)}_observerCallback(e){const t=e[0],r=t.target;r._observable=t.isIntersecting,t.isIntersecting?"frozen"===r.currentState&&r.play():"playing"===r.currentState&&(r.freeze(),r.dispatchEvent(new CustomEvent("freeze")))}firstUpdated(e){this._canvas=this.querySelector(".thorvg"),this._canvas.id=`thorvg-${me().replaceAll("-","").substring(0,6)}`,this._canvas.width=this._canvas.offsetWidth,this._canvas.height=this._canvas.offsetHeight,this._observer=new IntersectionObserver(this._observerCallback),this._observer.observe(this),this._TVG?this.src&&this.load(this.src,this.mimeType):this._timer=setInterval(this._init.bind(this),100)}createRenderRoot(){return this.style.display="block",this}async _animLoop(){this._TVG&&await this._update()&&(this._render(),window.requestAnimationFrame(this._animLoop.bind(this)))}_loadBytes(e,t=""){if(!this._TVG.load(e,this.mimeType,this._canvas.width,this._canvas.height,t))throw new Error("Unable to load an image. Error: ",this._TVG.error());this._render(),this.dispatchEvent(new CustomEvent("load")),this.autoPlay&&this.play()}_flush(){this._canvas.getContext("2d").putImageData(this._imageData,0,0)}_render(){if(this.renderConfig?.enableDevicePixelRatio){const e=1+.75*(window.devicePixelRatio-1),{width:t,height:r}=this._canvas.getBoundingClientRect();this._canvas.width=t*e,this._canvas.height=r*e}this._TVG.resize(this._canvas.width,this._canvas.height),this._viewport();if(!this._TVG.update())return;if("wg"===this.renderConfig?.renderer)return void this._TVG.render();const e=this._TVG.render(),t=new Uint8ClampedArray(e.buffer,e.byteOffset,e.byteLength);t.length<1||(this._imageData=new ImageData(t,this._canvas.width,this._canvas.height),this._flush())}async _update(){if("playing"!==this.currentState)return!1;const e=this._TVG.duration(),t=Date.now()/1e3;if(this.currentFrame=(t-this._beginTime)/e*this.totalFrame*this.speed,-1===this.direction&&(this.currentFrame=this.totalFrame-this.currentFrame),1===this.direction&&this.currentFrame>=this.totalFrame||-1===this.direction&&this.currentFrame<=0){const e=this.count?"bounce"===this.mode?2*this.count:this.count:0;if(this.loop||e&&this._counter<e)return"bounce"===this.mode&&(this.direction=1===this.direction?-1:1,this.currentFrame=1===this.direction?0:this.totalFrame),this.count&&(this._counter+=1),await Te(this.intermission),this.play(),!0;this.dispatchEvent(new CustomEvent("complete")),this.currentState="stopped"}return this.dispatchEvent(new CustomEvent("frame",{detail:{frame:this.currentFrame}})),this._TVG.frame(this.currentFrame)}_frame(e){this.pause(),this.currentFrame=e,this._TVG.frame(e)}async load(e,t="json"){try{await this._init();const r=await Pe(e,t);this.dispatchEvent(new CustomEvent("ready")),this.mimeType=t,await this._loadBytes(r)}catch(e){this.currentState="error",this.dispatchEvent(new CustomEvent("error"))}}play(){if("json"===this.mimeType&&(this.totalFrame=this._TVG.totalFrame(),!(this.totalFrame<1)&&(this._beginTime=Date.now()/1e3,"playing"!==this.currentState)))return this._observable?(this.currentState="playing",void window.requestAnimationFrame(this._animLoop.bind(this))):void(this.currentState="frozen")}pause(){this.currentState="paused",this.dispatchEvent(new CustomEvent("pause"))}stop(){this.currentState="stopped",this.currentFrame=0,this._counter=1,this.seek(0),this.dispatchEvent(new CustomEvent("stop"))}freeze(){this.currentState="frozen",this.dispatchEvent(new CustomEvent("freeze"))}async seek(e){this._frame(e),await this._update(),this._render()}resize(e,t){this._canvas.width=e,this._canvas.height=t,"playing"!==this.currentState&&this._render()}destroy(){this._TVG&&(this._TVG.delete(),this._TVG=null,this.currentState="destroyed",this._observer&&(this._observer.disconnect(),this._observer=void 0),this.dispatchEvent(new CustomEvent("destroyed")),this.remove())}term(){we.term(),we=null}setLooping(e){this._TVG&&(this.loop=e)}setDirection(e){this._TVG&&(this.direction=e)}setSpeed(e){this._TVG&&(this.speed=e)}setBgColor(e){this._TVG&&(this._canvas.style.backgroundColor=e)}save2png(){this._TVG&&this._canvas.toBlob((e=>{e&&ke("output.png",e)}),"image/png")}async save2gif(e){if(!this._TVG)return;const t=await Pe(e,"json");if(!this._TVG.save(t,"gif"))throw new Error("Unable to save. Error: ",this._TVG.error());const r=we.FS.readFile("output.gif");if(r.length<6)throw new Error("Unable to save the GIF data. The generated file size is invalid.");const n=new Blob([r],{type:"application/octet-stream"});ke("output.gif",n)}getVersion(){return{THORVG_VERSION:ve}}render(){return N`
|
|
2
2
|
<canvas class="thorvg" style="width: 100%; height: 100%;" />
|
|
3
|
-
`}}ye([se({type:String})],
|
|
3
|
+
`}}ye([se({type:String})],De.prototype,"src",void 0),ye([se({type:exports.MimeType})],De.prototype,"mimeType",void 0),ye([se({type:Object})],De.prototype,"renderConfig",void 0),ye([se({type:Number})],De.prototype,"speed",void 0),ye([se({type:Boolean})],De.prototype,"autoPlay",void 0),ye([se({type:Number})],De.prototype,"count",void 0),ye([se({type:Boolean})],De.prototype,"loop",void 0),ye([se({type:Number})],De.prototype,"direction",void 0),ye([se()],De.prototype,"mode",void 0),ye([se()],De.prototype,"intermission",void 0),ye([se({type:Number})],De.prototype,"totalFrame",void 0),ye([se({type:Number})],De.prototype,"currentFrame",void 0),ye([se({type:Number})],De.prototype,"currentState",void 0),ye([se({type:Float32Array})],De.prototype,"size",null),De=ye([(e=>(t,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)})("lottie-player")],De);var Fe=Object.freeze({__proto__:null});exports.LottiePlayer=De;
|
|
4
4
|
//# sourceMappingURL=lottie-player.cjs.js.map
|