@thorvg/lottie-player 1.0.0-pre.27 → 1.0.0-pre.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -11
- package/dist/gl/lottie-player.cjs.js +1 -1
- package/dist/gl/lottie-player.esm.js +1 -1
- package/dist/gl/lottie-player.js +1 -1
- package/dist/gl/thorvg.wasm +0 -0
- package/dist/gl-lite/lottie-player.cjs.js +1 -1
- package/dist/gl-lite/lottie-player.esm.js +1 -1
- package/dist/gl-lite/lottie-player.js +1 -1
- package/dist/gl-lite/thorvg.wasm +0 -0
- package/dist/lottie-player.cjs.js +1 -1
- package/dist/lottie-player.d.ts +6 -0
- package/dist/lottie-player.esm.js +1 -1
- package/dist/lottie-player.js +1 -1
- package/dist/sw/lottie-player.cjs.js +1 -1
- package/dist/sw/lottie-player.esm.js +1 -1
- package/dist/sw/lottie-player.js +1 -1
- package/dist/sw/thorvg.wasm +0 -0
- package/dist/sw-lite/lottie-player.cjs.js +1 -1
- package/dist/sw-lite/lottie-player.esm.js +2 -2
- package/dist/sw-lite/lottie-player.js +2 -2
- package/dist/sw-lite/thorvg.wasm +0 -0
- package/dist/thorvg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -120,19 +120,19 @@ export default function Home() {
|
|
|
120
120
|
ThorVG Lottie Player provides multiple presets optimized for different use cases. Each preset can be selected based on bundle size and performance requirements.
|
|
121
121
|
|
|
122
122
|
### Standard Presets
|
|
123
|
-
- **
|
|
124
|
-
- **
|
|
123
|
+
- **SW**: A CPU-based renderer with full Lottie specification support
|
|
124
|
+
- **GL**: A WebGL accelerated renderer with full Lottie specification support
|
|
125
125
|
|
|
126
126
|
### Lite Presets
|
|
127
|
-
- **
|
|
128
|
-
- **
|
|
127
|
+
- **SW-Lite**: A CPU-based renderer that supports basic Lottie specification (PNG only; Fonts and Expressions are not supported)
|
|
128
|
+
- **GL-Lite**: A WebGL accelerated renderer that supports basic Lottie specification (PNG only; Fonts and Expressions are not supported)
|
|
129
129
|
|
|
130
130
|
### Preset Comparison
|
|
131
131
|
|
|
132
|
-
| Preset | Renderer |
|
|
132
|
+
| Preset | Renderer | Features | Bundle Size | Use Case |
|
|
133
133
|
|--------|----------|---------|-------------|----------|
|
|
134
|
-
| `sw` | Software | lottie, jpg, png, webp, ttf | ~687KB | Full-featured applications with CPU rendering |
|
|
135
|
-
| `gl` | WebGL | lottie, jpg, png, webp, ttf | ~694KB | Full-featured applications with WebGL acceleration |
|
|
134
|
+
| `sw` | Software | lottie + expressions, jpg, png, webp, ttf | ~687KB | Full-featured applications with CPU rendering |
|
|
135
|
+
| `gl` | WebGL | lottie + expressions, jpg, png, webp, ttf | ~694KB | Full-featured applications with WebGL acceleration |
|
|
136
136
|
| `sw-lite` | Software | lottie, png | ~288KB | Lightweight applications with CPU rendering |
|
|
137
137
|
| `gl-lite` | WebGL | lottie, png | ~294KB | Lightweight applications with WebGL acceleration |
|
|
138
138
|
|
|
@@ -260,7 +260,7 @@ player.addEventListener('load', () => {
|
|
|
260
260
|
**Parameters**
|
|
261
261
|
| Name | Type | Description
|
|
262
262
|
| --- | --- | --- |
|
|
263
|
-
|
|
|
263
|
+
| frame | `number` | The frame number to move, shouldn't be less than 0 and greater than `totalFrame`
|
|
264
264
|
|
|
265
265
|
**Return Type** : `void`
|
|
266
266
|
|
|
@@ -269,7 +269,7 @@ player.addEventListener('load', () => {
|
|
|
269
269
|
|
|
270
270
|
---
|
|
271
271
|
|
|
272
|
-
**Method** : `
|
|
272
|
+
**Method** : `destroy()`
|
|
273
273
|
|
|
274
274
|
**Purpose** : Destroy animation and lottie-player element
|
|
275
275
|
|
|
@@ -320,7 +320,7 @@ player.addEventListener('load', () => {
|
|
|
320
320
|
|
|
321
321
|
**Method** : `setBgColor(value: string)`
|
|
322
322
|
|
|
323
|
-
**Purpose** : Set a
|
|
323
|
+
**Purpose** : Set a background color
|
|
324
324
|
|
|
325
325
|
**Parameters**
|
|
326
326
|
| Name | Type | Description
|
|
@@ -331,6 +331,19 @@ player.addEventListener('load', () => {
|
|
|
331
331
|
|
|
332
332
|
---
|
|
333
333
|
|
|
334
|
+
**Method** : `setQuality(value: number)`
|
|
335
|
+
|
|
336
|
+
**Purpose** : Set rendering quality for animations
|
|
337
|
+
|
|
338
|
+
**Parameters**
|
|
339
|
+
| Name | Type | Description
|
|
340
|
+
| --- | --- | --- |
|
|
341
|
+
| value | `number` | Quality value (1-100). Higher values are likely to support better quality but may impact performance.
|
|
342
|
+
|
|
343
|
+
**Return Type** : `void`
|
|
344
|
+
|
|
345
|
+
---
|
|
346
|
+
|
|
334
347
|
**Method** : `save(target: ExportableType)`
|
|
335
348
|
|
|
336
349
|
**Purpose** : Export current animation to other file type
|
|
@@ -338,7 +351,7 @@ player.addEventListener('load', () => {
|
|
|
338
351
|
**Parameters**
|
|
339
352
|
| Name | Type | Description
|
|
340
353
|
| --- | --- | --- |
|
|
341
|
-
|
|
|
354
|
+
| target | `ExportableType` | File type to export
|
|
342
355
|
|
|
343
356
|
**Return Type** : `void`
|
|
344
357
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),n=new WeakMap;let i=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const r=this.t;if(t&&void 0===e){const t=void 0!==r&&1===r.length;t&&(e=n.get(r)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t&&n.set(r,e))}return e}toString(){return this.cssText}};const o=(r,n)=>{if(t)r.adoptedStyleSheets=n.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const t of n){const n=document.createElement("style"),i=e.litNonce;void 0!==i&&n.setAttribute("nonce",i),n.textContent=t.cssText,r.appendChild(n)}},a=t?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return(e=>new i("string"==typeof e?e:e+"",void 0,r))(t)})(e):e,{is:s,defineProperty:c,getOwnPropertyDescriptor:h,getOwnPropertyNames:l,getOwnPropertySymbols:u,getPrototypeOf:d}=Object,f=globalThis,b=f.trustedTypes,p=b?b.emptyScript:"",m=f.reactiveElementPolyfillSupport,v=(e,t)=>e,w={toAttribute(e,t){switch(t){case Boolean:e=e?p: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}},g=(e,t)=>!s(e,t),y={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:g};Symbol.metadata??=Symbol("metadata"),f.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=y){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&&c(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){const{get:n,set:i}=h(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){const o=n?.call(this);i.call(this,t),this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??y}static _$Ei(){if(this.hasOwnProperty(v("elementProperties")))return;const e=d(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=[...l(e),...u(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(a(e))}else void 0!==e&&t.push(a(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 o(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 i=(void 0!==r.converter?.toAttribute?r.converter:w).toAttribute(t,r.type);this._$Em=e,null==i?this.removeAttribute(n):this.setAttribute(n,i),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),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:w;this._$Em=n,this[n]=i.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(r??=this.constructor.getPropertyOptions(e),!(r.hasChanged??g)(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,m?.({ReactiveElement:_}),(f.reactiveElementVersions??=[]).push("2.0.4");const E={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:g},A=(e=E,t,r)=>{const{kind:n,metadata:i}=r;let o=globalThis.litPropertyMetadata.get(i);if(void 0===o&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(r.name,e),"accessor"===n){const{name:n}=r;return{set(r){const i=t.get.call(this);t.set.call(this,r),this.requestUpdate(n,i,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 i=this[n];t.call(this,r),this.requestUpdate(n,i,e)}}throw Error("Unsupported decorator location: "+n)};function $(e){return(t,r)=>"object"==typeof r?A(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)}const S=globalThis,k=S.trustedTypes,T=k?k.createPolicy("lit-html",{createHTML:e=>e}):void 0,x="$lit$",P=`lit$${Math.random().toFixed(9).slice(2)}$`,C="?"+P,j=`<${C}>`,F=document,O=()=>F.createComment(""),R=e=>null===e||"object"!=typeof e&&"function"!=typeof e,U=Array.isArray,L="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,M=/>/g,W=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,I=/"/g,z=/^(?:script|style|textarea|title)$/i,G=(e,...t)=>({_$litType$:1,strings:e,values:t}),H=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),q=new WeakMap,X=F.createTreeWalker(F,129);function J(e,t){if(!U(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==T?T.createHTML(t):t}class K{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let i=0,o=0;const a=e.length-1,s=this.parts,[c,h]=((e,t)=>{const r=e.length-1,n=[];let i,o=2===t?"<svg>":3===t?"<math>":"",a=B;for(let t=0;t<r;t++){const r=e[t];let s,c,h=-1,l=0;for(;l<r.length&&(a.lastIndex=l,c=a.exec(r),null!==c);)l=a.lastIndex,a===B?"!--"===c[1]?a=D:void 0!==c[1]?a=M:void 0!==c[2]?(z.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=W):void 0!==c[3]&&(a=W):a===W?">"===c[0]?(a=i??B,h=-1):void 0===c[1]?h=-2:(h=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?W:'"'===c[3]?I:N):a===I||a===N?a=W:a===D||a===M?a=B:(a=W,i=void 0);const u=a===W&&e[t+1].startsWith("/>")?" ":"";o+=a===B?r+j:h>=0?(n.push(s),r.slice(0,h)+x+r.slice(h)+P+u):r+P+(-2===h?t:u)}return[J(e,o+(e[r]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),n]})(e,t);if(this.el=K.createElement(c,r),X.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=X.nextNode())&&s.length<a;){if(1===n.nodeType){if(n.hasAttributes())for(const e of n.getAttributeNames())if(e.endsWith(x)){const t=h[o++],r=n.getAttribute(e).split(P),a=/([.?@])?(.*)/.exec(t);s.push({type:1,index:i,name:a[2],strings:r,ctor:"."===a[1]?te:"?"===a[1]?re:"@"===a[1]?ne:ee}),n.removeAttribute(e)}else e.startsWith(P)&&(s.push({type:6,index:i}),n.removeAttribute(e));if(z.test(n.tagName)){const e=n.textContent.split(P),t=e.length-1;if(t>0){n.textContent=k?k.emptyScript:"";for(let r=0;r<t;r++)n.append(e[r],O()),X.nextNode(),s.push({type:2,index:++i});n.append(e[t],O())}}}else if(8===n.nodeType)if(n.data===C)s.push({type:2,index:i});else{let e=-1;for(;-1!==(e=n.data.indexOf(P,e+1));)s.push({type:7,index:i}),e+=P.length-1}i++}}static createElement(e,t){const r=F.createElement("template");return r.innerHTML=e,r}}function Y(e,t,r=e,n){if(t===H)return t;let i=void 0!==n?r.o?.[n]:r.l;const o=R(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),void 0===o?i=void 0:(i=new o(e),i._$AT(e,r,n)),void 0!==n?(r.o??=[])[n]=i:r.l=i),void 0!==i&&(t=Y(e,i._$AS(e,t.values),i,n)),t}class Z{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??F).importNode(t,!0);X.currentNode=n;let i=X.nextNode(),o=0,a=0,s=r[0];for(;void 0!==s;){if(o===s.index){let t;2===s.type?t=new Q(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new ie(i,this,e)),this._$AV.push(t),s=r[++a]}o!==s?.index&&(i=X.nextNode(),o++)}return X.currentNode=F,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 Q{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=Y(this,e,t),R(e)?e===V||null==e||""===e?(this._$AH!==V&&this._$AR(),this._$AH=V):e!==this._$AH&&e!==H&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>U(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&&R(this._$AH)?this._$AA.nextSibling.data=e:this.T(F.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=K.createElement(J(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new Z(n,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=q.get(e.strings);return void 0===t&&q.set(e.strings,t=new K(e)),t}k(e){U(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const i of e)n===t.length?t.push(r=new Q(this.O(O()),this.O(O()),this,this.options)):r=t[n],r._$AI(i),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 ee{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,i){this.type=1,this._$AH=V,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,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 i=this.strings;let o=!1;if(void 0===i)e=Y(this,e,t,0),o=!R(e)||e!==this._$AH&&e!==H,o&&(this._$AH=e);else{const n=e;let a,s;for(e=i[0],a=0;a<i.length-1;a++)s=Y(this,n[r+a],t,a),s===H&&(s=this._$AH[a]),o||=!R(s)||s!==this._$AH[a],s===V?e=V:e!==V&&(e+=(s??"")+i[a+1]),this._$AH[a]=s}o&&!n&&this.j(e)}j(e){e===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class te extends ee{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===V?void 0:e}}class re extends ee{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==V)}}class ne extends ee{constructor(e,t,r,n,i){super(e,t,r,n,i),this.type=5}_$AI(e,t=this){if((e=Y(this,e,t,0)??V)===H)return;const r=this._$AH,n=e===V&&r!==V||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==V&&(r===V||n);n&&this.element.removeEventListener(this.name,this,r),i&&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 ie{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){Y(this,e)}}const oe=S.litHtmlPolyfillSupport;oe?.(K,Q),(S.litHtmlVersions??=[]).push("3.2.0");class ae 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 i=n._$litPart$;if(void 0===i){const e=r?.renderBefore??null;n._$litPart$=i=new Q(t.insertBefore(O(),e),e,void 0,r??{})}return i._$AI(e),i})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return H}}ae._$litElement$=!0,ae.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ae});const se=globalThis.litElementPolyfillSupport;se?.({LitElement:ae}),(globalThis.litElementVersions??=[]).push("4.1.0");var ce,he=(ce=import.meta.url,async function(e={}){var t,r,n=e,i=new Promise(((e,n)=>{t=e,r=n})),o="object"==typeof window,a="undefined"!=typeof WorkerGlobalScope,s="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&"renderer"!=process.type;if(s){const{createRequire:e}=await Promise.resolve().then((function(){return Ae}));let t=import.meta.url;t.startsWith("data:")&&(t="/");var c=e(t)}var h,l,u=Object.assign({},n),d=(e,t)=>{throw t},f="";if(s){var b=c("fs"),p=c("path");import.meta.url.startsWith("data:")||(f=p.dirname(c("url").fileURLToPath(import.meta.url))+"/"),l=e=>(e=I(e)?new URL(e):e,b.readFileSync(e)),h=async e=>(e=I(e)?new URL(e):e,b.readFileSync(e,void 0)),process.argv.slice(2),d=(e,t)=>{throw process.exitCode=e,t}}else(o||a)&&(a?f=self.location.href:"undefined"!=typeof document&&document.currentScript&&(f=document.currentScript.src),ce&&(f=ce),f=f.startsWith("blob:")?"":f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1),a&&(l=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),h=async e=>{if(I(e))return 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)}));var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw Error(t.status+" : "+t.url)});var m=n.print||void 0,v=n.printErr||void 0;Object.assign(n,u),u=null;var w,g,y,_,E,A,$,S,k,T,x=n.wasmBinary,P=!1;function C(){var e=w.buffer;n.HEAP8=y=new Int8Array(e),n.HEAP16=E=new Int16Array(e),n.HEAPU8=_=new Uint8Array(e),n.HEAPU16=A=new Uint16Array(e),n.HEAP32=$=new Int32Array(e),n.HEAPU32=S=new Uint32Array(e),n.HEAPF32=k=new Float32Array(e),n.HEAPF64=T=new Float64Array(e)}var j=[],F=[],O=[];function R(){var e=n.preRun.shift();j.unshift(e)}var U=0,L=null;function B(){U++,n.monitorRunDependencies?.(U)}function D(){if(U--,n.monitorRunDependencies?.(U),0==U&&L){var e=L;L=null,e()}}function M(e){throw n.onAbort?.(e),v(e="Aborted("+e+")"),P=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),r(e),e}var W,N=e=>e.startsWith("data:application/octet-stream;base64,"),I=e=>e.startsWith("file://");class z{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var G,H,V,q=e=>{for(;0<e.length;)e.shift()(n)},X=n.noExitRuntime||!0,J="undefined"!=typeof TextDecoder?new TextDecoder:void 0,K=(e,t=0,r=NaN)=>{var n=t+r;for(r=t;e[r]&&!(r>=n);)++r;if(16<r-t&&e.buffer&&J)return J.decode(e.subarray(t,r));for(n="";t<r;){var i=e[t++];if(128&i){var o=63&e[t++];if(192==(224&i))n+=String.fromCharCode((31&i)<<6|o);else{var a=63&e[t++];65536>(i=224==(240&i)?(15&i)<<12|o<<6|a:(7&i)<<18|o<<12|a<<6|63&e[t++])?n+=String.fromCharCode(i):(i-=65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else n+=String.fromCharCode(i)}return n},Y=e=>{for(var t="";_[e];)t+=G[_[e++]];return t},Z={},Q={},ee={},te=e=>{throw new H(e)},re=(e,t,r)=>{function n(t){if((t=r(t)).length!==e.length)throw new V("Mismatched type converter count");for(var n=0;n<e.length;++n)ne(e[n],t[n])}e.forEach((e=>ee[e]=t));var i=Array(t.length),o=[],a=0;t.forEach(((e,t)=>{Q.hasOwnProperty(e)?i[t]=Q[e]:(o.push(e),Z.hasOwnProperty(e)||(Z[e]=[]),Z[e].push((()=>{i[t]=Q[e],++a===o.length&&n(i)})))})),0===o.length&&n(i)};function ne(e,t,r={}){return function(e,t,r={}){var n=t.name;if(!e)throw new H(`type "${n}" must have a positive integer typeid pointer`);if(Q.hasOwnProperty(e)){if(r.vd)return;throw new H(`Cannot register type '${n}' twice`)}Q[e]=t,delete ee[e],Z.hasOwnProperty(e)&&(t=Z[e],delete Z[e],t.forEach((e=>e())))}(e,t,r)}var ie=e=>{throw new H(e.hb.pb.mb.name+" instance already deleted")},oe=!1,ae=()=>{},se=(e,t,r)=>t===r?e:void 0===r.tb||null===(e=se(e,t,r.tb))?null:r.md(e),he={},le={},ue=(e,t)=>{if(!t.pb||!t.lb)throw new V("makeClassHandle requires ptr and ptrType");if(!!t.wb!=!!t.sb)throw new V("Both smartPtrType and smartPtr must be specified");return t.count={value:1},de(Object.create(e,{hb:{value:t,writable:!0}}))},de=e=>"undefined"==typeof FinalizationRegistry?(de=e=>e,e):(oe=new FinalizationRegistry((e=>{--(e=e.hb).count.value,0===e.count.value&&(e.sb?e.wb.Gb(e.sb):e.pb.mb.Gb(e.lb))})),de=e=>{var t=e.hb;return t.sb&&oe.register(e,{hb:t},e),e},ae=e=>{oe.unregister(e)},de(e));function fe(){}var be=(e,t)=>Object.defineProperty(t,"name",{value:e}),pe=(e,t,r)=>{if(void 0===e[t].qb){var n=e[t];e[t]=function(...n){if(!e[t].qb.hasOwnProperty(n.length))throw new H(`Function '${r}' called with an invalid number of arguments (${n.length}) - expects one of (${e[t].qb})!`);return e[t].qb[n.length].apply(this,n)},e[t].qb=[],e[t].qb[n.Tb]=n}},me=(e,t,r)=>{if(n.hasOwnProperty(e)){if(void 0===r||void 0!==n[e].qb&&void 0!==n[e].qb[r])throw new H(`Cannot register public name '${e}' twice`);if(pe(n,e,e),n[e].qb.hasOwnProperty(r))throw new H(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`);n[e].qb[r]=t}else n[e]=t,n[e].Tb=r};function ve(e,t,r,n,i,o,a,s){this.name=e,this.constructor=t,this.Nb=r,this.Gb=n,this.tb=i,this.qd=o,this.ac=a,this.md=s,this.Dd=[]}var we=(e,t,r)=>{for(;t!==r;){if(!t.ac)throw new H(`Expected null or instance of ${r.name}, got an instance of ${t.name}`);e=t.ac(e),t=t.tb}return e};function ge(e,t){if(null===t){if(this.sc)throw new H(`null is not a valid ${this.name}`);return 0}if(!t.hb)throw new H(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.hb.lb)throw new H(`Cannot pass deleted object as a pointer of type ${this.name}`);return we(t.hb.lb,t.hb.pb.mb,this.mb)}function ye(e,t){if(null===t){if(this.sc)throw new H(`null is not a valid ${this.name}`);if(this.fc){var r=this.Ed();return null!==e&&e.push(this.Gb,r),r}return 0}if(!t||!t.hb)throw new H(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.hb.lb)throw new H(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.ec&&t.hb.pb.ec)throw new H(`Cannot convert argument of type ${t.hb.wb?t.hb.wb.name:t.hb.pb.name} to parameter type ${this.name}`);if(r=we(t.hb.lb,t.hb.pb.mb,this.mb),this.fc){if(void 0===t.hb.sb)throw new H("Passing raw pointer to smart pointer is illegal");switch(this.Gd){case 0:if(t.hb.wb!==this)throw new H(`Cannot convert argument of type ${t.hb.wb?t.hb.wb.name:t.hb.pb.name} to parameter type ${this.name}`);r=t.hb.sb;break;case 1:r=t.hb.sb;break;case 2:if(t.hb.wb===this)r=t.hb.sb;else{var n=t.clone();r=this.Fd(r,ze((()=>n.delete()))),null!==e&&e.push(this.Gb,r)}break;default:throw new H("Unsupporting sharing policy")}}return r}function _e(e,t){if(null===t){if(this.sc)throw new H(`null is not a valid ${this.name}`);return 0}if(!t.hb)throw new H(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.hb.lb)throw new H(`Cannot pass deleted object as a pointer of type ${this.name}`);if(t.hb.pb.ec)throw new H(`Cannot convert argument of type ${t.hb.pb.name} to parameter type ${this.name}`);return we(t.hb.lb,t.hb.pb.mb,this.mb)}function Ee(e){return this.fromWireType(S[e>>2])}function $e(e,t,r,n,i,o,a,s,c,h,l){this.name=e,this.mb=t,this.sc=r,this.ec=n,this.fc=i,this.Cd=o,this.Gd=a,this.Uc=s,this.Ed=c,this.Fd=h,this.Gb=l,i||void 0!==t.tb?this.toWireType=ye:(this.toWireType=n?ge:_e,this.zb=null)}var Se,ke,Te=(e,t,r)=>{if(!n.hasOwnProperty(e))throw new V("Replacing nonexistent public symbol");void 0!==n[e].qb&&void 0!==r?n[e].qb[r]=t:(n[e]=t,n[e].Tb=r)},xe=(e,t)=>{var r=(e=Y(e)).includes("j")?((e,t)=>(...r)=>((e,t,r=[])=>(e.includes("j")?(e=e.replace(/p/g,"i"),t=(0,n["dynCall_"+e])(t,...r)):t=Se.get(t)(...r),t))(e,t,r))(e,t):Se.get(t);if("function"!=typeof r)throw new H(`unknown function pointer with signature ${e}: ${t}`);return r},Pe=e=>{e=$r(e);var t=Y(e);return Er(e),t},Ce=(e,t)=>{var r=[],n={};throw t.forEach((function e(t){n[t]||Q[t]||(ee[t]?ee[t].forEach(e):(r.push(t),n[t]=!0))})),new ke(`${e}: `+r.map(Pe).join([", "]))},je=(e,t)=>{for(var r=[],n=0;n<e;n++)r.push(S[t+4*n>>2]);return r},Fe=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function Oe(e){for(var t=1;t<e.length;++t)if(null!==e[t]&&void 0===e[t].zb)return!0;return!1}function Re(e,t,r,n,i,o){var a=t.length;if(2>a)throw new H("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=null!==t[1]&&null!==r,c=Oe(t);for(r="void"!==t[0].name,n=[e,te,n,i,Fe,t[0],t[1]],i=0;i<a-2;++i)n.push(t[i+2]);if(!c)for(i=s?1:2;i<t.length;++i)null!==t[i].zb&&n.push(t[i].zb);c=Oe(t),i=t.length-2;var h=[],l=["fn"];for(s&&l.push("thisWired"),a=0;a<i;++a)h.push(`arg${a}`),l.push(`arg${a}Wired`);h=h.join(","),l=l.join(","),h=`return function (${h}) {\n`,c&&(h+="var destructors = [];\n");var u=c?"destructors":"null",d="humanName throwBindingError invoker fn runDestructors retType classParam".split(" ");for(s&&(h+=`var thisWired = classParam['toWireType'](${u}, this);\n`),a=0;a<i;++a)h+=`var arg${a}Wired = argType${a}['toWireType'](${u}, arg${a});\n`,d.push(`argType${a}`);if(h+=(r||o?"var rv = ":"")+`invoker(${l});\n`,c)h+="runDestructors(destructors);\n";else for(a=s?1:2;a<t.length;++a)o=1===a?"thisWired":"arg"+(a-2)+"Wired",null!==t[a].zb&&(h+=`${o}_dtor(${o});\n`,d.push(`${o}_dtor`));r&&(h+="var ret = retType['fromWireType'](rv);\nreturn ret;\n");let[f,b]=[d,h+"}\n"];return f.push(b),t=function(e){var t=Function;if(!(t instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof t} which is not a function`);var r=be(t.name||"unknownFunctionName",(function(){}));return r.prototype=t.prototype,r=new r,(e=t.apply(r,e))instanceof Object?e:r}(f)(...n),be(e,t)}var Ue,Le,Be,De,Me=e=>{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e},We=[],Ne=[],Ie=e=>{9<e&&0==--Ne[e+1]&&(Ne[e]=void 0,We.push(e))},ze=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const t=We.pop()||Ne.length;return Ne[t]=e,Ne[t+1]=1,t}},Ge={name:"emscripten::val",fromWireType:e=>{if(!e)throw new H("Cannot use deleted val. handle = "+e);var t=Ne[e];return Ie(e),t},toWireType:(e,t)=>ze(t),Fb:8,readValueFromPointer:Ee,zb:null},He=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},Ve=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(k[e>>2])};case 8:return function(e){return this.fromWireType(T[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},qe=(e,t,r)=>{switch(t){case 1:return r?e=>y[e]:e=>_[e];case 2:return r?e=>E[e>>1]:e=>A[e>>1];case 4:return r?e=>$[e>>2]:e=>S[e>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Xe=(e,t,r,n)=>{if(!(0<n))return 0;var i=r;n=r+n-1;for(var o=0;o<e.length;++o){var a=e.charCodeAt(o);if(55296<=a&&57343>=a&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),127>=a){if(r>=n)break;t[r++]=a}else{if(2047>=a){if(r+1>=n)break;t[r++]=192|a>>6}else{if(65535>=a){if(r+2>=n)break;t[r++]=224|a>>12}else{if(r+3>=n)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63}t[r++]=128|a>>6&63}t[r++]=128|63&a}}return t[r]=0,r-i},Je=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);127>=n?t++:2047>=n?t+=2:55296<=n&&57343>=n?(t+=4,++r):t+=3}return t},Ke="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Ye=(e,t)=>{for(var r=e>>1,n=r+t/2;!(r>=n)&&A[r];)++r;if(32<(r<<=1)-e&&Ke)return Ke.decode(_.subarray(e,r));for(r="",n=0;!(n>=t/2);++n){var i=E[e+2*n>>1];if(0==i)break;r+=String.fromCharCode(i)}return r},Ze=(e,t,r)=>{if(r??=2147483647,2>r)return 0;var n=t;r=(r-=2)<2*e.length?r/2:e.length;for(var i=0;i<r;++i)E[t>>1]=e.charCodeAt(i),t+=2;return E[t>>1]=0,t-n},Qe=e=>2*e.length,et=(e,t)=>{for(var r=0,n="";!(r>=t/4);){var i=$[e+4*r>>2];if(0==i)break;++r,65536<=i?(i-=65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i)):n+=String.fromCharCode(i)}return n},tt=(e,t,r)=>{if(r??=2147483647,4>r)return 0;var n=t;r=n+r-4;for(var i=0;i<e.length;++i){var o=e.charCodeAt(i);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++i)),$[t>>2]=o,(t+=4)+4>r)break}return $[t>>2]=0,t-n},rt=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);55296<=n&&57343>=n&&++r,t+=4}return t},nt=0,it={},ot=e=>{g=e,X||0<nt||(n.onExit?.(e),P=!0),d(e,new z(e))},at=e=>{var t="ANGLE_instanced_arrays EXT_blend_minmax EXT_disjoint_timer_query EXT_frag_depth EXT_shader_texture_lod EXT_sRGB OES_element_index_uint OES_fbo_render_mipmap OES_standard_derivatives OES_texture_float OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_depth_texture WEBGL_draw_buffers EXT_color_buffer_float EXT_conservative_depth EXT_disjoint_timer_query_webgl2 EXT_texture_norm16 NV_shader_noperspective_interpolation WEBGL_clip_cull_distance EXT_clip_control EXT_color_buffer_half_float EXT_depth_clamp EXT_float_blend EXT_polygon_offset_clamp EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic KHR_parallel_shader_compile OES_texture_float_linear WEBGL_blend_func_extended WEBGL_compressed_texture_astc WEBGL_compressed_texture_etc WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context WEBGL_multi_draw WEBGL_polygon_mode".split(" ");return(e.getSupportedExtensions()||[]).filter((e=>t.includes(e)))},st=1,ct=[],ht=[],lt=[],ut=[],dt=[],ft=[],bt=[],pt=[],mt=[1,1,2,2,4,4,4,2,3,4,8],vt=e=>{for(var t=st++,r=e.length;r<t;r++)e[r]=null;return t},wt=(e,t,r,n)=>{for(var i=0;i<e;i++){var o=Ue[r](),a=o&&vt(n);o?(o.name=a,n[a]=o):Le||=1282,$[t+4*i>>2]=a}},gt=[],yt={},_t=["default","low-power","high-performance"],Et=[0,"undefined"!=typeof document?document:0,"undefined"!=typeof window?window:0],At=e=>"]"==e.slice(-1)&&e.lastIndexOf("["),$t=[],St=e=>0==(e-=5120)?y:1==e?_:2==e?E:4==e?$:6==e?k:5==e||28922==e||28520==e||30779==e||30782==e?S:A,kt=e=>{var t=Ue.ld;if(t){var r=t.$b[e];return"number"==typeof r&&(t.$b[e]=r=Ue.getUniformLocation(t,t.Yc[e]+(0<r?`[${r}]`:""))),r}Le||=1282},Tt=[],xt=e=>(xt=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);if(s)try{var e=c("crypto");if(e.randomFillSync)return t=>e.randomFillSync(t);var t=e.randomBytes;return e=>(e.set(t(e.byteLength)),e)}catch(e){}M("initRandomDevice")})())(e),Pt=(e,t)=>{for(var r=0,n=e.length-1;0<=n;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},Ct=e=>{var t="/"===e.charAt(0),r="/"===e.substr(-1);return(e=Pt(e.split("/").filter((e=>!!e)),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},jt=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],e||t?(t&&=t.substr(0,t.length-1),e+t):"."},Ft=e=>{if("/"===e)return"/";var t=(e=(e=Ct(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},Ot=(...e)=>{for(var t="",r=!1,n=e.length-1;-1<=n&&!r;n--){if("string"!=typeof(r=0<=n?e[n]:ur.cwd()))throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,r="/"===r.charAt(0)}return t=Pt(t.split("/").filter((e=>!!e)),!r).join("/"),(r?"/":"")+t||"."},Rt=(e,t)=>{function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;0<=r&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=Ot(e).substr(1),t=Ot(t).substr(1),e=r(e.split("/")),t=r(t.split("/"));for(var n=Math.min(e.length,t.length),i=n,o=0;o<n;o++)if(e[o]!==t[o]){i=o;break}for(n=[],o=i;o<e.length;o++)n.push("..");return(n=n.concat(t.slice(i))).join("/")},Ut=[];function Lt(e){var t=Array(Je(e)+1);return e=Xe(e,t,0,t.length),t.length=e,t}var Bt=[];function Dt(e,t){Bt[e]={input:[],output:[],Pb:t},Xt(e,Mt)}var Mt={open(e){var t=Bt[e.node.rdev];if(!t)throw new ur.gb(43);e.tty=t,e.seekable=!1},close(e){e.tty.Pb.fsync(e.tty)},fsync(e){e.tty.Pb.fsync(e.tty)},read(e,t,r,n){if(!e.tty||!e.tty.Pb.Kc)throw new ur.gb(60);for(var i=0,o=0;o<n;o++){try{var a=e.tty.Pb.Kc(e.tty)}catch(e){throw new ur.gb(29)}if(void 0===a&&0===i)throw new ur.gb(6);if(null==a)break;i++,t[r+o]=a}return i&&(e.node.atime=Date.now()),i},write(e,t,r,n){if(!e.tty||!e.tty.Pb.wc)throw new ur.gb(60);try{for(var i=0;i<n;i++)e.tty.Pb.wc(e.tty,t[r+i])}catch(e){throw new ur.gb(29)}return n&&(e.node.mtime=e.node.ctime=Date.now()),i}},Wt={Kc(){e:{if(!Ut.length){var e=null;if(s){var t=Buffer.alloc(256),r=0,n=process.stdin.fd;try{r=b.readSync(n,t,0,256)}catch(e){if(!e.toString().includes("EOF"))throw e;r=0}0<r&&(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){e=null;break e}Ut=Lt(e)}e=Ut.shift()}return e},wc(e,t){null===t||10===t?(m(K(e.output)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&0<e.output.length&&(m(K(e.output)),e.output=[])},de:()=>({Od:25856,Qd:5,Nd:191,Pd:35387,Md:[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]}),ee:()=>0,fe:()=>[24,80]},Nt={wc(e,t){null===t||10===t?(v(K(e.output)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&0<e.output.length&&(v(K(e.output)),e.output=[])}};function It(e,t){var r=e.kb?e.kb.length:0;r>=t||(t=Math.max(t,r*(1048576>r?2:1.125)>>>0),0!=r&&(t=Math.max(t,256)),r=e.kb,e.kb=new Uint8Array(t),0<e.nb&&e.kb.set(r.subarray(0,e.nb),0))}var zt={Cb:null,ob:()=>zt.createNode(null,"/",16895,0),createNode(e,t,r,n){if(24576==(61440&r)||ur.isFIFO(r))throw new ur.gb(63);return zt.Cb||(zt.Cb={dir:{node:{Ab:zt.ib.Ab,rb:zt.ib.rb,lookup:zt.ib.lookup,Eb:zt.ib.Eb,rename:zt.ib.rename,unlink:zt.ib.unlink,rmdir:zt.ib.rmdir,readdir:zt.ib.readdir,symlink:zt.ib.symlink},stream:{vb:zt.jb.vb}},file:{node:{Ab:zt.ib.Ab,rb:zt.ib.rb},stream:{vb:zt.jb.vb,read:zt.jb.read,write:zt.jb.write,Sb:zt.jb.Sb,Ob:zt.jb.Ob,Xb:zt.jb.Xb}},link:{node:{Ab:zt.ib.Ab,rb:zt.ib.rb,readlink:zt.ib.readlink},stream:{}},Ac:{node:{Ab:zt.ib.Ab,rb:zt.ib.rb},stream:ur.hd}}),Jt((r=ur.createNode(e,t,r,n)).mode)?(r.ib=zt.Cb.dir.node,r.jb=zt.Cb.dir.stream,r.kb={}):ur.isFile(r.mode)?(r.ib=zt.Cb.file.node,r.jb=zt.Cb.file.stream,r.nb=0,r.kb=null):40960==(61440&r.mode)?(r.ib=zt.Cb.link.node,r.jb=zt.Cb.link.stream):8192==(61440&r.mode)&&(r.ib=zt.Cb.Ac.node,r.jb=zt.Cb.Ac.stream),r.atime=r.mtime=r.ctime=Date.now(),e&&(e.kb[t]=r,e.atime=e.mtime=e.ctime=r.atime),r},ce:e=>e.kb?e.kb.subarray?e.kb.subarray(0,e.nb):new Uint8Array(e.kb):new Uint8Array(0),ib:{Ab(e){var t={};return t.dev=8192==(61440&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,t.size=Jt(e.mode)?4096:ur.isFile(e.mode)?e.nb:40960==(61440&e.mode)?e.link.length:0,t.atime=new Date(e.atime),t.mtime=new Date(e.mtime),t.ctime=new Date(e.ctime),t.ed=4096,t.blocks=Math.ceil(t.size/t.ed),t},rb(e,t){for(var r of["mode","atime","mtime","ctime"])t[r]&&(e[r]=t[r]);void 0!==t.size&&e.nb!=(t=t.size)&&(0==t?(e.kb=null,e.nb=0):(r=e.kb,e.kb=new Uint8Array(t),r&&e.kb.set(r.subarray(0,Math.min(t,e.nb))),e.nb=t))},lookup(){throw zt.Ic},Eb:(e,t,r,n)=>zt.createNode(e,t,r,n),rename(e,t,r){try{var n=Kt(t,r)}catch(e){}if(n){if(Jt(e.mode))for(var i in n.kb)throw new ur.gb(55);Yt(n)}delete e.parent.kb[e.name],t.kb[r]=e,e.name=r,t.ctime=t.mtime=e.parent.ctime=e.parent.mtime=Date.now()},unlink(e,t){delete e.kb[t],e.ctime=e.mtime=Date.now()},rmdir(e,t){var r,n=Kt(e,t);for(r in n.kb)throw new ur.gb(55);delete e.kb[t],e.ctime=e.mtime=Date.now()},readdir:e=>[".","..",...Object.keys(e.kb)],symlink:(e,t,r)=>((e=zt.createNode(e,t,41471,0)).link=r,e),readlink(e){if(40960!=(61440&e.mode))throw new ur.gb(28);return e.link}},jb:{read(e,t,r,n,i){var o=e.node.kb;if(i>=e.node.nb)return 0;if(8<(e=Math.min(e.node.nb-i,n))&&o.subarray)t.set(o.subarray(i,i+e),r);else for(n=0;n<e;n++)t[r+n]=o[i+n];return e},write(e,t,r,n,i,o){if(t.buffer===y.buffer&&(o=!1),!n)return 0;if((e=e.node).mtime=e.ctime=Date.now(),t.subarray&&(!e.kb||e.kb.subarray)){if(o)return e.kb=t.subarray(r,r+n),e.nb=n;if(0===e.nb&&0===i)return e.kb=t.slice(r,r+n),e.nb=n;if(i+n<=e.nb)return e.kb.set(t.subarray(r,r+n),i),n}if(It(e,i+n),e.kb.subarray&&t.subarray)e.kb.set(t.subarray(r,r+n),i);else for(o=0;o<n;o++)e.kb[i+o]=t[r+o];return e.nb=Math.max(e.nb,i+n),n},vb(e,t,r){if(1===r?t+=e.position:2===r&&ur.isFile(e.node.mode)&&(t+=e.node.nb),0>t)throw new ur.gb(28);return t},Sb(e,t,r){It(e.node,t+r),e.node.nb=Math.max(e.node.nb,t+r)},Ob(e,t,r,n,i){if(!ur.isFile(e.node.mode))throw new ur.gb(43);if(e=e.node.kb,2&i||!e||e.buffer!==y.buffer){if(n=!0,M(),!(i=void 0))throw new ur.gb(48);e&&((0<r||r+t<e.length)&&(e=e.subarray?e.subarray(r,r+t):Array.prototype.slice.call(e,r,r+t)),y.set(e,i))}else n=!1,i=e.byteOffset;return{lb:i,Id:n}},Xb:(e,t,r,n)=>(zt.jb.write(e,t,0,n,r,!1),0)}},Gt=n.preloadPlugins||[],Ht=(e,t,r,n,i,o,a,s,c,l)=>{function u(r){function h(r){l?.(),s||ur.mc(e,t,r,n,i,c),o?.(),D()}((e,t,r,n)=>{"undefined"!=typeof Browser&&qt();var i=!1;return Gt.forEach((o=>{!i&&o.canHandle(t)&&(o.handle(e,t,r,n),i=!0)})),i})(r,d,h,(()=>{a?.(),D()}))||h(r)}var d=t?Ot(Ct(e+"/"+t)):e;B(),"string"==typeof r?(async e=>(e=await h(e),new Uint8Array(e)))(r).then(u,a):u(r)},Vt=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r};function qt(){var e,t,r;ur.rc=!0,e??=n.stdin,t??=n.stdout,r??=n.stderr,e?ur.Db("/dev","stdin",e):ur.symlink("/dev/tty","/dev/stdin"),t?ur.Db("/dev","stdout",null,t):ur.symlink("/dev/tty","/dev/stdout"),r?ur.Db("/dev","stderr",null,r):ur.symlink("/dev/tty1","/dev/stderr"),ur.open("/dev/stdin",0),ur.open("/dev/stdout",1),ur.open("/dev/stderr",1)}function Xt(e,t){ur.Gc[e]={jb:t}}function Jt(e){return 16384==(61440&e)}function Kt(e,t){var r=Jt(e.mode)?(r=nr(e,"x"))?r:e.ib.lookup?0:2:54;if(r)throw new ur.gb(r);for(r=ur.Bb[er(e.id,t)];r;r=r.Kb)if(r.parent.id===e.id&&r.name===t)return r;return ur.lookup(e,t)}function Yt(e){var t=er(e.parent.id,e.name);if(ur.Bb[t]===e)ur.Bb[t]=e.Kb;else for(t=ur.Bb[t];t;){if(t.Kb===e){t.Kb=e.Kb;break}t=t.Kb}}function Zt(e,t={}){if(!e)return{path:"",node:null};t.dc??(t.dc=!0),"/"===e.charAt(0)||(e=ur.cwd()+"/"+e);var r=0;e:for(;40>r;r++){e=e.split("/").filter((e=>!!e&&"."!==e));for(var n=ur.root,i="/",o=0;o<e.length;o++){var a=o===e.length-1;if(a&&t.parent)break;if(".."===e[o])i=jt(i),n=n.parent;else{i=Ct(i+"/"+e[o]);try{n=Kt(n,e[o])}catch(e){if(44===e?.oc&&a&&t.Ad)return{path:i};throw e}if(!n.yb||a&&!t.dc||(n=n.yb.root),40960==(61440&n.mode)&&(!a||t.xb)){if(!n.ib.readlink)throw new ur.gb(52);"/"===(n=n.ib.readlink(n)).charAt(0)||(n=jt(i)+"/"+n),e=n+"/"+e.slice(o+1).join("/");continue e}}}return{path:i,node:n}}throw new ur.gb(32)}function Qt(e){for(var t;;){if(ur.Nc(e))return e=e.ob.Sc,t?"/"!==e[e.length-1]?`${e}/${t}`:e+t:e;t=t?`${e.name}/${t}`:e.name,e=e.parent}}function er(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%ur.Bb.length}function tr(e){var t=er(e.parent.id,e.name);e.Kb=ur.Bb[t],ur.Bb[t]=e}function rr(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t}function nr(e,t){return ur.Lc?0:!t.includes("r")||292&e.mode?t.includes("w")&&!(146&e.mode)||t.includes("x")&&!(73&e.mode)?2:0:2}function ir(e,t){if(!Jt(e.mode))return 54;try{return Kt(e,t),20}catch(e){}return nr(e,"wx")}function or(e,t,r){try{var n=Kt(e,t)}catch(e){return e.oc}if(e=nr(e,"wx"))return e;if(r){if(!Jt(n.mode))return 54;if(ur.Nc(n)||Qt(n)===ur.cwd())return 10}else if(Jt(n.mode))return 31;return 0}function ar(e){if(!(e=ur.td(e)))throw new ur.gb(8);return e}function sr(e,t=-1){if(e=Object.assign(new ur.bd,e),-1==t)e:{for(t=0;t<=ur.dd;t++)if(!ur.streams[t])break e;throw new ur.gb(33)}return e.fd=t,ur.streams[t]=e}function cr(e){var t=[];for(e=[e];e.length;){var r=e.pop();t.push(r),e.push(...r.Wb)}return t}function hr(e,t,r){return void 0===r&&(r=t,t=438),ur.Eb(e,8192|t,r)}function lr(e){if(!(e.xd||e.yd||e.link||e.kb)){if("undefined"!=typeof XMLHttpRequest)throw 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.kb=l(e.url),e.nb=e.kb.length}catch(e){throw new ur.gb(29)}}}for(var ur={root:null,Wb:[],Gc:{},streams:[],vc:1,Bb:null,Dc:"/",rc:!1,Lc:!0,gb:class{name="ErrnoError";constructor(e){this.oc=e}},pd:null,kc:0,Vc:{},bd:class{ub={};node=null;get object(){return this.node}set object(e){this.node=e}get flags(){return this.ub.flags}set flags(e){this.ub.flags=e}get position(){return this.ub.position}set position(e){this.ub.position=e}},ad:class{ib={};jb={};yb=null;constructor(e,t,r,n){e||=this,this.parent=e,this.ob=e.ob,this.id=ur.vc++,this.name=t,this.mode=r,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return!(365&~this.mode)}set read(e){e?this.mode|=365:this.mode&=-366}get write(){return!(146&~this.mode)}set write(e){e?this.mode|=146:this.mode&=-147}get yd(){return Jt(this.mode)}get xd(){return 8192==(61440&this.mode)}},createNode:(e,t,r,n)=>(tr(e=new ur.ad(e,t,r,n)),e),Nc:e=>e===e.parent,isFile:e=>32768==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>!(49152&~e),dd:4096,td:e=>ur.streams[e],Td:(e,t=-1)=>(e=sr(e,t),e.jb?.Sd?.(e),e),hd:{open(e){e.jb=ur.rd(e.node.rdev).jb,e.jb.open?.(e)},vb(){throw new ur.gb(70)}},tc:e=>e>>8,ie:e=>255&e,Jb:(e,t)=>e<<8|t,rd:e=>ur.Gc[e],Xc(e,t){function r(e){return ur.kc--,t(e)}function n(e){if(e){if(!n.nd)return n.nd=!0,r(e)}else++o>=i.length&&r(null)}"function"==typeof e&&(t=e,e=!1),ur.kc++,1<ur.kc&&v(`warning: ${ur.kc} FS.syncfs operations in flight at once, probably just doing extra work`);var i=cr(ur.root.ob),o=0;i.forEach((t=>{if(!t.type.Xc)return n(null);t.type.Xc(t,e,n)}))},ob(e,t,r){var n="/"===r;if(n&&ur.root)throw new ur.gb(10);if(!n&&r){var i=Zt(r,{dc:!1});if(r=i.path,(i=i.node).yb)throw new ur.gb(10);if(!Jt(i.mode))throw new ur.gb(54)}return(e=e.ob(t={type:e,Bd:t,Sc:r,Wb:[]})).ob=t,t.root=e,n?ur.root=e:i&&(i.yb=t,i.ob&&i.ob.Wb.push(t)),e},se(e){if(!(e=Zt(e,{dc:!1})).node.yb)throw new ur.gb(28);var t=(e=e.node).yb,r=cr(t);Object.keys(ur.Bb).forEach((e=>{for(e=ur.Bb[e];e;){var t=e.Kb;r.includes(e.ob)&&Yt(e),e=t}})),e.yb=null,e.ob.Wb.splice(e.ob.Wb.indexOf(t),1)},lookup:(e,t)=>e.ib.lookup(e,t),Eb(e,t,r){var n=Zt(e,{parent:!0}).node;if(!(e=Ft(e))||"."===e||".."===e)throw new ur.gb(28);var i=ir(n,e);if(i)throw new ur.gb(i);if(!n.ib.Eb)throw new ur.gb(63);return n.ib.Eb(n,e,t,r)},Wc(e){var t={Ld:4096,$d:4096,blocks:1e6,Kd:5e5,Jd:5e5,files:ur.vc,Yd:ur.vc-1,ae:42,flags:2,me:255};return e=Zt(e,{xb:!0}).node,e?.ib.Wc&&Object.assign(t,e.ib.Wc(e.ob.Bd.root)),t},create:(e,t=438)=>ur.Eb(e,4095&t|32768,0),mkdir:(e,t=511)=>ur.Eb(e,1023&t|16384,0),ke(e,t){e=e.split("/");for(var r="",n=0;n<e.length;++n)if(e[n]){r+="/"+e[n];try{ur.mkdir(r,t)}catch(e){if(20!=e.oc)throw e}}},symlink(e,t){if(!Ot(e))throw new ur.gb(44);var r=Zt(t,{parent:!0}).node;if(!r)throw new ur.gb(44);var n=ir(r,t=Ft(t));if(n)throw new ur.gb(n);if(!r.ib.symlink)throw new ur.gb(63);return r.ib.symlink(r,t,e)},rename(e,t){var r=jt(e),n=jt(t),i=Ft(e),o=Ft(t),a=Zt(e,{parent:!0}),s=a.node;if(a=(a=Zt(t,{parent:!0})).node,!s||!a)throw new ur.gb(44);if(s.ob!==a.ob)throw new ur.gb(75);var c=Kt(s,i);if("."!==(e=Rt(e,n)).charAt(0))throw new ur.gb(28);if("."!==(e=Rt(t,r)).charAt(0))throw new ur.gb(55);try{var h=Kt(a,o)}catch(e){}if(c!==h){if(i=or(s,i,t=Jt(c.mode)))throw new ur.gb(i);if(i=h?or(a,o,t):ir(a,o))throw new ur.gb(i);if(!s.ib.rename)throw new ur.gb(63);if(c.yb||h&&h.yb)throw new ur.gb(10);if(a!==s&&(i=nr(s,"w")))throw new ur.gb(i);Yt(c);try{s.ib.rename(c,a,o),c.parent=a}catch(e){throw e}finally{tr(c)}}},rmdir(e){var t=Zt(e,{parent:!0}).node,r=Kt(t,e=Ft(e)),n=or(t,e,!0);if(n)throw new ur.gb(n);if(!t.ib.rmdir)throw new ur.gb(63);if(r.yb)throw new ur.gb(10);t.ib.rmdir(t,e),Yt(r)},readdir(e){if(!(e=Zt(e,{xb:!0}).node).ib.readdir)throw new ur.gb(54);return e.ib.readdir(e)},unlink(e){var t=Zt(e,{parent:!0}).node;if(!t)throw new ur.gb(44);var r=Kt(t,e=Ft(e)),n=or(t,e,!1);if(n)throw new ur.gb(n);if(!t.ib.unlink)throw new ur.gb(63);if(r.yb)throw new ur.gb(10);t.ib.unlink(t,e),Yt(r)},readlink(e){if(!(e=Zt(e).node))throw new ur.gb(44);if(!e.ib.readlink)throw new ur.gb(28);return e.ib.readlink(e)},stat(e,t){if(!(e=Zt(e,{xb:!t}).node))throw new ur.gb(44);if(!e.ib.Ab)throw new ur.gb(63);return e.ib.Ab(e)},lstat:e=>ur.stat(e,!0),chmod(e,t,r){if(!(e="string"==typeof e?Zt(e,{xb:!r}).node:e).ib.rb)throw new ur.gb(63);e.ib.rb(e,{mode:4095&t|-4096&e.mode,ctime:Date.now()})},lchmod(e,t){ur.chmod(e,t,!0)},fchmod(e,t){e=ar(e),ur.chmod(e.node,t)},chown(e,t,r,n){if(!(e="string"==typeof e?Zt(e,{xb:!n}).node:e).ib.rb)throw new ur.gb(63);e.ib.rb(e,{timestamp:Date.now()})},lchown(e,t,r){ur.chown(e,t,r,!0)},fchown(e,t,r){e=ar(e),ur.chown(e.node,t,r)},truncate(e,t){if(0>t)throw new ur.gb(28);if(!(e="string"==typeof e?Zt(e,{xb:!0}).node:e).ib.rb)throw new ur.gb(63);if(Jt(e.mode))throw new ur.gb(31);if(!ur.isFile(e.mode))throw new ur.gb(28);var r=nr(e,"w");if(r)throw new ur.gb(r);e.ib.rb(e,{size:t,timestamp:Date.now()})},be(e,t){if(!(2097155&(e=ar(e)).flags))throw new ur.gb(28);ur.truncate(e.node,t)},ue(e,t,r){(e=Zt(e,{xb:!0}).node).ib.rb(e,{atime:t,mtime:r})},open(e,t,r=438){if(""===e)throw new ur.gb(44);if("string"==typeof t){var i={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[t];if(void 0===i)throw Error(`Unknown file open mode: ${t}`);t=i}r=64&t?4095&r|32768:0,"object"==typeof e?i=e:(i=(e=Zt(e,{xb:!(131072&t),Ad:!0})).node,e=e.path);var o=!1;if(64&t)if(i){if(128&t)throw new ur.gb(20)}else i=ur.Eb(e,r,0),o=!0;if(!i)throw new ur.gb(44);if(8192==(61440&i.mode)&&(t&=-513),65536&t&&!Jt(i.mode))throw new ur.gb(54);if(!o&&(r=i?40960==(61440&i.mode)?32:Jt(i.mode)&&("r"!==rr(t)||512&t)?31:nr(i,rr(t)):44))throw new ur.gb(r);return 512&t&&!o&&ur.truncate(i,0),t&=-131713,(r=sr({node:i,path:Qt(i),flags:t,seekable:!0,position:0,jb:i.jb,Hd:[],error:!1})).jb.open&&r.jb.open(r),!n.logReadFiles||1&t||e in ur.Vc||(ur.Vc[e]=1),r},close(e){if(null===e.fd)throw new ur.gb(8);e.ud&&(e.ud=null);try{e.jb.close&&e.jb.close(e)}catch(e){throw e}finally{ur.streams[e.fd]=null}e.fd=null},vb(e,t,r){if(null===e.fd)throw new ur.gb(8);if(!e.seekable||!e.jb.vb)throw new ur.gb(70);if(0!=r&&1!=r&&2!=r)throw new ur.gb(28);return e.position=e.jb.vb(e,t,r),e.Hd=[],e.position},read(e,t,r,n,i){if(0>n||0>i)throw new ur.gb(28);if(null===e.fd)throw new ur.gb(8);if(1==(2097155&e.flags))throw new ur.gb(8);if(Jt(e.node.mode))throw new ur.gb(31);if(!e.jb.read)throw new ur.gb(28);var o=void 0!==i;if(o){if(!e.seekable)throw new ur.gb(70)}else i=e.position;return t=e.jb.read(e,t,r,n,i),o||(e.position+=t),t},write(e,t,r,n,i,o){if(0>n||0>i)throw new ur.gb(28);if(null===e.fd)throw new ur.gb(8);if(!(2097155&e.flags))throw new ur.gb(8);if(Jt(e.node.mode))throw new ur.gb(31);if(!e.jb.write)throw new ur.gb(28);e.seekable&&1024&e.flags&&ur.vb(e,0,2);var a=void 0!==i;if(a){if(!e.seekable)throw new ur.gb(70)}else i=e.position;return t=e.jb.write(e,t,r,n,i,o),a||(e.position+=t),t},Sb(e,t,r){if(null===e.fd)throw new ur.gb(8);if(0>t||0>=r)throw new ur.gb(28);if(!(2097155&e.flags))throw new ur.gb(8);if(!ur.isFile(e.node.mode)&&!Jt(e.node.mode))throw new ur.gb(43);if(!e.jb.Sb)throw new ur.gb(138);e.jb.Sb(e,t,r)},Ob(e,t,r,n,i){if(2&n&&!(2&i)&&2!=(2097155&e.flags))throw new ur.gb(2);if(1==(2097155&e.flags))throw new ur.gb(2);if(!e.jb.Ob)throw new ur.gb(43);if(!t)throw new ur.gb(28);return e.jb.Ob(e,t,r,n,i)},Xb:(e,t,r,n,i)=>e.jb.Xb?e.jb.Xb(e,t,r,n,i):0,Mc(e,t,r){if(!e.jb.Mc)throw new ur.gb(59);return e.jb.Mc(e,t,r)},readFile(e,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw Error(`Invalid encoding type "${t.encoding}"`);var r,n=ur.open(e,t.flags);e=ur.stat(e).size;var i=new Uint8Array(e);return ur.read(n,i,0,e,0),"utf8"===t.encoding?r=K(i):"binary"===t.encoding&&(r=i),ur.close(n),r},writeFile(e,t,r={}){if(r.flags=r.flags||577,e=ur.open(e,r.flags,r.mode),"string"==typeof t){var n=new Uint8Array(Je(t)+1);t=Xe(t,n,0,n.length),ur.write(e,n,0,t,void 0,r.gd)}else{if(!ArrayBuffer.isView(t))throw Error("Unsupported data type");ur.write(e,t,0,t.byteLength,void 0,r.gd)}ur.close(e)},cwd:()=>ur.Dc,chdir(e){if(null===(e=Zt(e,{xb:!0})).node)throw new ur.gb(44);if(!Jt(e.node.mode))throw new ur.gb(54);var t=nr(e.node,"x");if(t)throw new ur.gb(t);ur.Dc=e.path},pe(){ur.rc=!1;for(var e=0;e<ur.streams.length;e++){var t=ur.streams[e];t&&ur.close(t)}},Zd(e,t){try{var r=Zt(e,{xb:!t});e=r.path}catch(e){}var n=!1,i=null;try{r=Zt(e,{parent:!0}),Ft(e),r=Zt(e,{xb:!t}),n=!0,i=r.node}catch(e){}return n?i:null},Cc(e,t){for(e="string"==typeof e?e:Qt(e),t=t.split("/").reverse();t.length;){var r=t.pop();if(r){var n=Ct(e+"/"+r);try{ur.mkdir(n)}catch(e){}e=n}}return n},mc(e,t,r,n,i,o){var a=t;if(e&&(e="string"==typeof e?e:Qt(e),a=t?Ct(e+"/"+t):e),e=Vt(n,i),a=ur.create(a,e),r){if("string"==typeof r){for(t=Array(r.length),n=0,i=r.length;n<i;++n)t[n]=r.charCodeAt(n);r=t}ur.chmod(a,146|e),t=ur.open(a,577),ur.write(t,r,0,r.length,0,o),ur.close(t),ur.chmod(a,e)}},Db(e,t,r,n){var i;return e=((e,t)=>Ct(e+"/"+t))("string"==typeof e?e:Qt(e),t),t=Vt(!!r,!!n),(i=ur.Db).tc??(i.tc=64),Xt(i=ur.Jb(ur.Db.tc++,0),{open(e){e.seekable=!1},close(){n?.buffer?.length&&n(10)},read(e,t,n,i){for(var o=0,a=0;a<i;a++){try{var s=r()}catch(e){throw new ur.gb(29)}if(void 0===s&&0===o)throw new ur.gb(6);if(null==s)break;o++,t[n+a]=s}return o&&(e.node.atime=Date.now()),o},write(e,t,r,i){for(var o=0;o<i;o++)try{n(t[r+o])}catch(e){throw new ur.gb(29)}return i&&(e.node.mtime=e.node.ctime=Date.now()),o}}),hr(e,t,i)},Bc(e,t,r,n,i){class o{qc=!1;ub=[];pc=void 0;Pc=0;Oc=0;get(e){if(!(e>this.length-1||0>e)){var t=e%this.chunkSize;return this.pc(e/this.chunkSize|0)[t]}}zd(e){this.pc=e}Qc(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(200<=e.status&&300>e.status||304===e.status))throw Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),i=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t;e=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t;var o=1048576;i||(o=n);var a=this;a.zd((e=>{var t=e*o,i=(e+1)*o-1;if(i=Math.min(i,n-1),void 0===a.ub[e]){var s=a.ub;if(t>i)throw Error("invalid range ("+t+", "+i+") or no bytes requested!");if(i>n-1)throw Error("only "+n+" bytes available! programmer error!");var c=new XMLHttpRequest;if(c.open("GET",r,!1),n!==o&&c.setRequestHeader("Range","bytes="+t+"-"+i),c.responseType="arraybuffer",c.overrideMimeType&&c.overrideMimeType("text/plain; charset=x-user-defined"),c.send(null),!(200<=c.status&&300>c.status||304===c.status))throw Error("Couldn't load "+r+". Status: "+c.status);t=void 0!==c.response?new Uint8Array(c.response||[]):Lt(c.responseText||""),s[e]=t}if(void 0===a.ub[e])throw Error("doXHR failed!");return a.ub[e]})),!e&&n||(o=n=1,o=n=this.pc(0).length,m("LazyFiles on gzip forces download of the whole file when length is accessed")),this.Pc=n,this.Oc=o,this.qc=!0}get length(){return this.qc||this.Qc(),this.Pc}get chunkSize(){return this.qc||this.Qc(),this.Oc}}if("undefined"!=typeof XMLHttpRequest){if(!a)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var s=new o,c=void 0}else c=r,s=void 0;var h=function(e,t,r,n){return e="string"==typeof e?e:Qt(e),t=Ct(e+"/"+t),ur.create(t,Vt(r,n))}(e,t,n,i);s?h.kb=s:c&&(h.kb=null,h.url=c),Object.defineProperties(h,{nb:{get:function(){return this.kb.length}}});var l={};return Object.keys(h.jb).forEach((e=>{var t=h.jb[e];l[e]=(...e)=>(lr(h),t(...e))})),l.read=(e,t,r,n,i)=>{if(lr(h),i>=(e=e.node.kb).length)t=0;else{if(n=Math.min(e.length-i,n),e.slice)for(var o=0;o<n;o++)t[r+o]=e[i+o];else for(o=0;o<n;o++)t[r+o]=e.get(i+o);t=n}return t},l.Ob=()=>{throw lr(h),M(),new ur.gb(48)},h.jb=l,h}},dr=ur.Cc,fr=ur.Bc,br=ur.Db,pr=Array(256),mr=0;256>mr;++mr)pr[mr]=String.fromCharCode(mr);G=pr,H=n.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},V=n.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Object.assign(fe.prototype,{isAliasOf:function(e){if(!(this instanceof fe&&e instanceof fe))return!1;var t=this.hb.pb.mb,r=this.hb.lb;e.hb=e.hb;var n=e.hb.pb.mb;for(e=e.hb.lb;t.tb;)r=t.ac(r),t=t.tb;for(;n.tb;)e=n.ac(e),n=n.tb;return t===n&&r===e},clone:function(){if(this.hb.lb||ie(this),this.hb.Yb)return this.hb.count.value+=1,this;var e=de,t=Object,r=t.create,n=Object.getPrototypeOf(this),i=this.hb;return(e=e(r.call(t,n,{hb:{value:{count:i.count,Vb:i.Vb,Yb:i.Yb,lb:i.lb,pb:i.pb,sb:i.sb,wb:i.wb}}}))).hb.count.value+=1,e.hb.Vb=!1,e},delete(){if(this.hb.lb||ie(this),this.hb.Vb&&!this.hb.Yb)throw new H("Object already scheduled for deletion");ae(this);var e=this.hb;--e.count.value,0===e.count.value&&(e.sb?e.wb.Gb(e.sb):e.pb.mb.Gb(e.lb)),this.hb.Yb||(this.hb.sb=void 0,this.hb.lb=void 0)},isDeleted:function(){return!this.hb.lb},deleteLater:function(){if(this.hb.lb||ie(this),this.hb.Vb&&!this.hb.Yb)throw new H("Object already scheduled for deletion");return this.hb.Vb=!0,this}}),Object.assign($e.prototype,{sd(e){return this.Uc&&(e=this.Uc(e)),e},Fc(e){this.Gb?.(e)},Fb:8,readValueFromPointer:Ee,fromWireType:function(e){function t(){return ue(this.mb.Nb,this.fc?{pb:this.Cd,lb:r,wb:this,sb:e}:{pb:this,lb:e})}var r=this.sd(e);if(!r)return this.Fc(e),null;var n=((e,t)=>{if(void 0===t)throw new H("ptr should not be undefined");for(;e.tb;)t=e.ac(t),e=e.tb;return le[t]})(this.mb,r);if(void 0!==n)return 0===n.hb.count.value?(n.hb.lb=r,n.hb.sb=e,n.clone()):(n=n.clone(),this.Fc(e),n);if(n=this.mb.qd(r),!(n=he[n]))return t.call(this);var i=se(r,this.mb,(n=this.ec?n.jd:n.pointerType).mb);return null===i?t.call(this):ue(n.mb.Nb,this.fc?{pb:n,lb:i,wb:this,sb:e}:{pb:n,lb:i})}}),ke=n.UnboundTypeError=((e,t)=>{var r=be(t,(function(e){this.name=t,this.message=e,void 0!==(e=Error(e).stack)&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},r})(Error,"UnboundTypeError"),Ne.push(0,1,void 0,1,null,1,!0,1,!1,1),n.count_emval_handles=()=>Ne.length/2-5-We.length,"undefined"!=typeof MainLoop&&MainLoop.ne.push((()=>{if(Be){var e=Be.Rb;for(Be.Rb=Be.Zb,Be.Zb=e,e=Be.Hb,Be.Hb=Be.lc,Be.lc=e,e=0;21>=e;++e)Be.Hb[e]=0}}));for(var vr=0;32>vr;++vr)$t.push(Array(vr));var wr=new Int32Array(288);for(vr=0;288>=vr;++vr)Tt[vr]=wr.subarray(0,vr);ur.kd=Ht,ur.Bb=Array(4096),ur.ob(zt,{},"/"),ur.mkdir("/tmp"),ur.mkdir("/home"),ur.mkdir("/home/web_user"),function(){ur.mkdir("/dev"),Xt(ur.Jb(1,3),{read:()=>0,write:(e,t,r,n)=>n,vb:()=>0}),hr("/dev/null",ur.Jb(1,3)),Dt(ur.Jb(5,0),Wt),Dt(ur.Jb(6,0),Nt),hr("/dev/tty",ur.Jb(5,0)),hr("/dev/tty1",ur.Jb(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=xt(e).byteLength),e[--t]);ur.Db("/dev","random",r),ur.Db("/dev","urandom",r),ur.mkdir("/dev/shm"),ur.mkdir("/dev/shm/tmp")}(),function(){ur.mkdir("/proc");var e=ur.mkdir("/proc/self");ur.mkdir("/proc/self/fd"),ur.ob({ob(){var t=ur.createNode(e,"fd",16895,73);return t.jb={vb:zt.jb.vb},t.ib={lookup(e,t){var r=ar(e=+t);return(e={parent:null,ob:{Sc:"fake"},ib:{readlink:()=>r.path},id:e+1}).parent=e},readdir:()=>Array.from(ur.streams.entries()).filter((([,e])=>e)).map((([e])=>e.toString()))},t}},{},"/proc/self/fd")}(),ur.pd={MEMFS:zt},n.FS_createPath=ur.Cc,n.FS_createDataFile=ur.mc,n.FS_createPreloadedFile=ur.kd,n.FS_unlink=ur.unlink,n.FS_createLazyFile=ur.Bc,n.FS_createDevice=ur.Db,zt.Ic=new ur.gb(44),zt.Ic.stack="<generic error, no stack>";var gr,yr={c:(e,t,r,n)=>M(`Assertion failed: ${e?K(_,e):""}, at: `+[t?t?K(_,t):"":"unknown filename",r,n?n?K(_,n):"":"unknown function"]),ja:()=>M(""),Xa:()=>{},ma:(e,t,r,n)=>{ne(e,{name:t=Y(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:n},Fb:8,readValueFromPointer:function(e){return this.fromWireType(_[e])},zb:null})},ua:(e,t,r,n,i,o,a,s,c,h,l,u,d)=>{l=Y(l),o=xe(i,o),s&&=xe(a,s),h&&=xe(c,h),d=xe(u,d);var f=(e=>{var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?`_${e}`:e})(l);me(f,(function(){Ce(`Cannot construct ${l} due to unbound types`,[n])})),re([e,t,r],n?[n]:[],(t=>{if(t=t[0],n)var r=t.mb,i=r.Nb;else i=fe.prototype;t=be(l,(function(...e){if(Object.getPrototypeOf(this)!==a)throw new H("Use 'new' to construct "+l);if(void 0===u.Ib)throw new H(l+" has no accessible constructor");var t=u.Ib[e.length];if(void 0===t)throw new H(`Tried to invoke ctor of ${l} with invalid number of parameters (${e.length}) - expected (${Object.keys(u.Ib).toString()}) parameters instead!`);return t.apply(this,e)}));var a=Object.create(i,{constructor:{value:t}});t.prototype=a;var c,u=new ve(l,t,a,d,r,o,s,h);return u.tb&&((c=u.tb).zc??(c.zc=[]),u.tb.zc.push(u)),r=new $e(l,u,!0,!1,!1),c=new $e(l+"*",u,!1,!1,!1),i=new $e(l+" const*",u,!1,!0,!1),he[e]={pointerType:c,jd:i},Te(f,t),[r,c,i]}))},ta:(e,t,r,n,i,o)=>{var a=je(t,r);i=xe(n,i),re([],[e],(e=>{var r=`constructor ${(e=e[0]).name}`;if(void 0===e.mb.Ib&&(e.mb.Ib=[]),void 0!==e.mb.Ib[t-1])throw new H(`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.mb.Ib[t-1]=()=>{Ce(`Cannot construct ${e.name} due to unbound types`,a)},re([],a,(n=>(n.splice(1,0,null),e.mb.Ib[t-1]=Re(r,n,null,i,o),[]))),[]}))},o:(e,t,r,n,i,o,a,s,c)=>{var h=je(r,n);t=Y(t),t=Me(t),o=xe(i,o),re([],[e],(e=>{function n(){Ce(`Cannot call ${i} due to unbound types`,h)}var i=`${(e=e[0]).name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.mb.Dd.push(t);var l=e.mb.Nb,u=l[t];return void 0===u||void 0===u.qb&&u.className!==e.name&&u.Tb===r-2?(n.Tb=r-2,n.className=e.name,l[t]=n):(pe(l,t,i),l[t].qb[r-2]=n),re([],h,(n=>(n=Re(i,n,e,o,a,c),void 0===l[t].qb?(n.Tb=r-2,l[t]=n):l[t].qb[r-2]=n,[]))),[]}))},ka:e=>ne(e,Ge),I:(e,t,r)=>{ne(e,{name:t=Y(t),fromWireType:e=>e,toWireType:(e,t)=>t,Fb:8,readValueFromPointer:Ve(t,r),zb:null})},K:(e,t,r,n,i,o,a)=>{var s=je(t,r);e=Y(e),e=Me(e),i=xe(n,i),me(e,(function(){Ce(`Cannot call ${e} due to unbound types`,s)}),t-1),re([],s,(r=>(r=[r[0],null].concat(r.slice(1)),Te(e,Re(e,r,null,i,o,a),t-1),[])))},r:(e,t,r,n,i)=>{if(t=Y(t),-1===i&&(i=4294967295),i=e=>e,0===n){var o=32-8*r;i=e=>e<<o>>>o}var a=t.includes("unsigned")?function(e,t){return t>>>0}:function(e,t){return t};ne(e,{name:t,fromWireType:i,toWireType:a,Fb:8,readValueFromPointer:qe(t,r,0!==n),zb:null})},i:(e,t,r)=>{function n(e){return new i(y.buffer,S[e+4>>2],S[e>>2])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];ne(e,{name:r=Y(r),fromWireType:n,Fb:8,readValueFromPointer:n},{vd:!0})},la:(e,t)=>{ne(e,{name:t=Y(t),fromWireType:function(e){for(var t,r=S[e>>2],n=e+4,i=n,o=0;o<=r;++o){var a=n+o;o!=r&&0!=_[a]||(i=i?K(_,i,a-i):"",void 0===t?t=i:(t+=String.fromCharCode(0),t+=i),i=a+1)}return Er(e),t},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var r="string"==typeof t;if(!(r||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array))throw new H("Cannot pass non-string to std::string");var n=r?Je(t):t.length,i=Ar(4+n+1),o=i+4;if(S[i>>2]=n,r)Xe(t,_,o,n+1);else if(r)for(r=0;r<n;++r){var a=t.charCodeAt(r);if(255<a)throw Er(o),new H("String has UTF-16 code units that do not fit in 8 bits");_[o+r]=a}else for(r=0;r<n;++r)_[o+r]=t[r];return null!==e&&e.push(Er,i),i},Fb:8,readValueFromPointer:Ee,zb(e){Er(e)}})},D:(e,t,r)=>{if(r=Y(r),2===t)var n=Ye,i=Ze,o=Qe,a=e=>A[e>>1];else 4===t&&(n=et,i=tt,o=rt,a=e=>S[e>>2]);ne(e,{name:r,fromWireType:e=>{for(var r,i=S[e>>2],o=e+4,s=0;s<=i;++s){var c=e+4+s*t;s!=i&&0!=a(c)||(o=n(o,c-o),void 0===r?r=o:(r+=String.fromCharCode(0),r+=o),o=c+t)}return Er(e),r},toWireType:(e,n)=>{if("string"!=typeof n)throw new H(`Cannot pass non-string to C++ string type ${r}`);var a=o(n),s=Ar(4+a+t);return S[s>>2]=a/t,i(n,s+4,a+t),null!==e&&e.push(Er,s),s},Fb:8,readValueFromPointer:Ee,zb(e){Er(e)}})},L:e=>{ne(e,Ge)},na:(e,t)=>{ne(e,{ge:!0,name:t=Y(t),Fb:0,fromWireType:()=>{},toWireType:()=>{}})},fa:()=>{X=!1,nt=0},da:()=>{throw 1/0},pa:Ie,qa:e=>{9<e&&(Ne[e+1]+=1)},J:(e,t)=>{var r=Q[e];if(void 0===r)throw e=`_emval_take_value has unknown type ${Pe(e)}`,new H(e);return e=(e=r).readValueFromPointer(t),ze(e)},ga:(e,t)=>{if(it[e]&&(clearTimeout(it[e].id),delete it[e]),!t)return 0;var r=setTimeout((()=>{delete it[e],(e=>{if(!P)try{if(e(),!(X||0<nt))try{g=e=g,ot(e)}catch(e){e instanceof z||"unwind"==e||d(1,e)}}catch(e){e instanceof z||"unwind"==e||d(1,e)}})((()=>Sr(e,performance.now())))}),t);return it[e]={id:r,re:t},0},ia:e=>{var t=_.length;if(2147483648<(e>>>=0))return!1;for(var r=1;4>=r;r*=2){var n=t*(1+.2/r);n=Math.min(n,e+100663296);e:{n=(Math.min(2147483648,65536*Math.ceil(Math.max(e,n)/65536))-w.buffer.byteLength+65535)/65536|0;try{w.grow(n),C();var i=1;break e}catch(e){}i=void 0}if(i)return!0}return!1},ra:(e,t)=>{var r=t>>2;return t={alpha:!!y[t+0],depth:!!y[t+1],stencil:!!y[t+2],antialias:!!y[t+3],premultipliedAlpha:!!y[t+4],preserveDrawingBuffer:!!y[t+5],powerPreference:_t[$[r+2]],failIfMajorPerformanceCaveat:!!y[t+12],Rc:$[r+4],je:$[r+5],Jc:y[t+24],od:y[t+25],oe:$[r+7],qe:y[t+32]},e=2<e?e?K(_,e):"":e,!(e=Et[e]||("undefined"!=typeof document?document.querySelector(e):null))||t.od?0:((e,t)=>{e.ub||(e.ub=e.getContext,e.getContext=function(t,r){return"webgl"==t==(r=e.ub(t,r))instanceof WebGLRenderingContext?r:null});var r=e.getContext(1<t.Rc?"webgl2":"webgl",t);return r?((e,t)=>{var r=vt(pt),n={handle:r,attributes:t,version:t.Rc,Lb:e};for(e.canvas&&(e.canvas.cd=n),pt[r]=n,(void 0===t.Jc||t.Jc)&&(e=>{if(e||=Be,!e.wd){e.wd=!0;var t=e.Lb;t.le=t.getExtension("WEBGL_multi_draw"),t.Xd=t.getExtension("EXT_polygon_offset_clamp"),t.Wd=t.getExtension("EXT_clip_control"),t.ve=t.getExtension("WEBGL_polygon_mode"),(e=>{var t=e.getExtension("ANGLE_instanced_arrays");t&&(e.vertexAttribDivisor=(e,r)=>t.vertexAttribDivisorANGLE(e,r),e.drawArraysInstanced=(e,r,n,i)=>t.drawArraysInstancedANGLE(e,r,n,i),e.drawElementsInstanced=(e,r,n,i,o)=>t.drawElementsInstancedANGLE(e,r,n,i,o))})(t),(e=>{var t=e.getExtension("OES_vertex_array_object");t&&(e.createVertexArray=()=>t.createVertexArrayOES(),e.deleteVertexArray=e=>t.deleteVertexArrayOES(e),e.bindVertexArray=e=>t.bindVertexArrayOES(e),e.isVertexArray=e=>t.isVertexArrayOES(e))})(t),(e=>{var t=e.getExtension("WEBGL_draw_buffers");t&&(e.drawBuffers=(e,r)=>t.drawBuffersWEBGL(e,r))})(t),t.Rd=t.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"),t.he=t.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"),2<=e.version&&(t.Hc=t.getExtension("EXT_disjoint_timer_query_webgl2")),(2>e.version||!t.Hc)&&(t.Hc=t.getExtension("EXT_disjoint_timer_query")),at(t).forEach((e=>{e.includes("lose_context")||e.includes("debug")||t.getExtension(e)}))}})(n),n.uc=n.Lb.getParameter(34921),n.Mb=[],e=0;e<n.uc;e++)n.Mb[e]={enabled:!1,bc:!1,size:0,type:0,Tc:0,xc:0,lb:0,$c:null};for(n.Hb=[],n.lc=[],n.Hb.length=n.lc.length=22,n.Rb=[],n.Zb=[],n.Rb.length=n.Zb.length=22,n.Qb=[],n.Qb.length=22,e=0;21>=e;++e){n.Qb[e]=null,n.Hb[e]=n.lc[e]=0,n.Rb[e]=[],n.Zb[e]=[];var i=n.Zb[e];(t=n.Rb[e]).length=i.length=64;for(var o=0;64>o;++o)t[o]=i[o]=null}return r})(r,t):0})(e,t)},sa:e=>{if(Be==e&&(Be=0),Be===pt[e]&&(Be=null),"object"==typeof yt)for(var t=pt[e].Lb.canvas,r=0;r<gt.length;++r)if(gt[r].target==t){var n=r--,i=gt[n];i.target.removeEventListener(i.Vd,i.Ud,i.te),gt.splice(n,1)}pt[e]&&pt[e].Lb.canvas&&(pt[e].Lb.canvas.cd=void 0),pt[e]=null},Ra:()=>Be?Be.handle:0,Y:e=>(Be=pt[e],n.ctx=Ue=Be?.Lb,!e||Ue?0:-5),Ia:e=>Ue.activeTexture(e),ba:(e,t)=>{Ue.attachShader(ht[e],ft[t])},q:(e,t)=>{34962==e?Ue.cc=t:34963==e&&(Ue.Ub=t),35051==e?Ue.Ec=t:35052==e&&(Ue.nc=t),Ue.bindBuffer(e,ct[t])},Ga:(e,t,r,n,i)=>{Ue.bindBufferRange(e,t,ct[r],n,i)},e:(e,t)=>{Ue.bindFramebuffer(e,lt[t])},G:(e,t)=>{Ue.bindRenderbuffer(e,ut[t])},z:(e,t)=>{Ue.bindTexture(e,dt[t])},M:e=>{Ue.bindVertexArray(bt[e]),e=Ue.getParameter(34965),Ue.Ub=e?0|e.name:0},F:e=>Ue.blendEquation(e),n:(e,t)=>Ue.blendFunc(e,t),s:(e,t,r,n,i,o,a,s,c,h)=>Ue.blitFramebuffer(e,t,r,n,i,o,a,s,c,h),ca:(e,t,r,n)=>{2<=Be.version?r&&t?Ue.bufferData(e,_,n,r,t):Ue.bufferData(e,t,n):Ue.bufferData(e,r?_.subarray(r,r+t):t,n)},O:e=>Ue.clear(e),P:(e,t,r,n)=>Ue.clearColor(e,t,r,n),Ba:e=>Ue.clearDepth(e),Ca:e=>Ue.clearStencil(e),v:(e,t,r,n)=>{Ue.colorMask(!!e,!!t,!!r,!!n)},wa:e=>{Ue.compileShader(ft[e])},ha:()=>{var e=vt(ht),t=Ue.createProgram();return t.name=e,t.jc=t.hc=t.ic=0,t.yc=1,ht[e]=t,e},ya:e=>{var t=vt(ft);return ft[t]=Ue.createShader(e),t},Qa:e=>Ue.cullFace(e),Ma:(e,t)=>{for(var r=0;r<e;r++){var n=$[t+4*r>>2],i=ct[n];i&&(Ue.deleteBuffer(i),i.name=0,ct[n]=null,n==Ue.cc&&(Ue.cc=0),n==Ue.Ub&&(Ue.Ub=0),n==Ue.Ec&&(Ue.Ec=0),n==Ue.nc&&(Ue.nc=0))}},R:(e,t)=>{for(var r=0;r<e;++r){var n=$[t+4*r>>2],i=lt[n];i&&(Ue.deleteFramebuffer(i),i.name=0,lt[n]=null)}},_:e=>{if(e){var t=ht[e];t?(Ue.deleteProgram(t),t.name=0,ht[e]=null):Le||=1281}},Q:(e,t)=>{for(var r=0;r<e;r++){var n=$[t+4*r>>2],i=ut[n];i&&(Ue.deleteRenderbuffer(i),i.name=0,ut[n]=null)}},E:e=>{if(e){var t=ft[e];t?(Ue.deleteShader(t),ft[e]=null):Le||=1281}},Z:(e,t)=>{for(var r=0;r<e;r++){var n=$[t+4*r>>2],i=dt[n];i&&(Ue.deleteTexture(i),i.name=0,dt[n]=null)}},Aa:(e,t)=>{for(var r=0;r<e;r++){var n=$[t+4*r>>2];Ue.deleteVertexArray(bt[n]),bt[n]=null}},Oa:e=>Ue.depthFunc(e),A:e=>{Ue.depthMask(!!e)},t:e=>Ue.disable(e),Ea:e=>{Be.Mb[e].enabled=!1,Ue.disableVertexAttribArray(e)},Fa:(e,t,r,n)=>{var i=0;if(!Ue.Ub){var o=1*mt[r-5120]*t,a=(e=>{e=32-Math.clz32(0===e?0:e-1);var t=Be.Qb[e];return t||(t=Ue.getParameter(34965),Be.Qb[e]=Ue.createBuffer(),Ue.bindBuffer(34963,Be.Qb[e]),Ue.bufferData(34963,1<<e,35048),Ue.bindBuffer(34963,t),Be.Qb[e])})(o);if(Ue.bindBuffer(34963,a),Ue.bufferSubData(34963,0,_.subarray(n,n+o)),0<t)for(a=0;a<Be.uc;++a)if((o=Be.Mb[a]).bc&&o.enabled){switch(r){case 5121:i=Uint8Array;break;case 5123:i=Uint16Array;break;case 5125:i=Uint32Array;break;default:return void(Le||=1282)}i=new i(_.buffer,n,t).reduce(((e,t)=>Math.max(e,t)))+1;break}n=0}(e=>{De=!1;for(var t=0;t<Be.uc;++t){var r=Be.Mb[t];if(r.bc&&r.enabled){De=!0;var n=r.xc;n=0<n?e*n:r.size*mt[r.type-5120]*e;var i=32-Math.clz32(0===n?0:n-1),o=Be.Rb[i],a=Be.Hb[i];Be.Hb[i]=Be.Hb[i]+1&63;var s=o[a];s?i=s:(s=Ue.getParameter(34964),o[a]=Ue.createBuffer(),Ue.bindBuffer(34962,o[a]),Ue.bufferData(34962,1<<i,35048),Ue.bindBuffer(34962,s),i=o[a]),Ue.bindBuffer(34962,i),Ue.bufferSubData(34962,0,_.subarray(r.lb,r.lb+n)),r.$c.call(Ue,t,r.size,r.type,r.Tc,r.xc,0)}}})(i),Ue.drawElements(e,t,r,n),De&&Ue.bindBuffer(34962,ct[Ue.cc]),Ue.Ub||Ue.bindBuffer(34963,null)},m:e=>Ue.enable(e),Ka:e=>{Be.Mb[e].enabled=!0,Ue.enableVertexAttribArray(e)},S:(e,t,r,n)=>{Ue.framebufferRenderbuffer(e,t,r,ut[n])},Na:(e,t,r,n,i)=>{Ue.framebufferTexture2D(e,t,r,dt[n],i)},Pa:e=>Ue.frontFace(e),Sa:(e,t)=>{wt(e,t,"createBuffer",ct)},V:(e,t)=>{wt(e,t,"createFramebuffer",lt)},U:(e,t)=>{wt(e,t,"createRenderbuffer",ut)},X:(e,t)=>{wt(e,t,"createTexture",dt)},Da:(e,t)=>{wt(e,t,"createVertexArray",bt)},oa:(e,t)=>((e,t)=>{if(t){var r=void 0;switch(e){case 36346:r=1;break;case 36344:return;case 34814:case 36345:r=0;break;case 34466:var n=Ue.getParameter(34467);r=n?n.length:0;break;case 33309:if(2>Be.version)return void(Le||=1282);r=(()=>{var e=at(Ue);return e.concat(e.map((e=>"GL_"+e)))})().length;break;case 33307:case 33308:if(2>Be.version)return void(Le||=1280);r=33307==e?3:0}if(void 0===r)switch(n=Ue.getParameter(e),typeof n){case"number":r=n;break;case"boolean":r=n?1:0;break;case"string":return void(Le||=1280);case"object":if(null===n)switch(e){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:r=0;break;default:return void(Le||=1280)}else{if(n instanceof Float32Array||n instanceof Uint32Array||n instanceof Int32Array||n instanceof Array){for(e=0;e<n.length;++e)$[t+4*e>>2]=n[e];return}try{r=0|n.name}catch(t){return Le||=1280,void v(`GL_INVALID_ENUM in glGet0v: Unknown object returned from WebGL getParameter(${e})! (error: ${t})`)}}break;default:return Le||=1280,void v(`GL_INVALID_ENUM in glGet0v: Native code calling glGet0v(${e}) and it returns ${n} of type ${typeof n}!`)}$[t>>2]=r}else Le||=1281})(e,t),Va:(e,t,r,n)=>{null===(e=Ue.getProgramInfoLog(ht[e]))&&(e="(unknown error)"),t=0<t&&n?Xe(e,_,n,t):0,r&&($[r>>2]=t)},$:(e,t,r)=>{if(r)if(e>=st)Le||=1281;else if(e=ht[e],35716==t)null===(e=Ue.getProgramInfoLog(e))&&(e="(unknown error)"),$[r>>2]=e.length+1;else if(35719==t){if(!e.jc){var n=Ue.getProgramParameter(e,35718);for(t=0;t<n;++t)e.jc=Math.max(e.jc,Ue.getActiveUniform(e,t).name.length+1)}$[r>>2]=e.jc}else if(35722==t){if(!e.hc)for(n=Ue.getProgramParameter(e,35721),t=0;t<n;++t)e.hc=Math.max(e.hc,Ue.getActiveAttrib(e,t).name.length+1);$[r>>2]=e.hc}else if(35381==t){if(!e.ic)for(n=Ue.getProgramParameter(e,35382),t=0;t<n;++t)e.ic=Math.max(e.ic,Ue.getActiveUniformBlockName(e,t).length+1);$[r>>2]=e.ic}else $[r>>2]=Ue.getProgramParameter(e,t);else Le||=1281},va:(e,t,r,n)=>{null===(e=Ue.getShaderInfoLog(ft[e]))&&(e="(unknown error)"),t=0<t&&n?Xe(e,_,n,t):0,r&&($[r>>2]=t)},N:(e,t,r)=>{r?35716==t?(null===(e=Ue.getShaderInfoLog(ft[e]))&&(e="(unknown error)"),$[r>>2]=e?e.length+1:0):35720==t?(e=Ue.getShaderSource(ft[e]),$[r>>2]=e?e.length+1:0):$[r>>2]=Ue.getShaderParameter(ft[e],t):Le||=1281},g:(e,t)=>Ue.getUniformBlockIndex(ht[e],t?K(_,t):""),j:(e,t)=>{if(t=t?K(_,t):"",e=ht[e]){var r,n=e,i=n.$b,o=n.Zc;if(!i){n.$b=i={},n.Yc={};var a=Ue.getProgramParameter(n,35718);for(r=0;r<a;++r){var s=Ue.getActiveUniform(n,r),c=s.name;s=s.size;var h=At(c);h=0<h?c.slice(0,h):c;var l=n.yc;for(n.yc+=s,o[h]=[s,l],c=0;c<s;++c)i[l]=c,n.Yc[l++]=h}}if(n=e.$b,i=0,o=t,0<(r=At(t))&&(i=parseInt(t.slice(r+1))>>>0,o=t.slice(0,r)),(o=e.Zc[o])&&i<o[0]&&(n[i+=o[1]]=n[i]||Ue.getUniformLocation(e,t)))return i}else Le||=1281;return-1},za:(e,t,r)=>{for(var n=$t[t],i=0;i<t;i++)n[i]=$[r+4*i>>2];Ue.invalidateFramebuffer(e,n)},Wa:e=>{Ue.linkProgram(e=ht[e]),e.$b=0,e.Zc={}},T:(e,t,r,n,i)=>Ue.renderbufferStorageMultisample(e,t,r,n,i),l:(e,t,r,n)=>Ue.scissor(e,t,r,n),xa:(e,t,r,n)=>{for(var i="",o=0;o<t;++o){var a=(a=S[r+4*o>>2])?K(_,a,n?S[n+4*o>>2]:void 0):"";i+=a}Ue.shaderSource(ft[e],i)},C:(e,t,r)=>Ue.stencilFunc(e,t,r),x:(e,t,r,n)=>Ue.stencilFuncSeparate(e,t,r,n),B:(e,t,r)=>Ue.stencilOp(e,t,r),w:(e,t,r,n)=>Ue.stencilOpSeparate(e,t,r,n),W:(e,t,r,n,i,o,a,s,c)=>{if(2<=Be.version){if(Ue.nc)return void Ue.texImage2D(e,t,r,n,i,o,a,s,c);if(c){var h=St(s);return c>>>=31-Math.clz32(h.BYTES_PER_ELEMENT),void Ue.texImage2D(e,t,r,n,i,o,a,s,h,c)}}if(c){h=St(s);var l=i*(n*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[a-6402]||1)*h.BYTES_PER_ELEMENT+4-1&-4);c=h.subarray(c>>>31-Math.clz32(h.BYTES_PER_ELEMENT),c+l>>>31-Math.clz32(h.BYTES_PER_ELEMENT))}else c=null;Ue.texImage2D(e,t,r,n,i,o,a,s,c)},u:(e,t,r)=>Ue.texParameteri(e,t,r),La:(e,t)=>{Ue.uniform1f(kt(e),t)},Ta:(e,t,r)=>{if(2<=Be.version)t&&Ue.uniform1iv(kt(e),$,r>>2,t);else{if(288>=t)for(var n=Tt[t],i=0;i<t;++i)n[i]=$[r+4*i>>2];else n=$.subarray(r>>2,r+4*t>>2);Ue.uniform1iv(kt(e),n)}},Ha:(e,t,r)=>{Ue.uniformBlockBinding(e=ht[e],t,r)},Ua:e=>{Ue.useProgram(e=ht[e]),Ue.ld=e},Ja:(e,t,r,n,i,o)=>{var a=Be.Mb[e];Ue.cc?(a.bc=!1,Ue.vertexAttribPointer(e,t,r,!!n,i,o)):(a.size=t,a.type=r,a.Tc=n,a.xc=i,a.lb=o,a.bc=!0,a.$c=function(e,t,r,n,i,o){this.vertexAttribPointer(e,t,r,n,i,o)})},p:(e,t,r,n)=>Ue.viewport(e,t,r,n),k:function(e,t){var r=xr();try{return Se.get(e)(t)}catch(e){if(Tr(r),e!==e+0)throw e;kr(1,0)}},f:function(e,t,r){var n=xr();try{return Se.get(e)(t,r)}catch(e){if(Tr(n),e!==e+0)throw e;kr(1,0)}},d:function(e,t,r,n){var i=xr();try{return Se.get(e)(t,r,n)}catch(e){if(Tr(i),e!==e+0)throw e;kr(1,0)}},H:function(e,t,r,n,i,o){var a=xr();try{return Se.get(e)(t,r,n,i,o)}catch(e){if(Tr(a),e!==e+0)throw e;kr(1,0)}},aa:function(e){var t=xr();try{Se.get(e)()}catch(e){if(Tr(t),e!==e+0)throw e;kr(1,0)}},a:function(e,t){var r=xr();try{Se.get(e)(t)}catch(e){if(Tr(r),e!==e+0)throw e;kr(1,0)}},b:function(e,t,r){var n=xr();try{Se.get(e)(t,r)}catch(e){if(Tr(n),e!==e+0)throw e;kr(1,0)}},h:function(e,t,r,n){var i=xr();try{Se.get(e)(t,r,n)}catch(e){if(Tr(i),e!==e+0)throw e;kr(1,0)}},y:function(e,t,r,n,i){var o=xr();try{Se.get(e)(t,r,n,i)}catch(e){if(Tr(o),e!==e+0)throw e;kr(1,0)}},ea:ot};!async function(){function e(e){return w=(gr=e.exports).Ya,C(),Se=gr.bb,F.unshift(gr.Za),D(),gr}B();var t={a:yr};if(n.instantiateWasm)try{return n.instantiateWasm(t,e)}catch(e){v(`Module.instantiateWasm callback failed with error: ${e}`),r(e)}W??=n.locateFile?N("thorvg.wasm")?"thorvg.wasm":n.locateFile?n.locateFile("thorvg.wasm",f):f+"thorvg.wasm":new URL("thorvg.wasm",import.meta.url).href;try{var i=await async function(e){var t=W;if(!(x||"function"!=typeof WebAssembly.instantiateStreaming||N(t)||I(t)||s)&&"function"==typeof fetch)try{var r=fetch(t,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(r,e)}catch(e){v(`wasm streaming compile failed: ${e}`),v("falling back to ArrayBuffer instantiation")}return async function(e,t){try{var r=await async function(e){if(!x)try{var t=await h(e);return new Uint8Array(t)}catch{}if(e==W&&x)e=new Uint8Array(x);else{if(!l)throw"both async and sync fetching of the wasm failed";e=l(e)}return e}(e);return await WebAssembly.instantiate(r,t)}catch(e){v(`failed to asynchronously prepare wasm: ${e}`),M(e)}}(t,e)}(t);return e(i.instance),i}catch(e){r(e)}}();var _r,Er=e=>(Er=gr._a)(e),Ar=e=>(Ar=gr.$a)(e),$r=e=>($r=gr.ab)(e),Sr=(e,t)=>(Sr=gr.cb)(e,t),kr=(e,t)=>(kr=gr.db)(e,t),Tr=e=>(Tr=gr.eb)(e),xr=()=>(xr=gr.fb)();function Pr(){function e(){if(!_r&&(_r=!0,n.calledRun=!0,!P)){if(n.noFSInit||ur.rc||qt(),ur.Lc=!1,q(F),t(n),n.onRuntimeInitialized?.(),n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;){var e=n.postRun.shift();O.unshift(e)}q(O)}}if(!(0<U)){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)R();q(j),0<U||(n.setStatus?(n.setStatus("Running..."),setTimeout((()=>{setTimeout((()=>n.setStatus("")),1),e()}),1)):e())}}if(n.addRunDependency=B,n.removeRunDependency=D,n.FS_createPreloadedFile=Ht,n.FS_unlink=e=>ur.unlink(e),n.FS_createPath=dr,n.FS_createDevice=br,n.FS=ur,n.FS_createDataFile=(e,t,r,n,i,o)=>{ur.mc(e,t,r,n,i,o)},n.FS_createLazyFile=fr,L=function e(){_r||Pr(),_r||(L=e)},n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);0<n.preInit.length;)n.preInit.pop()();return Pr(),i});function le(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}let ue,de=!1;var fe,be,pe,me,ve,we;!function(e){e.SW="sw",e.WG="wg",e.GL="gl"}(fe||(fe={})),function(e){e.IDLE="idle",e.FAILED="failed",e.REQUESTED="requested",e.INITIALIZED="initialized"}(be||(be={})),function(e){e.JSON="json",e.LOT="lot",e.JPG="jpg",e.PNG="png",e.SVG="svg"}(pe||(pe={})),function(e){e.Destroyed="destroyed",e.Error="error",e.Loading="loading",e.Paused="paused",e.Playing="playing",e.Stopped="stopped",e.Frozen="frozen"}(me||(me={})),function(e){e.Bounce="bounce",e.Normal="normal"}(ve||(ve={})),function(e){e.Complete="complete",e.Destroyed="destroyed",e.Error="error",e.Frame="frame",e.Freeze="freeze",e.Load="load",e.Loop="loop",e.Pause="pause",e.Play="play",e.Ready="ready",e.Stop="stop"}(we||(we={}));const ge=e=>new Promise((t=>setTimeout(t,e)));let ye="idle";class _e extends ae{src;wasmUrl;fileType="json";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;config;_imageData;_beginTime=Date.now();_counter=1;_timer;_observer;_observable=!1;async _init(){if(de)for(;!ue;)await ge(100);if(ue||(de=!0,ue=await he({locateFile:(e,t)=>e.endsWith(".wasm")?this.wasmUrl||"https://unpkg.com/@thorvg/lottie-player@latest/dist/gl/thorvg.wasm":t+e})),!this._timer)return;clearInterval(this._timer),this._timer=void 0;const e=this.config?.renderer||"gl";if(await(async e=>{if("wg"===e){for(;"requested"===ye;)await ge(100);if("initialized"!==ye)for(ye="requested";;)switch(ue.init()){case 0:return void(ye="initialized");case 1:return void(ye="failed");case 2:await ge(100)}}})(e),"failed"===ye)return this.currentState="error",void this.dispatchEvent(new CustomEvent("error"));this.TVG=new ue.TvgLottieAnimation(e,`#${this.canvas.id}`),this.src&&this.load(this.src,this.fileType)}_viewport(){const{left:e,right:t,top:r,bottom:n}=this.getBoundingClientRect(),i=window.innerWidth,o=window.innerHeight;let a=0,s=0,c=this.canvas.width,h=this.canvas.height;e<0&&(a=Math.abs(e),c-=a),r<0&&(s=Math.abs(r),h-=s),t>i&&(c-=t-i),n>o&&(h-=n-o),this.TVG.viewport(a,s,c,h)}_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-${Date.now().toString(36)+Math.random().toString(36).substring(2)}`,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.fileType):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){if(!this.TVG.load(e,this.fileType,this.canvas.width,this.canvas.height,""))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.config?.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}if(this.TVG.resize(this.canvas.width,this.canvas.height),this._viewport(),!this.TVG.update())return;if("wg"===this.config?.renderer||"gl"===this.config?.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 ge(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(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||"lot"===t)return n=await(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})(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")}})(e,t);this.dispatchEvent(new CustomEvent("ready")),this.fileType=t,await this._loadBytes(r)}catch(e){this.currentState="error",this.dispatchEvent(new CustomEvent("error"))}}play(){if(!("json"!==this.fileType&&"lot"!==this.fileType||(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(){ue.term(),ue=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)}getVersion(){return{THORVG_VERSION:"1.0.0"}}render(){return G`
|
|
1
|
+
const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),n=new WeakMap;let i=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const r=this.t;if(t&&void 0===e){const t=void 0!==r&&1===r.length;t&&(e=n.get(r)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t&&n.set(r,e))}return e}toString(){return this.cssText}};const o=(r,n)=>{if(t)r.adoptedStyleSheets=n.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const t of n){const n=document.createElement("style"),i=e.litNonce;void 0!==i&&n.setAttribute("nonce",i),n.textContent=t.cssText,r.appendChild(n)}},a=t?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return(e=>new i("string"==typeof e?e:e+"",void 0,r))(t)})(e):e,{is:s,defineProperty:c,getOwnPropertyDescriptor:h,getOwnPropertyNames:l,getOwnPropertySymbols:u,getPrototypeOf:d}=Object,f=globalThis,b=f.trustedTypes,p=b?b.emptyScript:"",m=f.reactiveElementPolyfillSupport,v=(e,t)=>e,w={toAttribute(e,t){switch(t){case Boolean:e=e?p: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}},g=(e,t)=>!s(e,t),y={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:g};Symbol.metadata??=Symbol("metadata"),f.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=y){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&&c(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){const{get:n,set:i}=h(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){const o=n?.call(this);i.call(this,t),this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??y}static _$Ei(){if(this.hasOwnProperty(v("elementProperties")))return;const e=d(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=[...l(e),...u(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(a(e))}else void 0!==e&&t.push(a(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 o(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 i=(void 0!==r.converter?.toAttribute?r.converter:w).toAttribute(t,r.type);this._$Em=e,null==i?this.removeAttribute(n):this.setAttribute(n,i),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),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:w;this._$Em=n,this[n]=i.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(r??=this.constructor.getPropertyOptions(e),!(r.hasChanged??g)(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,m?.({ReactiveElement:_}),(f.reactiveElementVersions??=[]).push("2.0.4");const E={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:g},A=(e=E,t,r)=>{const{kind:n,metadata:i}=r;let o=globalThis.litPropertyMetadata.get(i);if(void 0===o&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(r.name,e),"accessor"===n){const{name:n}=r;return{set(r){const i=t.get.call(this);t.set.call(this,r),this.requestUpdate(n,i,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 i=this[n];t.call(this,r),this.requestUpdate(n,i,e)}}throw Error("Unsupported decorator location: "+n)};function $(e){return(t,r)=>"object"==typeof r?A(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)}const S=globalThis,k=S.trustedTypes,T=k?k.createPolicy("lit-html",{createHTML:e=>e}):void 0,x="$lit$",P=`lit$${Math.random().toFixed(9).slice(2)}$`,C="?"+P,j=`<${C}>`,F=document,O=()=>F.createComment(""),R=e=>null===e||"object"!=typeof e&&"function"!=typeof e,U=Array.isArray,L="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,M=/>/g,W=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,I=/"/g,G=/^(?:script|style|textarea|title)$/i,z=(e,...t)=>({_$litType$:1,strings:e,values:t}),H=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),q=new WeakMap,X=F.createTreeWalker(F,129);function J(e,t){if(!U(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==T?T.createHTML(t):t}class K{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let i=0,o=0;const a=e.length-1,s=this.parts,[c,h]=((e,t)=>{const r=e.length-1,n=[];let i,o=2===t?"<svg>":3===t?"<math>":"",a=B;for(let t=0;t<r;t++){const r=e[t];let s,c,h=-1,l=0;for(;l<r.length&&(a.lastIndex=l,c=a.exec(r),null!==c);)l=a.lastIndex,a===B?"!--"===c[1]?a=D:void 0!==c[1]?a=M:void 0!==c[2]?(G.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=W):void 0!==c[3]&&(a=W):a===W?">"===c[0]?(a=i??B,h=-1):void 0===c[1]?h=-2:(h=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?W:'"'===c[3]?I:N):a===I||a===N?a=W:a===D||a===M?a=B:(a=W,i=void 0);const u=a===W&&e[t+1].startsWith("/>")?" ":"";o+=a===B?r+j:h>=0?(n.push(s),r.slice(0,h)+x+r.slice(h)+P+u):r+P+(-2===h?t:u)}return[J(e,o+(e[r]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),n]})(e,t);if(this.el=K.createElement(c,r),X.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=X.nextNode())&&s.length<a;){if(1===n.nodeType){if(n.hasAttributes())for(const e of n.getAttributeNames())if(e.endsWith(x)){const t=h[o++],r=n.getAttribute(e).split(P),a=/([.?@])?(.*)/.exec(t);s.push({type:1,index:i,name:a[2],strings:r,ctor:"."===a[1]?te:"?"===a[1]?re:"@"===a[1]?ne:ee}),n.removeAttribute(e)}else e.startsWith(P)&&(s.push({type:6,index:i}),n.removeAttribute(e));if(G.test(n.tagName)){const e=n.textContent.split(P),t=e.length-1;if(t>0){n.textContent=k?k.emptyScript:"";for(let r=0;r<t;r++)n.append(e[r],O()),X.nextNode(),s.push({type:2,index:++i});n.append(e[t],O())}}}else if(8===n.nodeType)if(n.data===C)s.push({type:2,index:i});else{let e=-1;for(;-1!==(e=n.data.indexOf(P,e+1));)s.push({type:7,index:i}),e+=P.length-1}i++}}static createElement(e,t){const r=F.createElement("template");return r.innerHTML=e,r}}function Y(e,t,r=e,n){if(t===H)return t;let i=void 0!==n?r.o?.[n]:r.l;const o=R(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),void 0===o?i=void 0:(i=new o(e),i._$AT(e,r,n)),void 0!==n?(r.o??=[])[n]=i:r.l=i),void 0!==i&&(t=Y(e,i._$AS(e,t.values),i,n)),t}class Z{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??F).importNode(t,!0);X.currentNode=n;let i=X.nextNode(),o=0,a=0,s=r[0];for(;void 0!==s;){if(o===s.index){let t;2===s.type?t=new Q(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new ie(i,this,e)),this._$AV.push(t),s=r[++a]}o!==s?.index&&(i=X.nextNode(),o++)}return X.currentNode=F,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 Q{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=Y(this,e,t),R(e)?e===V||null==e||""===e?(this._$AH!==V&&this._$AR(),this._$AH=V):e!==this._$AH&&e!==H&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>U(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&&R(this._$AH)?this._$AA.nextSibling.data=e:this.T(F.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=K.createElement(J(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new Z(n,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=q.get(e.strings);return void 0===t&&q.set(e.strings,t=new K(e)),t}k(e){U(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const i of e)n===t.length?t.push(r=new Q(this.O(O()),this.O(O()),this,this.options)):r=t[n],r._$AI(i),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 ee{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,i){this.type=1,this._$AH=V,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,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 i=this.strings;let o=!1;if(void 0===i)e=Y(this,e,t,0),o=!R(e)||e!==this._$AH&&e!==H,o&&(this._$AH=e);else{const n=e;let a,s;for(e=i[0],a=0;a<i.length-1;a++)s=Y(this,n[r+a],t,a),s===H&&(s=this._$AH[a]),o||=!R(s)||s!==this._$AH[a],s===V?e=V:e!==V&&(e+=(s??"")+i[a+1]),this._$AH[a]=s}o&&!n&&this.j(e)}j(e){e===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class te extends ee{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===V?void 0:e}}class re extends ee{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==V)}}class ne extends ee{constructor(e,t,r,n,i){super(e,t,r,n,i),this.type=5}_$AI(e,t=this){if((e=Y(this,e,t,0)??V)===H)return;const r=this._$AH,n=e===V&&r!==V||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==V&&(r===V||n);n&&this.element.removeEventListener(this.name,this,r),i&&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 ie{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){Y(this,e)}}const oe=S.litHtmlPolyfillSupport;oe?.(K,Q),(S.litHtmlVersions??=[]).push("3.2.0");class ae 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 i=n._$litPart$;if(void 0===i){const e=r?.renderBefore??null;n._$litPart$=i=new Q(t.insertBefore(O(),e),e,void 0,r??{})}return i._$AI(e),i})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return H}}ae._$litElement$=!0,ae.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ae});const se=globalThis.litElementPolyfillSupport;se?.({LitElement:ae}),(globalThis.litElementVersions??=[]).push("4.1.0");var ce,he=(ce=import.meta.url,async function(e={}){var t,r,n=e,i=new Promise(((e,n)=>{t=e,r=n})),o="object"==typeof window,a="undefined"!=typeof WorkerGlobalScope,s="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&"renderer"!=process.type;if(s){const{createRequire:e}=await Promise.resolve().then((function(){return Ae}));let t=import.meta.url;t.startsWith("data:")&&(t="/");var c=e(t)}var h,l,u=Object.assign({},n),d=(e,t)=>{throw t},f="";if(s){var b=c("fs"),p=c("path");import.meta.url.startsWith("data:")||(f=p.dirname(c("url").fileURLToPath(import.meta.url))+"/"),l=e=>(e=I(e)?new URL(e):e,b.readFileSync(e)),h=async e=>(e=I(e)?new URL(e):e,b.readFileSync(e,void 0)),process.argv.slice(2),d=(e,t)=>{throw process.exitCode=e,t}}else(o||a)&&(a?f=self.location.href:"undefined"!=typeof document&&document.currentScript&&(f=document.currentScript.src),ce&&(f=ce),f=f.startsWith("blob:")?"":f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1),a&&(l=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),h=async e=>{if(I(e))return 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)}));var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw Error(t.status+" : "+t.url)});var m=n.print||void 0,v=n.printErr||void 0;Object.assign(n,u),u=null;var w,g,y,_,E,A,$,S,k,T,x=n.wasmBinary,P=!1;function C(){var e=w.buffer;n.HEAP8=y=new Int8Array(e),n.HEAP16=E=new Int16Array(e),n.HEAPU8=_=new Uint8Array(e),n.HEAPU16=A=new Uint16Array(e),n.HEAP32=$=new Int32Array(e),n.HEAPU32=S=new Uint32Array(e),n.HEAPF32=k=new Float32Array(e),n.HEAPF64=T=new Float64Array(e)}var j=[],F=[],O=[];function R(){var e=n.preRun.shift();j.unshift(e)}var U=0,L=null;function B(){U++,n.monitorRunDependencies?.(U)}function D(){if(U--,n.monitorRunDependencies?.(U),0==U&&L){var e=L;L=null,e()}}function M(e){throw n.onAbort?.(e),v(e="Aborted("+e+")"),P=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),r(e),e}var W,N=e=>e.startsWith("data:application/octet-stream;base64,"),I=e=>e.startsWith("file://");class G{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var z,H,V,q=e=>{for(;0<e.length;)e.shift()(n)},X=n.noExitRuntime||!0,J="undefined"!=typeof TextDecoder?new TextDecoder:void 0,K=(e,t=0,r=NaN)=>{var n=t+r;for(r=t;e[r]&&!(r>=n);)++r;if(16<r-t&&e.buffer&&J)return J.decode(e.subarray(t,r));for(n="";t<r;){var i=e[t++];if(128&i){var o=63&e[t++];if(192==(224&i))n+=String.fromCharCode((31&i)<<6|o);else{var a=63&e[t++];65536>(i=224==(240&i)?(15&i)<<12|o<<6|a:(7&i)<<18|o<<12|a<<6|63&e[t++])?n+=String.fromCharCode(i):(i-=65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else n+=String.fromCharCode(i)}return n},Y=e=>{for(var t="";_[e];)t+=z[_[e++]];return t},Z={},Q={},ee={},te=e=>{throw new H(e)},re=(e,t,r)=>{function n(t){if((t=r(t)).length!==e.length)throw new V("Mismatched type converter count");for(var n=0;n<e.length;++n)ne(e[n],t[n])}e.forEach((e=>ee[e]=t));var i=Array(t.length),o=[],a=0;t.forEach(((e,t)=>{Q.hasOwnProperty(e)?i[t]=Q[e]:(o.push(e),Z.hasOwnProperty(e)||(Z[e]=[]),Z[e].push((()=>{i[t]=Q[e],++a===o.length&&n(i)})))})),0===o.length&&n(i)};function ne(e,t,r={}){return function(e,t,r={}){var n=t.name;if(!e)throw new H(`type "${n}" must have a positive integer typeid pointer`);if(Q.hasOwnProperty(e)){if(r.vd)return;throw new H(`Cannot register type '${n}' twice`)}Q[e]=t,delete ee[e],Z.hasOwnProperty(e)&&(t=Z[e],delete Z[e],t.forEach((e=>e())))}(e,t,r)}var ie=e=>{throw new H(e.hb.pb.mb.name+" instance already deleted")},oe=!1,ae=()=>{},se=(e,t,r)=>t===r?e:void 0===r.tb||null===(e=se(e,t,r.tb))?null:r.md(e),he={},le={},ue=(e,t)=>{if(!t.pb||!t.lb)throw new V("makeClassHandle requires ptr and ptrType");if(!!t.wb!=!!t.sb)throw new V("Both smartPtrType and smartPtr must be specified");return t.count={value:1},de(Object.create(e,{hb:{value:t,writable:!0}}))},de=e=>"undefined"==typeof FinalizationRegistry?(de=e=>e,e):(oe=new FinalizationRegistry((e=>{--(e=e.hb).count.value,0===e.count.value&&(e.sb?e.wb.Gb(e.sb):e.pb.mb.Gb(e.lb))})),de=e=>{var t=e.hb;return t.sb&&oe.register(e,{hb:t},e),e},ae=e=>{oe.unregister(e)},de(e));function fe(){}var be=(e,t)=>Object.defineProperty(t,"name",{value:e}),pe=(e,t,r)=>{if(void 0===e[t].qb){var n=e[t];e[t]=function(...n){if(!e[t].qb.hasOwnProperty(n.length))throw new H(`Function '${r}' called with an invalid number of arguments (${n.length}) - expects one of (${e[t].qb})!`);return e[t].qb[n.length].apply(this,n)},e[t].qb=[],e[t].qb[n.Tb]=n}},me=(e,t,r)=>{if(n.hasOwnProperty(e)){if(void 0===r||void 0!==n[e].qb&&void 0!==n[e].qb[r])throw new H(`Cannot register public name '${e}' twice`);if(pe(n,e,e),n[e].qb.hasOwnProperty(r))throw new H(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`);n[e].qb[r]=t}else n[e]=t,n[e].Tb=r};function ve(e,t,r,n,i,o,a,s){this.name=e,this.constructor=t,this.Nb=r,this.Gb=n,this.tb=i,this.qd=o,this.ac=a,this.md=s,this.Dd=[]}var we=(e,t,r)=>{for(;t!==r;){if(!t.ac)throw new H(`Expected null or instance of ${r.name}, got an instance of ${t.name}`);e=t.ac(e),t=t.tb}return e};function ge(e,t){if(null===t){if(this.sc)throw new H(`null is not a valid ${this.name}`);return 0}if(!t.hb)throw new H(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.hb.lb)throw new H(`Cannot pass deleted object as a pointer of type ${this.name}`);return we(t.hb.lb,t.hb.pb.mb,this.mb)}function ye(e,t){if(null===t){if(this.sc)throw new H(`null is not a valid ${this.name}`);if(this.fc){var r=this.Ed();return null!==e&&e.push(this.Gb,r),r}return 0}if(!t||!t.hb)throw new H(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.hb.lb)throw new H(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.ec&&t.hb.pb.ec)throw new H(`Cannot convert argument of type ${t.hb.wb?t.hb.wb.name:t.hb.pb.name} to parameter type ${this.name}`);if(r=we(t.hb.lb,t.hb.pb.mb,this.mb),this.fc){if(void 0===t.hb.sb)throw new H("Passing raw pointer to smart pointer is illegal");switch(this.Gd){case 0:if(t.hb.wb!==this)throw new H(`Cannot convert argument of type ${t.hb.wb?t.hb.wb.name:t.hb.pb.name} to parameter type ${this.name}`);r=t.hb.sb;break;case 1:r=t.hb.sb;break;case 2:if(t.hb.wb===this)r=t.hb.sb;else{var n=t.clone();r=this.Fd(r,Ge((()=>n.delete()))),null!==e&&e.push(this.Gb,r)}break;default:throw new H("Unsupporting sharing policy")}}return r}function _e(e,t){if(null===t){if(this.sc)throw new H(`null is not a valid ${this.name}`);return 0}if(!t.hb)throw new H(`Cannot pass "${He(t)}" as a ${this.name}`);if(!t.hb.lb)throw new H(`Cannot pass deleted object as a pointer of type ${this.name}`);if(t.hb.pb.ec)throw new H(`Cannot convert argument of type ${t.hb.pb.name} to parameter type ${this.name}`);return we(t.hb.lb,t.hb.pb.mb,this.mb)}function Ee(e){return this.fromWireType(S[e>>2])}function $e(e,t,r,n,i,o,a,s,c,h,l){this.name=e,this.mb=t,this.sc=r,this.ec=n,this.fc=i,this.Cd=o,this.Gd=a,this.Uc=s,this.Ed=c,this.Fd=h,this.Gb=l,i||void 0!==t.tb?this.toWireType=ye:(this.toWireType=n?ge:_e,this.zb=null)}var Se,ke,Te=(e,t,r)=>{if(!n.hasOwnProperty(e))throw new V("Replacing nonexistent public symbol");void 0!==n[e].qb&&void 0!==r?n[e].qb[r]=t:(n[e]=t,n[e].Tb=r)},xe=(e,t)=>{var r=(e=Y(e)).includes("j")?((e,t)=>(...r)=>((e,t,r=[])=>(e.includes("j")?(e=e.replace(/p/g,"i"),t=(0,n["dynCall_"+e])(t,...r)):t=Se.get(t)(...r),t))(e,t,r))(e,t):Se.get(t);if("function"!=typeof r)throw new H(`unknown function pointer with signature ${e}: ${t}`);return r},Pe=e=>{e=$r(e);var t=Y(e);return Er(e),t},Ce=(e,t)=>{var r=[],n={};throw t.forEach((function e(t){n[t]||Q[t]||(ee[t]?ee[t].forEach(e):(r.push(t),n[t]=!0))})),new ke(`${e}: `+r.map(Pe).join([", "]))},je=(e,t)=>{for(var r=[],n=0;n<e;n++)r.push(S[t+4*n>>2]);return r},Fe=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function Oe(e){for(var t=1;t<e.length;++t)if(null!==e[t]&&void 0===e[t].zb)return!0;return!1}function Re(e,t,r,n,i,o){var a=t.length;if(2>a)throw new H("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=null!==t[1]&&null!==r,c=Oe(t);for(r="void"!==t[0].name,n=[e,te,n,i,Fe,t[0],t[1]],i=0;i<a-2;++i)n.push(t[i+2]);if(!c)for(i=s?1:2;i<t.length;++i)null!==t[i].zb&&n.push(t[i].zb);c=Oe(t),i=t.length-2;var h=[],l=["fn"];for(s&&l.push("thisWired"),a=0;a<i;++a)h.push(`arg${a}`),l.push(`arg${a}Wired`);h=h.join(","),l=l.join(","),h=`return function (${h}) {\n`,c&&(h+="var destructors = [];\n");var u=c?"destructors":"null",d="humanName throwBindingError invoker fn runDestructors retType classParam".split(" ");for(s&&(h+=`var thisWired = classParam['toWireType'](${u}, this);\n`),a=0;a<i;++a)h+=`var arg${a}Wired = argType${a}['toWireType'](${u}, arg${a});\n`,d.push(`argType${a}`);if(h+=(r||o?"var rv = ":"")+`invoker(${l});\n`,c)h+="runDestructors(destructors);\n";else for(a=s?1:2;a<t.length;++a)o=1===a?"thisWired":"arg"+(a-2)+"Wired",null!==t[a].zb&&(h+=`${o}_dtor(${o});\n`,d.push(`${o}_dtor`));r&&(h+="var ret = retType['fromWireType'](rv);\nreturn ret;\n");let[f,b]=[d,h+"}\n"];return f.push(b),t=function(e){var t=Function;if(!(t instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof t} which is not a function`);var r=be(t.name||"unknownFunctionName",(function(){}));return r.prototype=t.prototype,r=new r,(e=t.apply(r,e))instanceof Object?e:r}(f)(...n),be(e,t)}var Ue,Le,Be,De,Me=e=>{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e},We=[],Ne=[],Ie=e=>{9<e&&0==--Ne[e+1]&&(Ne[e]=void 0,We.push(e))},Ge=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const t=We.pop()||Ne.length;return Ne[t]=e,Ne[t+1]=1,t}},ze={name:"emscripten::val",fromWireType:e=>{if(!e)throw new H("Cannot use deleted val. handle = "+e);var t=Ne[e];return Ie(e),t},toWireType:(e,t)=>Ge(t),Fb:8,readValueFromPointer:Ee,zb:null},He=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},Ve=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(k[e>>2])};case 8:return function(e){return this.fromWireType(T[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},qe=(e,t,r)=>{switch(t){case 1:return r?e=>y[e]:e=>_[e];case 2:return r?e=>E[e>>1]:e=>A[e>>1];case 4:return r?e=>$[e>>2]:e=>S[e>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},Xe=(e,t,r,n)=>{if(!(0<n))return 0;var i=r;n=r+n-1;for(var o=0;o<e.length;++o){var a=e.charCodeAt(o);if(55296<=a&&57343>=a&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),127>=a){if(r>=n)break;t[r++]=a}else{if(2047>=a){if(r+1>=n)break;t[r++]=192|a>>6}else{if(65535>=a){if(r+2>=n)break;t[r++]=224|a>>12}else{if(r+3>=n)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63}t[r++]=128|a>>6&63}t[r++]=128|63&a}}return t[r]=0,r-i},Je=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);127>=n?t++:2047>=n?t+=2:55296<=n&&57343>=n?(t+=4,++r):t+=3}return t},Ke="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Ye=(e,t)=>{for(var r=e>>1,n=r+t/2;!(r>=n)&&A[r];)++r;if(32<(r<<=1)-e&&Ke)return Ke.decode(_.subarray(e,r));for(r="",n=0;!(n>=t/2);++n){var i=E[e+2*n>>1];if(0==i)break;r+=String.fromCharCode(i)}return r},Ze=(e,t,r)=>{if(r??=2147483647,2>r)return 0;var n=t;r=(r-=2)<2*e.length?r/2:e.length;for(var i=0;i<r;++i)E[t>>1]=e.charCodeAt(i),t+=2;return E[t>>1]=0,t-n},Qe=e=>2*e.length,et=(e,t)=>{for(var r=0,n="";!(r>=t/4);){var i=$[e+4*r>>2];if(0==i)break;++r,65536<=i?(i-=65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i)):n+=String.fromCharCode(i)}return n},tt=(e,t,r)=>{if(r??=2147483647,4>r)return 0;var n=t;r=n+r-4;for(var i=0;i<e.length;++i){var o=e.charCodeAt(i);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++i)),$[t>>2]=o,(t+=4)+4>r)break}return $[t>>2]=0,t-n},rt=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);55296<=n&&57343>=n&&++r,t+=4}return t},nt=0,it={},ot=e=>{g=e,X||0<nt||(n.onExit?.(e),P=!0),d(e,new G(e))},at=e=>{var t="ANGLE_instanced_arrays EXT_blend_minmax EXT_disjoint_timer_query EXT_frag_depth EXT_shader_texture_lod EXT_sRGB OES_element_index_uint OES_fbo_render_mipmap OES_standard_derivatives OES_texture_float OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_depth_texture WEBGL_draw_buffers EXT_color_buffer_float EXT_conservative_depth EXT_disjoint_timer_query_webgl2 EXT_texture_norm16 NV_shader_noperspective_interpolation WEBGL_clip_cull_distance EXT_clip_control EXT_color_buffer_half_float EXT_depth_clamp EXT_float_blend EXT_polygon_offset_clamp EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic KHR_parallel_shader_compile OES_texture_float_linear WEBGL_blend_func_extended WEBGL_compressed_texture_astc WEBGL_compressed_texture_etc WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context WEBGL_multi_draw WEBGL_polygon_mode".split(" ");return(e.getSupportedExtensions()||[]).filter((e=>t.includes(e)))},st=1,ct=[],ht=[],lt=[],ut=[],dt=[],ft=[],bt=[],pt=[],mt=[1,1,2,2,4,4,4,2,3,4,8],vt=e=>{for(var t=st++,r=e.length;r<t;r++)e[r]=null;return t},wt=(e,t,r,n)=>{for(var i=0;i<e;i++){var o=Ue[r](),a=o&&vt(n);o?(o.name=a,n[a]=o):Le||=1282,$[t+4*i>>2]=a}},gt=[],yt={},_t=["default","low-power","high-performance"],Et=[0,"undefined"!=typeof document?document:0,"undefined"!=typeof window?window:0],At=e=>"]"==e.slice(-1)&&e.lastIndexOf("["),$t=[],St=e=>0==(e-=5120)?y:1==e?_:2==e?E:4==e?$:6==e?k:5==e||28922==e||28520==e||30779==e||30782==e?S:A,kt=e=>{var t=Ue.ld;if(t){var r=t.$b[e];return"number"==typeof r&&(t.$b[e]=r=Ue.getUniformLocation(t,t.Yc[e]+(0<r?`[${r}]`:""))),r}Le||=1282},Tt=[],xt=e=>(xt=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);if(s)try{var e=c("crypto");if(e.randomFillSync)return t=>e.randomFillSync(t);var t=e.randomBytes;return e=>(e.set(t(e.byteLength)),e)}catch(e){}M("initRandomDevice")})())(e),Pt=(e,t)=>{for(var r=0,n=e.length-1;0<=n;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},Ct=e=>{var t="/"===e.charAt(0),r="/"===e.substr(-1);return(e=Pt(e.split("/").filter((e=>!!e)),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},jt=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],e||t?(t&&=t.substr(0,t.length-1),e+t):"."},Ft=e=>{if("/"===e)return"/";var t=(e=(e=Ct(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},Ot=(...e)=>{for(var t="",r=!1,n=e.length-1;-1<=n&&!r;n--){if("string"!=typeof(r=0<=n?e[n]:ur.cwd()))throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,r="/"===r.charAt(0)}return t=Pt(t.split("/").filter((e=>!!e)),!r).join("/"),(r?"/":"")+t||"."},Rt=(e,t)=>{function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;0<=r&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=Ot(e).substr(1),t=Ot(t).substr(1),e=r(e.split("/")),t=r(t.split("/"));for(var n=Math.min(e.length,t.length),i=n,o=0;o<n;o++)if(e[o]!==t[o]){i=o;break}for(n=[],o=i;o<e.length;o++)n.push("..");return(n=n.concat(t.slice(i))).join("/")},Ut=[];function Lt(e){var t=Array(Je(e)+1);return e=Xe(e,t,0,t.length),t.length=e,t}var Bt=[];function Dt(e,t){Bt[e]={input:[],output:[],Pb:t},Xt(e,Mt)}var Mt={open(e){var t=Bt[e.node.rdev];if(!t)throw new ur.gb(43);e.tty=t,e.seekable=!1},close(e){e.tty.Pb.fsync(e.tty)},fsync(e){e.tty.Pb.fsync(e.tty)},read(e,t,r,n){if(!e.tty||!e.tty.Pb.Kc)throw new ur.gb(60);for(var i=0,o=0;o<n;o++){try{var a=e.tty.Pb.Kc(e.tty)}catch(e){throw new ur.gb(29)}if(void 0===a&&0===i)throw new ur.gb(6);if(null==a)break;i++,t[r+o]=a}return i&&(e.node.atime=Date.now()),i},write(e,t,r,n){if(!e.tty||!e.tty.Pb.wc)throw new ur.gb(60);try{for(var i=0;i<n;i++)e.tty.Pb.wc(e.tty,t[r+i])}catch(e){throw new ur.gb(29)}return n&&(e.node.mtime=e.node.ctime=Date.now()),i}},Wt={Kc(){e:{if(!Ut.length){var e=null;if(s){var t=Buffer.alloc(256),r=0,n=process.stdin.fd;try{r=b.readSync(n,t,0,256)}catch(e){if(!e.toString().includes("EOF"))throw e;r=0}0<r&&(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){e=null;break e}Ut=Lt(e)}e=Ut.shift()}return e},wc(e,t){null===t||10===t?(m(K(e.output)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&0<e.output.length&&(m(K(e.output)),e.output=[])},de:()=>({Od:25856,Qd:5,Nd:191,Pd:35387,Md:[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]}),ee:()=>0,fe:()=>[24,80]},Nt={wc(e,t){null===t||10===t?(v(K(e.output)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&0<e.output.length&&(v(K(e.output)),e.output=[])}};function It(e,t){var r=e.kb?e.kb.length:0;r>=t||(t=Math.max(t,r*(1048576>r?2:1.125)>>>0),0!=r&&(t=Math.max(t,256)),r=e.kb,e.kb=new Uint8Array(t),0<e.nb&&e.kb.set(r.subarray(0,e.nb),0))}var Gt={Cb:null,ob:()=>Gt.createNode(null,"/",16895,0),createNode(e,t,r,n){if(24576==(61440&r)||ur.isFIFO(r))throw new ur.gb(63);return Gt.Cb||(Gt.Cb={dir:{node:{Ab:Gt.ib.Ab,rb:Gt.ib.rb,lookup:Gt.ib.lookup,Eb:Gt.ib.Eb,rename:Gt.ib.rename,unlink:Gt.ib.unlink,rmdir:Gt.ib.rmdir,readdir:Gt.ib.readdir,symlink:Gt.ib.symlink},stream:{vb:Gt.jb.vb}},file:{node:{Ab:Gt.ib.Ab,rb:Gt.ib.rb},stream:{vb:Gt.jb.vb,read:Gt.jb.read,write:Gt.jb.write,Sb:Gt.jb.Sb,Ob:Gt.jb.Ob,Xb:Gt.jb.Xb}},link:{node:{Ab:Gt.ib.Ab,rb:Gt.ib.rb,readlink:Gt.ib.readlink},stream:{}},Ac:{node:{Ab:Gt.ib.Ab,rb:Gt.ib.rb},stream:ur.hd}}),Jt((r=ur.createNode(e,t,r,n)).mode)?(r.ib=Gt.Cb.dir.node,r.jb=Gt.Cb.dir.stream,r.kb={}):ur.isFile(r.mode)?(r.ib=Gt.Cb.file.node,r.jb=Gt.Cb.file.stream,r.nb=0,r.kb=null):40960==(61440&r.mode)?(r.ib=Gt.Cb.link.node,r.jb=Gt.Cb.link.stream):8192==(61440&r.mode)&&(r.ib=Gt.Cb.Ac.node,r.jb=Gt.Cb.Ac.stream),r.atime=r.mtime=r.ctime=Date.now(),e&&(e.kb[t]=r,e.atime=e.mtime=e.ctime=r.atime),r},ce:e=>e.kb?e.kb.subarray?e.kb.subarray(0,e.nb):new Uint8Array(e.kb):new Uint8Array(0),ib:{Ab(e){var t={};return t.dev=8192==(61440&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,t.size=Jt(e.mode)?4096:ur.isFile(e.mode)?e.nb:40960==(61440&e.mode)?e.link.length:0,t.atime=new Date(e.atime),t.mtime=new Date(e.mtime),t.ctime=new Date(e.ctime),t.ed=4096,t.blocks=Math.ceil(t.size/t.ed),t},rb(e,t){for(var r of["mode","atime","mtime","ctime"])t[r]&&(e[r]=t[r]);void 0!==t.size&&e.nb!=(t=t.size)&&(0==t?(e.kb=null,e.nb=0):(r=e.kb,e.kb=new Uint8Array(t),r&&e.kb.set(r.subarray(0,Math.min(t,e.nb))),e.nb=t))},lookup(){throw Gt.Ic},Eb:(e,t,r,n)=>Gt.createNode(e,t,r,n),rename(e,t,r){try{var n=Kt(t,r)}catch(e){}if(n){if(Jt(e.mode))for(var i in n.kb)throw new ur.gb(55);Yt(n)}delete e.parent.kb[e.name],t.kb[r]=e,e.name=r,t.ctime=t.mtime=e.parent.ctime=e.parent.mtime=Date.now()},unlink(e,t){delete e.kb[t],e.ctime=e.mtime=Date.now()},rmdir(e,t){var r,n=Kt(e,t);for(r in n.kb)throw new ur.gb(55);delete e.kb[t],e.ctime=e.mtime=Date.now()},readdir:e=>[".","..",...Object.keys(e.kb)],symlink:(e,t,r)=>((e=Gt.createNode(e,t,41471,0)).link=r,e),readlink(e){if(40960!=(61440&e.mode))throw new ur.gb(28);return e.link}},jb:{read(e,t,r,n,i){var o=e.node.kb;if(i>=e.node.nb)return 0;if(8<(e=Math.min(e.node.nb-i,n))&&o.subarray)t.set(o.subarray(i,i+e),r);else for(n=0;n<e;n++)t[r+n]=o[i+n];return e},write(e,t,r,n,i,o){if(t.buffer===y.buffer&&(o=!1),!n)return 0;if((e=e.node).mtime=e.ctime=Date.now(),t.subarray&&(!e.kb||e.kb.subarray)){if(o)return e.kb=t.subarray(r,r+n),e.nb=n;if(0===e.nb&&0===i)return e.kb=t.slice(r,r+n),e.nb=n;if(i+n<=e.nb)return e.kb.set(t.subarray(r,r+n),i),n}if(It(e,i+n),e.kb.subarray&&t.subarray)e.kb.set(t.subarray(r,r+n),i);else for(o=0;o<n;o++)e.kb[i+o]=t[r+o];return e.nb=Math.max(e.nb,i+n),n},vb(e,t,r){if(1===r?t+=e.position:2===r&&ur.isFile(e.node.mode)&&(t+=e.node.nb),0>t)throw new ur.gb(28);return t},Sb(e,t,r){It(e.node,t+r),e.node.nb=Math.max(e.node.nb,t+r)},Ob(e,t,r,n,i){if(!ur.isFile(e.node.mode))throw new ur.gb(43);if(e=e.node.kb,2&i||!e||e.buffer!==y.buffer){if(n=!0,M(),!(i=void 0))throw new ur.gb(48);e&&((0<r||r+t<e.length)&&(e=e.subarray?e.subarray(r,r+t):Array.prototype.slice.call(e,r,r+t)),y.set(e,i))}else n=!1,i=e.byteOffset;return{lb:i,Id:n}},Xb:(e,t,r,n)=>(Gt.jb.write(e,t,0,n,r,!1),0)}},zt=n.preloadPlugins||[],Ht=(e,t,r,n,i,o,a,s,c,l)=>{function u(r){function h(r){l?.(),s||ur.mc(e,t,r,n,i,c),o?.(),D()}((e,t,r,n)=>{"undefined"!=typeof Browser&&qt();var i=!1;return zt.forEach((o=>{!i&&o.canHandle(t)&&(o.handle(e,t,r,n),i=!0)})),i})(r,d,h,(()=>{a?.(),D()}))||h(r)}var d=t?Ot(Ct(e+"/"+t)):e;B(),"string"==typeof r?(async e=>(e=await h(e),new Uint8Array(e)))(r).then(u,a):u(r)},Vt=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r};function qt(){var e,t,r;ur.rc=!0,e??=n.stdin,t??=n.stdout,r??=n.stderr,e?ur.Db("/dev","stdin",e):ur.symlink("/dev/tty","/dev/stdin"),t?ur.Db("/dev","stdout",null,t):ur.symlink("/dev/tty","/dev/stdout"),r?ur.Db("/dev","stderr",null,r):ur.symlink("/dev/tty1","/dev/stderr"),ur.open("/dev/stdin",0),ur.open("/dev/stdout",1),ur.open("/dev/stderr",1)}function Xt(e,t){ur.Gc[e]={jb:t}}function Jt(e){return 16384==(61440&e)}function Kt(e,t){var r=Jt(e.mode)?(r=nr(e,"x"))?r:e.ib.lookup?0:2:54;if(r)throw new ur.gb(r);for(r=ur.Bb[er(e.id,t)];r;r=r.Kb)if(r.parent.id===e.id&&r.name===t)return r;return ur.lookup(e,t)}function Yt(e){var t=er(e.parent.id,e.name);if(ur.Bb[t]===e)ur.Bb[t]=e.Kb;else for(t=ur.Bb[t];t;){if(t.Kb===e){t.Kb=e.Kb;break}t=t.Kb}}function Zt(e,t={}){if(!e)return{path:"",node:null};t.dc??(t.dc=!0),"/"===e.charAt(0)||(e=ur.cwd()+"/"+e);var r=0;e:for(;40>r;r++){e=e.split("/").filter((e=>!!e&&"."!==e));for(var n=ur.root,i="/",o=0;o<e.length;o++){var a=o===e.length-1;if(a&&t.parent)break;if(".."===e[o])i=jt(i),n=n.parent;else{i=Ct(i+"/"+e[o]);try{n=Kt(n,e[o])}catch(e){if(44===e?.oc&&a&&t.Ad)return{path:i};throw e}if(!n.yb||a&&!t.dc||(n=n.yb.root),40960==(61440&n.mode)&&(!a||t.xb)){if(!n.ib.readlink)throw new ur.gb(52);"/"===(n=n.ib.readlink(n)).charAt(0)||(n=jt(i)+"/"+n),e=n+"/"+e.slice(o+1).join("/");continue e}}}return{path:i,node:n}}throw new ur.gb(32)}function Qt(e){for(var t;;){if(ur.Nc(e))return e=e.ob.Sc,t?"/"!==e[e.length-1]?`${e}/${t}`:e+t:e;t=t?`${e.name}/${t}`:e.name,e=e.parent}}function er(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%ur.Bb.length}function tr(e){var t=er(e.parent.id,e.name);e.Kb=ur.Bb[t],ur.Bb[t]=e}function rr(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t}function nr(e,t){return ur.Lc?0:!t.includes("r")||292&e.mode?t.includes("w")&&!(146&e.mode)||t.includes("x")&&!(73&e.mode)?2:0:2}function ir(e,t){if(!Jt(e.mode))return 54;try{return Kt(e,t),20}catch(e){}return nr(e,"wx")}function or(e,t,r){try{var n=Kt(e,t)}catch(e){return e.oc}if(e=nr(e,"wx"))return e;if(r){if(!Jt(n.mode))return 54;if(ur.Nc(n)||Qt(n)===ur.cwd())return 10}else if(Jt(n.mode))return 31;return 0}function ar(e){if(!(e=ur.td(e)))throw new ur.gb(8);return e}function sr(e,t=-1){if(e=Object.assign(new ur.bd,e),-1==t)e:{for(t=0;t<=ur.dd;t++)if(!ur.streams[t])break e;throw new ur.gb(33)}return e.fd=t,ur.streams[t]=e}function cr(e){var t=[];for(e=[e];e.length;){var r=e.pop();t.push(r),e.push(...r.Wb)}return t}function hr(e,t,r){return void 0===r&&(r=t,t=438),ur.Eb(e,8192|t,r)}function lr(e){if(!(e.xd||e.yd||e.link||e.kb)){if("undefined"!=typeof XMLHttpRequest)throw 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.kb=l(e.url),e.nb=e.kb.length}catch(e){throw new ur.gb(29)}}}for(var ur={root:null,Wb:[],Gc:{},streams:[],vc:1,Bb:null,Dc:"/",rc:!1,Lc:!0,gb:class{name="ErrnoError";constructor(e){this.oc=e}},pd:null,kc:0,Vc:{},bd:class{ub={};node=null;get object(){return this.node}set object(e){this.node=e}get flags(){return this.ub.flags}set flags(e){this.ub.flags=e}get position(){return this.ub.position}set position(e){this.ub.position=e}},ad:class{ib={};jb={};yb=null;constructor(e,t,r,n){e||=this,this.parent=e,this.ob=e.ob,this.id=ur.vc++,this.name=t,this.mode=r,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return!(365&~this.mode)}set read(e){e?this.mode|=365:this.mode&=-366}get write(){return!(146&~this.mode)}set write(e){e?this.mode|=146:this.mode&=-147}get yd(){return Jt(this.mode)}get xd(){return 8192==(61440&this.mode)}},createNode:(e,t,r,n)=>(tr(e=new ur.ad(e,t,r,n)),e),Nc:e=>e===e.parent,isFile:e=>32768==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>!(49152&~e),dd:4096,td:e=>ur.streams[e],Td:(e,t=-1)=>(e=sr(e,t),e.jb?.Sd?.(e),e),hd:{open(e){e.jb=ur.rd(e.node.rdev).jb,e.jb.open?.(e)},vb(){throw new ur.gb(70)}},tc:e=>e>>8,ie:e=>255&e,Jb:(e,t)=>e<<8|t,rd:e=>ur.Gc[e],Xc(e,t){function r(e){return ur.kc--,t(e)}function n(e){if(e){if(!n.nd)return n.nd=!0,r(e)}else++o>=i.length&&r(null)}"function"==typeof e&&(t=e,e=!1),ur.kc++,1<ur.kc&&v(`warning: ${ur.kc} FS.syncfs operations in flight at once, probably just doing extra work`);var i=cr(ur.root.ob),o=0;i.forEach((t=>{if(!t.type.Xc)return n(null);t.type.Xc(t,e,n)}))},ob(e,t,r){var n="/"===r;if(n&&ur.root)throw new ur.gb(10);if(!n&&r){var i=Zt(r,{dc:!1});if(r=i.path,(i=i.node).yb)throw new ur.gb(10);if(!Jt(i.mode))throw new ur.gb(54)}return(e=e.ob(t={type:e,Bd:t,Sc:r,Wb:[]})).ob=t,t.root=e,n?ur.root=e:i&&(i.yb=t,i.ob&&i.ob.Wb.push(t)),e},se(e){if(!(e=Zt(e,{dc:!1})).node.yb)throw new ur.gb(28);var t=(e=e.node).yb,r=cr(t);Object.keys(ur.Bb).forEach((e=>{for(e=ur.Bb[e];e;){var t=e.Kb;r.includes(e.ob)&&Yt(e),e=t}})),e.yb=null,e.ob.Wb.splice(e.ob.Wb.indexOf(t),1)},lookup:(e,t)=>e.ib.lookup(e,t),Eb(e,t,r){var n=Zt(e,{parent:!0}).node;if(!(e=Ft(e))||"."===e||".."===e)throw new ur.gb(28);var i=ir(n,e);if(i)throw new ur.gb(i);if(!n.ib.Eb)throw new ur.gb(63);return n.ib.Eb(n,e,t,r)},Wc(e){var t={Ld:4096,$d:4096,blocks:1e6,Kd:5e5,Jd:5e5,files:ur.vc,Yd:ur.vc-1,ae:42,flags:2,me:255};return e=Zt(e,{xb:!0}).node,e?.ib.Wc&&Object.assign(t,e.ib.Wc(e.ob.Bd.root)),t},create:(e,t=438)=>ur.Eb(e,4095&t|32768,0),mkdir:(e,t=511)=>ur.Eb(e,1023&t|16384,0),ke(e,t){e=e.split("/");for(var r="",n=0;n<e.length;++n)if(e[n]){r+="/"+e[n];try{ur.mkdir(r,t)}catch(e){if(20!=e.oc)throw e}}},symlink(e,t){if(!Ot(e))throw new ur.gb(44);var r=Zt(t,{parent:!0}).node;if(!r)throw new ur.gb(44);var n=ir(r,t=Ft(t));if(n)throw new ur.gb(n);if(!r.ib.symlink)throw new ur.gb(63);return r.ib.symlink(r,t,e)},rename(e,t){var r=jt(e),n=jt(t),i=Ft(e),o=Ft(t),a=Zt(e,{parent:!0}),s=a.node;if(a=(a=Zt(t,{parent:!0})).node,!s||!a)throw new ur.gb(44);if(s.ob!==a.ob)throw new ur.gb(75);var c=Kt(s,i);if("."!==(e=Rt(e,n)).charAt(0))throw new ur.gb(28);if("."!==(e=Rt(t,r)).charAt(0))throw new ur.gb(55);try{var h=Kt(a,o)}catch(e){}if(c!==h){if(i=or(s,i,t=Jt(c.mode)))throw new ur.gb(i);if(i=h?or(a,o,t):ir(a,o))throw new ur.gb(i);if(!s.ib.rename)throw new ur.gb(63);if(c.yb||h&&h.yb)throw new ur.gb(10);if(a!==s&&(i=nr(s,"w")))throw new ur.gb(i);Yt(c);try{s.ib.rename(c,a,o),c.parent=a}catch(e){throw e}finally{tr(c)}}},rmdir(e){var t=Zt(e,{parent:!0}).node,r=Kt(t,e=Ft(e)),n=or(t,e,!0);if(n)throw new ur.gb(n);if(!t.ib.rmdir)throw new ur.gb(63);if(r.yb)throw new ur.gb(10);t.ib.rmdir(t,e),Yt(r)},readdir(e){if(!(e=Zt(e,{xb:!0}).node).ib.readdir)throw new ur.gb(54);return e.ib.readdir(e)},unlink(e){var t=Zt(e,{parent:!0}).node;if(!t)throw new ur.gb(44);var r=Kt(t,e=Ft(e)),n=or(t,e,!1);if(n)throw new ur.gb(n);if(!t.ib.unlink)throw new ur.gb(63);if(r.yb)throw new ur.gb(10);t.ib.unlink(t,e),Yt(r)},readlink(e){if(!(e=Zt(e).node))throw new ur.gb(44);if(!e.ib.readlink)throw new ur.gb(28);return e.ib.readlink(e)},stat(e,t){if(!(e=Zt(e,{xb:!t}).node))throw new ur.gb(44);if(!e.ib.Ab)throw new ur.gb(63);return e.ib.Ab(e)},lstat:e=>ur.stat(e,!0),chmod(e,t,r){if(!(e="string"==typeof e?Zt(e,{xb:!r}).node:e).ib.rb)throw new ur.gb(63);e.ib.rb(e,{mode:4095&t|-4096&e.mode,ctime:Date.now()})},lchmod(e,t){ur.chmod(e,t,!0)},fchmod(e,t){e=ar(e),ur.chmod(e.node,t)},chown(e,t,r,n){if(!(e="string"==typeof e?Zt(e,{xb:!n}).node:e).ib.rb)throw new ur.gb(63);e.ib.rb(e,{timestamp:Date.now()})},lchown(e,t,r){ur.chown(e,t,r,!0)},fchown(e,t,r){e=ar(e),ur.chown(e.node,t,r)},truncate(e,t){if(0>t)throw new ur.gb(28);if(!(e="string"==typeof e?Zt(e,{xb:!0}).node:e).ib.rb)throw new ur.gb(63);if(Jt(e.mode))throw new ur.gb(31);if(!ur.isFile(e.mode))throw new ur.gb(28);var r=nr(e,"w");if(r)throw new ur.gb(r);e.ib.rb(e,{size:t,timestamp:Date.now()})},be(e,t){if(!(2097155&(e=ar(e)).flags))throw new ur.gb(28);ur.truncate(e.node,t)},ue(e,t,r){(e=Zt(e,{xb:!0}).node).ib.rb(e,{atime:t,mtime:r})},open(e,t,r=438){if(""===e)throw new ur.gb(44);if("string"==typeof t){var i={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[t];if(void 0===i)throw Error(`Unknown file open mode: ${t}`);t=i}r=64&t?4095&r|32768:0,"object"==typeof e?i=e:(i=(e=Zt(e,{xb:!(131072&t),Ad:!0})).node,e=e.path);var o=!1;if(64&t)if(i){if(128&t)throw new ur.gb(20)}else i=ur.Eb(e,r,0),o=!0;if(!i)throw new ur.gb(44);if(8192==(61440&i.mode)&&(t&=-513),65536&t&&!Jt(i.mode))throw new ur.gb(54);if(!o&&(r=i?40960==(61440&i.mode)?32:Jt(i.mode)&&("r"!==rr(t)||512&t)?31:nr(i,rr(t)):44))throw new ur.gb(r);return 512&t&&!o&&ur.truncate(i,0),t&=-131713,(r=sr({node:i,path:Qt(i),flags:t,seekable:!0,position:0,jb:i.jb,Hd:[],error:!1})).jb.open&&r.jb.open(r),!n.logReadFiles||1&t||e in ur.Vc||(ur.Vc[e]=1),r},close(e){if(null===e.fd)throw new ur.gb(8);e.ud&&(e.ud=null);try{e.jb.close&&e.jb.close(e)}catch(e){throw e}finally{ur.streams[e.fd]=null}e.fd=null},vb(e,t,r){if(null===e.fd)throw new ur.gb(8);if(!e.seekable||!e.jb.vb)throw new ur.gb(70);if(0!=r&&1!=r&&2!=r)throw new ur.gb(28);return e.position=e.jb.vb(e,t,r),e.Hd=[],e.position},read(e,t,r,n,i){if(0>n||0>i)throw new ur.gb(28);if(null===e.fd)throw new ur.gb(8);if(1==(2097155&e.flags))throw new ur.gb(8);if(Jt(e.node.mode))throw new ur.gb(31);if(!e.jb.read)throw new ur.gb(28);var o=void 0!==i;if(o){if(!e.seekable)throw new ur.gb(70)}else i=e.position;return t=e.jb.read(e,t,r,n,i),o||(e.position+=t),t},write(e,t,r,n,i,o){if(0>n||0>i)throw new ur.gb(28);if(null===e.fd)throw new ur.gb(8);if(!(2097155&e.flags))throw new ur.gb(8);if(Jt(e.node.mode))throw new ur.gb(31);if(!e.jb.write)throw new ur.gb(28);e.seekable&&1024&e.flags&&ur.vb(e,0,2);var a=void 0!==i;if(a){if(!e.seekable)throw new ur.gb(70)}else i=e.position;return t=e.jb.write(e,t,r,n,i,o),a||(e.position+=t),t},Sb(e,t,r){if(null===e.fd)throw new ur.gb(8);if(0>t||0>=r)throw new ur.gb(28);if(!(2097155&e.flags))throw new ur.gb(8);if(!ur.isFile(e.node.mode)&&!Jt(e.node.mode))throw new ur.gb(43);if(!e.jb.Sb)throw new ur.gb(138);e.jb.Sb(e,t,r)},Ob(e,t,r,n,i){if(2&n&&!(2&i)&&2!=(2097155&e.flags))throw new ur.gb(2);if(1==(2097155&e.flags))throw new ur.gb(2);if(!e.jb.Ob)throw new ur.gb(43);if(!t)throw new ur.gb(28);return e.jb.Ob(e,t,r,n,i)},Xb:(e,t,r,n,i)=>e.jb.Xb?e.jb.Xb(e,t,r,n,i):0,Mc(e,t,r){if(!e.jb.Mc)throw new ur.gb(59);return e.jb.Mc(e,t,r)},readFile(e,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw Error(`Invalid encoding type "${t.encoding}"`);var r,n=ur.open(e,t.flags);e=ur.stat(e).size;var i=new Uint8Array(e);return ur.read(n,i,0,e,0),"utf8"===t.encoding?r=K(i):"binary"===t.encoding&&(r=i),ur.close(n),r},writeFile(e,t,r={}){if(r.flags=r.flags||577,e=ur.open(e,r.flags,r.mode),"string"==typeof t){var n=new Uint8Array(Je(t)+1);t=Xe(t,n,0,n.length),ur.write(e,n,0,t,void 0,r.gd)}else{if(!ArrayBuffer.isView(t))throw Error("Unsupported data type");ur.write(e,t,0,t.byteLength,void 0,r.gd)}ur.close(e)},cwd:()=>ur.Dc,chdir(e){if(null===(e=Zt(e,{xb:!0})).node)throw new ur.gb(44);if(!Jt(e.node.mode))throw new ur.gb(54);var t=nr(e.node,"x");if(t)throw new ur.gb(t);ur.Dc=e.path},pe(){ur.rc=!1;for(var e=0;e<ur.streams.length;e++){var t=ur.streams[e];t&&ur.close(t)}},Zd(e,t){try{var r=Zt(e,{xb:!t});e=r.path}catch(e){}var n=!1,i=null;try{r=Zt(e,{parent:!0}),Ft(e),r=Zt(e,{xb:!t}),n=!0,i=r.node}catch(e){}return n?i:null},Cc(e,t){for(e="string"==typeof e?e:Qt(e),t=t.split("/").reverse();t.length;){var r=t.pop();if(r){var n=Ct(e+"/"+r);try{ur.mkdir(n)}catch(e){}e=n}}return n},mc(e,t,r,n,i,o){var a=t;if(e&&(e="string"==typeof e?e:Qt(e),a=t?Ct(e+"/"+t):e),e=Vt(n,i),a=ur.create(a,e),r){if("string"==typeof r){for(t=Array(r.length),n=0,i=r.length;n<i;++n)t[n]=r.charCodeAt(n);r=t}ur.chmod(a,146|e),t=ur.open(a,577),ur.write(t,r,0,r.length,0,o),ur.close(t),ur.chmod(a,e)}},Db(e,t,r,n){var i;return e=((e,t)=>Ct(e+"/"+t))("string"==typeof e?e:Qt(e),t),t=Vt(!!r,!!n),(i=ur.Db).tc??(i.tc=64),Xt(i=ur.Jb(ur.Db.tc++,0),{open(e){e.seekable=!1},close(){n?.buffer?.length&&n(10)},read(e,t,n,i){for(var o=0,a=0;a<i;a++){try{var s=r()}catch(e){throw new ur.gb(29)}if(void 0===s&&0===o)throw new ur.gb(6);if(null==s)break;o++,t[n+a]=s}return o&&(e.node.atime=Date.now()),o},write(e,t,r,i){for(var o=0;o<i;o++)try{n(t[r+o])}catch(e){throw new ur.gb(29)}return i&&(e.node.mtime=e.node.ctime=Date.now()),o}}),hr(e,t,i)},Bc(e,t,r,n,i){class o{qc=!1;ub=[];pc=void 0;Pc=0;Oc=0;get(e){if(!(e>this.length-1||0>e)){var t=e%this.chunkSize;return this.pc(e/this.chunkSize|0)[t]}}zd(e){this.pc=e}Qc(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(200<=e.status&&300>e.status||304===e.status))throw Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),i=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t;e=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t;var o=1048576;i||(o=n);var a=this;a.zd((e=>{var t=e*o,i=(e+1)*o-1;if(i=Math.min(i,n-1),void 0===a.ub[e]){var s=a.ub;if(t>i)throw Error("invalid range ("+t+", "+i+") or no bytes requested!");if(i>n-1)throw Error("only "+n+" bytes available! programmer error!");var c=new XMLHttpRequest;if(c.open("GET",r,!1),n!==o&&c.setRequestHeader("Range","bytes="+t+"-"+i),c.responseType="arraybuffer",c.overrideMimeType&&c.overrideMimeType("text/plain; charset=x-user-defined"),c.send(null),!(200<=c.status&&300>c.status||304===c.status))throw Error("Couldn't load "+r+". Status: "+c.status);t=void 0!==c.response?new Uint8Array(c.response||[]):Lt(c.responseText||""),s[e]=t}if(void 0===a.ub[e])throw Error("doXHR failed!");return a.ub[e]})),!e&&n||(o=n=1,o=n=this.pc(0).length,m("LazyFiles on gzip forces download of the whole file when length is accessed")),this.Pc=n,this.Oc=o,this.qc=!0}get length(){return this.qc||this.Qc(),this.Pc}get chunkSize(){return this.qc||this.Qc(),this.Oc}}if("undefined"!=typeof XMLHttpRequest){if(!a)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var s=new o,c=void 0}else c=r,s=void 0;var h=function(e,t,r,n){return e="string"==typeof e?e:Qt(e),t=Ct(e+"/"+t),ur.create(t,Vt(r,n))}(e,t,n,i);s?h.kb=s:c&&(h.kb=null,h.url=c),Object.defineProperties(h,{nb:{get:function(){return this.kb.length}}});var l={};return Object.keys(h.jb).forEach((e=>{var t=h.jb[e];l[e]=(...e)=>(lr(h),t(...e))})),l.read=(e,t,r,n,i)=>{if(lr(h),i>=(e=e.node.kb).length)t=0;else{if(n=Math.min(e.length-i,n),e.slice)for(var o=0;o<n;o++)t[r+o]=e[i+o];else for(o=0;o<n;o++)t[r+o]=e.get(i+o);t=n}return t},l.Ob=()=>{throw lr(h),M(),new ur.gb(48)},h.jb=l,h}},dr=ur.Cc,fr=ur.Bc,br=ur.Db,pr=Array(256),mr=0;256>mr;++mr)pr[mr]=String.fromCharCode(mr);z=pr,H=n.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},V=n.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Object.assign(fe.prototype,{isAliasOf:function(e){if(!(this instanceof fe&&e instanceof fe))return!1;var t=this.hb.pb.mb,r=this.hb.lb;e.hb=e.hb;var n=e.hb.pb.mb;for(e=e.hb.lb;t.tb;)r=t.ac(r),t=t.tb;for(;n.tb;)e=n.ac(e),n=n.tb;return t===n&&r===e},clone:function(){if(this.hb.lb||ie(this),this.hb.Yb)return this.hb.count.value+=1,this;var e=de,t=Object,r=t.create,n=Object.getPrototypeOf(this),i=this.hb;return(e=e(r.call(t,n,{hb:{value:{count:i.count,Vb:i.Vb,Yb:i.Yb,lb:i.lb,pb:i.pb,sb:i.sb,wb:i.wb}}}))).hb.count.value+=1,e.hb.Vb=!1,e},delete(){if(this.hb.lb||ie(this),this.hb.Vb&&!this.hb.Yb)throw new H("Object already scheduled for deletion");ae(this);var e=this.hb;--e.count.value,0===e.count.value&&(e.sb?e.wb.Gb(e.sb):e.pb.mb.Gb(e.lb)),this.hb.Yb||(this.hb.sb=void 0,this.hb.lb=void 0)},isDeleted:function(){return!this.hb.lb},deleteLater:function(){if(this.hb.lb||ie(this),this.hb.Vb&&!this.hb.Yb)throw new H("Object already scheduled for deletion");return this.hb.Vb=!0,this}}),Object.assign($e.prototype,{sd(e){return this.Uc&&(e=this.Uc(e)),e},Fc(e){this.Gb?.(e)},Fb:8,readValueFromPointer:Ee,fromWireType:function(e){function t(){return ue(this.mb.Nb,this.fc?{pb:this.Cd,lb:r,wb:this,sb:e}:{pb:this,lb:e})}var r=this.sd(e);if(!r)return this.Fc(e),null;var n=((e,t)=>{if(void 0===t)throw new H("ptr should not be undefined");for(;e.tb;)t=e.ac(t),e=e.tb;return le[t]})(this.mb,r);if(void 0!==n)return 0===n.hb.count.value?(n.hb.lb=r,n.hb.sb=e,n.clone()):(n=n.clone(),this.Fc(e),n);if(n=this.mb.qd(r),!(n=he[n]))return t.call(this);var i=se(r,this.mb,(n=this.ec?n.jd:n.pointerType).mb);return null===i?t.call(this):ue(n.mb.Nb,this.fc?{pb:n,lb:i,wb:this,sb:e}:{pb:n,lb:i})}}),ke=n.UnboundTypeError=((e,t)=>{var r=be(t,(function(e){this.name=t,this.message=e,void 0!==(e=Error(e).stack)&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},r})(Error,"UnboundTypeError"),Ne.push(0,1,void 0,1,null,1,!0,1,!1,1),n.count_emval_handles=()=>Ne.length/2-5-We.length,"undefined"!=typeof MainLoop&&MainLoop.ne.push((()=>{if(Be){var e=Be.Rb;for(Be.Rb=Be.Zb,Be.Zb=e,e=Be.Hb,Be.Hb=Be.lc,Be.lc=e,e=0;21>=e;++e)Be.Hb[e]=0}}));for(var vr=0;32>vr;++vr)$t.push(Array(vr));var wr=new Int32Array(288);for(vr=0;288>=vr;++vr)Tt[vr]=wr.subarray(0,vr);ur.kd=Ht,ur.Bb=Array(4096),ur.ob(Gt,{},"/"),ur.mkdir("/tmp"),ur.mkdir("/home"),ur.mkdir("/home/web_user"),function(){ur.mkdir("/dev"),Xt(ur.Jb(1,3),{read:()=>0,write:(e,t,r,n)=>n,vb:()=>0}),hr("/dev/null",ur.Jb(1,3)),Dt(ur.Jb(5,0),Wt),Dt(ur.Jb(6,0),Nt),hr("/dev/tty",ur.Jb(5,0)),hr("/dev/tty1",ur.Jb(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=xt(e).byteLength),e[--t]);ur.Db("/dev","random",r),ur.Db("/dev","urandom",r),ur.mkdir("/dev/shm"),ur.mkdir("/dev/shm/tmp")}(),function(){ur.mkdir("/proc");var e=ur.mkdir("/proc/self");ur.mkdir("/proc/self/fd"),ur.ob({ob(){var t=ur.createNode(e,"fd",16895,73);return t.jb={vb:Gt.jb.vb},t.ib={lookup(e,t){var r=ar(e=+t);return(e={parent:null,ob:{Sc:"fake"},ib:{readlink:()=>r.path},id:e+1}).parent=e},readdir:()=>Array.from(ur.streams.entries()).filter((([,e])=>e)).map((([e])=>e.toString()))},t}},{},"/proc/self/fd")}(),ur.pd={MEMFS:Gt},n.FS_createPath=ur.Cc,n.FS_createDataFile=ur.mc,n.FS_createPreloadedFile=ur.kd,n.FS_unlink=ur.unlink,n.FS_createLazyFile=ur.Bc,n.FS_createDevice=ur.Db,Gt.Ic=new ur.gb(44),Gt.Ic.stack="<generic error, no stack>";var gr,yr={c:(e,t,r,n)=>M(`Assertion failed: ${e?K(_,e):""}, at: `+[t?t?K(_,t):"":"unknown filename",r,n?n?K(_,n):"":"unknown function"]),ja:()=>M(""),Xa:()=>{},ma:(e,t,r,n)=>{ne(e,{name:t=Y(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:n},Fb:8,readValueFromPointer:function(e){return this.fromWireType(_[e])},zb:null})},ua:(e,t,r,n,i,o,a,s,c,h,l,u,d)=>{l=Y(l),o=xe(i,o),s&&=xe(a,s),h&&=xe(c,h),d=xe(u,d);var f=(e=>{var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?`_${e}`:e})(l);me(f,(function(){Ce(`Cannot construct ${l} due to unbound types`,[n])})),re([e,t,r],n?[n]:[],(t=>{if(t=t[0],n)var r=t.mb,i=r.Nb;else i=fe.prototype;t=be(l,(function(...e){if(Object.getPrototypeOf(this)!==a)throw new H("Use 'new' to construct "+l);if(void 0===u.Ib)throw new H(l+" has no accessible constructor");var t=u.Ib[e.length];if(void 0===t)throw new H(`Tried to invoke ctor of ${l} with invalid number of parameters (${e.length}) - expected (${Object.keys(u.Ib).toString()}) parameters instead!`);return t.apply(this,e)}));var a=Object.create(i,{constructor:{value:t}});t.prototype=a;var c,u=new ve(l,t,a,d,r,o,s,h);return u.tb&&((c=u.tb).zc??(c.zc=[]),u.tb.zc.push(u)),r=new $e(l,u,!0,!1,!1),c=new $e(l+"*",u,!1,!1,!1),i=new $e(l+" const*",u,!1,!0,!1),he[e]={pointerType:c,jd:i},Te(f,t),[r,c,i]}))},ta:(e,t,r,n,i,o)=>{var a=je(t,r);i=xe(n,i),re([],[e],(e=>{var r=`constructor ${(e=e[0]).name}`;if(void 0===e.mb.Ib&&(e.mb.Ib=[]),void 0!==e.mb.Ib[t-1])throw new H(`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.mb.Ib[t-1]=()=>{Ce(`Cannot construct ${e.name} due to unbound types`,a)},re([],a,(n=>(n.splice(1,0,null),e.mb.Ib[t-1]=Re(r,n,null,i,o),[]))),[]}))},l:(e,t,r,n,i,o,a,s,c)=>{var h=je(r,n);t=Y(t),t=Me(t),o=xe(i,o),re([],[e],(e=>{function n(){Ce(`Cannot call ${i} due to unbound types`,h)}var i=`${(e=e[0]).name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.mb.Dd.push(t);var l=e.mb.Nb,u=l[t];return void 0===u||void 0===u.qb&&u.className!==e.name&&u.Tb===r-2?(n.Tb=r-2,n.className=e.name,l[t]=n):(pe(l,t,i),l[t].qb[r-2]=n),re([],h,(n=>(n=Re(i,n,e,o,a,c),void 0===l[t].qb?(n.Tb=r-2,l[t]=n):l[t].qb[r-2]=n,[]))),[]}))},ka:e=>ne(e,ze),I:(e,t,r)=>{ne(e,{name:t=Y(t),fromWireType:e=>e,toWireType:(e,t)=>t,Fb:8,readValueFromPointer:Ve(t,r),zb:null})},K:(e,t,r,n,i,o,a)=>{var s=je(t,r);e=Y(e),e=Me(e),i=xe(n,i),me(e,(function(){Ce(`Cannot call ${e} due to unbound types`,s)}),t-1),re([],s,(r=>(r=[r[0],null].concat(r.slice(1)),Te(e,Re(e,r,null,i,o,a),t-1),[])))},r:(e,t,r,n,i)=>{if(t=Y(t),-1===i&&(i=4294967295),i=e=>e,0===n){var o=32-8*r;i=e=>e<<o>>>o}var a=t.includes("unsigned")?function(e,t){return t>>>0}:function(e,t){return t};ne(e,{name:t,fromWireType:i,toWireType:a,Fb:8,readValueFromPointer:qe(t,r,0!==n),zb:null})},i:(e,t,r)=>{function n(e){return new i(y.buffer,S[e+4>>2],S[e>>2])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];ne(e,{name:r=Y(r),fromWireType:n,Fb:8,readValueFromPointer:n},{vd:!0})},la:(e,t)=>{ne(e,{name:t=Y(t),fromWireType:function(e){for(var t,r=S[e>>2],n=e+4,i=n,o=0;o<=r;++o){var a=n+o;o!=r&&0!=_[a]||(i=i?K(_,i,a-i):"",void 0===t?t=i:(t+=String.fromCharCode(0),t+=i),i=a+1)}return Er(e),t},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var r="string"==typeof t;if(!(r||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array))throw new H("Cannot pass non-string to std::string");var n=r?Je(t):t.length,i=Ar(4+n+1),o=i+4;if(S[i>>2]=n,r)Xe(t,_,o,n+1);else if(r)for(r=0;r<n;++r){var a=t.charCodeAt(r);if(255<a)throw Er(o),new H("String has UTF-16 code units that do not fit in 8 bits");_[o+r]=a}else for(r=0;r<n;++r)_[o+r]=t[r];return null!==e&&e.push(Er,i),i},Fb:8,readValueFromPointer:Ee,zb(e){Er(e)}})},D:(e,t,r)=>{if(r=Y(r),2===t)var n=Ye,i=Ze,o=Qe,a=e=>A[e>>1];else 4===t&&(n=et,i=tt,o=rt,a=e=>S[e>>2]);ne(e,{name:r,fromWireType:e=>{for(var r,i=S[e>>2],o=e+4,s=0;s<=i;++s){var c=e+4+s*t;s!=i&&0!=a(c)||(o=n(o,c-o),void 0===r?r=o:(r+=String.fromCharCode(0),r+=o),o=c+t)}return Er(e),r},toWireType:(e,n)=>{if("string"!=typeof n)throw new H(`Cannot pass non-string to C++ string type ${r}`);var a=o(n),s=Ar(4+a+t);return S[s>>2]=a/t,i(n,s+4,a+t),null!==e&&e.push(Er,s),s},Fb:8,readValueFromPointer:Ee,zb(e){Er(e)}})},L:e=>{ne(e,ze)},na:(e,t)=>{ne(e,{ge:!0,name:t=Y(t),Fb:0,fromWireType:()=>{},toWireType:()=>{}})},fa:()=>{X=!1,nt=0},da:()=>{throw 1/0},pa:Ie,qa:e=>{9<e&&(Ne[e+1]+=1)},J:(e,t)=>{var r=Q[e];if(void 0===r)throw e=`_emval_take_value has unknown type ${Pe(e)}`,new H(e);return e=(e=r).readValueFromPointer(t),Ge(e)},ga:(e,t)=>{if(it[e]&&(clearTimeout(it[e].id),delete it[e]),!t)return 0;var r=setTimeout((()=>{delete it[e],(e=>{if(!P)try{if(e(),!(X||0<nt))try{g=e=g,ot(e)}catch(e){e instanceof G||"unwind"==e||d(1,e)}}catch(e){e instanceof G||"unwind"==e||d(1,e)}})((()=>Sr(e,performance.now())))}),t);return it[e]={id:r,re:t},0},ia:e=>{var t=_.length;if(2147483648<(e>>>=0))return!1;for(var r=1;4>=r;r*=2){var n=t*(1+.2/r);n=Math.min(n,e+100663296);e:{n=(Math.min(2147483648,65536*Math.ceil(Math.max(e,n)/65536))-w.buffer.byteLength+65535)/65536|0;try{w.grow(n),C();var i=1;break e}catch(e){}i=void 0}if(i)return!0}return!1},ra:(e,t)=>{var r=t>>2;return t={alpha:!!y[t+0],depth:!!y[t+1],stencil:!!y[t+2],antialias:!!y[t+3],premultipliedAlpha:!!y[t+4],preserveDrawingBuffer:!!y[t+5],powerPreference:_t[$[r+2]],failIfMajorPerformanceCaveat:!!y[t+12],Rc:$[r+4],je:$[r+5],Jc:y[t+24],od:y[t+25],oe:$[r+7],qe:y[t+32]},e=2<e?e?K(_,e):"":e,!(e=Et[e]||("undefined"!=typeof document?document.querySelector(e):null))||t.od?0:((e,t)=>{e.ub||(e.ub=e.getContext,e.getContext=function(t,r){return"webgl"==t==(r=e.ub(t,r))instanceof WebGLRenderingContext?r:null});var r=e.getContext(1<t.Rc?"webgl2":"webgl",t);return r?((e,t)=>{var r=vt(pt),n={handle:r,attributes:t,version:t.Rc,Lb:e};for(e.canvas&&(e.canvas.cd=n),pt[r]=n,(void 0===t.Jc||t.Jc)&&(e=>{if(e||=Be,!e.wd){e.wd=!0;var t=e.Lb;t.le=t.getExtension("WEBGL_multi_draw"),t.Xd=t.getExtension("EXT_polygon_offset_clamp"),t.Wd=t.getExtension("EXT_clip_control"),t.ve=t.getExtension("WEBGL_polygon_mode"),(e=>{var t=e.getExtension("ANGLE_instanced_arrays");t&&(e.vertexAttribDivisor=(e,r)=>t.vertexAttribDivisorANGLE(e,r),e.drawArraysInstanced=(e,r,n,i)=>t.drawArraysInstancedANGLE(e,r,n,i),e.drawElementsInstanced=(e,r,n,i,o)=>t.drawElementsInstancedANGLE(e,r,n,i,o))})(t),(e=>{var t=e.getExtension("OES_vertex_array_object");t&&(e.createVertexArray=()=>t.createVertexArrayOES(),e.deleteVertexArray=e=>t.deleteVertexArrayOES(e),e.bindVertexArray=e=>t.bindVertexArrayOES(e),e.isVertexArray=e=>t.isVertexArrayOES(e))})(t),(e=>{var t=e.getExtension("WEBGL_draw_buffers");t&&(e.drawBuffers=(e,r)=>t.drawBuffersWEBGL(e,r))})(t),t.Rd=t.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"),t.he=t.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"),2<=e.version&&(t.Hc=t.getExtension("EXT_disjoint_timer_query_webgl2")),(2>e.version||!t.Hc)&&(t.Hc=t.getExtension("EXT_disjoint_timer_query")),at(t).forEach((e=>{e.includes("lose_context")||e.includes("debug")||t.getExtension(e)}))}})(n),n.uc=n.Lb.getParameter(34921),n.Mb=[],e=0;e<n.uc;e++)n.Mb[e]={enabled:!1,bc:!1,size:0,type:0,Tc:0,xc:0,lb:0,$c:null};for(n.Hb=[],n.lc=[],n.Hb.length=n.lc.length=22,n.Rb=[],n.Zb=[],n.Rb.length=n.Zb.length=22,n.Qb=[],n.Qb.length=22,e=0;21>=e;++e){n.Qb[e]=null,n.Hb[e]=n.lc[e]=0,n.Rb[e]=[],n.Zb[e]=[];var i=n.Zb[e];(t=n.Rb[e]).length=i.length=64;for(var o=0;64>o;++o)t[o]=i[o]=null}return r})(r,t):0})(e,t)},sa:e=>{if(Be==e&&(Be=0),Be===pt[e]&&(Be=null),"object"==typeof yt)for(var t=pt[e].Lb.canvas,r=0;r<gt.length;++r)if(gt[r].target==t){var n=r--,i=gt[n];i.target.removeEventListener(i.Vd,i.Ud,i.te),gt.splice(n,1)}pt[e]&&pt[e].Lb.canvas&&(pt[e].Lb.canvas.cd=void 0),pt[e]=null},Ra:()=>Be?Be.handle:0,Y:e=>(Be=pt[e],n.ctx=Ue=Be?.Lb,!e||Ue?0:-5),Ia:e=>Ue.activeTexture(e),ba:(e,t)=>{Ue.attachShader(ht[e],ft[t])},q:(e,t)=>{34962==e?Ue.cc=t:34963==e&&(Ue.Ub=t),35051==e?Ue.Ec=t:35052==e&&(Ue.nc=t),Ue.bindBuffer(e,ct[t])},Ga:(e,t,r,n,i)=>{Ue.bindBufferRange(e,t,ct[r],n,i)},e:(e,t)=>{Ue.bindFramebuffer(e,lt[t])},G:(e,t)=>{Ue.bindRenderbuffer(e,ut[t])},z:(e,t)=>{Ue.bindTexture(e,dt[t])},M:e=>{Ue.bindVertexArray(bt[e]),e=Ue.getParameter(34965),Ue.Ub=e?0|e.name:0},F:e=>Ue.blendEquation(e),o:(e,t)=>Ue.blendFunc(e,t),s:(e,t,r,n,i,o,a,s,c,h)=>Ue.blitFramebuffer(e,t,r,n,i,o,a,s,c,h),ca:(e,t,r,n)=>{2<=Be.version?r&&t?Ue.bufferData(e,_,n,r,t):Ue.bufferData(e,t,n):Ue.bufferData(e,r?_.subarray(r,r+t):t,n)},O:e=>Ue.clear(e),P:(e,t,r,n)=>Ue.clearColor(e,t,r,n),Ba:e=>Ue.clearDepth(e),Ca:e=>Ue.clearStencil(e),v:(e,t,r,n)=>{Ue.colorMask(!!e,!!t,!!r,!!n)},wa:e=>{Ue.compileShader(ft[e])},ha:()=>{var e=vt(ht),t=Ue.createProgram();return t.name=e,t.jc=t.hc=t.ic=0,t.yc=1,ht[e]=t,e},ya:e=>{var t=vt(ft);return ft[t]=Ue.createShader(e),t},Qa:e=>Ue.cullFace(e),Ma:(e,t)=>{for(var r=0;r<e;r++){var n=$[t+4*r>>2],i=ct[n];i&&(Ue.deleteBuffer(i),i.name=0,ct[n]=null,n==Ue.cc&&(Ue.cc=0),n==Ue.Ub&&(Ue.Ub=0),n==Ue.Ec&&(Ue.Ec=0),n==Ue.nc&&(Ue.nc=0))}},R:(e,t)=>{for(var r=0;r<e;++r){var n=$[t+4*r>>2],i=lt[n];i&&(Ue.deleteFramebuffer(i),i.name=0,lt[n]=null)}},_:e=>{if(e){var t=ht[e];t?(Ue.deleteProgram(t),t.name=0,ht[e]=null):Le||=1281}},Q:(e,t)=>{for(var r=0;r<e;r++){var n=$[t+4*r>>2],i=ut[n];i&&(Ue.deleteRenderbuffer(i),i.name=0,ut[n]=null)}},E:e=>{if(e){var t=ft[e];t?(Ue.deleteShader(t),ft[e]=null):Le||=1281}},Z:(e,t)=>{for(var r=0;r<e;r++){var n=$[t+4*r>>2],i=dt[n];i&&(Ue.deleteTexture(i),i.name=0,dt[n]=null)}},Aa:(e,t)=>{for(var r=0;r<e;r++){var n=$[t+4*r>>2];Ue.deleteVertexArray(bt[n]),bt[n]=null}},Oa:e=>Ue.depthFunc(e),A:e=>{Ue.depthMask(!!e)},t:e=>Ue.disable(e),Ea:e=>{Be.Mb[e].enabled=!1,Ue.disableVertexAttribArray(e)},Fa:(e,t,r,n)=>{var i=0;if(!Ue.Ub){var o=1*mt[r-5120]*t,a=(e=>{e=32-Math.clz32(0===e?0:e-1);var t=Be.Qb[e];return t||(t=Ue.getParameter(34965),Be.Qb[e]=Ue.createBuffer(),Ue.bindBuffer(34963,Be.Qb[e]),Ue.bufferData(34963,1<<e,35048),Ue.bindBuffer(34963,t),Be.Qb[e])})(o);if(Ue.bindBuffer(34963,a),Ue.bufferSubData(34963,0,_.subarray(n,n+o)),0<t)for(a=0;a<Be.uc;++a)if((o=Be.Mb[a]).bc&&o.enabled){switch(r){case 5121:i=Uint8Array;break;case 5123:i=Uint16Array;break;case 5125:i=Uint32Array;break;default:return void(Le||=1282)}i=new i(_.buffer,n,t).reduce(((e,t)=>Math.max(e,t)))+1;break}n=0}(e=>{De=!1;for(var t=0;t<Be.uc;++t){var r=Be.Mb[t];if(r.bc&&r.enabled){De=!0;var n=r.xc;n=0<n?e*n:r.size*mt[r.type-5120]*e;var i=32-Math.clz32(0===n?0:n-1),o=Be.Rb[i],a=Be.Hb[i];Be.Hb[i]=Be.Hb[i]+1&63;var s=o[a];s?i=s:(s=Ue.getParameter(34964),o[a]=Ue.createBuffer(),Ue.bindBuffer(34962,o[a]),Ue.bufferData(34962,1<<i,35048),Ue.bindBuffer(34962,s),i=o[a]),Ue.bindBuffer(34962,i),Ue.bufferSubData(34962,0,_.subarray(r.lb,r.lb+n)),r.$c.call(Ue,t,r.size,r.type,r.Tc,r.xc,0)}}})(i),Ue.drawElements(e,t,r,n),De&&Ue.bindBuffer(34962,ct[Ue.cc]),Ue.Ub||Ue.bindBuffer(34963,null)},n:e=>Ue.enable(e),Ka:e=>{Be.Mb[e].enabled=!0,Ue.enableVertexAttribArray(e)},S:(e,t,r,n)=>{Ue.framebufferRenderbuffer(e,t,r,ut[n])},Na:(e,t,r,n,i)=>{Ue.framebufferTexture2D(e,t,r,dt[n],i)},Pa:e=>Ue.frontFace(e),Sa:(e,t)=>{wt(e,t,"createBuffer",ct)},V:(e,t)=>{wt(e,t,"createFramebuffer",lt)},U:(e,t)=>{wt(e,t,"createRenderbuffer",ut)},X:(e,t)=>{wt(e,t,"createTexture",dt)},Da:(e,t)=>{wt(e,t,"createVertexArray",bt)},oa:(e,t)=>((e,t)=>{if(t){var r=void 0;switch(e){case 36346:r=1;break;case 36344:return;case 34814:case 36345:r=0;break;case 34466:var n=Ue.getParameter(34467);r=n?n.length:0;break;case 33309:if(2>Be.version)return void(Le||=1282);r=(()=>{var e=at(Ue);return e.concat(e.map((e=>"GL_"+e)))})().length;break;case 33307:case 33308:if(2>Be.version)return void(Le||=1280);r=33307==e?3:0}if(void 0===r)switch(n=Ue.getParameter(e),typeof n){case"number":r=n;break;case"boolean":r=n?1:0;break;case"string":return void(Le||=1280);case"object":if(null===n)switch(e){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:r=0;break;default:return void(Le||=1280)}else{if(n instanceof Float32Array||n instanceof Uint32Array||n instanceof Int32Array||n instanceof Array){for(e=0;e<n.length;++e)$[t+4*e>>2]=n[e];return}try{r=0|n.name}catch(t){return Le||=1280,void v(`GL_INVALID_ENUM in glGet0v: Unknown object returned from WebGL getParameter(${e})! (error: ${t})`)}}break;default:return Le||=1280,void v(`GL_INVALID_ENUM in glGet0v: Native code calling glGet0v(${e}) and it returns ${n} of type ${typeof n}!`)}$[t>>2]=r}else Le||=1281})(e,t),Va:(e,t,r,n)=>{null===(e=Ue.getProgramInfoLog(ht[e]))&&(e="(unknown error)"),t=0<t&&n?Xe(e,_,n,t):0,r&&($[r>>2]=t)},$:(e,t,r)=>{if(r)if(e>=st)Le||=1281;else if(e=ht[e],35716==t)null===(e=Ue.getProgramInfoLog(e))&&(e="(unknown error)"),$[r>>2]=e.length+1;else if(35719==t){if(!e.jc){var n=Ue.getProgramParameter(e,35718);for(t=0;t<n;++t)e.jc=Math.max(e.jc,Ue.getActiveUniform(e,t).name.length+1)}$[r>>2]=e.jc}else if(35722==t){if(!e.hc)for(n=Ue.getProgramParameter(e,35721),t=0;t<n;++t)e.hc=Math.max(e.hc,Ue.getActiveAttrib(e,t).name.length+1);$[r>>2]=e.hc}else if(35381==t){if(!e.ic)for(n=Ue.getProgramParameter(e,35382),t=0;t<n;++t)e.ic=Math.max(e.ic,Ue.getActiveUniformBlockName(e,t).length+1);$[r>>2]=e.ic}else $[r>>2]=Ue.getProgramParameter(e,t);else Le||=1281},va:(e,t,r,n)=>{null===(e=Ue.getShaderInfoLog(ft[e]))&&(e="(unknown error)"),t=0<t&&n?Xe(e,_,n,t):0,r&&($[r>>2]=t)},N:(e,t,r)=>{r?35716==t?(null===(e=Ue.getShaderInfoLog(ft[e]))&&(e="(unknown error)"),$[r>>2]=e?e.length+1:0):35720==t?(e=Ue.getShaderSource(ft[e]),$[r>>2]=e?e.length+1:0):$[r>>2]=Ue.getShaderParameter(ft[e],t):Le||=1281},g:(e,t)=>Ue.getUniformBlockIndex(ht[e],t?K(_,t):""),j:(e,t)=>{if(t=t?K(_,t):"",e=ht[e]){var r,n=e,i=n.$b,o=n.Zc;if(!i){n.$b=i={},n.Yc={};var a=Ue.getProgramParameter(n,35718);for(r=0;r<a;++r){var s=Ue.getActiveUniform(n,r),c=s.name;s=s.size;var h=At(c);h=0<h?c.slice(0,h):c;var l=n.yc;for(n.yc+=s,o[h]=[s,l],c=0;c<s;++c)i[l]=c,n.Yc[l++]=h}}if(n=e.$b,i=0,o=t,0<(r=At(t))&&(i=parseInt(t.slice(r+1))>>>0,o=t.slice(0,r)),(o=e.Zc[o])&&i<o[0]&&(n[i+=o[1]]=n[i]||Ue.getUniformLocation(e,t)))return i}else Le||=1281;return-1},za:(e,t,r)=>{for(var n=$t[t],i=0;i<t;i++)n[i]=$[r+4*i>>2];Ue.invalidateFramebuffer(e,n)},Wa:e=>{Ue.linkProgram(e=ht[e]),e.$b=0,e.Zc={}},T:(e,t,r,n,i)=>Ue.renderbufferStorageMultisample(e,t,r,n,i),m:(e,t,r,n)=>Ue.scissor(e,t,r,n),xa:(e,t,r,n)=>{for(var i="",o=0;o<t;++o){var a=(a=S[r+4*o>>2])?K(_,a,n?S[n+4*o>>2]:void 0):"";i+=a}Ue.shaderSource(ft[e],i)},C:(e,t,r)=>Ue.stencilFunc(e,t,r),x:(e,t,r,n)=>Ue.stencilFuncSeparate(e,t,r,n),B:(e,t,r)=>Ue.stencilOp(e,t,r),w:(e,t,r,n)=>Ue.stencilOpSeparate(e,t,r,n),W:(e,t,r,n,i,o,a,s,c)=>{if(2<=Be.version){if(Ue.nc)return void Ue.texImage2D(e,t,r,n,i,o,a,s,c);if(c){var h=St(s);return c>>>=31-Math.clz32(h.BYTES_PER_ELEMENT),void Ue.texImage2D(e,t,r,n,i,o,a,s,h,c)}}if(c){h=St(s);var l=i*(n*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[a-6402]||1)*h.BYTES_PER_ELEMENT+4-1&-4);c=h.subarray(c>>>31-Math.clz32(h.BYTES_PER_ELEMENT),c+l>>>31-Math.clz32(h.BYTES_PER_ELEMENT))}else c=null;Ue.texImage2D(e,t,r,n,i,o,a,s,c)},u:(e,t,r)=>Ue.texParameteri(e,t,r),La:(e,t)=>{Ue.uniform1f(kt(e),t)},Ta:(e,t,r)=>{if(2<=Be.version)t&&Ue.uniform1iv(kt(e),$,r>>2,t);else{if(288>=t)for(var n=Tt[t],i=0;i<t;++i)n[i]=$[r+4*i>>2];else n=$.subarray(r>>2,r+4*t>>2);Ue.uniform1iv(kt(e),n)}},Ha:(e,t,r)=>{Ue.uniformBlockBinding(e=ht[e],t,r)},Ua:e=>{Ue.useProgram(e=ht[e]),Ue.ld=e},Ja:(e,t,r,n,i,o)=>{var a=Be.Mb[e];Ue.cc?(a.bc=!1,Ue.vertexAttribPointer(e,t,r,!!n,i,o)):(a.size=t,a.type=r,a.Tc=n,a.xc=i,a.lb=o,a.bc=!0,a.$c=function(e,t,r,n,i,o){this.vertexAttribPointer(e,t,r,n,i,o)})},p:(e,t,r,n)=>Ue.viewport(e,t,r,n),k:function(e,t){var r=xr();try{return Se.get(e)(t)}catch(e){if(Tr(r),e!==e+0)throw e;kr(1,0)}},f:function(e,t,r){var n=xr();try{return Se.get(e)(t,r)}catch(e){if(Tr(n),e!==e+0)throw e;kr(1,0)}},d:function(e,t,r,n){var i=xr();try{return Se.get(e)(t,r,n)}catch(e){if(Tr(i),e!==e+0)throw e;kr(1,0)}},H:function(e,t,r,n,i,o){var a=xr();try{return Se.get(e)(t,r,n,i,o)}catch(e){if(Tr(a),e!==e+0)throw e;kr(1,0)}},aa:function(e){var t=xr();try{Se.get(e)()}catch(e){if(Tr(t),e!==e+0)throw e;kr(1,0)}},a:function(e,t){var r=xr();try{Se.get(e)(t)}catch(e){if(Tr(r),e!==e+0)throw e;kr(1,0)}},b:function(e,t,r){var n=xr();try{Se.get(e)(t,r)}catch(e){if(Tr(n),e!==e+0)throw e;kr(1,0)}},h:function(e,t,r,n){var i=xr();try{Se.get(e)(t,r,n)}catch(e){if(Tr(i),e!==e+0)throw e;kr(1,0)}},y:function(e,t,r,n,i){var o=xr();try{Se.get(e)(t,r,n,i)}catch(e){if(Tr(o),e!==e+0)throw e;kr(1,0)}},ea:ot};!async function(){function e(e){return w=(gr=e.exports).Ya,C(),Se=gr.bb,F.unshift(gr.Za),D(),gr}B();var t={a:yr};if(n.instantiateWasm)try{return n.instantiateWasm(t,e)}catch(e){v(`Module.instantiateWasm callback failed with error: ${e}`),r(e)}W??=n.locateFile?N("thorvg.wasm")?"thorvg.wasm":n.locateFile?n.locateFile("thorvg.wasm",f):f+"thorvg.wasm":new URL("thorvg.wasm",import.meta.url).href;try{var i=await async function(e){var t=W;if(!(x||"function"!=typeof WebAssembly.instantiateStreaming||N(t)||I(t)||s)&&"function"==typeof fetch)try{var r=fetch(t,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(r,e)}catch(e){v(`wasm streaming compile failed: ${e}`),v("falling back to ArrayBuffer instantiation")}return async function(e,t){try{var r=await async function(e){if(!x)try{var t=await h(e);return new Uint8Array(t)}catch{}if(e==W&&x)e=new Uint8Array(x);else{if(!l)throw"both async and sync fetching of the wasm failed";e=l(e)}return e}(e);return await WebAssembly.instantiate(r,t)}catch(e){v(`failed to asynchronously prepare wasm: ${e}`),M(e)}}(t,e)}(t);return e(i.instance),i}catch(e){r(e)}}();var _r,Er=e=>(Er=gr._a)(e),Ar=e=>(Ar=gr.$a)(e),$r=e=>($r=gr.ab)(e),Sr=(e,t)=>(Sr=gr.cb)(e,t),kr=(e,t)=>(kr=gr.db)(e,t),Tr=e=>(Tr=gr.eb)(e),xr=()=>(xr=gr.fb)();function Pr(){function e(){if(!_r&&(_r=!0,n.calledRun=!0,!P)){if(n.noFSInit||ur.rc||qt(),ur.Lc=!1,q(F),t(n),n.onRuntimeInitialized?.(),n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;){var e=n.postRun.shift();O.unshift(e)}q(O)}}if(!(0<U)){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)R();q(j),0<U||(n.setStatus?(n.setStatus("Running..."),setTimeout((()=>{setTimeout((()=>n.setStatus("")),1),e()}),1)):e())}}if(n.addRunDependency=B,n.removeRunDependency=D,n.FS_createPreloadedFile=Ht,n.FS_unlink=e=>ur.unlink(e),n.FS_createPath=dr,n.FS_createDevice=br,n.FS=ur,n.FS_createDataFile=(e,t,r,n,i,o)=>{ur.mc(e,t,r,n,i,o)},n.FS_createLazyFile=fr,L=function e(){_r||Pr(),_r||(L=e)},n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);0<n.preInit.length;)n.preInit.pop()();return Pr(),i});function le(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}let ue,de=!1;var fe,be,pe,me,ve,we;!function(e){e.SW="sw",e.WG="wg",e.GL="gl"}(fe||(fe={})),function(e){e.IDLE="idle",e.FAILED="failed",e.REQUESTED="requested",e.INITIALIZED="initialized"}(be||(be={})),function(e){e.JSON="json",e.LOT="lot",e.JPG="jpg",e.PNG="png",e.SVG="svg"}(pe||(pe={})),function(e){e.Destroyed="destroyed",e.Error="error",e.Loading="loading",e.Paused="paused",e.Playing="playing",e.Stopped="stopped",e.Frozen="frozen"}(me||(me={})),function(e){e.Bounce="bounce",e.Normal="normal"}(ve||(ve={})),function(e){e.Complete="complete",e.Destroyed="destroyed",e.Error="error",e.Frame="frame",e.Freeze="freeze",e.Load="load",e.Loop="loop",e.Pause="pause",e.Play="play",e.Ready="ready",e.Stop="stop"}(we||(we={}));const ge=e=>new Promise((t=>setTimeout(t,e)));let ye="idle";class _e extends ae{src;wasmUrl;fileType="json";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;config;_imageData;_beginTime=Date.now();_counter=1;_timer;_observer;_observable=!1;async _init(){if(de)for(;!ue;)await ge(100);if(ue||(de=!0,ue=await he({locateFile:(e,t)=>e.endsWith(".wasm")?this.wasmUrl||"https://unpkg.com/@thorvg/lottie-player@latest/dist/gl/thorvg.wasm":t+e})),!this._timer)return;clearInterval(this._timer),this._timer=void 0;const e=this.config?.renderer||"gl";if(await(async e=>{if("wg"===e){for(;"requested"===ye;)await ge(100);if("initialized"!==ye)for(ye="requested";;)switch(ue.init()){case 0:return void(ye="initialized");case 1:return void(ye="failed");case 2:await ge(100)}}})(e),"failed"===ye)return this.currentState="error",void this.dispatchEvent(new CustomEvent("error"));this.TVG=new ue.TvgLottieAnimation(e,`#${this.canvas.id}`),this.src&&this.load(this.src,this.fileType)}_viewport(){const{left:e,right:t,top:r,bottom:n}=this.getBoundingClientRect(),i=window.innerWidth,o=window.innerHeight;let a=0,s=0,c=this.canvas.width,h=this.canvas.height;e<0&&(a=Math.abs(e),c-=a),r<0&&(s=Math.abs(r),h-=s),t>i&&(c-=t-i),n>o&&(h-=n-o),this.TVG.viewport(a,s,c,h)}_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-${Date.now().toString(36)+Math.random().toString(36).substring(2)}`,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.fileType):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){if(!this.TVG.load(e,this.fileType,this.canvas.width,this.canvas.height,""))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.config?.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}if(this.TVG.resize(this.canvas.width,this.canvas.height),this._viewport(),!this.TVG.update())return;if("wg"===this.config?.renderer||"gl"===this.config?.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 ge(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(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||"lot"===t)return n=await(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})(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")}})(e,t);this.dispatchEvent(new CustomEvent("ready")),this.fileType=t,await this._loadBytes(r)}catch(e){this.currentState="error",this.dispatchEvent(new CustomEvent("error"))}}play(){if(!("json"!==this.fileType&&"lot"!==this.fileType||(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(){ue.term(),ue=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)}setQuality(e){this.TVG&&this.TVG.quality(e)&&"playing"!==this.currentState&&this._render()}getVersion(){return{THORVG_VERSION:"1.0.0"}}render(){return z`
|
|
2
2
|
<canvas class="thorvg" style="width: 100%; height: 100%;" />
|
|
3
3
|
`}}le([$({type:String})],_e.prototype,"src",void 0),le([$({type:String})],_e.prototype,"wasmUrl",void 0),le([$({type:pe})],_e.prototype,"fileType",void 0),le([$({type:Number})],_e.prototype,"speed",void 0),le([$({type:Boolean})],_e.prototype,"autoPlay",void 0),le([$({type:Number})],_e.prototype,"count",void 0),le([$({type:Boolean})],_e.prototype,"loop",void 0),le([$({type:Number})],_e.prototype,"direction",void 0),le([$()],_e.prototype,"mode",void 0),le([$()],_e.prototype,"intermission",void 0),le([$({type:Number})],_e.prototype,"totalFrame",void 0),le([$({type:Number})],_e.prototype,"currentFrame",void 0),le([$({type:Number})],_e.prototype,"currentState",void 0),le([$({type:Float32Array})],_e.prototype,"size",null);class Ee extends _e{set renderConfig(e){this.config={renderer:"gl",enableDevicePixelRatio:e.enableDevicePixelRatio}}get renderConfig(){return this.config||{}}}Ee=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(e=>(t,r)=>{void 0!==r?r.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)})("lottie-player")],Ee);var Ae=Object.freeze({__proto__:null});export{Ee as LottiePresetPlayer};
|
|
4
4
|
//# sourceMappingURL=lottie-player.cjs.js.map
|