From 28523518368314d112cb6d411219cc800fde35c2 Mon Sep 17 00:00:00 2001 From: kujtimprenkuSQA Date: Fri, 8 Sep 2023 13:58:18 +0000 Subject: [PATCH] deploy: 020fb015d6e5187aaec5cfdb165e6486e57a59b0 --- ....844ce2be.js => dist-L25PVQMT.861dc13c.js} | 2 +- .../{index.2bf8bb54.js => index.fe23292f.js} | 104 +++++++++--------- index.html | 2 +- 3 files changed, 54 insertions(+), 54 deletions(-) rename assets/{dist-L25PVQMT.844ce2be.js => dist-L25PVQMT.861dc13c.js} (99%) rename assets/{index.2bf8bb54.js => index.fe23292f.js} (86%) diff --git a/assets/dist-L25PVQMT.844ce2be.js b/assets/dist-L25PVQMT.861dc13c.js similarity index 99% rename from assets/dist-L25PVQMT.844ce2be.js rename to assets/dist-L25PVQMT.861dc13c.js index dac3961..0576a92 100644 --- a/assets/dist-L25PVQMT.844ce2be.js +++ b/assets/dist-L25PVQMT.861dc13c.js @@ -1,4 +1,4 @@ -import{_ as Wr,r as jr,G as ge,F as Ve,N as E,q as W,i as v,Q,T as Dr,d as U,f as ae}from"./index.2bf8bb54.js";var Fe=window,Dt=Fe.ShadowRoot&&(Fe.ShadyCSS===void 0||Fe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Nt=Symbol(),Zt=new WeakMap,fr=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Nt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Dt&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=Zt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Zt.set(t,e))}return e}toString(){return this.cssText}},Nr=e=>new fr(typeof e=="string"?e:e+"",void 0,Nt),$=(e,...t)=>{const r=e.length===1?e[0]:t.reduce((a,o,i)=>a+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1],e[0]);return new fr(r,e,Nt)},Ur=(e,t)=>{Dt?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{const a=document.createElement("style"),o=Fe.litNonce;o!==void 0&&a.setAttribute("nonce",o),a.textContent=r.cssText,e.appendChild(a)})},zt=Dt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const a of t.cssRules)r+=a.cssText;return Nr(r)})(e):e,tt,qe=window,Vt=qe.trustedTypes,Hr=Vt?Vt.emptyScript:"",Ft=qe.reactiveElementPolyfillSupport,St={toAttribute(e,t){switch(t){case Boolean:e=e?Hr:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},br=(e,t)=>t!==e&&(t==t||e==e),rt={attribute:!0,type:String,converter:St,reflect:!1,hasChanged:br},he=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,r)=>{const a=this._$Ep(r,t);a!==void 0&&(this._$Ev.set(a,r),e.push(a))}),e}static createProperty(e,t=rt){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const r=typeof e=="symbol"?Symbol():"__"+e,a=this.getPropertyDescriptor(e,r,t);a!==void 0&&Object.defineProperty(this.prototype,e,a)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(a){const o=this[e];this[t]=a,this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||rt}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,r=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const a of r)this.createProperty(a,t[a])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const a of r)t.unshift(zt(a))}else e!==void 0&&t.push(zt(e));return t}static _$Ep(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)===null||r===void 0||r.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Ur(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostConnected)===null||r===void 0?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostDisconnected)===null||r===void 0?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=rt){var a;const o=this.constructor._$Ep(e,r);if(o!==void 0&&r.reflect===!0){const i=(((a=r.converter)===null||a===void 0?void 0:a.toAttribute)!==void 0?r.converter:St).toAttribute(t,r.type);this._$El=e,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(e,t){var r;const a=this.constructor,o=a._$Ev.get(e);if(o!==void 0&&this._$El!==o){const i=a.getPropertyOptions(o),n=typeof i.converter=="function"?{fromAttribute:i.converter}:((r=i.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?i.converter:St;this._$El=o,this[o]=n.fromAttribute(t,i.type),this._$El=null}}requestUpdate(e,t,r){let a=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||br)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,r))):a=!1),!this.isUpdatePending&&a&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((a,o)=>this[o]=a),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$ES)===null||e===void 0||e.forEach(a=>{var o;return(o=a.hostUpdate)===null||o===void 0?void 0:o.call(a)}),this.update(r)):this._$Ek()}catch(a){throw t=!1,this._$Ek(),a}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var a;return(a=r.hostUpdated)===null||a===void 0?void 0:a.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,r)=>this._$EO(r,this[r],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};he.finalized=!0,he.elementProperties=new Map,he.elementStyles=[],he.shadowRootOptions={mode:"open"},Ft==null||Ft({ReactiveElement:he}),((tt=qe.reactiveElementVersions)!==null&&tt!==void 0?tt:qe.reactiveElementVersions=[]).push("1.6.1");var ot,Ke=window,we=Ke.trustedTypes,qt=we?we.createPolicy("lit-html",{createHTML:e=>e}):void 0,Rt="$lit$",K=`lit$${(Math.random()+"").slice(9)}$`,yr="?"+K,Br=`<${yr}>`,fe=document,Me=()=>fe.createComment(""),Se=e=>e===null||typeof e!="object"&&typeof e!="function",xr=Array.isArray,Zr=e=>xr(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",at=`[ +import{_ as Wr,r as jr,G as ge,F as Ve,N as E,q as W,i as v,Q,T as Dr,d as U,f as ae}from"./index.fe23292f.js";var Fe=window,Dt=Fe.ShadowRoot&&(Fe.ShadyCSS===void 0||Fe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Nt=Symbol(),Zt=new WeakMap,fr=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Nt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Dt&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=Zt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Zt.set(t,e))}return e}toString(){return this.cssText}},Nr=e=>new fr(typeof e=="string"?e:e+"",void 0,Nt),$=(e,...t)=>{const r=e.length===1?e[0]:t.reduce((a,o,i)=>a+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1],e[0]);return new fr(r,e,Nt)},Ur=(e,t)=>{Dt?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{const a=document.createElement("style"),o=Fe.litNonce;o!==void 0&&a.setAttribute("nonce",o),a.textContent=r.cssText,e.appendChild(a)})},zt=Dt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const a of t.cssRules)r+=a.cssText;return Nr(r)})(e):e,tt,qe=window,Vt=qe.trustedTypes,Hr=Vt?Vt.emptyScript:"",Ft=qe.reactiveElementPolyfillSupport,St={toAttribute(e,t){switch(t){case Boolean:e=e?Hr:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},br=(e,t)=>t!==e&&(t==t||e==e),rt={attribute:!0,type:String,converter:St,reflect:!1,hasChanged:br},he=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,r)=>{const a=this._$Ep(r,t);a!==void 0&&(this._$Ev.set(a,r),e.push(a))}),e}static createProperty(e,t=rt){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const r=typeof e=="symbol"?Symbol():"__"+e,a=this.getPropertyDescriptor(e,r,t);a!==void 0&&Object.defineProperty(this.prototype,e,a)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(a){const o=this[e];this[t]=a,this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||rt}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,r=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const a of r)this.createProperty(a,t[a])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const a of r)t.unshift(zt(a))}else e!==void 0&&t.push(zt(e));return t}static _$Ep(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)===null||r===void 0||r.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Ur(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostConnected)===null||r===void 0?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostDisconnected)===null||r===void 0?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=rt){var a;const o=this.constructor._$Ep(e,r);if(o!==void 0&&r.reflect===!0){const i=(((a=r.converter)===null||a===void 0?void 0:a.toAttribute)!==void 0?r.converter:St).toAttribute(t,r.type);this._$El=e,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(e,t){var r;const a=this.constructor,o=a._$Ev.get(e);if(o!==void 0&&this._$El!==o){const i=a.getPropertyOptions(o),n=typeof i.converter=="function"?{fromAttribute:i.converter}:((r=i.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?i.converter:St;this._$El=o,this[o]=n.fromAttribute(t,i.type),this._$El=null}}requestUpdate(e,t,r){let a=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||br)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,r))):a=!1),!this.isUpdatePending&&a&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((a,o)=>this[o]=a),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$ES)===null||e===void 0||e.forEach(a=>{var o;return(o=a.hostUpdate)===null||o===void 0?void 0:o.call(a)}),this.update(r)):this._$Ek()}catch(a){throw t=!1,this._$Ek(),a}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var a;return(a=r.hostUpdated)===null||a===void 0?void 0:a.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,r)=>this._$EO(r,this[r],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};he.finalized=!0,he.elementProperties=new Map,he.elementStyles=[],he.shadowRootOptions={mode:"open"},Ft==null||Ft({ReactiveElement:he}),((tt=qe.reactiveElementVersions)!==null&&tt!==void 0?tt:qe.reactiveElementVersions=[]).push("1.6.1");var ot,Ke=window,we=Ke.trustedTypes,qt=we?we.createPolicy("lit-html",{createHTML:e=>e}):void 0,Rt="$lit$",K=`lit$${(Math.random()+"").slice(9)}$`,yr="?"+K,Br=`<${yr}>`,fe=document,Me=()=>fe.createComment(""),Se=e=>e===null||typeof e!="object"&&typeof e!="function",xr=Array.isArray,Zr=e=>xr(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",at=`[ \f\r]`,$e=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Kt=/-->/g,Qt=/>/g,J=RegExp(`>|${at}(?:([^\\s"'>=/]+)(${at}*=${at}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Yt=/"/g,$r=/^(?:script|style|textarea|title)$/i,Cr=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),c=Cr(1),A=Cr(2),ie=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),Xt=new WeakMap,pe=fe.createTreeWalker(fe,129,null,!1),zr=(e,t)=>{const r=e.length-1,a=[];let o,i=t===2?"":"",n=$e;for(let s=0;s"?(n=o!=null?o:$e,m=-1):p[1]===void 0?m=-2:(m=n.lastIndex-p[2].length,y=p[1],n=p[3]===void 0?J:p[3]==='"'?Yt:Gt):n===Yt||n===Gt?n=J:n===Kt||n===Qt?n=$e:(n=J,o=void 0);const x=n===J&&e[s+1].startsWith("/>")?" ":"";i+=n===$e?d+Br:m>=0?(a.push(y),d.slice(0,m)+Rt+d.slice(m)+K+x):d+K+(m===-2?(a.push(void 0),s):x)}const l=i+(e[r]||"")+(t===2?"":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[qt!==void 0?qt.createHTML(l):l,a]},Qe=class{constructor({strings:e,_$litType$:t},r){let a;this.parts=[];let o=0,i=0;const n=e.length-1,l=this.parts,[s,d]=zr(e,t);if(this.el=Qe.createElement(s,r),pe.currentNode=this.el.content,t===2){const y=this.el.content,p=y.firstChild;p.remove(),y.append(...p.childNodes)}for(;(a=pe.nextNode())!==null&&l.length0){a.textContent=we?we.emptyScript:"";for(let m=0;m2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=P}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,a){const o=this.strings;let i=!1;if(o===void 0)e=be(this,e,t,0),i=!Se(e)||e!==this._$AH&&e!==ie,i&&(this._$AH=e);else{const n=e;let l,s;for(e=o[0],l=0;l{var a,o;const i=(a=r==null?void 0:r.renderBefore)!==null&&a!==void 0?a:t;let n=i._$litPart$;if(n===void 0){const l=(o=r==null?void 0:r.renderBefore)!==null&&o!==void 0?o:null;i._$litPart$=n=new Je(t.insertBefore(Me(),l),l,void 0,r!=null?r:{})}return n._$AI(e),n},it,nt,g=class extends he{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const r=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=r.firstChild),r}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Yr(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return ie}};g.finalized=!0,g._$litElement$=!0,(it=globalThis.litElementHydrateSupport)===null||it===void 0||it.call(globalThis,{LitElement:g});var er=globalThis.litElementPolyfillSupport;er==null||er({LitElement:g});((nt=globalThis.litElementVersions)!==null&&nt!==void 0?nt:globalThis.litElementVersions=[]).push("3.3.2");var b=e=>t=>typeof t=="function"?((r,a)=>(customElements.define(r,a),a))(e,t):((r,a)=>{const{kind:o,elements:i}=a;return{kind:o,elements:i,finisher(n){customElements.define(r,n)}}})(e,t),Xr=(e,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(r){r.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(r){r.createProperty(t.key,e)}};function u(e){return(t,r)=>r!==void 0?((a,o,i)=>{o.constructor.createProperty(i,a)})(e,t,r):Xr(e,t)}function j(e){return u({...e,state:!0})}var lt;((lt=window.HTMLSlotElement)===null||lt===void 0?void 0:lt.prototype.assignedElements)!=null;var Jr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},eo=e=>(...t)=>({_$litDirective$:e,values:t}),to=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},B=eo(class extends to{constructor(e){var t;if(super(e),e.type!==Jr.ATTRIBUTE||e.name!=="class"||((t=e.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var r,a;if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(const i in t)t[i]&&!(!((r=this.nt)===null||r===void 0)&&r.has(i))&&this.it.add(i);return this.render(t)}const o=e.element.classList;this.it.forEach(i=>{i in t||(o.remove(i),this.it.delete(i))});for(const i in t){const n=!!t[i];n===this.it.has(i)||((a=this.nt)===null||a===void 0?void 0:a.has(i))||(n?(o.add(i),this.it.add(i)):(o.remove(i),this.it.delete(i)))}return ie}});function ro(e,t){e.indexOf(t)===-1&&e.push(t)}var _r=(e,t,r)=>Math.min(Math.max(r,e),t),D={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},Ge=e=>typeof e=="number",ue=e=>Array.isArray(e)&&!Ge(e[0]),oo=(e,t,r)=>{const a=t-e;return((r-e)%a+a)%a+e};function ao(e,t){return ue(e)?e[oo(0,e.length,t)]:e}var Ar=(e,t,r)=>-r*e+r*t+e,Er=()=>{},G=e=>e,Ut=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function Or(e,t){const r=e[e.length-1];for(let a=1;a<=t;a++){const o=Ut(0,t,a);e.push(Ar(r,1,o))}}function io(e){const t=[0];return Or(t,e-1),t}function no(e,t=io(e.length),r=G){const a=e.length,o=a-t.length;return o>0&&Or(t,o),i=>{let n=0;for(;nArray.isArray(e)&&Ge(e[0]),Lt=e=>typeof e=="object"&&Boolean(e.createAnimation),ye=e=>typeof e=="function",lo=e=>typeof e=="string",Pe={ms:e=>e*1e3,s:e=>e/1e3},Ir=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,so=1e-7,co=12;function ho(e,t,r,a,o){let i,n,l=0;do n=t+(r-t)/2,i=Ir(n,a,o)-e,i>0?r=n:t=n;while(Math.abs(i)>so&&++lho(i,0,1,e,r);return i=>i===0||i===1?i:Ir(o(i),t,a)}var mo=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const a=r*e,o=t==="end"?Math.floor(a):Math.ceil(a);return _r(0,1,o/e)},tr={ease:Te(.25,.1,.25,1),"ease-in":Te(.42,0,1,1),"ease-in-out":Te(.42,0,.58,1),"ease-out":Te(0,0,.58,1)},po=/\((.*?)\)/;function rr(e){if(ye(e))return e;if(kr(e))return Te(...e);if(tr[e])return tr[e];if(e.startsWith("steps")){const t=po.exec(e);if(t){const r=t[1].split(",");return mo(parseFloat(r[0]),r[1].trim())}}return G}var Tr=class{constructor(e,t=[0,1],{easing:r,duration:a=D.duration,delay:o=D.delay,endDelay:i=D.endDelay,repeat:n=D.repeat,offset:l,direction:s="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=G,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((y,p)=>{this.resolve=y,this.reject=p}),r=r||D.easing,Lt(r)){const y=r.createAnimation(t);r=y.easing,t=y.keyframes||t,a=y.duration||a}this.repeat=n,this.easing=ue(r)?G:rr(r),this.updateDuration(a);const d=no(t,l,ue(r)?r.map(rr):G);this.tick=y=>{var p;o=o;let m=0;this.pauseTime!==void 0?m=this.pauseTime:m=(y-this.startTime)*this.rate,this.t=m,m/=1e3,m=Math.max(m-o,0),this.playState==="finished"&&this.pauseTime===void 0&&(m=this.totalDuration);const M=m/this.duration;let x=Math.floor(M),w=M%1;!w&&M>=1&&(w=1),w===1&&x--;const I=x%2;(s==="reverse"||s==="alternate"&&I||s==="alternate-reverse"&&!I)&&(w=1-w);const _=m>=this.totalDuration?1:Math.min(w,1),O=d(this.easing(_));e(O),this.pauseTime===void 0&&(this.playState==="finished"||m>=this.totalDuration+i)?(this.playState="finished",(p=this.resolve)===null||p===void 0||p.call(this,O)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const e=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(e=this.reject)===null||e===void 0||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){this.pauseTime!==void 0||this.rate===0?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}},uo=class{setAnimation(e){this.animation=e,e==null||e.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}},st=new WeakMap;function Pr(e){return st.has(e)||st.set(e,{transforms:[],values:new Map}),st.get(e)}function vo(e,t){return e.has(t)||e.set(t,new uo),e.get(t)}var go=["","X","Y","Z"],wo=["translate","scale","rotate","skew"],Ye={x:"translateX",y:"translateY",z:"translateZ"},or={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},fo={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:or,scale:{syntax:"",initialValue:1,toDefaultUnit:G},skew:or},Re=new Map,Ht=e=>`--motion-${e}`,Xe=["x","y","z"];wo.forEach(e=>{go.forEach(t=>{Xe.push(e+t),Re.set(Ht(e+t),fo[e])})});var bo=(e,t)=>Xe.indexOf(e)-Xe.indexOf(t),yo=new Set(Xe),Mr=e=>yo.has(e),xo=(e,t)=>{Ye[t]&&(t=Ye[t]);const{transforms:r}=Pr(e);ro(r,t),e.style.transform=$o(r)},$o=e=>e.sort(bo).reduce(Co,"").trim(),Co=(e,t)=>`${e} ${t}(var(${Ht(t)}))`,Wt=e=>e.startsWith("--"),ar=new Set;function _o(e){if(!ar.has(e)){ar.add(e);try{const{syntax:t,initialValue:r}=Re.has(e)?Re.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}var ct=(e,t)=>document.createElement("div").animate(e,t),ir={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ct({opacity:[1]})}catch{return!1}return!0},finished:()=>Boolean(ct({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{ct({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},dt={},me={};for(const e in ir)me[e]=()=>(dt[e]===void 0&&(dt[e]=ir[e]()),dt[e]);var Ao=.015,Eo=(e,t)=>{let r="";const a=Math.round(t/Ao);for(let o=0;oye(e)?me.linearEasing()?`linear(${Eo(e,t)})`:D.easing:kr(e)?Oo(e):e,Oo=([e,t,r,a])=>`cubic-bezier(${e}, ${t}, ${r}, ${a})`;function ko(e,t){for(let r=0;rArray.isArray(e)?e:[e];function jt(e){return Ye[e]&&(e=Ye[e]),Mr(e)?Ht(e):e}var je={get:(e,t)=>{t=jt(t);let r=Wt(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const a=Re.get(t);a&&(r=a.initialValue)}return r},set:(e,t,r)=>{t=jt(t),Wt(t)?e.style.setProperty(t,r):e.style[t]=r}};function Sr(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function To(e,t){var r;let a=(t==null?void 0:t.toDefaultUnit)||G;const o=e[e.length-1];if(lo(o)){const i=((r=o.match(/(-?[\d.]+)([a-z%]*)/))===null||r===void 0?void 0:r[2])||"";i&&(a=n=>n+i)}return a}function Po(){return window.__MOTION_DEV_TOOLS_RECORD}function Mo(e,t,r,a={},o){const i=Po(),n=a.record!==!1&&i;let l,{duration:s=D.duration,delay:d=D.delay,endDelay:y=D.endDelay,repeat:p=D.repeat,easing:m=D.easing,persist:M=!1,direction:x,offset:w,allowWebkitAcceleration:I=!1}=a;const _=Pr(e),O=Mr(t);let R=me.waapi();O&&xo(e,t);const S=jt(t),Le=vo(_.values,S),Z=Re.get(S);return Sr(Le.animation,!(Lt(m)&&Le.generator)&&a.record!==!1),()=>{const We=()=>{var k,xe;return(xe=(k=je.get(e,S))!==null&&k!==void 0?k:Z==null?void 0:Z.initialValue)!==null&&xe!==void 0?xe:0};let T=ko(Io(r),We);const Bt=To(T,Z);if(Lt(m)){const k=m.createAnimation(T,t!=="opacity",We,S,Le);m=k.easing,T=k.keyframes||T,s=k.duration||s}if(Wt(S)&&(me.cssRegisterProperty()?_o(S):R=!1),O&&!me.linearEasing()&&(ye(m)||ue(m)&&m.some(ye))&&(R=!1),R){Z&&(T=T.map(X=>Ge(X)?Z.toDefaultUnit(X):X)),T.length===1&&(!me.partialKeyframes()||n)&&T.unshift(We());const k={delay:Pe.ms(d),duration:Pe.ms(s),endDelay:Pe.ms(y),easing:ue(m)?void 0:nr(m,s),direction:x,iterations:p+1,fill:"both"};l=e.animate({[S]:T,offset:w,easing:ue(m)?m.map(X=>nr(X,s)):void 0},k),l.finished||(l.finished=new Promise((X,Lr)=>{l.onfinish=X,l.oncancel=Lr}));const xe=T[T.length-1];l.finished.then(()=>{M||(je.set(e,S,xe),l.cancel())}).catch(Er),I||(l.playbackRate=1.000001)}else if(o&&O)T=T.map(k=>typeof k=="string"?parseFloat(k):k),T.length===1&&T.unshift(parseFloat(We())),l=new o(k=>{je.set(e,S,Bt?Bt(k):k)},T,Object.assign(Object.assign({},a),{duration:s,easing:m}));else{const k=T[T.length-1];je.set(e,S,Z&&Ge(k)?Z.toDefaultUnit(k):k)}return n&&i(e,t,T,{duration:s,delay:d,easing:m,repeat:p,offset:w},"motion-one"),Le.setAnimation(l),l}}var So=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function Ro(e,t){var r;return typeof e=="string"?t?((r=t[e])!==null&&r!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}var Lo=e=>e(),Rr=(e,t,r=D.duration)=>new Proxy({animations:e.map(Lo).filter(Boolean),duration:r,options:t},jo),Wo=e=>e.animations[0],jo={get:(e,t)=>{const r=Wo(e);switch(t){case"duration":return e.duration;case"currentTime":return Pe.s((r==null?void 0:r[t])||0);case"playbackRate":case"playState":return r==null?void 0:r[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(Do)).catch(Er)),e.finished;case"stop":return()=>{e.animations.forEach(a=>Sr(a))};case"forEachNative":return a=>{e.animations.forEach(o=>a(o,e))};default:return typeof(r==null?void 0:r[t])>"u"?void 0:()=>e.animations.forEach(a=>a[t]())}},set:(e,t,r)=>{switch(t){case"currentTime":r=Pe.ms(r);case"currentTime":case"playbackRate":for(let a=0;ae.finished;function No(e,t,r){return ye(e)?e(t,r):e}function Uo(e){return function(r,a,o={}){r=Ro(r);const i=r.length,n=[];for(let l=0;l{const r=new Tr(e,[0,1],t);return r.finished.catch(()=>{}),r}],t,t.duration)}function oe(e,t,r){return(ye(e)?Bo:Ho)(e,t,r)}var L=e=>e!=null?e:P,Zo=Wr(jr()),zo=Object.defineProperty,lr=Object.getOwnPropertySymbols,Vo=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable,sr=(e,t,r)=>t in e?zo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ht=(e,t)=>{for(var r in t||(t={}))Vo.call(t,r)&&sr(e,r,t[r]);if(lr)for(var r of lr(t))Fo.call(t,r)&&sr(e,r,t[r]);return e};function qo(){var e;const t=(e=ge.state.themeMode)!=null?e:"dark",r={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[t];return{"--wcm-color-fg-1":r.foreground[1],"--wcm-color-fg-2":r.foreground[2],"--wcm-color-fg-3":r.foreground[3],"--wcm-color-bg-1":r.background[1],"--wcm-color-bg-2":r.background[2],"--wcm-color-bg-3":r.background[3],"--wcm-color-overlay":r.overlay}}function cr(){return{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}}var f={getPreset(e){return cr()[e]},setTheme(){const e=document.querySelector(":root"),{themeVariables:t}=ge.state;if(e){const r=ht(ht(ht({},qo()),cr()),t);Object.entries(r).forEach(([a,o])=>e.style.setProperty(a,o))}},globalCss:$`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},Ko=$`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`,Qo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,ne=(e,t,r,a)=>{for(var o=a>1?void 0:a?Go(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&Qo(t,r,o),o},z=class extends g{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const e={"wcm-icon-left":this.iconLeft!==void 0,"wcm-icon-right":this.iconRight!==void 0,"wcm-ghost":this.variant==="ghost","wcm-outline":this.variant==="outline"};let t="inverse";return this.variant==="ghost"&&(t="secondary"),this.variant==="outline"&&(t="accent"),c``}};z.styles=[f.globalCss,Ko],ne([u({type:Boolean})],z.prototype,"disabled",2),ne([u()],z.prototype,"iconLeft",2),ne([u()],z.prototype,"iconRight",2),ne([u()],z.prototype,"onClick",2),ne([u()],z.prototype,"variant",2),z=ne([b("wcm-button")],z);var Yo=$`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`,Xo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,mt=(e,t,r,a)=>{for(var o=a>1?void 0:a?Jo(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&Xo(t,r,o),o},Ce=class extends g{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const e={"wcm-secondary":this.variant==="secondary"};return c``}};Ce.styles=[f.globalCss,Yo],mt([u({type:Boolean})],Ce.prototype,"disabled",2),mt([u()],Ce.prototype,"variant",2),Ce=mt([b("wcm-button-big")],Ce);var ea=$`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`,ta=Object.defineProperty,ra=Object.getOwnPropertyDescriptor,oa=(e,t,r,a)=>{for(var o=a>1?void 0:a?ra(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&ta(t,r,o),o},pt=class extends g{render(){return c`
`}};pt.styles=[f.globalCss,ea],pt=oa([b("wcm-info-footer")],pt);var C={CROSS_ICON:A``,WALLET_CONNECT_LOGO:A``,WALLET_CONNECT_ICON:A``,WALLET_CONNECT_ICON_COLORED:A``,BACK_ICON:A``,COPY_ICON:A``,RETRY_ICON:A``,DESKTOP_ICON:A``,MOBILE_ICON:A``,ARROW_DOWN_ICON:A``,ARROW_UP_RIGHT_ICON:A``,ARROW_RIGHT_ICON:A``,QRCODE_ICON:A``,SCAN_ICON:A``,CHECKMARK_ICON:A``,SEARCH_ICON:A``,WALLET_PLACEHOLDER:A``,GLOBE_ICON:A``},aa=$`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`,ia=Object.defineProperty,na=Object.getOwnPropertyDescriptor,la=(e,t,r,a)=>{for(var o=a>1?void 0:a?na(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&ia(t,r,o),o},ut=class extends g{render(){return c`
${C.WALLET_CONNECT_LOGO}
`}};ut.styles=[f.globalCss,aa],ut=la([b("wcm-modal-backcard")],ut);var sa=$`main{padding:20px;padding-top:0;width:100%}`,ca=Object.defineProperty,da=Object.getOwnPropertyDescriptor,ha=(e,t,r,a)=>{for(var o=a>1?void 0:a?da(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&ca(t,r,o),o},vt=class extends g{render(){return c`
`}};vt.styles=[f.globalCss,sa],vt=ha([b("wcm-modal-content")],vt);var ma=$`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`,pa=Object.defineProperty,ua=Object.getOwnPropertyDescriptor,va=(e,t,r,a)=>{for(var o=a>1?void 0:a?ua(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&pa(t,r,o),o},gt=class extends g{render(){return c`
`}};gt.styles=[f.globalCss,ma],gt=va([b("wcm-modal-footer")],gt);var ga=$`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`,wa=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,_e=(e,t,r,a)=>{for(var o=a>1?void 0:a?fa(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&wa(t,r,o),o},ee=class extends g{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return c``}actionBtnTemplate(){return c``}render(){const e={"wcm-border":this.border},t=E.state.history.length>1,r=this.title?c`${this.title}`:c``;return c`
${t?this.backBtnTemplate():null} ${r} ${this.onAction?this.actionBtnTemplate():null}
`}};ee.styles=[f.globalCss,ga],_e([u()],ee.prototype,"title",2),_e([u()],ee.prototype,"onAction",2),_e([u()],ee.prototype,"actionIcon",2),_e([u({type:Boolean})],ee.prototype,"border",2),ee=_e([b("wcm-modal-header")],ee);var h={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(e,t){const r=e.renderRoot.querySelector(t);if(!r)throw new Error(`${t} not found`);return r},getWalletIcon({id:e,image_id:t}){const{walletImages:r}=ae.state;return r!=null&&r[e]?r[e]:t?W.getWalletImageUrl(t):""},getWalletName(e,t=!1){return t&&e.length>8?`${e.substring(0,8)}..`:e},isMobileAnimation(){return window.innerWidth<=h.MOBILE_BREAKPOINT},async preloadImage(e){const t=new Promise((r,a)=>{const o=new Image;o.onload=r,o.onerror=a,o.src=e});return Promise.race([t,v.wait(3e3)])},getErrorMessage(e){return e instanceof Error?e.message:"Unknown Error"},debounce(e,t=500){let r;return(...a)=>{function o(){e(...a)}r&&clearTimeout(r),r=setTimeout(o,t)}},handleMobileLinking(e){const{walletConnectUri:t}=U.state,{mobile:r,name:a}=e,o=r==null?void 0:r.native,i=r==null?void 0:r.universal;h.setRecentWallet(e);function n(l){let s="";o?s=v.formatUniversalUrl(o,l,a):i&&(s=v.formatNativeUrl(i,l,a)),v.openHref(s,"_self")}t&&n(t)},handleAndroidLinking(){const{walletConnectUri:e}=U.state;e&&(v.setWalletConnectAndroidDeepLink(e),v.openHref(e,"_self"))},async handleUriCopy(){const{walletConnectUri:e}=U.state;if(e)try{await navigator.clipboard.writeText(e),Q.openToast("Link copied","success")}catch{Q.openToast("Failed to copy","error")}},getCustomImageUrls(){const{walletImages:e}=ae.state,t=Object.values(e!=null?e:{});return Object.values(t)},truncate(e,t=8){return e.length<=t?e:`${e.substring(0,4)}...${e.substring(e.length-4)}`},setRecentWallet(e){try{localStorage.setItem(h.WCM_RECENT_WALLET_DATA,JSON.stringify(e))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{const e=localStorage.getItem(h.WCM_RECENT_WALLET_DATA);return e?JSON.parse(e):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes(e,t){return e.toUpperCase().includes(t.toUpperCase())},openWalletExplorerUrl(){v.openHref(h.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{desktop:e,mobile:t}=v.getWalletRouterData(),r=Boolean(e==null?void 0:e.native),a=Boolean(e==null?void 0:e.universal),o=Boolean(t==null?void 0:t.native)||Boolean(t==null?void 0:t.universal);return{isDesktop:r,isMobile:o,isWeb:a}},goToConnectingView(e){E.setData({Wallet:e});const t=v.isMobile(),{isDesktop:r,isWeb:a,isMobile:o}=h.getCachedRouterWalletPlatforms();t?o?E.push("MobileConnecting"):a?E.push("WebConnecting"):E.push("InstallWallet"):r?E.push("DesktopConnecting"):a?E.push("WebConnecting"):o?E.push("MobileQrcodeConnecting"):E.push("InstallWallet")}},ba=$`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`,ya=Object.defineProperty,xa=Object.getOwnPropertyDescriptor,wt=(e,t,r,a)=>{for(var o=a>1?void 0:a?xa(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&ya(t,r,o),o},Ae=class extends g{constructor(){super(),this.view=E.state.view,this.prevView=E.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=E.subscribe(e=>{this.view!==e.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{const t=`${e.contentRect.height}px`;this.oldHeight!=="0px"&&oe(this.routerEl,{height:[this.oldHeight,t]},{duration:.2}),this.oldHeight=t}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var e,t;(e=this.unsubscribe)==null||e.call(this),(t=this.resizeObserver)==null||t.disconnect()}get routerEl(){return h.getShadowRootElement(this,".wcm-router")}get contentEl(){return h.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return c``;case"DesktopConnecting":return c``;case"MobileConnecting":return c``;case"WebConnecting":return c``;case"MobileQrcodeConnecting":return c``;case"WalletExplorer":return c``;case"Qrcode":return c``;case"InstallWallet":return c``;default:return c`
Not Found
`}}async onChangeRoute(){await oe(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=E.state.view,oe(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return c`
${this.viewTemplate()}
`}};Ae.styles=[f.globalCss,ba],wt([j()],Ae.prototype,"view",2),wt([j()],Ae.prototype,"prevView",2),Ae=wt([b("wcm-modal-router")],Ae);var $a=$`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`,Ca=Object.defineProperty,_a=Object.getOwnPropertyDescriptor,dr=(e,t,r,a)=>{for(var o=a>1?void 0:a?_a(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&Ca(t,r,o),o},De=class extends g{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=Q.subscribe(e=>{e.open?(this.open=!0,this.timeout=setTimeout(()=>Q.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var e;(e=this.unsubscribe)==null||e.call(this),clearTimeout(this.timeout),Q.closeToast()}render(){const{message:e,variant:t}=Q.state,r={"wcm-success":t==="success","wcm-error":t==="error"};return this.open?c`
${t==="success"?C.CHECKMARK_ICON:null} ${t==="error"?C.CROSS_ICON:null}${e}
`:null}};De.styles=[f.globalCss,$a],dr([j()],De.prototype,"open",2),De=dr([b("wcm-modal-toast")],De);var Aa=.1,hr=2.5,H=7;function ft(e,t,r){return e===t?!1:(e-t<0?t-e:e-t)<=r+Aa}function Ea(e,t){const r=Array.prototype.slice.call(Zo.default.create(e,{errorCorrectionLevel:t}).modules.data,0),a=Math.sqrt(r.length);return r.reduce((o,i,n)=>(n%a===0?o.push([i]):o[o.length-1].push(i))&&o,[])}var Oa={generate(e,t,r){const a="#141414",o="#ffffff",i=[],n=Ea(e,"Q"),l=t/n.length,s=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];s.forEach(({x,y:w})=>{const I=(n.length-H)*l*x,_=(n.length-H)*l*w,O=.45;for(let R=0;R`)}});const d=Math.floor((r+25)/l),y=n.length/2-d/2,p=n.length/2+d/2-1,m=[];n.forEach((x,w)=>{x.forEach((I,_)=>{if(n[w][_]&&!(wn.length-(H+1)&&_n.length-(H+1))&&!(w>y&&wy&&_{M[x]?M[x].push(w):M[x]=[w]}),Object.entries(M).map(([x,w])=>{const I=w.filter(_=>w.every(O=>!ft(_,O,l)));return[Number(x),I]}).forEach(([x,w])=>{w.forEach(I=>{i.push(A``)})}),Object.entries(M).filter(([x,w])=>w.length>1).map(([x,w])=>{const I=w.filter(_=>w.some(O=>ft(_,O,l)));return[Number(x),I]}).map(([x,w])=>{w.sort((_,O)=>_R.some(S=>ft(_,S,l)));O?O.push(_):I.push([_])}return[x,I.map(_=>[_[0],_[_.length-1]])]}).forEach(([x,w])=>{w.forEach(([I,_])=>{i.push(A``)})}),i}},ka=$`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`,Ia=Object.defineProperty,Ta=Object.getOwnPropertyDescriptor,le=(e,t,r,a)=>{for(var o=a>1?void 0:a?Ta(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&Ia(t,r,o),o},V=class extends g{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const e=ge.state.themeMode==="light"?this.size:this.size-36;return A`${Oa.generate(this.uri,e,e/4)}`}render(){const e={"wcm-dark":ge.state.themeMode==="dark"};return c`
${this.walletId||this.imageUrl?c``:C.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`}};V.styles=[f.globalCss,ka],le([u()],V.prototype,"uri",2),le([u({type:Number})],V.prototype,"size",2),le([u()],V.prototype,"imageId",2),le([u()],V.prototype,"walletId",2),le([u()],V.prototype,"imageUrl",2),V=le([b("wcm-qrcode")],V);var Pa=$`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`,Ma=Object.defineProperty,Sa=Object.getOwnPropertyDescriptor,mr=(e,t,r,a)=>{for(var o=a>1?void 0:a?Sa(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&Ma(t,r,o),o},Ne=class extends g{constructor(){super(...arguments),this.onChange=()=>null}render(){return c` ${C.SEARCH_ICON}`}};Ne.styles=[f.globalCss,Pa],mr([u()],Ne.prototype,"onChange",2),Ne=mr([b("wcm-search-input")],Ne);var Ra=$`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`,La=Object.defineProperty,Wa=Object.getOwnPropertyDescriptor,ja=(e,t,r,a)=>{for(var o=a>1?void 0:a?Wa(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&La(t,r,o),o},bt=class extends g{render(){return c``}};bt.styles=[f.globalCss,Ra],bt=ja([b("wcm-spinner")],bt);var Da=$`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`,Na=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,yt=(e,t,r,a)=>{for(var o=a>1?void 0:a?Ua(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&Na(t,r,o),o},Ee=class extends g{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const e={"wcm-big-bold":this.variant==="big-bold","wcm-medium-regular":this.variant==="medium-regular","wcm-small-regular":this.variant==="small-regular","wcm-small-thin":this.variant==="small-thin","wcm-xsmall-regular":this.variant==="xsmall-regular","wcm-xsmall-bold":this.variant==="xsmall-bold","wcm-color-primary":this.color==="primary","wcm-color-secondary":this.color==="secondary","wcm-color-tertiary":this.color==="tertiary","wcm-color-inverse":this.color==="inverse","wcm-color-accnt":this.color==="accent","wcm-color-error":this.color==="error"};return c``}};Ee.styles=[f.globalCss,Da],yt([u()],Ee.prototype,"variant",2),yt([u()],Ee.prototype,"color",2),Ee=yt([b("wcm-text")],Ee);var Ha=$`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`,Ba=Object.defineProperty,Za=Object.getOwnPropertyDescriptor,F=(e,t,r,a)=>{for(var o=a>1?void 0:a?Za(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&Ba(t,r,o),o},N=class extends g{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?c`RECENT`:this.installed?c`INSTALLED`:null}handleClick(){Dr.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var e;return c``}};N.styles=[f.globalCss,Ha],F([u()],N.prototype,"onClick",2),F([u()],N.prototype,"name",2),F([u()],N.prototype,"walletId",2),F([u()],N.prototype,"label",2),F([u()],N.prototype,"imageId",2),F([u({type:Boolean})],N.prototype,"installed",2),F([u({type:Boolean})],N.prototype,"recent",2),N=F([b("wcm-wallet-button")],N);var za=$`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`,Va=Object.defineProperty,Fa=Object.getOwnPropertyDescriptor,Ue=(e,t,r,a)=>{for(var o=a>1?void 0:a?Fa(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&Va(t,r,o),o},se=class extends g{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var e;const t=(e=this.imageUrl)!=null&&e.length?this.imageUrl:h.getWalletIcon({id:this.walletId,image_id:this.imageId});return c`${t.length?c`
${this.id}
`:C.WALLET_PLACEHOLDER}`}};se.styles=[f.globalCss,za],Ue([u()],se.prototype,"walletId",2),Ue([u()],se.prototype,"imageId",2),Ue([u()],se.prototype,"imageUrl",2),se=Ue([b("wcm-wallet-image")],se);var qa=Object.defineProperty,Ka=Object.getOwnPropertyDescriptor,pr=(e,t,r,a)=>{for(var o=a>1?void 0:a?Ka(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&qa(t,r,o),o},xt=class extends g{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(e){try{e!=null&&e.length&&await Promise.all(e.map(async t=>h.preloadImage(t)))}catch{console.info("Unsuccessful attempt at preloading some images",e)}}async preloadListings(){if(ae.state.enableExplorer){await W.getRecomendedWallets(),U.setIsDataLoaded(!0);const{recomendedWallets:e}=W.state,t=e.map(r=>h.getWalletIcon(r));await this.loadImages(t)}else U.setIsDataLoaded(!0)}async preloadCustomImages(){const e=h.getCustomImageUrls();await this.loadImages(e)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(e){console.error(e),Q.openToast("Failed preloading","error")}}};pr([j()],xt.prototype,"preload",2),xt=pr([b("wcm-explorer-context")],xt);var Qa=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,Ya=(e,t,r,a)=>{for(var o=a>1?void 0:a?Ga(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&Qa(t,r,o),o},ur=class extends g{constructor(){super(),this.unsubscribeTheme=void 0,f.setTheme(),this.unsubscribeTheme=ge.subscribe(f.setTheme)}disconnectedCallback(){var e;(e=this.unsubscribeTheme)==null||e.call(this)}};ur=Ya([b("wcm-theme-context")],ur);var Xa=$`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`,Ja=Object.defineProperty,ei=Object.getOwnPropertyDescriptor,ti=(e,t,r,a)=>{for(var o=a>1?void 0:a?ei(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&Ja(t,r,o),o},$t=class extends g{onGoToQrcode(){E.push("Qrcode")}render(){const{recomendedWallets:e}=W.state,t=[...e,...e],r=v.RECOMMENDED_WALLET_AMOUNT*2;return c`
${C.MOBILE_ICON}WalletConnect
${[...Array(r)].map((a,o)=>{const i=t[o%t.length];return i?c``:C.WALLET_PLACEHOLDER})}
Select Wallet
Choose WalletConnect to see supported apps on your device`}};$t.styles=[f.globalCss,Xa],$t=ti([b("wcm-android-wallet-selection")],$t);var ri=$`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`,oi=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,ce=(e,t,r,a)=>{for(var o=a>1?void 0:a?ai(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&oi(t,r,o),o},q=class extends g{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var e,t;const r=(t=(e=ge.state.themeVariables)==null?void 0:e["--wcm-wallet-icon-large-border-radius"])!=null?t:f.getPreset("--wcm-wallet-icon-large-border-radius");let a=0;r.includes("%")?a=88/100*parseInt(r,10):a=parseInt(r,10),a*=1.17;const o=317-a*1.57,i=425-a*1.8;return c``}render(){const e={"wcm-error":this.isError,"wcm-stale":this.isStale};return c`
${this.svgLoaderTemplate()}
${this.isError?"Connection declined":this.label}`}};q.styles=[f.globalCss,ri],ce([u()],q.prototype,"walletId",2),ce([u()],q.prototype,"imageId",2),ce([u({type:Boolean})],q.prototype,"isError",2),ce([u({type:Boolean})],q.prototype,"isStale",2),ce([u()],q.prototype,"label",2),q=ce([b("wcm-connector-waiting")],q);var ve={manualWallets(){var e,t;const{mobileWallets:r,desktopWallets:a}=ae.state,o=(e=ve.recentWallet())==null?void 0:e.id,i=v.isMobile()?r:a,n=i==null?void 0:i.filter(l=>o!==l.id);return(t=v.isMobile()?n==null?void 0:n.map(({id:l,name:s,links:d})=>({id:l,name:s,mobile:d,links:d})):n==null?void 0:n.map(({id:l,name:s,links:d})=>({id:l,name:s,desktop:d,links:d})))!=null?t:[]},recentWallet(){return h.getRecentWallet()},recomendedWallets(e=!1){var t;const r=e||(t=ve.recentWallet())==null?void 0:t.id,{recomendedWallets:a}=W.state;return a.filter(o=>r!==o.id)}},Y={onConnecting(e){h.goToConnectingView(e)},manualWalletsTemplate(){return ve.manualWallets().map(e=>c``)},recomendedWalletsTemplate(e=!1){return ve.recomendedWallets(e).map(t=>c``)},recentWalletTemplate(){const e=ve.recentWallet();if(e)return c``}},ii=$`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`,ni=Object.defineProperty,li=Object.getOwnPropertyDescriptor,si=(e,t,r,a)=>{for(var o=a>1?void 0:a?li(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&ni(t,r,o),o},Ct=class extends g{render(){const{explorerExcludedWalletIds:e,enableExplorer:t}=ae.state,r=e!=="ALL"&&t,a=Y.manualWalletsTemplate(),o=Y.recomendedWalletsTemplate();let i=[Y.recentWalletTemplate(),...a,...o];i=i.filter(Boolean);const n=i.length>4||r;let l=[];n?l=i.slice(0,3):l=i;const s=Boolean(l.length);return c`
${C.MOBILE_ICON}Mobile
${C.SCAN_ICON}Scan with your wallet
${s?c`
${C.DESKTOP_ICON}Desktop
${l} ${n?c``:null}
`:null}`}};Ct.styles=[f.globalCss,ii],Ct=si([b("wcm-desktop-wallet-selection")],Ct);var ci=$`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`,di=Object.defineProperty,hi=Object.getOwnPropertyDescriptor,mi=(e,t,r,a)=>{for(var o=a>1?void 0:a?hi(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&di(t,r,o),o},_t=class extends g{render(){const{termsOfServiceUrl:e,privacyPolicyUrl:t}=ae.state;return(e!=null?e:t)?c`
By connecting your wallet to this app, you agree to the app's ${e?c`Terms of Service`:null} ${e&&t?"and":null} ${t?c`Privacy Policy`:null}
`:null}};_t.styles=[f.globalCss,ci],_t=mi([b("wcm-legal-notice")],_t);var pi=$`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`,ui=Object.defineProperty,vi=Object.getOwnPropertyDescriptor,gi=(e,t,r,a)=>{for(var o=a>1?void 0:a?vi(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&ui(t,r,o),o},At=class extends g{onQrcode(){E.push("Qrcode")}render(){const{explorerExcludedWalletIds:e,enableExplorer:t}=ae.state,r=e!=="ALL"&&t,a=Y.manualWalletsTemplate(),o=Y.recomendedWalletsTemplate();let i=[Y.recentWalletTemplate(),...a,...o];i=i.filter(Boolean);const n=i.length>8||r;let l=[];n?l=i.slice(0,7):l=i;const s=Boolean(l.length);return c`${s?c`
${l} ${n?c``:null}
`:null}`}};At.styles=[f.globalCss,pi],At=gi([b("wcm-mobile-wallet-selection")],At);var wi=$`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`,fi=Object.defineProperty,bi=Object.getOwnPropertyDescriptor,Et=(e,t,r,a)=>{for(var o=a>1?void 0:a?bi(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&fi(t,r,o),o},Oe=class extends g{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=Ve.subscribe(e=>{e.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var e;(e=this.unsubscribeModal)==null||e.call(this)}get overlayEl(){return h.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return h.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(e){if(document.querySelector("body"))if(e){const t=document.getElementById("wcm-styles");t==null||t.remove()}else document.head.insertAdjacentHTML("beforeend",'')}onCloseModal(e){e.target===e.currentTarget&&Ve.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout(async()=>{const e=h.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]},t=.1,r=.2;await Promise.all([oe(this.overlayEl,{opacity:[0,1]},{delay:t,duration:r}).finished,oe(this.containerEl,e,{delay:t,duration:r}).finished]),this.active=!0},0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const e=h.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]},t=.2;await Promise.all([oe(this.overlayEl,{opacity:[1,0]},{duration:t}).finished,oe(this.containerEl,e,{duration:t}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",e=>{var t;e.key==="Escape"?Ve.close():e.key==="Tab"&&((t=e.target)!=null&&t.tagName.includes("wcm-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var e;(e=this.abortController)==null||e.abort(),this.abortController=void 0}render(){const e={"wcm-overlay":!0,"wcm-active":this.active};return c`
${this.open?c`
`:null}
`}};Oe.styles=[f.globalCss,wi],Et([j()],Oe.prototype,"open",2),Et([j()],Oe.prototype,"active",2),Oe=Et([b("wcm-modal")],Oe);var yi=$`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`,xi=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,ke=(e,t,r,a)=>{for(var o=a>1?void 0:a?$i(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&xi(t,r,o),o},te=class extends g{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){v.isMobile()?E.replace("MobileConnecting"):E.replace("MobileQrcodeConnecting")}onDesktop(){E.replace("DesktopConnecting")}onWeb(){E.replace("WebConnecting")}render(){return c`
${this.isRetry?c``:null} ${this.isMobile?c`Mobile`:null} ${this.isDesktop?c`Desktop`:null} ${this.isWeb?c`Web`:null}
`}};te.styles=[f.globalCss,yi],ke([u({type:Boolean})],te.prototype,"isMobile",2),ke([u({type:Boolean})],te.prototype,"isDesktop",2),ke([u({type:Boolean})],te.prototype,"isWeb",2),ke([u({type:Boolean})],te.prototype,"isRetry",2),te=ke([b("wcm-platform-selection")],te);var Ci=$`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`,_i=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,Ei=(e,t,r,a)=>{for(var o=a>1?void 0:a?Ai(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&_i(t,r,o),o},Ot=class extends g{onClick(){E.push("WalletExplorer")}render(){const{recomendedWallets:e}=W.state,t=ve.manualWallets(),r=[...e,...t].reverse().slice(0,4);return c``}};Ot.styles=[f.globalCss,Ci],Ot=Ei([b("wcm-view-all-wallets-button")],Ot);var Oi=$`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`,ki=Object.defineProperty,Ii=Object.getOwnPropertyDescriptor,He=(e,t,r,a)=>{for(var o=a>1?void 0:a?Ii(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&ki(t,r,o),o},de=class extends g{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout(()=>{const{walletConnectUri:e}=U.state;this.uri=e},0)}get overlayEl(){return h.getShadowRootElement(this,".wcm-qr-container")}render(){return c`
${this.uri?c``:c``}
`}};de.styles=[f.globalCss,Oi],He([u()],de.prototype,"walletId",2),He([u()],de.prototype,"imageId",2),He([j()],de.prototype,"uri",2),de=He([b("wcm-walletconnect-qr")],de);var Ti=Object.defineProperty,Pi=Object.getOwnPropertyDescriptor,Mi=(e,t,r,a)=>{for(var o=a>1?void 0:a?Pi(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&Ti(t,r,o),o},kt=class extends g{viewTemplate(){return v.isAndroid()?c``:v.isMobile()?c``:c``}render(){return c`${this.viewTemplate()}`}};kt.styles=[f.globalCss],kt=Mi([b("wcm-connect-wallet-view")],kt);var Si=$`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`,Ri=Object.defineProperty,Li=Object.getOwnPropertyDescriptor,vr=(e,t,r,a)=>{for(var o=a>1?void 0:a?Li(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&Ri(t,r,o),o},Be=class extends g{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(e){const{desktop:t,name:r}=v.getWalletRouterData(),a=t==null?void 0:t.native;if(a){const o=v.formatNativeUrl(a,e,r);v.openHref(o,"_self")}}openDesktopApp(){const{walletConnectUri:e}=U.state,t=v.getWalletRouterData();h.setRecentWallet(t),e&&this.onFormatAndRedirect(e)}render(){const{name:e,id:t,image_id:r}=v.getWalletRouterData(),{isMobile:a,isWeb:o}=h.getCachedRouterWalletPlatforms();return c`${`Connection can continue loading if ${e} is not installed on your device`}Retry`}};Be.styles=[f.globalCss,Si],vr([j()],Be.prototype,"isError",2),Be=vr([b("wcm-desktop-connecting-view")],Be);var Wi=$`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`,ji=Object.defineProperty,Di=Object.getOwnPropertyDescriptor,Ni=(e,t,r,a)=>{for(var o=a>1?void 0:a?Di(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&ji(t,r,o),o},It=class extends g{onInstall(e){e&&v.openHref(e,"_blank")}render(){const{name:e,id:t,image_id:r,homepage:a}=v.getWalletRouterData();return c`${`Download ${e} to continue. If multiple browser extensions are installed, disable non ${e} ones and try again`}Download`}};It.styles=[f.globalCss,Wi],It=Ni([b("wcm-install-wallet-view")],It);var Ui=$`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`,Hi=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,gr=(e,t,r,a)=>{for(var o=a>1?void 0:a?Bi(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&Hi(t,r,o),o},Ze=class extends g{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(e,t=!1){const{mobile:r,name:a}=v.getWalletRouterData(),o=r==null?void 0:r.native,i=r==null?void 0:r.universal;if(o&&!t){const n=v.formatNativeUrl(o,e,a);v.openHref(n,"_self")}else if(i){const n=v.formatUniversalUrl(i,e,a);v.openHref(n,"_self")}}openMobileApp(e=!1){const{walletConnectUri:t}=U.state,r=v.getWalletRouterData();h.setRecentWallet(r),t&&this.onFormatAndRedirect(t,e)}onGoToAppStore(e){e&&v.openHref(e,"_blank")}render(){const{name:e,id:t,image_id:r,app:a,mobile:o}=v.getWalletRouterData(),{isWeb:i}=h.getCachedRouterWalletPlatforms(),n=a==null?void 0:a.ios,l=o==null?void 0:o.universal;return c`Retry${l?c`Still doesn't work? Try this alternate link`:null}
${`Get ${e}`}
App Store
`}};Ze.styles=[f.globalCss,Ui],gr([j()],Ze.prototype,"isError",2),Ze=gr([b("wcm-mobile-connecting-view")],Ze);var Zi=$`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`,zi=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,Fi=(e,t,r,a)=>{for(var o=a>1?void 0:a?Vi(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&zi(t,r,o),o},Tt=class extends g{render(){const{name:e,id:t,image_id:r}=v.getWalletRouterData(),{isDesktop:a,isWeb:o}=h.getCachedRouterWalletPlatforms();return c`${`Scan this QR Code with your phone's camera or inside ${e} app`}`}};Tt.styles=[f.globalCss,Zi],Tt=Fi([b("wcm-mobile-qr-connecting-view")],Tt);var qi=Object.defineProperty,Ki=Object.getOwnPropertyDescriptor,Qi=(e,t,r,a)=>{for(var o=a>1?void 0:a?Ki(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&qi(t,r,o),o},Pt=class extends g{render(){return c``}};Pt.styles=[f.globalCss],Pt=Qi([b("wcm-qrcode-view")],Pt);var Gi=$`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`,Yi=Object.defineProperty,Xi=Object.getOwnPropertyDescriptor,Ie=(e,t,r,a)=>{for(var o=a>1?void 0:a?Xi(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&Yi(t,r,o),o},Mt=40,re=class extends g{constructor(){super(...arguments),this.loading=!W.state.wallets.listings.length,this.firstFetch=!W.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=h.debounce(e=>{e.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=e,W.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),W.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var e;(e=this.intersectionObserver)==null||e.disconnect()}get placeholderEl(){return h.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([e])=>{e.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:e,search:t}=W.state,{listings:r,total:a}=this.search?t:e;return a<=Mt||r.length>=a}async fetchWallets(){var e;const{wallets:t,search:r}=W.state,{listings:a,total:o,page:i}=this.search?r:t;if(!this.endReached&&(this.firstFetch||o>Mt&&a.lengthh.getWalletIcon(d));await Promise.all([...s.map(async d=>h.preloadImage(d)),v.wait(300)]),this.endReached=this.isLastPage()}catch(n){console.error(n),Q.openToast(h.getErrorMessage(n),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(e){v.isAndroid()?h.handleMobileLinking(e):h.goToConnectingView(e)}onSearchChange(e){const{value:t}=e.target;this.searchDebounce(t)}render(){const{wallets:e,search:t}=W.state,{listings:r}=this.search?t:e,a=this.loading&&!r.length,o=this.search.length>=3;let i=Y.manualWalletsTemplate(),n=Y.recomendedWalletsTemplate(!0);o&&(i=i.filter(({values:d})=>h.caseSafeIncludes(d[0],this.search)),n=n.filter(({values:d})=>h.caseSafeIncludes(d[0],this.search)));const l=!this.loading&&!r.length&&!n.length,s={"wcm-loading":a,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":l};return c`
${a?null:i} ${a?null:n} ${a?null:r.map(d=>c`${d?c``:null}`)}
${l?c`No results found`:null} ${!l&&this.loading?c``:null}
`}};re.styles=[f.globalCss,Gi],Ie([j()],re.prototype,"loading",2),Ie([j()],re.prototype,"firstFetch",2),Ie([j()],re.prototype,"search",2),Ie([j()],re.prototype,"endReached",2),re=Ie([b("wcm-wallet-explorer-view")],re);var Ji=$`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`,en=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,wr=(e,t,r,a)=>{for(var o=a>1?void 0:a?tn(t,r):t,i=e.length-1,n;i>=0;i--)(n=e[i])&&(o=(a?n(t,r,o):n(o))||o);return a&&o&&en(t,r,o),o},ze=class extends g{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(e){const{desktop:t,name:r}=v.getWalletRouterData(),a=t==null?void 0:t.universal;if(a){const o=v.formatUniversalUrl(a,e,r);v.openHref(o,"_blank")}}openWebWallet(){const{walletConnectUri:e}=U.state,t=v.getWalletRouterData();h.setRecentWallet(t),e&&this.onFormatAndRedirect(e)}render(){const{name:e,id:t,image_id:r}=v.getWalletRouterData(),{isMobile:a,isDesktop:o}=h.getCachedRouterWalletPlatforms(),i=v.isMobile();return c`${`${e} web app has opened in a new tab. Go there, accept the connection, and come back`}Retry`}};ze.styles=[f.globalCss,Ji],wr([j()],ze.prototype,"isError",2),ze=wr([b("wcm-web-connecting-view")],ze);/** * @license diff --git a/assets/index.2bf8bb54.js b/assets/index.fe23292f.js similarity index 86% rename from assets/index.2bf8bb54.js rename to assets/index.fe23292f.js index 9a4f724..992af86 100644 --- a/assets/index.2bf8bb54.js +++ b/assets/index.fe23292f.js @@ -1,28 +1,28 @@ (function(){const k=document.createElement("link").relList;if(k&&k.supports&&k.supports("modulepreload"))return;for(const ce of document.querySelectorAll('link[rel="modulepreload"]'))ae(ce);new MutationObserver(ce=>{for(const fe of ce)if(fe.type==="childList")for(const le of fe.addedNodes)le.tagName==="LINK"&&le.rel==="modulepreload"&&ae(le)}).observe(document,{childList:!0,subtree:!0});function ie(ce){const fe={};return ce.integrity&&(fe.integrity=ce.integrity),ce.referrerpolicy&&(fe.referrerPolicy=ce.referrerpolicy),ce.crossorigin==="use-credentials"?fe.credentials="include":ce.crossorigin==="anonymous"?fe.credentials="omit":fe.credentials="same-origin",fe}function ae(ce){if(ce.ep)return;ce.ep=!0;const fe=ie(ce);fetch(ce.href,fe)}})();var __create=Object.create,__defProp$1=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__getOwnPropNames$1=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp$1=Object.prototype.hasOwnProperty,__require$1=(v=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(v,{get:(k,ie)=>(typeof require<"u"?require:k)[ie]}):v)(function(v){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+v+'" is not supported')}),__esm$1=(v,k)=>function(){return v&&(k=(0,v[__getOwnPropNames$1(v)[0]])(v=0)),k},__commonJS$1=(v,k)=>function(){return k||(0,v[__getOwnPropNames$1(v)[0]])((k={exports:{}}).exports,k),k.exports},__export$1=(v,k)=>{for(var ie in k)__defProp$1(v,ie,{get:k[ie],enumerable:!0})},__copyProps$1=(v,k,ie,ae)=>{if(k&&typeof k=="object"||typeof k=="function")for(let ce of __getOwnPropNames$1(k))!__hasOwnProp$1.call(v,ce)&&ce!==ie&&__defProp$1(v,ce,{get:()=>k[ce],enumerable:!(ae=__getOwnPropDesc$1(k,ce))||ae.enumerable});return v},__reExport=(v,k,ie)=>(__copyProps$1(v,k,"default"),ie&&__copyProps$1(ie,k,"default")),__toESM=(v,k,ie)=>(ie=v!=null?__create(__getProtoOf(v)):{},__copyProps$1(k||!v||!v.__esModule?__defProp$1(ie,"default",{value:v,enumerable:!0}):ie,v)),__toCommonJS$1=v=>__copyProps$1(__defProp$1({},"__esModule",{value:!0}),v);function makeMap(v,k){const ie=Object.create(null),ae=v.split(",");for(let ce=0;ce!!ie[ce.toLowerCase()]:ce=>!!ie[ce]}var specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(v){return!!v||v===""}function normalizeStyle(v){if(isArray(v)){const k={};for(let ie=0;ie{if(ie){const ae=ie.split(propertyDelimiterRE);ae.length>1&&(k[ae[0].trim()]=ae[1].trim())}}),k}function normalizeClass(v){let k="";if(isString(v))k=v;else if(isArray(v))for(let ie=0;ieisString(v)?v:v==null?"":isArray(v)||isObject$u(v)&&(v.toString===objectToString||!isFunction$2(v.toString))?JSON.stringify(v,replacer,2):String(v),replacer=(v,k)=>k&&k.__v_isRef?replacer(v,k.value):isMap(k)?{[`Map(${k.size})`]:[...k.entries()].reduce((ie,[ae,ce])=>(ie[`${ae} =>`]=ce,ie),{})}:isSet(k)?{[`Set(${k.size})`]:[...k.values()]}:isObject$u(k)&&!isArray(k)&&!isPlainObject(k)?String(k):k,EMPTY_OBJ={},EMPTY_ARR=[],NOOP$1=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=v=>onRE.test(v),isModelListener=v=>v.startsWith("onUpdate:"),extend=Object.assign,remove=(v,k)=>{const ie=v.indexOf(k);ie>-1&&v.splice(ie,1)},hasOwnProperty$j=Object.prototype.hasOwnProperty,hasOwn=(v,k)=>hasOwnProperty$j.call(v,k),isArray=Array.isArray,isMap=v=>toTypeString(v)==="[object Map]",isSet=v=>toTypeString(v)==="[object Set]",isFunction$2=v=>typeof v=="function",isString=v=>typeof v=="string",isSymbol$m=v=>typeof v=="symbol",isObject$u=v=>v!==null&&typeof v=="object",isPromise=v=>isObject$u(v)&&isFunction$2(v.then)&&isFunction$2(v.catch),objectToString=Object.prototype.toString,toTypeString=v=>objectToString.call(v),toRawType=v=>toTypeString(v).slice(8,-1),isPlainObject=v=>toTypeString(v)==="[object Object]",isIntegerKey=v=>isString(v)&&v!=="NaN"&&v[0]!=="-"&&""+parseInt(v,10)===v,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=v=>{const k=Object.create(null);return ie=>k[ie]||(k[ie]=v(ie))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(v=>v.replace(camelizeRE,(k,ie)=>ie?ie.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(v=>v.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(v=>v.charAt(0).toUpperCase()+v.slice(1)),toHandlerKey=cacheStringFunction(v=>v?`on${capitalize(v)}`:""),hasChanged=(v,k)=>!Object.is(v,k),invokeArrayFns=(v,k)=>{for(let ie=0;ie{Object.defineProperty(v,k,{configurable:!0,enumerable:!1,value:ie})},toNumber=v=>{const k=parseFloat(v);return isNaN(k)?v:k},_globalThis,getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}),activeEffectScope,EffectScope=class{constructor(v=!1){this.detached=v,this.active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!v&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}run(v){if(this.active){const k=activeEffectScope;try{return activeEffectScope=this,v()}finally{activeEffectScope=k}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(v){if(this.active){let k,ie;for(k=0,ie=this.effects.length;k{const k=new Set(v);return k.w=0,k.n=0,k},wasTracked=v=>(v.w&trackOpBit)>0,newTracked=v=>(v.n&trackOpBit)>0,initDepMarkers=({deps:v})=>{if(v.length)for(let k=0;k{const{deps:k}=v;if(k.length){let ie=0;for(let ae=0;ae{(ye==="length"||ye>=ae)&&ve.push(pe)});else switch(ie!==void 0&&ve.push(le.get(ie)),k){case"add":isArray(v)?isIntegerKey(ie)&&ve.push(le.get("length")):(ve.push(le.get(ITERATE_KEY)),isMap(v)&&ve.push(le.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray(v)||(ve.push(le.get(ITERATE_KEY)),isMap(v)&&ve.push(le.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(v)&&ve.push(le.get(ITERATE_KEY));break}if(ve.length===1)ve[0]&&triggerEffects(ve[0]);else{const pe=[];for(const ye of ve)ye&&pe.push(...ye);triggerEffects(createDep(pe))}}function triggerEffects(v,k){const ie=isArray(v)?v:[...v];for(const ae of ie)ae.computed&&triggerEffect(ae);for(const ae of ie)ae.computed||triggerEffect(ae)}function triggerEffect(v,k){(v!==activeEffect||v.allowRecurse)&&(v.scheduler?v.scheduler():v.run())}var isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(v=>v!=="arguments"&&v!=="caller").map(v=>Symbol[v]).filter(isSymbol$m)),get$k=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const v={};return["includes","indexOf","lastIndexOf"].forEach(k=>{v[k]=function(...ie){const ae=toRaw(this);for(let fe=0,le=this.length;fe{v[k]=function(...ie){pauseTracking();const ae=toRaw(this)[k].apply(this,ie);return resetTracking(),ae}}),v}function createGetter(v=!1,k=!1){return function(ae,ce,fe){if(ce==="__v_isReactive")return!v;if(ce==="__v_isReadonly")return v;if(ce==="__v_isShallow")return k;if(ce==="__v_raw"&&fe===(v?k?shallowReadonlyMap:readonlyMap:k?shallowReactiveMap:reactiveMap).get(ae))return ae;const le=isArray(ae);if(!v&&le&&hasOwn(arrayInstrumentations,ce))return Reflect.get(arrayInstrumentations,ce,fe);const ve=Reflect.get(ae,ce,fe);return(isSymbol$m(ce)?builtInSymbols.has(ce):isNonTrackableKeys(ce))||(v||track(ae,"get",ce),k)?ve:isRef(ve)?le&&isIntegerKey(ce)?ve:ve.value:isObject$u(ve)?v?readonly(ve):reactive(ve):ve}}var set$k=createSetter(),shallowSet=createSetter(!0);function createSetter(v=!1){return function(ie,ae,ce,fe){let le=ie[ae];if(isReadonly(le)&&isRef(le)&&!isRef(ce))return!1;if(!v&&(!isShallow(ce)&&!isReadonly(ce)&&(le=toRaw(le),ce=toRaw(ce)),!isArray(ie)&&isRef(le)&&!isRef(ce)))return le.value=ce,!0;const ve=isArray(ie)&&isIntegerKey(ae)?Number(ae)v,getProto=v=>Reflect.getPrototypeOf(v);function get$1$5(v,k,ie=!1,ae=!1){v=v.__v_raw;const ce=toRaw(v),fe=toRaw(k);ie||(k!==fe&&track(ce,"get",k),track(ce,"get",fe));const{has:le}=getProto(ce),ve=ae?toShallow:ie?toReadonly:toReactive;if(le.call(ce,k))return ve(v.get(k));if(le.call(ce,fe))return ve(v.get(fe));v!==ce&&v.get(k)}function has$1$1(v,k=!1){const ie=this.__v_raw,ae=toRaw(ie),ce=toRaw(v);return k||(v!==ce&&track(ae,"has",v),track(ae,"has",ce)),v===ce?ie.has(v):ie.has(v)||ie.has(ce)}function size(v,k=!1){return v=v.__v_raw,!k&&track(toRaw(v),"iterate",ITERATE_KEY),Reflect.get(v,"size",v)}function add(v){v=toRaw(v);const k=toRaw(this);return getProto(k).has.call(k,v)||(k.add(v),trigger(k,"add",v,v)),this}function set$1$d(v,k){k=toRaw(k);const ie=toRaw(this),{has:ae,get:ce}=getProto(ie);let fe=ae.call(ie,v);fe||(v=toRaw(v),fe=ae.call(ie,v));const le=ce.call(ie,v);return ie.set(v,k),fe?hasChanged(k,le)&&trigger(ie,"set",v,k):trigger(ie,"add",v,k),this}function deleteEntry(v){const k=toRaw(this),{has:ie,get:ae}=getProto(k);let ce=ie.call(k,v);ce||(v=toRaw(v),ce=ie.call(k,v)),ae&&ae.call(k,v);const fe=k.delete(v);return ce&&trigger(k,"delete",v,void 0),fe}function clear$9(){const v=toRaw(this),k=v.size!==0,ie=v.clear();return k&&trigger(v,"clear",void 0,void 0),ie}function createForEach(v,k){return function(ae,ce){const fe=this,le=fe.__v_raw,ve=toRaw(le),pe=k?toShallow:v?toReadonly:toReactive;return!v&&track(ve,"iterate",ITERATE_KEY),le.forEach((ye,me)=>ae.call(ce,pe(ye),pe(me),fe))}}function createIterableMethod(v,k,ie){return function(...ae){const ce=this.__v_raw,fe=toRaw(ce),le=isMap(fe),ve=v==="entries"||v===Symbol.iterator&&le,pe=v==="keys"&&le,ye=ce[v](...ae),me=ie?toShallow:k?toReadonly:toReactive;return!k&&track(fe,"iterate",pe?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:Ee,done:cr}=ye.next();return cr?{value:Ee,done:cr}:{value:ve?[me(Ee[0]),me(Ee[1])]:me(Ee),done:cr}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(v){return function(...k){return v==="delete"?!1:this}}function createInstrumentations(){const v={get(fe){return get$1$5(this,fe)},get size(){return size(this)},has:has$1$1,add,set:set$1$d,delete:deleteEntry,clear:clear$9,forEach:createForEach(!1,!1)},k={get(fe){return get$1$5(this,fe,!1,!0)},get size(){return size(this)},has:has$1$1,add,set:set$1$d,delete:deleteEntry,clear:clear$9,forEach:createForEach(!1,!0)},ie={get(fe){return get$1$5(this,fe,!0)},get size(){return size(this,!0)},has(fe){return has$1$1.call(this,fe,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},ae={get(fe){return get$1$5(this,fe,!0,!0)},get size(){return size(this,!0)},has(fe){return has$1$1.call(this,fe,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(fe=>{v[fe]=createIterableMethod(fe,!1,!1),ie[fe]=createIterableMethod(fe,!0,!1),k[fe]=createIterableMethod(fe,!1,!0),ae[fe]=createIterableMethod(fe,!0,!0)}),[v,ie,k,ae]}var[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(v,k){const ie=k?v?shallowReadonlyInstrumentations:shallowInstrumentations:v?readonlyInstrumentations:mutableInstrumentations;return(ae,ce,fe)=>ce==="__v_isReactive"?!v:ce==="__v_isReadonly"?v:ce==="__v_raw"?ae:Reflect.get(hasOwn(ie,ce)&&ce in ae?ie:ae,ce,fe)}var mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(v){switch(v){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(v){return v.__v_skip||!Object.isExtensible(v)?0:targetTypeMap(toRawType(v))}function reactive(v){return isReadonly(v)?v:createReactiveObject(v,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(v){return createReactiveObject(v,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(v){return createReactiveObject(v,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(v,k,ie,ae,ce){if(!isObject$u(v)||v.__v_raw&&!(k&&v.__v_isReactive))return v;const fe=ce.get(v);if(fe)return fe;const le=getTargetType(v);if(le===0)return v;const ve=new Proxy(v,le===2?ae:ie);return ce.set(v,ve),ve}function isReactive(v){return isReadonly(v)?isReactive(v.__v_raw):!!(v&&v.__v_isReactive)}function isReadonly(v){return!!(v&&v.__v_isReadonly)}function isShallow(v){return!!(v&&v.__v_isShallow)}function isProxy(v){return isReactive(v)||isReadonly(v)}function toRaw(v){const k=v&&v.__v_raw;return k?toRaw(k):v}function markRaw(v){return def(v,"__v_skip",!0),v}var toReactive=v=>isObject$u(v)?reactive(v):v,toReadonly=v=>isObject$u(v)?readonly(v):v;function trackRefValue(v){shouldTrack&&activeEffect&&(v=toRaw(v),trackEffects(v.dep||(v.dep=createDep())))}function triggerRefValue(v,k){v=toRaw(v),v.dep&&triggerEffects(v.dep)}function isRef(v){return!!(v&&v.__v_isRef===!0)}function shallowRef(v){return createRef(v,!0)}function createRef(v,k){return isRef(v)?v:new RefImpl(v,k)}var RefImpl=class{constructor(v,k){this.__v_isShallow=k,this.dep=void 0,this.__v_isRef=!0,this._rawValue=k?v:toRaw(v),this._value=k?v:toReactive(v)}get value(){return trackRefValue(this),this._value}set value(v){const k=this.__v_isShallow||isShallow(v)||isReadonly(v);v=k?v:toRaw(v),hasChanged(v,this._rawValue)&&(this._rawValue=v,this._value=k?v:toReactive(v),triggerRefValue(this))}};function unref(v){return isRef(v)?v.value:v}var shallowUnwrapHandlers={get:(v,k,ie)=>unref(Reflect.get(v,k,ie)),set:(v,k,ie,ae)=>{const ce=v[k];return isRef(ce)&&!isRef(ie)?(ce.value=ie,!0):Reflect.set(v,k,ie,ae)}};function proxyRefs(v){return isReactive(v)?v:new Proxy(v,shallowUnwrapHandlers)}var _a$1,ComputedRefImpl=class{constructor(v,k,ie,ae){this._setter=k,this.dep=void 0,this.__v_isRef=!0,this[_a$1]=!1,this._dirty=!0,this.effect=new ReactiveEffect(v,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!ae,this.__v_isReadonly=ie}get value(){const v=toRaw(this);return trackRefValue(v),(v._dirty||!v._cacheable)&&(v._dirty=!1,v._value=v.effect.run()),v._value}set value(v){this._setter(v)}};_a$1="__v_isReadonly";function computed(v,k,ie=!1){let ae,ce;const fe=isFunction$2(v);return fe?(ae=v,ce=NOOP$1):(ae=v.get,ce=v.set),new ComputedRefImpl(ae,ce,fe||!ce,ie)}var stack=[];function warn2(v,...k){pauseTracking();const ie=stack.length?stack[stack.length-1].component:null,ae=ie&&ie.appContext.config.warnHandler,ce=getComponentTrace();if(ae)callWithErrorHandling(ae,ie,11,[v+k.join(""),ie&&ie.proxy,ce.map(({vnode:fe})=>`at <${formatComponentName(ie,fe.type)}>`).join(` `),ce]);else{const fe=[`[Vue warn]: ${v}`,...k];ce.length&&fe.push(` `,...formatTrace(ce)),console.warn(...fe)}resetTracking()}function getComponentTrace(){let v=stack[stack.length-1];if(!v)return[];const k=[];for(;v;){const ie=k[0];ie&&ie.vnode===v?ie.recurseCount++:k.push({vnode:v,recurseCount:0});const ae=v.component&&v.component.parent;v=ae&&ae.vnode}return k}function formatTrace(v){const k=[];return v.forEach((ie,ae)=>{k.push(...ae===0?[]:[` -`],...formatTraceEntry(ie))}),k}function formatTraceEntry({vnode:v,recurseCount:k}){const ie=k>0?`... (${k} recursive calls)`:"",ae=v.component?v.component.parent==null:!1,ce=` at <${formatComponentName(v.component,v.type,ae)}`,fe=">"+ie;return v.props?[ce,...formatProps(v.props),fe]:[ce+fe]}function formatProps(v){const k=[],ie=Object.keys(v);return ie.slice(0,3).forEach(ae=>{k.push(...formatProp(ae,v[ae]))}),ie.length>3&&k.push(" ..."),k}function formatProp(v,k,ie){return isString(k)?(k=JSON.stringify(k),ie?k:[`${v}=${k}`]):typeof k=="number"||typeof k=="boolean"||k==null?ie?k:[`${v}=${k}`]:isRef(k)?(k=formatProp(v,toRaw(k.value),!0),ie?k:[`${v}=Ref<`,k,">"]):isFunction$2(k)?[`${v}=fn${k.name?`<${k.name}>`:""}`]:(k=toRaw(k),ie?k:[`${v}=`,k])}function callWithErrorHandling(v,k,ie,ae){let ce;try{ce=ae?v(...ae):v()}catch(fe){handleError(fe,k,ie)}return ce}function callWithAsyncErrorHandling(v,k,ie,ae){if(isFunction$2(v)){const fe=callWithErrorHandling(v,k,ie,ae);return fe&&isPromise(fe)&&fe.catch(le=>{handleError(le,k,ie)}),fe}const ce=[];for(let fe=0;fe>>1;getId(queue$a[ae])flushIndex&&queue$a.splice(k,1)}function queuePostFlushCb(v){isArray(v)?pendingPostFlushCbs.push(...v):(!activePostFlushCbs||!activePostFlushCbs.includes(v,v.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(v),queueFlush()}function flushPreFlushCbs(v,k=isFlushing?flushIndex+1:0){for(;kgetId(ie)-getId(ae)),postFlushIndex=0;postFlushIndexv.id==null?1/0:v.id,comparator=(v,k)=>{const ie=getId(v)-getId(k);if(ie===0){if(v.pre&&!k.pre)return-1;if(k.pre&&!v.pre)return 1}return ie};function flushJobs(v){isFlushPending=!1,isFlushing=!0,queue$a.sort(comparator);const k=NOOP$1;try{for(flushIndex=0;flushIndexBr.trim())),Ee&&(ce=ie.map(toNumber))}let ve,pe=ae[ve=toHandlerKey(k)]||ae[ve=toHandlerKey(camelize(k))];!pe&&fe&&(pe=ae[ve=toHandlerKey(hyphenate(k))]),pe&&callWithAsyncErrorHandling(pe,v,6,ce);const ye=ae[ve+"Once"];if(ye){if(!v.emitted)v.emitted={};else if(v.emitted[ve])return;v.emitted[ve]=!0,callWithAsyncErrorHandling(ye,v,6,ce)}}function normalizeEmitsOptions(v,k,ie=!1){const ae=k.emitsCache,ce=ae.get(v);if(ce!==void 0)return ce;const fe=v.emits;let le={},ve=!1;if(!isFunction$2(v)){const pe=ye=>{const me=normalizeEmitsOptions(ye,k,!0);me&&(ve=!0,extend(le,me))};!ie&&k.mixins.length&&k.mixins.forEach(pe),v.extends&&pe(v.extends),v.mixins&&v.mixins.forEach(pe)}return!fe&&!ve?(isObject$u(v)&&ae.set(v,null),null):(isArray(fe)?fe.forEach(pe=>le[pe]=null):extend(le,fe),isObject$u(v)&&ae.set(v,le),le)}function isEmitListener(v,k){return!v||!isOn(k)?!1:(k=k.slice(2).replace(/Once$/,""),hasOwn(v,k[0].toLowerCase()+k.slice(1))||hasOwn(v,hyphenate(k))||hasOwn(v,k))}var currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(v){const k=currentRenderingInstance;return currentRenderingInstance=v,currentScopeId=v&&v.type.__scopeId||null,k}function withCtx(v,k=currentRenderingInstance,ie){if(!k||v._n)return v;const ae=(...ce)=>{ae._d&&setBlockTracking(-1);const fe=setCurrentRenderingInstance(k);let le;try{le=v(...ce)}finally{setCurrentRenderingInstance(fe),ae._d&&setBlockTracking(1)}return le};return ae._n=!0,ae._c=!0,ae._d=!0,ae}function markAttrsAccessed(){}function renderComponentRoot(v){const{type:k,vnode:ie,proxy:ae,withProxy:ce,props:fe,propsOptions:[le],slots:ve,attrs:pe,emit:ye,render:me,renderCache:Ee,data:cr,setupState:Br,ctx:$r,inheritAttrs:Pr}=v;let Or,ur;const jr=setCurrentRenderingInstance(v);try{if(ie.shapeFlag&4){const Lr=ce||ae;Or=normalizeVNode(me.call(Lr,Lr,Ee,fe,Br,cr,$r)),ur=pe}else{const Lr=k;Or=normalizeVNode(Lr.length>1?Lr(fe,{attrs:pe,slots:ve,emit:ye}):Lr(fe,null)),ur=k.props?pe:getFunctionalFallthrough(pe)}}catch(Lr){blockStack.length=0,handleError(Lr,v,1),Or=createVNode(Comment)}let Mr=Or;if(ur&&Pr!==!1){const Lr=Object.keys(ur),{shapeFlag:Vr}=Mr;Lr.length&&Vr&7&&(le&&Lr.some(isModelListener)&&(ur=filterModelListeners(ur,le)),Mr=cloneVNode(Mr,ur))}return ie.dirs&&(Mr=cloneVNode(Mr),Mr.dirs=Mr.dirs?Mr.dirs.concat(ie.dirs):ie.dirs),ie.transition&&(Mr.transition=ie.transition),Or=Mr,setCurrentRenderingInstance(jr),Or}var getFunctionalFallthrough=v=>{let k;for(const ie in v)(ie==="class"||ie==="style"||isOn(ie))&&((k||(k={}))[ie]=v[ie]);return k},filterModelListeners=(v,k)=>{const ie={};for(const ae in v)(!isModelListener(ae)||!(ae.slice(9)in k))&&(ie[ae]=v[ae]);return ie};function shouldUpdateComponent(v,k,ie){const{props:ae,children:ce,component:fe}=v,{props:le,children:ve,patchFlag:pe}=k,ye=fe.emitsOptions;if(k.dirs||k.transition)return!0;if(ie&&pe>=0){if(pe&1024)return!0;if(pe&16)return ae?hasPropsChanged(ae,le,ye):!!le;if(pe&8){const me=k.dynamicProps;for(let Ee=0;Eev.__isSuspense;function queueEffectWithSuspense(v,k){k&&k.pendingBranch?isArray(v)?k.effects.push(...v):k.effects.push(v):queuePostFlushCb(v)}function provide(v,k){if(currentInstance){let ie=currentInstance.provides;const ae=currentInstance.parent&¤tInstance.parent.provides;ae===ie&&(ie=currentInstance.provides=Object.create(ae)),ie[v]=k}}function inject(v,k,ie=!1){const ae=currentInstance||currentRenderingInstance;if(ae){const ce=ae.parent==null?ae.vnode.appContext&&ae.vnode.appContext.provides:ae.parent.provides;if(ce&&v in ce)return ce[v];if(arguments.length>1)return ie&&isFunction$2(k)?k.call(ae.proxy):k}}var INITIAL_WATCHER_VALUE={};function watch(v,k,ie){return doWatch(v,k,ie)}function doWatch(v,k,{immediate:ie,deep:ae,flush:ce,onTrack:fe,onTrigger:le}=EMPTY_OBJ){const ve=currentInstance;let pe,ye=!1,me=!1;if(isRef(v)?(pe=()=>v.value,ye=isShallow(v)):isReactive(v)?(pe=()=>v,ae=!0):isArray(v)?(me=!0,ye=v.some(ur=>isReactive(ur)||isShallow(ur)),pe=()=>v.map(ur=>{if(isRef(ur))return ur.value;if(isReactive(ur))return traverse(ur);if(isFunction$2(ur))return callWithErrorHandling(ur,ve,2)})):isFunction$2(v)?k?pe=()=>callWithErrorHandling(v,ve,2):pe=()=>{if(!(ve&&ve.isUnmounted))return Ee&&Ee(),callWithAsyncErrorHandling(v,ve,3,[cr])}:pe=NOOP$1,k&&ae){const ur=pe;pe=()=>traverse(ur())}let Ee,cr=ur=>{Ee=Or.onStop=()=>{callWithErrorHandling(ur,ve,4)}};if(isInSSRComponentSetup)return cr=NOOP$1,k?ie&&callWithAsyncErrorHandling(k,ve,3,[pe(),me?[]:void 0,cr]):pe(),NOOP$1;let Br=me?[]:INITIAL_WATCHER_VALUE;const $r=()=>{if(!!Or.active)if(k){const ur=Or.run();(ae||ye||(me?ur.some((jr,Mr)=>hasChanged(jr,Br[Mr])):hasChanged(ur,Br)))&&(Ee&&Ee(),callWithAsyncErrorHandling(k,ve,3,[ur,Br===INITIAL_WATCHER_VALUE?void 0:Br,cr]),Br=ur)}else Or.run()};$r.allowRecurse=!!k;let Pr;ce==="sync"?Pr=$r:ce==="post"?Pr=()=>queuePostRenderEffect($r,ve&&ve.suspense):($r.pre=!0,ve&&($r.id=ve.uid),Pr=()=>queueJob($r));const Or=new ReactiveEffect(pe,Pr);return k?ie?$r():Br=Or.run():ce==="post"?queuePostRenderEffect(Or.run.bind(Or),ve&&ve.suspense):Or.run(),()=>{Or.stop(),ve&&ve.scope&&remove(ve.scope.effects,Or)}}function instanceWatch(v,k,ie){const ae=this.proxy,ce=isString(v)?v.includes(".")?createPathGetter(ae,v):()=>ae[v]:v.bind(ae,ae);let fe;isFunction$2(k)?fe=k:(fe=k.handler,ie=k);const le=currentInstance;setCurrentInstance(this);const ve=doWatch(ce,fe.bind(ae),ie);return le?setCurrentInstance(le):unsetCurrentInstance(),ve}function createPathGetter(v,k){const ie=k.split(".");return()=>{let ae=v;for(let ce=0;ce{traverse(ie,k)});else if(isPlainObject(v))for(const ie in v)traverse(v[ie],k);return v}function defineComponent(v){return isFunction$2(v)?{setup:v,name:v.name}:v}var isAsyncWrapper=v=>!!v.type.__asyncLoader,isKeepAlive=v=>v.type.__isKeepAlive;function onActivated(v,k){registerKeepAliveHook(v,"a",k)}function onDeactivated(v,k){registerKeepAliveHook(v,"da",k)}function registerKeepAliveHook(v,k,ie=currentInstance){const ae=v.__wdc||(v.__wdc=()=>{let ce=ie;for(;ce;){if(ce.isDeactivated)return;ce=ce.parent}return v()});if(injectHook(k,ae,ie),ie){let ce=ie.parent;for(;ce&&ce.parent;)isKeepAlive(ce.parent.vnode)&&injectToKeepAliveRoot(ae,k,ie,ce),ce=ce.parent}}function injectToKeepAliveRoot(v,k,ie,ae){const ce=injectHook(k,v,ae,!0);onUnmounted(()=>{remove(ae[k],ce)},ie)}function injectHook(v,k,ie=currentInstance,ae=!1){if(ie){const ce=ie[v]||(ie[v]=[]),fe=k.__weh||(k.__weh=(...le)=>{if(ie.isUnmounted)return;pauseTracking(),setCurrentInstance(ie);const ve=callWithAsyncErrorHandling(k,ie,v,le);return unsetCurrentInstance(),resetTracking(),ve});return ae?ce.unshift(fe):ce.push(fe),fe}}var createHook=v=>(k,ie=currentInstance)=>(!isInSSRComponentSetup||v==="sp")&&injectHook(v,(...ae)=>k(...ae),ie),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(v,k=currentInstance){injectHook("ec",v,k)}function invokeDirectiveHook(v,k,ie,ae){const ce=v.dirs,fe=k&&k.dirs;for(let le=0;lek(le,ve,void 0,fe&&fe[ve]));else{const le=Object.keys(v);ce=new Array(le.length);for(let ve=0,pe=le.length;vev?isStatefulComponent(v)?getExposeProxy(v)||v.proxy:getPublicInstance(v.parent):null,publicPropertiesMap=extend(Object.create(null),{$:v=>v,$el:v=>v.vnode.el,$data:v=>v.data,$props:v=>v.props,$attrs:v=>v.attrs,$slots:v=>v.slots,$refs:v=>v.refs,$parent:v=>getPublicInstance(v.parent),$root:v=>getPublicInstance(v.root),$emit:v=>v.emit,$options:v=>resolveMergedOptions(v),$forceUpdate:v=>v.f||(v.f=()=>queueJob(v.update)),$nextTick:v=>v.n||(v.n=nextTick.bind(v.proxy)),$watch:v=>instanceWatch.bind(v)}),PublicInstanceProxyHandlers={get({_:v},k){const{ctx:ie,setupState:ae,data:ce,props:fe,accessCache:le,type:ve,appContext:pe}=v;let ye;if(k[0]!=="$"){const Br=le[k];if(Br!==void 0)switch(Br){case 1:return ae[k];case 2:return ce[k];case 4:return ie[k];case 3:return fe[k]}else{if(ae!==EMPTY_OBJ&&hasOwn(ae,k))return le[k]=1,ae[k];if(ce!==EMPTY_OBJ&&hasOwn(ce,k))return le[k]=2,ce[k];if((ye=v.propsOptions[0])&&hasOwn(ye,k))return le[k]=3,fe[k];if(ie!==EMPTY_OBJ&&hasOwn(ie,k))return le[k]=4,ie[k];shouldCacheAccess&&(le[k]=0)}}const me=publicPropertiesMap[k];let Ee,cr;if(me)return k==="$attrs"&&track(v,"get",k),me(v);if((Ee=ve.__cssModules)&&(Ee=Ee[k]))return Ee;if(ie!==EMPTY_OBJ&&hasOwn(ie,k))return le[k]=4,ie[k];if(cr=pe.config.globalProperties,hasOwn(cr,k))return cr[k]},set({_:v},k,ie){const{data:ae,setupState:ce,ctx:fe}=v;return ce!==EMPTY_OBJ&&hasOwn(ce,k)?(ce[k]=ie,!0):ae!==EMPTY_OBJ&&hasOwn(ae,k)?(ae[k]=ie,!0):hasOwn(v.props,k)||k[0]==="$"&&k.slice(1)in v?!1:(fe[k]=ie,!0)},has({_:{data:v,setupState:k,accessCache:ie,ctx:ae,appContext:ce,propsOptions:fe}},le){let ve;return!!ie[le]||v!==EMPTY_OBJ&&hasOwn(v,le)||k!==EMPTY_OBJ&&hasOwn(k,le)||(ve=fe[0])&&hasOwn(ve,le)||hasOwn(ae,le)||hasOwn(publicPropertiesMap,le)||hasOwn(ce.config.globalProperties,le)},defineProperty(v,k,ie){return ie.get!=null?v._.accessCache[k]=0:hasOwn(ie,"value")&&this.set(v,k,ie.value,null),Reflect.defineProperty(v,k,ie)}},shouldCacheAccess=!0;function applyOptions(v){const k=resolveMergedOptions(v),ie=v.proxy,ae=v.ctx;shouldCacheAccess=!1,k.beforeCreate&&callHook(k.beforeCreate,v,"bc");const{data:ce,computed:fe,methods:le,watch:ve,provide:pe,inject:ye,created:me,beforeMount:Ee,mounted:cr,beforeUpdate:Br,updated:$r,activated:Pr,deactivated:Or,beforeDestroy:ur,beforeUnmount:jr,destroyed:Mr,unmounted:Lr,render:Vr,renderTracked:Gr,renderTriggered:Ur,errorCaptured:Qr,serverPrefetch:vn,expose:Yt,inheritAttrs:fn,components:Xt,directives:Qt,filters:Kr}=k;if(ye&&resolveInjections(ye,ae,null,v.appContext.config.unwrapInjectedRef),le)for(const xr in le){const Wr=le[xr];isFunction$2(Wr)&&(ae[xr]=Wr.bind(ie))}if(ce){const xr=ce.call(ie,ie);isObject$u(xr)&&(v.data=reactive(xr))}if(shouldCacheAccess=!0,fe)for(const xr in fe){const Wr=fe[xr],Jt=isFunction$2(Wr)?Wr.bind(ie,ie):isFunction$2(Wr.get)?Wr.get.bind(ie,ie):NOOP$1,Xr=!isFunction$2(Wr)&&isFunction$2(Wr.set)?Wr.set.bind(ie):NOOP$1,zr=computed2({get:Jt,set:Xr});Object.defineProperty(ae,xr,{enumerable:!0,configurable:!0,get:()=>zr.value,set:Jr=>zr.value=Jr})}if(ve)for(const xr in ve)createWatcher(ve[xr],ae,ie,xr);if(pe){const xr=isFunction$2(pe)?pe.call(ie):pe;Reflect.ownKeys(xr).forEach(Wr=>{provide(Wr,xr[Wr])})}me&&callHook(me,v,"c");function kr(xr,Wr){isArray(Wr)?Wr.forEach(Jt=>xr(Jt.bind(ie))):Wr&&xr(Wr.bind(ie))}if(kr(onBeforeMount,Ee),kr(onMounted,cr),kr(onBeforeUpdate,Br),kr(onUpdated,$r),kr(onActivated,Pr),kr(onDeactivated,Or),kr(onErrorCaptured,Qr),kr(onRenderTracked,Gr),kr(onRenderTriggered,Ur),kr(onBeforeUnmount,jr),kr(onUnmounted,Lr),kr(onServerPrefetch,vn),isArray(Yt))if(Yt.length){const xr=v.exposed||(v.exposed={});Yt.forEach(Wr=>{Object.defineProperty(xr,Wr,{get:()=>ie[Wr],set:Jt=>ie[Wr]=Jt})})}else v.exposed||(v.exposed={});Vr&&v.render===NOOP$1&&(v.render=Vr),fn!=null&&(v.inheritAttrs=fn),Xt&&(v.components=Xt),Qt&&(v.directives=Qt)}function resolveInjections(v,k,ie=NOOP$1,ae=!1){isArray(v)&&(v=normalizeInject(v));for(const ce in v){const fe=v[ce];let le;isObject$u(fe)?"default"in fe?le=inject(fe.from||ce,fe.default,!0):le=inject(fe.from||ce):le=inject(fe),isRef(le)&&ae?Object.defineProperty(k,ce,{enumerable:!0,configurable:!0,get:()=>le.value,set:ve=>le.value=ve}):k[ce]=le}}function callHook(v,k,ie){callWithAsyncErrorHandling(isArray(v)?v.map(ae=>ae.bind(k.proxy)):v.bind(k.proxy),k,ie)}function createWatcher(v,k,ie,ae){const ce=ae.includes(".")?createPathGetter(ie,ae):()=>ie[ae];if(isString(v)){const fe=k[v];isFunction$2(fe)&&watch(ce,fe)}else if(isFunction$2(v))watch(ce,v.bind(ie));else if(isObject$u(v))if(isArray(v))v.forEach(fe=>createWatcher(fe,k,ie,ae));else{const fe=isFunction$2(v.handler)?v.handler.bind(ie):k[v.handler];isFunction$2(fe)&&watch(ce,fe,v)}}function resolveMergedOptions(v){const k=v.type,{mixins:ie,extends:ae}=k,{mixins:ce,optionsCache:fe,config:{optionMergeStrategies:le}}=v.appContext,ve=fe.get(k);let pe;return ve?pe=ve:!ce.length&&!ie&&!ae?pe=k:(pe={},ce.length&&ce.forEach(ye=>mergeOptions(pe,ye,le,!0)),mergeOptions(pe,k,le)),isObject$u(k)&&fe.set(k,pe),pe}function mergeOptions(v,k,ie,ae=!1){const{mixins:ce,extends:fe}=k;fe&&mergeOptions(v,fe,ie,!0),ce&&ce.forEach(le=>mergeOptions(v,le,ie,!0));for(const le in k)if(!(ae&&le==="expose")){const ve=internalOptionMergeStrats[le]||ie&&ie[le];v[le]=ve?ve(v[le],k[le]):k[le]}return v}var internalOptionMergeStrats={data:mergeDataFn,props:mergeObjectOptions,emits:mergeObjectOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(v,k){return k?v?function(){return extend(isFunction$2(v)?v.call(this,this):v,isFunction$2(k)?k.call(this,this):k)}:k:v}function mergeInject(v,k){return mergeObjectOptions(normalizeInject(v),normalizeInject(k))}function normalizeInject(v){if(isArray(v)){const k={};for(let ie=0;ie0)&&!(le&16)){if(le&8){const me=v.vnode.dynamicProps;for(let Ee=0;Ee{pe=!0;const[cr,Br]=normalizePropsOptions(Ee,k,!0);extend(le,cr),Br&&ve.push(...Br)};!ie&&k.mixins.length&&k.mixins.forEach(me),v.extends&&me(v.extends),v.mixins&&v.mixins.forEach(me)}if(!fe&&!pe)return isObject$u(v)&&ae.set(v,EMPTY_ARR),EMPTY_ARR;if(isArray(fe))for(let me=0;me-1,Br[1]=Pr<0||$r-1||hasOwn(Br,"default"))&&ve.push(Ee)}}}const ye=[le,ve];return isObject$u(v)&&ae.set(v,ye),ye}function validatePropName(v){return v[0]!=="$"}function getType(v){const k=v&&v.toString().match(/^\s*function (\w+)/);return k?k[1]:v===null?"null":""}function isSameType(v,k){return getType(v)===getType(k)}function getTypeIndex(v,k){return isArray(k)?k.findIndex(ie=>isSameType(ie,v)):isFunction$2(k)&&isSameType(k,v)?0:-1}var isInternalKey=v=>v[0]==="_"||v==="$stable",normalizeSlotValue=v=>isArray(v)?v.map(normalizeVNode):[normalizeVNode(v)],normalizeSlot=(v,k,ie)=>{if(k._n)return k;const ae=withCtx((...ce)=>normalizeSlotValue(k(...ce)),ie);return ae._c=!1,ae},normalizeObjectSlots=(v,k,ie)=>{const ae=v._ctx;for(const ce in v){if(isInternalKey(ce))continue;const fe=v[ce];if(isFunction$2(fe))k[ce]=normalizeSlot(ce,fe,ae);else if(fe!=null){const le=normalizeSlotValue(fe);k[ce]=()=>le}}},normalizeVNodeSlots=(v,k)=>{const ie=normalizeSlotValue(k);v.slots.default=()=>ie},initSlots=(v,k)=>{if(v.vnode.shapeFlag&32){const ie=k._;ie?(v.slots=toRaw(k),def(k,"_",ie)):normalizeObjectSlots(k,v.slots={})}else v.slots={},k&&normalizeVNodeSlots(v,k);def(v.slots,InternalObjectKey,1)},updateSlots=(v,k,ie)=>{const{vnode:ae,slots:ce}=v;let fe=!0,le=EMPTY_OBJ;if(ae.shapeFlag&32){const ve=k._;ve?ie&&ve===1?fe=!1:(extend(ce,k),!ie&&ve===1&&delete ce._):(fe=!k.$stable,normalizeObjectSlots(k,ce)),le=k}else k&&(normalizeVNodeSlots(v,k),le={default:1});if(fe)for(const ve in ce)!isInternalKey(ve)&&!(ve in le)&&delete ce[ve]};function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var uid$m=0;function createAppAPI(v,k){return function(ae,ce=null){isFunction$2(ae)||(ae=Object.assign({},ae)),ce!=null&&!isObject$u(ce)&&(ce=null);const fe=createAppContext(),le=new Set;let ve=!1;const pe=fe.app={_uid:uid$m++,_component:ae,_props:ce,_container:null,_context:fe,_instance:null,version:version$j,get config(){return fe.config},set config(ye){},use(ye,...me){return le.has(ye)||(ye&&isFunction$2(ye.install)?(le.add(ye),ye.install(pe,...me)):isFunction$2(ye)&&(le.add(ye),ye(pe,...me))),pe},mixin(ye){return fe.mixins.includes(ye)||fe.mixins.push(ye),pe},component(ye,me){return me?(fe.components[ye]=me,pe):fe.components[ye]},directive(ye,me){return me?(fe.directives[ye]=me,pe):fe.directives[ye]},mount(ye,me,Ee){if(!ve){const cr=createVNode(ae,ce);return cr.appContext=fe,me&&k?k(cr,ye):v(cr,ye,Ee),ve=!0,pe._container=ye,ye.__vue_app__=pe,getExposeProxy(cr.component)||cr.component.proxy}},unmount(){ve&&(v(null,pe._container),delete pe._container.__vue_app__)},provide(ye,me){return fe.provides[ye]=me,pe}};return pe}}function setRef(v,k,ie,ae,ce=!1){if(isArray(v)){v.forEach((cr,Br)=>setRef(cr,k&&(isArray(k)?k[Br]:k),ie,ae,ce));return}if(isAsyncWrapper(ae)&&!ce)return;const fe=ae.shapeFlag&4?getExposeProxy(ae.component)||ae.component.proxy:ae.el,le=ce?null:fe,{i:ve,r:pe}=v,ye=k&&k.r,me=ve.refs===EMPTY_OBJ?ve.refs={}:ve.refs,Ee=ve.setupState;if(ye!=null&&ye!==pe&&(isString(ye)?(me[ye]=null,hasOwn(Ee,ye)&&(Ee[ye]=null)):isRef(ye)&&(ye.value=null)),isFunction$2(pe))callWithErrorHandling(pe,ve,12,[le,me]);else{const cr=isString(pe),Br=isRef(pe);if(cr||Br){const $r=()=>{if(v.f){const Pr=cr?hasOwn(Ee,pe)?Ee[pe]:me[pe]:pe.value;ce?isArray(Pr)&&remove(Pr,fe):isArray(Pr)?Pr.includes(fe)||Pr.push(fe):cr?(me[pe]=[fe],hasOwn(Ee,pe)&&(Ee[pe]=me[pe])):(pe.value=[fe],v.k&&(me[v.k]=pe.value))}else cr?(me[pe]=le,hasOwn(Ee,pe)&&(Ee[pe]=le)):Br&&(pe.value=le,v.k&&(me[v.k]=le))};le?($r.id=-1,queuePostRenderEffect($r,ie)):$r()}}}var queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(v){return baseCreateRenderer(v)}function baseCreateRenderer(v,k){const ie=getGlobalThis();ie.__VUE__=!0;const{insert:ae,remove:ce,patchProp:fe,createElement:le,createText:ve,createComment:pe,setText:ye,setElementText:me,parentNode:Ee,nextSibling:cr,setScopeId:Br=NOOP$1,insertStaticContent:$r}=v,Pr=(hn,pn,Sn,Qn=null,Jn=null,ui=null,gi=!1,di=null,Ci=!!pn.dynamicChildren)=>{if(hn===pn)return;hn&&!isSameVNodeType(hn,pn)&&(Qn=mn(hn),Jr(hn,Jn,ui,!0),hn=null),pn.patchFlag===-2&&(Ci=!1,pn.dynamicChildren=null);const{type:yi,ref:li,shapeFlag:Pi}=pn;switch(yi){case Text:Or(hn,pn,Sn,Qn);break;case Comment:ur(hn,pn,Sn,Qn);break;case Static:hn==null&&jr(pn,Sn,Qn,gi);break;case Fragment$1:Xt(hn,pn,Sn,Qn,Jn,ui,gi,di,Ci);break;default:Pi&1?Vr(hn,pn,Sn,Qn,Jn,ui,gi,di,Ci):Pi&6?Qt(hn,pn,Sn,Qn,Jn,ui,gi,di,Ci):(Pi&64||Pi&128)&&yi.process(hn,pn,Sn,Qn,Jn,ui,gi,di,Ci,In)}li!=null&&Jn&&setRef(li,hn&&hn.ref,ui,pn||hn,!pn)},Or=(hn,pn,Sn,Qn)=>{if(hn==null)ae(pn.el=ve(pn.children),Sn,Qn);else{const Jn=pn.el=hn.el;pn.children!==hn.children&&ye(Jn,pn.children)}},ur=(hn,pn,Sn,Qn)=>{hn==null?ae(pn.el=pe(pn.children||""),Sn,Qn):pn.el=hn.el},jr=(hn,pn,Sn,Qn)=>{[hn.el,hn.anchor]=$r(hn.children,pn,Sn,Qn,hn.el,hn.anchor)},Mr=({el:hn,anchor:pn},Sn,Qn)=>{let Jn;for(;hn&&hn!==pn;)Jn=cr(hn),ae(hn,Sn,Qn),hn=Jn;ae(pn,Sn,Qn)},Lr=({el:hn,anchor:pn})=>{let Sn;for(;hn&&hn!==pn;)Sn=cr(hn),ce(hn),hn=Sn;ce(pn)},Vr=(hn,pn,Sn,Qn,Jn,ui,gi,di,Ci)=>{gi=gi||pn.type==="svg",hn==null?Gr(pn,Sn,Qn,Jn,ui,gi,di,Ci):vn(hn,pn,Jn,ui,gi,di,Ci)},Gr=(hn,pn,Sn,Qn,Jn,ui,gi,di)=>{let Ci,yi;const{type:li,props:Pi,shapeFlag:Ai,transition:Oi,dirs:to}=hn;if(Ci=hn.el=le(hn.type,ui,Pi&&Pi.is,Pi),Ai&8?me(Ci,hn.children):Ai&16&&Qr(hn.children,Ci,null,Qn,Jn,ui&&li!=="foreignObject",gi,di),to&&invokeDirectiveHook(hn,null,Qn,"created"),Pi){for(const Bt in Pi)Bt!=="value"&&!isReservedProp(Bt)&&fe(Ci,Bt,null,Pi[Bt],ui,hn.children,Qn,Jn,Gn);"value"in Pi&&fe(Ci,"value",null,Pi.value),(yi=Pi.onVnodeBeforeMount)&&invokeVNodeHook(yi,Qn,hn)}Ur(Ci,hn,hn.scopeId,gi,Qn),to&&invokeDirectiveHook(hn,null,Qn,"beforeMount");const En=(!Jn||Jn&&!Jn.pendingBranch)&&Oi&&!Oi.persisted;En&&Oi.beforeEnter(Ci),ae(Ci,pn,Sn),((yi=Pi&&Pi.onVnodeMounted)||En||to)&&queuePostRenderEffect(()=>{yi&&invokeVNodeHook(yi,Qn,hn),En&&Oi.enter(Ci),to&&invokeDirectiveHook(hn,null,Qn,"mounted")},Jn)},Ur=(hn,pn,Sn,Qn,Jn)=>{if(Sn&&Br(hn,Sn),Qn)for(let ui=0;ui{for(let yi=Ci;yi{const di=pn.el=hn.el;let{patchFlag:Ci,dynamicChildren:yi,dirs:li}=pn;Ci|=hn.patchFlag&16;const Pi=hn.props||EMPTY_OBJ,Ai=pn.props||EMPTY_OBJ;let Oi;Sn&&toggleRecurse(Sn,!1),(Oi=Ai.onVnodeBeforeUpdate)&&invokeVNodeHook(Oi,Sn,pn,hn),li&&invokeDirectiveHook(pn,hn,Sn,"beforeUpdate"),Sn&&toggleRecurse(Sn,!0);const to=Jn&&pn.type!=="foreignObject";if(yi?Yt(hn.dynamicChildren,yi,di,Sn,Qn,to,ui):gi||Wr(hn,pn,di,null,Sn,Qn,to,ui,!1),Ci>0){if(Ci&16)fn(di,pn,Pi,Ai,Sn,Qn,Jn);else if(Ci&2&&Pi.class!==Ai.class&&fe(di,"class",null,Ai.class,Jn),Ci&4&&fe(di,"style",Pi.style,Ai.style,Jn),Ci&8){const En=pn.dynamicProps;for(let Bt=0;Bt{Oi&&invokeVNodeHook(Oi,Sn,pn,hn),li&&invokeDirectiveHook(pn,hn,Sn,"updated")},Qn)},Yt=(hn,pn,Sn,Qn,Jn,ui,gi)=>{for(let di=0;di{if(Sn!==Qn){if(Sn!==EMPTY_OBJ)for(const di in Sn)!isReservedProp(di)&&!(di in Qn)&&fe(hn,di,Sn[di],null,gi,pn.children,Jn,ui,Gn);for(const di in Qn){if(isReservedProp(di))continue;const Ci=Qn[di],yi=Sn[di];Ci!==yi&&di!=="value"&&fe(hn,di,yi,Ci,gi,pn.children,Jn,ui,Gn)}"value"in Qn&&fe(hn,"value",Sn.value,Qn.value)}},Xt=(hn,pn,Sn,Qn,Jn,ui,gi,di,Ci)=>{const yi=pn.el=hn?hn.el:ve(""),li=pn.anchor=hn?hn.anchor:ve("");let{patchFlag:Pi,dynamicChildren:Ai,slotScopeIds:Oi}=pn;Oi&&(di=di?di.concat(Oi):Oi),hn==null?(ae(yi,Sn,Qn),ae(li,Sn,Qn),Qr(pn.children,Sn,li,Jn,ui,gi,di,Ci)):Pi>0&&Pi&64&&Ai&&hn.dynamicChildren?(Yt(hn.dynamicChildren,Ai,Sn,Jn,ui,gi,di),(pn.key!=null||Jn&&pn===Jn.subTree)&&traverseStaticChildren(hn,pn,!0)):Wr(hn,pn,Sn,li,Jn,ui,gi,di,Ci)},Qt=(hn,pn,Sn,Qn,Jn,ui,gi,di,Ci)=>{pn.slotScopeIds=di,hn==null?pn.shapeFlag&512?Jn.ctx.activate(pn,Sn,Qn,gi,Ci):Kr(pn,Sn,Qn,Jn,ui,gi,Ci):be(hn,pn,Ci)},Kr=(hn,pn,Sn,Qn,Jn,ui,gi)=>{const di=hn.component=createComponentInstance(hn,Qn,Jn);if(isKeepAlive(hn)&&(di.ctx.renderer=In),setupComponent(di),di.asyncDep){if(Jn&&Jn.registerDep(di,kr),!hn.el){const Ci=di.subTree=createVNode(Comment);ur(null,Ci,pn,Sn)}return}kr(di,hn,pn,Sn,Jn,ui,gi)},be=(hn,pn,Sn)=>{const Qn=pn.component=hn.component;if(shouldUpdateComponent(hn,pn,Sn))if(Qn.asyncDep&&!Qn.asyncResolved){xr(Qn,pn,Sn);return}else Qn.next=pn,invalidateJob(Qn.update),Qn.update();else pn.el=hn.el,Qn.vnode=pn},kr=(hn,pn,Sn,Qn,Jn,ui,gi)=>{const di=()=>{if(hn.isMounted){let{next:li,bu:Pi,u:Ai,parent:Oi,vnode:to}=hn,En=li,Bt;toggleRecurse(hn,!1),li?(li.el=to.el,xr(hn,li,gi)):li=to,Pi&&invokeArrayFns(Pi),(Bt=li.props&&li.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Bt,Oi,li,to),toggleRecurse(hn,!0);const Zt=renderComponentRoot(hn),Tn=hn.subTree;hn.subTree=Zt,Pr(Tn,Zt,Ee(Tn.el),mn(Tn),hn,Jn,ui),li.el=Zt.el,En===null&&updateHOCHostEl(hn,Zt.el),Ai&&queuePostRenderEffect(Ai,Jn),(Bt=li.props&&li.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Bt,Oi,li,to),Jn)}else{let li;const{el:Pi,props:Ai}=pn,{bm:Oi,m:to,parent:En}=hn,Bt=isAsyncWrapper(pn);if(toggleRecurse(hn,!1),Oi&&invokeArrayFns(Oi),!Bt&&(li=Ai&&Ai.onVnodeBeforeMount)&&invokeVNodeHook(li,En,pn),toggleRecurse(hn,!0),Pi&&ii){const Zt=()=>{hn.subTree=renderComponentRoot(hn),ii(Pi,hn.subTree,hn,Jn,null)};Bt?pn.type.__asyncLoader().then(()=>!hn.isUnmounted&&Zt()):Zt()}else{const Zt=hn.subTree=renderComponentRoot(hn);Pr(null,Zt,Sn,Qn,hn,Jn,ui),pn.el=Zt.el}if(to&&queuePostRenderEffect(to,Jn),!Bt&&(li=Ai&&Ai.onVnodeMounted)){const Zt=pn;queuePostRenderEffect(()=>invokeVNodeHook(li,En,Zt),Jn)}(pn.shapeFlag&256||En&&isAsyncWrapper(En.vnode)&&En.vnode.shapeFlag&256)&&hn.a&&queuePostRenderEffect(hn.a,Jn),hn.isMounted=!0,pn=Sn=Qn=null}},Ci=hn.effect=new ReactiveEffect(di,()=>queueJob(yi),hn.scope),yi=hn.update=()=>Ci.run();yi.id=hn.uid,toggleRecurse(hn,!0),yi()},xr=(hn,pn,Sn)=>{pn.component=hn;const Qn=hn.vnode.props;hn.vnode=pn,hn.next=null,updateProps(hn,pn.props,Qn,Sn),updateSlots(hn,pn.children,Sn),pauseTracking(),flushPreFlushCbs(),resetTracking()},Wr=(hn,pn,Sn,Qn,Jn,ui,gi,di,Ci=!1)=>{const yi=hn&&hn.children,li=hn?hn.shapeFlag:0,Pi=pn.children,{patchFlag:Ai,shapeFlag:Oi}=pn;if(Ai>0){if(Ai&128){Xr(yi,Pi,Sn,Qn,Jn,ui,gi,di,Ci);return}else if(Ai&256){Jt(yi,Pi,Sn,Qn,Jn,ui,gi,di,Ci);return}}Oi&8?(li&16&&Gn(yi,Jn,ui),Pi!==yi&&me(Sn,Pi)):li&16?Oi&16?Xr(yi,Pi,Sn,Qn,Jn,ui,gi,di,Ci):Gn(yi,Jn,ui,!0):(li&8&&me(Sn,""),Oi&16&&Qr(Pi,Sn,Qn,Jn,ui,gi,di,Ci))},Jt=(hn,pn,Sn,Qn,Jn,ui,gi,di,Ci)=>{hn=hn||EMPTY_ARR,pn=pn||EMPTY_ARR;const yi=hn.length,li=pn.length,Pi=Math.min(yi,li);let Ai;for(Ai=0;Aili?Gn(hn,Jn,ui,!0,!1,Pi):Qr(pn,Sn,Qn,Jn,ui,gi,di,Ci,Pi)},Xr=(hn,pn,Sn,Qn,Jn,ui,gi,di,Ci)=>{let yi=0;const li=pn.length;let Pi=hn.length-1,Ai=li-1;for(;yi<=Pi&&yi<=Ai;){const Oi=hn[yi],to=pn[yi]=Ci?cloneIfMounted(pn[yi]):normalizeVNode(pn[yi]);if(isSameVNodeType(Oi,to))Pr(Oi,to,Sn,null,Jn,ui,gi,di,Ci);else break;yi++}for(;yi<=Pi&&yi<=Ai;){const Oi=hn[Pi],to=pn[Ai]=Ci?cloneIfMounted(pn[Ai]):normalizeVNode(pn[Ai]);if(isSameVNodeType(Oi,to))Pr(Oi,to,Sn,null,Jn,ui,gi,di,Ci);else break;Pi--,Ai--}if(yi>Pi){if(yi<=Ai){const Oi=Ai+1,to=OiAi)for(;yi<=Pi;)Jr(hn[yi],Jn,ui,!0),yi++;else{const Oi=yi,to=yi,En=new Map;for(yi=to;yi<=Ai;yi++){const Hn=pn[yi]=Ci?cloneIfMounted(pn[yi]):normalizeVNode(pn[yi]);Hn.key!=null&&En.set(Hn.key,yi)}let Bt,Zt=0;const Tn=Ai-to+1;let ei=!1,zn=0;const gn=new Array(Tn);for(yi=0;yi=Tn){Jr(Hn,Jn,ui,!0);continue}let Ln;if(Hn.key!=null)Ln=En.get(Hn.key);else for(Bt=to;Bt<=Ai;Bt++)if(gn[Bt-to]===0&&isSameVNodeType(Hn,pn[Bt])){Ln=Bt;break}Ln===void 0?Jr(Hn,Jn,ui,!0):(gn[Ln-to]=yi+1,Ln>=zn?zn=Ln:ei=!0,Pr(Hn,pn[Ln],Sn,null,Jn,ui,gi,di,Ci),Zt++)}const xn=ei?getSequence(gn):EMPTY_ARR;for(Bt=xn.length-1,yi=Tn-1;yi>=0;yi--){const Hn=to+yi,Ln=pn[Hn],ti=Hn+1{const{el:ui,type:gi,transition:di,children:Ci,shapeFlag:yi}=hn;if(yi&6){zr(hn.component.subTree,pn,Sn,Qn);return}if(yi&128){hn.suspense.move(pn,Sn,Qn);return}if(yi&64){gi.move(hn,pn,Sn,In);return}if(gi===Fragment$1){ae(ui,pn,Sn);for(let Pi=0;Pidi.enter(ui),Jn);else{const{leave:Pi,delayLeave:Ai,afterLeave:Oi}=di,to=()=>ae(ui,pn,Sn),En=()=>{Pi(ui,()=>{to(),Oi&&Oi()})};Ai?Ai(ui,to,En):En()}else ae(ui,pn,Sn)},Jr=(hn,pn,Sn,Qn=!1,Jn=!1)=>{const{type:ui,props:gi,ref:di,children:Ci,dynamicChildren:yi,shapeFlag:li,patchFlag:Pi,dirs:Ai}=hn;if(di!=null&&setRef(di,null,Sn,hn,!0),li&256){pn.ctx.deactivate(hn);return}const Oi=li&1&&Ai,to=!isAsyncWrapper(hn);let En;if(to&&(En=gi&&gi.onVnodeBeforeUnmount)&&invokeVNodeHook(En,pn,hn),li&6)On(hn.component,Sn,Qn);else{if(li&128){hn.suspense.unmount(Sn,Qn);return}Oi&&invokeDirectiveHook(hn,null,pn,"beforeUnmount"),li&64?hn.type.remove(hn,pn,Sn,Jn,In,Qn):yi&&(ui!==Fragment$1||Pi>0&&Pi&64)?Gn(yi,pn,Sn,!1,!0):(ui===Fragment$1&&Pi&384||!Jn&&li&16)&&Gn(Ci,pn,Sn),Qn&&Nr(hn)}(to&&(En=gi&&gi.onVnodeUnmounted)||Oi)&&queuePostRenderEffect(()=>{En&&invokeVNodeHook(En,pn,hn),Oi&&invokeDirectiveHook(hn,null,pn,"unmounted")},Sn)},Nr=hn=>{const{type:pn,el:Sn,anchor:Qn,transition:Jn}=hn;if(pn===Fragment$1){Hr(Sn,Qn);return}if(pn===Static){Lr(hn);return}const ui=()=>{ce(Sn),Jn&&!Jn.persisted&&Jn.afterLeave&&Jn.afterLeave()};if(hn.shapeFlag&1&&Jn&&!Jn.persisted){const{leave:gi,delayLeave:di}=Jn,Ci=()=>gi(Sn,ui);di?di(hn.el,ui,Ci):Ci()}else ui()},Hr=(hn,pn)=>{let Sn;for(;hn!==pn;)Sn=cr(hn),ce(hn),hn=Sn;ce(pn)},On=(hn,pn,Sn)=>{const{bum:Qn,scope:Jn,update:ui,subTree:gi,um:di}=hn;Qn&&invokeArrayFns(Qn),Jn.stop(),ui&&(ui.active=!1,Jr(gi,hn,pn,Sn)),di&&queuePostRenderEffect(di,pn),queuePostRenderEffect(()=>{hn.isUnmounted=!0},pn),pn&&pn.pendingBranch&&!pn.isUnmounted&&hn.asyncDep&&!hn.asyncResolved&&hn.suspenseId===pn.pendingId&&(pn.deps--,pn.deps===0&&pn.resolve())},Gn=(hn,pn,Sn,Qn=!1,Jn=!1,ui=0)=>{for(let gi=ui;gihn.shapeFlag&6?mn(hn.component.subTree):hn.shapeFlag&128?hn.suspense.next():cr(hn.anchor||hn.el),Nn=(hn,pn,Sn)=>{hn==null?pn._vnode&&Jr(pn._vnode,null,null,!0):Pr(pn._vnode||null,hn,pn,null,null,null,Sn),flushPreFlushCbs(),flushPostFlushCbs(),pn._vnode=hn},In={p:Pr,um:Jr,m:zr,r:Nr,mt:Kr,mc:Qr,pc:Wr,pbc:Yt,n:mn,o:v};let bn,ii;return k&&([bn,ii]=k(In)),{render:Nn,hydrate:bn,createApp:createAppAPI(Nn,bn)}}function toggleRecurse({effect:v,update:k},ie){v.allowRecurse=k.allowRecurse=ie}function traverseStaticChildren(v,k,ie=!1){const ae=v.children,ce=k.children;if(isArray(ae)&&isArray(ce))for(let fe=0;fe>1,v[ie[ve]]0&&(k[ae]=ie[fe-1]),ie[fe]=ae)}}for(fe=ie.length,le=ie[fe-1];fe-- >0;)ie[fe]=le,le=k[le];return ie}var isTeleport=v=>v.__isTeleport,Fragment$1=Symbol(void 0),Text=Symbol(void 0),Comment=Symbol(void 0),Static=Symbol(void 0),blockStack=[],currentBlock=null;function openBlock(v=!1){blockStack.push(currentBlock=v?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}var isBlockTreeEnabled=1;function setBlockTracking(v){isBlockTreeEnabled+=v}function setupBlock(v){return v.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(v),v}function createElementBlock(v,k,ie,ae,ce,fe){return setupBlock(createBaseVNode(v,k,ie,ae,ce,fe,!0))}function createBlock(v,k,ie,ae,ce){return setupBlock(createVNode(v,k,ie,ae,ce,!0))}function isVNode(v){return v?v.__v_isVNode===!0:!1}function isSameVNodeType(v,k){return v.type===k.type&&v.key===k.key}var InternalObjectKey="__vInternal",normalizeKey=({key:v})=>v!=null?v:null,normalizeRef=({ref:v,ref_key:k,ref_for:ie})=>v!=null?isString(v)||isRef(v)||isFunction$2(v)?{i:currentRenderingInstance,r:v,k,f:!!ie}:v:null;function createBaseVNode(v,k=null,ie=null,ae=0,ce=null,fe=v===Fragment$1?0:1,le=!1,ve=!1){const pe={__v_isVNode:!0,__v_skip:!0,type:v,props:k,key:k&&normalizeKey(k),ref:k&&normalizeRef(k),scopeId:currentScopeId,slotScopeIds:null,children:ie,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:fe,patchFlag:ae,dynamicProps:ce,dynamicChildren:null,appContext:null};return ve?(normalizeChildren(pe,ie),fe&128&&v.normalize(pe)):ie&&(pe.shapeFlag|=isString(ie)?8:16),isBlockTreeEnabled>0&&!le&¤tBlock&&(pe.patchFlag>0||fe&6)&&pe.patchFlag!==32&¤tBlock.push(pe),pe}var createVNode=_createVNode;function _createVNode(v,k=null,ie=null,ae=0,ce=null,fe=!1){if((!v||v===NULL_DYNAMIC_COMPONENT)&&(v=Comment),isVNode(v)){const ve=cloneVNode(v,k,!0);return ie&&normalizeChildren(ve,ie),isBlockTreeEnabled>0&&!fe&¤tBlock&&(ve.shapeFlag&6?currentBlock[currentBlock.indexOf(v)]=ve:currentBlock.push(ve)),ve.patchFlag|=-2,ve}if(isClassComponent(v)&&(v=v.__vccOpts),k){k=guardReactiveProps(k);let{class:ve,style:pe}=k;ve&&!isString(ve)&&(k.class=normalizeClass(ve)),isObject$u(pe)&&(isProxy(pe)&&!isArray(pe)&&(pe=extend({},pe)),k.style=normalizeStyle(pe))}const le=isString(v)?1:isSuspense(v)?128:isTeleport(v)?64:isObject$u(v)?4:isFunction$2(v)?2:0;return createBaseVNode(v,k,ie,ae,ce,le,fe,!0)}function guardReactiveProps(v){return v?isProxy(v)||InternalObjectKey in v?extend({},v):v:null}function cloneVNode(v,k,ie=!1){const{props:ae,ref:ce,patchFlag:fe,children:le}=v,ve=k?mergeProps(ae||{},k):ae;return{__v_isVNode:!0,__v_skip:!0,type:v.type,props:ve,key:ve&&normalizeKey(ve),ref:k&&k.ref?ie&&ce?isArray(ce)?ce.concat(normalizeRef(k)):[ce,normalizeRef(k)]:normalizeRef(k):ce,scopeId:v.scopeId,slotScopeIds:v.slotScopeIds,children:le,target:v.target,targetAnchor:v.targetAnchor,staticCount:v.staticCount,shapeFlag:v.shapeFlag,patchFlag:k&&v.type!==Fragment$1?fe===-1?16:fe|16:fe,dynamicProps:v.dynamicProps,dynamicChildren:v.dynamicChildren,appContext:v.appContext,dirs:v.dirs,transition:v.transition,component:v.component,suspense:v.suspense,ssContent:v.ssContent&&cloneVNode(v.ssContent),ssFallback:v.ssFallback&&cloneVNode(v.ssFallback),el:v.el,anchor:v.anchor}}function createTextVNode(v=" ",k=0){return createVNode(Text,null,v,k)}function createStaticVNode(v,k){const ie=createVNode(Static,null,v);return ie.staticCount=k,ie}function createCommentVNode(v="",k=!1){return k?(openBlock(),createBlock(Comment,null,v)):createVNode(Comment,null,v)}function normalizeVNode(v){return v==null||typeof v=="boolean"?createVNode(Comment):isArray(v)?createVNode(Fragment$1,null,v.slice()):typeof v=="object"?cloneIfMounted(v):createVNode(Text,null,String(v))}function cloneIfMounted(v){return v.el===null&&v.patchFlag!==-1||v.memo?v:cloneVNode(v)}function normalizeChildren(v,k){let ie=0;const{shapeFlag:ae}=v;if(k==null)k=null;else if(isArray(k))ie=16;else if(typeof k=="object")if(ae&65){const ce=k.default;ce&&(ce._c&&(ce._d=!1),normalizeChildren(v,ce()),ce._c&&(ce._d=!0));return}else{ie=32;const ce=k._;!ce&&!(InternalObjectKey in k)?k._ctx=currentRenderingInstance:ce===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?k._=1:(k._=2,v.patchFlag|=1024))}else isFunction$2(k)?(k={default:k,_ctx:currentRenderingInstance},ie=32):(k=String(k),ae&64?(ie=16,k=[createTextVNode(k)]):ie=8);v.children=k,v.shapeFlag|=ie}function mergeProps(...v){const k={};for(let ie=0;ie{currentInstance=v,v.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),currentInstance=null};function isStatefulComponent(v){return v.vnode.shapeFlag&4}var isInSSRComponentSetup=!1;function setupComponent(v,k=!1){isInSSRComponentSetup=k;const{props:ie,children:ae}=v.vnode,ce=isStatefulComponent(v);initProps(v,ie,ce,k),initSlots(v,ae);const fe=ce?setupStatefulComponent(v,k):void 0;return isInSSRComponentSetup=!1,fe}function setupStatefulComponent(v,k){const ie=v.type;v.accessCache=Object.create(null),v.proxy=markRaw(new Proxy(v.ctx,PublicInstanceProxyHandlers));const{setup:ae}=ie;if(ae){const ce=v.setupContext=ae.length>1?createSetupContext(v):null;setCurrentInstance(v),pauseTracking();const fe=callWithErrorHandling(ae,v,0,[v.props,ce]);if(resetTracking(),unsetCurrentInstance(),isPromise(fe)){if(fe.then(unsetCurrentInstance,unsetCurrentInstance),k)return fe.then(le=>{handleSetupResult(v,le,k)}).catch(le=>{handleError(le,v,0)});v.asyncDep=fe}else handleSetupResult(v,fe,k)}else finishComponentSetup(v,k)}function handleSetupResult(v,k,ie){isFunction$2(k)?v.type.__ssrInlineRender?v.ssrRender=k:v.render=k:isObject$u(k)&&(v.setupState=proxyRefs(k)),finishComponentSetup(v,ie)}var compile;function finishComponentSetup(v,k,ie){const ae=v.type;if(!v.render){if(!k&&compile&&!ae.render){const ce=ae.template||resolveMergedOptions(v).template;if(ce){const{isCustomElement:fe,compilerOptions:le}=v.appContext.config,{delimiters:ve,compilerOptions:pe}=ae,ye=extend(extend({isCustomElement:fe,delimiters:ve},le),pe);ae.render=compile(ce,ye)}}v.render=ae.render||NOOP$1}setCurrentInstance(v),pauseTracking(),applyOptions(v),resetTracking(),unsetCurrentInstance()}function createAttrsProxy(v){return new Proxy(v.attrs,{get(k,ie){return track(v,"get","$attrs"),k[ie]}})}function createSetupContext(v){const k=ae=>{v.exposed=ae||{}};let ie;return{get attrs(){return ie||(ie=createAttrsProxy(v))},slots:v.slots,emit:v.emit,expose:k}}function getExposeProxy(v){if(v.exposed)return v.exposeProxy||(v.exposeProxy=new Proxy(proxyRefs(markRaw(v.exposed)),{get(k,ie){if(ie in k)return k[ie];if(ie in publicPropertiesMap)return publicPropertiesMap[ie](v)}}))}var classifyRE=/(?:^|[-_])(\w)/g,classify=v=>v.replace(classifyRE,k=>k.toUpperCase()).replace(/[-_]/g,"");function getComponentName(v,k=!0){return isFunction$2(v)?v.displayName||v.name:v.name||k&&v.__name}function formatComponentName(v,k,ie=!1){let ae=getComponentName(k);if(!ae&&k.__file){const ce=k.__file.match(/([^/\\]+)\.\w+$/);ce&&(ae=ce[1])}if(!ae&&v&&v.parent){const ce=fe=>{for(const le in fe)if(fe[le]===k)return le};ae=ce(v.components||v.parent.type.components)||ce(v.appContext.components)}return ae?classify(ae):ie?"App":"Anonymous"}function isClassComponent(v){return isFunction$2(v)&&"__vccOpts"in v}var computed2=(v,k)=>computed(v,k,isInSSRComponentSetup),version$j="3.2.41",svgNS="http://www.w3.org/2000/svg",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(v,k,ie)=>{k.insertBefore(v,ie||null)},remove:v=>{const k=v.parentNode;k&&k.removeChild(v)},createElement:(v,k,ie,ae)=>{const ce=k?doc.createElementNS(svgNS,v):doc.createElement(v,ie?{is:ie}:void 0);return v==="select"&&ae&&ae.multiple!=null&&ce.setAttribute("multiple",ae.multiple),ce},createText:v=>doc.createTextNode(v),createComment:v=>doc.createComment(v),setText:(v,k)=>{v.nodeValue=k},setElementText:(v,k)=>{v.textContent=k},parentNode:v=>v.parentNode,nextSibling:v=>v.nextSibling,querySelector:v=>doc.querySelector(v),setScopeId(v,k){v.setAttribute(k,"")},insertStaticContent(v,k,ie,ae,ce,fe){const le=ie?ie.previousSibling:k.lastChild;if(ce&&(ce===fe||ce.nextSibling))for(;k.insertBefore(ce.cloneNode(!0),ie),!(ce===fe||!(ce=ce.nextSibling)););else{templateContainer.innerHTML=ae?`${v}`:v;const ve=templateContainer.content;if(ae){const pe=ve.firstChild;for(;pe.firstChild;)ve.appendChild(pe.firstChild);ve.removeChild(pe)}k.insertBefore(ve,ie)}return[le?le.nextSibling:k.firstChild,ie?ie.previousSibling:k.lastChild]}};function patchClass(v,k,ie){const ae=v._vtc;ae&&(k=(k?[k,...ae]:[...ae]).join(" ")),k==null?v.removeAttribute("class"):ie?v.setAttribute("class",k):v.className=k}function patchStyle(v,k,ie){const ae=v.style,ce=isString(ie);if(ie&&!ce){for(const fe in ie)setStyle(ae,fe,ie[fe]);if(k&&!isString(k))for(const fe in k)ie[fe]==null&&setStyle(ae,fe,"")}else{const fe=ae.display;ce?k!==ie&&(ae.cssText=ie):k&&v.removeAttribute("style"),"_vod"in v&&(ae.display=fe)}}var importantRE=/\s*!important$/;function setStyle(v,k,ie){if(isArray(ie))ie.forEach(ae=>setStyle(v,k,ae));else if(ie==null&&(ie=""),k.startsWith("--"))v.setProperty(k,ie);else{const ae=autoPrefix(v,k);importantRE.test(ie)?v.setProperty(hyphenate(ae),ie.replace(importantRE,""),"important"):v[ae]=ie}}var prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(v,k){const ie=prefixCache[k];if(ie)return ie;let ae=camelize(k);if(ae!=="filter"&&ae in v)return prefixCache[k]=ae;ae=capitalize(ae);for(let ce=0;cecachedNow||(p$1.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(v,k){const ie=ae=>{if(!ae._vts)ae._vts=Date.now();else if(ae._vts<=ie.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(ae,ie.value),k,5,[ae])};return ie.value=v,ie.attached=getNow(),ie}function patchStopImmediatePropagation(v,k){if(isArray(k)){const ie=v.stopImmediatePropagation;return v.stopImmediatePropagation=()=>{ie.call(v),v._stopped=!0},k.map(ae=>ce=>!ce._stopped&&ae&&ae(ce))}else return k}var nativeOnRE=/^on[a-z]/,patchProp=(v,k,ie,ae,ce=!1,fe,le,ve,pe)=>{k==="class"?patchClass(v,ae,ce):k==="style"?patchStyle(v,ie,ae):isOn(k)?isModelListener(k)||patchEvent(v,k,ie,ae,le):(k[0]==="."?(k=k.slice(1),!0):k[0]==="^"?(k=k.slice(1),!1):shouldSetAsProp(v,k,ae,ce))?patchDOMProp(v,k,ae,fe,le,ve,pe):(k==="true-value"?v._trueValue=ae:k==="false-value"&&(v._falseValue=ae),patchAttr(v,k,ae,ce))};function shouldSetAsProp(v,k,ie,ae){return ae?!!(k==="innerHTML"||k==="textContent"||k in v&&nativeOnRE.test(k)&&isFunction$2(ie)):k==="spellcheck"||k==="draggable"||k==="translate"||k==="form"||k==="list"&&v.tagName==="INPUT"||k==="type"&&v.tagName==="TEXTAREA"||nativeOnRE.test(k)&&isString(ie)?!1:k in v}var systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:v=>v.stopPropagation(),prevent:v=>v.preventDefault(),self:v=>v.target!==v.currentTarget,ctrl:v=>!v.ctrlKey,shift:v=>!v.shiftKey,alt:v=>!v.altKey,meta:v=>!v.metaKey,left:v=>"button"in v&&v.button!==0,middle:v=>"button"in v&&v.button!==1,right:v=>"button"in v&&v.button!==2,exact:(v,k)=>systemModifiers.some(ie=>v[`${ie}Key`]&&!k.includes(ie))},withModifiers=(v,k)=>(ie,...ae)=>{for(let ce=0;ce{const k=ensureRenderer().createApp(...v),{mount:ie}=k;return k.mount=ae=>{const ce=normalizeContainer(ae);if(!ce)return;const fe=k._component;!isFunction$2(fe)&&!fe.render&&!fe.template&&(fe.template=ce.innerHTML),ce.innerHTML="";const le=ie(ce,!1,ce instanceof SVGElement);return ce instanceof Element&&(ce.removeAttribute("v-cloak"),ce.setAttribute("data-v-app","")),le},k};function normalizeContainer(v){return isString(v)?document.querySelector(v):v}var require_browser$5=__commonJS$1({"node_modules/process/browser.js"(v,k){var ie=k.exports={},ae,ce;function fe(){throw new Error("setTimeout has not been defined")}function le(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ae=setTimeout:ae=fe}catch{ae=fe}try{typeof clearTimeout=="function"?ce=clearTimeout:ce=le}catch{ce=le}})();function ve(ur){if(ae===setTimeout)return setTimeout(ur,0);if((ae===fe||!ae)&&setTimeout)return ae=setTimeout,setTimeout(ur,0);try{return ae(ur,0)}catch{try{return ae.call(null,ur,0)}catch{return ae.call(this,ur,0)}}}function pe(ur){if(ce===clearTimeout)return clearTimeout(ur);if((ce===le||!ce)&&clearTimeout)return ce=clearTimeout,clearTimeout(ur);try{return ce(ur)}catch{try{return ce.call(null,ur)}catch{return ce.call(this,ur)}}}var ye=[],me=!1,Ee,cr=-1;function Br(){!me||!Ee||(me=!1,Ee.length?ye=Ee.concat(ye):cr=-1,ye.length&&$r())}function $r(){if(!me){var ur=ve(Br);me=!0;for(var jr=ye.length;jr;){for(Ee=ye,ye=[];++cr1)for(var Mr=1;Mr0)throw new Error("Invalid string. Length must be a multiple of 4");var Or=$r.indexOf("=");Or===-1&&(Or=Pr);var ur=Or===Pr?0:4-Or%4;return[Or,ur]}function pe($r){var Pr=ve($r),Or=Pr[0],ur=Pr[1];return(Or+ur)*3/4-ur}function ye($r,Pr,Or){return(Pr+Or)*3/4-Or}function me($r){var Pr,Or=ve($r),ur=Or[0],jr=Or[1],Mr=new ae(ye($r,ur,jr)),Lr=0,Vr=jr>0?ur-4:ur,Gr;for(Gr=0;Gr>16&255,Mr[Lr++]=Pr>>8&255,Mr[Lr++]=Pr&255;return jr===2&&(Pr=ie[$r.charCodeAt(Gr)]<<2|ie[$r.charCodeAt(Gr+1)]>>4,Mr[Lr++]=Pr&255),jr===1&&(Pr=ie[$r.charCodeAt(Gr)]<<10|ie[$r.charCodeAt(Gr+1)]<<4|ie[$r.charCodeAt(Gr+2)]>>2,Mr[Lr++]=Pr>>8&255,Mr[Lr++]=Pr&255),Mr}function Ee($r){return k[$r>>18&63]+k[$r>>12&63]+k[$r>>6&63]+k[$r&63]}function cr($r,Pr,Or){for(var ur,jr=[],Mr=Pr;MrVr?Vr:Lr+Mr));return ur===1?(Pr=$r[Or-1],jr.push(k[Pr>>2]+k[Pr<<4&63]+"==")):ur===2&&(Pr=($r[Or-2]<<8)+$r[Or-1],jr.push(k[Pr>>10]+k[Pr>>4&63]+k[Pr<<2&63]+"=")),jr.join("")}}}),require_ieee754$1=__commonJS$1({"node_modules/ieee754/index.js"(v){v.read=function(k,ie,ae,ce,fe){var le,ve,pe=fe*8-ce-1,ye=(1<>1,Ee=-7,cr=ae?fe-1:0,Br=ae?-1:1,$r=k[ie+cr];for(cr+=Br,le=$r&(1<<-Ee)-1,$r>>=-Ee,Ee+=pe;Ee>0;le=le*256+k[ie+cr],cr+=Br,Ee-=8);for(ve=le&(1<<-Ee)-1,le>>=-Ee,Ee+=ce;Ee>0;ve=ve*256+k[ie+cr],cr+=Br,Ee-=8);if(le===0)le=1-me;else{if(le===ye)return ve?NaN:($r?-1:1)*(1/0);ve=ve+Math.pow(2,ce),le=le-me}return($r?-1:1)*ve*Math.pow(2,le-ce)},v.write=function(k,ie,ae,ce,fe,le){var ve,pe,ye,me=le*8-fe-1,Ee=(1<>1,Br=fe===23?Math.pow(2,-24)-Math.pow(2,-77):0,$r=ce?0:le-1,Pr=ce?1:-1,Or=ie<0||ie===0&&1/ie<0?1:0;for(ie=Math.abs(ie),isNaN(ie)||ie===1/0?(pe=isNaN(ie)?1:0,ve=Ee):(ve=Math.floor(Math.log(ie)/Math.LN2),ie*(ye=Math.pow(2,-ve))<1&&(ve--,ye*=2),ve+cr>=1?ie+=Br/ye:ie+=Br*Math.pow(2,1-cr),ie*ye>=2&&(ve++,ye/=2),ve+cr>=Ee?(pe=0,ve=Ee):ve+cr>=1?(pe=(ie*ye-1)*Math.pow(2,fe),ve=ve+cr):(pe=ie*Math.pow(2,cr-1)*Math.pow(2,fe),ve=0));fe>=8;k[ae+$r]=pe&255,$r+=Pr,pe/=256,fe-=8);for(ve=ve<0;k[ae+$r]=ve&255,$r+=Pr,ve/=256,me-=8);k[ae+$r-Pr]|=Or*128}}}),require_buffer$1=__commonJS$1({"node_modules/buffer/index.js"(v){var k=require_base64_js$1(),ie=require_ieee754$1(),ae=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;v.Buffer=ve,v.SlowBuffer=jr,v.INSPECT_MAX_BYTES=50;var ce=2147483647;v.kMaxLength=ce,ve.TYPED_ARRAY_SUPPORT=fe(),!ve.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function fe(){try{const En=new Uint8Array(1),Bt={foo:function(){return 42}};return Object.setPrototypeOf(Bt,Uint8Array.prototype),Object.setPrototypeOf(En,Bt),En.foo()===42}catch{return!1}}Object.defineProperty(ve.prototype,"parent",{enumerable:!0,get:function(){if(!!ve.isBuffer(this))return this.buffer}}),Object.defineProperty(ve.prototype,"offset",{enumerable:!0,get:function(){if(!!ve.isBuffer(this))return this.byteOffset}});function le(En){if(En>ce)throw new RangeError('The value "'+En+'" is invalid for option "size"');const Bt=new Uint8Array(En);return Object.setPrototypeOf(Bt,ve.prototype),Bt}function ve(En,Bt,Zt){if(typeof En=="number"){if(typeof Bt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ee(En)}return pe(En,Bt,Zt)}ve.poolSize=8192;function pe(En,Bt,Zt){if(typeof En=="string")return cr(En,Bt);if(ArrayBuffer.isView(En))return $r(En);if(En==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof En);if(li(En,ArrayBuffer)||En&&li(En.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(li(En,SharedArrayBuffer)||En&&li(En.buffer,SharedArrayBuffer)))return Pr(En,Bt,Zt);if(typeof En=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Tn=En.valueOf&&En.valueOf();if(Tn!=null&&Tn!==En)return ve.from(Tn,Bt,Zt);const ei=Or(En);if(ei)return ei;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof En[Symbol.toPrimitive]=="function")return ve.from(En[Symbol.toPrimitive]("string"),Bt,Zt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof En)}ve.from=function(En,Bt,Zt){return pe(En,Bt,Zt)},Object.setPrototypeOf(ve.prototype,Uint8Array.prototype),Object.setPrototypeOf(ve,Uint8Array);function ye(En){if(typeof En!="number")throw new TypeError('"size" argument must be of type number');if(En<0)throw new RangeError('The value "'+En+'" is invalid for option "size"')}function me(En,Bt,Zt){return ye(En),En<=0?le(En):Bt!==void 0?typeof Zt=="string"?le(En).fill(Bt,Zt):le(En).fill(Bt):le(En)}ve.alloc=function(En,Bt,Zt){return me(En,Bt,Zt)};function Ee(En){return ye(En),le(En<0?0:ur(En)|0)}ve.allocUnsafe=function(En){return Ee(En)},ve.allocUnsafeSlow=function(En){return Ee(En)};function cr(En,Bt){if((typeof Bt!="string"||Bt==="")&&(Bt="utf8"),!ve.isEncoding(Bt))throw new TypeError("Unknown encoding: "+Bt);const Zt=Mr(En,Bt)|0;let Tn=le(Zt);const ei=Tn.write(En,Bt);return ei!==Zt&&(Tn=Tn.slice(0,ei)),Tn}function Br(En){const Bt=En.length<0?0:ur(En.length)|0,Zt=le(Bt);for(let Tn=0;Tn=ce)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ce.toString(16)+" bytes");return En|0}function jr(En){return+En!=En&&(En=0),ve.alloc(+En)}ve.isBuffer=function(Bt){return Bt!=null&&Bt._isBuffer===!0&&Bt!==ve.prototype},ve.compare=function(Bt,Zt){if(li(Bt,Uint8Array)&&(Bt=ve.from(Bt,Bt.offset,Bt.byteLength)),li(Zt,Uint8Array)&&(Zt=ve.from(Zt,Zt.offset,Zt.byteLength)),!ve.isBuffer(Bt)||!ve.isBuffer(Zt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Bt===Zt)return 0;let Tn=Bt.length,ei=Zt.length;for(let zn=0,gn=Math.min(Tn,ei);znei.length?(ve.isBuffer(gn)||(gn=ve.from(gn)),gn.copy(ei,zn)):Uint8Array.prototype.set.call(ei,gn,zn);else if(ve.isBuffer(gn))gn.copy(ei,zn);else throw new TypeError('"list" argument must be an Array of Buffers');zn+=gn.length}return ei};function Mr(En,Bt){if(ve.isBuffer(En))return En.length;if(ArrayBuffer.isView(En)||li(En,ArrayBuffer))return En.byteLength;if(typeof En!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof En);const Zt=En.length,Tn=arguments.length>2&&arguments[2]===!0;if(!Tn&&Zt===0)return 0;let ei=!1;for(;;)switch(Bt){case"ascii":case"latin1":case"binary":return Zt;case"utf8":case"utf-8":return ui(En).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zt*2;case"hex":return Zt>>>1;case"base64":return Ci(En).length;default:if(ei)return Tn?-1:ui(En).length;Bt=(""+Bt).toLowerCase(),ei=!0}}ve.byteLength=Mr;function Lr(En,Bt,Zt){let Tn=!1;if((Bt===void 0||Bt<0)&&(Bt=0),Bt>this.length||((Zt===void 0||Zt>this.length)&&(Zt=this.length),Zt<=0)||(Zt>>>=0,Bt>>>=0,Zt<=Bt))return"";for(En||(En="utf8");;)switch(En){case"hex":return Jt(this,Bt,Zt);case"utf8":case"utf-8":return Kr(this,Bt,Zt);case"ascii":return xr(this,Bt,Zt);case"latin1":case"binary":return Wr(this,Bt,Zt);case"base64":return Qt(this,Bt,Zt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xr(this,Bt,Zt);default:if(Tn)throw new TypeError("Unknown encoding: "+En);En=(En+"").toLowerCase(),Tn=!0}}ve.prototype._isBuffer=!0;function Vr(En,Bt,Zt){const Tn=En[Bt];En[Bt]=En[Zt],En[Zt]=Tn}ve.prototype.swap16=function(){const Bt=this.length;if(Bt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Zt=0;ZtZt&&(Bt+=" ... "),""},ae&&(ve.prototype[ae]=ve.prototype.inspect),ve.prototype.compare=function(Bt,Zt,Tn,ei,zn){if(li(Bt,Uint8Array)&&(Bt=ve.from(Bt,Bt.offset,Bt.byteLength)),!ve.isBuffer(Bt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Bt);if(Zt===void 0&&(Zt=0),Tn===void 0&&(Tn=Bt?Bt.length:0),ei===void 0&&(ei=0),zn===void 0&&(zn=this.length),Zt<0||Tn>Bt.length||ei<0||zn>this.length)throw new RangeError("out of range index");if(ei>=zn&&Zt>=Tn)return 0;if(ei>=zn)return-1;if(Zt>=Tn)return 1;if(Zt>>>=0,Tn>>>=0,ei>>>=0,zn>>>=0,this===Bt)return 0;let gn=zn-ei,xn=Tn-Zt;const Hn=Math.min(gn,xn),Ln=this.slice(ei,zn),ti=Bt.slice(Zt,Tn);for(let oi=0;oi2147483647?Zt=2147483647:Zt<-2147483648&&(Zt=-2147483648),Zt=+Zt,Pi(Zt)&&(Zt=ei?0:En.length-1),Zt<0&&(Zt=En.length+Zt),Zt>=En.length){if(ei)return-1;Zt=En.length-1}else if(Zt<0)if(ei)Zt=0;else return-1;if(typeof Bt=="string"&&(Bt=ve.from(Bt,Tn)),ve.isBuffer(Bt))return Bt.length===0?-1:Ur(En,Bt,Zt,Tn,ei);if(typeof Bt=="number")return Bt=Bt&255,typeof Uint8Array.prototype.indexOf=="function"?ei?Uint8Array.prototype.indexOf.call(En,Bt,Zt):Uint8Array.prototype.lastIndexOf.call(En,Bt,Zt):Ur(En,[Bt],Zt,Tn,ei);throw new TypeError("val must be string, number or Buffer")}function Ur(En,Bt,Zt,Tn,ei){let zn=1,gn=En.length,xn=Bt.length;if(Tn!==void 0&&(Tn=String(Tn).toLowerCase(),Tn==="ucs2"||Tn==="ucs-2"||Tn==="utf16le"||Tn==="utf-16le")){if(En.length<2||Bt.length<2)return-1;zn=2,gn/=2,xn/=2,Zt/=2}function Hn(ti,oi){return zn===1?ti[oi]:ti.readUInt16BE(oi*zn)}let Ln;if(ei){let ti=-1;for(Ln=Zt;Lngn&&(Zt=gn-xn),Ln=Zt;Ln>=0;Ln--){let ti=!0;for(let oi=0;oiei&&(Tn=ei)):Tn=ei;const zn=Bt.length;Tn>zn/2&&(Tn=zn/2);let gn;for(gn=0;gn>>0,isFinite(Tn)?(Tn=Tn>>>0,ei===void 0&&(ei="utf8")):(ei=Tn,Tn=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const zn=this.length-Zt;if((Tn===void 0||Tn>zn)&&(Tn=zn),Bt.length>0&&(Tn<0||Zt<0)||Zt>this.length)throw new RangeError("Attempt to write outside buffer bounds");ei||(ei="utf8");let gn=!1;for(;;)switch(ei){case"hex":return Qr(this,Bt,Zt,Tn);case"utf8":case"utf-8":return vn(this,Bt,Zt,Tn);case"ascii":case"latin1":case"binary":return Yt(this,Bt,Zt,Tn);case"base64":return fn(this,Bt,Zt,Tn);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xt(this,Bt,Zt,Tn);default:if(gn)throw new TypeError("Unknown encoding: "+ei);ei=(""+ei).toLowerCase(),gn=!0}},ve.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Qt(En,Bt,Zt){return Bt===0&&Zt===En.length?k.fromByteArray(En):k.fromByteArray(En.slice(Bt,Zt))}function Kr(En,Bt,Zt){Zt=Math.min(En.length,Zt);const Tn=[];let ei=Bt;for(;ei239?4:zn>223?3:zn>191?2:1;if(ei+xn<=Zt){let Hn,Ln,ti,oi;switch(xn){case 1:zn<128&&(gn=zn);break;case 2:Hn=En[ei+1],(Hn&192)===128&&(oi=(zn&31)<<6|Hn&63,oi>127&&(gn=oi));break;case 3:Hn=En[ei+1],Ln=En[ei+2],(Hn&192)===128&&(Ln&192)===128&&(oi=(zn&15)<<12|(Hn&63)<<6|Ln&63,oi>2047&&(oi<55296||oi>57343)&&(gn=oi));break;case 4:Hn=En[ei+1],Ln=En[ei+2],ti=En[ei+3],(Hn&192)===128&&(Ln&192)===128&&(ti&192)===128&&(oi=(zn&15)<<18|(Hn&63)<<12|(Ln&63)<<6|ti&63,oi>65535&&oi<1114112&&(gn=oi))}}gn===null?(gn=65533,xn=1):gn>65535&&(gn-=65536,Tn.push(gn>>>10&1023|55296),gn=56320|gn&1023),Tn.push(gn),ei+=xn}return kr(Tn)}var be=4096;function kr(En){const Bt=En.length;if(Bt<=be)return String.fromCharCode.apply(String,En);let Zt="",Tn=0;for(;TnTn)&&(Zt=Tn);let ei="";for(let zn=Bt;znTn&&(Bt=Tn),Zt<0?(Zt+=Tn,Zt<0&&(Zt=0)):Zt>Tn&&(Zt=Tn),ZtZt)throw new RangeError("Trying to access beyond buffer length")}ve.prototype.readUintLE=ve.prototype.readUIntLE=function(Bt,Zt,Tn){Bt=Bt>>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=this[Bt],zn=1,gn=0;for(;++gn>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=this[Bt+--Zt],zn=1;for(;Zt>0&&(zn*=256);)ei+=this[Bt+--Zt]*zn;return ei},ve.prototype.readUint8=ve.prototype.readUInt8=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,1,this.length),this[Bt]},ve.prototype.readUint16LE=ve.prototype.readUInt16LE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,2,this.length),this[Bt]|this[Bt+1]<<8},ve.prototype.readUint16BE=ve.prototype.readUInt16BE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,2,this.length),this[Bt]<<8|this[Bt+1]},ve.prototype.readUint32LE=ve.prototype.readUInt32LE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),(this[Bt]|this[Bt+1]<<8|this[Bt+2]<<16)+this[Bt+3]*16777216},ve.prototype.readUint32BE=ve.prototype.readUInt32BE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),this[Bt]*16777216+(this[Bt+1]<<16|this[Bt+2]<<8|this[Bt+3])},ve.prototype.readBigUInt64LE=Oi(function(Bt){Bt=Bt>>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=Zt+this[++Bt]*2**8+this[++Bt]*2**16+this[++Bt]*2**24,zn=this[++Bt]+this[++Bt]*2**8+this[++Bt]*2**16+Tn*2**24;return BigInt(ei)+(BigInt(zn)<>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=Zt*2**24+this[++Bt]*2**16+this[++Bt]*2**8+this[++Bt],zn=this[++Bt]*2**24+this[++Bt]*2**16+this[++Bt]*2**8+Tn;return(BigInt(ei)<>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=this[Bt],zn=1,gn=0;for(;++gn=zn&&(ei-=Math.pow(2,8*Zt)),ei},ve.prototype.readIntBE=function(Bt,Zt,Tn){Bt=Bt>>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=Zt,zn=1,gn=this[Bt+--ei];for(;ei>0&&(zn*=256);)gn+=this[Bt+--ei]*zn;return zn*=128,gn>=zn&&(gn-=Math.pow(2,8*Zt)),gn},ve.prototype.readInt8=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,1,this.length),this[Bt]&128?(255-this[Bt]+1)*-1:this[Bt]},ve.prototype.readInt16LE=function(Bt,Zt){Bt=Bt>>>0,Zt||zr(Bt,2,this.length);const Tn=this[Bt]|this[Bt+1]<<8;return Tn&32768?Tn|4294901760:Tn},ve.prototype.readInt16BE=function(Bt,Zt){Bt=Bt>>>0,Zt||zr(Bt,2,this.length);const Tn=this[Bt+1]|this[Bt]<<8;return Tn&32768?Tn|4294901760:Tn},ve.prototype.readInt32LE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),this[Bt]|this[Bt+1]<<8|this[Bt+2]<<16|this[Bt+3]<<24},ve.prototype.readInt32BE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),this[Bt]<<24|this[Bt+1]<<16|this[Bt+2]<<8|this[Bt+3]},ve.prototype.readBigInt64LE=Oi(function(Bt){Bt=Bt>>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=this[Bt+4]+this[Bt+5]*2**8+this[Bt+6]*2**16+(Tn<<24);return(BigInt(ei)<>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=(Zt<<24)+this[++Bt]*2**16+this[++Bt]*2**8+this[++Bt];return(BigInt(ei)<>>0,Zt||zr(Bt,4,this.length),ie.read(this,Bt,!0,23,4)},ve.prototype.readFloatBE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),ie.read(this,Bt,!1,23,4)},ve.prototype.readDoubleLE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,8,this.length),ie.read(this,Bt,!0,52,8)},ve.prototype.readDoubleBE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,8,this.length),ie.read(this,Bt,!1,52,8)};function Jr(En,Bt,Zt,Tn,ei,zn){if(!ve.isBuffer(En))throw new TypeError('"buffer" argument must be a Buffer instance');if(Bt>ei||BtEn.length)throw new RangeError("Index out of range")}ve.prototype.writeUintLE=ve.prototype.writeUIntLE=function(Bt,Zt,Tn,ei){if(Bt=+Bt,Zt=Zt>>>0,Tn=Tn>>>0,!ei){const xn=Math.pow(2,8*Tn)-1;Jr(this,Bt,Zt,Tn,xn,0)}let zn=1,gn=0;for(this[Zt]=Bt&255;++gn>>0,Tn=Tn>>>0,!ei){const xn=Math.pow(2,8*Tn)-1;Jr(this,Bt,Zt,Tn,xn,0)}let zn=Tn-1,gn=1;for(this[Zt+zn]=Bt&255;--zn>=0&&(gn*=256);)this[Zt+zn]=Bt/gn&255;return Zt+Tn},ve.prototype.writeUint8=ve.prototype.writeUInt8=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,1,255,0),this[Zt]=Bt&255,Zt+1},ve.prototype.writeUint16LE=ve.prototype.writeUInt16LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,65535,0),this[Zt]=Bt&255,this[Zt+1]=Bt>>>8,Zt+2},ve.prototype.writeUint16BE=ve.prototype.writeUInt16BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,65535,0),this[Zt]=Bt>>>8,this[Zt+1]=Bt&255,Zt+2},ve.prototype.writeUint32LE=ve.prototype.writeUInt32LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,4294967295,0),this[Zt+3]=Bt>>>24,this[Zt+2]=Bt>>>16,this[Zt+1]=Bt>>>8,this[Zt]=Bt&255,Zt+4},ve.prototype.writeUint32BE=ve.prototype.writeUInt32BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,4294967295,0),this[Zt]=Bt>>>24,this[Zt+1]=Bt>>>16,this[Zt+2]=Bt>>>8,this[Zt+3]=Bt&255,Zt+4};function Nr(En,Bt,Zt,Tn,ei){hn(Bt,Tn,ei,En,Zt,7);let zn=Number(Bt&BigInt(4294967295));En[Zt++]=zn,zn=zn>>8,En[Zt++]=zn,zn=zn>>8,En[Zt++]=zn,zn=zn>>8,En[Zt++]=zn;let gn=Number(Bt>>BigInt(32)&BigInt(4294967295));return En[Zt++]=gn,gn=gn>>8,En[Zt++]=gn,gn=gn>>8,En[Zt++]=gn,gn=gn>>8,En[Zt++]=gn,Zt}function Hr(En,Bt,Zt,Tn,ei){hn(Bt,Tn,ei,En,Zt,7);let zn=Number(Bt&BigInt(4294967295));En[Zt+7]=zn,zn=zn>>8,En[Zt+6]=zn,zn=zn>>8,En[Zt+5]=zn,zn=zn>>8,En[Zt+4]=zn;let gn=Number(Bt>>BigInt(32)&BigInt(4294967295));return En[Zt+3]=gn,gn=gn>>8,En[Zt+2]=gn,gn=gn>>8,En[Zt+1]=gn,gn=gn>>8,En[Zt]=gn,Zt+8}ve.prototype.writeBigUInt64LE=Oi(function(Bt,Zt=0){return Nr(this,Bt,Zt,BigInt(0),BigInt("0xffffffffffffffff"))}),ve.prototype.writeBigUInt64BE=Oi(function(Bt,Zt=0){return Hr(this,Bt,Zt,BigInt(0),BigInt("0xffffffffffffffff"))}),ve.prototype.writeIntLE=function(Bt,Zt,Tn,ei){if(Bt=+Bt,Zt=Zt>>>0,!ei){const Hn=Math.pow(2,8*Tn-1);Jr(this,Bt,Zt,Tn,Hn-1,-Hn)}let zn=0,gn=1,xn=0;for(this[Zt]=Bt&255;++zn>0)-xn&255;return Zt+Tn},ve.prototype.writeIntBE=function(Bt,Zt,Tn,ei){if(Bt=+Bt,Zt=Zt>>>0,!ei){const Hn=Math.pow(2,8*Tn-1);Jr(this,Bt,Zt,Tn,Hn-1,-Hn)}let zn=Tn-1,gn=1,xn=0;for(this[Zt+zn]=Bt&255;--zn>=0&&(gn*=256);)Bt<0&&xn===0&&this[Zt+zn+1]!==0&&(xn=1),this[Zt+zn]=(Bt/gn>>0)-xn&255;return Zt+Tn},ve.prototype.writeInt8=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,1,127,-128),Bt<0&&(Bt=255+Bt+1),this[Zt]=Bt&255,Zt+1},ve.prototype.writeInt16LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,32767,-32768),this[Zt]=Bt&255,this[Zt+1]=Bt>>>8,Zt+2},ve.prototype.writeInt16BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,32767,-32768),this[Zt]=Bt>>>8,this[Zt+1]=Bt&255,Zt+2},ve.prototype.writeInt32LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,2147483647,-2147483648),this[Zt]=Bt&255,this[Zt+1]=Bt>>>8,this[Zt+2]=Bt>>>16,this[Zt+3]=Bt>>>24,Zt+4},ve.prototype.writeInt32BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,2147483647,-2147483648),Bt<0&&(Bt=4294967295+Bt+1),this[Zt]=Bt>>>24,this[Zt+1]=Bt>>>16,this[Zt+2]=Bt>>>8,this[Zt+3]=Bt&255,Zt+4},ve.prototype.writeBigInt64LE=Oi(function(Bt,Zt=0){return Nr(this,Bt,Zt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),ve.prototype.writeBigInt64BE=Oi(function(Bt,Zt=0){return Hr(this,Bt,Zt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function On(En,Bt,Zt,Tn,ei,zn){if(Zt+Tn>En.length)throw new RangeError("Index out of range");if(Zt<0)throw new RangeError("Index out of range")}function Gn(En,Bt,Zt,Tn,ei){return Bt=+Bt,Zt=Zt>>>0,ei||On(En,Bt,Zt,4),ie.write(En,Bt,Zt,Tn,23,4),Zt+4}ve.prototype.writeFloatLE=function(Bt,Zt,Tn){return Gn(this,Bt,Zt,!0,Tn)},ve.prototype.writeFloatBE=function(Bt,Zt,Tn){return Gn(this,Bt,Zt,!1,Tn)};function mn(En,Bt,Zt,Tn,ei){return Bt=+Bt,Zt=Zt>>>0,ei||On(En,Bt,Zt,8),ie.write(En,Bt,Zt,Tn,52,8),Zt+8}ve.prototype.writeDoubleLE=function(Bt,Zt,Tn){return mn(this,Bt,Zt,!0,Tn)},ve.prototype.writeDoubleBE=function(Bt,Zt,Tn){return mn(this,Bt,Zt,!1,Tn)},ve.prototype.copy=function(Bt,Zt,Tn,ei){if(!ve.isBuffer(Bt))throw new TypeError("argument should be a Buffer");if(Tn||(Tn=0),!ei&&ei!==0&&(ei=this.length),Zt>=Bt.length&&(Zt=Bt.length),Zt||(Zt=0),ei>0&&ei=this.length)throw new RangeError("Index out of range");if(ei<0)throw new RangeError("sourceEnd out of bounds");ei>this.length&&(ei=this.length),Bt.length-Zt>>0,Tn=Tn===void 0?this.length:Tn>>>0,Bt||(Bt=0);let zn;if(typeof Bt=="number")for(zn=Zt;zn2**32?ei=bn(String(Zt)):typeof Zt=="bigint"&&(ei=String(Zt),(Zt>BigInt(2)**BigInt(32)||Zt<-(BigInt(2)**BigInt(32)))&&(ei=bn(ei)),ei+="n"),Tn+=` It must be ${Bt}. Received ${ei}`,Tn},RangeError);function bn(En){let Bt="",Zt=En.length;const Tn=En[0]==="-"?1:0;for(;Zt>=Tn+4;Zt-=3)Bt=`_${En.slice(Zt-3,Zt)}${Bt}`;return`${En.slice(0,Zt)}${Bt}`}function ii(En,Bt,Zt){pn(Bt,"offset"),(En[Bt]===void 0||En[Bt+Zt]===void 0)&&Sn(Bt,En.length-(Zt+1))}function hn(En,Bt,Zt,Tn,ei,zn){if(En>Zt||En3?Bt===0||Bt===BigInt(0)?xn=`>= 0${gn} and < 2${gn} ** ${(zn+1)*8}${gn}`:xn=`>= -(2${gn} ** ${(zn+1)*8-1}${gn}) and < 2 ** ${(zn+1)*8-1}${gn}`:xn=`>= ${Bt}${gn} and <= ${Zt}${gn}`,new Nn.ERR_OUT_OF_RANGE("value",xn,En)}ii(Tn,ei,zn)}function pn(En,Bt){if(typeof En!="number")throw new Nn.ERR_INVALID_ARG_TYPE(Bt,"number",En)}function Sn(En,Bt,Zt){throw Math.floor(En)!==En?(pn(En,Zt),new Nn.ERR_OUT_OF_RANGE(Zt||"offset","an integer",En)):Bt<0?new Nn.ERR_BUFFER_OUT_OF_BOUNDS:new Nn.ERR_OUT_OF_RANGE(Zt||"offset",`>= ${Zt?1:0} and <= ${Bt}`,En)}var Qn=/[^+/0-9A-Za-z-_]/g;function Jn(En){if(En=En.split("=")[0],En=En.trim().replace(Qn,""),En.length<2)return"";for(;En.length%4!==0;)En=En+"=";return En}function ui(En,Bt){Bt=Bt||1/0;let Zt;const Tn=En.length;let ei=null;const zn=[];for(let gn=0;gn55295&&Zt<57344){if(!ei){if(Zt>56319){(Bt-=3)>-1&&zn.push(239,191,189);continue}else if(gn+1===Tn){(Bt-=3)>-1&&zn.push(239,191,189);continue}ei=Zt;continue}if(Zt<56320){(Bt-=3)>-1&&zn.push(239,191,189),ei=Zt;continue}Zt=(ei-55296<<10|Zt-56320)+65536}else ei&&(Bt-=3)>-1&&zn.push(239,191,189);if(ei=null,Zt<128){if((Bt-=1)<0)break;zn.push(Zt)}else if(Zt<2048){if((Bt-=2)<0)break;zn.push(Zt>>6|192,Zt&63|128)}else if(Zt<65536){if((Bt-=3)<0)break;zn.push(Zt>>12|224,Zt>>6&63|128,Zt&63|128)}else if(Zt<1114112){if((Bt-=4)<0)break;zn.push(Zt>>18|240,Zt>>12&63|128,Zt>>6&63|128,Zt&63|128)}else throw new Error("Invalid code point")}return zn}function gi(En){const Bt=[];for(let Zt=0;Zt>8,ei=Zt%256,zn.push(ei),zn.push(Tn);return zn}function Ci(En){return k.toByteArray(Jn(En))}function yi(En,Bt,Zt,Tn){let ei;for(ei=0;ei=Bt.length||ei>=En.length);++ei)Bt[ei+Zt]=En[ei];return ei}function li(En,Bt){return En instanceof Bt||En!=null&&En.constructor!=null&&En.constructor.name!=null&&En.constructor.name===Bt.name}function Pi(En){return En!==En}var Ai=function(){const En="0123456789abcdef",Bt=new Array(256);for(let Zt=0;Zt<16;++Zt){const Tn=Zt*16;for(let ei=0;ei<16;++ei)Bt[Tn+ei]=En[Zt]+En[ei]}return Bt}();function Oi(En){return typeof BigInt>"u"?to:En}function to(){throw new Error("BigInt not supported")}}});/*! +`],...formatTraceEntry(ie))}),k}function formatTraceEntry({vnode:v,recurseCount:k}){const ie=k>0?`... (${k} recursive calls)`:"",ae=v.component?v.component.parent==null:!1,ce=` at <${formatComponentName(v.component,v.type,ae)}`,fe=">"+ie;return v.props?[ce,...formatProps(v.props),fe]:[ce+fe]}function formatProps(v){const k=[],ie=Object.keys(v);return ie.slice(0,3).forEach(ae=>{k.push(...formatProp(ae,v[ae]))}),ie.length>3&&k.push(" ..."),k}function formatProp(v,k,ie){return isString(k)?(k=JSON.stringify(k),ie?k:[`${v}=${k}`]):typeof k=="number"||typeof k=="boolean"||k==null?ie?k:[`${v}=${k}`]:isRef(k)?(k=formatProp(v,toRaw(k.value),!0),ie?k:[`${v}=Ref<`,k,">"]):isFunction$2(k)?[`${v}=fn${k.name?`<${k.name}>`:""}`]:(k=toRaw(k),ie?k:[`${v}=`,k])}function callWithErrorHandling(v,k,ie,ae){let ce;try{ce=ae?v(...ae):v()}catch(fe){handleError(fe,k,ie)}return ce}function callWithAsyncErrorHandling(v,k,ie,ae){if(isFunction$2(v)){const fe=callWithErrorHandling(v,k,ie,ae);return fe&&isPromise(fe)&&fe.catch(le=>{handleError(le,k,ie)}),fe}const ce=[];for(let fe=0;fe>>1;getId(queue$a[ae])flushIndex&&queue$a.splice(k,1)}function queuePostFlushCb(v){isArray(v)?pendingPostFlushCbs.push(...v):(!activePostFlushCbs||!activePostFlushCbs.includes(v,v.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(v),queueFlush()}function flushPreFlushCbs(v,k=isFlushing?flushIndex+1:0){for(;kgetId(ie)-getId(ae)),postFlushIndex=0;postFlushIndexv.id==null?1/0:v.id,comparator=(v,k)=>{const ie=getId(v)-getId(k);if(ie===0){if(v.pre&&!k.pre)return-1;if(k.pre&&!v.pre)return 1}return ie};function flushJobs(v){isFlushPending=!1,isFlushing=!0,queue$a.sort(comparator);const k=NOOP$1;try{for(flushIndex=0;flushIndexBr.trim())),Ee&&(ce=ie.map(toNumber))}let ve,pe=ae[ve=toHandlerKey(k)]||ae[ve=toHandlerKey(camelize(k))];!pe&&fe&&(pe=ae[ve=toHandlerKey(hyphenate(k))]),pe&&callWithAsyncErrorHandling(pe,v,6,ce);const ye=ae[ve+"Once"];if(ye){if(!v.emitted)v.emitted={};else if(v.emitted[ve])return;v.emitted[ve]=!0,callWithAsyncErrorHandling(ye,v,6,ce)}}function normalizeEmitsOptions(v,k,ie=!1){const ae=k.emitsCache,ce=ae.get(v);if(ce!==void 0)return ce;const fe=v.emits;let le={},ve=!1;if(!isFunction$2(v)){const pe=ye=>{const me=normalizeEmitsOptions(ye,k,!0);me&&(ve=!0,extend(le,me))};!ie&&k.mixins.length&&k.mixins.forEach(pe),v.extends&&pe(v.extends),v.mixins&&v.mixins.forEach(pe)}return!fe&&!ve?(isObject$u(v)&&ae.set(v,null),null):(isArray(fe)?fe.forEach(pe=>le[pe]=null):extend(le,fe),isObject$u(v)&&ae.set(v,le),le)}function isEmitListener(v,k){return!v||!isOn(k)?!1:(k=k.slice(2).replace(/Once$/,""),hasOwn(v,k[0].toLowerCase()+k.slice(1))||hasOwn(v,hyphenate(k))||hasOwn(v,k))}var currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(v){const k=currentRenderingInstance;return currentRenderingInstance=v,currentScopeId=v&&v.type.__scopeId||null,k}function withCtx(v,k=currentRenderingInstance,ie){if(!k||v._n)return v;const ae=(...ce)=>{ae._d&&setBlockTracking(-1);const fe=setCurrentRenderingInstance(k);let le;try{le=v(...ce)}finally{setCurrentRenderingInstance(fe),ae._d&&setBlockTracking(1)}return le};return ae._n=!0,ae._c=!0,ae._d=!0,ae}function markAttrsAccessed(){}function renderComponentRoot(v){const{type:k,vnode:ie,proxy:ae,withProxy:ce,props:fe,propsOptions:[le],slots:ve,attrs:pe,emit:ye,render:me,renderCache:Ee,data:cr,setupState:Br,ctx:$r,inheritAttrs:Pr}=v;let Ar,ur;const jr=setCurrentRenderingInstance(v);try{if(ie.shapeFlag&4){const Lr=ce||ae;Ar=normalizeVNode(me.call(Lr,Lr,Ee,fe,Br,cr,$r)),ur=pe}else{const Lr=k;Ar=normalizeVNode(Lr.length>1?Lr(fe,{attrs:pe,slots:ve,emit:ye}):Lr(fe,null)),ur=k.props?pe:getFunctionalFallthrough(pe)}}catch(Lr){blockStack.length=0,handleError(Lr,v,1),Ar=createVNode(Comment)}let Mr=Ar;if(ur&&Pr!==!1){const Lr=Object.keys(ur),{shapeFlag:Vr}=Mr;Lr.length&&Vr&7&&(le&&Lr.some(isModelListener)&&(ur=filterModelListeners(ur,le)),Mr=cloneVNode(Mr,ur))}return ie.dirs&&(Mr=cloneVNode(Mr),Mr.dirs=Mr.dirs?Mr.dirs.concat(ie.dirs):ie.dirs),ie.transition&&(Mr.transition=ie.transition),Ar=Mr,setCurrentRenderingInstance(jr),Ar}var getFunctionalFallthrough=v=>{let k;for(const ie in v)(ie==="class"||ie==="style"||isOn(ie))&&((k||(k={}))[ie]=v[ie]);return k},filterModelListeners=(v,k)=>{const ie={};for(const ae in v)(!isModelListener(ae)||!(ae.slice(9)in k))&&(ie[ae]=v[ae]);return ie};function shouldUpdateComponent(v,k,ie){const{props:ae,children:ce,component:fe}=v,{props:le,children:ve,patchFlag:pe}=k,ye=fe.emitsOptions;if(k.dirs||k.transition)return!0;if(ie&&pe>=0){if(pe&1024)return!0;if(pe&16)return ae?hasPropsChanged(ae,le,ye):!!le;if(pe&8){const me=k.dynamicProps;for(let Ee=0;Eev.__isSuspense;function queueEffectWithSuspense(v,k){k&&k.pendingBranch?isArray(v)?k.effects.push(...v):k.effects.push(v):queuePostFlushCb(v)}function provide(v,k){if(currentInstance){let ie=currentInstance.provides;const ae=currentInstance.parent&¤tInstance.parent.provides;ae===ie&&(ie=currentInstance.provides=Object.create(ae)),ie[v]=k}}function inject(v,k,ie=!1){const ae=currentInstance||currentRenderingInstance;if(ae){const ce=ae.parent==null?ae.vnode.appContext&&ae.vnode.appContext.provides:ae.parent.provides;if(ce&&v in ce)return ce[v];if(arguments.length>1)return ie&&isFunction$2(k)?k.call(ae.proxy):k}}var INITIAL_WATCHER_VALUE={};function watch(v,k,ie){return doWatch(v,k,ie)}function doWatch(v,k,{immediate:ie,deep:ae,flush:ce,onTrack:fe,onTrigger:le}=EMPTY_OBJ){const ve=currentInstance;let pe,ye=!1,me=!1;if(isRef(v)?(pe=()=>v.value,ye=isShallow(v)):isReactive(v)?(pe=()=>v,ae=!0):isArray(v)?(me=!0,ye=v.some(ur=>isReactive(ur)||isShallow(ur)),pe=()=>v.map(ur=>{if(isRef(ur))return ur.value;if(isReactive(ur))return traverse(ur);if(isFunction$2(ur))return callWithErrorHandling(ur,ve,2)})):isFunction$2(v)?k?pe=()=>callWithErrorHandling(v,ve,2):pe=()=>{if(!(ve&&ve.isUnmounted))return Ee&&Ee(),callWithAsyncErrorHandling(v,ve,3,[cr])}:pe=NOOP$1,k&&ae){const ur=pe;pe=()=>traverse(ur())}let Ee,cr=ur=>{Ee=Ar.onStop=()=>{callWithErrorHandling(ur,ve,4)}};if(isInSSRComponentSetup)return cr=NOOP$1,k?ie&&callWithAsyncErrorHandling(k,ve,3,[pe(),me?[]:void 0,cr]):pe(),NOOP$1;let Br=me?[]:INITIAL_WATCHER_VALUE;const $r=()=>{if(!!Ar.active)if(k){const ur=Ar.run();(ae||ye||(me?ur.some((jr,Mr)=>hasChanged(jr,Br[Mr])):hasChanged(ur,Br)))&&(Ee&&Ee(),callWithAsyncErrorHandling(k,ve,3,[ur,Br===INITIAL_WATCHER_VALUE?void 0:Br,cr]),Br=ur)}else Ar.run()};$r.allowRecurse=!!k;let Pr;ce==="sync"?Pr=$r:ce==="post"?Pr=()=>queuePostRenderEffect($r,ve&&ve.suspense):($r.pre=!0,ve&&($r.id=ve.uid),Pr=()=>queueJob($r));const Ar=new ReactiveEffect(pe,Pr);return k?ie?$r():Br=Ar.run():ce==="post"?queuePostRenderEffect(Ar.run.bind(Ar),ve&&ve.suspense):Ar.run(),()=>{Ar.stop(),ve&&ve.scope&&remove(ve.scope.effects,Ar)}}function instanceWatch(v,k,ie){const ae=this.proxy,ce=isString(v)?v.includes(".")?createPathGetter(ae,v):()=>ae[v]:v.bind(ae,ae);let fe;isFunction$2(k)?fe=k:(fe=k.handler,ie=k);const le=currentInstance;setCurrentInstance(this);const ve=doWatch(ce,fe.bind(ae),ie);return le?setCurrentInstance(le):unsetCurrentInstance(),ve}function createPathGetter(v,k){const ie=k.split(".");return()=>{let ae=v;for(let ce=0;ce{traverse(ie,k)});else if(isPlainObject(v))for(const ie in v)traverse(v[ie],k);return v}function defineComponent(v){return isFunction$2(v)?{setup:v,name:v.name}:v}var isAsyncWrapper=v=>!!v.type.__asyncLoader,isKeepAlive=v=>v.type.__isKeepAlive;function onActivated(v,k){registerKeepAliveHook(v,"a",k)}function onDeactivated(v,k){registerKeepAliveHook(v,"da",k)}function registerKeepAliveHook(v,k,ie=currentInstance){const ae=v.__wdc||(v.__wdc=()=>{let ce=ie;for(;ce;){if(ce.isDeactivated)return;ce=ce.parent}return v()});if(injectHook(k,ae,ie),ie){let ce=ie.parent;for(;ce&&ce.parent;)isKeepAlive(ce.parent.vnode)&&injectToKeepAliveRoot(ae,k,ie,ce),ce=ce.parent}}function injectToKeepAliveRoot(v,k,ie,ae){const ce=injectHook(k,v,ae,!0);onUnmounted(()=>{remove(ae[k],ce)},ie)}function injectHook(v,k,ie=currentInstance,ae=!1){if(ie){const ce=ie[v]||(ie[v]=[]),fe=k.__weh||(k.__weh=(...le)=>{if(ie.isUnmounted)return;pauseTracking(),setCurrentInstance(ie);const ve=callWithAsyncErrorHandling(k,ie,v,le);return unsetCurrentInstance(),resetTracking(),ve});return ae?ce.unshift(fe):ce.push(fe),fe}}var createHook=v=>(k,ie=currentInstance)=>(!isInSSRComponentSetup||v==="sp")&&injectHook(v,(...ae)=>k(...ae),ie),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(v,k=currentInstance){injectHook("ec",v,k)}function invokeDirectiveHook(v,k,ie,ae){const ce=v.dirs,fe=k&&k.dirs;for(let le=0;lek(le,ve,void 0,fe&&fe[ve]));else{const le=Object.keys(v);ce=new Array(le.length);for(let ve=0,pe=le.length;vev?isStatefulComponent(v)?getExposeProxy(v)||v.proxy:getPublicInstance(v.parent):null,publicPropertiesMap=extend(Object.create(null),{$:v=>v,$el:v=>v.vnode.el,$data:v=>v.data,$props:v=>v.props,$attrs:v=>v.attrs,$slots:v=>v.slots,$refs:v=>v.refs,$parent:v=>getPublicInstance(v.parent),$root:v=>getPublicInstance(v.root),$emit:v=>v.emit,$options:v=>resolveMergedOptions(v),$forceUpdate:v=>v.f||(v.f=()=>queueJob(v.update)),$nextTick:v=>v.n||(v.n=nextTick.bind(v.proxy)),$watch:v=>instanceWatch.bind(v)}),PublicInstanceProxyHandlers={get({_:v},k){const{ctx:ie,setupState:ae,data:ce,props:fe,accessCache:le,type:ve,appContext:pe}=v;let ye;if(k[0]!=="$"){const Br=le[k];if(Br!==void 0)switch(Br){case 1:return ae[k];case 2:return ce[k];case 4:return ie[k];case 3:return fe[k]}else{if(ae!==EMPTY_OBJ&&hasOwn(ae,k))return le[k]=1,ae[k];if(ce!==EMPTY_OBJ&&hasOwn(ce,k))return le[k]=2,ce[k];if((ye=v.propsOptions[0])&&hasOwn(ye,k))return le[k]=3,fe[k];if(ie!==EMPTY_OBJ&&hasOwn(ie,k))return le[k]=4,ie[k];shouldCacheAccess&&(le[k]=0)}}const me=publicPropertiesMap[k];let Ee,cr;if(me)return k==="$attrs"&&track(v,"get",k),me(v);if((Ee=ve.__cssModules)&&(Ee=Ee[k]))return Ee;if(ie!==EMPTY_OBJ&&hasOwn(ie,k))return le[k]=4,ie[k];if(cr=pe.config.globalProperties,hasOwn(cr,k))return cr[k]},set({_:v},k,ie){const{data:ae,setupState:ce,ctx:fe}=v;return ce!==EMPTY_OBJ&&hasOwn(ce,k)?(ce[k]=ie,!0):ae!==EMPTY_OBJ&&hasOwn(ae,k)?(ae[k]=ie,!0):hasOwn(v.props,k)||k[0]==="$"&&k.slice(1)in v?!1:(fe[k]=ie,!0)},has({_:{data:v,setupState:k,accessCache:ie,ctx:ae,appContext:ce,propsOptions:fe}},le){let ve;return!!ie[le]||v!==EMPTY_OBJ&&hasOwn(v,le)||k!==EMPTY_OBJ&&hasOwn(k,le)||(ve=fe[0])&&hasOwn(ve,le)||hasOwn(ae,le)||hasOwn(publicPropertiesMap,le)||hasOwn(ce.config.globalProperties,le)},defineProperty(v,k,ie){return ie.get!=null?v._.accessCache[k]=0:hasOwn(ie,"value")&&this.set(v,k,ie.value,null),Reflect.defineProperty(v,k,ie)}},shouldCacheAccess=!0;function applyOptions(v){const k=resolveMergedOptions(v),ie=v.proxy,ae=v.ctx;shouldCacheAccess=!1,k.beforeCreate&&callHook(k.beforeCreate,v,"bc");const{data:ce,computed:fe,methods:le,watch:ve,provide:pe,inject:ye,created:me,beforeMount:Ee,mounted:cr,beforeUpdate:Br,updated:$r,activated:Pr,deactivated:Ar,beforeDestroy:ur,beforeUnmount:jr,destroyed:Mr,unmounted:Lr,render:Vr,renderTracked:Gr,renderTriggered:Ur,errorCaptured:Qr,serverPrefetch:hn,expose:Yt,inheritAttrs:fn,components:Qt,directives:Xt,filters:Kr}=k;if(ye&&resolveInjections(ye,ae,null,v.appContext.config.unwrapInjectedRef),le)for(const xr in le){const Wr=le[xr];isFunction$2(Wr)&&(ae[xr]=Wr.bind(ie))}if(ce){const xr=ce.call(ie,ie);isObject$u(xr)&&(v.data=reactive(xr))}if(shouldCacheAccess=!0,fe)for(const xr in fe){const Wr=fe[xr],Jt=isFunction$2(Wr)?Wr.bind(ie,ie):isFunction$2(Wr.get)?Wr.get.bind(ie,ie):NOOP$1,Xr=!isFunction$2(Wr)&&isFunction$2(Wr.set)?Wr.set.bind(ie):NOOP$1,zr=computed2({get:Jt,set:Xr});Object.defineProperty(ae,xr,{enumerable:!0,configurable:!0,get:()=>zr.value,set:Jr=>zr.value=Jr})}if(ve)for(const xr in ve)createWatcher(ve[xr],ae,ie,xr);if(pe){const xr=isFunction$2(pe)?pe.call(ie):pe;Reflect.ownKeys(xr).forEach(Wr=>{provide(Wr,xr[Wr])})}me&&callHook(me,v,"c");function kr(xr,Wr){isArray(Wr)?Wr.forEach(Jt=>xr(Jt.bind(ie))):Wr&&xr(Wr.bind(ie))}if(kr(onBeforeMount,Ee),kr(onMounted,cr),kr(onBeforeUpdate,Br),kr(onUpdated,$r),kr(onActivated,Pr),kr(onDeactivated,Ar),kr(onErrorCaptured,Qr),kr(onRenderTracked,Gr),kr(onRenderTriggered,Ur),kr(onBeforeUnmount,jr),kr(onUnmounted,Lr),kr(onServerPrefetch,hn),isArray(Yt))if(Yt.length){const xr=v.exposed||(v.exposed={});Yt.forEach(Wr=>{Object.defineProperty(xr,Wr,{get:()=>ie[Wr],set:Jt=>ie[Wr]=Jt})})}else v.exposed||(v.exposed={});Vr&&v.render===NOOP$1&&(v.render=Vr),fn!=null&&(v.inheritAttrs=fn),Qt&&(v.components=Qt),Xt&&(v.directives=Xt)}function resolveInjections(v,k,ie=NOOP$1,ae=!1){isArray(v)&&(v=normalizeInject(v));for(const ce in v){const fe=v[ce];let le;isObject$u(fe)?"default"in fe?le=inject(fe.from||ce,fe.default,!0):le=inject(fe.from||ce):le=inject(fe),isRef(le)&&ae?Object.defineProperty(k,ce,{enumerable:!0,configurable:!0,get:()=>le.value,set:ve=>le.value=ve}):k[ce]=le}}function callHook(v,k,ie){callWithAsyncErrorHandling(isArray(v)?v.map(ae=>ae.bind(k.proxy)):v.bind(k.proxy),k,ie)}function createWatcher(v,k,ie,ae){const ce=ae.includes(".")?createPathGetter(ie,ae):()=>ie[ae];if(isString(v)){const fe=k[v];isFunction$2(fe)&&watch(ce,fe)}else if(isFunction$2(v))watch(ce,v.bind(ie));else if(isObject$u(v))if(isArray(v))v.forEach(fe=>createWatcher(fe,k,ie,ae));else{const fe=isFunction$2(v.handler)?v.handler.bind(ie):k[v.handler];isFunction$2(fe)&&watch(ce,fe,v)}}function resolveMergedOptions(v){const k=v.type,{mixins:ie,extends:ae}=k,{mixins:ce,optionsCache:fe,config:{optionMergeStrategies:le}}=v.appContext,ve=fe.get(k);let pe;return ve?pe=ve:!ce.length&&!ie&&!ae?pe=k:(pe={},ce.length&&ce.forEach(ye=>mergeOptions(pe,ye,le,!0)),mergeOptions(pe,k,le)),isObject$u(k)&&fe.set(k,pe),pe}function mergeOptions(v,k,ie,ae=!1){const{mixins:ce,extends:fe}=k;fe&&mergeOptions(v,fe,ie,!0),ce&&ce.forEach(le=>mergeOptions(v,le,ie,!0));for(const le in k)if(!(ae&&le==="expose")){const ve=internalOptionMergeStrats[le]||ie&&ie[le];v[le]=ve?ve(v[le],k[le]):k[le]}return v}var internalOptionMergeStrats={data:mergeDataFn,props:mergeObjectOptions,emits:mergeObjectOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(v,k){return k?v?function(){return extend(isFunction$2(v)?v.call(this,this):v,isFunction$2(k)?k.call(this,this):k)}:k:v}function mergeInject(v,k){return mergeObjectOptions(normalizeInject(v),normalizeInject(k))}function normalizeInject(v){if(isArray(v)){const k={};for(let ie=0;ie0)&&!(le&16)){if(le&8){const me=v.vnode.dynamicProps;for(let Ee=0;Ee{pe=!0;const[cr,Br]=normalizePropsOptions(Ee,k,!0);extend(le,cr),Br&&ve.push(...Br)};!ie&&k.mixins.length&&k.mixins.forEach(me),v.extends&&me(v.extends),v.mixins&&v.mixins.forEach(me)}if(!fe&&!pe)return isObject$u(v)&&ae.set(v,EMPTY_ARR),EMPTY_ARR;if(isArray(fe))for(let me=0;me-1,Br[1]=Pr<0||$r-1||hasOwn(Br,"default"))&&ve.push(Ee)}}}const ye=[le,ve];return isObject$u(v)&&ae.set(v,ye),ye}function validatePropName(v){return v[0]!=="$"}function getType(v){const k=v&&v.toString().match(/^\s*function (\w+)/);return k?k[1]:v===null?"null":""}function isSameType(v,k){return getType(v)===getType(k)}function getTypeIndex(v,k){return isArray(k)?k.findIndex(ie=>isSameType(ie,v)):isFunction$2(k)&&isSameType(k,v)?0:-1}var isInternalKey=v=>v[0]==="_"||v==="$stable",normalizeSlotValue=v=>isArray(v)?v.map(normalizeVNode):[normalizeVNode(v)],normalizeSlot=(v,k,ie)=>{if(k._n)return k;const ae=withCtx((...ce)=>normalizeSlotValue(k(...ce)),ie);return ae._c=!1,ae},normalizeObjectSlots=(v,k,ie)=>{const ae=v._ctx;for(const ce in v){if(isInternalKey(ce))continue;const fe=v[ce];if(isFunction$2(fe))k[ce]=normalizeSlot(ce,fe,ae);else if(fe!=null){const le=normalizeSlotValue(fe);k[ce]=()=>le}}},normalizeVNodeSlots=(v,k)=>{const ie=normalizeSlotValue(k);v.slots.default=()=>ie},initSlots=(v,k)=>{if(v.vnode.shapeFlag&32){const ie=k._;ie?(v.slots=toRaw(k),def(k,"_",ie)):normalizeObjectSlots(k,v.slots={})}else v.slots={},k&&normalizeVNodeSlots(v,k);def(v.slots,InternalObjectKey,1)},updateSlots=(v,k,ie)=>{const{vnode:ae,slots:ce}=v;let fe=!0,le=EMPTY_OBJ;if(ae.shapeFlag&32){const ve=k._;ve?ie&&ve===1?fe=!1:(extend(ce,k),!ie&&ve===1&&delete ce._):(fe=!k.$stable,normalizeObjectSlots(k,ce)),le=k}else k&&(normalizeVNodeSlots(v,k),le={default:1});if(fe)for(const ve in ce)!isInternalKey(ve)&&!(ve in le)&&delete ce[ve]};function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var uid$m=0;function createAppAPI(v,k){return function(ae,ce=null){isFunction$2(ae)||(ae=Object.assign({},ae)),ce!=null&&!isObject$u(ce)&&(ce=null);const fe=createAppContext(),le=new Set;let ve=!1;const pe=fe.app={_uid:uid$m++,_component:ae,_props:ce,_container:null,_context:fe,_instance:null,version:version$j,get config(){return fe.config},set config(ye){},use(ye,...me){return le.has(ye)||(ye&&isFunction$2(ye.install)?(le.add(ye),ye.install(pe,...me)):isFunction$2(ye)&&(le.add(ye),ye(pe,...me))),pe},mixin(ye){return fe.mixins.includes(ye)||fe.mixins.push(ye),pe},component(ye,me){return me?(fe.components[ye]=me,pe):fe.components[ye]},directive(ye,me){return me?(fe.directives[ye]=me,pe):fe.directives[ye]},mount(ye,me,Ee){if(!ve){const cr=createVNode(ae,ce);return cr.appContext=fe,me&&k?k(cr,ye):v(cr,ye,Ee),ve=!0,pe._container=ye,ye.__vue_app__=pe,getExposeProxy(cr.component)||cr.component.proxy}},unmount(){ve&&(v(null,pe._container),delete pe._container.__vue_app__)},provide(ye,me){return fe.provides[ye]=me,pe}};return pe}}function setRef(v,k,ie,ae,ce=!1){if(isArray(v)){v.forEach((cr,Br)=>setRef(cr,k&&(isArray(k)?k[Br]:k),ie,ae,ce));return}if(isAsyncWrapper(ae)&&!ce)return;const fe=ae.shapeFlag&4?getExposeProxy(ae.component)||ae.component.proxy:ae.el,le=ce?null:fe,{i:ve,r:pe}=v,ye=k&&k.r,me=ve.refs===EMPTY_OBJ?ve.refs={}:ve.refs,Ee=ve.setupState;if(ye!=null&&ye!==pe&&(isString(ye)?(me[ye]=null,hasOwn(Ee,ye)&&(Ee[ye]=null)):isRef(ye)&&(ye.value=null)),isFunction$2(pe))callWithErrorHandling(pe,ve,12,[le,me]);else{const cr=isString(pe),Br=isRef(pe);if(cr||Br){const $r=()=>{if(v.f){const Pr=cr?hasOwn(Ee,pe)?Ee[pe]:me[pe]:pe.value;ce?isArray(Pr)&&remove(Pr,fe):isArray(Pr)?Pr.includes(fe)||Pr.push(fe):cr?(me[pe]=[fe],hasOwn(Ee,pe)&&(Ee[pe]=me[pe])):(pe.value=[fe],v.k&&(me[v.k]=pe.value))}else cr?(me[pe]=le,hasOwn(Ee,pe)&&(Ee[pe]=le)):Br&&(pe.value=le,v.k&&(me[v.k]=le))};le?($r.id=-1,queuePostRenderEffect($r,ie)):$r()}}}var queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(v){return baseCreateRenderer(v)}function baseCreateRenderer(v,k){const ie=getGlobalThis();ie.__VUE__=!0;const{insert:ae,remove:ce,patchProp:fe,createElement:le,createText:ve,createComment:pe,setText:ye,setElementText:me,parentNode:Ee,nextSibling:cr,setScopeId:Br=NOOP$1,insertStaticContent:$r}=v,Pr=(vn,pn,Sn,Qn=null,Jn=null,ui=null,gi=!1,di=null,Ci=!!pn.dynamicChildren)=>{if(vn===pn)return;vn&&!isSameVNodeType(vn,pn)&&(Qn=mn(vn),Jr(vn,Jn,ui,!0),vn=null),pn.patchFlag===-2&&(Ci=!1,pn.dynamicChildren=null);const{type:yi,ref:li,shapeFlag:Pi}=pn;switch(yi){case Text:Ar(vn,pn,Sn,Qn);break;case Comment:ur(vn,pn,Sn,Qn);break;case Static:vn==null&&jr(pn,Sn,Qn,gi);break;case Fragment$1:Qt(vn,pn,Sn,Qn,Jn,ui,gi,di,Ci);break;default:Pi&1?Vr(vn,pn,Sn,Qn,Jn,ui,gi,di,Ci):Pi&6?Xt(vn,pn,Sn,Qn,Jn,ui,gi,di,Ci):(Pi&64||Pi&128)&&yi.process(vn,pn,Sn,Qn,Jn,ui,gi,di,Ci,In)}li!=null&&Jn&&setRef(li,vn&&vn.ref,ui,pn||vn,!pn)},Ar=(vn,pn,Sn,Qn)=>{if(vn==null)ae(pn.el=ve(pn.children),Sn,Qn);else{const Jn=pn.el=vn.el;pn.children!==vn.children&&ye(Jn,pn.children)}},ur=(vn,pn,Sn,Qn)=>{vn==null?ae(pn.el=pe(pn.children||""),Sn,Qn):pn.el=vn.el},jr=(vn,pn,Sn,Qn)=>{[vn.el,vn.anchor]=$r(vn.children,pn,Sn,Qn,vn.el,vn.anchor)},Mr=({el:vn,anchor:pn},Sn,Qn)=>{let Jn;for(;vn&&vn!==pn;)Jn=cr(vn),ae(vn,Sn,Qn),vn=Jn;ae(pn,Sn,Qn)},Lr=({el:vn,anchor:pn})=>{let Sn;for(;vn&&vn!==pn;)Sn=cr(vn),ce(vn),vn=Sn;ce(pn)},Vr=(vn,pn,Sn,Qn,Jn,ui,gi,di,Ci)=>{gi=gi||pn.type==="svg",vn==null?Gr(pn,Sn,Qn,Jn,ui,gi,di,Ci):hn(vn,pn,Jn,ui,gi,di,Ci)},Gr=(vn,pn,Sn,Qn,Jn,ui,gi,di)=>{let Ci,yi;const{type:li,props:Pi,shapeFlag:Ai,transition:Oi,dirs:to}=vn;if(Ci=vn.el=le(vn.type,ui,Pi&&Pi.is,Pi),Ai&8?me(Ci,vn.children):Ai&16&&Qr(vn.children,Ci,null,Qn,Jn,ui&&li!=="foreignObject",gi,di),to&&invokeDirectiveHook(vn,null,Qn,"created"),Pi){for(const Bt in Pi)Bt!=="value"&&!isReservedProp(Bt)&&fe(Ci,Bt,null,Pi[Bt],ui,vn.children,Qn,Jn,Gn);"value"in Pi&&fe(Ci,"value",null,Pi.value),(yi=Pi.onVnodeBeforeMount)&&invokeVNodeHook(yi,Qn,vn)}Ur(Ci,vn,vn.scopeId,gi,Qn),to&&invokeDirectiveHook(vn,null,Qn,"beforeMount");const En=(!Jn||Jn&&!Jn.pendingBranch)&&Oi&&!Oi.persisted;En&&Oi.beforeEnter(Ci),ae(Ci,pn,Sn),((yi=Pi&&Pi.onVnodeMounted)||En||to)&&queuePostRenderEffect(()=>{yi&&invokeVNodeHook(yi,Qn,vn),En&&Oi.enter(Ci),to&&invokeDirectiveHook(vn,null,Qn,"mounted")},Jn)},Ur=(vn,pn,Sn,Qn,Jn)=>{if(Sn&&Br(vn,Sn),Qn)for(let ui=0;ui{for(let yi=Ci;yi{const di=pn.el=vn.el;let{patchFlag:Ci,dynamicChildren:yi,dirs:li}=pn;Ci|=vn.patchFlag&16;const Pi=vn.props||EMPTY_OBJ,Ai=pn.props||EMPTY_OBJ;let Oi;Sn&&toggleRecurse(Sn,!1),(Oi=Ai.onVnodeBeforeUpdate)&&invokeVNodeHook(Oi,Sn,pn,vn),li&&invokeDirectiveHook(pn,vn,Sn,"beforeUpdate"),Sn&&toggleRecurse(Sn,!0);const to=Jn&&pn.type!=="foreignObject";if(yi?Yt(vn.dynamicChildren,yi,di,Sn,Qn,to,ui):gi||Wr(vn,pn,di,null,Sn,Qn,to,ui,!1),Ci>0){if(Ci&16)fn(di,pn,Pi,Ai,Sn,Qn,Jn);else if(Ci&2&&Pi.class!==Ai.class&&fe(di,"class",null,Ai.class,Jn),Ci&4&&fe(di,"style",Pi.style,Ai.style,Jn),Ci&8){const En=pn.dynamicProps;for(let Bt=0;Bt{Oi&&invokeVNodeHook(Oi,Sn,pn,vn),li&&invokeDirectiveHook(pn,vn,Sn,"updated")},Qn)},Yt=(vn,pn,Sn,Qn,Jn,ui,gi)=>{for(let di=0;di{if(Sn!==Qn){if(Sn!==EMPTY_OBJ)for(const di in Sn)!isReservedProp(di)&&!(di in Qn)&&fe(vn,di,Sn[di],null,gi,pn.children,Jn,ui,Gn);for(const di in Qn){if(isReservedProp(di))continue;const Ci=Qn[di],yi=Sn[di];Ci!==yi&&di!=="value"&&fe(vn,di,yi,Ci,gi,pn.children,Jn,ui,Gn)}"value"in Qn&&fe(vn,"value",Sn.value,Qn.value)}},Qt=(vn,pn,Sn,Qn,Jn,ui,gi,di,Ci)=>{const yi=pn.el=vn?vn.el:ve(""),li=pn.anchor=vn?vn.anchor:ve("");let{patchFlag:Pi,dynamicChildren:Ai,slotScopeIds:Oi}=pn;Oi&&(di=di?di.concat(Oi):Oi),vn==null?(ae(yi,Sn,Qn),ae(li,Sn,Qn),Qr(pn.children,Sn,li,Jn,ui,gi,di,Ci)):Pi>0&&Pi&64&&Ai&&vn.dynamicChildren?(Yt(vn.dynamicChildren,Ai,Sn,Jn,ui,gi,di),(pn.key!=null||Jn&&pn===Jn.subTree)&&traverseStaticChildren(vn,pn,!0)):Wr(vn,pn,Sn,li,Jn,ui,gi,di,Ci)},Xt=(vn,pn,Sn,Qn,Jn,ui,gi,di,Ci)=>{pn.slotScopeIds=di,vn==null?pn.shapeFlag&512?Jn.ctx.activate(pn,Sn,Qn,gi,Ci):Kr(pn,Sn,Qn,Jn,ui,gi,Ci):be(vn,pn,Ci)},Kr=(vn,pn,Sn,Qn,Jn,ui,gi)=>{const di=vn.component=createComponentInstance(vn,Qn,Jn);if(isKeepAlive(vn)&&(di.ctx.renderer=In),setupComponent(di),di.asyncDep){if(Jn&&Jn.registerDep(di,kr),!vn.el){const Ci=di.subTree=createVNode(Comment);ur(null,Ci,pn,Sn)}return}kr(di,vn,pn,Sn,Jn,ui,gi)},be=(vn,pn,Sn)=>{const Qn=pn.component=vn.component;if(shouldUpdateComponent(vn,pn,Sn))if(Qn.asyncDep&&!Qn.asyncResolved){xr(Qn,pn,Sn);return}else Qn.next=pn,invalidateJob(Qn.update),Qn.update();else pn.el=vn.el,Qn.vnode=pn},kr=(vn,pn,Sn,Qn,Jn,ui,gi)=>{const di=()=>{if(vn.isMounted){let{next:li,bu:Pi,u:Ai,parent:Oi,vnode:to}=vn,En=li,Bt;toggleRecurse(vn,!1),li?(li.el=to.el,xr(vn,li,gi)):li=to,Pi&&invokeArrayFns(Pi),(Bt=li.props&&li.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Bt,Oi,li,to),toggleRecurse(vn,!0);const Zt=renderComponentRoot(vn),Tn=vn.subTree;vn.subTree=Zt,Pr(Tn,Zt,Ee(Tn.el),mn(Tn),vn,Jn,ui),li.el=Zt.el,En===null&&updateHOCHostEl(vn,Zt.el),Ai&&queuePostRenderEffect(Ai,Jn),(Bt=li.props&&li.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Bt,Oi,li,to),Jn)}else{let li;const{el:Pi,props:Ai}=pn,{bm:Oi,m:to,parent:En}=vn,Bt=isAsyncWrapper(pn);if(toggleRecurse(vn,!1),Oi&&invokeArrayFns(Oi),!Bt&&(li=Ai&&Ai.onVnodeBeforeMount)&&invokeVNodeHook(li,En,pn),toggleRecurse(vn,!0),Pi&&ii){const Zt=()=>{vn.subTree=renderComponentRoot(vn),ii(Pi,vn.subTree,vn,Jn,null)};Bt?pn.type.__asyncLoader().then(()=>!vn.isUnmounted&&Zt()):Zt()}else{const Zt=vn.subTree=renderComponentRoot(vn);Pr(null,Zt,Sn,Qn,vn,Jn,ui),pn.el=Zt.el}if(to&&queuePostRenderEffect(to,Jn),!Bt&&(li=Ai&&Ai.onVnodeMounted)){const Zt=pn;queuePostRenderEffect(()=>invokeVNodeHook(li,En,Zt),Jn)}(pn.shapeFlag&256||En&&isAsyncWrapper(En.vnode)&&En.vnode.shapeFlag&256)&&vn.a&&queuePostRenderEffect(vn.a,Jn),vn.isMounted=!0,pn=Sn=Qn=null}},Ci=vn.effect=new ReactiveEffect(di,()=>queueJob(yi),vn.scope),yi=vn.update=()=>Ci.run();yi.id=vn.uid,toggleRecurse(vn,!0),yi()},xr=(vn,pn,Sn)=>{pn.component=vn;const Qn=vn.vnode.props;vn.vnode=pn,vn.next=null,updateProps(vn,pn.props,Qn,Sn),updateSlots(vn,pn.children,Sn),pauseTracking(),flushPreFlushCbs(),resetTracking()},Wr=(vn,pn,Sn,Qn,Jn,ui,gi,di,Ci=!1)=>{const yi=vn&&vn.children,li=vn?vn.shapeFlag:0,Pi=pn.children,{patchFlag:Ai,shapeFlag:Oi}=pn;if(Ai>0){if(Ai&128){Xr(yi,Pi,Sn,Qn,Jn,ui,gi,di,Ci);return}else if(Ai&256){Jt(yi,Pi,Sn,Qn,Jn,ui,gi,di,Ci);return}}Oi&8?(li&16&&Gn(yi,Jn,ui),Pi!==yi&&me(Sn,Pi)):li&16?Oi&16?Xr(yi,Pi,Sn,Qn,Jn,ui,gi,di,Ci):Gn(yi,Jn,ui,!0):(li&8&&me(Sn,""),Oi&16&&Qr(Pi,Sn,Qn,Jn,ui,gi,di,Ci))},Jt=(vn,pn,Sn,Qn,Jn,ui,gi,di,Ci)=>{vn=vn||EMPTY_ARR,pn=pn||EMPTY_ARR;const yi=vn.length,li=pn.length,Pi=Math.min(yi,li);let Ai;for(Ai=0;Aili?Gn(vn,Jn,ui,!0,!1,Pi):Qr(pn,Sn,Qn,Jn,ui,gi,di,Ci,Pi)},Xr=(vn,pn,Sn,Qn,Jn,ui,gi,di,Ci)=>{let yi=0;const li=pn.length;let Pi=vn.length-1,Ai=li-1;for(;yi<=Pi&&yi<=Ai;){const Oi=vn[yi],to=pn[yi]=Ci?cloneIfMounted(pn[yi]):normalizeVNode(pn[yi]);if(isSameVNodeType(Oi,to))Pr(Oi,to,Sn,null,Jn,ui,gi,di,Ci);else break;yi++}for(;yi<=Pi&&yi<=Ai;){const Oi=vn[Pi],to=pn[Ai]=Ci?cloneIfMounted(pn[Ai]):normalizeVNode(pn[Ai]);if(isSameVNodeType(Oi,to))Pr(Oi,to,Sn,null,Jn,ui,gi,di,Ci);else break;Pi--,Ai--}if(yi>Pi){if(yi<=Ai){const Oi=Ai+1,to=OiAi)for(;yi<=Pi;)Jr(vn[yi],Jn,ui,!0),yi++;else{const Oi=yi,to=yi,En=new Map;for(yi=to;yi<=Ai;yi++){const Hn=pn[yi]=Ci?cloneIfMounted(pn[yi]):normalizeVNode(pn[yi]);Hn.key!=null&&En.set(Hn.key,yi)}let Bt,Zt=0;const Tn=Ai-to+1;let ei=!1,zn=0;const gn=new Array(Tn);for(yi=0;yi=Tn){Jr(Hn,Jn,ui,!0);continue}let Ln;if(Hn.key!=null)Ln=En.get(Hn.key);else for(Bt=to;Bt<=Ai;Bt++)if(gn[Bt-to]===0&&isSameVNodeType(Hn,pn[Bt])){Ln=Bt;break}Ln===void 0?Jr(Hn,Jn,ui,!0):(gn[Ln-to]=yi+1,Ln>=zn?zn=Ln:ei=!0,Pr(Hn,pn[Ln],Sn,null,Jn,ui,gi,di,Ci),Zt++)}const xn=ei?getSequence(gn):EMPTY_ARR;for(Bt=xn.length-1,yi=Tn-1;yi>=0;yi--){const Hn=to+yi,Ln=pn[Hn],ti=Hn+1{const{el:ui,type:gi,transition:di,children:Ci,shapeFlag:yi}=vn;if(yi&6){zr(vn.component.subTree,pn,Sn,Qn);return}if(yi&128){vn.suspense.move(pn,Sn,Qn);return}if(yi&64){gi.move(vn,pn,Sn,In);return}if(gi===Fragment$1){ae(ui,pn,Sn);for(let Pi=0;Pidi.enter(ui),Jn);else{const{leave:Pi,delayLeave:Ai,afterLeave:Oi}=di,to=()=>ae(ui,pn,Sn),En=()=>{Pi(ui,()=>{to(),Oi&&Oi()})};Ai?Ai(ui,to,En):En()}else ae(ui,pn,Sn)},Jr=(vn,pn,Sn,Qn=!1,Jn=!1)=>{const{type:ui,props:gi,ref:di,children:Ci,dynamicChildren:yi,shapeFlag:li,patchFlag:Pi,dirs:Ai}=vn;if(di!=null&&setRef(di,null,Sn,vn,!0),li&256){pn.ctx.deactivate(vn);return}const Oi=li&1&&Ai,to=!isAsyncWrapper(vn);let En;if(to&&(En=gi&&gi.onVnodeBeforeUnmount)&&invokeVNodeHook(En,pn,vn),li&6)On(vn.component,Sn,Qn);else{if(li&128){vn.suspense.unmount(Sn,Qn);return}Oi&&invokeDirectiveHook(vn,null,pn,"beforeUnmount"),li&64?vn.type.remove(vn,pn,Sn,Jn,In,Qn):yi&&(ui!==Fragment$1||Pi>0&&Pi&64)?Gn(yi,pn,Sn,!1,!0):(ui===Fragment$1&&Pi&384||!Jn&&li&16)&&Gn(Ci,pn,Sn),Qn&&Nr(vn)}(to&&(En=gi&&gi.onVnodeUnmounted)||Oi)&&queuePostRenderEffect(()=>{En&&invokeVNodeHook(En,pn,vn),Oi&&invokeDirectiveHook(vn,null,pn,"unmounted")},Sn)},Nr=vn=>{const{type:pn,el:Sn,anchor:Qn,transition:Jn}=vn;if(pn===Fragment$1){Hr(Sn,Qn);return}if(pn===Static){Lr(vn);return}const ui=()=>{ce(Sn),Jn&&!Jn.persisted&&Jn.afterLeave&&Jn.afterLeave()};if(vn.shapeFlag&1&&Jn&&!Jn.persisted){const{leave:gi,delayLeave:di}=Jn,Ci=()=>gi(Sn,ui);di?di(vn.el,ui,Ci):Ci()}else ui()},Hr=(vn,pn)=>{let Sn;for(;vn!==pn;)Sn=cr(vn),ce(vn),vn=Sn;ce(pn)},On=(vn,pn,Sn)=>{const{bum:Qn,scope:Jn,update:ui,subTree:gi,um:di}=vn;Qn&&invokeArrayFns(Qn),Jn.stop(),ui&&(ui.active=!1,Jr(gi,vn,pn,Sn)),di&&queuePostRenderEffect(di,pn),queuePostRenderEffect(()=>{vn.isUnmounted=!0},pn),pn&&pn.pendingBranch&&!pn.isUnmounted&&vn.asyncDep&&!vn.asyncResolved&&vn.suspenseId===pn.pendingId&&(pn.deps--,pn.deps===0&&pn.resolve())},Gn=(vn,pn,Sn,Qn=!1,Jn=!1,ui=0)=>{for(let gi=ui;givn.shapeFlag&6?mn(vn.component.subTree):vn.shapeFlag&128?vn.suspense.next():cr(vn.anchor||vn.el),Nn=(vn,pn,Sn)=>{vn==null?pn._vnode&&Jr(pn._vnode,null,null,!0):Pr(pn._vnode||null,vn,pn,null,null,null,Sn),flushPreFlushCbs(),flushPostFlushCbs(),pn._vnode=vn},In={p:Pr,um:Jr,m:zr,r:Nr,mt:Kr,mc:Qr,pc:Wr,pbc:Yt,n:mn,o:v};let bn,ii;return k&&([bn,ii]=k(In)),{render:Nn,hydrate:bn,createApp:createAppAPI(Nn,bn)}}function toggleRecurse({effect:v,update:k},ie){v.allowRecurse=k.allowRecurse=ie}function traverseStaticChildren(v,k,ie=!1){const ae=v.children,ce=k.children;if(isArray(ae)&&isArray(ce))for(let fe=0;fe>1,v[ie[ve]]0&&(k[ae]=ie[fe-1]),ie[fe]=ae)}}for(fe=ie.length,le=ie[fe-1];fe-- >0;)ie[fe]=le,le=k[le];return ie}var isTeleport=v=>v.__isTeleport,Fragment$1=Symbol(void 0),Text=Symbol(void 0),Comment=Symbol(void 0),Static=Symbol(void 0),blockStack=[],currentBlock=null;function openBlock(v=!1){blockStack.push(currentBlock=v?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}var isBlockTreeEnabled=1;function setBlockTracking(v){isBlockTreeEnabled+=v}function setupBlock(v){return v.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(v),v}function createElementBlock(v,k,ie,ae,ce,fe){return setupBlock(createBaseVNode(v,k,ie,ae,ce,fe,!0))}function createBlock(v,k,ie,ae,ce){return setupBlock(createVNode(v,k,ie,ae,ce,!0))}function isVNode(v){return v?v.__v_isVNode===!0:!1}function isSameVNodeType(v,k){return v.type===k.type&&v.key===k.key}var InternalObjectKey="__vInternal",normalizeKey=({key:v})=>v!=null?v:null,normalizeRef=({ref:v,ref_key:k,ref_for:ie})=>v!=null?isString(v)||isRef(v)||isFunction$2(v)?{i:currentRenderingInstance,r:v,k,f:!!ie}:v:null;function createBaseVNode(v,k=null,ie=null,ae=0,ce=null,fe=v===Fragment$1?0:1,le=!1,ve=!1){const pe={__v_isVNode:!0,__v_skip:!0,type:v,props:k,key:k&&normalizeKey(k),ref:k&&normalizeRef(k),scopeId:currentScopeId,slotScopeIds:null,children:ie,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:fe,patchFlag:ae,dynamicProps:ce,dynamicChildren:null,appContext:null};return ve?(normalizeChildren(pe,ie),fe&128&&v.normalize(pe)):ie&&(pe.shapeFlag|=isString(ie)?8:16),isBlockTreeEnabled>0&&!le&¤tBlock&&(pe.patchFlag>0||fe&6)&&pe.patchFlag!==32&¤tBlock.push(pe),pe}var createVNode=_createVNode;function _createVNode(v,k=null,ie=null,ae=0,ce=null,fe=!1){if((!v||v===NULL_DYNAMIC_COMPONENT)&&(v=Comment),isVNode(v)){const ve=cloneVNode(v,k,!0);return ie&&normalizeChildren(ve,ie),isBlockTreeEnabled>0&&!fe&¤tBlock&&(ve.shapeFlag&6?currentBlock[currentBlock.indexOf(v)]=ve:currentBlock.push(ve)),ve.patchFlag|=-2,ve}if(isClassComponent(v)&&(v=v.__vccOpts),k){k=guardReactiveProps(k);let{class:ve,style:pe}=k;ve&&!isString(ve)&&(k.class=normalizeClass(ve)),isObject$u(pe)&&(isProxy(pe)&&!isArray(pe)&&(pe=extend({},pe)),k.style=normalizeStyle(pe))}const le=isString(v)?1:isSuspense(v)?128:isTeleport(v)?64:isObject$u(v)?4:isFunction$2(v)?2:0;return createBaseVNode(v,k,ie,ae,ce,le,fe,!0)}function guardReactiveProps(v){return v?isProxy(v)||InternalObjectKey in v?extend({},v):v:null}function cloneVNode(v,k,ie=!1){const{props:ae,ref:ce,patchFlag:fe,children:le}=v,ve=k?mergeProps(ae||{},k):ae;return{__v_isVNode:!0,__v_skip:!0,type:v.type,props:ve,key:ve&&normalizeKey(ve),ref:k&&k.ref?ie&&ce?isArray(ce)?ce.concat(normalizeRef(k)):[ce,normalizeRef(k)]:normalizeRef(k):ce,scopeId:v.scopeId,slotScopeIds:v.slotScopeIds,children:le,target:v.target,targetAnchor:v.targetAnchor,staticCount:v.staticCount,shapeFlag:v.shapeFlag,patchFlag:k&&v.type!==Fragment$1?fe===-1?16:fe|16:fe,dynamicProps:v.dynamicProps,dynamicChildren:v.dynamicChildren,appContext:v.appContext,dirs:v.dirs,transition:v.transition,component:v.component,suspense:v.suspense,ssContent:v.ssContent&&cloneVNode(v.ssContent),ssFallback:v.ssFallback&&cloneVNode(v.ssFallback),el:v.el,anchor:v.anchor}}function createTextVNode(v=" ",k=0){return createVNode(Text,null,v,k)}function createStaticVNode(v,k){const ie=createVNode(Static,null,v);return ie.staticCount=k,ie}function createCommentVNode(v="",k=!1){return k?(openBlock(),createBlock(Comment,null,v)):createVNode(Comment,null,v)}function normalizeVNode(v){return v==null||typeof v=="boolean"?createVNode(Comment):isArray(v)?createVNode(Fragment$1,null,v.slice()):typeof v=="object"?cloneIfMounted(v):createVNode(Text,null,String(v))}function cloneIfMounted(v){return v.el===null&&v.patchFlag!==-1||v.memo?v:cloneVNode(v)}function normalizeChildren(v,k){let ie=0;const{shapeFlag:ae}=v;if(k==null)k=null;else if(isArray(k))ie=16;else if(typeof k=="object")if(ae&65){const ce=k.default;ce&&(ce._c&&(ce._d=!1),normalizeChildren(v,ce()),ce._c&&(ce._d=!0));return}else{ie=32;const ce=k._;!ce&&!(InternalObjectKey in k)?k._ctx=currentRenderingInstance:ce===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?k._=1:(k._=2,v.patchFlag|=1024))}else isFunction$2(k)?(k={default:k,_ctx:currentRenderingInstance},ie=32):(k=String(k),ae&64?(ie=16,k=[createTextVNode(k)]):ie=8);v.children=k,v.shapeFlag|=ie}function mergeProps(...v){const k={};for(let ie=0;ie{currentInstance=v,v.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),currentInstance=null};function isStatefulComponent(v){return v.vnode.shapeFlag&4}var isInSSRComponentSetup=!1;function setupComponent(v,k=!1){isInSSRComponentSetup=k;const{props:ie,children:ae}=v.vnode,ce=isStatefulComponent(v);initProps(v,ie,ce,k),initSlots(v,ae);const fe=ce?setupStatefulComponent(v,k):void 0;return isInSSRComponentSetup=!1,fe}function setupStatefulComponent(v,k){const ie=v.type;v.accessCache=Object.create(null),v.proxy=markRaw(new Proxy(v.ctx,PublicInstanceProxyHandlers));const{setup:ae}=ie;if(ae){const ce=v.setupContext=ae.length>1?createSetupContext(v):null;setCurrentInstance(v),pauseTracking();const fe=callWithErrorHandling(ae,v,0,[v.props,ce]);if(resetTracking(),unsetCurrentInstance(),isPromise(fe)){if(fe.then(unsetCurrentInstance,unsetCurrentInstance),k)return fe.then(le=>{handleSetupResult(v,le,k)}).catch(le=>{handleError(le,v,0)});v.asyncDep=fe}else handleSetupResult(v,fe,k)}else finishComponentSetup(v,k)}function handleSetupResult(v,k,ie){isFunction$2(k)?v.type.__ssrInlineRender?v.ssrRender=k:v.render=k:isObject$u(k)&&(v.setupState=proxyRefs(k)),finishComponentSetup(v,ie)}var compile;function finishComponentSetup(v,k,ie){const ae=v.type;if(!v.render){if(!k&&compile&&!ae.render){const ce=ae.template||resolveMergedOptions(v).template;if(ce){const{isCustomElement:fe,compilerOptions:le}=v.appContext.config,{delimiters:ve,compilerOptions:pe}=ae,ye=extend(extend({isCustomElement:fe,delimiters:ve},le),pe);ae.render=compile(ce,ye)}}v.render=ae.render||NOOP$1}setCurrentInstance(v),pauseTracking(),applyOptions(v),resetTracking(),unsetCurrentInstance()}function createAttrsProxy(v){return new Proxy(v.attrs,{get(k,ie){return track(v,"get","$attrs"),k[ie]}})}function createSetupContext(v){const k=ae=>{v.exposed=ae||{}};let ie;return{get attrs(){return ie||(ie=createAttrsProxy(v))},slots:v.slots,emit:v.emit,expose:k}}function getExposeProxy(v){if(v.exposed)return v.exposeProxy||(v.exposeProxy=new Proxy(proxyRefs(markRaw(v.exposed)),{get(k,ie){if(ie in k)return k[ie];if(ie in publicPropertiesMap)return publicPropertiesMap[ie](v)}}))}var classifyRE=/(?:^|[-_])(\w)/g,classify=v=>v.replace(classifyRE,k=>k.toUpperCase()).replace(/[-_]/g,"");function getComponentName(v,k=!0){return isFunction$2(v)?v.displayName||v.name:v.name||k&&v.__name}function formatComponentName(v,k,ie=!1){let ae=getComponentName(k);if(!ae&&k.__file){const ce=k.__file.match(/([^/\\]+)\.\w+$/);ce&&(ae=ce[1])}if(!ae&&v&&v.parent){const ce=fe=>{for(const le in fe)if(fe[le]===k)return le};ae=ce(v.components||v.parent.type.components)||ce(v.appContext.components)}return ae?classify(ae):ie?"App":"Anonymous"}function isClassComponent(v){return isFunction$2(v)&&"__vccOpts"in v}var computed2=(v,k)=>computed(v,k,isInSSRComponentSetup),version$j="3.2.41",svgNS="http://www.w3.org/2000/svg",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(v,k,ie)=>{k.insertBefore(v,ie||null)},remove:v=>{const k=v.parentNode;k&&k.removeChild(v)},createElement:(v,k,ie,ae)=>{const ce=k?doc.createElementNS(svgNS,v):doc.createElement(v,ie?{is:ie}:void 0);return v==="select"&&ae&&ae.multiple!=null&&ce.setAttribute("multiple",ae.multiple),ce},createText:v=>doc.createTextNode(v),createComment:v=>doc.createComment(v),setText:(v,k)=>{v.nodeValue=k},setElementText:(v,k)=>{v.textContent=k},parentNode:v=>v.parentNode,nextSibling:v=>v.nextSibling,querySelector:v=>doc.querySelector(v),setScopeId(v,k){v.setAttribute(k,"")},insertStaticContent(v,k,ie,ae,ce,fe){const le=ie?ie.previousSibling:k.lastChild;if(ce&&(ce===fe||ce.nextSibling))for(;k.insertBefore(ce.cloneNode(!0),ie),!(ce===fe||!(ce=ce.nextSibling)););else{templateContainer.innerHTML=ae?`${v}`:v;const ve=templateContainer.content;if(ae){const pe=ve.firstChild;for(;pe.firstChild;)ve.appendChild(pe.firstChild);ve.removeChild(pe)}k.insertBefore(ve,ie)}return[le?le.nextSibling:k.firstChild,ie?ie.previousSibling:k.lastChild]}};function patchClass(v,k,ie){const ae=v._vtc;ae&&(k=(k?[k,...ae]:[...ae]).join(" ")),k==null?v.removeAttribute("class"):ie?v.setAttribute("class",k):v.className=k}function patchStyle(v,k,ie){const ae=v.style,ce=isString(ie);if(ie&&!ce){for(const fe in ie)setStyle(ae,fe,ie[fe]);if(k&&!isString(k))for(const fe in k)ie[fe]==null&&setStyle(ae,fe,"")}else{const fe=ae.display;ce?k!==ie&&(ae.cssText=ie):k&&v.removeAttribute("style"),"_vod"in v&&(ae.display=fe)}}var importantRE=/\s*!important$/;function setStyle(v,k,ie){if(isArray(ie))ie.forEach(ae=>setStyle(v,k,ae));else if(ie==null&&(ie=""),k.startsWith("--"))v.setProperty(k,ie);else{const ae=autoPrefix(v,k);importantRE.test(ie)?v.setProperty(hyphenate(ae),ie.replace(importantRE,""),"important"):v[ae]=ie}}var prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(v,k){const ie=prefixCache[k];if(ie)return ie;let ae=camelize(k);if(ae!=="filter"&&ae in v)return prefixCache[k]=ae;ae=capitalize(ae);for(let ce=0;cecachedNow||(p$1.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(v,k){const ie=ae=>{if(!ae._vts)ae._vts=Date.now();else if(ae._vts<=ie.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(ae,ie.value),k,5,[ae])};return ie.value=v,ie.attached=getNow(),ie}function patchStopImmediatePropagation(v,k){if(isArray(k)){const ie=v.stopImmediatePropagation;return v.stopImmediatePropagation=()=>{ie.call(v),v._stopped=!0},k.map(ae=>ce=>!ce._stopped&&ae&&ae(ce))}else return k}var nativeOnRE=/^on[a-z]/,patchProp=(v,k,ie,ae,ce=!1,fe,le,ve,pe)=>{k==="class"?patchClass(v,ae,ce):k==="style"?patchStyle(v,ie,ae):isOn(k)?isModelListener(k)||patchEvent(v,k,ie,ae,le):(k[0]==="."?(k=k.slice(1),!0):k[0]==="^"?(k=k.slice(1),!1):shouldSetAsProp(v,k,ae,ce))?patchDOMProp(v,k,ae,fe,le,ve,pe):(k==="true-value"?v._trueValue=ae:k==="false-value"&&(v._falseValue=ae),patchAttr(v,k,ae,ce))};function shouldSetAsProp(v,k,ie,ae){return ae?!!(k==="innerHTML"||k==="textContent"||k in v&&nativeOnRE.test(k)&&isFunction$2(ie)):k==="spellcheck"||k==="draggable"||k==="translate"||k==="form"||k==="list"&&v.tagName==="INPUT"||k==="type"&&v.tagName==="TEXTAREA"||nativeOnRE.test(k)&&isString(ie)?!1:k in v}var systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:v=>v.stopPropagation(),prevent:v=>v.preventDefault(),self:v=>v.target!==v.currentTarget,ctrl:v=>!v.ctrlKey,shift:v=>!v.shiftKey,alt:v=>!v.altKey,meta:v=>!v.metaKey,left:v=>"button"in v&&v.button!==0,middle:v=>"button"in v&&v.button!==1,right:v=>"button"in v&&v.button!==2,exact:(v,k)=>systemModifiers.some(ie=>v[`${ie}Key`]&&!k.includes(ie))},withModifiers=(v,k)=>(ie,...ae)=>{for(let ce=0;ce{const k=ensureRenderer().createApp(...v),{mount:ie}=k;return k.mount=ae=>{const ce=normalizeContainer(ae);if(!ce)return;const fe=k._component;!isFunction$2(fe)&&!fe.render&&!fe.template&&(fe.template=ce.innerHTML),ce.innerHTML="";const le=ie(ce,!1,ce instanceof SVGElement);return ce instanceof Element&&(ce.removeAttribute("v-cloak"),ce.setAttribute("data-v-app","")),le},k};function normalizeContainer(v){return isString(v)?document.querySelector(v):v}var require_browser$5=__commonJS$1({"node_modules/process/browser.js"(v,k){var ie=k.exports={},ae,ce;function fe(){throw new Error("setTimeout has not been defined")}function le(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ae=setTimeout:ae=fe}catch{ae=fe}try{typeof clearTimeout=="function"?ce=clearTimeout:ce=le}catch{ce=le}})();function ve(ur){if(ae===setTimeout)return setTimeout(ur,0);if((ae===fe||!ae)&&setTimeout)return ae=setTimeout,setTimeout(ur,0);try{return ae(ur,0)}catch{try{return ae.call(null,ur,0)}catch{return ae.call(this,ur,0)}}}function pe(ur){if(ce===clearTimeout)return clearTimeout(ur);if((ce===le||!ce)&&clearTimeout)return ce=clearTimeout,clearTimeout(ur);try{return ce(ur)}catch{try{return ce.call(null,ur)}catch{return ce.call(this,ur)}}}var ye=[],me=!1,Ee,cr=-1;function Br(){!me||!Ee||(me=!1,Ee.length?ye=Ee.concat(ye):cr=-1,ye.length&&$r())}function $r(){if(!me){var ur=ve(Br);me=!0;for(var jr=ye.length;jr;){for(Ee=ye,ye=[];++cr1)for(var Mr=1;Mr0)throw new Error("Invalid string. Length must be a multiple of 4");var Ar=$r.indexOf("=");Ar===-1&&(Ar=Pr);var ur=Ar===Pr?0:4-Ar%4;return[Ar,ur]}function pe($r){var Pr=ve($r),Ar=Pr[0],ur=Pr[1];return(Ar+ur)*3/4-ur}function ye($r,Pr,Ar){return(Pr+Ar)*3/4-Ar}function me($r){var Pr,Ar=ve($r),ur=Ar[0],jr=Ar[1],Mr=new ae(ye($r,ur,jr)),Lr=0,Vr=jr>0?ur-4:ur,Gr;for(Gr=0;Gr>16&255,Mr[Lr++]=Pr>>8&255,Mr[Lr++]=Pr&255;return jr===2&&(Pr=ie[$r.charCodeAt(Gr)]<<2|ie[$r.charCodeAt(Gr+1)]>>4,Mr[Lr++]=Pr&255),jr===1&&(Pr=ie[$r.charCodeAt(Gr)]<<10|ie[$r.charCodeAt(Gr+1)]<<4|ie[$r.charCodeAt(Gr+2)]>>2,Mr[Lr++]=Pr>>8&255,Mr[Lr++]=Pr&255),Mr}function Ee($r){return k[$r>>18&63]+k[$r>>12&63]+k[$r>>6&63]+k[$r&63]}function cr($r,Pr,Ar){for(var ur,jr=[],Mr=Pr;MrVr?Vr:Lr+Mr));return ur===1?(Pr=$r[Ar-1],jr.push(k[Pr>>2]+k[Pr<<4&63]+"==")):ur===2&&(Pr=($r[Ar-2]<<8)+$r[Ar-1],jr.push(k[Pr>>10]+k[Pr>>4&63]+k[Pr<<2&63]+"=")),jr.join("")}}}),require_ieee754$1=__commonJS$1({"node_modules/ieee754/index.js"(v){v.read=function(k,ie,ae,ce,fe){var le,ve,pe=fe*8-ce-1,ye=(1<>1,Ee=-7,cr=ae?fe-1:0,Br=ae?-1:1,$r=k[ie+cr];for(cr+=Br,le=$r&(1<<-Ee)-1,$r>>=-Ee,Ee+=pe;Ee>0;le=le*256+k[ie+cr],cr+=Br,Ee-=8);for(ve=le&(1<<-Ee)-1,le>>=-Ee,Ee+=ce;Ee>0;ve=ve*256+k[ie+cr],cr+=Br,Ee-=8);if(le===0)le=1-me;else{if(le===ye)return ve?NaN:($r?-1:1)*(1/0);ve=ve+Math.pow(2,ce),le=le-me}return($r?-1:1)*ve*Math.pow(2,le-ce)},v.write=function(k,ie,ae,ce,fe,le){var ve,pe,ye,me=le*8-fe-1,Ee=(1<>1,Br=fe===23?Math.pow(2,-24)-Math.pow(2,-77):0,$r=ce?0:le-1,Pr=ce?1:-1,Ar=ie<0||ie===0&&1/ie<0?1:0;for(ie=Math.abs(ie),isNaN(ie)||ie===1/0?(pe=isNaN(ie)?1:0,ve=Ee):(ve=Math.floor(Math.log(ie)/Math.LN2),ie*(ye=Math.pow(2,-ve))<1&&(ve--,ye*=2),ve+cr>=1?ie+=Br/ye:ie+=Br*Math.pow(2,1-cr),ie*ye>=2&&(ve++,ye/=2),ve+cr>=Ee?(pe=0,ve=Ee):ve+cr>=1?(pe=(ie*ye-1)*Math.pow(2,fe),ve=ve+cr):(pe=ie*Math.pow(2,cr-1)*Math.pow(2,fe),ve=0));fe>=8;k[ae+$r]=pe&255,$r+=Pr,pe/=256,fe-=8);for(ve=ve<0;k[ae+$r]=ve&255,$r+=Pr,ve/=256,me-=8);k[ae+$r-Pr]|=Ar*128}}}),require_buffer$1=__commonJS$1({"node_modules/buffer/index.js"(v){var k=require_base64_js$1(),ie=require_ieee754$1(),ae=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;v.Buffer=ve,v.SlowBuffer=jr,v.INSPECT_MAX_BYTES=50;var ce=2147483647;v.kMaxLength=ce,ve.TYPED_ARRAY_SUPPORT=fe(),!ve.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function fe(){try{const En=new Uint8Array(1),Bt={foo:function(){return 42}};return Object.setPrototypeOf(Bt,Uint8Array.prototype),Object.setPrototypeOf(En,Bt),En.foo()===42}catch{return!1}}Object.defineProperty(ve.prototype,"parent",{enumerable:!0,get:function(){if(!!ve.isBuffer(this))return this.buffer}}),Object.defineProperty(ve.prototype,"offset",{enumerable:!0,get:function(){if(!!ve.isBuffer(this))return this.byteOffset}});function le(En){if(En>ce)throw new RangeError('The value "'+En+'" is invalid for option "size"');const Bt=new Uint8Array(En);return Object.setPrototypeOf(Bt,ve.prototype),Bt}function ve(En,Bt,Zt){if(typeof En=="number"){if(typeof Bt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ee(En)}return pe(En,Bt,Zt)}ve.poolSize=8192;function pe(En,Bt,Zt){if(typeof En=="string")return cr(En,Bt);if(ArrayBuffer.isView(En))return $r(En);if(En==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof En);if(li(En,ArrayBuffer)||En&&li(En.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(li(En,SharedArrayBuffer)||En&&li(En.buffer,SharedArrayBuffer)))return Pr(En,Bt,Zt);if(typeof En=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Tn=En.valueOf&&En.valueOf();if(Tn!=null&&Tn!==En)return ve.from(Tn,Bt,Zt);const ei=Ar(En);if(ei)return ei;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof En[Symbol.toPrimitive]=="function")return ve.from(En[Symbol.toPrimitive]("string"),Bt,Zt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof En)}ve.from=function(En,Bt,Zt){return pe(En,Bt,Zt)},Object.setPrototypeOf(ve.prototype,Uint8Array.prototype),Object.setPrototypeOf(ve,Uint8Array);function ye(En){if(typeof En!="number")throw new TypeError('"size" argument must be of type number');if(En<0)throw new RangeError('The value "'+En+'" is invalid for option "size"')}function me(En,Bt,Zt){return ye(En),En<=0?le(En):Bt!==void 0?typeof Zt=="string"?le(En).fill(Bt,Zt):le(En).fill(Bt):le(En)}ve.alloc=function(En,Bt,Zt){return me(En,Bt,Zt)};function Ee(En){return ye(En),le(En<0?0:ur(En)|0)}ve.allocUnsafe=function(En){return Ee(En)},ve.allocUnsafeSlow=function(En){return Ee(En)};function cr(En,Bt){if((typeof Bt!="string"||Bt==="")&&(Bt="utf8"),!ve.isEncoding(Bt))throw new TypeError("Unknown encoding: "+Bt);const Zt=Mr(En,Bt)|0;let Tn=le(Zt);const ei=Tn.write(En,Bt);return ei!==Zt&&(Tn=Tn.slice(0,ei)),Tn}function Br(En){const Bt=En.length<0?0:ur(En.length)|0,Zt=le(Bt);for(let Tn=0;Tn=ce)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ce.toString(16)+" bytes");return En|0}function jr(En){return+En!=En&&(En=0),ve.alloc(+En)}ve.isBuffer=function(Bt){return Bt!=null&&Bt._isBuffer===!0&&Bt!==ve.prototype},ve.compare=function(Bt,Zt){if(li(Bt,Uint8Array)&&(Bt=ve.from(Bt,Bt.offset,Bt.byteLength)),li(Zt,Uint8Array)&&(Zt=ve.from(Zt,Zt.offset,Zt.byteLength)),!ve.isBuffer(Bt)||!ve.isBuffer(Zt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Bt===Zt)return 0;let Tn=Bt.length,ei=Zt.length;for(let zn=0,gn=Math.min(Tn,ei);znei.length?(ve.isBuffer(gn)||(gn=ve.from(gn)),gn.copy(ei,zn)):Uint8Array.prototype.set.call(ei,gn,zn);else if(ve.isBuffer(gn))gn.copy(ei,zn);else throw new TypeError('"list" argument must be an Array of Buffers');zn+=gn.length}return ei};function Mr(En,Bt){if(ve.isBuffer(En))return En.length;if(ArrayBuffer.isView(En)||li(En,ArrayBuffer))return En.byteLength;if(typeof En!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof En);const Zt=En.length,Tn=arguments.length>2&&arguments[2]===!0;if(!Tn&&Zt===0)return 0;let ei=!1;for(;;)switch(Bt){case"ascii":case"latin1":case"binary":return Zt;case"utf8":case"utf-8":return ui(En).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zt*2;case"hex":return Zt>>>1;case"base64":return Ci(En).length;default:if(ei)return Tn?-1:ui(En).length;Bt=(""+Bt).toLowerCase(),ei=!0}}ve.byteLength=Mr;function Lr(En,Bt,Zt){let Tn=!1;if((Bt===void 0||Bt<0)&&(Bt=0),Bt>this.length||((Zt===void 0||Zt>this.length)&&(Zt=this.length),Zt<=0)||(Zt>>>=0,Bt>>>=0,Zt<=Bt))return"";for(En||(En="utf8");;)switch(En){case"hex":return Jt(this,Bt,Zt);case"utf8":case"utf-8":return Kr(this,Bt,Zt);case"ascii":return xr(this,Bt,Zt);case"latin1":case"binary":return Wr(this,Bt,Zt);case"base64":return Xt(this,Bt,Zt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xr(this,Bt,Zt);default:if(Tn)throw new TypeError("Unknown encoding: "+En);En=(En+"").toLowerCase(),Tn=!0}}ve.prototype._isBuffer=!0;function Vr(En,Bt,Zt){const Tn=En[Bt];En[Bt]=En[Zt],En[Zt]=Tn}ve.prototype.swap16=function(){const Bt=this.length;if(Bt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Zt=0;ZtZt&&(Bt+=" ... "),""},ae&&(ve.prototype[ae]=ve.prototype.inspect),ve.prototype.compare=function(Bt,Zt,Tn,ei,zn){if(li(Bt,Uint8Array)&&(Bt=ve.from(Bt,Bt.offset,Bt.byteLength)),!ve.isBuffer(Bt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Bt);if(Zt===void 0&&(Zt=0),Tn===void 0&&(Tn=Bt?Bt.length:0),ei===void 0&&(ei=0),zn===void 0&&(zn=this.length),Zt<0||Tn>Bt.length||ei<0||zn>this.length)throw new RangeError("out of range index");if(ei>=zn&&Zt>=Tn)return 0;if(ei>=zn)return-1;if(Zt>=Tn)return 1;if(Zt>>>=0,Tn>>>=0,ei>>>=0,zn>>>=0,this===Bt)return 0;let gn=zn-ei,xn=Tn-Zt;const Hn=Math.min(gn,xn),Ln=this.slice(ei,zn),ti=Bt.slice(Zt,Tn);for(let oi=0;oi2147483647?Zt=2147483647:Zt<-2147483648&&(Zt=-2147483648),Zt=+Zt,Pi(Zt)&&(Zt=ei?0:En.length-1),Zt<0&&(Zt=En.length+Zt),Zt>=En.length){if(ei)return-1;Zt=En.length-1}else if(Zt<0)if(ei)Zt=0;else return-1;if(typeof Bt=="string"&&(Bt=ve.from(Bt,Tn)),ve.isBuffer(Bt))return Bt.length===0?-1:Ur(En,Bt,Zt,Tn,ei);if(typeof Bt=="number")return Bt=Bt&255,typeof Uint8Array.prototype.indexOf=="function"?ei?Uint8Array.prototype.indexOf.call(En,Bt,Zt):Uint8Array.prototype.lastIndexOf.call(En,Bt,Zt):Ur(En,[Bt],Zt,Tn,ei);throw new TypeError("val must be string, number or Buffer")}function Ur(En,Bt,Zt,Tn,ei){let zn=1,gn=En.length,xn=Bt.length;if(Tn!==void 0&&(Tn=String(Tn).toLowerCase(),Tn==="ucs2"||Tn==="ucs-2"||Tn==="utf16le"||Tn==="utf-16le")){if(En.length<2||Bt.length<2)return-1;zn=2,gn/=2,xn/=2,Zt/=2}function Hn(ti,oi){return zn===1?ti[oi]:ti.readUInt16BE(oi*zn)}let Ln;if(ei){let ti=-1;for(Ln=Zt;Lngn&&(Zt=gn-xn),Ln=Zt;Ln>=0;Ln--){let ti=!0;for(let oi=0;oiei&&(Tn=ei)):Tn=ei;const zn=Bt.length;Tn>zn/2&&(Tn=zn/2);let gn;for(gn=0;gn>>0,isFinite(Tn)?(Tn=Tn>>>0,ei===void 0&&(ei="utf8")):(ei=Tn,Tn=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const zn=this.length-Zt;if((Tn===void 0||Tn>zn)&&(Tn=zn),Bt.length>0&&(Tn<0||Zt<0)||Zt>this.length)throw new RangeError("Attempt to write outside buffer bounds");ei||(ei="utf8");let gn=!1;for(;;)switch(ei){case"hex":return Qr(this,Bt,Zt,Tn);case"utf8":case"utf-8":return hn(this,Bt,Zt,Tn);case"ascii":case"latin1":case"binary":return Yt(this,Bt,Zt,Tn);case"base64":return fn(this,Bt,Zt,Tn);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qt(this,Bt,Zt,Tn);default:if(gn)throw new TypeError("Unknown encoding: "+ei);ei=(""+ei).toLowerCase(),gn=!0}},ve.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Xt(En,Bt,Zt){return Bt===0&&Zt===En.length?k.fromByteArray(En):k.fromByteArray(En.slice(Bt,Zt))}function Kr(En,Bt,Zt){Zt=Math.min(En.length,Zt);const Tn=[];let ei=Bt;for(;ei239?4:zn>223?3:zn>191?2:1;if(ei+xn<=Zt){let Hn,Ln,ti,oi;switch(xn){case 1:zn<128&&(gn=zn);break;case 2:Hn=En[ei+1],(Hn&192)===128&&(oi=(zn&31)<<6|Hn&63,oi>127&&(gn=oi));break;case 3:Hn=En[ei+1],Ln=En[ei+2],(Hn&192)===128&&(Ln&192)===128&&(oi=(zn&15)<<12|(Hn&63)<<6|Ln&63,oi>2047&&(oi<55296||oi>57343)&&(gn=oi));break;case 4:Hn=En[ei+1],Ln=En[ei+2],ti=En[ei+3],(Hn&192)===128&&(Ln&192)===128&&(ti&192)===128&&(oi=(zn&15)<<18|(Hn&63)<<12|(Ln&63)<<6|ti&63,oi>65535&&oi<1114112&&(gn=oi))}}gn===null?(gn=65533,xn=1):gn>65535&&(gn-=65536,Tn.push(gn>>>10&1023|55296),gn=56320|gn&1023),Tn.push(gn),ei+=xn}return kr(Tn)}var be=4096;function kr(En){const Bt=En.length;if(Bt<=be)return String.fromCharCode.apply(String,En);let Zt="",Tn=0;for(;TnTn)&&(Zt=Tn);let ei="";for(let zn=Bt;znTn&&(Bt=Tn),Zt<0?(Zt+=Tn,Zt<0&&(Zt=0)):Zt>Tn&&(Zt=Tn),ZtZt)throw new RangeError("Trying to access beyond buffer length")}ve.prototype.readUintLE=ve.prototype.readUIntLE=function(Bt,Zt,Tn){Bt=Bt>>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=this[Bt],zn=1,gn=0;for(;++gn>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=this[Bt+--Zt],zn=1;for(;Zt>0&&(zn*=256);)ei+=this[Bt+--Zt]*zn;return ei},ve.prototype.readUint8=ve.prototype.readUInt8=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,1,this.length),this[Bt]},ve.prototype.readUint16LE=ve.prototype.readUInt16LE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,2,this.length),this[Bt]|this[Bt+1]<<8},ve.prototype.readUint16BE=ve.prototype.readUInt16BE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,2,this.length),this[Bt]<<8|this[Bt+1]},ve.prototype.readUint32LE=ve.prototype.readUInt32LE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),(this[Bt]|this[Bt+1]<<8|this[Bt+2]<<16)+this[Bt+3]*16777216},ve.prototype.readUint32BE=ve.prototype.readUInt32BE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),this[Bt]*16777216+(this[Bt+1]<<16|this[Bt+2]<<8|this[Bt+3])},ve.prototype.readBigUInt64LE=Oi(function(Bt){Bt=Bt>>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=Zt+this[++Bt]*2**8+this[++Bt]*2**16+this[++Bt]*2**24,zn=this[++Bt]+this[++Bt]*2**8+this[++Bt]*2**16+Tn*2**24;return BigInt(ei)+(BigInt(zn)<>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=Zt*2**24+this[++Bt]*2**16+this[++Bt]*2**8+this[++Bt],zn=this[++Bt]*2**24+this[++Bt]*2**16+this[++Bt]*2**8+Tn;return(BigInt(ei)<>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=this[Bt],zn=1,gn=0;for(;++gn=zn&&(ei-=Math.pow(2,8*Zt)),ei},ve.prototype.readIntBE=function(Bt,Zt,Tn){Bt=Bt>>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=Zt,zn=1,gn=this[Bt+--ei];for(;ei>0&&(zn*=256);)gn+=this[Bt+--ei]*zn;return zn*=128,gn>=zn&&(gn-=Math.pow(2,8*Zt)),gn},ve.prototype.readInt8=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,1,this.length),this[Bt]&128?(255-this[Bt]+1)*-1:this[Bt]},ve.prototype.readInt16LE=function(Bt,Zt){Bt=Bt>>>0,Zt||zr(Bt,2,this.length);const Tn=this[Bt]|this[Bt+1]<<8;return Tn&32768?Tn|4294901760:Tn},ve.prototype.readInt16BE=function(Bt,Zt){Bt=Bt>>>0,Zt||zr(Bt,2,this.length);const Tn=this[Bt+1]|this[Bt]<<8;return Tn&32768?Tn|4294901760:Tn},ve.prototype.readInt32LE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),this[Bt]|this[Bt+1]<<8|this[Bt+2]<<16|this[Bt+3]<<24},ve.prototype.readInt32BE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),this[Bt]<<24|this[Bt+1]<<16|this[Bt+2]<<8|this[Bt+3]},ve.prototype.readBigInt64LE=Oi(function(Bt){Bt=Bt>>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=this[Bt+4]+this[Bt+5]*2**8+this[Bt+6]*2**16+(Tn<<24);return(BigInt(ei)<>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=(Zt<<24)+this[++Bt]*2**16+this[++Bt]*2**8+this[++Bt];return(BigInt(ei)<>>0,Zt||zr(Bt,4,this.length),ie.read(this,Bt,!0,23,4)},ve.prototype.readFloatBE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),ie.read(this,Bt,!1,23,4)},ve.prototype.readDoubleLE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,8,this.length),ie.read(this,Bt,!0,52,8)},ve.prototype.readDoubleBE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,8,this.length),ie.read(this,Bt,!1,52,8)};function Jr(En,Bt,Zt,Tn,ei,zn){if(!ve.isBuffer(En))throw new TypeError('"buffer" argument must be a Buffer instance');if(Bt>ei||BtEn.length)throw new RangeError("Index out of range")}ve.prototype.writeUintLE=ve.prototype.writeUIntLE=function(Bt,Zt,Tn,ei){if(Bt=+Bt,Zt=Zt>>>0,Tn=Tn>>>0,!ei){const xn=Math.pow(2,8*Tn)-1;Jr(this,Bt,Zt,Tn,xn,0)}let zn=1,gn=0;for(this[Zt]=Bt&255;++gn>>0,Tn=Tn>>>0,!ei){const xn=Math.pow(2,8*Tn)-1;Jr(this,Bt,Zt,Tn,xn,0)}let zn=Tn-1,gn=1;for(this[Zt+zn]=Bt&255;--zn>=0&&(gn*=256);)this[Zt+zn]=Bt/gn&255;return Zt+Tn},ve.prototype.writeUint8=ve.prototype.writeUInt8=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,1,255,0),this[Zt]=Bt&255,Zt+1},ve.prototype.writeUint16LE=ve.prototype.writeUInt16LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,65535,0),this[Zt]=Bt&255,this[Zt+1]=Bt>>>8,Zt+2},ve.prototype.writeUint16BE=ve.prototype.writeUInt16BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,65535,0),this[Zt]=Bt>>>8,this[Zt+1]=Bt&255,Zt+2},ve.prototype.writeUint32LE=ve.prototype.writeUInt32LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,4294967295,0),this[Zt+3]=Bt>>>24,this[Zt+2]=Bt>>>16,this[Zt+1]=Bt>>>8,this[Zt]=Bt&255,Zt+4},ve.prototype.writeUint32BE=ve.prototype.writeUInt32BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,4294967295,0),this[Zt]=Bt>>>24,this[Zt+1]=Bt>>>16,this[Zt+2]=Bt>>>8,this[Zt+3]=Bt&255,Zt+4};function Nr(En,Bt,Zt,Tn,ei){vn(Bt,Tn,ei,En,Zt,7);let zn=Number(Bt&BigInt(4294967295));En[Zt++]=zn,zn=zn>>8,En[Zt++]=zn,zn=zn>>8,En[Zt++]=zn,zn=zn>>8,En[Zt++]=zn;let gn=Number(Bt>>BigInt(32)&BigInt(4294967295));return En[Zt++]=gn,gn=gn>>8,En[Zt++]=gn,gn=gn>>8,En[Zt++]=gn,gn=gn>>8,En[Zt++]=gn,Zt}function Hr(En,Bt,Zt,Tn,ei){vn(Bt,Tn,ei,En,Zt,7);let zn=Number(Bt&BigInt(4294967295));En[Zt+7]=zn,zn=zn>>8,En[Zt+6]=zn,zn=zn>>8,En[Zt+5]=zn,zn=zn>>8,En[Zt+4]=zn;let gn=Number(Bt>>BigInt(32)&BigInt(4294967295));return En[Zt+3]=gn,gn=gn>>8,En[Zt+2]=gn,gn=gn>>8,En[Zt+1]=gn,gn=gn>>8,En[Zt]=gn,Zt+8}ve.prototype.writeBigUInt64LE=Oi(function(Bt,Zt=0){return Nr(this,Bt,Zt,BigInt(0),BigInt("0xffffffffffffffff"))}),ve.prototype.writeBigUInt64BE=Oi(function(Bt,Zt=0){return Hr(this,Bt,Zt,BigInt(0),BigInt("0xffffffffffffffff"))}),ve.prototype.writeIntLE=function(Bt,Zt,Tn,ei){if(Bt=+Bt,Zt=Zt>>>0,!ei){const Hn=Math.pow(2,8*Tn-1);Jr(this,Bt,Zt,Tn,Hn-1,-Hn)}let zn=0,gn=1,xn=0;for(this[Zt]=Bt&255;++zn>0)-xn&255;return Zt+Tn},ve.prototype.writeIntBE=function(Bt,Zt,Tn,ei){if(Bt=+Bt,Zt=Zt>>>0,!ei){const Hn=Math.pow(2,8*Tn-1);Jr(this,Bt,Zt,Tn,Hn-1,-Hn)}let zn=Tn-1,gn=1,xn=0;for(this[Zt+zn]=Bt&255;--zn>=0&&(gn*=256);)Bt<0&&xn===0&&this[Zt+zn+1]!==0&&(xn=1),this[Zt+zn]=(Bt/gn>>0)-xn&255;return Zt+Tn},ve.prototype.writeInt8=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,1,127,-128),Bt<0&&(Bt=255+Bt+1),this[Zt]=Bt&255,Zt+1},ve.prototype.writeInt16LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,32767,-32768),this[Zt]=Bt&255,this[Zt+1]=Bt>>>8,Zt+2},ve.prototype.writeInt16BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,32767,-32768),this[Zt]=Bt>>>8,this[Zt+1]=Bt&255,Zt+2},ve.prototype.writeInt32LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,2147483647,-2147483648),this[Zt]=Bt&255,this[Zt+1]=Bt>>>8,this[Zt+2]=Bt>>>16,this[Zt+3]=Bt>>>24,Zt+4},ve.prototype.writeInt32BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,2147483647,-2147483648),Bt<0&&(Bt=4294967295+Bt+1),this[Zt]=Bt>>>24,this[Zt+1]=Bt>>>16,this[Zt+2]=Bt>>>8,this[Zt+3]=Bt&255,Zt+4},ve.prototype.writeBigInt64LE=Oi(function(Bt,Zt=0){return Nr(this,Bt,Zt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),ve.prototype.writeBigInt64BE=Oi(function(Bt,Zt=0){return Hr(this,Bt,Zt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function On(En,Bt,Zt,Tn,ei,zn){if(Zt+Tn>En.length)throw new RangeError("Index out of range");if(Zt<0)throw new RangeError("Index out of range")}function Gn(En,Bt,Zt,Tn,ei){return Bt=+Bt,Zt=Zt>>>0,ei||On(En,Bt,Zt,4),ie.write(En,Bt,Zt,Tn,23,4),Zt+4}ve.prototype.writeFloatLE=function(Bt,Zt,Tn){return Gn(this,Bt,Zt,!0,Tn)},ve.prototype.writeFloatBE=function(Bt,Zt,Tn){return Gn(this,Bt,Zt,!1,Tn)};function mn(En,Bt,Zt,Tn,ei){return Bt=+Bt,Zt=Zt>>>0,ei||On(En,Bt,Zt,8),ie.write(En,Bt,Zt,Tn,52,8),Zt+8}ve.prototype.writeDoubleLE=function(Bt,Zt,Tn){return mn(this,Bt,Zt,!0,Tn)},ve.prototype.writeDoubleBE=function(Bt,Zt,Tn){return mn(this,Bt,Zt,!1,Tn)},ve.prototype.copy=function(Bt,Zt,Tn,ei){if(!ve.isBuffer(Bt))throw new TypeError("argument should be a Buffer");if(Tn||(Tn=0),!ei&&ei!==0&&(ei=this.length),Zt>=Bt.length&&(Zt=Bt.length),Zt||(Zt=0),ei>0&&ei=this.length)throw new RangeError("Index out of range");if(ei<0)throw new RangeError("sourceEnd out of bounds");ei>this.length&&(ei=this.length),Bt.length-Zt>>0,Tn=Tn===void 0?this.length:Tn>>>0,Bt||(Bt=0);let zn;if(typeof Bt=="number")for(zn=Zt;zn2**32?ei=bn(String(Zt)):typeof Zt=="bigint"&&(ei=String(Zt),(Zt>BigInt(2)**BigInt(32)||Zt<-(BigInt(2)**BigInt(32)))&&(ei=bn(ei)),ei+="n"),Tn+=` It must be ${Bt}. Received ${ei}`,Tn},RangeError);function bn(En){let Bt="",Zt=En.length;const Tn=En[0]==="-"?1:0;for(;Zt>=Tn+4;Zt-=3)Bt=`_${En.slice(Zt-3,Zt)}${Bt}`;return`${En.slice(0,Zt)}${Bt}`}function ii(En,Bt,Zt){pn(Bt,"offset"),(En[Bt]===void 0||En[Bt+Zt]===void 0)&&Sn(Bt,En.length-(Zt+1))}function vn(En,Bt,Zt,Tn,ei,zn){if(En>Zt||En3?Bt===0||Bt===BigInt(0)?xn=`>= 0${gn} and < 2${gn} ** ${(zn+1)*8}${gn}`:xn=`>= -(2${gn} ** ${(zn+1)*8-1}${gn}) and < 2 ** ${(zn+1)*8-1}${gn}`:xn=`>= ${Bt}${gn} and <= ${Zt}${gn}`,new Nn.ERR_OUT_OF_RANGE("value",xn,En)}ii(Tn,ei,zn)}function pn(En,Bt){if(typeof En!="number")throw new Nn.ERR_INVALID_ARG_TYPE(Bt,"number",En)}function Sn(En,Bt,Zt){throw Math.floor(En)!==En?(pn(En,Zt),new Nn.ERR_OUT_OF_RANGE(Zt||"offset","an integer",En)):Bt<0?new Nn.ERR_BUFFER_OUT_OF_BOUNDS:new Nn.ERR_OUT_OF_RANGE(Zt||"offset",`>= ${Zt?1:0} and <= ${Bt}`,En)}var Qn=/[^+/0-9A-Za-z-_]/g;function Jn(En){if(En=En.split("=")[0],En=En.trim().replace(Qn,""),En.length<2)return"";for(;En.length%4!==0;)En=En+"=";return En}function ui(En,Bt){Bt=Bt||1/0;let Zt;const Tn=En.length;let ei=null;const zn=[];for(let gn=0;gn55295&&Zt<57344){if(!ei){if(Zt>56319){(Bt-=3)>-1&&zn.push(239,191,189);continue}else if(gn+1===Tn){(Bt-=3)>-1&&zn.push(239,191,189);continue}ei=Zt;continue}if(Zt<56320){(Bt-=3)>-1&&zn.push(239,191,189),ei=Zt;continue}Zt=(ei-55296<<10|Zt-56320)+65536}else ei&&(Bt-=3)>-1&&zn.push(239,191,189);if(ei=null,Zt<128){if((Bt-=1)<0)break;zn.push(Zt)}else if(Zt<2048){if((Bt-=2)<0)break;zn.push(Zt>>6|192,Zt&63|128)}else if(Zt<65536){if((Bt-=3)<0)break;zn.push(Zt>>12|224,Zt>>6&63|128,Zt&63|128)}else if(Zt<1114112){if((Bt-=4)<0)break;zn.push(Zt>>18|240,Zt>>12&63|128,Zt>>6&63|128,Zt&63|128)}else throw new Error("Invalid code point")}return zn}function gi(En){const Bt=[];for(let Zt=0;Zt>8,ei=Zt%256,zn.push(ei),zn.push(Tn);return zn}function Ci(En){return k.toByteArray(Jn(En))}function yi(En,Bt,Zt,Tn){let ei;for(ei=0;ei=Bt.length||ei>=En.length);++ei)Bt[ei+Zt]=En[ei];return ei}function li(En,Bt){return En instanceof Bt||En!=null&&En.constructor!=null&&En.constructor.name!=null&&En.constructor.name===Bt.name}function Pi(En){return En!==En}var Ai=function(){const En="0123456789abcdef",Bt=new Array(256);for(let Zt=0;Zt<16;++Zt){const Tn=Zt*16;for(let ei=0;ei<16;++ei)Bt[Tn+ei]=En[Zt]+En[ei]}return Bt}();function Oi(En){return typeof BigInt>"u"?to:En}function to(){throw new Error("BigInt not supported")}}});/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - *//*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var buffer_default=require_buffer$1();const process$j=process_default,Buffer$2=buffer_default.Buffer;Object.assign(self,{process:process$j,globalThis:self,Buffer:Buffer$2});const style="",styles="";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__require=(v=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(v,{get:(k,ie)=>(typeof require<"u"?require:k)[ie]}):v)(function(v){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+v+'" is not supported')}),__esm=(v,k)=>function(){return v&&(k=(0,v[__getOwnPropNames(v)[0]])(v=0)),k},__commonJS=(v,k)=>function(){return k||(0,v[__getOwnPropNames(v)[0]])((k={exports:{}}).exports,k),k.exports},__export=(v,k)=>{for(var ie in k)__defProp(v,ie,{get:k[ie],enumerable:!0})},__copyProps=(v,k,ie,ae)=>{if(k&&typeof k=="object"||typeof k=="function")for(let ce of __getOwnPropNames(k))!__hasOwnProp.call(v,ce)&&ce!==ie&&__defProp(v,ce,{get:()=>k[ce],enumerable:!(ae=__getOwnPropDesc(k,ce))||ae.enumerable});return v},__toCommonJS=v=>__copyProps(__defProp({},"__esModule",{value:!0}),v),require_base64_js=__commonJS({"node_modules/base64-js/index.js"(v){v.byteLength=pe,v.toByteArray=me,v.fromByteArray=Br;var k=[],ie=[],ae=typeof Uint8Array<"u"?Uint8Array:Array,ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(fe=0,le=ce.length;fe0)throw new Error("Invalid string. Length must be a multiple of 4");var Or=$r.indexOf("=");Or===-1&&(Or=Pr);var ur=Or===Pr?0:4-Or%4;return[Or,ur]}function pe($r){var Pr=ve($r),Or=Pr[0],ur=Pr[1];return(Or+ur)*3/4-ur}function ye($r,Pr,Or){return(Pr+Or)*3/4-Or}function me($r){var Pr,Or=ve($r),ur=Or[0],jr=Or[1],Mr=new ae(ye($r,ur,jr)),Lr=0,Vr=jr>0?ur-4:ur,Gr;for(Gr=0;Gr>16&255,Mr[Lr++]=Pr>>8&255,Mr[Lr++]=Pr&255;return jr===2&&(Pr=ie[$r.charCodeAt(Gr)]<<2|ie[$r.charCodeAt(Gr+1)]>>4,Mr[Lr++]=Pr&255),jr===1&&(Pr=ie[$r.charCodeAt(Gr)]<<10|ie[$r.charCodeAt(Gr+1)]<<4|ie[$r.charCodeAt(Gr+2)]>>2,Mr[Lr++]=Pr>>8&255,Mr[Lr++]=Pr&255),Mr}function Ee($r){return k[$r>>18&63]+k[$r>>12&63]+k[$r>>6&63]+k[$r&63]}function cr($r,Pr,Or){for(var ur,jr=[],Mr=Pr;MrVr?Vr:Lr+Mr));return ur===1?(Pr=$r[Or-1],jr.push(k[Pr>>2]+k[Pr<<4&63]+"==")):ur===2&&(Pr=($r[Or-2]<<8)+$r[Or-1],jr.push(k[Pr>>10]+k[Pr>>4&63]+k[Pr<<2&63]+"=")),jr.join("")}}}),require_ieee754=__commonJS({"node_modules/ieee754/index.js"(v){v.read=function(k,ie,ae,ce,fe){var le,ve,pe=fe*8-ce-1,ye=(1<>1,Ee=-7,cr=ae?fe-1:0,Br=ae?-1:1,$r=k[ie+cr];for(cr+=Br,le=$r&(1<<-Ee)-1,$r>>=-Ee,Ee+=pe;Ee>0;le=le*256+k[ie+cr],cr+=Br,Ee-=8);for(ve=le&(1<<-Ee)-1,le>>=-Ee,Ee+=ce;Ee>0;ve=ve*256+k[ie+cr],cr+=Br,Ee-=8);if(le===0)le=1-me;else{if(le===ye)return ve?NaN:($r?-1:1)*(1/0);ve=ve+Math.pow(2,ce),le=le-me}return($r?-1:1)*ve*Math.pow(2,le-ce)},v.write=function(k,ie,ae,ce,fe,le){var ve,pe,ye,me=le*8-fe-1,Ee=(1<>1,Br=fe===23?Math.pow(2,-24)-Math.pow(2,-77):0,$r=ce?0:le-1,Pr=ce?1:-1,Or=ie<0||ie===0&&1/ie<0?1:0;for(ie=Math.abs(ie),isNaN(ie)||ie===1/0?(pe=isNaN(ie)?1:0,ve=Ee):(ve=Math.floor(Math.log(ie)/Math.LN2),ie*(ye=Math.pow(2,-ve))<1&&(ve--,ye*=2),ve+cr>=1?ie+=Br/ye:ie+=Br*Math.pow(2,1-cr),ie*ye>=2&&(ve++,ye/=2),ve+cr>=Ee?(pe=0,ve=Ee):ve+cr>=1?(pe=(ie*ye-1)*Math.pow(2,fe),ve=ve+cr):(pe=ie*Math.pow(2,cr-1)*Math.pow(2,fe),ve=0));fe>=8;k[ae+$r]=pe&255,$r+=Pr,pe/=256,fe-=8);for(ve=ve<0;k[ae+$r]=ve&255,$r+=Pr,ve/=256,me-=8);k[ae+$r-Pr]|=Or*128}}}),require_buffer=__commonJS({"node_modules/buffer/index.js"(v){var k=require_base64_js(),ie=require_ieee754(),ae=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;v.Buffer=ve,v.SlowBuffer=jr,v.INSPECT_MAX_BYTES=50;var ce=2147483647;v.kMaxLength=ce,ve.TYPED_ARRAY_SUPPORT=fe(),!ve.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function fe(){try{const En=new Uint8Array(1),Bt={foo:function(){return 42}};return Object.setPrototypeOf(Bt,Uint8Array.prototype),Object.setPrototypeOf(En,Bt),En.foo()===42}catch{return!1}}Object.defineProperty(ve.prototype,"parent",{enumerable:!0,get:function(){if(!!ve.isBuffer(this))return this.buffer}}),Object.defineProperty(ve.prototype,"offset",{enumerable:!0,get:function(){if(!!ve.isBuffer(this))return this.byteOffset}});function le(En){if(En>ce)throw new RangeError('The value "'+En+'" is invalid for option "size"');const Bt=new Uint8Array(En);return Object.setPrototypeOf(Bt,ve.prototype),Bt}function ve(En,Bt,Zt){if(typeof En=="number"){if(typeof Bt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ee(En)}return pe(En,Bt,Zt)}ve.poolSize=8192;function pe(En,Bt,Zt){if(typeof En=="string")return cr(En,Bt);if(ArrayBuffer.isView(En))return $r(En);if(En==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof En);if(li(En,ArrayBuffer)||En&&li(En.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(li(En,SharedArrayBuffer)||En&&li(En.buffer,SharedArrayBuffer)))return Pr(En,Bt,Zt);if(typeof En=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Tn=En.valueOf&&En.valueOf();if(Tn!=null&&Tn!==En)return ve.from(Tn,Bt,Zt);const ei=Or(En);if(ei)return ei;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof En[Symbol.toPrimitive]=="function")return ve.from(En[Symbol.toPrimitive]("string"),Bt,Zt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof En)}ve.from=function(En,Bt,Zt){return pe(En,Bt,Zt)},Object.setPrototypeOf(ve.prototype,Uint8Array.prototype),Object.setPrototypeOf(ve,Uint8Array);function ye(En){if(typeof En!="number")throw new TypeError('"size" argument must be of type number');if(En<0)throw new RangeError('The value "'+En+'" is invalid for option "size"')}function me(En,Bt,Zt){return ye(En),En<=0?le(En):Bt!==void 0?typeof Zt=="string"?le(En).fill(Bt,Zt):le(En).fill(Bt):le(En)}ve.alloc=function(En,Bt,Zt){return me(En,Bt,Zt)};function Ee(En){return ye(En),le(En<0?0:ur(En)|0)}ve.allocUnsafe=function(En){return Ee(En)},ve.allocUnsafeSlow=function(En){return Ee(En)};function cr(En,Bt){if((typeof Bt!="string"||Bt==="")&&(Bt="utf8"),!ve.isEncoding(Bt))throw new TypeError("Unknown encoding: "+Bt);const Zt=Mr(En,Bt)|0;let Tn=le(Zt);const ei=Tn.write(En,Bt);return ei!==Zt&&(Tn=Tn.slice(0,ei)),Tn}function Br(En){const Bt=En.length<0?0:ur(En.length)|0,Zt=le(Bt);for(let Tn=0;Tn=ce)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ce.toString(16)+" bytes");return En|0}function jr(En){return+En!=En&&(En=0),ve.alloc(+En)}ve.isBuffer=function(Bt){return Bt!=null&&Bt._isBuffer===!0&&Bt!==ve.prototype},ve.compare=function(Bt,Zt){if(li(Bt,Uint8Array)&&(Bt=ve.from(Bt,Bt.offset,Bt.byteLength)),li(Zt,Uint8Array)&&(Zt=ve.from(Zt,Zt.offset,Zt.byteLength)),!ve.isBuffer(Bt)||!ve.isBuffer(Zt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Bt===Zt)return 0;let Tn=Bt.length,ei=Zt.length;for(let zn=0,gn=Math.min(Tn,ei);znei.length?(ve.isBuffer(gn)||(gn=ve.from(gn)),gn.copy(ei,zn)):Uint8Array.prototype.set.call(ei,gn,zn);else if(ve.isBuffer(gn))gn.copy(ei,zn);else throw new TypeError('"list" argument must be an Array of Buffers');zn+=gn.length}return ei};function Mr(En,Bt){if(ve.isBuffer(En))return En.length;if(ArrayBuffer.isView(En)||li(En,ArrayBuffer))return En.byteLength;if(typeof En!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof En);const Zt=En.length,Tn=arguments.length>2&&arguments[2]===!0;if(!Tn&&Zt===0)return 0;let ei=!1;for(;;)switch(Bt){case"ascii":case"latin1":case"binary":return Zt;case"utf8":case"utf-8":return ui(En).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zt*2;case"hex":return Zt>>>1;case"base64":return Ci(En).length;default:if(ei)return Tn?-1:ui(En).length;Bt=(""+Bt).toLowerCase(),ei=!0}}ve.byteLength=Mr;function Lr(En,Bt,Zt){let Tn=!1;if((Bt===void 0||Bt<0)&&(Bt=0),Bt>this.length||((Zt===void 0||Zt>this.length)&&(Zt=this.length),Zt<=0)||(Zt>>>=0,Bt>>>=0,Zt<=Bt))return"";for(En||(En="utf8");;)switch(En){case"hex":return Jt(this,Bt,Zt);case"utf8":case"utf-8":return Kr(this,Bt,Zt);case"ascii":return xr(this,Bt,Zt);case"latin1":case"binary":return Wr(this,Bt,Zt);case"base64":return Qt(this,Bt,Zt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xr(this,Bt,Zt);default:if(Tn)throw new TypeError("Unknown encoding: "+En);En=(En+"").toLowerCase(),Tn=!0}}ve.prototype._isBuffer=!0;function Vr(En,Bt,Zt){const Tn=En[Bt];En[Bt]=En[Zt],En[Zt]=Tn}ve.prototype.swap16=function(){const Bt=this.length;if(Bt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Zt=0;ZtZt&&(Bt+=" ... "),""},ae&&(ve.prototype[ae]=ve.prototype.inspect),ve.prototype.compare=function(Bt,Zt,Tn,ei,zn){if(li(Bt,Uint8Array)&&(Bt=ve.from(Bt,Bt.offset,Bt.byteLength)),!ve.isBuffer(Bt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Bt);if(Zt===void 0&&(Zt=0),Tn===void 0&&(Tn=Bt?Bt.length:0),ei===void 0&&(ei=0),zn===void 0&&(zn=this.length),Zt<0||Tn>Bt.length||ei<0||zn>this.length)throw new RangeError("out of range index");if(ei>=zn&&Zt>=Tn)return 0;if(ei>=zn)return-1;if(Zt>=Tn)return 1;if(Zt>>>=0,Tn>>>=0,ei>>>=0,zn>>>=0,this===Bt)return 0;let gn=zn-ei,xn=Tn-Zt;const Hn=Math.min(gn,xn),Ln=this.slice(ei,zn),ti=Bt.slice(Zt,Tn);for(let oi=0;oi2147483647?Zt=2147483647:Zt<-2147483648&&(Zt=-2147483648),Zt=+Zt,Pi(Zt)&&(Zt=ei?0:En.length-1),Zt<0&&(Zt=En.length+Zt),Zt>=En.length){if(ei)return-1;Zt=En.length-1}else if(Zt<0)if(ei)Zt=0;else return-1;if(typeof Bt=="string"&&(Bt=ve.from(Bt,Tn)),ve.isBuffer(Bt))return Bt.length===0?-1:Ur(En,Bt,Zt,Tn,ei);if(typeof Bt=="number")return Bt=Bt&255,typeof Uint8Array.prototype.indexOf=="function"?ei?Uint8Array.prototype.indexOf.call(En,Bt,Zt):Uint8Array.prototype.lastIndexOf.call(En,Bt,Zt):Ur(En,[Bt],Zt,Tn,ei);throw new TypeError("val must be string, number or Buffer")}function Ur(En,Bt,Zt,Tn,ei){let zn=1,gn=En.length,xn=Bt.length;if(Tn!==void 0&&(Tn=String(Tn).toLowerCase(),Tn==="ucs2"||Tn==="ucs-2"||Tn==="utf16le"||Tn==="utf-16le")){if(En.length<2||Bt.length<2)return-1;zn=2,gn/=2,xn/=2,Zt/=2}function Hn(ti,oi){return zn===1?ti[oi]:ti.readUInt16BE(oi*zn)}let Ln;if(ei){let ti=-1;for(Ln=Zt;Lngn&&(Zt=gn-xn),Ln=Zt;Ln>=0;Ln--){let ti=!0;for(let oi=0;oiei&&(Tn=ei)):Tn=ei;const zn=Bt.length;Tn>zn/2&&(Tn=zn/2);let gn;for(gn=0;gn>>0,isFinite(Tn)?(Tn=Tn>>>0,ei===void 0&&(ei="utf8")):(ei=Tn,Tn=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const zn=this.length-Zt;if((Tn===void 0||Tn>zn)&&(Tn=zn),Bt.length>0&&(Tn<0||Zt<0)||Zt>this.length)throw new RangeError("Attempt to write outside buffer bounds");ei||(ei="utf8");let gn=!1;for(;;)switch(ei){case"hex":return Qr(this,Bt,Zt,Tn);case"utf8":case"utf-8":return vn(this,Bt,Zt,Tn);case"ascii":case"latin1":case"binary":return Yt(this,Bt,Zt,Tn);case"base64":return fn(this,Bt,Zt,Tn);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xt(this,Bt,Zt,Tn);default:if(gn)throw new TypeError("Unknown encoding: "+ei);ei=(""+ei).toLowerCase(),gn=!0}},ve.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Qt(En,Bt,Zt){return Bt===0&&Zt===En.length?k.fromByteArray(En):k.fromByteArray(En.slice(Bt,Zt))}function Kr(En,Bt,Zt){Zt=Math.min(En.length,Zt);const Tn=[];let ei=Bt;for(;ei239?4:zn>223?3:zn>191?2:1;if(ei+xn<=Zt){let Hn,Ln,ti,oi;switch(xn){case 1:zn<128&&(gn=zn);break;case 2:Hn=En[ei+1],(Hn&192)===128&&(oi=(zn&31)<<6|Hn&63,oi>127&&(gn=oi));break;case 3:Hn=En[ei+1],Ln=En[ei+2],(Hn&192)===128&&(Ln&192)===128&&(oi=(zn&15)<<12|(Hn&63)<<6|Ln&63,oi>2047&&(oi<55296||oi>57343)&&(gn=oi));break;case 4:Hn=En[ei+1],Ln=En[ei+2],ti=En[ei+3],(Hn&192)===128&&(Ln&192)===128&&(ti&192)===128&&(oi=(zn&15)<<18|(Hn&63)<<12|(Ln&63)<<6|ti&63,oi>65535&&oi<1114112&&(gn=oi))}}gn===null?(gn=65533,xn=1):gn>65535&&(gn-=65536,Tn.push(gn>>>10&1023|55296),gn=56320|gn&1023),Tn.push(gn),ei+=xn}return kr(Tn)}var be=4096;function kr(En){const Bt=En.length;if(Bt<=be)return String.fromCharCode.apply(String,En);let Zt="",Tn=0;for(;TnTn)&&(Zt=Tn);let ei="";for(let zn=Bt;znTn&&(Bt=Tn),Zt<0?(Zt+=Tn,Zt<0&&(Zt=0)):Zt>Tn&&(Zt=Tn),ZtZt)throw new RangeError("Trying to access beyond buffer length")}ve.prototype.readUintLE=ve.prototype.readUIntLE=function(Bt,Zt,Tn){Bt=Bt>>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=this[Bt],zn=1,gn=0;for(;++gn>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=this[Bt+--Zt],zn=1;for(;Zt>0&&(zn*=256);)ei+=this[Bt+--Zt]*zn;return ei},ve.prototype.readUint8=ve.prototype.readUInt8=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,1,this.length),this[Bt]},ve.prototype.readUint16LE=ve.prototype.readUInt16LE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,2,this.length),this[Bt]|this[Bt+1]<<8},ve.prototype.readUint16BE=ve.prototype.readUInt16BE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,2,this.length),this[Bt]<<8|this[Bt+1]},ve.prototype.readUint32LE=ve.prototype.readUInt32LE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),(this[Bt]|this[Bt+1]<<8|this[Bt+2]<<16)+this[Bt+3]*16777216},ve.prototype.readUint32BE=ve.prototype.readUInt32BE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),this[Bt]*16777216+(this[Bt+1]<<16|this[Bt+2]<<8|this[Bt+3])},ve.prototype.readBigUInt64LE=Oi(function(Bt){Bt=Bt>>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=Zt+this[++Bt]*2**8+this[++Bt]*2**16+this[++Bt]*2**24,zn=this[++Bt]+this[++Bt]*2**8+this[++Bt]*2**16+Tn*2**24;return BigInt(ei)+(BigInt(zn)<>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=Zt*2**24+this[++Bt]*2**16+this[++Bt]*2**8+this[++Bt],zn=this[++Bt]*2**24+this[++Bt]*2**16+this[++Bt]*2**8+Tn;return(BigInt(ei)<>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=this[Bt],zn=1,gn=0;for(;++gn=zn&&(ei-=Math.pow(2,8*Zt)),ei},ve.prototype.readIntBE=function(Bt,Zt,Tn){Bt=Bt>>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=Zt,zn=1,gn=this[Bt+--ei];for(;ei>0&&(zn*=256);)gn+=this[Bt+--ei]*zn;return zn*=128,gn>=zn&&(gn-=Math.pow(2,8*Zt)),gn},ve.prototype.readInt8=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,1,this.length),this[Bt]&128?(255-this[Bt]+1)*-1:this[Bt]},ve.prototype.readInt16LE=function(Bt,Zt){Bt=Bt>>>0,Zt||zr(Bt,2,this.length);const Tn=this[Bt]|this[Bt+1]<<8;return Tn&32768?Tn|4294901760:Tn},ve.prototype.readInt16BE=function(Bt,Zt){Bt=Bt>>>0,Zt||zr(Bt,2,this.length);const Tn=this[Bt+1]|this[Bt]<<8;return Tn&32768?Tn|4294901760:Tn},ve.prototype.readInt32LE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),this[Bt]|this[Bt+1]<<8|this[Bt+2]<<16|this[Bt+3]<<24},ve.prototype.readInt32BE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),this[Bt]<<24|this[Bt+1]<<16|this[Bt+2]<<8|this[Bt+3]},ve.prototype.readBigInt64LE=Oi(function(Bt){Bt=Bt>>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=this[Bt+4]+this[Bt+5]*2**8+this[Bt+6]*2**16+(Tn<<24);return(BigInt(ei)<>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=(Zt<<24)+this[++Bt]*2**16+this[++Bt]*2**8+this[++Bt];return(BigInt(ei)<>>0,Zt||zr(Bt,4,this.length),ie.read(this,Bt,!0,23,4)},ve.prototype.readFloatBE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),ie.read(this,Bt,!1,23,4)},ve.prototype.readDoubleLE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,8,this.length),ie.read(this,Bt,!0,52,8)},ve.prototype.readDoubleBE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,8,this.length),ie.read(this,Bt,!1,52,8)};function Jr(En,Bt,Zt,Tn,ei,zn){if(!ve.isBuffer(En))throw new TypeError('"buffer" argument must be a Buffer instance');if(Bt>ei||BtEn.length)throw new RangeError("Index out of range")}ve.prototype.writeUintLE=ve.prototype.writeUIntLE=function(Bt,Zt,Tn,ei){if(Bt=+Bt,Zt=Zt>>>0,Tn=Tn>>>0,!ei){const xn=Math.pow(2,8*Tn)-1;Jr(this,Bt,Zt,Tn,xn,0)}let zn=1,gn=0;for(this[Zt]=Bt&255;++gn>>0,Tn=Tn>>>0,!ei){const xn=Math.pow(2,8*Tn)-1;Jr(this,Bt,Zt,Tn,xn,0)}let zn=Tn-1,gn=1;for(this[Zt+zn]=Bt&255;--zn>=0&&(gn*=256);)this[Zt+zn]=Bt/gn&255;return Zt+Tn},ve.prototype.writeUint8=ve.prototype.writeUInt8=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,1,255,0),this[Zt]=Bt&255,Zt+1},ve.prototype.writeUint16LE=ve.prototype.writeUInt16LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,65535,0),this[Zt]=Bt&255,this[Zt+1]=Bt>>>8,Zt+2},ve.prototype.writeUint16BE=ve.prototype.writeUInt16BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,65535,0),this[Zt]=Bt>>>8,this[Zt+1]=Bt&255,Zt+2},ve.prototype.writeUint32LE=ve.prototype.writeUInt32LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,4294967295,0),this[Zt+3]=Bt>>>24,this[Zt+2]=Bt>>>16,this[Zt+1]=Bt>>>8,this[Zt]=Bt&255,Zt+4},ve.prototype.writeUint32BE=ve.prototype.writeUInt32BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,4294967295,0),this[Zt]=Bt>>>24,this[Zt+1]=Bt>>>16,this[Zt+2]=Bt>>>8,this[Zt+3]=Bt&255,Zt+4};function Nr(En,Bt,Zt,Tn,ei){hn(Bt,Tn,ei,En,Zt,7);let zn=Number(Bt&BigInt(4294967295));En[Zt++]=zn,zn=zn>>8,En[Zt++]=zn,zn=zn>>8,En[Zt++]=zn,zn=zn>>8,En[Zt++]=zn;let gn=Number(Bt>>BigInt(32)&BigInt(4294967295));return En[Zt++]=gn,gn=gn>>8,En[Zt++]=gn,gn=gn>>8,En[Zt++]=gn,gn=gn>>8,En[Zt++]=gn,Zt}function Hr(En,Bt,Zt,Tn,ei){hn(Bt,Tn,ei,En,Zt,7);let zn=Number(Bt&BigInt(4294967295));En[Zt+7]=zn,zn=zn>>8,En[Zt+6]=zn,zn=zn>>8,En[Zt+5]=zn,zn=zn>>8,En[Zt+4]=zn;let gn=Number(Bt>>BigInt(32)&BigInt(4294967295));return En[Zt+3]=gn,gn=gn>>8,En[Zt+2]=gn,gn=gn>>8,En[Zt+1]=gn,gn=gn>>8,En[Zt]=gn,Zt+8}ve.prototype.writeBigUInt64LE=Oi(function(Bt,Zt=0){return Nr(this,Bt,Zt,BigInt(0),BigInt("0xffffffffffffffff"))}),ve.prototype.writeBigUInt64BE=Oi(function(Bt,Zt=0){return Hr(this,Bt,Zt,BigInt(0),BigInt("0xffffffffffffffff"))}),ve.prototype.writeIntLE=function(Bt,Zt,Tn,ei){if(Bt=+Bt,Zt=Zt>>>0,!ei){const Hn=Math.pow(2,8*Tn-1);Jr(this,Bt,Zt,Tn,Hn-1,-Hn)}let zn=0,gn=1,xn=0;for(this[Zt]=Bt&255;++zn>0)-xn&255;return Zt+Tn},ve.prototype.writeIntBE=function(Bt,Zt,Tn,ei){if(Bt=+Bt,Zt=Zt>>>0,!ei){const Hn=Math.pow(2,8*Tn-1);Jr(this,Bt,Zt,Tn,Hn-1,-Hn)}let zn=Tn-1,gn=1,xn=0;for(this[Zt+zn]=Bt&255;--zn>=0&&(gn*=256);)Bt<0&&xn===0&&this[Zt+zn+1]!==0&&(xn=1),this[Zt+zn]=(Bt/gn>>0)-xn&255;return Zt+Tn},ve.prototype.writeInt8=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,1,127,-128),Bt<0&&(Bt=255+Bt+1),this[Zt]=Bt&255,Zt+1},ve.prototype.writeInt16LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,32767,-32768),this[Zt]=Bt&255,this[Zt+1]=Bt>>>8,Zt+2},ve.prototype.writeInt16BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,32767,-32768),this[Zt]=Bt>>>8,this[Zt+1]=Bt&255,Zt+2},ve.prototype.writeInt32LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,2147483647,-2147483648),this[Zt]=Bt&255,this[Zt+1]=Bt>>>8,this[Zt+2]=Bt>>>16,this[Zt+3]=Bt>>>24,Zt+4},ve.prototype.writeInt32BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,2147483647,-2147483648),Bt<0&&(Bt=4294967295+Bt+1),this[Zt]=Bt>>>24,this[Zt+1]=Bt>>>16,this[Zt+2]=Bt>>>8,this[Zt+3]=Bt&255,Zt+4},ve.prototype.writeBigInt64LE=Oi(function(Bt,Zt=0){return Nr(this,Bt,Zt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),ve.prototype.writeBigInt64BE=Oi(function(Bt,Zt=0){return Hr(this,Bt,Zt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function On(En,Bt,Zt,Tn,ei,zn){if(Zt+Tn>En.length)throw new RangeError("Index out of range");if(Zt<0)throw new RangeError("Index out of range")}function Gn(En,Bt,Zt,Tn,ei){return Bt=+Bt,Zt=Zt>>>0,ei||On(En,Bt,Zt,4),ie.write(En,Bt,Zt,Tn,23,4),Zt+4}ve.prototype.writeFloatLE=function(Bt,Zt,Tn){return Gn(this,Bt,Zt,!0,Tn)},ve.prototype.writeFloatBE=function(Bt,Zt,Tn){return Gn(this,Bt,Zt,!1,Tn)};function mn(En,Bt,Zt,Tn,ei){return Bt=+Bt,Zt=Zt>>>0,ei||On(En,Bt,Zt,8),ie.write(En,Bt,Zt,Tn,52,8),Zt+8}ve.prototype.writeDoubleLE=function(Bt,Zt,Tn){return mn(this,Bt,Zt,!0,Tn)},ve.prototype.writeDoubleBE=function(Bt,Zt,Tn){return mn(this,Bt,Zt,!1,Tn)},ve.prototype.copy=function(Bt,Zt,Tn,ei){if(!ve.isBuffer(Bt))throw new TypeError("argument should be a Buffer");if(Tn||(Tn=0),!ei&&ei!==0&&(ei=this.length),Zt>=Bt.length&&(Zt=Bt.length),Zt||(Zt=0),ei>0&&ei=this.length)throw new RangeError("Index out of range");if(ei<0)throw new RangeError("sourceEnd out of bounds");ei>this.length&&(ei=this.length),Bt.length-Zt>>0,Tn=Tn===void 0?this.length:Tn>>>0,Bt||(Bt=0);let zn;if(typeof Bt=="number")for(zn=Zt;zn2**32?ei=bn(String(Zt)):typeof Zt=="bigint"&&(ei=String(Zt),(Zt>BigInt(2)**BigInt(32)||Zt<-(BigInt(2)**BigInt(32)))&&(ei=bn(ei)),ei+="n"),Tn+=` It must be ${Bt}. Received ${ei}`,Tn},RangeError);function bn(En){let Bt="",Zt=En.length;const Tn=En[0]==="-"?1:0;for(;Zt>=Tn+4;Zt-=3)Bt=`_${En.slice(Zt-3,Zt)}${Bt}`;return`${En.slice(0,Zt)}${Bt}`}function ii(En,Bt,Zt){pn(Bt,"offset"),(En[Bt]===void 0||En[Bt+Zt]===void 0)&&Sn(Bt,En.length-(Zt+1))}function hn(En,Bt,Zt,Tn,ei,zn){if(En>Zt||En3?Bt===0||Bt===BigInt(0)?xn=`>= 0${gn} and < 2${gn} ** ${(zn+1)*8}${gn}`:xn=`>= -(2${gn} ** ${(zn+1)*8-1}${gn}) and < 2 ** ${(zn+1)*8-1}${gn}`:xn=`>= ${Bt}${gn} and <= ${Zt}${gn}`,new Nn.ERR_OUT_OF_RANGE("value",xn,En)}ii(Tn,ei,zn)}function pn(En,Bt){if(typeof En!="number")throw new Nn.ERR_INVALID_ARG_TYPE(Bt,"number",En)}function Sn(En,Bt,Zt){throw Math.floor(En)!==En?(pn(En,Zt),new Nn.ERR_OUT_OF_RANGE(Zt||"offset","an integer",En)):Bt<0?new Nn.ERR_BUFFER_OUT_OF_BOUNDS:new Nn.ERR_OUT_OF_RANGE(Zt||"offset",`>= ${Zt?1:0} and <= ${Bt}`,En)}var Qn=/[^+/0-9A-Za-z-_]/g;function Jn(En){if(En=En.split("=")[0],En=En.trim().replace(Qn,""),En.length<2)return"";for(;En.length%4!==0;)En=En+"=";return En}function ui(En,Bt){Bt=Bt||1/0;let Zt;const Tn=En.length;let ei=null;const zn=[];for(let gn=0;gn55295&&Zt<57344){if(!ei){if(Zt>56319){(Bt-=3)>-1&&zn.push(239,191,189);continue}else if(gn+1===Tn){(Bt-=3)>-1&&zn.push(239,191,189);continue}ei=Zt;continue}if(Zt<56320){(Bt-=3)>-1&&zn.push(239,191,189),ei=Zt;continue}Zt=(ei-55296<<10|Zt-56320)+65536}else ei&&(Bt-=3)>-1&&zn.push(239,191,189);if(ei=null,Zt<128){if((Bt-=1)<0)break;zn.push(Zt)}else if(Zt<2048){if((Bt-=2)<0)break;zn.push(Zt>>6|192,Zt&63|128)}else if(Zt<65536){if((Bt-=3)<0)break;zn.push(Zt>>12|224,Zt>>6&63|128,Zt&63|128)}else if(Zt<1114112){if((Bt-=4)<0)break;zn.push(Zt>>18|240,Zt>>12&63|128,Zt>>6&63|128,Zt&63|128)}else throw new Error("Invalid code point")}return zn}function gi(En){const Bt=[];for(let Zt=0;Zt>8,ei=Zt%256,zn.push(ei),zn.push(Tn);return zn}function Ci(En){return k.toByteArray(Jn(En))}function yi(En,Bt,Zt,Tn){let ei;for(ei=0;ei=Bt.length||ei>=En.length);++ei)Bt[ei+Zt]=En[ei];return ei}function li(En,Bt){return En instanceof Bt||En!=null&&En.constructor!=null&&En.constructor.name!=null&&En.constructor.name===Bt.name}function Pi(En){return En!==En}var Ai=function(){const En="0123456789abcdef",Bt=new Array(256);for(let Zt=0;Zt<16;++Zt){const Tn=Zt*16;for(let ei=0;ei<16;++ei)Bt[Tn+ei]=En[Zt]+En[ei]}return Bt}();function Oi(En){return typeof BigInt>"u"?to:En}function to(){throw new Error("BigInt not supported")}}});/*! + *//*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var buffer_default=require_buffer$1();const process$j=process_default,Buffer$2=buffer_default.Buffer;Object.assign(self,{process:process$j,globalThis:self,Buffer:Buffer$2});const style="",styles="";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__require=(v=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(v,{get:(k,ie)=>(typeof require<"u"?require:k)[ie]}):v)(function(v){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+v+'" is not supported')}),__esm=(v,k)=>function(){return v&&(k=(0,v[__getOwnPropNames(v)[0]])(v=0)),k},__commonJS=(v,k)=>function(){return k||(0,v[__getOwnPropNames(v)[0]])((k={exports:{}}).exports,k),k.exports},__export=(v,k)=>{for(var ie in k)__defProp(v,ie,{get:k[ie],enumerable:!0})},__copyProps=(v,k,ie,ae)=>{if(k&&typeof k=="object"||typeof k=="function")for(let ce of __getOwnPropNames(k))!__hasOwnProp.call(v,ce)&&ce!==ie&&__defProp(v,ce,{get:()=>k[ce],enumerable:!(ae=__getOwnPropDesc(k,ce))||ae.enumerable});return v},__toCommonJS=v=>__copyProps(__defProp({},"__esModule",{value:!0}),v),require_base64_js=__commonJS({"node_modules/base64-js/index.js"(v){v.byteLength=pe,v.toByteArray=me,v.fromByteArray=Br;var k=[],ie=[],ae=typeof Uint8Array<"u"?Uint8Array:Array,ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(fe=0,le=ce.length;fe0)throw new Error("Invalid string. Length must be a multiple of 4");var Ar=$r.indexOf("=");Ar===-1&&(Ar=Pr);var ur=Ar===Pr?0:4-Ar%4;return[Ar,ur]}function pe($r){var Pr=ve($r),Ar=Pr[0],ur=Pr[1];return(Ar+ur)*3/4-ur}function ye($r,Pr,Ar){return(Pr+Ar)*3/4-Ar}function me($r){var Pr,Ar=ve($r),ur=Ar[0],jr=Ar[1],Mr=new ae(ye($r,ur,jr)),Lr=0,Vr=jr>0?ur-4:ur,Gr;for(Gr=0;Gr>16&255,Mr[Lr++]=Pr>>8&255,Mr[Lr++]=Pr&255;return jr===2&&(Pr=ie[$r.charCodeAt(Gr)]<<2|ie[$r.charCodeAt(Gr+1)]>>4,Mr[Lr++]=Pr&255),jr===1&&(Pr=ie[$r.charCodeAt(Gr)]<<10|ie[$r.charCodeAt(Gr+1)]<<4|ie[$r.charCodeAt(Gr+2)]>>2,Mr[Lr++]=Pr>>8&255,Mr[Lr++]=Pr&255),Mr}function Ee($r){return k[$r>>18&63]+k[$r>>12&63]+k[$r>>6&63]+k[$r&63]}function cr($r,Pr,Ar){for(var ur,jr=[],Mr=Pr;MrVr?Vr:Lr+Mr));return ur===1?(Pr=$r[Ar-1],jr.push(k[Pr>>2]+k[Pr<<4&63]+"==")):ur===2&&(Pr=($r[Ar-2]<<8)+$r[Ar-1],jr.push(k[Pr>>10]+k[Pr>>4&63]+k[Pr<<2&63]+"=")),jr.join("")}}}),require_ieee754=__commonJS({"node_modules/ieee754/index.js"(v){v.read=function(k,ie,ae,ce,fe){var le,ve,pe=fe*8-ce-1,ye=(1<>1,Ee=-7,cr=ae?fe-1:0,Br=ae?-1:1,$r=k[ie+cr];for(cr+=Br,le=$r&(1<<-Ee)-1,$r>>=-Ee,Ee+=pe;Ee>0;le=le*256+k[ie+cr],cr+=Br,Ee-=8);for(ve=le&(1<<-Ee)-1,le>>=-Ee,Ee+=ce;Ee>0;ve=ve*256+k[ie+cr],cr+=Br,Ee-=8);if(le===0)le=1-me;else{if(le===ye)return ve?NaN:($r?-1:1)*(1/0);ve=ve+Math.pow(2,ce),le=le-me}return($r?-1:1)*ve*Math.pow(2,le-ce)},v.write=function(k,ie,ae,ce,fe,le){var ve,pe,ye,me=le*8-fe-1,Ee=(1<>1,Br=fe===23?Math.pow(2,-24)-Math.pow(2,-77):0,$r=ce?0:le-1,Pr=ce?1:-1,Ar=ie<0||ie===0&&1/ie<0?1:0;for(ie=Math.abs(ie),isNaN(ie)||ie===1/0?(pe=isNaN(ie)?1:0,ve=Ee):(ve=Math.floor(Math.log(ie)/Math.LN2),ie*(ye=Math.pow(2,-ve))<1&&(ve--,ye*=2),ve+cr>=1?ie+=Br/ye:ie+=Br*Math.pow(2,1-cr),ie*ye>=2&&(ve++,ye/=2),ve+cr>=Ee?(pe=0,ve=Ee):ve+cr>=1?(pe=(ie*ye-1)*Math.pow(2,fe),ve=ve+cr):(pe=ie*Math.pow(2,cr-1)*Math.pow(2,fe),ve=0));fe>=8;k[ae+$r]=pe&255,$r+=Pr,pe/=256,fe-=8);for(ve=ve<0;k[ae+$r]=ve&255,$r+=Pr,ve/=256,me-=8);k[ae+$r-Pr]|=Ar*128}}}),require_buffer=__commonJS({"node_modules/buffer/index.js"(v){var k=require_base64_js(),ie=require_ieee754(),ae=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;v.Buffer=ve,v.SlowBuffer=jr,v.INSPECT_MAX_BYTES=50;var ce=2147483647;v.kMaxLength=ce,ve.TYPED_ARRAY_SUPPORT=fe(),!ve.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function fe(){try{const En=new Uint8Array(1),Bt={foo:function(){return 42}};return Object.setPrototypeOf(Bt,Uint8Array.prototype),Object.setPrototypeOf(En,Bt),En.foo()===42}catch{return!1}}Object.defineProperty(ve.prototype,"parent",{enumerable:!0,get:function(){if(!!ve.isBuffer(this))return this.buffer}}),Object.defineProperty(ve.prototype,"offset",{enumerable:!0,get:function(){if(!!ve.isBuffer(this))return this.byteOffset}});function le(En){if(En>ce)throw new RangeError('The value "'+En+'" is invalid for option "size"');const Bt=new Uint8Array(En);return Object.setPrototypeOf(Bt,ve.prototype),Bt}function ve(En,Bt,Zt){if(typeof En=="number"){if(typeof Bt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ee(En)}return pe(En,Bt,Zt)}ve.poolSize=8192;function pe(En,Bt,Zt){if(typeof En=="string")return cr(En,Bt);if(ArrayBuffer.isView(En))return $r(En);if(En==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof En);if(li(En,ArrayBuffer)||En&&li(En.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(li(En,SharedArrayBuffer)||En&&li(En.buffer,SharedArrayBuffer)))return Pr(En,Bt,Zt);if(typeof En=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Tn=En.valueOf&&En.valueOf();if(Tn!=null&&Tn!==En)return ve.from(Tn,Bt,Zt);const ei=Ar(En);if(ei)return ei;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof En[Symbol.toPrimitive]=="function")return ve.from(En[Symbol.toPrimitive]("string"),Bt,Zt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof En)}ve.from=function(En,Bt,Zt){return pe(En,Bt,Zt)},Object.setPrototypeOf(ve.prototype,Uint8Array.prototype),Object.setPrototypeOf(ve,Uint8Array);function ye(En){if(typeof En!="number")throw new TypeError('"size" argument must be of type number');if(En<0)throw new RangeError('The value "'+En+'" is invalid for option "size"')}function me(En,Bt,Zt){return ye(En),En<=0?le(En):Bt!==void 0?typeof Zt=="string"?le(En).fill(Bt,Zt):le(En).fill(Bt):le(En)}ve.alloc=function(En,Bt,Zt){return me(En,Bt,Zt)};function Ee(En){return ye(En),le(En<0?0:ur(En)|0)}ve.allocUnsafe=function(En){return Ee(En)},ve.allocUnsafeSlow=function(En){return Ee(En)};function cr(En,Bt){if((typeof Bt!="string"||Bt==="")&&(Bt="utf8"),!ve.isEncoding(Bt))throw new TypeError("Unknown encoding: "+Bt);const Zt=Mr(En,Bt)|0;let Tn=le(Zt);const ei=Tn.write(En,Bt);return ei!==Zt&&(Tn=Tn.slice(0,ei)),Tn}function Br(En){const Bt=En.length<0?0:ur(En.length)|0,Zt=le(Bt);for(let Tn=0;Tn=ce)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ce.toString(16)+" bytes");return En|0}function jr(En){return+En!=En&&(En=0),ve.alloc(+En)}ve.isBuffer=function(Bt){return Bt!=null&&Bt._isBuffer===!0&&Bt!==ve.prototype},ve.compare=function(Bt,Zt){if(li(Bt,Uint8Array)&&(Bt=ve.from(Bt,Bt.offset,Bt.byteLength)),li(Zt,Uint8Array)&&(Zt=ve.from(Zt,Zt.offset,Zt.byteLength)),!ve.isBuffer(Bt)||!ve.isBuffer(Zt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Bt===Zt)return 0;let Tn=Bt.length,ei=Zt.length;for(let zn=0,gn=Math.min(Tn,ei);znei.length?(ve.isBuffer(gn)||(gn=ve.from(gn)),gn.copy(ei,zn)):Uint8Array.prototype.set.call(ei,gn,zn);else if(ve.isBuffer(gn))gn.copy(ei,zn);else throw new TypeError('"list" argument must be an Array of Buffers');zn+=gn.length}return ei};function Mr(En,Bt){if(ve.isBuffer(En))return En.length;if(ArrayBuffer.isView(En)||li(En,ArrayBuffer))return En.byteLength;if(typeof En!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof En);const Zt=En.length,Tn=arguments.length>2&&arguments[2]===!0;if(!Tn&&Zt===0)return 0;let ei=!1;for(;;)switch(Bt){case"ascii":case"latin1":case"binary":return Zt;case"utf8":case"utf-8":return ui(En).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zt*2;case"hex":return Zt>>>1;case"base64":return Ci(En).length;default:if(ei)return Tn?-1:ui(En).length;Bt=(""+Bt).toLowerCase(),ei=!0}}ve.byteLength=Mr;function Lr(En,Bt,Zt){let Tn=!1;if((Bt===void 0||Bt<0)&&(Bt=0),Bt>this.length||((Zt===void 0||Zt>this.length)&&(Zt=this.length),Zt<=0)||(Zt>>>=0,Bt>>>=0,Zt<=Bt))return"";for(En||(En="utf8");;)switch(En){case"hex":return Jt(this,Bt,Zt);case"utf8":case"utf-8":return Kr(this,Bt,Zt);case"ascii":return xr(this,Bt,Zt);case"latin1":case"binary":return Wr(this,Bt,Zt);case"base64":return Xt(this,Bt,Zt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xr(this,Bt,Zt);default:if(Tn)throw new TypeError("Unknown encoding: "+En);En=(En+"").toLowerCase(),Tn=!0}}ve.prototype._isBuffer=!0;function Vr(En,Bt,Zt){const Tn=En[Bt];En[Bt]=En[Zt],En[Zt]=Tn}ve.prototype.swap16=function(){const Bt=this.length;if(Bt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Zt=0;ZtZt&&(Bt+=" ... "),""},ae&&(ve.prototype[ae]=ve.prototype.inspect),ve.prototype.compare=function(Bt,Zt,Tn,ei,zn){if(li(Bt,Uint8Array)&&(Bt=ve.from(Bt,Bt.offset,Bt.byteLength)),!ve.isBuffer(Bt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Bt);if(Zt===void 0&&(Zt=0),Tn===void 0&&(Tn=Bt?Bt.length:0),ei===void 0&&(ei=0),zn===void 0&&(zn=this.length),Zt<0||Tn>Bt.length||ei<0||zn>this.length)throw new RangeError("out of range index");if(ei>=zn&&Zt>=Tn)return 0;if(ei>=zn)return-1;if(Zt>=Tn)return 1;if(Zt>>>=0,Tn>>>=0,ei>>>=0,zn>>>=0,this===Bt)return 0;let gn=zn-ei,xn=Tn-Zt;const Hn=Math.min(gn,xn),Ln=this.slice(ei,zn),ti=Bt.slice(Zt,Tn);for(let oi=0;oi2147483647?Zt=2147483647:Zt<-2147483648&&(Zt=-2147483648),Zt=+Zt,Pi(Zt)&&(Zt=ei?0:En.length-1),Zt<0&&(Zt=En.length+Zt),Zt>=En.length){if(ei)return-1;Zt=En.length-1}else if(Zt<0)if(ei)Zt=0;else return-1;if(typeof Bt=="string"&&(Bt=ve.from(Bt,Tn)),ve.isBuffer(Bt))return Bt.length===0?-1:Ur(En,Bt,Zt,Tn,ei);if(typeof Bt=="number")return Bt=Bt&255,typeof Uint8Array.prototype.indexOf=="function"?ei?Uint8Array.prototype.indexOf.call(En,Bt,Zt):Uint8Array.prototype.lastIndexOf.call(En,Bt,Zt):Ur(En,[Bt],Zt,Tn,ei);throw new TypeError("val must be string, number or Buffer")}function Ur(En,Bt,Zt,Tn,ei){let zn=1,gn=En.length,xn=Bt.length;if(Tn!==void 0&&(Tn=String(Tn).toLowerCase(),Tn==="ucs2"||Tn==="ucs-2"||Tn==="utf16le"||Tn==="utf-16le")){if(En.length<2||Bt.length<2)return-1;zn=2,gn/=2,xn/=2,Zt/=2}function Hn(ti,oi){return zn===1?ti[oi]:ti.readUInt16BE(oi*zn)}let Ln;if(ei){let ti=-1;for(Ln=Zt;Lngn&&(Zt=gn-xn),Ln=Zt;Ln>=0;Ln--){let ti=!0;for(let oi=0;oiei&&(Tn=ei)):Tn=ei;const zn=Bt.length;Tn>zn/2&&(Tn=zn/2);let gn;for(gn=0;gn>>0,isFinite(Tn)?(Tn=Tn>>>0,ei===void 0&&(ei="utf8")):(ei=Tn,Tn=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const zn=this.length-Zt;if((Tn===void 0||Tn>zn)&&(Tn=zn),Bt.length>0&&(Tn<0||Zt<0)||Zt>this.length)throw new RangeError("Attempt to write outside buffer bounds");ei||(ei="utf8");let gn=!1;for(;;)switch(ei){case"hex":return Qr(this,Bt,Zt,Tn);case"utf8":case"utf-8":return hn(this,Bt,Zt,Tn);case"ascii":case"latin1":case"binary":return Yt(this,Bt,Zt,Tn);case"base64":return fn(this,Bt,Zt,Tn);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qt(this,Bt,Zt,Tn);default:if(gn)throw new TypeError("Unknown encoding: "+ei);ei=(""+ei).toLowerCase(),gn=!0}},ve.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Xt(En,Bt,Zt){return Bt===0&&Zt===En.length?k.fromByteArray(En):k.fromByteArray(En.slice(Bt,Zt))}function Kr(En,Bt,Zt){Zt=Math.min(En.length,Zt);const Tn=[];let ei=Bt;for(;ei239?4:zn>223?3:zn>191?2:1;if(ei+xn<=Zt){let Hn,Ln,ti,oi;switch(xn){case 1:zn<128&&(gn=zn);break;case 2:Hn=En[ei+1],(Hn&192)===128&&(oi=(zn&31)<<6|Hn&63,oi>127&&(gn=oi));break;case 3:Hn=En[ei+1],Ln=En[ei+2],(Hn&192)===128&&(Ln&192)===128&&(oi=(zn&15)<<12|(Hn&63)<<6|Ln&63,oi>2047&&(oi<55296||oi>57343)&&(gn=oi));break;case 4:Hn=En[ei+1],Ln=En[ei+2],ti=En[ei+3],(Hn&192)===128&&(Ln&192)===128&&(ti&192)===128&&(oi=(zn&15)<<18|(Hn&63)<<12|(Ln&63)<<6|ti&63,oi>65535&&oi<1114112&&(gn=oi))}}gn===null?(gn=65533,xn=1):gn>65535&&(gn-=65536,Tn.push(gn>>>10&1023|55296),gn=56320|gn&1023),Tn.push(gn),ei+=xn}return kr(Tn)}var be=4096;function kr(En){const Bt=En.length;if(Bt<=be)return String.fromCharCode.apply(String,En);let Zt="",Tn=0;for(;TnTn)&&(Zt=Tn);let ei="";for(let zn=Bt;znTn&&(Bt=Tn),Zt<0?(Zt+=Tn,Zt<0&&(Zt=0)):Zt>Tn&&(Zt=Tn),ZtZt)throw new RangeError("Trying to access beyond buffer length")}ve.prototype.readUintLE=ve.prototype.readUIntLE=function(Bt,Zt,Tn){Bt=Bt>>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=this[Bt],zn=1,gn=0;for(;++gn>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=this[Bt+--Zt],zn=1;for(;Zt>0&&(zn*=256);)ei+=this[Bt+--Zt]*zn;return ei},ve.prototype.readUint8=ve.prototype.readUInt8=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,1,this.length),this[Bt]},ve.prototype.readUint16LE=ve.prototype.readUInt16LE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,2,this.length),this[Bt]|this[Bt+1]<<8},ve.prototype.readUint16BE=ve.prototype.readUInt16BE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,2,this.length),this[Bt]<<8|this[Bt+1]},ve.prototype.readUint32LE=ve.prototype.readUInt32LE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),(this[Bt]|this[Bt+1]<<8|this[Bt+2]<<16)+this[Bt+3]*16777216},ve.prototype.readUint32BE=ve.prototype.readUInt32BE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),this[Bt]*16777216+(this[Bt+1]<<16|this[Bt+2]<<8|this[Bt+3])},ve.prototype.readBigUInt64LE=Oi(function(Bt){Bt=Bt>>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=Zt+this[++Bt]*2**8+this[++Bt]*2**16+this[++Bt]*2**24,zn=this[++Bt]+this[++Bt]*2**8+this[++Bt]*2**16+Tn*2**24;return BigInt(ei)+(BigInt(zn)<>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=Zt*2**24+this[++Bt]*2**16+this[++Bt]*2**8+this[++Bt],zn=this[++Bt]*2**24+this[++Bt]*2**16+this[++Bt]*2**8+Tn;return(BigInt(ei)<>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=this[Bt],zn=1,gn=0;for(;++gn=zn&&(ei-=Math.pow(2,8*Zt)),ei},ve.prototype.readIntBE=function(Bt,Zt,Tn){Bt=Bt>>>0,Zt=Zt>>>0,Tn||zr(Bt,Zt,this.length);let ei=Zt,zn=1,gn=this[Bt+--ei];for(;ei>0&&(zn*=256);)gn+=this[Bt+--ei]*zn;return zn*=128,gn>=zn&&(gn-=Math.pow(2,8*Zt)),gn},ve.prototype.readInt8=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,1,this.length),this[Bt]&128?(255-this[Bt]+1)*-1:this[Bt]},ve.prototype.readInt16LE=function(Bt,Zt){Bt=Bt>>>0,Zt||zr(Bt,2,this.length);const Tn=this[Bt]|this[Bt+1]<<8;return Tn&32768?Tn|4294901760:Tn},ve.prototype.readInt16BE=function(Bt,Zt){Bt=Bt>>>0,Zt||zr(Bt,2,this.length);const Tn=this[Bt+1]|this[Bt]<<8;return Tn&32768?Tn|4294901760:Tn},ve.prototype.readInt32LE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),this[Bt]|this[Bt+1]<<8|this[Bt+2]<<16|this[Bt+3]<<24},ve.prototype.readInt32BE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),this[Bt]<<24|this[Bt+1]<<16|this[Bt+2]<<8|this[Bt+3]},ve.prototype.readBigInt64LE=Oi(function(Bt){Bt=Bt>>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=this[Bt+4]+this[Bt+5]*2**8+this[Bt+6]*2**16+(Tn<<24);return(BigInt(ei)<>>0,pn(Bt,"offset");const Zt=this[Bt],Tn=this[Bt+7];(Zt===void 0||Tn===void 0)&&Sn(Bt,this.length-8);const ei=(Zt<<24)+this[++Bt]*2**16+this[++Bt]*2**8+this[++Bt];return(BigInt(ei)<>>0,Zt||zr(Bt,4,this.length),ie.read(this,Bt,!0,23,4)},ve.prototype.readFloatBE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,4,this.length),ie.read(this,Bt,!1,23,4)},ve.prototype.readDoubleLE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,8,this.length),ie.read(this,Bt,!0,52,8)},ve.prototype.readDoubleBE=function(Bt,Zt){return Bt=Bt>>>0,Zt||zr(Bt,8,this.length),ie.read(this,Bt,!1,52,8)};function Jr(En,Bt,Zt,Tn,ei,zn){if(!ve.isBuffer(En))throw new TypeError('"buffer" argument must be a Buffer instance');if(Bt>ei||BtEn.length)throw new RangeError("Index out of range")}ve.prototype.writeUintLE=ve.prototype.writeUIntLE=function(Bt,Zt,Tn,ei){if(Bt=+Bt,Zt=Zt>>>0,Tn=Tn>>>0,!ei){const xn=Math.pow(2,8*Tn)-1;Jr(this,Bt,Zt,Tn,xn,0)}let zn=1,gn=0;for(this[Zt]=Bt&255;++gn>>0,Tn=Tn>>>0,!ei){const xn=Math.pow(2,8*Tn)-1;Jr(this,Bt,Zt,Tn,xn,0)}let zn=Tn-1,gn=1;for(this[Zt+zn]=Bt&255;--zn>=0&&(gn*=256);)this[Zt+zn]=Bt/gn&255;return Zt+Tn},ve.prototype.writeUint8=ve.prototype.writeUInt8=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,1,255,0),this[Zt]=Bt&255,Zt+1},ve.prototype.writeUint16LE=ve.prototype.writeUInt16LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,65535,0),this[Zt]=Bt&255,this[Zt+1]=Bt>>>8,Zt+2},ve.prototype.writeUint16BE=ve.prototype.writeUInt16BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,65535,0),this[Zt]=Bt>>>8,this[Zt+1]=Bt&255,Zt+2},ve.prototype.writeUint32LE=ve.prototype.writeUInt32LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,4294967295,0),this[Zt+3]=Bt>>>24,this[Zt+2]=Bt>>>16,this[Zt+1]=Bt>>>8,this[Zt]=Bt&255,Zt+4},ve.prototype.writeUint32BE=ve.prototype.writeUInt32BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,4294967295,0),this[Zt]=Bt>>>24,this[Zt+1]=Bt>>>16,this[Zt+2]=Bt>>>8,this[Zt+3]=Bt&255,Zt+4};function Nr(En,Bt,Zt,Tn,ei){vn(Bt,Tn,ei,En,Zt,7);let zn=Number(Bt&BigInt(4294967295));En[Zt++]=zn,zn=zn>>8,En[Zt++]=zn,zn=zn>>8,En[Zt++]=zn,zn=zn>>8,En[Zt++]=zn;let gn=Number(Bt>>BigInt(32)&BigInt(4294967295));return En[Zt++]=gn,gn=gn>>8,En[Zt++]=gn,gn=gn>>8,En[Zt++]=gn,gn=gn>>8,En[Zt++]=gn,Zt}function Hr(En,Bt,Zt,Tn,ei){vn(Bt,Tn,ei,En,Zt,7);let zn=Number(Bt&BigInt(4294967295));En[Zt+7]=zn,zn=zn>>8,En[Zt+6]=zn,zn=zn>>8,En[Zt+5]=zn,zn=zn>>8,En[Zt+4]=zn;let gn=Number(Bt>>BigInt(32)&BigInt(4294967295));return En[Zt+3]=gn,gn=gn>>8,En[Zt+2]=gn,gn=gn>>8,En[Zt+1]=gn,gn=gn>>8,En[Zt]=gn,Zt+8}ve.prototype.writeBigUInt64LE=Oi(function(Bt,Zt=0){return Nr(this,Bt,Zt,BigInt(0),BigInt("0xffffffffffffffff"))}),ve.prototype.writeBigUInt64BE=Oi(function(Bt,Zt=0){return Hr(this,Bt,Zt,BigInt(0),BigInt("0xffffffffffffffff"))}),ve.prototype.writeIntLE=function(Bt,Zt,Tn,ei){if(Bt=+Bt,Zt=Zt>>>0,!ei){const Hn=Math.pow(2,8*Tn-1);Jr(this,Bt,Zt,Tn,Hn-1,-Hn)}let zn=0,gn=1,xn=0;for(this[Zt]=Bt&255;++zn>0)-xn&255;return Zt+Tn},ve.prototype.writeIntBE=function(Bt,Zt,Tn,ei){if(Bt=+Bt,Zt=Zt>>>0,!ei){const Hn=Math.pow(2,8*Tn-1);Jr(this,Bt,Zt,Tn,Hn-1,-Hn)}let zn=Tn-1,gn=1,xn=0;for(this[Zt+zn]=Bt&255;--zn>=0&&(gn*=256);)Bt<0&&xn===0&&this[Zt+zn+1]!==0&&(xn=1),this[Zt+zn]=(Bt/gn>>0)-xn&255;return Zt+Tn},ve.prototype.writeInt8=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,1,127,-128),Bt<0&&(Bt=255+Bt+1),this[Zt]=Bt&255,Zt+1},ve.prototype.writeInt16LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,32767,-32768),this[Zt]=Bt&255,this[Zt+1]=Bt>>>8,Zt+2},ve.prototype.writeInt16BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,2,32767,-32768),this[Zt]=Bt>>>8,this[Zt+1]=Bt&255,Zt+2},ve.prototype.writeInt32LE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,2147483647,-2147483648),this[Zt]=Bt&255,this[Zt+1]=Bt>>>8,this[Zt+2]=Bt>>>16,this[Zt+3]=Bt>>>24,Zt+4},ve.prototype.writeInt32BE=function(Bt,Zt,Tn){return Bt=+Bt,Zt=Zt>>>0,Tn||Jr(this,Bt,Zt,4,2147483647,-2147483648),Bt<0&&(Bt=4294967295+Bt+1),this[Zt]=Bt>>>24,this[Zt+1]=Bt>>>16,this[Zt+2]=Bt>>>8,this[Zt+3]=Bt&255,Zt+4},ve.prototype.writeBigInt64LE=Oi(function(Bt,Zt=0){return Nr(this,Bt,Zt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),ve.prototype.writeBigInt64BE=Oi(function(Bt,Zt=0){return Hr(this,Bt,Zt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function On(En,Bt,Zt,Tn,ei,zn){if(Zt+Tn>En.length)throw new RangeError("Index out of range");if(Zt<0)throw new RangeError("Index out of range")}function Gn(En,Bt,Zt,Tn,ei){return Bt=+Bt,Zt=Zt>>>0,ei||On(En,Bt,Zt,4),ie.write(En,Bt,Zt,Tn,23,4),Zt+4}ve.prototype.writeFloatLE=function(Bt,Zt,Tn){return Gn(this,Bt,Zt,!0,Tn)},ve.prototype.writeFloatBE=function(Bt,Zt,Tn){return Gn(this,Bt,Zt,!1,Tn)};function mn(En,Bt,Zt,Tn,ei){return Bt=+Bt,Zt=Zt>>>0,ei||On(En,Bt,Zt,8),ie.write(En,Bt,Zt,Tn,52,8),Zt+8}ve.prototype.writeDoubleLE=function(Bt,Zt,Tn){return mn(this,Bt,Zt,!0,Tn)},ve.prototype.writeDoubleBE=function(Bt,Zt,Tn){return mn(this,Bt,Zt,!1,Tn)},ve.prototype.copy=function(Bt,Zt,Tn,ei){if(!ve.isBuffer(Bt))throw new TypeError("argument should be a Buffer");if(Tn||(Tn=0),!ei&&ei!==0&&(ei=this.length),Zt>=Bt.length&&(Zt=Bt.length),Zt||(Zt=0),ei>0&&ei=this.length)throw new RangeError("Index out of range");if(ei<0)throw new RangeError("sourceEnd out of bounds");ei>this.length&&(ei=this.length),Bt.length-Zt>>0,Tn=Tn===void 0?this.length:Tn>>>0,Bt||(Bt=0);let zn;if(typeof Bt=="number")for(zn=Zt;zn2**32?ei=bn(String(Zt)):typeof Zt=="bigint"&&(ei=String(Zt),(Zt>BigInt(2)**BigInt(32)||Zt<-(BigInt(2)**BigInt(32)))&&(ei=bn(ei)),ei+="n"),Tn+=` It must be ${Bt}. Received ${ei}`,Tn},RangeError);function bn(En){let Bt="",Zt=En.length;const Tn=En[0]==="-"?1:0;for(;Zt>=Tn+4;Zt-=3)Bt=`_${En.slice(Zt-3,Zt)}${Bt}`;return`${En.slice(0,Zt)}${Bt}`}function ii(En,Bt,Zt){pn(Bt,"offset"),(En[Bt]===void 0||En[Bt+Zt]===void 0)&&Sn(Bt,En.length-(Zt+1))}function vn(En,Bt,Zt,Tn,ei,zn){if(En>Zt||En3?Bt===0||Bt===BigInt(0)?xn=`>= 0${gn} and < 2${gn} ** ${(zn+1)*8}${gn}`:xn=`>= -(2${gn} ** ${(zn+1)*8-1}${gn}) and < 2 ** ${(zn+1)*8-1}${gn}`:xn=`>= ${Bt}${gn} and <= ${Zt}${gn}`,new Nn.ERR_OUT_OF_RANGE("value",xn,En)}ii(Tn,ei,zn)}function pn(En,Bt){if(typeof En!="number")throw new Nn.ERR_INVALID_ARG_TYPE(Bt,"number",En)}function Sn(En,Bt,Zt){throw Math.floor(En)!==En?(pn(En,Zt),new Nn.ERR_OUT_OF_RANGE(Zt||"offset","an integer",En)):Bt<0?new Nn.ERR_BUFFER_OUT_OF_BOUNDS:new Nn.ERR_OUT_OF_RANGE(Zt||"offset",`>= ${Zt?1:0} and <= ${Bt}`,En)}var Qn=/[^+/0-9A-Za-z-_]/g;function Jn(En){if(En=En.split("=")[0],En=En.trim().replace(Qn,""),En.length<2)return"";for(;En.length%4!==0;)En=En+"=";return En}function ui(En,Bt){Bt=Bt||1/0;let Zt;const Tn=En.length;let ei=null;const zn=[];for(let gn=0;gn55295&&Zt<57344){if(!ei){if(Zt>56319){(Bt-=3)>-1&&zn.push(239,191,189);continue}else if(gn+1===Tn){(Bt-=3)>-1&&zn.push(239,191,189);continue}ei=Zt;continue}if(Zt<56320){(Bt-=3)>-1&&zn.push(239,191,189),ei=Zt;continue}Zt=(ei-55296<<10|Zt-56320)+65536}else ei&&(Bt-=3)>-1&&zn.push(239,191,189);if(ei=null,Zt<128){if((Bt-=1)<0)break;zn.push(Zt)}else if(Zt<2048){if((Bt-=2)<0)break;zn.push(Zt>>6|192,Zt&63|128)}else if(Zt<65536){if((Bt-=3)<0)break;zn.push(Zt>>12|224,Zt>>6&63|128,Zt&63|128)}else if(Zt<1114112){if((Bt-=4)<0)break;zn.push(Zt>>18|240,Zt>>12&63|128,Zt>>6&63|128,Zt&63|128)}else throw new Error("Invalid code point")}return zn}function gi(En){const Bt=[];for(let Zt=0;Zt>8,ei=Zt%256,zn.push(ei),zn.push(Tn);return zn}function Ci(En){return k.toByteArray(Jn(En))}function yi(En,Bt,Zt,Tn){let ei;for(ei=0;ei=Bt.length||ei>=En.length);++ei)Bt[ei+Zt]=En[ei];return ei}function li(En,Bt){return En instanceof Bt||En!=null&&En.constructor!=null&&En.constructor.name!=null&&En.constructor.name===Bt.name}function Pi(En){return En!==En}var Ai=function(){const En="0123456789abcdef",Bt=new Array(256);for(let Zt=0;Zt<16;++Zt){const Tn=Zt*16;for(let ei=0;ei<16;++ei)Bt[Tn+ei]=En[Zt]+En[ei]}return Bt}();function Oi(En){return typeof BigInt>"u"?to:En}function to(){throw new Error("BigInt not supported")}}});/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - *//*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var require_constants$3=__commonJS({"node_modules/@near-js/crypto/lib/constants.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyType=void 0,function(k){k[k.ED25519=0]="ED25519"}(v.KeyType||(v.KeyType={}))}}),require_key_pair_base$1=__commonJS({"node_modules/@near-js/crypto/lib/key_pair_base.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyPairBase=void 0;var k=class{};v.KeyPairBase=k}}),require_buffer2$1=__commonJS({"browser-external:buffer"(v,k){k.exports={}}}),require_bn$2=__commonJS({"node_modules/bn.js/lib/bn.js"(v,k){(function(ie,ae){function ce(Kr,be){if(!Kr)throw new Error(be||"Assertion failed")}function fe(Kr,be){Kr.super_=be;var kr=function(){};kr.prototype=be.prototype,Kr.prototype=new kr,Kr.prototype.constructor=Kr}function le(Kr,be,kr){if(le.isBN(Kr))return Kr;this.negative=0,this.words=null,this.length=0,this.red=null,Kr!==null&&((be==="le"||be==="be")&&(kr=be,be=10),this._init(Kr||0,be||10,kr||"be"))}typeof ie=="object"?ie.exports=le:ae.BN=le,le.BN=le,le.wordSize=26;var ve;try{typeof window<"u"&&typeof window.Buffer<"u"?ve=window.Buffer:ve=require_buffer2$1().Buffer}catch{}le.isBN=function(be){return be instanceof le?!0:be!==null&&typeof be=="object"&&be.constructor.wordSize===le.wordSize&&Array.isArray(be.words)},le.max=function(be,kr){return be.cmp(kr)>0?be:kr},le.min=function(be,kr){return be.cmp(kr)<0?be:kr},le.prototype._init=function(be,kr,xr){if(typeof be=="number")return this._initNumber(be,kr,xr);if(typeof be=="object")return this._initArray(be,kr,xr);kr==="hex"&&(kr=16),ce(kr===(kr|0)&&kr>=2&&kr<=36),be=be.toString().replace(/\s+/g,"");var Wr=0;be[0]==="-"&&(Wr++,this.negative=1),Wr=0;Wr-=3)Xr=be[Wr]|be[Wr-1]<<8|be[Wr-2]<<16,this.words[Jt]|=Xr<>>26-zr&67108863,zr+=24,zr>=26&&(zr-=26,Jt++);else if(xr==="le")for(Wr=0,Jt=0;Wr>>26-zr&67108863,zr+=24,zr>=26&&(zr-=26,Jt++);return this._strip()};function pe(Kr,be){var kr=Kr.charCodeAt(be);if(kr>=48&&kr<=57)return kr-48;if(kr>=65&&kr<=70)return kr-55;if(kr>=97&&kr<=102)return kr-87;ce(!1,"Invalid character in "+Kr)}function ye(Kr,be,kr){var xr=pe(Kr,kr);return kr-1>=be&&(xr|=pe(Kr,kr-1)<<4),xr}le.prototype._parseHex=function(be,kr,xr){this.length=Math.ceil((be.length-kr)/6),this.words=new Array(this.length);for(var Wr=0;Wr=kr;Wr-=2)zr=ye(be,kr,Wr)<=18?(Jt-=18,Xr+=1,this.words[Xr]|=zr>>>26):Jt+=8;else{var Jr=be.length-kr;for(Wr=Jr%2===0?kr+1:kr;Wr=18?(Jt-=18,Xr+=1,this.words[Xr]|=zr>>>26):Jt+=8}this._strip()};function me(Kr,be,kr,xr){for(var Wr=0,Jt=0,Xr=Math.min(Kr.length,kr),zr=be;zr=49?Jt=Jr-49+10:Jr>=17?Jt=Jr-17+10:Jt=Jr,ce(Jr>=0&&Jt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},le.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{le.prototype[Symbol.for("nodejs.util.inspect.custom")]=cr}catch{le.prototype.inspect=cr}else le.prototype.inspect=cr;function cr(){return(this.red?""}var Br=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],$r=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Pr=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];le.prototype.toString=function(be,kr){be=be||10,kr=kr|0||1;var xr;if(be===16||be==="hex"){xr="";for(var Wr=0,Jt=0,Xr=0;Xr>>24-Wr&16777215,Wr+=2,Wr>=26&&(Wr-=26,Xr--),Jt!==0||Xr!==this.length-1?xr=Br[6-Jr.length]+Jr+xr:xr=Jr+xr}for(Jt!==0&&(xr=Jt.toString(16)+xr);xr.length%kr!==0;)xr="0"+xr;return this.negative!==0&&(xr="-"+xr),xr}if(be===(be|0)&&be>=2&&be<=36){var Nr=$r[be],Hr=Pr[be];xr="";var On=this.clone();for(On.negative=0;!On.isZero();){var Gn=On.modrn(Hr).toString(be);On=On.idivn(Hr),On.isZero()?xr=Gn+xr:xr=Br[Nr-Gn.length]+Gn+xr}for(this.isZero()&&(xr="0"+xr);xr.length%kr!==0;)xr="0"+xr;return this.negative!==0&&(xr="-"+xr),xr}ce(!1,"Base should be between 2 and 36")},le.prototype.toNumber=function(){var be=this.words[0];return this.length===2?be+=this.words[1]*67108864:this.length===3&&this.words[2]===1?be+=4503599627370496+this.words[1]*67108864:this.length>2&&ce(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-be:be},le.prototype.toJSON=function(){return this.toString(16,2)},ve&&(le.prototype.toBuffer=function(be,kr){return this.toArrayLike(ve,be,kr)}),le.prototype.toArray=function(be,kr){return this.toArrayLike(Array,be,kr)};var Or=function(be,kr){return be.allocUnsafe?be.allocUnsafe(kr):new be(kr)};le.prototype.toArrayLike=function(be,kr,xr){this._strip();var Wr=this.byteLength(),Jt=xr||Math.max(1,Wr);ce(Wr<=Jt,"byte array longer than desired length"),ce(Jt>0,"Requested array length <= 0");var Xr=Or(be,Jt),zr=kr==="le"?"LE":"BE";return this["_toArrayLike"+zr](Xr,Wr),Xr},le.prototype._toArrayLikeLE=function(be,kr){for(var xr=0,Wr=0,Jt=0,Xr=0;Jt>8&255),xr>16&255),Xr===6?(xr>24&255),Wr=0,Xr=0):(Wr=zr>>>24,Xr+=2)}if(xr=0&&(be[xr--]=zr>>8&255),xr>=0&&(be[xr--]=zr>>16&255),Xr===6?(xr>=0&&(be[xr--]=zr>>24&255),Wr=0,Xr=0):(Wr=zr>>>24,Xr+=2)}if(xr>=0)for(be[xr--]=Wr;xr>=0;)be[xr--]=0},Math.clz32?le.prototype._countBits=function(be){return 32-Math.clz32(be)}:le.prototype._countBits=function(be){var kr=be,xr=0;return kr>=4096&&(xr+=13,kr>>>=13),kr>=64&&(xr+=7,kr>>>=7),kr>=8&&(xr+=4,kr>>>=4),kr>=2&&(xr+=2,kr>>>=2),xr+kr},le.prototype._zeroBits=function(be){if(be===0)return 26;var kr=be,xr=0;return(kr&8191)===0&&(xr+=13,kr>>>=13),(kr&127)===0&&(xr+=7,kr>>>=7),(kr&15)===0&&(xr+=4,kr>>>=4),(kr&3)===0&&(xr+=2,kr>>>=2),(kr&1)===0&&xr++,xr},le.prototype.bitLength=function(){var be=this.words[this.length-1],kr=this._countBits(be);return(this.length-1)*26+kr};function ur(Kr){for(var be=new Array(Kr.bitLength()),kr=0;kr>>Wr&1}return be}le.prototype.zeroBits=function(){if(this.isZero())return 0;for(var be=0,kr=0;krbe.length?this.clone().ior(be):be.clone().ior(this)},le.prototype.uor=function(be){return this.length>be.length?this.clone().iuor(be):be.clone().iuor(this)},le.prototype.iuand=function(be){var kr;this.length>be.length?kr=be:kr=this;for(var xr=0;xrbe.length?this.clone().iand(be):be.clone().iand(this)},le.prototype.uand=function(be){return this.length>be.length?this.clone().iuand(be):be.clone().iuand(this)},le.prototype.iuxor=function(be){var kr,xr;this.length>be.length?(kr=this,xr=be):(kr=be,xr=this);for(var Wr=0;Wrbe.length?this.clone().ixor(be):be.clone().ixor(this)},le.prototype.uxor=function(be){return this.length>be.length?this.clone().iuxor(be):be.clone().iuxor(this)},le.prototype.inotn=function(be){ce(typeof be=="number"&&be>=0);var kr=Math.ceil(be/26)|0,xr=be%26;this._expand(kr),xr>0&&kr--;for(var Wr=0;Wr0&&(this.words[Wr]=~this.words[Wr]&67108863>>26-xr),this._strip()},le.prototype.notn=function(be){return this.clone().inotn(be)},le.prototype.setn=function(be,kr){ce(typeof be=="number"&&be>=0);var xr=be/26|0,Wr=be%26;return this._expand(xr+1),kr?this.words[xr]=this.words[xr]|1<be.length?(xr=this,Wr=be):(xr=be,Wr=this);for(var Jt=0,Xr=0;Xr>>26;for(;Jt!==0&&Xr>>26;if(this.length=xr.length,Jt!==0)this.words[this.length]=Jt,this.length++;else if(xr!==this)for(;Xrbe.length?this.clone().iadd(be):be.clone().iadd(this)},le.prototype.isub=function(be){if(be.negative!==0){be.negative=0;var kr=this.iadd(be);return be.negative=1,kr._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(be),this.negative=1,this._normSign();var xr=this.cmp(be);if(xr===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Wr,Jt;xr>0?(Wr=this,Jt=be):(Wr=be,Jt=this);for(var Xr=0,zr=0;zr>26,this.words[zr]=kr&67108863;for(;Xr!==0&&zr>26,this.words[zr]=kr&67108863;if(Xr===0&&zr>>26,On=Jr&67108863,Gn=Math.min(Nr,be.length-1),mn=Math.max(0,Nr-Kr.length+1);mn<=Gn;mn++){var Nn=Nr-mn|0;Wr=Kr.words[Nn]|0,Jt=be.words[mn]|0,Xr=Wr*Jt+On,Hr+=Xr/67108864|0,On=Xr&67108863}kr.words[Nr]=On|0,Jr=Hr|0}return Jr!==0?kr.words[Nr]=Jr|0:kr.length--,kr._strip()}var Mr=function(be,kr,xr){var Wr=be.words,Jt=kr.words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+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(ci>>>26)|0,ci&=67108863,Jr=Math.imul(gn,qr),Nr=Math.imul(gn,dn),Nr=Nr+Math.imul(xn,qr)|0,Hr=Math.imul(xn,dn),Jr=Jr+Math.imul(Tn,Zn)|0,Nr=Nr+Math.imul(Tn,ai)|0,Nr=Nr+Math.imul(ei,Zn)|0,Hr=Hr+Math.imul(ei,ai)|0,Jr=Jr+Math.imul(En,_i)|0,Nr=Nr+Math.imul(En,fi)|0,Nr=Nr+Math.imul(Bt,_i)|0,Hr=Hr+Math.imul(Bt,fi)|0;var pi=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(pi>>>26)|0,pi&=67108863,Jr=Math.imul(gn,Zn),Nr=Math.imul(gn,ai),Nr=Nr+Math.imul(xn,Zn)|0,Hr=Math.imul(xn,ai),Jr=Jr+Math.imul(Tn,_i)|0,Nr=Nr+Math.imul(Tn,fi)|0,Nr=Nr+Math.imul(ei,_i)|0,Hr=Hr+Math.imul(ei,fi)|0;var mi=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(mi>>>26)|0,mi&=67108863,Jr=Math.imul(gn,_i),Nr=Math.imul(gn,fi),Nr=Nr+Math.imul(xn,_i)|0,Hr=Math.imul(xn,fi);var Si=(zr+Jr|0)+((Nr&8191)<<13)|0;return zr=(Hr+(Nr>>>13)|0)+(Si>>>26)|0,Si&=67108863,Xr[0]=yo,Xr[1]=Di,Xr[2]=Ni,Xr[3]=oo,Xr[4]=fo,Xr[5]=co,Xr[6]=Ao,Xr[7]=vo,Xr[8]=_o,Xr[9]=so,Xr[10]=lo,Xr[11]=eo,Xr[12]=uo,Xr[13]=ho,Xr[14]=ro,Xr[15]=ci,Xr[16]=pi,Xr[17]=mi,Xr[18]=Si,zr!==0&&(Xr[19]=zr,xr.length++),xr};Math.imul||(Mr=jr);function Lr(Kr,be,kr){kr.negative=be.negative^Kr.negative,kr.length=Kr.length+be.length;for(var xr=0,Wr=0,Jt=0;Jt>>26)|0,Wr+=Xr>>>26,Xr&=67108863}kr.words[Jt]=zr,xr=Xr,Xr=Wr}return xr!==0?kr.words[Jt]=xr:kr.length--,kr._strip()}function Vr(Kr,be,kr){return Lr(Kr,be,kr)}le.prototype.mulTo=function(be,kr){var xr,Wr=this.length+be.length;return this.length===10&&be.length===10?xr=Mr(this,be,kr):Wr<63?xr=jr(this,be,kr):Wr<1024?xr=Lr(this,be,kr):xr=Vr(this,be,kr),xr},le.prototype.mul=function(be){var kr=new le(null);return kr.words=new Array(this.length+be.length),this.mulTo(be,kr)},le.prototype.mulf=function(be){var kr=new le(null);return kr.words=new Array(this.length+be.length),Vr(this,be,kr)},le.prototype.imul=function(be){return this.clone().mulTo(be,this)},le.prototype.imuln=function(be){var kr=be<0;kr&&(be=-be),ce(typeof be=="number"),ce(be<67108864);for(var xr=0,Wr=0;Wr>=26,xr+=Jt/67108864|0,xr+=Xr>>>26,this.words[Wr]=Xr&67108863}return xr!==0&&(this.words[Wr]=xr,this.length++),kr?this.ineg():this},le.prototype.muln=function(be){return this.clone().imuln(be)},le.prototype.sqr=function(){return this.mul(this)},le.prototype.isqr=function(){return this.imul(this.clone())},le.prototype.pow=function(be){var kr=ur(be);if(kr.length===0)return new le(1);for(var xr=this,Wr=0;Wr=0);var kr=be%26,xr=(be-kr)/26,Wr=67108863>>>26-kr<<26-kr,Jt;if(kr!==0){var Xr=0;for(Jt=0;Jt>>26-kr}Xr&&(this.words[Jt]=Xr,this.length++)}if(xr!==0){for(Jt=this.length-1;Jt>=0;Jt--)this.words[Jt+xr]=this.words[Jt];for(Jt=0;Jt=0);var Wr;kr?Wr=(kr-kr%26)/26:Wr=0;var Jt=be%26,Xr=Math.min((be-Jt)/26,this.length),zr=67108863^67108863>>>Jt<Xr)for(this.length-=Xr,Nr=0;Nr=0&&(Hr!==0||Nr>=Wr);Nr--){var On=this.words[Nr]|0;this.words[Nr]=Hr<<26-Jt|On>>>Jt,Hr=On&zr}return Jr&&Hr!==0&&(Jr.words[Jr.length++]=Hr),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},le.prototype.ishrn=function(be,kr,xr){return ce(this.negative===0),this.iushrn(be,kr,xr)},le.prototype.shln=function(be){return this.clone().ishln(be)},le.prototype.ushln=function(be){return this.clone().iushln(be)},le.prototype.shrn=function(be){return this.clone().ishrn(be)},le.prototype.ushrn=function(be){return this.clone().iushrn(be)},le.prototype.testn=function(be){ce(typeof be=="number"&&be>=0);var kr=be%26,xr=(be-kr)/26,Wr=1<=0);var kr=be%26,xr=(be-kr)/26;if(ce(this.negative===0,"imaskn works only with positive numbers"),this.length<=xr)return this;if(kr!==0&&xr++,this.length=Math.min(xr,this.length),kr!==0){var Wr=67108863^67108863>>>kr<=67108864;kr++)this.words[kr]-=67108864,kr===this.length-1?this.words[kr+1]=1:this.words[kr+1]++;return this.length=Math.max(this.length,kr+1),this},le.prototype.isubn=function(be){if(ce(typeof be=="number"),ce(be<67108864),be<0)return this.iaddn(-be);if(this.negative!==0)return this.negative=0,this.iaddn(be),this.negative=1,this;if(this.words[0]-=be,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var kr=0;kr>26)-(Jr/67108864|0),this.words[Jt+xr]=Xr&67108863}for(;Jt>26,this.words[Jt+xr]=Xr&67108863;if(zr===0)return this._strip();for(ce(zr===-1),zr=0,Jt=0;Jt>26,this.words[Jt]=Xr&67108863;return this.negative=1,this._strip()},le.prototype._wordDiv=function(be,kr){var xr=this.length-be.length,Wr=this.clone(),Jt=be,Xr=Jt.words[Jt.length-1]|0,zr=this._countBits(Xr);xr=26-zr,xr!==0&&(Jt=Jt.ushln(xr),Wr.iushln(xr),Xr=Jt.words[Jt.length-1]|0);var Jr=Wr.length-Jt.length,Nr;if(kr!=="mod"){Nr=new le(null),Nr.length=Jr+1,Nr.words=new Array(Nr.length);for(var Hr=0;Hr=0;Gn--){var mn=(Wr.words[Jt.length+Gn]|0)*67108864+(Wr.words[Jt.length+Gn-1]|0);for(mn=Math.min(mn/Xr|0,67108863),Wr._ishlnsubmul(Jt,mn,Gn);Wr.negative!==0;)mn--,Wr.negative=0,Wr._ishlnsubmul(Jt,1,Gn),Wr.isZero()||(Wr.negative^=1);Nr&&(Nr.words[Gn]=mn)}return Nr&&Nr._strip(),Wr._strip(),kr!=="div"&&xr!==0&&Wr.iushrn(xr),{div:Nr||null,mod:Wr}},le.prototype.divmod=function(be,kr,xr){if(ce(!be.isZero()),this.isZero())return{div:new le(0),mod:new le(0)};var Wr,Jt,Xr;return this.negative!==0&&be.negative===0?(Xr=this.neg().divmod(be,kr),kr!=="mod"&&(Wr=Xr.div.neg()),kr!=="div"&&(Jt=Xr.mod.neg(),xr&&Jt.negative!==0&&Jt.iadd(be)),{div:Wr,mod:Jt}):this.negative===0&&be.negative!==0?(Xr=this.divmod(be.neg(),kr),kr!=="mod"&&(Wr=Xr.div.neg()),{div:Wr,mod:Xr.mod}):(this.negative&be.negative)!==0?(Xr=this.neg().divmod(be.neg(),kr),kr!=="div"&&(Jt=Xr.mod.neg(),xr&&Jt.negative!==0&&Jt.isub(be)),{div:Xr.div,mod:Jt}):be.length>this.length||this.cmp(be)<0?{div:new le(0),mod:this}:be.length===1?kr==="div"?{div:this.divn(be.words[0]),mod:null}:kr==="mod"?{div:null,mod:new le(this.modrn(be.words[0]))}:{div:this.divn(be.words[0]),mod:new le(this.modrn(be.words[0]))}:this._wordDiv(be,kr)},le.prototype.div=function(be){return this.divmod(be,"div",!1).div},le.prototype.mod=function(be){return this.divmod(be,"mod",!1).mod},le.prototype.umod=function(be){return this.divmod(be,"mod",!0).mod},le.prototype.divRound=function(be){var kr=this.divmod(be);if(kr.mod.isZero())return kr.div;var xr=kr.div.negative!==0?kr.mod.isub(be):kr.mod,Wr=be.ushrn(1),Jt=be.andln(1),Xr=xr.cmp(Wr);return Xr<0||Jt===1&&Xr===0?kr.div:kr.div.negative!==0?kr.div.isubn(1):kr.div.iaddn(1)},le.prototype.modrn=function(be){var kr=be<0;kr&&(be=-be),ce(be<=67108863);for(var xr=(1<<26)%be,Wr=0,Jt=this.length-1;Jt>=0;Jt--)Wr=(xr*Wr+(this.words[Jt]|0))%be;return kr?-Wr:Wr},le.prototype.modn=function(be){return this.modrn(be)},le.prototype.idivn=function(be){var kr=be<0;kr&&(be=-be),ce(be<=67108863);for(var xr=0,Wr=this.length-1;Wr>=0;Wr--){var Jt=(this.words[Wr]|0)+xr*67108864;this.words[Wr]=Jt/be|0,xr=Jt%be}return this._strip(),kr?this.ineg():this},le.prototype.divn=function(be){return this.clone().idivn(be)},le.prototype.egcd=function(be){ce(be.negative===0),ce(!be.isZero());var kr=this,xr=be.clone();kr.negative!==0?kr=kr.umod(be):kr=kr.clone();for(var Wr=new le(1),Jt=new le(0),Xr=new le(0),zr=new le(1),Jr=0;kr.isEven()&&xr.isEven();)kr.iushrn(1),xr.iushrn(1),++Jr;for(var Nr=xr.clone(),Hr=kr.clone();!kr.isZero();){for(var On=0,Gn=1;(kr.words[0]&Gn)===0&&On<26;++On,Gn<<=1);if(On>0)for(kr.iushrn(On);On-- >0;)(Wr.isOdd()||Jt.isOdd())&&(Wr.iadd(Nr),Jt.isub(Hr)),Wr.iushrn(1),Jt.iushrn(1);for(var mn=0,Nn=1;(xr.words[0]&Nn)===0&&mn<26;++mn,Nn<<=1);if(mn>0)for(xr.iushrn(mn);mn-- >0;)(Xr.isOdd()||zr.isOdd())&&(Xr.iadd(Nr),zr.isub(Hr)),Xr.iushrn(1),zr.iushrn(1);kr.cmp(xr)>=0?(kr.isub(xr),Wr.isub(Xr),Jt.isub(zr)):(xr.isub(kr),Xr.isub(Wr),zr.isub(Jt))}return{a:Xr,b:zr,gcd:xr.iushln(Jr)}},le.prototype._invmp=function(be){ce(be.negative===0),ce(!be.isZero());var kr=this,xr=be.clone();kr.negative!==0?kr=kr.umod(be):kr=kr.clone();for(var Wr=new le(1),Jt=new le(0),Xr=xr.clone();kr.cmpn(1)>0&&xr.cmpn(1)>0;){for(var zr=0,Jr=1;(kr.words[0]&Jr)===0&&zr<26;++zr,Jr<<=1);if(zr>0)for(kr.iushrn(zr);zr-- >0;)Wr.isOdd()&&Wr.iadd(Xr),Wr.iushrn(1);for(var Nr=0,Hr=1;(xr.words[0]&Hr)===0&&Nr<26;++Nr,Hr<<=1);if(Nr>0)for(xr.iushrn(Nr);Nr-- >0;)Jt.isOdd()&&Jt.iadd(Xr),Jt.iushrn(1);kr.cmp(xr)>=0?(kr.isub(xr),Wr.isub(Jt)):(xr.isub(kr),Jt.isub(Wr))}var On;return kr.cmpn(1)===0?On=Wr:On=Jt,On.cmpn(0)<0&&On.iadd(be),On},le.prototype.gcd=function(be){if(this.isZero())return be.abs();if(be.isZero())return this.abs();var kr=this.clone(),xr=be.clone();kr.negative=0,xr.negative=0;for(var Wr=0;kr.isEven()&&xr.isEven();Wr++)kr.iushrn(1),xr.iushrn(1);do{for(;kr.isEven();)kr.iushrn(1);for(;xr.isEven();)xr.iushrn(1);var Jt=kr.cmp(xr);if(Jt<0){var Xr=kr;kr=xr,xr=Xr}else if(Jt===0||xr.cmpn(1)===0)break;kr.isub(xr)}while(!0);return xr.iushln(Wr)},le.prototype.invm=function(be){return this.egcd(be).a.umod(be)},le.prototype.isEven=function(){return(this.words[0]&1)===0},le.prototype.isOdd=function(){return(this.words[0]&1)===1},le.prototype.andln=function(be){return this.words[0]&be},le.prototype.bincn=function(be){ce(typeof be=="number");var kr=be%26,xr=(be-kr)/26,Wr=1<>>26,zr&=67108863,this.words[Xr]=zr}return Jt!==0&&(this.words[Xr]=Jt,this.length++),this},le.prototype.isZero=function(){return this.length===1&&this.words[0]===0},le.prototype.cmpn=function(be){var kr=be<0;if(this.negative!==0&&!kr)return-1;if(this.negative===0&&kr)return 1;this._strip();var xr;if(this.length>1)xr=1;else{kr&&(be=-be),ce(be<=67108863,"Number is too big");var Wr=this.words[0]|0;xr=Wr===be?0:Wrbe.length)return 1;if(this.length=0;xr--){var Wr=this.words[xr]|0,Jt=be.words[xr]|0;if(Wr!==Jt){WrJt&&(kr=1);break}}return kr},le.prototype.gtn=function(be){return this.cmpn(be)===1},le.prototype.gt=function(be){return this.cmp(be)===1},le.prototype.gten=function(be){return this.cmpn(be)>=0},le.prototype.gte=function(be){return this.cmp(be)>=0},le.prototype.ltn=function(be){return this.cmpn(be)===-1},le.prototype.lt=function(be){return this.cmp(be)===-1},le.prototype.lten=function(be){return this.cmpn(be)<=0},le.prototype.lte=function(be){return this.cmp(be)<=0},le.prototype.eqn=function(be){return this.cmpn(be)===0},le.prototype.eq=function(be){return this.cmp(be)===0},le.red=function(be){return new Xt(be)},le.prototype.toRed=function(be){return ce(!this.red,"Already a number in reduction context"),ce(this.negative===0,"red works only with positives"),be.convertTo(this)._forceRed(be)},le.prototype.fromRed=function(){return ce(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},le.prototype._forceRed=function(be){return this.red=be,this},le.prototype.forceRed=function(be){return ce(!this.red,"Already a number in reduction context"),this._forceRed(be)},le.prototype.redAdd=function(be){return ce(this.red,"redAdd works only with red numbers"),this.red.add(this,be)},le.prototype.redIAdd=function(be){return ce(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,be)},le.prototype.redSub=function(be){return ce(this.red,"redSub works only with red numbers"),this.red.sub(this,be)},le.prototype.redISub=function(be){return ce(this.red,"redISub works only with red numbers"),this.red.isub(this,be)},le.prototype.redShl=function(be){return ce(this.red,"redShl works only with red numbers"),this.red.shl(this,be)},le.prototype.redMul=function(be){return ce(this.red,"redMul works only with red numbers"),this.red._verify2(this,be),this.red.mul(this,be)},le.prototype.redIMul=function(be){return ce(this.red,"redMul works only with red numbers"),this.red._verify2(this,be),this.red.imul(this,be)},le.prototype.redSqr=function(){return ce(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},le.prototype.redISqr=function(){return ce(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},le.prototype.redSqrt=function(){return ce(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},le.prototype.redInvm=function(){return ce(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},le.prototype.redNeg=function(){return ce(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},le.prototype.redPow=function(be){return ce(this.red&&!be.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,be)};var Gr={k256:null,p224:null,p192:null,p25519:null};function Ur(Kr,be){this.name=Kr,this.p=new le(be,16),this.n=this.p.bitLength(),this.k=new le(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ur.prototype._tmp=function(){var be=new le(null);return be.words=new Array(Math.ceil(this.n/13)),be},Ur.prototype.ireduce=function(be){var kr=be,xr;do this.split(kr,this.tmp),kr=this.imulK(kr),kr=kr.iadd(this.tmp),xr=kr.bitLength();while(xr>this.n);var Wr=xr0?kr.isub(this.p):kr.strip!==void 0?kr.strip():kr._strip(),kr},Ur.prototype.split=function(be,kr){be.iushrn(this.n,0,kr)},Ur.prototype.imulK=function(be){return be.imul(this.k)};function Qr(){Ur.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}fe(Qr,Ur),Qr.prototype.split=function(be,kr){for(var xr=4194303,Wr=Math.min(be.length,9),Jt=0;Jt>>22,Xr=zr}Xr>>>=22,be.words[Jt-10]=Xr,Xr===0&&be.length>10?be.length-=10:be.length-=9},Qr.prototype.imulK=function(be){be.words[be.length]=0,be.words[be.length+1]=0,be.length+=2;for(var kr=0,xr=0;xr>>=26,be.words[xr]=Jt,kr=Wr}return kr!==0&&(be.words[be.length++]=kr),be},le._prime=function(be){if(Gr[be])return Gr[be];var kr;if(be==="k256")kr=new Qr;else if(be==="p224")kr=new vn;else if(be==="p192")kr=new Yt;else if(be==="p25519")kr=new fn;else throw new Error("Unknown prime "+be);return Gr[be]=kr,kr};function Xt(Kr){if(typeof Kr=="string"){var be=le._prime(Kr);this.m=be.p,this.prime=be}else ce(Kr.gtn(1),"modulus must be greater than 1"),this.m=Kr,this.prime=null}Xt.prototype._verify1=function(be){ce(be.negative===0,"red works only with positives"),ce(be.red,"red works only with red numbers")},Xt.prototype._verify2=function(be,kr){ce((be.negative|kr.negative)===0,"red works only with positives"),ce(be.red&&be.red===kr.red,"red works only with red numbers")},Xt.prototype.imod=function(be){return this.prime?this.prime.ireduce(be)._forceRed(this):(Ee(be,be.umod(this.m)._forceRed(this)),be)},Xt.prototype.neg=function(be){return be.isZero()?be.clone():this.m.sub(be)._forceRed(this)},Xt.prototype.add=function(be,kr){this._verify2(be,kr);var xr=be.add(kr);return xr.cmp(this.m)>=0&&xr.isub(this.m),xr._forceRed(this)},Xt.prototype.iadd=function(be,kr){this._verify2(be,kr);var xr=be.iadd(kr);return xr.cmp(this.m)>=0&&xr.isub(this.m),xr},Xt.prototype.sub=function(be,kr){this._verify2(be,kr);var xr=be.sub(kr);return xr.cmpn(0)<0&&xr.iadd(this.m),xr._forceRed(this)},Xt.prototype.isub=function(be,kr){this._verify2(be,kr);var xr=be.isub(kr);return xr.cmpn(0)<0&&xr.iadd(this.m),xr},Xt.prototype.shl=function(be,kr){return this._verify1(be),this.imod(be.ushln(kr))},Xt.prototype.imul=function(be,kr){return this._verify2(be,kr),this.imod(be.imul(kr))},Xt.prototype.mul=function(be,kr){return this._verify2(be,kr),this.imod(be.mul(kr))},Xt.prototype.isqr=function(be){return this.imul(be,be.clone())},Xt.prototype.sqr=function(be){return this.mul(be,be)},Xt.prototype.sqrt=function(be){if(be.isZero())return be.clone();var kr=this.m.andln(3);if(ce(kr%2===1),kr===3){var xr=this.m.add(new le(1)).iushrn(2);return this.pow(be,xr)}for(var Wr=this.m.subn(1),Jt=0;!Wr.isZero()&&Wr.andln(1)===0;)Jt++,Wr.iushrn(1);ce(!Wr.isZero());var Xr=new le(1).toRed(this),zr=Xr.redNeg(),Jr=this.m.subn(1).iushrn(1),Nr=this.m.bitLength();for(Nr=new le(2*Nr*Nr).toRed(this);this.pow(Nr,Jr).cmp(zr)!==0;)Nr.redIAdd(zr);for(var Hr=this.pow(Nr,Wr),On=this.pow(be,Wr.addn(1).iushrn(1)),Gn=this.pow(be,Wr),mn=Jt;Gn.cmp(Xr)!==0;){for(var Nn=Gn,In=0;Nn.cmp(Xr)!==0;In++)Nn=Nn.redSqr();ce(In=0;Jt--){for(var Hr=kr.words[Jt],On=Nr-1;On>=0;On--){var Gn=Hr>>On&1;if(Xr!==Wr[0]&&(Xr=this.sqr(Xr)),Gn===0&&zr===0){Jr=0;continue}zr<<=1,zr|=Gn,Jr++,!(Jr!==xr&&(Jt!==0||On!==0))&&(Xr=this.mul(Xr,Wr[zr]),Jr=0,zr=0)}Nr=26}return Xr},Xt.prototype.convertTo=function(be){var kr=be.umod(this.m);return kr===be?kr.clone():kr},Xt.prototype.convertFrom=function(be){var kr=be.clone();return kr.red=null,kr},le.mont=function(be){return new Qt(be)};function Qt(Kr){Xt.call(this,Kr),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new le(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}fe(Qt,Xt),Qt.prototype.convertTo=function(be){return this.imod(be.ushln(this.shift))},Qt.prototype.convertFrom=function(be){var kr=this.imod(be.mul(this.rinv));return kr.red=null,kr},Qt.prototype.imul=function(be,kr){if(be.isZero()||kr.isZero())return be.words[0]=0,be.length=1,be;var xr=be.imul(kr),Wr=xr.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=xr.isub(Wr).iushrn(this.shift),Xr=Jt;return Jt.cmp(this.m)>=0?Xr=Jt.isub(this.m):Jt.cmpn(0)<0&&(Xr=Jt.iadd(this.m)),Xr._forceRed(this)},Qt.prototype.mul=function(be,kr){if(be.isZero()||kr.isZero())return new le(0)._forceRed(this);var xr=be.mul(kr),Wr=xr.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=xr.isub(Wr).iushrn(this.shift),Xr=Jt;return Jt.cmp(this.m)>=0?Xr=Jt.isub(this.m):Jt.cmpn(0)<0&&(Xr=Jt.iadd(this.m)),Xr._forceRed(this)},Qt.prototype.invm=function(be){var kr=this.imod(be._invmp(this.m).mul(this.r2));return kr._forceRed(this)}})(typeof k>"u"||k,v)}}),require_safe_buffer$1=__commonJS({"node_modules/safe-buffer/index.js"(v,k){var ie=require_buffer(),ae=ie.Buffer;function ce(le,ve){for(var pe in le)ve[pe]=le[pe]}ae.from&&ae.alloc&&ae.allocUnsafe&&ae.allocUnsafeSlow?k.exports=ie:(ce(ie,v),v.Buffer=fe);function fe(le,ve,pe){return ae(le,ve,pe)}fe.prototype=Object.create(ae.prototype),ce(ae,fe),fe.from=function(le,ve,pe){if(typeof le=="number")throw new TypeError("Argument must not be a number");return ae(le,ve,pe)},fe.alloc=function(le,ve,pe){if(typeof le!="number")throw new TypeError("Argument must be a number");var ye=ae(le);return ve!==void 0?typeof pe=="string"?ye.fill(ve,pe):ye.fill(ve):ye.fill(0),ye},fe.allocUnsafe=function(le){if(typeof le!="number")throw new TypeError("Argument must be a number");return ae(le)},fe.allocUnsafeSlow=function(le){if(typeof le!="number")throw new TypeError("Argument must be a number");return ie.SlowBuffer(le)}}}),require_src$3=__commonJS({"node_modules/base-x/src/index.js"(v,k){var ie=require_safe_buffer$1().Buffer;function ae(ce){if(ce.length>=255)throw new TypeError("Alphabet too long");for(var fe=new Uint8Array(256),le=0;le>>0,Ur=new Uint8Array(Gr);Lr!==Vr;){for(var Qr=ur[Lr],vn=0,Yt=Gr-1;(Qr!==0||vn>>0,Ur[Yt]=Qr%me>>>0,Qr=Qr/me>>>0;if(Qr!==0)throw new Error("Non-zero carry");Mr=vn,Lr++}for(var fn=Gr-Mr;fn!==Gr&&Ur[fn]===0;)fn++;for(var Xt=Ee.repeat(jr);fn>>0,Gr=new Uint8Array(Vr);ur[jr];){var Ur=fe[ur.charCodeAt(jr)];if(Ur===255)return;for(var Qr=0,vn=Vr-1;(Ur!==0||Qr>>0,Gr[vn]=Ur%256>>>0,Ur=Ur/256>>>0;if(Ur!==0)throw new Error("Non-zero carry");Lr=Qr,jr++}for(var Yt=Vr-Lr;Yt!==Vr&&Gr[Yt]===0;)Yt++;var fn=ie.allocUnsafe(Mr+(Vr-Yt));fn.fill(0,0,Mr);for(var Xt=Mr;Yt!==Vr;)fn[Xt++]=Gr[Yt++];return fn}function Or(ur){var jr=Pr(ur);if(jr)return jr;throw new Error("Non-base"+me+" character")}return{encode:$r,decodeUnsafe:Pr,decode:Or}}k.exports=ae}}),require_bs58$1=__commonJS({"node_modules/bs58/index.js"(v,k){var ie=require_src$3(),ae="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";k.exports=ie(ae)}}),encoding_exports$1={};__export(encoding_exports$1,{TextDecoder:()=>TextDecoder2$1,TextEncoder:()=>TextEncoder$2});function inRange$1(v,k,ie){return k<=v&&v<=ie}function ToDictionary$1(v){if(v===void 0)return{};if(v===Object(v))return v;throw TypeError("Could not convert argument to dictionary")}function stringToCodePoints$1(v){for(var k=String(v),ie=k.length,ae=0,ce=[];ae57343)ce.push(fe);else if(56320<=fe&&fe<=57343)ce.push(65533);else if(55296<=fe&&fe<=56319)if(ae===ie-1)ce.push(65533);else{var le=v.charCodeAt(ae+1);if(56320<=le&&le<=57343){var ve=fe&1023,pe=le&1023;ce.push(65536+(ve<<10)+pe),ae+=1}else ce.push(65533)}ae+=1}return ce}function codePointsToString$1(v){for(var k="",ie=0;ie>10)+55296,(ae&1023)+56320))}return k}function Stream$1(v){this.tokens=[].slice.call(v)}function decoderError$1(v,k){if(v)throw TypeError("Decoder error");return k||65533}function TextDecoder2$1(v,k){if(!(this instanceof TextDecoder2$1))return new TextDecoder2$1(v,k);if(v=v!==void 0?String(v).toLowerCase():DEFAULT_ENCODING$1,v!==DEFAULT_ENCODING$1)throw new Error("Encoding not supported. Only utf-8 is supported");k=ToDictionary$1(k),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(k.fatal),this._ignoreBOM=Boolean(k.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function TextEncoder$2(v,k){if(!(this instanceof TextEncoder$2))return new TextEncoder$2(v,k);if(v=v!==void 0?String(v).toLowerCase():DEFAULT_ENCODING$1,v!==DEFAULT_ENCODING$1)throw new Error("Encoding not supported. Only utf-8 is supported");k=ToDictionary$1(k),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(k.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function UTF8Decoder$1(v){var k=v.fatal,ie=0,ae=0,ce=0,fe=128,le=191;this.handler=function(ve,pe){if(pe===end_of_stream$1&&ce!==0)return ce=0,decoderError$1(k);if(pe===end_of_stream$1)return finished$1;if(ce===0){if(inRange$1(pe,0,127))return pe;if(inRange$1(pe,194,223))ce=1,ie=pe-192;else if(inRange$1(pe,224,239))pe===224&&(fe=160),pe===237&&(le=159),ce=2,ie=pe-224;else if(inRange$1(pe,240,244))pe===240&&(fe=144),pe===244&&(le=143),ce=3,ie=pe-240;else return decoderError$1(k);return ie=ie<<6*ce,null}if(!inRange$1(pe,fe,le))return ie=ce=ae=0,fe=128,le=191,ve.prepend(pe),decoderError$1(k);if(fe=128,le=191,ae+=1,ie+=pe-128<<6*(ce-ae),ae!==ce)return null;var ye=ie;return ie=ce=ae=0,ye}}function UTF8Encoder$1(v){v.fatal,this.handler=function(k,ie){if(ie===end_of_stream$1)return finished$1;if(inRange$1(ie,0,127))return ie;var ae,ce;inRange$1(ie,128,2047)?(ae=1,ce=192):inRange$1(ie,2048,65535)?(ae=2,ce=224):inRange$1(ie,65536,1114111)&&(ae=3,ce=240);for(var fe=[(ie>>6*ae)+ce];ae>0;){var le=ie>>6*(ae-1);fe.push(128|le&63),ae-=1}return fe}}var end_of_stream$1,finished$1,DEFAULT_ENCODING$1,init_encoding$1=__esm({"node_modules/text-encoding-utf-8/src/encoding.js"(){end_of_stream$1=-1,Stream$1.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():end_of_stream$1},prepend:function(v){if(Array.isArray(v))for(var k=v;k.length;)this.tokens.unshift(k.pop());else this.tokens.unshift(v)},push:function(v){if(Array.isArray(v))for(var k=v;k.length;)this.tokens.push(k.shift());else this.tokens.push(v)}},finished$1=-1,DEFAULT_ENCODING$1="utf-8",TextDecoder2$1.prototype={decode:function(k,ie){var ae;typeof k=="object"&&k instanceof ArrayBuffer?ae=new Uint8Array(k):typeof k=="object"&&"buffer"in k&&k.buffer instanceof ArrayBuffer?ae=new Uint8Array(k.buffer,k.byteOffset,k.byteLength):ae=new Uint8Array(0),ie=ToDictionary$1(ie),this._streaming||(this._decoder=new UTF8Decoder$1({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(ie.stream);for(var ce=new Stream$1(ae),fe=[],le;!ce.endOfStream()&&(le=this._decoder.handler(ce,ce.read()),le!==finished$1);)le!==null&&(Array.isArray(le)?fe.push.apply(fe,le):fe.push(le));if(!this._streaming){do{if(le=this._decoder.handler(ce,ce.read()),le===finished$1)break;le!==null&&(Array.isArray(le)?fe.push.apply(fe,le):fe.push(le))}while(!ce.endOfStream());this._decoder=null}return fe.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(fe[0]===65279?(this._BOMseen=!0,fe.shift()):this._BOMseen=!0),codePointsToString$1(fe)}},TextEncoder$2.prototype={encode:function(k,ie){k=k?String(k):"",ie=ToDictionary$1(ie),this._streaming||(this._encoder=new UTF8Encoder$1(this._options)),this._streaming=Boolean(ie.stream);for(var ae=[],ce=new Stream$1(stringToCodePoints$1(k)),fe;!ce.endOfStream()&&(fe=this._encoder.handler(ce,ce.read()),fe!==finished$1);)Array.isArray(fe)?ae.push.apply(ae,fe):ae.push(fe);if(!this._streaming){for(;fe=this._encoder.handler(ce,ce.read()),fe!==finished$1;)Array.isArray(fe)?ae.push.apply(ae,fe):ae.push(fe);this._encoder=null}return new Uint8Array(ae)}}}}),require_lib$1=__commonJS({"node_modules/borsh/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(Yt,fn,Xt,Qt){Qt===void 0&&(Qt=Xt),Object.defineProperty(Yt,Qt,{enumerable:!0,get:function(){return fn[Xt]}})}:function(Yt,fn,Xt,Qt){Qt===void 0&&(Qt=Xt),Yt[Qt]=fn[Xt]}),ie=v&&v.__setModuleDefault||(Object.create?function(Yt,fn){Object.defineProperty(Yt,"default",{enumerable:!0,value:fn})}:function(Yt,fn){Yt.default=fn}),ae=v&&v.__decorate||function(Yt,fn,Xt,Qt){var Kr=arguments.length,be=Kr<3?fn:Qt===null?Qt=Object.getOwnPropertyDescriptor(fn,Xt):Qt,kr;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")be=Reflect.decorate(Yt,fn,Xt,Qt);else for(var xr=Yt.length-1;xr>=0;xr--)(kr=Yt[xr])&&(be=(Kr<3?kr(be):Kr>3?kr(fn,Xt,be):kr(fn,Xt))||be);return Kr>3&&be&&Object.defineProperty(fn,Xt,be),be},ce=v&&v.__importStar||function(Yt){if(Yt&&Yt.__esModule)return Yt;var fn={};if(Yt!=null)for(var Xt in Yt)Xt!=="default"&&Object.hasOwnProperty.call(Yt,Xt)&&k(fn,Yt,Xt);return ie(fn,Yt),fn},fe=v&&v.__importDefault||function(Yt){return Yt&&Yt.__esModule?Yt:{default:Yt}};Object.defineProperty(v,"__esModule",{value:!0}),v.deserializeUnchecked=v.deserialize=v.serialize=v.BinaryReader=v.BinaryWriter=v.BorshError=v.baseDecode=v.baseEncode=void 0;var le=fe(require_bn$2()),ve=fe(require_bs58$1()),pe=ce((init_encoding$1(),__toCommonJS(encoding_exports$1))),ye=typeof TextDecoder!="function"?pe.TextDecoder:TextDecoder,me=new ye("utf-8",{fatal:!0});function Ee(Yt){return typeof Yt=="string"&&(Yt=Buffer.from(Yt,"utf8")),ve.default.encode(Buffer.from(Yt))}v.baseEncode=Ee;function cr(Yt){return Buffer.from(ve.default.decode(Yt))}v.baseDecode=cr;var Br=1024,$r=class extends Error{constructor(Yt){super(Yt),this.fieldPath=[],this.originalMessage=Yt}addToFieldPath(Yt){this.fieldPath.splice(0,0,Yt),this.message=this.originalMessage+": "+this.fieldPath.join(".")}};v.BorshError=$r;var Pr=class{constructor(){this.buf=Buffer.alloc(Br),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(Br)]))}writeU8(Yt){this.maybeResize(),this.buf.writeUInt8(Yt,this.length),this.length+=1}writeU16(Yt){this.maybeResize(),this.buf.writeUInt16LE(Yt,this.length),this.length+=2}writeU32(Yt){this.maybeResize(),this.buf.writeUInt32LE(Yt,this.length),this.length+=4}writeU64(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",8)))}writeU128(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",16)))}writeU256(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",32)))}writeU512(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",64)))}writeBuffer(Yt){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),Yt,Buffer.alloc(Br)]),this.length+=Yt.length}writeString(Yt){this.maybeResize();const fn=Buffer.from(Yt,"utf8");this.writeU32(fn.length),this.writeBuffer(fn)}writeFixedArray(Yt){this.writeBuffer(Buffer.from(Yt))}writeArray(Yt,fn){this.maybeResize(),this.writeU32(Yt.length);for(const Xt of Yt)this.maybeResize(),fn(Xt)}toArray(){return this.buf.subarray(0,this.length)}};v.BinaryWriter=Pr;function Or(Yt,fn,Xt){const Qt=Xt.value;Xt.value=function(...Kr){try{return Qt.apply(this,Kr)}catch(be){if(be instanceof RangeError){const kr=be.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(kr)>=0)throw new $r("Reached the end of buffer when deserializing")}throw be}}}var ur=class{constructor(Yt){this.buf=Yt,this.offset=0}readU8(){const Yt=this.buf.readUInt8(this.offset);return this.offset+=1,Yt}readU16(){const Yt=this.buf.readUInt16LE(this.offset);return this.offset+=2,Yt}readU32(){const Yt=this.buf.readUInt32LE(this.offset);return this.offset+=4,Yt}readU64(){const Yt=this.readBuffer(8);return new le.default(Yt,"le")}readU128(){const Yt=this.readBuffer(16);return new le.default(Yt,"le")}readU256(){const Yt=this.readBuffer(32);return new le.default(Yt,"le")}readU512(){const Yt=this.readBuffer(64);return new le.default(Yt,"le")}readBuffer(Yt){if(this.offset+Yt>this.buf.length)throw new $r(`Expected buffer length ${Yt} isn't within bounds`);const fn=this.buf.slice(this.offset,this.offset+Yt);return this.offset+=Yt,fn}readString(){const Yt=this.readU32(),fn=this.readBuffer(Yt);try{return me.decode(fn)}catch(Xt){throw new $r(`Error decoding UTF-8 string: ${Xt}`)}}readFixedArray(Yt){return new Uint8Array(this.readBuffer(Yt))}readArray(Yt){const fn=this.readU32(),Xt=Array();for(let Qt=0;Qt{Mr(Yt,fn,be,Qt[0],Kr)});else if(Qt.kind!==void 0)switch(Qt.kind){case"option":{Xt==null?Kr.writeU8(0):(Kr.writeU8(1),Mr(Yt,fn,Xt,Qt.type,Kr));break}case"map":{Kr.writeU32(Xt.size),Xt.forEach((be,kr)=>{Mr(Yt,fn,kr,Qt.key,Kr),Mr(Yt,fn,be,Qt.value,Kr)});break}default:throw new $r(`FieldType ${Qt} unrecognized`)}else Lr(Yt,Xt,Kr)}catch(be){throw be instanceof $r&&be.addToFieldPath(fn),be}}function Lr(Yt,fn,Xt){if(typeof fn.borshSerialize=="function"){fn.borshSerialize(Xt);return}const Qt=Yt.get(fn.constructor);if(!Qt)throw new $r(`Class ${fn.constructor.name} is missing in schema`);if(Qt.kind==="struct")Qt.fields.map(([Kr,be])=>{Mr(Yt,Kr,fn[Kr],be,Xt)});else if(Qt.kind==="enum"){const Kr=fn[Qt.field];for(let be=0;beGr(Yt,fn,Xt[0],Qt))}if(Xt.kind==="option")return Qt.readU8()?Gr(Yt,fn,Xt.type,Qt):void 0;if(Xt.kind==="map"){let Kr=new Map;const be=Qt.readU32();for(let kr=0;kr=Qt.values.length)throw new $r(`Enum index: ${Kr} is out of range`);const[be,kr]=Qt.values[Kr],xr=Gr(Yt,be,kr,Xt);return new fn({[be]:xr})}throw new $r(`Unexpected schema kind: ${Qt.kind} for ${fn.constructor.name}`)}function Qr(Yt,fn,Xt,Qt=ur){const Kr=new Qt(Xt),be=Ur(Yt,fn,Kr);if(Kr.offset>24&255,Yr[Wt+1]=ln>>16&255,Yr[Wt+2]=ln>>8&255,Yr[Wt+3]=ln&255,Yr[Wt+4]=qr>>24&255,Yr[Wt+5]=qr>>16&255,Yr[Wt+6]=qr>>8&255,Yr[Wt+7]=qr&255}function Or(Yr,Wt,ln,qr,dn){var ri,Zn=0;for(ri=0;ri>>8)-1}function ur(Yr,Wt,ln,qr){return Or(Yr,Wt,ln,qr,16)}function jr(Yr,Wt,ln,qr){return Or(Yr,Wt,ln,qr,32)}function Mr(Yr,Wt,ln,qr){for(var dn=qr[0]&255|(qr[1]&255)<<8|(qr[2]&255)<<16|(qr[3]&255)<<24,ri=ln[0]&255|(ln[1]&255)<<8|(ln[2]&255)<<16|(ln[3]&255)<<24,Zn=ln[4]&255|(ln[5]&255)<<8|(ln[6]&255)<<16|(ln[7]&255)<<24,ai=ln[8]&255|(ln[9]&255)<<8|(ln[10]&255)<<16|(ln[11]&255)<<24,bi=ln[12]&255|(ln[13]&255)<<8|(ln[14]&255)<<16|(ln[15]&255)<<24,_i=qr[4]&255|(qr[5]&255)<<8|(qr[6]&255)<<16|(qr[7]&255)<<24,fi=Wt[0]&255|(Wt[1]&255)<<8|(Wt[2]&255)<<16|(Wt[3]&255)<<24,yo=Wt[4]&255|(Wt[5]&255)<<8|(Wt[6]&255)<<16|(Wt[7]&255)<<24,Di=Wt[8]&255|(Wt[9]&255)<<8|(Wt[10]&255)<<16|(Wt[11]&255)<<24,Ni=Wt[12]&255|(Wt[13]&255)<<8|(Wt[14]&255)<<16|(Wt[15]&255)<<24,oo=qr[8]&255|(qr[9]&255)<<8|(qr[10]&255)<<16|(qr[11]&255)<<24,fo=ln[16]&255|(ln[17]&255)<<8|(ln[18]&255)<<16|(ln[19]&255)<<24,co=ln[20]&255|(ln[21]&255)<<8|(ln[22]&255)<<16|(ln[23]&255)<<24,Ao=ln[24]&255|(ln[25]&255)<<8|(ln[26]&255)<<16|(ln[27]&255)<<24,vo=ln[28]&255|(ln[29]&255)<<8|(ln[30]&255)<<16|(ln[31]&255)<<24,_o=qr[12]&255|(qr[13]&255)<<8|(qr[14]&255)<<16|(qr[15]&255)<<24,so=dn,lo=ri,eo=Zn,uo=ai,ho=bi,ro=_i,ci=fi,pi=yo,mi=Di,Si=Ni,Ti=oo,xi=fo,To=co,Mo=Ao,Co=vo,Fo=_o,ni,Ko=0;Ko<20;Ko+=2)ni=so+To|0,ho^=ni<<7|ni>>>32-7,ni=ho+so|0,mi^=ni<<9|ni>>>32-9,ni=mi+ho|0,To^=ni<<13|ni>>>32-13,ni=To+mi|0,so^=ni<<18|ni>>>32-18,ni=ro+lo|0,Si^=ni<<7|ni>>>32-7,ni=Si+ro|0,Mo^=ni<<9|ni>>>32-9,ni=Mo+Si|0,lo^=ni<<13|ni>>>32-13,ni=lo+Mo|0,ro^=ni<<18|ni>>>32-18,ni=Ti+ci|0,Co^=ni<<7|ni>>>32-7,ni=Co+Ti|0,eo^=ni<<9|ni>>>32-9,ni=eo+Co|0,ci^=ni<<13|ni>>>32-13,ni=ci+eo|0,Ti^=ni<<18|ni>>>32-18,ni=Fo+xi|0,uo^=ni<<7|ni>>>32-7,ni=uo+Fo|0,pi^=ni<<9|ni>>>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16&255,Yr[19]=ho>>>24&255,Yr[20]=ro>>>0&255,Yr[21]=ro>>>8&255,Yr[22]=ro>>>16&255,Yr[23]=ro>>>24&255,Yr[24]=ci>>>0&255,Yr[25]=ci>>>8&255,Yr[26]=ci>>>16&255,Yr[27]=ci>>>24&255,Yr[28]=pi>>>0&255,Yr[29]=pi>>>8&255,Yr[30]=pi>>>16&255,Yr[31]=pi>>>24&255,Yr[32]=mi>>>0&255,Yr[33]=mi>>>8&255,Yr[34]=mi>>>16&255,Yr[35]=mi>>>24&255,Yr[36]=Si>>>0&255,Yr[37]=Si>>>8&255,Yr[38]=Si>>>16&255,Yr[39]=Si>>>24&255,Yr[40]=Ti>>>0&255,Yr[41]=Ti>>>8&255,Yr[42]=Ti>>>16&255,Yr[43]=Ti>>>24&255,Yr[44]=xi>>>0&255,Yr[45]=xi>>>8&255,Yr[46]=xi>>>16&255,Yr[47]=xi>>>24&255,Yr[48]=To>>>0&255,Yr[49]=To>>>8&255,Yr[50]=To>>>16&255,Yr[51]=To>>>24&255,Yr[52]=Mo>>>0&255,Yr[53]=Mo>>>8&255,Yr[54]=Mo>>>16&255,Yr[55]=Mo>>>24&255,Yr[56]=Co>>>0&255,Yr[57]=Co>>>8&255,Yr[58]=Co>>>16&255,Yr[59]=Co>>>24&255,Yr[60]=Fo>>>0&255,Yr[61]=Fo>>>8&255,Yr[62]=Fo>>>16&255,Yr[63]=Fo>>>24&255}function Lr(Yr,Wt,ln,qr){for(var dn=qr[0]&255|(qr[1]&255)<<8|(qr[2]&255)<<16|(qr[3]&255)<<24,ri=ln[0]&255|(ln[1]&255)<<8|(ln[2]&255)<<16|(ln[3]&255)<<24,Zn=ln[4]&255|(ln[5]&255)<<8|(ln[6]&255)<<16|(ln[7]&255)<<24,ai=ln[8]&255|(ln[9]&255)<<8|(ln[10]&255)<<16|(ln[11]&255)<<24,bi=ln[12]&255|(ln[13]&255)<<8|(ln[14]&255)<<16|(ln[15]&255)<<24,_i=qr[4]&255|(qr[5]&255)<<8|(qr[6]&255)<<16|(qr[7]&255)<<24,fi=Wt[0]&255|(Wt[1]&255)<<8|(Wt[2]&255)<<16|(Wt[3]&255)<<24,yo=Wt[4]&255|(Wt[5]&255)<<8|(Wt[6]&255)<<16|(Wt[7]&255)<<24,Di=Wt[8]&255|(Wt[9]&255)<<8|(Wt[10]&255)<<16|(Wt[11]&255)<<24,Ni=Wt[12]&255|(Wt[13]&255)<<8|(Wt[14]&255)<<16|(Wt[15]&255)<<24,oo=qr[8]&255|(qr[9]&255)<<8|(qr[10]&255)<<16|(qr[11]&255)<<24,fo=ln[16]&255|(ln[17]&255)<<8|(ln[18]&255)<<16|(ln[19]&255)<<24,co=ln[20]&255|(ln[21]&255)<<8|(ln[22]&255)<<16|(ln[23]&255)<<24,Ao=ln[24]&255|(ln[25]&255)<<8|(ln[26]&255)<<16|(ln[27]&255)<<24,vo=ln[28]&255|(ln[29]&255)<<8|(ln[30]&255)<<16|(ln[31]&255)<<24,_o=qr[12]&255|(qr[13]&255)<<8|(qr[14]&255)<<16|(qr[15]&255)<<24,so=dn,lo=ri,eo=Zn,uo=ai,ho=bi,ro=_i,ci=fi,pi=yo,mi=Di,Si=Ni,Ti=oo,xi=fo,To=co,Mo=Ao,Co=vo,Fo=_o,ni,Ko=0;Ko<20;Ko+=2)ni=so+To|0,ho^=ni<<7|ni>>>32-7,ni=ho+so|0,mi^=ni<<9|ni>>>32-9,ni=mi+ho|0,To^=ni<<13|ni>>>32-13,ni=To+mi|0,so^=ni<<18|ni>>>32-18,ni=ro+lo|0,Si^=ni<<7|ni>>>32-7,ni=Si+ro|0,Mo^=ni<<9|ni>>>32-9,ni=Mo+Si|0,lo^=ni<<13|ni>>>32-13,ni=lo+Mo|0,ro^=ni<<18|ni>>>32-18,ni=Ti+ci|0,Co^=ni<<7|ni>>>32-7,ni=Co+Ti|0,eo^=ni<<9|ni>>>32-9,ni=eo+Co|0,ci^=ni<<13|ni>>>32-13,ni=ci+eo|0,Ti^=ni<<18|ni>>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>>>8&255,Yr[26]=mi>>>16&255,Yr[27]=mi>>>24&255,Yr[28]=Si>>>0&255,Yr[29]=Si>>>8&255,Yr[30]=Si>>>16&255,Yr[31]=Si>>>24&255}function Vr(Yr,Wt,ln,qr){Mr(Yr,Wt,ln,qr)}function Gr(Yr,Wt,ln,qr){Lr(Yr,Wt,ln,qr)}var Ur=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Qr(Yr,Wt,ln,qr,dn,ri,Zn){var ai=new Uint8Array(16),bi=new Uint8Array(64),_i,fi;for(fi=0;fi<16;fi++)ai[fi]=0;for(fi=0;fi<8;fi++)ai[fi]=ri[fi];for(;dn>=64;){for(Vr(bi,ai,Zn,Ur),fi=0;fi<64;fi++)Yr[Wt+fi]=ln[qr+fi]^bi[fi];for(_i=1,fi=8;fi<16;fi++)_i=_i+(ai[fi]&255)|0,ai[fi]=_i&255,_i>>>=8;dn-=64,Wt+=64,qr+=64}if(dn>0)for(Vr(bi,ai,Zn,Ur),fi=0;fi=64;){for(Vr(Zn,ri,dn,Ur),bi=0;bi<64;bi++)Yr[Wt+bi]=Zn[bi];for(ai=1,bi=8;bi<16;bi++)ai=ai+(ri[bi]&255)|0,ri[bi]=ai&255,ai>>>=8;ln-=64,Wt+=64}if(ln>0)for(Vr(Zn,ri,dn,Ur),bi=0;bi>>13|ln<<3)&8191,qr=Yr[4]&255|(Yr[5]&255)<<8,this.r[2]=(ln>>>10|qr<<6)&7939,dn=Yr[6]&255|(Yr[7]&255)<<8,this.r[3]=(qr>>>7|dn<<9)&8191,ri=Yr[8]&255|(Yr[9]&255)<<8,this.r[4]=(dn>>>4|ri<<12)&255,this.r[5]=ri>>>1&8190,Zn=Yr[10]&255|(Yr[11]&255)<<8,this.r[6]=(ri>>>14|Zn<<2)&8191,ai=Yr[12]&255|(Yr[13]&255)<<8,this.r[7]=(Zn>>>11|ai<<5)&8065,bi=Yr[14]&255|(Yr[15]&255)<<8,this.r[8]=(ai>>>8|bi<<8)&8191,this.r[9]=bi>>>5&127,this.pad[0]=Yr[16]&255|(Yr[17]&255)<<8,this.pad[1]=Yr[18]&255|(Yr[19]&255)<<8,this.pad[2]=Yr[20]&255|(Yr[21]&255)<<8,this.pad[3]=Yr[22]&255|(Yr[23]&255)<<8,this.pad[4]=Yr[24]&255|(Yr[25]&255)<<8,this.pad[5]=Yr[26]&255|(Yr[27]&255)<<8,this.pad[6]=Yr[28]&255|(Yr[29]&255)<<8,this.pad[7]=Yr[30]&255|(Yr[31]&255)<<8};Xt.prototype.blocks=function(Yr,Wt,ln){for(var qr=this.fin?0:2048,dn,ri,Zn,ai,bi,_i,fi,yo,Di,Ni,oo,fo,co,Ao,vo,_o,so,lo,eo,uo=this.h[0],ho=this.h[1],ro=this.h[2],ci=this.h[3],pi=this.h[4],mi=this.h[5],Si=this.h[6],Ti=this.h[7],xi=this.h[8],To=this.h[9],Mo=this.r[0],Co=this.r[1],Fo=this.r[2],ni=this.r[3],Ko=this.r[4],Wo=this.r[5],Ho=this.r[6],Uo=this.r[7],Go=this.r[8],Vo=this.r[9];ln>=16;)dn=Yr[Wt+0]&255|(Yr[Wt+1]&255)<<8,uo+=dn&8191,ri=Yr[Wt+2]&255|(Yr[Wt+3]&255)<<8,ho+=(dn>>>13|ri<<3)&8191,Zn=Yr[Wt+4]&255|(Yr[Wt+5]&255)<<8,ro+=(ri>>>10|Zn<<6)&8191,ai=Yr[Wt+6]&255|(Yr[Wt+7]&255)<<8,ci+=(Zn>>>7|ai<<9)&8191,bi=Yr[Wt+8]&255|(Yr[Wt+9]&255)<<8,pi+=(ai>>>4|bi<<12)&8191,mi+=bi>>>1&8191,_i=Yr[Wt+10]&255|(Yr[Wt+11]&255)<<8,Si+=(bi>>>14|_i<<2)&8191,fi=Yr[Wt+12]&255|(Yr[Wt+13]&255)<<8,Ti+=(_i>>>11|fi<<5)&8191,yo=Yr[Wt+14]&255|(Yr[Wt+15]&255)<<8,xi+=(fi>>>8|yo<<8)&8191,To+=yo>>>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o&=8191,_o=Di,_o+=uo*Ho,_o+=ho*Wo,_o+=ro*Ko,_o+=ci*ni,_o+=pi*Fo,Di=_o>>>13,_o&=8191,_o+=mi*Co,_o+=Si*Mo,_o+=Ti*(5*Vo),_o+=xi*(5*Go),_o+=To*(5*Uo),Di+=_o>>>13,_o&=8191,so=Di,so+=uo*Uo,so+=ho*Ho,so+=ro*Wo,so+=ci*Ko,so+=pi*ni,Di=so>>>13,so&=8191,so+=mi*Fo,so+=Si*Co,so+=Ti*Mo,so+=xi*(5*Vo),so+=To*(5*Go),Di+=so>>>13,so&=8191,lo=Di,lo+=uo*Go,lo+=ho*Uo,lo+=ro*Ho,lo+=ci*Wo,lo+=pi*Ko,Di=lo>>>13,lo&=8191,lo+=mi*ni,lo+=Si*Fo,lo+=Ti*Co,lo+=xi*Mo,lo+=To*(5*Vo),Di+=lo>>>13,lo&=8191,eo=Di,eo+=uo*Vo,eo+=ho*Go,eo+=ro*Uo,eo+=ci*Ho,eo+=pi*Wo,Di=eo>>>13,eo&=8191,eo+=mi*Ko,eo+=Si*ni,eo+=Ti*Fo,eo+=xi*Co,eo+=To*Mo,Di+=eo>>>13,eo&=8191,Di=(Di<<2)+Di|0,Di=Di+Ni|0,Ni=Di&8191,Di=Di>>>13,oo+=Di,uo=Ni,ho=oo,ro=fo,ci=co,pi=Ao,mi=vo,Si=_o,Ti=so,xi=lo,To=eo,Wt+=16,ln-=16;this.h[0]=uo,this.h[1]=ho,this.h[2]=ro,this.h[3]=ci,this.h[4]=pi,this.h[5]=mi,this.h[6]=Si,this.h[7]=Ti,this.h[8]=xi,this.h[9]=To},Xt.prototype.finish=function(Yr,Wt){var ln=new Uint16Array(10),qr,dn,ri,Zn;if(this.leftover){for(Zn=this.leftover,this.buffer[Zn++]=1;Zn<16;Zn++)this.buffer[Zn]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(qr=this.h[1]>>>13,this.h[1]&=8191,Zn=2;Zn<10;Zn++)this.h[Zn]+=qr,qr=this.h[Zn]>>>13,this.h[Zn]&=8191;for(this.h[0]+=qr*5,qr=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=qr,qr=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=qr,ln[0]=this.h[0]+5,qr=ln[0]>>>13,ln[0]&=8191,Zn=1;Zn<10;Zn++)ln[Zn]=this.h[Zn]+qr,qr=ln[Zn]>>>13,ln[Zn]&=8191;for(ln[9]-=1<<13,dn=(qr^1)-1,Zn=0;Zn<10;Zn++)ln[Zn]&=dn;for(dn=~dn,Zn=0;Zn<10;Zn++)this.h[Zn]=this.h[Zn]&dn|ln[Zn];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,ri=this.h[0]+this.pad[0],this.h[0]=ri&65535,Zn=1;Zn<8;Zn++)ri=(this.h[Zn]+this.pad[Zn]|0)+(ri>>>16)|0,this.h[Zn]=ri&65535;Yr[Wt+0]=this.h[0]>>>0&255,Yr[Wt+1]=this.h[0]>>>8&255,Yr[Wt+2]=this.h[1]>>>0&255,Yr[Wt+3]=this.h[1]>>>8&255,Yr[Wt+4]=this.h[2]>>>0&255,Yr[Wt+5]=this.h[2]>>>8&255,Yr[Wt+6]=this.h[3]>>>0&255,Yr[Wt+7]=this.h[3]>>>8&255,Yr[Wt+8]=this.h[4]>>>0&255,Yr[Wt+9]=this.h[4]>>>8&255,Yr[Wt+10]=this.h[5]>>>0&255,Yr[Wt+11]=this.h[5]>>>8&255,Yr[Wt+12]=this.h[6]>>>0&255,Yr[Wt+13]=this.h[6]>>>8&255,Yr[Wt+14]=this.h[7]>>>0&255,Yr[Wt+15]=this.h[7]>>>8&255},Xt.prototype.update=function(Yr,Wt,ln){var qr,dn;if(this.leftover){for(dn=16-this.leftover,dn>ln&&(dn=ln),qr=0;qr=16&&(dn=ln-ln%16,this.blocks(Yr,Wt,dn),Wt+=dn,ln-=dn),ln){for(qr=0;qr>16&1),ri[ln-1]&=65535;ri[15]=Zn[15]-32767-(ri[14]>>16&1),dn=ri[15]>>16&1,ri[14]&=65535,Jt(Zn,ri,1-dn)}for(ln=0;ln<16;ln++)Yr[2*ln]=Zn[ln]&255,Yr[2*ln+1]=Zn[ln]>>8}function zr(Yr,Wt){var ln=new Uint8Array(32),qr=new Uint8Array(32);return Xr(ln,Yr),Xr(qr,Wt),jr(ln,0,qr,0)}function Jr(Yr){var Wt=new Uint8Array(32);return Xr(Wt,Yr),Wt[0]&1}function Nr(Yr,Wt){var ln;for(ln=0;ln<16;ln++)Yr[ln]=Wt[2*ln]+(Wt[2*ln+1]<<8);Yr[15]&=32767}function Hr(Yr,Wt,ln){for(var qr=0;qr<16;qr++)Yr[qr]=Wt[qr]+ln[qr]}function On(Yr,Wt,ln){for(var qr=0;qr<16;qr++)Yr[qr]=Wt[qr]-ln[qr]}function Gn(Yr,Wt,ln){var qr,dn,ri=0,Zn=0,ai=0,bi=0,_i=0,fi=0,yo=0,Di=0,Ni=0,oo=0,fo=0,co=0,Ao=0,vo=0,_o=0,so=0,lo=0,eo=0,uo=0,ho=0,ro=0,ci=0,pi=0,mi=0,Si=0,Ti=0,xi=0,To=0,Mo=0,Co=0,Fo=0,ni=ln[0],Ko=ln[1],Wo=ln[2],Ho=ln[3],Uo=ln[4],Go=ln[5],Vo=ln[6],ra=ln[7],Do=ln[8],ia=ln[9],oa=ln[10],ea=ln[11],ua=ln[12],la=ln[13],fa=ln[14],ca=ln[15];qr=Wt[0],ri+=qr*ni,Zn+=qr*Ko,ai+=qr*Wo,bi+=qr*Ho,_i+=qr*Uo,fi+=qr*Go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n*65536,qr=yo+dn+65535,dn=Math.floor(qr/65536),yo=qr-dn*65536,qr=Di+dn+65535,dn=Math.floor(qr/65536),Di=qr-dn*65536,qr=Ni+dn+65535,dn=Math.floor(qr/65536),Ni=qr-dn*65536,qr=oo+dn+65535,dn=Math.floor(qr/65536),oo=qr-dn*65536,qr=fo+dn+65535,dn=Math.floor(qr/65536),fo=qr-dn*65536,qr=co+dn+65535,dn=Math.floor(qr/65536),co=qr-dn*65536,qr=Ao+dn+65535,dn=Math.floor(qr/65536),Ao=qr-dn*65536,qr=vo+dn+65535,dn=Math.floor(qr/65536),vo=qr-dn*65536,qr=_o+dn+65535,dn=Math.floor(qr/65536),_o=qr-dn*65536,qr=so+dn+65535,dn=Math.floor(qr/65536),so=qr-dn*65536,ri+=dn-1+37*(dn-1),dn=1,qr=ri+dn+65535,dn=Math.floor(qr/65536),ri=qr-dn*65536,qr=Zn+dn+65535,dn=Math.floor(qr/65536),Zn=qr-dn*65536,qr=ai+dn+65535,dn=Math.floor(qr/65536),ai=qr-dn*65536,qr=bi+dn+65535,dn=Math.floor(qr/65536),bi=qr-dn*65536,qr=_i+dn+65535,dn=Math.floor(qr/65536),_i=qr-dn*65536,qr=fi+dn+65535,dn=Math.floor(qr/65536),fi=qr-dn*65536,qr=yo+dn+65535,dn=Math.floor(qr/65536),yo=qr-dn*65536,qr=Di+dn+65535,dn=Math.floor(qr/65536),Di=qr-dn*65536,qr=Ni+dn+65535,dn=Math.floor(qr/65536),Ni=qr-dn*65536,qr=oo+dn+65535,dn=Math.floor(qr/65536),oo=qr-dn*65536,qr=fo+dn+65535,dn=Math.floor(qr/65536),fo=qr-dn*65536,qr=co+dn+65535,dn=Math.floor(qr/65536),co=qr-dn*65536,qr=Ao+dn+65535,dn=Math.floor(qr/65536),Ao=qr-dn*65536,qr=vo+dn+65535,dn=Math.floor(qr/65536),vo=qr-dn*65536,qr=_o+dn+65535,dn=Math.floor(qr/65536),_o=qr-dn*65536,qr=so+dn+65535,dn=Math.flo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),Jt(_i,fi,ri);for(Zn=0;Zn<16;Zn++)dn[Zn+16]=ai[Zn],dn[Zn+32]=_i[Zn],dn[Zn+48]=bi[Zn],dn[Zn+64]=fi[Zn];var Ni=dn.subarray(32),oo=dn.subarray(16);return Nn(Ni,Ni),Gn(oo,oo,Ni),Xr(Yr,oo),0}function ii(Yr,Wt){return bn(Yr,Wt,le)}function hn(Yr,Wt){return ce(Wt,32),ii(Yr,Wt)}function pn(Yr,Wt,ln){var qr=new Uint8Array(32);return bn(qr,ln,Wt),Gr(Yr,fe,qr,Ur)}var Sn=be,Qn=kr;function Jn(Yr,Wt,ln,qr,dn,ri){var Zn=new Uint8Array(32);return pn(Zn,dn,ri),Sn(Yr,Wt,ln,qr,Zn)}function ui(Yr,Wt,ln,qr,dn,ri){var Zn=new Uint8Array(32);return pn(Zn,dn,ri),Qn(Yr,Wt,ln,qr,Zn)}var gi=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function di(Yr,Wt,ln,qr){for(var dn=new Int32Array(16),ri=new Int32Array(16),Zn,ai,bi,_i,fi,yo,Di,Ni,oo,fo,co,Ao,vo,_o,so,lo,eo,uo,ho,ro,ci,pi,mi,Si,Ti,xi,To=Yr[0],Mo=Yr[1],Co=Yr[2],Fo=Yr[3],ni=Yr[4],Ko=Yr[5],Wo=Yr[6],Ho=Yr[7],Uo=Wt[0],Go=Wt[1],Vo=Wt[2],ra=Wt[3],Do=Wt[4],ia=Wt[5],oa=Wt[6],ea=Wt[7],ua=0;qr>=128;){for(ho=0;ho<16;ho++)ro=8*ho+ua,dn[ho]=ln[ro+0]<<24|ln[ro+1]<<16|ln[ro+2]<<8|ln[ro+3],ri[ho]=ln[ro+4]<<24|ln[ro+5]<<16|ln[ro+6]<<8|ln[ro+7];for(ho=0;ho<80;ho++)if(Zn=To,ai=Mo,bi=Co,_i=Fo,fi=ni,yo=Ko,Di=Wo,Ni=Ho,oo=Uo,fo=Go,co=Vo,Ao=ra,vo=Do,_o=ia,so=oa,lo=ea,ci=Ho,pi=ea,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=(ni>>>14|Do<<32-14)^(ni>>>18|Do<<32-18)^(Do>>>41-32|ni<<32-(41-32)),pi=(Do>>>14|ni<<32-14)^(Do>>>18|ni<<32-18)^(ni>>>41-32|Do<<32-(41-32)),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=ni&Ko^~ni&Wo,pi=Do&ia^~Do&oa,mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=gi[ho*2],pi=gi[ho*2+1],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=dn[ho%16],pi=ri[ho%16],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,eo=Ti&65535|xi<<16,uo=mi&65535|Si<<16,ci=eo,pi=uo,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=(To>>>28|Uo<<32-28)^(Uo>>>34-32|To<<32-(34-32))^(Uo>>>39-32|To<<32-(39-32)),pi=(Uo>>>28|To<<32-28)^(To>>>34-32|Uo<<32-(34-32))^(To>>>39-32|Uo<<32-(39-32)),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=To&Mo^To&Co^Mo&Co,pi=Uo&Go^Uo&Vo^Go&Vo,mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Ni=Ti&65535|xi<<16,lo=mi&65535|Si<<16,ci=_i,pi=Ao,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=eo,pi=uo,mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,_i=Ti&65535|xi<<16,Ao=mi&65535|Si<<16,Mo=Zn,Co=ai,Fo=bi,ni=_i,Ko=fi,Wo=yo,Ho=Di,To=Ni,Go=oo,Vo=fo,ra=co,Do=Ao,ia=vo,oa=_o,ea=so,Uo=lo,ho%16===15)for(ro=0;ro<16;ro++)ci=dn[ro],pi=ri[ro],mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=dn[(ro+9)%16],pi=ri[(ro+9)%16],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,eo=dn[(ro+1)%16],uo=ri[(ro+1)%16],ci=(eo>>>1|uo<<32-1)^(eo>>>8|uo<<32-8)^eo>>>7,pi=(uo>>>1|eo<<32-1)^(uo>>>8|eo<<32-8)^(uo>>>7|eo<<32-7),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,eo=dn[(ro+14)%16],uo=ri[(ro+14)%16],ci=(eo>>>19|uo<<32-19)^(uo>>>61-32|eo<<32-(61-32))^eo>>>6,pi=(uo>>>19|eo<<32-19)^(eo>>>61-32|uo<<32-(61-32))^(uo>>>6|eo<<32-6),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,dn[ro]=Ti&65535|xi<<16,ri[ro]=mi&65535|Si<<16;ci=To,pi=Uo,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[0],pi=Wt[0],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[0]=To=Ti&65535|xi<<16,Wt[0]=Uo=mi&65535|Si<<16,ci=Mo,pi=Go,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[1],pi=Wt[1],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[1]=Mo=Ti&65535|xi<<16,Wt[1]=Go=mi&65535|Si<<16,ci=Co,pi=Vo,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[2],pi=Wt[2],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[2]=Co=Ti&65535|xi<<16,Wt[2]=Vo=mi&65535|Si<<16,ci=Fo,pi=ra,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[3],pi=Wt[3],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[3]=Fo=Ti&65535|xi<<16,Wt[3]=ra=mi&65535|Si<<16,ci=ni,pi=Do,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[4],pi=Wt[4],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[4]=ni=Ti&65535|xi<<16,Wt[4]=Do=mi&65535|Si<<16,ci=Ko,pi=ia,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[5],pi=Wt[5],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[5]=Ko=Ti&65535|xi<<16,Wt[5]=ia=mi&65535|Si<<16,ci=Wo,pi=oa,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[6],pi=Wt[6],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[6]=Wo=Ti&65535|xi<<16,Wt[6]=oa=mi&65535|Si<<16,ci=Ho,pi=ea,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[7],pi=Wt[7],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[7]=Ho=Ti&65535|xi<<16,Wt[7]=ea=mi&65535|Si<<16,ua+=128,qr-=128}return qr}function Ci(Yr,Wt,ln){var qr=new Int32Array(8),dn=new Int32Array(8),ri=new Uint8Array(256),Zn,ai=ln;for(qr[0]=1779033703,qr[1]=3144134277,qr[2]=1013904242,qr[3]=2773480762,qr[4]=1359893119,qr[5]=2600822924,qr[6]=528734635,qr[7]=1541459225,dn[0]=4089235720,dn[1]=2227873595,dn[2]=4271175723,dn[3]=1595750129,dn[4]=2917565137,dn[5]=725511199,dn[6]=4215389547,dn[7]=327033209,di(qr,dn,Wt,ln),ln%=128,Zn=0;Zn=0;--dn)qr=ln[dn/8|0]>>(dn&7)&1,li(Yr,Wt,qr),yi(Wt,Yr),yi(Yr,Yr),li(Yr,Wt,qr)}function Oi(Yr,Wt){var ln=[ae(),ae(),ae(),ae()];xr(ln[0],cr),xr(ln[1],Br),xr(ln[2],pe),Gn(ln[3],cr,Br),Ai(Yr,ln,Wt)}function to(Yr,Wt,ln){var qr=new Uint8Array(64),dn=[ae(),ae(),ae(),ae()],ri;for(ln||ce(Wt,32),Ci(qr,Wt,32),qr[0]&=248,qr[31]&=127,qr[31]|=64,Oi(dn,qr),Pi(Yr,dn),ri=0;ri<32;ri++)Wt[ri+32]=Yr[ri];return 0}var En=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Bt(Yr,Wt){var ln,qr,dn,ri;for(qr=63;qr>=32;--qr){for(ln=0,dn=qr-32,ri=qr-12;dn>4)*En[dn],ln=Wt[dn]>>8,Wt[dn]&=255;for(dn=0;dn<32;dn++)Wt[dn]-=ln*En[dn];for(qr=0;qr<32;qr++)Wt[qr+1]+=Wt[qr]>>8,Yr[qr]=Wt[qr]&255}function Zt(Yr){var Wt=new Float64Array(64),ln;for(ln=0;ln<64;ln++)Wt[ln]=Yr[ln];for(ln=0;ln<64;ln++)Yr[ln]=0;Bt(Yr,Wt)}function Tn(Yr,Wt,ln,qr){var dn=new Uint8Array(64),ri=new Uint8Array(64),Zn=new Uint8Array(64),ai,bi,_i=new Float64Array(64),fi=[ae(),ae(),ae(),ae()];Ci(dn,qr,32),dn[0]&=248,dn[31]&=127,dn[31]|=64;var yo=ln+64;for(ai=0;ai>7&&On(Yr[0],ve,Yr[0]),Gn(Yr[3],Yr[0],Yr[1]),0)}function zn(Yr,Wt,ln,qr){var dn,ri=new Uint8Array(32),Zn=new Uint8Array(64),ai=[ae(),ae(),ae(),ae()],bi=[ae(),ae(),ae(),ae()];if(ln<64||ei(bi,qr))return-1;for(dn=0;dn=0},ie.sign.keyPair=function(){var Yr=new Uint8Array(mo),Wt=new Uint8Array(qo);return to(Yr,Wt),{publicKey:Yr,secretKey:Wt}},ie.sign.keyPair.fromSecretKey=function(Yr){if(zi(Yr),Yr.length!==qo)throw new Error("bad secret key size");for(var Wt=new Uint8Array(mo),ln=0;ln{this[ae]=ie[ae]})}};v.Assignable=k}}),require_errors$3=__commonJS({"node_modules/@near-js/types/lib/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ErrorContext=v.TypedError=v.ArgumentTypeError=v.PositionalArgsError=void 0;var k=class extends Error{constructor(){super("Contract method calls expect named arguments wrapped in object, e.g. { argName1: argValue1, argName2: argValue2 }")}};v.PositionalArgsError=k;var ie=class extends Error{constructor(fe,le,ve){super(`Expected ${le} for '${fe}' argument, but got '${JSON.stringify(ve)}'`)}};v.ArgumentTypeError=ie;var ae=class extends Error{constructor(fe,le,ve){super(fe),this.type=le||"UntypedError",this.context=ve}};v.TypedError=ae;var ce=class{constructor(fe){this.transactionHash=fe}};v.ErrorContext=ce}}),require_light_client$1=__commonJS({"node_modules/@near-js/types/lib/provider/light_client.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.IdType=void 0,function(k){k.Transaction="transaction",k.Receipt="receipt"}(v.IdType||(v.IdType={}))}}),require_response$1=__commonJS({"node_modules/@near-js/types/lib/provider/response.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.FinalExecutionStatusBasic=v.ExecutionStatusBasic=void 0,function(k){k.Unknown="Unknown",k.Pending="Pending",k.Failure="Failure"}(v.ExecutionStatusBasic||(v.ExecutionStatusBasic={})),function(k){k.NotStarted="NotStarted",k.Started="Started",k.Failure="Failure"}(v.FinalExecutionStatusBasic||(v.FinalExecutionStatusBasic={}))}}),require_provider$3=__commonJS({"node_modules/@near-js/types/lib/provider/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.FinalExecutionStatusBasic=v.ExecutionStatusBasic=v.IdType=void 0;var k=require_light_client$1();Object.defineProperty(v,"IdType",{enumerable:!0,get:function(){return k.IdType}});var ie=require_response$1();Object.defineProperty(v,"ExecutionStatusBasic",{enumerable:!0,get:function(){return ie.ExecutionStatusBasic}}),Object.defineProperty(v,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return ie.FinalExecutionStatusBasic}})}}),require_lib2$1=__commonJS({"node_modules/@near-js/types/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ae,ce,fe,le){le===void 0&&(le=fe);var ve=Object.getOwnPropertyDescriptor(ce,fe);(!ve||("get"in ve?!ce.__esModule:ve.writable||ve.configurable))&&(ve={enumerable:!0,get:function(){return ce[fe]}}),Object.defineProperty(ae,le,ve)}:function(ae,ce,fe,le){le===void 0&&(le=fe),ae[le]=ce[fe]}),ie=v&&v.__exportStar||function(ae,ce){for(var fe in ae)fe!=="default"&&!Object.prototype.hasOwnProperty.call(ce,fe)&&k(ce,ae,fe)};Object.defineProperty(v,"__esModule",{value:!0}),ie(require_assignable$1(),v),ie(require_errors$3(),v),ie(require_provider$3(),v)}}),require_public_key$1=__commonJS({"node_modules/@near-js/crypto/lib/public_key.js"(v){var k=v&&v.__importDefault||function(ye){return ye&&ye.__esModule?ye:{default:ye}};Object.defineProperty(v,"__esModule",{value:!0}),v.PublicKey=void 0;var ie=require_lib2$1(),ae=require_lib$1(),ce=k(require_nacl_fast$1()),fe=require_constants$3();function le(ye){switch(ye){case fe.KeyType.ED25519:return"ed25519";default:throw new Error(`Unknown key type ${ye}`)}}function ve(ye){switch(ye.toLowerCase()){case"ed25519":return fe.KeyType.ED25519;default:throw new Error(`Unknown key type ${ye}`)}}var pe=class extends ie.Assignable{static from(ye){return typeof ye=="string"?pe.fromString(ye):ye}static fromString(ye){const me=ye.split(":");let Ee,cr=fe.KeyType.ED25519;if(me.length===1)Ee=me[0];else if(me.length===2)Ee=me[1],cr=ve(me[0]);else throw new Error("Invalid encoded key format, must be :");const Br=(0,ae.baseDecode)(Ee);if(Br.length!==ce.default.box.publicKeyLength)throw new Error(`Invalid public key size (${Br.length}), must be ${ce.default.box.publicKeyLength}`);return new pe({keyType:cr,data:Br})}toString(){return`${le(this.keyType)}:${(0,ae.baseEncode)(this.data)}`}verify(ye,me){switch(this.keyType){case fe.KeyType.ED25519:return ce.default.sign.detached.verify(ye,me,this.data);default:throw new Error(`Unknown key type ${this.keyType}`)}}};v.PublicKey=pe}}),require_key_pair_ed25519$1=__commonJS({"node_modules/@near-js/crypto/lib/key_pair_ed25519.js"(v){var k=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.KeyPairEd25519=void 0;var ie=require_lib$1(),ae=k(require_nacl_fast$1()),ce=require_constants$3(),fe=require_key_pair_base$1(),le=require_public_key$1(),ve=class extends fe.KeyPairBase{constructor(pe){super();const ye=ae.default.sign.keyPair.fromSecretKey((0,ie.baseDecode)(pe));this.publicKey=new le.PublicKey({keyType:ce.KeyType.ED25519,data:ye.publicKey}),this.secretKey=pe}static fromRandom(){const pe=ae.default.sign.keyPair();return new ve((0,ie.baseEncode)(pe.secretKey))}sign(pe){return{signature:ae.default.sign.detached(pe,(0,ie.baseDecode)(this.secretKey)),publicKey:this.publicKey}}verify(pe,ye){return this.publicKey.verify(pe,ye)}toString(){return`ed25519:${this.secretKey}`}getPublicKey(){return this.publicKey}};v.KeyPairEd25519=ve}}),require_key_pair$2=__commonJS({"node_modules/@near-js/crypto/lib/key_pair.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyPair=void 0;var k=require_key_pair_base$1(),ie=require_key_pair_ed25519$1(),ae=class extends k.KeyPairBase{static fromRandom(ce){switch(ce.toUpperCase()){case"ED25519":return ie.KeyPairEd25519.fromRandom();default:throw new Error(`Unknown curve ${ce}`)}}static fromString(ce){const fe=ce.split(":");if(fe.length===1)return new ie.KeyPairEd25519(fe[0]);if(fe.length===2)switch(fe[0].toUpperCase()){case"ED25519":return new ie.KeyPairEd25519(fe[1]);default:throw new Error(`Unknown curve: ${fe[0]}`)}else throw new Error("Invalid encoded key format, must be :")}};v.KeyPair=ae}}),require_lib3$1=__commonJS({"node_modules/@near-js/crypto/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.PublicKey=v.KeyPairEd25519=v.KeyPair=v.KeyType=void 0;var k=require_constants$3();Object.defineProperty(v,"KeyType",{enumerable:!0,get:function(){return k.KeyType}});var ie=require_key_pair$2();Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return ie.KeyPair}});var ae=require_key_pair_ed25519$1();Object.defineProperty(v,"KeyPairEd25519",{enumerable:!0,get:function(){return ae.KeyPairEd25519}});var ce=require_public_key$1();Object.defineProperty(v,"PublicKey",{enumerable:!0,get:function(){return ce.PublicKey}})}}),require_keystore$2=__commonJS({"node_modules/@near-js/keystores/lib/keystore.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyStore=void 0;var k=class{};v.KeyStore=k}}),require_in_memory_key_store$2=__commonJS({"node_modules/@near-js/keystores/lib/in_memory_key_store.js"(v){var k=v&&v.__awaiter||function(fe,le,ve,pe){function ye(me){return me instanceof ve?me:new ve(function(Ee){Ee(me)})}return new(ve||(ve=Promise))(function(me,Ee){function cr(Pr){try{$r(pe.next(Pr))}catch(Or){Ee(Or)}}function Br(Pr){try{$r(pe.throw(Pr))}catch(Or){Ee(Or)}}function $r(Pr){Pr.done?me(Pr.value):ye(Pr.value).then(cr,Br)}$r((pe=pe.apply(fe,le||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.InMemoryKeyStore=void 0;var ie=require_lib3$1(),ae=require_keystore$2(),ce=class extends ae.KeyStore{constructor(){super(),this.keys={}}setKey(fe,le,ve){return k(this,void 0,void 0,function*(){this.keys[`${le}:${fe}`]=ve.toString()})}getKey(fe,le){return k(this,void 0,void 0,function*(){const ve=this.keys[`${le}:${fe}`];return ve?ie.KeyPair.fromString(ve):null})}removeKey(fe,le){return k(this,void 0,void 0,function*(){delete this.keys[`${le}:${fe}`]})}clear(){return k(this,void 0,void 0,function*(){this.keys={}})}getNetworks(){return k(this,void 0,void 0,function*(){const fe=new Set;return Object.keys(this.keys).forEach(le=>{const ve=le.split(":");fe.add(ve[1])}),Array.from(fe.values())})}getAccounts(fe){return k(this,void 0,void 0,function*(){const le=new Array;return Object.keys(this.keys).forEach(ve=>{const pe=ve.split(":");pe[pe.length-1]===fe&&le.push(pe.slice(0,pe.length-1).join(":"))}),le})}toString(){return"InMemoryKeyStore"}};v.InMemoryKeyStore=ce}}),require_merge_key_store$2=__commonJS({"node_modules/@near-js/keystores/lib/merge_key_store.js"(v){var k=v&&v.__awaiter||function(ce,fe,le,ve){function pe(ye){return ye instanceof le?ye:new le(function(me){me(ye)})}return new(le||(le=Promise))(function(ye,me){function Ee($r){try{Br(ve.next($r))}catch(Pr){me(Pr)}}function cr($r){try{Br(ve.throw($r))}catch(Pr){me(Pr)}}function Br($r){$r.done?ye($r.value):pe($r.value).then(Ee,cr)}Br((ve=ve.apply(ce,fe||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.MergeKeyStore=void 0;var ie=require_keystore$2(),ae=class extends ie.KeyStore{constructor(ce,fe={writeKeyStoreIndex:0}){super(),this.options=fe,this.keyStores=ce}setKey(ce,fe,le){return k(this,void 0,void 0,function*(){yield this.keyStores[this.options.writeKeyStoreIndex].setKey(ce,fe,le)})}getKey(ce,fe){return k(this,void 0,void 0,function*(){for(const le of this.keyStores){const ve=yield le.getKey(ce,fe);if(ve)return ve}return null})}removeKey(ce,fe){return k(this,void 0,void 0,function*(){for(const le of this.keyStores)yield le.removeKey(ce,fe)})}clear(){return k(this,void 0,void 0,function*(){for(const ce of this.keyStores)yield ce.clear()})}getNetworks(){return k(this,void 0,void 0,function*(){const ce=new Set;for(const fe of this.keyStores)for(const le of yield fe.getNetworks())ce.add(le);return Array.from(ce)})}getAccounts(ce){return k(this,void 0,void 0,function*(){const fe=new Set;for(const le of this.keyStores)for(const ve of yield le.getAccounts(ce))fe.add(ve);return Array.from(fe)})}toString(){return`MergeKeyStore(${this.keyStores.join(", ")})`}};v.MergeKeyStore=ae}}),require_lib4$2=__commonJS({"node_modules/@near-js/keystores/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MergeKeyStore=v.KeyStore=v.InMemoryKeyStore=void 0;var k=require_in_memory_key_store$2();Object.defineProperty(v,"InMemoryKeyStore",{enumerable:!0,get:function(){return k.InMemoryKeyStore}});var ie=require_keystore$2();Object.defineProperty(v,"KeyStore",{enumerable:!0,get:function(){return ie.KeyStore}});var ae=require_merge_key_store$2();Object.defineProperty(v,"MergeKeyStore",{enumerable:!0,get:function(){return ae.MergeKeyStore}})}}),require_keystore2$1=__commonJS({"node_modules/near-api-js/lib/key_stores/keystore.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyStore=void 0;var k=require_lib4$2();Object.defineProperty(v,"KeyStore",{enumerable:!0,get:function(){return k.KeyStore}})}}),require_in_memory_key_store2$1=__commonJS({"node_modules/near-api-js/lib/key_stores/in_memory_key_store.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.InMemoryKeyStore=void 0;var k=require_lib4$2();Object.defineProperty(v,"InMemoryKeyStore",{enumerable:!0,get:function(){return k.InMemoryKeyStore}})}}),require_browser_local_storage_key_store$2=__commonJS({"node_modules/@near-js/keystores-browser/lib/browser_local_storage_key_store.js"(v){var k=v&&v.__awaiter||function(le,ve,pe,ye){function me(Ee){return Ee instanceof pe?Ee:new pe(function(cr){cr(Ee)})}return new(pe||(pe=Promise))(function(Ee,cr){function Br(Or){try{Pr(ye.next(Or))}catch(ur){cr(ur)}}function $r(Or){try{Pr(ye.throw(Or))}catch(ur){cr(ur)}}function Pr(Or){Or.done?Ee(Or.value):me(Or.value).then(Br,$r)}Pr((ye=ye.apply(le,ve||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.BrowserLocalStorageKeyStore=void 0;var ie=require_lib3$1(),ae=require_lib4$2(),ce="near-api-js:keystore:",fe=class extends ae.KeyStore{constructor(le=window.localStorage,ve=ce){super(),this.localStorage=le,this.prefix=ve}setKey(le,ve,pe){return k(this,void 0,void 0,function*(){this.localStorage.setItem(this.storageKeyForSecretKey(le,ve),pe.toString())})}getKey(le,ve){return k(this,void 0,void 0,function*(){const pe=this.localStorage.getItem(this.storageKeyForSecretKey(le,ve));return pe?ie.KeyPair.fromString(pe):null})}removeKey(le,ve){return k(this,void 0,void 0,function*(){this.localStorage.removeItem(this.storageKeyForSecretKey(le,ve))})}clear(){return k(this,void 0,void 0,function*(){for(const le of this.storageKeys())le.startsWith(this.prefix)&&this.localStorage.removeItem(le)})}getNetworks(){return k(this,void 0,void 0,function*(){const le=new Set;for(const ve of this.storageKeys())if(ve.startsWith(this.prefix)){const pe=ve.substring(this.prefix.length).split(":");le.add(pe[1])}return Array.from(le.values())})}getAccounts(le){return k(this,void 0,void 0,function*(){const ve=new Array;for(const pe of this.storageKeys())if(pe.startsWith(this.prefix)){const ye=pe.substring(this.prefix.length).split(":");ye[1]===le&&ve.push(ye[0])}return ve})}storageKeyForSecretKey(le,ve){return`${this.prefix}${ve}:${le}`}*storageKeys(){for(let le=0;le":">",'"':""","'":"'","/":"/","`":"`","=":"="};function $r(Xt){return String(Xt).replace(/[&<>"'`=\/]/g,function(Kr){return Br[Kr]})}var Pr=/\s*/,Or=/\s+/,ur=/\s*=/,jr=/\s*\}/,Mr=/#|\^|\/|>|\{|&|=|!/;function Lr(Xt,Qt){if(!Xt)return[];var Kr=!1,be=[],kr=[],xr=[],Wr=!1,Jt=!1,Xr="",zr=0;function Jr(){if(Wr&&!Jt)for(;xr.length;)delete kr[xr.pop()];else xr=[];Wr=!1,Jt=!1}var Nr,Hr,On;function Gn(Jn){if(typeof Jn=="string"&&(Jn=Jn.split(Or,2)),!ae(Jn)||Jn.length!==2)throw new Error("Invalid tags: "+Jn);Nr=new RegExp(le(Jn[0])+"\\s*"),Hr=new RegExp("\\s*"+le(Jn[1])),On=new RegExp("\\s*"+le("}"+Jn[1]))}Gn(Qt||Yt.tags);for(var mn=new Ur(Xt),Nn,In,bn,ii,hn,pn;!mn.eos();){if(Nn=mn.pos,bn=mn.scanUntil(Nr),bn)for(var Sn=0,Qn=bn.length;Sn"?hn=[In,bn,Nn,mn.pos,Xr,zr,Kr]:hn=[In,bn,Nn,mn.pos],zr++,kr.push(hn),In==="#"||In==="^")be.push(hn);else if(In==="/"){if(pn=be.pop(),!pn)throw new Error('Unopened section "'+bn+'" at '+Nn);if(pn[1]!==bn)throw new Error('Unclosed section "'+pn[1]+'" at '+Nn)}else In==="name"||In==="{"||In==="&"?Jt=!0:In==="="&&Gn(bn)}if(Jr(),pn=be.pop(),pn)throw new Error('Unclosed section "'+pn[1]+'" at '+mn.pos);return Gr(Vr(kr))}function Vr(Xt){for(var Qt=[],Kr,be,kr=0,xr=Xt.length;kr0?be[be.length-1][4]:Qt;break;default:Kr.push(kr)}return Qt}function Ur(Xt){this.string=Xt,this.tail=Xt,this.pos=0}Ur.prototype.eos=function(){return this.tail===""},Ur.prototype.scan=function(Qt){var Kr=this.tail.match(Qt);if(!Kr||Kr.index!==0)return"";var be=Kr[0];return this.tail=this.tail.substring(be.length),this.pos+=be.length,be},Ur.prototype.scanUntil=function(Qt){var Kr=this.tail.search(Qt),be;switch(Kr){case-1:be=this.tail,this.tail="";break;case 0:be="";break;default:be=this.tail.substring(0,Kr),this.tail=this.tail.substring(Kr)}return this.pos+=be.length,be};function Qr(Xt,Qt){this.view=Xt,this.cache={".":this.view},this.parent=Qt}Qr.prototype.push=function(Qt){return new Qr(Qt,this)},Qr.prototype.lookup=function(Qt){var Kr=this.cache,be;if(Kr.hasOwnProperty(Qt))be=Kr[Qt];else{for(var kr=this,xr,Wr,Jt,Xr=!1;kr;){if(Qt.indexOf(".")>0)for(xr=kr.view,Wr=Qt.split("."),Jt=0;xr!=null&&Jt"?zr=this.renderPartial(Jt,Kr,be,xr):Xr==="&"?zr=this.unescapedValue(Jt,Kr):Xr==="name"?zr=this.escapedValue(Jt,Kr,xr):Xr==="text"&&(zr=this.rawValue(Jt)),zr!==void 0&&(Wr+=zr);return Wr},vn.prototype.renderSection=function(Qt,Kr,be,kr,xr){var Wr=this,Jt="",Xr=Kr.lookup(Qt[1]);function zr(Hr){return Wr.render(Hr,Kr,be,xr)}if(!!Xr){if(ae(Xr))for(var Jr=0,Nr=Xr.length;Jr */var require_constants$3=__commonJS({"node_modules/@near-js/crypto/lib/constants.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyType=void 0,function(k){k[k.ED25519=0]="ED25519"}(v.KeyType||(v.KeyType={}))}}),require_key_pair_base$1=__commonJS({"node_modules/@near-js/crypto/lib/key_pair_base.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyPairBase=void 0;var k=class{};v.KeyPairBase=k}}),require_buffer2$1=__commonJS({"browser-external:buffer"(v,k){k.exports={}}}),require_bn$2=__commonJS({"node_modules/bn.js/lib/bn.js"(v,k){(function(ie,ae){function ce(Kr,be){if(!Kr)throw new Error(be||"Assertion failed")}function fe(Kr,be){Kr.super_=be;var kr=function(){};kr.prototype=be.prototype,Kr.prototype=new kr,Kr.prototype.constructor=Kr}function le(Kr,be,kr){if(le.isBN(Kr))return Kr;this.negative=0,this.words=null,this.length=0,this.red=null,Kr!==null&&((be==="le"||be==="be")&&(kr=be,be=10),this._init(Kr||0,be||10,kr||"be"))}typeof ie=="object"?ie.exports=le:ae.BN=le,le.BN=le,le.wordSize=26;var ve;try{typeof window<"u"&&typeof window.Buffer<"u"?ve=window.Buffer:ve=require_buffer2$1().Buffer}catch{}le.isBN=function(be){return be instanceof le?!0:be!==null&&typeof be=="object"&&be.constructor.wordSize===le.wordSize&&Array.isArray(be.words)},le.max=function(be,kr){return be.cmp(kr)>0?be:kr},le.min=function(be,kr){return be.cmp(kr)<0?be:kr},le.prototype._init=function(be,kr,xr){if(typeof be=="number")return this._initNumber(be,kr,xr);if(typeof be=="object")return this._initArray(be,kr,xr);kr==="hex"&&(kr=16),ce(kr===(kr|0)&&kr>=2&&kr<=36),be=be.toString().replace(/\s+/g,"");var Wr=0;be[0]==="-"&&(Wr++,this.negative=1),Wr=0;Wr-=3)Xr=be[Wr]|be[Wr-1]<<8|be[Wr-2]<<16,this.words[Jt]|=Xr<>>26-zr&67108863,zr+=24,zr>=26&&(zr-=26,Jt++);else if(xr==="le")for(Wr=0,Jt=0;Wr>>26-zr&67108863,zr+=24,zr>=26&&(zr-=26,Jt++);return this._strip()};function pe(Kr,be){var kr=Kr.charCodeAt(be);if(kr>=48&&kr<=57)return kr-48;if(kr>=65&&kr<=70)return kr-55;if(kr>=97&&kr<=102)return kr-87;ce(!1,"Invalid character in "+Kr)}function ye(Kr,be,kr){var xr=pe(Kr,kr);return kr-1>=be&&(xr|=pe(Kr,kr-1)<<4),xr}le.prototype._parseHex=function(be,kr,xr){this.length=Math.ceil((be.length-kr)/6),this.words=new Array(this.length);for(var Wr=0;Wr=kr;Wr-=2)zr=ye(be,kr,Wr)<=18?(Jt-=18,Xr+=1,this.words[Xr]|=zr>>>26):Jt+=8;else{var Jr=be.length-kr;for(Wr=Jr%2===0?kr+1:kr;Wr=18?(Jt-=18,Xr+=1,this.words[Xr]|=zr>>>26):Jt+=8}this._strip()};function me(Kr,be,kr,xr){for(var Wr=0,Jt=0,Xr=Math.min(Kr.length,kr),zr=be;zr=49?Jt=Jr-49+10:Jr>=17?Jt=Jr-17+10:Jt=Jr,ce(Jr>=0&&Jt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},le.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{le.prototype[Symbol.for("nodejs.util.inspect.custom")]=cr}catch{le.prototype.inspect=cr}else le.prototype.inspect=cr;function cr(){return(this.red?""}var Br=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],$r=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Pr=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];le.prototype.toString=function(be,kr){be=be||10,kr=kr|0||1;var xr;if(be===16||be==="hex"){xr="";for(var Wr=0,Jt=0,Xr=0;Xr>>24-Wr&16777215,Wr+=2,Wr>=26&&(Wr-=26,Xr--),Jt!==0||Xr!==this.length-1?xr=Br[6-Jr.length]+Jr+xr:xr=Jr+xr}for(Jt!==0&&(xr=Jt.toString(16)+xr);xr.length%kr!==0;)xr="0"+xr;return this.negative!==0&&(xr="-"+xr),xr}if(be===(be|0)&&be>=2&&be<=36){var Nr=$r[be],Hr=Pr[be];xr="";var On=this.clone();for(On.negative=0;!On.isZero();){var Gn=On.modrn(Hr).toString(be);On=On.idivn(Hr),On.isZero()?xr=Gn+xr:xr=Br[Nr-Gn.length]+Gn+xr}for(this.isZero()&&(xr="0"+xr);xr.length%kr!==0;)xr="0"+xr;return this.negative!==0&&(xr="-"+xr),xr}ce(!1,"Base should be between 2 and 36")},le.prototype.toNumber=function(){var be=this.words[0];return this.length===2?be+=this.words[1]*67108864:this.length===3&&this.words[2]===1?be+=4503599627370496+this.words[1]*67108864:this.length>2&&ce(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-be:be},le.prototype.toJSON=function(){return this.toString(16,2)},ve&&(le.prototype.toBuffer=function(be,kr){return this.toArrayLike(ve,be,kr)}),le.prototype.toArray=function(be,kr){return this.toArrayLike(Array,be,kr)};var Ar=function(be,kr){return be.allocUnsafe?be.allocUnsafe(kr):new be(kr)};le.prototype.toArrayLike=function(be,kr,xr){this._strip();var Wr=this.byteLength(),Jt=xr||Math.max(1,Wr);ce(Wr<=Jt,"byte array longer than desired length"),ce(Jt>0,"Requested array length <= 0");var Xr=Ar(be,Jt),zr=kr==="le"?"LE":"BE";return this["_toArrayLike"+zr](Xr,Wr),Xr},le.prototype._toArrayLikeLE=function(be,kr){for(var xr=0,Wr=0,Jt=0,Xr=0;Jt>8&255),xr>16&255),Xr===6?(xr>24&255),Wr=0,Xr=0):(Wr=zr>>>24,Xr+=2)}if(xr=0&&(be[xr--]=zr>>8&255),xr>=0&&(be[xr--]=zr>>16&255),Xr===6?(xr>=0&&(be[xr--]=zr>>24&255),Wr=0,Xr=0):(Wr=zr>>>24,Xr+=2)}if(xr>=0)for(be[xr--]=Wr;xr>=0;)be[xr--]=0},Math.clz32?le.prototype._countBits=function(be){return 32-Math.clz32(be)}:le.prototype._countBits=function(be){var kr=be,xr=0;return kr>=4096&&(xr+=13,kr>>>=13),kr>=64&&(xr+=7,kr>>>=7),kr>=8&&(xr+=4,kr>>>=4),kr>=2&&(xr+=2,kr>>>=2),xr+kr},le.prototype._zeroBits=function(be){if(be===0)return 26;var kr=be,xr=0;return(kr&8191)===0&&(xr+=13,kr>>>=13),(kr&127)===0&&(xr+=7,kr>>>=7),(kr&15)===0&&(xr+=4,kr>>>=4),(kr&3)===0&&(xr+=2,kr>>>=2),(kr&1)===0&&xr++,xr},le.prototype.bitLength=function(){var be=this.words[this.length-1],kr=this._countBits(be);return(this.length-1)*26+kr};function ur(Kr){for(var be=new Array(Kr.bitLength()),kr=0;kr>>Wr&1}return be}le.prototype.zeroBits=function(){if(this.isZero())return 0;for(var be=0,kr=0;krbe.length?this.clone().ior(be):be.clone().ior(this)},le.prototype.uor=function(be){return this.length>be.length?this.clone().iuor(be):be.clone().iuor(this)},le.prototype.iuand=function(be){var kr;this.length>be.length?kr=be:kr=this;for(var xr=0;xrbe.length?this.clone().iand(be):be.clone().iand(this)},le.prototype.uand=function(be){return this.length>be.length?this.clone().iuand(be):be.clone().iuand(this)},le.prototype.iuxor=function(be){var kr,xr;this.length>be.length?(kr=this,xr=be):(kr=be,xr=this);for(var Wr=0;Wrbe.length?this.clone().ixor(be):be.clone().ixor(this)},le.prototype.uxor=function(be){return this.length>be.length?this.clone().iuxor(be):be.clone().iuxor(this)},le.prototype.inotn=function(be){ce(typeof be=="number"&&be>=0);var kr=Math.ceil(be/26)|0,xr=be%26;this._expand(kr),xr>0&&kr--;for(var Wr=0;Wr0&&(this.words[Wr]=~this.words[Wr]&67108863>>26-xr),this._strip()},le.prototype.notn=function(be){return this.clone().inotn(be)},le.prototype.setn=function(be,kr){ce(typeof be=="number"&&be>=0);var xr=be/26|0,Wr=be%26;return this._expand(xr+1),kr?this.words[xr]=this.words[xr]|1<be.length?(xr=this,Wr=be):(xr=be,Wr=this);for(var Jt=0,Xr=0;Xr>>26;for(;Jt!==0&&Xr>>26;if(this.length=xr.length,Jt!==0)this.words[this.length]=Jt,this.length++;else if(xr!==this)for(;Xrbe.length?this.clone().iadd(be):be.clone().iadd(this)},le.prototype.isub=function(be){if(be.negative!==0){be.negative=0;var kr=this.iadd(be);return be.negative=1,kr._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(be),this.negative=1,this._normSign();var xr=this.cmp(be);if(xr===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Wr,Jt;xr>0?(Wr=this,Jt=be):(Wr=be,Jt=this);for(var Xr=0,zr=0;zr>26,this.words[zr]=kr&67108863;for(;Xr!==0&&zr>26,this.words[zr]=kr&67108863;if(Xr===0&&zr>>26,On=Jr&67108863,Gn=Math.min(Nr,be.length-1),mn=Math.max(0,Nr-Kr.length+1);mn<=Gn;mn++){var Nn=Nr-mn|0;Wr=Kr.words[Nn]|0,Jt=be.words[mn]|0,Xr=Wr*Jt+On,Hr+=Xr/67108864|0,On=Xr&67108863}kr.words[Nr]=On|0,Jr=Hr|0}return Jr!==0?kr.words[Nr]=Jr|0:kr.length--,kr._strip()}var Mr=function(be,kr,xr){var Wr=be.words,Jt=kr.words,Xr=xr.words,zr=0,Jr,Nr,Hr,On=Wr[0]|0,Gn=On&8191,mn=On>>>13,Nn=Wr[1]|0,In=Nn&8191,bn=Nn>>>13,ii=Wr[2]|0,vn=ii&8191,pn=ii>>>13,Sn=Wr[3]|0,Qn=Sn&8191,Jn=Sn>>>13,ui=Wr[4]|0,gi=ui&8191,di=ui>>>13,Ci=Wr[5]|0,yi=Ci&8191,li=Ci>>>13,Pi=Wr[6]|0,Ai=Pi&8191,Oi=Pi>>>13,to=Wr[7]|0,En=to&8191,Bt=to>>>13,Zt=Wr[8]|0,Tn=Zt&8191,ei=Zt>>>13,zn=Wr[9]|0,gn=zn&8191,xn=zn>>>13,Hn=Jt[0]|0,Ln=Hn&8191,ti=Hn>>>13,oi=Jt[1]|0,Ei=oi&8191,Ri=oi>>>13,Oo=Jt[2]|0,Ui=Oo&8191,io=Oo>>>13,So=Jt[3]|0,$o=So&8191,mo=So>>>13,qo=Jt[4]|0,wo=qo&8191,Eo=qo>>>13,jo=Jt[5]|0,go=jo&8191,zi=jo>>>13,xo=Jt[6]|0,Yr=xo&8191,Wt=xo>>>13,ln=Jt[7]|0,qr=ln&8191,dn=ln>>>13,ri=Jt[8]|0,Zn=ri&8191,ai=ri>>>13,bi=Jt[9]|0,_i=bi&8191,fi=bi>>>13;xr.negative=be.negative^kr.negative,xr.length=19,Jr=Math.imul(Gn,Ln),Nr=Math.imul(Gn,ti),Nr=Nr+Math.imul(mn,Ln)|0,Hr=Math.imul(mn,ti);var yo=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)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|0,Jr=Jr+Math.imul(En,Zn)|0,Nr=Nr+Math.imul(En,ai)|0,Nr=Nr+Math.imul(Bt,Zn)|0,Hr=Hr+Math.imul(Bt,ai)|0,Jr=Jr+Math.imul(Ai,_i)|0,Nr=Nr+Math.imul(Ai,fi)|0,Nr=Nr+Math.imul(Oi,_i)|0,Hr=Hr+Math.imul(Oi,fi)|0;var ci=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(ci>>>26)|0,ci&=67108863,Jr=Math.imul(gn,qr),Nr=Math.imul(gn,dn),Nr=Nr+Math.imul(xn,qr)|0,Hr=Math.imul(xn,dn),Jr=Jr+Math.imul(Tn,Zn)|0,Nr=Nr+Math.imul(Tn,ai)|0,Nr=Nr+Math.imul(ei,Zn)|0,Hr=Hr+Math.imul(ei,ai)|0,Jr=Jr+Math.imul(En,_i)|0,Nr=Nr+Math.imul(En,fi)|0,Nr=Nr+Math.imul(Bt,_i)|0,Hr=Hr+Math.imul(Bt,fi)|0;var pi=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(pi>>>26)|0,pi&=67108863,Jr=Math.imul(gn,Zn),Nr=Math.imul(gn,ai),Nr=Nr+Math.imul(xn,Zn)|0,Hr=Math.imul(xn,ai),Jr=Jr+Math.imul(Tn,_i)|0,Nr=Nr+Math.imul(Tn,fi)|0,Nr=Nr+Math.imul(ei,_i)|0,Hr=Hr+Math.imul(ei,fi)|0;var mi=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(mi>>>26)|0,mi&=67108863,Jr=Math.imul(gn,_i),Nr=Math.imul(gn,fi),Nr=Nr+Math.imul(xn,_i)|0,Hr=Math.imul(xn,fi);var Si=(zr+Jr|0)+((Nr&8191)<<13)|0;return zr=(Hr+(Nr>>>13)|0)+(Si>>>26)|0,Si&=67108863,Xr[0]=yo,Xr[1]=Di,Xr[2]=Ni,Xr[3]=oo,Xr[4]=fo,Xr[5]=co,Xr[6]=Ao,Xr[7]=vo,Xr[8]=_o,Xr[9]=so,Xr[10]=lo,Xr[11]=eo,Xr[12]=uo,Xr[13]=ho,Xr[14]=ro,Xr[15]=ci,Xr[16]=pi,Xr[17]=mi,Xr[18]=Si,zr!==0&&(Xr[19]=zr,xr.length++),xr};Math.imul||(Mr=jr);function Lr(Kr,be,kr){kr.negative=be.negative^Kr.negative,kr.length=Kr.length+be.length;for(var xr=0,Wr=0,Jt=0;Jt>>26)|0,Wr+=Xr>>>26,Xr&=67108863}kr.words[Jt]=zr,xr=Xr,Xr=Wr}return xr!==0?kr.words[Jt]=xr:kr.length--,kr._strip()}function Vr(Kr,be,kr){return Lr(Kr,be,kr)}le.prototype.mulTo=function(be,kr){var xr,Wr=this.length+be.length;return this.length===10&&be.length===10?xr=Mr(this,be,kr):Wr<63?xr=jr(this,be,kr):Wr<1024?xr=Lr(this,be,kr):xr=Vr(this,be,kr),xr},le.prototype.mul=function(be){var kr=new le(null);return kr.words=new Array(this.length+be.length),this.mulTo(be,kr)},le.prototype.mulf=function(be){var kr=new le(null);return kr.words=new Array(this.length+be.length),Vr(this,be,kr)},le.prototype.imul=function(be){return this.clone().mulTo(be,this)},le.prototype.imuln=function(be){var kr=be<0;kr&&(be=-be),ce(typeof be=="number"),ce(be<67108864);for(var xr=0,Wr=0;Wr>=26,xr+=Jt/67108864|0,xr+=Xr>>>26,this.words[Wr]=Xr&67108863}return xr!==0&&(this.words[Wr]=xr,this.length++),kr?this.ineg():this},le.prototype.muln=function(be){return this.clone().imuln(be)},le.prototype.sqr=function(){return this.mul(this)},le.prototype.isqr=function(){return this.imul(this.clone())},le.prototype.pow=function(be){var kr=ur(be);if(kr.length===0)return new le(1);for(var xr=this,Wr=0;Wr=0);var kr=be%26,xr=(be-kr)/26,Wr=67108863>>>26-kr<<26-kr,Jt;if(kr!==0){var Xr=0;for(Jt=0;Jt>>26-kr}Xr&&(this.words[Jt]=Xr,this.length++)}if(xr!==0){for(Jt=this.length-1;Jt>=0;Jt--)this.words[Jt+xr]=this.words[Jt];for(Jt=0;Jt=0);var Wr;kr?Wr=(kr-kr%26)/26:Wr=0;var Jt=be%26,Xr=Math.min((be-Jt)/26,this.length),zr=67108863^67108863>>>Jt<Xr)for(this.length-=Xr,Nr=0;Nr=0&&(Hr!==0||Nr>=Wr);Nr--){var On=this.words[Nr]|0;this.words[Nr]=Hr<<26-Jt|On>>>Jt,Hr=On&zr}return Jr&&Hr!==0&&(Jr.words[Jr.length++]=Hr),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},le.prototype.ishrn=function(be,kr,xr){return ce(this.negative===0),this.iushrn(be,kr,xr)},le.prototype.shln=function(be){return this.clone().ishln(be)},le.prototype.ushln=function(be){return this.clone().iushln(be)},le.prototype.shrn=function(be){return this.clone().ishrn(be)},le.prototype.ushrn=function(be){return this.clone().iushrn(be)},le.prototype.testn=function(be){ce(typeof be=="number"&&be>=0);var kr=be%26,xr=(be-kr)/26,Wr=1<=0);var kr=be%26,xr=(be-kr)/26;if(ce(this.negative===0,"imaskn works only with positive numbers"),this.length<=xr)return this;if(kr!==0&&xr++,this.length=Math.min(xr,this.length),kr!==0){var Wr=67108863^67108863>>>kr<=67108864;kr++)this.words[kr]-=67108864,kr===this.length-1?this.words[kr+1]=1:this.words[kr+1]++;return this.length=Math.max(this.length,kr+1),this},le.prototype.isubn=function(be){if(ce(typeof be=="number"),ce(be<67108864),be<0)return this.iaddn(-be);if(this.negative!==0)return this.negative=0,this.iaddn(be),this.negative=1,this;if(this.words[0]-=be,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var kr=0;kr>26)-(Jr/67108864|0),this.words[Jt+xr]=Xr&67108863}for(;Jt>26,this.words[Jt+xr]=Xr&67108863;if(zr===0)return this._strip();for(ce(zr===-1),zr=0,Jt=0;Jt>26,this.words[Jt]=Xr&67108863;return this.negative=1,this._strip()},le.prototype._wordDiv=function(be,kr){var xr=this.length-be.length,Wr=this.clone(),Jt=be,Xr=Jt.words[Jt.length-1]|0,zr=this._countBits(Xr);xr=26-zr,xr!==0&&(Jt=Jt.ushln(xr),Wr.iushln(xr),Xr=Jt.words[Jt.length-1]|0);var Jr=Wr.length-Jt.length,Nr;if(kr!=="mod"){Nr=new le(null),Nr.length=Jr+1,Nr.words=new Array(Nr.length);for(var Hr=0;Hr=0;Gn--){var mn=(Wr.words[Jt.length+Gn]|0)*67108864+(Wr.words[Jt.length+Gn-1]|0);for(mn=Math.min(mn/Xr|0,67108863),Wr._ishlnsubmul(Jt,mn,Gn);Wr.negative!==0;)mn--,Wr.negative=0,Wr._ishlnsubmul(Jt,1,Gn),Wr.isZero()||(Wr.negative^=1);Nr&&(Nr.words[Gn]=mn)}return Nr&&Nr._strip(),Wr._strip(),kr!=="div"&&xr!==0&&Wr.iushrn(xr),{div:Nr||null,mod:Wr}},le.prototype.divmod=function(be,kr,xr){if(ce(!be.isZero()),this.isZero())return{div:new le(0),mod:new le(0)};var Wr,Jt,Xr;return this.negative!==0&&be.negative===0?(Xr=this.neg().divmod(be,kr),kr!=="mod"&&(Wr=Xr.div.neg()),kr!=="div"&&(Jt=Xr.mod.neg(),xr&&Jt.negative!==0&&Jt.iadd(be)),{div:Wr,mod:Jt}):this.negative===0&&be.negative!==0?(Xr=this.divmod(be.neg(),kr),kr!=="mod"&&(Wr=Xr.div.neg()),{div:Wr,mod:Xr.mod}):(this.negative&be.negative)!==0?(Xr=this.neg().divmod(be.neg(),kr),kr!=="div"&&(Jt=Xr.mod.neg(),xr&&Jt.negative!==0&&Jt.isub(be)),{div:Xr.div,mod:Jt}):be.length>this.length||this.cmp(be)<0?{div:new le(0),mod:this}:be.length===1?kr==="div"?{div:this.divn(be.words[0]),mod:null}:kr==="mod"?{div:null,mod:new le(this.modrn(be.words[0]))}:{div:this.divn(be.words[0]),mod:new le(this.modrn(be.words[0]))}:this._wordDiv(be,kr)},le.prototype.div=function(be){return this.divmod(be,"div",!1).div},le.prototype.mod=function(be){return this.divmod(be,"mod",!1).mod},le.prototype.umod=function(be){return this.divmod(be,"mod",!0).mod},le.prototype.divRound=function(be){var kr=this.divmod(be);if(kr.mod.isZero())return kr.div;var xr=kr.div.negative!==0?kr.mod.isub(be):kr.mod,Wr=be.ushrn(1),Jt=be.andln(1),Xr=xr.cmp(Wr);return Xr<0||Jt===1&&Xr===0?kr.div:kr.div.negative!==0?kr.div.isubn(1):kr.div.iaddn(1)},le.prototype.modrn=function(be){var kr=be<0;kr&&(be=-be),ce(be<=67108863);for(var xr=(1<<26)%be,Wr=0,Jt=this.length-1;Jt>=0;Jt--)Wr=(xr*Wr+(this.words[Jt]|0))%be;return kr?-Wr:Wr},le.prototype.modn=function(be){return this.modrn(be)},le.prototype.idivn=function(be){var kr=be<0;kr&&(be=-be),ce(be<=67108863);for(var xr=0,Wr=this.length-1;Wr>=0;Wr--){var Jt=(this.words[Wr]|0)+xr*67108864;this.words[Wr]=Jt/be|0,xr=Jt%be}return this._strip(),kr?this.ineg():this},le.prototype.divn=function(be){return this.clone().idivn(be)},le.prototype.egcd=function(be){ce(be.negative===0),ce(!be.isZero());var kr=this,xr=be.clone();kr.negative!==0?kr=kr.umod(be):kr=kr.clone();for(var Wr=new le(1),Jt=new le(0),Xr=new le(0),zr=new le(1),Jr=0;kr.isEven()&&xr.isEven();)kr.iushrn(1),xr.iushrn(1),++Jr;for(var Nr=xr.clone(),Hr=kr.clone();!kr.isZero();){for(var On=0,Gn=1;(kr.words[0]&Gn)===0&&On<26;++On,Gn<<=1);if(On>0)for(kr.iushrn(On);On-- >0;)(Wr.isOdd()||Jt.isOdd())&&(Wr.iadd(Nr),Jt.isub(Hr)),Wr.iushrn(1),Jt.iushrn(1);for(var mn=0,Nn=1;(xr.words[0]&Nn)===0&&mn<26;++mn,Nn<<=1);if(mn>0)for(xr.iushrn(mn);mn-- >0;)(Xr.isOdd()||zr.isOdd())&&(Xr.iadd(Nr),zr.isub(Hr)),Xr.iushrn(1),zr.iushrn(1);kr.cmp(xr)>=0?(kr.isub(xr),Wr.isub(Xr),Jt.isub(zr)):(xr.isub(kr),Xr.isub(Wr),zr.isub(Jt))}return{a:Xr,b:zr,gcd:xr.iushln(Jr)}},le.prototype._invmp=function(be){ce(be.negative===0),ce(!be.isZero());var kr=this,xr=be.clone();kr.negative!==0?kr=kr.umod(be):kr=kr.clone();for(var Wr=new le(1),Jt=new le(0),Xr=xr.clone();kr.cmpn(1)>0&&xr.cmpn(1)>0;){for(var zr=0,Jr=1;(kr.words[0]&Jr)===0&&zr<26;++zr,Jr<<=1);if(zr>0)for(kr.iushrn(zr);zr-- >0;)Wr.isOdd()&&Wr.iadd(Xr),Wr.iushrn(1);for(var Nr=0,Hr=1;(xr.words[0]&Hr)===0&&Nr<26;++Nr,Hr<<=1);if(Nr>0)for(xr.iushrn(Nr);Nr-- >0;)Jt.isOdd()&&Jt.iadd(Xr),Jt.iushrn(1);kr.cmp(xr)>=0?(kr.isub(xr),Wr.isub(Jt)):(xr.isub(kr),Jt.isub(Wr))}var On;return kr.cmpn(1)===0?On=Wr:On=Jt,On.cmpn(0)<0&&On.iadd(be),On},le.prototype.gcd=function(be){if(this.isZero())return be.abs();if(be.isZero())return this.abs();var kr=this.clone(),xr=be.clone();kr.negative=0,xr.negative=0;for(var Wr=0;kr.isEven()&&xr.isEven();Wr++)kr.iushrn(1),xr.iushrn(1);do{for(;kr.isEven();)kr.iushrn(1);for(;xr.isEven();)xr.iushrn(1);var Jt=kr.cmp(xr);if(Jt<0){var Xr=kr;kr=xr,xr=Xr}else if(Jt===0||xr.cmpn(1)===0)break;kr.isub(xr)}while(!0);return xr.iushln(Wr)},le.prototype.invm=function(be){return this.egcd(be).a.umod(be)},le.prototype.isEven=function(){return(this.words[0]&1)===0},le.prototype.isOdd=function(){return(this.words[0]&1)===1},le.prototype.andln=function(be){return this.words[0]&be},le.prototype.bincn=function(be){ce(typeof be=="number");var kr=be%26,xr=(be-kr)/26,Wr=1<>>26,zr&=67108863,this.words[Xr]=zr}return Jt!==0&&(this.words[Xr]=Jt,this.length++),this},le.prototype.isZero=function(){return this.length===1&&this.words[0]===0},le.prototype.cmpn=function(be){var kr=be<0;if(this.negative!==0&&!kr)return-1;if(this.negative===0&&kr)return 1;this._strip();var xr;if(this.length>1)xr=1;else{kr&&(be=-be),ce(be<=67108863,"Number is too big");var Wr=this.words[0]|0;xr=Wr===be?0:Wrbe.length)return 1;if(this.length=0;xr--){var Wr=this.words[xr]|0,Jt=be.words[xr]|0;if(Wr!==Jt){WrJt&&(kr=1);break}}return kr},le.prototype.gtn=function(be){return this.cmpn(be)===1},le.prototype.gt=function(be){return this.cmp(be)===1},le.prototype.gten=function(be){return this.cmpn(be)>=0},le.prototype.gte=function(be){return this.cmp(be)>=0},le.prototype.ltn=function(be){return this.cmpn(be)===-1},le.prototype.lt=function(be){return this.cmp(be)===-1},le.prototype.lten=function(be){return this.cmpn(be)<=0},le.prototype.lte=function(be){return this.cmp(be)<=0},le.prototype.eqn=function(be){return this.cmpn(be)===0},le.prototype.eq=function(be){return this.cmp(be)===0},le.red=function(be){return new Qt(be)},le.prototype.toRed=function(be){return ce(!this.red,"Already a number in reduction context"),ce(this.negative===0,"red works only with positives"),be.convertTo(this)._forceRed(be)},le.prototype.fromRed=function(){return ce(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},le.prototype._forceRed=function(be){return this.red=be,this},le.prototype.forceRed=function(be){return ce(!this.red,"Already a number in reduction context"),this._forceRed(be)},le.prototype.redAdd=function(be){return ce(this.red,"redAdd works only with red numbers"),this.red.add(this,be)},le.prototype.redIAdd=function(be){return ce(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,be)},le.prototype.redSub=function(be){return ce(this.red,"redSub works only with red numbers"),this.red.sub(this,be)},le.prototype.redISub=function(be){return ce(this.red,"redISub works only with red numbers"),this.red.isub(this,be)},le.prototype.redShl=function(be){return ce(this.red,"redShl works only with red numbers"),this.red.shl(this,be)},le.prototype.redMul=function(be){return ce(this.red,"redMul works only with red numbers"),this.red._verify2(this,be),this.red.mul(this,be)},le.prototype.redIMul=function(be){return ce(this.red,"redMul works only with red numbers"),this.red._verify2(this,be),this.red.imul(this,be)},le.prototype.redSqr=function(){return ce(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},le.prototype.redISqr=function(){return ce(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},le.prototype.redSqrt=function(){return ce(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},le.prototype.redInvm=function(){return ce(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},le.prototype.redNeg=function(){return ce(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},le.prototype.redPow=function(be){return ce(this.red&&!be.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,be)};var Gr={k256:null,p224:null,p192:null,p25519:null};function Ur(Kr,be){this.name=Kr,this.p=new le(be,16),this.n=this.p.bitLength(),this.k=new le(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ur.prototype._tmp=function(){var be=new le(null);return be.words=new Array(Math.ceil(this.n/13)),be},Ur.prototype.ireduce=function(be){var kr=be,xr;do this.split(kr,this.tmp),kr=this.imulK(kr),kr=kr.iadd(this.tmp),xr=kr.bitLength();while(xr>this.n);var Wr=xr0?kr.isub(this.p):kr.strip!==void 0?kr.strip():kr._strip(),kr},Ur.prototype.split=function(be,kr){be.iushrn(this.n,0,kr)},Ur.prototype.imulK=function(be){return be.imul(this.k)};function Qr(){Ur.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}fe(Qr,Ur),Qr.prototype.split=function(be,kr){for(var xr=4194303,Wr=Math.min(be.length,9),Jt=0;Jt>>22,Xr=zr}Xr>>>=22,be.words[Jt-10]=Xr,Xr===0&&be.length>10?be.length-=10:be.length-=9},Qr.prototype.imulK=function(be){be.words[be.length]=0,be.words[be.length+1]=0,be.length+=2;for(var kr=0,xr=0;xr>>=26,be.words[xr]=Jt,kr=Wr}return kr!==0&&(be.words[be.length++]=kr),be},le._prime=function(be){if(Gr[be])return Gr[be];var kr;if(be==="k256")kr=new Qr;else if(be==="p224")kr=new hn;else if(be==="p192")kr=new Yt;else if(be==="p25519")kr=new fn;else throw new Error("Unknown prime "+be);return Gr[be]=kr,kr};function Qt(Kr){if(typeof Kr=="string"){var be=le._prime(Kr);this.m=be.p,this.prime=be}else ce(Kr.gtn(1),"modulus must be greater than 1"),this.m=Kr,this.prime=null}Qt.prototype._verify1=function(be){ce(be.negative===0,"red works only with positives"),ce(be.red,"red works only with red numbers")},Qt.prototype._verify2=function(be,kr){ce((be.negative|kr.negative)===0,"red works only with positives"),ce(be.red&&be.red===kr.red,"red works only with red numbers")},Qt.prototype.imod=function(be){return this.prime?this.prime.ireduce(be)._forceRed(this):(Ee(be,be.umod(this.m)._forceRed(this)),be)},Qt.prototype.neg=function(be){return be.isZero()?be.clone():this.m.sub(be)._forceRed(this)},Qt.prototype.add=function(be,kr){this._verify2(be,kr);var xr=be.add(kr);return xr.cmp(this.m)>=0&&xr.isub(this.m),xr._forceRed(this)},Qt.prototype.iadd=function(be,kr){this._verify2(be,kr);var xr=be.iadd(kr);return xr.cmp(this.m)>=0&&xr.isub(this.m),xr},Qt.prototype.sub=function(be,kr){this._verify2(be,kr);var xr=be.sub(kr);return xr.cmpn(0)<0&&xr.iadd(this.m),xr._forceRed(this)},Qt.prototype.isub=function(be,kr){this._verify2(be,kr);var xr=be.isub(kr);return xr.cmpn(0)<0&&xr.iadd(this.m),xr},Qt.prototype.shl=function(be,kr){return this._verify1(be),this.imod(be.ushln(kr))},Qt.prototype.imul=function(be,kr){return this._verify2(be,kr),this.imod(be.imul(kr))},Qt.prototype.mul=function(be,kr){return this._verify2(be,kr),this.imod(be.mul(kr))},Qt.prototype.isqr=function(be){return this.imul(be,be.clone())},Qt.prototype.sqr=function(be){return this.mul(be,be)},Qt.prototype.sqrt=function(be){if(be.isZero())return be.clone();var kr=this.m.andln(3);if(ce(kr%2===1),kr===3){var xr=this.m.add(new le(1)).iushrn(2);return this.pow(be,xr)}for(var Wr=this.m.subn(1),Jt=0;!Wr.isZero()&&Wr.andln(1)===0;)Jt++,Wr.iushrn(1);ce(!Wr.isZero());var Xr=new le(1).toRed(this),zr=Xr.redNeg(),Jr=this.m.subn(1).iushrn(1),Nr=this.m.bitLength();for(Nr=new le(2*Nr*Nr).toRed(this);this.pow(Nr,Jr).cmp(zr)!==0;)Nr.redIAdd(zr);for(var Hr=this.pow(Nr,Wr),On=this.pow(be,Wr.addn(1).iushrn(1)),Gn=this.pow(be,Wr),mn=Jt;Gn.cmp(Xr)!==0;){for(var Nn=Gn,In=0;Nn.cmp(Xr)!==0;In++)Nn=Nn.redSqr();ce(In=0;Jt--){for(var Hr=kr.words[Jt],On=Nr-1;On>=0;On--){var Gn=Hr>>On&1;if(Xr!==Wr[0]&&(Xr=this.sqr(Xr)),Gn===0&&zr===0){Jr=0;continue}zr<<=1,zr|=Gn,Jr++,!(Jr!==xr&&(Jt!==0||On!==0))&&(Xr=this.mul(Xr,Wr[zr]),Jr=0,zr=0)}Nr=26}return Xr},Qt.prototype.convertTo=function(be){var kr=be.umod(this.m);return kr===be?kr.clone():kr},Qt.prototype.convertFrom=function(be){var kr=be.clone();return kr.red=null,kr},le.mont=function(be){return new Xt(be)};function Xt(Kr){Qt.call(this,Kr),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new le(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}fe(Xt,Qt),Xt.prototype.convertTo=function(be){return this.imod(be.ushln(this.shift))},Xt.prototype.convertFrom=function(be){var kr=this.imod(be.mul(this.rinv));return kr.red=null,kr},Xt.prototype.imul=function(be,kr){if(be.isZero()||kr.isZero())return be.words[0]=0,be.length=1,be;var xr=be.imul(kr),Wr=xr.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=xr.isub(Wr).iushrn(this.shift),Xr=Jt;return Jt.cmp(this.m)>=0?Xr=Jt.isub(this.m):Jt.cmpn(0)<0&&(Xr=Jt.iadd(this.m)),Xr._forceRed(this)},Xt.prototype.mul=function(be,kr){if(be.isZero()||kr.isZero())return new le(0)._forceRed(this);var xr=be.mul(kr),Wr=xr.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=xr.isub(Wr).iushrn(this.shift),Xr=Jt;return Jt.cmp(this.m)>=0?Xr=Jt.isub(this.m):Jt.cmpn(0)<0&&(Xr=Jt.iadd(this.m)),Xr._forceRed(this)},Xt.prototype.invm=function(be){var kr=this.imod(be._invmp(this.m).mul(this.r2));return kr._forceRed(this)}})(typeof k>"u"||k,v)}}),require_safe_buffer$1=__commonJS({"node_modules/safe-buffer/index.js"(v,k){var ie=require_buffer(),ae=ie.Buffer;function ce(le,ve){for(var pe in le)ve[pe]=le[pe]}ae.from&&ae.alloc&&ae.allocUnsafe&&ae.allocUnsafeSlow?k.exports=ie:(ce(ie,v),v.Buffer=fe);function fe(le,ve,pe){return ae(le,ve,pe)}fe.prototype=Object.create(ae.prototype),ce(ae,fe),fe.from=function(le,ve,pe){if(typeof le=="number")throw new TypeError("Argument must not be a number");return ae(le,ve,pe)},fe.alloc=function(le,ve,pe){if(typeof le!="number")throw new TypeError("Argument must be a number");var ye=ae(le);return ve!==void 0?typeof pe=="string"?ye.fill(ve,pe):ye.fill(ve):ye.fill(0),ye},fe.allocUnsafe=function(le){if(typeof le!="number")throw new TypeError("Argument must be a number");return ae(le)},fe.allocUnsafeSlow=function(le){if(typeof le!="number")throw new TypeError("Argument must be a number");return ie.SlowBuffer(le)}}}),require_src$3=__commonJS({"node_modules/base-x/src/index.js"(v,k){var ie=require_safe_buffer$1().Buffer;function ae(ce){if(ce.length>=255)throw new TypeError("Alphabet too long");for(var fe=new Uint8Array(256),le=0;le>>0,Ur=new Uint8Array(Gr);Lr!==Vr;){for(var Qr=ur[Lr],hn=0,Yt=Gr-1;(Qr!==0||hn>>0,Ur[Yt]=Qr%me>>>0,Qr=Qr/me>>>0;if(Qr!==0)throw new Error("Non-zero carry");Mr=hn,Lr++}for(var fn=Gr-Mr;fn!==Gr&&Ur[fn]===0;)fn++;for(var Qt=Ee.repeat(jr);fn>>0,Gr=new Uint8Array(Vr);ur[jr];){var Ur=fe[ur.charCodeAt(jr)];if(Ur===255)return;for(var Qr=0,hn=Vr-1;(Ur!==0||Qr>>0,Gr[hn]=Ur%256>>>0,Ur=Ur/256>>>0;if(Ur!==0)throw new Error("Non-zero carry");Lr=Qr,jr++}for(var Yt=Vr-Lr;Yt!==Vr&&Gr[Yt]===0;)Yt++;var fn=ie.allocUnsafe(Mr+(Vr-Yt));fn.fill(0,0,Mr);for(var Qt=Mr;Yt!==Vr;)fn[Qt++]=Gr[Yt++];return fn}function Ar(ur){var jr=Pr(ur);if(jr)return jr;throw new Error("Non-base"+me+" character")}return{encode:$r,decodeUnsafe:Pr,decode:Ar}}k.exports=ae}}),require_bs58$1=__commonJS({"node_modules/bs58/index.js"(v,k){var ie=require_src$3(),ae="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";k.exports=ie(ae)}}),encoding_exports$1={};__export(encoding_exports$1,{TextDecoder:()=>TextDecoder2$1,TextEncoder:()=>TextEncoder$2});function inRange$1(v,k,ie){return k<=v&&v<=ie}function ToDictionary$1(v){if(v===void 0)return{};if(v===Object(v))return v;throw TypeError("Could not convert argument to dictionary")}function stringToCodePoints$1(v){for(var k=String(v),ie=k.length,ae=0,ce=[];ae57343)ce.push(fe);else if(56320<=fe&&fe<=57343)ce.push(65533);else if(55296<=fe&&fe<=56319)if(ae===ie-1)ce.push(65533);else{var le=v.charCodeAt(ae+1);if(56320<=le&&le<=57343){var ve=fe&1023,pe=le&1023;ce.push(65536+(ve<<10)+pe),ae+=1}else ce.push(65533)}ae+=1}return ce}function codePointsToString$1(v){for(var k="",ie=0;ie>10)+55296,(ae&1023)+56320))}return k}function Stream$1(v){this.tokens=[].slice.call(v)}function decoderError$1(v,k){if(v)throw TypeError("Decoder error");return k||65533}function TextDecoder2$1(v,k){if(!(this instanceof TextDecoder2$1))return new TextDecoder2$1(v,k);if(v=v!==void 0?String(v).toLowerCase():DEFAULT_ENCODING$1,v!==DEFAULT_ENCODING$1)throw new Error("Encoding not supported. Only utf-8 is supported");k=ToDictionary$1(k),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(k.fatal),this._ignoreBOM=Boolean(k.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function TextEncoder$2(v,k){if(!(this instanceof TextEncoder$2))return new TextEncoder$2(v,k);if(v=v!==void 0?String(v).toLowerCase():DEFAULT_ENCODING$1,v!==DEFAULT_ENCODING$1)throw new Error("Encoding not supported. Only utf-8 is supported");k=ToDictionary$1(k),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(k.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function UTF8Decoder$1(v){var k=v.fatal,ie=0,ae=0,ce=0,fe=128,le=191;this.handler=function(ve,pe){if(pe===end_of_stream$1&&ce!==0)return ce=0,decoderError$1(k);if(pe===end_of_stream$1)return finished$1;if(ce===0){if(inRange$1(pe,0,127))return pe;if(inRange$1(pe,194,223))ce=1,ie=pe-192;else if(inRange$1(pe,224,239))pe===224&&(fe=160),pe===237&&(le=159),ce=2,ie=pe-224;else if(inRange$1(pe,240,244))pe===240&&(fe=144),pe===244&&(le=143),ce=3,ie=pe-240;else return decoderError$1(k);return ie=ie<<6*ce,null}if(!inRange$1(pe,fe,le))return ie=ce=ae=0,fe=128,le=191,ve.prepend(pe),decoderError$1(k);if(fe=128,le=191,ae+=1,ie+=pe-128<<6*(ce-ae),ae!==ce)return null;var ye=ie;return ie=ce=ae=0,ye}}function UTF8Encoder$1(v){v.fatal,this.handler=function(k,ie){if(ie===end_of_stream$1)return finished$1;if(inRange$1(ie,0,127))return ie;var ae,ce;inRange$1(ie,128,2047)?(ae=1,ce=192):inRange$1(ie,2048,65535)?(ae=2,ce=224):inRange$1(ie,65536,1114111)&&(ae=3,ce=240);for(var fe=[(ie>>6*ae)+ce];ae>0;){var le=ie>>6*(ae-1);fe.push(128|le&63),ae-=1}return fe}}var end_of_stream$1,finished$1,DEFAULT_ENCODING$1,init_encoding$1=__esm({"node_modules/text-encoding-utf-8/src/encoding.js"(){end_of_stream$1=-1,Stream$1.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():end_of_stream$1},prepend:function(v){if(Array.isArray(v))for(var k=v;k.length;)this.tokens.unshift(k.pop());else this.tokens.unshift(v)},push:function(v){if(Array.isArray(v))for(var k=v;k.length;)this.tokens.push(k.shift());else this.tokens.push(v)}},finished$1=-1,DEFAULT_ENCODING$1="utf-8",TextDecoder2$1.prototype={decode:function(k,ie){var ae;typeof k=="object"&&k instanceof ArrayBuffer?ae=new Uint8Array(k):typeof k=="object"&&"buffer"in k&&k.buffer instanceof ArrayBuffer?ae=new Uint8Array(k.buffer,k.byteOffset,k.byteLength):ae=new Uint8Array(0),ie=ToDictionary$1(ie),this._streaming||(this._decoder=new UTF8Decoder$1({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(ie.stream);for(var ce=new Stream$1(ae),fe=[],le;!ce.endOfStream()&&(le=this._decoder.handler(ce,ce.read()),le!==finished$1);)le!==null&&(Array.isArray(le)?fe.push.apply(fe,le):fe.push(le));if(!this._streaming){do{if(le=this._decoder.handler(ce,ce.read()),le===finished$1)break;le!==null&&(Array.isArray(le)?fe.push.apply(fe,le):fe.push(le))}while(!ce.endOfStream());this._decoder=null}return fe.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(fe[0]===65279?(this._BOMseen=!0,fe.shift()):this._BOMseen=!0),codePointsToString$1(fe)}},TextEncoder$2.prototype={encode:function(k,ie){k=k?String(k):"",ie=ToDictionary$1(ie),this._streaming||(this._encoder=new UTF8Encoder$1(this._options)),this._streaming=Boolean(ie.stream);for(var ae=[],ce=new Stream$1(stringToCodePoints$1(k)),fe;!ce.endOfStream()&&(fe=this._encoder.handler(ce,ce.read()),fe!==finished$1);)Array.isArray(fe)?ae.push.apply(ae,fe):ae.push(fe);if(!this._streaming){for(;fe=this._encoder.handler(ce,ce.read()),fe!==finished$1;)Array.isArray(fe)?ae.push.apply(ae,fe):ae.push(fe);this._encoder=null}return new Uint8Array(ae)}}}}),require_lib$1=__commonJS({"node_modules/borsh/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(Yt,fn,Qt,Xt){Xt===void 0&&(Xt=Qt),Object.defineProperty(Yt,Xt,{enumerable:!0,get:function(){return fn[Qt]}})}:function(Yt,fn,Qt,Xt){Xt===void 0&&(Xt=Qt),Yt[Xt]=fn[Qt]}),ie=v&&v.__setModuleDefault||(Object.create?function(Yt,fn){Object.defineProperty(Yt,"default",{enumerable:!0,value:fn})}:function(Yt,fn){Yt.default=fn}),ae=v&&v.__decorate||function(Yt,fn,Qt,Xt){var Kr=arguments.length,be=Kr<3?fn:Xt===null?Xt=Object.getOwnPropertyDescriptor(fn,Qt):Xt,kr;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")be=Reflect.decorate(Yt,fn,Qt,Xt);else for(var xr=Yt.length-1;xr>=0;xr--)(kr=Yt[xr])&&(be=(Kr<3?kr(be):Kr>3?kr(fn,Qt,be):kr(fn,Qt))||be);return Kr>3&&be&&Object.defineProperty(fn,Qt,be),be},ce=v&&v.__importStar||function(Yt){if(Yt&&Yt.__esModule)return Yt;var fn={};if(Yt!=null)for(var Qt in Yt)Qt!=="default"&&Object.hasOwnProperty.call(Yt,Qt)&&k(fn,Yt,Qt);return ie(fn,Yt),fn},fe=v&&v.__importDefault||function(Yt){return Yt&&Yt.__esModule?Yt:{default:Yt}};Object.defineProperty(v,"__esModule",{value:!0}),v.deserializeUnchecked=v.deserialize=v.serialize=v.BinaryReader=v.BinaryWriter=v.BorshError=v.baseDecode=v.baseEncode=void 0;var le=fe(require_bn$2()),ve=fe(require_bs58$1()),pe=ce((init_encoding$1(),__toCommonJS(encoding_exports$1))),ye=typeof TextDecoder!="function"?pe.TextDecoder:TextDecoder,me=new ye("utf-8",{fatal:!0});function Ee(Yt){return typeof Yt=="string"&&(Yt=Buffer.from(Yt,"utf8")),ve.default.encode(Buffer.from(Yt))}v.baseEncode=Ee;function cr(Yt){return Buffer.from(ve.default.decode(Yt))}v.baseDecode=cr;var Br=1024,$r=class extends Error{constructor(Yt){super(Yt),this.fieldPath=[],this.originalMessage=Yt}addToFieldPath(Yt){this.fieldPath.splice(0,0,Yt),this.message=this.originalMessage+": "+this.fieldPath.join(".")}};v.BorshError=$r;var Pr=class{constructor(){this.buf=Buffer.alloc(Br),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(Br)]))}writeU8(Yt){this.maybeResize(),this.buf.writeUInt8(Yt,this.length),this.length+=1}writeU16(Yt){this.maybeResize(),this.buf.writeUInt16LE(Yt,this.length),this.length+=2}writeU32(Yt){this.maybeResize(),this.buf.writeUInt32LE(Yt,this.length),this.length+=4}writeU64(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",8)))}writeU128(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",16)))}writeU256(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",32)))}writeU512(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",64)))}writeBuffer(Yt){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),Yt,Buffer.alloc(Br)]),this.length+=Yt.length}writeString(Yt){this.maybeResize();const fn=Buffer.from(Yt,"utf8");this.writeU32(fn.length),this.writeBuffer(fn)}writeFixedArray(Yt){this.writeBuffer(Buffer.from(Yt))}writeArray(Yt,fn){this.maybeResize(),this.writeU32(Yt.length);for(const Qt of Yt)this.maybeResize(),fn(Qt)}toArray(){return this.buf.subarray(0,this.length)}};v.BinaryWriter=Pr;function Ar(Yt,fn,Qt){const Xt=Qt.value;Qt.value=function(...Kr){try{return Xt.apply(this,Kr)}catch(be){if(be instanceof RangeError){const kr=be.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(kr)>=0)throw new $r("Reached the end of buffer when deserializing")}throw be}}}var ur=class{constructor(Yt){this.buf=Yt,this.offset=0}readU8(){const Yt=this.buf.readUInt8(this.offset);return this.offset+=1,Yt}readU16(){const Yt=this.buf.readUInt16LE(this.offset);return this.offset+=2,Yt}readU32(){const Yt=this.buf.readUInt32LE(this.offset);return this.offset+=4,Yt}readU64(){const Yt=this.readBuffer(8);return new le.default(Yt,"le")}readU128(){const Yt=this.readBuffer(16);return new le.default(Yt,"le")}readU256(){const Yt=this.readBuffer(32);return new le.default(Yt,"le")}readU512(){const Yt=this.readBuffer(64);return new le.default(Yt,"le")}readBuffer(Yt){if(this.offset+Yt>this.buf.length)throw new $r(`Expected buffer length ${Yt} isn't within bounds`);const fn=this.buf.slice(this.offset,this.offset+Yt);return this.offset+=Yt,fn}readString(){const Yt=this.readU32(),fn=this.readBuffer(Yt);try{return me.decode(fn)}catch(Qt){throw new $r(`Error decoding UTF-8 string: ${Qt}`)}}readFixedArray(Yt){return new Uint8Array(this.readBuffer(Yt))}readArray(Yt){const fn=this.readU32(),Qt=Array();for(let Xt=0;Xt{Mr(Yt,fn,be,Xt[0],Kr)});else if(Xt.kind!==void 0)switch(Xt.kind){case"option":{Qt==null?Kr.writeU8(0):(Kr.writeU8(1),Mr(Yt,fn,Qt,Xt.type,Kr));break}case"map":{Kr.writeU32(Qt.size),Qt.forEach((be,kr)=>{Mr(Yt,fn,kr,Xt.key,Kr),Mr(Yt,fn,be,Xt.value,Kr)});break}default:throw new $r(`FieldType ${Xt} unrecognized`)}else Lr(Yt,Qt,Kr)}catch(be){throw be instanceof $r&&be.addToFieldPath(fn),be}}function Lr(Yt,fn,Qt){if(typeof fn.borshSerialize=="function"){fn.borshSerialize(Qt);return}const Xt=Yt.get(fn.constructor);if(!Xt)throw new $r(`Class ${fn.constructor.name} is missing in schema`);if(Xt.kind==="struct")Xt.fields.map(([Kr,be])=>{Mr(Yt,Kr,fn[Kr],be,Qt)});else if(Xt.kind==="enum"){const Kr=fn[Xt.field];for(let be=0;beGr(Yt,fn,Qt[0],Xt))}if(Qt.kind==="option")return Xt.readU8()?Gr(Yt,fn,Qt.type,Xt):void 0;if(Qt.kind==="map"){let Kr=new Map;const be=Xt.readU32();for(let kr=0;kr=Xt.values.length)throw new $r(`Enum index: ${Kr} is out of range`);const[be,kr]=Xt.values[Kr],xr=Gr(Yt,be,kr,Qt);return new fn({[be]:xr})}throw new $r(`Unexpected schema kind: ${Xt.kind} for ${fn.constructor.name}`)}function Qr(Yt,fn,Qt,Xt=ur){const Kr=new Xt(Qt),be=Ur(Yt,fn,Kr);if(Kr.offset>24&255,Yr[Wt+1]=ln>>16&255,Yr[Wt+2]=ln>>8&255,Yr[Wt+3]=ln&255,Yr[Wt+4]=qr>>24&255,Yr[Wt+5]=qr>>16&255,Yr[Wt+6]=qr>>8&255,Yr[Wt+7]=qr&255}function Ar(Yr,Wt,ln,qr,dn){var ri,Zn=0;for(ri=0;ri>>8)-1}function ur(Yr,Wt,ln,qr){return Ar(Yr,Wt,ln,qr,16)}function jr(Yr,Wt,ln,qr){return Ar(Yr,Wt,ln,qr,32)}function Mr(Yr,Wt,ln,qr){for(var dn=qr[0]&255|(qr[1]&255)<<8|(qr[2]&255)<<16|(qr[3]&255)<<24,ri=ln[0]&255|(ln[1]&255)<<8|(ln[2]&255)<<16|(ln[3]&255)<<24,Zn=ln[4]&255|(ln[5]&255)<<8|(ln[6]&255)<<16|(ln[7]&255)<<24,ai=ln[8]&255|(ln[9]&255)<<8|(ln[10]&255)<<16|(ln[11]&255)<<24,bi=ln[12]&255|(ln[13]&255)<<8|(ln[14]&255)<<16|(ln[15]&255)<<24,_i=qr[4]&255|(qr[5]&255)<<8|(qr[6]&255)<<16|(qr[7]&255)<<24,fi=Wt[0]&255|(Wt[1]&255)<<8|(Wt[2]&255)<<16|(Wt[3]&255)<<24,yo=Wt[4]&255|(Wt[5]&255)<<8|(Wt[6]&255)<<16|(Wt[7]&255)<<24,Di=Wt[8]&255|(Wt[9]&255)<<8|(Wt[10]&255)<<16|(Wt[11]&255)<<24,Ni=Wt[12]&255|(Wt[13]&255)<<8|(Wt[14]&255)<<16|(Wt[15]&255)<<24,oo=qr[8]&255|(qr[9]&255)<<8|(qr[10]&255)<<16|(qr[11]&255)<<24,fo=ln[16]&255|(ln[17]&255)<<8|(ln[18]&255)<<16|(ln[19]&255)<<24,co=ln[20]&255|(ln[21]&255)<<8|(ln[22]&255)<<16|(ln[23]&255)<<24,Ao=ln[24]&255|(ln[25]&255)<<8|(ln[26]&255)<<16|(ln[27]&255)<<24,vo=ln[28]&255|(ln[29]&255)<<8|(ln[30]&255)<<16|(ln[31]&255)<<24,_o=qr[12]&255|(qr[13]&255)<<8|(qr[14]&255)<<16|(qr[15]&255)<<24,so=dn,lo=ri,eo=Zn,uo=ai,ho=bi,ro=_i,ci=fi,pi=yo,mi=Di,Si=Ni,Ti=oo,xi=fo,To=co,Mo=Ao,Co=vo,Fo=_o,ni,Ko=0;Ko<20;Ko+=2)ni=so+To|0,ho^=ni<<7|ni>>>32-7,ni=ho+so|0,mi^=ni<<9|ni>>>32-9,ni=mi+ho|0,To^=ni<<13|ni>>>32-13,ni=To+mi|0,so^=ni<<18|ni>>>32-18,ni=ro+lo|0,Si^=ni<<7|ni>>>32-7,ni=Si+ro|0,Mo^=ni<<9|ni>>>32-9,ni=Mo+Si|0,lo^=ni<<13|ni>>>32-13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lo>>>8&255,Yr[6]=lo>>>16&255,Yr[7]=lo>>>24&255,Yr[8]=eo>>>0&255,Yr[9]=eo>>>8&255,Yr[10]=eo>>>16&255,Yr[11]=eo>>>24&255,Yr[12]=uo>>>0&255,Yr[13]=uo>>>8&255,Yr[14]=uo>>>16&255,Yr[15]=uo>>>24&255,Yr[16]=ho>>>0&255,Yr[17]=ho>>>8&255,Yr[18]=ho>>>16&255,Yr[19]=ho>>>24&255,Yr[20]=ro>>>0&255,Yr[21]=ro>>>8&255,Yr[22]=ro>>>16&255,Yr[23]=ro>>>24&255,Yr[24]=ci>>>0&255,Yr[25]=ci>>>8&255,Yr[26]=ci>>>16&255,Yr[27]=ci>>>24&255,Yr[28]=pi>>>0&255,Yr[29]=pi>>>8&255,Yr[30]=pi>>>16&255,Yr[31]=pi>>>24&255,Yr[32]=mi>>>0&255,Yr[33]=mi>>>8&255,Yr[34]=mi>>>16&255,Yr[35]=mi>>>24&255,Yr[36]=Si>>>0&255,Yr[37]=Si>>>8&255,Yr[38]=Si>>>16&255,Yr[39]=Si>>>24&255,Yr[40]=Ti>>>0&255,Yr[41]=Ti>>>8&255,Yr[42]=Ti>>>16&255,Yr[43]=Ti>>>24&255,Yr[44]=xi>>>0&255,Yr[45]=xi>>>8&255,Yr[46]=xi>>>16&255,Yr[47]=xi>>>24&255,Yr[48]=To>>>0&255,Yr[49]=To>>>8&255,Yr[50]=To>>>16&255,Yr[51]=To>>>24&255,Yr[52]=Mo>>>0&255,Yr[53]=Mo>>>8&255,Yr[54]=Mo>>>16&255,Yr[55]=Mo>>>24&255,Yr[56]=Co>>>0&255,Yr[57]=Co>>>8&255,Yr[58]=Co>>>16&255,Yr[59]=Co>>>24&255,Yr[60]=Fo>>>0&255,Yr[61]=Fo>>>8&255,Yr[62]=Fo>>>16&255,Yr[63]=Fo>>>24&255}function Lr(Yr,Wt,ln,qr){for(var dn=qr[0]&255|(qr[1]&255)<<8|(qr[2]&255)<<16|(qr[3]&255)<<24,ri=ln[0]&255|(ln[1]&255)<<8|(ln[2]&255)<<16|(ln[3]&255)<<24,Zn=ln[4]&255|(ln[5]&255)<<8|(ln[6]&255)<<16|(ln[7]&255)<<24,ai=ln[8]&255|(ln[9]&255)<<8|(ln[10]&255)<<16|(ln[11]&255)<<24,bi=ln[12]&255|(ln[13]&255)<<8|(ln[14]&255)<<16|(ln[15]&255)<<24,_i=qr[4]&255|(qr[5]&255)<<8|(qr[6]&255)<<16|(qr[7]&255)<<24,fi=Wt[0]&255|(Wt[1]&255)<<8|(Wt[2]&255)<<16|(Wt[3]&255)<<24,yo=Wt[4]&255|(Wt[5]&255)<<8|(Wt[6]&255)<<16|(Wt[7]&255)<<24,Di=Wt[8]&255|(Wt[9]&255)<<8|(Wt[10]&255)<<16|(Wt[11]&255)<<24,Ni=Wt[12]&255|(Wt[13]&255)<<8|(Wt[14]&255)<<16|(Wt[15]&255)<<24,oo=qr[8]&255|(qr[9]&255)<<8|(qr[10]&255)<<16|(qr[11]&255)<<24,fo=ln[16]&255|(ln[17]&255)<<8|(ln[18]&255)<<16|(ln[19]&255)<<24,co=ln[20]&255|(ln[21]&255)<<8|(ln[22]&255)<<16|(ln[23]&255)<<24,Ao=ln[24]&255|(ln[25]&255)<<8|(ln[26]&255)<<16|(ln[27]&255)<<24,vo=ln[28]&255|(ln[29]&255)<<8|(ln[30]&255)<<16|(ln[31]&255)<<24,_o=qr[12]&255|(qr[13]&255)<<8|(qr[14]&255)<<16|(qr[15]&255)<<24,so=dn,lo=ri,eo=Zn,uo=ai,ho=bi,ro=_i,ci=fi,pi=yo,mi=Di,Si=Ni,Ti=oo,xi=fo,To=co,Mo=Ao,Co=vo,Fo=_o,ni,Ko=0;Ko<20;Ko+=2)ni=so+To|0,ho^=ni<<7|ni>>>32-7,ni=ho+so|0,mi^=ni<<9|ni>>>32-9,ni=mi+ho|0,To^=ni<<13|ni>>>32-13,ni=To+mi|0,so^=ni<<18|ni>>>32-18,ni=ro+lo|0,Si^=ni<<7|ni>>>32-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fo>>>0&255,Yr[13]=Fo>>>8&255,Yr[14]=Fo>>>16&255,Yr[15]=Fo>>>24&255,Yr[16]=ci>>>0&255,Yr[17]=ci>>>8&255,Yr[18]=ci>>>16&255,Yr[19]=ci>>>24&255,Yr[20]=pi>>>0&255,Yr[21]=pi>>>8&255,Yr[22]=pi>>>16&255,Yr[23]=pi>>>24&255,Yr[24]=mi>>>0&255,Yr[25]=mi>>>8&255,Yr[26]=mi>>>16&255,Yr[27]=mi>>>24&255,Yr[28]=Si>>>0&255,Yr[29]=Si>>>8&255,Yr[30]=Si>>>16&255,Yr[31]=Si>>>24&255}function Vr(Yr,Wt,ln,qr){Mr(Yr,Wt,ln,qr)}function Gr(Yr,Wt,ln,qr){Lr(Yr,Wt,ln,qr)}var Ur=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Qr(Yr,Wt,ln,qr,dn,ri,Zn){var ai=new Uint8Array(16),bi=new Uint8Array(64),_i,fi;for(fi=0;fi<16;fi++)ai[fi]=0;for(fi=0;fi<8;fi++)ai[fi]=ri[fi];for(;dn>=64;){for(Vr(bi,ai,Zn,Ur),fi=0;fi<64;fi++)Yr[Wt+fi]=ln[qr+fi]^bi[fi];for(_i=1,fi=8;fi<16;fi++)_i=_i+(ai[fi]&255)|0,ai[fi]=_i&255,_i>>>=8;dn-=64,Wt+=64,qr+=64}if(dn>0)for(Vr(bi,ai,Zn,Ur),fi=0;fi=64;){for(Vr(Zn,ri,dn,Ur),bi=0;bi<64;bi++)Yr[Wt+bi]=Zn[bi];for(ai=1,bi=8;bi<16;bi++)ai=ai+(ri[bi]&255)|0,ri[bi]=ai&255,ai>>>=8;ln-=64,Wt+=64}if(ln>0)for(Vr(Zn,ri,dn,Ur),bi=0;bi>>13|ln<<3)&8191,qr=Yr[4]&255|(Yr[5]&255)<<8,this.r[2]=(ln>>>10|qr<<6)&7939,dn=Yr[6]&255|(Yr[7]&255)<<8,this.r[3]=(qr>>>7|dn<<9)&8191,ri=Yr[8]&255|(Yr[9]&255)<<8,this.r[4]=(dn>>>4|ri<<12)&255,this.r[5]=ri>>>1&8190,Zn=Yr[10]&255|(Yr[11]&255)<<8,this.r[6]=(ri>>>14|Zn<<2)&8191,ai=Yr[12]&255|(Yr[13]&255)<<8,this.r[7]=(Zn>>>11|ai<<5)&8065,bi=Yr[14]&255|(Yr[15]&255)<<8,this.r[8]=(ai>>>8|bi<<8)&8191,this.r[9]=bi>>>5&127,this.pad[0]=Yr[16]&255|(Yr[17]&255)<<8,this.pad[1]=Yr[18]&255|(Yr[19]&255)<<8,this.pad[2]=Yr[20]&255|(Yr[21]&255)<<8,this.pad[3]=Yr[22]&255|(Yr[23]&255)<<8,this.pad[4]=Yr[24]&255|(Yr[25]&255)<<8,this.pad[5]=Yr[26]&255|(Yr[27]&255)<<8,this.pad[6]=Yr[28]&255|(Yr[29]&255)<<8,this.pad[7]=Yr[30]&255|(Yr[31]&255)<<8};Qt.prototype.blocks=function(Yr,Wt,ln){for(var qr=this.fin?0:2048,dn,ri,Zn,ai,bi,_i,fi,yo,Di,Ni,oo,fo,co,Ao,vo,_o,so,lo,eo,uo=this.h[0],ho=this.h[1],ro=this.h[2],ci=this.h[3],pi=this.h[4],mi=this.h[5],Si=this.h[6],Ti=this.h[7],xi=this.h[8],To=this.h[9],Mo=this.r[0],Co=this.r[1],Fo=this.r[2],ni=this.r[3],Ko=this.r[4],Wo=this.r[5],Ho=this.r[6],Uo=this.r[7],Go=this.r[8],Vo=this.r[9];ln>=16;)dn=Yr[Wt+0]&255|(Yr[Wt+1]&255)<<8,uo+=dn&8191,ri=Yr[Wt+2]&255|(Yr[Wt+3]&255)<<8,ho+=(dn>>>13|ri<<3)&8191,Zn=Yr[Wt+4]&255|(Yr[Wt+5]&255)<<8,ro+=(ri>>>10|Zn<<6)&8191,ai=Yr[Wt+6]&255|(Yr[Wt+7]&255)<<8,ci+=(Zn>>>7|ai<<9)&8191,bi=Yr[Wt+8]&255|(Yr[Wt+9]&255)<<8,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.h[8]=xi,this.h[9]=To},Qt.prototype.finish=function(Yr,Wt){var ln=new Uint16Array(10),qr,dn,ri,Zn;if(this.leftover){for(Zn=this.leftover,this.buffer[Zn++]=1;Zn<16;Zn++)this.buffer[Zn]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(qr=this.h[1]>>>13,this.h[1]&=8191,Zn=2;Zn<10;Zn++)this.h[Zn]+=qr,qr=this.h[Zn]>>>13,this.h[Zn]&=8191;for(this.h[0]+=qr*5,qr=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=qr,qr=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=qr,ln[0]=this.h[0]+5,qr=ln[0]>>>13,ln[0]&=8191,Zn=1;Zn<10;Zn++)ln[Zn]=this.h[Zn]+qr,qr=ln[Zn]>>>13,ln[Zn]&=8191;for(ln[9]-=1<<13,dn=(qr^1)-1,Zn=0;Zn<10;Zn++)ln[Zn]&=dn;for(dn=~dn,Zn=0;Zn<10;Zn++)this.h[Zn]=this.h[Zn]&dn|ln[Zn];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,ri=this.h[0]+this.pad[0],this.h[0]=ri&65535,Zn=1;Zn<8;Zn++)ri=(this.h[Zn]+this.pad[Zn]|0)+(ri>>>16)|0,this.h[Zn]=ri&65535;Yr[Wt+0]=this.h[0]>>>0&255,Yr[Wt+1]=this.h[0]>>>8&255,Yr[Wt+2]=this.h[1]>>>0&255,Yr[Wt+3]=this.h[1]>>>8&255,Yr[Wt+4]=this.h[2]>>>0&255,Yr[Wt+5]=this.h[2]>>>8&255,Yr[Wt+6]=this.h[3]>>>0&255,Yr[Wt+7]=this.h[3]>>>8&255,Yr[Wt+8]=this.h[4]>>>0&255,Yr[Wt+9]=this.h[4]>>>8&255,Yr[Wt+10]=this.h[5]>>>0&255,Yr[Wt+11]=this.h[5]>>>8&255,Yr[Wt+12]=this.h[6]>>>0&255,Yr[Wt+13]=this.h[6]>>>8&255,Yr[Wt+14]=this.h[7]>>>0&255,Yr[Wt+15]=this.h[7]>>>8&255},Qt.prototype.update=function(Yr,Wt,ln){var qr,dn;if(this.leftover){for(dn=16-this.leftover,dn>ln&&(dn=ln),qr=0;qr=16&&(dn=ln-ln%16,this.blocks(Yr,Wt,dn),Wt+=dn,ln-=dn),ln){for(qr=0;qr>16&1),ri[ln-1]&=65535;ri[15]=Zn[15]-32767-(ri[14]>>16&1),dn=ri[15]>>16&1,ri[14]&=65535,Jt(Zn,ri,1-dn)}for(ln=0;ln<16;ln++)Yr[2*ln]=Zn[ln]&255,Yr[2*ln+1]=Zn[ln]>>8}function zr(Yr,Wt){var ln=new Uint8Array(32),qr=new Uint8Array(32);return Xr(ln,Yr),Xr(qr,Wt),jr(ln,0,qr,0)}function Jr(Yr){var Wt=new Uint8Array(32);return Xr(Wt,Yr),Wt[0]&1}function Nr(Yr,Wt){var ln;for(ln=0;ln<16;ln++)Yr[ln]=Wt[2*ln]+(Wt[2*ln+1]<<8);Yr[15]&=32767}function Hr(Yr,Wt,ln){for(var qr=0;qr<16;qr++)Yr[qr]=Wt[qr]+ln[qr]}function On(Yr,Wt,ln){for(var qr=0;qr<16;qr++)Yr[qr]=Wt[qr]-ln[qr]}function Gn(Yr,Wt,ln){var qr,dn,ri=0,Zn=0,ai=0,bi=0,_i=0,fi=0,yo=0,Di=0,Ni=0,oo=0,fo=0,co=0,Ao=0,vo=0,_o=0,so=0,lo=0,eo=0,uo=0,ho=0,ro=0,ci=0,pi=0,mi=0,Si=0,Ti=0,xi=0,To=0,Mo=0,Co=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floor(qr/65536),ri=qr-dn*65536,qr=Zn+dn+65535,dn=Math.floor(qr/65536),Zn=qr-dn*65536,qr=ai+dn+65535,dn=Math.floor(qr/65536),ai=qr-dn*65536,qr=bi+dn+65535,dn=Math.floor(qr/65536),bi=qr-dn*65536,qr=_i+dn+65535,dn=Math.floor(qr/65536),_i=qr-dn*65536,qr=fi+dn+65535,dn=Math.floor(qr/65536),fi=qr-dn*65536,qr=yo+dn+65535,dn=Math.floor(qr/65536),yo=qr-dn*65536,qr=Di+dn+65535,dn=Math.floor(qr/65536),Di=qr-dn*65536,qr=Ni+dn+65535,dn=Math.floor(qr/65536),Ni=qr-dn*65536,qr=oo+dn+65535,dn=Math.floor(qr/65536),oo=qr-dn*65536,qr=fo+dn+65535,dn=Math.floor(qr/65536),fo=qr-dn*65536,qr=co+dn+65535,dn=Math.floor(qr/65536),co=qr-dn*65536,qr=Ao+dn+65535,dn=Math.floor(qr/65536),Ao=qr-dn*65536,qr=vo+dn+65535,dn=Math.floor(qr/65536),vo=qr-dn*65536,qr=_o+dn+65535,dn=Math.floor(qr/65536),_o=qr-dn*65536,qr=so+dn+65535,dn=Math.floor(qr/65536),so=qr-dn*65536,ri+=dn-1+37*(dn-1),dn=1,qr=ri+dn+65535,dn=Math.floor(qr/65536),ri=qr-dn*65536,qr=Zn+dn+65535,dn=Math.floor(qr/65536),Zn=qr-dn*65536,qr=ai+dn+65535,dn=Math.floor(qr/65536),ai=qr-dn*65536,qr=bi+dn+65535,dn=Math.floor(qr/65536),bi=qr-dn*65536,qr=_i+dn+65535,dn=Math.floor(qr/65536),_i=qr-dn*65536,qr=fi+dn+65535,dn=Math.floor(qr/65536),fi=qr-dn*65536,qr=yo+dn+65535,dn=Math.floor(qr/65536),yo=qr-dn*65536,qr=Di+dn+65535,dn=Math.floor(qr/65536),Di=qr-dn*65536,qr=Ni+dn+65535,dn=Math.floor(qr/65536),Ni=qr-dn*65536,qr=oo+dn+65535,dn=Math.floor(qr/65536),oo=qr-dn*65536,qr=fo+dn+65535,dn=Math.floor(qr/65536),fo=qr-dn*65536,qr=co+dn+65535,dn=Math.floor(qr/65536),co=qr-dn*65536,qr=Ao+dn+65535,dn=Math.floor(qr/65536),Ao=qr-dn*65536,qr=vo+dn+65535,dn=Math.floor(qr/65536),vo=qr-dn*65536,qr=_o+dn+65535,dn=Math.floor(qr/65536),_o=qr-dn*65536,qr=so+dn+65535,dn=Math.floor(qr/65536),so=qr-dn*65536,ri+=dn-1+37*(dn-1),Yr[0]=ri,Yr[1]=Zn,Yr[2]=ai,Yr[3]=bi,Yr[4]=_i,Yr[5]=fi,Yr[6]=yo,Yr[7]=Di,Yr[8]=Ni,Yr[9]=oo,Yr[10]=fo,Yr[11]=co,Yr[12]=Ao,Yr[13]=vo,Yr[14]=_o,Yr[15]=so}function mn(Yr,Wt){Gn(Yr,Wt,Wt)}function Nn(Yr,Wt){var ln=ae(),qr;for(qr=0;qr<16;qr++)ln[qr]=Wt[qr];for(qr=253;qr>=0;qr--)mn(ln,ln),qr!==2&&qr!==4&&Gn(ln,ln,Wt);for(qr=0;qr<16;qr++)Yr[qr]=ln[qr]}function In(Yr,Wt){var ln=ae(),qr;for(qr=0;qr<16;qr++)ln[qr]=Wt[qr];for(qr=250;qr>=0;qr--)mn(ln,ln),qr!==1&&Gn(ln,ln,Wt);for(qr=0;qr<16;qr++)Yr[qr]=ln[qr]}function bn(Yr,Wt,ln){var qr=new Uint8Array(32),dn=new Float64Array(80),ri,Zn,ai=ae(),bi=ae(),_i=ae(),fi=ae(),yo=ae(),Di=ae();for(Zn=0;Zn<31;Zn++)qr[Zn]=Wt[Zn];for(qr[31]=Wt[31]&127|64,qr[0]&=248,Nr(dn,ln),Zn=0;Zn<16;Zn++)bi[Zn]=dn[Zn],fi[Zn]=ai[Zn]=_i[Zn]=0;for(ai[0]=fi[0]=1,Zn=254;Zn>=0;--Zn)ri=qr[Zn>>>3]>>>(Zn&7)&1,Jt(ai,bi,ri),Jt(_i,fi,ri),Hr(yo,ai,_i),On(ai,ai,_i),Hr(_i,bi,fi),On(bi,bi,fi),mn(fi,yo),mn(Di,ai),Gn(ai,_i,ai),Gn(_i,bi,yo),Hr(yo,ai,_i),On(ai,ai,_i),mn(bi,ai),On(_i,fi,Di),Gn(ai,_i,ye),Hr(ai,ai,fi),Gn(_i,_i,ai),Gn(ai,fi,Di),Gn(fi,bi,dn),mn(bi,yo),Jt(ai,bi,ri),Jt(_i,fi,ri);for(Zn=0;Zn<16;Zn++)dn[Zn+16]=ai[Zn],dn[Zn+32]=_i[Zn],dn[Zn+48]=bi[Zn],dn[Zn+64]=fi[Zn];var Ni=dn.subarray(32),oo=dn.subarray(16);return Nn(Ni,Ni),Gn(oo,oo,Ni),Xr(Yr,oo),0}function ii(Yr,Wt){return bn(Yr,Wt,le)}function vn(Yr,Wt){return ce(Wt,32),ii(Yr,Wt)}function pn(Yr,Wt,ln){var qr=new Uint8Array(32);return bn(qr,ln,Wt),Gr(Yr,fe,qr,Ur)}var Sn=be,Qn=kr;function Jn(Yr,Wt,ln,qr,dn,ri){var Zn=new Uint8Array(32);return pn(Zn,dn,ri),Sn(Yr,Wt,ln,qr,Zn)}function ui(Yr,Wt,ln,qr,dn,ri){var Zn=new Uint8Array(32);return pn(Zn,dn,ri),Qn(Yr,Wt,ln,qr,Zn)}var gi=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function di(Yr,Wt,ln,qr){for(var dn=new Int32Array(16),ri=new Int32Array(16),Zn,ai,bi,_i,fi,yo,Di,Ni,oo,fo,co,Ao,vo,_o,so,lo,eo,uo,ho,ro,ci,pi,mi,Si,Ti,xi,To=Yr[0],Mo=Yr[1],Co=Yr[2],Fo=Yr[3],ni=Yr[4],Ko=Yr[5],Wo=Yr[6],Ho=Yr[7],Uo=Wt[0],Go=Wt[1],Vo=Wt[2],ra=Wt[3],Do=Wt[4],ia=Wt[5],oa=Wt[6],ea=Wt[7],ua=0;qr>=128;){for(ho=0;ho<16;ho++)ro=8*ho+ua,dn[ho]=ln[ro+0]<<24|ln[ro+1]<<16|ln[ro+2]<<8|ln[ro+3],ri[ho]=ln[ro+4]<<24|ln[ro+5]<<16|ln[ro+6]<<8|ln[ro+7];for(ho=0;ho<80;ho++)if(Zn=To,ai=Mo,bi=Co,_i=Fo,fi=ni,yo=Ko,Di=Wo,Ni=Ho,oo=Uo,fo=Go,co=Vo,Ao=ra,vo=Do,_o=ia,so=oa,lo=ea,ci=Ho,pi=ea,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=(ni>>>14|Do<<32-14)^(ni>>>18|Do<<32-18)^(Do>>>41-32|ni<<32-(41-32)),pi=(Do>>>14|ni<<32-14)^(Do>>>18|ni<<32-18)^(ni>>>41-32|Do<<32-(41-32)),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=ni&Ko^~ni&Wo,pi=Do&ia^~Do&oa,mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=gi[ho*2],pi=gi[ho*2+1],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=dn[ho%16],pi=ri[ho%16],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,eo=Ti&65535|xi<<16,uo=mi&65535|Si<<16,ci=eo,pi=uo,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=(To>>>28|Uo<<32-28)^(Uo>>>34-32|To<<32-(34-32))^(Uo>>>39-32|To<<32-(39-32)),pi=(Uo>>>28|To<<32-28)^(To>>>34-32|Uo<<32-(34-32))^(To>>>39-32|Uo<<32-(39-32)),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=To&Mo^To&Co^Mo&Co,pi=Uo&Go^Uo&Vo^Go&Vo,mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Ni=Ti&65535|xi<<16,lo=mi&65535|Si<<16,ci=_i,pi=Ao,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=eo,pi=uo,mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,_i=Ti&65535|xi<<16,Ao=mi&65535|Si<<16,Mo=Zn,Co=ai,Fo=bi,ni=_i,Ko=fi,Wo=yo,Ho=Di,To=Ni,Go=oo,Vo=fo,ra=co,Do=Ao,ia=vo,oa=_o,ea=so,Uo=lo,ho%16===15)for(ro=0;ro<16;ro++)ci=dn[ro],pi=ri[ro],mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=dn[(ro+9)%16],pi=ri[(ro+9)%16],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,eo=dn[(ro+1)%16],uo=ri[(ro+1)%16],ci=(eo>>>1|uo<<32-1)^(eo>>>8|uo<<32-8)^eo>>>7,pi=(uo>>>1|eo<<32-1)^(uo>>>8|eo<<32-8)^(uo>>>7|eo<<32-7),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,eo=dn[(ro+14)%16],uo=ri[(ro+14)%16],ci=(eo>>>19|uo<<32-19)^(uo>>>61-32|eo<<32-(61-32))^eo>>>6,pi=(uo>>>19|eo<<32-19)^(eo>>>61-32|uo<<32-(61-32))^(uo>>>6|eo<<32-6),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,dn[ro]=Ti&65535|xi<<16,ri[ro]=mi&65535|Si<<16;ci=To,pi=Uo,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[0],pi=Wt[0],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[0]=To=Ti&65535|xi<<16,Wt[0]=Uo=mi&65535|Si<<16,ci=Mo,pi=Go,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[1],pi=Wt[1],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[1]=Mo=Ti&65535|xi<<16,Wt[1]=Go=mi&65535|Si<<16,ci=Co,pi=Vo,mi=p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=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[7]=Ho=Ti&65535|xi<<16,Wt[7]=ea=mi&65535|Si<<16,ua+=128,qr-=128}return qr}function Ci(Yr,Wt,ln){var qr=new Int32Array(8),dn=new Int32Array(8),ri=new Uint8Array(256),Zn,ai=ln;for(qr[0]=1779033703,qr[1]=3144134277,qr[2]=1013904242,qr[3]=2773480762,qr[4]=1359893119,qr[5]=2600822924,qr[6]=528734635,qr[7]=1541459225,dn[0]=4089235720,dn[1]=2227873595,dn[2]=4271175723,dn[3]=1595750129,dn[4]=2917565137,dn[5]=725511199,dn[6]=4215389547,dn[7]=327033209,di(qr,dn,Wt,ln),ln%=128,Zn=0;Zn=0;--dn)qr=ln[dn/8|0]>>(dn&7)&1,li(Yr,Wt,qr),yi(Wt,Yr),yi(Yr,Yr),li(Yr,Wt,qr)}function Oi(Yr,Wt){var ln=[ae(),ae(),ae(),ae()];xr(ln[0],cr),xr(ln[1],Br),xr(ln[2],pe),Gn(ln[3],cr,Br),Ai(Yr,ln,Wt)}function to(Yr,Wt,ln){var qr=new Uint8Array(64),dn=[ae(),ae(),ae(),ae()],ri;for(ln||ce(Wt,32),Ci(qr,Wt,32),qr[0]&=248,qr[31]&=127,qr[31]|=64,Oi(dn,qr),Pi(Yr,dn),ri=0;ri<32;ri++)Wt[ri+32]=Yr[ri];return 0}var En=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Bt(Yr,Wt){var ln,qr,dn,ri;for(qr=63;qr>=32;--qr){for(ln=0,dn=qr-32,ri=qr-12;dn>4)*En[dn],ln=Wt[dn]>>8,Wt[dn]&=255;for(dn=0;dn<32;dn++)Wt[dn]-=ln*En[dn];for(qr=0;qr<32;qr++)Wt[qr+1]+=Wt[qr]>>8,Yr[qr]=Wt[qr]&255}function Zt(Yr){var Wt=new Float64Array(64),ln;for(ln=0;ln<64;ln++)Wt[ln]=Yr[ln];for(ln=0;ln<64;ln++)Yr[ln]=0;Bt(Yr,Wt)}function Tn(Yr,Wt,ln,qr){var dn=new Uint8Array(64),ri=new Uint8Array(64),Zn=new Uint8Array(64),ai,bi,_i=new Float64Array(64),fi=[ae(),ae(),ae(),ae()];Ci(dn,qr,32),dn[0]&=248,dn[31]&=127,dn[31]|=64;var yo=ln+64;for(ai=0;ai>7&&On(Yr[0],ve,Yr[0]),Gn(Yr[3],Yr[0],Yr[1]),0)}function zn(Yr,Wt,ln,qr){var dn,ri=new Uint8Array(32),Zn=new Uint8Array(64),ai=[ae(),ae(),ae(),ae()],bi=[ae(),ae(),ae(),ae()];if(ln<64||ei(bi,qr))return-1;for(dn=0;dn=0},ie.sign.keyPair=function(){var Yr=new Uint8Array(mo),Wt=new Uint8Array(qo);return to(Yr,Wt),{publicKey:Yr,secretKey:Wt}},ie.sign.keyPair.fromSecretKey=function(Yr){if(zi(Yr),Yr.length!==qo)throw new Error("bad secret key size");for(var Wt=new Uint8Array(mo),ln=0;ln{this[ae]=ie[ae]})}};v.Assignable=k}}),require_errors$3=__commonJS({"node_modules/@near-js/types/lib/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ErrorContext=v.TypedError=v.ArgumentTypeError=v.PositionalArgsError=void 0;var k=class extends Error{constructor(){super("Contract method calls expect named arguments wrapped in object, e.g. { argName1: argValue1, argName2: argValue2 }")}};v.PositionalArgsError=k;var ie=class extends Error{constructor(fe,le,ve){super(`Expected ${le} for '${fe}' argument, but got '${JSON.stringify(ve)}'`)}};v.ArgumentTypeError=ie;var ae=class extends Error{constructor(fe,le,ve){super(fe),this.type=le||"UntypedError",this.context=ve}};v.TypedError=ae;var ce=class{constructor(fe){this.transactionHash=fe}};v.ErrorContext=ce}}),require_light_client$1=__commonJS({"node_modules/@near-js/types/lib/provider/light_client.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.IdType=void 0,function(k){k.Transaction="transaction",k.Receipt="receipt"}(v.IdType||(v.IdType={}))}}),require_response$1=__commonJS({"node_modules/@near-js/types/lib/provider/response.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.FinalExecutionStatusBasic=v.ExecutionStatusBasic=void 0,function(k){k.Unknown="Unknown",k.Pending="Pending",k.Failure="Failure"}(v.ExecutionStatusBasic||(v.ExecutionStatusBasic={})),function(k){k.NotStarted="NotStarted",k.Started="Started",k.Failure="Failure"}(v.FinalExecutionStatusBasic||(v.FinalExecutionStatusBasic={}))}}),require_provider$3=__commonJS({"node_modules/@near-js/types/lib/provider/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.FinalExecutionStatusBasic=v.ExecutionStatusBasic=v.IdType=void 0;var k=require_light_client$1();Object.defineProperty(v,"IdType",{enumerable:!0,get:function(){return k.IdType}});var ie=require_response$1();Object.defineProperty(v,"ExecutionStatusBasic",{enumerable:!0,get:function(){return ie.ExecutionStatusBasic}}),Object.defineProperty(v,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return ie.FinalExecutionStatusBasic}})}}),require_lib2$1=__commonJS({"node_modules/@near-js/types/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ae,ce,fe,le){le===void 0&&(le=fe);var ve=Object.getOwnPropertyDescriptor(ce,fe);(!ve||("get"in ve?!ce.__esModule:ve.writable||ve.configurable))&&(ve={enumerable:!0,get:function(){return ce[fe]}}),Object.defineProperty(ae,le,ve)}:function(ae,ce,fe,le){le===void 0&&(le=fe),ae[le]=ce[fe]}),ie=v&&v.__exportStar||function(ae,ce){for(var fe in ae)fe!=="default"&&!Object.prototype.hasOwnProperty.call(ce,fe)&&k(ce,ae,fe)};Object.defineProperty(v,"__esModule",{value:!0}),ie(require_assignable$1(),v),ie(require_errors$3(),v),ie(require_provider$3(),v)}}),require_public_key$1=__commonJS({"node_modules/@near-js/crypto/lib/public_key.js"(v){var k=v&&v.__importDefault||function(ye){return ye&&ye.__esModule?ye:{default:ye}};Object.defineProperty(v,"__esModule",{value:!0}),v.PublicKey=void 0;var ie=require_lib2$1(),ae=require_lib$1(),ce=k(require_nacl_fast$1()),fe=require_constants$3();function le(ye){switch(ye){case fe.KeyType.ED25519:return"ed25519";default:throw new Error(`Unknown key type ${ye}`)}}function ve(ye){switch(ye.toLowerCase()){case"ed25519":return fe.KeyType.ED25519;default:throw new Error(`Unknown key type ${ye}`)}}var pe=class extends ie.Assignable{static from(ye){return typeof ye=="string"?pe.fromString(ye):ye}static fromString(ye){const me=ye.split(":");let Ee,cr=fe.KeyType.ED25519;if(me.length===1)Ee=me[0];else if(me.length===2)Ee=me[1],cr=ve(me[0]);else throw new Error("Invalid encoded key format, must be :");const Br=(0,ae.baseDecode)(Ee);if(Br.length!==ce.default.box.publicKeyLength)throw new Error(`Invalid public key size (${Br.length}), must be ${ce.default.box.publicKeyLength}`);return new pe({keyType:cr,data:Br})}toString(){return`${le(this.keyType)}:${(0,ae.baseEncode)(this.data)}`}verify(ye,me){switch(this.keyType){case fe.KeyType.ED25519:return ce.default.sign.detached.verify(ye,me,this.data);default:throw new Error(`Unknown key type ${this.keyType}`)}}};v.PublicKey=pe}}),require_key_pair_ed25519$1=__commonJS({"node_modules/@near-js/crypto/lib/key_pair_ed25519.js"(v){var k=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.KeyPairEd25519=void 0;var ie=require_lib$1(),ae=k(require_nacl_fast$1()),ce=require_constants$3(),fe=require_key_pair_base$1(),le=require_public_key$1(),ve=class extends fe.KeyPairBase{constructor(pe){super();const ye=ae.default.sign.keyPair.fromSecretKey((0,ie.baseDecode)(pe));this.publicKey=new le.PublicKey({keyType:ce.KeyType.ED25519,data:ye.publicKey}),this.secretKey=pe}static fromRandom(){const pe=ae.default.sign.keyPair();return new ve((0,ie.baseEncode)(pe.secretKey))}sign(pe){return{signature:ae.default.sign.detached(pe,(0,ie.baseDecode)(this.secretKey)),publicKey:this.publicKey}}verify(pe,ye){return this.publicKey.verify(pe,ye)}toString(){return`ed25519:${this.secretKey}`}getPublicKey(){return this.publicKey}};v.KeyPairEd25519=ve}}),require_key_pair$2=__commonJS({"node_modules/@near-js/crypto/lib/key_pair.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyPair=void 0;var k=require_key_pair_base$1(),ie=require_key_pair_ed25519$1(),ae=class extends k.KeyPairBase{static fromRandom(ce){switch(ce.toUpperCase()){case"ED25519":return ie.KeyPairEd25519.fromRandom();default:throw new Error(`Unknown curve ${ce}`)}}static fromString(ce){const fe=ce.split(":");if(fe.length===1)return new ie.KeyPairEd25519(fe[0]);if(fe.length===2)switch(fe[0].toUpperCase()){case"ED25519":return new ie.KeyPairEd25519(fe[1]);default:throw new Error(`Unknown curve: ${fe[0]}`)}else throw new Error("Invalid encoded key format, must be :")}};v.KeyPair=ae}}),require_lib3$1=__commonJS({"node_modules/@near-js/crypto/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.PublicKey=v.KeyPairEd25519=v.KeyPair=v.KeyType=void 0;var k=require_constants$3();Object.defineProperty(v,"KeyType",{enumerable:!0,get:function(){return k.KeyType}});var ie=require_key_pair$2();Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return ie.KeyPair}});var ae=require_key_pair_ed25519$1();Object.defineProperty(v,"KeyPairEd25519",{enumerable:!0,get:function(){return ae.KeyPairEd25519}});var ce=require_public_key$1();Object.defineProperty(v,"PublicKey",{enumerable:!0,get:function(){return ce.PublicKey}})}}),require_keystore$2=__commonJS({"node_modules/@near-js/keystores/lib/keystore.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyStore=void 0;var k=class{};v.KeyStore=k}}),require_in_memory_key_store$2=__commonJS({"node_modules/@near-js/keystores/lib/in_memory_key_store.js"(v){var k=v&&v.__awaiter||function(fe,le,ve,pe){function ye(me){return me instanceof ve?me:new ve(function(Ee){Ee(me)})}return new(ve||(ve=Promise))(function(me,Ee){function cr(Pr){try{$r(pe.next(Pr))}catch(Ar){Ee(Ar)}}function Br(Pr){try{$r(pe.throw(Pr))}catch(Ar){Ee(Ar)}}function $r(Pr){Pr.done?me(Pr.value):ye(Pr.value).then(cr,Br)}$r((pe=pe.apply(fe,le||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.InMemoryKeyStore=void 0;var ie=require_lib3$1(),ae=require_keystore$2(),ce=class extends ae.KeyStore{constructor(){super(),this.keys={}}setKey(fe,le,ve){return k(this,void 0,void 0,function*(){this.keys[`${le}:${fe}`]=ve.toString()})}getKey(fe,le){return k(this,void 0,void 0,function*(){const ve=this.keys[`${le}:${fe}`];return ve?ie.KeyPair.fromString(ve):null})}removeKey(fe,le){return k(this,void 0,void 0,function*(){delete this.keys[`${le}:${fe}`]})}clear(){return k(this,void 0,void 0,function*(){this.keys={}})}getNetworks(){return k(this,void 0,void 0,function*(){const fe=new Set;return Object.keys(this.keys).forEach(le=>{const ve=le.split(":");fe.add(ve[1])}),Array.from(fe.values())})}getAccounts(fe){return k(this,void 0,void 0,function*(){const le=new Array;return Object.keys(this.keys).forEach(ve=>{const pe=ve.split(":");pe[pe.length-1]===fe&&le.push(pe.slice(0,pe.length-1).join(":"))}),le})}toString(){return"InMemoryKeyStore"}};v.InMemoryKeyStore=ce}}),require_merge_key_store$2=__commonJS({"node_modules/@near-js/keystores/lib/merge_key_store.js"(v){var k=v&&v.__awaiter||function(ce,fe,le,ve){function pe(ye){return ye instanceof le?ye:new le(function(me){me(ye)})}return new(le||(le=Promise))(function(ye,me){function Ee($r){try{Br(ve.next($r))}catch(Pr){me(Pr)}}function cr($r){try{Br(ve.throw($r))}catch(Pr){me(Pr)}}function Br($r){$r.done?ye($r.value):pe($r.value).then(Ee,cr)}Br((ve=ve.apply(ce,fe||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.MergeKeyStore=void 0;var ie=require_keystore$2(),ae=class extends ie.KeyStore{constructor(ce,fe={writeKeyStoreIndex:0}){super(),this.options=fe,this.keyStores=ce}setKey(ce,fe,le){return k(this,void 0,void 0,function*(){yield this.keyStores[this.options.writeKeyStoreIndex].setKey(ce,fe,le)})}getKey(ce,fe){return k(this,void 0,void 0,function*(){for(const le of this.keyStores){const ve=yield le.getKey(ce,fe);if(ve)return ve}return null})}removeKey(ce,fe){return k(this,void 0,void 0,function*(){for(const le of this.keyStores)yield le.removeKey(ce,fe)})}clear(){return k(this,void 0,void 0,function*(){for(const ce of this.keyStores)yield ce.clear()})}getNetworks(){return k(this,void 0,void 0,function*(){const ce=new Set;for(const fe of this.keyStores)for(const le of yield fe.getNetworks())ce.add(le);return Array.from(ce)})}getAccounts(ce){return k(this,void 0,void 0,function*(){const fe=new Set;for(const le of this.keyStores)for(const ve of yield le.getAccounts(ce))fe.add(ve);return Array.from(fe)})}toString(){return`MergeKeyStore(${this.keyStores.join(", ")})`}};v.MergeKeyStore=ae}}),require_lib4$2=__commonJS({"node_modules/@near-js/keystores/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MergeKeyStore=v.KeyStore=v.InMemoryKeyStore=void 0;var k=require_in_memory_key_store$2();Object.defineProperty(v,"InMemoryKeyStore",{enumerable:!0,get:function(){return k.InMemoryKeyStore}});var ie=require_keystore$2();Object.defineProperty(v,"KeyStore",{enumerable:!0,get:function(){return ie.KeyStore}});var ae=require_merge_key_store$2();Object.defineProperty(v,"MergeKeyStore",{enumerable:!0,get:function(){return ae.MergeKeyStore}})}}),require_keystore2$1=__commonJS({"node_modules/near-api-js/lib/key_stores/keystore.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyStore=void 0;var k=require_lib4$2();Object.defineProperty(v,"KeyStore",{enumerable:!0,get:function(){return k.KeyStore}})}}),require_in_memory_key_store2$1=__commonJS({"node_modules/near-api-js/lib/key_stores/in_memory_key_store.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.InMemoryKeyStore=void 0;var k=require_lib4$2();Object.defineProperty(v,"InMemoryKeyStore",{enumerable:!0,get:function(){return k.InMemoryKeyStore}})}}),require_browser_local_storage_key_store$2=__commonJS({"node_modules/@near-js/keystores-browser/lib/browser_local_storage_key_store.js"(v){var k=v&&v.__awaiter||function(le,ve,pe,ye){function me(Ee){return Ee instanceof pe?Ee:new pe(function(cr){cr(Ee)})}return new(pe||(pe=Promise))(function(Ee,cr){function Br(Ar){try{Pr(ye.next(Ar))}catch(ur){cr(ur)}}function $r(Ar){try{Pr(ye.throw(Ar))}catch(ur){cr(ur)}}function Pr(Ar){Ar.done?Ee(Ar.value):me(Ar.value).then(Br,$r)}Pr((ye=ye.apply(le,ve||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.BrowserLocalStorageKeyStore=void 0;var ie=require_lib3$1(),ae=require_lib4$2(),ce="near-api-js:keystore:",fe=class extends ae.KeyStore{constructor(le=window.localStorage,ve=ce){super(),this.localStorage=le,this.prefix=ve}setKey(le,ve,pe){return k(this,void 0,void 0,function*(){this.localStorage.setItem(this.storageKeyForSecretKey(le,ve),pe.toString())})}getKey(le,ve){return k(this,void 0,void 0,function*(){const pe=this.localStorage.getItem(this.storageKeyForSecretKey(le,ve));return pe?ie.KeyPair.fromString(pe):null})}removeKey(le,ve){return k(this,void 0,void 0,function*(){this.localStorage.removeItem(this.storageKeyForSecretKey(le,ve))})}clear(){return k(this,void 0,void 0,function*(){for(const le of this.storageKeys())le.startsWith(this.prefix)&&this.localStorage.removeItem(le)})}getNetworks(){return k(this,void 0,void 0,function*(){const le=new Set;for(const ve of this.storageKeys())if(ve.startsWith(this.prefix)){const pe=ve.substring(this.prefix.length).split(":");le.add(pe[1])}return Array.from(le.values())})}getAccounts(le){return k(this,void 0,void 0,function*(){const ve=new Array;for(const pe of this.storageKeys())if(pe.startsWith(this.prefix)){const ye=pe.substring(this.prefix.length).split(":");ye[1]===le&&ve.push(ye[0])}return ve})}storageKeyForSecretKey(le,ve){return`${this.prefix}${ve}:${le}`}*storageKeys(){for(let le=0;le":">",'"':""","'":"'","/":"/","`":"`","=":"="};function $r(Qt){return String(Qt).replace(/[&<>"'`=\/]/g,function(Kr){return Br[Kr]})}var Pr=/\s*/,Ar=/\s+/,ur=/\s*=/,jr=/\s*\}/,Mr=/#|\^|\/|>|\{|&|=|!/;function Lr(Qt,Xt){if(!Qt)return[];var Kr=!1,be=[],kr=[],xr=[],Wr=!1,Jt=!1,Xr="",zr=0;function Jr(){if(Wr&&!Jt)for(;xr.length;)delete kr[xr.pop()];else xr=[];Wr=!1,Jt=!1}var Nr,Hr,On;function Gn(Jn){if(typeof Jn=="string"&&(Jn=Jn.split(Ar,2)),!ae(Jn)||Jn.length!==2)throw new Error("Invalid tags: "+Jn);Nr=new RegExp(le(Jn[0])+"\\s*"),Hr=new RegExp("\\s*"+le(Jn[1])),On=new RegExp("\\s*"+le("}"+Jn[1]))}Gn(Xt||Yt.tags);for(var mn=new Ur(Qt),Nn,In,bn,ii,vn,pn;!mn.eos();){if(Nn=mn.pos,bn=mn.scanUntil(Nr),bn)for(var Sn=0,Qn=bn.length;Sn"?vn=[In,bn,Nn,mn.pos,Xr,zr,Kr]:vn=[In,bn,Nn,mn.pos],zr++,kr.push(vn),In==="#"||In==="^")be.push(vn);else if(In==="/"){if(pn=be.pop(),!pn)throw new Error('Unopened section "'+bn+'" at '+Nn);if(pn[1]!==bn)throw new Error('Unclosed section "'+pn[1]+'" at '+Nn)}else In==="name"||In==="{"||In==="&"?Jt=!0:In==="="&&Gn(bn)}if(Jr(),pn=be.pop(),pn)throw new Error('Unclosed section "'+pn[1]+'" at '+mn.pos);return Gr(Vr(kr))}function Vr(Qt){for(var Xt=[],Kr,be,kr=0,xr=Qt.length;kr0?be[be.length-1][4]:Xt;break;default:Kr.push(kr)}return Xt}function Ur(Qt){this.string=Qt,this.tail=Qt,this.pos=0}Ur.prototype.eos=function(){return this.tail===""},Ur.prototype.scan=function(Xt){var Kr=this.tail.match(Xt);if(!Kr||Kr.index!==0)return"";var be=Kr[0];return this.tail=this.tail.substring(be.length),this.pos+=be.length,be},Ur.prototype.scanUntil=function(Xt){var Kr=this.tail.search(Xt),be;switch(Kr){case-1:be=this.tail,this.tail="";break;case 0:be="";break;default:be=this.tail.substring(0,Kr),this.tail=this.tail.substring(Kr)}return this.pos+=be.length,be};function Qr(Qt,Xt){this.view=Qt,this.cache={".":this.view},this.parent=Xt}Qr.prototype.push=function(Xt){return new Qr(Xt,this)},Qr.prototype.lookup=function(Xt){var Kr=this.cache,be;if(Kr.hasOwnProperty(Xt))be=Kr[Xt];else{for(var kr=this,xr,Wr,Jt,Xr=!1;kr;){if(Xt.indexOf(".")>0)for(xr=kr.view,Wr=Xt.split("."),Jt=0;xr!=null&&Jt"?zr=this.renderPartial(Jt,Kr,be,xr):Xr==="&"?zr=this.unescapedValue(Jt,Kr):Xr==="name"?zr=this.escapedValue(Jt,Kr,xr):Xr==="text"&&(zr=this.rawValue(Jt)),zr!==void 0&&(Wr+=zr);return Wr},hn.prototype.renderSection=function(Xt,Kr,be,kr,xr){var Wr=this,Jt="",Xr=Kr.lookup(Xt[1]);function zr(Hr){return Wr.render(Hr,Kr,be,xr)}if(!!Xr){if(ae(Xr))for(var Jr=0,Nr=Xr.length;Jr0||!be)&&(xr[Wr]=kr+xr[Wr]);return xr.join(` -`)},vn.prototype.renderPartial=function(Qt,Kr,be,kr){if(!!be){var xr=this.getConfigTags(kr),Wr=ce(be)?be(Qt[1]):be[Qt[1]];if(Wr!=null){var Jt=Qt[6],Xr=Qt[5],zr=Qt[4],Jr=Wr;Xr==0&&zr&&(Jr=this.indentPartial(Wr,zr,Jt));var Nr=this.parse(Jr,xr);return this.renderTokens(Nr,Kr,be,Jr,kr)}}},vn.prototype.unescapedValue=function(Qt,Kr){var be=Kr.lookup(Qt[1]);if(be!=null)return be},vn.prototype.escapedValue=function(Qt,Kr,be){var kr=this.getConfigEscape(be)||Yt.escape,xr=Kr.lookup(Qt[1]);if(xr!=null)return typeof xr=="number"&&kr===Yt.escape?String(xr):kr(xr)},vn.prototype.rawValue=function(Qt){return Qt[1]},vn.prototype.getConfigTags=function(Qt){return ae(Qt)?Qt:Qt&&typeof Qt=="object"?Qt.tags:void 0},vn.prototype.getConfigEscape=function(Qt){if(Qt&&typeof Qt=="object"&&!ae(Qt))return Qt.escape};var Yt={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(Xt){fn.templateCache=Xt},get templateCache(){return fn.templateCache}},fn=new vn;return Yt.clearCache=function(){return fn.clearCache()},Yt.parse=function(Qt,Kr){return fn.parse(Qt,Kr)},Yt.render=function(Qt,Kr,be,kr){if(typeof Qt!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+fe(Qt)+'" was given as the first argument for mustache#render(template, view, partials)');return fn.render(Qt,Kr,be,kr)},Yt.escape=$r,Yt.Scanner=Ur,Yt.Context=Qr,Yt.Writer=vn,Yt})}}),require_format$2=__commonJS({"node_modules/@near-js/utils/lib/format.js"(v){var k=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.parseNearAmount=v.formatNearAmount=v.NEAR_NOMINATION=v.NEAR_NOMINATION_EXP=void 0;var ie=k(require_bn$2());v.NEAR_NOMINATION_EXP=24,v.NEAR_NOMINATION=new ie.default("10",10).pow(new ie.default(v.NEAR_NOMINATION_EXP,10));var ae=[],ce=new ie.default(10);for(let Ee=0,cr=new ie.default(5);Ee0&&Br.iadd(ae[Or])}Ee=Br.toString();const $r=Ee.substring(0,Ee.length-v.NEAR_NOMINATION_EXP)||"0",Pr=Ee.substring(Ee.length-v.NEAR_NOMINATION_EXP).padStart(v.NEAR_NOMINATION_EXP,"0").substring(0,cr);return pe(`${me($r)}.${Pr}`)}v.formatNearAmount=fe;function le(Ee){if(!Ee)return null;Ee=ve(Ee);const cr=Ee.split("."),Br=cr[0],$r=cr[1]||"";if(cr.length>2||$r.length>v.NEAR_NOMINATION_EXP)throw new Error(`Cannot parse '${Ee}' as NEAR amount`);return ye(Br+$r.padEnd(v.NEAR_NOMINATION_EXP,"0"))}v.parseNearAmount=le;function ve(Ee){return Ee.replace(/,/g,"").trim()}function pe(Ee){return Ee.replace(/\.?0*$/,"")}function ye(Ee){return Ee=Ee.replace(/^0+/,""),Ee===""?"0":Ee}function me(Ee){const cr=/(-?\d+)(\d{3})/;for(;cr.test(Ee);)Ee=Ee.replace(cr,"$1,$2");return Ee}}}),require_error_messages$2=__commonJS({"node_modules/@near-js/utils/lib/errors/error_messages.json"(v,k){k.exports={GasLimitExceeded:"Exceeded the maximum amount of gas allowed to burn per contract",MethodEmptyName:"Method name is empty",WasmerCompileError:"Wasmer compilation error: {{msg}}",GuestPanic:"Smart contract panicked: {{panic_msg}}",Memory:"Error creating Wasm memory",GasExceeded:"Exceeded the prepaid gas",MethodUTF8Error:"Method name is not valid UTF8 string",BadUTF16:"String encoding is bad UTF-16 sequence",WasmTrap:"WebAssembly trap: {{msg}}",GasInstrumentation:"Gas instrumentation failed or contract has denied instructions.",InvalidPromiseIndex:"{{promise_idx}} does not correspond to existing promises",InvalidPromiseResultIndex:"Accessed invalid promise result index: {{result_idx}}",Deserialization:"Error happened while deserializing the module",MethodNotFound:"Contract method is not found",InvalidRegisterId:"Accessed invalid register id: {{register_id}}",InvalidReceiptIndex:"VM Logic returned an invalid receipt index: {{receipt_index}}",EmptyMethodName:"Method name is empty in contract call",CannotReturnJointPromise:"Returning joint promise is currently prohibited",StackHeightInstrumentation:"Stack instrumentation failed",CodeDoesNotExist:"Cannot find contract code for account {{account_id}}",MethodInvalidSignature:"Invalid method signature",IntegerOverflow:"Integer overflow happened during contract execution",MemoryAccessViolation:"MemoryAccessViolation",InvalidIteratorIndex:"Iterator index {{iterator_index}} does not exist",IteratorWasInvalidated:"Iterator {{iterator_index}} was invalidated after its creation by performing a mutable operation on trie",InvalidAccountId:"VM Logic returned an invalid account id",Serialization:"Error happened while serializing the module",CannotAppendActionToJointPromise:"Actions can only be appended to non-joint promise.",InternalMemoryDeclared:"Internal memory declaration has been found in the module",Instantiate:"Error happened during instantiation",ProhibitedInView:"{{method_name}} is not allowed in view calls",InvalidMethodName:"VM Logic returned an invalid method name",BadUTF8:"String encoding is bad UTF-8 sequence",BalanceExceeded:"Exceeded the account balance",LinkError:"Wasm contract link error: {{msg}}",InvalidPublicKey:"VM Logic provided an invalid public key",ActorNoPermission:"Actor {{actor_id}} doesn't have permission to account {{account_id}} to complete the action",LackBalanceForState:"The account {{account_id}} wouldn't have enough balance to cover storage, required to have {{amount}} yoctoNEAR more",ReceiverMismatch:"Wrong AccessKey used for transaction: transaction is sent to receiver_id={{tx_receiver}}, but is signed with function call access key that restricted to only use with receiver_id={{ak_receiver}}. Either change receiver_id in your transaction or switch to use a FullAccessKey.",CostOverflow:"Transaction gas or balance cost is too high",InvalidSignature:"Transaction is not signed with the given public key",AccessKeyNotFound:`Signer "{{account_id}}" doesn't have access key with the given public_key {{public_key}}`,NotEnoughBalance:"Sender {{signer_id}} does not have enough balance {{#formatNear}}{{balance}}{{/formatNear}} for operation costing {{#formatNear}}{{cost}}{{/formatNear}}",NotEnoughAllowance:"Access Key {account_id}:{public_key} does not have enough balance {{#formatNear}}{{allowance}}{{/formatNear}} for transaction costing {{#formatNear}}{{cost}}{{/formatNear}}",Expired:"Transaction has expired",DeleteAccountStaking:"Account {{account_id}} is staking and can not be deleted",SignerDoesNotExist:"Signer {{signer_id}} does not exist",TriesToStake:"Account {{account_id}} tried to stake {{#formatNear}}{{stake}}{{/formatNear}}, but has staked {{#formatNear}}{{locked}}{{/formatNear}} and only has {{#formatNear}}{{balance}}{{/formatNear}}",AddKeyAlreadyExists:"The public key {{public_key}} is already used for an existing access key",InvalidSigner:"Invalid signer account ID {{signer_id}} according to requirements",CreateAccountNotAllowed:"The new account_id {{account_id}} can't be created by {{predecessor_id}}",RequiresFullAccess:"The transaction contains more then one action, but it was signed with an access key which allows transaction to apply only one specific action. To apply more then one actions TX must be signed with a full access key",TriesToUnstake:"Account {{account_id}} is not yet staked, but tried to unstake",InvalidNonce:"Transaction nonce {{tx_nonce}} must be larger than nonce of the used access key {{ak_nonce}}",AccountAlreadyExists:"Can't create a new account {{account_id}}, because it already exists",InvalidChain:"Transaction parent block hash doesn't belong to the current chain",AccountDoesNotExist:"Can't complete the action because account {{account_id}} doesn't exist",MethodNameMismatch:"Transaction method name {{method_name}} isn't allowed by the access key",DeleteAccountHasRent:"Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover the rent",DeleteAccountHasEnoughBalance:"Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover it's storage",InvalidReceiver:"Invalid receiver account ID {{receiver_id}} according to requirements",DeleteKeyDoesNotExist:"Account {{account_id}} tries to remove an access key that doesn't exist",Timeout:"Timeout exceeded",Closed:"Connection closed"}}}),require_rpc_error_schema$2=__commonJS({"node_modules/@near-js/utils/lib/errors/rpc_error_schema.json"(v,k){k.exports={schema:{BadUTF16:{name:"BadUTF16",subtypes:[],props:{}},BadUTF8:{name:"BadUTF8",subtypes:[],props:{}},BalanceExceeded:{name:"BalanceExceeded",subtypes:[],props:{}},BreakpointTrap:{name:"BreakpointTrap",subtypes:[],props:{}},CacheError:{name:"CacheError",subtypes:["ReadError","WriteError","DeserializationError","SerializationError"],props:{}},CallIndirectOOB:{name:"CallIndirectOOB",subtypes:[],props:{}},CannotAppendActionToJointPromise:{name:"CannotAppendActionToJointPromise",subtypes:[],props:{}},CannotReturnJointPromise:{name:"CannotReturnJointPromise",subtypes:[],props:{}},CodeDoesNotExist:{name:"CodeDoesNotExist",subtypes:[],props:{account_id:""}},CompilationError:{name:"CompilationError",subtypes:["CodeDoesNotExist","PrepareError","WasmerCompileError"],props:{}},ContractSizeExceeded:{name:"ContractSizeExceeded",subtypes:[],props:{limit:"",size:""}},Deprecated:{name:"Deprecated",subtypes:[],props:{method_name:""}},Deserialization:{name:"Deserialization",subtypes:[],props:{}},DeserializationError:{name:"DeserializationError",subtypes:[],props:{}},EmptyMethodName:{name:"EmptyMethodName",subtypes:[],props:{}},FunctionCallError:{name:"FunctionCallError",subtypes:["CompilationError","LinkError","MethodResolveError","WasmTrap","WasmUnknownError","HostError","EvmError"],props:{}},GasExceeded:{name:"GasExceeded",subtypes:[],props:{}},GasInstrumentation:{name:"GasInstrumentation",subtypes:[],props:{}},GasLimitExceeded:{name:"GasLimitExceeded",subtypes:[],props:{}},GenericTrap:{name:"GenericTrap",subtypes:[],props:{}},GuestPanic:{name:"GuestPanic",subtypes:[],props:{panic_msg:""}},HostError:{name:"HostError",subtypes:["BadUTF16","BadUTF8","GasExceeded","GasLimitExceeded","BalanceExceeded","EmptyMethodName","GuestPanic","IntegerOverflow","InvalidPromiseIndex","CannotAppendActionToJointPromise","CannotReturnJointPromise","InvalidPromiseResultIndex","InvalidRegisterId","IteratorWasInvalidated","MemoryAccessViolation","InvalidReceiptIndex","InvalidIteratorIndex","InvalidAccountId","InvalidMethodName","InvalidPublicKey","ProhibitedInView","NumberOfLogsExceeded","KeyLengthExceeded","ValueLengthExceeded","TotalLogLengthExceeded","NumberPromisesExceeded","NumberInputDataDependenciesExceeded","ReturnedValueLengthExceeded","ContractSizeExceeded","Deprecated"],props:{}},IllegalArithmetic:{name:"IllegalArithmetic",subtypes:[],props:{}},IncorrectCallIndirectSignature:{name:"IncorrectCallIndirectSignature",subtypes:[],props:{}},Instantiate:{name:"Instantiate",subtypes:[],props:{}},IntegerOverflow:{name:"IntegerOverflow",subtypes:[],props:{}},InternalMemoryDeclared:{name:"InternalMemoryDeclared",subtypes:[],props:{}},InvalidAccountId:{name:"InvalidAccountId",subtypes:[],props:{account_id:""}},InvalidIteratorIndex:{name:"InvalidIteratorIndex",subtypes:[],props:{iterator_index:""}},InvalidMethodName:{name:"InvalidMethodName",subtypes:[],props:{}},InvalidPromiseIndex:{name:"InvalidPromiseIndex",subtypes:[],props:{promise_idx:""}},InvalidPromiseResultIndex:{name:"InvalidPromiseResultIndex",subtypes:[],props:{result_idx:""}},InvalidPublicKey:{name:"InvalidPublicKey",subtypes:[],props:{}},InvalidReceiptIndex:{name:"InvalidReceiptIndex",subtypes:[],props:{receipt_index:""}},InvalidRegisterId:{name:"InvalidRegisterId",subtypes:[],props:{register_id:""}},IteratorWasInvalidated:{name:"IteratorWasInvalidated",subtypes:[],props:{iterator_index:""}},KeyLengthExceeded:{name:"KeyLengthExceeded",subtypes:[],props:{length:"",limit:""}},LinkError:{name:"LinkError",subtypes:[],props:{msg:""}},Memory:{name:"Memory",subtypes:[],props:{}},MemoryAccessViolation:{name:"MemoryAccessViolation",subtypes:[],props:{}},MemoryOutOfBounds:{name:"MemoryOutOfBounds",subtypes:[],props:{}},MethodEmptyName:{name:"MethodEmptyName",subtypes:[],props:{}},MethodInvalidSignature:{name:"MethodInvalidSignature",subtypes:[],props:{}},MethodNotFound:{name:"MethodNotFound",subtypes:[],props:{}},MethodResolveError:{name:"MethodResolveError",subtypes:["MethodEmptyName","MethodUTF8Error","MethodNotFound","MethodInvalidSignature"],props:{}},MethodUTF8Error:{name:"MethodUTF8Error",subtypes:[],props:{}},MisalignedAtomicAccess:{name:"MisalignedAtomicAccess",subtypes:[],props:{}},NumberInputDataDependenciesExceeded:{name:"NumberInputDataDependenciesExceeded",subtypes:[],props:{limit:"",number_of_input_data_dependencies:""}},NumberOfLogsExceeded:{name:"NumberOfLogsExceeded",subtypes:[],props:{limit:""}},NumberPromisesExceeded:{name:"NumberPromisesExceeded",subtypes:[],props:{limit:"",number_of_promises:""}},PrepareError:{name:"PrepareError",subtypes:["Serialization","Deserialization","InternalMemoryDeclared","GasInstrumentation","StackHeightInstrumentation","Instantiate","Memory"],props:{}},ProhibitedInView:{name:"ProhibitedInView",subtypes:[],props:{method_name:""}},ReadError:{name:"ReadError",subtypes:[],props:{}},ReturnedValueLengthExceeded:{name:"ReturnedValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},Serialization:{name:"Serialization",subtypes:[],props:{}},SerializationError:{name:"SerializationError",subtypes:[],props:{hash:""}},StackHeightInstrumentation:{name:"StackHeightInstrumentation",subtypes:[],props:{}},StackOverflow:{name:"StackOverflow",subtypes:[],props:{}},TotalLogLengthExceeded:{name:"TotalLogLengthExceeded",subtypes:[],props:{length:"",limit:""}},Unreachable:{name:"Unreachable",subtypes:[],props:{}},ValueLengthExceeded:{name:"ValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},WasmTrap:{name:"WasmTrap",subtypes:["Unreachable","IncorrectCallIndirectSignature","MemoryOutOfBounds","CallIndirectOOB","IllegalArithmetic","MisalignedAtomicAccess","BreakpointTrap","StackOverflow","GenericTrap"],props:{}},WasmUnknownError:{name:"WasmUnknownError",subtypes:[],props:{}},WasmerCompileError:{name:"WasmerCompileError",subtypes:[],props:{msg:""}},WriteError:{name:"WriteError",subtypes:[],props:{}},AccessKeyNotFound:{name:"AccessKeyNotFound",subtypes:[],props:{account_id:"",public_key:""}},AccountAlreadyExists:{name:"AccountAlreadyExists",subtypes:[],props:{account_id:""}},AccountDoesNotExist:{name:"AccountDoesNotExist",subtypes:[],props:{account_id:""}},ActionError:{name:"ActionError",subtypes:["AccountAlreadyExists","AccountDoesNotExist","CreateAccountOnlyByRegistrar","CreateAccountNotAllowed","ActorNoPermission","DeleteKeyDoesNotExist","AddKeyAlreadyExists","DeleteAccountStaking","LackBalanceForState","TriesToUnstake","TriesToStake","InsufficientStake","FunctionCallError","NewReceiptValidationError","OnlyImplicitAccountCreationAllowed"],props:{index:""}},ActionsValidationError:{name:"ActionsValidationError",subtypes:["DeleteActionMustBeFinal","TotalPrepaidGasExceeded","TotalNumberOfActionsExceeded","AddKeyMethodNamesNumberOfBytesExceeded","AddKeyMethodNameLengthExceeded","IntegerOverflow","InvalidAccountId","ContractSizeExceeded","FunctionCallMethodNameLengthExceeded","FunctionCallArgumentsLengthExceeded","UnsuitableStakingKey","FunctionCallZeroAttachedGas"],props:{}},ActorNoPermission:{name:"ActorNoPermission",subtypes:[],props:{account_id:"",actor_id:""}},AddKeyAlreadyExists:{name:"AddKeyAlreadyExists",subtypes:[],props:{account_id:"",public_key:""}},AddKeyMethodNameLengthExceeded:{name:"AddKeyMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},AddKeyMethodNamesNumberOfBytesExceeded:{name:"AddKeyMethodNamesNumberOfBytesExceeded",subtypes:[],props:{limit:"",total_number_of_bytes:""}},BalanceMismatchError:{name:"BalanceMismatchError",subtypes:[],props:{final_accounts_balance:"",final_postponed_receipts_balance:"",incoming_receipts_balance:"",incoming_validator_rewards:"",initial_accounts_balance:"",initial_postponed_receipts_balance:"",new_delayed_receipts_balance:"",other_burnt_amount:"",outgoing_receipts_balance:"",processed_delayed_receipts_balance:"",slashed_burnt_amount:"",tx_burnt_amount:""}},CostOverflow:{name:"CostOverflow",subtypes:[],props:{}},CreateAccountNotAllowed:{name:"CreateAccountNotAllowed",subtypes:[],props:{account_id:"",predecessor_id:""}},CreateAccountOnlyByRegistrar:{name:"CreateAccountOnlyByRegistrar",subtypes:[],props:{account_id:"",predecessor_id:"",registrar_account_id:""}},DeleteAccountStaking:{name:"DeleteAccountStaking",subtypes:[],props:{account_id:""}},DeleteActionMustBeFinal:{name:"DeleteActionMustBeFinal",subtypes:[],props:{}},DeleteKeyDoesNotExist:{name:"DeleteKeyDoesNotExist",subtypes:[],props:{account_id:"",public_key:""}},DepositWithFunctionCall:{name:"DepositWithFunctionCall",subtypes:[],props:{}},Expired:{name:"Expired",subtypes:[],props:{}},FunctionCallArgumentsLengthExceeded:{name:"FunctionCallArgumentsLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallMethodNameLengthExceeded:{name:"FunctionCallMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallZeroAttachedGas:{name:"FunctionCallZeroAttachedGas",subtypes:[],props:{}},InsufficientStake:{name:"InsufficientStake",subtypes:[],props:{account_id:"",minimum_stake:"",stake:""}},InvalidAccessKeyError:{name:"InvalidAccessKeyError",subtypes:["AccessKeyNotFound","ReceiverMismatch","MethodNameMismatch","RequiresFullAccess","NotEnoughAllowance","DepositWithFunctionCall"],props:{}},InvalidChain:{name:"InvalidChain",subtypes:[],props:{}},InvalidDataReceiverId:{name:"InvalidDataReceiverId",subtypes:[],props:{account_id:""}},InvalidNonce:{name:"InvalidNonce",subtypes:[],props:{ak_nonce:"",tx_nonce:""}},InvalidPredecessorId:{name:"InvalidPredecessorId",subtypes:[],props:{account_id:""}},InvalidReceiverId:{name:"InvalidReceiverId",subtypes:[],props:{account_id:""}},InvalidSignature:{name:"InvalidSignature",subtypes:[],props:{}},InvalidSignerId:{name:"InvalidSignerId",subtypes:[],props:{account_id:""}},InvalidTxError:{name:"InvalidTxError",subtypes:["InvalidAccessKeyError","InvalidSignerId","SignerDoesNotExist","InvalidNonce","InvalidReceiverId","InvalidSignature","NotEnoughBalance","LackBalanceForState","CostOverflow","InvalidChain","Expired","ActionsValidation"],props:{}},LackBalanceForState:{name:"LackBalanceForState",subtypes:[],props:{account_id:"",amount:""}},MethodNameMismatch:{name:"MethodNameMismatch",subtypes:[],props:{method_name:""}},NotEnoughAllowance:{name:"NotEnoughAllowance",subtypes:[],props:{account_id:"",allowance:"",cost:"",public_key:""}},NotEnoughBalance:{name:"NotEnoughBalance",subtypes:[],props:{balance:"",cost:"",signer_id:""}},OnlyImplicitAccountCreationAllowed:{name:"OnlyImplicitAccountCreationAllowed",subtypes:[],props:{account_id:""}},ReceiptValidationError:{name:"ReceiptValidationError",subtypes:["InvalidPredecessorId","InvalidReceiverId","InvalidSignerId","InvalidDataReceiverId","ReturnedValueLengthExceeded","NumberInputDataDependenciesExceeded","ActionsValidation"],props:{}},ReceiverMismatch:{name:"ReceiverMismatch",subtypes:[],props:{ak_receiver:"",tx_receiver:""}},RequiresFullAccess:{name:"RequiresFullAccess",subtypes:[],props:{}},SignerDoesNotExist:{name:"SignerDoesNotExist",subtypes:[],props:{signer_id:""}},TotalNumberOfActionsExceeded:{name:"TotalNumberOfActionsExceeded",subtypes:[],props:{limit:"",total_number_of_actions:""}},TotalPrepaidGasExceeded:{name:"TotalPrepaidGasExceeded",subtypes:[],props:{limit:"",total_prepaid_gas:""}},TriesToStake:{name:"TriesToStake",subtypes:[],props:{account_id:"",balance:"",locked:"",stake:""}},TriesToUnstake:{name:"TriesToUnstake",subtypes:[],props:{account_id:""}},TxExecutionError:{name:"TxExecutionError",subtypes:["ActionError","InvalidTxError"],props:{}},UnsuitableStakingKey:{name:"UnsuitableStakingKey",subtypes:[],props:{public_key:""}},Closed:{name:"Closed",subtypes:[],props:{}},InternalError:{name:"InternalError",subtypes:[],props:{}},ServerError:{name:"ServerError",subtypes:["TxExecutionError","Timeout","Closed","InternalError"],props:{}},Timeout:{name:"Timeout",subtypes:[],props:{}}}}}}),require_rpc_errors$2=__commonJS({"node_modules/@near-js/utils/lib/errors/rpc_errors.js"(v){var k=v&&v.__importDefault||function(ur){return ur&&ur.__esModule?ur:{default:ur}};Object.defineProperty(v,"__esModule",{value:!0}),v.getErrorTypeFromErrorMessage=v.formatError=v.parseResultError=v.parseRpcError=v.ServerError=void 0;var ie=require_lib2$1(),ae=k(require_mustache$1()),ce=require_format$2(),fe=k(require_error_messages$2()),le=k(require_rpc_error_schema$2()),ve={formatNear:()=>(ur,jr)=>(0,ce.formatNearAmount)(jr(ur))},pe=class extends ie.TypedError{};v.ServerError=pe;var ye=class extends pe{};function me(ur){const jr={},Mr=Br(ur,le.default.schema,jr,""),Lr=new pe(cr(Mr,jr),Mr);return Object.assign(Lr,jr),Lr}v.parseRpcError=me;function Ee(ur){const jr=me(ur.status.Failure),Mr=new ye;return Object.assign(Mr,jr),Mr.type=jr.type,Mr.message=jr.message,Mr.transaction_outcome=ur.transaction_outcome,Mr}v.parseResultError=Ee;function cr(ur,jr){return typeof fe.default[ur]=="string"?ae.default.render(fe.default[ur],Object.assign(Object.assign({},jr),ve)):JSON.stringify(jr)}v.formatError=cr;function Br(ur,jr,Mr,Lr){let Vr,Gr,Ur;for(const Qr in jr){if(Or(ur[Qr]))return ur[Qr];if(Pr(ur[Qr]))Vr=ur[Qr],Gr=jr[Qr],Ur=Qr;else if(Pr(ur.kind)&&Pr(ur.kind[Qr]))Vr=ur.kind[Qr],Gr=jr[Qr],Ur=Qr;else continue}if(Vr&&Gr){for(const Qr of Object.keys(Gr.props))Mr[Qr]=Vr[Qr];return Br(Vr,jr,Mr,Ur)}else return Mr.kind=ur,Lr}function $r(ur,jr){switch(!0){case/^account .*? does not exist while viewing$/.test(ur):return"AccountDoesNotExist";case/^Account .*? doesn't exist$/.test(ur):return"AccountDoesNotExist";case/^access key .*? does not exist while viewing$/.test(ur):return"AccessKeyDoesNotExist";case/wasm execution failed with error: FunctionCallError\(CompilationError\(CodeDoesNotExist/.test(ur):return"CodeDoesNotExist";case/Transaction nonce \d+ must be larger than nonce of the used access key \d+/.test(ur):return"InvalidNonce";default:return jr}}v.getErrorTypeFromErrorMessage=$r;function Pr(ur){return Object.prototype.toString.call(ur)==="[object Object]"}function Or(ur){return Object.prototype.toString.call(ur)==="[object String]"}}}),require_errors3$1=__commonJS({"node_modules/@near-js/utils/lib/errors/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.parseRpcError=v.parseResultError=v.getErrorTypeFromErrorMessage=v.formatError=v.ServerError=v.logWarning=void 0;var k=require_errors2$1();Object.defineProperty(v,"logWarning",{enumerable:!0,get:function(){return k.logWarning}});var ie=require_rpc_errors$2();Object.defineProperty(v,"ServerError",{enumerable:!0,get:function(){return ie.ServerError}}),Object.defineProperty(v,"formatError",{enumerable:!0,get:function(){return ie.formatError}}),Object.defineProperty(v,"getErrorTypeFromErrorMessage",{enumerable:!0,get:function(){return ie.getErrorTypeFromErrorMessage}}),Object.defineProperty(v,"parseResultError",{enumerable:!0,get:function(){return ie.parseResultError}}),Object.defineProperty(v,"parseRpcError",{enumerable:!0,get:function(){return ie.parseRpcError}})}}),require_logging$1=__commonJS({"node_modules/@near-js/utils/lib/logging.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.printTxOutcomeLogs=v.printTxOutcomeLogsAndFailures=void 0;var k=require_errors3$1(),ie=!!process.env.NEAR_NO_LOGS;function ae({contractId:fe,outcome:le}){if(ie)return;const ve=[le.transaction_outcome,...le.receipts_outcome].reduce((pe,ye)=>{const me=typeof ye.outcome.status=="object"&&typeof ye.outcome.status.Failure=="object";return ye.outcome.logs.length||me?pe.concat({receiptIds:ye.outcome.receipt_ids,logs:ye.outcome.logs,failure:typeof ye.outcome.status=="object"&&ye.outcome.status.Failure!==void 0?(0,k.parseRpcError)(ye.outcome.status.Failure):null}):pe},[]);for(const pe of ve)console.log(`Receipt${pe.receiptIds.length>1?"s":""}: ${pe.receiptIds.join(", ")}`),ce({contractId:fe,logs:pe.logs,prefix:" "}),pe.failure&&console.warn(` Failure [${fe}]: ${pe.failure}`)}v.printTxOutcomeLogsAndFailures=ae;function ce({contractId:fe,logs:le,prefix:ve=""}){if(!ie)for(const pe of le)console.log(`${ve}Log [${fe}]: ${pe}`)}v.printTxOutcomeLogs=ce}}),require_provider2$2=__commonJS({"node_modules/@near-js/utils/lib/provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getTransactionLastResult=void 0;function k(ie){if(typeof ie.status=="object"&&typeof ie.status.SuccessValue=="string"){const ae=Buffer.from(ie.status.SuccessValue,"base64").toString();try{return JSON.parse(ae)}catch{return ae}}return null}v.getTransactionLastResult=k}}),require_browser$4=__commonJS({"node_modules/depd/lib/browser/index.js"(v,k){k.exports=ie;function ie(fe){if(!fe)throw new TypeError("argument namespace is required");function le(ve){}return le._file=void 0,le._ignored=!0,le._namespace=fe,le._traced=!1,le._warned=Object.create(null),le.function=ae,le.property=ce,le}function ae(fe,le){if(typeof fe!="function")throw new TypeError("argument fn must be a function");return fe}function ce(fe,le,ve){if(!fe||typeof fe!="object"&&typeof fe!="function")throw new TypeError("argument obj must be object");var pe=Object.getOwnPropertyDescriptor(fe,le);if(!pe)throw new TypeError("must call property on owner object");if(!pe.configurable)throw new TypeError("property must be configurable")}}}),require_validators$2=__commonJS({"node_modules/@near-js/utils/lib/validators.js"(v){var k=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.diffEpochValidators=v.findSeatPrice=void 0;var ie=k(require_bn$2()),ae=k(require_browser$4());function ce(pe,ye,me,Ee){return Ee&&Ee<49?fe(pe,ye):(me||((0,ae.default)("findSeatPrice(validators, maxNumberOfSeats)")("`use `findSeatPrice(validators, maxNumberOfSeats, minimumStakeRatio)` instead"),me=[1,6250]),le(pe,ye,me))}v.findSeatPrice=ce;function fe(pe,ye){const me=pe.map(Pr=>new ie.default(Pr.stake,10)).sort((Pr,Or)=>Pr.cmp(Or)),Ee=new ie.default(ye),cr=me.reduce((Pr,Or)=>Pr.add(Or));if(cr.lt(Ee))throw new Error("Stakes are below seats");let Br=new ie.default(1),$r=cr.add(new ie.default(1));for(;!Br.eq($r.sub(new ie.default(1)));){const Pr=Br.add($r).div(new ie.default(2));let Or=!1,ur=new ie.default(0);for(let jr=0;jrnew ie.default(Br.stake,10)).sort((Br,$r)=>Br.cmp($r)),cr=Ee.reduce((Br,$r)=>Br.add($r));return pe.lengthme.set(cr.account_id,cr));const Ee=new Set(ye.map(cr=>cr.account_id));return{newValidators:ye.filter(cr=>!me.has(cr.account_id)),removedValidators:pe.filter(cr=>!Ee.has(cr.account_id)),changedValidators:ye.filter(cr=>me.has(cr.account_id)&&me.get(cr.account_id).stake!=cr.stake).map(cr=>({current:me.get(cr.account_id),next:cr}))}}v.diffEpochValidators=ve}}),require_lib6$1=__commonJS({"node_modules/@near-js/utils/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ae,ce,fe,le){le===void 0&&(le=fe);var ve=Object.getOwnPropertyDescriptor(ce,fe);(!ve||("get"in ve?!ce.__esModule:ve.writable||ve.configurable))&&(ve={enumerable:!0,get:function(){return ce[fe]}}),Object.defineProperty(ae,le,ve)}:function(ae,ce,fe,le){le===void 0&&(le=fe),ae[le]=ce[fe]}),ie=v&&v.__exportStar||function(ae,ce){for(var fe in ae)fe!=="default"&&!Object.prototype.hasOwnProperty.call(ce,fe)&&k(ce,ae,fe)};Object.defineProperty(v,"__esModule",{value:!0}),ie(require_constants2$2(),v),ie(require_errors3$1(),v),ie(require_format$2(),v),ie(require_logging$1(),v),ie(require_provider2$2(),v),ie(require_validators$2(),v)}}),require_exponential_backoff$2=__commonJS({"node_modules/@near-js/providers/lib/exponential-backoff.js"(v){var k=v&&v.__awaiter||function(ce,fe,le,ve){function pe(ye){return ye instanceof le?ye:new le(function(me){me(ye)})}return new(le||(le=Promise))(function(ye,me){function Ee($r){try{Br(ve.next($r))}catch(Pr){me(Pr)}}function cr($r){try{Br(ve.throw($r))}catch(Pr){me(Pr)}}function Br($r){$r.done?ye($r.value):pe($r.value).then(Ee,cr)}Br((ve=ve.apply(ce,fe||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.exponentialBackoff=void 0;function ie(ce,fe,le,ve){return k(this,void 0,void 0,function*(){let pe=ce;for(let ye=0;yesetTimeout(fe,ce))}}}),require_actions$2=__commonJS({"node_modules/@near-js/transactions/lib/actions.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Action=v.SignedDelegate=v.DeleteAccount=v.DeleteKey=v.AddKey=v.Stake=v.Transfer=v.FunctionCall=v.DeployContract=v.CreateAccount=v.IAction=v.AccessKey=v.AccessKeyPermission=v.FullAccessPermission=v.FunctionCallPermission=void 0;var k=require_lib2$1(),ie=class{constructor(jr){if(Object.keys(jr).length!==1)throw new Error("Enum can only take single value");Object.keys(jr).map(Mr=>{this[Mr]=jr[Mr],this.enum=Mr})}},ae=class extends k.Assignable{};v.FunctionCallPermission=ae;var ce=class extends k.Assignable{};v.FullAccessPermission=ce;var fe=class extends ie{};v.AccessKeyPermission=fe;var le=class extends k.Assignable{};v.AccessKey=le;var ve=class extends k.Assignable{};v.IAction=ve;var pe=class extends ve{};v.CreateAccount=pe;var ye=class extends ve{};v.DeployContract=ye;var me=class extends ve{};v.FunctionCall=me;var Ee=class extends ve{};v.Transfer=Ee;var cr=class extends ve{};v.Stake=cr;var Br=class extends ve{};v.AddKey=Br;var $r=class extends ve{};v.DeleteKey=$r;var Pr=class extends ve{};v.DeleteAccount=Pr;var Or=class extends ve{};v.SignedDelegate=Or;var ur=class extends ie{};v.Action=ur}}),require_action_creators$1=__commonJS({"node_modules/@near-js/transactions/lib/action_creators.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.actionCreators=v.stringifyJsonOrBytes=void 0;var k=require_actions$2();function ie(){return new k.AccessKey({permission:new k.AccessKeyPermission({fullAccess:new k.FullAccessPermission({})})})}function ae($r,Pr,Or){return new k.AccessKey({permission:new k.AccessKeyPermission({functionCall:new k.FunctionCallPermission({receiverId:$r,allowance:Or,methodNames:Pr})})})}function ce(){return new k.Action({createAccount:new k.CreateAccount({})})}function fe($r){return new k.Action({deployContract:new k.DeployContract({code:$r})})}function le($r){return $r.byteLength!==void 0&&$r.byteLength===$r.length?$r:Buffer.from(JSON.stringify($r))}v.stringifyJsonOrBytes=le;function ve($r,Pr,Or,ur,jr=le,Mr=!1){return Mr?new k.Action({functionCall:new k.FunctionCall({methodName:$r,args:Pr,gas:Or,deposit:ur})}):new k.Action({functionCall:new k.FunctionCall({methodName:$r,args:jr(Pr),gas:Or,deposit:ur})})}function pe($r){return new k.Action({transfer:new k.Transfer({deposit:$r})})}function ye($r,Pr){return new k.Action({stake:new k.Stake({stake:$r,publicKey:Pr})})}function me($r,Pr){return new k.Action({addKey:new k.AddKey({publicKey:$r,accessKey:Pr})})}function Ee($r){return new k.Action({deleteKey:new k.DeleteKey({publicKey:$r})})}function cr($r){return new k.Action({deleteAccount:new k.DeleteAccount({beneficiaryId:$r})})}function Br({delegateAction:$r,signature:Pr}){return new k.Action({signedDelegate:new k.SignedDelegate({delegateAction:$r,signature:Pr})})}v.actionCreators={addKey:me,createAccount:ce,deleteAccount:cr,deleteKey:Ee,deployContract:fe,fullAccessKey:ie,functionCall:ve,functionCallAccessKey:ae,signedDelegate:Br,stake:ye,transfer:pe}}}),require_delegate$2=__commonJS({"node_modules/@near-js/transactions/lib/delegate.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.buildDelegateAction=v.DelegateAction=void 0;var k=require_lib2$1(),ie=require_action_creators$1(),{addKey:ae,createAccount:ce,deleteAccount:fe,deleteKey:le,deployContract:ve,functionCall:pe,stake:ye,transfer:me}=ie.actionCreators,Ee=class extends k.Assignable{};v.DelegateAction=Ee;function cr({actions:Br,maxBlockHeight:$r,nonce:Pr,publicKey:Or,receiverId:ur,senderId:jr}){return new Ee({senderId:jr,receiverId:ur,actions:Br.map(Mr=>{if(!Mr.type&&!Mr.params)return Mr;switch(Mr.type){case"AddKey":{const{publicKey:Lr,accessKey:Vr}=Mr.params;return ae(Lr,Vr)}case"CreateAccount":return ce(Mr.params.createAccount);case"DeleteAccount":return fe(Mr.params.deleteAccount);case"DeleteKey":return le(Mr.params.publicKey);case"DeployContract":return ve(Mr.params.code);case"FunctionCall":{const{methodName:Lr,args:Vr,gas:Gr,deposit:Ur}=Mr.params;return pe(Lr,Vr,Gr,Ur)}case"Stake":return ye(Mr.params.stake,Mr.params.publicKey);case"Transfer":{const{deposit:Lr}=Mr.params;return me(Lr)}}throw new Error("Unrecognized action")}),nonce:Pr,maxBlockHeight:$r,publicKey:Or})}v.buildDelegateAction=cr}}),require_prefix$1=__commonJS({"node_modules/@near-js/transactions/lib/prefix.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.DelegateActionPrefix=void 0;var k=require_lib2$1(),ie=Math.pow(2,30),ae={MetaTransactions:366},ce=class extends k.Assignable{},fe=class extends ce{constructor(ve){super({prefix:ie+ve})}},le=class extends fe{constructor(){super(ae.MetaTransactions)}};v.DelegateActionPrefix=le}}),require_signature$1=__commonJS({"node_modules/@near-js/transactions/lib/signature.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signature=void 0;var k=require_lib2$1(),ie=class extends k.Assignable{};v.Signature=ie}}),require_schema$1=__commonJS({"node_modules/@near-js/transactions/lib/schema.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.SCHEMA=v.SignedTransaction=v.Transaction=v.decodeSignedTransaction=v.decodeTransaction=v.encodeTransaction=v.encodeSignedDelegate=v.encodeDelegateAction=void 0;var k=require_lib3$1(),ie=require_lib2$1(),ae=require_lib$1(),ce=require_actions$2(),fe=require_delegate$2(),le=require_prefix$1(),ve=require_signature$1();function pe(Pr){return new Uint8Array([...(0,ae.serialize)(v.SCHEMA,new le.DelegateActionPrefix),...(0,ae.serialize)(v.SCHEMA,Pr)])}v.encodeDelegateAction=pe;function ye(Pr){return(0,ae.serialize)(v.SCHEMA,Pr)}v.encodeSignedDelegate=ye;function me(Pr){return(0,ae.serialize)(v.SCHEMA,Pr)}v.encodeTransaction=me;function Ee(Pr){return(0,ae.deserialize)(v.SCHEMA,Br,Pr)}v.decodeTransaction=Ee;function cr(Pr){return(0,ae.deserialize)(v.SCHEMA,$r,Pr)}v.decodeSignedTransaction=cr;var Br=class extends ie.Assignable{encode(){return me(this)}static decode(Pr){return Ee(Pr)}};v.Transaction=Br;var $r=class extends ie.Assignable{encode(){return me(this)}static decode(Pr){return cr(Pr)}};v.SignedTransaction=$r,v.SCHEMA=new Map([[ve.Signature,{kind:"struct",fields:[["keyType","u8"],["data",[64]]]}],[$r,{kind:"struct",fields:[["transaction",Br],["signature",ve.Signature]]}],[Br,{kind:"struct",fields:[["signerId","string"],["publicKey",k.PublicKey],["nonce","u64"],["receiverId","string"],["blockHash",[32]],["actions",[ce.Action]]]}],[k.PublicKey,{kind:"struct",fields:[["keyType","u8"],["data",[32]]]}],[ce.AccessKey,{kind:"struct",fields:[["nonce","u64"],["permission",ce.AccessKeyPermission]]}],[ce.AccessKeyPermission,{kind:"enum",field:"enum",values:[["functionCall",ce.FunctionCallPermission],["fullAccess",ce.FullAccessPermission]]}],[ce.FunctionCallPermission,{kind:"struct",fields:[["allowance",{kind:"option",type:"u128"}],["receiverId","string"],["methodNames",["string"]]]}],[ce.FullAccessPermission,{kind:"struct",fields:[]}],[ce.Action,{kind:"enum",field:"enum",values:[["createAccount",ce.CreateAccount],["deployContract",ce.DeployContract],["functionCall",ce.FunctionCall],["transfer",ce.Transfer],["stake",ce.Stake],["addKey",ce.AddKey],["deleteKey",ce.DeleteKey],["deleteAccount",ce.DeleteAccount],["signedDelegate",ce.SignedDelegate]]}],[ce.CreateAccount,{kind:"struct",fields:[]}],[ce.DeployContract,{kind:"struct",fields:[["code",["u8"]]]}],[ce.FunctionCall,{kind:"struct",fields:[["methodName","string"],["args",["u8"]],["gas","u64"],["deposit","u128"]]}],[ce.Transfer,{kind:"struct",fields:[["deposit","u128"]]}],[ce.Stake,{kind:"struct",fields:[["stake","u128"],["publicKey",k.PublicKey]]}],[ce.AddKey,{kind:"struct",fields:[["publicKey",k.PublicKey],["accessKey",ce.AccessKey]]}],[ce.DeleteKey,{kind:"struct",fields:[["publicKey",k.PublicKey]]}],[ce.DeleteAccount,{kind:"struct",fields:[["beneficiaryId","string"]]}],[fe.DelegateAction,{kind:"struct",fields:[["senderId","string"],["receiverId","string"],["actions",[ce.Action]],["nonce","u64"],["maxBlockHeight","u64"],["publicKey",k.PublicKey]]}],[le.DelegateActionPrefix,{kind:"struct",fields:[["prefix","u32"]]}],[ce.SignedDelegate,{kind:"struct",fields:[["delegateAction",fe.DelegateAction],["signature",ve.Signature]]}]])}}),require_create_transaction$1=__commonJS({"node_modules/@near-js/transactions/lib/create_transaction.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.createTransaction=void 0;var k=require_schema$1();function ie(ae,ce,fe,le,ve,pe){return new k.Transaction({signerId:ae,publicKey:ce,nonce:le,receiverId:fe,actions:ve,blockHash:pe})}v.createTransaction=ie}}),require_sha256$3=__commonJS({"node_modules/js-sha256/src/sha256.js"(exports,module){(function(){var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=globalThis:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,AMD=typeof define=="function"&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(v){return Object.prototype.toString.call(v)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(v){return typeof v=="object"&&v.buffer&&v.buffer.constructor===ArrayBuffer});var createOutputMethod=function(v,k){return function(ie){return new Sha256(k,!0).update(ie)[v]()}},createMethod=function(v){var k=createOutputMethod("hex",v);NODE_JS&&(k=nodeWrap(k,v)),k.create=function(){return new Sha256(v)},k.update=function(ce){return k.create().update(ce)};for(var ie=0;ie>2]|=v[ce]<>2]|=ae<>2]|=(192|ae>>6)<>2]|=(128|ae&63)<=57344?(ve[fe>>2]|=(224|ae>>12)<>2]|=(128|ae>>6&63)<>2]|=(128|ae&63)<>2]|=(240|ae>>18)<>2]|=(128|ae>>12&63)<>2]|=(128|ae>>6&63)<>2]|=(128|ae&63)<=64?(this.block=ve[16],this.start=fe-64,this.hash(),this.hashed=!0):this.start=fe}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var v=this.blocks,k=this.lastByteIndex;v[16]=this.block,v[k>>2]|=EXTRA[k&3],this.block=v[16],k>=56&&(this.hashed||this.hash(),v[0]=this.block,v[16]=v[1]=v[2]=v[3]=v[4]=v[5]=v[6]=v[7]=v[8]=v[9]=v[10]=v[11]=v[12]=v[13]=v[14]=v[15]=0),v[14]=this.hBytes<<3|this.bytes>>>29,v[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var v=this.h0,k=this.h1,ie=this.h2,ae=this.h3,ce=this.h4,fe=this.h5,le=this.h6,ve=this.h7,pe=this.blocks,ye,me,Ee,cr,Br,$r,Pr,Or,ur,jr,Mr;for(ye=16;ye<64;++ye)Br=pe[ye-15],me=(Br>>>7|Br<<25)^(Br>>>18|Br<<14)^Br>>>3,Br=pe[ye-2],Ee=(Br>>>17|Br<<15)^(Br>>>19|Br<<13)^Br>>>10,pe[ye]=pe[ye-16]+me+pe[ye-7]+Ee<<0;for(Mr=k&ie,ye=0;ye<64;ye+=4)this.first?(this.is224?(Or=300032,Br=pe[0]-1413257819,ve=Br-150054599<<0,ae=Br+24177077<<0):(Or=704751109,Br=pe[0]-210244248,ve=Br-1521486534<<0,ae=Br+143694565<<0),this.first=!1):(me=(v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10),Ee=(ce>>>6|ce<<26)^(ce>>>11|ce<<21)^(ce>>>25|ce<<7),Or=v&k,cr=Or^v&ie^Mr,Pr=ce&fe^~ce&le,Br=ve+Ee+Pr+K[ye]+pe[ye],$r=me+cr,ve=ae+Br<<0,ae=Br+$r<<0),me=(ae>>>2|ae<<30)^(ae>>>13|ae<<19)^(ae>>>22|ae<<10),Ee=(ve>>>6|ve<<26)^(ve>>>11|ve<<21)^(ve>>>25|ve<<7),ur=ae&v,cr=ur^ae&k^Or,Pr=ve&ce^~ve&fe,Br=le+Ee+Pr+K[ye+1]+pe[ye+1],$r=me+cr,le=ie+Br<<0,ie=Br+$r<<0,me=(ie>>>2|ie<<30)^(ie>>>13|ie<<19)^(ie>>>22|ie<<10),Ee=(le>>>6|le<<26)^(le>>>11|le<<21)^(le>>>25|le<<7),jr=ie&ae,cr=jr^ie&v^ur,Pr=le&ve^~le&ce,Br=fe+Ee+Pr+K[ye+2]+pe[ye+2],$r=me+cr,fe=k+Br<<0,k=Br+$r<<0,me=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),Ee=(fe>>>6|fe<<26)^(fe>>>11|fe<<21)^(fe>>>25|fe<<7),Mr=k&ie,cr=Mr^k&ae^jr,Pr=fe&le^~fe&ve,Br=ce+Ee+Pr+K[ye+3]+pe[ye+3],$r=me+cr,ce=v+Br<<0,v=Br+$r<<0;this.h0=this.h0+v<<0,this.h1=this.h1+k<<0,this.h2=this.h2+ie<<0,this.h3=this.h3+ae<<0,this.h4=this.h4+ce<<0,this.h5=this.h5+fe<<0,this.h6=this.h6+le<<0,this.h7=this.h7+ve<<0},Sha256.prototype.hex=function(){this.finalize();var v=this.h0,k=this.h1,ie=this.h2,ae=this.h3,ce=this.h4,fe=this.h5,le=this.h6,ve=this.h7,pe=HEX_CHARS[v>>28&15]+HEX_CHARS[v>>24&15]+HEX_CHARS[v>>20&15]+HEX_CHARS[v>>16&15]+HEX_CHARS[v>>12&15]+HEX_CHARS[v>>8&15]+HEX_CHARS[v>>4&15]+HEX_CHARS[v&15]+HEX_CHARS[k>>28&15]+HEX_CHARS[k>>24&15]+HEX_CHARS[k>>20&15]+HEX_CHARS[k>>16&15]+HEX_CHARS[k>>12&15]+HEX_CHARS[k>>8&15]+HEX_CHARS[k>>4&15]+HEX_CHARS[k&15]+HEX_CHARS[ie>>28&15]+HEX_CHARS[ie>>24&15]+HEX_CHARS[ie>>20&15]+HEX_CHARS[ie>>16&15]+HEX_CHARS[ie>>12&15]+HEX_CHARS[ie>>8&15]+HEX_CHARS[ie>>4&15]+HEX_CHARS[ie&15]+HEX_CHARS[ae>>28&15]+HEX_CHARS[ae>>24&15]+HEX_CHARS[ae>>20&15]+HEX_CHARS[ae>>16&15]+HEX_CHARS[ae>>12&15]+HEX_CHARS[ae>>8&15]+HEX_CHARS[ae>>4&15]+HEX_CHARS[ae&15]+HEX_CHARS[ce>>28&15]+HEX_CHARS[ce>>24&15]+HEX_CHARS[ce>>20&15]+HEX_CHARS[ce>>16&15]+HEX_CHARS[ce>>12&15]+HEX_CHARS[ce>>8&15]+HEX_CHARS[ce>>4&15]+HEX_CHARS[ce&15]+HEX_CHARS[fe>>28&15]+HEX_CHARS[fe>>24&15]+HEX_CHARS[fe>>20&15]+HEX_CHARS[fe>>16&15]+HEX_CHARS[fe>>12&15]+HEX_CHARS[fe>>8&15]+HEX_CHARS[fe>>4&15]+HEX_CHARS[fe&15]+HEX_CHARS[le>>28&15]+HEX_CHARS[le>>24&15]+HEX_CHARS[le>>20&15]+HEX_CHARS[le>>16&15]+HEX_CHARS[le>>12&15]+HEX_CHARS[le>>8&15]+HEX_CHARS[le>>4&15]+HEX_CHARS[le&15];return this.is224||(pe+=HEX_CHARS[ve>>28&15]+HEX_CHARS[ve>>24&15]+HEX_CHARS[ve>>20&15]+HEX_CHARS[ve>>16&15]+HEX_CHARS[ve>>12&15]+HEX_CHARS[ve>>8&15]+HEX_CHARS[ve>>4&15]+HEX_CHARS[ve&15]),pe},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var v=this.h0,k=this.h1,ie=this.h2,ae=this.h3,ce=this.h4,fe=this.h5,le=this.h6,ve=this.h7,pe=[v>>24&255,v>>16&255,v>>8&255,v&255,k>>24&255,k>>16&255,k>>8&255,k&255,ie>>24&255,ie>>16&255,ie>>8&255,ie&255,ae>>24&255,ae>>16&255,ae>>8&255,ae&255,ce>>24&255,ce>>16&255,ce>>8&255,ce&255,fe>>24&255,fe>>16&255,fe>>8&255,fe&255,le>>24&255,le>>16&255,le>>8&255,le&255];return this.is224||pe.push(ve>>24&255,ve>>16&255,ve>>8&255,ve&255),pe},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var v=new ArrayBuffer(this.is224?28:32),k=new DataView(v);return k.setUint32(0,this.h0),k.setUint32(4,this.h1),k.setUint32(8,this.h2),k.setUint32(12,this.h3),k.setUint32(16,this.h4),k.setUint32(20,this.h5),k.setUint32(24,this.h6),this.is224||k.setUint32(28,this.h7),v};function HmacSha256(v,k,ie){var ae,ce=typeof v;if(ce==="string"){var fe=[],le=v.length,ve=0,pe;for(ae=0;ae>6,fe[ve++]=128|pe&63):pe<55296||pe>=57344?(fe[ve++]=224|pe>>12,fe[ve++]=128|pe>>6&63,fe[ve++]=128|pe&63):(pe=65536+((pe&1023)<<10|v.charCodeAt(++ae)&1023),fe[ve++]=240|pe>>18,fe[ve++]=128|pe>>12&63,fe[ve++]=128|pe>>6&63,fe[ve++]=128|pe&63);v=fe}else if(ce==="object"){if(v===null)throw new Error(ERROR);if(ARRAY_BUFFER&&v.constructor===ArrayBuffer)v=new Uint8Array(v);else if(!Array.isArray(v)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(v)))throw new Error(ERROR)}else throw new Error(ERROR);v.length>64&&(v=new Sha256(k,!0).update(v).array());var ye=[],me=[];for(ae=0;ae<64;++ae){var Ee=v[ae]||0;ye[ae]=92^Ee,me[ae]=54^Ee}Sha256.call(this,k,ie),this.update(me),this.oKeyPad=ye,this.inner=!0,this.sharedMemory=ie}HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var v=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(v),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define(function(){return exports}))})()}}),require_sign$1=__commonJS({"node_modules/@near-js/transactions/lib/sign.js"(v){var k=v&&v.__awaiter||function(Ee,cr,Br,$r){function Pr(Or){return Or instanceof Br?Or:new Br(function(ur){ur(Or)})}return new(Br||(Br=Promise))(function(Or,ur){function jr(Vr){try{Lr($r.next(Vr))}catch(Gr){ur(Gr)}}function Mr(Vr){try{Lr($r.throw(Vr))}catch(Gr){ur(Gr)}}function Lr(Vr){Vr.done?Or(Vr.value):Pr(Vr.value).then(jr,Mr)}Lr(($r=$r.apply(Ee,cr||[])).next())})},ie=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.signDelegateAction=v.signTransaction=void 0;var ae=ie(require_sha256$3()),ce=require_actions$2(),fe=require_create_transaction$1(),le=require_schema$1(),ve=require_signature$1();function pe(Ee,cr,Br,$r){return k(this,void 0,void 0,function*(){const Pr=(0,le.encodeTransaction)(Ee),Or=new Uint8Array(ae.default.sha256.array(Pr)),ur=yield cr.signMessage(Pr,Br,$r),jr=new le.SignedTransaction({transaction:Ee,signature:new ve.Signature({keyType:Ee.publicKey.keyType,data:ur.signature})});return[Or,jr]})}function ye(...Ee){return k(this,void 0,void 0,function*(){if(Ee[0].constructor===le.Transaction){const[cr,Br,$r,Pr]=Ee;return pe(cr,Br,$r,Pr)}else{const[cr,Br,$r,Pr,Or,ur,jr]=Ee,Mr=yield Or.getPublicKey(ur,jr),Lr=(0,fe.createTransaction)(ur,Mr,cr,Br,$r,Pr);return pe(Lr,Or,ur,jr)}})}v.signTransaction=ye;function me({delegateAction:Ee,signer:cr}){return k(this,void 0,void 0,function*(){const Br=(0,le.encodeDelegateAction)(Ee),$r=yield cr.sign(Br),Pr=new ce.SignedDelegate({delegateAction:Ee,signature:new ve.Signature({keyType:Ee.publicKey.keyType,data:$r})});return{hash:new Uint8Array(ae.default.sha256.array(Br)),signedDelegateAction:Pr}})}v.signDelegateAction=me}}),require_lib7$1=__commonJS({"node_modules/@near-js/transactions/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ae,ce,fe,le){le===void 0&&(le=fe);var ve=Object.getOwnPropertyDescriptor(ce,fe);(!ve||("get"in ve?!ce.__esModule:ve.writable||ve.configurable))&&(ve={enumerable:!0,get:function(){return ce[fe]}}),Object.defineProperty(ae,le,ve)}:function(ae,ce,fe,le){le===void 0&&(le=fe),ae[le]=ce[fe]}),ie=v&&v.__exportStar||function(ae,ce){for(var fe in ae)fe!=="default"&&!Object.prototype.hasOwnProperty.call(ce,fe)&&k(ce,ae,fe)};Object.defineProperty(v,"__esModule",{value:!0}),ie(require_action_creators$1(),v),ie(require_actions$2(),v),ie(require_create_transaction$1(),v),ie(require_delegate$2(),v),ie(require_schema$1(),v),ie(require_sign$1(),v),ie(require_signature$1(),v)}}),require_provider3$1=__commonJS({"node_modules/@near-js/providers/lib/provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Provider=void 0;var k=class{};v.Provider=k}}),require_browser2$4=__commonJS({"node_modules/http-errors/node_modules/depd/lib/browser/index.js"(v,k){k.exports=ie;function ie(fe){if(!fe)throw new TypeError("argument namespace is required");function le(ve){}return le._file=void 0,le._ignored=!0,le._namespace=fe,le._traced=!1,le._warned=Object.create(null),le.function=ae,le.property=ce,le}function ae(fe,le){if(typeof fe!="function")throw new TypeError("argument fn must be a function");return fe}function ce(fe,le,ve){if(!fe||typeof fe!="object"&&typeof fe!="function")throw new TypeError("argument obj must be object");var pe=Object.getOwnPropertyDescriptor(fe,le);if(!pe)throw new TypeError("must call property on owner object");if(!pe.configurable)throw new TypeError("property must be configurable")}}}),require_setprototypeof$1=__commonJS({"node_modules/setprototypeof/index.js"(v,k){k.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?ie:ae);function ie(ce,fe){return ce.__proto__=fe,ce}function ae(ce,fe){for(var le in fe)Object.prototype.hasOwnProperty.call(ce,le)||(ce[le]=fe[le]);return ce}}}),require_codes$1=__commonJS({"node_modules/statuses/codes.json"(v,k){k.exports={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"(Unused)",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}}}),require_statuses$1=__commonJS({"node_modules/statuses/index.js"(v,k){var ie=require_codes$1();k.exports=ce,ce.STATUS_CODES=ie,ce.codes=ae(ce,ie),ce.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},ce.empty={204:!0,205:!0,304:!0},ce.retry={502:!0,503:!0,504:!0};function ae(fe,le){var ve=[];return Object.keys(le).forEach(function(ye){var me=le[ye],Ee=Number(ye);fe[Ee]=me,fe[me]=Ee,fe[me.toLowerCase()]=Ee,ve.push(Ee)}),ve}function ce(fe){if(typeof fe=="number"){if(!ce[fe])throw new Error("invalid status code: "+fe);return fe}if(typeof fe!="string")throw new TypeError("code must be a number or string");var le=parseInt(fe,10);if(!isNaN(le)){if(!ce[le])throw new Error("invalid status code: "+le);return le}if(le=ce[fe.toLowerCase()],!le)throw new Error('invalid status message: "'+fe+'"');return le}}}),require_inherits_browser$1=__commonJS({"node_modules/inherits/inherits_browser.js"(v,k){typeof Object.create=="function"?k.exports=function(ae,ce){ce&&(ae.super_=ce,ae.prototype=Object.create(ce.prototype,{constructor:{value:ae,enumerable:!1,writable:!0,configurable:!0}}))}:k.exports=function(ae,ce){if(ce){ae.super_=ce;var fe=function(){};fe.prototype=ce.prototype,ae.prototype=new fe,ae.prototype.constructor=ae}}}}),require_toidentifier$1=__commonJS({"node_modules/toidentifier/index.js"(v,k){k.exports=ie;function ie(ae){return ae.split(" ").map(function(ce){return ce.slice(0,1).toUpperCase()+ce.slice(1)}).join("").replace(/[^ _0-9a-z]/gi,"")}}}),require_http_errors$1=__commonJS({"node_modules/http-errors/index.js"(v,k){var ie=require_browser2$4()("http-errors"),ae=require_setprototypeof$1(),ce=require_statuses$1(),fe=require_inherits_browser$1(),le=require_toidentifier$1();k.exports=pe,k.exports.HttpError=ye(),k.exports.isHttpError=Ee(k.exports.HttpError),$r(k.exports,ce.codes,k.exports.HttpError);function ve(Or){return Number(String(Or).charAt(0)+"00")}function pe(){for(var Or,ur,jr=500,Mr={},Lr=0;Lr=600)&&ie("non-error status code; use only 4xx or 5xx status codes"),(typeof jr!="number"||!ce[jr]&&(jr<400||jr>=600))&&(jr=500);var Gr=pe[jr]||pe[ve(jr)];Or||(Or=Gr?new Gr(ur):new Error(ur||ce[jr]),Error.captureStackTrace(Or,pe)),(!Gr||!(Or instanceof Gr)||Or.status!==jr)&&(Or.expose=jr<500,Or.status=Or.statusCode=jr);for(var Ur in Mr)Ur!=="status"&&Ur!=="statusCode"&&(Or[Ur]=Mr[Ur]);return Or}function ye(){function Or(){throw new TypeError("cannot construct abstract class")}return fe(Or,Error),Or}function me(Or,ur,jr){var Mr=Pr(ur);function Lr(Vr){var Gr=Vr!=null?Vr:ce[jr],Ur=new Error(Gr);return Error.captureStackTrace(Ur,Lr),ae(Ur,Lr.prototype),Object.defineProperty(Ur,"message",{enumerable:!0,configurable:!0,value:Gr,writable:!0}),Object.defineProperty(Ur,"name",{enumerable:!1,configurable:!0,value:Mr,writable:!0}),Ur}return fe(Lr,Or),Br(Lr,Mr),Lr.prototype.status=jr,Lr.prototype.statusCode=jr,Lr.prototype.expose=!0,Lr}function Ee(Or){return function(jr){return!jr||typeof jr!="object"?!1:jr instanceof Or?!0:jr instanceof Error&&typeof jr.expose=="boolean"&&typeof jr.statusCode=="number"&&jr.status===jr.statusCode}}function cr(Or,ur,jr){var Mr=Pr(ur);function Lr(Vr){var Gr=Vr!=null?Vr:ce[jr],Ur=new Error(Gr);return Error.captureStackTrace(Ur,Lr),ae(Ur,Lr.prototype),Object.defineProperty(Ur,"message",{enumerable:!0,configurable:!0,value:Gr,writable:!0}),Object.defineProperty(Ur,"name",{enumerable:!1,configurable:!0,value:Mr,writable:!0}),Ur}return fe(Lr,Or),Br(Lr,Mr),Lr.prototype.status=jr,Lr.prototype.statusCode=jr,Lr.prototype.expose=!1,Lr}function Br(Or,ur){var jr=Object.getOwnPropertyDescriptor(Or,"name");jr&&jr.configurable&&(jr.value=ur,Object.defineProperty(Or,"name",jr))}function $r(Or,ur,jr){ur.forEach(function(Lr){var Vr,Gr=le(ce[Lr]);switch(ve(Lr)){case 400:Vr=me(jr,Gr,Lr);break;case 500:Vr=cr(jr,Gr,Lr);break}Vr&&(Or[Lr]=Vr,Or[Gr]=Vr)}),Or["I'mateapot"]=ie.function(Or.ImATeapot,`"I'mateapot"; use "ImATeapot" instead`)}function Pr(Or){return Or.substr(-5)!=="Error"?Or+"Error":Or}}}),require_browser3$4=__commonJS({"node_modules/node-fetch/browser.js"(v,k){var ie=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof ae<"u")return ae;throw new Error("unable to locate globalThis object")},ae=ie();k.exports=v=ae.fetch,ae.fetch&&(v.default=ae.fetch.bind(ae)),v.Headers=ae.Headers,v.Request=ae.Request,v.Response=ae.Response}}),require_http$1=__commonJS({"browser-external:http"(v,k){k.exports={}}}),require_https$1=__commonJS({"browser-external:https"(v,k){k.exports={}}}),require_fetch$1=__commonJS({"node_modules/@near-js/providers/lib/fetch.js"(v){var k=v&&v.__importDefault||function(ye){return ye&&ye.__esModule?ye:{default:ye}};Object.defineProperty(v,"__esModule",{value:!0});var ie=k(require_browser3$4()),ae=k(require_http$1()),ce=k(require_https$1()),fe=new ae.default.Agent({keepAlive:!0}),le=new ce.default.Agent({keepAlive:!0});function ve(ye){return ye.protocol==="http:"?fe:le}function pe(ye,me){return(0,ie.default)(ye,Object.assign({agent:ve(new URL(ye.toString()))},me))}v.default=pe}}),require_fetch_json$1=__commonJS({"node_modules/@near-js/providers/lib/fetch_json.js"(v){var k=v&&v.__createBinding||(Object.create?function($r,Pr,Or,ur){ur===void 0&&(ur=Or);var jr=Object.getOwnPropertyDescriptor(Pr,Or);(!jr||("get"in jr?!Pr.__esModule:jr.writable||jr.configurable))&&(jr={enumerable:!0,get:function(){return Pr[Or]}}),Object.defineProperty($r,ur,jr)}:function($r,Pr,Or,ur){ur===void 0&&(ur=Or),$r[ur]=Pr[Or]}),ie=v&&v.__setModuleDefault||(Object.create?function($r,Pr){Object.defineProperty($r,"default",{enumerable:!0,value:Pr})}:function($r,Pr){$r.default=Pr}),ae=v&&v.__importStar||function($r){if($r&&$r.__esModule)return $r;var Pr={};if($r!=null)for(var Or in $r)Or!=="default"&&Object.prototype.hasOwnProperty.call($r,Or)&&k(Pr,$r,Or);return ie(Pr,$r),Pr},ce=v&&v.__awaiter||function($r,Pr,Or,ur){function jr(Mr){return Mr instanceof Or?Mr:new Or(function(Lr){Lr(Mr)})}return new(Or||(Or=Promise))(function(Mr,Lr){function Vr(Qr){try{Ur(ur.next(Qr))}catch(vn){Lr(vn)}}function Gr(Qr){try{Ur(ur.throw(Qr))}catch(vn){Lr(vn)}}function Ur(Qr){Qr.done?Mr(Qr.value):jr(Qr.value).then(Vr,Gr)}Ur((ur=ur.apply($r,Pr||[])).next())})},fe=v&&v.__importDefault||function($r){return $r&&$r.__esModule?$r:{default:$r}};Object.defineProperty(v,"__esModule",{value:!0}),v.fetchJson=void 0;var le=require_lib2$1(),ve=fe(require_http_errors$1()),pe=require_exponential_backoff$2(),ye=1e3,me=1.5,Ee=10,cr=(...$r)=>!process.env.NEAR_NO_LOGS&&console.warn(...$r);function Br($r,Pr){return ce(this,void 0,void 0,function*(){let Or={url:null};typeof $r=="string"?Or.url=$r:Or=$r;const ur=yield(0,pe.exponentialBackoff)(ye,Ee,me,()=>ce(this,void 0,void 0,function*(){try{globalThis.fetch||(globalThis.fetch=(yield Promise.resolve().then(()=>ae(require_fetch$1()))).default);const jr=yield globalThis.fetch(Or.url,{method:Pr?"POST":"GET",body:Pr||void 0,headers:Object.assign(Object.assign({},Or.headers),{"Content-Type":"application/json"})});if(!jr.ok){if(jr.status===503)return cr(`Retrying HTTP request for ${Or.url} as it's not available now`),null;throw(0,ve.default)(jr.status,yield jr.text())}return jr}catch(jr){if(jr.toString().includes("FetchError")||jr.toString().includes("Failed to fetch"))return cr(`Retrying HTTP request for ${Or.url} because of error: ${jr}`),null;throw jr}}));if(!ur)throw new le.TypedError(`Exceeded ${Ee} attempts for ${Or.url}.`,"RetriesExceeded");return yield ur.json()})}v.fetchJson=Br}}),require_json_rpc_provider$2=__commonJS({"node_modules/@near-js/providers/lib/json-rpc-provider.js"(v){var k=v&&v.__awaiter||function(Pr,Or,ur,jr){function Mr(Lr){return Lr instanceof ur?Lr:new ur(function(Vr){Vr(Lr)})}return new(ur||(ur=Promise))(function(Lr,Vr){function Gr(vn){try{Qr(jr.next(vn))}catch(Yt){Vr(Yt)}}function Ur(vn){try{Qr(jr.throw(vn))}catch(Yt){Vr(Yt)}}function Qr(vn){vn.done?Lr(vn.value):Mr(vn.value).then(Gr,Ur)}Qr((jr=jr.apply(Pr,Or||[])).next())})},ie=v&&v.__rest||function(Pr,Or){var ur={};for(var jr in Pr)Object.prototype.hasOwnProperty.call(Pr,jr)&&Or.indexOf(jr)<0&&(ur[jr]=Pr[jr]);if(Pr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mr=0,jr=Object.getOwnPropertySymbols(Pr);Mrk(this,void 0,void 0,function*(){try{const Mr={method:Pr,params:Or,id:Br++,jsonrpc:"2.0"},Lr=yield(0,ye.fetchJson)(this.connection,JSON.stringify(Mr));if(Lr.error){if(typeof Lr.error.data=="object")throw typeof Lr.error.data.error_message=="string"&&typeof Lr.error.data.error_type=="string"?new ce.TypedError(Lr.error.data.error_message,Lr.error.data.error_type):(0,ae.parseRpcError)(Lr.error.data);{const Vr=`[${Lr.error.code}] ${Lr.error.message}: ${Lr.error.data}`;throw Lr.error.data==="Timeout"||Vr.includes("Timeout error")||Vr.includes("query has timed out")?new ce.TypedError(Vr,"TimeoutError"):new ce.TypedError(Vr,(0,ae.getErrorTypeFromErrorMessage)(Lr.error.data,Lr.error.name))}}return Lr}catch(Mr){if(Mr.type==="TimeoutError")return process.env.NEAR_NO_LOGS||console.warn(`Retrying request to ${Pr} as it has timed out`,Or),null;throw Mr}})),{result:jr}=ur;if(typeof jr>"u")throw new ce.TypedError(`Exceeded ${me} attempts for request to ${Pr}.`,"RetriesExceeded");return jr})}};v.JsonRpcProvider=$r}}),require_lib8$1=__commonJS({"node_modules/@near-js/providers/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.fetchJson=v.Provider=v.JsonRpcProvider=v.exponentialBackoff=void 0;var k=require_exponential_backoff$2();Object.defineProperty(v,"exponentialBackoff",{enumerable:!0,get:function(){return k.exponentialBackoff}});var ie=require_json_rpc_provider$2();Object.defineProperty(v,"JsonRpcProvider",{enumerable:!0,get:function(){return ie.JsonRpcProvider}});var ae=require_provider3$1();Object.defineProperty(v,"Provider",{enumerable:!0,get:function(){return ae.Provider}});var ce=require_fetch_json$1();Object.defineProperty(v,"fetchJson",{enumerable:!0,get:function(){return ce.fetchJson}})}}),require_provider4$1=__commonJS({"node_modules/near-api-js/lib/providers/provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.FinalExecutionStatusBasic=v.ExecutionStatusBasic=v.IdType=v.Provider=v.getTransactionLastResult=void 0;var k=require_lib6$1();Object.defineProperty(v,"getTransactionLastResult",{enumerable:!0,get:function(){return k.getTransactionLastResult}});var ie=require_lib8$1();Object.defineProperty(v,"Provider",{enumerable:!0,get:function(){return ie.Provider}});var ae=require_lib2$1();Object.defineProperty(v,"IdType",{enumerable:!0,get:function(){return ae.IdType}}),Object.defineProperty(v,"ExecutionStatusBasic",{enumerable:!0,get:function(){return ae.ExecutionStatusBasic}}),Object.defineProperty(v,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return ae.FinalExecutionStatusBasic}})}}),require_json_rpc_provider2$1=__commonJS({"node_modules/near-api-js/lib/providers/json-rpc-provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.JsonRpcProvider=v.TypedError=v.ErrorContext=void 0;var k=require_lib2$1();Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return k.ErrorContext}}),Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return k.TypedError}});var ie=require_lib8$1();Object.defineProperty(v,"JsonRpcProvider",{enumerable:!0,get:function(){return ie.JsonRpcProvider}})}}),require_providers$2=__commonJS({"node_modules/near-api-js/lib/providers/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ErrorContext=v.TypedError=v.getTransactionLastResult=v.FinalExecutionStatusBasic=v.JsonRpcProvider=v.Provider=void 0;var k=require_provider4$1();Object.defineProperty(v,"Provider",{enumerable:!0,get:function(){return k.Provider}}),Object.defineProperty(v,"getTransactionLastResult",{enumerable:!0,get:function(){return k.getTransactionLastResult}}),Object.defineProperty(v,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return k.FinalExecutionStatusBasic}});var ie=require_json_rpc_provider2$1();Object.defineProperty(v,"JsonRpcProvider",{enumerable:!0,get:function(){return ie.JsonRpcProvider}}),Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return ie.TypedError}}),Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return ie.ErrorContext}})}}),require_key_pair2$1=__commonJS({"node_modules/near-api-js/lib/utils/key_pair.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.PublicKey=v.KeyType=v.KeyPairEd25519=v.KeyPair=void 0;var k=require_lib3$1();Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return k.KeyPair}}),Object.defineProperty(v,"KeyPairEd25519",{enumerable:!0,get:function(){return k.KeyPairEd25519}}),Object.defineProperty(v,"KeyType",{enumerable:!0,get:function(){return k.KeyType}}),Object.defineProperty(v,"PublicKey",{enumerable:!0,get:function(){return k.PublicKey}})}}),require_serialize$2=__commonJS({"node_modules/near-api-js/lib/utils/serialize.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.BinaryReader=v.BinaryWriter=v.BorshError=v.deserialize=v.serialize=v.base_decode=v.base_encode=void 0;var k=require_lib$1();Object.defineProperty(v,"base_encode",{enumerable:!0,get:function(){return k.baseEncode}}),Object.defineProperty(v,"base_decode",{enumerable:!0,get:function(){return k.baseDecode}}),Object.defineProperty(v,"serialize",{enumerable:!0,get:function(){return k.serialize}}),Object.defineProperty(v,"deserialize",{enumerable:!0,get:function(){return k.deserialize}}),Object.defineProperty(v,"BorshError",{enumerable:!0,get:function(){return k.BorshError}}),Object.defineProperty(v,"BinaryWriter",{enumerable:!0,get:function(){return k.BinaryWriter}}),Object.defineProperty(v,"BinaryReader",{enumerable:!0,get:function(){return k.BinaryReader}})}}),require_web$2=__commonJS({"node_modules/near-api-js/lib/utils/web.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.fetchJson=void 0;var k=require_lib8$1();Object.defineProperty(v,"fetchJson",{enumerable:!0,get:function(){return k.fetchJson}})}}),require_enums$2=__commonJS({"node_modules/near-api-js/lib/utils/enums.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Enum=v.Assignable=void 0;var k=require_lib2$1();Object.defineProperty(v,"Assignable",{enumerable:!0,get:function(){return k.Assignable}});var ie=class{constructor(ae){if(Object.keys(ae).length!==1)throw new Error("Enum can only take single value");Object.keys(ae).map(ce=>{this[ce]=ae[ce],this.enum=ce})}};v.Enum=ie}}),require_format2$1=__commonJS({"node_modules/near-api-js/lib/utils/format.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.parseNearAmount=v.formatNearAmount=v.NEAR_NOMINATION_EXP=v.NEAR_NOMINATION=void 0;var k=require_lib6$1();Object.defineProperty(v,"NEAR_NOMINATION",{enumerable:!0,get:function(){return k.NEAR_NOMINATION}}),Object.defineProperty(v,"NEAR_NOMINATION_EXP",{enumerable:!0,get:function(){return k.NEAR_NOMINATION_EXP}}),Object.defineProperty(v,"formatNearAmount",{enumerable:!0,get:function(){return k.formatNearAmount}}),Object.defineProperty(v,"parseNearAmount",{enumerable:!0,get:function(){return k.parseNearAmount}})}}),require_rpc_errors2$1=__commonJS({"node_modules/near-api-js/lib/utils/rpc_errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ServerError=v.getErrorTypeFromErrorMessage=v.formatError=v.parseResultError=v.parseRpcError=void 0;var k=require_lib6$1();Object.defineProperty(v,"parseRpcError",{enumerable:!0,get:function(){return k.parseRpcError}}),Object.defineProperty(v,"parseResultError",{enumerable:!0,get:function(){return k.parseResultError}}),Object.defineProperty(v,"formatError",{enumerable:!0,get:function(){return k.formatError}}),Object.defineProperty(v,"getErrorTypeFromErrorMessage",{enumerable:!0,get:function(){return k.getErrorTypeFromErrorMessage}}),Object.defineProperty(v,"ServerError",{enumerable:!0,get:function(){return k.ServerError}})}}),require_account$3=__commonJS({"node_modules/@near-js/accounts/lib/account.js"(v){var k=v&&v.__awaiter||function(Yt,fn,Xt,Qt){function Kr(be){return be instanceof Xt?be:new Xt(function(kr){kr(be)})}return new(Xt||(Xt=Promise))(function(be,kr){function xr(Xr){try{Jt(Qt.next(Xr))}catch(zr){kr(zr)}}function Wr(Xr){try{Jt(Qt.throw(Xr))}catch(zr){kr(zr)}}function Jt(Xr){Xr.done?be(Xr.value):Kr(Xr.value).then(xr,Wr)}Jt((Qt=Qt.apply(Yt,fn||[])).next())})},ie=v&&v.__importDefault||function(Yt){return Yt&&Yt.__esModule?Yt:{default:Yt}};Object.defineProperty(v,"__esModule",{value:!0}),v.Account=void 0;var ae=require_lib3$1(),ce=require_lib8$1(),fe=require_lib7$1(),le=require_lib2$1(),ve=require_lib6$1(),pe=ie(require_bn$2()),ye=require_lib$1(),{addKey:me,createAccount:Ee,deleteAccount:cr,deleteKey:Br,deployContract:$r,fullAccessKey:Pr,functionCall:Or,functionCallAccessKey:ur,stake:jr,transfer:Mr}=fe.actionCreators,Lr=12,Vr=500,Gr=1.5;function Ur(Yt){return JSON.parse(Buffer.from(Yt).toString())}function Qr(Yt){return Buffer.from(JSON.stringify(Yt))}var vn=class{constructor(Yt,fn){this.accessKeyByPublicKeyCache={},this.connection=Yt,this.accountId=fn}state(){return k(this,void 0,void 0,function*(){return this.connection.provider.query({request_type:"view_account",account_id:this.accountId,finality:"optimistic"})})}signTransaction(Yt,fn){return k(this,void 0,void 0,function*(){const Xt=yield this.findAccessKey(Yt,fn);if(!Xt)throw new le.TypedError(`Can not sign transactions for account ${this.accountId} on network ${this.connection.networkId}, no matching key pair exists for this account`,"KeyNotFound");const{accessKey:Qt}=Xt,be=(yield this.connection.provider.block({finality:"final"})).header.hash,kr=Qt.nonce.add(new pe.default(1));return yield(0,fe.signTransaction)(Yt,kr,fn,(0,ye.baseDecode)(be),this.connection.signer,this.accountId,this.connection.networkId)})}signAndSendTransaction({receiverId:Yt,actions:fn,returnError:Xt}){return k(this,void 0,void 0,function*(){let Qt,Kr;const be=yield(0,ce.exponentialBackoff)(Vr,Lr,Gr,()=>k(this,void 0,void 0,function*(){[Qt,Kr]=yield this.signTransaction(Yt,fn);const kr=Kr.transaction.publicKey;try{return yield this.connection.provider.sendTransaction(Kr)}catch(xr){if(xr.type==="InvalidNonce")return(0,ve.logWarning)(`Retrying transaction ${Yt}:${(0,ye.baseEncode)(Qt)} with new nonce.`),delete this.accessKeyByPublicKeyCache[kr.toString()],null;if(xr.type==="Expired")return(0,ve.logWarning)(`Retrying transaction ${Yt}:${(0,ye.baseEncode)(Qt)} due to expired block hash`),null;throw xr.context=new le.ErrorContext((0,ye.baseEncode)(Qt)),xr}}));if(!be)throw new le.TypedError("nonce retries exceeded for transaction. This usually means there are too many parallel requests with the same access key.","RetriesExceeded");if((0,ve.printTxOutcomeLogsAndFailures)({contractId:Kr.transaction.receiverId,outcome:be}),!Xt&&typeof be.status=="object"&&typeof be.status.Failure=="object"&&be.status.Failure!==null)throw be.status.Failure.error_message&&be.status.Failure.error_type?new le.TypedError(`Transaction ${be.transaction_outcome.id} failed. ${be.status.Failure.error_message}`,be.status.Failure.error_type):(0,ve.parseResultError)(be);return be})}findAccessKey(Yt,fn){return k(this,void 0,void 0,function*(){const Xt=yield this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);if(!Xt)throw new le.TypedError(`no matching key pair found in ${this.connection.signer}`,"PublicKeyNotFound");const Qt=this.accessKeyByPublicKeyCache[Xt.toString()];if(Qt!==void 0)return{publicKey:Xt,accessKey:Qt};try{const Kr=yield this.connection.provider.query({request_type:"view_access_key",account_id:this.accountId,public_key:Xt.toString(),finality:"optimistic"}),be=Object.assign(Object.assign({},Kr),{nonce:new pe.default(Kr.nonce)});return this.accessKeyByPublicKeyCache[Xt.toString()]?{publicKey:Xt,accessKey:this.accessKeyByPublicKeyCache[Xt.toString()]}:(this.accessKeyByPublicKeyCache[Xt.toString()]=be,{publicKey:Xt,accessKey:be})}catch(Kr){if(Kr.type=="AccessKeyDoesNotExist")return null;throw Kr}})}createAndDeployContract(Yt,fn,Xt,Qt){return k(this,void 0,void 0,function*(){const Kr=Pr();return yield this.signAndSendTransaction({receiverId:Yt,actions:[Ee(),Mr(Qt),me(ae.PublicKey.from(fn),Kr),$r(Xt)]}),new vn(this.connection,Yt)})}sendMoney(Yt,fn){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:Yt,actions:[Mr(fn)]})})}createAccount(Yt,fn,Xt){return k(this,void 0,void 0,function*(){const Qt=Pr();return this.signAndSendTransaction({receiverId:Yt,actions:[Ee(),Mr(Xt),me(ae.PublicKey.from(fn),Qt)]})})}deleteAccount(Yt){return k(this,void 0,void 0,function*(){return process.env.NEAR_NO_LOGS||console.log("Deleting an account does not automatically transfer NFTs and FTs to the beneficiary address. Ensure to transfer assets before deleting."),this.signAndSendTransaction({receiverId:this.accountId,actions:[cr(Yt)]})})}deployContract(Yt){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:this.accountId,actions:[$r(Yt)]})})}encodeJSContractArgs(Yt,fn,Xt){return Buffer.concat([Buffer.from(Yt),Buffer.from([0]),Buffer.from(fn),Buffer.from([0]),Buffer.from(Xt)])}functionCall({contractId:Yt,methodName:fn,args:Xt={},gas:Qt=ve.DEFAULT_FUNCTION_CALL_GAS,attachedDeposit:Kr,walletMeta:be,walletCallbackUrl:kr,stringify:xr,jsContract:Wr}){return k(this,void 0,void 0,function*(){this.validateArgs(Xt);let Jt;if(Wr){const Xr=this.encodeJSContractArgs(Yt,fn,JSON.stringify(Xt));Jt=["call_js_contract",Xr,Qt,Kr,null,!0]}else{const Xr=xr===void 0?fe.stringifyJsonOrBytes:xr;Jt=[fn,Xt,Qt,Kr,Xr,!1]}return this.signAndSendTransaction({receiverId:Wr?this.connection.jsvmAccountId:Yt,actions:[Or.apply(void 0,Jt)],walletMeta:be,walletCallbackUrl:kr})})}addKey(Yt,fn,Xt,Qt){return k(this,void 0,void 0,function*(){Xt||(Xt=[]),Array.isArray(Xt)||(Xt=[Xt]);let Kr;return fn?Kr=ur(fn,Xt,Qt):Kr=Pr(),this.signAndSendTransaction({receiverId:this.accountId,actions:[me(ae.PublicKey.from(Yt),Kr)]})})}deleteKey(Yt){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:this.accountId,actions:[Br(ae.PublicKey.from(Yt))]})})}stake(Yt,fn){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:this.accountId,actions:[jr(fn,ae.PublicKey.from(Yt))]})})}signedDelegate({actions:Yt,blockHeightTtl:fn,receiverId:Xt}){return k(this,void 0,void 0,function*(){const{provider:Qt,signer:Kr}=this.connection,{header:be}=yield Qt.block({finality:"final"}),{accessKey:kr,publicKey:xr}=yield this.findAccessKey(null,null),Wr=(0,fe.buildDelegateAction)({actions:Yt,maxBlockHeight:new pe.default(be.height).add(new pe.default(fn)),nonce:new pe.default(kr.nonce).add(new pe.default(1)),publicKey:xr,receiverId:Xt,senderId:this.accountId}),{signedDelegateAction:Jt}=yield(0,fe.signDelegateAction)({delegateAction:Wr,signer:{sign:Xr=>k(this,void 0,void 0,function*(){const{signature:zr}=yield Kr.signMessage(Xr,Wr.senderId,this.connection.networkId);return zr})}});return Jt})}validateArgs(Yt){if(!(Yt.byteLength!==void 0&&Yt.byteLength===Yt.length)&&(Array.isArray(Yt)||typeof Yt!="object"))throw new le.PositionalArgsError}viewFunction({contractId:Yt,methodName:fn,args:Xt={},parse:Qt=Ur,stringify:Kr=Qr,jsContract:be=!1,blockQuery:kr={finality:"optimistic"}}){return k(this,void 0,void 0,function*(){let xr;this.validateArgs(Xt),be?xr=this.encodeJSContractArgs(Yt,fn,Object.keys(Xt).length>0?JSON.stringify(Xt):""):xr=Kr(Xt);const Wr=yield this.connection.provider.query(Object.assign(Object.assign({request_type:"call_function"},kr),{account_id:be?this.connection.jsvmAccountId:Yt,method_name:be?"view_js_contract":fn,args_base64:xr.toString("base64")}));return Wr.logs&&(0,ve.printTxOutcomeLogs)({contractId:Yt,logs:Wr.logs}),Wr.result&&Wr.result.length>0&&Qt(Buffer.from(Wr.result))})}viewState(Yt,fn={finality:"optimistic"}){return k(this,void 0,void 0,function*(){const{values:Xt}=yield this.connection.provider.query(Object.assign(Object.assign({request_type:"view_state"},fn),{account_id:this.accountId,prefix_base64:Buffer.from(Yt).toString("base64")}));return Xt.map(({key:Qt,value:Kr})=>({key:Buffer.from(Qt,"base64"),value:Buffer.from(Kr,"base64")}))})}getAccessKeys(){var Yt;return k(this,void 0,void 0,function*(){const fn=yield this.connection.provider.query({request_type:"view_access_key_list",account_id:this.accountId,finality:"optimistic"});return(Yt=fn==null?void 0:fn.keys)===null||Yt===void 0?void 0:Yt.map(Xt=>Object.assign(Object.assign({},Xt),{access_key:Object.assign(Object.assign({},Xt.access_key),{nonce:new pe.default(Xt.access_key.nonce)})}))})}getAccountDetails(){return k(this,void 0,void 0,function*(){return{authorizedApps:(yield this.getAccessKeys()).filter(Xt=>Xt.access_key.permission!=="FullAccess").map(Xt=>{const Qt=Xt.access_key.permission;return{contractId:Qt.FunctionCall.receiver_id,amount:Qt.FunctionCall.allowance,publicKey:Xt.public_key}})}})}getAccountBalance(){return k(this,void 0,void 0,function*(){const Yt=yield this.connection.provider.experimental_protocolConfig({finality:"final"}),fn=yield this.state(),Xt=new pe.default(Yt.runtime_config.storage_amount_per_byte),Qt=new pe.default(fn.storage_usage).mul(Xt),Kr=new pe.default(fn.locked),be=new pe.default(fn.amount).add(Kr),kr=be.sub(pe.default.max(Kr,Qt));return{total:be.toString(),stateStaked:Qt.toString(),staked:Kr.toString(),available:kr.toString()}})}getActiveDelegatedStakeBalance(){return k(this,void 0,void 0,function*(){const Yt=yield this.connection.provider.block({finality:"final"}),fn=Yt.header.hash,Xt=Yt.header.epoch_id,{current_validators:Qt,next_validators:Kr,current_proposals:be}=yield this.connection.provider.validators(Xt),kr=new Set;[...Qt,...Kr,...be].forEach(Jr=>kr.add(Jr.account_id));const xr=[...kr],Wr=xr.map(Jr=>this.viewFunction({contractId:Jr,methodName:"get_account_total_balance",args:{account_id:this.accountId},blockQuery:{blockId:fn}})),Jt=yield Promise.allSettled(Wr);if(Jt.some(Jr=>Jr.status==="rejected"&&Jr.reason.type==="TimeoutError"))throw new Error("Failed to get delegated stake balance");const zr=Jt.reduce((Jr,Nr,Hr)=>{const On=xr[Hr];if(Nr.status==="fulfilled"){const Gn=new pe.default(Nr.value);if(!Gn.isZero())return Object.assign(Object.assign({},Jr),{stakedValidators:[...Jr.stakedValidators,{validatorId:On,amount:Gn.toString()}],total:Jr.total.add(Gn)})}return Nr.status==="rejected"?Object.assign(Object.assign({},Jr),{failedValidators:[...Jr.failedValidators,{validatorId:On,error:Nr.reason}]}):Jr},{stakedValidators:[],failedValidators:[],total:new pe.default(0)});return Object.assign(Object.assign({},zr),{total:zr.total.toString()})})}};v.Account=vn}}),require_constants3$2=__commonJS({"node_modules/@near-js/accounts/lib/constants.js"(v){var k=v&&v.__importDefault||function(ce){return ce&&ce.__esModule?ce:{default:ce}};Object.defineProperty(v,"__esModule",{value:!0}),v.MULTISIG_CONFIRM_METHODS=v.MULTISIG_CHANGE_METHODS=v.MULTISIG_DEPOSIT=v.MULTISIG_GAS=v.MULTISIG_ALLOWANCE=v.MULTISIG_STORAGE_KEY=void 0;var ie=require_lib6$1(),ae=k(require_bn$2());v.MULTISIG_STORAGE_KEY="__multisigRequest",v.MULTISIG_ALLOWANCE=new ae.default((0,ie.parseNearAmount)("1")),v.MULTISIG_GAS=new ae.default("100000000000000"),v.MULTISIG_DEPOSIT=new ae.default("0"),v.MULTISIG_CHANGE_METHODS=["add_request","add_request_and_confirm","delete_request","confirm"],v.MULTISIG_CONFIRM_METHODS=["confirm"]}}),require_types$5=__commonJS({"node_modules/@near-js/accounts/lib/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MultisigStateStatus=v.MultisigDeleteRequestRejectionError=void 0,function(k){k.CANNOT_DESERIALIZE_STATE="Cannot deserialize the contract state",k.MULTISIG_NOT_INITIALIZED="Smart contract panicked: Multisig contract should be initialized before usage",k.NO_SUCH_REQUEST="Smart contract panicked: panicked at 'No such request: either wrong number or already confirmed'",k.REQUEST_COOLDOWN_ERROR="Request cannot be deleted immediately after creation.",k.METHOD_NOT_FOUND="Contract method is not found"}(v.MultisigDeleteRequestRejectionError||(v.MultisigDeleteRequestRejectionError={})),function(k){k[k.INVALID_STATE=0]="INVALID_STATE",k[k.STATE_NOT_INITIALIZED=1]="STATE_NOT_INITIALIZED",k[k.VALID_STATE=2]="VALID_STATE",k[k.UNKNOWN_STATE=3]="UNKNOWN_STATE"}(v.MultisigStateStatus||(v.MultisigStateStatus={}))}}),require_account_multisig$2=__commonJS({"node_modules/@near-js/accounts/lib/account_multisig.js"(v){var k=v&&v.__awaiter||function(Br,$r,Pr,Or){function ur(jr){return jr instanceof Pr?jr:new Pr(function(Mr){Mr(jr)})}return new(Pr||(Pr=Promise))(function(jr,Mr){function Lr(Ur){try{Gr(Or.next(Ur))}catch(Qr){Mr(Qr)}}function Vr(Ur){try{Gr(Or.throw(Ur))}catch(Qr){Mr(Qr)}}function Gr(Ur){Ur.done?jr(Ur.value):ur(Ur.value).then(Lr,Vr)}Gr((Or=Or.apply(Br,$r||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.AccountMultisig=void 0;var ie=require_lib7$1(),ae=require_account$3(),ce=require_constants3$2(),fe=require_types$5(),{deployContract:le,functionCall:ve}=ie.actionCreators,pe;(function(Br){Br[Br.INVALID_CODE=0]="INVALID_CODE",Br[Br.VALID_CODE=1]="VALID_CODE",Br[Br.UNKNOWN_CODE=2]="UNKNOWN_CODE"})(pe||(pe={}));var ye={[ce.MULTISIG_STORAGE_KEY]:null},me=class extends ae.Account{constructor(Br,$r,Pr){super(Br,$r),this.storage=Pr.storage,this.onAddRequestResult=Pr.onAddRequestResult}signAndSendTransactionWithAccount(Br,$r){const Pr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){return Pr.signAndSendTransaction.call(this,{receiverId:Br,actions:$r})})}signAndSendTransaction({receiverId:Br,actions:$r}){const Pr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const{accountId:Or}=this,ur=Buffer.from(JSON.stringify({request:{receiver_id:Br,actions:cr($r,Or,Br)}}));let jr;try{jr=yield Pr.signAndSendTransaction.call(this,{receiverId:Or,actions:[ve("add_request_and_confirm",ur,ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]})}catch(Lr){if(Lr.toString().includes("Account has too many active requests. Confirm or delete some"))return yield this.deleteUnconfirmedRequests(),yield this.signAndSendTransaction({receiverId:Br,actions:$r});throw Lr}if(!jr.status)throw new Error("Request failed");const Mr=Object.assign({},jr.status);if(!Mr.SuccessValue||typeof Mr.SuccessValue!="string")throw new Error("Request failed");return this.setRequest({accountId:Or,actions:$r,requestId:parseInt(Buffer.from(Mr.SuccessValue,"base64").toString("ascii"),10)}),this.onAddRequestResult&&(yield this.onAddRequestResult(jr)),this.deleteUnconfirmedRequests(),jr})}checkMultisigCodeAndStateStatus(Br){const $r=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const Or=Br?pe.UNKNOWN_CODE:pe.VALID_CODE;try{return Br?yield $r.signAndSendTransaction.call(this,{receiverId:this.accountId,actions:[le(Br),ve("delete_request",{request_id:4294967295},ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]}):yield this.deleteRequest(4294967295),{codeStatus:pe.VALID_CODE,stateStatus:fe.MultisigStateStatus.VALID_STATE}}catch(ur){if(new RegExp(fe.MultisigDeleteRequestRejectionError.CANNOT_DESERIALIZE_STATE).test(ur&&ur.kind&&ur.kind.ExecutionError))return{codeStatus:Or,stateStatus:fe.MultisigStateStatus.INVALID_STATE};if(new RegExp(fe.MultisigDeleteRequestRejectionError.MULTISIG_NOT_INITIALIZED).test(ur&&ur.kind&&ur.kind.ExecutionError))return{codeStatus:Or,stateStatus:fe.MultisigStateStatus.STATE_NOT_INITIALIZED};if(new RegExp(fe.MultisigDeleteRequestRejectionError.NO_SUCH_REQUEST).test(ur&&ur.kind&&ur.kind.ExecutionError))return{codeStatus:Or,stateStatus:fe.MultisigStateStatus.VALID_STATE};if(new RegExp(fe.MultisigDeleteRequestRejectionError.METHOD_NOT_FOUND).test(ur&&ur.message))return{codeStatus:pe.INVALID_CODE,stateStatus:fe.MultisigStateStatus.UNKNOWN_STATE};throw ur}})}deleteRequest(Br){return super.signAndSendTransaction({receiverId:this.accountId,actions:[ve("delete_request",{request_id:Br},ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]})}deleteAllRequests(){return k(this,void 0,void 0,function*(){const Br=yield this.getRequestIds();Br.length&&(yield Promise.all(Br.map($r=>this.deleteRequest($r))))})}deleteUnconfirmedRequests(){const Br=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const $r=yield this.getRequestIds(),{requestId:Pr}=this.getRequest();for(const Or of $r)if(Or!=Pr)try{yield Br.signAndSendTransaction.call(this,{receiverId:this.accountId,actions:[ve("delete_request",{request_id:Or},ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]})}catch{console.warn("Attempt to delete an earlier request before 15 minutes failed. Will try again.")}})}getRequestIds(){return k(this,void 0,void 0,function*(){return this.viewFunction({contractId:this.accountId,methodName:"list_request_ids"})})}getRequest(){return this.storage?JSON.parse(this.storage.getItem(ce.MULTISIG_STORAGE_KEY)||"{}"):ye[ce.MULTISIG_STORAGE_KEY]}setRequest(Br){if(this.storage)return this.storage.setItem(ce.MULTISIG_STORAGE_KEY,JSON.stringify(Br));ye[ce.MULTISIG_STORAGE_KEY]=Br}};v.AccountMultisig=me;var Ee=Br=>Br.toString().replace("ed25519:",""),cr=(Br,$r,Pr)=>Br.map(Or=>{const ur=Or.enum,{gas:jr,publicKey:Mr,methodName:Lr,args:Vr,deposit:Gr,accessKey:Ur,code:Qr}=Or[ur],vn={type:ur[0].toUpperCase()+ur.substr(1),gas:jr&&jr.toString()||void 0,public_key:Mr&&Ee(Mr)||void 0,method_name:Lr,args:Vr&&Buffer.from(Vr).toString("base64")||void 0,code:Qr&&Buffer.from(Qr).toString("base64")||void 0,amount:Gr&&Gr.toString()||void 0,deposit:Gr&&Gr.toString()||"0",permission:void 0};if(Ur&&(Pr===$r&&Ur.permission.enum!=="fullAccess"&&(vn.permission={receiver_id:$r,allowance:ce.MULTISIG_ALLOWANCE.toString(),method_names:ce.MULTISIG_CHANGE_METHODS}),Ur.permission.enum==="functionCall")){const{receiverId:Yt,methodNames:fn,allowance:Xt}=Ur.permission.functionCall;vn.permission={receiver_id:Yt,allowance:Xt&&Xt.toString()||void 0,method_names:fn}}return vn})}}),require_account_2fa$1=__commonJS({"node_modules/@near-js/accounts/lib/account_2fa.js"(v){var k=v&&v.__awaiter||function(Mr,Lr,Vr,Gr){function Ur(Qr){return Qr instanceof Vr?Qr:new Vr(function(vn){vn(Qr)})}return new(Vr||(Vr=Promise))(function(Qr,vn){function Yt(Qt){try{Xt(Gr.next(Qt))}catch(Kr){vn(Kr)}}function fn(Qt){try{Xt(Gr.throw(Qt))}catch(Kr){vn(Kr)}}function Xt(Qt){Qt.done?Qr(Qt.value):Ur(Qt.value).then(Yt,fn)}Xt((Gr=Gr.apply(Mr,Lr||[])).next())})},ie=v&&v.__importDefault||function(Mr){return Mr&&Mr.__esModule?Mr:{default:Mr}};Object.defineProperty(v,"__esModule",{value:!0}),v.Account2FA=void 0;var ae=require_lib3$1(),ce=require_lib2$1(),fe=require_lib8$1(),le=require_lib7$1(),ve=ie(require_bn$2()),pe=require_account_multisig$2(),ye=require_constants3$2(),me=require_types$5(),{addKey:Ee,deleteKey:cr,deployContract:Br,fullAccessKey:$r,functionCall:Pr,functionCallAccessKey:Or}=le.actionCreators,ur=class extends pe.AccountMultisig{constructor(Mr,Lr,Vr){super(Mr,Lr,Vr),this.helperUrl="https://helper.testnet.near.org",this.helperUrl=Vr.helperUrl||this.helperUrl,this.storage=Vr.storage,this.sendCode=Vr.sendCode||this.sendCodeDefault,this.getCode=Vr.getCode||this.getCodeDefault,this.verifyCode=Vr.verifyCode||this.verifyCodeDefault,this.onConfirmResult=Vr.onConfirmResult}signAndSendTransaction({receiverId:Mr,actions:Lr}){const Vr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){yield Vr.signAndSendTransaction.call(this,{receiverId:Mr,actions:Lr}),yield this.sendCode();const Gr=yield this.promptAndVerify();return this.onConfirmResult&&(yield this.onConfirmResult(Gr)),Gr})}deployMultisig(Mr){const Lr=Object.create(null,{signAndSendTransactionWithAccount:{get:()=>super.signAndSendTransactionWithAccount}});return k(this,void 0,void 0,function*(){const{accountId:Vr}=this,Gr=(yield this.getRecoveryMethods()).data.filter(({kind:Qt,publicKey:Kr})=>(Qt==="phrase"||Qt==="ledger")&&Kr!==null).map(Qt=>Qt.publicKey),Ur=(yield this.getAccessKeys()).filter(({public_key:Qt,access_key:{permission:Kr}})=>Kr==="FullAccess"&&!Gr.includes(Qt)).map(Qt=>Qt.public_key).map(jr),Qr=jr((yield this.postSignedJson("/2fa/getAccessKey",{accountId:Vr})).publicKey),vn=Buffer.from(JSON.stringify({num_confirmations:2})),Yt=[...Ur.map(Qt=>cr(Qt)),...Ur.map(Qt=>Ee(Qt,Or(Vr,ye.MULTISIG_CHANGE_METHODS,null))),Ee(Qr,Or(Vr,ye.MULTISIG_CONFIRM_METHODS,null)),Br(Mr)],fn=Yt.concat(Pr("new",vn,ye.MULTISIG_GAS,ye.MULTISIG_DEPOSIT));console.log("deploying multisig contract for",Vr);const{stateStatus:Xt}=yield this.checkMultisigCodeAndStateStatus(Mr);switch(Xt){case me.MultisigStateStatus.STATE_NOT_INITIALIZED:return yield Lr.signAndSendTransactionWithAccount.call(this,Vr,fn);case me.MultisigStateStatus.VALID_STATE:return yield Lr.signAndSendTransactionWithAccount.call(this,Vr,Yt);case me.MultisigStateStatus.INVALID_STATE:throw new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account has existing state.`,"ContractHasExistingState");default:throw new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account state could not be verified.`,"ContractStateUnknown")}})}disableWithFAK({contractBytes:Mr,cleanupContractBytes:Lr}){return k(this,void 0,void 0,function*(){let Vr=[];Lr&&(yield this.deleteAllRequests().catch(vn=>vn),Vr=yield this.get2faDisableCleanupActions(Lr));const Gr=yield this.get2faDisableKeyConversionActions(),Ur=[...Vr,...Gr,Br(Mr)],Qr=yield this.findAccessKey(this.accountId,Ur);if(Qr&&Qr.accessKey&&Qr.accessKey.permission!=="FullAccess")throw new ce.TypedError("No full access key found in keystore. Unable to bypass multisig","NoFAKFound");return this.signAndSendTransactionWithAccount(this.accountId,Ur)})}get2faDisableCleanupActions(Mr){return k(this,void 0,void 0,function*(){const Lr=yield this.viewState("").catch(Gr=>{const Ur=Gr.cause&&Gr.cause.name;if(Ur=="NO_CONTRACT_CODE")return[];throw Ur=="TOO_LARGE_CONTRACT_STATE"?new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account has existing state.`,"ContractHasExistingState"):Gr}),Vr=Lr.map(({key:Gr})=>Gr.toString("base64"));return Lr.length?[Br(Mr),Pr("clean",{keys:Vr},ye.MULTISIG_GAS,new ve.default("0"))]:[]})}get2faDisableKeyConversionActions(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this,Vr=(yield this.getAccessKeys()).filter(({access_key:Ur})=>Ur.permission!=="FullAccess").filter(({access_key:Ur})=>{const Qr=Ur.permission.FunctionCall;return Qr.receiver_id===Mr&&Qr.method_names.length===4&&Qr.method_names.includes("add_request_and_confirm")}),Gr=ae.PublicKey.from((yield this.postSignedJson("/2fa/getAccessKey",{accountId:Mr})).publicKey);return[cr(Gr),...Vr.map(({public_key:Ur})=>cr(ae.PublicKey.from(Ur))),...Vr.map(({public_key:Ur})=>Ee(ae.PublicKey.from(Ur),$r()))]})}disable(Mr,Lr){return k(this,void 0,void 0,function*(){const{stateStatus:Vr}=yield this.checkMultisigCodeAndStateStatus();if(Vr!==me.MultisigStateStatus.VALID_STATE&&Vr!==me.MultisigStateStatus.STATE_NOT_INITIALIZED)throw new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account state could not be verified.`,"ContractStateUnknown");let Gr;yield this.deleteAllRequests().catch(vn=>Gr=vn);const Qr=[...yield this.get2faDisableCleanupActions(Lr).catch(vn=>{throw vn.type==="ContractHasExistingState"&&Gr||vn}),...yield this.get2faDisableKeyConversionActions(),Br(Mr)];return console.log("disabling 2fa for",this.accountId),yield this.signAndSendTransaction({receiverId:this.accountId,actions:Qr})})}sendCodeDefault(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this,{requestId:Lr}=this.getRequest(),Vr=yield this.get2faMethod();return yield this.postSignedJson("/2fa/send",{accountId:Mr,method:Vr,requestId:Lr}),Lr})}getCodeDefault(){return k(this,void 0,void 0,function*(){throw new Error('There is no getCode callback provided. Please provide your own in AccountMultisig constructor options. It has a parameter method where method.kind is "email" or "phone".')})}promptAndVerify(){return k(this,void 0,void 0,function*(){const Mr=yield this.get2faMethod(),Lr=yield this.getCode(Mr);try{return yield this.verifyCode(Lr)}catch(Vr){if(console.warn("Error validating security code:",Vr),Vr.toString().includes("invalid 2fa code provided")||Vr.toString().includes("2fa code not valid"))return yield this.promptAndVerify();throw Vr}})}verifyCodeDefault(Mr){return k(this,void 0,void 0,function*(){const{accountId:Lr}=this,Vr=this.getRequest();if(!Vr)throw new Error("no request pending");const{requestId:Gr}=Vr;return yield this.postSignedJson("/2fa/verify",{accountId:Lr,securityCode:Mr,requestId:Gr})})}getRecoveryMethods(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this;return{accountId:Mr,data:yield this.postSignedJson("/account/recoveryMethods",{accountId:Mr})}})}get2faMethod(){return k(this,void 0,void 0,function*(){let{data:Mr}=yield this.getRecoveryMethods();if(Mr&&Mr.length&&(Mr=Mr.find(Gr=>Gr.kind.indexOf("2fa-")===0)),!Mr)return null;const{kind:Lr,detail:Vr}=Mr;return{kind:Lr,detail:Vr}})}signatureFor(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this,Vr=(yield this.connection.provider.block({finality:"final"})).header.height.toString(),Gr=yield this.connection.signer.signMessage(Buffer.from(Vr),Mr,this.connection.networkId),Ur=Buffer.from(Gr.signature).toString("base64");return{blockNumber:Vr,blockNumberSignature:Ur}})}postSignedJson(Mr,Lr){return k(this,void 0,void 0,function*(){return yield(0,fe.fetchJson)(this.helperUrl+Mr,JSON.stringify(Object.assign(Object.assign({},Lr),yield this.signatureFor())))})}};v.Account2FA=ur;var jr=Mr=>ae.PublicKey.from(Mr)}}),require_account_creator$2=__commonJS({"node_modules/@near-js/accounts/lib/account_creator.js"(v){var k=v&&v.__awaiter||function(le,ve,pe,ye){function me(Ee){return Ee instanceof pe?Ee:new pe(function(cr){cr(Ee)})}return new(pe||(pe=Promise))(function(Ee,cr){function Br(Or){try{Pr(ye.next(Or))}catch(ur){cr(ur)}}function $r(Or){try{Pr(ye.throw(Or))}catch(ur){cr(ur)}}function Pr(Or){Or.done?Ee(Or.value):me(Or.value).then(Br,$r)}Pr((ye=ye.apply(le,ve||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.UrlAccountCreator=v.LocalAccountCreator=v.AccountCreator=void 0;var ie=require_lib8$1(),ae=class{};v.AccountCreator=ae;var ce=class extends ae{constructor(le,ve){super(),this.masterAccount=le,this.initialBalance=ve}createAccount(le,ve){return k(this,void 0,void 0,function*(){yield this.masterAccount.createAccount(le,ve,this.initialBalance)})}};v.LocalAccountCreator=ce;var fe=class extends ae{constructor(le,ve){super(),this.connection=le,this.helperUrl=ve}createAccount(le,ve){return k(this,void 0,void 0,function*(){yield(0,ie.fetchJson)(`${this.helperUrl}/account`,JSON.stringify({newAccountId:le,newAccountPublicKey:ve.toString()}))})}};v.UrlAccountCreator=fe}}),require_signer$2=__commonJS({"node_modules/@near-js/signers/lib/signer.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signer=void 0;var k=class{};v.Signer=k}}),require_in_memory_signer$1=__commonJS({"node_modules/@near-js/signers/lib/in_memory_signer.js"(v){var k=v&&v.__awaiter||function(pe,ye,me,Ee){function cr(Br){return Br instanceof me?Br:new me(function($r){$r(Br)})}return new(me||(me=Promise))(function(Br,$r){function Pr(jr){try{ur(Ee.next(jr))}catch(Mr){$r(Mr)}}function Or(jr){try{ur(Ee.throw(jr))}catch(Mr){$r(Mr)}}function ur(jr){jr.done?Br(jr.value):cr(jr.value).then(Pr,Or)}ur((Ee=Ee.apply(pe,ye||[])).next())})},ie=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.InMemorySigner=void 0;var ae=require_lib3$1(),ce=require_lib4$2(),fe=ie(require_sha256$3()),le=require_signer$2(),ve=class extends le.Signer{constructor(pe){super(),this.keyStore=pe}static fromKeyPair(pe,ye,me){return k(this,void 0,void 0,function*(){const Ee=new ce.InMemoryKeyStore;return yield Ee.setKey(pe,ye,me),new ve(Ee)})}createKey(pe,ye){return k(this,void 0,void 0,function*(){const me=ae.KeyPair.fromRandom("ed25519");return yield this.keyStore.setKey(ye,pe,me),me.getPublicKey()})}getPublicKey(pe,ye){return k(this,void 0,void 0,function*(){const me=yield this.keyStore.getKey(ye,pe);return me===null?null:me.getPublicKey()})}signMessage(pe,ye,me){return k(this,void 0,void 0,function*(){const Ee=new Uint8Array(fe.default.sha256.array(pe));if(!ye)throw new Error("InMemorySigner requires provided account id");const cr=yield this.keyStore.getKey(me,ye);if(cr===null)throw new Error(`Key for ${ye} not found in ${me}`);return cr.sign(Ee)})}toString(){return`InMemorySigner(${this.keyStore})`}};v.InMemorySigner=ve}}),require_lib9$1=__commonJS({"node_modules/@near-js/signers/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signer=v.InMemorySigner=void 0;var k=require_in_memory_signer$1();Object.defineProperty(v,"InMemorySigner",{enumerable:!0,get:function(){return k.InMemorySigner}});var ie=require_signer$2();Object.defineProperty(v,"Signer",{enumerable:!0,get:function(){return ie.Signer}})}}),require_connection$2=__commonJS({"node_modules/@near-js/accounts/lib/connection.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Connection=void 0;var k=require_lib9$1(),ie=require_lib8$1();function ae(le){switch(le.type){case void 0:return le;case"JsonRpcProvider":return new ie.JsonRpcProvider(Object.assign({},le.args));default:throw new Error(`Unknown provider type ${le.type}`)}}function ce(le){switch(le.type){case void 0:return le;case"InMemorySigner":return new k.InMemorySigner(le.keyStore);default:throw new Error(`Unknown signer type ${le.type}`)}}var fe=class{constructor(le,ve,pe,ye){this.networkId=le,this.provider=ve,this.signer=pe,this.jsvmAccountId=ye}static fromConfig(le){const ve=ae(le.provider),pe=ce(le.signer);return new fe(le.networkId,ve,pe,le.jsvmAccountId)}};v.Connection=fe}}),require_code$1=__commonJS({"node_modules/ajv/dist/compile/codegen/code.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.regexpCode=v.getEsmExportName=v.getProperty=v.safeStringify=v.stringify=v.strConcat=v.addCodeArg=v.str=v._=v.nil=v._Code=v.Name=v.IDENTIFIER=v._CodeOrName=void 0;var k=class{};v._CodeOrName=k,v.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ie=class extends k{constructor(ur){if(super(),!v.IDENTIFIER.test(ur))throw new Error("CodeGen: name must be a valid identifier");this.str=ur}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};v.Name=ie;var ae=class extends k{constructor(ur){super(),this._items=typeof ur=="string"?[ur]:ur}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const ur=this._items[0];return ur===""||ur==='""'}get str(){var ur;return(ur=this._str)!==null&&ur!==void 0?ur:this._str=this._items.reduce((jr,Mr)=>`${jr}${Mr}`,"")}get names(){var ur;return(ur=this._names)!==null&&ur!==void 0?ur:this._names=this._items.reduce((jr,Mr)=>(Mr instanceof ie&&(jr[Mr.str]=(jr[Mr.str]||0)+1),jr),{})}};v._Code=ae,v.nil=new ae("");function ce(ur,...jr){const Mr=[ur[0]];let Lr=0;for(;Lr{if(me.scopePath===void 0)throw new Error(`CodeGen: name "${me}" has no value`);return(0,k._)`${pe}${me.scopePath}`})}scopeCode(pe=this._values,ye,me){return this._reduceValues(pe,Ee=>{if(Ee.value===void 0)throw new Error(`CodeGen: name "${Ee}" has no value`);return Ee.value.code},ye,me)}_reduceValues(pe,ye,me={},Ee){let cr=k.nil;for(const Br in pe){const $r=pe[Br];if(!$r)continue;const Pr=me[Br]=me[Br]||new Map;$r.forEach(Or=>{if(Pr.has(Or))return;Pr.set(Or,ae.Started);let ur=ye(Or);if(ur){const jr=this.opts.es5?v.varKinds.var:v.varKinds.const;cr=(0,k._)`${cr}${jr} ${Or} = ${ur};${this.opts._n}`}else if(ur=Ee==null?void 0:Ee(Or))cr=(0,k._)`${cr}${ur}${this.opts._n}`;else throw new ie(Or);Pr.set(Or,ae.Completed)})}return cr}};v.ValueScope=ve}}),require_codegen$1=__commonJS({"node_modules/ajv/dist/compile/codegen/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.or=v.and=v.not=v.CodeGen=v.operators=v.varKinds=v.ValueScopeName=v.ValueScope=v.Scope=v.Name=v.regexpCode=v.stringify=v.getProperty=v.nil=v.strConcat=v.str=v._=void 0;var k=require_code$1(),ie=require_scope$1(),ae=require_code$1();Object.defineProperty(v,"_",{enumerable:!0,get:function(){return ae._}}),Object.defineProperty(v,"str",{enumerable:!0,get:function(){return ae.str}}),Object.defineProperty(v,"strConcat",{enumerable:!0,get:function(){return ae.strConcat}}),Object.defineProperty(v,"nil",{enumerable:!0,get:function(){return ae.nil}}),Object.defineProperty(v,"getProperty",{enumerable:!0,get:function(){return ae.getProperty}}),Object.defineProperty(v,"stringify",{enumerable:!0,get:function(){return ae.stringify}}),Object.defineProperty(v,"regexpCode",{enumerable:!0,get:function(){return ae.regexpCode}}),Object.defineProperty(v,"Name",{enumerable:!0,get:function(){return ae.Name}});var ce=require_scope$1();Object.defineProperty(v,"Scope",{enumerable:!0,get:function(){return ce.Scope}}),Object.defineProperty(v,"ValueScope",{enumerable:!0,get:function(){return ce.ValueScope}}),Object.defineProperty(v,"ValueScopeName",{enumerable:!0,get:function(){return ce.ValueScopeName}}),Object.defineProperty(v,"varKinds",{enumerable:!0,get:function(){return ce.varKinds}}),v.operators={GT:new k._Code(">"),GTE:new k._Code(">="),LT:new k._Code("<"),LTE:new k._Code("<="),EQ:new k._Code("==="),NEQ:new k._Code("!=="),NOT:new k._Code("!"),OR:new k._Code("||"),AND:new k._Code("&&"),ADD:new k._Code("+")};var fe=class{optimizeNodes(){return this}optimizeNames(Nr,Hr){return this}},le=class extends fe{constructor(Nr,Hr,On){super(),this.varKind=Nr,this.name=Hr,this.rhs=On}render({es5:Nr,_n:Hr}){const On=Nr?ie.varKinds.var:this.varKind,Gn=this.rhs===void 0?"":` = ${this.rhs}`;return`${On} ${this.name}${Gn};`+Hr}optimizeNames(Nr,Hr){if(!!Nr[this.name.str])return this.rhs&&(this.rhs=Kr(this.rhs,Nr,Hr)),this}get names(){return this.rhs instanceof k._CodeOrName?this.rhs.names:{}}},ve=class extends fe{constructor(Nr,Hr,On){super(),this.lhs=Nr,this.rhs=Hr,this.sideEffects=On}render({_n:Nr}){return`${this.lhs} = ${this.rhs};`+Nr}optimizeNames(Nr,Hr){if(!(this.lhs instanceof k.Name&&!Nr[this.lhs.str]&&!this.sideEffects))return this.rhs=Kr(this.rhs,Nr,Hr),this}get names(){const Nr=this.lhs instanceof k.Name?{}:{...this.lhs.names};return Qt(Nr,this.rhs)}},pe=class extends ve{constructor(Nr,Hr,On,Gn){super(Nr,On,Gn),this.op=Hr}render({_n:Nr}){return`${this.lhs} ${this.op}= ${this.rhs};`+Nr}},ye=class extends fe{constructor(Nr){super(),this.label=Nr,this.names={}}render({_n:Nr}){return`${this.label}:`+Nr}},me=class extends fe{constructor(Nr){super(),this.label=Nr,this.names={}}render({_n:Nr}){return`break${this.label?` ${this.label}`:""};`+Nr}},Ee=class extends fe{constructor(Nr){super(),this.error=Nr}render({_n:Nr}){return`throw ${this.error};`+Nr}get names(){return this.error.names}},cr=class extends fe{constructor(Nr){super(),this.code=Nr}render({_n:Nr}){return`${this.code};`+Nr}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(Nr,Hr){return this.code=Kr(this.code,Nr,Hr),this}get names(){return this.code instanceof k._CodeOrName?this.code.names:{}}},Br=class extends fe{constructor(Nr=[]){super(),this.nodes=Nr}render(Nr){return this.nodes.reduce((Hr,On)=>Hr+On.render(Nr),"")}optimizeNodes(){const{nodes:Nr}=this;let Hr=Nr.length;for(;Hr--;){const On=Nr[Hr].optimizeNodes();Array.isArray(On)?Nr.splice(Hr,1,...On):On?Nr[Hr]=On:Nr.splice(Hr,1)}return Nr.length>0?this:void 0}optimizeNames(Nr,Hr){const{nodes:On}=this;let Gn=On.length;for(;Gn--;){const mn=On[Gn];mn.optimizeNames(Nr,Hr)||(be(Nr,mn.names),On.splice(Gn,1))}return On.length>0?this:void 0}get names(){return this.nodes.reduce((Nr,Hr)=>Xt(Nr,Hr.names),{})}},$r=class extends Br{render(Nr){return"{"+Nr._n+super.render(Nr)+"}"+Nr._n}},Pr=class extends Br{},Or=class extends $r{};Or.kind="else";var ur=class extends $r{constructor(Nr,Hr){super(Hr),this.condition=Nr}render(Nr){let Hr=`if(${this.condition})`+super.render(Nr);return this.else&&(Hr+="else "+this.else.render(Nr)),Hr}optimizeNodes(){super.optimizeNodes();const Nr=this.condition;if(Nr===!0)return this.nodes;let Hr=this.else;if(Hr){const On=Hr.optimizeNodes();Hr=this.else=Array.isArray(On)?new Or(On):On}if(Hr)return Nr===!1?Hr instanceof ur?Hr:Hr.nodes:this.nodes.length?this:new ur(kr(Nr),Hr instanceof ur?[Hr]:Hr.nodes);if(!(Nr===!1||!this.nodes.length))return this}optimizeNames(Nr,Hr){var On;if(this.else=(On=this.else)===null||On===void 0?void 0:On.optimizeNames(Nr,Hr),!!(super.optimizeNames(Nr,Hr)||this.else))return this.condition=Kr(this.condition,Nr,Hr),this}get names(){const Nr=super.names;return Qt(Nr,this.condition),this.else&&Xt(Nr,this.else.names),Nr}};ur.kind="if";var jr=class extends $r{};jr.kind="for";var Mr=class extends jr{constructor(Nr){super(),this.iteration=Nr}render(Nr){return`for(${this.iteration})`+super.render(Nr)}optimizeNames(Nr,Hr){if(!!super.optimizeNames(Nr,Hr))return this.iteration=Kr(this.iteration,Nr,Hr),this}get names(){return Xt(super.names,this.iteration.names)}},Lr=class extends jr{constructor(Nr,Hr,On,Gn){super(),this.varKind=Nr,this.name=Hr,this.from=On,this.to=Gn}render(Nr){const Hr=Nr.es5?ie.varKinds.var:this.varKind,{name:On,from:Gn,to:mn}=this;return`for(${Hr} ${On}=${Gn}; ${On}<${mn}; ${On}++)`+super.render(Nr)}get names(){const Nr=Qt(super.names,this.from);return Qt(Nr,this.to)}},Vr=class extends jr{constructor(Nr,Hr,On,Gn){super(),this.loop=Nr,this.varKind=Hr,this.name=On,this.iterable=Gn}render(Nr){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(Nr)}optimizeNames(Nr,Hr){if(!!super.optimizeNames(Nr,Hr))return this.iterable=Kr(this.iterable,Nr,Hr),this}get names(){return Xt(super.names,this.iterable.names)}},Gr=class extends $r{constructor(Nr,Hr,On){super(),this.name=Nr,this.args=Hr,this.async=On}render(Nr){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(Nr)}};Gr.kind="func";var Ur=class extends Br{render(Nr){return"return "+super.render(Nr)}};Ur.kind="return";var Qr=class extends $r{render(Nr){let Hr="try"+super.render(Nr);return this.catch&&(Hr+=this.catch.render(Nr)),this.finally&&(Hr+=this.finally.render(Nr)),Hr}optimizeNodes(){var Nr,Hr;return super.optimizeNodes(),(Nr=this.catch)===null||Nr===void 0||Nr.optimizeNodes(),(Hr=this.finally)===null||Hr===void 0||Hr.optimizeNodes(),this}optimizeNames(Nr,Hr){var On,Gn;return super.optimizeNames(Nr,Hr),(On=this.catch)===null||On===void 0||On.optimizeNames(Nr,Hr),(Gn=this.finally)===null||Gn===void 0||Gn.optimizeNames(Nr,Hr),this}get names(){const Nr=super.names;return this.catch&&Xt(Nr,this.catch.names),this.finally&&Xt(Nr,this.finally.names),Nr}},vn=class extends $r{constructor(Nr){super(),this.error=Nr}render(Nr){return`catch(${this.error})`+super.render(Nr)}};vn.kind="catch";var Yt=class extends $r{render(Nr){return"finally"+super.render(Nr)}};Yt.kind="finally";var fn=class{constructor(Nr,Hr={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...Hr,_n:Hr.lines?` -`:""},this._extScope=Nr,this._scope=new ie.Scope({parent:Nr}),this._nodes=[new Pr]}toString(){return this._root.render(this.opts)}name(Nr){return this._scope.name(Nr)}scopeName(Nr){return this._extScope.name(Nr)}scopeValue(Nr,Hr){const On=this._extScope.value(Nr,Hr);return(this._values[On.prefix]||(this._values[On.prefix]=new Set)).add(On),On}getScopeValue(Nr,Hr){return this._extScope.getValue(Nr,Hr)}scopeRefs(Nr){return this._extScope.scopeRefs(Nr,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(Nr,Hr,On,Gn){const mn=this._scope.toName(Hr);return On!==void 0&&Gn&&(this._constants[mn.str]=On),this._leafNode(new le(Nr,mn,On)),mn}const(Nr,Hr,On){return this._def(ie.varKinds.const,Nr,Hr,On)}let(Nr,Hr,On){return this._def(ie.varKinds.let,Nr,Hr,On)}var(Nr,Hr,On){return this._def(ie.varKinds.var,Nr,Hr,On)}assign(Nr,Hr,On){return this._leafNode(new ve(Nr,Hr,On))}add(Nr,Hr){return this._leafNode(new pe(Nr,v.operators.ADD,Hr))}code(Nr){return typeof Nr=="function"?Nr():Nr!==k.nil&&this._leafNode(new cr(Nr)),this}object(...Nr){const Hr=["{"];for(const[On,Gn]of Nr)Hr.length>1&&Hr.push(","),Hr.push(On),(On!==Gn||this.opts.es5)&&(Hr.push(":"),(0,k.addCodeArg)(Hr,Gn));return Hr.push("}"),new k._Code(Hr)}if(Nr,Hr,On){if(this._blockNode(new ur(Nr)),Hr&&On)this.code(Hr).else().code(On).endIf();else if(Hr)this.code(Hr).endIf();else if(On)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(Nr){return this._elseNode(new ur(Nr))}else(){return this._elseNode(new Or)}endIf(){return this._endBlockNode(ur,Or)}_for(Nr,Hr){return this._blockNode(Nr),Hr&&this.code(Hr).endFor(),this}for(Nr,Hr){return this._for(new Mr(Nr),Hr)}forRange(Nr,Hr,On,Gn,mn=this.opts.es5?ie.varKinds.var:ie.varKinds.let){const Nn=this._scope.toName(Nr);return this._for(new Lr(mn,Nn,Hr,On),()=>Gn(Nn))}forOf(Nr,Hr,On,Gn=ie.varKinds.const){const mn=this._scope.toName(Nr);if(this.opts.es5){const Nn=Hr instanceof k.Name?Hr:this.var("_arr",Hr);return this.forRange("_i",0,(0,k._)`${Nn}.length`,In=>{this.var(mn,(0,k._)`${Nn}[${In}]`),On(mn)})}return this._for(new Vr("of",Gn,mn,Hr),()=>On(mn))}forIn(Nr,Hr,On,Gn=this.opts.es5?ie.varKinds.var:ie.varKinds.const){if(this.opts.ownProperties)return this.forOf(Nr,(0,k._)`Object.keys(${Hr})`,On);const mn=this._scope.toName(Nr);return this._for(new Vr("in",Gn,mn,Hr),()=>On(mn))}endFor(){return this._endBlockNode(jr)}label(Nr){return this._leafNode(new ye(Nr))}break(Nr){return this._leafNode(new me(Nr))}return(Nr){const Hr=new Ur;if(this._blockNode(Hr),this.code(Nr),Hr.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ur)}try(Nr,Hr,On){if(!Hr&&!On)throw new Error('CodeGen: "try" without "catch" and "finally"');const Gn=new Qr;if(this._blockNode(Gn),this.code(Nr),Hr){const mn=this.name("e");this._currNode=Gn.catch=new vn(mn),Hr(mn)}return On&&(this._currNode=Gn.finally=new Yt,this.code(On)),this._endBlockNode(vn,Yt)}throw(Nr){return this._leafNode(new Ee(Nr))}block(Nr,Hr){return this._blockStarts.push(this._nodes.length),Nr&&this.code(Nr).endBlock(Hr),this}endBlock(Nr){const Hr=this._blockStarts.pop();if(Hr===void 0)throw new Error("CodeGen: not in self-balancing block");const On=this._nodes.length-Hr;if(On<0||Nr!==void 0&&On!==Nr)throw new Error(`CodeGen: wrong number of nodes: ${On} vs ${Nr} expected`);return this._nodes.length=Hr,this}func(Nr,Hr=k.nil,On,Gn){return this._blockNode(new Gr(Nr,Hr,On)),Gn&&this.code(Gn).endFunc(),this}endFunc(){return this._endBlockNode(Gr)}optimize(Nr=1){for(;Nr-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(Nr){return this._currNode.nodes.push(Nr),this}_blockNode(Nr){this._currNode.nodes.push(Nr),this._nodes.push(Nr)}_endBlockNode(Nr,Hr){const On=this._currNode;if(On instanceof Nr||Hr&&On instanceof Hr)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${Hr?`${Nr.kind}/${Hr.kind}`:Nr.kind}"`)}_elseNode(Nr){const Hr=this._currNode;if(!(Hr instanceof ur))throw new Error('CodeGen: "else" without "if"');return this._currNode=Hr.else=Nr,this}get _root(){return this._nodes[0]}get _currNode(){const Nr=this._nodes;return Nr[Nr.length-1]}set _currNode(Nr){const Hr=this._nodes;Hr[Hr.length-1]=Nr}};v.CodeGen=fn;function Xt(Nr,Hr){for(const On in Hr)Nr[On]=(Nr[On]||0)+(Hr[On]||0);return Nr}function Qt(Nr,Hr){return Hr instanceof k._CodeOrName?Xt(Nr,Hr.names):Nr}function Kr(Nr,Hr,On){if(Nr instanceof k.Name)return Gn(Nr);if(!mn(Nr))return Nr;return new k._Code(Nr._items.reduce((Nn,In)=>(In instanceof k.Name&&(In=Gn(In)),In instanceof k._Code?Nn.push(...In._items):Nn.push(In),Nn),[]));function Gn(Nn){const In=On[Nn.str];return In===void 0||Hr[Nn.str]!==1?Nn:(delete Hr[Nn.str],In)}function mn(Nn){return Nn instanceof k._Code&&Nn._items.some(In=>In instanceof k.Name&&Hr[In.str]===1&&On[In.str]!==void 0)}}function be(Nr,Hr){for(const On in Hr)Nr[On]=(Nr[On]||0)-(Hr[On]||0)}function kr(Nr){return typeof Nr=="boolean"||typeof Nr=="number"||Nr===null?!Nr:(0,k._)`!${Jr(Nr)}`}v.not=kr;var xr=zr(v.operators.AND);function Wr(...Nr){return Nr.reduce(xr)}v.and=Wr;var Jt=zr(v.operators.OR);function Xr(...Nr){return Nr.reduce(Jt)}v.or=Xr;function zr(Nr){return(Hr,On)=>Hr===k.nil?On:On===k.nil?Hr:(0,k._)`${Jr(Hr)} ${Nr} ${Jr(On)}`}function Jr(Nr){return Nr instanceof k.Name?Nr:(0,k._)`(${Nr})`}}}),require_util$2=__commonJS({"node_modules/ajv/dist/compile/util.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.checkStrictMode=v.getErrorPath=v.Type=v.useFunc=v.setEvaluated=v.evaluatedPropsToName=v.mergeEvaluated=v.eachItem=v.unescapeJsonPointer=v.escapeJsonPointer=v.escapeFragment=v.unescapeFragment=v.schemaRefOrVal=v.schemaHasRulesButRef=v.schemaHasRules=v.checkUnknownRules=v.alwaysValidSchema=v.toHash=void 0;var k=require_codegen$1(),ie=require_code$1();function ae(Gr){const Ur={};for(const Qr of Gr)Ur[Qr]=!0;return Ur}v.toHash=ae;function ce(Gr,Ur){return typeof Ur=="boolean"?Ur:Object.keys(Ur).length===0?!0:(fe(Gr,Ur),!le(Ur,Gr.self.RULES.all))}v.alwaysValidSchema=ce;function fe(Gr,Ur=Gr.schema){const{opts:Qr,self:vn}=Gr;if(!Qr.strictSchema||typeof Ur=="boolean")return;const Yt=vn.RULES.keywords;for(const fn in Ur)Yt[fn]||Vr(Gr,`unknown keyword: "${fn}"`)}v.checkUnknownRules=fe;function le(Gr,Ur){if(typeof Gr=="boolean")return!Gr;for(const Qr in Gr)if(Ur[Qr])return!0;return!1}v.schemaHasRules=le;function ve(Gr,Ur){if(typeof Gr=="boolean")return!Gr;for(const Qr in Gr)if(Qr!=="$ref"&&Ur.all[Qr])return!0;return!1}v.schemaHasRulesButRef=ve;function pe({topSchemaRef:Gr,schemaPath:Ur},Qr,vn,Yt){if(!Yt){if(typeof Qr=="number"||typeof Qr=="boolean")return Qr;if(typeof Qr=="string")return(0,k._)`${Qr}`}return(0,k._)`${Gr}${Ur}${(0,k.getProperty)(vn)}`}v.schemaRefOrVal=pe;function ye(Gr){return cr(decodeURIComponent(Gr))}v.unescapeFragment=ye;function me(Gr){return encodeURIComponent(Ee(Gr))}v.escapeFragment=me;function Ee(Gr){return typeof Gr=="number"?`${Gr}`:Gr.replace(/~/g,"~0").replace(/\//g,"~1")}v.escapeJsonPointer=Ee;function cr(Gr){return Gr.replace(/~1/g,"/").replace(/~0/g,"~")}v.unescapeJsonPointer=cr;function Br(Gr,Ur){if(Array.isArray(Gr))for(const Qr of Gr)Ur(Qr);else Ur(Gr)}v.eachItem=Br;function $r({mergeNames:Gr,mergeToName:Ur,mergeValues:Qr,resultToName:vn}){return(Yt,fn,Xt,Qt)=>{const Kr=Xt===void 0?fn:Xt instanceof k.Name?(fn instanceof k.Name?Gr(Yt,fn,Xt):Ur(Yt,fn,Xt),Xt):fn instanceof k.Name?(Ur(Yt,Xt,fn),fn):Qr(fn,Xt);return Qt===k.Name&&!(Kr instanceof k.Name)?vn(Yt,Kr):Kr}}v.mergeEvaluated={props:$r({mergeNames:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true && ${Ur} !== undefined`,()=>{Gr.if((0,k._)`${Ur} === true`,()=>Gr.assign(Qr,!0),()=>Gr.assign(Qr,(0,k._)`${Qr} || {}`).code((0,k._)`Object.assign(${Qr}, ${Ur})`))}),mergeToName:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true`,()=>{Ur===!0?Gr.assign(Qr,!0):(Gr.assign(Qr,(0,k._)`${Qr} || {}`),Or(Gr,Qr,Ur))}),mergeValues:(Gr,Ur)=>Gr===!0?!0:{...Gr,...Ur},resultToName:Pr}),items:$r({mergeNames:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true && ${Ur} !== undefined`,()=>Gr.assign(Qr,(0,k._)`${Ur} === true ? true : ${Qr} > ${Ur} ? ${Qr} : ${Ur}`)),mergeToName:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true`,()=>Gr.assign(Qr,Ur===!0?!0:(0,k._)`${Qr} > ${Ur} ? ${Qr} : ${Ur}`)),mergeValues:(Gr,Ur)=>Gr===!0?!0:Math.max(Gr,Ur),resultToName:(Gr,Ur)=>Gr.var("items",Ur)})};function Pr(Gr,Ur){if(Ur===!0)return Gr.var("props",!0);const Qr=Gr.var("props",(0,k._)`{}`);return Ur!==void 0&&Or(Gr,Qr,Ur),Qr}v.evaluatedPropsToName=Pr;function Or(Gr,Ur,Qr){Object.keys(Qr).forEach(vn=>Gr.assign((0,k._)`${Ur}${(0,k.getProperty)(vn)}`,!0))}v.setEvaluated=Or;var ur={};function jr(Gr,Ur){return Gr.scopeValue("func",{ref:Ur,code:ur[Ur.code]||(ur[Ur.code]=new ie._Code(Ur.code))})}v.useFunc=jr;var Mr;(function(Gr){Gr[Gr.Num=0]="Num",Gr[Gr.Str=1]="Str"})(Mr=v.Type||(v.Type={}));function Lr(Gr,Ur,Qr){if(Gr instanceof k.Name){const vn=Ur===Mr.Num;return Qr?vn?(0,k._)`"[" + ${Gr} + "]"`:(0,k._)`"['" + ${Gr} + "']"`:vn?(0,k._)`"/" + ${Gr}`:(0,k._)`"/" + ${Gr}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return Qr?(0,k.getProperty)(Gr).toString():"/"+Ee(Gr)}v.getErrorPath=Lr;function Vr(Gr,Ur,Qr=Gr.opts.strictSchema){if(!!Qr){if(Ur=`strict mode: ${Ur}`,Qr===!0)throw new Error(Ur);Gr.self.logger.warn(Ur)}}v.checkStrictMode=Vr}}),require_names$1=__commonJS({"node_modules/ajv/dist/compile/names.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie={data:new k.Name("data"),valCxt:new k.Name("valCxt"),instancePath:new k.Name("instancePath"),parentData:new k.Name("parentData"),parentDataProperty:new k.Name("parentDataProperty"),rootData:new k.Name("rootData"),dynamicAnchors:new k.Name("dynamicAnchors"),vErrors:new k.Name("vErrors"),errors:new k.Name("errors"),this:new k.Name("this"),self:new k.Name("self"),scope:new k.Name("scope"),json:new k.Name("json"),jsonPos:new k.Name("jsonPos"),jsonLen:new k.Name("jsonLen"),jsonPart:new k.Name("jsonPart")};v.default=ie}}),require_errors4$1=__commonJS({"node_modules/ajv/dist/compile/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.extendErrors=v.resetErrorsCount=v.reportExtraError=v.reportError=v.keyword$DataError=v.keywordError=void 0;var k=require_codegen$1(),ie=require_util$2(),ae=require_names$1();v.keywordError={message:({keyword:Or})=>(0,k.str)`must pass "${Or}" keyword validation`},v.keyword$DataError={message:({keyword:Or,schemaType:ur})=>ur?(0,k.str)`"${Or}" keyword must be ${ur} ($data)`:(0,k.str)`"${Or}" keyword is invalid ($data)`};function ce(Or,ur=v.keywordError,jr,Mr){const{it:Lr}=Or,{gen:Vr,compositeRule:Gr,allErrors:Ur}=Lr,Qr=Ee(Or,ur,jr);(Mr!=null?Mr:Gr||Ur)?pe(Vr,Qr):ye(Lr,(0,k._)`[${Qr}]`)}v.reportError=ce;function fe(Or,ur=v.keywordError,jr){const{it:Mr}=Or,{gen:Lr,compositeRule:Vr,allErrors:Gr}=Mr,Ur=Ee(Or,ur,jr);pe(Lr,Ur),Vr||Gr||ye(Mr,ae.default.vErrors)}v.reportExtraError=fe;function le(Or,ur){Or.assign(ae.default.errors,ur),Or.if((0,k._)`${ae.default.vErrors} !== null`,()=>Or.if(ur,()=>Or.assign((0,k._)`${ae.default.vErrors}.length`,ur),()=>Or.assign(ae.default.vErrors,null)))}v.resetErrorsCount=le;function ve({gen:Or,keyword:ur,schemaValue:jr,data:Mr,errsCount:Lr,it:Vr}){if(Lr===void 0)throw new Error("ajv implementation error");const Gr=Or.name("err");Or.forRange("i",Lr,ae.default.errors,Ur=>{Or.const(Gr,(0,k._)`${ae.default.vErrors}[${Ur}]`),Or.if((0,k._)`${Gr}.instancePath === undefined`,()=>Or.assign((0,k._)`${Gr}.instancePath`,(0,k.strConcat)(ae.default.instancePath,Vr.errorPath))),Or.assign((0,k._)`${Gr}.schemaPath`,(0,k.str)`${Vr.errSchemaPath}/${ur}`),Vr.opts.verbose&&(Or.assign((0,k._)`${Gr}.schema`,jr),Or.assign((0,k._)`${Gr}.data`,Mr))})}v.extendErrors=ve;function pe(Or,ur){const jr=Or.const("err",ur);Or.if((0,k._)`${ae.default.vErrors} === null`,()=>Or.assign(ae.default.vErrors,(0,k._)`[${jr}]`),(0,k._)`${ae.default.vErrors}.push(${jr})`),Or.code((0,k._)`${ae.default.errors}++`)}function ye(Or,ur){const{gen:jr,validateName:Mr,schemaEnv:Lr}=Or;Lr.$async?jr.throw((0,k._)`new ${Or.ValidationError}(${ur})`):(jr.assign((0,k._)`${Mr}.errors`,ur),jr.return(!1))}var me={keyword:new k.Name("keyword"),schemaPath:new k.Name("schemaPath"),params:new k.Name("params"),propertyName:new k.Name("propertyName"),message:new k.Name("message"),schema:new k.Name("schema"),parentSchema:new k.Name("parentSchema")};function Ee(Or,ur,jr){const{createErrors:Mr}=Or.it;return Mr===!1?(0,k._)`{}`:cr(Or,ur,jr)}function cr(Or,ur,jr={}){const{gen:Mr,it:Lr}=Or,Vr=[Br(Lr,jr),$r(Or,jr)];return Pr(Or,ur,Vr),Mr.object(...Vr)}function Br({errorPath:Or},{instancePath:ur}){const jr=ur?(0,k.str)`${Or}${(0,ie.getErrorPath)(ur,ie.Type.Str)}`:Or;return[ae.default.instancePath,(0,k.strConcat)(ae.default.instancePath,jr)]}function $r({keyword:Or,it:{errSchemaPath:ur}},{schemaPath:jr,parentSchema:Mr}){let Lr=Mr?ur:(0,k.str)`${ur}/${Or}`;return jr&&(Lr=(0,k.str)`${Lr}${(0,ie.getErrorPath)(jr,ie.Type.Str)}`),[me.schemaPath,Lr]}function Pr(Or,{params:ur,message:jr},Mr){const{keyword:Lr,data:Vr,schemaValue:Gr,it:Ur}=Or,{opts:Qr,propertyName:vn,topSchemaRef:Yt,schemaPath:fn}=Ur;Mr.push([me.keyword,Lr],[me.params,typeof ur=="function"?ur(Or):ur||(0,k._)`{}`]),Qr.messages&&Mr.push([me.message,typeof jr=="function"?jr(Or):jr]),Qr.verbose&&Mr.push([me.schema,Gr],[me.parentSchema,(0,k._)`${Yt}${fn}`],[ae.default.data,Vr]),vn&&Mr.push([me.propertyName,vn])}}}),require_boolSchema$1=__commonJS({"node_modules/ajv/dist/compile/validate/boolSchema.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.boolOrEmptySchema=v.topBoolOrEmptySchema=void 0;var k=require_errors4$1(),ie=require_codegen$1(),ae=require_names$1(),ce={message:"boolean schema is false"};function fe(pe){const{gen:ye,schema:me,validateName:Ee}=pe;me===!1?ve(pe,!1):typeof me=="object"&&me.$async===!0?ye.return(ae.default.data):(ye.assign((0,ie._)`${Ee}.errors`,null),ye.return(!0))}v.topBoolOrEmptySchema=fe;function le(pe,ye){const{gen:me,schema:Ee}=pe;Ee===!1?(me.var(ye,!1),ve(pe)):me.var(ye,!0)}v.boolOrEmptySchema=le;function ve(pe,ye){const{gen:me,data:Ee}=pe,cr={gen:me,keyword:"false schema",data:Ee,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:pe};(0,k.reportError)(cr,ce,void 0,ye)}}}),require_rules$1=__commonJS({"node_modules/ajv/dist/compile/rules.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getRules=v.isJSONType=void 0;var k=["string","number","integer","boolean","null","object","array"],ie=new Set(k);function ae(fe){return typeof fe=="string"&&ie.has(fe)}v.isJSONType=ae;function ce(){const fe={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...fe,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},fe.number,fe.string,fe.array,fe.object],post:{rules:[]},all:{},keywords:{}}}v.getRules=ce}}),require_applicability$1=__commonJS({"node_modules/ajv/dist/compile/validate/applicability.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.shouldUseRule=v.shouldUseGroup=v.schemaHasRulesForType=void 0;function k({schema:ce,self:fe},le){const ve=fe.RULES.types[le];return ve&&ve!==!0&&ie(ce,ve)}v.schemaHasRulesForType=k;function ie(ce,fe){return fe.rules.some(le=>ae(ce,le))}v.shouldUseGroup=ie;function ae(ce,fe){var le;return ce[fe.keyword]!==void 0||((le=fe.definition.implements)===null||le===void 0?void 0:le.some(ve=>ce[ve]!==void 0))}v.shouldUseRule=ae}}),require_dataType$1=__commonJS({"node_modules/ajv/dist/compile/validate/dataType.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.reportTypeError=v.checkDataTypes=v.checkDataType=v.coerceAndCheckDataType=v.getJSONTypes=v.getSchemaTypes=v.DataType=void 0;var k=require_rules$1(),ie=require_applicability$1(),ae=require_errors4$1(),ce=require_codegen$1(),fe=require_util$2(),le;(function(Mr){Mr[Mr.Correct=0]="Correct",Mr[Mr.Wrong=1]="Wrong"})(le=v.DataType||(v.DataType={}));function ve(Mr){const Lr=pe(Mr.type);if(Lr.includes("null")){if(Mr.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!Lr.length&&Mr.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');Mr.nullable===!0&&Lr.push("null")}return Lr}v.getSchemaTypes=ve;function pe(Mr){const Lr=Array.isArray(Mr)?Mr:Mr?[Mr]:[];if(Lr.every(k.isJSONType))return Lr;throw new Error("type must be JSONType or JSONType[]: "+Lr.join(","))}v.getJSONTypes=pe;function ye(Mr,Lr){const{gen:Vr,data:Gr,opts:Ur}=Mr,Qr=Ee(Lr,Ur.coerceTypes),vn=Lr.length>0&&!(Qr.length===0&&Lr.length===1&&(0,ie.schemaHasRulesForType)(Mr,Lr[0]));if(vn){const Yt=Pr(Lr,Gr,Ur.strictNumbers,le.Wrong);Vr.if(Yt,()=>{Qr.length?cr(Mr,Lr,Qr):ur(Mr)})}return vn}v.coerceAndCheckDataType=ye;var me=new Set(["string","number","integer","boolean","null"]);function Ee(Mr,Lr){return Lr?Mr.filter(Vr=>me.has(Vr)||Lr==="array"&&Vr==="array"):[]}function cr(Mr,Lr,Vr){const{gen:Gr,data:Ur,opts:Qr}=Mr,vn=Gr.let("dataType",(0,ce._)`typeof ${Ur}`),Yt=Gr.let("coerced",(0,ce._)`undefined`);Qr.coerceTypes==="array"&&Gr.if((0,ce._)`${vn} == 'object' && Array.isArray(${Ur}) && ${Ur}.length == 1`,()=>Gr.assign(Ur,(0,ce._)`${Ur}[0]`).assign(vn,(0,ce._)`typeof ${Ur}`).if(Pr(Lr,Ur,Qr.strictNumbers),()=>Gr.assign(Yt,Ur))),Gr.if((0,ce._)`${Yt} !== undefined`);for(const Xt of Vr)(me.has(Xt)||Xt==="array"&&Qr.coerceTypes==="array")&&fn(Xt);Gr.else(),ur(Mr),Gr.endIf(),Gr.if((0,ce._)`${Yt} !== undefined`,()=>{Gr.assign(Ur,Yt),Br(Mr,Yt)});function fn(Xt){switch(Xt){case"string":Gr.elseIf((0,ce._)`${vn} == "number" || ${vn} == "boolean"`).assign(Yt,(0,ce._)`"" + ${Ur}`).elseIf((0,ce._)`${Ur} === null`).assign(Yt,(0,ce._)`""`);return;case"number":Gr.elseIf((0,ce._)`${vn} == "boolean" || ${Ur} === null - || (${vn} == "string" && ${Ur} && ${Ur} == +${Ur})`).assign(Yt,(0,ce._)`+${Ur}`);return;case"integer":Gr.elseIf((0,ce._)`${vn} === "boolean" || ${Ur} === null - || (${vn} === "string" && ${Ur} && ${Ur} == +${Ur} && !(${Ur} % 1))`).assign(Yt,(0,ce._)`+${Ur}`);return;case"boolean":Gr.elseIf((0,ce._)`${Ur} === "false" || ${Ur} === 0 || ${Ur} === null`).assign(Yt,!1).elseIf((0,ce._)`${Ur} === "true" || ${Ur} === 1`).assign(Yt,!0);return;case"null":Gr.elseIf((0,ce._)`${Ur} === "" || ${Ur} === 0 || ${Ur} === false`),Gr.assign(Yt,null);return;case"array":Gr.elseIf((0,ce._)`${vn} === "string" || ${vn} === "number" - || ${vn} === "boolean" || ${Ur} === null`).assign(Yt,(0,ce._)`[${Ur}]`)}}}function Br({gen:Mr,parentData:Lr,parentDataProperty:Vr},Gr){Mr.if((0,ce._)`${Lr} !== undefined`,()=>Mr.assign((0,ce._)`${Lr}[${Vr}]`,Gr))}function $r(Mr,Lr,Vr,Gr=le.Correct){const Ur=Gr===le.Correct?ce.operators.EQ:ce.operators.NEQ;let Qr;switch(Mr){case"null":return(0,ce._)`${Lr} ${Ur} null`;case"array":Qr=(0,ce._)`Array.isArray(${Lr})`;break;case"object":Qr=(0,ce._)`${Lr} && typeof ${Lr} == "object" && !Array.isArray(${Lr})`;break;case"integer":Qr=vn((0,ce._)`!(${Lr} % 1) && !isNaN(${Lr})`);break;case"number":Qr=vn();break;default:return(0,ce._)`typeof ${Lr} ${Ur} ${Mr}`}return Gr===le.Correct?Qr:(0,ce.not)(Qr);function vn(Yt=ce.nil){return(0,ce.and)((0,ce._)`typeof ${Lr} == "number"`,Yt,Vr?(0,ce._)`isFinite(${Lr})`:ce.nil)}}v.checkDataType=$r;function Pr(Mr,Lr,Vr,Gr){if(Mr.length===1)return $r(Mr[0],Lr,Vr,Gr);let Ur;const Qr=(0,fe.toHash)(Mr);if(Qr.array&&Qr.object){const vn=(0,ce._)`typeof ${Lr} != "object"`;Ur=Qr.null?vn:(0,ce._)`!${Lr} || ${vn}`,delete Qr.null,delete Qr.array,delete Qr.object}else Ur=ce.nil;Qr.number&&delete Qr.integer;for(const vn in Qr)Ur=(0,ce.and)(Ur,$r(vn,Lr,Vr,Gr));return Ur}v.checkDataTypes=Pr;var Or={message:({schema:Mr})=>`must be ${Mr}`,params:({schema:Mr,schemaValue:Lr})=>typeof Mr=="string"?(0,ce._)`{type: ${Mr}}`:(0,ce._)`{type: ${Lr}}`};function ur(Mr){const Lr=jr(Mr);(0,ae.reportError)(Lr,Or)}v.reportTypeError=ur;function jr(Mr){const{gen:Lr,data:Vr,schema:Gr}=Mr,Ur=(0,fe.schemaRefOrVal)(Mr,Gr,"type");return{gen:Lr,keyword:"type",data:Vr,schema:Gr.type,schemaCode:Ur,schemaValue:Ur,parentSchema:Gr,params:{},it:Mr}}}}),require_defaults$1=__commonJS({"node_modules/ajv/dist/compile/validate/defaults.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.assignDefaults=void 0;var k=require_codegen$1(),ie=require_util$2();function ae(fe,le){const{properties:ve,items:pe}=fe.schema;if(le==="object"&&ve)for(const ye in ve)ce(fe,ye,ve[ye].default);else le==="array"&&Array.isArray(pe)&&pe.forEach((ye,me)=>ce(fe,me,ye.default))}v.assignDefaults=ae;function ce(fe,le,ve){const{gen:pe,compositeRule:ye,data:me,opts:Ee}=fe;if(ve===void 0)return;const cr=(0,k._)`${me}${(0,k.getProperty)(le)}`;if(ye){(0,ie.checkStrictMode)(fe,`default is ignored for: ${cr}`);return}let Br=(0,k._)`${cr} === undefined`;Ee.useDefaults==="empty"&&(Br=(0,k._)`${Br} || ${cr} === null || ${cr} === ""`),pe.if(Br,(0,k._)`${cr} = ${(0,k.stringify)(ve)}`)}}}),require_code2$1=__commonJS({"node_modules/ajv/dist/vocabularies/code.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateUnion=v.validateArray=v.usePattern=v.callValidateCode=v.schemaProperties=v.allSchemaProperties=v.noPropertyInData=v.propertyInData=v.isOwnProperty=v.hasPropFunc=v.reportMissingProp=v.checkMissingProp=v.checkReportMissingProp=void 0;var k=require_codegen$1(),ie=require_util$2(),ae=require_names$1(),ce=require_util$2();function fe(Mr,Lr){const{gen:Vr,data:Gr,it:Ur}=Mr;Vr.if(Ee(Vr,Gr,Lr,Ur.opts.ownProperties),()=>{Mr.setParams({missingProperty:(0,k._)`${Lr}`},!0),Mr.error()})}v.checkReportMissingProp=fe;function le({gen:Mr,data:Lr,it:{opts:Vr}},Gr,Ur){return(0,k.or)(...Gr.map(Qr=>(0,k.and)(Ee(Mr,Lr,Qr,Vr.ownProperties),(0,k._)`${Ur} = ${Qr}`)))}v.checkMissingProp=le;function ve(Mr,Lr){Mr.setParams({missingProperty:Lr},!0),Mr.error()}v.reportMissingProp=ve;function pe(Mr){return Mr.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,k._)`Object.prototype.hasOwnProperty`})}v.hasPropFunc=pe;function ye(Mr,Lr,Vr){return(0,k._)`${pe(Mr)}.call(${Lr}, ${Vr})`}v.isOwnProperty=ye;function me(Mr,Lr,Vr,Gr){const Ur=(0,k._)`${Lr}${(0,k.getProperty)(Vr)} !== undefined`;return Gr?(0,k._)`${Ur} && ${ye(Mr,Lr,Vr)}`:Ur}v.propertyInData=me;function Ee(Mr,Lr,Vr,Gr){const Ur=(0,k._)`${Lr}${(0,k.getProperty)(Vr)} === undefined`;return Gr?(0,k.or)(Ur,(0,k.not)(ye(Mr,Lr,Vr))):Ur}v.noPropertyInData=Ee;function cr(Mr){return Mr?Object.keys(Mr).filter(Lr=>Lr!=="__proto__"):[]}v.allSchemaProperties=cr;function Br(Mr,Lr){return cr(Lr).filter(Vr=>!(0,ie.alwaysValidSchema)(Mr,Lr[Vr]))}v.schemaProperties=Br;function $r({schemaCode:Mr,data:Lr,it:{gen:Vr,topSchemaRef:Gr,schemaPath:Ur,errorPath:Qr},it:vn},Yt,fn,Xt){const Qt=Xt?(0,k._)`${Mr}, ${Lr}, ${Gr}${Ur}`:Lr,Kr=[[ae.default.instancePath,(0,k.strConcat)(ae.default.instancePath,Qr)],[ae.default.parentData,vn.parentData],[ae.default.parentDataProperty,vn.parentDataProperty],[ae.default.rootData,ae.default.rootData]];vn.opts.dynamicRef&&Kr.push([ae.default.dynamicAnchors,ae.default.dynamicAnchors]);const be=(0,k._)`${Qt}, ${Vr.object(...Kr)}`;return fn!==k.nil?(0,k._)`${Yt}.call(${fn}, ${be})`:(0,k._)`${Yt}(${be})`}v.callValidateCode=$r;var Pr=(0,k._)`new RegExp`;function Or({gen:Mr,it:{opts:Lr}},Vr){const Gr=Lr.unicodeRegExp?"u":"",{regExp:Ur}=Lr.code,Qr=Ur(Vr,Gr);return Mr.scopeValue("pattern",{key:Qr.toString(),ref:Qr,code:(0,k._)`${Ur.code==="new RegExp"?Pr:(0,ce.useFunc)(Mr,Ur)}(${Vr}, ${Gr})`})}v.usePattern=Or;function ur(Mr){const{gen:Lr,data:Vr,keyword:Gr,it:Ur}=Mr,Qr=Lr.name("valid");if(Ur.allErrors){const Yt=Lr.let("valid",!0);return vn(()=>Lr.assign(Yt,!1)),Yt}return Lr.var(Qr,!0),vn(()=>Lr.break()),Qr;function vn(Yt){const fn=Lr.const("len",(0,k._)`${Vr}.length`);Lr.forRange("i",0,fn,Xt=>{Mr.subschema({keyword:Gr,dataProp:Xt,dataPropType:ie.Type.Num},Qr),Lr.if((0,k.not)(Qr),Yt)})}}v.validateArray=ur;function jr(Mr){const{gen:Lr,schema:Vr,keyword:Gr,it:Ur}=Mr;if(!Array.isArray(Vr))throw new Error("ajv implementation error");if(Vr.some(fn=>(0,ie.alwaysValidSchema)(Ur,fn))&&!Ur.opts.unevaluated)return;const vn=Lr.let("valid",!1),Yt=Lr.name("_valid");Lr.block(()=>Vr.forEach((fn,Xt)=>{const Qt=Mr.subschema({keyword:Gr,schemaProp:Xt,compositeRule:!0},Yt);Lr.assign(vn,(0,k._)`${vn} || ${Yt}`),Mr.mergeValidEvaluated(Qt,Yt)||Lr.if((0,k.not)(vn))})),Mr.result(vn,()=>Mr.reset(),()=>Mr.error(!0))}v.validateUnion=jr}}),require_keyword$1=__commonJS({"node_modules/ajv/dist/compile/validate/keyword.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateKeywordUsage=v.validSchemaType=v.funcKeywordCode=v.macroKeywordCode=void 0;var k=require_codegen$1(),ie=require_names$1(),ae=require_code2$1(),ce=require_errors4$1();function fe(Br,$r){const{gen:Pr,keyword:Or,schema:ur,parentSchema:jr,it:Mr}=Br,Lr=$r.macro.call(Mr.self,ur,jr,Mr),Vr=me(Pr,Or,Lr);Mr.opts.validateSchema!==!1&&Mr.self.validateSchema(Lr,!0);const Gr=Pr.name("valid");Br.subschema({schema:Lr,schemaPath:k.nil,errSchemaPath:`${Mr.errSchemaPath}/${Or}`,topSchemaRef:Vr,compositeRule:!0},Gr),Br.pass(Gr,()=>Br.error(!0))}v.macroKeywordCode=fe;function le(Br,$r){var Pr;const{gen:Or,keyword:ur,schema:jr,parentSchema:Mr,$data:Lr,it:Vr}=Br;ye(Vr,$r);const Gr=!Lr&&$r.compile?$r.compile.call(Vr.self,jr,Mr,Vr):$r.validate,Ur=me(Or,ur,Gr),Qr=Or.let("valid");Br.block$data(Qr,vn),Br.ok((Pr=$r.valid)!==null&&Pr!==void 0?Pr:Qr);function vn(){if($r.errors===!1)Xt(),$r.modifying&&ve(Br),Qt(()=>Br.error());else{const Kr=$r.async?Yt():fn();$r.modifying&&ve(Br),Qt(()=>pe(Br,Kr))}}function Yt(){const Kr=Or.let("ruleErrs",null);return Or.try(()=>Xt((0,k._)`await `),be=>Or.assign(Qr,!1).if((0,k._)`${be} instanceof ${Vr.ValidationError}`,()=>Or.assign(Kr,(0,k._)`${be}.errors`),()=>Or.throw(be))),Kr}function fn(){const Kr=(0,k._)`${Ur}.errors`;return Or.assign(Kr,null),Xt(k.nil),Kr}function Xt(Kr=$r.async?(0,k._)`await `:k.nil){const be=Vr.opts.passContext?ie.default.this:ie.default.self,kr=!("compile"in $r&&!Lr||$r.schema===!1);Or.assign(Qr,(0,k._)`${Kr}${(0,ae.callValidateCode)(Br,Ur,be,kr)}`,$r.modifying)}function Qt(Kr){var be;Or.if((0,k.not)((be=$r.valid)!==null&&be!==void 0?be:Qr),Kr)}}v.funcKeywordCode=le;function ve(Br){const{gen:$r,data:Pr,it:Or}=Br;$r.if(Or.parentData,()=>$r.assign(Pr,(0,k._)`${Or.parentData}[${Or.parentDataProperty}]`))}function pe(Br,$r){const{gen:Pr}=Br;Pr.if((0,k._)`Array.isArray(${$r})`,()=>{Pr.assign(ie.default.vErrors,(0,k._)`${ie.default.vErrors} === null ? ${$r} : ${ie.default.vErrors}.concat(${$r})`).assign(ie.default.errors,(0,k._)`${ie.default.vErrors}.length`),(0,ce.extendErrors)(Br)},()=>Br.error())}function ye({schemaEnv:Br},$r){if($r.async&&!Br.$async)throw new Error("async keyword in sync schema")}function me(Br,$r,Pr){if(Pr===void 0)throw new Error(`keyword "${$r}" failed to compile`);return Br.scopeValue("keyword",typeof Pr=="function"?{ref:Pr}:{ref:Pr,code:(0,k.stringify)(Pr)})}function Ee(Br,$r,Pr=!1){return!$r.length||$r.some(Or=>Or==="array"?Array.isArray(Br):Or==="object"?Br&&typeof Br=="object"&&!Array.isArray(Br):typeof Br==Or||Pr&&typeof Br>"u")}v.validSchemaType=Ee;function cr({schema:Br,opts:$r,self:Pr,errSchemaPath:Or},ur,jr){if(Array.isArray(ur.keyword)?!ur.keyword.includes(jr):ur.keyword!==jr)throw new Error("ajv implementation error");const Mr=ur.dependencies;if(Mr!=null&&Mr.some(Lr=>!Object.prototype.hasOwnProperty.call(Br,Lr)))throw new Error(`parent schema must have dependencies of ${jr}: ${Mr.join(",")}`);if(ur.validateSchema&&!ur.validateSchema(Br[jr])){const Vr=`keyword "${jr}" value is invalid at path "${Or}": `+Pr.errorsText(ur.validateSchema.errors);if($r.validateSchema==="log")Pr.logger.error(Vr);else throw new Error(Vr)}}v.validateKeywordUsage=cr}}),require_subschema$1=__commonJS({"node_modules/ajv/dist/compile/validate/subschema.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.extendSubschemaMode=v.extendSubschemaData=v.getSubschema=void 0;var k=require_codegen$1(),ie=require_util$2();function ae(le,{keyword:ve,schemaProp:pe,schema:ye,schemaPath:me,errSchemaPath:Ee,topSchemaRef:cr}){if(ve!==void 0&&ye!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(ve!==void 0){const Br=le.schema[ve];return pe===void 0?{schema:Br,schemaPath:(0,k._)`${le.schemaPath}${(0,k.getProperty)(ve)}`,errSchemaPath:`${le.errSchemaPath}/${ve}`}:{schema:Br[pe],schemaPath:(0,k._)`${le.schemaPath}${(0,k.getProperty)(ve)}${(0,k.getProperty)(pe)}`,errSchemaPath:`${le.errSchemaPath}/${ve}/${(0,ie.escapeFragment)(pe)}`}}if(ye!==void 0){if(me===void 0||Ee===void 0||cr===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:ye,schemaPath:me,topSchemaRef:cr,errSchemaPath:Ee}}throw new Error('either "keyword" or "schema" must be passed')}v.getSubschema=ae;function ce(le,ve,{dataProp:pe,dataPropType:ye,data:me,dataTypes:Ee,propertyName:cr}){if(me!==void 0&&pe!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:Br}=ve;if(pe!==void 0){const{errorPath:Pr,dataPathArr:Or,opts:ur}=ve,jr=Br.let("data",(0,k._)`${ve.data}${(0,k.getProperty)(pe)}`,!0);$r(jr),le.errorPath=(0,k.str)`${Pr}${(0,ie.getErrorPath)(pe,ye,ur.jsPropertySyntax)}`,le.parentDataProperty=(0,k._)`${pe}`,le.dataPathArr=[...Or,le.parentDataProperty]}if(me!==void 0){const Pr=me instanceof k.Name?me:Br.let("data",me,!0);$r(Pr),cr!==void 0&&(le.propertyName=cr)}Ee&&(le.dataTypes=Ee);function $r(Pr){le.data=Pr,le.dataLevel=ve.dataLevel+1,le.dataTypes=[],ve.definedProperties=new Set,le.parentData=ve.data,le.dataNames=[...ve.dataNames,Pr]}}v.extendSubschemaData=ce;function fe(le,{jtdDiscriminator:ve,jtdMetadata:pe,compositeRule:ye,createErrors:me,allErrors:Ee}){ye!==void 0&&(le.compositeRule=ye),me!==void 0&&(le.createErrors=me),Ee!==void 0&&(le.allErrors=Ee),le.jtdDiscriminator=ve,le.jtdMetadata=pe}v.extendSubschemaMode=fe}}),require_fast_deep_equal$1=__commonJS({"node_modules/fast-deep-equal/index.js"(v,k){k.exports=function ie(ae,ce){if(ae===ce)return!0;if(ae&&ce&&typeof ae=="object"&&typeof ce=="object"){if(ae.constructor!==ce.constructor)return!1;var fe,le,ve;if(Array.isArray(ae)){if(fe=ae.length,fe!=ce.length)return!1;for(le=fe;le--!==0;)if(!ie(ae[le],ce[le]))return!1;return!0}if(ae.constructor===RegExp)return ae.source===ce.source&&ae.flags===ce.flags;if(ae.valueOf!==Object.prototype.valueOf)return ae.valueOf()===ce.valueOf();if(ae.toString!==Object.prototype.toString)return ae.toString()===ce.toString();if(ve=Object.keys(ae),fe=ve.length,fe!==Object.keys(ce).length)return!1;for(le=fe;le--!==0;)if(!Object.prototype.hasOwnProperty.call(ce,ve[le]))return!1;for(le=fe;le--!==0;){var pe=ve[le];if(!ie(ae[pe],ce[pe]))return!1}return!0}return ae!==ae&&ce!==ce}}}),require_json_schema_traverse$1=__commonJS({"node_modules/json-schema-traverse/index.js"(v,k){var ie=k.exports=function(fe,le,ve){typeof le=="function"&&(ve=le,le={}),ve=le.cb||ve;var pe=typeof ve=="function"?ve:ve.pre||function(){},ye=ve.post||function(){};ae(le,pe,ye,fe,"",fe)};ie.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},ie.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},ie.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},ie.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ae(fe,le,ve,pe,ye,me,Ee,cr,Br,$r){if(pe&&typeof pe=="object"&&!Array.isArray(pe)){le(pe,ye,me,Ee,cr,Br,$r);for(var Pr in pe){var Or=pe[Pr];if(Array.isArray(Or)){if(Pr in ie.arrayKeywords)for(var ur=0;urur+=pe(Mr)),ur===1/0))return 1/0}return ur}function ye(Or,ur="",jr){jr!==!1&&(ur=cr(ur));const Mr=Or.parse(ur);return me(Or,Mr)}v.getFullPath=ye;function me(Or,ur){return Or.serialize(ur).split("#")[0]+"#"}v._getFullPath=me;var Ee=/#\/?$/;function cr(Or){return Or?Or.replace(Ee,""):""}v.normalizeId=cr;function Br(Or,ur,jr){return jr=cr(jr),Or.resolve(ur,jr)}v.resolveUrl=Br;var $r=/^[a-z_][-a-z0-9._]*$/i;function Pr(Or,ur){if(typeof Or=="boolean")return{};const{schemaId:jr,uriResolver:Mr}=this.opts,Lr=cr(Or[jr]||ur),Vr={"":Lr},Gr=ye(Mr,Lr,!1),Ur={},Qr=new Set;return ae(Or,{allKeys:!0},(fn,Xt,Qt,Kr)=>{if(Kr===void 0)return;const be=Gr+Xt;let kr=Vr[Kr];typeof fn[jr]=="string"&&(kr=xr.call(this,fn[jr])),Wr.call(this,fn.$anchor),Wr.call(this,fn.$dynamicAnchor),Vr[Xt]=kr;function xr(Jt){const Xr=this.opts.uriResolver.resolve;if(Jt=cr(kr?Xr(kr,Jt):Jt),Qr.has(Jt))throw Yt(Jt);Qr.add(Jt);let zr=this.refs[Jt];return typeof zr=="string"&&(zr=this.refs[zr]),typeof zr=="object"?vn(fn,zr.schema,Jt):Jt!==cr(be)&&(Jt[0]==="#"?(vn(fn,Ur[Jt],Jt),Ur[Jt]=fn):this.refs[Jt]=be),Jt}function Wr(Jt){if(typeof Jt=="string"){if(!$r.test(Jt))throw new Error(`invalid anchor "${Jt}"`);xr.call(this,`#${Jt}`)}}}),Ur;function vn(fn,Xt,Qt){if(Xt!==void 0&&!ie(fn,Xt))throw Yt(Qt)}function Yt(fn){return new Error(`reference "${fn}" resolves to more than one schema`)}}v.getSchemaRefs=Pr}}),require_validate$1=__commonJS({"node_modules/ajv/dist/compile/validate/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getData=v.KeywordCxt=v.validateFunctionCode=void 0;var k=require_boolSchema$1(),ie=require_dataType$1(),ae=require_applicability$1(),ce=require_dataType$1(),fe=require_defaults$1(),le=require_keyword$1(),ve=require_subschema$1(),pe=require_codegen$1(),ye=require_names$1(),me=require_resolve$1(),Ee=require_util$2(),cr=require_errors4$1();function Br(hn){if(Gr(hn)&&(Qr(hn),Vr(hn))){ur(hn);return}$r(hn,()=>(0,k.topBoolOrEmptySchema)(hn))}v.validateFunctionCode=Br;function $r({gen:hn,validateName:pn,schema:Sn,schemaEnv:Qn,opts:Jn},ui){Jn.code.es5?hn.func(pn,(0,pe._)`${ye.default.data}, ${ye.default.valCxt}`,Qn.$async,()=>{hn.code((0,pe._)`"use strict"; ${Mr(Sn,Jn)}`),Or(hn,Jn),hn.code(ui)}):hn.func(pn,(0,pe._)`${ye.default.data}, ${Pr(Jn)}`,Qn.$async,()=>hn.code(Mr(Sn,Jn)).code(ui))}function Pr(hn){return(0,pe._)`{${ye.default.instancePath}="", ${ye.default.parentData}, ${ye.default.parentDataProperty}, ${ye.default.rootData}=${ye.default.data}${hn.dynamicRef?(0,pe._)`, ${ye.default.dynamicAnchors}={}`:pe.nil}}={}`}function Or(hn,pn){hn.if(ye.default.valCxt,()=>{hn.var(ye.default.instancePath,(0,pe._)`${ye.default.valCxt}.${ye.default.instancePath}`),hn.var(ye.default.parentData,(0,pe._)`${ye.default.valCxt}.${ye.default.parentData}`),hn.var(ye.default.parentDataProperty,(0,pe._)`${ye.default.valCxt}.${ye.default.parentDataProperty}`),hn.var(ye.default.rootData,(0,pe._)`${ye.default.valCxt}.${ye.default.rootData}`),pn.dynamicRef&&hn.var(ye.default.dynamicAnchors,(0,pe._)`${ye.default.valCxt}.${ye.default.dynamicAnchors}`)},()=>{hn.var(ye.default.instancePath,(0,pe._)`""`),hn.var(ye.default.parentData,(0,pe._)`undefined`),hn.var(ye.default.parentDataProperty,(0,pe._)`undefined`),hn.var(ye.default.rootData,ye.default.data),pn.dynamicRef&&hn.var(ye.default.dynamicAnchors,(0,pe._)`{}`)})}function ur(hn){const{schema:pn,opts:Sn,gen:Qn}=hn;$r(hn,()=>{Sn.$comment&&pn.$comment&&Kr(hn),fn(hn),Qn.let(ye.default.vErrors,null),Qn.let(ye.default.errors,0),Sn.unevaluated&&jr(hn),vn(hn),be(hn)})}function jr(hn){const{gen:pn,validateName:Sn}=hn;hn.evaluated=pn.const("evaluated",(0,pe._)`${Sn}.evaluated`),pn.if((0,pe._)`${hn.evaluated}.dynamicProps`,()=>pn.assign((0,pe._)`${hn.evaluated}.props`,(0,pe._)`undefined`)),pn.if((0,pe._)`${hn.evaluated}.dynamicItems`,()=>pn.assign((0,pe._)`${hn.evaluated}.items`,(0,pe._)`undefined`))}function Mr(hn,pn){const Sn=typeof hn=="object"&&hn[pn.schemaId];return Sn&&(pn.code.source||pn.code.process)?(0,pe._)`/*# sourceURL=${Sn} */`:pe.nil}function Lr(hn,pn){if(Gr(hn)&&(Qr(hn),Vr(hn))){Ur(hn,pn);return}(0,k.boolOrEmptySchema)(hn,pn)}function Vr({schema:hn,self:pn}){if(typeof hn=="boolean")return!hn;for(const Sn in hn)if(pn.RULES.all[Sn])return!0;return!1}function Gr(hn){return typeof hn.schema!="boolean"}function Ur(hn,pn){const{schema:Sn,gen:Qn,opts:Jn}=hn;Jn.$comment&&Sn.$comment&&Kr(hn),Xt(hn),Qt(hn);const ui=Qn.const("_errs",ye.default.errors);vn(hn,ui),Qn.var(pn,(0,pe._)`${ui} === ${ye.default.errors}`)}function Qr(hn){(0,Ee.checkUnknownRules)(hn),Yt(hn)}function vn(hn,pn){if(hn.opts.jtd)return xr(hn,[],!1,pn);const Sn=(0,ie.getSchemaTypes)(hn.schema),Qn=(0,ie.coerceAndCheckDataType)(hn,Sn);xr(hn,Sn,!Qn,pn)}function Yt(hn){const{schema:pn,errSchemaPath:Sn,opts:Qn,self:Jn}=hn;pn.$ref&&Qn.ignoreKeywordsWithRef&&(0,Ee.schemaHasRulesButRef)(pn,Jn.RULES)&&Jn.logger.warn(`$ref: keywords ignored in schema at path "${Sn}"`)}function fn(hn){const{schema:pn,opts:Sn}=hn;pn.default!==void 0&&Sn.useDefaults&&Sn.strictSchema&&(0,Ee.checkStrictMode)(hn,"default is ignored in the schema root")}function Xt(hn){const pn=hn.schema[hn.opts.schemaId];pn&&(hn.baseId=(0,me.resolveUrl)(hn.opts.uriResolver,hn.baseId,pn))}function Qt(hn){if(hn.schema.$async&&!hn.schemaEnv.$async)throw new Error("async schema in sync schema")}function Kr({gen:hn,schemaEnv:pn,schema:Sn,errSchemaPath:Qn,opts:Jn}){const ui=Sn.$comment;if(Jn.$comment===!0)hn.code((0,pe._)`${ye.default.self}.logger.log(${ui})`);else if(typeof Jn.$comment=="function"){const gi=(0,pe.str)`${Qn}/$comment`,di=hn.scopeValue("root",{ref:pn.root});hn.code((0,pe._)`${ye.default.self}.opts.$comment(${ui}, ${gi}, ${di}.schema)`)}}function be(hn){const{gen:pn,schemaEnv:Sn,validateName:Qn,ValidationError:Jn,opts:ui}=hn;Sn.$async?pn.if((0,pe._)`${ye.default.errors} === 0`,()=>pn.return(ye.default.data),()=>pn.throw((0,pe._)`new ${Jn}(${ye.default.vErrors})`)):(pn.assign((0,pe._)`${Qn}.errors`,ye.default.vErrors),ui.unevaluated&&kr(hn),pn.return((0,pe._)`${ye.default.errors} === 0`))}function kr({gen:hn,evaluated:pn,props:Sn,items:Qn}){Sn instanceof pe.Name&&hn.assign((0,pe._)`${pn}.props`,Sn),Qn instanceof pe.Name&&hn.assign((0,pe._)`${pn}.items`,Qn)}function xr(hn,pn,Sn,Qn){const{gen:Jn,schema:ui,data:gi,allErrors:di,opts:Ci,self:yi}=hn,{RULES:li}=yi;if(ui.$ref&&(Ci.ignoreKeywordsWithRef||!(0,Ee.schemaHasRulesButRef)(ui,li))){Jn.block(()=>Nn(hn,"$ref",li.all.$ref.definition));return}Ci.jtd||Jt(hn,pn),Jn.block(()=>{for(const Ai of li.rules)Pi(Ai);Pi(li.post)});function Pi(Ai){!(0,ae.shouldUseGroup)(ui,Ai)||(Ai.type?(Jn.if((0,ce.checkDataType)(Ai.type,gi,Ci.strictNumbers)),Wr(hn,Ai),pn.length===1&&pn[0]===Ai.type&&Sn&&(Jn.else(),(0,ce.reportTypeError)(hn)),Jn.endIf()):Wr(hn,Ai),di||Jn.if((0,pe._)`${ye.default.errors} === ${Qn||0}`))}}function Wr(hn,pn){const{gen:Sn,schema:Qn,opts:{useDefaults:Jn}}=hn;Jn&&(0,fe.assignDefaults)(hn,pn.type),Sn.block(()=>{for(const ui of pn.rules)(0,ae.shouldUseRule)(Qn,ui)&&Nn(hn,ui.keyword,ui.definition,pn.type)})}function Jt(hn,pn){hn.schemaEnv.meta||!hn.opts.strictTypes||(Xr(hn,pn),hn.opts.allowUnionTypes||zr(hn,pn),Jr(hn,hn.dataTypes))}function Xr(hn,pn){if(!!pn.length){if(!hn.dataTypes.length){hn.dataTypes=pn;return}pn.forEach(Sn=>{Hr(hn.dataTypes,Sn)||Gn(hn,`type "${Sn}" not allowed by context "${hn.dataTypes.join(",")}"`)}),On(hn,pn)}}function zr(hn,pn){pn.length>1&&!(pn.length===2&&pn.includes("null"))&&Gn(hn,"use allowUnionTypes to allow union type keyword")}function Jr(hn,pn){const Sn=hn.self.RULES.all;for(const Qn in Sn){const Jn=Sn[Qn];if(typeof Jn=="object"&&(0,ae.shouldUseRule)(hn.schema,Jn)){const{type:ui}=Jn.definition;ui.length&&!ui.some(gi=>Nr(pn,gi))&&Gn(hn,`missing type "${ui.join(",")}" for keyword "${Qn}"`)}}}function Nr(hn,pn){return hn.includes(pn)||pn==="number"&&hn.includes("integer")}function Hr(hn,pn){return hn.includes(pn)||pn==="integer"&&hn.includes("number")}function On(hn,pn){const Sn=[];for(const Qn of hn.dataTypes)Hr(pn,Qn)?Sn.push(Qn):pn.includes("integer")&&Qn==="number"&&Sn.push("integer");hn.dataTypes=Sn}function Gn(hn,pn){pn+=` at "${hn.schemaEnv.baseId+hn.errSchemaPath}" (strictTypes)`,(0,Ee.checkStrictMode)(hn,pn,hn.opts.strictTypes)}var mn=class{constructor(hn,pn,Sn){if((0,le.validateKeywordUsage)(hn,pn,Sn),this.gen=hn.gen,this.allErrors=hn.allErrors,this.keyword=Sn,this.data=hn.data,this.schema=hn.schema[Sn],this.$data=pn.$data&&hn.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ee.schemaRefOrVal)(hn,this.schema,Sn,this.$data),this.schemaType=pn.schemaType,this.parentSchema=hn.schema,this.params={},this.it=hn,this.def=pn,this.$data)this.schemaCode=hn.gen.const("vSchema",ii(this.$data,hn));else if(this.schemaCode=this.schemaValue,!(0,le.validSchemaType)(this.schema,pn.schemaType,pn.allowUndefined))throw new Error(`${Sn} value must be ${JSON.stringify(pn.schemaType)}`);("code"in pn?pn.trackErrors:pn.errors!==!1)&&(this.errsCount=hn.gen.const("_errs",ye.default.errors))}result(hn,pn,Sn){this.failResult((0,pe.not)(hn),pn,Sn)}failResult(hn,pn,Sn){this.gen.if(hn),Sn?Sn():this.error(),pn?(this.gen.else(),pn(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(hn,pn){this.failResult((0,pe.not)(hn),void 0,pn)}fail(hn){if(hn===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(hn),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(hn){if(!this.$data)return this.fail(hn);const{schemaCode:pn}=this;this.fail((0,pe._)`${pn} !== undefined && (${(0,pe.or)(this.invalid$data(),hn)})`)}error(hn,pn,Sn){if(pn){this.setParams(pn),this._error(hn,Sn),this.setParams({});return}this._error(hn,Sn)}_error(hn,pn){(hn?cr.reportExtraError:cr.reportError)(this,this.def.error,pn)}$dataError(){(0,cr.reportError)(this,this.def.$dataError||cr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,cr.resetErrorsCount)(this.gen,this.errsCount)}ok(hn){this.allErrors||this.gen.if(hn)}setParams(hn,pn){pn?Object.assign(this.params,hn):this.params=hn}block$data(hn,pn,Sn=pe.nil){this.gen.block(()=>{this.check$data(hn,Sn),pn()})}check$data(hn=pe.nil,pn=pe.nil){if(!this.$data)return;const{gen:Sn,schemaCode:Qn,schemaType:Jn,def:ui}=this;Sn.if((0,pe.or)((0,pe._)`${Qn} === undefined`,pn)),hn!==pe.nil&&Sn.assign(hn,!0),(Jn.length||ui.validateSchema)&&(Sn.elseIf(this.invalid$data()),this.$dataError(),hn!==pe.nil&&Sn.assign(hn,!1)),Sn.else()}invalid$data(){const{gen:hn,schemaCode:pn,schemaType:Sn,def:Qn,it:Jn}=this;return(0,pe.or)(ui(),gi());function ui(){if(Sn.length){if(!(pn instanceof pe.Name))throw new Error("ajv implementation error");const di=Array.isArray(Sn)?Sn:[Sn];return(0,pe._)`${(0,ce.checkDataTypes)(di,pn,Jn.opts.strictNumbers,ce.DataType.Wrong)}`}return pe.nil}function gi(){if(Qn.validateSchema){const di=hn.scopeValue("validate$data",{ref:Qn.validateSchema});return(0,pe._)`!${di}(${pn})`}return pe.nil}}subschema(hn,pn){const Sn=(0,ve.getSubschema)(this.it,hn);(0,ve.extendSubschemaData)(Sn,this.it,hn),(0,ve.extendSubschemaMode)(Sn,hn);const Qn={...this.it,...Sn,items:void 0,props:void 0};return Lr(Qn,pn),Qn}mergeEvaluated(hn,pn){const{it:Sn,gen:Qn}=this;!Sn.opts.unevaluated||(Sn.props!==!0&&hn.props!==void 0&&(Sn.props=Ee.mergeEvaluated.props(Qn,hn.props,Sn.props,pn)),Sn.items!==!0&&hn.items!==void 0&&(Sn.items=Ee.mergeEvaluated.items(Qn,hn.items,Sn.items,pn)))}mergeValidEvaluated(hn,pn){const{it:Sn,gen:Qn}=this;if(Sn.opts.unevaluated&&(Sn.props!==!0||Sn.items!==!0))return Qn.if(pn,()=>this.mergeEvaluated(hn,pe.Name)),!0}};v.KeywordCxt=mn;function Nn(hn,pn,Sn,Qn){const Jn=new mn(hn,Sn,pn);"code"in Sn?Sn.code(Jn,Qn):Jn.$data&&Sn.validate?(0,le.funcKeywordCode)(Jn,Sn):"macro"in Sn?(0,le.macroKeywordCode)(Jn,Sn):(Sn.compile||Sn.validate)&&(0,le.funcKeywordCode)(Jn,Sn)}var In=/^\/(?:[^~]|~0|~1)*$/,bn=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ii(hn,{dataLevel:pn,dataNames:Sn,dataPathArr:Qn}){let Jn,ui;if(hn==="")return ye.default.rootData;if(hn[0]==="/"){if(!In.test(hn))throw new Error(`Invalid JSON-pointer: ${hn}`);Jn=hn,ui=ye.default.rootData}else{const yi=bn.exec(hn);if(!yi)throw new Error(`Invalid JSON-pointer: ${hn}`);const li=+yi[1];if(Jn=yi[2],Jn==="#"){if(li>=pn)throw new Error(Ci("property/index",li));return Qn[pn-li]}if(li>pn)throw new Error(Ci("data",li));if(ui=Sn[pn-li],!Jn)return ui}let gi=ui;const di=Jn.split("/");for(const yi of di)yi&&(ui=(0,pe._)`${ui}${(0,pe.getProperty)((0,Ee.unescapeJsonPointer)(yi))}`,gi=(0,pe._)`${gi} && ${ui}`);return gi;function Ci(yi,li){return`Cannot access ${yi} ${li} levels up, current level is ${pn}`}}v.getData=ii}}),require_validation_error$1=__commonJS({"node_modules/ajv/dist/runtime/validation_error.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=class extends Error{constructor(ie){super("validation failed"),this.errors=ie,this.ajv=this.validation=!0}};v.default=k}}),require_ref_error$1=__commonJS({"node_modules/ajv/dist/compile/ref_error.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_resolve$1(),ie=class extends Error{constructor(ae,ce,fe,le){super(le||`can't resolve reference ${fe} from id ${ce}`),this.missingRef=(0,k.resolveUrl)(ae,ce,fe),this.missingSchema=(0,k.normalizeId)((0,k.getFullPath)(ae,this.missingRef))}};v.default=ie}}),require_compile$1=__commonJS({"node_modules/ajv/dist/compile/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.resolveSchema=v.getCompilingSchema=v.resolveRef=v.compileSchema=v.SchemaEnv=void 0;var k=require_codegen$1(),ie=require_validation_error$1(),ae=require_names$1(),ce=require_resolve$1(),fe=require_util$2(),le=require_validate$1(),ve=class{constructor(ur){var jr;this.refs={},this.dynamicAnchors={};let Mr;typeof ur.schema=="object"&&(Mr=ur.schema),this.schema=ur.schema,this.schemaId=ur.schemaId,this.root=ur.root||this,this.baseId=(jr=ur.baseId)!==null&&jr!==void 0?jr:(0,ce.normalizeId)(Mr==null?void 0:Mr[ur.schemaId||"$id"]),this.schemaPath=ur.schemaPath,this.localRefs=ur.localRefs,this.meta=ur.meta,this.$async=Mr==null?void 0:Mr.$async,this.refs={}}};v.SchemaEnv=ve;function pe(ur){const jr=Ee.call(this,ur);if(jr)return jr;const Mr=(0,ce.getFullPath)(this.opts.uriResolver,ur.root.baseId),{es5:Lr,lines:Vr}=this.opts.code,{ownProperties:Gr}=this.opts,Ur=new k.CodeGen(this.scope,{es5:Lr,lines:Vr,ownProperties:Gr});let Qr;ur.$async&&(Qr=Ur.scopeValue("Error",{ref:ie.default,code:(0,k._)`require("ajv/dist/runtime/validation_error").default`}));const vn=Ur.scopeName("validate");ur.validateName=vn;const Yt={gen:Ur,allErrors:this.opts.allErrors,data:ae.default.data,parentData:ae.default.parentData,parentDataProperty:ae.default.parentDataProperty,dataNames:[ae.default.data],dataPathArr:[k.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:Ur.scopeValue("schema",this.opts.code.source===!0?{ref:ur.schema,code:(0,k.stringify)(ur.schema)}:{ref:ur.schema}),validateName:vn,ValidationError:Qr,schema:ur.schema,schemaEnv:ur,rootId:Mr,baseId:ur.baseId||Mr,schemaPath:k.nil,errSchemaPath:ur.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,k._)`""`,opts:this.opts,self:this};let fn;try{this._compilations.add(ur),(0,le.validateFunctionCode)(Yt),Ur.optimize(this.opts.code.optimize);const Xt=Ur.toString();fn=`${Ur.scopeRefs(ae.default.scope)}return ${Xt}`,this.opts.code.process&&(fn=this.opts.code.process(fn,ur));const Kr=new Function(`${ae.default.self}`,`${ae.default.scope}`,fn)(this,this.scope.get());if(this.scope.value(vn,{ref:Kr}),Kr.errors=null,Kr.schema=ur.schema,Kr.schemaEnv=ur,ur.$async&&(Kr.$async=!0),this.opts.code.source===!0&&(Kr.source={validateName:vn,validateCode:Xt,scopeValues:Ur._values}),this.opts.unevaluated){const{props:be,items:kr}=Yt;Kr.evaluated={props:be instanceof k.Name?void 0:be,items:kr instanceof k.Name?void 0:kr,dynamicProps:be instanceof k.Name,dynamicItems:kr instanceof k.Name},Kr.source&&(Kr.source.evaluated=(0,k.stringify)(Kr.evaluated))}return ur.validate=Kr,ur}catch(Xt){throw delete ur.validate,delete ur.validateName,fn&&this.logger.error("Error compiling schema, function code:",fn),Xt}finally{this._compilations.delete(ur)}}v.compileSchema=pe;function ye(ur,jr,Mr){var Lr;Mr=(0,ce.resolveUrl)(this.opts.uriResolver,jr,Mr);const Vr=ur.refs[Mr];if(Vr)return Vr;let Gr=Br.call(this,ur,Mr);if(Gr===void 0){const Ur=(Lr=ur.localRefs)===null||Lr===void 0?void 0:Lr[Mr],{schemaId:Qr}=this.opts;Ur&&(Gr=new ve({schema:Ur,schemaId:Qr,root:ur,baseId:jr}))}if(Gr!==void 0)return ur.refs[Mr]=me.call(this,Gr)}v.resolveRef=ye;function me(ur){return(0,ce.inlineRef)(ur.schema,this.opts.inlineRefs)?ur.schema:ur.validate?ur:pe.call(this,ur)}function Ee(ur){for(const jr of this._compilations)if(cr(jr,ur))return jr}v.getCompilingSchema=Ee;function cr(ur,jr){return ur.schema===jr.schema&&ur.root===jr.root&&ur.baseId===jr.baseId}function Br(ur,jr){let Mr;for(;typeof(Mr=this.refs[jr])=="string";)jr=Mr;return Mr||this.schemas[jr]||$r.call(this,ur,jr)}function $r(ur,jr){const Mr=this.opts.uriResolver.parse(jr),Lr=(0,ce._getFullPath)(this.opts.uriResolver,Mr);let Vr=(0,ce.getFullPath)(this.opts.uriResolver,ur.baseId,void 0);if(Object.keys(ur.schema).length>0&&Lr===Vr)return Or.call(this,Mr,ur);const Gr=(0,ce.normalizeId)(Lr),Ur=this.refs[Gr]||this.schemas[Gr];if(typeof Ur=="string"){const Qr=$r.call(this,ur,Ur);return typeof(Qr==null?void 0:Qr.schema)!="object"?void 0:Or.call(this,Mr,Qr)}if(typeof(Ur==null?void 0:Ur.schema)=="object"){if(Ur.validate||pe.call(this,Ur),Gr===(0,ce.normalizeId)(jr)){const{schema:Qr}=Ur,{schemaId:vn}=this.opts,Yt=Qr[vn];return Yt&&(Vr=(0,ce.resolveUrl)(this.opts.uriResolver,Vr,Yt)),new ve({schema:Qr,schemaId:vn,root:ur,baseId:Vr})}return Or.call(this,Mr,Ur)}}v.resolveSchema=$r;var Pr=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Or(ur,{baseId:jr,schema:Mr,root:Lr}){var Vr;if(((Vr=ur.fragment)===null||Vr===void 0?void 0:Vr[0])!=="/")return;for(const Qr of ur.fragment.slice(1).split("/")){if(typeof Mr=="boolean")return;const vn=Mr[(0,fe.unescapeFragment)(Qr)];if(vn===void 0)return;Mr=vn;const Yt=typeof Mr=="object"&&Mr[this.opts.schemaId];!Pr.has(Qr)&&Yt&&(jr=(0,ce.resolveUrl)(this.opts.uriResolver,jr,Yt))}let Gr;if(typeof Mr!="boolean"&&Mr.$ref&&!(0,fe.schemaHasRulesButRef)(Mr,this.RULES)){const Qr=(0,ce.resolveUrl)(this.opts.uriResolver,jr,Mr.$ref);Gr=$r.call(this,Lr,Qr)}const{schemaId:Ur}=this.opts;if(Gr=Gr||new ve({schema:Mr,schemaId:Ur,root:Lr,baseId:jr}),Gr.schema!==Gr.root.schema)return Gr}}}),require_data$1=__commonJS({"node_modules/ajv/dist/refs/data.json"(v,k){k.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}}}),require_uri_all$1=__commonJS({"node_modules/uri-js/dist/es5/uri.all.js"(v,k){(function(ie,ae){typeof v=="object"&&typeof k<"u"?ae(v):typeof define=="function"&&define.amd?define(["exports"],ae):ae(ie.URI=ie.URI||{})})(v,function(ie){function ae(){for(var Yr=arguments.length,Wt=Array(Yr),ln=0;ln1){Wt[0]=Wt[0].slice(0,-1);for(var qr=Wt.length-1,dn=1;dn= 0x80 (not a basic code point)","invalid-input":"Invalid input"},fn=Pr-Or,Xt=Math.floor,Qt=String.fromCharCode;function Kr(Yr){throw new RangeError(Yt[Yr])}function be(Yr,Wt){for(var ln=[],qr=Yr.length;qr--;)ln[qr]=Wt(Yr[qr]);return ln}function kr(Yr,Wt){var ln=Yr.split("@"),qr="";ln.length>1&&(qr=ln[0]+"@",Yr=ln[1]),Yr=Yr.replace(vn,".");var dn=Yr.split("."),ri=be(dn,Wt).join(".");return qr+ri}function xr(Yr){for(var Wt=[],ln=0,qr=Yr.length;ln=55296&&dn<=56319&&ln>1,Wt+=Xt(Wt/ln);Wt>fn*ur>>1;dn+=Pr)Wt=Xt(Wt/fn);return Xt(dn+(fn+1)*Wt/(Wt+jr))},Jr=function(Wt){var ln=[],qr=Wt.length,dn=0,ri=Vr,Zn=Lr,ai=Wt.lastIndexOf(Gr);ai<0&&(ai=0);for(var bi=0;bi=128&&Kr("not-basic"),ln.push(Wt.charCodeAt(bi));for(var _i=ai>0?ai+1:0;_i=qr&&Kr("invalid-input");var Ni=Jt(Wt.charCodeAt(_i++));(Ni>=Pr||Ni>Xt(($r-dn)/yo))&&Kr("overflow"),dn+=Ni*yo;var oo=Di<=Zn?Or:Di>=Zn+ur?ur:Di-Zn;if(NiXt($r/fo)&&Kr("overflow"),yo*=fo}var co=ln.length+1;Zn=zr(dn-fi,co,fi==0),Xt(dn/co)>$r-ri&&Kr("overflow"),ri+=Xt(dn/co),dn%=co,ln.splice(dn++,0,ri)}return String.fromCodePoint.apply(String,ln)},Nr=function(Wt){var ln=[];Wt=xr(Wt);var qr=Wt.length,dn=Vr,ri=0,Zn=Lr,ai=!0,bi=!1,_i=void 0;try{for(var fi=Wt[Symbol.iterator](),yo;!(ai=(yo=fi.next()).done);ai=!0){var Di=yo.value;Di<128&&ln.push(Qt(Di))}}catch(Co){bi=!0,_i=Co}finally{try{!ai&&fi.return&&fi.return()}finally{if(bi)throw _i}}var Ni=ln.length,oo=Ni;for(Ni&&ln.push(Gr);oo=dn&&loXt(($r-ri)/eo)&&Kr("overflow"),ri+=(fo-dn)*eo,dn=fo;var uo=!0,ho=!1,ro=void 0;try{for(var ci=Wt[Symbol.iterator](),pi;!(uo=(pi=ci.next()).done);uo=!0){var mi=pi.value;if(mi$r&&Kr("overflow"),mi==dn){for(var Si=ri,Ti=Pr;;Ti+=Pr){var xi=Ti<=Zn?Or:Ti>=Zn+ur?ur:Ti-Zn;if(Si>6|192).toString(16).toUpperCase()+"%"+(Wt&63|128).toString(16).toUpperCase():ln="%"+(Wt>>12|224).toString(16).toUpperCase()+"%"+(Wt>>6&63|128).toString(16).toUpperCase()+"%"+(Wt&63|128).toString(16).toUpperCase(),ln}function In(Yr){for(var Wt="",ln=0,qr=Yr.length;ln=194&&dn<224){if(qr-ln>=6){var ri=parseInt(Yr.substr(ln+4,2),16);Wt+=String.fromCharCode((dn&31)<<6|ri&63)}else Wt+=Yr.substr(ln,6);ln+=6}else if(dn>=224){if(qr-ln>=9){var Zn=parseInt(Yr.substr(ln+4,2),16),ai=parseInt(Yr.substr(ln+7,2),16);Wt+=String.fromCharCode((dn&15)<<12|(Zn&63)<<6|ai&63)}else Wt+=Yr.substr(ln,9);ln+=9}else Wt+=Yr.substr(ln,3),ln+=3}return Wt}function bn(Yr,Wt){function ln(qr){var dn=In(qr);return dn.match(Wt.UNRESERVED)?dn:qr}return Yr.scheme&&(Yr.scheme=String(Yr.scheme).replace(Wt.PCT_ENCODED,ln).toLowerCase().replace(Wt.NOT_SCHEME,"")),Yr.userinfo!==void 0&&(Yr.userinfo=String(Yr.userinfo).replace(Wt.PCT_ENCODED,ln).replace(Wt.NOT_USERINFO,Nn).replace(Wt.PCT_ENCODED,le)),Yr.host!==void 0&&(Yr.host=String(Yr.host).replace(Wt.PCT_ENCODED,ln).toLowerCase().replace(Wt.NOT_HOST,Nn).replace(Wt.PCT_ENCODED,le)),Yr.path!==void 0&&(Yr.path=String(Yr.path).replace(Wt.PCT_ENCODED,ln).replace(Yr.scheme?Wt.NOT_PATH:Wt.NOT_PATH_NOSCHEME,Nn).replace(Wt.PCT_ENCODED,le)),Yr.query!==void 0&&(Yr.query=String(Yr.query).replace(Wt.PCT_ENCODED,ln).replace(Wt.NOT_QUERY,Nn).replace(Wt.PCT_ENCODED,le)),Yr.fragment!==void 0&&(Yr.fragment=String(Yr.fragment).replace(Wt.PCT_ENCODED,ln).replace(Wt.NOT_FRAGMENT,Nn).replace(Wt.PCT_ENCODED,le)),Yr}function ii(Yr){return Yr.replace(/^0*(.*)/,"$1")||"0"}function hn(Yr,Wt){var ln=Yr.match(Wt.IPV4ADDRESS)||[],qr=cr(ln,2),dn=qr[1];return dn?dn.split(".").map(ii).join("."):Yr}function pn(Yr,Wt){var ln=Yr.match(Wt.IPV6ADDRESS)||[],qr=cr(ln,3),dn=qr[1],ri=qr[2];if(dn){for(var Zn=dn.toLowerCase().split("::").reverse(),ai=cr(Zn,2),bi=ai[0],_i=ai[1],fi=_i?_i.split(":").map(ii):[],yo=bi.split(":").map(ii),Di=Wt.IPV4ADDRESS.test(yo[yo.length-1]),Ni=Di?7:8,oo=yo.length-Ni,fo=Array(Ni),co=0;co1){var so=fo.slice(0,vo.index),lo=fo.slice(vo.index+vo.length);_o=so.join(":")+"::"+lo.join(":")}else _o=fo.join(":");return ri&&(_o+="%"+ri),_o}else return Yr}var Sn=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Qn="".match(/(){0}/)[1]===void 0;function Jn(Yr){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ln={},qr=Wt.iri!==!1?Ee:me;Wt.reference==="suffix"&&(Yr=(Wt.scheme?Wt.scheme+":":"")+"//"+Yr);var dn=Yr.match(Sn);if(dn){Qn?(ln.scheme=dn[1],ln.userinfo=dn[3],ln.host=dn[4],ln.port=parseInt(dn[5],10),ln.path=dn[6]||"",ln.query=dn[7],ln.fragment=dn[8],isNaN(ln.port)&&(ln.port=dn[5])):(ln.scheme=dn[1]||void 0,ln.userinfo=Yr.indexOf("@")!==-1?dn[3]:void 0,ln.host=Yr.indexOf("//")!==-1?dn[4]:void 0,ln.port=parseInt(dn[5],10),ln.path=dn[6]||"",ln.query=Yr.indexOf("?")!==-1?dn[7]:void 0,ln.fragment=Yr.indexOf("#")!==-1?dn[8]:void 0,isNaN(ln.port)&&(ln.port=Yr.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?dn[4]:void 0)),ln.host&&(ln.host=pn(hn(ln.host,qr),qr)),ln.scheme===void 0&&ln.userinfo===void 0&&ln.host===void 0&&ln.port===void 0&&!ln.path&&ln.query===void 0?ln.reference="same-document":ln.scheme===void 0?ln.reference="relative":ln.fragment===void 0?ln.reference="absolute":ln.reference="uri",Wt.reference&&Wt.reference!=="suffix"&&Wt.reference!==ln.reference&&(ln.error=ln.error||"URI is not a "+Wt.reference+" reference.");var ri=mn[(Wt.scheme||ln.scheme||"").toLowerCase()];if(!Wt.unicodeSupport&&(!ri||!ri.unicodeSupport)){if(ln.host&&(Wt.domainHost||ri&&ri.domainHost))try{ln.host=Gn.toASCII(ln.host.replace(qr.PCT_ENCODED,In).toLowerCase())}catch(Zn){ln.error=ln.error||"Host's domain name can not be converted to ASCII via punycode: "+Zn}bn(ln,me)}else bn(ln,qr);ri&&ri.parse&&ri.parse(ln,Wt)}else ln.error=ln.error||"URI can not be parsed.";return ln}function ui(Yr,Wt){var ln=Wt.iri!==!1?Ee:me,qr=[];return Yr.userinfo!==void 0&&(qr.push(Yr.userinfo),qr.push("@")),Yr.host!==void 0&&qr.push(pn(hn(String(Yr.host),ln),ln).replace(ln.IPV6ADDRESS,function(dn,ri,Zn){return"["+ri+(Zn?"%25"+Zn:"")+"]"})),(typeof Yr.port=="number"||typeof Yr.port=="string")&&(qr.push(":"),qr.push(String(Yr.port))),qr.length?qr.join(""):void 0}var gi=/^\.\.?\//,di=/^\/\.(\/|$)/,Ci=/^\/\.\.(\/|$)/,yi=/^\/?(?:.|\n)*?(?=\/|$)/;function li(Yr){for(var Wt=[];Yr.length;)if(Yr.match(gi))Yr=Yr.replace(gi,"");else if(Yr.match(di))Yr=Yr.replace(di,"/");else if(Yr.match(Ci))Yr=Yr.replace(Ci,"/"),Wt.pop();else if(Yr==="."||Yr==="..")Yr="";else{var ln=Yr.match(yi);if(ln){var qr=ln[0];Yr=Yr.slice(qr.length),Wt.push(qr)}else throw new Error("Unexpected dot segment condition")}return Wt.join("")}function Pi(Yr){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ln=Wt.iri?Ee:me,qr=[],dn=mn[(Wt.scheme||Yr.scheme||"").toLowerCase()];if(dn&&dn.serialize&&dn.serialize(Yr,Wt),Yr.host&&!ln.IPV6ADDRESS.test(Yr.host)){if(Wt.domainHost||dn&&dn.domainHost)try{Yr.host=Wt.iri?Gn.toUnicode(Yr.host):Gn.toASCII(Yr.host.replace(ln.PCT_ENCODED,In).toLowerCase())}catch(ai){Yr.error=Yr.error||"Host's domain name can not be converted to "+(Wt.iri?"Unicode":"ASCII")+" via punycode: "+ai}}bn(Yr,ln),Wt.reference!=="suffix"&&Yr.scheme&&(qr.push(Yr.scheme),qr.push(":"));var ri=ui(Yr,Wt);if(ri!==void 0&&(Wt.reference!=="suffix"&&qr.push("//"),qr.push(ri),Yr.path&&Yr.path.charAt(0)!=="/"&&qr.push("/")),Yr.path!==void 0){var Zn=Yr.path;!Wt.absolutePath&&(!dn||!dn.absolutePath)&&(Zn=li(Zn)),ri===void 0&&(Zn=Zn.replace(/^\/\//,"/%2F")),qr.push(Zn)}return Yr.query!==void 0&&(qr.push("?"),qr.push(Yr.query)),Yr.fragment!==void 0&&(qr.push("#"),qr.push(Yr.fragment)),qr.join("")}function Ai(Yr,Wt){var ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},qr=arguments[3],dn={};return qr||(Yr=Jn(Pi(Yr,ln),ln),Wt=Jn(Pi(Wt,ln),ln)),ln=ln||{},!ln.tolerant&&Wt.scheme?(dn.scheme=Wt.scheme,dn.userinfo=Wt.userinfo,dn.host=Wt.host,dn.port=Wt.port,dn.path=li(Wt.path||""),dn.query=Wt.query):(Wt.userinfo!==void 0||Wt.host!==void 0||Wt.port!==void 0?(dn.userinfo=Wt.userinfo,dn.host=Wt.host,dn.port=Wt.port,dn.path=li(Wt.path||""),dn.query=Wt.query):(Wt.path?(Wt.path.charAt(0)==="/"?dn.path=li(Wt.path):((Yr.userinfo!==void 0||Yr.host!==void 0||Yr.port!==void 0)&&!Yr.path?dn.path="/"+Wt.path:Yr.path?dn.path=Yr.path.slice(0,Yr.path.lastIndexOf("/")+1)+Wt.path:dn.path=Wt.path,dn.path=li(dn.path)),dn.query=Wt.query):(dn.path=Yr.path,Wt.query!==void 0?dn.query=Wt.query:dn.query=Yr.query),dn.userinfo=Yr.userinfo,dn.host=Yr.host,dn.port=Yr.port),dn.scheme=Yr.scheme),dn.fragment=Wt.fragment,dn}function Oi(Yr,Wt,ln){var qr=pe({scheme:"null"},ln);return Pi(Ai(Jn(Yr,qr),Jn(Wt,qr),qr,!0),qr)}function to(Yr,Wt){return typeof Yr=="string"?Yr=Pi(Jn(Yr,Wt),Wt):fe(Yr)==="object"&&(Yr=Jn(Pi(Yr,Wt),Wt)),Yr}function En(Yr,Wt,ln){return typeof Yr=="string"?Yr=Pi(Jn(Yr,ln),ln):fe(Yr)==="object"&&(Yr=Pi(Yr,ln)),typeof Wt=="string"?Wt=Pi(Jn(Wt,ln),ln):fe(Wt)==="object"&&(Wt=Pi(Wt,ln)),Yr===Wt}function Bt(Yr,Wt){return Yr&&Yr.toString().replace(!Wt||!Wt.iri?me.ESCAPE:Ee.ESCAPE,Nn)}function Zt(Yr,Wt){return Yr&&Yr.toString().replace(!Wt||!Wt.iri?me.PCT_ENCODED:Ee.PCT_ENCODED,In)}var Tn={scheme:"http",domainHost:!0,parse:function(Wt,ln){return Wt.host||(Wt.error=Wt.error||"HTTP URIs must have a host."),Wt},serialize:function(Wt,ln){var qr=String(Wt.scheme).toLowerCase()==="https";return(Wt.port===(qr?443:80)||Wt.port==="")&&(Wt.port=void 0),Wt.path||(Wt.path="/"),Wt}},ei={scheme:"https",domainHost:Tn.domainHost,parse:Tn.parse,serialize:Tn.serialize};function zn(Yr){return typeof Yr.secure=="boolean"?Yr.secure:String(Yr.scheme).toLowerCase()==="wss"}var gn={scheme:"ws",domainHost:!0,parse:function(Wt,ln){var qr=Wt;return qr.secure=zn(qr),qr.resourceName=(qr.path||"/")+(qr.query?"?"+qr.query:""),qr.path=void 0,qr.query=void 0,qr},serialize:function(Wt,ln){if((Wt.port===(zn(Wt)?443:80)||Wt.port==="")&&(Wt.port=void 0),typeof Wt.secure=="boolean"&&(Wt.scheme=Wt.secure?"wss":"ws",Wt.secure=void 0),Wt.resourceName){var qr=Wt.resourceName.split("?"),dn=cr(qr,2),ri=dn[0],Zn=dn[1];Wt.path=ri&&ri!=="/"?ri:void 0,Wt.query=Zn,Wt.resourceName=void 0}return Wt.fragment=void 0,Wt}},xn={scheme:"wss",domainHost:gn.domainHost,parse:gn.parse,serialize:gn.serialize},Hn={},Ln="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ti="[0-9A-Fa-f]",oi=ce(ce("%[EFef]"+ti+"%"+ti+ti+"%"+ti+ti)+"|"+ce("%[89A-Fa-f]"+ti+"%"+ti+ti)+"|"+ce("%"+ti+ti)),Ei="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Ri="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Oo=ae(Ri,'[\\"\\\\]'),Ui="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",io=new RegExp(Ln,"g"),So=new RegExp(oi,"g"),$o=new RegExp(ae("[^]",Ei,"[\\.]",'[\\"]',Oo),"g"),mo=new RegExp(ae("[^]",Ln,Ui),"g"),qo=mo;function wo(Yr){var Wt=In(Yr);return Wt.match(io)?Wt:Yr}var Eo={scheme:"mailto",parse:function(Wt,ln){var qr=Wt,dn=qr.to=qr.path?qr.path.split(","):[];if(qr.path=void 0,qr.query){for(var ri=!1,Zn={},ai=qr.query.split("&"),bi=0,_i=ai.length;bi<_i;++bi){var fi=ai[bi].split("=");switch(fi[0]){case"to":for(var yo=fi[1].split(","),Di=0,Ni=yo.length;Dinew RegExp(Xr,zr);Br.code="new RegExp";var $r=["removeAdditional","useDefaults","coerceTypes"],Pr=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Or={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},ur={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},jr=200;function Mr(Xr){var zr,Jr,Nr,Hr,On,Gn,mn,Nn,In,bn,ii,hn,pn,Sn,Qn,Jn,ui,gi,di,Ci,yi,li,Pi,Ai,Oi;const to=Xr.strict,En=(zr=Xr.code)===null||zr===void 0?void 0:zr.optimize,Bt=En===!0||En===void 0?1:En||0,Zt=(Nr=(Jr=Xr.code)===null||Jr===void 0?void 0:Jr.regExp)!==null&&Nr!==void 0?Nr:Br,Tn=(Hr=Xr.uriResolver)!==null&&Hr!==void 0?Hr:cr.default;return{strictSchema:(Gn=(On=Xr.strictSchema)!==null&&On!==void 0?On:to)!==null&&Gn!==void 0?Gn:!0,strictNumbers:(Nn=(mn=Xr.strictNumbers)!==null&&mn!==void 0?mn:to)!==null&&Nn!==void 0?Nn:!0,strictTypes:(bn=(In=Xr.strictTypes)!==null&&In!==void 0?In:to)!==null&&bn!==void 0?bn:"log",strictTuples:(hn=(ii=Xr.strictTuples)!==null&&ii!==void 0?ii:to)!==null&&hn!==void 0?hn:"log",strictRequired:(Sn=(pn=Xr.strictRequired)!==null&&pn!==void 0?pn:to)!==null&&Sn!==void 0?Sn:!1,code:Xr.code?{...Xr.code,optimize:Bt,regExp:Zt}:{optimize:Bt,regExp:Zt},loopRequired:(Qn=Xr.loopRequired)!==null&&Qn!==void 0?Qn:jr,loopEnum:(Jn=Xr.loopEnum)!==null&&Jn!==void 0?Jn:jr,meta:(ui=Xr.meta)!==null&&ui!==void 0?ui:!0,messages:(gi=Xr.messages)!==null&&gi!==void 0?gi:!0,inlineRefs:(di=Xr.inlineRefs)!==null&&di!==void 0?di:!0,schemaId:(Ci=Xr.schemaId)!==null&&Ci!==void 0?Ci:"$id",addUsedSchema:(yi=Xr.addUsedSchema)!==null&&yi!==void 0?yi:!0,validateSchema:(li=Xr.validateSchema)!==null&&li!==void 0?li:!0,validateFormats:(Pi=Xr.validateFormats)!==null&&Pi!==void 0?Pi:!0,unicodeRegExp:(Ai=Xr.unicodeRegExp)!==null&&Ai!==void 0?Ai:!0,int32range:(Oi=Xr.int32range)!==null&&Oi!==void 0?Oi:!0,uriResolver:Tn}}var Lr=class{constructor(Xr={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,Xr=this.opts={...Xr,...Mr(Xr)};const{es5:zr,lines:Jr}=this.opts.code;this.scope=new ve.ValueScope({scope:{},prefixes:Pr,es5:zr,lines:Jr}),this.logger=Xt(Xr.logger);const Nr=Xr.validateFormats;Xr.validateFormats=!1,this.RULES=(0,fe.getRules)(),Vr.call(this,Or,Xr,"NOT SUPPORTED"),Vr.call(this,ur,Xr,"DEPRECATED","warn"),this._metaOpts=Yt.call(this),Xr.formats&&Qr.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),Xr.keywords&&vn.call(this,Xr.keywords),typeof Xr.meta=="object"&&this.addMetaSchema(Xr.meta),Ur.call(this),Xr.validateFormats=Nr}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:Xr,meta:zr,schemaId:Jr}=this.opts;let Nr=Ee;Jr==="id"&&(Nr={...Ee},Nr.id=Nr.$id,delete Nr.$id),zr&&Xr&&this.addMetaSchema(Nr,Nr[Jr],!1)}defaultMeta(){const{meta:Xr,schemaId:zr}=this.opts;return this.opts.defaultMeta=typeof Xr=="object"?Xr[zr]||Xr:void 0}validate(Xr,zr){let Jr;if(typeof Xr=="string"){if(Jr=this.getSchema(Xr),!Jr)throw new Error(`no schema with key or ref "${Xr}"`)}else Jr=this.compile(Xr);const Nr=Jr(zr);return"$async"in Jr||(this.errors=Jr.errors),Nr}compile(Xr,zr){const Jr=this._addSchema(Xr,zr);return Jr.validate||this._compileSchemaEnv(Jr)}compileAsync(Xr,zr){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:Jr}=this.opts;return Nr.call(this,Xr,zr);async function Nr(In,bn){await Hr.call(this,In.$schema);const ii=this._addSchema(In,bn);return ii.validate||On.call(this,ii)}async function Hr(In){In&&!this.getSchema(In)&&await Nr.call(this,{$ref:In},!0)}async function On(In){try{return this._compileSchemaEnv(In)}catch(bn){if(!(bn instanceof ce.default))throw bn;return Gn.call(this,bn),await mn.call(this,bn.missingSchema),On.call(this,In)}}function Gn({missingSchema:In,missingRef:bn}){if(this.refs[In])throw new Error(`AnySchema ${In} is loaded but ${bn} cannot be resolved`)}async function mn(In){const bn=await Nn.call(this,In);this.refs[In]||await Hr.call(this,bn.$schema),this.refs[In]||this.addSchema(bn,In,zr)}async function Nn(In){const bn=this._loading[In];if(bn)return bn;try{return await(this._loading[In]=Jr(In))}finally{delete this._loading[In]}}}addSchema(Xr,zr,Jr,Nr=this.opts.validateSchema){if(Array.isArray(Xr)){for(const On of Xr)this.addSchema(On,void 0,Jr,Nr);return this}let Hr;if(typeof Xr=="object"){const{schemaId:On}=this.opts;if(Hr=Xr[On],Hr!==void 0&&typeof Hr!="string")throw new Error(`schema ${On} must be string`)}return zr=(0,pe.normalizeId)(zr||Hr),this._checkUnique(zr),this.schemas[zr]=this._addSchema(Xr,Jr,zr,Nr,!0),this}addMetaSchema(Xr,zr,Jr=this.opts.validateSchema){return this.addSchema(Xr,zr,!0,Jr),this}validateSchema(Xr,zr){if(typeof Xr=="boolean")return!0;let Jr;if(Jr=Xr.$schema,Jr!==void 0&&typeof Jr!="string")throw new Error("$schema must be a string");if(Jr=Jr||this.opts.defaultMeta||this.defaultMeta(),!Jr)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const Nr=this.validate(Jr,Xr);if(!Nr&&zr){const Hr="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(Hr);else throw new Error(Hr)}return Nr}getSchema(Xr){let zr;for(;typeof(zr=Gr.call(this,Xr))=="string";)Xr=zr;if(zr===void 0){const{schemaId:Jr}=this.opts,Nr=new le.SchemaEnv({schema:{},schemaId:Jr});if(zr=le.resolveSchema.call(this,Nr,Xr),!zr)return;this.refs[Xr]=zr}return zr.validate||this._compileSchemaEnv(zr)}removeSchema(Xr){if(Xr instanceof RegExp)return this._removeAllSchemas(this.schemas,Xr),this._removeAllSchemas(this.refs,Xr),this;switch(typeof Xr){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const zr=Gr.call(this,Xr);return typeof zr=="object"&&this._cache.delete(zr.schema),delete this.schemas[Xr],delete this.refs[Xr],this}case"object":{const zr=Xr;this._cache.delete(zr);let Jr=Xr[this.opts.schemaId];return Jr&&(Jr=(0,pe.normalizeId)(Jr),delete this.schemas[Jr],delete this.refs[Jr]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(Xr){for(const zr of Xr)this.addKeyword(zr);return this}addKeyword(Xr,zr){let Jr;if(typeof Xr=="string")Jr=Xr,typeof zr=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),zr.keyword=Jr);else if(typeof Xr=="object"&&zr===void 0){if(zr=Xr,Jr=zr.keyword,Array.isArray(Jr)&&!Jr.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Kr.call(this,Jr,zr),!zr)return(0,me.eachItem)(Jr,Hr=>be.call(this,Hr)),this;xr.call(this,zr);const Nr={...zr,type:(0,ye.getJSONTypes)(zr.type),schemaType:(0,ye.getJSONTypes)(zr.schemaType)};return(0,me.eachItem)(Jr,Nr.type.length===0?Hr=>be.call(this,Hr,Nr):Hr=>Nr.type.forEach(On=>be.call(this,Hr,Nr,On))),this}getKeyword(Xr){const zr=this.RULES.all[Xr];return typeof zr=="object"?zr.definition:!!zr}removeKeyword(Xr){const{RULES:zr}=this;delete zr.keywords[Xr],delete zr.all[Xr];for(const Jr of zr.rules){const Nr=Jr.rules.findIndex(Hr=>Hr.keyword===Xr);Nr>=0&&Jr.rules.splice(Nr,1)}return this}addFormat(Xr,zr){return typeof zr=="string"&&(zr=new RegExp(zr)),this.formats[Xr]=zr,this}errorsText(Xr=this.errors,{separator:zr=", ",dataVar:Jr="data"}={}){return!Xr||Xr.length===0?"No errors":Xr.map(Nr=>`${Jr}${Nr.instancePath} ${Nr.message}`).reduce((Nr,Hr)=>Nr+zr+Hr)}$dataMetaSchema(Xr,zr){const Jr=this.RULES.all;Xr=JSON.parse(JSON.stringify(Xr));for(const Nr of zr){const Hr=Nr.split("/").slice(1);let On=Xr;for(const Gn of Hr)On=On[Gn];for(const Gn in Jr){const mn=Jr[Gn];if(typeof mn!="object")continue;const{$data:Nn}=mn.definition,In=On[Gn];Nn&&In&&(On[Gn]=Jt(In))}}return Xr}_removeAllSchemas(Xr,zr){for(const Jr in Xr){const Nr=Xr[Jr];(!zr||zr.test(Jr))&&(typeof Nr=="string"?delete Xr[Jr]:Nr&&!Nr.meta&&(this._cache.delete(Nr.schema),delete Xr[Jr]))}}_addSchema(Xr,zr,Jr,Nr=this.opts.validateSchema,Hr=this.opts.addUsedSchema){let On;const{schemaId:Gn}=this.opts;if(typeof Xr=="object")On=Xr[Gn];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof Xr!="boolean")throw new Error("schema must be object or boolean")}let mn=this._cache.get(Xr);if(mn!==void 0)return mn;Jr=(0,pe.normalizeId)(On||Jr);const Nn=pe.getSchemaRefs.call(this,Xr,Jr);return mn=new le.SchemaEnv({schema:Xr,schemaId:Gn,meta:zr,baseId:Jr,localRefs:Nn}),this._cache.set(mn.schema,mn),Hr&&!Jr.startsWith("#")&&(Jr&&this._checkUnique(Jr),this.refs[Jr]=mn),Nr&&this.validateSchema(Xr,!0),mn}_checkUnique(Xr){if(this.schemas[Xr]||this.refs[Xr])throw new Error(`schema with key or id "${Xr}" already exists`)}_compileSchemaEnv(Xr){if(Xr.meta?this._compileMetaSchema(Xr):le.compileSchema.call(this,Xr),!Xr.validate)throw new Error("ajv implementation error");return Xr.validate}_compileMetaSchema(Xr){const zr=this.opts;this.opts=this._metaOpts;try{le.compileSchema.call(this,Xr)}finally{this.opts=zr}}};v.default=Lr,Lr.ValidationError=ae.default,Lr.MissingRefError=ce.default;function Vr(Xr,zr,Jr,Nr="error"){for(const Hr in Xr){const On=Hr;On in zr&&this.logger[Nr](`${Jr}: option ${Hr}. ${Xr[On]}`)}}function Gr(Xr){return Xr=(0,pe.normalizeId)(Xr),this.schemas[Xr]||this.refs[Xr]}function Ur(){const Xr=this.opts.schemas;if(!!Xr)if(Array.isArray(Xr))this.addSchema(Xr);else for(const zr in Xr)this.addSchema(Xr[zr],zr)}function Qr(){for(const Xr in this.opts.formats){const zr=this.opts.formats[Xr];zr&&this.addFormat(Xr,zr)}}function vn(Xr){if(Array.isArray(Xr)){this.addVocabulary(Xr);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const zr in Xr){const Jr=Xr[zr];Jr.keyword||(Jr.keyword=zr),this.addKeyword(Jr)}}function Yt(){const Xr={...this.opts};for(const zr of $r)delete Xr[zr];return Xr}var fn={log(){},warn(){},error(){}};function Xt(Xr){if(Xr===!1)return fn;if(Xr===void 0)return console;if(Xr.log&&Xr.warn&&Xr.error)return Xr;throw new Error("logger must implement log, warn and error methods")}var Qt=/^[a-z_$][a-z0-9_$:-]*$/i;function Kr(Xr,zr){const{RULES:Jr}=this;if((0,me.eachItem)(Xr,Nr=>{if(Jr.keywords[Nr])throw new Error(`Keyword ${Nr} is already defined`);if(!Qt.test(Nr))throw new Error(`Keyword ${Nr} has invalid name`)}),!!zr&&zr.$data&&!("code"in zr||"validate"in zr))throw new Error('$data keyword must have "code" or "validate" function')}function be(Xr,zr,Jr){var Nr;const Hr=zr==null?void 0:zr.post;if(Jr&&Hr)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:On}=this;let Gn=Hr?On.post:On.rules.find(({type:Nn})=>Nn===Jr);if(Gn||(Gn={type:Jr,rules:[]},On.rules.push(Gn)),On.keywords[Xr]=!0,!zr)return;const mn={keyword:Xr,definition:{...zr,type:(0,ye.getJSONTypes)(zr.type),schemaType:(0,ye.getJSONTypes)(zr.schemaType)}};zr.before?kr.call(this,Gn,mn,zr.before):Gn.rules.push(mn),On.all[Xr]=mn,(Nr=zr.implements)===null||Nr===void 0||Nr.forEach(Nn=>this.addKeyword(Nn))}function kr(Xr,zr,Jr){const Nr=Xr.rules.findIndex(Hr=>Hr.keyword===Jr);Nr>=0?Xr.rules.splice(Nr,0,zr):(Xr.rules.push(zr),this.logger.warn(`rule ${Jr} is not defined`))}function xr(Xr){let{metaSchema:zr}=Xr;zr!==void 0&&(Xr.$data&&this.opts.$data&&(zr=Jt(zr)),Xr.validateSchema=this.compile(zr,!0))}var Wr={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Jt(Xr){return{anyOf:[Xr,Wr]}}}}),require_id$1=__commonJS({"node_modules/ajv/dist/vocabularies/core/id.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};v.default=k}}),require_ref$1=__commonJS({"node_modules/ajv/dist/vocabularies/core/ref.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.callRef=v.getValidate=void 0;var k=require_ref_error$1(),ie=require_code2$1(),ae=require_codegen$1(),ce=require_names$1(),fe=require_compile$1(),le=require_util$2(),ve={keyword:"$ref",schemaType:"string",code(me){const{gen:Ee,schema:cr,it:Br}=me,{baseId:$r,schemaEnv:Pr,validateName:Or,opts:ur,self:jr}=Br,{root:Mr}=Pr;if((cr==="#"||cr==="#/")&&$r===Mr.baseId)return Vr();const Lr=fe.resolveRef.call(jr,Mr,$r,cr);if(Lr===void 0)throw new k.default(Br.opts.uriResolver,$r,cr);if(Lr instanceof fe.SchemaEnv)return Gr(Lr);return Ur(Lr);function Vr(){if(Pr===Mr)return ye(me,Or,Pr,Pr.$async);const Qr=Ee.scopeValue("root",{ref:Mr});return ye(me,(0,ae._)`${Qr}.validate`,Mr,Mr.$async)}function Gr(Qr){const vn=pe(me,Qr);ye(me,vn,Qr,Qr.$async)}function Ur(Qr){const vn=Ee.scopeValue("schema",ur.code.source===!0?{ref:Qr,code:(0,ae.stringify)(Qr)}:{ref:Qr}),Yt=Ee.name("valid"),fn=me.subschema({schema:Qr,dataTypes:[],schemaPath:ae.nil,topSchemaRef:vn,errSchemaPath:cr},Yt);me.mergeEvaluated(fn),me.ok(Yt)}}};function pe(me,Ee){const{gen:cr}=me;return Ee.validate?cr.scopeValue("validate",{ref:Ee.validate}):(0,ae._)`${cr.scopeValue("wrapper",{ref:Ee})}.validate`}v.getValidate=pe;function ye(me,Ee,cr,Br){const{gen:$r,it:Pr}=me,{allErrors:Or,schemaEnv:ur,opts:jr}=Pr,Mr=jr.passContext?ce.default.this:ae.nil;Br?Lr():Vr();function Lr(){if(!ur.$async)throw new Error("async schema referenced by sync schema");const Qr=$r.let("valid");$r.try(()=>{$r.code((0,ae._)`await ${(0,ie.callValidateCode)(me,Ee,Mr)}`),Ur(Ee),Or||$r.assign(Qr,!0)},vn=>{$r.if((0,ae._)`!(${vn} instanceof ${Pr.ValidationError})`,()=>$r.throw(vn)),Gr(vn),Or||$r.assign(Qr,!1)}),me.ok(Qr)}function Vr(){me.result((0,ie.callValidateCode)(me,Ee,Mr),()=>Ur(Ee),()=>Gr(Ee))}function Gr(Qr){const vn=(0,ae._)`${Qr}.errors`;$r.assign(ce.default.vErrors,(0,ae._)`${ce.default.vErrors} === null ? ${vn} : ${ce.default.vErrors}.concat(${vn})`),$r.assign(ce.default.errors,(0,ae._)`${ce.default.vErrors}.length`)}function Ur(Qr){var vn;if(!Pr.opts.unevaluated)return;const Yt=(vn=cr==null?void 0:cr.validate)===null||vn===void 0?void 0:vn.evaluated;if(Pr.props!==!0)if(Yt&&!Yt.dynamicProps)Yt.props!==void 0&&(Pr.props=le.mergeEvaluated.props($r,Yt.props,Pr.props));else{const fn=$r.var("props",(0,ae._)`${Qr}.evaluated.props`);Pr.props=le.mergeEvaluated.props($r,fn,Pr.props,ae.Name)}if(Pr.items!==!0)if(Yt&&!Yt.dynamicItems)Yt.items!==void 0&&(Pr.items=le.mergeEvaluated.items($r,Yt.items,Pr.items));else{const fn=$r.var("items",(0,ae._)`${Qr}.evaluated.items`);Pr.items=le.mergeEvaluated.items($r,fn,Pr.items,ae.Name)}}}v.callRef=ye,v.default=ve}}),require_core2$1=__commonJS({"node_modules/ajv/dist/vocabularies/core/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_id$1(),ie=require_ref$1(),ae=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",k.default,ie.default];v.default=ae}}),require_limitNumber$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=k.operators,ae={maximum:{okStr:"<=",ok:ie.LTE,fail:ie.GT},minimum:{okStr:">=",ok:ie.GTE,fail:ie.LT},exclusiveMaximum:{okStr:"<",ok:ie.LT,fail:ie.GTE},exclusiveMinimum:{okStr:">",ok:ie.GT,fail:ie.LTE}},ce={message:({keyword:le,schemaCode:ve})=>(0,k.str)`must be ${ae[le].okStr} ${ve}`,params:({keyword:le,schemaCode:ve})=>(0,k._)`{comparison: ${ae[le].okStr}, limit: ${ve}}`},fe={keyword:Object.keys(ae),type:"number",schemaType:"number",$data:!0,error:ce,code(le){const{keyword:ve,data:pe,schemaCode:ye}=le;le.fail$data((0,k._)`${pe} ${ae[ve].fail} ${ye} || isNaN(${pe})`)}};v.default=fe}}),require_multipleOf$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie={message:({schemaCode:ce})=>(0,k.str)`must be multiple of ${ce}`,params:({schemaCode:ce})=>(0,k._)`{multipleOf: ${ce}}`},ae={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:ie,code(ce){const{gen:fe,data:le,schemaCode:ve,it:pe}=ce,ye=pe.opts.multipleOfPrecision,me=fe.let("res"),Ee=ye?(0,k._)`Math.abs(Math.round(${me}) - ${me}) > 1e-${ye}`:(0,k._)`${me} !== parseInt(${me})`;ce.fail$data((0,k._)`(${ve} === 0 || (${me} = ${le}/${ve}, ${Ee}))`)}};v.default=ae}}),require_ucs2length$1=__commonJS({"node_modules/ajv/dist/runtime/ucs2length.js"(v){Object.defineProperty(v,"__esModule",{value:!0});function k(ie){const ae=ie.length;let ce=0,fe=0,le;for(;fe=55296&&le<=56319&&fe(0,k._)`{limit: ${le}}`},fe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:ce,code(le){const{keyword:ve,data:pe,schemaCode:ye,it:me}=le,Ee=ve==="maxLength"?k.operators.GT:k.operators.LT,cr=me.opts.unicode===!1?(0,k._)`${pe}.length`:(0,k._)`${(0,ie.useFunc)(le.gen,ae.default)}(${pe})`;le.fail$data((0,k._)`${cr} ${Ee} ${ye}`)}};v.default=fe}}),require_pattern$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/pattern.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2$1(),ie=require_codegen$1(),ae={message:({schemaCode:fe})=>(0,ie.str)`must match pattern "${fe}"`,params:({schemaCode:fe})=>(0,ie._)`{pattern: ${fe}}`},ce={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:ae,code(fe){const{data:le,$data:ve,schema:pe,schemaCode:ye,it:me}=fe,Ee=me.opts.unicodeRegExp?"u":"",cr=ve?(0,ie._)`(new RegExp(${ye}, ${Ee}))`:(0,k.usePattern)(fe,pe);fe.fail$data((0,ie._)`!${cr}.test(${le})`)}};v.default=ce}}),require_limitProperties$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie={message({keyword:ce,schemaCode:fe}){const le=ce==="maxProperties"?"more":"fewer";return(0,k.str)`must NOT have ${le} than ${fe} properties`},params:({schemaCode:ce})=>(0,k._)`{limit: ${ce}}`},ae={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:ie,code(ce){const{keyword:fe,data:le,schemaCode:ve}=ce,pe=fe==="maxProperties"?k.operators.GT:k.operators.LT;ce.fail$data((0,k._)`Object.keys(${le}).length ${pe} ${ve}`)}};v.default=ae}}),require_required$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/required.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2$1(),ie=require_codegen$1(),ae=require_util$2(),ce={message:({params:{missingProperty:le}})=>(0,ie.str)`must have required property '${le}'`,params:({params:{missingProperty:le}})=>(0,ie._)`{missingProperty: ${le}}`},fe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:ce,code(le){const{gen:ve,schema:pe,schemaCode:ye,data:me,$data:Ee,it:cr}=le,{opts:Br}=cr;if(!Ee&&pe.length===0)return;const $r=pe.length>=Br.loopRequired;if(cr.allErrors?Pr():Or(),Br.strictRequired){const Mr=le.parentSchema.properties,{definedProperties:Lr}=le.it;for(const Vr of pe)if((Mr==null?void 0:Mr[Vr])===void 0&&!Lr.has(Vr)){const Gr=cr.schemaEnv.baseId+cr.errSchemaPath,Ur=`required property "${Vr}" is not defined at "${Gr}" (strictRequired)`;(0,ae.checkStrictMode)(cr,Ur,cr.opts.strictRequired)}}function Pr(){if($r||Ee)le.block$data(ie.nil,ur);else for(const Mr of pe)(0,k.checkReportMissingProp)(le,Mr)}function Or(){const Mr=ve.let("missing");if($r||Ee){const Lr=ve.let("valid",!0);le.block$data(Lr,()=>jr(Mr,Lr)),le.ok(Lr)}else ve.if((0,k.checkMissingProp)(le,pe,Mr)),(0,k.reportMissingProp)(le,Mr),ve.else()}function ur(){ve.forOf("prop",ye,Mr=>{le.setParams({missingProperty:Mr}),ve.if((0,k.noPropertyInData)(ve,me,Mr,Br.ownProperties),()=>le.error())})}function jr(Mr,Lr){le.setParams({missingProperty:Mr}),ve.forOf(Mr,ye,()=>{ve.assign(Lr,(0,k.propertyInData)(ve,me,Mr,Br.ownProperties)),ve.if((0,ie.not)(Lr),()=>{le.error(),ve.break()})},ie.nil)}}};v.default=fe}}),require_limitItems$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/limitItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie={message({keyword:ce,schemaCode:fe}){const le=ce==="maxItems"?"more":"fewer";return(0,k.str)`must NOT have ${le} than ${fe} items`},params:({schemaCode:ce})=>(0,k._)`{limit: ${ce}}`},ae={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:ie,code(ce){const{keyword:fe,data:le,schemaCode:ve}=ce,pe=fe==="maxItems"?k.operators.GT:k.operators.LT;ce.fail$data((0,k._)`${le}.length ${pe} ${ve}`)}};v.default=ae}}),require_equal$1=__commonJS({"node_modules/ajv/dist/runtime/equal.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_fast_deep_equal$1();k.code='require("ajv/dist/runtime/equal").default',v.default=k}}),require_uniqueItems$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_dataType$1(),ie=require_codegen$1(),ae=require_util$2(),ce=require_equal$1(),fe={message:({params:{i:ve,j:pe}})=>(0,ie.str)`must NOT have duplicate items (items ## ${pe} and ${ve} are identical)`,params:({params:{i:ve,j:pe}})=>(0,ie._)`{i: ${ve}, j: ${pe}}`},le={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:fe,code(ve){const{gen:pe,data:ye,$data:me,schema:Ee,parentSchema:cr,schemaCode:Br,it:$r}=ve;if(!me&&!Ee)return;const Pr=pe.let("valid"),Or=cr.items?(0,k.getSchemaTypes)(cr.items):[];ve.block$data(Pr,ur,(0,ie._)`${Br} === false`),ve.ok(Pr);function ur(){const Vr=pe.let("i",(0,ie._)`${ye}.length`),Gr=pe.let("j");ve.setParams({i:Vr,j:Gr}),pe.assign(Pr,!0),pe.if((0,ie._)`${Vr} > 1`,()=>(jr()?Mr:Lr)(Vr,Gr))}function jr(){return Or.length>0&&!Or.some(Vr=>Vr==="object"||Vr==="array")}function Mr(Vr,Gr){const Ur=pe.name("item"),Qr=(0,k.checkDataTypes)(Or,Ur,$r.opts.strictNumbers,k.DataType.Wrong),vn=pe.const("indices",(0,ie._)`{}`);pe.for((0,ie._)`;${Vr}--;`,()=>{pe.let(Ur,(0,ie._)`${ye}[${Vr}]`),pe.if(Qr,(0,ie._)`continue`),Or.length>1&&pe.if((0,ie._)`typeof ${Ur} == "string"`,(0,ie._)`${Ur} += "_"`),pe.if((0,ie._)`typeof ${vn}[${Ur}] == "number"`,()=>{pe.assign(Gr,(0,ie._)`${vn}[${Ur}]`),ve.error(),pe.assign(Pr,!1).break()}).code((0,ie._)`${vn}[${Ur}] = ${Vr}`)})}function Lr(Vr,Gr){const Ur=(0,ae.useFunc)(pe,ce.default),Qr=pe.name("outer");pe.label(Qr).for((0,ie._)`;${Vr}--;`,()=>pe.for((0,ie._)`${Gr} = ${Vr}; ${Gr}--;`,()=>pe.if((0,ie._)`${Ur}(${ye}[${Vr}], ${ye}[${Gr}])`,()=>{ve.error(),pe.assign(Pr,!1).break(Qr)})))}}};v.default=le}}),require_const$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/const.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_util$2(),ae=require_equal$1(),ce={message:"must be equal to constant",params:({schemaCode:le})=>(0,k._)`{allowedValue: ${le}}`},fe={keyword:"const",$data:!0,error:ce,code(le){const{gen:ve,data:pe,$data:ye,schemaCode:me,schema:Ee}=le;ye||Ee&&typeof Ee=="object"?le.fail$data((0,k._)`!${(0,ie.useFunc)(ve,ae.default)}(${pe}, ${me})`):le.fail((0,k._)`${Ee} !== ${pe}`)}};v.default=fe}}),require_enum$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/enum.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_util$2(),ae=require_equal$1(),ce={message:"must be equal to one of the allowed values",params:({schemaCode:le})=>(0,k._)`{allowedValues: ${le}}`},fe={keyword:"enum",schemaType:"array",$data:!0,error:ce,code(le){const{gen:ve,data:pe,$data:ye,schema:me,schemaCode:Ee,it:cr}=le;if(!ye&&me.length===0)throw new Error("enum must have non-empty array");const Br=me.length>=cr.opts.loopEnum;let $r;const Pr=()=>$r!=null?$r:$r=(0,ie.useFunc)(ve,ae.default);let Or;if(Br||ye)Or=ve.let("valid"),le.block$data(Or,ur);else{if(!Array.isArray(me))throw new Error("ajv implementation error");const Mr=ve.const("vSchema",Ee);Or=(0,k.or)(...me.map((Lr,Vr)=>jr(Mr,Vr)))}le.pass(Or);function ur(){ve.assign(Or,!1),ve.forOf("v",Ee,Mr=>ve.if((0,k._)`${Pr()}(${pe}, ${Mr})`,()=>ve.assign(Or,!0).break()))}function jr(Mr,Lr){const Vr=me[Lr];return typeof Vr=="object"&&Vr!==null?(0,k._)`${Pr()}(${pe}, ${Mr}[${Lr}])`:(0,k._)`${pe} === ${Vr}`}}};v.default=fe}}),require_validation$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_limitNumber$1(),ie=require_multipleOf$1(),ae=require_limitLength$1(),ce=require_pattern$1(),fe=require_limitProperties$1(),le=require_required$1(),ve=require_limitItems$1(),pe=require_uniqueItems$1(),ye=require_const$1(),me=require_enum$1(),Ee=[k.default,ie.default,ae.default,ce.default,fe.default,le.default,ve.default,pe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ye.default,me.default];v.default=Ee}}),require_additionalItems$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateAdditionalItems=void 0;var k=require_codegen$1(),ie=require_util$2(),ae={message:({params:{len:le}})=>(0,k.str)`must NOT have more than ${le} items`,params:({params:{len:le}})=>(0,k._)`{limit: ${le}}`},ce={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:ae,code(le){const{parentSchema:ve,it:pe}=le,{items:ye}=ve;if(!Array.isArray(ye)){(0,ie.checkStrictMode)(pe,'"additionalItems" is ignored when "items" is not an array of schemas');return}fe(le,ye)}};function fe(le,ve){const{gen:pe,schema:ye,data:me,keyword:Ee,it:cr}=le;cr.items=!0;const Br=pe.const("len",(0,k._)`${me}.length`);if(ye===!1)le.setParams({len:ve.length}),le.pass((0,k._)`${Br} <= ${ve.length}`);else if(typeof ye=="object"&&!(0,ie.alwaysValidSchema)(cr,ye)){const Pr=pe.var("valid",(0,k._)`${Br} <= ${ve.length}`);pe.if((0,k.not)(Pr),()=>$r(Pr)),le.ok(Pr)}function $r(Pr){pe.forRange("i",ve.length,Br,Or=>{le.subschema({keyword:Ee,dataProp:Or,dataPropType:ie.Type.Num},Pr),cr.allErrors||pe.if((0,k.not)(Pr),()=>pe.break())})}}v.validateAdditionalItems=fe,v.default=ce}}),require_items$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/items.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateTuple=void 0;var k=require_codegen$1(),ie=require_util$2(),ae=require_code2$1(),ce={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(le){const{schema:ve,it:pe}=le;if(Array.isArray(ve))return fe(le,"additionalItems",ve);pe.items=!0,!(0,ie.alwaysValidSchema)(pe,ve)&&le.ok((0,ae.validateArray)(le))}};function fe(le,ve,pe=le.schema){const{gen:ye,parentSchema:me,data:Ee,keyword:cr,it:Br}=le;Or(me),Br.opts.unevaluated&&pe.length&&Br.items!==!0&&(Br.items=ie.mergeEvaluated.items(ye,pe.length,Br.items));const $r=ye.name("valid"),Pr=ye.const("len",(0,k._)`${Ee}.length`);pe.forEach((ur,jr)=>{(0,ie.alwaysValidSchema)(Br,ur)||(ye.if((0,k._)`${Pr} > ${jr}`,()=>le.subschema({keyword:cr,schemaProp:jr,dataProp:jr},$r)),le.ok($r))});function Or(ur){const{opts:jr,errSchemaPath:Mr}=Br,Lr=pe.length,Vr=Lr===ur.minItems&&(Lr===ur.maxItems||ur[ve]===!1);if(jr.strictTuples&&!Vr){const Gr=`"${cr}" is ${Lr}-tuple, but minItems or maxItems/${ve} are not specified or different at path "${Mr}"`;(0,ie.checkStrictMode)(Br,Gr,jr.strictTuples)}}}v.validateTuple=fe,v.default=ce}}),require_prefixItems$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_items$1(),ie={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:ae=>(0,k.validateTuple)(ae,"items")};v.default=ie}}),require_items2020$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/items2020.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_util$2(),ae=require_code2$1(),ce=require_additionalItems$1(),fe={message:({params:{len:ve}})=>(0,k.str)`must NOT have more than ${ve} items`,params:({params:{len:ve}})=>(0,k._)`{limit: ${ve}}`},le={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:fe,code(ve){const{schema:pe,parentSchema:ye,it:me}=ve,{prefixItems:Ee}=ye;me.items=!0,!(0,ie.alwaysValidSchema)(me,pe)&&(Ee?(0,ce.validateAdditionalItems)(ve,Ee):ve.ok((0,ae.validateArray)(ve)))}};v.default=le}}),require_contains$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/contains.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_util$2(),ae={message:({params:{min:fe,max:le}})=>le===void 0?(0,k.str)`must contain at least ${fe} valid item(s)`:(0,k.str)`must contain at least ${fe} and no more than ${le} valid item(s)`,params:({params:{min:fe,max:le}})=>le===void 0?(0,k._)`{minContains: ${fe}}`:(0,k._)`{minContains: ${fe}, maxContains: ${le}}`},ce={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:ae,code(fe){const{gen:le,schema:ve,parentSchema:pe,data:ye,it:me}=fe;let Ee,cr;const{minContains:Br,maxContains:$r}=pe;me.opts.next?(Ee=Br===void 0?1:Br,cr=$r):Ee=1;const Pr=le.const("len",(0,k._)`${ye}.length`);if(fe.setParams({min:Ee,max:cr}),cr===void 0&&Ee===0){(0,ie.checkStrictMode)(me,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(cr!==void 0&&Ee>cr){(0,ie.checkStrictMode)(me,'"minContains" > "maxContains" is always invalid'),fe.fail();return}if((0,ie.alwaysValidSchema)(me,ve)){let Lr=(0,k._)`${Pr} >= ${Ee}`;cr!==void 0&&(Lr=(0,k._)`${Lr} && ${Pr} <= ${cr}`),fe.pass(Lr);return}me.items=!0;const Or=le.name("valid");cr===void 0&&Ee===1?jr(Or,()=>le.if(Or,()=>le.break())):Ee===0?(le.let(Or,!0),cr!==void 0&&le.if((0,k._)`${ye}.length > 0`,ur)):(le.let(Or,!1),ur()),fe.result(Or,()=>fe.reset());function ur(){const Lr=le.name("_valid"),Vr=le.let("count",0);jr(Lr,()=>le.if(Lr,()=>Mr(Vr)))}function jr(Lr,Vr){le.forRange("i",0,Pr,Gr=>{fe.subschema({keyword:"contains",dataProp:Gr,dataPropType:ie.Type.Num,compositeRule:!0},Lr),Vr()})}function Mr(Lr){le.code((0,k._)`${Lr}++`),cr===void 0?le.if((0,k._)`${Lr} >= ${Ee}`,()=>le.assign(Or,!0).break()):(le.if((0,k._)`${Lr} > ${cr}`,()=>le.assign(Or,!1).break()),Ee===1?le.assign(Or,!0):le.if((0,k._)`${Lr} >= ${Ee}`,()=>le.assign(Or,!0)))}}};v.default=ce}}),require_dependencies$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateSchemaDeps=v.validatePropertyDeps=v.error=void 0;var k=require_codegen$1(),ie=require_util$2(),ae=require_code2$1();v.error={message:({params:{property:pe,depsCount:ye,deps:me}})=>{const Ee=ye===1?"property":"properties";return(0,k.str)`must have ${Ee} ${me} when property ${pe} is present`},params:({params:{property:pe,depsCount:ye,deps:me,missingProperty:Ee}})=>(0,k._)`{property: ${pe}, +`)},hn.prototype.renderPartial=function(Xt,Kr,be,kr){if(!!be){var xr=this.getConfigTags(kr),Wr=ce(be)?be(Xt[1]):be[Xt[1]];if(Wr!=null){var Jt=Xt[6],Xr=Xt[5],zr=Xt[4],Jr=Wr;Xr==0&&zr&&(Jr=this.indentPartial(Wr,zr,Jt));var Nr=this.parse(Jr,xr);return this.renderTokens(Nr,Kr,be,Jr,kr)}}},hn.prototype.unescapedValue=function(Xt,Kr){var be=Kr.lookup(Xt[1]);if(be!=null)return be},hn.prototype.escapedValue=function(Xt,Kr,be){var kr=this.getConfigEscape(be)||Yt.escape,xr=Kr.lookup(Xt[1]);if(xr!=null)return typeof xr=="number"&&kr===Yt.escape?String(xr):kr(xr)},hn.prototype.rawValue=function(Xt){return Xt[1]},hn.prototype.getConfigTags=function(Xt){return ae(Xt)?Xt:Xt&&typeof Xt=="object"?Xt.tags:void 0},hn.prototype.getConfigEscape=function(Xt){if(Xt&&typeof Xt=="object"&&!ae(Xt))return Xt.escape};var Yt={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(Qt){fn.templateCache=Qt},get templateCache(){return fn.templateCache}},fn=new hn;return Yt.clearCache=function(){return fn.clearCache()},Yt.parse=function(Xt,Kr){return fn.parse(Xt,Kr)},Yt.render=function(Xt,Kr,be,kr){if(typeof Xt!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+fe(Xt)+'" was given as the first argument for mustache#render(template, view, partials)');return fn.render(Xt,Kr,be,kr)},Yt.escape=$r,Yt.Scanner=Ur,Yt.Context=Qr,Yt.Writer=hn,Yt})}}),require_format$2=__commonJS({"node_modules/@near-js/utils/lib/format.js"(v){var k=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.parseNearAmount=v.formatNearAmount=v.NEAR_NOMINATION=v.NEAR_NOMINATION_EXP=void 0;var ie=k(require_bn$2());v.NEAR_NOMINATION_EXP=24,v.NEAR_NOMINATION=new ie.default("10",10).pow(new ie.default(v.NEAR_NOMINATION_EXP,10));var ae=[],ce=new ie.default(10);for(let Ee=0,cr=new ie.default(5);Ee0&&Br.iadd(ae[Ar])}Ee=Br.toString();const $r=Ee.substring(0,Ee.length-v.NEAR_NOMINATION_EXP)||"0",Pr=Ee.substring(Ee.length-v.NEAR_NOMINATION_EXP).padStart(v.NEAR_NOMINATION_EXP,"0").substring(0,cr);return pe(`${me($r)}.${Pr}`)}v.formatNearAmount=fe;function le(Ee){if(!Ee)return null;Ee=ve(Ee);const cr=Ee.split("."),Br=cr[0],$r=cr[1]||"";if(cr.length>2||$r.length>v.NEAR_NOMINATION_EXP)throw new Error(`Cannot parse '${Ee}' as NEAR amount`);return ye(Br+$r.padEnd(v.NEAR_NOMINATION_EXP,"0"))}v.parseNearAmount=le;function ve(Ee){return Ee.replace(/,/g,"").trim()}function pe(Ee){return Ee.replace(/\.?0*$/,"")}function ye(Ee){return Ee=Ee.replace(/^0+/,""),Ee===""?"0":Ee}function me(Ee){const cr=/(-?\d+)(\d{3})/;for(;cr.test(Ee);)Ee=Ee.replace(cr,"$1,$2");return Ee}}}),require_error_messages$2=__commonJS({"node_modules/@near-js/utils/lib/errors/error_messages.json"(v,k){k.exports={GasLimitExceeded:"Exceeded the maximum amount of gas allowed to burn per contract",MethodEmptyName:"Method name is empty",WasmerCompileError:"Wasmer compilation error: {{msg}}",GuestPanic:"Smart contract panicked: {{panic_msg}}",Memory:"Error creating Wasm memory",GasExceeded:"Exceeded the prepaid gas",MethodUTF8Error:"Method name is not valid UTF8 string",BadUTF16:"String encoding is bad UTF-16 sequence",WasmTrap:"WebAssembly trap: {{msg}}",GasInstrumentation:"Gas instrumentation failed or contract has denied instructions.",InvalidPromiseIndex:"{{promise_idx}} does not correspond to existing promises",InvalidPromiseResultIndex:"Accessed invalid promise result index: {{result_idx}}",Deserialization:"Error happened while deserializing the module",MethodNotFound:"Contract method is not found",InvalidRegisterId:"Accessed invalid register id: {{register_id}}",InvalidReceiptIndex:"VM Logic returned an invalid receipt index: {{receipt_index}}",EmptyMethodName:"Method name is empty in contract call",CannotReturnJointPromise:"Returning joint promise is currently prohibited",StackHeightInstrumentation:"Stack instrumentation failed",CodeDoesNotExist:"Cannot find contract code for account {{account_id}}",MethodInvalidSignature:"Invalid method signature",IntegerOverflow:"Integer overflow happened during contract execution",MemoryAccessViolation:"MemoryAccessViolation",InvalidIteratorIndex:"Iterator index {{iterator_index}} does not exist",IteratorWasInvalidated:"Iterator {{iterator_index}} was invalidated after its creation by performing a mutable operation on trie",InvalidAccountId:"VM Logic returned an invalid account id",Serialization:"Error happened while serializing the module",CannotAppendActionToJointPromise:"Actions can only be appended to non-joint promise.",InternalMemoryDeclared:"Internal memory declaration has been found in the module",Instantiate:"Error happened during instantiation",ProhibitedInView:"{{method_name}} is not allowed in view calls",InvalidMethodName:"VM Logic returned an invalid method name",BadUTF8:"String encoding is bad UTF-8 sequence",BalanceExceeded:"Exceeded the account balance",LinkError:"Wasm contract link error: {{msg}}",InvalidPublicKey:"VM Logic provided an invalid public key",ActorNoPermission:"Actor {{actor_id}} doesn't have permission to account {{account_id}} to complete the action",LackBalanceForState:"The account {{account_id}} wouldn't have enough balance to cover storage, required to have {{amount}} yoctoNEAR more",ReceiverMismatch:"Wrong AccessKey used for transaction: transaction is sent to receiver_id={{tx_receiver}}, but is signed with function call access key that restricted to only use with receiver_id={{ak_receiver}}. Either change receiver_id in your transaction or switch to use a FullAccessKey.",CostOverflow:"Transaction gas or balance cost is too high",InvalidSignature:"Transaction is not signed with the given public key",AccessKeyNotFound:`Signer "{{account_id}}" doesn't have access key with the given public_key {{public_key}}`,NotEnoughBalance:"Sender {{signer_id}} does not have enough balance {{#formatNear}}{{balance}}{{/formatNear}} for operation costing {{#formatNear}}{{cost}}{{/formatNear}}",NotEnoughAllowance:"Access Key {account_id}:{public_key} does not have enough balance {{#formatNear}}{{allowance}}{{/formatNear}} for transaction costing {{#formatNear}}{{cost}}{{/formatNear}}",Expired:"Transaction has expired",DeleteAccountStaking:"Account {{account_id}} is staking and can not be deleted",SignerDoesNotExist:"Signer {{signer_id}} does not exist",TriesToStake:"Account {{account_id}} tried to stake {{#formatNear}}{{stake}}{{/formatNear}}, but has staked {{#formatNear}}{{locked}}{{/formatNear}} and only has {{#formatNear}}{{balance}}{{/formatNear}}",AddKeyAlreadyExists:"The public key {{public_key}} is already used for an existing access key",InvalidSigner:"Invalid signer account ID {{signer_id}} according to requirements",CreateAccountNotAllowed:"The new account_id {{account_id}} can't be created by {{predecessor_id}}",RequiresFullAccess:"The transaction contains more then one action, but it was signed with an access key which allows transaction to apply only one specific action. To apply more then one actions TX must be signed with a full access key",TriesToUnstake:"Account {{account_id}} is not yet staked, but tried to unstake",InvalidNonce:"Transaction nonce {{tx_nonce}} must be larger than nonce of the used access key {{ak_nonce}}",AccountAlreadyExists:"Can't create a new account {{account_id}}, because it already exists",InvalidChain:"Transaction parent block hash doesn't belong to the current chain",AccountDoesNotExist:"Can't complete the action because account {{account_id}} doesn't exist",MethodNameMismatch:"Transaction method name {{method_name}} isn't allowed by the access key",DeleteAccountHasRent:"Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover the rent",DeleteAccountHasEnoughBalance:"Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover it's storage",InvalidReceiver:"Invalid receiver account ID {{receiver_id}} according to requirements",DeleteKeyDoesNotExist:"Account {{account_id}} tries to remove an access key that doesn't exist",Timeout:"Timeout exceeded",Closed:"Connection closed"}}}),require_rpc_error_schema$2=__commonJS({"node_modules/@near-js/utils/lib/errors/rpc_error_schema.json"(v,k){k.exports={schema:{BadUTF16:{name:"BadUTF16",subtypes:[],props:{}},BadUTF8:{name:"BadUTF8",subtypes:[],props:{}},BalanceExceeded:{name:"BalanceExceeded",subtypes:[],props:{}},BreakpointTrap:{name:"BreakpointTrap",subtypes:[],props:{}},CacheError:{name:"CacheError",subtypes:["ReadError","WriteError","DeserializationError","SerializationError"],props:{}},CallIndirectOOB:{name:"CallIndirectOOB",subtypes:[],props:{}},CannotAppendActionToJointPromise:{name:"CannotAppendActionToJointPromise",subtypes:[],props:{}},CannotReturnJointPromise:{name:"CannotReturnJointPromise",subtypes:[],props:{}},CodeDoesNotExist:{name:"CodeDoesNotExist",subtypes:[],props:{account_id:""}},CompilationError:{name:"CompilationError",subtypes:["CodeDoesNotExist","PrepareError","WasmerCompileError"],props:{}},ContractSizeExceeded:{name:"ContractSizeExceeded",subtypes:[],props:{limit:"",size:""}},Deprecated:{name:"Deprecated",subtypes:[],props:{method_name:""}},Deserialization:{name:"Deserialization",subtypes:[],props:{}},DeserializationError:{name:"DeserializationError",subtypes:[],props:{}},EmptyMethodName:{name:"EmptyMethodName",subtypes:[],props:{}},FunctionCallError:{name:"FunctionCallError",subtypes:["CompilationError","LinkError","MethodResolveError","WasmTrap","WasmUnknownError","HostError","EvmError"],props:{}},GasExceeded:{name:"GasExceeded",subtypes:[],props:{}},GasInstrumentation:{name:"GasInstrumentation",subtypes:[],props:{}},GasLimitExceeded:{name:"GasLimitExceeded",subtypes:[],props:{}},GenericTrap:{name:"GenericTrap",subtypes:[],props:{}},GuestPanic:{name:"GuestPanic",subtypes:[],props:{panic_msg:""}},HostError:{name:"HostError",subtypes:["BadUTF16","BadUTF8","GasExceeded","GasLimitExceeded","BalanceExceeded","EmptyMethodName","GuestPanic","IntegerOverflow","InvalidPromiseIndex","CannotAppendActionToJointPromise","CannotReturnJointPromise","InvalidPromiseResultIndex","InvalidRegisterId","IteratorWasInvalidated","MemoryAccessViolation","InvalidReceiptIndex","InvalidIteratorIndex","InvalidAccountId","InvalidMethodName","InvalidPublicKey","ProhibitedInView","NumberOfLogsExceeded","KeyLengthExceeded","ValueLengthExceeded","TotalLogLengthExceeded","NumberPromisesExceeded","NumberInputDataDependenciesExceeded","ReturnedValueLengthExceeded","ContractSizeExceeded","Deprecated"],props:{}},IllegalArithmetic:{name:"IllegalArithmetic",subtypes:[],props:{}},IncorrectCallIndirectSignature:{name:"IncorrectCallIndirectSignature",subtypes:[],props:{}},Instantiate:{name:"Instantiate",subtypes:[],props:{}},IntegerOverflow:{name:"IntegerOverflow",subtypes:[],props:{}},InternalMemoryDeclared:{name:"InternalMemoryDeclared",subtypes:[],props:{}},InvalidAccountId:{name:"InvalidAccountId",subtypes:[],props:{account_id:""}},InvalidIteratorIndex:{name:"InvalidIteratorIndex",subtypes:[],props:{iterator_index:""}},InvalidMethodName:{name:"InvalidMethodName",subtypes:[],props:{}},InvalidPromiseIndex:{name:"InvalidPromiseIndex",subtypes:[],props:{promise_idx:""}},InvalidPromiseResultIndex:{name:"InvalidPromiseResultIndex",subtypes:[],props:{result_idx:""}},InvalidPublicKey:{name:"InvalidPublicKey",subtypes:[],props:{}},InvalidReceiptIndex:{name:"InvalidReceiptIndex",subtypes:[],props:{receipt_index:""}},InvalidRegisterId:{name:"InvalidRegisterId",subtypes:[],props:{register_id:""}},IteratorWasInvalidated:{name:"IteratorWasInvalidated",subtypes:[],props:{iterator_index:""}},KeyLengthExceeded:{name:"KeyLengthExceeded",subtypes:[],props:{length:"",limit:""}},LinkError:{name:"LinkError",subtypes:[],props:{msg:""}},Memory:{name:"Memory",subtypes:[],props:{}},MemoryAccessViolation:{name:"MemoryAccessViolation",subtypes:[],props:{}},MemoryOutOfBounds:{name:"MemoryOutOfBounds",subtypes:[],props:{}},MethodEmptyName:{name:"MethodEmptyName",subtypes:[],props:{}},MethodInvalidSignature:{name:"MethodInvalidSignature",subtypes:[],props:{}},MethodNotFound:{name:"MethodNotFound",subtypes:[],props:{}},MethodResolveError:{name:"MethodResolveError",subtypes:["MethodEmptyName","MethodUTF8Error","MethodNotFound","MethodInvalidSignature"],props:{}},MethodUTF8Error:{name:"MethodUTF8Error",subtypes:[],props:{}},MisalignedAtomicAccess:{name:"MisalignedAtomicAccess",subtypes:[],props:{}},NumberInputDataDependenciesExceeded:{name:"NumberInputDataDependenciesExceeded",subtypes:[],props:{limit:"",number_of_input_data_dependencies:""}},NumberOfLogsExceeded:{name:"NumberOfLogsExceeded",subtypes:[],props:{limit:""}},NumberPromisesExceeded:{name:"NumberPromisesExceeded",subtypes:[],props:{limit:"",number_of_promises:""}},PrepareError:{name:"PrepareError",subtypes:["Serialization","Deserialization","InternalMemoryDeclared","GasInstrumentation","StackHeightInstrumentation","Instantiate","Memory"],props:{}},ProhibitedInView:{name:"ProhibitedInView",subtypes:[],props:{method_name:""}},ReadError:{name:"ReadError",subtypes:[],props:{}},ReturnedValueLengthExceeded:{name:"ReturnedValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},Serialization:{name:"Serialization",subtypes:[],props:{}},SerializationError:{name:"SerializationError",subtypes:[],props:{hash:""}},StackHeightInstrumentation:{name:"StackHeightInstrumentation",subtypes:[],props:{}},StackOverflow:{name:"StackOverflow",subtypes:[],props:{}},TotalLogLengthExceeded:{name:"TotalLogLengthExceeded",subtypes:[],props:{length:"",limit:""}},Unreachable:{name:"Unreachable",subtypes:[],props:{}},ValueLengthExceeded:{name:"ValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},WasmTrap:{name:"WasmTrap",subtypes:["Unreachable","IncorrectCallIndirectSignature","MemoryOutOfBounds","CallIndirectOOB","IllegalArithmetic","MisalignedAtomicAccess","BreakpointTrap","StackOverflow","GenericTrap"],props:{}},WasmUnknownError:{name:"WasmUnknownError",subtypes:[],props:{}},WasmerCompileError:{name:"WasmerCompileError",subtypes:[],props:{msg:""}},WriteError:{name:"WriteError",subtypes:[],props:{}},AccessKeyNotFound:{name:"AccessKeyNotFound",subtypes:[],props:{account_id:"",public_key:""}},AccountAlreadyExists:{name:"AccountAlreadyExists",subtypes:[],props:{account_id:""}},AccountDoesNotExist:{name:"AccountDoesNotExist",subtypes:[],props:{account_id:""}},ActionError:{name:"ActionError",subtypes:["AccountAlreadyExists","AccountDoesNotExist","CreateAccountOnlyByRegistrar","CreateAccountNotAllowed","ActorNoPermission","DeleteKeyDoesNotExist","AddKeyAlreadyExists","DeleteAccountStaking","LackBalanceForState","TriesToUnstake","TriesToStake","InsufficientStake","FunctionCallError","NewReceiptValidationError","OnlyImplicitAccountCreationAllowed"],props:{index:""}},ActionsValidationError:{name:"ActionsValidationError",subtypes:["DeleteActionMustBeFinal","TotalPrepaidGasExceeded","TotalNumberOfActionsExceeded","AddKeyMethodNamesNumberOfBytesExceeded","AddKeyMethodNameLengthExceeded","IntegerOverflow","InvalidAccountId","ContractSizeExceeded","FunctionCallMethodNameLengthExceeded","FunctionCallArgumentsLengthExceeded","UnsuitableStakingKey","FunctionCallZeroAttachedGas"],props:{}},ActorNoPermission:{name:"ActorNoPermission",subtypes:[],props:{account_id:"",actor_id:""}},AddKeyAlreadyExists:{name:"AddKeyAlreadyExists",subtypes:[],props:{account_id:"",public_key:""}},AddKeyMethodNameLengthExceeded:{name:"AddKeyMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},AddKeyMethodNamesNumberOfBytesExceeded:{name:"AddKeyMethodNamesNumberOfBytesExceeded",subtypes:[],props:{limit:"",total_number_of_bytes:""}},BalanceMismatchError:{name:"BalanceMismatchError",subtypes:[],props:{final_accounts_balance:"",final_postponed_receipts_balance:"",incoming_receipts_balance:"",incoming_validator_rewards:"",initial_accounts_balance:"",initial_postponed_receipts_balance:"",new_delayed_receipts_balance:"",other_burnt_amount:"",outgoing_receipts_balance:"",processed_delayed_receipts_balance:"",slashed_burnt_amount:"",tx_burnt_amount:""}},CostOverflow:{name:"CostOverflow",subtypes:[],props:{}},CreateAccountNotAllowed:{name:"CreateAccountNotAllowed",subtypes:[],props:{account_id:"",predecessor_id:""}},CreateAccountOnlyByRegistrar:{name:"CreateAccountOnlyByRegistrar",subtypes:[],props:{account_id:"",predecessor_id:"",registrar_account_id:""}},DeleteAccountStaking:{name:"DeleteAccountStaking",subtypes:[],props:{account_id:""}},DeleteActionMustBeFinal:{name:"DeleteActionMustBeFinal",subtypes:[],props:{}},DeleteKeyDoesNotExist:{name:"DeleteKeyDoesNotExist",subtypes:[],props:{account_id:"",public_key:""}},DepositWithFunctionCall:{name:"DepositWithFunctionCall",subtypes:[],props:{}},Expired:{name:"Expired",subtypes:[],props:{}},FunctionCallArgumentsLengthExceeded:{name:"FunctionCallArgumentsLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallMethodNameLengthExceeded:{name:"FunctionCallMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallZeroAttachedGas:{name:"FunctionCallZeroAttachedGas",subtypes:[],props:{}},InsufficientStake:{name:"InsufficientStake",subtypes:[],props:{account_id:"",minimum_stake:"",stake:""}},InvalidAccessKeyError:{name:"InvalidAccessKeyError",subtypes:["AccessKeyNotFound","ReceiverMismatch","MethodNameMismatch","RequiresFullAccess","NotEnoughAllowance","DepositWithFunctionCall"],props:{}},InvalidChain:{name:"InvalidChain",subtypes:[],props:{}},InvalidDataReceiverId:{name:"InvalidDataReceiverId",subtypes:[],props:{account_id:""}},InvalidNonce:{name:"InvalidNonce",subtypes:[],props:{ak_nonce:"",tx_nonce:""}},InvalidPredecessorId:{name:"InvalidPredecessorId",subtypes:[],props:{account_id:""}},InvalidReceiverId:{name:"InvalidReceiverId",subtypes:[],props:{account_id:""}},InvalidSignature:{name:"InvalidSignature",subtypes:[],props:{}},InvalidSignerId:{name:"InvalidSignerId",subtypes:[],props:{account_id:""}},InvalidTxError:{name:"InvalidTxError",subtypes:["InvalidAccessKeyError","InvalidSignerId","SignerDoesNotExist","InvalidNonce","InvalidReceiverId","InvalidSignature","NotEnoughBalance","LackBalanceForState","CostOverflow","InvalidChain","Expired","ActionsValidation"],props:{}},LackBalanceForState:{name:"LackBalanceForState",subtypes:[],props:{account_id:"",amount:""}},MethodNameMismatch:{name:"MethodNameMismatch",subtypes:[],props:{method_name:""}},NotEnoughAllowance:{name:"NotEnoughAllowance",subtypes:[],props:{account_id:"",allowance:"",cost:"",public_key:""}},NotEnoughBalance:{name:"NotEnoughBalance",subtypes:[],props:{balance:"",cost:"",signer_id:""}},OnlyImplicitAccountCreationAllowed:{name:"OnlyImplicitAccountCreationAllowed",subtypes:[],props:{account_id:""}},ReceiptValidationError:{name:"ReceiptValidationError",subtypes:["InvalidPredecessorId","InvalidReceiverId","InvalidSignerId","InvalidDataReceiverId","ReturnedValueLengthExceeded","NumberInputDataDependenciesExceeded","ActionsValidation"],props:{}},ReceiverMismatch:{name:"ReceiverMismatch",subtypes:[],props:{ak_receiver:"",tx_receiver:""}},RequiresFullAccess:{name:"RequiresFullAccess",subtypes:[],props:{}},SignerDoesNotExist:{name:"SignerDoesNotExist",subtypes:[],props:{signer_id:""}},TotalNumberOfActionsExceeded:{name:"TotalNumberOfActionsExceeded",subtypes:[],props:{limit:"",total_number_of_actions:""}},TotalPrepaidGasExceeded:{name:"TotalPrepaidGasExceeded",subtypes:[],props:{limit:"",total_prepaid_gas:""}},TriesToStake:{name:"TriesToStake",subtypes:[],props:{account_id:"",balance:"",locked:"",stake:""}},TriesToUnstake:{name:"TriesToUnstake",subtypes:[],props:{account_id:""}},TxExecutionError:{name:"TxExecutionError",subtypes:["ActionError","InvalidTxError"],props:{}},UnsuitableStakingKey:{name:"UnsuitableStakingKey",subtypes:[],props:{public_key:""}},Closed:{name:"Closed",subtypes:[],props:{}},InternalError:{name:"InternalError",subtypes:[],props:{}},ServerError:{name:"ServerError",subtypes:["TxExecutionError","Timeout","Closed","InternalError"],props:{}},Timeout:{name:"Timeout",subtypes:[],props:{}}}}}}),require_rpc_errors$2=__commonJS({"node_modules/@near-js/utils/lib/errors/rpc_errors.js"(v){var k=v&&v.__importDefault||function(ur){return ur&&ur.__esModule?ur:{default:ur}};Object.defineProperty(v,"__esModule",{value:!0}),v.getErrorTypeFromErrorMessage=v.formatError=v.parseResultError=v.parseRpcError=v.ServerError=void 0;var ie=require_lib2$1(),ae=k(require_mustache$1()),ce=require_format$2(),fe=k(require_error_messages$2()),le=k(require_rpc_error_schema$2()),ve={formatNear:()=>(ur,jr)=>(0,ce.formatNearAmount)(jr(ur))},pe=class extends ie.TypedError{};v.ServerError=pe;var ye=class extends pe{};function me(ur){const jr={},Mr=Br(ur,le.default.schema,jr,""),Lr=new pe(cr(Mr,jr),Mr);return Object.assign(Lr,jr),Lr}v.parseRpcError=me;function Ee(ur){const jr=me(ur.status.Failure),Mr=new ye;return Object.assign(Mr,jr),Mr.type=jr.type,Mr.message=jr.message,Mr.transaction_outcome=ur.transaction_outcome,Mr}v.parseResultError=Ee;function cr(ur,jr){return typeof fe.default[ur]=="string"?ae.default.render(fe.default[ur],Object.assign(Object.assign({},jr),ve)):JSON.stringify(jr)}v.formatError=cr;function Br(ur,jr,Mr,Lr){let Vr,Gr,Ur;for(const Qr in jr){if(Ar(ur[Qr]))return ur[Qr];if(Pr(ur[Qr]))Vr=ur[Qr],Gr=jr[Qr],Ur=Qr;else if(Pr(ur.kind)&&Pr(ur.kind[Qr]))Vr=ur.kind[Qr],Gr=jr[Qr],Ur=Qr;else continue}if(Vr&&Gr){for(const Qr of Object.keys(Gr.props))Mr[Qr]=Vr[Qr];return Br(Vr,jr,Mr,Ur)}else return Mr.kind=ur,Lr}function $r(ur,jr){switch(!0){case/^account .*? does not exist while viewing$/.test(ur):return"AccountDoesNotExist";case/^Account .*? doesn't exist$/.test(ur):return"AccountDoesNotExist";case/^access key .*? does not exist while viewing$/.test(ur):return"AccessKeyDoesNotExist";case/wasm execution failed with error: FunctionCallError\(CompilationError\(CodeDoesNotExist/.test(ur):return"CodeDoesNotExist";case/Transaction nonce \d+ must be larger than nonce of the used access key \d+/.test(ur):return"InvalidNonce";default:return jr}}v.getErrorTypeFromErrorMessage=$r;function Pr(ur){return Object.prototype.toString.call(ur)==="[object Object]"}function Ar(ur){return Object.prototype.toString.call(ur)==="[object String]"}}}),require_errors3$1=__commonJS({"node_modules/@near-js/utils/lib/errors/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.parseRpcError=v.parseResultError=v.getErrorTypeFromErrorMessage=v.formatError=v.ServerError=v.logWarning=void 0;var k=require_errors2$1();Object.defineProperty(v,"logWarning",{enumerable:!0,get:function(){return k.logWarning}});var ie=require_rpc_errors$2();Object.defineProperty(v,"ServerError",{enumerable:!0,get:function(){return ie.ServerError}}),Object.defineProperty(v,"formatError",{enumerable:!0,get:function(){return ie.formatError}}),Object.defineProperty(v,"getErrorTypeFromErrorMessage",{enumerable:!0,get:function(){return ie.getErrorTypeFromErrorMessage}}),Object.defineProperty(v,"parseResultError",{enumerable:!0,get:function(){return ie.parseResultError}}),Object.defineProperty(v,"parseRpcError",{enumerable:!0,get:function(){return ie.parseRpcError}})}}),require_logging$1=__commonJS({"node_modules/@near-js/utils/lib/logging.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.printTxOutcomeLogs=v.printTxOutcomeLogsAndFailures=void 0;var k=require_errors3$1(),ie=!!process.env.NEAR_NO_LOGS;function ae({contractId:fe,outcome:le}){if(ie)return;const ve=[le.transaction_outcome,...le.receipts_outcome].reduce((pe,ye)=>{const me=typeof ye.outcome.status=="object"&&typeof ye.outcome.status.Failure=="object";return ye.outcome.logs.length||me?pe.concat({receiptIds:ye.outcome.receipt_ids,logs:ye.outcome.logs,failure:typeof ye.outcome.status=="object"&&ye.outcome.status.Failure!==void 0?(0,k.parseRpcError)(ye.outcome.status.Failure):null}):pe},[]);for(const pe of ve)console.log(`Receipt${pe.receiptIds.length>1?"s":""}: ${pe.receiptIds.join(", ")}`),ce({contractId:fe,logs:pe.logs,prefix:" "}),pe.failure&&console.warn(` Failure [${fe}]: ${pe.failure}`)}v.printTxOutcomeLogsAndFailures=ae;function ce({contractId:fe,logs:le,prefix:ve=""}){if(!ie)for(const pe of le)console.log(`${ve}Log [${fe}]: ${pe}`)}v.printTxOutcomeLogs=ce}}),require_provider2$2=__commonJS({"node_modules/@near-js/utils/lib/provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getTransactionLastResult=void 0;function k(ie){if(typeof ie.status=="object"&&typeof ie.status.SuccessValue=="string"){const ae=Buffer.from(ie.status.SuccessValue,"base64").toString();try{return JSON.parse(ae)}catch{return ae}}return null}v.getTransactionLastResult=k}}),require_browser$4=__commonJS({"node_modules/depd/lib/browser/index.js"(v,k){k.exports=ie;function ie(fe){if(!fe)throw new TypeError("argument namespace is required");function le(ve){}return le._file=void 0,le._ignored=!0,le._namespace=fe,le._traced=!1,le._warned=Object.create(null),le.function=ae,le.property=ce,le}function ae(fe,le){if(typeof fe!="function")throw new TypeError("argument fn must be a function");return fe}function ce(fe,le,ve){if(!fe||typeof fe!="object"&&typeof fe!="function")throw new TypeError("argument obj must be object");var pe=Object.getOwnPropertyDescriptor(fe,le);if(!pe)throw new TypeError("must call property on owner object");if(!pe.configurable)throw new TypeError("property must be configurable")}}}),require_validators$2=__commonJS({"node_modules/@near-js/utils/lib/validators.js"(v){var k=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.diffEpochValidators=v.findSeatPrice=void 0;var ie=k(require_bn$2()),ae=k(require_browser$4());function ce(pe,ye,me,Ee){return Ee&&Ee<49?fe(pe,ye):(me||((0,ae.default)("findSeatPrice(validators, maxNumberOfSeats)")("`use `findSeatPrice(validators, maxNumberOfSeats, minimumStakeRatio)` instead"),me=[1,6250]),le(pe,ye,me))}v.findSeatPrice=ce;function fe(pe,ye){const me=pe.map(Pr=>new ie.default(Pr.stake,10)).sort((Pr,Ar)=>Pr.cmp(Ar)),Ee=new ie.default(ye),cr=me.reduce((Pr,Ar)=>Pr.add(Ar));if(cr.lt(Ee))throw new Error("Stakes are below seats");let Br=new ie.default(1),$r=cr.add(new ie.default(1));for(;!Br.eq($r.sub(new ie.default(1)));){const Pr=Br.add($r).div(new ie.default(2));let Ar=!1,ur=new ie.default(0);for(let jr=0;jrnew ie.default(Br.stake,10)).sort((Br,$r)=>Br.cmp($r)),cr=Ee.reduce((Br,$r)=>Br.add($r));return pe.lengthme.set(cr.account_id,cr));const Ee=new Set(ye.map(cr=>cr.account_id));return{newValidators:ye.filter(cr=>!me.has(cr.account_id)),removedValidators:pe.filter(cr=>!Ee.has(cr.account_id)),changedValidators:ye.filter(cr=>me.has(cr.account_id)&&me.get(cr.account_id).stake!=cr.stake).map(cr=>({current:me.get(cr.account_id),next:cr}))}}v.diffEpochValidators=ve}}),require_lib6$1=__commonJS({"node_modules/@near-js/utils/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ae,ce,fe,le){le===void 0&&(le=fe);var ve=Object.getOwnPropertyDescriptor(ce,fe);(!ve||("get"in ve?!ce.__esModule:ve.writable||ve.configurable))&&(ve={enumerable:!0,get:function(){return ce[fe]}}),Object.defineProperty(ae,le,ve)}:function(ae,ce,fe,le){le===void 0&&(le=fe),ae[le]=ce[fe]}),ie=v&&v.__exportStar||function(ae,ce){for(var fe in ae)fe!=="default"&&!Object.prototype.hasOwnProperty.call(ce,fe)&&k(ce,ae,fe)};Object.defineProperty(v,"__esModule",{value:!0}),ie(require_constants2$2(),v),ie(require_errors3$1(),v),ie(require_format$2(),v),ie(require_logging$1(),v),ie(require_provider2$2(),v),ie(require_validators$2(),v)}}),require_exponential_backoff$2=__commonJS({"node_modules/@near-js/providers/lib/exponential-backoff.js"(v){var k=v&&v.__awaiter||function(ce,fe,le,ve){function pe(ye){return ye instanceof le?ye:new le(function(me){me(ye)})}return new(le||(le=Promise))(function(ye,me){function Ee($r){try{Br(ve.next($r))}catch(Pr){me(Pr)}}function cr($r){try{Br(ve.throw($r))}catch(Pr){me(Pr)}}function Br($r){$r.done?ye($r.value):pe($r.value).then(Ee,cr)}Br((ve=ve.apply(ce,fe||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.exponentialBackoff=void 0;function ie(ce,fe,le,ve){return k(this,void 0,void 0,function*(){let pe=ce;for(let ye=0;yesetTimeout(fe,ce))}}}),require_actions$2=__commonJS({"node_modules/@near-js/transactions/lib/actions.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Action=v.SignedDelegate=v.DeleteAccount=v.DeleteKey=v.AddKey=v.Stake=v.Transfer=v.FunctionCall=v.DeployContract=v.CreateAccount=v.IAction=v.AccessKey=v.AccessKeyPermission=v.FullAccessPermission=v.FunctionCallPermission=void 0;var k=require_lib2$1(),ie=class{constructor(jr){if(Object.keys(jr).length!==1)throw new Error("Enum can only take single value");Object.keys(jr).map(Mr=>{this[Mr]=jr[Mr],this.enum=Mr})}},ae=class extends k.Assignable{};v.FunctionCallPermission=ae;var ce=class extends k.Assignable{};v.FullAccessPermission=ce;var fe=class extends ie{};v.AccessKeyPermission=fe;var le=class extends k.Assignable{};v.AccessKey=le;var ve=class extends k.Assignable{};v.IAction=ve;var pe=class extends ve{};v.CreateAccount=pe;var ye=class extends ve{};v.DeployContract=ye;var me=class extends ve{};v.FunctionCall=me;var Ee=class extends ve{};v.Transfer=Ee;var cr=class extends ve{};v.Stake=cr;var Br=class extends ve{};v.AddKey=Br;var $r=class extends ve{};v.DeleteKey=$r;var Pr=class extends ve{};v.DeleteAccount=Pr;var Ar=class extends ve{};v.SignedDelegate=Ar;var ur=class extends ie{};v.Action=ur}}),require_action_creators$1=__commonJS({"node_modules/@near-js/transactions/lib/action_creators.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.actionCreators=v.stringifyJsonOrBytes=void 0;var k=require_actions$2();function ie(){return new k.AccessKey({permission:new k.AccessKeyPermission({fullAccess:new k.FullAccessPermission({})})})}function ae($r,Pr,Ar){return new k.AccessKey({permission:new k.AccessKeyPermission({functionCall:new k.FunctionCallPermission({receiverId:$r,allowance:Ar,methodNames:Pr})})})}function ce(){return new k.Action({createAccount:new k.CreateAccount({})})}function fe($r){return new k.Action({deployContract:new k.DeployContract({code:$r})})}function le($r){return $r.byteLength!==void 0&&$r.byteLength===$r.length?$r:Buffer.from(JSON.stringify($r))}v.stringifyJsonOrBytes=le;function ve($r,Pr,Ar,ur,jr=le,Mr=!1){return Mr?new k.Action({functionCall:new k.FunctionCall({methodName:$r,args:Pr,gas:Ar,deposit:ur})}):new k.Action({functionCall:new k.FunctionCall({methodName:$r,args:jr(Pr),gas:Ar,deposit:ur})})}function pe($r){return new k.Action({transfer:new k.Transfer({deposit:$r})})}function ye($r,Pr){return new k.Action({stake:new k.Stake({stake:$r,publicKey:Pr})})}function me($r,Pr){return new k.Action({addKey:new k.AddKey({publicKey:$r,accessKey:Pr})})}function Ee($r){return new k.Action({deleteKey:new k.DeleteKey({publicKey:$r})})}function cr($r){return new k.Action({deleteAccount:new k.DeleteAccount({beneficiaryId:$r})})}function Br({delegateAction:$r,signature:Pr}){return new k.Action({signedDelegate:new k.SignedDelegate({delegateAction:$r,signature:Pr})})}v.actionCreators={addKey:me,createAccount:ce,deleteAccount:cr,deleteKey:Ee,deployContract:fe,fullAccessKey:ie,functionCall:ve,functionCallAccessKey:ae,signedDelegate:Br,stake:ye,transfer:pe}}}),require_delegate$2=__commonJS({"node_modules/@near-js/transactions/lib/delegate.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.buildDelegateAction=v.DelegateAction=void 0;var k=require_lib2$1(),ie=require_action_creators$1(),{addKey:ae,createAccount:ce,deleteAccount:fe,deleteKey:le,deployContract:ve,functionCall:pe,stake:ye,transfer:me}=ie.actionCreators,Ee=class extends k.Assignable{};v.DelegateAction=Ee;function cr({actions:Br,maxBlockHeight:$r,nonce:Pr,publicKey:Ar,receiverId:ur,senderId:jr}){return new Ee({senderId:jr,receiverId:ur,actions:Br.map(Mr=>{if(!Mr.type&&!Mr.params)return Mr;switch(Mr.type){case"AddKey":{const{publicKey:Lr,accessKey:Vr}=Mr.params;return ae(Lr,Vr)}case"CreateAccount":return ce(Mr.params.createAccount);case"DeleteAccount":return fe(Mr.params.deleteAccount);case"DeleteKey":return le(Mr.params.publicKey);case"DeployContract":return ve(Mr.params.code);case"FunctionCall":{const{methodName:Lr,args:Vr,gas:Gr,deposit:Ur}=Mr.params;return pe(Lr,Vr,Gr,Ur)}case"Stake":return ye(Mr.params.stake,Mr.params.publicKey);case"Transfer":{const{deposit:Lr}=Mr.params;return me(Lr)}}throw new Error("Unrecognized action")}),nonce:Pr,maxBlockHeight:$r,publicKey:Ar})}v.buildDelegateAction=cr}}),require_prefix$1=__commonJS({"node_modules/@near-js/transactions/lib/prefix.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.DelegateActionPrefix=void 0;var k=require_lib2$1(),ie=Math.pow(2,30),ae={MetaTransactions:366},ce=class extends k.Assignable{},fe=class extends ce{constructor(ve){super({prefix:ie+ve})}},le=class extends fe{constructor(){super(ae.MetaTransactions)}};v.DelegateActionPrefix=le}}),require_signature$1=__commonJS({"node_modules/@near-js/transactions/lib/signature.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signature=void 0;var k=require_lib2$1(),ie=class extends k.Assignable{};v.Signature=ie}}),require_schema$1=__commonJS({"node_modules/@near-js/transactions/lib/schema.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.SCHEMA=v.SignedTransaction=v.Transaction=v.decodeSignedTransaction=v.decodeTransaction=v.encodeTransaction=v.encodeSignedDelegate=v.encodeDelegateAction=void 0;var k=require_lib3$1(),ie=require_lib2$1(),ae=require_lib$1(),ce=require_actions$2(),fe=require_delegate$2(),le=require_prefix$1(),ve=require_signature$1();function pe(Pr){return new Uint8Array([...(0,ae.serialize)(v.SCHEMA,new le.DelegateActionPrefix),...(0,ae.serialize)(v.SCHEMA,Pr)])}v.encodeDelegateAction=pe;function ye(Pr){return(0,ae.serialize)(v.SCHEMA,Pr)}v.encodeSignedDelegate=ye;function me(Pr){return(0,ae.serialize)(v.SCHEMA,Pr)}v.encodeTransaction=me;function Ee(Pr){return(0,ae.deserialize)(v.SCHEMA,Br,Pr)}v.decodeTransaction=Ee;function cr(Pr){return(0,ae.deserialize)(v.SCHEMA,$r,Pr)}v.decodeSignedTransaction=cr;var Br=class extends ie.Assignable{encode(){return me(this)}static decode(Pr){return Ee(Pr)}};v.Transaction=Br;var $r=class extends ie.Assignable{encode(){return me(this)}static decode(Pr){return cr(Pr)}};v.SignedTransaction=$r,v.SCHEMA=new Map([[ve.Signature,{kind:"struct",fields:[["keyType","u8"],["data",[64]]]}],[$r,{kind:"struct",fields:[["transaction",Br],["signature",ve.Signature]]}],[Br,{kind:"struct",fields:[["signerId","string"],["publicKey",k.PublicKey],["nonce","u64"],["receiverId","string"],["blockHash",[32]],["actions",[ce.Action]]]}],[k.PublicKey,{kind:"struct",fields:[["keyType","u8"],["data",[32]]]}],[ce.AccessKey,{kind:"struct",fields:[["nonce","u64"],["permission",ce.AccessKeyPermission]]}],[ce.AccessKeyPermission,{kind:"enum",field:"enum",values:[["functionCall",ce.FunctionCallPermission],["fullAccess",ce.FullAccessPermission]]}],[ce.FunctionCallPermission,{kind:"struct",fields:[["allowance",{kind:"option",type:"u128"}],["receiverId","string"],["methodNames",["string"]]]}],[ce.FullAccessPermission,{kind:"struct",fields:[]}],[ce.Action,{kind:"enum",field:"enum",values:[["createAccount",ce.CreateAccount],["deployContract",ce.DeployContract],["functionCall",ce.FunctionCall],["transfer",ce.Transfer],["stake",ce.Stake],["addKey",ce.AddKey],["deleteKey",ce.DeleteKey],["deleteAccount",ce.DeleteAccount],["signedDelegate",ce.SignedDelegate]]}],[ce.CreateAccount,{kind:"struct",fields:[]}],[ce.DeployContract,{kind:"struct",fields:[["code",["u8"]]]}],[ce.FunctionCall,{kind:"struct",fields:[["methodName","string"],["args",["u8"]],["gas","u64"],["deposit","u128"]]}],[ce.Transfer,{kind:"struct",fields:[["deposit","u128"]]}],[ce.Stake,{kind:"struct",fields:[["stake","u128"],["publicKey",k.PublicKey]]}],[ce.AddKey,{kind:"struct",fields:[["publicKey",k.PublicKey],["accessKey",ce.AccessKey]]}],[ce.DeleteKey,{kind:"struct",fields:[["publicKey",k.PublicKey]]}],[ce.DeleteAccount,{kind:"struct",fields:[["beneficiaryId","string"]]}],[fe.DelegateAction,{kind:"struct",fields:[["senderId","string"],["receiverId","string"],["actions",[ce.Action]],["nonce","u64"],["maxBlockHeight","u64"],["publicKey",k.PublicKey]]}],[le.DelegateActionPrefix,{kind:"struct",fields:[["prefix","u32"]]}],[ce.SignedDelegate,{kind:"struct",fields:[["delegateAction",fe.DelegateAction],["signature",ve.Signature]]}]])}}),require_create_transaction$1=__commonJS({"node_modules/@near-js/transactions/lib/create_transaction.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.createTransaction=void 0;var k=require_schema$1();function ie(ae,ce,fe,le,ve,pe){return new k.Transaction({signerId:ae,publicKey:ce,nonce:le,receiverId:fe,actions:ve,blockHash:pe})}v.createTransaction=ie}}),require_sha256$3=__commonJS({"node_modules/js-sha256/src/sha256.js"(exports,module){(function(){var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=globalThis:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,AMD=typeof define=="function"&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(v){return Object.prototype.toString.call(v)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(v){return typeof v=="object"&&v.buffer&&v.buffer.constructor===ArrayBuffer});var createOutputMethod=function(v,k){return function(ie){return new Sha256(k,!0).update(ie)[v]()}},createMethod=function(v){var k=createOutputMethod("hex",v);NODE_JS&&(k=nodeWrap(k,v)),k.create=function(){return new Sha256(v)},k.update=function(ce){return k.create().update(ce)};for(var ie=0;ie>2]|=v[ce]<>2]|=ae<>2]|=(192|ae>>6)<>2]|=(128|ae&63)<=57344?(ve[fe>>2]|=(224|ae>>12)<>2]|=(128|ae>>6&63)<>2]|=(128|ae&63)<>2]|=(240|ae>>18)<>2]|=(128|ae>>12&63)<>2]|=(128|ae>>6&63)<>2]|=(128|ae&63)<=64?(this.block=ve[16],this.start=fe-64,this.hash(),this.hashed=!0):this.start=fe}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var v=this.blocks,k=this.lastByteIndex;v[16]=this.block,v[k>>2]|=EXTRA[k&3],this.block=v[16],k>=56&&(this.hashed||this.hash(),v[0]=this.block,v[16]=v[1]=v[2]=v[3]=v[4]=v[5]=v[6]=v[7]=v[8]=v[9]=v[10]=v[11]=v[12]=v[13]=v[14]=v[15]=0),v[14]=this.hBytes<<3|this.bytes>>>29,v[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var v=this.h0,k=this.h1,ie=this.h2,ae=this.h3,ce=this.h4,fe=this.h5,le=this.h6,ve=this.h7,pe=this.blocks,ye,me,Ee,cr,Br,$r,Pr,Ar,ur,jr,Mr;for(ye=16;ye<64;++ye)Br=pe[ye-15],me=(Br>>>7|Br<<25)^(Br>>>18|Br<<14)^Br>>>3,Br=pe[ye-2],Ee=(Br>>>17|Br<<15)^(Br>>>19|Br<<13)^Br>>>10,pe[ye]=pe[ye-16]+me+pe[ye-7]+Ee<<0;for(Mr=k&ie,ye=0;ye<64;ye+=4)this.first?(this.is224?(Ar=300032,Br=pe[0]-1413257819,ve=Br-150054599<<0,ae=Br+24177077<<0):(Ar=704751109,Br=pe[0]-210244248,ve=Br-1521486534<<0,ae=Br+143694565<<0),this.first=!1):(me=(v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10),Ee=(ce>>>6|ce<<26)^(ce>>>11|ce<<21)^(ce>>>25|ce<<7),Ar=v&k,cr=Ar^v&ie^Mr,Pr=ce&fe^~ce&le,Br=ve+Ee+Pr+K[ye]+pe[ye],$r=me+cr,ve=ae+Br<<0,ae=Br+$r<<0),me=(ae>>>2|ae<<30)^(ae>>>13|ae<<19)^(ae>>>22|ae<<10),Ee=(ve>>>6|ve<<26)^(ve>>>11|ve<<21)^(ve>>>25|ve<<7),ur=ae&v,cr=ur^ae&k^Ar,Pr=ve&ce^~ve&fe,Br=le+Ee+Pr+K[ye+1]+pe[ye+1],$r=me+cr,le=ie+Br<<0,ie=Br+$r<<0,me=(ie>>>2|ie<<30)^(ie>>>13|ie<<19)^(ie>>>22|ie<<10),Ee=(le>>>6|le<<26)^(le>>>11|le<<21)^(le>>>25|le<<7),jr=ie&ae,cr=jr^ie&v^ur,Pr=le&ve^~le&ce,Br=fe+Ee+Pr+K[ye+2]+pe[ye+2],$r=me+cr,fe=k+Br<<0,k=Br+$r<<0,me=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),Ee=(fe>>>6|fe<<26)^(fe>>>11|fe<<21)^(fe>>>25|fe<<7),Mr=k&ie,cr=Mr^k&ae^jr,Pr=fe&le^~fe&ve,Br=ce+Ee+Pr+K[ye+3]+pe[ye+3],$r=me+cr,ce=v+Br<<0,v=Br+$r<<0;this.h0=this.h0+v<<0,this.h1=this.h1+k<<0,this.h2=this.h2+ie<<0,this.h3=this.h3+ae<<0,this.h4=this.h4+ce<<0,this.h5=this.h5+fe<<0,this.h6=this.h6+le<<0,this.h7=this.h7+ve<<0},Sha256.prototype.hex=function(){this.finalize();var v=this.h0,k=this.h1,ie=this.h2,ae=this.h3,ce=this.h4,fe=this.h5,le=this.h6,ve=this.h7,pe=HEX_CHARS[v>>28&15]+HEX_CHARS[v>>24&15]+HEX_CHARS[v>>20&15]+HEX_CHARS[v>>16&15]+HEX_CHARS[v>>12&15]+HEX_CHARS[v>>8&15]+HEX_CHARS[v>>4&15]+HEX_CHARS[v&15]+HEX_CHARS[k>>28&15]+HEX_CHARS[k>>24&15]+HEX_CHARS[k>>20&15]+HEX_CHARS[k>>16&15]+HEX_CHARS[k>>12&15]+HEX_CHARS[k>>8&15]+HEX_CHARS[k>>4&15]+HEX_CHARS[k&15]+HEX_CHARS[ie>>28&15]+HEX_CHARS[ie>>24&15]+HEX_CHARS[ie>>20&15]+HEX_CHARS[ie>>16&15]+HEX_CHARS[ie>>12&15]+HEX_CHARS[ie>>8&15]+HEX_CHARS[ie>>4&15]+HEX_CHARS[ie&15]+HEX_CHARS[ae>>28&15]+HEX_CHARS[ae>>24&15]+HEX_CHARS[ae>>20&15]+HEX_CHARS[ae>>16&15]+HEX_CHARS[ae>>12&15]+HEX_CHARS[ae>>8&15]+HEX_CHARS[ae>>4&15]+HEX_CHARS[ae&15]+HEX_CHARS[ce>>28&15]+HEX_CHARS[ce>>24&15]+HEX_CHARS[ce>>20&15]+HEX_CHARS[ce>>16&15]+HEX_CHARS[ce>>12&15]+HEX_CHARS[ce>>8&15]+HEX_CHARS[ce>>4&15]+HEX_CHARS[ce&15]+HEX_CHARS[fe>>28&15]+HEX_CHARS[fe>>24&15]+HEX_CHARS[fe>>20&15]+HEX_CHARS[fe>>16&15]+HEX_CHARS[fe>>12&15]+HEX_CHARS[fe>>8&15]+HEX_CHARS[fe>>4&15]+HEX_CHARS[fe&15]+HEX_CHARS[le>>28&15]+HEX_CHARS[le>>24&15]+HEX_CHARS[le>>20&15]+HEX_CHARS[le>>16&15]+HEX_CHARS[le>>12&15]+HEX_CHARS[le>>8&15]+HEX_CHARS[le>>4&15]+HEX_CHARS[le&15];return this.is224||(pe+=HEX_CHARS[ve>>28&15]+HEX_CHARS[ve>>24&15]+HEX_CHARS[ve>>20&15]+HEX_CHARS[ve>>16&15]+HEX_CHARS[ve>>12&15]+HEX_CHARS[ve>>8&15]+HEX_CHARS[ve>>4&15]+HEX_CHARS[ve&15]),pe},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var v=this.h0,k=this.h1,ie=this.h2,ae=this.h3,ce=this.h4,fe=this.h5,le=this.h6,ve=this.h7,pe=[v>>24&255,v>>16&255,v>>8&255,v&255,k>>24&255,k>>16&255,k>>8&255,k&255,ie>>24&255,ie>>16&255,ie>>8&255,ie&255,ae>>24&255,ae>>16&255,ae>>8&255,ae&255,ce>>24&255,ce>>16&255,ce>>8&255,ce&255,fe>>24&255,fe>>16&255,fe>>8&255,fe&255,le>>24&255,le>>16&255,le>>8&255,le&255];return this.is224||pe.push(ve>>24&255,ve>>16&255,ve>>8&255,ve&255),pe},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var v=new ArrayBuffer(this.is224?28:32),k=new DataView(v);return k.setUint32(0,this.h0),k.setUint32(4,this.h1),k.setUint32(8,this.h2),k.setUint32(12,this.h3),k.setUint32(16,this.h4),k.setUint32(20,this.h5),k.setUint32(24,this.h6),this.is224||k.setUint32(28,this.h7),v};function HmacSha256(v,k,ie){var ae,ce=typeof v;if(ce==="string"){var fe=[],le=v.length,ve=0,pe;for(ae=0;ae>6,fe[ve++]=128|pe&63):pe<55296||pe>=57344?(fe[ve++]=224|pe>>12,fe[ve++]=128|pe>>6&63,fe[ve++]=128|pe&63):(pe=65536+((pe&1023)<<10|v.charCodeAt(++ae)&1023),fe[ve++]=240|pe>>18,fe[ve++]=128|pe>>12&63,fe[ve++]=128|pe>>6&63,fe[ve++]=128|pe&63);v=fe}else if(ce==="object"){if(v===null)throw new Error(ERROR);if(ARRAY_BUFFER&&v.constructor===ArrayBuffer)v=new Uint8Array(v);else if(!Array.isArray(v)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(v)))throw new Error(ERROR)}else throw new Error(ERROR);v.length>64&&(v=new Sha256(k,!0).update(v).array());var ye=[],me=[];for(ae=0;ae<64;++ae){var Ee=v[ae]||0;ye[ae]=92^Ee,me[ae]=54^Ee}Sha256.call(this,k,ie),this.update(me),this.oKeyPad=ye,this.inner=!0,this.sharedMemory=ie}HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var v=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(v),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define(function(){return exports}))})()}}),require_sign$1=__commonJS({"node_modules/@near-js/transactions/lib/sign.js"(v){var k=v&&v.__awaiter||function(Ee,cr,Br,$r){function Pr(Ar){return Ar instanceof Br?Ar:new Br(function(ur){ur(Ar)})}return new(Br||(Br=Promise))(function(Ar,ur){function jr(Vr){try{Lr($r.next(Vr))}catch(Gr){ur(Gr)}}function Mr(Vr){try{Lr($r.throw(Vr))}catch(Gr){ur(Gr)}}function Lr(Vr){Vr.done?Ar(Vr.value):Pr(Vr.value).then(jr,Mr)}Lr(($r=$r.apply(Ee,cr||[])).next())})},ie=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.signDelegateAction=v.signTransaction=void 0;var ae=ie(require_sha256$3()),ce=require_actions$2(),fe=require_create_transaction$1(),le=require_schema$1(),ve=require_signature$1();function pe(Ee,cr,Br,$r){return k(this,void 0,void 0,function*(){const Pr=(0,le.encodeTransaction)(Ee),Ar=new Uint8Array(ae.default.sha256.array(Pr)),ur=yield cr.signMessage(Pr,Br,$r),jr=new le.SignedTransaction({transaction:Ee,signature:new ve.Signature({keyType:Ee.publicKey.keyType,data:ur.signature})});return[Ar,jr]})}function ye(...Ee){return k(this,void 0,void 0,function*(){if(Ee[0].constructor===le.Transaction){const[cr,Br,$r,Pr]=Ee;return pe(cr,Br,$r,Pr)}else{const[cr,Br,$r,Pr,Ar,ur,jr]=Ee,Mr=yield Ar.getPublicKey(ur,jr),Lr=(0,fe.createTransaction)(ur,Mr,cr,Br,$r,Pr);return pe(Lr,Ar,ur,jr)}})}v.signTransaction=ye;function me({delegateAction:Ee,signer:cr}){return k(this,void 0,void 0,function*(){const Br=(0,le.encodeDelegateAction)(Ee),$r=yield cr.sign(Br),Pr=new ce.SignedDelegate({delegateAction:Ee,signature:new ve.Signature({keyType:Ee.publicKey.keyType,data:$r})});return{hash:new Uint8Array(ae.default.sha256.array(Br)),signedDelegateAction:Pr}})}v.signDelegateAction=me}}),require_lib7$1=__commonJS({"node_modules/@near-js/transactions/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ae,ce,fe,le){le===void 0&&(le=fe);var ve=Object.getOwnPropertyDescriptor(ce,fe);(!ve||("get"in ve?!ce.__esModule:ve.writable||ve.configurable))&&(ve={enumerable:!0,get:function(){return ce[fe]}}),Object.defineProperty(ae,le,ve)}:function(ae,ce,fe,le){le===void 0&&(le=fe),ae[le]=ce[fe]}),ie=v&&v.__exportStar||function(ae,ce){for(var fe in ae)fe!=="default"&&!Object.prototype.hasOwnProperty.call(ce,fe)&&k(ce,ae,fe)};Object.defineProperty(v,"__esModule",{value:!0}),ie(require_action_creators$1(),v),ie(require_actions$2(),v),ie(require_create_transaction$1(),v),ie(require_delegate$2(),v),ie(require_schema$1(),v),ie(require_sign$1(),v),ie(require_signature$1(),v)}}),require_provider3$1=__commonJS({"node_modules/@near-js/providers/lib/provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Provider=void 0;var k=class{};v.Provider=k}}),require_browser2$4=__commonJS({"node_modules/http-errors/node_modules/depd/lib/browser/index.js"(v,k){k.exports=ie;function ie(fe){if(!fe)throw new TypeError("argument namespace is required");function le(ve){}return le._file=void 0,le._ignored=!0,le._namespace=fe,le._traced=!1,le._warned=Object.create(null),le.function=ae,le.property=ce,le}function ae(fe,le){if(typeof fe!="function")throw new TypeError("argument fn must be a function");return fe}function ce(fe,le,ve){if(!fe||typeof fe!="object"&&typeof fe!="function")throw new TypeError("argument obj must be object");var pe=Object.getOwnPropertyDescriptor(fe,le);if(!pe)throw new TypeError("must call property on owner object");if(!pe.configurable)throw new TypeError("property must be configurable")}}}),require_setprototypeof$1=__commonJS({"node_modules/setprototypeof/index.js"(v,k){k.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?ie:ae);function ie(ce,fe){return ce.__proto__=fe,ce}function ae(ce,fe){for(var le in fe)Object.prototype.hasOwnProperty.call(ce,le)||(ce[le]=fe[le]);return ce}}}),require_codes$1=__commonJS({"node_modules/statuses/codes.json"(v,k){k.exports={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"(Unused)",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}}}),require_statuses$1=__commonJS({"node_modules/statuses/index.js"(v,k){var ie=require_codes$1();k.exports=ce,ce.STATUS_CODES=ie,ce.codes=ae(ce,ie),ce.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},ce.empty={204:!0,205:!0,304:!0},ce.retry={502:!0,503:!0,504:!0};function ae(fe,le){var ve=[];return Object.keys(le).forEach(function(ye){var me=le[ye],Ee=Number(ye);fe[Ee]=me,fe[me]=Ee,fe[me.toLowerCase()]=Ee,ve.push(Ee)}),ve}function ce(fe){if(typeof fe=="number"){if(!ce[fe])throw new Error("invalid status code: "+fe);return fe}if(typeof fe!="string")throw new TypeError("code must be a number or string");var le=parseInt(fe,10);if(!isNaN(le)){if(!ce[le])throw new Error("invalid status code: "+le);return le}if(le=ce[fe.toLowerCase()],!le)throw new Error('invalid status message: "'+fe+'"');return le}}}),require_inherits_browser$1=__commonJS({"node_modules/inherits/inherits_browser.js"(v,k){typeof Object.create=="function"?k.exports=function(ae,ce){ce&&(ae.super_=ce,ae.prototype=Object.create(ce.prototype,{constructor:{value:ae,enumerable:!1,writable:!0,configurable:!0}}))}:k.exports=function(ae,ce){if(ce){ae.super_=ce;var fe=function(){};fe.prototype=ce.prototype,ae.prototype=new fe,ae.prototype.constructor=ae}}}}),require_toidentifier$1=__commonJS({"node_modules/toidentifier/index.js"(v,k){k.exports=ie;function ie(ae){return ae.split(" ").map(function(ce){return ce.slice(0,1).toUpperCase()+ce.slice(1)}).join("").replace(/[^ _0-9a-z]/gi,"")}}}),require_http_errors$1=__commonJS({"node_modules/http-errors/index.js"(v,k){var ie=require_browser2$4()("http-errors"),ae=require_setprototypeof$1(),ce=require_statuses$1(),fe=require_inherits_browser$1(),le=require_toidentifier$1();k.exports=pe,k.exports.HttpError=ye(),k.exports.isHttpError=Ee(k.exports.HttpError),$r(k.exports,ce.codes,k.exports.HttpError);function ve(Ar){return Number(String(Ar).charAt(0)+"00")}function pe(){for(var Ar,ur,jr=500,Mr={},Lr=0;Lr=600)&&ie("non-error status code; use only 4xx or 5xx status codes"),(typeof jr!="number"||!ce[jr]&&(jr<400||jr>=600))&&(jr=500);var Gr=pe[jr]||pe[ve(jr)];Ar||(Ar=Gr?new Gr(ur):new Error(ur||ce[jr]),Error.captureStackTrace(Ar,pe)),(!Gr||!(Ar instanceof Gr)||Ar.status!==jr)&&(Ar.expose=jr<500,Ar.status=Ar.statusCode=jr);for(var Ur in Mr)Ur!=="status"&&Ur!=="statusCode"&&(Ar[Ur]=Mr[Ur]);return Ar}function ye(){function Ar(){throw new TypeError("cannot construct abstract class")}return fe(Ar,Error),Ar}function me(Ar,ur,jr){var Mr=Pr(ur);function Lr(Vr){var Gr=Vr!=null?Vr:ce[jr],Ur=new Error(Gr);return Error.captureStackTrace(Ur,Lr),ae(Ur,Lr.prototype),Object.defineProperty(Ur,"message",{enumerable:!0,configurable:!0,value:Gr,writable:!0}),Object.defineProperty(Ur,"name",{enumerable:!1,configurable:!0,value:Mr,writable:!0}),Ur}return fe(Lr,Ar),Br(Lr,Mr),Lr.prototype.status=jr,Lr.prototype.statusCode=jr,Lr.prototype.expose=!0,Lr}function Ee(Ar){return function(jr){return!jr||typeof jr!="object"?!1:jr instanceof Ar?!0:jr instanceof Error&&typeof jr.expose=="boolean"&&typeof jr.statusCode=="number"&&jr.status===jr.statusCode}}function cr(Ar,ur,jr){var Mr=Pr(ur);function Lr(Vr){var Gr=Vr!=null?Vr:ce[jr],Ur=new Error(Gr);return Error.captureStackTrace(Ur,Lr),ae(Ur,Lr.prototype),Object.defineProperty(Ur,"message",{enumerable:!0,configurable:!0,value:Gr,writable:!0}),Object.defineProperty(Ur,"name",{enumerable:!1,configurable:!0,value:Mr,writable:!0}),Ur}return fe(Lr,Ar),Br(Lr,Mr),Lr.prototype.status=jr,Lr.prototype.statusCode=jr,Lr.prototype.expose=!1,Lr}function Br(Ar,ur){var jr=Object.getOwnPropertyDescriptor(Ar,"name");jr&&jr.configurable&&(jr.value=ur,Object.defineProperty(Ar,"name",jr))}function $r(Ar,ur,jr){ur.forEach(function(Lr){var Vr,Gr=le(ce[Lr]);switch(ve(Lr)){case 400:Vr=me(jr,Gr,Lr);break;case 500:Vr=cr(jr,Gr,Lr);break}Vr&&(Ar[Lr]=Vr,Ar[Gr]=Vr)}),Ar["I'mateapot"]=ie.function(Ar.ImATeapot,`"I'mateapot"; use "ImATeapot" instead`)}function Pr(Ar){return Ar.substr(-5)!=="Error"?Ar+"Error":Ar}}}),require_browser3$4=__commonJS({"node_modules/node-fetch/browser.js"(v,k){var ie=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof ae<"u")return ae;throw new Error("unable to locate globalThis object")},ae=ie();k.exports=v=ae.fetch,ae.fetch&&(v.default=ae.fetch.bind(ae)),v.Headers=ae.Headers,v.Request=ae.Request,v.Response=ae.Response}}),require_http$1=__commonJS({"browser-external:http"(v,k){k.exports={}}}),require_https$1=__commonJS({"browser-external:https"(v,k){k.exports={}}}),require_fetch$1=__commonJS({"node_modules/@near-js/providers/lib/fetch.js"(v){var k=v&&v.__importDefault||function(ye){return ye&&ye.__esModule?ye:{default:ye}};Object.defineProperty(v,"__esModule",{value:!0});var ie=k(require_browser3$4()),ae=k(require_http$1()),ce=k(require_https$1()),fe=new ae.default.Agent({keepAlive:!0}),le=new ce.default.Agent({keepAlive:!0});function ve(ye){return ye.protocol==="http:"?fe:le}function pe(ye,me){return(0,ie.default)(ye,Object.assign({agent:ve(new URL(ye.toString()))},me))}v.default=pe}}),require_fetch_json$1=__commonJS({"node_modules/@near-js/providers/lib/fetch_json.js"(v){var k=v&&v.__createBinding||(Object.create?function($r,Pr,Ar,ur){ur===void 0&&(ur=Ar);var jr=Object.getOwnPropertyDescriptor(Pr,Ar);(!jr||("get"in jr?!Pr.__esModule:jr.writable||jr.configurable))&&(jr={enumerable:!0,get:function(){return Pr[Ar]}}),Object.defineProperty($r,ur,jr)}:function($r,Pr,Ar,ur){ur===void 0&&(ur=Ar),$r[ur]=Pr[Ar]}),ie=v&&v.__setModuleDefault||(Object.create?function($r,Pr){Object.defineProperty($r,"default",{enumerable:!0,value:Pr})}:function($r,Pr){$r.default=Pr}),ae=v&&v.__importStar||function($r){if($r&&$r.__esModule)return $r;var Pr={};if($r!=null)for(var Ar in $r)Ar!=="default"&&Object.prototype.hasOwnProperty.call($r,Ar)&&k(Pr,$r,Ar);return ie(Pr,$r),Pr},ce=v&&v.__awaiter||function($r,Pr,Ar,ur){function jr(Mr){return Mr instanceof Ar?Mr:new Ar(function(Lr){Lr(Mr)})}return new(Ar||(Ar=Promise))(function(Mr,Lr){function Vr(Qr){try{Ur(ur.next(Qr))}catch(hn){Lr(hn)}}function Gr(Qr){try{Ur(ur.throw(Qr))}catch(hn){Lr(hn)}}function Ur(Qr){Qr.done?Mr(Qr.value):jr(Qr.value).then(Vr,Gr)}Ur((ur=ur.apply($r,Pr||[])).next())})},fe=v&&v.__importDefault||function($r){return $r&&$r.__esModule?$r:{default:$r}};Object.defineProperty(v,"__esModule",{value:!0}),v.fetchJson=void 0;var le=require_lib2$1(),ve=fe(require_http_errors$1()),pe=require_exponential_backoff$2(),ye=1e3,me=1.5,Ee=10,cr=(...$r)=>!process.env.NEAR_NO_LOGS&&console.warn(...$r);function Br($r,Pr){return ce(this,void 0,void 0,function*(){let Ar={url:null};typeof $r=="string"?Ar.url=$r:Ar=$r;const ur=yield(0,pe.exponentialBackoff)(ye,Ee,me,()=>ce(this,void 0,void 0,function*(){try{globalThis.fetch||(globalThis.fetch=(yield Promise.resolve().then(()=>ae(require_fetch$1()))).default);const jr=yield globalThis.fetch(Ar.url,{method:Pr?"POST":"GET",body:Pr||void 0,headers:Object.assign(Object.assign({},Ar.headers),{"Content-Type":"application/json"})});if(!jr.ok){if(jr.status===503)return cr(`Retrying HTTP request for ${Ar.url} as it's not available now`),null;throw(0,ve.default)(jr.status,yield jr.text())}return jr}catch(jr){if(jr.toString().includes("FetchError")||jr.toString().includes("Failed to fetch"))return cr(`Retrying HTTP request for ${Ar.url} because of error: ${jr}`),null;throw jr}}));if(!ur)throw new le.TypedError(`Exceeded ${Ee} attempts for ${Ar.url}.`,"RetriesExceeded");return yield ur.json()})}v.fetchJson=Br}}),require_json_rpc_provider$2=__commonJS({"node_modules/@near-js/providers/lib/json-rpc-provider.js"(v){var k=v&&v.__awaiter||function(Pr,Ar,ur,jr){function Mr(Lr){return Lr instanceof ur?Lr:new ur(function(Vr){Vr(Lr)})}return new(ur||(ur=Promise))(function(Lr,Vr){function Gr(hn){try{Qr(jr.next(hn))}catch(Yt){Vr(Yt)}}function Ur(hn){try{Qr(jr.throw(hn))}catch(Yt){Vr(Yt)}}function Qr(hn){hn.done?Lr(hn.value):Mr(hn.value).then(Gr,Ur)}Qr((jr=jr.apply(Pr,Ar||[])).next())})},ie=v&&v.__rest||function(Pr,Ar){var ur={};for(var jr in Pr)Object.prototype.hasOwnProperty.call(Pr,jr)&&Ar.indexOf(jr)<0&&(ur[jr]=Pr[jr]);if(Pr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mr=0,jr=Object.getOwnPropertySymbols(Pr);Mrk(this,void 0,void 0,function*(){try{const Mr={method:Pr,params:Ar,id:Br++,jsonrpc:"2.0"},Lr=yield(0,ye.fetchJson)(this.connection,JSON.stringify(Mr));if(Lr.error){if(typeof Lr.error.data=="object")throw typeof Lr.error.data.error_message=="string"&&typeof Lr.error.data.error_type=="string"?new ce.TypedError(Lr.error.data.error_message,Lr.error.data.error_type):(0,ae.parseRpcError)(Lr.error.data);{const Vr=`[${Lr.error.code}] ${Lr.error.message}: ${Lr.error.data}`;throw Lr.error.data==="Timeout"||Vr.includes("Timeout error")||Vr.includes("query has timed out")?new ce.TypedError(Vr,"TimeoutError"):new ce.TypedError(Vr,(0,ae.getErrorTypeFromErrorMessage)(Lr.error.data,Lr.error.name))}}return Lr}catch(Mr){if(Mr.type==="TimeoutError")return process.env.NEAR_NO_LOGS||console.warn(`Retrying request to ${Pr} as it has timed out`,Ar),null;throw Mr}})),{result:jr}=ur;if(typeof jr>"u")throw new ce.TypedError(`Exceeded ${me} attempts for request to ${Pr}.`,"RetriesExceeded");return jr})}};v.JsonRpcProvider=$r}}),require_lib8$1=__commonJS({"node_modules/@near-js/providers/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.fetchJson=v.Provider=v.JsonRpcProvider=v.exponentialBackoff=void 0;var k=require_exponential_backoff$2();Object.defineProperty(v,"exponentialBackoff",{enumerable:!0,get:function(){return k.exponentialBackoff}});var ie=require_json_rpc_provider$2();Object.defineProperty(v,"JsonRpcProvider",{enumerable:!0,get:function(){return ie.JsonRpcProvider}});var ae=require_provider3$1();Object.defineProperty(v,"Provider",{enumerable:!0,get:function(){return ae.Provider}});var ce=require_fetch_json$1();Object.defineProperty(v,"fetchJson",{enumerable:!0,get:function(){return ce.fetchJson}})}}),require_provider4$1=__commonJS({"node_modules/near-api-js/lib/providers/provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.FinalExecutionStatusBasic=v.ExecutionStatusBasic=v.IdType=v.Provider=v.getTransactionLastResult=void 0;var k=require_lib6$1();Object.defineProperty(v,"getTransactionLastResult",{enumerable:!0,get:function(){return k.getTransactionLastResult}});var ie=require_lib8$1();Object.defineProperty(v,"Provider",{enumerable:!0,get:function(){return ie.Provider}});var ae=require_lib2$1();Object.defineProperty(v,"IdType",{enumerable:!0,get:function(){return ae.IdType}}),Object.defineProperty(v,"ExecutionStatusBasic",{enumerable:!0,get:function(){return ae.ExecutionStatusBasic}}),Object.defineProperty(v,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return ae.FinalExecutionStatusBasic}})}}),require_json_rpc_provider2$1=__commonJS({"node_modules/near-api-js/lib/providers/json-rpc-provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.JsonRpcProvider=v.TypedError=v.ErrorContext=void 0;var k=require_lib2$1();Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return k.ErrorContext}}),Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return k.TypedError}});var ie=require_lib8$1();Object.defineProperty(v,"JsonRpcProvider",{enumerable:!0,get:function(){return ie.JsonRpcProvider}})}}),require_providers$2=__commonJS({"node_modules/near-api-js/lib/providers/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ErrorContext=v.TypedError=v.getTransactionLastResult=v.FinalExecutionStatusBasic=v.JsonRpcProvider=v.Provider=void 0;var k=require_provider4$1();Object.defineProperty(v,"Provider",{enumerable:!0,get:function(){return k.Provider}}),Object.defineProperty(v,"getTransactionLastResult",{enumerable:!0,get:function(){return k.getTransactionLastResult}}),Object.defineProperty(v,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return k.FinalExecutionStatusBasic}});var ie=require_json_rpc_provider2$1();Object.defineProperty(v,"JsonRpcProvider",{enumerable:!0,get:function(){return ie.JsonRpcProvider}}),Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return ie.TypedError}}),Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return ie.ErrorContext}})}}),require_key_pair2$1=__commonJS({"node_modules/near-api-js/lib/utils/key_pair.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.PublicKey=v.KeyType=v.KeyPairEd25519=v.KeyPair=void 0;var k=require_lib3$1();Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return k.KeyPair}}),Object.defineProperty(v,"KeyPairEd25519",{enumerable:!0,get:function(){return k.KeyPairEd25519}}),Object.defineProperty(v,"KeyType",{enumerable:!0,get:function(){return k.KeyType}}),Object.defineProperty(v,"PublicKey",{enumerable:!0,get:function(){return k.PublicKey}})}}),require_serialize$2=__commonJS({"node_modules/near-api-js/lib/utils/serialize.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.BinaryReader=v.BinaryWriter=v.BorshError=v.deserialize=v.serialize=v.base_decode=v.base_encode=void 0;var k=require_lib$1();Object.defineProperty(v,"base_encode",{enumerable:!0,get:function(){return k.baseEncode}}),Object.defineProperty(v,"base_decode",{enumerable:!0,get:function(){return k.baseDecode}}),Object.defineProperty(v,"serialize",{enumerable:!0,get:function(){return k.serialize}}),Object.defineProperty(v,"deserialize",{enumerable:!0,get:function(){return k.deserialize}}),Object.defineProperty(v,"BorshError",{enumerable:!0,get:function(){return k.BorshError}}),Object.defineProperty(v,"BinaryWriter",{enumerable:!0,get:function(){return k.BinaryWriter}}),Object.defineProperty(v,"BinaryReader",{enumerable:!0,get:function(){return k.BinaryReader}})}}),require_web$2=__commonJS({"node_modules/near-api-js/lib/utils/web.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.fetchJson=void 0;var k=require_lib8$1();Object.defineProperty(v,"fetchJson",{enumerable:!0,get:function(){return k.fetchJson}})}}),require_enums$2=__commonJS({"node_modules/near-api-js/lib/utils/enums.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Enum=v.Assignable=void 0;var k=require_lib2$1();Object.defineProperty(v,"Assignable",{enumerable:!0,get:function(){return k.Assignable}});var ie=class{constructor(ae){if(Object.keys(ae).length!==1)throw new Error("Enum can only take single value");Object.keys(ae).map(ce=>{this[ce]=ae[ce],this.enum=ce})}};v.Enum=ie}}),require_format2$1=__commonJS({"node_modules/near-api-js/lib/utils/format.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.parseNearAmount=v.formatNearAmount=v.NEAR_NOMINATION_EXP=v.NEAR_NOMINATION=void 0;var k=require_lib6$1();Object.defineProperty(v,"NEAR_NOMINATION",{enumerable:!0,get:function(){return k.NEAR_NOMINATION}}),Object.defineProperty(v,"NEAR_NOMINATION_EXP",{enumerable:!0,get:function(){return k.NEAR_NOMINATION_EXP}}),Object.defineProperty(v,"formatNearAmount",{enumerable:!0,get:function(){return k.formatNearAmount}}),Object.defineProperty(v,"parseNearAmount",{enumerable:!0,get:function(){return k.parseNearAmount}})}}),require_rpc_errors2$1=__commonJS({"node_modules/near-api-js/lib/utils/rpc_errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ServerError=v.getErrorTypeFromErrorMessage=v.formatError=v.parseResultError=v.parseRpcError=void 0;var k=require_lib6$1();Object.defineProperty(v,"parseRpcError",{enumerable:!0,get:function(){return k.parseRpcError}}),Object.defineProperty(v,"parseResultError",{enumerable:!0,get:function(){return k.parseResultError}}),Object.defineProperty(v,"formatError",{enumerable:!0,get:function(){return k.formatError}}),Object.defineProperty(v,"getErrorTypeFromErrorMessage",{enumerable:!0,get:function(){return k.getErrorTypeFromErrorMessage}}),Object.defineProperty(v,"ServerError",{enumerable:!0,get:function(){return k.ServerError}})}}),require_account$3=__commonJS({"node_modules/@near-js/accounts/lib/account.js"(v){var k=v&&v.__awaiter||function(Yt,fn,Qt,Xt){function Kr(be){return be instanceof Qt?be:new Qt(function(kr){kr(be)})}return new(Qt||(Qt=Promise))(function(be,kr){function xr(Xr){try{Jt(Xt.next(Xr))}catch(zr){kr(zr)}}function Wr(Xr){try{Jt(Xt.throw(Xr))}catch(zr){kr(zr)}}function Jt(Xr){Xr.done?be(Xr.value):Kr(Xr.value).then(xr,Wr)}Jt((Xt=Xt.apply(Yt,fn||[])).next())})},ie=v&&v.__importDefault||function(Yt){return Yt&&Yt.__esModule?Yt:{default:Yt}};Object.defineProperty(v,"__esModule",{value:!0}),v.Account=void 0;var ae=require_lib3$1(),ce=require_lib8$1(),fe=require_lib7$1(),le=require_lib2$1(),ve=require_lib6$1(),pe=ie(require_bn$2()),ye=require_lib$1(),{addKey:me,createAccount:Ee,deleteAccount:cr,deleteKey:Br,deployContract:$r,fullAccessKey:Pr,functionCall:Ar,functionCallAccessKey:ur,stake:jr,transfer:Mr}=fe.actionCreators,Lr=12,Vr=500,Gr=1.5;function Ur(Yt){return JSON.parse(Buffer.from(Yt).toString())}function Qr(Yt){return Buffer.from(JSON.stringify(Yt))}var hn=class{constructor(Yt,fn){this.accessKeyByPublicKeyCache={},this.connection=Yt,this.accountId=fn}state(){return k(this,void 0,void 0,function*(){return this.connection.provider.query({request_type:"view_account",account_id:this.accountId,finality:"optimistic"})})}signTransaction(Yt,fn){return k(this,void 0,void 0,function*(){const Qt=yield this.findAccessKey(Yt,fn);if(!Qt)throw new le.TypedError(`Can not sign transactions for account ${this.accountId} on network ${this.connection.networkId}, no matching key pair exists for this account`,"KeyNotFound");const{accessKey:Xt}=Qt,be=(yield this.connection.provider.block({finality:"final"})).header.hash,kr=Xt.nonce.add(new pe.default(1));return yield(0,fe.signTransaction)(Yt,kr,fn,(0,ye.baseDecode)(be),this.connection.signer,this.accountId,this.connection.networkId)})}signAndSendTransaction({receiverId:Yt,actions:fn,returnError:Qt}){return k(this,void 0,void 0,function*(){let Xt,Kr;const be=yield(0,ce.exponentialBackoff)(Vr,Lr,Gr,()=>k(this,void 0,void 0,function*(){[Xt,Kr]=yield this.signTransaction(Yt,fn);const kr=Kr.transaction.publicKey;try{return yield this.connection.provider.sendTransaction(Kr)}catch(xr){if(xr.type==="InvalidNonce")return(0,ve.logWarning)(`Retrying transaction ${Yt}:${(0,ye.baseEncode)(Xt)} with new nonce.`),delete this.accessKeyByPublicKeyCache[kr.toString()],null;if(xr.type==="Expired")return(0,ve.logWarning)(`Retrying transaction ${Yt}:${(0,ye.baseEncode)(Xt)} due to expired block hash`),null;throw xr.context=new le.ErrorContext((0,ye.baseEncode)(Xt)),xr}}));if(!be)throw new le.TypedError("nonce retries exceeded for transaction. This usually means there are too many parallel requests with the same access key.","RetriesExceeded");if((0,ve.printTxOutcomeLogsAndFailures)({contractId:Kr.transaction.receiverId,outcome:be}),!Qt&&typeof be.status=="object"&&typeof be.status.Failure=="object"&&be.status.Failure!==null)throw be.status.Failure.error_message&&be.status.Failure.error_type?new le.TypedError(`Transaction ${be.transaction_outcome.id} failed. ${be.status.Failure.error_message}`,be.status.Failure.error_type):(0,ve.parseResultError)(be);return be})}findAccessKey(Yt,fn){return k(this,void 0,void 0,function*(){const Qt=yield this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);if(!Qt)throw new le.TypedError(`no matching key pair found in ${this.connection.signer}`,"PublicKeyNotFound");const Xt=this.accessKeyByPublicKeyCache[Qt.toString()];if(Xt!==void 0)return{publicKey:Qt,accessKey:Xt};try{const Kr=yield this.connection.provider.query({request_type:"view_access_key",account_id:this.accountId,public_key:Qt.toString(),finality:"optimistic"}),be=Object.assign(Object.assign({},Kr),{nonce:new pe.default(Kr.nonce)});return this.accessKeyByPublicKeyCache[Qt.toString()]?{publicKey:Qt,accessKey:this.accessKeyByPublicKeyCache[Qt.toString()]}:(this.accessKeyByPublicKeyCache[Qt.toString()]=be,{publicKey:Qt,accessKey:be})}catch(Kr){if(Kr.type=="AccessKeyDoesNotExist")return null;throw Kr}})}createAndDeployContract(Yt,fn,Qt,Xt){return k(this,void 0,void 0,function*(){const Kr=Pr();return yield this.signAndSendTransaction({receiverId:Yt,actions:[Ee(),Mr(Xt),me(ae.PublicKey.from(fn),Kr),$r(Qt)]}),new hn(this.connection,Yt)})}sendMoney(Yt,fn){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:Yt,actions:[Mr(fn)]})})}createAccount(Yt,fn,Qt){return k(this,void 0,void 0,function*(){const Xt=Pr();return this.signAndSendTransaction({receiverId:Yt,actions:[Ee(),Mr(Qt),me(ae.PublicKey.from(fn),Xt)]})})}deleteAccount(Yt){return k(this,void 0,void 0,function*(){return process.env.NEAR_NO_LOGS||console.log("Deleting an account does not automatically transfer NFTs and FTs to the beneficiary address. Ensure to transfer assets before deleting."),this.signAndSendTransaction({receiverId:this.accountId,actions:[cr(Yt)]})})}deployContract(Yt){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:this.accountId,actions:[$r(Yt)]})})}encodeJSContractArgs(Yt,fn,Qt){return Buffer.concat([Buffer.from(Yt),Buffer.from([0]),Buffer.from(fn),Buffer.from([0]),Buffer.from(Qt)])}functionCall({contractId:Yt,methodName:fn,args:Qt={},gas:Xt=ve.DEFAULT_FUNCTION_CALL_GAS,attachedDeposit:Kr,walletMeta:be,walletCallbackUrl:kr,stringify:xr,jsContract:Wr}){return k(this,void 0,void 0,function*(){this.validateArgs(Qt);let Jt;if(Wr){const Xr=this.encodeJSContractArgs(Yt,fn,JSON.stringify(Qt));Jt=["call_js_contract",Xr,Xt,Kr,null,!0]}else{const Xr=xr===void 0?fe.stringifyJsonOrBytes:xr;Jt=[fn,Qt,Xt,Kr,Xr,!1]}return this.signAndSendTransaction({receiverId:Wr?this.connection.jsvmAccountId:Yt,actions:[Ar.apply(void 0,Jt)],walletMeta:be,walletCallbackUrl:kr})})}addKey(Yt,fn,Qt,Xt){return k(this,void 0,void 0,function*(){Qt||(Qt=[]),Array.isArray(Qt)||(Qt=[Qt]);let Kr;return fn?Kr=ur(fn,Qt,Xt):Kr=Pr(),this.signAndSendTransaction({receiverId:this.accountId,actions:[me(ae.PublicKey.from(Yt),Kr)]})})}deleteKey(Yt){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:this.accountId,actions:[Br(ae.PublicKey.from(Yt))]})})}stake(Yt,fn){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:this.accountId,actions:[jr(fn,ae.PublicKey.from(Yt))]})})}signedDelegate({actions:Yt,blockHeightTtl:fn,receiverId:Qt}){return k(this,void 0,void 0,function*(){const{provider:Xt,signer:Kr}=this.connection,{header:be}=yield Xt.block({finality:"final"}),{accessKey:kr,publicKey:xr}=yield this.findAccessKey(null,null),Wr=(0,fe.buildDelegateAction)({actions:Yt,maxBlockHeight:new pe.default(be.height).add(new pe.default(fn)),nonce:new pe.default(kr.nonce).add(new pe.default(1)),publicKey:xr,receiverId:Qt,senderId:this.accountId}),{signedDelegateAction:Jt}=yield(0,fe.signDelegateAction)({delegateAction:Wr,signer:{sign:Xr=>k(this,void 0,void 0,function*(){const{signature:zr}=yield Kr.signMessage(Xr,Wr.senderId,this.connection.networkId);return zr})}});return Jt})}validateArgs(Yt){if(!(Yt.byteLength!==void 0&&Yt.byteLength===Yt.length)&&(Array.isArray(Yt)||typeof Yt!="object"))throw new le.PositionalArgsError}viewFunction({contractId:Yt,methodName:fn,args:Qt={},parse:Xt=Ur,stringify:Kr=Qr,jsContract:be=!1,blockQuery:kr={finality:"optimistic"}}){return k(this,void 0,void 0,function*(){let xr;this.validateArgs(Qt),be?xr=this.encodeJSContractArgs(Yt,fn,Object.keys(Qt).length>0?JSON.stringify(Qt):""):xr=Kr(Qt);const Wr=yield this.connection.provider.query(Object.assign(Object.assign({request_type:"call_function"},kr),{account_id:be?this.connection.jsvmAccountId:Yt,method_name:be?"view_js_contract":fn,args_base64:xr.toString("base64")}));return Wr.logs&&(0,ve.printTxOutcomeLogs)({contractId:Yt,logs:Wr.logs}),Wr.result&&Wr.result.length>0&&Xt(Buffer.from(Wr.result))})}viewState(Yt,fn={finality:"optimistic"}){return k(this,void 0,void 0,function*(){const{values:Qt}=yield this.connection.provider.query(Object.assign(Object.assign({request_type:"view_state"},fn),{account_id:this.accountId,prefix_base64:Buffer.from(Yt).toString("base64")}));return Qt.map(({key:Xt,value:Kr})=>({key:Buffer.from(Xt,"base64"),value:Buffer.from(Kr,"base64")}))})}getAccessKeys(){var Yt;return k(this,void 0,void 0,function*(){const fn=yield this.connection.provider.query({request_type:"view_access_key_list",account_id:this.accountId,finality:"optimistic"});return(Yt=fn==null?void 0:fn.keys)===null||Yt===void 0?void 0:Yt.map(Qt=>Object.assign(Object.assign({},Qt),{access_key:Object.assign(Object.assign({},Qt.access_key),{nonce:new pe.default(Qt.access_key.nonce)})}))})}getAccountDetails(){return k(this,void 0,void 0,function*(){return{authorizedApps:(yield this.getAccessKeys()).filter(Qt=>Qt.access_key.permission!=="FullAccess").map(Qt=>{const Xt=Qt.access_key.permission;return{contractId:Xt.FunctionCall.receiver_id,amount:Xt.FunctionCall.allowance,publicKey:Qt.public_key}})}})}getAccountBalance(){return k(this,void 0,void 0,function*(){const Yt=yield this.connection.provider.experimental_protocolConfig({finality:"final"}),fn=yield this.state(),Qt=new pe.default(Yt.runtime_config.storage_amount_per_byte),Xt=new pe.default(fn.storage_usage).mul(Qt),Kr=new pe.default(fn.locked),be=new pe.default(fn.amount).add(Kr),kr=be.sub(pe.default.max(Kr,Xt));return{total:be.toString(),stateStaked:Xt.toString(),staked:Kr.toString(),available:kr.toString()}})}getActiveDelegatedStakeBalance(){return k(this,void 0,void 0,function*(){const Yt=yield this.connection.provider.block({finality:"final"}),fn=Yt.header.hash,Qt=Yt.header.epoch_id,{current_validators:Xt,next_validators:Kr,current_proposals:be}=yield this.connection.provider.validators(Qt),kr=new Set;[...Xt,...Kr,...be].forEach(Jr=>kr.add(Jr.account_id));const xr=[...kr],Wr=xr.map(Jr=>this.viewFunction({contractId:Jr,methodName:"get_account_total_balance",args:{account_id:this.accountId},blockQuery:{blockId:fn}})),Jt=yield Promise.allSettled(Wr);if(Jt.some(Jr=>Jr.status==="rejected"&&Jr.reason.type==="TimeoutError"))throw new Error("Failed to get delegated stake balance");const zr=Jt.reduce((Jr,Nr,Hr)=>{const On=xr[Hr];if(Nr.status==="fulfilled"){const Gn=new pe.default(Nr.value);if(!Gn.isZero())return Object.assign(Object.assign({},Jr),{stakedValidators:[...Jr.stakedValidators,{validatorId:On,amount:Gn.toString()}],total:Jr.total.add(Gn)})}return Nr.status==="rejected"?Object.assign(Object.assign({},Jr),{failedValidators:[...Jr.failedValidators,{validatorId:On,error:Nr.reason}]}):Jr},{stakedValidators:[],failedValidators:[],total:new pe.default(0)});return Object.assign(Object.assign({},zr),{total:zr.total.toString()})})}};v.Account=hn}}),require_constants3$2=__commonJS({"node_modules/@near-js/accounts/lib/constants.js"(v){var k=v&&v.__importDefault||function(ce){return ce&&ce.__esModule?ce:{default:ce}};Object.defineProperty(v,"__esModule",{value:!0}),v.MULTISIG_CONFIRM_METHODS=v.MULTISIG_CHANGE_METHODS=v.MULTISIG_DEPOSIT=v.MULTISIG_GAS=v.MULTISIG_ALLOWANCE=v.MULTISIG_STORAGE_KEY=void 0;var ie=require_lib6$1(),ae=k(require_bn$2());v.MULTISIG_STORAGE_KEY="__multisigRequest",v.MULTISIG_ALLOWANCE=new ae.default((0,ie.parseNearAmount)("1")),v.MULTISIG_GAS=new ae.default("100000000000000"),v.MULTISIG_DEPOSIT=new ae.default("0"),v.MULTISIG_CHANGE_METHODS=["add_request","add_request_and_confirm","delete_request","confirm"],v.MULTISIG_CONFIRM_METHODS=["confirm"]}}),require_types$5=__commonJS({"node_modules/@near-js/accounts/lib/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MultisigStateStatus=v.MultisigDeleteRequestRejectionError=void 0,function(k){k.CANNOT_DESERIALIZE_STATE="Cannot deserialize the contract state",k.MULTISIG_NOT_INITIALIZED="Smart contract panicked: Multisig contract should be initialized before usage",k.NO_SUCH_REQUEST="Smart contract panicked: panicked at 'No such request: either wrong number or already confirmed'",k.REQUEST_COOLDOWN_ERROR="Request cannot be deleted immediately after creation.",k.METHOD_NOT_FOUND="Contract method is not found"}(v.MultisigDeleteRequestRejectionError||(v.MultisigDeleteRequestRejectionError={})),function(k){k[k.INVALID_STATE=0]="INVALID_STATE",k[k.STATE_NOT_INITIALIZED=1]="STATE_NOT_INITIALIZED",k[k.VALID_STATE=2]="VALID_STATE",k[k.UNKNOWN_STATE=3]="UNKNOWN_STATE"}(v.MultisigStateStatus||(v.MultisigStateStatus={}))}}),require_account_multisig$2=__commonJS({"node_modules/@near-js/accounts/lib/account_multisig.js"(v){var k=v&&v.__awaiter||function(Br,$r,Pr,Ar){function ur(jr){return jr instanceof Pr?jr:new Pr(function(Mr){Mr(jr)})}return new(Pr||(Pr=Promise))(function(jr,Mr){function Lr(Ur){try{Gr(Ar.next(Ur))}catch(Qr){Mr(Qr)}}function Vr(Ur){try{Gr(Ar.throw(Ur))}catch(Qr){Mr(Qr)}}function Gr(Ur){Ur.done?jr(Ur.value):ur(Ur.value).then(Lr,Vr)}Gr((Ar=Ar.apply(Br,$r||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.AccountMultisig=void 0;var ie=require_lib7$1(),ae=require_account$3(),ce=require_constants3$2(),fe=require_types$5(),{deployContract:le,functionCall:ve}=ie.actionCreators,pe;(function(Br){Br[Br.INVALID_CODE=0]="INVALID_CODE",Br[Br.VALID_CODE=1]="VALID_CODE",Br[Br.UNKNOWN_CODE=2]="UNKNOWN_CODE"})(pe||(pe={}));var ye={[ce.MULTISIG_STORAGE_KEY]:null},me=class extends ae.Account{constructor(Br,$r,Pr){super(Br,$r),this.storage=Pr.storage,this.onAddRequestResult=Pr.onAddRequestResult}signAndSendTransactionWithAccount(Br,$r){const Pr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){return Pr.signAndSendTransaction.call(this,{receiverId:Br,actions:$r})})}signAndSendTransaction({receiverId:Br,actions:$r}){const Pr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const{accountId:Ar}=this,ur=Buffer.from(JSON.stringify({request:{receiver_id:Br,actions:cr($r,Ar,Br)}}));let jr;try{jr=yield Pr.signAndSendTransaction.call(this,{receiverId:Ar,actions:[ve("add_request_and_confirm",ur,ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]})}catch(Lr){if(Lr.toString().includes("Account has too many active requests. Confirm or delete some"))return yield this.deleteUnconfirmedRequests(),yield this.signAndSendTransaction({receiverId:Br,actions:$r});throw Lr}if(!jr.status)throw new Error("Request failed");const Mr=Object.assign({},jr.status);if(!Mr.SuccessValue||typeof Mr.SuccessValue!="string")throw new Error("Request failed");return this.setRequest({accountId:Ar,actions:$r,requestId:parseInt(Buffer.from(Mr.SuccessValue,"base64").toString("ascii"),10)}),this.onAddRequestResult&&(yield this.onAddRequestResult(jr)),this.deleteUnconfirmedRequests(),jr})}checkMultisigCodeAndStateStatus(Br){const $r=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const Ar=Br?pe.UNKNOWN_CODE:pe.VALID_CODE;try{return Br?yield $r.signAndSendTransaction.call(this,{receiverId:this.accountId,actions:[le(Br),ve("delete_request",{request_id:4294967295},ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]}):yield this.deleteRequest(4294967295),{codeStatus:pe.VALID_CODE,stateStatus:fe.MultisigStateStatus.VALID_STATE}}catch(ur){if(new RegExp(fe.MultisigDeleteRequestRejectionError.CANNOT_DESERIALIZE_STATE).test(ur&&ur.kind&&ur.kind.ExecutionError))return{codeStatus:Ar,stateStatus:fe.MultisigStateStatus.INVALID_STATE};if(new RegExp(fe.MultisigDeleteRequestRejectionError.MULTISIG_NOT_INITIALIZED).test(ur&&ur.kind&&ur.kind.ExecutionError))return{codeStatus:Ar,stateStatus:fe.MultisigStateStatus.STATE_NOT_INITIALIZED};if(new RegExp(fe.MultisigDeleteRequestRejectionError.NO_SUCH_REQUEST).test(ur&&ur.kind&&ur.kind.ExecutionError))return{codeStatus:Ar,stateStatus:fe.MultisigStateStatus.VALID_STATE};if(new RegExp(fe.MultisigDeleteRequestRejectionError.METHOD_NOT_FOUND).test(ur&&ur.message))return{codeStatus:pe.INVALID_CODE,stateStatus:fe.MultisigStateStatus.UNKNOWN_STATE};throw ur}})}deleteRequest(Br){return super.signAndSendTransaction({receiverId:this.accountId,actions:[ve("delete_request",{request_id:Br},ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]})}deleteAllRequests(){return k(this,void 0,void 0,function*(){const Br=yield this.getRequestIds();Br.length&&(yield Promise.all(Br.map($r=>this.deleteRequest($r))))})}deleteUnconfirmedRequests(){const Br=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const $r=yield this.getRequestIds(),{requestId:Pr}=this.getRequest();for(const Ar of $r)if(Ar!=Pr)try{yield Br.signAndSendTransaction.call(this,{receiverId:this.accountId,actions:[ve("delete_request",{request_id:Ar},ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]})}catch{console.warn("Attempt to delete an earlier request before 15 minutes failed. Will try again.")}})}getRequestIds(){return k(this,void 0,void 0,function*(){return this.viewFunction({contractId:this.accountId,methodName:"list_request_ids"})})}getRequest(){return this.storage?JSON.parse(this.storage.getItem(ce.MULTISIG_STORAGE_KEY)||"{}"):ye[ce.MULTISIG_STORAGE_KEY]}setRequest(Br){if(this.storage)return this.storage.setItem(ce.MULTISIG_STORAGE_KEY,JSON.stringify(Br));ye[ce.MULTISIG_STORAGE_KEY]=Br}};v.AccountMultisig=me;var Ee=Br=>Br.toString().replace("ed25519:",""),cr=(Br,$r,Pr)=>Br.map(Ar=>{const ur=Ar.enum,{gas:jr,publicKey:Mr,methodName:Lr,args:Vr,deposit:Gr,accessKey:Ur,code:Qr}=Ar[ur],hn={type:ur[0].toUpperCase()+ur.substr(1),gas:jr&&jr.toString()||void 0,public_key:Mr&&Ee(Mr)||void 0,method_name:Lr,args:Vr&&Buffer.from(Vr).toString("base64")||void 0,code:Qr&&Buffer.from(Qr).toString("base64")||void 0,amount:Gr&&Gr.toString()||void 0,deposit:Gr&&Gr.toString()||"0",permission:void 0};if(Ur&&(Pr===$r&&Ur.permission.enum!=="fullAccess"&&(hn.permission={receiver_id:$r,allowance:ce.MULTISIG_ALLOWANCE.toString(),method_names:ce.MULTISIG_CHANGE_METHODS}),Ur.permission.enum==="functionCall")){const{receiverId:Yt,methodNames:fn,allowance:Qt}=Ur.permission.functionCall;hn.permission={receiver_id:Yt,allowance:Qt&&Qt.toString()||void 0,method_names:fn}}return hn})}}),require_account_2fa$1=__commonJS({"node_modules/@near-js/accounts/lib/account_2fa.js"(v){var k=v&&v.__awaiter||function(Mr,Lr,Vr,Gr){function Ur(Qr){return Qr instanceof Vr?Qr:new Vr(function(hn){hn(Qr)})}return new(Vr||(Vr=Promise))(function(Qr,hn){function Yt(Xt){try{Qt(Gr.next(Xt))}catch(Kr){hn(Kr)}}function fn(Xt){try{Qt(Gr.throw(Xt))}catch(Kr){hn(Kr)}}function Qt(Xt){Xt.done?Qr(Xt.value):Ur(Xt.value).then(Yt,fn)}Qt((Gr=Gr.apply(Mr,Lr||[])).next())})},ie=v&&v.__importDefault||function(Mr){return Mr&&Mr.__esModule?Mr:{default:Mr}};Object.defineProperty(v,"__esModule",{value:!0}),v.Account2FA=void 0;var ae=require_lib3$1(),ce=require_lib2$1(),fe=require_lib8$1(),le=require_lib7$1(),ve=ie(require_bn$2()),pe=require_account_multisig$2(),ye=require_constants3$2(),me=require_types$5(),{addKey:Ee,deleteKey:cr,deployContract:Br,fullAccessKey:$r,functionCall:Pr,functionCallAccessKey:Ar}=le.actionCreators,ur=class extends pe.AccountMultisig{constructor(Mr,Lr,Vr){super(Mr,Lr,Vr),this.helperUrl="https://helper.testnet.near.org",this.helperUrl=Vr.helperUrl||this.helperUrl,this.storage=Vr.storage,this.sendCode=Vr.sendCode||this.sendCodeDefault,this.getCode=Vr.getCode||this.getCodeDefault,this.verifyCode=Vr.verifyCode||this.verifyCodeDefault,this.onConfirmResult=Vr.onConfirmResult}signAndSendTransaction({receiverId:Mr,actions:Lr}){const Vr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){yield Vr.signAndSendTransaction.call(this,{receiverId:Mr,actions:Lr}),yield this.sendCode();const Gr=yield this.promptAndVerify();return this.onConfirmResult&&(yield this.onConfirmResult(Gr)),Gr})}deployMultisig(Mr){const Lr=Object.create(null,{signAndSendTransactionWithAccount:{get:()=>super.signAndSendTransactionWithAccount}});return k(this,void 0,void 0,function*(){const{accountId:Vr}=this,Gr=(yield this.getRecoveryMethods()).data.filter(({kind:Xt,publicKey:Kr})=>(Xt==="phrase"||Xt==="ledger")&&Kr!==null).map(Xt=>Xt.publicKey),Ur=(yield this.getAccessKeys()).filter(({public_key:Xt,access_key:{permission:Kr}})=>Kr==="FullAccess"&&!Gr.includes(Xt)).map(Xt=>Xt.public_key).map(jr),Qr=jr((yield this.postSignedJson("/2fa/getAccessKey",{accountId:Vr})).publicKey),hn=Buffer.from(JSON.stringify({num_confirmations:2})),Yt=[...Ur.map(Xt=>cr(Xt)),...Ur.map(Xt=>Ee(Xt,Ar(Vr,ye.MULTISIG_CHANGE_METHODS,null))),Ee(Qr,Ar(Vr,ye.MULTISIG_CONFIRM_METHODS,null)),Br(Mr)],fn=Yt.concat(Pr("new",hn,ye.MULTISIG_GAS,ye.MULTISIG_DEPOSIT));console.log("deploying multisig contract for",Vr);const{stateStatus:Qt}=yield this.checkMultisigCodeAndStateStatus(Mr);switch(Qt){case me.MultisigStateStatus.STATE_NOT_INITIALIZED:return yield Lr.signAndSendTransactionWithAccount.call(this,Vr,fn);case me.MultisigStateStatus.VALID_STATE:return yield Lr.signAndSendTransactionWithAccount.call(this,Vr,Yt);case me.MultisigStateStatus.INVALID_STATE:throw new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account has existing state.`,"ContractHasExistingState");default:throw new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account state could not be verified.`,"ContractStateUnknown")}})}disableWithFAK({contractBytes:Mr,cleanupContractBytes:Lr}){return k(this,void 0,void 0,function*(){let Vr=[];Lr&&(yield this.deleteAllRequests().catch(hn=>hn),Vr=yield this.get2faDisableCleanupActions(Lr));const Gr=yield this.get2faDisableKeyConversionActions(),Ur=[...Vr,...Gr,Br(Mr)],Qr=yield this.findAccessKey(this.accountId,Ur);if(Qr&&Qr.accessKey&&Qr.accessKey.permission!=="FullAccess")throw new ce.TypedError("No full access key found in keystore. Unable to bypass multisig","NoFAKFound");return this.signAndSendTransactionWithAccount(this.accountId,Ur)})}get2faDisableCleanupActions(Mr){return k(this,void 0,void 0,function*(){const Lr=yield this.viewState("").catch(Gr=>{const Ur=Gr.cause&&Gr.cause.name;if(Ur=="NO_CONTRACT_CODE")return[];throw Ur=="TOO_LARGE_CONTRACT_STATE"?new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account has existing state.`,"ContractHasExistingState"):Gr}),Vr=Lr.map(({key:Gr})=>Gr.toString("base64"));return Lr.length?[Br(Mr),Pr("clean",{keys:Vr},ye.MULTISIG_GAS,new ve.default("0"))]:[]})}get2faDisableKeyConversionActions(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this,Vr=(yield this.getAccessKeys()).filter(({access_key:Ur})=>Ur.permission!=="FullAccess").filter(({access_key:Ur})=>{const Qr=Ur.permission.FunctionCall;return Qr.receiver_id===Mr&&Qr.method_names.length===4&&Qr.method_names.includes("add_request_and_confirm")}),Gr=ae.PublicKey.from((yield this.postSignedJson("/2fa/getAccessKey",{accountId:Mr})).publicKey);return[cr(Gr),...Vr.map(({public_key:Ur})=>cr(ae.PublicKey.from(Ur))),...Vr.map(({public_key:Ur})=>Ee(ae.PublicKey.from(Ur),$r()))]})}disable(Mr,Lr){return k(this,void 0,void 0,function*(){const{stateStatus:Vr}=yield this.checkMultisigCodeAndStateStatus();if(Vr!==me.MultisigStateStatus.VALID_STATE&&Vr!==me.MultisigStateStatus.STATE_NOT_INITIALIZED)throw new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account state could not be verified.`,"ContractStateUnknown");let Gr;yield this.deleteAllRequests().catch(hn=>Gr=hn);const Qr=[...yield this.get2faDisableCleanupActions(Lr).catch(hn=>{throw hn.type==="ContractHasExistingState"&&Gr||hn}),...yield this.get2faDisableKeyConversionActions(),Br(Mr)];return console.log("disabling 2fa for",this.accountId),yield this.signAndSendTransaction({receiverId:this.accountId,actions:Qr})})}sendCodeDefault(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this,{requestId:Lr}=this.getRequest(),Vr=yield this.get2faMethod();return yield this.postSignedJson("/2fa/send",{accountId:Mr,method:Vr,requestId:Lr}),Lr})}getCodeDefault(){return k(this,void 0,void 0,function*(){throw new Error('There is no getCode callback provided. Please provide your own in AccountMultisig constructor options. It has a parameter method where method.kind is "email" or "phone".')})}promptAndVerify(){return k(this,void 0,void 0,function*(){const Mr=yield this.get2faMethod(),Lr=yield this.getCode(Mr);try{return yield this.verifyCode(Lr)}catch(Vr){if(console.warn("Error validating security code:",Vr),Vr.toString().includes("invalid 2fa code provided")||Vr.toString().includes("2fa code not valid"))return yield this.promptAndVerify();throw Vr}})}verifyCodeDefault(Mr){return k(this,void 0,void 0,function*(){const{accountId:Lr}=this,Vr=this.getRequest();if(!Vr)throw new Error("no request pending");const{requestId:Gr}=Vr;return yield this.postSignedJson("/2fa/verify",{accountId:Lr,securityCode:Mr,requestId:Gr})})}getRecoveryMethods(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this;return{accountId:Mr,data:yield this.postSignedJson("/account/recoveryMethods",{accountId:Mr})}})}get2faMethod(){return k(this,void 0,void 0,function*(){let{data:Mr}=yield this.getRecoveryMethods();if(Mr&&Mr.length&&(Mr=Mr.find(Gr=>Gr.kind.indexOf("2fa-")===0)),!Mr)return null;const{kind:Lr,detail:Vr}=Mr;return{kind:Lr,detail:Vr}})}signatureFor(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this,Vr=(yield this.connection.provider.block({finality:"final"})).header.height.toString(),Gr=yield this.connection.signer.signMessage(Buffer.from(Vr),Mr,this.connection.networkId),Ur=Buffer.from(Gr.signature).toString("base64");return{blockNumber:Vr,blockNumberSignature:Ur}})}postSignedJson(Mr,Lr){return k(this,void 0,void 0,function*(){return yield(0,fe.fetchJson)(this.helperUrl+Mr,JSON.stringify(Object.assign(Object.assign({},Lr),yield this.signatureFor())))})}};v.Account2FA=ur;var jr=Mr=>ae.PublicKey.from(Mr)}}),require_account_creator$2=__commonJS({"node_modules/@near-js/accounts/lib/account_creator.js"(v){var k=v&&v.__awaiter||function(le,ve,pe,ye){function me(Ee){return Ee instanceof pe?Ee:new pe(function(cr){cr(Ee)})}return new(pe||(pe=Promise))(function(Ee,cr){function Br(Ar){try{Pr(ye.next(Ar))}catch(ur){cr(ur)}}function $r(Ar){try{Pr(ye.throw(Ar))}catch(ur){cr(ur)}}function Pr(Ar){Ar.done?Ee(Ar.value):me(Ar.value).then(Br,$r)}Pr((ye=ye.apply(le,ve||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.UrlAccountCreator=v.LocalAccountCreator=v.AccountCreator=void 0;var ie=require_lib8$1(),ae=class{};v.AccountCreator=ae;var ce=class extends ae{constructor(le,ve){super(),this.masterAccount=le,this.initialBalance=ve}createAccount(le,ve){return k(this,void 0,void 0,function*(){yield this.masterAccount.createAccount(le,ve,this.initialBalance)})}};v.LocalAccountCreator=ce;var fe=class extends ae{constructor(le,ve){super(),this.connection=le,this.helperUrl=ve}createAccount(le,ve){return k(this,void 0,void 0,function*(){yield(0,ie.fetchJson)(`${this.helperUrl}/account`,JSON.stringify({newAccountId:le,newAccountPublicKey:ve.toString()}))})}};v.UrlAccountCreator=fe}}),require_signer$2=__commonJS({"node_modules/@near-js/signers/lib/signer.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signer=void 0;var k=class{};v.Signer=k}}),require_in_memory_signer$1=__commonJS({"node_modules/@near-js/signers/lib/in_memory_signer.js"(v){var k=v&&v.__awaiter||function(pe,ye,me,Ee){function cr(Br){return Br instanceof me?Br:new me(function($r){$r(Br)})}return new(me||(me=Promise))(function(Br,$r){function Pr(jr){try{ur(Ee.next(jr))}catch(Mr){$r(Mr)}}function Ar(jr){try{ur(Ee.throw(jr))}catch(Mr){$r(Mr)}}function ur(jr){jr.done?Br(jr.value):cr(jr.value).then(Pr,Ar)}ur((Ee=Ee.apply(pe,ye||[])).next())})},ie=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.InMemorySigner=void 0;var ae=require_lib3$1(),ce=require_lib4$2(),fe=ie(require_sha256$3()),le=require_signer$2(),ve=class extends le.Signer{constructor(pe){super(),this.keyStore=pe}static fromKeyPair(pe,ye,me){return k(this,void 0,void 0,function*(){const Ee=new ce.InMemoryKeyStore;return yield Ee.setKey(pe,ye,me),new ve(Ee)})}createKey(pe,ye){return k(this,void 0,void 0,function*(){const me=ae.KeyPair.fromRandom("ed25519");return yield this.keyStore.setKey(ye,pe,me),me.getPublicKey()})}getPublicKey(pe,ye){return k(this,void 0,void 0,function*(){const me=yield this.keyStore.getKey(ye,pe);return me===null?null:me.getPublicKey()})}signMessage(pe,ye,me){return k(this,void 0,void 0,function*(){const Ee=new Uint8Array(fe.default.sha256.array(pe));if(!ye)throw new Error("InMemorySigner requires provided account id");const cr=yield this.keyStore.getKey(me,ye);if(cr===null)throw new Error(`Key for ${ye} not found in ${me}`);return cr.sign(Ee)})}toString(){return`InMemorySigner(${this.keyStore})`}};v.InMemorySigner=ve}}),require_lib9$1=__commonJS({"node_modules/@near-js/signers/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signer=v.InMemorySigner=void 0;var k=require_in_memory_signer$1();Object.defineProperty(v,"InMemorySigner",{enumerable:!0,get:function(){return k.InMemorySigner}});var ie=require_signer$2();Object.defineProperty(v,"Signer",{enumerable:!0,get:function(){return ie.Signer}})}}),require_connection$2=__commonJS({"node_modules/@near-js/accounts/lib/connection.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Connection=void 0;var k=require_lib9$1(),ie=require_lib8$1();function ae(le){switch(le.type){case void 0:return le;case"JsonRpcProvider":return new ie.JsonRpcProvider(Object.assign({},le.args));default:throw new Error(`Unknown provider type ${le.type}`)}}function ce(le){switch(le.type){case void 0:return le;case"InMemorySigner":return new k.InMemorySigner(le.keyStore);default:throw new Error(`Unknown signer type ${le.type}`)}}var fe=class{constructor(le,ve,pe,ye){this.networkId=le,this.provider=ve,this.signer=pe,this.jsvmAccountId=ye}static fromConfig(le){const ve=ae(le.provider),pe=ce(le.signer);return new fe(le.networkId,ve,pe,le.jsvmAccountId)}};v.Connection=fe}}),require_code$1=__commonJS({"node_modules/ajv/dist/compile/codegen/code.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.regexpCode=v.getEsmExportName=v.getProperty=v.safeStringify=v.stringify=v.strConcat=v.addCodeArg=v.str=v._=v.nil=v._Code=v.Name=v.IDENTIFIER=v._CodeOrName=void 0;var k=class{};v._CodeOrName=k,v.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ie=class extends k{constructor(ur){if(super(),!v.IDENTIFIER.test(ur))throw new Error("CodeGen: name must be a valid identifier");this.str=ur}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};v.Name=ie;var ae=class extends k{constructor(ur){super(),this._items=typeof ur=="string"?[ur]:ur}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const ur=this._items[0];return ur===""||ur==='""'}get str(){var ur;return(ur=this._str)!==null&&ur!==void 0?ur:this._str=this._items.reduce((jr,Mr)=>`${jr}${Mr}`,"")}get names(){var ur;return(ur=this._names)!==null&&ur!==void 0?ur:this._names=this._items.reduce((jr,Mr)=>(Mr instanceof ie&&(jr[Mr.str]=(jr[Mr.str]||0)+1),jr),{})}};v._Code=ae,v.nil=new ae("");function ce(ur,...jr){const Mr=[ur[0]];let Lr=0;for(;Lr{if(me.scopePath===void 0)throw new Error(`CodeGen: name "${me}" has no value`);return(0,k._)`${pe}${me.scopePath}`})}scopeCode(pe=this._values,ye,me){return this._reduceValues(pe,Ee=>{if(Ee.value===void 0)throw new Error(`CodeGen: name "${Ee}" has no value`);return Ee.value.code},ye,me)}_reduceValues(pe,ye,me={},Ee){let cr=k.nil;for(const Br in pe){const $r=pe[Br];if(!$r)continue;const Pr=me[Br]=me[Br]||new Map;$r.forEach(Ar=>{if(Pr.has(Ar))return;Pr.set(Ar,ae.Started);let ur=ye(Ar);if(ur){const jr=this.opts.es5?v.varKinds.var:v.varKinds.const;cr=(0,k._)`${cr}${jr} ${Ar} = ${ur};${this.opts._n}`}else if(ur=Ee==null?void 0:Ee(Ar))cr=(0,k._)`${cr}${ur}${this.opts._n}`;else throw new ie(Ar);Pr.set(Ar,ae.Completed)})}return cr}};v.ValueScope=ve}}),require_codegen$1=__commonJS({"node_modules/ajv/dist/compile/codegen/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.or=v.and=v.not=v.CodeGen=v.operators=v.varKinds=v.ValueScopeName=v.ValueScope=v.Scope=v.Name=v.regexpCode=v.stringify=v.getProperty=v.nil=v.strConcat=v.str=v._=void 0;var k=require_code$1(),ie=require_scope$1(),ae=require_code$1();Object.defineProperty(v,"_",{enumerable:!0,get:function(){return ae._}}),Object.defineProperty(v,"str",{enumerable:!0,get:function(){return ae.str}}),Object.defineProperty(v,"strConcat",{enumerable:!0,get:function(){return ae.strConcat}}),Object.defineProperty(v,"nil",{enumerable:!0,get:function(){return ae.nil}}),Object.defineProperty(v,"getProperty",{enumerable:!0,get:function(){return ae.getProperty}}),Object.defineProperty(v,"stringify",{enumerable:!0,get:function(){return ae.stringify}}),Object.defineProperty(v,"regexpCode",{enumerable:!0,get:function(){return ae.regexpCode}}),Object.defineProperty(v,"Name",{enumerable:!0,get:function(){return ae.Name}});var ce=require_scope$1();Object.defineProperty(v,"Scope",{enumerable:!0,get:function(){return ce.Scope}}),Object.defineProperty(v,"ValueScope",{enumerable:!0,get:function(){return ce.ValueScope}}),Object.defineProperty(v,"ValueScopeName",{enumerable:!0,get:function(){return ce.ValueScopeName}}),Object.defineProperty(v,"varKinds",{enumerable:!0,get:function(){return ce.varKinds}}),v.operators={GT:new k._Code(">"),GTE:new k._Code(">="),LT:new k._Code("<"),LTE:new k._Code("<="),EQ:new k._Code("==="),NEQ:new k._Code("!=="),NOT:new k._Code("!"),OR:new k._Code("||"),AND:new k._Code("&&"),ADD:new k._Code("+")};var fe=class{optimizeNodes(){return this}optimizeNames(Nr,Hr){return this}},le=class extends fe{constructor(Nr,Hr,On){super(),this.varKind=Nr,this.name=Hr,this.rhs=On}render({es5:Nr,_n:Hr}){const On=Nr?ie.varKinds.var:this.varKind,Gn=this.rhs===void 0?"":` = ${this.rhs}`;return`${On} ${this.name}${Gn};`+Hr}optimizeNames(Nr,Hr){if(!!Nr[this.name.str])return this.rhs&&(this.rhs=Kr(this.rhs,Nr,Hr)),this}get names(){return this.rhs instanceof k._CodeOrName?this.rhs.names:{}}},ve=class extends fe{constructor(Nr,Hr,On){super(),this.lhs=Nr,this.rhs=Hr,this.sideEffects=On}render({_n:Nr}){return`${this.lhs} = ${this.rhs};`+Nr}optimizeNames(Nr,Hr){if(!(this.lhs instanceof k.Name&&!Nr[this.lhs.str]&&!this.sideEffects))return this.rhs=Kr(this.rhs,Nr,Hr),this}get names(){const Nr=this.lhs instanceof k.Name?{}:{...this.lhs.names};return Xt(Nr,this.rhs)}},pe=class extends ve{constructor(Nr,Hr,On,Gn){super(Nr,On,Gn),this.op=Hr}render({_n:Nr}){return`${this.lhs} ${this.op}= ${this.rhs};`+Nr}},ye=class extends fe{constructor(Nr){super(),this.label=Nr,this.names={}}render({_n:Nr}){return`${this.label}:`+Nr}},me=class extends fe{constructor(Nr){super(),this.label=Nr,this.names={}}render({_n:Nr}){return`break${this.label?` ${this.label}`:""};`+Nr}},Ee=class extends fe{constructor(Nr){super(),this.error=Nr}render({_n:Nr}){return`throw ${this.error};`+Nr}get names(){return this.error.names}},cr=class extends fe{constructor(Nr){super(),this.code=Nr}render({_n:Nr}){return`${this.code};`+Nr}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(Nr,Hr){return this.code=Kr(this.code,Nr,Hr),this}get names(){return this.code instanceof k._CodeOrName?this.code.names:{}}},Br=class extends fe{constructor(Nr=[]){super(),this.nodes=Nr}render(Nr){return this.nodes.reduce((Hr,On)=>Hr+On.render(Nr),"")}optimizeNodes(){const{nodes:Nr}=this;let Hr=Nr.length;for(;Hr--;){const On=Nr[Hr].optimizeNodes();Array.isArray(On)?Nr.splice(Hr,1,...On):On?Nr[Hr]=On:Nr.splice(Hr,1)}return Nr.length>0?this:void 0}optimizeNames(Nr,Hr){const{nodes:On}=this;let Gn=On.length;for(;Gn--;){const mn=On[Gn];mn.optimizeNames(Nr,Hr)||(be(Nr,mn.names),On.splice(Gn,1))}return On.length>0?this:void 0}get names(){return this.nodes.reduce((Nr,Hr)=>Qt(Nr,Hr.names),{})}},$r=class extends Br{render(Nr){return"{"+Nr._n+super.render(Nr)+"}"+Nr._n}},Pr=class extends Br{},Ar=class extends $r{};Ar.kind="else";var ur=class extends $r{constructor(Nr,Hr){super(Hr),this.condition=Nr}render(Nr){let Hr=`if(${this.condition})`+super.render(Nr);return this.else&&(Hr+="else "+this.else.render(Nr)),Hr}optimizeNodes(){super.optimizeNodes();const Nr=this.condition;if(Nr===!0)return this.nodes;let Hr=this.else;if(Hr){const On=Hr.optimizeNodes();Hr=this.else=Array.isArray(On)?new Ar(On):On}if(Hr)return Nr===!1?Hr instanceof ur?Hr:Hr.nodes:this.nodes.length?this:new ur(kr(Nr),Hr instanceof ur?[Hr]:Hr.nodes);if(!(Nr===!1||!this.nodes.length))return this}optimizeNames(Nr,Hr){var On;if(this.else=(On=this.else)===null||On===void 0?void 0:On.optimizeNames(Nr,Hr),!!(super.optimizeNames(Nr,Hr)||this.else))return this.condition=Kr(this.condition,Nr,Hr),this}get names(){const Nr=super.names;return Xt(Nr,this.condition),this.else&&Qt(Nr,this.else.names),Nr}};ur.kind="if";var jr=class extends $r{};jr.kind="for";var Mr=class extends jr{constructor(Nr){super(),this.iteration=Nr}render(Nr){return`for(${this.iteration})`+super.render(Nr)}optimizeNames(Nr,Hr){if(!!super.optimizeNames(Nr,Hr))return this.iteration=Kr(this.iteration,Nr,Hr),this}get names(){return Qt(super.names,this.iteration.names)}},Lr=class extends jr{constructor(Nr,Hr,On,Gn){super(),this.varKind=Nr,this.name=Hr,this.from=On,this.to=Gn}render(Nr){const Hr=Nr.es5?ie.varKinds.var:this.varKind,{name:On,from:Gn,to:mn}=this;return`for(${Hr} ${On}=${Gn}; ${On}<${mn}; ${On}++)`+super.render(Nr)}get names(){const Nr=Xt(super.names,this.from);return Xt(Nr,this.to)}},Vr=class extends jr{constructor(Nr,Hr,On,Gn){super(),this.loop=Nr,this.varKind=Hr,this.name=On,this.iterable=Gn}render(Nr){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(Nr)}optimizeNames(Nr,Hr){if(!!super.optimizeNames(Nr,Hr))return this.iterable=Kr(this.iterable,Nr,Hr),this}get names(){return Qt(super.names,this.iterable.names)}},Gr=class extends $r{constructor(Nr,Hr,On){super(),this.name=Nr,this.args=Hr,this.async=On}render(Nr){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(Nr)}};Gr.kind="func";var Ur=class extends Br{render(Nr){return"return "+super.render(Nr)}};Ur.kind="return";var Qr=class extends $r{render(Nr){let Hr="try"+super.render(Nr);return this.catch&&(Hr+=this.catch.render(Nr)),this.finally&&(Hr+=this.finally.render(Nr)),Hr}optimizeNodes(){var Nr,Hr;return super.optimizeNodes(),(Nr=this.catch)===null||Nr===void 0||Nr.optimizeNodes(),(Hr=this.finally)===null||Hr===void 0||Hr.optimizeNodes(),this}optimizeNames(Nr,Hr){var On,Gn;return super.optimizeNames(Nr,Hr),(On=this.catch)===null||On===void 0||On.optimizeNames(Nr,Hr),(Gn=this.finally)===null||Gn===void 0||Gn.optimizeNames(Nr,Hr),this}get names(){const Nr=super.names;return this.catch&&Qt(Nr,this.catch.names),this.finally&&Qt(Nr,this.finally.names),Nr}},hn=class extends $r{constructor(Nr){super(),this.error=Nr}render(Nr){return`catch(${this.error})`+super.render(Nr)}};hn.kind="catch";var Yt=class extends $r{render(Nr){return"finally"+super.render(Nr)}};Yt.kind="finally";var fn=class{constructor(Nr,Hr={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...Hr,_n:Hr.lines?` +`:""},this._extScope=Nr,this._scope=new ie.Scope({parent:Nr}),this._nodes=[new Pr]}toString(){return this._root.render(this.opts)}name(Nr){return this._scope.name(Nr)}scopeName(Nr){return this._extScope.name(Nr)}scopeValue(Nr,Hr){const On=this._extScope.value(Nr,Hr);return(this._values[On.prefix]||(this._values[On.prefix]=new Set)).add(On),On}getScopeValue(Nr,Hr){return this._extScope.getValue(Nr,Hr)}scopeRefs(Nr){return this._extScope.scopeRefs(Nr,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(Nr,Hr,On,Gn){const mn=this._scope.toName(Hr);return On!==void 0&&Gn&&(this._constants[mn.str]=On),this._leafNode(new le(Nr,mn,On)),mn}const(Nr,Hr,On){return this._def(ie.varKinds.const,Nr,Hr,On)}let(Nr,Hr,On){return this._def(ie.varKinds.let,Nr,Hr,On)}var(Nr,Hr,On){return this._def(ie.varKinds.var,Nr,Hr,On)}assign(Nr,Hr,On){return this._leafNode(new ve(Nr,Hr,On))}add(Nr,Hr){return this._leafNode(new pe(Nr,v.operators.ADD,Hr))}code(Nr){return typeof Nr=="function"?Nr():Nr!==k.nil&&this._leafNode(new cr(Nr)),this}object(...Nr){const Hr=["{"];for(const[On,Gn]of Nr)Hr.length>1&&Hr.push(","),Hr.push(On),(On!==Gn||this.opts.es5)&&(Hr.push(":"),(0,k.addCodeArg)(Hr,Gn));return Hr.push("}"),new k._Code(Hr)}if(Nr,Hr,On){if(this._blockNode(new ur(Nr)),Hr&&On)this.code(Hr).else().code(On).endIf();else if(Hr)this.code(Hr).endIf();else if(On)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(Nr){return this._elseNode(new ur(Nr))}else(){return this._elseNode(new Ar)}endIf(){return this._endBlockNode(ur,Ar)}_for(Nr,Hr){return this._blockNode(Nr),Hr&&this.code(Hr).endFor(),this}for(Nr,Hr){return this._for(new Mr(Nr),Hr)}forRange(Nr,Hr,On,Gn,mn=this.opts.es5?ie.varKinds.var:ie.varKinds.let){const Nn=this._scope.toName(Nr);return this._for(new Lr(mn,Nn,Hr,On),()=>Gn(Nn))}forOf(Nr,Hr,On,Gn=ie.varKinds.const){const mn=this._scope.toName(Nr);if(this.opts.es5){const Nn=Hr instanceof k.Name?Hr:this.var("_arr",Hr);return this.forRange("_i",0,(0,k._)`${Nn}.length`,In=>{this.var(mn,(0,k._)`${Nn}[${In}]`),On(mn)})}return this._for(new Vr("of",Gn,mn,Hr),()=>On(mn))}forIn(Nr,Hr,On,Gn=this.opts.es5?ie.varKinds.var:ie.varKinds.const){if(this.opts.ownProperties)return this.forOf(Nr,(0,k._)`Object.keys(${Hr})`,On);const mn=this._scope.toName(Nr);return this._for(new Vr("in",Gn,mn,Hr),()=>On(mn))}endFor(){return this._endBlockNode(jr)}label(Nr){return this._leafNode(new ye(Nr))}break(Nr){return this._leafNode(new me(Nr))}return(Nr){const Hr=new Ur;if(this._blockNode(Hr),this.code(Nr),Hr.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ur)}try(Nr,Hr,On){if(!Hr&&!On)throw new Error('CodeGen: "try" without "catch" and "finally"');const Gn=new Qr;if(this._blockNode(Gn),this.code(Nr),Hr){const mn=this.name("e");this._currNode=Gn.catch=new hn(mn),Hr(mn)}return On&&(this._currNode=Gn.finally=new Yt,this.code(On)),this._endBlockNode(hn,Yt)}throw(Nr){return this._leafNode(new Ee(Nr))}block(Nr,Hr){return this._blockStarts.push(this._nodes.length),Nr&&this.code(Nr).endBlock(Hr),this}endBlock(Nr){const Hr=this._blockStarts.pop();if(Hr===void 0)throw new Error("CodeGen: not in self-balancing block");const On=this._nodes.length-Hr;if(On<0||Nr!==void 0&&On!==Nr)throw new Error(`CodeGen: wrong number of nodes: ${On} vs ${Nr} expected`);return this._nodes.length=Hr,this}func(Nr,Hr=k.nil,On,Gn){return this._blockNode(new Gr(Nr,Hr,On)),Gn&&this.code(Gn).endFunc(),this}endFunc(){return this._endBlockNode(Gr)}optimize(Nr=1){for(;Nr-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(Nr){return this._currNode.nodes.push(Nr),this}_blockNode(Nr){this._currNode.nodes.push(Nr),this._nodes.push(Nr)}_endBlockNode(Nr,Hr){const On=this._currNode;if(On instanceof Nr||Hr&&On instanceof Hr)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${Hr?`${Nr.kind}/${Hr.kind}`:Nr.kind}"`)}_elseNode(Nr){const Hr=this._currNode;if(!(Hr instanceof ur))throw new Error('CodeGen: "else" without "if"');return this._currNode=Hr.else=Nr,this}get _root(){return this._nodes[0]}get _currNode(){const Nr=this._nodes;return Nr[Nr.length-1]}set _currNode(Nr){const Hr=this._nodes;Hr[Hr.length-1]=Nr}};v.CodeGen=fn;function Qt(Nr,Hr){for(const On in Hr)Nr[On]=(Nr[On]||0)+(Hr[On]||0);return Nr}function Xt(Nr,Hr){return Hr instanceof k._CodeOrName?Qt(Nr,Hr.names):Nr}function Kr(Nr,Hr,On){if(Nr instanceof k.Name)return Gn(Nr);if(!mn(Nr))return Nr;return new k._Code(Nr._items.reduce((Nn,In)=>(In instanceof k.Name&&(In=Gn(In)),In instanceof k._Code?Nn.push(...In._items):Nn.push(In),Nn),[]));function Gn(Nn){const In=On[Nn.str];return In===void 0||Hr[Nn.str]!==1?Nn:(delete Hr[Nn.str],In)}function mn(Nn){return Nn instanceof k._Code&&Nn._items.some(In=>In instanceof k.Name&&Hr[In.str]===1&&On[In.str]!==void 0)}}function be(Nr,Hr){for(const On in Hr)Nr[On]=(Nr[On]||0)-(Hr[On]||0)}function kr(Nr){return typeof Nr=="boolean"||typeof Nr=="number"||Nr===null?!Nr:(0,k._)`!${Jr(Nr)}`}v.not=kr;var xr=zr(v.operators.AND);function Wr(...Nr){return Nr.reduce(xr)}v.and=Wr;var Jt=zr(v.operators.OR);function Xr(...Nr){return Nr.reduce(Jt)}v.or=Xr;function zr(Nr){return(Hr,On)=>Hr===k.nil?On:On===k.nil?Hr:(0,k._)`${Jr(Hr)} ${Nr} ${Jr(On)}`}function Jr(Nr){return Nr instanceof k.Name?Nr:(0,k._)`(${Nr})`}}}),require_util$2=__commonJS({"node_modules/ajv/dist/compile/util.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.checkStrictMode=v.getErrorPath=v.Type=v.useFunc=v.setEvaluated=v.evaluatedPropsToName=v.mergeEvaluated=v.eachItem=v.unescapeJsonPointer=v.escapeJsonPointer=v.escapeFragment=v.unescapeFragment=v.schemaRefOrVal=v.schemaHasRulesButRef=v.schemaHasRules=v.checkUnknownRules=v.alwaysValidSchema=v.toHash=void 0;var k=require_codegen$1(),ie=require_code$1();function ae(Gr){const Ur={};for(const Qr of Gr)Ur[Qr]=!0;return Ur}v.toHash=ae;function ce(Gr,Ur){return typeof Ur=="boolean"?Ur:Object.keys(Ur).length===0?!0:(fe(Gr,Ur),!le(Ur,Gr.self.RULES.all))}v.alwaysValidSchema=ce;function fe(Gr,Ur=Gr.schema){const{opts:Qr,self:hn}=Gr;if(!Qr.strictSchema||typeof Ur=="boolean")return;const Yt=hn.RULES.keywords;for(const fn in Ur)Yt[fn]||Vr(Gr,`unknown keyword: "${fn}"`)}v.checkUnknownRules=fe;function le(Gr,Ur){if(typeof Gr=="boolean")return!Gr;for(const Qr in Gr)if(Ur[Qr])return!0;return!1}v.schemaHasRules=le;function ve(Gr,Ur){if(typeof Gr=="boolean")return!Gr;for(const Qr in Gr)if(Qr!=="$ref"&&Ur.all[Qr])return!0;return!1}v.schemaHasRulesButRef=ve;function pe({topSchemaRef:Gr,schemaPath:Ur},Qr,hn,Yt){if(!Yt){if(typeof Qr=="number"||typeof Qr=="boolean")return Qr;if(typeof Qr=="string")return(0,k._)`${Qr}`}return(0,k._)`${Gr}${Ur}${(0,k.getProperty)(hn)}`}v.schemaRefOrVal=pe;function ye(Gr){return cr(decodeURIComponent(Gr))}v.unescapeFragment=ye;function me(Gr){return encodeURIComponent(Ee(Gr))}v.escapeFragment=me;function Ee(Gr){return typeof Gr=="number"?`${Gr}`:Gr.replace(/~/g,"~0").replace(/\//g,"~1")}v.escapeJsonPointer=Ee;function cr(Gr){return Gr.replace(/~1/g,"/").replace(/~0/g,"~")}v.unescapeJsonPointer=cr;function Br(Gr,Ur){if(Array.isArray(Gr))for(const Qr of Gr)Ur(Qr);else Ur(Gr)}v.eachItem=Br;function $r({mergeNames:Gr,mergeToName:Ur,mergeValues:Qr,resultToName:hn}){return(Yt,fn,Qt,Xt)=>{const Kr=Qt===void 0?fn:Qt instanceof k.Name?(fn instanceof k.Name?Gr(Yt,fn,Qt):Ur(Yt,fn,Qt),Qt):fn instanceof k.Name?(Ur(Yt,Qt,fn),fn):Qr(fn,Qt);return Xt===k.Name&&!(Kr instanceof k.Name)?hn(Yt,Kr):Kr}}v.mergeEvaluated={props:$r({mergeNames:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true && ${Ur} !== undefined`,()=>{Gr.if((0,k._)`${Ur} === true`,()=>Gr.assign(Qr,!0),()=>Gr.assign(Qr,(0,k._)`${Qr} || {}`).code((0,k._)`Object.assign(${Qr}, ${Ur})`))}),mergeToName:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true`,()=>{Ur===!0?Gr.assign(Qr,!0):(Gr.assign(Qr,(0,k._)`${Qr} || {}`),Ar(Gr,Qr,Ur))}),mergeValues:(Gr,Ur)=>Gr===!0?!0:{...Gr,...Ur},resultToName:Pr}),items:$r({mergeNames:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true && ${Ur} !== undefined`,()=>Gr.assign(Qr,(0,k._)`${Ur} === true ? true : ${Qr} > ${Ur} ? ${Qr} : ${Ur}`)),mergeToName:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true`,()=>Gr.assign(Qr,Ur===!0?!0:(0,k._)`${Qr} > ${Ur} ? ${Qr} : ${Ur}`)),mergeValues:(Gr,Ur)=>Gr===!0?!0:Math.max(Gr,Ur),resultToName:(Gr,Ur)=>Gr.var("items",Ur)})};function Pr(Gr,Ur){if(Ur===!0)return Gr.var("props",!0);const Qr=Gr.var("props",(0,k._)`{}`);return Ur!==void 0&&Ar(Gr,Qr,Ur),Qr}v.evaluatedPropsToName=Pr;function Ar(Gr,Ur,Qr){Object.keys(Qr).forEach(hn=>Gr.assign((0,k._)`${Ur}${(0,k.getProperty)(hn)}`,!0))}v.setEvaluated=Ar;var ur={};function jr(Gr,Ur){return Gr.scopeValue("func",{ref:Ur,code:ur[Ur.code]||(ur[Ur.code]=new ie._Code(Ur.code))})}v.useFunc=jr;var Mr;(function(Gr){Gr[Gr.Num=0]="Num",Gr[Gr.Str=1]="Str"})(Mr=v.Type||(v.Type={}));function Lr(Gr,Ur,Qr){if(Gr instanceof k.Name){const hn=Ur===Mr.Num;return Qr?hn?(0,k._)`"[" + ${Gr} + "]"`:(0,k._)`"['" + ${Gr} + "']"`:hn?(0,k._)`"/" + ${Gr}`:(0,k._)`"/" + ${Gr}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return Qr?(0,k.getProperty)(Gr).toString():"/"+Ee(Gr)}v.getErrorPath=Lr;function Vr(Gr,Ur,Qr=Gr.opts.strictSchema){if(!!Qr){if(Ur=`strict mode: ${Ur}`,Qr===!0)throw new Error(Ur);Gr.self.logger.warn(Ur)}}v.checkStrictMode=Vr}}),require_names$1=__commonJS({"node_modules/ajv/dist/compile/names.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie={data:new k.Name("data"),valCxt:new k.Name("valCxt"),instancePath:new k.Name("instancePath"),parentData:new k.Name("parentData"),parentDataProperty:new k.Name("parentDataProperty"),rootData:new k.Name("rootData"),dynamicAnchors:new k.Name("dynamicAnchors"),vErrors:new k.Name("vErrors"),errors:new k.Name("errors"),this:new k.Name("this"),self:new k.Name("self"),scope:new k.Name("scope"),json:new k.Name("json"),jsonPos:new k.Name("jsonPos"),jsonLen:new k.Name("jsonLen"),jsonPart:new k.Name("jsonPart")};v.default=ie}}),require_errors4$1=__commonJS({"node_modules/ajv/dist/compile/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.extendErrors=v.resetErrorsCount=v.reportExtraError=v.reportError=v.keyword$DataError=v.keywordError=void 0;var k=require_codegen$1(),ie=require_util$2(),ae=require_names$1();v.keywordError={message:({keyword:Ar})=>(0,k.str)`must pass "${Ar}" keyword validation`},v.keyword$DataError={message:({keyword:Ar,schemaType:ur})=>ur?(0,k.str)`"${Ar}" keyword must be ${ur} ($data)`:(0,k.str)`"${Ar}" keyword is invalid ($data)`};function ce(Ar,ur=v.keywordError,jr,Mr){const{it:Lr}=Ar,{gen:Vr,compositeRule:Gr,allErrors:Ur}=Lr,Qr=Ee(Ar,ur,jr);(Mr!=null?Mr:Gr||Ur)?pe(Vr,Qr):ye(Lr,(0,k._)`[${Qr}]`)}v.reportError=ce;function fe(Ar,ur=v.keywordError,jr){const{it:Mr}=Ar,{gen:Lr,compositeRule:Vr,allErrors:Gr}=Mr,Ur=Ee(Ar,ur,jr);pe(Lr,Ur),Vr||Gr||ye(Mr,ae.default.vErrors)}v.reportExtraError=fe;function le(Ar,ur){Ar.assign(ae.default.errors,ur),Ar.if((0,k._)`${ae.default.vErrors} !== null`,()=>Ar.if(ur,()=>Ar.assign((0,k._)`${ae.default.vErrors}.length`,ur),()=>Ar.assign(ae.default.vErrors,null)))}v.resetErrorsCount=le;function ve({gen:Ar,keyword:ur,schemaValue:jr,data:Mr,errsCount:Lr,it:Vr}){if(Lr===void 0)throw new Error("ajv implementation error");const Gr=Ar.name("err");Ar.forRange("i",Lr,ae.default.errors,Ur=>{Ar.const(Gr,(0,k._)`${ae.default.vErrors}[${Ur}]`),Ar.if((0,k._)`${Gr}.instancePath === undefined`,()=>Ar.assign((0,k._)`${Gr}.instancePath`,(0,k.strConcat)(ae.default.instancePath,Vr.errorPath))),Ar.assign((0,k._)`${Gr}.schemaPath`,(0,k.str)`${Vr.errSchemaPath}/${ur}`),Vr.opts.verbose&&(Ar.assign((0,k._)`${Gr}.schema`,jr),Ar.assign((0,k._)`${Gr}.data`,Mr))})}v.extendErrors=ve;function pe(Ar,ur){const jr=Ar.const("err",ur);Ar.if((0,k._)`${ae.default.vErrors} === null`,()=>Ar.assign(ae.default.vErrors,(0,k._)`[${jr}]`),(0,k._)`${ae.default.vErrors}.push(${jr})`),Ar.code((0,k._)`${ae.default.errors}++`)}function ye(Ar,ur){const{gen:jr,validateName:Mr,schemaEnv:Lr}=Ar;Lr.$async?jr.throw((0,k._)`new ${Ar.ValidationError}(${ur})`):(jr.assign((0,k._)`${Mr}.errors`,ur),jr.return(!1))}var me={keyword:new k.Name("keyword"),schemaPath:new k.Name("schemaPath"),params:new k.Name("params"),propertyName:new k.Name("propertyName"),message:new k.Name("message"),schema:new k.Name("schema"),parentSchema:new k.Name("parentSchema")};function Ee(Ar,ur,jr){const{createErrors:Mr}=Ar.it;return Mr===!1?(0,k._)`{}`:cr(Ar,ur,jr)}function cr(Ar,ur,jr={}){const{gen:Mr,it:Lr}=Ar,Vr=[Br(Lr,jr),$r(Ar,jr)];return Pr(Ar,ur,Vr),Mr.object(...Vr)}function Br({errorPath:Ar},{instancePath:ur}){const jr=ur?(0,k.str)`${Ar}${(0,ie.getErrorPath)(ur,ie.Type.Str)}`:Ar;return[ae.default.instancePath,(0,k.strConcat)(ae.default.instancePath,jr)]}function $r({keyword:Ar,it:{errSchemaPath:ur}},{schemaPath:jr,parentSchema:Mr}){let Lr=Mr?ur:(0,k.str)`${ur}/${Ar}`;return jr&&(Lr=(0,k.str)`${Lr}${(0,ie.getErrorPath)(jr,ie.Type.Str)}`),[me.schemaPath,Lr]}function Pr(Ar,{params:ur,message:jr},Mr){const{keyword:Lr,data:Vr,schemaValue:Gr,it:Ur}=Ar,{opts:Qr,propertyName:hn,topSchemaRef:Yt,schemaPath:fn}=Ur;Mr.push([me.keyword,Lr],[me.params,typeof ur=="function"?ur(Ar):ur||(0,k._)`{}`]),Qr.messages&&Mr.push([me.message,typeof jr=="function"?jr(Ar):jr]),Qr.verbose&&Mr.push([me.schema,Gr],[me.parentSchema,(0,k._)`${Yt}${fn}`],[ae.default.data,Vr]),hn&&Mr.push([me.propertyName,hn])}}}),require_boolSchema$1=__commonJS({"node_modules/ajv/dist/compile/validate/boolSchema.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.boolOrEmptySchema=v.topBoolOrEmptySchema=void 0;var k=require_errors4$1(),ie=require_codegen$1(),ae=require_names$1(),ce={message:"boolean schema is false"};function fe(pe){const{gen:ye,schema:me,validateName:Ee}=pe;me===!1?ve(pe,!1):typeof me=="object"&&me.$async===!0?ye.return(ae.default.data):(ye.assign((0,ie._)`${Ee}.errors`,null),ye.return(!0))}v.topBoolOrEmptySchema=fe;function le(pe,ye){const{gen:me,schema:Ee}=pe;Ee===!1?(me.var(ye,!1),ve(pe)):me.var(ye,!0)}v.boolOrEmptySchema=le;function ve(pe,ye){const{gen:me,data:Ee}=pe,cr={gen:me,keyword:"false schema",data:Ee,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:pe};(0,k.reportError)(cr,ce,void 0,ye)}}}),require_rules$1=__commonJS({"node_modules/ajv/dist/compile/rules.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getRules=v.isJSONType=void 0;var k=["string","number","integer","boolean","null","object","array"],ie=new Set(k);function ae(fe){return typeof fe=="string"&&ie.has(fe)}v.isJSONType=ae;function ce(){const fe={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...fe,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},fe.number,fe.string,fe.array,fe.object],post:{rules:[]},all:{},keywords:{}}}v.getRules=ce}}),require_applicability$1=__commonJS({"node_modules/ajv/dist/compile/validate/applicability.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.shouldUseRule=v.shouldUseGroup=v.schemaHasRulesForType=void 0;function k({schema:ce,self:fe},le){const ve=fe.RULES.types[le];return ve&&ve!==!0&&ie(ce,ve)}v.schemaHasRulesForType=k;function ie(ce,fe){return fe.rules.some(le=>ae(ce,le))}v.shouldUseGroup=ie;function ae(ce,fe){var le;return ce[fe.keyword]!==void 0||((le=fe.definition.implements)===null||le===void 0?void 0:le.some(ve=>ce[ve]!==void 0))}v.shouldUseRule=ae}}),require_dataType$1=__commonJS({"node_modules/ajv/dist/compile/validate/dataType.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.reportTypeError=v.checkDataTypes=v.checkDataType=v.coerceAndCheckDataType=v.getJSONTypes=v.getSchemaTypes=v.DataType=void 0;var k=require_rules$1(),ie=require_applicability$1(),ae=require_errors4$1(),ce=require_codegen$1(),fe=require_util$2(),le;(function(Mr){Mr[Mr.Correct=0]="Correct",Mr[Mr.Wrong=1]="Wrong"})(le=v.DataType||(v.DataType={}));function ve(Mr){const Lr=pe(Mr.type);if(Lr.includes("null")){if(Mr.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!Lr.length&&Mr.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');Mr.nullable===!0&&Lr.push("null")}return Lr}v.getSchemaTypes=ve;function pe(Mr){const Lr=Array.isArray(Mr)?Mr:Mr?[Mr]:[];if(Lr.every(k.isJSONType))return Lr;throw new Error("type must be JSONType or JSONType[]: "+Lr.join(","))}v.getJSONTypes=pe;function ye(Mr,Lr){const{gen:Vr,data:Gr,opts:Ur}=Mr,Qr=Ee(Lr,Ur.coerceTypes),hn=Lr.length>0&&!(Qr.length===0&&Lr.length===1&&(0,ie.schemaHasRulesForType)(Mr,Lr[0]));if(hn){const Yt=Pr(Lr,Gr,Ur.strictNumbers,le.Wrong);Vr.if(Yt,()=>{Qr.length?cr(Mr,Lr,Qr):ur(Mr)})}return hn}v.coerceAndCheckDataType=ye;var me=new Set(["string","number","integer","boolean","null"]);function Ee(Mr,Lr){return Lr?Mr.filter(Vr=>me.has(Vr)||Lr==="array"&&Vr==="array"):[]}function cr(Mr,Lr,Vr){const{gen:Gr,data:Ur,opts:Qr}=Mr,hn=Gr.let("dataType",(0,ce._)`typeof ${Ur}`),Yt=Gr.let("coerced",(0,ce._)`undefined`);Qr.coerceTypes==="array"&&Gr.if((0,ce._)`${hn} == 'object' && Array.isArray(${Ur}) && ${Ur}.length == 1`,()=>Gr.assign(Ur,(0,ce._)`${Ur}[0]`).assign(hn,(0,ce._)`typeof ${Ur}`).if(Pr(Lr,Ur,Qr.strictNumbers),()=>Gr.assign(Yt,Ur))),Gr.if((0,ce._)`${Yt} !== undefined`);for(const Qt of Vr)(me.has(Qt)||Qt==="array"&&Qr.coerceTypes==="array")&&fn(Qt);Gr.else(),ur(Mr),Gr.endIf(),Gr.if((0,ce._)`${Yt} !== undefined`,()=>{Gr.assign(Ur,Yt),Br(Mr,Yt)});function fn(Qt){switch(Qt){case"string":Gr.elseIf((0,ce._)`${hn} == "number" || ${hn} == "boolean"`).assign(Yt,(0,ce._)`"" + ${Ur}`).elseIf((0,ce._)`${Ur} === null`).assign(Yt,(0,ce._)`""`);return;case"number":Gr.elseIf((0,ce._)`${hn} == "boolean" || ${Ur} === null + || (${hn} == "string" && ${Ur} && ${Ur} == +${Ur})`).assign(Yt,(0,ce._)`+${Ur}`);return;case"integer":Gr.elseIf((0,ce._)`${hn} === "boolean" || ${Ur} === null + || (${hn} === "string" && ${Ur} && ${Ur} == +${Ur} && !(${Ur} % 1))`).assign(Yt,(0,ce._)`+${Ur}`);return;case"boolean":Gr.elseIf((0,ce._)`${Ur} === "false" || ${Ur} === 0 || ${Ur} === null`).assign(Yt,!1).elseIf((0,ce._)`${Ur} === "true" || ${Ur} === 1`).assign(Yt,!0);return;case"null":Gr.elseIf((0,ce._)`${Ur} === "" || ${Ur} === 0 || ${Ur} === false`),Gr.assign(Yt,null);return;case"array":Gr.elseIf((0,ce._)`${hn} === "string" || ${hn} === "number" + || ${hn} === "boolean" || ${Ur} === null`).assign(Yt,(0,ce._)`[${Ur}]`)}}}function Br({gen:Mr,parentData:Lr,parentDataProperty:Vr},Gr){Mr.if((0,ce._)`${Lr} !== undefined`,()=>Mr.assign((0,ce._)`${Lr}[${Vr}]`,Gr))}function $r(Mr,Lr,Vr,Gr=le.Correct){const Ur=Gr===le.Correct?ce.operators.EQ:ce.operators.NEQ;let Qr;switch(Mr){case"null":return(0,ce._)`${Lr} ${Ur} null`;case"array":Qr=(0,ce._)`Array.isArray(${Lr})`;break;case"object":Qr=(0,ce._)`${Lr} && typeof ${Lr} == "object" && !Array.isArray(${Lr})`;break;case"integer":Qr=hn((0,ce._)`!(${Lr} % 1) && !isNaN(${Lr})`);break;case"number":Qr=hn();break;default:return(0,ce._)`typeof ${Lr} ${Ur} ${Mr}`}return Gr===le.Correct?Qr:(0,ce.not)(Qr);function hn(Yt=ce.nil){return(0,ce.and)((0,ce._)`typeof ${Lr} == "number"`,Yt,Vr?(0,ce._)`isFinite(${Lr})`:ce.nil)}}v.checkDataType=$r;function Pr(Mr,Lr,Vr,Gr){if(Mr.length===1)return $r(Mr[0],Lr,Vr,Gr);let Ur;const Qr=(0,fe.toHash)(Mr);if(Qr.array&&Qr.object){const hn=(0,ce._)`typeof ${Lr} != "object"`;Ur=Qr.null?hn:(0,ce._)`!${Lr} || ${hn}`,delete Qr.null,delete Qr.array,delete Qr.object}else Ur=ce.nil;Qr.number&&delete Qr.integer;for(const hn in Qr)Ur=(0,ce.and)(Ur,$r(hn,Lr,Vr,Gr));return Ur}v.checkDataTypes=Pr;var Ar={message:({schema:Mr})=>`must be ${Mr}`,params:({schema:Mr,schemaValue:Lr})=>typeof Mr=="string"?(0,ce._)`{type: ${Mr}}`:(0,ce._)`{type: ${Lr}}`};function ur(Mr){const Lr=jr(Mr);(0,ae.reportError)(Lr,Ar)}v.reportTypeError=ur;function jr(Mr){const{gen:Lr,data:Vr,schema:Gr}=Mr,Ur=(0,fe.schemaRefOrVal)(Mr,Gr,"type");return{gen:Lr,keyword:"type",data:Vr,schema:Gr.type,schemaCode:Ur,schemaValue:Ur,parentSchema:Gr,params:{},it:Mr}}}}),require_defaults$1=__commonJS({"node_modules/ajv/dist/compile/validate/defaults.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.assignDefaults=void 0;var k=require_codegen$1(),ie=require_util$2();function ae(fe,le){const{properties:ve,items:pe}=fe.schema;if(le==="object"&&ve)for(const ye in ve)ce(fe,ye,ve[ye].default);else le==="array"&&Array.isArray(pe)&&pe.forEach((ye,me)=>ce(fe,me,ye.default))}v.assignDefaults=ae;function ce(fe,le,ve){const{gen:pe,compositeRule:ye,data:me,opts:Ee}=fe;if(ve===void 0)return;const cr=(0,k._)`${me}${(0,k.getProperty)(le)}`;if(ye){(0,ie.checkStrictMode)(fe,`default is ignored for: ${cr}`);return}let Br=(0,k._)`${cr} === undefined`;Ee.useDefaults==="empty"&&(Br=(0,k._)`${Br} || ${cr} === null || ${cr} === ""`),pe.if(Br,(0,k._)`${cr} = ${(0,k.stringify)(ve)}`)}}}),require_code2$1=__commonJS({"node_modules/ajv/dist/vocabularies/code.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateUnion=v.validateArray=v.usePattern=v.callValidateCode=v.schemaProperties=v.allSchemaProperties=v.noPropertyInData=v.propertyInData=v.isOwnProperty=v.hasPropFunc=v.reportMissingProp=v.checkMissingProp=v.checkReportMissingProp=void 0;var k=require_codegen$1(),ie=require_util$2(),ae=require_names$1(),ce=require_util$2();function fe(Mr,Lr){const{gen:Vr,data:Gr,it:Ur}=Mr;Vr.if(Ee(Vr,Gr,Lr,Ur.opts.ownProperties),()=>{Mr.setParams({missingProperty:(0,k._)`${Lr}`},!0),Mr.error()})}v.checkReportMissingProp=fe;function le({gen:Mr,data:Lr,it:{opts:Vr}},Gr,Ur){return(0,k.or)(...Gr.map(Qr=>(0,k.and)(Ee(Mr,Lr,Qr,Vr.ownProperties),(0,k._)`${Ur} = ${Qr}`)))}v.checkMissingProp=le;function ve(Mr,Lr){Mr.setParams({missingProperty:Lr},!0),Mr.error()}v.reportMissingProp=ve;function pe(Mr){return Mr.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,k._)`Object.prototype.hasOwnProperty`})}v.hasPropFunc=pe;function ye(Mr,Lr,Vr){return(0,k._)`${pe(Mr)}.call(${Lr}, ${Vr})`}v.isOwnProperty=ye;function me(Mr,Lr,Vr,Gr){const Ur=(0,k._)`${Lr}${(0,k.getProperty)(Vr)} !== undefined`;return Gr?(0,k._)`${Ur} && ${ye(Mr,Lr,Vr)}`:Ur}v.propertyInData=me;function Ee(Mr,Lr,Vr,Gr){const Ur=(0,k._)`${Lr}${(0,k.getProperty)(Vr)} === undefined`;return Gr?(0,k.or)(Ur,(0,k.not)(ye(Mr,Lr,Vr))):Ur}v.noPropertyInData=Ee;function cr(Mr){return Mr?Object.keys(Mr).filter(Lr=>Lr!=="__proto__"):[]}v.allSchemaProperties=cr;function Br(Mr,Lr){return cr(Lr).filter(Vr=>!(0,ie.alwaysValidSchema)(Mr,Lr[Vr]))}v.schemaProperties=Br;function $r({schemaCode:Mr,data:Lr,it:{gen:Vr,topSchemaRef:Gr,schemaPath:Ur,errorPath:Qr},it:hn},Yt,fn,Qt){const Xt=Qt?(0,k._)`${Mr}, ${Lr}, ${Gr}${Ur}`:Lr,Kr=[[ae.default.instancePath,(0,k.strConcat)(ae.default.instancePath,Qr)],[ae.default.parentData,hn.parentData],[ae.default.parentDataProperty,hn.parentDataProperty],[ae.default.rootData,ae.default.rootData]];hn.opts.dynamicRef&&Kr.push([ae.default.dynamicAnchors,ae.default.dynamicAnchors]);const be=(0,k._)`${Xt}, ${Vr.object(...Kr)}`;return fn!==k.nil?(0,k._)`${Yt}.call(${fn}, ${be})`:(0,k._)`${Yt}(${be})`}v.callValidateCode=$r;var Pr=(0,k._)`new RegExp`;function Ar({gen:Mr,it:{opts:Lr}},Vr){const Gr=Lr.unicodeRegExp?"u":"",{regExp:Ur}=Lr.code,Qr=Ur(Vr,Gr);return Mr.scopeValue("pattern",{key:Qr.toString(),ref:Qr,code:(0,k._)`${Ur.code==="new RegExp"?Pr:(0,ce.useFunc)(Mr,Ur)}(${Vr}, ${Gr})`})}v.usePattern=Ar;function ur(Mr){const{gen:Lr,data:Vr,keyword:Gr,it:Ur}=Mr,Qr=Lr.name("valid");if(Ur.allErrors){const Yt=Lr.let("valid",!0);return hn(()=>Lr.assign(Yt,!1)),Yt}return Lr.var(Qr,!0),hn(()=>Lr.break()),Qr;function hn(Yt){const fn=Lr.const("len",(0,k._)`${Vr}.length`);Lr.forRange("i",0,fn,Qt=>{Mr.subschema({keyword:Gr,dataProp:Qt,dataPropType:ie.Type.Num},Qr),Lr.if((0,k.not)(Qr),Yt)})}}v.validateArray=ur;function jr(Mr){const{gen:Lr,schema:Vr,keyword:Gr,it:Ur}=Mr;if(!Array.isArray(Vr))throw new Error("ajv implementation error");if(Vr.some(fn=>(0,ie.alwaysValidSchema)(Ur,fn))&&!Ur.opts.unevaluated)return;const hn=Lr.let("valid",!1),Yt=Lr.name("_valid");Lr.block(()=>Vr.forEach((fn,Qt)=>{const Xt=Mr.subschema({keyword:Gr,schemaProp:Qt,compositeRule:!0},Yt);Lr.assign(hn,(0,k._)`${hn} || ${Yt}`),Mr.mergeValidEvaluated(Xt,Yt)||Lr.if((0,k.not)(hn))})),Mr.result(hn,()=>Mr.reset(),()=>Mr.error(!0))}v.validateUnion=jr}}),require_keyword$1=__commonJS({"node_modules/ajv/dist/compile/validate/keyword.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateKeywordUsage=v.validSchemaType=v.funcKeywordCode=v.macroKeywordCode=void 0;var k=require_codegen$1(),ie=require_names$1(),ae=require_code2$1(),ce=require_errors4$1();function fe(Br,$r){const{gen:Pr,keyword:Ar,schema:ur,parentSchema:jr,it:Mr}=Br,Lr=$r.macro.call(Mr.self,ur,jr,Mr),Vr=me(Pr,Ar,Lr);Mr.opts.validateSchema!==!1&&Mr.self.validateSchema(Lr,!0);const Gr=Pr.name("valid");Br.subschema({schema:Lr,schemaPath:k.nil,errSchemaPath:`${Mr.errSchemaPath}/${Ar}`,topSchemaRef:Vr,compositeRule:!0},Gr),Br.pass(Gr,()=>Br.error(!0))}v.macroKeywordCode=fe;function le(Br,$r){var Pr;const{gen:Ar,keyword:ur,schema:jr,parentSchema:Mr,$data:Lr,it:Vr}=Br;ye(Vr,$r);const Gr=!Lr&&$r.compile?$r.compile.call(Vr.self,jr,Mr,Vr):$r.validate,Ur=me(Ar,ur,Gr),Qr=Ar.let("valid");Br.block$data(Qr,hn),Br.ok((Pr=$r.valid)!==null&&Pr!==void 0?Pr:Qr);function hn(){if($r.errors===!1)Qt(),$r.modifying&&ve(Br),Xt(()=>Br.error());else{const Kr=$r.async?Yt():fn();$r.modifying&&ve(Br),Xt(()=>pe(Br,Kr))}}function Yt(){const Kr=Ar.let("ruleErrs",null);return Ar.try(()=>Qt((0,k._)`await `),be=>Ar.assign(Qr,!1).if((0,k._)`${be} instanceof ${Vr.ValidationError}`,()=>Ar.assign(Kr,(0,k._)`${be}.errors`),()=>Ar.throw(be))),Kr}function fn(){const Kr=(0,k._)`${Ur}.errors`;return Ar.assign(Kr,null),Qt(k.nil),Kr}function Qt(Kr=$r.async?(0,k._)`await `:k.nil){const be=Vr.opts.passContext?ie.default.this:ie.default.self,kr=!("compile"in $r&&!Lr||$r.schema===!1);Ar.assign(Qr,(0,k._)`${Kr}${(0,ae.callValidateCode)(Br,Ur,be,kr)}`,$r.modifying)}function Xt(Kr){var be;Ar.if((0,k.not)((be=$r.valid)!==null&&be!==void 0?be:Qr),Kr)}}v.funcKeywordCode=le;function ve(Br){const{gen:$r,data:Pr,it:Ar}=Br;$r.if(Ar.parentData,()=>$r.assign(Pr,(0,k._)`${Ar.parentData}[${Ar.parentDataProperty}]`))}function pe(Br,$r){const{gen:Pr}=Br;Pr.if((0,k._)`Array.isArray(${$r})`,()=>{Pr.assign(ie.default.vErrors,(0,k._)`${ie.default.vErrors} === null ? ${$r} : ${ie.default.vErrors}.concat(${$r})`).assign(ie.default.errors,(0,k._)`${ie.default.vErrors}.length`),(0,ce.extendErrors)(Br)},()=>Br.error())}function ye({schemaEnv:Br},$r){if($r.async&&!Br.$async)throw new Error("async keyword in sync schema")}function me(Br,$r,Pr){if(Pr===void 0)throw new Error(`keyword "${$r}" failed to compile`);return Br.scopeValue("keyword",typeof Pr=="function"?{ref:Pr}:{ref:Pr,code:(0,k.stringify)(Pr)})}function Ee(Br,$r,Pr=!1){return!$r.length||$r.some(Ar=>Ar==="array"?Array.isArray(Br):Ar==="object"?Br&&typeof Br=="object"&&!Array.isArray(Br):typeof Br==Ar||Pr&&typeof Br>"u")}v.validSchemaType=Ee;function cr({schema:Br,opts:$r,self:Pr,errSchemaPath:Ar},ur,jr){if(Array.isArray(ur.keyword)?!ur.keyword.includes(jr):ur.keyword!==jr)throw new Error("ajv implementation error");const Mr=ur.dependencies;if(Mr!=null&&Mr.some(Lr=>!Object.prototype.hasOwnProperty.call(Br,Lr)))throw new Error(`parent schema must have dependencies of ${jr}: ${Mr.join(",")}`);if(ur.validateSchema&&!ur.validateSchema(Br[jr])){const Vr=`keyword "${jr}" value is invalid at path "${Ar}": `+Pr.errorsText(ur.validateSchema.errors);if($r.validateSchema==="log")Pr.logger.error(Vr);else throw new Error(Vr)}}v.validateKeywordUsage=cr}}),require_subschema$1=__commonJS({"node_modules/ajv/dist/compile/validate/subschema.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.extendSubschemaMode=v.extendSubschemaData=v.getSubschema=void 0;var k=require_codegen$1(),ie=require_util$2();function ae(le,{keyword:ve,schemaProp:pe,schema:ye,schemaPath:me,errSchemaPath:Ee,topSchemaRef:cr}){if(ve!==void 0&&ye!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(ve!==void 0){const Br=le.schema[ve];return pe===void 0?{schema:Br,schemaPath:(0,k._)`${le.schemaPath}${(0,k.getProperty)(ve)}`,errSchemaPath:`${le.errSchemaPath}/${ve}`}:{schema:Br[pe],schemaPath:(0,k._)`${le.schemaPath}${(0,k.getProperty)(ve)}${(0,k.getProperty)(pe)}`,errSchemaPath:`${le.errSchemaPath}/${ve}/${(0,ie.escapeFragment)(pe)}`}}if(ye!==void 0){if(me===void 0||Ee===void 0||cr===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:ye,schemaPath:me,topSchemaRef:cr,errSchemaPath:Ee}}throw new Error('either "keyword" or "schema" must be passed')}v.getSubschema=ae;function ce(le,ve,{dataProp:pe,dataPropType:ye,data:me,dataTypes:Ee,propertyName:cr}){if(me!==void 0&&pe!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:Br}=ve;if(pe!==void 0){const{errorPath:Pr,dataPathArr:Ar,opts:ur}=ve,jr=Br.let("data",(0,k._)`${ve.data}${(0,k.getProperty)(pe)}`,!0);$r(jr),le.errorPath=(0,k.str)`${Pr}${(0,ie.getErrorPath)(pe,ye,ur.jsPropertySyntax)}`,le.parentDataProperty=(0,k._)`${pe}`,le.dataPathArr=[...Ar,le.parentDataProperty]}if(me!==void 0){const Pr=me instanceof k.Name?me:Br.let("data",me,!0);$r(Pr),cr!==void 0&&(le.propertyName=cr)}Ee&&(le.dataTypes=Ee);function $r(Pr){le.data=Pr,le.dataLevel=ve.dataLevel+1,le.dataTypes=[],ve.definedProperties=new Set,le.parentData=ve.data,le.dataNames=[...ve.dataNames,Pr]}}v.extendSubschemaData=ce;function fe(le,{jtdDiscriminator:ve,jtdMetadata:pe,compositeRule:ye,createErrors:me,allErrors:Ee}){ye!==void 0&&(le.compositeRule=ye),me!==void 0&&(le.createErrors=me),Ee!==void 0&&(le.allErrors=Ee),le.jtdDiscriminator=ve,le.jtdMetadata=pe}v.extendSubschemaMode=fe}}),require_fast_deep_equal$1=__commonJS({"node_modules/fast-deep-equal/index.js"(v,k){k.exports=function ie(ae,ce){if(ae===ce)return!0;if(ae&&ce&&typeof ae=="object"&&typeof ce=="object"){if(ae.constructor!==ce.constructor)return!1;var fe,le,ve;if(Array.isArray(ae)){if(fe=ae.length,fe!=ce.length)return!1;for(le=fe;le--!==0;)if(!ie(ae[le],ce[le]))return!1;return!0}if(ae.constructor===RegExp)return ae.source===ce.source&&ae.flags===ce.flags;if(ae.valueOf!==Object.prototype.valueOf)return ae.valueOf()===ce.valueOf();if(ae.toString!==Object.prototype.toString)return ae.toString()===ce.toString();if(ve=Object.keys(ae),fe=ve.length,fe!==Object.keys(ce).length)return!1;for(le=fe;le--!==0;)if(!Object.prototype.hasOwnProperty.call(ce,ve[le]))return!1;for(le=fe;le--!==0;){var pe=ve[le];if(!ie(ae[pe],ce[pe]))return!1}return!0}return ae!==ae&&ce!==ce}}}),require_json_schema_traverse$1=__commonJS({"node_modules/json-schema-traverse/index.js"(v,k){var ie=k.exports=function(fe,le,ve){typeof le=="function"&&(ve=le,le={}),ve=le.cb||ve;var pe=typeof ve=="function"?ve:ve.pre||function(){},ye=ve.post||function(){};ae(le,pe,ye,fe,"",fe)};ie.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},ie.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},ie.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},ie.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ae(fe,le,ve,pe,ye,me,Ee,cr,Br,$r){if(pe&&typeof pe=="object"&&!Array.isArray(pe)){le(pe,ye,me,Ee,cr,Br,$r);for(var Pr in pe){var Ar=pe[Pr];if(Array.isArray(Ar)){if(Pr in ie.arrayKeywords)for(var ur=0;urur+=pe(Mr)),ur===1/0))return 1/0}return ur}function ye(Ar,ur="",jr){jr!==!1&&(ur=cr(ur));const Mr=Ar.parse(ur);return me(Ar,Mr)}v.getFullPath=ye;function me(Ar,ur){return Ar.serialize(ur).split("#")[0]+"#"}v._getFullPath=me;var Ee=/#\/?$/;function cr(Ar){return Ar?Ar.replace(Ee,""):""}v.normalizeId=cr;function Br(Ar,ur,jr){return jr=cr(jr),Ar.resolve(ur,jr)}v.resolveUrl=Br;var $r=/^[a-z_][-a-z0-9._]*$/i;function Pr(Ar,ur){if(typeof Ar=="boolean")return{};const{schemaId:jr,uriResolver:Mr}=this.opts,Lr=cr(Ar[jr]||ur),Vr={"":Lr},Gr=ye(Mr,Lr,!1),Ur={},Qr=new Set;return ae(Ar,{allKeys:!0},(fn,Qt,Xt,Kr)=>{if(Kr===void 0)return;const be=Gr+Qt;let kr=Vr[Kr];typeof fn[jr]=="string"&&(kr=xr.call(this,fn[jr])),Wr.call(this,fn.$anchor),Wr.call(this,fn.$dynamicAnchor),Vr[Qt]=kr;function xr(Jt){const Xr=this.opts.uriResolver.resolve;if(Jt=cr(kr?Xr(kr,Jt):Jt),Qr.has(Jt))throw Yt(Jt);Qr.add(Jt);let zr=this.refs[Jt];return typeof zr=="string"&&(zr=this.refs[zr]),typeof zr=="object"?hn(fn,zr.schema,Jt):Jt!==cr(be)&&(Jt[0]==="#"?(hn(fn,Ur[Jt],Jt),Ur[Jt]=fn):this.refs[Jt]=be),Jt}function Wr(Jt){if(typeof Jt=="string"){if(!$r.test(Jt))throw new Error(`invalid anchor "${Jt}"`);xr.call(this,`#${Jt}`)}}}),Ur;function hn(fn,Qt,Xt){if(Qt!==void 0&&!ie(fn,Qt))throw Yt(Xt)}function Yt(fn){return new Error(`reference "${fn}" resolves to more than one schema`)}}v.getSchemaRefs=Pr}}),require_validate$1=__commonJS({"node_modules/ajv/dist/compile/validate/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getData=v.KeywordCxt=v.validateFunctionCode=void 0;var k=require_boolSchema$1(),ie=require_dataType$1(),ae=require_applicability$1(),ce=require_dataType$1(),fe=require_defaults$1(),le=require_keyword$1(),ve=require_subschema$1(),pe=require_codegen$1(),ye=require_names$1(),me=require_resolve$1(),Ee=require_util$2(),cr=require_errors4$1();function Br(vn){if(Gr(vn)&&(Qr(vn),Vr(vn))){ur(vn);return}$r(vn,()=>(0,k.topBoolOrEmptySchema)(vn))}v.validateFunctionCode=Br;function $r({gen:vn,validateName:pn,schema:Sn,schemaEnv:Qn,opts:Jn},ui){Jn.code.es5?vn.func(pn,(0,pe._)`${ye.default.data}, ${ye.default.valCxt}`,Qn.$async,()=>{vn.code((0,pe._)`"use strict"; ${Mr(Sn,Jn)}`),Ar(vn,Jn),vn.code(ui)}):vn.func(pn,(0,pe._)`${ye.default.data}, ${Pr(Jn)}`,Qn.$async,()=>vn.code(Mr(Sn,Jn)).code(ui))}function Pr(vn){return(0,pe._)`{${ye.default.instancePath}="", ${ye.default.parentData}, ${ye.default.parentDataProperty}, ${ye.default.rootData}=${ye.default.data}${vn.dynamicRef?(0,pe._)`, ${ye.default.dynamicAnchors}={}`:pe.nil}}={}`}function Ar(vn,pn){vn.if(ye.default.valCxt,()=>{vn.var(ye.default.instancePath,(0,pe._)`${ye.default.valCxt}.${ye.default.instancePath}`),vn.var(ye.default.parentData,(0,pe._)`${ye.default.valCxt}.${ye.default.parentData}`),vn.var(ye.default.parentDataProperty,(0,pe._)`${ye.default.valCxt}.${ye.default.parentDataProperty}`),vn.var(ye.default.rootData,(0,pe._)`${ye.default.valCxt}.${ye.default.rootData}`),pn.dynamicRef&&vn.var(ye.default.dynamicAnchors,(0,pe._)`${ye.default.valCxt}.${ye.default.dynamicAnchors}`)},()=>{vn.var(ye.default.instancePath,(0,pe._)`""`),vn.var(ye.default.parentData,(0,pe._)`undefined`),vn.var(ye.default.parentDataProperty,(0,pe._)`undefined`),vn.var(ye.default.rootData,ye.default.data),pn.dynamicRef&&vn.var(ye.default.dynamicAnchors,(0,pe._)`{}`)})}function ur(vn){const{schema:pn,opts:Sn,gen:Qn}=vn;$r(vn,()=>{Sn.$comment&&pn.$comment&&Kr(vn),fn(vn),Qn.let(ye.default.vErrors,null),Qn.let(ye.default.errors,0),Sn.unevaluated&&jr(vn),hn(vn),be(vn)})}function jr(vn){const{gen:pn,validateName:Sn}=vn;vn.evaluated=pn.const("evaluated",(0,pe._)`${Sn}.evaluated`),pn.if((0,pe._)`${vn.evaluated}.dynamicProps`,()=>pn.assign((0,pe._)`${vn.evaluated}.props`,(0,pe._)`undefined`)),pn.if((0,pe._)`${vn.evaluated}.dynamicItems`,()=>pn.assign((0,pe._)`${vn.evaluated}.items`,(0,pe._)`undefined`))}function Mr(vn,pn){const Sn=typeof vn=="object"&&vn[pn.schemaId];return Sn&&(pn.code.source||pn.code.process)?(0,pe._)`/*# sourceURL=${Sn} */`:pe.nil}function Lr(vn,pn){if(Gr(vn)&&(Qr(vn),Vr(vn))){Ur(vn,pn);return}(0,k.boolOrEmptySchema)(vn,pn)}function Vr({schema:vn,self:pn}){if(typeof vn=="boolean")return!vn;for(const Sn in vn)if(pn.RULES.all[Sn])return!0;return!1}function Gr(vn){return typeof vn.schema!="boolean"}function Ur(vn,pn){const{schema:Sn,gen:Qn,opts:Jn}=vn;Jn.$comment&&Sn.$comment&&Kr(vn),Qt(vn),Xt(vn);const ui=Qn.const("_errs",ye.default.errors);hn(vn,ui),Qn.var(pn,(0,pe._)`${ui} === ${ye.default.errors}`)}function Qr(vn){(0,Ee.checkUnknownRules)(vn),Yt(vn)}function hn(vn,pn){if(vn.opts.jtd)return xr(vn,[],!1,pn);const Sn=(0,ie.getSchemaTypes)(vn.schema),Qn=(0,ie.coerceAndCheckDataType)(vn,Sn);xr(vn,Sn,!Qn,pn)}function Yt(vn){const{schema:pn,errSchemaPath:Sn,opts:Qn,self:Jn}=vn;pn.$ref&&Qn.ignoreKeywordsWithRef&&(0,Ee.schemaHasRulesButRef)(pn,Jn.RULES)&&Jn.logger.warn(`$ref: keywords ignored in schema at path "${Sn}"`)}function fn(vn){const{schema:pn,opts:Sn}=vn;pn.default!==void 0&&Sn.useDefaults&&Sn.strictSchema&&(0,Ee.checkStrictMode)(vn,"default is ignored in the schema root")}function Qt(vn){const pn=vn.schema[vn.opts.schemaId];pn&&(vn.baseId=(0,me.resolveUrl)(vn.opts.uriResolver,vn.baseId,pn))}function Xt(vn){if(vn.schema.$async&&!vn.schemaEnv.$async)throw new Error("async schema in sync schema")}function Kr({gen:vn,schemaEnv:pn,schema:Sn,errSchemaPath:Qn,opts:Jn}){const ui=Sn.$comment;if(Jn.$comment===!0)vn.code((0,pe._)`${ye.default.self}.logger.log(${ui})`);else if(typeof Jn.$comment=="function"){const gi=(0,pe.str)`${Qn}/$comment`,di=vn.scopeValue("root",{ref:pn.root});vn.code((0,pe._)`${ye.default.self}.opts.$comment(${ui}, ${gi}, ${di}.schema)`)}}function be(vn){const{gen:pn,schemaEnv:Sn,validateName:Qn,ValidationError:Jn,opts:ui}=vn;Sn.$async?pn.if((0,pe._)`${ye.default.errors} === 0`,()=>pn.return(ye.default.data),()=>pn.throw((0,pe._)`new ${Jn}(${ye.default.vErrors})`)):(pn.assign((0,pe._)`${Qn}.errors`,ye.default.vErrors),ui.unevaluated&&kr(vn),pn.return((0,pe._)`${ye.default.errors} === 0`))}function kr({gen:vn,evaluated:pn,props:Sn,items:Qn}){Sn instanceof pe.Name&&vn.assign((0,pe._)`${pn}.props`,Sn),Qn instanceof pe.Name&&vn.assign((0,pe._)`${pn}.items`,Qn)}function xr(vn,pn,Sn,Qn){const{gen:Jn,schema:ui,data:gi,allErrors:di,opts:Ci,self:yi}=vn,{RULES:li}=yi;if(ui.$ref&&(Ci.ignoreKeywordsWithRef||!(0,Ee.schemaHasRulesButRef)(ui,li))){Jn.block(()=>Nn(vn,"$ref",li.all.$ref.definition));return}Ci.jtd||Jt(vn,pn),Jn.block(()=>{for(const Ai of li.rules)Pi(Ai);Pi(li.post)});function Pi(Ai){!(0,ae.shouldUseGroup)(ui,Ai)||(Ai.type?(Jn.if((0,ce.checkDataType)(Ai.type,gi,Ci.strictNumbers)),Wr(vn,Ai),pn.length===1&&pn[0]===Ai.type&&Sn&&(Jn.else(),(0,ce.reportTypeError)(vn)),Jn.endIf()):Wr(vn,Ai),di||Jn.if((0,pe._)`${ye.default.errors} === ${Qn||0}`))}}function Wr(vn,pn){const{gen:Sn,schema:Qn,opts:{useDefaults:Jn}}=vn;Jn&&(0,fe.assignDefaults)(vn,pn.type),Sn.block(()=>{for(const ui of pn.rules)(0,ae.shouldUseRule)(Qn,ui)&&Nn(vn,ui.keyword,ui.definition,pn.type)})}function Jt(vn,pn){vn.schemaEnv.meta||!vn.opts.strictTypes||(Xr(vn,pn),vn.opts.allowUnionTypes||zr(vn,pn),Jr(vn,vn.dataTypes))}function Xr(vn,pn){if(!!pn.length){if(!vn.dataTypes.length){vn.dataTypes=pn;return}pn.forEach(Sn=>{Hr(vn.dataTypes,Sn)||Gn(vn,`type "${Sn}" not allowed by context "${vn.dataTypes.join(",")}"`)}),On(vn,pn)}}function zr(vn,pn){pn.length>1&&!(pn.length===2&&pn.includes("null"))&&Gn(vn,"use allowUnionTypes to allow union type keyword")}function Jr(vn,pn){const Sn=vn.self.RULES.all;for(const Qn in Sn){const Jn=Sn[Qn];if(typeof Jn=="object"&&(0,ae.shouldUseRule)(vn.schema,Jn)){const{type:ui}=Jn.definition;ui.length&&!ui.some(gi=>Nr(pn,gi))&&Gn(vn,`missing type "${ui.join(",")}" for keyword "${Qn}"`)}}}function Nr(vn,pn){return vn.includes(pn)||pn==="number"&&vn.includes("integer")}function Hr(vn,pn){return vn.includes(pn)||pn==="integer"&&vn.includes("number")}function On(vn,pn){const Sn=[];for(const Qn of vn.dataTypes)Hr(pn,Qn)?Sn.push(Qn):pn.includes("integer")&&Qn==="number"&&Sn.push("integer");vn.dataTypes=Sn}function Gn(vn,pn){pn+=` at "${vn.schemaEnv.baseId+vn.errSchemaPath}" (strictTypes)`,(0,Ee.checkStrictMode)(vn,pn,vn.opts.strictTypes)}var mn=class{constructor(vn,pn,Sn){if((0,le.validateKeywordUsage)(vn,pn,Sn),this.gen=vn.gen,this.allErrors=vn.allErrors,this.keyword=Sn,this.data=vn.data,this.schema=vn.schema[Sn],this.$data=pn.$data&&vn.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ee.schemaRefOrVal)(vn,this.schema,Sn,this.$data),this.schemaType=pn.schemaType,this.parentSchema=vn.schema,this.params={},this.it=vn,this.def=pn,this.$data)this.schemaCode=vn.gen.const("vSchema",ii(this.$data,vn));else if(this.schemaCode=this.schemaValue,!(0,le.validSchemaType)(this.schema,pn.schemaType,pn.allowUndefined))throw new Error(`${Sn} value must be ${JSON.stringify(pn.schemaType)}`);("code"in pn?pn.trackErrors:pn.errors!==!1)&&(this.errsCount=vn.gen.const("_errs",ye.default.errors))}result(vn,pn,Sn){this.failResult((0,pe.not)(vn),pn,Sn)}failResult(vn,pn,Sn){this.gen.if(vn),Sn?Sn():this.error(),pn?(this.gen.else(),pn(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(vn,pn){this.failResult((0,pe.not)(vn),void 0,pn)}fail(vn){if(vn===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(vn),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(vn){if(!this.$data)return this.fail(vn);const{schemaCode:pn}=this;this.fail((0,pe._)`${pn} !== undefined && (${(0,pe.or)(this.invalid$data(),vn)})`)}error(vn,pn,Sn){if(pn){this.setParams(pn),this._error(vn,Sn),this.setParams({});return}this._error(vn,Sn)}_error(vn,pn){(vn?cr.reportExtraError:cr.reportError)(this,this.def.error,pn)}$dataError(){(0,cr.reportError)(this,this.def.$dataError||cr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,cr.resetErrorsCount)(this.gen,this.errsCount)}ok(vn){this.allErrors||this.gen.if(vn)}setParams(vn,pn){pn?Object.assign(this.params,vn):this.params=vn}block$data(vn,pn,Sn=pe.nil){this.gen.block(()=>{this.check$data(vn,Sn),pn()})}check$data(vn=pe.nil,pn=pe.nil){if(!this.$data)return;const{gen:Sn,schemaCode:Qn,schemaType:Jn,def:ui}=this;Sn.if((0,pe.or)((0,pe._)`${Qn} === undefined`,pn)),vn!==pe.nil&&Sn.assign(vn,!0),(Jn.length||ui.validateSchema)&&(Sn.elseIf(this.invalid$data()),this.$dataError(),vn!==pe.nil&&Sn.assign(vn,!1)),Sn.else()}invalid$data(){const{gen:vn,schemaCode:pn,schemaType:Sn,def:Qn,it:Jn}=this;return(0,pe.or)(ui(),gi());function ui(){if(Sn.length){if(!(pn instanceof pe.Name))throw new Error("ajv implementation error");const di=Array.isArray(Sn)?Sn:[Sn];return(0,pe._)`${(0,ce.checkDataTypes)(di,pn,Jn.opts.strictNumbers,ce.DataType.Wrong)}`}return pe.nil}function gi(){if(Qn.validateSchema){const di=vn.scopeValue("validate$data",{ref:Qn.validateSchema});return(0,pe._)`!${di}(${pn})`}return pe.nil}}subschema(vn,pn){const Sn=(0,ve.getSubschema)(this.it,vn);(0,ve.extendSubschemaData)(Sn,this.it,vn),(0,ve.extendSubschemaMode)(Sn,vn);const Qn={...this.it,...Sn,items:void 0,props:void 0};return Lr(Qn,pn),Qn}mergeEvaluated(vn,pn){const{it:Sn,gen:Qn}=this;!Sn.opts.unevaluated||(Sn.props!==!0&&vn.props!==void 0&&(Sn.props=Ee.mergeEvaluated.props(Qn,vn.props,Sn.props,pn)),Sn.items!==!0&&vn.items!==void 0&&(Sn.items=Ee.mergeEvaluated.items(Qn,vn.items,Sn.items,pn)))}mergeValidEvaluated(vn,pn){const{it:Sn,gen:Qn}=this;if(Sn.opts.unevaluated&&(Sn.props!==!0||Sn.items!==!0))return Qn.if(pn,()=>this.mergeEvaluated(vn,pe.Name)),!0}};v.KeywordCxt=mn;function Nn(vn,pn,Sn,Qn){const Jn=new mn(vn,Sn,pn);"code"in Sn?Sn.code(Jn,Qn):Jn.$data&&Sn.validate?(0,le.funcKeywordCode)(Jn,Sn):"macro"in Sn?(0,le.macroKeywordCode)(Jn,Sn):(Sn.compile||Sn.validate)&&(0,le.funcKeywordCode)(Jn,Sn)}var In=/^\/(?:[^~]|~0|~1)*$/,bn=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ii(vn,{dataLevel:pn,dataNames:Sn,dataPathArr:Qn}){let Jn,ui;if(vn==="")return ye.default.rootData;if(vn[0]==="/"){if(!In.test(vn))throw new Error(`Invalid JSON-pointer: ${vn}`);Jn=vn,ui=ye.default.rootData}else{const yi=bn.exec(vn);if(!yi)throw new Error(`Invalid JSON-pointer: ${vn}`);const li=+yi[1];if(Jn=yi[2],Jn==="#"){if(li>=pn)throw new Error(Ci("property/index",li));return Qn[pn-li]}if(li>pn)throw new Error(Ci("data",li));if(ui=Sn[pn-li],!Jn)return ui}let gi=ui;const di=Jn.split("/");for(const yi of di)yi&&(ui=(0,pe._)`${ui}${(0,pe.getProperty)((0,Ee.unescapeJsonPointer)(yi))}`,gi=(0,pe._)`${gi} && ${ui}`);return gi;function Ci(yi,li){return`Cannot access ${yi} ${li} levels up, current level is ${pn}`}}v.getData=ii}}),require_validation_error$1=__commonJS({"node_modules/ajv/dist/runtime/validation_error.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=class extends Error{constructor(ie){super("validation failed"),this.errors=ie,this.ajv=this.validation=!0}};v.default=k}}),require_ref_error$1=__commonJS({"node_modules/ajv/dist/compile/ref_error.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_resolve$1(),ie=class extends Error{constructor(ae,ce,fe,le){super(le||`can't resolve reference ${fe} from id ${ce}`),this.missingRef=(0,k.resolveUrl)(ae,ce,fe),this.missingSchema=(0,k.normalizeId)((0,k.getFullPath)(ae,this.missingRef))}};v.default=ie}}),require_compile$1=__commonJS({"node_modules/ajv/dist/compile/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.resolveSchema=v.getCompilingSchema=v.resolveRef=v.compileSchema=v.SchemaEnv=void 0;var k=require_codegen$1(),ie=require_validation_error$1(),ae=require_names$1(),ce=require_resolve$1(),fe=require_util$2(),le=require_validate$1(),ve=class{constructor(ur){var jr;this.refs={},this.dynamicAnchors={};let Mr;typeof ur.schema=="object"&&(Mr=ur.schema),this.schema=ur.schema,this.schemaId=ur.schemaId,this.root=ur.root||this,this.baseId=(jr=ur.baseId)!==null&&jr!==void 0?jr:(0,ce.normalizeId)(Mr==null?void 0:Mr[ur.schemaId||"$id"]),this.schemaPath=ur.schemaPath,this.localRefs=ur.localRefs,this.meta=ur.meta,this.$async=Mr==null?void 0:Mr.$async,this.refs={}}};v.SchemaEnv=ve;function pe(ur){const jr=Ee.call(this,ur);if(jr)return jr;const Mr=(0,ce.getFullPath)(this.opts.uriResolver,ur.root.baseId),{es5:Lr,lines:Vr}=this.opts.code,{ownProperties:Gr}=this.opts,Ur=new k.CodeGen(this.scope,{es5:Lr,lines:Vr,ownProperties:Gr});let Qr;ur.$async&&(Qr=Ur.scopeValue("Error",{ref:ie.default,code:(0,k._)`require("ajv/dist/runtime/validation_error").default`}));const hn=Ur.scopeName("validate");ur.validateName=hn;const Yt={gen:Ur,allErrors:this.opts.allErrors,data:ae.default.data,parentData:ae.default.parentData,parentDataProperty:ae.default.parentDataProperty,dataNames:[ae.default.data],dataPathArr:[k.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:Ur.scopeValue("schema",this.opts.code.source===!0?{ref:ur.schema,code:(0,k.stringify)(ur.schema)}:{ref:ur.schema}),validateName:hn,ValidationError:Qr,schema:ur.schema,schemaEnv:ur,rootId:Mr,baseId:ur.baseId||Mr,schemaPath:k.nil,errSchemaPath:ur.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,k._)`""`,opts:this.opts,self:this};let fn;try{this._compilations.add(ur),(0,le.validateFunctionCode)(Yt),Ur.optimize(this.opts.code.optimize);const Qt=Ur.toString();fn=`${Ur.scopeRefs(ae.default.scope)}return ${Qt}`,this.opts.code.process&&(fn=this.opts.code.process(fn,ur));const Kr=new Function(`${ae.default.self}`,`${ae.default.scope}`,fn)(this,this.scope.get());if(this.scope.value(hn,{ref:Kr}),Kr.errors=null,Kr.schema=ur.schema,Kr.schemaEnv=ur,ur.$async&&(Kr.$async=!0),this.opts.code.source===!0&&(Kr.source={validateName:hn,validateCode:Qt,scopeValues:Ur._values}),this.opts.unevaluated){const{props:be,items:kr}=Yt;Kr.evaluated={props:be instanceof k.Name?void 0:be,items:kr instanceof k.Name?void 0:kr,dynamicProps:be instanceof k.Name,dynamicItems:kr instanceof k.Name},Kr.source&&(Kr.source.evaluated=(0,k.stringify)(Kr.evaluated))}return ur.validate=Kr,ur}catch(Qt){throw delete ur.validate,delete ur.validateName,fn&&this.logger.error("Error compiling schema, function code:",fn),Qt}finally{this._compilations.delete(ur)}}v.compileSchema=pe;function ye(ur,jr,Mr){var Lr;Mr=(0,ce.resolveUrl)(this.opts.uriResolver,jr,Mr);const Vr=ur.refs[Mr];if(Vr)return Vr;let Gr=Br.call(this,ur,Mr);if(Gr===void 0){const Ur=(Lr=ur.localRefs)===null||Lr===void 0?void 0:Lr[Mr],{schemaId:Qr}=this.opts;Ur&&(Gr=new ve({schema:Ur,schemaId:Qr,root:ur,baseId:jr}))}if(Gr!==void 0)return ur.refs[Mr]=me.call(this,Gr)}v.resolveRef=ye;function me(ur){return(0,ce.inlineRef)(ur.schema,this.opts.inlineRefs)?ur.schema:ur.validate?ur:pe.call(this,ur)}function Ee(ur){for(const jr of this._compilations)if(cr(jr,ur))return jr}v.getCompilingSchema=Ee;function cr(ur,jr){return ur.schema===jr.schema&&ur.root===jr.root&&ur.baseId===jr.baseId}function Br(ur,jr){let Mr;for(;typeof(Mr=this.refs[jr])=="string";)jr=Mr;return Mr||this.schemas[jr]||$r.call(this,ur,jr)}function $r(ur,jr){const Mr=this.opts.uriResolver.parse(jr),Lr=(0,ce._getFullPath)(this.opts.uriResolver,Mr);let Vr=(0,ce.getFullPath)(this.opts.uriResolver,ur.baseId,void 0);if(Object.keys(ur.schema).length>0&&Lr===Vr)return Ar.call(this,Mr,ur);const Gr=(0,ce.normalizeId)(Lr),Ur=this.refs[Gr]||this.schemas[Gr];if(typeof Ur=="string"){const Qr=$r.call(this,ur,Ur);return typeof(Qr==null?void 0:Qr.schema)!="object"?void 0:Ar.call(this,Mr,Qr)}if(typeof(Ur==null?void 0:Ur.schema)=="object"){if(Ur.validate||pe.call(this,Ur),Gr===(0,ce.normalizeId)(jr)){const{schema:Qr}=Ur,{schemaId:hn}=this.opts,Yt=Qr[hn];return Yt&&(Vr=(0,ce.resolveUrl)(this.opts.uriResolver,Vr,Yt)),new ve({schema:Qr,schemaId:hn,root:ur,baseId:Vr})}return Ar.call(this,Mr,Ur)}}v.resolveSchema=$r;var Pr=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ar(ur,{baseId:jr,schema:Mr,root:Lr}){var Vr;if(((Vr=ur.fragment)===null||Vr===void 0?void 0:Vr[0])!=="/")return;for(const Qr of ur.fragment.slice(1).split("/")){if(typeof Mr=="boolean")return;const hn=Mr[(0,fe.unescapeFragment)(Qr)];if(hn===void 0)return;Mr=hn;const Yt=typeof Mr=="object"&&Mr[this.opts.schemaId];!Pr.has(Qr)&&Yt&&(jr=(0,ce.resolveUrl)(this.opts.uriResolver,jr,Yt))}let Gr;if(typeof Mr!="boolean"&&Mr.$ref&&!(0,fe.schemaHasRulesButRef)(Mr,this.RULES)){const Qr=(0,ce.resolveUrl)(this.opts.uriResolver,jr,Mr.$ref);Gr=$r.call(this,Lr,Qr)}const{schemaId:Ur}=this.opts;if(Gr=Gr||new ve({schema:Mr,schemaId:Ur,root:Lr,baseId:jr}),Gr.schema!==Gr.root.schema)return Gr}}}),require_data$1=__commonJS({"node_modules/ajv/dist/refs/data.json"(v,k){k.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}}}),require_uri_all$1=__commonJS({"node_modules/uri-js/dist/es5/uri.all.js"(v,k){(function(ie,ae){typeof v=="object"&&typeof k<"u"?ae(v):typeof define=="function"&&define.amd?define(["exports"],ae):ae(ie.URI=ie.URI||{})})(v,function(ie){function ae(){for(var Yr=arguments.length,Wt=Array(Yr),ln=0;ln1){Wt[0]=Wt[0].slice(0,-1);for(var qr=Wt.length-1,dn=1;dn= 0x80 (not a basic code point)","invalid-input":"Invalid input"},fn=Pr-Ar,Qt=Math.floor,Xt=String.fromCharCode;function Kr(Yr){throw new RangeError(Yt[Yr])}function be(Yr,Wt){for(var ln=[],qr=Yr.length;qr--;)ln[qr]=Wt(Yr[qr]);return ln}function kr(Yr,Wt){var ln=Yr.split("@"),qr="";ln.length>1&&(qr=ln[0]+"@",Yr=ln[1]),Yr=Yr.replace(hn,".");var dn=Yr.split("."),ri=be(dn,Wt).join(".");return qr+ri}function xr(Yr){for(var Wt=[],ln=0,qr=Yr.length;ln=55296&&dn<=56319&&ln>1,Wt+=Qt(Wt/ln);Wt>fn*ur>>1;dn+=Pr)Wt=Qt(Wt/fn);return Qt(dn+(fn+1)*Wt/(Wt+jr))},Jr=function(Wt){var ln=[],qr=Wt.length,dn=0,ri=Vr,Zn=Lr,ai=Wt.lastIndexOf(Gr);ai<0&&(ai=0);for(var bi=0;bi=128&&Kr("not-basic"),ln.push(Wt.charCodeAt(bi));for(var _i=ai>0?ai+1:0;_i=qr&&Kr("invalid-input");var Ni=Jt(Wt.charCodeAt(_i++));(Ni>=Pr||Ni>Qt(($r-dn)/yo))&&Kr("overflow"),dn+=Ni*yo;var oo=Di<=Zn?Ar:Di>=Zn+ur?ur:Di-Zn;if(NiQt($r/fo)&&Kr("overflow"),yo*=fo}var co=ln.length+1;Zn=zr(dn-fi,co,fi==0),Qt(dn/co)>$r-ri&&Kr("overflow"),ri+=Qt(dn/co),dn%=co,ln.splice(dn++,0,ri)}return String.fromCodePoint.apply(String,ln)},Nr=function(Wt){var ln=[];Wt=xr(Wt);var qr=Wt.length,dn=Vr,ri=0,Zn=Lr,ai=!0,bi=!1,_i=void 0;try{for(var fi=Wt[Symbol.iterator](),yo;!(ai=(yo=fi.next()).done);ai=!0){var Di=yo.value;Di<128&&ln.push(Xt(Di))}}catch(Co){bi=!0,_i=Co}finally{try{!ai&&fi.return&&fi.return()}finally{if(bi)throw _i}}var Ni=ln.length,oo=Ni;for(Ni&&ln.push(Gr);oo=dn&&loQt(($r-ri)/eo)&&Kr("overflow"),ri+=(fo-dn)*eo,dn=fo;var uo=!0,ho=!1,ro=void 0;try{for(var ci=Wt[Symbol.iterator](),pi;!(uo=(pi=ci.next()).done);uo=!0){var mi=pi.value;if(mi$r&&Kr("overflow"),mi==dn){for(var Si=ri,Ti=Pr;;Ti+=Pr){var xi=Ti<=Zn?Ar:Ti>=Zn+ur?ur:Ti-Zn;if(Si>6|192).toString(16).toUpperCase()+"%"+(Wt&63|128).toString(16).toUpperCase():ln="%"+(Wt>>12|224).toString(16).toUpperCase()+"%"+(Wt>>6&63|128).toString(16).toUpperCase()+"%"+(Wt&63|128).toString(16).toUpperCase(),ln}function In(Yr){for(var Wt="",ln=0,qr=Yr.length;ln=194&&dn<224){if(qr-ln>=6){var ri=parseInt(Yr.substr(ln+4,2),16);Wt+=String.fromCharCode((dn&31)<<6|ri&63)}else Wt+=Yr.substr(ln,6);ln+=6}else if(dn>=224){if(qr-ln>=9){var Zn=parseInt(Yr.substr(ln+4,2),16),ai=parseInt(Yr.substr(ln+7,2),16);Wt+=String.fromCharCode((dn&15)<<12|(Zn&63)<<6|ai&63)}else Wt+=Yr.substr(ln,9);ln+=9}else Wt+=Yr.substr(ln,3),ln+=3}return Wt}function bn(Yr,Wt){function ln(qr){var dn=In(qr);return dn.match(Wt.UNRESERVED)?dn:qr}return Yr.scheme&&(Yr.scheme=String(Yr.scheme).replace(Wt.PCT_ENCODED,ln).toLowerCase().replace(Wt.NOT_SCHEME,"")),Yr.userinfo!==void 0&&(Yr.userinfo=String(Yr.userinfo).replace(Wt.PCT_ENCODED,ln).replace(Wt.NOT_USERINFO,Nn).replace(Wt.PCT_ENCODED,le)),Yr.host!==void 0&&(Yr.host=String(Yr.host).replace(Wt.PCT_ENCODED,ln).toLowerCase().replace(Wt.NOT_HOST,Nn).replace(Wt.PCT_ENCODED,le)),Yr.path!==void 0&&(Yr.path=String(Yr.path).replace(Wt.PCT_ENCODED,ln).replace(Yr.scheme?Wt.NOT_PATH:Wt.NOT_PATH_NOSCHEME,Nn).replace(Wt.PCT_ENCODED,le)),Yr.query!==void 0&&(Yr.query=String(Yr.query).replace(Wt.PCT_ENCODED,ln).replace(Wt.NOT_QUERY,Nn).replace(Wt.PCT_ENCODED,le)),Yr.fragment!==void 0&&(Yr.fragment=String(Yr.fragment).replace(Wt.PCT_ENCODED,ln).replace(Wt.NOT_FRAGMENT,Nn).replace(Wt.PCT_ENCODED,le)),Yr}function ii(Yr){return Yr.replace(/^0*(.*)/,"$1")||"0"}function vn(Yr,Wt){var ln=Yr.match(Wt.IPV4ADDRESS)||[],qr=cr(ln,2),dn=qr[1];return dn?dn.split(".").map(ii).join("."):Yr}function pn(Yr,Wt){var ln=Yr.match(Wt.IPV6ADDRESS)||[],qr=cr(ln,3),dn=qr[1],ri=qr[2];if(dn){for(var Zn=dn.toLowerCase().split("::").reverse(),ai=cr(Zn,2),bi=ai[0],_i=ai[1],fi=_i?_i.split(":").map(ii):[],yo=bi.split(":").map(ii),Di=Wt.IPV4ADDRESS.test(yo[yo.length-1]),Ni=Di?7:8,oo=yo.length-Ni,fo=Array(Ni),co=0;co1){var so=fo.slice(0,vo.index),lo=fo.slice(vo.index+vo.length);_o=so.join(":")+"::"+lo.join(":")}else _o=fo.join(":");return ri&&(_o+="%"+ri),_o}else return Yr}var Sn=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Qn="".match(/(){0}/)[1]===void 0;function Jn(Yr){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ln={},qr=Wt.iri!==!1?Ee:me;Wt.reference==="suffix"&&(Yr=(Wt.scheme?Wt.scheme+":":"")+"//"+Yr);var dn=Yr.match(Sn);if(dn){Qn?(ln.scheme=dn[1],ln.userinfo=dn[3],ln.host=dn[4],ln.port=parseInt(dn[5],10),ln.path=dn[6]||"",ln.query=dn[7],ln.fragment=dn[8],isNaN(ln.port)&&(ln.port=dn[5])):(ln.scheme=dn[1]||void 0,ln.userinfo=Yr.indexOf("@")!==-1?dn[3]:void 0,ln.host=Yr.indexOf("//")!==-1?dn[4]:void 0,ln.port=parseInt(dn[5],10),ln.path=dn[6]||"",ln.query=Yr.indexOf("?")!==-1?dn[7]:void 0,ln.fragment=Yr.indexOf("#")!==-1?dn[8]:void 0,isNaN(ln.port)&&(ln.port=Yr.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?dn[4]:void 0)),ln.host&&(ln.host=pn(vn(ln.host,qr),qr)),ln.scheme===void 0&&ln.userinfo===void 0&&ln.host===void 0&&ln.port===void 0&&!ln.path&&ln.query===void 0?ln.reference="same-document":ln.scheme===void 0?ln.reference="relative":ln.fragment===void 0?ln.reference="absolute":ln.reference="uri",Wt.reference&&Wt.reference!=="suffix"&&Wt.reference!==ln.reference&&(ln.error=ln.error||"URI is not a "+Wt.reference+" reference.");var ri=mn[(Wt.scheme||ln.scheme||"").toLowerCase()];if(!Wt.unicodeSupport&&(!ri||!ri.unicodeSupport)){if(ln.host&&(Wt.domainHost||ri&&ri.domainHost))try{ln.host=Gn.toASCII(ln.host.replace(qr.PCT_ENCODED,In).toLowerCase())}catch(Zn){ln.error=ln.error||"Host's domain name can not be converted to ASCII via punycode: "+Zn}bn(ln,me)}else bn(ln,qr);ri&&ri.parse&&ri.parse(ln,Wt)}else ln.error=ln.error||"URI can not be parsed.";return ln}function ui(Yr,Wt){var ln=Wt.iri!==!1?Ee:me,qr=[];return Yr.userinfo!==void 0&&(qr.push(Yr.userinfo),qr.push("@")),Yr.host!==void 0&&qr.push(pn(vn(String(Yr.host),ln),ln).replace(ln.IPV6ADDRESS,function(dn,ri,Zn){return"["+ri+(Zn?"%25"+Zn:"")+"]"})),(typeof Yr.port=="number"||typeof Yr.port=="string")&&(qr.push(":"),qr.push(String(Yr.port))),qr.length?qr.join(""):void 0}var gi=/^\.\.?\//,di=/^\/\.(\/|$)/,Ci=/^\/\.\.(\/|$)/,yi=/^\/?(?:.|\n)*?(?=\/|$)/;function li(Yr){for(var Wt=[];Yr.length;)if(Yr.match(gi))Yr=Yr.replace(gi,"");else if(Yr.match(di))Yr=Yr.replace(di,"/");else if(Yr.match(Ci))Yr=Yr.replace(Ci,"/"),Wt.pop();else if(Yr==="."||Yr==="..")Yr="";else{var ln=Yr.match(yi);if(ln){var qr=ln[0];Yr=Yr.slice(qr.length),Wt.push(qr)}else throw new Error("Unexpected dot segment condition")}return Wt.join("")}function Pi(Yr){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ln=Wt.iri?Ee:me,qr=[],dn=mn[(Wt.scheme||Yr.scheme||"").toLowerCase()];if(dn&&dn.serialize&&dn.serialize(Yr,Wt),Yr.host&&!ln.IPV6ADDRESS.test(Yr.host)){if(Wt.domainHost||dn&&dn.domainHost)try{Yr.host=Wt.iri?Gn.toUnicode(Yr.host):Gn.toASCII(Yr.host.replace(ln.PCT_ENCODED,In).toLowerCase())}catch(ai){Yr.error=Yr.error||"Host's domain name can not be converted to "+(Wt.iri?"Unicode":"ASCII")+" via punycode: "+ai}}bn(Yr,ln),Wt.reference!=="suffix"&&Yr.scheme&&(qr.push(Yr.scheme),qr.push(":"));var ri=ui(Yr,Wt);if(ri!==void 0&&(Wt.reference!=="suffix"&&qr.push("//"),qr.push(ri),Yr.path&&Yr.path.charAt(0)!=="/"&&qr.push("/")),Yr.path!==void 0){var Zn=Yr.path;!Wt.absolutePath&&(!dn||!dn.absolutePath)&&(Zn=li(Zn)),ri===void 0&&(Zn=Zn.replace(/^\/\//,"/%2F")),qr.push(Zn)}return Yr.query!==void 0&&(qr.push("?"),qr.push(Yr.query)),Yr.fragment!==void 0&&(qr.push("#"),qr.push(Yr.fragment)),qr.join("")}function Ai(Yr,Wt){var ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},qr=arguments[3],dn={};return qr||(Yr=Jn(Pi(Yr,ln),ln),Wt=Jn(Pi(Wt,ln),ln)),ln=ln||{},!ln.tolerant&&Wt.scheme?(dn.scheme=Wt.scheme,dn.userinfo=Wt.userinfo,dn.host=Wt.host,dn.port=Wt.port,dn.path=li(Wt.path||""),dn.query=Wt.query):(Wt.userinfo!==void 0||Wt.host!==void 0||Wt.port!==void 0?(dn.userinfo=Wt.userinfo,dn.host=Wt.host,dn.port=Wt.port,dn.path=li(Wt.path||""),dn.query=Wt.query):(Wt.path?(Wt.path.charAt(0)==="/"?dn.path=li(Wt.path):((Yr.userinfo!==void 0||Yr.host!==void 0||Yr.port!==void 0)&&!Yr.path?dn.path="/"+Wt.path:Yr.path?dn.path=Yr.path.slice(0,Yr.path.lastIndexOf("/")+1)+Wt.path:dn.path=Wt.path,dn.path=li(dn.path)),dn.query=Wt.query):(dn.path=Yr.path,Wt.query!==void 0?dn.query=Wt.query:dn.query=Yr.query),dn.userinfo=Yr.userinfo,dn.host=Yr.host,dn.port=Yr.port),dn.scheme=Yr.scheme),dn.fragment=Wt.fragment,dn}function Oi(Yr,Wt,ln){var qr=pe({scheme:"null"},ln);return Pi(Ai(Jn(Yr,qr),Jn(Wt,qr),qr,!0),qr)}function to(Yr,Wt){return typeof Yr=="string"?Yr=Pi(Jn(Yr,Wt),Wt):fe(Yr)==="object"&&(Yr=Jn(Pi(Yr,Wt),Wt)),Yr}function En(Yr,Wt,ln){return typeof Yr=="string"?Yr=Pi(Jn(Yr,ln),ln):fe(Yr)==="object"&&(Yr=Pi(Yr,ln)),typeof Wt=="string"?Wt=Pi(Jn(Wt,ln),ln):fe(Wt)==="object"&&(Wt=Pi(Wt,ln)),Yr===Wt}function Bt(Yr,Wt){return Yr&&Yr.toString().replace(!Wt||!Wt.iri?me.ESCAPE:Ee.ESCAPE,Nn)}function Zt(Yr,Wt){return Yr&&Yr.toString().replace(!Wt||!Wt.iri?me.PCT_ENCODED:Ee.PCT_ENCODED,In)}var Tn={scheme:"http",domainHost:!0,parse:function(Wt,ln){return Wt.host||(Wt.error=Wt.error||"HTTP URIs must have a host."),Wt},serialize:function(Wt,ln){var qr=String(Wt.scheme).toLowerCase()==="https";return(Wt.port===(qr?443:80)||Wt.port==="")&&(Wt.port=void 0),Wt.path||(Wt.path="/"),Wt}},ei={scheme:"https",domainHost:Tn.domainHost,parse:Tn.parse,serialize:Tn.serialize};function zn(Yr){return typeof Yr.secure=="boolean"?Yr.secure:String(Yr.scheme).toLowerCase()==="wss"}var gn={scheme:"ws",domainHost:!0,parse:function(Wt,ln){var qr=Wt;return qr.secure=zn(qr),qr.resourceName=(qr.path||"/")+(qr.query?"?"+qr.query:""),qr.path=void 0,qr.query=void 0,qr},serialize:function(Wt,ln){if((Wt.port===(zn(Wt)?443:80)||Wt.port==="")&&(Wt.port=void 0),typeof Wt.secure=="boolean"&&(Wt.scheme=Wt.secure?"wss":"ws",Wt.secure=void 0),Wt.resourceName){var qr=Wt.resourceName.split("?"),dn=cr(qr,2),ri=dn[0],Zn=dn[1];Wt.path=ri&&ri!=="/"?ri:void 0,Wt.query=Zn,Wt.resourceName=void 0}return Wt.fragment=void 0,Wt}},xn={scheme:"wss",domainHost:gn.domainHost,parse:gn.parse,serialize:gn.serialize},Hn={},Ln="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ti="[0-9A-Fa-f]",oi=ce(ce("%[EFef]"+ti+"%"+ti+ti+"%"+ti+ti)+"|"+ce("%[89A-Fa-f]"+ti+"%"+ti+ti)+"|"+ce("%"+ti+ti)),Ei="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Ri="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Oo=ae(Ri,'[\\"\\\\]'),Ui="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",io=new RegExp(Ln,"g"),So=new RegExp(oi,"g"),$o=new RegExp(ae("[^]",Ei,"[\\.]",'[\\"]',Oo),"g"),mo=new RegExp(ae("[^]",Ln,Ui),"g"),qo=mo;function wo(Yr){var Wt=In(Yr);return Wt.match(io)?Wt:Yr}var Eo={scheme:"mailto",parse:function(Wt,ln){var qr=Wt,dn=qr.to=qr.path?qr.path.split(","):[];if(qr.path=void 0,qr.query){for(var ri=!1,Zn={},ai=qr.query.split("&"),bi=0,_i=ai.length;bi<_i;++bi){var fi=ai[bi].split("=");switch(fi[0]){case"to":for(var yo=fi[1].split(","),Di=0,Ni=yo.length;Dinew RegExp(Xr,zr);Br.code="new RegExp";var $r=["removeAdditional","useDefaults","coerceTypes"],Pr=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Ar={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},ur={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},jr=200;function Mr(Xr){var zr,Jr,Nr,Hr,On,Gn,mn,Nn,In,bn,ii,vn,pn,Sn,Qn,Jn,ui,gi,di,Ci,yi,li,Pi,Ai,Oi;const to=Xr.strict,En=(zr=Xr.code)===null||zr===void 0?void 0:zr.optimize,Bt=En===!0||En===void 0?1:En||0,Zt=(Nr=(Jr=Xr.code)===null||Jr===void 0?void 0:Jr.regExp)!==null&&Nr!==void 0?Nr:Br,Tn=(Hr=Xr.uriResolver)!==null&&Hr!==void 0?Hr:cr.default;return{strictSchema:(Gn=(On=Xr.strictSchema)!==null&&On!==void 0?On:to)!==null&&Gn!==void 0?Gn:!0,strictNumbers:(Nn=(mn=Xr.strictNumbers)!==null&&mn!==void 0?mn:to)!==null&&Nn!==void 0?Nn:!0,strictTypes:(bn=(In=Xr.strictTypes)!==null&&In!==void 0?In:to)!==null&&bn!==void 0?bn:"log",strictTuples:(vn=(ii=Xr.strictTuples)!==null&&ii!==void 0?ii:to)!==null&&vn!==void 0?vn:"log",strictRequired:(Sn=(pn=Xr.strictRequired)!==null&&pn!==void 0?pn:to)!==null&&Sn!==void 0?Sn:!1,code:Xr.code?{...Xr.code,optimize:Bt,regExp:Zt}:{optimize:Bt,regExp:Zt},loopRequired:(Qn=Xr.loopRequired)!==null&&Qn!==void 0?Qn:jr,loopEnum:(Jn=Xr.loopEnum)!==null&&Jn!==void 0?Jn:jr,meta:(ui=Xr.meta)!==null&&ui!==void 0?ui:!0,messages:(gi=Xr.messages)!==null&&gi!==void 0?gi:!0,inlineRefs:(di=Xr.inlineRefs)!==null&&di!==void 0?di:!0,schemaId:(Ci=Xr.schemaId)!==null&&Ci!==void 0?Ci:"$id",addUsedSchema:(yi=Xr.addUsedSchema)!==null&&yi!==void 0?yi:!0,validateSchema:(li=Xr.validateSchema)!==null&&li!==void 0?li:!0,validateFormats:(Pi=Xr.validateFormats)!==null&&Pi!==void 0?Pi:!0,unicodeRegExp:(Ai=Xr.unicodeRegExp)!==null&&Ai!==void 0?Ai:!0,int32range:(Oi=Xr.int32range)!==null&&Oi!==void 0?Oi:!0,uriResolver:Tn}}var Lr=class{constructor(Xr={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,Xr=this.opts={...Xr,...Mr(Xr)};const{es5:zr,lines:Jr}=this.opts.code;this.scope=new ve.ValueScope({scope:{},prefixes:Pr,es5:zr,lines:Jr}),this.logger=Qt(Xr.logger);const Nr=Xr.validateFormats;Xr.validateFormats=!1,this.RULES=(0,fe.getRules)(),Vr.call(this,Ar,Xr,"NOT SUPPORTED"),Vr.call(this,ur,Xr,"DEPRECATED","warn"),this._metaOpts=Yt.call(this),Xr.formats&&Qr.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),Xr.keywords&&hn.call(this,Xr.keywords),typeof Xr.meta=="object"&&this.addMetaSchema(Xr.meta),Ur.call(this),Xr.validateFormats=Nr}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:Xr,meta:zr,schemaId:Jr}=this.opts;let Nr=Ee;Jr==="id"&&(Nr={...Ee},Nr.id=Nr.$id,delete Nr.$id),zr&&Xr&&this.addMetaSchema(Nr,Nr[Jr],!1)}defaultMeta(){const{meta:Xr,schemaId:zr}=this.opts;return this.opts.defaultMeta=typeof Xr=="object"?Xr[zr]||Xr:void 0}validate(Xr,zr){let Jr;if(typeof Xr=="string"){if(Jr=this.getSchema(Xr),!Jr)throw new Error(`no schema with key or ref "${Xr}"`)}else Jr=this.compile(Xr);const Nr=Jr(zr);return"$async"in Jr||(this.errors=Jr.errors),Nr}compile(Xr,zr){const Jr=this._addSchema(Xr,zr);return Jr.validate||this._compileSchemaEnv(Jr)}compileAsync(Xr,zr){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:Jr}=this.opts;return Nr.call(this,Xr,zr);async function Nr(In,bn){await Hr.call(this,In.$schema);const ii=this._addSchema(In,bn);return ii.validate||On.call(this,ii)}async function Hr(In){In&&!this.getSchema(In)&&await Nr.call(this,{$ref:In},!0)}async function On(In){try{return this._compileSchemaEnv(In)}catch(bn){if(!(bn instanceof ce.default))throw bn;return Gn.call(this,bn),await mn.call(this,bn.missingSchema),On.call(this,In)}}function Gn({missingSchema:In,missingRef:bn}){if(this.refs[In])throw new Error(`AnySchema ${In} is loaded but ${bn} cannot be resolved`)}async function mn(In){const bn=await Nn.call(this,In);this.refs[In]||await Hr.call(this,bn.$schema),this.refs[In]||this.addSchema(bn,In,zr)}async function Nn(In){const bn=this._loading[In];if(bn)return bn;try{return await(this._loading[In]=Jr(In))}finally{delete this._loading[In]}}}addSchema(Xr,zr,Jr,Nr=this.opts.validateSchema){if(Array.isArray(Xr)){for(const On of Xr)this.addSchema(On,void 0,Jr,Nr);return this}let Hr;if(typeof Xr=="object"){const{schemaId:On}=this.opts;if(Hr=Xr[On],Hr!==void 0&&typeof Hr!="string")throw new Error(`schema ${On} must be string`)}return zr=(0,pe.normalizeId)(zr||Hr),this._checkUnique(zr),this.schemas[zr]=this._addSchema(Xr,Jr,zr,Nr,!0),this}addMetaSchema(Xr,zr,Jr=this.opts.validateSchema){return this.addSchema(Xr,zr,!0,Jr),this}validateSchema(Xr,zr){if(typeof Xr=="boolean")return!0;let Jr;if(Jr=Xr.$schema,Jr!==void 0&&typeof Jr!="string")throw new Error("$schema must be a string");if(Jr=Jr||this.opts.defaultMeta||this.defaultMeta(),!Jr)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const Nr=this.validate(Jr,Xr);if(!Nr&&zr){const Hr="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(Hr);else throw new Error(Hr)}return Nr}getSchema(Xr){let zr;for(;typeof(zr=Gr.call(this,Xr))=="string";)Xr=zr;if(zr===void 0){const{schemaId:Jr}=this.opts,Nr=new le.SchemaEnv({schema:{},schemaId:Jr});if(zr=le.resolveSchema.call(this,Nr,Xr),!zr)return;this.refs[Xr]=zr}return zr.validate||this._compileSchemaEnv(zr)}removeSchema(Xr){if(Xr instanceof RegExp)return this._removeAllSchemas(this.schemas,Xr),this._removeAllSchemas(this.refs,Xr),this;switch(typeof Xr){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const zr=Gr.call(this,Xr);return typeof zr=="object"&&this._cache.delete(zr.schema),delete this.schemas[Xr],delete this.refs[Xr],this}case"object":{const zr=Xr;this._cache.delete(zr);let Jr=Xr[this.opts.schemaId];return Jr&&(Jr=(0,pe.normalizeId)(Jr),delete this.schemas[Jr],delete this.refs[Jr]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(Xr){for(const zr of Xr)this.addKeyword(zr);return this}addKeyword(Xr,zr){let Jr;if(typeof Xr=="string")Jr=Xr,typeof zr=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),zr.keyword=Jr);else if(typeof Xr=="object"&&zr===void 0){if(zr=Xr,Jr=zr.keyword,Array.isArray(Jr)&&!Jr.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Kr.call(this,Jr,zr),!zr)return(0,me.eachItem)(Jr,Hr=>be.call(this,Hr)),this;xr.call(this,zr);const Nr={...zr,type:(0,ye.getJSONTypes)(zr.type),schemaType:(0,ye.getJSONTypes)(zr.schemaType)};return(0,me.eachItem)(Jr,Nr.type.length===0?Hr=>be.call(this,Hr,Nr):Hr=>Nr.type.forEach(On=>be.call(this,Hr,Nr,On))),this}getKeyword(Xr){const zr=this.RULES.all[Xr];return typeof zr=="object"?zr.definition:!!zr}removeKeyword(Xr){const{RULES:zr}=this;delete zr.keywords[Xr],delete zr.all[Xr];for(const Jr of zr.rules){const Nr=Jr.rules.findIndex(Hr=>Hr.keyword===Xr);Nr>=0&&Jr.rules.splice(Nr,1)}return this}addFormat(Xr,zr){return typeof zr=="string"&&(zr=new RegExp(zr)),this.formats[Xr]=zr,this}errorsText(Xr=this.errors,{separator:zr=", ",dataVar:Jr="data"}={}){return!Xr||Xr.length===0?"No errors":Xr.map(Nr=>`${Jr}${Nr.instancePath} ${Nr.message}`).reduce((Nr,Hr)=>Nr+zr+Hr)}$dataMetaSchema(Xr,zr){const Jr=this.RULES.all;Xr=JSON.parse(JSON.stringify(Xr));for(const Nr of zr){const Hr=Nr.split("/").slice(1);let On=Xr;for(const Gn of Hr)On=On[Gn];for(const Gn in Jr){const mn=Jr[Gn];if(typeof mn!="object")continue;const{$data:Nn}=mn.definition,In=On[Gn];Nn&&In&&(On[Gn]=Jt(In))}}return Xr}_removeAllSchemas(Xr,zr){for(const Jr in Xr){const Nr=Xr[Jr];(!zr||zr.test(Jr))&&(typeof Nr=="string"?delete Xr[Jr]:Nr&&!Nr.meta&&(this._cache.delete(Nr.schema),delete Xr[Jr]))}}_addSchema(Xr,zr,Jr,Nr=this.opts.validateSchema,Hr=this.opts.addUsedSchema){let On;const{schemaId:Gn}=this.opts;if(typeof Xr=="object")On=Xr[Gn];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof Xr!="boolean")throw new Error("schema must be object or boolean")}let mn=this._cache.get(Xr);if(mn!==void 0)return mn;Jr=(0,pe.normalizeId)(On||Jr);const Nn=pe.getSchemaRefs.call(this,Xr,Jr);return mn=new le.SchemaEnv({schema:Xr,schemaId:Gn,meta:zr,baseId:Jr,localRefs:Nn}),this._cache.set(mn.schema,mn),Hr&&!Jr.startsWith("#")&&(Jr&&this._checkUnique(Jr),this.refs[Jr]=mn),Nr&&this.validateSchema(Xr,!0),mn}_checkUnique(Xr){if(this.schemas[Xr]||this.refs[Xr])throw new Error(`schema with key or id "${Xr}" already exists`)}_compileSchemaEnv(Xr){if(Xr.meta?this._compileMetaSchema(Xr):le.compileSchema.call(this,Xr),!Xr.validate)throw new Error("ajv implementation error");return Xr.validate}_compileMetaSchema(Xr){const zr=this.opts;this.opts=this._metaOpts;try{le.compileSchema.call(this,Xr)}finally{this.opts=zr}}};v.default=Lr,Lr.ValidationError=ae.default,Lr.MissingRefError=ce.default;function Vr(Xr,zr,Jr,Nr="error"){for(const Hr in Xr){const On=Hr;On in zr&&this.logger[Nr](`${Jr}: option ${Hr}. ${Xr[On]}`)}}function Gr(Xr){return Xr=(0,pe.normalizeId)(Xr),this.schemas[Xr]||this.refs[Xr]}function Ur(){const Xr=this.opts.schemas;if(!!Xr)if(Array.isArray(Xr))this.addSchema(Xr);else for(const zr in Xr)this.addSchema(Xr[zr],zr)}function Qr(){for(const Xr in this.opts.formats){const zr=this.opts.formats[Xr];zr&&this.addFormat(Xr,zr)}}function hn(Xr){if(Array.isArray(Xr)){this.addVocabulary(Xr);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const zr in Xr){const Jr=Xr[zr];Jr.keyword||(Jr.keyword=zr),this.addKeyword(Jr)}}function Yt(){const Xr={...this.opts};for(const zr of $r)delete Xr[zr];return Xr}var fn={log(){},warn(){},error(){}};function Qt(Xr){if(Xr===!1)return fn;if(Xr===void 0)return console;if(Xr.log&&Xr.warn&&Xr.error)return Xr;throw new Error("logger must implement log, warn and error methods")}var Xt=/^[a-z_$][a-z0-9_$:-]*$/i;function Kr(Xr,zr){const{RULES:Jr}=this;if((0,me.eachItem)(Xr,Nr=>{if(Jr.keywords[Nr])throw new Error(`Keyword ${Nr} is already defined`);if(!Xt.test(Nr))throw new Error(`Keyword ${Nr} has invalid name`)}),!!zr&&zr.$data&&!("code"in zr||"validate"in zr))throw new Error('$data keyword must have "code" or "validate" function')}function be(Xr,zr,Jr){var Nr;const Hr=zr==null?void 0:zr.post;if(Jr&&Hr)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:On}=this;let Gn=Hr?On.post:On.rules.find(({type:Nn})=>Nn===Jr);if(Gn||(Gn={type:Jr,rules:[]},On.rules.push(Gn)),On.keywords[Xr]=!0,!zr)return;const mn={keyword:Xr,definition:{...zr,type:(0,ye.getJSONTypes)(zr.type),schemaType:(0,ye.getJSONTypes)(zr.schemaType)}};zr.before?kr.call(this,Gn,mn,zr.before):Gn.rules.push(mn),On.all[Xr]=mn,(Nr=zr.implements)===null||Nr===void 0||Nr.forEach(Nn=>this.addKeyword(Nn))}function kr(Xr,zr,Jr){const Nr=Xr.rules.findIndex(Hr=>Hr.keyword===Jr);Nr>=0?Xr.rules.splice(Nr,0,zr):(Xr.rules.push(zr),this.logger.warn(`rule ${Jr} is not defined`))}function xr(Xr){let{metaSchema:zr}=Xr;zr!==void 0&&(Xr.$data&&this.opts.$data&&(zr=Jt(zr)),Xr.validateSchema=this.compile(zr,!0))}var Wr={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Jt(Xr){return{anyOf:[Xr,Wr]}}}}),require_id$1=__commonJS({"node_modules/ajv/dist/vocabularies/core/id.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};v.default=k}}),require_ref$1=__commonJS({"node_modules/ajv/dist/vocabularies/core/ref.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.callRef=v.getValidate=void 0;var k=require_ref_error$1(),ie=require_code2$1(),ae=require_codegen$1(),ce=require_names$1(),fe=require_compile$1(),le=require_util$2(),ve={keyword:"$ref",schemaType:"string",code(me){const{gen:Ee,schema:cr,it:Br}=me,{baseId:$r,schemaEnv:Pr,validateName:Ar,opts:ur,self:jr}=Br,{root:Mr}=Pr;if((cr==="#"||cr==="#/")&&$r===Mr.baseId)return Vr();const Lr=fe.resolveRef.call(jr,Mr,$r,cr);if(Lr===void 0)throw new k.default(Br.opts.uriResolver,$r,cr);if(Lr instanceof fe.SchemaEnv)return Gr(Lr);return Ur(Lr);function Vr(){if(Pr===Mr)return ye(me,Ar,Pr,Pr.$async);const Qr=Ee.scopeValue("root",{ref:Mr});return ye(me,(0,ae._)`${Qr}.validate`,Mr,Mr.$async)}function Gr(Qr){const hn=pe(me,Qr);ye(me,hn,Qr,Qr.$async)}function Ur(Qr){const hn=Ee.scopeValue("schema",ur.code.source===!0?{ref:Qr,code:(0,ae.stringify)(Qr)}:{ref:Qr}),Yt=Ee.name("valid"),fn=me.subschema({schema:Qr,dataTypes:[],schemaPath:ae.nil,topSchemaRef:hn,errSchemaPath:cr},Yt);me.mergeEvaluated(fn),me.ok(Yt)}}};function pe(me,Ee){const{gen:cr}=me;return Ee.validate?cr.scopeValue("validate",{ref:Ee.validate}):(0,ae._)`${cr.scopeValue("wrapper",{ref:Ee})}.validate`}v.getValidate=pe;function ye(me,Ee,cr,Br){const{gen:$r,it:Pr}=me,{allErrors:Ar,schemaEnv:ur,opts:jr}=Pr,Mr=jr.passContext?ce.default.this:ae.nil;Br?Lr():Vr();function Lr(){if(!ur.$async)throw new Error("async schema referenced by sync schema");const Qr=$r.let("valid");$r.try(()=>{$r.code((0,ae._)`await ${(0,ie.callValidateCode)(me,Ee,Mr)}`),Ur(Ee),Ar||$r.assign(Qr,!0)},hn=>{$r.if((0,ae._)`!(${hn} instanceof ${Pr.ValidationError})`,()=>$r.throw(hn)),Gr(hn),Ar||$r.assign(Qr,!1)}),me.ok(Qr)}function Vr(){me.result((0,ie.callValidateCode)(me,Ee,Mr),()=>Ur(Ee),()=>Gr(Ee))}function Gr(Qr){const hn=(0,ae._)`${Qr}.errors`;$r.assign(ce.default.vErrors,(0,ae._)`${ce.default.vErrors} === null ? ${hn} : ${ce.default.vErrors}.concat(${hn})`),$r.assign(ce.default.errors,(0,ae._)`${ce.default.vErrors}.length`)}function Ur(Qr){var hn;if(!Pr.opts.unevaluated)return;const Yt=(hn=cr==null?void 0:cr.validate)===null||hn===void 0?void 0:hn.evaluated;if(Pr.props!==!0)if(Yt&&!Yt.dynamicProps)Yt.props!==void 0&&(Pr.props=le.mergeEvaluated.props($r,Yt.props,Pr.props));else{const fn=$r.var("props",(0,ae._)`${Qr}.evaluated.props`);Pr.props=le.mergeEvaluated.props($r,fn,Pr.props,ae.Name)}if(Pr.items!==!0)if(Yt&&!Yt.dynamicItems)Yt.items!==void 0&&(Pr.items=le.mergeEvaluated.items($r,Yt.items,Pr.items));else{const fn=$r.var("items",(0,ae._)`${Qr}.evaluated.items`);Pr.items=le.mergeEvaluated.items($r,fn,Pr.items,ae.Name)}}}v.callRef=ye,v.default=ve}}),require_core2$1=__commonJS({"node_modules/ajv/dist/vocabularies/core/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_id$1(),ie=require_ref$1(),ae=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",k.default,ie.default];v.default=ae}}),require_limitNumber$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=k.operators,ae={maximum:{okStr:"<=",ok:ie.LTE,fail:ie.GT},minimum:{okStr:">=",ok:ie.GTE,fail:ie.LT},exclusiveMaximum:{okStr:"<",ok:ie.LT,fail:ie.GTE},exclusiveMinimum:{okStr:">",ok:ie.GT,fail:ie.LTE}},ce={message:({keyword:le,schemaCode:ve})=>(0,k.str)`must be ${ae[le].okStr} ${ve}`,params:({keyword:le,schemaCode:ve})=>(0,k._)`{comparison: ${ae[le].okStr}, limit: ${ve}}`},fe={keyword:Object.keys(ae),type:"number",schemaType:"number",$data:!0,error:ce,code(le){const{keyword:ve,data:pe,schemaCode:ye}=le;le.fail$data((0,k._)`${pe} ${ae[ve].fail} ${ye} || isNaN(${pe})`)}};v.default=fe}}),require_multipleOf$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie={message:({schemaCode:ce})=>(0,k.str)`must be multiple of ${ce}`,params:({schemaCode:ce})=>(0,k._)`{multipleOf: ${ce}}`},ae={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:ie,code(ce){const{gen:fe,data:le,schemaCode:ve,it:pe}=ce,ye=pe.opts.multipleOfPrecision,me=fe.let("res"),Ee=ye?(0,k._)`Math.abs(Math.round(${me}) - ${me}) > 1e-${ye}`:(0,k._)`${me} !== parseInt(${me})`;ce.fail$data((0,k._)`(${ve} === 0 || (${me} = ${le}/${ve}, ${Ee}))`)}};v.default=ae}}),require_ucs2length$1=__commonJS({"node_modules/ajv/dist/runtime/ucs2length.js"(v){Object.defineProperty(v,"__esModule",{value:!0});function k(ie){const ae=ie.length;let ce=0,fe=0,le;for(;fe=55296&&le<=56319&&fe(0,k._)`{limit: ${le}}`},fe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:ce,code(le){const{keyword:ve,data:pe,schemaCode:ye,it:me}=le,Ee=ve==="maxLength"?k.operators.GT:k.operators.LT,cr=me.opts.unicode===!1?(0,k._)`${pe}.length`:(0,k._)`${(0,ie.useFunc)(le.gen,ae.default)}(${pe})`;le.fail$data((0,k._)`${cr} ${Ee} ${ye}`)}};v.default=fe}}),require_pattern$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/pattern.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2$1(),ie=require_codegen$1(),ae={message:({schemaCode:fe})=>(0,ie.str)`must match pattern "${fe}"`,params:({schemaCode:fe})=>(0,ie._)`{pattern: ${fe}}`},ce={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:ae,code(fe){const{data:le,$data:ve,schema:pe,schemaCode:ye,it:me}=fe,Ee=me.opts.unicodeRegExp?"u":"",cr=ve?(0,ie._)`(new RegExp(${ye}, ${Ee}))`:(0,k.usePattern)(fe,pe);fe.fail$data((0,ie._)`!${cr}.test(${le})`)}};v.default=ce}}),require_limitProperties$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie={message({keyword:ce,schemaCode:fe}){const le=ce==="maxProperties"?"more":"fewer";return(0,k.str)`must NOT have ${le} than ${fe} properties`},params:({schemaCode:ce})=>(0,k._)`{limit: ${ce}}`},ae={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:ie,code(ce){const{keyword:fe,data:le,schemaCode:ve}=ce,pe=fe==="maxProperties"?k.operators.GT:k.operators.LT;ce.fail$data((0,k._)`Object.keys(${le}).length ${pe} ${ve}`)}};v.default=ae}}),require_required$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/required.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2$1(),ie=require_codegen$1(),ae=require_util$2(),ce={message:({params:{missingProperty:le}})=>(0,ie.str)`must have required property '${le}'`,params:({params:{missingProperty:le}})=>(0,ie._)`{missingProperty: ${le}}`},fe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:ce,code(le){const{gen:ve,schema:pe,schemaCode:ye,data:me,$data:Ee,it:cr}=le,{opts:Br}=cr;if(!Ee&&pe.length===0)return;const $r=pe.length>=Br.loopRequired;if(cr.allErrors?Pr():Ar(),Br.strictRequired){const Mr=le.parentSchema.properties,{definedProperties:Lr}=le.it;for(const Vr of pe)if((Mr==null?void 0:Mr[Vr])===void 0&&!Lr.has(Vr)){const Gr=cr.schemaEnv.baseId+cr.errSchemaPath,Ur=`required property "${Vr}" is not defined at "${Gr}" (strictRequired)`;(0,ae.checkStrictMode)(cr,Ur,cr.opts.strictRequired)}}function Pr(){if($r||Ee)le.block$data(ie.nil,ur);else for(const Mr of pe)(0,k.checkReportMissingProp)(le,Mr)}function Ar(){const Mr=ve.let("missing");if($r||Ee){const Lr=ve.let("valid",!0);le.block$data(Lr,()=>jr(Mr,Lr)),le.ok(Lr)}else ve.if((0,k.checkMissingProp)(le,pe,Mr)),(0,k.reportMissingProp)(le,Mr),ve.else()}function ur(){ve.forOf("prop",ye,Mr=>{le.setParams({missingProperty:Mr}),ve.if((0,k.noPropertyInData)(ve,me,Mr,Br.ownProperties),()=>le.error())})}function jr(Mr,Lr){le.setParams({missingProperty:Mr}),ve.forOf(Mr,ye,()=>{ve.assign(Lr,(0,k.propertyInData)(ve,me,Mr,Br.ownProperties)),ve.if((0,ie.not)(Lr),()=>{le.error(),ve.break()})},ie.nil)}}};v.default=fe}}),require_limitItems$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/limitItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie={message({keyword:ce,schemaCode:fe}){const le=ce==="maxItems"?"more":"fewer";return(0,k.str)`must NOT have ${le} than ${fe} items`},params:({schemaCode:ce})=>(0,k._)`{limit: ${ce}}`},ae={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:ie,code(ce){const{keyword:fe,data:le,schemaCode:ve}=ce,pe=fe==="maxItems"?k.operators.GT:k.operators.LT;ce.fail$data((0,k._)`${le}.length ${pe} ${ve}`)}};v.default=ae}}),require_equal$1=__commonJS({"node_modules/ajv/dist/runtime/equal.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_fast_deep_equal$1();k.code='require("ajv/dist/runtime/equal").default',v.default=k}}),require_uniqueItems$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_dataType$1(),ie=require_codegen$1(),ae=require_util$2(),ce=require_equal$1(),fe={message:({params:{i:ve,j:pe}})=>(0,ie.str)`must NOT have duplicate items (items ## ${pe} and ${ve} are identical)`,params:({params:{i:ve,j:pe}})=>(0,ie._)`{i: ${ve}, j: ${pe}}`},le={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:fe,code(ve){const{gen:pe,data:ye,$data:me,schema:Ee,parentSchema:cr,schemaCode:Br,it:$r}=ve;if(!me&&!Ee)return;const Pr=pe.let("valid"),Ar=cr.items?(0,k.getSchemaTypes)(cr.items):[];ve.block$data(Pr,ur,(0,ie._)`${Br} === false`),ve.ok(Pr);function ur(){const Vr=pe.let("i",(0,ie._)`${ye}.length`),Gr=pe.let("j");ve.setParams({i:Vr,j:Gr}),pe.assign(Pr,!0),pe.if((0,ie._)`${Vr} > 1`,()=>(jr()?Mr:Lr)(Vr,Gr))}function jr(){return Ar.length>0&&!Ar.some(Vr=>Vr==="object"||Vr==="array")}function Mr(Vr,Gr){const Ur=pe.name("item"),Qr=(0,k.checkDataTypes)(Ar,Ur,$r.opts.strictNumbers,k.DataType.Wrong),hn=pe.const("indices",(0,ie._)`{}`);pe.for((0,ie._)`;${Vr}--;`,()=>{pe.let(Ur,(0,ie._)`${ye}[${Vr}]`),pe.if(Qr,(0,ie._)`continue`),Ar.length>1&&pe.if((0,ie._)`typeof ${Ur} == "string"`,(0,ie._)`${Ur} += "_"`),pe.if((0,ie._)`typeof ${hn}[${Ur}] == "number"`,()=>{pe.assign(Gr,(0,ie._)`${hn}[${Ur}]`),ve.error(),pe.assign(Pr,!1).break()}).code((0,ie._)`${hn}[${Ur}] = ${Vr}`)})}function Lr(Vr,Gr){const Ur=(0,ae.useFunc)(pe,ce.default),Qr=pe.name("outer");pe.label(Qr).for((0,ie._)`;${Vr}--;`,()=>pe.for((0,ie._)`${Gr} = ${Vr}; ${Gr}--;`,()=>pe.if((0,ie._)`${Ur}(${ye}[${Vr}], ${ye}[${Gr}])`,()=>{ve.error(),pe.assign(Pr,!1).break(Qr)})))}}};v.default=le}}),require_const$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/const.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_util$2(),ae=require_equal$1(),ce={message:"must be equal to constant",params:({schemaCode:le})=>(0,k._)`{allowedValue: ${le}}`},fe={keyword:"const",$data:!0,error:ce,code(le){const{gen:ve,data:pe,$data:ye,schemaCode:me,schema:Ee}=le;ye||Ee&&typeof Ee=="object"?le.fail$data((0,k._)`!${(0,ie.useFunc)(ve,ae.default)}(${pe}, ${me})`):le.fail((0,k._)`${Ee} !== ${pe}`)}};v.default=fe}}),require_enum$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/enum.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_util$2(),ae=require_equal$1(),ce={message:"must be equal to one of the allowed values",params:({schemaCode:le})=>(0,k._)`{allowedValues: ${le}}`},fe={keyword:"enum",schemaType:"array",$data:!0,error:ce,code(le){const{gen:ve,data:pe,$data:ye,schema:me,schemaCode:Ee,it:cr}=le;if(!ye&&me.length===0)throw new Error("enum must have non-empty array");const Br=me.length>=cr.opts.loopEnum;let $r;const Pr=()=>$r!=null?$r:$r=(0,ie.useFunc)(ve,ae.default);let Ar;if(Br||ye)Ar=ve.let("valid"),le.block$data(Ar,ur);else{if(!Array.isArray(me))throw new Error("ajv implementation error");const Mr=ve.const("vSchema",Ee);Ar=(0,k.or)(...me.map((Lr,Vr)=>jr(Mr,Vr)))}le.pass(Ar);function ur(){ve.assign(Ar,!1),ve.forOf("v",Ee,Mr=>ve.if((0,k._)`${Pr()}(${pe}, ${Mr})`,()=>ve.assign(Ar,!0).break()))}function jr(Mr,Lr){const Vr=me[Lr];return typeof Vr=="object"&&Vr!==null?(0,k._)`${Pr()}(${pe}, ${Mr}[${Lr}])`:(0,k._)`${pe} === ${Vr}`}}};v.default=fe}}),require_validation$1=__commonJS({"node_modules/ajv/dist/vocabularies/validation/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_limitNumber$1(),ie=require_multipleOf$1(),ae=require_limitLength$1(),ce=require_pattern$1(),fe=require_limitProperties$1(),le=require_required$1(),ve=require_limitItems$1(),pe=require_uniqueItems$1(),ye=require_const$1(),me=require_enum$1(),Ee=[k.default,ie.default,ae.default,ce.default,fe.default,le.default,ve.default,pe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ye.default,me.default];v.default=Ee}}),require_additionalItems$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateAdditionalItems=void 0;var k=require_codegen$1(),ie=require_util$2(),ae={message:({params:{len:le}})=>(0,k.str)`must NOT have more than ${le} items`,params:({params:{len:le}})=>(0,k._)`{limit: ${le}}`},ce={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:ae,code(le){const{parentSchema:ve,it:pe}=le,{items:ye}=ve;if(!Array.isArray(ye)){(0,ie.checkStrictMode)(pe,'"additionalItems" is ignored when "items" is not an array of schemas');return}fe(le,ye)}};function fe(le,ve){const{gen:pe,schema:ye,data:me,keyword:Ee,it:cr}=le;cr.items=!0;const Br=pe.const("len",(0,k._)`${me}.length`);if(ye===!1)le.setParams({len:ve.length}),le.pass((0,k._)`${Br} <= ${ve.length}`);else if(typeof ye=="object"&&!(0,ie.alwaysValidSchema)(cr,ye)){const Pr=pe.var("valid",(0,k._)`${Br} <= ${ve.length}`);pe.if((0,k.not)(Pr),()=>$r(Pr)),le.ok(Pr)}function $r(Pr){pe.forRange("i",ve.length,Br,Ar=>{le.subschema({keyword:Ee,dataProp:Ar,dataPropType:ie.Type.Num},Pr),cr.allErrors||pe.if((0,k.not)(Pr),()=>pe.break())})}}v.validateAdditionalItems=fe,v.default=ce}}),require_items$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/items.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateTuple=void 0;var k=require_codegen$1(),ie=require_util$2(),ae=require_code2$1(),ce={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(le){const{schema:ve,it:pe}=le;if(Array.isArray(ve))return fe(le,"additionalItems",ve);pe.items=!0,!(0,ie.alwaysValidSchema)(pe,ve)&&le.ok((0,ae.validateArray)(le))}};function fe(le,ve,pe=le.schema){const{gen:ye,parentSchema:me,data:Ee,keyword:cr,it:Br}=le;Ar(me),Br.opts.unevaluated&&pe.length&&Br.items!==!0&&(Br.items=ie.mergeEvaluated.items(ye,pe.length,Br.items));const $r=ye.name("valid"),Pr=ye.const("len",(0,k._)`${Ee}.length`);pe.forEach((ur,jr)=>{(0,ie.alwaysValidSchema)(Br,ur)||(ye.if((0,k._)`${Pr} > ${jr}`,()=>le.subschema({keyword:cr,schemaProp:jr,dataProp:jr},$r)),le.ok($r))});function Ar(ur){const{opts:jr,errSchemaPath:Mr}=Br,Lr=pe.length,Vr=Lr===ur.minItems&&(Lr===ur.maxItems||ur[ve]===!1);if(jr.strictTuples&&!Vr){const Gr=`"${cr}" is ${Lr}-tuple, but minItems or maxItems/${ve} are not specified or different at path "${Mr}"`;(0,ie.checkStrictMode)(Br,Gr,jr.strictTuples)}}}v.validateTuple=fe,v.default=ce}}),require_prefixItems$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_items$1(),ie={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:ae=>(0,k.validateTuple)(ae,"items")};v.default=ie}}),require_items2020$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/items2020.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_util$2(),ae=require_code2$1(),ce=require_additionalItems$1(),fe={message:({params:{len:ve}})=>(0,k.str)`must NOT have more than ${ve} items`,params:({params:{len:ve}})=>(0,k._)`{limit: ${ve}}`},le={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:fe,code(ve){const{schema:pe,parentSchema:ye,it:me}=ve,{prefixItems:Ee}=ye;me.items=!0,!(0,ie.alwaysValidSchema)(me,pe)&&(Ee?(0,ce.validateAdditionalItems)(ve,Ee):ve.ok((0,ae.validateArray)(ve)))}};v.default=le}}),require_contains$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/contains.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_util$2(),ae={message:({params:{min:fe,max:le}})=>le===void 0?(0,k.str)`must contain at least ${fe} valid item(s)`:(0,k.str)`must contain at least ${fe} and no more than ${le} valid item(s)`,params:({params:{min:fe,max:le}})=>le===void 0?(0,k._)`{minContains: ${fe}}`:(0,k._)`{minContains: ${fe}, maxContains: ${le}}`},ce={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:ae,code(fe){const{gen:le,schema:ve,parentSchema:pe,data:ye,it:me}=fe;let Ee,cr;const{minContains:Br,maxContains:$r}=pe;me.opts.next?(Ee=Br===void 0?1:Br,cr=$r):Ee=1;const Pr=le.const("len",(0,k._)`${ye}.length`);if(fe.setParams({min:Ee,max:cr}),cr===void 0&&Ee===0){(0,ie.checkStrictMode)(me,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(cr!==void 0&&Ee>cr){(0,ie.checkStrictMode)(me,'"minContains" > "maxContains" is always invalid'),fe.fail();return}if((0,ie.alwaysValidSchema)(me,ve)){let Lr=(0,k._)`${Pr} >= ${Ee}`;cr!==void 0&&(Lr=(0,k._)`${Lr} && ${Pr} <= ${cr}`),fe.pass(Lr);return}me.items=!0;const Ar=le.name("valid");cr===void 0&&Ee===1?jr(Ar,()=>le.if(Ar,()=>le.break())):Ee===0?(le.let(Ar,!0),cr!==void 0&&le.if((0,k._)`${ye}.length > 0`,ur)):(le.let(Ar,!1),ur()),fe.result(Ar,()=>fe.reset());function ur(){const Lr=le.name("_valid"),Vr=le.let("count",0);jr(Lr,()=>le.if(Lr,()=>Mr(Vr)))}function jr(Lr,Vr){le.forRange("i",0,Pr,Gr=>{fe.subschema({keyword:"contains",dataProp:Gr,dataPropType:ie.Type.Num,compositeRule:!0},Lr),Vr()})}function Mr(Lr){le.code((0,k._)`${Lr}++`),cr===void 0?le.if((0,k._)`${Lr} >= ${Ee}`,()=>le.assign(Ar,!0).break()):(le.if((0,k._)`${Lr} > ${cr}`,()=>le.assign(Ar,!1).break()),Ee===1?le.assign(Ar,!0):le.if((0,k._)`${Lr} >= ${Ee}`,()=>le.assign(Ar,!0)))}}};v.default=ce}}),require_dependencies$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateSchemaDeps=v.validatePropertyDeps=v.error=void 0;var k=require_codegen$1(),ie=require_util$2(),ae=require_code2$1();v.error={message:({params:{property:pe,depsCount:ye,deps:me}})=>{const Ee=ye===1?"property":"properties";return(0,k.str)`must have ${Ee} ${me} when property ${pe} is present`},params:({params:{property:pe,depsCount:ye,deps:me,missingProperty:Ee}})=>(0,k._)`{property: ${pe}, missingProperty: ${Ee}, depsCount: ${ye}, - deps: ${me}}`};var ce={keyword:"dependencies",type:"object",schemaType:"object",error:v.error,code(pe){const[ye,me]=fe(pe);le(pe,ye),ve(pe,me)}};function fe({schema:pe}){const ye={},me={};for(const Ee in pe){if(Ee==="__proto__")continue;const cr=Array.isArray(pe[Ee])?ye:me;cr[Ee]=pe[Ee]}return[ye,me]}function le(pe,ye=pe.schema){const{gen:me,data:Ee,it:cr}=pe;if(Object.keys(ye).length===0)return;const Br=me.let("missing");for(const $r in ye){const Pr=ye[$r];if(Pr.length===0)continue;const Or=(0,ae.propertyInData)(me,Ee,$r,cr.opts.ownProperties);pe.setParams({property:$r,depsCount:Pr.length,deps:Pr.join(", ")}),cr.allErrors?me.if(Or,()=>{for(const ur of Pr)(0,ae.checkReportMissingProp)(pe,ur)}):(me.if((0,k._)`${Or} && (${(0,ae.checkMissingProp)(pe,Pr,Br)})`),(0,ae.reportMissingProp)(pe,Br),me.else())}}v.validatePropertyDeps=le;function ve(pe,ye=pe.schema){const{gen:me,data:Ee,keyword:cr,it:Br}=pe,$r=me.name("valid");for(const Pr in ye)(0,ie.alwaysValidSchema)(Br,ye[Pr])||(me.if((0,ae.propertyInData)(me,Ee,Pr,Br.opts.ownProperties),()=>{const Or=pe.subschema({keyword:cr,schemaProp:Pr},$r);pe.mergeValidEvaluated(Or,$r)},()=>me.var($r,!0)),pe.ok($r))}v.validateSchemaDeps=ve,v.default=ce}}),require_propertyNames$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_util$2(),ae={message:"property name must be valid",params:({params:fe})=>(0,k._)`{propertyName: ${fe.propertyName}}`},ce={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:ae,code(fe){const{gen:le,schema:ve,data:pe,it:ye}=fe;if((0,ie.alwaysValidSchema)(ye,ve))return;const me=le.name("valid");le.forIn("key",pe,Ee=>{fe.setParams({propertyName:Ee}),fe.subschema({keyword:"propertyNames",data:Ee,dataTypes:["string"],propertyName:Ee,compositeRule:!0},me),le.if((0,k.not)(me),()=>{fe.error(!0),ye.allErrors||le.break()})}),fe.ok(me)}};v.default=ce}}),require_additionalProperties$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2$1(),ie=require_codegen$1(),ae=require_names$1(),ce=require_util$2(),fe={message:"must NOT have additional properties",params:({params:ve})=>(0,ie._)`{additionalProperty: ${ve.additionalProperty}}`},le={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:fe,code(ve){const{gen:pe,schema:ye,parentSchema:me,data:Ee,errsCount:cr,it:Br}=ve;if(!cr)throw new Error("ajv implementation error");const{allErrors:$r,opts:Pr}=Br;if(Br.props=!0,Pr.removeAdditional!=="all"&&(0,ce.alwaysValidSchema)(Br,ye))return;const Or=(0,k.allSchemaProperties)(me.properties),ur=(0,k.allSchemaProperties)(me.patternProperties);jr(),ve.ok((0,ie._)`${cr} === ${ae.default.errors}`);function jr(){pe.forIn("key",Ee,Ur=>{!Or.length&&!ur.length?Vr(Ur):pe.if(Mr(Ur),()=>Vr(Ur))})}function Mr(Ur){let Qr;if(Or.length>8){const vn=(0,ce.schemaRefOrVal)(Br,me.properties,"properties");Qr=(0,k.isOwnProperty)(pe,vn,Ur)}else Or.length?Qr=(0,ie.or)(...Or.map(vn=>(0,ie._)`${Ur} === ${vn}`)):Qr=ie.nil;return ur.length&&(Qr=(0,ie.or)(Qr,...ur.map(vn=>(0,ie._)`${(0,k.usePattern)(ve,vn)}.test(${Ur})`))),(0,ie.not)(Qr)}function Lr(Ur){pe.code((0,ie._)`delete ${Ee}[${Ur}]`)}function Vr(Ur){if(Pr.removeAdditional==="all"||Pr.removeAdditional&&ye===!1){Lr(Ur);return}if(ye===!1){ve.setParams({additionalProperty:Ur}),ve.error(),$r||pe.break();return}if(typeof ye=="object"&&!(0,ce.alwaysValidSchema)(Br,ye)){const Qr=pe.name("valid");Pr.removeAdditional==="failing"?(Gr(Ur,Qr,!1),pe.if((0,ie.not)(Qr),()=>{ve.reset(),Lr(Ur)})):(Gr(Ur,Qr),$r||pe.if((0,ie.not)(Qr),()=>pe.break()))}}function Gr(Ur,Qr,vn){const Yt={keyword:"additionalProperties",dataProp:Ur,dataPropType:ce.Type.Str};vn===!1&&Object.assign(Yt,{compositeRule:!0,createErrors:!1,allErrors:!1}),ve.subschema(Yt,Qr)}}};v.default=le}}),require_properties$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/properties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_validate$1(),ie=require_code2$1(),ae=require_util$2(),ce=require_additionalProperties$1(),fe={keyword:"properties",type:"object",schemaType:"object",code(le){const{gen:ve,schema:pe,parentSchema:ye,data:me,it:Ee}=le;Ee.opts.removeAdditional==="all"&&ye.additionalProperties===void 0&&ce.default.code(new k.KeywordCxt(Ee,ce.default,"additionalProperties"));const cr=(0,ie.allSchemaProperties)(pe);for(const ur of cr)Ee.definedProperties.add(ur);Ee.opts.unevaluated&&cr.length&&Ee.props!==!0&&(Ee.props=ae.mergeEvaluated.props(ve,(0,ae.toHash)(cr),Ee.props));const Br=cr.filter(ur=>!(0,ae.alwaysValidSchema)(Ee,pe[ur]));if(Br.length===0)return;const $r=ve.name("valid");for(const ur of Br)Pr(ur)?Or(ur):(ve.if((0,ie.propertyInData)(ve,me,ur,Ee.opts.ownProperties)),Or(ur),Ee.allErrors||ve.else().var($r,!0),ve.endIf()),le.it.definedProperties.add(ur),le.ok($r);function Pr(ur){return Ee.opts.useDefaults&&!Ee.compositeRule&&pe[ur].default!==void 0}function Or(ur){le.subschema({keyword:"properties",schemaProp:ur,dataProp:ur},$r)}}};v.default=fe}}),require_patternProperties$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2$1(),ie=require_codegen$1(),ae=require_util$2(),ce=require_util$2(),fe={keyword:"patternProperties",type:"object",schemaType:"object",code(le){const{gen:ve,schema:pe,data:ye,parentSchema:me,it:Ee}=le,{opts:cr}=Ee,Br=(0,k.allSchemaProperties)(pe),$r=Br.filter(Vr=>(0,ae.alwaysValidSchema)(Ee,pe[Vr]));if(Br.length===0||$r.length===Br.length&&(!Ee.opts.unevaluated||Ee.props===!0))return;const Pr=cr.strictSchema&&!cr.allowMatchingProperties&&me.properties,Or=ve.name("valid");Ee.props!==!0&&!(Ee.props instanceof ie.Name)&&(Ee.props=(0,ce.evaluatedPropsToName)(ve,Ee.props));const{props:ur}=Ee;jr();function jr(){for(const Vr of Br)Pr&&Mr(Vr),Ee.allErrors?Lr(Vr):(ve.var(Or,!0),Lr(Vr),ve.if(Or))}function Mr(Vr){for(const Gr in Pr)new RegExp(Vr).test(Gr)&&(0,ae.checkStrictMode)(Ee,`property ${Gr} matches pattern ${Vr} (use allowMatchingProperties)`)}function Lr(Vr){ve.forIn("key",ye,Gr=>{ve.if((0,ie._)`${(0,k.usePattern)(le,Vr)}.test(${Gr})`,()=>{const Ur=$r.includes(Vr);Ur||le.subschema({keyword:"patternProperties",schemaProp:Vr,dataProp:Gr,dataPropType:ce.Type.Str},Or),Ee.opts.unevaluated&&ur!==!0?ve.assign((0,ie._)`${ur}[${Gr}]`,!0):!Ur&&!Ee.allErrors&&ve.if((0,ie.not)(Or),()=>ve.break())})})}}};v.default=fe}}),require_not$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/not.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_util$2(),ie={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(ae){const{gen:ce,schema:fe,it:le}=ae;if((0,k.alwaysValidSchema)(le,fe)){ae.fail();return}const ve=ce.name("valid");ae.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},ve),ae.failResult(ve,()=>ae.reset(),()=>ae.error())},error:{message:"must NOT be valid"}};v.default=ie}}),require_anyOf$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2$1(),ie={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:k.validateUnion,error:{message:"must match a schema in anyOf"}};v.default=ie}}),require_oneOf$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_util$2(),ae={message:"must match exactly one schema in oneOf",params:({params:fe})=>(0,k._)`{passingSchemas: ${fe.passing}}`},ce={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:ae,code(fe){const{gen:le,schema:ve,parentSchema:pe,it:ye}=fe;if(!Array.isArray(ve))throw new Error("ajv implementation error");if(ye.opts.discriminator&&pe.discriminator)return;const me=ve,Ee=le.let("valid",!1),cr=le.let("passing",null),Br=le.name("_valid");fe.setParams({passing:cr}),le.block($r),fe.result(Ee,()=>fe.reset(),()=>fe.error(!0));function $r(){me.forEach((Pr,Or)=>{let ur;(0,ie.alwaysValidSchema)(ye,Pr)?le.var(Br,!0):ur=fe.subschema({keyword:"oneOf",schemaProp:Or,compositeRule:!0},Br),Or>0&&le.if((0,k._)`${Br} && ${Ee}`).assign(Ee,!1).assign(cr,(0,k._)`[${cr}, ${Or}]`).else(),le.if(Br,()=>{le.assign(Ee,!0),le.assign(cr,Or),ur&&fe.mergeEvaluated(ur,k.Name)})})}}};v.default=ce}}),require_allOf$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/allOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_util$2(),ie={keyword:"allOf",schemaType:"array",code(ae){const{gen:ce,schema:fe,it:le}=ae;if(!Array.isArray(fe))throw new Error("ajv implementation error");const ve=ce.name("valid");fe.forEach((pe,ye)=>{if((0,k.alwaysValidSchema)(le,pe))return;const me=ae.subschema({keyword:"allOf",schemaProp:ye},ve);ae.ok(ve),ae.mergeEvaluated(me)})}};v.default=ie}}),require_if$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/if.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_util$2(),ae={message:({params:le})=>(0,k.str)`must match "${le.ifClause}" schema`,params:({params:le})=>(0,k._)`{failingKeyword: ${le.ifClause}}`},ce={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:ae,code(le){const{gen:ve,parentSchema:pe,it:ye}=le;pe.then===void 0&&pe.else===void 0&&(0,ie.checkStrictMode)(ye,'"if" without "then" and "else" is ignored');const me=fe(ye,"then"),Ee=fe(ye,"else");if(!me&&!Ee)return;const cr=ve.let("valid",!0),Br=ve.name("_valid");if($r(),le.reset(),me&&Ee){const Or=ve.let("ifClause");le.setParams({ifClause:Or}),ve.if(Br,Pr("then",Or),Pr("else",Or))}else me?ve.if(Br,Pr("then")):ve.if((0,k.not)(Br),Pr("else"));le.pass(cr,()=>le.error(!0));function $r(){const Or=le.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},Br);le.mergeEvaluated(Or)}function Pr(Or,ur){return()=>{const jr=le.subschema({keyword:Or},Br);ve.assign(cr,Br),le.mergeValidEvaluated(jr,cr),ur?ve.assign(ur,(0,k._)`${Or}`):le.setParams({ifClause:Or})}}}};function fe(le,ve){const pe=le.schema[ve];return pe!==void 0&&!(0,ie.alwaysValidSchema)(le,pe)}v.default=ce}}),require_thenElse$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_util$2(),ie={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:ae,parentSchema:ce,it:fe}){ce.if===void 0&&(0,k.checkStrictMode)(fe,`"${ae}" without "if" is ignored`)}};v.default=ie}}),require_applicator$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_additionalItems$1(),ie=require_prefixItems$1(),ae=require_items$1(),ce=require_items2020$1(),fe=require_contains$1(),le=require_dependencies$1(),ve=require_propertyNames$1(),pe=require_additionalProperties$1(),ye=require_properties$1(),me=require_patternProperties$1(),Ee=require_not$1(),cr=require_anyOf$1(),Br=require_oneOf$1(),$r=require_allOf$1(),Pr=require_if$1(),Or=require_thenElse$1();function ur(jr=!1){const Mr=[Ee.default,cr.default,Br.default,$r.default,Pr.default,Or.default,ve.default,pe.default,le.default,ye.default,me.default];return jr?Mr.push(ie.default,ce.default):Mr.push(k.default,ae.default),Mr.push(fe.default),Mr}v.default=ur}}),require_format3$1=__commonJS({"node_modules/ajv/dist/vocabularies/format/format.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie={message:({schemaCode:ce})=>(0,k.str)`must match format "${ce}"`,params:({schemaCode:ce})=>(0,k._)`{format: ${ce}}`},ae={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:ie,code(ce,fe){const{gen:le,data:ve,$data:pe,schema:ye,schemaCode:me,it:Ee}=ce,{opts:cr,errSchemaPath:Br,schemaEnv:$r,self:Pr}=Ee;if(!cr.validateFormats)return;pe?Or():ur();function Or(){const jr=le.scopeValue("formats",{ref:Pr.formats,code:cr.code.formats}),Mr=le.const("fDef",(0,k._)`${jr}[${me}]`),Lr=le.let("fType"),Vr=le.let("format");le.if((0,k._)`typeof ${Mr} == "object" && !(${Mr} instanceof RegExp)`,()=>le.assign(Lr,(0,k._)`${Mr}.type || "string"`).assign(Vr,(0,k._)`${Mr}.validate`),()=>le.assign(Lr,(0,k._)`"string"`).assign(Vr,Mr)),ce.fail$data((0,k.or)(Gr(),Ur()));function Gr(){return cr.strictSchema===!1?k.nil:(0,k._)`${me} && !${Vr}`}function Ur(){const Qr=$r.$async?(0,k._)`(${Mr}.async ? await ${Vr}(${ve}) : ${Vr}(${ve}))`:(0,k._)`${Vr}(${ve})`,vn=(0,k._)`(typeof ${Vr} == "function" ? ${Qr} : ${Vr}.test(${ve}))`;return(0,k._)`${Vr} && ${Vr} !== true && ${Lr} === ${fe} && !${vn}`}}function ur(){const jr=Pr.formats[ye];if(!jr){Gr();return}if(jr===!0)return;const[Mr,Lr,Vr]=Ur(jr);Mr===fe&&ce.pass(Qr());function Gr(){if(cr.strictSchema===!1){Pr.logger.warn(vn());return}throw new Error(vn());function vn(){return`unknown format "${ye}" ignored in schema at path "${Br}"`}}function Ur(vn){const Yt=vn instanceof RegExp?(0,k.regexpCode)(vn):cr.code.formats?(0,k._)`${cr.code.formats}${(0,k.getProperty)(ye)}`:void 0,fn=le.scopeValue("formats",{key:ye,ref:vn,code:Yt});return typeof vn=="object"&&!(vn instanceof RegExp)?[vn.type||"string",vn.validate,(0,k._)`${fn}.validate`]:["string",vn,fn]}function Qr(){if(typeof jr=="object"&&!(jr instanceof RegExp)&&jr.async){if(!$r.$async)throw new Error("async format in sync schema");return(0,k._)`await ${Vr}(${ve})`}return typeof Lr=="function"?(0,k._)`${Vr}(${ve})`:(0,k._)`${Vr}.test(${ve})`}}}};v.default=ae}}),require_format4$1=__commonJS({"node_modules/ajv/dist/vocabularies/format/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_format3$1(),ie=[k.default];v.default=ie}}),require_metadata$1=__commonJS({"node_modules/ajv/dist/vocabularies/metadata.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.contentVocabulary=v.metadataVocabulary=void 0,v.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],v.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]}}),require_draft7$1=__commonJS({"node_modules/ajv/dist/vocabularies/draft7.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_core2$1(),ie=require_validation$1(),ae=require_applicator$1(),ce=require_format4$1(),fe=require_metadata$1(),le=[k.default,ie.default,(0,ae.default)(),ce.default,fe.metadataVocabulary,fe.contentVocabulary];v.default=le}}),require_types2$3=__commonJS({"node_modules/ajv/dist/vocabularies/discriminator/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.DiscrError=void 0,function(k){k.Tag="tag",k.Mapping="mapping"}(v.DiscrError||(v.DiscrError={}))}}),require_discriminator$1=__commonJS({"node_modules/ajv/dist/vocabularies/discriminator/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_types2$3(),ae=require_compile$1(),ce=require_util$2(),fe={message:({params:{discrError:ve,tagName:pe}})=>ve===ie.DiscrError.Tag?`tag "${pe}" must be string`:`value of tag "${pe}" must be in oneOf`,params:({params:{discrError:ve,tag:pe,tagName:ye}})=>(0,k._)`{error: ${ve}, tag: ${ye}, tagValue: ${pe}}`},le={keyword:"discriminator",type:"object",schemaType:"object",error:fe,code(ve){const{gen:pe,data:ye,schema:me,parentSchema:Ee,it:cr}=ve,{oneOf:Br}=Ee;if(!cr.opts.discriminator)throw new Error("discriminator: requires discriminator option");const $r=me.propertyName;if(typeof $r!="string")throw new Error("discriminator: requires propertyName");if(me.mapping)throw new Error("discriminator: mapping is not supported");if(!Br)throw new Error("discriminator: requires oneOf keyword");const Pr=pe.let("valid",!1),Or=pe.const("tag",(0,k._)`${ye}${(0,k.getProperty)($r)}`);pe.if((0,k._)`typeof ${Or} == "string"`,()=>ur(),()=>ve.error(!1,{discrError:ie.DiscrError.Tag,tag:Or,tagName:$r})),ve.ok(Pr);function ur(){const Lr=Mr();pe.if(!1);for(const Vr in Lr)pe.elseIf((0,k._)`${Or} === ${Vr}`),pe.assign(Pr,jr(Lr[Vr]));pe.else(),ve.error(!1,{discrError:ie.DiscrError.Mapping,tag:Or,tagName:$r}),pe.endIf()}function jr(Lr){const Vr=pe.name("valid"),Gr=ve.subschema({keyword:"oneOf",schemaProp:Lr},Vr);return ve.mergeEvaluated(Gr,k.Name),Vr}function Mr(){var Lr;const Vr={},Gr=Qr(Ee);let Ur=!0;for(let fn=0;fnthis.addVocabulary(Br)),this.opts.discriminator&&this.addKeyword(ce.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const Br=this.opts.$data?this.$dataMetaSchema(fe,le):fe;this.addMetaSchema(Br,ve,!1),this.refs["http://json-schema.org/schema"]=ve}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ve)?ve:void 0)}};k.exports=v=pe,Object.defineProperty(v,"__esModule",{value:!0}),v.default=pe;var ye=require_validate$1();Object.defineProperty(v,"KeywordCxt",{enumerable:!0,get:function(){return ye.KeywordCxt}});var me=require_codegen$1();Object.defineProperty(v,"_",{enumerable:!0,get:function(){return me._}}),Object.defineProperty(v,"str",{enumerable:!0,get:function(){return me.str}}),Object.defineProperty(v,"stringify",{enumerable:!0,get:function(){return me.stringify}}),Object.defineProperty(v,"nil",{enumerable:!0,get:function(){return me.nil}}),Object.defineProperty(v,"Name",{enumerable:!0,get:function(){return me.Name}}),Object.defineProperty(v,"CodeGen",{enumerable:!0,get:function(){return me.CodeGen}});var Ee=require_validation_error$1();Object.defineProperty(v,"ValidationError",{enumerable:!0,get:function(){return Ee.default}});var cr=require_ref_error$1();Object.defineProperty(v,"MissingRefError",{enumerable:!0,get:function(){return cr.default}})}}),require_formats$1=__commonJS({"node_modules/ajv-formats/dist/formats.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.formatNames=v.fastFormats=v.fullFormats=void 0;function k(vn,Yt){return{validate:vn,compare:Yt}}v.fullFormats={date:k(fe,le),time:k(pe,ye),"date-time":k(Ee,cr),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:Pr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d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-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Qr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:ur,int32:{type:"number",validate:Lr},int64:{type:"number",validate:Vr},float:{type:"number",validate:Gr},double:{type:"number",validate:Gr},password:!0,binary:!0},v.fastFormats={...v.fullFormats,date:k(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,le),time:k(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,ye),"date-time":k(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,cr),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},v.formatNames=Object.keys(v.fullFormats);function ie(vn){return vn%4===0&&(vn%100!==0||vn%400===0)}var ae=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ce=[0,31,28,31,30,31,30,31,31,30,31,30,31];function fe(vn){const Yt=ae.exec(vn);if(!Yt)return!1;const fn=+Yt[1],Xt=+Yt[2],Qt=+Yt[3];return Xt>=1&&Xt<=12&&Qt>=1&&Qt<=(Xt===2&&ie(fn)?29:ce[Xt])}function le(vn,Yt){if(!!(vn&&Yt))return vn>Yt?1:vnYt?1:vn=jr}function Vr(vn){return Number.isInteger(vn)}function Gr(){return!0}var Ur=/[^\\]\\Z/;function Qr(vn){if(Ur.test(vn))return!1;try{return new RegExp(vn),!0}catch{return!1}}}}),require_limit$1=__commonJS({"node_modules/ajv-formats/dist/limit.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.formatLimitDefinition=void 0;var k=require_ajv$1(),ie=require_codegen$1(),ae=ie.operators,ce={formatMaximum:{okStr:"<=",ok:ae.LTE,fail:ae.GT},formatMinimum:{okStr:">=",ok:ae.GTE,fail:ae.LT},formatExclusiveMaximum:{okStr:"<",ok:ae.LT,fail:ae.GTE},formatExclusiveMinimum:{okStr:">",ok:ae.GT,fail:ae.LTE}},fe={message:({keyword:ve,schemaCode:pe})=>ie.str`should be ${ce[ve].okStr} ${pe}`,params:({keyword:ve,schemaCode:pe})=>ie._`{comparison: ${ce[ve].okStr}, limit: ${pe}}`};v.formatLimitDefinition={keyword:Object.keys(ce),type:"string",schemaType:"string",$data:!0,error:fe,code(ve){const{gen:pe,data:ye,schemaCode:me,keyword:Ee,it:cr}=ve,{opts:Br,self:$r}=cr;if(!Br.validateFormats)return;const Pr=new k.KeywordCxt(cr,$r.RULES.all.format.definition,"format");Pr.$data?Or():ur();function Or(){const Mr=pe.scopeValue("formats",{ref:$r.formats,code:Br.code.formats}),Lr=pe.const("fmt",ie._`${Mr}[${Pr.schemaCode}]`);ve.fail$data(ie.or(ie._`typeof ${Lr} != "object"`,ie._`${Lr} instanceof RegExp`,ie._`typeof ${Lr}.compare != "function"`,jr(Lr)))}function ur(){const Mr=Pr.schema,Lr=$r.formats[Mr];if(!Lr||Lr===!0)return;if(typeof Lr!="object"||Lr instanceof RegExp||typeof Lr.compare!="function")throw new Error(`"${Ee}": format "${Mr}" does not define "compare" function`);const Vr=pe.scopeValue("formats",{key:Mr,ref:Lr,code:Br.code.formats?ie._`${Br.code.formats}${ie.getProperty(Mr)}`:void 0});ve.fail$data(jr(Vr))}function jr(Mr){return ie._`${Mr}.compare(${ye}, ${me}) ${ce[Ee].fail} 0`}},dependencies:["format"]};var le=ve=>(ve.addKeyword(v.formatLimitDefinition),ve);v.default=le}}),require_dist$2=__commonJS({"node_modules/ajv-formats/dist/index.js"(v,k){Object.defineProperty(v,"__esModule",{value:!0});var ie=require_formats$1(),ae=require_limit$1(),ce=require_codegen$1(),fe=new ce.Name("fullFormats"),le=new ce.Name("fastFormats"),ve=(ye,me={keywords:!0})=>{if(Array.isArray(me))return pe(ye,me,ie.fullFormats,fe),ye;const[Ee,cr]=me.mode==="fast"?[ie.fastFormats,le]:[ie.fullFormats,fe],Br=me.formats||ie.formatNames;return pe(ye,Br,Ee,cr),me.keywords&&ae.default(ye),ye};ve.get=(ye,me="full")=>{const cr=(me==="fast"?ie.fastFormats:ie.fullFormats)[ye];if(!cr)throw new Error(`Unknown format "${ye}"`);return cr};function pe(ye,me,Ee,cr){var Br,$r;(Br=($r=ye.opts.code).formats)!==null&&Br!==void 0||($r.formats=ce._`require("ajv-formats/dist/formats").${cr}`);for(const Pr of me)ye.addFormat(Pr,Ee[Pr])}k.exports=v=ve,Object.defineProperty(v,"__esModule",{value:!0}),v.default=ve}}),require_lib10$1=__commonJS({"node_modules/near-abi/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.AbiSerializationType=v.AbiFunctionModifier=v.AbiFunctionKind=v.SCHEMA_VERSION=void 0,v.SCHEMA_VERSION="0.3.0",function(k){k.View="view",k.Call="call"}(v.AbiFunctionKind||(v.AbiFunctionKind={})),function(k){k.Init="init",k.Private="private",k.Payable="payable"}(v.AbiFunctionModifier||(v.AbiFunctionModifier={})),function(k){k.Json="json",k.Borsh="borsh"}(v.AbiSerializationType||(v.AbiSerializationType={}))}}),require_errors5$1=__commonJS({"node_modules/@near-js/accounts/lib/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ConflictingOptions=v.ArgumentSchemaError=v.UnknownArgumentError=v.UnsupportedSerializationError=void 0;var k=class extends Error{constructor(fe,le){super(`Contract method '${fe}' is using an unsupported serialization type ${le}`)}};v.UnsupportedSerializationError=k;var ie=class extends Error{constructor(fe,le){super(`Unrecognized argument '${fe}', expected '${JSON.stringify(le)}'`)}};v.UnknownArgumentError=ie;var ae=class extends Error{constructor(fe,le){super(`Argument '${fe}' does not conform to the specified ABI schema: '${JSON.stringify(le)}'`)}};v.ArgumentSchemaError=ae;var ce=class extends Error{constructor(){super("Conflicting contract method options have been passed. You can either specify ABI or a list of view/call methods.")}};v.ConflictingOptions=ce}}),require_contract$2=__commonJS({"node_modules/@near-js/accounts/lib/contract.js"(v){var k=v&&v.__awaiter||function(jr,Mr,Lr,Vr){function Gr(Ur){return Ur instanceof Lr?Ur:new Lr(function(Qr){Qr(Ur)})}return new(Lr||(Lr=Promise))(function(Ur,Qr){function vn(Xt){try{fn(Vr.next(Xt))}catch(Qt){Qr(Qt)}}function Yt(Xt){try{fn(Vr.throw(Xt))}catch(Qt){Qr(Qt)}}function fn(Xt){Xt.done?Ur(Xt.value):Gr(Xt.value).then(vn,Yt)}fn((Vr=Vr.apply(jr,Mr||[])).next())})},ie=v&&v.__importDefault||function(jr){return jr&&jr.__esModule?jr:{default:jr}};Object.defineProperty(v,"__esModule",{value:!0}),v.Contract=void 0;var ae=require_lib6$1(),ce=require_lib2$1(),fe=ie(require_ajv$1()),le=ie(require_dist$2()),ve=ie(require_bn$2()),pe=ie(require_browser$4()),ye=require_lib10$1(),me=require_errors5$1();function Ee(jr,Mr){return{[jr](...Lr){return Mr(...Lr)}}[jr]}function cr(jr,Mr,Lr,Vr){var Gr;if(!Pr(jr))return;if(Mr.params&&Mr.params.serialization_type!==ye.AbiSerializationType.Json)throw new me.UnsupportedSerializationError(Mr.name,Mr.params.serialization_type);if(Mr.result&&Mr.result.serialization_type!==ye.AbiSerializationType.Json)throw new me.UnsupportedSerializationError(Mr.name,Mr.result.serialization_type);const Ur=((Gr=Mr.params)===null||Gr===void 0?void 0:Gr.args)||[];for(const Qr of Ur){const vn=jr[Qr.name],Yt=Qr.type_schema;Yt.definitions=Vr.body.root_schema.definitions;const fn=Lr.compile(Yt);if(!fn(vn))throw new me.ArgumentSchemaError(Qr.name,fn.errors)}for(const Qr of Object.keys(jr))if(!Ur.find(Yt=>Yt.name===Qr))throw new me.UnknownArgumentError(Qr,Ur.map(Yt=>Yt.name))}function Br(){const jr=new fe.default({strictSchema:!1,formats:{uint32:!0,uint64:!0}});return(0,le.default)(jr),jr}var $r=jr=>jr&&jr.byteLength!==void 0&&jr.byteLength===jr.length,Pr=jr=>Object.prototype.toString.call(jr)==="[object Object]",Or=class{constructor(jr,Mr,Lr){this.account=jr,this.contractId=Mr;const{viewMethods:Vr=[],changeMethods:Gr=[],abi:Ur}=Lr;let Qr=Vr.map(fn=>({name:fn,abi:null})),vn=Gr.map(fn=>({name:fn,abi:null}));if(Ur){if(Qr.length>0||vn.length>0)throw new me.ConflictingOptions;Qr=Ur.body.functions.filter(fn=>fn.kind===ye.AbiFunctionKind.View).map(fn=>({name:fn.name,abi:fn})),vn=Ur.body.functions.filter(fn=>fn.kind===ye.AbiFunctionKind.Call).map(fn=>({name:fn.name,abi:fn}))}const Yt=Br();Qr.forEach(({name:fn,abi:Xt})=>{Object.defineProperty(this,fn,{writable:!1,enumerable:!0,value:Ee(fn,(Qt={},Kr={},...be)=>k(this,void 0,void 0,function*(){if(be.length||!(Pr(Qt)||$r(Qt))||!Pr(Kr))throw new ce.PositionalArgsError;return Xt&&cr(Qt,Xt,Yt,Ur),this.account.viewFunction(Object.assign({contractId:this.contractId,methodName:fn,args:Qt},Kr))}))})}),vn.forEach(({name:fn,abi:Xt})=>{Object.defineProperty(this,fn,{writable:!1,enumerable:!0,value:Ee(fn,(...Qt)=>k(this,void 0,void 0,function*(){if(Qt.length&&(Qt.length>3||!(Pr(Qt[0])||$r(Qt[0]))))throw new ce.PositionalArgsError;return(Qt.length>1||!(Qt[0]&&Qt[0].args))&&((0,pe.default)("contract.methodName(args, gas, amount)")("use `contract.methodName({ args, gas?, amount?, callbackUrl?, meta? })` instead"),Qt[0]={args:Qt[0],gas:Qt[1],amount:Qt[2]}),Xt&&cr(Qt[0].args,Xt,Yt,Ur),this._changeMethod(Object.assign({methodName:fn},Qt[0]))}))})})}_changeMethod({args:jr,methodName:Mr,gas:Lr,amount:Vr,meta:Gr,callbackUrl:Ur}){return k(this,void 0,void 0,function*(){ur({gas:Lr,amount:Vr});const Qr=yield this.account.functionCall({contractId:this.contractId,methodName:Mr,args:jr,gas:Lr,attachedDeposit:Vr,walletMeta:Gr,walletCallbackUrl:Ur});return(0,ae.getTransactionLastResult)(Qr)})}};v.Contract=Or;function ur(jr){const Mr="number, decimal string or BN";for(const Lr of Object.keys(jr)){const Vr=jr[Lr];if(Vr&&!ve.default.isBN(Vr)&&isNaN(Vr))throw new ce.ArgumentTypeError(Lr,Mr,Vr)}}}}),require_lib11$1=__commonJS({"node_modules/@near-js/accounts/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MultisigStateStatus=v.MultisigDeleteRequestRejectionError=v.UnsupportedSerializationError=v.UnknownArgumentError=v.ConflictingOptions=v.ArgumentSchemaError=v.Contract=v.MULTISIG_CONFIRM_METHODS=v.MULTISIG_CHANGE_METHODS=v.MULTISIG_DEPOSIT=v.MULTISIG_GAS=v.MULTISIG_ALLOWANCE=v.MULTISIG_STORAGE_KEY=v.Connection=v.AccountMultisig=v.UrlAccountCreator=v.LocalAccountCreator=v.AccountCreator=v.Account2FA=v.Account=void 0;var k=require_account$3();Object.defineProperty(v,"Account",{enumerable:!0,get:function(){return k.Account}});var ie=require_account_2fa$1();Object.defineProperty(v,"Account2FA",{enumerable:!0,get:function(){return ie.Account2FA}});var ae=require_account_creator$2();Object.defineProperty(v,"AccountCreator",{enumerable:!0,get:function(){return ae.AccountCreator}}),Object.defineProperty(v,"LocalAccountCreator",{enumerable:!0,get:function(){return ae.LocalAccountCreator}}),Object.defineProperty(v,"UrlAccountCreator",{enumerable:!0,get:function(){return ae.UrlAccountCreator}});var ce=require_account_multisig$2();Object.defineProperty(v,"AccountMultisig",{enumerable:!0,get:function(){return ce.AccountMultisig}});var fe=require_connection$2();Object.defineProperty(v,"Connection",{enumerable:!0,get:function(){return fe.Connection}});var le=require_constants3$2();Object.defineProperty(v,"MULTISIG_STORAGE_KEY",{enumerable:!0,get:function(){return le.MULTISIG_STORAGE_KEY}}),Object.defineProperty(v,"MULTISIG_ALLOWANCE",{enumerable:!0,get:function(){return le.MULTISIG_ALLOWANCE}}),Object.defineProperty(v,"MULTISIG_GAS",{enumerable:!0,get:function(){return le.MULTISIG_GAS}}),Object.defineProperty(v,"MULTISIG_DEPOSIT",{enumerable:!0,get:function(){return le.MULTISIG_DEPOSIT}}),Object.defineProperty(v,"MULTISIG_CHANGE_METHODS",{enumerable:!0,get:function(){return le.MULTISIG_CHANGE_METHODS}}),Object.defineProperty(v,"MULTISIG_CONFIRM_METHODS",{enumerable:!0,get:function(){return le.MULTISIG_CONFIRM_METHODS}});var ve=require_contract$2();Object.defineProperty(v,"Contract",{enumerable:!0,get:function(){return ve.Contract}});var pe=require_errors5$1();Object.defineProperty(v,"ArgumentSchemaError",{enumerable:!0,get:function(){return pe.ArgumentSchemaError}}),Object.defineProperty(v,"ConflictingOptions",{enumerable:!0,get:function(){return pe.ConflictingOptions}}),Object.defineProperty(v,"UnknownArgumentError",{enumerable:!0,get:function(){return pe.UnknownArgumentError}}),Object.defineProperty(v,"UnsupportedSerializationError",{enumerable:!0,get:function(){return pe.UnsupportedSerializationError}});var ye=require_types$5();Object.defineProperty(v,"MultisigDeleteRequestRejectionError",{enumerable:!0,get:function(){return ye.MultisigDeleteRequestRejectionError}}),Object.defineProperty(v,"MultisigStateStatus",{enumerable:!0,get:function(){return ye.MultisigStateStatus}})}}),require_errors6$1=__commonJS({"node_modules/near-api-js/lib/utils/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.logWarning=v.TypedError=v.PositionalArgsError=v.ErrorContext=v.ArgumentTypeError=v.UnsupportedSerializationError=v.UnknownArgumentError=v.ConflictingOptions=v.ArgumentSchemaError=void 0;var k=require_lib11$1();Object.defineProperty(v,"ArgumentSchemaError",{enumerable:!0,get:function(){return k.ArgumentSchemaError}}),Object.defineProperty(v,"ConflictingOptions",{enumerable:!0,get:function(){return k.ConflictingOptions}}),Object.defineProperty(v,"UnknownArgumentError",{enumerable:!0,get:function(){return k.UnknownArgumentError}}),Object.defineProperty(v,"UnsupportedSerializationError",{enumerable:!0,get:function(){return k.UnsupportedSerializationError}});var ie=require_lib2$1();Object.defineProperty(v,"ArgumentTypeError",{enumerable:!0,get:function(){return ie.ArgumentTypeError}}),Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return ie.ErrorContext}}),Object.defineProperty(v,"PositionalArgsError",{enumerable:!0,get:function(){return ie.PositionalArgsError}}),Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return ie.TypedError}});var ae=require_lib6$1();Object.defineProperty(v,"logWarning",{enumerable:!0,get:function(){return ae.logWarning}})}}),require_utils$6=__commonJS({"node_modules/near-api-js/lib/utils/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(cr,Br,$r,Pr){Pr===void 0&&(Pr=$r);var Or=Object.getOwnPropertyDescriptor(Br,$r);(!Or||("get"in Or?!Br.__esModule:Or.writable||Or.configurable))&&(Or={enumerable:!0,get:function(){return Br[$r]}}),Object.defineProperty(cr,Pr,Or)}:function(cr,Br,$r,Pr){Pr===void 0&&(Pr=$r),cr[Pr]=Br[$r]}),ie=v&&v.__setModuleDefault||(Object.create?function(cr,Br){Object.defineProperty(cr,"default",{enumerable:!0,value:Br})}:function(cr,Br){cr.default=Br}),ae=v&&v.__importStar||function(cr){if(cr&&cr.__esModule)return cr;var Br={};if(cr!=null)for(var $r in cr)$r!=="default"&&Object.prototype.hasOwnProperty.call(cr,$r)&&k(Br,cr,$r);return ie(Br,cr),Br};Object.defineProperty(v,"__esModule",{value:!0}),v.logWarning=v.rpc_errors=v.KeyPairEd25519=v.KeyPair=v.PublicKey=v.format=v.enums=v.web=v.serialize=v.key_pair=void 0;var ce=ae(require_key_pair2$1());v.key_pair=ce;var fe=ae(require_serialize$2());v.serialize=fe;var le=ae(require_web$2());v.web=le;var ve=ae(require_enums$2());v.enums=ve;var pe=ae(require_format2$1());v.format=pe;var ye=ae(require_rpc_errors2$1());v.rpc_errors=ye;var me=require_key_pair2$1();Object.defineProperty(v,"PublicKey",{enumerable:!0,get:function(){return me.PublicKey}}),Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return me.KeyPair}}),Object.defineProperty(v,"KeyPairEd25519",{enumerable:!0,get:function(){return me.KeyPairEd25519}});var Ee=require_errors6$1();Object.defineProperty(v,"logWarning",{enumerable:!0,get:function(){return Ee.logWarning}})}}),require_transaction$2=__commonJS({"node_modules/near-api-js/lib/transaction.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.transfer=v.stake=v.functionCallAccessKey=v.functionCall=v.fullAccessKey=v.deployContract=v.deleteKey=v.deleteAccount=v.createAccount=v.addKey=v.encodeDelegateAction=v.encodeSignedDelegate=v.Transaction=v.SignedTransaction=v.Signature=v.signTransaction=v.createTransaction=v.SCHEMA=v.Transfer=v.Stake=v.FunctionCallPermission=v.FunctionCall=v.FullAccessPermission=v.DeployContract=v.DeleteKey=v.DeleteAccount=v.CreateAccount=v.AddKey=v.AccessKeyPermission=v.AccessKey=v.Action=v.stringifyJsonOrBytes=void 0;var k=require_lib7$1();Object.defineProperty(v,"stringifyJsonOrBytes",{enumerable:!0,get:function(){return k.stringifyJsonOrBytes}}),Object.defineProperty(v,"Action",{enumerable:!0,get:function(){return k.Action}}),Object.defineProperty(v,"AccessKey",{enumerable:!0,get:function(){return k.AccessKey}}),Object.defineProperty(v,"AccessKeyPermission",{enumerable:!0,get:function(){return k.AccessKeyPermission}}),Object.defineProperty(v,"AddKey",{enumerable:!0,get:function(){return k.AddKey}}),Object.defineProperty(v,"CreateAccount",{enumerable:!0,get:function(){return k.CreateAccount}}),Object.defineProperty(v,"DeleteAccount",{enumerable:!0,get:function(){return k.DeleteAccount}}),Object.defineProperty(v,"DeleteKey",{enumerable:!0,get:function(){return k.DeleteKey}}),Object.defineProperty(v,"DeployContract",{enumerable:!0,get:function(){return k.DeployContract}}),Object.defineProperty(v,"FullAccessPermission",{enumerable:!0,get:function(){return k.FullAccessPermission}}),Object.defineProperty(v,"FunctionCall",{enumerable:!0,get:function(){return k.FunctionCall}}),Object.defineProperty(v,"FunctionCallPermission",{enumerable:!0,get:function(){return k.FunctionCallPermission}}),Object.defineProperty(v,"Stake",{enumerable:!0,get:function(){return k.Stake}}),Object.defineProperty(v,"Transfer",{enumerable:!0,get:function(){return k.Transfer}}),Object.defineProperty(v,"SCHEMA",{enumerable:!0,get:function(){return k.SCHEMA}}),Object.defineProperty(v,"createTransaction",{enumerable:!0,get:function(){return k.createTransaction}}),Object.defineProperty(v,"signTransaction",{enumerable:!0,get:function(){return k.signTransaction}}),Object.defineProperty(v,"Signature",{enumerable:!0,get:function(){return k.Signature}}),Object.defineProperty(v,"SignedTransaction",{enumerable:!0,get:function(){return k.SignedTransaction}}),Object.defineProperty(v,"Transaction",{enumerable:!0,get:function(){return k.Transaction}}),Object.defineProperty(v,"encodeSignedDelegate",{enumerable:!0,get:function(){return k.encodeSignedDelegate}}),Object.defineProperty(v,"encodeDelegateAction",{enumerable:!0,get:function(){return k.encodeDelegateAction}});var ie=require_lib7$1(),ae=(Br,$r)=>ie.actionCreators.addKey(Br,$r);v.addKey=ae;var ce=()=>ie.actionCreators.createAccount();v.createAccount=ce;var fe=Br=>ie.actionCreators.deleteAccount(Br);v.deleteAccount=fe;var le=Br=>ie.actionCreators.deleteKey(Br);v.deleteKey=le;var ve=Br=>ie.actionCreators.deployContract(Br);v.deployContract=ve;var pe=()=>ie.actionCreators.fullAccessKey();v.fullAccessKey=pe;var ye=(Br,$r,Pr,Or,ur,jr)=>ie.actionCreators.functionCall(Br,$r,Pr,Or,ur,jr);v.functionCall=ye;var me=(Br,$r,Pr)=>ie.actionCreators.functionCallAccessKey(Br,$r,Pr);v.functionCallAccessKey=me;var Ee=(Br,$r)=>ie.actionCreators.stake(Br,$r);v.stake=Ee;var cr=Br=>ie.actionCreators.transfer(Br);v.transfer=cr}}),require_validators2$1=__commonJS({"node_modules/near-api-js/lib/validators.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.findSeatPrice=v.diffEpochValidators=void 0;var k=require_lib6$1();Object.defineProperty(v,"diffEpochValidators",{enumerable:!0,get:function(){return k.diffEpochValidators}}),Object.defineProperty(v,"findSeatPrice",{enumerable:!0,get:function(){return k.findSeatPrice}})}}),require_account2$1=__commonJS({"node_modules/near-api-js/lib/account.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Account=void 0;var k=require_lib11$1();Object.defineProperty(v,"Account",{enumerable:!0,get:function(){return k.Account}})}}),require_account_multisig2$1=__commonJS({"node_modules/near-api-js/lib/account_multisig.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MultisigStateStatus=v.MultisigDeleteRequestRejectionError=v.MULTISIG_CONFIRM_METHODS=v.MULTISIG_CHANGE_METHODS=v.MULTISIG_DEPOSIT=v.MULTISIG_GAS=v.MULTISIG_ALLOWANCE=v.MULTISIG_STORAGE_KEY=v.AccountMultisig=v.Account2FA=void 0;var k=require_lib11$1();Object.defineProperty(v,"Account2FA",{enumerable:!0,get:function(){return k.Account2FA}}),Object.defineProperty(v,"AccountMultisig",{enumerable:!0,get:function(){return k.AccountMultisig}}),Object.defineProperty(v,"MULTISIG_STORAGE_KEY",{enumerable:!0,get:function(){return k.MULTISIG_STORAGE_KEY}}),Object.defineProperty(v,"MULTISIG_ALLOWANCE",{enumerable:!0,get:function(){return k.MULTISIG_ALLOWANCE}}),Object.defineProperty(v,"MULTISIG_GAS",{enumerable:!0,get:function(){return k.MULTISIG_GAS}}),Object.defineProperty(v,"MULTISIG_DEPOSIT",{enumerable:!0,get:function(){return k.MULTISIG_DEPOSIT}}),Object.defineProperty(v,"MULTISIG_CHANGE_METHODS",{enumerable:!0,get:function(){return k.MULTISIG_CHANGE_METHODS}}),Object.defineProperty(v,"MULTISIG_CONFIRM_METHODS",{enumerable:!0,get:function(){return k.MULTISIG_CONFIRM_METHODS}}),Object.defineProperty(v,"MultisigDeleteRequestRejectionError",{enumerable:!0,get:function(){return k.MultisigDeleteRequestRejectionError}}),Object.defineProperty(v,"MultisigStateStatus",{enumerable:!0,get:function(){return k.MultisigStateStatus}})}}),require_account_creator2$1=__commonJS({"node_modules/near-api-js/lib/account_creator.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.UrlAccountCreator=v.LocalAccountCreator=v.AccountCreator=void 0;var k=require_lib11$1();Object.defineProperty(v,"AccountCreator",{enumerable:!0,get:function(){return k.AccountCreator}}),Object.defineProperty(v,"LocalAccountCreator",{enumerable:!0,get:function(){return k.LocalAccountCreator}}),Object.defineProperty(v,"UrlAccountCreator",{enumerable:!0,get:function(){return k.UrlAccountCreator}})}}),require_connection2$1=__commonJS({"node_modules/near-api-js/lib/connection.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Connection=void 0;var k=require_lib11$1();Object.defineProperty(v,"Connection",{enumerable:!0,get:function(){return k.Connection}})}}),require_signer2$1=__commonJS({"node_modules/near-api-js/lib/signer.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signer=v.InMemorySigner=void 0;var k=require_lib9$1();Object.defineProperty(v,"InMemorySigner",{enumerable:!0,get:function(){return k.InMemorySigner}}),Object.defineProperty(v,"Signer",{enumerable:!0,get:function(){return k.Signer}})}}),require_contract2$1=__commonJS({"node_modules/near-api-js/lib/contract.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Contract=void 0;var k=require_lib11$1();Object.defineProperty(v,"Contract",{enumerable:!0,get:function(){return k.Contract}})}}),require_near$2=__commonJS({"node_modules/@near-js/wallet-account/lib/near.js"(v){var k=v&&v.__awaiter||function(le,ve,pe,ye){function me(Ee){return Ee instanceof pe?Ee:new pe(function(cr){cr(Ee)})}return new(pe||(pe=Promise))(function(Ee,cr){function Br(Or){try{Pr(ye.next(Or))}catch(ur){cr(ur)}}function $r(Or){try{Pr(ye.throw(Or))}catch(ur){cr(ur)}}function Pr(Or){Or.done?Ee(Or.value):me(Or.value).then(Br,$r)}Pr((ye=ye.apply(le,ve||[])).next())})},ie=v&&v.__importDefault||function(le){return le&&le.__esModule?le:{default:le}};Object.defineProperty(v,"__esModule",{value:!0}),v.Near=void 0;var ae=require_lib11$1(),ce=ie(require_bn$2()),fe=class{constructor(le){var ve;if(this.config=le,this.connection=ae.Connection.fromConfig({networkId:le.networkId,provider:{type:"JsonRpcProvider",args:{url:le.nodeUrl,headers:le.headers}},signer:le.signer||{type:"InMemorySigner",keyStore:le.keyStore||((ve=le.deps)===null||ve===void 0?void 0:ve.keyStore)},jsvmAccountId:le.jsvmAccountId||`jsvm.${le.networkId}`}),le.masterAccount){const pe=le.initialBalance?new ce.default(le.initialBalance):new ce.default("500000000000000000000000000");this.accountCreator=new ae.LocalAccountCreator(new ae.Account(this.connection,le.masterAccount),pe)}else le.helperUrl?this.accountCreator=new ae.UrlAccountCreator(this.connection,le.helperUrl):this.accountCreator=null}account(le){return k(this,void 0,void 0,function*(){return new ae.Account(this.connection,le)})}createAccount(le,ve){return k(this,void 0,void 0,function*(){if(!this.accountCreator)throw new Error("Must specify account creator, either via masterAccount or helperUrl configuration settings.");return yield this.accountCreator.createAccount(le,ve),new ae.Account(this.connection,le)})}};v.Near=fe}}),require_wallet_account$2=__commonJS({"node_modules/@near-js/wallet-account/lib/wallet_account.js"(v){var k=v&&v.__awaiter||function($r,Pr,Or,ur){function jr(Mr){return Mr instanceof Or?Mr:new Or(function(Lr){Lr(Mr)})}return new(Or||(Or=Promise))(function(Mr,Lr){function Vr(Qr){try{Ur(ur.next(Qr))}catch(vn){Lr(vn)}}function Gr(Qr){try{Ur(ur.throw(Qr))}catch(vn){Lr(vn)}}function Ur(Qr){Qr.done?Mr(Qr.value):jr(Qr.value).then(Vr,Gr)}Ur((ur=ur.apply($r,Pr||[])).next())})},ie=v&&v.__importDefault||function($r){return $r&&$r.__esModule?$r:{default:$r}};Object.defineProperty(v,"__esModule",{value:!0}),v.ConnectedWalletAccount=v.WalletConnection=void 0;var ae=require_lib11$1(),ce=require_lib3$1(),fe=require_lib7$1(),le=ie(require_bn$2()),ve=require_lib$1(),pe="/login/",ye="add_request_and_confirm",me="_wallet_auth_key",Ee="pending_key",cr=class{constructor($r,Pr){if(typeof Pr!="string")throw new Error("Please define a clear appKeyPrefix for this WalletConnection instance as the second argument to the constructor");if(typeof window>"u")return new Proxy(this,{get(jr,Mr){return Mr==="isSignedIn"?()=>!1:Mr==="getAccountId"?()=>"":jr[Mr]&&typeof jr[Mr]=="function"?()=>{throw new Error("No window found in context, please ensure you are using WalletConnection on the browser")}:jr[Mr]}});this._near=$r;const Or=Pr+me,ur=JSON.parse(window.localStorage.getItem(Or));this._networkId=$r.config.networkId,this._walletBaseUrl=$r.config.walletUrl,Pr=Pr||$r.config.contractName||"default",this._keyStore=$r.connection.signer.keyStore,this._authData=ur||{allKeys:[]},this._authDataKey=Or,this.isSignedIn()||(this._completeSignInPromise=this._completeSignInWithAccessKey())}isSignedIn(){return!!this._authData.accountId}isSignedInAsync(){return k(this,void 0,void 0,function*(){return this._completeSignInPromise?(yield this._completeSignInPromise,this.isSignedIn()):this.isSignedIn()})}getAccountId(){return this._authData.accountId||""}requestSignIn({contractId:$r,methodNames:Pr,successUrl:Or,failureUrl:ur}){return k(this,void 0,void 0,function*(){const jr=new URL(window.location.href),Mr=new URL(this._walletBaseUrl+pe);if(Mr.searchParams.set("success_url",Or||jr.href),Mr.searchParams.set("failure_url",ur||jr.href),$r){yield(yield this._near.account($r)).state(),Mr.searchParams.set("contract_id",$r);const Vr=ce.KeyPair.fromRandom("ed25519");Mr.searchParams.set("public_key",Vr.getPublicKey().toString()),yield this._keyStore.setKey(this._networkId,Ee+Vr.getPublicKey(),Vr)}Pr&&Pr.forEach(Lr=>{Mr.searchParams.append("methodNames",Lr)}),window.location.assign(Mr.toString())})}requestSignTransactions({transactions:$r,meta:Pr,callbackUrl:Or}){return k(this,void 0,void 0,function*(){const ur=new URL(window.location.href),jr=new URL("sign",this._walletBaseUrl);jr.searchParams.set("transactions",$r.map(Mr=>(0,ve.serialize)(fe.SCHEMA,Mr)).map(Mr=>Buffer.from(Mr).toString("base64")).join(",")),jr.searchParams.set("callbackUrl",Or||ur.href),Pr&&jr.searchParams.set("meta",Pr),window.location.assign(jr.toString())})}_completeSignInWithAccessKey(){return k(this,void 0,void 0,function*(){const $r=new URL(window.location.href),Pr=$r.searchParams.get("public_key")||"",Or=($r.searchParams.get("all_keys")||"").split(","),ur=$r.searchParams.get("account_id")||"";if(ur){const jr={accountId:ur,allKeys:Or};window.localStorage.setItem(this._authDataKey,JSON.stringify(jr)),Pr&&(yield this._moveKeyFromTempToPermanent(ur,Pr)),this._authData=jr}$r.searchParams.delete("public_key"),$r.searchParams.delete("all_keys"),$r.searchParams.delete("account_id"),$r.searchParams.delete("meta"),$r.searchParams.delete("transactionHashes"),window.history.replaceState({},document.title,$r.toString())})}_moveKeyFromTempToPermanent($r,Pr){return k(this,void 0,void 0,function*(){const Or=yield this._keyStore.getKey(this._networkId,Ee+Pr);yield this._keyStore.setKey(this._networkId,$r,Or),yield this._keyStore.removeKey(this._networkId,Ee+Pr)})}signOut(){this._authData={},window.localStorage.removeItem(this._authDataKey)}account(){return this._connectedAccount||(this._connectedAccount=new Br(this,this._near.connection,this._authData.accountId)),this._connectedAccount}};v.WalletConnection=cr;var Br=class extends ae.Account{constructor($r,Pr,Or){super(Pr,Or),this.walletConnection=$r}signAndSendTransaction({receiverId:$r,actions:Pr,walletMeta:Or,walletCallbackUrl:ur=window.location.href}){const jr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const Mr=yield this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);let Lr=yield this.accessKeyForTransaction($r,Pr,Mr);if(!Lr)throw new Error(`Cannot find matching key for transaction sent to ${$r}`);if(Mr&&Mr.toString()===Lr.public_key)try{return yield jr.signAndSendTransaction.call(this,{receiverId:$r,actions:Pr})}catch(Yt){if(Yt.type==="NotEnoughAllowance")Lr=yield this.accessKeyForTransaction($r,Pr);else throw Yt}const Vr=yield this.connection.provider.block({finality:"final"}),Gr=(0,ve.baseDecode)(Vr.header.hash),Ur=ce.PublicKey.from(Lr.public_key),Qr=Lr.access_key.nonce.add(new le.default(1)),vn=(0,fe.createTransaction)(this.accountId,Ur,$r,Qr,Pr,Gr);return yield this.walletConnection.requestSignTransactions({transactions:[vn],meta:Or,callbackUrl:ur}),new Promise((Yt,fn)=>{setTimeout(()=>{fn(new Error("Failed to redirect to sign transaction"))},1e3)})})}accessKeyMatchesTransaction($r,Pr,Or){return k(this,void 0,void 0,function*(){const{access_key:{permission:ur}}=$r;if(ur==="FullAccess")return!0;if(ur.FunctionCall){const{receiver_id:jr,method_names:Mr}=ur.FunctionCall;if(jr===this.accountId&&Mr.includes(ye))return!0;if(jr===Pr){if(Or.length!==1)return!1;const[{functionCall:Lr}]=Or;return Lr&&(!Lr.deposit||Lr.deposit.toString()==="0")&&(Mr.length===0||Mr.includes(Lr.methodName))}}return!1})}accessKeyForTransaction($r,Pr,Or){return k(this,void 0,void 0,function*(){const ur=yield this.getAccessKeys();if(Or){const Mr=ur.find(Lr=>Lr.public_key.toString()===Or.toString());if(Mr&&(yield this.accessKeyMatchesTransaction(Mr,$r,Pr)))return Mr}const jr=this.walletConnection._authData.allKeys;for(const Mr of ur)if(jr.indexOf(Mr.public_key)!==-1&&(yield this.accessKeyMatchesTransaction(Mr,$r,Pr)))return Mr;return null})}};v.ConnectedWalletAccount=Br}}),require_lib12$1=__commonJS({"node_modules/@near-js/wallet-account/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.WalletConnection=v.ConnectedWalletAccount=v.Near=void 0;var k=require_near$2();Object.defineProperty(v,"Near",{enumerable:!0,get:function(){return k.Near}});var ie=require_wallet_account$2();Object.defineProperty(v,"ConnectedWalletAccount",{enumerable:!0,get:function(){return ie.ConnectedWalletAccount}}),Object.defineProperty(v,"WalletConnection",{enumerable:!0,get:function(){return ie.WalletConnection}})}}),require_near2$1=__commonJS({"node_modules/near-api-js/lib/near.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Near=void 0;var k=require_lib12$1();Object.defineProperty(v,"Near",{enumerable:!0,get:function(){return k.Near}})}}),require_wallet_account2$1=__commonJS({"node_modules/near-api-js/lib/wallet-account.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.WalletConnection=v.ConnectedWalletAccount=void 0;var k=require_lib12$1();Object.defineProperty(v,"ConnectedWalletAccount",{enumerable:!0,get:function(){return k.ConnectedWalletAccount}}),Object.defineProperty(v,"WalletConnection",{enumerable:!0,get:function(){return k.WalletConnection}})}}),require_common_index$2=__commonJS({"node_modules/near-api-js/lib/common-index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ur,jr,Mr,Lr){Lr===void 0&&(Lr=Mr);var Vr=Object.getOwnPropertyDescriptor(jr,Mr);(!Vr||("get"in Vr?!jr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return jr[Mr]}}),Object.defineProperty(ur,Lr,Vr)}:function(ur,jr,Mr,Lr){Lr===void 0&&(Lr=Mr),ur[Lr]=jr[Mr]}),ie=v&&v.__setModuleDefault||(Object.create?function(ur,jr){Object.defineProperty(ur,"default",{enumerable:!0,value:jr})}:function(ur,jr){ur.default=jr}),ae=v&&v.__importStar||function(ur){if(ur&&ur.__esModule)return ur;var jr={};if(ur!=null)for(var Mr in ur)Mr!=="default"&&Object.prototype.hasOwnProperty.call(ur,Mr)&&k(jr,ur,Mr);return ie(jr,ur),jr};Object.defineProperty(v,"__esModule",{value:!0}),v.WalletConnection=v.ConnectedWalletAccount=v.Near=v.KeyPair=v.Signer=v.InMemorySigner=v.Contract=v.Connection=v.Account=v.multisig=v.validators=v.transactions=v.utils=v.providers=v.accountCreator=void 0;var ce=ae(require_providers$2());v.providers=ce;var fe=ae(require_utils$6());v.utils=fe;var le=ae(require_transaction$2());v.transactions=le;var ve=ae(require_validators2$1());v.validators=ve;var pe=require_account2$1();Object.defineProperty(v,"Account",{enumerable:!0,get:function(){return pe.Account}});var ye=ae(require_account_multisig2$1());v.multisig=ye;var me=ae(require_account_creator2$1());v.accountCreator=me;var Ee=require_connection2$1();Object.defineProperty(v,"Connection",{enumerable:!0,get:function(){return Ee.Connection}});var cr=require_signer2$1();Object.defineProperty(v,"Signer",{enumerable:!0,get:function(){return cr.Signer}}),Object.defineProperty(v,"InMemorySigner",{enumerable:!0,get:function(){return cr.InMemorySigner}});var Br=require_contract2$1();Object.defineProperty(v,"Contract",{enumerable:!0,get:function(){return Br.Contract}});var $r=require_key_pair2$1();Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return $r.KeyPair}});var Pr=require_near2$1();Object.defineProperty(v,"Near",{enumerable:!0,get:function(){return Pr.Near}});var Or=require_wallet_account2$1();Object.defineProperty(v,"ConnectedWalletAccount",{enumerable:!0,get:function(){return Or.ConnectedWalletAccount}}),Object.defineProperty(v,"WalletConnection",{enumerable:!0,get:function(){return Or.WalletConnection}})}}),require_browser_connect$2=__commonJS({"node_modules/near-api-js/lib/browser-connect.js"(v){var k=v&&v.__awaiter||function(ce,fe,le,ve){function pe(ye){return ye instanceof le?ye:new le(function(me){me(ye)})}return new(le||(le=Promise))(function(ye,me){function Ee($r){try{Br(ve.next($r))}catch(Pr){me(Pr)}}function cr($r){try{Br(ve.throw($r))}catch(Pr){me(Pr)}}function Br($r){$r.done?ye($r.value):pe($r.value).then(Ee,cr)}Br((ve=ve.apply(ce,fe||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.connect=void 0;var ie=require_near2$1();function ae(ce){return k(this,void 0,void 0,function*(){return new ie.Near(ce)})}v.connect=ae}}),require_CapabilityDetector$1=__commonJS({"node_modules/capability/lib/CapabilityDetector.js"(v,k){var ie=function(){this.tests={},this.cache={}};ie.prototype={constructor:ie,define:function(ae,ce){if(typeof ae!="string"||!(ce instanceof Function))throw new Error("Invalid capability definition.");if(this.tests[ae])throw new Error('Duplicated capability definition by "'+ae+'".');this.tests[ae]=ce},check:function(ae){if(!this.test(ae))throw new Error('The current environment does not support "'+ae+'", therefore we cannot continue.')},test:function(ae){if(this.cache[ae]!==void 0)return this.cache[ae];if(!this.tests[ae])throw new Error('Unknown capability with name "'+ae+'".');var ce=this.tests[ae];return this.cache[ae]=!!ce(),this.cache[ae]}},k.exports=ie}}),require_lib13$1=__commonJS({"node_modules/capability/lib/index.js"(v,k){var ie=require_CapabilityDetector$1(),ae=new ie,ce=function(fe){return ae.test(fe)};ce.define=function(fe,le){ae.define(fe,le)},ce.check=function(fe){ae.check(fe)},ce.test=ce,k.exports=ce}}),require_definitions$1=__commonJS({"node_modules/capability/lib/definitions.js"(){var v=require_lib13$1(),k=v.define,ie=v.test;k("strict mode",function(){return this===void 0}),k("arguments.callee.caller",function(){try{return function(){return arguments.callee.caller}()===arguments.callee}catch{return!1}}),k("es5",function(){return ie("Array.prototype.forEach")&&ie("Array.prototype.map")&&ie("Function.prototype.bind")&&ie("Object.create")&&ie("Object.defineProperties")&&ie("Object.defineProperty")&&ie("Object.prototype.hasOwnProperty")}),k("Array.prototype.forEach",function(){return Array.prototype.forEach}),k("Array.prototype.map",function(){return Array.prototype.map}),k("Function.prototype.bind",function(){return Function.prototype.bind}),k("Object.create",function(){return Object.create}),k("Object.defineProperties",function(){return Object.defineProperties}),k("Object.defineProperty",function(){return Object.defineProperty}),k("Object.prototype.hasOwnProperty",function(){return Object.prototype.hasOwnProperty}),k("Error.captureStackTrace",function(){return Error.captureStackTrace}),k("Error.prototype.stack",function(){try{throw new Error}catch(ae){return ae.stack||ae.stacktrace}})}}),require_capability$1=__commonJS({"node_modules/capability/index.js"(v,k){require_definitions$1(),k.exports=require_lib13$1()}}),require_es5$1=__commonJS({"node_modules/capability/es5.js"(){require_capability$1().check("es5")}}),require_prepareStackTrace$1=__commonJS({"node_modules/error-polyfill/lib/prepareStackTrace.js"(v,k){var ie=function(ae,ce,fe){var le="";if(le+=ae.name||"Error",le+=": "+(ae.message||""),fe instanceof Array)for(var ve in fe){var pe=fe[ve];le+=` + deps: ${me}}`};var ce={keyword:"dependencies",type:"object",schemaType:"object",error:v.error,code(pe){const[ye,me]=fe(pe);le(pe,ye),ve(pe,me)}};function fe({schema:pe}){const ye={},me={};for(const Ee in pe){if(Ee==="__proto__")continue;const cr=Array.isArray(pe[Ee])?ye:me;cr[Ee]=pe[Ee]}return[ye,me]}function le(pe,ye=pe.schema){const{gen:me,data:Ee,it:cr}=pe;if(Object.keys(ye).length===0)return;const Br=me.let("missing");for(const $r in ye){const Pr=ye[$r];if(Pr.length===0)continue;const Ar=(0,ae.propertyInData)(me,Ee,$r,cr.opts.ownProperties);pe.setParams({property:$r,depsCount:Pr.length,deps:Pr.join(", ")}),cr.allErrors?me.if(Ar,()=>{for(const ur of Pr)(0,ae.checkReportMissingProp)(pe,ur)}):(me.if((0,k._)`${Ar} && (${(0,ae.checkMissingProp)(pe,Pr,Br)})`),(0,ae.reportMissingProp)(pe,Br),me.else())}}v.validatePropertyDeps=le;function ve(pe,ye=pe.schema){const{gen:me,data:Ee,keyword:cr,it:Br}=pe,$r=me.name("valid");for(const Pr in ye)(0,ie.alwaysValidSchema)(Br,ye[Pr])||(me.if((0,ae.propertyInData)(me,Ee,Pr,Br.opts.ownProperties),()=>{const Ar=pe.subschema({keyword:cr,schemaProp:Pr},$r);pe.mergeValidEvaluated(Ar,$r)},()=>me.var($r,!0)),pe.ok($r))}v.validateSchemaDeps=ve,v.default=ce}}),require_propertyNames$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_util$2(),ae={message:"property name must be valid",params:({params:fe})=>(0,k._)`{propertyName: ${fe.propertyName}}`},ce={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:ae,code(fe){const{gen:le,schema:ve,data:pe,it:ye}=fe;if((0,ie.alwaysValidSchema)(ye,ve))return;const me=le.name("valid");le.forIn("key",pe,Ee=>{fe.setParams({propertyName:Ee}),fe.subschema({keyword:"propertyNames",data:Ee,dataTypes:["string"],propertyName:Ee,compositeRule:!0},me),le.if((0,k.not)(me),()=>{fe.error(!0),ye.allErrors||le.break()})}),fe.ok(me)}};v.default=ce}}),require_additionalProperties$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2$1(),ie=require_codegen$1(),ae=require_names$1(),ce=require_util$2(),fe={message:"must NOT have additional properties",params:({params:ve})=>(0,ie._)`{additionalProperty: ${ve.additionalProperty}}`},le={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:fe,code(ve){const{gen:pe,schema:ye,parentSchema:me,data:Ee,errsCount:cr,it:Br}=ve;if(!cr)throw new Error("ajv implementation error");const{allErrors:$r,opts:Pr}=Br;if(Br.props=!0,Pr.removeAdditional!=="all"&&(0,ce.alwaysValidSchema)(Br,ye))return;const Ar=(0,k.allSchemaProperties)(me.properties),ur=(0,k.allSchemaProperties)(me.patternProperties);jr(),ve.ok((0,ie._)`${cr} === ${ae.default.errors}`);function jr(){pe.forIn("key",Ee,Ur=>{!Ar.length&&!ur.length?Vr(Ur):pe.if(Mr(Ur),()=>Vr(Ur))})}function Mr(Ur){let Qr;if(Ar.length>8){const hn=(0,ce.schemaRefOrVal)(Br,me.properties,"properties");Qr=(0,k.isOwnProperty)(pe,hn,Ur)}else Ar.length?Qr=(0,ie.or)(...Ar.map(hn=>(0,ie._)`${Ur} === ${hn}`)):Qr=ie.nil;return ur.length&&(Qr=(0,ie.or)(Qr,...ur.map(hn=>(0,ie._)`${(0,k.usePattern)(ve,hn)}.test(${Ur})`))),(0,ie.not)(Qr)}function Lr(Ur){pe.code((0,ie._)`delete ${Ee}[${Ur}]`)}function Vr(Ur){if(Pr.removeAdditional==="all"||Pr.removeAdditional&&ye===!1){Lr(Ur);return}if(ye===!1){ve.setParams({additionalProperty:Ur}),ve.error(),$r||pe.break();return}if(typeof ye=="object"&&!(0,ce.alwaysValidSchema)(Br,ye)){const Qr=pe.name("valid");Pr.removeAdditional==="failing"?(Gr(Ur,Qr,!1),pe.if((0,ie.not)(Qr),()=>{ve.reset(),Lr(Ur)})):(Gr(Ur,Qr),$r||pe.if((0,ie.not)(Qr),()=>pe.break()))}}function Gr(Ur,Qr,hn){const Yt={keyword:"additionalProperties",dataProp:Ur,dataPropType:ce.Type.Str};hn===!1&&Object.assign(Yt,{compositeRule:!0,createErrors:!1,allErrors:!1}),ve.subschema(Yt,Qr)}}};v.default=le}}),require_properties$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/properties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_validate$1(),ie=require_code2$1(),ae=require_util$2(),ce=require_additionalProperties$1(),fe={keyword:"properties",type:"object",schemaType:"object",code(le){const{gen:ve,schema:pe,parentSchema:ye,data:me,it:Ee}=le;Ee.opts.removeAdditional==="all"&&ye.additionalProperties===void 0&&ce.default.code(new k.KeywordCxt(Ee,ce.default,"additionalProperties"));const cr=(0,ie.allSchemaProperties)(pe);for(const ur of cr)Ee.definedProperties.add(ur);Ee.opts.unevaluated&&cr.length&&Ee.props!==!0&&(Ee.props=ae.mergeEvaluated.props(ve,(0,ae.toHash)(cr),Ee.props));const Br=cr.filter(ur=>!(0,ae.alwaysValidSchema)(Ee,pe[ur]));if(Br.length===0)return;const $r=ve.name("valid");for(const ur of Br)Pr(ur)?Ar(ur):(ve.if((0,ie.propertyInData)(ve,me,ur,Ee.opts.ownProperties)),Ar(ur),Ee.allErrors||ve.else().var($r,!0),ve.endIf()),le.it.definedProperties.add(ur),le.ok($r);function Pr(ur){return Ee.opts.useDefaults&&!Ee.compositeRule&&pe[ur].default!==void 0}function Ar(ur){le.subschema({keyword:"properties",schemaProp:ur,dataProp:ur},$r)}}};v.default=fe}}),require_patternProperties$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2$1(),ie=require_codegen$1(),ae=require_util$2(),ce=require_util$2(),fe={keyword:"patternProperties",type:"object",schemaType:"object",code(le){const{gen:ve,schema:pe,data:ye,parentSchema:me,it:Ee}=le,{opts:cr}=Ee,Br=(0,k.allSchemaProperties)(pe),$r=Br.filter(Vr=>(0,ae.alwaysValidSchema)(Ee,pe[Vr]));if(Br.length===0||$r.length===Br.length&&(!Ee.opts.unevaluated||Ee.props===!0))return;const Pr=cr.strictSchema&&!cr.allowMatchingProperties&&me.properties,Ar=ve.name("valid");Ee.props!==!0&&!(Ee.props instanceof ie.Name)&&(Ee.props=(0,ce.evaluatedPropsToName)(ve,Ee.props));const{props:ur}=Ee;jr();function jr(){for(const Vr of Br)Pr&&Mr(Vr),Ee.allErrors?Lr(Vr):(ve.var(Ar,!0),Lr(Vr),ve.if(Ar))}function Mr(Vr){for(const Gr in Pr)new RegExp(Vr).test(Gr)&&(0,ae.checkStrictMode)(Ee,`property ${Gr} matches pattern ${Vr} (use allowMatchingProperties)`)}function Lr(Vr){ve.forIn("key",ye,Gr=>{ve.if((0,ie._)`${(0,k.usePattern)(le,Vr)}.test(${Gr})`,()=>{const Ur=$r.includes(Vr);Ur||le.subschema({keyword:"patternProperties",schemaProp:Vr,dataProp:Gr,dataPropType:ce.Type.Str},Ar),Ee.opts.unevaluated&&ur!==!0?ve.assign((0,ie._)`${ur}[${Gr}]`,!0):!Ur&&!Ee.allErrors&&ve.if((0,ie.not)(Ar),()=>ve.break())})})}}};v.default=fe}}),require_not$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/not.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_util$2(),ie={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(ae){const{gen:ce,schema:fe,it:le}=ae;if((0,k.alwaysValidSchema)(le,fe)){ae.fail();return}const ve=ce.name("valid");ae.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},ve),ae.failResult(ve,()=>ae.reset(),()=>ae.error())},error:{message:"must NOT be valid"}};v.default=ie}}),require_anyOf$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2$1(),ie={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:k.validateUnion,error:{message:"must match a schema in anyOf"}};v.default=ie}}),require_oneOf$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_util$2(),ae={message:"must match exactly one schema in oneOf",params:({params:fe})=>(0,k._)`{passingSchemas: ${fe.passing}}`},ce={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:ae,code(fe){const{gen:le,schema:ve,parentSchema:pe,it:ye}=fe;if(!Array.isArray(ve))throw new Error("ajv implementation error");if(ye.opts.discriminator&&pe.discriminator)return;const me=ve,Ee=le.let("valid",!1),cr=le.let("passing",null),Br=le.name("_valid");fe.setParams({passing:cr}),le.block($r),fe.result(Ee,()=>fe.reset(),()=>fe.error(!0));function $r(){me.forEach((Pr,Ar)=>{let ur;(0,ie.alwaysValidSchema)(ye,Pr)?le.var(Br,!0):ur=fe.subschema({keyword:"oneOf",schemaProp:Ar,compositeRule:!0},Br),Ar>0&&le.if((0,k._)`${Br} && ${Ee}`).assign(Ee,!1).assign(cr,(0,k._)`[${cr}, ${Ar}]`).else(),le.if(Br,()=>{le.assign(Ee,!0),le.assign(cr,Ar),ur&&fe.mergeEvaluated(ur,k.Name)})})}}};v.default=ce}}),require_allOf$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/allOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_util$2(),ie={keyword:"allOf",schemaType:"array",code(ae){const{gen:ce,schema:fe,it:le}=ae;if(!Array.isArray(fe))throw new Error("ajv implementation error");const ve=ce.name("valid");fe.forEach((pe,ye)=>{if((0,k.alwaysValidSchema)(le,pe))return;const me=ae.subschema({keyword:"allOf",schemaProp:ye},ve);ae.ok(ve),ae.mergeEvaluated(me)})}};v.default=ie}}),require_if$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/if.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_util$2(),ae={message:({params:le})=>(0,k.str)`must match "${le.ifClause}" schema`,params:({params:le})=>(0,k._)`{failingKeyword: ${le.ifClause}}`},ce={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:ae,code(le){const{gen:ve,parentSchema:pe,it:ye}=le;pe.then===void 0&&pe.else===void 0&&(0,ie.checkStrictMode)(ye,'"if" without "then" and "else" is ignored');const me=fe(ye,"then"),Ee=fe(ye,"else");if(!me&&!Ee)return;const cr=ve.let("valid",!0),Br=ve.name("_valid");if($r(),le.reset(),me&&Ee){const Ar=ve.let("ifClause");le.setParams({ifClause:Ar}),ve.if(Br,Pr("then",Ar),Pr("else",Ar))}else me?ve.if(Br,Pr("then")):ve.if((0,k.not)(Br),Pr("else"));le.pass(cr,()=>le.error(!0));function $r(){const Ar=le.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},Br);le.mergeEvaluated(Ar)}function Pr(Ar,ur){return()=>{const jr=le.subschema({keyword:Ar},Br);ve.assign(cr,Br),le.mergeValidEvaluated(jr,cr),ur?ve.assign(ur,(0,k._)`${Ar}`):le.setParams({ifClause:Ar})}}}};function fe(le,ve){const pe=le.schema[ve];return pe!==void 0&&!(0,ie.alwaysValidSchema)(le,pe)}v.default=ce}}),require_thenElse$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_util$2(),ie={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:ae,parentSchema:ce,it:fe}){ce.if===void 0&&(0,k.checkStrictMode)(fe,`"${ae}" without "if" is ignored`)}};v.default=ie}}),require_applicator$1=__commonJS({"node_modules/ajv/dist/vocabularies/applicator/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_additionalItems$1(),ie=require_prefixItems$1(),ae=require_items$1(),ce=require_items2020$1(),fe=require_contains$1(),le=require_dependencies$1(),ve=require_propertyNames$1(),pe=require_additionalProperties$1(),ye=require_properties$1(),me=require_patternProperties$1(),Ee=require_not$1(),cr=require_anyOf$1(),Br=require_oneOf$1(),$r=require_allOf$1(),Pr=require_if$1(),Ar=require_thenElse$1();function ur(jr=!1){const Mr=[Ee.default,cr.default,Br.default,$r.default,Pr.default,Ar.default,ve.default,pe.default,le.default,ye.default,me.default];return jr?Mr.push(ie.default,ce.default):Mr.push(k.default,ae.default),Mr.push(fe.default),Mr}v.default=ur}}),require_format3$1=__commonJS({"node_modules/ajv/dist/vocabularies/format/format.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie={message:({schemaCode:ce})=>(0,k.str)`must match format "${ce}"`,params:({schemaCode:ce})=>(0,k._)`{format: ${ce}}`},ae={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:ie,code(ce,fe){const{gen:le,data:ve,$data:pe,schema:ye,schemaCode:me,it:Ee}=ce,{opts:cr,errSchemaPath:Br,schemaEnv:$r,self:Pr}=Ee;if(!cr.validateFormats)return;pe?Ar():ur();function Ar(){const jr=le.scopeValue("formats",{ref:Pr.formats,code:cr.code.formats}),Mr=le.const("fDef",(0,k._)`${jr}[${me}]`),Lr=le.let("fType"),Vr=le.let("format");le.if((0,k._)`typeof ${Mr} == "object" && !(${Mr} instanceof RegExp)`,()=>le.assign(Lr,(0,k._)`${Mr}.type || "string"`).assign(Vr,(0,k._)`${Mr}.validate`),()=>le.assign(Lr,(0,k._)`"string"`).assign(Vr,Mr)),ce.fail$data((0,k.or)(Gr(),Ur()));function Gr(){return cr.strictSchema===!1?k.nil:(0,k._)`${me} && !${Vr}`}function Ur(){const Qr=$r.$async?(0,k._)`(${Mr}.async ? await ${Vr}(${ve}) : ${Vr}(${ve}))`:(0,k._)`${Vr}(${ve})`,hn=(0,k._)`(typeof ${Vr} == "function" ? ${Qr} : ${Vr}.test(${ve}))`;return(0,k._)`${Vr} && ${Vr} !== true && ${Lr} === ${fe} && !${hn}`}}function ur(){const jr=Pr.formats[ye];if(!jr){Gr();return}if(jr===!0)return;const[Mr,Lr,Vr]=Ur(jr);Mr===fe&&ce.pass(Qr());function Gr(){if(cr.strictSchema===!1){Pr.logger.warn(hn());return}throw new Error(hn());function hn(){return`unknown format "${ye}" ignored in schema at path "${Br}"`}}function Ur(hn){const Yt=hn instanceof RegExp?(0,k.regexpCode)(hn):cr.code.formats?(0,k._)`${cr.code.formats}${(0,k.getProperty)(ye)}`:void 0,fn=le.scopeValue("formats",{key:ye,ref:hn,code:Yt});return typeof hn=="object"&&!(hn instanceof RegExp)?[hn.type||"string",hn.validate,(0,k._)`${fn}.validate`]:["string",hn,fn]}function Qr(){if(typeof jr=="object"&&!(jr instanceof RegExp)&&jr.async){if(!$r.$async)throw new Error("async format in sync schema");return(0,k._)`await ${Vr}(${ve})`}return typeof Lr=="function"?(0,k._)`${Vr}(${ve})`:(0,k._)`${Vr}.test(${ve})`}}}};v.default=ae}}),require_format4$1=__commonJS({"node_modules/ajv/dist/vocabularies/format/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_format3$1(),ie=[k.default];v.default=ie}}),require_metadata$1=__commonJS({"node_modules/ajv/dist/vocabularies/metadata.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.contentVocabulary=v.metadataVocabulary=void 0,v.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],v.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]}}),require_draft7$1=__commonJS({"node_modules/ajv/dist/vocabularies/draft7.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_core2$1(),ie=require_validation$1(),ae=require_applicator$1(),ce=require_format4$1(),fe=require_metadata$1(),le=[k.default,ie.default,(0,ae.default)(),ce.default,fe.metadataVocabulary,fe.contentVocabulary];v.default=le}}),require_types2$3=__commonJS({"node_modules/ajv/dist/vocabularies/discriminator/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.DiscrError=void 0,function(k){k.Tag="tag",k.Mapping="mapping"}(v.DiscrError||(v.DiscrError={}))}}),require_discriminator$1=__commonJS({"node_modules/ajv/dist/vocabularies/discriminator/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen$1(),ie=require_types2$3(),ae=require_compile$1(),ce=require_util$2(),fe={message:({params:{discrError:ve,tagName:pe}})=>ve===ie.DiscrError.Tag?`tag "${pe}" must be string`:`value of tag "${pe}" must be in oneOf`,params:({params:{discrError:ve,tag:pe,tagName:ye}})=>(0,k._)`{error: ${ve}, tag: ${ye}, tagValue: ${pe}}`},le={keyword:"discriminator",type:"object",schemaType:"object",error:fe,code(ve){const{gen:pe,data:ye,schema:me,parentSchema:Ee,it:cr}=ve,{oneOf:Br}=Ee;if(!cr.opts.discriminator)throw new Error("discriminator: requires discriminator option");const $r=me.propertyName;if(typeof $r!="string")throw new Error("discriminator: requires propertyName");if(me.mapping)throw new Error("discriminator: mapping is not supported");if(!Br)throw new Error("discriminator: requires oneOf keyword");const Pr=pe.let("valid",!1),Ar=pe.const("tag",(0,k._)`${ye}${(0,k.getProperty)($r)}`);pe.if((0,k._)`typeof ${Ar} == "string"`,()=>ur(),()=>ve.error(!1,{discrError:ie.DiscrError.Tag,tag:Ar,tagName:$r})),ve.ok(Pr);function ur(){const Lr=Mr();pe.if(!1);for(const Vr in Lr)pe.elseIf((0,k._)`${Ar} === ${Vr}`),pe.assign(Pr,jr(Lr[Vr]));pe.else(),ve.error(!1,{discrError:ie.DiscrError.Mapping,tag:Ar,tagName:$r}),pe.endIf()}function jr(Lr){const Vr=pe.name("valid"),Gr=ve.subschema({keyword:"oneOf",schemaProp:Lr},Vr);return ve.mergeEvaluated(Gr,k.Name),Vr}function Mr(){var Lr;const Vr={},Gr=Qr(Ee);let Ur=!0;for(let fn=0;fnthis.addVocabulary(Br)),this.opts.discriminator&&this.addKeyword(ce.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const Br=this.opts.$data?this.$dataMetaSchema(fe,le):fe;this.addMetaSchema(Br,ve,!1),this.refs["http://json-schema.org/schema"]=ve}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ve)?ve:void 0)}};k.exports=v=pe,Object.defineProperty(v,"__esModule",{value:!0}),v.default=pe;var ye=require_validate$1();Object.defineProperty(v,"KeywordCxt",{enumerable:!0,get:function(){return ye.KeywordCxt}});var me=require_codegen$1();Object.defineProperty(v,"_",{enumerable:!0,get:function(){return me._}}),Object.defineProperty(v,"str",{enumerable:!0,get:function(){return me.str}}),Object.defineProperty(v,"stringify",{enumerable:!0,get:function(){return me.stringify}}),Object.defineProperty(v,"nil",{enumerable:!0,get:function(){return me.nil}}),Object.defineProperty(v,"Name",{enumerable:!0,get:function(){return me.Name}}),Object.defineProperty(v,"CodeGen",{enumerable:!0,get:function(){return me.CodeGen}});var Ee=require_validation_error$1();Object.defineProperty(v,"ValidationError",{enumerable:!0,get:function(){return Ee.default}});var cr=require_ref_error$1();Object.defineProperty(v,"MissingRefError",{enumerable:!0,get:function(){return cr.default}})}}),require_formats$1=__commonJS({"node_modules/ajv-formats/dist/formats.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.formatNames=v.fastFormats=v.fullFormats=void 0;function k(hn,Yt){return{validate:hn,compare:Yt}}v.fullFormats={date:k(fe,le),time:k(pe,ye),"date-time":k(Ee,cr),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:Pr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=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,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Qr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:ur,int32:{type:"number",validate:Lr},int64:{type:"number",validate:Vr},float:{type:"number",validate:Gr},double:{type:"number",validate:Gr},password:!0,binary:!0},v.fastFormats={...v.fullFormats,date:k(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,le),time:k(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,ye),"date-time":k(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,cr),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},v.formatNames=Object.keys(v.fullFormats);function ie(hn){return hn%4===0&&(hn%100!==0||hn%400===0)}var ae=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ce=[0,31,28,31,30,31,30,31,31,30,31,30,31];function fe(hn){const Yt=ae.exec(hn);if(!Yt)return!1;const fn=+Yt[1],Qt=+Yt[2],Xt=+Yt[3];return Qt>=1&&Qt<=12&&Xt>=1&&Xt<=(Qt===2&&ie(fn)?29:ce[Qt])}function le(hn,Yt){if(!!(hn&&Yt))return hn>Yt?1:hnYt?1:hn=jr}function Vr(hn){return Number.isInteger(hn)}function Gr(){return!0}var Ur=/[^\\]\\Z/;function Qr(hn){if(Ur.test(hn))return!1;try{return new RegExp(hn),!0}catch{return!1}}}}),require_limit$1=__commonJS({"node_modules/ajv-formats/dist/limit.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.formatLimitDefinition=void 0;var k=require_ajv$1(),ie=require_codegen$1(),ae=ie.operators,ce={formatMaximum:{okStr:"<=",ok:ae.LTE,fail:ae.GT},formatMinimum:{okStr:">=",ok:ae.GTE,fail:ae.LT},formatExclusiveMaximum:{okStr:"<",ok:ae.LT,fail:ae.GTE},formatExclusiveMinimum:{okStr:">",ok:ae.GT,fail:ae.LTE}},fe={message:({keyword:ve,schemaCode:pe})=>ie.str`should be ${ce[ve].okStr} ${pe}`,params:({keyword:ve,schemaCode:pe})=>ie._`{comparison: ${ce[ve].okStr}, limit: ${pe}}`};v.formatLimitDefinition={keyword:Object.keys(ce),type:"string",schemaType:"string",$data:!0,error:fe,code(ve){const{gen:pe,data:ye,schemaCode:me,keyword:Ee,it:cr}=ve,{opts:Br,self:$r}=cr;if(!Br.validateFormats)return;const Pr=new k.KeywordCxt(cr,$r.RULES.all.format.definition,"format");Pr.$data?Ar():ur();function Ar(){const Mr=pe.scopeValue("formats",{ref:$r.formats,code:Br.code.formats}),Lr=pe.const("fmt",ie._`${Mr}[${Pr.schemaCode}]`);ve.fail$data(ie.or(ie._`typeof ${Lr} != "object"`,ie._`${Lr} instanceof RegExp`,ie._`typeof ${Lr}.compare != "function"`,jr(Lr)))}function ur(){const Mr=Pr.schema,Lr=$r.formats[Mr];if(!Lr||Lr===!0)return;if(typeof Lr!="object"||Lr instanceof RegExp||typeof Lr.compare!="function")throw new Error(`"${Ee}": format "${Mr}" does not define "compare" function`);const Vr=pe.scopeValue("formats",{key:Mr,ref:Lr,code:Br.code.formats?ie._`${Br.code.formats}${ie.getProperty(Mr)}`:void 0});ve.fail$data(jr(Vr))}function jr(Mr){return ie._`${Mr}.compare(${ye}, ${me}) ${ce[Ee].fail} 0`}},dependencies:["format"]};var le=ve=>(ve.addKeyword(v.formatLimitDefinition),ve);v.default=le}}),require_dist$2=__commonJS({"node_modules/ajv-formats/dist/index.js"(v,k){Object.defineProperty(v,"__esModule",{value:!0});var ie=require_formats$1(),ae=require_limit$1(),ce=require_codegen$1(),fe=new ce.Name("fullFormats"),le=new ce.Name("fastFormats"),ve=(ye,me={keywords:!0})=>{if(Array.isArray(me))return pe(ye,me,ie.fullFormats,fe),ye;const[Ee,cr]=me.mode==="fast"?[ie.fastFormats,le]:[ie.fullFormats,fe],Br=me.formats||ie.formatNames;return pe(ye,Br,Ee,cr),me.keywords&&ae.default(ye),ye};ve.get=(ye,me="full")=>{const cr=(me==="fast"?ie.fastFormats:ie.fullFormats)[ye];if(!cr)throw new Error(`Unknown format "${ye}"`);return cr};function pe(ye,me,Ee,cr){var Br,$r;(Br=($r=ye.opts.code).formats)!==null&&Br!==void 0||($r.formats=ce._`require("ajv-formats/dist/formats").${cr}`);for(const Pr of me)ye.addFormat(Pr,Ee[Pr])}k.exports=v=ve,Object.defineProperty(v,"__esModule",{value:!0}),v.default=ve}}),require_lib10$1=__commonJS({"node_modules/near-abi/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.AbiSerializationType=v.AbiFunctionModifier=v.AbiFunctionKind=v.SCHEMA_VERSION=void 0,v.SCHEMA_VERSION="0.3.0",function(k){k.View="view",k.Call="call"}(v.AbiFunctionKind||(v.AbiFunctionKind={})),function(k){k.Init="init",k.Private="private",k.Payable="payable"}(v.AbiFunctionModifier||(v.AbiFunctionModifier={})),function(k){k.Json="json",k.Borsh="borsh"}(v.AbiSerializationType||(v.AbiSerializationType={}))}}),require_errors5$1=__commonJS({"node_modules/@near-js/accounts/lib/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ConflictingOptions=v.ArgumentSchemaError=v.UnknownArgumentError=v.UnsupportedSerializationError=void 0;var k=class extends Error{constructor(fe,le){super(`Contract method '${fe}' is using an unsupported serialization type ${le}`)}};v.UnsupportedSerializationError=k;var ie=class extends Error{constructor(fe,le){super(`Unrecognized argument '${fe}', expected '${JSON.stringify(le)}'`)}};v.UnknownArgumentError=ie;var ae=class extends Error{constructor(fe,le){super(`Argument '${fe}' does not conform to the specified ABI schema: '${JSON.stringify(le)}'`)}};v.ArgumentSchemaError=ae;var ce=class extends Error{constructor(){super("Conflicting contract method options have been passed. You can either specify ABI or a list of view/call methods.")}};v.ConflictingOptions=ce}}),require_contract$2=__commonJS({"node_modules/@near-js/accounts/lib/contract.js"(v){var k=v&&v.__awaiter||function(jr,Mr,Lr,Vr){function Gr(Ur){return Ur instanceof Lr?Ur:new Lr(function(Qr){Qr(Ur)})}return new(Lr||(Lr=Promise))(function(Ur,Qr){function hn(Qt){try{fn(Vr.next(Qt))}catch(Xt){Qr(Xt)}}function Yt(Qt){try{fn(Vr.throw(Qt))}catch(Xt){Qr(Xt)}}function fn(Qt){Qt.done?Ur(Qt.value):Gr(Qt.value).then(hn,Yt)}fn((Vr=Vr.apply(jr,Mr||[])).next())})},ie=v&&v.__importDefault||function(jr){return jr&&jr.__esModule?jr:{default:jr}};Object.defineProperty(v,"__esModule",{value:!0}),v.Contract=void 0;var ae=require_lib6$1(),ce=require_lib2$1(),fe=ie(require_ajv$1()),le=ie(require_dist$2()),ve=ie(require_bn$2()),pe=ie(require_browser$4()),ye=require_lib10$1(),me=require_errors5$1();function Ee(jr,Mr){return{[jr](...Lr){return Mr(...Lr)}}[jr]}function cr(jr,Mr,Lr,Vr){var Gr;if(!Pr(jr))return;if(Mr.params&&Mr.params.serialization_type!==ye.AbiSerializationType.Json)throw new me.UnsupportedSerializationError(Mr.name,Mr.params.serialization_type);if(Mr.result&&Mr.result.serialization_type!==ye.AbiSerializationType.Json)throw new me.UnsupportedSerializationError(Mr.name,Mr.result.serialization_type);const Ur=((Gr=Mr.params)===null||Gr===void 0?void 0:Gr.args)||[];for(const Qr of Ur){const hn=jr[Qr.name],Yt=Qr.type_schema;Yt.definitions=Vr.body.root_schema.definitions;const fn=Lr.compile(Yt);if(!fn(hn))throw new me.ArgumentSchemaError(Qr.name,fn.errors)}for(const Qr of Object.keys(jr))if(!Ur.find(Yt=>Yt.name===Qr))throw new me.UnknownArgumentError(Qr,Ur.map(Yt=>Yt.name))}function Br(){const jr=new fe.default({strictSchema:!1,formats:{uint32:!0,uint64:!0}});return(0,le.default)(jr),jr}var $r=jr=>jr&&jr.byteLength!==void 0&&jr.byteLength===jr.length,Pr=jr=>Object.prototype.toString.call(jr)==="[object Object]",Ar=class{constructor(jr,Mr,Lr){this.account=jr,this.contractId=Mr;const{viewMethods:Vr=[],changeMethods:Gr=[],abi:Ur}=Lr;let Qr=Vr.map(fn=>({name:fn,abi:null})),hn=Gr.map(fn=>({name:fn,abi:null}));if(Ur){if(Qr.length>0||hn.length>0)throw new me.ConflictingOptions;Qr=Ur.body.functions.filter(fn=>fn.kind===ye.AbiFunctionKind.View).map(fn=>({name:fn.name,abi:fn})),hn=Ur.body.functions.filter(fn=>fn.kind===ye.AbiFunctionKind.Call).map(fn=>({name:fn.name,abi:fn}))}const Yt=Br();Qr.forEach(({name:fn,abi:Qt})=>{Object.defineProperty(this,fn,{writable:!1,enumerable:!0,value:Ee(fn,(Xt={},Kr={},...be)=>k(this,void 0,void 0,function*(){if(be.length||!(Pr(Xt)||$r(Xt))||!Pr(Kr))throw new ce.PositionalArgsError;return Qt&&cr(Xt,Qt,Yt,Ur),this.account.viewFunction(Object.assign({contractId:this.contractId,methodName:fn,args:Xt},Kr))}))})}),hn.forEach(({name:fn,abi:Qt})=>{Object.defineProperty(this,fn,{writable:!1,enumerable:!0,value:Ee(fn,(...Xt)=>k(this,void 0,void 0,function*(){if(Xt.length&&(Xt.length>3||!(Pr(Xt[0])||$r(Xt[0]))))throw new ce.PositionalArgsError;return(Xt.length>1||!(Xt[0]&&Xt[0].args))&&((0,pe.default)("contract.methodName(args, gas, amount)")("use `contract.methodName({ args, gas?, amount?, callbackUrl?, meta? })` instead"),Xt[0]={args:Xt[0],gas:Xt[1],amount:Xt[2]}),Qt&&cr(Xt[0].args,Qt,Yt,Ur),this._changeMethod(Object.assign({methodName:fn},Xt[0]))}))})})}_changeMethod({args:jr,methodName:Mr,gas:Lr,amount:Vr,meta:Gr,callbackUrl:Ur}){return k(this,void 0,void 0,function*(){ur({gas:Lr,amount:Vr});const Qr=yield this.account.functionCall({contractId:this.contractId,methodName:Mr,args:jr,gas:Lr,attachedDeposit:Vr,walletMeta:Gr,walletCallbackUrl:Ur});return(0,ae.getTransactionLastResult)(Qr)})}};v.Contract=Ar;function ur(jr){const Mr="number, decimal string or BN";for(const Lr of Object.keys(jr)){const Vr=jr[Lr];if(Vr&&!ve.default.isBN(Vr)&&isNaN(Vr))throw new ce.ArgumentTypeError(Lr,Mr,Vr)}}}}),require_lib11$1=__commonJS({"node_modules/@near-js/accounts/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MultisigStateStatus=v.MultisigDeleteRequestRejectionError=v.UnsupportedSerializationError=v.UnknownArgumentError=v.ConflictingOptions=v.ArgumentSchemaError=v.Contract=v.MULTISIG_CONFIRM_METHODS=v.MULTISIG_CHANGE_METHODS=v.MULTISIG_DEPOSIT=v.MULTISIG_GAS=v.MULTISIG_ALLOWANCE=v.MULTISIG_STORAGE_KEY=v.Connection=v.AccountMultisig=v.UrlAccountCreator=v.LocalAccountCreator=v.AccountCreator=v.Account2FA=v.Account=void 0;var k=require_account$3();Object.defineProperty(v,"Account",{enumerable:!0,get:function(){return k.Account}});var ie=require_account_2fa$1();Object.defineProperty(v,"Account2FA",{enumerable:!0,get:function(){return ie.Account2FA}});var ae=require_account_creator$2();Object.defineProperty(v,"AccountCreator",{enumerable:!0,get:function(){return ae.AccountCreator}}),Object.defineProperty(v,"LocalAccountCreator",{enumerable:!0,get:function(){return ae.LocalAccountCreator}}),Object.defineProperty(v,"UrlAccountCreator",{enumerable:!0,get:function(){return ae.UrlAccountCreator}});var ce=require_account_multisig$2();Object.defineProperty(v,"AccountMultisig",{enumerable:!0,get:function(){return ce.AccountMultisig}});var fe=require_connection$2();Object.defineProperty(v,"Connection",{enumerable:!0,get:function(){return fe.Connection}});var le=require_constants3$2();Object.defineProperty(v,"MULTISIG_STORAGE_KEY",{enumerable:!0,get:function(){return le.MULTISIG_STORAGE_KEY}}),Object.defineProperty(v,"MULTISIG_ALLOWANCE",{enumerable:!0,get:function(){return le.MULTISIG_ALLOWANCE}}),Object.defineProperty(v,"MULTISIG_GAS",{enumerable:!0,get:function(){return le.MULTISIG_GAS}}),Object.defineProperty(v,"MULTISIG_DEPOSIT",{enumerable:!0,get:function(){return le.MULTISIG_DEPOSIT}}),Object.defineProperty(v,"MULTISIG_CHANGE_METHODS",{enumerable:!0,get:function(){return le.MULTISIG_CHANGE_METHODS}}),Object.defineProperty(v,"MULTISIG_CONFIRM_METHODS",{enumerable:!0,get:function(){return le.MULTISIG_CONFIRM_METHODS}});var ve=require_contract$2();Object.defineProperty(v,"Contract",{enumerable:!0,get:function(){return ve.Contract}});var pe=require_errors5$1();Object.defineProperty(v,"ArgumentSchemaError",{enumerable:!0,get:function(){return pe.ArgumentSchemaError}}),Object.defineProperty(v,"ConflictingOptions",{enumerable:!0,get:function(){return pe.ConflictingOptions}}),Object.defineProperty(v,"UnknownArgumentError",{enumerable:!0,get:function(){return pe.UnknownArgumentError}}),Object.defineProperty(v,"UnsupportedSerializationError",{enumerable:!0,get:function(){return pe.UnsupportedSerializationError}});var ye=require_types$5();Object.defineProperty(v,"MultisigDeleteRequestRejectionError",{enumerable:!0,get:function(){return ye.MultisigDeleteRequestRejectionError}}),Object.defineProperty(v,"MultisigStateStatus",{enumerable:!0,get:function(){return ye.MultisigStateStatus}})}}),require_errors6$1=__commonJS({"node_modules/near-api-js/lib/utils/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.logWarning=v.TypedError=v.PositionalArgsError=v.ErrorContext=v.ArgumentTypeError=v.UnsupportedSerializationError=v.UnknownArgumentError=v.ConflictingOptions=v.ArgumentSchemaError=void 0;var k=require_lib11$1();Object.defineProperty(v,"ArgumentSchemaError",{enumerable:!0,get:function(){return k.ArgumentSchemaError}}),Object.defineProperty(v,"ConflictingOptions",{enumerable:!0,get:function(){return k.ConflictingOptions}}),Object.defineProperty(v,"UnknownArgumentError",{enumerable:!0,get:function(){return k.UnknownArgumentError}}),Object.defineProperty(v,"UnsupportedSerializationError",{enumerable:!0,get:function(){return k.UnsupportedSerializationError}});var ie=require_lib2$1();Object.defineProperty(v,"ArgumentTypeError",{enumerable:!0,get:function(){return ie.ArgumentTypeError}}),Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return ie.ErrorContext}}),Object.defineProperty(v,"PositionalArgsError",{enumerable:!0,get:function(){return ie.PositionalArgsError}}),Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return ie.TypedError}});var ae=require_lib6$1();Object.defineProperty(v,"logWarning",{enumerable:!0,get:function(){return ae.logWarning}})}}),require_utils$5=__commonJS({"node_modules/near-api-js/lib/utils/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(cr,Br,$r,Pr){Pr===void 0&&(Pr=$r);var Ar=Object.getOwnPropertyDescriptor(Br,$r);(!Ar||("get"in Ar?!Br.__esModule:Ar.writable||Ar.configurable))&&(Ar={enumerable:!0,get:function(){return Br[$r]}}),Object.defineProperty(cr,Pr,Ar)}:function(cr,Br,$r,Pr){Pr===void 0&&(Pr=$r),cr[Pr]=Br[$r]}),ie=v&&v.__setModuleDefault||(Object.create?function(cr,Br){Object.defineProperty(cr,"default",{enumerable:!0,value:Br})}:function(cr,Br){cr.default=Br}),ae=v&&v.__importStar||function(cr){if(cr&&cr.__esModule)return cr;var Br={};if(cr!=null)for(var $r in cr)$r!=="default"&&Object.prototype.hasOwnProperty.call(cr,$r)&&k(Br,cr,$r);return ie(Br,cr),Br};Object.defineProperty(v,"__esModule",{value:!0}),v.logWarning=v.rpc_errors=v.KeyPairEd25519=v.KeyPair=v.PublicKey=v.format=v.enums=v.web=v.serialize=v.key_pair=void 0;var ce=ae(require_key_pair2$1());v.key_pair=ce;var fe=ae(require_serialize$2());v.serialize=fe;var le=ae(require_web$2());v.web=le;var ve=ae(require_enums$2());v.enums=ve;var pe=ae(require_format2$1());v.format=pe;var ye=ae(require_rpc_errors2$1());v.rpc_errors=ye;var me=require_key_pair2$1();Object.defineProperty(v,"PublicKey",{enumerable:!0,get:function(){return me.PublicKey}}),Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return me.KeyPair}}),Object.defineProperty(v,"KeyPairEd25519",{enumerable:!0,get:function(){return me.KeyPairEd25519}});var Ee=require_errors6$1();Object.defineProperty(v,"logWarning",{enumerable:!0,get:function(){return Ee.logWarning}})}}),require_transaction$2=__commonJS({"node_modules/near-api-js/lib/transaction.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.transfer=v.stake=v.functionCallAccessKey=v.functionCall=v.fullAccessKey=v.deployContract=v.deleteKey=v.deleteAccount=v.createAccount=v.addKey=v.encodeDelegateAction=v.encodeSignedDelegate=v.Transaction=v.SignedTransaction=v.Signature=v.signTransaction=v.createTransaction=v.SCHEMA=v.Transfer=v.Stake=v.FunctionCallPermission=v.FunctionCall=v.FullAccessPermission=v.DeployContract=v.DeleteKey=v.DeleteAccount=v.CreateAccount=v.AddKey=v.AccessKeyPermission=v.AccessKey=v.Action=v.stringifyJsonOrBytes=void 0;var k=require_lib7$1();Object.defineProperty(v,"stringifyJsonOrBytes",{enumerable:!0,get:function(){return k.stringifyJsonOrBytes}}),Object.defineProperty(v,"Action",{enumerable:!0,get:function(){return k.Action}}),Object.defineProperty(v,"AccessKey",{enumerable:!0,get:function(){return k.AccessKey}}),Object.defineProperty(v,"AccessKeyPermission",{enumerable:!0,get:function(){return k.AccessKeyPermission}}),Object.defineProperty(v,"AddKey",{enumerable:!0,get:function(){return k.AddKey}}),Object.defineProperty(v,"CreateAccount",{enumerable:!0,get:function(){return k.CreateAccount}}),Object.defineProperty(v,"DeleteAccount",{enumerable:!0,get:function(){return k.DeleteAccount}}),Object.defineProperty(v,"DeleteKey",{enumerable:!0,get:function(){return k.DeleteKey}}),Object.defineProperty(v,"DeployContract",{enumerable:!0,get:function(){return k.DeployContract}}),Object.defineProperty(v,"FullAccessPermission",{enumerable:!0,get:function(){return k.FullAccessPermission}}),Object.defineProperty(v,"FunctionCall",{enumerable:!0,get:function(){return k.FunctionCall}}),Object.defineProperty(v,"FunctionCallPermission",{enumerable:!0,get:function(){return k.FunctionCallPermission}}),Object.defineProperty(v,"Stake",{enumerable:!0,get:function(){return k.Stake}}),Object.defineProperty(v,"Transfer",{enumerable:!0,get:function(){return k.Transfer}}),Object.defineProperty(v,"SCHEMA",{enumerable:!0,get:function(){return k.SCHEMA}}),Object.defineProperty(v,"createTransaction",{enumerable:!0,get:function(){return k.createTransaction}}),Object.defineProperty(v,"signTransaction",{enumerable:!0,get:function(){return k.signTransaction}}),Object.defineProperty(v,"Signature",{enumerable:!0,get:function(){return k.Signature}}),Object.defineProperty(v,"SignedTransaction",{enumerable:!0,get:function(){return k.SignedTransaction}}),Object.defineProperty(v,"Transaction",{enumerable:!0,get:function(){return k.Transaction}}),Object.defineProperty(v,"encodeSignedDelegate",{enumerable:!0,get:function(){return k.encodeSignedDelegate}}),Object.defineProperty(v,"encodeDelegateAction",{enumerable:!0,get:function(){return k.encodeDelegateAction}});var ie=require_lib7$1(),ae=(Br,$r)=>ie.actionCreators.addKey(Br,$r);v.addKey=ae;var ce=()=>ie.actionCreators.createAccount();v.createAccount=ce;var fe=Br=>ie.actionCreators.deleteAccount(Br);v.deleteAccount=fe;var le=Br=>ie.actionCreators.deleteKey(Br);v.deleteKey=le;var ve=Br=>ie.actionCreators.deployContract(Br);v.deployContract=ve;var pe=()=>ie.actionCreators.fullAccessKey();v.fullAccessKey=pe;var ye=(Br,$r,Pr,Ar,ur,jr)=>ie.actionCreators.functionCall(Br,$r,Pr,Ar,ur,jr);v.functionCall=ye;var me=(Br,$r,Pr)=>ie.actionCreators.functionCallAccessKey(Br,$r,Pr);v.functionCallAccessKey=me;var Ee=(Br,$r)=>ie.actionCreators.stake(Br,$r);v.stake=Ee;var cr=Br=>ie.actionCreators.transfer(Br);v.transfer=cr}}),require_validators2$1=__commonJS({"node_modules/near-api-js/lib/validators.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.findSeatPrice=v.diffEpochValidators=void 0;var k=require_lib6$1();Object.defineProperty(v,"diffEpochValidators",{enumerable:!0,get:function(){return k.diffEpochValidators}}),Object.defineProperty(v,"findSeatPrice",{enumerable:!0,get:function(){return k.findSeatPrice}})}}),require_account2$1=__commonJS({"node_modules/near-api-js/lib/account.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Account=void 0;var k=require_lib11$1();Object.defineProperty(v,"Account",{enumerable:!0,get:function(){return k.Account}})}}),require_account_multisig2$1=__commonJS({"node_modules/near-api-js/lib/account_multisig.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MultisigStateStatus=v.MultisigDeleteRequestRejectionError=v.MULTISIG_CONFIRM_METHODS=v.MULTISIG_CHANGE_METHODS=v.MULTISIG_DEPOSIT=v.MULTISIG_GAS=v.MULTISIG_ALLOWANCE=v.MULTISIG_STORAGE_KEY=v.AccountMultisig=v.Account2FA=void 0;var k=require_lib11$1();Object.defineProperty(v,"Account2FA",{enumerable:!0,get:function(){return k.Account2FA}}),Object.defineProperty(v,"AccountMultisig",{enumerable:!0,get:function(){return k.AccountMultisig}}),Object.defineProperty(v,"MULTISIG_STORAGE_KEY",{enumerable:!0,get:function(){return k.MULTISIG_STORAGE_KEY}}),Object.defineProperty(v,"MULTISIG_ALLOWANCE",{enumerable:!0,get:function(){return k.MULTISIG_ALLOWANCE}}),Object.defineProperty(v,"MULTISIG_GAS",{enumerable:!0,get:function(){return k.MULTISIG_GAS}}),Object.defineProperty(v,"MULTISIG_DEPOSIT",{enumerable:!0,get:function(){return k.MULTISIG_DEPOSIT}}),Object.defineProperty(v,"MULTISIG_CHANGE_METHODS",{enumerable:!0,get:function(){return k.MULTISIG_CHANGE_METHODS}}),Object.defineProperty(v,"MULTISIG_CONFIRM_METHODS",{enumerable:!0,get:function(){return k.MULTISIG_CONFIRM_METHODS}}),Object.defineProperty(v,"MultisigDeleteRequestRejectionError",{enumerable:!0,get:function(){return k.MultisigDeleteRequestRejectionError}}),Object.defineProperty(v,"MultisigStateStatus",{enumerable:!0,get:function(){return k.MultisigStateStatus}})}}),require_account_creator2$1=__commonJS({"node_modules/near-api-js/lib/account_creator.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.UrlAccountCreator=v.LocalAccountCreator=v.AccountCreator=void 0;var k=require_lib11$1();Object.defineProperty(v,"AccountCreator",{enumerable:!0,get:function(){return k.AccountCreator}}),Object.defineProperty(v,"LocalAccountCreator",{enumerable:!0,get:function(){return k.LocalAccountCreator}}),Object.defineProperty(v,"UrlAccountCreator",{enumerable:!0,get:function(){return k.UrlAccountCreator}})}}),require_connection2$1=__commonJS({"node_modules/near-api-js/lib/connection.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Connection=void 0;var k=require_lib11$1();Object.defineProperty(v,"Connection",{enumerable:!0,get:function(){return k.Connection}})}}),require_signer2$1=__commonJS({"node_modules/near-api-js/lib/signer.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signer=v.InMemorySigner=void 0;var k=require_lib9$1();Object.defineProperty(v,"InMemorySigner",{enumerable:!0,get:function(){return k.InMemorySigner}}),Object.defineProperty(v,"Signer",{enumerable:!0,get:function(){return k.Signer}})}}),require_contract2$1=__commonJS({"node_modules/near-api-js/lib/contract.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Contract=void 0;var k=require_lib11$1();Object.defineProperty(v,"Contract",{enumerable:!0,get:function(){return k.Contract}})}}),require_near$2=__commonJS({"node_modules/@near-js/wallet-account/lib/near.js"(v){var k=v&&v.__awaiter||function(le,ve,pe,ye){function me(Ee){return Ee instanceof pe?Ee:new pe(function(cr){cr(Ee)})}return new(pe||(pe=Promise))(function(Ee,cr){function Br(Ar){try{Pr(ye.next(Ar))}catch(ur){cr(ur)}}function $r(Ar){try{Pr(ye.throw(Ar))}catch(ur){cr(ur)}}function Pr(Ar){Ar.done?Ee(Ar.value):me(Ar.value).then(Br,$r)}Pr((ye=ye.apply(le,ve||[])).next())})},ie=v&&v.__importDefault||function(le){return le&&le.__esModule?le:{default:le}};Object.defineProperty(v,"__esModule",{value:!0}),v.Near=void 0;var ae=require_lib11$1(),ce=ie(require_bn$2()),fe=class{constructor(le){var ve;if(this.config=le,this.connection=ae.Connection.fromConfig({networkId:le.networkId,provider:{type:"JsonRpcProvider",args:{url:le.nodeUrl,headers:le.headers}},signer:le.signer||{type:"InMemorySigner",keyStore:le.keyStore||((ve=le.deps)===null||ve===void 0?void 0:ve.keyStore)},jsvmAccountId:le.jsvmAccountId||`jsvm.${le.networkId}`}),le.masterAccount){const pe=le.initialBalance?new ce.default(le.initialBalance):new ce.default("500000000000000000000000000");this.accountCreator=new ae.LocalAccountCreator(new ae.Account(this.connection,le.masterAccount),pe)}else le.helperUrl?this.accountCreator=new ae.UrlAccountCreator(this.connection,le.helperUrl):this.accountCreator=null}account(le){return k(this,void 0,void 0,function*(){return new ae.Account(this.connection,le)})}createAccount(le,ve){return k(this,void 0,void 0,function*(){if(!this.accountCreator)throw new Error("Must specify account creator, either via masterAccount or helperUrl configuration settings.");return yield this.accountCreator.createAccount(le,ve),new ae.Account(this.connection,le)})}};v.Near=fe}}),require_wallet_account$2=__commonJS({"node_modules/@near-js/wallet-account/lib/wallet_account.js"(v){var k=v&&v.__awaiter||function($r,Pr,Ar,ur){function jr(Mr){return Mr instanceof Ar?Mr:new Ar(function(Lr){Lr(Mr)})}return new(Ar||(Ar=Promise))(function(Mr,Lr){function Vr(Qr){try{Ur(ur.next(Qr))}catch(hn){Lr(hn)}}function Gr(Qr){try{Ur(ur.throw(Qr))}catch(hn){Lr(hn)}}function Ur(Qr){Qr.done?Mr(Qr.value):jr(Qr.value).then(Vr,Gr)}Ur((ur=ur.apply($r,Pr||[])).next())})},ie=v&&v.__importDefault||function($r){return $r&&$r.__esModule?$r:{default:$r}};Object.defineProperty(v,"__esModule",{value:!0}),v.ConnectedWalletAccount=v.WalletConnection=void 0;var ae=require_lib11$1(),ce=require_lib3$1(),fe=require_lib7$1(),le=ie(require_bn$2()),ve=require_lib$1(),pe="/login/",ye="add_request_and_confirm",me="_wallet_auth_key",Ee="pending_key",cr=class{constructor($r,Pr){if(typeof Pr!="string")throw new Error("Please define a clear appKeyPrefix for this WalletConnection instance as the second argument to the constructor");if(typeof window>"u")return new Proxy(this,{get(jr,Mr){return Mr==="isSignedIn"?()=>!1:Mr==="getAccountId"?()=>"":jr[Mr]&&typeof jr[Mr]=="function"?()=>{throw new Error("No window found in context, please ensure you are using WalletConnection on the browser")}:jr[Mr]}});this._near=$r;const Ar=Pr+me,ur=JSON.parse(window.localStorage.getItem(Ar));this._networkId=$r.config.networkId,this._walletBaseUrl=$r.config.walletUrl,Pr=Pr||$r.config.contractName||"default",this._keyStore=$r.connection.signer.keyStore,this._authData=ur||{allKeys:[]},this._authDataKey=Ar,this.isSignedIn()||(this._completeSignInPromise=this._completeSignInWithAccessKey())}isSignedIn(){return!!this._authData.accountId}isSignedInAsync(){return k(this,void 0,void 0,function*(){return this._completeSignInPromise?(yield this._completeSignInPromise,this.isSignedIn()):this.isSignedIn()})}getAccountId(){return this._authData.accountId||""}requestSignIn({contractId:$r,methodNames:Pr,successUrl:Ar,failureUrl:ur}){return k(this,void 0,void 0,function*(){const jr=new URL(window.location.href),Mr=new URL(this._walletBaseUrl+pe);if(Mr.searchParams.set("success_url",Ar||jr.href),Mr.searchParams.set("failure_url",ur||jr.href),$r){yield(yield this._near.account($r)).state(),Mr.searchParams.set("contract_id",$r);const Vr=ce.KeyPair.fromRandom("ed25519");Mr.searchParams.set("public_key",Vr.getPublicKey().toString()),yield this._keyStore.setKey(this._networkId,Ee+Vr.getPublicKey(),Vr)}Pr&&Pr.forEach(Lr=>{Mr.searchParams.append("methodNames",Lr)}),window.location.assign(Mr.toString())})}requestSignTransactions({transactions:$r,meta:Pr,callbackUrl:Ar}){return k(this,void 0,void 0,function*(){const ur=new URL(window.location.href),jr=new URL("sign",this._walletBaseUrl);jr.searchParams.set("transactions",$r.map(Mr=>(0,ve.serialize)(fe.SCHEMA,Mr)).map(Mr=>Buffer.from(Mr).toString("base64")).join(",")),jr.searchParams.set("callbackUrl",Ar||ur.href),Pr&&jr.searchParams.set("meta",Pr),window.location.assign(jr.toString())})}_completeSignInWithAccessKey(){return k(this,void 0,void 0,function*(){const $r=new URL(window.location.href),Pr=$r.searchParams.get("public_key")||"",Ar=($r.searchParams.get("all_keys")||"").split(","),ur=$r.searchParams.get("account_id")||"";if(ur){const jr={accountId:ur,allKeys:Ar};window.localStorage.setItem(this._authDataKey,JSON.stringify(jr)),Pr&&(yield this._moveKeyFromTempToPermanent(ur,Pr)),this._authData=jr}$r.searchParams.delete("public_key"),$r.searchParams.delete("all_keys"),$r.searchParams.delete("account_id"),$r.searchParams.delete("meta"),$r.searchParams.delete("transactionHashes"),window.history.replaceState({},document.title,$r.toString())})}_moveKeyFromTempToPermanent($r,Pr){return k(this,void 0,void 0,function*(){const Ar=yield this._keyStore.getKey(this._networkId,Ee+Pr);yield this._keyStore.setKey(this._networkId,$r,Ar),yield this._keyStore.removeKey(this._networkId,Ee+Pr)})}signOut(){this._authData={},window.localStorage.removeItem(this._authDataKey)}account(){return this._connectedAccount||(this._connectedAccount=new Br(this,this._near.connection,this._authData.accountId)),this._connectedAccount}};v.WalletConnection=cr;var Br=class extends ae.Account{constructor($r,Pr,Ar){super(Pr,Ar),this.walletConnection=$r}signAndSendTransaction({receiverId:$r,actions:Pr,walletMeta:Ar,walletCallbackUrl:ur=window.location.href}){const jr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const Mr=yield this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);let Lr=yield this.accessKeyForTransaction($r,Pr,Mr);if(!Lr)throw new Error(`Cannot find matching key for transaction sent to ${$r}`);if(Mr&&Mr.toString()===Lr.public_key)try{return yield jr.signAndSendTransaction.call(this,{receiverId:$r,actions:Pr})}catch(Yt){if(Yt.type==="NotEnoughAllowance")Lr=yield this.accessKeyForTransaction($r,Pr);else throw Yt}const Vr=yield this.connection.provider.block({finality:"final"}),Gr=(0,ve.baseDecode)(Vr.header.hash),Ur=ce.PublicKey.from(Lr.public_key),Qr=Lr.access_key.nonce.add(new le.default(1)),hn=(0,fe.createTransaction)(this.accountId,Ur,$r,Qr,Pr,Gr);return yield this.walletConnection.requestSignTransactions({transactions:[hn],meta:Ar,callbackUrl:ur}),new Promise((Yt,fn)=>{setTimeout(()=>{fn(new Error("Failed to redirect to sign transaction"))},1e3)})})}accessKeyMatchesTransaction($r,Pr,Ar){return k(this,void 0,void 0,function*(){const{access_key:{permission:ur}}=$r;if(ur==="FullAccess")return!0;if(ur.FunctionCall){const{receiver_id:jr,method_names:Mr}=ur.FunctionCall;if(jr===this.accountId&&Mr.includes(ye))return!0;if(jr===Pr){if(Ar.length!==1)return!1;const[{functionCall:Lr}]=Ar;return Lr&&(!Lr.deposit||Lr.deposit.toString()==="0")&&(Mr.length===0||Mr.includes(Lr.methodName))}}return!1})}accessKeyForTransaction($r,Pr,Ar){return k(this,void 0,void 0,function*(){const ur=yield this.getAccessKeys();if(Ar){const Mr=ur.find(Lr=>Lr.public_key.toString()===Ar.toString());if(Mr&&(yield this.accessKeyMatchesTransaction(Mr,$r,Pr)))return Mr}const jr=this.walletConnection._authData.allKeys;for(const Mr of ur)if(jr.indexOf(Mr.public_key)!==-1&&(yield this.accessKeyMatchesTransaction(Mr,$r,Pr)))return Mr;return null})}};v.ConnectedWalletAccount=Br}}),require_lib12$1=__commonJS({"node_modules/@near-js/wallet-account/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.WalletConnection=v.ConnectedWalletAccount=v.Near=void 0;var k=require_near$2();Object.defineProperty(v,"Near",{enumerable:!0,get:function(){return k.Near}});var ie=require_wallet_account$2();Object.defineProperty(v,"ConnectedWalletAccount",{enumerable:!0,get:function(){return ie.ConnectedWalletAccount}}),Object.defineProperty(v,"WalletConnection",{enumerable:!0,get:function(){return ie.WalletConnection}})}}),require_near2$1=__commonJS({"node_modules/near-api-js/lib/near.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Near=void 0;var k=require_lib12$1();Object.defineProperty(v,"Near",{enumerable:!0,get:function(){return k.Near}})}}),require_wallet_account2$1=__commonJS({"node_modules/near-api-js/lib/wallet-account.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.WalletConnection=v.ConnectedWalletAccount=void 0;var k=require_lib12$1();Object.defineProperty(v,"ConnectedWalletAccount",{enumerable:!0,get:function(){return k.ConnectedWalletAccount}}),Object.defineProperty(v,"WalletConnection",{enumerable:!0,get:function(){return k.WalletConnection}})}}),require_common_index$2=__commonJS({"node_modules/near-api-js/lib/common-index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ur,jr,Mr,Lr){Lr===void 0&&(Lr=Mr);var Vr=Object.getOwnPropertyDescriptor(jr,Mr);(!Vr||("get"in Vr?!jr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return jr[Mr]}}),Object.defineProperty(ur,Lr,Vr)}:function(ur,jr,Mr,Lr){Lr===void 0&&(Lr=Mr),ur[Lr]=jr[Mr]}),ie=v&&v.__setModuleDefault||(Object.create?function(ur,jr){Object.defineProperty(ur,"default",{enumerable:!0,value:jr})}:function(ur,jr){ur.default=jr}),ae=v&&v.__importStar||function(ur){if(ur&&ur.__esModule)return ur;var jr={};if(ur!=null)for(var Mr in ur)Mr!=="default"&&Object.prototype.hasOwnProperty.call(ur,Mr)&&k(jr,ur,Mr);return ie(jr,ur),jr};Object.defineProperty(v,"__esModule",{value:!0}),v.WalletConnection=v.ConnectedWalletAccount=v.Near=v.KeyPair=v.Signer=v.InMemorySigner=v.Contract=v.Connection=v.Account=v.multisig=v.validators=v.transactions=v.utils=v.providers=v.accountCreator=void 0;var ce=ae(require_providers$2());v.providers=ce;var fe=ae(require_utils$5());v.utils=fe;var le=ae(require_transaction$2());v.transactions=le;var ve=ae(require_validators2$1());v.validators=ve;var pe=require_account2$1();Object.defineProperty(v,"Account",{enumerable:!0,get:function(){return pe.Account}});var ye=ae(require_account_multisig2$1());v.multisig=ye;var me=ae(require_account_creator2$1());v.accountCreator=me;var Ee=require_connection2$1();Object.defineProperty(v,"Connection",{enumerable:!0,get:function(){return Ee.Connection}});var cr=require_signer2$1();Object.defineProperty(v,"Signer",{enumerable:!0,get:function(){return cr.Signer}}),Object.defineProperty(v,"InMemorySigner",{enumerable:!0,get:function(){return cr.InMemorySigner}});var Br=require_contract2$1();Object.defineProperty(v,"Contract",{enumerable:!0,get:function(){return Br.Contract}});var $r=require_key_pair2$1();Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return $r.KeyPair}});var Pr=require_near2$1();Object.defineProperty(v,"Near",{enumerable:!0,get:function(){return Pr.Near}});var Ar=require_wallet_account2$1();Object.defineProperty(v,"ConnectedWalletAccount",{enumerable:!0,get:function(){return Ar.ConnectedWalletAccount}}),Object.defineProperty(v,"WalletConnection",{enumerable:!0,get:function(){return Ar.WalletConnection}})}}),require_browser_connect$2=__commonJS({"node_modules/near-api-js/lib/browser-connect.js"(v){var k=v&&v.__awaiter||function(ce,fe,le,ve){function pe(ye){return ye instanceof le?ye:new le(function(me){me(ye)})}return new(le||(le=Promise))(function(ye,me){function Ee($r){try{Br(ve.next($r))}catch(Pr){me(Pr)}}function cr($r){try{Br(ve.throw($r))}catch(Pr){me(Pr)}}function Br($r){$r.done?ye($r.value):pe($r.value).then(Ee,cr)}Br((ve=ve.apply(ce,fe||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.connect=void 0;var ie=require_near2$1();function ae(ce){return k(this,void 0,void 0,function*(){return new ie.Near(ce)})}v.connect=ae}}),require_CapabilityDetector$1=__commonJS({"node_modules/capability/lib/CapabilityDetector.js"(v,k){var ie=function(){this.tests={},this.cache={}};ie.prototype={constructor:ie,define:function(ae,ce){if(typeof ae!="string"||!(ce instanceof Function))throw new Error("Invalid capability definition.");if(this.tests[ae])throw new Error('Duplicated capability definition by "'+ae+'".');this.tests[ae]=ce},check:function(ae){if(!this.test(ae))throw new Error('The current environment does not support "'+ae+'", therefore we cannot continue.')},test:function(ae){if(this.cache[ae]!==void 0)return this.cache[ae];if(!this.tests[ae])throw new Error('Unknown capability with name "'+ae+'".');var ce=this.tests[ae];return this.cache[ae]=!!ce(),this.cache[ae]}},k.exports=ie}}),require_lib13$1=__commonJS({"node_modules/capability/lib/index.js"(v,k){var ie=require_CapabilityDetector$1(),ae=new ie,ce=function(fe){return ae.test(fe)};ce.define=function(fe,le){ae.define(fe,le)},ce.check=function(fe){ae.check(fe)},ce.test=ce,k.exports=ce}}),require_definitions$1=__commonJS({"node_modules/capability/lib/definitions.js"(){var v=require_lib13$1(),k=v.define,ie=v.test;k("strict mode",function(){return this===void 0}),k("arguments.callee.caller",function(){try{return function(){return arguments.callee.caller}()===arguments.callee}catch{return!1}}),k("es5",function(){return ie("Array.prototype.forEach")&&ie("Array.prototype.map")&&ie("Function.prototype.bind")&&ie("Object.create")&&ie("Object.defineProperties")&&ie("Object.defineProperty")&&ie("Object.prototype.hasOwnProperty")}),k("Array.prototype.forEach",function(){return Array.prototype.forEach}),k("Array.prototype.map",function(){return Array.prototype.map}),k("Function.prototype.bind",function(){return Function.prototype.bind}),k("Object.create",function(){return Object.create}),k("Object.defineProperties",function(){return Object.defineProperties}),k("Object.defineProperty",function(){return Object.defineProperty}),k("Object.prototype.hasOwnProperty",function(){return Object.prototype.hasOwnProperty}),k("Error.captureStackTrace",function(){return Error.captureStackTrace}),k("Error.prototype.stack",function(){try{throw new Error}catch(ae){return ae.stack||ae.stacktrace}})}}),require_capability$1=__commonJS({"node_modules/capability/index.js"(v,k){require_definitions$1(),k.exports=require_lib13$1()}}),require_es5$1=__commonJS({"node_modules/capability/es5.js"(){require_capability$1().check("es5")}}),require_prepareStackTrace$1=__commonJS({"node_modules/error-polyfill/lib/prepareStackTrace.js"(v,k){var ie=function(ae,ce,fe){var le="";if(le+=ae.name||"Error",le+=": "+(ae.message||""),fe instanceof Array)for(var ve in fe){var pe=fe[ve];le+=` # `+pe}for(var ye in ce){var me=ce[ye];le+=` at `+me.toString()}return le};k.exports=ie}}),require_v8$1=__commonJS({"node_modules/error-polyfill/lib/v8.js"(v,k){var ie=require_prepareStackTrace$1();k.exports=function(){return Error.getStackTrace=function(ae){return ae.stack},{prepareStackTrace:ie}}}}),require_Class$1=__commonJS({"node_modules/o3/lib/Class.js"(v,k){var ie=function(){var ae=Object.create({Source:Object,config:{},buildArgs:[]});function ce(me){var Ee="config";if(me instanceof Function)Ee="Source";else if(me instanceof Array)Ee="buildArgs";else if(me instanceof Object)Ee="config";else throw new Error("Invalid configuration option.");if(ae.hasOwnProperty(Ee))throw new Error("Duplicated configuration option: "+Ee+".");ae[Ee]=me}for(var fe=0,le=arguments.length;fe=v.length&&(v=void 0),{value:v&&v[ae++],done:!v}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read$1(v,k){var ie=typeof Symbol=="function"&&v[Symbol.iterator];if(!ie)return v;var ae=ie.call(v),ce,fe=[],le;try{for(;(k===void 0||k-- >0)&&!(ce=ae.next()).done;)fe.push(ce.value)}catch(ve){le={error:ve}}finally{try{ce&&!ce.done&&(ie=ae.return)&&ie.call(ae)}finally{if(le)throw le.error}}return fe}function __spreadArray$2(v,k,ie){if(ie||arguments.length===2)for(var ae=0,ce=k.length,fe;ae0},enumerable:!1,configurable:!0}),k.prototype._trySubscribe=function(ie){return this._throwIfClosed(),v.prototype._trySubscribe.call(this,ie)},k.prototype._subscribe=function(ie){return this._throwIfClosed(),this._checkFinalizedStatuses(ie),this._innerSubscribe(ie)},k.prototype._innerSubscribe=function(ie){var ae=this,ce=this,fe=ce.hasError,le=ce.isStopped,ve=ce.observers;return fe||le?EMPTY_SUBSCRIPTION$1:(this.currentObservers=null,ve.push(ie),new Subscription$1(function(){ae.currentObservers=null,arrRemove$1(ve,ie)}))},k.prototype._checkFinalizedStatuses=function(ie){var ae=this,ce=ae.hasError,fe=ae.thrownError,le=ae.isStopped;ce?ie.error(fe):le&&ie.complete()},k.prototype.asObservable=function(){var ie=new Observable$1;return ie.source=this,ie},k.create=function(ie,ae){return new AnonymousSubject$1(ie,ae)},k}(Observable$1),AnonymousSubject$1=function(v){__extends$1(k,v);function k(ie,ae){var ce=v.call(this)||this;return ce.destination=ie,ce.source=ae,ce}return k.prototype.next=function(ie){var ae,ce;(ce=(ae=this.destination)===null||ae===void 0?void 0:ae.next)===null||ce===void 0||ce.call(ae,ie)},k.prototype.error=function(ie){var ae,ce;(ce=(ae=this.destination)===null||ae===void 0?void 0:ae.error)===null||ce===void 0||ce.call(ae,ie)},k.prototype.complete=function(){var ie,ae;(ae=(ie=this.destination)===null||ie===void 0?void 0:ie.complete)===null||ae===void 0||ae.call(ie)},k.prototype._subscribe=function(ie){var ae,ce;return(ce=(ae=this.source)===null||ae===void 0?void 0:ae.subscribe(ie))!==null&&ce!==void 0?ce:EMPTY_SUBSCRIPTION$1},k}(Subject$1);(function(v){__extends$1(k,v);function k(ie){var ae=v.call(this)||this;return ae._value=ie,ae}return Object.defineProperty(k.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),k.prototype._subscribe=function(ie){var ae=v.prototype._subscribe.call(this,ie);return!ae.closed&&ie.next(this._value),ae},k.prototype.getValue=function(){var ie=this,ae=ie.hasError,ce=ie.thrownError,fe=ie._value;if(ae)throw ce;return this._throwIfClosed(),fe},k.prototype.next=function(ie){v.prototype.next.call(this,this._value=ie)},k})(Subject$1);var dateTimestampProvider={now:function(){return(dateTimestampProvider.delegate||Date).now()},delegate:void 0};(function(v){__extends$1(k,v);function k(ie,ae,ce){ie===void 0&&(ie=1/0),ae===void 0&&(ae=1/0),ce===void 0&&(ce=dateTimestampProvider);var fe=v.call(this)||this;return fe._bufferSize=ie,fe._windowTime=ae,fe._timestampProvider=ce,fe._buffer=[],fe._infiniteTimeWindow=!0,fe._infiniteTimeWindow=ae===1/0,fe._bufferSize=Math.max(1,ie),fe._windowTime=Math.max(1,ae),fe}return k.prototype.next=function(ie){var ae=this,ce=ae.isStopped,fe=ae._buffer,le=ae._infiniteTimeWindow,ve=ae._timestampProvider,pe=ae._windowTime;ce||(fe.push(ie),!le&&fe.push(ve.now()+pe)),this._trimBuffer(),v.prototype.next.call(this,ie)},k.prototype._subscribe=function(ie){this._throwIfClosed(),this._trimBuffer();for(var ae=this._innerSubscribe(ie),ce=this,fe=ce._infiniteTimeWindow,le=ce._buffer,ve=le.slice(),pe=0;pe0?v.prototype.requestAsyncId.call(this,ie,ae,ce):(ie.actions.push(this),ie._scheduled||(ie._scheduled=immediateProvider.setImmediate(ie.flush.bind(ie,void 0))))},k.prototype.recycleAsyncId=function(ie,ae,ce){var fe;if(ce===void 0&&(ce=0),ce!=null?ce>0:this.delay>0)return v.prototype.recycleAsyncId.call(this,ie,ae,ce);var le=ie.actions;ae!=null&&((fe=le[le.length-1])===null||fe===void 0?void 0:fe.id)!==ae&&(immediateProvider.clearImmediate(ae),ie._scheduled===ae&&(ie._scheduled=void 0))},k}(AsyncAction),AsyncScheduler=function(v){__extends$1(k,v);function k(ie,ae){ae===void 0&&(ae=Scheduler.now);var ce=v.call(this,ie,ae)||this;return ce.actions=[],ce._active=!1,ce}return k.prototype.flush=function(ie){var ae=this.actions;if(this._active){ae.push(ie);return}var ce;this._active=!0;do if(ce=ie.execute(ie.state,ie.delay))break;while(ie=ae.shift());if(this._active=!1,ce){for(;ie=ae.shift();)ie.unsubscribe();throw ce}},k}(Scheduler),AsapScheduler=function(v){__extends$1(k,v);function k(){return v!==null&&v.apply(this,arguments)||this}return k.prototype.flush=function(ie){this._active=!0;var ae=this._scheduled;this._scheduled=void 0;var ce=this.actions,fe;ie=ie||ce.shift();do if(fe=ie.execute(ie.state,ie.delay))break;while((ie=ce[0])&&ie.id===ae&&ce.shift());if(this._active=!1,fe){for(;(ie=ce[0])&&ie.id===ae&&ce.shift();)ie.unsubscribe();throw fe}},k}(AsyncScheduler);new AsapScheduler(AsapAction);new AsyncScheduler(AsyncAction);var QueueAction=function(v){__extends$1(k,v);function k(ie,ae){var ce=v.call(this,ie,ae)||this;return ce.scheduler=ie,ce.work=ae,ce}return k.prototype.schedule=function(ie,ae){return ae===void 0&&(ae=0),ae>0?v.prototype.schedule.call(this,ie,ae):(this.delay=ae,this.state=ie,this.scheduler.flush(this),this)},k.prototype.execute=function(ie,ae){return ae>0||this.closed?v.prototype.execute.call(this,ie,ae):this._execute(ie,ae)},k.prototype.requestAsyncId=function(ie,ae,ce){return ce===void 0&&(ce=0),ce!=null&&ce>0||ce==null&&this.delay>0?v.prototype.requestAsyncId.call(this,ie,ae,ce):(ie.flush(this),0)},k}(AsyncAction),QueueScheduler=function(v){__extends$1(k,v);function k(){return v!==null&&v.apply(this,arguments)||this}return k}(AsyncScheduler);new QueueScheduler(QueueAction);var AnimationFrameAction=function(v){__extends$1(k,v);function k(ie,ae){var ce=v.call(this,ie,ae)||this;return ce.scheduler=ie,ce.work=ae,ce}return k.prototype.requestAsyncId=function(ie,ae,ce){return ce===void 0&&(ce=0),ce!==null&&ce>0?v.prototype.requestAsyncId.call(this,ie,ae,ce):(ie.actions.push(this),ie._scheduled||(ie._scheduled=animationFrameProvider.requestAnimationFrame(function(){return ie.flush(void 0)})))},k.prototype.recycleAsyncId=function(ie,ae,ce){var fe;if(ce===void 0&&(ce=0),ce!=null?ce>0:this.delay>0)return v.prototype.recycleAsyncId.call(this,ie,ae,ce);var le=ie.actions;ae!=null&&((fe=le[le.length-1])===null||fe===void 0?void 0:fe.id)!==ae&&(animationFrameProvider.cancelAnimationFrame(ae),ie._scheduled=void 0)},k}(AsyncAction),AnimationFrameScheduler=function(v){__extends$1(k,v);function k(){return v!==null&&v.apply(this,arguments)||this}return k.prototype.flush=function(ie){this._active=!0;var ae=this._scheduled;this._scheduled=void 0;var ce=this.actions,fe;ie=ie||ce.shift();do if(fe=ie.execute(ie.state,ie.delay))break;while((ie=ce[0])&&ie.id===ae&&ce.shift());if(this._active=!1,fe){for(;(ie=ce[0])&&ie.id===ae&&ce.shift();)ie.unsubscribe();throw fe}},k}(AsyncScheduler);new AnimationFrameScheduler(AnimationFrameAction);(function(v){__extends$1(k,v);function k(ie,ae){ie===void 0&&(ie=VirtualAction),ae===void 0&&(ae=1/0);var ce=v.call(this,ie,function(){return ce.frame})||this;return ce.maxFrames=ae,ce.frame=0,ce.index=-1,ce}return k.prototype.flush=function(){for(var ie=this,ae=ie.actions,ce=ie.maxFrames,fe,le;(le=ae[0])&&le.delay<=ce&&(ae.shift(),this.frame=le.delay,!(fe=le.execute(le.state,le.delay))););if(fe){for(;le=ae.shift();)le.unsubscribe();throw fe}},k.frameTimeFactor=10,k})(AsyncScheduler);var VirtualAction=function(v){__extends$1(k,v);function k(ie,ae,ce){ce===void 0&&(ce=ie.index+=1);var fe=v.call(this,ie,ae)||this;return fe.scheduler=ie,fe.work=ae,fe.index=ce,fe.active=!0,fe.index=ie.index=ce,fe}return k.prototype.schedule=function(ie,ae){if(ae===void 0&&(ae=0),Number.isFinite(ae)){if(!this.id)return v.prototype.schedule.call(this,ie,ae);this.active=!1;var ce=new k(this.scheduler,this.work);return this.add(ce),ce.schedule(ie,ae)}else return Subscription$1.EMPTY},k.prototype.requestAsyncId=function(ie,ae,ce){ce===void 0&&(ce=0),this.delay=ie.frame+ce;var fe=ie.actions;return fe.push(this),fe.sort(k.sortActions),1},k.prototype.recycleAsyncId=function(ie,ae,ce){},k.prototype._execute=function(ie,ae){if(this.active===!0)return v.prototype._execute.call(this,ie,ae)},k.sortActions=function(ie,ae){return ie.delay===ae.delay?ie.index===ae.index?0:ie.index>ae.index?1:-1:ie.delay>ae.delay?1:-1},k}(AsyncAction);new Observable$1(function(v){return v.complete()});var NotificationKind;(function(v){v.NEXT="N",v.ERROR="E",v.COMPLETE="C"})(NotificationKind||(NotificationKind={}));createErrorClass$1(function(v){return function(){v(this),this.name="EmptyError",this.message="no elements in sequence"}});createErrorClass$1(function(v){return function(){v(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}});createErrorClass$1(function(v){return function(ie){v(this),this.name="NotFoundError",this.message=ie}});createErrorClass$1(function(v){return function(ie){v(this),this.name="SequenceError",this.message=ie}});createErrorClass$1(function(v){return function(ie){ie===void 0&&(ie=null),v(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ie}});function map(v,k){return operate$1(function(ie,ae){var ce=0;ie.subscribe(createOperatorSubscriber$1(ae,function(fe){ae.next(v.call(k,fe,ce++))}))})}new Observable$1(noop$d);function distinctUntilChanged(v,k){return k===void 0&&(k=identity$2),v=v!=null?v:defaultCompare,operate$1(function(ie,ae){var ce,fe=!0;ie.subscribe(createOperatorSubscriber$1(ae,function(le){var ve=k(le);(fe||!v(ce,ve))&&(fe=!1,ce=ve,ae.next(le))}))})}function defaultCompare(v,k){return v===k}const CONTRACT_ID="guest-book.testnet",_export_sfc=(v,k)=>{const ie=v.__vccOpts||v;for(const[ae,ce]of k)ie[ae]=ce;return ie},_sfc_main$4={},_hoisted_1$3=createBaseVNode("p",null," This app demonstrates a key element of NEAR\u2019s UX: once an app has permission to make calls on behalf of a user (that is, once a user signs in), the app can make calls to the blockchain for them without prompting extra confirmation. So you\u2019ll see that if you don\u2019t include a donation, your message gets posted right to the guest book. ",-1),_hoisted_2$2=createBaseVNode("p",null," But if you do add a donation, then NEAR will double-check that you\u2019re ok with sending money to this app. ",-1),_hoisted_3$1=createBaseVNode("p",null,"Go ahead and sign in to try it out!",-1);function _sfc_render(v,k){return openBlock(),createElementBlock(Fragment$1,null,[_hoisted_1$3,_hoisted_2$2,_hoisted_3$1],64)}const SignIn=_export_sfc(_sfc_main$4,[["render",_sfc_render]]),_hoisted_1$2=createBaseVNode("h2",null,"Messages",-1),_hoisted_2$1=createBaseVNode("br",null,null,-1),_sfc_main$3=defineComponent({__name:"Message",props:{messages:null},setup(v){return(k,ie)=>(openBlock(),createElementBlock(Fragment$1,null,[_hoisted_1$2,(openBlock(!0),createElementBlock(Fragment$1,null,renderList(v.messages,ae=>(openBlock(),createElementBlock("p",{class:normalizeClass(ae.premium?"is-premium":"")},[createBaseVNode("strong",null,toDisplayString(ae.sender),1),createTextVNode(":"),_hoisted_2$1,createTextVNode(" "+toDisplayString(ae.text),1)],2))),256))],64))}});var DP=20,RM=1,MAX_DP=1e6,MAX_POWER=1e6,NE=-7,PE=21,STRICT=!1,NAME$5="[big.js] ",INVALID=NAME$5+"Invalid ",INVALID_DP=INVALID+"decimal places",INVALID_RM=INVALID+"rounding mode",DIV_BY_ZERO=NAME$5+"Division by zero",P$1={},UNDEFINED=void 0,NUMERIC=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function _Big_(){function v(k){var ie=this;if(!(ie instanceof v))return k===UNDEFINED?_Big_():new v(k);if(k instanceof v)ie.s=k.s,ie.e=k.e,ie.c=k.c.slice();else{if(typeof k!="string"){if(v.strict===!0&&typeof k!="bigint")throw TypeError(INVALID+"value");k=k===0&&1/k<0?"-0":String(k)}parse$2(ie,k)}ie.constructor=v}return v.prototype=P$1,v.DP=DP,v.RM=RM,v.NE=NE,v.PE=PE,v.strict=STRICT,v.roundDown=0,v.roundHalfUp=1,v.roundHalfEven=2,v.roundUp=3,v}function parse$2(v,k){var ie,ae,ce;if(!NUMERIC.test(k))throw Error(INVALID+"number");for(v.s=k.charAt(0)=="-"?(k=k.slice(1),-1):1,(ie=k.indexOf("."))>-1&&(k=k.replace(".","")),(ae=k.search(/e/i))>0?(ie<0&&(ie=ae),ie+=+k.slice(ae+1),k=k.substring(0,ae)):ie<0&&(ie=k.length),ce=k.length,ae=0;ae0&&k.charAt(--ce)=="0";);for(v.e=ie-ae-1,v.c=[],ie=0;ae<=ce;)v.c[ie++]=+k.charAt(ae++)}return v}function round$5(v,k,ie,ae){var ce=v.c;if(ie===UNDEFINED&&(ie=v.constructor.RM),ie!==0&&ie!==1&&ie!==2&&ie!==3)throw Error(INVALID_RM);if(k<1)ae=ie===3&&(ae||!!ce[0])||k===0&&(ie===1&&ce[0]>=5||ie===2&&(ce[0]>5||ce[0]===5&&(ae||ce[1]!==UNDEFINED))),ce.length=1,ae?(v.e=v.e-k+1,ce[0]=1):ce[0]=v.e=0;else if(k=5||ie===2&&(ce[k]>5||ce[k]===5&&(ae||ce[k+1]!==UNDEFINED||ce[k-1]&1))||ie===3&&(ae||!!ce[0]),ce.length=k,ae){for(;++ce[--k]>9;)if(ce[k]=0,k===0){++v.e,ce.unshift(1);break}}for(k=ce.length;!ce[--k];)ce.pop()}return v}function stringify$1(v,k,ie){var ae=v.e,ce=v.c.join(""),fe=ce.length;if(k)ce=ce.charAt(0)+(fe>1?"."+ce.slice(1):"")+(ae<0?"e":"e+")+ae;else if(ae<0){for(;++ae;)ce="0"+ce;ce="0."+ce}else if(ae>0)if(++ae>fe)for(ae-=fe;ae--;)ce+="0";else ae1&&(ce=ce.charAt(0)+"."+ce.slice(1));return v.s<0&&ie?"-"+ce:ce}P$1.abs=function(){var v=new this.constructor(this);return v.s=1,v};P$1.cmp=function(v){var k,ie=this,ae=ie.c,ce=(v=new ie.constructor(v)).c,fe=ie.s,le=v.s,ve=ie.e,pe=v.e;if(!ae[0]||!ce[0])return ae[0]?fe:ce[0]?-le:0;if(fe!=le)return fe;if(k=fe<0,ve!=pe)return ve>pe^k?1:-1;for(le=(ve=ae.length)<(pe=ce.length)?ve:pe,fe=-1;++fece[fe]^k?1:-1;return ve==pe?0:ve>pe^k?1:-1};P$1.div=function(v){var k=this,ie=k.constructor,ae=k.c,ce=(v=new ie(v)).c,fe=k.s==v.s?1:-1,le=ie.DP;if(le!==~~le||le<0||le>MAX_DP)throw Error(INVALID_DP);if(!ce[0])throw Error(DIV_BY_ZERO);if(!ae[0])return v.s=fe,v.c=[v.e=0],v;var ve,pe,ye,me,Ee,cr=ce.slice(),Br=ve=ce.length,$r=ae.length,Pr=ae.slice(0,ve),Or=Pr.length,ur=v,jr=ur.c=[],Mr=0,Lr=le+(ur.e=k.e-v.e)+1;for(ur.s=fe,fe=Lr<0?0:Lr,cr.unshift(0);Or++Or?1:-1;else for(Ee=-1,me=0;++EePr[Ee]?1:-1;break}if(me<0){for(pe=Or==ve?ce:cr;Or;){if(Pr[--Or]Lr&&round$5(ur,Lr,ie.RM,Pr[0]!==UNDEFINED),ur};P$1.eq=function(v){return this.cmp(v)===0};P$1.gt=function(v){return this.cmp(v)>0};P$1.gte=function(v){return this.cmp(v)>-1};P$1.lt=function(v){return this.cmp(v)<0};P$1.lte=function(v){return this.cmp(v)<1};P$1.minus=P$1.sub=function(v){var k,ie,ae,ce,fe=this,le=fe.constructor,ve=fe.s,pe=(v=new le(v)).s;if(ve!=pe)return v.s=-pe,fe.plus(v);var ye=fe.c.slice(),me=fe.e,Ee=v.c,cr=v.e;if(!ye[0]||!Ee[0])return Ee[0]?v.s=-pe:ye[0]?v=new le(fe):v.s=1,v;if(ve=me-cr){for((ce=ve<0)?(ve=-ve,ae=ye):(cr=me,ae=Ee),ae.reverse(),pe=ve;pe--;)ae.push(0);ae.reverse()}else for(ie=((ce=ye.length0)for(;pe--;)ye[k++]=0;for(pe=k;ie>ve;){if(ye[--ie]0?(pe=le,ae=ye):(k=-k,ae=ve),ae.reverse();k--;)ae.push(0);ae.reverse()}for(ve.length-ye.length<0&&(ae=ye,ye=ve,ve=ae),k=ye.length,ie=0;k;ve[k]%=10)ie=(ve[--k]=ve[k]+ye[k]+ie)/10|0;for(ie&&(ve.unshift(ie),++pe),k=ve.length;ve[--k]===0;)ve.pop();return v.c=ve,v.e=pe,v};P$1.pow=function(v){var k=this,ie=new k.constructor("1"),ae=ie,ce=v<0;if(v!==~~v||v<-MAX_POWER||v>MAX_POWER)throw Error(INVALID+"exponent");for(ce&&(v=-v);v&1&&(ae=ae.times(k)),v>>=1,!!v;)k=k.times(k);return ce?ie.div(ae):ae};P$1.prec=function(v,k){if(v!==~~v||v<1||v>MAX_DP)throw Error(INVALID+"precision");return round$5(new this.constructor(this),v,k)};P$1.round=function(v,k){if(v===UNDEFINED)v=0;else if(v!==~~v||v<-MAX_DP||v>MAX_DP)throw Error(INVALID_DP);return round$5(new this.constructor(this),v+this.e+1,k)};P$1.sqrt=function(){var v,k,ie,ae=this,ce=ae.constructor,fe=ae.s,le=ae.e,ve=new ce("0.5");if(!ae.c[0])return new ce(ae);if(fe<0)throw Error(NAME$5+"No square root");fe=Math.sqrt(ae+""),fe===0||fe===1/0?(k=ae.c.join(""),k.length+le&1||(k+="0"),fe=Math.sqrt(k),le=((le+1)/2|0)-(le<0||le&1),v=new ce((fe==1/0?"5e":(fe=fe.toExponential()).slice(0,fe.indexOf("e")+1))+le)):v=new ce(fe+""),le=v.e+(ce.DP+=4);do ie=v,v=ve.times(ie.plus(ae.div(ie)));while(ie.c.slice(0,le).join("")!==v.c.slice(0,le).join(""));return round$5(v,(ce.DP-=4)+v.e+1,ce.RM)};P$1.times=P$1.mul=function(v){var k,ie=this,ae=ie.constructor,ce=ie.c,fe=(v=new ae(v)).c,le=ce.length,ve=fe.length,pe=ie.e,ye=v.e;if(v.s=ie.s==v.s?1:-1,!ce[0]||!fe[0])return v.c=[v.e=0],v;for(v.e=pe+ye,lepe;)ve=k[ye]+fe[pe]*ce[ye-pe-1]+ve,k[ye--]=ve%10,ve=ve/10|0;k[ye]=ve}for(ve?++v.e:k.shift(),pe=k.length;!k[--pe];)k.pop();return v.c=k,v};P$1.toExponential=function(v,k){var ie=this,ae=ie.c[0];if(v!==UNDEFINED){if(v!==~~v||v<0||v>MAX_DP)throw Error(INVALID_DP);for(ie=round$5(new ie.constructor(ie),++v,k);ie.c.lengthMAX_DP)throw Error(INVALID_DP);for(ie=round$5(new ie.constructor(ie),v+ie.e+1,k),v=v+ie.e+1;ie.c.length=k.PE,!!v.c[0])};P$1.toNumber=function(){var v=Number(stringify$1(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(v.toString()))throw Error(NAME$5+"Imprecise conversion");return v};P$1.toPrecision=function(v,k){var ie=this,ae=ie.constructor,ce=ie.c[0];if(v!==UNDEFINED){if(v!==~~v||v<1||v>MAX_DP)throw Error(INVALID+"precision");for(ie=round$5(new ae(ie),v,k);ie.c.length=ae.PE,!!ce)};P$1.valueOf=function(){var v=this,k=v.constructor;if(k.strict===!0)throw Error(NAME$5+"valueOf disallowed");return stringify$1(v,v.e<=k.NE||v.e>=k.PE,!0)};var Big=_Big_(),big_default=Big,big_js_default=big_default;const _hoisted_1$1={id:"fieldset"},_hoisted_2=createBaseVNode("p",{class:"highlight"},[createBaseVNode("label",{for:"message"},"Message:"),createBaseVNode("input",{autoComplete:"off",autoFocus:"",id:"message",required:""})],-1),_hoisted_3=createStaticVNode('

\u24C3

',3),_sfc_main$2=defineComponent({__name:"Form",props:{account:null,onSubmit:null},setup(v){return big_js_default(v.account.amount).div(10**24).toString(),(ie,ae)=>(openBlock(),createElementBlock("form",{onSubmit:ae[0]||(ae[0]=withModifiers((...ce)=>v.onSubmit&&v.onSubmit(...ce),["prevent"]))},[createBaseVNode("fieldset",_hoisted_1$1,[createBaseVNode("p",null,"Sign the guest book, "+toDisplayString(v.account.account_id)+"!",1),_hoisted_2,_hoisted_3])],32))}}),providers=near_api_js_default.providers,utils=near_api_js_default.utils,Buffer$1=buffer_default.Buffer,_sfc_main$1=defineComponent({__name:"Content",props:{selector:null,modal:null,accountId:null,accounts:null},setup(v){const{selector:k,modal:ie,accountId:ae,accounts:ce}=v,fe="0",le=utils.format.parseNearAmount("0.00000000003"),ve=reactive({account:null,messages:[],subscription:new Subscription$1,currentAccounts:[],currentAccountId:null}),pe=async()=>{if(!ve.currentAccountId)return null;const{network:jr}=k.options;return new providers.JsonRpcProvider({url:jr.nodeUrl}).query({request_type:"view_account",finality:"final",account_id:ve.currentAccountId}).then(Lr=>({...Lr,account_id:ve.currentAccountId}))},ye=()=>{ie.show()},me=async()=>{(await k.wallet()).signOut().catch(Mr=>{console.log("Failed to sign out"),console.error(Mr)})},Ee=()=>{ie.show()},cr=()=>{const{network:jr}=k.options;return new providers.JsonRpcProvider({url:jr.nodeUrl}).query({request_type:"call_function",account_id:CONTRACT_ID,method_name:"getMessages",args_base64:"",finality:"optimistic"}).then(Lr=>JSON.parse(Buffer$1.from(Lr.result).toString()))},Br=()=>{const jr=ce.findIndex(Vr=>Vr.accountId===ae),Mr=jr{const jr=await k.wallet();try{const Mr=await jr.verifyOwner({message:"test message for verification"});Mr&&alert(`Signature for verification: ${JSON.stringify(Mr)}`)}catch(Mr){const Lr=Mr instanceof Error?Mr.message:"Something went wrong";alert(Lr)}},Pr=()=>{ve.subscription=k.store.observable.pipe(map(jr=>jr.accounts),distinctUntilChanged()).subscribe(jr=>{var Mr;console.log("Accounts Update",jr),ve.currentAccounts=jr,ve.currentAccountId=((Mr=jr.find(Lr=>Lr.active))==null?void 0:Mr.accountId)||null,pe().then(Lr=>{ve.account=Lr})})},Or=async(jr,Mr,Lr)=>{const{contract:Vr}=k.store.getState(),Gr=await k.wallet();if(!Lr)return Gr.signAndSendTransaction({signerId:ve.currentAccountId,actions:[{type:"FunctionCall",params:{methodName:"addMessage",args:{text:jr},gas:le,deposit:utils.format.parseNearAmount(Mr)}}]}).catch(Qr=>{throw alert("Failed to add message"),console.log("Failed to add message"),Qr});const Ur=[];for(let Qr=0;Qr<2;Qr+=1)Ur.push({signerId:ve.currentAccountId,receiverId:Vr.contractId,actions:[{type:"FunctionCall",params:{methodName:"addMessage",args:{text:`${jr} (${Qr+1}/2)`},gas:le,deposit:utils.format.parseNearAmount(Mr)}}]});return Gr.signAndSendTransactions({transactions:Ur}).catch(Qr=>{throw alert("Failed to add messages"),console.log("Failed to add messages"),Qr})},ur=jr=>{const{fieldset:Mr,message:Lr,donation:Vr,multiple:Gr}=jr.target.elements;Mr.disabled=!0,Or(Lr.value,Vr.value||"0",Gr.checked).then(()=>cr().then(Ur=>{ve.messages=Ur,Lr.value="",Vr.value=fe,Mr.disabled=!1,Gr.checked=!1,Lr.focus()}).catch(Ur=>{throw alert("Failed to refresh messages"),console.log("Failed to refresh messages"),Ur})).catch(Ur=>{console.error(Ur),Mr.disabled=!1})};return onMounted(async()=>{ve.currentAccountId=ae,ve.currentAccounts=ce;const[jr,Mr]=await Promise.all([cr(),pe()]);ve.account=Mr,ve.messages=jr,Pr()}),onUnmounted(()=>{ve.subscription.unsubscribe()}),(jr,Mr)=>ve.account?(openBlock(),createElementBlock(Fragment$1,{key:0},[createBaseVNode("div",null,[createBaseVNode("button",{onClick:me},"Log out"),createBaseVNode("button",{onClick:Ee},"Switch Provider"),createBaseVNode("button",{onClick:$r},"Verify Owner"),v.accounts.length>1?(openBlock(),createElementBlock("button",{key:0,onClick:Br}," Switch Account ")):createCommentVNode("",!0)]),createVNode(_sfc_main$2,{account:ve.account,onSubmit:ur},null,8,["account"]),createVNode(_sfc_main$3,{messages:ve.messages},null,8,["messages"])],64)):(openBlock(),createElementBlock(Fragment$1,{key:1},[createBaseVNode("div",null,[createBaseVNode("button",{onClick:ye},"Log in for testing")]),createVNode(SignIn)],64))}});var require_events=__commonJS$1({"node_modules/events/events.js"(v,k){var ie=typeof Reflect=="object"?Reflect:null,ae=ie&&typeof ie.apply=="function"?ie.apply:function(Ur,Qr,vn){return Function.prototype.apply.call(Ur,Qr,vn)},ce;ie&&typeof ie.ownKeys=="function"?ce=ie.ownKeys:Object.getOwnPropertySymbols?ce=function(Ur){return Object.getOwnPropertyNames(Ur).concat(Object.getOwnPropertySymbols(Ur))}:ce=function(Ur){return Object.getOwnPropertyNames(Ur)};function fe(Gr){console&&console.warn&&console.warn(Gr)}var le=Number.isNaN||function(Ur){return Ur!==Ur};function ve(){ve.init.call(this)}k.exports=ve,k.exports.once=Mr,ve.EventEmitter=ve,ve.prototype._events=void 0,ve.prototype._eventsCount=0,ve.prototype._maxListeners=void 0;var pe=10;function ye(Gr){if(typeof Gr!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Gr)}Object.defineProperty(ve,"defaultMaxListeners",{enumerable:!0,get:function(){return pe},set:function(Gr){if(typeof Gr!="number"||Gr<0||le(Gr))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Gr+".");pe=Gr}}),ve.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ve.prototype.setMaxListeners=function(Ur){if(typeof Ur!="number"||Ur<0||le(Ur))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ur+".");return this._maxListeners=Ur,this};function me(Gr){return Gr._maxListeners===void 0?ve.defaultMaxListeners:Gr._maxListeners}ve.prototype.getMaxListeners=function(){return me(this)},ve.prototype.emit=function(Ur){for(var Qr=[],vn=1;vn0&&(Xt=Qr[0]),Xt instanceof Error)throw Xt;var Qt=new Error("Unhandled error."+(Xt?" ("+Xt.message+")":""));throw Qt.context=Xt,Qt}var Kr=fn[Ur];if(Kr===void 0)return!1;if(typeof Kr=="function")ae(Kr,this,Qr);else for(var be=Kr.length,kr=Or(Kr,be),vn=0;vn0&&Xt.length>Yt&&!Xt.warned){Xt.warned=!0;var Qt=new Error("Possible EventEmitter memory leak detected. "+Xt.length+" "+String(Ur)+" listeners added. Use emitter.setMaxListeners() to increase limit");Qt.name="MaxListenersExceededWarning",Qt.emitter=Gr,Qt.type=Ur,Qt.count=Xt.length,fe(Qt)}return Gr}ve.prototype.addListener=function(Ur,Qr){return Ee(this,Ur,Qr,!1)},ve.prototype.on=ve.prototype.addListener,ve.prototype.prependListener=function(Ur,Qr){return Ee(this,Ur,Qr,!0)};function cr(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Br(Gr,Ur,Qr){var vn={fired:!1,wrapFn:void 0,target:Gr,type:Ur,listener:Qr},Yt=cr.bind(vn);return Yt.listener=Qr,vn.wrapFn=Yt,Yt}ve.prototype.once=function(Ur,Qr){return ye(Qr),this.on(Ur,Br(this,Ur,Qr)),this},ve.prototype.prependOnceListener=function(Ur,Qr){return ye(Qr),this.prependListener(Ur,Br(this,Ur,Qr)),this},ve.prototype.removeListener=function(Ur,Qr){var vn,Yt,fn,Xt,Qt;if(ye(Qr),Yt=this._events,Yt===void 0)return this;if(vn=Yt[Ur],vn===void 0)return this;if(vn===Qr||vn.listener===Qr)--this._eventsCount===0?this._events=Object.create(null):(delete Yt[Ur],Yt.removeListener&&this.emit("removeListener",Ur,vn.listener||Qr));else if(typeof vn!="function"){for(fn=-1,Xt=vn.length-1;Xt>=0;Xt--)if(vn[Xt]===Qr||vn[Xt].listener===Qr){Qt=vn[Xt].listener,fn=Xt;break}if(fn<0)return this;fn===0?vn.shift():ur(vn,fn),vn.length===1&&(Yt[Ur]=vn[0]),Yt.removeListener!==void 0&&this.emit("removeListener",Ur,Qt||Qr)}return this},ve.prototype.off=ve.prototype.removeListener,ve.prototype.removeAllListeners=function(Ur){var Qr,vn,Yt;if(vn=this._events,vn===void 0)return this;if(vn.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):vn[Ur]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete vn[Ur]),this;if(arguments.length===0){var fn=Object.keys(vn),Xt;for(Yt=0;Yt=0;Yt--)this.removeListener(Ur,Qr[Yt]);return this};function $r(Gr,Ur,Qr){var vn=Gr._events;if(vn===void 0)return[];var Yt=vn[Ur];return Yt===void 0?[]:typeof Yt=="function"?Qr?[Yt.listener||Yt]:[Yt]:Qr?jr(Yt):Or(Yt,Yt.length)}ve.prototype.listeners=function(Ur){return $r(this,Ur,!0)},ve.prototype.rawListeners=function(Ur){return $r(this,Ur,!1)},ve.listenerCount=function(Gr,Ur){return typeof Gr.listenerCount=="function"?Gr.listenerCount(Ur):Pr.call(Gr,Ur)},ve.prototype.listenerCount=Pr;function Pr(Gr){var Ur=this._events;if(Ur!==void 0){var Qr=Ur[Gr];if(typeof Qr=="function")return 1;if(Qr!==void 0)return Qr.length}return 0}ve.prototype.eventNames=function(){return this._eventsCount>0?ce(this._events):[]};function Or(Gr,Ur){for(var Qr=new Array(Ur),vn=0;vn0?be:kr},le.min=function(be,kr){return be.cmp(kr)<0?be:kr},le.prototype._init=function(be,kr,xr){if(typeof be=="number")return this._initNumber(be,kr,xr);if(typeof be=="object")return this._initArray(be,kr,xr);kr==="hex"&&(kr=16),ce(kr===(kr|0)&&kr>=2&&kr<=36),be=be.toString().replace(/\s+/g,"");var Wr=0;be[0]==="-"&&(Wr++,this.negative=1),Wr=0;Wr-=3)Xr=be[Wr]|be[Wr-1]<<8|be[Wr-2]<<16,this.words[Jt]|=Xr<>>26-zr&67108863,zr+=24,zr>=26&&(zr-=26,Jt++);else if(xr==="le")for(Wr=0,Jt=0;Wr>>26-zr&67108863,zr+=24,zr>=26&&(zr-=26,Jt++);return this._strip()};function pe(Kr,be){var kr=Kr.charCodeAt(be);if(kr>=48&&kr<=57)return kr-48;if(kr>=65&&kr<=70)return kr-55;if(kr>=97&&kr<=102)return kr-87;ce(!1,"Invalid character in "+Kr)}function ye(Kr,be,kr){var xr=pe(Kr,kr);return kr-1>=be&&(xr|=pe(Kr,kr-1)<<4),xr}le.prototype._parseHex=function(be,kr,xr){this.length=Math.ceil((be.length-kr)/6),this.words=new Array(this.length);for(var Wr=0;Wr=kr;Wr-=2)zr=ye(be,kr,Wr)<=18?(Jt-=18,Xr+=1,this.words[Xr]|=zr>>>26):Jt+=8;else{var Jr=be.length-kr;for(Wr=Jr%2===0?kr+1:kr;Wr=18?(Jt-=18,Xr+=1,this.words[Xr]|=zr>>>26):Jt+=8}this._strip()};function me(Kr,be,kr,xr){for(var Wr=0,Jt=0,Xr=Math.min(Kr.length,kr),zr=be;zr=49?Jt=Jr-49+10:Jr>=17?Jt=Jr-17+10:Jt=Jr,ce(Jr>=0&&Jt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},le.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{le.prototype[Symbol.for("nodejs.util.inspect.custom")]=cr}catch{le.prototype.inspect=cr}else le.prototype.inspect=cr;function cr(){return(this.red?""}var Br=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],$r=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Pr=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];le.prototype.toString=function(be,kr){be=be||10,kr=kr|0||1;var xr;if(be===16||be==="hex"){xr="";for(var Wr=0,Jt=0,Xr=0;Xr>>24-Wr&16777215,Wr+=2,Wr>=26&&(Wr-=26,Xr--),Jt!==0||Xr!==this.length-1?xr=Br[6-Jr.length]+Jr+xr:xr=Jr+xr}for(Jt!==0&&(xr=Jt.toString(16)+xr);xr.length%kr!==0;)xr="0"+xr;return this.negative!==0&&(xr="-"+xr),xr}if(be===(be|0)&&be>=2&&be<=36){var Nr=$r[be],Hr=Pr[be];xr="";var On=this.clone();for(On.negative=0;!On.isZero();){var Gn=On.modrn(Hr).toString(be);On=On.idivn(Hr),On.isZero()?xr=Gn+xr:xr=Br[Nr-Gn.length]+Gn+xr}for(this.isZero()&&(xr="0"+xr);xr.length%kr!==0;)xr="0"+xr;return this.negative!==0&&(xr="-"+xr),xr}ce(!1,"Base should be between 2 and 36")},le.prototype.toNumber=function(){var be=this.words[0];return this.length===2?be+=this.words[1]*67108864:this.length===3&&this.words[2]===1?be+=4503599627370496+this.words[1]*67108864:this.length>2&&ce(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-be:be},le.prototype.toJSON=function(){return this.toString(16,2)},ve&&(le.prototype.toBuffer=function(be,kr){return this.toArrayLike(ve,be,kr)}),le.prototype.toArray=function(be,kr){return this.toArrayLike(Array,be,kr)};var Or=function(be,kr){return be.allocUnsafe?be.allocUnsafe(kr):new be(kr)};le.prototype.toArrayLike=function(be,kr,xr){this._strip();var Wr=this.byteLength(),Jt=xr||Math.max(1,Wr);ce(Wr<=Jt,"byte array longer than desired length"),ce(Jt>0,"Requested array length <= 0");var Xr=Or(be,Jt),zr=kr==="le"?"LE":"BE";return this["_toArrayLike"+zr](Xr,Wr),Xr},le.prototype._toArrayLikeLE=function(be,kr){for(var xr=0,Wr=0,Jt=0,Xr=0;Jt>8&255),xr>16&255),Xr===6?(xr>24&255),Wr=0,Xr=0):(Wr=zr>>>24,Xr+=2)}if(xr=0&&(be[xr--]=zr>>8&255),xr>=0&&(be[xr--]=zr>>16&255),Xr===6?(xr>=0&&(be[xr--]=zr>>24&255),Wr=0,Xr=0):(Wr=zr>>>24,Xr+=2)}if(xr>=0)for(be[xr--]=Wr;xr>=0;)be[xr--]=0},Math.clz32?le.prototype._countBits=function(be){return 32-Math.clz32(be)}:le.prototype._countBits=function(be){var kr=be,xr=0;return kr>=4096&&(xr+=13,kr>>>=13),kr>=64&&(xr+=7,kr>>>=7),kr>=8&&(xr+=4,kr>>>=4),kr>=2&&(xr+=2,kr>>>=2),xr+kr},le.prototype._zeroBits=function(be){if(be===0)return 26;var kr=be,xr=0;return(kr&8191)===0&&(xr+=13,kr>>>=13),(kr&127)===0&&(xr+=7,kr>>>=7),(kr&15)===0&&(xr+=4,kr>>>=4),(kr&3)===0&&(xr+=2,kr>>>=2),(kr&1)===0&&xr++,xr},le.prototype.bitLength=function(){var be=this.words[this.length-1],kr=this._countBits(be);return(this.length-1)*26+kr};function ur(Kr){for(var be=new Array(Kr.bitLength()),kr=0;kr>>Wr&1}return be}le.prototype.zeroBits=function(){if(this.isZero())return 0;for(var be=0,kr=0;krbe.length?this.clone().ior(be):be.clone().ior(this)},le.prototype.uor=function(be){return this.length>be.length?this.clone().iuor(be):be.clone().iuor(this)},le.prototype.iuand=function(be){var kr;this.length>be.length?kr=be:kr=this;for(var xr=0;xrbe.length?this.clone().iand(be):be.clone().iand(this)},le.prototype.uand=function(be){return this.length>be.length?this.clone().iuand(be):be.clone().iuand(this)},le.prototype.iuxor=function(be){var kr,xr;this.length>be.length?(kr=this,xr=be):(kr=be,xr=this);for(var Wr=0;Wrbe.length?this.clone().ixor(be):be.clone().ixor(this)},le.prototype.uxor=function(be){return this.length>be.length?this.clone().iuxor(be):be.clone().iuxor(this)},le.prototype.inotn=function(be){ce(typeof be=="number"&&be>=0);var kr=Math.ceil(be/26)|0,xr=be%26;this._expand(kr),xr>0&&kr--;for(var Wr=0;Wr0&&(this.words[Wr]=~this.words[Wr]&67108863>>26-xr),this._strip()},le.prototype.notn=function(be){return this.clone().inotn(be)},le.prototype.setn=function(be,kr){ce(typeof be=="number"&&be>=0);var xr=be/26|0,Wr=be%26;return this._expand(xr+1),kr?this.words[xr]=this.words[xr]|1<be.length?(xr=this,Wr=be):(xr=be,Wr=this);for(var Jt=0,Xr=0;Xr>>26;for(;Jt!==0&&Xr>>26;if(this.length=xr.length,Jt!==0)this.words[this.length]=Jt,this.length++;else if(xr!==this)for(;Xrbe.length?this.clone().iadd(be):be.clone().iadd(this)},le.prototype.isub=function(be){if(be.negative!==0){be.negative=0;var kr=this.iadd(be);return be.negative=1,kr._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(be),this.negative=1,this._normSign();var xr=this.cmp(be);if(xr===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Wr,Jt;xr>0?(Wr=this,Jt=be):(Wr=be,Jt=this);for(var Xr=0,zr=0;zr>26,this.words[zr]=kr&67108863;for(;Xr!==0&&zr>26,this.words[zr]=kr&67108863;if(Xr===0&&zr>>26,On=Jr&67108863,Gn=Math.min(Nr,be.length-1),mn=Math.max(0,Nr-Kr.length+1);mn<=Gn;mn++){var Nn=Nr-mn|0;Wr=Kr.words[Nn]|0,Jt=be.words[mn]|0,Xr=Wr*Jt+On,Hr+=Xr/67108864|0,On=Xr&67108863}kr.words[Nr]=On|0,Jr=Hr|0}return Jr!==0?kr.words[Nr]=Jr|0:kr.length--,kr._strip()}var Mr=function(be,kr,xr){var Wr=be.words,Jt=kr.words,Xr=xr.words,zr=0,Jr,Nr,Hr,On=Wr[0]|0,Gn=On&8191,mn=On>>>13,Nn=Wr[1]|0,In=Nn&8191,bn=Nn>>>13,ii=Wr[2]|0,hn=ii&8191,pn=ii>>>13,Sn=Wr[3]|0,Qn=Sn&8191,Jn=Sn>>>13,ui=Wr[4]|0,gi=ui&8191,di=ui>>>13,Ci=Wr[5]|0,yi=Ci&8191,li=Ci>>>13,Pi=Wr[6]|0,Ai=Pi&8191,Oi=Pi>>>13,to=Wr[7]|0,En=to&8191,Bt=to>>>13,Zt=Wr[8]|0,Tn=Zt&8191,ei=Zt>>>13,zn=Wr[9]|0,gn=zn&8191,xn=zn>>>13,Hn=Jt[0]|0,Ln=Hn&8191,ti=Hn>>>13,oi=Jt[1]|0,Ei=oi&8191,Ri=oi>>>13,Oo=Jt[2]|0,Ui=Oo&8191,io=Oo>>>13,So=Jt[3]|0,$o=So&8191,mo=So>>>13,qo=Jt[4]|0,wo=qo&8191,Eo=qo>>>13,jo=Jt[5]|0,go=jo&8191,zi=jo>>>13,xo=Jt[6]|0,Yr=xo&8191,Wt=xo>>>13,ln=Jt[7]|0,qr=ln&8191,dn=ln>>>13,ri=Jt[8]|0,Zn=ri&8191,ai=ri>>>13,bi=Jt[9]|0,_i=bi&8191,fi=bi>>>13;xr.negative=be.negative^kr.negative,xr.length=19,Jr=Math.imul(Gn,Ln),Nr=Math.imul(Gn,ti),Nr=Nr+Math.imul(mn,Ln)|0,Hr=Math.imul(mn,ti);var yo=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(yo>>>26)|0,yo&=67108863,Jr=Math.imul(In,Ln),Nr=Math.imul(In,ti),Nr=Nr+Math.imul(bn,Ln)|0,Hr=Math.imul(bn,ti),Jr=Jr+Math.imul(Gn,Ei)|0,Nr=Nr+Math.imul(Gn,Ri)|0,Nr=Nr+Math.imul(mn,Ei)|0,Hr=Hr+Math.imul(mn,Ri)|0;var Di=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(Di>>>26)|0,Di&=67108863,Jr=Math.imul(hn,Ln),Nr=Math.imul(hn,ti),Nr=Nr+Math.imul(pn,Ln)|0,Hr=Math.imul(pn,ti),Jr=Jr+Math.imul(In,Ei)|0,Nr=Nr+Math.imul(In,Ri)|0,Nr=Nr+Math.imul(bn,Ei)|0,Hr=Hr+Math.imul(bn,Ri)|0,Jr=Jr+Math.imul(Gn,Ui)|0,Nr=Nr+Math.imul(Gn,io)|0,Nr=Nr+Math.imul(mn,Ui)|0,Hr=Hr+Math.imul(mn,io)|0;var Ni=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,Jr=Math.imul(Qn,Ln),Nr=Math.imul(Qn,ti),Nr=Nr+Math.imul(Jn,Ln)|0,Hr=Math.imul(Jn,ti),Jr=Jr+Math.imul(hn,Ei)|0,Nr=Nr+Math.imul(hn,Ri)|0,Nr=Nr+Math.imul(pn,Ei)|0,H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Math.imul(ei,fi)|0;var mi=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(mi>>>26)|0,mi&=67108863,Jr=Math.imul(gn,_i),Nr=Math.imul(gn,fi),Nr=Nr+Math.imul(xn,_i)|0,Hr=Math.imul(xn,fi);var Si=(zr+Jr|0)+((Nr&8191)<<13)|0;return zr=(Hr+(Nr>>>13)|0)+(Si>>>26)|0,Si&=67108863,Xr[0]=yo,Xr[1]=Di,Xr[2]=Ni,Xr[3]=oo,Xr[4]=fo,Xr[5]=co,Xr[6]=Ao,Xr[7]=vo,Xr[8]=_o,Xr[9]=so,Xr[10]=lo,Xr[11]=eo,Xr[12]=uo,Xr[13]=ho,Xr[14]=ro,Xr[15]=ci,Xr[16]=pi,Xr[17]=mi,Xr[18]=Si,zr!==0&&(Xr[19]=zr,xr.length++),xr};Math.imul||(Mr=jr);function Lr(Kr,be,kr){kr.negative=be.negative^Kr.negative,kr.length=Kr.length+be.length;for(var xr=0,Wr=0,Jt=0;Jt>>26)|0,Wr+=Xr>>>26,Xr&=67108863}kr.words[Jt]=zr,xr=Xr,Xr=Wr}return xr!==0?kr.words[Jt]=xr:kr.length--,kr._strip()}function Vr(Kr,be,kr){return Lr(Kr,be,kr)}le.prototype.mulTo=function(be,kr){var xr,Wr=this.length+be.length;return this.length===10&&be.length===10?xr=Mr(this,be,kr):Wr<63?xr=jr(this,be,kr):Wr<1024?xr=Lr(this,be,kr):xr=Vr(this,be,kr),xr},le.prototype.mul=function(be){var kr=new le(null);return kr.words=new Array(this.length+be.length),this.mulTo(be,kr)},le.prototype.mulf=function(be){var kr=new le(null);return kr.words=new Array(this.length+be.length),Vr(this,be,kr)},le.prototype.imul=function(be){return this.clone().mulTo(be,this)},le.prototype.imuln=function(be){var kr=be<0;kr&&(be=-be),ce(typeof be=="number"),ce(be<67108864);for(var xr=0,Wr=0;Wr>=26,xr+=Jt/67108864|0,xr+=Xr>>>26,this.words[Wr]=Xr&67108863}return xr!==0&&(this.words[Wr]=xr,this.length++),kr?this.ineg():this},le.prototype.muln=function(be){return this.clone().imuln(be)},le.prototype.sqr=function(){return this.mul(this)},le.prototype.isqr=function(){return this.imul(this.clone())},le.prototype.pow=function(be){var kr=ur(be);if(kr.length===0)return new le(1);for(var xr=this,Wr=0;Wr=0);var kr=be%26,xr=(be-kr)/26,Wr=67108863>>>26-kr<<26-kr,Jt;if(kr!==0){var Xr=0;for(Jt=0;Jt>>26-kr}Xr&&(this.words[Jt]=Xr,this.length++)}if(xr!==0){for(Jt=this.length-1;Jt>=0;Jt--)this.words[Jt+xr]=this.words[Jt];for(Jt=0;Jt=0);var Wr;kr?Wr=(kr-kr%26)/26:Wr=0;var Jt=be%26,Xr=Math.min((be-Jt)/26,this.length),zr=67108863^67108863>>>Jt<Xr)for(this.length-=Xr,Nr=0;Nr=0&&(Hr!==0||Nr>=Wr);Nr--){var On=this.words[Nr]|0;this.words[Nr]=Hr<<26-Jt|On>>>Jt,Hr=On&zr}return Jr&&Hr!==0&&(Jr.words[Jr.length++]=Hr),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},le.prototype.ishrn=function(be,kr,xr){return ce(this.negative===0),this.iushrn(be,kr,xr)},le.prototype.shln=function(be){return this.clone().ishln(be)},le.prototype.ushln=function(be){return this.clone().iushln(be)},le.prototype.shrn=function(be){return this.clone().ishrn(be)},le.prototype.ushrn=function(be){return this.clone().iushrn(be)},le.prototype.testn=function(be){ce(typeof be=="number"&&be>=0);var kr=be%26,xr=(be-kr)/26,Wr=1<=0);var kr=be%26,xr=(be-kr)/26;if(ce(this.negative===0,"imaskn works only with positive numbers"),this.length<=xr)return this;if(kr!==0&&xr++,this.length=Math.min(xr,this.length),kr!==0){var Wr=67108863^67108863>>>kr<=67108864;kr++)this.words[kr]-=67108864,kr===this.length-1?this.words[kr+1]=1:this.words[kr+1]++;return this.length=Math.max(this.length,kr+1),this},le.prototype.isubn=function(be){if(ce(typeof be=="number"),ce(be<67108864),be<0)return this.iaddn(-be);if(this.negative!==0)return this.negative=0,this.iaddn(be),this.negative=1,this;if(this.words[0]-=be,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var kr=0;kr>26)-(Jr/67108864|0),this.words[Jt+xr]=Xr&67108863}for(;Jt>26,this.words[Jt+xr]=Xr&67108863;if(zr===0)return this._strip();for(ce(zr===-1),zr=0,Jt=0;Jt>26,this.words[Jt]=Xr&67108863;return this.negative=1,this._strip()},le.prototype._wordDiv=function(be,kr){var xr=this.length-be.length,Wr=this.clone(),Jt=be,Xr=Jt.words[Jt.length-1]|0,zr=this._countBits(Xr);xr=26-zr,xr!==0&&(Jt=Jt.ushln(xr),Wr.iushln(xr),Xr=Jt.words[Jt.length-1]|0);var Jr=Wr.length-Jt.length,Nr;if(kr!=="mod"){Nr=new le(null),Nr.length=Jr+1,Nr.words=new Array(Nr.length);for(var Hr=0;Hr=0;Gn--){var mn=(Wr.words[Jt.length+Gn]|0)*67108864+(Wr.words[Jt.length+Gn-1]|0);for(mn=Math.min(mn/Xr|0,67108863),Wr._ishlnsubmul(Jt,mn,Gn);Wr.negative!==0;)mn--,Wr.negative=0,Wr._ishlnsubmul(Jt,1,Gn),Wr.isZero()||(Wr.negative^=1);Nr&&(Nr.words[Gn]=mn)}return Nr&&Nr._strip(),Wr._strip(),kr!=="div"&&xr!==0&&Wr.iushrn(xr),{div:Nr||null,mod:Wr}},le.prototype.divmod=function(be,kr,xr){if(ce(!be.isZero()),this.isZero())return{div:new le(0),mod:new le(0)};var Wr,Jt,Xr;return this.negative!==0&&be.negative===0?(Xr=this.neg().divmod(be,kr),kr!=="mod"&&(Wr=Xr.div.neg()),kr!=="div"&&(Jt=Xr.mod.neg(),xr&&Jt.negative!==0&&Jt.iadd(be)),{div:Wr,mod:Jt}):this.negative===0&&be.negative!==0?(Xr=this.divmod(be.neg(),kr),kr!=="mod"&&(Wr=Xr.div.neg()),{div:Wr,mod:Xr.mod}):(this.negative&be.negative)!==0?(Xr=this.neg().divmod(be.neg(),kr),kr!=="div"&&(Jt=Xr.mod.neg(),xr&&Jt.negative!==0&&Jt.isub(be)),{div:Xr.div,mod:Jt}):be.length>this.length||this.cmp(be)<0?{div:new le(0),mod:this}:be.length===1?kr==="div"?{div:this.divn(be.words[0]),mod:null}:kr==="mod"?{div:null,mod:new le(this.modrn(be.words[0]))}:{div:this.divn(be.words[0]),mod:new le(this.modrn(be.words[0]))}:this._wordDiv(be,kr)},le.prototype.div=function(be){return this.divmod(be,"div",!1).div},le.prototype.mod=function(be){return this.divmod(be,"mod",!1).mod},le.prototype.umod=function(be){return this.divmod(be,"mod",!0).mod},le.prototype.divRound=function(be){var kr=this.divmod(be);if(kr.mod.isZero())return kr.div;var xr=kr.div.negative!==0?kr.mod.isub(be):kr.mod,Wr=be.ushrn(1),Jt=be.andln(1),Xr=xr.cmp(Wr);return Xr<0||Jt===1&&Xr===0?kr.div:kr.div.negative!==0?kr.div.isubn(1):kr.div.iaddn(1)},le.prototype.modrn=function(be){var kr=be<0;kr&&(be=-be),ce(be<=67108863);for(var xr=(1<<26)%be,Wr=0,Jt=this.length-1;Jt>=0;Jt--)Wr=(xr*Wr+(this.words[Jt]|0))%be;return kr?-Wr:Wr},le.prototype.modn=function(be){return this.modrn(be)},le.prototype.idivn=function(be){var kr=be<0;kr&&(be=-be),ce(be<=67108863);for(var xr=0,Wr=this.length-1;Wr>=0;Wr--){var Jt=(this.words[Wr]|0)+xr*67108864;this.words[Wr]=Jt/be|0,xr=Jt%be}return this._strip(),kr?this.ineg():this},le.prototype.divn=function(be){return this.clone().idivn(be)},le.prototype.egcd=function(be){ce(be.negative===0),ce(!be.isZero());var kr=this,xr=be.clone();kr.negative!==0?kr=kr.umod(be):kr=kr.clone();for(var Wr=new le(1),Jt=new le(0),Xr=new le(0),zr=new le(1),Jr=0;kr.isEven()&&xr.isEven();)kr.iushrn(1),xr.iushrn(1),++Jr;for(var Nr=xr.clone(),Hr=kr.clone();!kr.isZero();){for(var On=0,Gn=1;(kr.words[0]&Gn)===0&&On<26;++On,Gn<<=1);if(On>0)for(kr.iushrn(On);On-- >0;)(Wr.isOdd()||Jt.isOdd())&&(Wr.iadd(Nr),Jt.isub(Hr)),Wr.iushrn(1),Jt.iushrn(1);for(var mn=0,Nn=1;(xr.words[0]&Nn)===0&&mn<26;++mn,Nn<<=1);if(mn>0)for(xr.iushrn(mn);mn-- >0;)(Xr.isOdd()||zr.isOdd())&&(Xr.iadd(Nr),zr.isub(Hr)),Xr.iushrn(1),zr.iushrn(1);kr.cmp(xr)>=0?(kr.isub(xr),Wr.isub(Xr),Jt.isub(zr)):(xr.isub(kr),Xr.isub(Wr),zr.isub(Jt))}return{a:Xr,b:zr,gcd:xr.iushln(Jr)}},le.prototype._invmp=function(be){ce(be.negative===0),ce(!be.isZero());var kr=this,xr=be.clone();kr.negative!==0?kr=kr.umod(be):kr=kr.clone();for(var Wr=new le(1),Jt=new le(0),Xr=xr.clone();kr.cmpn(1)>0&&xr.cmpn(1)>0;){for(var zr=0,Jr=1;(kr.words[0]&Jr)===0&&zr<26;++zr,Jr<<=1);if(zr>0)for(kr.iushrn(zr);zr-- >0;)Wr.isOdd()&&Wr.iadd(Xr),Wr.iushrn(1);for(var Nr=0,Hr=1;(xr.words[0]&Hr)===0&&Nr<26;++Nr,Hr<<=1);if(Nr>0)for(xr.iushrn(Nr);Nr-- >0;)Jt.isOdd()&&Jt.iadd(Xr),Jt.iushrn(1);kr.cmp(xr)>=0?(kr.isub(xr),Wr.isub(Jt)):(xr.isub(kr),Jt.isub(Wr))}var On;return kr.cmpn(1)===0?On=Wr:On=Jt,On.cmpn(0)<0&&On.iadd(be),On},le.prototype.gcd=function(be){if(this.isZero())return be.abs();if(be.isZero())return this.abs();var kr=this.clone(),xr=be.clone();kr.negative=0,xr.negative=0;for(var Wr=0;kr.isEven()&&xr.isEven();Wr++)kr.iushrn(1),xr.iushrn(1);do{for(;kr.isEven();)kr.iushrn(1);for(;xr.isEven();)xr.iushrn(1);var Jt=kr.cmp(xr);if(Jt<0){var Xr=kr;kr=xr,xr=Xr}else if(Jt===0||xr.cmpn(1)===0)break;kr.isub(xr)}while(!0);return xr.iushln(Wr)},le.prototype.invm=function(be){return this.egcd(be).a.umod(be)},le.prototype.isEven=function(){return(this.words[0]&1)===0},le.prototype.isOdd=function(){return(this.words[0]&1)===1},le.prototype.andln=function(be){return this.words[0]&be},le.prototype.bincn=function(be){ce(typeof be=="number");var kr=be%26,xr=(be-kr)/26,Wr=1<>>26,zr&=67108863,this.words[Xr]=zr}return Jt!==0&&(this.words[Xr]=Jt,this.length++),this},le.prototype.isZero=function(){return this.length===1&&this.words[0]===0},le.prototype.cmpn=function(be){var kr=be<0;if(this.negative!==0&&!kr)return-1;if(this.negative===0&&kr)return 1;this._strip();var xr;if(this.length>1)xr=1;else{kr&&(be=-be),ce(be<=67108863,"Number is too big");var Wr=this.words[0]|0;xr=Wr===be?0:Wrbe.length)return 1;if(this.length=0;xr--){var Wr=this.words[xr]|0,Jt=be.words[xr]|0;if(Wr!==Jt){WrJt&&(kr=1);break}}return kr},le.prototype.gtn=function(be){return this.cmpn(be)===1},le.prototype.gt=function(be){return this.cmp(be)===1},le.prototype.gten=function(be){return this.cmpn(be)>=0},le.prototype.gte=function(be){return this.cmp(be)>=0},le.prototype.ltn=function(be){return this.cmpn(be)===-1},le.prototype.lt=function(be){return this.cmp(be)===-1},le.prototype.lten=function(be){return this.cmpn(be)<=0},le.prototype.lte=function(be){return this.cmp(be)<=0},le.prototype.eqn=function(be){return this.cmpn(be)===0},le.prototype.eq=function(be){return this.cmp(be)===0},le.red=function(be){return new Xt(be)},le.prototype.toRed=function(be){return ce(!this.red,"Already a number in reduction context"),ce(this.negative===0,"red works only with positives"),be.convertTo(this)._forceRed(be)},le.prototype.fromRed=function(){return ce(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},le.prototype._forceRed=function(be){return this.red=be,this},le.prototype.forceRed=function(be){return ce(!this.red,"Already a number in reduction context"),this._forceRed(be)},le.prototype.redAdd=function(be){return ce(this.red,"redAdd works only with red numbers"),this.red.add(this,be)},le.prototype.redIAdd=function(be){return ce(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,be)},le.prototype.redSub=function(be){return ce(this.red,"redSub works only with red numbers"),this.red.sub(this,be)},le.prototype.redISub=function(be){return ce(this.red,"redISub works only with red numbers"),this.red.isub(this,be)},le.prototype.redShl=function(be){return ce(this.red,"redShl works only with red numbers"),this.red.shl(this,be)},le.prototype.redMul=function(be){return ce(this.red,"redMul works only with red numbers"),this.red._verify2(this,be),this.red.mul(this,be)},le.prototype.redIMul=function(be){return ce(this.red,"redMul works only with red numbers"),this.red._verify2(this,be),this.red.imul(this,be)},le.prototype.redSqr=function(){return ce(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},le.prototype.redISqr=function(){return ce(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},le.prototype.redSqrt=function(){return ce(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},le.prototype.redInvm=function(){return ce(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},le.prototype.redNeg=function(){return ce(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},le.prototype.redPow=function(be){return ce(this.red&&!be.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,be)};var Gr={k256:null,p224:null,p192:null,p25519:null};function Ur(Kr,be){this.name=Kr,this.p=new le(be,16),this.n=this.p.bitLength(),this.k=new le(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ur.prototype._tmp=function(){var be=new le(null);return be.words=new Array(Math.ceil(this.n/13)),be},Ur.prototype.ireduce=function(be){var kr=be,xr;do this.split(kr,this.tmp),kr=this.imulK(kr),kr=kr.iadd(this.tmp),xr=kr.bitLength();while(xr>this.n);var Wr=xr0?kr.isub(this.p):kr.strip!==void 0?kr.strip():kr._strip(),kr},Ur.prototype.split=function(be,kr){be.iushrn(this.n,0,kr)},Ur.prototype.imulK=function(be){return be.imul(this.k)};function Qr(){Ur.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}fe(Qr,Ur),Qr.prototype.split=function(be,kr){for(var xr=4194303,Wr=Math.min(be.length,9),Jt=0;Jt>>22,Xr=zr}Xr>>>=22,be.words[Jt-10]=Xr,Xr===0&&be.length>10?be.length-=10:be.length-=9},Qr.prototype.imulK=function(be){be.words[be.length]=0,be.words[be.length+1]=0,be.length+=2;for(var kr=0,xr=0;xr>>=26,be.words[xr]=Jt,kr=Wr}return kr!==0&&(be.words[be.length++]=kr),be},le._prime=function(be){if(Gr[be])return Gr[be];var kr;if(be==="k256")kr=new Qr;else if(be==="p224")kr=new vn;else if(be==="p192")kr=new Yt;else if(be==="p25519")kr=new fn;else throw new Error("Unknown prime "+be);return Gr[be]=kr,kr};function Xt(Kr){if(typeof Kr=="string"){var be=le._prime(Kr);this.m=be.p,this.prime=be}else ce(Kr.gtn(1),"modulus must be greater than 1"),this.m=Kr,this.prime=null}Xt.prototype._verify1=function(be){ce(be.negative===0,"red works only with positives"),ce(be.red,"red works only with red numbers")},Xt.prototype._verify2=function(be,kr){ce((be.negative|kr.negative)===0,"red works only with positives"),ce(be.red&&be.red===kr.red,"red works only with red numbers")},Xt.prototype.imod=function(be){return this.prime?this.prime.ireduce(be)._forceRed(this):(Ee(be,be.umod(this.m)._forceRed(this)),be)},Xt.prototype.neg=function(be){return be.isZero()?be.clone():this.m.sub(be)._forceRed(this)},Xt.prototype.add=function(be,kr){this._verify2(be,kr);var xr=be.add(kr);return xr.cmp(this.m)>=0&&xr.isub(this.m),xr._forceRed(this)},Xt.prototype.iadd=function(be,kr){this._verify2(be,kr);var xr=be.iadd(kr);return xr.cmp(this.m)>=0&&xr.isub(this.m),xr},Xt.prototype.sub=function(be,kr){this._verify2(be,kr);var xr=be.sub(kr);return xr.cmpn(0)<0&&xr.iadd(this.m),xr._forceRed(this)},Xt.prototype.isub=function(be,kr){this._verify2(be,kr);var xr=be.isub(kr);return xr.cmpn(0)<0&&xr.iadd(this.m),xr},Xt.prototype.shl=function(be,kr){return this._verify1(be),this.imod(be.ushln(kr))},Xt.prototype.imul=function(be,kr){return this._verify2(be,kr),this.imod(be.imul(kr))},Xt.prototype.mul=function(be,kr){return this._verify2(be,kr),this.imod(be.mul(kr))},Xt.prototype.isqr=function(be){return this.imul(be,be.clone())},Xt.prototype.sqr=function(be){return this.mul(be,be)},Xt.prototype.sqrt=function(be){if(be.isZero())return be.clone();var kr=this.m.andln(3);if(ce(kr%2===1),kr===3){var xr=this.m.add(new le(1)).iushrn(2);return this.pow(be,xr)}for(var Wr=this.m.subn(1),Jt=0;!Wr.isZero()&&Wr.andln(1)===0;)Jt++,Wr.iushrn(1);ce(!Wr.isZero());var Xr=new le(1).toRed(this),zr=Xr.redNeg(),Jr=this.m.subn(1).iushrn(1),Nr=this.m.bitLength();for(Nr=new le(2*Nr*Nr).toRed(this);this.pow(Nr,Jr).cmp(zr)!==0;)Nr.redIAdd(zr);for(var Hr=this.pow(Nr,Wr),On=this.pow(be,Wr.addn(1).iushrn(1)),Gn=this.pow(be,Wr),mn=Jt;Gn.cmp(Xr)!==0;){for(var Nn=Gn,In=0;Nn.cmp(Xr)!==0;In++)Nn=Nn.redSqr();ce(In=0;Jt--){for(var Hr=kr.words[Jt],On=Nr-1;On>=0;On--){var Gn=Hr>>On&1;if(Xr!==Wr[0]&&(Xr=this.sqr(Xr)),Gn===0&&zr===0){Jr=0;continue}zr<<=1,zr|=Gn,Jr++,!(Jr!==xr&&(Jt!==0||On!==0))&&(Xr=this.mul(Xr,Wr[zr]),Jr=0,zr=0)}Nr=26}return Xr},Xt.prototype.convertTo=function(be){var kr=be.umod(this.m);return kr===be?kr.clone():kr},Xt.prototype.convertFrom=function(be){var kr=be.clone();return kr.red=null,kr},le.mont=function(be){return new Qt(be)};function Qt(Kr){Xt.call(this,Kr),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new le(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}fe(Qt,Xt),Qt.prototype.convertTo=function(be){return this.imod(be.ushln(this.shift))},Qt.prototype.convertFrom=function(be){var kr=this.imod(be.mul(this.rinv));return kr.red=null,kr},Qt.prototype.imul=function(be,kr){if(be.isZero()||kr.isZero())return be.words[0]=0,be.length=1,be;var xr=be.imul(kr),Wr=xr.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=xr.isub(Wr).iushrn(this.shift),Xr=Jt;return Jt.cmp(this.m)>=0?Xr=Jt.isub(this.m):Jt.cmpn(0)<0&&(Xr=Jt.iadd(this.m)),Xr._forceRed(this)},Qt.prototype.mul=function(be,kr){if(be.isZero()||kr.isZero())return new le(0)._forceRed(this);var xr=be.mul(kr),Wr=xr.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=xr.isub(Wr).iushrn(this.shift),Xr=Jt;return Jt.cmp(this.m)>=0?Xr=Jt.isub(this.m):Jt.cmpn(0)<0&&(Xr=Jt.iadd(this.m)),Xr._forceRed(this)},Qt.prototype.invm=function(be){var kr=this.imod(be._invmp(this.m).mul(this.r2));return kr._forceRed(this)}})(typeof k>"u"||k,v)}}),require_safe_buffer=__commonJS$1({"node_modules/safe-buffer/index.js"(v,k){var ie=require_buffer$1(),ae=ie.Buffer;function ce(le,ve){for(var pe in le)ve[pe]=le[pe]}ae.from&&ae.alloc&&ae.allocUnsafe&&ae.allocUnsafeSlow?k.exports=ie:(ce(ie,v),v.Buffer=fe);function fe(le,ve,pe){return ae(le,ve,pe)}fe.prototype=Object.create(ae.prototype),ce(ae,fe),fe.from=function(le,ve,pe){if(typeof le=="number")throw new TypeError("Argument must not be a number");return ae(le,ve,pe)},fe.alloc=function(le,ve,pe){if(typeof le!="number")throw new TypeError("Argument must be a number");var ye=ae(le);return ve!==void 0?typeof pe=="string"?ye.fill(ve,pe):ye.fill(ve):ye.fill(0),ye},fe.allocUnsafe=function(le){if(typeof le!="number")throw new TypeError("Argument must be a number");return ae(le)},fe.allocUnsafeSlow=function(le){if(typeof le!="number")throw new TypeError("Argument must be a number");return ie.SlowBuffer(le)}}}),require_src$2=__commonJS$1({"node_modules/base-x/src/index.js"(v,k){var ie=require_safe_buffer().Buffer;function ae(ce){if(ce.length>=255)throw new TypeError("Alphabet too long");for(var fe=new Uint8Array(256),le=0;le>>0,Ur=new Uint8Array(Gr);Lr!==Vr;){for(var Qr=ur[Lr],vn=0,Yt=Gr-1;(Qr!==0||vn>>0,Ur[Yt]=Qr%me>>>0,Qr=Qr/me>>>0;if(Qr!==0)throw new Error("Non-zero carry");Mr=vn,Lr++}for(var fn=Gr-Mr;fn!==Gr&&Ur[fn]===0;)fn++;for(var Xt=Ee.repeat(jr);fn>>0,Gr=new Uint8Array(Vr);ur[jr];){var Ur=fe[ur.charCodeAt(jr)];if(Ur===255)return;for(var Qr=0,vn=Vr-1;(Ur!==0||Qr>>0,Gr[vn]=Ur%256>>>0,Ur=Ur/256>>>0;if(Ur!==0)throw new Error("Non-zero carry");Lr=Qr,jr++}for(var Yt=Vr-Lr;Yt!==Vr&&Gr[Yt]===0;)Yt++;var fn=ie.allocUnsafe(Mr+(Vr-Yt));fn.fill(0,0,Mr);for(var Xt=Mr;Yt!==Vr;)fn[Xt++]=Gr[Yt++];return fn}function Or(ur){var jr=Pr(ur);if(jr)return jr;throw new Error("Non-base"+me+" character")}return{encode:$r,decodeUnsafe:Pr,decode:Or}}k.exports=ae}}),require_bs58=__commonJS$1({"node_modules/bs58/index.js"(v,k){var ie=require_src$2(),ae="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";k.exports=ie(ae)}}),encoding_exports={};__export$1(encoding_exports,{TextDecoder:()=>TextDecoder2,TextEncoder:()=>TextEncoder$1});function inRange(v,k,ie){return k<=v&&v<=ie}function ToDictionary(v){if(v===void 0)return{};if(v===Object(v))return v;throw TypeError("Could not convert argument to dictionary")}function stringToCodePoints(v){for(var k=String(v),ie=k.length,ae=0,ce=[];ae57343)ce.push(fe);else if(56320<=fe&&fe<=57343)ce.push(65533);else if(55296<=fe&&fe<=56319)if(ae===ie-1)ce.push(65533);else{var le=v.charCodeAt(ae+1);if(56320<=le&&le<=57343){var ve=fe&1023,pe=le&1023;ce.push(65536+(ve<<10)+pe),ae+=1}else ce.push(65533)}ae+=1}return ce}function codePointsToString(v){for(var k="",ie=0;ie>10)+55296,(ae&1023)+56320))}return k}function Stream(v){this.tokens=[].slice.call(v)}function decoderError(v,k){if(v)throw TypeError("Decoder error");return k||65533}function TextDecoder2(v,k){if(!(this instanceof TextDecoder2))return new TextDecoder2(v,k);if(v=v!==void 0?String(v).toLowerCase():DEFAULT_ENCODING,v!==DEFAULT_ENCODING)throw new Error("Encoding not supported. Only utf-8 is supported");k=ToDictionary(k),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(k.fatal),this._ignoreBOM=Boolean(k.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function TextEncoder$1(v,k){if(!(this instanceof TextEncoder$1))return new TextEncoder$1(v,k);if(v=v!==void 0?String(v).toLowerCase():DEFAULT_ENCODING,v!==DEFAULT_ENCODING)throw new Error("Encoding not supported. Only utf-8 is supported");k=ToDictionary(k),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(k.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function UTF8Decoder(v){var k=v.fatal,ie=0,ae=0,ce=0,fe=128,le=191;this.handler=function(ve,pe){if(pe===end_of_stream&&ce!==0)return ce=0,decoderError(k);if(pe===end_of_stream)return finished;if(ce===0){if(inRange(pe,0,127))return pe;if(inRange(pe,194,223))ce=1,ie=pe-192;else if(inRange(pe,224,239))pe===224&&(fe=160),pe===237&&(le=159),ce=2,ie=pe-224;else if(inRange(pe,240,244))pe===240&&(fe=144),pe===244&&(le=143),ce=3,ie=pe-240;else return decoderError(k);return ie=ie<<6*ce,null}if(!inRange(pe,fe,le))return ie=ce=ae=0,fe=128,le=191,ve.prepend(pe),decoderError(k);if(fe=128,le=191,ae+=1,ie+=pe-128<<6*(ce-ae),ae!==ce)return null;var ye=ie;return ie=ce=ae=0,ye}}function UTF8Encoder(v){v.fatal,this.handler=function(k,ie){if(ie===end_of_stream)return finished;if(inRange(ie,0,127))return ie;var ae,ce;inRange(ie,128,2047)?(ae=1,ce=192):inRange(ie,2048,65535)?(ae=2,ce=224):inRange(ie,65536,1114111)&&(ae=3,ce=240);for(var fe=[(ie>>6*ae)+ce];ae>0;){var le=ie>>6*(ae-1);fe.push(128|le&63),ae-=1}return fe}}var end_of_stream,finished,DEFAULT_ENCODING,init_encoding=__esm$1({"node_modules/text-encoding-utf-8/src/encoding.js"(){end_of_stream=-1,Stream.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():end_of_stream},prepend:function(v){if(Array.isArray(v))for(var k=v;k.length;)this.tokens.unshift(k.pop());else this.tokens.unshift(v)},push:function(v){if(Array.isArray(v))for(var k=v;k.length;)this.tokens.push(k.shift());else this.tokens.push(v)}},finished=-1,DEFAULT_ENCODING="utf-8",TextDecoder2.prototype={decode:function(k,ie){var ae;typeof k=="object"&&k instanceof ArrayBuffer?ae=new Uint8Array(k):typeof k=="object"&&"buffer"in k&&k.buffer instanceof ArrayBuffer?ae=new Uint8Array(k.buffer,k.byteOffset,k.byteLength):ae=new Uint8Array(0),ie=ToDictionary(ie),this._streaming||(this._decoder=new UTF8Decoder({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(ie.stream);for(var ce=new Stream(ae),fe=[],le;!ce.endOfStream()&&(le=this._decoder.handler(ce,ce.read()),le!==finished);)le!==null&&(Array.isArray(le)?fe.push.apply(fe,le):fe.push(le));if(!this._streaming){do{if(le=this._decoder.handler(ce,ce.read()),le===finished)break;le!==null&&(Array.isArray(le)?fe.push.apply(fe,le):fe.push(le))}while(!ce.endOfStream());this._decoder=null}return fe.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(fe[0]===65279?(this._BOMseen=!0,fe.shift()):this._BOMseen=!0),codePointsToString(fe)}},TextEncoder$1.prototype={encode:function(k,ie){k=k?String(k):"",ie=ToDictionary(ie),this._streaming||(this._encoder=new UTF8Encoder(this._options)),this._streaming=Boolean(ie.stream);for(var ae=[],ce=new Stream(stringToCodePoints(k)),fe;!ce.endOfStream()&&(fe=this._encoder.handler(ce,ce.read()),fe!==finished);)Array.isArray(fe)?ae.push.apply(ae,fe):ae.push(fe);if(!this._streaming){for(;fe=this._encoder.handler(ce,ce.read()),fe!==finished;)Array.isArray(fe)?ae.push.apply(ae,fe):ae.push(fe);this._encoder=null}return new Uint8Array(ae)}}}}),require_lib=__commonJS$1({"node_modules/borsh/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(Yt,fn,Xt,Qt){Qt===void 0&&(Qt=Xt),Object.defineProperty(Yt,Qt,{enumerable:!0,get:function(){return fn[Xt]}})}:function(Yt,fn,Xt,Qt){Qt===void 0&&(Qt=Xt),Yt[Qt]=fn[Xt]}),ie=v&&v.__setModuleDefault||(Object.create?function(Yt,fn){Object.defineProperty(Yt,"default",{enumerable:!0,value:fn})}:function(Yt,fn){Yt.default=fn}),ae=v&&v.__decorate||function(Yt,fn,Xt,Qt){var Kr=arguments.length,be=Kr<3?fn:Qt===null?Qt=Object.getOwnPropertyDescriptor(fn,Xt):Qt,kr;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")be=Reflect.decorate(Yt,fn,Xt,Qt);else for(var xr=Yt.length-1;xr>=0;xr--)(kr=Yt[xr])&&(be=(Kr<3?kr(be):Kr>3?kr(fn,Xt,be):kr(fn,Xt))||be);return Kr>3&&be&&Object.defineProperty(fn,Xt,be),be},ce=v&&v.__importStar||function(Yt){if(Yt&&Yt.__esModule)return Yt;var fn={};if(Yt!=null)for(var Xt in Yt)Xt!=="default"&&Object.hasOwnProperty.call(Yt,Xt)&&k(fn,Yt,Xt);return ie(fn,Yt),fn},fe=v&&v.__importDefault||function(Yt){return Yt&&Yt.__esModule?Yt:{default:Yt}};Object.defineProperty(v,"__esModule",{value:!0}),v.deserializeUnchecked=v.deserialize=v.serialize=v.BinaryReader=v.BinaryWriter=v.BorshError=v.baseDecode=v.baseEncode=void 0;var le=fe(require_bn$1()),ve=fe(require_bs58()),pe=ce((init_encoding(),__toCommonJS$1(encoding_exports))),ye=typeof TextDecoder!="function"?pe.TextDecoder:TextDecoder,me=new ye("utf-8",{fatal:!0});function Ee(Yt){return typeof Yt=="string"&&(Yt=Buffer.from(Yt,"utf8")),ve.default.encode(Buffer.from(Yt))}v.baseEncode=Ee;function cr(Yt){return Buffer.from(ve.default.decode(Yt))}v.baseDecode=cr;var Br=1024,$r=class extends Error{constructor(Yt){super(Yt),this.fieldPath=[],this.originalMessage=Yt}addToFieldPath(Yt){this.fieldPath.splice(0,0,Yt),this.message=this.originalMessage+": "+this.fieldPath.join(".")}};v.BorshError=$r;var Pr=class{constructor(){this.buf=Buffer.alloc(Br),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(Br)]))}writeU8(Yt){this.maybeResize(),this.buf.writeUInt8(Yt,this.length),this.length+=1}writeU16(Yt){this.maybeResize(),this.buf.writeUInt16LE(Yt,this.length),this.length+=2}writeU32(Yt){this.maybeResize(),this.buf.writeUInt32LE(Yt,this.length),this.length+=4}writeU64(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",8)))}writeU128(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",16)))}writeU256(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",32)))}writeU512(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",64)))}writeBuffer(Yt){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),Yt,Buffer.alloc(Br)]),this.length+=Yt.length}writeString(Yt){this.maybeResize();const fn=Buffer.from(Yt,"utf8");this.writeU32(fn.length),this.writeBuffer(fn)}writeFixedArray(Yt){this.writeBuffer(Buffer.from(Yt))}writeArray(Yt,fn){this.maybeResize(),this.writeU32(Yt.length);for(const Xt of Yt)this.maybeResize(),fn(Xt)}toArray(){return this.buf.subarray(0,this.length)}};v.BinaryWriter=Pr;function Or(Yt,fn,Xt){const Qt=Xt.value;Xt.value=function(...Kr){try{return Qt.apply(this,Kr)}catch(be){if(be instanceof RangeError){const kr=be.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(kr)>=0)throw new $r("Reached the end of buffer when deserializing")}throw be}}}var ur=class{constructor(Yt){this.buf=Yt,this.offset=0}readU8(){const Yt=this.buf.readUInt8(this.offset);return this.offset+=1,Yt}readU16(){const Yt=this.buf.readUInt16LE(this.offset);return this.offset+=2,Yt}readU32(){const Yt=this.buf.readUInt32LE(this.offset);return this.offset+=4,Yt}readU64(){const Yt=this.readBuffer(8);return new le.default(Yt,"le")}readU128(){const Yt=this.readBuffer(16);return new le.default(Yt,"le")}readU256(){const Yt=this.readBuffer(32);return new le.default(Yt,"le")}readU512(){const Yt=this.readBuffer(64);return new le.default(Yt,"le")}readBuffer(Yt){if(this.offset+Yt>this.buf.length)throw new $r(`Expected buffer length ${Yt} isn't within bounds`);const fn=this.buf.slice(this.offset,this.offset+Yt);return this.offset+=Yt,fn}readString(){const Yt=this.readU32(),fn=this.readBuffer(Yt);try{return me.decode(fn)}catch(Xt){throw new $r(`Error decoding UTF-8 string: ${Xt}`)}}readFixedArray(Yt){return new Uint8Array(this.readBuffer(Yt))}readArray(Yt){const fn=this.readU32(),Xt=Array();for(let Qt=0;Qt{Mr(Yt,fn,be,Qt[0],Kr)});else if(Qt.kind!==void 0)switch(Qt.kind){case"option":{Xt==null?Kr.writeU8(0):(Kr.writeU8(1),Mr(Yt,fn,Xt,Qt.type,Kr));break}case"map":{Kr.writeU32(Xt.size),Xt.forEach((be,kr)=>{Mr(Yt,fn,kr,Qt.key,Kr),Mr(Yt,fn,be,Qt.value,Kr)});break}default:throw new $r(`FieldType ${Qt} unrecognized`)}else Lr(Yt,Xt,Kr)}catch(be){throw be instanceof $r&&be.addToFieldPath(fn),be}}function Lr(Yt,fn,Xt){if(typeof fn.borshSerialize=="function"){fn.borshSerialize(Xt);return}const Qt=Yt.get(fn.constructor);if(!Qt)throw new $r(`Class ${fn.constructor.name} is missing in schema`);if(Qt.kind==="struct")Qt.fields.map(([Kr,be])=>{Mr(Yt,Kr,fn[Kr],be,Xt)});else if(Qt.kind==="enum"){const Kr=fn[Qt.field];for(let be=0;beGr(Yt,fn,Xt[0],Qt))}if(Xt.kind==="option")return Qt.readU8()?Gr(Yt,fn,Xt.type,Qt):void 0;if(Xt.kind==="map"){let Kr=new Map;const be=Qt.readU32();for(let kr=0;kr=Qt.values.length)throw new $r(`Enum index: ${Kr} is out of range`);const[be,kr]=Qt.values[Kr],xr=Gr(Yt,be,kr,Xt);return new fn({[be]:xr})}throw new $r(`Unexpected schema kind: ${Qt.kind} for ${fn.constructor.name}`)}function Qr(Yt,fn,Xt,Qt=ur){const Kr=new Qt(Xt),be=Ur(Yt,fn,Kr);if(Kr.offset>2]|=v[ce]<>2]|=ae<>2]|=(192|ae>>6)<>2]|=(128|ae&63)<=57344?(ve[fe>>2]|=(224|ae>>12)<>2]|=(128|ae>>6&63)<>2]|=(128|ae&63)<>2]|=(240|ae>>18)<>2]|=(128|ae>>12&63)<>2]|=(128|ae>>6&63)<>2]|=(128|ae&63)<=64?(this.block=ve[16],this.start=fe-64,this.hash(),this.hashed=!0):this.start=fe}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var v=this.blocks,k=this.lastByteIndex;v[16]=this.block,v[k>>2]|=EXTRA[k&3],this.block=v[16],k>=56&&(this.hashed||this.hash(),v[0]=this.block,v[16]=v[1]=v[2]=v[3]=v[4]=v[5]=v[6]=v[7]=v[8]=v[9]=v[10]=v[11]=v[12]=v[13]=v[14]=v[15]=0),v[14]=this.hBytes<<3|this.bytes>>>29,v[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var v=this.h0,k=this.h1,ie=this.h2,ae=this.h3,ce=this.h4,fe=this.h5,le=this.h6,ve=this.h7,pe=this.blocks,ye,me,Ee,cr,Br,$r,Pr,Or,ur,jr,Mr;for(ye=16;ye<64;++ye)Br=pe[ye-15],me=(Br>>>7|Br<<25)^(Br>>>18|Br<<14)^Br>>>3,Br=pe[ye-2],Ee=(Br>>>17|Br<<15)^(Br>>>19|Br<<13)^Br>>>10,pe[ye]=pe[ye-16]+me+pe[ye-7]+Ee<<0;for(Mr=k&ie,ye=0;ye<64;ye+=4)this.first?(this.is224?(Or=300032,Br=pe[0]-1413257819,ve=Br-150054599<<0,ae=Br+24177077<<0):(Or=704751109,Br=pe[0]-210244248,ve=Br-1521486534<<0,ae=Br+143694565<<0),this.first=!1):(me=(v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10),Ee=(ce>>>6|ce<<26)^(ce>>>11|ce<<21)^(ce>>>25|ce<<7),Or=v&k,cr=Or^v&ie^Mr,Pr=ce&fe^~ce&le,Br=ve+Ee+Pr+K[ye]+pe[ye],$r=me+cr,ve=ae+Br<<0,ae=Br+$r<<0),me=(ae>>>2|ae<<30)^(ae>>>13|ae<<19)^(ae>>>22|ae<<10),Ee=(ve>>>6|ve<<26)^(ve>>>11|ve<<21)^(ve>>>25|ve<<7),ur=ae&v,cr=ur^ae&k^Or,Pr=ve&ce^~ve&fe,Br=le+Ee+Pr+K[ye+1]+pe[ye+1],$r=me+cr,le=ie+Br<<0,ie=Br+$r<<0,me=(ie>>>2|ie<<30)^(ie>>>13|ie<<19)^(ie>>>22|ie<<10),Ee=(le>>>6|le<<26)^(le>>>11|le<<21)^(le>>>25|le<<7),jr=ie&ae,cr=jr^ie&v^ur,Pr=le&ve^~le&ce,Br=fe+Ee+Pr+K[ye+2]+pe[ye+2],$r=me+cr,fe=k+Br<<0,k=Br+$r<<0,me=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),Ee=(fe>>>6|fe<<26)^(fe>>>11|fe<<21)^(fe>>>25|fe<<7),Mr=k&ie,cr=Mr^k&ae^jr,Pr=fe&le^~fe&ve,Br=ce+Ee+Pr+K[ye+3]+pe[ye+3],$r=me+cr,ce=v+Br<<0,v=Br+$r<<0;this.h0=this.h0+v<<0,this.h1=this.h1+k<<0,this.h2=this.h2+ie<<0,this.h3=this.h3+ae<<0,this.h4=this.h4+ce<<0,this.h5=this.h5+fe<<0,this.h6=this.h6+le<<0,this.h7=this.h7+ve<<0},Sha256.prototype.hex=function(){this.finalize();var v=this.h0,k=this.h1,ie=this.h2,ae=this.h3,ce=this.h4,fe=this.h5,le=this.h6,ve=this.h7,pe=HEX_CHARS[v>>28&15]+HEX_CHARS[v>>24&15]+HEX_CHARS[v>>20&15]+HEX_CHARS[v>>16&15]+HEX_CHARS[v>>12&15]+HEX_CHARS[v>>8&15]+HEX_CHARS[v>>4&15]+HEX_CHARS[v&15]+HEX_CHARS[k>>28&15]+HEX_CHARS[k>>24&15]+HEX_CHARS[k>>20&15]+HEX_CHARS[k>>16&15]+HEX_CHARS[k>>12&15]+HEX_CHARS[k>>8&15]+HEX_CHARS[k>>4&15]+HEX_CHARS[k&15]+HEX_CHARS[ie>>28&15]+HEX_CHARS[ie>>24&15]+HEX_CHARS[ie>>20&15]+HEX_CHARS[ie>>16&15]+HEX_CHARS[ie>>12&15]+HEX_CHARS[ie>>8&15]+HEX_CHARS[ie>>4&15]+HEX_CHARS[ie&15]+HEX_CHARS[ae>>28&15]+HEX_CHARS[ae>>24&15]+HEX_CHARS[ae>>20&15]+HEX_CHARS[ae>>16&15]+HEX_CHARS[ae>>12&15]+HEX_CHARS[ae>>8&15]+HEX_CHARS[ae>>4&15]+HEX_CHARS[ae&15]+HEX_CHARS[ce>>28&15]+HEX_CHARS[ce>>24&15]+HEX_CHARS[ce>>20&15]+HEX_CHARS[ce>>16&15]+HEX_CHARS[ce>>12&15]+HEX_CHARS[ce>>8&15]+HEX_CHARS[ce>>4&15]+HEX_CHARS[ce&15]+HEX_CHARS[fe>>28&15]+HEX_CHARS[fe>>24&15]+HEX_CHARS[fe>>20&15]+HEX_CHARS[fe>>16&15]+HEX_CHARS[fe>>12&15]+HEX_CHARS[fe>>8&15]+HEX_CHARS[fe>>4&15]+HEX_CHARS[fe&15]+HEX_CHARS[le>>28&15]+HEX_CHARS[le>>24&15]+HEX_CHARS[le>>20&15]+HEX_CHARS[le>>16&15]+HEX_CHARS[le>>12&15]+HEX_CHARS[le>>8&15]+HEX_CHARS[le>>4&15]+HEX_CHARS[le&15];return this.is224||(pe+=HEX_CHARS[ve>>28&15]+HEX_CHARS[ve>>24&15]+HEX_CHARS[ve>>20&15]+HEX_CHARS[ve>>16&15]+HEX_CHARS[ve>>12&15]+HEX_CHARS[ve>>8&15]+HEX_CHARS[ve>>4&15]+HEX_CHARS[ve&15]),pe},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var v=this.h0,k=this.h1,ie=this.h2,ae=this.h3,ce=this.h4,fe=this.h5,le=this.h6,ve=this.h7,pe=[v>>24&255,v>>16&255,v>>8&255,v&255,k>>24&255,k>>16&255,k>>8&255,k&255,ie>>24&255,ie>>16&255,ie>>8&255,ie&255,ae>>24&255,ae>>16&255,ae>>8&255,ae&255,ce>>24&255,ce>>16&255,ce>>8&255,ce&255,fe>>24&255,fe>>16&255,fe>>8&255,fe&255,le>>24&255,le>>16&255,le>>8&255,le&255];return this.is224||pe.push(ve>>24&255,ve>>16&255,ve>>8&255,ve&255),pe},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var v=new ArrayBuffer(this.is224?28:32),k=new DataView(v);return k.setUint32(0,this.h0),k.setUint32(4,this.h1),k.setUint32(8,this.h2),k.setUint32(12,this.h3),k.setUint32(16,this.h4),k.setUint32(20,this.h5),k.setUint32(24,this.h6),this.is224||k.setUint32(28,this.h7),v};function HmacSha256(v,k,ie){var ae,ce=typeof v;if(ce==="string"){var fe=[],le=v.length,ve=0,pe;for(ae=0;ae>6,fe[ve++]=128|pe&63):pe<55296||pe>=57344?(fe[ve++]=224|pe>>12,fe[ve++]=128|pe>>6&63,fe[ve++]=128|pe&63):(pe=65536+((pe&1023)<<10|v.charCodeAt(++ae)&1023),fe[ve++]=240|pe>>18,fe[ve++]=128|pe>>12&63,fe[ve++]=128|pe>>6&63,fe[ve++]=128|pe&63);v=fe}else if(ce==="object"){if(v===null)throw new Error(ERROR);if(ARRAY_BUFFER&&v.constructor===ArrayBuffer)v=new Uint8Array(v);else if(!Array.isArray(v)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(v)))throw new Error(ERROR)}else throw new Error(ERROR);v.length>64&&(v=new Sha256(k,!0).update(v).array());var ye=[],me=[];for(ae=0;ae<64;++ae){var Ee=v[ae]||0;ye[ae]=92^Ee,me[ae]=54^Ee}Sha256.call(this,k,ie),this.update(me),this.oKeyPad=ye,this.inner=!0,this.sharedMemory=ie}HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var v=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(v),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define(function(){return exports}))})()}}),require_constants$2=__commonJS$1({"node_modules/@near-js/crypto/lib/constants.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyType=void 0,function(k){k[k.ED25519=0]="ED25519"}(v.KeyType||(v.KeyType={}))}}),require_key_pair_base=__commonJS$1({"node_modules/@near-js/crypto/lib/key_pair_base.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyPairBase=void 0;var k=class{};v.KeyPairBase=k}}),require_crypto=__commonJS$1({"browser-external:crypto"(v,k){k.exports={}}}),require_nacl_fast=__commonJS$1({"node_modules/tweetnacl/nacl-fast.js"(v,k){(function(ie){var ae=function(Yr){var Wt,ln=new Float64Array(16);if(Yr)for(Wt=0;Wt>24&255,Yr[Wt+1]=ln>>16&255,Yr[Wt+2]=ln>>8&255,Yr[Wt+3]=ln&255,Yr[Wt+4]=qr>>24&255,Yr[Wt+5]=qr>>16&255,Yr[Wt+6]=qr>>8&255,Yr[Wt+7]=qr&255}function Or(Yr,Wt,ln,qr,dn){var ri,Zn=0;for(ri=0;ri>>8)-1}function ur(Yr,Wt,ln,qr){return Or(Yr,Wt,ln,qr,16)}function jr(Yr,Wt,ln,qr){return Or(Yr,Wt,ln,qr,32)}function Mr(Yr,Wt,ln,qr){for(var dn=qr[0]&255|(qr[1]&255)<<8|(qr[2]&255)<<16|(qr[3]&255)<<24,ri=ln[0]&255|(ln[1]&255)<<8|(ln[2]&255)<<16|(ln[3]&255)<<24,Zn=ln[4]&255|(ln[5]&255)<<8|(ln[6]&255)<<16|(ln[7]&255)<<24,ai=ln[8]&255|(ln[9]&255)<<8|(ln[10]&255)<<16|(ln[11]&255)<<24,bi=ln[12]&255|(ln[13]&255)<<8|(ln[14]&255)<<16|(ln[15]&255)<<24,_i=qr[4]&255|(qr[5]&255)<<8|(qr[6]&255)<<16|(qr[7]&255)<<24,fi=Wt[0]&255|(Wt[1]&255)<<8|(Wt[2]&255)<<16|(Wt[3]&255)<<24,yo=Wt[4]&255|(Wt[5]&255)<<8|(Wt[6]&255)<<16|(Wt[7]&255)<<24,Di=Wt[8]&255|(Wt[9]&255)<<8|(Wt[10]&255)<<16|(Wt[11]&255)<<24,Ni=Wt[12]&255|(Wt[13]&255)<<8|(Wt[14]&255)<<16|(Wt[15]&255)<<24,oo=qr[8]&255|(qr[9]&255)<<8|(qr[10]&255)<<16|(qr[11]&255)<<24,fo=ln[16]&255|(ln[17]&255)<<8|(ln[18]&255)<<16|(ln[19]&255)<<24,co=ln[20]&255|(ln[21]&255)<<8|(ln[22]&255)<<16|(ln[23]&255)<<24,Ao=ln[24]&255|(ln[25]&255)<<8|(ln[26]&255)<<16|(ln[27]&255)<<24,vo=ln[28]&255|(ln[29]&255)<<8|(ln[30]&255)<<16|(ln[31]&255)<<24,_o=qr[12]&255|(qr[13]&255)<<8|(qr[14]&255)<<16|(qr[15]&255)<<24,so=dn,lo=ri,eo=Zn,uo=ai,ho=bi,ro=_i,ci=fi,pi=yo,mi=Di,Si=Ni,Ti=oo,xi=fo,To=co,Mo=Ao,Co=vo,Fo=_o,ni,Ko=0;Ko<20;Ko+=2)ni=so+To|0,ho^=ni<<7|ni>>>32-7,ni=ho+so|0,mi^=ni<<9|ni>>>32-9,ni=mi+ho|0,To^=ni<<13|ni>>>32-13,ni=To+mi|0,so^=ni<<18|ni>>>32-18,ni=ro+lo|0,Si^=ni<<7|ni>>>32-7,ni=Si+ro|0,Mo^=ni<<9|ni>>>32-9,ni=Mo+Si|0,lo^=ni<<13|ni>>>32-13,ni=lo+Mo|0,ro^=ni<<18|ni>>>32-18,ni=Ti+ci|0,Co^=ni<<7|ni>>>32-7,ni=Co+Ti|0,eo^=ni<<9|ni>>>32-9,ni=eo+Co|0,ci^=ni<<13|ni>>>32-13,ni=ci+eo|0,Ti^=ni<<18|ni>>>32-18,ni=Fo+xi|0,uo^=ni<<7|ni>>>32-7,ni=uo+Fo|0,pi^=ni<<9|ni>>>32-9,ni=pi+uo|0,xi^=ni<<13|ni>>>32-13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&255,Yr[21]=ro>>>8&255,Yr[22]=ro>>>16&255,Yr[23]=ro>>>24&255,Yr[24]=ci>>>0&255,Yr[25]=ci>>>8&255,Yr[26]=ci>>>16&255,Yr[27]=ci>>>24&255,Yr[28]=pi>>>0&255,Yr[29]=pi>>>8&255,Yr[30]=pi>>>16&255,Yr[31]=pi>>>24&255,Yr[32]=mi>>>0&255,Yr[33]=mi>>>8&255,Yr[34]=mi>>>16&255,Yr[35]=mi>>>24&255,Yr[36]=Si>>>0&255,Yr[37]=Si>>>8&255,Yr[38]=Si>>>16&255,Yr[39]=Si>>>24&255,Yr[40]=Ti>>>0&255,Yr[41]=Ti>>>8&255,Yr[42]=Ti>>>16&255,Yr[43]=Ti>>>24&255,Yr[44]=xi>>>0&255,Yr[45]=xi>>>8&255,Yr[46]=xi>>>16&255,Yr[47]=xi>>>24&255,Yr[48]=To>>>0&255,Yr[49]=To>>>8&255,Yr[50]=To>>>16&255,Yr[51]=To>>>24&255,Yr[52]=Mo>>>0&255,Yr[53]=Mo>>>8&255,Yr[54]=Mo>>>16&255,Yr[55]=Mo>>>24&255,Yr[56]=Co>>>0&255,Yr[57]=Co>>>8&255,Yr[58]=Co>>>16&255,Yr[59]=Co>>>24&255,Yr[60]=Fo>>>0&255,Yr[61]=Fo>>>8&255,Yr[62]=Fo>>>16&255,Yr[63]=Fo>>>24&255}function Lr(Yr,Wt,ln,qr){for(var dn=qr[0]&255|(qr[1]&255)<<8|(qr[2]&255)<<16|(qr[3]&255)<<24,ri=ln[0]&255|(ln[1]&255)<<8|(ln[2]&255)<<16|(ln[3]&255)<<24,Zn=ln[4]&255|(ln[5]&255)<<8|(ln[6]&255)<<16|(ln[7]&255)<<24,ai=ln[8]&255|(ln[9]&255)<<8|(ln[10]&255)<<16|(ln[11]&255)<<24,bi=ln[12]&255|(ln[13]&255)<<8|(ln[14]&255)<<16|(ln[15]&255)<<24,_i=qr[4]&255|(qr[5]&255)<<8|(qr[6]&255)<<16|(qr[7]&255)<<24,fi=Wt[0]&255|(Wt[1]&255)<<8|(Wt[2]&255)<<16|(Wt[3]&255)<<24,yo=Wt[4]&255|(Wt[5]&255)<<8|(Wt[6]&255)<<16|(Wt[7]&255)<<24,Di=Wt[8]&255|(Wt[9]&255)<<8|(Wt[10]&255)<<16|(Wt[11]&255)<<24,Ni=Wt[12]&255|(Wt[13]&255)<<8|(Wt[14]&255)<<16|(Wt[15]&255)<<24,oo=qr[8]&255|(qr[9]&255)<<8|(qr[10]&255)<<16|(qr[11]&255)<<24,fo=ln[16]&255|(ln[17]&255)<<8|(ln[18]&255)<<16|(ln[19]&255)<<24,co=ln[20]&255|(ln[21]&255)<<8|(ln[22]&255)<<16|(ln[23]&255)<<24,Ao=ln[24]&255|(ln[25]&255)<<8|(ln[26]&255)<<16|(ln[27]&255)<<24,vo=ln[28]&255|(ln[29]&255)<<8|(ln[30]&255)<<16|(ln[31]&255)<<24,_o=qr[12]&255|(qr[13]&255)<<8|(qr[14]&255)<<16|(qr[15]&255)<<24,so=dn,lo=ri,eo=Zn,uo=ai,ho=bi,ro=_i,ci=fi,pi=yo,mi=Di,Si=Ni,Ti=oo,xi=fo,To=co,Mo=Ao,Co=vo,Fo=_o,ni,Ko=0;Ko<20;Ko+=2)ni=so+To|0,ho^=ni<<7|ni>>>32-7,ni=ho+so|0,mi^=ni<<9|ni>>>32-9,ni=mi+ho|0,To^=ni<<13|ni>>>32-13,ni=To+mi|0,so^=ni<<18|ni>>>32-18,ni=ro+lo|0,Si^=ni<<7|ni>>>32-7,ni=Si+ro|0,Mo^=ni<<9|ni>>>32-9,ni=Mo+Si|0,lo^=ni<<13|ni>>>32-13,ni=lo+Mo|0,ro^=ni<<18|ni>>>32-18,ni=Ti+ci|0,Co^=ni<<7|ni>>>32-7,ni=Co+Ti|0,eo^=ni<<9|ni>>>32-9,ni=eo+Co|0,ci^=ni<<13|ni>>>32-13,ni=ci+eo|0,Ti^=ni<<18|ni>>>32-18,ni=Fo+xi|0,uo^=ni<<7|ni>>>32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>>24&255,Yr[28]=Si>>>0&255,Yr[29]=Si>>>8&255,Yr[30]=Si>>>16&255,Yr[31]=Si>>>24&255}function Vr(Yr,Wt,ln,qr){Mr(Yr,Wt,ln,qr)}function Gr(Yr,Wt,ln,qr){Lr(Yr,Wt,ln,qr)}var Ur=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Qr(Yr,Wt,ln,qr,dn,ri,Zn){var ai=new Uint8Array(16),bi=new Uint8Array(64),_i,fi;for(fi=0;fi<16;fi++)ai[fi]=0;for(fi=0;fi<8;fi++)ai[fi]=ri[fi];for(;dn>=64;){for(Vr(bi,ai,Zn,Ur),fi=0;fi<64;fi++)Yr[Wt+fi]=ln[qr+fi]^bi[fi];for(_i=1,fi=8;fi<16;fi++)_i=_i+(ai[fi]&255)|0,ai[fi]=_i&255,_i>>>=8;dn-=64,Wt+=64,qr+=64}if(dn>0)for(Vr(bi,ai,Zn,Ur),fi=0;fi=64;){for(Vr(Zn,ri,dn,Ur),bi=0;bi<64;bi++)Yr[Wt+bi]=Zn[bi];for(ai=1,bi=8;bi<16;bi++)ai=ai+(ri[bi]&255)|0,ri[bi]=ai&255,ai>>>=8;ln-=64,Wt+=64}if(ln>0)for(Vr(Zn,ri,dn,Ur),bi=0;bi>>13|ln<<3)&8191,qr=Yr[4]&255|(Yr[5]&255)<<8,this.r[2]=(ln>>>10|qr<<6)&7939,dn=Yr[6]&255|(Yr[7]&255)<<8,this.r[3]=(qr>>>7|dn<<9)&8191,ri=Yr[8]&255|(Yr[9]&255)<<8,this.r[4]=(dn>>>4|ri<<12)&255,this.r[5]=ri>>>1&8190,Zn=Yr[10]&255|(Yr[11]&255)<<8,this.r[6]=(ri>>>14|Zn<<2)&8191,ai=Yr[12]&255|(Yr[13]&255)<<8,this.r[7]=(Zn>>>11|ai<<5)&8065,bi=Yr[14]&255|(Yr[15]&255)<<8,this.r[8]=(ai>>>8|bi<<8)&8191,this.r[9]=bi>>>5&127,this.pad[0]=Yr[16]&255|(Yr[17]&255)<<8,this.pad[1]=Yr[18]&255|(Yr[19]&255)<<8,this.pad[2]=Yr[20]&255|(Yr[21]&255)<<8,this.pad[3]=Yr[22]&255|(Yr[23]&255)<<8,this.pad[4]=Yr[24]&255|(Yr[25]&255)<<8,this.pad[5]=Yr[26]&255|(Yr[27]&255)<<8,this.pad[6]=Yr[28]&255|(Yr[29]&255)<<8,this.pad[7]=Yr[30]&255|(Yr[31]&255)<<8};Xt.prototype.blocks=function(Yr,Wt,ln){for(var qr=this.fin?0:2048,dn,ri,Zn,ai,bi,_i,fi,yo,Di,Ni,oo,fo,co,Ao,vo,_o,so,lo,eo,uo=this.h[0],ho=this.h[1],ro=this.h[2],ci=this.h[3],pi=this.h[4],mi=this.h[5],Si=this.h[6],Ti=this.h[7],xi=this.h[8],To=this.h[9],Mo=this.r[0],Co=this.r[1],Fo=this.r[2],ni=this.r[3],Ko=this.r[4],Wo=this.r[5],Ho=this.r[6],Uo=this.r[7],Go=this.r[8],Vo=this.r[9];ln>=16;)dn=Yr[Wt+0]&255|(Yr[Wt+1]&255)<<8,uo+=dn&8191,ri=Yr[Wt+2]&255|(Yr[Wt+3]&255)<<8,ho+=(dn>>>13|ri<<3)&8191,Zn=Yr[Wt+4]&255|(Yr[Wt+5]&255)<<8,ro+=(ri>>>10|Zn<<6)&8191,ai=Yr[Wt+6]&255|(Yr[Wt+7]&255)<<8,ci+=(Zn>>>7|ai<<9)&8191,bi=Yr[Wt+8]&255|(Yr[Wt+9]&255)<<8,pi+=(ai>>>4|bi<<12)&8191,mi+=bi>>>1&8191,_i=Yr[Wt+10]&255|(Yr[Wt+11]&255)<<8,Si+=(bi>>>14|_i<<2)&8191,fi=Yr[Wt+12]&255|(Yr[Wt+13]&255)<<8,Ti+=(_i>>>11|fi<<5)&8191,yo=Yr[Wt+14]&255|(Yr[Wt+15]&255)<<8,xi+=(fi>>>8|yo<<8)&8191,To+=yo>>>5|qr,Di=0,Ni=Di,Ni+=uo*Mo,Ni+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,_o+=ro*Ko,_o+=ci*ni,_o+=pi*Fo,Di=_o>>>13,_o&=8191,_o+=mi*Co,_o+=Si*Mo,_o+=Ti*(5*Vo),_o+=xi*(5*Go),_o+=To*(5*Uo),Di+=_o>>>13,_o&=8191,so=Di,so+=uo*Uo,so+=ho*Ho,so+=ro*Wo,so+=ci*Ko,so+=pi*ni,Di=so>>>13,so&=8191,so+=mi*Fo,so+=Si*Co,so+=Ti*Mo,so+=xi*(5*Vo),so+=To*(5*Go),Di+=so>>>13,so&=8191,lo=Di,lo+=uo*Go,lo+=ho*Uo,lo+=ro*Ho,lo+=ci*Wo,lo+=pi*Ko,Di=lo>>>13,lo&=8191,lo+=mi*ni,lo+=Si*Fo,lo+=Ti*Co,lo+=xi*Mo,lo+=To*(5*Vo),Di+=lo>>>13,lo&=8191,eo=Di,eo+=uo*Vo,eo+=ho*Go,eo+=ro*Uo,eo+=ci*Ho,eo+=pi*Wo,Di=eo>>>13,eo&=8191,eo+=mi*Ko,eo+=Si*ni,eo+=Ti*Fo,eo+=xi*Co,eo+=To*Mo,Di+=eo>>>13,eo&=8191,Di=(Di<<2)+Di|0,Di=Di+Ni|0,Ni=Di&8191,Di=Di>>>13,oo+=Di,uo=Ni,ho=oo,ro=fo,ci=co,pi=Ao,mi=vo,Si=_o,Ti=so,xi=lo,To=eo,Wt+=16,ln-=16;this.h[0]=uo,this.h[1]=ho,this.h[2]=ro,this.h[3]=ci,this.h[4]=pi,this.h[5]=mi,this.h[6]=Si,this.h[7]=Ti,this.h[8]=xi,this.h[9]=To},Xt.prototype.finish=function(Yr,Wt){var ln=new Uint16Array(10),qr,dn,ri,Zn;if(this.leftover){for(Zn=this.leftover,this.buffer[Zn++]=1;Zn<16;Zn++)this.buffer[Zn]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(qr=this.h[1]>>>13,this.h[1]&=8191,Zn=2;Zn<10;Zn++)this.h[Zn]+=qr,qr=this.h[Zn]>>>13,this.h[Zn]&=8191;for(this.h[0]+=qr*5,qr=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=qr,qr=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=qr,ln[0]=this.h[0]+5,qr=ln[0]>>>13,ln[0]&=8191,Zn=1;Zn<10;Zn++)ln[Zn]=this.h[Zn]+qr,qr=ln[Zn]>>>13,ln[Zn]&=8191;for(ln[9]-=1<<13,dn=(qr^1)-1,Zn=0;Zn<10;Zn++)ln[Zn]&=dn;for(dn=~dn,Zn=0;Zn<10;Zn++)this.h[Zn]=this.h[Zn]&dn|ln[Zn];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,ri=this.h[0]+this.pad[0],this.h[0]=ri&65535,Zn=1;Zn<8;Zn++)ri=(this.h[Zn]+this.pad[Zn]|0)+(ri>>>16)|0,this.h[Zn]=ri&65535;Yr[Wt+0]=this.h[0]>>>0&255,Yr[Wt+1]=this.h[0]>>>8&255,Yr[Wt+2]=this.h[1]>>>0&255,Yr[Wt+3]=this.h[1]>>>8&255,Yr[Wt+4]=this.h[2]>>>0&255,Yr[Wt+5]=this.h[2]>>>8&255,Yr[Wt+6]=this.h[3]>>>0&255,Yr[Wt+7]=this.h[3]>>>8&255,Yr[Wt+8]=this.h[4]>>>0&255,Yr[Wt+9]=this.h[4]>>>8&255,Yr[Wt+10]=this.h[5]>>>0&255,Yr[Wt+11]=this.h[5]>>>8&255,Yr[Wt+12]=this.h[6]>>>0&255,Yr[Wt+13]=this.h[6]>>>8&255,Yr[Wt+14]=this.h[7]>>>0&255,Yr[Wt+15]=this.h[7]>>>8&255},Xt.prototype.update=function(Yr,Wt,ln){var qr,dn;if(this.leftover){for(dn=16-this.leftover,dn>ln&&(dn=ln),qr=0;qr=16&&(dn=ln-ln%16,this.blocks(Yr,Wt,dn),Wt+=dn,ln-=dn),ln){for(qr=0;qr>16&1),ri[ln-1]&=65535;ri[15]=Zn[15]-32767-(ri[14]>>16&1),dn=ri[15]>>16&1,ri[14]&=65535,Jt(Zn,ri,1-dn)}for(ln=0;ln<16;ln++)Yr[2*ln]=Zn[ln]&255,Yr[2*ln+1]=Zn[ln]>>8}function zr(Yr,Wt){var ln=new Uint8Array(32),qr=new Uint8Array(32);return Xr(ln,Yr),Xr(qr,Wt),jr(ln,0,qr,0)}function Jr(Yr){var Wt=new Uint8Array(32);return Xr(Wt,Yr),Wt[0]&1}function Nr(Yr,Wt){var ln;for(ln=0;ln<16;ln++)Yr[ln]=Wt[2*ln]+(Wt[2*ln+1]<<8);Yr[15]&=32767}function Hr(Yr,Wt,ln){for(var qr=0;qr<16;qr++)Yr[qr]=Wt[qr]+ln[qr]}function On(Yr,Wt,ln){for(var qr=0;qr<16;qr++)Yr[qr]=Wt[qr]-ln[qr]}function Gn(Yr,Wt,ln){var qr,dn,ri=0,Zn=0,ai=0,bi=0,_i=0,fi=0,yo=0,Di=0,Ni=0,oo=0,fo=0,co=0,Ao=0,vo=0,_o=0,so=0,lo=0,eo=0,uo=0,ho=0,ro=0,ci=0,pi=0,mi=0,Si=0,Ti=0,xi=0,To=0,Mo=0,Co=0,Fo=0,ni=ln[0],Ko=ln[1],Wo=ln[2],Ho=ln[3],Uo=ln[4],Go=ln[5],Vo=ln[6],ra=ln[7],Do=ln[8],ia=ln[9],oa=ln[10],ea=ln[11],ua=ln[12],la=ln[13],fa=ln[14],ca=ln[15];qr=Wt[0],ri+=qr*ni,Zn+=qr*Ko,ai+=qr*Wo,bi+=qr*Ho,_i+=qr*Uo,fi+=qr*Go,yo+=qr*Vo,Di+=qr*ra,Ni+=qr*Do,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o=qr-dn*65536,qr=Di+dn+65535,dn=Math.floor(qr/65536),Di=qr-dn*65536,qr=Ni+dn+65535,dn=Math.floor(qr/65536),Ni=qr-dn*65536,qr=oo+dn+65535,dn=Math.floor(qr/65536),oo=qr-dn*65536,qr=fo+dn+65535,dn=Math.floor(qr/65536),fo=qr-dn*65536,qr=co+dn+65535,dn=Math.floor(qr/65536),co=qr-dn*65536,qr=Ao+dn+65535,dn=Math.floor(qr/65536),Ao=qr-dn*65536,qr=vo+dn+65535,dn=Math.floor(qr/65536),vo=qr-dn*65536,qr=_o+dn+65535,dn=Math.floor(qr/65536),_o=qr-dn*65536,qr=so+dn+65535,dn=Math.floor(qr/65536),so=qr-dn*65536,ri+=dn-1+37*(dn-1),dn=1,qr=ri+dn+65535,dn=Math.floor(qr/65536),ri=qr-dn*65536,qr=Zn+dn+65535,dn=Math.floor(qr/65536),Zn=qr-dn*65536,qr=ai+dn+65535,dn=Math.floor(qr/65536),ai=qr-dn*65536,qr=bi+dn+65535,dn=Math.floor(qr/65536),bi=qr-dn*65536,qr=_i+dn+65535,dn=Math.floor(qr/65536),_i=qr-dn*65536,qr=fi+dn+65535,dn=Math.floor(qr/65536),fi=qr-dn*65536,qr=yo+dn+65535,dn=Math.floor(qr/65536),yo=qr-dn*65536,qr=Di+dn+65535,dn=Math.floor(qr/65536),Di=qr-dn*65536,qr=Ni+dn+65535,dn=Math.floor(qr/65536),Ni=qr-dn*65536,qr=oo+dn+65535,dn=Math.floor(qr/65536),oo=qr-dn*65536,qr=fo+dn+65535,dn=Math.floor(qr/65536),fo=qr-dn*65536,qr=co+dn+65535,dn=Math.floor(qr/65536),co=qr-dn*65536,qr=Ao+dn+65535,dn=Math.floor(qr/65536),Ao=qr-dn*65536,qr=vo+dn+65535,dn=Math.floor(qr/65536),vo=qr-dn*65536,qr=_o+dn+65535,dn=Math.floor(qr/65536),_o=qr-dn*65536,qr=so+dn+65535,dn=Math.floor(qr/65536),so=qr-dn*65536,ri+=dn-1+37*(dn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dn[Zn+16]=ai[Zn],dn[Zn+32]=_i[Zn],dn[Zn+48]=bi[Zn],dn[Zn+64]=fi[Zn];var Ni=dn.subarray(32),oo=dn.subarray(16);return Nn(Ni,Ni),Gn(oo,oo,Ni),Xr(Yr,oo),0}function ii(Yr,Wt){return bn(Yr,Wt,le)}function hn(Yr,Wt){return ce(Wt,32),ii(Yr,Wt)}function pn(Yr,Wt,ln){var qr=new Uint8Array(32);return bn(qr,ln,Wt),Gr(Yr,fe,qr,Ur)}var Sn=be,Qn=kr;function Jn(Yr,Wt,ln,qr,dn,ri){var Zn=new Uint8Array(32);return pn(Zn,dn,ri),Sn(Yr,Wt,ln,qr,Zn)}function ui(Yr,Wt,ln,qr,dn,ri){var Zn=new Uint8Array(32);return pn(Zn,dn,ri),Qn(Yr,Wt,ln,qr,Zn)}var gi=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function di(Yr,Wt,ln,qr){for(var dn=new Int32Array(16),ri=new Int32Array(16),Zn,ai,bi,_i,fi,yo,Di,Ni,oo,fo,co,Ao,vo,_o,so,lo,eo,uo,ho,ro,ci,pi,mi,Si,Ti,xi,To=Yr[0],Mo=Yr[1],Co=Yr[2],Fo=Yr[3],ni=Yr[4],Ko=Yr[5],Wo=Yr[6],Ho=Yr[7],Uo=Wt[0],Go=Wt[1],Vo=Wt[2],ra=Wt[3],Do=Wt[4],ia=Wt[5],oa=Wt[6],ea=Wt[7],ua=0;qr>=128;){for(ho=0;ho<16;ho++)ro=8*ho+ua,dn[ho]=ln[ro+0]<<24|ln[ro+1]<<16|ln[ro+2]<<8|ln[ro+3],ri[ho]=ln[ro+4]<<24|ln[ro+5]<<16|ln[ro+6]<<8|ln[ro+7];for(ho=0;ho<80;ho++)if(Zn=To,ai=Mo,bi=Co,_i=Fo,fi=ni,yo=Ko,Di=Wo,Ni=Ho,oo=Uo,fo=Go,co=Vo,Ao=ra,vo=Do,_o=ia,so=oa,lo=ea,ci=Ho,pi=ea,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=(ni>>>14|Do<<32-14)^(ni>>>18|Do<<32-18)^(Do>>>41-32|ni<<32-(41-32)),pi=(Do>>>14|ni<<32-14)^(Do>>>18|ni<<32-18)^(ni>>>41-32|Do<<32-(41-32)),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=ni&Ko^~ni&Wo,pi=Do&ia^~Do&oa,mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=gi[ho*2],pi=gi[ho*2+1],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=dn[ho%16],pi=ri[ho%16],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,eo=Ti&65535|xi<<16,uo=mi&65535|Si<<16,ci=eo,pi=uo,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=(To>>>28|Uo<<32-28)^(Uo>>>34-32|To<<32-(34-32))^(Uo>>>39-32|To<<32-(39-32)),pi=(Uo>>>28|To<<32-28)^(To>>>34-32|Uo<<32-(34-32))^(To>>>39-32|Uo<<32-(39-32)),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=To&Mo^To&Co^Mo&Co,pi=Uo&Go^Uo&Vo^Go&Vo,mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Ni=Ti&65535|xi<<16,lo=mi&65535|Si<<16,ci=_i,pi=Ao,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=eo,pi=uo,mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,_i=Ti&65535|xi<<16,Ao=mi&65535|Si<<16,Mo=Zn,Co=ai,Fo=bi,ni=_i,Ko=fi,Wo=yo,Ho=Di,To=Ni,Go=oo,Vo=fo,ra=co,Do=Ao,ia=vo,oa=_o,ea=so,Uo=lo,ho%16===15)for(ro=0;ro<16;ro++)ci=dn[ro],pi=ri[ro],mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=dn[(ro+9)%16],pi=ri[(ro+9)%16],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,eo=dn[(ro+1)%16],uo=ri[(ro+1)%16],ci=(eo>>>1|uo<<32-1)^(eo>>>8|uo<<32-8)^eo>>>7,pi=(uo>>>1|eo<<32-1)^(uo>>>8|eo<<32-8)^(uo>>>7|eo<<32-7),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,eo=dn[(ro+14)%16],uo=ri[(ro+14)%16],ci=(eo>>>19|uo<<32-19)^(uo>>>61-32|eo<<32-(61-32))^eo>>>6,pi=(uo>>>19|eo<<32-19)^(eo>>>61-32|uo<<32-(61-32))^(uo>>>6|eo<<32-6),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,dn[ro]=Ti&65535|xi<<16,ri[ro]=mi&65535|Si<<16;ci=To,pi=Uo,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[0],pi=Wt[0],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[0]=To=Ti&65535|xi<<16,Wt[0]=Uo=mi&65535|Si<<16,ci=Mo,pi=Go,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[1],pi=Wt[1],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[1]=Mo=Ti&65535|xi<<16,Wt[1]=Go=mi&65535|Si<<16,ci=Co,pi=Vo,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[2],pi=Wt[2],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[2]=Co=Ti&65535|xi<<16,Wt[2]=Vo=mi&65535|Si<<16,ci=Fo,pi=ra,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[3],pi=Wt[3],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[3]=Fo=Ti&65535|xi<<16,Wt[3]=ra=mi&65535|Si<<16,ci=ni,pi=Do,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[4],pi=Wt[4],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[4]=ni=Ti&65535|xi<<16,Wt[4]=Do=mi&65535|Si<<16,ci=Ko,pi=ia,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[5],pi=Wt[5],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[5]=Ko=Ti&65535|xi<<16,Wt[5]=ia=mi&65535|Si<<16,ci=Wo,pi=oa,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[6],pi=Wt[6],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[6]=Wo=Ti&65535|xi<<16,Wt[6]=oa=mi&65535|Si<<16,ci=Ho,pi=ea,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[7],pi=Wt[7],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[7]=Ho=Ti&65535|xi<<16,Wt[7]=ea=mi&65535|Si<<16,ua+=128,qr-=128}return qr}function Ci(Yr,Wt,ln){var qr=new Int32Array(8),dn=new Int32Array(8),ri=new Uint8Array(256),Zn,ai=ln;for(qr[0]=1779033703,qr[1]=3144134277,qr[2]=1013904242,qr[3]=2773480762,qr[4]=1359893119,qr[5]=2600822924,qr[6]=528734635,qr[7]=1541459225,dn[0]=4089235720,dn[1]=2227873595,dn[2]=4271175723,dn[3]=1595750129,dn[4]=2917565137,dn[5]=725511199,dn[6]=4215389547,dn[7]=327033209,di(qr,dn,Wt,ln),ln%=128,Zn=0;Zn=0;--dn)qr=ln[dn/8|0]>>(dn&7)&1,li(Yr,Wt,qr),yi(Wt,Yr),yi(Yr,Yr),li(Yr,Wt,qr)}function Oi(Yr,Wt){var ln=[ae(),ae(),ae(),ae()];xr(ln[0],cr),xr(ln[1],Br),xr(ln[2],pe),Gn(ln[3],cr,Br),Ai(Yr,ln,Wt)}function to(Yr,Wt,ln){var qr=new Uint8Array(64),dn=[ae(),ae(),ae(),ae()],ri;for(ln||ce(Wt,32),Ci(qr,Wt,32),qr[0]&=248,qr[31]&=127,qr[31]|=64,Oi(dn,qr),Pi(Yr,dn),ri=0;ri<32;ri++)Wt[ri+32]=Yr[ri];return 0}var En=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Bt(Yr,Wt){var ln,qr,dn,ri;for(qr=63;qr>=32;--qr){for(ln=0,dn=qr-32,ri=qr-12;dn>4)*En[dn],ln=Wt[dn]>>8,Wt[dn]&=255;for(dn=0;dn<32;dn++)Wt[dn]-=ln*En[dn];for(qr=0;qr<32;qr++)Wt[qr+1]+=Wt[qr]>>8,Yr[qr]=Wt[qr]&255}function Zt(Yr){var Wt=new Float64Array(64),ln;for(ln=0;ln<64;ln++)Wt[ln]=Yr[ln];for(ln=0;ln<64;ln++)Yr[ln]=0;Bt(Yr,Wt)}function Tn(Yr,Wt,ln,qr){var dn=new Uint8Array(64),ri=new Uint8Array(64),Zn=new Uint8Array(64),ai,bi,_i=new Float64Array(64),fi=[ae(),ae(),ae(),ae()];Ci(dn,qr,32),dn[0]&=248,dn[31]&=127,dn[31]|=64;var yo=ln+64;for(ai=0;ai>7&&On(Yr[0],ve,Yr[0]),Gn(Yr[3],Yr[0],Yr[1]),0)}function zn(Yr,Wt,ln,qr){var dn,ri=new Uint8Array(32),Zn=new Uint8Array(64),ai=[ae(),ae(),ae(),ae()],bi=[ae(),ae(),ae(),ae()];if(ln<64||ei(bi,qr))return-1;for(dn=0;dn=0},ie.sign.keyPair=function(){var Yr=new Uint8Array(mo),Wt=new Uint8Array(qo);return to(Yr,Wt),{publicKey:Yr,secretKey:Wt}},ie.sign.keyPair.fromSecretKey=function(Yr){if(zi(Yr),Yr.length!==qo)throw new Error("bad secret key size");for(var Wt=new Uint8Array(mo),ln=0;ln{this[ae]=ie[ae]})}};v.Assignable=k}}),require_errors$2=__commonJS$1({"node_modules/@near-js/types/lib/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ErrorContext=v.TypedError=v.ArgumentTypeError=v.PositionalArgsError=void 0;var k=class extends Error{constructor(){super("Contract method calls expect named arguments wrapped in object, e.g. { argName1: argValue1, argName2: argValue2 }")}};v.PositionalArgsError=k;var ie=class extends Error{constructor(fe,le,ve){super(`Expected ${le} for '${fe}' argument, but got '${JSON.stringify(ve)}'`)}};v.ArgumentTypeError=ie;var ae=class extends Error{constructor(fe,le,ve){super(fe),this.type=le||"UntypedError",this.context=ve}};v.TypedError=ae;var ce=class{constructor(fe){this.transactionHash=fe}};v.ErrorContext=ce}}),require_light_client=__commonJS$1({"node_modules/@near-js/types/lib/provider/light_client.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.IdType=void 0,function(k){k.Transaction="transaction",k.Receipt="receipt"}(v.IdType||(v.IdType={}))}}),require_response=__commonJS$1({"node_modules/@near-js/types/lib/provider/response.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.FinalExecutionStatusBasic=v.ExecutionStatusBasic=void 0,function(k){k.Unknown="Unknown",k.Pending="Pending",k.Failure="Failure"}(v.ExecutionStatusBasic||(v.ExecutionStatusBasic={})),function(k){k.NotStarted="NotStarted",k.Started="Started",k.Failure="Failure"}(v.FinalExecutionStatusBasic||(v.FinalExecutionStatusBasic={}))}}),require_provider$2=__commonJS$1({"node_modules/@near-js/types/lib/provider/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.FinalExecutionStatusBasic=v.ExecutionStatusBasic=v.IdType=void 0;var k=require_light_client();Object.defineProperty(v,"IdType",{enumerable:!0,get:function(){return k.IdType}});var ie=require_response();Object.defineProperty(v,"ExecutionStatusBasic",{enumerable:!0,get:function(){return ie.ExecutionStatusBasic}}),Object.defineProperty(v,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return ie.FinalExecutionStatusBasic}})}}),require_lib2=__commonJS$1({"node_modules/@near-js/types/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ae,ce,fe,le){le===void 0&&(le=fe);var ve=Object.getOwnPropertyDescriptor(ce,fe);(!ve||("get"in ve?!ce.__esModule:ve.writable||ve.configurable))&&(ve={enumerable:!0,get:function(){return ce[fe]}}),Object.defineProperty(ae,le,ve)}:function(ae,ce,fe,le){le===void 0&&(le=fe),ae[le]=ce[fe]}),ie=v&&v.__exportStar||function(ae,ce){for(var fe in ae)fe!=="default"&&!Object.prototype.hasOwnProperty.call(ce,fe)&&k(ce,ae,fe)};Object.defineProperty(v,"__esModule",{value:!0}),ie(require_assignable(),v),ie(require_errors$2(),v),ie(require_provider$2(),v)}}),require_public_key=__commonJS$1({"node_modules/@near-js/crypto/lib/public_key.js"(v){var k=v&&v.__importDefault||function(ye){return ye&&ye.__esModule?ye:{default:ye}};Object.defineProperty(v,"__esModule",{value:!0}),v.PublicKey=void 0;var ie=require_lib2(),ae=require_lib(),ce=k(require_nacl_fast()),fe=require_constants$2();function le(ye){switch(ye){case fe.KeyType.ED25519:return"ed25519";default:throw new Error(`Unknown key type ${ye}`)}}function ve(ye){switch(ye.toLowerCase()){case"ed25519":return fe.KeyType.ED25519;default:throw new Error(`Unknown key type ${ye}`)}}var pe=class extends ie.Assignable{static from(ye){return typeof ye=="string"?pe.fromString(ye):ye}static fromString(ye){const me=ye.split(":");let Ee,cr=fe.KeyType.ED25519;if(me.length===1)Ee=me[0];else if(me.length===2)Ee=me[1],cr=ve(me[0]);else throw new Error("Invalid encoded key format, must be :");const Br=(0,ae.baseDecode)(Ee);if(Br.length!==ce.default.box.publicKeyLength)throw new Error(`Invalid public key size (${Br.length}), must be ${ce.default.box.publicKeyLength}`);return new pe({keyType:cr,data:Br})}toString(){return`${le(this.keyType)}:${(0,ae.baseEncode)(this.data)}`}verify(ye,me){switch(this.keyType){case fe.KeyType.ED25519:return ce.default.sign.detached.verify(ye,me,this.data);default:throw new Error(`Unknown key type ${this.keyType}`)}}};v.PublicKey=pe}}),require_key_pair_ed25519=__commonJS$1({"node_modules/@near-js/crypto/lib/key_pair_ed25519.js"(v){var k=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.KeyPairEd25519=void 0;var ie=require_lib(),ae=k(require_nacl_fast()),ce=require_constants$2(),fe=require_key_pair_base(),le=require_public_key(),ve=class extends fe.KeyPairBase{constructor(pe){super();const ye=ae.default.sign.keyPair.fromSecretKey((0,ie.baseDecode)(pe));this.publicKey=new le.PublicKey({keyType:ce.KeyType.ED25519,data:ye.publicKey}),this.secretKey=pe}static fromRandom(){const pe=ae.default.sign.keyPair();return new ve((0,ie.baseEncode)(pe.secretKey))}sign(pe){return{signature:ae.default.sign.detached(pe,(0,ie.baseDecode)(this.secretKey)),publicKey:this.publicKey}}verify(pe,ye){return this.publicKey.verify(pe,ye)}toString(){return`ed25519:${this.secretKey}`}getPublicKey(){return this.publicKey}};v.KeyPairEd25519=ve}}),require_key_pair$1=__commonJS$1({"node_modules/@near-js/crypto/lib/key_pair.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyPair=void 0;var k=require_key_pair_base(),ie=require_key_pair_ed25519(),ae=class extends k.KeyPairBase{static fromRandom(ce){switch(ce.toUpperCase()){case"ED25519":return ie.KeyPairEd25519.fromRandom();default:throw new Error(`Unknown curve ${ce}`)}}static fromString(ce){const fe=ce.split(":");if(fe.length===1)return new ie.KeyPairEd25519(fe[0]);if(fe.length===2)switch(fe[0].toUpperCase()){case"ED25519":return new ie.KeyPairEd25519(fe[1]);default:throw new Error(`Unknown curve: ${fe[0]}`)}else throw new Error("Invalid encoded key format, must be :")}};v.KeyPair=ae}}),require_lib3=__commonJS$1({"node_modules/@near-js/crypto/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.PublicKey=v.KeyPairEd25519=v.KeyPair=v.KeyType=void 0;var k=require_constants$2();Object.defineProperty(v,"KeyType",{enumerable:!0,get:function(){return k.KeyType}});var ie=require_key_pair$1();Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return ie.KeyPair}});var ae=require_key_pair_ed25519();Object.defineProperty(v,"KeyPairEd25519",{enumerable:!0,get:function(){return ae.KeyPairEd25519}});var ce=require_public_key();Object.defineProperty(v,"PublicKey",{enumerable:!0,get:function(){return ce.PublicKey}})}}),require_keystore$1=__commonJS$1({"node_modules/@near-js/keystores/lib/keystore.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyStore=void 0;var k=class{};v.KeyStore=k}}),require_in_memory_key_store$1=__commonJS$1({"node_modules/@near-js/keystores/lib/in_memory_key_store.js"(v){var k=v&&v.__awaiter||function(fe,le,ve,pe){function ye(me){return me instanceof ve?me:new ve(function(Ee){Ee(me)})}return new(ve||(ve=Promise))(function(me,Ee){function cr(Pr){try{$r(pe.next(Pr))}catch(Or){Ee(Or)}}function Br(Pr){try{$r(pe.throw(Pr))}catch(Or){Ee(Or)}}function $r(Pr){Pr.done?me(Pr.value):ye(Pr.value).then(cr,Br)}$r((pe=pe.apply(fe,le||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.InMemoryKeyStore=void 0;var ie=require_lib3(),ae=require_keystore$1(),ce=class extends ae.KeyStore{constructor(){super(),this.keys={}}setKey(fe,le,ve){return k(this,void 0,void 0,function*(){this.keys[`${le}:${fe}`]=ve.toString()})}getKey(fe,le){return k(this,void 0,void 0,function*(){const ve=this.keys[`${le}:${fe}`];return ve?ie.KeyPair.fromString(ve):null})}removeKey(fe,le){return k(this,void 0,void 0,function*(){delete this.keys[`${le}:${fe}`]})}clear(){return k(this,void 0,void 0,function*(){this.keys={}})}getNetworks(){return k(this,void 0,void 0,function*(){const fe=new Set;return Object.keys(this.keys).forEach(le=>{const ve=le.split(":");fe.add(ve[1])}),Array.from(fe.values())})}getAccounts(fe){return k(this,void 0,void 0,function*(){const le=new Array;return Object.keys(this.keys).forEach(ve=>{const pe=ve.split(":");pe[pe.length-1]===fe&&le.push(pe.slice(0,pe.length-1).join(":"))}),le})}toString(){return"InMemoryKeyStore"}};v.InMemoryKeyStore=ce}}),require_merge_key_store$1=__commonJS$1({"node_modules/@near-js/keystores/lib/merge_key_store.js"(v){var k=v&&v.__awaiter||function(ce,fe,le,ve){function pe(ye){return ye instanceof le?ye:new le(function(me){me(ye)})}return new(le||(le=Promise))(function(ye,me){function Ee($r){try{Br(ve.next($r))}catch(Pr){me(Pr)}}function cr($r){try{Br(ve.throw($r))}catch(Pr){me(Pr)}}function Br($r){$r.done?ye($r.value):pe($r.value).then(Ee,cr)}Br((ve=ve.apply(ce,fe||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.MergeKeyStore=void 0;var ie=require_keystore$1(),ae=class extends ie.KeyStore{constructor(ce,fe={writeKeyStoreIndex:0}){super(),this.options=fe,this.keyStores=ce}setKey(ce,fe,le){return k(this,void 0,void 0,function*(){yield this.keyStores[this.options.writeKeyStoreIndex].setKey(ce,fe,le)})}getKey(ce,fe){return k(this,void 0,void 0,function*(){for(const le of this.keyStores){const ve=yield le.getKey(ce,fe);if(ve)return ve}return null})}removeKey(ce,fe){return k(this,void 0,void 0,function*(){for(const le of this.keyStores)yield le.removeKey(ce,fe)})}clear(){return k(this,void 0,void 0,function*(){for(const ce of this.keyStores)yield ce.clear()})}getNetworks(){return k(this,void 0,void 0,function*(){const ce=new Set;for(const fe of this.keyStores)for(const le of yield fe.getNetworks())ce.add(le);return Array.from(ce)})}getAccounts(ce){return k(this,void 0,void 0,function*(){const fe=new Set;for(const le of this.keyStores)for(const ve of yield le.getAccounts(ce))fe.add(ve);return Array.from(fe)})}toString(){return`MergeKeyStore(${this.keyStores.join(", ")})`}};v.MergeKeyStore=ae}}),require_lib4$1=__commonJS$1({"node_modules/@near-js/keystores/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MergeKeyStore=v.KeyStore=v.InMemoryKeyStore=void 0;var k=require_in_memory_key_store$1();Object.defineProperty(v,"InMemoryKeyStore",{enumerable:!0,get:function(){return k.InMemoryKeyStore}});var ie=require_keystore$1();Object.defineProperty(v,"KeyStore",{enumerable:!0,get:function(){return ie.KeyStore}});var ae=require_merge_key_store$1();Object.defineProperty(v,"MergeKeyStore",{enumerable:!0,get:function(){return ae.MergeKeyStore}})}}),require_keystore2=__commonJS$1({"node_modules/near-api-js/lib/key_stores/keystore.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyStore=void 0;var k=require_lib4$1();Object.defineProperty(v,"KeyStore",{enumerable:!0,get:function(){return k.KeyStore}})}}),require_in_memory_key_store2=__commonJS$1({"node_modules/near-api-js/lib/key_stores/in_memory_key_store.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.InMemoryKeyStore=void 0;var k=require_lib4$1();Object.defineProperty(v,"InMemoryKeyStore",{enumerable:!0,get:function(){return k.InMemoryKeyStore}})}}),require_browser_local_storage_key_store$1=__commonJS$1({"node_modules/@near-js/keystores-browser/lib/browser_local_storage_key_store.js"(v){var k=v&&v.__awaiter||function(le,ve,pe,ye){function me(Ee){return Ee instanceof pe?Ee:new pe(function(cr){cr(Ee)})}return new(pe||(pe=Promise))(function(Ee,cr){function Br(Or){try{Pr(ye.next(Or))}catch(ur){cr(ur)}}function $r(Or){try{Pr(ye.throw(Or))}catch(ur){cr(ur)}}function Pr(Or){Or.done?Ee(Or.value):me(Or.value).then(Br,$r)}Pr((ye=ye.apply(le,ve||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.BrowserLocalStorageKeyStore=void 0;var ie=require_lib3(),ae=require_lib4$1(),ce="near-api-js:keystore:",fe=class extends ae.KeyStore{constructor(le=window.localStorage,ve=ce){super(),this.localStorage=le,this.prefix=ve}setKey(le,ve,pe){return k(this,void 0,void 0,function*(){this.localStorage.setItem(this.storageKeyForSecretKey(le,ve),pe.toString())})}getKey(le,ve){return k(this,void 0,void 0,function*(){const pe=this.localStorage.getItem(this.storageKeyForSecretKey(le,ve));return pe?ie.KeyPair.fromString(pe):null})}removeKey(le,ve){return k(this,void 0,void 0,function*(){this.localStorage.removeItem(this.storageKeyForSecretKey(le,ve))})}clear(){return k(this,void 0,void 0,function*(){for(const le of this.storageKeys())le.startsWith(this.prefix)&&this.localStorage.removeItem(le)})}getNetworks(){return k(this,void 0,void 0,function*(){const le=new Set;for(const ve of this.storageKeys())if(ve.startsWith(this.prefix)){const pe=ve.substring(this.prefix.length).split(":");le.add(pe[1])}return Array.from(le.values())})}getAccounts(le){return k(this,void 0,void 0,function*(){const ve=new Array;for(const pe of this.storageKeys())if(pe.startsWith(this.prefix)){const ye=pe.substring(this.prefix.length).split(":");ye[1]===le&&ve.push(ye[0])}return ve})}storageKeyForSecretKey(le,ve){return`${this.prefix}${ve}:${le}`}*storageKeys(){for(let le=0;le":">",'"':""","'":"'","/":"/","`":"`","=":"="};function $r(Xt){return String(Xt).replace(/[&<>"'`=\/]/g,function(Kr){return Br[Kr]})}var Pr=/\s*/,Or=/\s+/,ur=/\s*=/,jr=/\s*\}/,Mr=/#|\^|\/|>|\{|&|=|!/;function Lr(Xt,Qt){if(!Xt)return[];var Kr=!1,be=[],kr=[],xr=[],Wr=!1,Jt=!1,Xr="",zr=0;function Jr(){if(Wr&&!Jt)for(;xr.length;)delete kr[xr.pop()];else xr=[];Wr=!1,Jt=!1}var Nr,Hr,On;function Gn(Jn){if(typeof Jn=="string"&&(Jn=Jn.split(Or,2)),!ae(Jn)||Jn.length!==2)throw new Error("Invalid tags: "+Jn);Nr=new RegExp(le(Jn[0])+"\\s*"),Hr=new RegExp("\\s*"+le(Jn[1])),On=new RegExp("\\s*"+le("}"+Jn[1]))}Gn(Qt||Yt.tags);for(var mn=new Ur(Xt),Nn,In,bn,ii,hn,pn;!mn.eos();){if(Nn=mn.pos,bn=mn.scanUntil(Nr),bn)for(var Sn=0,Qn=bn.length;Sn"?hn=[In,bn,Nn,mn.pos,Xr,zr,Kr]:hn=[In,bn,Nn,mn.pos],zr++,kr.push(hn),In==="#"||In==="^")be.push(hn);else if(In==="/"){if(pn=be.pop(),!pn)throw new Error('Unopened section "'+bn+'" at '+Nn);if(pn[1]!==bn)throw new Error('Unclosed section "'+pn[1]+'" at '+Nn)}else In==="name"||In==="{"||In==="&"?Jt=!0:In==="="&&Gn(bn)}if(Jr(),pn=be.pop(),pn)throw new Error('Unclosed section "'+pn[1]+'" at '+mn.pos);return Gr(Vr(kr))}function Vr(Xt){for(var Qt=[],Kr,be,kr=0,xr=Xt.length;kr0?be[be.length-1][4]:Qt;break;default:Kr.push(kr)}return Qt}function Ur(Xt){this.string=Xt,this.tail=Xt,this.pos=0}Ur.prototype.eos=function(){return this.tail===""},Ur.prototype.scan=function(Qt){var Kr=this.tail.match(Qt);if(!Kr||Kr.index!==0)return"";var be=Kr[0];return this.tail=this.tail.substring(be.length),this.pos+=be.length,be},Ur.prototype.scanUntil=function(Qt){var Kr=this.tail.search(Qt),be;switch(Kr){case-1:be=this.tail,this.tail="";break;case 0:be="";break;default:be=this.tail.substring(0,Kr),this.tail=this.tail.substring(Kr)}return this.pos+=be.length,be};function Qr(Xt,Qt){this.view=Xt,this.cache={".":this.view},this.parent=Qt}Qr.prototype.push=function(Qt){return new Qr(Qt,this)},Qr.prototype.lookup=function(Qt){var Kr=this.cache,be;if(Kr.hasOwnProperty(Qt))be=Kr[Qt];else{for(var kr=this,xr,Wr,Jt,Xr=!1;kr;){if(Qt.indexOf(".")>0)for(xr=kr.view,Wr=Qt.split("."),Jt=0;xr!=null&&Jt"?zr=this.renderPartial(Jt,Kr,be,xr):Xr==="&"?zr=this.unescapedValue(Jt,Kr):Xr==="name"?zr=this.escapedValue(Jt,Kr,xr):Xr==="text"&&(zr=this.rawValue(Jt)),zr!==void 0&&(Wr+=zr);return Wr},vn.prototype.renderSection=function(Qt,Kr,be,kr,xr){var Wr=this,Jt="",Xr=Kr.lookup(Qt[1]);function zr(Hr){return Wr.render(Hr,Kr,be,xr)}if(!!Xr){if(ae(Xr))for(var Jr=0,Nr=Xr.length;Jr=v.length&&(v=void 0),{value:v&&v[ae++],done:!v}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read$1(v,k){var ie=typeof Symbol=="function"&&v[Symbol.iterator];if(!ie)return v;var ae=ie.call(v),ce,fe=[],le;try{for(;(k===void 0||k-- >0)&&!(ce=ae.next()).done;)fe.push(ce.value)}catch(ve){le={error:ve}}finally{try{ce&&!ce.done&&(ie=ae.return)&&ie.call(ae)}finally{if(le)throw le.error}}return fe}function __spreadArray$2(v,k,ie){if(ie||arguments.length===2)for(var ae=0,ce=k.length,fe;ae0},enumerable:!1,configurable:!0}),k.prototype._trySubscribe=function(ie){return this._throwIfClosed(),v.prototype._trySubscribe.call(this,ie)},k.prototype._subscribe=function(ie){return this._throwIfClosed(),this._checkFinalizedStatuses(ie),this._innerSubscribe(ie)},k.prototype._innerSubscribe=function(ie){var ae=this,ce=this,fe=ce.hasError,le=ce.isStopped,ve=ce.observers;return fe||le?EMPTY_SUBSCRIPTION$1:(this.currentObservers=null,ve.push(ie),new Subscription$1(function(){ae.currentObservers=null,arrRemove$1(ve,ie)}))},k.prototype._checkFinalizedStatuses=function(ie){var ae=this,ce=ae.hasError,fe=ae.thrownError,le=ae.isStopped;ce?ie.error(fe):le&&ie.complete()},k.prototype.asObservable=function(){var ie=new Observable$1;return ie.source=this,ie},k.create=function(ie,ae){return new AnonymousSubject$1(ie,ae)},k}(Observable$1),AnonymousSubject$1=function(v){__extends$1(k,v);function k(ie,ae){var ce=v.call(this)||this;return ce.destination=ie,ce.source=ae,ce}return k.prototype.next=function(ie){var ae,ce;(ce=(ae=this.destination)===null||ae===void 0?void 0:ae.next)===null||ce===void 0||ce.call(ae,ie)},k.prototype.error=function(ie){var ae,ce;(ce=(ae=this.destination)===null||ae===void 0?void 0:ae.error)===null||ce===void 0||ce.call(ae,ie)},k.prototype.complete=function(){var ie,ae;(ae=(ie=this.destination)===null||ie===void 0?void 0:ie.complete)===null||ae===void 0||ae.call(ie)},k.prototype._subscribe=function(ie){var ae,ce;return(ce=(ae=this.source)===null||ae===void 0?void 0:ae.subscribe(ie))!==null&&ce!==void 0?ce:EMPTY_SUBSCRIPTION$1},k}(Subject$1);(function(v){__extends$1(k,v);function k(ie){var ae=v.call(this)||this;return ae._value=ie,ae}return Object.defineProperty(k.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),k.prototype._subscribe=function(ie){var ae=v.prototype._subscribe.call(this,ie);return!ae.closed&&ie.next(this._value),ae},k.prototype.getValue=function(){var ie=this,ae=ie.hasError,ce=ie.thrownError,fe=ie._value;if(ae)throw ce;return this._throwIfClosed(),fe},k.prototype.next=function(ie){v.prototype.next.call(this,this._value=ie)},k})(Subject$1);var dateTimestampProvider={now:function(){return(dateTimestampProvider.delegate||Date).now()},delegate:void 0};(function(v){__extends$1(k,v);function k(ie,ae,ce){ie===void 0&&(ie=1/0),ae===void 0&&(ae=1/0),ce===void 0&&(ce=dateTimestampProvider);var fe=v.call(this)||this;return fe._bufferSize=ie,fe._windowTime=ae,fe._timestampProvider=ce,fe._buffer=[],fe._infiniteTimeWindow=!0,fe._infiniteTimeWindow=ae===1/0,fe._bufferSize=Math.max(1,ie),fe._windowTime=Math.max(1,ae),fe}return k.prototype.next=function(ie){var ae=this,ce=ae.isStopped,fe=ae._buffer,le=ae._infiniteTimeWindow,ve=ae._timestampProvider,pe=ae._windowTime;ce||(fe.push(ie),!le&&fe.push(ve.now()+pe)),this._trimBuffer(),v.prototype.next.call(this,ie)},k.prototype._subscribe=function(ie){this._throwIfClosed(),this._trimBuffer();for(var ae=this._innerSubscribe(ie),ce=this,fe=ce._infiniteTimeWindow,le=ce._buffer,ve=le.slice(),pe=0;pe0?v.prototype.requestAsyncId.call(this,ie,ae,ce):(ie.actions.push(this),ie._scheduled||(ie._scheduled=immediateProvider.setImmediate(ie.flush.bind(ie,void 0))))},k.prototype.recycleAsyncId=function(ie,ae,ce){var fe;if(ce===void 0&&(ce=0),ce!=null?ce>0:this.delay>0)return v.prototype.recycleAsyncId.call(this,ie,ae,ce);var le=ie.actions;ae!=null&&((fe=le[le.length-1])===null||fe===void 0?void 0:fe.id)!==ae&&(immediateProvider.clearImmediate(ae),ie._scheduled===ae&&(ie._scheduled=void 0))},k}(AsyncAction),AsyncScheduler=function(v){__extends$1(k,v);function k(ie,ae){ae===void 0&&(ae=Scheduler.now);var ce=v.call(this,ie,ae)||this;return ce.actions=[],ce._active=!1,ce}return k.prototype.flush=function(ie){var ae=this.actions;if(this._active){ae.push(ie);return}var ce;this._active=!0;do if(ce=ie.execute(ie.state,ie.delay))break;while(ie=ae.shift());if(this._active=!1,ce){for(;ie=ae.shift();)ie.unsubscribe();throw ce}},k}(Scheduler),AsapScheduler=function(v){__extends$1(k,v);function k(){return v!==null&&v.apply(this,arguments)||this}return k.prototype.flush=function(ie){this._active=!0;var ae=this._scheduled;this._scheduled=void 0;var ce=this.actions,fe;ie=ie||ce.shift();do if(fe=ie.execute(ie.state,ie.delay))break;while((ie=ce[0])&&ie.id===ae&&ce.shift());if(this._active=!1,fe){for(;(ie=ce[0])&&ie.id===ae&&ce.shift();)ie.unsubscribe();throw fe}},k}(AsyncScheduler);new AsapScheduler(AsapAction);new AsyncScheduler(AsyncAction);var QueueAction=function(v){__extends$1(k,v);function k(ie,ae){var ce=v.call(this,ie,ae)||this;return ce.scheduler=ie,ce.work=ae,ce}return k.prototype.schedule=function(ie,ae){return ae===void 0&&(ae=0),ae>0?v.prototype.schedule.call(this,ie,ae):(this.delay=ae,this.state=ie,this.scheduler.flush(this),this)},k.prototype.execute=function(ie,ae){return ae>0||this.closed?v.prototype.execute.call(this,ie,ae):this._execute(ie,ae)},k.prototype.requestAsyncId=function(ie,ae,ce){return ce===void 0&&(ce=0),ce!=null&&ce>0||ce==null&&this.delay>0?v.prototype.requestAsyncId.call(this,ie,ae,ce):(ie.flush(this),0)},k}(AsyncAction),QueueScheduler=function(v){__extends$1(k,v);function k(){return v!==null&&v.apply(this,arguments)||this}return k}(AsyncScheduler);new QueueScheduler(QueueAction);var AnimationFrameAction=function(v){__extends$1(k,v);function k(ie,ae){var ce=v.call(this,ie,ae)||this;return ce.scheduler=ie,ce.work=ae,ce}return k.prototype.requestAsyncId=function(ie,ae,ce){return ce===void 0&&(ce=0),ce!==null&&ce>0?v.prototype.requestAsyncId.call(this,ie,ae,ce):(ie.actions.push(this),ie._scheduled||(ie._scheduled=animationFrameProvider.requestAnimationFrame(function(){return ie.flush(void 0)})))},k.prototype.recycleAsyncId=function(ie,ae,ce){var fe;if(ce===void 0&&(ce=0),ce!=null?ce>0:this.delay>0)return v.prototype.recycleAsyncId.call(this,ie,ae,ce);var le=ie.actions;ae!=null&&((fe=le[le.length-1])===null||fe===void 0?void 0:fe.id)!==ae&&(animationFrameProvider.cancelAnimationFrame(ae),ie._scheduled=void 0)},k}(AsyncAction),AnimationFrameScheduler=function(v){__extends$1(k,v);function k(){return v!==null&&v.apply(this,arguments)||this}return k.prototype.flush=function(ie){this._active=!0;var ae=this._scheduled;this._scheduled=void 0;var ce=this.actions,fe;ie=ie||ce.shift();do if(fe=ie.execute(ie.state,ie.delay))break;while((ie=ce[0])&&ie.id===ae&&ce.shift());if(this._active=!1,fe){for(;(ie=ce[0])&&ie.id===ae&&ce.shift();)ie.unsubscribe();throw fe}},k}(AsyncScheduler);new AnimationFrameScheduler(AnimationFrameAction);(function(v){__extends$1(k,v);function k(ie,ae){ie===void 0&&(ie=VirtualAction),ae===void 0&&(ae=1/0);var ce=v.call(this,ie,function(){return ce.frame})||this;return ce.maxFrames=ae,ce.frame=0,ce.index=-1,ce}return k.prototype.flush=function(){for(var ie=this,ae=ie.actions,ce=ie.maxFrames,fe,le;(le=ae[0])&&le.delay<=ce&&(ae.shift(),this.frame=le.delay,!(fe=le.execute(le.state,le.delay))););if(fe){for(;le=ae.shift();)le.unsubscribe();throw fe}},k.frameTimeFactor=10,k})(AsyncScheduler);var VirtualAction=function(v){__extends$1(k,v);function k(ie,ae,ce){ce===void 0&&(ce=ie.index+=1);var fe=v.call(this,ie,ae)||this;return fe.scheduler=ie,fe.work=ae,fe.index=ce,fe.active=!0,fe.index=ie.index=ce,fe}return k.prototype.schedule=function(ie,ae){if(ae===void 0&&(ae=0),Number.isFinite(ae)){if(!this.id)return v.prototype.schedule.call(this,ie,ae);this.active=!1;var ce=new k(this.scheduler,this.work);return this.add(ce),ce.schedule(ie,ae)}else return Subscription$1.EMPTY},k.prototype.requestAsyncId=function(ie,ae,ce){ce===void 0&&(ce=0),this.delay=ie.frame+ce;var fe=ie.actions;return fe.push(this),fe.sort(k.sortActions),1},k.prototype.recycleAsyncId=function(ie,ae,ce){},k.prototype._execute=function(ie,ae){if(this.active===!0)return v.prototype._execute.call(this,ie,ae)},k.sortActions=function(ie,ae){return ie.delay===ae.delay?ie.index===ae.index?0:ie.index>ae.index?1:-1:ie.delay>ae.delay?1:-1},k}(AsyncAction);new Observable$1(function(v){return v.complete()});var NotificationKind;(function(v){v.NEXT="N",v.ERROR="E",v.COMPLETE="C"})(NotificationKind||(NotificationKind={}));createErrorClass$1(function(v){return function(){v(this),this.name="EmptyError",this.message="no elements in sequence"}});createErrorClass$1(function(v){return function(){v(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}});createErrorClass$1(function(v){return function(ie){v(this),this.name="NotFoundError",this.message=ie}});createErrorClass$1(function(v){return function(ie){v(this),this.name="SequenceError",this.message=ie}});createErrorClass$1(function(v){return function(ie){ie===void 0&&(ie=null),v(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ie}});function map(v,k){return operate$1(function(ie,ae){var ce=0;ie.subscribe(createOperatorSubscriber$1(ae,function(fe){ae.next(v.call(k,fe,ce++))}))})}new Observable$1(noop$d);function distinctUntilChanged(v,k){return k===void 0&&(k=identity$2),v=v!=null?v:defaultCompare,operate$1(function(ie,ae){var ce,fe=!0;ie.subscribe(createOperatorSubscriber$1(ae,function(le){var ve=k(le);(fe||!v(ce,ve))&&(fe=!1,ce=ve,ae.next(le))}))})}function defaultCompare(v,k){return v===k}const CONTRACT_ID="guest-book.testnet",_export_sfc=(v,k)=>{const ie=v.__vccOpts||v;for(const[ae,ce]of k)ie[ae]=ce;return ie},_sfc_main$4={},_hoisted_1$3=createBaseVNode("p",null," This app demonstrates a key element of NEAR\u2019s UX: once an app has permission to make calls on behalf of a user (that is, once a user signs in), the app can make calls to the blockchain for them without prompting extra confirmation. So you\u2019ll see that if you don\u2019t include a donation, your message gets posted right to the guest book. ",-1),_hoisted_2$2=createBaseVNode("p",null," But if you do add a donation, then NEAR will double-check that you\u2019re ok with sending money to this app. ",-1),_hoisted_3$1=createBaseVNode("p",null,"Go ahead and sign in to try it out!",-1);function _sfc_render(v,k){return openBlock(),createElementBlock(Fragment$1,null,[_hoisted_1$3,_hoisted_2$2,_hoisted_3$1],64)}const SignIn=_export_sfc(_sfc_main$4,[["render",_sfc_render]]),_hoisted_1$2=createBaseVNode("h2",null,"Messages",-1),_hoisted_2$1=createBaseVNode("br",null,null,-1),_sfc_main$3=defineComponent({__name:"Message",props:{messages:null},setup(v){return(k,ie)=>(openBlock(),createElementBlock(Fragment$1,null,[_hoisted_1$2,(openBlock(!0),createElementBlock(Fragment$1,null,renderList(v.messages,ae=>(openBlock(),createElementBlock("p",{class:normalizeClass(ae.premium?"is-premium":"")},[createBaseVNode("strong",null,toDisplayString(ae.sender),1),createTextVNode(":"),_hoisted_2$1,createTextVNode(" "+toDisplayString(ae.text),1)],2))),256))],64))}});var DP=20,RM=1,MAX_DP=1e6,MAX_POWER=1e6,NE=-7,PE=21,STRICT=!1,NAME$5="[big.js] ",INVALID=NAME$5+"Invalid ",INVALID_DP=INVALID+"decimal places",INVALID_RM=INVALID+"rounding mode",DIV_BY_ZERO=NAME$5+"Division by zero",P$1={},UNDEFINED=void 0,NUMERIC=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function _Big_(){function v(k){var ie=this;if(!(ie instanceof v))return k===UNDEFINED?_Big_():new v(k);if(k instanceof v)ie.s=k.s,ie.e=k.e,ie.c=k.c.slice();else{if(typeof k!="string"){if(v.strict===!0&&typeof k!="bigint")throw TypeError(INVALID+"value");k=k===0&&1/k<0?"-0":String(k)}parse$2(ie,k)}ie.constructor=v}return v.prototype=P$1,v.DP=DP,v.RM=RM,v.NE=NE,v.PE=PE,v.strict=STRICT,v.roundDown=0,v.roundHalfUp=1,v.roundHalfEven=2,v.roundUp=3,v}function parse$2(v,k){var ie,ae,ce;if(!NUMERIC.test(k))throw Error(INVALID+"number");for(v.s=k.charAt(0)=="-"?(k=k.slice(1),-1):1,(ie=k.indexOf("."))>-1&&(k=k.replace(".","")),(ae=k.search(/e/i))>0?(ie<0&&(ie=ae),ie+=+k.slice(ae+1),k=k.substring(0,ae)):ie<0&&(ie=k.length),ce=k.length,ae=0;ae0&&k.charAt(--ce)=="0";);for(v.e=ie-ae-1,v.c=[],ie=0;ae<=ce;)v.c[ie++]=+k.charAt(ae++)}return v}function round$5(v,k,ie,ae){var ce=v.c;if(ie===UNDEFINED&&(ie=v.constructor.RM),ie!==0&&ie!==1&&ie!==2&&ie!==3)throw Error(INVALID_RM);if(k<1)ae=ie===3&&(ae||!!ce[0])||k===0&&(ie===1&&ce[0]>=5||ie===2&&(ce[0]>5||ce[0]===5&&(ae||ce[1]!==UNDEFINED))),ce.length=1,ae?(v.e=v.e-k+1,ce[0]=1):ce[0]=v.e=0;else if(k=5||ie===2&&(ce[k]>5||ce[k]===5&&(ae||ce[k+1]!==UNDEFINED||ce[k-1]&1))||ie===3&&(ae||!!ce[0]),ce.length=k,ae){for(;++ce[--k]>9;)if(ce[k]=0,k===0){++v.e,ce.unshift(1);break}}for(k=ce.length;!ce[--k];)ce.pop()}return v}function stringify$1(v,k,ie){var ae=v.e,ce=v.c.join(""),fe=ce.length;if(k)ce=ce.charAt(0)+(fe>1?"."+ce.slice(1):"")+(ae<0?"e":"e+")+ae;else if(ae<0){for(;++ae;)ce="0"+ce;ce="0."+ce}else if(ae>0)if(++ae>fe)for(ae-=fe;ae--;)ce+="0";else ae1&&(ce=ce.charAt(0)+"."+ce.slice(1));return v.s<0&&ie?"-"+ce:ce}P$1.abs=function(){var v=new this.constructor(this);return v.s=1,v};P$1.cmp=function(v){var k,ie=this,ae=ie.c,ce=(v=new ie.constructor(v)).c,fe=ie.s,le=v.s,ve=ie.e,pe=v.e;if(!ae[0]||!ce[0])return ae[0]?fe:ce[0]?-le:0;if(fe!=le)return fe;if(k=fe<0,ve!=pe)return ve>pe^k?1:-1;for(le=(ve=ae.length)<(pe=ce.length)?ve:pe,fe=-1;++fece[fe]^k?1:-1;return ve==pe?0:ve>pe^k?1:-1};P$1.div=function(v){var k=this,ie=k.constructor,ae=k.c,ce=(v=new ie(v)).c,fe=k.s==v.s?1:-1,le=ie.DP;if(le!==~~le||le<0||le>MAX_DP)throw Error(INVALID_DP);if(!ce[0])throw Error(DIV_BY_ZERO);if(!ae[0])return v.s=fe,v.c=[v.e=0],v;var ve,pe,ye,me,Ee,cr=ce.slice(),Br=ve=ce.length,$r=ae.length,Pr=ae.slice(0,ve),Ar=Pr.length,ur=v,jr=ur.c=[],Mr=0,Lr=le+(ur.e=k.e-v.e)+1;for(ur.s=fe,fe=Lr<0?0:Lr,cr.unshift(0);Ar++Ar?1:-1;else for(Ee=-1,me=0;++EePr[Ee]?1:-1;break}if(me<0){for(pe=Ar==ve?ce:cr;Ar;){if(Pr[--Ar]Lr&&round$5(ur,Lr,ie.RM,Pr[0]!==UNDEFINED),ur};P$1.eq=function(v){return this.cmp(v)===0};P$1.gt=function(v){return this.cmp(v)>0};P$1.gte=function(v){return this.cmp(v)>-1};P$1.lt=function(v){return this.cmp(v)<0};P$1.lte=function(v){return this.cmp(v)<1};P$1.minus=P$1.sub=function(v){var k,ie,ae,ce,fe=this,le=fe.constructor,ve=fe.s,pe=(v=new le(v)).s;if(ve!=pe)return v.s=-pe,fe.plus(v);var ye=fe.c.slice(),me=fe.e,Ee=v.c,cr=v.e;if(!ye[0]||!Ee[0])return Ee[0]?v.s=-pe:ye[0]?v=new le(fe):v.s=1,v;if(ve=me-cr){for((ce=ve<0)?(ve=-ve,ae=ye):(cr=me,ae=Ee),ae.reverse(),pe=ve;pe--;)ae.push(0);ae.reverse()}else for(ie=((ce=ye.length0)for(;pe--;)ye[k++]=0;for(pe=k;ie>ve;){if(ye[--ie]0?(pe=le,ae=ye):(k=-k,ae=ve),ae.reverse();k--;)ae.push(0);ae.reverse()}for(ve.length-ye.length<0&&(ae=ye,ye=ve,ve=ae),k=ye.length,ie=0;k;ve[k]%=10)ie=(ve[--k]=ve[k]+ye[k]+ie)/10|0;for(ie&&(ve.unshift(ie),++pe),k=ve.length;ve[--k]===0;)ve.pop();return v.c=ve,v.e=pe,v};P$1.pow=function(v){var k=this,ie=new k.constructor("1"),ae=ie,ce=v<0;if(v!==~~v||v<-MAX_POWER||v>MAX_POWER)throw Error(INVALID+"exponent");for(ce&&(v=-v);v&1&&(ae=ae.times(k)),v>>=1,!!v;)k=k.times(k);return ce?ie.div(ae):ae};P$1.prec=function(v,k){if(v!==~~v||v<1||v>MAX_DP)throw Error(INVALID+"precision");return round$5(new this.constructor(this),v,k)};P$1.round=function(v,k){if(v===UNDEFINED)v=0;else if(v!==~~v||v<-MAX_DP||v>MAX_DP)throw Error(INVALID_DP);return round$5(new this.constructor(this),v+this.e+1,k)};P$1.sqrt=function(){var v,k,ie,ae=this,ce=ae.constructor,fe=ae.s,le=ae.e,ve=new ce("0.5");if(!ae.c[0])return new ce(ae);if(fe<0)throw Error(NAME$5+"No square root");fe=Math.sqrt(ae+""),fe===0||fe===1/0?(k=ae.c.join(""),k.length+le&1||(k+="0"),fe=Math.sqrt(k),le=((le+1)/2|0)-(le<0||le&1),v=new ce((fe==1/0?"5e":(fe=fe.toExponential()).slice(0,fe.indexOf("e")+1))+le)):v=new ce(fe+""),le=v.e+(ce.DP+=4);do ie=v,v=ve.times(ie.plus(ae.div(ie)));while(ie.c.slice(0,le).join("")!==v.c.slice(0,le).join(""));return round$5(v,(ce.DP-=4)+v.e+1,ce.RM)};P$1.times=P$1.mul=function(v){var k,ie=this,ae=ie.constructor,ce=ie.c,fe=(v=new ae(v)).c,le=ce.length,ve=fe.length,pe=ie.e,ye=v.e;if(v.s=ie.s==v.s?1:-1,!ce[0]||!fe[0])return v.c=[v.e=0],v;for(v.e=pe+ye,lepe;)ve=k[ye]+fe[pe]*ce[ye-pe-1]+ve,k[ye--]=ve%10,ve=ve/10|0;k[ye]=ve}for(ve?++v.e:k.shift(),pe=k.length;!k[--pe];)k.pop();return v.c=k,v};P$1.toExponential=function(v,k){var ie=this,ae=ie.c[0];if(v!==UNDEFINED){if(v!==~~v||v<0||v>MAX_DP)throw Error(INVALID_DP);for(ie=round$5(new ie.constructor(ie),++v,k);ie.c.lengthMAX_DP)throw Error(INVALID_DP);for(ie=round$5(new ie.constructor(ie),v+ie.e+1,k),v=v+ie.e+1;ie.c.length=k.PE,!!v.c[0])};P$1.toNumber=function(){var v=Number(stringify$1(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(v.toString()))throw Error(NAME$5+"Imprecise conversion");return v};P$1.toPrecision=function(v,k){var ie=this,ae=ie.constructor,ce=ie.c[0];if(v!==UNDEFINED){if(v!==~~v||v<1||v>MAX_DP)throw Error(INVALID+"precision");for(ie=round$5(new ae(ie),v,k);ie.c.length=ae.PE,!!ce)};P$1.valueOf=function(){var v=this,k=v.constructor;if(k.strict===!0)throw Error(NAME$5+"valueOf disallowed");return stringify$1(v,v.e<=k.NE||v.e>=k.PE,!0)};var Big=_Big_(),big_default=Big,big_js_default=big_default;const _hoisted_1$1={id:"fieldset"},_hoisted_2=createBaseVNode("p",{class:"highlight"},[createBaseVNode("label",{for:"message"},"Message:"),createBaseVNode("input",{autoComplete:"off",autoFocus:"",id:"message",required:""})],-1),_hoisted_3=createStaticVNode('

\u24C3

',3),_sfc_main$2=defineComponent({__name:"Form",props:{account:null,onSubmit:null},setup(v){return big_js_default(v.account.amount).div(10**24).toString(),(ie,ae)=>(openBlock(),createElementBlock("form",{onSubmit:ae[0]||(ae[0]=withModifiers((...ce)=>v.onSubmit&&v.onSubmit(...ce),["prevent"]))},[createBaseVNode("fieldset",_hoisted_1$1,[createBaseVNode("p",null,"Sign the guest book, "+toDisplayString(v.account.account_id)+"!",1),_hoisted_2,_hoisted_3])],32))}}),providers=near_api_js_default.providers,utils=near_api_js_default.utils,Buffer$1=buffer_default.Buffer,_sfc_main$1=defineComponent({__name:"Content",props:{selector:null,modal:null,accountId:null,accounts:null},setup(v){const{selector:k,modal:ie,accountId:ae,accounts:ce}=v,fe="0",le=utils.format.parseNearAmount("0.00000000003"),ve=reactive({account:null,messages:[],subscription:new Subscription$1,currentAccounts:[],currentAccountId:null}),pe=async()=>{if(!ve.currentAccountId)return null;const{network:jr}=k.options;return new providers.JsonRpcProvider({url:jr.nodeUrl}).query({request_type:"view_account",finality:"final",account_id:ve.currentAccountId}).then(Lr=>({...Lr,account_id:ve.currentAccountId}))},ye=()=>{ie.show()},me=async()=>{(await k.wallet()).signOut().catch(Mr=>{console.log("Failed to sign out"),console.error(Mr)})},Ee=()=>{ie.show()},cr=()=>{const{network:jr}=k.options;return new providers.JsonRpcProvider({url:jr.nodeUrl}).query({request_type:"call_function",account_id:CONTRACT_ID,method_name:"getMessages",args_base64:"",finality:"optimistic"}).then(Lr=>JSON.parse(Buffer$1.from(Lr.result).toString()))},Br=()=>{const jr=ce.findIndex(Vr=>Vr.accountId===ae),Mr=jr{const jr=await k.wallet();try{const Mr=await jr.verifyOwner({message:"test message for verification"});Mr&&alert(`Signature for verification: ${JSON.stringify(Mr)}`)}catch(Mr){const Lr=Mr instanceof Error?Mr.message:"Something went wrong";alert(Lr)}},Pr=()=>{ve.subscription=k.store.observable.pipe(map(jr=>jr.accounts),distinctUntilChanged()).subscribe(jr=>{var Mr;console.log("Accounts Update",jr),ve.currentAccounts=jr,ve.currentAccountId=((Mr=jr.find(Lr=>Lr.active))==null?void 0:Mr.accountId)||null,pe().then(Lr=>{ve.account=Lr})})},Ar=async(jr,Mr,Lr)=>{const{contract:Vr}=k.store.getState(),Gr=await k.wallet();if(!Lr)return Gr.signAndSendTransaction({signerId:ve.currentAccountId,actions:[{type:"FunctionCall",params:{methodName:"addMessage",args:{text:jr},gas:le,deposit:utils.format.parseNearAmount(Mr)}}]}).catch(Qr=>{throw alert("Failed to add message"),console.log("Failed to add message"),Qr});const Ur=[];for(let Qr=0;Qr<2;Qr+=1)Ur.push({signerId:ve.currentAccountId,receiverId:Vr.contractId,actions:[{type:"FunctionCall",params:{methodName:"addMessage",args:{text:`${jr} (${Qr+1}/2)`},gas:le,deposit:utils.format.parseNearAmount(Mr)}}]});return Gr.signAndSendTransactions({transactions:Ur}).catch(Qr=>{throw alert("Failed to add messages"),console.log("Failed to add messages"),Qr})},ur=jr=>{const{fieldset:Mr,message:Lr,donation:Vr,multiple:Gr}=jr.target.elements;Mr.disabled=!0,Ar(Lr.value,Vr.value||"0",Gr.checked).then(()=>cr().then(Ur=>{ve.messages=Ur,Lr.value="",Vr.value=fe,Mr.disabled=!1,Gr.checked=!1,Lr.focus()}).catch(Ur=>{throw alert("Failed to refresh messages"),console.log("Failed to refresh messages"),Ur})).catch(Ur=>{console.error(Ur),Mr.disabled=!1})};return onMounted(async()=>{ve.currentAccountId=ae,ve.currentAccounts=ce;const[jr,Mr]=await Promise.all([cr(),pe()]);ve.account=Mr,ve.messages=jr,Pr()}),onUnmounted(()=>{ve.subscription.unsubscribe()}),(jr,Mr)=>ve.account?(openBlock(),createElementBlock(Fragment$1,{key:0},[createBaseVNode("div",null,[createBaseVNode("button",{onClick:me},"Log out"),createBaseVNode("button",{onClick:Ee},"Switch Provider"),createBaseVNode("button",{onClick:$r},"Verify Owner"),v.accounts.length>1?(openBlock(),createElementBlock("button",{key:0,onClick:Br}," Switch Account ")):createCommentVNode("",!0)]),createVNode(_sfc_main$2,{account:ve.account,onSubmit:ur},null,8,["account"]),createVNode(_sfc_main$3,{messages:ve.messages},null,8,["messages"])],64)):(openBlock(),createElementBlock(Fragment$1,{key:1},[createBaseVNode("div",null,[createBaseVNode("button",{onClick:ye},"Log in for testing")]),createVNode(SignIn)],64))}});var require_events=__commonJS$1({"node_modules/events/events.js"(v,k){var ie=typeof Reflect=="object"?Reflect:null,ae=ie&&typeof ie.apply=="function"?ie.apply:function(Ur,Qr,hn){return Function.prototype.apply.call(Ur,Qr,hn)},ce;ie&&typeof ie.ownKeys=="function"?ce=ie.ownKeys:Object.getOwnPropertySymbols?ce=function(Ur){return Object.getOwnPropertyNames(Ur).concat(Object.getOwnPropertySymbols(Ur))}:ce=function(Ur){return Object.getOwnPropertyNames(Ur)};function fe(Gr){console&&console.warn&&console.warn(Gr)}var le=Number.isNaN||function(Ur){return Ur!==Ur};function ve(){ve.init.call(this)}k.exports=ve,k.exports.once=Mr,ve.EventEmitter=ve,ve.prototype._events=void 0,ve.prototype._eventsCount=0,ve.prototype._maxListeners=void 0;var pe=10;function ye(Gr){if(typeof Gr!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Gr)}Object.defineProperty(ve,"defaultMaxListeners",{enumerable:!0,get:function(){return pe},set:function(Gr){if(typeof Gr!="number"||Gr<0||le(Gr))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Gr+".");pe=Gr}}),ve.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ve.prototype.setMaxListeners=function(Ur){if(typeof Ur!="number"||Ur<0||le(Ur))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ur+".");return this._maxListeners=Ur,this};function me(Gr){return Gr._maxListeners===void 0?ve.defaultMaxListeners:Gr._maxListeners}ve.prototype.getMaxListeners=function(){return me(this)},ve.prototype.emit=function(Ur){for(var Qr=[],hn=1;hn0&&(Qt=Qr[0]),Qt instanceof Error)throw Qt;var Xt=new Error("Unhandled error."+(Qt?" ("+Qt.message+")":""));throw Xt.context=Qt,Xt}var Kr=fn[Ur];if(Kr===void 0)return!1;if(typeof Kr=="function")ae(Kr,this,Qr);else for(var be=Kr.length,kr=Ar(Kr,be),hn=0;hn0&&Qt.length>Yt&&!Qt.warned){Qt.warned=!0;var Xt=new Error("Possible EventEmitter memory leak detected. "+Qt.length+" "+String(Ur)+" listeners added. Use emitter.setMaxListeners() to increase limit");Xt.name="MaxListenersExceededWarning",Xt.emitter=Gr,Xt.type=Ur,Xt.count=Qt.length,fe(Xt)}return Gr}ve.prototype.addListener=function(Ur,Qr){return Ee(this,Ur,Qr,!1)},ve.prototype.on=ve.prototype.addListener,ve.prototype.prependListener=function(Ur,Qr){return Ee(this,Ur,Qr,!0)};function cr(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Br(Gr,Ur,Qr){var hn={fired:!1,wrapFn:void 0,target:Gr,type:Ur,listener:Qr},Yt=cr.bind(hn);return Yt.listener=Qr,hn.wrapFn=Yt,Yt}ve.prototype.once=function(Ur,Qr){return ye(Qr),this.on(Ur,Br(this,Ur,Qr)),this},ve.prototype.prependOnceListener=function(Ur,Qr){return ye(Qr),this.prependListener(Ur,Br(this,Ur,Qr)),this},ve.prototype.removeListener=function(Ur,Qr){var hn,Yt,fn,Qt,Xt;if(ye(Qr),Yt=this._events,Yt===void 0)return this;if(hn=Yt[Ur],hn===void 0)return this;if(hn===Qr||hn.listener===Qr)--this._eventsCount===0?this._events=Object.create(null):(delete Yt[Ur],Yt.removeListener&&this.emit("removeListener",Ur,hn.listener||Qr));else if(typeof hn!="function"){for(fn=-1,Qt=hn.length-1;Qt>=0;Qt--)if(hn[Qt]===Qr||hn[Qt].listener===Qr){Xt=hn[Qt].listener,fn=Qt;break}if(fn<0)return this;fn===0?hn.shift():ur(hn,fn),hn.length===1&&(Yt[Ur]=hn[0]),Yt.removeListener!==void 0&&this.emit("removeListener",Ur,Xt||Qr)}return this},ve.prototype.off=ve.prototype.removeListener,ve.prototype.removeAllListeners=function(Ur){var Qr,hn,Yt;if(hn=this._events,hn===void 0)return this;if(hn.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):hn[Ur]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete hn[Ur]),this;if(arguments.length===0){var fn=Object.keys(hn),Qt;for(Yt=0;Yt=0;Yt--)this.removeListener(Ur,Qr[Yt]);return this};function $r(Gr,Ur,Qr){var hn=Gr._events;if(hn===void 0)return[];var Yt=hn[Ur];return Yt===void 0?[]:typeof Yt=="function"?Qr?[Yt.listener||Yt]:[Yt]:Qr?jr(Yt):Ar(Yt,Yt.length)}ve.prototype.listeners=function(Ur){return $r(this,Ur,!0)},ve.prototype.rawListeners=function(Ur){return $r(this,Ur,!1)},ve.listenerCount=function(Gr,Ur){return typeof Gr.listenerCount=="function"?Gr.listenerCount(Ur):Pr.call(Gr,Ur)},ve.prototype.listenerCount=Pr;function Pr(Gr){var Ur=this._events;if(Ur!==void 0){var Qr=Ur[Gr];if(typeof Qr=="function")return 1;if(Qr!==void 0)return Qr.length}return 0}ve.prototype.eventNames=function(){return this._eventsCount>0?ce(this._events):[]};function Ar(Gr,Ur){for(var Qr=new Array(Ur),hn=0;hn0?be:kr},le.min=function(be,kr){return be.cmp(kr)<0?be:kr},le.prototype._init=function(be,kr,xr){if(typeof be=="number")return this._initNumber(be,kr,xr);if(typeof be=="object")return this._initArray(be,kr,xr);kr==="hex"&&(kr=16),ce(kr===(kr|0)&&kr>=2&&kr<=36),be=be.toString().replace(/\s+/g,"");var Wr=0;be[0]==="-"&&(Wr++,this.negative=1),Wr=0;Wr-=3)Xr=be[Wr]|be[Wr-1]<<8|be[Wr-2]<<16,this.words[Jt]|=Xr<>>26-zr&67108863,zr+=24,zr>=26&&(zr-=26,Jt++);else if(xr==="le")for(Wr=0,Jt=0;Wr>>26-zr&67108863,zr+=24,zr>=26&&(zr-=26,Jt++);return this._strip()};function pe(Kr,be){var kr=Kr.charCodeAt(be);if(kr>=48&&kr<=57)return kr-48;if(kr>=65&&kr<=70)return kr-55;if(kr>=97&&kr<=102)return kr-87;ce(!1,"Invalid character in "+Kr)}function ye(Kr,be,kr){var xr=pe(Kr,kr);return kr-1>=be&&(xr|=pe(Kr,kr-1)<<4),xr}le.prototype._parseHex=function(be,kr,xr){this.length=Math.ceil((be.length-kr)/6),this.words=new Array(this.length);for(var Wr=0;Wr=kr;Wr-=2)zr=ye(be,kr,Wr)<=18?(Jt-=18,Xr+=1,this.words[Xr]|=zr>>>26):Jt+=8;else{var Jr=be.length-kr;for(Wr=Jr%2===0?kr+1:kr;Wr=18?(Jt-=18,Xr+=1,this.words[Xr]|=zr>>>26):Jt+=8}this._strip()};function me(Kr,be,kr,xr){for(var Wr=0,Jt=0,Xr=Math.min(Kr.length,kr),zr=be;zr=49?Jt=Jr-49+10:Jr>=17?Jt=Jr-17+10:Jt=Jr,ce(Jr>=0&&Jt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},le.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{le.prototype[Symbol.for("nodejs.util.inspect.custom")]=cr}catch{le.prototype.inspect=cr}else le.prototype.inspect=cr;function cr(){return(this.red?""}var Br=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],$r=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Pr=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];le.prototype.toString=function(be,kr){be=be||10,kr=kr|0||1;var xr;if(be===16||be==="hex"){xr="";for(var Wr=0,Jt=0,Xr=0;Xr>>24-Wr&16777215,Wr+=2,Wr>=26&&(Wr-=26,Xr--),Jt!==0||Xr!==this.length-1?xr=Br[6-Jr.length]+Jr+xr:xr=Jr+xr}for(Jt!==0&&(xr=Jt.toString(16)+xr);xr.length%kr!==0;)xr="0"+xr;return this.negative!==0&&(xr="-"+xr),xr}if(be===(be|0)&&be>=2&&be<=36){var Nr=$r[be],Hr=Pr[be];xr="";var On=this.clone();for(On.negative=0;!On.isZero();){var Gn=On.modrn(Hr).toString(be);On=On.idivn(Hr),On.isZero()?xr=Gn+xr:xr=Br[Nr-Gn.length]+Gn+xr}for(this.isZero()&&(xr="0"+xr);xr.length%kr!==0;)xr="0"+xr;return this.negative!==0&&(xr="-"+xr),xr}ce(!1,"Base should be between 2 and 36")},le.prototype.toNumber=function(){var be=this.words[0];return this.length===2?be+=this.words[1]*67108864:this.length===3&&this.words[2]===1?be+=4503599627370496+this.words[1]*67108864:this.length>2&&ce(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-be:be},le.prototype.toJSON=function(){return this.toString(16,2)},ve&&(le.prototype.toBuffer=function(be,kr){return this.toArrayLike(ve,be,kr)}),le.prototype.toArray=function(be,kr){return this.toArrayLike(Array,be,kr)};var Ar=function(be,kr){return be.allocUnsafe?be.allocUnsafe(kr):new be(kr)};le.prototype.toArrayLike=function(be,kr,xr){this._strip();var Wr=this.byteLength(),Jt=xr||Math.max(1,Wr);ce(Wr<=Jt,"byte array longer than desired length"),ce(Jt>0,"Requested array length <= 0");var Xr=Ar(be,Jt),zr=kr==="le"?"LE":"BE";return this["_toArrayLike"+zr](Xr,Wr),Xr},le.prototype._toArrayLikeLE=function(be,kr){for(var xr=0,Wr=0,Jt=0,Xr=0;Jt>8&255),xr>16&255),Xr===6?(xr>24&255),Wr=0,Xr=0):(Wr=zr>>>24,Xr+=2)}if(xr=0&&(be[xr--]=zr>>8&255),xr>=0&&(be[xr--]=zr>>16&255),Xr===6?(xr>=0&&(be[xr--]=zr>>24&255),Wr=0,Xr=0):(Wr=zr>>>24,Xr+=2)}if(xr>=0)for(be[xr--]=Wr;xr>=0;)be[xr--]=0},Math.clz32?le.prototype._countBits=function(be){return 32-Math.clz32(be)}:le.prototype._countBits=function(be){var kr=be,xr=0;return kr>=4096&&(xr+=13,kr>>>=13),kr>=64&&(xr+=7,kr>>>=7),kr>=8&&(xr+=4,kr>>>=4),kr>=2&&(xr+=2,kr>>>=2),xr+kr},le.prototype._zeroBits=function(be){if(be===0)return 26;var kr=be,xr=0;return(kr&8191)===0&&(xr+=13,kr>>>=13),(kr&127)===0&&(xr+=7,kr>>>=7),(kr&15)===0&&(xr+=4,kr>>>=4),(kr&3)===0&&(xr+=2,kr>>>=2),(kr&1)===0&&xr++,xr},le.prototype.bitLength=function(){var be=this.words[this.length-1],kr=this._countBits(be);return(this.length-1)*26+kr};function ur(Kr){for(var be=new Array(Kr.bitLength()),kr=0;kr>>Wr&1}return be}le.prototype.zeroBits=function(){if(this.isZero())return 0;for(var be=0,kr=0;krbe.length?this.clone().ior(be):be.clone().ior(this)},le.prototype.uor=function(be){return this.length>be.length?this.clone().iuor(be):be.clone().iuor(this)},le.prototype.iuand=function(be){var kr;this.length>be.length?kr=be:kr=this;for(var xr=0;xrbe.length?this.clone().iand(be):be.clone().iand(this)},le.prototype.uand=function(be){return this.length>be.length?this.clone().iuand(be):be.clone().iuand(this)},le.prototype.iuxor=function(be){var kr,xr;this.length>be.length?(kr=this,xr=be):(kr=be,xr=this);for(var Wr=0;Wrbe.length?this.clone().ixor(be):be.clone().ixor(this)},le.prototype.uxor=function(be){return this.length>be.length?this.clone().iuxor(be):be.clone().iuxor(this)},le.prototype.inotn=function(be){ce(typeof be=="number"&&be>=0);var kr=Math.ceil(be/26)|0,xr=be%26;this._expand(kr),xr>0&&kr--;for(var Wr=0;Wr0&&(this.words[Wr]=~this.words[Wr]&67108863>>26-xr),this._strip()},le.prototype.notn=function(be){return this.clone().inotn(be)},le.prototype.setn=function(be,kr){ce(typeof be=="number"&&be>=0);var xr=be/26|0,Wr=be%26;return this._expand(xr+1),kr?this.words[xr]=this.words[xr]|1<be.length?(xr=this,Wr=be):(xr=be,Wr=this);for(var Jt=0,Xr=0;Xr>>26;for(;Jt!==0&&Xr>>26;if(this.length=xr.length,Jt!==0)this.words[this.length]=Jt,this.length++;else if(xr!==this)for(;Xrbe.length?this.clone().iadd(be):be.clone().iadd(this)},le.prototype.isub=function(be){if(be.negative!==0){be.negative=0;var kr=this.iadd(be);return be.negative=1,kr._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(be),this.negative=1,this._normSign();var xr=this.cmp(be);if(xr===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Wr,Jt;xr>0?(Wr=this,Jt=be):(Wr=be,Jt=this);for(var Xr=0,zr=0;zr>26,this.words[zr]=kr&67108863;for(;Xr!==0&&zr>26,this.words[zr]=kr&67108863;if(Xr===0&&zr>>26,On=Jr&67108863,Gn=Math.min(Nr,be.length-1),mn=Math.max(0,Nr-Kr.length+1);mn<=Gn;mn++){var Nn=Nr-mn|0;Wr=Kr.words[Nn]|0,Jt=be.words[mn]|0,Xr=Wr*Jt+On,Hr+=Xr/67108864|0,On=Xr&67108863}kr.words[Nr]=On|0,Jr=Hr|0}return Jr!==0?kr.words[Nr]=Jr|0:kr.length--,kr._strip()}var Mr=function(be,kr,xr){var Wr=be.words,Jt=kr.words,Xr=xr.words,zr=0,Jr,Nr,Hr,On=Wr[0]|0,Gn=On&8191,mn=On>>>13,Nn=Wr[1]|0,In=Nn&8191,bn=Nn>>>13,ii=Wr[2]|0,vn=ii&8191,pn=ii>>>13,Sn=Wr[3]|0,Qn=Sn&8191,Jn=Sn>>>13,ui=Wr[4]|0,gi=ui&8191,di=ui>>>13,Ci=Wr[5]|0,yi=Ci&8191,li=Ci>>>13,Pi=Wr[6]|0,Ai=Pi&8191,Oi=Pi>>>13,to=Wr[7]|0,En=to&8191,Bt=to>>>13,Zt=Wr[8]|0,Tn=Zt&8191,ei=Zt>>>13,zn=Wr[9]|0,gn=zn&8191,xn=zn>>>13,Hn=Jt[0]|0,Ln=Hn&8191,ti=Hn>>>13,oi=Jt[1]|0,Ei=oi&8191,Ri=oi>>>13,Oo=Jt[2]|0,Ui=Oo&8191,io=Oo>>>13,So=Jt[3]|0,$o=So&8191,mo=So>>>13,qo=Jt[4]|0,wo=qo&8191,Eo=qo>>>13,jo=Jt[5]|0,go=jo&8191,zi=jo>>>13,xo=Jt[6]|0,Yr=xo&8191,Wt=xo>>>13,ln=Jt[7]|0,qr=ln&8191,dn=ln>>>13,ri=Jt[8]|0,Zn=ri&8191,ai=ri>>>13,bi=Jt[9]|0,_i=bi&8191,fi=bi>>>13;xr.negative=be.negative^kr.negative,xr.length=19,Jr=Math.imul(Gn,Ln),Nr=Math.imul(Gn,ti),Nr=Nr+Math.imul(mn,Ln)|0,Hr=Math.imul(mn,ti);var yo=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(yo>>>26)|0,yo&=67108863,Jr=Math.imul(In,Ln),Nr=Math.imul(In,ti),Nr=Nr+Math.imul(bn,Ln)|0,Hr=Math.imul(bn,ti),Jr=Jr+Math.imul(Gn,Ei)|0,Nr=Nr+Math.imul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r[18]=Si,zr!==0&&(Xr[19]=zr,xr.length++),xr};Math.imul||(Mr=jr);function Lr(Kr,be,kr){kr.negative=be.negative^Kr.negative,kr.length=Kr.length+be.length;for(var xr=0,Wr=0,Jt=0;Jt>>26)|0,Wr+=Xr>>>26,Xr&=67108863}kr.words[Jt]=zr,xr=Xr,Xr=Wr}return xr!==0?kr.words[Jt]=xr:kr.length--,kr._strip()}function Vr(Kr,be,kr){return Lr(Kr,be,kr)}le.prototype.mulTo=function(be,kr){var xr,Wr=this.length+be.length;return this.length===10&&be.length===10?xr=Mr(this,be,kr):Wr<63?xr=jr(this,be,kr):Wr<1024?xr=Lr(this,be,kr):xr=Vr(this,be,kr),xr},le.prototype.mul=function(be){var kr=new le(null);return kr.words=new Array(this.length+be.length),this.mulTo(be,kr)},le.prototype.mulf=function(be){var kr=new le(null);return kr.words=new Array(this.length+be.length),Vr(this,be,kr)},le.prototype.imul=function(be){return this.clone().mulTo(be,this)},le.prototype.imuln=function(be){var kr=be<0;kr&&(be=-be),ce(typeof be=="number"),ce(be<67108864);for(var xr=0,Wr=0;Wr>=26,xr+=Jt/67108864|0,xr+=Xr>>>26,this.words[Wr]=Xr&67108863}return xr!==0&&(this.words[Wr]=xr,this.length++),kr?this.ineg():this},le.prototype.muln=function(be){return this.clone().imuln(be)},le.prototype.sqr=function(){return this.mul(this)},le.prototype.isqr=function(){return this.imul(this.clone())},le.prototype.pow=function(be){var kr=ur(be);if(kr.length===0)return new le(1);for(var xr=this,Wr=0;Wr=0);var kr=be%26,xr=(be-kr)/26,Wr=67108863>>>26-kr<<26-kr,Jt;if(kr!==0){var Xr=0;for(Jt=0;Jt>>26-kr}Xr&&(this.words[Jt]=Xr,this.length++)}if(xr!==0){for(Jt=this.length-1;Jt>=0;Jt--)this.words[Jt+xr]=this.words[Jt];for(Jt=0;Jt=0);var Wr;kr?Wr=(kr-kr%26)/26:Wr=0;var Jt=be%26,Xr=Math.min((be-Jt)/26,this.length),zr=67108863^67108863>>>Jt<Xr)for(this.length-=Xr,Nr=0;Nr=0&&(Hr!==0||Nr>=Wr);Nr--){var On=this.words[Nr]|0;this.words[Nr]=Hr<<26-Jt|On>>>Jt,Hr=On&zr}return Jr&&Hr!==0&&(Jr.words[Jr.length++]=Hr),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},le.prototype.ishrn=function(be,kr,xr){return ce(this.negative===0),this.iushrn(be,kr,xr)},le.prototype.shln=function(be){return this.clone().ishln(be)},le.prototype.ushln=function(be){return this.clone().iushln(be)},le.prototype.shrn=function(be){return this.clone().ishrn(be)},le.prototype.ushrn=function(be){return this.clone().iushrn(be)},le.prototype.testn=function(be){ce(typeof be=="number"&&be>=0);var kr=be%26,xr=(be-kr)/26,Wr=1<=0);var kr=be%26,xr=(be-kr)/26;if(ce(this.negative===0,"imaskn works only with positive numbers"),this.length<=xr)return this;if(kr!==0&&xr++,this.length=Math.min(xr,this.length),kr!==0){var Wr=67108863^67108863>>>kr<=67108864;kr++)this.words[kr]-=67108864,kr===this.length-1?this.words[kr+1]=1:this.words[kr+1]++;return this.length=Math.max(this.length,kr+1),this},le.prototype.isubn=function(be){if(ce(typeof be=="number"),ce(be<67108864),be<0)return this.iaddn(-be);if(this.negative!==0)return this.negative=0,this.iaddn(be),this.negative=1,this;if(this.words[0]-=be,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var kr=0;kr>26)-(Jr/67108864|0),this.words[Jt+xr]=Xr&67108863}for(;Jt>26,this.words[Jt+xr]=Xr&67108863;if(zr===0)return this._strip();for(ce(zr===-1),zr=0,Jt=0;Jt>26,this.words[Jt]=Xr&67108863;return this.negative=1,this._strip()},le.prototype._wordDiv=function(be,kr){var xr=this.length-be.length,Wr=this.clone(),Jt=be,Xr=Jt.words[Jt.length-1]|0,zr=this._countBits(Xr);xr=26-zr,xr!==0&&(Jt=Jt.ushln(xr),Wr.iushln(xr),Xr=Jt.words[Jt.length-1]|0);var Jr=Wr.length-Jt.length,Nr;if(kr!=="mod"){Nr=new le(null),Nr.length=Jr+1,Nr.words=new Array(Nr.length);for(var Hr=0;Hr=0;Gn--){var mn=(Wr.words[Jt.length+Gn]|0)*67108864+(Wr.words[Jt.length+Gn-1]|0);for(mn=Math.min(mn/Xr|0,67108863),Wr._ishlnsubmul(Jt,mn,Gn);Wr.negative!==0;)mn--,Wr.negative=0,Wr._ishlnsubmul(Jt,1,Gn),Wr.isZero()||(Wr.negative^=1);Nr&&(Nr.words[Gn]=mn)}return Nr&&Nr._strip(),Wr._strip(),kr!=="div"&&xr!==0&&Wr.iushrn(xr),{div:Nr||null,mod:Wr}},le.prototype.divmod=function(be,kr,xr){if(ce(!be.isZero()),this.isZero())return{div:new le(0),mod:new le(0)};var Wr,Jt,Xr;return this.negative!==0&&be.negative===0?(Xr=this.neg().divmod(be,kr),kr!=="mod"&&(Wr=Xr.div.neg()),kr!=="div"&&(Jt=Xr.mod.neg(),xr&&Jt.negative!==0&&Jt.iadd(be)),{div:Wr,mod:Jt}):this.negative===0&&be.negative!==0?(Xr=this.divmod(be.neg(),kr),kr!=="mod"&&(Wr=Xr.div.neg()),{div:Wr,mod:Xr.mod}):(this.negative&be.negative)!==0?(Xr=this.neg().divmod(be.neg(),kr),kr!=="div"&&(Jt=Xr.mod.neg(),xr&&Jt.negative!==0&&Jt.isub(be)),{div:Xr.div,mod:Jt}):be.length>this.length||this.cmp(be)<0?{div:new le(0),mod:this}:be.length===1?kr==="div"?{div:this.divn(be.words[0]),mod:null}:kr==="mod"?{div:null,mod:new le(this.modrn(be.words[0]))}:{div:this.divn(be.words[0]),mod:new le(this.modrn(be.words[0]))}:this._wordDiv(be,kr)},le.prototype.div=function(be){return this.divmod(be,"div",!1).div},le.prototype.mod=function(be){return this.divmod(be,"mod",!1).mod},le.prototype.umod=function(be){return this.divmod(be,"mod",!0).mod},le.prototype.divRound=function(be){var kr=this.divmod(be);if(kr.mod.isZero())return kr.div;var xr=kr.div.negative!==0?kr.mod.isub(be):kr.mod,Wr=be.ushrn(1),Jt=be.andln(1),Xr=xr.cmp(Wr);return Xr<0||Jt===1&&Xr===0?kr.div:kr.div.negative!==0?kr.div.isubn(1):kr.div.iaddn(1)},le.prototype.modrn=function(be){var kr=be<0;kr&&(be=-be),ce(be<=67108863);for(var xr=(1<<26)%be,Wr=0,Jt=this.length-1;Jt>=0;Jt--)Wr=(xr*Wr+(this.words[Jt]|0))%be;return kr?-Wr:Wr},le.prototype.modn=function(be){return this.modrn(be)},le.prototype.idivn=function(be){var kr=be<0;kr&&(be=-be),ce(be<=67108863);for(var xr=0,Wr=this.length-1;Wr>=0;Wr--){var Jt=(this.words[Wr]|0)+xr*67108864;this.words[Wr]=Jt/be|0,xr=Jt%be}return this._strip(),kr?this.ineg():this},le.prototype.divn=function(be){return this.clone().idivn(be)},le.prototype.egcd=function(be){ce(be.negative===0),ce(!be.isZero());var kr=this,xr=be.clone();kr.negative!==0?kr=kr.umod(be):kr=kr.clone();for(var Wr=new le(1),Jt=new le(0),Xr=new le(0),zr=new le(1),Jr=0;kr.isEven()&&xr.isEven();)kr.iushrn(1),xr.iushrn(1),++Jr;for(var Nr=xr.clone(),Hr=kr.clone();!kr.isZero();){for(var On=0,Gn=1;(kr.words[0]&Gn)===0&&On<26;++On,Gn<<=1);if(On>0)for(kr.iushrn(On);On-- >0;)(Wr.isOdd()||Jt.isOdd())&&(Wr.iadd(Nr),Jt.isub(Hr)),Wr.iushrn(1),Jt.iushrn(1);for(var mn=0,Nn=1;(xr.words[0]&Nn)===0&&mn<26;++mn,Nn<<=1);if(mn>0)for(xr.iushrn(mn);mn-- >0;)(Xr.isOdd()||zr.isOdd())&&(Xr.iadd(Nr),zr.isub(Hr)),Xr.iushrn(1),zr.iushrn(1);kr.cmp(xr)>=0?(kr.isub(xr),Wr.isub(Xr),Jt.isub(zr)):(xr.isub(kr),Xr.isub(Wr),zr.isub(Jt))}return{a:Xr,b:zr,gcd:xr.iushln(Jr)}},le.prototype._invmp=function(be){ce(be.negative===0),ce(!be.isZero());var kr=this,xr=be.clone();kr.negative!==0?kr=kr.umod(be):kr=kr.clone();for(var Wr=new le(1),Jt=new le(0),Xr=xr.clone();kr.cmpn(1)>0&&xr.cmpn(1)>0;){for(var zr=0,Jr=1;(kr.words[0]&Jr)===0&&zr<26;++zr,Jr<<=1);if(zr>0)for(kr.iushrn(zr);zr-- >0;)Wr.isOdd()&&Wr.iadd(Xr),Wr.iushrn(1);for(var Nr=0,Hr=1;(xr.words[0]&Hr)===0&&Nr<26;++Nr,Hr<<=1);if(Nr>0)for(xr.iushrn(Nr);Nr-- >0;)Jt.isOdd()&&Jt.iadd(Xr),Jt.iushrn(1);kr.cmp(xr)>=0?(kr.isub(xr),Wr.isub(Jt)):(xr.isub(kr),Jt.isub(Wr))}var On;return kr.cmpn(1)===0?On=Wr:On=Jt,On.cmpn(0)<0&&On.iadd(be),On},le.prototype.gcd=function(be){if(this.isZero())return be.abs();if(be.isZero())return this.abs();var kr=this.clone(),xr=be.clone();kr.negative=0,xr.negative=0;for(var Wr=0;kr.isEven()&&xr.isEven();Wr++)kr.iushrn(1),xr.iushrn(1);do{for(;kr.isEven();)kr.iushrn(1);for(;xr.isEven();)xr.iushrn(1);var Jt=kr.cmp(xr);if(Jt<0){var Xr=kr;kr=xr,xr=Xr}else if(Jt===0||xr.cmpn(1)===0)break;kr.isub(xr)}while(!0);return xr.iushln(Wr)},le.prototype.invm=function(be){return this.egcd(be).a.umod(be)},le.prototype.isEven=function(){return(this.words[0]&1)===0},le.prototype.isOdd=function(){return(this.words[0]&1)===1},le.prototype.andln=function(be){return this.words[0]&be},le.prototype.bincn=function(be){ce(typeof be=="number");var kr=be%26,xr=(be-kr)/26,Wr=1<>>26,zr&=67108863,this.words[Xr]=zr}return Jt!==0&&(this.words[Xr]=Jt,this.length++),this},le.prototype.isZero=function(){return this.length===1&&this.words[0]===0},le.prototype.cmpn=function(be){var kr=be<0;if(this.negative!==0&&!kr)return-1;if(this.negative===0&&kr)return 1;this._strip();var xr;if(this.length>1)xr=1;else{kr&&(be=-be),ce(be<=67108863,"Number is too big");var Wr=this.words[0]|0;xr=Wr===be?0:Wrbe.length)return 1;if(this.length=0;xr--){var Wr=this.words[xr]|0,Jt=be.words[xr]|0;if(Wr!==Jt){WrJt&&(kr=1);break}}return kr},le.prototype.gtn=function(be){return this.cmpn(be)===1},le.prototype.gt=function(be){return this.cmp(be)===1},le.prototype.gten=function(be){return this.cmpn(be)>=0},le.prototype.gte=function(be){return this.cmp(be)>=0},le.prototype.ltn=function(be){return this.cmpn(be)===-1},le.prototype.lt=function(be){return this.cmp(be)===-1},le.prototype.lten=function(be){return this.cmpn(be)<=0},le.prototype.lte=function(be){return this.cmp(be)<=0},le.prototype.eqn=function(be){return this.cmpn(be)===0},le.prototype.eq=function(be){return this.cmp(be)===0},le.red=function(be){return new Qt(be)},le.prototype.toRed=function(be){return ce(!this.red,"Already a number in reduction context"),ce(this.negative===0,"red works only with positives"),be.convertTo(this)._forceRed(be)},le.prototype.fromRed=function(){return ce(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},le.prototype._forceRed=function(be){return this.red=be,this},le.prototype.forceRed=function(be){return ce(!this.red,"Already a number in reduction context"),this._forceRed(be)},le.prototype.redAdd=function(be){return ce(this.red,"redAdd works only with red numbers"),this.red.add(this,be)},le.prototype.redIAdd=function(be){return ce(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,be)},le.prototype.redSub=function(be){return ce(this.red,"redSub works only with red numbers"),this.red.sub(this,be)},le.prototype.redISub=function(be){return ce(this.red,"redISub works only with red numbers"),this.red.isub(this,be)},le.prototype.redShl=function(be){return ce(this.red,"redShl works only with red numbers"),this.red.shl(this,be)},le.prototype.redMul=function(be){return ce(this.red,"redMul works only with red numbers"),this.red._verify2(this,be),this.red.mul(this,be)},le.prototype.redIMul=function(be){return ce(this.red,"redMul works only with red numbers"),this.red._verify2(this,be),this.red.imul(this,be)},le.prototype.redSqr=function(){return ce(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},le.prototype.redISqr=function(){return ce(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},le.prototype.redSqrt=function(){return ce(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},le.prototype.redInvm=function(){return ce(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},le.prototype.redNeg=function(){return ce(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},le.prototype.redPow=function(be){return ce(this.red&&!be.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,be)};var Gr={k256:null,p224:null,p192:null,p25519:null};function Ur(Kr,be){this.name=Kr,this.p=new le(be,16),this.n=this.p.bitLength(),this.k=new le(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ur.prototype._tmp=function(){var be=new le(null);return be.words=new Array(Math.ceil(this.n/13)),be},Ur.prototype.ireduce=function(be){var kr=be,xr;do this.split(kr,this.tmp),kr=this.imulK(kr),kr=kr.iadd(this.tmp),xr=kr.bitLength();while(xr>this.n);var Wr=xr0?kr.isub(this.p):kr.strip!==void 0?kr.strip():kr._strip(),kr},Ur.prototype.split=function(be,kr){be.iushrn(this.n,0,kr)},Ur.prototype.imulK=function(be){return be.imul(this.k)};function Qr(){Ur.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}fe(Qr,Ur),Qr.prototype.split=function(be,kr){for(var xr=4194303,Wr=Math.min(be.length,9),Jt=0;Jt>>22,Xr=zr}Xr>>>=22,be.words[Jt-10]=Xr,Xr===0&&be.length>10?be.length-=10:be.length-=9},Qr.prototype.imulK=function(be){be.words[be.length]=0,be.words[be.length+1]=0,be.length+=2;for(var kr=0,xr=0;xr>>=26,be.words[xr]=Jt,kr=Wr}return kr!==0&&(be.words[be.length++]=kr),be},le._prime=function(be){if(Gr[be])return Gr[be];var kr;if(be==="k256")kr=new Qr;else if(be==="p224")kr=new hn;else if(be==="p192")kr=new Yt;else if(be==="p25519")kr=new fn;else throw new Error("Unknown prime "+be);return Gr[be]=kr,kr};function Qt(Kr){if(typeof Kr=="string"){var be=le._prime(Kr);this.m=be.p,this.prime=be}else ce(Kr.gtn(1),"modulus must be greater than 1"),this.m=Kr,this.prime=null}Qt.prototype._verify1=function(be){ce(be.negative===0,"red works only with positives"),ce(be.red,"red works only with red numbers")},Qt.prototype._verify2=function(be,kr){ce((be.negative|kr.negative)===0,"red works only with positives"),ce(be.red&&be.red===kr.red,"red works only with red numbers")},Qt.prototype.imod=function(be){return this.prime?this.prime.ireduce(be)._forceRed(this):(Ee(be,be.umod(this.m)._forceRed(this)),be)},Qt.prototype.neg=function(be){return be.isZero()?be.clone():this.m.sub(be)._forceRed(this)},Qt.prototype.add=function(be,kr){this._verify2(be,kr);var xr=be.add(kr);return xr.cmp(this.m)>=0&&xr.isub(this.m),xr._forceRed(this)},Qt.prototype.iadd=function(be,kr){this._verify2(be,kr);var xr=be.iadd(kr);return xr.cmp(this.m)>=0&&xr.isub(this.m),xr},Qt.prototype.sub=function(be,kr){this._verify2(be,kr);var xr=be.sub(kr);return xr.cmpn(0)<0&&xr.iadd(this.m),xr._forceRed(this)},Qt.prototype.isub=function(be,kr){this._verify2(be,kr);var xr=be.isub(kr);return xr.cmpn(0)<0&&xr.iadd(this.m),xr},Qt.prototype.shl=function(be,kr){return this._verify1(be),this.imod(be.ushln(kr))},Qt.prototype.imul=function(be,kr){return this._verify2(be,kr),this.imod(be.imul(kr))},Qt.prototype.mul=function(be,kr){return this._verify2(be,kr),this.imod(be.mul(kr))},Qt.prototype.isqr=function(be){return this.imul(be,be.clone())},Qt.prototype.sqr=function(be){return this.mul(be,be)},Qt.prototype.sqrt=function(be){if(be.isZero())return be.clone();var kr=this.m.andln(3);if(ce(kr%2===1),kr===3){var xr=this.m.add(new le(1)).iushrn(2);return this.pow(be,xr)}for(var Wr=this.m.subn(1),Jt=0;!Wr.isZero()&&Wr.andln(1)===0;)Jt++,Wr.iushrn(1);ce(!Wr.isZero());var Xr=new le(1).toRed(this),zr=Xr.redNeg(),Jr=this.m.subn(1).iushrn(1),Nr=this.m.bitLength();for(Nr=new le(2*Nr*Nr).toRed(this);this.pow(Nr,Jr).cmp(zr)!==0;)Nr.redIAdd(zr);for(var Hr=this.pow(Nr,Wr),On=this.pow(be,Wr.addn(1).iushrn(1)),Gn=this.pow(be,Wr),mn=Jt;Gn.cmp(Xr)!==0;){for(var Nn=Gn,In=0;Nn.cmp(Xr)!==0;In++)Nn=Nn.redSqr();ce(In=0;Jt--){for(var Hr=kr.words[Jt],On=Nr-1;On>=0;On--){var Gn=Hr>>On&1;if(Xr!==Wr[0]&&(Xr=this.sqr(Xr)),Gn===0&&zr===0){Jr=0;continue}zr<<=1,zr|=Gn,Jr++,!(Jr!==xr&&(Jt!==0||On!==0))&&(Xr=this.mul(Xr,Wr[zr]),Jr=0,zr=0)}Nr=26}return Xr},Qt.prototype.convertTo=function(be){var kr=be.umod(this.m);return kr===be?kr.clone():kr},Qt.prototype.convertFrom=function(be){var kr=be.clone();return kr.red=null,kr},le.mont=function(be){return new Xt(be)};function Xt(Kr){Qt.call(this,Kr),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new le(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}fe(Xt,Qt),Xt.prototype.convertTo=function(be){return this.imod(be.ushln(this.shift))},Xt.prototype.convertFrom=function(be){var kr=this.imod(be.mul(this.rinv));return kr.red=null,kr},Xt.prototype.imul=function(be,kr){if(be.isZero()||kr.isZero())return be.words[0]=0,be.length=1,be;var xr=be.imul(kr),Wr=xr.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=xr.isub(Wr).iushrn(this.shift),Xr=Jt;return Jt.cmp(this.m)>=0?Xr=Jt.isub(this.m):Jt.cmpn(0)<0&&(Xr=Jt.iadd(this.m)),Xr._forceRed(this)},Xt.prototype.mul=function(be,kr){if(be.isZero()||kr.isZero())return new le(0)._forceRed(this);var xr=be.mul(kr),Wr=xr.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=xr.isub(Wr).iushrn(this.shift),Xr=Jt;return Jt.cmp(this.m)>=0?Xr=Jt.isub(this.m):Jt.cmpn(0)<0&&(Xr=Jt.iadd(this.m)),Xr._forceRed(this)},Xt.prototype.invm=function(be){var kr=this.imod(be._invmp(this.m).mul(this.r2));return kr._forceRed(this)}})(typeof k>"u"||k,v)}}),require_safe_buffer=__commonJS$1({"node_modules/safe-buffer/index.js"(v,k){var ie=require_buffer$1(),ae=ie.Buffer;function ce(le,ve){for(var pe in le)ve[pe]=le[pe]}ae.from&&ae.alloc&&ae.allocUnsafe&&ae.allocUnsafeSlow?k.exports=ie:(ce(ie,v),v.Buffer=fe);function fe(le,ve,pe){return ae(le,ve,pe)}fe.prototype=Object.create(ae.prototype),ce(ae,fe),fe.from=function(le,ve,pe){if(typeof le=="number")throw new TypeError("Argument must not be a number");return ae(le,ve,pe)},fe.alloc=function(le,ve,pe){if(typeof le!="number")throw new TypeError("Argument must be a number");var ye=ae(le);return ve!==void 0?typeof pe=="string"?ye.fill(ve,pe):ye.fill(ve):ye.fill(0),ye},fe.allocUnsafe=function(le){if(typeof le!="number")throw new TypeError("Argument must be a number");return ae(le)},fe.allocUnsafeSlow=function(le){if(typeof le!="number")throw new TypeError("Argument must be a number");return ie.SlowBuffer(le)}}}),require_src$2=__commonJS$1({"node_modules/base-x/src/index.js"(v,k){var ie=require_safe_buffer().Buffer;function ae(ce){if(ce.length>=255)throw new TypeError("Alphabet too long");for(var fe=new Uint8Array(256),le=0;le>>0,Ur=new Uint8Array(Gr);Lr!==Vr;){for(var Qr=ur[Lr],hn=0,Yt=Gr-1;(Qr!==0||hn>>0,Ur[Yt]=Qr%me>>>0,Qr=Qr/me>>>0;if(Qr!==0)throw new Error("Non-zero carry");Mr=hn,Lr++}for(var fn=Gr-Mr;fn!==Gr&&Ur[fn]===0;)fn++;for(var Qt=Ee.repeat(jr);fn>>0,Gr=new Uint8Array(Vr);ur[jr];){var Ur=fe[ur.charCodeAt(jr)];if(Ur===255)return;for(var Qr=0,hn=Vr-1;(Ur!==0||Qr>>0,Gr[hn]=Ur%256>>>0,Ur=Ur/256>>>0;if(Ur!==0)throw new Error("Non-zero carry");Lr=Qr,jr++}for(var Yt=Vr-Lr;Yt!==Vr&&Gr[Yt]===0;)Yt++;var fn=ie.allocUnsafe(Mr+(Vr-Yt));fn.fill(0,0,Mr);for(var Qt=Mr;Yt!==Vr;)fn[Qt++]=Gr[Yt++];return fn}function Ar(ur){var jr=Pr(ur);if(jr)return jr;throw new Error("Non-base"+me+" character")}return{encode:$r,decodeUnsafe:Pr,decode:Ar}}k.exports=ae}}),require_bs58=__commonJS$1({"node_modules/bs58/index.js"(v,k){var ie=require_src$2(),ae="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";k.exports=ie(ae)}}),encoding_exports={};__export$1(encoding_exports,{TextDecoder:()=>TextDecoder2,TextEncoder:()=>TextEncoder$1});function inRange(v,k,ie){return k<=v&&v<=ie}function ToDictionary(v){if(v===void 0)return{};if(v===Object(v))return v;throw TypeError("Could not convert argument to dictionary")}function stringToCodePoints(v){for(var k=String(v),ie=k.length,ae=0,ce=[];ae57343)ce.push(fe);else if(56320<=fe&&fe<=57343)ce.push(65533);else if(55296<=fe&&fe<=56319)if(ae===ie-1)ce.push(65533);else{var le=v.charCodeAt(ae+1);if(56320<=le&&le<=57343){var ve=fe&1023,pe=le&1023;ce.push(65536+(ve<<10)+pe),ae+=1}else ce.push(65533)}ae+=1}return ce}function codePointsToString(v){for(var k="",ie=0;ie>10)+55296,(ae&1023)+56320))}return k}function Stream(v){this.tokens=[].slice.call(v)}function decoderError(v,k){if(v)throw TypeError("Decoder error");return k||65533}function TextDecoder2(v,k){if(!(this instanceof TextDecoder2))return new TextDecoder2(v,k);if(v=v!==void 0?String(v).toLowerCase():DEFAULT_ENCODING,v!==DEFAULT_ENCODING)throw new Error("Encoding not supported. Only utf-8 is supported");k=ToDictionary(k),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(k.fatal),this._ignoreBOM=Boolean(k.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function TextEncoder$1(v,k){if(!(this instanceof TextEncoder$1))return new TextEncoder$1(v,k);if(v=v!==void 0?String(v).toLowerCase():DEFAULT_ENCODING,v!==DEFAULT_ENCODING)throw new Error("Encoding not supported. Only utf-8 is supported");k=ToDictionary(k),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(k.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function UTF8Decoder(v){var k=v.fatal,ie=0,ae=0,ce=0,fe=128,le=191;this.handler=function(ve,pe){if(pe===end_of_stream&&ce!==0)return ce=0,decoderError(k);if(pe===end_of_stream)return finished;if(ce===0){if(inRange(pe,0,127))return pe;if(inRange(pe,194,223))ce=1,ie=pe-192;else if(inRange(pe,224,239))pe===224&&(fe=160),pe===237&&(le=159),ce=2,ie=pe-224;else if(inRange(pe,240,244))pe===240&&(fe=144),pe===244&&(le=143),ce=3,ie=pe-240;else return decoderError(k);return ie=ie<<6*ce,null}if(!inRange(pe,fe,le))return ie=ce=ae=0,fe=128,le=191,ve.prepend(pe),decoderError(k);if(fe=128,le=191,ae+=1,ie+=pe-128<<6*(ce-ae),ae!==ce)return null;var ye=ie;return ie=ce=ae=0,ye}}function UTF8Encoder(v){v.fatal,this.handler=function(k,ie){if(ie===end_of_stream)return finished;if(inRange(ie,0,127))return ie;var ae,ce;inRange(ie,128,2047)?(ae=1,ce=192):inRange(ie,2048,65535)?(ae=2,ce=224):inRange(ie,65536,1114111)&&(ae=3,ce=240);for(var fe=[(ie>>6*ae)+ce];ae>0;){var le=ie>>6*(ae-1);fe.push(128|le&63),ae-=1}return fe}}var end_of_stream,finished,DEFAULT_ENCODING,init_encoding=__esm$1({"node_modules/text-encoding-utf-8/src/encoding.js"(){end_of_stream=-1,Stream.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():end_of_stream},prepend:function(v){if(Array.isArray(v))for(var k=v;k.length;)this.tokens.unshift(k.pop());else this.tokens.unshift(v)},push:function(v){if(Array.isArray(v))for(var k=v;k.length;)this.tokens.push(k.shift());else this.tokens.push(v)}},finished=-1,DEFAULT_ENCODING="utf-8",TextDecoder2.prototype={decode:function(k,ie){var ae;typeof k=="object"&&k instanceof ArrayBuffer?ae=new Uint8Array(k):typeof k=="object"&&"buffer"in k&&k.buffer instanceof ArrayBuffer?ae=new Uint8Array(k.buffer,k.byteOffset,k.byteLength):ae=new Uint8Array(0),ie=ToDictionary(ie),this._streaming||(this._decoder=new UTF8Decoder({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(ie.stream);for(var ce=new Stream(ae),fe=[],le;!ce.endOfStream()&&(le=this._decoder.handler(ce,ce.read()),le!==finished);)le!==null&&(Array.isArray(le)?fe.push.apply(fe,le):fe.push(le));if(!this._streaming){do{if(le=this._decoder.handler(ce,ce.read()),le===finished)break;le!==null&&(Array.isArray(le)?fe.push.apply(fe,le):fe.push(le))}while(!ce.endOfStream());this._decoder=null}return fe.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(fe[0]===65279?(this._BOMseen=!0,fe.shift()):this._BOMseen=!0),codePointsToString(fe)}},TextEncoder$1.prototype={encode:function(k,ie){k=k?String(k):"",ie=ToDictionary(ie),this._streaming||(this._encoder=new UTF8Encoder(this._options)),this._streaming=Boolean(ie.stream);for(var ae=[],ce=new Stream(stringToCodePoints(k)),fe;!ce.endOfStream()&&(fe=this._encoder.handler(ce,ce.read()),fe!==finished);)Array.isArray(fe)?ae.push.apply(ae,fe):ae.push(fe);if(!this._streaming){for(;fe=this._encoder.handler(ce,ce.read()),fe!==finished;)Array.isArray(fe)?ae.push.apply(ae,fe):ae.push(fe);this._encoder=null}return new Uint8Array(ae)}}}}),require_lib=__commonJS$1({"node_modules/borsh/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(Yt,fn,Qt,Xt){Xt===void 0&&(Xt=Qt),Object.defineProperty(Yt,Xt,{enumerable:!0,get:function(){return fn[Qt]}})}:function(Yt,fn,Qt,Xt){Xt===void 0&&(Xt=Qt),Yt[Xt]=fn[Qt]}),ie=v&&v.__setModuleDefault||(Object.create?function(Yt,fn){Object.defineProperty(Yt,"default",{enumerable:!0,value:fn})}:function(Yt,fn){Yt.default=fn}),ae=v&&v.__decorate||function(Yt,fn,Qt,Xt){var Kr=arguments.length,be=Kr<3?fn:Xt===null?Xt=Object.getOwnPropertyDescriptor(fn,Qt):Xt,kr;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")be=Reflect.decorate(Yt,fn,Qt,Xt);else for(var xr=Yt.length-1;xr>=0;xr--)(kr=Yt[xr])&&(be=(Kr<3?kr(be):Kr>3?kr(fn,Qt,be):kr(fn,Qt))||be);return Kr>3&&be&&Object.defineProperty(fn,Qt,be),be},ce=v&&v.__importStar||function(Yt){if(Yt&&Yt.__esModule)return Yt;var fn={};if(Yt!=null)for(var Qt in Yt)Qt!=="default"&&Object.hasOwnProperty.call(Yt,Qt)&&k(fn,Yt,Qt);return ie(fn,Yt),fn},fe=v&&v.__importDefault||function(Yt){return Yt&&Yt.__esModule?Yt:{default:Yt}};Object.defineProperty(v,"__esModule",{value:!0}),v.deserializeUnchecked=v.deserialize=v.serialize=v.BinaryReader=v.BinaryWriter=v.BorshError=v.baseDecode=v.baseEncode=void 0;var le=fe(require_bn$1()),ve=fe(require_bs58()),pe=ce((init_encoding(),__toCommonJS$1(encoding_exports))),ye=typeof TextDecoder!="function"?pe.TextDecoder:TextDecoder,me=new ye("utf-8",{fatal:!0});function Ee(Yt){return typeof Yt=="string"&&(Yt=Buffer.from(Yt,"utf8")),ve.default.encode(Buffer.from(Yt))}v.baseEncode=Ee;function cr(Yt){return Buffer.from(ve.default.decode(Yt))}v.baseDecode=cr;var Br=1024,$r=class extends Error{constructor(Yt){super(Yt),this.fieldPath=[],this.originalMessage=Yt}addToFieldPath(Yt){this.fieldPath.splice(0,0,Yt),this.message=this.originalMessage+": "+this.fieldPath.join(".")}};v.BorshError=$r;var Pr=class{constructor(){this.buf=Buffer.alloc(Br),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(Br)]))}writeU8(Yt){this.maybeResize(),this.buf.writeUInt8(Yt,this.length),this.length+=1}writeU16(Yt){this.maybeResize(),this.buf.writeUInt16LE(Yt,this.length),this.length+=2}writeU32(Yt){this.maybeResize(),this.buf.writeUInt32LE(Yt,this.length),this.length+=4}writeU64(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",8)))}writeU128(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",16)))}writeU256(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",32)))}writeU512(Yt){this.maybeResize(),this.writeBuffer(Buffer.from(new le.default(Yt).toArray("le",64)))}writeBuffer(Yt){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),Yt,Buffer.alloc(Br)]),this.length+=Yt.length}writeString(Yt){this.maybeResize();const fn=Buffer.from(Yt,"utf8");this.writeU32(fn.length),this.writeBuffer(fn)}writeFixedArray(Yt){this.writeBuffer(Buffer.from(Yt))}writeArray(Yt,fn){this.maybeResize(),this.writeU32(Yt.length);for(const Qt of Yt)this.maybeResize(),fn(Qt)}toArray(){return this.buf.subarray(0,this.length)}};v.BinaryWriter=Pr;function Ar(Yt,fn,Qt){const Xt=Qt.value;Qt.value=function(...Kr){try{return Xt.apply(this,Kr)}catch(be){if(be instanceof RangeError){const kr=be.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(kr)>=0)throw new $r("Reached the end of buffer when deserializing")}throw be}}}var ur=class{constructor(Yt){this.buf=Yt,this.offset=0}readU8(){const Yt=this.buf.readUInt8(this.offset);return this.offset+=1,Yt}readU16(){const Yt=this.buf.readUInt16LE(this.offset);return this.offset+=2,Yt}readU32(){const Yt=this.buf.readUInt32LE(this.offset);return this.offset+=4,Yt}readU64(){const Yt=this.readBuffer(8);return new le.default(Yt,"le")}readU128(){const Yt=this.readBuffer(16);return new le.default(Yt,"le")}readU256(){const Yt=this.readBuffer(32);return new le.default(Yt,"le")}readU512(){const Yt=this.readBuffer(64);return new le.default(Yt,"le")}readBuffer(Yt){if(this.offset+Yt>this.buf.length)throw new $r(`Expected buffer length ${Yt} isn't within bounds`);const fn=this.buf.slice(this.offset,this.offset+Yt);return this.offset+=Yt,fn}readString(){const Yt=this.readU32(),fn=this.readBuffer(Yt);try{return me.decode(fn)}catch(Qt){throw new $r(`Error decoding UTF-8 string: ${Qt}`)}}readFixedArray(Yt){return new Uint8Array(this.readBuffer(Yt))}readArray(Yt){const fn=this.readU32(),Qt=Array();for(let Xt=0;Xt{Mr(Yt,fn,be,Xt[0],Kr)});else if(Xt.kind!==void 0)switch(Xt.kind){case"option":{Qt==null?Kr.writeU8(0):(Kr.writeU8(1),Mr(Yt,fn,Qt,Xt.type,Kr));break}case"map":{Kr.writeU32(Qt.size),Qt.forEach((be,kr)=>{Mr(Yt,fn,kr,Xt.key,Kr),Mr(Yt,fn,be,Xt.value,Kr)});break}default:throw new $r(`FieldType ${Xt} unrecognized`)}else Lr(Yt,Qt,Kr)}catch(be){throw be instanceof $r&&be.addToFieldPath(fn),be}}function Lr(Yt,fn,Qt){if(typeof fn.borshSerialize=="function"){fn.borshSerialize(Qt);return}const Xt=Yt.get(fn.constructor);if(!Xt)throw new $r(`Class ${fn.constructor.name} is missing in schema`);if(Xt.kind==="struct")Xt.fields.map(([Kr,be])=>{Mr(Yt,Kr,fn[Kr],be,Qt)});else if(Xt.kind==="enum"){const Kr=fn[Xt.field];for(let be=0;beGr(Yt,fn,Qt[0],Xt))}if(Qt.kind==="option")return Xt.readU8()?Gr(Yt,fn,Qt.type,Xt):void 0;if(Qt.kind==="map"){let Kr=new Map;const be=Xt.readU32();for(let kr=0;kr=Xt.values.length)throw new $r(`Enum index: ${Kr} is out of range`);const[be,kr]=Xt.values[Kr],xr=Gr(Yt,be,kr,Qt);return new fn({[be]:xr})}throw new $r(`Unexpected schema kind: ${Xt.kind} for ${fn.constructor.name}`)}function Qr(Yt,fn,Qt,Xt=ur){const Kr=new Xt(Qt),be=Ur(Yt,fn,Kr);if(Kr.offset>2]|=v[ce]<>2]|=ae<>2]|=(192|ae>>6)<>2]|=(128|ae&63)<=57344?(ve[fe>>2]|=(224|ae>>12)<>2]|=(128|ae>>6&63)<>2]|=(128|ae&63)<>2]|=(240|ae>>18)<>2]|=(128|ae>>12&63)<>2]|=(128|ae>>6&63)<>2]|=(128|ae&63)<=64?(this.block=ve[16],this.start=fe-64,this.hash(),this.hashed=!0):this.start=fe}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var v=this.blocks,k=this.lastByteIndex;v[16]=this.block,v[k>>2]|=EXTRA[k&3],this.block=v[16],k>=56&&(this.hashed||this.hash(),v[0]=this.block,v[16]=v[1]=v[2]=v[3]=v[4]=v[5]=v[6]=v[7]=v[8]=v[9]=v[10]=v[11]=v[12]=v[13]=v[14]=v[15]=0),v[14]=this.hBytes<<3|this.bytes>>>29,v[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var v=this.h0,k=this.h1,ie=this.h2,ae=this.h3,ce=this.h4,fe=this.h5,le=this.h6,ve=this.h7,pe=this.blocks,ye,me,Ee,cr,Br,$r,Pr,Ar,ur,jr,Mr;for(ye=16;ye<64;++ye)Br=pe[ye-15],me=(Br>>>7|Br<<25)^(Br>>>18|Br<<14)^Br>>>3,Br=pe[ye-2],Ee=(Br>>>17|Br<<15)^(Br>>>19|Br<<13)^Br>>>10,pe[ye]=pe[ye-16]+me+pe[ye-7]+Ee<<0;for(Mr=k&ie,ye=0;ye<64;ye+=4)this.first?(this.is224?(Ar=300032,Br=pe[0]-1413257819,ve=Br-150054599<<0,ae=Br+24177077<<0):(Ar=704751109,Br=pe[0]-210244248,ve=Br-1521486534<<0,ae=Br+143694565<<0),this.first=!1):(me=(v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10),Ee=(ce>>>6|ce<<26)^(ce>>>11|ce<<21)^(ce>>>25|ce<<7),Ar=v&k,cr=Ar^v&ie^Mr,Pr=ce&fe^~ce&le,Br=ve+Ee+Pr+K[ye]+pe[ye],$r=me+cr,ve=ae+Br<<0,ae=Br+$r<<0),me=(ae>>>2|ae<<30)^(ae>>>13|ae<<19)^(ae>>>22|ae<<10),Ee=(ve>>>6|ve<<26)^(ve>>>11|ve<<21)^(ve>>>25|ve<<7),ur=ae&v,cr=ur^ae&k^Ar,Pr=ve&ce^~ve&fe,Br=le+Ee+Pr+K[ye+1]+pe[ye+1],$r=me+cr,le=ie+Br<<0,ie=Br+$r<<0,me=(ie>>>2|ie<<30)^(ie>>>13|ie<<19)^(ie>>>22|ie<<10),Ee=(le>>>6|le<<26)^(le>>>11|le<<21)^(le>>>25|le<<7),jr=ie&ae,cr=jr^ie&v^ur,Pr=le&ve^~le&ce,Br=fe+Ee+Pr+K[ye+2]+pe[ye+2],$r=me+cr,fe=k+Br<<0,k=Br+$r<<0,me=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),Ee=(fe>>>6|fe<<26)^(fe>>>11|fe<<21)^(fe>>>25|fe<<7),Mr=k&ie,cr=Mr^k&ae^jr,Pr=fe&le^~fe&ve,Br=ce+Ee+Pr+K[ye+3]+pe[ye+3],$r=me+cr,ce=v+Br<<0,v=Br+$r<<0;this.h0=this.h0+v<<0,this.h1=this.h1+k<<0,this.h2=this.h2+ie<<0,this.h3=this.h3+ae<<0,this.h4=this.h4+ce<<0,this.h5=this.h5+fe<<0,this.h6=this.h6+le<<0,this.h7=this.h7+ve<<0},Sha256.prototype.hex=function(){this.finalize();var v=this.h0,k=this.h1,ie=this.h2,ae=this.h3,ce=this.h4,fe=this.h5,le=this.h6,ve=this.h7,pe=HEX_CHARS[v>>28&15]+HEX_CHARS[v>>24&15]+HEX_CHARS[v>>20&15]+HEX_CHARS[v>>16&15]+HEX_CHARS[v>>12&15]+HEX_CHARS[v>>8&15]+HEX_CHARS[v>>4&15]+HEX_CHARS[v&15]+HEX_CHARS[k>>28&15]+HEX_CHARS[k>>24&15]+HEX_CHARS[k>>20&15]+HEX_CHARS[k>>16&15]+HEX_CHARS[k>>12&15]+HEX_CHARS[k>>8&15]+HEX_CHARS[k>>4&15]+HEX_CHARS[k&15]+HEX_CHARS[ie>>28&15]+HEX_CHARS[ie>>24&15]+HEX_CHARS[ie>>20&15]+HEX_CHARS[ie>>16&15]+HEX_CHARS[ie>>12&15]+HEX_CHARS[ie>>8&15]+HEX_CHARS[ie>>4&15]+HEX_CHARS[ie&15]+HEX_CHARS[ae>>28&15]+HEX_CHARS[ae>>24&15]+HEX_CHARS[ae>>20&15]+HEX_CHARS[ae>>16&15]+HEX_CHARS[ae>>12&15]+HEX_CHARS[ae>>8&15]+HEX_CHARS[ae>>4&15]+HEX_CHARS[ae&15]+HEX_CHARS[ce>>28&15]+HEX_CHARS[ce>>24&15]+HEX_CHARS[ce>>20&15]+HEX_CHARS[ce>>16&15]+HEX_CHARS[ce>>12&15]+HEX_CHARS[ce>>8&15]+HEX_CHARS[ce>>4&15]+HEX_CHARS[ce&15]+HEX_CHARS[fe>>28&15]+HEX_CHARS[fe>>24&15]+HEX_CHARS[fe>>20&15]+HEX_CHARS[fe>>16&15]+HEX_CHARS[fe>>12&15]+HEX_CHARS[fe>>8&15]+HEX_CHARS[fe>>4&15]+HEX_CHARS[fe&15]+HEX_CHARS[le>>28&15]+HEX_CHARS[le>>24&15]+HEX_CHARS[le>>20&15]+HEX_CHARS[le>>16&15]+HEX_CHARS[le>>12&15]+HEX_CHARS[le>>8&15]+HEX_CHARS[le>>4&15]+HEX_CHARS[le&15];return this.is224||(pe+=HEX_CHARS[ve>>28&15]+HEX_CHARS[ve>>24&15]+HEX_CHARS[ve>>20&15]+HEX_CHARS[ve>>16&15]+HEX_CHARS[ve>>12&15]+HEX_CHARS[ve>>8&15]+HEX_CHARS[ve>>4&15]+HEX_CHARS[ve&15]),pe},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var v=this.h0,k=this.h1,ie=this.h2,ae=this.h3,ce=this.h4,fe=this.h5,le=this.h6,ve=this.h7,pe=[v>>24&255,v>>16&255,v>>8&255,v&255,k>>24&255,k>>16&255,k>>8&255,k&255,ie>>24&255,ie>>16&255,ie>>8&255,ie&255,ae>>24&255,ae>>16&255,ae>>8&255,ae&255,ce>>24&255,ce>>16&255,ce>>8&255,ce&255,fe>>24&255,fe>>16&255,fe>>8&255,fe&255,le>>24&255,le>>16&255,le>>8&255,le&255];return this.is224||pe.push(ve>>24&255,ve>>16&255,ve>>8&255,ve&255),pe},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var v=new ArrayBuffer(this.is224?28:32),k=new DataView(v);return k.setUint32(0,this.h0),k.setUint32(4,this.h1),k.setUint32(8,this.h2),k.setUint32(12,this.h3),k.setUint32(16,this.h4),k.setUint32(20,this.h5),k.setUint32(24,this.h6),this.is224||k.setUint32(28,this.h7),v};function HmacSha256(v,k,ie){var ae,ce=typeof v;if(ce==="string"){var fe=[],le=v.length,ve=0,pe;for(ae=0;ae>6,fe[ve++]=128|pe&63):pe<55296||pe>=57344?(fe[ve++]=224|pe>>12,fe[ve++]=128|pe>>6&63,fe[ve++]=128|pe&63):(pe=65536+((pe&1023)<<10|v.charCodeAt(++ae)&1023),fe[ve++]=240|pe>>18,fe[ve++]=128|pe>>12&63,fe[ve++]=128|pe>>6&63,fe[ve++]=128|pe&63);v=fe}else if(ce==="object"){if(v===null)throw new Error(ERROR);if(ARRAY_BUFFER&&v.constructor===ArrayBuffer)v=new Uint8Array(v);else if(!Array.isArray(v)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(v)))throw new Error(ERROR)}else throw new Error(ERROR);v.length>64&&(v=new Sha256(k,!0).update(v).array());var ye=[],me=[];for(ae=0;ae<64;++ae){var Ee=v[ae]||0;ye[ae]=92^Ee,me[ae]=54^Ee}Sha256.call(this,k,ie),this.update(me),this.oKeyPad=ye,this.inner=!0,this.sharedMemory=ie}HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var v=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(v),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define(function(){return exports}))})()}}),require_constants$2=__commonJS$1({"node_modules/@near-js/crypto/lib/constants.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyType=void 0,function(k){k[k.ED25519=0]="ED25519"}(v.KeyType||(v.KeyType={}))}}),require_key_pair_base=__commonJS$1({"node_modules/@near-js/crypto/lib/key_pair_base.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyPairBase=void 0;var k=class{};v.KeyPairBase=k}}),require_crypto=__commonJS$1({"browser-external:crypto"(v,k){k.exports={}}}),require_nacl_fast=__commonJS$1({"node_modules/tweetnacl/nacl-fast.js"(v,k){(function(ie){var ae=function(Yr){var Wt,ln=new Float64Array(16);if(Yr)for(Wt=0;Wt>24&255,Yr[Wt+1]=ln>>16&255,Yr[Wt+2]=ln>>8&255,Yr[Wt+3]=ln&255,Yr[Wt+4]=qr>>24&255,Yr[Wt+5]=qr>>16&255,Yr[Wt+6]=qr>>8&255,Yr[Wt+7]=qr&255}function Ar(Yr,Wt,ln,qr,dn){var ri,Zn=0;for(ri=0;ri>>8)-1}function ur(Yr,Wt,ln,qr){return Ar(Yr,Wt,ln,qr,16)}function jr(Yr,Wt,ln,qr){return Ar(Yr,Wt,ln,qr,32)}function Mr(Yr,Wt,ln,qr){for(var dn=qr[0]&255|(qr[1]&255)<<8|(qr[2]&255)<<16|(qr[3]&255)<<24,ri=ln[0]&255|(ln[1]&255)<<8|(ln[2]&255)<<16|(ln[3]&255)<<24,Zn=ln[4]&255|(ln[5]&255)<<8|(ln[6]&255)<<16|(ln[7]&255)<<24,ai=ln[8]&255|(ln[9]&255)<<8|(ln[10]&255)<<16|(ln[11]&255)<<24,bi=ln[12]&255|(ln[13]&255)<<8|(ln[14]&255)<<16|(ln[15]&255)<<24,_i=qr[4]&255|(qr[5]&255)<<8|(qr[6]&255)<<16|(qr[7]&255)<<24,fi=Wt[0]&255|(Wt[1]&255)<<8|(Wt[2]&255)<<16|(Wt[3]&255)<<24,yo=Wt[4]&255|(Wt[5]&255)<<8|(Wt[6]&255)<<16|(Wt[7]&255)<<24,Di=Wt[8]&255|(Wt[9]&255)<<8|(Wt[10]&255)<<16|(Wt[11]&255)<<24,Ni=Wt[12]&255|(Wt[13]&255)<<8|(Wt[14]&255)<<16|(Wt[15]&255)<<24,oo=qr[8]&255|(qr[9]&255)<<8|(qr[10]&255)<<16|(qr[11]&255)<<24,fo=ln[16]&255|(ln[17]&255)<<8|(ln[18]&255)<<16|(ln[19]&255)<<24,co=ln[20]&255|(ln[21]&255)<<8|(ln[22]&255)<<16|(ln[23]&255)<<24,Ao=ln[24]&255|(ln[25]&255)<<8|(ln[26]&255)<<16|(ln[27]&255)<<24,vo=ln[28]&255|(ln[29]&255)<<8|(ln[30]&255)<<16|(ln[31]&255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o+Co|0,To^=ni<<7|ni>>>32-7,ni=To+Fo|0,Mo^=ni<<9|ni>>>32-9,ni=Mo+To|0,Co^=ni<<13|ni>>>32-13,ni=Co+Mo|0,Fo^=ni<<18|ni>>>32-18;so=so+dn|0,lo=lo+ri|0,eo=eo+Zn|0,uo=uo+ai|0,ho=ho+bi|0,ro=ro+_i|0,ci=ci+fi|0,pi=pi+yo|0,mi=mi+Di|0,Si=Si+Ni|0,Ti=Ti+oo|0,xi=xi+fo|0,To=To+co|0,Mo=Mo+Ao|0,Co=Co+vo|0,Fo=Fo+_o|0,Yr[0]=so>>>0&255,Yr[1]=so>>>8&255,Yr[2]=so>>>16&255,Yr[3]=so>>>24&255,Yr[4]=lo>>>0&255,Yr[5]=lo>>>8&255,Yr[6]=lo>>>16&255,Yr[7]=lo>>>24&255,Yr[8]=eo>>>0&255,Yr[9]=eo>>>8&255,Yr[10]=eo>>>16&255,Yr[11]=eo>>>24&255,Yr[12]=uo>>>0&255,Yr[13]=uo>>>8&255,Yr[14]=uo>>>16&255,Yr[15]=uo>>>24&255,Yr[16]=ho>>>0&255,Yr[17]=ho>>>8&255,Yr[18]=ho>>>16&255,Yr[19]=ho>>>24&255,Yr[20]=ro>>>0&255,Yr[21]=ro>>>8&255,Yr[22]=ro>>>16&255,Yr[23]=ro>>>24&255,Yr[24]=ci>>>0&255,Yr[25]=ci>>>8&255,Yr[26]=ci>>>16&255,Yr[27]=ci>>>24&255,Yr[28]=pi>>>0&255,Yr[29]=pi>>>8&255,Yr[30]=pi>>>16&255,Yr[31]=pi>>>24&255,Yr[32]=mi>>>0&255,Yr[33]=mi>>>8&255,Yr[34]=mi>>>16&255,Yr[35]=mi>>>24&255,Yr[36]=Si>>>0&255,Yr[37]=Si>>>8&255,Yr[38]=Si>>>16&255,Yr[39]=Si>>>24&255,Yr[40]=Ti>>>0&255,Yr[41]=Ti>>>8&255,Yr[42]=Ti>>>16&255,Yr[43]=Ti>>>24&255,Yr[44]=xi>>>0&255,Yr[45]=xi>>>8&255,Yr[46]=xi>>>16&255,Yr[47]=xi>>>24&255,Yr[48]=To>>>0&255,Yr[49]=To>>>8&255,Yr[50]=To>>>16&255,Yr[51]=To>>>24&255,Yr[52]=Mo>>>0&255,Yr[53]=Mo>>>8&255,Yr[54]=Mo>>>16&255,Yr[55]=Mo>>>24&255,Yr[56]=Co>>>0&255,Yr[57]=Co>>>8&255,Yr[58]=Co>>>16&255,Yr[59]=Co>>>24&255,Yr[60]=Fo>>>0&255,Yr[61]=Fo>>>8&255,Yr[62]=Fo>>>16&255,Yr[63]=Fo>>>24&255}function Lr(Yr,Wt,ln,qr){for(var dn=qr[0]&255|(qr[1]&255)<<8|(qr[2]&255)<<16|(qr[3]&255)<<24,ri=ln[0]&255|(ln[1]&255)<<8|(ln[2]&255)<<16|(ln[3]&255)<<24,Zn=ln[4]&255|(ln[5]&255)<<8|(ln[6]&255)<<16|(ln[7]&255)<<24,ai=ln[8]&255|(ln[9]&255)<<8|(ln[10]&255)<<16|(ln[11]&255)<<24,bi=ln[12]&255|(ln[13]&255)<<8|(ln[14]&255)<<16|(ln[15]&255)<<24,_i=qr[4]&255|(qr[5]&255)<<8|(qr[6]&255)<<16|(qr[7]&255)<<24,fi=Wt[0]&255|(Wt[1]&255)<<8|(Wt[2]&255)<<16|(Wt[3]&255)<<24,yo=Wt[4]&255|(Wt[5]&255)<<8|(Wt[6]&255)<<16|(Wt[7]&255)<<24,Di=Wt[8]&255|(Wt[9]&255)<<8|(Wt[10]&255)<<16|(Wt[11]&255)<<24,Ni=Wt[12]&255|(Wt[13]&255)<<8|(Wt[14]&255)<<16|(Wt[15]&255)<<24,oo=qr[8]&255|(qr[9]&255)<<8|(qr[10]&255)<<16|(qr[11]&255)<<24,fo=ln[16]&255|(ln[17]&255)<<8|(ln[18]&255)<<16|(ln[19]&255)<<24,co=ln[20]&255|(ln[21]&255)<<8|(ln[22]&255)<<16|(ln[23]&255)<<24,Ao=ln[24]&255|(ln[25]&255)<<8|(ln[26]&255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mi+xi|0,Si^=ni<<13|ni>>>32-13,ni=Si+mi|0,Ti^=ni<<18|ni>>>32-18,ni=Fo+Co|0,To^=ni<<7|ni>>>32-7,ni=To+Fo|0,Mo^=ni<<9|ni>>>32-9,ni=Mo+To|0,Co^=ni<<13|ni>>>32-13,ni=Co+Mo|0,Fo^=ni<<18|ni>>>32-18;Yr[0]=so>>>0&255,Yr[1]=so>>>8&255,Yr[2]=so>>>16&255,Yr[3]=so>>>24&255,Yr[4]=ro>>>0&255,Yr[5]=ro>>>8&255,Yr[6]=ro>>>16&255,Yr[7]=ro>>>24&255,Yr[8]=Ti>>>0&255,Yr[9]=Ti>>>8&255,Yr[10]=Ti>>>16&255,Yr[11]=Ti>>>24&255,Yr[12]=Fo>>>0&255,Yr[13]=Fo>>>8&255,Yr[14]=Fo>>>16&255,Yr[15]=Fo>>>24&255,Yr[16]=ci>>>0&255,Yr[17]=ci>>>8&255,Yr[18]=ci>>>16&255,Yr[19]=ci>>>24&255,Yr[20]=pi>>>0&255,Yr[21]=pi>>>8&255,Yr[22]=pi>>>16&255,Yr[23]=pi>>>24&255,Yr[24]=mi>>>0&255,Yr[25]=mi>>>8&255,Yr[26]=mi>>>16&255,Yr[27]=mi>>>24&255,Yr[28]=Si>>>0&255,Yr[29]=Si>>>8&255,Yr[30]=Si>>>16&255,Yr[31]=Si>>>24&255}function Vr(Yr,Wt,ln,qr){Mr(Yr,Wt,ln,qr)}function Gr(Yr,Wt,ln,qr){Lr(Yr,Wt,ln,qr)}var Ur=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Qr(Yr,Wt,ln,qr,dn,ri,Zn){var ai=new Uint8Array(16),bi=new Uint8Array(64),_i,fi;for(fi=0;fi<16;fi++)ai[fi]=0;for(fi=0;fi<8;fi++)ai[fi]=ri[fi];for(;dn>=64;){for(Vr(bi,ai,Zn,Ur),fi=0;fi<64;fi++)Yr[Wt+fi]=ln[qr+fi]^bi[fi];for(_i=1,fi=8;fi<16;fi++)_i=_i+(ai[fi]&255)|0,ai[fi]=_i&255,_i>>>=8;dn-=64,Wt+=64,qr+=64}if(dn>0)for(Vr(bi,ai,Zn,Ur),fi=0;fi=64;){for(Vr(Zn,ri,dn,Ur),bi=0;bi<64;bi++)Yr[Wt+bi]=Zn[bi];for(ai=1,bi=8;bi<16;bi++)ai=ai+(ri[bi]&255)|0,ri[bi]=ai&255,ai>>>=8;ln-=64,Wt+=64}if(ln>0)for(Vr(Zn,ri,dn,Ur),bi=0;bi>>13|ln<<3)&8191,qr=Yr[4]&255|(Yr[5]&255)<<8,this.r[2]=(ln>>>10|qr<<6)&7939,dn=Yr[6]&255|(Yr[7]&255)<<8,this.r[3]=(qr>>>7|dn<<9)&8191,ri=Yr[8]&255|(Yr[9]&255)<<8,this.r[4]=(dn>>>4|ri<<12)&255,this.r[5]=ri>>>1&8190,Zn=Yr[10]&255|(Yr[11]&255)<<8,this.r[6]=(ri>>>14|Zn<<2)&8191,ai=Yr[12]&255|(Yr[13]&255)<<8,this.r[7]=(Zn>>>11|ai<<5)&8065,bi=Yr[14]&255|(Yr[15]&255)<<8,this.r[8]=(ai>>>8|bi<<8)&8191,this.r[9]=bi>>>5&127,this.pad[0]=Yr[16]&255|(Yr[17]&255)<<8,this.pad[1]=Yr[18]&255|(Yr[19]&255)<<8,this.pad[2]=Yr[20]&255|(Yr[21]&255)<<8,this.pad[3]=Yr[22]&255|(Yr[23]&255)<<8,this.pad[4]=Yr[24]&255|(Yr[25]&255)<<8,this.pad[5]=Yr[26]&255|(Yr[27]&255)<<8,this.pad[6]=Yr[28]&255|(Yr[29]&255)<<8,this.pad[7]=Yr[30]&255|(Yr[31]&255)<<8};Qt.prototype.blocks=function(Yr,Wt,ln){for(var qr=this.fin?0:2048,dn,ri,Zn,ai,bi,_i,fi,yo,Di,Ni,oo,fo,co,Ao,vo,_o,so,lo,eo,uo=this.h[0],ho=this.h[1],ro=this.h[2],ci=this.h[3],pi=this.h[4],mi=this.h[5],Si=this.h[6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*Vo),Di+=lo>>>13,lo&=8191,eo=Di,eo+=uo*Vo,eo+=ho*Go,eo+=ro*Uo,eo+=ci*Ho,eo+=pi*Wo,Di=eo>>>13,eo&=8191,eo+=mi*Ko,eo+=Si*ni,eo+=Ti*Fo,eo+=xi*Co,eo+=To*Mo,Di+=eo>>>13,eo&=8191,Di=(Di<<2)+Di|0,Di=Di+Ni|0,Ni=Di&8191,Di=Di>>>13,oo+=Di,uo=Ni,ho=oo,ro=fo,ci=co,pi=Ao,mi=vo,Si=_o,Ti=so,xi=lo,To=eo,Wt+=16,ln-=16;this.h[0]=uo,this.h[1]=ho,this.h[2]=ro,this.h[3]=ci,this.h[4]=pi,this.h[5]=mi,this.h[6]=Si,this.h[7]=Ti,this.h[8]=xi,this.h[9]=To},Qt.prototype.finish=function(Yr,Wt){var ln=new Uint16Array(10),qr,dn,ri,Zn;if(this.leftover){for(Zn=this.leftover,this.buffer[Zn++]=1;Zn<16;Zn++)this.buffer[Zn]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(qr=this.h[1]>>>13,this.h[1]&=8191,Zn=2;Zn<10;Zn++)this.h[Zn]+=qr,qr=this.h[Zn]>>>13,this.h[Zn]&=8191;for(this.h[0]+=qr*5,qr=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=qr,qr=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=qr,ln[0]=this.h[0]+5,qr=ln[0]>>>13,ln[0]&=8191,Zn=1;Zn<10;Zn++)ln[Zn]=this.h[Zn]+qr,qr=ln[Zn]>>>13,ln[Zn]&=8191;for(ln[9]-=1<<13,dn=(qr^1)-1,Zn=0;Zn<10;Zn++)ln[Zn]&=dn;for(dn=~dn,Zn=0;Zn<10;Zn++)this.h[Zn]=this.h[Zn]&dn|ln[Zn];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,ri=this.h[0]+this.pad[0],this.h[0]=ri&65535,Zn=1;Zn<8;Zn++)ri=(this.h[Zn]+this.pad[Zn]|0)+(ri>>>16)|0,this.h[Zn]=ri&65535;Yr[Wt+0]=this.h[0]>>>0&255,Yr[Wt+1]=this.h[0]>>>8&255,Yr[Wt+2]=this.h[1]>>>0&255,Yr[Wt+3]=this.h[1]>>>8&255,Yr[Wt+4]=this.h[2]>>>0&255,Yr[Wt+5]=this.h[2]>>>8&255,Yr[Wt+6]=this.h[3]>>>0&255,Yr[Wt+7]=this.h[3]>>>8&255,Yr[Wt+8]=this.h[4]>>>0&255,Yr[Wt+9]=this.h[4]>>>8&255,Yr[Wt+10]=this.h[5]>>>0&255,Yr[Wt+11]=this.h[5]>>>8&255,Yr[Wt+12]=this.h[6]>>>0&255,Yr[Wt+13]=this.h[6]>>>8&255,Yr[Wt+14]=this.h[7]>>>0&255,Yr[Wt+15]=this.h[7]>>>8&255},Qt.prototype.update=function(Yr,Wt,ln){var qr,dn;if(this.leftover){for(dn=16-this.leftover,dn>ln&&(dn=ln),qr=0;qr=16&&(dn=ln-ln%16,this.blocks(Yr,Wt,dn),Wt+=dn,ln-=dn),ln){for(qr=0;qr>16&1),ri[ln-1]&=65535;ri[15]=Zn[15]-32767-(ri[14]>>16&1),dn=ri[15]>>16&1,ri[14]&=65535,Jt(Zn,ri,1-dn)}for(ln=0;ln<16;ln++)Yr[2*ln]=Zn[ln]&255,Yr[2*ln+1]=Zn[ln]>>8}function zr(Yr,Wt){var ln=new Uint8Array(32),qr=new Uint8Array(32);return Xr(ln,Yr),Xr(qr,Wt),jr(ln,0,qr,0)}function Jr(Yr){var Wt=new Uint8Array(32);return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qr*ea,xi+=qr*ua,To+=qr*la,Mo+=qr*fa,Co+=qr*ca,qr=Wt[15],so+=qr*ni,lo+=qr*Ko,eo+=qr*Wo,uo+=qr*Ho,ho+=qr*Uo,ro+=qr*Go,ci+=qr*Vo,pi+=qr*ra,mi+=qr*Do,Si+=qr*ia,Ti+=qr*oa,xi+=qr*ea,To+=qr*ua,Mo+=qr*la,Co+=qr*fa,Fo+=qr*ca,ri+=38*lo,Zn+=38*eo,ai+=38*uo,bi+=38*ho,_i+=38*ro,fi+=38*ci,yo+=38*pi,Di+=38*mi,Ni+=38*Si,oo+=38*Ti,fo+=38*xi,co+=38*To,Ao+=38*Mo,vo+=38*Co,_o+=38*Fo,dn=1,qr=ri+dn+65535,dn=Math.floor(qr/65536),ri=qr-dn*65536,qr=Zn+dn+65535,dn=Math.floor(qr/65536),Zn=qr-dn*65536,qr=ai+dn+65535,dn=Math.floor(qr/65536),ai=qr-dn*65536,qr=bi+dn+65535,dn=Math.floor(qr/65536),bi=qr-dn*65536,qr=_i+dn+65535,dn=Math.floor(qr/65536),_i=qr-dn*65536,qr=fi+dn+65535,dn=Math.floor(qr/65536),fi=qr-dn*65536,qr=yo+dn+65535,dn=Math.floor(qr/65536),yo=qr-dn*65536,qr=Di+dn+65535,dn=Math.floor(qr/65536),Di=qr-dn*65536,qr=Ni+dn+65535,dn=Math.floor(qr/65536),Ni=qr-dn*65536,qr=oo+dn+65535,dn=Math.floor(qr/65536),oo=qr-dn*65536,qr=fo+dn+65535,dn=Math.floor(qr/65536),fo=qr-dn*65536,qr=co+dn+65535,dn=Math.floor(qr/65536),co=qr-dn*65536,qr=Ao+dn+65535,dn=Math.floor(qr/65536),Ao=qr-dn*65536,qr=vo+dn+65535,dn=Math.floor(qr/65536),vo=qr-dn*65536,qr=_o+dn+65535,dn=Math.floor(qr/65536),_o=qr-dn*65536,qr=so+dn+65535,dn=Math.floor(qr/65536),so=qr-dn*65536,ri+=dn-1+37*(dn-1),dn=1,qr=ri+dn+65535,dn=Math.floor(qr/65536),ri=qr-dn*65536,qr=Zn+dn+65535,dn=Math.floor(qr/65536),Zn=qr-dn*65536,qr=ai+dn+65535,dn=Math.floor(qr/65536),ai=qr-dn*65536,qr=bi+dn+65535,dn=Math.floor(qr/65536),bi=qr-dn*65536,qr=_i+dn+65535,dn=Math.floor(qr/65536),_i=qr-dn*65536,qr=fi+dn+65535,dn=Math.floor(qr/65536),fi=qr-dn*65536,qr=yo+dn+65535,dn=Math.floor(qr/65536),yo=qr-dn*65536,qr=Di+dn+65535,dn=Math.floor(qr/65536),Di=qr-dn*65536,qr=Ni+dn+65535,dn=Math.floor(qr/65536),Ni=qr-dn*65536,qr=oo+dn+65535,dn=Math.floor(qr/65536),oo=qr-dn*65536,qr=fo+dn+65535,dn=Math.floor(qr/65536),fo=qr-dn*65536,qr=co+dn+65535,dn=Math.floor(qr/65536),co=qr-dn*65536,qr=Ao+dn+65535,dn=Math.floor(qr/65536),Ao=qr-dn*65536,qr=vo+dn+65535,dn=Math.floor(qr/65536),vo=qr-dn*65536,qr=_o+dn+65535,dn=Math.floor(qr/65536),_o=qr-dn*65536,qr=so+dn+65535,dn=Math.floor(qr/65536),so=qr-dn*65536,ri+=dn-1+37*(dn-1),Yr[0]=ri,Yr[1]=Zn,Yr[2]=ai,Yr[3]=bi,Yr[4]=_i,Yr[5]=fi,Yr[6]=yo,Yr[7]=Di,Yr[8]=Ni,Yr[9]=oo,Yr[10]=fo,Yr[11]=co,Yr[12]=Ao,Yr[13]=vo,Yr[14]=_o,Yr[15]=so}function mn(Yr,Wt){Gn(Yr,Wt,Wt)}function Nn(Yr,Wt){var ln=ae(),qr;for(qr=0;qr<16;qr++)ln[qr]=Wt[qr];for(qr=253;qr>=0;qr--)mn(ln,ln),qr!==2&&qr!==4&&Gn(ln,ln,Wt);for(qr=0;qr<16;qr++)Yr[qr]=ln[qr]}function In(Yr,Wt){var ln=ae(),qr;for(qr=0;qr<16;qr++)ln[qr]=Wt[qr];for(qr=250;qr>=0;qr--)mn(ln,ln),qr!==1&&Gn(ln,ln,Wt);for(qr=0;qr<16;qr++)Yr[qr]=ln[qr]}function bn(Yr,Wt,ln){var qr=new Uint8Array(32),dn=new Float64Array(80),ri,Zn,ai=ae(),bi=ae(),_i=ae(),fi=ae(),yo=ae(),Di=ae();for(Zn=0;Zn<31;Zn++)qr[Zn]=Wt[Zn];for(qr[31]=Wt[31]&127|64,qr[0]&=248,Nr(dn,ln),Zn=0;Zn<16;Zn++)bi[Zn]=dn[Zn],fi[Zn]=ai[Zn]=_i[Zn]=0;for(ai[0]=fi[0]=1,Zn=254;Zn>=0;--Zn)ri=qr[Zn>>>3]>>>(Zn&7)&1,Jt(ai,bi,ri),Jt(_i,fi,ri),Hr(yo,ai,_i),On(ai,ai,_i),Hr(_i,bi,fi),On(bi,bi,fi),mn(fi,yo),mn(Di,ai),Gn(ai,_i,ai),Gn(_i,bi,yo),Hr(yo,ai,_i),On(ai,ai,_i),mn(bi,ai),On(_i,fi,Di),Gn(ai,_i,ye),Hr(ai,ai,fi),Gn(_i,_i,ai),Gn(ai,fi,Di),Gn(fi,bi,dn),mn(bi,yo),Jt(ai,bi,ri),Jt(_i,fi,ri);for(Zn=0;Zn<16;Zn++)dn[Zn+16]=ai[Zn],dn[Zn+32]=_i[Zn],dn[Zn+48]=bi[Zn],dn[Zn+64]=fi[Zn];var Ni=dn.subarray(32),oo=dn.subarray(16);return Nn(Ni,Ni),Gn(oo,oo,Ni),Xr(Yr,oo),0}function ii(Yr,Wt){return bn(Yr,Wt,le)}function vn(Yr,Wt){return ce(Wt,32),ii(Yr,Wt)}function pn(Yr,Wt,ln){var qr=new Uint8Array(32);return bn(qr,ln,Wt),Gr(Yr,fe,qr,Ur)}var Sn=be,Qn=kr;function Jn(Yr,Wt,ln,qr,dn,ri){var Zn=new Uint8Array(32);return pn(Zn,dn,ri),Sn(Yr,Wt,ln,qr,Zn)}function ui(Yr,Wt,ln,qr,dn,ri){var Zn=new Uint8Array(32);return pn(Zn,dn,ri),Qn(Yr,Wt,ln,qr,Zn)}var gi=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function di(Yr,Wt,ln,qr){for(var dn=new Int32Array(16),ri=new Int32Array(16),Zn,ai,bi,_i,fi,yo,Di,Ni,oo,fo,co,Ao,vo,_o,so,lo,eo,uo,ho,ro,ci,pi,mi,Si,Ti,xi,To=Yr[0],Mo=Yr[1],Co=Yr[2],Fo=Yr[3],ni=Yr[4],Ko=Yr[5],Wo=Yr[6],Ho=Yr[7],Uo=Wt[0],Go=Wt[1],Vo=Wt[2],ra=Wt[3],Do=Wt[4],ia=Wt[5],oa=Wt[6],ea=Wt[7],ua=0;qr>=128;){for(ho=0;ho<16;ho++)ro=8*ho+ua,dn[ho]=ln[ro+0]<<24|ln[ro+1]<<16|ln[ro+2]<<8|ln[ro+3],ri[ho]=ln[ro+4]<<24|ln[ro+5]<<16|ln[ro+6]<<8|ln[ro+7];for(ho=0;ho<80;ho++)if(Zn=To,ai=Mo,bi=Co,_i=Fo,fi=ni,yo=Ko,Di=Wo,Ni=Ho,oo=Uo,fo=Go,co=Vo,Ao=ra,vo=Do,_o=ia,so=oa,lo=ea,ci=Ho,pi=ea,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=(ni>>>14|Do<<32-14)^(ni>>>18|Do<<32-18)^(Do>>>41-32|ni<<32-(41-32)),pi=(Do>>>14|ni<<32-14)^(Do>>>18|ni<<32-18)^(ni>>>41-32|Do<<32-(41-32)),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=ni&Ko^~ni&Wo,pi=Do&ia^~Do&oa,mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=gi[ho*2],pi=gi[ho*2+1],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=dn[ho%16],pi=ri[ho%16],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,eo=Ti&65535|xi<<16,uo=mi&65535|Si<<16,ci=eo,pi=uo,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=(To>>>28|Uo<<32-28)^(Uo>>>34-32|To<<32-(34-32))^(Uo>>>39-32|To<<32-(39-32)),pi=(Uo>>>28|To<<32-28)^(To>>>34-32|Uo<<32-(34-32))^(To>>>39-32|Uo<<32-(39-32)),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,ci=To&Mo^To&Co^Mo&Co,pi=Uo&Go^Uo&Vo^Go&Vo,mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Ni=Ti&65535|xi<<16,lo=mi&65535|Si<<16,ci=_i,pi=Ao,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=eo,pi=uo,mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,_i=Ti&65535|xi<<16,Ao=mi&65535|Si<<16,Mo=Zn,Co=ai,Fo=bi,ni=_i,Ko=fi,Wo=yo,Ho=Di,To=Ni,Go=oo,Vo=fo,ra=co,Do=Ao,ia=vo,oa=_o,ea=so,Uo=lo,ho%16===15)for(ro=0;ro<16;ro++)ci=dn[ro],pi=ri[ro],mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=dn[(ro+9)%16],pi=ri[(ro+9)%16],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,eo=dn[(ro+1)%16],uo=ri[(ro+1)%16],ci=(eo>>>1|uo<<32-1)^(eo>>>8|uo<<32-8)^eo>>>7,pi=(uo>>>1|eo<<32-1)^(uo>>>8|eo<<32-8)^(uo>>>7|eo<<32-7),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,eo=dn[(ro+14)%16],uo=ri[(ro+14)%16],ci=(eo>>>19|uo<<32-19)^(uo>>>61-32|eo<<32-(61-32))^eo>>>6,pi=(uo>>>19|eo<<32-19)^(eo>>>61-32|uo<<32-(61-32))^(uo>>>6|eo<<32-6),mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,dn[ro]=Ti&65535|xi<<16,ri[ro]=mi&65535|Si<<16;ci=To,pi=Uo,mi=pi&65535,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Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[5]=Ko=Ti&65535|xi<<16,Wt[5]=ia=mi&65535|Si<<16,ci=Wo,pi=oa,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[6],pi=Wt[6],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[6]=Wo=Ti&65535|xi<<16,Wt[6]=oa=mi&65535|Si<<16,ci=Ho,pi=ea,mi=pi&65535,Si=pi>>>16,Ti=ci&65535,xi=ci>>>16,ci=Yr[7],pi=Wt[7],mi+=pi&65535,Si+=pi>>>16,Ti+=ci&65535,xi+=ci>>>16,Si+=mi>>>16,Ti+=Si>>>16,xi+=Ti>>>16,Yr[7]=Ho=Ti&65535|xi<<16,Wt[7]=ea=mi&65535|Si<<16,ua+=128,qr-=128}return qr}function Ci(Yr,Wt,ln){var qr=new Int32Array(8),dn=new Int32Array(8),ri=new Uint8Array(256),Zn,ai=ln;for(qr[0]=1779033703,qr[1]=3144134277,qr[2]=1013904242,qr[3]=2773480762,qr[4]=1359893119,qr[5]=2600822924,qr[6]=528734635,qr[7]=1541459225,dn[0]=4089235720,dn[1]=2227873595,dn[2]=4271175723,dn[3]=1595750129,dn[4]=2917565137,dn[5]=725511199,dn[6]=4215389547,dn[7]=327033209,di(qr,dn,Wt,ln),ln%=128,Zn=0;Zn=0;--dn)qr=ln[dn/8|0]>>(dn&7)&1,li(Yr,Wt,qr),yi(Wt,Yr),yi(Yr,Yr),li(Yr,Wt,qr)}function Oi(Yr,Wt){var ln=[ae(),ae(),ae(),ae()];xr(ln[0],cr),xr(ln[1],Br),xr(ln[2],pe),Gn(ln[3],cr,Br),Ai(Yr,ln,Wt)}function to(Yr,Wt,ln){var qr=new Uint8Array(64),dn=[ae(),ae(),ae(),ae()],ri;for(ln||ce(Wt,32),Ci(qr,Wt,32),qr[0]&=248,qr[31]&=127,qr[31]|=64,Oi(dn,qr),Pi(Yr,dn),ri=0;ri<32;ri++)Wt[ri+32]=Yr[ri];return 0}var En=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Bt(Yr,Wt){var ln,qr,dn,ri;for(qr=63;qr>=32;--qr){for(ln=0,dn=qr-32,ri=qr-12;dn>4)*En[dn],ln=Wt[dn]>>8,Wt[dn]&=255;for(dn=0;dn<32;dn++)Wt[dn]-=ln*En[dn];for(qr=0;qr<32;qr++)Wt[qr+1]+=Wt[qr]>>8,Yr[qr]=Wt[qr]&255}function Zt(Yr){var Wt=new Float64Array(64),ln;for(ln=0;ln<64;ln++)Wt[ln]=Yr[ln];for(ln=0;ln<64;ln++)Yr[ln]=0;Bt(Yr,Wt)}function Tn(Yr,Wt,ln,qr){var dn=new Uint8Array(64),ri=new Uint8Array(64),Zn=new Uint8Array(64),ai,bi,_i=new Float64Array(64),fi=[ae(),ae(),ae(),ae()];Ci(dn,qr,32),dn[0]&=248,dn[31]&=127,dn[31]|=64;var yo=ln+64;for(ai=0;ai>7&&On(Yr[0],ve,Yr[0]),Gn(Yr[3],Yr[0],Yr[1]),0)}function zn(Yr,Wt,ln,qr){var dn,ri=new Uint8Array(32),Zn=new Uint8Array(64),ai=[ae(),ae(),ae(),ae()],bi=[ae(),ae(),ae(),ae()];if(ln<64||ei(bi,qr))return-1;for(dn=0;dn=0},ie.sign.keyPair=function(){var Yr=new Uint8Array(mo),Wt=new Uint8Array(qo);return to(Yr,Wt),{publicKey:Yr,secretKey:Wt}},ie.sign.keyPair.fromSecretKey=function(Yr){if(zi(Yr),Yr.length!==qo)throw new Error("bad secret key size");for(var Wt=new Uint8Array(mo),ln=0;ln{this[ae]=ie[ae]})}};v.Assignable=k}}),require_errors$2=__commonJS$1({"node_modules/@near-js/types/lib/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ErrorContext=v.TypedError=v.ArgumentTypeError=v.PositionalArgsError=void 0;var k=class extends Error{constructor(){super("Contract method calls expect named arguments wrapped in object, e.g. { argName1: argValue1, argName2: argValue2 }")}};v.PositionalArgsError=k;var ie=class extends Error{constructor(fe,le,ve){super(`Expected ${le} for '${fe}' argument, but got '${JSON.stringify(ve)}'`)}};v.ArgumentTypeError=ie;var ae=class extends Error{constructor(fe,le,ve){super(fe),this.type=le||"UntypedError",this.context=ve}};v.TypedError=ae;var ce=class{constructor(fe){this.transactionHash=fe}};v.ErrorContext=ce}}),require_light_client=__commonJS$1({"node_modules/@near-js/types/lib/provider/light_client.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.IdType=void 0,function(k){k.Transaction="transaction",k.Receipt="receipt"}(v.IdType||(v.IdType={}))}}),require_response=__commonJS$1({"node_modules/@near-js/types/lib/provider/response.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.FinalExecutionStatusBasic=v.ExecutionStatusBasic=void 0,function(k){k.Unknown="Unknown",k.Pending="Pending",k.Failure="Failure"}(v.ExecutionStatusBasic||(v.ExecutionStatusBasic={})),function(k){k.NotStarted="NotStarted",k.Started="Started",k.Failure="Failure"}(v.FinalExecutionStatusBasic||(v.FinalExecutionStatusBasic={}))}}),require_provider$2=__commonJS$1({"node_modules/@near-js/types/lib/provider/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.FinalExecutionStatusBasic=v.ExecutionStatusBasic=v.IdType=void 0;var k=require_light_client();Object.defineProperty(v,"IdType",{enumerable:!0,get:function(){return k.IdType}});var ie=require_response();Object.defineProperty(v,"ExecutionStatusBasic",{enumerable:!0,get:function(){return ie.ExecutionStatusBasic}}),Object.defineProperty(v,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return ie.FinalExecutionStatusBasic}})}}),require_lib2=__commonJS$1({"node_modules/@near-js/types/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ae,ce,fe,le){le===void 0&&(le=fe);var ve=Object.getOwnPropertyDescriptor(ce,fe);(!ve||("get"in ve?!ce.__esModule:ve.writable||ve.configurable))&&(ve={enumerable:!0,get:function(){return ce[fe]}}),Object.defineProperty(ae,le,ve)}:function(ae,ce,fe,le){le===void 0&&(le=fe),ae[le]=ce[fe]}),ie=v&&v.__exportStar||function(ae,ce){for(var fe in ae)fe!=="default"&&!Object.prototype.hasOwnProperty.call(ce,fe)&&k(ce,ae,fe)};Object.defineProperty(v,"__esModule",{value:!0}),ie(require_assignable(),v),ie(require_errors$2(),v),ie(require_provider$2(),v)}}),require_public_key=__commonJS$1({"node_modules/@near-js/crypto/lib/public_key.js"(v){var k=v&&v.__importDefault||function(ye){return ye&&ye.__esModule?ye:{default:ye}};Object.defineProperty(v,"__esModule",{value:!0}),v.PublicKey=void 0;var ie=require_lib2(),ae=require_lib(),ce=k(require_nacl_fast()),fe=require_constants$2();function le(ye){switch(ye){case fe.KeyType.ED25519:return"ed25519";default:throw new Error(`Unknown key type ${ye}`)}}function ve(ye){switch(ye.toLowerCase()){case"ed25519":return fe.KeyType.ED25519;default:throw new Error(`Unknown key type ${ye}`)}}var pe=class extends ie.Assignable{static from(ye){return typeof ye=="string"?pe.fromString(ye):ye}static fromString(ye){const me=ye.split(":");let Ee,cr=fe.KeyType.ED25519;if(me.length===1)Ee=me[0];else if(me.length===2)Ee=me[1],cr=ve(me[0]);else throw new Error("Invalid encoded key format, must be :");const Br=(0,ae.baseDecode)(Ee);if(Br.length!==ce.default.box.publicKeyLength)throw new Error(`Invalid public key size (${Br.length}), must be ${ce.default.box.publicKeyLength}`);return new pe({keyType:cr,data:Br})}toString(){return`${le(this.keyType)}:${(0,ae.baseEncode)(this.data)}`}verify(ye,me){switch(this.keyType){case fe.KeyType.ED25519:return ce.default.sign.detached.verify(ye,me,this.data);default:throw new Error(`Unknown key type ${this.keyType}`)}}};v.PublicKey=pe}}),require_key_pair_ed25519=__commonJS$1({"node_modules/@near-js/crypto/lib/key_pair_ed25519.js"(v){var k=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.KeyPairEd25519=void 0;var ie=require_lib(),ae=k(require_nacl_fast()),ce=require_constants$2(),fe=require_key_pair_base(),le=require_public_key(),ve=class extends fe.KeyPairBase{constructor(pe){super();const ye=ae.default.sign.keyPair.fromSecretKey((0,ie.baseDecode)(pe));this.publicKey=new le.PublicKey({keyType:ce.KeyType.ED25519,data:ye.publicKey}),this.secretKey=pe}static fromRandom(){const pe=ae.default.sign.keyPair();return new ve((0,ie.baseEncode)(pe.secretKey))}sign(pe){return{signature:ae.default.sign.detached(pe,(0,ie.baseDecode)(this.secretKey)),publicKey:this.publicKey}}verify(pe,ye){return this.publicKey.verify(pe,ye)}toString(){return`ed25519:${this.secretKey}`}getPublicKey(){return this.publicKey}};v.KeyPairEd25519=ve}}),require_key_pair$1=__commonJS$1({"node_modules/@near-js/crypto/lib/key_pair.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyPair=void 0;var k=require_key_pair_base(),ie=require_key_pair_ed25519(),ae=class extends k.KeyPairBase{static fromRandom(ce){switch(ce.toUpperCase()){case"ED25519":return ie.KeyPairEd25519.fromRandom();default:throw new Error(`Unknown curve ${ce}`)}}static fromString(ce){const fe=ce.split(":");if(fe.length===1)return new ie.KeyPairEd25519(fe[0]);if(fe.length===2)switch(fe[0].toUpperCase()){case"ED25519":return new ie.KeyPairEd25519(fe[1]);default:throw new Error(`Unknown curve: ${fe[0]}`)}else throw new Error("Invalid encoded key format, must be :")}};v.KeyPair=ae}}),require_lib3=__commonJS$1({"node_modules/@near-js/crypto/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.PublicKey=v.KeyPairEd25519=v.KeyPair=v.KeyType=void 0;var k=require_constants$2();Object.defineProperty(v,"KeyType",{enumerable:!0,get:function(){return k.KeyType}});var ie=require_key_pair$1();Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return ie.KeyPair}});var ae=require_key_pair_ed25519();Object.defineProperty(v,"KeyPairEd25519",{enumerable:!0,get:function(){return ae.KeyPairEd25519}});var ce=require_public_key();Object.defineProperty(v,"PublicKey",{enumerable:!0,get:function(){return ce.PublicKey}})}}),require_keystore$1=__commonJS$1({"node_modules/@near-js/keystores/lib/keystore.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyStore=void 0;var k=class{};v.KeyStore=k}}),require_in_memory_key_store$1=__commonJS$1({"node_modules/@near-js/keystores/lib/in_memory_key_store.js"(v){var k=v&&v.__awaiter||function(fe,le,ve,pe){function ye(me){return me instanceof ve?me:new ve(function(Ee){Ee(me)})}return new(ve||(ve=Promise))(function(me,Ee){function cr(Pr){try{$r(pe.next(Pr))}catch(Ar){Ee(Ar)}}function Br(Pr){try{$r(pe.throw(Pr))}catch(Ar){Ee(Ar)}}function $r(Pr){Pr.done?me(Pr.value):ye(Pr.value).then(cr,Br)}$r((pe=pe.apply(fe,le||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.InMemoryKeyStore=void 0;var ie=require_lib3(),ae=require_keystore$1(),ce=class extends ae.KeyStore{constructor(){super(),this.keys={}}setKey(fe,le,ve){return k(this,void 0,void 0,function*(){this.keys[`${le}:${fe}`]=ve.toString()})}getKey(fe,le){return k(this,void 0,void 0,function*(){const ve=this.keys[`${le}:${fe}`];return ve?ie.KeyPair.fromString(ve):null})}removeKey(fe,le){return k(this,void 0,void 0,function*(){delete this.keys[`${le}:${fe}`]})}clear(){return k(this,void 0,void 0,function*(){this.keys={}})}getNetworks(){return k(this,void 0,void 0,function*(){const fe=new Set;return Object.keys(this.keys).forEach(le=>{const ve=le.split(":");fe.add(ve[1])}),Array.from(fe.values())})}getAccounts(fe){return k(this,void 0,void 0,function*(){const le=new Array;return Object.keys(this.keys).forEach(ve=>{const pe=ve.split(":");pe[pe.length-1]===fe&&le.push(pe.slice(0,pe.length-1).join(":"))}),le})}toString(){return"InMemoryKeyStore"}};v.InMemoryKeyStore=ce}}),require_merge_key_store$1=__commonJS$1({"node_modules/@near-js/keystores/lib/merge_key_store.js"(v){var k=v&&v.__awaiter||function(ce,fe,le,ve){function pe(ye){return ye instanceof le?ye:new le(function(me){me(ye)})}return new(le||(le=Promise))(function(ye,me){function Ee($r){try{Br(ve.next($r))}catch(Pr){me(Pr)}}function cr($r){try{Br(ve.throw($r))}catch(Pr){me(Pr)}}function Br($r){$r.done?ye($r.value):pe($r.value).then(Ee,cr)}Br((ve=ve.apply(ce,fe||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.MergeKeyStore=void 0;var ie=require_keystore$1(),ae=class extends ie.KeyStore{constructor(ce,fe={writeKeyStoreIndex:0}){super(),this.options=fe,this.keyStores=ce}setKey(ce,fe,le){return k(this,void 0,void 0,function*(){yield this.keyStores[this.options.writeKeyStoreIndex].setKey(ce,fe,le)})}getKey(ce,fe){return k(this,void 0,void 0,function*(){for(const le of this.keyStores){const ve=yield le.getKey(ce,fe);if(ve)return ve}return null})}removeKey(ce,fe){return k(this,void 0,void 0,function*(){for(const le of this.keyStores)yield le.removeKey(ce,fe)})}clear(){return k(this,void 0,void 0,function*(){for(const ce of this.keyStores)yield ce.clear()})}getNetworks(){return k(this,void 0,void 0,function*(){const ce=new Set;for(const fe of this.keyStores)for(const le of yield fe.getNetworks())ce.add(le);return Array.from(ce)})}getAccounts(ce){return k(this,void 0,void 0,function*(){const fe=new Set;for(const le of this.keyStores)for(const ve of yield le.getAccounts(ce))fe.add(ve);return Array.from(fe)})}toString(){return`MergeKeyStore(${this.keyStores.join(", ")})`}};v.MergeKeyStore=ae}}),require_lib4$1=__commonJS$1({"node_modules/@near-js/keystores/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MergeKeyStore=v.KeyStore=v.InMemoryKeyStore=void 0;var k=require_in_memory_key_store$1();Object.defineProperty(v,"InMemoryKeyStore",{enumerable:!0,get:function(){return k.InMemoryKeyStore}});var ie=require_keystore$1();Object.defineProperty(v,"KeyStore",{enumerable:!0,get:function(){return ie.KeyStore}});var ae=require_merge_key_store$1();Object.defineProperty(v,"MergeKeyStore",{enumerable:!0,get:function(){return ae.MergeKeyStore}})}}),require_keystore2=__commonJS$1({"node_modules/near-api-js/lib/key_stores/keystore.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyStore=void 0;var k=require_lib4$1();Object.defineProperty(v,"KeyStore",{enumerable:!0,get:function(){return k.KeyStore}})}}),require_in_memory_key_store2=__commonJS$1({"node_modules/near-api-js/lib/key_stores/in_memory_key_store.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.InMemoryKeyStore=void 0;var k=require_lib4$1();Object.defineProperty(v,"InMemoryKeyStore",{enumerable:!0,get:function(){return k.InMemoryKeyStore}})}}),require_browser_local_storage_key_store$1=__commonJS$1({"node_modules/@near-js/keystores-browser/lib/browser_local_storage_key_store.js"(v){var k=v&&v.__awaiter||function(le,ve,pe,ye){function me(Ee){return Ee instanceof pe?Ee:new pe(function(cr){cr(Ee)})}return new(pe||(pe=Promise))(function(Ee,cr){function Br(Ar){try{Pr(ye.next(Ar))}catch(ur){cr(ur)}}function $r(Ar){try{Pr(ye.throw(Ar))}catch(ur){cr(ur)}}function Pr(Ar){Ar.done?Ee(Ar.value):me(Ar.value).then(Br,$r)}Pr((ye=ye.apply(le,ve||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.BrowserLocalStorageKeyStore=void 0;var ie=require_lib3(),ae=require_lib4$1(),ce="near-api-js:keystore:",fe=class extends ae.KeyStore{constructor(le=window.localStorage,ve=ce){super(),this.localStorage=le,this.prefix=ve}setKey(le,ve,pe){return k(this,void 0,void 0,function*(){this.localStorage.setItem(this.storageKeyForSecretKey(le,ve),pe.toString())})}getKey(le,ve){return k(this,void 0,void 0,function*(){const pe=this.localStorage.getItem(this.storageKeyForSecretKey(le,ve));return pe?ie.KeyPair.fromString(pe):null})}removeKey(le,ve){return k(this,void 0,void 0,function*(){this.localStorage.removeItem(this.storageKeyForSecretKey(le,ve))})}clear(){return k(this,void 0,void 0,function*(){for(const le of this.storageKeys())le.startsWith(this.prefix)&&this.localStorage.removeItem(le)})}getNetworks(){return k(this,void 0,void 0,function*(){const le=new Set;for(const ve of this.storageKeys())if(ve.startsWith(this.prefix)){const pe=ve.substring(this.prefix.length).split(":");le.add(pe[1])}return Array.from(le.values())})}getAccounts(le){return k(this,void 0,void 0,function*(){const ve=new Array;for(const pe of this.storageKeys())if(pe.startsWith(this.prefix)){const ye=pe.substring(this.prefix.length).split(":");ye[1]===le&&ve.push(ye[0])}return ve})}storageKeyForSecretKey(le,ve){return`${this.prefix}${ve}:${le}`}*storageKeys(){for(let le=0;le":">",'"':""","'":"'","/":"/","`":"`","=":"="};function $r(Qt){return String(Qt).replace(/[&<>"'`=\/]/g,function(Kr){return Br[Kr]})}var Pr=/\s*/,Ar=/\s+/,ur=/\s*=/,jr=/\s*\}/,Mr=/#|\^|\/|>|\{|&|=|!/;function Lr(Qt,Xt){if(!Qt)return[];var Kr=!1,be=[],kr=[],xr=[],Wr=!1,Jt=!1,Xr="",zr=0;function Jr(){if(Wr&&!Jt)for(;xr.length;)delete kr[xr.pop()];else xr=[];Wr=!1,Jt=!1}var Nr,Hr,On;function Gn(Jn){if(typeof Jn=="string"&&(Jn=Jn.split(Ar,2)),!ae(Jn)||Jn.length!==2)throw new Error("Invalid tags: "+Jn);Nr=new RegExp(le(Jn[0])+"\\s*"),Hr=new RegExp("\\s*"+le(Jn[1])),On=new RegExp("\\s*"+le("}"+Jn[1]))}Gn(Xt||Yt.tags);for(var mn=new Ur(Qt),Nn,In,bn,ii,vn,pn;!mn.eos();){if(Nn=mn.pos,bn=mn.scanUntil(Nr),bn)for(var Sn=0,Qn=bn.length;Sn"?vn=[In,bn,Nn,mn.pos,Xr,zr,Kr]:vn=[In,bn,Nn,mn.pos],zr++,kr.push(vn),In==="#"||In==="^")be.push(vn);else if(In==="/"){if(pn=be.pop(),!pn)throw new Error('Unopened section "'+bn+'" at '+Nn);if(pn[1]!==bn)throw new Error('Unclosed section "'+pn[1]+'" at '+Nn)}else In==="name"||In==="{"||In==="&"?Jt=!0:In==="="&&Gn(bn)}if(Jr(),pn=be.pop(),pn)throw new Error('Unclosed section "'+pn[1]+'" at '+mn.pos);return Gr(Vr(kr))}function Vr(Qt){for(var Xt=[],Kr,be,kr=0,xr=Qt.length;kr0?be[be.length-1][4]:Xt;break;default:Kr.push(kr)}return Xt}function Ur(Qt){this.string=Qt,this.tail=Qt,this.pos=0}Ur.prototype.eos=function(){return this.tail===""},Ur.prototype.scan=function(Xt){var Kr=this.tail.match(Xt);if(!Kr||Kr.index!==0)return"";var be=Kr[0];return this.tail=this.tail.substring(be.length),this.pos+=be.length,be},Ur.prototype.scanUntil=function(Xt){var Kr=this.tail.search(Xt),be;switch(Kr){case-1:be=this.tail,this.tail="";break;case 0:be="";break;default:be=this.tail.substring(0,Kr),this.tail=this.tail.substring(Kr)}return this.pos+=be.length,be};function Qr(Qt,Xt){this.view=Qt,this.cache={".":this.view},this.parent=Xt}Qr.prototype.push=function(Xt){return new Qr(Xt,this)},Qr.prototype.lookup=function(Xt){var Kr=this.cache,be;if(Kr.hasOwnProperty(Xt))be=Kr[Xt];else{for(var kr=this,xr,Wr,Jt,Xr=!1;kr;){if(Xt.indexOf(".")>0)for(xr=kr.view,Wr=Xt.split("."),Jt=0;xr!=null&&Jt"?zr=this.renderPartial(Jt,Kr,be,xr):Xr==="&"?zr=this.unescapedValue(Jt,Kr):Xr==="name"?zr=this.escapedValue(Jt,Kr,xr):Xr==="text"&&(zr=this.rawValue(Jt)),zr!==void 0&&(Wr+=zr);return Wr},hn.prototype.renderSection=function(Xt,Kr,be,kr,xr){var Wr=this,Jt="",Xr=Kr.lookup(Xt[1]);function zr(Hr){return Wr.render(Hr,Kr,be,xr)}if(!!Xr){if(ae(Xr))for(var Jr=0,Nr=Xr.length;Jr0||!be)&&(xr[Wr]=kr+xr[Wr]);return xr.join(` -`)},vn.prototype.renderPartial=function(Qt,Kr,be,kr){if(!!be){var xr=this.getConfigTags(kr),Wr=ce(be)?be(Qt[1]):be[Qt[1]];if(Wr!=null){var Jt=Qt[6],Xr=Qt[5],zr=Qt[4],Jr=Wr;Xr==0&&zr&&(Jr=this.indentPartial(Wr,zr,Jt));var Nr=this.parse(Jr,xr);return this.renderTokens(Nr,Kr,be,Jr,kr)}}},vn.prototype.unescapedValue=function(Qt,Kr){var be=Kr.lookup(Qt[1]);if(be!=null)return be},vn.prototype.escapedValue=function(Qt,Kr,be){var kr=this.getConfigEscape(be)||Yt.escape,xr=Kr.lookup(Qt[1]);if(xr!=null)return typeof xr=="number"&&kr===Yt.escape?String(xr):kr(xr)},vn.prototype.rawValue=function(Qt){return Qt[1]},vn.prototype.getConfigTags=function(Qt){return ae(Qt)?Qt:Qt&&typeof Qt=="object"?Qt.tags:void 0},vn.prototype.getConfigEscape=function(Qt){if(Qt&&typeof Qt=="object"&&!ae(Qt))return Qt.escape};var Yt={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(Xt){fn.templateCache=Xt},get templateCache(){return fn.templateCache}},fn=new vn;return Yt.clearCache=function(){return fn.clearCache()},Yt.parse=function(Qt,Kr){return fn.parse(Qt,Kr)},Yt.render=function(Qt,Kr,be,kr){if(typeof Qt!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+fe(Qt)+'" was given as the first argument for mustache#render(template, view, partials)');return fn.render(Qt,Kr,be,kr)},Yt.escape=$r,Yt.Scanner=Ur,Yt.Context=Qr,Yt.Writer=vn,Yt})}}),require_format$1=__commonJS$1({"node_modules/@near-js/utils/lib/format.js"(v){var k=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.parseNearAmount=v.formatNearAmount=v.NEAR_NOMINATION=v.NEAR_NOMINATION_EXP=void 0;var ie=k(require_bn$1());v.NEAR_NOMINATION_EXP=24,v.NEAR_NOMINATION=new ie.default("10",10).pow(new ie.default(v.NEAR_NOMINATION_EXP,10));var ae=[],ce=new ie.default(10);for(let Ee=0,cr=new ie.default(5);Ee0&&Br.iadd(ae[Or])}Ee=Br.toString();const $r=Ee.substring(0,Ee.length-v.NEAR_NOMINATION_EXP)||"0",Pr=Ee.substring(Ee.length-v.NEAR_NOMINATION_EXP).padStart(v.NEAR_NOMINATION_EXP,"0").substring(0,cr);return pe(`${me($r)}.${Pr}`)}v.formatNearAmount=fe;function le(Ee){if(!Ee)return null;Ee=ve(Ee);const cr=Ee.split("."),Br=cr[0],$r=cr[1]||"";if(cr.length>2||$r.length>v.NEAR_NOMINATION_EXP)throw new Error(`Cannot parse '${Ee}' as NEAR amount`);return ye(Br+$r.padEnd(v.NEAR_NOMINATION_EXP,"0"))}v.parseNearAmount=le;function ve(Ee){return Ee.replace(/,/g,"").trim()}function pe(Ee){return Ee.replace(/\.?0*$/,"")}function ye(Ee){return Ee=Ee.replace(/^0+/,""),Ee===""?"0":Ee}function me(Ee){const cr=/(-?\d+)(\d{3})/;for(;cr.test(Ee);)Ee=Ee.replace(cr,"$1,$2");return Ee}}}),require_error_messages$1=__commonJS$1({"node_modules/@near-js/utils/lib/errors/error_messages.json"(v,k){k.exports={GasLimitExceeded:"Exceeded the maximum amount of gas allowed to burn per contract",MethodEmptyName:"Method name is empty",WasmerCompileError:"Wasmer compilation error: {{msg}}",GuestPanic:"Smart contract panicked: {{panic_msg}}",Memory:"Error creating Wasm memory",GasExceeded:"Exceeded the prepaid gas",MethodUTF8Error:"Method name is not valid UTF8 string",BadUTF16:"String encoding is bad UTF-16 sequence",WasmTrap:"WebAssembly trap: {{msg}}",GasInstrumentation:"Gas instrumentation failed or contract has denied instructions.",InvalidPromiseIndex:"{{promise_idx}} does not correspond to existing promises",InvalidPromiseResultIndex:"Accessed invalid promise result index: {{result_idx}}",Deserialization:"Error happened while deserializing the module",MethodNotFound:"Contract method is not found",InvalidRegisterId:"Accessed invalid register id: {{register_id}}",InvalidReceiptIndex:"VM Logic returned an invalid receipt index: {{receipt_index}}",EmptyMethodName:"Method name is empty in contract call",CannotReturnJointPromise:"Returning joint promise is currently prohibited",StackHeightInstrumentation:"Stack instrumentation failed",CodeDoesNotExist:"Cannot find contract code for account {{account_id}}",MethodInvalidSignature:"Invalid method signature",IntegerOverflow:"Integer overflow happened during contract execution",MemoryAccessViolation:"MemoryAccessViolation",InvalidIteratorIndex:"Iterator index {{iterator_index}} does not exist",IteratorWasInvalidated:"Iterator {{iterator_index}} was invalidated after its creation by performing a mutable operation on trie",InvalidAccountId:"VM Logic returned an invalid account id",Serialization:"Error happened while serializing the module",CannotAppendActionToJointPromise:"Actions can only be appended to non-joint promise.",InternalMemoryDeclared:"Internal memory declaration has been found in the module",Instantiate:"Error happened during instantiation",ProhibitedInView:"{{method_name}} is not allowed in view calls",InvalidMethodName:"VM Logic returned an invalid method name",BadUTF8:"String encoding is bad UTF-8 sequence",BalanceExceeded:"Exceeded the account balance",LinkError:"Wasm contract link error: {{msg}}",InvalidPublicKey:"VM Logic provided an invalid public key",ActorNoPermission:"Actor {{actor_id}} doesn't have permission to account {{account_id}} to complete the action",LackBalanceForState:"The account {{account_id}} wouldn't have enough balance to cover storage, required to have {{amount}} yoctoNEAR more",ReceiverMismatch:"Wrong AccessKey used for transaction: transaction is sent to receiver_id={{tx_receiver}}, but is signed with function call access key that restricted to only use with receiver_id={{ak_receiver}}. Either change receiver_id in your transaction or switch to use a FullAccessKey.",CostOverflow:"Transaction gas or balance cost is too high",InvalidSignature:"Transaction is not signed with the given public key",AccessKeyNotFound:`Signer "{{account_id}}" doesn't have access key with the given public_key {{public_key}}`,NotEnoughBalance:"Sender {{signer_id}} does not have enough balance {{#formatNear}}{{balance}}{{/formatNear}} for operation costing {{#formatNear}}{{cost}}{{/formatNear}}",NotEnoughAllowance:"Access Key {account_id}:{public_key} does not have enough balance {{#formatNear}}{{allowance}}{{/formatNear}} for transaction costing {{#formatNear}}{{cost}}{{/formatNear}}",Expired:"Transaction has expired",DeleteAccountStaking:"Account {{account_id}} is staking and can not be deleted",SignerDoesNotExist:"Signer {{signer_id}} does not exist",TriesToStake:"Account {{account_id}} tried to stake {{#formatNear}}{{stake}}{{/formatNear}}, but has staked {{#formatNear}}{{locked}}{{/formatNear}} and only has {{#formatNear}}{{balance}}{{/formatNear}}",AddKeyAlreadyExists:"The public key {{public_key}} is already used for an existing access key",InvalidSigner:"Invalid signer account ID {{signer_id}} according to requirements",CreateAccountNotAllowed:"The new account_id {{account_id}} can't be created by {{predecessor_id}}",RequiresFullAccess:"The transaction contains more then one action, but it was signed with an access key which allows transaction to apply only one specific action. To apply more then one actions TX must be signed with a full access key",TriesToUnstake:"Account {{account_id}} is not yet staked, but tried to unstake",InvalidNonce:"Transaction nonce {{tx_nonce}} must be larger than nonce of the used access key {{ak_nonce}}",AccountAlreadyExists:"Can't create a new account {{account_id}}, because it already exists",InvalidChain:"Transaction parent block hash doesn't belong to the current chain",AccountDoesNotExist:"Can't complete the action because account {{account_id}} doesn't exist",MethodNameMismatch:"Transaction method name {{method_name}} isn't allowed by the access key",DeleteAccountHasRent:"Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover the rent",DeleteAccountHasEnoughBalance:"Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover it's storage",InvalidReceiver:"Invalid receiver account ID {{receiver_id}} according to requirements",DeleteKeyDoesNotExist:"Account {{account_id}} tries to remove an access key that doesn't exist",Timeout:"Timeout exceeded",Closed:"Connection closed"}}}),require_rpc_error_schema$1=__commonJS$1({"node_modules/@near-js/utils/lib/errors/rpc_error_schema.json"(v,k){k.exports={schema:{BadUTF16:{name:"BadUTF16",subtypes:[],props:{}},BadUTF8:{name:"BadUTF8",subtypes:[],props:{}},BalanceExceeded:{name:"BalanceExceeded",subtypes:[],props:{}},BreakpointTrap:{name:"BreakpointTrap",subtypes:[],props:{}},CacheError:{name:"CacheError",subtypes:["ReadError","WriteError","DeserializationError","SerializationError"],props:{}},CallIndirectOOB:{name:"CallIndirectOOB",subtypes:[],props:{}},CannotAppendActionToJointPromise:{name:"CannotAppendActionToJointPromise",subtypes:[],props:{}},CannotReturnJointPromise:{name:"CannotReturnJointPromise",subtypes:[],props:{}},CodeDoesNotExist:{name:"CodeDoesNotExist",subtypes:[],props:{account_id:""}},CompilationError:{name:"CompilationError",subtypes:["CodeDoesNotExist","PrepareError","WasmerCompileError"],props:{}},ContractSizeExceeded:{name:"ContractSizeExceeded",subtypes:[],props:{limit:"",size:""}},Deprecated:{name:"Deprecated",subtypes:[],props:{method_name:""}},Deserialization:{name:"Deserialization",subtypes:[],props:{}},DeserializationError:{name:"DeserializationError",subtypes:[],props:{}},EmptyMethodName:{name:"EmptyMethodName",subtypes:[],props:{}},FunctionCallError:{name:"FunctionCallError",subtypes:["CompilationError","LinkError","MethodResolveError","WasmTrap","WasmUnknownError","HostError","EvmError"],props:{}},GasExceeded:{name:"GasExceeded",subtypes:[],props:{}},GasInstrumentation:{name:"GasInstrumentation",subtypes:[],props:{}},GasLimitExceeded:{name:"GasLimitExceeded",subtypes:[],props:{}},GenericTrap:{name:"GenericTrap",subtypes:[],props:{}},GuestPanic:{name:"GuestPanic",subtypes:[],props:{panic_msg:""}},HostError:{name:"HostError",subtypes:["BadUTF16","BadUTF8","GasExceeded","GasLimitExceeded","BalanceExceeded","EmptyMethodName","GuestPanic","IntegerOverflow","InvalidPromiseIndex","CannotAppendActionToJointPromise","CannotReturnJointPromise","InvalidPromiseResultIndex","InvalidRegisterId","IteratorWasInvalidated","MemoryAccessViolation","InvalidReceiptIndex","InvalidIteratorIndex","InvalidAccountId","InvalidMethodName","InvalidPublicKey","ProhibitedInView","NumberOfLogsExceeded","KeyLengthExceeded","ValueLengthExceeded","TotalLogLengthExceeded","NumberPromisesExceeded","NumberInputDataDependenciesExceeded","ReturnedValueLengthExceeded","ContractSizeExceeded","Deprecated"],props:{}},IllegalArithmetic:{name:"IllegalArithmetic",subtypes:[],props:{}},IncorrectCallIndirectSignature:{name:"IncorrectCallIndirectSignature",subtypes:[],props:{}},Instantiate:{name:"Instantiate",subtypes:[],props:{}},IntegerOverflow:{name:"IntegerOverflow",subtypes:[],props:{}},InternalMemoryDeclared:{name:"InternalMemoryDeclared",subtypes:[],props:{}},InvalidAccountId:{name:"InvalidAccountId",subtypes:[],props:{account_id:""}},InvalidIteratorIndex:{name:"InvalidIteratorIndex",subtypes:[],props:{iterator_index:""}},InvalidMethodName:{name:"InvalidMethodName",subtypes:[],props:{}},InvalidPromiseIndex:{name:"InvalidPromiseIndex",subtypes:[],props:{promise_idx:""}},InvalidPromiseResultIndex:{name:"InvalidPromiseResultIndex",subtypes:[],props:{result_idx:""}},InvalidPublicKey:{name:"InvalidPublicKey",subtypes:[],props:{}},InvalidReceiptIndex:{name:"InvalidReceiptIndex",subtypes:[],props:{receipt_index:""}},InvalidRegisterId:{name:"InvalidRegisterId",subtypes:[],props:{register_id:""}},IteratorWasInvalidated:{name:"IteratorWasInvalidated",subtypes:[],props:{iterator_index:""}},KeyLengthExceeded:{name:"KeyLengthExceeded",subtypes:[],props:{length:"",limit:""}},LinkError:{name:"LinkError",subtypes:[],props:{msg:""}},Memory:{name:"Memory",subtypes:[],props:{}},MemoryAccessViolation:{name:"MemoryAccessViolation",subtypes:[],props:{}},MemoryOutOfBounds:{name:"MemoryOutOfBounds",subtypes:[],props:{}},MethodEmptyName:{name:"MethodEmptyName",subtypes:[],props:{}},MethodInvalidSignature:{name:"MethodInvalidSignature",subtypes:[],props:{}},MethodNotFound:{name:"MethodNotFound",subtypes:[],props:{}},MethodResolveError:{name:"MethodResolveError",subtypes:["MethodEmptyName","MethodUTF8Error","MethodNotFound","MethodInvalidSignature"],props:{}},MethodUTF8Error:{name:"MethodUTF8Error",subtypes:[],props:{}},MisalignedAtomicAccess:{name:"MisalignedAtomicAccess",subtypes:[],props:{}},NumberInputDataDependenciesExceeded:{name:"NumberInputDataDependenciesExceeded",subtypes:[],props:{limit:"",number_of_input_data_dependencies:""}},NumberOfLogsExceeded:{name:"NumberOfLogsExceeded",subtypes:[],props:{limit:""}},NumberPromisesExceeded:{name:"NumberPromisesExceeded",subtypes:[],props:{limit:"",number_of_promises:""}},PrepareError:{name:"PrepareError",subtypes:["Serialization","Deserialization","InternalMemoryDeclared","GasInstrumentation","StackHeightInstrumentation","Instantiate","Memory"],props:{}},ProhibitedInView:{name:"ProhibitedInView",subtypes:[],props:{method_name:""}},ReadError:{name:"ReadError",subtypes:[],props:{}},ReturnedValueLengthExceeded:{name:"ReturnedValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},Serialization:{name:"Serialization",subtypes:[],props:{}},SerializationError:{name:"SerializationError",subtypes:[],props:{hash:""}},StackHeightInstrumentation:{name:"StackHeightInstrumentation",subtypes:[],props:{}},StackOverflow:{name:"StackOverflow",subtypes:[],props:{}},TotalLogLengthExceeded:{name:"TotalLogLengthExceeded",subtypes:[],props:{length:"",limit:""}},Unreachable:{name:"Unreachable",subtypes:[],props:{}},ValueLengthExceeded:{name:"ValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},WasmTrap:{name:"WasmTrap",subtypes:["Unreachable","IncorrectCallIndirectSignature","MemoryOutOfBounds","CallIndirectOOB","IllegalArithmetic","MisalignedAtomicAccess","BreakpointTrap","StackOverflow","GenericTrap"],props:{}},WasmUnknownError:{name:"WasmUnknownError",subtypes:[],props:{}},WasmerCompileError:{name:"WasmerCompileError",subtypes:[],props:{msg:""}},WriteError:{name:"WriteError",subtypes:[],props:{}},AccessKeyNotFound:{name:"AccessKeyNotFound",subtypes:[],props:{account_id:"",public_key:""}},AccountAlreadyExists:{name:"AccountAlreadyExists",subtypes:[],props:{account_id:""}},AccountDoesNotExist:{name:"AccountDoesNotExist",subtypes:[],props:{account_id:""}},ActionError:{name:"ActionError",subtypes:["AccountAlreadyExists","AccountDoesNotExist","CreateAccountOnlyByRegistrar","CreateAccountNotAllowed","ActorNoPermission","DeleteKeyDoesNotExist","AddKeyAlreadyExists","DeleteAccountStaking","LackBalanceForState","TriesToUnstake","TriesToStake","InsufficientStake","FunctionCallError","NewReceiptValidationError","OnlyImplicitAccountCreationAllowed"],props:{index:""}},ActionsValidationError:{name:"ActionsValidationError",subtypes:["DeleteActionMustBeFinal","TotalPrepaidGasExceeded","TotalNumberOfActionsExceeded","AddKeyMethodNamesNumberOfBytesExceeded","AddKeyMethodNameLengthExceeded","IntegerOverflow","InvalidAccountId","ContractSizeExceeded","FunctionCallMethodNameLengthExceeded","FunctionCallArgumentsLengthExceeded","UnsuitableStakingKey","FunctionCallZeroAttachedGas"],props:{}},ActorNoPermission:{name:"ActorNoPermission",subtypes:[],props:{account_id:"",actor_id:""}},AddKeyAlreadyExists:{name:"AddKeyAlreadyExists",subtypes:[],props:{account_id:"",public_key:""}},AddKeyMethodNameLengthExceeded:{name:"AddKeyMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},AddKeyMethodNamesNumberOfBytesExceeded:{name:"AddKeyMethodNamesNumberOfBytesExceeded",subtypes:[],props:{limit:"",total_number_of_bytes:""}},BalanceMismatchError:{name:"BalanceMismatchError",subtypes:[],props:{final_accounts_balance:"",final_postponed_receipts_balance:"",incoming_receipts_balance:"",incoming_validator_rewards:"",initial_accounts_balance:"",initial_postponed_receipts_balance:"",new_delayed_receipts_balance:"",other_burnt_amount:"",outgoing_receipts_balance:"",processed_delayed_receipts_balance:"",slashed_burnt_amount:"",tx_burnt_amount:""}},CostOverflow:{name:"CostOverflow",subtypes:[],props:{}},CreateAccountNotAllowed:{name:"CreateAccountNotAllowed",subtypes:[],props:{account_id:"",predecessor_id:""}},CreateAccountOnlyByRegistrar:{name:"CreateAccountOnlyByRegistrar",subtypes:[],props:{account_id:"",predecessor_id:"",registrar_account_id:""}},DeleteAccountStaking:{name:"DeleteAccountStaking",subtypes:[],props:{account_id:""}},DeleteActionMustBeFinal:{name:"DeleteActionMustBeFinal",subtypes:[],props:{}},DeleteKeyDoesNotExist:{name:"DeleteKeyDoesNotExist",subtypes:[],props:{account_id:"",public_key:""}},DepositWithFunctionCall:{name:"DepositWithFunctionCall",subtypes:[],props:{}},Expired:{name:"Expired",subtypes:[],props:{}},FunctionCallArgumentsLengthExceeded:{name:"FunctionCallArgumentsLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallMethodNameLengthExceeded:{name:"FunctionCallMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallZeroAttachedGas:{name:"FunctionCallZeroAttachedGas",subtypes:[],props:{}},InsufficientStake:{name:"InsufficientStake",subtypes:[],props:{account_id:"",minimum_stake:"",stake:""}},InvalidAccessKeyError:{name:"InvalidAccessKeyError",subtypes:["AccessKeyNotFound","ReceiverMismatch","MethodNameMismatch","RequiresFullAccess","NotEnoughAllowance","DepositWithFunctionCall"],props:{}},InvalidChain:{name:"InvalidChain",subtypes:[],props:{}},InvalidDataReceiverId:{name:"InvalidDataReceiverId",subtypes:[],props:{account_id:""}},InvalidNonce:{name:"InvalidNonce",subtypes:[],props:{ak_nonce:"",tx_nonce:""}},InvalidPredecessorId:{name:"InvalidPredecessorId",subtypes:[],props:{account_id:""}},InvalidReceiverId:{name:"InvalidReceiverId",subtypes:[],props:{account_id:""}},InvalidSignature:{name:"InvalidSignature",subtypes:[],props:{}},InvalidSignerId:{name:"InvalidSignerId",subtypes:[],props:{account_id:""}},InvalidTxError:{name:"InvalidTxError",subtypes:["InvalidAccessKeyError","InvalidSignerId","SignerDoesNotExist","InvalidNonce","InvalidReceiverId","InvalidSignature","NotEnoughBalance","LackBalanceForState","CostOverflow","InvalidChain","Expired","ActionsValidation"],props:{}},LackBalanceForState:{name:"LackBalanceForState",subtypes:[],props:{account_id:"",amount:""}},MethodNameMismatch:{name:"MethodNameMismatch",subtypes:[],props:{method_name:""}},NotEnoughAllowance:{name:"NotEnoughAllowance",subtypes:[],props:{account_id:"",allowance:"",cost:"",public_key:""}},NotEnoughBalance:{name:"NotEnoughBalance",subtypes:[],props:{balance:"",cost:"",signer_id:""}},OnlyImplicitAccountCreationAllowed:{name:"OnlyImplicitAccountCreationAllowed",subtypes:[],props:{account_id:""}},ReceiptValidationError:{name:"ReceiptValidationError",subtypes:["InvalidPredecessorId","InvalidReceiverId","InvalidSignerId","InvalidDataReceiverId","ReturnedValueLengthExceeded","NumberInputDataDependenciesExceeded","ActionsValidation"],props:{}},ReceiverMismatch:{name:"ReceiverMismatch",subtypes:[],props:{ak_receiver:"",tx_receiver:""}},RequiresFullAccess:{name:"RequiresFullAccess",subtypes:[],props:{}},SignerDoesNotExist:{name:"SignerDoesNotExist",subtypes:[],props:{signer_id:""}},TotalNumberOfActionsExceeded:{name:"TotalNumberOfActionsExceeded",subtypes:[],props:{limit:"",total_number_of_actions:""}},TotalPrepaidGasExceeded:{name:"TotalPrepaidGasExceeded",subtypes:[],props:{limit:"",total_prepaid_gas:""}},TriesToStake:{name:"TriesToStake",subtypes:[],props:{account_id:"",balance:"",locked:"",stake:""}},TriesToUnstake:{name:"TriesToUnstake",subtypes:[],props:{account_id:""}},TxExecutionError:{name:"TxExecutionError",subtypes:["ActionError","InvalidTxError"],props:{}},UnsuitableStakingKey:{name:"UnsuitableStakingKey",subtypes:[],props:{public_key:""}},Closed:{name:"Closed",subtypes:[],props:{}},InternalError:{name:"InternalError",subtypes:[],props:{}},ServerError:{name:"ServerError",subtypes:["TxExecutionError","Timeout","Closed","InternalError"],props:{}},Timeout:{name:"Timeout",subtypes:[],props:{}}}}}}),require_rpc_errors$1=__commonJS$1({"node_modules/@near-js/utils/lib/errors/rpc_errors.js"(v){var k=v&&v.__importDefault||function(ur){return ur&&ur.__esModule?ur:{default:ur}};Object.defineProperty(v,"__esModule",{value:!0}),v.getErrorTypeFromErrorMessage=v.formatError=v.parseResultError=v.parseRpcError=v.ServerError=void 0;var ie=require_lib2(),ae=k(require_mustache()),ce=require_format$1(),fe=k(require_error_messages$1()),le=k(require_rpc_error_schema$1()),ve={formatNear:()=>(ur,jr)=>(0,ce.formatNearAmount)(jr(ur))},pe=class extends ie.TypedError{};v.ServerError=pe;var ye=class extends pe{};function me(ur){const jr={},Mr=Br(ur,le.default.schema,jr,""),Lr=new pe(cr(Mr,jr),Mr);return Object.assign(Lr,jr),Lr}v.parseRpcError=me;function Ee(ur){const jr=me(ur.status.Failure),Mr=new ye;return Object.assign(Mr,jr),Mr.type=jr.type,Mr.message=jr.message,Mr.transaction_outcome=ur.transaction_outcome,Mr}v.parseResultError=Ee;function cr(ur,jr){return typeof fe.default[ur]=="string"?ae.default.render(fe.default[ur],Object.assign(Object.assign({},jr),ve)):JSON.stringify(jr)}v.formatError=cr;function Br(ur,jr,Mr,Lr){let Vr,Gr,Ur;for(const Qr in jr){if(Or(ur[Qr]))return ur[Qr];if(Pr(ur[Qr]))Vr=ur[Qr],Gr=jr[Qr],Ur=Qr;else if(Pr(ur.kind)&&Pr(ur.kind[Qr]))Vr=ur.kind[Qr],Gr=jr[Qr],Ur=Qr;else continue}if(Vr&&Gr){for(const Qr of Object.keys(Gr.props))Mr[Qr]=Vr[Qr];return Br(Vr,jr,Mr,Ur)}else return Mr.kind=ur,Lr}function $r(ur,jr){switch(!0){case/^account .*? does not exist while viewing$/.test(ur):return"AccountDoesNotExist";case/^Account .*? doesn't exist$/.test(ur):return"AccountDoesNotExist";case/^access key .*? does not exist while viewing$/.test(ur):return"AccessKeyDoesNotExist";case/wasm execution failed with error: FunctionCallError\(CompilationError\(CodeDoesNotExist/.test(ur):return"CodeDoesNotExist";case/Transaction nonce \d+ must be larger than nonce of the used access key \d+/.test(ur):return"InvalidNonce";default:return jr}}v.getErrorTypeFromErrorMessage=$r;function Pr(ur){return Object.prototype.toString.call(ur)==="[object Object]"}function Or(ur){return Object.prototype.toString.call(ur)==="[object String]"}}}),require_errors3=__commonJS$1({"node_modules/@near-js/utils/lib/errors/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.parseRpcError=v.parseResultError=v.getErrorTypeFromErrorMessage=v.formatError=v.ServerError=v.logWarning=void 0;var k=require_errors2();Object.defineProperty(v,"logWarning",{enumerable:!0,get:function(){return k.logWarning}});var ie=require_rpc_errors$1();Object.defineProperty(v,"ServerError",{enumerable:!0,get:function(){return ie.ServerError}}),Object.defineProperty(v,"formatError",{enumerable:!0,get:function(){return ie.formatError}}),Object.defineProperty(v,"getErrorTypeFromErrorMessage",{enumerable:!0,get:function(){return ie.getErrorTypeFromErrorMessage}}),Object.defineProperty(v,"parseResultError",{enumerable:!0,get:function(){return ie.parseResultError}}),Object.defineProperty(v,"parseRpcError",{enumerable:!0,get:function(){return ie.parseRpcError}})}}),require_logging=__commonJS$1({"node_modules/@near-js/utils/lib/logging.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.printTxOutcomeLogs=v.printTxOutcomeLogsAndFailures=void 0;var k=require_errors3(),ie=!!process.env.NEAR_NO_LOGS;function ae({contractId:fe,outcome:le}){if(ie)return;const ve=[le.transaction_outcome,...le.receipts_outcome].reduce((pe,ye)=>{const me=typeof ye.outcome.status=="object"&&typeof ye.outcome.status.Failure=="object";return ye.outcome.logs.length||me?pe.concat({receiptIds:ye.outcome.receipt_ids,logs:ye.outcome.logs,failure:typeof ye.outcome.status=="object"&&ye.outcome.status.Failure!==void 0?(0,k.parseRpcError)(ye.outcome.status.Failure):null}):pe},[]);for(const pe of ve)console.log(`Receipt${pe.receiptIds.length>1?"s":""}: ${pe.receiptIds.join(", ")}`),ce({contractId:fe,logs:pe.logs,prefix:" "}),pe.failure&&console.warn(` Failure [${fe}]: ${pe.failure}`)}v.printTxOutcomeLogsAndFailures=ae;function ce({contractId:fe,logs:le,prefix:ve=""}){if(!ie)for(const pe of le)console.log(`${ve}Log [${fe}]: ${pe}`)}v.printTxOutcomeLogs=ce}}),require_provider2$1=__commonJS$1({"node_modules/@near-js/utils/lib/provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getTransactionLastResult=void 0;function k(ie){if(typeof ie.status=="object"&&typeof ie.status.SuccessValue=="string"){const ae=Buffer.from(ie.status.SuccessValue,"base64").toString();try{return JSON.parse(ae)}catch{return ae}}return null}v.getTransactionLastResult=k}}),require_browser$3=__commonJS$1({"node_modules/depd/lib/browser/index.js"(v,k){k.exports=ie;function ie(fe){if(!fe)throw new TypeError("argument namespace is required");function le(ve){}return le._file=void 0,le._ignored=!0,le._namespace=fe,le._traced=!1,le._warned=Object.create(null),le.function=ae,le.property=ce,le}function ae(fe,le){if(typeof fe!="function")throw new TypeError("argument fn must be a function");return fe}function ce(fe,le,ve){if(!fe||typeof fe!="object"&&typeof fe!="function")throw new TypeError("argument obj must be object");var pe=Object.getOwnPropertyDescriptor(fe,le);if(!pe)throw new TypeError("must call property on owner object");if(!pe.configurable)throw new TypeError("property must be configurable")}}}),require_validators$1=__commonJS$1({"node_modules/@near-js/utils/lib/validators.js"(v){var k=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.diffEpochValidators=v.findSeatPrice=void 0;var ie=k(require_bn$1()),ae=k(require_browser$3());function ce(pe,ye,me,Ee){return Ee&&Ee<49?fe(pe,ye):(me||((0,ae.default)("findSeatPrice(validators, maxNumberOfSeats)")("`use `findSeatPrice(validators, maxNumberOfSeats, minimumStakeRatio)` instead"),me=[1,6250]),le(pe,ye,me))}v.findSeatPrice=ce;function fe(pe,ye){const me=pe.map(Pr=>new ie.default(Pr.stake,10)).sort((Pr,Or)=>Pr.cmp(Or)),Ee=new ie.default(ye),cr=me.reduce((Pr,Or)=>Pr.add(Or));if(cr.lt(Ee))throw new Error("Stakes are below seats");let Br=new ie.default(1),$r=cr.add(new ie.default(1));for(;!Br.eq($r.sub(new ie.default(1)));){const Pr=Br.add($r).div(new ie.default(2));let Or=!1,ur=new ie.default(0);for(let jr=0;jrnew ie.default(Br.stake,10)).sort((Br,$r)=>Br.cmp($r)),cr=Ee.reduce((Br,$r)=>Br.add($r));return pe.lengthme.set(cr.account_id,cr));const Ee=new Set(ye.map(cr=>cr.account_id));return{newValidators:ye.filter(cr=>!me.has(cr.account_id)),removedValidators:pe.filter(cr=>!Ee.has(cr.account_id)),changedValidators:ye.filter(cr=>me.has(cr.account_id)&&me.get(cr.account_id).stake!=cr.stake).map(cr=>({current:me.get(cr.account_id),next:cr}))}}v.diffEpochValidators=ve}}),require_lib6=__commonJS$1({"node_modules/@near-js/utils/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ae,ce,fe,le){le===void 0&&(le=fe);var ve=Object.getOwnPropertyDescriptor(ce,fe);(!ve||("get"in ve?!ce.__esModule:ve.writable||ve.configurable))&&(ve={enumerable:!0,get:function(){return ce[fe]}}),Object.defineProperty(ae,le,ve)}:function(ae,ce,fe,le){le===void 0&&(le=fe),ae[le]=ce[fe]}),ie=v&&v.__exportStar||function(ae,ce){for(var fe in ae)fe!=="default"&&!Object.prototype.hasOwnProperty.call(ce,fe)&&k(ce,ae,fe)};Object.defineProperty(v,"__esModule",{value:!0}),ie(require_constants2$1(),v),ie(require_errors3(),v),ie(require_format$1(),v),ie(require_logging(),v),ie(require_provider2$1(),v),ie(require_validators$1(),v)}}),require_exponential_backoff$1=__commonJS$1({"node_modules/@near-js/providers/lib/exponential-backoff.js"(v){var k=v&&v.__awaiter||function(ce,fe,le,ve){function pe(ye){return ye instanceof le?ye:new le(function(me){me(ye)})}return new(le||(le=Promise))(function(ye,me){function Ee($r){try{Br(ve.next($r))}catch(Pr){me(Pr)}}function cr($r){try{Br(ve.throw($r))}catch(Pr){me(Pr)}}function Br($r){$r.done?ye($r.value):pe($r.value).then(Ee,cr)}Br((ve=ve.apply(ce,fe||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.exponentialBackoff=void 0;function ie(ce,fe,le,ve){return k(this,void 0,void 0,function*(){let pe=ce;for(let ye=0;yesetTimeout(fe,ce))}}}),require_actions$1=__commonJS$1({"node_modules/@near-js/transactions/lib/actions.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Action=v.SignedDelegate=v.DeleteAccount=v.DeleteKey=v.AddKey=v.Stake=v.Transfer=v.FunctionCall=v.DeployContract=v.CreateAccount=v.IAction=v.AccessKey=v.AccessKeyPermission=v.FullAccessPermission=v.FunctionCallPermission=void 0;var k=require_lib2(),ie=class{constructor(jr){if(Object.keys(jr).length!==1)throw new Error("Enum can only take single value");Object.keys(jr).map(Mr=>{this[Mr]=jr[Mr],this.enum=Mr})}},ae=class extends k.Assignable{};v.FunctionCallPermission=ae;var ce=class extends k.Assignable{};v.FullAccessPermission=ce;var fe=class extends ie{};v.AccessKeyPermission=fe;var le=class extends k.Assignable{};v.AccessKey=le;var ve=class extends k.Assignable{};v.IAction=ve;var pe=class extends ve{};v.CreateAccount=pe;var ye=class extends ve{};v.DeployContract=ye;var me=class extends ve{};v.FunctionCall=me;var Ee=class extends ve{};v.Transfer=Ee;var cr=class extends ve{};v.Stake=cr;var Br=class extends ve{};v.AddKey=Br;var $r=class extends ve{};v.DeleteKey=$r;var Pr=class extends ve{};v.DeleteAccount=Pr;var Or=class extends ve{};v.SignedDelegate=Or;var ur=class extends ie{};v.Action=ur}}),require_action_creators=__commonJS$1({"node_modules/@near-js/transactions/lib/action_creators.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.actionCreators=v.stringifyJsonOrBytes=void 0;var k=require_actions$1();function ie(){return new k.AccessKey({permission:new k.AccessKeyPermission({fullAccess:new k.FullAccessPermission({})})})}function ae($r,Pr,Or){return new k.AccessKey({permission:new k.AccessKeyPermission({functionCall:new k.FunctionCallPermission({receiverId:$r,allowance:Or,methodNames:Pr})})})}function ce(){return new k.Action({createAccount:new k.CreateAccount({})})}function fe($r){return new k.Action({deployContract:new k.DeployContract({code:$r})})}function le($r){return $r.byteLength!==void 0&&$r.byteLength===$r.length?$r:Buffer.from(JSON.stringify($r))}v.stringifyJsonOrBytes=le;function ve($r,Pr,Or,ur,jr=le,Mr=!1){return Mr?new k.Action({functionCall:new k.FunctionCall({methodName:$r,args:Pr,gas:Or,deposit:ur})}):new k.Action({functionCall:new k.FunctionCall({methodName:$r,args:jr(Pr),gas:Or,deposit:ur})})}function pe($r){return new k.Action({transfer:new k.Transfer({deposit:$r})})}function ye($r,Pr){return new k.Action({stake:new k.Stake({stake:$r,publicKey:Pr})})}function me($r,Pr){return new k.Action({addKey:new k.AddKey({publicKey:$r,accessKey:Pr})})}function Ee($r){return new k.Action({deleteKey:new k.DeleteKey({publicKey:$r})})}function cr($r){return new k.Action({deleteAccount:new k.DeleteAccount({beneficiaryId:$r})})}function Br({delegateAction:$r,signature:Pr}){return new k.Action({signedDelegate:new k.SignedDelegate({delegateAction:$r,signature:Pr})})}v.actionCreators={addKey:me,createAccount:ce,deleteAccount:cr,deleteKey:Ee,deployContract:fe,fullAccessKey:ie,functionCall:ve,functionCallAccessKey:ae,signedDelegate:Br,stake:ye,transfer:pe}}}),require_delegate$1=__commonJS$1({"node_modules/@near-js/transactions/lib/delegate.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.buildDelegateAction=v.DelegateAction=void 0;var k=require_lib2(),ie=require_action_creators(),{addKey:ae,createAccount:ce,deleteAccount:fe,deleteKey:le,deployContract:ve,functionCall:pe,stake:ye,transfer:me}=ie.actionCreators,Ee=class extends k.Assignable{};v.DelegateAction=Ee;function cr({actions:Br,maxBlockHeight:$r,nonce:Pr,publicKey:Or,receiverId:ur,senderId:jr}){return new Ee({senderId:jr,receiverId:ur,actions:Br.map(Mr=>{if(!Mr.type&&!Mr.params)return Mr;switch(Mr.type){case"AddKey":{const{publicKey:Lr,accessKey:Vr}=Mr.params;return ae(Lr,Vr)}case"CreateAccount":return ce(Mr.params.createAccount);case"DeleteAccount":return fe(Mr.params.deleteAccount);case"DeleteKey":return le(Mr.params.publicKey);case"DeployContract":return ve(Mr.params.code);case"FunctionCall":{const{methodName:Lr,args:Vr,gas:Gr,deposit:Ur}=Mr.params;return pe(Lr,Vr,Gr,Ur)}case"Stake":return ye(Mr.params.stake,Mr.params.publicKey);case"Transfer":{const{deposit:Lr}=Mr.params;return me(Lr)}}throw new Error("Unrecognized action")}),nonce:Pr,maxBlockHeight:$r,publicKey:Or})}v.buildDelegateAction=cr}}),require_prefix=__commonJS$1({"node_modules/@near-js/transactions/lib/prefix.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.DelegateActionPrefix=void 0;var k=require_lib2(),ie=Math.pow(2,30),ae={MetaTransactions:366},ce=class extends k.Assignable{},fe=class extends ce{constructor(ve){super({prefix:ie+ve})}},le=class extends fe{constructor(){super(ae.MetaTransactions)}};v.DelegateActionPrefix=le}}),require_signature=__commonJS$1({"node_modules/@near-js/transactions/lib/signature.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signature=void 0;var k=require_lib2(),ie=class extends k.Assignable{};v.Signature=ie}}),require_schema=__commonJS$1({"node_modules/@near-js/transactions/lib/schema.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.SCHEMA=v.SignedTransaction=v.Transaction=v.decodeSignedTransaction=v.decodeTransaction=v.encodeTransaction=v.encodeSignedDelegate=v.encodeDelegateAction=void 0;var k=require_lib3(),ie=require_lib2(),ae=require_lib(),ce=require_actions$1(),fe=require_delegate$1(),le=require_prefix(),ve=require_signature();function pe(Pr){return new Uint8Array([...(0,ae.serialize)(v.SCHEMA,new le.DelegateActionPrefix),...(0,ae.serialize)(v.SCHEMA,Pr)])}v.encodeDelegateAction=pe;function ye(Pr){return(0,ae.serialize)(v.SCHEMA,Pr)}v.encodeSignedDelegate=ye;function me(Pr){return(0,ae.serialize)(v.SCHEMA,Pr)}v.encodeTransaction=me;function Ee(Pr){return(0,ae.deserialize)(v.SCHEMA,Br,Pr)}v.decodeTransaction=Ee;function cr(Pr){return(0,ae.deserialize)(v.SCHEMA,$r,Pr)}v.decodeSignedTransaction=cr;var Br=class extends ie.Assignable{encode(){return me(this)}static decode(Pr){return Ee(Pr)}};v.Transaction=Br;var $r=class extends ie.Assignable{encode(){return me(this)}static decode(Pr){return cr(Pr)}};v.SignedTransaction=$r,v.SCHEMA=new Map([[ve.Signature,{kind:"struct",fields:[["keyType","u8"],["data",[64]]]}],[$r,{kind:"struct",fields:[["transaction",Br],["signature",ve.Signature]]}],[Br,{kind:"struct",fields:[["signerId","string"],["publicKey",k.PublicKey],["nonce","u64"],["receiverId","string"],["blockHash",[32]],["actions",[ce.Action]]]}],[k.PublicKey,{kind:"struct",fields:[["keyType","u8"],["data",[32]]]}],[ce.AccessKey,{kind:"struct",fields:[["nonce","u64"],["permission",ce.AccessKeyPermission]]}],[ce.AccessKeyPermission,{kind:"enum",field:"enum",values:[["functionCall",ce.FunctionCallPermission],["fullAccess",ce.FullAccessPermission]]}],[ce.FunctionCallPermission,{kind:"struct",fields:[["allowance",{kind:"option",type:"u128"}],["receiverId","string"],["methodNames",["string"]]]}],[ce.FullAccessPermission,{kind:"struct",fields:[]}],[ce.Action,{kind:"enum",field:"enum",values:[["createAccount",ce.CreateAccount],["deployContract",ce.DeployContract],["functionCall",ce.FunctionCall],["transfer",ce.Transfer],["stake",ce.Stake],["addKey",ce.AddKey],["deleteKey",ce.DeleteKey],["deleteAccount",ce.DeleteAccount],["signedDelegate",ce.SignedDelegate]]}],[ce.CreateAccount,{kind:"struct",fields:[]}],[ce.DeployContract,{kind:"struct",fields:[["code",["u8"]]]}],[ce.FunctionCall,{kind:"struct",fields:[["methodName","string"],["args",["u8"]],["gas","u64"],["deposit","u128"]]}],[ce.Transfer,{kind:"struct",fields:[["deposit","u128"]]}],[ce.Stake,{kind:"struct",fields:[["stake","u128"],["publicKey",k.PublicKey]]}],[ce.AddKey,{kind:"struct",fields:[["publicKey",k.PublicKey],["accessKey",ce.AccessKey]]}],[ce.DeleteKey,{kind:"struct",fields:[["publicKey",k.PublicKey]]}],[ce.DeleteAccount,{kind:"struct",fields:[["beneficiaryId","string"]]}],[fe.DelegateAction,{kind:"struct",fields:[["senderId","string"],["receiverId","string"],["actions",[ce.Action]],["nonce","u64"],["maxBlockHeight","u64"],["publicKey",k.PublicKey]]}],[le.DelegateActionPrefix,{kind:"struct",fields:[["prefix","u32"]]}],[ce.SignedDelegate,{kind:"struct",fields:[["delegateAction",fe.DelegateAction],["signature",ve.Signature]]}]])}}),require_create_transaction=__commonJS$1({"node_modules/@near-js/transactions/lib/create_transaction.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.createTransaction=void 0;var k=require_schema();function ie(ae,ce,fe,le,ve,pe){return new k.Transaction({signerId:ae,publicKey:ce,nonce:le,receiverId:fe,actions:ve,blockHash:pe})}v.createTransaction=ie}}),require_sign=__commonJS$1({"node_modules/@near-js/transactions/lib/sign.js"(v){var k=v&&v.__awaiter||function(Ee,cr,Br,$r){function Pr(Or){return Or instanceof Br?Or:new Br(function(ur){ur(Or)})}return new(Br||(Br=Promise))(function(Or,ur){function jr(Vr){try{Lr($r.next(Vr))}catch(Gr){ur(Gr)}}function Mr(Vr){try{Lr($r.throw(Vr))}catch(Gr){ur(Gr)}}function Lr(Vr){Vr.done?Or(Vr.value):Pr(Vr.value).then(jr,Mr)}Lr(($r=$r.apply(Ee,cr||[])).next())})},ie=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.signDelegateAction=v.signTransaction=void 0;var ae=ie(require_sha256$2()),ce=require_actions$1(),fe=require_create_transaction(),le=require_schema(),ve=require_signature();function pe(Ee,cr,Br,$r){return k(this,void 0,void 0,function*(){const Pr=(0,le.encodeTransaction)(Ee),Or=new Uint8Array(ae.default.sha256.array(Pr)),ur=yield cr.signMessage(Pr,Br,$r),jr=new le.SignedTransaction({transaction:Ee,signature:new ve.Signature({keyType:Ee.publicKey.keyType,data:ur.signature})});return[Or,jr]})}function ye(...Ee){return k(this,void 0,void 0,function*(){if(Ee[0].constructor===le.Transaction){const[cr,Br,$r,Pr]=Ee;return pe(cr,Br,$r,Pr)}else{const[cr,Br,$r,Pr,Or,ur,jr]=Ee,Mr=yield Or.getPublicKey(ur,jr),Lr=(0,fe.createTransaction)(ur,Mr,cr,Br,$r,Pr);return pe(Lr,Or,ur,jr)}})}v.signTransaction=ye;function me({delegateAction:Ee,signer:cr}){return k(this,void 0,void 0,function*(){const Br=(0,le.encodeDelegateAction)(Ee),$r=yield cr.sign(Br),Pr=new ce.SignedDelegate({delegateAction:Ee,signature:new ve.Signature({keyType:Ee.publicKey.keyType,data:$r})});return{hash:new Uint8Array(ae.default.sha256.array(Br)),signedDelegateAction:Pr}})}v.signDelegateAction=me}}),require_lib7=__commonJS$1({"node_modules/@near-js/transactions/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ae,ce,fe,le){le===void 0&&(le=fe);var ve=Object.getOwnPropertyDescriptor(ce,fe);(!ve||("get"in ve?!ce.__esModule:ve.writable||ve.configurable))&&(ve={enumerable:!0,get:function(){return ce[fe]}}),Object.defineProperty(ae,le,ve)}:function(ae,ce,fe,le){le===void 0&&(le=fe),ae[le]=ce[fe]}),ie=v&&v.__exportStar||function(ae,ce){for(var fe in ae)fe!=="default"&&!Object.prototype.hasOwnProperty.call(ce,fe)&&k(ce,ae,fe)};Object.defineProperty(v,"__esModule",{value:!0}),ie(require_action_creators(),v),ie(require_actions$1(),v),ie(require_create_transaction(),v),ie(require_delegate$1(),v),ie(require_schema(),v),ie(require_sign(),v),ie(require_signature(),v)}}),require_provider3=__commonJS$1({"node_modules/@near-js/providers/lib/provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Provider=void 0;var k=class{};v.Provider=k}}),require_browser2$3=__commonJS$1({"node_modules/http-errors/node_modules/depd/lib/browser/index.js"(v,k){k.exports=ie;function ie(fe){if(!fe)throw new TypeError("argument namespace is required");function le(ve){}return le._file=void 0,le._ignored=!0,le._namespace=fe,le._traced=!1,le._warned=Object.create(null),le.function=ae,le.property=ce,le}function ae(fe,le){if(typeof fe!="function")throw new TypeError("argument fn must be a function");return fe}function ce(fe,le,ve){if(!fe||typeof fe!="object"&&typeof fe!="function")throw new TypeError("argument obj must be object");var pe=Object.getOwnPropertyDescriptor(fe,le);if(!pe)throw new TypeError("must call property on owner object");if(!pe.configurable)throw new TypeError("property must be configurable")}}}),require_setprototypeof=__commonJS$1({"node_modules/setprototypeof/index.js"(v,k){k.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?ie:ae);function ie(ce,fe){return ce.__proto__=fe,ce}function ae(ce,fe){for(var le in fe)Object.prototype.hasOwnProperty.call(ce,le)||(ce[le]=fe[le]);return ce}}}),require_codes=__commonJS$1({"node_modules/statuses/codes.json"(v,k){k.exports={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"(Unused)",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}}}),require_statuses=__commonJS$1({"node_modules/statuses/index.js"(v,k){var ie=require_codes();k.exports=ce,ce.STATUS_CODES=ie,ce.codes=ae(ce,ie),ce.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},ce.empty={204:!0,205:!0,304:!0},ce.retry={502:!0,503:!0,504:!0};function ae(fe,le){var ve=[];return Object.keys(le).forEach(function(ye){var me=le[ye],Ee=Number(ye);fe[Ee]=me,fe[me]=Ee,fe[me.toLowerCase()]=Ee,ve.push(Ee)}),ve}function ce(fe){if(typeof fe=="number"){if(!ce[fe])throw new Error("invalid status code: "+fe);return fe}if(typeof fe!="string")throw new TypeError("code must be a number or string");var le=parseInt(fe,10);if(!isNaN(le)){if(!ce[le])throw new Error("invalid status code: "+le);return le}if(le=ce[fe.toLowerCase()],!le)throw new Error('invalid status message: "'+fe+'"');return le}}}),require_inherits_browser=__commonJS$1({"node_modules/inherits/inherits_browser.js"(v,k){typeof Object.create=="function"?k.exports=function(ae,ce){ce&&(ae.super_=ce,ae.prototype=Object.create(ce.prototype,{constructor:{value:ae,enumerable:!1,writable:!0,configurable:!0}}))}:k.exports=function(ae,ce){if(ce){ae.super_=ce;var fe=function(){};fe.prototype=ce.prototype,ae.prototype=new fe,ae.prototype.constructor=ae}}}}),require_toidentifier=__commonJS$1({"node_modules/toidentifier/index.js"(v,k){k.exports=ie;function ie(ae){return ae.split(" ").map(function(ce){return ce.slice(0,1).toUpperCase()+ce.slice(1)}).join("").replace(/[^ _0-9a-z]/gi,"")}}}),require_http_errors=__commonJS$1({"node_modules/http-errors/index.js"(v,k){var ie=require_browser2$3()("http-errors"),ae=require_setprototypeof(),ce=require_statuses(),fe=require_inherits_browser(),le=require_toidentifier();k.exports=pe,k.exports.HttpError=ye(),k.exports.isHttpError=Ee(k.exports.HttpError),$r(k.exports,ce.codes,k.exports.HttpError);function ve(Or){return Number(String(Or).charAt(0)+"00")}function pe(){for(var Or,ur,jr=500,Mr={},Lr=0;Lr=600)&&ie("non-error status code; use only 4xx or 5xx status codes"),(typeof jr!="number"||!ce[jr]&&(jr<400||jr>=600))&&(jr=500);var Gr=pe[jr]||pe[ve(jr)];Or||(Or=Gr?new Gr(ur):new Error(ur||ce[jr]),Error.captureStackTrace(Or,pe)),(!Gr||!(Or instanceof Gr)||Or.status!==jr)&&(Or.expose=jr<500,Or.status=Or.statusCode=jr);for(var Ur in Mr)Ur!=="status"&&Ur!=="statusCode"&&(Or[Ur]=Mr[Ur]);return Or}function ye(){function Or(){throw new TypeError("cannot construct abstract class")}return fe(Or,Error),Or}function me(Or,ur,jr){var Mr=Pr(ur);function Lr(Vr){var Gr=Vr!=null?Vr:ce[jr],Ur=new Error(Gr);return Error.captureStackTrace(Ur,Lr),ae(Ur,Lr.prototype),Object.defineProperty(Ur,"message",{enumerable:!0,configurable:!0,value:Gr,writable:!0}),Object.defineProperty(Ur,"name",{enumerable:!1,configurable:!0,value:Mr,writable:!0}),Ur}return fe(Lr,Or),Br(Lr,Mr),Lr.prototype.status=jr,Lr.prototype.statusCode=jr,Lr.prototype.expose=!0,Lr}function Ee(Or){return function(jr){return!jr||typeof jr!="object"?!1:jr instanceof Or?!0:jr instanceof Error&&typeof jr.expose=="boolean"&&typeof jr.statusCode=="number"&&jr.status===jr.statusCode}}function cr(Or,ur,jr){var Mr=Pr(ur);function Lr(Vr){var Gr=Vr!=null?Vr:ce[jr],Ur=new Error(Gr);return Error.captureStackTrace(Ur,Lr),ae(Ur,Lr.prototype),Object.defineProperty(Ur,"message",{enumerable:!0,configurable:!0,value:Gr,writable:!0}),Object.defineProperty(Ur,"name",{enumerable:!1,configurable:!0,value:Mr,writable:!0}),Ur}return fe(Lr,Or),Br(Lr,Mr),Lr.prototype.status=jr,Lr.prototype.statusCode=jr,Lr.prototype.expose=!1,Lr}function Br(Or,ur){var jr=Object.getOwnPropertyDescriptor(Or,"name");jr&&jr.configurable&&(jr.value=ur,Object.defineProperty(Or,"name",jr))}function $r(Or,ur,jr){ur.forEach(function(Lr){var Vr,Gr=le(ce[Lr]);switch(ve(Lr)){case 400:Vr=me(jr,Gr,Lr);break;case 500:Vr=cr(jr,Gr,Lr);break}Vr&&(Or[Lr]=Vr,Or[Gr]=Vr)}),Or["I'mateapot"]=ie.function(Or.ImATeapot,`"I'mateapot"; use "ImATeapot" instead`)}function Pr(Or){return Or.substr(-5)!=="Error"?Or+"Error":Or}}}),require_browser3$3=__commonJS$1({"node_modules/node-fetch/browser.js"(v,k){var ie=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof ae<"u")return ae;throw new Error("unable to locate globalThis object")},ae=ie();k.exports=v=ae.fetch,ae.fetch&&(v.default=ae.fetch.bind(ae)),v.Headers=ae.Headers,v.Request=ae.Request,v.Response=ae.Response}}),require_http=__commonJS$1({"browser-external:http"(v,k){k.exports={}}}),require_https=__commonJS$1({"browser-external:https"(v,k){k.exports={}}}),require_fetch=__commonJS$1({"node_modules/@near-js/providers/lib/fetch.js"(v){var k=v&&v.__importDefault||function(ye){return ye&&ye.__esModule?ye:{default:ye}};Object.defineProperty(v,"__esModule",{value:!0});var ie=k(require_browser3$3()),ae=k(require_http()),ce=k(require_https()),fe=new ae.default.Agent({keepAlive:!0}),le=new ce.default.Agent({keepAlive:!0});function ve(ye){return ye.protocol==="http:"?fe:le}function pe(ye,me){return(0,ie.default)(ye,Object.assign({agent:ve(new URL(ye.toString()))},me))}v.default=pe}}),require_fetch_json=__commonJS$1({"node_modules/@near-js/providers/lib/fetch_json.js"(v){var k=v&&v.__createBinding||(Object.create?function($r,Pr,Or,ur){ur===void 0&&(ur=Or);var jr=Object.getOwnPropertyDescriptor(Pr,Or);(!jr||("get"in jr?!Pr.__esModule:jr.writable||jr.configurable))&&(jr={enumerable:!0,get:function(){return Pr[Or]}}),Object.defineProperty($r,ur,jr)}:function($r,Pr,Or,ur){ur===void 0&&(ur=Or),$r[ur]=Pr[Or]}),ie=v&&v.__setModuleDefault||(Object.create?function($r,Pr){Object.defineProperty($r,"default",{enumerable:!0,value:Pr})}:function($r,Pr){$r.default=Pr}),ae=v&&v.__importStar||function($r){if($r&&$r.__esModule)return $r;var Pr={};if($r!=null)for(var Or in $r)Or!=="default"&&Object.prototype.hasOwnProperty.call($r,Or)&&k(Pr,$r,Or);return ie(Pr,$r),Pr},ce=v&&v.__awaiter||function($r,Pr,Or,ur){function jr(Mr){return Mr instanceof Or?Mr:new Or(function(Lr){Lr(Mr)})}return new(Or||(Or=Promise))(function(Mr,Lr){function Vr(Qr){try{Ur(ur.next(Qr))}catch(vn){Lr(vn)}}function Gr(Qr){try{Ur(ur.throw(Qr))}catch(vn){Lr(vn)}}function Ur(Qr){Qr.done?Mr(Qr.value):jr(Qr.value).then(Vr,Gr)}Ur((ur=ur.apply($r,Pr||[])).next())})},fe=v&&v.__importDefault||function($r){return $r&&$r.__esModule?$r:{default:$r}};Object.defineProperty(v,"__esModule",{value:!0}),v.fetchJson=void 0;var le=require_lib2(),ve=fe(require_http_errors()),pe=require_exponential_backoff$1(),ye=1e3,me=1.5,Ee=10,cr=(...$r)=>!process.env.NEAR_NO_LOGS&&console.warn(...$r);function Br($r,Pr){return ce(this,void 0,void 0,function*(){let Or={url:null};typeof $r=="string"?Or.url=$r:Or=$r;const ur=yield(0,pe.exponentialBackoff)(ye,Ee,me,()=>ce(this,void 0,void 0,function*(){try{globalThis.fetch||(globalThis.fetch=(yield Promise.resolve().then(()=>ae(require_fetch()))).default);const jr=yield globalThis.fetch(Or.url,{method:Pr?"POST":"GET",body:Pr||void 0,headers:Object.assign(Object.assign({},Or.headers),{"Content-Type":"application/json"})});if(!jr.ok){if(jr.status===503)return cr(`Retrying HTTP request for ${Or.url} as it's not available now`),null;throw(0,ve.default)(jr.status,yield jr.text())}return jr}catch(jr){if(jr.toString().includes("FetchError")||jr.toString().includes("Failed to fetch"))return cr(`Retrying HTTP request for ${Or.url} because of error: ${jr}`),null;throw jr}}));if(!ur)throw new le.TypedError(`Exceeded ${Ee} attempts for ${Or.url}.`,"RetriesExceeded");return yield ur.json()})}v.fetchJson=Br}}),require_json_rpc_provider$1=__commonJS$1({"node_modules/@near-js/providers/lib/json-rpc-provider.js"(v){var k=v&&v.__awaiter||function(Pr,Or,ur,jr){function Mr(Lr){return Lr instanceof ur?Lr:new ur(function(Vr){Vr(Lr)})}return new(ur||(ur=Promise))(function(Lr,Vr){function Gr(vn){try{Qr(jr.next(vn))}catch(Yt){Vr(Yt)}}function Ur(vn){try{Qr(jr.throw(vn))}catch(Yt){Vr(Yt)}}function Qr(vn){vn.done?Lr(vn.value):Mr(vn.value).then(Gr,Ur)}Qr((jr=jr.apply(Pr,Or||[])).next())})},ie=v&&v.__rest||function(Pr,Or){var ur={};for(var jr in Pr)Object.prototype.hasOwnProperty.call(Pr,jr)&&Or.indexOf(jr)<0&&(ur[jr]=Pr[jr]);if(Pr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mr=0,jr=Object.getOwnPropertySymbols(Pr);Mrk(this,void 0,void 0,function*(){try{const Mr={method:Pr,params:Or,id:Br++,jsonrpc:"2.0"},Lr=yield(0,ye.fetchJson)(this.connection,JSON.stringify(Mr));if(Lr.error){if(typeof Lr.error.data=="object")throw typeof Lr.error.data.error_message=="string"&&typeof Lr.error.data.error_type=="string"?new ce.TypedError(Lr.error.data.error_message,Lr.error.data.error_type):(0,ae.parseRpcError)(Lr.error.data);{const Vr=`[${Lr.error.code}] ${Lr.error.message}: ${Lr.error.data}`;throw Lr.error.data==="Timeout"||Vr.includes("Timeout error")||Vr.includes("query has timed out")?new ce.TypedError(Vr,"TimeoutError"):new ce.TypedError(Vr,(0,ae.getErrorTypeFromErrorMessage)(Lr.error.data,Lr.error.name))}}return Lr}catch(Mr){if(Mr.type==="TimeoutError")return process.env.NEAR_NO_LOGS||console.warn(`Retrying request to ${Pr} as it has timed out`,Or),null;throw Mr}})),{result:jr}=ur;if(typeof jr>"u")throw new ce.TypedError(`Exceeded ${me} attempts for request to ${Pr}.`,"RetriesExceeded");return jr})}};v.JsonRpcProvider=$r}}),require_lib8=__commonJS$1({"node_modules/@near-js/providers/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.fetchJson=v.Provider=v.JsonRpcProvider=v.exponentialBackoff=void 0;var k=require_exponential_backoff$1();Object.defineProperty(v,"exponentialBackoff",{enumerable:!0,get:function(){return k.exponentialBackoff}});var ie=require_json_rpc_provider$1();Object.defineProperty(v,"JsonRpcProvider",{enumerable:!0,get:function(){return ie.JsonRpcProvider}});var ae=require_provider3();Object.defineProperty(v,"Provider",{enumerable:!0,get:function(){return ae.Provider}});var ce=require_fetch_json();Object.defineProperty(v,"fetchJson",{enumerable:!0,get:function(){return ce.fetchJson}})}}),require_provider4=__commonJS$1({"node_modules/near-api-js/lib/providers/provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.FinalExecutionStatusBasic=v.ExecutionStatusBasic=v.IdType=v.Provider=v.getTransactionLastResult=void 0;var k=require_lib6();Object.defineProperty(v,"getTransactionLastResult",{enumerable:!0,get:function(){return k.getTransactionLastResult}});var ie=require_lib8();Object.defineProperty(v,"Provider",{enumerable:!0,get:function(){return ie.Provider}});var ae=require_lib2();Object.defineProperty(v,"IdType",{enumerable:!0,get:function(){return ae.IdType}}),Object.defineProperty(v,"ExecutionStatusBasic",{enumerable:!0,get:function(){return ae.ExecutionStatusBasic}}),Object.defineProperty(v,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return ae.FinalExecutionStatusBasic}})}}),require_json_rpc_provider2=__commonJS$1({"node_modules/near-api-js/lib/providers/json-rpc-provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.JsonRpcProvider=v.TypedError=v.ErrorContext=void 0;var k=require_lib2();Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return k.ErrorContext}}),Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return k.TypedError}});var ie=require_lib8();Object.defineProperty(v,"JsonRpcProvider",{enumerable:!0,get:function(){return ie.JsonRpcProvider}})}}),require_providers$1=__commonJS$1({"node_modules/near-api-js/lib/providers/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ErrorContext=v.TypedError=v.getTransactionLastResult=v.FinalExecutionStatusBasic=v.JsonRpcProvider=v.Provider=void 0;var k=require_provider4();Object.defineProperty(v,"Provider",{enumerable:!0,get:function(){return k.Provider}}),Object.defineProperty(v,"getTransactionLastResult",{enumerable:!0,get:function(){return k.getTransactionLastResult}}),Object.defineProperty(v,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return k.FinalExecutionStatusBasic}});var ie=require_json_rpc_provider2();Object.defineProperty(v,"JsonRpcProvider",{enumerable:!0,get:function(){return ie.JsonRpcProvider}}),Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return ie.TypedError}}),Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return ie.ErrorContext}})}}),require_key_pair2=__commonJS$1({"node_modules/near-api-js/lib/utils/key_pair.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.PublicKey=v.KeyType=v.KeyPairEd25519=v.KeyPair=void 0;var k=require_lib3();Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return k.KeyPair}}),Object.defineProperty(v,"KeyPairEd25519",{enumerable:!0,get:function(){return k.KeyPairEd25519}}),Object.defineProperty(v,"KeyType",{enumerable:!0,get:function(){return k.KeyType}}),Object.defineProperty(v,"PublicKey",{enumerable:!0,get:function(){return k.PublicKey}})}}),require_serialize$1=__commonJS$1({"node_modules/near-api-js/lib/utils/serialize.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.BinaryReader=v.BinaryWriter=v.BorshError=v.deserialize=v.serialize=v.base_decode=v.base_encode=void 0;var k=require_lib();Object.defineProperty(v,"base_encode",{enumerable:!0,get:function(){return k.baseEncode}}),Object.defineProperty(v,"base_decode",{enumerable:!0,get:function(){return k.baseDecode}}),Object.defineProperty(v,"serialize",{enumerable:!0,get:function(){return k.serialize}}),Object.defineProperty(v,"deserialize",{enumerable:!0,get:function(){return k.deserialize}}),Object.defineProperty(v,"BorshError",{enumerable:!0,get:function(){return k.BorshError}}),Object.defineProperty(v,"BinaryWriter",{enumerable:!0,get:function(){return k.BinaryWriter}}),Object.defineProperty(v,"BinaryReader",{enumerable:!0,get:function(){return k.BinaryReader}})}}),require_web$1=__commonJS$1({"node_modules/near-api-js/lib/utils/web.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.fetchJson=void 0;var k=require_lib8();Object.defineProperty(v,"fetchJson",{enumerable:!0,get:function(){return k.fetchJson}})}}),require_enums$1=__commonJS$1({"node_modules/near-api-js/lib/utils/enums.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Enum=v.Assignable=void 0;var k=require_lib2();Object.defineProperty(v,"Assignable",{enumerable:!0,get:function(){return k.Assignable}});var ie=class{constructor(ae){if(Object.keys(ae).length!==1)throw new Error("Enum can only take single value");Object.keys(ae).map(ce=>{this[ce]=ae[ce],this.enum=ce})}};v.Enum=ie}}),require_format2=__commonJS$1({"node_modules/near-api-js/lib/utils/format.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.parseNearAmount=v.formatNearAmount=v.NEAR_NOMINATION_EXP=v.NEAR_NOMINATION=void 0;var k=require_lib6();Object.defineProperty(v,"NEAR_NOMINATION",{enumerable:!0,get:function(){return k.NEAR_NOMINATION}}),Object.defineProperty(v,"NEAR_NOMINATION_EXP",{enumerable:!0,get:function(){return k.NEAR_NOMINATION_EXP}}),Object.defineProperty(v,"formatNearAmount",{enumerable:!0,get:function(){return k.formatNearAmount}}),Object.defineProperty(v,"parseNearAmount",{enumerable:!0,get:function(){return k.parseNearAmount}})}}),require_rpc_errors2=__commonJS$1({"node_modules/near-api-js/lib/utils/rpc_errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ServerError=v.getErrorTypeFromErrorMessage=v.formatError=v.parseResultError=v.parseRpcError=void 0;var k=require_lib6();Object.defineProperty(v,"parseRpcError",{enumerable:!0,get:function(){return k.parseRpcError}}),Object.defineProperty(v,"parseResultError",{enumerable:!0,get:function(){return k.parseResultError}}),Object.defineProperty(v,"formatError",{enumerable:!0,get:function(){return k.formatError}}),Object.defineProperty(v,"getErrorTypeFromErrorMessage",{enumerable:!0,get:function(){return k.getErrorTypeFromErrorMessage}}),Object.defineProperty(v,"ServerError",{enumerable:!0,get:function(){return k.ServerError}})}}),require_account$2=__commonJS$1({"node_modules/@near-js/accounts/lib/account.js"(v){var k=v&&v.__awaiter||function(Yt,fn,Xt,Qt){function Kr(be){return be instanceof Xt?be:new Xt(function(kr){kr(be)})}return new(Xt||(Xt=Promise))(function(be,kr){function xr(Xr){try{Jt(Qt.next(Xr))}catch(zr){kr(zr)}}function Wr(Xr){try{Jt(Qt.throw(Xr))}catch(zr){kr(zr)}}function Jt(Xr){Xr.done?be(Xr.value):Kr(Xr.value).then(xr,Wr)}Jt((Qt=Qt.apply(Yt,fn||[])).next())})},ie=v&&v.__importDefault||function(Yt){return Yt&&Yt.__esModule?Yt:{default:Yt}};Object.defineProperty(v,"__esModule",{value:!0}),v.Account=void 0;var ae=require_lib3(),ce=require_lib8(),fe=require_lib7(),le=require_lib2(),ve=require_lib6(),pe=ie(require_bn$1()),ye=require_lib(),{addKey:me,createAccount:Ee,deleteAccount:cr,deleteKey:Br,deployContract:$r,fullAccessKey:Pr,functionCall:Or,functionCallAccessKey:ur,stake:jr,transfer:Mr}=fe.actionCreators,Lr=12,Vr=500,Gr=1.5;function Ur(Yt){return JSON.parse(Buffer.from(Yt).toString())}function Qr(Yt){return Buffer.from(JSON.stringify(Yt))}var vn=class{constructor(Yt,fn){this.accessKeyByPublicKeyCache={},this.connection=Yt,this.accountId=fn}state(){return k(this,void 0,void 0,function*(){return this.connection.provider.query({request_type:"view_account",account_id:this.accountId,finality:"optimistic"})})}signTransaction(Yt,fn){return k(this,void 0,void 0,function*(){const Xt=yield this.findAccessKey(Yt,fn);if(!Xt)throw new le.TypedError(`Can not sign transactions for account ${this.accountId} on network ${this.connection.networkId}, no matching key pair exists for this account`,"KeyNotFound");const{accessKey:Qt}=Xt,be=(yield this.connection.provider.block({finality:"final"})).header.hash,kr=Qt.nonce.add(new pe.default(1));return yield(0,fe.signTransaction)(Yt,kr,fn,(0,ye.baseDecode)(be),this.connection.signer,this.accountId,this.connection.networkId)})}signAndSendTransaction({receiverId:Yt,actions:fn,returnError:Xt}){return k(this,void 0,void 0,function*(){let Qt,Kr;const be=yield(0,ce.exponentialBackoff)(Vr,Lr,Gr,()=>k(this,void 0,void 0,function*(){[Qt,Kr]=yield this.signTransaction(Yt,fn);const kr=Kr.transaction.publicKey;try{return yield this.connection.provider.sendTransaction(Kr)}catch(xr){if(xr.type==="InvalidNonce")return(0,ve.logWarning)(`Retrying transaction ${Yt}:${(0,ye.baseEncode)(Qt)} with new nonce.`),delete this.accessKeyByPublicKeyCache[kr.toString()],null;if(xr.type==="Expired")return(0,ve.logWarning)(`Retrying transaction ${Yt}:${(0,ye.baseEncode)(Qt)} due to expired block hash`),null;throw xr.context=new le.ErrorContext((0,ye.baseEncode)(Qt)),xr}}));if(!be)throw new le.TypedError("nonce retries exceeded for transaction. This usually means there are too many parallel requests with the same access key.","RetriesExceeded");if((0,ve.printTxOutcomeLogsAndFailures)({contractId:Kr.transaction.receiverId,outcome:be}),!Xt&&typeof be.status=="object"&&typeof be.status.Failure=="object"&&be.status.Failure!==null)throw be.status.Failure.error_message&&be.status.Failure.error_type?new le.TypedError(`Transaction ${be.transaction_outcome.id} failed. ${be.status.Failure.error_message}`,be.status.Failure.error_type):(0,ve.parseResultError)(be);return be})}findAccessKey(Yt,fn){return k(this,void 0,void 0,function*(){const Xt=yield this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);if(!Xt)throw new le.TypedError(`no matching key pair found in ${this.connection.signer}`,"PublicKeyNotFound");const Qt=this.accessKeyByPublicKeyCache[Xt.toString()];if(Qt!==void 0)return{publicKey:Xt,accessKey:Qt};try{const Kr=yield this.connection.provider.query({request_type:"view_access_key",account_id:this.accountId,public_key:Xt.toString(),finality:"optimistic"}),be=Object.assign(Object.assign({},Kr),{nonce:new pe.default(Kr.nonce)});return this.accessKeyByPublicKeyCache[Xt.toString()]?{publicKey:Xt,accessKey:this.accessKeyByPublicKeyCache[Xt.toString()]}:(this.accessKeyByPublicKeyCache[Xt.toString()]=be,{publicKey:Xt,accessKey:be})}catch(Kr){if(Kr.type=="AccessKeyDoesNotExist")return null;throw Kr}})}createAndDeployContract(Yt,fn,Xt,Qt){return k(this,void 0,void 0,function*(){const Kr=Pr();return yield this.signAndSendTransaction({receiverId:Yt,actions:[Ee(),Mr(Qt),me(ae.PublicKey.from(fn),Kr),$r(Xt)]}),new vn(this.connection,Yt)})}sendMoney(Yt,fn){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:Yt,actions:[Mr(fn)]})})}createAccount(Yt,fn,Xt){return k(this,void 0,void 0,function*(){const Qt=Pr();return this.signAndSendTransaction({receiverId:Yt,actions:[Ee(),Mr(Xt),me(ae.PublicKey.from(fn),Qt)]})})}deleteAccount(Yt){return k(this,void 0,void 0,function*(){return process.env.NEAR_NO_LOGS||console.log("Deleting an account does not automatically transfer NFTs and FTs to the beneficiary address. Ensure to transfer assets before deleting."),this.signAndSendTransaction({receiverId:this.accountId,actions:[cr(Yt)]})})}deployContract(Yt){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:this.accountId,actions:[$r(Yt)]})})}encodeJSContractArgs(Yt,fn,Xt){return Buffer.concat([Buffer.from(Yt),Buffer.from([0]),Buffer.from(fn),Buffer.from([0]),Buffer.from(Xt)])}functionCall({contractId:Yt,methodName:fn,args:Xt={},gas:Qt=ve.DEFAULT_FUNCTION_CALL_GAS,attachedDeposit:Kr,walletMeta:be,walletCallbackUrl:kr,stringify:xr,jsContract:Wr}){return k(this,void 0,void 0,function*(){this.validateArgs(Xt);let Jt;if(Wr){const Xr=this.encodeJSContractArgs(Yt,fn,JSON.stringify(Xt));Jt=["call_js_contract",Xr,Qt,Kr,null,!0]}else{const Xr=xr===void 0?fe.stringifyJsonOrBytes:xr;Jt=[fn,Xt,Qt,Kr,Xr,!1]}return this.signAndSendTransaction({receiverId:Wr?this.connection.jsvmAccountId:Yt,actions:[Or.apply(void 0,Jt)],walletMeta:be,walletCallbackUrl:kr})})}addKey(Yt,fn,Xt,Qt){return k(this,void 0,void 0,function*(){Xt||(Xt=[]),Array.isArray(Xt)||(Xt=[Xt]);let Kr;return fn?Kr=ur(fn,Xt,Qt):Kr=Pr(),this.signAndSendTransaction({receiverId:this.accountId,actions:[me(ae.PublicKey.from(Yt),Kr)]})})}deleteKey(Yt){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:this.accountId,actions:[Br(ae.PublicKey.from(Yt))]})})}stake(Yt,fn){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:this.accountId,actions:[jr(fn,ae.PublicKey.from(Yt))]})})}signedDelegate({actions:Yt,blockHeightTtl:fn,receiverId:Xt}){return k(this,void 0,void 0,function*(){const{provider:Qt,signer:Kr}=this.connection,{header:be}=yield Qt.block({finality:"final"}),{accessKey:kr,publicKey:xr}=yield this.findAccessKey(null,null),Wr=(0,fe.buildDelegateAction)({actions:Yt,maxBlockHeight:new pe.default(be.height).add(new pe.default(fn)),nonce:new pe.default(kr.nonce).add(new pe.default(1)),publicKey:xr,receiverId:Xt,senderId:this.accountId}),{signedDelegateAction:Jt}=yield(0,fe.signDelegateAction)({delegateAction:Wr,signer:{sign:Xr=>k(this,void 0,void 0,function*(){const{signature:zr}=yield Kr.signMessage(Xr,Wr.senderId,this.connection.networkId);return zr})}});return Jt})}validateArgs(Yt){if(!(Yt.byteLength!==void 0&&Yt.byteLength===Yt.length)&&(Array.isArray(Yt)||typeof Yt!="object"))throw new le.PositionalArgsError}viewFunction({contractId:Yt,methodName:fn,args:Xt={},parse:Qt=Ur,stringify:Kr=Qr,jsContract:be=!1,blockQuery:kr={finality:"optimistic"}}){return k(this,void 0,void 0,function*(){let xr;this.validateArgs(Xt),be?xr=this.encodeJSContractArgs(Yt,fn,Object.keys(Xt).length>0?JSON.stringify(Xt):""):xr=Kr(Xt);const Wr=yield this.connection.provider.query(Object.assign(Object.assign({request_type:"call_function"},kr),{account_id:be?this.connection.jsvmAccountId:Yt,method_name:be?"view_js_contract":fn,args_base64:xr.toString("base64")}));return Wr.logs&&(0,ve.printTxOutcomeLogs)({contractId:Yt,logs:Wr.logs}),Wr.result&&Wr.result.length>0&&Qt(Buffer.from(Wr.result))})}viewState(Yt,fn={finality:"optimistic"}){return k(this,void 0,void 0,function*(){const{values:Xt}=yield this.connection.provider.query(Object.assign(Object.assign({request_type:"view_state"},fn),{account_id:this.accountId,prefix_base64:Buffer.from(Yt).toString("base64")}));return Xt.map(({key:Qt,value:Kr})=>({key:Buffer.from(Qt,"base64"),value:Buffer.from(Kr,"base64")}))})}getAccessKeys(){var Yt;return k(this,void 0,void 0,function*(){const fn=yield this.connection.provider.query({request_type:"view_access_key_list",account_id:this.accountId,finality:"optimistic"});return(Yt=fn==null?void 0:fn.keys)===null||Yt===void 0?void 0:Yt.map(Xt=>Object.assign(Object.assign({},Xt),{access_key:Object.assign(Object.assign({},Xt.access_key),{nonce:new pe.default(Xt.access_key.nonce)})}))})}getAccountDetails(){return k(this,void 0,void 0,function*(){return{authorizedApps:(yield this.getAccessKeys()).filter(Xt=>Xt.access_key.permission!=="FullAccess").map(Xt=>{const Qt=Xt.access_key.permission;return{contractId:Qt.FunctionCall.receiver_id,amount:Qt.FunctionCall.allowance,publicKey:Xt.public_key}})}})}getAccountBalance(){return k(this,void 0,void 0,function*(){const Yt=yield this.connection.provider.experimental_protocolConfig({finality:"final"}),fn=yield this.state(),Xt=new pe.default(Yt.runtime_config.storage_amount_per_byte),Qt=new pe.default(fn.storage_usage).mul(Xt),Kr=new pe.default(fn.locked),be=new pe.default(fn.amount).add(Kr),kr=be.sub(pe.default.max(Kr,Qt));return{total:be.toString(),stateStaked:Qt.toString(),staked:Kr.toString(),available:kr.toString()}})}getActiveDelegatedStakeBalance(){return k(this,void 0,void 0,function*(){const Yt=yield this.connection.provider.block({finality:"final"}),fn=Yt.header.hash,Xt=Yt.header.epoch_id,{current_validators:Qt,next_validators:Kr,current_proposals:be}=yield this.connection.provider.validators(Xt),kr=new Set;[...Qt,...Kr,...be].forEach(Jr=>kr.add(Jr.account_id));const xr=[...kr],Wr=xr.map(Jr=>this.viewFunction({contractId:Jr,methodName:"get_account_total_balance",args:{account_id:this.accountId},blockQuery:{blockId:fn}})),Jt=yield Promise.allSettled(Wr);if(Jt.some(Jr=>Jr.status==="rejected"&&Jr.reason.type==="TimeoutError"))throw new Error("Failed to get delegated stake balance");const zr=Jt.reduce((Jr,Nr,Hr)=>{const On=xr[Hr];if(Nr.status==="fulfilled"){const Gn=new pe.default(Nr.value);if(!Gn.isZero())return Object.assign(Object.assign({},Jr),{stakedValidators:[...Jr.stakedValidators,{validatorId:On,amount:Gn.toString()}],total:Jr.total.add(Gn)})}return Nr.status==="rejected"?Object.assign(Object.assign({},Jr),{failedValidators:[...Jr.failedValidators,{validatorId:On,error:Nr.reason}]}):Jr},{stakedValidators:[],failedValidators:[],total:new pe.default(0)});return Object.assign(Object.assign({},zr),{total:zr.total.toString()})})}};v.Account=vn}}),require_constants3$1=__commonJS$1({"node_modules/@near-js/accounts/lib/constants.js"(v){var k=v&&v.__importDefault||function(ce){return ce&&ce.__esModule?ce:{default:ce}};Object.defineProperty(v,"__esModule",{value:!0}),v.MULTISIG_CONFIRM_METHODS=v.MULTISIG_CHANGE_METHODS=v.MULTISIG_DEPOSIT=v.MULTISIG_GAS=v.MULTISIG_ALLOWANCE=v.MULTISIG_STORAGE_KEY=void 0;var ie=require_lib6(),ae=k(require_bn$1());v.MULTISIG_STORAGE_KEY="__multisigRequest",v.MULTISIG_ALLOWANCE=new ae.default((0,ie.parseNearAmount)("1")),v.MULTISIG_GAS=new ae.default("100000000000000"),v.MULTISIG_DEPOSIT=new ae.default("0"),v.MULTISIG_CHANGE_METHODS=["add_request","add_request_and_confirm","delete_request","confirm"],v.MULTISIG_CONFIRM_METHODS=["confirm"]}}),require_types$4=__commonJS$1({"node_modules/@near-js/accounts/lib/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MultisigStateStatus=v.MultisigDeleteRequestRejectionError=void 0,function(k){k.CANNOT_DESERIALIZE_STATE="Cannot deserialize the contract state",k.MULTISIG_NOT_INITIALIZED="Smart contract panicked: Multisig contract should be initialized before usage",k.NO_SUCH_REQUEST="Smart contract panicked: panicked at 'No such request: either wrong number or already confirmed'",k.REQUEST_COOLDOWN_ERROR="Request cannot be deleted immediately after creation.",k.METHOD_NOT_FOUND="Contract method is not found"}(v.MultisigDeleteRequestRejectionError||(v.MultisigDeleteRequestRejectionError={})),function(k){k[k.INVALID_STATE=0]="INVALID_STATE",k[k.STATE_NOT_INITIALIZED=1]="STATE_NOT_INITIALIZED",k[k.VALID_STATE=2]="VALID_STATE",k[k.UNKNOWN_STATE=3]="UNKNOWN_STATE"}(v.MultisigStateStatus||(v.MultisigStateStatus={}))}}),require_account_multisig$1=__commonJS$1({"node_modules/@near-js/accounts/lib/account_multisig.js"(v){var k=v&&v.__awaiter||function(Br,$r,Pr,Or){function ur(jr){return jr instanceof Pr?jr:new Pr(function(Mr){Mr(jr)})}return new(Pr||(Pr=Promise))(function(jr,Mr){function Lr(Ur){try{Gr(Or.next(Ur))}catch(Qr){Mr(Qr)}}function Vr(Ur){try{Gr(Or.throw(Ur))}catch(Qr){Mr(Qr)}}function Gr(Ur){Ur.done?jr(Ur.value):ur(Ur.value).then(Lr,Vr)}Gr((Or=Or.apply(Br,$r||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.AccountMultisig=void 0;var ie=require_lib7(),ae=require_account$2(),ce=require_constants3$1(),fe=require_types$4(),{deployContract:le,functionCall:ve}=ie.actionCreators,pe;(function(Br){Br[Br.INVALID_CODE=0]="INVALID_CODE",Br[Br.VALID_CODE=1]="VALID_CODE",Br[Br.UNKNOWN_CODE=2]="UNKNOWN_CODE"})(pe||(pe={}));var ye={[ce.MULTISIG_STORAGE_KEY]:null},me=class extends ae.Account{constructor(Br,$r,Pr){super(Br,$r),this.storage=Pr.storage,this.onAddRequestResult=Pr.onAddRequestResult}signAndSendTransactionWithAccount(Br,$r){const Pr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){return Pr.signAndSendTransaction.call(this,{receiverId:Br,actions:$r})})}signAndSendTransaction({receiverId:Br,actions:$r}){const Pr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const{accountId:Or}=this,ur=Buffer.from(JSON.stringify({request:{receiver_id:Br,actions:cr($r,Or,Br)}}));let jr;try{jr=yield Pr.signAndSendTransaction.call(this,{receiverId:Or,actions:[ve("add_request_and_confirm",ur,ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]})}catch(Lr){if(Lr.toString().includes("Account has too many active requests. Confirm or delete some"))return yield this.deleteUnconfirmedRequests(),yield this.signAndSendTransaction({receiverId:Br,actions:$r});throw Lr}if(!jr.status)throw new Error("Request failed");const Mr=Object.assign({},jr.status);if(!Mr.SuccessValue||typeof Mr.SuccessValue!="string")throw new Error("Request failed");return this.setRequest({accountId:Or,actions:$r,requestId:parseInt(Buffer.from(Mr.SuccessValue,"base64").toString("ascii"),10)}),this.onAddRequestResult&&(yield this.onAddRequestResult(jr)),this.deleteUnconfirmedRequests(),jr})}checkMultisigCodeAndStateStatus(Br){const $r=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const Or=Br?pe.UNKNOWN_CODE:pe.VALID_CODE;try{return Br?yield $r.signAndSendTransaction.call(this,{receiverId:this.accountId,actions:[le(Br),ve("delete_request",{request_id:4294967295},ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]}):yield this.deleteRequest(4294967295),{codeStatus:pe.VALID_CODE,stateStatus:fe.MultisigStateStatus.VALID_STATE}}catch(ur){if(new RegExp(fe.MultisigDeleteRequestRejectionError.CANNOT_DESERIALIZE_STATE).test(ur&&ur.kind&&ur.kind.ExecutionError))return{codeStatus:Or,stateStatus:fe.MultisigStateStatus.INVALID_STATE};if(new RegExp(fe.MultisigDeleteRequestRejectionError.MULTISIG_NOT_INITIALIZED).test(ur&&ur.kind&&ur.kind.ExecutionError))return{codeStatus:Or,stateStatus:fe.MultisigStateStatus.STATE_NOT_INITIALIZED};if(new RegExp(fe.MultisigDeleteRequestRejectionError.NO_SUCH_REQUEST).test(ur&&ur.kind&&ur.kind.ExecutionError))return{codeStatus:Or,stateStatus:fe.MultisigStateStatus.VALID_STATE};if(new RegExp(fe.MultisigDeleteRequestRejectionError.METHOD_NOT_FOUND).test(ur&&ur.message))return{codeStatus:pe.INVALID_CODE,stateStatus:fe.MultisigStateStatus.UNKNOWN_STATE};throw ur}})}deleteRequest(Br){return super.signAndSendTransaction({receiverId:this.accountId,actions:[ve("delete_request",{request_id:Br},ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]})}deleteAllRequests(){return k(this,void 0,void 0,function*(){const Br=yield this.getRequestIds();Br.length&&(yield Promise.all(Br.map($r=>this.deleteRequest($r))))})}deleteUnconfirmedRequests(){const Br=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const $r=yield this.getRequestIds(),{requestId:Pr}=this.getRequest();for(const Or of $r)if(Or!=Pr)try{yield Br.signAndSendTransaction.call(this,{receiverId:this.accountId,actions:[ve("delete_request",{request_id:Or},ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]})}catch{console.warn("Attempt to delete an earlier request before 15 minutes failed. Will try again.")}})}getRequestIds(){return k(this,void 0,void 0,function*(){return this.viewFunction({contractId:this.accountId,methodName:"list_request_ids"})})}getRequest(){return this.storage?JSON.parse(this.storage.getItem(ce.MULTISIG_STORAGE_KEY)||"{}"):ye[ce.MULTISIG_STORAGE_KEY]}setRequest(Br){if(this.storage)return this.storage.setItem(ce.MULTISIG_STORAGE_KEY,JSON.stringify(Br));ye[ce.MULTISIG_STORAGE_KEY]=Br}};v.AccountMultisig=me;var Ee=Br=>Br.toString().replace("ed25519:",""),cr=(Br,$r,Pr)=>Br.map(Or=>{const ur=Or.enum,{gas:jr,publicKey:Mr,methodName:Lr,args:Vr,deposit:Gr,accessKey:Ur,code:Qr}=Or[ur],vn={type:ur[0].toUpperCase()+ur.substr(1),gas:jr&&jr.toString()||void 0,public_key:Mr&&Ee(Mr)||void 0,method_name:Lr,args:Vr&&Buffer.from(Vr).toString("base64")||void 0,code:Qr&&Buffer.from(Qr).toString("base64")||void 0,amount:Gr&&Gr.toString()||void 0,deposit:Gr&&Gr.toString()||"0",permission:void 0};if(Ur&&(Pr===$r&&Ur.permission.enum!=="fullAccess"&&(vn.permission={receiver_id:$r,allowance:ce.MULTISIG_ALLOWANCE.toString(),method_names:ce.MULTISIG_CHANGE_METHODS}),Ur.permission.enum==="functionCall")){const{receiverId:Yt,methodNames:fn,allowance:Xt}=Ur.permission.functionCall;vn.permission={receiver_id:Yt,allowance:Xt&&Xt.toString()||void 0,method_names:fn}}return vn})}}),require_account_2fa=__commonJS$1({"node_modules/@near-js/accounts/lib/account_2fa.js"(v){var k=v&&v.__awaiter||function(Mr,Lr,Vr,Gr){function Ur(Qr){return Qr instanceof Vr?Qr:new Vr(function(vn){vn(Qr)})}return new(Vr||(Vr=Promise))(function(Qr,vn){function Yt(Qt){try{Xt(Gr.next(Qt))}catch(Kr){vn(Kr)}}function fn(Qt){try{Xt(Gr.throw(Qt))}catch(Kr){vn(Kr)}}function Xt(Qt){Qt.done?Qr(Qt.value):Ur(Qt.value).then(Yt,fn)}Xt((Gr=Gr.apply(Mr,Lr||[])).next())})},ie=v&&v.__importDefault||function(Mr){return Mr&&Mr.__esModule?Mr:{default:Mr}};Object.defineProperty(v,"__esModule",{value:!0}),v.Account2FA=void 0;var ae=require_lib3(),ce=require_lib2(),fe=require_lib8(),le=require_lib7(),ve=ie(require_bn$1()),pe=require_account_multisig$1(),ye=require_constants3$1(),me=require_types$4(),{addKey:Ee,deleteKey:cr,deployContract:Br,fullAccessKey:$r,functionCall:Pr,functionCallAccessKey:Or}=le.actionCreators,ur=class extends pe.AccountMultisig{constructor(Mr,Lr,Vr){super(Mr,Lr,Vr),this.helperUrl="https://helper.testnet.near.org",this.helperUrl=Vr.helperUrl||this.helperUrl,this.storage=Vr.storage,this.sendCode=Vr.sendCode||this.sendCodeDefault,this.getCode=Vr.getCode||this.getCodeDefault,this.verifyCode=Vr.verifyCode||this.verifyCodeDefault,this.onConfirmResult=Vr.onConfirmResult}signAndSendTransaction({receiverId:Mr,actions:Lr}){const Vr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){yield Vr.signAndSendTransaction.call(this,{receiverId:Mr,actions:Lr}),yield this.sendCode();const Gr=yield this.promptAndVerify();return this.onConfirmResult&&(yield this.onConfirmResult(Gr)),Gr})}deployMultisig(Mr){const Lr=Object.create(null,{signAndSendTransactionWithAccount:{get:()=>super.signAndSendTransactionWithAccount}});return k(this,void 0,void 0,function*(){const{accountId:Vr}=this,Gr=(yield this.getRecoveryMethods()).data.filter(({kind:Qt,publicKey:Kr})=>(Qt==="phrase"||Qt==="ledger")&&Kr!==null).map(Qt=>Qt.publicKey),Ur=(yield this.getAccessKeys()).filter(({public_key:Qt,access_key:{permission:Kr}})=>Kr==="FullAccess"&&!Gr.includes(Qt)).map(Qt=>Qt.public_key).map(jr),Qr=jr((yield this.postSignedJson("/2fa/getAccessKey",{accountId:Vr})).publicKey),vn=Buffer.from(JSON.stringify({num_confirmations:2})),Yt=[...Ur.map(Qt=>cr(Qt)),...Ur.map(Qt=>Ee(Qt,Or(Vr,ye.MULTISIG_CHANGE_METHODS,null))),Ee(Qr,Or(Vr,ye.MULTISIG_CONFIRM_METHODS,null)),Br(Mr)],fn=Yt.concat(Pr("new",vn,ye.MULTISIG_GAS,ye.MULTISIG_DEPOSIT));console.log("deploying multisig contract for",Vr);const{stateStatus:Xt}=yield this.checkMultisigCodeAndStateStatus(Mr);switch(Xt){case me.MultisigStateStatus.STATE_NOT_INITIALIZED:return yield Lr.signAndSendTransactionWithAccount.call(this,Vr,fn);case me.MultisigStateStatus.VALID_STATE:return yield Lr.signAndSendTransactionWithAccount.call(this,Vr,Yt);case me.MultisigStateStatus.INVALID_STATE:throw new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account has existing state.`,"ContractHasExistingState");default:throw new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account state could not be verified.`,"ContractStateUnknown")}})}disableWithFAK({contractBytes:Mr,cleanupContractBytes:Lr}){return k(this,void 0,void 0,function*(){let Vr=[];Lr&&(yield this.deleteAllRequests().catch(vn=>vn),Vr=yield this.get2faDisableCleanupActions(Lr));const Gr=yield this.get2faDisableKeyConversionActions(),Ur=[...Vr,...Gr,Br(Mr)],Qr=yield this.findAccessKey(this.accountId,Ur);if(Qr&&Qr.accessKey&&Qr.accessKey.permission!=="FullAccess")throw new ce.TypedError("No full access key found in keystore. Unable to bypass multisig","NoFAKFound");return this.signAndSendTransactionWithAccount(this.accountId,Ur)})}get2faDisableCleanupActions(Mr){return k(this,void 0,void 0,function*(){const Lr=yield this.viewState("").catch(Gr=>{const Ur=Gr.cause&&Gr.cause.name;if(Ur=="NO_CONTRACT_CODE")return[];throw Ur=="TOO_LARGE_CONTRACT_STATE"?new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account has existing state.`,"ContractHasExistingState"):Gr}),Vr=Lr.map(({key:Gr})=>Gr.toString("base64"));return Lr.length?[Br(Mr),Pr("clean",{keys:Vr},ye.MULTISIG_GAS,new ve.default("0"))]:[]})}get2faDisableKeyConversionActions(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this,Vr=(yield this.getAccessKeys()).filter(({access_key:Ur})=>Ur.permission!=="FullAccess").filter(({access_key:Ur})=>{const Qr=Ur.permission.FunctionCall;return Qr.receiver_id===Mr&&Qr.method_names.length===4&&Qr.method_names.includes("add_request_and_confirm")}),Gr=ae.PublicKey.from((yield this.postSignedJson("/2fa/getAccessKey",{accountId:Mr})).publicKey);return[cr(Gr),...Vr.map(({public_key:Ur})=>cr(ae.PublicKey.from(Ur))),...Vr.map(({public_key:Ur})=>Ee(ae.PublicKey.from(Ur),$r()))]})}disable(Mr,Lr){return k(this,void 0,void 0,function*(){const{stateStatus:Vr}=yield this.checkMultisigCodeAndStateStatus();if(Vr!==me.MultisigStateStatus.VALID_STATE&&Vr!==me.MultisigStateStatus.STATE_NOT_INITIALIZED)throw new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account state could not be verified.`,"ContractStateUnknown");let Gr;yield this.deleteAllRequests().catch(vn=>Gr=vn);const Qr=[...yield this.get2faDisableCleanupActions(Lr).catch(vn=>{throw vn.type==="ContractHasExistingState"&&Gr||vn}),...yield this.get2faDisableKeyConversionActions(),Br(Mr)];return console.log("disabling 2fa for",this.accountId),yield this.signAndSendTransaction({receiverId:this.accountId,actions:Qr})})}sendCodeDefault(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this,{requestId:Lr}=this.getRequest(),Vr=yield this.get2faMethod();return yield this.postSignedJson("/2fa/send",{accountId:Mr,method:Vr,requestId:Lr}),Lr})}getCodeDefault(){return k(this,void 0,void 0,function*(){throw new Error('There is no getCode callback provided. Please provide your own in AccountMultisig constructor options. It has a parameter method where method.kind is "email" or "phone".')})}promptAndVerify(){return k(this,void 0,void 0,function*(){const Mr=yield this.get2faMethod(),Lr=yield this.getCode(Mr);try{return yield this.verifyCode(Lr)}catch(Vr){if(console.warn("Error validating security code:",Vr),Vr.toString().includes("invalid 2fa code provided")||Vr.toString().includes("2fa code not valid"))return yield this.promptAndVerify();throw Vr}})}verifyCodeDefault(Mr){return k(this,void 0,void 0,function*(){const{accountId:Lr}=this,Vr=this.getRequest();if(!Vr)throw new Error("no request pending");const{requestId:Gr}=Vr;return yield this.postSignedJson("/2fa/verify",{accountId:Lr,securityCode:Mr,requestId:Gr})})}getRecoveryMethods(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this;return{accountId:Mr,data:yield this.postSignedJson("/account/recoveryMethods",{accountId:Mr})}})}get2faMethod(){return k(this,void 0,void 0,function*(){let{data:Mr}=yield this.getRecoveryMethods();if(Mr&&Mr.length&&(Mr=Mr.find(Gr=>Gr.kind.indexOf("2fa-")===0)),!Mr)return null;const{kind:Lr,detail:Vr}=Mr;return{kind:Lr,detail:Vr}})}signatureFor(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this,Vr=(yield this.connection.provider.block({finality:"final"})).header.height.toString(),Gr=yield this.connection.signer.signMessage(Buffer.from(Vr),Mr,this.connection.networkId),Ur=Buffer.from(Gr.signature).toString("base64");return{blockNumber:Vr,blockNumberSignature:Ur}})}postSignedJson(Mr,Lr){return k(this,void 0,void 0,function*(){return yield(0,fe.fetchJson)(this.helperUrl+Mr,JSON.stringify(Object.assign(Object.assign({},Lr),yield this.signatureFor())))})}};v.Account2FA=ur;var jr=Mr=>ae.PublicKey.from(Mr)}}),require_account_creator$1=__commonJS$1({"node_modules/@near-js/accounts/lib/account_creator.js"(v){var k=v&&v.__awaiter||function(le,ve,pe,ye){function me(Ee){return Ee instanceof pe?Ee:new pe(function(cr){cr(Ee)})}return new(pe||(pe=Promise))(function(Ee,cr){function Br(Or){try{Pr(ye.next(Or))}catch(ur){cr(ur)}}function $r(Or){try{Pr(ye.throw(Or))}catch(ur){cr(ur)}}function Pr(Or){Or.done?Ee(Or.value):me(Or.value).then(Br,$r)}Pr((ye=ye.apply(le,ve||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.UrlAccountCreator=v.LocalAccountCreator=v.AccountCreator=void 0;var ie=require_lib8(),ae=class{};v.AccountCreator=ae;var ce=class extends ae{constructor(le,ve){super(),this.masterAccount=le,this.initialBalance=ve}createAccount(le,ve){return k(this,void 0,void 0,function*(){yield this.masterAccount.createAccount(le,ve,this.initialBalance)})}};v.LocalAccountCreator=ce;var fe=class extends ae{constructor(le,ve){super(),this.connection=le,this.helperUrl=ve}createAccount(le,ve){return k(this,void 0,void 0,function*(){yield(0,ie.fetchJson)(`${this.helperUrl}/account`,JSON.stringify({newAccountId:le,newAccountPublicKey:ve.toString()}))})}};v.UrlAccountCreator=fe}}),require_signer$1=__commonJS$1({"node_modules/@near-js/signers/lib/signer.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signer=void 0;var k=class{};v.Signer=k}}),require_in_memory_signer=__commonJS$1({"node_modules/@near-js/signers/lib/in_memory_signer.js"(v){var k=v&&v.__awaiter||function(pe,ye,me,Ee){function cr(Br){return Br instanceof me?Br:new me(function($r){$r(Br)})}return new(me||(me=Promise))(function(Br,$r){function Pr(jr){try{ur(Ee.next(jr))}catch(Mr){$r(Mr)}}function Or(jr){try{ur(Ee.throw(jr))}catch(Mr){$r(Mr)}}function ur(jr){jr.done?Br(jr.value):cr(jr.value).then(Pr,Or)}ur((Ee=Ee.apply(pe,ye||[])).next())})},ie=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.InMemorySigner=void 0;var ae=require_lib3(),ce=require_lib4$1(),fe=ie(require_sha256$2()),le=require_signer$1(),ve=class extends le.Signer{constructor(pe){super(),this.keyStore=pe}static fromKeyPair(pe,ye,me){return k(this,void 0,void 0,function*(){const Ee=new ce.InMemoryKeyStore;return yield Ee.setKey(pe,ye,me),new ve(Ee)})}createKey(pe,ye){return k(this,void 0,void 0,function*(){const me=ae.KeyPair.fromRandom("ed25519");return yield this.keyStore.setKey(ye,pe,me),me.getPublicKey()})}getPublicKey(pe,ye){return k(this,void 0,void 0,function*(){const me=yield this.keyStore.getKey(ye,pe);return me===null?null:me.getPublicKey()})}signMessage(pe,ye,me){return k(this,void 0,void 0,function*(){const Ee=new Uint8Array(fe.default.sha256.array(pe));if(!ye)throw new Error("InMemorySigner requires provided account id");const cr=yield this.keyStore.getKey(me,ye);if(cr===null)throw new Error(`Key for ${ye} not found in ${me}`);return cr.sign(Ee)})}toString(){return`InMemorySigner(${this.keyStore})`}};v.InMemorySigner=ve}}),require_lib9=__commonJS$1({"node_modules/@near-js/signers/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signer=v.InMemorySigner=void 0;var k=require_in_memory_signer();Object.defineProperty(v,"InMemorySigner",{enumerable:!0,get:function(){return k.InMemorySigner}});var ie=require_signer$1();Object.defineProperty(v,"Signer",{enumerable:!0,get:function(){return ie.Signer}})}}),require_connection$1=__commonJS$1({"node_modules/@near-js/accounts/lib/connection.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Connection=void 0;var k=require_lib9(),ie=require_lib8();function ae(le){switch(le.type){case void 0:return le;case"JsonRpcProvider":return new ie.JsonRpcProvider(Object.assign({},le.args));default:throw new Error(`Unknown provider type ${le.type}`)}}function ce(le){switch(le.type){case void 0:return le;case"InMemorySigner":return new k.InMemorySigner(le.keyStore);default:throw new Error(`Unknown signer type ${le.type}`)}}var fe=class{constructor(le,ve,pe,ye){this.networkId=le,this.provider=ve,this.signer=pe,this.jsvmAccountId=ye}static fromConfig(le){const ve=ae(le.provider),pe=ce(le.signer);return new fe(le.networkId,ve,pe,le.jsvmAccountId)}};v.Connection=fe}}),require_code=__commonJS$1({"node_modules/ajv/dist/compile/codegen/code.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.regexpCode=v.getEsmExportName=v.getProperty=v.safeStringify=v.stringify=v.strConcat=v.addCodeArg=v.str=v._=v.nil=v._Code=v.Name=v.IDENTIFIER=v._CodeOrName=void 0;var k=class{};v._CodeOrName=k,v.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ie=class extends k{constructor(ur){if(super(),!v.IDENTIFIER.test(ur))throw new Error("CodeGen: name must be a valid identifier");this.str=ur}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};v.Name=ie;var ae=class extends k{constructor(ur){super(),this._items=typeof ur=="string"?[ur]:ur}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const ur=this._items[0];return ur===""||ur==='""'}get str(){var ur;return(ur=this._str)!==null&&ur!==void 0?ur:this._str=this._items.reduce((jr,Mr)=>`${jr}${Mr}`,"")}get names(){var ur;return(ur=this._names)!==null&&ur!==void 0?ur:this._names=this._items.reduce((jr,Mr)=>(Mr instanceof ie&&(jr[Mr.str]=(jr[Mr.str]||0)+1),jr),{})}};v._Code=ae,v.nil=new ae("");function ce(ur,...jr){const Mr=[ur[0]];let Lr=0;for(;Lr{if(me.scopePath===void 0)throw new Error(`CodeGen: name "${me}" has no value`);return(0,k._)`${pe}${me.scopePath}`})}scopeCode(pe=this._values,ye,me){return this._reduceValues(pe,Ee=>{if(Ee.value===void 0)throw new Error(`CodeGen: name "${Ee}" has no value`);return Ee.value.code},ye,me)}_reduceValues(pe,ye,me={},Ee){let cr=k.nil;for(const Br in pe){const $r=pe[Br];if(!$r)continue;const Pr=me[Br]=me[Br]||new Map;$r.forEach(Or=>{if(Pr.has(Or))return;Pr.set(Or,ae.Started);let ur=ye(Or);if(ur){const jr=this.opts.es5?v.varKinds.var:v.varKinds.const;cr=(0,k._)`${cr}${jr} ${Or} = ${ur};${this.opts._n}`}else if(ur=Ee==null?void 0:Ee(Or))cr=(0,k._)`${cr}${ur}${this.opts._n}`;else throw new ie(Or);Pr.set(Or,ae.Completed)})}return cr}};v.ValueScope=ve}}),require_codegen=__commonJS$1({"node_modules/ajv/dist/compile/codegen/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.or=v.and=v.not=v.CodeGen=v.operators=v.varKinds=v.ValueScopeName=v.ValueScope=v.Scope=v.Name=v.regexpCode=v.stringify=v.getProperty=v.nil=v.strConcat=v.str=v._=void 0;var k=require_code(),ie=require_scope(),ae=require_code();Object.defineProperty(v,"_",{enumerable:!0,get:function(){return ae._}}),Object.defineProperty(v,"str",{enumerable:!0,get:function(){return ae.str}}),Object.defineProperty(v,"strConcat",{enumerable:!0,get:function(){return ae.strConcat}}),Object.defineProperty(v,"nil",{enumerable:!0,get:function(){return ae.nil}}),Object.defineProperty(v,"getProperty",{enumerable:!0,get:function(){return ae.getProperty}}),Object.defineProperty(v,"stringify",{enumerable:!0,get:function(){return ae.stringify}}),Object.defineProperty(v,"regexpCode",{enumerable:!0,get:function(){return ae.regexpCode}}),Object.defineProperty(v,"Name",{enumerable:!0,get:function(){return ae.Name}});var ce=require_scope();Object.defineProperty(v,"Scope",{enumerable:!0,get:function(){return ce.Scope}}),Object.defineProperty(v,"ValueScope",{enumerable:!0,get:function(){return ce.ValueScope}}),Object.defineProperty(v,"ValueScopeName",{enumerable:!0,get:function(){return ce.ValueScopeName}}),Object.defineProperty(v,"varKinds",{enumerable:!0,get:function(){return ce.varKinds}}),v.operators={GT:new k._Code(">"),GTE:new k._Code(">="),LT:new k._Code("<"),LTE:new k._Code("<="),EQ:new k._Code("==="),NEQ:new k._Code("!=="),NOT:new k._Code("!"),OR:new k._Code("||"),AND:new k._Code("&&"),ADD:new k._Code("+")};var fe=class{optimizeNodes(){return this}optimizeNames(Nr,Hr){return this}},le=class extends fe{constructor(Nr,Hr,On){super(),this.varKind=Nr,this.name=Hr,this.rhs=On}render({es5:Nr,_n:Hr}){const On=Nr?ie.varKinds.var:this.varKind,Gn=this.rhs===void 0?"":` = ${this.rhs}`;return`${On} ${this.name}${Gn};`+Hr}optimizeNames(Nr,Hr){if(!!Nr[this.name.str])return this.rhs&&(this.rhs=Kr(this.rhs,Nr,Hr)),this}get names(){return this.rhs instanceof k._CodeOrName?this.rhs.names:{}}},ve=class extends fe{constructor(Nr,Hr,On){super(),this.lhs=Nr,this.rhs=Hr,this.sideEffects=On}render({_n:Nr}){return`${this.lhs} = ${this.rhs};`+Nr}optimizeNames(Nr,Hr){if(!(this.lhs instanceof k.Name&&!Nr[this.lhs.str]&&!this.sideEffects))return this.rhs=Kr(this.rhs,Nr,Hr),this}get names(){const Nr=this.lhs instanceof k.Name?{}:{...this.lhs.names};return Qt(Nr,this.rhs)}},pe=class extends ve{constructor(Nr,Hr,On,Gn){super(Nr,On,Gn),this.op=Hr}render({_n:Nr}){return`${this.lhs} ${this.op}= ${this.rhs};`+Nr}},ye=class extends fe{constructor(Nr){super(),this.label=Nr,this.names={}}render({_n:Nr}){return`${this.label}:`+Nr}},me=class extends fe{constructor(Nr){super(),this.label=Nr,this.names={}}render({_n:Nr}){return`break${this.label?` ${this.label}`:""};`+Nr}},Ee=class extends fe{constructor(Nr){super(),this.error=Nr}render({_n:Nr}){return`throw ${this.error};`+Nr}get names(){return this.error.names}},cr=class extends fe{constructor(Nr){super(),this.code=Nr}render({_n:Nr}){return`${this.code};`+Nr}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(Nr,Hr){return this.code=Kr(this.code,Nr,Hr),this}get names(){return this.code instanceof k._CodeOrName?this.code.names:{}}},Br=class extends fe{constructor(Nr=[]){super(),this.nodes=Nr}render(Nr){return this.nodes.reduce((Hr,On)=>Hr+On.render(Nr),"")}optimizeNodes(){const{nodes:Nr}=this;let Hr=Nr.length;for(;Hr--;){const On=Nr[Hr].optimizeNodes();Array.isArray(On)?Nr.splice(Hr,1,...On):On?Nr[Hr]=On:Nr.splice(Hr,1)}return Nr.length>0?this:void 0}optimizeNames(Nr,Hr){const{nodes:On}=this;let Gn=On.length;for(;Gn--;){const mn=On[Gn];mn.optimizeNames(Nr,Hr)||(be(Nr,mn.names),On.splice(Gn,1))}return On.length>0?this:void 0}get names(){return this.nodes.reduce((Nr,Hr)=>Xt(Nr,Hr.names),{})}},$r=class extends Br{render(Nr){return"{"+Nr._n+super.render(Nr)+"}"+Nr._n}},Pr=class extends Br{},Or=class extends $r{};Or.kind="else";var ur=class extends $r{constructor(Nr,Hr){super(Hr),this.condition=Nr}render(Nr){let Hr=`if(${this.condition})`+super.render(Nr);return this.else&&(Hr+="else "+this.else.render(Nr)),Hr}optimizeNodes(){super.optimizeNodes();const Nr=this.condition;if(Nr===!0)return this.nodes;let Hr=this.else;if(Hr){const On=Hr.optimizeNodes();Hr=this.else=Array.isArray(On)?new Or(On):On}if(Hr)return Nr===!1?Hr instanceof ur?Hr:Hr.nodes:this.nodes.length?this:new ur(kr(Nr),Hr instanceof ur?[Hr]:Hr.nodes);if(!(Nr===!1||!this.nodes.length))return this}optimizeNames(Nr,Hr){var On;if(this.else=(On=this.else)===null||On===void 0?void 0:On.optimizeNames(Nr,Hr),!!(super.optimizeNames(Nr,Hr)||this.else))return this.condition=Kr(this.condition,Nr,Hr),this}get names(){const Nr=super.names;return Qt(Nr,this.condition),this.else&&Xt(Nr,this.else.names),Nr}};ur.kind="if";var jr=class extends $r{};jr.kind="for";var Mr=class extends jr{constructor(Nr){super(),this.iteration=Nr}render(Nr){return`for(${this.iteration})`+super.render(Nr)}optimizeNames(Nr,Hr){if(!!super.optimizeNames(Nr,Hr))return this.iteration=Kr(this.iteration,Nr,Hr),this}get names(){return Xt(super.names,this.iteration.names)}},Lr=class extends jr{constructor(Nr,Hr,On,Gn){super(),this.varKind=Nr,this.name=Hr,this.from=On,this.to=Gn}render(Nr){const Hr=Nr.es5?ie.varKinds.var:this.varKind,{name:On,from:Gn,to:mn}=this;return`for(${Hr} ${On}=${Gn}; ${On}<${mn}; ${On}++)`+super.render(Nr)}get names(){const Nr=Qt(super.names,this.from);return Qt(Nr,this.to)}},Vr=class extends jr{constructor(Nr,Hr,On,Gn){super(),this.loop=Nr,this.varKind=Hr,this.name=On,this.iterable=Gn}render(Nr){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(Nr)}optimizeNames(Nr,Hr){if(!!super.optimizeNames(Nr,Hr))return this.iterable=Kr(this.iterable,Nr,Hr),this}get names(){return Xt(super.names,this.iterable.names)}},Gr=class extends $r{constructor(Nr,Hr,On){super(),this.name=Nr,this.args=Hr,this.async=On}render(Nr){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(Nr)}};Gr.kind="func";var Ur=class extends Br{render(Nr){return"return "+super.render(Nr)}};Ur.kind="return";var Qr=class extends $r{render(Nr){let Hr="try"+super.render(Nr);return this.catch&&(Hr+=this.catch.render(Nr)),this.finally&&(Hr+=this.finally.render(Nr)),Hr}optimizeNodes(){var Nr,Hr;return super.optimizeNodes(),(Nr=this.catch)===null||Nr===void 0||Nr.optimizeNodes(),(Hr=this.finally)===null||Hr===void 0||Hr.optimizeNodes(),this}optimizeNames(Nr,Hr){var On,Gn;return super.optimizeNames(Nr,Hr),(On=this.catch)===null||On===void 0||On.optimizeNames(Nr,Hr),(Gn=this.finally)===null||Gn===void 0||Gn.optimizeNames(Nr,Hr),this}get names(){const Nr=super.names;return this.catch&&Xt(Nr,this.catch.names),this.finally&&Xt(Nr,this.finally.names),Nr}},vn=class extends $r{constructor(Nr){super(),this.error=Nr}render(Nr){return`catch(${this.error})`+super.render(Nr)}};vn.kind="catch";var Yt=class extends $r{render(Nr){return"finally"+super.render(Nr)}};Yt.kind="finally";var fn=class{constructor(Nr,Hr={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...Hr,_n:Hr.lines?` -`:""},this._extScope=Nr,this._scope=new ie.Scope({parent:Nr}),this._nodes=[new Pr]}toString(){return this._root.render(this.opts)}name(Nr){return this._scope.name(Nr)}scopeName(Nr){return this._extScope.name(Nr)}scopeValue(Nr,Hr){const On=this._extScope.value(Nr,Hr);return(this._values[On.prefix]||(this._values[On.prefix]=new Set)).add(On),On}getScopeValue(Nr,Hr){return this._extScope.getValue(Nr,Hr)}scopeRefs(Nr){return this._extScope.scopeRefs(Nr,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(Nr,Hr,On,Gn){const mn=this._scope.toName(Hr);return On!==void 0&&Gn&&(this._constants[mn.str]=On),this._leafNode(new le(Nr,mn,On)),mn}const(Nr,Hr,On){return this._def(ie.varKinds.const,Nr,Hr,On)}let(Nr,Hr,On){return this._def(ie.varKinds.let,Nr,Hr,On)}var(Nr,Hr,On){return this._def(ie.varKinds.var,Nr,Hr,On)}assign(Nr,Hr,On){return this._leafNode(new ve(Nr,Hr,On))}add(Nr,Hr){return this._leafNode(new pe(Nr,v.operators.ADD,Hr))}code(Nr){return typeof Nr=="function"?Nr():Nr!==k.nil&&this._leafNode(new cr(Nr)),this}object(...Nr){const Hr=["{"];for(const[On,Gn]of Nr)Hr.length>1&&Hr.push(","),Hr.push(On),(On!==Gn||this.opts.es5)&&(Hr.push(":"),(0,k.addCodeArg)(Hr,Gn));return Hr.push("}"),new k._Code(Hr)}if(Nr,Hr,On){if(this._blockNode(new ur(Nr)),Hr&&On)this.code(Hr).else().code(On).endIf();else if(Hr)this.code(Hr).endIf();else if(On)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(Nr){return this._elseNode(new ur(Nr))}else(){return this._elseNode(new Or)}endIf(){return this._endBlockNode(ur,Or)}_for(Nr,Hr){return this._blockNode(Nr),Hr&&this.code(Hr).endFor(),this}for(Nr,Hr){return this._for(new Mr(Nr),Hr)}forRange(Nr,Hr,On,Gn,mn=this.opts.es5?ie.varKinds.var:ie.varKinds.let){const Nn=this._scope.toName(Nr);return this._for(new Lr(mn,Nn,Hr,On),()=>Gn(Nn))}forOf(Nr,Hr,On,Gn=ie.varKinds.const){const mn=this._scope.toName(Nr);if(this.opts.es5){const Nn=Hr instanceof k.Name?Hr:this.var("_arr",Hr);return this.forRange("_i",0,(0,k._)`${Nn}.length`,In=>{this.var(mn,(0,k._)`${Nn}[${In}]`),On(mn)})}return this._for(new Vr("of",Gn,mn,Hr),()=>On(mn))}forIn(Nr,Hr,On,Gn=this.opts.es5?ie.varKinds.var:ie.varKinds.const){if(this.opts.ownProperties)return this.forOf(Nr,(0,k._)`Object.keys(${Hr})`,On);const mn=this._scope.toName(Nr);return this._for(new Vr("in",Gn,mn,Hr),()=>On(mn))}endFor(){return this._endBlockNode(jr)}label(Nr){return this._leafNode(new ye(Nr))}break(Nr){return this._leafNode(new me(Nr))}return(Nr){const Hr=new Ur;if(this._blockNode(Hr),this.code(Nr),Hr.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ur)}try(Nr,Hr,On){if(!Hr&&!On)throw new Error('CodeGen: "try" without "catch" and "finally"');const Gn=new Qr;if(this._blockNode(Gn),this.code(Nr),Hr){const mn=this.name("e");this._currNode=Gn.catch=new vn(mn),Hr(mn)}return On&&(this._currNode=Gn.finally=new Yt,this.code(On)),this._endBlockNode(vn,Yt)}throw(Nr){return this._leafNode(new Ee(Nr))}block(Nr,Hr){return this._blockStarts.push(this._nodes.length),Nr&&this.code(Nr).endBlock(Hr),this}endBlock(Nr){const Hr=this._blockStarts.pop();if(Hr===void 0)throw new Error("CodeGen: not in self-balancing block");const On=this._nodes.length-Hr;if(On<0||Nr!==void 0&&On!==Nr)throw new Error(`CodeGen: wrong number of nodes: ${On} vs ${Nr} expected`);return this._nodes.length=Hr,this}func(Nr,Hr=k.nil,On,Gn){return this._blockNode(new Gr(Nr,Hr,On)),Gn&&this.code(Gn).endFunc(),this}endFunc(){return this._endBlockNode(Gr)}optimize(Nr=1){for(;Nr-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(Nr){return this._currNode.nodes.push(Nr),this}_blockNode(Nr){this._currNode.nodes.push(Nr),this._nodes.push(Nr)}_endBlockNode(Nr,Hr){const On=this._currNode;if(On instanceof Nr||Hr&&On instanceof Hr)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${Hr?`${Nr.kind}/${Hr.kind}`:Nr.kind}"`)}_elseNode(Nr){const Hr=this._currNode;if(!(Hr instanceof ur))throw new Error('CodeGen: "else" without "if"');return this._currNode=Hr.else=Nr,this}get _root(){return this._nodes[0]}get _currNode(){const Nr=this._nodes;return Nr[Nr.length-1]}set _currNode(Nr){const Hr=this._nodes;Hr[Hr.length-1]=Nr}};v.CodeGen=fn;function Xt(Nr,Hr){for(const On in Hr)Nr[On]=(Nr[On]||0)+(Hr[On]||0);return Nr}function Qt(Nr,Hr){return Hr instanceof k._CodeOrName?Xt(Nr,Hr.names):Nr}function Kr(Nr,Hr,On){if(Nr instanceof k.Name)return Gn(Nr);if(!mn(Nr))return Nr;return new k._Code(Nr._items.reduce((Nn,In)=>(In instanceof k.Name&&(In=Gn(In)),In instanceof k._Code?Nn.push(...In._items):Nn.push(In),Nn),[]));function Gn(Nn){const In=On[Nn.str];return In===void 0||Hr[Nn.str]!==1?Nn:(delete Hr[Nn.str],In)}function mn(Nn){return Nn instanceof k._Code&&Nn._items.some(In=>In instanceof k.Name&&Hr[In.str]===1&&On[In.str]!==void 0)}}function be(Nr,Hr){for(const On in Hr)Nr[On]=(Nr[On]||0)-(Hr[On]||0)}function kr(Nr){return typeof Nr=="boolean"||typeof Nr=="number"||Nr===null?!Nr:(0,k._)`!${Jr(Nr)}`}v.not=kr;var xr=zr(v.operators.AND);function Wr(...Nr){return Nr.reduce(xr)}v.and=Wr;var Jt=zr(v.operators.OR);function Xr(...Nr){return Nr.reduce(Jt)}v.or=Xr;function zr(Nr){return(Hr,On)=>Hr===k.nil?On:On===k.nil?Hr:(0,k._)`${Jr(Hr)} ${Nr} ${Jr(On)}`}function Jr(Nr){return Nr instanceof k.Name?Nr:(0,k._)`(${Nr})`}}}),require_util$1=__commonJS$1({"node_modules/ajv/dist/compile/util.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.checkStrictMode=v.getErrorPath=v.Type=v.useFunc=v.setEvaluated=v.evaluatedPropsToName=v.mergeEvaluated=v.eachItem=v.unescapeJsonPointer=v.escapeJsonPointer=v.escapeFragment=v.unescapeFragment=v.schemaRefOrVal=v.schemaHasRulesButRef=v.schemaHasRules=v.checkUnknownRules=v.alwaysValidSchema=v.toHash=void 0;var k=require_codegen(),ie=require_code();function ae(Gr){const Ur={};for(const Qr of Gr)Ur[Qr]=!0;return Ur}v.toHash=ae;function ce(Gr,Ur){return typeof Ur=="boolean"?Ur:Object.keys(Ur).length===0?!0:(fe(Gr,Ur),!le(Ur,Gr.self.RULES.all))}v.alwaysValidSchema=ce;function fe(Gr,Ur=Gr.schema){const{opts:Qr,self:vn}=Gr;if(!Qr.strictSchema||typeof Ur=="boolean")return;const Yt=vn.RULES.keywords;for(const fn in Ur)Yt[fn]||Vr(Gr,`unknown keyword: "${fn}"`)}v.checkUnknownRules=fe;function le(Gr,Ur){if(typeof Gr=="boolean")return!Gr;for(const Qr in Gr)if(Ur[Qr])return!0;return!1}v.schemaHasRules=le;function ve(Gr,Ur){if(typeof Gr=="boolean")return!Gr;for(const Qr in Gr)if(Qr!=="$ref"&&Ur.all[Qr])return!0;return!1}v.schemaHasRulesButRef=ve;function pe({topSchemaRef:Gr,schemaPath:Ur},Qr,vn,Yt){if(!Yt){if(typeof Qr=="number"||typeof Qr=="boolean")return Qr;if(typeof Qr=="string")return(0,k._)`${Qr}`}return(0,k._)`${Gr}${Ur}${(0,k.getProperty)(vn)}`}v.schemaRefOrVal=pe;function ye(Gr){return cr(decodeURIComponent(Gr))}v.unescapeFragment=ye;function me(Gr){return encodeURIComponent(Ee(Gr))}v.escapeFragment=me;function Ee(Gr){return typeof Gr=="number"?`${Gr}`:Gr.replace(/~/g,"~0").replace(/\//g,"~1")}v.escapeJsonPointer=Ee;function cr(Gr){return Gr.replace(/~1/g,"/").replace(/~0/g,"~")}v.unescapeJsonPointer=cr;function Br(Gr,Ur){if(Array.isArray(Gr))for(const Qr of Gr)Ur(Qr);else Ur(Gr)}v.eachItem=Br;function $r({mergeNames:Gr,mergeToName:Ur,mergeValues:Qr,resultToName:vn}){return(Yt,fn,Xt,Qt)=>{const Kr=Xt===void 0?fn:Xt instanceof k.Name?(fn instanceof k.Name?Gr(Yt,fn,Xt):Ur(Yt,fn,Xt),Xt):fn instanceof k.Name?(Ur(Yt,Xt,fn),fn):Qr(fn,Xt);return Qt===k.Name&&!(Kr instanceof k.Name)?vn(Yt,Kr):Kr}}v.mergeEvaluated={props:$r({mergeNames:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true && ${Ur} !== undefined`,()=>{Gr.if((0,k._)`${Ur} === true`,()=>Gr.assign(Qr,!0),()=>Gr.assign(Qr,(0,k._)`${Qr} || {}`).code((0,k._)`Object.assign(${Qr}, ${Ur})`))}),mergeToName:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true`,()=>{Ur===!0?Gr.assign(Qr,!0):(Gr.assign(Qr,(0,k._)`${Qr} || {}`),Or(Gr,Qr,Ur))}),mergeValues:(Gr,Ur)=>Gr===!0?!0:{...Gr,...Ur},resultToName:Pr}),items:$r({mergeNames:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true && ${Ur} !== undefined`,()=>Gr.assign(Qr,(0,k._)`${Ur} === true ? true : ${Qr} > ${Ur} ? ${Qr} : ${Ur}`)),mergeToName:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true`,()=>Gr.assign(Qr,Ur===!0?!0:(0,k._)`${Qr} > ${Ur} ? ${Qr} : ${Ur}`)),mergeValues:(Gr,Ur)=>Gr===!0?!0:Math.max(Gr,Ur),resultToName:(Gr,Ur)=>Gr.var("items",Ur)})};function Pr(Gr,Ur){if(Ur===!0)return Gr.var("props",!0);const Qr=Gr.var("props",(0,k._)`{}`);return Ur!==void 0&&Or(Gr,Qr,Ur),Qr}v.evaluatedPropsToName=Pr;function Or(Gr,Ur,Qr){Object.keys(Qr).forEach(vn=>Gr.assign((0,k._)`${Ur}${(0,k.getProperty)(vn)}`,!0))}v.setEvaluated=Or;var ur={};function jr(Gr,Ur){return Gr.scopeValue("func",{ref:Ur,code:ur[Ur.code]||(ur[Ur.code]=new ie._Code(Ur.code))})}v.useFunc=jr;var Mr;(function(Gr){Gr[Gr.Num=0]="Num",Gr[Gr.Str=1]="Str"})(Mr=v.Type||(v.Type={}));function Lr(Gr,Ur,Qr){if(Gr instanceof k.Name){const vn=Ur===Mr.Num;return Qr?vn?(0,k._)`"[" + ${Gr} + "]"`:(0,k._)`"['" + ${Gr} + "']"`:vn?(0,k._)`"/" + ${Gr}`:(0,k._)`"/" + ${Gr}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return Qr?(0,k.getProperty)(Gr).toString():"/"+Ee(Gr)}v.getErrorPath=Lr;function Vr(Gr,Ur,Qr=Gr.opts.strictSchema){if(!!Qr){if(Ur=`strict mode: ${Ur}`,Qr===!0)throw new Error(Ur);Gr.self.logger.warn(Ur)}}v.checkStrictMode=Vr}}),require_names=__commonJS$1({"node_modules/ajv/dist/compile/names.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie={data:new k.Name("data"),valCxt:new k.Name("valCxt"),instancePath:new k.Name("instancePath"),parentData:new k.Name("parentData"),parentDataProperty:new k.Name("parentDataProperty"),rootData:new k.Name("rootData"),dynamicAnchors:new k.Name("dynamicAnchors"),vErrors:new k.Name("vErrors"),errors:new k.Name("errors"),this:new k.Name("this"),self:new k.Name("self"),scope:new k.Name("scope"),json:new k.Name("json"),jsonPos:new k.Name("jsonPos"),jsonLen:new k.Name("jsonLen"),jsonPart:new k.Name("jsonPart")};v.default=ie}}),require_errors4=__commonJS$1({"node_modules/ajv/dist/compile/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.extendErrors=v.resetErrorsCount=v.reportExtraError=v.reportError=v.keyword$DataError=v.keywordError=void 0;var k=require_codegen(),ie=require_util$1(),ae=require_names();v.keywordError={message:({keyword:Or})=>(0,k.str)`must pass "${Or}" keyword validation`},v.keyword$DataError={message:({keyword:Or,schemaType:ur})=>ur?(0,k.str)`"${Or}" keyword must be ${ur} ($data)`:(0,k.str)`"${Or}" keyword is invalid ($data)`};function ce(Or,ur=v.keywordError,jr,Mr){const{it:Lr}=Or,{gen:Vr,compositeRule:Gr,allErrors:Ur}=Lr,Qr=Ee(Or,ur,jr);(Mr!=null?Mr:Gr||Ur)?pe(Vr,Qr):ye(Lr,(0,k._)`[${Qr}]`)}v.reportError=ce;function fe(Or,ur=v.keywordError,jr){const{it:Mr}=Or,{gen:Lr,compositeRule:Vr,allErrors:Gr}=Mr,Ur=Ee(Or,ur,jr);pe(Lr,Ur),Vr||Gr||ye(Mr,ae.default.vErrors)}v.reportExtraError=fe;function le(Or,ur){Or.assign(ae.default.errors,ur),Or.if((0,k._)`${ae.default.vErrors} !== null`,()=>Or.if(ur,()=>Or.assign((0,k._)`${ae.default.vErrors}.length`,ur),()=>Or.assign(ae.default.vErrors,null)))}v.resetErrorsCount=le;function ve({gen:Or,keyword:ur,schemaValue:jr,data:Mr,errsCount:Lr,it:Vr}){if(Lr===void 0)throw new Error("ajv implementation error");const Gr=Or.name("err");Or.forRange("i",Lr,ae.default.errors,Ur=>{Or.const(Gr,(0,k._)`${ae.default.vErrors}[${Ur}]`),Or.if((0,k._)`${Gr}.instancePath === undefined`,()=>Or.assign((0,k._)`${Gr}.instancePath`,(0,k.strConcat)(ae.default.instancePath,Vr.errorPath))),Or.assign((0,k._)`${Gr}.schemaPath`,(0,k.str)`${Vr.errSchemaPath}/${ur}`),Vr.opts.verbose&&(Or.assign((0,k._)`${Gr}.schema`,jr),Or.assign((0,k._)`${Gr}.data`,Mr))})}v.extendErrors=ve;function pe(Or,ur){const jr=Or.const("err",ur);Or.if((0,k._)`${ae.default.vErrors} === null`,()=>Or.assign(ae.default.vErrors,(0,k._)`[${jr}]`),(0,k._)`${ae.default.vErrors}.push(${jr})`),Or.code((0,k._)`${ae.default.errors}++`)}function ye(Or,ur){const{gen:jr,validateName:Mr,schemaEnv:Lr}=Or;Lr.$async?jr.throw((0,k._)`new ${Or.ValidationError}(${ur})`):(jr.assign((0,k._)`${Mr}.errors`,ur),jr.return(!1))}var me={keyword:new k.Name("keyword"),schemaPath:new k.Name("schemaPath"),params:new k.Name("params"),propertyName:new k.Name("propertyName"),message:new k.Name("message"),schema:new k.Name("schema"),parentSchema:new k.Name("parentSchema")};function Ee(Or,ur,jr){const{createErrors:Mr}=Or.it;return Mr===!1?(0,k._)`{}`:cr(Or,ur,jr)}function cr(Or,ur,jr={}){const{gen:Mr,it:Lr}=Or,Vr=[Br(Lr,jr),$r(Or,jr)];return Pr(Or,ur,Vr),Mr.object(...Vr)}function Br({errorPath:Or},{instancePath:ur}){const jr=ur?(0,k.str)`${Or}${(0,ie.getErrorPath)(ur,ie.Type.Str)}`:Or;return[ae.default.instancePath,(0,k.strConcat)(ae.default.instancePath,jr)]}function $r({keyword:Or,it:{errSchemaPath:ur}},{schemaPath:jr,parentSchema:Mr}){let Lr=Mr?ur:(0,k.str)`${ur}/${Or}`;return jr&&(Lr=(0,k.str)`${Lr}${(0,ie.getErrorPath)(jr,ie.Type.Str)}`),[me.schemaPath,Lr]}function Pr(Or,{params:ur,message:jr},Mr){const{keyword:Lr,data:Vr,schemaValue:Gr,it:Ur}=Or,{opts:Qr,propertyName:vn,topSchemaRef:Yt,schemaPath:fn}=Ur;Mr.push([me.keyword,Lr],[me.params,typeof ur=="function"?ur(Or):ur||(0,k._)`{}`]),Qr.messages&&Mr.push([me.message,typeof jr=="function"?jr(Or):jr]),Qr.verbose&&Mr.push([me.schema,Gr],[me.parentSchema,(0,k._)`${Yt}${fn}`],[ae.default.data,Vr]),vn&&Mr.push([me.propertyName,vn])}}}),require_boolSchema=__commonJS$1({"node_modules/ajv/dist/compile/validate/boolSchema.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.boolOrEmptySchema=v.topBoolOrEmptySchema=void 0;var k=require_errors4(),ie=require_codegen(),ae=require_names(),ce={message:"boolean schema is false"};function fe(pe){const{gen:ye,schema:me,validateName:Ee}=pe;me===!1?ve(pe,!1):typeof me=="object"&&me.$async===!0?ye.return(ae.default.data):(ye.assign((0,ie._)`${Ee}.errors`,null),ye.return(!0))}v.topBoolOrEmptySchema=fe;function le(pe,ye){const{gen:me,schema:Ee}=pe;Ee===!1?(me.var(ye,!1),ve(pe)):me.var(ye,!0)}v.boolOrEmptySchema=le;function ve(pe,ye){const{gen:me,data:Ee}=pe,cr={gen:me,keyword:"false schema",data:Ee,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:pe};(0,k.reportError)(cr,ce,void 0,ye)}}}),require_rules=__commonJS$1({"node_modules/ajv/dist/compile/rules.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getRules=v.isJSONType=void 0;var k=["string","number","integer","boolean","null","object","array"],ie=new Set(k);function ae(fe){return typeof fe=="string"&&ie.has(fe)}v.isJSONType=ae;function ce(){const fe={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...fe,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},fe.number,fe.string,fe.array,fe.object],post:{rules:[]},all:{},keywords:{}}}v.getRules=ce}}),require_applicability=__commonJS$1({"node_modules/ajv/dist/compile/validate/applicability.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.shouldUseRule=v.shouldUseGroup=v.schemaHasRulesForType=void 0;function k({schema:ce,self:fe},le){const ve=fe.RULES.types[le];return ve&&ve!==!0&&ie(ce,ve)}v.schemaHasRulesForType=k;function ie(ce,fe){return fe.rules.some(le=>ae(ce,le))}v.shouldUseGroup=ie;function ae(ce,fe){var le;return ce[fe.keyword]!==void 0||((le=fe.definition.implements)===null||le===void 0?void 0:le.some(ve=>ce[ve]!==void 0))}v.shouldUseRule=ae}}),require_dataType=__commonJS$1({"node_modules/ajv/dist/compile/validate/dataType.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.reportTypeError=v.checkDataTypes=v.checkDataType=v.coerceAndCheckDataType=v.getJSONTypes=v.getSchemaTypes=v.DataType=void 0;var k=require_rules(),ie=require_applicability(),ae=require_errors4(),ce=require_codegen(),fe=require_util$1(),le;(function(Mr){Mr[Mr.Correct=0]="Correct",Mr[Mr.Wrong=1]="Wrong"})(le=v.DataType||(v.DataType={}));function ve(Mr){const Lr=pe(Mr.type);if(Lr.includes("null")){if(Mr.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!Lr.length&&Mr.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');Mr.nullable===!0&&Lr.push("null")}return Lr}v.getSchemaTypes=ve;function pe(Mr){const Lr=Array.isArray(Mr)?Mr:Mr?[Mr]:[];if(Lr.every(k.isJSONType))return Lr;throw new Error("type must be JSONType or JSONType[]: "+Lr.join(","))}v.getJSONTypes=pe;function ye(Mr,Lr){const{gen:Vr,data:Gr,opts:Ur}=Mr,Qr=Ee(Lr,Ur.coerceTypes),vn=Lr.length>0&&!(Qr.length===0&&Lr.length===1&&(0,ie.schemaHasRulesForType)(Mr,Lr[0]));if(vn){const Yt=Pr(Lr,Gr,Ur.strictNumbers,le.Wrong);Vr.if(Yt,()=>{Qr.length?cr(Mr,Lr,Qr):ur(Mr)})}return vn}v.coerceAndCheckDataType=ye;var me=new Set(["string","number","integer","boolean","null"]);function Ee(Mr,Lr){return Lr?Mr.filter(Vr=>me.has(Vr)||Lr==="array"&&Vr==="array"):[]}function cr(Mr,Lr,Vr){const{gen:Gr,data:Ur,opts:Qr}=Mr,vn=Gr.let("dataType",(0,ce._)`typeof ${Ur}`),Yt=Gr.let("coerced",(0,ce._)`undefined`);Qr.coerceTypes==="array"&&Gr.if((0,ce._)`${vn} == 'object' && Array.isArray(${Ur}) && ${Ur}.length == 1`,()=>Gr.assign(Ur,(0,ce._)`${Ur}[0]`).assign(vn,(0,ce._)`typeof ${Ur}`).if(Pr(Lr,Ur,Qr.strictNumbers),()=>Gr.assign(Yt,Ur))),Gr.if((0,ce._)`${Yt} !== undefined`);for(const Xt of Vr)(me.has(Xt)||Xt==="array"&&Qr.coerceTypes==="array")&&fn(Xt);Gr.else(),ur(Mr),Gr.endIf(),Gr.if((0,ce._)`${Yt} !== undefined`,()=>{Gr.assign(Ur,Yt),Br(Mr,Yt)});function fn(Xt){switch(Xt){case"string":Gr.elseIf((0,ce._)`${vn} == "number" || ${vn} == "boolean"`).assign(Yt,(0,ce._)`"" + ${Ur}`).elseIf((0,ce._)`${Ur} === null`).assign(Yt,(0,ce._)`""`);return;case"number":Gr.elseIf((0,ce._)`${vn} == "boolean" || ${Ur} === null - || (${vn} == "string" && ${Ur} && ${Ur} == +${Ur})`).assign(Yt,(0,ce._)`+${Ur}`);return;case"integer":Gr.elseIf((0,ce._)`${vn} === "boolean" || ${Ur} === null - || (${vn} === "string" && ${Ur} && ${Ur} == +${Ur} && !(${Ur} % 1))`).assign(Yt,(0,ce._)`+${Ur}`);return;case"boolean":Gr.elseIf((0,ce._)`${Ur} === "false" || ${Ur} === 0 || ${Ur} === null`).assign(Yt,!1).elseIf((0,ce._)`${Ur} === "true" || ${Ur} === 1`).assign(Yt,!0);return;case"null":Gr.elseIf((0,ce._)`${Ur} === "" || ${Ur} === 0 || ${Ur} === false`),Gr.assign(Yt,null);return;case"array":Gr.elseIf((0,ce._)`${vn} === "string" || ${vn} === "number" - || ${vn} === "boolean" || ${Ur} === null`).assign(Yt,(0,ce._)`[${Ur}]`)}}}function Br({gen:Mr,parentData:Lr,parentDataProperty:Vr},Gr){Mr.if((0,ce._)`${Lr} !== undefined`,()=>Mr.assign((0,ce._)`${Lr}[${Vr}]`,Gr))}function $r(Mr,Lr,Vr,Gr=le.Correct){const Ur=Gr===le.Correct?ce.operators.EQ:ce.operators.NEQ;let Qr;switch(Mr){case"null":return(0,ce._)`${Lr} ${Ur} null`;case"array":Qr=(0,ce._)`Array.isArray(${Lr})`;break;case"object":Qr=(0,ce._)`${Lr} && typeof ${Lr} == "object" && !Array.isArray(${Lr})`;break;case"integer":Qr=vn((0,ce._)`!(${Lr} % 1) && !isNaN(${Lr})`);break;case"number":Qr=vn();break;default:return(0,ce._)`typeof ${Lr} ${Ur} ${Mr}`}return Gr===le.Correct?Qr:(0,ce.not)(Qr);function vn(Yt=ce.nil){return(0,ce.and)((0,ce._)`typeof ${Lr} == "number"`,Yt,Vr?(0,ce._)`isFinite(${Lr})`:ce.nil)}}v.checkDataType=$r;function Pr(Mr,Lr,Vr,Gr){if(Mr.length===1)return $r(Mr[0],Lr,Vr,Gr);let Ur;const Qr=(0,fe.toHash)(Mr);if(Qr.array&&Qr.object){const vn=(0,ce._)`typeof ${Lr} != "object"`;Ur=Qr.null?vn:(0,ce._)`!${Lr} || ${vn}`,delete Qr.null,delete Qr.array,delete Qr.object}else Ur=ce.nil;Qr.number&&delete Qr.integer;for(const vn in Qr)Ur=(0,ce.and)(Ur,$r(vn,Lr,Vr,Gr));return Ur}v.checkDataTypes=Pr;var Or={message:({schema:Mr})=>`must be ${Mr}`,params:({schema:Mr,schemaValue:Lr})=>typeof Mr=="string"?(0,ce._)`{type: ${Mr}}`:(0,ce._)`{type: ${Lr}}`};function ur(Mr){const Lr=jr(Mr);(0,ae.reportError)(Lr,Or)}v.reportTypeError=ur;function jr(Mr){const{gen:Lr,data:Vr,schema:Gr}=Mr,Ur=(0,fe.schemaRefOrVal)(Mr,Gr,"type");return{gen:Lr,keyword:"type",data:Vr,schema:Gr.type,schemaCode:Ur,schemaValue:Ur,parentSchema:Gr,params:{},it:Mr}}}}),require_defaults=__commonJS$1({"node_modules/ajv/dist/compile/validate/defaults.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.assignDefaults=void 0;var k=require_codegen(),ie=require_util$1();function ae(fe,le){const{properties:ve,items:pe}=fe.schema;if(le==="object"&&ve)for(const ye in ve)ce(fe,ye,ve[ye].default);else le==="array"&&Array.isArray(pe)&&pe.forEach((ye,me)=>ce(fe,me,ye.default))}v.assignDefaults=ae;function ce(fe,le,ve){const{gen:pe,compositeRule:ye,data:me,opts:Ee}=fe;if(ve===void 0)return;const cr=(0,k._)`${me}${(0,k.getProperty)(le)}`;if(ye){(0,ie.checkStrictMode)(fe,`default is ignored for: ${cr}`);return}let Br=(0,k._)`${cr} === undefined`;Ee.useDefaults==="empty"&&(Br=(0,k._)`${Br} || ${cr} === null || ${cr} === ""`),pe.if(Br,(0,k._)`${cr} = ${(0,k.stringify)(ve)}`)}}}),require_code2=__commonJS$1({"node_modules/ajv/dist/vocabularies/code.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateUnion=v.validateArray=v.usePattern=v.callValidateCode=v.schemaProperties=v.allSchemaProperties=v.noPropertyInData=v.propertyInData=v.isOwnProperty=v.hasPropFunc=v.reportMissingProp=v.checkMissingProp=v.checkReportMissingProp=void 0;var k=require_codegen(),ie=require_util$1(),ae=require_names(),ce=require_util$1();function fe(Mr,Lr){const{gen:Vr,data:Gr,it:Ur}=Mr;Vr.if(Ee(Vr,Gr,Lr,Ur.opts.ownProperties),()=>{Mr.setParams({missingProperty:(0,k._)`${Lr}`},!0),Mr.error()})}v.checkReportMissingProp=fe;function le({gen:Mr,data:Lr,it:{opts:Vr}},Gr,Ur){return(0,k.or)(...Gr.map(Qr=>(0,k.and)(Ee(Mr,Lr,Qr,Vr.ownProperties),(0,k._)`${Ur} = ${Qr}`)))}v.checkMissingProp=le;function ve(Mr,Lr){Mr.setParams({missingProperty:Lr},!0),Mr.error()}v.reportMissingProp=ve;function pe(Mr){return Mr.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,k._)`Object.prototype.hasOwnProperty`})}v.hasPropFunc=pe;function ye(Mr,Lr,Vr){return(0,k._)`${pe(Mr)}.call(${Lr}, ${Vr})`}v.isOwnProperty=ye;function me(Mr,Lr,Vr,Gr){const Ur=(0,k._)`${Lr}${(0,k.getProperty)(Vr)} !== undefined`;return Gr?(0,k._)`${Ur} && ${ye(Mr,Lr,Vr)}`:Ur}v.propertyInData=me;function Ee(Mr,Lr,Vr,Gr){const Ur=(0,k._)`${Lr}${(0,k.getProperty)(Vr)} === undefined`;return Gr?(0,k.or)(Ur,(0,k.not)(ye(Mr,Lr,Vr))):Ur}v.noPropertyInData=Ee;function cr(Mr){return Mr?Object.keys(Mr).filter(Lr=>Lr!=="__proto__"):[]}v.allSchemaProperties=cr;function Br(Mr,Lr){return cr(Lr).filter(Vr=>!(0,ie.alwaysValidSchema)(Mr,Lr[Vr]))}v.schemaProperties=Br;function $r({schemaCode:Mr,data:Lr,it:{gen:Vr,topSchemaRef:Gr,schemaPath:Ur,errorPath:Qr},it:vn},Yt,fn,Xt){const Qt=Xt?(0,k._)`${Mr}, ${Lr}, ${Gr}${Ur}`:Lr,Kr=[[ae.default.instancePath,(0,k.strConcat)(ae.default.instancePath,Qr)],[ae.default.parentData,vn.parentData],[ae.default.parentDataProperty,vn.parentDataProperty],[ae.default.rootData,ae.default.rootData]];vn.opts.dynamicRef&&Kr.push([ae.default.dynamicAnchors,ae.default.dynamicAnchors]);const be=(0,k._)`${Qt}, ${Vr.object(...Kr)}`;return fn!==k.nil?(0,k._)`${Yt}.call(${fn}, ${be})`:(0,k._)`${Yt}(${be})`}v.callValidateCode=$r;var Pr=(0,k._)`new RegExp`;function Or({gen:Mr,it:{opts:Lr}},Vr){const Gr=Lr.unicodeRegExp?"u":"",{regExp:Ur}=Lr.code,Qr=Ur(Vr,Gr);return Mr.scopeValue("pattern",{key:Qr.toString(),ref:Qr,code:(0,k._)`${Ur.code==="new RegExp"?Pr:(0,ce.useFunc)(Mr,Ur)}(${Vr}, ${Gr})`})}v.usePattern=Or;function ur(Mr){const{gen:Lr,data:Vr,keyword:Gr,it:Ur}=Mr,Qr=Lr.name("valid");if(Ur.allErrors){const Yt=Lr.let("valid",!0);return vn(()=>Lr.assign(Yt,!1)),Yt}return Lr.var(Qr,!0),vn(()=>Lr.break()),Qr;function vn(Yt){const fn=Lr.const("len",(0,k._)`${Vr}.length`);Lr.forRange("i",0,fn,Xt=>{Mr.subschema({keyword:Gr,dataProp:Xt,dataPropType:ie.Type.Num},Qr),Lr.if((0,k.not)(Qr),Yt)})}}v.validateArray=ur;function jr(Mr){const{gen:Lr,schema:Vr,keyword:Gr,it:Ur}=Mr;if(!Array.isArray(Vr))throw new Error("ajv implementation error");if(Vr.some(fn=>(0,ie.alwaysValidSchema)(Ur,fn))&&!Ur.opts.unevaluated)return;const vn=Lr.let("valid",!1),Yt=Lr.name("_valid");Lr.block(()=>Vr.forEach((fn,Xt)=>{const Qt=Mr.subschema({keyword:Gr,schemaProp:Xt,compositeRule:!0},Yt);Lr.assign(vn,(0,k._)`${vn} || ${Yt}`),Mr.mergeValidEvaluated(Qt,Yt)||Lr.if((0,k.not)(vn))})),Mr.result(vn,()=>Mr.reset(),()=>Mr.error(!0))}v.validateUnion=jr}}),require_keyword=__commonJS$1({"node_modules/ajv/dist/compile/validate/keyword.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateKeywordUsage=v.validSchemaType=v.funcKeywordCode=v.macroKeywordCode=void 0;var k=require_codegen(),ie=require_names(),ae=require_code2(),ce=require_errors4();function fe(Br,$r){const{gen:Pr,keyword:Or,schema:ur,parentSchema:jr,it:Mr}=Br,Lr=$r.macro.call(Mr.self,ur,jr,Mr),Vr=me(Pr,Or,Lr);Mr.opts.validateSchema!==!1&&Mr.self.validateSchema(Lr,!0);const Gr=Pr.name("valid");Br.subschema({schema:Lr,schemaPath:k.nil,errSchemaPath:`${Mr.errSchemaPath}/${Or}`,topSchemaRef:Vr,compositeRule:!0},Gr),Br.pass(Gr,()=>Br.error(!0))}v.macroKeywordCode=fe;function le(Br,$r){var Pr;const{gen:Or,keyword:ur,schema:jr,parentSchema:Mr,$data:Lr,it:Vr}=Br;ye(Vr,$r);const Gr=!Lr&&$r.compile?$r.compile.call(Vr.self,jr,Mr,Vr):$r.validate,Ur=me(Or,ur,Gr),Qr=Or.let("valid");Br.block$data(Qr,vn),Br.ok((Pr=$r.valid)!==null&&Pr!==void 0?Pr:Qr);function vn(){if($r.errors===!1)Xt(),$r.modifying&&ve(Br),Qt(()=>Br.error());else{const Kr=$r.async?Yt():fn();$r.modifying&&ve(Br),Qt(()=>pe(Br,Kr))}}function Yt(){const Kr=Or.let("ruleErrs",null);return Or.try(()=>Xt((0,k._)`await `),be=>Or.assign(Qr,!1).if((0,k._)`${be} instanceof ${Vr.ValidationError}`,()=>Or.assign(Kr,(0,k._)`${be}.errors`),()=>Or.throw(be))),Kr}function fn(){const Kr=(0,k._)`${Ur}.errors`;return Or.assign(Kr,null),Xt(k.nil),Kr}function Xt(Kr=$r.async?(0,k._)`await `:k.nil){const be=Vr.opts.passContext?ie.default.this:ie.default.self,kr=!("compile"in $r&&!Lr||$r.schema===!1);Or.assign(Qr,(0,k._)`${Kr}${(0,ae.callValidateCode)(Br,Ur,be,kr)}`,$r.modifying)}function Qt(Kr){var be;Or.if((0,k.not)((be=$r.valid)!==null&&be!==void 0?be:Qr),Kr)}}v.funcKeywordCode=le;function ve(Br){const{gen:$r,data:Pr,it:Or}=Br;$r.if(Or.parentData,()=>$r.assign(Pr,(0,k._)`${Or.parentData}[${Or.parentDataProperty}]`))}function pe(Br,$r){const{gen:Pr}=Br;Pr.if((0,k._)`Array.isArray(${$r})`,()=>{Pr.assign(ie.default.vErrors,(0,k._)`${ie.default.vErrors} === null ? ${$r} : ${ie.default.vErrors}.concat(${$r})`).assign(ie.default.errors,(0,k._)`${ie.default.vErrors}.length`),(0,ce.extendErrors)(Br)},()=>Br.error())}function ye({schemaEnv:Br},$r){if($r.async&&!Br.$async)throw new Error("async keyword in sync schema")}function me(Br,$r,Pr){if(Pr===void 0)throw new Error(`keyword "${$r}" failed to compile`);return Br.scopeValue("keyword",typeof Pr=="function"?{ref:Pr}:{ref:Pr,code:(0,k.stringify)(Pr)})}function Ee(Br,$r,Pr=!1){return!$r.length||$r.some(Or=>Or==="array"?Array.isArray(Br):Or==="object"?Br&&typeof Br=="object"&&!Array.isArray(Br):typeof Br==Or||Pr&&typeof Br>"u")}v.validSchemaType=Ee;function cr({schema:Br,opts:$r,self:Pr,errSchemaPath:Or},ur,jr){if(Array.isArray(ur.keyword)?!ur.keyword.includes(jr):ur.keyword!==jr)throw new Error("ajv implementation error");const Mr=ur.dependencies;if(Mr!=null&&Mr.some(Lr=>!Object.prototype.hasOwnProperty.call(Br,Lr)))throw new Error(`parent schema must have dependencies of ${jr}: ${Mr.join(",")}`);if(ur.validateSchema&&!ur.validateSchema(Br[jr])){const Vr=`keyword "${jr}" value is invalid at path "${Or}": `+Pr.errorsText(ur.validateSchema.errors);if($r.validateSchema==="log")Pr.logger.error(Vr);else throw new Error(Vr)}}v.validateKeywordUsage=cr}}),require_subschema=__commonJS$1({"node_modules/ajv/dist/compile/validate/subschema.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.extendSubschemaMode=v.extendSubschemaData=v.getSubschema=void 0;var k=require_codegen(),ie=require_util$1();function ae(le,{keyword:ve,schemaProp:pe,schema:ye,schemaPath:me,errSchemaPath:Ee,topSchemaRef:cr}){if(ve!==void 0&&ye!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(ve!==void 0){const Br=le.schema[ve];return pe===void 0?{schema:Br,schemaPath:(0,k._)`${le.schemaPath}${(0,k.getProperty)(ve)}`,errSchemaPath:`${le.errSchemaPath}/${ve}`}:{schema:Br[pe],schemaPath:(0,k._)`${le.schemaPath}${(0,k.getProperty)(ve)}${(0,k.getProperty)(pe)}`,errSchemaPath:`${le.errSchemaPath}/${ve}/${(0,ie.escapeFragment)(pe)}`}}if(ye!==void 0){if(me===void 0||Ee===void 0||cr===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:ye,schemaPath:me,topSchemaRef:cr,errSchemaPath:Ee}}throw new Error('either "keyword" or "schema" must be passed')}v.getSubschema=ae;function ce(le,ve,{dataProp:pe,dataPropType:ye,data:me,dataTypes:Ee,propertyName:cr}){if(me!==void 0&&pe!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:Br}=ve;if(pe!==void 0){const{errorPath:Pr,dataPathArr:Or,opts:ur}=ve,jr=Br.let("data",(0,k._)`${ve.data}${(0,k.getProperty)(pe)}`,!0);$r(jr),le.errorPath=(0,k.str)`${Pr}${(0,ie.getErrorPath)(pe,ye,ur.jsPropertySyntax)}`,le.parentDataProperty=(0,k._)`${pe}`,le.dataPathArr=[...Or,le.parentDataProperty]}if(me!==void 0){const Pr=me instanceof k.Name?me:Br.let("data",me,!0);$r(Pr),cr!==void 0&&(le.propertyName=cr)}Ee&&(le.dataTypes=Ee);function $r(Pr){le.data=Pr,le.dataLevel=ve.dataLevel+1,le.dataTypes=[],ve.definedProperties=new Set,le.parentData=ve.data,le.dataNames=[...ve.dataNames,Pr]}}v.extendSubschemaData=ce;function fe(le,{jtdDiscriminator:ve,jtdMetadata:pe,compositeRule:ye,createErrors:me,allErrors:Ee}){ye!==void 0&&(le.compositeRule=ye),me!==void 0&&(le.createErrors=me),Ee!==void 0&&(le.allErrors=Ee),le.jtdDiscriminator=ve,le.jtdMetadata=pe}v.extendSubschemaMode=fe}}),require_fast_deep_equal=__commonJS$1({"node_modules/fast-deep-equal/index.js"(v,k){k.exports=function ie(ae,ce){if(ae===ce)return!0;if(ae&&ce&&typeof ae=="object"&&typeof ce=="object"){if(ae.constructor!==ce.constructor)return!1;var fe,le,ve;if(Array.isArray(ae)){if(fe=ae.length,fe!=ce.length)return!1;for(le=fe;le--!==0;)if(!ie(ae[le],ce[le]))return!1;return!0}if(ae.constructor===RegExp)return ae.source===ce.source&&ae.flags===ce.flags;if(ae.valueOf!==Object.prototype.valueOf)return ae.valueOf()===ce.valueOf();if(ae.toString!==Object.prototype.toString)return ae.toString()===ce.toString();if(ve=Object.keys(ae),fe=ve.length,fe!==Object.keys(ce).length)return!1;for(le=fe;le--!==0;)if(!Object.prototype.hasOwnProperty.call(ce,ve[le]))return!1;for(le=fe;le--!==0;){var pe=ve[le];if(!ie(ae[pe],ce[pe]))return!1}return!0}return ae!==ae&&ce!==ce}}}),require_json_schema_traverse=__commonJS$1({"node_modules/json-schema-traverse/index.js"(v,k){var ie=k.exports=function(fe,le,ve){typeof le=="function"&&(ve=le,le={}),ve=le.cb||ve;var pe=typeof ve=="function"?ve:ve.pre||function(){},ye=ve.post||function(){};ae(le,pe,ye,fe,"",fe)};ie.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},ie.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},ie.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},ie.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ae(fe,le,ve,pe,ye,me,Ee,cr,Br,$r){if(pe&&typeof pe=="object"&&!Array.isArray(pe)){le(pe,ye,me,Ee,cr,Br,$r);for(var Pr in pe){var Or=pe[Pr];if(Array.isArray(Or)){if(Pr in ie.arrayKeywords)for(var ur=0;urur+=pe(Mr)),ur===1/0))return 1/0}return ur}function ye(Or,ur="",jr){jr!==!1&&(ur=cr(ur));const Mr=Or.parse(ur);return me(Or,Mr)}v.getFullPath=ye;function me(Or,ur){return Or.serialize(ur).split("#")[0]+"#"}v._getFullPath=me;var Ee=/#\/?$/;function cr(Or){return Or?Or.replace(Ee,""):""}v.normalizeId=cr;function Br(Or,ur,jr){return jr=cr(jr),Or.resolve(ur,jr)}v.resolveUrl=Br;var $r=/^[a-z_][-a-z0-9._]*$/i;function Pr(Or,ur){if(typeof Or=="boolean")return{};const{schemaId:jr,uriResolver:Mr}=this.opts,Lr=cr(Or[jr]||ur),Vr={"":Lr},Gr=ye(Mr,Lr,!1),Ur={},Qr=new Set;return ae(Or,{allKeys:!0},(fn,Xt,Qt,Kr)=>{if(Kr===void 0)return;const be=Gr+Xt;let kr=Vr[Kr];typeof fn[jr]=="string"&&(kr=xr.call(this,fn[jr])),Wr.call(this,fn.$anchor),Wr.call(this,fn.$dynamicAnchor),Vr[Xt]=kr;function xr(Jt){const Xr=this.opts.uriResolver.resolve;if(Jt=cr(kr?Xr(kr,Jt):Jt),Qr.has(Jt))throw Yt(Jt);Qr.add(Jt);let zr=this.refs[Jt];return typeof zr=="string"&&(zr=this.refs[zr]),typeof zr=="object"?vn(fn,zr.schema,Jt):Jt!==cr(be)&&(Jt[0]==="#"?(vn(fn,Ur[Jt],Jt),Ur[Jt]=fn):this.refs[Jt]=be),Jt}function Wr(Jt){if(typeof Jt=="string"){if(!$r.test(Jt))throw new Error(`invalid anchor "${Jt}"`);xr.call(this,`#${Jt}`)}}}),Ur;function vn(fn,Xt,Qt){if(Xt!==void 0&&!ie(fn,Xt))throw Yt(Qt)}function Yt(fn){return new Error(`reference "${fn}" resolves to more than one schema`)}}v.getSchemaRefs=Pr}}),require_validate=__commonJS$1({"node_modules/ajv/dist/compile/validate/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getData=v.KeywordCxt=v.validateFunctionCode=void 0;var k=require_boolSchema(),ie=require_dataType(),ae=require_applicability(),ce=require_dataType(),fe=require_defaults(),le=require_keyword(),ve=require_subschema(),pe=require_codegen(),ye=require_names(),me=require_resolve(),Ee=require_util$1(),cr=require_errors4();function Br(hn){if(Gr(hn)&&(Qr(hn),Vr(hn))){ur(hn);return}$r(hn,()=>(0,k.topBoolOrEmptySchema)(hn))}v.validateFunctionCode=Br;function $r({gen:hn,validateName:pn,schema:Sn,schemaEnv:Qn,opts:Jn},ui){Jn.code.es5?hn.func(pn,(0,pe._)`${ye.default.data}, ${ye.default.valCxt}`,Qn.$async,()=>{hn.code((0,pe._)`"use strict"; ${Mr(Sn,Jn)}`),Or(hn,Jn),hn.code(ui)}):hn.func(pn,(0,pe._)`${ye.default.data}, ${Pr(Jn)}`,Qn.$async,()=>hn.code(Mr(Sn,Jn)).code(ui))}function Pr(hn){return(0,pe._)`{${ye.default.instancePath}="", ${ye.default.parentData}, ${ye.default.parentDataProperty}, ${ye.default.rootData}=${ye.default.data}${hn.dynamicRef?(0,pe._)`, ${ye.default.dynamicAnchors}={}`:pe.nil}}={}`}function Or(hn,pn){hn.if(ye.default.valCxt,()=>{hn.var(ye.default.instancePath,(0,pe._)`${ye.default.valCxt}.${ye.default.instancePath}`),hn.var(ye.default.parentData,(0,pe._)`${ye.default.valCxt}.${ye.default.parentData}`),hn.var(ye.default.parentDataProperty,(0,pe._)`${ye.default.valCxt}.${ye.default.parentDataProperty}`),hn.var(ye.default.rootData,(0,pe._)`${ye.default.valCxt}.${ye.default.rootData}`),pn.dynamicRef&&hn.var(ye.default.dynamicAnchors,(0,pe._)`${ye.default.valCxt}.${ye.default.dynamicAnchors}`)},()=>{hn.var(ye.default.instancePath,(0,pe._)`""`),hn.var(ye.default.parentData,(0,pe._)`undefined`),hn.var(ye.default.parentDataProperty,(0,pe._)`undefined`),hn.var(ye.default.rootData,ye.default.data),pn.dynamicRef&&hn.var(ye.default.dynamicAnchors,(0,pe._)`{}`)})}function ur(hn){const{schema:pn,opts:Sn,gen:Qn}=hn;$r(hn,()=>{Sn.$comment&&pn.$comment&&Kr(hn),fn(hn),Qn.let(ye.default.vErrors,null),Qn.let(ye.default.errors,0),Sn.unevaluated&&jr(hn),vn(hn),be(hn)})}function jr(hn){const{gen:pn,validateName:Sn}=hn;hn.evaluated=pn.const("evaluated",(0,pe._)`${Sn}.evaluated`),pn.if((0,pe._)`${hn.evaluated}.dynamicProps`,()=>pn.assign((0,pe._)`${hn.evaluated}.props`,(0,pe._)`undefined`)),pn.if((0,pe._)`${hn.evaluated}.dynamicItems`,()=>pn.assign((0,pe._)`${hn.evaluated}.items`,(0,pe._)`undefined`))}function Mr(hn,pn){const Sn=typeof hn=="object"&&hn[pn.schemaId];return Sn&&(pn.code.source||pn.code.process)?(0,pe._)`/*# sourceURL=${Sn} */`:pe.nil}function Lr(hn,pn){if(Gr(hn)&&(Qr(hn),Vr(hn))){Ur(hn,pn);return}(0,k.boolOrEmptySchema)(hn,pn)}function Vr({schema:hn,self:pn}){if(typeof hn=="boolean")return!hn;for(const Sn in hn)if(pn.RULES.all[Sn])return!0;return!1}function Gr(hn){return typeof hn.schema!="boolean"}function Ur(hn,pn){const{schema:Sn,gen:Qn,opts:Jn}=hn;Jn.$comment&&Sn.$comment&&Kr(hn),Xt(hn),Qt(hn);const ui=Qn.const("_errs",ye.default.errors);vn(hn,ui),Qn.var(pn,(0,pe._)`${ui} === ${ye.default.errors}`)}function Qr(hn){(0,Ee.checkUnknownRules)(hn),Yt(hn)}function vn(hn,pn){if(hn.opts.jtd)return xr(hn,[],!1,pn);const Sn=(0,ie.getSchemaTypes)(hn.schema),Qn=(0,ie.coerceAndCheckDataType)(hn,Sn);xr(hn,Sn,!Qn,pn)}function Yt(hn){const{schema:pn,errSchemaPath:Sn,opts:Qn,self:Jn}=hn;pn.$ref&&Qn.ignoreKeywordsWithRef&&(0,Ee.schemaHasRulesButRef)(pn,Jn.RULES)&&Jn.logger.warn(`$ref: keywords ignored in schema at path "${Sn}"`)}function fn(hn){const{schema:pn,opts:Sn}=hn;pn.default!==void 0&&Sn.useDefaults&&Sn.strictSchema&&(0,Ee.checkStrictMode)(hn,"default is ignored in the schema root")}function Xt(hn){const pn=hn.schema[hn.opts.schemaId];pn&&(hn.baseId=(0,me.resolveUrl)(hn.opts.uriResolver,hn.baseId,pn))}function Qt(hn){if(hn.schema.$async&&!hn.schemaEnv.$async)throw new Error("async schema in sync schema")}function Kr({gen:hn,schemaEnv:pn,schema:Sn,errSchemaPath:Qn,opts:Jn}){const ui=Sn.$comment;if(Jn.$comment===!0)hn.code((0,pe._)`${ye.default.self}.logger.log(${ui})`);else if(typeof Jn.$comment=="function"){const gi=(0,pe.str)`${Qn}/$comment`,di=hn.scopeValue("root",{ref:pn.root});hn.code((0,pe._)`${ye.default.self}.opts.$comment(${ui}, ${gi}, ${di}.schema)`)}}function be(hn){const{gen:pn,schemaEnv:Sn,validateName:Qn,ValidationError:Jn,opts:ui}=hn;Sn.$async?pn.if((0,pe._)`${ye.default.errors} === 0`,()=>pn.return(ye.default.data),()=>pn.throw((0,pe._)`new ${Jn}(${ye.default.vErrors})`)):(pn.assign((0,pe._)`${Qn}.errors`,ye.default.vErrors),ui.unevaluated&&kr(hn),pn.return((0,pe._)`${ye.default.errors} === 0`))}function kr({gen:hn,evaluated:pn,props:Sn,items:Qn}){Sn instanceof pe.Name&&hn.assign((0,pe._)`${pn}.props`,Sn),Qn instanceof pe.Name&&hn.assign((0,pe._)`${pn}.items`,Qn)}function xr(hn,pn,Sn,Qn){const{gen:Jn,schema:ui,data:gi,allErrors:di,opts:Ci,self:yi}=hn,{RULES:li}=yi;if(ui.$ref&&(Ci.ignoreKeywordsWithRef||!(0,Ee.schemaHasRulesButRef)(ui,li))){Jn.block(()=>Nn(hn,"$ref",li.all.$ref.definition));return}Ci.jtd||Jt(hn,pn),Jn.block(()=>{for(const Ai of li.rules)Pi(Ai);Pi(li.post)});function Pi(Ai){!(0,ae.shouldUseGroup)(ui,Ai)||(Ai.type?(Jn.if((0,ce.checkDataType)(Ai.type,gi,Ci.strictNumbers)),Wr(hn,Ai),pn.length===1&&pn[0]===Ai.type&&Sn&&(Jn.else(),(0,ce.reportTypeError)(hn)),Jn.endIf()):Wr(hn,Ai),di||Jn.if((0,pe._)`${ye.default.errors} === ${Qn||0}`))}}function Wr(hn,pn){const{gen:Sn,schema:Qn,opts:{useDefaults:Jn}}=hn;Jn&&(0,fe.assignDefaults)(hn,pn.type),Sn.block(()=>{for(const ui of pn.rules)(0,ae.shouldUseRule)(Qn,ui)&&Nn(hn,ui.keyword,ui.definition,pn.type)})}function Jt(hn,pn){hn.schemaEnv.meta||!hn.opts.strictTypes||(Xr(hn,pn),hn.opts.allowUnionTypes||zr(hn,pn),Jr(hn,hn.dataTypes))}function Xr(hn,pn){if(!!pn.length){if(!hn.dataTypes.length){hn.dataTypes=pn;return}pn.forEach(Sn=>{Hr(hn.dataTypes,Sn)||Gn(hn,`type "${Sn}" not allowed by context "${hn.dataTypes.join(",")}"`)}),On(hn,pn)}}function zr(hn,pn){pn.length>1&&!(pn.length===2&&pn.includes("null"))&&Gn(hn,"use allowUnionTypes to allow union type keyword")}function Jr(hn,pn){const Sn=hn.self.RULES.all;for(const Qn in Sn){const Jn=Sn[Qn];if(typeof Jn=="object"&&(0,ae.shouldUseRule)(hn.schema,Jn)){const{type:ui}=Jn.definition;ui.length&&!ui.some(gi=>Nr(pn,gi))&&Gn(hn,`missing type "${ui.join(",")}" for keyword "${Qn}"`)}}}function Nr(hn,pn){return hn.includes(pn)||pn==="number"&&hn.includes("integer")}function Hr(hn,pn){return hn.includes(pn)||pn==="integer"&&hn.includes("number")}function On(hn,pn){const Sn=[];for(const Qn of hn.dataTypes)Hr(pn,Qn)?Sn.push(Qn):pn.includes("integer")&&Qn==="number"&&Sn.push("integer");hn.dataTypes=Sn}function Gn(hn,pn){pn+=` at "${hn.schemaEnv.baseId+hn.errSchemaPath}" (strictTypes)`,(0,Ee.checkStrictMode)(hn,pn,hn.opts.strictTypes)}var mn=class{constructor(hn,pn,Sn){if((0,le.validateKeywordUsage)(hn,pn,Sn),this.gen=hn.gen,this.allErrors=hn.allErrors,this.keyword=Sn,this.data=hn.data,this.schema=hn.schema[Sn],this.$data=pn.$data&&hn.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ee.schemaRefOrVal)(hn,this.schema,Sn,this.$data),this.schemaType=pn.schemaType,this.parentSchema=hn.schema,this.params={},this.it=hn,this.def=pn,this.$data)this.schemaCode=hn.gen.const("vSchema",ii(this.$data,hn));else if(this.schemaCode=this.schemaValue,!(0,le.validSchemaType)(this.schema,pn.schemaType,pn.allowUndefined))throw new Error(`${Sn} value must be ${JSON.stringify(pn.schemaType)}`);("code"in pn?pn.trackErrors:pn.errors!==!1)&&(this.errsCount=hn.gen.const("_errs",ye.default.errors))}result(hn,pn,Sn){this.failResult((0,pe.not)(hn),pn,Sn)}failResult(hn,pn,Sn){this.gen.if(hn),Sn?Sn():this.error(),pn?(this.gen.else(),pn(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(hn,pn){this.failResult((0,pe.not)(hn),void 0,pn)}fail(hn){if(hn===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(hn),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(hn){if(!this.$data)return this.fail(hn);const{schemaCode:pn}=this;this.fail((0,pe._)`${pn} !== undefined && (${(0,pe.or)(this.invalid$data(),hn)})`)}error(hn,pn,Sn){if(pn){this.setParams(pn),this._error(hn,Sn),this.setParams({});return}this._error(hn,Sn)}_error(hn,pn){(hn?cr.reportExtraError:cr.reportError)(this,this.def.error,pn)}$dataError(){(0,cr.reportError)(this,this.def.$dataError||cr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,cr.resetErrorsCount)(this.gen,this.errsCount)}ok(hn){this.allErrors||this.gen.if(hn)}setParams(hn,pn){pn?Object.assign(this.params,hn):this.params=hn}block$data(hn,pn,Sn=pe.nil){this.gen.block(()=>{this.check$data(hn,Sn),pn()})}check$data(hn=pe.nil,pn=pe.nil){if(!this.$data)return;const{gen:Sn,schemaCode:Qn,schemaType:Jn,def:ui}=this;Sn.if((0,pe.or)((0,pe._)`${Qn} === undefined`,pn)),hn!==pe.nil&&Sn.assign(hn,!0),(Jn.length||ui.validateSchema)&&(Sn.elseIf(this.invalid$data()),this.$dataError(),hn!==pe.nil&&Sn.assign(hn,!1)),Sn.else()}invalid$data(){const{gen:hn,schemaCode:pn,schemaType:Sn,def:Qn,it:Jn}=this;return(0,pe.or)(ui(),gi());function ui(){if(Sn.length){if(!(pn instanceof pe.Name))throw new Error("ajv implementation error");const di=Array.isArray(Sn)?Sn:[Sn];return(0,pe._)`${(0,ce.checkDataTypes)(di,pn,Jn.opts.strictNumbers,ce.DataType.Wrong)}`}return pe.nil}function gi(){if(Qn.validateSchema){const di=hn.scopeValue("validate$data",{ref:Qn.validateSchema});return(0,pe._)`!${di}(${pn})`}return pe.nil}}subschema(hn,pn){const Sn=(0,ve.getSubschema)(this.it,hn);(0,ve.extendSubschemaData)(Sn,this.it,hn),(0,ve.extendSubschemaMode)(Sn,hn);const Qn={...this.it,...Sn,items:void 0,props:void 0};return Lr(Qn,pn),Qn}mergeEvaluated(hn,pn){const{it:Sn,gen:Qn}=this;!Sn.opts.unevaluated||(Sn.props!==!0&&hn.props!==void 0&&(Sn.props=Ee.mergeEvaluated.props(Qn,hn.props,Sn.props,pn)),Sn.items!==!0&&hn.items!==void 0&&(Sn.items=Ee.mergeEvaluated.items(Qn,hn.items,Sn.items,pn)))}mergeValidEvaluated(hn,pn){const{it:Sn,gen:Qn}=this;if(Sn.opts.unevaluated&&(Sn.props!==!0||Sn.items!==!0))return Qn.if(pn,()=>this.mergeEvaluated(hn,pe.Name)),!0}};v.KeywordCxt=mn;function Nn(hn,pn,Sn,Qn){const Jn=new mn(hn,Sn,pn);"code"in Sn?Sn.code(Jn,Qn):Jn.$data&&Sn.validate?(0,le.funcKeywordCode)(Jn,Sn):"macro"in Sn?(0,le.macroKeywordCode)(Jn,Sn):(Sn.compile||Sn.validate)&&(0,le.funcKeywordCode)(Jn,Sn)}var In=/^\/(?:[^~]|~0|~1)*$/,bn=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ii(hn,{dataLevel:pn,dataNames:Sn,dataPathArr:Qn}){let Jn,ui;if(hn==="")return ye.default.rootData;if(hn[0]==="/"){if(!In.test(hn))throw new Error(`Invalid JSON-pointer: ${hn}`);Jn=hn,ui=ye.default.rootData}else{const yi=bn.exec(hn);if(!yi)throw new Error(`Invalid JSON-pointer: ${hn}`);const li=+yi[1];if(Jn=yi[2],Jn==="#"){if(li>=pn)throw new Error(Ci("property/index",li));return Qn[pn-li]}if(li>pn)throw new Error(Ci("data",li));if(ui=Sn[pn-li],!Jn)return ui}let gi=ui;const di=Jn.split("/");for(const yi of di)yi&&(ui=(0,pe._)`${ui}${(0,pe.getProperty)((0,Ee.unescapeJsonPointer)(yi))}`,gi=(0,pe._)`${gi} && ${ui}`);return gi;function Ci(yi,li){return`Cannot access ${yi} ${li} levels up, current level is ${pn}`}}v.getData=ii}}),require_validation_error=__commonJS$1({"node_modules/ajv/dist/runtime/validation_error.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=class extends Error{constructor(ie){super("validation failed"),this.errors=ie,this.ajv=this.validation=!0}};v.default=k}}),require_ref_error=__commonJS$1({"node_modules/ajv/dist/compile/ref_error.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_resolve(),ie=class extends Error{constructor(ae,ce,fe,le){super(le||`can't resolve reference ${fe} from id ${ce}`),this.missingRef=(0,k.resolveUrl)(ae,ce,fe),this.missingSchema=(0,k.normalizeId)((0,k.getFullPath)(ae,this.missingRef))}};v.default=ie}}),require_compile=__commonJS$1({"node_modules/ajv/dist/compile/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.resolveSchema=v.getCompilingSchema=v.resolveRef=v.compileSchema=v.SchemaEnv=void 0;var k=require_codegen(),ie=require_validation_error(),ae=require_names(),ce=require_resolve(),fe=require_util$1(),le=require_validate(),ve=class{constructor(ur){var jr;this.refs={},this.dynamicAnchors={};let Mr;typeof ur.schema=="object"&&(Mr=ur.schema),this.schema=ur.schema,this.schemaId=ur.schemaId,this.root=ur.root||this,this.baseId=(jr=ur.baseId)!==null&&jr!==void 0?jr:(0,ce.normalizeId)(Mr==null?void 0:Mr[ur.schemaId||"$id"]),this.schemaPath=ur.schemaPath,this.localRefs=ur.localRefs,this.meta=ur.meta,this.$async=Mr==null?void 0:Mr.$async,this.refs={}}};v.SchemaEnv=ve;function pe(ur){const jr=Ee.call(this,ur);if(jr)return jr;const Mr=(0,ce.getFullPath)(this.opts.uriResolver,ur.root.baseId),{es5:Lr,lines:Vr}=this.opts.code,{ownProperties:Gr}=this.opts,Ur=new k.CodeGen(this.scope,{es5:Lr,lines:Vr,ownProperties:Gr});let Qr;ur.$async&&(Qr=Ur.scopeValue("Error",{ref:ie.default,code:(0,k._)`require("ajv/dist/runtime/validation_error").default`}));const vn=Ur.scopeName("validate");ur.validateName=vn;const Yt={gen:Ur,allErrors:this.opts.allErrors,data:ae.default.data,parentData:ae.default.parentData,parentDataProperty:ae.default.parentDataProperty,dataNames:[ae.default.data],dataPathArr:[k.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:Ur.scopeValue("schema",this.opts.code.source===!0?{ref:ur.schema,code:(0,k.stringify)(ur.schema)}:{ref:ur.schema}),validateName:vn,ValidationError:Qr,schema:ur.schema,schemaEnv:ur,rootId:Mr,baseId:ur.baseId||Mr,schemaPath:k.nil,errSchemaPath:ur.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,k._)`""`,opts:this.opts,self:this};let fn;try{this._compilations.add(ur),(0,le.validateFunctionCode)(Yt),Ur.optimize(this.opts.code.optimize);const Xt=Ur.toString();fn=`${Ur.scopeRefs(ae.default.scope)}return ${Xt}`,this.opts.code.process&&(fn=this.opts.code.process(fn,ur));const Kr=new Function(`${ae.default.self}`,`${ae.default.scope}`,fn)(this,this.scope.get());if(this.scope.value(vn,{ref:Kr}),Kr.errors=null,Kr.schema=ur.schema,Kr.schemaEnv=ur,ur.$async&&(Kr.$async=!0),this.opts.code.source===!0&&(Kr.source={validateName:vn,validateCode:Xt,scopeValues:Ur._values}),this.opts.unevaluated){const{props:be,items:kr}=Yt;Kr.evaluated={props:be instanceof k.Name?void 0:be,items:kr instanceof k.Name?void 0:kr,dynamicProps:be instanceof k.Name,dynamicItems:kr instanceof k.Name},Kr.source&&(Kr.source.evaluated=(0,k.stringify)(Kr.evaluated))}return ur.validate=Kr,ur}catch(Xt){throw delete ur.validate,delete ur.validateName,fn&&this.logger.error("Error compiling schema, function code:",fn),Xt}finally{this._compilations.delete(ur)}}v.compileSchema=pe;function ye(ur,jr,Mr){var Lr;Mr=(0,ce.resolveUrl)(this.opts.uriResolver,jr,Mr);const Vr=ur.refs[Mr];if(Vr)return Vr;let Gr=Br.call(this,ur,Mr);if(Gr===void 0){const Ur=(Lr=ur.localRefs)===null||Lr===void 0?void 0:Lr[Mr],{schemaId:Qr}=this.opts;Ur&&(Gr=new ve({schema:Ur,schemaId:Qr,root:ur,baseId:jr}))}if(Gr!==void 0)return ur.refs[Mr]=me.call(this,Gr)}v.resolveRef=ye;function me(ur){return(0,ce.inlineRef)(ur.schema,this.opts.inlineRefs)?ur.schema:ur.validate?ur:pe.call(this,ur)}function Ee(ur){for(const jr of this._compilations)if(cr(jr,ur))return jr}v.getCompilingSchema=Ee;function cr(ur,jr){return ur.schema===jr.schema&&ur.root===jr.root&&ur.baseId===jr.baseId}function Br(ur,jr){let Mr;for(;typeof(Mr=this.refs[jr])=="string";)jr=Mr;return Mr||this.schemas[jr]||$r.call(this,ur,jr)}function $r(ur,jr){const Mr=this.opts.uriResolver.parse(jr),Lr=(0,ce._getFullPath)(this.opts.uriResolver,Mr);let Vr=(0,ce.getFullPath)(this.opts.uriResolver,ur.baseId,void 0);if(Object.keys(ur.schema).length>0&&Lr===Vr)return Or.call(this,Mr,ur);const Gr=(0,ce.normalizeId)(Lr),Ur=this.refs[Gr]||this.schemas[Gr];if(typeof Ur=="string"){const Qr=$r.call(this,ur,Ur);return typeof(Qr==null?void 0:Qr.schema)!="object"?void 0:Or.call(this,Mr,Qr)}if(typeof(Ur==null?void 0:Ur.schema)=="object"){if(Ur.validate||pe.call(this,Ur),Gr===(0,ce.normalizeId)(jr)){const{schema:Qr}=Ur,{schemaId:vn}=this.opts,Yt=Qr[vn];return Yt&&(Vr=(0,ce.resolveUrl)(this.opts.uriResolver,Vr,Yt)),new ve({schema:Qr,schemaId:vn,root:ur,baseId:Vr})}return Or.call(this,Mr,Ur)}}v.resolveSchema=$r;var Pr=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Or(ur,{baseId:jr,schema:Mr,root:Lr}){var Vr;if(((Vr=ur.fragment)===null||Vr===void 0?void 0:Vr[0])!=="/")return;for(const Qr of ur.fragment.slice(1).split("/")){if(typeof Mr=="boolean")return;const vn=Mr[(0,fe.unescapeFragment)(Qr)];if(vn===void 0)return;Mr=vn;const Yt=typeof Mr=="object"&&Mr[this.opts.schemaId];!Pr.has(Qr)&&Yt&&(jr=(0,ce.resolveUrl)(this.opts.uriResolver,jr,Yt))}let Gr;if(typeof Mr!="boolean"&&Mr.$ref&&!(0,fe.schemaHasRulesButRef)(Mr,this.RULES)){const Qr=(0,ce.resolveUrl)(this.opts.uriResolver,jr,Mr.$ref);Gr=$r.call(this,Lr,Qr)}const{schemaId:Ur}=this.opts;if(Gr=Gr||new ve({schema:Mr,schemaId:Ur,root:Lr,baseId:jr}),Gr.schema!==Gr.root.schema)return Gr}}}),require_data=__commonJS$1({"node_modules/ajv/dist/refs/data.json"(v,k){k.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}}}),require_uri_all=__commonJS$1({"node_modules/uri-js/dist/es5/uri.all.js"(v,k){(function(ie,ae){typeof v=="object"&&typeof k<"u"?ae(v):typeof define=="function"&&define.amd?define(["exports"],ae):ae(ie.URI=ie.URI||{})})(v,function(ie){function ae(){for(var Yr=arguments.length,Wt=Array(Yr),ln=0;ln1){Wt[0]=Wt[0].slice(0,-1);for(var qr=Wt.length-1,dn=1;dn= 0x80 (not a basic code point)","invalid-input":"Invalid input"},fn=Pr-Or,Xt=Math.floor,Qt=String.fromCharCode;function Kr(Yr){throw new RangeError(Yt[Yr])}function be(Yr,Wt){for(var ln=[],qr=Yr.length;qr--;)ln[qr]=Wt(Yr[qr]);return ln}function kr(Yr,Wt){var ln=Yr.split("@"),qr="";ln.length>1&&(qr=ln[0]+"@",Yr=ln[1]),Yr=Yr.replace(vn,".");var dn=Yr.split("."),ri=be(dn,Wt).join(".");return qr+ri}function xr(Yr){for(var Wt=[],ln=0,qr=Yr.length;ln=55296&&dn<=56319&&ln>1,Wt+=Xt(Wt/ln);Wt>fn*ur>>1;dn+=Pr)Wt=Xt(Wt/fn);return Xt(dn+(fn+1)*Wt/(Wt+jr))},Jr=function(Wt){var ln=[],qr=Wt.length,dn=0,ri=Vr,Zn=Lr,ai=Wt.lastIndexOf(Gr);ai<0&&(ai=0);for(var bi=0;bi=128&&Kr("not-basic"),ln.push(Wt.charCodeAt(bi));for(var _i=ai>0?ai+1:0;_i=qr&&Kr("invalid-input");var Ni=Jt(Wt.charCodeAt(_i++));(Ni>=Pr||Ni>Xt(($r-dn)/yo))&&Kr("overflow"),dn+=Ni*yo;var oo=Di<=Zn?Or:Di>=Zn+ur?ur:Di-Zn;if(NiXt($r/fo)&&Kr("overflow"),yo*=fo}var co=ln.length+1;Zn=zr(dn-fi,co,fi==0),Xt(dn/co)>$r-ri&&Kr("overflow"),ri+=Xt(dn/co),dn%=co,ln.splice(dn++,0,ri)}return String.fromCodePoint.apply(String,ln)},Nr=function(Wt){var ln=[];Wt=xr(Wt);var qr=Wt.length,dn=Vr,ri=0,Zn=Lr,ai=!0,bi=!1,_i=void 0;try{for(var fi=Wt[Symbol.iterator](),yo;!(ai=(yo=fi.next()).done);ai=!0){var Di=yo.value;Di<128&&ln.push(Qt(Di))}}catch(Co){bi=!0,_i=Co}finally{try{!ai&&fi.return&&fi.return()}finally{if(bi)throw _i}}var Ni=ln.length,oo=Ni;for(Ni&&ln.push(Gr);oo=dn&&loXt(($r-ri)/eo)&&Kr("overflow"),ri+=(fo-dn)*eo,dn=fo;var uo=!0,ho=!1,ro=void 0;try{for(var ci=Wt[Symbol.iterator](),pi;!(uo=(pi=ci.next()).done);uo=!0){var mi=pi.value;if(mi$r&&Kr("overflow"),mi==dn){for(var Si=ri,Ti=Pr;;Ti+=Pr){var xi=Ti<=Zn?Or:Ti>=Zn+ur?ur:Ti-Zn;if(Si>6|192).toString(16).toUpperCase()+"%"+(Wt&63|128).toString(16).toUpperCase():ln="%"+(Wt>>12|224).toString(16).toUpperCase()+"%"+(Wt>>6&63|128).toString(16).toUpperCase()+"%"+(Wt&63|128).toString(16).toUpperCase(),ln}function In(Yr){for(var Wt="",ln=0,qr=Yr.length;ln=194&&dn<224){if(qr-ln>=6){var ri=parseInt(Yr.substr(ln+4,2),16);Wt+=String.fromCharCode((dn&31)<<6|ri&63)}else Wt+=Yr.substr(ln,6);ln+=6}else if(dn>=224){if(qr-ln>=9){var Zn=parseInt(Yr.substr(ln+4,2),16),ai=parseInt(Yr.substr(ln+7,2),16);Wt+=String.fromCharCode((dn&15)<<12|(Zn&63)<<6|ai&63)}else Wt+=Yr.substr(ln,9);ln+=9}else Wt+=Yr.substr(ln,3),ln+=3}return Wt}function bn(Yr,Wt){function ln(qr){var dn=In(qr);return dn.match(Wt.UNRESERVED)?dn:qr}return Yr.scheme&&(Yr.scheme=String(Yr.scheme).replace(Wt.PCT_ENCODED,ln).toLowerCase().replace(Wt.NOT_SCHEME,"")),Yr.userinfo!==void 0&&(Yr.userinfo=String(Yr.userinfo).replace(Wt.PCT_ENCODED,ln).replace(Wt.NOT_USERINFO,Nn).replace(Wt.PCT_ENCODED,le)),Yr.host!==void 0&&(Yr.host=String(Yr.host).replace(Wt.PCT_ENCODED,ln).toLowerCase().replace(Wt.NOT_HOST,Nn).replace(Wt.PCT_ENCODED,le)),Yr.path!==void 0&&(Yr.path=String(Yr.path).replace(Wt.PCT_ENCODED,ln).replace(Yr.scheme?Wt.NOT_PATH:Wt.NOT_PATH_NOSCHEME,Nn).replace(Wt.PCT_ENCODED,le)),Yr.query!==void 0&&(Yr.query=String(Yr.query).replace(Wt.PCT_ENCODED,ln).replace(Wt.NOT_QUERY,Nn).replace(Wt.PCT_ENCODED,le)),Yr.fragment!==void 0&&(Yr.fragment=String(Yr.fragment).replace(Wt.PCT_ENCODED,ln).replace(Wt.NOT_FRAGMENT,Nn).replace(Wt.PCT_ENCODED,le)),Yr}function ii(Yr){return Yr.replace(/^0*(.*)/,"$1")||"0"}function hn(Yr,Wt){var ln=Yr.match(Wt.IPV4ADDRESS)||[],qr=cr(ln,2),dn=qr[1];return dn?dn.split(".").map(ii).join("."):Yr}function pn(Yr,Wt){var ln=Yr.match(Wt.IPV6ADDRESS)||[],qr=cr(ln,3),dn=qr[1],ri=qr[2];if(dn){for(var Zn=dn.toLowerCase().split("::").reverse(),ai=cr(Zn,2),bi=ai[0],_i=ai[1],fi=_i?_i.split(":").map(ii):[],yo=bi.split(":").map(ii),Di=Wt.IPV4ADDRESS.test(yo[yo.length-1]),Ni=Di?7:8,oo=yo.length-Ni,fo=Array(Ni),co=0;co1){var so=fo.slice(0,vo.index),lo=fo.slice(vo.index+vo.length);_o=so.join(":")+"::"+lo.join(":")}else _o=fo.join(":");return ri&&(_o+="%"+ri),_o}else return Yr}var Sn=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Qn="".match(/(){0}/)[1]===void 0;function Jn(Yr){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ln={},qr=Wt.iri!==!1?Ee:me;Wt.reference==="suffix"&&(Yr=(Wt.scheme?Wt.scheme+":":"")+"//"+Yr);var dn=Yr.match(Sn);if(dn){Qn?(ln.scheme=dn[1],ln.userinfo=dn[3],ln.host=dn[4],ln.port=parseInt(dn[5],10),ln.path=dn[6]||"",ln.query=dn[7],ln.fragment=dn[8],isNaN(ln.port)&&(ln.port=dn[5])):(ln.scheme=dn[1]||void 0,ln.userinfo=Yr.indexOf("@")!==-1?dn[3]:void 0,ln.host=Yr.indexOf("//")!==-1?dn[4]:void 0,ln.port=parseInt(dn[5],10),ln.path=dn[6]||"",ln.query=Yr.indexOf("?")!==-1?dn[7]:void 0,ln.fragment=Yr.indexOf("#")!==-1?dn[8]:void 0,isNaN(ln.port)&&(ln.port=Yr.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?dn[4]:void 0)),ln.host&&(ln.host=pn(hn(ln.host,qr),qr)),ln.scheme===void 0&&ln.userinfo===void 0&&ln.host===void 0&&ln.port===void 0&&!ln.path&&ln.query===void 0?ln.reference="same-document":ln.scheme===void 0?ln.reference="relative":ln.fragment===void 0?ln.reference="absolute":ln.reference="uri",Wt.reference&&Wt.reference!=="suffix"&&Wt.reference!==ln.reference&&(ln.error=ln.error||"URI is not a "+Wt.reference+" reference.");var ri=mn[(Wt.scheme||ln.scheme||"").toLowerCase()];if(!Wt.unicodeSupport&&(!ri||!ri.unicodeSupport)){if(ln.host&&(Wt.domainHost||ri&&ri.domainHost))try{ln.host=Gn.toASCII(ln.host.replace(qr.PCT_ENCODED,In).toLowerCase())}catch(Zn){ln.error=ln.error||"Host's domain name can not be converted to ASCII via punycode: "+Zn}bn(ln,me)}else bn(ln,qr);ri&&ri.parse&&ri.parse(ln,Wt)}else ln.error=ln.error||"URI can not be parsed.";return ln}function ui(Yr,Wt){var ln=Wt.iri!==!1?Ee:me,qr=[];return Yr.userinfo!==void 0&&(qr.push(Yr.userinfo),qr.push("@")),Yr.host!==void 0&&qr.push(pn(hn(String(Yr.host),ln),ln).replace(ln.IPV6ADDRESS,function(dn,ri,Zn){return"["+ri+(Zn?"%25"+Zn:"")+"]"})),(typeof Yr.port=="number"||typeof Yr.port=="string")&&(qr.push(":"),qr.push(String(Yr.port))),qr.length?qr.join(""):void 0}var gi=/^\.\.?\//,di=/^\/\.(\/|$)/,Ci=/^\/\.\.(\/|$)/,yi=/^\/?(?:.|\n)*?(?=\/|$)/;function li(Yr){for(var Wt=[];Yr.length;)if(Yr.match(gi))Yr=Yr.replace(gi,"");else if(Yr.match(di))Yr=Yr.replace(di,"/");else if(Yr.match(Ci))Yr=Yr.replace(Ci,"/"),Wt.pop();else if(Yr==="."||Yr==="..")Yr="";else{var ln=Yr.match(yi);if(ln){var qr=ln[0];Yr=Yr.slice(qr.length),Wt.push(qr)}else throw new Error("Unexpected dot segment condition")}return Wt.join("")}function Pi(Yr){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ln=Wt.iri?Ee:me,qr=[],dn=mn[(Wt.scheme||Yr.scheme||"").toLowerCase()];if(dn&&dn.serialize&&dn.serialize(Yr,Wt),Yr.host&&!ln.IPV6ADDRESS.test(Yr.host)){if(Wt.domainHost||dn&&dn.domainHost)try{Yr.host=Wt.iri?Gn.toUnicode(Yr.host):Gn.toASCII(Yr.host.replace(ln.PCT_ENCODED,In).toLowerCase())}catch(ai){Yr.error=Yr.error||"Host's domain name can not be converted to "+(Wt.iri?"Unicode":"ASCII")+" via punycode: "+ai}}bn(Yr,ln),Wt.reference!=="suffix"&&Yr.scheme&&(qr.push(Yr.scheme),qr.push(":"));var ri=ui(Yr,Wt);if(ri!==void 0&&(Wt.reference!=="suffix"&&qr.push("//"),qr.push(ri),Yr.path&&Yr.path.charAt(0)!=="/"&&qr.push("/")),Yr.path!==void 0){var Zn=Yr.path;!Wt.absolutePath&&(!dn||!dn.absolutePath)&&(Zn=li(Zn)),ri===void 0&&(Zn=Zn.replace(/^\/\//,"/%2F")),qr.push(Zn)}return Yr.query!==void 0&&(qr.push("?"),qr.push(Yr.query)),Yr.fragment!==void 0&&(qr.push("#"),qr.push(Yr.fragment)),qr.join("")}function Ai(Yr,Wt){var ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},qr=arguments[3],dn={};return qr||(Yr=Jn(Pi(Yr,ln),ln),Wt=Jn(Pi(Wt,ln),ln)),ln=ln||{},!ln.tolerant&&Wt.scheme?(dn.scheme=Wt.scheme,dn.userinfo=Wt.userinfo,dn.host=Wt.host,dn.port=Wt.port,dn.path=li(Wt.path||""),dn.query=Wt.query):(Wt.userinfo!==void 0||Wt.host!==void 0||Wt.port!==void 0?(dn.userinfo=Wt.userinfo,dn.host=Wt.host,dn.port=Wt.port,dn.path=li(Wt.path||""),dn.query=Wt.query):(Wt.path?(Wt.path.charAt(0)==="/"?dn.path=li(Wt.path):((Yr.userinfo!==void 0||Yr.host!==void 0||Yr.port!==void 0)&&!Yr.path?dn.path="/"+Wt.path:Yr.path?dn.path=Yr.path.slice(0,Yr.path.lastIndexOf("/")+1)+Wt.path:dn.path=Wt.path,dn.path=li(dn.path)),dn.query=Wt.query):(dn.path=Yr.path,Wt.query!==void 0?dn.query=Wt.query:dn.query=Yr.query),dn.userinfo=Yr.userinfo,dn.host=Yr.host,dn.port=Yr.port),dn.scheme=Yr.scheme),dn.fragment=Wt.fragment,dn}function Oi(Yr,Wt,ln){var qr=pe({scheme:"null"},ln);return Pi(Ai(Jn(Yr,qr),Jn(Wt,qr),qr,!0),qr)}function to(Yr,Wt){return typeof Yr=="string"?Yr=Pi(Jn(Yr,Wt),Wt):fe(Yr)==="object"&&(Yr=Jn(Pi(Yr,Wt),Wt)),Yr}function En(Yr,Wt,ln){return typeof Yr=="string"?Yr=Pi(Jn(Yr,ln),ln):fe(Yr)==="object"&&(Yr=Pi(Yr,ln)),typeof Wt=="string"?Wt=Pi(Jn(Wt,ln),ln):fe(Wt)==="object"&&(Wt=Pi(Wt,ln)),Yr===Wt}function Bt(Yr,Wt){return Yr&&Yr.toString().replace(!Wt||!Wt.iri?me.ESCAPE:Ee.ESCAPE,Nn)}function Zt(Yr,Wt){return Yr&&Yr.toString().replace(!Wt||!Wt.iri?me.PCT_ENCODED:Ee.PCT_ENCODED,In)}var Tn={scheme:"http",domainHost:!0,parse:function(Wt,ln){return Wt.host||(Wt.error=Wt.error||"HTTP URIs must have a host."),Wt},serialize:function(Wt,ln){var qr=String(Wt.scheme).toLowerCase()==="https";return(Wt.port===(qr?443:80)||Wt.port==="")&&(Wt.port=void 0),Wt.path||(Wt.path="/"),Wt}},ei={scheme:"https",domainHost:Tn.domainHost,parse:Tn.parse,serialize:Tn.serialize};function zn(Yr){return typeof Yr.secure=="boolean"?Yr.secure:String(Yr.scheme).toLowerCase()==="wss"}var gn={scheme:"ws",domainHost:!0,parse:function(Wt,ln){var qr=Wt;return qr.secure=zn(qr),qr.resourceName=(qr.path||"/")+(qr.query?"?"+qr.query:""),qr.path=void 0,qr.query=void 0,qr},serialize:function(Wt,ln){if((Wt.port===(zn(Wt)?443:80)||Wt.port==="")&&(Wt.port=void 0),typeof Wt.secure=="boolean"&&(Wt.scheme=Wt.secure?"wss":"ws",Wt.secure=void 0),Wt.resourceName){var qr=Wt.resourceName.split("?"),dn=cr(qr,2),ri=dn[0],Zn=dn[1];Wt.path=ri&&ri!=="/"?ri:void 0,Wt.query=Zn,Wt.resourceName=void 0}return Wt.fragment=void 0,Wt}},xn={scheme:"wss",domainHost:gn.domainHost,parse:gn.parse,serialize:gn.serialize},Hn={},Ln="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ti="[0-9A-Fa-f]",oi=ce(ce("%[EFef]"+ti+"%"+ti+ti+"%"+ti+ti)+"|"+ce("%[89A-Fa-f]"+ti+"%"+ti+ti)+"|"+ce("%"+ti+ti)),Ei="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Ri="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Oo=ae(Ri,'[\\"\\\\]'),Ui="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",io=new RegExp(Ln,"g"),So=new RegExp(oi,"g"),$o=new RegExp(ae("[^]",Ei,"[\\.]",'[\\"]',Oo),"g"),mo=new RegExp(ae("[^]",Ln,Ui),"g"),qo=mo;function wo(Yr){var Wt=In(Yr);return Wt.match(io)?Wt:Yr}var Eo={scheme:"mailto",parse:function(Wt,ln){var qr=Wt,dn=qr.to=qr.path?qr.path.split(","):[];if(qr.path=void 0,qr.query){for(var ri=!1,Zn={},ai=qr.query.split("&"),bi=0,_i=ai.length;bi<_i;++bi){var fi=ai[bi].split("=");switch(fi[0]){case"to":for(var yo=fi[1].split(","),Di=0,Ni=yo.length;Dinew RegExp(Xr,zr);Br.code="new RegExp";var $r=["removeAdditional","useDefaults","coerceTypes"],Pr=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Or={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},ur={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},jr=200;function Mr(Xr){var zr,Jr,Nr,Hr,On,Gn,mn,Nn,In,bn,ii,hn,pn,Sn,Qn,Jn,ui,gi,di,Ci,yi,li,Pi,Ai,Oi;const to=Xr.strict,En=(zr=Xr.code)===null||zr===void 0?void 0:zr.optimize,Bt=En===!0||En===void 0?1:En||0,Zt=(Nr=(Jr=Xr.code)===null||Jr===void 0?void 0:Jr.regExp)!==null&&Nr!==void 0?Nr:Br,Tn=(Hr=Xr.uriResolver)!==null&&Hr!==void 0?Hr:cr.default;return{strictSchema:(Gn=(On=Xr.strictSchema)!==null&&On!==void 0?On:to)!==null&&Gn!==void 0?Gn:!0,strictNumbers:(Nn=(mn=Xr.strictNumbers)!==null&&mn!==void 0?mn:to)!==null&&Nn!==void 0?Nn:!0,strictTypes:(bn=(In=Xr.strictTypes)!==null&&In!==void 0?In:to)!==null&&bn!==void 0?bn:"log",strictTuples:(hn=(ii=Xr.strictTuples)!==null&&ii!==void 0?ii:to)!==null&&hn!==void 0?hn:"log",strictRequired:(Sn=(pn=Xr.strictRequired)!==null&&pn!==void 0?pn:to)!==null&&Sn!==void 0?Sn:!1,code:Xr.code?{...Xr.code,optimize:Bt,regExp:Zt}:{optimize:Bt,regExp:Zt},loopRequired:(Qn=Xr.loopRequired)!==null&&Qn!==void 0?Qn:jr,loopEnum:(Jn=Xr.loopEnum)!==null&&Jn!==void 0?Jn:jr,meta:(ui=Xr.meta)!==null&&ui!==void 0?ui:!0,messages:(gi=Xr.messages)!==null&&gi!==void 0?gi:!0,inlineRefs:(di=Xr.inlineRefs)!==null&&di!==void 0?di:!0,schemaId:(Ci=Xr.schemaId)!==null&&Ci!==void 0?Ci:"$id",addUsedSchema:(yi=Xr.addUsedSchema)!==null&&yi!==void 0?yi:!0,validateSchema:(li=Xr.validateSchema)!==null&&li!==void 0?li:!0,validateFormats:(Pi=Xr.validateFormats)!==null&&Pi!==void 0?Pi:!0,unicodeRegExp:(Ai=Xr.unicodeRegExp)!==null&&Ai!==void 0?Ai:!0,int32range:(Oi=Xr.int32range)!==null&&Oi!==void 0?Oi:!0,uriResolver:Tn}}var Lr=class{constructor(Xr={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,Xr=this.opts={...Xr,...Mr(Xr)};const{es5:zr,lines:Jr}=this.opts.code;this.scope=new ve.ValueScope({scope:{},prefixes:Pr,es5:zr,lines:Jr}),this.logger=Xt(Xr.logger);const Nr=Xr.validateFormats;Xr.validateFormats=!1,this.RULES=(0,fe.getRules)(),Vr.call(this,Or,Xr,"NOT SUPPORTED"),Vr.call(this,ur,Xr,"DEPRECATED","warn"),this._metaOpts=Yt.call(this),Xr.formats&&Qr.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),Xr.keywords&&vn.call(this,Xr.keywords),typeof Xr.meta=="object"&&this.addMetaSchema(Xr.meta),Ur.call(this),Xr.validateFormats=Nr}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:Xr,meta:zr,schemaId:Jr}=this.opts;let Nr=Ee;Jr==="id"&&(Nr={...Ee},Nr.id=Nr.$id,delete Nr.$id),zr&&Xr&&this.addMetaSchema(Nr,Nr[Jr],!1)}defaultMeta(){const{meta:Xr,schemaId:zr}=this.opts;return this.opts.defaultMeta=typeof Xr=="object"?Xr[zr]||Xr:void 0}validate(Xr,zr){let Jr;if(typeof Xr=="string"){if(Jr=this.getSchema(Xr),!Jr)throw new Error(`no schema with key or ref "${Xr}"`)}else Jr=this.compile(Xr);const Nr=Jr(zr);return"$async"in Jr||(this.errors=Jr.errors),Nr}compile(Xr,zr){const Jr=this._addSchema(Xr,zr);return Jr.validate||this._compileSchemaEnv(Jr)}compileAsync(Xr,zr){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:Jr}=this.opts;return Nr.call(this,Xr,zr);async function Nr(In,bn){await Hr.call(this,In.$schema);const ii=this._addSchema(In,bn);return ii.validate||On.call(this,ii)}async function Hr(In){In&&!this.getSchema(In)&&await Nr.call(this,{$ref:In},!0)}async function On(In){try{return this._compileSchemaEnv(In)}catch(bn){if(!(bn instanceof ce.default))throw bn;return Gn.call(this,bn),await mn.call(this,bn.missingSchema),On.call(this,In)}}function Gn({missingSchema:In,missingRef:bn}){if(this.refs[In])throw new Error(`AnySchema ${In} is loaded but ${bn} cannot be resolved`)}async function mn(In){const bn=await Nn.call(this,In);this.refs[In]||await Hr.call(this,bn.$schema),this.refs[In]||this.addSchema(bn,In,zr)}async function Nn(In){const bn=this._loading[In];if(bn)return bn;try{return await(this._loading[In]=Jr(In))}finally{delete this._loading[In]}}}addSchema(Xr,zr,Jr,Nr=this.opts.validateSchema){if(Array.isArray(Xr)){for(const On of Xr)this.addSchema(On,void 0,Jr,Nr);return this}let Hr;if(typeof Xr=="object"){const{schemaId:On}=this.opts;if(Hr=Xr[On],Hr!==void 0&&typeof Hr!="string")throw new Error(`schema ${On} must be string`)}return zr=(0,pe.normalizeId)(zr||Hr),this._checkUnique(zr),this.schemas[zr]=this._addSchema(Xr,Jr,zr,Nr,!0),this}addMetaSchema(Xr,zr,Jr=this.opts.validateSchema){return this.addSchema(Xr,zr,!0,Jr),this}validateSchema(Xr,zr){if(typeof Xr=="boolean")return!0;let Jr;if(Jr=Xr.$schema,Jr!==void 0&&typeof Jr!="string")throw new Error("$schema must be a string");if(Jr=Jr||this.opts.defaultMeta||this.defaultMeta(),!Jr)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const Nr=this.validate(Jr,Xr);if(!Nr&&zr){const Hr="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(Hr);else throw new Error(Hr)}return Nr}getSchema(Xr){let zr;for(;typeof(zr=Gr.call(this,Xr))=="string";)Xr=zr;if(zr===void 0){const{schemaId:Jr}=this.opts,Nr=new le.SchemaEnv({schema:{},schemaId:Jr});if(zr=le.resolveSchema.call(this,Nr,Xr),!zr)return;this.refs[Xr]=zr}return zr.validate||this._compileSchemaEnv(zr)}removeSchema(Xr){if(Xr instanceof RegExp)return this._removeAllSchemas(this.schemas,Xr),this._removeAllSchemas(this.refs,Xr),this;switch(typeof Xr){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const zr=Gr.call(this,Xr);return typeof zr=="object"&&this._cache.delete(zr.schema),delete this.schemas[Xr],delete this.refs[Xr],this}case"object":{const zr=Xr;this._cache.delete(zr);let Jr=Xr[this.opts.schemaId];return Jr&&(Jr=(0,pe.normalizeId)(Jr),delete this.schemas[Jr],delete this.refs[Jr]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(Xr){for(const zr of Xr)this.addKeyword(zr);return this}addKeyword(Xr,zr){let Jr;if(typeof Xr=="string")Jr=Xr,typeof zr=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),zr.keyword=Jr);else if(typeof Xr=="object"&&zr===void 0){if(zr=Xr,Jr=zr.keyword,Array.isArray(Jr)&&!Jr.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Kr.call(this,Jr,zr),!zr)return(0,me.eachItem)(Jr,Hr=>be.call(this,Hr)),this;xr.call(this,zr);const Nr={...zr,type:(0,ye.getJSONTypes)(zr.type),schemaType:(0,ye.getJSONTypes)(zr.schemaType)};return(0,me.eachItem)(Jr,Nr.type.length===0?Hr=>be.call(this,Hr,Nr):Hr=>Nr.type.forEach(On=>be.call(this,Hr,Nr,On))),this}getKeyword(Xr){const zr=this.RULES.all[Xr];return typeof zr=="object"?zr.definition:!!zr}removeKeyword(Xr){const{RULES:zr}=this;delete zr.keywords[Xr],delete zr.all[Xr];for(const Jr of zr.rules){const Nr=Jr.rules.findIndex(Hr=>Hr.keyword===Xr);Nr>=0&&Jr.rules.splice(Nr,1)}return this}addFormat(Xr,zr){return typeof zr=="string"&&(zr=new RegExp(zr)),this.formats[Xr]=zr,this}errorsText(Xr=this.errors,{separator:zr=", ",dataVar:Jr="data"}={}){return!Xr||Xr.length===0?"No errors":Xr.map(Nr=>`${Jr}${Nr.instancePath} ${Nr.message}`).reduce((Nr,Hr)=>Nr+zr+Hr)}$dataMetaSchema(Xr,zr){const Jr=this.RULES.all;Xr=JSON.parse(JSON.stringify(Xr));for(const Nr of zr){const Hr=Nr.split("/").slice(1);let On=Xr;for(const Gn of Hr)On=On[Gn];for(const Gn in Jr){const mn=Jr[Gn];if(typeof mn!="object")continue;const{$data:Nn}=mn.definition,In=On[Gn];Nn&&In&&(On[Gn]=Jt(In))}}return Xr}_removeAllSchemas(Xr,zr){for(const Jr in Xr){const Nr=Xr[Jr];(!zr||zr.test(Jr))&&(typeof Nr=="string"?delete Xr[Jr]:Nr&&!Nr.meta&&(this._cache.delete(Nr.schema),delete Xr[Jr]))}}_addSchema(Xr,zr,Jr,Nr=this.opts.validateSchema,Hr=this.opts.addUsedSchema){let On;const{schemaId:Gn}=this.opts;if(typeof Xr=="object")On=Xr[Gn];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof Xr!="boolean")throw new Error("schema must be object or boolean")}let mn=this._cache.get(Xr);if(mn!==void 0)return mn;Jr=(0,pe.normalizeId)(On||Jr);const Nn=pe.getSchemaRefs.call(this,Xr,Jr);return mn=new le.SchemaEnv({schema:Xr,schemaId:Gn,meta:zr,baseId:Jr,localRefs:Nn}),this._cache.set(mn.schema,mn),Hr&&!Jr.startsWith("#")&&(Jr&&this._checkUnique(Jr),this.refs[Jr]=mn),Nr&&this.validateSchema(Xr,!0),mn}_checkUnique(Xr){if(this.schemas[Xr]||this.refs[Xr])throw new Error(`schema with key or id "${Xr}" already exists`)}_compileSchemaEnv(Xr){if(Xr.meta?this._compileMetaSchema(Xr):le.compileSchema.call(this,Xr),!Xr.validate)throw new Error("ajv implementation error");return Xr.validate}_compileMetaSchema(Xr){const zr=this.opts;this.opts=this._metaOpts;try{le.compileSchema.call(this,Xr)}finally{this.opts=zr}}};v.default=Lr,Lr.ValidationError=ae.default,Lr.MissingRefError=ce.default;function Vr(Xr,zr,Jr,Nr="error"){for(const Hr in Xr){const On=Hr;On in zr&&this.logger[Nr](`${Jr}: option ${Hr}. ${Xr[On]}`)}}function Gr(Xr){return Xr=(0,pe.normalizeId)(Xr),this.schemas[Xr]||this.refs[Xr]}function Ur(){const Xr=this.opts.schemas;if(!!Xr)if(Array.isArray(Xr))this.addSchema(Xr);else for(const zr in Xr)this.addSchema(Xr[zr],zr)}function Qr(){for(const Xr in this.opts.formats){const zr=this.opts.formats[Xr];zr&&this.addFormat(Xr,zr)}}function vn(Xr){if(Array.isArray(Xr)){this.addVocabulary(Xr);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const zr in Xr){const Jr=Xr[zr];Jr.keyword||(Jr.keyword=zr),this.addKeyword(Jr)}}function Yt(){const Xr={...this.opts};for(const zr of $r)delete Xr[zr];return Xr}var fn={log(){},warn(){},error(){}};function Xt(Xr){if(Xr===!1)return fn;if(Xr===void 0)return console;if(Xr.log&&Xr.warn&&Xr.error)return Xr;throw new Error("logger must implement log, warn and error methods")}var Qt=/^[a-z_$][a-z0-9_$:-]*$/i;function Kr(Xr,zr){const{RULES:Jr}=this;if((0,me.eachItem)(Xr,Nr=>{if(Jr.keywords[Nr])throw new Error(`Keyword ${Nr} is already defined`);if(!Qt.test(Nr))throw new Error(`Keyword ${Nr} has invalid name`)}),!!zr&&zr.$data&&!("code"in zr||"validate"in zr))throw new Error('$data keyword must have "code" or "validate" function')}function be(Xr,zr,Jr){var Nr;const Hr=zr==null?void 0:zr.post;if(Jr&&Hr)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:On}=this;let Gn=Hr?On.post:On.rules.find(({type:Nn})=>Nn===Jr);if(Gn||(Gn={type:Jr,rules:[]},On.rules.push(Gn)),On.keywords[Xr]=!0,!zr)return;const mn={keyword:Xr,definition:{...zr,type:(0,ye.getJSONTypes)(zr.type),schemaType:(0,ye.getJSONTypes)(zr.schemaType)}};zr.before?kr.call(this,Gn,mn,zr.before):Gn.rules.push(mn),On.all[Xr]=mn,(Nr=zr.implements)===null||Nr===void 0||Nr.forEach(Nn=>this.addKeyword(Nn))}function kr(Xr,zr,Jr){const Nr=Xr.rules.findIndex(Hr=>Hr.keyword===Jr);Nr>=0?Xr.rules.splice(Nr,0,zr):(Xr.rules.push(zr),this.logger.warn(`rule ${Jr} is not defined`))}function xr(Xr){let{metaSchema:zr}=Xr;zr!==void 0&&(Xr.$data&&this.opts.$data&&(zr=Jt(zr)),Xr.validateSchema=this.compile(zr,!0))}var Wr={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Jt(Xr){return{anyOf:[Xr,Wr]}}}}),require_id=__commonJS$1({"node_modules/ajv/dist/vocabularies/core/id.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};v.default=k}}),require_ref=__commonJS$1({"node_modules/ajv/dist/vocabularies/core/ref.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.callRef=v.getValidate=void 0;var k=require_ref_error(),ie=require_code2(),ae=require_codegen(),ce=require_names(),fe=require_compile(),le=require_util$1(),ve={keyword:"$ref",schemaType:"string",code(me){const{gen:Ee,schema:cr,it:Br}=me,{baseId:$r,schemaEnv:Pr,validateName:Or,opts:ur,self:jr}=Br,{root:Mr}=Pr;if((cr==="#"||cr==="#/")&&$r===Mr.baseId)return Vr();const Lr=fe.resolveRef.call(jr,Mr,$r,cr);if(Lr===void 0)throw new k.default(Br.opts.uriResolver,$r,cr);if(Lr instanceof fe.SchemaEnv)return Gr(Lr);return Ur(Lr);function Vr(){if(Pr===Mr)return ye(me,Or,Pr,Pr.$async);const Qr=Ee.scopeValue("root",{ref:Mr});return ye(me,(0,ae._)`${Qr}.validate`,Mr,Mr.$async)}function Gr(Qr){const vn=pe(me,Qr);ye(me,vn,Qr,Qr.$async)}function Ur(Qr){const vn=Ee.scopeValue("schema",ur.code.source===!0?{ref:Qr,code:(0,ae.stringify)(Qr)}:{ref:Qr}),Yt=Ee.name("valid"),fn=me.subschema({schema:Qr,dataTypes:[],schemaPath:ae.nil,topSchemaRef:vn,errSchemaPath:cr},Yt);me.mergeEvaluated(fn),me.ok(Yt)}}};function pe(me,Ee){const{gen:cr}=me;return Ee.validate?cr.scopeValue("validate",{ref:Ee.validate}):(0,ae._)`${cr.scopeValue("wrapper",{ref:Ee})}.validate`}v.getValidate=pe;function ye(me,Ee,cr,Br){const{gen:$r,it:Pr}=me,{allErrors:Or,schemaEnv:ur,opts:jr}=Pr,Mr=jr.passContext?ce.default.this:ae.nil;Br?Lr():Vr();function Lr(){if(!ur.$async)throw new Error("async schema referenced by sync schema");const Qr=$r.let("valid");$r.try(()=>{$r.code((0,ae._)`await ${(0,ie.callValidateCode)(me,Ee,Mr)}`),Ur(Ee),Or||$r.assign(Qr,!0)},vn=>{$r.if((0,ae._)`!(${vn} instanceof ${Pr.ValidationError})`,()=>$r.throw(vn)),Gr(vn),Or||$r.assign(Qr,!1)}),me.ok(Qr)}function Vr(){me.result((0,ie.callValidateCode)(me,Ee,Mr),()=>Ur(Ee),()=>Gr(Ee))}function Gr(Qr){const vn=(0,ae._)`${Qr}.errors`;$r.assign(ce.default.vErrors,(0,ae._)`${ce.default.vErrors} === null ? ${vn} : ${ce.default.vErrors}.concat(${vn})`),$r.assign(ce.default.errors,(0,ae._)`${ce.default.vErrors}.length`)}function Ur(Qr){var vn;if(!Pr.opts.unevaluated)return;const Yt=(vn=cr==null?void 0:cr.validate)===null||vn===void 0?void 0:vn.evaluated;if(Pr.props!==!0)if(Yt&&!Yt.dynamicProps)Yt.props!==void 0&&(Pr.props=le.mergeEvaluated.props($r,Yt.props,Pr.props));else{const fn=$r.var("props",(0,ae._)`${Qr}.evaluated.props`);Pr.props=le.mergeEvaluated.props($r,fn,Pr.props,ae.Name)}if(Pr.items!==!0)if(Yt&&!Yt.dynamicItems)Yt.items!==void 0&&(Pr.items=le.mergeEvaluated.items($r,Yt.items,Pr.items));else{const fn=$r.var("items",(0,ae._)`${Qr}.evaluated.items`);Pr.items=le.mergeEvaluated.items($r,fn,Pr.items,ae.Name)}}}v.callRef=ye,v.default=ve}}),require_core2=__commonJS$1({"node_modules/ajv/dist/vocabularies/core/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_id(),ie=require_ref(),ae=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",k.default,ie.default];v.default=ae}}),require_limitNumber=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=k.operators,ae={maximum:{okStr:"<=",ok:ie.LTE,fail:ie.GT},minimum:{okStr:">=",ok:ie.GTE,fail:ie.LT},exclusiveMaximum:{okStr:"<",ok:ie.LT,fail:ie.GTE},exclusiveMinimum:{okStr:">",ok:ie.GT,fail:ie.LTE}},ce={message:({keyword:le,schemaCode:ve})=>(0,k.str)`must be ${ae[le].okStr} ${ve}`,params:({keyword:le,schemaCode:ve})=>(0,k._)`{comparison: ${ae[le].okStr}, limit: ${ve}}`},fe={keyword:Object.keys(ae),type:"number",schemaType:"number",$data:!0,error:ce,code(le){const{keyword:ve,data:pe,schemaCode:ye}=le;le.fail$data((0,k._)`${pe} ${ae[ve].fail} ${ye} || isNaN(${pe})`)}};v.default=fe}}),require_multipleOf=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie={message:({schemaCode:ce})=>(0,k.str)`must be multiple of ${ce}`,params:({schemaCode:ce})=>(0,k._)`{multipleOf: ${ce}}`},ae={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:ie,code(ce){const{gen:fe,data:le,schemaCode:ve,it:pe}=ce,ye=pe.opts.multipleOfPrecision,me=fe.let("res"),Ee=ye?(0,k._)`Math.abs(Math.round(${me}) - ${me}) > 1e-${ye}`:(0,k._)`${me} !== parseInt(${me})`;ce.fail$data((0,k._)`(${ve} === 0 || (${me} = ${le}/${ve}, ${Ee}))`)}};v.default=ae}}),require_ucs2length=__commonJS$1({"node_modules/ajv/dist/runtime/ucs2length.js"(v){Object.defineProperty(v,"__esModule",{value:!0});function k(ie){const ae=ie.length;let ce=0,fe=0,le;for(;fe=55296&&le<=56319&&fe(0,k._)`{limit: ${le}}`},fe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:ce,code(le){const{keyword:ve,data:pe,schemaCode:ye,it:me}=le,Ee=ve==="maxLength"?k.operators.GT:k.operators.LT,cr=me.opts.unicode===!1?(0,k._)`${pe}.length`:(0,k._)`${(0,ie.useFunc)(le.gen,ae.default)}(${pe})`;le.fail$data((0,k._)`${cr} ${Ee} ${ye}`)}};v.default=fe}}),require_pattern=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/pattern.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2(),ie=require_codegen(),ae={message:({schemaCode:fe})=>(0,ie.str)`must match pattern "${fe}"`,params:({schemaCode:fe})=>(0,ie._)`{pattern: ${fe}}`},ce={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:ae,code(fe){const{data:le,$data:ve,schema:pe,schemaCode:ye,it:me}=fe,Ee=me.opts.unicodeRegExp?"u":"",cr=ve?(0,ie._)`(new RegExp(${ye}, ${Ee}))`:(0,k.usePattern)(fe,pe);fe.fail$data((0,ie._)`!${cr}.test(${le})`)}};v.default=ce}}),require_limitProperties=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie={message({keyword:ce,schemaCode:fe}){const le=ce==="maxProperties"?"more":"fewer";return(0,k.str)`must NOT have ${le} than ${fe} properties`},params:({schemaCode:ce})=>(0,k._)`{limit: ${ce}}`},ae={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:ie,code(ce){const{keyword:fe,data:le,schemaCode:ve}=ce,pe=fe==="maxProperties"?k.operators.GT:k.operators.LT;ce.fail$data((0,k._)`Object.keys(${le}).length ${pe} ${ve}`)}};v.default=ae}}),require_required=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/required.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2(),ie=require_codegen(),ae=require_util$1(),ce={message:({params:{missingProperty:le}})=>(0,ie.str)`must have required property '${le}'`,params:({params:{missingProperty:le}})=>(0,ie._)`{missingProperty: ${le}}`},fe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:ce,code(le){const{gen:ve,schema:pe,schemaCode:ye,data:me,$data:Ee,it:cr}=le,{opts:Br}=cr;if(!Ee&&pe.length===0)return;const $r=pe.length>=Br.loopRequired;if(cr.allErrors?Pr():Or(),Br.strictRequired){const Mr=le.parentSchema.properties,{definedProperties:Lr}=le.it;for(const Vr of pe)if((Mr==null?void 0:Mr[Vr])===void 0&&!Lr.has(Vr)){const Gr=cr.schemaEnv.baseId+cr.errSchemaPath,Ur=`required property "${Vr}" is not defined at "${Gr}" (strictRequired)`;(0,ae.checkStrictMode)(cr,Ur,cr.opts.strictRequired)}}function Pr(){if($r||Ee)le.block$data(ie.nil,ur);else for(const Mr of pe)(0,k.checkReportMissingProp)(le,Mr)}function Or(){const Mr=ve.let("missing");if($r||Ee){const Lr=ve.let("valid",!0);le.block$data(Lr,()=>jr(Mr,Lr)),le.ok(Lr)}else ve.if((0,k.checkMissingProp)(le,pe,Mr)),(0,k.reportMissingProp)(le,Mr),ve.else()}function ur(){ve.forOf("prop",ye,Mr=>{le.setParams({missingProperty:Mr}),ve.if((0,k.noPropertyInData)(ve,me,Mr,Br.ownProperties),()=>le.error())})}function jr(Mr,Lr){le.setParams({missingProperty:Mr}),ve.forOf(Mr,ye,()=>{ve.assign(Lr,(0,k.propertyInData)(ve,me,Mr,Br.ownProperties)),ve.if((0,ie.not)(Lr),()=>{le.error(),ve.break()})},ie.nil)}}};v.default=fe}}),require_limitItems=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/limitItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie={message({keyword:ce,schemaCode:fe}){const le=ce==="maxItems"?"more":"fewer";return(0,k.str)`must NOT have ${le} than ${fe} items`},params:({schemaCode:ce})=>(0,k._)`{limit: ${ce}}`},ae={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:ie,code(ce){const{keyword:fe,data:le,schemaCode:ve}=ce,pe=fe==="maxItems"?k.operators.GT:k.operators.LT;ce.fail$data((0,k._)`${le}.length ${pe} ${ve}`)}};v.default=ae}}),require_equal=__commonJS$1({"node_modules/ajv/dist/runtime/equal.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_fast_deep_equal();k.code='require("ajv/dist/runtime/equal").default',v.default=k}}),require_uniqueItems=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_dataType(),ie=require_codegen(),ae=require_util$1(),ce=require_equal(),fe={message:({params:{i:ve,j:pe}})=>(0,ie.str)`must NOT have duplicate items (items ## ${pe} and ${ve} are identical)`,params:({params:{i:ve,j:pe}})=>(0,ie._)`{i: ${ve}, j: ${pe}}`},le={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:fe,code(ve){const{gen:pe,data:ye,$data:me,schema:Ee,parentSchema:cr,schemaCode:Br,it:$r}=ve;if(!me&&!Ee)return;const Pr=pe.let("valid"),Or=cr.items?(0,k.getSchemaTypes)(cr.items):[];ve.block$data(Pr,ur,(0,ie._)`${Br} === false`),ve.ok(Pr);function ur(){const Vr=pe.let("i",(0,ie._)`${ye}.length`),Gr=pe.let("j");ve.setParams({i:Vr,j:Gr}),pe.assign(Pr,!0),pe.if((0,ie._)`${Vr} > 1`,()=>(jr()?Mr:Lr)(Vr,Gr))}function jr(){return Or.length>0&&!Or.some(Vr=>Vr==="object"||Vr==="array")}function Mr(Vr,Gr){const Ur=pe.name("item"),Qr=(0,k.checkDataTypes)(Or,Ur,$r.opts.strictNumbers,k.DataType.Wrong),vn=pe.const("indices",(0,ie._)`{}`);pe.for((0,ie._)`;${Vr}--;`,()=>{pe.let(Ur,(0,ie._)`${ye}[${Vr}]`),pe.if(Qr,(0,ie._)`continue`),Or.length>1&&pe.if((0,ie._)`typeof ${Ur} == "string"`,(0,ie._)`${Ur} += "_"`),pe.if((0,ie._)`typeof ${vn}[${Ur}] == "number"`,()=>{pe.assign(Gr,(0,ie._)`${vn}[${Ur}]`),ve.error(),pe.assign(Pr,!1).break()}).code((0,ie._)`${vn}[${Ur}] = ${Vr}`)})}function Lr(Vr,Gr){const Ur=(0,ae.useFunc)(pe,ce.default),Qr=pe.name("outer");pe.label(Qr).for((0,ie._)`;${Vr}--;`,()=>pe.for((0,ie._)`${Gr} = ${Vr}; ${Gr}--;`,()=>pe.if((0,ie._)`${Ur}(${ye}[${Vr}], ${ye}[${Gr}])`,()=>{ve.error(),pe.assign(Pr,!1).break(Qr)})))}}};v.default=le}}),require_const=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/const.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_util$1(),ae=require_equal(),ce={message:"must be equal to constant",params:({schemaCode:le})=>(0,k._)`{allowedValue: ${le}}`},fe={keyword:"const",$data:!0,error:ce,code(le){const{gen:ve,data:pe,$data:ye,schemaCode:me,schema:Ee}=le;ye||Ee&&typeof Ee=="object"?le.fail$data((0,k._)`!${(0,ie.useFunc)(ve,ae.default)}(${pe}, ${me})`):le.fail((0,k._)`${Ee} !== ${pe}`)}};v.default=fe}}),require_enum=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/enum.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_util$1(),ae=require_equal(),ce={message:"must be equal to one of the allowed values",params:({schemaCode:le})=>(0,k._)`{allowedValues: ${le}}`},fe={keyword:"enum",schemaType:"array",$data:!0,error:ce,code(le){const{gen:ve,data:pe,$data:ye,schema:me,schemaCode:Ee,it:cr}=le;if(!ye&&me.length===0)throw new Error("enum must have non-empty array");const Br=me.length>=cr.opts.loopEnum;let $r;const Pr=()=>$r!=null?$r:$r=(0,ie.useFunc)(ve,ae.default);let Or;if(Br||ye)Or=ve.let("valid"),le.block$data(Or,ur);else{if(!Array.isArray(me))throw new Error("ajv implementation error");const Mr=ve.const("vSchema",Ee);Or=(0,k.or)(...me.map((Lr,Vr)=>jr(Mr,Vr)))}le.pass(Or);function ur(){ve.assign(Or,!1),ve.forOf("v",Ee,Mr=>ve.if((0,k._)`${Pr()}(${pe}, ${Mr})`,()=>ve.assign(Or,!0).break()))}function jr(Mr,Lr){const Vr=me[Lr];return typeof Vr=="object"&&Vr!==null?(0,k._)`${Pr()}(${pe}, ${Mr}[${Lr}])`:(0,k._)`${pe} === ${Vr}`}}};v.default=fe}}),require_validation=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_limitNumber(),ie=require_multipleOf(),ae=require_limitLength(),ce=require_pattern(),fe=require_limitProperties(),le=require_required(),ve=require_limitItems(),pe=require_uniqueItems(),ye=require_const(),me=require_enum(),Ee=[k.default,ie.default,ae.default,ce.default,fe.default,le.default,ve.default,pe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ye.default,me.default];v.default=Ee}}),require_additionalItems=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateAdditionalItems=void 0;var k=require_codegen(),ie=require_util$1(),ae={message:({params:{len:le}})=>(0,k.str)`must NOT have more than ${le} items`,params:({params:{len:le}})=>(0,k._)`{limit: ${le}}`},ce={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:ae,code(le){const{parentSchema:ve,it:pe}=le,{items:ye}=ve;if(!Array.isArray(ye)){(0,ie.checkStrictMode)(pe,'"additionalItems" is ignored when "items" is not an array of schemas');return}fe(le,ye)}};function fe(le,ve){const{gen:pe,schema:ye,data:me,keyword:Ee,it:cr}=le;cr.items=!0;const Br=pe.const("len",(0,k._)`${me}.length`);if(ye===!1)le.setParams({len:ve.length}),le.pass((0,k._)`${Br} <= ${ve.length}`);else if(typeof ye=="object"&&!(0,ie.alwaysValidSchema)(cr,ye)){const Pr=pe.var("valid",(0,k._)`${Br} <= ${ve.length}`);pe.if((0,k.not)(Pr),()=>$r(Pr)),le.ok(Pr)}function $r(Pr){pe.forRange("i",ve.length,Br,Or=>{le.subschema({keyword:Ee,dataProp:Or,dataPropType:ie.Type.Num},Pr),cr.allErrors||pe.if((0,k.not)(Pr),()=>pe.break())})}}v.validateAdditionalItems=fe,v.default=ce}}),require_items=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/items.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateTuple=void 0;var k=require_codegen(),ie=require_util$1(),ae=require_code2(),ce={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(le){const{schema:ve,it:pe}=le;if(Array.isArray(ve))return fe(le,"additionalItems",ve);pe.items=!0,!(0,ie.alwaysValidSchema)(pe,ve)&&le.ok((0,ae.validateArray)(le))}};function fe(le,ve,pe=le.schema){const{gen:ye,parentSchema:me,data:Ee,keyword:cr,it:Br}=le;Or(me),Br.opts.unevaluated&&pe.length&&Br.items!==!0&&(Br.items=ie.mergeEvaluated.items(ye,pe.length,Br.items));const $r=ye.name("valid"),Pr=ye.const("len",(0,k._)`${Ee}.length`);pe.forEach((ur,jr)=>{(0,ie.alwaysValidSchema)(Br,ur)||(ye.if((0,k._)`${Pr} > ${jr}`,()=>le.subschema({keyword:cr,schemaProp:jr,dataProp:jr},$r)),le.ok($r))});function Or(ur){const{opts:jr,errSchemaPath:Mr}=Br,Lr=pe.length,Vr=Lr===ur.minItems&&(Lr===ur.maxItems||ur[ve]===!1);if(jr.strictTuples&&!Vr){const Gr=`"${cr}" is ${Lr}-tuple, but minItems or maxItems/${ve} are not specified or different at path "${Mr}"`;(0,ie.checkStrictMode)(Br,Gr,jr.strictTuples)}}}v.validateTuple=fe,v.default=ce}}),require_prefixItems=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_items(),ie={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:ae=>(0,k.validateTuple)(ae,"items")};v.default=ie}}),require_items2020=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/items2020.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_util$1(),ae=require_code2(),ce=require_additionalItems(),fe={message:({params:{len:ve}})=>(0,k.str)`must NOT have more than ${ve} items`,params:({params:{len:ve}})=>(0,k._)`{limit: ${ve}}`},le={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:fe,code(ve){const{schema:pe,parentSchema:ye,it:me}=ve,{prefixItems:Ee}=ye;me.items=!0,!(0,ie.alwaysValidSchema)(me,pe)&&(Ee?(0,ce.validateAdditionalItems)(ve,Ee):ve.ok((0,ae.validateArray)(ve)))}};v.default=le}}),require_contains=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/contains.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_util$1(),ae={message:({params:{min:fe,max:le}})=>le===void 0?(0,k.str)`must contain at least ${fe} valid item(s)`:(0,k.str)`must contain at least ${fe} and no more than ${le} valid item(s)`,params:({params:{min:fe,max:le}})=>le===void 0?(0,k._)`{minContains: ${fe}}`:(0,k._)`{minContains: ${fe}, maxContains: ${le}}`},ce={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:ae,code(fe){const{gen:le,schema:ve,parentSchema:pe,data:ye,it:me}=fe;let Ee,cr;const{minContains:Br,maxContains:$r}=pe;me.opts.next?(Ee=Br===void 0?1:Br,cr=$r):Ee=1;const Pr=le.const("len",(0,k._)`${ye}.length`);if(fe.setParams({min:Ee,max:cr}),cr===void 0&&Ee===0){(0,ie.checkStrictMode)(me,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(cr!==void 0&&Ee>cr){(0,ie.checkStrictMode)(me,'"minContains" > "maxContains" is always invalid'),fe.fail();return}if((0,ie.alwaysValidSchema)(me,ve)){let Lr=(0,k._)`${Pr} >= ${Ee}`;cr!==void 0&&(Lr=(0,k._)`${Lr} && ${Pr} <= ${cr}`),fe.pass(Lr);return}me.items=!0;const Or=le.name("valid");cr===void 0&&Ee===1?jr(Or,()=>le.if(Or,()=>le.break())):Ee===0?(le.let(Or,!0),cr!==void 0&&le.if((0,k._)`${ye}.length > 0`,ur)):(le.let(Or,!1),ur()),fe.result(Or,()=>fe.reset());function ur(){const Lr=le.name("_valid"),Vr=le.let("count",0);jr(Lr,()=>le.if(Lr,()=>Mr(Vr)))}function jr(Lr,Vr){le.forRange("i",0,Pr,Gr=>{fe.subschema({keyword:"contains",dataProp:Gr,dataPropType:ie.Type.Num,compositeRule:!0},Lr),Vr()})}function Mr(Lr){le.code((0,k._)`${Lr}++`),cr===void 0?le.if((0,k._)`${Lr} >= ${Ee}`,()=>le.assign(Or,!0).break()):(le.if((0,k._)`${Lr} > ${cr}`,()=>le.assign(Or,!1).break()),Ee===1?le.assign(Or,!0):le.if((0,k._)`${Lr} >= ${Ee}`,()=>le.assign(Or,!0)))}}};v.default=ce}}),require_dependencies=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateSchemaDeps=v.validatePropertyDeps=v.error=void 0;var k=require_codegen(),ie=require_util$1(),ae=require_code2();v.error={message:({params:{property:pe,depsCount:ye,deps:me}})=>{const Ee=ye===1?"property":"properties";return(0,k.str)`must have ${Ee} ${me} when property ${pe} is present`},params:({params:{property:pe,depsCount:ye,deps:me,missingProperty:Ee}})=>(0,k._)`{property: ${pe}, +`)},hn.prototype.renderPartial=function(Xt,Kr,be,kr){if(!!be){var xr=this.getConfigTags(kr),Wr=ce(be)?be(Xt[1]):be[Xt[1]];if(Wr!=null){var Jt=Xt[6],Xr=Xt[5],zr=Xt[4],Jr=Wr;Xr==0&&zr&&(Jr=this.indentPartial(Wr,zr,Jt));var Nr=this.parse(Jr,xr);return this.renderTokens(Nr,Kr,be,Jr,kr)}}},hn.prototype.unescapedValue=function(Xt,Kr){var be=Kr.lookup(Xt[1]);if(be!=null)return be},hn.prototype.escapedValue=function(Xt,Kr,be){var kr=this.getConfigEscape(be)||Yt.escape,xr=Kr.lookup(Xt[1]);if(xr!=null)return typeof xr=="number"&&kr===Yt.escape?String(xr):kr(xr)},hn.prototype.rawValue=function(Xt){return Xt[1]},hn.prototype.getConfigTags=function(Xt){return ae(Xt)?Xt:Xt&&typeof Xt=="object"?Xt.tags:void 0},hn.prototype.getConfigEscape=function(Xt){if(Xt&&typeof Xt=="object"&&!ae(Xt))return Xt.escape};var Yt={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(Qt){fn.templateCache=Qt},get templateCache(){return fn.templateCache}},fn=new hn;return Yt.clearCache=function(){return fn.clearCache()},Yt.parse=function(Xt,Kr){return fn.parse(Xt,Kr)},Yt.render=function(Xt,Kr,be,kr){if(typeof Xt!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+fe(Xt)+'" was given as the first argument for mustache#render(template, view, partials)');return fn.render(Xt,Kr,be,kr)},Yt.escape=$r,Yt.Scanner=Ur,Yt.Context=Qr,Yt.Writer=hn,Yt})}}),require_format$1=__commonJS$1({"node_modules/@near-js/utils/lib/format.js"(v){var k=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.parseNearAmount=v.formatNearAmount=v.NEAR_NOMINATION=v.NEAR_NOMINATION_EXP=void 0;var ie=k(require_bn$1());v.NEAR_NOMINATION_EXP=24,v.NEAR_NOMINATION=new ie.default("10",10).pow(new ie.default(v.NEAR_NOMINATION_EXP,10));var ae=[],ce=new ie.default(10);for(let Ee=0,cr=new ie.default(5);Ee0&&Br.iadd(ae[Ar])}Ee=Br.toString();const $r=Ee.substring(0,Ee.length-v.NEAR_NOMINATION_EXP)||"0",Pr=Ee.substring(Ee.length-v.NEAR_NOMINATION_EXP).padStart(v.NEAR_NOMINATION_EXP,"0").substring(0,cr);return pe(`${me($r)}.${Pr}`)}v.formatNearAmount=fe;function le(Ee){if(!Ee)return null;Ee=ve(Ee);const cr=Ee.split("."),Br=cr[0],$r=cr[1]||"";if(cr.length>2||$r.length>v.NEAR_NOMINATION_EXP)throw new Error(`Cannot parse '${Ee}' as NEAR amount`);return ye(Br+$r.padEnd(v.NEAR_NOMINATION_EXP,"0"))}v.parseNearAmount=le;function ve(Ee){return Ee.replace(/,/g,"").trim()}function pe(Ee){return Ee.replace(/\.?0*$/,"")}function ye(Ee){return Ee=Ee.replace(/^0+/,""),Ee===""?"0":Ee}function me(Ee){const cr=/(-?\d+)(\d{3})/;for(;cr.test(Ee);)Ee=Ee.replace(cr,"$1,$2");return Ee}}}),require_error_messages$1=__commonJS$1({"node_modules/@near-js/utils/lib/errors/error_messages.json"(v,k){k.exports={GasLimitExceeded:"Exceeded the maximum amount of gas allowed to burn per contract",MethodEmptyName:"Method name is empty",WasmerCompileError:"Wasmer compilation error: {{msg}}",GuestPanic:"Smart contract panicked: {{panic_msg}}",Memory:"Error creating Wasm memory",GasExceeded:"Exceeded the prepaid gas",MethodUTF8Error:"Method name is not valid UTF8 string",BadUTF16:"String encoding is bad UTF-16 sequence",WasmTrap:"WebAssembly trap: {{msg}}",GasInstrumentation:"Gas instrumentation failed or contract has denied instructions.",InvalidPromiseIndex:"{{promise_idx}} does not correspond to existing promises",InvalidPromiseResultIndex:"Accessed invalid promise result index: {{result_idx}}",Deserialization:"Error happened while deserializing the module",MethodNotFound:"Contract method is not found",InvalidRegisterId:"Accessed invalid register id: {{register_id}}",InvalidReceiptIndex:"VM Logic returned an invalid receipt index: {{receipt_index}}",EmptyMethodName:"Method name is empty in contract call",CannotReturnJointPromise:"Returning joint promise is currently prohibited",StackHeightInstrumentation:"Stack instrumentation failed",CodeDoesNotExist:"Cannot find contract code for account {{account_id}}",MethodInvalidSignature:"Invalid method signature",IntegerOverflow:"Integer overflow happened during contract execution",MemoryAccessViolation:"MemoryAccessViolation",InvalidIteratorIndex:"Iterator index {{iterator_index}} does not exist",IteratorWasInvalidated:"Iterator {{iterator_index}} was invalidated after its creation by performing a mutable operation on trie",InvalidAccountId:"VM Logic returned an invalid account id",Serialization:"Error happened while serializing the module",CannotAppendActionToJointPromise:"Actions can only be appended to non-joint promise.",InternalMemoryDeclared:"Internal memory declaration has been found in the module",Instantiate:"Error happened during instantiation",ProhibitedInView:"{{method_name}} is not allowed in view calls",InvalidMethodName:"VM Logic returned an invalid method name",BadUTF8:"String encoding is bad UTF-8 sequence",BalanceExceeded:"Exceeded the account balance",LinkError:"Wasm contract link error: {{msg}}",InvalidPublicKey:"VM Logic provided an invalid public key",ActorNoPermission:"Actor {{actor_id}} doesn't have permission to account {{account_id}} to complete the action",LackBalanceForState:"The account {{account_id}} wouldn't have enough balance to cover storage, required to have {{amount}} yoctoNEAR more",ReceiverMismatch:"Wrong AccessKey used for transaction: transaction is sent to receiver_id={{tx_receiver}}, but is signed with function call access key that restricted to only use with receiver_id={{ak_receiver}}. Either change receiver_id in your transaction or switch to use a FullAccessKey.",CostOverflow:"Transaction gas or balance cost is too high",InvalidSignature:"Transaction is not signed with the given public key",AccessKeyNotFound:`Signer "{{account_id}}" doesn't have access key with the given public_key {{public_key}}`,NotEnoughBalance:"Sender {{signer_id}} does not have enough balance {{#formatNear}}{{balance}}{{/formatNear}} for operation costing {{#formatNear}}{{cost}}{{/formatNear}}",NotEnoughAllowance:"Access Key {account_id}:{public_key} does not have enough balance {{#formatNear}}{{allowance}}{{/formatNear}} for transaction costing {{#formatNear}}{{cost}}{{/formatNear}}",Expired:"Transaction has expired",DeleteAccountStaking:"Account {{account_id}} is staking and can not be deleted",SignerDoesNotExist:"Signer {{signer_id}} does not exist",TriesToStake:"Account {{account_id}} tried to stake {{#formatNear}}{{stake}}{{/formatNear}}, but has staked {{#formatNear}}{{locked}}{{/formatNear}} and only has {{#formatNear}}{{balance}}{{/formatNear}}",AddKeyAlreadyExists:"The public key {{public_key}} is already used for an existing access key",InvalidSigner:"Invalid signer account ID {{signer_id}} according to requirements",CreateAccountNotAllowed:"The new account_id {{account_id}} can't be created by {{predecessor_id}}",RequiresFullAccess:"The transaction contains more then one action, but it was signed with an access key which allows transaction to apply only one specific action. To apply more then one actions TX must be signed with a full access key",TriesToUnstake:"Account {{account_id}} is not yet staked, but tried to unstake",InvalidNonce:"Transaction nonce {{tx_nonce}} must be larger than nonce of the used access key {{ak_nonce}}",AccountAlreadyExists:"Can't create a new account {{account_id}}, because it already exists",InvalidChain:"Transaction parent block hash doesn't belong to the current chain",AccountDoesNotExist:"Can't complete the action because account {{account_id}} doesn't exist",MethodNameMismatch:"Transaction method name {{method_name}} isn't allowed by the access key",DeleteAccountHasRent:"Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover the rent",DeleteAccountHasEnoughBalance:"Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover it's storage",InvalidReceiver:"Invalid receiver account ID {{receiver_id}} according to requirements",DeleteKeyDoesNotExist:"Account {{account_id}} tries to remove an access key that doesn't exist",Timeout:"Timeout exceeded",Closed:"Connection closed"}}}),require_rpc_error_schema$1=__commonJS$1({"node_modules/@near-js/utils/lib/errors/rpc_error_schema.json"(v,k){k.exports={schema:{BadUTF16:{name:"BadUTF16",subtypes:[],props:{}},BadUTF8:{name:"BadUTF8",subtypes:[],props:{}},BalanceExceeded:{name:"BalanceExceeded",subtypes:[],props:{}},BreakpointTrap:{name:"BreakpointTrap",subtypes:[],props:{}},CacheError:{name:"CacheError",subtypes:["ReadError","WriteError","DeserializationError","SerializationError"],props:{}},CallIndirectOOB:{name:"CallIndirectOOB",subtypes:[],props:{}},CannotAppendActionToJointPromise:{name:"CannotAppendActionToJointPromise",subtypes:[],props:{}},CannotReturnJointPromise:{name:"CannotReturnJointPromise",subtypes:[],props:{}},CodeDoesNotExist:{name:"CodeDoesNotExist",subtypes:[],props:{account_id:""}},CompilationError:{name:"CompilationError",subtypes:["CodeDoesNotExist","PrepareError","WasmerCompileError"],props:{}},ContractSizeExceeded:{name:"ContractSizeExceeded",subtypes:[],props:{limit:"",size:""}},Deprecated:{name:"Deprecated",subtypes:[],props:{method_name:""}},Deserialization:{name:"Deserialization",subtypes:[],props:{}},DeserializationError:{name:"DeserializationError",subtypes:[],props:{}},EmptyMethodName:{name:"EmptyMethodName",subtypes:[],props:{}},FunctionCallError:{name:"FunctionCallError",subtypes:["CompilationError","LinkError","MethodResolveError","WasmTrap","WasmUnknownError","HostError","EvmError"],props:{}},GasExceeded:{name:"GasExceeded",subtypes:[],props:{}},GasInstrumentation:{name:"GasInstrumentation",subtypes:[],props:{}},GasLimitExceeded:{name:"GasLimitExceeded",subtypes:[],props:{}},GenericTrap:{name:"GenericTrap",subtypes:[],props:{}},GuestPanic:{name:"GuestPanic",subtypes:[],props:{panic_msg:""}},HostError:{name:"HostError",subtypes:["BadUTF16","BadUTF8","GasExceeded","GasLimitExceeded","BalanceExceeded","EmptyMethodName","GuestPanic","IntegerOverflow","InvalidPromiseIndex","CannotAppendActionToJointPromise","CannotReturnJointPromise","InvalidPromiseResultIndex","InvalidRegisterId","IteratorWasInvalidated","MemoryAccessViolation","InvalidReceiptIndex","InvalidIteratorIndex","InvalidAccountId","InvalidMethodName","InvalidPublicKey","ProhibitedInView","NumberOfLogsExceeded","KeyLengthExceeded","ValueLengthExceeded","TotalLogLengthExceeded","NumberPromisesExceeded","NumberInputDataDependenciesExceeded","ReturnedValueLengthExceeded","ContractSizeExceeded","Deprecated"],props:{}},IllegalArithmetic:{name:"IllegalArithmetic",subtypes:[],props:{}},IncorrectCallIndirectSignature:{name:"IncorrectCallIndirectSignature",subtypes:[],props:{}},Instantiate:{name:"Instantiate",subtypes:[],props:{}},IntegerOverflow:{name:"IntegerOverflow",subtypes:[],props:{}},InternalMemoryDeclared:{name:"InternalMemoryDeclared",subtypes:[],props:{}},InvalidAccountId:{name:"InvalidAccountId",subtypes:[],props:{account_id:""}},InvalidIteratorIndex:{name:"InvalidIteratorIndex",subtypes:[],props:{iterator_index:""}},InvalidMethodName:{name:"InvalidMethodName",subtypes:[],props:{}},InvalidPromiseIndex:{name:"InvalidPromiseIndex",subtypes:[],props:{promise_idx:""}},InvalidPromiseResultIndex:{name:"InvalidPromiseResultIndex",subtypes:[],props:{result_idx:""}},InvalidPublicKey:{name:"InvalidPublicKey",subtypes:[],props:{}},InvalidReceiptIndex:{name:"InvalidReceiptIndex",subtypes:[],props:{receipt_index:""}},InvalidRegisterId:{name:"InvalidRegisterId",subtypes:[],props:{register_id:""}},IteratorWasInvalidated:{name:"IteratorWasInvalidated",subtypes:[],props:{iterator_index:""}},KeyLengthExceeded:{name:"KeyLengthExceeded",subtypes:[],props:{length:"",limit:""}},LinkError:{name:"LinkError",subtypes:[],props:{msg:""}},Memory:{name:"Memory",subtypes:[],props:{}},MemoryAccessViolation:{name:"MemoryAccessViolation",subtypes:[],props:{}},MemoryOutOfBounds:{name:"MemoryOutOfBounds",subtypes:[],props:{}},MethodEmptyName:{name:"MethodEmptyName",subtypes:[],props:{}},MethodInvalidSignature:{name:"MethodInvalidSignature",subtypes:[],props:{}},MethodNotFound:{name:"MethodNotFound",subtypes:[],props:{}},MethodResolveError:{name:"MethodResolveError",subtypes:["MethodEmptyName","MethodUTF8Error","MethodNotFound","MethodInvalidSignature"],props:{}},MethodUTF8Error:{name:"MethodUTF8Error",subtypes:[],props:{}},MisalignedAtomicAccess:{name:"MisalignedAtomicAccess",subtypes:[],props:{}},NumberInputDataDependenciesExceeded:{name:"NumberInputDataDependenciesExceeded",subtypes:[],props:{limit:"",number_of_input_data_dependencies:""}},NumberOfLogsExceeded:{name:"NumberOfLogsExceeded",subtypes:[],props:{limit:""}},NumberPromisesExceeded:{name:"NumberPromisesExceeded",subtypes:[],props:{limit:"",number_of_promises:""}},PrepareError:{name:"PrepareError",subtypes:["Serialization","Deserialization","InternalMemoryDeclared","GasInstrumentation","StackHeightInstrumentation","Instantiate","Memory"],props:{}},ProhibitedInView:{name:"ProhibitedInView",subtypes:[],props:{method_name:""}},ReadError:{name:"ReadError",subtypes:[],props:{}},ReturnedValueLengthExceeded:{name:"ReturnedValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},Serialization:{name:"Serialization",subtypes:[],props:{}},SerializationError:{name:"SerializationError",subtypes:[],props:{hash:""}},StackHeightInstrumentation:{name:"StackHeightInstrumentation",subtypes:[],props:{}},StackOverflow:{name:"StackOverflow",subtypes:[],props:{}},TotalLogLengthExceeded:{name:"TotalLogLengthExceeded",subtypes:[],props:{length:"",limit:""}},Unreachable:{name:"Unreachable",subtypes:[],props:{}},ValueLengthExceeded:{name:"ValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},WasmTrap:{name:"WasmTrap",subtypes:["Unreachable","IncorrectCallIndirectSignature","MemoryOutOfBounds","CallIndirectOOB","IllegalArithmetic","MisalignedAtomicAccess","BreakpointTrap","StackOverflow","GenericTrap"],props:{}},WasmUnknownError:{name:"WasmUnknownError",subtypes:[],props:{}},WasmerCompileError:{name:"WasmerCompileError",subtypes:[],props:{msg:""}},WriteError:{name:"WriteError",subtypes:[],props:{}},AccessKeyNotFound:{name:"AccessKeyNotFound",subtypes:[],props:{account_id:"",public_key:""}},AccountAlreadyExists:{name:"AccountAlreadyExists",subtypes:[],props:{account_id:""}},AccountDoesNotExist:{name:"AccountDoesNotExist",subtypes:[],props:{account_id:""}},ActionError:{name:"ActionError",subtypes:["AccountAlreadyExists","AccountDoesNotExist","CreateAccountOnlyByRegistrar","CreateAccountNotAllowed","ActorNoPermission","DeleteKeyDoesNotExist","AddKeyAlreadyExists","DeleteAccountStaking","LackBalanceForState","TriesToUnstake","TriesToStake","InsufficientStake","FunctionCallError","NewReceiptValidationError","OnlyImplicitAccountCreationAllowed"],props:{index:""}},ActionsValidationError:{name:"ActionsValidationError",subtypes:["DeleteActionMustBeFinal","TotalPrepaidGasExceeded","TotalNumberOfActionsExceeded","AddKeyMethodNamesNumberOfBytesExceeded","AddKeyMethodNameLengthExceeded","IntegerOverflow","InvalidAccountId","ContractSizeExceeded","FunctionCallMethodNameLengthExceeded","FunctionCallArgumentsLengthExceeded","UnsuitableStakingKey","FunctionCallZeroAttachedGas"],props:{}},ActorNoPermission:{name:"ActorNoPermission",subtypes:[],props:{account_id:"",actor_id:""}},AddKeyAlreadyExists:{name:"AddKeyAlreadyExists",subtypes:[],props:{account_id:"",public_key:""}},AddKeyMethodNameLengthExceeded:{name:"AddKeyMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},AddKeyMethodNamesNumberOfBytesExceeded:{name:"AddKeyMethodNamesNumberOfBytesExceeded",subtypes:[],props:{limit:"",total_number_of_bytes:""}},BalanceMismatchError:{name:"BalanceMismatchError",subtypes:[],props:{final_accounts_balance:"",final_postponed_receipts_balance:"",incoming_receipts_balance:"",incoming_validator_rewards:"",initial_accounts_balance:"",initial_postponed_receipts_balance:"",new_delayed_receipts_balance:"",other_burnt_amount:"",outgoing_receipts_balance:"",processed_delayed_receipts_balance:"",slashed_burnt_amount:"",tx_burnt_amount:""}},CostOverflow:{name:"CostOverflow",subtypes:[],props:{}},CreateAccountNotAllowed:{name:"CreateAccountNotAllowed",subtypes:[],props:{account_id:"",predecessor_id:""}},CreateAccountOnlyByRegistrar:{name:"CreateAccountOnlyByRegistrar",subtypes:[],props:{account_id:"",predecessor_id:"",registrar_account_id:""}},DeleteAccountStaking:{name:"DeleteAccountStaking",subtypes:[],props:{account_id:""}},DeleteActionMustBeFinal:{name:"DeleteActionMustBeFinal",subtypes:[],props:{}},DeleteKeyDoesNotExist:{name:"DeleteKeyDoesNotExist",subtypes:[],props:{account_id:"",public_key:""}},DepositWithFunctionCall:{name:"DepositWithFunctionCall",subtypes:[],props:{}},Expired:{name:"Expired",subtypes:[],props:{}},FunctionCallArgumentsLengthExceeded:{name:"FunctionCallArgumentsLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallMethodNameLengthExceeded:{name:"FunctionCallMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallZeroAttachedGas:{name:"FunctionCallZeroAttachedGas",subtypes:[],props:{}},InsufficientStake:{name:"InsufficientStake",subtypes:[],props:{account_id:"",minimum_stake:"",stake:""}},InvalidAccessKeyError:{name:"InvalidAccessKeyError",subtypes:["AccessKeyNotFound","ReceiverMismatch","MethodNameMismatch","RequiresFullAccess","NotEnoughAllowance","DepositWithFunctionCall"],props:{}},InvalidChain:{name:"InvalidChain",subtypes:[],props:{}},InvalidDataReceiverId:{name:"InvalidDataReceiverId",subtypes:[],props:{account_id:""}},InvalidNonce:{name:"InvalidNonce",subtypes:[],props:{ak_nonce:"",tx_nonce:""}},InvalidPredecessorId:{name:"InvalidPredecessorId",subtypes:[],props:{account_id:""}},InvalidReceiverId:{name:"InvalidReceiverId",subtypes:[],props:{account_id:""}},InvalidSignature:{name:"InvalidSignature",subtypes:[],props:{}},InvalidSignerId:{name:"InvalidSignerId",subtypes:[],props:{account_id:""}},InvalidTxError:{name:"InvalidTxError",subtypes:["InvalidAccessKeyError","InvalidSignerId","SignerDoesNotExist","InvalidNonce","InvalidReceiverId","InvalidSignature","NotEnoughBalance","LackBalanceForState","CostOverflow","InvalidChain","Expired","ActionsValidation"],props:{}},LackBalanceForState:{name:"LackBalanceForState",subtypes:[],props:{account_id:"",amount:""}},MethodNameMismatch:{name:"MethodNameMismatch",subtypes:[],props:{method_name:""}},NotEnoughAllowance:{name:"NotEnoughAllowance",subtypes:[],props:{account_id:"",allowance:"",cost:"",public_key:""}},NotEnoughBalance:{name:"NotEnoughBalance",subtypes:[],props:{balance:"",cost:"",signer_id:""}},OnlyImplicitAccountCreationAllowed:{name:"OnlyImplicitAccountCreationAllowed",subtypes:[],props:{account_id:""}},ReceiptValidationError:{name:"ReceiptValidationError",subtypes:["InvalidPredecessorId","InvalidReceiverId","InvalidSignerId","InvalidDataReceiverId","ReturnedValueLengthExceeded","NumberInputDataDependenciesExceeded","ActionsValidation"],props:{}},ReceiverMismatch:{name:"ReceiverMismatch",subtypes:[],props:{ak_receiver:"",tx_receiver:""}},RequiresFullAccess:{name:"RequiresFullAccess",subtypes:[],props:{}},SignerDoesNotExist:{name:"SignerDoesNotExist",subtypes:[],props:{signer_id:""}},TotalNumberOfActionsExceeded:{name:"TotalNumberOfActionsExceeded",subtypes:[],props:{limit:"",total_number_of_actions:""}},TotalPrepaidGasExceeded:{name:"TotalPrepaidGasExceeded",subtypes:[],props:{limit:"",total_prepaid_gas:""}},TriesToStake:{name:"TriesToStake",subtypes:[],props:{account_id:"",balance:"",locked:"",stake:""}},TriesToUnstake:{name:"TriesToUnstake",subtypes:[],props:{account_id:""}},TxExecutionError:{name:"TxExecutionError",subtypes:["ActionError","InvalidTxError"],props:{}},UnsuitableStakingKey:{name:"UnsuitableStakingKey",subtypes:[],props:{public_key:""}},Closed:{name:"Closed",subtypes:[],props:{}},InternalError:{name:"InternalError",subtypes:[],props:{}},ServerError:{name:"ServerError",subtypes:["TxExecutionError","Timeout","Closed","InternalError"],props:{}},Timeout:{name:"Timeout",subtypes:[],props:{}}}}}}),require_rpc_errors$1=__commonJS$1({"node_modules/@near-js/utils/lib/errors/rpc_errors.js"(v){var k=v&&v.__importDefault||function(ur){return ur&&ur.__esModule?ur:{default:ur}};Object.defineProperty(v,"__esModule",{value:!0}),v.getErrorTypeFromErrorMessage=v.formatError=v.parseResultError=v.parseRpcError=v.ServerError=void 0;var ie=require_lib2(),ae=k(require_mustache()),ce=require_format$1(),fe=k(require_error_messages$1()),le=k(require_rpc_error_schema$1()),ve={formatNear:()=>(ur,jr)=>(0,ce.formatNearAmount)(jr(ur))},pe=class extends ie.TypedError{};v.ServerError=pe;var ye=class extends pe{};function me(ur){const jr={},Mr=Br(ur,le.default.schema,jr,""),Lr=new pe(cr(Mr,jr),Mr);return Object.assign(Lr,jr),Lr}v.parseRpcError=me;function Ee(ur){const jr=me(ur.status.Failure),Mr=new ye;return Object.assign(Mr,jr),Mr.type=jr.type,Mr.message=jr.message,Mr.transaction_outcome=ur.transaction_outcome,Mr}v.parseResultError=Ee;function cr(ur,jr){return typeof fe.default[ur]=="string"?ae.default.render(fe.default[ur],Object.assign(Object.assign({},jr),ve)):JSON.stringify(jr)}v.formatError=cr;function Br(ur,jr,Mr,Lr){let Vr,Gr,Ur;for(const Qr in jr){if(Ar(ur[Qr]))return ur[Qr];if(Pr(ur[Qr]))Vr=ur[Qr],Gr=jr[Qr],Ur=Qr;else if(Pr(ur.kind)&&Pr(ur.kind[Qr]))Vr=ur.kind[Qr],Gr=jr[Qr],Ur=Qr;else continue}if(Vr&&Gr){for(const Qr of Object.keys(Gr.props))Mr[Qr]=Vr[Qr];return Br(Vr,jr,Mr,Ur)}else return Mr.kind=ur,Lr}function $r(ur,jr){switch(!0){case/^account .*? does not exist while viewing$/.test(ur):return"AccountDoesNotExist";case/^Account .*? doesn't exist$/.test(ur):return"AccountDoesNotExist";case/^access key .*? does not exist while viewing$/.test(ur):return"AccessKeyDoesNotExist";case/wasm execution failed with error: FunctionCallError\(CompilationError\(CodeDoesNotExist/.test(ur):return"CodeDoesNotExist";case/Transaction nonce \d+ must be larger than nonce of the used access key \d+/.test(ur):return"InvalidNonce";default:return jr}}v.getErrorTypeFromErrorMessage=$r;function Pr(ur){return Object.prototype.toString.call(ur)==="[object Object]"}function Ar(ur){return Object.prototype.toString.call(ur)==="[object String]"}}}),require_errors3=__commonJS$1({"node_modules/@near-js/utils/lib/errors/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.parseRpcError=v.parseResultError=v.getErrorTypeFromErrorMessage=v.formatError=v.ServerError=v.logWarning=void 0;var k=require_errors2();Object.defineProperty(v,"logWarning",{enumerable:!0,get:function(){return k.logWarning}});var ie=require_rpc_errors$1();Object.defineProperty(v,"ServerError",{enumerable:!0,get:function(){return ie.ServerError}}),Object.defineProperty(v,"formatError",{enumerable:!0,get:function(){return ie.formatError}}),Object.defineProperty(v,"getErrorTypeFromErrorMessage",{enumerable:!0,get:function(){return ie.getErrorTypeFromErrorMessage}}),Object.defineProperty(v,"parseResultError",{enumerable:!0,get:function(){return ie.parseResultError}}),Object.defineProperty(v,"parseRpcError",{enumerable:!0,get:function(){return ie.parseRpcError}})}}),require_logging=__commonJS$1({"node_modules/@near-js/utils/lib/logging.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.printTxOutcomeLogs=v.printTxOutcomeLogsAndFailures=void 0;var k=require_errors3(),ie=!!process.env.NEAR_NO_LOGS;function ae({contractId:fe,outcome:le}){if(ie)return;const ve=[le.transaction_outcome,...le.receipts_outcome].reduce((pe,ye)=>{const me=typeof ye.outcome.status=="object"&&typeof ye.outcome.status.Failure=="object";return ye.outcome.logs.length||me?pe.concat({receiptIds:ye.outcome.receipt_ids,logs:ye.outcome.logs,failure:typeof ye.outcome.status=="object"&&ye.outcome.status.Failure!==void 0?(0,k.parseRpcError)(ye.outcome.status.Failure):null}):pe},[]);for(const pe of ve)console.log(`Receipt${pe.receiptIds.length>1?"s":""}: ${pe.receiptIds.join(", ")}`),ce({contractId:fe,logs:pe.logs,prefix:" "}),pe.failure&&console.warn(` Failure [${fe}]: ${pe.failure}`)}v.printTxOutcomeLogsAndFailures=ae;function ce({contractId:fe,logs:le,prefix:ve=""}){if(!ie)for(const pe of le)console.log(`${ve}Log [${fe}]: ${pe}`)}v.printTxOutcomeLogs=ce}}),require_provider2$1=__commonJS$1({"node_modules/@near-js/utils/lib/provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getTransactionLastResult=void 0;function k(ie){if(typeof ie.status=="object"&&typeof ie.status.SuccessValue=="string"){const ae=Buffer.from(ie.status.SuccessValue,"base64").toString();try{return JSON.parse(ae)}catch{return ae}}return null}v.getTransactionLastResult=k}}),require_browser$3=__commonJS$1({"node_modules/depd/lib/browser/index.js"(v,k){k.exports=ie;function ie(fe){if(!fe)throw new TypeError("argument namespace is required");function le(ve){}return le._file=void 0,le._ignored=!0,le._namespace=fe,le._traced=!1,le._warned=Object.create(null),le.function=ae,le.property=ce,le}function ae(fe,le){if(typeof fe!="function")throw new TypeError("argument fn must be a function");return fe}function ce(fe,le,ve){if(!fe||typeof fe!="object"&&typeof fe!="function")throw new TypeError("argument obj must be object");var pe=Object.getOwnPropertyDescriptor(fe,le);if(!pe)throw new TypeError("must call property on owner object");if(!pe.configurable)throw new TypeError("property must be configurable")}}}),require_validators$1=__commonJS$1({"node_modules/@near-js/utils/lib/validators.js"(v){var k=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.diffEpochValidators=v.findSeatPrice=void 0;var ie=k(require_bn$1()),ae=k(require_browser$3());function ce(pe,ye,me,Ee){return Ee&&Ee<49?fe(pe,ye):(me||((0,ae.default)("findSeatPrice(validators, maxNumberOfSeats)")("`use `findSeatPrice(validators, maxNumberOfSeats, minimumStakeRatio)` instead"),me=[1,6250]),le(pe,ye,me))}v.findSeatPrice=ce;function fe(pe,ye){const me=pe.map(Pr=>new ie.default(Pr.stake,10)).sort((Pr,Ar)=>Pr.cmp(Ar)),Ee=new ie.default(ye),cr=me.reduce((Pr,Ar)=>Pr.add(Ar));if(cr.lt(Ee))throw new Error("Stakes are below seats");let Br=new ie.default(1),$r=cr.add(new ie.default(1));for(;!Br.eq($r.sub(new ie.default(1)));){const Pr=Br.add($r).div(new ie.default(2));let Ar=!1,ur=new ie.default(0);for(let jr=0;jrnew ie.default(Br.stake,10)).sort((Br,$r)=>Br.cmp($r)),cr=Ee.reduce((Br,$r)=>Br.add($r));return pe.lengthme.set(cr.account_id,cr));const Ee=new Set(ye.map(cr=>cr.account_id));return{newValidators:ye.filter(cr=>!me.has(cr.account_id)),removedValidators:pe.filter(cr=>!Ee.has(cr.account_id)),changedValidators:ye.filter(cr=>me.has(cr.account_id)&&me.get(cr.account_id).stake!=cr.stake).map(cr=>({current:me.get(cr.account_id),next:cr}))}}v.diffEpochValidators=ve}}),require_lib6=__commonJS$1({"node_modules/@near-js/utils/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ae,ce,fe,le){le===void 0&&(le=fe);var ve=Object.getOwnPropertyDescriptor(ce,fe);(!ve||("get"in ve?!ce.__esModule:ve.writable||ve.configurable))&&(ve={enumerable:!0,get:function(){return ce[fe]}}),Object.defineProperty(ae,le,ve)}:function(ae,ce,fe,le){le===void 0&&(le=fe),ae[le]=ce[fe]}),ie=v&&v.__exportStar||function(ae,ce){for(var fe in ae)fe!=="default"&&!Object.prototype.hasOwnProperty.call(ce,fe)&&k(ce,ae,fe)};Object.defineProperty(v,"__esModule",{value:!0}),ie(require_constants2$1(),v),ie(require_errors3(),v),ie(require_format$1(),v),ie(require_logging(),v),ie(require_provider2$1(),v),ie(require_validators$1(),v)}}),require_exponential_backoff$1=__commonJS$1({"node_modules/@near-js/providers/lib/exponential-backoff.js"(v){var k=v&&v.__awaiter||function(ce,fe,le,ve){function pe(ye){return ye instanceof le?ye:new le(function(me){me(ye)})}return new(le||(le=Promise))(function(ye,me){function Ee($r){try{Br(ve.next($r))}catch(Pr){me(Pr)}}function cr($r){try{Br(ve.throw($r))}catch(Pr){me(Pr)}}function Br($r){$r.done?ye($r.value):pe($r.value).then(Ee,cr)}Br((ve=ve.apply(ce,fe||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.exponentialBackoff=void 0;function ie(ce,fe,le,ve){return k(this,void 0,void 0,function*(){let pe=ce;for(let ye=0;yesetTimeout(fe,ce))}}}),require_actions$1=__commonJS$1({"node_modules/@near-js/transactions/lib/actions.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Action=v.SignedDelegate=v.DeleteAccount=v.DeleteKey=v.AddKey=v.Stake=v.Transfer=v.FunctionCall=v.DeployContract=v.CreateAccount=v.IAction=v.AccessKey=v.AccessKeyPermission=v.FullAccessPermission=v.FunctionCallPermission=void 0;var k=require_lib2(),ie=class{constructor(jr){if(Object.keys(jr).length!==1)throw new Error("Enum can only take single value");Object.keys(jr).map(Mr=>{this[Mr]=jr[Mr],this.enum=Mr})}},ae=class extends k.Assignable{};v.FunctionCallPermission=ae;var ce=class extends k.Assignable{};v.FullAccessPermission=ce;var fe=class extends ie{};v.AccessKeyPermission=fe;var le=class extends k.Assignable{};v.AccessKey=le;var ve=class extends k.Assignable{};v.IAction=ve;var pe=class extends ve{};v.CreateAccount=pe;var ye=class extends ve{};v.DeployContract=ye;var me=class extends ve{};v.FunctionCall=me;var Ee=class extends ve{};v.Transfer=Ee;var cr=class extends ve{};v.Stake=cr;var Br=class extends ve{};v.AddKey=Br;var $r=class extends ve{};v.DeleteKey=$r;var Pr=class extends ve{};v.DeleteAccount=Pr;var Ar=class extends ve{};v.SignedDelegate=Ar;var ur=class extends ie{};v.Action=ur}}),require_action_creators=__commonJS$1({"node_modules/@near-js/transactions/lib/action_creators.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.actionCreators=v.stringifyJsonOrBytes=void 0;var k=require_actions$1();function ie(){return new k.AccessKey({permission:new k.AccessKeyPermission({fullAccess:new k.FullAccessPermission({})})})}function ae($r,Pr,Ar){return new k.AccessKey({permission:new k.AccessKeyPermission({functionCall:new k.FunctionCallPermission({receiverId:$r,allowance:Ar,methodNames:Pr})})})}function ce(){return new k.Action({createAccount:new k.CreateAccount({})})}function fe($r){return new k.Action({deployContract:new k.DeployContract({code:$r})})}function le($r){return $r.byteLength!==void 0&&$r.byteLength===$r.length?$r:Buffer.from(JSON.stringify($r))}v.stringifyJsonOrBytes=le;function ve($r,Pr,Ar,ur,jr=le,Mr=!1){return Mr?new k.Action({functionCall:new k.FunctionCall({methodName:$r,args:Pr,gas:Ar,deposit:ur})}):new k.Action({functionCall:new k.FunctionCall({methodName:$r,args:jr(Pr),gas:Ar,deposit:ur})})}function pe($r){return new k.Action({transfer:new k.Transfer({deposit:$r})})}function ye($r,Pr){return new k.Action({stake:new k.Stake({stake:$r,publicKey:Pr})})}function me($r,Pr){return new k.Action({addKey:new k.AddKey({publicKey:$r,accessKey:Pr})})}function Ee($r){return new k.Action({deleteKey:new k.DeleteKey({publicKey:$r})})}function cr($r){return new k.Action({deleteAccount:new k.DeleteAccount({beneficiaryId:$r})})}function Br({delegateAction:$r,signature:Pr}){return new k.Action({signedDelegate:new k.SignedDelegate({delegateAction:$r,signature:Pr})})}v.actionCreators={addKey:me,createAccount:ce,deleteAccount:cr,deleteKey:Ee,deployContract:fe,fullAccessKey:ie,functionCall:ve,functionCallAccessKey:ae,signedDelegate:Br,stake:ye,transfer:pe}}}),require_delegate$1=__commonJS$1({"node_modules/@near-js/transactions/lib/delegate.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.buildDelegateAction=v.DelegateAction=void 0;var k=require_lib2(),ie=require_action_creators(),{addKey:ae,createAccount:ce,deleteAccount:fe,deleteKey:le,deployContract:ve,functionCall:pe,stake:ye,transfer:me}=ie.actionCreators,Ee=class extends k.Assignable{};v.DelegateAction=Ee;function cr({actions:Br,maxBlockHeight:$r,nonce:Pr,publicKey:Ar,receiverId:ur,senderId:jr}){return new Ee({senderId:jr,receiverId:ur,actions:Br.map(Mr=>{if(!Mr.type&&!Mr.params)return Mr;switch(Mr.type){case"AddKey":{const{publicKey:Lr,accessKey:Vr}=Mr.params;return ae(Lr,Vr)}case"CreateAccount":return ce(Mr.params.createAccount);case"DeleteAccount":return fe(Mr.params.deleteAccount);case"DeleteKey":return le(Mr.params.publicKey);case"DeployContract":return ve(Mr.params.code);case"FunctionCall":{const{methodName:Lr,args:Vr,gas:Gr,deposit:Ur}=Mr.params;return pe(Lr,Vr,Gr,Ur)}case"Stake":return ye(Mr.params.stake,Mr.params.publicKey);case"Transfer":{const{deposit:Lr}=Mr.params;return me(Lr)}}throw new Error("Unrecognized action")}),nonce:Pr,maxBlockHeight:$r,publicKey:Ar})}v.buildDelegateAction=cr}}),require_prefix=__commonJS$1({"node_modules/@near-js/transactions/lib/prefix.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.DelegateActionPrefix=void 0;var k=require_lib2(),ie=Math.pow(2,30),ae={MetaTransactions:366},ce=class extends k.Assignable{},fe=class extends ce{constructor(ve){super({prefix:ie+ve})}},le=class extends fe{constructor(){super(ae.MetaTransactions)}};v.DelegateActionPrefix=le}}),require_signature=__commonJS$1({"node_modules/@near-js/transactions/lib/signature.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signature=void 0;var k=require_lib2(),ie=class extends k.Assignable{};v.Signature=ie}}),require_schema=__commonJS$1({"node_modules/@near-js/transactions/lib/schema.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.SCHEMA=v.SignedTransaction=v.Transaction=v.decodeSignedTransaction=v.decodeTransaction=v.encodeTransaction=v.encodeSignedDelegate=v.encodeDelegateAction=void 0;var k=require_lib3(),ie=require_lib2(),ae=require_lib(),ce=require_actions$1(),fe=require_delegate$1(),le=require_prefix(),ve=require_signature();function pe(Pr){return new Uint8Array([...(0,ae.serialize)(v.SCHEMA,new le.DelegateActionPrefix),...(0,ae.serialize)(v.SCHEMA,Pr)])}v.encodeDelegateAction=pe;function ye(Pr){return(0,ae.serialize)(v.SCHEMA,Pr)}v.encodeSignedDelegate=ye;function me(Pr){return(0,ae.serialize)(v.SCHEMA,Pr)}v.encodeTransaction=me;function Ee(Pr){return(0,ae.deserialize)(v.SCHEMA,Br,Pr)}v.decodeTransaction=Ee;function cr(Pr){return(0,ae.deserialize)(v.SCHEMA,$r,Pr)}v.decodeSignedTransaction=cr;var Br=class extends ie.Assignable{encode(){return me(this)}static decode(Pr){return Ee(Pr)}};v.Transaction=Br;var $r=class extends ie.Assignable{encode(){return me(this)}static decode(Pr){return cr(Pr)}};v.SignedTransaction=$r,v.SCHEMA=new Map([[ve.Signature,{kind:"struct",fields:[["keyType","u8"],["data",[64]]]}],[$r,{kind:"struct",fields:[["transaction",Br],["signature",ve.Signature]]}],[Br,{kind:"struct",fields:[["signerId","string"],["publicKey",k.PublicKey],["nonce","u64"],["receiverId","string"],["blockHash",[32]],["actions",[ce.Action]]]}],[k.PublicKey,{kind:"struct",fields:[["keyType","u8"],["data",[32]]]}],[ce.AccessKey,{kind:"struct",fields:[["nonce","u64"],["permission",ce.AccessKeyPermission]]}],[ce.AccessKeyPermission,{kind:"enum",field:"enum",values:[["functionCall",ce.FunctionCallPermission],["fullAccess",ce.FullAccessPermission]]}],[ce.FunctionCallPermission,{kind:"struct",fields:[["allowance",{kind:"option",type:"u128"}],["receiverId","string"],["methodNames",["string"]]]}],[ce.FullAccessPermission,{kind:"struct",fields:[]}],[ce.Action,{kind:"enum",field:"enum",values:[["createAccount",ce.CreateAccount],["deployContract",ce.DeployContract],["functionCall",ce.FunctionCall],["transfer",ce.Transfer],["stake",ce.Stake],["addKey",ce.AddKey],["deleteKey",ce.DeleteKey],["deleteAccount",ce.DeleteAccount],["signedDelegate",ce.SignedDelegate]]}],[ce.CreateAccount,{kind:"struct",fields:[]}],[ce.DeployContract,{kind:"struct",fields:[["code",["u8"]]]}],[ce.FunctionCall,{kind:"struct",fields:[["methodName","string"],["args",["u8"]],["gas","u64"],["deposit","u128"]]}],[ce.Transfer,{kind:"struct",fields:[["deposit","u128"]]}],[ce.Stake,{kind:"struct",fields:[["stake","u128"],["publicKey",k.PublicKey]]}],[ce.AddKey,{kind:"struct",fields:[["publicKey",k.PublicKey],["accessKey",ce.AccessKey]]}],[ce.DeleteKey,{kind:"struct",fields:[["publicKey",k.PublicKey]]}],[ce.DeleteAccount,{kind:"struct",fields:[["beneficiaryId","string"]]}],[fe.DelegateAction,{kind:"struct",fields:[["senderId","string"],["receiverId","string"],["actions",[ce.Action]],["nonce","u64"],["maxBlockHeight","u64"],["publicKey",k.PublicKey]]}],[le.DelegateActionPrefix,{kind:"struct",fields:[["prefix","u32"]]}],[ce.SignedDelegate,{kind:"struct",fields:[["delegateAction",fe.DelegateAction],["signature",ve.Signature]]}]])}}),require_create_transaction=__commonJS$1({"node_modules/@near-js/transactions/lib/create_transaction.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.createTransaction=void 0;var k=require_schema();function ie(ae,ce,fe,le,ve,pe){return new k.Transaction({signerId:ae,publicKey:ce,nonce:le,receiverId:fe,actions:ve,blockHash:pe})}v.createTransaction=ie}}),require_sign=__commonJS$1({"node_modules/@near-js/transactions/lib/sign.js"(v){var k=v&&v.__awaiter||function(Ee,cr,Br,$r){function Pr(Ar){return Ar instanceof Br?Ar:new Br(function(ur){ur(Ar)})}return new(Br||(Br=Promise))(function(Ar,ur){function jr(Vr){try{Lr($r.next(Vr))}catch(Gr){ur(Gr)}}function Mr(Vr){try{Lr($r.throw(Vr))}catch(Gr){ur(Gr)}}function Lr(Vr){Vr.done?Ar(Vr.value):Pr(Vr.value).then(jr,Mr)}Lr(($r=$r.apply(Ee,cr||[])).next())})},ie=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.signDelegateAction=v.signTransaction=void 0;var ae=ie(require_sha256$2()),ce=require_actions$1(),fe=require_create_transaction(),le=require_schema(),ve=require_signature();function pe(Ee,cr,Br,$r){return k(this,void 0,void 0,function*(){const Pr=(0,le.encodeTransaction)(Ee),Ar=new Uint8Array(ae.default.sha256.array(Pr)),ur=yield cr.signMessage(Pr,Br,$r),jr=new le.SignedTransaction({transaction:Ee,signature:new ve.Signature({keyType:Ee.publicKey.keyType,data:ur.signature})});return[Ar,jr]})}function ye(...Ee){return k(this,void 0,void 0,function*(){if(Ee[0].constructor===le.Transaction){const[cr,Br,$r,Pr]=Ee;return pe(cr,Br,$r,Pr)}else{const[cr,Br,$r,Pr,Ar,ur,jr]=Ee,Mr=yield Ar.getPublicKey(ur,jr),Lr=(0,fe.createTransaction)(ur,Mr,cr,Br,$r,Pr);return pe(Lr,Ar,ur,jr)}})}v.signTransaction=ye;function me({delegateAction:Ee,signer:cr}){return k(this,void 0,void 0,function*(){const Br=(0,le.encodeDelegateAction)(Ee),$r=yield cr.sign(Br),Pr=new ce.SignedDelegate({delegateAction:Ee,signature:new ve.Signature({keyType:Ee.publicKey.keyType,data:$r})});return{hash:new Uint8Array(ae.default.sha256.array(Br)),signedDelegateAction:Pr}})}v.signDelegateAction=me}}),require_lib7=__commonJS$1({"node_modules/@near-js/transactions/lib/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ae,ce,fe,le){le===void 0&&(le=fe);var ve=Object.getOwnPropertyDescriptor(ce,fe);(!ve||("get"in ve?!ce.__esModule:ve.writable||ve.configurable))&&(ve={enumerable:!0,get:function(){return ce[fe]}}),Object.defineProperty(ae,le,ve)}:function(ae,ce,fe,le){le===void 0&&(le=fe),ae[le]=ce[fe]}),ie=v&&v.__exportStar||function(ae,ce){for(var fe in ae)fe!=="default"&&!Object.prototype.hasOwnProperty.call(ce,fe)&&k(ce,ae,fe)};Object.defineProperty(v,"__esModule",{value:!0}),ie(require_action_creators(),v),ie(require_actions$1(),v),ie(require_create_transaction(),v),ie(require_delegate$1(),v),ie(require_schema(),v),ie(require_sign(),v),ie(require_signature(),v)}}),require_provider3=__commonJS$1({"node_modules/@near-js/providers/lib/provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Provider=void 0;var k=class{};v.Provider=k}}),require_browser2$3=__commonJS$1({"node_modules/http-errors/node_modules/depd/lib/browser/index.js"(v,k){k.exports=ie;function ie(fe){if(!fe)throw new TypeError("argument namespace is required");function le(ve){}return le._file=void 0,le._ignored=!0,le._namespace=fe,le._traced=!1,le._warned=Object.create(null),le.function=ae,le.property=ce,le}function ae(fe,le){if(typeof fe!="function")throw new TypeError("argument fn must be a function");return fe}function ce(fe,le,ve){if(!fe||typeof fe!="object"&&typeof fe!="function")throw new TypeError("argument obj must be object");var pe=Object.getOwnPropertyDescriptor(fe,le);if(!pe)throw new TypeError("must call property on owner object");if(!pe.configurable)throw new TypeError("property must be configurable")}}}),require_setprototypeof=__commonJS$1({"node_modules/setprototypeof/index.js"(v,k){k.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?ie:ae);function ie(ce,fe){return ce.__proto__=fe,ce}function ae(ce,fe){for(var le in fe)Object.prototype.hasOwnProperty.call(ce,le)||(ce[le]=fe[le]);return ce}}}),require_codes=__commonJS$1({"node_modules/statuses/codes.json"(v,k){k.exports={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"(Unused)",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}}}),require_statuses=__commonJS$1({"node_modules/statuses/index.js"(v,k){var ie=require_codes();k.exports=ce,ce.STATUS_CODES=ie,ce.codes=ae(ce,ie),ce.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},ce.empty={204:!0,205:!0,304:!0},ce.retry={502:!0,503:!0,504:!0};function ae(fe,le){var ve=[];return Object.keys(le).forEach(function(ye){var me=le[ye],Ee=Number(ye);fe[Ee]=me,fe[me]=Ee,fe[me.toLowerCase()]=Ee,ve.push(Ee)}),ve}function ce(fe){if(typeof fe=="number"){if(!ce[fe])throw new Error("invalid status code: "+fe);return fe}if(typeof fe!="string")throw new TypeError("code must be a number or string");var le=parseInt(fe,10);if(!isNaN(le)){if(!ce[le])throw new Error("invalid status code: "+le);return le}if(le=ce[fe.toLowerCase()],!le)throw new Error('invalid status message: "'+fe+'"');return le}}}),require_inherits_browser=__commonJS$1({"node_modules/inherits/inherits_browser.js"(v,k){typeof Object.create=="function"?k.exports=function(ae,ce){ce&&(ae.super_=ce,ae.prototype=Object.create(ce.prototype,{constructor:{value:ae,enumerable:!1,writable:!0,configurable:!0}}))}:k.exports=function(ae,ce){if(ce){ae.super_=ce;var fe=function(){};fe.prototype=ce.prototype,ae.prototype=new fe,ae.prototype.constructor=ae}}}}),require_toidentifier=__commonJS$1({"node_modules/toidentifier/index.js"(v,k){k.exports=ie;function ie(ae){return ae.split(" ").map(function(ce){return ce.slice(0,1).toUpperCase()+ce.slice(1)}).join("").replace(/[^ _0-9a-z]/gi,"")}}}),require_http_errors=__commonJS$1({"node_modules/http-errors/index.js"(v,k){var ie=require_browser2$3()("http-errors"),ae=require_setprototypeof(),ce=require_statuses(),fe=require_inherits_browser(),le=require_toidentifier();k.exports=pe,k.exports.HttpError=ye(),k.exports.isHttpError=Ee(k.exports.HttpError),$r(k.exports,ce.codes,k.exports.HttpError);function ve(Ar){return Number(String(Ar).charAt(0)+"00")}function pe(){for(var Ar,ur,jr=500,Mr={},Lr=0;Lr=600)&&ie("non-error status code; use only 4xx or 5xx status codes"),(typeof jr!="number"||!ce[jr]&&(jr<400||jr>=600))&&(jr=500);var Gr=pe[jr]||pe[ve(jr)];Ar||(Ar=Gr?new Gr(ur):new Error(ur||ce[jr]),Error.captureStackTrace(Ar,pe)),(!Gr||!(Ar instanceof Gr)||Ar.status!==jr)&&(Ar.expose=jr<500,Ar.status=Ar.statusCode=jr);for(var Ur in Mr)Ur!=="status"&&Ur!=="statusCode"&&(Ar[Ur]=Mr[Ur]);return Ar}function ye(){function Ar(){throw new TypeError("cannot construct abstract class")}return fe(Ar,Error),Ar}function me(Ar,ur,jr){var Mr=Pr(ur);function Lr(Vr){var Gr=Vr!=null?Vr:ce[jr],Ur=new Error(Gr);return Error.captureStackTrace(Ur,Lr),ae(Ur,Lr.prototype),Object.defineProperty(Ur,"message",{enumerable:!0,configurable:!0,value:Gr,writable:!0}),Object.defineProperty(Ur,"name",{enumerable:!1,configurable:!0,value:Mr,writable:!0}),Ur}return fe(Lr,Ar),Br(Lr,Mr),Lr.prototype.status=jr,Lr.prototype.statusCode=jr,Lr.prototype.expose=!0,Lr}function Ee(Ar){return function(jr){return!jr||typeof jr!="object"?!1:jr instanceof Ar?!0:jr instanceof Error&&typeof jr.expose=="boolean"&&typeof jr.statusCode=="number"&&jr.status===jr.statusCode}}function cr(Ar,ur,jr){var Mr=Pr(ur);function Lr(Vr){var Gr=Vr!=null?Vr:ce[jr],Ur=new Error(Gr);return Error.captureStackTrace(Ur,Lr),ae(Ur,Lr.prototype),Object.defineProperty(Ur,"message",{enumerable:!0,configurable:!0,value:Gr,writable:!0}),Object.defineProperty(Ur,"name",{enumerable:!1,configurable:!0,value:Mr,writable:!0}),Ur}return fe(Lr,Ar),Br(Lr,Mr),Lr.prototype.status=jr,Lr.prototype.statusCode=jr,Lr.prototype.expose=!1,Lr}function Br(Ar,ur){var jr=Object.getOwnPropertyDescriptor(Ar,"name");jr&&jr.configurable&&(jr.value=ur,Object.defineProperty(Ar,"name",jr))}function $r(Ar,ur,jr){ur.forEach(function(Lr){var Vr,Gr=le(ce[Lr]);switch(ve(Lr)){case 400:Vr=me(jr,Gr,Lr);break;case 500:Vr=cr(jr,Gr,Lr);break}Vr&&(Ar[Lr]=Vr,Ar[Gr]=Vr)}),Ar["I'mateapot"]=ie.function(Ar.ImATeapot,`"I'mateapot"; use "ImATeapot" instead`)}function Pr(Ar){return Ar.substr(-5)!=="Error"?Ar+"Error":Ar}}}),require_browser3$3=__commonJS$1({"node_modules/node-fetch/browser.js"(v,k){var ie=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof ae<"u")return ae;throw new Error("unable to locate globalThis object")},ae=ie();k.exports=v=ae.fetch,ae.fetch&&(v.default=ae.fetch.bind(ae)),v.Headers=ae.Headers,v.Request=ae.Request,v.Response=ae.Response}}),require_http=__commonJS$1({"browser-external:http"(v,k){k.exports={}}}),require_https=__commonJS$1({"browser-external:https"(v,k){k.exports={}}}),require_fetch=__commonJS$1({"node_modules/@near-js/providers/lib/fetch.js"(v){var k=v&&v.__importDefault||function(ye){return ye&&ye.__esModule?ye:{default:ye}};Object.defineProperty(v,"__esModule",{value:!0});var ie=k(require_browser3$3()),ae=k(require_http()),ce=k(require_https()),fe=new ae.default.Agent({keepAlive:!0}),le=new ce.default.Agent({keepAlive:!0});function ve(ye){return ye.protocol==="http:"?fe:le}function pe(ye,me){return(0,ie.default)(ye,Object.assign({agent:ve(new URL(ye.toString()))},me))}v.default=pe}}),require_fetch_json=__commonJS$1({"node_modules/@near-js/providers/lib/fetch_json.js"(v){var k=v&&v.__createBinding||(Object.create?function($r,Pr,Ar,ur){ur===void 0&&(ur=Ar);var jr=Object.getOwnPropertyDescriptor(Pr,Ar);(!jr||("get"in jr?!Pr.__esModule:jr.writable||jr.configurable))&&(jr={enumerable:!0,get:function(){return Pr[Ar]}}),Object.defineProperty($r,ur,jr)}:function($r,Pr,Ar,ur){ur===void 0&&(ur=Ar),$r[ur]=Pr[Ar]}),ie=v&&v.__setModuleDefault||(Object.create?function($r,Pr){Object.defineProperty($r,"default",{enumerable:!0,value:Pr})}:function($r,Pr){$r.default=Pr}),ae=v&&v.__importStar||function($r){if($r&&$r.__esModule)return $r;var Pr={};if($r!=null)for(var Ar in $r)Ar!=="default"&&Object.prototype.hasOwnProperty.call($r,Ar)&&k(Pr,$r,Ar);return ie(Pr,$r),Pr},ce=v&&v.__awaiter||function($r,Pr,Ar,ur){function jr(Mr){return Mr instanceof Ar?Mr:new Ar(function(Lr){Lr(Mr)})}return new(Ar||(Ar=Promise))(function(Mr,Lr){function Vr(Qr){try{Ur(ur.next(Qr))}catch(hn){Lr(hn)}}function Gr(Qr){try{Ur(ur.throw(Qr))}catch(hn){Lr(hn)}}function Ur(Qr){Qr.done?Mr(Qr.value):jr(Qr.value).then(Vr,Gr)}Ur((ur=ur.apply($r,Pr||[])).next())})},fe=v&&v.__importDefault||function($r){return $r&&$r.__esModule?$r:{default:$r}};Object.defineProperty(v,"__esModule",{value:!0}),v.fetchJson=void 0;var le=require_lib2(),ve=fe(require_http_errors()),pe=require_exponential_backoff$1(),ye=1e3,me=1.5,Ee=10,cr=(...$r)=>!process.env.NEAR_NO_LOGS&&console.warn(...$r);function Br($r,Pr){return ce(this,void 0,void 0,function*(){let Ar={url:null};typeof $r=="string"?Ar.url=$r:Ar=$r;const ur=yield(0,pe.exponentialBackoff)(ye,Ee,me,()=>ce(this,void 0,void 0,function*(){try{globalThis.fetch||(globalThis.fetch=(yield Promise.resolve().then(()=>ae(require_fetch()))).default);const jr=yield globalThis.fetch(Ar.url,{method:Pr?"POST":"GET",body:Pr||void 0,headers:Object.assign(Object.assign({},Ar.headers),{"Content-Type":"application/json"})});if(!jr.ok){if(jr.status===503)return cr(`Retrying HTTP request for ${Ar.url} as it's not available now`),null;throw(0,ve.default)(jr.status,yield jr.text())}return jr}catch(jr){if(jr.toString().includes("FetchError")||jr.toString().includes("Failed to fetch"))return cr(`Retrying HTTP request for ${Ar.url} because of error: ${jr}`),null;throw jr}}));if(!ur)throw new le.TypedError(`Exceeded ${Ee} attempts for ${Ar.url}.`,"RetriesExceeded");return yield ur.json()})}v.fetchJson=Br}}),require_json_rpc_provider$1=__commonJS$1({"node_modules/@near-js/providers/lib/json-rpc-provider.js"(v){var k=v&&v.__awaiter||function(Pr,Ar,ur,jr){function Mr(Lr){return Lr instanceof ur?Lr:new ur(function(Vr){Vr(Lr)})}return new(ur||(ur=Promise))(function(Lr,Vr){function Gr(hn){try{Qr(jr.next(hn))}catch(Yt){Vr(Yt)}}function Ur(hn){try{Qr(jr.throw(hn))}catch(Yt){Vr(Yt)}}function Qr(hn){hn.done?Lr(hn.value):Mr(hn.value).then(Gr,Ur)}Qr((jr=jr.apply(Pr,Ar||[])).next())})},ie=v&&v.__rest||function(Pr,Ar){var ur={};for(var jr in Pr)Object.prototype.hasOwnProperty.call(Pr,jr)&&Ar.indexOf(jr)<0&&(ur[jr]=Pr[jr]);if(Pr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mr=0,jr=Object.getOwnPropertySymbols(Pr);Mrk(this,void 0,void 0,function*(){try{const Mr={method:Pr,params:Ar,id:Br++,jsonrpc:"2.0"},Lr=yield(0,ye.fetchJson)(this.connection,JSON.stringify(Mr));if(Lr.error){if(typeof Lr.error.data=="object")throw typeof Lr.error.data.error_message=="string"&&typeof Lr.error.data.error_type=="string"?new ce.TypedError(Lr.error.data.error_message,Lr.error.data.error_type):(0,ae.parseRpcError)(Lr.error.data);{const Vr=`[${Lr.error.code}] ${Lr.error.message}: ${Lr.error.data}`;throw Lr.error.data==="Timeout"||Vr.includes("Timeout error")||Vr.includes("query has timed out")?new ce.TypedError(Vr,"TimeoutError"):new ce.TypedError(Vr,(0,ae.getErrorTypeFromErrorMessage)(Lr.error.data,Lr.error.name))}}return Lr}catch(Mr){if(Mr.type==="TimeoutError")return process.env.NEAR_NO_LOGS||console.warn(`Retrying request to ${Pr} as it has timed out`,Ar),null;throw Mr}})),{result:jr}=ur;if(typeof jr>"u")throw new ce.TypedError(`Exceeded ${me} attempts for request to ${Pr}.`,"RetriesExceeded");return jr})}};v.JsonRpcProvider=$r}}),require_lib8=__commonJS$1({"node_modules/@near-js/providers/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.fetchJson=v.Provider=v.JsonRpcProvider=v.exponentialBackoff=void 0;var k=require_exponential_backoff$1();Object.defineProperty(v,"exponentialBackoff",{enumerable:!0,get:function(){return k.exponentialBackoff}});var ie=require_json_rpc_provider$1();Object.defineProperty(v,"JsonRpcProvider",{enumerable:!0,get:function(){return ie.JsonRpcProvider}});var ae=require_provider3();Object.defineProperty(v,"Provider",{enumerable:!0,get:function(){return ae.Provider}});var ce=require_fetch_json();Object.defineProperty(v,"fetchJson",{enumerable:!0,get:function(){return ce.fetchJson}})}}),require_provider4=__commonJS$1({"node_modules/near-api-js/lib/providers/provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.FinalExecutionStatusBasic=v.ExecutionStatusBasic=v.IdType=v.Provider=v.getTransactionLastResult=void 0;var k=require_lib6();Object.defineProperty(v,"getTransactionLastResult",{enumerable:!0,get:function(){return k.getTransactionLastResult}});var ie=require_lib8();Object.defineProperty(v,"Provider",{enumerable:!0,get:function(){return ie.Provider}});var ae=require_lib2();Object.defineProperty(v,"IdType",{enumerable:!0,get:function(){return ae.IdType}}),Object.defineProperty(v,"ExecutionStatusBasic",{enumerable:!0,get:function(){return ae.ExecutionStatusBasic}}),Object.defineProperty(v,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return ae.FinalExecutionStatusBasic}})}}),require_json_rpc_provider2=__commonJS$1({"node_modules/near-api-js/lib/providers/json-rpc-provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.JsonRpcProvider=v.TypedError=v.ErrorContext=void 0;var k=require_lib2();Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return k.ErrorContext}}),Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return k.TypedError}});var ie=require_lib8();Object.defineProperty(v,"JsonRpcProvider",{enumerable:!0,get:function(){return ie.JsonRpcProvider}})}}),require_providers$1=__commonJS$1({"node_modules/near-api-js/lib/providers/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ErrorContext=v.TypedError=v.getTransactionLastResult=v.FinalExecutionStatusBasic=v.JsonRpcProvider=v.Provider=void 0;var k=require_provider4();Object.defineProperty(v,"Provider",{enumerable:!0,get:function(){return k.Provider}}),Object.defineProperty(v,"getTransactionLastResult",{enumerable:!0,get:function(){return k.getTransactionLastResult}}),Object.defineProperty(v,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return k.FinalExecutionStatusBasic}});var ie=require_json_rpc_provider2();Object.defineProperty(v,"JsonRpcProvider",{enumerable:!0,get:function(){return ie.JsonRpcProvider}}),Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return ie.TypedError}}),Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return ie.ErrorContext}})}}),require_key_pair2=__commonJS$1({"node_modules/near-api-js/lib/utils/key_pair.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.PublicKey=v.KeyType=v.KeyPairEd25519=v.KeyPair=void 0;var k=require_lib3();Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return k.KeyPair}}),Object.defineProperty(v,"KeyPairEd25519",{enumerable:!0,get:function(){return k.KeyPairEd25519}}),Object.defineProperty(v,"KeyType",{enumerable:!0,get:function(){return k.KeyType}}),Object.defineProperty(v,"PublicKey",{enumerable:!0,get:function(){return k.PublicKey}})}}),require_serialize$1=__commonJS$1({"node_modules/near-api-js/lib/utils/serialize.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.BinaryReader=v.BinaryWriter=v.BorshError=v.deserialize=v.serialize=v.base_decode=v.base_encode=void 0;var k=require_lib();Object.defineProperty(v,"base_encode",{enumerable:!0,get:function(){return k.baseEncode}}),Object.defineProperty(v,"base_decode",{enumerable:!0,get:function(){return k.baseDecode}}),Object.defineProperty(v,"serialize",{enumerable:!0,get:function(){return k.serialize}}),Object.defineProperty(v,"deserialize",{enumerable:!0,get:function(){return k.deserialize}}),Object.defineProperty(v,"BorshError",{enumerable:!0,get:function(){return k.BorshError}}),Object.defineProperty(v,"BinaryWriter",{enumerable:!0,get:function(){return k.BinaryWriter}}),Object.defineProperty(v,"BinaryReader",{enumerable:!0,get:function(){return k.BinaryReader}})}}),require_web$1=__commonJS$1({"node_modules/near-api-js/lib/utils/web.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.fetchJson=void 0;var k=require_lib8();Object.defineProperty(v,"fetchJson",{enumerable:!0,get:function(){return k.fetchJson}})}}),require_enums$1=__commonJS$1({"node_modules/near-api-js/lib/utils/enums.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Enum=v.Assignable=void 0;var k=require_lib2();Object.defineProperty(v,"Assignable",{enumerable:!0,get:function(){return k.Assignable}});var ie=class{constructor(ae){if(Object.keys(ae).length!==1)throw new Error("Enum can only take single value");Object.keys(ae).map(ce=>{this[ce]=ae[ce],this.enum=ce})}};v.Enum=ie}}),require_format2=__commonJS$1({"node_modules/near-api-js/lib/utils/format.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.parseNearAmount=v.formatNearAmount=v.NEAR_NOMINATION_EXP=v.NEAR_NOMINATION=void 0;var k=require_lib6();Object.defineProperty(v,"NEAR_NOMINATION",{enumerable:!0,get:function(){return k.NEAR_NOMINATION}}),Object.defineProperty(v,"NEAR_NOMINATION_EXP",{enumerable:!0,get:function(){return k.NEAR_NOMINATION_EXP}}),Object.defineProperty(v,"formatNearAmount",{enumerable:!0,get:function(){return k.formatNearAmount}}),Object.defineProperty(v,"parseNearAmount",{enumerable:!0,get:function(){return k.parseNearAmount}})}}),require_rpc_errors2=__commonJS$1({"node_modules/near-api-js/lib/utils/rpc_errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ServerError=v.getErrorTypeFromErrorMessage=v.formatError=v.parseResultError=v.parseRpcError=void 0;var k=require_lib6();Object.defineProperty(v,"parseRpcError",{enumerable:!0,get:function(){return k.parseRpcError}}),Object.defineProperty(v,"parseResultError",{enumerable:!0,get:function(){return k.parseResultError}}),Object.defineProperty(v,"formatError",{enumerable:!0,get:function(){return k.formatError}}),Object.defineProperty(v,"getErrorTypeFromErrorMessage",{enumerable:!0,get:function(){return k.getErrorTypeFromErrorMessage}}),Object.defineProperty(v,"ServerError",{enumerable:!0,get:function(){return k.ServerError}})}}),require_account$2=__commonJS$1({"node_modules/@near-js/accounts/lib/account.js"(v){var k=v&&v.__awaiter||function(Yt,fn,Qt,Xt){function Kr(be){return be instanceof Qt?be:new Qt(function(kr){kr(be)})}return new(Qt||(Qt=Promise))(function(be,kr){function xr(Xr){try{Jt(Xt.next(Xr))}catch(zr){kr(zr)}}function Wr(Xr){try{Jt(Xt.throw(Xr))}catch(zr){kr(zr)}}function Jt(Xr){Xr.done?be(Xr.value):Kr(Xr.value).then(xr,Wr)}Jt((Xt=Xt.apply(Yt,fn||[])).next())})},ie=v&&v.__importDefault||function(Yt){return Yt&&Yt.__esModule?Yt:{default:Yt}};Object.defineProperty(v,"__esModule",{value:!0}),v.Account=void 0;var ae=require_lib3(),ce=require_lib8(),fe=require_lib7(),le=require_lib2(),ve=require_lib6(),pe=ie(require_bn$1()),ye=require_lib(),{addKey:me,createAccount:Ee,deleteAccount:cr,deleteKey:Br,deployContract:$r,fullAccessKey:Pr,functionCall:Ar,functionCallAccessKey:ur,stake:jr,transfer:Mr}=fe.actionCreators,Lr=12,Vr=500,Gr=1.5;function Ur(Yt){return JSON.parse(Buffer.from(Yt).toString())}function Qr(Yt){return Buffer.from(JSON.stringify(Yt))}var hn=class{constructor(Yt,fn){this.accessKeyByPublicKeyCache={},this.connection=Yt,this.accountId=fn}state(){return k(this,void 0,void 0,function*(){return this.connection.provider.query({request_type:"view_account",account_id:this.accountId,finality:"optimistic"})})}signTransaction(Yt,fn){return k(this,void 0,void 0,function*(){const Qt=yield this.findAccessKey(Yt,fn);if(!Qt)throw new le.TypedError(`Can not sign transactions for account ${this.accountId} on network ${this.connection.networkId}, no matching key pair exists for this account`,"KeyNotFound");const{accessKey:Xt}=Qt,be=(yield this.connection.provider.block({finality:"final"})).header.hash,kr=Xt.nonce.add(new pe.default(1));return yield(0,fe.signTransaction)(Yt,kr,fn,(0,ye.baseDecode)(be),this.connection.signer,this.accountId,this.connection.networkId)})}signAndSendTransaction({receiverId:Yt,actions:fn,returnError:Qt}){return k(this,void 0,void 0,function*(){let Xt,Kr;const be=yield(0,ce.exponentialBackoff)(Vr,Lr,Gr,()=>k(this,void 0,void 0,function*(){[Xt,Kr]=yield this.signTransaction(Yt,fn);const kr=Kr.transaction.publicKey;try{return yield this.connection.provider.sendTransaction(Kr)}catch(xr){if(xr.type==="InvalidNonce")return(0,ve.logWarning)(`Retrying transaction ${Yt}:${(0,ye.baseEncode)(Xt)} with new nonce.`),delete this.accessKeyByPublicKeyCache[kr.toString()],null;if(xr.type==="Expired")return(0,ve.logWarning)(`Retrying transaction ${Yt}:${(0,ye.baseEncode)(Xt)} due to expired block hash`),null;throw xr.context=new le.ErrorContext((0,ye.baseEncode)(Xt)),xr}}));if(!be)throw new le.TypedError("nonce retries exceeded for transaction. This usually means there are too many parallel requests with the same access key.","RetriesExceeded");if((0,ve.printTxOutcomeLogsAndFailures)({contractId:Kr.transaction.receiverId,outcome:be}),!Qt&&typeof be.status=="object"&&typeof be.status.Failure=="object"&&be.status.Failure!==null)throw be.status.Failure.error_message&&be.status.Failure.error_type?new le.TypedError(`Transaction ${be.transaction_outcome.id} failed. ${be.status.Failure.error_message}`,be.status.Failure.error_type):(0,ve.parseResultError)(be);return be})}findAccessKey(Yt,fn){return k(this,void 0,void 0,function*(){const Qt=yield this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);if(!Qt)throw new le.TypedError(`no matching key pair found in ${this.connection.signer}`,"PublicKeyNotFound");const Xt=this.accessKeyByPublicKeyCache[Qt.toString()];if(Xt!==void 0)return{publicKey:Qt,accessKey:Xt};try{const Kr=yield this.connection.provider.query({request_type:"view_access_key",account_id:this.accountId,public_key:Qt.toString(),finality:"optimistic"}),be=Object.assign(Object.assign({},Kr),{nonce:new pe.default(Kr.nonce)});return this.accessKeyByPublicKeyCache[Qt.toString()]?{publicKey:Qt,accessKey:this.accessKeyByPublicKeyCache[Qt.toString()]}:(this.accessKeyByPublicKeyCache[Qt.toString()]=be,{publicKey:Qt,accessKey:be})}catch(Kr){if(Kr.type=="AccessKeyDoesNotExist")return null;throw Kr}})}createAndDeployContract(Yt,fn,Qt,Xt){return k(this,void 0,void 0,function*(){const Kr=Pr();return yield this.signAndSendTransaction({receiverId:Yt,actions:[Ee(),Mr(Xt),me(ae.PublicKey.from(fn),Kr),$r(Qt)]}),new hn(this.connection,Yt)})}sendMoney(Yt,fn){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:Yt,actions:[Mr(fn)]})})}createAccount(Yt,fn,Qt){return k(this,void 0,void 0,function*(){const Xt=Pr();return this.signAndSendTransaction({receiverId:Yt,actions:[Ee(),Mr(Qt),me(ae.PublicKey.from(fn),Xt)]})})}deleteAccount(Yt){return k(this,void 0,void 0,function*(){return process.env.NEAR_NO_LOGS||console.log("Deleting an account does not automatically transfer NFTs and FTs to the beneficiary address. Ensure to transfer assets before deleting."),this.signAndSendTransaction({receiverId:this.accountId,actions:[cr(Yt)]})})}deployContract(Yt){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:this.accountId,actions:[$r(Yt)]})})}encodeJSContractArgs(Yt,fn,Qt){return Buffer.concat([Buffer.from(Yt),Buffer.from([0]),Buffer.from(fn),Buffer.from([0]),Buffer.from(Qt)])}functionCall({contractId:Yt,methodName:fn,args:Qt={},gas:Xt=ve.DEFAULT_FUNCTION_CALL_GAS,attachedDeposit:Kr,walletMeta:be,walletCallbackUrl:kr,stringify:xr,jsContract:Wr}){return k(this,void 0,void 0,function*(){this.validateArgs(Qt);let Jt;if(Wr){const Xr=this.encodeJSContractArgs(Yt,fn,JSON.stringify(Qt));Jt=["call_js_contract",Xr,Xt,Kr,null,!0]}else{const Xr=xr===void 0?fe.stringifyJsonOrBytes:xr;Jt=[fn,Qt,Xt,Kr,Xr,!1]}return this.signAndSendTransaction({receiverId:Wr?this.connection.jsvmAccountId:Yt,actions:[Ar.apply(void 0,Jt)],walletMeta:be,walletCallbackUrl:kr})})}addKey(Yt,fn,Qt,Xt){return k(this,void 0,void 0,function*(){Qt||(Qt=[]),Array.isArray(Qt)||(Qt=[Qt]);let Kr;return fn?Kr=ur(fn,Qt,Xt):Kr=Pr(),this.signAndSendTransaction({receiverId:this.accountId,actions:[me(ae.PublicKey.from(Yt),Kr)]})})}deleteKey(Yt){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:this.accountId,actions:[Br(ae.PublicKey.from(Yt))]})})}stake(Yt,fn){return k(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:this.accountId,actions:[jr(fn,ae.PublicKey.from(Yt))]})})}signedDelegate({actions:Yt,blockHeightTtl:fn,receiverId:Qt}){return k(this,void 0,void 0,function*(){const{provider:Xt,signer:Kr}=this.connection,{header:be}=yield Xt.block({finality:"final"}),{accessKey:kr,publicKey:xr}=yield this.findAccessKey(null,null),Wr=(0,fe.buildDelegateAction)({actions:Yt,maxBlockHeight:new pe.default(be.height).add(new pe.default(fn)),nonce:new pe.default(kr.nonce).add(new pe.default(1)),publicKey:xr,receiverId:Qt,senderId:this.accountId}),{signedDelegateAction:Jt}=yield(0,fe.signDelegateAction)({delegateAction:Wr,signer:{sign:Xr=>k(this,void 0,void 0,function*(){const{signature:zr}=yield Kr.signMessage(Xr,Wr.senderId,this.connection.networkId);return zr})}});return Jt})}validateArgs(Yt){if(!(Yt.byteLength!==void 0&&Yt.byteLength===Yt.length)&&(Array.isArray(Yt)||typeof Yt!="object"))throw new le.PositionalArgsError}viewFunction({contractId:Yt,methodName:fn,args:Qt={},parse:Xt=Ur,stringify:Kr=Qr,jsContract:be=!1,blockQuery:kr={finality:"optimistic"}}){return k(this,void 0,void 0,function*(){let xr;this.validateArgs(Qt),be?xr=this.encodeJSContractArgs(Yt,fn,Object.keys(Qt).length>0?JSON.stringify(Qt):""):xr=Kr(Qt);const Wr=yield this.connection.provider.query(Object.assign(Object.assign({request_type:"call_function"},kr),{account_id:be?this.connection.jsvmAccountId:Yt,method_name:be?"view_js_contract":fn,args_base64:xr.toString("base64")}));return Wr.logs&&(0,ve.printTxOutcomeLogs)({contractId:Yt,logs:Wr.logs}),Wr.result&&Wr.result.length>0&&Xt(Buffer.from(Wr.result))})}viewState(Yt,fn={finality:"optimistic"}){return k(this,void 0,void 0,function*(){const{values:Qt}=yield this.connection.provider.query(Object.assign(Object.assign({request_type:"view_state"},fn),{account_id:this.accountId,prefix_base64:Buffer.from(Yt).toString("base64")}));return Qt.map(({key:Xt,value:Kr})=>({key:Buffer.from(Xt,"base64"),value:Buffer.from(Kr,"base64")}))})}getAccessKeys(){var Yt;return k(this,void 0,void 0,function*(){const fn=yield this.connection.provider.query({request_type:"view_access_key_list",account_id:this.accountId,finality:"optimistic"});return(Yt=fn==null?void 0:fn.keys)===null||Yt===void 0?void 0:Yt.map(Qt=>Object.assign(Object.assign({},Qt),{access_key:Object.assign(Object.assign({},Qt.access_key),{nonce:new pe.default(Qt.access_key.nonce)})}))})}getAccountDetails(){return k(this,void 0,void 0,function*(){return{authorizedApps:(yield this.getAccessKeys()).filter(Qt=>Qt.access_key.permission!=="FullAccess").map(Qt=>{const Xt=Qt.access_key.permission;return{contractId:Xt.FunctionCall.receiver_id,amount:Xt.FunctionCall.allowance,publicKey:Qt.public_key}})}})}getAccountBalance(){return k(this,void 0,void 0,function*(){const Yt=yield this.connection.provider.experimental_protocolConfig({finality:"final"}),fn=yield this.state(),Qt=new pe.default(Yt.runtime_config.storage_amount_per_byte),Xt=new pe.default(fn.storage_usage).mul(Qt),Kr=new pe.default(fn.locked),be=new pe.default(fn.amount).add(Kr),kr=be.sub(pe.default.max(Kr,Xt));return{total:be.toString(),stateStaked:Xt.toString(),staked:Kr.toString(),available:kr.toString()}})}getActiveDelegatedStakeBalance(){return k(this,void 0,void 0,function*(){const Yt=yield this.connection.provider.block({finality:"final"}),fn=Yt.header.hash,Qt=Yt.header.epoch_id,{current_validators:Xt,next_validators:Kr,current_proposals:be}=yield this.connection.provider.validators(Qt),kr=new Set;[...Xt,...Kr,...be].forEach(Jr=>kr.add(Jr.account_id));const xr=[...kr],Wr=xr.map(Jr=>this.viewFunction({contractId:Jr,methodName:"get_account_total_balance",args:{account_id:this.accountId},blockQuery:{blockId:fn}})),Jt=yield Promise.allSettled(Wr);if(Jt.some(Jr=>Jr.status==="rejected"&&Jr.reason.type==="TimeoutError"))throw new Error("Failed to get delegated stake balance");const zr=Jt.reduce((Jr,Nr,Hr)=>{const On=xr[Hr];if(Nr.status==="fulfilled"){const Gn=new pe.default(Nr.value);if(!Gn.isZero())return Object.assign(Object.assign({},Jr),{stakedValidators:[...Jr.stakedValidators,{validatorId:On,amount:Gn.toString()}],total:Jr.total.add(Gn)})}return Nr.status==="rejected"?Object.assign(Object.assign({},Jr),{failedValidators:[...Jr.failedValidators,{validatorId:On,error:Nr.reason}]}):Jr},{stakedValidators:[],failedValidators:[],total:new pe.default(0)});return Object.assign(Object.assign({},zr),{total:zr.total.toString()})})}};v.Account=hn}}),require_constants3$1=__commonJS$1({"node_modules/@near-js/accounts/lib/constants.js"(v){var k=v&&v.__importDefault||function(ce){return ce&&ce.__esModule?ce:{default:ce}};Object.defineProperty(v,"__esModule",{value:!0}),v.MULTISIG_CONFIRM_METHODS=v.MULTISIG_CHANGE_METHODS=v.MULTISIG_DEPOSIT=v.MULTISIG_GAS=v.MULTISIG_ALLOWANCE=v.MULTISIG_STORAGE_KEY=void 0;var ie=require_lib6(),ae=k(require_bn$1());v.MULTISIG_STORAGE_KEY="__multisigRequest",v.MULTISIG_ALLOWANCE=new ae.default((0,ie.parseNearAmount)("1")),v.MULTISIG_GAS=new ae.default("100000000000000"),v.MULTISIG_DEPOSIT=new ae.default("0"),v.MULTISIG_CHANGE_METHODS=["add_request","add_request_and_confirm","delete_request","confirm"],v.MULTISIG_CONFIRM_METHODS=["confirm"]}}),require_types$4=__commonJS$1({"node_modules/@near-js/accounts/lib/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MultisigStateStatus=v.MultisigDeleteRequestRejectionError=void 0,function(k){k.CANNOT_DESERIALIZE_STATE="Cannot deserialize the contract state",k.MULTISIG_NOT_INITIALIZED="Smart contract panicked: Multisig contract should be initialized before usage",k.NO_SUCH_REQUEST="Smart contract panicked: panicked at 'No such request: either wrong number or already confirmed'",k.REQUEST_COOLDOWN_ERROR="Request cannot be deleted immediately after creation.",k.METHOD_NOT_FOUND="Contract method is not found"}(v.MultisigDeleteRequestRejectionError||(v.MultisigDeleteRequestRejectionError={})),function(k){k[k.INVALID_STATE=0]="INVALID_STATE",k[k.STATE_NOT_INITIALIZED=1]="STATE_NOT_INITIALIZED",k[k.VALID_STATE=2]="VALID_STATE",k[k.UNKNOWN_STATE=3]="UNKNOWN_STATE"}(v.MultisigStateStatus||(v.MultisigStateStatus={}))}}),require_account_multisig$1=__commonJS$1({"node_modules/@near-js/accounts/lib/account_multisig.js"(v){var k=v&&v.__awaiter||function(Br,$r,Pr,Ar){function ur(jr){return jr instanceof Pr?jr:new Pr(function(Mr){Mr(jr)})}return new(Pr||(Pr=Promise))(function(jr,Mr){function Lr(Ur){try{Gr(Ar.next(Ur))}catch(Qr){Mr(Qr)}}function Vr(Ur){try{Gr(Ar.throw(Ur))}catch(Qr){Mr(Qr)}}function Gr(Ur){Ur.done?jr(Ur.value):ur(Ur.value).then(Lr,Vr)}Gr((Ar=Ar.apply(Br,$r||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.AccountMultisig=void 0;var ie=require_lib7(),ae=require_account$2(),ce=require_constants3$1(),fe=require_types$4(),{deployContract:le,functionCall:ve}=ie.actionCreators,pe;(function(Br){Br[Br.INVALID_CODE=0]="INVALID_CODE",Br[Br.VALID_CODE=1]="VALID_CODE",Br[Br.UNKNOWN_CODE=2]="UNKNOWN_CODE"})(pe||(pe={}));var ye={[ce.MULTISIG_STORAGE_KEY]:null},me=class extends ae.Account{constructor(Br,$r,Pr){super(Br,$r),this.storage=Pr.storage,this.onAddRequestResult=Pr.onAddRequestResult}signAndSendTransactionWithAccount(Br,$r){const Pr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){return Pr.signAndSendTransaction.call(this,{receiverId:Br,actions:$r})})}signAndSendTransaction({receiverId:Br,actions:$r}){const Pr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const{accountId:Ar}=this,ur=Buffer.from(JSON.stringify({request:{receiver_id:Br,actions:cr($r,Ar,Br)}}));let jr;try{jr=yield Pr.signAndSendTransaction.call(this,{receiverId:Ar,actions:[ve("add_request_and_confirm",ur,ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]})}catch(Lr){if(Lr.toString().includes("Account has too many active requests. Confirm or delete some"))return yield this.deleteUnconfirmedRequests(),yield this.signAndSendTransaction({receiverId:Br,actions:$r});throw Lr}if(!jr.status)throw new Error("Request failed");const Mr=Object.assign({},jr.status);if(!Mr.SuccessValue||typeof Mr.SuccessValue!="string")throw new Error("Request failed");return this.setRequest({accountId:Ar,actions:$r,requestId:parseInt(Buffer.from(Mr.SuccessValue,"base64").toString("ascii"),10)}),this.onAddRequestResult&&(yield this.onAddRequestResult(jr)),this.deleteUnconfirmedRequests(),jr})}checkMultisigCodeAndStateStatus(Br){const $r=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const Ar=Br?pe.UNKNOWN_CODE:pe.VALID_CODE;try{return Br?yield $r.signAndSendTransaction.call(this,{receiverId:this.accountId,actions:[le(Br),ve("delete_request",{request_id:4294967295},ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]}):yield this.deleteRequest(4294967295),{codeStatus:pe.VALID_CODE,stateStatus:fe.MultisigStateStatus.VALID_STATE}}catch(ur){if(new RegExp(fe.MultisigDeleteRequestRejectionError.CANNOT_DESERIALIZE_STATE).test(ur&&ur.kind&&ur.kind.ExecutionError))return{codeStatus:Ar,stateStatus:fe.MultisigStateStatus.INVALID_STATE};if(new RegExp(fe.MultisigDeleteRequestRejectionError.MULTISIG_NOT_INITIALIZED).test(ur&&ur.kind&&ur.kind.ExecutionError))return{codeStatus:Ar,stateStatus:fe.MultisigStateStatus.STATE_NOT_INITIALIZED};if(new RegExp(fe.MultisigDeleteRequestRejectionError.NO_SUCH_REQUEST).test(ur&&ur.kind&&ur.kind.ExecutionError))return{codeStatus:Ar,stateStatus:fe.MultisigStateStatus.VALID_STATE};if(new RegExp(fe.MultisigDeleteRequestRejectionError.METHOD_NOT_FOUND).test(ur&&ur.message))return{codeStatus:pe.INVALID_CODE,stateStatus:fe.MultisigStateStatus.UNKNOWN_STATE};throw ur}})}deleteRequest(Br){return super.signAndSendTransaction({receiverId:this.accountId,actions:[ve("delete_request",{request_id:Br},ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]})}deleteAllRequests(){return k(this,void 0,void 0,function*(){const Br=yield this.getRequestIds();Br.length&&(yield Promise.all(Br.map($r=>this.deleteRequest($r))))})}deleteUnconfirmedRequests(){const Br=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const $r=yield this.getRequestIds(),{requestId:Pr}=this.getRequest();for(const Ar of $r)if(Ar!=Pr)try{yield Br.signAndSendTransaction.call(this,{receiverId:this.accountId,actions:[ve("delete_request",{request_id:Ar},ce.MULTISIG_GAS,ce.MULTISIG_DEPOSIT)]})}catch{console.warn("Attempt to delete an earlier request before 15 minutes failed. Will try again.")}})}getRequestIds(){return k(this,void 0,void 0,function*(){return this.viewFunction({contractId:this.accountId,methodName:"list_request_ids"})})}getRequest(){return this.storage?JSON.parse(this.storage.getItem(ce.MULTISIG_STORAGE_KEY)||"{}"):ye[ce.MULTISIG_STORAGE_KEY]}setRequest(Br){if(this.storage)return this.storage.setItem(ce.MULTISIG_STORAGE_KEY,JSON.stringify(Br));ye[ce.MULTISIG_STORAGE_KEY]=Br}};v.AccountMultisig=me;var Ee=Br=>Br.toString().replace("ed25519:",""),cr=(Br,$r,Pr)=>Br.map(Ar=>{const ur=Ar.enum,{gas:jr,publicKey:Mr,methodName:Lr,args:Vr,deposit:Gr,accessKey:Ur,code:Qr}=Ar[ur],hn={type:ur[0].toUpperCase()+ur.substr(1),gas:jr&&jr.toString()||void 0,public_key:Mr&&Ee(Mr)||void 0,method_name:Lr,args:Vr&&Buffer.from(Vr).toString("base64")||void 0,code:Qr&&Buffer.from(Qr).toString("base64")||void 0,amount:Gr&&Gr.toString()||void 0,deposit:Gr&&Gr.toString()||"0",permission:void 0};if(Ur&&(Pr===$r&&Ur.permission.enum!=="fullAccess"&&(hn.permission={receiver_id:$r,allowance:ce.MULTISIG_ALLOWANCE.toString(),method_names:ce.MULTISIG_CHANGE_METHODS}),Ur.permission.enum==="functionCall")){const{receiverId:Yt,methodNames:fn,allowance:Qt}=Ur.permission.functionCall;hn.permission={receiver_id:Yt,allowance:Qt&&Qt.toString()||void 0,method_names:fn}}return hn})}}),require_account_2fa=__commonJS$1({"node_modules/@near-js/accounts/lib/account_2fa.js"(v){var k=v&&v.__awaiter||function(Mr,Lr,Vr,Gr){function Ur(Qr){return Qr instanceof Vr?Qr:new Vr(function(hn){hn(Qr)})}return new(Vr||(Vr=Promise))(function(Qr,hn){function Yt(Xt){try{Qt(Gr.next(Xt))}catch(Kr){hn(Kr)}}function fn(Xt){try{Qt(Gr.throw(Xt))}catch(Kr){hn(Kr)}}function Qt(Xt){Xt.done?Qr(Xt.value):Ur(Xt.value).then(Yt,fn)}Qt((Gr=Gr.apply(Mr,Lr||[])).next())})},ie=v&&v.__importDefault||function(Mr){return Mr&&Mr.__esModule?Mr:{default:Mr}};Object.defineProperty(v,"__esModule",{value:!0}),v.Account2FA=void 0;var ae=require_lib3(),ce=require_lib2(),fe=require_lib8(),le=require_lib7(),ve=ie(require_bn$1()),pe=require_account_multisig$1(),ye=require_constants3$1(),me=require_types$4(),{addKey:Ee,deleteKey:cr,deployContract:Br,fullAccessKey:$r,functionCall:Pr,functionCallAccessKey:Ar}=le.actionCreators,ur=class extends pe.AccountMultisig{constructor(Mr,Lr,Vr){super(Mr,Lr,Vr),this.helperUrl="https://helper.testnet.near.org",this.helperUrl=Vr.helperUrl||this.helperUrl,this.storage=Vr.storage,this.sendCode=Vr.sendCode||this.sendCodeDefault,this.getCode=Vr.getCode||this.getCodeDefault,this.verifyCode=Vr.verifyCode||this.verifyCodeDefault,this.onConfirmResult=Vr.onConfirmResult}signAndSendTransaction({receiverId:Mr,actions:Lr}){const Vr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){yield Vr.signAndSendTransaction.call(this,{receiverId:Mr,actions:Lr}),yield this.sendCode();const Gr=yield this.promptAndVerify();return this.onConfirmResult&&(yield this.onConfirmResult(Gr)),Gr})}deployMultisig(Mr){const Lr=Object.create(null,{signAndSendTransactionWithAccount:{get:()=>super.signAndSendTransactionWithAccount}});return k(this,void 0,void 0,function*(){const{accountId:Vr}=this,Gr=(yield this.getRecoveryMethods()).data.filter(({kind:Xt,publicKey:Kr})=>(Xt==="phrase"||Xt==="ledger")&&Kr!==null).map(Xt=>Xt.publicKey),Ur=(yield this.getAccessKeys()).filter(({public_key:Xt,access_key:{permission:Kr}})=>Kr==="FullAccess"&&!Gr.includes(Xt)).map(Xt=>Xt.public_key).map(jr),Qr=jr((yield this.postSignedJson("/2fa/getAccessKey",{accountId:Vr})).publicKey),hn=Buffer.from(JSON.stringify({num_confirmations:2})),Yt=[...Ur.map(Xt=>cr(Xt)),...Ur.map(Xt=>Ee(Xt,Ar(Vr,ye.MULTISIG_CHANGE_METHODS,null))),Ee(Qr,Ar(Vr,ye.MULTISIG_CONFIRM_METHODS,null)),Br(Mr)],fn=Yt.concat(Pr("new",hn,ye.MULTISIG_GAS,ye.MULTISIG_DEPOSIT));console.log("deploying multisig contract for",Vr);const{stateStatus:Qt}=yield this.checkMultisigCodeAndStateStatus(Mr);switch(Qt){case me.MultisigStateStatus.STATE_NOT_INITIALIZED:return yield Lr.signAndSendTransactionWithAccount.call(this,Vr,fn);case me.MultisigStateStatus.VALID_STATE:return yield Lr.signAndSendTransactionWithAccount.call(this,Vr,Yt);case me.MultisigStateStatus.INVALID_STATE:throw new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account has existing state.`,"ContractHasExistingState");default:throw new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account state could not be verified.`,"ContractStateUnknown")}})}disableWithFAK({contractBytes:Mr,cleanupContractBytes:Lr}){return k(this,void 0,void 0,function*(){let Vr=[];Lr&&(yield this.deleteAllRequests().catch(hn=>hn),Vr=yield this.get2faDisableCleanupActions(Lr));const Gr=yield this.get2faDisableKeyConversionActions(),Ur=[...Vr,...Gr,Br(Mr)],Qr=yield this.findAccessKey(this.accountId,Ur);if(Qr&&Qr.accessKey&&Qr.accessKey.permission!=="FullAccess")throw new ce.TypedError("No full access key found in keystore. Unable to bypass multisig","NoFAKFound");return this.signAndSendTransactionWithAccount(this.accountId,Ur)})}get2faDisableCleanupActions(Mr){return k(this,void 0,void 0,function*(){const Lr=yield this.viewState("").catch(Gr=>{const Ur=Gr.cause&&Gr.cause.name;if(Ur=="NO_CONTRACT_CODE")return[];throw Ur=="TOO_LARGE_CONTRACT_STATE"?new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account has existing state.`,"ContractHasExistingState"):Gr}),Vr=Lr.map(({key:Gr})=>Gr.toString("base64"));return Lr.length?[Br(Mr),Pr("clean",{keys:Vr},ye.MULTISIG_GAS,new ve.default("0"))]:[]})}get2faDisableKeyConversionActions(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this,Vr=(yield this.getAccessKeys()).filter(({access_key:Ur})=>Ur.permission!=="FullAccess").filter(({access_key:Ur})=>{const Qr=Ur.permission.FunctionCall;return Qr.receiver_id===Mr&&Qr.method_names.length===4&&Qr.method_names.includes("add_request_and_confirm")}),Gr=ae.PublicKey.from((yield this.postSignedJson("/2fa/getAccessKey",{accountId:Mr})).publicKey);return[cr(Gr),...Vr.map(({public_key:Ur})=>cr(ae.PublicKey.from(Ur))),...Vr.map(({public_key:Ur})=>Ee(ae.PublicKey.from(Ur),$r()))]})}disable(Mr,Lr){return k(this,void 0,void 0,function*(){const{stateStatus:Vr}=yield this.checkMultisigCodeAndStateStatus();if(Vr!==me.MultisigStateStatus.VALID_STATE&&Vr!==me.MultisigStateStatus.STATE_NOT_INITIALIZED)throw new ce.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account state could not be verified.`,"ContractStateUnknown");let Gr;yield this.deleteAllRequests().catch(hn=>Gr=hn);const Qr=[...yield this.get2faDisableCleanupActions(Lr).catch(hn=>{throw hn.type==="ContractHasExistingState"&&Gr||hn}),...yield this.get2faDisableKeyConversionActions(),Br(Mr)];return console.log("disabling 2fa for",this.accountId),yield this.signAndSendTransaction({receiverId:this.accountId,actions:Qr})})}sendCodeDefault(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this,{requestId:Lr}=this.getRequest(),Vr=yield this.get2faMethod();return yield this.postSignedJson("/2fa/send",{accountId:Mr,method:Vr,requestId:Lr}),Lr})}getCodeDefault(){return k(this,void 0,void 0,function*(){throw new Error('There is no getCode callback provided. Please provide your own in AccountMultisig constructor options. It has a parameter method where method.kind is "email" or "phone".')})}promptAndVerify(){return k(this,void 0,void 0,function*(){const Mr=yield this.get2faMethod(),Lr=yield this.getCode(Mr);try{return yield this.verifyCode(Lr)}catch(Vr){if(console.warn("Error validating security code:",Vr),Vr.toString().includes("invalid 2fa code provided")||Vr.toString().includes("2fa code not valid"))return yield this.promptAndVerify();throw Vr}})}verifyCodeDefault(Mr){return k(this,void 0,void 0,function*(){const{accountId:Lr}=this,Vr=this.getRequest();if(!Vr)throw new Error("no request pending");const{requestId:Gr}=Vr;return yield this.postSignedJson("/2fa/verify",{accountId:Lr,securityCode:Mr,requestId:Gr})})}getRecoveryMethods(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this;return{accountId:Mr,data:yield this.postSignedJson("/account/recoveryMethods",{accountId:Mr})}})}get2faMethod(){return k(this,void 0,void 0,function*(){let{data:Mr}=yield this.getRecoveryMethods();if(Mr&&Mr.length&&(Mr=Mr.find(Gr=>Gr.kind.indexOf("2fa-")===0)),!Mr)return null;const{kind:Lr,detail:Vr}=Mr;return{kind:Lr,detail:Vr}})}signatureFor(){return k(this,void 0,void 0,function*(){const{accountId:Mr}=this,Vr=(yield this.connection.provider.block({finality:"final"})).header.height.toString(),Gr=yield this.connection.signer.signMessage(Buffer.from(Vr),Mr,this.connection.networkId),Ur=Buffer.from(Gr.signature).toString("base64");return{blockNumber:Vr,blockNumberSignature:Ur}})}postSignedJson(Mr,Lr){return k(this,void 0,void 0,function*(){return yield(0,fe.fetchJson)(this.helperUrl+Mr,JSON.stringify(Object.assign(Object.assign({},Lr),yield this.signatureFor())))})}};v.Account2FA=ur;var jr=Mr=>ae.PublicKey.from(Mr)}}),require_account_creator$1=__commonJS$1({"node_modules/@near-js/accounts/lib/account_creator.js"(v){var k=v&&v.__awaiter||function(le,ve,pe,ye){function me(Ee){return Ee instanceof pe?Ee:new pe(function(cr){cr(Ee)})}return new(pe||(pe=Promise))(function(Ee,cr){function Br(Ar){try{Pr(ye.next(Ar))}catch(ur){cr(ur)}}function $r(Ar){try{Pr(ye.throw(Ar))}catch(ur){cr(ur)}}function Pr(Ar){Ar.done?Ee(Ar.value):me(Ar.value).then(Br,$r)}Pr((ye=ye.apply(le,ve||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.UrlAccountCreator=v.LocalAccountCreator=v.AccountCreator=void 0;var ie=require_lib8(),ae=class{};v.AccountCreator=ae;var ce=class extends ae{constructor(le,ve){super(),this.masterAccount=le,this.initialBalance=ve}createAccount(le,ve){return k(this,void 0,void 0,function*(){yield this.masterAccount.createAccount(le,ve,this.initialBalance)})}};v.LocalAccountCreator=ce;var fe=class extends ae{constructor(le,ve){super(),this.connection=le,this.helperUrl=ve}createAccount(le,ve){return k(this,void 0,void 0,function*(){yield(0,ie.fetchJson)(`${this.helperUrl}/account`,JSON.stringify({newAccountId:le,newAccountPublicKey:ve.toString()}))})}};v.UrlAccountCreator=fe}}),require_signer$1=__commonJS$1({"node_modules/@near-js/signers/lib/signer.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signer=void 0;var k=class{};v.Signer=k}}),require_in_memory_signer=__commonJS$1({"node_modules/@near-js/signers/lib/in_memory_signer.js"(v){var k=v&&v.__awaiter||function(pe,ye,me,Ee){function cr(Br){return Br instanceof me?Br:new me(function($r){$r(Br)})}return new(me||(me=Promise))(function(Br,$r){function Pr(jr){try{ur(Ee.next(jr))}catch(Mr){$r(Mr)}}function Ar(jr){try{ur(Ee.throw(jr))}catch(Mr){$r(Mr)}}function ur(jr){jr.done?Br(jr.value):cr(jr.value).then(Pr,Ar)}ur((Ee=Ee.apply(pe,ye||[])).next())})},ie=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.InMemorySigner=void 0;var ae=require_lib3(),ce=require_lib4$1(),fe=ie(require_sha256$2()),le=require_signer$1(),ve=class extends le.Signer{constructor(pe){super(),this.keyStore=pe}static fromKeyPair(pe,ye,me){return k(this,void 0,void 0,function*(){const Ee=new ce.InMemoryKeyStore;return yield Ee.setKey(pe,ye,me),new ve(Ee)})}createKey(pe,ye){return k(this,void 0,void 0,function*(){const me=ae.KeyPair.fromRandom("ed25519");return yield this.keyStore.setKey(ye,pe,me),me.getPublicKey()})}getPublicKey(pe,ye){return k(this,void 0,void 0,function*(){const me=yield this.keyStore.getKey(ye,pe);return me===null?null:me.getPublicKey()})}signMessage(pe,ye,me){return k(this,void 0,void 0,function*(){const Ee=new Uint8Array(fe.default.sha256.array(pe));if(!ye)throw new Error("InMemorySigner requires provided account id");const cr=yield this.keyStore.getKey(me,ye);if(cr===null)throw new Error(`Key for ${ye} not found in ${me}`);return cr.sign(Ee)})}toString(){return`InMemorySigner(${this.keyStore})`}};v.InMemorySigner=ve}}),require_lib9=__commonJS$1({"node_modules/@near-js/signers/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signer=v.InMemorySigner=void 0;var k=require_in_memory_signer();Object.defineProperty(v,"InMemorySigner",{enumerable:!0,get:function(){return k.InMemorySigner}});var ie=require_signer$1();Object.defineProperty(v,"Signer",{enumerable:!0,get:function(){return ie.Signer}})}}),require_connection$1=__commonJS$1({"node_modules/@near-js/accounts/lib/connection.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Connection=void 0;var k=require_lib9(),ie=require_lib8();function ae(le){switch(le.type){case void 0:return le;case"JsonRpcProvider":return new ie.JsonRpcProvider(Object.assign({},le.args));default:throw new Error(`Unknown provider type ${le.type}`)}}function ce(le){switch(le.type){case void 0:return le;case"InMemorySigner":return new k.InMemorySigner(le.keyStore);default:throw new Error(`Unknown signer type ${le.type}`)}}var fe=class{constructor(le,ve,pe,ye){this.networkId=le,this.provider=ve,this.signer=pe,this.jsvmAccountId=ye}static fromConfig(le){const ve=ae(le.provider),pe=ce(le.signer);return new fe(le.networkId,ve,pe,le.jsvmAccountId)}};v.Connection=fe}}),require_code=__commonJS$1({"node_modules/ajv/dist/compile/codegen/code.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.regexpCode=v.getEsmExportName=v.getProperty=v.safeStringify=v.stringify=v.strConcat=v.addCodeArg=v.str=v._=v.nil=v._Code=v.Name=v.IDENTIFIER=v._CodeOrName=void 0;var k=class{};v._CodeOrName=k,v.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ie=class extends k{constructor(ur){if(super(),!v.IDENTIFIER.test(ur))throw new Error("CodeGen: name must be a valid identifier");this.str=ur}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};v.Name=ie;var ae=class extends k{constructor(ur){super(),this._items=typeof ur=="string"?[ur]:ur}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const ur=this._items[0];return ur===""||ur==='""'}get str(){var ur;return(ur=this._str)!==null&&ur!==void 0?ur:this._str=this._items.reduce((jr,Mr)=>`${jr}${Mr}`,"")}get names(){var ur;return(ur=this._names)!==null&&ur!==void 0?ur:this._names=this._items.reduce((jr,Mr)=>(Mr instanceof ie&&(jr[Mr.str]=(jr[Mr.str]||0)+1),jr),{})}};v._Code=ae,v.nil=new ae("");function ce(ur,...jr){const Mr=[ur[0]];let Lr=0;for(;Lr{if(me.scopePath===void 0)throw new Error(`CodeGen: name "${me}" has no value`);return(0,k._)`${pe}${me.scopePath}`})}scopeCode(pe=this._values,ye,me){return this._reduceValues(pe,Ee=>{if(Ee.value===void 0)throw new Error(`CodeGen: name "${Ee}" has no value`);return Ee.value.code},ye,me)}_reduceValues(pe,ye,me={},Ee){let cr=k.nil;for(const Br in pe){const $r=pe[Br];if(!$r)continue;const Pr=me[Br]=me[Br]||new Map;$r.forEach(Ar=>{if(Pr.has(Ar))return;Pr.set(Ar,ae.Started);let ur=ye(Ar);if(ur){const jr=this.opts.es5?v.varKinds.var:v.varKinds.const;cr=(0,k._)`${cr}${jr} ${Ar} = ${ur};${this.opts._n}`}else if(ur=Ee==null?void 0:Ee(Ar))cr=(0,k._)`${cr}${ur}${this.opts._n}`;else throw new ie(Ar);Pr.set(Ar,ae.Completed)})}return cr}};v.ValueScope=ve}}),require_codegen=__commonJS$1({"node_modules/ajv/dist/compile/codegen/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.or=v.and=v.not=v.CodeGen=v.operators=v.varKinds=v.ValueScopeName=v.ValueScope=v.Scope=v.Name=v.regexpCode=v.stringify=v.getProperty=v.nil=v.strConcat=v.str=v._=void 0;var k=require_code(),ie=require_scope(),ae=require_code();Object.defineProperty(v,"_",{enumerable:!0,get:function(){return ae._}}),Object.defineProperty(v,"str",{enumerable:!0,get:function(){return ae.str}}),Object.defineProperty(v,"strConcat",{enumerable:!0,get:function(){return ae.strConcat}}),Object.defineProperty(v,"nil",{enumerable:!0,get:function(){return ae.nil}}),Object.defineProperty(v,"getProperty",{enumerable:!0,get:function(){return ae.getProperty}}),Object.defineProperty(v,"stringify",{enumerable:!0,get:function(){return ae.stringify}}),Object.defineProperty(v,"regexpCode",{enumerable:!0,get:function(){return ae.regexpCode}}),Object.defineProperty(v,"Name",{enumerable:!0,get:function(){return ae.Name}});var ce=require_scope();Object.defineProperty(v,"Scope",{enumerable:!0,get:function(){return ce.Scope}}),Object.defineProperty(v,"ValueScope",{enumerable:!0,get:function(){return ce.ValueScope}}),Object.defineProperty(v,"ValueScopeName",{enumerable:!0,get:function(){return ce.ValueScopeName}}),Object.defineProperty(v,"varKinds",{enumerable:!0,get:function(){return ce.varKinds}}),v.operators={GT:new k._Code(">"),GTE:new k._Code(">="),LT:new k._Code("<"),LTE:new k._Code("<="),EQ:new k._Code("==="),NEQ:new k._Code("!=="),NOT:new k._Code("!"),OR:new k._Code("||"),AND:new k._Code("&&"),ADD:new k._Code("+")};var fe=class{optimizeNodes(){return this}optimizeNames(Nr,Hr){return this}},le=class extends fe{constructor(Nr,Hr,On){super(),this.varKind=Nr,this.name=Hr,this.rhs=On}render({es5:Nr,_n:Hr}){const On=Nr?ie.varKinds.var:this.varKind,Gn=this.rhs===void 0?"":` = ${this.rhs}`;return`${On} ${this.name}${Gn};`+Hr}optimizeNames(Nr,Hr){if(!!Nr[this.name.str])return this.rhs&&(this.rhs=Kr(this.rhs,Nr,Hr)),this}get names(){return this.rhs instanceof k._CodeOrName?this.rhs.names:{}}},ve=class extends fe{constructor(Nr,Hr,On){super(),this.lhs=Nr,this.rhs=Hr,this.sideEffects=On}render({_n:Nr}){return`${this.lhs} = ${this.rhs};`+Nr}optimizeNames(Nr,Hr){if(!(this.lhs instanceof k.Name&&!Nr[this.lhs.str]&&!this.sideEffects))return this.rhs=Kr(this.rhs,Nr,Hr),this}get names(){const Nr=this.lhs instanceof k.Name?{}:{...this.lhs.names};return Xt(Nr,this.rhs)}},pe=class extends ve{constructor(Nr,Hr,On,Gn){super(Nr,On,Gn),this.op=Hr}render({_n:Nr}){return`${this.lhs} ${this.op}= ${this.rhs};`+Nr}},ye=class extends fe{constructor(Nr){super(),this.label=Nr,this.names={}}render({_n:Nr}){return`${this.label}:`+Nr}},me=class extends fe{constructor(Nr){super(),this.label=Nr,this.names={}}render({_n:Nr}){return`break${this.label?` ${this.label}`:""};`+Nr}},Ee=class extends fe{constructor(Nr){super(),this.error=Nr}render({_n:Nr}){return`throw ${this.error};`+Nr}get names(){return this.error.names}},cr=class extends fe{constructor(Nr){super(),this.code=Nr}render({_n:Nr}){return`${this.code};`+Nr}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(Nr,Hr){return this.code=Kr(this.code,Nr,Hr),this}get names(){return this.code instanceof k._CodeOrName?this.code.names:{}}},Br=class extends fe{constructor(Nr=[]){super(),this.nodes=Nr}render(Nr){return this.nodes.reduce((Hr,On)=>Hr+On.render(Nr),"")}optimizeNodes(){const{nodes:Nr}=this;let Hr=Nr.length;for(;Hr--;){const On=Nr[Hr].optimizeNodes();Array.isArray(On)?Nr.splice(Hr,1,...On):On?Nr[Hr]=On:Nr.splice(Hr,1)}return Nr.length>0?this:void 0}optimizeNames(Nr,Hr){const{nodes:On}=this;let Gn=On.length;for(;Gn--;){const mn=On[Gn];mn.optimizeNames(Nr,Hr)||(be(Nr,mn.names),On.splice(Gn,1))}return On.length>0?this:void 0}get names(){return this.nodes.reduce((Nr,Hr)=>Qt(Nr,Hr.names),{})}},$r=class extends Br{render(Nr){return"{"+Nr._n+super.render(Nr)+"}"+Nr._n}},Pr=class extends Br{},Ar=class extends $r{};Ar.kind="else";var ur=class extends $r{constructor(Nr,Hr){super(Hr),this.condition=Nr}render(Nr){let Hr=`if(${this.condition})`+super.render(Nr);return this.else&&(Hr+="else "+this.else.render(Nr)),Hr}optimizeNodes(){super.optimizeNodes();const Nr=this.condition;if(Nr===!0)return this.nodes;let Hr=this.else;if(Hr){const On=Hr.optimizeNodes();Hr=this.else=Array.isArray(On)?new Ar(On):On}if(Hr)return Nr===!1?Hr instanceof ur?Hr:Hr.nodes:this.nodes.length?this:new ur(kr(Nr),Hr instanceof ur?[Hr]:Hr.nodes);if(!(Nr===!1||!this.nodes.length))return this}optimizeNames(Nr,Hr){var On;if(this.else=(On=this.else)===null||On===void 0?void 0:On.optimizeNames(Nr,Hr),!!(super.optimizeNames(Nr,Hr)||this.else))return this.condition=Kr(this.condition,Nr,Hr),this}get names(){const Nr=super.names;return Xt(Nr,this.condition),this.else&&Qt(Nr,this.else.names),Nr}};ur.kind="if";var jr=class extends $r{};jr.kind="for";var Mr=class extends jr{constructor(Nr){super(),this.iteration=Nr}render(Nr){return`for(${this.iteration})`+super.render(Nr)}optimizeNames(Nr,Hr){if(!!super.optimizeNames(Nr,Hr))return this.iteration=Kr(this.iteration,Nr,Hr),this}get names(){return Qt(super.names,this.iteration.names)}},Lr=class extends jr{constructor(Nr,Hr,On,Gn){super(),this.varKind=Nr,this.name=Hr,this.from=On,this.to=Gn}render(Nr){const Hr=Nr.es5?ie.varKinds.var:this.varKind,{name:On,from:Gn,to:mn}=this;return`for(${Hr} ${On}=${Gn}; ${On}<${mn}; ${On}++)`+super.render(Nr)}get names(){const Nr=Xt(super.names,this.from);return Xt(Nr,this.to)}},Vr=class extends jr{constructor(Nr,Hr,On,Gn){super(),this.loop=Nr,this.varKind=Hr,this.name=On,this.iterable=Gn}render(Nr){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(Nr)}optimizeNames(Nr,Hr){if(!!super.optimizeNames(Nr,Hr))return this.iterable=Kr(this.iterable,Nr,Hr),this}get names(){return Qt(super.names,this.iterable.names)}},Gr=class extends $r{constructor(Nr,Hr,On){super(),this.name=Nr,this.args=Hr,this.async=On}render(Nr){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(Nr)}};Gr.kind="func";var Ur=class extends Br{render(Nr){return"return "+super.render(Nr)}};Ur.kind="return";var Qr=class extends $r{render(Nr){let Hr="try"+super.render(Nr);return this.catch&&(Hr+=this.catch.render(Nr)),this.finally&&(Hr+=this.finally.render(Nr)),Hr}optimizeNodes(){var Nr,Hr;return super.optimizeNodes(),(Nr=this.catch)===null||Nr===void 0||Nr.optimizeNodes(),(Hr=this.finally)===null||Hr===void 0||Hr.optimizeNodes(),this}optimizeNames(Nr,Hr){var On,Gn;return super.optimizeNames(Nr,Hr),(On=this.catch)===null||On===void 0||On.optimizeNames(Nr,Hr),(Gn=this.finally)===null||Gn===void 0||Gn.optimizeNames(Nr,Hr),this}get names(){const Nr=super.names;return this.catch&&Qt(Nr,this.catch.names),this.finally&&Qt(Nr,this.finally.names),Nr}},hn=class extends $r{constructor(Nr){super(),this.error=Nr}render(Nr){return`catch(${this.error})`+super.render(Nr)}};hn.kind="catch";var Yt=class extends $r{render(Nr){return"finally"+super.render(Nr)}};Yt.kind="finally";var fn=class{constructor(Nr,Hr={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...Hr,_n:Hr.lines?` +`:""},this._extScope=Nr,this._scope=new ie.Scope({parent:Nr}),this._nodes=[new Pr]}toString(){return this._root.render(this.opts)}name(Nr){return this._scope.name(Nr)}scopeName(Nr){return this._extScope.name(Nr)}scopeValue(Nr,Hr){const On=this._extScope.value(Nr,Hr);return(this._values[On.prefix]||(this._values[On.prefix]=new Set)).add(On),On}getScopeValue(Nr,Hr){return this._extScope.getValue(Nr,Hr)}scopeRefs(Nr){return this._extScope.scopeRefs(Nr,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(Nr,Hr,On,Gn){const mn=this._scope.toName(Hr);return On!==void 0&&Gn&&(this._constants[mn.str]=On),this._leafNode(new le(Nr,mn,On)),mn}const(Nr,Hr,On){return this._def(ie.varKinds.const,Nr,Hr,On)}let(Nr,Hr,On){return this._def(ie.varKinds.let,Nr,Hr,On)}var(Nr,Hr,On){return this._def(ie.varKinds.var,Nr,Hr,On)}assign(Nr,Hr,On){return this._leafNode(new ve(Nr,Hr,On))}add(Nr,Hr){return this._leafNode(new pe(Nr,v.operators.ADD,Hr))}code(Nr){return typeof Nr=="function"?Nr():Nr!==k.nil&&this._leafNode(new cr(Nr)),this}object(...Nr){const Hr=["{"];for(const[On,Gn]of Nr)Hr.length>1&&Hr.push(","),Hr.push(On),(On!==Gn||this.opts.es5)&&(Hr.push(":"),(0,k.addCodeArg)(Hr,Gn));return Hr.push("}"),new k._Code(Hr)}if(Nr,Hr,On){if(this._blockNode(new ur(Nr)),Hr&&On)this.code(Hr).else().code(On).endIf();else if(Hr)this.code(Hr).endIf();else if(On)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(Nr){return this._elseNode(new ur(Nr))}else(){return this._elseNode(new Ar)}endIf(){return this._endBlockNode(ur,Ar)}_for(Nr,Hr){return this._blockNode(Nr),Hr&&this.code(Hr).endFor(),this}for(Nr,Hr){return this._for(new Mr(Nr),Hr)}forRange(Nr,Hr,On,Gn,mn=this.opts.es5?ie.varKinds.var:ie.varKinds.let){const Nn=this._scope.toName(Nr);return this._for(new Lr(mn,Nn,Hr,On),()=>Gn(Nn))}forOf(Nr,Hr,On,Gn=ie.varKinds.const){const mn=this._scope.toName(Nr);if(this.opts.es5){const Nn=Hr instanceof k.Name?Hr:this.var("_arr",Hr);return this.forRange("_i",0,(0,k._)`${Nn}.length`,In=>{this.var(mn,(0,k._)`${Nn}[${In}]`),On(mn)})}return this._for(new Vr("of",Gn,mn,Hr),()=>On(mn))}forIn(Nr,Hr,On,Gn=this.opts.es5?ie.varKinds.var:ie.varKinds.const){if(this.opts.ownProperties)return this.forOf(Nr,(0,k._)`Object.keys(${Hr})`,On);const mn=this._scope.toName(Nr);return this._for(new Vr("in",Gn,mn,Hr),()=>On(mn))}endFor(){return this._endBlockNode(jr)}label(Nr){return this._leafNode(new ye(Nr))}break(Nr){return this._leafNode(new me(Nr))}return(Nr){const Hr=new Ur;if(this._blockNode(Hr),this.code(Nr),Hr.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ur)}try(Nr,Hr,On){if(!Hr&&!On)throw new Error('CodeGen: "try" without "catch" and "finally"');const Gn=new Qr;if(this._blockNode(Gn),this.code(Nr),Hr){const mn=this.name("e");this._currNode=Gn.catch=new hn(mn),Hr(mn)}return On&&(this._currNode=Gn.finally=new Yt,this.code(On)),this._endBlockNode(hn,Yt)}throw(Nr){return this._leafNode(new Ee(Nr))}block(Nr,Hr){return this._blockStarts.push(this._nodes.length),Nr&&this.code(Nr).endBlock(Hr),this}endBlock(Nr){const Hr=this._blockStarts.pop();if(Hr===void 0)throw new Error("CodeGen: not in self-balancing block");const On=this._nodes.length-Hr;if(On<0||Nr!==void 0&&On!==Nr)throw new Error(`CodeGen: wrong number of nodes: ${On} vs ${Nr} expected`);return this._nodes.length=Hr,this}func(Nr,Hr=k.nil,On,Gn){return this._blockNode(new Gr(Nr,Hr,On)),Gn&&this.code(Gn).endFunc(),this}endFunc(){return this._endBlockNode(Gr)}optimize(Nr=1){for(;Nr-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(Nr){return this._currNode.nodes.push(Nr),this}_blockNode(Nr){this._currNode.nodes.push(Nr),this._nodes.push(Nr)}_endBlockNode(Nr,Hr){const On=this._currNode;if(On instanceof Nr||Hr&&On instanceof Hr)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${Hr?`${Nr.kind}/${Hr.kind}`:Nr.kind}"`)}_elseNode(Nr){const Hr=this._currNode;if(!(Hr instanceof ur))throw new Error('CodeGen: "else" without "if"');return this._currNode=Hr.else=Nr,this}get _root(){return this._nodes[0]}get _currNode(){const Nr=this._nodes;return Nr[Nr.length-1]}set _currNode(Nr){const Hr=this._nodes;Hr[Hr.length-1]=Nr}};v.CodeGen=fn;function Qt(Nr,Hr){for(const On in Hr)Nr[On]=(Nr[On]||0)+(Hr[On]||0);return Nr}function Xt(Nr,Hr){return Hr instanceof k._CodeOrName?Qt(Nr,Hr.names):Nr}function Kr(Nr,Hr,On){if(Nr instanceof k.Name)return Gn(Nr);if(!mn(Nr))return Nr;return new k._Code(Nr._items.reduce((Nn,In)=>(In instanceof k.Name&&(In=Gn(In)),In instanceof k._Code?Nn.push(...In._items):Nn.push(In),Nn),[]));function Gn(Nn){const In=On[Nn.str];return In===void 0||Hr[Nn.str]!==1?Nn:(delete Hr[Nn.str],In)}function mn(Nn){return Nn instanceof k._Code&&Nn._items.some(In=>In instanceof k.Name&&Hr[In.str]===1&&On[In.str]!==void 0)}}function be(Nr,Hr){for(const On in Hr)Nr[On]=(Nr[On]||0)-(Hr[On]||0)}function kr(Nr){return typeof Nr=="boolean"||typeof Nr=="number"||Nr===null?!Nr:(0,k._)`!${Jr(Nr)}`}v.not=kr;var xr=zr(v.operators.AND);function Wr(...Nr){return Nr.reduce(xr)}v.and=Wr;var Jt=zr(v.operators.OR);function Xr(...Nr){return Nr.reduce(Jt)}v.or=Xr;function zr(Nr){return(Hr,On)=>Hr===k.nil?On:On===k.nil?Hr:(0,k._)`${Jr(Hr)} ${Nr} ${Jr(On)}`}function Jr(Nr){return Nr instanceof k.Name?Nr:(0,k._)`(${Nr})`}}}),require_util$1=__commonJS$1({"node_modules/ajv/dist/compile/util.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.checkStrictMode=v.getErrorPath=v.Type=v.useFunc=v.setEvaluated=v.evaluatedPropsToName=v.mergeEvaluated=v.eachItem=v.unescapeJsonPointer=v.escapeJsonPointer=v.escapeFragment=v.unescapeFragment=v.schemaRefOrVal=v.schemaHasRulesButRef=v.schemaHasRules=v.checkUnknownRules=v.alwaysValidSchema=v.toHash=void 0;var k=require_codegen(),ie=require_code();function ae(Gr){const Ur={};for(const Qr of Gr)Ur[Qr]=!0;return Ur}v.toHash=ae;function ce(Gr,Ur){return typeof Ur=="boolean"?Ur:Object.keys(Ur).length===0?!0:(fe(Gr,Ur),!le(Ur,Gr.self.RULES.all))}v.alwaysValidSchema=ce;function fe(Gr,Ur=Gr.schema){const{opts:Qr,self:hn}=Gr;if(!Qr.strictSchema||typeof Ur=="boolean")return;const Yt=hn.RULES.keywords;for(const fn in Ur)Yt[fn]||Vr(Gr,`unknown keyword: "${fn}"`)}v.checkUnknownRules=fe;function le(Gr,Ur){if(typeof Gr=="boolean")return!Gr;for(const Qr in Gr)if(Ur[Qr])return!0;return!1}v.schemaHasRules=le;function ve(Gr,Ur){if(typeof Gr=="boolean")return!Gr;for(const Qr in Gr)if(Qr!=="$ref"&&Ur.all[Qr])return!0;return!1}v.schemaHasRulesButRef=ve;function pe({topSchemaRef:Gr,schemaPath:Ur},Qr,hn,Yt){if(!Yt){if(typeof Qr=="number"||typeof Qr=="boolean")return Qr;if(typeof Qr=="string")return(0,k._)`${Qr}`}return(0,k._)`${Gr}${Ur}${(0,k.getProperty)(hn)}`}v.schemaRefOrVal=pe;function ye(Gr){return cr(decodeURIComponent(Gr))}v.unescapeFragment=ye;function me(Gr){return encodeURIComponent(Ee(Gr))}v.escapeFragment=me;function Ee(Gr){return typeof Gr=="number"?`${Gr}`:Gr.replace(/~/g,"~0").replace(/\//g,"~1")}v.escapeJsonPointer=Ee;function cr(Gr){return Gr.replace(/~1/g,"/").replace(/~0/g,"~")}v.unescapeJsonPointer=cr;function Br(Gr,Ur){if(Array.isArray(Gr))for(const Qr of Gr)Ur(Qr);else Ur(Gr)}v.eachItem=Br;function $r({mergeNames:Gr,mergeToName:Ur,mergeValues:Qr,resultToName:hn}){return(Yt,fn,Qt,Xt)=>{const Kr=Qt===void 0?fn:Qt instanceof k.Name?(fn instanceof k.Name?Gr(Yt,fn,Qt):Ur(Yt,fn,Qt),Qt):fn instanceof k.Name?(Ur(Yt,Qt,fn),fn):Qr(fn,Qt);return Xt===k.Name&&!(Kr instanceof k.Name)?hn(Yt,Kr):Kr}}v.mergeEvaluated={props:$r({mergeNames:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true && ${Ur} !== undefined`,()=>{Gr.if((0,k._)`${Ur} === true`,()=>Gr.assign(Qr,!0),()=>Gr.assign(Qr,(0,k._)`${Qr} || {}`).code((0,k._)`Object.assign(${Qr}, ${Ur})`))}),mergeToName:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true`,()=>{Ur===!0?Gr.assign(Qr,!0):(Gr.assign(Qr,(0,k._)`${Qr} || {}`),Ar(Gr,Qr,Ur))}),mergeValues:(Gr,Ur)=>Gr===!0?!0:{...Gr,...Ur},resultToName:Pr}),items:$r({mergeNames:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true && ${Ur} !== undefined`,()=>Gr.assign(Qr,(0,k._)`${Ur} === true ? true : ${Qr} > ${Ur} ? ${Qr} : ${Ur}`)),mergeToName:(Gr,Ur,Qr)=>Gr.if((0,k._)`${Qr} !== true`,()=>Gr.assign(Qr,Ur===!0?!0:(0,k._)`${Qr} > ${Ur} ? ${Qr} : ${Ur}`)),mergeValues:(Gr,Ur)=>Gr===!0?!0:Math.max(Gr,Ur),resultToName:(Gr,Ur)=>Gr.var("items",Ur)})};function Pr(Gr,Ur){if(Ur===!0)return Gr.var("props",!0);const Qr=Gr.var("props",(0,k._)`{}`);return Ur!==void 0&&Ar(Gr,Qr,Ur),Qr}v.evaluatedPropsToName=Pr;function Ar(Gr,Ur,Qr){Object.keys(Qr).forEach(hn=>Gr.assign((0,k._)`${Ur}${(0,k.getProperty)(hn)}`,!0))}v.setEvaluated=Ar;var ur={};function jr(Gr,Ur){return Gr.scopeValue("func",{ref:Ur,code:ur[Ur.code]||(ur[Ur.code]=new ie._Code(Ur.code))})}v.useFunc=jr;var Mr;(function(Gr){Gr[Gr.Num=0]="Num",Gr[Gr.Str=1]="Str"})(Mr=v.Type||(v.Type={}));function Lr(Gr,Ur,Qr){if(Gr instanceof k.Name){const hn=Ur===Mr.Num;return Qr?hn?(0,k._)`"[" + ${Gr} + "]"`:(0,k._)`"['" + ${Gr} + "']"`:hn?(0,k._)`"/" + ${Gr}`:(0,k._)`"/" + ${Gr}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return Qr?(0,k.getProperty)(Gr).toString():"/"+Ee(Gr)}v.getErrorPath=Lr;function Vr(Gr,Ur,Qr=Gr.opts.strictSchema){if(!!Qr){if(Ur=`strict mode: ${Ur}`,Qr===!0)throw new Error(Ur);Gr.self.logger.warn(Ur)}}v.checkStrictMode=Vr}}),require_names=__commonJS$1({"node_modules/ajv/dist/compile/names.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie={data:new k.Name("data"),valCxt:new k.Name("valCxt"),instancePath:new k.Name("instancePath"),parentData:new k.Name("parentData"),parentDataProperty:new k.Name("parentDataProperty"),rootData:new k.Name("rootData"),dynamicAnchors:new k.Name("dynamicAnchors"),vErrors:new k.Name("vErrors"),errors:new k.Name("errors"),this:new k.Name("this"),self:new k.Name("self"),scope:new k.Name("scope"),json:new k.Name("json"),jsonPos:new k.Name("jsonPos"),jsonLen:new k.Name("jsonLen"),jsonPart:new k.Name("jsonPart")};v.default=ie}}),require_errors4=__commonJS$1({"node_modules/ajv/dist/compile/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.extendErrors=v.resetErrorsCount=v.reportExtraError=v.reportError=v.keyword$DataError=v.keywordError=void 0;var k=require_codegen(),ie=require_util$1(),ae=require_names();v.keywordError={message:({keyword:Ar})=>(0,k.str)`must pass "${Ar}" keyword validation`},v.keyword$DataError={message:({keyword:Ar,schemaType:ur})=>ur?(0,k.str)`"${Ar}" keyword must be ${ur} ($data)`:(0,k.str)`"${Ar}" keyword is invalid ($data)`};function ce(Ar,ur=v.keywordError,jr,Mr){const{it:Lr}=Ar,{gen:Vr,compositeRule:Gr,allErrors:Ur}=Lr,Qr=Ee(Ar,ur,jr);(Mr!=null?Mr:Gr||Ur)?pe(Vr,Qr):ye(Lr,(0,k._)`[${Qr}]`)}v.reportError=ce;function fe(Ar,ur=v.keywordError,jr){const{it:Mr}=Ar,{gen:Lr,compositeRule:Vr,allErrors:Gr}=Mr,Ur=Ee(Ar,ur,jr);pe(Lr,Ur),Vr||Gr||ye(Mr,ae.default.vErrors)}v.reportExtraError=fe;function le(Ar,ur){Ar.assign(ae.default.errors,ur),Ar.if((0,k._)`${ae.default.vErrors} !== null`,()=>Ar.if(ur,()=>Ar.assign((0,k._)`${ae.default.vErrors}.length`,ur),()=>Ar.assign(ae.default.vErrors,null)))}v.resetErrorsCount=le;function ve({gen:Ar,keyword:ur,schemaValue:jr,data:Mr,errsCount:Lr,it:Vr}){if(Lr===void 0)throw new Error("ajv implementation error");const Gr=Ar.name("err");Ar.forRange("i",Lr,ae.default.errors,Ur=>{Ar.const(Gr,(0,k._)`${ae.default.vErrors}[${Ur}]`),Ar.if((0,k._)`${Gr}.instancePath === undefined`,()=>Ar.assign((0,k._)`${Gr}.instancePath`,(0,k.strConcat)(ae.default.instancePath,Vr.errorPath))),Ar.assign((0,k._)`${Gr}.schemaPath`,(0,k.str)`${Vr.errSchemaPath}/${ur}`),Vr.opts.verbose&&(Ar.assign((0,k._)`${Gr}.schema`,jr),Ar.assign((0,k._)`${Gr}.data`,Mr))})}v.extendErrors=ve;function pe(Ar,ur){const jr=Ar.const("err",ur);Ar.if((0,k._)`${ae.default.vErrors} === null`,()=>Ar.assign(ae.default.vErrors,(0,k._)`[${jr}]`),(0,k._)`${ae.default.vErrors}.push(${jr})`),Ar.code((0,k._)`${ae.default.errors}++`)}function ye(Ar,ur){const{gen:jr,validateName:Mr,schemaEnv:Lr}=Ar;Lr.$async?jr.throw((0,k._)`new ${Ar.ValidationError}(${ur})`):(jr.assign((0,k._)`${Mr}.errors`,ur),jr.return(!1))}var me={keyword:new k.Name("keyword"),schemaPath:new k.Name("schemaPath"),params:new k.Name("params"),propertyName:new k.Name("propertyName"),message:new k.Name("message"),schema:new k.Name("schema"),parentSchema:new k.Name("parentSchema")};function Ee(Ar,ur,jr){const{createErrors:Mr}=Ar.it;return Mr===!1?(0,k._)`{}`:cr(Ar,ur,jr)}function cr(Ar,ur,jr={}){const{gen:Mr,it:Lr}=Ar,Vr=[Br(Lr,jr),$r(Ar,jr)];return Pr(Ar,ur,Vr),Mr.object(...Vr)}function Br({errorPath:Ar},{instancePath:ur}){const jr=ur?(0,k.str)`${Ar}${(0,ie.getErrorPath)(ur,ie.Type.Str)}`:Ar;return[ae.default.instancePath,(0,k.strConcat)(ae.default.instancePath,jr)]}function $r({keyword:Ar,it:{errSchemaPath:ur}},{schemaPath:jr,parentSchema:Mr}){let Lr=Mr?ur:(0,k.str)`${ur}/${Ar}`;return jr&&(Lr=(0,k.str)`${Lr}${(0,ie.getErrorPath)(jr,ie.Type.Str)}`),[me.schemaPath,Lr]}function Pr(Ar,{params:ur,message:jr},Mr){const{keyword:Lr,data:Vr,schemaValue:Gr,it:Ur}=Ar,{opts:Qr,propertyName:hn,topSchemaRef:Yt,schemaPath:fn}=Ur;Mr.push([me.keyword,Lr],[me.params,typeof ur=="function"?ur(Ar):ur||(0,k._)`{}`]),Qr.messages&&Mr.push([me.message,typeof jr=="function"?jr(Ar):jr]),Qr.verbose&&Mr.push([me.schema,Gr],[me.parentSchema,(0,k._)`${Yt}${fn}`],[ae.default.data,Vr]),hn&&Mr.push([me.propertyName,hn])}}}),require_boolSchema=__commonJS$1({"node_modules/ajv/dist/compile/validate/boolSchema.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.boolOrEmptySchema=v.topBoolOrEmptySchema=void 0;var k=require_errors4(),ie=require_codegen(),ae=require_names(),ce={message:"boolean schema is false"};function fe(pe){const{gen:ye,schema:me,validateName:Ee}=pe;me===!1?ve(pe,!1):typeof me=="object"&&me.$async===!0?ye.return(ae.default.data):(ye.assign((0,ie._)`${Ee}.errors`,null),ye.return(!0))}v.topBoolOrEmptySchema=fe;function le(pe,ye){const{gen:me,schema:Ee}=pe;Ee===!1?(me.var(ye,!1),ve(pe)):me.var(ye,!0)}v.boolOrEmptySchema=le;function ve(pe,ye){const{gen:me,data:Ee}=pe,cr={gen:me,keyword:"false schema",data:Ee,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:pe};(0,k.reportError)(cr,ce,void 0,ye)}}}),require_rules=__commonJS$1({"node_modules/ajv/dist/compile/rules.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getRules=v.isJSONType=void 0;var k=["string","number","integer","boolean","null","object","array"],ie=new Set(k);function ae(fe){return typeof fe=="string"&&ie.has(fe)}v.isJSONType=ae;function ce(){const fe={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...fe,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},fe.number,fe.string,fe.array,fe.object],post:{rules:[]},all:{},keywords:{}}}v.getRules=ce}}),require_applicability=__commonJS$1({"node_modules/ajv/dist/compile/validate/applicability.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.shouldUseRule=v.shouldUseGroup=v.schemaHasRulesForType=void 0;function k({schema:ce,self:fe},le){const ve=fe.RULES.types[le];return ve&&ve!==!0&&ie(ce,ve)}v.schemaHasRulesForType=k;function ie(ce,fe){return fe.rules.some(le=>ae(ce,le))}v.shouldUseGroup=ie;function ae(ce,fe){var le;return ce[fe.keyword]!==void 0||((le=fe.definition.implements)===null||le===void 0?void 0:le.some(ve=>ce[ve]!==void 0))}v.shouldUseRule=ae}}),require_dataType=__commonJS$1({"node_modules/ajv/dist/compile/validate/dataType.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.reportTypeError=v.checkDataTypes=v.checkDataType=v.coerceAndCheckDataType=v.getJSONTypes=v.getSchemaTypes=v.DataType=void 0;var k=require_rules(),ie=require_applicability(),ae=require_errors4(),ce=require_codegen(),fe=require_util$1(),le;(function(Mr){Mr[Mr.Correct=0]="Correct",Mr[Mr.Wrong=1]="Wrong"})(le=v.DataType||(v.DataType={}));function ve(Mr){const Lr=pe(Mr.type);if(Lr.includes("null")){if(Mr.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!Lr.length&&Mr.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');Mr.nullable===!0&&Lr.push("null")}return Lr}v.getSchemaTypes=ve;function pe(Mr){const Lr=Array.isArray(Mr)?Mr:Mr?[Mr]:[];if(Lr.every(k.isJSONType))return Lr;throw new Error("type must be JSONType or JSONType[]: "+Lr.join(","))}v.getJSONTypes=pe;function ye(Mr,Lr){const{gen:Vr,data:Gr,opts:Ur}=Mr,Qr=Ee(Lr,Ur.coerceTypes),hn=Lr.length>0&&!(Qr.length===0&&Lr.length===1&&(0,ie.schemaHasRulesForType)(Mr,Lr[0]));if(hn){const Yt=Pr(Lr,Gr,Ur.strictNumbers,le.Wrong);Vr.if(Yt,()=>{Qr.length?cr(Mr,Lr,Qr):ur(Mr)})}return hn}v.coerceAndCheckDataType=ye;var me=new Set(["string","number","integer","boolean","null"]);function Ee(Mr,Lr){return Lr?Mr.filter(Vr=>me.has(Vr)||Lr==="array"&&Vr==="array"):[]}function cr(Mr,Lr,Vr){const{gen:Gr,data:Ur,opts:Qr}=Mr,hn=Gr.let("dataType",(0,ce._)`typeof ${Ur}`),Yt=Gr.let("coerced",(0,ce._)`undefined`);Qr.coerceTypes==="array"&&Gr.if((0,ce._)`${hn} == 'object' && Array.isArray(${Ur}) && ${Ur}.length == 1`,()=>Gr.assign(Ur,(0,ce._)`${Ur}[0]`).assign(hn,(0,ce._)`typeof ${Ur}`).if(Pr(Lr,Ur,Qr.strictNumbers),()=>Gr.assign(Yt,Ur))),Gr.if((0,ce._)`${Yt} !== undefined`);for(const Qt of Vr)(me.has(Qt)||Qt==="array"&&Qr.coerceTypes==="array")&&fn(Qt);Gr.else(),ur(Mr),Gr.endIf(),Gr.if((0,ce._)`${Yt} !== undefined`,()=>{Gr.assign(Ur,Yt),Br(Mr,Yt)});function fn(Qt){switch(Qt){case"string":Gr.elseIf((0,ce._)`${hn} == "number" || ${hn} == "boolean"`).assign(Yt,(0,ce._)`"" + ${Ur}`).elseIf((0,ce._)`${Ur} === null`).assign(Yt,(0,ce._)`""`);return;case"number":Gr.elseIf((0,ce._)`${hn} == "boolean" || ${Ur} === null + || (${hn} == "string" && ${Ur} && ${Ur} == +${Ur})`).assign(Yt,(0,ce._)`+${Ur}`);return;case"integer":Gr.elseIf((0,ce._)`${hn} === "boolean" || ${Ur} === null + || (${hn} === "string" && ${Ur} && ${Ur} == +${Ur} && !(${Ur} % 1))`).assign(Yt,(0,ce._)`+${Ur}`);return;case"boolean":Gr.elseIf((0,ce._)`${Ur} === "false" || ${Ur} === 0 || ${Ur} === null`).assign(Yt,!1).elseIf((0,ce._)`${Ur} === "true" || ${Ur} === 1`).assign(Yt,!0);return;case"null":Gr.elseIf((0,ce._)`${Ur} === "" || ${Ur} === 0 || ${Ur} === false`),Gr.assign(Yt,null);return;case"array":Gr.elseIf((0,ce._)`${hn} === "string" || ${hn} === "number" + || ${hn} === "boolean" || ${Ur} === null`).assign(Yt,(0,ce._)`[${Ur}]`)}}}function Br({gen:Mr,parentData:Lr,parentDataProperty:Vr},Gr){Mr.if((0,ce._)`${Lr} !== undefined`,()=>Mr.assign((0,ce._)`${Lr}[${Vr}]`,Gr))}function $r(Mr,Lr,Vr,Gr=le.Correct){const Ur=Gr===le.Correct?ce.operators.EQ:ce.operators.NEQ;let Qr;switch(Mr){case"null":return(0,ce._)`${Lr} ${Ur} null`;case"array":Qr=(0,ce._)`Array.isArray(${Lr})`;break;case"object":Qr=(0,ce._)`${Lr} && typeof ${Lr} == "object" && !Array.isArray(${Lr})`;break;case"integer":Qr=hn((0,ce._)`!(${Lr} % 1) && !isNaN(${Lr})`);break;case"number":Qr=hn();break;default:return(0,ce._)`typeof ${Lr} ${Ur} ${Mr}`}return Gr===le.Correct?Qr:(0,ce.not)(Qr);function hn(Yt=ce.nil){return(0,ce.and)((0,ce._)`typeof ${Lr} == "number"`,Yt,Vr?(0,ce._)`isFinite(${Lr})`:ce.nil)}}v.checkDataType=$r;function Pr(Mr,Lr,Vr,Gr){if(Mr.length===1)return $r(Mr[0],Lr,Vr,Gr);let Ur;const Qr=(0,fe.toHash)(Mr);if(Qr.array&&Qr.object){const hn=(0,ce._)`typeof ${Lr} != "object"`;Ur=Qr.null?hn:(0,ce._)`!${Lr} || ${hn}`,delete Qr.null,delete Qr.array,delete Qr.object}else Ur=ce.nil;Qr.number&&delete Qr.integer;for(const hn in Qr)Ur=(0,ce.and)(Ur,$r(hn,Lr,Vr,Gr));return Ur}v.checkDataTypes=Pr;var Ar={message:({schema:Mr})=>`must be ${Mr}`,params:({schema:Mr,schemaValue:Lr})=>typeof Mr=="string"?(0,ce._)`{type: ${Mr}}`:(0,ce._)`{type: ${Lr}}`};function ur(Mr){const Lr=jr(Mr);(0,ae.reportError)(Lr,Ar)}v.reportTypeError=ur;function jr(Mr){const{gen:Lr,data:Vr,schema:Gr}=Mr,Ur=(0,fe.schemaRefOrVal)(Mr,Gr,"type");return{gen:Lr,keyword:"type",data:Vr,schema:Gr.type,schemaCode:Ur,schemaValue:Ur,parentSchema:Gr,params:{},it:Mr}}}}),require_defaults=__commonJS$1({"node_modules/ajv/dist/compile/validate/defaults.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.assignDefaults=void 0;var k=require_codegen(),ie=require_util$1();function ae(fe,le){const{properties:ve,items:pe}=fe.schema;if(le==="object"&&ve)for(const ye in ve)ce(fe,ye,ve[ye].default);else le==="array"&&Array.isArray(pe)&&pe.forEach((ye,me)=>ce(fe,me,ye.default))}v.assignDefaults=ae;function ce(fe,le,ve){const{gen:pe,compositeRule:ye,data:me,opts:Ee}=fe;if(ve===void 0)return;const cr=(0,k._)`${me}${(0,k.getProperty)(le)}`;if(ye){(0,ie.checkStrictMode)(fe,`default is ignored for: ${cr}`);return}let Br=(0,k._)`${cr} === undefined`;Ee.useDefaults==="empty"&&(Br=(0,k._)`${Br} || ${cr} === null || ${cr} === ""`),pe.if(Br,(0,k._)`${cr} = ${(0,k.stringify)(ve)}`)}}}),require_code2=__commonJS$1({"node_modules/ajv/dist/vocabularies/code.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateUnion=v.validateArray=v.usePattern=v.callValidateCode=v.schemaProperties=v.allSchemaProperties=v.noPropertyInData=v.propertyInData=v.isOwnProperty=v.hasPropFunc=v.reportMissingProp=v.checkMissingProp=v.checkReportMissingProp=void 0;var k=require_codegen(),ie=require_util$1(),ae=require_names(),ce=require_util$1();function fe(Mr,Lr){const{gen:Vr,data:Gr,it:Ur}=Mr;Vr.if(Ee(Vr,Gr,Lr,Ur.opts.ownProperties),()=>{Mr.setParams({missingProperty:(0,k._)`${Lr}`},!0),Mr.error()})}v.checkReportMissingProp=fe;function le({gen:Mr,data:Lr,it:{opts:Vr}},Gr,Ur){return(0,k.or)(...Gr.map(Qr=>(0,k.and)(Ee(Mr,Lr,Qr,Vr.ownProperties),(0,k._)`${Ur} = ${Qr}`)))}v.checkMissingProp=le;function ve(Mr,Lr){Mr.setParams({missingProperty:Lr},!0),Mr.error()}v.reportMissingProp=ve;function pe(Mr){return Mr.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,k._)`Object.prototype.hasOwnProperty`})}v.hasPropFunc=pe;function ye(Mr,Lr,Vr){return(0,k._)`${pe(Mr)}.call(${Lr}, ${Vr})`}v.isOwnProperty=ye;function me(Mr,Lr,Vr,Gr){const Ur=(0,k._)`${Lr}${(0,k.getProperty)(Vr)} !== undefined`;return Gr?(0,k._)`${Ur} && ${ye(Mr,Lr,Vr)}`:Ur}v.propertyInData=me;function Ee(Mr,Lr,Vr,Gr){const Ur=(0,k._)`${Lr}${(0,k.getProperty)(Vr)} === undefined`;return Gr?(0,k.or)(Ur,(0,k.not)(ye(Mr,Lr,Vr))):Ur}v.noPropertyInData=Ee;function cr(Mr){return Mr?Object.keys(Mr).filter(Lr=>Lr!=="__proto__"):[]}v.allSchemaProperties=cr;function Br(Mr,Lr){return cr(Lr).filter(Vr=>!(0,ie.alwaysValidSchema)(Mr,Lr[Vr]))}v.schemaProperties=Br;function $r({schemaCode:Mr,data:Lr,it:{gen:Vr,topSchemaRef:Gr,schemaPath:Ur,errorPath:Qr},it:hn},Yt,fn,Qt){const Xt=Qt?(0,k._)`${Mr}, ${Lr}, ${Gr}${Ur}`:Lr,Kr=[[ae.default.instancePath,(0,k.strConcat)(ae.default.instancePath,Qr)],[ae.default.parentData,hn.parentData],[ae.default.parentDataProperty,hn.parentDataProperty],[ae.default.rootData,ae.default.rootData]];hn.opts.dynamicRef&&Kr.push([ae.default.dynamicAnchors,ae.default.dynamicAnchors]);const be=(0,k._)`${Xt}, ${Vr.object(...Kr)}`;return fn!==k.nil?(0,k._)`${Yt}.call(${fn}, ${be})`:(0,k._)`${Yt}(${be})`}v.callValidateCode=$r;var Pr=(0,k._)`new RegExp`;function Ar({gen:Mr,it:{opts:Lr}},Vr){const Gr=Lr.unicodeRegExp?"u":"",{regExp:Ur}=Lr.code,Qr=Ur(Vr,Gr);return Mr.scopeValue("pattern",{key:Qr.toString(),ref:Qr,code:(0,k._)`${Ur.code==="new RegExp"?Pr:(0,ce.useFunc)(Mr,Ur)}(${Vr}, ${Gr})`})}v.usePattern=Ar;function ur(Mr){const{gen:Lr,data:Vr,keyword:Gr,it:Ur}=Mr,Qr=Lr.name("valid");if(Ur.allErrors){const Yt=Lr.let("valid",!0);return hn(()=>Lr.assign(Yt,!1)),Yt}return Lr.var(Qr,!0),hn(()=>Lr.break()),Qr;function hn(Yt){const fn=Lr.const("len",(0,k._)`${Vr}.length`);Lr.forRange("i",0,fn,Qt=>{Mr.subschema({keyword:Gr,dataProp:Qt,dataPropType:ie.Type.Num},Qr),Lr.if((0,k.not)(Qr),Yt)})}}v.validateArray=ur;function jr(Mr){const{gen:Lr,schema:Vr,keyword:Gr,it:Ur}=Mr;if(!Array.isArray(Vr))throw new Error("ajv implementation error");if(Vr.some(fn=>(0,ie.alwaysValidSchema)(Ur,fn))&&!Ur.opts.unevaluated)return;const hn=Lr.let("valid",!1),Yt=Lr.name("_valid");Lr.block(()=>Vr.forEach((fn,Qt)=>{const Xt=Mr.subschema({keyword:Gr,schemaProp:Qt,compositeRule:!0},Yt);Lr.assign(hn,(0,k._)`${hn} || ${Yt}`),Mr.mergeValidEvaluated(Xt,Yt)||Lr.if((0,k.not)(hn))})),Mr.result(hn,()=>Mr.reset(),()=>Mr.error(!0))}v.validateUnion=jr}}),require_keyword=__commonJS$1({"node_modules/ajv/dist/compile/validate/keyword.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateKeywordUsage=v.validSchemaType=v.funcKeywordCode=v.macroKeywordCode=void 0;var k=require_codegen(),ie=require_names(),ae=require_code2(),ce=require_errors4();function fe(Br,$r){const{gen:Pr,keyword:Ar,schema:ur,parentSchema:jr,it:Mr}=Br,Lr=$r.macro.call(Mr.self,ur,jr,Mr),Vr=me(Pr,Ar,Lr);Mr.opts.validateSchema!==!1&&Mr.self.validateSchema(Lr,!0);const Gr=Pr.name("valid");Br.subschema({schema:Lr,schemaPath:k.nil,errSchemaPath:`${Mr.errSchemaPath}/${Ar}`,topSchemaRef:Vr,compositeRule:!0},Gr),Br.pass(Gr,()=>Br.error(!0))}v.macroKeywordCode=fe;function le(Br,$r){var Pr;const{gen:Ar,keyword:ur,schema:jr,parentSchema:Mr,$data:Lr,it:Vr}=Br;ye(Vr,$r);const Gr=!Lr&&$r.compile?$r.compile.call(Vr.self,jr,Mr,Vr):$r.validate,Ur=me(Ar,ur,Gr),Qr=Ar.let("valid");Br.block$data(Qr,hn),Br.ok((Pr=$r.valid)!==null&&Pr!==void 0?Pr:Qr);function hn(){if($r.errors===!1)Qt(),$r.modifying&&ve(Br),Xt(()=>Br.error());else{const Kr=$r.async?Yt():fn();$r.modifying&&ve(Br),Xt(()=>pe(Br,Kr))}}function Yt(){const Kr=Ar.let("ruleErrs",null);return Ar.try(()=>Qt((0,k._)`await `),be=>Ar.assign(Qr,!1).if((0,k._)`${be} instanceof ${Vr.ValidationError}`,()=>Ar.assign(Kr,(0,k._)`${be}.errors`),()=>Ar.throw(be))),Kr}function fn(){const Kr=(0,k._)`${Ur}.errors`;return Ar.assign(Kr,null),Qt(k.nil),Kr}function Qt(Kr=$r.async?(0,k._)`await `:k.nil){const be=Vr.opts.passContext?ie.default.this:ie.default.self,kr=!("compile"in $r&&!Lr||$r.schema===!1);Ar.assign(Qr,(0,k._)`${Kr}${(0,ae.callValidateCode)(Br,Ur,be,kr)}`,$r.modifying)}function Xt(Kr){var be;Ar.if((0,k.not)((be=$r.valid)!==null&&be!==void 0?be:Qr),Kr)}}v.funcKeywordCode=le;function ve(Br){const{gen:$r,data:Pr,it:Ar}=Br;$r.if(Ar.parentData,()=>$r.assign(Pr,(0,k._)`${Ar.parentData}[${Ar.parentDataProperty}]`))}function pe(Br,$r){const{gen:Pr}=Br;Pr.if((0,k._)`Array.isArray(${$r})`,()=>{Pr.assign(ie.default.vErrors,(0,k._)`${ie.default.vErrors} === null ? ${$r} : ${ie.default.vErrors}.concat(${$r})`).assign(ie.default.errors,(0,k._)`${ie.default.vErrors}.length`),(0,ce.extendErrors)(Br)},()=>Br.error())}function ye({schemaEnv:Br},$r){if($r.async&&!Br.$async)throw new Error("async keyword in sync schema")}function me(Br,$r,Pr){if(Pr===void 0)throw new Error(`keyword "${$r}" failed to compile`);return Br.scopeValue("keyword",typeof Pr=="function"?{ref:Pr}:{ref:Pr,code:(0,k.stringify)(Pr)})}function Ee(Br,$r,Pr=!1){return!$r.length||$r.some(Ar=>Ar==="array"?Array.isArray(Br):Ar==="object"?Br&&typeof Br=="object"&&!Array.isArray(Br):typeof Br==Ar||Pr&&typeof Br>"u")}v.validSchemaType=Ee;function cr({schema:Br,opts:$r,self:Pr,errSchemaPath:Ar},ur,jr){if(Array.isArray(ur.keyword)?!ur.keyword.includes(jr):ur.keyword!==jr)throw new Error("ajv implementation error");const Mr=ur.dependencies;if(Mr!=null&&Mr.some(Lr=>!Object.prototype.hasOwnProperty.call(Br,Lr)))throw new Error(`parent schema must have dependencies of ${jr}: ${Mr.join(",")}`);if(ur.validateSchema&&!ur.validateSchema(Br[jr])){const Vr=`keyword "${jr}" value is invalid at path "${Ar}": `+Pr.errorsText(ur.validateSchema.errors);if($r.validateSchema==="log")Pr.logger.error(Vr);else throw new Error(Vr)}}v.validateKeywordUsage=cr}}),require_subschema=__commonJS$1({"node_modules/ajv/dist/compile/validate/subschema.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.extendSubschemaMode=v.extendSubschemaData=v.getSubschema=void 0;var k=require_codegen(),ie=require_util$1();function ae(le,{keyword:ve,schemaProp:pe,schema:ye,schemaPath:me,errSchemaPath:Ee,topSchemaRef:cr}){if(ve!==void 0&&ye!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(ve!==void 0){const Br=le.schema[ve];return pe===void 0?{schema:Br,schemaPath:(0,k._)`${le.schemaPath}${(0,k.getProperty)(ve)}`,errSchemaPath:`${le.errSchemaPath}/${ve}`}:{schema:Br[pe],schemaPath:(0,k._)`${le.schemaPath}${(0,k.getProperty)(ve)}${(0,k.getProperty)(pe)}`,errSchemaPath:`${le.errSchemaPath}/${ve}/${(0,ie.escapeFragment)(pe)}`}}if(ye!==void 0){if(me===void 0||Ee===void 0||cr===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:ye,schemaPath:me,topSchemaRef:cr,errSchemaPath:Ee}}throw new Error('either "keyword" or "schema" must be passed')}v.getSubschema=ae;function ce(le,ve,{dataProp:pe,dataPropType:ye,data:me,dataTypes:Ee,propertyName:cr}){if(me!==void 0&&pe!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:Br}=ve;if(pe!==void 0){const{errorPath:Pr,dataPathArr:Ar,opts:ur}=ve,jr=Br.let("data",(0,k._)`${ve.data}${(0,k.getProperty)(pe)}`,!0);$r(jr),le.errorPath=(0,k.str)`${Pr}${(0,ie.getErrorPath)(pe,ye,ur.jsPropertySyntax)}`,le.parentDataProperty=(0,k._)`${pe}`,le.dataPathArr=[...Ar,le.parentDataProperty]}if(me!==void 0){const Pr=me instanceof k.Name?me:Br.let("data",me,!0);$r(Pr),cr!==void 0&&(le.propertyName=cr)}Ee&&(le.dataTypes=Ee);function $r(Pr){le.data=Pr,le.dataLevel=ve.dataLevel+1,le.dataTypes=[],ve.definedProperties=new Set,le.parentData=ve.data,le.dataNames=[...ve.dataNames,Pr]}}v.extendSubschemaData=ce;function fe(le,{jtdDiscriminator:ve,jtdMetadata:pe,compositeRule:ye,createErrors:me,allErrors:Ee}){ye!==void 0&&(le.compositeRule=ye),me!==void 0&&(le.createErrors=me),Ee!==void 0&&(le.allErrors=Ee),le.jtdDiscriminator=ve,le.jtdMetadata=pe}v.extendSubschemaMode=fe}}),require_fast_deep_equal=__commonJS$1({"node_modules/fast-deep-equal/index.js"(v,k){k.exports=function ie(ae,ce){if(ae===ce)return!0;if(ae&&ce&&typeof ae=="object"&&typeof ce=="object"){if(ae.constructor!==ce.constructor)return!1;var fe,le,ve;if(Array.isArray(ae)){if(fe=ae.length,fe!=ce.length)return!1;for(le=fe;le--!==0;)if(!ie(ae[le],ce[le]))return!1;return!0}if(ae.constructor===RegExp)return ae.source===ce.source&&ae.flags===ce.flags;if(ae.valueOf!==Object.prototype.valueOf)return ae.valueOf()===ce.valueOf();if(ae.toString!==Object.prototype.toString)return ae.toString()===ce.toString();if(ve=Object.keys(ae),fe=ve.length,fe!==Object.keys(ce).length)return!1;for(le=fe;le--!==0;)if(!Object.prototype.hasOwnProperty.call(ce,ve[le]))return!1;for(le=fe;le--!==0;){var pe=ve[le];if(!ie(ae[pe],ce[pe]))return!1}return!0}return ae!==ae&&ce!==ce}}}),require_json_schema_traverse=__commonJS$1({"node_modules/json-schema-traverse/index.js"(v,k){var ie=k.exports=function(fe,le,ve){typeof le=="function"&&(ve=le,le={}),ve=le.cb||ve;var pe=typeof ve=="function"?ve:ve.pre||function(){},ye=ve.post||function(){};ae(le,pe,ye,fe,"",fe)};ie.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},ie.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},ie.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},ie.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ae(fe,le,ve,pe,ye,me,Ee,cr,Br,$r){if(pe&&typeof pe=="object"&&!Array.isArray(pe)){le(pe,ye,me,Ee,cr,Br,$r);for(var Pr in pe){var Ar=pe[Pr];if(Array.isArray(Ar)){if(Pr in ie.arrayKeywords)for(var ur=0;urur+=pe(Mr)),ur===1/0))return 1/0}return ur}function ye(Ar,ur="",jr){jr!==!1&&(ur=cr(ur));const Mr=Ar.parse(ur);return me(Ar,Mr)}v.getFullPath=ye;function me(Ar,ur){return Ar.serialize(ur).split("#")[0]+"#"}v._getFullPath=me;var Ee=/#\/?$/;function cr(Ar){return Ar?Ar.replace(Ee,""):""}v.normalizeId=cr;function Br(Ar,ur,jr){return jr=cr(jr),Ar.resolve(ur,jr)}v.resolveUrl=Br;var $r=/^[a-z_][-a-z0-9._]*$/i;function Pr(Ar,ur){if(typeof Ar=="boolean")return{};const{schemaId:jr,uriResolver:Mr}=this.opts,Lr=cr(Ar[jr]||ur),Vr={"":Lr},Gr=ye(Mr,Lr,!1),Ur={},Qr=new Set;return ae(Ar,{allKeys:!0},(fn,Qt,Xt,Kr)=>{if(Kr===void 0)return;const be=Gr+Qt;let kr=Vr[Kr];typeof fn[jr]=="string"&&(kr=xr.call(this,fn[jr])),Wr.call(this,fn.$anchor),Wr.call(this,fn.$dynamicAnchor),Vr[Qt]=kr;function xr(Jt){const Xr=this.opts.uriResolver.resolve;if(Jt=cr(kr?Xr(kr,Jt):Jt),Qr.has(Jt))throw Yt(Jt);Qr.add(Jt);let zr=this.refs[Jt];return typeof zr=="string"&&(zr=this.refs[zr]),typeof zr=="object"?hn(fn,zr.schema,Jt):Jt!==cr(be)&&(Jt[0]==="#"?(hn(fn,Ur[Jt],Jt),Ur[Jt]=fn):this.refs[Jt]=be),Jt}function Wr(Jt){if(typeof Jt=="string"){if(!$r.test(Jt))throw new Error(`invalid anchor "${Jt}"`);xr.call(this,`#${Jt}`)}}}),Ur;function hn(fn,Qt,Xt){if(Qt!==void 0&&!ie(fn,Qt))throw Yt(Xt)}function Yt(fn){return new Error(`reference "${fn}" resolves to more than one schema`)}}v.getSchemaRefs=Pr}}),require_validate=__commonJS$1({"node_modules/ajv/dist/compile/validate/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getData=v.KeywordCxt=v.validateFunctionCode=void 0;var k=require_boolSchema(),ie=require_dataType(),ae=require_applicability(),ce=require_dataType(),fe=require_defaults(),le=require_keyword(),ve=require_subschema(),pe=require_codegen(),ye=require_names(),me=require_resolve(),Ee=require_util$1(),cr=require_errors4();function Br(vn){if(Gr(vn)&&(Qr(vn),Vr(vn))){ur(vn);return}$r(vn,()=>(0,k.topBoolOrEmptySchema)(vn))}v.validateFunctionCode=Br;function $r({gen:vn,validateName:pn,schema:Sn,schemaEnv:Qn,opts:Jn},ui){Jn.code.es5?vn.func(pn,(0,pe._)`${ye.default.data}, ${ye.default.valCxt}`,Qn.$async,()=>{vn.code((0,pe._)`"use strict"; ${Mr(Sn,Jn)}`),Ar(vn,Jn),vn.code(ui)}):vn.func(pn,(0,pe._)`${ye.default.data}, ${Pr(Jn)}`,Qn.$async,()=>vn.code(Mr(Sn,Jn)).code(ui))}function Pr(vn){return(0,pe._)`{${ye.default.instancePath}="", ${ye.default.parentData}, ${ye.default.parentDataProperty}, ${ye.default.rootData}=${ye.default.data}${vn.dynamicRef?(0,pe._)`, ${ye.default.dynamicAnchors}={}`:pe.nil}}={}`}function Ar(vn,pn){vn.if(ye.default.valCxt,()=>{vn.var(ye.default.instancePath,(0,pe._)`${ye.default.valCxt}.${ye.default.instancePath}`),vn.var(ye.default.parentData,(0,pe._)`${ye.default.valCxt}.${ye.default.parentData}`),vn.var(ye.default.parentDataProperty,(0,pe._)`${ye.default.valCxt}.${ye.default.parentDataProperty}`),vn.var(ye.default.rootData,(0,pe._)`${ye.default.valCxt}.${ye.default.rootData}`),pn.dynamicRef&&vn.var(ye.default.dynamicAnchors,(0,pe._)`${ye.default.valCxt}.${ye.default.dynamicAnchors}`)},()=>{vn.var(ye.default.instancePath,(0,pe._)`""`),vn.var(ye.default.parentData,(0,pe._)`undefined`),vn.var(ye.default.parentDataProperty,(0,pe._)`undefined`),vn.var(ye.default.rootData,ye.default.data),pn.dynamicRef&&vn.var(ye.default.dynamicAnchors,(0,pe._)`{}`)})}function ur(vn){const{schema:pn,opts:Sn,gen:Qn}=vn;$r(vn,()=>{Sn.$comment&&pn.$comment&&Kr(vn),fn(vn),Qn.let(ye.default.vErrors,null),Qn.let(ye.default.errors,0),Sn.unevaluated&&jr(vn),hn(vn),be(vn)})}function jr(vn){const{gen:pn,validateName:Sn}=vn;vn.evaluated=pn.const("evaluated",(0,pe._)`${Sn}.evaluated`),pn.if((0,pe._)`${vn.evaluated}.dynamicProps`,()=>pn.assign((0,pe._)`${vn.evaluated}.props`,(0,pe._)`undefined`)),pn.if((0,pe._)`${vn.evaluated}.dynamicItems`,()=>pn.assign((0,pe._)`${vn.evaluated}.items`,(0,pe._)`undefined`))}function Mr(vn,pn){const Sn=typeof vn=="object"&&vn[pn.schemaId];return Sn&&(pn.code.source||pn.code.process)?(0,pe._)`/*# sourceURL=${Sn} */`:pe.nil}function Lr(vn,pn){if(Gr(vn)&&(Qr(vn),Vr(vn))){Ur(vn,pn);return}(0,k.boolOrEmptySchema)(vn,pn)}function Vr({schema:vn,self:pn}){if(typeof vn=="boolean")return!vn;for(const Sn in vn)if(pn.RULES.all[Sn])return!0;return!1}function Gr(vn){return typeof vn.schema!="boolean"}function Ur(vn,pn){const{schema:Sn,gen:Qn,opts:Jn}=vn;Jn.$comment&&Sn.$comment&&Kr(vn),Qt(vn),Xt(vn);const ui=Qn.const("_errs",ye.default.errors);hn(vn,ui),Qn.var(pn,(0,pe._)`${ui} === ${ye.default.errors}`)}function Qr(vn){(0,Ee.checkUnknownRules)(vn),Yt(vn)}function hn(vn,pn){if(vn.opts.jtd)return xr(vn,[],!1,pn);const Sn=(0,ie.getSchemaTypes)(vn.schema),Qn=(0,ie.coerceAndCheckDataType)(vn,Sn);xr(vn,Sn,!Qn,pn)}function Yt(vn){const{schema:pn,errSchemaPath:Sn,opts:Qn,self:Jn}=vn;pn.$ref&&Qn.ignoreKeywordsWithRef&&(0,Ee.schemaHasRulesButRef)(pn,Jn.RULES)&&Jn.logger.warn(`$ref: keywords ignored in schema at path "${Sn}"`)}function fn(vn){const{schema:pn,opts:Sn}=vn;pn.default!==void 0&&Sn.useDefaults&&Sn.strictSchema&&(0,Ee.checkStrictMode)(vn,"default is ignored in the schema root")}function Qt(vn){const pn=vn.schema[vn.opts.schemaId];pn&&(vn.baseId=(0,me.resolveUrl)(vn.opts.uriResolver,vn.baseId,pn))}function Xt(vn){if(vn.schema.$async&&!vn.schemaEnv.$async)throw new Error("async schema in sync schema")}function Kr({gen:vn,schemaEnv:pn,schema:Sn,errSchemaPath:Qn,opts:Jn}){const ui=Sn.$comment;if(Jn.$comment===!0)vn.code((0,pe._)`${ye.default.self}.logger.log(${ui})`);else if(typeof Jn.$comment=="function"){const gi=(0,pe.str)`${Qn}/$comment`,di=vn.scopeValue("root",{ref:pn.root});vn.code((0,pe._)`${ye.default.self}.opts.$comment(${ui}, ${gi}, ${di}.schema)`)}}function be(vn){const{gen:pn,schemaEnv:Sn,validateName:Qn,ValidationError:Jn,opts:ui}=vn;Sn.$async?pn.if((0,pe._)`${ye.default.errors} === 0`,()=>pn.return(ye.default.data),()=>pn.throw((0,pe._)`new ${Jn}(${ye.default.vErrors})`)):(pn.assign((0,pe._)`${Qn}.errors`,ye.default.vErrors),ui.unevaluated&&kr(vn),pn.return((0,pe._)`${ye.default.errors} === 0`))}function kr({gen:vn,evaluated:pn,props:Sn,items:Qn}){Sn instanceof pe.Name&&vn.assign((0,pe._)`${pn}.props`,Sn),Qn instanceof pe.Name&&vn.assign((0,pe._)`${pn}.items`,Qn)}function xr(vn,pn,Sn,Qn){const{gen:Jn,schema:ui,data:gi,allErrors:di,opts:Ci,self:yi}=vn,{RULES:li}=yi;if(ui.$ref&&(Ci.ignoreKeywordsWithRef||!(0,Ee.schemaHasRulesButRef)(ui,li))){Jn.block(()=>Nn(vn,"$ref",li.all.$ref.definition));return}Ci.jtd||Jt(vn,pn),Jn.block(()=>{for(const Ai of li.rules)Pi(Ai);Pi(li.post)});function Pi(Ai){!(0,ae.shouldUseGroup)(ui,Ai)||(Ai.type?(Jn.if((0,ce.checkDataType)(Ai.type,gi,Ci.strictNumbers)),Wr(vn,Ai),pn.length===1&&pn[0]===Ai.type&&Sn&&(Jn.else(),(0,ce.reportTypeError)(vn)),Jn.endIf()):Wr(vn,Ai),di||Jn.if((0,pe._)`${ye.default.errors} === ${Qn||0}`))}}function Wr(vn,pn){const{gen:Sn,schema:Qn,opts:{useDefaults:Jn}}=vn;Jn&&(0,fe.assignDefaults)(vn,pn.type),Sn.block(()=>{for(const ui of pn.rules)(0,ae.shouldUseRule)(Qn,ui)&&Nn(vn,ui.keyword,ui.definition,pn.type)})}function Jt(vn,pn){vn.schemaEnv.meta||!vn.opts.strictTypes||(Xr(vn,pn),vn.opts.allowUnionTypes||zr(vn,pn),Jr(vn,vn.dataTypes))}function Xr(vn,pn){if(!!pn.length){if(!vn.dataTypes.length){vn.dataTypes=pn;return}pn.forEach(Sn=>{Hr(vn.dataTypes,Sn)||Gn(vn,`type "${Sn}" not allowed by context "${vn.dataTypes.join(",")}"`)}),On(vn,pn)}}function zr(vn,pn){pn.length>1&&!(pn.length===2&&pn.includes("null"))&&Gn(vn,"use allowUnionTypes to allow union type keyword")}function Jr(vn,pn){const Sn=vn.self.RULES.all;for(const Qn in Sn){const Jn=Sn[Qn];if(typeof Jn=="object"&&(0,ae.shouldUseRule)(vn.schema,Jn)){const{type:ui}=Jn.definition;ui.length&&!ui.some(gi=>Nr(pn,gi))&&Gn(vn,`missing type "${ui.join(",")}" for keyword "${Qn}"`)}}}function Nr(vn,pn){return vn.includes(pn)||pn==="number"&&vn.includes("integer")}function Hr(vn,pn){return vn.includes(pn)||pn==="integer"&&vn.includes("number")}function On(vn,pn){const Sn=[];for(const Qn of vn.dataTypes)Hr(pn,Qn)?Sn.push(Qn):pn.includes("integer")&&Qn==="number"&&Sn.push("integer");vn.dataTypes=Sn}function Gn(vn,pn){pn+=` at "${vn.schemaEnv.baseId+vn.errSchemaPath}" (strictTypes)`,(0,Ee.checkStrictMode)(vn,pn,vn.opts.strictTypes)}var mn=class{constructor(vn,pn,Sn){if((0,le.validateKeywordUsage)(vn,pn,Sn),this.gen=vn.gen,this.allErrors=vn.allErrors,this.keyword=Sn,this.data=vn.data,this.schema=vn.schema[Sn],this.$data=pn.$data&&vn.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ee.schemaRefOrVal)(vn,this.schema,Sn,this.$data),this.schemaType=pn.schemaType,this.parentSchema=vn.schema,this.params={},this.it=vn,this.def=pn,this.$data)this.schemaCode=vn.gen.const("vSchema",ii(this.$data,vn));else if(this.schemaCode=this.schemaValue,!(0,le.validSchemaType)(this.schema,pn.schemaType,pn.allowUndefined))throw new Error(`${Sn} value must be ${JSON.stringify(pn.schemaType)}`);("code"in pn?pn.trackErrors:pn.errors!==!1)&&(this.errsCount=vn.gen.const("_errs",ye.default.errors))}result(vn,pn,Sn){this.failResult((0,pe.not)(vn),pn,Sn)}failResult(vn,pn,Sn){this.gen.if(vn),Sn?Sn():this.error(),pn?(this.gen.else(),pn(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(vn,pn){this.failResult((0,pe.not)(vn),void 0,pn)}fail(vn){if(vn===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(vn),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(vn){if(!this.$data)return this.fail(vn);const{schemaCode:pn}=this;this.fail((0,pe._)`${pn} !== undefined && (${(0,pe.or)(this.invalid$data(),vn)})`)}error(vn,pn,Sn){if(pn){this.setParams(pn),this._error(vn,Sn),this.setParams({});return}this._error(vn,Sn)}_error(vn,pn){(vn?cr.reportExtraError:cr.reportError)(this,this.def.error,pn)}$dataError(){(0,cr.reportError)(this,this.def.$dataError||cr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,cr.resetErrorsCount)(this.gen,this.errsCount)}ok(vn){this.allErrors||this.gen.if(vn)}setParams(vn,pn){pn?Object.assign(this.params,vn):this.params=vn}block$data(vn,pn,Sn=pe.nil){this.gen.block(()=>{this.check$data(vn,Sn),pn()})}check$data(vn=pe.nil,pn=pe.nil){if(!this.$data)return;const{gen:Sn,schemaCode:Qn,schemaType:Jn,def:ui}=this;Sn.if((0,pe.or)((0,pe._)`${Qn} === undefined`,pn)),vn!==pe.nil&&Sn.assign(vn,!0),(Jn.length||ui.validateSchema)&&(Sn.elseIf(this.invalid$data()),this.$dataError(),vn!==pe.nil&&Sn.assign(vn,!1)),Sn.else()}invalid$data(){const{gen:vn,schemaCode:pn,schemaType:Sn,def:Qn,it:Jn}=this;return(0,pe.or)(ui(),gi());function ui(){if(Sn.length){if(!(pn instanceof pe.Name))throw new Error("ajv implementation error");const di=Array.isArray(Sn)?Sn:[Sn];return(0,pe._)`${(0,ce.checkDataTypes)(di,pn,Jn.opts.strictNumbers,ce.DataType.Wrong)}`}return pe.nil}function gi(){if(Qn.validateSchema){const di=vn.scopeValue("validate$data",{ref:Qn.validateSchema});return(0,pe._)`!${di}(${pn})`}return pe.nil}}subschema(vn,pn){const Sn=(0,ve.getSubschema)(this.it,vn);(0,ve.extendSubschemaData)(Sn,this.it,vn),(0,ve.extendSubschemaMode)(Sn,vn);const Qn={...this.it,...Sn,items:void 0,props:void 0};return Lr(Qn,pn),Qn}mergeEvaluated(vn,pn){const{it:Sn,gen:Qn}=this;!Sn.opts.unevaluated||(Sn.props!==!0&&vn.props!==void 0&&(Sn.props=Ee.mergeEvaluated.props(Qn,vn.props,Sn.props,pn)),Sn.items!==!0&&vn.items!==void 0&&(Sn.items=Ee.mergeEvaluated.items(Qn,vn.items,Sn.items,pn)))}mergeValidEvaluated(vn,pn){const{it:Sn,gen:Qn}=this;if(Sn.opts.unevaluated&&(Sn.props!==!0||Sn.items!==!0))return Qn.if(pn,()=>this.mergeEvaluated(vn,pe.Name)),!0}};v.KeywordCxt=mn;function Nn(vn,pn,Sn,Qn){const Jn=new mn(vn,Sn,pn);"code"in Sn?Sn.code(Jn,Qn):Jn.$data&&Sn.validate?(0,le.funcKeywordCode)(Jn,Sn):"macro"in Sn?(0,le.macroKeywordCode)(Jn,Sn):(Sn.compile||Sn.validate)&&(0,le.funcKeywordCode)(Jn,Sn)}var In=/^\/(?:[^~]|~0|~1)*$/,bn=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ii(vn,{dataLevel:pn,dataNames:Sn,dataPathArr:Qn}){let Jn,ui;if(vn==="")return ye.default.rootData;if(vn[0]==="/"){if(!In.test(vn))throw new Error(`Invalid JSON-pointer: ${vn}`);Jn=vn,ui=ye.default.rootData}else{const yi=bn.exec(vn);if(!yi)throw new Error(`Invalid JSON-pointer: ${vn}`);const li=+yi[1];if(Jn=yi[2],Jn==="#"){if(li>=pn)throw new Error(Ci("property/index",li));return Qn[pn-li]}if(li>pn)throw new Error(Ci("data",li));if(ui=Sn[pn-li],!Jn)return ui}let gi=ui;const di=Jn.split("/");for(const yi of di)yi&&(ui=(0,pe._)`${ui}${(0,pe.getProperty)((0,Ee.unescapeJsonPointer)(yi))}`,gi=(0,pe._)`${gi} && ${ui}`);return gi;function Ci(yi,li){return`Cannot access ${yi} ${li} levels up, current level is ${pn}`}}v.getData=ii}}),require_validation_error=__commonJS$1({"node_modules/ajv/dist/runtime/validation_error.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=class extends Error{constructor(ie){super("validation failed"),this.errors=ie,this.ajv=this.validation=!0}};v.default=k}}),require_ref_error=__commonJS$1({"node_modules/ajv/dist/compile/ref_error.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_resolve(),ie=class extends Error{constructor(ae,ce,fe,le){super(le||`can't resolve reference ${fe} from id ${ce}`),this.missingRef=(0,k.resolveUrl)(ae,ce,fe),this.missingSchema=(0,k.normalizeId)((0,k.getFullPath)(ae,this.missingRef))}};v.default=ie}}),require_compile=__commonJS$1({"node_modules/ajv/dist/compile/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.resolveSchema=v.getCompilingSchema=v.resolveRef=v.compileSchema=v.SchemaEnv=void 0;var k=require_codegen(),ie=require_validation_error(),ae=require_names(),ce=require_resolve(),fe=require_util$1(),le=require_validate(),ve=class{constructor(ur){var jr;this.refs={},this.dynamicAnchors={};let Mr;typeof ur.schema=="object"&&(Mr=ur.schema),this.schema=ur.schema,this.schemaId=ur.schemaId,this.root=ur.root||this,this.baseId=(jr=ur.baseId)!==null&&jr!==void 0?jr:(0,ce.normalizeId)(Mr==null?void 0:Mr[ur.schemaId||"$id"]),this.schemaPath=ur.schemaPath,this.localRefs=ur.localRefs,this.meta=ur.meta,this.$async=Mr==null?void 0:Mr.$async,this.refs={}}};v.SchemaEnv=ve;function pe(ur){const jr=Ee.call(this,ur);if(jr)return jr;const Mr=(0,ce.getFullPath)(this.opts.uriResolver,ur.root.baseId),{es5:Lr,lines:Vr}=this.opts.code,{ownProperties:Gr}=this.opts,Ur=new k.CodeGen(this.scope,{es5:Lr,lines:Vr,ownProperties:Gr});let Qr;ur.$async&&(Qr=Ur.scopeValue("Error",{ref:ie.default,code:(0,k._)`require("ajv/dist/runtime/validation_error").default`}));const hn=Ur.scopeName("validate");ur.validateName=hn;const Yt={gen:Ur,allErrors:this.opts.allErrors,data:ae.default.data,parentData:ae.default.parentData,parentDataProperty:ae.default.parentDataProperty,dataNames:[ae.default.data],dataPathArr:[k.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:Ur.scopeValue("schema",this.opts.code.source===!0?{ref:ur.schema,code:(0,k.stringify)(ur.schema)}:{ref:ur.schema}),validateName:hn,ValidationError:Qr,schema:ur.schema,schemaEnv:ur,rootId:Mr,baseId:ur.baseId||Mr,schemaPath:k.nil,errSchemaPath:ur.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,k._)`""`,opts:this.opts,self:this};let fn;try{this._compilations.add(ur),(0,le.validateFunctionCode)(Yt),Ur.optimize(this.opts.code.optimize);const Qt=Ur.toString();fn=`${Ur.scopeRefs(ae.default.scope)}return ${Qt}`,this.opts.code.process&&(fn=this.opts.code.process(fn,ur));const Kr=new Function(`${ae.default.self}`,`${ae.default.scope}`,fn)(this,this.scope.get());if(this.scope.value(hn,{ref:Kr}),Kr.errors=null,Kr.schema=ur.schema,Kr.schemaEnv=ur,ur.$async&&(Kr.$async=!0),this.opts.code.source===!0&&(Kr.source={validateName:hn,validateCode:Qt,scopeValues:Ur._values}),this.opts.unevaluated){const{props:be,items:kr}=Yt;Kr.evaluated={props:be instanceof k.Name?void 0:be,items:kr instanceof k.Name?void 0:kr,dynamicProps:be instanceof k.Name,dynamicItems:kr instanceof k.Name},Kr.source&&(Kr.source.evaluated=(0,k.stringify)(Kr.evaluated))}return ur.validate=Kr,ur}catch(Qt){throw delete ur.validate,delete ur.validateName,fn&&this.logger.error("Error compiling schema, function code:",fn),Qt}finally{this._compilations.delete(ur)}}v.compileSchema=pe;function ye(ur,jr,Mr){var Lr;Mr=(0,ce.resolveUrl)(this.opts.uriResolver,jr,Mr);const Vr=ur.refs[Mr];if(Vr)return Vr;let Gr=Br.call(this,ur,Mr);if(Gr===void 0){const Ur=(Lr=ur.localRefs)===null||Lr===void 0?void 0:Lr[Mr],{schemaId:Qr}=this.opts;Ur&&(Gr=new ve({schema:Ur,schemaId:Qr,root:ur,baseId:jr}))}if(Gr!==void 0)return ur.refs[Mr]=me.call(this,Gr)}v.resolveRef=ye;function me(ur){return(0,ce.inlineRef)(ur.schema,this.opts.inlineRefs)?ur.schema:ur.validate?ur:pe.call(this,ur)}function Ee(ur){for(const jr of this._compilations)if(cr(jr,ur))return jr}v.getCompilingSchema=Ee;function cr(ur,jr){return ur.schema===jr.schema&&ur.root===jr.root&&ur.baseId===jr.baseId}function Br(ur,jr){let Mr;for(;typeof(Mr=this.refs[jr])=="string";)jr=Mr;return Mr||this.schemas[jr]||$r.call(this,ur,jr)}function $r(ur,jr){const Mr=this.opts.uriResolver.parse(jr),Lr=(0,ce._getFullPath)(this.opts.uriResolver,Mr);let Vr=(0,ce.getFullPath)(this.opts.uriResolver,ur.baseId,void 0);if(Object.keys(ur.schema).length>0&&Lr===Vr)return Ar.call(this,Mr,ur);const Gr=(0,ce.normalizeId)(Lr),Ur=this.refs[Gr]||this.schemas[Gr];if(typeof Ur=="string"){const Qr=$r.call(this,ur,Ur);return typeof(Qr==null?void 0:Qr.schema)!="object"?void 0:Ar.call(this,Mr,Qr)}if(typeof(Ur==null?void 0:Ur.schema)=="object"){if(Ur.validate||pe.call(this,Ur),Gr===(0,ce.normalizeId)(jr)){const{schema:Qr}=Ur,{schemaId:hn}=this.opts,Yt=Qr[hn];return Yt&&(Vr=(0,ce.resolveUrl)(this.opts.uriResolver,Vr,Yt)),new ve({schema:Qr,schemaId:hn,root:ur,baseId:Vr})}return Ar.call(this,Mr,Ur)}}v.resolveSchema=$r;var Pr=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ar(ur,{baseId:jr,schema:Mr,root:Lr}){var Vr;if(((Vr=ur.fragment)===null||Vr===void 0?void 0:Vr[0])!=="/")return;for(const Qr of ur.fragment.slice(1).split("/")){if(typeof Mr=="boolean")return;const hn=Mr[(0,fe.unescapeFragment)(Qr)];if(hn===void 0)return;Mr=hn;const Yt=typeof Mr=="object"&&Mr[this.opts.schemaId];!Pr.has(Qr)&&Yt&&(jr=(0,ce.resolveUrl)(this.opts.uriResolver,jr,Yt))}let Gr;if(typeof Mr!="boolean"&&Mr.$ref&&!(0,fe.schemaHasRulesButRef)(Mr,this.RULES)){const Qr=(0,ce.resolveUrl)(this.opts.uriResolver,jr,Mr.$ref);Gr=$r.call(this,Lr,Qr)}const{schemaId:Ur}=this.opts;if(Gr=Gr||new ve({schema:Mr,schemaId:Ur,root:Lr,baseId:jr}),Gr.schema!==Gr.root.schema)return Gr}}}),require_data=__commonJS$1({"node_modules/ajv/dist/refs/data.json"(v,k){k.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}}}),require_uri_all=__commonJS$1({"node_modules/uri-js/dist/es5/uri.all.js"(v,k){(function(ie,ae){typeof v=="object"&&typeof k<"u"?ae(v):typeof define=="function"&&define.amd?define(["exports"],ae):ae(ie.URI=ie.URI||{})})(v,function(ie){function ae(){for(var Yr=arguments.length,Wt=Array(Yr),ln=0;ln1){Wt[0]=Wt[0].slice(0,-1);for(var qr=Wt.length-1,dn=1;dn= 0x80 (not a basic code point)","invalid-input":"Invalid input"},fn=Pr-Ar,Qt=Math.floor,Xt=String.fromCharCode;function Kr(Yr){throw new RangeError(Yt[Yr])}function be(Yr,Wt){for(var ln=[],qr=Yr.length;qr--;)ln[qr]=Wt(Yr[qr]);return ln}function kr(Yr,Wt){var ln=Yr.split("@"),qr="";ln.length>1&&(qr=ln[0]+"@",Yr=ln[1]),Yr=Yr.replace(hn,".");var dn=Yr.split("."),ri=be(dn,Wt).join(".");return qr+ri}function xr(Yr){for(var Wt=[],ln=0,qr=Yr.length;ln=55296&&dn<=56319&&ln>1,Wt+=Qt(Wt/ln);Wt>fn*ur>>1;dn+=Pr)Wt=Qt(Wt/fn);return Qt(dn+(fn+1)*Wt/(Wt+jr))},Jr=function(Wt){var ln=[],qr=Wt.length,dn=0,ri=Vr,Zn=Lr,ai=Wt.lastIndexOf(Gr);ai<0&&(ai=0);for(var bi=0;bi=128&&Kr("not-basic"),ln.push(Wt.charCodeAt(bi));for(var _i=ai>0?ai+1:0;_i=qr&&Kr("invalid-input");var Ni=Jt(Wt.charCodeAt(_i++));(Ni>=Pr||Ni>Qt(($r-dn)/yo))&&Kr("overflow"),dn+=Ni*yo;var oo=Di<=Zn?Ar:Di>=Zn+ur?ur:Di-Zn;if(NiQt($r/fo)&&Kr("overflow"),yo*=fo}var co=ln.length+1;Zn=zr(dn-fi,co,fi==0),Qt(dn/co)>$r-ri&&Kr("overflow"),ri+=Qt(dn/co),dn%=co,ln.splice(dn++,0,ri)}return String.fromCodePoint.apply(String,ln)},Nr=function(Wt){var ln=[];Wt=xr(Wt);var qr=Wt.length,dn=Vr,ri=0,Zn=Lr,ai=!0,bi=!1,_i=void 0;try{for(var fi=Wt[Symbol.iterator](),yo;!(ai=(yo=fi.next()).done);ai=!0){var Di=yo.value;Di<128&&ln.push(Xt(Di))}}catch(Co){bi=!0,_i=Co}finally{try{!ai&&fi.return&&fi.return()}finally{if(bi)throw _i}}var Ni=ln.length,oo=Ni;for(Ni&&ln.push(Gr);oo=dn&&loQt(($r-ri)/eo)&&Kr("overflow"),ri+=(fo-dn)*eo,dn=fo;var uo=!0,ho=!1,ro=void 0;try{for(var ci=Wt[Symbol.iterator](),pi;!(uo=(pi=ci.next()).done);uo=!0){var mi=pi.value;if(mi$r&&Kr("overflow"),mi==dn){for(var Si=ri,Ti=Pr;;Ti+=Pr){var xi=Ti<=Zn?Ar:Ti>=Zn+ur?ur:Ti-Zn;if(Si>6|192).toString(16).toUpperCase()+"%"+(Wt&63|128).toString(16).toUpperCase():ln="%"+(Wt>>12|224).toString(16).toUpperCase()+"%"+(Wt>>6&63|128).toString(16).toUpperCase()+"%"+(Wt&63|128).toString(16).toUpperCase(),ln}function In(Yr){for(var Wt="",ln=0,qr=Yr.length;ln=194&&dn<224){if(qr-ln>=6){var ri=parseInt(Yr.substr(ln+4,2),16);Wt+=String.fromCharCode((dn&31)<<6|ri&63)}else Wt+=Yr.substr(ln,6);ln+=6}else if(dn>=224){if(qr-ln>=9){var Zn=parseInt(Yr.substr(ln+4,2),16),ai=parseInt(Yr.substr(ln+7,2),16);Wt+=String.fromCharCode((dn&15)<<12|(Zn&63)<<6|ai&63)}else Wt+=Yr.substr(ln,9);ln+=9}else Wt+=Yr.substr(ln,3),ln+=3}return Wt}function bn(Yr,Wt){function ln(qr){var dn=In(qr);return dn.match(Wt.UNRESERVED)?dn:qr}return Yr.scheme&&(Yr.scheme=String(Yr.scheme).replace(Wt.PCT_ENCODED,ln).toLowerCase().replace(Wt.NOT_SCHEME,"")),Yr.userinfo!==void 0&&(Yr.userinfo=String(Yr.userinfo).replace(Wt.PCT_ENCODED,ln).replace(Wt.NOT_USERINFO,Nn).replace(Wt.PCT_ENCODED,le)),Yr.host!==void 0&&(Yr.host=String(Yr.host).replace(Wt.PCT_ENCODED,ln).toLowerCase().replace(Wt.NOT_HOST,Nn).replace(Wt.PCT_ENCODED,le)),Yr.path!==void 0&&(Yr.path=String(Yr.path).replace(Wt.PCT_ENCODED,ln).replace(Yr.scheme?Wt.NOT_PATH:Wt.NOT_PATH_NOSCHEME,Nn).replace(Wt.PCT_ENCODED,le)),Yr.query!==void 0&&(Yr.query=String(Yr.query).replace(Wt.PCT_ENCODED,ln).replace(Wt.NOT_QUERY,Nn).replace(Wt.PCT_ENCODED,le)),Yr.fragment!==void 0&&(Yr.fragment=String(Yr.fragment).replace(Wt.PCT_ENCODED,ln).replace(Wt.NOT_FRAGMENT,Nn).replace(Wt.PCT_ENCODED,le)),Yr}function ii(Yr){return Yr.replace(/^0*(.*)/,"$1")||"0"}function vn(Yr,Wt){var ln=Yr.match(Wt.IPV4ADDRESS)||[],qr=cr(ln,2),dn=qr[1];return dn?dn.split(".").map(ii).join("."):Yr}function pn(Yr,Wt){var ln=Yr.match(Wt.IPV6ADDRESS)||[],qr=cr(ln,3),dn=qr[1],ri=qr[2];if(dn){for(var Zn=dn.toLowerCase().split("::").reverse(),ai=cr(Zn,2),bi=ai[0],_i=ai[1],fi=_i?_i.split(":").map(ii):[],yo=bi.split(":").map(ii),Di=Wt.IPV4ADDRESS.test(yo[yo.length-1]),Ni=Di?7:8,oo=yo.length-Ni,fo=Array(Ni),co=0;co1){var so=fo.slice(0,vo.index),lo=fo.slice(vo.index+vo.length);_o=so.join(":")+"::"+lo.join(":")}else _o=fo.join(":");return ri&&(_o+="%"+ri),_o}else return Yr}var Sn=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Qn="".match(/(){0}/)[1]===void 0;function Jn(Yr){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ln={},qr=Wt.iri!==!1?Ee:me;Wt.reference==="suffix"&&(Yr=(Wt.scheme?Wt.scheme+":":"")+"//"+Yr);var dn=Yr.match(Sn);if(dn){Qn?(ln.scheme=dn[1],ln.userinfo=dn[3],ln.host=dn[4],ln.port=parseInt(dn[5],10),ln.path=dn[6]||"",ln.query=dn[7],ln.fragment=dn[8],isNaN(ln.port)&&(ln.port=dn[5])):(ln.scheme=dn[1]||void 0,ln.userinfo=Yr.indexOf("@")!==-1?dn[3]:void 0,ln.host=Yr.indexOf("//")!==-1?dn[4]:void 0,ln.port=parseInt(dn[5],10),ln.path=dn[6]||"",ln.query=Yr.indexOf("?")!==-1?dn[7]:void 0,ln.fragment=Yr.indexOf("#")!==-1?dn[8]:void 0,isNaN(ln.port)&&(ln.port=Yr.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?dn[4]:void 0)),ln.host&&(ln.host=pn(vn(ln.host,qr),qr)),ln.scheme===void 0&&ln.userinfo===void 0&&ln.host===void 0&&ln.port===void 0&&!ln.path&&ln.query===void 0?ln.reference="same-document":ln.scheme===void 0?ln.reference="relative":ln.fragment===void 0?ln.reference="absolute":ln.reference="uri",Wt.reference&&Wt.reference!=="suffix"&&Wt.reference!==ln.reference&&(ln.error=ln.error||"URI is not a "+Wt.reference+" reference.");var ri=mn[(Wt.scheme||ln.scheme||"").toLowerCase()];if(!Wt.unicodeSupport&&(!ri||!ri.unicodeSupport)){if(ln.host&&(Wt.domainHost||ri&&ri.domainHost))try{ln.host=Gn.toASCII(ln.host.replace(qr.PCT_ENCODED,In).toLowerCase())}catch(Zn){ln.error=ln.error||"Host's domain name can not be converted to ASCII via punycode: "+Zn}bn(ln,me)}else bn(ln,qr);ri&&ri.parse&&ri.parse(ln,Wt)}else ln.error=ln.error||"URI can not be parsed.";return ln}function ui(Yr,Wt){var ln=Wt.iri!==!1?Ee:me,qr=[];return Yr.userinfo!==void 0&&(qr.push(Yr.userinfo),qr.push("@")),Yr.host!==void 0&&qr.push(pn(vn(String(Yr.host),ln),ln).replace(ln.IPV6ADDRESS,function(dn,ri,Zn){return"["+ri+(Zn?"%25"+Zn:"")+"]"})),(typeof Yr.port=="number"||typeof Yr.port=="string")&&(qr.push(":"),qr.push(String(Yr.port))),qr.length?qr.join(""):void 0}var gi=/^\.\.?\//,di=/^\/\.(\/|$)/,Ci=/^\/\.\.(\/|$)/,yi=/^\/?(?:.|\n)*?(?=\/|$)/;function li(Yr){for(var Wt=[];Yr.length;)if(Yr.match(gi))Yr=Yr.replace(gi,"");else if(Yr.match(di))Yr=Yr.replace(di,"/");else if(Yr.match(Ci))Yr=Yr.replace(Ci,"/"),Wt.pop();else if(Yr==="."||Yr==="..")Yr="";else{var ln=Yr.match(yi);if(ln){var qr=ln[0];Yr=Yr.slice(qr.length),Wt.push(qr)}else throw new Error("Unexpected dot segment condition")}return Wt.join("")}function Pi(Yr){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ln=Wt.iri?Ee:me,qr=[],dn=mn[(Wt.scheme||Yr.scheme||"").toLowerCase()];if(dn&&dn.serialize&&dn.serialize(Yr,Wt),Yr.host&&!ln.IPV6ADDRESS.test(Yr.host)){if(Wt.domainHost||dn&&dn.domainHost)try{Yr.host=Wt.iri?Gn.toUnicode(Yr.host):Gn.toASCII(Yr.host.replace(ln.PCT_ENCODED,In).toLowerCase())}catch(ai){Yr.error=Yr.error||"Host's domain name can not be converted to "+(Wt.iri?"Unicode":"ASCII")+" via punycode: "+ai}}bn(Yr,ln),Wt.reference!=="suffix"&&Yr.scheme&&(qr.push(Yr.scheme),qr.push(":"));var ri=ui(Yr,Wt);if(ri!==void 0&&(Wt.reference!=="suffix"&&qr.push("//"),qr.push(ri),Yr.path&&Yr.path.charAt(0)!=="/"&&qr.push("/")),Yr.path!==void 0){var Zn=Yr.path;!Wt.absolutePath&&(!dn||!dn.absolutePath)&&(Zn=li(Zn)),ri===void 0&&(Zn=Zn.replace(/^\/\//,"/%2F")),qr.push(Zn)}return Yr.query!==void 0&&(qr.push("?"),qr.push(Yr.query)),Yr.fragment!==void 0&&(qr.push("#"),qr.push(Yr.fragment)),qr.join("")}function Ai(Yr,Wt){var ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},qr=arguments[3],dn={};return qr||(Yr=Jn(Pi(Yr,ln),ln),Wt=Jn(Pi(Wt,ln),ln)),ln=ln||{},!ln.tolerant&&Wt.scheme?(dn.scheme=Wt.scheme,dn.userinfo=Wt.userinfo,dn.host=Wt.host,dn.port=Wt.port,dn.path=li(Wt.path||""),dn.query=Wt.query):(Wt.userinfo!==void 0||Wt.host!==void 0||Wt.port!==void 0?(dn.userinfo=Wt.userinfo,dn.host=Wt.host,dn.port=Wt.port,dn.path=li(Wt.path||""),dn.query=Wt.query):(Wt.path?(Wt.path.charAt(0)==="/"?dn.path=li(Wt.path):((Yr.userinfo!==void 0||Yr.host!==void 0||Yr.port!==void 0)&&!Yr.path?dn.path="/"+Wt.path:Yr.path?dn.path=Yr.path.slice(0,Yr.path.lastIndexOf("/")+1)+Wt.path:dn.path=Wt.path,dn.path=li(dn.path)),dn.query=Wt.query):(dn.path=Yr.path,Wt.query!==void 0?dn.query=Wt.query:dn.query=Yr.query),dn.userinfo=Yr.userinfo,dn.host=Yr.host,dn.port=Yr.port),dn.scheme=Yr.scheme),dn.fragment=Wt.fragment,dn}function Oi(Yr,Wt,ln){var qr=pe({scheme:"null"},ln);return Pi(Ai(Jn(Yr,qr),Jn(Wt,qr),qr,!0),qr)}function to(Yr,Wt){return typeof Yr=="string"?Yr=Pi(Jn(Yr,Wt),Wt):fe(Yr)==="object"&&(Yr=Jn(Pi(Yr,Wt),Wt)),Yr}function En(Yr,Wt,ln){return typeof Yr=="string"?Yr=Pi(Jn(Yr,ln),ln):fe(Yr)==="object"&&(Yr=Pi(Yr,ln)),typeof Wt=="string"?Wt=Pi(Jn(Wt,ln),ln):fe(Wt)==="object"&&(Wt=Pi(Wt,ln)),Yr===Wt}function Bt(Yr,Wt){return Yr&&Yr.toString().replace(!Wt||!Wt.iri?me.ESCAPE:Ee.ESCAPE,Nn)}function Zt(Yr,Wt){return Yr&&Yr.toString().replace(!Wt||!Wt.iri?me.PCT_ENCODED:Ee.PCT_ENCODED,In)}var Tn={scheme:"http",domainHost:!0,parse:function(Wt,ln){return Wt.host||(Wt.error=Wt.error||"HTTP URIs must have a host."),Wt},serialize:function(Wt,ln){var qr=String(Wt.scheme).toLowerCase()==="https";return(Wt.port===(qr?443:80)||Wt.port==="")&&(Wt.port=void 0),Wt.path||(Wt.path="/"),Wt}},ei={scheme:"https",domainHost:Tn.domainHost,parse:Tn.parse,serialize:Tn.serialize};function zn(Yr){return typeof Yr.secure=="boolean"?Yr.secure:String(Yr.scheme).toLowerCase()==="wss"}var gn={scheme:"ws",domainHost:!0,parse:function(Wt,ln){var qr=Wt;return qr.secure=zn(qr),qr.resourceName=(qr.path||"/")+(qr.query?"?"+qr.query:""),qr.path=void 0,qr.query=void 0,qr},serialize:function(Wt,ln){if((Wt.port===(zn(Wt)?443:80)||Wt.port==="")&&(Wt.port=void 0),typeof Wt.secure=="boolean"&&(Wt.scheme=Wt.secure?"wss":"ws",Wt.secure=void 0),Wt.resourceName){var qr=Wt.resourceName.split("?"),dn=cr(qr,2),ri=dn[0],Zn=dn[1];Wt.path=ri&&ri!=="/"?ri:void 0,Wt.query=Zn,Wt.resourceName=void 0}return Wt.fragment=void 0,Wt}},xn={scheme:"wss",domainHost:gn.domainHost,parse:gn.parse,serialize:gn.serialize},Hn={},Ln="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ti="[0-9A-Fa-f]",oi=ce(ce("%[EFef]"+ti+"%"+ti+ti+"%"+ti+ti)+"|"+ce("%[89A-Fa-f]"+ti+"%"+ti+ti)+"|"+ce("%"+ti+ti)),Ei="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Ri="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Oo=ae(Ri,'[\\"\\\\]'),Ui="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",io=new RegExp(Ln,"g"),So=new RegExp(oi,"g"),$o=new RegExp(ae("[^]",Ei,"[\\.]",'[\\"]',Oo),"g"),mo=new RegExp(ae("[^]",Ln,Ui),"g"),qo=mo;function wo(Yr){var Wt=In(Yr);return Wt.match(io)?Wt:Yr}var Eo={scheme:"mailto",parse:function(Wt,ln){var qr=Wt,dn=qr.to=qr.path?qr.path.split(","):[];if(qr.path=void 0,qr.query){for(var ri=!1,Zn={},ai=qr.query.split("&"),bi=0,_i=ai.length;bi<_i;++bi){var fi=ai[bi].split("=");switch(fi[0]){case"to":for(var yo=fi[1].split(","),Di=0,Ni=yo.length;Dinew RegExp(Xr,zr);Br.code="new RegExp";var $r=["removeAdditional","useDefaults","coerceTypes"],Pr=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Ar={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},ur={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},jr=200;function Mr(Xr){var zr,Jr,Nr,Hr,On,Gn,mn,Nn,In,bn,ii,vn,pn,Sn,Qn,Jn,ui,gi,di,Ci,yi,li,Pi,Ai,Oi;const to=Xr.strict,En=(zr=Xr.code)===null||zr===void 0?void 0:zr.optimize,Bt=En===!0||En===void 0?1:En||0,Zt=(Nr=(Jr=Xr.code)===null||Jr===void 0?void 0:Jr.regExp)!==null&&Nr!==void 0?Nr:Br,Tn=(Hr=Xr.uriResolver)!==null&&Hr!==void 0?Hr:cr.default;return{strictSchema:(Gn=(On=Xr.strictSchema)!==null&&On!==void 0?On:to)!==null&&Gn!==void 0?Gn:!0,strictNumbers:(Nn=(mn=Xr.strictNumbers)!==null&&mn!==void 0?mn:to)!==null&&Nn!==void 0?Nn:!0,strictTypes:(bn=(In=Xr.strictTypes)!==null&&In!==void 0?In:to)!==null&&bn!==void 0?bn:"log",strictTuples:(vn=(ii=Xr.strictTuples)!==null&&ii!==void 0?ii:to)!==null&&vn!==void 0?vn:"log",strictRequired:(Sn=(pn=Xr.strictRequired)!==null&&pn!==void 0?pn:to)!==null&&Sn!==void 0?Sn:!1,code:Xr.code?{...Xr.code,optimize:Bt,regExp:Zt}:{optimize:Bt,regExp:Zt},loopRequired:(Qn=Xr.loopRequired)!==null&&Qn!==void 0?Qn:jr,loopEnum:(Jn=Xr.loopEnum)!==null&&Jn!==void 0?Jn:jr,meta:(ui=Xr.meta)!==null&&ui!==void 0?ui:!0,messages:(gi=Xr.messages)!==null&&gi!==void 0?gi:!0,inlineRefs:(di=Xr.inlineRefs)!==null&&di!==void 0?di:!0,schemaId:(Ci=Xr.schemaId)!==null&&Ci!==void 0?Ci:"$id",addUsedSchema:(yi=Xr.addUsedSchema)!==null&&yi!==void 0?yi:!0,validateSchema:(li=Xr.validateSchema)!==null&&li!==void 0?li:!0,validateFormats:(Pi=Xr.validateFormats)!==null&&Pi!==void 0?Pi:!0,unicodeRegExp:(Ai=Xr.unicodeRegExp)!==null&&Ai!==void 0?Ai:!0,int32range:(Oi=Xr.int32range)!==null&&Oi!==void 0?Oi:!0,uriResolver:Tn}}var Lr=class{constructor(Xr={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,Xr=this.opts={...Xr,...Mr(Xr)};const{es5:zr,lines:Jr}=this.opts.code;this.scope=new ve.ValueScope({scope:{},prefixes:Pr,es5:zr,lines:Jr}),this.logger=Qt(Xr.logger);const Nr=Xr.validateFormats;Xr.validateFormats=!1,this.RULES=(0,fe.getRules)(),Vr.call(this,Ar,Xr,"NOT SUPPORTED"),Vr.call(this,ur,Xr,"DEPRECATED","warn"),this._metaOpts=Yt.call(this),Xr.formats&&Qr.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),Xr.keywords&&hn.call(this,Xr.keywords),typeof Xr.meta=="object"&&this.addMetaSchema(Xr.meta),Ur.call(this),Xr.validateFormats=Nr}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:Xr,meta:zr,schemaId:Jr}=this.opts;let Nr=Ee;Jr==="id"&&(Nr={...Ee},Nr.id=Nr.$id,delete Nr.$id),zr&&Xr&&this.addMetaSchema(Nr,Nr[Jr],!1)}defaultMeta(){const{meta:Xr,schemaId:zr}=this.opts;return this.opts.defaultMeta=typeof Xr=="object"?Xr[zr]||Xr:void 0}validate(Xr,zr){let Jr;if(typeof Xr=="string"){if(Jr=this.getSchema(Xr),!Jr)throw new Error(`no schema with key or ref "${Xr}"`)}else Jr=this.compile(Xr);const Nr=Jr(zr);return"$async"in Jr||(this.errors=Jr.errors),Nr}compile(Xr,zr){const Jr=this._addSchema(Xr,zr);return Jr.validate||this._compileSchemaEnv(Jr)}compileAsync(Xr,zr){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:Jr}=this.opts;return Nr.call(this,Xr,zr);async function Nr(In,bn){await Hr.call(this,In.$schema);const ii=this._addSchema(In,bn);return ii.validate||On.call(this,ii)}async function Hr(In){In&&!this.getSchema(In)&&await Nr.call(this,{$ref:In},!0)}async function On(In){try{return this._compileSchemaEnv(In)}catch(bn){if(!(bn instanceof ce.default))throw bn;return Gn.call(this,bn),await mn.call(this,bn.missingSchema),On.call(this,In)}}function Gn({missingSchema:In,missingRef:bn}){if(this.refs[In])throw new Error(`AnySchema ${In} is loaded but ${bn} cannot be resolved`)}async function mn(In){const bn=await Nn.call(this,In);this.refs[In]||await Hr.call(this,bn.$schema),this.refs[In]||this.addSchema(bn,In,zr)}async function Nn(In){const bn=this._loading[In];if(bn)return bn;try{return await(this._loading[In]=Jr(In))}finally{delete this._loading[In]}}}addSchema(Xr,zr,Jr,Nr=this.opts.validateSchema){if(Array.isArray(Xr)){for(const On of Xr)this.addSchema(On,void 0,Jr,Nr);return this}let Hr;if(typeof Xr=="object"){const{schemaId:On}=this.opts;if(Hr=Xr[On],Hr!==void 0&&typeof Hr!="string")throw new Error(`schema ${On} must be string`)}return zr=(0,pe.normalizeId)(zr||Hr),this._checkUnique(zr),this.schemas[zr]=this._addSchema(Xr,Jr,zr,Nr,!0),this}addMetaSchema(Xr,zr,Jr=this.opts.validateSchema){return this.addSchema(Xr,zr,!0,Jr),this}validateSchema(Xr,zr){if(typeof Xr=="boolean")return!0;let Jr;if(Jr=Xr.$schema,Jr!==void 0&&typeof Jr!="string")throw new Error("$schema must be a string");if(Jr=Jr||this.opts.defaultMeta||this.defaultMeta(),!Jr)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const Nr=this.validate(Jr,Xr);if(!Nr&&zr){const Hr="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(Hr);else throw new Error(Hr)}return Nr}getSchema(Xr){let zr;for(;typeof(zr=Gr.call(this,Xr))=="string";)Xr=zr;if(zr===void 0){const{schemaId:Jr}=this.opts,Nr=new le.SchemaEnv({schema:{},schemaId:Jr});if(zr=le.resolveSchema.call(this,Nr,Xr),!zr)return;this.refs[Xr]=zr}return zr.validate||this._compileSchemaEnv(zr)}removeSchema(Xr){if(Xr instanceof RegExp)return this._removeAllSchemas(this.schemas,Xr),this._removeAllSchemas(this.refs,Xr),this;switch(typeof Xr){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const zr=Gr.call(this,Xr);return typeof zr=="object"&&this._cache.delete(zr.schema),delete this.schemas[Xr],delete this.refs[Xr],this}case"object":{const zr=Xr;this._cache.delete(zr);let Jr=Xr[this.opts.schemaId];return Jr&&(Jr=(0,pe.normalizeId)(Jr),delete this.schemas[Jr],delete this.refs[Jr]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(Xr){for(const zr of Xr)this.addKeyword(zr);return this}addKeyword(Xr,zr){let Jr;if(typeof Xr=="string")Jr=Xr,typeof zr=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),zr.keyword=Jr);else if(typeof Xr=="object"&&zr===void 0){if(zr=Xr,Jr=zr.keyword,Array.isArray(Jr)&&!Jr.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Kr.call(this,Jr,zr),!zr)return(0,me.eachItem)(Jr,Hr=>be.call(this,Hr)),this;xr.call(this,zr);const Nr={...zr,type:(0,ye.getJSONTypes)(zr.type),schemaType:(0,ye.getJSONTypes)(zr.schemaType)};return(0,me.eachItem)(Jr,Nr.type.length===0?Hr=>be.call(this,Hr,Nr):Hr=>Nr.type.forEach(On=>be.call(this,Hr,Nr,On))),this}getKeyword(Xr){const zr=this.RULES.all[Xr];return typeof zr=="object"?zr.definition:!!zr}removeKeyword(Xr){const{RULES:zr}=this;delete zr.keywords[Xr],delete zr.all[Xr];for(const Jr of zr.rules){const Nr=Jr.rules.findIndex(Hr=>Hr.keyword===Xr);Nr>=0&&Jr.rules.splice(Nr,1)}return this}addFormat(Xr,zr){return typeof zr=="string"&&(zr=new RegExp(zr)),this.formats[Xr]=zr,this}errorsText(Xr=this.errors,{separator:zr=", ",dataVar:Jr="data"}={}){return!Xr||Xr.length===0?"No errors":Xr.map(Nr=>`${Jr}${Nr.instancePath} ${Nr.message}`).reduce((Nr,Hr)=>Nr+zr+Hr)}$dataMetaSchema(Xr,zr){const Jr=this.RULES.all;Xr=JSON.parse(JSON.stringify(Xr));for(const Nr of zr){const Hr=Nr.split("/").slice(1);let On=Xr;for(const Gn of Hr)On=On[Gn];for(const Gn in Jr){const mn=Jr[Gn];if(typeof mn!="object")continue;const{$data:Nn}=mn.definition,In=On[Gn];Nn&&In&&(On[Gn]=Jt(In))}}return Xr}_removeAllSchemas(Xr,zr){for(const Jr in Xr){const Nr=Xr[Jr];(!zr||zr.test(Jr))&&(typeof Nr=="string"?delete Xr[Jr]:Nr&&!Nr.meta&&(this._cache.delete(Nr.schema),delete Xr[Jr]))}}_addSchema(Xr,zr,Jr,Nr=this.opts.validateSchema,Hr=this.opts.addUsedSchema){let On;const{schemaId:Gn}=this.opts;if(typeof Xr=="object")On=Xr[Gn];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof Xr!="boolean")throw new Error("schema must be object or boolean")}let mn=this._cache.get(Xr);if(mn!==void 0)return mn;Jr=(0,pe.normalizeId)(On||Jr);const Nn=pe.getSchemaRefs.call(this,Xr,Jr);return mn=new le.SchemaEnv({schema:Xr,schemaId:Gn,meta:zr,baseId:Jr,localRefs:Nn}),this._cache.set(mn.schema,mn),Hr&&!Jr.startsWith("#")&&(Jr&&this._checkUnique(Jr),this.refs[Jr]=mn),Nr&&this.validateSchema(Xr,!0),mn}_checkUnique(Xr){if(this.schemas[Xr]||this.refs[Xr])throw new Error(`schema with key or id "${Xr}" already exists`)}_compileSchemaEnv(Xr){if(Xr.meta?this._compileMetaSchema(Xr):le.compileSchema.call(this,Xr),!Xr.validate)throw new Error("ajv implementation error");return Xr.validate}_compileMetaSchema(Xr){const zr=this.opts;this.opts=this._metaOpts;try{le.compileSchema.call(this,Xr)}finally{this.opts=zr}}};v.default=Lr,Lr.ValidationError=ae.default,Lr.MissingRefError=ce.default;function Vr(Xr,zr,Jr,Nr="error"){for(const Hr in Xr){const On=Hr;On in zr&&this.logger[Nr](`${Jr}: option ${Hr}. ${Xr[On]}`)}}function Gr(Xr){return Xr=(0,pe.normalizeId)(Xr),this.schemas[Xr]||this.refs[Xr]}function Ur(){const Xr=this.opts.schemas;if(!!Xr)if(Array.isArray(Xr))this.addSchema(Xr);else for(const zr in Xr)this.addSchema(Xr[zr],zr)}function Qr(){for(const Xr in this.opts.formats){const zr=this.opts.formats[Xr];zr&&this.addFormat(Xr,zr)}}function hn(Xr){if(Array.isArray(Xr)){this.addVocabulary(Xr);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const zr in Xr){const Jr=Xr[zr];Jr.keyword||(Jr.keyword=zr),this.addKeyword(Jr)}}function Yt(){const Xr={...this.opts};for(const zr of $r)delete Xr[zr];return Xr}var fn={log(){},warn(){},error(){}};function Qt(Xr){if(Xr===!1)return fn;if(Xr===void 0)return console;if(Xr.log&&Xr.warn&&Xr.error)return Xr;throw new Error("logger must implement log, warn and error methods")}var Xt=/^[a-z_$][a-z0-9_$:-]*$/i;function Kr(Xr,zr){const{RULES:Jr}=this;if((0,me.eachItem)(Xr,Nr=>{if(Jr.keywords[Nr])throw new Error(`Keyword ${Nr} is already defined`);if(!Xt.test(Nr))throw new Error(`Keyword ${Nr} has invalid name`)}),!!zr&&zr.$data&&!("code"in zr||"validate"in zr))throw new Error('$data keyword must have "code" or "validate" function')}function be(Xr,zr,Jr){var Nr;const Hr=zr==null?void 0:zr.post;if(Jr&&Hr)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:On}=this;let Gn=Hr?On.post:On.rules.find(({type:Nn})=>Nn===Jr);if(Gn||(Gn={type:Jr,rules:[]},On.rules.push(Gn)),On.keywords[Xr]=!0,!zr)return;const mn={keyword:Xr,definition:{...zr,type:(0,ye.getJSONTypes)(zr.type),schemaType:(0,ye.getJSONTypes)(zr.schemaType)}};zr.before?kr.call(this,Gn,mn,zr.before):Gn.rules.push(mn),On.all[Xr]=mn,(Nr=zr.implements)===null||Nr===void 0||Nr.forEach(Nn=>this.addKeyword(Nn))}function kr(Xr,zr,Jr){const Nr=Xr.rules.findIndex(Hr=>Hr.keyword===Jr);Nr>=0?Xr.rules.splice(Nr,0,zr):(Xr.rules.push(zr),this.logger.warn(`rule ${Jr} is not defined`))}function xr(Xr){let{metaSchema:zr}=Xr;zr!==void 0&&(Xr.$data&&this.opts.$data&&(zr=Jt(zr)),Xr.validateSchema=this.compile(zr,!0))}var Wr={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Jt(Xr){return{anyOf:[Xr,Wr]}}}}),require_id=__commonJS$1({"node_modules/ajv/dist/vocabularies/core/id.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};v.default=k}}),require_ref=__commonJS$1({"node_modules/ajv/dist/vocabularies/core/ref.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.callRef=v.getValidate=void 0;var k=require_ref_error(),ie=require_code2(),ae=require_codegen(),ce=require_names(),fe=require_compile(),le=require_util$1(),ve={keyword:"$ref",schemaType:"string",code(me){const{gen:Ee,schema:cr,it:Br}=me,{baseId:$r,schemaEnv:Pr,validateName:Ar,opts:ur,self:jr}=Br,{root:Mr}=Pr;if((cr==="#"||cr==="#/")&&$r===Mr.baseId)return Vr();const Lr=fe.resolveRef.call(jr,Mr,$r,cr);if(Lr===void 0)throw new k.default(Br.opts.uriResolver,$r,cr);if(Lr instanceof fe.SchemaEnv)return Gr(Lr);return Ur(Lr);function Vr(){if(Pr===Mr)return ye(me,Ar,Pr,Pr.$async);const Qr=Ee.scopeValue("root",{ref:Mr});return ye(me,(0,ae._)`${Qr}.validate`,Mr,Mr.$async)}function Gr(Qr){const hn=pe(me,Qr);ye(me,hn,Qr,Qr.$async)}function Ur(Qr){const hn=Ee.scopeValue("schema",ur.code.source===!0?{ref:Qr,code:(0,ae.stringify)(Qr)}:{ref:Qr}),Yt=Ee.name("valid"),fn=me.subschema({schema:Qr,dataTypes:[],schemaPath:ae.nil,topSchemaRef:hn,errSchemaPath:cr},Yt);me.mergeEvaluated(fn),me.ok(Yt)}}};function pe(me,Ee){const{gen:cr}=me;return Ee.validate?cr.scopeValue("validate",{ref:Ee.validate}):(0,ae._)`${cr.scopeValue("wrapper",{ref:Ee})}.validate`}v.getValidate=pe;function ye(me,Ee,cr,Br){const{gen:$r,it:Pr}=me,{allErrors:Ar,schemaEnv:ur,opts:jr}=Pr,Mr=jr.passContext?ce.default.this:ae.nil;Br?Lr():Vr();function Lr(){if(!ur.$async)throw new Error("async schema referenced by sync schema");const Qr=$r.let("valid");$r.try(()=>{$r.code((0,ae._)`await ${(0,ie.callValidateCode)(me,Ee,Mr)}`),Ur(Ee),Ar||$r.assign(Qr,!0)},hn=>{$r.if((0,ae._)`!(${hn} instanceof ${Pr.ValidationError})`,()=>$r.throw(hn)),Gr(hn),Ar||$r.assign(Qr,!1)}),me.ok(Qr)}function Vr(){me.result((0,ie.callValidateCode)(me,Ee,Mr),()=>Ur(Ee),()=>Gr(Ee))}function Gr(Qr){const hn=(0,ae._)`${Qr}.errors`;$r.assign(ce.default.vErrors,(0,ae._)`${ce.default.vErrors} === null ? ${hn} : ${ce.default.vErrors}.concat(${hn})`),$r.assign(ce.default.errors,(0,ae._)`${ce.default.vErrors}.length`)}function Ur(Qr){var hn;if(!Pr.opts.unevaluated)return;const Yt=(hn=cr==null?void 0:cr.validate)===null||hn===void 0?void 0:hn.evaluated;if(Pr.props!==!0)if(Yt&&!Yt.dynamicProps)Yt.props!==void 0&&(Pr.props=le.mergeEvaluated.props($r,Yt.props,Pr.props));else{const fn=$r.var("props",(0,ae._)`${Qr}.evaluated.props`);Pr.props=le.mergeEvaluated.props($r,fn,Pr.props,ae.Name)}if(Pr.items!==!0)if(Yt&&!Yt.dynamicItems)Yt.items!==void 0&&(Pr.items=le.mergeEvaluated.items($r,Yt.items,Pr.items));else{const fn=$r.var("items",(0,ae._)`${Qr}.evaluated.items`);Pr.items=le.mergeEvaluated.items($r,fn,Pr.items,ae.Name)}}}v.callRef=ye,v.default=ve}}),require_core2=__commonJS$1({"node_modules/ajv/dist/vocabularies/core/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_id(),ie=require_ref(),ae=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",k.default,ie.default];v.default=ae}}),require_limitNumber=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=k.operators,ae={maximum:{okStr:"<=",ok:ie.LTE,fail:ie.GT},minimum:{okStr:">=",ok:ie.GTE,fail:ie.LT},exclusiveMaximum:{okStr:"<",ok:ie.LT,fail:ie.GTE},exclusiveMinimum:{okStr:">",ok:ie.GT,fail:ie.LTE}},ce={message:({keyword:le,schemaCode:ve})=>(0,k.str)`must be ${ae[le].okStr} ${ve}`,params:({keyword:le,schemaCode:ve})=>(0,k._)`{comparison: ${ae[le].okStr}, limit: ${ve}}`},fe={keyword:Object.keys(ae),type:"number",schemaType:"number",$data:!0,error:ce,code(le){const{keyword:ve,data:pe,schemaCode:ye}=le;le.fail$data((0,k._)`${pe} ${ae[ve].fail} ${ye} || isNaN(${pe})`)}};v.default=fe}}),require_multipleOf=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie={message:({schemaCode:ce})=>(0,k.str)`must be multiple of ${ce}`,params:({schemaCode:ce})=>(0,k._)`{multipleOf: ${ce}}`},ae={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:ie,code(ce){const{gen:fe,data:le,schemaCode:ve,it:pe}=ce,ye=pe.opts.multipleOfPrecision,me=fe.let("res"),Ee=ye?(0,k._)`Math.abs(Math.round(${me}) - ${me}) > 1e-${ye}`:(0,k._)`${me} !== parseInt(${me})`;ce.fail$data((0,k._)`(${ve} === 0 || (${me} = ${le}/${ve}, ${Ee}))`)}};v.default=ae}}),require_ucs2length=__commonJS$1({"node_modules/ajv/dist/runtime/ucs2length.js"(v){Object.defineProperty(v,"__esModule",{value:!0});function k(ie){const ae=ie.length;let ce=0,fe=0,le;for(;fe=55296&&le<=56319&&fe(0,k._)`{limit: ${le}}`},fe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:ce,code(le){const{keyword:ve,data:pe,schemaCode:ye,it:me}=le,Ee=ve==="maxLength"?k.operators.GT:k.operators.LT,cr=me.opts.unicode===!1?(0,k._)`${pe}.length`:(0,k._)`${(0,ie.useFunc)(le.gen,ae.default)}(${pe})`;le.fail$data((0,k._)`${cr} ${Ee} ${ye}`)}};v.default=fe}}),require_pattern=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/pattern.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2(),ie=require_codegen(),ae={message:({schemaCode:fe})=>(0,ie.str)`must match pattern "${fe}"`,params:({schemaCode:fe})=>(0,ie._)`{pattern: ${fe}}`},ce={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:ae,code(fe){const{data:le,$data:ve,schema:pe,schemaCode:ye,it:me}=fe,Ee=me.opts.unicodeRegExp?"u":"",cr=ve?(0,ie._)`(new RegExp(${ye}, ${Ee}))`:(0,k.usePattern)(fe,pe);fe.fail$data((0,ie._)`!${cr}.test(${le})`)}};v.default=ce}}),require_limitProperties=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie={message({keyword:ce,schemaCode:fe}){const le=ce==="maxProperties"?"more":"fewer";return(0,k.str)`must NOT have ${le} than ${fe} properties`},params:({schemaCode:ce})=>(0,k._)`{limit: ${ce}}`},ae={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:ie,code(ce){const{keyword:fe,data:le,schemaCode:ve}=ce,pe=fe==="maxProperties"?k.operators.GT:k.operators.LT;ce.fail$data((0,k._)`Object.keys(${le}).length ${pe} ${ve}`)}};v.default=ae}}),require_required=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/required.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2(),ie=require_codegen(),ae=require_util$1(),ce={message:({params:{missingProperty:le}})=>(0,ie.str)`must have required property '${le}'`,params:({params:{missingProperty:le}})=>(0,ie._)`{missingProperty: ${le}}`},fe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:ce,code(le){const{gen:ve,schema:pe,schemaCode:ye,data:me,$data:Ee,it:cr}=le,{opts:Br}=cr;if(!Ee&&pe.length===0)return;const $r=pe.length>=Br.loopRequired;if(cr.allErrors?Pr():Ar(),Br.strictRequired){const Mr=le.parentSchema.properties,{definedProperties:Lr}=le.it;for(const Vr of pe)if((Mr==null?void 0:Mr[Vr])===void 0&&!Lr.has(Vr)){const Gr=cr.schemaEnv.baseId+cr.errSchemaPath,Ur=`required property "${Vr}" is not defined at "${Gr}" (strictRequired)`;(0,ae.checkStrictMode)(cr,Ur,cr.opts.strictRequired)}}function Pr(){if($r||Ee)le.block$data(ie.nil,ur);else for(const Mr of pe)(0,k.checkReportMissingProp)(le,Mr)}function Ar(){const Mr=ve.let("missing");if($r||Ee){const Lr=ve.let("valid",!0);le.block$data(Lr,()=>jr(Mr,Lr)),le.ok(Lr)}else ve.if((0,k.checkMissingProp)(le,pe,Mr)),(0,k.reportMissingProp)(le,Mr),ve.else()}function ur(){ve.forOf("prop",ye,Mr=>{le.setParams({missingProperty:Mr}),ve.if((0,k.noPropertyInData)(ve,me,Mr,Br.ownProperties),()=>le.error())})}function jr(Mr,Lr){le.setParams({missingProperty:Mr}),ve.forOf(Mr,ye,()=>{ve.assign(Lr,(0,k.propertyInData)(ve,me,Mr,Br.ownProperties)),ve.if((0,ie.not)(Lr),()=>{le.error(),ve.break()})},ie.nil)}}};v.default=fe}}),require_limitItems=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/limitItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie={message({keyword:ce,schemaCode:fe}){const le=ce==="maxItems"?"more":"fewer";return(0,k.str)`must NOT have ${le} than ${fe} items`},params:({schemaCode:ce})=>(0,k._)`{limit: ${ce}}`},ae={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:ie,code(ce){const{keyword:fe,data:le,schemaCode:ve}=ce,pe=fe==="maxItems"?k.operators.GT:k.operators.LT;ce.fail$data((0,k._)`${le}.length ${pe} ${ve}`)}};v.default=ae}}),require_equal=__commonJS$1({"node_modules/ajv/dist/runtime/equal.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_fast_deep_equal();k.code='require("ajv/dist/runtime/equal").default',v.default=k}}),require_uniqueItems=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_dataType(),ie=require_codegen(),ae=require_util$1(),ce=require_equal(),fe={message:({params:{i:ve,j:pe}})=>(0,ie.str)`must NOT have duplicate items (items ## ${pe} and ${ve} are identical)`,params:({params:{i:ve,j:pe}})=>(0,ie._)`{i: ${ve}, j: ${pe}}`},le={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:fe,code(ve){const{gen:pe,data:ye,$data:me,schema:Ee,parentSchema:cr,schemaCode:Br,it:$r}=ve;if(!me&&!Ee)return;const Pr=pe.let("valid"),Ar=cr.items?(0,k.getSchemaTypes)(cr.items):[];ve.block$data(Pr,ur,(0,ie._)`${Br} === false`),ve.ok(Pr);function ur(){const Vr=pe.let("i",(0,ie._)`${ye}.length`),Gr=pe.let("j");ve.setParams({i:Vr,j:Gr}),pe.assign(Pr,!0),pe.if((0,ie._)`${Vr} > 1`,()=>(jr()?Mr:Lr)(Vr,Gr))}function jr(){return Ar.length>0&&!Ar.some(Vr=>Vr==="object"||Vr==="array")}function Mr(Vr,Gr){const Ur=pe.name("item"),Qr=(0,k.checkDataTypes)(Ar,Ur,$r.opts.strictNumbers,k.DataType.Wrong),hn=pe.const("indices",(0,ie._)`{}`);pe.for((0,ie._)`;${Vr}--;`,()=>{pe.let(Ur,(0,ie._)`${ye}[${Vr}]`),pe.if(Qr,(0,ie._)`continue`),Ar.length>1&&pe.if((0,ie._)`typeof ${Ur} == "string"`,(0,ie._)`${Ur} += "_"`),pe.if((0,ie._)`typeof ${hn}[${Ur}] == "number"`,()=>{pe.assign(Gr,(0,ie._)`${hn}[${Ur}]`),ve.error(),pe.assign(Pr,!1).break()}).code((0,ie._)`${hn}[${Ur}] = ${Vr}`)})}function Lr(Vr,Gr){const Ur=(0,ae.useFunc)(pe,ce.default),Qr=pe.name("outer");pe.label(Qr).for((0,ie._)`;${Vr}--;`,()=>pe.for((0,ie._)`${Gr} = ${Vr}; ${Gr}--;`,()=>pe.if((0,ie._)`${Ur}(${ye}[${Vr}], ${ye}[${Gr}])`,()=>{ve.error(),pe.assign(Pr,!1).break(Qr)})))}}};v.default=le}}),require_const=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/const.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_util$1(),ae=require_equal(),ce={message:"must be equal to constant",params:({schemaCode:le})=>(0,k._)`{allowedValue: ${le}}`},fe={keyword:"const",$data:!0,error:ce,code(le){const{gen:ve,data:pe,$data:ye,schemaCode:me,schema:Ee}=le;ye||Ee&&typeof Ee=="object"?le.fail$data((0,k._)`!${(0,ie.useFunc)(ve,ae.default)}(${pe}, ${me})`):le.fail((0,k._)`${Ee} !== ${pe}`)}};v.default=fe}}),require_enum=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/enum.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_util$1(),ae=require_equal(),ce={message:"must be equal to one of the allowed values",params:({schemaCode:le})=>(0,k._)`{allowedValues: ${le}}`},fe={keyword:"enum",schemaType:"array",$data:!0,error:ce,code(le){const{gen:ve,data:pe,$data:ye,schema:me,schemaCode:Ee,it:cr}=le;if(!ye&&me.length===0)throw new Error("enum must have non-empty array");const Br=me.length>=cr.opts.loopEnum;let $r;const Pr=()=>$r!=null?$r:$r=(0,ie.useFunc)(ve,ae.default);let Ar;if(Br||ye)Ar=ve.let("valid"),le.block$data(Ar,ur);else{if(!Array.isArray(me))throw new Error("ajv implementation error");const Mr=ve.const("vSchema",Ee);Ar=(0,k.or)(...me.map((Lr,Vr)=>jr(Mr,Vr)))}le.pass(Ar);function ur(){ve.assign(Ar,!1),ve.forOf("v",Ee,Mr=>ve.if((0,k._)`${Pr()}(${pe}, ${Mr})`,()=>ve.assign(Ar,!0).break()))}function jr(Mr,Lr){const Vr=me[Lr];return typeof Vr=="object"&&Vr!==null?(0,k._)`${Pr()}(${pe}, ${Mr}[${Lr}])`:(0,k._)`${pe} === ${Vr}`}}};v.default=fe}}),require_validation=__commonJS$1({"node_modules/ajv/dist/vocabularies/validation/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_limitNumber(),ie=require_multipleOf(),ae=require_limitLength(),ce=require_pattern(),fe=require_limitProperties(),le=require_required(),ve=require_limitItems(),pe=require_uniqueItems(),ye=require_const(),me=require_enum(),Ee=[k.default,ie.default,ae.default,ce.default,fe.default,le.default,ve.default,pe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ye.default,me.default];v.default=Ee}}),require_additionalItems=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateAdditionalItems=void 0;var k=require_codegen(),ie=require_util$1(),ae={message:({params:{len:le}})=>(0,k.str)`must NOT have more than ${le} items`,params:({params:{len:le}})=>(0,k._)`{limit: ${le}}`},ce={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:ae,code(le){const{parentSchema:ve,it:pe}=le,{items:ye}=ve;if(!Array.isArray(ye)){(0,ie.checkStrictMode)(pe,'"additionalItems" is ignored when "items" is not an array of schemas');return}fe(le,ye)}};function fe(le,ve){const{gen:pe,schema:ye,data:me,keyword:Ee,it:cr}=le;cr.items=!0;const Br=pe.const("len",(0,k._)`${me}.length`);if(ye===!1)le.setParams({len:ve.length}),le.pass((0,k._)`${Br} <= ${ve.length}`);else if(typeof ye=="object"&&!(0,ie.alwaysValidSchema)(cr,ye)){const Pr=pe.var("valid",(0,k._)`${Br} <= ${ve.length}`);pe.if((0,k.not)(Pr),()=>$r(Pr)),le.ok(Pr)}function $r(Pr){pe.forRange("i",ve.length,Br,Ar=>{le.subschema({keyword:Ee,dataProp:Ar,dataPropType:ie.Type.Num},Pr),cr.allErrors||pe.if((0,k.not)(Pr),()=>pe.break())})}}v.validateAdditionalItems=fe,v.default=ce}}),require_items=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/items.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateTuple=void 0;var k=require_codegen(),ie=require_util$1(),ae=require_code2(),ce={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(le){const{schema:ve,it:pe}=le;if(Array.isArray(ve))return fe(le,"additionalItems",ve);pe.items=!0,!(0,ie.alwaysValidSchema)(pe,ve)&&le.ok((0,ae.validateArray)(le))}};function fe(le,ve,pe=le.schema){const{gen:ye,parentSchema:me,data:Ee,keyword:cr,it:Br}=le;Ar(me),Br.opts.unevaluated&&pe.length&&Br.items!==!0&&(Br.items=ie.mergeEvaluated.items(ye,pe.length,Br.items));const $r=ye.name("valid"),Pr=ye.const("len",(0,k._)`${Ee}.length`);pe.forEach((ur,jr)=>{(0,ie.alwaysValidSchema)(Br,ur)||(ye.if((0,k._)`${Pr} > ${jr}`,()=>le.subschema({keyword:cr,schemaProp:jr,dataProp:jr},$r)),le.ok($r))});function Ar(ur){const{opts:jr,errSchemaPath:Mr}=Br,Lr=pe.length,Vr=Lr===ur.minItems&&(Lr===ur.maxItems||ur[ve]===!1);if(jr.strictTuples&&!Vr){const Gr=`"${cr}" is ${Lr}-tuple, but minItems or maxItems/${ve} are not specified or different at path "${Mr}"`;(0,ie.checkStrictMode)(Br,Gr,jr.strictTuples)}}}v.validateTuple=fe,v.default=ce}}),require_prefixItems=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_items(),ie={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:ae=>(0,k.validateTuple)(ae,"items")};v.default=ie}}),require_items2020=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/items2020.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_util$1(),ae=require_code2(),ce=require_additionalItems(),fe={message:({params:{len:ve}})=>(0,k.str)`must NOT have more than ${ve} items`,params:({params:{len:ve}})=>(0,k._)`{limit: ${ve}}`},le={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:fe,code(ve){const{schema:pe,parentSchema:ye,it:me}=ve,{prefixItems:Ee}=ye;me.items=!0,!(0,ie.alwaysValidSchema)(me,pe)&&(Ee?(0,ce.validateAdditionalItems)(ve,Ee):ve.ok((0,ae.validateArray)(ve)))}};v.default=le}}),require_contains=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/contains.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_util$1(),ae={message:({params:{min:fe,max:le}})=>le===void 0?(0,k.str)`must contain at least ${fe} valid item(s)`:(0,k.str)`must contain at least ${fe} and no more than ${le} valid item(s)`,params:({params:{min:fe,max:le}})=>le===void 0?(0,k._)`{minContains: ${fe}}`:(0,k._)`{minContains: ${fe}, maxContains: ${le}}`},ce={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:ae,code(fe){const{gen:le,schema:ve,parentSchema:pe,data:ye,it:me}=fe;let Ee,cr;const{minContains:Br,maxContains:$r}=pe;me.opts.next?(Ee=Br===void 0?1:Br,cr=$r):Ee=1;const Pr=le.const("len",(0,k._)`${ye}.length`);if(fe.setParams({min:Ee,max:cr}),cr===void 0&&Ee===0){(0,ie.checkStrictMode)(me,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(cr!==void 0&&Ee>cr){(0,ie.checkStrictMode)(me,'"minContains" > "maxContains" is always invalid'),fe.fail();return}if((0,ie.alwaysValidSchema)(me,ve)){let Lr=(0,k._)`${Pr} >= ${Ee}`;cr!==void 0&&(Lr=(0,k._)`${Lr} && ${Pr} <= ${cr}`),fe.pass(Lr);return}me.items=!0;const Ar=le.name("valid");cr===void 0&&Ee===1?jr(Ar,()=>le.if(Ar,()=>le.break())):Ee===0?(le.let(Ar,!0),cr!==void 0&&le.if((0,k._)`${ye}.length > 0`,ur)):(le.let(Ar,!1),ur()),fe.result(Ar,()=>fe.reset());function ur(){const Lr=le.name("_valid"),Vr=le.let("count",0);jr(Lr,()=>le.if(Lr,()=>Mr(Vr)))}function jr(Lr,Vr){le.forRange("i",0,Pr,Gr=>{fe.subschema({keyword:"contains",dataProp:Gr,dataPropType:ie.Type.Num,compositeRule:!0},Lr),Vr()})}function Mr(Lr){le.code((0,k._)`${Lr}++`),cr===void 0?le.if((0,k._)`${Lr} >= ${Ee}`,()=>le.assign(Ar,!0).break()):(le.if((0,k._)`${Lr} > ${cr}`,()=>le.assign(Ar,!1).break()),Ee===1?le.assign(Ar,!0):le.if((0,k._)`${Lr} >= ${Ee}`,()=>le.assign(Ar,!0)))}}};v.default=ce}}),require_dependencies=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.validateSchemaDeps=v.validatePropertyDeps=v.error=void 0;var k=require_codegen(),ie=require_util$1(),ae=require_code2();v.error={message:({params:{property:pe,depsCount:ye,deps:me}})=>{const Ee=ye===1?"property":"properties";return(0,k.str)`must have ${Ee} ${me} when property ${pe} is present`},params:({params:{property:pe,depsCount:ye,deps:me,missingProperty:Ee}})=>(0,k._)`{property: ${pe}, missingProperty: ${Ee}, depsCount: ${ye}, - deps: ${me}}`};var ce={keyword:"dependencies",type:"object",schemaType:"object",error:v.error,code(pe){const[ye,me]=fe(pe);le(pe,ye),ve(pe,me)}};function fe({schema:pe}){const ye={},me={};for(const Ee in pe){if(Ee==="__proto__")continue;const cr=Array.isArray(pe[Ee])?ye:me;cr[Ee]=pe[Ee]}return[ye,me]}function le(pe,ye=pe.schema){const{gen:me,data:Ee,it:cr}=pe;if(Object.keys(ye).length===0)return;const Br=me.let("missing");for(const $r in ye){const Pr=ye[$r];if(Pr.length===0)continue;const Or=(0,ae.propertyInData)(me,Ee,$r,cr.opts.ownProperties);pe.setParams({property:$r,depsCount:Pr.length,deps:Pr.join(", ")}),cr.allErrors?me.if(Or,()=>{for(const ur of Pr)(0,ae.checkReportMissingProp)(pe,ur)}):(me.if((0,k._)`${Or} && (${(0,ae.checkMissingProp)(pe,Pr,Br)})`),(0,ae.reportMissingProp)(pe,Br),me.else())}}v.validatePropertyDeps=le;function ve(pe,ye=pe.schema){const{gen:me,data:Ee,keyword:cr,it:Br}=pe,$r=me.name("valid");for(const Pr in ye)(0,ie.alwaysValidSchema)(Br,ye[Pr])||(me.if((0,ae.propertyInData)(me,Ee,Pr,Br.opts.ownProperties),()=>{const Or=pe.subschema({keyword:cr,schemaProp:Pr},$r);pe.mergeValidEvaluated(Or,$r)},()=>me.var($r,!0)),pe.ok($r))}v.validateSchemaDeps=ve,v.default=ce}}),require_propertyNames=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_util$1(),ae={message:"property name must be valid",params:({params:fe})=>(0,k._)`{propertyName: ${fe.propertyName}}`},ce={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:ae,code(fe){const{gen:le,schema:ve,data:pe,it:ye}=fe;if((0,ie.alwaysValidSchema)(ye,ve))return;const me=le.name("valid");le.forIn("key",pe,Ee=>{fe.setParams({propertyName:Ee}),fe.subschema({keyword:"propertyNames",data:Ee,dataTypes:["string"],propertyName:Ee,compositeRule:!0},me),le.if((0,k.not)(me),()=>{fe.error(!0),ye.allErrors||le.break()})}),fe.ok(me)}};v.default=ce}}),require_additionalProperties=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2(),ie=require_codegen(),ae=require_names(),ce=require_util$1(),fe={message:"must NOT have additional properties",params:({params:ve})=>(0,ie._)`{additionalProperty: ${ve.additionalProperty}}`},le={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:fe,code(ve){const{gen:pe,schema:ye,parentSchema:me,data:Ee,errsCount:cr,it:Br}=ve;if(!cr)throw new Error("ajv implementation error");const{allErrors:$r,opts:Pr}=Br;if(Br.props=!0,Pr.removeAdditional!=="all"&&(0,ce.alwaysValidSchema)(Br,ye))return;const Or=(0,k.allSchemaProperties)(me.properties),ur=(0,k.allSchemaProperties)(me.patternProperties);jr(),ve.ok((0,ie._)`${cr} === ${ae.default.errors}`);function jr(){pe.forIn("key",Ee,Ur=>{!Or.length&&!ur.length?Vr(Ur):pe.if(Mr(Ur),()=>Vr(Ur))})}function Mr(Ur){let Qr;if(Or.length>8){const vn=(0,ce.schemaRefOrVal)(Br,me.properties,"properties");Qr=(0,k.isOwnProperty)(pe,vn,Ur)}else Or.length?Qr=(0,ie.or)(...Or.map(vn=>(0,ie._)`${Ur} === ${vn}`)):Qr=ie.nil;return ur.length&&(Qr=(0,ie.or)(Qr,...ur.map(vn=>(0,ie._)`${(0,k.usePattern)(ve,vn)}.test(${Ur})`))),(0,ie.not)(Qr)}function Lr(Ur){pe.code((0,ie._)`delete ${Ee}[${Ur}]`)}function Vr(Ur){if(Pr.removeAdditional==="all"||Pr.removeAdditional&&ye===!1){Lr(Ur);return}if(ye===!1){ve.setParams({additionalProperty:Ur}),ve.error(),$r||pe.break();return}if(typeof ye=="object"&&!(0,ce.alwaysValidSchema)(Br,ye)){const Qr=pe.name("valid");Pr.removeAdditional==="failing"?(Gr(Ur,Qr,!1),pe.if((0,ie.not)(Qr),()=>{ve.reset(),Lr(Ur)})):(Gr(Ur,Qr),$r||pe.if((0,ie.not)(Qr),()=>pe.break()))}}function Gr(Ur,Qr,vn){const Yt={keyword:"additionalProperties",dataProp:Ur,dataPropType:ce.Type.Str};vn===!1&&Object.assign(Yt,{compositeRule:!0,createErrors:!1,allErrors:!1}),ve.subschema(Yt,Qr)}}};v.default=le}}),require_properties=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/properties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_validate(),ie=require_code2(),ae=require_util$1(),ce=require_additionalProperties(),fe={keyword:"properties",type:"object",schemaType:"object",code(le){const{gen:ve,schema:pe,parentSchema:ye,data:me,it:Ee}=le;Ee.opts.removeAdditional==="all"&&ye.additionalProperties===void 0&&ce.default.code(new k.KeywordCxt(Ee,ce.default,"additionalProperties"));const cr=(0,ie.allSchemaProperties)(pe);for(const ur of cr)Ee.definedProperties.add(ur);Ee.opts.unevaluated&&cr.length&&Ee.props!==!0&&(Ee.props=ae.mergeEvaluated.props(ve,(0,ae.toHash)(cr),Ee.props));const Br=cr.filter(ur=>!(0,ae.alwaysValidSchema)(Ee,pe[ur]));if(Br.length===0)return;const $r=ve.name("valid");for(const ur of Br)Pr(ur)?Or(ur):(ve.if((0,ie.propertyInData)(ve,me,ur,Ee.opts.ownProperties)),Or(ur),Ee.allErrors||ve.else().var($r,!0),ve.endIf()),le.it.definedProperties.add(ur),le.ok($r);function Pr(ur){return Ee.opts.useDefaults&&!Ee.compositeRule&&pe[ur].default!==void 0}function Or(ur){le.subschema({keyword:"properties",schemaProp:ur,dataProp:ur},$r)}}};v.default=fe}}),require_patternProperties=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2(),ie=require_codegen(),ae=require_util$1(),ce=require_util$1(),fe={keyword:"patternProperties",type:"object",schemaType:"object",code(le){const{gen:ve,schema:pe,data:ye,parentSchema:me,it:Ee}=le,{opts:cr}=Ee,Br=(0,k.allSchemaProperties)(pe),$r=Br.filter(Vr=>(0,ae.alwaysValidSchema)(Ee,pe[Vr]));if(Br.length===0||$r.length===Br.length&&(!Ee.opts.unevaluated||Ee.props===!0))return;const Pr=cr.strictSchema&&!cr.allowMatchingProperties&&me.properties,Or=ve.name("valid");Ee.props!==!0&&!(Ee.props instanceof ie.Name)&&(Ee.props=(0,ce.evaluatedPropsToName)(ve,Ee.props));const{props:ur}=Ee;jr();function jr(){for(const Vr of Br)Pr&&Mr(Vr),Ee.allErrors?Lr(Vr):(ve.var(Or,!0),Lr(Vr),ve.if(Or))}function Mr(Vr){for(const Gr in Pr)new RegExp(Vr).test(Gr)&&(0,ae.checkStrictMode)(Ee,`property ${Gr} matches pattern ${Vr} (use allowMatchingProperties)`)}function Lr(Vr){ve.forIn("key",ye,Gr=>{ve.if((0,ie._)`${(0,k.usePattern)(le,Vr)}.test(${Gr})`,()=>{const Ur=$r.includes(Vr);Ur||le.subschema({keyword:"patternProperties",schemaProp:Vr,dataProp:Gr,dataPropType:ce.Type.Str},Or),Ee.opts.unevaluated&&ur!==!0?ve.assign((0,ie._)`${ur}[${Gr}]`,!0):!Ur&&!Ee.allErrors&&ve.if((0,ie.not)(Or),()=>ve.break())})})}}};v.default=fe}}),require_not=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/not.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_util$1(),ie={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(ae){const{gen:ce,schema:fe,it:le}=ae;if((0,k.alwaysValidSchema)(le,fe)){ae.fail();return}const ve=ce.name("valid");ae.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},ve),ae.failResult(ve,()=>ae.reset(),()=>ae.error())},error:{message:"must NOT be valid"}};v.default=ie}}),require_anyOf=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2(),ie={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:k.validateUnion,error:{message:"must match a schema in anyOf"}};v.default=ie}}),require_oneOf=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_util$1(),ae={message:"must match exactly one schema in oneOf",params:({params:fe})=>(0,k._)`{passingSchemas: ${fe.passing}}`},ce={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:ae,code(fe){const{gen:le,schema:ve,parentSchema:pe,it:ye}=fe;if(!Array.isArray(ve))throw new Error("ajv implementation error");if(ye.opts.discriminator&&pe.discriminator)return;const me=ve,Ee=le.let("valid",!1),cr=le.let("passing",null),Br=le.name("_valid");fe.setParams({passing:cr}),le.block($r),fe.result(Ee,()=>fe.reset(),()=>fe.error(!0));function $r(){me.forEach((Pr,Or)=>{let ur;(0,ie.alwaysValidSchema)(ye,Pr)?le.var(Br,!0):ur=fe.subschema({keyword:"oneOf",schemaProp:Or,compositeRule:!0},Br),Or>0&&le.if((0,k._)`${Br} && ${Ee}`).assign(Ee,!1).assign(cr,(0,k._)`[${cr}, ${Or}]`).else(),le.if(Br,()=>{le.assign(Ee,!0),le.assign(cr,Or),ur&&fe.mergeEvaluated(ur,k.Name)})})}}};v.default=ce}}),require_allOf=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/allOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_util$1(),ie={keyword:"allOf",schemaType:"array",code(ae){const{gen:ce,schema:fe,it:le}=ae;if(!Array.isArray(fe))throw new Error("ajv implementation error");const ve=ce.name("valid");fe.forEach((pe,ye)=>{if((0,k.alwaysValidSchema)(le,pe))return;const me=ae.subschema({keyword:"allOf",schemaProp:ye},ve);ae.ok(ve),ae.mergeEvaluated(me)})}};v.default=ie}}),require_if=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/if.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_util$1(),ae={message:({params:le})=>(0,k.str)`must match "${le.ifClause}" schema`,params:({params:le})=>(0,k._)`{failingKeyword: ${le.ifClause}}`},ce={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:ae,code(le){const{gen:ve,parentSchema:pe,it:ye}=le;pe.then===void 0&&pe.else===void 0&&(0,ie.checkStrictMode)(ye,'"if" without "then" and "else" is ignored');const me=fe(ye,"then"),Ee=fe(ye,"else");if(!me&&!Ee)return;const cr=ve.let("valid",!0),Br=ve.name("_valid");if($r(),le.reset(),me&&Ee){const Or=ve.let("ifClause");le.setParams({ifClause:Or}),ve.if(Br,Pr("then",Or),Pr("else",Or))}else me?ve.if(Br,Pr("then")):ve.if((0,k.not)(Br),Pr("else"));le.pass(cr,()=>le.error(!0));function $r(){const Or=le.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},Br);le.mergeEvaluated(Or)}function Pr(Or,ur){return()=>{const jr=le.subschema({keyword:Or},Br);ve.assign(cr,Br),le.mergeValidEvaluated(jr,cr),ur?ve.assign(ur,(0,k._)`${Or}`):le.setParams({ifClause:Or})}}}};function fe(le,ve){const pe=le.schema[ve];return pe!==void 0&&!(0,ie.alwaysValidSchema)(le,pe)}v.default=ce}}),require_thenElse=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_util$1(),ie={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:ae,parentSchema:ce,it:fe}){ce.if===void 0&&(0,k.checkStrictMode)(fe,`"${ae}" without "if" is ignored`)}};v.default=ie}}),require_applicator=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_additionalItems(),ie=require_prefixItems(),ae=require_items(),ce=require_items2020(),fe=require_contains(),le=require_dependencies(),ve=require_propertyNames(),pe=require_additionalProperties(),ye=require_properties(),me=require_patternProperties(),Ee=require_not(),cr=require_anyOf(),Br=require_oneOf(),$r=require_allOf(),Pr=require_if(),Or=require_thenElse();function ur(jr=!1){const Mr=[Ee.default,cr.default,Br.default,$r.default,Pr.default,Or.default,ve.default,pe.default,le.default,ye.default,me.default];return jr?Mr.push(ie.default,ce.default):Mr.push(k.default,ae.default),Mr.push(fe.default),Mr}v.default=ur}}),require_format3=__commonJS$1({"node_modules/ajv/dist/vocabularies/format/format.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie={message:({schemaCode:ce})=>(0,k.str)`must match format "${ce}"`,params:({schemaCode:ce})=>(0,k._)`{format: ${ce}}`},ae={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:ie,code(ce,fe){const{gen:le,data:ve,$data:pe,schema:ye,schemaCode:me,it:Ee}=ce,{opts:cr,errSchemaPath:Br,schemaEnv:$r,self:Pr}=Ee;if(!cr.validateFormats)return;pe?Or():ur();function Or(){const jr=le.scopeValue("formats",{ref:Pr.formats,code:cr.code.formats}),Mr=le.const("fDef",(0,k._)`${jr}[${me}]`),Lr=le.let("fType"),Vr=le.let("format");le.if((0,k._)`typeof ${Mr} == "object" && !(${Mr} instanceof RegExp)`,()=>le.assign(Lr,(0,k._)`${Mr}.type || "string"`).assign(Vr,(0,k._)`${Mr}.validate`),()=>le.assign(Lr,(0,k._)`"string"`).assign(Vr,Mr)),ce.fail$data((0,k.or)(Gr(),Ur()));function Gr(){return cr.strictSchema===!1?k.nil:(0,k._)`${me} && !${Vr}`}function Ur(){const Qr=$r.$async?(0,k._)`(${Mr}.async ? await ${Vr}(${ve}) : ${Vr}(${ve}))`:(0,k._)`${Vr}(${ve})`,vn=(0,k._)`(typeof ${Vr} == "function" ? ${Qr} : ${Vr}.test(${ve}))`;return(0,k._)`${Vr} && ${Vr} !== true && ${Lr} === ${fe} && !${vn}`}}function ur(){const jr=Pr.formats[ye];if(!jr){Gr();return}if(jr===!0)return;const[Mr,Lr,Vr]=Ur(jr);Mr===fe&&ce.pass(Qr());function Gr(){if(cr.strictSchema===!1){Pr.logger.warn(vn());return}throw new Error(vn());function vn(){return`unknown format "${ye}" ignored in schema at path "${Br}"`}}function Ur(vn){const Yt=vn instanceof RegExp?(0,k.regexpCode)(vn):cr.code.formats?(0,k._)`${cr.code.formats}${(0,k.getProperty)(ye)}`:void 0,fn=le.scopeValue("formats",{key:ye,ref:vn,code:Yt});return typeof vn=="object"&&!(vn instanceof RegExp)?[vn.type||"string",vn.validate,(0,k._)`${fn}.validate`]:["string",vn,fn]}function Qr(){if(typeof jr=="object"&&!(jr instanceof RegExp)&&jr.async){if(!$r.$async)throw new Error("async format in sync schema");return(0,k._)`await ${Vr}(${ve})`}return typeof Lr=="function"?(0,k._)`${Vr}(${ve})`:(0,k._)`${Vr}.test(${ve})`}}}};v.default=ae}}),require_format4=__commonJS$1({"node_modules/ajv/dist/vocabularies/format/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_format3(),ie=[k.default];v.default=ie}}),require_metadata=__commonJS$1({"node_modules/ajv/dist/vocabularies/metadata.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.contentVocabulary=v.metadataVocabulary=void 0,v.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],v.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]}}),require_draft7=__commonJS$1({"node_modules/ajv/dist/vocabularies/draft7.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_core2(),ie=require_validation(),ae=require_applicator(),ce=require_format4(),fe=require_metadata(),le=[k.default,ie.default,(0,ae.default)(),ce.default,fe.metadataVocabulary,fe.contentVocabulary];v.default=le}}),require_types2$2=__commonJS$1({"node_modules/ajv/dist/vocabularies/discriminator/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.DiscrError=void 0,function(k){k.Tag="tag",k.Mapping="mapping"}(v.DiscrError||(v.DiscrError={}))}}),require_discriminator=__commonJS$1({"node_modules/ajv/dist/vocabularies/discriminator/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_types2$2(),ae=require_compile(),ce=require_util$1(),fe={message:({params:{discrError:ve,tagName:pe}})=>ve===ie.DiscrError.Tag?`tag "${pe}" must be string`:`value of tag "${pe}" must be in oneOf`,params:({params:{discrError:ve,tag:pe,tagName:ye}})=>(0,k._)`{error: ${ve}, tag: ${ye}, tagValue: ${pe}}`},le={keyword:"discriminator",type:"object",schemaType:"object",error:fe,code(ve){const{gen:pe,data:ye,schema:me,parentSchema:Ee,it:cr}=ve,{oneOf:Br}=Ee;if(!cr.opts.discriminator)throw new Error("discriminator: requires discriminator option");const $r=me.propertyName;if(typeof $r!="string")throw new Error("discriminator: requires propertyName");if(me.mapping)throw new Error("discriminator: mapping is not supported");if(!Br)throw new Error("discriminator: requires oneOf keyword");const Pr=pe.let("valid",!1),Or=pe.const("tag",(0,k._)`${ye}${(0,k.getProperty)($r)}`);pe.if((0,k._)`typeof ${Or} == "string"`,()=>ur(),()=>ve.error(!1,{discrError:ie.DiscrError.Tag,tag:Or,tagName:$r})),ve.ok(Pr);function ur(){const Lr=Mr();pe.if(!1);for(const Vr in Lr)pe.elseIf((0,k._)`${Or} === ${Vr}`),pe.assign(Pr,jr(Lr[Vr]));pe.else(),ve.error(!1,{discrError:ie.DiscrError.Mapping,tag:Or,tagName:$r}),pe.endIf()}function jr(Lr){const Vr=pe.name("valid"),Gr=ve.subschema({keyword:"oneOf",schemaProp:Lr},Vr);return ve.mergeEvaluated(Gr,k.Name),Vr}function Mr(){var Lr;const Vr={},Gr=Qr(Ee);let Ur=!0;for(let fn=0;fnthis.addVocabulary(Br)),this.opts.discriminator&&this.addKeyword(ce.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const Br=this.opts.$data?this.$dataMetaSchema(fe,le):fe;this.addMetaSchema(Br,ve,!1),this.refs["http://json-schema.org/schema"]=ve}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ve)?ve:void 0)}};k.exports=v=pe,Object.defineProperty(v,"__esModule",{value:!0}),v.default=pe;var ye=require_validate();Object.defineProperty(v,"KeywordCxt",{enumerable:!0,get:function(){return ye.KeywordCxt}});var me=require_codegen();Object.defineProperty(v,"_",{enumerable:!0,get:function(){return me._}}),Object.defineProperty(v,"str",{enumerable:!0,get:function(){return me.str}}),Object.defineProperty(v,"stringify",{enumerable:!0,get:function(){return me.stringify}}),Object.defineProperty(v,"nil",{enumerable:!0,get:function(){return me.nil}}),Object.defineProperty(v,"Name",{enumerable:!0,get:function(){return me.Name}}),Object.defineProperty(v,"CodeGen",{enumerable:!0,get:function(){return me.CodeGen}});var Ee=require_validation_error();Object.defineProperty(v,"ValidationError",{enumerable:!0,get:function(){return Ee.default}});var cr=require_ref_error();Object.defineProperty(v,"MissingRefError",{enumerable:!0,get:function(){return cr.default}})}}),require_formats=__commonJS$1({"node_modules/ajv-formats/dist/formats.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.formatNames=v.fastFormats=v.fullFormats=void 0;function k(vn,Yt){return{validate:vn,compare:Yt}}v.fullFormats={date:k(fe,le),time:k(pe,ye),"date-time":k(Ee,cr),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:Pr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(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]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Qr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:ur,int32:{type:"number",validate:Lr},int64:{type:"number",validate:Vr},float:{type:"number",validate:Gr},double:{type:"number",validate:Gr},password:!0,binary:!0},v.fastFormats={...v.fullFormats,date:k(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,le),time:k(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,ye),"date-time":k(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,cr),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},v.formatNames=Object.keys(v.fullFormats);function ie(vn){return vn%4===0&&(vn%100!==0||vn%400===0)}var ae=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ce=[0,31,28,31,30,31,30,31,31,30,31,30,31];function fe(vn){const Yt=ae.exec(vn);if(!Yt)return!1;const fn=+Yt[1],Xt=+Yt[2],Qt=+Yt[3];return Xt>=1&&Xt<=12&&Qt>=1&&Qt<=(Xt===2&&ie(fn)?29:ce[Xt])}function le(vn,Yt){if(!!(vn&&Yt))return vn>Yt?1:vnYt?1:vn=jr}function Vr(vn){return Number.isInteger(vn)}function Gr(){return!0}var Ur=/[^\\]\\Z/;function Qr(vn){if(Ur.test(vn))return!1;try{return new RegExp(vn),!0}catch{return!1}}}}),require_limit=__commonJS$1({"node_modules/ajv-formats/dist/limit.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.formatLimitDefinition=void 0;var k=require_ajv(),ie=require_codegen(),ae=ie.operators,ce={formatMaximum:{okStr:"<=",ok:ae.LTE,fail:ae.GT},formatMinimum:{okStr:">=",ok:ae.GTE,fail:ae.LT},formatExclusiveMaximum:{okStr:"<",ok:ae.LT,fail:ae.GTE},formatExclusiveMinimum:{okStr:">",ok:ae.GT,fail:ae.LTE}},fe={message:({keyword:ve,schemaCode:pe})=>ie.str`should be ${ce[ve].okStr} ${pe}`,params:({keyword:ve,schemaCode:pe})=>ie._`{comparison: ${ce[ve].okStr}, limit: ${pe}}`};v.formatLimitDefinition={keyword:Object.keys(ce),type:"string",schemaType:"string",$data:!0,error:fe,code(ve){const{gen:pe,data:ye,schemaCode:me,keyword:Ee,it:cr}=ve,{opts:Br,self:$r}=cr;if(!Br.validateFormats)return;const Pr=new k.KeywordCxt(cr,$r.RULES.all.format.definition,"format");Pr.$data?Or():ur();function Or(){const Mr=pe.scopeValue("formats",{ref:$r.formats,code:Br.code.formats}),Lr=pe.const("fmt",ie._`${Mr}[${Pr.schemaCode}]`);ve.fail$data(ie.or(ie._`typeof ${Lr} != "object"`,ie._`${Lr} instanceof RegExp`,ie._`typeof ${Lr}.compare != "function"`,jr(Lr)))}function ur(){const Mr=Pr.schema,Lr=$r.formats[Mr];if(!Lr||Lr===!0)return;if(typeof Lr!="object"||Lr instanceof RegExp||typeof Lr.compare!="function")throw new Error(`"${Ee}": format "${Mr}" does not define "compare" function`);const Vr=pe.scopeValue("formats",{key:Mr,ref:Lr,code:Br.code.formats?ie._`${Br.code.formats}${ie.getProperty(Mr)}`:void 0});ve.fail$data(jr(Vr))}function jr(Mr){return ie._`${Mr}.compare(${ye}, ${me}) ${ce[Ee].fail} 0`}},dependencies:["format"]};var le=ve=>(ve.addKeyword(v.formatLimitDefinition),ve);v.default=le}}),require_dist$1=__commonJS$1({"node_modules/ajv-formats/dist/index.js"(v,k){Object.defineProperty(v,"__esModule",{value:!0});var ie=require_formats(),ae=require_limit(),ce=require_codegen(),fe=new ce.Name("fullFormats"),le=new ce.Name("fastFormats"),ve=(ye,me={keywords:!0})=>{if(Array.isArray(me))return pe(ye,me,ie.fullFormats,fe),ye;const[Ee,cr]=me.mode==="fast"?[ie.fastFormats,le]:[ie.fullFormats,fe],Br=me.formats||ie.formatNames;return pe(ye,Br,Ee,cr),me.keywords&&ae.default(ye),ye};ve.get=(ye,me="full")=>{const cr=(me==="fast"?ie.fastFormats:ie.fullFormats)[ye];if(!cr)throw new Error(`Unknown format "${ye}"`);return cr};function pe(ye,me,Ee,cr){var Br,$r;(Br=($r=ye.opts.code).formats)!==null&&Br!==void 0||($r.formats=ce._`require("ajv-formats/dist/formats").${cr}`);for(const Pr of me)ye.addFormat(Pr,Ee[Pr])}k.exports=v=ve,Object.defineProperty(v,"__esModule",{value:!0}),v.default=ve}}),require_lib10=__commonJS$1({"node_modules/near-abi/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.AbiSerializationType=v.AbiFunctionModifier=v.AbiFunctionKind=v.SCHEMA_VERSION=void 0,v.SCHEMA_VERSION="0.3.0",function(k){k.View="view",k.Call="call"}(v.AbiFunctionKind||(v.AbiFunctionKind={})),function(k){k.Init="init",k.Private="private",k.Payable="payable"}(v.AbiFunctionModifier||(v.AbiFunctionModifier={})),function(k){k.Json="json",k.Borsh="borsh"}(v.AbiSerializationType||(v.AbiSerializationType={}))}}),require_errors5=__commonJS$1({"node_modules/@near-js/accounts/lib/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ConflictingOptions=v.ArgumentSchemaError=v.UnknownArgumentError=v.UnsupportedSerializationError=void 0;var k=class extends Error{constructor(fe,le){super(`Contract method '${fe}' is using an unsupported serialization type ${le}`)}};v.UnsupportedSerializationError=k;var ie=class extends Error{constructor(fe,le){super(`Unrecognized argument '${fe}', expected '${JSON.stringify(le)}'`)}};v.UnknownArgumentError=ie;var ae=class extends Error{constructor(fe,le){super(`Argument '${fe}' does not conform to the specified ABI schema: '${JSON.stringify(le)}'`)}};v.ArgumentSchemaError=ae;var ce=class extends Error{constructor(){super("Conflicting contract method options have been passed. You can either specify ABI or a list of view/call methods.")}};v.ConflictingOptions=ce}}),require_contract$1=__commonJS$1({"node_modules/@near-js/accounts/lib/contract.js"(v){var k=v&&v.__awaiter||function(jr,Mr,Lr,Vr){function Gr(Ur){return Ur instanceof Lr?Ur:new Lr(function(Qr){Qr(Ur)})}return new(Lr||(Lr=Promise))(function(Ur,Qr){function vn(Xt){try{fn(Vr.next(Xt))}catch(Qt){Qr(Qt)}}function Yt(Xt){try{fn(Vr.throw(Xt))}catch(Qt){Qr(Qt)}}function fn(Xt){Xt.done?Ur(Xt.value):Gr(Xt.value).then(vn,Yt)}fn((Vr=Vr.apply(jr,Mr||[])).next())})},ie=v&&v.__importDefault||function(jr){return jr&&jr.__esModule?jr:{default:jr}};Object.defineProperty(v,"__esModule",{value:!0}),v.Contract=void 0;var ae=require_lib6(),ce=require_lib2(),fe=ie(require_ajv()),le=ie(require_dist$1()),ve=ie(require_bn$1()),pe=ie(require_browser$3()),ye=require_lib10(),me=require_errors5();function Ee(jr,Mr){return{[jr](...Lr){return Mr(...Lr)}}[jr]}function cr(jr,Mr,Lr,Vr){var Gr;if(!Pr(jr))return;if(Mr.params&&Mr.params.serialization_type!==ye.AbiSerializationType.Json)throw new me.UnsupportedSerializationError(Mr.name,Mr.params.serialization_type);if(Mr.result&&Mr.result.serialization_type!==ye.AbiSerializationType.Json)throw new me.UnsupportedSerializationError(Mr.name,Mr.result.serialization_type);const Ur=((Gr=Mr.params)===null||Gr===void 0?void 0:Gr.args)||[];for(const Qr of Ur){const vn=jr[Qr.name],Yt=Qr.type_schema;Yt.definitions=Vr.body.root_schema.definitions;const fn=Lr.compile(Yt);if(!fn(vn))throw new me.ArgumentSchemaError(Qr.name,fn.errors)}for(const Qr of Object.keys(jr))if(!Ur.find(Yt=>Yt.name===Qr))throw new me.UnknownArgumentError(Qr,Ur.map(Yt=>Yt.name))}function Br(){const jr=new fe.default({strictSchema:!1,formats:{uint32:!0,uint64:!0}});return(0,le.default)(jr),jr}var $r=jr=>jr&&jr.byteLength!==void 0&&jr.byteLength===jr.length,Pr=jr=>Object.prototype.toString.call(jr)==="[object Object]",Or=class{constructor(jr,Mr,Lr){this.account=jr,this.contractId=Mr;const{viewMethods:Vr=[],changeMethods:Gr=[],abi:Ur}=Lr;let Qr=Vr.map(fn=>({name:fn,abi:null})),vn=Gr.map(fn=>({name:fn,abi:null}));if(Ur){if(Qr.length>0||vn.length>0)throw new me.ConflictingOptions;Qr=Ur.body.functions.filter(fn=>fn.kind===ye.AbiFunctionKind.View).map(fn=>({name:fn.name,abi:fn})),vn=Ur.body.functions.filter(fn=>fn.kind===ye.AbiFunctionKind.Call).map(fn=>({name:fn.name,abi:fn}))}const Yt=Br();Qr.forEach(({name:fn,abi:Xt})=>{Object.defineProperty(this,fn,{writable:!1,enumerable:!0,value:Ee(fn,(Qt={},Kr={},...be)=>k(this,void 0,void 0,function*(){if(be.length||!(Pr(Qt)||$r(Qt))||!Pr(Kr))throw new ce.PositionalArgsError;return Xt&&cr(Qt,Xt,Yt,Ur),this.account.viewFunction(Object.assign({contractId:this.contractId,methodName:fn,args:Qt},Kr))}))})}),vn.forEach(({name:fn,abi:Xt})=>{Object.defineProperty(this,fn,{writable:!1,enumerable:!0,value:Ee(fn,(...Qt)=>k(this,void 0,void 0,function*(){if(Qt.length&&(Qt.length>3||!(Pr(Qt[0])||$r(Qt[0]))))throw new ce.PositionalArgsError;return(Qt.length>1||!(Qt[0]&&Qt[0].args))&&((0,pe.default)("contract.methodName(args, gas, amount)")("use `contract.methodName({ args, gas?, amount?, callbackUrl?, meta? })` instead"),Qt[0]={args:Qt[0],gas:Qt[1],amount:Qt[2]}),Xt&&cr(Qt[0].args,Xt,Yt,Ur),this._changeMethod(Object.assign({methodName:fn},Qt[0]))}))})})}_changeMethod({args:jr,methodName:Mr,gas:Lr,amount:Vr,meta:Gr,callbackUrl:Ur}){return k(this,void 0,void 0,function*(){ur({gas:Lr,amount:Vr});const Qr=yield this.account.functionCall({contractId:this.contractId,methodName:Mr,args:jr,gas:Lr,attachedDeposit:Vr,walletMeta:Gr,walletCallbackUrl:Ur});return(0,ae.getTransactionLastResult)(Qr)})}};v.Contract=Or;function ur(jr){const Mr="number, decimal string or BN";for(const Lr of Object.keys(jr)){const Vr=jr[Lr];if(Vr&&!ve.default.isBN(Vr)&&isNaN(Vr))throw new ce.ArgumentTypeError(Lr,Mr,Vr)}}}}),require_lib11=__commonJS$1({"node_modules/@near-js/accounts/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MultisigStateStatus=v.MultisigDeleteRequestRejectionError=v.UnsupportedSerializationError=v.UnknownArgumentError=v.ConflictingOptions=v.ArgumentSchemaError=v.Contract=v.MULTISIG_CONFIRM_METHODS=v.MULTISIG_CHANGE_METHODS=v.MULTISIG_DEPOSIT=v.MULTISIG_GAS=v.MULTISIG_ALLOWANCE=v.MULTISIG_STORAGE_KEY=v.Connection=v.AccountMultisig=v.UrlAccountCreator=v.LocalAccountCreator=v.AccountCreator=v.Account2FA=v.Account=void 0;var k=require_account$2();Object.defineProperty(v,"Account",{enumerable:!0,get:function(){return k.Account}});var ie=require_account_2fa();Object.defineProperty(v,"Account2FA",{enumerable:!0,get:function(){return ie.Account2FA}});var ae=require_account_creator$1();Object.defineProperty(v,"AccountCreator",{enumerable:!0,get:function(){return ae.AccountCreator}}),Object.defineProperty(v,"LocalAccountCreator",{enumerable:!0,get:function(){return ae.LocalAccountCreator}}),Object.defineProperty(v,"UrlAccountCreator",{enumerable:!0,get:function(){return ae.UrlAccountCreator}});var ce=require_account_multisig$1();Object.defineProperty(v,"AccountMultisig",{enumerable:!0,get:function(){return ce.AccountMultisig}});var fe=require_connection$1();Object.defineProperty(v,"Connection",{enumerable:!0,get:function(){return fe.Connection}});var le=require_constants3$1();Object.defineProperty(v,"MULTISIG_STORAGE_KEY",{enumerable:!0,get:function(){return le.MULTISIG_STORAGE_KEY}}),Object.defineProperty(v,"MULTISIG_ALLOWANCE",{enumerable:!0,get:function(){return le.MULTISIG_ALLOWANCE}}),Object.defineProperty(v,"MULTISIG_GAS",{enumerable:!0,get:function(){return le.MULTISIG_GAS}}),Object.defineProperty(v,"MULTISIG_DEPOSIT",{enumerable:!0,get:function(){return le.MULTISIG_DEPOSIT}}),Object.defineProperty(v,"MULTISIG_CHANGE_METHODS",{enumerable:!0,get:function(){return le.MULTISIG_CHANGE_METHODS}}),Object.defineProperty(v,"MULTISIG_CONFIRM_METHODS",{enumerable:!0,get:function(){return le.MULTISIG_CONFIRM_METHODS}});var ve=require_contract$1();Object.defineProperty(v,"Contract",{enumerable:!0,get:function(){return ve.Contract}});var pe=require_errors5();Object.defineProperty(v,"ArgumentSchemaError",{enumerable:!0,get:function(){return pe.ArgumentSchemaError}}),Object.defineProperty(v,"ConflictingOptions",{enumerable:!0,get:function(){return pe.ConflictingOptions}}),Object.defineProperty(v,"UnknownArgumentError",{enumerable:!0,get:function(){return pe.UnknownArgumentError}}),Object.defineProperty(v,"UnsupportedSerializationError",{enumerable:!0,get:function(){return pe.UnsupportedSerializationError}});var ye=require_types$4();Object.defineProperty(v,"MultisigDeleteRequestRejectionError",{enumerable:!0,get:function(){return ye.MultisigDeleteRequestRejectionError}}),Object.defineProperty(v,"MultisigStateStatus",{enumerable:!0,get:function(){return ye.MultisigStateStatus}})}}),require_errors6=__commonJS$1({"node_modules/near-api-js/lib/utils/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.logWarning=v.TypedError=v.PositionalArgsError=v.ErrorContext=v.ArgumentTypeError=v.UnsupportedSerializationError=v.UnknownArgumentError=v.ConflictingOptions=v.ArgumentSchemaError=void 0;var k=require_lib11();Object.defineProperty(v,"ArgumentSchemaError",{enumerable:!0,get:function(){return k.ArgumentSchemaError}}),Object.defineProperty(v,"ConflictingOptions",{enumerable:!0,get:function(){return k.ConflictingOptions}}),Object.defineProperty(v,"UnknownArgumentError",{enumerable:!0,get:function(){return k.UnknownArgumentError}}),Object.defineProperty(v,"UnsupportedSerializationError",{enumerable:!0,get:function(){return k.UnsupportedSerializationError}});var ie=require_lib2();Object.defineProperty(v,"ArgumentTypeError",{enumerable:!0,get:function(){return ie.ArgumentTypeError}}),Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return ie.ErrorContext}}),Object.defineProperty(v,"PositionalArgsError",{enumerable:!0,get:function(){return ie.PositionalArgsError}}),Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return ie.TypedError}});var ae=require_lib6();Object.defineProperty(v,"logWarning",{enumerable:!0,get:function(){return ae.logWarning}})}}),require_utils$5=__commonJS$1({"node_modules/near-api-js/lib/utils/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(cr,Br,$r,Pr){Pr===void 0&&(Pr=$r);var Or=Object.getOwnPropertyDescriptor(Br,$r);(!Or||("get"in Or?!Br.__esModule:Or.writable||Or.configurable))&&(Or={enumerable:!0,get:function(){return Br[$r]}}),Object.defineProperty(cr,Pr,Or)}:function(cr,Br,$r,Pr){Pr===void 0&&(Pr=$r),cr[Pr]=Br[$r]}),ie=v&&v.__setModuleDefault||(Object.create?function(cr,Br){Object.defineProperty(cr,"default",{enumerable:!0,value:Br})}:function(cr,Br){cr.default=Br}),ae=v&&v.__importStar||function(cr){if(cr&&cr.__esModule)return cr;var Br={};if(cr!=null)for(var $r in cr)$r!=="default"&&Object.prototype.hasOwnProperty.call(cr,$r)&&k(Br,cr,$r);return ie(Br,cr),Br};Object.defineProperty(v,"__esModule",{value:!0}),v.logWarning=v.rpc_errors=v.KeyPairEd25519=v.KeyPair=v.PublicKey=v.format=v.enums=v.web=v.serialize=v.key_pair=void 0;var ce=ae(require_key_pair2());v.key_pair=ce;var fe=ae(require_serialize$1());v.serialize=fe;var le=ae(require_web$1());v.web=le;var ve=ae(require_enums$1());v.enums=ve;var pe=ae(require_format2());v.format=pe;var ye=ae(require_rpc_errors2());v.rpc_errors=ye;var me=require_key_pair2();Object.defineProperty(v,"PublicKey",{enumerable:!0,get:function(){return me.PublicKey}}),Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return me.KeyPair}}),Object.defineProperty(v,"KeyPairEd25519",{enumerable:!0,get:function(){return me.KeyPairEd25519}});var Ee=require_errors6();Object.defineProperty(v,"logWarning",{enumerable:!0,get:function(){return Ee.logWarning}})}}),require_transaction$1=__commonJS$1({"node_modules/near-api-js/lib/transaction.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.transfer=v.stake=v.functionCallAccessKey=v.functionCall=v.fullAccessKey=v.deployContract=v.deleteKey=v.deleteAccount=v.createAccount=v.addKey=v.encodeDelegateAction=v.encodeSignedDelegate=v.Transaction=v.SignedTransaction=v.Signature=v.signTransaction=v.createTransaction=v.SCHEMA=v.Transfer=v.Stake=v.FunctionCallPermission=v.FunctionCall=v.FullAccessPermission=v.DeployContract=v.DeleteKey=v.DeleteAccount=v.CreateAccount=v.AddKey=v.AccessKeyPermission=v.AccessKey=v.Action=v.stringifyJsonOrBytes=void 0;var k=require_lib7();Object.defineProperty(v,"stringifyJsonOrBytes",{enumerable:!0,get:function(){return k.stringifyJsonOrBytes}}),Object.defineProperty(v,"Action",{enumerable:!0,get:function(){return k.Action}}),Object.defineProperty(v,"AccessKey",{enumerable:!0,get:function(){return k.AccessKey}}),Object.defineProperty(v,"AccessKeyPermission",{enumerable:!0,get:function(){return k.AccessKeyPermission}}),Object.defineProperty(v,"AddKey",{enumerable:!0,get:function(){return k.AddKey}}),Object.defineProperty(v,"CreateAccount",{enumerable:!0,get:function(){return k.CreateAccount}}),Object.defineProperty(v,"DeleteAccount",{enumerable:!0,get:function(){return k.DeleteAccount}}),Object.defineProperty(v,"DeleteKey",{enumerable:!0,get:function(){return k.DeleteKey}}),Object.defineProperty(v,"DeployContract",{enumerable:!0,get:function(){return k.DeployContract}}),Object.defineProperty(v,"FullAccessPermission",{enumerable:!0,get:function(){return k.FullAccessPermission}}),Object.defineProperty(v,"FunctionCall",{enumerable:!0,get:function(){return k.FunctionCall}}),Object.defineProperty(v,"FunctionCallPermission",{enumerable:!0,get:function(){return k.FunctionCallPermission}}),Object.defineProperty(v,"Stake",{enumerable:!0,get:function(){return k.Stake}}),Object.defineProperty(v,"Transfer",{enumerable:!0,get:function(){return k.Transfer}}),Object.defineProperty(v,"SCHEMA",{enumerable:!0,get:function(){return k.SCHEMA}}),Object.defineProperty(v,"createTransaction",{enumerable:!0,get:function(){return k.createTransaction}}),Object.defineProperty(v,"signTransaction",{enumerable:!0,get:function(){return k.signTransaction}}),Object.defineProperty(v,"Signature",{enumerable:!0,get:function(){return k.Signature}}),Object.defineProperty(v,"SignedTransaction",{enumerable:!0,get:function(){return k.SignedTransaction}}),Object.defineProperty(v,"Transaction",{enumerable:!0,get:function(){return k.Transaction}}),Object.defineProperty(v,"encodeSignedDelegate",{enumerable:!0,get:function(){return k.encodeSignedDelegate}}),Object.defineProperty(v,"encodeDelegateAction",{enumerable:!0,get:function(){return k.encodeDelegateAction}});var ie=require_lib7(),ae=(Br,$r)=>ie.actionCreators.addKey(Br,$r);v.addKey=ae;var ce=()=>ie.actionCreators.createAccount();v.createAccount=ce;var fe=Br=>ie.actionCreators.deleteAccount(Br);v.deleteAccount=fe;var le=Br=>ie.actionCreators.deleteKey(Br);v.deleteKey=le;var ve=Br=>ie.actionCreators.deployContract(Br);v.deployContract=ve;var pe=()=>ie.actionCreators.fullAccessKey();v.fullAccessKey=pe;var ye=(Br,$r,Pr,Or,ur,jr)=>ie.actionCreators.functionCall(Br,$r,Pr,Or,ur,jr);v.functionCall=ye;var me=(Br,$r,Pr)=>ie.actionCreators.functionCallAccessKey(Br,$r,Pr);v.functionCallAccessKey=me;var Ee=(Br,$r)=>ie.actionCreators.stake(Br,$r);v.stake=Ee;var cr=Br=>ie.actionCreators.transfer(Br);v.transfer=cr}}),require_validators2=__commonJS$1({"node_modules/near-api-js/lib/validators.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.findSeatPrice=v.diffEpochValidators=void 0;var k=require_lib6();Object.defineProperty(v,"diffEpochValidators",{enumerable:!0,get:function(){return k.diffEpochValidators}}),Object.defineProperty(v,"findSeatPrice",{enumerable:!0,get:function(){return k.findSeatPrice}})}}),require_account2=__commonJS$1({"node_modules/near-api-js/lib/account.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Account=void 0;var k=require_lib11();Object.defineProperty(v,"Account",{enumerable:!0,get:function(){return k.Account}})}}),require_account_multisig2=__commonJS$1({"node_modules/near-api-js/lib/account_multisig.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MultisigStateStatus=v.MultisigDeleteRequestRejectionError=v.MULTISIG_CONFIRM_METHODS=v.MULTISIG_CHANGE_METHODS=v.MULTISIG_DEPOSIT=v.MULTISIG_GAS=v.MULTISIG_ALLOWANCE=v.MULTISIG_STORAGE_KEY=v.AccountMultisig=v.Account2FA=void 0;var k=require_lib11();Object.defineProperty(v,"Account2FA",{enumerable:!0,get:function(){return k.Account2FA}}),Object.defineProperty(v,"AccountMultisig",{enumerable:!0,get:function(){return k.AccountMultisig}}),Object.defineProperty(v,"MULTISIG_STORAGE_KEY",{enumerable:!0,get:function(){return k.MULTISIG_STORAGE_KEY}}),Object.defineProperty(v,"MULTISIG_ALLOWANCE",{enumerable:!0,get:function(){return k.MULTISIG_ALLOWANCE}}),Object.defineProperty(v,"MULTISIG_GAS",{enumerable:!0,get:function(){return k.MULTISIG_GAS}}),Object.defineProperty(v,"MULTISIG_DEPOSIT",{enumerable:!0,get:function(){return k.MULTISIG_DEPOSIT}}),Object.defineProperty(v,"MULTISIG_CHANGE_METHODS",{enumerable:!0,get:function(){return k.MULTISIG_CHANGE_METHODS}}),Object.defineProperty(v,"MULTISIG_CONFIRM_METHODS",{enumerable:!0,get:function(){return k.MULTISIG_CONFIRM_METHODS}}),Object.defineProperty(v,"MultisigDeleteRequestRejectionError",{enumerable:!0,get:function(){return k.MultisigDeleteRequestRejectionError}}),Object.defineProperty(v,"MultisigStateStatus",{enumerable:!0,get:function(){return k.MultisigStateStatus}})}}),require_account_creator2=__commonJS$1({"node_modules/near-api-js/lib/account_creator.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.UrlAccountCreator=v.LocalAccountCreator=v.AccountCreator=void 0;var k=require_lib11();Object.defineProperty(v,"AccountCreator",{enumerable:!0,get:function(){return k.AccountCreator}}),Object.defineProperty(v,"LocalAccountCreator",{enumerable:!0,get:function(){return k.LocalAccountCreator}}),Object.defineProperty(v,"UrlAccountCreator",{enumerable:!0,get:function(){return k.UrlAccountCreator}})}}),require_connection2=__commonJS$1({"node_modules/near-api-js/lib/connection.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Connection=void 0;var k=require_lib11();Object.defineProperty(v,"Connection",{enumerable:!0,get:function(){return k.Connection}})}}),require_signer2=__commonJS$1({"node_modules/near-api-js/lib/signer.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signer=v.InMemorySigner=void 0;var k=require_lib9();Object.defineProperty(v,"InMemorySigner",{enumerable:!0,get:function(){return k.InMemorySigner}}),Object.defineProperty(v,"Signer",{enumerable:!0,get:function(){return k.Signer}})}}),require_contract2=__commonJS$1({"node_modules/near-api-js/lib/contract.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Contract=void 0;var k=require_lib11();Object.defineProperty(v,"Contract",{enumerable:!0,get:function(){return k.Contract}})}}),require_near$1=__commonJS$1({"node_modules/@near-js/wallet-account/lib/near.js"(v){var k=v&&v.__awaiter||function(le,ve,pe,ye){function me(Ee){return Ee instanceof pe?Ee:new pe(function(cr){cr(Ee)})}return new(pe||(pe=Promise))(function(Ee,cr){function Br(Or){try{Pr(ye.next(Or))}catch(ur){cr(ur)}}function $r(Or){try{Pr(ye.throw(Or))}catch(ur){cr(ur)}}function Pr(Or){Or.done?Ee(Or.value):me(Or.value).then(Br,$r)}Pr((ye=ye.apply(le,ve||[])).next())})},ie=v&&v.__importDefault||function(le){return le&&le.__esModule?le:{default:le}};Object.defineProperty(v,"__esModule",{value:!0}),v.Near=void 0;var ae=require_lib11(),ce=ie(require_bn$1()),fe=class{constructor(le){var ve;if(this.config=le,this.connection=ae.Connection.fromConfig({networkId:le.networkId,provider:{type:"JsonRpcProvider",args:{url:le.nodeUrl,headers:le.headers}},signer:le.signer||{type:"InMemorySigner",keyStore:le.keyStore||((ve=le.deps)===null||ve===void 0?void 0:ve.keyStore)},jsvmAccountId:le.jsvmAccountId||`jsvm.${le.networkId}`}),le.masterAccount){const pe=le.initialBalance?new ce.default(le.initialBalance):new ce.default("500000000000000000000000000");this.accountCreator=new ae.LocalAccountCreator(new ae.Account(this.connection,le.masterAccount),pe)}else le.helperUrl?this.accountCreator=new ae.UrlAccountCreator(this.connection,le.helperUrl):this.accountCreator=null}account(le){return k(this,void 0,void 0,function*(){return new ae.Account(this.connection,le)})}createAccount(le,ve){return k(this,void 0,void 0,function*(){if(!this.accountCreator)throw new Error("Must specify account creator, either via masterAccount or helperUrl configuration settings.");return yield this.accountCreator.createAccount(le,ve),new ae.Account(this.connection,le)})}};v.Near=fe}}),require_wallet_account$1=__commonJS$1({"node_modules/@near-js/wallet-account/lib/wallet_account.js"(v){var k=v&&v.__awaiter||function($r,Pr,Or,ur){function jr(Mr){return Mr instanceof Or?Mr:new Or(function(Lr){Lr(Mr)})}return new(Or||(Or=Promise))(function(Mr,Lr){function Vr(Qr){try{Ur(ur.next(Qr))}catch(vn){Lr(vn)}}function Gr(Qr){try{Ur(ur.throw(Qr))}catch(vn){Lr(vn)}}function Ur(Qr){Qr.done?Mr(Qr.value):jr(Qr.value).then(Vr,Gr)}Ur((ur=ur.apply($r,Pr||[])).next())})},ie=v&&v.__importDefault||function($r){return $r&&$r.__esModule?$r:{default:$r}};Object.defineProperty(v,"__esModule",{value:!0}),v.ConnectedWalletAccount=v.WalletConnection=void 0;var ae=require_lib11(),ce=require_lib3(),fe=require_lib7(),le=ie(require_bn$1()),ve=require_lib(),pe="/login/",ye="add_request_and_confirm",me="_wallet_auth_key",Ee="pending_key",cr=class{constructor($r,Pr){if(typeof Pr!="string")throw new Error("Please define a clear appKeyPrefix for this WalletConnection instance as the second argument to the constructor");if(typeof window>"u")return new Proxy(this,{get(jr,Mr){return Mr==="isSignedIn"?()=>!1:Mr==="getAccountId"?()=>"":jr[Mr]&&typeof jr[Mr]=="function"?()=>{throw new Error("No window found in context, please ensure you are using WalletConnection on the browser")}:jr[Mr]}});this._near=$r;const Or=Pr+me,ur=JSON.parse(window.localStorage.getItem(Or));this._networkId=$r.config.networkId,this._walletBaseUrl=$r.config.walletUrl,Pr=Pr||$r.config.contractName||"default",this._keyStore=$r.connection.signer.keyStore,this._authData=ur||{allKeys:[]},this._authDataKey=Or,this.isSignedIn()||(this._completeSignInPromise=this._completeSignInWithAccessKey())}isSignedIn(){return!!this._authData.accountId}isSignedInAsync(){return k(this,void 0,void 0,function*(){return this._completeSignInPromise?(yield this._completeSignInPromise,this.isSignedIn()):this.isSignedIn()})}getAccountId(){return this._authData.accountId||""}requestSignIn({contractId:$r,methodNames:Pr,successUrl:Or,failureUrl:ur}){return k(this,void 0,void 0,function*(){const jr=new URL(window.location.href),Mr=new URL(this._walletBaseUrl+pe);if(Mr.searchParams.set("success_url",Or||jr.href),Mr.searchParams.set("failure_url",ur||jr.href),$r){yield(yield this._near.account($r)).state(),Mr.searchParams.set("contract_id",$r);const Vr=ce.KeyPair.fromRandom("ed25519");Mr.searchParams.set("public_key",Vr.getPublicKey().toString()),yield this._keyStore.setKey(this._networkId,Ee+Vr.getPublicKey(),Vr)}Pr&&Pr.forEach(Lr=>{Mr.searchParams.append("methodNames",Lr)}),window.location.assign(Mr.toString())})}requestSignTransactions({transactions:$r,meta:Pr,callbackUrl:Or}){return k(this,void 0,void 0,function*(){const ur=new URL(window.location.href),jr=new URL("sign",this._walletBaseUrl);jr.searchParams.set("transactions",$r.map(Mr=>(0,ve.serialize)(fe.SCHEMA,Mr)).map(Mr=>Buffer.from(Mr).toString("base64")).join(",")),jr.searchParams.set("callbackUrl",Or||ur.href),Pr&&jr.searchParams.set("meta",Pr),window.location.assign(jr.toString())})}_completeSignInWithAccessKey(){return k(this,void 0,void 0,function*(){const $r=new URL(window.location.href),Pr=$r.searchParams.get("public_key")||"",Or=($r.searchParams.get("all_keys")||"").split(","),ur=$r.searchParams.get("account_id")||"";if(ur){const jr={accountId:ur,allKeys:Or};window.localStorage.setItem(this._authDataKey,JSON.stringify(jr)),Pr&&(yield this._moveKeyFromTempToPermanent(ur,Pr)),this._authData=jr}$r.searchParams.delete("public_key"),$r.searchParams.delete("all_keys"),$r.searchParams.delete("account_id"),$r.searchParams.delete("meta"),$r.searchParams.delete("transactionHashes"),window.history.replaceState({},document.title,$r.toString())})}_moveKeyFromTempToPermanent($r,Pr){return k(this,void 0,void 0,function*(){const Or=yield this._keyStore.getKey(this._networkId,Ee+Pr);yield this._keyStore.setKey(this._networkId,$r,Or),yield this._keyStore.removeKey(this._networkId,Ee+Pr)})}signOut(){this._authData={},window.localStorage.removeItem(this._authDataKey)}account(){return this._connectedAccount||(this._connectedAccount=new Br(this,this._near.connection,this._authData.accountId)),this._connectedAccount}};v.WalletConnection=cr;var Br=class extends ae.Account{constructor($r,Pr,Or){super(Pr,Or),this.walletConnection=$r}signAndSendTransaction({receiverId:$r,actions:Pr,walletMeta:Or,walletCallbackUrl:ur=window.location.href}){const jr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const Mr=yield this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);let Lr=yield this.accessKeyForTransaction($r,Pr,Mr);if(!Lr)throw new Error(`Cannot find matching key for transaction sent to ${$r}`);if(Mr&&Mr.toString()===Lr.public_key)try{return yield jr.signAndSendTransaction.call(this,{receiverId:$r,actions:Pr})}catch(Yt){if(Yt.type==="NotEnoughAllowance")Lr=yield this.accessKeyForTransaction($r,Pr);else throw Yt}const Vr=yield this.connection.provider.block({finality:"final"}),Gr=(0,ve.baseDecode)(Vr.header.hash),Ur=ce.PublicKey.from(Lr.public_key),Qr=Lr.access_key.nonce.add(new le.default(1)),vn=(0,fe.createTransaction)(this.accountId,Ur,$r,Qr,Pr,Gr);return yield this.walletConnection.requestSignTransactions({transactions:[vn],meta:Or,callbackUrl:ur}),new Promise((Yt,fn)=>{setTimeout(()=>{fn(new Error("Failed to redirect to sign transaction"))},1e3)})})}accessKeyMatchesTransaction($r,Pr,Or){return k(this,void 0,void 0,function*(){const{access_key:{permission:ur}}=$r;if(ur==="FullAccess")return!0;if(ur.FunctionCall){const{receiver_id:jr,method_names:Mr}=ur.FunctionCall;if(jr===this.accountId&&Mr.includes(ye))return!0;if(jr===Pr){if(Or.length!==1)return!1;const[{functionCall:Lr}]=Or;return Lr&&(!Lr.deposit||Lr.deposit.toString()==="0")&&(Mr.length===0||Mr.includes(Lr.methodName))}}return!1})}accessKeyForTransaction($r,Pr,Or){return k(this,void 0,void 0,function*(){const ur=yield this.getAccessKeys();if(Or){const Mr=ur.find(Lr=>Lr.public_key.toString()===Or.toString());if(Mr&&(yield this.accessKeyMatchesTransaction(Mr,$r,Pr)))return Mr}const jr=this.walletConnection._authData.allKeys;for(const Mr of ur)if(jr.indexOf(Mr.public_key)!==-1&&(yield this.accessKeyMatchesTransaction(Mr,$r,Pr)))return Mr;return null})}};v.ConnectedWalletAccount=Br}}),require_lib12=__commonJS$1({"node_modules/@near-js/wallet-account/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.WalletConnection=v.ConnectedWalletAccount=v.Near=void 0;var k=require_near$1();Object.defineProperty(v,"Near",{enumerable:!0,get:function(){return k.Near}});var ie=require_wallet_account$1();Object.defineProperty(v,"ConnectedWalletAccount",{enumerable:!0,get:function(){return ie.ConnectedWalletAccount}}),Object.defineProperty(v,"WalletConnection",{enumerable:!0,get:function(){return ie.WalletConnection}})}}),require_near2=__commonJS$1({"node_modules/near-api-js/lib/near.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Near=void 0;var k=require_lib12();Object.defineProperty(v,"Near",{enumerable:!0,get:function(){return k.Near}})}}),require_wallet_account2=__commonJS$1({"node_modules/near-api-js/lib/wallet-account.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.WalletConnection=v.ConnectedWalletAccount=void 0;var k=require_lib12();Object.defineProperty(v,"ConnectedWalletAccount",{enumerable:!0,get:function(){return k.ConnectedWalletAccount}}),Object.defineProperty(v,"WalletConnection",{enumerable:!0,get:function(){return k.WalletConnection}})}}),require_common_index$1=__commonJS$1({"node_modules/near-api-js/lib/common-index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ur,jr,Mr,Lr){Lr===void 0&&(Lr=Mr);var Vr=Object.getOwnPropertyDescriptor(jr,Mr);(!Vr||("get"in Vr?!jr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return jr[Mr]}}),Object.defineProperty(ur,Lr,Vr)}:function(ur,jr,Mr,Lr){Lr===void 0&&(Lr=Mr),ur[Lr]=jr[Mr]}),ie=v&&v.__setModuleDefault||(Object.create?function(ur,jr){Object.defineProperty(ur,"default",{enumerable:!0,value:jr})}:function(ur,jr){ur.default=jr}),ae=v&&v.__importStar||function(ur){if(ur&&ur.__esModule)return ur;var jr={};if(ur!=null)for(var Mr in ur)Mr!=="default"&&Object.prototype.hasOwnProperty.call(ur,Mr)&&k(jr,ur,Mr);return ie(jr,ur),jr};Object.defineProperty(v,"__esModule",{value:!0}),v.WalletConnection=v.ConnectedWalletAccount=v.Near=v.KeyPair=v.Signer=v.InMemorySigner=v.Contract=v.Connection=v.Account=v.multisig=v.validators=v.transactions=v.utils=v.providers=v.accountCreator=void 0;var ce=ae(require_providers$1());v.providers=ce;var fe=ae(require_utils$5());v.utils=fe;var le=ae(require_transaction$1());v.transactions=le;var ve=ae(require_validators2());v.validators=ve;var pe=require_account2();Object.defineProperty(v,"Account",{enumerable:!0,get:function(){return pe.Account}});var ye=ae(require_account_multisig2());v.multisig=ye;var me=ae(require_account_creator2());v.accountCreator=me;var Ee=require_connection2();Object.defineProperty(v,"Connection",{enumerable:!0,get:function(){return Ee.Connection}});var cr=require_signer2();Object.defineProperty(v,"Signer",{enumerable:!0,get:function(){return cr.Signer}}),Object.defineProperty(v,"InMemorySigner",{enumerable:!0,get:function(){return cr.InMemorySigner}});var Br=require_contract2();Object.defineProperty(v,"Contract",{enumerable:!0,get:function(){return Br.Contract}});var $r=require_key_pair2();Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return $r.KeyPair}});var Pr=require_near2();Object.defineProperty(v,"Near",{enumerable:!0,get:function(){return Pr.Near}});var Or=require_wallet_account2();Object.defineProperty(v,"ConnectedWalletAccount",{enumerable:!0,get:function(){return Or.ConnectedWalletAccount}}),Object.defineProperty(v,"WalletConnection",{enumerable:!0,get:function(){return Or.WalletConnection}})}}),require_browser_connect$1=__commonJS$1({"node_modules/near-api-js/lib/browser-connect.js"(v){var k=v&&v.__awaiter||function(ce,fe,le,ve){function pe(ye){return ye instanceof le?ye:new le(function(me){me(ye)})}return new(le||(le=Promise))(function(ye,me){function Ee($r){try{Br(ve.next($r))}catch(Pr){me(Pr)}}function cr($r){try{Br(ve.throw($r))}catch(Pr){me(Pr)}}function Br($r){$r.done?ye($r.value):pe($r.value).then(Ee,cr)}Br((ve=ve.apply(ce,fe||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.connect=void 0;var ie=require_near2();function ae(ce){return k(this,void 0,void 0,function*(){return new ie.Near(ce)})}v.connect=ae}}),require_CapabilityDetector=__commonJS$1({"node_modules/capability/lib/CapabilityDetector.js"(v,k){var ie=function(){this.tests={},this.cache={}};ie.prototype={constructor:ie,define:function(ae,ce){if(typeof ae!="string"||!(ce instanceof Function))throw new Error("Invalid capability definition.");if(this.tests[ae])throw new Error('Duplicated capability definition by "'+ae+'".');this.tests[ae]=ce},check:function(ae){if(!this.test(ae))throw new Error('The current environment does not support "'+ae+'", therefore we cannot continue.')},test:function(ae){if(this.cache[ae]!==void 0)return this.cache[ae];if(!this.tests[ae])throw new Error('Unknown capability with name "'+ae+'".');var ce=this.tests[ae];return this.cache[ae]=!!ce(),this.cache[ae]}},k.exports=ie}}),require_lib13=__commonJS$1({"node_modules/capability/lib/index.js"(v,k){var ie=require_CapabilityDetector(),ae=new ie,ce=function(fe){return ae.test(fe)};ce.define=function(fe,le){ae.define(fe,le)},ce.check=function(fe){ae.check(fe)},ce.test=ce,k.exports=ce}}),require_definitions=__commonJS$1({"node_modules/capability/lib/definitions.js"(){var v=require_lib13(),k=v.define,ie=v.test;k("strict mode",function(){return this===void 0}),k("arguments.callee.caller",function(){try{return function(){return arguments.callee.caller}()===arguments.callee}catch{return!1}}),k("es5",function(){return ie("Array.prototype.forEach")&&ie("Array.prototype.map")&&ie("Function.prototype.bind")&&ie("Object.create")&&ie("Object.defineProperties")&&ie("Object.defineProperty")&&ie("Object.prototype.hasOwnProperty")}),k("Array.prototype.forEach",function(){return Array.prototype.forEach}),k("Array.prototype.map",function(){return Array.prototype.map}),k("Function.prototype.bind",function(){return Function.prototype.bind}),k("Object.create",function(){return Object.create}),k("Object.defineProperties",function(){return Object.defineProperties}),k("Object.defineProperty",function(){return Object.defineProperty}),k("Object.prototype.hasOwnProperty",function(){return Object.prototype.hasOwnProperty}),k("Error.captureStackTrace",function(){return Error.captureStackTrace}),k("Error.prototype.stack",function(){try{throw new Error}catch(ae){return ae.stack||ae.stacktrace}})}}),require_capability=__commonJS$1({"node_modules/capability/index.js"(v,k){require_definitions(),k.exports=require_lib13()}}),require_es5=__commonJS$1({"node_modules/capability/es5.js"(){require_capability().check("es5")}}),require_prepareStackTrace=__commonJS$1({"node_modules/error-polyfill/lib/prepareStackTrace.js"(v,k){var ie=function(ae,ce,fe){var le="";if(le+=ae.name||"Error",le+=": "+(ae.message||""),fe instanceof Array)for(var ve in fe){var pe=fe[ve];le+=` + deps: ${me}}`};var ce={keyword:"dependencies",type:"object",schemaType:"object",error:v.error,code(pe){const[ye,me]=fe(pe);le(pe,ye),ve(pe,me)}};function fe({schema:pe}){const ye={},me={};for(const Ee in pe){if(Ee==="__proto__")continue;const cr=Array.isArray(pe[Ee])?ye:me;cr[Ee]=pe[Ee]}return[ye,me]}function le(pe,ye=pe.schema){const{gen:me,data:Ee,it:cr}=pe;if(Object.keys(ye).length===0)return;const Br=me.let("missing");for(const $r in ye){const Pr=ye[$r];if(Pr.length===0)continue;const Ar=(0,ae.propertyInData)(me,Ee,$r,cr.opts.ownProperties);pe.setParams({property:$r,depsCount:Pr.length,deps:Pr.join(", ")}),cr.allErrors?me.if(Ar,()=>{for(const ur of Pr)(0,ae.checkReportMissingProp)(pe,ur)}):(me.if((0,k._)`${Ar} && (${(0,ae.checkMissingProp)(pe,Pr,Br)})`),(0,ae.reportMissingProp)(pe,Br),me.else())}}v.validatePropertyDeps=le;function ve(pe,ye=pe.schema){const{gen:me,data:Ee,keyword:cr,it:Br}=pe,$r=me.name("valid");for(const Pr in ye)(0,ie.alwaysValidSchema)(Br,ye[Pr])||(me.if((0,ae.propertyInData)(me,Ee,Pr,Br.opts.ownProperties),()=>{const Ar=pe.subschema({keyword:cr,schemaProp:Pr},$r);pe.mergeValidEvaluated(Ar,$r)},()=>me.var($r,!0)),pe.ok($r))}v.validateSchemaDeps=ve,v.default=ce}}),require_propertyNames=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_util$1(),ae={message:"property name must be valid",params:({params:fe})=>(0,k._)`{propertyName: ${fe.propertyName}}`},ce={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:ae,code(fe){const{gen:le,schema:ve,data:pe,it:ye}=fe;if((0,ie.alwaysValidSchema)(ye,ve))return;const me=le.name("valid");le.forIn("key",pe,Ee=>{fe.setParams({propertyName:Ee}),fe.subschema({keyword:"propertyNames",data:Ee,dataTypes:["string"],propertyName:Ee,compositeRule:!0},me),le.if((0,k.not)(me),()=>{fe.error(!0),ye.allErrors||le.break()})}),fe.ok(me)}};v.default=ce}}),require_additionalProperties=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2(),ie=require_codegen(),ae=require_names(),ce=require_util$1(),fe={message:"must NOT have additional properties",params:({params:ve})=>(0,ie._)`{additionalProperty: ${ve.additionalProperty}}`},le={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:fe,code(ve){const{gen:pe,schema:ye,parentSchema:me,data:Ee,errsCount:cr,it:Br}=ve;if(!cr)throw new Error("ajv implementation error");const{allErrors:$r,opts:Pr}=Br;if(Br.props=!0,Pr.removeAdditional!=="all"&&(0,ce.alwaysValidSchema)(Br,ye))return;const Ar=(0,k.allSchemaProperties)(me.properties),ur=(0,k.allSchemaProperties)(me.patternProperties);jr(),ve.ok((0,ie._)`${cr} === ${ae.default.errors}`);function jr(){pe.forIn("key",Ee,Ur=>{!Ar.length&&!ur.length?Vr(Ur):pe.if(Mr(Ur),()=>Vr(Ur))})}function Mr(Ur){let Qr;if(Ar.length>8){const hn=(0,ce.schemaRefOrVal)(Br,me.properties,"properties");Qr=(0,k.isOwnProperty)(pe,hn,Ur)}else Ar.length?Qr=(0,ie.or)(...Ar.map(hn=>(0,ie._)`${Ur} === ${hn}`)):Qr=ie.nil;return ur.length&&(Qr=(0,ie.or)(Qr,...ur.map(hn=>(0,ie._)`${(0,k.usePattern)(ve,hn)}.test(${Ur})`))),(0,ie.not)(Qr)}function Lr(Ur){pe.code((0,ie._)`delete ${Ee}[${Ur}]`)}function Vr(Ur){if(Pr.removeAdditional==="all"||Pr.removeAdditional&&ye===!1){Lr(Ur);return}if(ye===!1){ve.setParams({additionalProperty:Ur}),ve.error(),$r||pe.break();return}if(typeof ye=="object"&&!(0,ce.alwaysValidSchema)(Br,ye)){const Qr=pe.name("valid");Pr.removeAdditional==="failing"?(Gr(Ur,Qr,!1),pe.if((0,ie.not)(Qr),()=>{ve.reset(),Lr(Ur)})):(Gr(Ur,Qr),$r||pe.if((0,ie.not)(Qr),()=>pe.break()))}}function Gr(Ur,Qr,hn){const Yt={keyword:"additionalProperties",dataProp:Ur,dataPropType:ce.Type.Str};hn===!1&&Object.assign(Yt,{compositeRule:!0,createErrors:!1,allErrors:!1}),ve.subschema(Yt,Qr)}}};v.default=le}}),require_properties=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/properties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_validate(),ie=require_code2(),ae=require_util$1(),ce=require_additionalProperties(),fe={keyword:"properties",type:"object",schemaType:"object",code(le){const{gen:ve,schema:pe,parentSchema:ye,data:me,it:Ee}=le;Ee.opts.removeAdditional==="all"&&ye.additionalProperties===void 0&&ce.default.code(new k.KeywordCxt(Ee,ce.default,"additionalProperties"));const cr=(0,ie.allSchemaProperties)(pe);for(const ur of cr)Ee.definedProperties.add(ur);Ee.opts.unevaluated&&cr.length&&Ee.props!==!0&&(Ee.props=ae.mergeEvaluated.props(ve,(0,ae.toHash)(cr),Ee.props));const Br=cr.filter(ur=>!(0,ae.alwaysValidSchema)(Ee,pe[ur]));if(Br.length===0)return;const $r=ve.name("valid");for(const ur of Br)Pr(ur)?Ar(ur):(ve.if((0,ie.propertyInData)(ve,me,ur,Ee.opts.ownProperties)),Ar(ur),Ee.allErrors||ve.else().var($r,!0),ve.endIf()),le.it.definedProperties.add(ur),le.ok($r);function Pr(ur){return Ee.opts.useDefaults&&!Ee.compositeRule&&pe[ur].default!==void 0}function Ar(ur){le.subschema({keyword:"properties",schemaProp:ur,dataProp:ur},$r)}}};v.default=fe}}),require_patternProperties=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2(),ie=require_codegen(),ae=require_util$1(),ce=require_util$1(),fe={keyword:"patternProperties",type:"object",schemaType:"object",code(le){const{gen:ve,schema:pe,data:ye,parentSchema:me,it:Ee}=le,{opts:cr}=Ee,Br=(0,k.allSchemaProperties)(pe),$r=Br.filter(Vr=>(0,ae.alwaysValidSchema)(Ee,pe[Vr]));if(Br.length===0||$r.length===Br.length&&(!Ee.opts.unevaluated||Ee.props===!0))return;const Pr=cr.strictSchema&&!cr.allowMatchingProperties&&me.properties,Ar=ve.name("valid");Ee.props!==!0&&!(Ee.props instanceof ie.Name)&&(Ee.props=(0,ce.evaluatedPropsToName)(ve,Ee.props));const{props:ur}=Ee;jr();function jr(){for(const Vr of Br)Pr&&Mr(Vr),Ee.allErrors?Lr(Vr):(ve.var(Ar,!0),Lr(Vr),ve.if(Ar))}function Mr(Vr){for(const Gr in Pr)new RegExp(Vr).test(Gr)&&(0,ae.checkStrictMode)(Ee,`property ${Gr} matches pattern ${Vr} (use allowMatchingProperties)`)}function Lr(Vr){ve.forIn("key",ye,Gr=>{ve.if((0,ie._)`${(0,k.usePattern)(le,Vr)}.test(${Gr})`,()=>{const Ur=$r.includes(Vr);Ur||le.subschema({keyword:"patternProperties",schemaProp:Vr,dataProp:Gr,dataPropType:ce.Type.Str},Ar),Ee.opts.unevaluated&&ur!==!0?ve.assign((0,ie._)`${ur}[${Gr}]`,!0):!Ur&&!Ee.allErrors&&ve.if((0,ie.not)(Ar),()=>ve.break())})})}}};v.default=fe}}),require_not=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/not.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_util$1(),ie={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(ae){const{gen:ce,schema:fe,it:le}=ae;if((0,k.alwaysValidSchema)(le,fe)){ae.fail();return}const ve=ce.name("valid");ae.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},ve),ae.failResult(ve,()=>ae.reset(),()=>ae.error())},error:{message:"must NOT be valid"}};v.default=ie}}),require_anyOf=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_code2(),ie={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:k.validateUnion,error:{message:"must match a schema in anyOf"}};v.default=ie}}),require_oneOf=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_util$1(),ae={message:"must match exactly one schema in oneOf",params:({params:fe})=>(0,k._)`{passingSchemas: ${fe.passing}}`},ce={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:ae,code(fe){const{gen:le,schema:ve,parentSchema:pe,it:ye}=fe;if(!Array.isArray(ve))throw new Error("ajv implementation error");if(ye.opts.discriminator&&pe.discriminator)return;const me=ve,Ee=le.let("valid",!1),cr=le.let("passing",null),Br=le.name("_valid");fe.setParams({passing:cr}),le.block($r),fe.result(Ee,()=>fe.reset(),()=>fe.error(!0));function $r(){me.forEach((Pr,Ar)=>{let ur;(0,ie.alwaysValidSchema)(ye,Pr)?le.var(Br,!0):ur=fe.subschema({keyword:"oneOf",schemaProp:Ar,compositeRule:!0},Br),Ar>0&&le.if((0,k._)`${Br} && ${Ee}`).assign(Ee,!1).assign(cr,(0,k._)`[${cr}, ${Ar}]`).else(),le.if(Br,()=>{le.assign(Ee,!0),le.assign(cr,Ar),ur&&fe.mergeEvaluated(ur,k.Name)})})}}};v.default=ce}}),require_allOf=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/allOf.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_util$1(),ie={keyword:"allOf",schemaType:"array",code(ae){const{gen:ce,schema:fe,it:le}=ae;if(!Array.isArray(fe))throw new Error("ajv implementation error");const ve=ce.name("valid");fe.forEach((pe,ye)=>{if((0,k.alwaysValidSchema)(le,pe))return;const me=ae.subschema({keyword:"allOf",schemaProp:ye},ve);ae.ok(ve),ae.mergeEvaluated(me)})}};v.default=ie}}),require_if=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/if.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_util$1(),ae={message:({params:le})=>(0,k.str)`must match "${le.ifClause}" schema`,params:({params:le})=>(0,k._)`{failingKeyword: ${le.ifClause}}`},ce={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:ae,code(le){const{gen:ve,parentSchema:pe,it:ye}=le;pe.then===void 0&&pe.else===void 0&&(0,ie.checkStrictMode)(ye,'"if" without "then" and "else" is ignored');const me=fe(ye,"then"),Ee=fe(ye,"else");if(!me&&!Ee)return;const cr=ve.let("valid",!0),Br=ve.name("_valid");if($r(),le.reset(),me&&Ee){const Ar=ve.let("ifClause");le.setParams({ifClause:Ar}),ve.if(Br,Pr("then",Ar),Pr("else",Ar))}else me?ve.if(Br,Pr("then")):ve.if((0,k.not)(Br),Pr("else"));le.pass(cr,()=>le.error(!0));function $r(){const Ar=le.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},Br);le.mergeEvaluated(Ar)}function Pr(Ar,ur){return()=>{const jr=le.subschema({keyword:Ar},Br);ve.assign(cr,Br),le.mergeValidEvaluated(jr,cr),ur?ve.assign(ur,(0,k._)`${Ar}`):le.setParams({ifClause:Ar})}}}};function fe(le,ve){const pe=le.schema[ve];return pe!==void 0&&!(0,ie.alwaysValidSchema)(le,pe)}v.default=ce}}),require_thenElse=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_util$1(),ie={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:ae,parentSchema:ce,it:fe}){ce.if===void 0&&(0,k.checkStrictMode)(fe,`"${ae}" without "if" is ignored`)}};v.default=ie}}),require_applicator=__commonJS$1({"node_modules/ajv/dist/vocabularies/applicator/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_additionalItems(),ie=require_prefixItems(),ae=require_items(),ce=require_items2020(),fe=require_contains(),le=require_dependencies(),ve=require_propertyNames(),pe=require_additionalProperties(),ye=require_properties(),me=require_patternProperties(),Ee=require_not(),cr=require_anyOf(),Br=require_oneOf(),$r=require_allOf(),Pr=require_if(),Ar=require_thenElse();function ur(jr=!1){const Mr=[Ee.default,cr.default,Br.default,$r.default,Pr.default,Ar.default,ve.default,pe.default,le.default,ye.default,me.default];return jr?Mr.push(ie.default,ce.default):Mr.push(k.default,ae.default),Mr.push(fe.default),Mr}v.default=ur}}),require_format3=__commonJS$1({"node_modules/ajv/dist/vocabularies/format/format.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie={message:({schemaCode:ce})=>(0,k.str)`must match format "${ce}"`,params:({schemaCode:ce})=>(0,k._)`{format: ${ce}}`},ae={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:ie,code(ce,fe){const{gen:le,data:ve,$data:pe,schema:ye,schemaCode:me,it:Ee}=ce,{opts:cr,errSchemaPath:Br,schemaEnv:$r,self:Pr}=Ee;if(!cr.validateFormats)return;pe?Ar():ur();function Ar(){const jr=le.scopeValue("formats",{ref:Pr.formats,code:cr.code.formats}),Mr=le.const("fDef",(0,k._)`${jr}[${me}]`),Lr=le.let("fType"),Vr=le.let("format");le.if((0,k._)`typeof ${Mr} == "object" && !(${Mr} instanceof RegExp)`,()=>le.assign(Lr,(0,k._)`${Mr}.type || "string"`).assign(Vr,(0,k._)`${Mr}.validate`),()=>le.assign(Lr,(0,k._)`"string"`).assign(Vr,Mr)),ce.fail$data((0,k.or)(Gr(),Ur()));function Gr(){return cr.strictSchema===!1?k.nil:(0,k._)`${me} && !${Vr}`}function Ur(){const Qr=$r.$async?(0,k._)`(${Mr}.async ? await ${Vr}(${ve}) : ${Vr}(${ve}))`:(0,k._)`${Vr}(${ve})`,hn=(0,k._)`(typeof ${Vr} == "function" ? ${Qr} : ${Vr}.test(${ve}))`;return(0,k._)`${Vr} && ${Vr} !== true && ${Lr} === ${fe} && !${hn}`}}function ur(){const jr=Pr.formats[ye];if(!jr){Gr();return}if(jr===!0)return;const[Mr,Lr,Vr]=Ur(jr);Mr===fe&&ce.pass(Qr());function Gr(){if(cr.strictSchema===!1){Pr.logger.warn(hn());return}throw new Error(hn());function hn(){return`unknown format "${ye}" ignored in schema at path "${Br}"`}}function Ur(hn){const Yt=hn instanceof RegExp?(0,k.regexpCode)(hn):cr.code.formats?(0,k._)`${cr.code.formats}${(0,k.getProperty)(ye)}`:void 0,fn=le.scopeValue("formats",{key:ye,ref:hn,code:Yt});return typeof hn=="object"&&!(hn instanceof RegExp)?[hn.type||"string",hn.validate,(0,k._)`${fn}.validate`]:["string",hn,fn]}function Qr(){if(typeof jr=="object"&&!(jr instanceof RegExp)&&jr.async){if(!$r.$async)throw new Error("async format in sync schema");return(0,k._)`await ${Vr}(${ve})`}return typeof Lr=="function"?(0,k._)`${Vr}(${ve})`:(0,k._)`${Vr}.test(${ve})`}}}};v.default=ae}}),require_format4=__commonJS$1({"node_modules/ajv/dist/vocabularies/format/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_format3(),ie=[k.default];v.default=ie}}),require_metadata=__commonJS$1({"node_modules/ajv/dist/vocabularies/metadata.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.contentVocabulary=v.metadataVocabulary=void 0,v.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],v.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]}}),require_draft7=__commonJS$1({"node_modules/ajv/dist/vocabularies/draft7.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_core2(),ie=require_validation(),ae=require_applicator(),ce=require_format4(),fe=require_metadata(),le=[k.default,ie.default,(0,ae.default)(),ce.default,fe.metadataVocabulary,fe.contentVocabulary];v.default=le}}),require_types2$2=__commonJS$1({"node_modules/ajv/dist/vocabularies/discriminator/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.DiscrError=void 0,function(k){k.Tag="tag",k.Mapping="mapping"}(v.DiscrError||(v.DiscrError={}))}}),require_discriminator=__commonJS$1({"node_modules/ajv/dist/vocabularies/discriminator/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_codegen(),ie=require_types2$2(),ae=require_compile(),ce=require_util$1(),fe={message:({params:{discrError:ve,tagName:pe}})=>ve===ie.DiscrError.Tag?`tag "${pe}" must be string`:`value of tag "${pe}" must be in oneOf`,params:({params:{discrError:ve,tag:pe,tagName:ye}})=>(0,k._)`{error: ${ve}, tag: ${ye}, tagValue: ${pe}}`},le={keyword:"discriminator",type:"object",schemaType:"object",error:fe,code(ve){const{gen:pe,data:ye,schema:me,parentSchema:Ee,it:cr}=ve,{oneOf:Br}=Ee;if(!cr.opts.discriminator)throw new Error("discriminator: requires discriminator option");const $r=me.propertyName;if(typeof $r!="string")throw new Error("discriminator: requires propertyName");if(me.mapping)throw new Error("discriminator: mapping is not supported");if(!Br)throw new Error("discriminator: requires oneOf keyword");const Pr=pe.let("valid",!1),Ar=pe.const("tag",(0,k._)`${ye}${(0,k.getProperty)($r)}`);pe.if((0,k._)`typeof ${Ar} == "string"`,()=>ur(),()=>ve.error(!1,{discrError:ie.DiscrError.Tag,tag:Ar,tagName:$r})),ve.ok(Pr);function ur(){const Lr=Mr();pe.if(!1);for(const Vr in Lr)pe.elseIf((0,k._)`${Ar} === ${Vr}`),pe.assign(Pr,jr(Lr[Vr]));pe.else(),ve.error(!1,{discrError:ie.DiscrError.Mapping,tag:Ar,tagName:$r}),pe.endIf()}function jr(Lr){const Vr=pe.name("valid"),Gr=ve.subschema({keyword:"oneOf",schemaProp:Lr},Vr);return ve.mergeEvaluated(Gr,k.Name),Vr}function Mr(){var Lr;const Vr={},Gr=Qr(Ee);let Ur=!0;for(let fn=0;fnthis.addVocabulary(Br)),this.opts.discriminator&&this.addKeyword(ce.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const Br=this.opts.$data?this.$dataMetaSchema(fe,le):fe;this.addMetaSchema(Br,ve,!1),this.refs["http://json-schema.org/schema"]=ve}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ve)?ve:void 0)}};k.exports=v=pe,Object.defineProperty(v,"__esModule",{value:!0}),v.default=pe;var ye=require_validate();Object.defineProperty(v,"KeywordCxt",{enumerable:!0,get:function(){return ye.KeywordCxt}});var me=require_codegen();Object.defineProperty(v,"_",{enumerable:!0,get:function(){return me._}}),Object.defineProperty(v,"str",{enumerable:!0,get:function(){return me.str}}),Object.defineProperty(v,"stringify",{enumerable:!0,get:function(){return me.stringify}}),Object.defineProperty(v,"nil",{enumerable:!0,get:function(){return me.nil}}),Object.defineProperty(v,"Name",{enumerable:!0,get:function(){return me.Name}}),Object.defineProperty(v,"CodeGen",{enumerable:!0,get:function(){return me.CodeGen}});var Ee=require_validation_error();Object.defineProperty(v,"ValidationError",{enumerable:!0,get:function(){return Ee.default}});var cr=require_ref_error();Object.defineProperty(v,"MissingRefError",{enumerable:!0,get:function(){return cr.default}})}}),require_formats=__commonJS$1({"node_modules/ajv-formats/dist/formats.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.formatNames=v.fastFormats=v.fullFormats=void 0;function k(hn,Yt){return{validate:hn,compare:Yt}}v.fullFormats={date:k(fe,le),time:k(pe,ye),"date-time":k(Ee,cr),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:Pr,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[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}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Qr,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:ur,int32:{type:"number",validate:Lr},int64:{type:"number",validate:Vr},float:{type:"number",validate:Gr},double:{type:"number",validate:Gr},password:!0,binary:!0},v.fastFormats={...v.fullFormats,date:k(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,le),time:k(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,ye),"date-time":k(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,cr),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},v.formatNames=Object.keys(v.fullFormats);function ie(hn){return hn%4===0&&(hn%100!==0||hn%400===0)}var ae=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ce=[0,31,28,31,30,31,30,31,31,30,31,30,31];function fe(hn){const Yt=ae.exec(hn);if(!Yt)return!1;const fn=+Yt[1],Qt=+Yt[2],Xt=+Yt[3];return Qt>=1&&Qt<=12&&Xt>=1&&Xt<=(Qt===2&&ie(fn)?29:ce[Qt])}function le(hn,Yt){if(!!(hn&&Yt))return hn>Yt?1:hnYt?1:hn=jr}function Vr(hn){return Number.isInteger(hn)}function Gr(){return!0}var Ur=/[^\\]\\Z/;function Qr(hn){if(Ur.test(hn))return!1;try{return new RegExp(hn),!0}catch{return!1}}}}),require_limit=__commonJS$1({"node_modules/ajv-formats/dist/limit.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.formatLimitDefinition=void 0;var k=require_ajv(),ie=require_codegen(),ae=ie.operators,ce={formatMaximum:{okStr:"<=",ok:ae.LTE,fail:ae.GT},formatMinimum:{okStr:">=",ok:ae.GTE,fail:ae.LT},formatExclusiveMaximum:{okStr:"<",ok:ae.LT,fail:ae.GTE},formatExclusiveMinimum:{okStr:">",ok:ae.GT,fail:ae.LTE}},fe={message:({keyword:ve,schemaCode:pe})=>ie.str`should be ${ce[ve].okStr} ${pe}`,params:({keyword:ve,schemaCode:pe})=>ie._`{comparison: ${ce[ve].okStr}, limit: ${pe}}`};v.formatLimitDefinition={keyword:Object.keys(ce),type:"string",schemaType:"string",$data:!0,error:fe,code(ve){const{gen:pe,data:ye,schemaCode:me,keyword:Ee,it:cr}=ve,{opts:Br,self:$r}=cr;if(!Br.validateFormats)return;const Pr=new k.KeywordCxt(cr,$r.RULES.all.format.definition,"format");Pr.$data?Ar():ur();function Ar(){const Mr=pe.scopeValue("formats",{ref:$r.formats,code:Br.code.formats}),Lr=pe.const("fmt",ie._`${Mr}[${Pr.schemaCode}]`);ve.fail$data(ie.or(ie._`typeof ${Lr} != "object"`,ie._`${Lr} instanceof RegExp`,ie._`typeof ${Lr}.compare != "function"`,jr(Lr)))}function ur(){const Mr=Pr.schema,Lr=$r.formats[Mr];if(!Lr||Lr===!0)return;if(typeof Lr!="object"||Lr instanceof RegExp||typeof Lr.compare!="function")throw new Error(`"${Ee}": format "${Mr}" does not define "compare" function`);const Vr=pe.scopeValue("formats",{key:Mr,ref:Lr,code:Br.code.formats?ie._`${Br.code.formats}${ie.getProperty(Mr)}`:void 0});ve.fail$data(jr(Vr))}function jr(Mr){return ie._`${Mr}.compare(${ye}, ${me}) ${ce[Ee].fail} 0`}},dependencies:["format"]};var le=ve=>(ve.addKeyword(v.formatLimitDefinition),ve);v.default=le}}),require_dist$1=__commonJS$1({"node_modules/ajv-formats/dist/index.js"(v,k){Object.defineProperty(v,"__esModule",{value:!0});var ie=require_formats(),ae=require_limit(),ce=require_codegen(),fe=new ce.Name("fullFormats"),le=new ce.Name("fastFormats"),ve=(ye,me={keywords:!0})=>{if(Array.isArray(me))return pe(ye,me,ie.fullFormats,fe),ye;const[Ee,cr]=me.mode==="fast"?[ie.fastFormats,le]:[ie.fullFormats,fe],Br=me.formats||ie.formatNames;return pe(ye,Br,Ee,cr),me.keywords&&ae.default(ye),ye};ve.get=(ye,me="full")=>{const cr=(me==="fast"?ie.fastFormats:ie.fullFormats)[ye];if(!cr)throw new Error(`Unknown format "${ye}"`);return cr};function pe(ye,me,Ee,cr){var Br,$r;(Br=($r=ye.opts.code).formats)!==null&&Br!==void 0||($r.formats=ce._`require("ajv-formats/dist/formats").${cr}`);for(const Pr of me)ye.addFormat(Pr,Ee[Pr])}k.exports=v=ve,Object.defineProperty(v,"__esModule",{value:!0}),v.default=ve}}),require_lib10=__commonJS$1({"node_modules/near-abi/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.AbiSerializationType=v.AbiFunctionModifier=v.AbiFunctionKind=v.SCHEMA_VERSION=void 0,v.SCHEMA_VERSION="0.3.0",function(k){k.View="view",k.Call="call"}(v.AbiFunctionKind||(v.AbiFunctionKind={})),function(k){k.Init="init",k.Private="private",k.Payable="payable"}(v.AbiFunctionModifier||(v.AbiFunctionModifier={})),function(k){k.Json="json",k.Borsh="borsh"}(v.AbiSerializationType||(v.AbiSerializationType={}))}}),require_errors5=__commonJS$1({"node_modules/@near-js/accounts/lib/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ConflictingOptions=v.ArgumentSchemaError=v.UnknownArgumentError=v.UnsupportedSerializationError=void 0;var k=class extends Error{constructor(fe,le){super(`Contract method '${fe}' is using an unsupported serialization type ${le}`)}};v.UnsupportedSerializationError=k;var ie=class extends Error{constructor(fe,le){super(`Unrecognized argument '${fe}', expected '${JSON.stringify(le)}'`)}};v.UnknownArgumentError=ie;var ae=class extends Error{constructor(fe,le){super(`Argument '${fe}' does not conform to the specified ABI schema: '${JSON.stringify(le)}'`)}};v.ArgumentSchemaError=ae;var ce=class extends Error{constructor(){super("Conflicting contract method options have been passed. You can either specify ABI or a list of view/call methods.")}};v.ConflictingOptions=ce}}),require_contract$1=__commonJS$1({"node_modules/@near-js/accounts/lib/contract.js"(v){var k=v&&v.__awaiter||function(jr,Mr,Lr,Vr){function Gr(Ur){return Ur instanceof Lr?Ur:new Lr(function(Qr){Qr(Ur)})}return new(Lr||(Lr=Promise))(function(Ur,Qr){function hn(Qt){try{fn(Vr.next(Qt))}catch(Xt){Qr(Xt)}}function Yt(Qt){try{fn(Vr.throw(Qt))}catch(Xt){Qr(Xt)}}function fn(Qt){Qt.done?Ur(Qt.value):Gr(Qt.value).then(hn,Yt)}fn((Vr=Vr.apply(jr,Mr||[])).next())})},ie=v&&v.__importDefault||function(jr){return jr&&jr.__esModule?jr:{default:jr}};Object.defineProperty(v,"__esModule",{value:!0}),v.Contract=void 0;var ae=require_lib6(),ce=require_lib2(),fe=ie(require_ajv()),le=ie(require_dist$1()),ve=ie(require_bn$1()),pe=ie(require_browser$3()),ye=require_lib10(),me=require_errors5();function Ee(jr,Mr){return{[jr](...Lr){return Mr(...Lr)}}[jr]}function cr(jr,Mr,Lr,Vr){var Gr;if(!Pr(jr))return;if(Mr.params&&Mr.params.serialization_type!==ye.AbiSerializationType.Json)throw new me.UnsupportedSerializationError(Mr.name,Mr.params.serialization_type);if(Mr.result&&Mr.result.serialization_type!==ye.AbiSerializationType.Json)throw new me.UnsupportedSerializationError(Mr.name,Mr.result.serialization_type);const Ur=((Gr=Mr.params)===null||Gr===void 0?void 0:Gr.args)||[];for(const Qr of Ur){const hn=jr[Qr.name],Yt=Qr.type_schema;Yt.definitions=Vr.body.root_schema.definitions;const fn=Lr.compile(Yt);if(!fn(hn))throw new me.ArgumentSchemaError(Qr.name,fn.errors)}for(const Qr of Object.keys(jr))if(!Ur.find(Yt=>Yt.name===Qr))throw new me.UnknownArgumentError(Qr,Ur.map(Yt=>Yt.name))}function Br(){const jr=new fe.default({strictSchema:!1,formats:{uint32:!0,uint64:!0}});return(0,le.default)(jr),jr}var $r=jr=>jr&&jr.byteLength!==void 0&&jr.byteLength===jr.length,Pr=jr=>Object.prototype.toString.call(jr)==="[object Object]",Ar=class{constructor(jr,Mr,Lr){this.account=jr,this.contractId=Mr;const{viewMethods:Vr=[],changeMethods:Gr=[],abi:Ur}=Lr;let Qr=Vr.map(fn=>({name:fn,abi:null})),hn=Gr.map(fn=>({name:fn,abi:null}));if(Ur){if(Qr.length>0||hn.length>0)throw new me.ConflictingOptions;Qr=Ur.body.functions.filter(fn=>fn.kind===ye.AbiFunctionKind.View).map(fn=>({name:fn.name,abi:fn})),hn=Ur.body.functions.filter(fn=>fn.kind===ye.AbiFunctionKind.Call).map(fn=>({name:fn.name,abi:fn}))}const Yt=Br();Qr.forEach(({name:fn,abi:Qt})=>{Object.defineProperty(this,fn,{writable:!1,enumerable:!0,value:Ee(fn,(Xt={},Kr={},...be)=>k(this,void 0,void 0,function*(){if(be.length||!(Pr(Xt)||$r(Xt))||!Pr(Kr))throw new ce.PositionalArgsError;return Qt&&cr(Xt,Qt,Yt,Ur),this.account.viewFunction(Object.assign({contractId:this.contractId,methodName:fn,args:Xt},Kr))}))})}),hn.forEach(({name:fn,abi:Qt})=>{Object.defineProperty(this,fn,{writable:!1,enumerable:!0,value:Ee(fn,(...Xt)=>k(this,void 0,void 0,function*(){if(Xt.length&&(Xt.length>3||!(Pr(Xt[0])||$r(Xt[0]))))throw new ce.PositionalArgsError;return(Xt.length>1||!(Xt[0]&&Xt[0].args))&&((0,pe.default)("contract.methodName(args, gas, amount)")("use `contract.methodName({ args, gas?, amount?, callbackUrl?, meta? })` instead"),Xt[0]={args:Xt[0],gas:Xt[1],amount:Xt[2]}),Qt&&cr(Xt[0].args,Qt,Yt,Ur),this._changeMethod(Object.assign({methodName:fn},Xt[0]))}))})})}_changeMethod({args:jr,methodName:Mr,gas:Lr,amount:Vr,meta:Gr,callbackUrl:Ur}){return k(this,void 0,void 0,function*(){ur({gas:Lr,amount:Vr});const Qr=yield this.account.functionCall({contractId:this.contractId,methodName:Mr,args:jr,gas:Lr,attachedDeposit:Vr,walletMeta:Gr,walletCallbackUrl:Ur});return(0,ae.getTransactionLastResult)(Qr)})}};v.Contract=Ar;function ur(jr){const Mr="number, decimal string or BN";for(const Lr of Object.keys(jr)){const Vr=jr[Lr];if(Vr&&!ve.default.isBN(Vr)&&isNaN(Vr))throw new ce.ArgumentTypeError(Lr,Mr,Vr)}}}}),require_lib11=__commonJS$1({"node_modules/@near-js/accounts/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MultisigStateStatus=v.MultisigDeleteRequestRejectionError=v.UnsupportedSerializationError=v.UnknownArgumentError=v.ConflictingOptions=v.ArgumentSchemaError=v.Contract=v.MULTISIG_CONFIRM_METHODS=v.MULTISIG_CHANGE_METHODS=v.MULTISIG_DEPOSIT=v.MULTISIG_GAS=v.MULTISIG_ALLOWANCE=v.MULTISIG_STORAGE_KEY=v.Connection=v.AccountMultisig=v.UrlAccountCreator=v.LocalAccountCreator=v.AccountCreator=v.Account2FA=v.Account=void 0;var k=require_account$2();Object.defineProperty(v,"Account",{enumerable:!0,get:function(){return k.Account}});var ie=require_account_2fa();Object.defineProperty(v,"Account2FA",{enumerable:!0,get:function(){return ie.Account2FA}});var ae=require_account_creator$1();Object.defineProperty(v,"AccountCreator",{enumerable:!0,get:function(){return ae.AccountCreator}}),Object.defineProperty(v,"LocalAccountCreator",{enumerable:!0,get:function(){return ae.LocalAccountCreator}}),Object.defineProperty(v,"UrlAccountCreator",{enumerable:!0,get:function(){return ae.UrlAccountCreator}});var ce=require_account_multisig$1();Object.defineProperty(v,"AccountMultisig",{enumerable:!0,get:function(){return ce.AccountMultisig}});var fe=require_connection$1();Object.defineProperty(v,"Connection",{enumerable:!0,get:function(){return fe.Connection}});var le=require_constants3$1();Object.defineProperty(v,"MULTISIG_STORAGE_KEY",{enumerable:!0,get:function(){return le.MULTISIG_STORAGE_KEY}}),Object.defineProperty(v,"MULTISIG_ALLOWANCE",{enumerable:!0,get:function(){return le.MULTISIG_ALLOWANCE}}),Object.defineProperty(v,"MULTISIG_GAS",{enumerable:!0,get:function(){return le.MULTISIG_GAS}}),Object.defineProperty(v,"MULTISIG_DEPOSIT",{enumerable:!0,get:function(){return le.MULTISIG_DEPOSIT}}),Object.defineProperty(v,"MULTISIG_CHANGE_METHODS",{enumerable:!0,get:function(){return le.MULTISIG_CHANGE_METHODS}}),Object.defineProperty(v,"MULTISIG_CONFIRM_METHODS",{enumerable:!0,get:function(){return le.MULTISIG_CONFIRM_METHODS}});var ve=require_contract$1();Object.defineProperty(v,"Contract",{enumerable:!0,get:function(){return ve.Contract}});var pe=require_errors5();Object.defineProperty(v,"ArgumentSchemaError",{enumerable:!0,get:function(){return pe.ArgumentSchemaError}}),Object.defineProperty(v,"ConflictingOptions",{enumerable:!0,get:function(){return pe.ConflictingOptions}}),Object.defineProperty(v,"UnknownArgumentError",{enumerable:!0,get:function(){return pe.UnknownArgumentError}}),Object.defineProperty(v,"UnsupportedSerializationError",{enumerable:!0,get:function(){return pe.UnsupportedSerializationError}});var ye=require_types$4();Object.defineProperty(v,"MultisigDeleteRequestRejectionError",{enumerable:!0,get:function(){return ye.MultisigDeleteRequestRejectionError}}),Object.defineProperty(v,"MultisigStateStatus",{enumerable:!0,get:function(){return ye.MultisigStateStatus}})}}),require_errors6=__commonJS$1({"node_modules/near-api-js/lib/utils/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.logWarning=v.TypedError=v.PositionalArgsError=v.ErrorContext=v.ArgumentTypeError=v.UnsupportedSerializationError=v.UnknownArgumentError=v.ConflictingOptions=v.ArgumentSchemaError=void 0;var k=require_lib11();Object.defineProperty(v,"ArgumentSchemaError",{enumerable:!0,get:function(){return k.ArgumentSchemaError}}),Object.defineProperty(v,"ConflictingOptions",{enumerable:!0,get:function(){return k.ConflictingOptions}}),Object.defineProperty(v,"UnknownArgumentError",{enumerable:!0,get:function(){return k.UnknownArgumentError}}),Object.defineProperty(v,"UnsupportedSerializationError",{enumerable:!0,get:function(){return k.UnsupportedSerializationError}});var ie=require_lib2();Object.defineProperty(v,"ArgumentTypeError",{enumerable:!0,get:function(){return ie.ArgumentTypeError}}),Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return ie.ErrorContext}}),Object.defineProperty(v,"PositionalArgsError",{enumerable:!0,get:function(){return ie.PositionalArgsError}}),Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return ie.TypedError}});var ae=require_lib6();Object.defineProperty(v,"logWarning",{enumerable:!0,get:function(){return ae.logWarning}})}}),require_utils$4=__commonJS$1({"node_modules/near-api-js/lib/utils/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(cr,Br,$r,Pr){Pr===void 0&&(Pr=$r);var Ar=Object.getOwnPropertyDescriptor(Br,$r);(!Ar||("get"in Ar?!Br.__esModule:Ar.writable||Ar.configurable))&&(Ar={enumerable:!0,get:function(){return Br[$r]}}),Object.defineProperty(cr,Pr,Ar)}:function(cr,Br,$r,Pr){Pr===void 0&&(Pr=$r),cr[Pr]=Br[$r]}),ie=v&&v.__setModuleDefault||(Object.create?function(cr,Br){Object.defineProperty(cr,"default",{enumerable:!0,value:Br})}:function(cr,Br){cr.default=Br}),ae=v&&v.__importStar||function(cr){if(cr&&cr.__esModule)return cr;var Br={};if(cr!=null)for(var $r in cr)$r!=="default"&&Object.prototype.hasOwnProperty.call(cr,$r)&&k(Br,cr,$r);return ie(Br,cr),Br};Object.defineProperty(v,"__esModule",{value:!0}),v.logWarning=v.rpc_errors=v.KeyPairEd25519=v.KeyPair=v.PublicKey=v.format=v.enums=v.web=v.serialize=v.key_pair=void 0;var ce=ae(require_key_pair2());v.key_pair=ce;var fe=ae(require_serialize$1());v.serialize=fe;var le=ae(require_web$1());v.web=le;var ve=ae(require_enums$1());v.enums=ve;var pe=ae(require_format2());v.format=pe;var ye=ae(require_rpc_errors2());v.rpc_errors=ye;var me=require_key_pair2();Object.defineProperty(v,"PublicKey",{enumerable:!0,get:function(){return me.PublicKey}}),Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return me.KeyPair}}),Object.defineProperty(v,"KeyPairEd25519",{enumerable:!0,get:function(){return me.KeyPairEd25519}});var Ee=require_errors6();Object.defineProperty(v,"logWarning",{enumerable:!0,get:function(){return Ee.logWarning}})}}),require_transaction$1=__commonJS$1({"node_modules/near-api-js/lib/transaction.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.transfer=v.stake=v.functionCallAccessKey=v.functionCall=v.fullAccessKey=v.deployContract=v.deleteKey=v.deleteAccount=v.createAccount=v.addKey=v.encodeDelegateAction=v.encodeSignedDelegate=v.Transaction=v.SignedTransaction=v.Signature=v.signTransaction=v.createTransaction=v.SCHEMA=v.Transfer=v.Stake=v.FunctionCallPermission=v.FunctionCall=v.FullAccessPermission=v.DeployContract=v.DeleteKey=v.DeleteAccount=v.CreateAccount=v.AddKey=v.AccessKeyPermission=v.AccessKey=v.Action=v.stringifyJsonOrBytes=void 0;var k=require_lib7();Object.defineProperty(v,"stringifyJsonOrBytes",{enumerable:!0,get:function(){return k.stringifyJsonOrBytes}}),Object.defineProperty(v,"Action",{enumerable:!0,get:function(){return k.Action}}),Object.defineProperty(v,"AccessKey",{enumerable:!0,get:function(){return k.AccessKey}}),Object.defineProperty(v,"AccessKeyPermission",{enumerable:!0,get:function(){return k.AccessKeyPermission}}),Object.defineProperty(v,"AddKey",{enumerable:!0,get:function(){return k.AddKey}}),Object.defineProperty(v,"CreateAccount",{enumerable:!0,get:function(){return k.CreateAccount}}),Object.defineProperty(v,"DeleteAccount",{enumerable:!0,get:function(){return k.DeleteAccount}}),Object.defineProperty(v,"DeleteKey",{enumerable:!0,get:function(){return k.DeleteKey}}),Object.defineProperty(v,"DeployContract",{enumerable:!0,get:function(){return k.DeployContract}}),Object.defineProperty(v,"FullAccessPermission",{enumerable:!0,get:function(){return k.FullAccessPermission}}),Object.defineProperty(v,"FunctionCall",{enumerable:!0,get:function(){return k.FunctionCall}}),Object.defineProperty(v,"FunctionCallPermission",{enumerable:!0,get:function(){return k.FunctionCallPermission}}),Object.defineProperty(v,"Stake",{enumerable:!0,get:function(){return k.Stake}}),Object.defineProperty(v,"Transfer",{enumerable:!0,get:function(){return k.Transfer}}),Object.defineProperty(v,"SCHEMA",{enumerable:!0,get:function(){return k.SCHEMA}}),Object.defineProperty(v,"createTransaction",{enumerable:!0,get:function(){return k.createTransaction}}),Object.defineProperty(v,"signTransaction",{enumerable:!0,get:function(){return k.signTransaction}}),Object.defineProperty(v,"Signature",{enumerable:!0,get:function(){return k.Signature}}),Object.defineProperty(v,"SignedTransaction",{enumerable:!0,get:function(){return k.SignedTransaction}}),Object.defineProperty(v,"Transaction",{enumerable:!0,get:function(){return k.Transaction}}),Object.defineProperty(v,"encodeSignedDelegate",{enumerable:!0,get:function(){return k.encodeSignedDelegate}}),Object.defineProperty(v,"encodeDelegateAction",{enumerable:!0,get:function(){return k.encodeDelegateAction}});var ie=require_lib7(),ae=(Br,$r)=>ie.actionCreators.addKey(Br,$r);v.addKey=ae;var ce=()=>ie.actionCreators.createAccount();v.createAccount=ce;var fe=Br=>ie.actionCreators.deleteAccount(Br);v.deleteAccount=fe;var le=Br=>ie.actionCreators.deleteKey(Br);v.deleteKey=le;var ve=Br=>ie.actionCreators.deployContract(Br);v.deployContract=ve;var pe=()=>ie.actionCreators.fullAccessKey();v.fullAccessKey=pe;var ye=(Br,$r,Pr,Ar,ur,jr)=>ie.actionCreators.functionCall(Br,$r,Pr,Ar,ur,jr);v.functionCall=ye;var me=(Br,$r,Pr)=>ie.actionCreators.functionCallAccessKey(Br,$r,Pr);v.functionCallAccessKey=me;var Ee=(Br,$r)=>ie.actionCreators.stake(Br,$r);v.stake=Ee;var cr=Br=>ie.actionCreators.transfer(Br);v.transfer=cr}}),require_validators2=__commonJS$1({"node_modules/near-api-js/lib/validators.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.findSeatPrice=v.diffEpochValidators=void 0;var k=require_lib6();Object.defineProperty(v,"diffEpochValidators",{enumerable:!0,get:function(){return k.diffEpochValidators}}),Object.defineProperty(v,"findSeatPrice",{enumerable:!0,get:function(){return k.findSeatPrice}})}}),require_account2=__commonJS$1({"node_modules/near-api-js/lib/account.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Account=void 0;var k=require_lib11();Object.defineProperty(v,"Account",{enumerable:!0,get:function(){return k.Account}})}}),require_account_multisig2=__commonJS$1({"node_modules/near-api-js/lib/account_multisig.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MultisigStateStatus=v.MultisigDeleteRequestRejectionError=v.MULTISIG_CONFIRM_METHODS=v.MULTISIG_CHANGE_METHODS=v.MULTISIG_DEPOSIT=v.MULTISIG_GAS=v.MULTISIG_ALLOWANCE=v.MULTISIG_STORAGE_KEY=v.AccountMultisig=v.Account2FA=void 0;var k=require_lib11();Object.defineProperty(v,"Account2FA",{enumerable:!0,get:function(){return k.Account2FA}}),Object.defineProperty(v,"AccountMultisig",{enumerable:!0,get:function(){return k.AccountMultisig}}),Object.defineProperty(v,"MULTISIG_STORAGE_KEY",{enumerable:!0,get:function(){return k.MULTISIG_STORAGE_KEY}}),Object.defineProperty(v,"MULTISIG_ALLOWANCE",{enumerable:!0,get:function(){return k.MULTISIG_ALLOWANCE}}),Object.defineProperty(v,"MULTISIG_GAS",{enumerable:!0,get:function(){return k.MULTISIG_GAS}}),Object.defineProperty(v,"MULTISIG_DEPOSIT",{enumerable:!0,get:function(){return k.MULTISIG_DEPOSIT}}),Object.defineProperty(v,"MULTISIG_CHANGE_METHODS",{enumerable:!0,get:function(){return k.MULTISIG_CHANGE_METHODS}}),Object.defineProperty(v,"MULTISIG_CONFIRM_METHODS",{enumerable:!0,get:function(){return k.MULTISIG_CONFIRM_METHODS}}),Object.defineProperty(v,"MultisigDeleteRequestRejectionError",{enumerable:!0,get:function(){return k.MultisigDeleteRequestRejectionError}}),Object.defineProperty(v,"MultisigStateStatus",{enumerable:!0,get:function(){return k.MultisigStateStatus}})}}),require_account_creator2=__commonJS$1({"node_modules/near-api-js/lib/account_creator.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.UrlAccountCreator=v.LocalAccountCreator=v.AccountCreator=void 0;var k=require_lib11();Object.defineProperty(v,"AccountCreator",{enumerable:!0,get:function(){return k.AccountCreator}}),Object.defineProperty(v,"LocalAccountCreator",{enumerable:!0,get:function(){return k.LocalAccountCreator}}),Object.defineProperty(v,"UrlAccountCreator",{enumerable:!0,get:function(){return k.UrlAccountCreator}})}}),require_connection2=__commonJS$1({"node_modules/near-api-js/lib/connection.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Connection=void 0;var k=require_lib11();Object.defineProperty(v,"Connection",{enumerable:!0,get:function(){return k.Connection}})}}),require_signer2=__commonJS$1({"node_modules/near-api-js/lib/signer.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Signer=v.InMemorySigner=void 0;var k=require_lib9();Object.defineProperty(v,"InMemorySigner",{enumerable:!0,get:function(){return k.InMemorySigner}}),Object.defineProperty(v,"Signer",{enumerable:!0,get:function(){return k.Signer}})}}),require_contract2=__commonJS$1({"node_modules/near-api-js/lib/contract.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Contract=void 0;var k=require_lib11();Object.defineProperty(v,"Contract",{enumerable:!0,get:function(){return k.Contract}})}}),require_near$1=__commonJS$1({"node_modules/@near-js/wallet-account/lib/near.js"(v){var k=v&&v.__awaiter||function(le,ve,pe,ye){function me(Ee){return Ee instanceof pe?Ee:new pe(function(cr){cr(Ee)})}return new(pe||(pe=Promise))(function(Ee,cr){function Br(Ar){try{Pr(ye.next(Ar))}catch(ur){cr(ur)}}function $r(Ar){try{Pr(ye.throw(Ar))}catch(ur){cr(ur)}}function Pr(Ar){Ar.done?Ee(Ar.value):me(Ar.value).then(Br,$r)}Pr((ye=ye.apply(le,ve||[])).next())})},ie=v&&v.__importDefault||function(le){return le&&le.__esModule?le:{default:le}};Object.defineProperty(v,"__esModule",{value:!0}),v.Near=void 0;var ae=require_lib11(),ce=ie(require_bn$1()),fe=class{constructor(le){var ve;if(this.config=le,this.connection=ae.Connection.fromConfig({networkId:le.networkId,provider:{type:"JsonRpcProvider",args:{url:le.nodeUrl,headers:le.headers}},signer:le.signer||{type:"InMemorySigner",keyStore:le.keyStore||((ve=le.deps)===null||ve===void 0?void 0:ve.keyStore)},jsvmAccountId:le.jsvmAccountId||`jsvm.${le.networkId}`}),le.masterAccount){const pe=le.initialBalance?new ce.default(le.initialBalance):new ce.default("500000000000000000000000000");this.accountCreator=new ae.LocalAccountCreator(new ae.Account(this.connection,le.masterAccount),pe)}else le.helperUrl?this.accountCreator=new ae.UrlAccountCreator(this.connection,le.helperUrl):this.accountCreator=null}account(le){return k(this,void 0,void 0,function*(){return new ae.Account(this.connection,le)})}createAccount(le,ve){return k(this,void 0,void 0,function*(){if(!this.accountCreator)throw new Error("Must specify account creator, either via masterAccount or helperUrl configuration settings.");return yield this.accountCreator.createAccount(le,ve),new ae.Account(this.connection,le)})}};v.Near=fe}}),require_wallet_account$1=__commonJS$1({"node_modules/@near-js/wallet-account/lib/wallet_account.js"(v){var k=v&&v.__awaiter||function($r,Pr,Ar,ur){function jr(Mr){return Mr instanceof Ar?Mr:new Ar(function(Lr){Lr(Mr)})}return new(Ar||(Ar=Promise))(function(Mr,Lr){function Vr(Qr){try{Ur(ur.next(Qr))}catch(hn){Lr(hn)}}function Gr(Qr){try{Ur(ur.throw(Qr))}catch(hn){Lr(hn)}}function Ur(Qr){Qr.done?Mr(Qr.value):jr(Qr.value).then(Vr,Gr)}Ur((ur=ur.apply($r,Pr||[])).next())})},ie=v&&v.__importDefault||function($r){return $r&&$r.__esModule?$r:{default:$r}};Object.defineProperty(v,"__esModule",{value:!0}),v.ConnectedWalletAccount=v.WalletConnection=void 0;var ae=require_lib11(),ce=require_lib3(),fe=require_lib7(),le=ie(require_bn$1()),ve=require_lib(),pe="/login/",ye="add_request_and_confirm",me="_wallet_auth_key",Ee="pending_key",cr=class{constructor($r,Pr){if(typeof Pr!="string")throw new Error("Please define a clear appKeyPrefix for this WalletConnection instance as the second argument to the constructor");if(typeof window>"u")return new Proxy(this,{get(jr,Mr){return Mr==="isSignedIn"?()=>!1:Mr==="getAccountId"?()=>"":jr[Mr]&&typeof jr[Mr]=="function"?()=>{throw new Error("No window found in context, please ensure you are using WalletConnection on the browser")}:jr[Mr]}});this._near=$r;const Ar=Pr+me,ur=JSON.parse(window.localStorage.getItem(Ar));this._networkId=$r.config.networkId,this._walletBaseUrl=$r.config.walletUrl,Pr=Pr||$r.config.contractName||"default",this._keyStore=$r.connection.signer.keyStore,this._authData=ur||{allKeys:[]},this._authDataKey=Ar,this.isSignedIn()||(this._completeSignInPromise=this._completeSignInWithAccessKey())}isSignedIn(){return!!this._authData.accountId}isSignedInAsync(){return k(this,void 0,void 0,function*(){return this._completeSignInPromise?(yield this._completeSignInPromise,this.isSignedIn()):this.isSignedIn()})}getAccountId(){return this._authData.accountId||""}requestSignIn({contractId:$r,methodNames:Pr,successUrl:Ar,failureUrl:ur}){return k(this,void 0,void 0,function*(){const jr=new URL(window.location.href),Mr=new URL(this._walletBaseUrl+pe);if(Mr.searchParams.set("success_url",Ar||jr.href),Mr.searchParams.set("failure_url",ur||jr.href),$r){yield(yield this._near.account($r)).state(),Mr.searchParams.set("contract_id",$r);const Vr=ce.KeyPair.fromRandom("ed25519");Mr.searchParams.set("public_key",Vr.getPublicKey().toString()),yield this._keyStore.setKey(this._networkId,Ee+Vr.getPublicKey(),Vr)}Pr&&Pr.forEach(Lr=>{Mr.searchParams.append("methodNames",Lr)}),window.location.assign(Mr.toString())})}requestSignTransactions({transactions:$r,meta:Pr,callbackUrl:Ar}){return k(this,void 0,void 0,function*(){const ur=new URL(window.location.href),jr=new URL("sign",this._walletBaseUrl);jr.searchParams.set("transactions",$r.map(Mr=>(0,ve.serialize)(fe.SCHEMA,Mr)).map(Mr=>Buffer.from(Mr).toString("base64")).join(",")),jr.searchParams.set("callbackUrl",Ar||ur.href),Pr&&jr.searchParams.set("meta",Pr),window.location.assign(jr.toString())})}_completeSignInWithAccessKey(){return k(this,void 0,void 0,function*(){const $r=new URL(window.location.href),Pr=$r.searchParams.get("public_key")||"",Ar=($r.searchParams.get("all_keys")||"").split(","),ur=$r.searchParams.get("account_id")||"";if(ur){const jr={accountId:ur,allKeys:Ar};window.localStorage.setItem(this._authDataKey,JSON.stringify(jr)),Pr&&(yield this._moveKeyFromTempToPermanent(ur,Pr)),this._authData=jr}$r.searchParams.delete("public_key"),$r.searchParams.delete("all_keys"),$r.searchParams.delete("account_id"),$r.searchParams.delete("meta"),$r.searchParams.delete("transactionHashes"),window.history.replaceState({},document.title,$r.toString())})}_moveKeyFromTempToPermanent($r,Pr){return k(this,void 0,void 0,function*(){const Ar=yield this._keyStore.getKey(this._networkId,Ee+Pr);yield this._keyStore.setKey(this._networkId,$r,Ar),yield this._keyStore.removeKey(this._networkId,Ee+Pr)})}signOut(){this._authData={},window.localStorage.removeItem(this._authDataKey)}account(){return this._connectedAccount||(this._connectedAccount=new Br(this,this._near.connection,this._authData.accountId)),this._connectedAccount}};v.WalletConnection=cr;var Br=class extends ae.Account{constructor($r,Pr,Ar){super(Pr,Ar),this.walletConnection=$r}signAndSendTransaction({receiverId:$r,actions:Pr,walletMeta:Ar,walletCallbackUrl:ur=window.location.href}){const jr=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return k(this,void 0,void 0,function*(){const Mr=yield this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);let Lr=yield this.accessKeyForTransaction($r,Pr,Mr);if(!Lr)throw new Error(`Cannot find matching key for transaction sent to ${$r}`);if(Mr&&Mr.toString()===Lr.public_key)try{return yield jr.signAndSendTransaction.call(this,{receiverId:$r,actions:Pr})}catch(Yt){if(Yt.type==="NotEnoughAllowance")Lr=yield this.accessKeyForTransaction($r,Pr);else throw Yt}const Vr=yield this.connection.provider.block({finality:"final"}),Gr=(0,ve.baseDecode)(Vr.header.hash),Ur=ce.PublicKey.from(Lr.public_key),Qr=Lr.access_key.nonce.add(new le.default(1)),hn=(0,fe.createTransaction)(this.accountId,Ur,$r,Qr,Pr,Gr);return yield this.walletConnection.requestSignTransactions({transactions:[hn],meta:Ar,callbackUrl:ur}),new Promise((Yt,fn)=>{setTimeout(()=>{fn(new Error("Failed to redirect to sign transaction"))},1e3)})})}accessKeyMatchesTransaction($r,Pr,Ar){return k(this,void 0,void 0,function*(){const{access_key:{permission:ur}}=$r;if(ur==="FullAccess")return!0;if(ur.FunctionCall){const{receiver_id:jr,method_names:Mr}=ur.FunctionCall;if(jr===this.accountId&&Mr.includes(ye))return!0;if(jr===Pr){if(Ar.length!==1)return!1;const[{functionCall:Lr}]=Ar;return Lr&&(!Lr.deposit||Lr.deposit.toString()==="0")&&(Mr.length===0||Mr.includes(Lr.methodName))}}return!1})}accessKeyForTransaction($r,Pr,Ar){return k(this,void 0,void 0,function*(){const ur=yield this.getAccessKeys();if(Ar){const Mr=ur.find(Lr=>Lr.public_key.toString()===Ar.toString());if(Mr&&(yield this.accessKeyMatchesTransaction(Mr,$r,Pr)))return Mr}const jr=this.walletConnection._authData.allKeys;for(const Mr of ur)if(jr.indexOf(Mr.public_key)!==-1&&(yield this.accessKeyMatchesTransaction(Mr,$r,Pr)))return Mr;return null})}};v.ConnectedWalletAccount=Br}}),require_lib12=__commonJS$1({"node_modules/@near-js/wallet-account/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.WalletConnection=v.ConnectedWalletAccount=v.Near=void 0;var k=require_near$1();Object.defineProperty(v,"Near",{enumerable:!0,get:function(){return k.Near}});var ie=require_wallet_account$1();Object.defineProperty(v,"ConnectedWalletAccount",{enumerable:!0,get:function(){return ie.ConnectedWalletAccount}}),Object.defineProperty(v,"WalletConnection",{enumerable:!0,get:function(){return ie.WalletConnection}})}}),require_near2=__commonJS$1({"node_modules/near-api-js/lib/near.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Near=void 0;var k=require_lib12();Object.defineProperty(v,"Near",{enumerable:!0,get:function(){return k.Near}})}}),require_wallet_account2=__commonJS$1({"node_modules/near-api-js/lib/wallet-account.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.WalletConnection=v.ConnectedWalletAccount=void 0;var k=require_lib12();Object.defineProperty(v,"ConnectedWalletAccount",{enumerable:!0,get:function(){return k.ConnectedWalletAccount}}),Object.defineProperty(v,"WalletConnection",{enumerable:!0,get:function(){return k.WalletConnection}})}}),require_common_index$1=__commonJS$1({"node_modules/near-api-js/lib/common-index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ur,jr,Mr,Lr){Lr===void 0&&(Lr=Mr);var Vr=Object.getOwnPropertyDescriptor(jr,Mr);(!Vr||("get"in Vr?!jr.__esModule:Vr.writable||Vr.configurable))&&(Vr={enumerable:!0,get:function(){return jr[Mr]}}),Object.defineProperty(ur,Lr,Vr)}:function(ur,jr,Mr,Lr){Lr===void 0&&(Lr=Mr),ur[Lr]=jr[Mr]}),ie=v&&v.__setModuleDefault||(Object.create?function(ur,jr){Object.defineProperty(ur,"default",{enumerable:!0,value:jr})}:function(ur,jr){ur.default=jr}),ae=v&&v.__importStar||function(ur){if(ur&&ur.__esModule)return ur;var jr={};if(ur!=null)for(var Mr in ur)Mr!=="default"&&Object.prototype.hasOwnProperty.call(ur,Mr)&&k(jr,ur,Mr);return ie(jr,ur),jr};Object.defineProperty(v,"__esModule",{value:!0}),v.WalletConnection=v.ConnectedWalletAccount=v.Near=v.KeyPair=v.Signer=v.InMemorySigner=v.Contract=v.Connection=v.Account=v.multisig=v.validators=v.transactions=v.utils=v.providers=v.accountCreator=void 0;var ce=ae(require_providers$1());v.providers=ce;var fe=ae(require_utils$4());v.utils=fe;var le=ae(require_transaction$1());v.transactions=le;var ve=ae(require_validators2());v.validators=ve;var pe=require_account2();Object.defineProperty(v,"Account",{enumerable:!0,get:function(){return pe.Account}});var ye=ae(require_account_multisig2());v.multisig=ye;var me=ae(require_account_creator2());v.accountCreator=me;var Ee=require_connection2();Object.defineProperty(v,"Connection",{enumerable:!0,get:function(){return Ee.Connection}});var cr=require_signer2();Object.defineProperty(v,"Signer",{enumerable:!0,get:function(){return cr.Signer}}),Object.defineProperty(v,"InMemorySigner",{enumerable:!0,get:function(){return cr.InMemorySigner}});var Br=require_contract2();Object.defineProperty(v,"Contract",{enumerable:!0,get:function(){return Br.Contract}});var $r=require_key_pair2();Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return $r.KeyPair}});var Pr=require_near2();Object.defineProperty(v,"Near",{enumerable:!0,get:function(){return Pr.Near}});var Ar=require_wallet_account2();Object.defineProperty(v,"ConnectedWalletAccount",{enumerable:!0,get:function(){return Ar.ConnectedWalletAccount}}),Object.defineProperty(v,"WalletConnection",{enumerable:!0,get:function(){return Ar.WalletConnection}})}}),require_browser_connect$1=__commonJS$1({"node_modules/near-api-js/lib/browser-connect.js"(v){var k=v&&v.__awaiter||function(ce,fe,le,ve){function pe(ye){return ye instanceof le?ye:new le(function(me){me(ye)})}return new(le||(le=Promise))(function(ye,me){function Ee($r){try{Br(ve.next($r))}catch(Pr){me(Pr)}}function cr($r){try{Br(ve.throw($r))}catch(Pr){me(Pr)}}function Br($r){$r.done?ye($r.value):pe($r.value).then(Ee,cr)}Br((ve=ve.apply(ce,fe||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.connect=void 0;var ie=require_near2();function ae(ce){return k(this,void 0,void 0,function*(){return new ie.Near(ce)})}v.connect=ae}}),require_CapabilityDetector=__commonJS$1({"node_modules/capability/lib/CapabilityDetector.js"(v,k){var ie=function(){this.tests={},this.cache={}};ie.prototype={constructor:ie,define:function(ae,ce){if(typeof ae!="string"||!(ce instanceof Function))throw new Error("Invalid capability definition.");if(this.tests[ae])throw new Error('Duplicated capability definition by "'+ae+'".');this.tests[ae]=ce},check:function(ae){if(!this.test(ae))throw new Error('The current environment does not support "'+ae+'", therefore we cannot continue.')},test:function(ae){if(this.cache[ae]!==void 0)return this.cache[ae];if(!this.tests[ae])throw new Error('Unknown capability with name "'+ae+'".');var ce=this.tests[ae];return this.cache[ae]=!!ce(),this.cache[ae]}},k.exports=ie}}),require_lib13=__commonJS$1({"node_modules/capability/lib/index.js"(v,k){var ie=require_CapabilityDetector(),ae=new ie,ce=function(fe){return ae.test(fe)};ce.define=function(fe,le){ae.define(fe,le)},ce.check=function(fe){ae.check(fe)},ce.test=ce,k.exports=ce}}),require_definitions=__commonJS$1({"node_modules/capability/lib/definitions.js"(){var v=require_lib13(),k=v.define,ie=v.test;k("strict mode",function(){return this===void 0}),k("arguments.callee.caller",function(){try{return function(){return arguments.callee.caller}()===arguments.callee}catch{return!1}}),k("es5",function(){return ie("Array.prototype.forEach")&&ie("Array.prototype.map")&&ie("Function.prototype.bind")&&ie("Object.create")&&ie("Object.defineProperties")&&ie("Object.defineProperty")&&ie("Object.prototype.hasOwnProperty")}),k("Array.prototype.forEach",function(){return Array.prototype.forEach}),k("Array.prototype.map",function(){return Array.prototype.map}),k("Function.prototype.bind",function(){return Function.prototype.bind}),k("Object.create",function(){return Object.create}),k("Object.defineProperties",function(){return Object.defineProperties}),k("Object.defineProperty",function(){return Object.defineProperty}),k("Object.prototype.hasOwnProperty",function(){return Object.prototype.hasOwnProperty}),k("Error.captureStackTrace",function(){return Error.captureStackTrace}),k("Error.prototype.stack",function(){try{throw new Error}catch(ae){return ae.stack||ae.stacktrace}})}}),require_capability=__commonJS$1({"node_modules/capability/index.js"(v,k){require_definitions(),k.exports=require_lib13()}}),require_es5=__commonJS$1({"node_modules/capability/es5.js"(){require_capability().check("es5")}}),require_prepareStackTrace=__commonJS$1({"node_modules/error-polyfill/lib/prepareStackTrace.js"(v,k){var ie=function(ae,ce,fe){var le="";if(le+=ae.name||"Error",le+=": "+(ae.message||""),fe instanceof Array)for(var ve in fe){var pe=fe[ve];le+=` # `+pe}for(var ye in ce){var me=ce[ye];le+=` at `+me.toString()}return le};k.exports=ie}}),require_v8=__commonJS$1({"node_modules/error-polyfill/lib/v8.js"(v,k){var ie=require_prepareStackTrace();k.exports=function(){return Error.getStackTrace=function(ae){return ae.stack},{prepareStackTrace:ie}}}}),require_Class=__commonJS$1({"node_modules/o3/lib/Class.js"(v,k){var ie=function(){var ae=Object.create({Source:Object,config:{},buildArgs:[]});function ce(me){var Ee="config";if(me instanceof Function)Ee="Source";else if(me instanceof Array)Ee="buildArgs";else if(me instanceof Object)Ee="config";else throw new Error("Invalid configuration option.");if(ae.hasOwnProperty(Ee))throw new Error("Duplicated configuration option: "+Ee+".");ae[Ee]=me}for(var fe=0,le=arguments.length;fe=v.length&&(v=void 0),{value:v&&v[ae++],done:!v}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(v,k){var ie=typeof Symbol=="function"&&v[Symbol.iterator];if(!ie)return v;var ae=ie.call(v),ce,fe=[],le;try{for(;(k===void 0||k-- >0)&&!(ce=ae.next()).done;)fe.push(ce.value)}catch(ve){le={error:ve}}finally{try{ce&&!ce.done&&(ie=ae.return)&&ie.call(ae)}finally{if(le)throw le.error}}return fe}function __spreadArray$1(v,k,ie){if(ie||arguments.length===2)for(var ae=0,ce=k.length,fe;ae0},enumerable:!1,configurable:!0}),k.prototype._trySubscribe=function(ie){return this._throwIfClosed(),v.prototype._trySubscribe.call(this,ie)},k.prototype._subscribe=function(ie){return this._throwIfClosed(),this._checkFinalizedStatuses(ie),this._innerSubscribe(ie)},k.prototype._innerSubscribe=function(ie){var ae=this,ce=this,fe=ce.hasError,le=ce.isStopped,ve=ce.observers;return fe||le?EMPTY_SUBSCRIPTION:(this.currentObservers=null,ve.push(ie),new Subscription(function(){ae.currentObservers=null,arrRemove(ve,ie)}))},k.prototype._checkFinalizedStatuses=function(ie){var ae=this,ce=ae.hasError,fe=ae.thrownError,le=ae.isStopped;ce?ie.error(fe):le&&ie.complete()},k.prototype.asObservable=function(){var ie=new Observable;return ie.source=this,ie},k.create=function(ie,ae){return new AnonymousSubject(ie,ae)},k}(Observable),AnonymousSubject=function(v){__extends(k,v);function k(ie,ae){var ce=v.call(this)||this;return ce.destination=ie,ce.source=ae,ce}return k.prototype.next=function(ie){var ae,ce;(ce=(ae=this.destination)===null||ae===void 0?void 0:ae.next)===null||ce===void 0||ce.call(ae,ie)},k.prototype.error=function(ie){var ae,ce;(ce=(ae=this.destination)===null||ae===void 0?void 0:ae.error)===null||ce===void 0||ce.call(ae,ie)},k.prototype.complete=function(){var ie,ae;(ae=(ie=this.destination)===null||ie===void 0?void 0:ie.complete)===null||ae===void 0||ae.call(ie)},k.prototype._subscribe=function(ie){var ae,ce;return(ce=(ae=this.source)===null||ae===void 0?void 0:ae.subscribe(ie))!==null&&ce!==void 0?ce:EMPTY_SUBSCRIPTION},k}(Subject),BehaviorSubject=function(v){__extends(k,v);function k(ie){var ae=v.call(this)||this;return ae._value=ie,ae}return Object.defineProperty(k.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),k.prototype._subscribe=function(ie){var ae=v.prototype._subscribe.call(this,ie);return!ae.closed&&ie.next(this._value),ae},k.prototype.getValue=function(){var ie=this,ae=ie.hasError,ce=ie.thrownError,fe=ie._value;if(ae)throw ce;return this._throwIfClosed(),fe},k.prototype.next=function(ie){v.prototype.next.call(this,this._value=ie)},k}(Subject);function scanInternals(v,k,ie,ae,ce){return function(fe,le){var ve=ie,pe=k,ye=0;fe.subscribe(createOperatorSubscriber(le,function(me){var Ee=ye++;pe=ve?v(pe,me,Ee):(ve=!0,me),ae&&le.next(pe)},ce&&function(){ve&&le.next(pe),le.complete()}))}}function scan(v,k){return operate(scanInternals(v,k,arguments.length>=2,!0))}__toESM(require_lib(),1);__toESM(require_sha256$2(),1);function __awaiter$l(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var Provider$1=class{constructor(v){this.provider=new nearAPI$9.providers.JsonRpcProvider({url:v})}query(v){return this.provider.query(v)}viewAccessKey({accountId:v,publicKey:k}){return this.query({request_type:"view_access_key",finality:"final",account_id:v,public_key:k})}block(v){return this.provider.block(v)}sendTransaction(v){return this.provider.sendTransaction(v)}},KEY_DELIMITER=":",JsonStorage=class{constructor(v,k){this.storage=v,this.namespace=Array.isArray(k)?k.join(KEY_DELIMITER):k}resolveKey(v){return[this.namespace,v].join(KEY_DELIMITER)}getItem(v){return this.storage.getItem(this.resolveKey(v)).then(k=>typeof k=="string"?JSON.parse(k):null)}setItem(v,k){return this.storage.setItem(this.resolveKey(v),JSON.stringify(k))}removeItem(v){return this.storage.removeItem(this.resolveKey(v))}},commonjsGlobal$j=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$i=function(v){return v&&v.Math==Math&&v},global$t=check$i(typeof globalThis=="object"&&globalThis)||check$i(typeof window=="object"&&window)||check$i(typeof self=="object"&&self)||check$i(typeof commonjsGlobal$j=="object"&&commonjsGlobal$j)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$g={},fails$r$1=function(v){try{return!!v()}catch{return!0}},fails$q$1=fails$r$1,descriptors$i=!fails$q$1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$p$1=fails$r$1,functionBindNative$i=!fails$p$1(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$c=functionBindNative$i,call$l$1=Function.prototype.call,functionCall$i=NATIVE_BIND$3$c?call$l$1.bind(call$l$1):function(){return call$l$1.apply(call$l$1,arguments)},objectPropertyIsEnumerable$g={},$propertyIsEnumerable$g={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$8=Object.getOwnPropertyDescriptor,NASHORN_BUG$g=getOwnPropertyDescriptor$2$8&&!$propertyIsEnumerable$g.call({1:2},1);objectPropertyIsEnumerable$g.f=NASHORN_BUG$g?function v(k){var ie=getOwnPropertyDescriptor$2$8(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$g;var createPropertyDescriptor$5$4=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2$c=functionBindNative$i,FunctionPrototype$2$c=Function.prototype,bind$7$1=FunctionPrototype$2$c.bind,call$k$1=FunctionPrototype$2$c.call,uncurryThis$o$1=NATIVE_BIND$2$c&&bind$7$1.bind(call$k$1,call$k$1),functionUncurryThis$i=NATIVE_BIND$2$c?function(v){return v&&uncurryThis$o$1(v)}:function(v){return v&&function(){return call$k$1.apply(v,arguments)}},uncurryThis$n$1=functionUncurryThis$i,toString$6$2=uncurryThis$n$1({}.toString),stringSlice$3$4=uncurryThis$n$1("".slice),classofRaw$1$g=function(v){return stringSlice$3$4(toString$6$2(v),8,-1)},uncurryThis$m$2=functionUncurryThis$i,fails$o$1=fails$r$1,classof$b$1=classofRaw$1$g,$Object$4$c=Object,split$g=uncurryThis$m$2("".split),indexedObject$g=fails$o$1(function(){return!$Object$4$c("z").propertyIsEnumerable(0)})?function(v){return classof$b$1(v)=="String"?split$g(v,""):$Object$4$c(v)}:$Object$4$c,$TypeError$f$1=TypeError,requireObjectCoercible$5$2=function(v){if(v==null)throw $TypeError$f$1("Can't call method on "+v);return v},IndexedObject$3$1=indexedObject$g,requireObjectCoercible$4$4=requireObjectCoercible$5$2,toIndexedObject$6$4=function(v){return IndexedObject$3$1(requireObjectCoercible$4$4(v))},isCallable$n$1=function(v){return typeof v=="function"},isCallable$m$3=isCallable$n$1,isObject$d$1=function(v){return typeof v=="object"?v!==null:isCallable$m$3(v)},global$s=global$t,isCallable$l$4=isCallable$n$1,aFunction$i=function(v){return isCallable$l$4(v)?v:void 0},getBuiltIn$8$8=function(v,k){return arguments.length<2?aFunction$i(global$s[v]):global$s[v]&&global$s[v][k]},uncurryThis$l$3=functionUncurryThis$i,objectIsPrototypeOf$i=uncurryThis$l$3({}.isPrototypeOf),getBuiltIn$7$8=getBuiltIn$8$8,engineUserAgent$i=getBuiltIn$7$8("navigator","userAgent")||"",global$r=global$t,userAgent$5$2=engineUserAgent$i,process$3$8=global$r.process,Deno$1$9=global$r.Deno,versions$i=process$3$8&&process$3$8.versions||Deno$1$9&&Deno$1$9.version,v8$i=versions$i&&versions$i.v8,match$i,version$i;v8$i&&(match$i=v8$i.split("."),version$i=match$i[0]>0&&match$i[0]<4?1:+(match$i[0]+match$i[1]));!version$i&&userAgent$5$2&&(match$i=userAgent$5$2.match(/Edge\/(\d+)/),(!match$i||match$i[1]>=74)&&(match$i=userAgent$5$2.match(/Chrome\/(\d+)/),match$i&&(version$i=+match$i[1])));var engineV8Version$i=version$i,V8_VERSION$1$8=engineV8Version$i,fails$n$2=fails$r$1,nativeSymbol$i=!!Object.getOwnPropertySymbols&&!fails$n$2(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$8&&V8_VERSION$1$8<41}),NATIVE_SYMBOL$1$i=nativeSymbol$i,useSymbolAsUid$i=NATIVE_SYMBOL$1$i&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$6$c=getBuiltIn$8$8,isCallable$k$8=isCallable$n$1,isPrototypeOf$4$5=objectIsPrototypeOf$i,USE_SYMBOL_AS_UID$1$i=useSymbolAsUid$i,$Object$3$e=Object,isSymbol$3$4=USE_SYMBOL_AS_UID$1$i?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$c("Symbol");return isCallable$k$8(k)&&isPrototypeOf$4$5(k.prototype,$Object$3$e(v))},$String$3$c=String,tryToString$5$2=function(v){try{return $String$3$c(v)}catch{return"Object"}},isCallable$j$9=isCallable$n$1,tryToString$4$c=tryToString$5$2,$TypeError$e$2=TypeError,aCallable$9$2=function(v){if(isCallable$j$9(v))return v;throw $TypeError$e$2(tryToString$4$c(v)+" is not a function")},aCallable$8$2=aCallable$9$2,getMethod$4$3=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$8$2(ie)},call$j$1=functionCall$i,isCallable$i$b=isCallable$n$1,isObject$c$1=isObject$d$1,$TypeError$d$3=TypeError,ordinaryToPrimitive$1$i=function(v,k){var ie,ae;if(k==="string"&&isCallable$i$b(ie=v.toString)&&!isObject$c$1(ae=call$j$1(ie,v))||isCallable$i$b(ie=v.valueOf)&&!isObject$c$1(ae=call$j$1(ie,v))||k!=="string"&&isCallable$i$b(ie=v.toString)&&!isObject$c$1(ae=call$j$1(ie,v)))return ae;throw $TypeError$d$3("Can't convert object to primitive value")},shared$4$4={exports:{}},global$q=global$t,defineProperty$7$4=Object.defineProperty,defineGlobalProperty$3$g=function(v,k){try{defineProperty$7$4(global$q,v,{value:k,configurable:!0,writable:!0})}catch{global$q[v]=k}return k},global$p=global$t,defineGlobalProperty$2$i=defineGlobalProperty$3$g,SHARED$i="__core-js_shared__",store$3$i=global$p[SHARED$i]||defineGlobalProperty$2$i(SHARED$i,{}),sharedStore$i=store$3$i,store$2$i=sharedStore$i;(shared$4$4.exports=function(v,k){return store$2$i[v]||(store$2$i[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$3$5=requireObjectCoercible$5$2,$Object$2$i=Object,toObject$7$1=function(v){return $Object$2$i(requireObjectCoercible$3$5(v))},uncurryThis$k$3=functionUncurryThis$i,toObject$6$4=toObject$7$1,hasOwnProperty$i=uncurryThis$k$3({}.hasOwnProperty),hasOwnProperty_1$i=Object.hasOwn||function v(k,ie){return hasOwnProperty$i(toObject$6$4(k),ie)},uncurryThis$j$6=functionUncurryThis$i,id$k=0,postfix$i=Math.random(),toString$5$4=uncurryThis$j$6(1 .toString),uid$3$4=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$5$4(++id$k+postfix$i,36)},global$o=global$t,shared$3$i=shared$4$4.exports,hasOwn$b$5=hasOwnProperty_1$i,uid$2$i=uid$3$4,NATIVE_SYMBOL$j=nativeSymbol$i,USE_SYMBOL_AS_UID$j=useSymbolAsUid$i,WellKnownSymbolsStore$i=shared$3$i("wks"),Symbol$1$i=global$o.Symbol,symbolFor$i=Symbol$1$i&&Symbol$1$i.for,createWellKnownSymbol$i=USE_SYMBOL_AS_UID$j?Symbol$1$i:Symbol$1$i&&Symbol$1$i.withoutSetter||uid$2$i,wellKnownSymbol$j$1=function(v){if(!hasOwn$b$5(WellKnownSymbolsStore$i,v)||!(NATIVE_SYMBOL$j||typeof WellKnownSymbolsStore$i[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$j&&hasOwn$b$5(Symbol$1$i,v)?WellKnownSymbolsStore$i[v]=Symbol$1$i[v]:USE_SYMBOL_AS_UID$j&&symbolFor$i?WellKnownSymbolsStore$i[v]=symbolFor$i(k):WellKnownSymbolsStore$i[v]=createWellKnownSymbol$i(k)}return WellKnownSymbolsStore$i[v]},call$i$2=functionCall$i,isObject$b$2=isObject$d$1,isSymbol$2$i=isSymbol$3$4,getMethod$3$9=getMethod$4$3,ordinaryToPrimitive$j=ordinaryToPrimitive$1$i,wellKnownSymbol$i$1=wellKnownSymbol$j$1,$TypeError$c$4=TypeError,TO_PRIMITIVE$i=wellKnownSymbol$i$1("toPrimitive"),toPrimitive$2$4=function(v,k){if(!isObject$b$2(v)||isSymbol$2$i(v))return v;var ie=getMethod$3$9(v,TO_PRIMITIVE$i),ae;if(ie){if(k===void 0&&(k="default"),ae=call$i$2(ie,v,k),!isObject$b$2(ae)||isSymbol$2$i(ae))return ae;throw $TypeError$c$4("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$j(v,k)},toPrimitive$1$i=toPrimitive$2$4,isSymbol$1$i=isSymbol$3$4,toPropertyKey$4$4=function(v){var k=toPrimitive$1$i(v,"string");return isSymbol$1$i(k)?k:k+""},global$n$1=global$t,isObject$a$4=isObject$d$1,document$3$8=global$n$1.document,EXISTS$1$i=isObject$a$4(document$3$8)&&isObject$a$4(document$3$8.createElement),documentCreateElement$2$a=function(v){return EXISTS$1$i?document$3$8.createElement(v):{}},DESCRIPTORS$d$4=descriptors$i,fails$m$3=fails$r$1,createElement$1$8=documentCreateElement$2$a,ie8DomDefine$i=!DESCRIPTORS$d$4&&!fails$m$3(function(){return Object.defineProperty(createElement$1$8("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$c$4=descriptors$i,call$h$3=functionCall$i,propertyIsEnumerableModule$1$d=objectPropertyIsEnumerable$g,createPropertyDescriptor$4$6=createPropertyDescriptor$5$4,toIndexedObject$5$c=toIndexedObject$6$4,toPropertyKey$3$6=toPropertyKey$4$4,hasOwn$a$b=hasOwnProperty_1$i,IE8_DOM_DEFINE$1$g=ie8DomDefine$i,$getOwnPropertyDescriptor$1$g=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$g.f=DESCRIPTORS$c$4?$getOwnPropertyDescriptor$1$g:function v(k,ie){if(k=toIndexedObject$5$c(k),ie=toPropertyKey$3$6(ie),IE8_DOM_DEFINE$1$g)try{return $getOwnPropertyDescriptor$1$g(k,ie)}catch{}if(hasOwn$a$b(k,ie))return createPropertyDescriptor$4$6(!call$h$3(propertyIsEnumerableModule$1$d.f,k,ie),k[ie])};var objectDefineProperty$i={},DESCRIPTORS$b$5=descriptors$i,fails$l$3=fails$r$1,v8PrototypeDefineBug$i=DESCRIPTORS$b$5&&fails$l$3(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$9$4=isObject$d$1,$String$2$g=String,$TypeError$b$9=TypeError,anObject$e$3=function(v){if(isObject$9$4(v))return v;throw $TypeError$b$9($String$2$g(v)+" is not an object")},DESCRIPTORS$a$a=descriptors$i,IE8_DOM_DEFINE$j=ie8DomDefine$i,V8_PROTOTYPE_DEFINE_BUG$1$c=v8PrototypeDefineBug$i,anObject$d$3=anObject$e$3,toPropertyKey$2$g=toPropertyKey$4$4,$TypeError$a$c=TypeError,$defineProperty$i=Object.defineProperty,$getOwnPropertyDescriptor$j=Object.getOwnPropertyDescriptor,ENUMERABLE$i="enumerable",CONFIGURABLE$1$i="configurable",WRITABLE$i="writable";objectDefineProperty$i.f=DESCRIPTORS$a$a?V8_PROTOTYPE_DEFINE_BUG$1$c?function v(k,ie,ae){if(anObject$d$3(k),ie=toPropertyKey$2$g(ie),anObject$d$3(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$i in ae&&!ae[WRITABLE$i]){var ce=$getOwnPropertyDescriptor$j(k,ie);ce&&ce[WRITABLE$i]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$i in ae?ae[CONFIGURABLE$1$i]:ce[CONFIGURABLE$1$i],enumerable:ENUMERABLE$i in ae?ae[ENUMERABLE$i]:ce[ENUMERABLE$i],writable:!1})}return $defineProperty$i(k,ie,ae)}:$defineProperty$i:function v(k,ie,ae){if(anObject$d$3(k),ie=toPropertyKey$2$g(ie),anObject$d$3(ae),IE8_DOM_DEFINE$j)try{return $defineProperty$i(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$a$c("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$9$b=descriptors$i,definePropertyModule$6$4=objectDefineProperty$i,createPropertyDescriptor$3$c=createPropertyDescriptor$5$4,createNonEnumerableProperty$8$2=DESCRIPTORS$9$b?function(v,k,ie){return definePropertyModule$6$4.f(v,k,createPropertyDescriptor$3$c(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$i={exports:{}},DESCRIPTORS$8$c=descriptors$i,hasOwn$9$c=hasOwnProperty_1$i,FunctionPrototype$1$i=Function.prototype,getDescriptor$i=DESCRIPTORS$8$c&&Object.getOwnPropertyDescriptor,EXISTS$j=hasOwn$9$c(FunctionPrototype$1$i,"name"),PROPER$i=EXISTS$j&&function v(){}.name==="something",CONFIGURABLE$j=EXISTS$j&&(!DESCRIPTORS$8$c||DESCRIPTORS$8$c&&getDescriptor$i(FunctionPrototype$1$i,"name").configurable),functionName$i={EXISTS:EXISTS$j,PROPER:PROPER$i,CONFIGURABLE:CONFIGURABLE$j},uncurryThis$i$6=functionUncurryThis$i,isCallable$h$c=isCallable$n$1,store$1$i=sharedStore$i,functionToString$i=uncurryThis$i$6(Function.toString);isCallable$h$c(store$1$i.inspectSource)||(store$1$i.inspectSource=function(v){return functionToString$i(v)});var inspectSource$4$8=store$1$i.inspectSource,global$m$2=global$t,isCallable$g$c=isCallable$n$1,inspectSource$3$c=inspectSource$4$8,WeakMap$1$i=global$m$2.WeakMap,nativeWeakMap$i=isCallable$g$c(WeakMap$1$i)&&/native code/.test(inspectSource$3$c(WeakMap$1$i)),shared$2$i=shared$4$4.exports,uid$1$i=uid$3$4,keys$1$4=shared$2$i("keys"),sharedKey$3$c=function(v){return keys$1$4[v]||(keys$1$4[v]=uid$1$i(v))},hiddenKeys$4$c={},NATIVE_WEAK_MAP$i=nativeWeakMap$i,global$l$3=global$t,uncurryThis$h$7=functionUncurryThis$i,isObject$8$6=isObject$d$1,createNonEnumerableProperty$7$2=createNonEnumerableProperty$8$2,hasOwn$8$d=hasOwnProperty_1$i,shared$1$i=sharedStore$i,sharedKey$2$c=sharedKey$3$c,hiddenKeys$3$g=hiddenKeys$4$c,OBJECT_ALREADY_INITIALIZED$i="Object already initialized",TypeError$3=global$l$3.TypeError,WeakMap$j=global$l$3.WeakMap,set$2$1,get$1$4,has$i,enforce$i=function(v){return has$i(v)?get$1$4(v):set$2$1(v,{})},getterFor$i=function(v){return function(k){var ie;if(!isObject$8$6(k)||(ie=get$1$4(k)).type!==v)throw TypeError$3("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$i||shared$1$i.state?(store$l=shared$1$i.state||(shared$1$i.state=new WeakMap$j),wmget$i=uncurryThis$h$7(store$l.get),wmhas$i=uncurryThis$h$7(store$l.has),wmset$i=uncurryThis$h$7(store$l.set),set$2$1=function(v,k){if(wmhas$i(store$l,v))throw new TypeError$3(OBJECT_ALREADY_INITIALIZED$i);return k.facade=v,wmset$i(store$l,v,k),k},get$1$4=function(v){return wmget$i(store$l,v)||{}},has$i=function(v){return wmhas$i(store$l,v)}):(STATE$i=sharedKey$2$c("state"),hiddenKeys$3$g[STATE$i]=!0,set$2$1=function(v,k){if(hasOwn$8$d(v,STATE$i))throw new TypeError$3(OBJECT_ALREADY_INITIALIZED$i);return k.facade=v,createNonEnumerableProperty$7$2(v,STATE$i,k),k},get$1$4=function(v){return hasOwn$8$d(v,STATE$i)?v[STATE$i]:{}},has$i=function(v){return hasOwn$8$d(v,STATE$i)});var store$l,wmget$i,wmhas$i,wmset$i,STATE$i,internalState$i={set:set$2$1,get:get$1$4,has:has$i,enforce:enforce$i,getterFor:getterFor$i},fails$k$5=fails$r$1,isCallable$f$d=isCallable$n$1,hasOwn$7$e=hasOwnProperty_1$i,DESCRIPTORS$7$g=descriptors$i,CONFIGURABLE_FUNCTION_NAME$2$4=functionName$i.CONFIGURABLE,inspectSource$2$i=inspectSource$4$8,InternalStateModule$5$1=internalState$i,enforceInternalState$2$4=InternalStateModule$5$1.enforce,getInternalState$5$2=InternalStateModule$5$1.get,defineProperty$6$5=Object.defineProperty,CONFIGURABLE_LENGTH$i=DESCRIPTORS$7$g&&!fails$k$5(function(){return defineProperty$6$5(function(){},"length",{value:8}).length!==8}),TEMPLATE$i=String(String).split("String"),makeBuiltIn$1$i=makeBuiltIn$2$i.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$7$e(v,"name")||CONFIGURABLE_FUNCTION_NAME$2$4&&v.name!==k)&&(DESCRIPTORS$7$g?defineProperty$6$5(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$i&&ie&&hasOwn$7$e(ie,"arity")&&v.length!==ie.arity&&defineProperty$6$5(v,"length",{value:ie.arity});try{ie&&hasOwn$7$e(ie,"constructor")&&ie.constructor?DESCRIPTORS$7$g&&defineProperty$6$5(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$2$4(v);return hasOwn$7$e(ae,"source")||(ae.source=TEMPLATE$i.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$i(function v(){return isCallable$f$d(this)&&getInternalState$5$2(this).source||inspectSource$2$i(this)},"toString");var isCallable$e$d=isCallable$n$1,definePropertyModule$5$6=objectDefineProperty$i,makeBuiltIn$k=makeBuiltIn$2$i.exports,defineGlobalProperty$1$i=defineGlobalProperty$3$g,defineBuiltIn$8$2=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$e$d(ie)&&makeBuiltIn$k(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$i(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$5$6.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$g={},ceil$g=Math.ceil,floor$3$4=Math.floor,mathTrunc$g=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$3$4:ceil$g)(ie)},trunc2$g=mathTrunc$g,toIntegerOrInfinity$6$2=function(v){var k=+v;return k!==k||k===0?0:trunc2$g(k)},toIntegerOrInfinity$5$4=toIntegerOrInfinity$6$2,max$1$7=Math.max,min$2$4=Math.min,toAbsoluteIndex$4$4=function(v,k){var ie=toIntegerOrInfinity$5$4(v);return ie<0?max$1$7(ie+k,0):min$2$4(ie,k)},toIntegerOrInfinity$4$5=toIntegerOrInfinity$6$2,min$1$g=Math.min,toLength$6$2=function(v){return v>0?min$1$g(toIntegerOrInfinity$4$5(v),9007199254740991):0},toLength$5$4=toLength$6$2,lengthOfArrayLike$8$1=function(v){return toLength$5$4(v.length)},toIndexedObject$4$c=toIndexedObject$6$4,toAbsoluteIndex$3$4=toAbsoluteIndex$4$4,lengthOfArrayLike$7$1=lengthOfArrayLike$8$1,createMethod$3$1=function(v){return function(k,ie,ae){var ce=toIndexedObject$4$c(k),fe=lengthOfArrayLike$7$1(ce),le=toAbsoluteIndex$3$4(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$g={includes:createMethod$3$1(!0),indexOf:createMethod$3$1(!1)},uncurryThis$g$7=functionUncurryThis$i,hasOwn$6$g=hasOwnProperty_1$i,toIndexedObject$3$g=toIndexedObject$6$4,indexOf$1$4=arrayIncludes$g.indexOf,hiddenKeys$2$g=hiddenKeys$4$c,push$2$2=uncurryThis$g$7([].push),objectKeysInternal$g=function(v,k){var ie=toIndexedObject$3$g(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$6$g(hiddenKeys$2$g,fe)&&hasOwn$6$g(ie,fe)&&push$2$2(ce,fe);for(;k.length>ae;)hasOwn$6$g(ie,fe=k[ae++])&&(~indexOf$1$4(ce,fe)||push$2$2(ce,fe));return ce},enumBugKeys$3$c=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$f=objectKeysInternal$g,enumBugKeys$2$f=enumBugKeys$3$c,hiddenKeys$1$g=enumBugKeys$2$f.concat("length","prototype");objectGetOwnPropertyNames$g.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$f(k,hiddenKeys$1$g)};var objectGetOwnPropertySymbols$g={};objectGetOwnPropertySymbols$g.f=Object.getOwnPropertySymbols;var getBuiltIn$5$c=getBuiltIn$8$8,uncurryThis$f$7=functionUncurryThis$i,getOwnPropertyNamesModule$g=objectGetOwnPropertyNames$g,getOwnPropertySymbolsModule$1$d=objectGetOwnPropertySymbols$g,anObject$c$9=anObject$e$3,concat$1$d=uncurryThis$f$7([].concat),ownKeys$1$g=getBuiltIn$5$c("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$g.f(anObject$c$9(k)),ae=getOwnPropertySymbolsModule$1$d.f;return ae?concat$1$d(ie,ae(k)):ie},hasOwn$5$g=hasOwnProperty_1$i,ownKeys2$g=ownKeys$1$g,getOwnPropertyDescriptorModule$1$4=objectGetOwnPropertyDescriptor$g,definePropertyModule$4$b=objectDefineProperty$i,copyConstructorProperties$1$g=function(v,k,ie){for(var ae=ownKeys2$g(k),ce=definePropertyModule$4$b.f,fe=getOwnPropertyDescriptorModule$1$4.f,le=0;le=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3$8(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$2$c]=ae,SUBCLASSING$8=ie.then(function(){})instanceof ae,SUBCLASSING$8?!k&&IS_BROWSER$8&&!NATIVE_PROMISE_REJECTION_EVENT$1$8:!0}),promiseConstructorDetection$8={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$8,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$8,SUBCLASSING:SUBCLASSING$8},newPromiseCapability$2$8={},aCallable$6$8=aCallable$9$2,PromiseCapability$8=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$6$8(k),this.reject=aCallable$6$8(ie)};newPromiseCapability$2$8.f=function(v){return new PromiseCapability$8(v)};var $$d$1=_export$g,IS_NODE$1$8=engineIsNode$8,global$c$c=global$t,call$f$8=functionCall$i,defineBuiltIn$6$b=defineBuiltIn$8$2,setPrototypeOf$5$1=objectSetPrototypeOf$d,setToStringTag$3$b=setToStringTag$4$1,setSpecies$1$c=setSpecies$2$1,aCallable$5$8=aCallable$9$2,isCallable$7$i=isCallable$n$1,isObject$7$c=isObject$d$1,anInstance$2$4=anInstance$3$1,speciesConstructor$2$3=speciesConstructor$3$2,task$9=task$1$8.set,microtask$9=microtask$1$8,hostReportErrors$9=hostReportErrors$1$8,perform$2$8=perform$3$8,Queue$9=queue$9,InternalStateModule$4$4=internalState$i,NativePromiseConstructor$2$8=promiseNativeConstructor$8,PromiseConstructorDetection$8=promiseConstructorDetection$8,newPromiseCapabilityModule$3$8=newPromiseCapability$2$8,PROMISE$8="Promise",FORCED_PROMISE_CONSTRUCTOR$4$8=PromiseConstructorDetection$8.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$9=PromiseConstructorDetection$8.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$8=PromiseConstructorDetection$8.SUBCLASSING,getInternalPromiseState$8=InternalStateModule$4$4.getterFor(PROMISE$8),setInternalState$3$1=InternalStateModule$4$4.set,NativePromisePrototype$1$8=NativePromiseConstructor$2$8&&NativePromiseConstructor$2$8.prototype,PromiseConstructor$8=NativePromiseConstructor$2$8,PromisePrototype$8=NativePromisePrototype$1$8,TypeError$2$c=global$c$c.TypeError,document$1$d=global$c$c.document,process$i=global$c$c.process,newPromiseCapability$1$8=newPromiseCapabilityModule$3$8.f,newGenericPromiseCapability$8=newPromiseCapability$1$8,DISPATCH_EVENT$8=!!(document$1$d&&document$1$d.createEvent&&global$c$c.dispatchEvent),UNHANDLED_REJECTION$8="unhandledrejection",REJECTION_HANDLED$8="rejectionhandled",PENDING$8=0,FULFILLED$8=1,REJECTED$8=2,HANDLED$8=1,UNHANDLED$8=2,Internal$8,OwnPromiseCapability$8,PromiseWrapper$8,nativeThen$8,isThenable$8=function(v){var k;return isObject$7$c(v)&&isCallable$7$i(k=v.then)?k:!1},callReaction$8=function(v,k){var ie=k.value,ae=k.state==FULFILLED$8,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$8&&onHandleUnhandled$8(k),k.rejection=HANDLED$8),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$2$c("Promise-chain cycle")):(ye=isThenable$8(pe))?call$f$8(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$9=function(v,k){v.notified||(v.notified=!0,microtask$9(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$8(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$8(v)}))},dispatchEvent$8=function(v,k,ie){var ae,ce;DISPATCH_EVENT$8?(ae=document$1$d.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$c$c.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$9&&(ce=global$c$c["on"+v])?ce(ae):v===UNHANDLED_REJECTION$8&&hostReportErrors$9("Unhandled promise rejection",ie)},onUnhandled$8=function(v){call$f$8(task$9,global$c$c,function(){var k=v.facade,ie=v.value,ae=isUnhandled$8(v),ce;if(ae&&(ce=perform$2$8(function(){IS_NODE$1$8?process$i.emit("unhandledRejection",ie,k):dispatchEvent$8(UNHANDLED_REJECTION$8,k,ie)}),v.rejection=IS_NODE$1$8||isUnhandled$8(v)?UNHANDLED$8:HANDLED$8,ce.error))throw ce.value})},isUnhandled$8=function(v){return v.rejection!==HANDLED$8&&!v.parent},onHandleUnhandled$8=function(v){call$f$8(task$9,global$c$c,function(){var k=v.facade;IS_NODE$1$8?process$i.emit("rejectionHandled",k):dispatchEvent$8(REJECTION_HANDLED$8,k,v.value)})},bind$3$c=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$8=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$8,notify$9(v,!0))},internalResolve$8=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$2$c("Promise can't be resolved itself");var ae=isThenable$8(k);ae?microtask$9(function(){var ce={done:!1};try{call$f$8(ae,k,bind$3$c(internalResolve$8,ce,v),bind$3$c(internalReject$8,ce,v))}catch(fe){internalReject$8(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$8,notify$9(v,!1))}catch(ce){internalReject$8({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$8&&(PromiseConstructor$8=function(k){anInstance$2$4(this,PromisePrototype$8),aCallable$5$8(k),call$f$8(Internal$8,this);var ie=getInternalPromiseState$8(this);try{k(bind$3$c(internalResolve$8,ie),bind$3$c(internalReject$8,ie))}catch(ae){internalReject$8(ie,ae)}},PromisePrototype$8=PromiseConstructor$8.prototype,Internal$8=function(k){setInternalState$3$1(this,{type:PROMISE$8,done:!1,notified:!1,parent:!1,reactions:new Queue$9,rejection:!1,state:PENDING$8,value:void 0})},Internal$8.prototype=defineBuiltIn$6$b(PromisePrototype$8,"then",function(k,ie){var ae=getInternalPromiseState$8(this),ce=newPromiseCapability$1$8(speciesConstructor$2$3(this,PromiseConstructor$8));return ae.parent=!0,ce.ok=isCallable$7$i(k)?k:!0,ce.fail=isCallable$7$i(ie)&&ie,ce.domain=IS_NODE$1$8?process$i.domain:void 0,ae.state==PENDING$8?ae.reactions.add(ce):microtask$9(function(){callReaction$8(ce,ae)}),ce.promise}),OwnPromiseCapability$8=function(){var v=new Internal$8,k=getInternalPromiseState$8(v);this.promise=v,this.resolve=bind$3$c(internalResolve$8,k),this.reject=bind$3$c(internalReject$8,k)},newPromiseCapabilityModule$3$8.f=newPromiseCapability$1$8=function(v){return v===PromiseConstructor$8||v===PromiseWrapper$8?new OwnPromiseCapability$8(v):newGenericPromiseCapability$8(v)},isCallable$7$i(NativePromiseConstructor$2$8)&&NativePromisePrototype$1$8!==Object.prototype)){nativeThen$8=NativePromisePrototype$1$8.then,NATIVE_PROMISE_SUBCLASSING$8||defineBuiltIn$6$b(NativePromisePrototype$1$8,"then",function(k,ie){var ae=this;return new PromiseConstructor$8(function(ce,fe){call$f$8(nativeThen$8,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1$8.constructor}catch{}setPrototypeOf$5$1&&setPrototypeOf$5$1(NativePromisePrototype$1$8,PromisePrototype$8)}$$d$1({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$8},{Promise:PromiseConstructor$8});setToStringTag$3$b(PromiseConstructor$8,PROMISE$8,!1);setSpecies$1$c(PROMISE$8);var iterators$d={},wellKnownSymbol$b$b=wellKnownSymbol$j$1,Iterators$4$b=iterators$d,ITERATOR$5$9=wellKnownSymbol$b$b("iterator"),ArrayPrototype$1$b=Array.prototype,isArrayIteratorMethod$2$1=function(v){return v!==void 0&&(Iterators$4$b.Array===v||ArrayPrototype$1$b[ITERATOR$5$9]===v)},classof$7$5=classof$9$2,getMethod$2$c=getMethod$4$3,Iterators$3$b=iterators$d,wellKnownSymbol$a$c=wellKnownSymbol$j$1,ITERATOR$4$b=wellKnownSymbol$a$c("iterator"),getIteratorMethod$3$1=function(v){if(v!=null)return getMethod$2$c(v,ITERATOR$4$b)||getMethod$2$c(v,"@@iterator")||Iterators$3$b[classof$7$5(v)]},call$e$9=functionCall$i,aCallable$4$c=aCallable$9$2,anObject$9$b=anObject$e$3,tryToString$2$c=tryToString$5$2,getIteratorMethod$2$c=getIteratorMethod$3$1,$TypeError$5$i=TypeError,getIterator$2$1=function(v,k){var ie=arguments.length<2?getIteratorMethod$2$c(v):k;if(aCallable$4$c(ie))return anObject$9$b(call$e$9(ie,v));throw $TypeError$5$i(tryToString$2$c(v)+" is not iterable")},call$d$b=functionCall$i,anObject$8$c=anObject$e$3,getMethod$1$i=getMethod$4$3,iteratorClose$1$8=function(v,k,ie){var ae,ce;anObject$8$c(v);try{if(ae=getMethod$1$i(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$d$b(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$8$c(ae),ie},bind$2$c=functionBindContext$c,call$c$c=functionCall$i,anObject$7$d=anObject$e$3,tryToString$1$i=tryToString$5$2,isArrayIteratorMethod$1$c=isArrayIteratorMethod$2$1,lengthOfArrayLike$6$4=lengthOfArrayLike$8$1,isPrototypeOf$2$c=objectIsPrototypeOf$i,getIterator$1$c=getIterator$2$1,getIteratorMethod$1$c=getIteratorMethod$3$1,iteratorClose$9=iteratorClose$1$8,$TypeError$4$i=TypeError,Result$8=function(v,k){this.stopped=v,this.result=k},ResultPrototype$8=Result$8.prototype,iterate$2$8=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$2$c(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$9(pe,"normal",ur),new Result$8(!0,ur)},Or=function(ur){return ce?(anObject$7$d(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$1$c(v),!ye)throw $TypeError$4$i(tryToString$1$i(v)+" is not iterable");if(isArrayIteratorMethod$1$c(ye)){for(me=0,Ee=lengthOfArrayLike$6$4(v);Ee>me;me++)if(cr=Or(v[me]),cr&&isPrototypeOf$2$c(ResultPrototype$8,cr))return cr;return new Result$8(!1)}pe=getIterator$1$c(v,ye)}for(Br=pe.next;!($r=call$c$c(Br,pe)).done;){try{cr=Or($r.value)}catch(ur){iteratorClose$9(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$2$c(ResultPrototype$8,cr))return cr}return new Result$8(!1)},wellKnownSymbol$9$c=wellKnownSymbol$j$1,ITERATOR$3$b=wellKnownSymbol$9$c("iterator"),SAFE_CLOSING$c=!1;try{called$c=0,iteratorWithReturn$c={next:function(){return{done:!!called$c++}},return:function(){SAFE_CLOSING$c=!0}},iteratorWithReturn$c[ITERATOR$3$b]=function(){return this},Array.from(iteratorWithReturn$c,function(){throw 2})}catch(v){}var called$c,iteratorWithReturn$c,checkCorrectnessOfIteration$2$1=function(v,k){if(!k&&!SAFE_CLOSING$c)return!1;var ie=!1;try{var ae={};ae[ITERATOR$3$b]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1$8=promiseNativeConstructor$8,checkCorrectnessOfIteration$1$c=checkCorrectnessOfIteration$2$1,FORCED_PROMISE_CONSTRUCTOR$3$8=promiseConstructorDetection$8.CONSTRUCTOR,promiseStaticsIncorrectIteration$8=FORCED_PROMISE_CONSTRUCTOR$3$8||!checkCorrectnessOfIteration$1$c(function(v){NativePromiseConstructor$1$8.all(v).then(void 0,function(){})}),$$c$2=_export$g,call$b$c=functionCall$i,aCallable$3$c=aCallable$9$2,newPromiseCapabilityModule$2$8=newPromiseCapability$2$8,perform$1$8=perform$3$8,iterate$1$8=iterate$2$8,PROMISE_STATICS_INCORRECT_ITERATION$1$8=promiseStaticsIncorrectIteration$8;$$c$2({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$8},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$8.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$8(function(){var ve=aCallable$3$c(ie.resolve),pe=[],ye=0,me=1;iterate$1$8(k,function(Ee){var cr=ye++,Br=!1;me++,call$b$c(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$b$3=_export$g,FORCED_PROMISE_CONSTRUCTOR$2$8=promiseConstructorDetection$8.CONSTRUCTOR,NativePromiseConstructor$b=promiseNativeConstructor$8,getBuiltIn$1$i=getBuiltIn$8$8,isCallable$6$i=isCallable$n$1,defineBuiltIn$5$b=defineBuiltIn$8$2,NativePromisePrototype$9=NativePromiseConstructor$b&&NativePromiseConstructor$b.prototype;$$b$3({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$8,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$6$i(NativePromiseConstructor$b)&&(method$8=getBuiltIn$1$i("Promise").prototype.catch,NativePromisePrototype$9.catch!==method$8&&defineBuiltIn$5$b(NativePromisePrototype$9,"catch",method$8,{unsafe:!0}));var method$8,$$a$3=_export$g,call$a$c=functionCall$i,aCallable$2$c=aCallable$9$2,newPromiseCapabilityModule$1$8=newPromiseCapability$2$8,perform$b=perform$3$8,iterate$a=iterate$2$8,PROMISE_STATICS_INCORRECT_ITERATION$9=promiseStaticsIncorrectIteration$8;$$a$3({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$9},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$8.f(ie),ce=ae.reject,fe=perform$b(function(){var le=aCallable$2$c(ie.resolve);iterate$a(k,function(ve){call$a$c(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$9$3=_export$g,call$9$c=functionCall$i,newPromiseCapabilityModule$b=newPromiseCapability$2$8,FORCED_PROMISE_CONSTRUCTOR$1$8=promiseConstructorDetection$8.CONSTRUCTOR;$$9$3({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$8},{reject:function v(k){var ie=newPromiseCapabilityModule$b.f(this);return call$9$c(ie.reject,void 0,k),ie.promise}});var anObject$6$d=anObject$e$3,isObject$6$c=isObject$d$1,newPromiseCapability$a=newPromiseCapability$2$8,promiseResolve$1$8=function(v,k){if(anObject$6$d(v),isObject$6$c(k)&&k.constructor===v)return k;var ie=newPromiseCapability$a.f(v),ae=ie.resolve;return ae(k),ie.promise},$$8$4=_export$g,getBuiltIn$q=getBuiltIn$8$8,FORCED_PROMISE_CONSTRUCTOR$d=promiseConstructorDetection$8.CONSTRUCTOR,promiseResolve$9=promiseResolve$1$8;getBuiltIn$q("Promise");$$8$4({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$d},{resolve:function v(k){return promiseResolve$9(this,k)}});var WebStorageService=class{getItem(v){return new Promise(k=>{const ie=localStorage.getItem(v);k(ie)})}setItem(v,k){return new Promise(ie=>{localStorage.setItem(v,k),ie()})}removeItem(v){return new Promise(k=>{localStorage.removeItem(v),k()})}},objectDefineProperties$c={},internalObjectKeys$h=objectKeysInternal$g,enumBugKeys$1$g=enumBugKeys$3$c,objectKeys$2$a=Object.keys||function v(k){return internalObjectKeys$h(k,enumBugKeys$1$g)},DESCRIPTORS$5$i=descriptors$i,V8_PROTOTYPE_DEFINE_BUG$j=v8PrototypeDefineBug$i,definePropertyModule$2$g=objectDefineProperty$i,anObject$5$d=anObject$e$3,toIndexedObject$2$g=toIndexedObject$6$4,objectKeys$1$f=objectKeys$2$a;objectDefineProperties$c.f=DESCRIPTORS$5$i&&!V8_PROTOTYPE_DEFINE_BUG$j?Object.defineProperties:function v(k,ie){anObject$5$d(k);for(var ae=toIndexedObject$2$g(ie),ce=objectKeys$1$f(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$2$g.f(k,ve=ce[le++],ae[ve]);return k};var anObject$4$e=anObject$e$3,definePropertiesModule$c=objectDefineProperties$c,enumBugKeys$j=enumBugKeys$3$c,hiddenKeys$k=hiddenKeys$4$c,html$e=html$2$8,documentCreateElement$1$c=documentCreateElement$2$a,sharedKey$1$i=sharedKey$3$c,GT$c=">",LT$c="<",PROTOTYPE$1$4="prototype",SCRIPT$c="script",IE_PROTO$1$c=sharedKey$1$i("IE_PROTO"),EmptyConstructor$c=function(){},scriptTag$c=function(v){return LT$c+SCRIPT$c+GT$c+v+LT$c+"/"+SCRIPT$c+GT$c},NullProtoObjectViaActiveX$c=function(v){v.write(scriptTag$c("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$c=function(){var v=documentCreateElement$1$c("iframe"),k="java"+SCRIPT$c+":",ie;return v.style.display="none",html$e.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$c("document.F=Object")),ie.close(),ie.F},activeXDocument$c,NullProtoObject$c=function(){try{activeXDocument$c=new ActiveXObject("htmlfile")}catch{}NullProtoObject$c=typeof document<"u"?document.domain&&activeXDocument$c?NullProtoObjectViaActiveX$c(activeXDocument$c):NullProtoObjectViaIFrame$c():NullProtoObjectViaActiveX$c(activeXDocument$c);for(var v=enumBugKeys$j.length;v--;)delete NullProtoObject$c[PROTOTYPE$1$4][enumBugKeys$j[v]];return NullProtoObject$c()};hiddenKeys$k[IE_PROTO$1$c]=!0;var objectCreate$c=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$c[PROTOTYPE$1$4]=anObject$4$e(k),ae=new EmptyConstructor$c,EmptyConstructor$c[PROTOTYPE$1$4]=null,ae[IE_PROTO$1$c]=k):ae=NullProtoObject$c(),ie===void 0?ae:definePropertiesModule$c.f(ae,ie)},wellKnownSymbol$8$d=wellKnownSymbol$j$1,create$3$1=objectCreate$c,defineProperty$4$c=objectDefineProperty$i.f,UNSCOPABLES$c=wellKnownSymbol$8$d("unscopables"),ArrayPrototype$e=Array.prototype;ArrayPrototype$e[UNSCOPABLES$c]==null&&defineProperty$4$c(ArrayPrototype$e,UNSCOPABLES$c,{configurable:!0,value:create$3$1(null)});var addToUnscopables$2$3=function(v){ArrayPrototype$e[UNSCOPABLES$c][v]=!0},fails$g$7=fails$r$1,correctPrototypeGetter$c=!fails$g$7(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype}),hasOwn$2$i=hasOwnProperty_1$i,isCallable$5$i=isCallable$n$1,toObject$5$5=toObject$7$1,sharedKey$k=sharedKey$3$c,CORRECT_PROTOTYPE_GETTER$c=correctPrototypeGetter$c,IE_PROTO$d=sharedKey$k("IE_PROTO"),$Object$m=Object,ObjectPrototype$2$4=$Object$m.prototype,objectGetPrototypeOf$c=CORRECT_PROTOTYPE_GETTER$c?$Object$m.getPrototypeOf:function(v){var k=toObject$5$5(v);if(hasOwn$2$i(k,IE_PROTO$d))return k[IE_PROTO$d];var ie=k.constructor;return isCallable$5$i(ie)&&k instanceof ie?ie.prototype:k instanceof $Object$m?ObjectPrototype$2$4:null},fails$f$7=fails$r$1,isCallable$4$i=isCallable$n$1,getPrototypeOf$3$4=objectGetPrototypeOf$c,defineBuiltIn$4$c=defineBuiltIn$8$2,wellKnownSymbol$7$d=wellKnownSymbol$j$1,ITERATOR$2$d=wellKnownSymbol$7$d("iterator"),BUGGY_SAFARI_ITERATORS$1$c=!1,IteratorPrototype$2$c,PrototypeOfArrayIteratorPrototype$c,arrayIterator$c;[].keys&&(arrayIterator$c=[].keys(),"next"in arrayIterator$c?(PrototypeOfArrayIteratorPrototype$c=getPrototypeOf$3$4(getPrototypeOf$3$4(arrayIterator$c)),PrototypeOfArrayIteratorPrototype$c!==Object.prototype&&(IteratorPrototype$2$c=PrototypeOfArrayIteratorPrototype$c)):BUGGY_SAFARI_ITERATORS$1$c=!0);var NEW_ITERATOR_PROTOTYPE$c=IteratorPrototype$2$c==null||fails$f$7(function(){var v={};return IteratorPrototype$2$c[ITERATOR$2$d].call(v)!==v});NEW_ITERATOR_PROTOTYPE$c&&(IteratorPrototype$2$c={});isCallable$4$i(IteratorPrototype$2$c[ITERATOR$2$d])||defineBuiltIn$4$c(IteratorPrototype$2$c,ITERATOR$2$d,function(){return this});var iteratorsCore$c={IteratorPrototype:IteratorPrototype$2$c,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1$c},IteratorPrototype$1$c=iteratorsCore$c.IteratorPrototype,create$2$6=objectCreate$c,createPropertyDescriptor$2$g=createPropertyDescriptor$5$4,setToStringTag$2$c=setToStringTag$4$1,Iterators$2$c=iterators$d,returnThis$1$c=function(){return this},createIteratorConstructor$1$c=function(v,k,ie,ae){var ce=k+" Iterator";return v.prototype=create$2$6(IteratorPrototype$1$c,{next:createPropertyDescriptor$2$g(+!ae,ie)}),setToStringTag$2$c(v,ce,!1),Iterators$2$c[ce]=returnThis$1$c,v},$$7$7=_export$g,call$8$c=functionCall$i,FunctionName$1$4=functionName$i,isCallable$3$i=isCallable$n$1,createIteratorConstructor$d=createIteratorConstructor$1$c,getPrototypeOf$2$4=objectGetPrototypeOf$c,setPrototypeOf$4$4=objectSetPrototypeOf$d,setToStringTag$1$d=setToStringTag$4$1,createNonEnumerableProperty$5$6=createNonEnumerableProperty$8$2,defineBuiltIn$3$d=defineBuiltIn$8$2,wellKnownSymbol$6$d=wellKnownSymbol$j$1,Iterators$1$d=iterators$d,IteratorsCore$c=iteratorsCore$c,PROPER_FUNCTION_NAME$1$c=FunctionName$1$4.PROPER,CONFIGURABLE_FUNCTION_NAME$1$c=FunctionName$1$4.CONFIGURABLE,IteratorPrototype$e=IteratorsCore$c.IteratorPrototype,BUGGY_SAFARI_ITERATORS$d=IteratorsCore$c.BUGGY_SAFARI_ITERATORS,ITERATOR$1$d=wellKnownSymbol$6$d("iterator"),KEYS$c="keys",VALUES$c="values",ENTRIES$c="entries",returnThis$d=function(){return this},defineIterator$1$c=function(v,k,ie,ae,ce,fe,le){createIteratorConstructor$d(ie,k,ae);var ve=function(ur){if(ur===ce&&cr)return cr;if(!BUGGY_SAFARI_ITERATORS$d&&ur in me)return me[ur];switch(ur){case KEYS$c:return function(){return new ie(this,ur)};case VALUES$c:return function(){return new ie(this,ur)};case ENTRIES$c:return function(){return new ie(this,ur)}}return function(){return new ie(this)}},pe=k+" Iterator",ye=!1,me=v.prototype,Ee=me[ITERATOR$1$d]||me["@@iterator"]||ce&&me[ce],cr=!BUGGY_SAFARI_ITERATORS$d&&Ee||ve(ce),Br=k=="Array"&&me.entries||Ee,$r,Pr,Or;if(Br&&($r=getPrototypeOf$2$4(Br.call(new v)),$r!==Object.prototype&&$r.next&&(getPrototypeOf$2$4($r)!==IteratorPrototype$e&&(setPrototypeOf$4$4?setPrototypeOf$4$4($r,IteratorPrototype$e):isCallable$3$i($r[ITERATOR$1$d])||defineBuiltIn$3$d($r,ITERATOR$1$d,returnThis$d)),setToStringTag$1$d($r,pe,!0))),PROPER_FUNCTION_NAME$1$c&&ce==VALUES$c&&Ee&&Ee.name!==VALUES$c&&(CONFIGURABLE_FUNCTION_NAME$1$c?createNonEnumerableProperty$5$6(me,"name",VALUES$c):(ye=!0,cr=function(){return call$8$c(Ee,this)})),ce)if(Pr={values:ve(VALUES$c),keys:fe?cr:ve(KEYS$c),entries:ve(ENTRIES$c)},le)for(Or in Pr)(BUGGY_SAFARI_ITERATORS$d||ye||!(Or in me))&&defineBuiltIn$3$d(me,Or,Pr[Or]);else $$7$7({target:k,proto:!0,forced:BUGGY_SAFARI_ITERATORS$d||ye},Pr);return me[ITERATOR$1$d]!==cr&&defineBuiltIn$3$d(me,ITERATOR$1$d,cr,{name:ce}),Iterators$1$d[k]=cr,Pr},toIndexedObject$1$g=toIndexedObject$6$4,addToUnscopables$1$c=addToUnscopables$2$3,Iterators$h=iterators$d,InternalStateModule$3$4=internalState$i,defineProperty$3$c=objectDefineProperty$i.f,defineIterator$d=defineIterator$1$c,DESCRIPTORS$4$i=descriptors$i,ARRAY_ITERATOR$c="Array Iterator",setInternalState$2$4=InternalStateModule$3$4.set,getInternalState$4$4=InternalStateModule$3$4.getterFor(ARRAY_ITERATOR$c),es_array_iterator$9=defineIterator$d(Array,"Array",function(v,k){setInternalState$2$4(this,{type:ARRAY_ITERATOR$c,target:toIndexedObject$1$g(v),index:0,kind:k})},function(){var v=getInternalState$4$4(this),k=v.target,ie=v.kind,ae=v.index++;return!k||ae>=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$c=Iterators$h.Arguments=Iterators$h.Array;addToUnscopables$1$c("keys");addToUnscopables$1$c("values");addToUnscopables$1$c("entries");if(DESCRIPTORS$4$i&&values$c.name!=="values")try{defineProperty$3$c(values$c,"name",{value:"values"})}catch(v){}var domIterables$9={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$j=documentCreateElement$2$a,classList$9=documentCreateElement$j("span").classList,DOMTokenListPrototype$1$9=classList$9&&classList$9.constructor&&classList$9.constructor.prototype,domTokenListPrototype$9=DOMTokenListPrototype$1$9===Object.prototype?void 0:DOMTokenListPrototype$1$9,global$b$d=global$t,DOMIterables$9=domIterables$9,DOMTokenListPrototype$a=domTokenListPrototype$9,ArrayIteratorMethods$9=es_array_iterator$9,createNonEnumerableProperty$4$c=createNonEnumerableProperty$8$2,wellKnownSymbol$5$d=wellKnownSymbol$j$1,ITERATOR$h=wellKnownSymbol$5$d("iterator"),TO_STRING_TAG$1$g=wellKnownSymbol$5$d("toStringTag"),ArrayValues$9=ArrayIteratorMethods$9.values,handlePrototype$9=function(v,k){if(v){if(v[ITERATOR$h]!==ArrayValues$9)try{createNonEnumerableProperty$4$c(v,ITERATOR$h,ArrayValues$9)}catch{v[ITERATOR$h]=ArrayValues$9}if(v[TO_STRING_TAG$1$g]||createNonEnumerableProperty$4$c(v,TO_STRING_TAG$1$g,k),DOMIterables$9[k]){for(var ie in ArrayIteratorMethods$9)if(v[ie]!==ArrayIteratorMethods$9[ie])try{createNonEnumerableProperty$4$c(v,ie,ArrayIteratorMethods$9[ie])}catch{v[ie]=ArrayIteratorMethods$9[ie]}}}};for(COLLECTION_NAME$9 in DOMIterables$9)handlePrototype$9(global$b$d[COLLECTION_NAME$9]&&global$b$d[COLLECTION_NAME$9].prototype,COLLECTION_NAME$9);var COLLECTION_NAME$9;handlePrototype$9(DOMTokenListPrototype$a,"DOMTokenList");var Logger$1=class{constructor(v){this.namespace=v}emit(v,...k){if(!!Logger$1.debug){if(this.namespace&&v!=="error"){console[v](this.namespace,...k);return}console[v](...k)}}log(...v){this.emit("log",...v)}info(...v){this.emit("info",...v)}warn(...v){this.emit("warn",...v)}error(...v){this.emit("error",...v)}};Logger$1.debug=!1;var logger$1=new Logger$1,$$6$8=_export$g,$includes$2=arrayIncludes$g.includes,fails$e$a=fails$r$1,addToUnscopables$d=addToUnscopables$2$3,BROKEN_ON_SPARSE$2=fails$e$a(function(){return!Array(1).includes()});$$6$8({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE$2},{includes:function v(k){return $includes$2(this,k,arguments.length>1?arguments[1]:void 0)}});addToUnscopables$d("includes");var isObject$5$i=isObject$d$1,classof$6$7=classofRaw$1$g,wellKnownSymbol$4$d=wellKnownSymbol$j$1,MATCH$1$2=wellKnownSymbol$4$d("match"),isRegexp$3=function(v){var k;return isObject$5$i(v)&&((k=v[MATCH$1$2])!==void 0?!!k:classof$6$7(v)=="RegExp")},isRegExp$1$1=isRegexp$3,$TypeError$3$i=TypeError,notARegexp$2=function(v){if(isRegExp$1$1(v))throw $TypeError$3$i("The method doesn't accept regular expressions");return v},classof$5$b=classof$9$2,$String$l=String,toString$4$4=function(v){if(classof$5$b(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$l(v)},wellKnownSymbol$3$g=wellKnownSymbol$j$1,MATCH$4=wellKnownSymbol$3$g("match"),correctIsRegexpLogic$2=function(v){var k=/./;try{"/./"[v](k)}catch{try{return k[MATCH$4]=!1,"/./"[v](k)}catch{}}return!1},$$5$8=_export$g,uncurryThis$a$g=functionUncurryThis$i,notARegExp$2=notARegexp$2,requireObjectCoercible$2$g=requireObjectCoercible$5$2,toString$3$5=toString$4$4,correctIsRegExpLogic$2=correctIsRegexpLogic$2,stringIndexOf$3=uncurryThis$a$g("".indexOf);$$5$8({target:"String",proto:!0,forced:!correctIsRegExpLogic$2("includes")},{includes:function v(k){return!!~stringIndexOf$3(toString$3$5(requireObjectCoercible$2$g(this)),toString$3$5(notARegExp$2(k)),arguments.length>1?arguments[1]:void 0)}});var DESCRIPTORS$3$i=descriptors$i,uncurryThis$9$g=functionUncurryThis$i,call$7$c=functionCall$i,fails$d$b=fails$r$1,objectKeys$h=objectKeys$2$a,getOwnPropertySymbolsModule$h=objectGetOwnPropertySymbols$g,propertyIsEnumerableModule$h=objectPropertyIsEnumerable$g,toObject$4$6=toObject$7$1,IndexedObject$2$5=indexedObject$g,$assign$d=Object.assign,defineProperty$2$g=Object.defineProperty,concat$i=uncurryThis$9$g([].concat),objectAssign$d=!$assign$d||fails$d$b(function(){if(DESCRIPTORS$3$i&&$assign$d({b:1},$assign$d(defineProperty$2$g({},"a",{enumerable:!0,get:function(){defineProperty$2$g(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},k={},ie=Symbol(),ae="abcdefghijklmnopqrst";return v[ie]=7,ae.split("").forEach(function(ce){k[ce]=ce}),$assign$d({},v)[ie]!=7||objectKeys$h($assign$d({},k)).join("")!=ae})?function v(k,ie){for(var ae=toObject$4$6(k),ce=arguments.length,fe=1,le=getOwnPropertySymbolsModule$h.f,ve=propertyIsEnumerableModule$h.f;ce>fe;)for(var pe=IndexedObject$2$5(arguments[fe++]),ye=le?concat$i(objectKeys$h(pe),le(pe)):objectKeys$h(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$3$i||call$7$c(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$d,$$4$9=_export$g,assign2$d=objectAssign$d;$$4$9({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$d},{assign:assign2$d});var EventEmitter=class{constructor(){this.emitter=new import_events.EventEmitter}on(v,k){return this.emitter.on(v,k),{remove:()=>this.emitter.off(v,k)}}off(v,k){this.emitter.off(v,k)}emit(v,k){this.emitter.emit(v,k)}},PACKAGE_NAME="near-wallet-selector",RECENTLY_SIGNED_IN_WALLETS="recentlySignedInWallets",CONTRACT="contract",PENDING_CONTRACT="contract:pending",SELECTED_WALLET_ID="selectedWalletId",PENDING_SELECTED_WALLET_ID="selectedWalletId:pending",WalletModules=class{constructor({factories:v,storage:k,options:ie,store:ae,emitter:ce,provider:fe}){this.factories=v,this.storage=k,this.options=ie,this.store=ae,this.emitter=ce,this.provider=fe,this.modules=[],this.instances={}}validateWallet(v){return __awaiter$l(this,void 0,void 0,function*(){let k=[];const ie=yield this.getWallet(v);return ie&&(k=yield ie.getAccounts().catch(ae=>(logger$1.log(`Failed to validate ${ie.id} during setup`),logger$1.error(ae),[]))),k})}resolveStorageState(){return __awaiter$l(this,void 0,void 0,function*(){const v=new JsonStorage(this.storage,PACKAGE_NAME),k=yield v.getItem(PENDING_SELECTED_WALLET_ID),ie=yield v.getItem(PENDING_CONTRACT);if(k&&ie){const ve=yield this.validateWallet(k);if(yield v.removeItem(PENDING_SELECTED_WALLET_ID),yield v.removeItem(PENDING_CONTRACT),ve.length){const{selectedWalletId:pe}=this.store.getState(),ye=yield this.getWallet(pe);ye&&k!==pe&&(yield ye.signOut().catch(Ee=>{logger$1.log("Failed to sign out existing wallet"),logger$1.error(Ee)}));const me=yield this.setWalletAsRecentlySignedIn(k);return{accounts:ve,contract:ie,selectedWalletId:k,recentlySignedInWallets:me}}}const{contract:ae,selectedWalletId:ce}=this.store.getState(),fe=yield this.validateWallet(ce),le=yield v.getItem(RECENTLY_SIGNED_IN_WALLETS);return fe.length?{accounts:fe,contract:ae,selectedWalletId:ce,recentlySignedInWallets:le||[]}:{accounts:[],contract:null,selectedWalletId:null,recentlySignedInWallets:le||[]}})}setWalletAsRecentlySignedIn(v){return __awaiter$l(this,void 0,void 0,function*(){const k=new JsonStorage(this.storage,PACKAGE_NAME);let ie=yield k.getItem(RECENTLY_SIGNED_IN_WALLETS);return ie||(ie=[]),ie.includes(v)||(ie.unshift(v),ie=ie.slice(0,5),yield k.setItem(RECENTLY_SIGNED_IN_WALLETS,ie)),ie})}signOutWallet(v){return __awaiter$l(this,void 0,void 0,function*(){const k=yield this.getWallet(v);yield k.signOut().catch(ie=>{logger$1.log(`Failed to sign out ${k.id}`),logger$1.error(ie),this.onWalletSignedOut(k.id)})})}onWalletSignedIn(v,{accounts:k,contractId:ie,methodNames:ae}){return __awaiter$l(this,void 0,void 0,function*(){const{selectedWalletId:ce}=this.store.getState(),fe=new JsonStorage(this.storage,PACKAGE_NAME),le={contractId:ie,methodNames:ae};if(!k.length){this.getModule(v).type==="browser"&&(yield fe.setItem(PENDING_SELECTED_WALLET_ID,v),yield fe.setItem(PENDING_CONTRACT,le));return}ce&&ce!==v&&(yield this.signOutWallet(ce));const ve=yield this.setWalletAsRecentlySignedIn(v);this.store.dispatch({type:"WALLET_CONNECTED",payload:{walletId:v,contract:le,accounts:k,recentlySignedInWallets:ve}}),this.emitter.emit("signedIn",{walletId:v,contractId:ie,methodNames:ae,accounts:k})})}onWalletSignedOut(v){this.store.dispatch({type:"WALLET_DISCONNECTED",payload:{walletId:v}}),this.emitter.emit("signedOut",{walletId:v})}setupWalletEmitter(v){const k=new EventEmitter;return k.on("signedOut",()=>{this.onWalletSignedOut(v.id)}),k.on("signedIn",ie=>{this.onWalletSignedIn(v.id,ie)}),k.on("accountsChanged",({accounts:ie})=>__awaiter$l(this,void 0,void 0,function*(){if(this.emitter.emit("accountsChanged",{walletId:v.id,accounts:ie}),!ie.length)return this.signOutWallet(v.id);this.store.dispatch({type:"ACCOUNTS_CHANGED",payload:{walletId:v.id,accounts:ie}})})),k.on("networkChanged",({networkId:ie})=>{this.emitter.emit("networkChanged",{walletId:v.id,networkId:ie})}),k.on("uriChanged",({uri:ie})=>{this.emitter.emit("uriChanged",{walletId:v.id,uri:ie})}),k}decorateWallet(v){const k=v.signIn,ie=v.signOut,ae=v.signMessage;return v.signIn=ce=>__awaiter$l(this,void 0,void 0,function*(){const fe=yield k(ce),{contractId:le,methodNames:ve=[]}=ce;return yield this.onWalletSignedIn(v.id,{accounts:fe,contractId:le,methodNames:ve}),fe}),v.signOut=()=>__awaiter$l(this,void 0,void 0,function*(){yield ie(),this.onWalletSignedOut(v.id)}),v.signMessage=ce=>__awaiter$l(this,void 0,void 0,function*(){if(ae===void 0)throw Error(`The signMessage method is not supported by ${v.metadata.name}`);return yield ae(ce)}),v}setupInstance(v){return __awaiter$l(this,void 0,void 0,function*(){if(!v.metadata.available){const ie=v.type==="injected"?"not installed":"not available";throw Error(`${v.metadata.name} is ${ie}`)}const k=Object.assign({id:v.id,type:v.type,metadata:v.metadata},yield v.init({id:v.id,type:v.type,metadata:v.metadata,options:this.options,store:this.store.toReadOnly(),provider:this.provider,emitter:this.setupWalletEmitter(v),logger:new Logger$1(v.id),storage:new JsonStorage(this.storage,[PACKAGE_NAME,v.id])}));return this.decorateWallet(k)})}getModule(v){return this.modules.find(k=>k.id===v)}getWallet(v){return __awaiter$l(this,void 0,void 0,function*(){const k=this.getModule(v);if(!k)return null;const{selectedWalletId:ie}=this.store.getState();return!k.metadata.available&&ie?(this.onWalletSignedOut(ie),null):yield k.wallet()})}setup(){return __awaiter$l(this,void 0,void 0,function*(){const v=[];for(let fe=0;fe(logger$1.log("Failed to setup module"),logger$1.error(ve),null));!le||v.some(ve=>ve.id===le.id)||v.push({id:le.id,type:le.type,metadata:le.metadata,wallet:()=>__awaiter$l(this,void 0,void 0,function*(){let ve=this.instances[le.id];return ve||(ve=yield this.setupInstance(le),this.instances[le.id]=ve,ve)})})}this.modules=v;const{accounts:k,contract:ie,selectedWalletId:ae,recentlySignedInWallets:ce}=yield this.resolveStorageState();this.store.dispatch({type:"SETUP_WALLET_MODULES",payload:{modules:v,accounts:k,contract:ie,selectedWalletId:ae,recentlySignedInWallets:ce}});for(let fe=0;fe{switch(v){case"mainnet":return{networkId:v,nodeUrl:"https://rpc.mainnet.near.org",helperUrl:"https://helper.mainnet.near.org",explorerUrl:"https://explorer.near.org",indexerUrl:"https://api.kitwallet.app"};case"testnet":return{networkId:v,nodeUrl:"https://rpc.testnet.near.org",helperUrl:"https://helper.testnet.near.org",explorerUrl:"https://explorer.testnet.near.org",indexerUrl:"https://testnet-api.kitwallet.app"};default:throw Error(`Failed to find config for: '${v}'`)}},resolveNetwork=v=>typeof v=="string"?getNetworkPreset(v):v,resolveOptions=v=>({options:{languageCode:v.languageCode||void 0,network:resolveNetwork(v.network),debug:v.debug||!1,optimizeWalletOrder:v.optimizeWalletOrder!==!1,randomizeWalletOrder:v.randomizeWalletOrder||!1,relayerUrl:v.relayerUrl||void 0},storage:v.storage||new WebStorageService}),reducer=(v,k)=>{switch(logger$1.log("Store Action",k),k.type){case"SETUP_WALLET_MODULES":{const{modules:ie,accounts:ae,contract:ce,selectedWalletId:fe,recentlySignedInWallets:le}=k.payload,ve=ae.map((pe,ye)=>Object.assign(Object.assign({},pe),{active:ye===0}));return Object.assign(Object.assign({},v),{modules:ie,accounts:ve,contract:ce,selectedWalletId:fe,recentlySignedInWallets:le})}case"WALLET_CONNECTED":{const{walletId:ie,contract:ae,accounts:ce,recentlySignedInWallets:fe}=k.payload;if(!ce.length)return v;const le=v.accounts.findIndex(pe=>pe.active),ve=ce.map((pe,ye)=>Object.assign(Object.assign({},pe),{active:ye===(le>-1?le:0)}));return Object.assign(Object.assign({},v),{contract:ae,accounts:ve,selectedWalletId:ie,recentlySignedInWallets:fe})}case"WALLET_DISCONNECTED":{const{walletId:ie}=k.payload;return ie!==v.selectedWalletId?v:Object.assign(Object.assign({},v),{contract:null,accounts:[],selectedWalletId:null})}case"ACCOUNTS_CHANGED":{const{walletId:ie,accounts:ae}=k.payload;if(ie!==v.selectedWalletId)return v;const ce=v.accounts.find(ve=>ve.active),fe=!ae.some(ve=>ve.accountId===(ce==null?void 0:ce.accountId)),le=ae.map((ve,pe)=>Object.assign(Object.assign({},ve),{active:fe?pe===0:ve.accountId===(ce==null?void 0:ce.accountId)}));return Object.assign(Object.assign({},v),{accounts:le})}case"SET_ACTIVE_ACCOUNT":{const{accountId:ie}=k.payload,ae=v.accounts.map(ce=>Object.assign(Object.assign({},ce),{active:ce.accountId===ie}));return Object.assign(Object.assign({},v),{accounts:ae})}default:return v}},createStore=v=>__awaiter$l(void 0,void 0,void 0,function*(){const k=new JsonStorage(v,PACKAGE_NAME),ie={modules:[],accounts:[],contract:yield k.getItem(CONTRACT),selectedWalletId:yield k.getItem(SELECTED_WALLET_ID),recentlySignedInWallets:(yield k.getItem(RECENTLY_SIGNED_IN_WALLETS))||[]},ae=new BehaviorSubject(ie),ce=new Subject;ce.pipe(scan(reducer,ie)).subscribe(ae);const fe=(ve,pe,ye,me)=>__awaiter$l(void 0,void 0,void 0,function*(){if(pe[me]!==ve[me]){if(pe[me]){yield k.setItem(ye,pe[me]);return}yield k.removeItem(ye)}});let le=ae.getValue();return ae.subscribe(ve=>{fe(le,ve,SELECTED_WALLET_ID,"selectedWalletId"),fe(le,ve,CONTRACT,"contract"),fe(le,ve,RECENTLY_SIGNED_IN_WALLETS,"recentlySignedInWallets"),le=ve}),{observable:ae,getState:()=>ae.getValue(),dispatch:ve=>ce.next(ve),toReadOnly:()=>({getState:()=>ae.getValue(),observable:ae.asObservable()})}}),walletSelectorInstance=null,createSelector=(v,k,ie,ae)=>({options:v,store:k.toReadOnly(),wallet:ce=>__awaiter$l(void 0,void 0,void 0,function*(){const{selectedWalletId:fe}=k.getState(),le=yield ie.getWallet(ce||fe);if(!le)throw ce?new Error("Invalid wallet id"):new Error("No wallet selected");return le}),setActiveAccount:ce=>{const{accounts:fe}=k.getState();if(!fe.some(le=>le.accountId===ce))throw new Error("Invalid account id");k.dispatch({type:"SET_ACTIVE_ACCOUNT",payload:{accountId:ce}})},isSignedIn(){const{accounts:ce}=k.getState();return Boolean(ce.length)},on:(ce,fe)=>ae.on(ce,fe),off:(ce,fe)=>{ae.off(ce,fe)}}),setupWalletSelector=v=>__awaiter$l(void 0,void 0,void 0,function*(){const{options:k,storage:ie}=resolveOptions(v);Logger$1.debug=k.debug;const ae=new EventEmitter,ce=yield createStore(ie),fe=new WalletModules({factories:v.modules,storage:ie,options:k,store:ce,emitter:ae,provider:new Provider$1(k.network.nodeUrl)});return yield fe.setup(),v.allowMultipleSelectors?createSelector(k,ce,fe,ae):(walletSelectorInstance||(walletSelectorInstance=createSelector(k,ce,fe,ae)),walletSelectorInstance)}),wait=v=>new Promise(k=>setTimeout(k,v)),poll$1=(v,k,ie)=>__awaiter$l(void 0,void 0,void 0,function*(){const ae=v();if(ae)return ae;if(!ie)throw new Error("Exceeded timeout");return wait(k).then(()=>poll$1(v,k,ie-1))}),waitFor=(v,k={})=>__awaiter$l(void 0,void 0,void 0,function*(){const{timeout:ie=100,interval:ae=50}=k;return Promise.race([wait(ie).then(()=>{throw new Error("Exceeded timeout")}),poll$1(v,ae,Math.floor(ie/ae))])}),getActiveAccount=v=>v.accounts.find(k=>k.active)||null,aCallable$1$i=aCallable$9$2,toObject$3$a=toObject$7$1,IndexedObject$1$d=indexedObject$g,lengthOfArrayLike$5$5=lengthOfArrayLike$8$1,$TypeError$2$i=TypeError,createMethod$2$3=function(v){return function(k,ie,ae,ce){aCallable$1$i(ie);var fe=toObject$3$a(k),le=IndexedObject$1$d(fe),ve=lengthOfArrayLike$5$5(fe),pe=v?ve-1:0,ye=v?-1:1;if(ae<2)for(;;){if(pe in le){ce=le[pe],pe+=ye;break}if(pe+=ye,v?pe<0:ve<=pe)throw $TypeError$2$i("Reduce of empty array with no initial value")}for(;v?pe>=0:ve>pe;pe+=ye)pe in le&&(ce=ie(ce,le[pe],pe,fe));return ce}},arrayReduce$1={left:createMethod$2$3(!1),right:createMethod$2$3(!0)},fails$c$b=fails$r$1,arrayMethodIsStrict$1$1=function(v,k){var ie=[][v];return!!ie&&fails$c$b(function(){ie.call(null,k||function(){return 1},1)})},$$3$c=_export$g,$reduce$1=arrayReduce$1.left,arrayMethodIsStrict$3=arrayMethodIsStrict$1$1,CHROME_VERSION$1=engineV8Version$i,IS_NODE$a=engineIsNode$8,STRICT_METHOD$2=arrayMethodIsStrict$3("reduce"),CHROME_BUG$1=!IS_NODE$a&&CHROME_VERSION$1>79&&CHROME_VERSION$1<83;$$3$c({target:"Array",proto:!0,forced:!STRICT_METHOD$2||CHROME_BUG$1},{reduce:function v(k){var ie=arguments.length;return $reduce$1(this,k,ie,ie>1?arguments[1]:void 0)}});var anObject$3$g=anObject$e$3,regexpFlags$1$4=function(){var v=anObject$3$g(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},fails$b$c=fails$r$1,global$a$g=global$t,$RegExp$2$3=global$a$g.RegExp,UNSUPPORTED_Y$2$2=fails$b$c(function(){var v=$RegExp$2$3("a","y");return v.lastIndex=2,v.exec("abcd")!=null}),MISSED_STICKY$3=UNSUPPORTED_Y$2$2||fails$b$c(function(){return!$RegExp$2$3("a","y").sticky}),BROKEN_CARET$3=UNSUPPORTED_Y$2$2||fails$b$c(function(){var v=$RegExp$2$3("^r","gy");return v.lastIndex=2,v.exec("str")!=null}),regexpStickyHelpers$3={BROKEN_CARET:BROKEN_CARET$3,MISSED_STICKY:MISSED_STICKY$3,UNSUPPORTED_Y:UNSUPPORTED_Y$2$2},fails$a$e=fails$r$1,global$9$i=global$t,$RegExp$1$3=global$9$i.RegExp,regexpUnsupportedDotAll$3=fails$a$e(function(){var v=$RegExp$1$3(".","s");return!(v.dotAll&&v.exec(` -`)&&v.flags==="s")}),fails$9$g=fails$r$1,global$8$i=global$t,$RegExp$5=global$8$i.RegExp,regexpUnsupportedNcg$3=fails$9$g(function(){var v=$RegExp$5("(?b)","g");return v.exec("b").groups.a!=="b"||"b".replace(v,"$c")!=="bc"}),call$6$e=functionCall$i,uncurryThis$8$g=functionUncurryThis$i,toString$2$f=toString$4$4,regexpFlags$f=regexpFlags$1$4,stickyHelpers$1$2=regexpStickyHelpers$3,shared$l=shared$4$4.exports,create$1$c=objectCreate$c,getInternalState$3$4=internalState$i.get,UNSUPPORTED_DOT_ALL$3=regexpUnsupportedDotAll$3,UNSUPPORTED_NCG$3=regexpUnsupportedNcg$3,nativeReplace$3=shared$l("native-string-replace",String.prototype.replace),nativeExec$3=RegExp.prototype.exec,patchedExec$3=nativeExec$3,charAt$2$3=uncurryThis$8$g("".charAt),indexOf$g=uncurryThis$8$g("".indexOf),replace$5=uncurryThis$8$g("".replace),stringSlice$2$4=uncurryThis$8$g("".slice),UPDATES_LAST_INDEX_WRONG$3=function(){var v=/a/,k=/b*/g;return call$6$e(nativeExec$3,v,"a"),call$6$e(nativeExec$3,k,"a"),v.lastIndex!==0||k.lastIndex!==0}(),UNSUPPORTED_Y$1$3=stickyHelpers$1$2.BROKEN_CARET,NPCG_INCLUDED$3=/()??/.exec("")[1]!==void 0,PATCH$3=UPDATES_LAST_INDEX_WRONG$3||NPCG_INCLUDED$3||UNSUPPORTED_Y$1$3||UNSUPPORTED_DOT_ALL$3||UNSUPPORTED_NCG$3;PATCH$3&&(patchedExec$3=function(k){var ie=this,ae=getInternalState$3$4(ie),ce=toString$2$f(k),fe=ae.raw,le,ve,pe,ye,me,Ee,cr;if(fe)return fe.lastIndex=ie.lastIndex,le=call$6$e(patchedExec$3,fe,ce),ie.lastIndex=fe.lastIndex,le;var Br=ae.groups,$r=UNSUPPORTED_Y$1$3&&ie.sticky,Pr=call$6$e(regexpFlags$f,ie),Or=ie.source,ur=0,jr=ce;if($r&&(Pr=replace$5(Pr,"y",""),indexOf$g(Pr,"g")===-1&&(Pr+="g"),jr=stringSlice$2$4(ce,ie.lastIndex),ie.lastIndex>0&&(!ie.multiline||ie.multiline&&charAt$2$3(ce,ie.lastIndex-1)!==` -`)&&(Or="(?: "+Or+")",jr=" "+jr,ur++),ve=new RegExp("^(?:"+Or+")",Pr)),NPCG_INCLUDED$3&&(ve=new RegExp("^"+Or+"$(?!\\s)",Pr)),UPDATES_LAST_INDEX_WRONG$3&&(pe=ie.lastIndex),ye=call$6$e(nativeExec$3,$r?ve:ie,jr),$r?ye?(ye.input=stringSlice$2$4(ye.input,ur),ye[0]=stringSlice$2$4(ye[0],ur),ye.index=ie.lastIndex,ie.lastIndex+=ye[0].length):ie.lastIndex=0:UPDATES_LAST_INDEX_WRONG$3&&ye&&(ie.lastIndex=ie.global?ye.index+ye[0].length:pe),NPCG_INCLUDED$3&&ye&&ye.length>1&&call$6$e(nativeReplace$3,ye[0],ve,function(){for(me=1;mev!==""&&userAgentRules$1.reduce((k,[ie,ae])=>{if(k)return k;const ce=ae.exec(v);return!!ce&&[ie,ce]},!1),isCurrentBrowserSupported=v=>{if(typeof navigator>"u")return!1;const k=matchUserAgent$1(navigator.userAgent);if(!k)return!1;const[ie]=k;return ie==="searchbot"?!1:!!v.find(ae=>ae===ie)},arrayBufferNative$4=typeof ArrayBuffer<"u"&&typeof DataView<"u",defineBuiltIn$2$e=defineBuiltIn$8$2,defineBuiltIns$1$4=function(v,k,ie){for(var ae in k)defineBuiltIn$2$e(v,ae,k[ae],ie);return v},toIntegerOrInfinity$3$6=toIntegerOrInfinity$6$2,toLength$4$4=toLength$6$2,$RangeError$2$4=RangeError,toIndex$2$4=function(v){if(v===void 0)return 0;var k=toIntegerOrInfinity$3$6(v),ie=toLength$4$4(k);if(k!==ie)throw $RangeError$2$4("Wrong length or index");return ie},$Array$2$4=Array,abs$4=Math.abs,pow$4=Math.pow,floor$2$4=Math.floor,log$4=Math.log,LN2$4=Math.LN2,pack$5=function(v,k,ie){var ae=$Array$2$4(ie),ce=ie*8-k-1,fe=(1<>1,ve=k===23?pow$4(2,-24)-pow$4(2,-77):0,pe=v<0||v===0&&1/v<0?1:0,ye=0,me,Ee,cr;for(v=abs$4(v),v!=v||v===1/0?(Ee=v!=v?1:0,me=fe):(me=floor$2$4(log$4(v)/LN2$4),cr=pow$4(2,-me),v*cr<1&&(me--,cr*=2),me+le>=1?v+=ve/cr:v+=ve*pow$4(2,1-le),v*cr>=2&&(me++,cr/=2),me+le>=fe?(Ee=0,me=fe):me+le>=1?(Ee=(v*cr-1)*pow$4(2,k),me=me+le):(Ee=v*pow$4(2,le-1)*pow$4(2,k),me=0));k>=8;)ae[ye++]=Ee&255,Ee/=256,k-=8;for(me=me<0;)ae[ye++]=me&255,me/=256,ce-=8;return ae[--ye]|=pe*128,ae},unpack$5=function(v,k){var ie=v.length,ae=ie*8-k-1,ce=(1<>1,le=ae-7,ve=ie-1,pe=v[ve--],ye=pe&127,me;for(pe>>=7;le>0;)ye=ye*256+v[ve--],le-=8;for(me=ye&(1<<-le)-1,ye>>=-le,le+=k;le>0;)me=me*256+v[ve--],le-=8;if(ye===0)ye=1-fe;else{if(ye===ce)return me?NaN:pe?-1/0:1/0;me=me+pow$4(2,k),ye=ye-fe}return(pe?-1:1)*me*pow$4(2,ye-k)},ieee754$4={pack:pack$5,unpack:unpack$5},toObject$2$f=toObject$7$1,toAbsoluteIndex$2$6=toAbsoluteIndex$4$4,lengthOfArrayLike$4$5=lengthOfArrayLike$8$1,arrayFill$1$4=function v(k){for(var ie=toObject$2$f(this),ae=lengthOfArrayLike$4$5(ie),ce=arguments.length,fe=toAbsoluteIndex$2$6(ce>1?arguments[1]:void 0,ae),le=ce>2?arguments[2]:void 0,ve=le===void 0?ae:toAbsoluteIndex$2$6(le,ae);ve>fe;)ie[fe++]=k;return ie},toPropertyKey$1$i=toPropertyKey$4$4,definePropertyModule$1$i=objectDefineProperty$i,createPropertyDescriptor$1$i=createPropertyDescriptor$5$4,createProperty$1$6=function(v,k,ie){var ae=toPropertyKey$1$i(k);ae in v?definePropertyModule$1$i.f(v,ae,createPropertyDescriptor$1$i(0,ie)):v[ae]=ie},toAbsoluteIndex$1$g=toAbsoluteIndex$4$4,lengthOfArrayLike$3$6=lengthOfArrayLike$8$1,createProperty$7=createProperty$1$6,$Array$1$4=Array,max$h=Math.max,arraySliceSimple$6=function(v,k,ie){for(var ae=lengthOfArrayLike$3$6(v),ce=toAbsoluteIndex$1$g(k,ae),fe=toAbsoluteIndex$1$g(ie===void 0?ae:ie,ae),le=$Array$1$4(max$h(fe-ce,0)),ve=0;ce>8&255]},packInt32$4=function(v){return[v&255,v>>8&255,v>>16&255,v>>24&255]},unpackInt32$4=function(v){return v[3]<<24|v[2]<<16|v[1]<<8|v[0]},packFloat32$4=function(v){return packIEEE754$4(v,23,4)},packFloat64$4=function(v){return packIEEE754$4(v,52,8)},addGetter$1$4=function(v,k){defineProperty$1$i(v[PROTOTYPE$d],k,{get:function(){return getInternalState$2$6(this)[k]}})},get$j=function(v,k,ie,ae){var ce=toIndex$1$4(ie),fe=getInternalState$2$6(v);if(ce+k>fe.byteLength)throw RangeError$3$4(WRONG_INDEX$4);var le=getInternalState$2$6(fe.buffer).bytes,ve=ce+fe.byteOffset,pe=arraySlice$3$4(le,ve,ve+k);return ae?pe:reverse$4(pe)},set$j=function(v,k,ie,ae,ce,fe){var le=toIndex$1$4(ie),ve=getInternalState$2$6(v);if(le+k>ve.byteLength)throw RangeError$3$4(WRONG_INDEX$4);for(var pe=getInternalState$2$6(ve.buffer).bytes,ye=le+ve.byteOffset,me=ae(+ce),Ee=0;Eece)throw RangeError$3$4("Wrong offset");if(ae=ae===void 0?ce-fe:toLength$3$4(ae),fe+ae>ce)throw RangeError$3$4(WRONG_LENGTH$1$4);setInternalState$1$b(this,{buffer:k,byteLength:ae,byteOffset:fe}),DESCRIPTORS$2$i||(this.buffer=k,this.byteLength=ae,this.byteOffset=fe)},DataViewPrototype$1$4=$DataView$4[PROTOTYPE$d],DESCRIPTORS$2$i&&(addGetter$1$4($ArrayBuffer$4,"byteLength"),addGetter$1$4($DataView$4,"buffer"),addGetter$1$4($DataView$4,"byteLength"),addGetter$1$4($DataView$4,"byteOffset")),defineBuiltIns$5(DataViewPrototype$1$4,{getInt8:function(k){return get$j(this,1,k)[0]<<24>>24},getUint8:function(k){return get$j(this,1,k)[0]},getInt16:function(k){var ie=get$j(this,2,k,arguments.length>1?arguments[1]:void 0);return(ie[1]<<8|ie[0])<<16>>16},getUint16:function(k){var ie=get$j(this,2,k,arguments.length>1?arguments[1]:void 0);return ie[1]<<8|ie[0]},getInt32:function(k){return unpackInt32$4(get$j(this,4,k,arguments.length>1?arguments[1]:void 0))},getUint32:function(k){return unpackInt32$4(get$j(this,4,k,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(k){return unpackIEEE754$4(get$j(this,4,k,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(k){return unpackIEEE754$4(get$j(this,8,k,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(k,ie){set$j(this,1,k,packInt8$4,ie)},setUint8:function(k,ie){set$j(this,1,k,packInt8$4,ie)},setInt16:function(k,ie){set$j(this,2,k,packInt16$4,ie,arguments.length>2?arguments[2]:void 0)},setUint16:function(k,ie){set$j(this,2,k,packInt16$4,ie,arguments.length>2?arguments[2]:void 0)},setInt32:function(k,ie){set$j(this,4,k,packInt32$4,ie,arguments.length>2?arguments[2]:void 0)},setUint32:function(k,ie){set$j(this,4,k,packInt32$4,ie,arguments.length>2?arguments[2]:void 0)},setFloat32:function(k,ie){set$j(this,4,k,packFloat32$4,ie,arguments.length>2?arguments[2]:void 0)},setFloat64:function(k,ie){set$j(this,8,k,packFloat64$4,ie,arguments.length>2?arguments[2]:void 0)}});else{if(INCORRECT_ARRAY_BUFFER_NAME$4=PROPER_FUNCTION_NAME$h&&NativeArrayBuffer$4.name!==ARRAY_BUFFER$4,!fails$8$g(function(){NativeArrayBuffer$4(1)})||!fails$8$g(function(){new NativeArrayBuffer$4(-1)})||fails$8$g(function(){return new NativeArrayBuffer$4,new NativeArrayBuffer$4(1.5),new NativeArrayBuffer$4(NaN),INCORRECT_ARRAY_BUFFER_NAME$4&&!CONFIGURABLE_FUNCTION_NAME$k})){for($ArrayBuffer$4=function(k){return anInstance$1$c(this,ArrayBufferPrototype$1$4),new NativeArrayBuffer$4(toIndex$1$4(k))},$ArrayBuffer$4[PROTOTYPE$d]=ArrayBufferPrototype$1$4,keys2$7=getOwnPropertyNames$1$4(NativeArrayBuffer$4),j$6=0;keys2$7.length>j$6;)(key$5=keys2$7[j$6++])in $ArrayBuffer$4||createNonEnumerableProperty$3$c($ArrayBuffer$4,key$5,NativeArrayBuffer$4[key$5]);ArrayBufferPrototype$1$4.constructor=$ArrayBuffer$4}else INCORRECT_ARRAY_BUFFER_NAME$4&&CONFIGURABLE_FUNCTION_NAME$k&&createNonEnumerableProperty$3$c(NativeArrayBuffer$4,"name",ARRAY_BUFFER$4);setPrototypeOf$3$4&&getPrototypeOf$1$c(DataViewPrototype$1$4)!==ObjectPrototype$1$4&&setPrototypeOf$3$4(DataViewPrototype$1$4,ObjectPrototype$1$4),testView$4=new $DataView$4(new $ArrayBuffer$4(2)),$setInt8$4=uncurryThis$7$g(DataViewPrototype$1$4.setInt8),testView$4.setInt8(0,2147483648),testView$4.setInt8(1,2147483649),(testView$4.getInt8(0)||!testView$4.getInt8(1))&&defineBuiltIns$5(DataViewPrototype$1$4,{setInt8:function(k,ie){$setInt8$4(this,k,ie<<24>>24)},setUint8:function(k,ie){$setInt8$4(this,k,ie<<24>>24)}},{unsafe:!0})}var INCORRECT_ARRAY_BUFFER_NAME$4,keys2$7,j$6,key$5,testView$4,$setInt8$4;setToStringTag$g($ArrayBuffer$4,ARRAY_BUFFER$4);setToStringTag$g($DataView$4,DATA_VIEW$4);var arrayBuffer$4={ArrayBuffer:$ArrayBuffer$4,DataView:$DataView$4},$$1$c=_export$g,uncurryThis$6$i=functionUncurryThis$i,fails$7$i=fails$r$1,ArrayBufferModule$1$4=arrayBuffer$4,anObject$2$i=anObject$e$3,toAbsoluteIndex$k=toAbsoluteIndex$4$4,toLength$2$6=toLength$6$2,speciesConstructor$1$c=speciesConstructor$3$2,ArrayBuffer$3$4=ArrayBufferModule$1$4.ArrayBuffer,DataView$2$4=ArrayBufferModule$1$4.DataView,DataViewPrototype$5=DataView$2$4.prototype,un$ArrayBufferSlice$4=uncurryThis$6$i(ArrayBuffer$3$4.prototype.slice),getUint8$4=uncurryThis$6$i(DataViewPrototype$5.getUint8),setUint8$4=uncurryThis$6$i(DataViewPrototype$5.setUint8),INCORRECT_SLICE$4=fails$7$i(function(){return!new ArrayBuffer$3$4(2).slice(1,void 0).byteLength});$$1$c({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:INCORRECT_SLICE$4},{slice:function v(k,ie){if(un$ArrayBufferSlice$4&&ie===void 0)return un$ArrayBufferSlice$4(anObject$2$i(this),k);for(var ae=anObject$2$i(this).byteLength,ce=toAbsoluteIndex$k(k,ae),fe=toAbsoluteIndex$k(ie===void 0?ae:ie,ae),le=new(speciesConstructor$1$c(this,ArrayBuffer$3$4))(toLength$2$6(fe-ce)),ve=new DataView$2$4(this),pe=new DataView$2$4(le),ye=0;ce1?arguments[1]:void 0,le=fe!==void 0,ve=getIteratorMethod$e(ae),pe,ye,me,Ee,cr,Br;if(ve&&!isArrayIteratorMethod$d(ve))for(cr=getIterator$d(ae,ve),Br=cr.next,ae=[];!(Ee=call$5$g(Br,cr)).done;)ae.push(Ee.value);for(le&&ce>2&&(fe=bind$1$c(fe,arguments[2])),ye=lengthOfArrayLike$2$c(ae),me=new(aTypedArrayConstructor$1$4(ie))(ye),pe=0;ye>pe;pe++)me[pe]=le?fe(ae[pe],pe):ae[pe];return me},classof$3$c=classofRaw$1$g,isArray$1$4=Array.isArray||function v(k){return classof$3$c(k)=="Array"},isArray2$4=isArray$1$4,isConstructor3$c=isConstructor$2$4,isObject$2$i=isObject$d$1,wellKnownSymbol$1$i=wellKnownSymbol$j$1,SPECIES$1$c=wellKnownSymbol$1$i("species"),$Array$8=Array,arraySpeciesConstructor$1$4=function(v){var k;return isArray2$4(v)&&(k=v.constructor,isConstructor3$c(k)&&(k===$Array$8||isArray2$4(k.prototype))?k=void 0:isObject$2$i(k)&&(k=k[SPECIES$1$c],k===null&&(k=void 0))),k===void 0?$Array$8:k},arraySpeciesConstructor$5=arraySpeciesConstructor$1$4,arraySpeciesCreate$1$4=function(v,k){return new(arraySpeciesConstructor$5(v))(k===0?0:k)},bind2=functionBindContext$c,uncurryThis$5$i=functionUncurryThis$i,IndexedObject$i=indexedObject$g,toObject$o=toObject$7$1,lengthOfArrayLike$1$g=lengthOfArrayLike$8$1,arraySpeciesCreate$5=arraySpeciesCreate$1$4,push$1$7=uncurryThis$5$i([].push),createMethod$1$7=function(v){var k=v==1,ie=v==2,ae=v==3,ce=v==4,fe=v==6,le=v==7,ve=v==5||fe;return function(pe,ye,me,Ee){for(var cr=toObject$o(pe),Br=IndexedObject$i(cr),$r=bind2(ye,me),Pr=lengthOfArrayLike$1$g(Br),Or=0,ur=Ee||arraySpeciesCreate$5,jr=k?ur(pe,Pr):ie||le?ur(pe,0):void 0,Mr,Lr;Pr>Or;Or++)if((ve||Or in Br)&&(Mr=Br[Or],Lr=$r(Mr,Or,cr),v))if(k)jr[Or]=Lr;else if(Lr)switch(v){case 3:return!0;case 5:return Mr;case 6:return Or;case 2:push$1$7(jr,Mr)}else switch(v){case 4:return!1;case 7:push$1$7(jr,Mr)}return fe?-1:ae||ce?ce:jr}},arrayIteration$4={forEach:createMethod$1$7(0),map:createMethod$1$7(1),filter:createMethod$1$7(2),some:createMethod$1$7(3),every:createMethod$1$7(4),find:createMethod$1$7(5),findIndex:createMethod$1$7(6),filterReject:createMethod$1$7(7)},isCallable$1$i=isCallable$n$1,isObject$1$i=isObject$d$1,setPrototypeOf$1$b=objectSetPrototypeOf$d,inheritIfRequired$1$4=function(v,k,ie){var ae,ce;return setPrototypeOf$1$b&&isCallable$1$i(ae=k.constructor)&&ae!==ie&&isObject$1$i(ce=ae.prototype)&&ce!==ie.prototype&&setPrototypeOf$1$b(v,ce),v},$$n=_export$g,global$4$i=global$t,call$4$i=functionCall$i,DESCRIPTORS$v=descriptors$i,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$4=typedArrayConstructorsRequireWrappers$4,ArrayBufferViewCore$4$4=arrayBufferViewCore$4,ArrayBufferModule$5=arrayBuffer$4,anInstance$e=anInstance$3$1,createPropertyDescriptor$n=createPropertyDescriptor$5$4,createNonEnumerableProperty$1$i=createNonEnumerableProperty$8$2,isIntegralNumber$5=isIntegralNumber$1$4,toLength$1$g=toLength$6$2,toIndex$6=toIndex$2$4,toOffset$1$4=toOffset$2$4,toPropertyKey$m=toPropertyKey$4$4,hasOwn2$i=hasOwnProperty_1$i,classof$2$e=classof$9$2,isObject$t=isObject$d$1,isSymbol$l=isSymbol$3$4,create2$b=objectCreate$c,isPrototypeOf$m=objectIsPrototypeOf$i,setPrototypeOf$h=objectSetPrototypeOf$d,getOwnPropertyNames2$4=objectGetOwnPropertyNames$g.f,typedArrayFrom$5=typedArrayFrom$1$4,forEach$4=arrayIteration$4.forEach,setSpecies$d=setSpecies$2$1,definePropertyModule$o=objectDefineProperty$i,getOwnPropertyDescriptorModule$h=objectGetOwnPropertyDescriptor$g,InternalStateModule$m=internalState$i,inheritIfRequired$5=inheritIfRequired$1$4,getInternalState$m=InternalStateModule$m.get,setInternalState$f=InternalStateModule$m.set,enforceInternalState$k=InternalStateModule$m.enforce,nativeDefineProperty$4=definePropertyModule$o.f,nativeGetOwnPropertyDescriptor$4=getOwnPropertyDescriptorModule$h.f,round$4=Math.round,RangeError$2$4=global$4$i.RangeError,ArrayBuffer$1$4=ArrayBufferModule$5.ArrayBuffer,ArrayBufferPrototype$5=ArrayBuffer$1$4.prototype,DataView$1$4=ArrayBufferModule$5.DataView,NATIVE_ARRAY_BUFFER_VIEWS$6=ArrayBufferViewCore$4$4.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG$5=ArrayBufferViewCore$4$4.TYPED_ARRAY_TAG,TypedArray$5=ArrayBufferViewCore$4$4.TypedArray,TypedArrayPrototype$5=ArrayBufferViewCore$4$4.TypedArrayPrototype,aTypedArrayConstructor$6=ArrayBufferViewCore$4$4.aTypedArrayConstructor,isTypedArray$5=ArrayBufferViewCore$4$4.isTypedArray,BYTES_PER_ELEMENT$4="BYTES_PER_ELEMENT",WRONG_LENGTH$5="Wrong length",fromList$4=function(v,k){aTypedArrayConstructor$6(v);for(var ie=0,ae=k.length,ce=new v(ae);ae>ie;)ce[ie]=k[ie++];return ce},addGetter$5=function(v,k){nativeDefineProperty$4(v,k,{get:function(){return getInternalState$m(this)[k]}})},isArrayBuffer$4=function(v){var k;return isPrototypeOf$m(ArrayBufferPrototype$5,v)||(k=classof$2$e(v))=="ArrayBuffer"||k=="SharedArrayBuffer"},isTypedArrayIndex$4=function(v,k){return isTypedArray$5(v)&&!isSymbol$l(k)&&k in v&&isIntegralNumber$5(+k)&&k>=0},wrappedGetOwnPropertyDescriptor$4=function v(k,ie){return ie=toPropertyKey$m(ie),isTypedArrayIndex$4(k,ie)?createPropertyDescriptor$n(2,k[ie]):nativeGetOwnPropertyDescriptor$4(k,ie)},wrappedDefineProperty$4=function v(k,ie,ae){return ie=toPropertyKey$m(ie),isTypedArrayIndex$4(k,ie)&&isObject$t(ae)&&hasOwn2$i(ae,"value")&&!hasOwn2$i(ae,"get")&&!hasOwn2$i(ae,"set")&&!ae.configurable&&(!hasOwn2$i(ae,"writable")||ae.writable)&&(!hasOwn2$i(ae,"enumerable")||ae.enumerable)?(k[ie]=ae.value,k):nativeDefineProperty$4(k,ie,ae)};DESCRIPTORS$v?(NATIVE_ARRAY_BUFFER_VIEWS$6||(getOwnPropertyDescriptorModule$h.f=wrappedGetOwnPropertyDescriptor$4,definePropertyModule$o.f=wrappedDefineProperty$4,addGetter$5(TypedArrayPrototype$5,"buffer"),addGetter$5(TypedArrayPrototype$5,"byteOffset"),addGetter$5(TypedArrayPrototype$5,"byteLength"),addGetter$5(TypedArrayPrototype$5,"length")),$$n({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS$6},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor$4,defineProperty:wrappedDefineProperty$4}),typedArrayConstructor$4.exports=function(v,k,ie){var ae=v.match(/\d+$/)[0]/8,ce=v+(ie?"Clamped":"")+"Array",fe="get"+v,le="set"+v,ve=global$4$i[ce],pe=ve,ye=pe&&pe.prototype,me={},Ee=function(Pr,Or){var ur=getInternalState$m(Pr);return ur.view[fe](Or*ae+ur.byteOffset,!0)},cr=function(Pr,Or,ur){var jr=getInternalState$m(Pr);ie&&(ur=(ur=round$4(ur))<0?0:ur>255?255:ur&255),jr.view[le](Or*ae+jr.byteOffset,ur,!0)},Br=function(Pr,Or){nativeDefineProperty$4(Pr,Or,{get:function(){return Ee(this,Or)},set:function(ur){return cr(this,Or,ur)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS$6?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$4&&(pe=k(function(Pr,Or,ur,jr){return anInstance$e(Pr,ye),inheritIfRequired$5(function(){return isObject$t(Or)?isArrayBuffer$4(Or)?jr!==void 0?new ve(Or,toOffset$1$4(ur,ae),jr):ur!==void 0?new ve(Or,toOffset$1$4(ur,ae)):new ve(Or):isTypedArray$5(Or)?fromList$4(pe,Or):call$4$i(typedArrayFrom$5,pe,Or):new ve(toIndex$6(Or))}(),Pr,pe)}),setPrototypeOf$h&&setPrototypeOf$h(pe,TypedArray$5),forEach$4(getOwnPropertyNames2$4(ve),function(Pr){Pr in pe||createNonEnumerableProperty$1$i(pe,Pr,ve[Pr])}),pe.prototype=ye):(pe=k(function(Pr,Or,ur,jr){anInstance$e(Pr,ye);var Mr=0,Lr=0,Vr,Gr,Ur;if(!isObject$t(Or))Ur=toIndex$6(Or),Gr=Ur*ae,Vr=new ArrayBuffer$1$4(Gr);else if(isArrayBuffer$4(Or)){Vr=Or,Lr=toOffset$1$4(ur,ae);var Qr=Or.byteLength;if(jr===void 0){if(Qr%ae||(Gr=Qr-Lr,Gr<0))throw RangeError$2$4(WRONG_LENGTH$5)}else if(Gr=toLength$1$g(jr)*ae,Gr+Lr>Qr)throw RangeError$2$4(WRONG_LENGTH$5);Ur=Gr/ae}else return isTypedArray$5(Or)?fromList$4(pe,Or):call$4$i(typedArrayFrom$5,pe,Or);for(setInternalState$f(Pr,{buffer:Vr,byteOffset:Lr,byteLength:Gr,length:Ur,view:new DataView$1$4(Vr)});Mr1?arguments[1]:void 0,ie>2?arguments[2]:void 0)},CONVERSION_BUG$4);var global$3$i=global$t,call$2$i=functionCall$i,ArrayBufferViewCore$2$4=arrayBufferViewCore$4,lengthOfArrayLike$m=lengthOfArrayLike$8$1,toOffset$6=toOffset$2$4,toIndexedObject$m=toObject$7$1,fails$4$i=fails$r$1,RangeError$1$4=global$3$i.RangeError,Int8Array$2$4=global$3$i.Int8Array,Int8ArrayPrototype$5=Int8Array$2$4&&Int8Array$2$4.prototype,$set$4=Int8ArrayPrototype$5&&Int8ArrayPrototype$5.set,aTypedArray$2$4=ArrayBufferViewCore$2$4.aTypedArray,exportTypedArrayMethod$2$4=ArrayBufferViewCore$2$4.exportTypedArrayMethod,WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$4=!fails$4$i(function(){var v=new Uint8ClampedArray(2);return call$2$i($set$4,v,{length:1,0:3},1),v[1]!==3}),TO_OBJECT_BUG$4=WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$4&&ArrayBufferViewCore$2$4.NATIVE_ARRAY_BUFFER_VIEWS&&fails$4$i(function(){var v=new Int8Array$2$4(2);return v.set(1),v.set("2",1),v[0]!==0||v[1]!==2});exportTypedArrayMethod$2$4("set",function v(k){aTypedArray$2$4(this);var ie=toOffset$6(arguments.length>1?arguments[1]:void 0,1),ae=toIndexedObject$m(k);if(WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$4)return call$2$i($set$4,this,ae,ie);var ce=this.length,fe=lengthOfArrayLike$m(ae),le=0;if(fe+ie>ce)throw RangeError$1$4("Wrong length");for(;le0;)v[fe]=v[--fe];fe!==ae++&&(v[fe]=ce)}return v},merge$5=function(v,k,ie,ae){for(var ce=k.length,fe=ie.length,le=0,ve=0;le0&&1/ie<0?1:-1:k>ie}};exportTypedArrayMethod$1$4("sort",function v(k){return k!==void 0&&aCallable$p(k),STABLE_SORT$5?un$Sort$5(this,k):internalSort$5(aTypedArray$1$4(this),getSortCompare$5(k))},!STABLE_SORT$5||ACCEPT_INCORRECT_ARGUMENTS$4);var global$1$i=global$t,apply$1$c=functionApply$c,ArrayBufferViewCore$8=arrayBufferViewCore$4,fails$2$i=fails$r$1,arraySlice$1$c=arraySlice$5$1,Int8Array$1$4=global$1$i.Int8Array,aTypedArray$8=ArrayBufferViewCore$8.aTypedArray,exportTypedArrayMethod$8=ArrayBufferViewCore$8.exportTypedArrayMethod,$toLocaleString$4=[].toLocaleString,TO_LOCALE_STRING_BUG$4=!!Int8Array$1$4&&fails$2$i(function(){$toLocaleString$4.call(new Int8Array$1$4(1))}),FORCED$6=fails$2$i(function(){return[1,2].toLocaleString()!=new Int8Array$1$4([1,2]).toLocaleString()})||!fails$2$i(function(){Int8Array$1$4.prototype.toLocaleString.call([1,2])});exportTypedArrayMethod$8("toLocaleString",function v(){return apply$1$c($toLocaleString$4,TO_LOCALE_STRING_BUG$4?arraySlice$1$c(aTypedArray$8(this)):aTypedArray$8(this),arraySlice$1$c(arguments))},FORCED$6);var uncurryThis$2$i=functionUncurryThis$i,defineBuiltIn$o=defineBuiltIn$8$2,regexpExec$2$3=regexpExec$3$2,fails$1$i=fails$r$1,wellKnownSymbol$w=wellKnownSymbol$j$1,createNonEnumerableProperty$o=createNonEnumerableProperty$8$2,SPECIES$e=wellKnownSymbol$w("species"),RegExpPrototype$g=RegExp.prototype,fixRegexpWellKnownSymbolLogic$3=function(v,k,ie,ae){var ce=wellKnownSymbol$w(v),fe=!fails$1$i(function(){var ye={};return ye[ce]=function(){return 7},""[v](ye)!=7}),le=fe&&!fails$1$i(function(){var ye=!1,me=/a/;return v==="split"&&(me={},me.constructor={},me.constructor[SPECIES$e]=function(){return me},me.flags="",me[ce]=/./[ce]),me.exec=function(){return ye=!0,null},me[ce](""),!ye});if(!fe||!le||ie){var ve=uncurryThis$2$i(/./[ce]),pe=k(ce,""[v],function(ye,me,Ee,cr,Br){var $r=uncurryThis$2$i(ye),Pr=me.exec;return Pr===regexpExec$2$3||Pr===RegExpPrototype$g.exec?fe&&!Br?{done:!0,value:ve(me,Ee,cr)}:{done:!0,value:$r(Ee,me,cr)}:{done:!1}});defineBuiltIn$o(String.prototype,v,pe[0]),defineBuiltIn$o(RegExpPrototype$g,ce,pe[1])}ae&&createNonEnumerableProperty$o(RegExpPrototype$g[ce],"sham",!0)},uncurryThis$1$i=functionUncurryThis$i,toIntegerOrInfinity$l=toIntegerOrInfinity$6$2,toString$1$i=toString$4$4,requireObjectCoercible$1$i=requireObjectCoercible$5$2,charAt$1$3=uncurryThis$1$i("".charAt),charCodeAt$3=uncurryThis$1$i("".charCodeAt),stringSlice$1$5=uncurryThis$1$i("".slice),createMethod$h=function(v){return function(k,ie){var ae=toString$1$i(requireObjectCoercible$1$i(k)),ce=toIntegerOrInfinity$l(ie),fe=ae.length,le,ve;return ce<0||ce>=fe?v?"":void 0:(le=charCodeAt$3(ae,ce),le<55296||le>56319||ce+1===fe||(ve=charCodeAt$3(ae,ce+1))<56320||ve>57343?v?charAt$1$3(ae,ce):le:v?stringSlice$1$5(ae,ce,ce+2):(le-55296<<10)+(ve-56320)+65536)}},stringMultibyte$3={codeAt:createMethod$h(!1),charAt:createMethod$h(!0)},charAt$6=stringMultibyte$3.charAt,advanceStringIndex$1$3=function(v,k,ie){return k+(ie?charAt$6(v,k).length:1)},call$1$i=functionCall$i,anObject$1$i=anObject$e$3,isCallable$A=isCallable$n$1,classof$q=classofRaw$1$g,regexpExec$1$3=regexpExec$3$2,$TypeError$t=TypeError,regexpExecAbstract$3=function(v,k){var ie=v.exec;if(isCallable$A(ie)){var ae=call$1$i(ie,v,k);return ae!==null&&anObject$1$i(ae),ae}if(classof$q(v)==="RegExp")return call$1$i(regexpExec$1$3,v,k);throw $TypeError$t("RegExp#exec called on incompatible receiver")},apply$d=functionApply$c,call$w=functionCall$i,uncurryThis$C=functionUncurryThis$i,fixRegExpWellKnownSymbolLogic$3=fixRegexpWellKnownSymbolLogic$3,isRegExp$4=isRegexp$3,anObject$s=anObject$e$3,requireObjectCoercible$k=requireObjectCoercible$5$2,speciesConstructor$d=speciesConstructor$3$2,advanceStringIndex$4=advanceStringIndex$1$3,toLength$l=toLength$6$2,toString2$f=toString$4$4,getMethod$l=getMethod$4$3,arraySlice$f=arraySliceSimple$6,callRegExpExec$2=regexpExecAbstract$3,regexpExec$6=regexpExec$3$2,stickyHelpers$4=regexpStickyHelpers$3,fails$E=fails$r$1,UNSUPPORTED_Y$5=stickyHelpers$4.UNSUPPORTED_Y,MAX_UINT32$2=4294967295,min$h=Math.min,$push$2=[].push,exec$d=uncurryThis$C(/./.exec),push$h=uncurryThis$C($push$2),stringSlice$i=uncurryThis$C("".slice),SPLIT_WORKS_WITH_OVERWRITTEN_EXEC$2=!fails$E(function(){var v=/(?:)/,k=v.exec;v.exec=function(){return k.apply(this,arguments)};var ie="ab".split(v);return ie.length!==2||ie[0]!=="a"||ie[1]!=="b"});fixRegExpWellKnownSymbolLogic$3("split",function(v,k,ie){var ae;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?ae=function(ce,fe){var le=toString2$f(requireObjectCoercible$k(this)),ve=fe===void 0?MAX_UINT32$2:fe>>>0;if(ve===0)return[];if(ce===void 0)return[le];if(!isRegExp$4(ce))return call$w(k,le,ce,ve);for(var pe=[],ye=(ce.ignoreCase?"i":"")+(ce.multiline?"m":"")+(ce.unicode?"u":"")+(ce.sticky?"y":""),me=0,Ee=new RegExp(ce.source,ye+"g"),cr,Br,$r;(cr=call$w(regexpExec$6,Ee,le))&&(Br=Ee.lastIndex,!(Br>me&&(push$h(pe,stringSlice$i(le,me,cr.index)),cr.length>1&&cr.index=ve)));)Ee.lastIndex===cr.index&&Ee.lastIndex++;return me===le.length?($r||!exec$d(Ee,""))&&push$h(pe,""):push$h(pe,stringSlice$i(le,me)),pe.length>ve?arraySlice$f(pe,0,ve):pe}:"0".split(void 0,0).length?ae=function(ce,fe){return ce===void 0&&fe===0?[]:call$w(k,this,ce,fe)}:ae=k,[function(fe,le){var ve=requireObjectCoercible$k(this),pe=fe==null?void 0:getMethod$l(fe,v);return pe?call$w(pe,fe,ve,le):call$w(ae,toString2$f(ve),fe,le)},function(ce,fe){var le=anObject$s(this),ve=toString2$f(ce),pe=ie(ae,le,ve,fe,ae!==k);if(pe.done)return pe.value;var ye=speciesConstructor$d(le,RegExp),me=le.unicode,Ee=(le.ignoreCase?"i":"")+(le.multiline?"m":"")+(le.unicode?"u":"")+(UNSUPPORTED_Y$5?"g":"y"),cr=new ye(UNSUPPORTED_Y$5?"^(?:"+le.source+")":le,Ee),Br=fe===void 0?MAX_UINT32$2:fe>>>0;if(Br===0)return[];if(ve.length===0)return callRegExpExec$2(cr,ve)===null?[ve]:[];for(var $r=0,Pr=0,Or=[];Pr{switch(v){case"en":return en$1;case"es":return es$1;case"zh":return zh;case"bg":return bg;case"ko":return ko;case"vi":return vi;case"hi":return hi;case"ar":return ar$1;case"hr":return hr;case"mk":return mk;case"sl":return sl;case"sr":return sr$1;default:return en$1}},chosenLang,allowOnlyLanguage=v=>{chosenLang=v},shortenLanguageCode=v=>v.indexOf("-")!==-1?v.split("-")[0]:v.split("_")[0],findObjectPropByStringPath=(v,k)=>{if(!v)return"";const ie=k.indexOf(".");if(ie>-1){const ae=k.substring(0,ie),ce=k.substring(ie+1);return findObjectPropByStringPath(v[ae],ce)}return v[k]},translate=v=>{let k=window.navigator.languages?window.navigator.languages[0]:null;k=k||window.navigator.language;const ie=shortenLanguageCode(chosenLang||k),ae=getLanguage(ie),ce=findObjectPropByStringPath(ae,v);return ce&&typeof ce=="string"?ce:v},require_can_promise=__commonJS$1({"node_modules/qrcode/lib/can-promise.js"(v,k){k.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}}}),require_utils$4=__commonJS$1({"node_modules/qrcode/lib/core/utils.js"(v){var k,ie=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];v.getSymbolSize=function(ce){if(!ce)throw new Error('"version" cannot be null or undefined');if(ce<1||ce>40)throw new Error('"version" should be in range from 1 to 40');return ce*4+17},v.getSymbolTotalCodewords=function(ce){return ie[ce]},v.getBCHDigit=function(ae){let ce=0;for(;ae!==0;)ce++,ae>>>=1;return ce},v.setToSJISFunction=function(ce){if(typeof ce!="function")throw new Error('"toSJISFunc" is not a valid function.');k=ce},v.isKanjiModeEnabled=function(){return typeof k<"u"},v.toSJIS=function(ce){return k(ce)}}}),require_error_correction_level=__commonJS$1({"node_modules/qrcode/lib/core/error-correction-level.js"(v){v.L={bit:1},v.M={bit:0},v.Q={bit:3},v.H={bit:2};function k(ie){if(typeof ie!="string")throw new Error("Param is not a string");switch(ie.toLowerCase()){case"l":case"low":return v.L;case"m":case"medium":return v.M;case"q":case"quartile":return v.Q;case"h":case"high":return v.H;default:throw new Error("Unknown EC Level: "+ie)}}v.isValid=function(ae){return ae&&typeof ae.bit<"u"&&ae.bit>=0&&ae.bit<4},v.from=function(ae,ce){if(v.isValid(ae))return ae;try{return k(ae)}catch{return ce}}}}),require_bit_buffer=__commonJS$1({"node_modules/qrcode/lib/core/bit-buffer.js"(v,k){function ie(){this.buffer=[],this.length=0}ie.prototype={get:function(ae){const ce=Math.floor(ae/8);return(this.buffer[ce]>>>7-ae%8&1)===1},put:function(ae,ce){for(let fe=0;fe>>ce-fe-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(ae){const ce=Math.floor(this.length/8);this.buffer.length<=ce&&this.buffer.push(0),ae&&(this.buffer[ce]|=128>>>this.length%8),this.length++}},k.exports=ie}}),require_bit_matrix=__commonJS$1({"node_modules/qrcode/lib/core/bit-matrix.js"(v,k){function ie(ae){if(!ae||ae<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=ae,this.data=new Uint8Array(ae*ae),this.reservedBit=new Uint8Array(ae*ae)}ie.prototype.set=function(ae,ce,fe,le){const ve=ae*this.size+ce;this.data[ve]=fe,le&&(this.reservedBit[ve]=!0)},ie.prototype.get=function(ae,ce){return this.data[ae*this.size+ce]},ie.prototype.xor=function(ae,ce,fe){this.data[ae*this.size+ce]^=fe},ie.prototype.isReserved=function(ae,ce){return this.reservedBit[ae*this.size+ce]},k.exports=ie}}),require_alignment_pattern=__commonJS$1({"node_modules/qrcode/lib/core/alignment-pattern.js"(v){var k=require_utils$4().getSymbolSize;v.getRowColCoords=function(ae){if(ae===1)return[];const ce=Math.floor(ae/7)+2,fe=k(ae),le=fe===145?26:Math.ceil((fe-13)/(2*ce-2))*2,ve=[fe-7];for(let pe=1;pe=0&&ce<=7},v.from=function(ce){return v.isValid(ce)?parseInt(ce,10):void 0},v.getPenaltyN1=function(ce){const fe=ce.size;let le=0,ve=0,pe=0,ye=null,me=null;for(let Ee=0;Ee=5&&(le+=k.N1+(ve-5)),ye=Br,ve=1),Br=ce.get(cr,Ee),Br===me?pe++:(pe>=5&&(le+=k.N1+(pe-5)),me=Br,pe=1)}ve>=5&&(le+=k.N1+(ve-5)),pe>=5&&(le+=k.N1+(pe-5))}return le},v.getPenaltyN2=function(ce){const fe=ce.size;let le=0;for(let ve=0;ve=10&&(ve===1488||ve===93)&&le++,pe=pe<<1&2047|ce.get(me,ye),me>=10&&(pe===1488||pe===93)&&le++}return le*k.N3},v.getPenaltyN4=function(ce){let fe=0;const le=ce.data.length;for(let pe=0;pe=0;){const le=fe[0];for(let pe=0;pe0){const ye=new Uint8Array(this.degree);return ye.set(ve,pe),ye}return ve},k.exports=ae}}),require_version_check=__commonJS$1({"node_modules/qrcode/lib/core/version-check.js"(v){v.isValid=function(ie){return!isNaN(ie)&&ie>=1&&ie<=40}}}),require_regex=__commonJS$1({"node_modules/qrcode/lib/core/regex.js"(v){var k="[0-9]+",ie="[A-Z $%*+\\-./:]+",ae="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";ae=ae.replace(/u/g,"\\u");var ce="(?:(?![A-Z0-9 $%*+\\-./:]|"+ae+`)(?:.|[\r -]))+`;v.KANJI=new RegExp(ae,"g"),v.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),v.BYTE=new RegExp(ce,"g"),v.NUMERIC=new RegExp(k,"g"),v.ALPHANUMERIC=new RegExp(ie,"g");var fe=new RegExp("^"+ae+"$"),le=new RegExp("^"+k+"$"),ve=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");v.testKanji=function(ye){return fe.test(ye)},v.testNumeric=function(ye){return le.test(ye)},v.testAlphanumeric=function(ye){return ve.test(ye)}}}),require_mode=__commonJS$1({"node_modules/qrcode/lib/core/mode.js"(v){var k=require_version_check(),ie=require_regex();v.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},v.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},v.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},v.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},v.MIXED={bit:-1},v.getCharCountIndicator=function(fe,le){if(!fe.ccBits)throw new Error("Invalid mode: "+fe);if(!k.isValid(le))throw new Error("Invalid version: "+le);return le>=1&&le<10?fe.ccBits[0]:le<27?fe.ccBits[1]:fe.ccBits[2]},v.getBestModeForData=function(fe){return ie.testNumeric(fe)?v.NUMERIC:ie.testAlphanumeric(fe)?v.ALPHANUMERIC:ie.testKanji(fe)?v.KANJI:v.BYTE},v.toString=function(fe){if(fe&&fe.id)return fe.id;throw new Error("Invalid mode")},v.isValid=function(fe){return fe&&fe.bit&&fe.ccBits};function ae(ce){if(typeof ce!="string")throw new Error("Param is not a string");switch(ce.toLowerCase()){case"numeric":return v.NUMERIC;case"alphanumeric":return v.ALPHANUMERIC;case"kanji":return v.KANJI;case"byte":return v.BYTE;default:throw new Error("Unknown mode: "+ce)}}v.from=function(fe,le){if(v.isValid(fe))return fe;try{return ae(fe)}catch{return le}}}}),require_version=__commonJS$1({"node_modules/qrcode/lib/core/version.js"(v){var k=require_utils$4(),ie=require_error_correction_code(),ae=require_error_correction_level(),ce=require_mode(),fe=require_version_check(),le=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,ve=k.getBCHDigit(le);function pe(cr,Br,$r){for(let Pr=1;Pr<=40;Pr++)if(Br<=v.getCapacity(Pr,$r,cr))return Pr}function ye(cr,Br){return ce.getCharCountIndicator(cr,Br)+4}function me(cr,Br){let $r=0;return cr.forEach(function(Pr){$r+=ye(Pr.mode,Br)+Pr.getBitsLength()}),$r}function Ee(cr,Br){for(let $r=1;$r<=40;$r++)if(me(cr,$r)<=v.getCapacity($r,Br,ce.MIXED))return $r}v.from=function(Br,$r){return fe.isValid(Br)?parseInt(Br,10):$r},v.getCapacity=function(Br,$r,Pr){if(!fe.isValid(Br))throw new Error("Invalid QR Code version");typeof Pr>"u"&&(Pr=ce.BYTE);const Or=k.getSymbolTotalCodewords(Br),ur=ie.getTotalCodewordsCount(Br,$r),jr=(Or-ur)*8;if(Pr===ce.MIXED)return jr;const Mr=jr-ye(Pr,Br);switch(Pr){case ce.NUMERIC:return Math.floor(Mr/10*3);case ce.ALPHANUMERIC:return Math.floor(Mr/11*2);case ce.KANJI:return Math.floor(Mr/13);case ce.BYTE:default:return Math.floor(Mr/8)}},v.getBestVersionForData=function(Br,$r){let Pr;const Or=ae.from($r,ae.M);if(Array.isArray(Br)){if(Br.length>1)return Ee(Br,Or);if(Br.length===0)return 1;Pr=Br[0]}else Pr=Br;return pe(Pr.mode,Pr.getLength(),Or)},v.getEncodedBits=function(Br){if(!fe.isValid(Br)||Br<7)throw new Error("Invalid QR Code version");let $r=Br<<12;for(;k.getBCHDigit($r)-ve>=0;)$r^=le<=0;)ye^=ie<0&&(ve=this.data.substr(le),pe=parseInt(ve,10),fe.put(pe,ye*3+1))},k.exports=ae}}),require_alphanumeric_data=__commonJS$1({"node_modules/qrcode/lib/core/alphanumeric-data.js"(v,k){var ie=require_mode(),ae=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ce(fe){this.mode=ie.ALPHANUMERIC,this.data=fe}ce.getBitsLength=function(le){return 11*Math.floor(le/2)+6*(le%2)},ce.prototype.getLength=function(){return this.data.length},ce.prototype.getBitsLength=function(){return ce.getBitsLength(this.data.length)},ce.prototype.write=function(le){let ve;for(ve=0;ve+2<=this.data.length;ve+=2){let pe=ae.indexOf(this.data[ve])*45;pe+=ae.indexOf(this.data[ve+1]),le.put(pe,11)}this.data.length%2&&le.put(ae.indexOf(this.data[ve]),6)},k.exports=ce}}),require_encode_utf8=__commonJS$1({"node_modules/encode-utf8/index.js"(v,k){k.exports=function(ae){for(var ce=[],fe=ae.length,le=0;le=55296&&ve<=56319&&fe>le+1){var pe=ae.charCodeAt(le+1);pe>=56320&&pe<=57343&&(ve=(ve-55296)*1024+pe-56320+65536,le+=1)}if(ve<128){ce.push(ve);continue}if(ve<2048){ce.push(ve>>6|192),ce.push(ve&63|128);continue}if(ve<55296||ve>=57344&&ve<65536){ce.push(ve>>12|224),ce.push(ve>>6&63|128),ce.push(ve&63|128);continue}if(ve>=65536&&ve<=1114111){ce.push(ve>>18|240),ce.push(ve>>12&63|128),ce.push(ve>>6&63|128),ce.push(ve&63|128);continue}ce.push(239,191,189)}return new Uint8Array(ce).buffer}}}),require_byte_data=__commonJS$1({"node_modules/qrcode/lib/core/byte-data.js"(v,k){var ie=require_encode_utf8(),ae=require_mode();function ce(fe){this.mode=ae.BYTE,typeof fe=="string"&&(fe=ie(fe)),this.data=new Uint8Array(fe)}ce.getBitsLength=function(le){return le*8},ce.prototype.getLength=function(){return this.data.length},ce.prototype.getBitsLength=function(){return ce.getBitsLength(this.data.length)},ce.prototype.write=function(fe){for(let le=0,ve=this.data.length;le=33088&&ve<=40956)ve-=33088;else if(ve>=57408&&ve<=60351)ve-=49472;else throw new Error("Invalid SJIS character: "+this.data[le]+` -Make sure your charset is UTF-8`);ve=(ve>>>8&255)*192+(ve&255),fe.put(ve,13)}},k.exports=ce}}),require_dijkstra=__commonJS$1({"node_modules/dijkstrajs/dijkstra.js"(v,k){var ie={single_source_shortest_paths:function(ae,ce,fe){var le={},ve={};ve[ce]=0;var pe=ie.PriorityQueue.make();pe.push(ce,0);for(var ye,me,Ee,cr,Br,$r,Pr,Or,ur;!pe.empty();){ye=pe.pop(),me=ye.value,cr=ye.cost,Br=ae[me]||{};for(Ee in Br)Br.hasOwnProperty(Ee)&&($r=Br[Ee],Pr=cr+$r,Or=ve[Ee],ur=typeof ve[Ee]>"u",(ur||Or>Pr)&&(ve[Ee]=Pr,pe.push(Ee,Pr),le[Ee]=me))}if(typeof fe<"u"&&typeof ve[fe]>"u"){var jr=["Could not find a path from ",ce," to ",fe,"."].join("");throw new Error(jr)}return le},extract_shortest_path_from_predecessor_list:function(ae,ce){for(var fe=[],le=ce;le;)fe.push(le),ae[le],le=ae[le];return fe.reverse(),fe},find_path:function(ae,ce,fe){var le=ie.single_source_shortest_paths(ae,ce,fe);return ie.extract_shortest_path_from_predecessor_list(le,fe)},PriorityQueue:{make:function(ae){var ce=ie.PriorityQueue,fe={},le;ae=ae||{};for(le in ce)ce.hasOwnProperty(le)&&(fe[le]=ce[le]);return fe.queue=[],fe.sorter=ae.sorter||ce.default_sorter,fe},default_sorter:function(ae,ce){return ae.cost-ce.cost},push:function(ae,ce){var fe={value:ae,cost:ce};this.queue.push(fe),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof k<"u"&&(k.exports=ie)}}),require_segments=__commonJS$1({"node_modules/qrcode/lib/core/segments.js"(v){var k=require_mode(),ie=require_numeric_data(),ae=require_alphanumeric_data(),ce=require_byte_data(),fe=require_kanji_data(),le=require_regex(),ve=require_utils$4(),pe=require_dijkstra();function ye(ur){return unescape(encodeURIComponent(ur)).length}function me(ur,jr,Mr){const Lr=[];let Vr;for(;(Vr=ur.exec(Mr))!==null;)Lr.push({data:Vr[0],index:Vr.index,mode:jr,length:Vr[0].length});return Lr}function Ee(ur){const jr=me(le.NUMERIC,k.NUMERIC,ur),Mr=me(le.ALPHANUMERIC,k.ALPHANUMERIC,ur);let Lr,Vr;return ve.isKanjiModeEnabled()?(Lr=me(le.BYTE,k.BYTE,ur),Vr=me(le.KANJI,k.KANJI,ur)):(Lr=me(le.BYTE_KANJI,k.BYTE,ur),Vr=[]),jr.concat(Mr,Lr,Vr).sort(function(Ur,Qr){return Ur.index-Qr.index}).map(function(Ur){return{data:Ur.data,mode:Ur.mode,length:Ur.length}})}function cr(ur,jr){switch(jr){case k.NUMERIC:return ie.getBitsLength(ur);case k.ALPHANUMERIC:return ae.getBitsLength(ur);case k.KANJI:return fe.getBitsLength(ur);case k.BYTE:return ce.getBitsLength(ur)}}function Br(ur){return ur.reduce(function(jr,Mr){const Lr=jr.length-1>=0?jr[jr.length-1]:null;return Lr&&Lr.mode===Mr.mode?(jr[jr.length-1].data+=Mr.data,jr):(jr.push(Mr),jr)},[])}function $r(ur){const jr=[];for(let Mr=0;Mr=0&&Kr<=6&&(be===0||be===6)||be>=0&&be<=6&&(Kr===0||Kr===6)||Kr>=2&&Kr<=4&&be>=2&&be<=4?Ur.set(Xt+Kr,Qt+be,!0,!0):Ur.set(Xt+Kr,Qt+be,!1,!0))}}function Pr(Ur){const Qr=Ur.size;for(let vn=8;vn>Kr&1)===1,Ur.set(fn,Xt,Qt,!0),Ur.set(Xt,fn,Qt,!0)}function jr(Ur,Qr,vn){const Yt=Ur.size,fn=Ee.getEncodedBits(Qr,vn);let Xt,Qt;for(Xt=0;Xt<15;Xt++)Qt=(fn>>Xt&1)===1,Xt<6?Ur.set(Xt,8,Qt,!0):Xt<8?Ur.set(Xt+1,8,Qt,!0):Ur.set(Yt-15+Xt,8,Qt,!0),Xt<8?Ur.set(8,Yt-Xt-1,Qt,!0):Xt<9?Ur.set(8,15-Xt-1+1,Qt,!0):Ur.set(8,15-Xt-1,Qt,!0);Ur.set(Yt-8,8,1,!0)}function Mr(Ur,Qr){const vn=Ur.size;let Yt=-1,fn=vn-1,Xt=7,Qt=0;for(let Kr=vn-1;Kr>0;Kr-=2)for(Kr===6&&Kr--;;){for(let be=0;be<2;be++)if(!Ur.isReserved(fn,Kr-be)){let kr=!1;Qt>>Xt&1)===1),Ur.set(fn,Kr-be,kr),Xt--,Xt===-1&&(Qt++,Xt=7)}if(fn+=Yt,fn<0||vn<=fn){fn-=Yt,Yt=-Yt;break}}}function Lr(Ur,Qr,vn){const Yt=new ae;vn.forEach(function(be){Yt.put(be.mode.bit,4),Yt.put(be.getLength(),cr.getCharCountIndicator(be.mode,Ur)),be.write(Yt)});const fn=k.getSymbolTotalCodewords(Ur),Xt=pe.getTotalCodewordsCount(Ur,Qr),Qt=(fn-Xt)*8;for(Yt.getLengthInBits()+4<=Qt&&Yt.put(0,4);Yt.getLengthInBits()%8!==0;)Yt.putBit(0);const Kr=(Qt-Yt.getLengthInBits())/8;for(let be=0;be0},enumerable:!1,configurable:!0}),k.prototype._trySubscribe=function(ie){return this._throwIfClosed(),v.prototype._trySubscribe.call(this,ie)},k.prototype._subscribe=function(ie){return this._throwIfClosed(),this._checkFinalizedStatuses(ie),this._innerSubscribe(ie)},k.prototype._innerSubscribe=function(ie){var ae=this,ce=this,fe=ce.hasError,le=ce.isStopped,ve=ce.observers;return fe||le?EMPTY_SUBSCRIPTION:(this.currentObservers=null,ve.push(ie),new Subscription(function(){ae.currentObservers=null,arrRemove(ve,ie)}))},k.prototype._checkFinalizedStatuses=function(ie){var ae=this,ce=ae.hasError,fe=ae.thrownError,le=ae.isStopped;ce?ie.error(fe):le&&ie.complete()},k.prototype.asObservable=function(){var ie=new Observable;return ie.source=this,ie},k.create=function(ie,ae){return new AnonymousSubject(ie,ae)},k}(Observable),AnonymousSubject=function(v){__extends(k,v);function k(ie,ae){var ce=v.call(this)||this;return ce.destination=ie,ce.source=ae,ce}return k.prototype.next=function(ie){var ae,ce;(ce=(ae=this.destination)===null||ae===void 0?void 0:ae.next)===null||ce===void 0||ce.call(ae,ie)},k.prototype.error=function(ie){var ae,ce;(ce=(ae=this.destination)===null||ae===void 0?void 0:ae.error)===null||ce===void 0||ce.call(ae,ie)},k.prototype.complete=function(){var ie,ae;(ae=(ie=this.destination)===null||ie===void 0?void 0:ie.complete)===null||ae===void 0||ae.call(ie)},k.prototype._subscribe=function(ie){var ae,ce;return(ce=(ae=this.source)===null||ae===void 0?void 0:ae.subscribe(ie))!==null&&ce!==void 0?ce:EMPTY_SUBSCRIPTION},k}(Subject),BehaviorSubject=function(v){__extends(k,v);function k(ie){var ae=v.call(this)||this;return ae._value=ie,ae}return Object.defineProperty(k.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),k.prototype._subscribe=function(ie){var ae=v.prototype._subscribe.call(this,ie);return!ae.closed&&ie.next(this._value),ae},k.prototype.getValue=function(){var ie=this,ae=ie.hasError,ce=ie.thrownError,fe=ie._value;if(ae)throw ce;return this._throwIfClosed(),fe},k.prototype.next=function(ie){v.prototype.next.call(this,this._value=ie)},k}(Subject);function scanInternals(v,k,ie,ae,ce){return function(fe,le){var ve=ie,pe=k,ye=0;fe.subscribe(createOperatorSubscriber(le,function(me){var Ee=ye++;pe=ve?v(pe,me,Ee):(ve=!0,me),ae&&le.next(pe)},ce&&function(){ve&&le.next(pe),le.complete()}))}}function scan(v,k){return operate(scanInternals(v,k,arguments.length>=2,!0))}__toESM(require_lib(),1);__toESM(require_sha256$2(),1);function __awaiter$l(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var Provider$1=class{constructor(v){this.provider=new nearAPI$9.providers.JsonRpcProvider({url:v})}query(v){return this.provider.query(v)}viewAccessKey({accountId:v,publicKey:k}){return this.query({request_type:"view_access_key",finality:"final",account_id:v,public_key:k})}block(v){return this.provider.block(v)}sendTransaction(v){return this.provider.sendTransaction(v)}},KEY_DELIMITER=":",JsonStorage=class{constructor(v,k){this.storage=v,this.namespace=Array.isArray(k)?k.join(KEY_DELIMITER):k}resolveKey(v){return[this.namespace,v].join(KEY_DELIMITER)}getItem(v){return this.storage.getItem(this.resolveKey(v)).then(k=>typeof k=="string"?JSON.parse(k):null)}setItem(v,k){return this.storage.setItem(this.resolveKey(v),JSON.stringify(k))}removeItem(v){return this.storage.removeItem(this.resolveKey(v))}},commonjsGlobal$j=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$i=function(v){return v&&v.Math==Math&&v},global$t=check$i(typeof globalThis=="object"&&globalThis)||check$i(typeof window=="object"&&window)||check$i(typeof self=="object"&&self)||check$i(typeof commonjsGlobal$j=="object"&&commonjsGlobal$j)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$g={},fails$r$1=function(v){try{return!!v()}catch{return!0}},fails$q$1=fails$r$1,descriptors$i=!fails$q$1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$p$1=fails$r$1,functionBindNative$i=!fails$p$1(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$c=functionBindNative$i,call$l$1=Function.prototype.call,functionCall$i=NATIVE_BIND$3$c?call$l$1.bind(call$l$1):function(){return call$l$1.apply(call$l$1,arguments)},objectPropertyIsEnumerable$g={},$propertyIsEnumerable$g={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$8=Object.getOwnPropertyDescriptor,NASHORN_BUG$g=getOwnPropertyDescriptor$2$8&&!$propertyIsEnumerable$g.call({1:2},1);objectPropertyIsEnumerable$g.f=NASHORN_BUG$g?function v(k){var ie=getOwnPropertyDescriptor$2$8(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$g;var createPropertyDescriptor$5$4=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2$c=functionBindNative$i,FunctionPrototype$2$c=Function.prototype,bind$7$1=FunctionPrototype$2$c.bind,call$k$1=FunctionPrototype$2$c.call,uncurryThis$o$1=NATIVE_BIND$2$c&&bind$7$1.bind(call$k$1,call$k$1),functionUncurryThis$i=NATIVE_BIND$2$c?function(v){return v&&uncurryThis$o$1(v)}:function(v){return v&&function(){return call$k$1.apply(v,arguments)}},uncurryThis$n$1=functionUncurryThis$i,toString$6$2=uncurryThis$n$1({}.toString),stringSlice$3$4=uncurryThis$n$1("".slice),classofRaw$1$g=function(v){return stringSlice$3$4(toString$6$2(v),8,-1)},uncurryThis$m$2=functionUncurryThis$i,fails$o$1=fails$r$1,classof$b$1=classofRaw$1$g,$Object$4$c=Object,split$g=uncurryThis$m$2("".split),indexedObject$g=fails$o$1(function(){return!$Object$4$c("z").propertyIsEnumerable(0)})?function(v){return classof$b$1(v)=="String"?split$g(v,""):$Object$4$c(v)}:$Object$4$c,$TypeError$f$1=TypeError,requireObjectCoercible$5$2=function(v){if(v==null)throw $TypeError$f$1("Can't call method on "+v);return v},IndexedObject$3$1=indexedObject$g,requireObjectCoercible$4$4=requireObjectCoercible$5$2,toIndexedObject$6$4=function(v){return IndexedObject$3$1(requireObjectCoercible$4$4(v))},isCallable$n$1=function(v){return typeof v=="function"},isCallable$m$3=isCallable$n$1,isObject$d$1=function(v){return typeof v=="object"?v!==null:isCallable$m$3(v)},global$s=global$t,isCallable$l$4=isCallable$n$1,aFunction$i=function(v){return isCallable$l$4(v)?v:void 0},getBuiltIn$8$8=function(v,k){return arguments.length<2?aFunction$i(global$s[v]):global$s[v]&&global$s[v][k]},uncurryThis$l$3=functionUncurryThis$i,objectIsPrototypeOf$i=uncurryThis$l$3({}.isPrototypeOf),getBuiltIn$7$8=getBuiltIn$8$8,engineUserAgent$i=getBuiltIn$7$8("navigator","userAgent")||"",global$r=global$t,userAgent$5$2=engineUserAgent$i,process$3$8=global$r.process,Deno$1$9=global$r.Deno,versions$i=process$3$8&&process$3$8.versions||Deno$1$9&&Deno$1$9.version,v8$i=versions$i&&versions$i.v8,match$i,version$i;v8$i&&(match$i=v8$i.split("."),version$i=match$i[0]>0&&match$i[0]<4?1:+(match$i[0]+match$i[1]));!version$i&&userAgent$5$2&&(match$i=userAgent$5$2.match(/Edge\/(\d+)/),(!match$i||match$i[1]>=74)&&(match$i=userAgent$5$2.match(/Chrome\/(\d+)/),match$i&&(version$i=+match$i[1])));var engineV8Version$i=version$i,V8_VERSION$1$8=engineV8Version$i,fails$n$2=fails$r$1,nativeSymbol$i=!!Object.getOwnPropertySymbols&&!fails$n$2(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$8&&V8_VERSION$1$8<41}),NATIVE_SYMBOL$1$i=nativeSymbol$i,useSymbolAsUid$i=NATIVE_SYMBOL$1$i&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$6$c=getBuiltIn$8$8,isCallable$k$8=isCallable$n$1,isPrototypeOf$4$5=objectIsPrototypeOf$i,USE_SYMBOL_AS_UID$1$i=useSymbolAsUid$i,$Object$3$e=Object,isSymbol$3$4=USE_SYMBOL_AS_UID$1$i?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$c("Symbol");return isCallable$k$8(k)&&isPrototypeOf$4$5(k.prototype,$Object$3$e(v))},$String$3$c=String,tryToString$5$2=function(v){try{return $String$3$c(v)}catch{return"Object"}},isCallable$j$9=isCallable$n$1,tryToString$4$c=tryToString$5$2,$TypeError$e$2=TypeError,aCallable$9$2=function(v){if(isCallable$j$9(v))return v;throw $TypeError$e$2(tryToString$4$c(v)+" is not a function")},aCallable$8$2=aCallable$9$2,getMethod$4$3=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$8$2(ie)},call$j$1=functionCall$i,isCallable$i$b=isCallable$n$1,isObject$c$1=isObject$d$1,$TypeError$d$3=TypeError,ordinaryToPrimitive$1$i=function(v,k){var ie,ae;if(k==="string"&&isCallable$i$b(ie=v.toString)&&!isObject$c$1(ae=call$j$1(ie,v))||isCallable$i$b(ie=v.valueOf)&&!isObject$c$1(ae=call$j$1(ie,v))||k!=="string"&&isCallable$i$b(ie=v.toString)&&!isObject$c$1(ae=call$j$1(ie,v)))return ae;throw $TypeError$d$3("Can't convert object to primitive value")},shared$4$4={exports:{}},global$q=global$t,defineProperty$7$4=Object.defineProperty,defineGlobalProperty$3$g=function(v,k){try{defineProperty$7$4(global$q,v,{value:k,configurable:!0,writable:!0})}catch{global$q[v]=k}return k},global$p=global$t,defineGlobalProperty$2$i=defineGlobalProperty$3$g,SHARED$i="__core-js_shared__",store$3$i=global$p[SHARED$i]||defineGlobalProperty$2$i(SHARED$i,{}),sharedStore$i=store$3$i,store$2$i=sharedStore$i;(shared$4$4.exports=function(v,k){return store$2$i[v]||(store$2$i[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$3$5=requireObjectCoercible$5$2,$Object$2$i=Object,toObject$7$1=function(v){return $Object$2$i(requireObjectCoercible$3$5(v))},uncurryThis$k$3=functionUncurryThis$i,toObject$6$4=toObject$7$1,hasOwnProperty$i=uncurryThis$k$3({}.hasOwnProperty),hasOwnProperty_1$i=Object.hasOwn||function v(k,ie){return hasOwnProperty$i(toObject$6$4(k),ie)},uncurryThis$j$6=functionUncurryThis$i,id$k=0,postfix$i=Math.random(),toString$5$4=uncurryThis$j$6(1 .toString),uid$3$4=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$5$4(++id$k+postfix$i,36)},global$o=global$t,shared$3$i=shared$4$4.exports,hasOwn$b$5=hasOwnProperty_1$i,uid$2$i=uid$3$4,NATIVE_SYMBOL$j=nativeSymbol$i,USE_SYMBOL_AS_UID$j=useSymbolAsUid$i,WellKnownSymbolsStore$i=shared$3$i("wks"),Symbol$1$i=global$o.Symbol,symbolFor$i=Symbol$1$i&&Symbol$1$i.for,createWellKnownSymbol$i=USE_SYMBOL_AS_UID$j?Symbol$1$i:Symbol$1$i&&Symbol$1$i.withoutSetter||uid$2$i,wellKnownSymbol$j$1=function(v){if(!hasOwn$b$5(WellKnownSymbolsStore$i,v)||!(NATIVE_SYMBOL$j||typeof WellKnownSymbolsStore$i[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$j&&hasOwn$b$5(Symbol$1$i,v)?WellKnownSymbolsStore$i[v]=Symbol$1$i[v]:USE_SYMBOL_AS_UID$j&&symbolFor$i?WellKnownSymbolsStore$i[v]=symbolFor$i(k):WellKnownSymbolsStore$i[v]=createWellKnownSymbol$i(k)}return WellKnownSymbolsStore$i[v]},call$i$2=functionCall$i,isObject$b$2=isObject$d$1,isSymbol$2$i=isSymbol$3$4,getMethod$3$9=getMethod$4$3,ordinaryToPrimitive$j=ordinaryToPrimitive$1$i,wellKnownSymbol$i$1=wellKnownSymbol$j$1,$TypeError$c$4=TypeError,TO_PRIMITIVE$i=wellKnownSymbol$i$1("toPrimitive"),toPrimitive$2$4=function(v,k){if(!isObject$b$2(v)||isSymbol$2$i(v))return v;var ie=getMethod$3$9(v,TO_PRIMITIVE$i),ae;if(ie){if(k===void 0&&(k="default"),ae=call$i$2(ie,v,k),!isObject$b$2(ae)||isSymbol$2$i(ae))return ae;throw $TypeError$c$4("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$j(v,k)},toPrimitive$1$i=toPrimitive$2$4,isSymbol$1$i=isSymbol$3$4,toPropertyKey$4$4=function(v){var k=toPrimitive$1$i(v,"string");return isSymbol$1$i(k)?k:k+""},global$n$1=global$t,isObject$a$4=isObject$d$1,document$3$8=global$n$1.document,EXISTS$1$i=isObject$a$4(document$3$8)&&isObject$a$4(document$3$8.createElement),documentCreateElement$2$a=function(v){return EXISTS$1$i?document$3$8.createElement(v):{}},DESCRIPTORS$d$4=descriptors$i,fails$m$3=fails$r$1,createElement$1$8=documentCreateElement$2$a,ie8DomDefine$i=!DESCRIPTORS$d$4&&!fails$m$3(function(){return Object.defineProperty(createElement$1$8("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$c$4=descriptors$i,call$h$3=functionCall$i,propertyIsEnumerableModule$1$d=objectPropertyIsEnumerable$g,createPropertyDescriptor$4$6=createPropertyDescriptor$5$4,toIndexedObject$5$c=toIndexedObject$6$4,toPropertyKey$3$6=toPropertyKey$4$4,hasOwn$a$b=hasOwnProperty_1$i,IE8_DOM_DEFINE$1$g=ie8DomDefine$i,$getOwnPropertyDescriptor$1$g=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$g.f=DESCRIPTORS$c$4?$getOwnPropertyDescriptor$1$g:function v(k,ie){if(k=toIndexedObject$5$c(k),ie=toPropertyKey$3$6(ie),IE8_DOM_DEFINE$1$g)try{return $getOwnPropertyDescriptor$1$g(k,ie)}catch{}if(hasOwn$a$b(k,ie))return createPropertyDescriptor$4$6(!call$h$3(propertyIsEnumerableModule$1$d.f,k,ie),k[ie])};var objectDefineProperty$i={},DESCRIPTORS$b$5=descriptors$i,fails$l$3=fails$r$1,v8PrototypeDefineBug$i=DESCRIPTORS$b$5&&fails$l$3(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$9$4=isObject$d$1,$String$2$g=String,$TypeError$b$9=TypeError,anObject$e$3=function(v){if(isObject$9$4(v))return v;throw $TypeError$b$9($String$2$g(v)+" is not an object")},DESCRIPTORS$a$a=descriptors$i,IE8_DOM_DEFINE$j=ie8DomDefine$i,V8_PROTOTYPE_DEFINE_BUG$1$c=v8PrototypeDefineBug$i,anObject$d$3=anObject$e$3,toPropertyKey$2$g=toPropertyKey$4$4,$TypeError$a$c=TypeError,$defineProperty$i=Object.defineProperty,$getOwnPropertyDescriptor$j=Object.getOwnPropertyDescriptor,ENUMERABLE$i="enumerable",CONFIGURABLE$1$i="configurable",WRITABLE$i="writable";objectDefineProperty$i.f=DESCRIPTORS$a$a?V8_PROTOTYPE_DEFINE_BUG$1$c?function v(k,ie,ae){if(anObject$d$3(k),ie=toPropertyKey$2$g(ie),anObject$d$3(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$i in ae&&!ae[WRITABLE$i]){var ce=$getOwnPropertyDescriptor$j(k,ie);ce&&ce[WRITABLE$i]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$i in ae?ae[CONFIGURABLE$1$i]:ce[CONFIGURABLE$1$i],enumerable:ENUMERABLE$i in ae?ae[ENUMERABLE$i]:ce[ENUMERABLE$i],writable:!1})}return $defineProperty$i(k,ie,ae)}:$defineProperty$i:function v(k,ie,ae){if(anObject$d$3(k),ie=toPropertyKey$2$g(ie),anObject$d$3(ae),IE8_DOM_DEFINE$j)try{return $defineProperty$i(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$a$c("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$9$b=descriptors$i,definePropertyModule$6$4=objectDefineProperty$i,createPropertyDescriptor$3$c=createPropertyDescriptor$5$4,createNonEnumerableProperty$8$2=DESCRIPTORS$9$b?function(v,k,ie){return definePropertyModule$6$4.f(v,k,createPropertyDescriptor$3$c(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$i={exports:{}},DESCRIPTORS$8$c=descriptors$i,hasOwn$9$c=hasOwnProperty_1$i,FunctionPrototype$1$i=Function.prototype,getDescriptor$i=DESCRIPTORS$8$c&&Object.getOwnPropertyDescriptor,EXISTS$j=hasOwn$9$c(FunctionPrototype$1$i,"name"),PROPER$i=EXISTS$j&&function v(){}.name==="something",CONFIGURABLE$j=EXISTS$j&&(!DESCRIPTORS$8$c||DESCRIPTORS$8$c&&getDescriptor$i(FunctionPrototype$1$i,"name").configurable),functionName$i={EXISTS:EXISTS$j,PROPER:PROPER$i,CONFIGURABLE:CONFIGURABLE$j},uncurryThis$i$6=functionUncurryThis$i,isCallable$h$c=isCallable$n$1,store$1$i=sharedStore$i,functionToString$i=uncurryThis$i$6(Function.toString);isCallable$h$c(store$1$i.inspectSource)||(store$1$i.inspectSource=function(v){return functionToString$i(v)});var inspectSource$4$8=store$1$i.inspectSource,global$m$2=global$t,isCallable$g$c=isCallable$n$1,inspectSource$3$c=inspectSource$4$8,WeakMap$1$i=global$m$2.WeakMap,nativeWeakMap$i=isCallable$g$c(WeakMap$1$i)&&/native code/.test(inspectSource$3$c(WeakMap$1$i)),shared$2$i=shared$4$4.exports,uid$1$i=uid$3$4,keys$1$4=shared$2$i("keys"),sharedKey$3$c=function(v){return keys$1$4[v]||(keys$1$4[v]=uid$1$i(v))},hiddenKeys$4$c={},NATIVE_WEAK_MAP$i=nativeWeakMap$i,global$l$3=global$t,uncurryThis$h$7=functionUncurryThis$i,isObject$8$6=isObject$d$1,createNonEnumerableProperty$7$2=createNonEnumerableProperty$8$2,hasOwn$8$d=hasOwnProperty_1$i,shared$1$i=sharedStore$i,sharedKey$2$c=sharedKey$3$c,hiddenKeys$3$g=hiddenKeys$4$c,OBJECT_ALREADY_INITIALIZED$i="Object already initialized",TypeError$3=global$l$3.TypeError,WeakMap$j=global$l$3.WeakMap,set$2$1,get$1$4,has$i,enforce$i=function(v){return has$i(v)?get$1$4(v):set$2$1(v,{})},getterFor$i=function(v){return function(k){var ie;if(!isObject$8$6(k)||(ie=get$1$4(k)).type!==v)throw TypeError$3("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$i||shared$1$i.state?(store$l=shared$1$i.state||(shared$1$i.state=new WeakMap$j),wmget$i=uncurryThis$h$7(store$l.get),wmhas$i=uncurryThis$h$7(store$l.has),wmset$i=uncurryThis$h$7(store$l.set),set$2$1=function(v,k){if(wmhas$i(store$l,v))throw new TypeError$3(OBJECT_ALREADY_INITIALIZED$i);return k.facade=v,wmset$i(store$l,v,k),k},get$1$4=function(v){return wmget$i(store$l,v)||{}},has$i=function(v){return wmhas$i(store$l,v)}):(STATE$i=sharedKey$2$c("state"),hiddenKeys$3$g[STATE$i]=!0,set$2$1=function(v,k){if(hasOwn$8$d(v,STATE$i))throw new TypeError$3(OBJECT_ALREADY_INITIALIZED$i);return k.facade=v,createNonEnumerableProperty$7$2(v,STATE$i,k),k},get$1$4=function(v){return hasOwn$8$d(v,STATE$i)?v[STATE$i]:{}},has$i=function(v){return hasOwn$8$d(v,STATE$i)});var store$l,wmget$i,wmhas$i,wmset$i,STATE$i,internalState$i={set:set$2$1,get:get$1$4,has:has$i,enforce:enforce$i,getterFor:getterFor$i},fails$k$5=fails$r$1,isCallable$f$d=isCallable$n$1,hasOwn$7$e=hasOwnProperty_1$i,DESCRIPTORS$7$g=descriptors$i,CONFIGURABLE_FUNCTION_NAME$2$4=functionName$i.CONFIGURABLE,inspectSource$2$i=inspectSource$4$8,InternalStateModule$5$1=internalState$i,enforceInternalState$2$4=InternalStateModule$5$1.enforce,getInternalState$5$2=InternalStateModule$5$1.get,defineProperty$6$5=Object.defineProperty,CONFIGURABLE_LENGTH$i=DESCRIPTORS$7$g&&!fails$k$5(function(){return defineProperty$6$5(function(){},"length",{value:8}).length!==8}),TEMPLATE$i=String(String).split("String"),makeBuiltIn$1$i=makeBuiltIn$2$i.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$7$e(v,"name")||CONFIGURABLE_FUNCTION_NAME$2$4&&v.name!==k)&&(DESCRIPTORS$7$g?defineProperty$6$5(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$i&&ie&&hasOwn$7$e(ie,"arity")&&v.length!==ie.arity&&defineProperty$6$5(v,"length",{value:ie.arity});try{ie&&hasOwn$7$e(ie,"constructor")&&ie.constructor?DESCRIPTORS$7$g&&defineProperty$6$5(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$2$4(v);return hasOwn$7$e(ae,"source")||(ae.source=TEMPLATE$i.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$i(function v(){return isCallable$f$d(this)&&getInternalState$5$2(this).source||inspectSource$2$i(this)},"toString");var isCallable$e$d=isCallable$n$1,definePropertyModule$5$6=objectDefineProperty$i,makeBuiltIn$k=makeBuiltIn$2$i.exports,defineGlobalProperty$1$i=defineGlobalProperty$3$g,defineBuiltIn$8$2=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$e$d(ie)&&makeBuiltIn$k(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$i(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$5$6.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$g={},ceil$g=Math.ceil,floor$3$4=Math.floor,mathTrunc$g=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$3$4:ceil$g)(ie)},trunc2$g=mathTrunc$g,toIntegerOrInfinity$6$2=function(v){var k=+v;return k!==k||k===0?0:trunc2$g(k)},toIntegerOrInfinity$5$4=toIntegerOrInfinity$6$2,max$1$7=Math.max,min$2$4=Math.min,toAbsoluteIndex$4$4=function(v,k){var ie=toIntegerOrInfinity$5$4(v);return ie<0?max$1$7(ie+k,0):min$2$4(ie,k)},toIntegerOrInfinity$4$5=toIntegerOrInfinity$6$2,min$1$g=Math.min,toLength$6$2=function(v){return v>0?min$1$g(toIntegerOrInfinity$4$5(v),9007199254740991):0},toLength$5$4=toLength$6$2,lengthOfArrayLike$8$1=function(v){return toLength$5$4(v.length)},toIndexedObject$4$c=toIndexedObject$6$4,toAbsoluteIndex$3$4=toAbsoluteIndex$4$4,lengthOfArrayLike$7$1=lengthOfArrayLike$8$1,createMethod$3$1=function(v){return function(k,ie,ae){var ce=toIndexedObject$4$c(k),fe=lengthOfArrayLike$7$1(ce),le=toAbsoluteIndex$3$4(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$g={includes:createMethod$3$1(!0),indexOf:createMethod$3$1(!1)},uncurryThis$g$7=functionUncurryThis$i,hasOwn$6$g=hasOwnProperty_1$i,toIndexedObject$3$g=toIndexedObject$6$4,indexOf$1$4=arrayIncludes$g.indexOf,hiddenKeys$2$g=hiddenKeys$4$c,push$2$2=uncurryThis$g$7([].push),objectKeysInternal$g=function(v,k){var ie=toIndexedObject$3$g(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$6$g(hiddenKeys$2$g,fe)&&hasOwn$6$g(ie,fe)&&push$2$2(ce,fe);for(;k.length>ae;)hasOwn$6$g(ie,fe=k[ae++])&&(~indexOf$1$4(ce,fe)||push$2$2(ce,fe));return ce},enumBugKeys$3$c=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$f=objectKeysInternal$g,enumBugKeys$2$f=enumBugKeys$3$c,hiddenKeys$1$g=enumBugKeys$2$f.concat("length","prototype");objectGetOwnPropertyNames$g.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$f(k,hiddenKeys$1$g)};var objectGetOwnPropertySymbols$g={};objectGetOwnPropertySymbols$g.f=Object.getOwnPropertySymbols;var getBuiltIn$5$c=getBuiltIn$8$8,uncurryThis$f$7=functionUncurryThis$i,getOwnPropertyNamesModule$g=objectGetOwnPropertyNames$g,getOwnPropertySymbolsModule$1$d=objectGetOwnPropertySymbols$g,anObject$c$9=anObject$e$3,concat$1$d=uncurryThis$f$7([].concat),ownKeys$1$g=getBuiltIn$5$c("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$g.f(anObject$c$9(k)),ae=getOwnPropertySymbolsModule$1$d.f;return ae?concat$1$d(ie,ae(k)):ie},hasOwn$5$g=hasOwnProperty_1$i,ownKeys2$g=ownKeys$1$g,getOwnPropertyDescriptorModule$1$4=objectGetOwnPropertyDescriptor$g,definePropertyModule$4$b=objectDefineProperty$i,copyConstructorProperties$1$g=function(v,k,ie){for(var ae=ownKeys2$g(k),ce=definePropertyModule$4$b.f,fe=getOwnPropertyDescriptorModule$1$4.f,le=0;le=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3$8(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$2$c]=ae,SUBCLASSING$8=ie.then(function(){})instanceof ae,SUBCLASSING$8?!k&&IS_BROWSER$8&&!NATIVE_PROMISE_REJECTION_EVENT$1$8:!0}),promiseConstructorDetection$8={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$8,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$8,SUBCLASSING:SUBCLASSING$8},newPromiseCapability$2$8={},aCallable$6$8=aCallable$9$2,PromiseCapability$8=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$6$8(k),this.reject=aCallable$6$8(ie)};newPromiseCapability$2$8.f=function(v){return new PromiseCapability$8(v)};var $$d$1=_export$g,IS_NODE$1$8=engineIsNode$8,global$c$c=global$t,call$f$8=functionCall$i,defineBuiltIn$6$b=defineBuiltIn$8$2,setPrototypeOf$5$1=objectSetPrototypeOf$d,setToStringTag$3$b=setToStringTag$4$1,setSpecies$1$c=setSpecies$2$1,aCallable$5$8=aCallable$9$2,isCallable$7$i=isCallable$n$1,isObject$7$c=isObject$d$1,anInstance$2$4=anInstance$3$1,speciesConstructor$2$3=speciesConstructor$3$2,task$9=task$1$8.set,microtask$9=microtask$1$8,hostReportErrors$9=hostReportErrors$1$8,perform$2$8=perform$3$8,Queue$9=queue$9,InternalStateModule$4$4=internalState$i,NativePromiseConstructor$2$8=promiseNativeConstructor$8,PromiseConstructorDetection$8=promiseConstructorDetection$8,newPromiseCapabilityModule$3$8=newPromiseCapability$2$8,PROMISE$8="Promise",FORCED_PROMISE_CONSTRUCTOR$4$8=PromiseConstructorDetection$8.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$9=PromiseConstructorDetection$8.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$8=PromiseConstructorDetection$8.SUBCLASSING,getInternalPromiseState$8=InternalStateModule$4$4.getterFor(PROMISE$8),setInternalState$3$1=InternalStateModule$4$4.set,NativePromisePrototype$1$8=NativePromiseConstructor$2$8&&NativePromiseConstructor$2$8.prototype,PromiseConstructor$8=NativePromiseConstructor$2$8,PromisePrototype$8=NativePromisePrototype$1$8,TypeError$2$c=global$c$c.TypeError,document$1$d=global$c$c.document,process$i=global$c$c.process,newPromiseCapability$1$8=newPromiseCapabilityModule$3$8.f,newGenericPromiseCapability$8=newPromiseCapability$1$8,DISPATCH_EVENT$8=!!(document$1$d&&document$1$d.createEvent&&global$c$c.dispatchEvent),UNHANDLED_REJECTION$8="unhandledrejection",REJECTION_HANDLED$8="rejectionhandled",PENDING$8=0,FULFILLED$8=1,REJECTED$8=2,HANDLED$8=1,UNHANDLED$8=2,Internal$8,OwnPromiseCapability$8,PromiseWrapper$8,nativeThen$8,isThenable$8=function(v){var k;return isObject$7$c(v)&&isCallable$7$i(k=v.then)?k:!1},callReaction$8=function(v,k){var ie=k.value,ae=k.state==FULFILLED$8,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$8&&onHandleUnhandled$8(k),k.rejection=HANDLED$8),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$2$c("Promise-chain cycle")):(ye=isThenable$8(pe))?call$f$8(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$9=function(v,k){v.notified||(v.notified=!0,microtask$9(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$8(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$8(v)}))},dispatchEvent$8=function(v,k,ie){var ae,ce;DISPATCH_EVENT$8?(ae=document$1$d.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$c$c.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$9&&(ce=global$c$c["on"+v])?ce(ae):v===UNHANDLED_REJECTION$8&&hostReportErrors$9("Unhandled promise rejection",ie)},onUnhandled$8=function(v){call$f$8(task$9,global$c$c,function(){var k=v.facade,ie=v.value,ae=isUnhandled$8(v),ce;if(ae&&(ce=perform$2$8(function(){IS_NODE$1$8?process$i.emit("unhandledRejection",ie,k):dispatchEvent$8(UNHANDLED_REJECTION$8,k,ie)}),v.rejection=IS_NODE$1$8||isUnhandled$8(v)?UNHANDLED$8:HANDLED$8,ce.error))throw ce.value})},isUnhandled$8=function(v){return v.rejection!==HANDLED$8&&!v.parent},onHandleUnhandled$8=function(v){call$f$8(task$9,global$c$c,function(){var k=v.facade;IS_NODE$1$8?process$i.emit("rejectionHandled",k):dispatchEvent$8(REJECTION_HANDLED$8,k,v.value)})},bind$3$c=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$8=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$8,notify$9(v,!0))},internalResolve$8=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$2$c("Promise can't be resolved itself");var ae=isThenable$8(k);ae?microtask$9(function(){var ce={done:!1};try{call$f$8(ae,k,bind$3$c(internalResolve$8,ce,v),bind$3$c(internalReject$8,ce,v))}catch(fe){internalReject$8(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$8,notify$9(v,!1))}catch(ce){internalReject$8({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$8&&(PromiseConstructor$8=function(k){anInstance$2$4(this,PromisePrototype$8),aCallable$5$8(k),call$f$8(Internal$8,this);var ie=getInternalPromiseState$8(this);try{k(bind$3$c(internalResolve$8,ie),bind$3$c(internalReject$8,ie))}catch(ae){internalReject$8(ie,ae)}},PromisePrototype$8=PromiseConstructor$8.prototype,Internal$8=function(k){setInternalState$3$1(this,{type:PROMISE$8,done:!1,notified:!1,parent:!1,reactions:new Queue$9,rejection:!1,state:PENDING$8,value:void 0})},Internal$8.prototype=defineBuiltIn$6$b(PromisePrototype$8,"then",function(k,ie){var ae=getInternalPromiseState$8(this),ce=newPromiseCapability$1$8(speciesConstructor$2$3(this,PromiseConstructor$8));return ae.parent=!0,ce.ok=isCallable$7$i(k)?k:!0,ce.fail=isCallable$7$i(ie)&&ie,ce.domain=IS_NODE$1$8?process$i.domain:void 0,ae.state==PENDING$8?ae.reactions.add(ce):microtask$9(function(){callReaction$8(ce,ae)}),ce.promise}),OwnPromiseCapability$8=function(){var v=new Internal$8,k=getInternalPromiseState$8(v);this.promise=v,this.resolve=bind$3$c(internalResolve$8,k),this.reject=bind$3$c(internalReject$8,k)},newPromiseCapabilityModule$3$8.f=newPromiseCapability$1$8=function(v){return v===PromiseConstructor$8||v===PromiseWrapper$8?new OwnPromiseCapability$8(v):newGenericPromiseCapability$8(v)},isCallable$7$i(NativePromiseConstructor$2$8)&&NativePromisePrototype$1$8!==Object.prototype)){nativeThen$8=NativePromisePrototype$1$8.then,NATIVE_PROMISE_SUBCLASSING$8||defineBuiltIn$6$b(NativePromisePrototype$1$8,"then",function(k,ie){var ae=this;return new PromiseConstructor$8(function(ce,fe){call$f$8(nativeThen$8,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1$8.constructor}catch{}setPrototypeOf$5$1&&setPrototypeOf$5$1(NativePromisePrototype$1$8,PromisePrototype$8)}$$d$1({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$8},{Promise:PromiseConstructor$8});setToStringTag$3$b(PromiseConstructor$8,PROMISE$8,!1);setSpecies$1$c(PROMISE$8);var iterators$d={},wellKnownSymbol$b$b=wellKnownSymbol$j$1,Iterators$4$b=iterators$d,ITERATOR$5$9=wellKnownSymbol$b$b("iterator"),ArrayPrototype$1$b=Array.prototype,isArrayIteratorMethod$2$1=function(v){return v!==void 0&&(Iterators$4$b.Array===v||ArrayPrototype$1$b[ITERATOR$5$9]===v)},classof$7$5=classof$9$2,getMethod$2$c=getMethod$4$3,Iterators$3$b=iterators$d,wellKnownSymbol$a$c=wellKnownSymbol$j$1,ITERATOR$4$b=wellKnownSymbol$a$c("iterator"),getIteratorMethod$3$1=function(v){if(v!=null)return getMethod$2$c(v,ITERATOR$4$b)||getMethod$2$c(v,"@@iterator")||Iterators$3$b[classof$7$5(v)]},call$e$9=functionCall$i,aCallable$4$c=aCallable$9$2,anObject$9$b=anObject$e$3,tryToString$2$c=tryToString$5$2,getIteratorMethod$2$c=getIteratorMethod$3$1,$TypeError$5$i=TypeError,getIterator$2$1=function(v,k){var ie=arguments.length<2?getIteratorMethod$2$c(v):k;if(aCallable$4$c(ie))return anObject$9$b(call$e$9(ie,v));throw $TypeError$5$i(tryToString$2$c(v)+" is not iterable")},call$d$b=functionCall$i,anObject$8$c=anObject$e$3,getMethod$1$i=getMethod$4$3,iteratorClose$1$8=function(v,k,ie){var ae,ce;anObject$8$c(v);try{if(ae=getMethod$1$i(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$d$b(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$8$c(ae),ie},bind$2$c=functionBindContext$c,call$c$c=functionCall$i,anObject$7$d=anObject$e$3,tryToString$1$i=tryToString$5$2,isArrayIteratorMethod$1$c=isArrayIteratorMethod$2$1,lengthOfArrayLike$6$4=lengthOfArrayLike$8$1,isPrototypeOf$2$c=objectIsPrototypeOf$i,getIterator$1$c=getIterator$2$1,getIteratorMethod$1$c=getIteratorMethod$3$1,iteratorClose$9=iteratorClose$1$8,$TypeError$4$i=TypeError,Result$8=function(v,k){this.stopped=v,this.result=k},ResultPrototype$8=Result$8.prototype,iterate$2$8=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$2$c(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$9(pe,"normal",ur),new Result$8(!0,ur)},Ar=function(ur){return ce?(anObject$7$d(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$1$c(v),!ye)throw $TypeError$4$i(tryToString$1$i(v)+" is not iterable");if(isArrayIteratorMethod$1$c(ye)){for(me=0,Ee=lengthOfArrayLike$6$4(v);Ee>me;me++)if(cr=Ar(v[me]),cr&&isPrototypeOf$2$c(ResultPrototype$8,cr))return cr;return new Result$8(!1)}pe=getIterator$1$c(v,ye)}for(Br=pe.next;!($r=call$c$c(Br,pe)).done;){try{cr=Ar($r.value)}catch(ur){iteratorClose$9(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$2$c(ResultPrototype$8,cr))return cr}return new Result$8(!1)},wellKnownSymbol$9$c=wellKnownSymbol$j$1,ITERATOR$3$b=wellKnownSymbol$9$c("iterator"),SAFE_CLOSING$c=!1;try{called$c=0,iteratorWithReturn$c={next:function(){return{done:!!called$c++}},return:function(){SAFE_CLOSING$c=!0}},iteratorWithReturn$c[ITERATOR$3$b]=function(){return this},Array.from(iteratorWithReturn$c,function(){throw 2})}catch(v){}var called$c,iteratorWithReturn$c,checkCorrectnessOfIteration$2$1=function(v,k){if(!k&&!SAFE_CLOSING$c)return!1;var ie=!1;try{var ae={};ae[ITERATOR$3$b]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1$8=promiseNativeConstructor$8,checkCorrectnessOfIteration$1$c=checkCorrectnessOfIteration$2$1,FORCED_PROMISE_CONSTRUCTOR$3$8=promiseConstructorDetection$8.CONSTRUCTOR,promiseStaticsIncorrectIteration$8=FORCED_PROMISE_CONSTRUCTOR$3$8||!checkCorrectnessOfIteration$1$c(function(v){NativePromiseConstructor$1$8.all(v).then(void 0,function(){})}),$$c$2=_export$g,call$b$c=functionCall$i,aCallable$3$c=aCallable$9$2,newPromiseCapabilityModule$2$8=newPromiseCapability$2$8,perform$1$8=perform$3$8,iterate$1$8=iterate$2$8,PROMISE_STATICS_INCORRECT_ITERATION$1$8=promiseStaticsIncorrectIteration$8;$$c$2({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$8},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$8.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$8(function(){var ve=aCallable$3$c(ie.resolve),pe=[],ye=0,me=1;iterate$1$8(k,function(Ee){var cr=ye++,Br=!1;me++,call$b$c(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$b$3=_export$g,FORCED_PROMISE_CONSTRUCTOR$2$8=promiseConstructorDetection$8.CONSTRUCTOR,NativePromiseConstructor$b=promiseNativeConstructor$8,getBuiltIn$1$i=getBuiltIn$8$8,isCallable$6$i=isCallable$n$1,defineBuiltIn$5$b=defineBuiltIn$8$2,NativePromisePrototype$9=NativePromiseConstructor$b&&NativePromiseConstructor$b.prototype;$$b$3({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$8,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$6$i(NativePromiseConstructor$b)&&(method$8=getBuiltIn$1$i("Promise").prototype.catch,NativePromisePrototype$9.catch!==method$8&&defineBuiltIn$5$b(NativePromisePrototype$9,"catch",method$8,{unsafe:!0}));var method$8,$$a$3=_export$g,call$a$c=functionCall$i,aCallable$2$c=aCallable$9$2,newPromiseCapabilityModule$1$8=newPromiseCapability$2$8,perform$b=perform$3$8,iterate$a=iterate$2$8,PROMISE_STATICS_INCORRECT_ITERATION$9=promiseStaticsIncorrectIteration$8;$$a$3({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$9},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$8.f(ie),ce=ae.reject,fe=perform$b(function(){var le=aCallable$2$c(ie.resolve);iterate$a(k,function(ve){call$a$c(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$9$3=_export$g,call$9$c=functionCall$i,newPromiseCapabilityModule$b=newPromiseCapability$2$8,FORCED_PROMISE_CONSTRUCTOR$1$8=promiseConstructorDetection$8.CONSTRUCTOR;$$9$3({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$8},{reject:function v(k){var ie=newPromiseCapabilityModule$b.f(this);return call$9$c(ie.reject,void 0,k),ie.promise}});var anObject$6$d=anObject$e$3,isObject$6$c=isObject$d$1,newPromiseCapability$a=newPromiseCapability$2$8,promiseResolve$1$8=function(v,k){if(anObject$6$d(v),isObject$6$c(k)&&k.constructor===v)return k;var ie=newPromiseCapability$a.f(v),ae=ie.resolve;return ae(k),ie.promise},$$8$4=_export$g,getBuiltIn$q=getBuiltIn$8$8,FORCED_PROMISE_CONSTRUCTOR$d=promiseConstructorDetection$8.CONSTRUCTOR,promiseResolve$9=promiseResolve$1$8;getBuiltIn$q("Promise");$$8$4({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$d},{resolve:function v(k){return promiseResolve$9(this,k)}});var WebStorageService=class{getItem(v){return new Promise(k=>{const ie=localStorage.getItem(v);k(ie)})}setItem(v,k){return new Promise(ie=>{localStorage.setItem(v,k),ie()})}removeItem(v){return new Promise(k=>{localStorage.removeItem(v),k()})}},objectDefineProperties$c={},internalObjectKeys$h=objectKeysInternal$g,enumBugKeys$1$g=enumBugKeys$3$c,objectKeys$2$a=Object.keys||function v(k){return internalObjectKeys$h(k,enumBugKeys$1$g)},DESCRIPTORS$5$i=descriptors$i,V8_PROTOTYPE_DEFINE_BUG$j=v8PrototypeDefineBug$i,definePropertyModule$2$g=objectDefineProperty$i,anObject$5$d=anObject$e$3,toIndexedObject$2$g=toIndexedObject$6$4,objectKeys$1$f=objectKeys$2$a;objectDefineProperties$c.f=DESCRIPTORS$5$i&&!V8_PROTOTYPE_DEFINE_BUG$j?Object.defineProperties:function v(k,ie){anObject$5$d(k);for(var ae=toIndexedObject$2$g(ie),ce=objectKeys$1$f(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$2$g.f(k,ve=ce[le++],ae[ve]);return k};var anObject$4$e=anObject$e$3,definePropertiesModule$c=objectDefineProperties$c,enumBugKeys$j=enumBugKeys$3$c,hiddenKeys$k=hiddenKeys$4$c,html$e=html$2$8,documentCreateElement$1$c=documentCreateElement$2$a,sharedKey$1$i=sharedKey$3$c,GT$c=">",LT$c="<",PROTOTYPE$1$4="prototype",SCRIPT$c="script",IE_PROTO$1$c=sharedKey$1$i("IE_PROTO"),EmptyConstructor$c=function(){},scriptTag$c=function(v){return LT$c+SCRIPT$c+GT$c+v+LT$c+"/"+SCRIPT$c+GT$c},NullProtoObjectViaActiveX$c=function(v){v.write(scriptTag$c("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$c=function(){var v=documentCreateElement$1$c("iframe"),k="java"+SCRIPT$c+":",ie;return v.style.display="none",html$e.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$c("document.F=Object")),ie.close(),ie.F},activeXDocument$c,NullProtoObject$c=function(){try{activeXDocument$c=new ActiveXObject("htmlfile")}catch{}NullProtoObject$c=typeof document<"u"?document.domain&&activeXDocument$c?NullProtoObjectViaActiveX$c(activeXDocument$c):NullProtoObjectViaIFrame$c():NullProtoObjectViaActiveX$c(activeXDocument$c);for(var v=enumBugKeys$j.length;v--;)delete NullProtoObject$c[PROTOTYPE$1$4][enumBugKeys$j[v]];return NullProtoObject$c()};hiddenKeys$k[IE_PROTO$1$c]=!0;var objectCreate$c=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$c[PROTOTYPE$1$4]=anObject$4$e(k),ae=new EmptyConstructor$c,EmptyConstructor$c[PROTOTYPE$1$4]=null,ae[IE_PROTO$1$c]=k):ae=NullProtoObject$c(),ie===void 0?ae:definePropertiesModule$c.f(ae,ie)},wellKnownSymbol$8$d=wellKnownSymbol$j$1,create$3$1=objectCreate$c,defineProperty$4$c=objectDefineProperty$i.f,UNSCOPABLES$c=wellKnownSymbol$8$d("unscopables"),ArrayPrototype$e=Array.prototype;ArrayPrototype$e[UNSCOPABLES$c]==null&&defineProperty$4$c(ArrayPrototype$e,UNSCOPABLES$c,{configurable:!0,value:create$3$1(null)});var addToUnscopables$2$3=function(v){ArrayPrototype$e[UNSCOPABLES$c][v]=!0},fails$g$7=fails$r$1,correctPrototypeGetter$c=!fails$g$7(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype}),hasOwn$2$i=hasOwnProperty_1$i,isCallable$5$i=isCallable$n$1,toObject$5$5=toObject$7$1,sharedKey$k=sharedKey$3$c,CORRECT_PROTOTYPE_GETTER$c=correctPrototypeGetter$c,IE_PROTO$d=sharedKey$k("IE_PROTO"),$Object$m=Object,ObjectPrototype$2$4=$Object$m.prototype,objectGetPrototypeOf$c=CORRECT_PROTOTYPE_GETTER$c?$Object$m.getPrototypeOf:function(v){var k=toObject$5$5(v);if(hasOwn$2$i(k,IE_PROTO$d))return k[IE_PROTO$d];var ie=k.constructor;return isCallable$5$i(ie)&&k instanceof ie?ie.prototype:k instanceof $Object$m?ObjectPrototype$2$4:null},fails$f$7=fails$r$1,isCallable$4$i=isCallable$n$1,getPrototypeOf$3$4=objectGetPrototypeOf$c,defineBuiltIn$4$c=defineBuiltIn$8$2,wellKnownSymbol$7$d=wellKnownSymbol$j$1,ITERATOR$2$d=wellKnownSymbol$7$d("iterator"),BUGGY_SAFARI_ITERATORS$1$c=!1,IteratorPrototype$2$c,PrototypeOfArrayIteratorPrototype$c,arrayIterator$c;[].keys&&(arrayIterator$c=[].keys(),"next"in arrayIterator$c?(PrototypeOfArrayIteratorPrototype$c=getPrototypeOf$3$4(getPrototypeOf$3$4(arrayIterator$c)),PrototypeOfArrayIteratorPrototype$c!==Object.prototype&&(IteratorPrototype$2$c=PrototypeOfArrayIteratorPrototype$c)):BUGGY_SAFARI_ITERATORS$1$c=!0);var NEW_ITERATOR_PROTOTYPE$c=IteratorPrototype$2$c==null||fails$f$7(function(){var v={};return IteratorPrototype$2$c[ITERATOR$2$d].call(v)!==v});NEW_ITERATOR_PROTOTYPE$c&&(IteratorPrototype$2$c={});isCallable$4$i(IteratorPrototype$2$c[ITERATOR$2$d])||defineBuiltIn$4$c(IteratorPrototype$2$c,ITERATOR$2$d,function(){return this});var iteratorsCore$c={IteratorPrototype:IteratorPrototype$2$c,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1$c},IteratorPrototype$1$c=iteratorsCore$c.IteratorPrototype,create$2$6=objectCreate$c,createPropertyDescriptor$2$g=createPropertyDescriptor$5$4,setToStringTag$2$c=setToStringTag$4$1,Iterators$2$c=iterators$d,returnThis$1$c=function(){return this},createIteratorConstructor$1$c=function(v,k,ie,ae){var ce=k+" Iterator";return v.prototype=create$2$6(IteratorPrototype$1$c,{next:createPropertyDescriptor$2$g(+!ae,ie)}),setToStringTag$2$c(v,ce,!1),Iterators$2$c[ce]=returnThis$1$c,v},$$7$7=_export$g,call$8$c=functionCall$i,FunctionName$1$4=functionName$i,isCallable$3$i=isCallable$n$1,createIteratorConstructor$d=createIteratorConstructor$1$c,getPrototypeOf$2$4=objectGetPrototypeOf$c,setPrototypeOf$4$4=objectSetPrototypeOf$d,setToStringTag$1$d=setToStringTag$4$1,createNonEnumerableProperty$5$6=createNonEnumerableProperty$8$2,defineBuiltIn$3$d=defineBuiltIn$8$2,wellKnownSymbol$6$d=wellKnownSymbol$j$1,Iterators$1$d=iterators$d,IteratorsCore$c=iteratorsCore$c,PROPER_FUNCTION_NAME$1$c=FunctionName$1$4.PROPER,CONFIGURABLE_FUNCTION_NAME$1$c=FunctionName$1$4.CONFIGURABLE,IteratorPrototype$e=IteratorsCore$c.IteratorPrototype,BUGGY_SAFARI_ITERATORS$d=IteratorsCore$c.BUGGY_SAFARI_ITERATORS,ITERATOR$1$d=wellKnownSymbol$6$d("iterator"),KEYS$c="keys",VALUES$c="values",ENTRIES$c="entries",returnThis$d=function(){return this},defineIterator$1$c=function(v,k,ie,ae,ce,fe,le){createIteratorConstructor$d(ie,k,ae);var ve=function(ur){if(ur===ce&&cr)return cr;if(!BUGGY_SAFARI_ITERATORS$d&&ur in me)return me[ur];switch(ur){case KEYS$c:return function(){return new ie(this,ur)};case VALUES$c:return function(){return new ie(this,ur)};case ENTRIES$c:return function(){return new ie(this,ur)}}return function(){return new ie(this)}},pe=k+" Iterator",ye=!1,me=v.prototype,Ee=me[ITERATOR$1$d]||me["@@iterator"]||ce&&me[ce],cr=!BUGGY_SAFARI_ITERATORS$d&&Ee||ve(ce),Br=k=="Array"&&me.entries||Ee,$r,Pr,Ar;if(Br&&($r=getPrototypeOf$2$4(Br.call(new v)),$r!==Object.prototype&&$r.next&&(getPrototypeOf$2$4($r)!==IteratorPrototype$e&&(setPrototypeOf$4$4?setPrototypeOf$4$4($r,IteratorPrototype$e):isCallable$3$i($r[ITERATOR$1$d])||defineBuiltIn$3$d($r,ITERATOR$1$d,returnThis$d)),setToStringTag$1$d($r,pe,!0))),PROPER_FUNCTION_NAME$1$c&&ce==VALUES$c&&Ee&&Ee.name!==VALUES$c&&(CONFIGURABLE_FUNCTION_NAME$1$c?createNonEnumerableProperty$5$6(me,"name",VALUES$c):(ye=!0,cr=function(){return call$8$c(Ee,this)})),ce)if(Pr={values:ve(VALUES$c),keys:fe?cr:ve(KEYS$c),entries:ve(ENTRIES$c)},le)for(Ar in Pr)(BUGGY_SAFARI_ITERATORS$d||ye||!(Ar in me))&&defineBuiltIn$3$d(me,Ar,Pr[Ar]);else $$7$7({target:k,proto:!0,forced:BUGGY_SAFARI_ITERATORS$d||ye},Pr);return me[ITERATOR$1$d]!==cr&&defineBuiltIn$3$d(me,ITERATOR$1$d,cr,{name:ce}),Iterators$1$d[k]=cr,Pr},toIndexedObject$1$g=toIndexedObject$6$4,addToUnscopables$1$c=addToUnscopables$2$3,Iterators$h=iterators$d,InternalStateModule$3$4=internalState$i,defineProperty$3$c=objectDefineProperty$i.f,defineIterator$d=defineIterator$1$c,DESCRIPTORS$4$i=descriptors$i,ARRAY_ITERATOR$c="Array Iterator",setInternalState$2$4=InternalStateModule$3$4.set,getInternalState$4$4=InternalStateModule$3$4.getterFor(ARRAY_ITERATOR$c),es_array_iterator$9=defineIterator$d(Array,"Array",function(v,k){setInternalState$2$4(this,{type:ARRAY_ITERATOR$c,target:toIndexedObject$1$g(v),index:0,kind:k})},function(){var v=getInternalState$4$4(this),k=v.target,ie=v.kind,ae=v.index++;return!k||ae>=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$c=Iterators$h.Arguments=Iterators$h.Array;addToUnscopables$1$c("keys");addToUnscopables$1$c("values");addToUnscopables$1$c("entries");if(DESCRIPTORS$4$i&&values$c.name!=="values")try{defineProperty$3$c(values$c,"name",{value:"values"})}catch(v){}var domIterables$9={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$j=documentCreateElement$2$a,classList$9=documentCreateElement$j("span").classList,DOMTokenListPrototype$1$9=classList$9&&classList$9.constructor&&classList$9.constructor.prototype,domTokenListPrototype$9=DOMTokenListPrototype$1$9===Object.prototype?void 0:DOMTokenListPrototype$1$9,global$b$d=global$t,DOMIterables$9=domIterables$9,DOMTokenListPrototype$a=domTokenListPrototype$9,ArrayIteratorMethods$9=es_array_iterator$9,createNonEnumerableProperty$4$c=createNonEnumerableProperty$8$2,wellKnownSymbol$5$d=wellKnownSymbol$j$1,ITERATOR$h=wellKnownSymbol$5$d("iterator"),TO_STRING_TAG$1$g=wellKnownSymbol$5$d("toStringTag"),ArrayValues$9=ArrayIteratorMethods$9.values,handlePrototype$9=function(v,k){if(v){if(v[ITERATOR$h]!==ArrayValues$9)try{createNonEnumerableProperty$4$c(v,ITERATOR$h,ArrayValues$9)}catch{v[ITERATOR$h]=ArrayValues$9}if(v[TO_STRING_TAG$1$g]||createNonEnumerableProperty$4$c(v,TO_STRING_TAG$1$g,k),DOMIterables$9[k]){for(var ie in ArrayIteratorMethods$9)if(v[ie]!==ArrayIteratorMethods$9[ie])try{createNonEnumerableProperty$4$c(v,ie,ArrayIteratorMethods$9[ie])}catch{v[ie]=ArrayIteratorMethods$9[ie]}}}};for(COLLECTION_NAME$9 in DOMIterables$9)handlePrototype$9(global$b$d[COLLECTION_NAME$9]&&global$b$d[COLLECTION_NAME$9].prototype,COLLECTION_NAME$9);var COLLECTION_NAME$9;handlePrototype$9(DOMTokenListPrototype$a,"DOMTokenList");var Logger$1=class{constructor(v){this.namespace=v}emit(v,...k){if(!!Logger$1.debug){if(this.namespace&&v!=="error"){console[v](this.namespace,...k);return}console[v](...k)}}log(...v){this.emit("log",...v)}info(...v){this.emit("info",...v)}warn(...v){this.emit("warn",...v)}error(...v){this.emit("error",...v)}};Logger$1.debug=!1;var logger$1=new Logger$1,$$6$8=_export$g,$includes$2=arrayIncludes$g.includes,fails$e$a=fails$r$1,addToUnscopables$d=addToUnscopables$2$3,BROKEN_ON_SPARSE$2=fails$e$a(function(){return!Array(1).includes()});$$6$8({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE$2},{includes:function v(k){return $includes$2(this,k,arguments.length>1?arguments[1]:void 0)}});addToUnscopables$d("includes");var isObject$5$i=isObject$d$1,classof$6$7=classofRaw$1$g,wellKnownSymbol$4$d=wellKnownSymbol$j$1,MATCH$1$2=wellKnownSymbol$4$d("match"),isRegexp$3=function(v){var k;return isObject$5$i(v)&&((k=v[MATCH$1$2])!==void 0?!!k:classof$6$7(v)=="RegExp")},isRegExp$1$1=isRegexp$3,$TypeError$3$i=TypeError,notARegexp$2=function(v){if(isRegExp$1$1(v))throw $TypeError$3$i("The method doesn't accept regular expressions");return v},classof$5$b=classof$9$2,$String$l=String,toString$4$4=function(v){if(classof$5$b(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$l(v)},wellKnownSymbol$3$g=wellKnownSymbol$j$1,MATCH$4=wellKnownSymbol$3$g("match"),correctIsRegexpLogic$2=function(v){var k=/./;try{"/./"[v](k)}catch{try{return k[MATCH$4]=!1,"/./"[v](k)}catch{}}return!1},$$5$8=_export$g,uncurryThis$a$g=functionUncurryThis$i,notARegExp$2=notARegexp$2,requireObjectCoercible$2$g=requireObjectCoercible$5$2,toString$3$5=toString$4$4,correctIsRegExpLogic$2=correctIsRegexpLogic$2,stringIndexOf$3=uncurryThis$a$g("".indexOf);$$5$8({target:"String",proto:!0,forced:!correctIsRegExpLogic$2("includes")},{includes:function v(k){return!!~stringIndexOf$3(toString$3$5(requireObjectCoercible$2$g(this)),toString$3$5(notARegExp$2(k)),arguments.length>1?arguments[1]:void 0)}});var DESCRIPTORS$3$i=descriptors$i,uncurryThis$9$g=functionUncurryThis$i,call$7$c=functionCall$i,fails$d$b=fails$r$1,objectKeys$h=objectKeys$2$a,getOwnPropertySymbolsModule$h=objectGetOwnPropertySymbols$g,propertyIsEnumerableModule$h=objectPropertyIsEnumerable$g,toObject$4$6=toObject$7$1,IndexedObject$2$5=indexedObject$g,$assign$d=Object.assign,defineProperty$2$g=Object.defineProperty,concat$i=uncurryThis$9$g([].concat),objectAssign$d=!$assign$d||fails$d$b(function(){if(DESCRIPTORS$3$i&&$assign$d({b:1},$assign$d(defineProperty$2$g({},"a",{enumerable:!0,get:function(){defineProperty$2$g(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},k={},ie=Symbol(),ae="abcdefghijklmnopqrst";return v[ie]=7,ae.split("").forEach(function(ce){k[ce]=ce}),$assign$d({},v)[ie]!=7||objectKeys$h($assign$d({},k)).join("")!=ae})?function v(k,ie){for(var ae=toObject$4$6(k),ce=arguments.length,fe=1,le=getOwnPropertySymbolsModule$h.f,ve=propertyIsEnumerableModule$h.f;ce>fe;)for(var pe=IndexedObject$2$5(arguments[fe++]),ye=le?concat$i(objectKeys$h(pe),le(pe)):objectKeys$h(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$3$i||call$7$c(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$d,$$4$9=_export$g,assign2$d=objectAssign$d;$$4$9({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$d},{assign:assign2$d});var EventEmitter=class{constructor(){this.emitter=new import_events.EventEmitter}on(v,k){return this.emitter.on(v,k),{remove:()=>this.emitter.off(v,k)}}off(v,k){this.emitter.off(v,k)}emit(v,k){this.emitter.emit(v,k)}},PACKAGE_NAME="near-wallet-selector",RECENTLY_SIGNED_IN_WALLETS="recentlySignedInWallets",CONTRACT="contract",PENDING_CONTRACT="contract:pending",SELECTED_WALLET_ID="selectedWalletId",PENDING_SELECTED_WALLET_ID="selectedWalletId:pending",WalletModules=class{constructor({factories:v,storage:k,options:ie,store:ae,emitter:ce,provider:fe}){this.factories=v,this.storage=k,this.options=ie,this.store=ae,this.emitter=ce,this.provider=fe,this.modules=[],this.instances={}}validateWallet(v){return __awaiter$l(this,void 0,void 0,function*(){let k=[];const ie=yield this.getWallet(v);return ie&&(k=yield ie.getAccounts().catch(ae=>(logger$1.log(`Failed to validate ${ie.id} during setup`),logger$1.error(ae),[]))),k})}resolveStorageState(){return __awaiter$l(this,void 0,void 0,function*(){const v=new JsonStorage(this.storage,PACKAGE_NAME),k=yield v.getItem(PENDING_SELECTED_WALLET_ID),ie=yield v.getItem(PENDING_CONTRACT);if(k&&ie){const ve=yield this.validateWallet(k);if(yield v.removeItem(PENDING_SELECTED_WALLET_ID),yield v.removeItem(PENDING_CONTRACT),ve.length){const{selectedWalletId:pe}=this.store.getState(),ye=yield this.getWallet(pe);ye&&k!==pe&&(yield ye.signOut().catch(Ee=>{logger$1.log("Failed to sign out existing wallet"),logger$1.error(Ee)}));const me=yield this.setWalletAsRecentlySignedIn(k);return{accounts:ve,contract:ie,selectedWalletId:k,recentlySignedInWallets:me}}}const{contract:ae,selectedWalletId:ce}=this.store.getState(),fe=yield this.validateWallet(ce),le=yield v.getItem(RECENTLY_SIGNED_IN_WALLETS);return fe.length?{accounts:fe,contract:ae,selectedWalletId:ce,recentlySignedInWallets:le||[]}:{accounts:[],contract:null,selectedWalletId:null,recentlySignedInWallets:le||[]}})}setWalletAsRecentlySignedIn(v){return __awaiter$l(this,void 0,void 0,function*(){const k=new JsonStorage(this.storage,PACKAGE_NAME);let ie=yield k.getItem(RECENTLY_SIGNED_IN_WALLETS);return ie||(ie=[]),ie.includes(v)||(ie.unshift(v),ie=ie.slice(0,5),yield k.setItem(RECENTLY_SIGNED_IN_WALLETS,ie)),ie})}signOutWallet(v){return __awaiter$l(this,void 0,void 0,function*(){const k=yield this.getWallet(v);yield k.signOut().catch(ie=>{logger$1.log(`Failed to sign out ${k.id}`),logger$1.error(ie),this.onWalletSignedOut(k.id)})})}onWalletSignedIn(v,{accounts:k,contractId:ie,methodNames:ae}){return __awaiter$l(this,void 0,void 0,function*(){const{selectedWalletId:ce}=this.store.getState(),fe=new JsonStorage(this.storage,PACKAGE_NAME),le={contractId:ie,methodNames:ae};if(!k.length){this.getModule(v).type==="browser"&&(yield fe.setItem(PENDING_SELECTED_WALLET_ID,v),yield fe.setItem(PENDING_CONTRACT,le));return}ce&&ce!==v&&(yield this.signOutWallet(ce));const ve=yield this.setWalletAsRecentlySignedIn(v);this.store.dispatch({type:"WALLET_CONNECTED",payload:{walletId:v,contract:le,accounts:k,recentlySignedInWallets:ve}}),this.emitter.emit("signedIn",{walletId:v,contractId:ie,methodNames:ae,accounts:k})})}onWalletSignedOut(v){this.store.dispatch({type:"WALLET_DISCONNECTED",payload:{walletId:v}}),this.emitter.emit("signedOut",{walletId:v})}setupWalletEmitter(v){const k=new EventEmitter;return k.on("signedOut",()=>{this.onWalletSignedOut(v.id)}),k.on("signedIn",ie=>{this.onWalletSignedIn(v.id,ie)}),k.on("accountsChanged",({accounts:ie})=>__awaiter$l(this,void 0,void 0,function*(){if(this.emitter.emit("accountsChanged",{walletId:v.id,accounts:ie}),!ie.length)return this.signOutWallet(v.id);this.store.dispatch({type:"ACCOUNTS_CHANGED",payload:{walletId:v.id,accounts:ie}})})),k.on("networkChanged",({networkId:ie})=>{this.emitter.emit("networkChanged",{walletId:v.id,networkId:ie})}),k.on("uriChanged",({uri:ie})=>{this.emitter.emit("uriChanged",{walletId:v.id,uri:ie})}),k}decorateWallet(v){const k=v.signIn,ie=v.signOut,ae=v.signMessage;return v.signIn=ce=>__awaiter$l(this,void 0,void 0,function*(){const fe=yield k(ce),{contractId:le,methodNames:ve=[]}=ce;return yield this.onWalletSignedIn(v.id,{accounts:fe,contractId:le,methodNames:ve}),fe}),v.signOut=()=>__awaiter$l(this,void 0,void 0,function*(){yield ie(),this.onWalletSignedOut(v.id)}),v.signMessage=ce=>__awaiter$l(this,void 0,void 0,function*(){if(ae===void 0)throw Error(`The signMessage method is not supported by ${v.metadata.name}`);return yield ae(ce)}),v}setupInstance(v){return __awaiter$l(this,void 0,void 0,function*(){if(!v.metadata.available){const ie=v.type==="injected"?"not installed":"not available";throw Error(`${v.metadata.name} is ${ie}`)}const k=Object.assign({id:v.id,type:v.type,metadata:v.metadata},yield v.init({id:v.id,type:v.type,metadata:v.metadata,options:this.options,store:this.store.toReadOnly(),provider:this.provider,emitter:this.setupWalletEmitter(v),logger:new Logger$1(v.id),storage:new JsonStorage(this.storage,[PACKAGE_NAME,v.id])}));return this.decorateWallet(k)})}getModule(v){return this.modules.find(k=>k.id===v)}getWallet(v){return __awaiter$l(this,void 0,void 0,function*(){const k=this.getModule(v);if(!k)return null;const{selectedWalletId:ie}=this.store.getState();return!k.metadata.available&&ie?(this.onWalletSignedOut(ie),null):yield k.wallet()})}setup(){return __awaiter$l(this,void 0,void 0,function*(){const v=[];for(let fe=0;fe(logger$1.log("Failed to setup module"),logger$1.error(ve),null));!le||v.some(ve=>ve.id===le.id)||v.push({id:le.id,type:le.type,metadata:le.metadata,wallet:()=>__awaiter$l(this,void 0,void 0,function*(){let ve=this.instances[le.id];return ve||(ve=yield this.setupInstance(le),this.instances[le.id]=ve,ve)})})}this.modules=v;const{accounts:k,contract:ie,selectedWalletId:ae,recentlySignedInWallets:ce}=yield this.resolveStorageState();this.store.dispatch({type:"SETUP_WALLET_MODULES",payload:{modules:v,accounts:k,contract:ie,selectedWalletId:ae,recentlySignedInWallets:ce}});for(let fe=0;fe{switch(v){case"mainnet":return{networkId:v,nodeUrl:"https://rpc.mainnet.near.org",helperUrl:"https://helper.mainnet.near.org",explorerUrl:"https://explorer.near.org",indexerUrl:"https://api.kitwallet.app"};case"testnet":return{networkId:v,nodeUrl:"https://rpc.testnet.near.org",helperUrl:"https://helper.testnet.near.org",explorerUrl:"https://explorer.testnet.near.org",indexerUrl:"https://testnet-api.kitwallet.app"};default:throw Error(`Failed to find config for: '${v}'`)}},resolveNetwork=v=>typeof v=="string"?getNetworkPreset(v):v,resolveOptions=v=>({options:{languageCode:v.languageCode||void 0,network:resolveNetwork(v.network),debug:v.debug||!1,optimizeWalletOrder:v.optimizeWalletOrder!==!1,randomizeWalletOrder:v.randomizeWalletOrder||!1,relayerUrl:v.relayerUrl||void 0},storage:v.storage||new WebStorageService}),reducer=(v,k)=>{switch(logger$1.log("Store Action",k),k.type){case"SETUP_WALLET_MODULES":{const{modules:ie,accounts:ae,contract:ce,selectedWalletId:fe,recentlySignedInWallets:le}=k.payload,ve=ae.map((pe,ye)=>Object.assign(Object.assign({},pe),{active:ye===0}));return Object.assign(Object.assign({},v),{modules:ie,accounts:ve,contract:ce,selectedWalletId:fe,recentlySignedInWallets:le})}case"WALLET_CONNECTED":{const{walletId:ie,contract:ae,accounts:ce,recentlySignedInWallets:fe}=k.payload;if(!ce.length)return v;const le=v.accounts.findIndex(pe=>pe.active),ve=ce.map((pe,ye)=>Object.assign(Object.assign({},pe),{active:ye===(le>-1?le:0)}));return Object.assign(Object.assign({},v),{contract:ae,accounts:ve,selectedWalletId:ie,recentlySignedInWallets:fe})}case"WALLET_DISCONNECTED":{const{walletId:ie}=k.payload;return ie!==v.selectedWalletId?v:Object.assign(Object.assign({},v),{contract:null,accounts:[],selectedWalletId:null})}case"ACCOUNTS_CHANGED":{const{walletId:ie,accounts:ae}=k.payload;if(ie!==v.selectedWalletId)return v;const ce=v.accounts.find(ve=>ve.active),fe=!ae.some(ve=>ve.accountId===(ce==null?void 0:ce.accountId)),le=ae.map((ve,pe)=>Object.assign(Object.assign({},ve),{active:fe?pe===0:ve.accountId===(ce==null?void 0:ce.accountId)}));return Object.assign(Object.assign({},v),{accounts:le})}case"SET_ACTIVE_ACCOUNT":{const{accountId:ie}=k.payload,ae=v.accounts.map(ce=>Object.assign(Object.assign({},ce),{active:ce.accountId===ie}));return Object.assign(Object.assign({},v),{accounts:ae})}default:return v}},createStore=v=>__awaiter$l(void 0,void 0,void 0,function*(){const k=new JsonStorage(v,PACKAGE_NAME),ie={modules:[],accounts:[],contract:yield k.getItem(CONTRACT),selectedWalletId:yield k.getItem(SELECTED_WALLET_ID),recentlySignedInWallets:(yield k.getItem(RECENTLY_SIGNED_IN_WALLETS))||[]},ae=new BehaviorSubject(ie),ce=new Subject;ce.pipe(scan(reducer,ie)).subscribe(ae);const fe=(ve,pe,ye,me)=>__awaiter$l(void 0,void 0,void 0,function*(){if(pe[me]!==ve[me]){if(pe[me]){yield k.setItem(ye,pe[me]);return}yield k.removeItem(ye)}});let le=ae.getValue();return ae.subscribe(ve=>{fe(le,ve,SELECTED_WALLET_ID,"selectedWalletId"),fe(le,ve,CONTRACT,"contract"),fe(le,ve,RECENTLY_SIGNED_IN_WALLETS,"recentlySignedInWallets"),le=ve}),{observable:ae,getState:()=>ae.getValue(),dispatch:ve=>ce.next(ve),toReadOnly:()=>({getState:()=>ae.getValue(),observable:ae.asObservable()})}}),walletSelectorInstance=null,createSelector=(v,k,ie,ae)=>({options:v,store:k.toReadOnly(),wallet:ce=>__awaiter$l(void 0,void 0,void 0,function*(){const{selectedWalletId:fe}=k.getState(),le=yield ie.getWallet(ce||fe);if(!le)throw ce?new Error("Invalid wallet id"):new Error("No wallet selected");return le}),setActiveAccount:ce=>{const{accounts:fe}=k.getState();if(!fe.some(le=>le.accountId===ce))throw new Error("Invalid account id");k.dispatch({type:"SET_ACTIVE_ACCOUNT",payload:{accountId:ce}})},isSignedIn(){const{accounts:ce}=k.getState();return Boolean(ce.length)},on:(ce,fe)=>ae.on(ce,fe),off:(ce,fe)=>{ae.off(ce,fe)}}),setupWalletSelector=v=>__awaiter$l(void 0,void 0,void 0,function*(){const{options:k,storage:ie}=resolveOptions(v);Logger$1.debug=k.debug;const ae=new EventEmitter,ce=yield createStore(ie),fe=new WalletModules({factories:v.modules,storage:ie,options:k,store:ce,emitter:ae,provider:new Provider$1(k.network.nodeUrl)});return yield fe.setup(),v.allowMultipleSelectors?createSelector(k,ce,fe,ae):(walletSelectorInstance||(walletSelectorInstance=createSelector(k,ce,fe,ae)),walletSelectorInstance)}),wait=v=>new Promise(k=>setTimeout(k,v)),poll$1=(v,k,ie)=>__awaiter$l(void 0,void 0,void 0,function*(){const ae=v();if(ae)return ae;if(!ie)throw new Error("Exceeded timeout");return wait(k).then(()=>poll$1(v,k,ie-1))}),waitFor=(v,k={})=>__awaiter$l(void 0,void 0,void 0,function*(){const{timeout:ie=100,interval:ae=50}=k;return Promise.race([wait(ie).then(()=>{throw new Error("Exceeded timeout")}),poll$1(v,ae,Math.floor(ie/ae))])}),getActiveAccount=v=>v.accounts.find(k=>k.active)||null,aCallable$1$i=aCallable$9$2,toObject$3$a=toObject$7$1,IndexedObject$1$d=indexedObject$g,lengthOfArrayLike$5$5=lengthOfArrayLike$8$1,$TypeError$2$i=TypeError,createMethod$2$3=function(v){return function(k,ie,ae,ce){aCallable$1$i(ie);var fe=toObject$3$a(k),le=IndexedObject$1$d(fe),ve=lengthOfArrayLike$5$5(fe),pe=v?ve-1:0,ye=v?-1:1;if(ae<2)for(;;){if(pe in le){ce=le[pe],pe+=ye;break}if(pe+=ye,v?pe<0:ve<=pe)throw $TypeError$2$i("Reduce of empty array with no initial value")}for(;v?pe>=0:ve>pe;pe+=ye)pe in le&&(ce=ie(ce,le[pe],pe,fe));return ce}},arrayReduce$1={left:createMethod$2$3(!1),right:createMethod$2$3(!0)},fails$c$b=fails$r$1,arrayMethodIsStrict$1$1=function(v,k){var ie=[][v];return!!ie&&fails$c$b(function(){ie.call(null,k||function(){return 1},1)})},$$3$c=_export$g,$reduce$1=arrayReduce$1.left,arrayMethodIsStrict$3=arrayMethodIsStrict$1$1,CHROME_VERSION$1=engineV8Version$i,IS_NODE$a=engineIsNode$8,STRICT_METHOD$2=arrayMethodIsStrict$3("reduce"),CHROME_BUG$1=!IS_NODE$a&&CHROME_VERSION$1>79&&CHROME_VERSION$1<83;$$3$c({target:"Array",proto:!0,forced:!STRICT_METHOD$2||CHROME_BUG$1},{reduce:function v(k){var ie=arguments.length;return $reduce$1(this,k,ie,ie>1?arguments[1]:void 0)}});var anObject$3$g=anObject$e$3,regexpFlags$1$4=function(){var v=anObject$3$g(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},fails$b$c=fails$r$1,global$a$g=global$t,$RegExp$2$3=global$a$g.RegExp,UNSUPPORTED_Y$2$2=fails$b$c(function(){var v=$RegExp$2$3("a","y");return v.lastIndex=2,v.exec("abcd")!=null}),MISSED_STICKY$3=UNSUPPORTED_Y$2$2||fails$b$c(function(){return!$RegExp$2$3("a","y").sticky}),BROKEN_CARET$3=UNSUPPORTED_Y$2$2||fails$b$c(function(){var v=$RegExp$2$3("^r","gy");return v.lastIndex=2,v.exec("str")!=null}),regexpStickyHelpers$3={BROKEN_CARET:BROKEN_CARET$3,MISSED_STICKY:MISSED_STICKY$3,UNSUPPORTED_Y:UNSUPPORTED_Y$2$2},fails$a$e=fails$r$1,global$9$i=global$t,$RegExp$1$3=global$9$i.RegExp,regexpUnsupportedDotAll$3=fails$a$e(function(){var v=$RegExp$1$3(".","s");return!(v.dotAll&&v.exec(` +`)&&v.flags==="s")}),fails$9$g=fails$r$1,global$8$i=global$t,$RegExp$5=global$8$i.RegExp,regexpUnsupportedNcg$3=fails$9$g(function(){var v=$RegExp$5("(?b)","g");return v.exec("b").groups.a!=="b"||"b".replace(v,"$c")!=="bc"}),call$6$e=functionCall$i,uncurryThis$8$g=functionUncurryThis$i,toString$2$f=toString$4$4,regexpFlags$f=regexpFlags$1$4,stickyHelpers$1$2=regexpStickyHelpers$3,shared$l=shared$4$4.exports,create$1$c=objectCreate$c,getInternalState$3$4=internalState$i.get,UNSUPPORTED_DOT_ALL$3=regexpUnsupportedDotAll$3,UNSUPPORTED_NCG$3=regexpUnsupportedNcg$3,nativeReplace$3=shared$l("native-string-replace",String.prototype.replace),nativeExec$3=RegExp.prototype.exec,patchedExec$3=nativeExec$3,charAt$2$3=uncurryThis$8$g("".charAt),indexOf$g=uncurryThis$8$g("".indexOf),replace$5=uncurryThis$8$g("".replace),stringSlice$2$4=uncurryThis$8$g("".slice),UPDATES_LAST_INDEX_WRONG$3=function(){var v=/a/,k=/b*/g;return call$6$e(nativeExec$3,v,"a"),call$6$e(nativeExec$3,k,"a"),v.lastIndex!==0||k.lastIndex!==0}(),UNSUPPORTED_Y$1$3=stickyHelpers$1$2.BROKEN_CARET,NPCG_INCLUDED$3=/()??/.exec("")[1]!==void 0,PATCH$3=UPDATES_LAST_INDEX_WRONG$3||NPCG_INCLUDED$3||UNSUPPORTED_Y$1$3||UNSUPPORTED_DOT_ALL$3||UNSUPPORTED_NCG$3;PATCH$3&&(patchedExec$3=function(k){var ie=this,ae=getInternalState$3$4(ie),ce=toString$2$f(k),fe=ae.raw,le,ve,pe,ye,me,Ee,cr;if(fe)return fe.lastIndex=ie.lastIndex,le=call$6$e(patchedExec$3,fe,ce),ie.lastIndex=fe.lastIndex,le;var Br=ae.groups,$r=UNSUPPORTED_Y$1$3&&ie.sticky,Pr=call$6$e(regexpFlags$f,ie),Ar=ie.source,ur=0,jr=ce;if($r&&(Pr=replace$5(Pr,"y",""),indexOf$g(Pr,"g")===-1&&(Pr+="g"),jr=stringSlice$2$4(ce,ie.lastIndex),ie.lastIndex>0&&(!ie.multiline||ie.multiline&&charAt$2$3(ce,ie.lastIndex-1)!==` +`)&&(Ar="(?: "+Ar+")",jr=" "+jr,ur++),ve=new RegExp("^(?:"+Ar+")",Pr)),NPCG_INCLUDED$3&&(ve=new RegExp("^"+Ar+"$(?!\\s)",Pr)),UPDATES_LAST_INDEX_WRONG$3&&(pe=ie.lastIndex),ye=call$6$e(nativeExec$3,$r?ve:ie,jr),$r?ye?(ye.input=stringSlice$2$4(ye.input,ur),ye[0]=stringSlice$2$4(ye[0],ur),ye.index=ie.lastIndex,ie.lastIndex+=ye[0].length):ie.lastIndex=0:UPDATES_LAST_INDEX_WRONG$3&&ye&&(ie.lastIndex=ie.global?ye.index+ye[0].length:pe),NPCG_INCLUDED$3&&ye&&ye.length>1&&call$6$e(nativeReplace$3,ye[0],ve,function(){for(me=1;mev!==""&&userAgentRules$1.reduce((k,[ie,ae])=>{if(k)return k;const ce=ae.exec(v);return!!ce&&[ie,ce]},!1),isCurrentBrowserSupported=v=>{if(typeof navigator>"u")return!1;const k=matchUserAgent$1(navigator.userAgent);if(!k)return!1;const[ie]=k;return ie==="searchbot"?!1:!!v.find(ae=>ae===ie)},arrayBufferNative$4=typeof ArrayBuffer<"u"&&typeof DataView<"u",NATIVE_ARRAY_BUFFER$1$4=arrayBufferNative$4,DESCRIPTORS$2$i=descriptors$i,global$7$i=global$t,isCallable$2$i=isCallable$n$1,isObject$4$i=isObject$d$1,hasOwn$1$i=hasOwnProperty_1$i,classof$4$c=classof$9$2,tryToString$m=tryToString$5$2,createNonEnumerableProperty$3$c=createNonEnumerableProperty$8$2,defineBuiltIn$2$e=defineBuiltIn$8$2,defineProperty$1$i=objectDefineProperty$i.f,isPrototypeOf$1$g=objectIsPrototypeOf$i,getPrototypeOf$1$c=objectGetPrototypeOf$c,setPrototypeOf$3$4=objectSetPrototypeOf$d,wellKnownSymbol$2$g=wellKnownSymbol$j$1,uid$l=uid$3$4,InternalStateModule$2$b=internalState$i,enforceInternalState$1$4=InternalStateModule$2$b.enforce,getInternalState$2$6=InternalStateModule$2$b.get,Int8Array$4$4=global$7$i.Int8Array,Int8ArrayPrototype$1$4=Int8Array$4$4&&Int8Array$4$4.prototype,Uint8ClampedArray$1$4=global$7$i.Uint8ClampedArray,Uint8ClampedArrayPrototype$4=Uint8ClampedArray$1$4&&Uint8ClampedArray$1$4.prototype,TypedArray$1$4=Int8Array$4$4&&getPrototypeOf$1$c(Int8Array$4$4),TypedArrayPrototype$1$4=Int8ArrayPrototype$1$4&&getPrototypeOf$1$c(Int8ArrayPrototype$1$4),ObjectPrototype$1$4=Object.prototype,TypeError$1$i=global$7$i.TypeError,TO_STRING_TAG$j=wellKnownSymbol$2$g("toStringTag"),TYPED_ARRAY_TAG$1$4=uid$l("TYPED_ARRAY_TAG"),TYPED_ARRAY_CONSTRUCTOR$4="TypedArrayConstructor",NATIVE_ARRAY_BUFFER_VIEWS$2$4=NATIVE_ARRAY_BUFFER$1$4&&!!setPrototypeOf$3$4&&classof$4$c(global$7$i.opera)!=="Opera",TYPED_ARRAY_TAG_REQUIRED$4=!1,NAME$4,Constructor$4,Prototype$4,TypedArrayConstructorsList$4={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},BigIntArrayConstructorsList$4={BigInt64Array:8,BigUint64Array:8},isView$4=function v(k){if(!isObject$4$i(k))return!1;var ie=classof$4$c(k);return ie==="DataView"||hasOwn$1$i(TypedArrayConstructorsList$4,ie)||hasOwn$1$i(BigIntArrayConstructorsList$4,ie)},getTypedArrayConstructor$4=function(v){var k=getPrototypeOf$1$c(v);if(!!isObject$4$i(k)){var ie=getInternalState$2$6(k);return ie&&hasOwn$1$i(ie,TYPED_ARRAY_CONSTRUCTOR$4)?ie[TYPED_ARRAY_CONSTRUCTOR$4]:getTypedArrayConstructor$4(k)}},isTypedArray$1$4=function(v){if(!isObject$4$i(v))return!1;var k=classof$4$c(v);return hasOwn$1$i(TypedArrayConstructorsList$4,k)||hasOwn$1$i(BigIntArrayConstructorsList$4,k)},aTypedArray$4$4=function(v){if(isTypedArray$1$4(v))return v;throw TypeError$1$i("Target is not a typed array")},aTypedArrayConstructor$2$4=function(v){if(isCallable$2$i(v)&&(!setPrototypeOf$3$4||isPrototypeOf$1$g(TypedArray$1$4,v)))return v;throw TypeError$1$i(tryToString$m(v)+" is not a typed array constructor")},exportTypedArrayMethod$4$4=function(v,k,ie,ae){if(!!DESCRIPTORS$2$i){if(ie)for(var ce in TypedArrayConstructorsList$4){var fe=global$7$i[ce];if(fe&&hasOwn$1$i(fe.prototype,v))try{delete fe.prototype[v]}catch{try{fe.prototype[v]=k}catch{}}}(!TypedArrayPrototype$1$4[v]||ie)&&defineBuiltIn$2$e(TypedArrayPrototype$1$4,v,ie?k:NATIVE_ARRAY_BUFFER_VIEWS$2$4&&Int8ArrayPrototype$1$4[v]||k,ae)}},exportTypedArrayStaticMethod$1$1=function(v,k,ie){var ae,ce;if(!!DESCRIPTORS$2$i){if(setPrototypeOf$3$4){if(ie){for(ae in TypedArrayConstructorsList$4)if(ce=global$7$i[ae],ce&&hasOwn$1$i(ce,v))try{delete ce[v]}catch{}}if(!TypedArray$1$4[v]||ie)try{return defineBuiltIn$2$e(TypedArray$1$4,v,ie?k:NATIVE_ARRAY_BUFFER_VIEWS$2$4&&TypedArray$1$4[v]||k)}catch{}else return}for(ae in TypedArrayConstructorsList$4)ce=global$7$i[ae],ce&&(!ce[v]||ie)&&defineBuiltIn$2$e(ce,v,k)}};for(NAME$4 in TypedArrayConstructorsList$4)Constructor$4=global$7$i[NAME$4],Prototype$4=Constructor$4&&Constructor$4.prototype,Prototype$4?enforceInternalState$1$4(Prototype$4)[TYPED_ARRAY_CONSTRUCTOR$4]=Constructor$4:NATIVE_ARRAY_BUFFER_VIEWS$2$4=!1;for(NAME$4 in BigIntArrayConstructorsList$4)Constructor$4=global$7$i[NAME$4],Prototype$4=Constructor$4&&Constructor$4.prototype,Prototype$4&&(enforceInternalState$1$4(Prototype$4)[TYPED_ARRAY_CONSTRUCTOR$4]=Constructor$4);if((!NATIVE_ARRAY_BUFFER_VIEWS$2$4||!isCallable$2$i(TypedArray$1$4)||TypedArray$1$4===Function.prototype)&&(TypedArray$1$4=function(){throw TypeError$1$i("Incorrect invocation")},NATIVE_ARRAY_BUFFER_VIEWS$2$4))for(NAME$4 in TypedArrayConstructorsList$4)global$7$i[NAME$4]&&setPrototypeOf$3$4(global$7$i[NAME$4],TypedArray$1$4);if((!NATIVE_ARRAY_BUFFER_VIEWS$2$4||!TypedArrayPrototype$1$4||TypedArrayPrototype$1$4===ObjectPrototype$1$4)&&(TypedArrayPrototype$1$4=TypedArray$1$4.prototype,NATIVE_ARRAY_BUFFER_VIEWS$2$4))for(NAME$4 in TypedArrayConstructorsList$4)global$7$i[NAME$4]&&setPrototypeOf$3$4(global$7$i[NAME$4].prototype,TypedArrayPrototype$1$4);NATIVE_ARRAY_BUFFER_VIEWS$2$4&&getPrototypeOf$1$c(Uint8ClampedArrayPrototype$4)!==TypedArrayPrototype$1$4&&setPrototypeOf$3$4(Uint8ClampedArrayPrototype$4,TypedArrayPrototype$1$4);if(DESCRIPTORS$2$i&&!hasOwn$1$i(TypedArrayPrototype$1$4,TO_STRING_TAG$j)){TYPED_ARRAY_TAG_REQUIRED$4=!0,defineProperty$1$i(TypedArrayPrototype$1$4,TO_STRING_TAG$j,{get:function(){return isObject$4$i(this)?this[TYPED_ARRAY_TAG$1$4]:void 0}});for(NAME$4 in TypedArrayConstructorsList$4)global$7$i[NAME$4]&&createNonEnumerableProperty$3$c(global$7$i[NAME$4],TYPED_ARRAY_TAG$1$4,NAME$4)}var arrayBufferViewCore$4={NATIVE_ARRAY_BUFFER_VIEWS:NATIVE_ARRAY_BUFFER_VIEWS$2$4,TYPED_ARRAY_TAG:TYPED_ARRAY_TAG_REQUIRED$4&&TYPED_ARRAY_TAG$1$4,aTypedArray:aTypedArray$4$4,aTypedArrayConstructor:aTypedArrayConstructor$2$4,exportTypedArrayMethod:exportTypedArrayMethod$4$4,exportTypedArrayStaticMethod:exportTypedArrayStaticMethod$1$1,getTypedArrayConstructor:getTypedArrayConstructor$4,isView:isView$4,isTypedArray:isTypedArray$1$4,TypedArray:TypedArray$1$4,TypedArrayPrototype:TypedArrayPrototype$1$4},global$6$i=global$t,fails$8$g=fails$r$1,checkCorrectnessOfIteration$d=checkCorrectnessOfIteration$2$1,NATIVE_ARRAY_BUFFER_VIEWS$1$4=arrayBufferViewCore$4.NATIVE_ARRAY_BUFFER_VIEWS,ArrayBuffer$3$4=global$6$i.ArrayBuffer,Int8Array$3$4=global$6$i.Int8Array,typedArrayConstructorsRequireWrappers$4=!NATIVE_ARRAY_BUFFER_VIEWS$1$4||!fails$8$g(function(){Int8Array$3$4(1)})||!fails$8$g(function(){new Int8Array$3$4(-1)})||!checkCorrectnessOfIteration$d(function(v){new Int8Array$3$4,new Int8Array$3$4(null),new Int8Array$3$4(1.5),new Int8Array$3$4(v)},!0)||fails$8$g(function(){return new Int8Array$3$4(new ArrayBuffer$3$4(2),1,void 0).length!==1}),bind$1$c=functionBindContext$c,call$5$g=functionCall$i,aConstructor$e=aConstructor$2$4,toObject$2$f=toObject$7$1,lengthOfArrayLike$4$5=lengthOfArrayLike$8$1,getIterator$d=getIterator$2$1,getIteratorMethod$e=getIteratorMethod$3$1,isArrayIteratorMethod$d=isArrayIteratorMethod$2$1,aTypedArrayConstructor$1$4=arrayBufferViewCore$4.aTypedArrayConstructor,typedArrayFrom$2$1=function v(k){var ie=aConstructor$e(this),ae=toObject$2$f(k),ce=arguments.length,fe=ce>1?arguments[1]:void 0,le=fe!==void 0,ve=getIteratorMethod$e(ae),pe,ye,me,Ee,cr,Br;if(ve&&!isArrayIteratorMethod$d(ve))for(cr=getIterator$d(ae,ve),Br=cr.next,ae=[];!(Ee=call$5$g(Br,cr)).done;)ae.push(Ee.value);for(le&&ce>2&&(fe=bind$1$c(fe,arguments[2])),ye=lengthOfArrayLike$4$5(ae),me=new(aTypedArrayConstructor$1$4(ie))(ye),pe=0;ye>pe;pe++)me[pe]=le?fe(ae[pe],pe):ae[pe];return me},TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$1$1=typedArrayConstructorsRequireWrappers$4,exportTypedArrayStaticMethod$4=arrayBufferViewCore$4.exportTypedArrayStaticMethod,typedArrayFrom$1$4=typedArrayFrom$2$1;exportTypedArrayStaticMethod$4("from",typedArrayFrom$1$4,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$1$1);var defineBuiltIn$1$i=defineBuiltIn$8$2,defineBuiltIns$1$4=function(v,k,ie){for(var ae in k)defineBuiltIn$1$i(v,ae,k[ae],ie);return v},toIntegerOrInfinity$3$6=toIntegerOrInfinity$6$2,toLength$4$4=toLength$6$2,$RangeError$2$4=RangeError,toIndex$2$4=function(v){if(v===void 0)return 0;var k=toIntegerOrInfinity$3$6(v),ie=toLength$4$4(k);if(k!==ie)throw $RangeError$2$4("Wrong length or index");return ie},$Array$2$4=Array,abs$4=Math.abs,pow$4=Math.pow,floor$2$4=Math.floor,log$4=Math.log,LN2$4=Math.LN2,pack$5=function(v,k,ie){var ae=$Array$2$4(ie),ce=ie*8-k-1,fe=(1<>1,ve=k===23?pow$4(2,-24)-pow$4(2,-77):0,pe=v<0||v===0&&1/v<0?1:0,ye=0,me,Ee,cr;for(v=abs$4(v),v!=v||v===1/0?(Ee=v!=v?1:0,me=fe):(me=floor$2$4(log$4(v)/LN2$4),cr=pow$4(2,-me),v*cr<1&&(me--,cr*=2),me+le>=1?v+=ve/cr:v+=ve*pow$4(2,1-le),v*cr>=2&&(me++,cr/=2),me+le>=fe?(Ee=0,me=fe):me+le>=1?(Ee=(v*cr-1)*pow$4(2,k),me=me+le):(Ee=v*pow$4(2,le-1)*pow$4(2,k),me=0));k>=8;)ae[ye++]=Ee&255,Ee/=256,k-=8;for(me=me<0;)ae[ye++]=me&255,me/=256,ce-=8;return ae[--ye]|=pe*128,ae},unpack$5=function(v,k){var ie=v.length,ae=ie*8-k-1,ce=(1<>1,le=ae-7,ve=ie-1,pe=v[ve--],ye=pe&127,me;for(pe>>=7;le>0;)ye=ye*256+v[ve--],le-=8;for(me=ye&(1<<-le)-1,ye>>=-le,le+=k;le>0;)me=me*256+v[ve--],le-=8;if(ye===0)ye=1-fe;else{if(ye===ce)return me?NaN:pe?-1/0:1/0;me=me+pow$4(2,k),ye=ye-fe}return(pe?-1:1)*me*pow$4(2,ye-k)},ieee754$4={pack:pack$5,unpack:unpack$5},toObject$1$i=toObject$7$1,toAbsoluteIndex$2$6=toAbsoluteIndex$4$4,lengthOfArrayLike$3$6=lengthOfArrayLike$8$1,arrayFill$1$4=function v(k){for(var ie=toObject$1$i(this),ae=lengthOfArrayLike$3$6(ie),ce=arguments.length,fe=toAbsoluteIndex$2$6(ce>1?arguments[1]:void 0,ae),le=ce>2?arguments[2]:void 0,ve=le===void 0?ae:toAbsoluteIndex$2$6(le,ae);ve>fe;)ie[fe++]=k;return ie},toPropertyKey$1$i=toPropertyKey$4$4,definePropertyModule$1$i=objectDefineProperty$i,createPropertyDescriptor$1$i=createPropertyDescriptor$5$4,createProperty$1$6=function(v,k,ie){var ae=toPropertyKey$1$i(k);ae in v?definePropertyModule$1$i.f(v,ae,createPropertyDescriptor$1$i(0,ie)):v[ae]=ie},toAbsoluteIndex$1$g=toAbsoluteIndex$4$4,lengthOfArrayLike$2$c=lengthOfArrayLike$8$1,createProperty$7=createProperty$1$6,$Array$1$4=Array,max$h=Math.max,arraySliceSimple$6=function(v,k,ie){for(var ae=lengthOfArrayLike$2$c(v),ce=toAbsoluteIndex$1$g(k,ae),fe=toAbsoluteIndex$1$g(ie===void 0?ae:ie,ae),le=$Array$1$4(max$h(fe-ce,0)),ve=0;ce>8&255]},packInt32$4=function(v){return[v&255,v>>8&255,v>>16&255,v>>24&255]},unpackInt32$4=function(v){return v[3]<<24|v[2]<<16|v[1]<<8|v[0]},packFloat32$4=function(v){return packIEEE754$4(v,23,4)},packFloat64$4=function(v){return packIEEE754$4(v,52,8)},addGetter$1$4=function(v,k){defineProperty3$f(v[PROTOTYPE$d],k,{get:function(){return getInternalState$1$c(this)[k]}})},get$j=function(v,k,ie,ae){var ce=toIndex$1$4(ie),fe=getInternalState$1$c(v);if(ce+k>fe.byteLength)throw RangeError$3$4(WRONG_INDEX$4);var le=getInternalState$1$c(fe.buffer).bytes,ve=ce+fe.byteOffset,pe=arraySlice$3$4(le,ve,ve+k);return ae?pe:reverse$4(pe)},set$j=function(v,k,ie,ae,ce,fe){var le=toIndex$1$4(ie),ve=getInternalState$1$c(v);if(le+k>ve.byteLength)throw RangeError$3$4(WRONG_INDEX$4);for(var pe=getInternalState$1$c(ve.buffer).bytes,ye=le+ve.byteOffset,me=ae(+ce),Ee=0;Eece)throw RangeError$3$4("Wrong offset");if(ae=ae===void 0?ce-fe:toLength$3$4(ae),fe+ae>ce)throw RangeError$3$4(WRONG_LENGTH$1$4);setInternalState$1$b(this,{buffer:k,byteLength:ae,byteOffset:fe}),DESCRIPTORS$1$i||(this.buffer=k,this.byteLength=ae,this.byteOffset=fe)},DataViewPrototype$1$4=$DataView$4[PROTOTYPE$d],DESCRIPTORS$1$i&&(addGetter$1$4($ArrayBuffer$4,"byteLength"),addGetter$1$4($DataView$4,"buffer"),addGetter$1$4($DataView$4,"byteLength"),addGetter$1$4($DataView$4,"byteOffset")),defineBuiltIns$5(DataViewPrototype$1$4,{getInt8:function(k){return get$j(this,1,k)[0]<<24>>24},getUint8:function(k){return get$j(this,1,k)[0]},getInt16:function(k){var ie=get$j(this,2,k,arguments.length>1?arguments[1]:void 0);return(ie[1]<<8|ie[0])<<16>>16},getUint16:function(k){var ie=get$j(this,2,k,arguments.length>1?arguments[1]:void 0);return ie[1]<<8|ie[0]},getInt32:function(k){return unpackInt32$4(get$j(this,4,k,arguments.length>1?arguments[1]:void 0))},getUint32:function(k){return unpackInt32$4(get$j(this,4,k,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(k){return unpackIEEE754$4(get$j(this,4,k,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(k){return unpackIEEE754$4(get$j(this,8,k,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(k,ie){set$j(this,1,k,packInt8$4,ie)},setUint8:function(k,ie){set$j(this,1,k,packInt8$4,ie)},setInt16:function(k,ie){set$j(this,2,k,packInt16$4,ie,arguments.length>2?arguments[2]:void 0)},setUint16:function(k,ie){set$j(this,2,k,packInt16$4,ie,arguments.length>2?arguments[2]:void 0)},setInt32:function(k,ie){set$j(this,4,k,packInt32$4,ie,arguments.length>2?arguments[2]:void 0)},setUint32:function(k,ie){set$j(this,4,k,packInt32$4,ie,arguments.length>2?arguments[2]:void 0)},setFloat32:function(k,ie){set$j(this,4,k,packFloat32$4,ie,arguments.length>2?arguments[2]:void 0)},setFloat64:function(k,ie){set$j(this,8,k,packFloat64$4,ie,arguments.length>2?arguments[2]:void 0)}});else{if(INCORRECT_ARRAY_BUFFER_NAME$4=PROPER_FUNCTION_NAME$h&&NativeArrayBuffer$4.name!==ARRAY_BUFFER$4,!fails$7$i(function(){NativeArrayBuffer$4(1)})||!fails$7$i(function(){new NativeArrayBuffer$4(-1)})||fails$7$i(function(){return new NativeArrayBuffer$4,new NativeArrayBuffer$4(1.5),new NativeArrayBuffer$4(NaN),INCORRECT_ARRAY_BUFFER_NAME$4&&!CONFIGURABLE_FUNCTION_NAME$k})){for($ArrayBuffer$4=function(k){return anInstance$1$c(this,ArrayBufferPrototype$1$4),new NativeArrayBuffer$4(toIndex$1$4(k))},$ArrayBuffer$4[PROTOTYPE$d]=ArrayBufferPrototype$1$4,keys2$7=getOwnPropertyNames$1$4(NativeArrayBuffer$4),j$6=0;keys2$7.length>j$6;)(key$5=keys2$7[j$6++])in $ArrayBuffer$4||createNonEnumerableProperty$2$g($ArrayBuffer$4,key$5,NativeArrayBuffer$4[key$5]);ArrayBufferPrototype$1$4.constructor=$ArrayBuffer$4}else INCORRECT_ARRAY_BUFFER_NAME$4&&CONFIGURABLE_FUNCTION_NAME$k&&createNonEnumerableProperty$2$g(NativeArrayBuffer$4,"name",ARRAY_BUFFER$4);setPrototypeOf$2$4&&getPrototypeOf$f(DataViewPrototype$1$4)!==ObjectPrototype$e&&setPrototypeOf$2$4(DataViewPrototype$1$4,ObjectPrototype$e),testView$4=new $DataView$4(new $ArrayBuffer$4(2)),$setInt8$4=uncurryThis$7$g(DataViewPrototype$1$4.setInt8),testView$4.setInt8(0,2147483648),testView$4.setInt8(1,2147483649),(testView$4.getInt8(0)||!testView$4.getInt8(1))&&defineBuiltIns$5(DataViewPrototype$1$4,{setInt8:function(k,ie){$setInt8$4(this,k,ie<<24>>24)},setUint8:function(k,ie){$setInt8$4(this,k,ie<<24>>24)}},{unsafe:!0})}var INCORRECT_ARRAY_BUFFER_NAME$4,keys2$7,j$6,key$5,testView$4,$setInt8$4;setToStringTag$g($ArrayBuffer$4,ARRAY_BUFFER$4);setToStringTag$g($DataView$4,DATA_VIEW$4);var arrayBuffer$4={ArrayBuffer:$ArrayBuffer$4,DataView:$DataView$4},$$1$c=_export$g,uncurryThis$6$i=functionUncurryThis$i,fails$6$i=fails$r$1,ArrayBufferModule$1$4=arrayBuffer$4,anObject$2$i=anObject$e$3,toAbsoluteIndex$k=toAbsoluteIndex$4$4,toLength$2$6=toLength$6$2,speciesConstructor$1$c=speciesConstructor$3$2,ArrayBuffer$2$4=ArrayBufferModule$1$4.ArrayBuffer,DataView$2$4=ArrayBufferModule$1$4.DataView,DataViewPrototype$5=DataView$2$4.prototype,un$ArrayBufferSlice$4=uncurryThis$6$i(ArrayBuffer$2$4.prototype.slice),getUint8$4=uncurryThis$6$i(DataViewPrototype$5.getUint8),setUint8$4=uncurryThis$6$i(DataViewPrototype$5.setUint8),INCORRECT_SLICE$4=fails$6$i(function(){return!new ArrayBuffer$2$4(2).slice(1,void 0).byteLength});$$1$c({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:INCORRECT_SLICE$4},{slice:function v(k,ie){if(un$ArrayBufferSlice$4&&ie===void 0)return un$ArrayBufferSlice$4(anObject$2$i(this),k);for(var ae=anObject$2$i(this).byteLength,ce=toAbsoluteIndex$k(k,ae),fe=toAbsoluteIndex$k(ie===void 0?ae:ie,ae),le=new(speciesConstructor$1$c(this,ArrayBuffer$2$4))(toLength$2$6(fe-ce)),ve=new DataView$2$4(this),pe=new DataView$2$4(le),ye=0;ceAr;Ar++)if((ve||Ar in Br)&&(Mr=Br[Ar],Lr=$r(Mr,Ar,cr),v))if(k)jr[Ar]=Lr;else if(Lr)switch(v){case 3:return!0;case 5:return Mr;case 6:return Ar;case 2:push$1$7(jr,Mr)}else switch(v){case 4:return!1;case 7:push$1$7(jr,Mr)}return fe?-1:ae||ce?ce:jr}},arrayIteration$4={forEach:createMethod$1$7(0),map:createMethod$1$7(1),filter:createMethod$1$7(2),some:createMethod$1$7(3),every:createMethod$1$7(4),find:createMethod$1$7(5),findIndex:createMethod$1$7(6),filterReject:createMethod$1$7(7)},isCallable$1$i=isCallable$n$1,isObject$1$i=isObject$d$1,setPrototypeOf$1$b=objectSetPrototypeOf$d,inheritIfRequired$1$4=function(v,k,ie){var ae,ce;return setPrototypeOf$1$b&&isCallable$1$i(ae=k.constructor)&&ae!==ie&&isObject$1$i(ce=ae.prototype)&&ce!==ie.prototype&&setPrototypeOf$1$b(v,ce),v},$$n=_export$g,global$4$i=global$t,call$4$i=functionCall$i,DESCRIPTORS$v=descriptors$i,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$4=typedArrayConstructorsRequireWrappers$4,ArrayBufferViewCore$4$4=arrayBufferViewCore$4,ArrayBufferModule$5=arrayBuffer$4,anInstance$e=anInstance$3$1,createPropertyDescriptor$n=createPropertyDescriptor$5$4,createNonEnumerableProperty$1$i=createNonEnumerableProperty$8$2,isIntegralNumber$5=isIntegralNumber$1$4,toLength$1$g=toLength$6$2,toIndex$6=toIndex$2$4,toOffset$1$4=toOffset$2$4,toPropertyKey$m=toPropertyKey$4$4,hasOwn2$i=hasOwnProperty_1$i,classof$2$e=classof$9$2,isObject$t=isObject$d$1,isSymbol$l=isSymbol$3$4,create2$b=objectCreate$c,isPrototypeOf$m=objectIsPrototypeOf$i,setPrototypeOf$h=objectSetPrototypeOf$d,getOwnPropertyNames2$4=objectGetOwnPropertyNames$g.f,typedArrayFrom$5=typedArrayFrom$2$1,forEach$4=arrayIteration$4.forEach,setSpecies$d=setSpecies$2$1,definePropertyModule$o=objectDefineProperty$i,getOwnPropertyDescriptorModule$h=objectGetOwnPropertyDescriptor$g,InternalStateModule$m=internalState$i,inheritIfRequired$5=inheritIfRequired$1$4,getInternalState$m=InternalStateModule$m.get,setInternalState$f=InternalStateModule$m.set,enforceInternalState$k=InternalStateModule$m.enforce,nativeDefineProperty$4=definePropertyModule$o.f,nativeGetOwnPropertyDescriptor$4=getOwnPropertyDescriptorModule$h.f,round$4=Math.round,RangeError$2$4=global$4$i.RangeError,ArrayBuffer$1$4=ArrayBufferModule$5.ArrayBuffer,ArrayBufferPrototype$5=ArrayBuffer$1$4.prototype,DataView$1$4=ArrayBufferModule$5.DataView,NATIVE_ARRAY_BUFFER_VIEWS$6=ArrayBufferViewCore$4$4.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG$5=ArrayBufferViewCore$4$4.TYPED_ARRAY_TAG,TypedArray$5=ArrayBufferViewCore$4$4.TypedArray,TypedArrayPrototype$5=ArrayBufferViewCore$4$4.TypedArrayPrototype,aTypedArrayConstructor$6=ArrayBufferViewCore$4$4.aTypedArrayConstructor,isTypedArray$5=ArrayBufferViewCore$4$4.isTypedArray,BYTES_PER_ELEMENT$4="BYTES_PER_ELEMENT",WRONG_LENGTH$5="Wrong length",fromList$4=function(v,k){aTypedArrayConstructor$6(v);for(var ie=0,ae=k.length,ce=new v(ae);ae>ie;)ce[ie]=k[ie++];return ce},addGetter$5=function(v,k){nativeDefineProperty$4(v,k,{get:function(){return getInternalState$m(this)[k]}})},isArrayBuffer$4=function(v){var k;return isPrototypeOf$m(ArrayBufferPrototype$5,v)||(k=classof$2$e(v))=="ArrayBuffer"||k=="SharedArrayBuffer"},isTypedArrayIndex$4=function(v,k){return isTypedArray$5(v)&&!isSymbol$l(k)&&k in v&&isIntegralNumber$5(+k)&&k>=0},wrappedGetOwnPropertyDescriptor$4=function v(k,ie){return ie=toPropertyKey$m(ie),isTypedArrayIndex$4(k,ie)?createPropertyDescriptor$n(2,k[ie]):nativeGetOwnPropertyDescriptor$4(k,ie)},wrappedDefineProperty$4=function v(k,ie,ae){return ie=toPropertyKey$m(ie),isTypedArrayIndex$4(k,ie)&&isObject$t(ae)&&hasOwn2$i(ae,"value")&&!hasOwn2$i(ae,"get")&&!hasOwn2$i(ae,"set")&&!ae.configurable&&(!hasOwn2$i(ae,"writable")||ae.writable)&&(!hasOwn2$i(ae,"enumerable")||ae.enumerable)?(k[ie]=ae.value,k):nativeDefineProperty$4(k,ie,ae)};DESCRIPTORS$v?(NATIVE_ARRAY_BUFFER_VIEWS$6||(getOwnPropertyDescriptorModule$h.f=wrappedGetOwnPropertyDescriptor$4,definePropertyModule$o.f=wrappedDefineProperty$4,addGetter$5(TypedArrayPrototype$5,"buffer"),addGetter$5(TypedArrayPrototype$5,"byteOffset"),addGetter$5(TypedArrayPrototype$5,"byteLength"),addGetter$5(TypedArrayPrototype$5,"length")),$$n({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS$6},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor$4,defineProperty:wrappedDefineProperty$4}),typedArrayConstructor$4.exports=function(v,k,ie){var ae=v.match(/\d+$/)[0]/8,ce=v+(ie?"Clamped":"")+"Array",fe="get"+v,le="set"+v,ve=global$4$i[ce],pe=ve,ye=pe&&pe.prototype,me={},Ee=function(Pr,Ar){var ur=getInternalState$m(Pr);return ur.view[fe](Ar*ae+ur.byteOffset,!0)},cr=function(Pr,Ar,ur){var jr=getInternalState$m(Pr);ie&&(ur=(ur=round$4(ur))<0?0:ur>255?255:ur&255),jr.view[le](Ar*ae+jr.byteOffset,ur,!0)},Br=function(Pr,Ar){nativeDefineProperty$4(Pr,Ar,{get:function(){return Ee(this,Ar)},set:function(ur){return cr(this,Ar,ur)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS$6?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$4&&(pe=k(function(Pr,Ar,ur,jr){return anInstance$e(Pr,ye),inheritIfRequired$5(function(){return isObject$t(Ar)?isArrayBuffer$4(Ar)?jr!==void 0?new ve(Ar,toOffset$1$4(ur,ae),jr):ur!==void 0?new ve(Ar,toOffset$1$4(ur,ae)):new ve(Ar):isTypedArray$5(Ar)?fromList$4(pe,Ar):call$4$i(typedArrayFrom$5,pe,Ar):new ve(toIndex$6(Ar))}(),Pr,pe)}),setPrototypeOf$h&&setPrototypeOf$h(pe,TypedArray$5),forEach$4(getOwnPropertyNames2$4(ve),function(Pr){Pr in pe||createNonEnumerableProperty$1$i(pe,Pr,ve[Pr])}),pe.prototype=ye):(pe=k(function(Pr,Ar,ur,jr){anInstance$e(Pr,ye);var Mr=0,Lr=0,Vr,Gr,Ur;if(!isObject$t(Ar))Ur=toIndex$6(Ar),Gr=Ur*ae,Vr=new ArrayBuffer$1$4(Gr);else if(isArrayBuffer$4(Ar)){Vr=Ar,Lr=toOffset$1$4(ur,ae);var Qr=Ar.byteLength;if(jr===void 0){if(Qr%ae||(Gr=Qr-Lr,Gr<0))throw RangeError$2$4(WRONG_LENGTH$5)}else if(Gr=toLength$1$g(jr)*ae,Gr+Lr>Qr)throw RangeError$2$4(WRONG_LENGTH$5);Ur=Gr/ae}else return isTypedArray$5(Ar)?fromList$4(pe,Ar):call$4$i(typedArrayFrom$5,pe,Ar);for(setInternalState$f(Pr,{buffer:Vr,byteOffset:Lr,byteLength:Gr,length:Ur,view:new DataView$1$4(Vr)});Mr1?arguments[1]:void 0,ie>2?arguments[2]:void 0)},CONVERSION_BUG$4);var global$3$i=global$t,call$2$i=functionCall$i,ArrayBufferViewCore$2$4=arrayBufferViewCore$4,lengthOfArrayLike$m=lengthOfArrayLike$8$1,toOffset$6=toOffset$2$4,toIndexedObject$m=toObject$7$1,fails$4$i=fails$r$1,RangeError$1$4=global$3$i.RangeError,Int8Array$2$4=global$3$i.Int8Array,Int8ArrayPrototype$5=Int8Array$2$4&&Int8Array$2$4.prototype,$set$4=Int8ArrayPrototype$5&&Int8ArrayPrototype$5.set,aTypedArray$2$4=ArrayBufferViewCore$2$4.aTypedArray,exportTypedArrayMethod$2$4=ArrayBufferViewCore$2$4.exportTypedArrayMethod,WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$4=!fails$4$i(function(){var v=new Uint8ClampedArray(2);return call$2$i($set$4,v,{length:1,0:3},1),v[1]!==3}),TO_OBJECT_BUG$4=WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$4&&ArrayBufferViewCore$2$4.NATIVE_ARRAY_BUFFER_VIEWS&&fails$4$i(function(){var v=new Int8Array$2$4(2);return v.set(1),v.set("2",1),v[0]!==0||v[1]!==2});exportTypedArrayMethod$2$4("set",function v(k){aTypedArray$2$4(this);var ie=toOffset$6(arguments.length>1?arguments[1]:void 0,1),ae=toIndexedObject$m(k);if(WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$4)return call$2$i($set$4,this,ae,ie);var ce=this.length,fe=lengthOfArrayLike$m(ae),le=0;if(fe+ie>ce)throw RangeError$1$4("Wrong length");for(;le0;)v[fe]=v[--fe];fe!==ae++&&(v[fe]=ce)}return v},merge$5=function(v,k,ie,ae){for(var ce=k.length,fe=ie.length,le=0,ve=0;le0&&1/ie<0?1:-1:k>ie}};exportTypedArrayMethod$1$4("sort",function v(k){return k!==void 0&&aCallable$p(k),STABLE_SORT$5?un$Sort$5(this,k):internalSort$5(aTypedArray$1$4(this),getSortCompare$5(k))},!STABLE_SORT$5||ACCEPT_INCORRECT_ARGUMENTS$4);var global$1$i=global$t,apply$1$c=functionApply$c,ArrayBufferViewCore$8=arrayBufferViewCore$4,fails$2$i=fails$r$1,arraySlice$1$c=arraySlice$5$1,Int8Array$1$4=global$1$i.Int8Array,aTypedArray$8=ArrayBufferViewCore$8.aTypedArray,exportTypedArrayMethod$8=ArrayBufferViewCore$8.exportTypedArrayMethod,$toLocaleString$4=[].toLocaleString,TO_LOCALE_STRING_BUG$4=!!Int8Array$1$4&&fails$2$i(function(){$toLocaleString$4.call(new Int8Array$1$4(1))}),FORCED$6=fails$2$i(function(){return[1,2].toLocaleString()!=new Int8Array$1$4([1,2]).toLocaleString()})||!fails$2$i(function(){Int8Array$1$4.prototype.toLocaleString.call([1,2])});exportTypedArrayMethod$8("toLocaleString",function v(){return apply$1$c($toLocaleString$4,TO_LOCALE_STRING_BUG$4?arraySlice$1$c(aTypedArray$8(this)):aTypedArray$8(this),arraySlice$1$c(arguments))},FORCED$6);var uncurryThis$2$i=functionUncurryThis$i,defineBuiltIn$o=defineBuiltIn$8$2,regexpExec$2$3=regexpExec$3$2,fails$1$i=fails$r$1,wellKnownSymbol$w=wellKnownSymbol$j$1,createNonEnumerableProperty$o=createNonEnumerableProperty$8$2,SPECIES$e=wellKnownSymbol$w("species"),RegExpPrototype$g=RegExp.prototype,fixRegexpWellKnownSymbolLogic$3=function(v,k,ie,ae){var ce=wellKnownSymbol$w(v),fe=!fails$1$i(function(){var ye={};return ye[ce]=function(){return 7},""[v](ye)!=7}),le=fe&&!fails$1$i(function(){var ye=!1,me=/a/;return v==="split"&&(me={},me.constructor={},me.constructor[SPECIES$e]=function(){return me},me.flags="",me[ce]=/./[ce]),me.exec=function(){return ye=!0,null},me[ce](""),!ye});if(!fe||!le||ie){var ve=uncurryThis$2$i(/./[ce]),pe=k(ce,""[v],function(ye,me,Ee,cr,Br){var $r=uncurryThis$2$i(ye),Pr=me.exec;return Pr===regexpExec$2$3||Pr===RegExpPrototype$g.exec?fe&&!Br?{done:!0,value:ve(me,Ee,cr)}:{done:!0,value:$r(Ee,me,cr)}:{done:!1}});defineBuiltIn$o(String.prototype,v,pe[0]),defineBuiltIn$o(RegExpPrototype$g,ce,pe[1])}ae&&createNonEnumerableProperty$o(RegExpPrototype$g[ce],"sham",!0)},uncurryThis$1$i=functionUncurryThis$i,toIntegerOrInfinity$l=toIntegerOrInfinity$6$2,toString$1$i=toString$4$4,requireObjectCoercible$1$i=requireObjectCoercible$5$2,charAt$1$3=uncurryThis$1$i("".charAt),charCodeAt$3=uncurryThis$1$i("".charCodeAt),stringSlice$1$5=uncurryThis$1$i("".slice),createMethod$h=function(v){return function(k,ie){var ae=toString$1$i(requireObjectCoercible$1$i(k)),ce=toIntegerOrInfinity$l(ie),fe=ae.length,le,ve;return ce<0||ce>=fe?v?"":void 0:(le=charCodeAt$3(ae,ce),le<55296||le>56319||ce+1===fe||(ve=charCodeAt$3(ae,ce+1))<56320||ve>57343?v?charAt$1$3(ae,ce):le:v?stringSlice$1$5(ae,ce,ce+2):(le-55296<<10)+(ve-56320)+65536)}},stringMultibyte$3={codeAt:createMethod$h(!1),charAt:createMethod$h(!0)},charAt$6=stringMultibyte$3.charAt,advanceStringIndex$1$3=function(v,k,ie){return k+(ie?charAt$6(v,k).length:1)},call$1$i=functionCall$i,anObject$1$i=anObject$e$3,isCallable$A=isCallable$n$1,classof$q=classofRaw$1$g,regexpExec$1$3=regexpExec$3$2,$TypeError$t=TypeError,regexpExecAbstract$3=function(v,k){var ie=v.exec;if(isCallable$A(ie)){var ae=call$1$i(ie,v,k);return ae!==null&&anObject$1$i(ae),ae}if(classof$q(v)==="RegExp")return call$1$i(regexpExec$1$3,v,k);throw $TypeError$t("RegExp#exec called on incompatible receiver")},apply$d=functionApply$c,call$w=functionCall$i,uncurryThis$C=functionUncurryThis$i,fixRegExpWellKnownSymbolLogic$3=fixRegexpWellKnownSymbolLogic$3,isRegExp$4=isRegexp$3,anObject$s=anObject$e$3,requireObjectCoercible$k=requireObjectCoercible$5$2,speciesConstructor$d=speciesConstructor$3$2,advanceStringIndex$4=advanceStringIndex$1$3,toLength$l=toLength$6$2,toString2$f=toString$4$4,getMethod$l=getMethod$4$3,arraySlice$f=arraySliceSimple$6,callRegExpExec$2=regexpExecAbstract$3,regexpExec$6=regexpExec$3$2,stickyHelpers$4=regexpStickyHelpers$3,fails$E=fails$r$1,UNSUPPORTED_Y$5=stickyHelpers$4.UNSUPPORTED_Y,MAX_UINT32$2=4294967295,min$h=Math.min,$push$2=[].push,exec$d=uncurryThis$C(/./.exec),push$h=uncurryThis$C($push$2),stringSlice$i=uncurryThis$C("".slice),SPLIT_WORKS_WITH_OVERWRITTEN_EXEC$2=!fails$E(function(){var v=/(?:)/,k=v.exec;v.exec=function(){return k.apply(this,arguments)};var ie="ab".split(v);return ie.length!==2||ie[0]!=="a"||ie[1]!=="b"});fixRegExpWellKnownSymbolLogic$3("split",function(v,k,ie){var ae;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?ae=function(ce,fe){var le=toString2$f(requireObjectCoercible$k(this)),ve=fe===void 0?MAX_UINT32$2:fe>>>0;if(ve===0)return[];if(ce===void 0)return[le];if(!isRegExp$4(ce))return call$w(k,le,ce,ve);for(var pe=[],ye=(ce.ignoreCase?"i":"")+(ce.multiline?"m":"")+(ce.unicode?"u":"")+(ce.sticky?"y":""),me=0,Ee=new RegExp(ce.source,ye+"g"),cr,Br,$r;(cr=call$w(regexpExec$6,Ee,le))&&(Br=Ee.lastIndex,!(Br>me&&(push$h(pe,stringSlice$i(le,me,cr.index)),cr.length>1&&cr.index=ve)));)Ee.lastIndex===cr.index&&Ee.lastIndex++;return me===le.length?($r||!exec$d(Ee,""))&&push$h(pe,""):push$h(pe,stringSlice$i(le,me)),pe.length>ve?arraySlice$f(pe,0,ve):pe}:"0".split(void 0,0).length?ae=function(ce,fe){return ce===void 0&&fe===0?[]:call$w(k,this,ce,fe)}:ae=k,[function(fe,le){var ve=requireObjectCoercible$k(this),pe=fe==null?void 0:getMethod$l(fe,v);return pe?call$w(pe,fe,ve,le):call$w(ae,toString2$f(ve),fe,le)},function(ce,fe){var le=anObject$s(this),ve=toString2$f(ce),pe=ie(ae,le,ve,fe,ae!==k);if(pe.done)return pe.value;var ye=speciesConstructor$d(le,RegExp),me=le.unicode,Ee=(le.ignoreCase?"i":"")+(le.multiline?"m":"")+(le.unicode?"u":"")+(UNSUPPORTED_Y$5?"g":"y"),cr=new ye(UNSUPPORTED_Y$5?"^(?:"+le.source+")":le,Ee),Br=fe===void 0?MAX_UINT32$2:fe>>>0;if(Br===0)return[];if(ve.length===0)return callRegExpExec$2(cr,ve)===null?[ve]:[];for(var $r=0,Pr=0,Ar=[];Pr{switch(v){case"en":return en$1;case"es":return es$1;case"zh":return zh;case"bg":return bg;case"ko":return ko;case"vi":return vi;case"hi":return hi;case"ar":return ar$1;case"hr":return hr;case"mk":return mk;case"sl":return sl;case"sr":return sr$1;default:return en$1}},chosenLang,allowOnlyLanguage=v=>{chosenLang=v},shortenLanguageCode=v=>v.indexOf("-")!==-1?v.split("-")[0]:v.split("_")[0],findObjectPropByStringPath=(v,k)=>{if(!v)return"";const ie=k.indexOf(".");if(ie>-1){const ae=k.substring(0,ie),ce=k.substring(ie+1);return findObjectPropByStringPath(v[ae],ce)}return v[k]},translate=v=>{let k=window.navigator.languages?window.navigator.languages[0]:null;k=k||window.navigator.language;const ie=shortenLanguageCode(chosenLang||k),ae=getLanguage(ie),ce=findObjectPropByStringPath(ae,v);return ce&&typeof ce=="string"?ce:v},require_can_promise=__commonJS$1({"node_modules/qrcode/lib/can-promise.js"(v,k){k.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}}}),require_utils$3=__commonJS$1({"node_modules/qrcode/lib/core/utils.js"(v){var k,ie=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];v.getSymbolSize=function(ce){if(!ce)throw new Error('"version" cannot be null or undefined');if(ce<1||ce>40)throw new Error('"version" should be in range from 1 to 40');return ce*4+17},v.getSymbolTotalCodewords=function(ce){return ie[ce]},v.getBCHDigit=function(ae){let ce=0;for(;ae!==0;)ce++,ae>>>=1;return ce},v.setToSJISFunction=function(ce){if(typeof ce!="function")throw new Error('"toSJISFunc" is not a valid function.');k=ce},v.isKanjiModeEnabled=function(){return typeof k<"u"},v.toSJIS=function(ce){return k(ce)}}}),require_error_correction_level=__commonJS$1({"node_modules/qrcode/lib/core/error-correction-level.js"(v){v.L={bit:1},v.M={bit:0},v.Q={bit:3},v.H={bit:2};function k(ie){if(typeof ie!="string")throw new Error("Param is not a string");switch(ie.toLowerCase()){case"l":case"low":return v.L;case"m":case"medium":return v.M;case"q":case"quartile":return v.Q;case"h":case"high":return v.H;default:throw new Error("Unknown EC Level: "+ie)}}v.isValid=function(ae){return ae&&typeof ae.bit<"u"&&ae.bit>=0&&ae.bit<4},v.from=function(ae,ce){if(v.isValid(ae))return ae;try{return k(ae)}catch{return ce}}}}),require_bit_buffer=__commonJS$1({"node_modules/qrcode/lib/core/bit-buffer.js"(v,k){function ie(){this.buffer=[],this.length=0}ie.prototype={get:function(ae){const ce=Math.floor(ae/8);return(this.buffer[ce]>>>7-ae%8&1)===1},put:function(ae,ce){for(let fe=0;fe>>ce-fe-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(ae){const ce=Math.floor(this.length/8);this.buffer.length<=ce&&this.buffer.push(0),ae&&(this.buffer[ce]|=128>>>this.length%8),this.length++}},k.exports=ie}}),require_bit_matrix=__commonJS$1({"node_modules/qrcode/lib/core/bit-matrix.js"(v,k){function ie(ae){if(!ae||ae<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=ae,this.data=new Uint8Array(ae*ae),this.reservedBit=new Uint8Array(ae*ae)}ie.prototype.set=function(ae,ce,fe,le){const ve=ae*this.size+ce;this.data[ve]=fe,le&&(this.reservedBit[ve]=!0)},ie.prototype.get=function(ae,ce){return this.data[ae*this.size+ce]},ie.prototype.xor=function(ae,ce,fe){this.data[ae*this.size+ce]^=fe},ie.prototype.isReserved=function(ae,ce){return this.reservedBit[ae*this.size+ce]},k.exports=ie}}),require_alignment_pattern=__commonJS$1({"node_modules/qrcode/lib/core/alignment-pattern.js"(v){var k=require_utils$3().getSymbolSize;v.getRowColCoords=function(ae){if(ae===1)return[];const ce=Math.floor(ae/7)+2,fe=k(ae),le=fe===145?26:Math.ceil((fe-13)/(2*ce-2))*2,ve=[fe-7];for(let pe=1;pe=0&&ce<=7},v.from=function(ce){return v.isValid(ce)?parseInt(ce,10):void 0},v.getPenaltyN1=function(ce){const fe=ce.size;let le=0,ve=0,pe=0,ye=null,me=null;for(let Ee=0;Ee=5&&(le+=k.N1+(ve-5)),ye=Br,ve=1),Br=ce.get(cr,Ee),Br===me?pe++:(pe>=5&&(le+=k.N1+(pe-5)),me=Br,pe=1)}ve>=5&&(le+=k.N1+(ve-5)),pe>=5&&(le+=k.N1+(pe-5))}return le},v.getPenaltyN2=function(ce){const fe=ce.size;let le=0;for(let ve=0;ve=10&&(ve===1488||ve===93)&&le++,pe=pe<<1&2047|ce.get(me,ye),me>=10&&(pe===1488||pe===93)&&le++}return le*k.N3},v.getPenaltyN4=function(ce){let fe=0;const le=ce.data.length;for(let pe=0;pe=0;){const le=fe[0];for(let pe=0;pe0){const ye=new Uint8Array(this.degree);return ye.set(ve,pe),ye}return ve},k.exports=ae}}),require_version_check=__commonJS$1({"node_modules/qrcode/lib/core/version-check.js"(v){v.isValid=function(ie){return!isNaN(ie)&&ie>=1&&ie<=40}}}),require_regex=__commonJS$1({"node_modules/qrcode/lib/core/regex.js"(v){var k="[0-9]+",ie="[A-Z $%*+\\-./:]+",ae="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";ae=ae.replace(/u/g,"\\u");var ce="(?:(?![A-Z0-9 $%*+\\-./:]|"+ae+`)(?:.|[\r +]))+`;v.KANJI=new RegExp(ae,"g"),v.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),v.BYTE=new RegExp(ce,"g"),v.NUMERIC=new RegExp(k,"g"),v.ALPHANUMERIC=new RegExp(ie,"g");var fe=new RegExp("^"+ae+"$"),le=new RegExp("^"+k+"$"),ve=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");v.testKanji=function(ye){return fe.test(ye)},v.testNumeric=function(ye){return le.test(ye)},v.testAlphanumeric=function(ye){return ve.test(ye)}}}),require_mode=__commonJS$1({"node_modules/qrcode/lib/core/mode.js"(v){var k=require_version_check(),ie=require_regex();v.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},v.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},v.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},v.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},v.MIXED={bit:-1},v.getCharCountIndicator=function(fe,le){if(!fe.ccBits)throw new Error("Invalid mode: "+fe);if(!k.isValid(le))throw new Error("Invalid version: "+le);return le>=1&&le<10?fe.ccBits[0]:le<27?fe.ccBits[1]:fe.ccBits[2]},v.getBestModeForData=function(fe){return ie.testNumeric(fe)?v.NUMERIC:ie.testAlphanumeric(fe)?v.ALPHANUMERIC:ie.testKanji(fe)?v.KANJI:v.BYTE},v.toString=function(fe){if(fe&&fe.id)return fe.id;throw new Error("Invalid mode")},v.isValid=function(fe){return fe&&fe.bit&&fe.ccBits};function ae(ce){if(typeof ce!="string")throw new Error("Param is not a string");switch(ce.toLowerCase()){case"numeric":return v.NUMERIC;case"alphanumeric":return v.ALPHANUMERIC;case"kanji":return v.KANJI;case"byte":return v.BYTE;default:throw new Error("Unknown mode: "+ce)}}v.from=function(fe,le){if(v.isValid(fe))return fe;try{return ae(fe)}catch{return le}}}}),require_version=__commonJS$1({"node_modules/qrcode/lib/core/version.js"(v){var k=require_utils$3(),ie=require_error_correction_code(),ae=require_error_correction_level(),ce=require_mode(),fe=require_version_check(),le=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,ve=k.getBCHDigit(le);function pe(cr,Br,$r){for(let Pr=1;Pr<=40;Pr++)if(Br<=v.getCapacity(Pr,$r,cr))return Pr}function ye(cr,Br){return ce.getCharCountIndicator(cr,Br)+4}function me(cr,Br){let $r=0;return cr.forEach(function(Pr){$r+=ye(Pr.mode,Br)+Pr.getBitsLength()}),$r}function Ee(cr,Br){for(let $r=1;$r<=40;$r++)if(me(cr,$r)<=v.getCapacity($r,Br,ce.MIXED))return $r}v.from=function(Br,$r){return fe.isValid(Br)?parseInt(Br,10):$r},v.getCapacity=function(Br,$r,Pr){if(!fe.isValid(Br))throw new Error("Invalid QR Code version");typeof Pr>"u"&&(Pr=ce.BYTE);const Ar=k.getSymbolTotalCodewords(Br),ur=ie.getTotalCodewordsCount(Br,$r),jr=(Ar-ur)*8;if(Pr===ce.MIXED)return jr;const Mr=jr-ye(Pr,Br);switch(Pr){case ce.NUMERIC:return Math.floor(Mr/10*3);case ce.ALPHANUMERIC:return Math.floor(Mr/11*2);case ce.KANJI:return Math.floor(Mr/13);case ce.BYTE:default:return Math.floor(Mr/8)}},v.getBestVersionForData=function(Br,$r){let Pr;const Ar=ae.from($r,ae.M);if(Array.isArray(Br)){if(Br.length>1)return Ee(Br,Ar);if(Br.length===0)return 1;Pr=Br[0]}else Pr=Br;return pe(Pr.mode,Pr.getLength(),Ar)},v.getEncodedBits=function(Br){if(!fe.isValid(Br)||Br<7)throw new Error("Invalid QR Code version");let $r=Br<<12;for(;k.getBCHDigit($r)-ve>=0;)$r^=le<=0;)ye^=ie<0&&(ve=this.data.substr(le),pe=parseInt(ve,10),fe.put(pe,ye*3+1))},k.exports=ae}}),require_alphanumeric_data=__commonJS$1({"node_modules/qrcode/lib/core/alphanumeric-data.js"(v,k){var ie=require_mode(),ae=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ce(fe){this.mode=ie.ALPHANUMERIC,this.data=fe}ce.getBitsLength=function(le){return 11*Math.floor(le/2)+6*(le%2)},ce.prototype.getLength=function(){return this.data.length},ce.prototype.getBitsLength=function(){return ce.getBitsLength(this.data.length)},ce.prototype.write=function(le){let ve;for(ve=0;ve+2<=this.data.length;ve+=2){let pe=ae.indexOf(this.data[ve])*45;pe+=ae.indexOf(this.data[ve+1]),le.put(pe,11)}this.data.length%2&&le.put(ae.indexOf(this.data[ve]),6)},k.exports=ce}}),require_encode_utf8=__commonJS$1({"node_modules/encode-utf8/index.js"(v,k){k.exports=function(ae){for(var ce=[],fe=ae.length,le=0;le=55296&&ve<=56319&&fe>le+1){var pe=ae.charCodeAt(le+1);pe>=56320&&pe<=57343&&(ve=(ve-55296)*1024+pe-56320+65536,le+=1)}if(ve<128){ce.push(ve);continue}if(ve<2048){ce.push(ve>>6|192),ce.push(ve&63|128);continue}if(ve<55296||ve>=57344&&ve<65536){ce.push(ve>>12|224),ce.push(ve>>6&63|128),ce.push(ve&63|128);continue}if(ve>=65536&&ve<=1114111){ce.push(ve>>18|240),ce.push(ve>>12&63|128),ce.push(ve>>6&63|128),ce.push(ve&63|128);continue}ce.push(239,191,189)}return new Uint8Array(ce).buffer}}}),require_byte_data=__commonJS$1({"node_modules/qrcode/lib/core/byte-data.js"(v,k){var ie=require_encode_utf8(),ae=require_mode();function ce(fe){this.mode=ae.BYTE,typeof fe=="string"&&(fe=ie(fe)),this.data=new Uint8Array(fe)}ce.getBitsLength=function(le){return le*8},ce.prototype.getLength=function(){return this.data.length},ce.prototype.getBitsLength=function(){return ce.getBitsLength(this.data.length)},ce.prototype.write=function(fe){for(let le=0,ve=this.data.length;le=33088&&ve<=40956)ve-=33088;else if(ve>=57408&&ve<=60351)ve-=49472;else throw new Error("Invalid SJIS character: "+this.data[le]+` +Make sure your charset is UTF-8`);ve=(ve>>>8&255)*192+(ve&255),fe.put(ve,13)}},k.exports=ce}}),require_dijkstra=__commonJS$1({"node_modules/dijkstrajs/dijkstra.js"(v,k){var ie={single_source_shortest_paths:function(ae,ce,fe){var le={},ve={};ve[ce]=0;var pe=ie.PriorityQueue.make();pe.push(ce,0);for(var ye,me,Ee,cr,Br,$r,Pr,Ar,ur;!pe.empty();){ye=pe.pop(),me=ye.value,cr=ye.cost,Br=ae[me]||{};for(Ee in Br)Br.hasOwnProperty(Ee)&&($r=Br[Ee],Pr=cr+$r,Ar=ve[Ee],ur=typeof ve[Ee]>"u",(ur||Ar>Pr)&&(ve[Ee]=Pr,pe.push(Ee,Pr),le[Ee]=me))}if(typeof fe<"u"&&typeof ve[fe]>"u"){var jr=["Could not find a path from ",ce," to ",fe,"."].join("");throw new Error(jr)}return le},extract_shortest_path_from_predecessor_list:function(ae,ce){for(var fe=[],le=ce;le;)fe.push(le),ae[le],le=ae[le];return fe.reverse(),fe},find_path:function(ae,ce,fe){var le=ie.single_source_shortest_paths(ae,ce,fe);return ie.extract_shortest_path_from_predecessor_list(le,fe)},PriorityQueue:{make:function(ae){var ce=ie.PriorityQueue,fe={},le;ae=ae||{};for(le in ce)ce.hasOwnProperty(le)&&(fe[le]=ce[le]);return fe.queue=[],fe.sorter=ae.sorter||ce.default_sorter,fe},default_sorter:function(ae,ce){return ae.cost-ce.cost},push:function(ae,ce){var fe={value:ae,cost:ce};this.queue.push(fe),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof k<"u"&&(k.exports=ie)}}),require_segments=__commonJS$1({"node_modules/qrcode/lib/core/segments.js"(v){var k=require_mode(),ie=require_numeric_data(),ae=require_alphanumeric_data(),ce=require_byte_data(),fe=require_kanji_data(),le=require_regex(),ve=require_utils$3(),pe=require_dijkstra();function ye(ur){return unescape(encodeURIComponent(ur)).length}function me(ur,jr,Mr){const Lr=[];let Vr;for(;(Vr=ur.exec(Mr))!==null;)Lr.push({data:Vr[0],index:Vr.index,mode:jr,length:Vr[0].length});return Lr}function Ee(ur){const jr=me(le.NUMERIC,k.NUMERIC,ur),Mr=me(le.ALPHANUMERIC,k.ALPHANUMERIC,ur);let Lr,Vr;return ve.isKanjiModeEnabled()?(Lr=me(le.BYTE,k.BYTE,ur),Vr=me(le.KANJI,k.KANJI,ur)):(Lr=me(le.BYTE_KANJI,k.BYTE,ur),Vr=[]),jr.concat(Mr,Lr,Vr).sort(function(Ur,Qr){return Ur.index-Qr.index}).map(function(Ur){return{data:Ur.data,mode:Ur.mode,length:Ur.length}})}function cr(ur,jr){switch(jr){case k.NUMERIC:return ie.getBitsLength(ur);case k.ALPHANUMERIC:return ae.getBitsLength(ur);case k.KANJI:return fe.getBitsLength(ur);case k.BYTE:return ce.getBitsLength(ur)}}function Br(ur){return ur.reduce(function(jr,Mr){const Lr=jr.length-1>=0?jr[jr.length-1]:null;return Lr&&Lr.mode===Mr.mode?(jr[jr.length-1].data+=Mr.data,jr):(jr.push(Mr),jr)},[])}function $r(ur){const jr=[];for(let Mr=0;Mr=0&&Kr<=6&&(be===0||be===6)||be>=0&&be<=6&&(Kr===0||Kr===6)||Kr>=2&&Kr<=4&&be>=2&&be<=4?Ur.set(Qt+Kr,Xt+be,!0,!0):Ur.set(Qt+Kr,Xt+be,!1,!0))}}function Pr(Ur){const Qr=Ur.size;for(let hn=8;hn>Kr&1)===1,Ur.set(fn,Qt,Xt,!0),Ur.set(Qt,fn,Xt,!0)}function jr(Ur,Qr,hn){const Yt=Ur.size,fn=Ee.getEncodedBits(Qr,hn);let Qt,Xt;for(Qt=0;Qt<15;Qt++)Xt=(fn>>Qt&1)===1,Qt<6?Ur.set(Qt,8,Xt,!0):Qt<8?Ur.set(Qt+1,8,Xt,!0):Ur.set(Yt-15+Qt,8,Xt,!0),Qt<8?Ur.set(8,Yt-Qt-1,Xt,!0):Qt<9?Ur.set(8,15-Qt-1+1,Xt,!0):Ur.set(8,15-Qt-1,Xt,!0);Ur.set(Yt-8,8,1,!0)}function Mr(Ur,Qr){const hn=Ur.size;let Yt=-1,fn=hn-1,Qt=7,Xt=0;for(let Kr=hn-1;Kr>0;Kr-=2)for(Kr===6&&Kr--;;){for(let be=0;be<2;be++)if(!Ur.isReserved(fn,Kr-be)){let kr=!1;Xt>>Qt&1)===1),Ur.set(fn,Kr-be,kr),Qt--,Qt===-1&&(Xt++,Qt=7)}if(fn+=Yt,fn<0||hn<=fn){fn-=Yt,Yt=-Yt;break}}}function Lr(Ur,Qr,hn){const Yt=new ae;hn.forEach(function(be){Yt.put(be.mode.bit,4),Yt.put(be.getLength(),cr.getCharCountIndicator(be.mode,Ur)),be.write(Yt)});const fn=k.getSymbolTotalCodewords(Ur),Qt=pe.getTotalCodewordsCount(Ur,Qr),Xt=(fn-Qt)*8;for(Yt.getLengthInBits()+4<=Xt&&Yt.put(0,4);Yt.getLengthInBits()%8!==0;)Yt.putBit(0);const Kr=(Xt-Yt.getLengthInBits())/8;for(let be=0;be=7&&ur(be,Qr),Mr(be,Qt),isNaN(Yt)&&(Yt=ve.getBestMask(be,jr.bind(null,be,vn))),ve.applyMask(Yt,be),jr(be,vn,Yt),{modules:be,version:Qr,errorCorrectionLevel:vn,maskPattern:Yt,segments:fn}}v.create=function(Qr,vn){if(typeof Qr>"u"||Qr==="")throw new Error("No input text");let Yt=ie.M,fn,Xt;return typeof vn<"u"&&(Yt=ie.from(vn.errorCorrectionLevel,ie.M),fn=me.from(vn.version),Xt=ve.from(vn.maskPattern),vn.toSJISFunc&&k.setToSJISFunction(vn.toSJISFunc)),Gr(Qr,fn,Yt,Xt)}}}),require_utils2$3=__commonJS$1({"node_modules/qrcode/lib/renderer/utils.js"(v){function k(ie){if(typeof ie=="number"&&(ie=ie.toString()),typeof ie!="string")throw new Error("Color should be defined as hex string");let ae=ie.slice().replace("#","").split("");if(ae.length<3||ae.length===5||ae.length>8)throw new Error("Invalid hex color: "+ie);(ae.length===3||ae.length===4)&&(ae=Array.prototype.concat.apply([],ae.map(function(fe){return[fe,fe]}))),ae.length===6&&ae.push("F","F");const ce=parseInt(ae.join(""),16);return{r:ce>>24&255,g:ce>>16&255,b:ce>>8&255,a:ce&255,hex:"#"+ae.slice(0,6).join("")}}v.getOptions=function(ae){ae||(ae={}),ae.color||(ae.color={});const ce=typeof ae.margin>"u"||ae.margin===null||ae.margin<0?4:ae.margin,fe=ae.width&&ae.width>=21?ae.width:void 0,le=ae.scale||4;return{width:fe,scale:fe?4:le,margin:ce,color:{dark:k(ae.color.dark||"#000000ff"),light:k(ae.color.light||"#ffffffff")},type:ae.type,rendererOpts:ae.rendererOpts||{}}},v.getScale=function(ae,ce){return ce.width&&ce.width>=ae+ce.margin*2?ce.width/(ae+ce.margin*2):ce.scale},v.getImageWidth=function(ae,ce){const fe=v.getScale(ae,ce);return Math.floor((ae+ce.margin*2)*fe)},v.qrToImageData=function(ae,ce,fe){const le=ce.modules.size,ve=ce.modules.data,pe=v.getScale(le,fe),ye=Math.floor((le+fe.margin*2)*pe),me=fe.margin*pe,Ee=[fe.color.light,fe.color.dark];for(let cr=0;cr=me&&Br>=me&&cr"u"&&(!le||!le.getContext)&&(pe=le,le=void 0),le||(ye=ae()),pe=k.getOptions(pe);const me=k.getImageWidth(fe.modules.size,pe),Ee=ye.getContext("2d"),cr=Ee.createImageData(me,me);return k.qrToImageData(cr.data,fe,pe),ie(Ee,ye,me),Ee.putImageData(cr,0,0),ye},v.renderToDataURL=function(fe,le,ve){let pe=ve;typeof pe>"u"&&(!le||!le.getContext)&&(pe=le,le=void 0),pe||(pe={});const ye=v.render(fe,le,pe),me=pe.type||"image/png",Ee=pe.rendererOpts||{};return ye.toDataURL(me,Ee.quality)}}}),require_svg_tag=__commonJS$1({"node_modules/qrcode/lib/renderer/svg-tag.js"(v){var k=require_utils2$3();function ie(fe,le){const ve=fe.a/255,pe=le+'="'+fe.hex+'"';return ve<1?pe+" "+le+'-opacity="'+ve.toFixed(2).slice(1)+'"':pe}function ae(fe,le,ve){let pe=fe+le;return typeof ve<"u"&&(pe+=" "+ve),pe}function ce(fe,le,ve){let pe="",ye=0,me=!1,Ee=0;for(let cr=0;cr0&&Br>0&&fe[cr-1]||(pe+=me?ae("M",Br+ve,.5+$r+ve):ae("m",ye,0),ye=0,me=!1),Br+1':"",$r="',Pr='viewBox="0 0 '+cr+" "+cr+'"',Or=ye.width?'width="'+ye.width+'" height="'+ye.width+'" ':"",ur=''+Br+$r+` -`;return typeof pe=="function"&&pe(null,ur),ur}}}),require_browser$2=__commonJS$1({"node_modules/qrcode/lib/browser.js"(v){var k=require_can_promise(),ie=require_qrcode(),ae=require_canvas(),ce=require_svg_tag();function fe(le,ve,pe,ye,me){const Ee=[].slice.call(arguments,1),cr=Ee.length,Br=typeof Ee[cr-1]=="function";if(!Br&&!k())throw new Error("Callback required as last argument");if(Br){if(cr<2)throw new Error("Too few arguments provided");cr===2?(me=pe,pe=ve,ve=ye=void 0):cr===3&&(ve.getContext&&typeof me>"u"?(me=ye,ye=void 0):(me=ye,ye=pe,pe=ve,ve=void 0))}else{if(cr<1)throw new Error("Too few arguments provided");return cr===1?(pe=ve,ve=ye=void 0):cr===2&&!ve.getContext&&(ye=pe,pe=ve,ve=void 0),new Promise(function($r,Pr){try{const Or=ie.create(pe,ye);$r(le(Or,ve,ye))}catch(Or){Pr(Or)}})}try{const $r=ie.create(pe,ye);me(null,le($r,ve,ye))}catch($r){me($r)}}v.create=ie.create,v.toCanvas=fe.bind(null,ae.render),v.toDataURL=fe.bind(null,ae.renderToDataURL),v.toString=fe.bind(null,function(le,ve,pe){return ce.render(le,pe)})}}),require_react_production_min=__commonJS$1({"node_modules/react/cjs/react.production.min.js"(v){var k=Symbol.for("react.element"),ie=Symbol.for("react.portal"),ae=Symbol.for("react.fragment"),ce=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),le=Symbol.for("react.provider"),ve=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),ye=Symbol.for("react.suspense"),me=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),cr=Symbol.iterator;function Br(zr){return zr===null||typeof zr!="object"?null:(zr=cr&&zr[cr]||zr["@@iterator"],typeof zr=="function"?zr:null)}var $r={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pr=Object.assign,Or={};function ur(zr,Jr,Nr){this.props=zr,this.context=Jr,this.refs=Or,this.updater=Nr||$r}ur.prototype.isReactComponent={},ur.prototype.setState=function(zr,Jr){if(typeof zr!="object"&&typeof zr!="function"&&zr!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,zr,Jr,"setState")},ur.prototype.forceUpdate=function(zr){this.updater.enqueueForceUpdate(this,zr,"forceUpdate")};function jr(){}jr.prototype=ur.prototype;function Mr(zr,Jr,Nr){this.props=zr,this.context=Jr,this.refs=Or,this.updater=Nr||$r}var Lr=Mr.prototype=new jr;Lr.constructor=Mr,Pr(Lr,ur.prototype),Lr.isPureReactComponent=!0;var Vr=Array.isArray,Gr=Object.prototype.hasOwnProperty,Ur={current:null},Qr={key:!0,ref:!0,__self:!0,__source:!0};function vn(zr,Jr,Nr){var Hr,On={},Gn=null,mn=null;if(Jr!=null)for(Hr in Jr.ref!==void 0&&(mn=Jr.ref),Jr.key!==void 0&&(Gn=""+Jr.key),Jr)Gr.call(Jr,Hr)&&!Qr.hasOwnProperty(Hr)&&(On[Hr]=Jr[Hr]);var Nn=arguments.length-2;if(Nn===1)On.children=Nr;else if(1>>1,Jr=Wr[zr];if(0>>1;zrce(On,Xr))Gnce(mn,On)?(Wr[zr]=mn,Wr[Gn]=Xr,zr=Gn):(Wr[zr]=On,Wr[Hr]=Xr,zr=Hr);else if(Gnce(mn,Xr))Wr[zr]=mn,Wr[Gn]=Xr,zr=Gn;else break e}}return Jt}function ce(Wr,Jt){var Xr=Wr.sortIndex-Jt.sortIndex;return Xr!==0?Xr:Wr.id-Jt.id}typeof performance=="object"&&typeof performance.now=="function"?(fe=performance,v.unstable_now=function(){return fe.now()}):(le=Date,ve=le.now(),v.unstable_now=function(){return le.now()-ve});var fe,le,ve,pe=[],ye=[],me=1,Ee=null,cr=3,Br=!1,$r=!1,Pr=!1,Or=typeof setTimeout=="function"?setTimeout:null,ur=typeof clearTimeout=="function"?clearTimeout:null,jr=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Mr(Wr){for(var Jt=ie(ye);Jt!==null;){if(Jt.callback===null)ae(ye);else if(Jt.startTime<=Wr)ae(ye),Jt.sortIndex=Jt.expirationTime,k(pe,Jt);else break;Jt=ie(ye)}}function Lr(Wr){if(Pr=!1,Mr(Wr),!$r)if(ie(pe)!==null)$r=!0,kr(Vr);else{var Jt=ie(ye);Jt!==null&&xr(Lr,Jt.startTime-Wr)}}function Vr(Wr,Jt){$r=!1,Pr&&(Pr=!1,ur(Qr),Qr=-1),Br=!0;var Xr=cr;try{for(Mr(Jt),Ee=ie(pe);Ee!==null&&(!(Ee.expirationTime>Jt)||Wr&&!fn());){var zr=Ee.callback;if(typeof zr=="function"){Ee.callback=null,cr=Ee.priorityLevel;var Jr=zr(Ee.expirationTime<=Jt);Jt=v.unstable_now(),typeof Jr=="function"?Ee.callback=Jr:Ee===ie(pe)&&ae(pe),Mr(Jt)}else ae(pe);Ee=ie(pe)}if(Ee!==null)var Nr=!0;else{var Hr=ie(ye);Hr!==null&&xr(Lr,Hr.startTime-Jt),Nr=!1}return Nr}finally{Ee=null,cr=Xr,Br=!1}}var Gr=!1,Ur=null,Qr=-1,vn=5,Yt=-1;function fn(){return!(v.unstable_now()-YtWr||125zr?(Wr.sortIndex=Xr,k(ye,Wr),ie(pe)===null&&Wr===ie(ye)&&(Pr?(ur(Qr),Qr=-1):Pr=!0,xr(Lr,Xr-zr))):(Wr.sortIndex=Jr,k(pe,Wr),$r||Br||($r=!0,kr(Vr))),Wr},v.unstable_shouldYield=fn,v.unstable_wrapCallback=function(Wr){var Jt=cr;return function(){var Xr=cr;cr=Jt;try{return Wr.apply(this,arguments)}finally{cr=Xr}}}}}),require_scheduler=__commonJS$1({"node_modules/scheduler/index.js"(v,k){k.exports=require_scheduler_production_min()}}),require_react_dom_production_min=__commonJS$1({"node_modules/react-dom/cjs/react-dom.production.min.js"(v){var k=require_react(),ie=require_scheduler();function ae(Ar){for(var Fr="https://reactjs.org/docs/error-decoder.html?invariant="+Ar,Zr=1;Zr"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ye=Object.prototype.hasOwnProperty,me=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ee={},cr={};function Br(Ar){return ye.call(cr,Ar)?!0:ye.call(Ee,Ar)?!1:me.test(Ar)?cr[Ar]=!0:(Ee[Ar]=!0,!1)}function $r(Ar,Fr,Zr,yn){if(Zr!==null&&Zr.type===0)return!1;switch(typeof Fr){case"function":case"symbol":return!0;case"boolean":return yn?!1:Zr!==null?!Zr.acceptsBooleans:(Ar=Ar.toLowerCase().slice(0,5),Ar!=="data-"&&Ar!=="aria-");default:return!1}}function Pr(Ar,Fr,Zr,yn){if(Fr===null||typeof Fr>"u"||$r(Ar,Fr,Zr,yn))return!0;if(yn)return!1;if(Zr!==null)switch(Zr.type){case 3:return!Fr;case 4:return Fr===!1;case 5:return isNaN(Fr);case 6:return isNaN(Fr)||1>Fr}return!1}function Or(Ar,Fr,Zr,yn,Pn,Wn,si){this.acceptsBooleans=Fr===2||Fr===3||Fr===4,this.attributeName=yn,this.attributeNamespace=Pn,this.mustUseProperty=Zr,this.propertyName=Ar,this.type=Fr,this.sanitizeURL=Wn,this.removeEmptyString=si}var ur={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(Ar){ur[Ar]=new Or(Ar,0,!1,Ar,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(Ar){var Fr=Ar[0];ur[Fr]=new Or(Fr,1,!1,Ar[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(Ar){ur[Ar]=new Or(Ar,2,!1,Ar.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(Ar){ur[Ar]=new Or(Ar,2,!1,Ar,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(Ar){ur[Ar]=new Or(Ar,3,!1,Ar.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(Ar){ur[Ar]=new Or(Ar,3,!0,Ar,null,!1,!1)}),["capture","download"].forEach(function(Ar){ur[Ar]=new Or(Ar,4,!1,Ar,null,!1,!1)}),["cols","rows","size","span"].forEach(function(Ar){ur[Ar]=new Or(Ar,6,!1,Ar,null,!1,!1)}),["rowSpan","start"].forEach(function(Ar){ur[Ar]=new Or(Ar,5,!1,Ar.toLowerCase(),null,!1,!1)});var jr=/[\-:]([a-z])/g;function Mr(Ar){return Ar[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(Ar){var Fr=Ar.replace(jr,Mr);ur[Fr]=new Or(Fr,1,!1,Ar,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(Ar){var Fr=Ar.replace(jr,Mr);ur[Fr]=new Or(Fr,1,!1,Ar,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(Ar){var Fr=Ar.replace(jr,Mr);ur[Fr]=new Or(Fr,1,!1,Ar,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(Ar){ur[Ar]=new Or(Ar,1,!1,Ar.toLowerCase(),null,!1,!1)}),ur.xlinkHref=new Or("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(Ar){ur[Ar]=new Or(Ar,1,!1,Ar.toLowerCase(),null,!0,!0)});function Lr(Ar,Fr,Zr,yn){var Pn=ur.hasOwnProperty(Fr)?ur[Fr]:null;(Pn!==null?Pn.type!==0:yn||!(2=7&&ur(be,Qr),Mr(be,Xt),isNaN(Yt)&&(Yt=ve.getBestMask(be,jr.bind(null,be,hn))),ve.applyMask(Yt,be),jr(be,hn,Yt),{modules:be,version:Qr,errorCorrectionLevel:hn,maskPattern:Yt,segments:fn}}v.create=function(Qr,hn){if(typeof Qr>"u"||Qr==="")throw new Error("No input text");let Yt=ie.M,fn,Qt;return typeof hn<"u"&&(Yt=ie.from(hn.errorCorrectionLevel,ie.M),fn=me.from(hn.version),Qt=ve.from(hn.maskPattern),hn.toSJISFunc&&k.setToSJISFunction(hn.toSJISFunc)),Gr(Qr,fn,Yt,Qt)}}}),require_utils2$4=__commonJS$1({"node_modules/qrcode/lib/renderer/utils.js"(v){function k(ie){if(typeof ie=="number"&&(ie=ie.toString()),typeof ie!="string")throw new Error("Color should be defined as hex string");let ae=ie.slice().replace("#","").split("");if(ae.length<3||ae.length===5||ae.length>8)throw new Error("Invalid hex color: "+ie);(ae.length===3||ae.length===4)&&(ae=Array.prototype.concat.apply([],ae.map(function(fe){return[fe,fe]}))),ae.length===6&&ae.push("F","F");const ce=parseInt(ae.join(""),16);return{r:ce>>24&255,g:ce>>16&255,b:ce>>8&255,a:ce&255,hex:"#"+ae.slice(0,6).join("")}}v.getOptions=function(ae){ae||(ae={}),ae.color||(ae.color={});const ce=typeof ae.margin>"u"||ae.margin===null||ae.margin<0?4:ae.margin,fe=ae.width&&ae.width>=21?ae.width:void 0,le=ae.scale||4;return{width:fe,scale:fe?4:le,margin:ce,color:{dark:k(ae.color.dark||"#000000ff"),light:k(ae.color.light||"#ffffffff")},type:ae.type,rendererOpts:ae.rendererOpts||{}}},v.getScale=function(ae,ce){return ce.width&&ce.width>=ae+ce.margin*2?ce.width/(ae+ce.margin*2):ce.scale},v.getImageWidth=function(ae,ce){const fe=v.getScale(ae,ce);return Math.floor((ae+ce.margin*2)*fe)},v.qrToImageData=function(ae,ce,fe){const le=ce.modules.size,ve=ce.modules.data,pe=v.getScale(le,fe),ye=Math.floor((le+fe.margin*2)*pe),me=fe.margin*pe,Ee=[fe.color.light,fe.color.dark];for(let cr=0;cr=me&&Br>=me&&cr"u"&&(!le||!le.getContext)&&(pe=le,le=void 0),le||(ye=ae()),pe=k.getOptions(pe);const me=k.getImageWidth(fe.modules.size,pe),Ee=ye.getContext("2d"),cr=Ee.createImageData(me,me);return k.qrToImageData(cr.data,fe,pe),ie(Ee,ye,me),Ee.putImageData(cr,0,0),ye},v.renderToDataURL=function(fe,le,ve){let pe=ve;typeof pe>"u"&&(!le||!le.getContext)&&(pe=le,le=void 0),pe||(pe={});const ye=v.render(fe,le,pe),me=pe.type||"image/png",Ee=pe.rendererOpts||{};return ye.toDataURL(me,Ee.quality)}}}),require_svg_tag=__commonJS$1({"node_modules/qrcode/lib/renderer/svg-tag.js"(v){var k=require_utils2$4();function ie(fe,le){const ve=fe.a/255,pe=le+'="'+fe.hex+'"';return ve<1?pe+" "+le+'-opacity="'+ve.toFixed(2).slice(1)+'"':pe}function ae(fe,le,ve){let pe=fe+le;return typeof ve<"u"&&(pe+=" "+ve),pe}function ce(fe,le,ve){let pe="",ye=0,me=!1,Ee=0;for(let cr=0;cr0&&Br>0&&fe[cr-1]||(pe+=me?ae("M",Br+ve,.5+$r+ve):ae("m",ye,0),ye=0,me=!1),Br+1':"",$r="',Pr='viewBox="0 0 '+cr+" "+cr+'"',Ar=ye.width?'width="'+ye.width+'" height="'+ye.width+'" ':"",ur=''+Br+$r+` +`;return typeof pe=="function"&&pe(null,ur),ur}}}),require_browser$2=__commonJS$1({"node_modules/qrcode/lib/browser.js"(v){var k=require_can_promise(),ie=require_qrcode(),ae=require_canvas(),ce=require_svg_tag();function fe(le,ve,pe,ye,me){const Ee=[].slice.call(arguments,1),cr=Ee.length,Br=typeof Ee[cr-1]=="function";if(!Br&&!k())throw new Error("Callback required as last argument");if(Br){if(cr<2)throw new Error("Too few arguments provided");cr===2?(me=pe,pe=ve,ve=ye=void 0):cr===3&&(ve.getContext&&typeof me>"u"?(me=ye,ye=void 0):(me=ye,ye=pe,pe=ve,ve=void 0))}else{if(cr<1)throw new Error("Too few arguments provided");return cr===1?(pe=ve,ve=ye=void 0):cr===2&&!ve.getContext&&(ye=pe,pe=ve,ve=void 0),new Promise(function($r,Pr){try{const Ar=ie.create(pe,ye);$r(le(Ar,ve,ye))}catch(Ar){Pr(Ar)}})}try{const $r=ie.create(pe,ye);me(null,le($r,ve,ye))}catch($r){me($r)}}v.create=ie.create,v.toCanvas=fe.bind(null,ae.render),v.toDataURL=fe.bind(null,ae.renderToDataURL),v.toString=fe.bind(null,function(le,ve,pe){return ce.render(le,pe)})}}),require_react_production_min=__commonJS$1({"node_modules/react/cjs/react.production.min.js"(v){var k=Symbol.for("react.element"),ie=Symbol.for("react.portal"),ae=Symbol.for("react.fragment"),ce=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),le=Symbol.for("react.provider"),ve=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),ye=Symbol.for("react.suspense"),me=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),cr=Symbol.iterator;function Br(zr){return zr===null||typeof zr!="object"?null:(zr=cr&&zr[cr]||zr["@@iterator"],typeof zr=="function"?zr:null)}var $r={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pr=Object.assign,Ar={};function ur(zr,Jr,Nr){this.props=zr,this.context=Jr,this.refs=Ar,this.updater=Nr||$r}ur.prototype.isReactComponent={},ur.prototype.setState=function(zr,Jr){if(typeof zr!="object"&&typeof zr!="function"&&zr!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,zr,Jr,"setState")},ur.prototype.forceUpdate=function(zr){this.updater.enqueueForceUpdate(this,zr,"forceUpdate")};function jr(){}jr.prototype=ur.prototype;function Mr(zr,Jr,Nr){this.props=zr,this.context=Jr,this.refs=Ar,this.updater=Nr||$r}var Lr=Mr.prototype=new jr;Lr.constructor=Mr,Pr(Lr,ur.prototype),Lr.isPureReactComponent=!0;var Vr=Array.isArray,Gr=Object.prototype.hasOwnProperty,Ur={current:null},Qr={key:!0,ref:!0,__self:!0,__source:!0};function hn(zr,Jr,Nr){var Hr,On={},Gn=null,mn=null;if(Jr!=null)for(Hr in Jr.ref!==void 0&&(mn=Jr.ref),Jr.key!==void 0&&(Gn=""+Jr.key),Jr)Gr.call(Jr,Hr)&&!Qr.hasOwnProperty(Hr)&&(On[Hr]=Jr[Hr]);var Nn=arguments.length-2;if(Nn===1)On.children=Nr;else if(1>>1,Jr=Wr[zr];if(0>>1;zrce(On,Xr))Gnce(mn,On)?(Wr[zr]=mn,Wr[Gn]=Xr,zr=Gn):(Wr[zr]=On,Wr[Hr]=Xr,zr=Hr);else if(Gnce(mn,Xr))Wr[zr]=mn,Wr[Gn]=Xr,zr=Gn;else break e}}return Jt}function ce(Wr,Jt){var Xr=Wr.sortIndex-Jt.sortIndex;return Xr!==0?Xr:Wr.id-Jt.id}typeof performance=="object"&&typeof performance.now=="function"?(fe=performance,v.unstable_now=function(){return fe.now()}):(le=Date,ve=le.now(),v.unstable_now=function(){return le.now()-ve});var fe,le,ve,pe=[],ye=[],me=1,Ee=null,cr=3,Br=!1,$r=!1,Pr=!1,Ar=typeof setTimeout=="function"?setTimeout:null,ur=typeof clearTimeout=="function"?clearTimeout:null,jr=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Mr(Wr){for(var Jt=ie(ye);Jt!==null;){if(Jt.callback===null)ae(ye);else if(Jt.startTime<=Wr)ae(ye),Jt.sortIndex=Jt.expirationTime,k(pe,Jt);else break;Jt=ie(ye)}}function Lr(Wr){if(Pr=!1,Mr(Wr),!$r)if(ie(pe)!==null)$r=!0,kr(Vr);else{var Jt=ie(ye);Jt!==null&&xr(Lr,Jt.startTime-Wr)}}function Vr(Wr,Jt){$r=!1,Pr&&(Pr=!1,ur(Qr),Qr=-1),Br=!0;var Xr=cr;try{for(Mr(Jt),Ee=ie(pe);Ee!==null&&(!(Ee.expirationTime>Jt)||Wr&&!fn());){var zr=Ee.callback;if(typeof zr=="function"){Ee.callback=null,cr=Ee.priorityLevel;var Jr=zr(Ee.expirationTime<=Jt);Jt=v.unstable_now(),typeof Jr=="function"?Ee.callback=Jr:Ee===ie(pe)&&ae(pe),Mr(Jt)}else ae(pe);Ee=ie(pe)}if(Ee!==null)var Nr=!0;else{var Hr=ie(ye);Hr!==null&&xr(Lr,Hr.startTime-Jt),Nr=!1}return Nr}finally{Ee=null,cr=Xr,Br=!1}}var Gr=!1,Ur=null,Qr=-1,hn=5,Yt=-1;function fn(){return!(v.unstable_now()-YtWr||125zr?(Wr.sortIndex=Xr,k(ye,Wr),ie(pe)===null&&Wr===ie(ye)&&(Pr?(ur(Qr),Qr=-1):Pr=!0,xr(Lr,Xr-zr))):(Wr.sortIndex=Jr,k(pe,Wr),$r||Br||($r=!0,kr(Vr))),Wr},v.unstable_shouldYield=fn,v.unstable_wrapCallback=function(Wr){var Jt=cr;return function(){var Xr=cr;cr=Jt;try{return Wr.apply(this,arguments)}finally{cr=Xr}}}}}),require_scheduler=__commonJS$1({"node_modules/scheduler/index.js"(v,k){k.exports=require_scheduler_production_min()}}),require_react_dom_production_min=__commonJS$1({"node_modules/react-dom/cjs/react-dom.production.min.js"(v){var k=require_react(),ie=require_scheduler();function ae(Or){for(var Fr="https://reactjs.org/docs/error-decoder.html?invariant="+Or,Zr=1;Zr"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ye=Object.prototype.hasOwnProperty,me=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ee={},cr={};function Br(Or){return ye.call(cr,Or)?!0:ye.call(Ee,Or)?!1:me.test(Or)?cr[Or]=!0:(Ee[Or]=!0,!1)}function $r(Or,Fr,Zr,yn){if(Zr!==null&&Zr.type===0)return!1;switch(typeof Fr){case"function":case"symbol":return!0;case"boolean":return yn?!1:Zr!==null?!Zr.acceptsBooleans:(Or=Or.toLowerCase().slice(0,5),Or!=="data-"&&Or!=="aria-");default:return!1}}function Pr(Or,Fr,Zr,yn){if(Fr===null||typeof Fr>"u"||$r(Or,Fr,Zr,yn))return!0;if(yn)return!1;if(Zr!==null)switch(Zr.type){case 3:return!Fr;case 4:return Fr===!1;case 5:return isNaN(Fr);case 6:return isNaN(Fr)||1>Fr}return!1}function Ar(Or,Fr,Zr,yn,Pn,Wn,si){this.acceptsBooleans=Fr===2||Fr===3||Fr===4,this.attributeName=yn,this.attributeNamespace=Pn,this.mustUseProperty=Zr,this.propertyName=Or,this.type=Fr,this.sanitizeURL=Wn,this.removeEmptyString=si}var ur={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(Or){ur[Or]=new Ar(Or,0,!1,Or,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(Or){var Fr=Or[0];ur[Fr]=new Ar(Fr,1,!1,Or[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(Or){ur[Or]=new Ar(Or,2,!1,Or.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(Or){ur[Or]=new Ar(Or,2,!1,Or,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(Or){ur[Or]=new Ar(Or,3,!1,Or.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(Or){ur[Or]=new Ar(Or,3,!0,Or,null,!1,!1)}),["capture","download"].forEach(function(Or){ur[Or]=new Ar(Or,4,!1,Or,null,!1,!1)}),["cols","rows","size","span"].forEach(function(Or){ur[Or]=new Ar(Or,6,!1,Or,null,!1,!1)}),["rowSpan","start"].forEach(function(Or){ur[Or]=new Ar(Or,5,!1,Or.toLowerCase(),null,!1,!1)});var jr=/[\-:]([a-z])/g;function Mr(Or){return Or[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(Or){var Fr=Or.replace(jr,Mr);ur[Fr]=new Ar(Fr,1,!1,Or,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(Or){var Fr=Or.replace(jr,Mr);ur[Fr]=new Ar(Fr,1,!1,Or,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(Or){var Fr=Or.replace(jr,Mr);ur[Fr]=new Ar(Fr,1,!1,Or,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(Or){ur[Or]=new Ar(Or,1,!1,Or.toLowerCase(),null,!1,!1)}),ur.xlinkHref=new Ar("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(Or){ur[Or]=new Ar(Or,1,!1,Or.toLowerCase(),null,!0,!0)});function Lr(Or,Fr,Zr,yn){var Pn=ur.hasOwnProperty(Fr)?ur[Fr]:null;(Pn!==null?Pn.type!==0:yn||!(2Ii||Pn[si]!==Wn[Ii]){var Li=` -`+Pn[si].replace(" at new "," at ");return Ar.displayName&&Li.includes("")&&(Li=Li.replace("",Ar.displayName)),Li}while(1<=si&&0<=Ii);break}}}finally{Hr=!1,Error.prepareStackTrace=Zr}return(Ar=Ar?Ar.displayName||Ar.name:"")?Nr(Ar):""}function Gn(Ar){switch(Ar.tag){case 5:return Nr(Ar.type);case 16:return Nr("Lazy");case 13:return Nr("Suspense");case 19:return Nr("SuspenseList");case 0:case 2:case 15:return Ar=On(Ar.type,!1),Ar;case 11:return Ar=On(Ar.type.render,!1),Ar;case 1:return Ar=On(Ar.type,!0),Ar;default:return""}}function mn(Ar){if(Ar==null)return null;if(typeof Ar=="function")return Ar.displayName||Ar.name||null;if(typeof Ar=="string")return Ar;switch(Ar){case Qr:return"Fragment";case Ur:return"Portal";case Yt:return"Profiler";case vn:return"StrictMode";case Kr:return"Suspense";case be:return"SuspenseList"}if(typeof Ar=="object")switch(Ar.$$typeof){case Xt:return(Ar.displayName||"Context")+".Consumer";case fn:return(Ar._context.displayName||"Context")+".Provider";case Qt:var Fr=Ar.render;return Ar=Ar.displayName,Ar||(Ar=Fr.displayName||Fr.name||"",Ar=Ar!==""?"ForwardRef("+Ar+")":"ForwardRef"),Ar;case kr:return Fr=Ar.displayName||null,Fr!==null?Fr:mn(Ar.type)||"Memo";case xr:Fr=Ar._payload,Ar=Ar._init;try{return mn(Ar(Fr))}catch{}}return null}function Nn(Ar){var Fr=Ar.type;switch(Ar.tag){case 24:return"Cache";case 9:return(Fr.displayName||"Context")+".Consumer";case 10:return(Fr._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return Ar=Fr.render,Ar=Ar.displayName||Ar.name||"",Fr.displayName||(Ar!==""?"ForwardRef("+Ar+")":"ForwardRef");case 7:return"Fragment";case 5:return Fr;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return mn(Fr);case 8:return Fr===vn?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof Fr=="function")return Fr.displayName||Fr.name||null;if(typeof Fr=="string")return Fr}return null}function In(Ar){switch(typeof Ar){case"boolean":case"number":case"string":case"undefined":return Ar;case"object":return Ar;default:return""}}function bn(Ar){var Fr=Ar.type;return(Ar=Ar.nodeName)&&Ar.toLowerCase()==="input"&&(Fr==="checkbox"||Fr==="radio")}function ii(Ar){var Fr=bn(Ar)?"checked":"value",Zr=Object.getOwnPropertyDescriptor(Ar.constructor.prototype,Fr),yn=""+Ar[Fr];if(!Ar.hasOwnProperty(Fr)&&typeof Zr<"u"&&typeof Zr.get=="function"&&typeof Zr.set=="function"){var Pn=Zr.get,Wn=Zr.set;return Object.defineProperty(Ar,Fr,{configurable:!0,get:function(){return Pn.call(this)},set:function(si){yn=""+si,Wn.call(this,si)}}),Object.defineProperty(Ar,Fr,{enumerable:Zr.enumerable}),{getValue:function(){return yn},setValue:function(si){yn=""+si},stopTracking:function(){Ar._valueTracker=null,delete Ar[Fr]}}}}function hn(Ar){Ar._valueTracker||(Ar._valueTracker=ii(Ar))}function pn(Ar){if(!Ar)return!1;var Fr=Ar._valueTracker;if(!Fr)return!0;var Zr=Fr.getValue(),yn="";return Ar&&(yn=bn(Ar)?Ar.checked?"true":"false":Ar.value),Ar=yn,Ar!==Zr?(Fr.setValue(Ar),!0):!1}function Sn(Ar){if(Ar=Ar||(typeof document<"u"?document:void 0),typeof Ar>"u")return null;try{return Ar.activeElement||Ar.body}catch{return Ar.body}}function Qn(Ar,Fr){var Zr=Fr.checked;return zr({},Fr,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:Zr!=null?Zr:Ar._wrapperState.initialChecked})}function Jn(Ar,Fr){var Zr=Fr.defaultValue==null?"":Fr.defaultValue,yn=Fr.checked!=null?Fr.checked:Fr.defaultChecked;Zr=In(Fr.value!=null?Fr.value:Zr),Ar._wrapperState={initialChecked:yn,initialValue:Zr,controlled:Fr.type==="checkbox"||Fr.type==="radio"?Fr.checked!=null:Fr.value!=null}}function ui(Ar,Fr){Fr=Fr.checked,Fr!=null&&Lr(Ar,"checked",Fr,!1)}function gi(Ar,Fr){ui(Ar,Fr);var Zr=In(Fr.value),yn=Fr.type;if(Zr!=null)yn==="number"?(Zr===0&&Ar.value===""||Ar.value!=Zr)&&(Ar.value=""+Zr):Ar.value!==""+Zr&&(Ar.value=""+Zr);else if(yn==="submit"||yn==="reset"){Ar.removeAttribute("value");return}Fr.hasOwnProperty("value")?Ci(Ar,Fr.type,Zr):Fr.hasOwnProperty("defaultValue")&&Ci(Ar,Fr.type,In(Fr.defaultValue)),Fr.checked==null&&Fr.defaultChecked!=null&&(Ar.defaultChecked=!!Fr.defaultChecked)}function di(Ar,Fr,Zr){if(Fr.hasOwnProperty("value")||Fr.hasOwnProperty("defaultValue")){var yn=Fr.type;if(!(yn!=="submit"&&yn!=="reset"||Fr.value!==void 0&&Fr.value!==null))return;Fr=""+Ar._wrapperState.initialValue,Zr||Fr===Ar.value||(Ar.value=Fr),Ar.defaultValue=Fr}Zr=Ar.name,Zr!==""&&(Ar.name=""),Ar.defaultChecked=!!Ar._wrapperState.initialChecked,Zr!==""&&(Ar.name=Zr)}function Ci(Ar,Fr,Zr){(Fr!=="number"||Sn(Ar.ownerDocument)!==Ar)&&(Zr==null?Ar.defaultValue=""+Ar._wrapperState.initialValue:Ar.defaultValue!==""+Zr&&(Ar.defaultValue=""+Zr))}var yi=Array.isArray;function li(Ar,Fr,Zr,yn){if(Ar=Ar.options,Fr){Fr={};for(var Pn=0;Pn"+Fr.valueOf().toString()+"",Fr=Zt.firstChild;Ar.firstChild;)Ar.removeChild(Ar.firstChild);for(;Fr.firstChild;)Ar.appendChild(Fr.firstChild)}});function ei(Ar,Fr){if(Fr){var Zr=Ar.firstChild;if(Zr&&Zr===Ar.lastChild&&Zr.nodeType===3){Zr.nodeValue=Fr;return}}Ar.textContent=Fr}var zn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},gn=["Webkit","ms","Moz","O"];Object.keys(zn).forEach(function(Ar){gn.forEach(function(Fr){Fr=Fr+Ar.charAt(0).toUpperCase()+Ar.substring(1),zn[Fr]=zn[Ar]})});function xn(Ar,Fr,Zr){return Fr==null||typeof Fr=="boolean"||Fr===""?"":Zr||typeof Fr!="number"||Fr===0||zn.hasOwnProperty(Ar)&&zn[Ar]?(""+Fr).trim():Fr+"px"}function Hn(Ar,Fr){Ar=Ar.style;for(var Zr in Fr)if(Fr.hasOwnProperty(Zr)){var yn=Zr.indexOf("--")===0,Pn=xn(Zr,Fr[Zr],yn);Zr==="float"&&(Zr="cssFloat"),yn?Ar.setProperty(Zr,Pn):Ar[Zr]=Pn}}var Ln=zr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ti(Ar,Fr){if(Fr){if(Ln[Ar]&&(Fr.children!=null||Fr.dangerouslySetInnerHTML!=null))throw Error(ae(137,Ar));if(Fr.dangerouslySetInnerHTML!=null){if(Fr.children!=null)throw Error(ae(60));if(typeof Fr.dangerouslySetInnerHTML!="object"||!("__html"in Fr.dangerouslySetInnerHTML))throw Error(ae(61))}if(Fr.style!=null&&typeof Fr.style!="object")throw Error(ae(62))}}function oi(Ar,Fr){if(Ar.indexOf("-")===-1)return typeof Fr.is=="string";switch(Ar){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ei=null;function Ri(Ar){return Ar=Ar.target||Ar.srcElement||window,Ar.correspondingUseElement&&(Ar=Ar.correspondingUseElement),Ar.nodeType===3?Ar.parentNode:Ar}var Oo=null,Ui=null,io=null;function So(Ar){if(Ar=Hc(Ar)){if(typeof Oo!="function")throw Error(ae(280));var Fr=Ar.stateNode;Fr&&(Fr=wl(Fr),Oo(Ar.stateNode,Ar.type,Fr))}}function $o(Ar){Ui?io?io.push(Ar):io=[Ar]:Ui=Ar}function mo(){if(Ui){var Ar=Ui,Fr=io;if(io=Ui=null,So(Ar),Fr)for(Ar=0;Ar>>=0,Ar===0?32:31-(Si(Ar)/Ti|0)|0}var To=64,Mo=4194304;function Co(Ar){switch(Ar&-Ar){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return Ar&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return Ar&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return Ar}}function Fo(Ar,Fr){var Zr=Ar.pendingLanes;if(Zr===0)return 0;var yn=0,Pn=Ar.suspendedLanes,Wn=Ar.pingedLanes,si=Zr&268435455;if(si!==0){var Ii=si&~Pn;Ii!==0?yn=Co(Ii):(Wn&=si,Wn!==0&&(yn=Co(Wn)))}else si=Zr&~Pn,si!==0?yn=Co(si):Wn!==0&&(yn=Co(Wn));if(yn===0)return 0;if(Fr!==0&&Fr!==yn&&(Fr&Pn)===0&&(Pn=yn&-yn,Wn=Fr&-Fr,Pn>=Wn||Pn===16&&(Wn&4194240)!==0))return Fr;if((yn&4)!==0&&(yn|=Zr&16),Fr=Ar.entangledLanes,Fr!==0)for(Ar=Ar.entanglements,Fr&=yn;0Zr;Zr++)Fr.push(Ar);return Fr}function Go(Ar,Fr,Zr){Ar.pendingLanes|=Fr,Fr!==536870912&&(Ar.suspendedLanes=0,Ar.pingedLanes=0),Ar=Ar.eventTimes,Fr=31-mi(Fr),Ar[Fr]=Zr}function Vo(Ar,Fr){var Zr=Ar.pendingLanes&~Fr;Ar.pendingLanes=Fr,Ar.suspendedLanes=0,Ar.pingedLanes=0,Ar.expiredLanes&=Fr,Ar.mutableReadLanes&=Fr,Ar.entangledLanes&=Fr,Fr=Ar.entanglements;var yn=Ar.eventTimes;for(Ar=Ar.expirationTimes;0=Fc),B$=String.fromCharCode(32),k$=!1;function F$(Ar,Fr){switch(Ar){case"keyup":return hv.indexOf(Fr.keyCode)!==-1;case"keydown":return Fr.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function L$(Ar){return Ar=Ar.detail,typeof Ar=="object"&&"data"in Ar?Ar.data:null}var vc=!1;function pv(Ar,Fr){switch(Ar){case"compositionend":return L$(Fr);case"keypress":return Fr.which!==32?null:(k$=!0,B$);case"textInput":return Ar=Fr.data,Ar===B$&&k$?null:Ar;default:return null}}function yv(Ar,Fr){if(vc)return Ar==="compositionend"||!hf&&F$(Ar,Fr)?(Ar=Ca(),Ka=Ba=da=null,vc=!1,Ar):null;switch(Ar){case"paste":return null;case"keypress":if(!(Fr.ctrlKey||Fr.altKey||Fr.metaKey)||Fr.ctrlKey&&Fr.altKey){if(Fr.char&&1=Fr)return{node:Zr,offset:Fr-Ar};Ar=yn}e:{for(;Zr;){if(Zr.nextSibling){Zr=Zr.nextSibling;break e}Zr=Zr.parentNode}Zr=void 0}Zr=V$(Zr)}}function H$(Ar,Fr){return Ar&&Fr?Ar===Fr?!0:Ar&&Ar.nodeType===3?!1:Fr&&Fr.nodeType===3?H$(Ar,Fr.parentNode):"contains"in Ar?Ar.contains(Fr):Ar.compareDocumentPosition?!!(Ar.compareDocumentPosition(Fr)&16):!1:!1}function z$(){for(var Ar=window,Fr=Sn();Fr instanceof Ar.HTMLIFrameElement;){try{var Zr=typeof Fr.contentWindow.location.href=="string"}catch{Zr=!1}if(Zr)Ar=Fr.contentWindow;else break;Fr=Sn(Ar.document)}return Fr}function yf(Ar){var Fr=Ar&&Ar.nodeName&&Ar.nodeName.toLowerCase();return Fr&&(Fr==="input"&&(Ar.type==="text"||Ar.type==="search"||Ar.type==="tel"||Ar.type==="url"||Ar.type==="password")||Fr==="textarea"||Ar.contentEditable==="true")}function Ov(Ar){var Fr=z$(),Zr=Ar.focusedElem,yn=Ar.selectionRange;if(Fr!==Zr&&Zr&&Zr.ownerDocument&&H$(Zr.ownerDocument.documentElement,Zr)){if(yn!==null&&yf(Zr)){if(Fr=yn.start,Ar=yn.end,Ar===void 0&&(Ar=Fr),"selectionStart"in Zr)Zr.selectionStart=Fr,Zr.selectionEnd=Math.min(Ar,Zr.value.length);else if(Ar=(Fr=Zr.ownerDocument||document)&&Fr.defaultView||window,Ar.getSelection){Ar=Ar.getSelection();var Pn=Zr.textContent.length,Wn=Math.min(yn.start,Pn);yn=yn.end===void 0?Wn:Math.min(yn.end,Pn),!Ar.extend&&Wn>yn&&(Pn=yn,yn=Wn,Wn=Pn),Pn=W$(Zr,Wn);var si=W$(Zr,yn);Pn&&si&&(Ar.rangeCount!==1||Ar.anchorNode!==Pn.node||Ar.anchorOffset!==Pn.offset||Ar.focusNode!==si.node||Ar.focusOffset!==si.offset)&&(Fr=Fr.createRange(),Fr.setStart(Pn.node,Pn.offset),Ar.removeAllRanges(),Wn>yn?(Ar.addRange(Fr),Ar.extend(si.node,si.offset)):(Fr.setEnd(si.node,si.offset),Ar.addRange(Fr)))}}for(Fr=[],Ar=Zr;Ar=Ar.parentNode;)Ar.nodeType===1&&Fr.push({element:Ar,left:Ar.scrollLeft,top:Ar.scrollTop});for(typeof Zr.focus=="function"&&Zr.focus(),Zr=0;Zr=document.documentMode,pc=null,gf=null,Kc=null,mf=!1;function Y$(Ar,Fr,Zr){var yn=Zr.window===Zr?Zr.document:Zr.nodeType===9?Zr:Zr.ownerDocument;mf||pc==null||pc!==Sn(yn)||(yn=pc,"selectionStart"in yn&&yf(yn)?yn={start:yn.selectionStart,end:yn.selectionEnd}:(yn=(yn.ownerDocument&&yn.ownerDocument.defaultView||window).getSelection(),yn={anchorNode:yn.anchorNode,anchorOffset:yn.anchorOffset,focusNode:yn.focusNode,focusOffset:yn.focusOffset}),Kc&&xc(Kc,yn)||(Kc=yn,yn=bl(gf,"onSelect"),0Ec||(Ar.current=Pf[Ec],Pf[Ec]=null,Ec--)}function ya(Ar,Fr){Ec++,Pf[Ec]=Ar.current,Ar.current=Fr}var Lu={},qa=Fu(Lu),Ja=Fu(!1),rc=Lu;function Ac(Ar,Fr){var Zr=Ar.type.contextTypes;if(!Zr)return Lu;var yn=Ar.stateNode;if(yn&&yn.__reactInternalMemoizedUnmaskedChildContext===Fr)return yn.__reactInternalMemoizedMaskedChildContext;var Pn={},Wn;for(Wn in Zr)Pn[Wn]=Fr[Wn];return yn&&(Ar=Ar.stateNode,Ar.__reactInternalMemoizedUnmaskedChildContext=Fr,Ar.__reactInternalMemoizedMaskedChildContext=Pn),Pn}function Xa(Ar){return Ar=Ar.childContextTypes,Ar!=null}function _l(){ma(Ja),ma(qa)}function dd(Ar,Fr,Zr){if(qa.current!==Lu)throw Error(ae(168));ya(qa,Fr),ya(Ja,Zr)}function hd(Ar,Fr,Zr){var yn=Ar.stateNode;if(Fr=Fr.childContextTypes,typeof yn.getChildContext!="function")return Zr;yn=yn.getChildContext();for(var Pn in yn)if(!(Pn in Fr))throw Error(ae(108,Nn(Ar)||"Unknown",Pn));return zr({},Zr,yn)}function Sl(Ar){return Ar=(Ar=Ar.stateNode)&&Ar.__reactInternalMemoizedMergedChildContext||Lu,rc=qa.current,ya(qa,Ar),ya(Ja,Ja.current),!0}function vd(Ar,Fr,Zr){var yn=Ar.stateNode;if(!yn)throw Error(ae(169));Zr?(Ar=hd(Ar,Fr,rc),yn.__reactInternalMemoizedMergedChildContext=Ar,ma(Ja),ma(qa),ya(qa,Ar)):ma(Ja),ya(Ja,Zr)}var Iu=null,Ol=!1,Cf=!1;function pd(Ar){Iu===null?Iu=[Ar]:Iu.push(Ar)}function Bv(Ar){Ol=!0,pd(Ar)}function Uu(){if(!Cf&&Iu!==null){Cf=!0;var Ar=0,Fr=Do;try{var Zr=Iu;for(Do=1;Ar>=si,Pn-=si,Tu=1<<32-mi(Fr)+Pn|Zr<aa?(Da=na,na=null):Da=na.sibling;var ha=Ro(po,na,bo[aa],Lo);if(ha===null){na===null&&(na=Da);break}Ar&&na&&ha.alternate===null&&Fr(po,na),no=Wn(ha,no,aa),ta===null?Zo=ha:ta.sibling=ha,ta=ha,na=Da}if(aa===bo.length)return Zr(po,na),ba&&nc(po,aa),Zo;if(na===null){for(;aaaa?(Da=na,na=null):Da=na.sibling;var Yu=Ro(po,na,ha.value,Lo);if(Yu===null){na===null&&(na=Da);break}Ar&&na&&Yu.alternate===null&&Fr(po,na),no=Wn(Yu,no,aa),ta===null?Zo=Yu:ta.sibling=Yu,ta=Yu,na=Da}if(ha.done)return Zr(po,na),ba&&nc(po,aa),Zo;if(na===null){for(;!ha.done;aa++,ha=bo.next())ha=Bo(po,ha.value,Lo),ha!==null&&(no=Wn(ha,no,aa),ta===null?Zo=ha:ta.sibling=ha,ta=ha);return ba&&nc(po,aa),Zo}for(na=yn(po,na);!ha.done;aa++,ha=bo.next())ha=zo(na,po,aa,ha.value,Lo),ha!==null&&(Ar&&ha.alternate!==null&&na.delete(ha.key===null?aa:ha.key),no=Wn(ha,no,aa),ta===null?Zo=ha:ta.sibling=ha,ta=ha);return Ar&&na.forEach(function(pp){return Fr(po,pp)}),ba&&nc(po,aa),Zo}function Ia(po,no,bo,Lo){if(typeof bo=="object"&&bo!==null&&bo.type===Qr&&bo.key===null&&(bo=bo.props.children),typeof bo=="object"&&bo!==null){switch(bo.$$typeof){case Gr:e:{for(var Zo=bo.key,ta=no;ta!==null;){if(ta.key===Zo){if(Zo=bo.type,Zo===Qr){if(ta.tag===7){Zr(po,ta.sibling),no=Pn(ta,bo.props.children),no.return=po,po=no;break e}}else if(ta.elementType===Zo||typeof Zo=="object"&&Zo!==null&&Zo.$$typeof===xr&&Cd(Zo)===ta.type){Zr(po,ta.sibling),no=Pn(ta,bo.props),no.ref=zc(po,ta,bo),no.return=po,po=no;break e}Zr(po,ta);break}else Fr(po,ta);ta=ta.sibling}bo.type===Qr?(no=fc(bo.props.children,po.mode,Lo,bo.key),no.return=po,po=no):(Lo=ef(bo.type,bo.key,bo.props,null,po.mode,Lo),Lo.ref=zc(po,no,bo),Lo.return=po,po=Lo)}return si(po);case Ur:e:{for(ta=bo.key;no!==null;){if(no.key===ta)if(no.tag===4&&no.stateNode.containerInfo===bo.containerInfo&&no.stateNode.implementation===bo.implementation){Zr(po,no.sibling),no=Pn(no,bo.children||[]),no.return=po,po=no;break e}else{Zr(po,no);break}else Fr(po,no);no=no.sibling}no=I$(bo,po.mode,Lo),no.return=po,po=no}return si(po);case xr:return ta=bo._init,Ia(po,no,ta(bo._payload),Lo)}if(yi(bo))return Xo(po,no,bo,Lo);if(Xr(bo))return Qo(po,no,bo,Lo);Dl(po,bo)}return typeof bo=="string"&&bo!==""||typeof bo=="number"?(bo=""+bo,no!==null&&no.tag===6?(Zr(po,no.sibling),no=Pn(no,bo),no.return=po,po=no):(Zr(po,no),no=O$(bo,po.mode,Lo),no.return=po,po=no),si(po)):Zr(po,no)}return Ia}var Pc=Rd(!0),Nd=Rd(!1),Yc={},wu=Fu(Yc),Jc=Fu(Yc),Xc=Fu(Yc);function oc(Ar){if(Ar===Yc)throw Error(ae(174));return Ar}function Gf(Ar,Fr){switch(ya(Xc,Fr),ya(Jc,Ar),ya(wu,Yc),Ar=Fr.nodeType,Ar){case 9:case 11:Fr=(Fr=Fr.documentElement)?Fr.namespaceURI:Bt(null,"");break;default:Ar=Ar===8?Fr.parentNode:Fr,Fr=Ar.namespaceURI||null,Ar=Ar.tagName,Fr=Bt(Fr,Ar)}ma(wu),ya(wu,Fr)}function Cc(){ma(wu),ma(Jc),ma(Xc)}function jd(Ar){oc(Xc.current);var Fr=oc(wu.current),Zr=Bt(Fr,Ar.type);Fr!==Zr&&(ya(Jc,Ar),ya(wu,Zr))}function Vf(Ar){Jc.current===Ar&&(ma(wu),ma(Jc))}var Aa=Fu(0);function Bl(Ar){for(var Fr=Ar;Fr!==null;){if(Fr.tag===13){var Zr=Fr.memoizedState;if(Zr!==null&&(Zr=Zr.dehydrated,Zr===null||Zr.data==="$?"||Zr.data==="$!"))return Fr}else if(Fr.tag===19&&Fr.memoizedProps.revealOrder!==void 0){if((Fr.flags&128)!==0)return Fr}else if(Fr.child!==null){Fr.child.return=Fr,Fr=Fr.child;continue}if(Fr===Ar)break;for(;Fr.sibling===null;){if(Fr.return===null||Fr.return===Ar)return null;Fr=Fr.return}Fr.sibling.return=Fr.return,Fr=Fr.sibling}return null}var Wf=[];function Hf(){for(var Ar=0;ArZr?Zr:4,Ar(!0);var yn=zf.transition;zf.transition={};try{Ar(!1),Fr()}finally{Do=Zr,zf.transition=yn}}function Xd(){return uu().memoizedState}function Uv(Ar,Fr,Zr){var yn=Wu(Ar);if(Zr={lane:yn,action:Zr,hasEagerState:!1,eagerState:null,next:null},Qd(Ar))Zd(Fr,Zr);else if(Zr=Ad(Ar,Fr,Zr,yn),Zr!==null){var Pn=za();gu(Zr,Ar,yn,Pn),eh(Zr,Fr,yn)}}function xv(Ar,Fr,Zr){var yn=Wu(Ar),Pn={lane:yn,action:Zr,hasEagerState:!1,eagerState:null,next:null};if(Qd(Ar))Zd(Fr,Pn);else{var Wn=Ar.alternate;if(Ar.lanes===0&&(Wn===null||Wn.lanes===0)&&(Wn=Fr.lastRenderedReducer,Wn!==null))try{var si=Fr.lastRenderedState,Ii=Wn(si,Zr);if(Pn.hasEagerState=!0,Pn.eagerState=Ii,du(Ii,si)){var Li=Fr.interleaved;Li===null?(Pn.next=Pn,Uf(Fr)):(Pn.next=Li.next,Li.next=Pn),Fr.interleaved=Pn;return}}catch{}finally{}Zr=Ad(Ar,Fr,Pn,yn),Zr!==null&&(Pn=za(),gu(Zr,Ar,yn,Pn),eh(Zr,Fr,yn))}}function Qd(Ar){var Fr=Ar.alternate;return Ar===wa||Fr!==null&&Fr===wa}function Zd(Ar,Fr){Qc=Fl=!0;var Zr=Ar.pending;Zr===null?Fr.next=Fr:(Fr.next=Zr.next,Zr.next=Fr),Ar.pending=Fr}function eh(Ar,Fr,Zr){if((Zr&4194240)!==0){var yn=Fr.lanes;yn&=Ar.pendingLanes,Zr|=yn,Fr.lanes=Zr,ra(Ar,Zr)}}var xl={readContext:su,useCallback:Ga,useContext:Ga,useEffect:Ga,useImperativeHandle:Ga,useInsertionEffect:Ga,useLayoutEffect:Ga,useMemo:Ga,useReducer:Ga,useRef:Ga,useState:Ga,useDebugValue:Ga,useDeferredValue:Ga,useTransition:Ga,useMutableSource:Ga,useSyncExternalStore:Ga,useId:Ga,unstable_isNewReconciler:!1},Kv={readContext:su,useCallback:function(Ar,Fr){return _u().memoizedState=[Ar,Fr===void 0?null:Fr],Ar},useContext:su,useEffect:qd,useImperativeHandle:function(Ar,Fr,Zr){return Zr=Zr!=null?Zr.concat([Ar]):null,Ll(4194308,4,Wd.bind(null,Fr,Ar),Zr)},useLayoutEffect:function(Ar,Fr){return Ll(4194308,4,Ar,Fr)},useInsertionEffect:function(Ar,Fr){return Ll(4,2,Ar,Fr)},useMemo:function(Ar,Fr){var Zr=_u();return Fr=Fr===void 0?null:Fr,Ar=Ar(),Zr.memoizedState=[Ar,Fr],Ar},useReducer:function(Ar,Fr,Zr){var yn=_u();return Fr=Zr!==void 0?Zr(Fr):Fr,yn.memoizedState=yn.baseState=Fr,Ar={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:Fr},yn.queue=Ar,Ar=Ar.dispatch=Uv.bind(null,wa,Ar),[yn.memoizedState,Ar]},useRef:function(Ar){var Fr=_u();return Ar={current:Ar},Fr.memoizedState=Ar},useState:xd,useDebugValue:r$,useDeferredValue:function(Ar){return _u().memoizedState=Ar},useTransition:function(){var Ar=xd(!1),Fr=Ar[0];return Ar=Lv.bind(null,Ar[1]),_u().memoizedState=Ar,[Fr,Ar]},useMutableSource:function(){},useSyncExternalStore:function(Ar,Fr,Zr){var yn=wa,Pn=_u();if(ba){if(Zr===void 0)throw Error(ae(407));Zr=Zr()}else{if(Zr=Fr(),Ma===null)throw Error(ae(349));(ac&30)!==0||Bd(yn,Fr,Zr)}Pn.memoizedState=Zr;var Wn={value:Zr,getSnapshot:Fr};return Pn.queue=Wn,qd(Fd.bind(null,yn,Wn,Ar),[Ar]),yn.flags|=2048,rl(9,kd.bind(null,yn,Wn,Zr,Fr),void 0,null),Zr},useId:function(){var Ar=_u(),Fr=Ma.identifierPrefix;if(ba){var Zr=Pu,yn=Tu;Zr=(yn&~(1<<32-mi(yn)-1)).toString(32)+Zr,Fr=":"+Fr+"R"+Zr,Zr=Zc++,0")&&(Li=Li.replace("",Or.displayName)),Li}while(1<=si&&0<=Ii);break}}}finally{Hr=!1,Error.prepareStackTrace=Zr}return(Or=Or?Or.displayName||Or.name:"")?Nr(Or):""}function Gn(Or){switch(Or.tag){case 5:return Nr(Or.type);case 16:return Nr("Lazy");case 13:return Nr("Suspense");case 19:return Nr("SuspenseList");case 0:case 2:case 15:return Or=On(Or.type,!1),Or;case 11:return Or=On(Or.type.render,!1),Or;case 1:return Or=On(Or.type,!0),Or;default:return""}}function mn(Or){if(Or==null)return null;if(typeof Or=="function")return Or.displayName||Or.name||null;if(typeof Or=="string")return Or;switch(Or){case Qr:return"Fragment";case Ur:return"Portal";case Yt:return"Profiler";case hn:return"StrictMode";case Kr:return"Suspense";case be:return"SuspenseList"}if(typeof Or=="object")switch(Or.$$typeof){case Qt:return(Or.displayName||"Context")+".Consumer";case fn:return(Or._context.displayName||"Context")+".Provider";case Xt:var Fr=Or.render;return Or=Or.displayName,Or||(Or=Fr.displayName||Fr.name||"",Or=Or!==""?"ForwardRef("+Or+")":"ForwardRef"),Or;case kr:return Fr=Or.displayName||null,Fr!==null?Fr:mn(Or.type)||"Memo";case xr:Fr=Or._payload,Or=Or._init;try{return mn(Or(Fr))}catch{}}return null}function Nn(Or){var Fr=Or.type;switch(Or.tag){case 24:return"Cache";case 9:return(Fr.displayName||"Context")+".Consumer";case 10:return(Fr._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return Or=Fr.render,Or=Or.displayName||Or.name||"",Fr.displayName||(Or!==""?"ForwardRef("+Or+")":"ForwardRef");case 7:return"Fragment";case 5:return Fr;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return mn(Fr);case 8:return Fr===hn?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof Fr=="function")return Fr.displayName||Fr.name||null;if(typeof Fr=="string")return Fr}return null}function In(Or){switch(typeof Or){case"boolean":case"number":case"string":case"undefined":return Or;case"object":return Or;default:return""}}function bn(Or){var Fr=Or.type;return(Or=Or.nodeName)&&Or.toLowerCase()==="input"&&(Fr==="checkbox"||Fr==="radio")}function ii(Or){var Fr=bn(Or)?"checked":"value",Zr=Object.getOwnPropertyDescriptor(Or.constructor.prototype,Fr),yn=""+Or[Fr];if(!Or.hasOwnProperty(Fr)&&typeof Zr<"u"&&typeof Zr.get=="function"&&typeof Zr.set=="function"){var Pn=Zr.get,Wn=Zr.set;return Object.defineProperty(Or,Fr,{configurable:!0,get:function(){return Pn.call(this)},set:function(si){yn=""+si,Wn.call(this,si)}}),Object.defineProperty(Or,Fr,{enumerable:Zr.enumerable}),{getValue:function(){return yn},setValue:function(si){yn=""+si},stopTracking:function(){Or._valueTracker=null,delete Or[Fr]}}}}function vn(Or){Or._valueTracker||(Or._valueTracker=ii(Or))}function pn(Or){if(!Or)return!1;var Fr=Or._valueTracker;if(!Fr)return!0;var Zr=Fr.getValue(),yn="";return Or&&(yn=bn(Or)?Or.checked?"true":"false":Or.value),Or=yn,Or!==Zr?(Fr.setValue(Or),!0):!1}function Sn(Or){if(Or=Or||(typeof document<"u"?document:void 0),typeof Or>"u")return null;try{return Or.activeElement||Or.body}catch{return Or.body}}function Qn(Or,Fr){var Zr=Fr.checked;return zr({},Fr,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:Zr!=null?Zr:Or._wrapperState.initialChecked})}function Jn(Or,Fr){var Zr=Fr.defaultValue==null?"":Fr.defaultValue,yn=Fr.checked!=null?Fr.checked:Fr.defaultChecked;Zr=In(Fr.value!=null?Fr.value:Zr),Or._wrapperState={initialChecked:yn,initialValue:Zr,controlled:Fr.type==="checkbox"||Fr.type==="radio"?Fr.checked!=null:Fr.value!=null}}function ui(Or,Fr){Fr=Fr.checked,Fr!=null&&Lr(Or,"checked",Fr,!1)}function gi(Or,Fr){ui(Or,Fr);var Zr=In(Fr.value),yn=Fr.type;if(Zr!=null)yn==="number"?(Zr===0&&Or.value===""||Or.value!=Zr)&&(Or.value=""+Zr):Or.value!==""+Zr&&(Or.value=""+Zr);else if(yn==="submit"||yn==="reset"){Or.removeAttribute("value");return}Fr.hasOwnProperty("value")?Ci(Or,Fr.type,Zr):Fr.hasOwnProperty("defaultValue")&&Ci(Or,Fr.type,In(Fr.defaultValue)),Fr.checked==null&&Fr.defaultChecked!=null&&(Or.defaultChecked=!!Fr.defaultChecked)}function di(Or,Fr,Zr){if(Fr.hasOwnProperty("value")||Fr.hasOwnProperty("defaultValue")){var yn=Fr.type;if(!(yn!=="submit"&&yn!=="reset"||Fr.value!==void 0&&Fr.value!==null))return;Fr=""+Or._wrapperState.initialValue,Zr||Fr===Or.value||(Or.value=Fr),Or.defaultValue=Fr}Zr=Or.name,Zr!==""&&(Or.name=""),Or.defaultChecked=!!Or._wrapperState.initialChecked,Zr!==""&&(Or.name=Zr)}function Ci(Or,Fr,Zr){(Fr!=="number"||Sn(Or.ownerDocument)!==Or)&&(Zr==null?Or.defaultValue=""+Or._wrapperState.initialValue:Or.defaultValue!==""+Zr&&(Or.defaultValue=""+Zr))}var yi=Array.isArray;function li(Or,Fr,Zr,yn){if(Or=Or.options,Fr){Fr={};for(var Pn=0;Pn"+Fr.valueOf().toString()+"",Fr=Zt.firstChild;Or.firstChild;)Or.removeChild(Or.firstChild);for(;Fr.firstChild;)Or.appendChild(Fr.firstChild)}});function ei(Or,Fr){if(Fr){var Zr=Or.firstChild;if(Zr&&Zr===Or.lastChild&&Zr.nodeType===3){Zr.nodeValue=Fr;return}}Or.textContent=Fr}var zn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},gn=["Webkit","ms","Moz","O"];Object.keys(zn).forEach(function(Or){gn.forEach(function(Fr){Fr=Fr+Or.charAt(0).toUpperCase()+Or.substring(1),zn[Fr]=zn[Or]})});function xn(Or,Fr,Zr){return Fr==null||typeof Fr=="boolean"||Fr===""?"":Zr||typeof Fr!="number"||Fr===0||zn.hasOwnProperty(Or)&&zn[Or]?(""+Fr).trim():Fr+"px"}function Hn(Or,Fr){Or=Or.style;for(var Zr in Fr)if(Fr.hasOwnProperty(Zr)){var yn=Zr.indexOf("--")===0,Pn=xn(Zr,Fr[Zr],yn);Zr==="float"&&(Zr="cssFloat"),yn?Or.setProperty(Zr,Pn):Or[Zr]=Pn}}var Ln=zr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ti(Or,Fr){if(Fr){if(Ln[Or]&&(Fr.children!=null||Fr.dangerouslySetInnerHTML!=null))throw Error(ae(137,Or));if(Fr.dangerouslySetInnerHTML!=null){if(Fr.children!=null)throw Error(ae(60));if(typeof Fr.dangerouslySetInnerHTML!="object"||!("__html"in Fr.dangerouslySetInnerHTML))throw Error(ae(61))}if(Fr.style!=null&&typeof Fr.style!="object")throw Error(ae(62))}}function oi(Or,Fr){if(Or.indexOf("-")===-1)return typeof Fr.is=="string";switch(Or){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ei=null;function Ri(Or){return Or=Or.target||Or.srcElement||window,Or.correspondingUseElement&&(Or=Or.correspondingUseElement),Or.nodeType===3?Or.parentNode:Or}var Oo=null,Ui=null,io=null;function So(Or){if(Or=Hc(Or)){if(typeof Oo!="function")throw Error(ae(280));var Fr=Or.stateNode;Fr&&(Fr=wl(Fr),Oo(Or.stateNode,Or.type,Fr))}}function $o(Or){Ui?io?io.push(Or):io=[Or]:Ui=Or}function mo(){if(Ui){var Or=Ui,Fr=io;if(io=Ui=null,So(Or),Fr)for(Or=0;Or>>=0,Or===0?32:31-(Si(Or)/Ti|0)|0}var To=64,Mo=4194304;function Co(Or){switch(Or&-Or){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return Or&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return Or&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return Or}}function Fo(Or,Fr){var Zr=Or.pendingLanes;if(Zr===0)return 0;var yn=0,Pn=Or.suspendedLanes,Wn=Or.pingedLanes,si=Zr&268435455;if(si!==0){var Ii=si&~Pn;Ii!==0?yn=Co(Ii):(Wn&=si,Wn!==0&&(yn=Co(Wn)))}else si=Zr&~Pn,si!==0?yn=Co(si):Wn!==0&&(yn=Co(Wn));if(yn===0)return 0;if(Fr!==0&&Fr!==yn&&(Fr&Pn)===0&&(Pn=yn&-yn,Wn=Fr&-Fr,Pn>=Wn||Pn===16&&(Wn&4194240)!==0))return Fr;if((yn&4)!==0&&(yn|=Zr&16),Fr=Or.entangledLanes,Fr!==0)for(Or=Or.entanglements,Fr&=yn;0Zr;Zr++)Fr.push(Or);return Fr}function Go(Or,Fr,Zr){Or.pendingLanes|=Fr,Fr!==536870912&&(Or.suspendedLanes=0,Or.pingedLanes=0),Or=Or.eventTimes,Fr=31-mi(Fr),Or[Fr]=Zr}function Vo(Or,Fr){var Zr=Or.pendingLanes&~Fr;Or.pendingLanes=Fr,Or.suspendedLanes=0,Or.pingedLanes=0,Or.expiredLanes&=Fr,Or.mutableReadLanes&=Fr,Or.entangledLanes&=Fr,Fr=Or.entanglements;var yn=Or.eventTimes;for(Or=Or.expirationTimes;0=Fc),B$=String.fromCharCode(32),k$=!1;function F$(Or,Fr){switch(Or){case"keyup":return hv.indexOf(Fr.keyCode)!==-1;case"keydown":return Fr.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function L$(Or){return Or=Or.detail,typeof Or=="object"&&"data"in Or?Or.data:null}var vc=!1;function pv(Or,Fr){switch(Or){case"compositionend":return L$(Fr);case"keypress":return Fr.which!==32?null:(k$=!0,B$);case"textInput":return Or=Fr.data,Or===B$&&k$?null:Or;default:return null}}function yv(Or,Fr){if(vc)return Or==="compositionend"||!hf&&F$(Or,Fr)?(Or=Ca(),Ka=Ba=da=null,vc=!1,Or):null;switch(Or){case"paste":return null;case"keypress":if(!(Fr.ctrlKey||Fr.altKey||Fr.metaKey)||Fr.ctrlKey&&Fr.altKey){if(Fr.char&&1=Fr)return{node:Zr,offset:Fr-Or};Or=yn}e:{for(;Zr;){if(Zr.nextSibling){Zr=Zr.nextSibling;break e}Zr=Zr.parentNode}Zr=void 0}Zr=V$(Zr)}}function H$(Or,Fr){return Or&&Fr?Or===Fr?!0:Or&&Or.nodeType===3?!1:Fr&&Fr.nodeType===3?H$(Or,Fr.parentNode):"contains"in Or?Or.contains(Fr):Or.compareDocumentPosition?!!(Or.compareDocumentPosition(Fr)&16):!1:!1}function z$(){for(var Or=window,Fr=Sn();Fr instanceof Or.HTMLIFrameElement;){try{var Zr=typeof Fr.contentWindow.location.href=="string"}catch{Zr=!1}if(Zr)Or=Fr.contentWindow;else break;Fr=Sn(Or.document)}return Fr}function yf(Or){var Fr=Or&&Or.nodeName&&Or.nodeName.toLowerCase();return Fr&&(Fr==="input"&&(Or.type==="text"||Or.type==="search"||Or.type==="tel"||Or.type==="url"||Or.type==="password")||Fr==="textarea"||Or.contentEditable==="true")}function Ov(Or){var Fr=z$(),Zr=Or.focusedElem,yn=Or.selectionRange;if(Fr!==Zr&&Zr&&Zr.ownerDocument&&H$(Zr.ownerDocument.documentElement,Zr)){if(yn!==null&&yf(Zr)){if(Fr=yn.start,Or=yn.end,Or===void 0&&(Or=Fr),"selectionStart"in Zr)Zr.selectionStart=Fr,Zr.selectionEnd=Math.min(Or,Zr.value.length);else if(Or=(Fr=Zr.ownerDocument||document)&&Fr.defaultView||window,Or.getSelection){Or=Or.getSelection();var Pn=Zr.textContent.length,Wn=Math.min(yn.start,Pn);yn=yn.end===void 0?Wn:Math.min(yn.end,Pn),!Or.extend&&Wn>yn&&(Pn=yn,yn=Wn,Wn=Pn),Pn=W$(Zr,Wn);var si=W$(Zr,yn);Pn&&si&&(Or.rangeCount!==1||Or.anchorNode!==Pn.node||Or.anchorOffset!==Pn.offset||Or.focusNode!==si.node||Or.focusOffset!==si.offset)&&(Fr=Fr.createRange(),Fr.setStart(Pn.node,Pn.offset),Or.removeAllRanges(),Wn>yn?(Or.addRange(Fr),Or.extend(si.node,si.offset)):(Fr.setEnd(si.node,si.offset),Or.addRange(Fr)))}}for(Fr=[],Or=Zr;Or=Or.parentNode;)Or.nodeType===1&&Fr.push({element:Or,left:Or.scrollLeft,top:Or.scrollTop});for(typeof Zr.focus=="function"&&Zr.focus(),Zr=0;Zr=document.documentMode,pc=null,gf=null,Kc=null,mf=!1;function Y$(Or,Fr,Zr){var yn=Zr.window===Zr?Zr.document:Zr.nodeType===9?Zr:Zr.ownerDocument;mf||pc==null||pc!==Sn(yn)||(yn=pc,"selectionStart"in yn&&yf(yn)?yn={start:yn.selectionStart,end:yn.selectionEnd}:(yn=(yn.ownerDocument&&yn.ownerDocument.defaultView||window).getSelection(),yn={anchorNode:yn.anchorNode,anchorOffset:yn.anchorOffset,focusNode:yn.focusNode,focusOffset:yn.focusOffset}),Kc&&xc(Kc,yn)||(Kc=yn,yn=bl(gf,"onSelect"),0Ec||(Or.current=Pf[Ec],Pf[Ec]=null,Ec--)}function ya(Or,Fr){Ec++,Pf[Ec]=Or.current,Or.current=Fr}var Lu={},qa=Fu(Lu),Ja=Fu(!1),rc=Lu;function Ac(Or,Fr){var Zr=Or.type.contextTypes;if(!Zr)return Lu;var yn=Or.stateNode;if(yn&&yn.__reactInternalMemoizedUnmaskedChildContext===Fr)return yn.__reactInternalMemoizedMaskedChildContext;var Pn={},Wn;for(Wn in Zr)Pn[Wn]=Fr[Wn];return yn&&(Or=Or.stateNode,Or.__reactInternalMemoizedUnmaskedChildContext=Fr,Or.__reactInternalMemoizedMaskedChildContext=Pn),Pn}function Xa(Or){return Or=Or.childContextTypes,Or!=null}function _l(){ma(Ja),ma(qa)}function dd(Or,Fr,Zr){if(qa.current!==Lu)throw Error(ae(168));ya(qa,Fr),ya(Ja,Zr)}function hd(Or,Fr,Zr){var yn=Or.stateNode;if(Fr=Fr.childContextTypes,typeof yn.getChildContext!="function")return Zr;yn=yn.getChildContext();for(var Pn in yn)if(!(Pn in Fr))throw Error(ae(108,Nn(Or)||"Unknown",Pn));return zr({},Zr,yn)}function Sl(Or){return Or=(Or=Or.stateNode)&&Or.__reactInternalMemoizedMergedChildContext||Lu,rc=qa.current,ya(qa,Or),ya(Ja,Ja.current),!0}function vd(Or,Fr,Zr){var yn=Or.stateNode;if(!yn)throw Error(ae(169));Zr?(Or=hd(Or,Fr,rc),yn.__reactInternalMemoizedMergedChildContext=Or,ma(Ja),ma(qa),ya(qa,Or)):ma(Ja),ya(Ja,Zr)}var Iu=null,Ol=!1,Cf=!1;function pd(Or){Iu===null?Iu=[Or]:Iu.push(Or)}function Bv(Or){Ol=!0,pd(Or)}function Uu(){if(!Cf&&Iu!==null){Cf=!0;var Or=0,Fr=Do;try{var Zr=Iu;for(Do=1;Or>=si,Pn-=si,Tu=1<<32-mi(Fr)+Pn|Zr<aa?(Da=na,na=null):Da=na.sibling;var ha=Ro(po,na,bo[aa],Lo);if(ha===null){na===null&&(na=Da);break}Or&&na&&ha.alternate===null&&Fr(po,na),no=Wn(ha,no,aa),ta===null?Zo=ha:ta.sibling=ha,ta=ha,na=Da}if(aa===bo.length)return Zr(po,na),ba&&nc(po,aa),Zo;if(na===null){for(;aaaa?(Da=na,na=null):Da=na.sibling;var Yu=Ro(po,na,ha.value,Lo);if(Yu===null){na===null&&(na=Da);break}Or&&na&&Yu.alternate===null&&Fr(po,na),no=Wn(Yu,no,aa),ta===null?Zo=Yu:ta.sibling=Yu,ta=Yu,na=Da}if(ha.done)return Zr(po,na),ba&&nc(po,aa),Zo;if(na===null){for(;!ha.done;aa++,ha=bo.next())ha=Bo(po,ha.value,Lo),ha!==null&&(no=Wn(ha,no,aa),ta===null?Zo=ha:ta.sibling=ha,ta=ha);return ba&&nc(po,aa),Zo}for(na=yn(po,na);!ha.done;aa++,ha=bo.next())ha=zo(na,po,aa,ha.value,Lo),ha!==null&&(Or&&ha.alternate!==null&&na.delete(ha.key===null?aa:ha.key),no=Wn(ha,no,aa),ta===null?Zo=ha:ta.sibling=ha,ta=ha);return Or&&na.forEach(function(pp){return Fr(po,pp)}),ba&&nc(po,aa),Zo}function Ia(po,no,bo,Lo){if(typeof bo=="object"&&bo!==null&&bo.type===Qr&&bo.key===null&&(bo=bo.props.children),typeof bo=="object"&&bo!==null){switch(bo.$$typeof){case Gr:e:{for(var Zo=bo.key,ta=no;ta!==null;){if(ta.key===Zo){if(Zo=bo.type,Zo===Qr){if(ta.tag===7){Zr(po,ta.sibling),no=Pn(ta,bo.props.children),no.return=po,po=no;break e}}else if(ta.elementType===Zo||typeof Zo=="object"&&Zo!==null&&Zo.$$typeof===xr&&Cd(Zo)===ta.type){Zr(po,ta.sibling),no=Pn(ta,bo.props),no.ref=zc(po,ta,bo),no.return=po,po=no;break e}Zr(po,ta);break}else Fr(po,ta);ta=ta.sibling}bo.type===Qr?(no=fc(bo.props.children,po.mode,Lo,bo.key),no.return=po,po=no):(Lo=ef(bo.type,bo.key,bo.props,null,po.mode,Lo),Lo.ref=zc(po,no,bo),Lo.return=po,po=Lo)}return si(po);case Ur:e:{for(ta=bo.key;no!==null;){if(no.key===ta)if(no.tag===4&&no.stateNode.containerInfo===bo.containerInfo&&no.stateNode.implementation===bo.implementation){Zr(po,no.sibling),no=Pn(no,bo.children||[]),no.return=po,po=no;break e}else{Zr(po,no);break}else Fr(po,no);no=no.sibling}no=I$(bo,po.mode,Lo),no.return=po,po=no}return si(po);case xr:return ta=bo._init,Ia(po,no,ta(bo._payload),Lo)}if(yi(bo))return Xo(po,no,bo,Lo);if(Xr(bo))return Qo(po,no,bo,Lo);Dl(po,bo)}return typeof bo=="string"&&bo!==""||typeof bo=="number"?(bo=""+bo,no!==null&&no.tag===6?(Zr(po,no.sibling),no=Pn(no,bo),no.return=po,po=no):(Zr(po,no),no=O$(bo,po.mode,Lo),no.return=po,po=no),si(po)):Zr(po,no)}return Ia}var Pc=Rd(!0),Nd=Rd(!1),Yc={},wu=Fu(Yc),Jc=Fu(Yc),Xc=Fu(Yc);function oc(Or){if(Or===Yc)throw Error(ae(174));return Or}function Gf(Or,Fr){switch(ya(Xc,Fr),ya(Jc,Or),ya(wu,Yc),Or=Fr.nodeType,Or){case 9:case 11:Fr=(Fr=Fr.documentElement)?Fr.namespaceURI:Bt(null,"");break;default:Or=Or===8?Fr.parentNode:Fr,Fr=Or.namespaceURI||null,Or=Or.tagName,Fr=Bt(Fr,Or)}ma(wu),ya(wu,Fr)}function Cc(){ma(wu),ma(Jc),ma(Xc)}function jd(Or){oc(Xc.current);var Fr=oc(wu.current),Zr=Bt(Fr,Or.type);Fr!==Zr&&(ya(Jc,Or),ya(wu,Zr))}function Vf(Or){Jc.current===Or&&(ma(wu),ma(Jc))}var Aa=Fu(0);function Bl(Or){for(var Fr=Or;Fr!==null;){if(Fr.tag===13){var Zr=Fr.memoizedState;if(Zr!==null&&(Zr=Zr.dehydrated,Zr===null||Zr.data==="$?"||Zr.data==="$!"))return Fr}else if(Fr.tag===19&&Fr.memoizedProps.revealOrder!==void 0){if((Fr.flags&128)!==0)return Fr}else if(Fr.child!==null){Fr.child.return=Fr,Fr=Fr.child;continue}if(Fr===Or)break;for(;Fr.sibling===null;){if(Fr.return===null||Fr.return===Or)return null;Fr=Fr.return}Fr.sibling.return=Fr.return,Fr=Fr.sibling}return null}var Wf=[];function Hf(){for(var Or=0;OrZr?Zr:4,Or(!0);var yn=zf.transition;zf.transition={};try{Or(!1),Fr()}finally{Do=Zr,zf.transition=yn}}function Xd(){return uu().memoizedState}function Uv(Or,Fr,Zr){var yn=Wu(Or);if(Zr={lane:yn,action:Zr,hasEagerState:!1,eagerState:null,next:null},Qd(Or))Zd(Fr,Zr);else if(Zr=Ad(Or,Fr,Zr,yn),Zr!==null){var Pn=za();gu(Zr,Or,yn,Pn),eh(Zr,Fr,yn)}}function xv(Or,Fr,Zr){var yn=Wu(Or),Pn={lane:yn,action:Zr,hasEagerState:!1,eagerState:null,next:null};if(Qd(Or))Zd(Fr,Pn);else{var Wn=Or.alternate;if(Or.lanes===0&&(Wn===null||Wn.lanes===0)&&(Wn=Fr.lastRenderedReducer,Wn!==null))try{var si=Fr.lastRenderedState,Ii=Wn(si,Zr);if(Pn.hasEagerState=!0,Pn.eagerState=Ii,du(Ii,si)){var Li=Fr.interleaved;Li===null?(Pn.next=Pn,Uf(Fr)):(Pn.next=Li.next,Li.next=Pn),Fr.interleaved=Pn;return}}catch{}finally{}Zr=Ad(Or,Fr,Pn,yn),Zr!==null&&(Pn=za(),gu(Zr,Or,yn,Pn),eh(Zr,Fr,yn))}}function Qd(Or){var Fr=Or.alternate;return Or===wa||Fr!==null&&Fr===wa}function Zd(Or,Fr){Qc=Fl=!0;var Zr=Or.pending;Zr===null?Fr.next=Fr:(Fr.next=Zr.next,Zr.next=Fr),Or.pending=Fr}function eh(Or,Fr,Zr){if((Zr&4194240)!==0){var yn=Fr.lanes;yn&=Or.pendingLanes,Zr|=yn,Fr.lanes=Zr,ra(Or,Zr)}}var xl={readContext:su,useCallback:Ga,useContext:Ga,useEffect:Ga,useImperativeHandle:Ga,useInsertionEffect:Ga,useLayoutEffect:Ga,useMemo:Ga,useReducer:Ga,useRef:Ga,useState:Ga,useDebugValue:Ga,useDeferredValue:Ga,useTransition:Ga,useMutableSource:Ga,useSyncExternalStore:Ga,useId:Ga,unstable_isNewReconciler:!1},Kv={readContext:su,useCallback:function(Or,Fr){return _u().memoizedState=[Or,Fr===void 0?null:Fr],Or},useContext:su,useEffect:qd,useImperativeHandle:function(Or,Fr,Zr){return Zr=Zr!=null?Zr.concat([Or]):null,Ll(4194308,4,Wd.bind(null,Fr,Or),Zr)},useLayoutEffect:function(Or,Fr){return Ll(4194308,4,Or,Fr)},useInsertionEffect:function(Or,Fr){return Ll(4,2,Or,Fr)},useMemo:function(Or,Fr){var Zr=_u();return Fr=Fr===void 0?null:Fr,Or=Or(),Zr.memoizedState=[Or,Fr],Or},useReducer:function(Or,Fr,Zr){var yn=_u();return Fr=Zr!==void 0?Zr(Fr):Fr,yn.memoizedState=yn.baseState=Fr,Or={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Or,lastRenderedState:Fr},yn.queue=Or,Or=Or.dispatch=Uv.bind(null,wa,Or),[yn.memoizedState,Or]},useRef:function(Or){var Fr=_u();return Or={current:Or},Fr.memoizedState=Or},useState:xd,useDebugValue:r$,useDeferredValue:function(Or){return _u().memoizedState=Or},useTransition:function(){var Or=xd(!1),Fr=Or[0];return Or=Lv.bind(null,Or[1]),_u().memoizedState=Or,[Fr,Or]},useMutableSource:function(){},useSyncExternalStore:function(Or,Fr,Zr){var yn=wa,Pn=_u();if(ba){if(Zr===void 0)throw Error(ae(407));Zr=Zr()}else{if(Zr=Fr(),Ma===null)throw Error(ae(349));(ac&30)!==0||Bd(yn,Fr,Zr)}Pn.memoizedState=Zr;var Wn={value:Zr,getSnapshot:Fr};return Pn.queue=Wn,qd(Fd.bind(null,yn,Wn,Or),[Or]),yn.flags|=2048,rl(9,kd.bind(null,yn,Wn,Zr,Fr),void 0,null),Zr},useId:function(){var Or=_u(),Fr=Ma.identifierPrefix;if(ba){var Zr=Pu,yn=Tu;Zr=(yn&~(1<<32-mi(yn)-1)).toString(32)+Zr,Fr=":"+Fr+"R"+Zr,Zr=Zc++,0<\/script>",Ar=Ar.removeChild(Ar.firstChild)):typeof yn.is=="string"?Ar=si.createElement(Zr,{is:yn.is}):(Ar=si.createElement(Zr),Zr==="select"&&(si=Ar,yn.multiple?si.multiple=!0:yn.size&&(si.size=yn.size))):Ar=si.createElementNS(Ar,Zr),Ar[Au]=Fr,Ar[Wc]=yn,yh(Ar,Fr,!1,!1),Fr.stateNode=Ar;e:{switch(si=oi(Zr,yn),Zr){case"dialog":ga("cancel",Ar),ga("close",Ar),Pn=yn;break;case"iframe":case"object":case"embed":ga("load",Ar),Pn=yn;break;case"video":case"audio":for(Pn=0;PnMc&&(Fr.flags|=128,yn=!0,tl(Wn,!1),Fr.lanes=4194304)}else{if(!yn)if(Ar=Bl(si),Ar!==null){if(Fr.flags|=128,yn=!0,Zr=Ar.updateQueue,Zr!==null&&(Fr.updateQueue=Zr,Fr.flags|=4),tl(Wn,!0),Wn.tail===null&&Wn.tailMode==="hidden"&&!si.alternate&&!ba)return Va(Fr),null}else 2*vo()-Wn.renderingStartTime>Mc&&Zr!==1073741824&&(Fr.flags|=128,yn=!0,tl(Wn,!1),Fr.lanes=4194304);Wn.isBackwards?(si.sibling=Fr.child,Fr.child=si):(Zr=Wn.last,Zr!==null?Zr.sibling=si:Fr.child=si,Wn.last=si)}return Wn.tail!==null?(Fr=Wn.tail,Wn.rendering=Fr,Wn.tail=Fr.sibling,Wn.renderingStartTime=vo(),Fr.sibling=null,Zr=Aa.current,ya(Aa,yn?Zr&1|2:Zr&1),Fr):(Va(Fr),null);case 22:case 23:return w$(),yn=Fr.memoizedState!==null,Ar!==null&&Ar.memoizedState!==null!==yn&&(Fr.flags|=8192),yn&&(Fr.mode&1)!==0?(nu&1073741824)!==0&&(Va(Fr),Fr.subtreeFlags&6&&(Fr.flags|=8192)):Va(Fr),null;case 24:return null;case 25:return null}throw Error(ae(156,Fr.tag))}function Jv(Ar,Fr){switch(Nf(Fr),Fr.tag){case 1:return Xa(Fr.type)&&_l(),Ar=Fr.flags,Ar&65536?(Fr.flags=Ar&-65537|128,Fr):null;case 3:return Cc(),ma(Ja),ma(qa),Hf(),Ar=Fr.flags,(Ar&65536)!==0&&(Ar&128)===0?(Fr.flags=Ar&-65537|128,Fr):null;case 5:return Vf(Fr),null;case 13:if(ma(Aa),Ar=Fr.memoizedState,Ar!==null&&Ar.dehydrated!==null){if(Fr.alternate===null)throw Error(ae(340));Oc()}return Ar=Fr.flags,Ar&65536?(Fr.flags=Ar&-65537|128,Fr):null;case 19:return ma(Aa),null;case 4:return Cc(),null;case 10:return Ff(Fr.type._context),null;case 22:case 23:return w$(),null;case 24:return null;default:return null}}var Gl=!1,Wa=!1,Xv=typeof WeakSet=="function"?WeakSet:Set,Jo=null;function Nc(Ar,Fr){var Zr=Ar.ref;if(Zr!==null)if(typeof Zr=="function")try{Zr(null)}catch(yn){Oa(Ar,Fr,yn)}else Zr.current=null}function f$(Ar,Fr,Zr){try{Zr()}catch(yn){Oa(Ar,Fr,yn)}}var bh=!1;function Qv(Ar,Fr){if(wf=Po,Ar=z$(),yf(Ar)){if("selectionStart"in Ar)var Zr={start:Ar.selectionStart,end:Ar.selectionEnd};else e:{Zr=(Zr=Ar.ownerDocument)&&Zr.defaultView||window;var yn=Zr.getSelection&&Zr.getSelection();if(yn&&yn.rangeCount!==0){Zr=yn.anchorNode;var Pn=yn.anchorOffset,Wn=yn.focusNode;yn=yn.focusOffset;try{Zr.nodeType,Wn.nodeType}catch{Zr=null;break e}var si=0,Ii=-1,Li=-1,Io=0,No=0,Bo=Ar,Ro=null;r:for(;;){for(var zo;Bo!==Zr||Pn!==0&&Bo.nodeType!==3||(Ii=si+Pn),Bo!==Wn||yn!==0&&Bo.nodeType!==3||(Li=si+yn),Bo.nodeType===3&&(si+=Bo.nodeValue.length),(zo=Bo.firstChild)!==null;)Ro=Bo,Bo=zo;for(;;){if(Bo===Ar)break r;if(Ro===Zr&&++Io===Pn&&(Ii=si),Ro===Wn&&++No===yn&&(Li=si),(zo=Bo.nextSibling)!==null)break;Bo=Ro,Ro=Bo.parentNode}Bo=zo}Zr=Ii===-1||Li===-1?null:{start:Ii,end:Li}}else Zr=null}Zr=Zr||{start:0,end:0}}else Zr=null;for(_f={focusedElem:Ar,selectionRange:Zr},Po=!1,Jo=Fr;Jo!==null;)if(Fr=Jo,Ar=Fr.child,(Fr.subtreeFlags&1028)!==0&&Ar!==null)Ar.return=Fr,Jo=Ar;else for(;Jo!==null;){Fr=Jo;try{var Xo=Fr.alternate;if((Fr.flags&1024)!==0)switch(Fr.tag){case 0:case 11:case 15:break;case 1:if(Xo!==null){var Qo=Xo.memoizedProps,Ia=Xo.memoizedState,po=Fr.stateNode,no=po.getSnapshotBeforeUpdate(Fr.elementType===Fr.type?Qo:vu(Fr.type,Qo),Ia);po.__reactInternalSnapshotBeforeUpdate=no}break;case 3:var bo=Fr.stateNode.containerInfo;bo.nodeType===1?bo.textContent="":bo.nodeType===9&&bo.documentElement&&bo.removeChild(bo.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ae(163))}}catch(Lo){Oa(Fr,Fr.return,Lo)}if(Ar=Fr.sibling,Ar!==null){Ar.return=Fr.return,Jo=Ar;break}Jo=Fr.return}return Xo=bh,bh=!1,Xo}function nl(Ar,Fr,Zr){var yn=Fr.updateQueue;if(yn=yn!==null?yn.lastEffect:null,yn!==null){var Pn=yn=yn.next;do{if((Pn.tag&Ar)===Ar){var Wn=Pn.destroy;Pn.destroy=void 0,Wn!==void 0&&f$(Fr,Zr,Wn)}Pn=Pn.next}while(Pn!==yn)}}function Vl(Ar,Fr){if(Fr=Fr.updateQueue,Fr=Fr!==null?Fr.lastEffect:null,Fr!==null){var Zr=Fr=Fr.next;do{if((Zr.tag&Ar)===Ar){var yn=Zr.create;Zr.destroy=yn()}Zr=Zr.next}while(Zr!==Fr)}}function $$(Ar){var Fr=Ar.ref;if(Fr!==null){var Zr=Ar.stateNode;switch(Ar.tag){case 5:Ar=Zr;break;default:Ar=Zr}typeof Fr=="function"?Fr(Ar):Fr.current=Ar}}function Eh(Ar){var Fr=Ar.alternate;Fr!==null&&(Ar.alternate=null,Eh(Fr)),Ar.child=null,Ar.deletions=null,Ar.sibling=null,Ar.tag===5&&(Fr=Ar.stateNode,Fr!==null&&(delete Fr[Au],delete Fr[Wc],delete Fr[Tf],delete Fr[Mv],delete Fr[Dv])),Ar.stateNode=null,Ar.return=null,Ar.dependencies=null,Ar.memoizedProps=null,Ar.memoizedState=null,Ar.pendingProps=null,Ar.stateNode=null,Ar.updateQueue=null}function Ah(Ar){return Ar.tag===5||Ar.tag===3||Ar.tag===4}function wh(Ar){e:for(;;){for(;Ar.sibling===null;){if(Ar.return===null||Ah(Ar.return))return null;Ar=Ar.return}for(Ar.sibling.return=Ar.return,Ar=Ar.sibling;Ar.tag!==5&&Ar.tag!==6&&Ar.tag!==18;){if(Ar.flags&2||Ar.child===null||Ar.tag===4)continue e;Ar.child.return=Ar,Ar=Ar.child}if(!(Ar.flags&2))return Ar.stateNode}}function d$(Ar,Fr,Zr){var yn=Ar.tag;if(yn===5||yn===6)Ar=Ar.stateNode,Fr?Zr.nodeType===8?Zr.parentNode.insertBefore(Ar,Fr):Zr.insertBefore(Ar,Fr):(Zr.nodeType===8?(Fr=Zr.parentNode,Fr.insertBefore(Ar,Zr)):(Fr=Zr,Fr.appendChild(Ar)),Zr=Zr._reactRootContainer,Zr!=null||Fr.onclick!==null||(Fr.onclick=Al));else if(yn!==4&&(Ar=Ar.child,Ar!==null))for(d$(Ar,Fr,Zr),Ar=Ar.sibling;Ar!==null;)d$(Ar,Fr,Zr),Ar=Ar.sibling}function h$(Ar,Fr,Zr){var yn=Ar.tag;if(yn===5||yn===6)Ar=Ar.stateNode,Fr?Zr.insertBefore(Ar,Fr):Zr.appendChild(Ar);else if(yn!==4&&(Ar=Ar.child,Ar!==null))for(h$(Ar,Fr,Zr),Ar=Ar.sibling;Ar!==null;)h$(Ar,Fr,Zr),Ar=Ar.sibling}var La=null,pu=!1;function qu(Ar,Fr,Zr){for(Zr=Zr.child;Zr!==null;)_h(Ar,Fr,Zr),Zr=Zr.sibling}function _h(Ar,Fr,Zr){if(ci&&typeof ci.onCommitFiberUnmount=="function")try{ci.onCommitFiberUnmount(ro,Zr)}catch{}switch(Zr.tag){case 5:Wa||Nc(Zr,Fr);case 6:var yn=La,Pn=pu;La=null,qu(Ar,Fr,Zr),La=yn,pu=Pn,La!==null&&(pu?(Ar=La,Zr=Zr.stateNode,Ar.nodeType===8?Ar.parentNode.removeChild(Zr):Ar.removeChild(Zr)):La.removeChild(Zr.stateNode));break;case 18:La!==null&&(pu?(Ar=La,Zr=Zr.stateNode,Ar.nodeType===8?If(Ar.parentNode,Zr):Ar.nodeType===1&&If(Ar,Zr),wi(Ar)):If(La,Zr.stateNode));break;case 4:yn=La,Pn=pu,La=Zr.stateNode.containerInfo,pu=!0,qu(Ar,Fr,Zr),La=yn,pu=Pn;break;case 0:case 11:case 14:case 15:if(!Wa&&(yn=Zr.updateQueue,yn!==null&&(yn=yn.lastEffect,yn!==null))){Pn=yn=yn.next;do{var Wn=Pn,si=Wn.destroy;Wn=Wn.tag,si!==void 0&&((Wn&2)!==0||(Wn&4)!==0)&&f$(Zr,Fr,si),Pn=Pn.next}while(Pn!==yn)}qu(Ar,Fr,Zr);break;case 1:if(!Wa&&(Nc(Zr,Fr),yn=Zr.stateNode,typeof yn.componentWillUnmount=="function"))try{yn.props=Zr.memoizedProps,yn.state=Zr.memoizedState,yn.componentWillUnmount()}catch(Ii){Oa(Zr,Fr,Ii)}qu(Ar,Fr,Zr);break;case 21:qu(Ar,Fr,Zr);break;case 22:Zr.mode&1?(Wa=(yn=Wa)||Zr.memoizedState!==null,qu(Ar,Fr,Zr),Wa=yn):qu(Ar,Fr,Zr);break;default:qu(Ar,Fr,Zr)}}function Sh(Ar){var Fr=Ar.updateQueue;if(Fr!==null){Ar.updateQueue=null;var Zr=Ar.stateNode;Zr===null&&(Zr=Ar.stateNode=new Xv),Fr.forEach(function(yn){var Pn=sp.bind(null,Ar,yn);Zr.has(yn)||(Zr.add(yn),yn.then(Pn,Pn))})}}function yu(Ar,Fr){var Zr=Fr.deletions;if(Zr!==null)for(var yn=0;ynPn&&(Pn=si),yn&=~Wn}if(yn=Pn,yn=vo()-yn,yn=(120>yn?120:480>yn?480:1080>yn?1080:1920>yn?1920:3e3>yn?3e3:4320>yn?4320:1960*ep(yn/1960))-yn,10Ar?16:Ar,Vu===null)var yn=!1;else{if(Ar=Vu,Vu=null,Jl=0,($a&6)!==0)throw Error(ae(331));var Pn=$a;for($a|=4,Jo=Ar.current;Jo!==null;){var Wn=Jo,si=Wn.child;if((Jo.flags&16)!==0){var Ii=Wn.deletions;if(Ii!==null){for(var Li=0;Livo()-y$?cc(Ar,0):p$|=Zr),eu(Ar,Fr)}function Fh(Ar,Fr){Fr===0&&((Ar.mode&1)===0?Fr=1:(Fr=Mo,Mo<<=1,(Mo&130023424)===0&&(Mo=4194304)));var Zr=za();Ar=Cu(Ar,Fr),Ar!==null&&(Go(Ar,Fr,Zr),eu(Ar,Zr))}function ap(Ar){var Fr=Ar.memoizedState,Zr=0;Fr!==null&&(Zr=Fr.retryLane),Fh(Ar,Zr)}function sp(Ar,Fr){var Zr=0;switch(Ar.tag){case 13:var yn=Ar.stateNode,Pn=Ar.memoizedState;Pn!==null&&(Zr=Pn.retryLane);break;case 19:yn=Ar.stateNode;break;default:throw Error(ae(314))}yn!==null&&yn.delete(Fr),Fh(Ar,Zr)}var Lh;Lh=function(Ar,Fr,Zr){if(Ar!==null)if(Ar.memoizedProps!==Fr.pendingProps||Ja.current)Qa=!0;else{if((Ar.lanes&Zr)===0&&(Fr.flags&128)===0)return Qa=!1,zv(Ar,Fr,Zr);Qa=(Ar.flags&131072)!==0}else Qa=!1,ba&&(Fr.flags&1048576)!==0&&yd(Fr,Tl,Fr.index);switch(Fr.lanes=0,Fr.tag){case 2:var yn=Fr.type;ql(Ar,Fr),Ar=Fr.pendingProps;var Pn=Ac(Fr,qa.current);Tc(Fr,Zr),Pn=Jf(null,Fr,yn,Ar,Pn,Zr);var Wn=Xf();return Fr.flags|=1,typeof Pn=="object"&&Pn!==null&&typeof Pn.render=="function"&&Pn.$$typeof===void 0?(Fr.tag=1,Fr.memoizedState=null,Fr.updateQueue=null,Xa(yn)?(Wn=!0,Sl(Fr)):Wn=!1,Fr.memoizedState=Pn.state!==null&&Pn.state!==void 0?Pn.state:null,xf(Fr),Pn.updater=Ml,Fr.stateNode=Pn,Pn._reactInternals=Fr,qf(Fr,yn,Ar,Zr),Fr=o$(null,Fr,yn,!0,Wn,Zr)):(Fr.tag=0,ba&&Wn&&Rf(Fr),Ha(null,Fr,Pn,Zr),Fr=Fr.child),Fr;case 16:yn=Fr.elementType;e:{switch(ql(Ar,Fr),Ar=Fr.pendingProps,Pn=yn._init,yn=Pn(yn._payload),Fr.type=yn,Pn=Fr.tag=cp(yn),Ar=vu(yn,Ar),Pn){case 0:Fr=i$(null,Fr,yn,Ar,Zr);break e;case 1:Fr=fh(null,Fr,yn,Ar,Zr);break e;case 11:Fr=ah(null,Fr,yn,Ar,Zr);break e;case 14:Fr=sh(null,Fr,yn,vu(yn.type,Ar),Zr);break e}throw Error(ae(306,yn,""))}return Fr;case 0:return yn=Fr.type,Pn=Fr.pendingProps,Pn=Fr.elementType===yn?Pn:vu(yn,Pn),i$(Ar,Fr,yn,Pn,Zr);case 1:return yn=Fr.type,Pn=Fr.pendingProps,Pn=Fr.elementType===yn?Pn:vu(yn,Pn),fh(Ar,Fr,yn,Pn,Zr);case 3:e:{if($h(Fr),Ar===null)throw Error(ae(387));yn=Fr.pendingProps,Wn=Fr.memoizedState,Pn=Wn.element,wd(Ar,Fr),jl(Fr,yn,null,Zr);var si=Fr.memoizedState;if(yn=si.element,Wn.isDehydrated)if(Wn={element:yn,isDehydrated:!1,cache:si.cache,pendingSuspenseBoundaries:si.pendingSuspenseBoundaries,transitions:si.transitions},Fr.updateQueue.baseState=Wn,Fr.memoizedState=Wn,Fr.flags&256){Pn=Rc(Error(ae(423)),Fr),Fr=dh(Ar,Fr,yn,Zr,Pn);break e}else if(yn!==Pn){Pn=Rc(Error(ae(424)),Fr),Fr=dh(Ar,Fr,yn,Zr,Pn);break e}else for(tu=ku(Fr.stateNode.containerInfo.firstChild),ru=Fr,ba=!0,hu=null,Zr=Nd(Fr,null,yn,Zr),Fr.child=Zr;Zr;)Zr.flags=Zr.flags&-3|4096,Zr=Zr.sibling;else{if(Oc(),yn===Pn){Fr=Nu(Ar,Fr,Zr);break e}Ha(Ar,Fr,yn,Zr)}Fr=Fr.child}return Fr;case 5:return jd(Fr),Ar===null&&Mf(Fr),yn=Fr.type,Pn=Fr.pendingProps,Wn=Ar!==null?Ar.memoizedProps:null,si=Pn.children,Sf(yn,Pn)?si=null:Wn!==null&&Sf(yn,Wn)&&(Fr.flags|=32),lh(Ar,Fr),Ha(Ar,Fr,si,Zr),Fr.child;case 6:return Ar===null&&Mf(Fr),null;case 13:return hh(Ar,Fr,Zr);case 4:return Gf(Fr,Fr.stateNode.containerInfo),yn=Fr.pendingProps,Ar===null?Fr.child=Pc(Fr,null,yn,Zr):Ha(Ar,Fr,yn,Zr),Fr.child;case 11:return yn=Fr.type,Pn=Fr.pendingProps,Pn=Fr.elementType===yn?Pn:vu(yn,Pn),ah(Ar,Fr,yn,Pn,Zr);case 7:return Ha(Ar,Fr,Fr.pendingProps,Zr),Fr.child;case 8:return Ha(Ar,Fr,Fr.pendingProps.children,Zr),Fr.child;case 12:return Ha(Ar,Fr,Fr.pendingProps.children,Zr),Fr.child;case 10:e:{if(yn=Fr.type._context,Pn=Fr.pendingProps,Wn=Fr.memoizedProps,si=Pn.value,ya(Cl,yn._currentValue),yn._currentValue=si,Wn!==null)if(du(Wn.value,si)){if(Wn.children===Pn.children&&!Ja.current){Fr=Nu(Ar,Fr,Zr);break e}}else for(Wn=Fr.child,Wn!==null&&(Wn.return=Fr);Wn!==null;){var Ii=Wn.dependencies;if(Ii!==null){si=Wn.child;for(var Li=Ii.firstContext;Li!==null;){if(Li.context===yn){if(Wn.tag===1){Li=Ru(-1,Zr&-Zr),Li.tag=2;var Io=Wn.updateQueue;if(Io!==null){Io=Io.shared;var No=Io.pending;No===null?Li.next=Li:(Li.next=No.next,No.next=Li),Io.pending=Li}}Wn.lanes|=Zr,Li=Wn.alternate,Li!==null&&(Li.lanes|=Zr),Lf(Wn.return,Zr,Fr),Ii.lanes|=Zr;break}Li=Li.next}}else if(Wn.tag===10)si=Wn.type===Fr.type?null:Wn.child;else if(Wn.tag===18){if(si=Wn.return,si===null)throw Error(ae(341));si.lanes|=Zr,Ii=si.alternate,Ii!==null&&(Ii.lanes|=Zr),Lf(si,Zr,Fr),si=Wn.sibling}else si=Wn.child;if(si!==null)si.return=Wn;else for(si=Wn;si!==null;){if(si===Fr){si=null;break}if(Wn=si.sibling,Wn!==null){Wn.return=si.return,si=Wn;break}si=si.return}Wn=si}Ha(Ar,Fr,Pn.children,Zr),Fr=Fr.child}return Fr;case 9:return Pn=Fr.type,yn=Fr.pendingProps.children,Tc(Fr,Zr),Pn=su(Pn),yn=yn(Pn),Fr.flags|=1,Ha(Ar,Fr,yn,Zr),Fr.child;case 14:return yn=Fr.type,Pn=vu(yn,Fr.pendingProps),Pn=vu(yn.type,Pn),sh(Ar,Fr,yn,Pn,Zr);case 15:return uh(Ar,Fr,Fr.type,Fr.pendingProps,Zr);case 17:return yn=Fr.type,Pn=Fr.pendingProps,Pn=Fr.elementType===yn?Pn:vu(yn,Pn),ql(Ar,Fr),Fr.tag=1,Xa(yn)?(Ar=!0,Sl(Fr)):Ar=!1,Tc(Fr,Zr),Td(Fr,yn,Pn),qf(Fr,yn,Pn,Zr),o$(null,Fr,yn,!0,Ar,Zr);case 19:return ph(Ar,Fr,Zr);case 22:return ch(Ar,Fr,Zr)}throw Error(ae(156,Fr.tag))};function Uh(Ar,Fr){return oo(Ar,Fr)}function up(Ar,Fr,Zr,yn){this.tag=Ar,this.key=Zr,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=Fr,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=yn,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lu(Ar,Fr,Zr,yn){return new up(Ar,Fr,Zr,yn)}function S$(Ar){return Ar=Ar.prototype,!(!Ar||!Ar.isReactComponent)}function cp(Ar){if(typeof Ar=="function")return S$(Ar)?1:0;if(Ar!=null){if(Ar=Ar.$$typeof,Ar===Qt)return 11;if(Ar===kr)return 14}return 2}function zu(Ar,Fr){var Zr=Ar.alternate;return Zr===null?(Zr=lu(Ar.tag,Fr,Ar.key,Ar.mode),Zr.elementType=Ar.elementType,Zr.type=Ar.type,Zr.stateNode=Ar.stateNode,Zr.alternate=Ar,Ar.alternate=Zr):(Zr.pendingProps=Fr,Zr.type=Ar.type,Zr.flags=0,Zr.subtreeFlags=0,Zr.deletions=null),Zr.flags=Ar.flags&14680064,Zr.childLanes=Ar.childLanes,Zr.lanes=Ar.lanes,Zr.child=Ar.child,Zr.memoizedProps=Ar.memoizedProps,Zr.memoizedState=Ar.memoizedState,Zr.updateQueue=Ar.updateQueue,Fr=Ar.dependencies,Zr.dependencies=Fr===null?null:{lanes:Fr.lanes,firstContext:Fr.firstContext},Zr.sibling=Ar.sibling,Zr.index=Ar.index,Zr.ref=Ar.ref,Zr}function ef(Ar,Fr,Zr,yn,Pn,Wn){var si=2;if(yn=Ar,typeof Ar=="function")S$(Ar)&&(si=1);else if(typeof Ar=="string")si=5;else e:switch(Ar){case Qr:return fc(Zr.children,Pn,Wn,Fr);case vn:si=8,Pn|=8;break;case Yt:return Ar=lu(12,Zr,Fr,Pn|2),Ar.elementType=Yt,Ar.lanes=Wn,Ar;case Kr:return Ar=lu(13,Zr,Fr,Pn),Ar.elementType=Kr,Ar.lanes=Wn,Ar;case be:return Ar=lu(19,Zr,Fr,Pn),Ar.elementType=be,Ar.lanes=Wn,Ar;case Wr:return rf(Zr,Pn,Wn,Fr);default:if(typeof Ar=="object"&&Ar!==null)switch(Ar.$$typeof){case fn:si=10;break e;case Xt:si=9;break e;case Qt:si=11;break e;case kr:si=14;break e;case xr:si=16,yn=null;break e}throw Error(ae(130,Ar==null?Ar:typeof Ar,""))}return Fr=lu(si,Zr,Fr,Pn),Fr.elementType=Ar,Fr.type=yn,Fr.lanes=Wn,Fr}function fc(Ar,Fr,Zr,yn){return Ar=lu(7,Ar,yn,Fr),Ar.lanes=Zr,Ar}function rf(Ar,Fr,Zr,yn){return Ar=lu(22,Ar,yn,Fr),Ar.elementType=Wr,Ar.lanes=Zr,Ar.stateNode={isHidden:!1},Ar}function O$(Ar,Fr,Zr){return Ar=lu(6,Ar,null,Fr),Ar.lanes=Zr,Ar}function I$(Ar,Fr,Zr){return Fr=lu(4,Ar.children!==null?Ar.children:[],Ar.key,Fr),Fr.lanes=Zr,Fr.stateNode={containerInfo:Ar.containerInfo,pendingChildren:null,implementation:Ar.implementation},Fr}function lp(Ar,Fr,Zr,yn,Pn){this.tag=Fr,this.containerInfo=Ar,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Uo(0),this.expirationTimes=Uo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uo(0),this.identifierPrefix=yn,this.onRecoverableError=Pn,this.mutableSourceEagerHydrationData=null}function T$(Ar,Fr,Zr,yn,Pn,Wn,si,Ii,Li){return Ar=new lp(Ar,Fr,Zr,Ii,Li),Fr===1?(Fr=1,Wn===!0&&(Fr|=8)):Fr=0,Wn=lu(3,null,null,Fr),Ar.current=Wn,Wn.stateNode=Ar,Wn.memoizedState={element:yn,isDehydrated:Zr,cache:null,transitions:null,pendingSuspenseBoundaries:null},xf(Wn),Ar}function fp(Ar,Fr,Zr){var yn=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ie)}catch(ae){console.error(ae)}}ie(),k.exports=require_react_dom_production_min()}}),require_client=__commonJS$1({"node_modules/react-dom/client.js"(v){var k=require_react_dom();v.createRoot=k.createRoot,v.hydrateRoot=k.hydrateRoot}}),require_toggle_selection=__commonJS$1({"node_modules/toggle-selection/index.js"(v,k){k.exports=function(){var ie=document.getSelection();if(!ie.rangeCount)return function(){};for(var ae=document.activeElement,ce=[],fe=0;fe"u"){ye&&console.warn("unable to use e.clipboardData"),ye&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var jr=ae[pe.format]||ae.default;window.clipboardData.setData(jr,ve)}else ur.clipboardData.clearData(),ur.clipboardData.setData(pe.format,ve);pe.onCopy&&(ur.preventDefault(),pe.onCopy(ur.clipboardData))}),document.body.appendChild($r),cr.selectNodeContents($r),Br.addRange(cr);var Or=document.execCommand("copy");if(!Or)throw new Error("copy command was unsuccessful");Pr=!0}catch(ur){ye&&console.error("unable to copy using execCommand: ",ur),ye&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(pe.format||"text",ve),pe.onCopy&&pe.onCopy(window.clipboardData),Pr=!0}catch(jr){ye&&console.error("unable to copy using clipboardData: ",jr),ye&&console.error("falling back to prompt"),me=fe("message"in pe?pe.message:ce),window.prompt(me,ve)}}finally{Br&&(typeof Br.removeRange=="function"?Br.removeRange(cr):Br.removeAllRanges()),$r&&document.body.removeChild($r),Ee()}return Pr}k.exports=le}}),import_jsx_runtime=__toESM(require_jsx_runtime(),1),import_client=__toESM(require_client(),1),import_react=__toESM(require_react(),1),import_qrcode=__toESM(require_browser$2(),1),import_copy_to_clipboard=__toESM(require_copy_to_clipboard(),1),commonjsGlobal$i=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$h$6=function(v){try{return!!v()}catch{return!0}},fails$g$6=fails$h$6,functionBindNative$h=!fails$g$6(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$b=functionBindNative$h,FunctionPrototype$2$b=Function.prototype,bind$5$7=FunctionPrototype$2$b.bind,call$f$7=FunctionPrototype$2$b.call,uncurryThis$h$6=NATIVE_BIND$3$b&&bind$5$7.bind(call$f$7,call$f$7),functionUncurryThis$h=NATIVE_BIND$3$b?function(v){return v&&uncurryThis$h$6(v)}:function(v){return v&&function(){return call$f$7.apply(v,arguments)}},uncurryThis$g$6=functionUncurryThis$h,toString$5$3=uncurryThis$g$6({}.toString),stringSlice$1$4=uncurryThis$g$6("".slice),classofRaw$1$f=function(v){return stringSlice$1$4(toString$5$3(v),8,-1)},uncurryThis$f$6=functionUncurryThis$h,fails$f$6=fails$h$6,classof$6$6=classofRaw$1$f,$Object$4$b=Object,split$f=uncurryThis$f$6("".split),indexedObject$f=fails$f$6(function(){return!$Object$4$b("z").propertyIsEnumerable(0)})?function(v){return classof$6$6(v)=="String"?split$f(v,""):$Object$4$b(v)}:$Object$4$b,$TypeError$e$1=TypeError,requireObjectCoercible$3$4=function(v){if(v==null)throw $TypeError$e$1("Can't call method on "+v);return v},IndexedObject$2$4=indexedObject$f,requireObjectCoercible$2$f=requireObjectCoercible$3$4,toIndexedObject$5$b=function(v){return IndexedObject$2$4(requireObjectCoercible$2$f(v))},check$h=function(v){return v&&v.Math==Math&&v},global$k$3=check$h(typeof globalThis=="object"&&globalThis)||check$h(typeof window=="object"&&window)||check$h(typeof self=="object"&&self)||check$h(typeof commonjsGlobal$i=="object"&&commonjsGlobal$i)||function(){return this}()||Function("return this")(),shared$3$h={exports:{}},global$j$7=global$k$3,defineProperty$6$4=Object.defineProperty,defineGlobalProperty$3$f=function(v,k){try{defineProperty$6$4(global$j$7,v,{value:k,configurable:!0,writable:!0})}catch{global$j$7[v]=k}return k},global$i$8=global$k$3,defineGlobalProperty$2$h=defineGlobalProperty$3$f,SHARED$h="__core-js_shared__",store$3$h=global$i$8[SHARED$h]||defineGlobalProperty$2$h(SHARED$h,{}),sharedStore$h=store$3$h,store$2$h=sharedStore$h;(shared$3$h.exports=function(v,k){return store$2$h[v]||(store$2$h[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$1$h=requireObjectCoercible$3$4,$Object$3$d=Object,toObject$5$4=function(v){return $Object$3$d(requireObjectCoercible$1$h(v))},uncurryThis$e$9=functionUncurryThis$h,toObject$4$5=toObject$5$4,hasOwnProperty$h=uncurryThis$e$9({}.hasOwnProperty),hasOwnProperty_1$h=Object.hasOwn||function v(k,ie){return hasOwnProperty$h(toObject$4$5(k),ie)},uncurryThis$d$b=functionUncurryThis$h,id$j=0,postfix$h=Math.random(),toString$4$3=uncurryThis$d$b(1 .toString),uid$2$h=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$4$3(++id$j+postfix$h,36)},isCallable$l$3=function(v){return typeof v=="function"},global$h$b=global$k$3,isCallable$k$7=isCallable$l$3,aFunction$h=function(v){return isCallable$k$7(v)?v:void 0},getBuiltIn$8$7=function(v,k){return arguments.length<2?aFunction$h(global$h$b[v]):global$h$b[v]&&global$h$b[v][k]},getBuiltIn$7$7=getBuiltIn$8$7,engineUserAgent$h=getBuiltIn$7$7("navigator","userAgent")||"",global$g$b=global$k$3,userAgent$5$1=engineUserAgent$h,process$3$7=global$g$b.process,Deno$1$8=global$g$b.Deno,versions$h=process$3$7&&process$3$7.versions||Deno$1$8&&Deno$1$8.version,v8$h=versions$h&&versions$h.v8,match$h,version$h;v8$h&&(match$h=v8$h.split("."),version$h=match$h[0]>0&&match$h[0]<4?1:+(match$h[0]+match$h[1]));!version$h&&userAgent$5$1&&(match$h=userAgent$5$1.match(/Edge\/(\d+)/),(!match$h||match$h[1]>=74)&&(match$h=userAgent$5$1.match(/Chrome\/(\d+)/),match$h&&(version$h=+match$h[1])));var engineV8Version$h=version$h,V8_VERSION$1$7=engineV8Version$h,fails$e$9=fails$h$6,nativeSymbol$h=!!Object.getOwnPropertySymbols&&!fails$e$9(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$7&&V8_VERSION$1$7<41}),NATIVE_SYMBOL$2$1=nativeSymbol$h,useSymbolAsUid$h=NATIVE_SYMBOL$2$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",global$f$b=global$k$3,shared$2$h=shared$3$h.exports,hasOwn$b$4=hasOwnProperty_1$h,uid$1$h=uid$2$h,NATIVE_SYMBOL$1$h=nativeSymbol$h,USE_SYMBOL_AS_UID$1$h=useSymbolAsUid$h,WellKnownSymbolsStore$h=shared$2$h("wks"),Symbol$1$h=global$f$b.Symbol,symbolFor$h=Symbol$1$h&&Symbol$1$h.for,createWellKnownSymbol$h=USE_SYMBOL_AS_UID$1$h?Symbol$1$h:Symbol$1$h&&Symbol$1$h.withoutSetter||uid$1$h,wellKnownSymbol$g$4=function(v){if(!hasOwn$b$4(WellKnownSymbolsStore$h,v)||!(NATIVE_SYMBOL$1$h||typeof WellKnownSymbolsStore$h[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$1$h&&hasOwn$b$4(Symbol$1$h,v)?WellKnownSymbolsStore$h[v]=Symbol$1$h[v]:USE_SYMBOL_AS_UID$1$h&&symbolFor$h?WellKnownSymbolsStore$h[v]=symbolFor$h(k):WellKnownSymbolsStore$h[v]=createWellKnownSymbol$h(k)}return WellKnownSymbolsStore$h[v]},isCallable$j$8=isCallable$l$3,isObject$8$5=function(v){return typeof v=="object"?v!==null:isCallable$j$8(v)},isObject$7$b=isObject$8$5,$String$3$b=String,$TypeError$d$2=TypeError,anObject$c$8=function(v){if(isObject$7$b(v))return v;throw $TypeError$d$2($String$3$b(v)+" is not an object")},objectDefineProperties$b={},fails$d$a=fails$h$6,descriptors$h=!fails$d$a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),DESCRIPTORS$b$4=descriptors$h,fails$c$a=fails$h$6,v8PrototypeDefineBug$h=DESCRIPTORS$b$4&&fails$c$a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),objectDefineProperty$h={},global$e$b=global$k$3,isObject$6$b=isObject$8$5,document$3$7=global$e$b.document,EXISTS$1$h=isObject$6$b(document$3$7)&&isObject$6$b(document$3$7.createElement),documentCreateElement$2$9=function(v){return EXISTS$1$h?document$3$7.createElement(v):{}},DESCRIPTORS$a$9=descriptors$h,fails$b$b=fails$h$6,createElement$1$7=documentCreateElement$2$9,ie8DomDefine$h=!DESCRIPTORS$a$9&&!fails$b$b(function(){return Object.defineProperty(createElement$1$7("div"),"a",{get:function(){return 7}}).a!=7}),NATIVE_BIND$2$b=functionBindNative$h,call$e$8=Function.prototype.call,functionCall$h=NATIVE_BIND$2$b?call$e$8.bind(call$e$8):function(){return call$e$8.apply(call$e$8,arguments)},uncurryThis$c$b=functionUncurryThis$h,objectIsPrototypeOf$h=uncurryThis$c$b({}.isPrototypeOf),getBuiltIn$6$b=getBuiltIn$8$7,isCallable$i$a=isCallable$l$3,isPrototypeOf$4$4=objectIsPrototypeOf$h,USE_SYMBOL_AS_UID$i=useSymbolAsUid$h,$Object$2$h=Object,isSymbol$2$h=USE_SYMBOL_AS_UID$i?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$b("Symbol");return isCallable$i$a(k)&&isPrototypeOf$4$4(k.prototype,$Object$2$h(v))},$String$2$f=String,tryToString$5$1=function(v){try{return $String$2$f(v)}catch{return"Object"}},isCallable$h$b=isCallable$l$3,tryToString$4$b=tryToString$5$1,$TypeError$c$3=TypeError,aCallable$9$1=function(v){if(isCallable$h$b(v))return v;throw $TypeError$c$3(tryToString$4$b(v)+" is not a function")},aCallable$8$1=aCallable$9$1,getMethod$3$8=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$8$1(ie)},call$d$a=functionCall$h,isCallable$g$b=isCallable$l$3,isObject$5$h=isObject$8$5,$TypeError$b$8=TypeError,ordinaryToPrimitive$1$h=function(v,k){var ie,ae;if(k==="string"&&isCallable$g$b(ie=v.toString)&&!isObject$5$h(ae=call$d$a(ie,v))||isCallable$g$b(ie=v.valueOf)&&!isObject$5$h(ae=call$d$a(ie,v))||k!=="string"&&isCallable$g$b(ie=v.toString)&&!isObject$5$h(ae=call$d$a(ie,v)))return ae;throw $TypeError$b$8("Can't convert object to primitive value")},call$c$b=functionCall$h,isObject$4$h=isObject$8$5,isSymbol$1$h=isSymbol$2$h,getMethod$2$b=getMethod$3$8,ordinaryToPrimitive$i=ordinaryToPrimitive$1$h,wellKnownSymbol$f$4=wellKnownSymbol$g$4,$TypeError$a$b=TypeError,TO_PRIMITIVE$h=wellKnownSymbol$f$4("toPrimitive"),toPrimitive$1$h=function(v,k){if(!isObject$4$h(v)||isSymbol$1$h(v))return v;var ie=getMethod$2$b(v,TO_PRIMITIVE$h),ae;if(ie){if(k===void 0&&(k="default"),ae=call$c$b(ie,v,k),!isObject$4$h(ae)||isSymbol$1$h(ae))return ae;throw $TypeError$a$b("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$i(v,k)},toPrimitive$j=toPrimitive$1$h,isSymbol$k=isSymbol$2$h,toPropertyKey$3$5=function(v){var k=toPrimitive$j(v,"string");return isSymbol$k(k)?k:k+""},DESCRIPTORS$9$a=descriptors$h,IE8_DOM_DEFINE$1$f=ie8DomDefine$h,V8_PROTOTYPE_DEFINE_BUG$1$b=v8PrototypeDefineBug$h,anObject$b$8=anObject$c$8,toPropertyKey$2$f=toPropertyKey$3$5,$TypeError$9$b=TypeError,$defineProperty$h=Object.defineProperty,$getOwnPropertyDescriptor$1$f=Object.getOwnPropertyDescriptor,ENUMERABLE$h="enumerable",CONFIGURABLE$1$h="configurable",WRITABLE$h="writable";objectDefineProperty$h.f=DESCRIPTORS$9$a?V8_PROTOTYPE_DEFINE_BUG$1$b?function v(k,ie,ae){if(anObject$b$8(k),ie=toPropertyKey$2$f(ie),anObject$b$8(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$h in ae&&!ae[WRITABLE$h]){var ce=$getOwnPropertyDescriptor$1$f(k,ie);ce&&ce[WRITABLE$h]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$h in ae?ae[CONFIGURABLE$1$h]:ce[CONFIGURABLE$1$h],enumerable:ENUMERABLE$h in ae?ae[ENUMERABLE$h]:ce[ENUMERABLE$h],writable:!1})}return $defineProperty$h(k,ie,ae)}:$defineProperty$h:function v(k,ie,ae){if(anObject$b$8(k),ie=toPropertyKey$2$f(ie),anObject$b$8(ae),IE8_DOM_DEFINE$1$f)try{return $defineProperty$h(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$9$b("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var ceil$f=Math.ceil,floor$1$5=Math.floor,mathTrunc$f=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$1$5:ceil$f)(ie)},trunc2$f=mathTrunc$f,toIntegerOrInfinity$2$f=function(v){var k=+v;return k!==k||k===0?0:trunc2$f(k)},toIntegerOrInfinity$1$f=toIntegerOrInfinity$2$f,max$1$6=Math.max,min$1$f=Math.min,toAbsoluteIndex$2$5=function(v,k){var ie=toIntegerOrInfinity$1$f(v);return ie<0?max$1$6(ie+k,0):min$1$f(ie,k)},toIntegerOrInfinity$k=toIntegerOrInfinity$2$f,min$g=Math.min,toLength$1$f=function(v){return v>0?min$g(toIntegerOrInfinity$k(v),9007199254740991):0},toLength$k=toLength$1$f,lengthOfArrayLike$5$4=function(v){return toLength$k(v.length)},toIndexedObject$4$b=toIndexedObject$5$b,toAbsoluteIndex$1$f=toAbsoluteIndex$2$5,lengthOfArrayLike$4$4=lengthOfArrayLike$5$4,createMethod$1$6=function(v){return function(k,ie,ae){var ce=toIndexedObject$4$b(k),fe=lengthOfArrayLike$4$4(ce),le=toAbsoluteIndex$1$f(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$f={includes:createMethod$1$6(!0),indexOf:createMethod$1$6(!1)},hiddenKeys$4$b={},uncurryThis$b$b=functionUncurryThis$h,hasOwn$a$a=hasOwnProperty_1$h,toIndexedObject$3$f=toIndexedObject$5$b,indexOf$f=arrayIncludes$f.indexOf,hiddenKeys$3$f=hiddenKeys$4$b,push$1$6=uncurryThis$b$b([].push),objectKeysInternal$f=function(v,k){var ie=toIndexedObject$3$f(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$a$a(hiddenKeys$3$f,fe)&&hasOwn$a$a(ie,fe)&&push$1$6(ce,fe);for(;k.length>ae;)hasOwn$a$a(ie,fe=k[ae++])&&(~indexOf$f(ce,fe)||push$1$6(ce,fe));return ce},enumBugKeys$3$b=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$e=objectKeysInternal$f,enumBugKeys$2$e=enumBugKeys$3$b,objectKeys$2$9=Object.keys||function v(k){return internalObjectKeys$1$e(k,enumBugKeys$2$e)},DESCRIPTORS$8$b=descriptors$h,V8_PROTOTYPE_DEFINE_BUG$i=v8PrototypeDefineBug$h,definePropertyModule$5$5=objectDefineProperty$h,anObject$a$a=anObject$c$8,toIndexedObject$2$f=toIndexedObject$5$b,objectKeys$1$e=objectKeys$2$9;objectDefineProperties$b.f=DESCRIPTORS$8$b&&!V8_PROTOTYPE_DEFINE_BUG$i?Object.defineProperties:function v(k,ie){anObject$a$a(k);for(var ae=toIndexedObject$2$f(ie),ce=objectKeys$1$e(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$5$5.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$5$b=getBuiltIn$8$7,html$2$7=getBuiltIn$5$b("document","documentElement"),shared$1$h=shared$3$h.exports,uid$k=uid$2$h,keys2$6=shared$1$h("keys"),sharedKey$3$b=function(v){return keys2$6[v]||(keys2$6[v]=uid$k(v))},anObject$9$a=anObject$c$8,definePropertiesModule$b=objectDefineProperties$b,enumBugKeys$1$f=enumBugKeys$3$b,hiddenKeys$2$f=hiddenKeys$4$b,html$1$c=html$2$7,documentCreateElement$1$b=documentCreateElement$2$9,sharedKey$2$b=sharedKey$3$b,GT$b=">",LT$b="<",PROTOTYPE$c="prototype",SCRIPT$b="script",IE_PROTO$1$b=sharedKey$2$b("IE_PROTO"),EmptyConstructor$b=function(){},scriptTag$b=function(v){return LT$b+SCRIPT$b+GT$b+v+LT$b+"/"+SCRIPT$b+GT$b},NullProtoObjectViaActiveX$b=function(v){v.write(scriptTag$b("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$b=function(){var v=documentCreateElement$1$b("iframe"),k="java"+SCRIPT$b+":",ie;return v.style.display="none",html$1$c.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$b("document.F=Object")),ie.close(),ie.F},activeXDocument$b,NullProtoObject$b=function(){try{activeXDocument$b=new ActiveXObject("htmlfile")}catch{}NullProtoObject$b=typeof document<"u"?document.domain&&activeXDocument$b?NullProtoObjectViaActiveX$b(activeXDocument$b):NullProtoObjectViaIFrame$b():NullProtoObjectViaActiveX$b(activeXDocument$b);for(var v=enumBugKeys$1$f.length;v--;)delete NullProtoObject$b[PROTOTYPE$c][enumBugKeys$1$f[v]];return NullProtoObject$b()};hiddenKeys$2$f[IE_PROTO$1$b]=!0;var objectCreate$b=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$b[PROTOTYPE$c]=anObject$9$a(k),ae=new EmptyConstructor$b,EmptyConstructor$b[PROTOTYPE$c]=null,ae[IE_PROTO$1$b]=k):ae=NullProtoObject$b(),ie===void 0?ae:definePropertiesModule$b.f(ae,ie)},wellKnownSymbol$e$a=wellKnownSymbol$g$4,create$1$b=objectCreate$b,defineProperty$5$9=objectDefineProperty$h.f,UNSCOPABLES$b=wellKnownSymbol$e$a("unscopables"),ArrayPrototype$1$a=Array.prototype;ArrayPrototype$1$a[UNSCOPABLES$b]==null&&defineProperty$5$9(ArrayPrototype$1$a,UNSCOPABLES$b,{configurable:!0,value:create$1$b(null)});var addToUnscopables$2$2=function(v){ArrayPrototype$1$a[UNSCOPABLES$b][v]=!0},iterators$c={},uncurryThis$a$f=functionUncurryThis$h,isCallable$f$c=isCallable$l$3,store$1$h=sharedStore$h,functionToString$h=uncurryThis$a$f(Function.toString);isCallable$f$c(store$1$h.inspectSource)||(store$1$h.inspectSource=function(v){return functionToString$h(v)});var inspectSource$4$7=store$1$h.inspectSource,global$d$b=global$k$3,isCallable$e$c=isCallable$l$3,inspectSource$3$b=inspectSource$4$7,WeakMap$1$h=global$d$b.WeakMap,nativeWeakMap$h=isCallable$e$c(WeakMap$1$h)&&/native code/.test(inspectSource$3$b(WeakMap$1$h)),createPropertyDescriptor$4$5=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$7$f=descriptors$h,definePropertyModule$4$a=objectDefineProperty$h,createPropertyDescriptor$3$b=createPropertyDescriptor$4$5,createNonEnumerableProperty$4$b=DESCRIPTORS$7$f?function(v,k,ie){return definePropertyModule$4$a.f(v,k,createPropertyDescriptor$3$b(1,ie))}:function(v,k,ie){return v[k]=ie,v},NATIVE_WEAK_MAP$h=nativeWeakMap$h,global$c$b=global$k$3,uncurryThis$9$f=functionUncurryThis$h,isObject$3$h=isObject$8$5,createNonEnumerableProperty$3$b=createNonEnumerableProperty$4$b,hasOwn$9$b=hasOwnProperty_1$h,shared$k=sharedStore$h,sharedKey$1$h=sharedKey$3$b,hiddenKeys$1$f=hiddenKeys$4$b,OBJECT_ALREADY_INITIALIZED$h="Object already initialized",TypeError$2$b=global$c$b.TypeError,WeakMap2=global$c$b.WeakMap,set$1$b,get$i,has$h,enforce$h=function(v){return has$h(v)?get$i(v):set$1$b(v,{})},getterFor$h=function(v){return function(k){var ie;if(!isObject$3$h(k)||(ie=get$i(k)).type!==v)throw TypeError$2$b("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$h||shared$k.state?(store$k=shared$k.state||(shared$k.state=new WeakMap2),wmget$h=uncurryThis$9$f(store$k.get),wmhas$h=uncurryThis$9$f(store$k.has),wmset$h=uncurryThis$9$f(store$k.set),set$1$b=function(v,k){if(wmhas$h(store$k,v))throw new TypeError$2$b(OBJECT_ALREADY_INITIALIZED$h);return k.facade=v,wmset$h(store$k,v,k),k},get$i=function(v){return wmget$h(store$k,v)||{}},has$h=function(v){return wmhas$h(store$k,v)}):(STATE$h=sharedKey$1$h("state"),hiddenKeys$1$f[STATE$h]=!0,set$1$b=function(v,k){if(hasOwn$9$b(v,STATE$h))throw new TypeError$2$b(OBJECT_ALREADY_INITIALIZED$h);return k.facade=v,createNonEnumerableProperty$3$b(v,STATE$h,k),k},get$i=function(v){return hasOwn$9$b(v,STATE$h)?v[STATE$h]:{}},has$h=function(v){return hasOwn$9$b(v,STATE$h)});var store$k,wmget$h,wmhas$h,wmset$h,STATE$h,internalState$h={set:set$1$b,get:get$i,has:has$h,enforce:enforce$h,getterFor:getterFor$h},objectGetOwnPropertyDescriptor$f={},objectPropertyIsEnumerable$f={},$propertyIsEnumerable$f={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$7=Object.getOwnPropertyDescriptor,NASHORN_BUG$f=getOwnPropertyDescriptor$2$7&&!$propertyIsEnumerable$f.call({1:2},1);objectPropertyIsEnumerable$f.f=NASHORN_BUG$f?function v(k){var ie=getOwnPropertyDescriptor$2$7(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$f;var DESCRIPTORS$6$f=descriptors$h,call$b$b=functionCall$h,propertyIsEnumerableModule$1$c=objectPropertyIsEnumerable$f,createPropertyDescriptor$2$f=createPropertyDescriptor$4$5,toIndexedObject$1$f=toIndexedObject$5$b,toPropertyKey$1$h=toPropertyKey$3$5,hasOwn$8$c=hasOwnProperty_1$h,IE8_DOM_DEFINE$i=ie8DomDefine$h,$getOwnPropertyDescriptor$i=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$f.f=DESCRIPTORS$6$f?$getOwnPropertyDescriptor$i:function v(k,ie){if(k=toIndexedObject$1$f(k),ie=toPropertyKey$1$h(ie),IE8_DOM_DEFINE$i)try{return $getOwnPropertyDescriptor$i(k,ie)}catch{}if(hasOwn$8$c(k,ie))return createPropertyDescriptor$2$f(!call$b$b(propertyIsEnumerableModule$1$c.f,k,ie),k[ie])};var makeBuiltIn$2$h={exports:{}},DESCRIPTORS$5$h=descriptors$h,hasOwn$7$d=hasOwnProperty_1$h,FunctionPrototype$1$h=Function.prototype,getDescriptor$h=DESCRIPTORS$5$h&&Object.getOwnPropertyDescriptor,EXISTS$i=hasOwn$7$d(FunctionPrototype$1$h,"name"),PROPER$h=EXISTS$i&&function v(){}.name==="something",CONFIGURABLE$i=EXISTS$i&&(!DESCRIPTORS$5$h||DESCRIPTORS$5$h&&getDescriptor$h(FunctionPrototype$1$h,"name").configurable),functionName$h={EXISTS:EXISTS$i,PROPER:PROPER$h,CONFIGURABLE:CONFIGURABLE$i},fails$a$d=fails$h$6,isCallable$d$c=isCallable$l$3,hasOwn$6$f=hasOwnProperty_1$h,DESCRIPTORS$4$h=descriptors$h,CONFIGURABLE_FUNCTION_NAME$1$b=functionName$h.CONFIGURABLE,inspectSource$2$h=inspectSource$4$7,InternalStateModule$2$a=internalState$h,enforceInternalState$j=InternalStateModule$2$a.enforce,getInternalState$1$b=InternalStateModule$2$a.get,defineProperty$4$b=Object.defineProperty,CONFIGURABLE_LENGTH$h=DESCRIPTORS$4$h&&!fails$a$d(function(){return defineProperty$4$b(function(){},"length",{value:8}).length!==8}),TEMPLATE$h=String(String).split("String"),makeBuiltIn$1$h=makeBuiltIn$2$h.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$6$f(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$b&&v.name!==k)&&(DESCRIPTORS$4$h?defineProperty$4$b(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$h&&ie&&hasOwn$6$f(ie,"arity")&&v.length!==ie.arity&&defineProperty$4$b(v,"length",{value:ie.arity});try{ie&&hasOwn$6$f(ie,"constructor")&&ie.constructor?DESCRIPTORS$4$h&&defineProperty$4$b(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$j(v);return hasOwn$6$f(ae,"source")||(ae.source=TEMPLATE$h.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$h(function v(){return isCallable$d$c(this)&&getInternalState$1$b(this).source||inspectSource$2$h(this)},"toString");var isCallable$c$c=isCallable$l$3,definePropertyModule$3$c=objectDefineProperty$h,makeBuiltIn$j=makeBuiltIn$2$h.exports,defineGlobalProperty$1$h=defineGlobalProperty$3$f,defineBuiltIn$6$a=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$c$c(ie)&&makeBuiltIn$j(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$h(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$3$c.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$f={},internalObjectKeys$g=objectKeysInternal$f,enumBugKeys$i=enumBugKeys$3$b,hiddenKeys$j=enumBugKeys$i.concat("length","prototype");objectGetOwnPropertyNames$f.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$g(k,hiddenKeys$j)};var objectGetOwnPropertySymbols$f={};objectGetOwnPropertySymbols$f.f=Object.getOwnPropertySymbols;var getBuiltIn$4$c=getBuiltIn$8$7,uncurryThis$8$f=functionUncurryThis$h,getOwnPropertyNamesModule$f=objectGetOwnPropertyNames$f,getOwnPropertySymbolsModule$1$c=objectGetOwnPropertySymbols$f,anObject$8$b=anObject$c$8,concat$1$c=uncurryThis$8$f([].concat),ownKeys$1$f=getBuiltIn$4$c("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$f.f(anObject$8$b(k)),ae=getOwnPropertySymbolsModule$1$c.f;return ae?concat$1$c(ie,ae(k)):ie},hasOwn$5$f=hasOwnProperty_1$h,ownKeys2$f=ownKeys$1$f,getOwnPropertyDescriptorModule$g=objectGetOwnPropertyDescriptor$f,definePropertyModule$2$f=objectDefineProperty$h,copyConstructorProperties$2$1=function(v,k,ie){for(var ae=ownKeys2$f(k),ce=definePropertyModule$2$f.f,fe=getOwnPropertyDescriptorModule$g.f,le=0;le=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$b=Iterators$2$b.Arguments=Iterators$2$b.Array;addToUnscopables$1$b("keys");addToUnscopables$1$b("values");addToUnscopables$1$b("entries");if(DESCRIPTORS$3$h&&values$b.name!=="values")try{defineProperty$2$f(values$b,"name",{value:"values"})}catch(v){}var domIterables$8={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$i=documentCreateElement$2$9,classList$8=documentCreateElement$i("span").classList,DOMTokenListPrototype$1$8=classList$8&&classList$8.constructor&&classList$8.constructor.prototype,domTokenListPrototype$8=DOMTokenListPrototype$1$8===Object.prototype?void 0:DOMTokenListPrototype$1$8,global$a$f=global$k$3,DOMIterables$8=domIterables$8,DOMTokenListPrototype$9=domTokenListPrototype$8,ArrayIteratorMethods$8=es_array_iterator$8,createNonEnumerableProperty$n=createNonEnumerableProperty$4$b,wellKnownSymbol$a$b=wellKnownSymbol$g$4,ITERATOR$3$a=wellKnownSymbol$a$b("iterator"),TO_STRING_TAG$2$c=wellKnownSymbol$a$b("toStringTag"),ArrayValues$8=ArrayIteratorMethods$8.values,handlePrototype$8=function(v,k){if(v){if(v[ITERATOR$3$a]!==ArrayValues$8)try{createNonEnumerableProperty$n(v,ITERATOR$3$a,ArrayValues$8)}catch{v[ITERATOR$3$a]=ArrayValues$8}if(v[TO_STRING_TAG$2$c]||createNonEnumerableProperty$n(v,TO_STRING_TAG$2$c,k),DOMIterables$8[k]){for(var ie in ArrayIteratorMethods$8)if(v[ie]!==ArrayIteratorMethods$8[ie])try{createNonEnumerableProperty$n(v,ie,ArrayIteratorMethods$8[ie])}catch{v[ie]=ArrayIteratorMethods$8[ie]}}}};for(COLLECTION_NAME$8 in DOMIterables$8)handlePrototype$8(global$a$f[COLLECTION_NAME$8]&&global$a$f[COLLECTION_NAME$8].prototype,COLLECTION_NAME$8);var COLLECTION_NAME$8;handlePrototype$8(DOMTokenListPrototype$9,"DOMTokenList");var DESCRIPTORS$2$h=descriptors$h,uncurryThis$6$h=functionUncurryThis$h,call$9$b=functionCall$h,fails$6$h=fails$h$6,objectKeys$g=objectKeys$2$9,getOwnPropertySymbolsModule$g=objectGetOwnPropertySymbols$f,propertyIsEnumerableModule$g=objectPropertyIsEnumerable$f,toObject$2$e=toObject$5$4,IndexedObject$1$c=indexedObject$f,$assign$c=Object.assign,defineProperty$1$h=Object.defineProperty,concat$h=uncurryThis$6$h([].concat),objectAssign$c=!$assign$c||fails$6$h(function(){if(DESCRIPTORS$2$h&&$assign$c({b:1},$assign$c(defineProperty$1$h({},"a",{enumerable:!0,get:function(){defineProperty$1$h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},k={},ie=Symbol(),ae="abcdefghijklmnopqrst";return v[ie]=7,ae.split("").forEach(function(ce){k[ce]=ce}),$assign$c({},v)[ie]!=7||objectKeys$g($assign$c({},k)).join("")!=ae})?function v(k,ie){for(var ae=toObject$2$e(k),ce=arguments.length,fe=1,le=getOwnPropertySymbolsModule$g.f,ve=propertyIsEnumerableModule$g.f;ce>fe;)for(var pe=IndexedObject$1$c(arguments[fe++]),ye=le?concat$h(objectKeys$g(pe),le(pe)):objectKeys$g(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$2$h||call$9$b(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$c,$$b$2=_export$f,assign2$c=objectAssign$c;$$b$2({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$c},{assign:assign2$c});function __awaiter$k(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var CloseIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",fill:"#C1C1C1"},{children:[(0,import_jsx_runtime.jsx)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,import_jsx_runtime.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})]})),CloseButton=({onClick:v})=>(0,import_jsx_runtime.jsx)("button",Object.assign({onClick:v,className:"close-button"},{children:(0,import_jsx_runtime.jsx)(CloseIcon,{})})),ModalHeader=({title:v,onCloseModal:k})=>{const ie=v==="Get a Wallet"?" -open":"";return(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal-header"},{children:[(0,import_jsx_runtime.jsx)("h3",Object.assign({className:`middleTitle ${ie}`},{children:v})),(0,import_jsx_runtime.jsx)(CloseButton,{onClick:k})]}))},BackArrowIcon=()=>(0,import_jsx_runtime.jsx)("svg",Object.assign({width:"8",height:"14",viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,import_jsx_runtime.jsx)("path",{d:"M7 13L1 7L7 1",stroke:"#6494EE",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),BackArrow=({onClick:v})=>(0,import_jsx_runtime.jsx)("button",Object.assign({onClick:v,className:"back-button"},{children:(0,import_jsx_runtime.jsx)(BackArrowIcon,{})})),WalletNetworkChanged=({selector:v,onBack:k,onCloseModal:ie})=>(0,import_jsx_runtime.jsxs)(import_react.Fragment,{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal-header-wrapper"},{children:[(0,import_jsx_runtime.jsx)(BackArrow,{onClick:k}),(0,import_jsx_runtime.jsx)(ModalHeader,{title:"You Must Change the Network",onCloseModal:ie})]})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"switch-network-message-wrapper"},{children:(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content"},{children:[(0,import_jsx_runtime.jsxs)("p",{children:["We've detected that you need to change your wallet's network to",(0,import_jsx_runtime.jsx)("strong",Object.assign({className:"network-id"},{children:` ${v.options.network.networkId}`}))," ","for this dApp."]}),(0,import_jsx_runtime.jsx)("p",{children:"Some wallets may not support changing networks. If you can not change networks you may consider switching to another wallet."})]}))}))]}),tryToString$3$b=tryToString$5$1,$TypeError$7$b=TypeError,deletePropertyOrThrow$1=function(v,k){if(!delete v[k])throw $TypeError$7$b("Cannot delete property "+tryToString$3$b(k)+" of "+tryToString$3$b(v))},wellKnownSymbol$9$b=wellKnownSymbol$g$4,TO_STRING_TAG$1$f=wellKnownSymbol$9$b("toStringTag"),test$1$1={};test$1$1[TO_STRING_TAG$1$f]="z";var toStringTagSupport$f=String(test$1$1)==="[object z]",TO_STRING_TAG_SUPPORT$f=toStringTagSupport$f,isCallable$6$h=isCallable$l$3,classofRaw$i=classofRaw$1$f,wellKnownSymbol$8$c=wellKnownSymbol$g$4,TO_STRING_TAG$i=wellKnownSymbol$8$c("toStringTag"),$Object$l=Object,CORRECT_ARGUMENTS$f=classofRaw$i(function(){return arguments}())=="Arguments",tryGet$f=function(v,k){try{return v[k]}catch{}},classof$5$a=TO_STRING_TAG_SUPPORT$f?classofRaw$i:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$f(k=$Object$l(v),TO_STRING_TAG$i))=="string"?ie:CORRECT_ARGUMENTS$f?classofRaw$i(k):(ae=classofRaw$i(k))=="Object"&&isCallable$6$h(k.callee)?"Arguments":ae},classof$4$b=classof$5$a,$String$k=String,toString$3$4=function(v){if(classof$4$b(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$k(v)},toPropertyKey$l=toPropertyKey$3$5,definePropertyModule$1$h=objectDefineProperty$h,createPropertyDescriptor$m=createPropertyDescriptor$4$5,createProperty$1$5=function(v,k,ie){var ae=toPropertyKey$l(k);ae in v?definePropertyModule$1$h.f(v,ae,createPropertyDescriptor$m(0,ie)):v[ae]=ie},toAbsoluteIndex$j=toAbsoluteIndex$2$5,lengthOfArrayLike$3$5=lengthOfArrayLike$5$4,createProperty$6=createProperty$1$5,$Array$7=Array,max$g=Math.max,arraySliceSimple$5=function(v,k,ie){for(var ae=lengthOfArrayLike$3$5(v),ce=toAbsoluteIndex$j(k,ae),fe=toAbsoluteIndex$j(ie===void 0?ae:ie,ae),le=$Array$7(max$g(fe-ce,0)),ve=0;ce0;)v[fe]=v[--fe];fe!==ae++&&(v[fe]=ce)}return v},merge$4=function(v,k,ie,ae){for(var ce=k.length,fe=ie.length,le=0,ve=0;le3)){if(IE_OR_EDGE$4)return!0;if(WEBKIT$4)return WEBKIT$4<603;var v="",k,ie,ae,ce;for(k=65;k<76;k++){switch(ie=String.fromCharCode(k),k){case 66:case 69:case 70:case 72:ae=3;break;case 68:case 71:ae=4;break;default:ae=2}for(ce=0;ce<47;ce++)test$f.push({k:ie+ce,v:ae})}for(test$f.sort(function(fe,le){return le.v-fe.v}),ce=0;cetoString$2$e(ie)?1:-1}};$$a$2({target:"Array",proto:!0,forced:FORCED$5},{sort:function v(k){k!==void 0&&aCallable$7$7(k);var ie=toObject$1$h(this);if(STABLE_SORT$4)return k===void 0?un$Sort$4(ie):un$Sort$4(ie,k);var ae=[],ce=lengthOfArrayLike$2$b(ie),fe,le;for(le=0;le1?arguments[1]:void 0)}});addToUnscopables$c("includes");var isObject$2$h=isObject$8$5,classof$3$b=classofRaw$1$f,wellKnownSymbol$7$c=wellKnownSymbol$g$4,MATCH$1$1=wellKnownSymbol$7$c("match"),isRegexp$2=function(v){var k;return isObject$2$h(v)&&((k=v[MATCH$1$1])!==void 0?!!k:classof$3$b(v)=="RegExp")},isRegExp$3=isRegexp$2,$TypeError$6$c=TypeError,notARegexp$1=function(v){if(isRegExp$3(v))throw $TypeError$6$c("The method doesn't accept regular expressions");return v},wellKnownSymbol$6$c=wellKnownSymbol$g$4,MATCH$3=wellKnownSymbol$6$c("match"),correctIsRegexpLogic$1=function(v){var k=/./;try{"/./"[v](k)}catch{try{return k[MATCH$3]=!1,"/./"[v](k)}catch{}}return!1},$$8$3=_export$f,uncurryThis$4$h=functionUncurryThis$h,notARegExp$1=notARegexp$1,requireObjectCoercible$j=requireObjectCoercible$3$4,toString$1$h=toString$3$4,correctIsRegExpLogic$1=correctIsRegexpLogic$1,stringIndexOf$2=uncurryThis$4$h("".indexOf);$$8$3({target:"String",proto:!0,forced:!correctIsRegExpLogic$1("includes")},{includes:function v(k){return!!~stringIndexOf$2(toString$1$h(requireObjectCoercible$j(this)),toString$1$h(notARegExp$1(k)),arguments.length>1?arguments[1]:void 0)}});var aCallable$6$7=aCallable$9$1,toObject$n=toObject$5$4,IndexedObject$h=indexedObject$f,lengthOfArrayLike$1$f=lengthOfArrayLike$5$4,$TypeError$5$h=TypeError,createMethod$g=function(v){return function(k,ie,ae,ce){aCallable$6$7(ie);var fe=toObject$n(k),le=IndexedObject$h(fe),ve=lengthOfArrayLike$1$f(fe),pe=v?ve-1:0,ye=v?-1:1;if(ae<2)for(;;){if(pe in le){ce=le[pe],pe+=ye;break}if(pe+=ye,v?pe<0:ve<=pe)throw $TypeError$5$h("Reduce of empty array with no initial value")}for(;v?pe>=0:ve>pe;pe+=ye)pe in le&&(ce=ie(ce,le[pe],pe,fe));return ce}},arrayReduce={left:createMethod$g(!1),right:createMethod$g(!0)},classof$2$d=classofRaw$1$f,global$9$h=global$k$3,engineIsNode$7=classof$2$d(global$9$h.process)=="process",$$7$6=_export$f,$reduce=arrayReduce.left,arrayMethodIsStrict=arrayMethodIsStrict$2,CHROME_VERSION=engineV8Version$h,IS_NODE$3$1=engineIsNode$7,STRICT_METHOD=arrayMethodIsStrict("reduce"),CHROME_BUG=!IS_NODE$3$1&&CHROME_VERSION>79&&CHROME_VERSION<83;$$7$6({target:"Array",proto:!0,forced:!STRICT_METHOD||CHROME_BUG},{reduce:function v(k){var ie=arguments.length;return $reduce(this,k,ie,ie>1?arguments[1]:void 0)}});var $$6$7=_export$f,DESCRIPTORS$1$h=descriptors$h,global$8$h=global$k$3,uncurryThis$3$h=functionUncurryThis$h,hasOwn$2$h=hasOwnProperty_1$h,isCallable$5$h=isCallable$l$3,isPrototypeOf$3$a=objectIsPrototypeOf$h,toString2$e=toString$3$4,defineProperty3$e=objectDefineProperty$h.f,copyConstructorProperties$g=copyConstructorProperties$2$1,NativeSymbol=global$8$h.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;DESCRIPTORS$1$h&&isCallable$5$h(NativeSymbol)&&(!("description"in SymbolPrototype)||NativeSymbol().description!==void 0)&&(EmptyStringDescriptionStore={},SymbolWrapper=function(){var k=arguments.length<1||arguments[0]===void 0?void 0:toString2$e(arguments[0]),ie=isPrototypeOf$3$a(SymbolPrototype,this)?new NativeSymbol(k):k===void 0?NativeSymbol():NativeSymbol(k);return k===""&&(EmptyStringDescriptionStore[ie]=!0),ie},copyConstructorProperties$g(SymbolWrapper,NativeSymbol),SymbolWrapper.prototype=SymbolPrototype,SymbolPrototype.constructor=SymbolWrapper,NATIVE_SYMBOL$i=String(NativeSymbol("test"))=="Symbol(test)",symbolToString=uncurryThis$3$h(SymbolPrototype.toString),symbolValueOf=uncurryThis$3$h(SymbolPrototype.valueOf),regexp=/^Symbol\((.*)\)[^)]+$/,replace$4=uncurryThis$3$h("".replace),stringSlice$h=uncurryThis$3$h("".slice),defineProperty3$e(SymbolPrototype,"description",{configurable:!0,get:function(){var k=symbolValueOf(this),ie=symbolToString(k);if(hasOwn$2$h(EmptyStringDescriptionStore,k))return"";var ae=NATIVE_SYMBOL$i?stringSlice$h(ie,7,-1):replace$4(ie,regexp,"$1");return ae===""?void 0:ae}}),$$6$7({globalThis:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper}));var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL$i,symbolToString,symbolValueOf,regexp,replace$4,stringSlice$h,WarningIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("path",{d:"M4.95215 16.3536L10.2152 5.85657C10.9531 4.38481 13.0538 4.38519 13.7912 5.85723L19.0494 16.3543C19.7156 17.6841 18.7486 19.25 17.2612 19.25H6.74001C5.25228 19.25 4.28535 17.6835 4.95215 16.3536Z",stroke:"#E6B73E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M12 10V12",stroke:"#E6B73E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M12.5 16C12.5 16.2761 12.2761 16.5 12 16.5C11.7239 16.5 11.5 16.2761 11.5 16C11.5 15.7239 11.7239 15.5 12 15.5C12.2761 15.5 12.5 15.7239 12.5 16Z",stroke:"#E6B73E"})]})),WalletOptions=({selector:v,handleWalletClick:k})=>{const[ie,ae]=(0,import_react.useState)([]),[ce,fe]=(0,import_react.useState)([]),[le,ve]=(0,import_react.useState)([]),[pe,ye]=(0,import_react.useState)("");(0,import_react.useEffect)(()=>{const Ee=v.store.observable.subscribe(cr=>{const{selectedWalletId:Br}=v.store.getState();Br&&ye(Br);const $r=cr.modules.filter(Pr=>!(Pr.type==="instant-link"&&Br!==Pr.id));if(v.options.optimizeWalletOrder){cr.modules.sort((ur,jr)=>ur.metadata.deprecated===jr.metadata.deprecated?0:ur.metadata.deprecated?1:-1),cr.modules.sort((ur,jr)=>jr.metadata.available===ur.metadata.available?0:jr.metadata.available?1:-1);const Pr=[],Or=[];$r.forEach(ur=>{v.store.getState().recentlySignedInWallets.includes(ur.id)?Or.push(ur):Pr.push(ur)}),fe(Or),ve(Pr)}v.options.randomizeWalletOrder?ae($r.sort(()=>Math.random()-.5)):ae($r)});return()=>Ee.unsubscribe()},[]);function me(Ee){return Ee.reduce((cr,Br,$r)=>{const{selectedWalletId:Pr}=v.store.getState(),{name:Or,description:ur,iconUrl:jr,deprecated:Mr}=Br.metadata,Lr=Br.id===Pr;return cr.push((0,import_jsx_runtime.jsxs)("li",Object.assign({tabIndex:0,className:`single-wallet ${pe===Br.id?"selected-wallet":""} ${Lr?"connected-wallet":""} ${Mr?"deprecated-wallet":""} sidebar ${Br.id}`,onClick:()=>(Br.id===Ee[$r].id&&ye(Br.id),k(Br))},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"icon"},{children:(0,import_jsx_runtime.jsx)("img",{src:jr,alt:Or})})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"title"},{children:Or})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"description"},{children:ur}))]})),Mr&&(0,import_jsx_runtime.jsx)("div",Object.assign({className:"warning-triangle"},{children:(0,import_jsx_runtime.jsx)(WarningIcon,{})}))]}),Br.id)),cr},[])}return(0,import_jsx_runtime.jsx)("div",{children:v.options.optimizeWalletOrder&&v.store.getState().recentlySignedInWallets.length>0?(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-options-wrapper"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"options-list-section"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"options-list-section-header"},{children:"Recent"})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"options-list more-options-list-content"},{children:me(ce)}))]})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"options-list-section"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"options-list-section-header"},{children:"More"})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"options-list more-options-list-content"},{children:me(le)}))]}))]})):(0,import_jsx_runtime.jsx)("div",Object.assign({className:"wallet-options-wrapper"},{children:(0,import_jsx_runtime.jsx)("div",Object.assign({className:"options-list"},{children:me(ie)}))}))})},ConnectionErrorIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("path",{d:"M10.5001 18.3333C15.1025 18.3333 18.8334 14.6023 18.8334 9.99996C18.8334 5.39759 15.1025 1.66663 10.5001 1.66663C5.89771 1.66663 2.16675 5.39759 2.16675 9.99996C2.16675 14.6023 5.89771 18.3333 10.5001 18.3333Z",stroke:"#CE5A6F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M13 7.5L8 12.5",stroke:"#CE5A6F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M8 7.5L13 12.5",stroke:"#CE5A6F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})),ConnectionSuccessIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("path",{d:"M18.8333 9.2333V9.99997C18.8323 11.797 18.2504 13.5455 17.1744 14.9848C16.0984 16.4241 14.586 17.477 12.8628 17.9866C11.1395 18.4961 9.29768 18.4349 7.61202 17.8121C5.92636 17.1894 4.48717 16.0384 3.50909 14.5309C2.53101 13.0233 2.06645 11.24 2.18469 9.4469C2.30293 7.65377 2.99763 5.94691 4.16519 4.58086C5.33275 3.21482 6.91061 2.26279 8.66345 1.86676C10.4163 1.47073 12.2502 1.65192 13.8916 2.3833",stroke:"#4FD98F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M18.8333 3.33337L10.5 11.675L8 9.17504",stroke:"#4FD98F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})),ConnectionResult=({module:v,message:k,err:ie,onRetry:ae})=>(0,import_jsx_runtime.jsx)("div",Object.assign({className:"connection connecting-details"},{children:ie?(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"error-wrapper"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"error"},{children:[(0,import_jsx_runtime.jsx)(ConnectionErrorIcon,{}),translate("modal.wallet.connectionFailed")]})),(0,import_jsx_runtime.jsx)("p",{children:k}),(v==null?void 0:v.metadata.available)&&(0,import_jsx_runtime.jsx)("button",Object.assign({onClick:ae},{children:translate("modal.ledger.retry")}))]})):(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"success"},{children:[(0,import_jsx_runtime.jsx)(ConnectionSuccessIcon,{}),translate("modal.wallet.connectionSuccessful")]}))})),AlertMessage=({message:v,module:k,onBack:ie,onCloseModal:ae})=>(0,import_jsx_runtime.jsxs)(import_react.Fragment,{children:[(0,import_jsx_runtime.jsx)(ModalHeader,{title:"",onCloseModal:ae}),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"alert-message connecting-wrapper connecting-wrapper-err"},{children:(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"icon"},{children:(0,import_jsx_runtime.jsx)("img",{src:k==null?void 0:k.metadata.iconUrl,alt:k==null?void 0:k.metadata.name})})),(0,import_jsx_runtime.jsx)("h3",Object.assign({className:"connecting-name"},{children:k==null?void 0:k.metadata.name})),(0,import_jsx_runtime.jsx)(ConnectionResult,{module:k,message:v,err:v!==null,onRetry:()=>{ie(!0)}})]}))}))]}),getBuiltIn$3$f=getBuiltIn$8$7,definePropertyModule$n=objectDefineProperty$h,wellKnownSymbol$5$c=wellKnownSymbol$g$4,DESCRIPTORS$u=descriptors$h,SPECIES$2$b=wellKnownSymbol$5$c("species"),setSpecies$1$b=function(v){var k=getBuiltIn$3$f(v),ie=definePropertyModule$n.f;DESCRIPTORS$u&&k&&!k[SPECIES$2$b]&&ie(k,SPECIES$2$b,{configurable:!0,get:function(){return this}})},isPrototypeOf$2$b=objectIsPrototypeOf$h,$TypeError$4$h=TypeError,anInstance$1$b=function(v,k){if(isPrototypeOf$2$b(k,v))return v;throw $TypeError$4$h("Incorrect invocation")},uncurryThis$2$h=functionUncurryThis$h,fails$2$h=fails$h$6,isCallable$4$h=isCallable$l$3,classof$1$f=classof$5$a,getBuiltIn$2$h=getBuiltIn$8$7,inspectSource$1$h=inspectSource$4$7,noop$b=function(){},empty$a=[],construct$b=getBuiltIn$2$h("Reflect","construct"),constructorRegExp$b=/^\s*(?:class|function)\b/,exec$c=uncurryThis$2$h(constructorRegExp$b.exec),INCORRECT_TO_STRING$b=!constructorRegExp$b.exec(noop$b),isConstructorModern$b=function v(k){if(!isCallable$4$h(k))return!1;try{return construct$b(noop$b,empty$a,k),!0}catch{return!1}},isConstructorLegacy$b=function v(k){if(!isCallable$4$h(k))return!1;switch(classof$1$f(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$b||!!exec$c(constructorRegExp$b,inspectSource$1$h(k))}catch{return!0}};isConstructorLegacy$b.sham=!0;var isConstructor$1$b=!construct$b||fails$2$h(function(){var v;return isConstructorModern$b(isConstructorModern$b.call)||!isConstructorModern$b(Object)||!isConstructorModern$b(function(){v=!0})||v})?isConstructorLegacy$b:isConstructorModern$b,isConstructor3$b=isConstructor$1$b,tryToString$2$b=tryToString$5$1,$TypeError$3$h=TypeError,aConstructor$1$b=function(v){if(isConstructor3$b(v))return v;throw $TypeError$3$h(tryToString$2$b(v)+" is not a constructor")},anObject$6$c=anObject$c$8,aConstructor$d=aConstructor$1$b,wellKnownSymbol$4$c=wellKnownSymbol$g$4,SPECIES$1$b=wellKnownSymbol$4$c("species"),speciesConstructor$1$b=function(v,k){var ie=anObject$6$c(v).constructor,ae;return ie===void 0||(ae=anObject$6$c(ie)[SPECIES$1$b])==null?k:aConstructor$d(ae)},NATIVE_BIND$1$h=functionBindNative$h,FunctionPrototype$j=Function.prototype,apply$1$b=FunctionPrototype$j.apply,call$8$b=FunctionPrototype$j.call,functionApply$b=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$1$h?call$8$b.bind(apply$1$b):function(){return call$8$b.apply(apply$1$b,arguments)}),uncurryThis$1$h=functionUncurryThis$h,aCallable$5$7=aCallable$9$1,NATIVE_BIND$k=functionBindNative$h,bind$4$7=uncurryThis$1$h(uncurryThis$1$h.bind),functionBindContext$b=function(v,k){return aCallable$5$7(v),k===void 0?v:NATIVE_BIND$k?bind$4$7(v,k):function(){return v.apply(k,arguments)}},uncurryThis$B=functionUncurryThis$h,arraySlice$1$b=uncurryThis$B([].slice),$TypeError$2$h=TypeError,validateArgumentsLength$1$7=function(v,k){if(v=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3$7(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$d]=ae,SUBCLASSING$7=ie.then(function(){})instanceof ae,SUBCLASSING$7?!k&&IS_BROWSER$7&&!NATIVE_PROMISE_REJECTION_EVENT$1$7:!0}),promiseConstructorDetection$7={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$7,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$7,SUBCLASSING:SUBCLASSING$7},newPromiseCapability$2$7={},aCallable$4$b=aCallable$9$1,PromiseCapability$7=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$b(k),this.reject=aCallable$4$b(ie)};newPromiseCapability$2$7.f=function(v){return new PromiseCapability$7(v)};var $$5$7=_export$f,IS_NODE$9=engineIsNode$7,global$1$h=global$k$3,call$7$b=functionCall$h,defineBuiltIn$2$d=defineBuiltIn$6$a,setPrototypeOf$g=objectSetPrototypeOf$c,setToStringTag$f=setToStringTag$3$a,setSpecies$c=setSpecies$1$b,aCallable$3$b=aCallable$9$1,isCallable$1$h=isCallable$l$3,isObject$1$h=isObject$8$5,anInstance$d=anInstance$1$b,speciesConstructor$c=speciesConstructor$1$b,task$8=task$1$7.set,microtask$8=microtask$1$7,hostReportErrors$8=hostReportErrors$1$7,perform$2$7=perform$3$7,Queue$8=queue$8,InternalStateModule$l=internalState$h,NativePromiseConstructor$2$7=promiseNativeConstructor$7,PromiseConstructorDetection$7=promiseConstructorDetection$7,newPromiseCapabilityModule$3$7=newPromiseCapability$2$7,PROMISE$7="Promise",FORCED_PROMISE_CONSTRUCTOR$4$7=PromiseConstructorDetection$7.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$8=PromiseConstructorDetection$7.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$7=PromiseConstructorDetection$7.SUBCLASSING,getInternalPromiseState$7=InternalStateModule$l.getterFor(PROMISE$7),setInternalState$e=InternalStateModule$l.set,NativePromisePrototype$1$7=NativePromiseConstructor$2$7&&NativePromiseConstructor$2$7.prototype,PromiseConstructor$7=NativePromiseConstructor$2$7,PromisePrototype$7=NativePromisePrototype$1$7,TypeError$1$h=global$1$h.TypeError,document$1$c=global$1$h.document,process2$2=global$1$h.process,newPromiseCapability$1$7=newPromiseCapabilityModule$3$7.f,newGenericPromiseCapability$7=newPromiseCapability$1$7,DISPATCH_EVENT$7=!!(document$1$c&&document$1$c.createEvent&&global$1$h.dispatchEvent),UNHANDLED_REJECTION$7="unhandledrejection",REJECTION_HANDLED$7="rejectionhandled",PENDING$7=0,FULFILLED$7=1,REJECTED$7=2,HANDLED$7=1,UNHANDLED$7=2,Internal$7,OwnPromiseCapability$7,PromiseWrapper$7,nativeThen$7,isThenable$7=function(v){var k;return isObject$1$h(v)&&isCallable$1$h(k=v.then)?k:!1},callReaction$7=function(v,k){var ie=k.value,ae=k.state==FULFILLED$7,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$7&&onHandleUnhandled$7(k),k.rejection=HANDLED$7),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$h("Promise-chain cycle")):(ye=isThenable$7(pe))?call$7$b(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$8=function(v,k){v.notified||(v.notified=!0,microtask$8(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$7(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$7(v)}))},dispatchEvent$7=function(v,k,ie){var ae,ce;DISPATCH_EVENT$7?(ae=document$1$c.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$1$h.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$8&&(ce=global$1$h["on"+v])?ce(ae):v===UNHANDLED_REJECTION$7&&hostReportErrors$8("Unhandled promise rejection",ie)},onUnhandled$7=function(v){call$7$b(task$8,global$1$h,function(){var k=v.facade,ie=v.value,ae=isUnhandled$7(v),ce;if(ae&&(ce=perform$2$7(function(){IS_NODE$9?process2$2.emit("unhandledRejection",ie,k):dispatchEvent$7(UNHANDLED_REJECTION$7,k,ie)}),v.rejection=IS_NODE$9||isUnhandled$7(v)?UNHANDLED$7:HANDLED$7,ce.error))throw ce.value})},isUnhandled$7=function(v){return v.rejection!==HANDLED$7&&!v.parent},onHandleUnhandled$7=function(v){call$7$b(task$8,global$1$h,function(){var k=v.facade;IS_NODE$9?process2$2.emit("rejectionHandled",k):dispatchEvent$7(REJECTION_HANDLED$7,k,v.value)})},bind$1$b=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$7=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$7,notify$8(v,!0))},internalResolve$7=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$h("Promise can't be resolved itself");var ae=isThenable$7(k);ae?microtask$8(function(){var ce={done:!1};try{call$7$b(ae,k,bind$1$b(internalResolve$7,ce,v),bind$1$b(internalReject$7,ce,v))}catch(fe){internalReject$7(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$7,notify$8(v,!1))}catch(ce){internalReject$7({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$7&&(PromiseConstructor$7=function(k){anInstance$d(this,PromisePrototype$7),aCallable$3$b(k),call$7$b(Internal$7,this);var ie=getInternalPromiseState$7(this);try{k(bind$1$b(internalResolve$7,ie),bind$1$b(internalReject$7,ie))}catch(ae){internalReject$7(ie,ae)}},PromisePrototype$7=PromiseConstructor$7.prototype,Internal$7=function(k){setInternalState$e(this,{type:PROMISE$7,done:!1,notified:!1,parent:!1,reactions:new Queue$8,rejection:!1,state:PENDING$7,value:void 0})},Internal$7.prototype=defineBuiltIn$2$d(PromisePrototype$7,"then",function(k,ie){var ae=getInternalPromiseState$7(this),ce=newPromiseCapability$1$7(speciesConstructor$c(this,PromiseConstructor$7));return ae.parent=!0,ce.ok=isCallable$1$h(k)?k:!0,ce.fail=isCallable$1$h(ie)&&ie,ce.domain=IS_NODE$9?process2$2.domain:void 0,ae.state==PENDING$7?ae.reactions.add(ce):microtask$8(function(){callReaction$7(ce,ae)}),ce.promise}),OwnPromiseCapability$7=function(){var v=new Internal$7,k=getInternalPromiseState$7(v);this.promise=v,this.resolve=bind$1$b(internalResolve$7,k),this.reject=bind$1$b(internalReject$7,k)},newPromiseCapabilityModule$3$7.f=newPromiseCapability$1$7=function(v){return v===PromiseConstructor$7||v===PromiseWrapper$7?new OwnPromiseCapability$7(v):newGenericPromiseCapability$7(v)},isCallable$1$h(NativePromiseConstructor$2$7)&&NativePromisePrototype$1$7!==Object.prototype)){nativeThen$7=NativePromisePrototype$1$7.then,NATIVE_PROMISE_SUBCLASSING$7||defineBuiltIn$2$d(NativePromisePrototype$1$7,"then",function(k,ie){var ae=this;return new PromiseConstructor$7(function(ce,fe){call$7$b(nativeThen$7,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1$7.constructor}catch{}setPrototypeOf$g&&setPrototypeOf$g(NativePromisePrototype$1$7,PromisePrototype$7)}$$5$7({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$7},{Promise:PromiseConstructor$7});setToStringTag$f(PromiseConstructor$7,PROMISE$7,!1);setSpecies$c(PROMISE$7);var wellKnownSymbol$2$f=wellKnownSymbol$g$4,Iterators$1$c=iterators$c,ITERATOR$2$c=wellKnownSymbol$2$f("iterator"),ArrayPrototype$d=Array.prototype,isArrayIteratorMethod$1$b=function(v){return v!==void 0&&(Iterators$1$c.Array===v||ArrayPrototype$d[ITERATOR$2$c]===v)},classof$p=classof$5$a,getMethod$1$h=getMethod$3$8,Iterators$g=iterators$c,wellKnownSymbol$1$h=wellKnownSymbol$g$4,ITERATOR$1$c=wellKnownSymbol$1$h("iterator"),getIteratorMethod$2$b=function(v){if(v!=null)return getMethod$1$h(v,ITERATOR$1$c)||getMethod$1$h(v,"@@iterator")||Iterators$g[classof$p(v)]},call$6$d=functionCall$h,aCallable$2$b=aCallable$9$1,anObject$5$c=anObject$c$8,tryToString$1$h=tryToString$5$1,getIteratorMethod$1$b=getIteratorMethod$2$b,$TypeError$1$h=TypeError,getIterator$1$b=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$b(v):k;if(aCallable$2$b(ie))return anObject$5$c(call$6$d(ie,v));throw $TypeError$1$h(tryToString$1$h(v)+" is not iterable")},call$5$f=functionCall$h,anObject$4$d=anObject$c$8,getMethod$k=getMethod$3$8,iteratorClose$1$7=function(v,k,ie){var ae,ce;anObject$4$d(v);try{if(ae=getMethod$k(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$5$f(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$4$d(ae),ie},bind$m=functionBindContext$b,call$4$h=functionCall$h,anObject$3$f=anObject$c$8,tryToString$l=tryToString$5$1,isArrayIteratorMethod$c=isArrayIteratorMethod$1$b,lengthOfArrayLike$l=lengthOfArrayLike$5$4,isPrototypeOf$1$f=objectIsPrototypeOf$h,getIterator$c=getIterator$1$b,getIteratorMethod$d=getIteratorMethod$2$b,iteratorClose$8=iteratorClose$1$7,$TypeError$s=TypeError,Result$7=function(v,k){this.stopped=v,this.result=k},ResultPrototype$7=Result$7.prototype,iterate$2$7=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$m(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$8(pe,"normal",ur),new Result$7(!0,ur)},Or=function(ur){return ce?(anObject$3$f(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$d(v),!ye)throw $TypeError$s(tryToString$l(v)+" is not iterable");if(isArrayIteratorMethod$c(ye)){for(me=0,Ee=lengthOfArrayLike$l(v);Ee>me;me++)if(cr=Or(v[me]),cr&&isPrototypeOf$1$f(ResultPrototype$7,cr))return cr;return new Result$7(!1)}pe=getIterator$c(v,ye)}for(Br=pe.next;!($r=call$4$h(Br,pe)).done;){try{cr=Or($r.value)}catch(ur){iteratorClose$8(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$1$f(ResultPrototype$7,cr))return cr}return new Result$7(!1)},wellKnownSymbol$v=wellKnownSymbol$g$4,ITERATOR$g=wellKnownSymbol$v("iterator"),SAFE_CLOSING$b=!1;try{called$b=0,iteratorWithReturn$b={next:function(){return{done:!!called$b++}},return:function(){SAFE_CLOSING$b=!0}},iteratorWithReturn$b[ITERATOR$g]=function(){return this},Array.from(iteratorWithReturn$b,function(){throw 2})}catch(v){}var called$b,iteratorWithReturn$b,checkCorrectnessOfIteration$1$b=function(v,k){if(!k&&!SAFE_CLOSING$b)return!1;var ie=!1;try{var ae={};ae[ITERATOR$g]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1$7=promiseNativeConstructor$7,checkCorrectnessOfIteration$c=checkCorrectnessOfIteration$1$b,FORCED_PROMISE_CONSTRUCTOR$3$7=promiseConstructorDetection$7.CONSTRUCTOR,promiseStaticsIncorrectIteration$7=FORCED_PROMISE_CONSTRUCTOR$3$7||!checkCorrectnessOfIteration$c(function(v){NativePromiseConstructor$1$7.all(v).then(void 0,function(){})}),$$4$8=_export$f,call$3$h=functionCall$h,aCallable$1$h=aCallable$9$1,newPromiseCapabilityModule$2$7=newPromiseCapability$2$7,perform$1$7=perform$3$7,iterate$1$7=iterate$2$7,PROMISE_STATICS_INCORRECT_ITERATION$1$7=promiseStaticsIncorrectIteration$7;$$4$8({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$7},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$7.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$7(function(){var ve=aCallable$1$h(ie.resolve),pe=[],ye=0,me=1;iterate$1$7(k,function(Ee){var cr=ye++,Br=!1;me++,call$3$h(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$3$b=_export$f,FORCED_PROMISE_CONSTRUCTOR$2$7=promiseConstructorDetection$7.CONSTRUCTOR,NativePromiseConstructor$a=promiseNativeConstructor$7,getBuiltIn$1$h=getBuiltIn$8$7,isCallable$z=isCallable$l$3,defineBuiltIn$1$h=defineBuiltIn$6$a,NativePromisePrototype$8=NativePromiseConstructor$a&&NativePromiseConstructor$a.prototype;$$3$b({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$7,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$z(NativePromiseConstructor$a)&&(method$7=getBuiltIn$1$h("Promise").prototype.catch,NativePromisePrototype$8.catch!==method$7&&defineBuiltIn$1$h(NativePromisePrototype$8,"catch",method$7,{unsafe:!0}));var method$7,$$2$b=_export$f,call$2$h=functionCall$h,aCallable$o=aCallable$9$1,newPromiseCapabilityModule$1$7=newPromiseCapability$2$7,perform$a=perform$3$7,iterate$9=iterate$2$7,PROMISE_STATICS_INCORRECT_ITERATION$8=promiseStaticsIncorrectIteration$7;$$2$b({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$8},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$7.f(ie),ce=ae.reject,fe=perform$a(function(){var le=aCallable$o(ie.resolve);iterate$9(k,function(ve){call$2$h(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$1$b=_export$f,call$1$h=functionCall$h,newPromiseCapabilityModule$a=newPromiseCapability$2$7,FORCED_PROMISE_CONSTRUCTOR$1$7=promiseConstructorDetection$7.CONSTRUCTOR;$$1$b({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$7},{reject:function v(k){var ie=newPromiseCapabilityModule$a.f(this);return call$1$h(ie.reject,void 0,k),ie.promise}});var anObject$2$h=anObject$c$8,isObject$s=isObject$8$5,newPromiseCapability$9=newPromiseCapability$2$7,promiseResolve$1$7=function(v,k){if(anObject$2$h(v),isObject$s(k)&&k.constructor===v)return k;var ie=newPromiseCapability$9.f(v),ae=ie.resolve;return ae(k),ie.promise},$$m=_export$f,getBuiltIn$p=getBuiltIn$8$7,FORCED_PROMISE_CONSTRUCTOR$c=promiseConstructorDetection$7.CONSTRUCTOR,promiseResolve$8=promiseResolve$1$7;getBuiltIn$p("Promise");$$m({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$c},{resolve:function v(k){return promiseResolve$8(this,k)}});var HardwareWalletAccountsForm=({accounts:v,onSelectedChanged:k,onSubmit:ie,onChangeRoute:ae})=>(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"choose-ledger-account-form-wrapper"},{children:[(0,import_jsx_runtime.jsxs)("p",{children:["We found ",v.length," accounts on your device. Select the account(s) you wish to connect."]}),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"button-wrapper"},{children:(0,import_jsx_runtime.jsx)("button",Object.assign({onClick:()=>{ae("SpecifyHDPath")}},{children:"HD.../0"}))})),(0,import_jsx_runtime.jsx)("form",Object.assign({className:"form",onSubmit:ce=>{ie(v,ce)}},{children:(0,import_jsx_runtime.jsxs)("div",{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"nws-form-control"},{children:v.map((ce,fe)=>(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"account"},{children:[(0,import_jsx_runtime.jsx)("input",{onChange:le=>{k(fe,le.target.checked)},checked:ce.selected,type:"checkbox",id:ce.accountId,name:ce.accountId,value:ce.accountId}),(0,import_jsx_runtime.jsxs)("label",Object.assign({htmlFor:ce.accountId},{children:[" ",ce.accountId]})),(0,import_jsx_runtime.jsx)("br",{})]}),fe))})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"action-buttons"},{children:(0,import_jsx_runtime.jsx)("button",Object.assign({className:"middleButton",type:"submit",disabled:!v.some(ce=>ce.selected)},{children:"Connect"}))}))]})}))]})),img="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAR3SURBVHgBpVZ9aJVVGH+e55z33bi7zY9hMz+yMAeNoEIq6A9ZRKQWEsQNFIIpsf5Y9E+GsD9iBEEDMU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qZHa/XGwWPg9aAwwzdZAaDX+7tbNsMYf5+bpaUS0dDQEF8rtsUxCbI5e5KRzGhBMiqNxllKju7d8NOYXjseRBytQngcVDL3wD9H+7vf3YS7mnnzqrZpwSxrwkh04cpM5NTMyJdHbIgaESyxJ6tZ5cDbw3qd0tqVCp25Se/4yYdr5/zm/ehjwvpxZHgN0Wlub0/Yt7awdykqRYFHy6NUQVrBd4o6p6ngrVL2Bo8ksuJqoXzq9Ln9m6rj9U74b6Wjo8OeP082aY5NUxRsYzwDkeFsU+MdUU3U4PG0QtbahqhadDMuHTy4fvS/9EwIUpdeuW/ZiShOipFxURRbNdWETFMRZrCFlEZGkuPHdycTafgLExNiI6YfUpcAAAAASUVORK5CYII=",WalletConnecting=({wallet:v,onCloseModal:k})=>(0,import_jsx_runtime.jsxs)(import_react.Fragment,{children:[(0,import_jsx_runtime.jsx)(ModalHeader,{title:"",onCloseModal:k}),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"connecting-wrapper"},{children:(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"icon"},{children:(0,import_jsx_runtime.jsx)("img",{src:v==null?void 0:v.metadata.iconUrl,alt:v==null?void 0:v.metadata.name})})),(0,import_jsx_runtime.jsx)("h3",Object.assign({className:"connecting-name"},{children:v==null?void 0:v.metadata.name})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"connecting-details"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"spinner"},{children:(0,import_jsx_runtime.jsx)("img",{src:img,alt:"loading-icon"})})),(0,import_jsx_runtime.jsxs)("span",{children:[translate("modal.wallet.connectingTo")," ",v==null?void 0:v.metadata.name,"..."]})]})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"connecting-message"},{children:(0,import_jsx_runtime.jsx)("span",{children:translate(`modal.wallet.connectingMessage.${v==null?void 0:v.type}`)})}))]}))}))]}),LedgerDeviceIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:"317",height:"157",viewBox:"0 0 317 157",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M249.99 16.0994C270.063 -0.864155 289.788 1.58873 301.497 10.7365C307.402 15.3499 311.278 21.6575 312.267 28.1258C313.247 34.5412 311.413 41.2233 305.692 46.8044C297.366 54.9273 286.343 55.3362 273.015 51.5109C261.654 48.25 249.058 42.0377 235.726 35.4627L235.726 35.4626L235.717 35.458C233.367 34.2992 230.995 33.129 228.602 31.9618C212.742 24.2253 196.067 16.6575 179.842 13.8595C163.538 11.0479 147.552 13.0313 133.266 24.522C128.032 28.732 123.478 35.2086 121.716 44.8205C119.961 54.3947 120.992 66.9771 126.703 83.4311C135.432 108.583 132.899 126.677 123.575 138.063C114.217 149.491 97.5614 154.733 76.7887 153.121C55.0043 151.43 29.0621 142.206 3.29867 125.227L0.887817 127.942C27.2472 145.405 53.9251 154.952 76.5105 156.705C97.9028 158.365 115.96 153.035 126.356 140.341C136.785 127.606 139.045 108.029 130.099 82.2524C124.521 66.1801 123.642 54.2493 125.252 45.4687C126.854 36.7258 130.94 31.006 135.519 27.3232C148.794 16.6458 163.649 14.715 179.231 17.4021C194.891 20.1027 211.146 27.4463 227.026 35.1928C229.381 36.3415 231.729 37.5001 234.066 38.6531L234.073 38.6568C247.382 45.223 260.324 51.608 272.024 54.9662C285.819 58.9258 298.493 58.8501 308.202 49.3776C314.764 42.9759 316.974 35.1288 315.82 27.5826C314.675 20.0893 310.237 13.0029 303.71 7.90363C290.555 -2.37382 268.938 -4.62038 247.67 13.3537L249.99 16.0994Z",fill:"url(#paint0_linear_3_672)"}),(0,import_jsx_runtime.jsx)("path",{d:"M260.264 17.8767L177.605 89.4649L157.679 73.9664L239.23 3.85423L260.264 17.8767Z",fill:"#6A7075"}),(0,import_jsx_runtime.jsx)("path",{d:"M205.939 54.4577L199.764 50.2636L233.316 20.9053L239.907 25.8395L205.939 54.4577Z",fill:"#494E52"}),(0,import_jsx_runtime.jsx)("path",{d:"M260.264 17.8757L177.605 89.4639L182.033 98.3202L264.323 26.363L260.264 17.8757Z",fill:"#494E52"}),(0,import_jsx_runtime.jsx)("path",{d:"M177.236 89.4646L181.295 98.3209L165.059 85.7745L170.963 85.0365L177.236 89.4646Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{d:"M93.4708 99.6384L91.9948 110.13L174.653 92.894L164.69 85.7749L93.4708 99.6384Z",fill:"#DCDADA"}),(0,import_jsx_runtime.jsx)("path",{d:"M93.1157 104.323L94.314 100.129L165.613 86.3483L169.208 89.344L93.1157 104.323Z",fill:"#C1C1C1"}),(0,import_jsx_runtime.jsx)("path",{d:"M94.2086 99.7963L86.0903 101.272L92.3635 110.129L94.2086 99.7963Z",fill:"#B3AAAA"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M86.0903 100.907L89.0027 74.1304L178.455 55.2416C184.695 53.9962 195.766 54.7675 197.177 63.7058C198.284 70.717 195.506 73.9943 191.628 77.3592C188.495 80.0671 180.152 82.4646 178.343 82.8944C178.293 82.9064 178.241 82.9188 178.186 82.9319C177.38 83.1245 176.007 83.4525 170.644 84.5088C169.085 84.8158 167.382 85.1501 165.557 85.5078L164.933 85.63C146.312 89.2764 115.528 95.2297 93.9844 99.3849C91.1808 99.9257 88.5337 100.436 86.0903 100.907ZM185.076 75.554C190.748 73.3535 193.99 68.0745 192.318 63.7631C190.645 59.4517 184.691 57.7405 179.019 59.941C173.347 62.1416 170.105 67.4206 171.778 71.732C173.45 76.0434 179.404 77.7546 185.076 75.554Z",fill:"#F4F1E8"}),(0,import_jsx_runtime.jsx)("path",{d:"M199.764 50.3994L196.768 48.3043L232.194 18.0454L233.316 21.6403L199.764 50.3994Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{d:"M239.968 25.9943L232.588 20.4592V17.5071L241.813 24.5183L239.968 25.9943Z",fill:"black"}),(0,import_jsx_runtime.jsx)("ellipse",{cx:"182.084",cy:"68.0811",rx:"10.242",ry:"7.46772",transform:"rotate(-23.7949 182.084 68.0811)",fill:"#494E52"}),(0,import_jsx_runtime.jsx)("ellipse",{cx:"182.084",cy:"68.0816",rx:"6.68462",ry:"4.87394",transform:"rotate(-23.7949 182.084 68.0816)",fill:"#494E52"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M238.725 2.93094L260.368 17.2564L264.865 26.4556L181.615 99.0341L175.16 94.311L92.0028 110.947L85.3267 101.399L88.3269 73.8157L178.118 54.8553L238.725 2.93094ZM178.599 56.2622L89.6786 75.0388L86.9321 100.29C89.0979 99.8725 91.4124 99.4263 93.8446 98.9572C115.388 94.8019 146.171 88.8488 164.791 85.2026L165.415 85.0804C167.24 84.7228 168.943 84.3885 170.501 84.0816C175.853 83.0275 177.219 82.701 178.015 82.5107C178.07 82.4976 178.122 82.4852 178.173 82.4732C179.048 82.2652 181.558 81.5669 184.235 80.5851C186.742 79.6655 189.286 78.5354 190.802 77.3758L191.151 77.0922L191.644 76.6595C193.341 75.147 194.723 73.6739 195.61 71.871C196.571 69.916 196.982 67.5029 196.448 64.1178C195.8 60.0131 192.959 57.7574 189.408 56.6566C185.833 55.5483 181.637 55.6566 178.603 56.2615C178.601 56.2617 178.6 56.262 178.599 56.2622ZM192.631 77.7565L259.555 18.9531L263.042 26.0869L181.808 96.9078L178.132 89.5713L191.724 78.529C191.859 78.4249 191.988 78.32 192.11 78.2144L192.111 78.2136C192.286 78.0617 192.46 77.9094 192.631 77.7565ZM185.491 81.6908C185.24 81.7868 184.99 81.8802 184.743 81.9709C182.013 82.9723 179.447 83.6875 178.514 83.9093C178.463 83.9213 178.411 83.9338 178.356 83.9468C177.635 84.1192 176.472 84.3971 172.491 85.1919L177.172 88.4492L185.491 81.6908ZM176.631 89.8707L170.479 85.5903C169.306 85.8213 168.054 86.0673 166.731 86.3265L175.769 92.9276L179.548 95.6924L176.631 89.8707ZM164.758 86.7132C146.252 90.3362 116.027 96.1817 94.6324 100.308L93.2258 109.197L173.543 93.1293L164.758 86.7132ZM91.888 108.207L93.0909 100.606C91.0848 100.993 89.1642 101.363 87.3471 101.713L91.888 108.207ZM258.581 17.8436L197.306 71.6841C198.142 69.5779 198.41 67.0795 197.906 63.8876C197.143 59.0539 193.743 56.4549 189.845 55.2467C186.921 54.3402 183.662 54.1916 180.861 54.449L238.84 4.77668L258.581 17.8436ZM232.505 16.82L243.089 24.5643L205.915 56.5106L196.042 48.0665L232.505 16.82ZM232.118 19.096L198.312 48.0654L199.744 49.29L232.584 20.9424L232.118 19.096ZM233.456 22.1396L200.878 50.2604L205.913 54.5664L239.041 26.0969L233.456 22.1396ZM240.195 25.1054L240.717 24.6571L233.759 19.5663L234.06 20.7586L240.195 25.1054Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M190.194 69.9744C191.32 68.1409 191.576 66.2271 190.942 64.5937C190.308 62.9603 188.829 61.7198 186.761 61.1254C184.691 60.5307 182.116 60.6196 179.553 61.6139C176.991 62.6081 175.029 64.2794 173.902 66.1141C172.776 67.9477 172.52 69.8614 173.154 71.4948C173.788 73.1282 175.267 74.3687 177.335 74.9631C179.405 75.5578 181.98 75.4689 184.543 74.4746C187.105 73.4804 189.067 71.8091 190.194 69.9744ZM185.077 75.8508C190.749 73.6502 193.991 68.3712 192.318 64.0598C190.645 59.7484 184.691 58.0372 179.019 60.2378C173.347 62.4383 170.105 67.7173 171.778 72.0287C173.451 76.3401 179.405 78.0513 185.077 75.8508Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M187.391 69.169C188.127 67.9713 188.266 66.7721 187.881 65.7812C187.497 64.7903 186.586 63.9984 185.235 63.6102C183.883 63.2216 182.173 63.2741 180.456 63.9404C178.738 64.6068 177.441 65.7208 176.705 66.9196C175.969 68.1172 175.83 69.3165 176.215 70.3074C176.599 71.2983 177.511 72.0901 178.861 72.4783C180.214 72.8669 181.923 72.8144 183.64 72.1481C185.358 71.4818 186.655 70.3678 187.391 69.169ZM184.174 73.5242C188.156 71.9795 190.432 68.2738 189.257 65.2473C188.083 62.2208 183.904 61.0196 179.922 62.5643C175.94 64.1091 173.665 67.8148 174.839 70.8412C176.013 73.8677 180.193 75.0689 184.174 73.5242Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{d:"M240.499 41.2441C239.744 40.3649 239.844 39.04 240.724 38.285L249.781 30.5067C250.66 29.7516 251.985 29.8523 252.74 30.7315V30.7315C253.495 31.6108 253.395 32.9356 252.516 33.6907L243.458 41.469C242.579 42.224 241.254 42.1234 240.499 41.2441V41.2441Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M250.743 31.6265L241.685 39.4048C241.424 39.6287 241.395 40.0217 241.619 40.2825C241.842 40.5433 242.235 40.5731 242.496 40.3492L251.554 32.5709C251.815 32.3469 251.845 31.954 251.621 31.6932C251.397 31.4324 251.004 31.4025 250.743 31.6265ZM240.724 38.285C239.844 39.04 239.744 40.3649 240.499 41.2441C241.254 42.1234 242.579 42.224 243.458 41.469L252.516 33.6907C253.395 32.9356 253.495 31.6108 252.74 30.7315C251.985 29.8523 250.66 29.7516 249.781 30.5067L240.724 38.285Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{d:"M205.779 71.4647C205.005 70.5642 205.108 69.2073 206.009 68.4339L214.989 60.7218C215.89 59.9485 217.247 60.0516 218.02 60.9521V60.9521C218.793 61.8526 218.69 63.2095 217.79 63.9829L208.809 71.695C207.909 72.4683 206.552 72.3652 205.779 71.4647V71.4647Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M215.951 61.8416L206.97 69.5537C206.688 69.796 206.656 70.221 206.898 70.5031C207.141 70.7851 207.566 70.8174 207.848 70.5752L216.828 62.863C217.11 62.6208 217.143 62.1958 216.9 61.9137C216.658 61.6317 216.233 61.5994 215.951 61.8416ZM206.009 68.4339C205.108 69.2073 205.005 70.5642 205.779 71.4647C206.552 72.3652 207.909 72.4683 208.809 71.695L217.79 63.9829C218.69 63.2095 218.793 61.8526 218.02 60.9521C217.247 60.0516 215.89 59.9485 214.989 60.7218L206.009 68.4339Z",fill:"black"}),(0,import_jsx_runtime.jsx)("circle",{cx:"141.356",cy:"19.525",r:"10.1855",fill:"#FE89B4"}),(0,import_jsx_runtime.jsx)("ellipse",{cx:"139.062",cy:"14.7094",rx:"2.42519",ry:"1.94015",transform:"rotate(-34.544 139.062 14.7094)",fill:"#FDF7FF"}),(0,import_jsx_runtime.jsx)("circle",{cx:"252.489",cy:"79.7577",r:"7.78893",fill:"#EC5236"}),(0,import_jsx_runtime.jsx)("ellipse",{cx:"250.434",cy:"76.3701",rx:"2.61272",ry:"2.09018",transform:"rotate(-34.544 250.434 76.3701)",fill:"#EDB69D"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100.436 79.9254C100.461 79.6567 100.732 79.3897 101.042 79.329L106.657 78.2299C107.587 78.0478 108.281 78.5536 108.207 79.3596L107.759 84.2243C107.734 84.493 107.463 84.76 107.153 84.8207L100.416 86.1396C100.106 86.2003 99.8742 86.0317 99.899 85.7631L100.436 79.9254Z",fill:"#B3AAAA"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.8553 81.7775C95.9294 80.9715 96.7437 80.1704 97.6739 79.9883L98.7968 79.7685C99.1069 79.7078 99.3382 79.8764 99.3135 80.1451L99.1344 82.091C99.1096 82.3597 98.8382 82.6267 98.5282 82.6874L96.2824 83.127C95.9723 83.1877 95.741 83.0191 95.7657 82.7505L95.8553 81.7775Z",fill:"#B3AAAA"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.5865 84.6965C95.6112 84.4278 95.8826 84.1608 96.1927 84.1001L98.4385 83.6605C98.7486 83.5998 98.9799 83.7684 98.9552 84.037L98.7761 85.9829C98.7513 86.2516 98.4799 86.5186 98.1699 86.5793L95.9241 87.019C95.614 87.0797 95.3827 86.9111 95.4074 86.6424L95.5865 84.6965Z",fill:"#B3AAAA"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.2282 88.5884C95.2529 88.3197 95.5244 88.0527 95.8344 87.992L98.0802 87.5524C98.3903 87.4917 98.6216 87.6603 98.5969 87.929L98.4178 89.8749C98.3931 90.1435 98.1216 90.4105 97.8116 90.4712L96.6887 90.6911C95.7584 90.8732 95.0645 90.3674 95.1387 89.5614L95.2282 88.5884Z",fill:"#B3AAAA"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.7197 87.709C99.7444 87.4403 100.016 87.1733 100.326 87.1126L102.572 86.673C102.882 86.6123 103.113 86.7809 103.088 87.0496L102.909 88.9955C102.885 89.2641 102.613 89.5312 102.303 89.5919L100.057 90.0315C99.7472 90.0922 99.5159 89.9236 99.5406 89.6549L99.7197 87.709Z",fill:"#B3AAAA"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.211 86.8298C104.236 86.5611 104.507 86.2941 104.817 86.2334L107.063 85.7938C107.373 85.7331 107.605 85.9017 107.58 86.1704L107.49 87.1433C107.416 87.9493 106.602 88.7504 105.672 88.9325L104.549 89.1523C104.239 89.213 104.007 89.0444 104.032 88.7757L104.211 86.8298Z",fill:"#B3AAAA"}),(0,import_jsx_runtime.jsx)("defs",{children:(0,import_jsx_runtime.jsxs)("linearGradient",Object.assign({id:"paint0_linear_3_672",x1:"-44.5195",y1:"122.42",x2:"263.357",y2:"-8.65023",gradientUnits:"userSpaceOnUse"},{children:[(0,import_jsx_runtime.jsx)("stop",{offset:"0.110697",stopColor:"#232323"}),(0,import_jsx_runtime.jsx)("stop",{offset:"1",stopColor:"#3D3D3D"})]}))})]})),UpArrowIcon=()=>(0,import_jsx_runtime.jsx)("svg",Object.assign({width:"10",height:"7",viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,import_jsx_runtime.jsx)("path",{d:"M9 5.4762L5 1.4762L1 5.4762",stroke:"#4F7CD1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),DownArrowIcon=()=>(0,import_jsx_runtime.jsx)("svg",Object.assign({width:"10",height:"7",viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,import_jsx_runtime.jsx)("path",{d:"M1 1.52382L5 5.52382L9 1.52382",stroke:"#4F7CD1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),DEFAULT_DERIVATION_PATH="44'/397'/0'/0'/1'",DerivationPath=({selector:v,options:k,onBack:ie,onConnected:ae,params:ce,onError:fe,onCloseModal:le})=>{const[ve,pe]=(0,import_react.useState)("EnterDerivationPath"),[ye,me]=(0,import_react.useState)(DEFAULT_DERIVATION_PATH),[Ee,cr]=(0,import_react.useState)(1),[Br,$r]=(0,import_react.useState)([]),[Pr,Or]=(0,import_react.useState)([]),[ur,jr]=(0,import_react.useState)(),[Mr,Lr]=(0,import_react.useState)(""),[Vr,Gr]=(0,import_react.useState)(!1),Ur=translate("modal.ledger.connectWithLedger"),[Qr,vn]=(0,import_react.useState)(Ur),Yt=kr=>__awaiter$k(void 0,void 0,void 0,function*(){const xr=yield fetch(`${v.options.network.indexerUrl}/publicKey/ed25519:${kr}/accounts`);if(!xr.ok)throw new Error("Failed to get account id from public key");const Wr=yield xr.json();return!Array.isArray(Wr)||!Wr.length?[]:Wr}),fn=kr=>__awaiter$k(void 0,void 0,void 0,function*(){const xr=yield kr.getPublicKey(ye);try{return(yield Yt(xr)).map((Jt,Xr)=>({derivationPath:ye,publicKey:xr,accountId:Jt,selected:Xr===0}))}catch{return null}}),Xt=()=>__awaiter$k(void 0,void 0,void 0,function*(){const kr=yield v.wallet(ce.walletId);if(kr.type==="hardware"){Gr(!0),jr(kr);try{const xr=yield fn(kr);if(!xr){pe("AddCustomAccountId");return}const Wr=xr.length===0,Jt=xr.length>1;if(Wr){vn(translate("modal.ledger.noAccountsFound")),pe("NoAccountsFound");return}$r(xr),Jt?(vn(translate("modal.ledger.selectYourAccounts")),pe("ChooseAccount")):(Or(xr),pe("OverviewAccounts"))}catch(xr){Gr(!1);const Wr=xr instanceof Error?xr.message:"Something went wrong";fe(Wr,kr)}finally{Gr(!1)}}}),Qt=()=>__awaiter$k(void 0,void 0,void 0,function*(){try{Gr(!0);const kr=yield ur.getPublicKey(ye),xr=[{derivationPath:ye,publicKey:kr,accountId:Mr,selected:!0}];$r(xr),Or(xr),vn(translate("modal.ledger.connecting1Account")),pe("OverviewAccounts")}catch(kr){Gr(!1);const xr=kr instanceof Error?kr.message:"Something went wrong";fe(xr,ur)}finally{Gr(!1)}}),Kr=()=>{const kr=Pr.map(xr=>({derivationPath:xr.derivationPath,publicKey:xr.publicKey,accountId:xr.accountId}));return ur.signIn({contractId:k.contractId,methodNames:k.methodNames,accounts:kr}).then(()=>ae()).catch(xr=>{fe(`Error: ${xr.message}`,ur)})},be=()=>{(ve==="SpecifyHDPath"||ve==="NoAccountsFound"||ve==="ChooseAccount")&&(vn(translate("modal.ledger.connectWithLedger")),pe("EnterDerivationPath")),ve==="OverviewAccounts"&&(vn(translate("modal.ledger.selectYourAccounts")),pe("ChooseAccount"))};return Vr?(0,import_jsx_runtime.jsx)("div",Object.assign({className:"derivation-path-wrapper"},{children:(0,import_jsx_runtime.jsx)(WalletConnecting,{wallet:ur,onBack:()=>{Gr(!1)},onCloseModal:le})})):(0,import_jsx_runtime.jsxs)(import_react.Fragment,{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal-header-wrapper"},{children:[(ve==="SpecifyHDPath"||ve==="NoAccountsFound"||ve==="ChooseAccount"||ve==="OverviewAccounts")&&(0,import_jsx_runtime.jsx)(BackArrow,{onClick:be}),(0,import_jsx_runtime.jsx)(ModalHeader,{title:Qr,onCloseModal:le})]})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"derivation-path-wrapper"},{children:[ve==="EnterDerivationPath"&&(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"enter-derivation-path"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"ledger-image"},{children:(0,import_jsx_runtime.jsx)(LedgerDeviceIcon,{})})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"ledger-description"},{children:[(0,import_jsx_runtime.jsx)("p",{children:translate("modal.ledger.makeSureYourLedger")}),(0,import_jsx_runtime.jsx)("p",Object.assign({className:"specify-path",onClick:()=>{vn(translate("modal.ledger.specifyHDPath")),pe("SpecifyHDPath")}},{children:translate("modal.ledger.specifyHDPath")}))]})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"action-buttons"},{children:(0,import_jsx_runtime.jsx)("button",Object.assign({className:"middleButton",onClick:Xt},{children:translate("modal.ledger.continue")}))}))]})),ve==="SpecifyHDPath"&&(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"specify-path-wrapper"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"change-path-wrapper"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"display-path"},{children:(0,import_jsx_runtime.jsx)("span",{children:ye.slice(0,-2)})})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"change-path"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"path-value"},{children:(0,import_jsx_runtime.jsx)("span",{children:Ee})})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"buttons-wrapper"},{children:[(0,import_jsx_runtime.jsx)("button",Object.assign({onClick:()=>{const kr=Ee+1,xr=ye.slice(0,-2);me(`${xr}${kr}'`),cr(kr)}},{children:(0,import_jsx_runtime.jsx)(UpArrowIcon,{})})),(0,import_jsx_runtime.jsx)("button",Object.assign({onClick:()=>{const kr=Ee-1;if(kr<0)return;const xr=ye.slice(0,-2);me(`${xr}${kr}'`),cr(kr)}},{children:(0,import_jsx_runtime.jsx)(DownArrowIcon,{})}))]}))]}))]})),(0,import_jsx_runtime.jsx)("p",Object.assign({className:"path-description"},{children:translate("modal.ledger.enterYourPreferredHDPath")})),(0,import_jsx_runtime.jsx)("p",Object.assign({className:"what-link"},{children:(0,import_jsx_runtime.jsx)("a",Object.assign({href:"https://www.ledger.com/academy/crypto/what-are-hierarchical-deterministic-hd-wallets",target:"_blank"},{children:"What's this?"}))})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"action-buttons"},{children:(0,import_jsx_runtime.jsx)("button",Object.assign({className:"middleButton",onClick:Xt},{children:translate("modal.ledger.scan")}))}))]})),ve==="NoAccountsFound"&&(0,import_jsx_runtime.jsx)("div",Object.assign({className:"no-accounts-found-wrapper"},{children:(0,import_jsx_runtime.jsxs)("p",{children:[translate("modal.ledger.cantFindAnyAccount")," ",(0,import_jsx_runtime.jsx)("a",Object.assign({href:`https://${v.options.network.networkId==="testnet"?"testnet":"app"}.mynearwallet.com/create`,target:"_blank"},{children:"MyNearWallet"}))," ",translate("modal.ledger.orConnectAnAnotherLedger")]})})),ve==="ChooseAccount"&&(0,import_jsx_runtime.jsx)(HardwareWalletAccountsForm,{accounts:Br,onSelectedChanged:(kr,xr)=>{$r(Wr=>[...Wr.map((Xr,zr)=>{const Jr=kr===zr?xr:Xr.selected;return Object.assign(Object.assign({},Xr),{selected:Jr})})])},onSubmit:(kr,xr)=>{xr.preventDefault();const Wr=kr.filter(Xr=>Xr.selected);Or(Wr);const Jt=Wr.length;vn(`${translate("modal.ledger.connecting")} ${Jt} ${translate("modal.ledger.ofAccounts")}`),pe("OverviewAccounts")},onChangeRoute:kr=>{kr==="SpecifyHDPath"&&vn(translate("modal.ledger.specifyHDPath")),pe(kr)}}),ve==="AddCustomAccountId"&&(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"enter-custom-account"},{children:[(0,import_jsx_runtime.jsx)("p",{children:translate("modal.ledger.failedToAutomatically")}),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"input-wrapper"},{children:(0,import_jsx_runtime.jsx)("input",{type:"text",placeholder:"Account ID",value:Mr,onChange:kr=>{Lr(kr.target.value)}})})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"action-buttons"},{children:(0,import_jsx_runtime.jsx)("button",Object.assign({className:"middleButton",onClick:Qt},{children:translate("ledger.Continue")}))}))]})),ve==="OverviewAccounts"&&(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"overview-wrapper"},{children:[(0,import_jsx_runtime.jsx)("p",{children:translate("modal.ledger.overviewTheListOfAuthorized")}),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"accounts"},{children:Pr.map((kr,xr)=>(0,import_jsx_runtime.jsx)("div",{children:(0,import_jsx_runtime.jsx)("div",Object.assign({className:"account"},{children:(0,import_jsx_runtime.jsx)("span",{children:kr.accountId})}))},kr.accountId))})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"action-buttons"},{children:(0,import_jsx_runtime.jsx)("button",Object.assign({className:"middleButton",onClick:Kr,disabled:Br.length===0},{children:translate("modal.ledger.finish")}))}))]}))]}))]})},WalletNotInstalled=({module:v,onBack:k,onCloseModal:ie})=>(0,import_jsx_runtime.jsxs)(import_react.Fragment,{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal-header-wrapper"},{children:[(0,import_jsx_runtime.jsx)(BackArrow,{onClick:k}),(0,import_jsx_runtime.jsx)(ModalHeader,{title:"",onCloseModal:ie})]})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-not-installed-wrapper"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-data"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:`wallet-icon-box ${v.id}`},{children:(0,import_jsx_runtime.jsx)("img",{src:v.metadata.iconUrl,alt:v.metadata.name})})),(0,import_jsx_runtime.jsx)("p",{children:v.metadata.name})]})),(0,import_jsx_runtime.jsxs)("p",{children:[translate("modal.install.youllNeedToInstall")," ",v.metadata.name," ",translate("modal.install.toContinueAfterInstalling"),(0,import_jsx_runtime.jsxs)("span",Object.assign({className:"refresh-link",onClick:()=>window.location.reload()},{children:[" ",translate("modal.install.refreshThePage")]}))]}),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"action-buttons"},{children:(0,import_jsx_runtime.jsxs)("button",Object.assign({className:"middleButton",onClick:()=>{v.type==="injected"&&window.open(v.metadata.downloadUrl,"_blank")}},{children:[translate("modal.install.open")," ",v.metadata.name]}))}))]}))]}),QRIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("path",{d:"M7.22224 1.33334H1.44446V6.66668H7.22224V1.33334Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M15.8889 1.33334H10.1111V6.66668H15.8889V1.33334Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M7.22224 9.33334H1.44446V14.6667H7.22224V9.33334Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M10.1111 13.1429V14.6667H15.8889M10.1111 9.33334V10.8572H12.5873V9.33334H15.8889V12.381",stroke:"#4C5155",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("rect",{x:"3.61108",y:"3.33334",width:"1.44444",height:"1.33333",fill:"#4C5155"}),(0,import_jsx_runtime.jsx)("rect",{x:"3.61108",y:"11.3333",width:"1.44444",height:"1.33333",fill:"#4C5155"}),(0,import_jsx_runtime.jsx)("rect",{x:"12.2778",y:"3.33334",width:"1.44445",height:"1.33333",fill:"#4C5155"})]})),LinkIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("path",{d:"M13 8.66667V12.6667C13 13.0203 12.8478 13.3594 12.577 13.6095C12.3061 13.8595 11.9387 14 11.5556 14H3.61113C3.22804 14 2.86064 13.8595 2.58975 13.6095C2.31887 13.3594 2.16669 13.0203 2.16669 12.6667V5.33333C2.16669 4.97971 2.31887 4.64057 2.58975 4.39052C2.86064 4.14048 3.22804 4 3.61113 4H7.94447",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M10.8333 2H15.1666V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M7.22223 9.33333L15.1667 2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})),KeyIcon=()=>(0,import_jsx_runtime.jsx)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,import_jsx_runtime.jsx)("path",{d:"M33.5 1.83325L30.1666 5.16658M17.4818 17.8514C19.1406 19.5103 20.1666 21.8019 20.1666 24.3333C20.1666 29.3959 16.0626 33.4999 11 33.4999C5.93735 33.4999 1.8333 29.3959 1.8333 24.3333C1.8333 19.2706 5.93735 15.1666 11 15.1666C13.5313 15.1666 15.8229 16.1926 17.4818 17.8514ZM17.4818 17.8514L24.3333 10.9999M24.3333 10.9999L29.3333 15.9999L35.1666 10.1666L30.1666 5.16658M24.3333 10.9999L30.1666 5.16658",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})),FolderIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("circle",{cx:"28.3333",cy:"23.8333",r:"1.66667",fill:"currentColor"}),(0,import_jsx_runtime.jsx)("path",{d:"M35 12.1667H7C5.89543 12.1667 5 11.2712 5 10.1667V7.5C5 6.39543 5.89543 5.5 7 5.5H31.6667",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M35 12.1667V35.5H7C5.89543 35.5 5 34.6046 5 33.5V8.83334",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})),WalletHome=({selector:v,onCloseModal:k})=>{const[ie,ae]=(0,import_react.useState)([]),[ce,fe]=(0,import_react.useState)("WalletInfo");(0,import_react.useEffect)(()=>{const ve=v.store.observable.subscribe(pe=>{const ye=Ee=>Ee.type!=="bridge"&&Ee.type!=="hardware"&&Ee.type!=="instant-link",me=pe.modules.filter(ye);ae(me)});return()=>ve.unsubscribe()},[]);const le=ve=>{let pe="";return ve.type==="injected"&&(pe=ve.metadata.downloadUrl),ve.type==="browser"&&(pe=ve.metadata.walletUrl),pe};return(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-home-wrapper"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal-header-wrapper"},{children:[ce==="GetWallets"&&(0,import_jsx_runtime.jsx)(BackArrow,{onClick:()=>{fe("WalletInfo")}}),(0,import_jsx_runtime.jsx)(ModalHeader,{title:translate(ce==="GetWallets"?"modal.wallet.getAWallet":"modal.wallet.whatIsAWallet"),onCloseModal:k})]})),ce==="GetWallets"&&(0,import_jsx_runtime.jsx)("div",Object.assign({className:"get-wallet-wrapper"},{children:ie.map(ve=>{const{iconUrl:pe,name:ye}=ve.metadata,me=["nearfi","here-wallet"].includes(ve.id),Ee=ve.id==="here-wallet"?"mobile":"",cr=le(ve);return(0,import_jsx_runtime.jsxs)("div",Object.assign({tabIndex:0,className:`single-wallet-get ${ve.id}`,onClick:()=>{cr&&window.open(cr,"_blank")}},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"small-icon"},{children:[me&&cr&&(0,import_jsx_runtime.jsx)(QRIcon,{}),!me&&cr&&(0,import_jsx_runtime.jsx)(LinkIcon,{})]})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"icon"},{children:(0,import_jsx_runtime.jsx)("img",{src:pe,alt:ye})})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"title"},{children:ye})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"type"},{children:translate(`modal.walletTypes.${Ee||ve.type}`)}))]}))]}),ve.id)})})),ce==="WalletInfo"&&(0,import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment,{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-info-wrapper what-wallet-hide"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-what"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"icon-side"},{children:(0,import_jsx_runtime.jsx)(KeyIcon,{})})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content-side"},{children:[(0,import_jsx_runtime.jsx)("h3",{children:translate("modal.wallet.secureAndManage")}),(0,import_jsx_runtime.jsx)("p",{children:translate("modal.wallet.safelyStore")})]}))]})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-what"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"icon-side"},{children:(0,import_jsx_runtime.jsx)(FolderIcon,{})})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content-side"},{children:[(0,import_jsx_runtime.jsx)("h3",{children:translate("modal.wallet.logInToAny")}),(0,import_jsx_runtime.jsx)("p",{children:translate("modal.wallet.noNeedToCreate")})]}))]})),(0,import_jsx_runtime.jsx)("div",{className:"button-spacing"}),(0,import_jsx_runtime.jsx)("button",Object.assign({className:"middleButton",onClick:()=>{fe("GetWallets")}},{children:translate("modal.wallet.getAWallet")}))]})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"what-wallet-mobile"},{children:[(0,import_jsx_runtime.jsx)("p",{children:translate("modal.wallet.useAWallet")}),(0,import_jsx_runtime.jsx)("button",Object.assign({className:"middleButton",onClick:()=>{fe("GetWallets")}},{children:translate("modal.wallet.getAWallet")}))]})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"lang-selector-wrapper"},{children:(0,import_jsx_runtime.jsxs)("select",Object.assign({className:"lang-selector",name:"lang"},{children:[(0,import_jsx_runtime.jsx)("option",Object.assign({value:"en"},{children:"English"})),(0,import_jsx_runtime.jsx)("option",Object.assign({value:"es"},{children:"Spanish"}))]}))}))]})]}))},WalletConnected=({module:v,onCloseModal:k})=>(0,import_jsx_runtime.jsxs)(import_react.Fragment,{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal-header"},{children:[(0,import_jsx_runtime.jsx)("h3",Object.assign({className:"middleTitle"},{children:""})),(0,import_jsx_runtime.jsx)(CloseButton,{onClick:k})]})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"connecting-wrapper"},{children:(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"icon"},{children:[(0,import_jsx_runtime.jsx)("div",{className:"green-dot"}),(0,import_jsx_runtime.jsx)("img",{src:v==null?void 0:v.metadata.iconUrl,alt:v==null?void 0:v.metadata.name})]})),(0,import_jsx_runtime.jsx)("h3",Object.assign({className:"connecting-name"},{children:v==null?void 0:v.metadata.name})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-connected-success"},{children:[(0,import_jsx_runtime.jsx)(ConnectionSuccessIcon,{}),(0,import_jsx_runtime.jsx)("span",{children:translate("modal.wallet.connectionSuccessful")})]}))]}))}))]}),anObject$1$h=anObject$c$8,regexpFlags$e=function(){var v=anObject$1$h(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$v=functionCall$h,hasOwn2$h=hasOwnProperty_1$h,isPrototypeOf$l=objectIsPrototypeOf$h,regExpFlags$e=regexpFlags$e,RegExpPrototype$1$e=RegExp.prototype,regexpGetFlags$e=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$e)&&!hasOwn2$h(v,"flags")&&isPrototypeOf$l(RegExpPrototype$1$e,v)?call$v(regExpFlags$e,v):k},PROPER_FUNCTION_NAME$g=functionName$h.PROPER,defineBuiltIn$n=defineBuiltIn$6$a,anObject$r=anObject$c$8,$toString$e=toString$3$4,fails$D=fails$h$6,getRegExpFlags$e=regexpGetFlags$e,TO_STRING$e="toString",RegExpPrototype$f=RegExp.prototype,n$ToString$e=RegExpPrototype$f[TO_STRING$e],NOT_GENERIC$e=fails$D(function(){return n$ToString$e.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$e=PROPER_FUNCTION_NAME$g&&n$ToString$e.name!=TO_STRING$e;(NOT_GENERIC$e||INCORRECT_NAME$e)&&defineBuiltIn$n(RegExp.prototype,TO_STRING$e,function(){var k=anObject$r(this),ie=$toString$e(k.source),ae=$toString$e(getRegExpFlags$e(k));return"/"+ie+"/"+ae},{unsafe:!0});var CopyIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("path",{d:"M6.5 15.25a1.75 1.75 0 0 1-1.75-1.75V6.75a2 2 0 0 1 2-2h6.75c.966 0 1.75.784 1.75 1.75",stroke:"#4F7CD1",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M8.75 10.75a2 2 0 0 1 2-2h6.5a2 2 0 0 1 2 2v6.5a2 2 0 0 1-2 2h-6.5a2 2 0 0 1-2-2v-6.5Z",stroke:"#4F7CD1",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}));function formatQRCodeImage(v){return __awaiter$k(this,void 0,void 0,function*(){return yield import_qrcode.default.toString(v,{margin:0,type:"svg"})})}var ScanQRCode=({wallet:v,uri:k,onCloseModal:ie,handleOpenDefaultModal:ae})=>{const[ce,fe]=import_react.default.useState(""),[le,ve]=import_react.default.useState(""),pe=()=>{if(!k)return;(0,import_copy_to_clipboard.default)(k)?(fe(translate("modal.qr.copiedToClipboard")),setTimeout(()=>fe(""),1200)):(fe(translate("modal.qr.failedToCopy")),setTimeout(()=>fe(""),1200))};return import_react.default.useEffect(()=>{__awaiter$k(void 0,void 0,void 0,function*(){k&&ve(yield formatQRCodeImage(k))})},[k]),(0,import_jsx_runtime.jsxs)("section",Object.assign({className:"scan-qr-code"},{children:[(0,import_jsx_runtime.jsx)(ModalHeader,{title:translate("modal.qr.scanWithYourMobile"),onCloseModal:ie}),(0,import_jsx_runtime.jsxs)("section",Object.assign({className:"qr-code"},{children:[(0,import_jsx_runtime.jsx)("div",{dangerouslySetInnerHTML:{__html:le}}),ce?(0,import_jsx_runtime.jsx)("div",Object.assign({className:"notification"},{children:ce})):(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"copy-btn",onClick:pe},{children:[(0,import_jsx_runtime.jsx)(CopyIcon,{}),translate("modal.qr.copyToClipboard")]}))]})),(0,import_jsx_runtime.jsxs)("footer",Object.assign({className:"footer"},{children:[(0,import_jsx_runtime.jsxs)("p",{children:[translate("modal.qr.preferTheOfficial")," ",v.metadata.name,"?"]}),(0,import_jsx_runtime.jsx)("button",Object.assign({className:"btn",onClick:ae},{children:translate("modal.qr.open")}))]}))]}))},getThemeClass=v=>{switch(v){case"dark":return"dark-theme";case"light":return"light-theme";default:return""}},Modal=({selector:v,options:k,visible:ie,hide:ae,emitter:ce})=>{var fe,le,ve;const[pe,ye]=(0,import_react.useState)({name:"WalletHome"}),[me,Ee]=(0,import_react.useState)(null),[cr,Br]=(0,import_react.useState)(),[$r,Pr]=(0,import_react.useState)();(0,import_react.useEffect)(()=>{ye({name:"WalletHome"}),allowOnlyLanguage(v.options.languageCode);const{selectedWalletId:jr,modules:Mr}=v.store.getState();if(jr){const Lr=Mr.find(Vr=>Vr.id===jr);Br(Lr),ye({name:"WalletConnected",params:{module:Lr}})}Pr("")},[ie]),(0,import_react.useEffect)(()=>{const jr=v.on("networkChanged",({networkId:Mr})=>{if(Mr===v.options.network.networkId)return Or({});ye({name:"WalletNetworkChanged"})});return()=>jr.remove()},[]);const Or=(0,import_react.useCallback)(({hideReason:jr})=>{Ee(null),ye({name:"WalletHome"}),jr==="user-triggered"&&ce.emit("onHide",{hideReason:jr}),jr==="wallet-navigation"&&ce.emit("onHide",{hideReason:jr}),ae()},[ae,ce]);(0,import_react.useEffect)(()=>{const jr=Mr=>{Mr.key==="Escape"&&Or({hideReason:"user-triggered"})};return window.addEventListener("keydown",jr),()=>window.removeEventListener("keydown",jr)},[Or]);const ur=(jr,Mr)=>__awaiter$k(void 0,void 0,void 0,function*(){Br(jr);const{selectedWalletId:Lr}=v.store.getState();if(Lr===jr.id){ye({name:"WalletConnected",params:{module:jr}});return}try{const{deprecated:Vr,available:Gr}=jr.metadata;if(jr.type==="injected"&&!Gr){ye({name:"WalletNotInstalled",params:{module:jr}});return}const Ur=yield jr.wallet();if(Vr){Ee(`${jr.metadata.name} is deprecated. Please select another wallet.`),ye({name:"AlertMessage",params:{module:jr}});return}if(Ur.type==="hardware"){ye({name:"DerivationPath",params:{walletId:Ur.id||"ledger"}});return}if(ye({name:"WalletConnecting",params:{wallet:Ur}}),Ur.type==="bridge"){const Qr=v.on("uriChanged",({uri:vn})=>{Pr(vn),ye({name:"ScanQRCode",params:{uri:vn,wallet:Ur}})});yield Ur.signIn({contractId:k.contractId,methodNames:k.methodNames,qrCodeModal:Mr}),Qr.remove(),Or({hideReason:"wallet-navigation"});return}if(Ur.type==="browser"){yield Ur.signIn({contractId:k.contractId,methodNames:k.methodNames,successUrl:Ur.metadata.successUrl,failureUrl:Ur.metadata.failureUrl}),Or({hideReason:"wallet-navigation"});return}yield Ur.signIn({contractId:k.contractId,methodNames:k.methodNames}),Or({hideReason:"wallet-navigation"})}catch(Vr){const{name:Gr}=jr.metadata,Ur=Vr instanceof Error?Vr.message:"Something went wrong";Ee(`Failed to sign in with ${Gr}: ${Ur}`),ye({name:"AlertMessage",params:{module:jr}})}});return ie?(0,import_jsx_runtime.jsxs)("div",Object.assign({className:`nws-modal-wrapper ${getThemeClass(k==null?void 0:k.theme)} ${ie?"open":""}`},{children:[(0,import_jsx_runtime.jsx)("div",{className:"nws-modal-overlay",onClick:()=>{Or({hideReason:"user-triggered"})}}),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"modal-left"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"modal-left-title"},{children:(0,import_jsx_runtime.jsx)("h2",{children:translate("modal.wallet.connectYourWallet")})})),(0,import_jsx_runtime.jsx)(WalletOptions,{handleWalletClick:jr=>{ur(jr,!1)},selector:v})]})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"modal-right"},{children:(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal-body"},{children:[pe.name==="AlertMessage"&&me&&(0,import_jsx_runtime.jsx)(AlertMessage,{message:me,module:(fe=pe.params)===null||fe===void 0?void 0:fe.module,onBack:jr=>{jr&&ur(cr,!1),Ee(null),ye({name:"WalletHome"})},onCloseModal:()=>Or({hideReason:"user-triggered"})}),pe.name==="DerivationPath"&&(0,import_jsx_runtime.jsx)(DerivationPath,{selector:v,options:k,onConnected:()=>{Or({hideReason:"wallet-navigation"})},params:pe.params,onBack:()=>ye({name:"WalletHome"}),onError:(jr,Mr)=>{const{modules:Lr}=v.store.getState(),Vr=Lr.find(Gr=>Gr.id===Mr.id);Ee(jr),ye({name:"AlertMessage",params:{module:Vr}})},onCloseModal:()=>Or({hideReason:"user-triggered"})}),pe.name==="WalletNetworkChanged"&&(0,import_jsx_runtime.jsx)(WalletNetworkChanged,{selector:v,onBack:()=>ye({name:"WalletHome"}),onCloseModal:()=>Or({hideReason:"user-triggered"})}),pe.name==="WalletNotInstalled"&&(0,import_jsx_runtime.jsx)(WalletNotInstalled,{module:(le=pe.params)===null||le===void 0?void 0:le.module,onBack:()=>{ye({name:"WalletHome"})},onCloseModal:()=>Or({hideReason:"user-triggered"})}),pe.name==="WalletConnecting"&&(0,import_jsx_runtime.jsx)(WalletConnecting,{wallet:(ve=pe.params)===null||ve===void 0?void 0:ve.wallet,onBack:()=>{ye({name:"WalletHome"})},onCloseModal:()=>Or({hideReason:"user-triggered"})}),pe.name==="WalletHome"&&(0,import_jsx_runtime.jsx)(WalletHome,{selector:v,onCloseModal:()=>Or({hideReason:"user-triggered"})}),pe.name==="WalletConnected"&&(0,import_jsx_runtime.jsx)(WalletConnected,{module:cr,onCloseModal:()=>Or({hideReason:"user-triggered"})}),pe.name==="ScanQRCode"&&(0,import_jsx_runtime.jsx)(ScanQRCode,{handleOpenDefaultModal:()=>{ur(cr,!0)},onCloseModal:()=>Or({hideReason:"user-triggered"}),uri:$r,wallet:cr})]}))}))]}))]})):null},MODAL_ELEMENT_ID="near-wallet-selector-modal",modalInstance=null,setupModal=(v,k)=>{const ie=document.createElement("div");ie.id=MODAL_ELEMENT_ID,document.getElementById(MODAL_ELEMENT_ID)||document.body.appendChild(ie);const ae=document.getElementById(MODAL_ELEMENT_ID),ce=(0,import_client.createRoot)(ae),fe=new EventEmitter,le=(ve=!1)=>{ce.render((0,import_jsx_runtime.jsx)(Modal,{selector:v,options:k,visible:ve,hide:()=>le(!1),emitter:fe}))};return modalInstance||(modalInstance={show:()=>{le(!0)},hide:()=>{le(!1)},on:(ve,pe)=>fe.on(ve,pe),off:(ve,pe)=>{fe.off(ve,pe)}}),modalInstance};/** +`+Wn.stack}return{value:Or,source:Fr,stack:Pn,digest:null}}function t$(Or,Fr,Zr){return{value:Or,source:null,stack:Zr!=null?Zr:null,digest:Fr!=null?Fr:null}}function n$(Or,Fr){try{console.error(Fr.value)}catch(Zr){setTimeout(function(){throw Zr})}}var Vv=typeof WeakMap=="function"?WeakMap:Map;function rh(Or,Fr,Zr){Zr=Ru(-1,Zr),Zr.tag=3,Zr.payload={element:null};var yn=Fr.value;return Zr.callback=function(){zl||(zl=!0,g$=yn),n$(Or,Fr)},Zr}function th(Or,Fr,Zr){Zr=Ru(-1,Zr),Zr.tag=3;var yn=Or.type.getDerivedStateFromError;if(typeof yn=="function"){var Pn=Fr.value;Zr.payload=function(){return yn(Pn)},Zr.callback=function(){n$(Or,Fr)}}var Wn=Or.stateNode;return Wn!==null&&typeof Wn.componentDidCatch=="function"&&(Zr.callback=function(){n$(Or,Fr),typeof yn!="function"&&(Gu===null?Gu=new Set([this]):Gu.add(this));var si=Fr.stack;this.componentDidCatch(Fr.value,{componentStack:si!==null?si:""})}),Zr}function nh(Or,Fr,Zr){var yn=Or.pingCache;if(yn===null){yn=Or.pingCache=new Vv;var Pn=new Set;yn.set(Fr,Pn)}else Pn=yn.get(Fr),Pn===void 0&&(Pn=new Set,yn.set(Fr,Pn));Pn.has(Zr)||(Pn.add(Zr),Or=op.bind(null,Or,Fr,Zr),Fr.then(Or,Or))}function ih(Or){do{var Fr;if((Fr=Or.tag===13)&&(Fr=Or.memoizedState,Fr=Fr!==null?Fr.dehydrated!==null:!0),Fr)return Or;Or=Or.return}while(Or!==null);return null}function oh(Or,Fr,Zr,yn,Pn){return(Or.mode&1)===0?(Or===Fr?Or.flags|=65536:(Or.flags|=128,Zr.flags|=131072,Zr.flags&=-52805,Zr.tag===1&&(Zr.alternate===null?Zr.tag=17:(Fr=Ru(-1,1),Fr.tag=2,Ku(Zr,Fr,1))),Zr.lanes|=1),Or):(Or.flags|=65536,Or.lanes=Pn,Or)}var Wv=Vr.ReactCurrentOwner,Qa=!1;function Ha(Or,Fr,Zr,yn){Fr.child=Or===null?Nd(Fr,null,Zr,yn):Pc(Fr,Or.child,Zr,yn)}function ah(Or,Fr,Zr,yn,Pn){Zr=Zr.render;var Wn=Fr.ref;return Tc(Fr,Pn),yn=Jf(Or,Fr,Zr,yn,Wn,Pn),Zr=Xf(),Or!==null&&!Qa?(Fr.updateQueue=Or.updateQueue,Fr.flags&=-2053,Or.lanes&=~Pn,Nu(Or,Fr,Pn)):(ba&&Zr&&Rf(Fr),Fr.flags|=1,Ha(Or,Fr,yn,Pn),Fr.child)}function sh(Or,Fr,Zr,yn,Pn){if(Or===null){var Wn=Zr.type;return typeof Wn=="function"&&!S$(Wn)&&Wn.defaultProps===void 0&&Zr.compare===null&&Zr.defaultProps===void 0?(Fr.tag=15,Fr.type=Wn,uh(Or,Fr,Wn,yn,Pn)):(Or=ef(Zr.type,null,yn,Fr,Fr.mode,Pn),Or.ref=Fr.ref,Or.return=Fr,Fr.child=Or)}if(Wn=Or.child,(Or.lanes&Pn)===0){var si=Wn.memoizedProps;if(Zr=Zr.compare,Zr=Zr!==null?Zr:xc,Zr(si,yn)&&Or.ref===Fr.ref)return Nu(Or,Fr,Pn)}return Fr.flags|=1,Or=zu(Wn,yn),Or.ref=Fr.ref,Or.return=Fr,Fr.child=Or}function uh(Or,Fr,Zr,yn,Pn){if(Or!==null){var Wn=Or.memoizedProps;if(xc(Wn,yn)&&Or.ref===Fr.ref)if(Qa=!1,Fr.pendingProps=yn=Wn,(Or.lanes&Pn)!==0)(Or.flags&131072)!==0&&(Qa=!0);else return Fr.lanes=Or.lanes,Nu(Or,Fr,Pn)}return i$(Or,Fr,Zr,yn,Pn)}function ch(Or,Fr,Zr){var yn=Fr.pendingProps,Pn=yn.children,Wn=Or!==null?Or.memoizedState:null;if(yn.mode==="hidden")if((Fr.mode&1)===0)Fr.memoizedState={baseLanes:0,cachePool:null,transitions:null},ya(jc,nu),nu|=Zr;else{if((Zr&1073741824)===0)return Or=Wn!==null?Wn.baseLanes|Zr:Zr,Fr.lanes=Fr.childLanes=1073741824,Fr.memoizedState={baseLanes:Or,cachePool:null,transitions:null},Fr.updateQueue=null,ya(jc,nu),nu|=Or,null;Fr.memoizedState={baseLanes:0,cachePool:null,transitions:null},yn=Wn!==null?Wn.baseLanes:Zr,ya(jc,nu),nu|=yn}else Wn!==null?(yn=Wn.baseLanes|Zr,Fr.memoizedState=null):yn=Zr,ya(jc,nu),nu|=yn;return Ha(Or,Fr,Pn,Zr),Fr.child}function lh(Or,Fr){var Zr=Fr.ref;(Or===null&&Zr!==null||Or!==null&&Or.ref!==Zr)&&(Fr.flags|=512,Fr.flags|=2097152)}function i$(Or,Fr,Zr,yn,Pn){var Wn=Xa(Zr)?rc:qa.current;return Wn=Ac(Fr,Wn),Tc(Fr,Pn),Zr=Jf(Or,Fr,Zr,yn,Wn,Pn),yn=Xf(),Or!==null&&!Qa?(Fr.updateQueue=Or.updateQueue,Fr.flags&=-2053,Or.lanes&=~Pn,Nu(Or,Fr,Pn)):(ba&&yn&&Rf(Fr),Fr.flags|=1,Ha(Or,Fr,Zr,Pn),Fr.child)}function fh(Or,Fr,Zr,yn,Pn){if(Xa(Zr)){var Wn=!0;Sl(Fr)}else Wn=!1;if(Tc(Fr,Pn),Fr.stateNode===null)ql(Or,Fr),Td(Fr,Zr,yn),qf(Fr,Zr,yn,Pn),yn=!0;else if(Or===null){var si=Fr.stateNode,Ii=Fr.memoizedProps;si.props=Ii;var Li=si.context,Io=Zr.contextType;typeof Io=="object"&&Io!==null?Io=su(Io):(Io=Xa(Zr)?rc:qa.current,Io=Ac(Fr,Io));var No=Zr.getDerivedStateFromProps,Bo=typeof No=="function"||typeof si.getSnapshotBeforeUpdate=="function";Bo||typeof si.UNSAFE_componentWillReceiveProps!="function"&&typeof si.componentWillReceiveProps!="function"||(Ii!==yn||Li!==Io)&&Pd(Fr,si,yn,Io),xu=!1;var Ro=Fr.memoizedState;si.state=Ro,jl(Fr,yn,si,Pn),Li=Fr.memoizedState,Ii!==yn||Ro!==Li||Ja.current||xu?(typeof No=="function"&&(Kf(Fr,Zr,No,yn),Li=Fr.memoizedState),(Ii=xu||Id(Fr,Zr,Ii,yn,Ro,Li,Io))?(Bo||typeof si.UNSAFE_componentWillMount!="function"&&typeof si.componentWillMount!="function"||(typeof si.componentWillMount=="function"&&si.componentWillMount(),typeof si.UNSAFE_componentWillMount=="function"&&si.UNSAFE_componentWillMount()),typeof si.componentDidMount=="function"&&(Fr.flags|=4194308)):(typeof si.componentDidMount=="function"&&(Fr.flags|=4194308),Fr.memoizedProps=yn,Fr.memoizedState=Li),si.props=yn,si.state=Li,si.context=Io,yn=Ii):(typeof si.componentDidMount=="function"&&(Fr.flags|=4194308),yn=!1)}else{si=Fr.stateNode,wd(Or,Fr),Ii=Fr.memoizedProps,Io=Fr.type===Fr.elementType?Ii:vu(Fr.type,Ii),si.props=Io,Bo=Fr.pendingProps,Ro=si.context,Li=Zr.contextType,typeof Li=="object"&&Li!==null?Li=su(Li):(Li=Xa(Zr)?rc:qa.current,Li=Ac(Fr,Li));var zo=Zr.getDerivedStateFromProps;(No=typeof zo=="function"||typeof si.getSnapshotBeforeUpdate=="function")||typeof si.UNSAFE_componentWillReceiveProps!="function"&&typeof si.componentWillReceiveProps!="function"||(Ii!==Bo||Ro!==Li)&&Pd(Fr,si,yn,Li),xu=!1,Ro=Fr.memoizedState,si.state=Ro,jl(Fr,yn,si,Pn);var Xo=Fr.memoizedState;Ii!==Bo||Ro!==Xo||Ja.current||xu?(typeof zo=="function"&&(Kf(Fr,Zr,zo,yn),Xo=Fr.memoizedState),(Io=xu||Id(Fr,Zr,Io,yn,Ro,Xo,Li)||!1)?(No||typeof si.UNSAFE_componentWillUpdate!="function"&&typeof si.componentWillUpdate!="function"||(typeof si.componentWillUpdate=="function"&&si.componentWillUpdate(yn,Xo,Li),typeof si.UNSAFE_componentWillUpdate=="function"&&si.UNSAFE_componentWillUpdate(yn,Xo,Li)),typeof si.componentDidUpdate=="function"&&(Fr.flags|=4),typeof si.getSnapshotBeforeUpdate=="function"&&(Fr.flags|=1024)):(typeof si.componentDidUpdate!="function"||Ii===Or.memoizedProps&&Ro===Or.memoizedState||(Fr.flags|=4),typeof si.getSnapshotBeforeUpdate!="function"||Ii===Or.memoizedProps&&Ro===Or.memoizedState||(Fr.flags|=1024),Fr.memoizedProps=yn,Fr.memoizedState=Xo),si.props=yn,si.state=Xo,si.context=Li,yn=Io):(typeof si.componentDidUpdate!="function"||Ii===Or.memoizedProps&&Ro===Or.memoizedState||(Fr.flags|=4),typeof si.getSnapshotBeforeUpdate!="function"||Ii===Or.memoizedProps&&Ro===Or.memoizedState||(Fr.flags|=1024),yn=!1)}return o$(Or,Fr,Zr,yn,Wn,Pn)}function o$(Or,Fr,Zr,yn,Pn,Wn){lh(Or,Fr);var si=(Fr.flags&128)!==0;if(!yn&&!si)return Pn&&vd(Fr,Zr,!1),Nu(Or,Fr,Wn);yn=Fr.stateNode,Wv.current=Fr;var Ii=si&&typeof Zr.getDerivedStateFromError!="function"?null:yn.render();return Fr.flags|=1,Or!==null&&si?(Fr.child=Pc(Fr,Or.child,null,Wn),Fr.child=Pc(Fr,null,Ii,Wn)):Ha(Or,Fr,Ii,Wn),Fr.memoizedState=yn.state,Pn&&vd(Fr,Zr,!0),Fr.child}function $h(Or){var Fr=Or.stateNode;Fr.pendingContext?dd(Or,Fr.pendingContext,Fr.pendingContext!==Fr.context):Fr.context&&dd(Or,Fr.context,!1),Gf(Or,Fr.containerInfo)}function dh(Or,Fr,Zr,yn,Pn){return Oc(),Df(Pn),Fr.flags|=256,Ha(Or,Fr,Zr,yn),Fr.child}var a$={dehydrated:null,treeContext:null,retryLane:0};function s$(Or){return{baseLanes:Or,cachePool:null,transitions:null}}function hh(Or,Fr,Zr){var yn=Fr.pendingProps,Pn=Aa.current,Wn=!1,si=(Fr.flags&128)!==0,Ii;if((Ii=si)||(Ii=Or!==null&&Or.memoizedState===null?!1:(Pn&2)!==0),Ii?(Wn=!0,Fr.flags&=-129):(Or===null||Or.memoizedState!==null)&&(Pn|=1),ya(Aa,Pn&1),Or===null)return Mf(Fr),Or=Fr.memoizedState,Or!==null&&(Or=Or.dehydrated,Or!==null)?((Fr.mode&1)===0?Fr.lanes=1:Or.data==="$!"?Fr.lanes=8:Fr.lanes=1073741824,null):(si=yn.children,Or=yn.fallback,Wn?(yn=Fr.mode,Wn=Fr.child,si={mode:"hidden",children:si},(yn&1)===0&&Wn!==null?(Wn.childLanes=0,Wn.pendingProps=si):Wn=rf(si,yn,0,null),Or=fc(Or,yn,Zr,null),Wn.return=Fr,Or.return=Fr,Wn.sibling=Or,Fr.child=Wn,Fr.child.memoizedState=s$(Zr),Fr.memoizedState=a$,Or):u$(Fr,si));if(Pn=Or.memoizedState,Pn!==null&&(Ii=Pn.dehydrated,Ii!==null))return Hv(Or,Fr,si,yn,Ii,Pn,Zr);if(Wn){Wn=yn.fallback,si=Fr.mode,Pn=Or.child,Ii=Pn.sibling;var Li={mode:"hidden",children:yn.children};return(si&1)===0&&Fr.child!==Pn?(yn=Fr.child,yn.childLanes=0,yn.pendingProps=Li,Fr.deletions=null):(yn=zu(Pn,Li),yn.subtreeFlags=Pn.subtreeFlags&14680064),Ii!==null?Wn=zu(Ii,Wn):(Wn=fc(Wn,si,Zr,null),Wn.flags|=2),Wn.return=Fr,yn.return=Fr,yn.sibling=Wn,Fr.child=yn,yn=Wn,Wn=Fr.child,si=Or.child.memoizedState,si=si===null?s$(Zr):{baseLanes:si.baseLanes|Zr,cachePool:null,transitions:si.transitions},Wn.memoizedState=si,Wn.childLanes=Or.childLanes&~Zr,Fr.memoizedState=a$,yn}return Wn=Or.child,Or=Wn.sibling,yn=zu(Wn,{mode:"visible",children:yn.children}),(Fr.mode&1)===0&&(yn.lanes=Zr),yn.return=Fr,yn.sibling=null,Or!==null&&(Zr=Fr.deletions,Zr===null?(Fr.deletions=[Or],Fr.flags|=16):Zr.push(Or)),Fr.child=yn,Fr.memoizedState=null,yn}function u$(Or,Fr){return Fr=rf({mode:"visible",children:Fr},Or.mode,0,null),Fr.return=Or,Or.child=Fr}function Kl(Or,Fr,Zr,yn){return yn!==null&&Df(yn),Pc(Fr,Or.child,null,Zr),Or=u$(Fr,Fr.pendingProps.children),Or.flags|=2,Fr.memoizedState=null,Or}function Hv(Or,Fr,Zr,yn,Pn,Wn,si){if(Zr)return Fr.flags&256?(Fr.flags&=-257,yn=t$(Error(ae(422))),Kl(Or,Fr,si,yn)):Fr.memoizedState!==null?(Fr.child=Or.child,Fr.flags|=128,null):(Wn=yn.fallback,Pn=Fr.mode,yn=rf({mode:"visible",children:yn.children},Pn,0,null),Wn=fc(Wn,Pn,si,null),Wn.flags|=2,yn.return=Fr,Wn.return=Fr,yn.sibling=Wn,Fr.child=yn,(Fr.mode&1)!==0&&Pc(Fr,Or.child,null,si),Fr.child.memoizedState=s$(si),Fr.memoizedState=a$,Wn);if((Fr.mode&1)===0)return Kl(Or,Fr,si,null);if(Pn.data==="$!"){if(yn=Pn.nextSibling&&Pn.nextSibling.dataset,yn)var Ii=yn.dgst;return yn=Ii,Wn=Error(ae(419)),yn=t$(Wn,yn,void 0),Kl(Or,Fr,si,yn)}if(Ii=(si&Or.childLanes)!==0,Qa||Ii){if(yn=Ma,yn!==null){switch(si&-si){case 4:Pn=2;break;case 16:Pn=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:Pn=32;break;case 536870912:Pn=268435456;break;default:Pn=0}Pn=(Pn&(yn.suspendedLanes|si))!==0?0:Pn,Pn!==0&&Pn!==Wn.retryLane&&(Wn.retryLane=Pn,Cu(Or,Pn),gu(yn,Or,Pn,-1))}return _$(),yn=t$(Error(ae(421))),Kl(Or,Fr,si,yn)}return Pn.data==="$?"?(Fr.flags|=128,Fr.child=Or.child,Fr=ap.bind(null,Or),Pn._reactRetry=Fr,null):(Or=Wn.treeContext,tu=ku(Pn.nextSibling),ru=Fr,ba=!0,hu=null,Or!==null&&(ou[au++]=Tu,ou[au++]=Pu,ou[au++]=tc,Tu=Or.id,Pu=Or.overflow,tc=Fr),Fr=u$(Fr,yn.children),Fr.flags|=4096,Fr)}function vh(Or,Fr,Zr){Or.lanes|=Fr;var yn=Or.alternate;yn!==null&&(yn.lanes|=Fr),Lf(Or.return,Fr,Zr)}function c$(Or,Fr,Zr,yn,Pn){var Wn=Or.memoizedState;Wn===null?Or.memoizedState={isBackwards:Fr,rendering:null,renderingStartTime:0,last:yn,tail:Zr,tailMode:Pn}:(Wn.isBackwards=Fr,Wn.rendering=null,Wn.renderingStartTime=0,Wn.last=yn,Wn.tail=Zr,Wn.tailMode=Pn)}function ph(Or,Fr,Zr){var yn=Fr.pendingProps,Pn=yn.revealOrder,Wn=yn.tail;if(Ha(Or,Fr,yn.children,Zr),yn=Aa.current,(yn&2)!==0)yn=yn&1|2,Fr.flags|=128;else{if(Or!==null&&(Or.flags&128)!==0)e:for(Or=Fr.child;Or!==null;){if(Or.tag===13)Or.memoizedState!==null&&vh(Or,Zr,Fr);else if(Or.tag===19)vh(Or,Zr,Fr);else if(Or.child!==null){Or.child.return=Or,Or=Or.child;continue}if(Or===Fr)break e;for(;Or.sibling===null;){if(Or.return===null||Or.return===Fr)break e;Or=Or.return}Or.sibling.return=Or.return,Or=Or.sibling}yn&=1}if(ya(Aa,yn),(Fr.mode&1)===0)Fr.memoizedState=null;else switch(Pn){case"forwards":for(Zr=Fr.child,Pn=null;Zr!==null;)Or=Zr.alternate,Or!==null&&Bl(Or)===null&&(Pn=Zr),Zr=Zr.sibling;Zr=Pn,Zr===null?(Pn=Fr.child,Fr.child=null):(Pn=Zr.sibling,Zr.sibling=null),c$(Fr,!1,Pn,Zr,Wn);break;case"backwards":for(Zr=null,Pn=Fr.child,Fr.child=null;Pn!==null;){if(Or=Pn.alternate,Or!==null&&Bl(Or)===null){Fr.child=Pn;break}Or=Pn.sibling,Pn.sibling=Zr,Zr=Pn,Pn=Or}c$(Fr,!0,Zr,null,Wn);break;case"together":c$(Fr,!1,null,null,void 0);break;default:Fr.memoizedState=null}return Fr.child}function ql(Or,Fr){(Fr.mode&1)===0&&Or!==null&&(Or.alternate=null,Fr.alternate=null,Fr.flags|=2)}function Nu(Or,Fr,Zr){if(Or!==null&&(Fr.dependencies=Or.dependencies),sc|=Fr.lanes,(Zr&Fr.childLanes)===0)return null;if(Or!==null&&Fr.child!==Or.child)throw Error(ae(153));if(Fr.child!==null){for(Or=Fr.child,Zr=zu(Or,Or.pendingProps),Fr.child=Zr,Zr.return=Fr;Or.sibling!==null;)Or=Or.sibling,Zr=Zr.sibling=zu(Or,Or.pendingProps),Zr.return=Fr;Zr.sibling=null}return Fr.child}function zv(Or,Fr,Zr){switch(Fr.tag){case 3:$h(Fr),Oc();break;case 5:jd(Fr);break;case 1:Xa(Fr.type)&&Sl(Fr);break;case 4:Gf(Fr,Fr.stateNode.containerInfo);break;case 10:var yn=Fr.type._context,Pn=Fr.memoizedProps.value;ya(Cl,yn._currentValue),yn._currentValue=Pn;break;case 13:if(yn=Fr.memoizedState,yn!==null)return yn.dehydrated!==null?(ya(Aa,Aa.current&1),Fr.flags|=128,null):(Zr&Fr.child.childLanes)!==0?hh(Or,Fr,Zr):(ya(Aa,Aa.current&1),Or=Nu(Or,Fr,Zr),Or!==null?Or.sibling:null);ya(Aa,Aa.current&1);break;case 19:if(yn=(Zr&Fr.childLanes)!==0,(Or.flags&128)!==0){if(yn)return ph(Or,Fr,Zr);Fr.flags|=128}if(Pn=Fr.memoizedState,Pn!==null&&(Pn.rendering=null,Pn.tail=null,Pn.lastEffect=null),ya(Aa,Aa.current),yn)break;return null;case 22:case 23:return Fr.lanes=0,ch(Or,Fr,Zr)}return Nu(Or,Fr,Zr)}var yh,l$,gh,mh;yh=function(Or,Fr){for(var Zr=Fr.child;Zr!==null;){if(Zr.tag===5||Zr.tag===6)Or.appendChild(Zr.stateNode);else if(Zr.tag!==4&&Zr.child!==null){Zr.child.return=Zr,Zr=Zr.child;continue}if(Zr===Fr)break;for(;Zr.sibling===null;){if(Zr.return===null||Zr.return===Fr)return;Zr=Zr.return}Zr.sibling.return=Zr.return,Zr=Zr.sibling}},l$=function(){},gh=function(Or,Fr,Zr,yn){var Pn=Or.memoizedProps;if(Pn!==yn){Or=Fr.stateNode,oc(wu.current);var Wn=null;switch(Zr){case"input":Pn=Qn(Or,Pn),yn=Qn(Or,yn),Wn=[];break;case"select":Pn=zr({},Pn,{value:void 0}),yn=zr({},yn,{value:void 0}),Wn=[];break;case"textarea":Pn=Pi(Or,Pn),yn=Pi(Or,yn),Wn=[];break;default:typeof Pn.onClick!="function"&&typeof yn.onClick=="function"&&(Or.onclick=Al)}ti(Zr,yn);var si;Zr=null;for(Io in Pn)if(!yn.hasOwnProperty(Io)&&Pn.hasOwnProperty(Io)&&Pn[Io]!=null)if(Io==="style"){var Ii=Pn[Io];for(si in Ii)Ii.hasOwnProperty(si)&&(Zr||(Zr={}),Zr[si]="")}else Io!=="dangerouslySetInnerHTML"&&Io!=="children"&&Io!=="suppressContentEditableWarning"&&Io!=="suppressHydrationWarning"&&Io!=="autoFocus"&&(fe.hasOwnProperty(Io)?Wn||(Wn=[]):(Wn=Wn||[]).push(Io,null));for(Io in yn){var Li=yn[Io];if(Ii=Pn!=null?Pn[Io]:void 0,yn.hasOwnProperty(Io)&&Li!==Ii&&(Li!=null||Ii!=null))if(Io==="style")if(Ii){for(si in Ii)!Ii.hasOwnProperty(si)||Li&&Li.hasOwnProperty(si)||(Zr||(Zr={}),Zr[si]="");for(si in Li)Li.hasOwnProperty(si)&&Ii[si]!==Li[si]&&(Zr||(Zr={}),Zr[si]=Li[si])}else Zr||(Wn||(Wn=[]),Wn.push(Io,Zr)),Zr=Li;else Io==="dangerouslySetInnerHTML"?(Li=Li?Li.__html:void 0,Ii=Ii?Ii.__html:void 0,Li!=null&&Ii!==Li&&(Wn=Wn||[]).push(Io,Li)):Io==="children"?typeof Li!="string"&&typeof Li!="number"||(Wn=Wn||[]).push(Io,""+Li):Io!=="suppressContentEditableWarning"&&Io!=="suppressHydrationWarning"&&(fe.hasOwnProperty(Io)?(Li!=null&&Io==="onScroll"&&ga("scroll",Or),Wn||Ii===Li||(Wn=[])):(Wn=Wn||[]).push(Io,Li))}Zr&&(Wn=Wn||[]).push("style",Zr);var Io=Wn;(Fr.updateQueue=Io)&&(Fr.flags|=4)}},mh=function(Or,Fr,Zr,yn){Zr!==yn&&(Fr.flags|=4)};function tl(Or,Fr){if(!ba)switch(Or.tailMode){case"hidden":Fr=Or.tail;for(var Zr=null;Fr!==null;)Fr.alternate!==null&&(Zr=Fr),Fr=Fr.sibling;Zr===null?Or.tail=null:Zr.sibling=null;break;case"collapsed":Zr=Or.tail;for(var yn=null;Zr!==null;)Zr.alternate!==null&&(yn=Zr),Zr=Zr.sibling;yn===null?Fr||Or.tail===null?Or.tail=null:Or.tail.sibling=null:yn.sibling=null}}function Va(Or){var Fr=Or.alternate!==null&&Or.alternate.child===Or.child,Zr=0,yn=0;if(Fr)for(var Pn=Or.child;Pn!==null;)Zr|=Pn.lanes|Pn.childLanes,yn|=Pn.subtreeFlags&14680064,yn|=Pn.flags&14680064,Pn.return=Or,Pn=Pn.sibling;else for(Pn=Or.child;Pn!==null;)Zr|=Pn.lanes|Pn.childLanes,yn|=Pn.subtreeFlags,yn|=Pn.flags,Pn.return=Or,Pn=Pn.sibling;return Or.subtreeFlags|=yn,Or.childLanes=Zr,Fr}function Yv(Or,Fr,Zr){var yn=Fr.pendingProps;switch(Nf(Fr),Fr.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Va(Fr),null;case 1:return Xa(Fr.type)&&_l(),Va(Fr),null;case 3:return yn=Fr.stateNode,Cc(),ma(Ja),ma(qa),Hf(),yn.pendingContext&&(yn.context=yn.pendingContext,yn.pendingContext=null),(Or===null||Or.child===null)&&(Pl(Fr)?Fr.flags|=4:Or===null||Or.memoizedState.isDehydrated&&(Fr.flags&256)===0||(Fr.flags|=1024,hu!==null&&(E$(hu),hu=null))),l$(Or,Fr),Va(Fr),null;case 5:Vf(Fr);var Pn=oc(Xc.current);if(Zr=Fr.type,Or!==null&&Fr.stateNode!=null)gh(Or,Fr,Zr,yn,Pn),Or.ref!==Fr.ref&&(Fr.flags|=512,Fr.flags|=2097152);else{if(!yn){if(Fr.stateNode===null)throw Error(ae(166));return Va(Fr),null}if(Or=oc(wu.current),Pl(Fr)){yn=Fr.stateNode,Zr=Fr.type;var Wn=Fr.memoizedProps;switch(yn[Au]=Fr,yn[Wc]=Wn,Or=(Fr.mode&1)!==0,Zr){case"dialog":ga("cancel",yn),ga("close",yn);break;case"iframe":case"object":case"embed":ga("load",yn);break;case"video":case"audio":for(Pn=0;Pn<\/script>",Or=Or.removeChild(Or.firstChild)):typeof yn.is=="string"?Or=si.createElement(Zr,{is:yn.is}):(Or=si.createElement(Zr),Zr==="select"&&(si=Or,yn.multiple?si.multiple=!0:yn.size&&(si.size=yn.size))):Or=si.createElementNS(Or,Zr),Or[Au]=Fr,Or[Wc]=yn,yh(Or,Fr,!1,!1),Fr.stateNode=Or;e:{switch(si=oi(Zr,yn),Zr){case"dialog":ga("cancel",Or),ga("close",Or),Pn=yn;break;case"iframe":case"object":case"embed":ga("load",Or),Pn=yn;break;case"video":case"audio":for(Pn=0;PnMc&&(Fr.flags|=128,yn=!0,tl(Wn,!1),Fr.lanes=4194304)}else{if(!yn)if(Or=Bl(si),Or!==null){if(Fr.flags|=128,yn=!0,Zr=Or.updateQueue,Zr!==null&&(Fr.updateQueue=Zr,Fr.flags|=4),tl(Wn,!0),Wn.tail===null&&Wn.tailMode==="hidden"&&!si.alternate&&!ba)return Va(Fr),null}else 2*vo()-Wn.renderingStartTime>Mc&&Zr!==1073741824&&(Fr.flags|=128,yn=!0,tl(Wn,!1),Fr.lanes=4194304);Wn.isBackwards?(si.sibling=Fr.child,Fr.child=si):(Zr=Wn.last,Zr!==null?Zr.sibling=si:Fr.child=si,Wn.last=si)}return Wn.tail!==null?(Fr=Wn.tail,Wn.rendering=Fr,Wn.tail=Fr.sibling,Wn.renderingStartTime=vo(),Fr.sibling=null,Zr=Aa.current,ya(Aa,yn?Zr&1|2:Zr&1),Fr):(Va(Fr),null);case 22:case 23:return w$(),yn=Fr.memoizedState!==null,Or!==null&&Or.memoizedState!==null!==yn&&(Fr.flags|=8192),yn&&(Fr.mode&1)!==0?(nu&1073741824)!==0&&(Va(Fr),Fr.subtreeFlags&6&&(Fr.flags|=8192)):Va(Fr),null;case 24:return null;case 25:return null}throw Error(ae(156,Fr.tag))}function Jv(Or,Fr){switch(Nf(Fr),Fr.tag){case 1:return Xa(Fr.type)&&_l(),Or=Fr.flags,Or&65536?(Fr.flags=Or&-65537|128,Fr):null;case 3:return Cc(),ma(Ja),ma(qa),Hf(),Or=Fr.flags,(Or&65536)!==0&&(Or&128)===0?(Fr.flags=Or&-65537|128,Fr):null;case 5:return Vf(Fr),null;case 13:if(ma(Aa),Or=Fr.memoizedState,Or!==null&&Or.dehydrated!==null){if(Fr.alternate===null)throw Error(ae(340));Oc()}return Or=Fr.flags,Or&65536?(Fr.flags=Or&-65537|128,Fr):null;case 19:return ma(Aa),null;case 4:return Cc(),null;case 10:return Ff(Fr.type._context),null;case 22:case 23:return w$(),null;case 24:return null;default:return null}}var Gl=!1,Wa=!1,Xv=typeof WeakSet=="function"?WeakSet:Set,Jo=null;function Nc(Or,Fr){var Zr=Or.ref;if(Zr!==null)if(typeof Zr=="function")try{Zr(null)}catch(yn){Oa(Or,Fr,yn)}else Zr.current=null}function f$(Or,Fr,Zr){try{Zr()}catch(yn){Oa(Or,Fr,yn)}}var bh=!1;function Qv(Or,Fr){if(wf=Po,Or=z$(),yf(Or)){if("selectionStart"in Or)var Zr={start:Or.selectionStart,end:Or.selectionEnd};else e:{Zr=(Zr=Or.ownerDocument)&&Zr.defaultView||window;var yn=Zr.getSelection&&Zr.getSelection();if(yn&&yn.rangeCount!==0){Zr=yn.anchorNode;var Pn=yn.anchorOffset,Wn=yn.focusNode;yn=yn.focusOffset;try{Zr.nodeType,Wn.nodeType}catch{Zr=null;break e}var si=0,Ii=-1,Li=-1,Io=0,No=0,Bo=Or,Ro=null;r:for(;;){for(var zo;Bo!==Zr||Pn!==0&&Bo.nodeType!==3||(Ii=si+Pn),Bo!==Wn||yn!==0&&Bo.nodeType!==3||(Li=si+yn),Bo.nodeType===3&&(si+=Bo.nodeValue.length),(zo=Bo.firstChild)!==null;)Ro=Bo,Bo=zo;for(;;){if(Bo===Or)break r;if(Ro===Zr&&++Io===Pn&&(Ii=si),Ro===Wn&&++No===yn&&(Li=si),(zo=Bo.nextSibling)!==null)break;Bo=Ro,Ro=Bo.parentNode}Bo=zo}Zr=Ii===-1||Li===-1?null:{start:Ii,end:Li}}else Zr=null}Zr=Zr||{start:0,end:0}}else Zr=null;for(_f={focusedElem:Or,selectionRange:Zr},Po=!1,Jo=Fr;Jo!==null;)if(Fr=Jo,Or=Fr.child,(Fr.subtreeFlags&1028)!==0&&Or!==null)Or.return=Fr,Jo=Or;else for(;Jo!==null;){Fr=Jo;try{var Xo=Fr.alternate;if((Fr.flags&1024)!==0)switch(Fr.tag){case 0:case 11:case 15:break;case 1:if(Xo!==null){var Qo=Xo.memoizedProps,Ia=Xo.memoizedState,po=Fr.stateNode,no=po.getSnapshotBeforeUpdate(Fr.elementType===Fr.type?Qo:vu(Fr.type,Qo),Ia);po.__reactInternalSnapshotBeforeUpdate=no}break;case 3:var bo=Fr.stateNode.containerInfo;bo.nodeType===1?bo.textContent="":bo.nodeType===9&&bo.documentElement&&bo.removeChild(bo.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ae(163))}}catch(Lo){Oa(Fr,Fr.return,Lo)}if(Or=Fr.sibling,Or!==null){Or.return=Fr.return,Jo=Or;break}Jo=Fr.return}return Xo=bh,bh=!1,Xo}function nl(Or,Fr,Zr){var yn=Fr.updateQueue;if(yn=yn!==null?yn.lastEffect:null,yn!==null){var Pn=yn=yn.next;do{if((Pn.tag&Or)===Or){var Wn=Pn.destroy;Pn.destroy=void 0,Wn!==void 0&&f$(Fr,Zr,Wn)}Pn=Pn.next}while(Pn!==yn)}}function Vl(Or,Fr){if(Fr=Fr.updateQueue,Fr=Fr!==null?Fr.lastEffect:null,Fr!==null){var Zr=Fr=Fr.next;do{if((Zr.tag&Or)===Or){var yn=Zr.create;Zr.destroy=yn()}Zr=Zr.next}while(Zr!==Fr)}}function $$(Or){var Fr=Or.ref;if(Fr!==null){var Zr=Or.stateNode;switch(Or.tag){case 5:Or=Zr;break;default:Or=Zr}typeof Fr=="function"?Fr(Or):Fr.current=Or}}function Eh(Or){var Fr=Or.alternate;Fr!==null&&(Or.alternate=null,Eh(Fr)),Or.child=null,Or.deletions=null,Or.sibling=null,Or.tag===5&&(Fr=Or.stateNode,Fr!==null&&(delete Fr[Au],delete Fr[Wc],delete Fr[Tf],delete Fr[Mv],delete Fr[Dv])),Or.stateNode=null,Or.return=null,Or.dependencies=null,Or.memoizedProps=null,Or.memoizedState=null,Or.pendingProps=null,Or.stateNode=null,Or.updateQueue=null}function Ah(Or){return Or.tag===5||Or.tag===3||Or.tag===4}function wh(Or){e:for(;;){for(;Or.sibling===null;){if(Or.return===null||Ah(Or.return))return null;Or=Or.return}for(Or.sibling.return=Or.return,Or=Or.sibling;Or.tag!==5&&Or.tag!==6&&Or.tag!==18;){if(Or.flags&2||Or.child===null||Or.tag===4)continue e;Or.child.return=Or,Or=Or.child}if(!(Or.flags&2))return Or.stateNode}}function d$(Or,Fr,Zr){var yn=Or.tag;if(yn===5||yn===6)Or=Or.stateNode,Fr?Zr.nodeType===8?Zr.parentNode.insertBefore(Or,Fr):Zr.insertBefore(Or,Fr):(Zr.nodeType===8?(Fr=Zr.parentNode,Fr.insertBefore(Or,Zr)):(Fr=Zr,Fr.appendChild(Or)),Zr=Zr._reactRootContainer,Zr!=null||Fr.onclick!==null||(Fr.onclick=Al));else if(yn!==4&&(Or=Or.child,Or!==null))for(d$(Or,Fr,Zr),Or=Or.sibling;Or!==null;)d$(Or,Fr,Zr),Or=Or.sibling}function h$(Or,Fr,Zr){var yn=Or.tag;if(yn===5||yn===6)Or=Or.stateNode,Fr?Zr.insertBefore(Or,Fr):Zr.appendChild(Or);else if(yn!==4&&(Or=Or.child,Or!==null))for(h$(Or,Fr,Zr),Or=Or.sibling;Or!==null;)h$(Or,Fr,Zr),Or=Or.sibling}var La=null,pu=!1;function qu(Or,Fr,Zr){for(Zr=Zr.child;Zr!==null;)_h(Or,Fr,Zr),Zr=Zr.sibling}function _h(Or,Fr,Zr){if(ci&&typeof ci.onCommitFiberUnmount=="function")try{ci.onCommitFiberUnmount(ro,Zr)}catch{}switch(Zr.tag){case 5:Wa||Nc(Zr,Fr);case 6:var yn=La,Pn=pu;La=null,qu(Or,Fr,Zr),La=yn,pu=Pn,La!==null&&(pu?(Or=La,Zr=Zr.stateNode,Or.nodeType===8?Or.parentNode.removeChild(Zr):Or.removeChild(Zr)):La.removeChild(Zr.stateNode));break;case 18:La!==null&&(pu?(Or=La,Zr=Zr.stateNode,Or.nodeType===8?If(Or.parentNode,Zr):Or.nodeType===1&&If(Or,Zr),wi(Or)):If(La,Zr.stateNode));break;case 4:yn=La,Pn=pu,La=Zr.stateNode.containerInfo,pu=!0,qu(Or,Fr,Zr),La=yn,pu=Pn;break;case 0:case 11:case 14:case 15:if(!Wa&&(yn=Zr.updateQueue,yn!==null&&(yn=yn.lastEffect,yn!==null))){Pn=yn=yn.next;do{var Wn=Pn,si=Wn.destroy;Wn=Wn.tag,si!==void 0&&((Wn&2)!==0||(Wn&4)!==0)&&f$(Zr,Fr,si),Pn=Pn.next}while(Pn!==yn)}qu(Or,Fr,Zr);break;case 1:if(!Wa&&(Nc(Zr,Fr),yn=Zr.stateNode,typeof yn.componentWillUnmount=="function"))try{yn.props=Zr.memoizedProps,yn.state=Zr.memoizedState,yn.componentWillUnmount()}catch(Ii){Oa(Zr,Fr,Ii)}qu(Or,Fr,Zr);break;case 21:qu(Or,Fr,Zr);break;case 22:Zr.mode&1?(Wa=(yn=Wa)||Zr.memoizedState!==null,qu(Or,Fr,Zr),Wa=yn):qu(Or,Fr,Zr);break;default:qu(Or,Fr,Zr)}}function Sh(Or){var Fr=Or.updateQueue;if(Fr!==null){Or.updateQueue=null;var Zr=Or.stateNode;Zr===null&&(Zr=Or.stateNode=new Xv),Fr.forEach(function(yn){var Pn=sp.bind(null,Or,yn);Zr.has(yn)||(Zr.add(yn),yn.then(Pn,Pn))})}}function yu(Or,Fr){var Zr=Fr.deletions;if(Zr!==null)for(var yn=0;ynPn&&(Pn=si),yn&=~Wn}if(yn=Pn,yn=vo()-yn,yn=(120>yn?120:480>yn?480:1080>yn?1080:1920>yn?1920:3e3>yn?3e3:4320>yn?4320:1960*ep(yn/1960))-yn,10Or?16:Or,Vu===null)var yn=!1;else{if(Or=Vu,Vu=null,Jl=0,($a&6)!==0)throw Error(ae(331));var Pn=$a;for($a|=4,Jo=Or.current;Jo!==null;){var Wn=Jo,si=Wn.child;if((Jo.flags&16)!==0){var Ii=Wn.deletions;if(Ii!==null){for(var Li=0;Livo()-y$?cc(Or,0):p$|=Zr),eu(Or,Fr)}function Fh(Or,Fr){Fr===0&&((Or.mode&1)===0?Fr=1:(Fr=Mo,Mo<<=1,(Mo&130023424)===0&&(Mo=4194304)));var Zr=za();Or=Cu(Or,Fr),Or!==null&&(Go(Or,Fr,Zr),eu(Or,Zr))}function ap(Or){var Fr=Or.memoizedState,Zr=0;Fr!==null&&(Zr=Fr.retryLane),Fh(Or,Zr)}function sp(Or,Fr){var Zr=0;switch(Or.tag){case 13:var yn=Or.stateNode,Pn=Or.memoizedState;Pn!==null&&(Zr=Pn.retryLane);break;case 19:yn=Or.stateNode;break;default:throw Error(ae(314))}yn!==null&&yn.delete(Fr),Fh(Or,Zr)}var Lh;Lh=function(Or,Fr,Zr){if(Or!==null)if(Or.memoizedProps!==Fr.pendingProps||Ja.current)Qa=!0;else{if((Or.lanes&Zr)===0&&(Fr.flags&128)===0)return Qa=!1,zv(Or,Fr,Zr);Qa=(Or.flags&131072)!==0}else Qa=!1,ba&&(Fr.flags&1048576)!==0&&yd(Fr,Tl,Fr.index);switch(Fr.lanes=0,Fr.tag){case 2:var yn=Fr.type;ql(Or,Fr),Or=Fr.pendingProps;var Pn=Ac(Fr,qa.current);Tc(Fr,Zr),Pn=Jf(null,Fr,yn,Or,Pn,Zr);var Wn=Xf();return Fr.flags|=1,typeof Pn=="object"&&Pn!==null&&typeof Pn.render=="function"&&Pn.$$typeof===void 0?(Fr.tag=1,Fr.memoizedState=null,Fr.updateQueue=null,Xa(yn)?(Wn=!0,Sl(Fr)):Wn=!1,Fr.memoizedState=Pn.state!==null&&Pn.state!==void 0?Pn.state:null,xf(Fr),Pn.updater=Ml,Fr.stateNode=Pn,Pn._reactInternals=Fr,qf(Fr,yn,Or,Zr),Fr=o$(null,Fr,yn,!0,Wn,Zr)):(Fr.tag=0,ba&&Wn&&Rf(Fr),Ha(null,Fr,Pn,Zr),Fr=Fr.child),Fr;case 16:yn=Fr.elementType;e:{switch(ql(Or,Fr),Or=Fr.pendingProps,Pn=yn._init,yn=Pn(yn._payload),Fr.type=yn,Pn=Fr.tag=cp(yn),Or=vu(yn,Or),Pn){case 0:Fr=i$(null,Fr,yn,Or,Zr);break e;case 1:Fr=fh(null,Fr,yn,Or,Zr);break e;case 11:Fr=ah(null,Fr,yn,Or,Zr);break e;case 14:Fr=sh(null,Fr,yn,vu(yn.type,Or),Zr);break e}throw Error(ae(306,yn,""))}return Fr;case 0:return yn=Fr.type,Pn=Fr.pendingProps,Pn=Fr.elementType===yn?Pn:vu(yn,Pn),i$(Or,Fr,yn,Pn,Zr);case 1:return yn=Fr.type,Pn=Fr.pendingProps,Pn=Fr.elementType===yn?Pn:vu(yn,Pn),fh(Or,Fr,yn,Pn,Zr);case 3:e:{if($h(Fr),Or===null)throw Error(ae(387));yn=Fr.pendingProps,Wn=Fr.memoizedState,Pn=Wn.element,wd(Or,Fr),jl(Fr,yn,null,Zr);var si=Fr.memoizedState;if(yn=si.element,Wn.isDehydrated)if(Wn={element:yn,isDehydrated:!1,cache:si.cache,pendingSuspenseBoundaries:si.pendingSuspenseBoundaries,transitions:si.transitions},Fr.updateQueue.baseState=Wn,Fr.memoizedState=Wn,Fr.flags&256){Pn=Rc(Error(ae(423)),Fr),Fr=dh(Or,Fr,yn,Zr,Pn);break e}else if(yn!==Pn){Pn=Rc(Error(ae(424)),Fr),Fr=dh(Or,Fr,yn,Zr,Pn);break e}else for(tu=ku(Fr.stateNode.containerInfo.firstChild),ru=Fr,ba=!0,hu=null,Zr=Nd(Fr,null,yn,Zr),Fr.child=Zr;Zr;)Zr.flags=Zr.flags&-3|4096,Zr=Zr.sibling;else{if(Oc(),yn===Pn){Fr=Nu(Or,Fr,Zr);break e}Ha(Or,Fr,yn,Zr)}Fr=Fr.child}return Fr;case 5:return jd(Fr),Or===null&&Mf(Fr),yn=Fr.type,Pn=Fr.pendingProps,Wn=Or!==null?Or.memoizedProps:null,si=Pn.children,Sf(yn,Pn)?si=null:Wn!==null&&Sf(yn,Wn)&&(Fr.flags|=32),lh(Or,Fr),Ha(Or,Fr,si,Zr),Fr.child;case 6:return Or===null&&Mf(Fr),null;case 13:return hh(Or,Fr,Zr);case 4:return Gf(Fr,Fr.stateNode.containerInfo),yn=Fr.pendingProps,Or===null?Fr.child=Pc(Fr,null,yn,Zr):Ha(Or,Fr,yn,Zr),Fr.child;case 11:return yn=Fr.type,Pn=Fr.pendingProps,Pn=Fr.elementType===yn?Pn:vu(yn,Pn),ah(Or,Fr,yn,Pn,Zr);case 7:return Ha(Or,Fr,Fr.pendingProps,Zr),Fr.child;case 8:return Ha(Or,Fr,Fr.pendingProps.children,Zr),Fr.child;case 12:return Ha(Or,Fr,Fr.pendingProps.children,Zr),Fr.child;case 10:e:{if(yn=Fr.type._context,Pn=Fr.pendingProps,Wn=Fr.memoizedProps,si=Pn.value,ya(Cl,yn._currentValue),yn._currentValue=si,Wn!==null)if(du(Wn.value,si)){if(Wn.children===Pn.children&&!Ja.current){Fr=Nu(Or,Fr,Zr);break e}}else for(Wn=Fr.child,Wn!==null&&(Wn.return=Fr);Wn!==null;){var Ii=Wn.dependencies;if(Ii!==null){si=Wn.child;for(var Li=Ii.firstContext;Li!==null;){if(Li.context===yn){if(Wn.tag===1){Li=Ru(-1,Zr&-Zr),Li.tag=2;var Io=Wn.updateQueue;if(Io!==null){Io=Io.shared;var No=Io.pending;No===null?Li.next=Li:(Li.next=No.next,No.next=Li),Io.pending=Li}}Wn.lanes|=Zr,Li=Wn.alternate,Li!==null&&(Li.lanes|=Zr),Lf(Wn.return,Zr,Fr),Ii.lanes|=Zr;break}Li=Li.next}}else if(Wn.tag===10)si=Wn.type===Fr.type?null:Wn.child;else if(Wn.tag===18){if(si=Wn.return,si===null)throw Error(ae(341));si.lanes|=Zr,Ii=si.alternate,Ii!==null&&(Ii.lanes|=Zr),Lf(si,Zr,Fr),si=Wn.sibling}else si=Wn.child;if(si!==null)si.return=Wn;else for(si=Wn;si!==null;){if(si===Fr){si=null;break}if(Wn=si.sibling,Wn!==null){Wn.return=si.return,si=Wn;break}si=si.return}Wn=si}Ha(Or,Fr,Pn.children,Zr),Fr=Fr.child}return Fr;case 9:return Pn=Fr.type,yn=Fr.pendingProps.children,Tc(Fr,Zr),Pn=su(Pn),yn=yn(Pn),Fr.flags|=1,Ha(Or,Fr,yn,Zr),Fr.child;case 14:return yn=Fr.type,Pn=vu(yn,Fr.pendingProps),Pn=vu(yn.type,Pn),sh(Or,Fr,yn,Pn,Zr);case 15:return uh(Or,Fr,Fr.type,Fr.pendingProps,Zr);case 17:return yn=Fr.type,Pn=Fr.pendingProps,Pn=Fr.elementType===yn?Pn:vu(yn,Pn),ql(Or,Fr),Fr.tag=1,Xa(yn)?(Or=!0,Sl(Fr)):Or=!1,Tc(Fr,Zr),Td(Fr,yn,Pn),qf(Fr,yn,Pn,Zr),o$(null,Fr,yn,!0,Or,Zr);case 19:return ph(Or,Fr,Zr);case 22:return ch(Or,Fr,Zr)}throw Error(ae(156,Fr.tag))};function Uh(Or,Fr){return oo(Or,Fr)}function up(Or,Fr,Zr,yn){this.tag=Or,this.key=Zr,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=Fr,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=yn,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lu(Or,Fr,Zr,yn){return new up(Or,Fr,Zr,yn)}function S$(Or){return Or=Or.prototype,!(!Or||!Or.isReactComponent)}function cp(Or){if(typeof Or=="function")return S$(Or)?1:0;if(Or!=null){if(Or=Or.$$typeof,Or===Xt)return 11;if(Or===kr)return 14}return 2}function zu(Or,Fr){var Zr=Or.alternate;return Zr===null?(Zr=lu(Or.tag,Fr,Or.key,Or.mode),Zr.elementType=Or.elementType,Zr.type=Or.type,Zr.stateNode=Or.stateNode,Zr.alternate=Or,Or.alternate=Zr):(Zr.pendingProps=Fr,Zr.type=Or.type,Zr.flags=0,Zr.subtreeFlags=0,Zr.deletions=null),Zr.flags=Or.flags&14680064,Zr.childLanes=Or.childLanes,Zr.lanes=Or.lanes,Zr.child=Or.child,Zr.memoizedProps=Or.memoizedProps,Zr.memoizedState=Or.memoizedState,Zr.updateQueue=Or.updateQueue,Fr=Or.dependencies,Zr.dependencies=Fr===null?null:{lanes:Fr.lanes,firstContext:Fr.firstContext},Zr.sibling=Or.sibling,Zr.index=Or.index,Zr.ref=Or.ref,Zr}function ef(Or,Fr,Zr,yn,Pn,Wn){var si=2;if(yn=Or,typeof Or=="function")S$(Or)&&(si=1);else if(typeof Or=="string")si=5;else e:switch(Or){case Qr:return fc(Zr.children,Pn,Wn,Fr);case hn:si=8,Pn|=8;break;case Yt:return Or=lu(12,Zr,Fr,Pn|2),Or.elementType=Yt,Or.lanes=Wn,Or;case Kr:return Or=lu(13,Zr,Fr,Pn),Or.elementType=Kr,Or.lanes=Wn,Or;case be:return Or=lu(19,Zr,Fr,Pn),Or.elementType=be,Or.lanes=Wn,Or;case Wr:return rf(Zr,Pn,Wn,Fr);default:if(typeof Or=="object"&&Or!==null)switch(Or.$$typeof){case fn:si=10;break e;case Qt:si=9;break e;case Xt:si=11;break e;case kr:si=14;break e;case xr:si=16,yn=null;break e}throw Error(ae(130,Or==null?Or:typeof Or,""))}return Fr=lu(si,Zr,Fr,Pn),Fr.elementType=Or,Fr.type=yn,Fr.lanes=Wn,Fr}function fc(Or,Fr,Zr,yn){return Or=lu(7,Or,yn,Fr),Or.lanes=Zr,Or}function rf(Or,Fr,Zr,yn){return Or=lu(22,Or,yn,Fr),Or.elementType=Wr,Or.lanes=Zr,Or.stateNode={isHidden:!1},Or}function O$(Or,Fr,Zr){return Or=lu(6,Or,null,Fr),Or.lanes=Zr,Or}function I$(Or,Fr,Zr){return Fr=lu(4,Or.children!==null?Or.children:[],Or.key,Fr),Fr.lanes=Zr,Fr.stateNode={containerInfo:Or.containerInfo,pendingChildren:null,implementation:Or.implementation},Fr}function lp(Or,Fr,Zr,yn,Pn){this.tag=Fr,this.containerInfo=Or,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Uo(0),this.expirationTimes=Uo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uo(0),this.identifierPrefix=yn,this.onRecoverableError=Pn,this.mutableSourceEagerHydrationData=null}function T$(Or,Fr,Zr,yn,Pn,Wn,si,Ii,Li){return Or=new lp(Or,Fr,Zr,Ii,Li),Fr===1?(Fr=1,Wn===!0&&(Fr|=8)):Fr=0,Wn=lu(3,null,null,Fr),Or.current=Wn,Wn.stateNode=Or,Wn.memoizedState={element:yn,isDehydrated:Zr,cache:null,transitions:null,pendingSuspenseBoundaries:null},xf(Wn),Or}function fp(Or,Fr,Zr){var yn=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ie)}catch(ae){console.error(ae)}}ie(),k.exports=require_react_dom_production_min()}}),require_client=__commonJS$1({"node_modules/react-dom/client.js"(v){var k=require_react_dom();v.createRoot=k.createRoot,v.hydrateRoot=k.hydrateRoot}}),require_toggle_selection=__commonJS$1({"node_modules/toggle-selection/index.js"(v,k){k.exports=function(){var ie=document.getSelection();if(!ie.rangeCount)return function(){};for(var ae=document.activeElement,ce=[],fe=0;fe"u"){ye&&console.warn("unable to use e.clipboardData"),ye&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var jr=ae[pe.format]||ae.default;window.clipboardData.setData(jr,ve)}else ur.clipboardData.clearData(),ur.clipboardData.setData(pe.format,ve);pe.onCopy&&(ur.preventDefault(),pe.onCopy(ur.clipboardData))}),document.body.appendChild($r),cr.selectNodeContents($r),Br.addRange(cr);var Ar=document.execCommand("copy");if(!Ar)throw new Error("copy command was unsuccessful");Pr=!0}catch(ur){ye&&console.error("unable to copy using execCommand: ",ur),ye&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(pe.format||"text",ve),pe.onCopy&&pe.onCopy(window.clipboardData),Pr=!0}catch(jr){ye&&console.error("unable to copy using clipboardData: ",jr),ye&&console.error("falling back to prompt"),me=fe("message"in pe?pe.message:ce),window.prompt(me,ve)}}finally{Br&&(typeof Br.removeRange=="function"?Br.removeRange(cr):Br.removeAllRanges()),$r&&document.body.removeChild($r),Ee()}return Pr}k.exports=le}}),import_jsx_runtime=__toESM(require_jsx_runtime(),1),import_client=__toESM(require_client(),1),import_react=__toESM(require_react(),1),import_qrcode=__toESM(require_browser$2(),1),import_copy_to_clipboard=__toESM(require_copy_to_clipboard(),1),commonjsGlobal$i=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$h$6=function(v){try{return!!v()}catch{return!0}},fails$g$6=fails$h$6,functionBindNative$h=!fails$g$6(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$b=functionBindNative$h,FunctionPrototype$2$b=Function.prototype,bind$5$7=FunctionPrototype$2$b.bind,call$f$7=FunctionPrototype$2$b.call,uncurryThis$h$6=NATIVE_BIND$3$b&&bind$5$7.bind(call$f$7,call$f$7),functionUncurryThis$h=NATIVE_BIND$3$b?function(v){return v&&uncurryThis$h$6(v)}:function(v){return v&&function(){return call$f$7.apply(v,arguments)}},uncurryThis$g$6=functionUncurryThis$h,toString$5$3=uncurryThis$g$6({}.toString),stringSlice$1$4=uncurryThis$g$6("".slice),classofRaw$1$f=function(v){return stringSlice$1$4(toString$5$3(v),8,-1)},uncurryThis$f$6=functionUncurryThis$h,fails$f$6=fails$h$6,classof$6$6=classofRaw$1$f,$Object$4$b=Object,split$f=uncurryThis$f$6("".split),indexedObject$f=fails$f$6(function(){return!$Object$4$b("z").propertyIsEnumerable(0)})?function(v){return classof$6$6(v)=="String"?split$f(v,""):$Object$4$b(v)}:$Object$4$b,$TypeError$e$1=TypeError,requireObjectCoercible$3$4=function(v){if(v==null)throw $TypeError$e$1("Can't call method on "+v);return v},IndexedObject$2$4=indexedObject$f,requireObjectCoercible$2$f=requireObjectCoercible$3$4,toIndexedObject$5$b=function(v){return IndexedObject$2$4(requireObjectCoercible$2$f(v))},check$h=function(v){return v&&v.Math==Math&&v},global$k$3=check$h(typeof globalThis=="object"&&globalThis)||check$h(typeof window=="object"&&window)||check$h(typeof self=="object"&&self)||check$h(typeof commonjsGlobal$i=="object"&&commonjsGlobal$i)||function(){return this}()||Function("return this")(),shared$3$h={exports:{}},global$j$7=global$k$3,defineProperty$6$4=Object.defineProperty,defineGlobalProperty$3$f=function(v,k){try{defineProperty$6$4(global$j$7,v,{value:k,configurable:!0,writable:!0})}catch{global$j$7[v]=k}return k},global$i$8=global$k$3,defineGlobalProperty$2$h=defineGlobalProperty$3$f,SHARED$h="__core-js_shared__",store$3$h=global$i$8[SHARED$h]||defineGlobalProperty$2$h(SHARED$h,{}),sharedStore$h=store$3$h,store$2$h=sharedStore$h;(shared$3$h.exports=function(v,k){return store$2$h[v]||(store$2$h[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$1$h=requireObjectCoercible$3$4,$Object$3$d=Object,toObject$5$4=function(v){return $Object$3$d(requireObjectCoercible$1$h(v))},uncurryThis$e$9=functionUncurryThis$h,toObject$4$5=toObject$5$4,hasOwnProperty$h=uncurryThis$e$9({}.hasOwnProperty),hasOwnProperty_1$h=Object.hasOwn||function v(k,ie){return hasOwnProperty$h(toObject$4$5(k),ie)},uncurryThis$d$b=functionUncurryThis$h,id$j=0,postfix$h=Math.random(),toString$4$3=uncurryThis$d$b(1 .toString),uid$2$h=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$4$3(++id$j+postfix$h,36)},isCallable$l$3=function(v){return typeof v=="function"},global$h$b=global$k$3,isCallable$k$7=isCallable$l$3,aFunction$h=function(v){return isCallable$k$7(v)?v:void 0},getBuiltIn$8$7=function(v,k){return arguments.length<2?aFunction$h(global$h$b[v]):global$h$b[v]&&global$h$b[v][k]},getBuiltIn$7$7=getBuiltIn$8$7,engineUserAgent$h=getBuiltIn$7$7("navigator","userAgent")||"",global$g$b=global$k$3,userAgent$5$1=engineUserAgent$h,process$3$7=global$g$b.process,Deno$1$8=global$g$b.Deno,versions$h=process$3$7&&process$3$7.versions||Deno$1$8&&Deno$1$8.version,v8$h=versions$h&&versions$h.v8,match$h,version$h;v8$h&&(match$h=v8$h.split("."),version$h=match$h[0]>0&&match$h[0]<4?1:+(match$h[0]+match$h[1]));!version$h&&userAgent$5$1&&(match$h=userAgent$5$1.match(/Edge\/(\d+)/),(!match$h||match$h[1]>=74)&&(match$h=userAgent$5$1.match(/Chrome\/(\d+)/),match$h&&(version$h=+match$h[1])));var engineV8Version$h=version$h,V8_VERSION$1$7=engineV8Version$h,fails$e$9=fails$h$6,nativeSymbol$h=!!Object.getOwnPropertySymbols&&!fails$e$9(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$7&&V8_VERSION$1$7<41}),NATIVE_SYMBOL$2$1=nativeSymbol$h,useSymbolAsUid$h=NATIVE_SYMBOL$2$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",global$f$b=global$k$3,shared$2$h=shared$3$h.exports,hasOwn$b$4=hasOwnProperty_1$h,uid$1$h=uid$2$h,NATIVE_SYMBOL$1$h=nativeSymbol$h,USE_SYMBOL_AS_UID$1$h=useSymbolAsUid$h,WellKnownSymbolsStore$h=shared$2$h("wks"),Symbol$1$h=global$f$b.Symbol,symbolFor$h=Symbol$1$h&&Symbol$1$h.for,createWellKnownSymbol$h=USE_SYMBOL_AS_UID$1$h?Symbol$1$h:Symbol$1$h&&Symbol$1$h.withoutSetter||uid$1$h,wellKnownSymbol$g$4=function(v){if(!hasOwn$b$4(WellKnownSymbolsStore$h,v)||!(NATIVE_SYMBOL$1$h||typeof WellKnownSymbolsStore$h[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$1$h&&hasOwn$b$4(Symbol$1$h,v)?WellKnownSymbolsStore$h[v]=Symbol$1$h[v]:USE_SYMBOL_AS_UID$1$h&&symbolFor$h?WellKnownSymbolsStore$h[v]=symbolFor$h(k):WellKnownSymbolsStore$h[v]=createWellKnownSymbol$h(k)}return WellKnownSymbolsStore$h[v]},isCallable$j$8=isCallable$l$3,isObject$8$5=function(v){return typeof v=="object"?v!==null:isCallable$j$8(v)},isObject$7$b=isObject$8$5,$String$3$b=String,$TypeError$d$2=TypeError,anObject$c$8=function(v){if(isObject$7$b(v))return v;throw $TypeError$d$2($String$3$b(v)+" is not an object")},objectDefineProperties$b={},fails$d$a=fails$h$6,descriptors$h=!fails$d$a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),DESCRIPTORS$b$4=descriptors$h,fails$c$a=fails$h$6,v8PrototypeDefineBug$h=DESCRIPTORS$b$4&&fails$c$a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),objectDefineProperty$h={},global$e$b=global$k$3,isObject$6$b=isObject$8$5,document$3$7=global$e$b.document,EXISTS$1$h=isObject$6$b(document$3$7)&&isObject$6$b(document$3$7.createElement),documentCreateElement$2$9=function(v){return EXISTS$1$h?document$3$7.createElement(v):{}},DESCRIPTORS$a$9=descriptors$h,fails$b$b=fails$h$6,createElement$1$7=documentCreateElement$2$9,ie8DomDefine$h=!DESCRIPTORS$a$9&&!fails$b$b(function(){return Object.defineProperty(createElement$1$7("div"),"a",{get:function(){return 7}}).a!=7}),NATIVE_BIND$2$b=functionBindNative$h,call$e$8=Function.prototype.call,functionCall$h=NATIVE_BIND$2$b?call$e$8.bind(call$e$8):function(){return call$e$8.apply(call$e$8,arguments)},uncurryThis$c$b=functionUncurryThis$h,objectIsPrototypeOf$h=uncurryThis$c$b({}.isPrototypeOf),getBuiltIn$6$b=getBuiltIn$8$7,isCallable$i$a=isCallable$l$3,isPrototypeOf$4$4=objectIsPrototypeOf$h,USE_SYMBOL_AS_UID$i=useSymbolAsUid$h,$Object$2$h=Object,isSymbol$2$h=USE_SYMBOL_AS_UID$i?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$b("Symbol");return isCallable$i$a(k)&&isPrototypeOf$4$4(k.prototype,$Object$2$h(v))},$String$2$f=String,tryToString$5$1=function(v){try{return $String$2$f(v)}catch{return"Object"}},isCallable$h$b=isCallable$l$3,tryToString$4$b=tryToString$5$1,$TypeError$c$3=TypeError,aCallable$9$1=function(v){if(isCallable$h$b(v))return v;throw $TypeError$c$3(tryToString$4$b(v)+" is not a function")},aCallable$8$1=aCallable$9$1,getMethod$3$8=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$8$1(ie)},call$d$a=functionCall$h,isCallable$g$b=isCallable$l$3,isObject$5$h=isObject$8$5,$TypeError$b$8=TypeError,ordinaryToPrimitive$1$h=function(v,k){var ie,ae;if(k==="string"&&isCallable$g$b(ie=v.toString)&&!isObject$5$h(ae=call$d$a(ie,v))||isCallable$g$b(ie=v.valueOf)&&!isObject$5$h(ae=call$d$a(ie,v))||k!=="string"&&isCallable$g$b(ie=v.toString)&&!isObject$5$h(ae=call$d$a(ie,v)))return ae;throw $TypeError$b$8("Can't convert object to primitive value")},call$c$b=functionCall$h,isObject$4$h=isObject$8$5,isSymbol$1$h=isSymbol$2$h,getMethod$2$b=getMethod$3$8,ordinaryToPrimitive$i=ordinaryToPrimitive$1$h,wellKnownSymbol$f$4=wellKnownSymbol$g$4,$TypeError$a$b=TypeError,TO_PRIMITIVE$h=wellKnownSymbol$f$4("toPrimitive"),toPrimitive$1$h=function(v,k){if(!isObject$4$h(v)||isSymbol$1$h(v))return v;var ie=getMethod$2$b(v,TO_PRIMITIVE$h),ae;if(ie){if(k===void 0&&(k="default"),ae=call$c$b(ie,v,k),!isObject$4$h(ae)||isSymbol$1$h(ae))return ae;throw $TypeError$a$b("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$i(v,k)},toPrimitive$j=toPrimitive$1$h,isSymbol$k=isSymbol$2$h,toPropertyKey$3$5=function(v){var k=toPrimitive$j(v,"string");return isSymbol$k(k)?k:k+""},DESCRIPTORS$9$a=descriptors$h,IE8_DOM_DEFINE$1$f=ie8DomDefine$h,V8_PROTOTYPE_DEFINE_BUG$1$b=v8PrototypeDefineBug$h,anObject$b$8=anObject$c$8,toPropertyKey$2$f=toPropertyKey$3$5,$TypeError$9$b=TypeError,$defineProperty$h=Object.defineProperty,$getOwnPropertyDescriptor$1$f=Object.getOwnPropertyDescriptor,ENUMERABLE$h="enumerable",CONFIGURABLE$1$h="configurable",WRITABLE$h="writable";objectDefineProperty$h.f=DESCRIPTORS$9$a?V8_PROTOTYPE_DEFINE_BUG$1$b?function v(k,ie,ae){if(anObject$b$8(k),ie=toPropertyKey$2$f(ie),anObject$b$8(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$h in ae&&!ae[WRITABLE$h]){var ce=$getOwnPropertyDescriptor$1$f(k,ie);ce&&ce[WRITABLE$h]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$h in ae?ae[CONFIGURABLE$1$h]:ce[CONFIGURABLE$1$h],enumerable:ENUMERABLE$h in ae?ae[ENUMERABLE$h]:ce[ENUMERABLE$h],writable:!1})}return $defineProperty$h(k,ie,ae)}:$defineProperty$h:function v(k,ie,ae){if(anObject$b$8(k),ie=toPropertyKey$2$f(ie),anObject$b$8(ae),IE8_DOM_DEFINE$1$f)try{return $defineProperty$h(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$9$b("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var ceil$f=Math.ceil,floor$1$5=Math.floor,mathTrunc$f=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$1$5:ceil$f)(ie)},trunc2$f=mathTrunc$f,toIntegerOrInfinity$2$f=function(v){var k=+v;return k!==k||k===0?0:trunc2$f(k)},toIntegerOrInfinity$1$f=toIntegerOrInfinity$2$f,max$1$6=Math.max,min$1$f=Math.min,toAbsoluteIndex$2$5=function(v,k){var ie=toIntegerOrInfinity$1$f(v);return ie<0?max$1$6(ie+k,0):min$1$f(ie,k)},toIntegerOrInfinity$k=toIntegerOrInfinity$2$f,min$g=Math.min,toLength$1$f=function(v){return v>0?min$g(toIntegerOrInfinity$k(v),9007199254740991):0},toLength$k=toLength$1$f,lengthOfArrayLike$5$4=function(v){return toLength$k(v.length)},toIndexedObject$4$b=toIndexedObject$5$b,toAbsoluteIndex$1$f=toAbsoluteIndex$2$5,lengthOfArrayLike$4$4=lengthOfArrayLike$5$4,createMethod$1$6=function(v){return function(k,ie,ae){var ce=toIndexedObject$4$b(k),fe=lengthOfArrayLike$4$4(ce),le=toAbsoluteIndex$1$f(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$f={includes:createMethod$1$6(!0),indexOf:createMethod$1$6(!1)},hiddenKeys$4$b={},uncurryThis$b$b=functionUncurryThis$h,hasOwn$a$a=hasOwnProperty_1$h,toIndexedObject$3$f=toIndexedObject$5$b,indexOf$f=arrayIncludes$f.indexOf,hiddenKeys$3$f=hiddenKeys$4$b,push$1$6=uncurryThis$b$b([].push),objectKeysInternal$f=function(v,k){var ie=toIndexedObject$3$f(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$a$a(hiddenKeys$3$f,fe)&&hasOwn$a$a(ie,fe)&&push$1$6(ce,fe);for(;k.length>ae;)hasOwn$a$a(ie,fe=k[ae++])&&(~indexOf$f(ce,fe)||push$1$6(ce,fe));return ce},enumBugKeys$3$b=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$e=objectKeysInternal$f,enumBugKeys$2$e=enumBugKeys$3$b,objectKeys$2$9=Object.keys||function v(k){return internalObjectKeys$1$e(k,enumBugKeys$2$e)},DESCRIPTORS$8$b=descriptors$h,V8_PROTOTYPE_DEFINE_BUG$i=v8PrototypeDefineBug$h,definePropertyModule$5$5=objectDefineProperty$h,anObject$a$a=anObject$c$8,toIndexedObject$2$f=toIndexedObject$5$b,objectKeys$1$e=objectKeys$2$9;objectDefineProperties$b.f=DESCRIPTORS$8$b&&!V8_PROTOTYPE_DEFINE_BUG$i?Object.defineProperties:function v(k,ie){anObject$a$a(k);for(var ae=toIndexedObject$2$f(ie),ce=objectKeys$1$e(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$5$5.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$5$b=getBuiltIn$8$7,html$2$7=getBuiltIn$5$b("document","documentElement"),shared$1$h=shared$3$h.exports,uid$k=uid$2$h,keys2$6=shared$1$h("keys"),sharedKey$3$b=function(v){return keys2$6[v]||(keys2$6[v]=uid$k(v))},anObject$9$a=anObject$c$8,definePropertiesModule$b=objectDefineProperties$b,enumBugKeys$1$f=enumBugKeys$3$b,hiddenKeys$2$f=hiddenKeys$4$b,html$1$c=html$2$7,documentCreateElement$1$b=documentCreateElement$2$9,sharedKey$2$b=sharedKey$3$b,GT$b=">",LT$b="<",PROTOTYPE$c="prototype",SCRIPT$b="script",IE_PROTO$1$b=sharedKey$2$b("IE_PROTO"),EmptyConstructor$b=function(){},scriptTag$b=function(v){return LT$b+SCRIPT$b+GT$b+v+LT$b+"/"+SCRIPT$b+GT$b},NullProtoObjectViaActiveX$b=function(v){v.write(scriptTag$b("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$b=function(){var v=documentCreateElement$1$b("iframe"),k="java"+SCRIPT$b+":",ie;return v.style.display="none",html$1$c.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$b("document.F=Object")),ie.close(),ie.F},activeXDocument$b,NullProtoObject$b=function(){try{activeXDocument$b=new ActiveXObject("htmlfile")}catch{}NullProtoObject$b=typeof document<"u"?document.domain&&activeXDocument$b?NullProtoObjectViaActiveX$b(activeXDocument$b):NullProtoObjectViaIFrame$b():NullProtoObjectViaActiveX$b(activeXDocument$b);for(var v=enumBugKeys$1$f.length;v--;)delete NullProtoObject$b[PROTOTYPE$c][enumBugKeys$1$f[v]];return NullProtoObject$b()};hiddenKeys$2$f[IE_PROTO$1$b]=!0;var objectCreate$b=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$b[PROTOTYPE$c]=anObject$9$a(k),ae=new EmptyConstructor$b,EmptyConstructor$b[PROTOTYPE$c]=null,ae[IE_PROTO$1$b]=k):ae=NullProtoObject$b(),ie===void 0?ae:definePropertiesModule$b.f(ae,ie)},wellKnownSymbol$e$a=wellKnownSymbol$g$4,create$1$b=objectCreate$b,defineProperty$5$9=objectDefineProperty$h.f,UNSCOPABLES$b=wellKnownSymbol$e$a("unscopables"),ArrayPrototype$1$a=Array.prototype;ArrayPrototype$1$a[UNSCOPABLES$b]==null&&defineProperty$5$9(ArrayPrototype$1$a,UNSCOPABLES$b,{configurable:!0,value:create$1$b(null)});var addToUnscopables$2$2=function(v){ArrayPrototype$1$a[UNSCOPABLES$b][v]=!0},iterators$c={},uncurryThis$a$f=functionUncurryThis$h,isCallable$f$c=isCallable$l$3,store$1$h=sharedStore$h,functionToString$h=uncurryThis$a$f(Function.toString);isCallable$f$c(store$1$h.inspectSource)||(store$1$h.inspectSource=function(v){return functionToString$h(v)});var inspectSource$4$7=store$1$h.inspectSource,global$d$b=global$k$3,isCallable$e$c=isCallable$l$3,inspectSource$3$b=inspectSource$4$7,WeakMap$1$h=global$d$b.WeakMap,nativeWeakMap$h=isCallable$e$c(WeakMap$1$h)&&/native code/.test(inspectSource$3$b(WeakMap$1$h)),createPropertyDescriptor$4$5=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$7$f=descriptors$h,definePropertyModule$4$a=objectDefineProperty$h,createPropertyDescriptor$3$b=createPropertyDescriptor$4$5,createNonEnumerableProperty$4$b=DESCRIPTORS$7$f?function(v,k,ie){return definePropertyModule$4$a.f(v,k,createPropertyDescriptor$3$b(1,ie))}:function(v,k,ie){return v[k]=ie,v},NATIVE_WEAK_MAP$h=nativeWeakMap$h,global$c$b=global$k$3,uncurryThis$9$f=functionUncurryThis$h,isObject$3$h=isObject$8$5,createNonEnumerableProperty$3$b=createNonEnumerableProperty$4$b,hasOwn$9$b=hasOwnProperty_1$h,shared$k=sharedStore$h,sharedKey$1$h=sharedKey$3$b,hiddenKeys$1$f=hiddenKeys$4$b,OBJECT_ALREADY_INITIALIZED$h="Object already initialized",TypeError$2$b=global$c$b.TypeError,WeakMap2=global$c$b.WeakMap,set$1$b,get$i,has$h,enforce$h=function(v){return has$h(v)?get$i(v):set$1$b(v,{})},getterFor$h=function(v){return function(k){var ie;if(!isObject$3$h(k)||(ie=get$i(k)).type!==v)throw TypeError$2$b("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$h||shared$k.state?(store$k=shared$k.state||(shared$k.state=new WeakMap2),wmget$h=uncurryThis$9$f(store$k.get),wmhas$h=uncurryThis$9$f(store$k.has),wmset$h=uncurryThis$9$f(store$k.set),set$1$b=function(v,k){if(wmhas$h(store$k,v))throw new TypeError$2$b(OBJECT_ALREADY_INITIALIZED$h);return k.facade=v,wmset$h(store$k,v,k),k},get$i=function(v){return wmget$h(store$k,v)||{}},has$h=function(v){return wmhas$h(store$k,v)}):(STATE$h=sharedKey$1$h("state"),hiddenKeys$1$f[STATE$h]=!0,set$1$b=function(v,k){if(hasOwn$9$b(v,STATE$h))throw new TypeError$2$b(OBJECT_ALREADY_INITIALIZED$h);return k.facade=v,createNonEnumerableProperty$3$b(v,STATE$h,k),k},get$i=function(v){return hasOwn$9$b(v,STATE$h)?v[STATE$h]:{}},has$h=function(v){return hasOwn$9$b(v,STATE$h)});var store$k,wmget$h,wmhas$h,wmset$h,STATE$h,internalState$h={set:set$1$b,get:get$i,has:has$h,enforce:enforce$h,getterFor:getterFor$h},objectGetOwnPropertyDescriptor$f={},objectPropertyIsEnumerable$f={},$propertyIsEnumerable$f={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$7=Object.getOwnPropertyDescriptor,NASHORN_BUG$f=getOwnPropertyDescriptor$2$7&&!$propertyIsEnumerable$f.call({1:2},1);objectPropertyIsEnumerable$f.f=NASHORN_BUG$f?function v(k){var ie=getOwnPropertyDescriptor$2$7(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$f;var DESCRIPTORS$6$f=descriptors$h,call$b$b=functionCall$h,propertyIsEnumerableModule$1$c=objectPropertyIsEnumerable$f,createPropertyDescriptor$2$f=createPropertyDescriptor$4$5,toIndexedObject$1$f=toIndexedObject$5$b,toPropertyKey$1$h=toPropertyKey$3$5,hasOwn$8$c=hasOwnProperty_1$h,IE8_DOM_DEFINE$i=ie8DomDefine$h,$getOwnPropertyDescriptor$i=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$f.f=DESCRIPTORS$6$f?$getOwnPropertyDescriptor$i:function v(k,ie){if(k=toIndexedObject$1$f(k),ie=toPropertyKey$1$h(ie),IE8_DOM_DEFINE$i)try{return $getOwnPropertyDescriptor$i(k,ie)}catch{}if(hasOwn$8$c(k,ie))return createPropertyDescriptor$2$f(!call$b$b(propertyIsEnumerableModule$1$c.f,k,ie),k[ie])};var makeBuiltIn$2$h={exports:{}},DESCRIPTORS$5$h=descriptors$h,hasOwn$7$d=hasOwnProperty_1$h,FunctionPrototype$1$h=Function.prototype,getDescriptor$h=DESCRIPTORS$5$h&&Object.getOwnPropertyDescriptor,EXISTS$i=hasOwn$7$d(FunctionPrototype$1$h,"name"),PROPER$h=EXISTS$i&&function v(){}.name==="something",CONFIGURABLE$i=EXISTS$i&&(!DESCRIPTORS$5$h||DESCRIPTORS$5$h&&getDescriptor$h(FunctionPrototype$1$h,"name").configurable),functionName$h={EXISTS:EXISTS$i,PROPER:PROPER$h,CONFIGURABLE:CONFIGURABLE$i},fails$a$d=fails$h$6,isCallable$d$c=isCallable$l$3,hasOwn$6$f=hasOwnProperty_1$h,DESCRIPTORS$4$h=descriptors$h,CONFIGURABLE_FUNCTION_NAME$1$b=functionName$h.CONFIGURABLE,inspectSource$2$h=inspectSource$4$7,InternalStateModule$2$a=internalState$h,enforceInternalState$j=InternalStateModule$2$a.enforce,getInternalState$1$b=InternalStateModule$2$a.get,defineProperty$4$b=Object.defineProperty,CONFIGURABLE_LENGTH$h=DESCRIPTORS$4$h&&!fails$a$d(function(){return defineProperty$4$b(function(){},"length",{value:8}).length!==8}),TEMPLATE$h=String(String).split("String"),makeBuiltIn$1$h=makeBuiltIn$2$h.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$6$f(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$b&&v.name!==k)&&(DESCRIPTORS$4$h?defineProperty$4$b(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$h&&ie&&hasOwn$6$f(ie,"arity")&&v.length!==ie.arity&&defineProperty$4$b(v,"length",{value:ie.arity});try{ie&&hasOwn$6$f(ie,"constructor")&&ie.constructor?DESCRIPTORS$4$h&&defineProperty$4$b(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$j(v);return hasOwn$6$f(ae,"source")||(ae.source=TEMPLATE$h.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$h(function v(){return isCallable$d$c(this)&&getInternalState$1$b(this).source||inspectSource$2$h(this)},"toString");var isCallable$c$c=isCallable$l$3,definePropertyModule$3$c=objectDefineProperty$h,makeBuiltIn$j=makeBuiltIn$2$h.exports,defineGlobalProperty$1$h=defineGlobalProperty$3$f,defineBuiltIn$6$a=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$c$c(ie)&&makeBuiltIn$j(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$h(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$3$c.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$f={},internalObjectKeys$g=objectKeysInternal$f,enumBugKeys$i=enumBugKeys$3$b,hiddenKeys$j=enumBugKeys$i.concat("length","prototype");objectGetOwnPropertyNames$f.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$g(k,hiddenKeys$j)};var objectGetOwnPropertySymbols$f={};objectGetOwnPropertySymbols$f.f=Object.getOwnPropertySymbols;var getBuiltIn$4$c=getBuiltIn$8$7,uncurryThis$8$f=functionUncurryThis$h,getOwnPropertyNamesModule$f=objectGetOwnPropertyNames$f,getOwnPropertySymbolsModule$1$c=objectGetOwnPropertySymbols$f,anObject$8$b=anObject$c$8,concat$1$c=uncurryThis$8$f([].concat),ownKeys$1$f=getBuiltIn$4$c("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$f.f(anObject$8$b(k)),ae=getOwnPropertySymbolsModule$1$c.f;return ae?concat$1$c(ie,ae(k)):ie},hasOwn$5$f=hasOwnProperty_1$h,ownKeys2$f=ownKeys$1$f,getOwnPropertyDescriptorModule$g=objectGetOwnPropertyDescriptor$f,definePropertyModule$2$f=objectDefineProperty$h,copyConstructorProperties$2$1=function(v,k,ie){for(var ae=ownKeys2$f(k),ce=definePropertyModule$2$f.f,fe=getOwnPropertyDescriptorModule$g.f,le=0;le=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$b=Iterators$2$b.Arguments=Iterators$2$b.Array;addToUnscopables$1$b("keys");addToUnscopables$1$b("values");addToUnscopables$1$b("entries");if(DESCRIPTORS$3$h&&values$b.name!=="values")try{defineProperty$2$f(values$b,"name",{value:"values"})}catch(v){}var domIterables$8={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$i=documentCreateElement$2$9,classList$8=documentCreateElement$i("span").classList,DOMTokenListPrototype$1$8=classList$8&&classList$8.constructor&&classList$8.constructor.prototype,domTokenListPrototype$8=DOMTokenListPrototype$1$8===Object.prototype?void 0:DOMTokenListPrototype$1$8,global$a$f=global$k$3,DOMIterables$8=domIterables$8,DOMTokenListPrototype$9=domTokenListPrototype$8,ArrayIteratorMethods$8=es_array_iterator$8,createNonEnumerableProperty$n=createNonEnumerableProperty$4$b,wellKnownSymbol$a$b=wellKnownSymbol$g$4,ITERATOR$3$a=wellKnownSymbol$a$b("iterator"),TO_STRING_TAG$2$c=wellKnownSymbol$a$b("toStringTag"),ArrayValues$8=ArrayIteratorMethods$8.values,handlePrototype$8=function(v,k){if(v){if(v[ITERATOR$3$a]!==ArrayValues$8)try{createNonEnumerableProperty$n(v,ITERATOR$3$a,ArrayValues$8)}catch{v[ITERATOR$3$a]=ArrayValues$8}if(v[TO_STRING_TAG$2$c]||createNonEnumerableProperty$n(v,TO_STRING_TAG$2$c,k),DOMIterables$8[k]){for(var ie in ArrayIteratorMethods$8)if(v[ie]!==ArrayIteratorMethods$8[ie])try{createNonEnumerableProperty$n(v,ie,ArrayIteratorMethods$8[ie])}catch{v[ie]=ArrayIteratorMethods$8[ie]}}}};for(COLLECTION_NAME$8 in DOMIterables$8)handlePrototype$8(global$a$f[COLLECTION_NAME$8]&&global$a$f[COLLECTION_NAME$8].prototype,COLLECTION_NAME$8);var COLLECTION_NAME$8;handlePrototype$8(DOMTokenListPrototype$9,"DOMTokenList");var DESCRIPTORS$2$h=descriptors$h,uncurryThis$6$h=functionUncurryThis$h,call$9$b=functionCall$h,fails$6$h=fails$h$6,objectKeys$g=objectKeys$2$9,getOwnPropertySymbolsModule$g=objectGetOwnPropertySymbols$f,propertyIsEnumerableModule$g=objectPropertyIsEnumerable$f,toObject$2$e=toObject$5$4,IndexedObject$1$c=indexedObject$f,$assign$c=Object.assign,defineProperty$1$h=Object.defineProperty,concat$h=uncurryThis$6$h([].concat),objectAssign$c=!$assign$c||fails$6$h(function(){if(DESCRIPTORS$2$h&&$assign$c({b:1},$assign$c(defineProperty$1$h({},"a",{enumerable:!0,get:function(){defineProperty$1$h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},k={},ie=Symbol(),ae="abcdefghijklmnopqrst";return v[ie]=7,ae.split("").forEach(function(ce){k[ce]=ce}),$assign$c({},v)[ie]!=7||objectKeys$g($assign$c({},k)).join("")!=ae})?function v(k,ie){for(var ae=toObject$2$e(k),ce=arguments.length,fe=1,le=getOwnPropertySymbolsModule$g.f,ve=propertyIsEnumerableModule$g.f;ce>fe;)for(var pe=IndexedObject$1$c(arguments[fe++]),ye=le?concat$h(objectKeys$g(pe),le(pe)):objectKeys$g(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$2$h||call$9$b(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$c,$$b$2=_export$f,assign2$c=objectAssign$c;$$b$2({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$c},{assign:assign2$c});function __awaiter$k(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var CloseIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",fill:"#C1C1C1"},{children:[(0,import_jsx_runtime.jsx)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,import_jsx_runtime.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})]})),CloseButton=({onClick:v})=>(0,import_jsx_runtime.jsx)("button",Object.assign({onClick:v,className:"close-button"},{children:(0,import_jsx_runtime.jsx)(CloseIcon,{})})),ModalHeader=({title:v,onCloseModal:k})=>{const ie=v==="Get a Wallet"?" -open":"";return(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal-header"},{children:[(0,import_jsx_runtime.jsx)("h3",Object.assign({className:`middleTitle ${ie}`},{children:v})),(0,import_jsx_runtime.jsx)(CloseButton,{onClick:k})]}))},BackArrowIcon=()=>(0,import_jsx_runtime.jsx)("svg",Object.assign({width:"8",height:"14",viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,import_jsx_runtime.jsx)("path",{d:"M7 13L1 7L7 1",stroke:"#6494EE",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),BackArrow=({onClick:v})=>(0,import_jsx_runtime.jsx)("button",Object.assign({onClick:v,className:"back-button"},{children:(0,import_jsx_runtime.jsx)(BackArrowIcon,{})})),WalletNetworkChanged=({selector:v,onBack:k,onCloseModal:ie})=>(0,import_jsx_runtime.jsxs)(import_react.Fragment,{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal-header-wrapper"},{children:[(0,import_jsx_runtime.jsx)(BackArrow,{onClick:k}),(0,import_jsx_runtime.jsx)(ModalHeader,{title:"You Must Change the Network",onCloseModal:ie})]})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"switch-network-message-wrapper"},{children:(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content"},{children:[(0,import_jsx_runtime.jsxs)("p",{children:["We've detected that you need to change your wallet's network to",(0,import_jsx_runtime.jsx)("strong",Object.assign({className:"network-id"},{children:` ${v.options.network.networkId}`}))," ","for this dApp."]}),(0,import_jsx_runtime.jsx)("p",{children:"Some wallets may not support changing networks. If you can not change networks you may consider switching to another wallet."})]}))}))]}),tryToString$3$b=tryToString$5$1,$TypeError$7$b=TypeError,deletePropertyOrThrow$1=function(v,k){if(!delete v[k])throw $TypeError$7$b("Cannot delete property "+tryToString$3$b(k)+" of "+tryToString$3$b(v))},wellKnownSymbol$9$b=wellKnownSymbol$g$4,TO_STRING_TAG$1$f=wellKnownSymbol$9$b("toStringTag"),test$1$1={};test$1$1[TO_STRING_TAG$1$f]="z";var toStringTagSupport$f=String(test$1$1)==="[object z]",TO_STRING_TAG_SUPPORT$f=toStringTagSupport$f,isCallable$6$h=isCallable$l$3,classofRaw$i=classofRaw$1$f,wellKnownSymbol$8$c=wellKnownSymbol$g$4,TO_STRING_TAG$i=wellKnownSymbol$8$c("toStringTag"),$Object$l=Object,CORRECT_ARGUMENTS$f=classofRaw$i(function(){return arguments}())=="Arguments",tryGet$f=function(v,k){try{return v[k]}catch{}},classof$5$a=TO_STRING_TAG_SUPPORT$f?classofRaw$i:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$f(k=$Object$l(v),TO_STRING_TAG$i))=="string"?ie:CORRECT_ARGUMENTS$f?classofRaw$i(k):(ae=classofRaw$i(k))=="Object"&&isCallable$6$h(k.callee)?"Arguments":ae},classof$4$b=classof$5$a,$String$k=String,toString$3$4=function(v){if(classof$4$b(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$k(v)},toPropertyKey$l=toPropertyKey$3$5,definePropertyModule$1$h=objectDefineProperty$h,createPropertyDescriptor$m=createPropertyDescriptor$4$5,createProperty$1$5=function(v,k,ie){var ae=toPropertyKey$l(k);ae in v?definePropertyModule$1$h.f(v,ae,createPropertyDescriptor$m(0,ie)):v[ae]=ie},toAbsoluteIndex$j=toAbsoluteIndex$2$5,lengthOfArrayLike$3$5=lengthOfArrayLike$5$4,createProperty$6=createProperty$1$5,$Array$7=Array,max$g=Math.max,arraySliceSimple$5=function(v,k,ie){for(var ae=lengthOfArrayLike$3$5(v),ce=toAbsoluteIndex$j(k,ae),fe=toAbsoluteIndex$j(ie===void 0?ae:ie,ae),le=$Array$7(max$g(fe-ce,0)),ve=0;ce0;)v[fe]=v[--fe];fe!==ae++&&(v[fe]=ce)}return v},merge$4=function(v,k,ie,ae){for(var ce=k.length,fe=ie.length,le=0,ve=0;le3)){if(IE_OR_EDGE$4)return!0;if(WEBKIT$4)return WEBKIT$4<603;var v="",k,ie,ae,ce;for(k=65;k<76;k++){switch(ie=String.fromCharCode(k),k){case 66:case 69:case 70:case 72:ae=3;break;case 68:case 71:ae=4;break;default:ae=2}for(ce=0;ce<47;ce++)test$f.push({k:ie+ce,v:ae})}for(test$f.sort(function(fe,le){return le.v-fe.v}),ce=0;cetoString$2$e(ie)?1:-1}};$$a$2({target:"Array",proto:!0,forced:FORCED$5},{sort:function v(k){k!==void 0&&aCallable$7$7(k);var ie=toObject$1$h(this);if(STABLE_SORT$4)return k===void 0?un$Sort$4(ie):un$Sort$4(ie,k);var ae=[],ce=lengthOfArrayLike$2$b(ie),fe,le;for(le=0;le1?arguments[1]:void 0)}});addToUnscopables$c("includes");var isObject$2$h=isObject$8$5,classof$3$b=classofRaw$1$f,wellKnownSymbol$7$c=wellKnownSymbol$g$4,MATCH$1$1=wellKnownSymbol$7$c("match"),isRegexp$2=function(v){var k;return isObject$2$h(v)&&((k=v[MATCH$1$1])!==void 0?!!k:classof$3$b(v)=="RegExp")},isRegExp$3=isRegexp$2,$TypeError$6$c=TypeError,notARegexp$1=function(v){if(isRegExp$3(v))throw $TypeError$6$c("The method doesn't accept regular expressions");return v},wellKnownSymbol$6$c=wellKnownSymbol$g$4,MATCH$3=wellKnownSymbol$6$c("match"),correctIsRegexpLogic$1=function(v){var k=/./;try{"/./"[v](k)}catch{try{return k[MATCH$3]=!1,"/./"[v](k)}catch{}}return!1},$$8$3=_export$f,uncurryThis$4$h=functionUncurryThis$h,notARegExp$1=notARegexp$1,requireObjectCoercible$j=requireObjectCoercible$3$4,toString$1$h=toString$3$4,correctIsRegExpLogic$1=correctIsRegexpLogic$1,stringIndexOf$2=uncurryThis$4$h("".indexOf);$$8$3({target:"String",proto:!0,forced:!correctIsRegExpLogic$1("includes")},{includes:function v(k){return!!~stringIndexOf$2(toString$1$h(requireObjectCoercible$j(this)),toString$1$h(notARegExp$1(k)),arguments.length>1?arguments[1]:void 0)}});var aCallable$6$7=aCallable$9$1,toObject$n=toObject$5$4,IndexedObject$h=indexedObject$f,lengthOfArrayLike$1$f=lengthOfArrayLike$5$4,$TypeError$5$h=TypeError,createMethod$g=function(v){return function(k,ie,ae,ce){aCallable$6$7(ie);var fe=toObject$n(k),le=IndexedObject$h(fe),ve=lengthOfArrayLike$1$f(fe),pe=v?ve-1:0,ye=v?-1:1;if(ae<2)for(;;){if(pe in le){ce=le[pe],pe+=ye;break}if(pe+=ye,v?pe<0:ve<=pe)throw $TypeError$5$h("Reduce of empty array with no initial value")}for(;v?pe>=0:ve>pe;pe+=ye)pe in le&&(ce=ie(ce,le[pe],pe,fe));return ce}},arrayReduce={left:createMethod$g(!1),right:createMethod$g(!0)},classof$2$d=classofRaw$1$f,global$9$h=global$k$3,engineIsNode$7=classof$2$d(global$9$h.process)=="process",$$7$6=_export$f,$reduce=arrayReduce.left,arrayMethodIsStrict=arrayMethodIsStrict$2,CHROME_VERSION=engineV8Version$h,IS_NODE$3$1=engineIsNode$7,STRICT_METHOD=arrayMethodIsStrict("reduce"),CHROME_BUG=!IS_NODE$3$1&&CHROME_VERSION>79&&CHROME_VERSION<83;$$7$6({target:"Array",proto:!0,forced:!STRICT_METHOD||CHROME_BUG},{reduce:function v(k){var ie=arguments.length;return $reduce(this,k,ie,ie>1?arguments[1]:void 0)}});var $$6$7=_export$f,DESCRIPTORS$1$h=descriptors$h,global$8$h=global$k$3,uncurryThis$3$h=functionUncurryThis$h,hasOwn$2$h=hasOwnProperty_1$h,isCallable$5$h=isCallable$l$3,isPrototypeOf$3$a=objectIsPrototypeOf$h,toString2$e=toString$3$4,defineProperty3$e=objectDefineProperty$h.f,copyConstructorProperties$g=copyConstructorProperties$2$1,NativeSymbol=global$8$h.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;DESCRIPTORS$1$h&&isCallable$5$h(NativeSymbol)&&(!("description"in SymbolPrototype)||NativeSymbol().description!==void 0)&&(EmptyStringDescriptionStore={},SymbolWrapper=function(){var k=arguments.length<1||arguments[0]===void 0?void 0:toString2$e(arguments[0]),ie=isPrototypeOf$3$a(SymbolPrototype,this)?new NativeSymbol(k):k===void 0?NativeSymbol():NativeSymbol(k);return k===""&&(EmptyStringDescriptionStore[ie]=!0),ie},copyConstructorProperties$g(SymbolWrapper,NativeSymbol),SymbolWrapper.prototype=SymbolPrototype,SymbolPrototype.constructor=SymbolWrapper,NATIVE_SYMBOL$i=String(NativeSymbol("test"))=="Symbol(test)",symbolToString=uncurryThis$3$h(SymbolPrototype.toString),symbolValueOf=uncurryThis$3$h(SymbolPrototype.valueOf),regexp=/^Symbol\((.*)\)[^)]+$/,replace$4=uncurryThis$3$h("".replace),stringSlice$h=uncurryThis$3$h("".slice),defineProperty3$e(SymbolPrototype,"description",{configurable:!0,get:function(){var k=symbolValueOf(this),ie=symbolToString(k);if(hasOwn$2$h(EmptyStringDescriptionStore,k))return"";var ae=NATIVE_SYMBOL$i?stringSlice$h(ie,7,-1):replace$4(ie,regexp,"$1");return ae===""?void 0:ae}}),$$6$7({globalThis:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper}));var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL$i,symbolToString,symbolValueOf,regexp,replace$4,stringSlice$h,WarningIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("path",{d:"M4.95215 16.3536L10.2152 5.85657C10.9531 4.38481 13.0538 4.38519 13.7912 5.85723L19.0494 16.3543C19.7156 17.6841 18.7486 19.25 17.2612 19.25H6.74001C5.25228 19.25 4.28535 17.6835 4.95215 16.3536Z",stroke:"#E6B73E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M12 10V12",stroke:"#E6B73E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M12.5 16C12.5 16.2761 12.2761 16.5 12 16.5C11.7239 16.5 11.5 16.2761 11.5 16C11.5 15.7239 11.7239 15.5 12 15.5C12.2761 15.5 12.5 15.7239 12.5 16Z",stroke:"#E6B73E"})]})),WalletOptions=({selector:v,handleWalletClick:k})=>{const[ie,ae]=(0,import_react.useState)([]),[ce,fe]=(0,import_react.useState)([]),[le,ve]=(0,import_react.useState)([]),[pe,ye]=(0,import_react.useState)("");(0,import_react.useEffect)(()=>{const Ee=v.store.observable.subscribe(cr=>{const{selectedWalletId:Br}=v.store.getState();Br&&ye(Br);const $r=cr.modules.filter(Pr=>!(Pr.type==="instant-link"&&Br!==Pr.id));if(v.options.optimizeWalletOrder){cr.modules.sort((ur,jr)=>ur.metadata.deprecated===jr.metadata.deprecated?0:ur.metadata.deprecated?1:-1),cr.modules.sort((ur,jr)=>jr.metadata.available===ur.metadata.available?0:jr.metadata.available?1:-1);const Pr=[],Ar=[];$r.forEach(ur=>{v.store.getState().recentlySignedInWallets.includes(ur.id)?Ar.push(ur):Pr.push(ur)}),fe(Ar),ve(Pr)}v.options.randomizeWalletOrder?ae($r.sort(()=>Math.random()-.5)):ae($r)});return()=>Ee.unsubscribe()},[]);function me(Ee){return Ee.reduce((cr,Br,$r)=>{const{selectedWalletId:Pr}=v.store.getState(),{name:Ar,description:ur,iconUrl:jr,deprecated:Mr}=Br.metadata,Lr=Br.id===Pr;return cr.push((0,import_jsx_runtime.jsxs)("li",Object.assign({tabIndex:0,className:`single-wallet ${pe===Br.id?"selected-wallet":""} ${Lr?"connected-wallet":""} ${Mr?"deprecated-wallet":""} sidebar ${Br.id}`,onClick:()=>(Br.id===Ee[$r].id&&ye(Br.id),k(Br))},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"icon"},{children:(0,import_jsx_runtime.jsx)("img",{src:jr,alt:Ar})})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"title"},{children:Ar})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"description"},{children:ur}))]})),Mr&&(0,import_jsx_runtime.jsx)("div",Object.assign({className:"warning-triangle"},{children:(0,import_jsx_runtime.jsx)(WarningIcon,{})}))]}),Br.id)),cr},[])}return(0,import_jsx_runtime.jsx)("div",{children:v.options.optimizeWalletOrder&&v.store.getState().recentlySignedInWallets.length>0?(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-options-wrapper"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"options-list-section"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"options-list-section-header"},{children:"Recent"})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"options-list more-options-list-content"},{children:me(ce)}))]})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"options-list-section"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"options-list-section-header"},{children:"More"})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"options-list more-options-list-content"},{children:me(le)}))]}))]})):(0,import_jsx_runtime.jsx)("div",Object.assign({className:"wallet-options-wrapper"},{children:(0,import_jsx_runtime.jsx)("div",Object.assign({className:"options-list"},{children:me(ie)}))}))})},ConnectionErrorIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("path",{d:"M10.5001 18.3333C15.1025 18.3333 18.8334 14.6023 18.8334 9.99996C18.8334 5.39759 15.1025 1.66663 10.5001 1.66663C5.89771 1.66663 2.16675 5.39759 2.16675 9.99996C2.16675 14.6023 5.89771 18.3333 10.5001 18.3333Z",stroke:"#CE5A6F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M13 7.5L8 12.5",stroke:"#CE5A6F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M8 7.5L13 12.5",stroke:"#CE5A6F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})),ConnectionSuccessIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("path",{d:"M18.8333 9.2333V9.99997C18.8323 11.797 18.2504 13.5455 17.1744 14.9848C16.0984 16.4241 14.586 17.477 12.8628 17.9866C11.1395 18.4961 9.29768 18.4349 7.61202 17.8121C5.92636 17.1894 4.48717 16.0384 3.50909 14.5309C2.53101 13.0233 2.06645 11.24 2.18469 9.4469C2.30293 7.65377 2.99763 5.94691 4.16519 4.58086C5.33275 3.21482 6.91061 2.26279 8.66345 1.86676C10.4163 1.47073 12.2502 1.65192 13.8916 2.3833",stroke:"#4FD98F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M18.8333 3.33337L10.5 11.675L8 9.17504",stroke:"#4FD98F",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})),ConnectionResult=({module:v,message:k,err:ie,onRetry:ae})=>(0,import_jsx_runtime.jsx)("div",Object.assign({className:"connection connecting-details"},{children:ie?(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"error-wrapper"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"error"},{children:[(0,import_jsx_runtime.jsx)(ConnectionErrorIcon,{}),translate("modal.wallet.connectionFailed")]})),(0,import_jsx_runtime.jsx)("p",{children:k}),(v==null?void 0:v.metadata.available)&&(0,import_jsx_runtime.jsx)("button",Object.assign({onClick:ae},{children:translate("modal.ledger.retry")}))]})):(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"success"},{children:[(0,import_jsx_runtime.jsx)(ConnectionSuccessIcon,{}),translate("modal.wallet.connectionSuccessful")]}))})),AlertMessage=({message:v,module:k,onBack:ie,onCloseModal:ae})=>(0,import_jsx_runtime.jsxs)(import_react.Fragment,{children:[(0,import_jsx_runtime.jsx)(ModalHeader,{title:"",onCloseModal:ae}),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"alert-message connecting-wrapper connecting-wrapper-err"},{children:(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"icon"},{children:(0,import_jsx_runtime.jsx)("img",{src:k==null?void 0:k.metadata.iconUrl,alt:k==null?void 0:k.metadata.name})})),(0,import_jsx_runtime.jsx)("h3",Object.assign({className:"connecting-name"},{children:k==null?void 0:k.metadata.name})),(0,import_jsx_runtime.jsx)(ConnectionResult,{module:k,message:v,err:v!==null,onRetry:()=>{ie(!0)}})]}))}))]}),getBuiltIn$3$f=getBuiltIn$8$7,definePropertyModule$n=objectDefineProperty$h,wellKnownSymbol$5$c=wellKnownSymbol$g$4,DESCRIPTORS$u=descriptors$h,SPECIES$2$b=wellKnownSymbol$5$c("species"),setSpecies$1$b=function(v){var k=getBuiltIn$3$f(v),ie=definePropertyModule$n.f;DESCRIPTORS$u&&k&&!k[SPECIES$2$b]&&ie(k,SPECIES$2$b,{configurable:!0,get:function(){return this}})},isPrototypeOf$2$b=objectIsPrototypeOf$h,$TypeError$4$h=TypeError,anInstance$1$b=function(v,k){if(isPrototypeOf$2$b(k,v))return v;throw $TypeError$4$h("Incorrect invocation")},uncurryThis$2$h=functionUncurryThis$h,fails$2$h=fails$h$6,isCallable$4$h=isCallable$l$3,classof$1$f=classof$5$a,getBuiltIn$2$h=getBuiltIn$8$7,inspectSource$1$h=inspectSource$4$7,noop$b=function(){},empty$a=[],construct$b=getBuiltIn$2$h("Reflect","construct"),constructorRegExp$b=/^\s*(?:class|function)\b/,exec$c=uncurryThis$2$h(constructorRegExp$b.exec),INCORRECT_TO_STRING$b=!constructorRegExp$b.exec(noop$b),isConstructorModern$b=function v(k){if(!isCallable$4$h(k))return!1;try{return construct$b(noop$b,empty$a,k),!0}catch{return!1}},isConstructorLegacy$b=function v(k){if(!isCallable$4$h(k))return!1;switch(classof$1$f(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$b||!!exec$c(constructorRegExp$b,inspectSource$1$h(k))}catch{return!0}};isConstructorLegacy$b.sham=!0;var isConstructor$1$b=!construct$b||fails$2$h(function(){var v;return isConstructorModern$b(isConstructorModern$b.call)||!isConstructorModern$b(Object)||!isConstructorModern$b(function(){v=!0})||v})?isConstructorLegacy$b:isConstructorModern$b,isConstructor3$b=isConstructor$1$b,tryToString$2$b=tryToString$5$1,$TypeError$3$h=TypeError,aConstructor$1$b=function(v){if(isConstructor3$b(v))return v;throw $TypeError$3$h(tryToString$2$b(v)+" is not a constructor")},anObject$6$c=anObject$c$8,aConstructor$d=aConstructor$1$b,wellKnownSymbol$4$c=wellKnownSymbol$g$4,SPECIES$1$b=wellKnownSymbol$4$c("species"),speciesConstructor$1$b=function(v,k){var ie=anObject$6$c(v).constructor,ae;return ie===void 0||(ae=anObject$6$c(ie)[SPECIES$1$b])==null?k:aConstructor$d(ae)},NATIVE_BIND$1$h=functionBindNative$h,FunctionPrototype$j=Function.prototype,apply$1$b=FunctionPrototype$j.apply,call$8$b=FunctionPrototype$j.call,functionApply$b=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$1$h?call$8$b.bind(apply$1$b):function(){return call$8$b.apply(apply$1$b,arguments)}),uncurryThis$1$h=functionUncurryThis$h,aCallable$5$7=aCallable$9$1,NATIVE_BIND$k=functionBindNative$h,bind$4$7=uncurryThis$1$h(uncurryThis$1$h.bind),functionBindContext$b=function(v,k){return aCallable$5$7(v),k===void 0?v:NATIVE_BIND$k?bind$4$7(v,k):function(){return v.apply(k,arguments)}},uncurryThis$B=functionUncurryThis$h,arraySlice$1$b=uncurryThis$B([].slice),$TypeError$2$h=TypeError,validateArgumentsLength$1$7=function(v,k){if(v=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3$7(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$d]=ae,SUBCLASSING$7=ie.then(function(){})instanceof ae,SUBCLASSING$7?!k&&IS_BROWSER$7&&!NATIVE_PROMISE_REJECTION_EVENT$1$7:!0}),promiseConstructorDetection$7={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$7,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$7,SUBCLASSING:SUBCLASSING$7},newPromiseCapability$2$7={},aCallable$4$b=aCallable$9$1,PromiseCapability$7=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$b(k),this.reject=aCallable$4$b(ie)};newPromiseCapability$2$7.f=function(v){return new PromiseCapability$7(v)};var $$5$7=_export$f,IS_NODE$9=engineIsNode$7,global$1$h=global$k$3,call$7$b=functionCall$h,defineBuiltIn$2$d=defineBuiltIn$6$a,setPrototypeOf$g=objectSetPrototypeOf$c,setToStringTag$f=setToStringTag$3$a,setSpecies$c=setSpecies$1$b,aCallable$3$b=aCallable$9$1,isCallable$1$h=isCallable$l$3,isObject$1$h=isObject$8$5,anInstance$d=anInstance$1$b,speciesConstructor$c=speciesConstructor$1$b,task$8=task$1$7.set,microtask$8=microtask$1$7,hostReportErrors$8=hostReportErrors$1$7,perform$2$7=perform$3$7,Queue$8=queue$8,InternalStateModule$l=internalState$h,NativePromiseConstructor$2$7=promiseNativeConstructor$7,PromiseConstructorDetection$7=promiseConstructorDetection$7,newPromiseCapabilityModule$3$7=newPromiseCapability$2$7,PROMISE$7="Promise",FORCED_PROMISE_CONSTRUCTOR$4$7=PromiseConstructorDetection$7.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$8=PromiseConstructorDetection$7.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$7=PromiseConstructorDetection$7.SUBCLASSING,getInternalPromiseState$7=InternalStateModule$l.getterFor(PROMISE$7),setInternalState$e=InternalStateModule$l.set,NativePromisePrototype$1$7=NativePromiseConstructor$2$7&&NativePromiseConstructor$2$7.prototype,PromiseConstructor$7=NativePromiseConstructor$2$7,PromisePrototype$7=NativePromisePrototype$1$7,TypeError$1$h=global$1$h.TypeError,document$1$c=global$1$h.document,process2$2=global$1$h.process,newPromiseCapability$1$7=newPromiseCapabilityModule$3$7.f,newGenericPromiseCapability$7=newPromiseCapability$1$7,DISPATCH_EVENT$7=!!(document$1$c&&document$1$c.createEvent&&global$1$h.dispatchEvent),UNHANDLED_REJECTION$7="unhandledrejection",REJECTION_HANDLED$7="rejectionhandled",PENDING$7=0,FULFILLED$7=1,REJECTED$7=2,HANDLED$7=1,UNHANDLED$7=2,Internal$7,OwnPromiseCapability$7,PromiseWrapper$7,nativeThen$7,isThenable$7=function(v){var k;return isObject$1$h(v)&&isCallable$1$h(k=v.then)?k:!1},callReaction$7=function(v,k){var ie=k.value,ae=k.state==FULFILLED$7,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$7&&onHandleUnhandled$7(k),k.rejection=HANDLED$7),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$h("Promise-chain cycle")):(ye=isThenable$7(pe))?call$7$b(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$8=function(v,k){v.notified||(v.notified=!0,microtask$8(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$7(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$7(v)}))},dispatchEvent$7=function(v,k,ie){var ae,ce;DISPATCH_EVENT$7?(ae=document$1$c.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$1$h.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$8&&(ce=global$1$h["on"+v])?ce(ae):v===UNHANDLED_REJECTION$7&&hostReportErrors$8("Unhandled promise rejection",ie)},onUnhandled$7=function(v){call$7$b(task$8,global$1$h,function(){var k=v.facade,ie=v.value,ae=isUnhandled$7(v),ce;if(ae&&(ce=perform$2$7(function(){IS_NODE$9?process2$2.emit("unhandledRejection",ie,k):dispatchEvent$7(UNHANDLED_REJECTION$7,k,ie)}),v.rejection=IS_NODE$9||isUnhandled$7(v)?UNHANDLED$7:HANDLED$7,ce.error))throw ce.value})},isUnhandled$7=function(v){return v.rejection!==HANDLED$7&&!v.parent},onHandleUnhandled$7=function(v){call$7$b(task$8,global$1$h,function(){var k=v.facade;IS_NODE$9?process2$2.emit("rejectionHandled",k):dispatchEvent$7(REJECTION_HANDLED$7,k,v.value)})},bind$1$b=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$7=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$7,notify$8(v,!0))},internalResolve$7=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$h("Promise can't be resolved itself");var ae=isThenable$7(k);ae?microtask$8(function(){var ce={done:!1};try{call$7$b(ae,k,bind$1$b(internalResolve$7,ce,v),bind$1$b(internalReject$7,ce,v))}catch(fe){internalReject$7(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$7,notify$8(v,!1))}catch(ce){internalReject$7({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$7&&(PromiseConstructor$7=function(k){anInstance$d(this,PromisePrototype$7),aCallable$3$b(k),call$7$b(Internal$7,this);var ie=getInternalPromiseState$7(this);try{k(bind$1$b(internalResolve$7,ie),bind$1$b(internalReject$7,ie))}catch(ae){internalReject$7(ie,ae)}},PromisePrototype$7=PromiseConstructor$7.prototype,Internal$7=function(k){setInternalState$e(this,{type:PROMISE$7,done:!1,notified:!1,parent:!1,reactions:new Queue$8,rejection:!1,state:PENDING$7,value:void 0})},Internal$7.prototype=defineBuiltIn$2$d(PromisePrototype$7,"then",function(k,ie){var ae=getInternalPromiseState$7(this),ce=newPromiseCapability$1$7(speciesConstructor$c(this,PromiseConstructor$7));return ae.parent=!0,ce.ok=isCallable$1$h(k)?k:!0,ce.fail=isCallable$1$h(ie)&&ie,ce.domain=IS_NODE$9?process2$2.domain:void 0,ae.state==PENDING$7?ae.reactions.add(ce):microtask$8(function(){callReaction$7(ce,ae)}),ce.promise}),OwnPromiseCapability$7=function(){var v=new Internal$7,k=getInternalPromiseState$7(v);this.promise=v,this.resolve=bind$1$b(internalResolve$7,k),this.reject=bind$1$b(internalReject$7,k)},newPromiseCapabilityModule$3$7.f=newPromiseCapability$1$7=function(v){return v===PromiseConstructor$7||v===PromiseWrapper$7?new OwnPromiseCapability$7(v):newGenericPromiseCapability$7(v)},isCallable$1$h(NativePromiseConstructor$2$7)&&NativePromisePrototype$1$7!==Object.prototype)){nativeThen$7=NativePromisePrototype$1$7.then,NATIVE_PROMISE_SUBCLASSING$7||defineBuiltIn$2$d(NativePromisePrototype$1$7,"then",function(k,ie){var ae=this;return new PromiseConstructor$7(function(ce,fe){call$7$b(nativeThen$7,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1$7.constructor}catch{}setPrototypeOf$g&&setPrototypeOf$g(NativePromisePrototype$1$7,PromisePrototype$7)}$$5$7({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$7},{Promise:PromiseConstructor$7});setToStringTag$f(PromiseConstructor$7,PROMISE$7,!1);setSpecies$c(PROMISE$7);var wellKnownSymbol$2$f=wellKnownSymbol$g$4,Iterators$1$c=iterators$c,ITERATOR$2$c=wellKnownSymbol$2$f("iterator"),ArrayPrototype$d=Array.prototype,isArrayIteratorMethod$1$b=function(v){return v!==void 0&&(Iterators$1$c.Array===v||ArrayPrototype$d[ITERATOR$2$c]===v)},classof$p=classof$5$a,getMethod$1$h=getMethod$3$8,Iterators$g=iterators$c,wellKnownSymbol$1$h=wellKnownSymbol$g$4,ITERATOR$1$c=wellKnownSymbol$1$h("iterator"),getIteratorMethod$2$b=function(v){if(v!=null)return getMethod$1$h(v,ITERATOR$1$c)||getMethod$1$h(v,"@@iterator")||Iterators$g[classof$p(v)]},call$6$d=functionCall$h,aCallable$2$b=aCallable$9$1,anObject$5$c=anObject$c$8,tryToString$1$h=tryToString$5$1,getIteratorMethod$1$b=getIteratorMethod$2$b,$TypeError$1$h=TypeError,getIterator$1$b=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$b(v):k;if(aCallable$2$b(ie))return anObject$5$c(call$6$d(ie,v));throw $TypeError$1$h(tryToString$1$h(v)+" is not iterable")},call$5$f=functionCall$h,anObject$4$d=anObject$c$8,getMethod$k=getMethod$3$8,iteratorClose$1$7=function(v,k,ie){var ae,ce;anObject$4$d(v);try{if(ae=getMethod$k(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$5$f(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$4$d(ae),ie},bind$m=functionBindContext$b,call$4$h=functionCall$h,anObject$3$f=anObject$c$8,tryToString$l=tryToString$5$1,isArrayIteratorMethod$c=isArrayIteratorMethod$1$b,lengthOfArrayLike$l=lengthOfArrayLike$5$4,isPrototypeOf$1$f=objectIsPrototypeOf$h,getIterator$c=getIterator$1$b,getIteratorMethod$d=getIteratorMethod$2$b,iteratorClose$8=iteratorClose$1$7,$TypeError$s=TypeError,Result$7=function(v,k){this.stopped=v,this.result=k},ResultPrototype$7=Result$7.prototype,iterate$2$7=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$m(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$8(pe,"normal",ur),new Result$7(!0,ur)},Ar=function(ur){return ce?(anObject$3$f(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$d(v),!ye)throw $TypeError$s(tryToString$l(v)+" is not iterable");if(isArrayIteratorMethod$c(ye)){for(me=0,Ee=lengthOfArrayLike$l(v);Ee>me;me++)if(cr=Ar(v[me]),cr&&isPrototypeOf$1$f(ResultPrototype$7,cr))return cr;return new Result$7(!1)}pe=getIterator$c(v,ye)}for(Br=pe.next;!($r=call$4$h(Br,pe)).done;){try{cr=Ar($r.value)}catch(ur){iteratorClose$8(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$1$f(ResultPrototype$7,cr))return cr}return new Result$7(!1)},wellKnownSymbol$v=wellKnownSymbol$g$4,ITERATOR$g=wellKnownSymbol$v("iterator"),SAFE_CLOSING$b=!1;try{called$b=0,iteratorWithReturn$b={next:function(){return{done:!!called$b++}},return:function(){SAFE_CLOSING$b=!0}},iteratorWithReturn$b[ITERATOR$g]=function(){return this},Array.from(iteratorWithReturn$b,function(){throw 2})}catch(v){}var called$b,iteratorWithReturn$b,checkCorrectnessOfIteration$1$b=function(v,k){if(!k&&!SAFE_CLOSING$b)return!1;var ie=!1;try{var ae={};ae[ITERATOR$g]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1$7=promiseNativeConstructor$7,checkCorrectnessOfIteration$c=checkCorrectnessOfIteration$1$b,FORCED_PROMISE_CONSTRUCTOR$3$7=promiseConstructorDetection$7.CONSTRUCTOR,promiseStaticsIncorrectIteration$7=FORCED_PROMISE_CONSTRUCTOR$3$7||!checkCorrectnessOfIteration$c(function(v){NativePromiseConstructor$1$7.all(v).then(void 0,function(){})}),$$4$8=_export$f,call$3$h=functionCall$h,aCallable$1$h=aCallable$9$1,newPromiseCapabilityModule$2$7=newPromiseCapability$2$7,perform$1$7=perform$3$7,iterate$1$7=iterate$2$7,PROMISE_STATICS_INCORRECT_ITERATION$1$7=promiseStaticsIncorrectIteration$7;$$4$8({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$7},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$7.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$7(function(){var ve=aCallable$1$h(ie.resolve),pe=[],ye=0,me=1;iterate$1$7(k,function(Ee){var cr=ye++,Br=!1;me++,call$3$h(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$3$b=_export$f,FORCED_PROMISE_CONSTRUCTOR$2$7=promiseConstructorDetection$7.CONSTRUCTOR,NativePromiseConstructor$a=promiseNativeConstructor$7,getBuiltIn$1$h=getBuiltIn$8$7,isCallable$z=isCallable$l$3,defineBuiltIn$1$h=defineBuiltIn$6$a,NativePromisePrototype$8=NativePromiseConstructor$a&&NativePromiseConstructor$a.prototype;$$3$b({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$7,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$z(NativePromiseConstructor$a)&&(method$7=getBuiltIn$1$h("Promise").prototype.catch,NativePromisePrototype$8.catch!==method$7&&defineBuiltIn$1$h(NativePromisePrototype$8,"catch",method$7,{unsafe:!0}));var method$7,$$2$b=_export$f,call$2$h=functionCall$h,aCallable$o=aCallable$9$1,newPromiseCapabilityModule$1$7=newPromiseCapability$2$7,perform$a=perform$3$7,iterate$9=iterate$2$7,PROMISE_STATICS_INCORRECT_ITERATION$8=promiseStaticsIncorrectIteration$7;$$2$b({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$8},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$7.f(ie),ce=ae.reject,fe=perform$a(function(){var le=aCallable$o(ie.resolve);iterate$9(k,function(ve){call$2$h(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$1$b=_export$f,call$1$h=functionCall$h,newPromiseCapabilityModule$a=newPromiseCapability$2$7,FORCED_PROMISE_CONSTRUCTOR$1$7=promiseConstructorDetection$7.CONSTRUCTOR;$$1$b({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$7},{reject:function v(k){var ie=newPromiseCapabilityModule$a.f(this);return call$1$h(ie.reject,void 0,k),ie.promise}});var anObject$2$h=anObject$c$8,isObject$s=isObject$8$5,newPromiseCapability$9=newPromiseCapability$2$7,promiseResolve$1$7=function(v,k){if(anObject$2$h(v),isObject$s(k)&&k.constructor===v)return k;var ie=newPromiseCapability$9.f(v),ae=ie.resolve;return ae(k),ie.promise},$$m=_export$f,getBuiltIn$p=getBuiltIn$8$7,FORCED_PROMISE_CONSTRUCTOR$c=promiseConstructorDetection$7.CONSTRUCTOR,promiseResolve$8=promiseResolve$1$7;getBuiltIn$p("Promise");$$m({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$c},{resolve:function v(k){return promiseResolve$8(this,k)}});var HardwareWalletAccountsForm=({accounts:v,onSelectedChanged:k,onSubmit:ie,onChangeRoute:ae})=>(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"choose-ledger-account-form-wrapper"},{children:[(0,import_jsx_runtime.jsxs)("p",{children:["We found ",v.length," accounts on your device. Select the account(s) you wish to connect."]}),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"button-wrapper"},{children:(0,import_jsx_runtime.jsx)("button",Object.assign({onClick:()=>{ae("SpecifyHDPath")}},{children:"HD.../0"}))})),(0,import_jsx_runtime.jsx)("form",Object.assign({className:"form",onSubmit:ce=>{ie(v,ce)}},{children:(0,import_jsx_runtime.jsxs)("div",{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"nws-form-control"},{children:v.map((ce,fe)=>(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"account"},{children:[(0,import_jsx_runtime.jsx)("input",{onChange:le=>{k(fe,le.target.checked)},checked:ce.selected,type:"checkbox",id:ce.accountId,name:ce.accountId,value:ce.accountId}),(0,import_jsx_runtime.jsxs)("label",Object.assign({htmlFor:ce.accountId},{children:[" ",ce.accountId]})),(0,import_jsx_runtime.jsx)("br",{})]}),fe))})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"action-buttons"},{children:(0,import_jsx_runtime.jsx)("button",Object.assign({className:"middleButton",type:"submit",disabled:!v.some(ce=>ce.selected)},{children:"Connect"}))}))]})}))]})),img="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAR3SURBVHgBpVZ9aJVVGH+e55z33bi7zY9hMz+yMAeNoEIq6A9ZRKQWEsQNFIIpsf5Y9E+GsD9iBEEDMUkDa6ShRKKZYIWiRkaKaUGUGCKOTGMF84PNO99773vOefq9720yK5ZzD/dwPt/nd37P17lEk5Qnuz9roUkKT7T5bNe+QjTNLCHv24h1Xgh+OmtwQYPH2jUXwlnW9NRooqePfLS6MmmQ59cdeEGJlkJZA5MGVecoAwghBYZTVY9ftuaDSy8x8w9fbFl95JZAXuw9dmelkvRAyXxS7wMFryG4bIyWZiqzPgMhaFfGfn3NY3AZG9sPf/Dy8HidZvxkZc/h1pqnPlKey6yspMqUd9jVAEYY6RCGDQTwjGDwGTgAlbwRijV1C9vanz577tT+6r+YrOz5rlXFrQ/qZ+FbDxCfXS5oOgxln4v473f3rbgwdn7FK5/MCaH2eAg6X8g3K2iBMTiBkNJVKbod+ze9mgPZsY/UaicYzCE1HgpZc558olCTjTvWLxv9p1n3bV45iO7T5zq3TU9j9xTOLwQ5D9t48aEYrtGj2P/2BpNS78nZJoRdlDsYd8vphz273lqyhW5Rnlnz3hOe6SEwghvxPUMTVfYe2rpuUOqOkZeIxdSbsSJ8eTIAmXy5tftrMPkzi0C4B2ZDNHp+INvLQURkhYiJ6gDGko376DbEJ8k3mcnYBSeSM2ptL/XGsurNnxfnDIQNwCKADO1845Ef6Tbk0M51g4joMgncDyBmkrtsNEMQovcDxGYsGL2yDNAUxPv0VySs4yxhfeYbabJg0Awg+ILylEB6nKMpSOp0WCR1+QSuD4ELljNDEfyRrdXPCU1BTEgD7pyOzVmC2iBm0KgYAMCEeXovoClIjdKiVdQ3FYbzmatxWRqMPcNsDHyfNWskWk5TkJhNEwVyxA6hLL5clLJsW7voFxa6LiR5CCOeWzo3XFxKtyEdy3tnp7VahAoDp6PEVGvJye09l3P7K9k9WQijXBv4B6WG+0pvD0ybFEBHZ6OPh+/OGaBsIvNRAGp/ZHv1jJeon+omszBkFsr3FhsLB7rev3JLQKVSyfjmaW2BJSavDlqR7c5VrR+4AbLttbkXMehH7gjA8gZiD/tq+Or/ABZ3dUW/J62LcPUGcrW8pKSVFAg6cHz3O0l25qZHa/XGwWPg9aAwwzdZAaDX+7tbNsMYf5+bpaUS0dDQEF8rtsUxCbI5e5KRzGhBMiqNxllKju7d8NOYXjseRBytQngcVDL3wD9H+7vf3YS7mnnzqrZpwSxrwkh04cpM5NTMyJdHbIgaESyxJ6tZ5cDbw3qd0tqVCp25Se/4yYdr5/zm/ehjwvpxZHgN0Wlub0/Yt7awdykqRYFHy6NUQVrBd4o6p6ngrVL2Bo8ksuJqoXzq9Ln9m6rj9U74b6Wjo8OeP082aY5NUxRsYzwDkeFsU+MdUU3U4PG0QtbahqhadDMuHTy4fvS/9EwIUpdeuW/ZiShOipFxURRbNdWETFMRZrCFlEZGkuPHdycTafgLExNiI6YfUpcAAAAASUVORK5CYII=",WalletConnecting=({wallet:v,onCloseModal:k})=>(0,import_jsx_runtime.jsxs)(import_react.Fragment,{children:[(0,import_jsx_runtime.jsx)(ModalHeader,{title:"",onCloseModal:k}),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"connecting-wrapper"},{children:(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"icon"},{children:(0,import_jsx_runtime.jsx)("img",{src:v==null?void 0:v.metadata.iconUrl,alt:v==null?void 0:v.metadata.name})})),(0,import_jsx_runtime.jsx)("h3",Object.assign({className:"connecting-name"},{children:v==null?void 0:v.metadata.name})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"connecting-details"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"spinner"},{children:(0,import_jsx_runtime.jsx)("img",{src:img,alt:"loading-icon"})})),(0,import_jsx_runtime.jsxs)("span",{children:[translate("modal.wallet.connectingTo")," ",v==null?void 0:v.metadata.name,"..."]})]})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"connecting-message"},{children:(0,import_jsx_runtime.jsx)("span",{children:translate(`modal.wallet.connectingMessage.${v==null?void 0:v.type}`)})}))]}))}))]}),LedgerDeviceIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:"317",height:"157",viewBox:"0 0 317 157",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M249.99 16.0994C270.063 -0.864155 289.788 1.58873 301.497 10.7365C307.402 15.3499 311.278 21.6575 312.267 28.1258C313.247 34.5412 311.413 41.2233 305.692 46.8044C297.366 54.9273 286.343 55.3362 273.015 51.5109C261.654 48.25 249.058 42.0377 235.726 35.4627L235.726 35.4626L235.717 35.458C233.367 34.2992 230.995 33.129 228.602 31.9618C212.742 24.2253 196.067 16.6575 179.842 13.8595C163.538 11.0479 147.552 13.0313 133.266 24.522C128.032 28.732 123.478 35.2086 121.716 44.8205C119.961 54.3947 120.992 66.9771 126.703 83.4311C135.432 108.583 132.899 126.677 123.575 138.063C114.217 149.491 97.5614 154.733 76.7887 153.121C55.0043 151.43 29.0621 142.206 3.29867 125.227L0.887817 127.942C27.2472 145.405 53.9251 154.952 76.5105 156.705C97.9028 158.365 115.96 153.035 126.356 140.341C136.785 127.606 139.045 108.029 130.099 82.2524C124.521 66.1801 123.642 54.2493 125.252 45.4687C126.854 36.7258 130.94 31.006 135.519 27.3232C148.794 16.6458 163.649 14.715 179.231 17.4021C194.891 20.1027 211.146 27.4463 227.026 35.1928C229.381 36.3415 231.729 37.5001 234.066 38.6531L234.073 38.6568C247.382 45.223 260.324 51.608 272.024 54.9662C285.819 58.9258 298.493 58.8501 308.202 49.3776C314.764 42.9759 316.974 35.1288 315.82 27.5826C314.675 20.0893 310.237 13.0029 303.71 7.90363C290.555 -2.37382 268.938 -4.62038 247.67 13.3537L249.99 16.0994Z",fill:"url(#paint0_linear_3_672)"}),(0,import_jsx_runtime.jsx)("path",{d:"M260.264 17.8767L177.605 89.4649L157.679 73.9664L239.23 3.85423L260.264 17.8767Z",fill:"#6A7075"}),(0,import_jsx_runtime.jsx)("path",{d:"M205.939 54.4577L199.764 50.2636L233.316 20.9053L239.907 25.8395L205.939 54.4577Z",fill:"#494E52"}),(0,import_jsx_runtime.jsx)("path",{d:"M260.264 17.8757L177.605 89.4639L182.033 98.3202L264.323 26.363L260.264 17.8757Z",fill:"#494E52"}),(0,import_jsx_runtime.jsx)("path",{d:"M177.236 89.4646L181.295 98.3209L165.059 85.7745L170.963 85.0365L177.236 89.4646Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{d:"M93.4708 99.6384L91.9948 110.13L174.653 92.894L164.69 85.7749L93.4708 99.6384Z",fill:"#DCDADA"}),(0,import_jsx_runtime.jsx)("path",{d:"M93.1157 104.323L94.314 100.129L165.613 86.3483L169.208 89.344L93.1157 104.323Z",fill:"#C1C1C1"}),(0,import_jsx_runtime.jsx)("path",{d:"M94.2086 99.7963L86.0903 101.272L92.3635 110.129L94.2086 99.7963Z",fill:"#B3AAAA"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M86.0903 100.907L89.0027 74.1304L178.455 55.2416C184.695 53.9962 195.766 54.7675 197.177 63.7058C198.284 70.717 195.506 73.9943 191.628 77.3592C188.495 80.0671 180.152 82.4646 178.343 82.8944C178.293 82.9064 178.241 82.9188 178.186 82.9319C177.38 83.1245 176.007 83.4525 170.644 84.5088C169.085 84.8158 167.382 85.1501 165.557 85.5078L164.933 85.63C146.312 89.2764 115.528 95.2297 93.9844 99.3849C91.1808 99.9257 88.5337 100.436 86.0903 100.907ZM185.076 75.554C190.748 73.3535 193.99 68.0745 192.318 63.7631C190.645 59.4517 184.691 57.7405 179.019 59.941C173.347 62.1416 170.105 67.4206 171.778 71.732C173.45 76.0434 179.404 77.7546 185.076 75.554Z",fill:"#F4F1E8"}),(0,import_jsx_runtime.jsx)("path",{d:"M199.764 50.3994L196.768 48.3043L232.194 18.0454L233.316 21.6403L199.764 50.3994Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{d:"M239.968 25.9943L232.588 20.4592V17.5071L241.813 24.5183L239.968 25.9943Z",fill:"black"}),(0,import_jsx_runtime.jsx)("ellipse",{cx:"182.084",cy:"68.0811",rx:"10.242",ry:"7.46772",transform:"rotate(-23.7949 182.084 68.0811)",fill:"#494E52"}),(0,import_jsx_runtime.jsx)("ellipse",{cx:"182.084",cy:"68.0816",rx:"6.68462",ry:"4.87394",transform:"rotate(-23.7949 182.084 68.0816)",fill:"#494E52"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M238.725 2.93094L260.368 17.2564L264.865 26.4556L181.615 99.0341L175.16 94.311L92.0028 110.947L85.3267 101.399L88.3269 73.8157L178.118 54.8553L238.725 2.93094ZM178.599 56.2622L89.6786 75.0388L86.9321 100.29C89.0979 99.8725 91.4124 99.4263 93.8446 98.9572C115.388 94.8019 146.171 88.8488 164.791 85.2026L165.415 85.0804C167.24 84.7228 168.943 84.3885 170.501 84.0816C175.853 83.0275 177.219 82.701 178.015 82.5107C178.07 82.4976 178.122 82.4852 178.173 82.4732C179.048 82.2652 181.558 81.5669 184.235 80.5851C186.742 79.6655 189.286 78.5354 190.802 77.3758L191.151 77.0922L191.644 76.6595C193.341 75.147 194.723 73.6739 195.61 71.871C196.571 69.916 196.982 67.5029 196.448 64.1178C195.8 60.0131 192.959 57.7574 189.408 56.6566C185.833 55.5483 181.637 55.6566 178.603 56.2615C178.601 56.2617 178.6 56.262 178.599 56.2622ZM192.631 77.7565L259.555 18.9531L263.042 26.0869L181.808 96.9078L178.132 89.5713L191.724 78.529C191.859 78.4249 191.988 78.32 192.11 78.2144L192.111 78.2136C192.286 78.0617 192.46 77.9094 192.631 77.7565ZM185.491 81.6908C185.24 81.7868 184.99 81.8802 184.743 81.9709C182.013 82.9723 179.447 83.6875 178.514 83.9093C178.463 83.9213 178.411 83.9338 178.356 83.9468C177.635 84.1192 176.472 84.3971 172.491 85.1919L177.172 88.4492L185.491 81.6908ZM176.631 89.8707L170.479 85.5903C169.306 85.8213 168.054 86.0673 166.731 86.3265L175.769 92.9276L179.548 95.6924L176.631 89.8707ZM164.758 86.7132C146.252 90.3362 116.027 96.1817 94.6324 100.308L93.2258 109.197L173.543 93.1293L164.758 86.7132ZM91.888 108.207L93.0909 100.606C91.0848 100.993 89.1642 101.363 87.3471 101.713L91.888 108.207ZM258.581 17.8436L197.306 71.6841C198.142 69.5779 198.41 67.0795 197.906 63.8876C197.143 59.0539 193.743 56.4549 189.845 55.2467C186.921 54.3402 183.662 54.1916 180.861 54.449L238.84 4.77668L258.581 17.8436ZM232.505 16.82L243.089 24.5643L205.915 56.5106L196.042 48.0665L232.505 16.82ZM232.118 19.096L198.312 48.0654L199.744 49.29L232.584 20.9424L232.118 19.096ZM233.456 22.1396L200.878 50.2604L205.913 54.5664L239.041 26.0969L233.456 22.1396ZM240.195 25.1054L240.717 24.6571L233.759 19.5663L234.06 20.7586L240.195 25.1054Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M190.194 69.9744C191.32 68.1409 191.576 66.2271 190.942 64.5937C190.308 62.9603 188.829 61.7198 186.761 61.1254C184.691 60.5307 182.116 60.6196 179.553 61.6139C176.991 62.6081 175.029 64.2794 173.902 66.1141C172.776 67.9477 172.52 69.8614 173.154 71.4948C173.788 73.1282 175.267 74.3687 177.335 74.9631C179.405 75.5578 181.98 75.4689 184.543 74.4746C187.105 73.4804 189.067 71.8091 190.194 69.9744ZM185.077 75.8508C190.749 73.6502 193.991 68.3712 192.318 64.0598C190.645 59.7484 184.691 58.0372 179.019 60.2378C173.347 62.4383 170.105 67.7173 171.778 72.0287C173.451 76.3401 179.405 78.0513 185.077 75.8508Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M187.391 69.169C188.127 67.9713 188.266 66.7721 187.881 65.7812C187.497 64.7903 186.586 63.9984 185.235 63.6102C183.883 63.2216 182.173 63.2741 180.456 63.9404C178.738 64.6068 177.441 65.7208 176.705 66.9196C175.969 68.1172 175.83 69.3165 176.215 70.3074C176.599 71.2983 177.511 72.0901 178.861 72.4783C180.214 72.8669 181.923 72.8144 183.64 72.1481C185.358 71.4818 186.655 70.3678 187.391 69.169ZM184.174 73.5242C188.156 71.9795 190.432 68.2738 189.257 65.2473C188.083 62.2208 183.904 61.0196 179.922 62.5643C175.94 64.1091 173.665 67.8148 174.839 70.8412C176.013 73.8677 180.193 75.0689 184.174 73.5242Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{d:"M240.499 41.2441C239.744 40.3649 239.844 39.04 240.724 38.285L249.781 30.5067C250.66 29.7516 251.985 29.8523 252.74 30.7315V30.7315C253.495 31.6108 253.395 32.9356 252.516 33.6907L243.458 41.469C242.579 42.224 241.254 42.1234 240.499 41.2441V41.2441Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M250.743 31.6265L241.685 39.4048C241.424 39.6287 241.395 40.0217 241.619 40.2825C241.842 40.5433 242.235 40.5731 242.496 40.3492L251.554 32.5709C251.815 32.3469 251.845 31.954 251.621 31.6932C251.397 31.4324 251.004 31.4025 250.743 31.6265ZM240.724 38.285C239.844 39.04 239.744 40.3649 240.499 41.2441C241.254 42.1234 242.579 42.224 243.458 41.469L252.516 33.6907C253.395 32.9356 253.495 31.6108 252.74 30.7315C251.985 29.8523 250.66 29.7516 249.781 30.5067L240.724 38.285Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{d:"M205.779 71.4647C205.005 70.5642 205.108 69.2073 206.009 68.4339L214.989 60.7218C215.89 59.9485 217.247 60.0516 218.02 60.9521V60.9521C218.793 61.8526 218.69 63.2095 217.79 63.9829L208.809 71.695C207.909 72.4683 206.552 72.3652 205.779 71.4647V71.4647Z",fill:"black"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M215.951 61.8416L206.97 69.5537C206.688 69.796 206.656 70.221 206.898 70.5031C207.141 70.7851 207.566 70.8174 207.848 70.5752L216.828 62.863C217.11 62.6208 217.143 62.1958 216.9 61.9137C216.658 61.6317 216.233 61.5994 215.951 61.8416ZM206.009 68.4339C205.108 69.2073 205.005 70.5642 205.779 71.4647C206.552 72.3652 207.909 72.4683 208.809 71.695L217.79 63.9829C218.69 63.2095 218.793 61.8526 218.02 60.9521C217.247 60.0516 215.89 59.9485 214.989 60.7218L206.009 68.4339Z",fill:"black"}),(0,import_jsx_runtime.jsx)("circle",{cx:"141.356",cy:"19.525",r:"10.1855",fill:"#FE89B4"}),(0,import_jsx_runtime.jsx)("ellipse",{cx:"139.062",cy:"14.7094",rx:"2.42519",ry:"1.94015",transform:"rotate(-34.544 139.062 14.7094)",fill:"#FDF7FF"}),(0,import_jsx_runtime.jsx)("circle",{cx:"252.489",cy:"79.7577",r:"7.78893",fill:"#EC5236"}),(0,import_jsx_runtime.jsx)("ellipse",{cx:"250.434",cy:"76.3701",rx:"2.61272",ry:"2.09018",transform:"rotate(-34.544 250.434 76.3701)",fill:"#EDB69D"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100.436 79.9254C100.461 79.6567 100.732 79.3897 101.042 79.329L106.657 78.2299C107.587 78.0478 108.281 78.5536 108.207 79.3596L107.759 84.2243C107.734 84.493 107.463 84.76 107.153 84.8207L100.416 86.1396C100.106 86.2003 99.8742 86.0317 99.899 85.7631L100.436 79.9254Z",fill:"#B3AAAA"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.8553 81.7775C95.9294 80.9715 96.7437 80.1704 97.6739 79.9883L98.7968 79.7685C99.1069 79.7078 99.3382 79.8764 99.3135 80.1451L99.1344 82.091C99.1096 82.3597 98.8382 82.6267 98.5282 82.6874L96.2824 83.127C95.9723 83.1877 95.741 83.0191 95.7657 82.7505L95.8553 81.7775Z",fill:"#B3AAAA"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.5865 84.6965C95.6112 84.4278 95.8826 84.1608 96.1927 84.1001L98.4385 83.6605C98.7486 83.5998 98.9799 83.7684 98.9552 84.037L98.7761 85.9829C98.7513 86.2516 98.4799 86.5186 98.1699 86.5793L95.9241 87.019C95.614 87.0797 95.3827 86.9111 95.4074 86.6424L95.5865 84.6965Z",fill:"#B3AAAA"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.2282 88.5884C95.2529 88.3197 95.5244 88.0527 95.8344 87.992L98.0802 87.5524C98.3903 87.4917 98.6216 87.6603 98.5969 87.929L98.4178 89.8749C98.3931 90.1435 98.1216 90.4105 97.8116 90.4712L96.6887 90.6911C95.7584 90.8732 95.0645 90.3674 95.1387 89.5614L95.2282 88.5884Z",fill:"#B3AAAA"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.7197 87.709C99.7444 87.4403 100.016 87.1733 100.326 87.1126L102.572 86.673C102.882 86.6123 103.113 86.7809 103.088 87.0496L102.909 88.9955C102.885 89.2641 102.613 89.5312 102.303 89.5919L100.057 90.0315C99.7472 90.0922 99.5159 89.9236 99.5406 89.6549L99.7197 87.709Z",fill:"#B3AAAA"}),(0,import_jsx_runtime.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.211 86.8298C104.236 86.5611 104.507 86.2941 104.817 86.2334L107.063 85.7938C107.373 85.7331 107.605 85.9017 107.58 86.1704L107.49 87.1433C107.416 87.9493 106.602 88.7504 105.672 88.9325L104.549 89.1523C104.239 89.213 104.007 89.0444 104.032 88.7757L104.211 86.8298Z",fill:"#B3AAAA"}),(0,import_jsx_runtime.jsx)("defs",{children:(0,import_jsx_runtime.jsxs)("linearGradient",Object.assign({id:"paint0_linear_3_672",x1:"-44.5195",y1:"122.42",x2:"263.357",y2:"-8.65023",gradientUnits:"userSpaceOnUse"},{children:[(0,import_jsx_runtime.jsx)("stop",{offset:"0.110697",stopColor:"#232323"}),(0,import_jsx_runtime.jsx)("stop",{offset:"1",stopColor:"#3D3D3D"})]}))})]})),UpArrowIcon=()=>(0,import_jsx_runtime.jsx)("svg",Object.assign({width:"10",height:"7",viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,import_jsx_runtime.jsx)("path",{d:"M9 5.4762L5 1.4762L1 5.4762",stroke:"#4F7CD1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),DownArrowIcon=()=>(0,import_jsx_runtime.jsx)("svg",Object.assign({width:"10",height:"7",viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,import_jsx_runtime.jsx)("path",{d:"M1 1.52382L5 5.52382L9 1.52382",stroke:"#4F7CD1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),DEFAULT_DERIVATION_PATH="44'/397'/0'/0'/1'",DerivationPath=({selector:v,options:k,onBack:ie,onConnected:ae,params:ce,onError:fe,onCloseModal:le})=>{const[ve,pe]=(0,import_react.useState)("EnterDerivationPath"),[ye,me]=(0,import_react.useState)(DEFAULT_DERIVATION_PATH),[Ee,cr]=(0,import_react.useState)(1),[Br,$r]=(0,import_react.useState)([]),[Pr,Ar]=(0,import_react.useState)([]),[ur,jr]=(0,import_react.useState)(),[Mr,Lr]=(0,import_react.useState)(""),[Vr,Gr]=(0,import_react.useState)(!1),Ur=translate("modal.ledger.connectWithLedger"),[Qr,hn]=(0,import_react.useState)(Ur),Yt=kr=>__awaiter$k(void 0,void 0,void 0,function*(){const xr=yield fetch(`${v.options.network.indexerUrl}/publicKey/ed25519:${kr}/accounts`);if(!xr.ok)throw new Error("Failed to get account id from public key");const Wr=yield xr.json();return!Array.isArray(Wr)||!Wr.length?[]:Wr}),fn=kr=>__awaiter$k(void 0,void 0,void 0,function*(){const xr=yield kr.getPublicKey(ye);try{return(yield Yt(xr)).map((Jt,Xr)=>({derivationPath:ye,publicKey:xr,accountId:Jt,selected:Xr===0}))}catch{return null}}),Qt=()=>__awaiter$k(void 0,void 0,void 0,function*(){const kr=yield v.wallet(ce.walletId);if(kr.type==="hardware"){Gr(!0),jr(kr);try{const xr=yield fn(kr);if(!xr){pe("AddCustomAccountId");return}const Wr=xr.length===0,Jt=xr.length>1;if(Wr){hn(translate("modal.ledger.noAccountsFound")),pe("NoAccountsFound");return}$r(xr),Jt?(hn(translate("modal.ledger.selectYourAccounts")),pe("ChooseAccount")):(Ar(xr),pe("OverviewAccounts"))}catch(xr){Gr(!1);const Wr=xr instanceof Error?xr.message:"Something went wrong";fe(Wr,kr)}finally{Gr(!1)}}}),Xt=()=>__awaiter$k(void 0,void 0,void 0,function*(){try{Gr(!0);const kr=yield ur.getPublicKey(ye),xr=[{derivationPath:ye,publicKey:kr,accountId:Mr,selected:!0}];$r(xr),Ar(xr),hn(translate("modal.ledger.connecting1Account")),pe("OverviewAccounts")}catch(kr){Gr(!1);const xr=kr instanceof Error?kr.message:"Something went wrong";fe(xr,ur)}finally{Gr(!1)}}),Kr=()=>{const kr=Pr.map(xr=>({derivationPath:xr.derivationPath,publicKey:xr.publicKey,accountId:xr.accountId}));return ur.signIn({contractId:k.contractId,methodNames:k.methodNames,accounts:kr}).then(()=>ae()).catch(xr=>{fe(`Error: ${xr.message}`,ur)})},be=()=>{(ve==="SpecifyHDPath"||ve==="NoAccountsFound"||ve==="ChooseAccount")&&(hn(translate("modal.ledger.connectWithLedger")),pe("EnterDerivationPath")),ve==="OverviewAccounts"&&(hn(translate("modal.ledger.selectYourAccounts")),pe("ChooseAccount"))};return Vr?(0,import_jsx_runtime.jsx)("div",Object.assign({className:"derivation-path-wrapper"},{children:(0,import_jsx_runtime.jsx)(WalletConnecting,{wallet:ur,onBack:()=>{Gr(!1)},onCloseModal:le})})):(0,import_jsx_runtime.jsxs)(import_react.Fragment,{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal-header-wrapper"},{children:[(ve==="SpecifyHDPath"||ve==="NoAccountsFound"||ve==="ChooseAccount"||ve==="OverviewAccounts")&&(0,import_jsx_runtime.jsx)(BackArrow,{onClick:be}),(0,import_jsx_runtime.jsx)(ModalHeader,{title:Qr,onCloseModal:le})]})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"derivation-path-wrapper"},{children:[ve==="EnterDerivationPath"&&(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"enter-derivation-path"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"ledger-image"},{children:(0,import_jsx_runtime.jsx)(LedgerDeviceIcon,{})})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"ledger-description"},{children:[(0,import_jsx_runtime.jsx)("p",{children:translate("modal.ledger.makeSureYourLedger")}),(0,import_jsx_runtime.jsx)("p",Object.assign({className:"specify-path",onClick:()=>{hn(translate("modal.ledger.specifyHDPath")),pe("SpecifyHDPath")}},{children:translate("modal.ledger.specifyHDPath")}))]})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"action-buttons"},{children:(0,import_jsx_runtime.jsx)("button",Object.assign({className:"middleButton",onClick:Qt},{children:translate("modal.ledger.continue")}))}))]})),ve==="SpecifyHDPath"&&(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"specify-path-wrapper"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"change-path-wrapper"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"display-path"},{children:(0,import_jsx_runtime.jsx)("span",{children:ye.slice(0,-2)})})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"change-path"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"path-value"},{children:(0,import_jsx_runtime.jsx)("span",{children:Ee})})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"buttons-wrapper"},{children:[(0,import_jsx_runtime.jsx)("button",Object.assign({onClick:()=>{const kr=Ee+1,xr=ye.slice(0,-2);me(`${xr}${kr}'`),cr(kr)}},{children:(0,import_jsx_runtime.jsx)(UpArrowIcon,{})})),(0,import_jsx_runtime.jsx)("button",Object.assign({onClick:()=>{const kr=Ee-1;if(kr<0)return;const xr=ye.slice(0,-2);me(`${xr}${kr}'`),cr(kr)}},{children:(0,import_jsx_runtime.jsx)(DownArrowIcon,{})}))]}))]}))]})),(0,import_jsx_runtime.jsx)("p",Object.assign({className:"path-description"},{children:translate("modal.ledger.enterYourPreferredHDPath")})),(0,import_jsx_runtime.jsx)("p",Object.assign({className:"what-link"},{children:(0,import_jsx_runtime.jsx)("a",Object.assign({href:"https://www.ledger.com/academy/crypto/what-are-hierarchical-deterministic-hd-wallets",target:"_blank"},{children:"What's this?"}))})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"action-buttons"},{children:(0,import_jsx_runtime.jsx)("button",Object.assign({className:"middleButton",onClick:Qt},{children:translate("modal.ledger.scan")}))}))]})),ve==="NoAccountsFound"&&(0,import_jsx_runtime.jsx)("div",Object.assign({className:"no-accounts-found-wrapper"},{children:(0,import_jsx_runtime.jsxs)("p",{children:[translate("modal.ledger.cantFindAnyAccount")," ",(0,import_jsx_runtime.jsx)("a",Object.assign({href:`https://${v.options.network.networkId==="testnet"?"testnet":"app"}.mynearwallet.com/create`,target:"_blank"},{children:"MyNearWallet"}))," ",translate("modal.ledger.orConnectAnAnotherLedger")]})})),ve==="ChooseAccount"&&(0,import_jsx_runtime.jsx)(HardwareWalletAccountsForm,{accounts:Br,onSelectedChanged:(kr,xr)=>{$r(Wr=>[...Wr.map((Xr,zr)=>{const Jr=kr===zr?xr:Xr.selected;return Object.assign(Object.assign({},Xr),{selected:Jr})})])},onSubmit:(kr,xr)=>{xr.preventDefault();const Wr=kr.filter(Xr=>Xr.selected);Ar(Wr);const Jt=Wr.length;hn(`${translate("modal.ledger.connecting")} ${Jt} ${translate("modal.ledger.ofAccounts")}`),pe("OverviewAccounts")},onChangeRoute:kr=>{kr==="SpecifyHDPath"&&hn(translate("modal.ledger.specifyHDPath")),pe(kr)}}),ve==="AddCustomAccountId"&&(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"enter-custom-account"},{children:[(0,import_jsx_runtime.jsx)("p",{children:translate("modal.ledger.failedToAutomatically")}),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"input-wrapper"},{children:(0,import_jsx_runtime.jsx)("input",{type:"text",placeholder:"Account ID",value:Mr,onChange:kr=>{Lr(kr.target.value)}})})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"action-buttons"},{children:(0,import_jsx_runtime.jsx)("button",Object.assign({className:"middleButton",onClick:Xt},{children:translate("ledger.Continue")}))}))]})),ve==="OverviewAccounts"&&(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"overview-wrapper"},{children:[(0,import_jsx_runtime.jsx)("p",{children:translate("modal.ledger.overviewTheListOfAuthorized")}),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"accounts"},{children:Pr.map((kr,xr)=>(0,import_jsx_runtime.jsx)("div",{children:(0,import_jsx_runtime.jsx)("div",Object.assign({className:"account"},{children:(0,import_jsx_runtime.jsx)("span",{children:kr.accountId})}))},kr.accountId))})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"action-buttons"},{children:(0,import_jsx_runtime.jsx)("button",Object.assign({className:"middleButton",onClick:Kr,disabled:Br.length===0},{children:translate("modal.ledger.finish")}))}))]}))]}))]})},WalletNotInstalled=({module:v,onBack:k,onCloseModal:ie})=>(0,import_jsx_runtime.jsxs)(import_react.Fragment,{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal-header-wrapper"},{children:[(0,import_jsx_runtime.jsx)(BackArrow,{onClick:k}),(0,import_jsx_runtime.jsx)(ModalHeader,{title:"",onCloseModal:ie})]})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-not-installed-wrapper"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-data"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:`wallet-icon-box ${v.id}`},{children:(0,import_jsx_runtime.jsx)("img",{src:v.metadata.iconUrl,alt:v.metadata.name})})),(0,import_jsx_runtime.jsx)("p",{children:v.metadata.name})]})),(0,import_jsx_runtime.jsxs)("p",{children:[translate("modal.install.youllNeedToInstall")," ",v.metadata.name," ",translate("modal.install.toContinueAfterInstalling"),(0,import_jsx_runtime.jsxs)("span",Object.assign({className:"refresh-link",onClick:()=>window.location.reload()},{children:[" ",translate("modal.install.refreshThePage")]}))]}),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"action-buttons"},{children:(0,import_jsx_runtime.jsxs)("button",Object.assign({className:"middleButton",onClick:()=>{v.type==="injected"&&window.open(v.metadata.downloadUrl,"_blank")}},{children:[translate("modal.install.open")," ",v.metadata.name]}))}))]}))]}),QRIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("path",{d:"M7.22224 1.33334H1.44446V6.66668H7.22224V1.33334Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M15.8889 1.33334H10.1111V6.66668H15.8889V1.33334Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M7.22224 9.33334H1.44446V14.6667H7.22224V9.33334Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M10.1111 13.1429V14.6667H15.8889M10.1111 9.33334V10.8572H12.5873V9.33334H15.8889V12.381",stroke:"#4C5155",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("rect",{x:"3.61108",y:"3.33334",width:"1.44444",height:"1.33333",fill:"#4C5155"}),(0,import_jsx_runtime.jsx)("rect",{x:"3.61108",y:"11.3333",width:"1.44444",height:"1.33333",fill:"#4C5155"}),(0,import_jsx_runtime.jsx)("rect",{x:"12.2778",y:"3.33334",width:"1.44445",height:"1.33333",fill:"#4C5155"})]})),LinkIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("path",{d:"M13 8.66667V12.6667C13 13.0203 12.8478 13.3594 12.577 13.6095C12.3061 13.8595 11.9387 14 11.5556 14H3.61113C3.22804 14 2.86064 13.8595 2.58975 13.6095C2.31887 13.3594 2.16669 13.0203 2.16669 12.6667V5.33333C2.16669 4.97971 2.31887 4.64057 2.58975 4.39052C2.86064 4.14048 3.22804 4 3.61113 4H7.94447",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M10.8333 2H15.1666V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M7.22223 9.33333L15.1667 2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})),KeyIcon=()=>(0,import_jsx_runtime.jsx)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,import_jsx_runtime.jsx)("path",{d:"M33.5 1.83325L30.1666 5.16658M17.4818 17.8514C19.1406 19.5103 20.1666 21.8019 20.1666 24.3333C20.1666 29.3959 16.0626 33.4999 11 33.4999C5.93735 33.4999 1.8333 29.3959 1.8333 24.3333C1.8333 19.2706 5.93735 15.1666 11 15.1666C13.5313 15.1666 15.8229 16.1926 17.4818 17.8514ZM17.4818 17.8514L24.3333 10.9999M24.3333 10.9999L29.3333 15.9999L35.1666 10.1666L30.1666 5.16658M24.3333 10.9999L30.1666 5.16658",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})),FolderIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("circle",{cx:"28.3333",cy:"23.8333",r:"1.66667",fill:"currentColor"}),(0,import_jsx_runtime.jsx)("path",{d:"M35 12.1667H7C5.89543 12.1667 5 11.2712 5 10.1667V7.5C5 6.39543 5.89543 5.5 7 5.5H31.6667",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M35 12.1667V35.5H7C5.89543 35.5 5 34.6046 5 33.5V8.83334",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})),WalletHome=({selector:v,onCloseModal:k})=>{const[ie,ae]=(0,import_react.useState)([]),[ce,fe]=(0,import_react.useState)("WalletInfo");(0,import_react.useEffect)(()=>{const ve=v.store.observable.subscribe(pe=>{const ye=Ee=>Ee.type!=="bridge"&&Ee.type!=="hardware"&&Ee.type!=="instant-link",me=pe.modules.filter(ye);ae(me)});return()=>ve.unsubscribe()},[]);const le=ve=>{let pe="";return ve.type==="injected"&&(pe=ve.metadata.downloadUrl),ve.type==="browser"&&(pe=ve.metadata.walletUrl),pe};return(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-home-wrapper"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal-header-wrapper"},{children:[ce==="GetWallets"&&(0,import_jsx_runtime.jsx)(BackArrow,{onClick:()=>{fe("WalletInfo")}}),(0,import_jsx_runtime.jsx)(ModalHeader,{title:translate(ce==="GetWallets"?"modal.wallet.getAWallet":"modal.wallet.whatIsAWallet"),onCloseModal:k})]})),ce==="GetWallets"&&(0,import_jsx_runtime.jsx)("div",Object.assign({className:"get-wallet-wrapper"},{children:ie.map(ve=>{const{iconUrl:pe,name:ye}=ve.metadata,me=["nearfi","here-wallet"].includes(ve.id),Ee=ve.id==="here-wallet"?"mobile":"",cr=le(ve);return(0,import_jsx_runtime.jsxs)("div",Object.assign({tabIndex:0,className:`single-wallet-get ${ve.id}`,onClick:()=>{cr&&window.open(cr,"_blank")}},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"small-icon"},{children:[me&&cr&&(0,import_jsx_runtime.jsx)(QRIcon,{}),!me&&cr&&(0,import_jsx_runtime.jsx)(LinkIcon,{})]})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"icon"},{children:(0,import_jsx_runtime.jsx)("img",{src:pe,alt:ye})})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"title"},{children:ye})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"type"},{children:translate(`modal.walletTypes.${Ee||ve.type}`)}))]}))]}),ve.id)})})),ce==="WalletInfo"&&(0,import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment,{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-info-wrapper what-wallet-hide"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-what"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"icon-side"},{children:(0,import_jsx_runtime.jsx)(KeyIcon,{})})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content-side"},{children:[(0,import_jsx_runtime.jsx)("h3",{children:translate("modal.wallet.secureAndManage")}),(0,import_jsx_runtime.jsx)("p",{children:translate("modal.wallet.safelyStore")})]}))]})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-what"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"icon-side"},{children:(0,import_jsx_runtime.jsx)(FolderIcon,{})})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content-side"},{children:[(0,import_jsx_runtime.jsx)("h3",{children:translate("modal.wallet.logInToAny")}),(0,import_jsx_runtime.jsx)("p",{children:translate("modal.wallet.noNeedToCreate")})]}))]})),(0,import_jsx_runtime.jsx)("div",{className:"button-spacing"}),(0,import_jsx_runtime.jsx)("button",Object.assign({className:"middleButton",onClick:()=>{fe("GetWallets")}},{children:translate("modal.wallet.getAWallet")}))]})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"what-wallet-mobile"},{children:[(0,import_jsx_runtime.jsx)("p",{children:translate("modal.wallet.useAWallet")}),(0,import_jsx_runtime.jsx)("button",Object.assign({className:"middleButton",onClick:()=>{fe("GetWallets")}},{children:translate("modal.wallet.getAWallet")}))]})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"lang-selector-wrapper"},{children:(0,import_jsx_runtime.jsxs)("select",Object.assign({className:"lang-selector",name:"lang"},{children:[(0,import_jsx_runtime.jsx)("option",Object.assign({value:"en"},{children:"English"})),(0,import_jsx_runtime.jsx)("option",Object.assign({value:"es"},{children:"Spanish"}))]}))}))]})]}))},WalletConnected=({module:v,onCloseModal:k})=>(0,import_jsx_runtime.jsxs)(import_react.Fragment,{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal-header"},{children:[(0,import_jsx_runtime.jsx)("h3",Object.assign({className:"middleTitle"},{children:""})),(0,import_jsx_runtime.jsx)(CloseButton,{onClick:k})]})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"connecting-wrapper"},{children:(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"content"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"icon"},{children:[(0,import_jsx_runtime.jsx)("div",{className:"green-dot"}),(0,import_jsx_runtime.jsx)("img",{src:v==null?void 0:v.metadata.iconUrl,alt:v==null?void 0:v.metadata.name})]})),(0,import_jsx_runtime.jsx)("h3",Object.assign({className:"connecting-name"},{children:v==null?void 0:v.metadata.name})),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"wallet-connected-success"},{children:[(0,import_jsx_runtime.jsx)(ConnectionSuccessIcon,{}),(0,import_jsx_runtime.jsx)("span",{children:translate("modal.wallet.connectionSuccessful")})]}))]}))}))]}),anObject$1$h=anObject$c$8,regexpFlags$e=function(){var v=anObject$1$h(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$v=functionCall$h,hasOwn2$h=hasOwnProperty_1$h,isPrototypeOf$l=objectIsPrototypeOf$h,regExpFlags$e=regexpFlags$e,RegExpPrototype$1$e=RegExp.prototype,regexpGetFlags$e=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$e)&&!hasOwn2$h(v,"flags")&&isPrototypeOf$l(RegExpPrototype$1$e,v)?call$v(regExpFlags$e,v):k},PROPER_FUNCTION_NAME$g=functionName$h.PROPER,defineBuiltIn$n=defineBuiltIn$6$a,anObject$r=anObject$c$8,$toString$e=toString$3$4,fails$D=fails$h$6,getRegExpFlags$e=regexpGetFlags$e,TO_STRING$e="toString",RegExpPrototype$f=RegExp.prototype,n$ToString$e=RegExpPrototype$f[TO_STRING$e],NOT_GENERIC$e=fails$D(function(){return n$ToString$e.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$e=PROPER_FUNCTION_NAME$g&&n$ToString$e.name!=TO_STRING$e;(NOT_GENERIC$e||INCORRECT_NAME$e)&&defineBuiltIn$n(RegExp.prototype,TO_STRING$e,function(){var k=anObject$r(this),ie=$toString$e(k.source),ae=$toString$e(getRegExpFlags$e(k));return"/"+ie+"/"+ae},{unsafe:!0});var CopyIcon=()=>(0,import_jsx_runtime.jsxs)("svg",Object.assign({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,import_jsx_runtime.jsx)("path",{d:"M6.5 15.25a1.75 1.75 0 0 1-1.75-1.75V6.75a2 2 0 0 1 2-2h6.75c.966 0 1.75.784 1.75 1.75",stroke:"#4F7CD1",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),(0,import_jsx_runtime.jsx)("path",{d:"M8.75 10.75a2 2 0 0 1 2-2h6.5a2 2 0 0 1 2 2v6.5a2 2 0 0 1-2 2h-6.5a2 2 0 0 1-2-2v-6.5Z",stroke:"#4F7CD1",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}));function formatQRCodeImage(v){return __awaiter$k(this,void 0,void 0,function*(){return yield import_qrcode.default.toString(v,{margin:0,type:"svg"})})}var ScanQRCode=({wallet:v,uri:k,onCloseModal:ie,handleOpenDefaultModal:ae})=>{const[ce,fe]=import_react.default.useState(""),[le,ve]=import_react.default.useState(""),pe=()=>{if(!k)return;(0,import_copy_to_clipboard.default)(k)?(fe(translate("modal.qr.copiedToClipboard")),setTimeout(()=>fe(""),1200)):(fe(translate("modal.qr.failedToCopy")),setTimeout(()=>fe(""),1200))};return import_react.default.useEffect(()=>{__awaiter$k(void 0,void 0,void 0,function*(){k&&ve(yield formatQRCodeImage(k))})},[k]),(0,import_jsx_runtime.jsxs)("section",Object.assign({className:"scan-qr-code"},{children:[(0,import_jsx_runtime.jsx)(ModalHeader,{title:translate("modal.qr.scanWithYourMobile"),onCloseModal:ie}),(0,import_jsx_runtime.jsxs)("section",Object.assign({className:"qr-code"},{children:[(0,import_jsx_runtime.jsx)("div",{dangerouslySetInnerHTML:{__html:le}}),ce?(0,import_jsx_runtime.jsx)("div",Object.assign({className:"notification"},{children:ce})):(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"copy-btn",onClick:pe},{children:[(0,import_jsx_runtime.jsx)(CopyIcon,{}),translate("modal.qr.copyToClipboard")]}))]})),(0,import_jsx_runtime.jsxs)("footer",Object.assign({className:"footer"},{children:[(0,import_jsx_runtime.jsxs)("p",{children:[translate("modal.qr.preferTheOfficial")," ",v.metadata.name,"?"]}),(0,import_jsx_runtime.jsx)("button",Object.assign({className:"btn",onClick:ae},{children:translate("modal.qr.open")}))]}))]}))},getThemeClass=v=>{switch(v){case"dark":return"dark-theme";case"light":return"light-theme";default:return""}},Modal=({selector:v,options:k,visible:ie,hide:ae,emitter:ce})=>{var fe,le,ve;const[pe,ye]=(0,import_react.useState)({name:"WalletHome"}),[me,Ee]=(0,import_react.useState)(null),[cr,Br]=(0,import_react.useState)(),[$r,Pr]=(0,import_react.useState)();(0,import_react.useEffect)(()=>{ye({name:"WalletHome"}),allowOnlyLanguage(v.options.languageCode);const{selectedWalletId:jr,modules:Mr}=v.store.getState();if(jr){const Lr=Mr.find(Vr=>Vr.id===jr);Br(Lr),ye({name:"WalletConnected",params:{module:Lr}})}Pr("")},[ie]),(0,import_react.useEffect)(()=>{const jr=v.on("networkChanged",({networkId:Mr})=>{if(Mr===v.options.network.networkId)return Ar({});ye({name:"WalletNetworkChanged"})});return()=>jr.remove()},[]);const Ar=(0,import_react.useCallback)(({hideReason:jr})=>{Ee(null),ye({name:"WalletHome"}),jr==="user-triggered"&&ce.emit("onHide",{hideReason:jr}),jr==="wallet-navigation"&&ce.emit("onHide",{hideReason:jr}),ae()},[ae,ce]);(0,import_react.useEffect)(()=>{const jr=Mr=>{Mr.key==="Escape"&&Ar({hideReason:"user-triggered"})};return window.addEventListener("keydown",jr),()=>window.removeEventListener("keydown",jr)},[Ar]);const ur=(jr,Mr)=>__awaiter$k(void 0,void 0,void 0,function*(){Br(jr);const{selectedWalletId:Lr}=v.store.getState();if(Lr===jr.id){ye({name:"WalletConnected",params:{module:jr}});return}try{const{deprecated:Vr,available:Gr}=jr.metadata;if(jr.type==="injected"&&!Gr){ye({name:"WalletNotInstalled",params:{module:jr}});return}const Ur=yield jr.wallet();if(Vr){Ee(`${jr.metadata.name} is deprecated. Please select another wallet.`),ye({name:"AlertMessage",params:{module:jr}});return}if(Ur.type==="hardware"){ye({name:"DerivationPath",params:{walletId:Ur.id||"ledger"}});return}if(ye({name:"WalletConnecting",params:{wallet:Ur}}),Ur.type==="bridge"){const Qr=v.on("uriChanged",({uri:hn})=>{Pr(hn),ye({name:"ScanQRCode",params:{uri:hn,wallet:Ur}})});yield Ur.signIn({contractId:k.contractId,methodNames:k.methodNames,qrCodeModal:Mr}),Qr.remove(),Ar({hideReason:"wallet-navigation"});return}if(Ur.type==="browser"){yield Ur.signIn({contractId:k.contractId,methodNames:k.methodNames,successUrl:Ur.metadata.successUrl,failureUrl:Ur.metadata.failureUrl}),Ar({hideReason:"wallet-navigation"});return}yield Ur.signIn({contractId:k.contractId,methodNames:k.methodNames}),Ar({hideReason:"wallet-navigation"})}catch(Vr){const{name:Gr}=jr.metadata,Ur=Vr instanceof Error?Vr.message:"Something went wrong";Ee(`Failed to sign in with ${Gr}: ${Ur}`),ye({name:"AlertMessage",params:{module:jr}})}});return ie?(0,import_jsx_runtime.jsxs)("div",Object.assign({className:`nws-modal-wrapper ${getThemeClass(k==null?void 0:k.theme)} ${ie?"open":""}`},{children:[(0,import_jsx_runtime.jsx)("div",{className:"nws-modal-overlay",onClick:()=>{Ar({hideReason:"user-triggered"})}}),(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal"},{children:[(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"modal-left"},{children:[(0,import_jsx_runtime.jsx)("div",Object.assign({className:"modal-left-title"},{children:(0,import_jsx_runtime.jsx)("h2",{children:translate("modal.wallet.connectYourWallet")})})),(0,import_jsx_runtime.jsx)(WalletOptions,{handleWalletClick:jr=>{ur(jr,!1)},selector:v})]})),(0,import_jsx_runtime.jsx)("div",Object.assign({className:"modal-right"},{children:(0,import_jsx_runtime.jsxs)("div",Object.assign({className:"nws-modal-body"},{children:[pe.name==="AlertMessage"&&me&&(0,import_jsx_runtime.jsx)(AlertMessage,{message:me,module:(fe=pe.params)===null||fe===void 0?void 0:fe.module,onBack:jr=>{jr&&ur(cr,!1),Ee(null),ye({name:"WalletHome"})},onCloseModal:()=>Ar({hideReason:"user-triggered"})}),pe.name==="DerivationPath"&&(0,import_jsx_runtime.jsx)(DerivationPath,{selector:v,options:k,onConnected:()=>{Ar({hideReason:"wallet-navigation"})},params:pe.params,onBack:()=>ye({name:"WalletHome"}),onError:(jr,Mr)=>{const{modules:Lr}=v.store.getState(),Vr=Lr.find(Gr=>Gr.id===Mr.id);Ee(jr),ye({name:"AlertMessage",params:{module:Vr}})},onCloseModal:()=>Ar({hideReason:"user-triggered"})}),pe.name==="WalletNetworkChanged"&&(0,import_jsx_runtime.jsx)(WalletNetworkChanged,{selector:v,onBack:()=>ye({name:"WalletHome"}),onCloseModal:()=>Ar({hideReason:"user-triggered"})}),pe.name==="WalletNotInstalled"&&(0,import_jsx_runtime.jsx)(WalletNotInstalled,{module:(le=pe.params)===null||le===void 0?void 0:le.module,onBack:()=>{ye({name:"WalletHome"})},onCloseModal:()=>Ar({hideReason:"user-triggered"})}),pe.name==="WalletConnecting"&&(0,import_jsx_runtime.jsx)(WalletConnecting,{wallet:(ve=pe.params)===null||ve===void 0?void 0:ve.wallet,onBack:()=>{ye({name:"WalletHome"})},onCloseModal:()=>Ar({hideReason:"user-triggered"})}),pe.name==="WalletHome"&&(0,import_jsx_runtime.jsx)(WalletHome,{selector:v,onCloseModal:()=>Ar({hideReason:"user-triggered"})}),pe.name==="WalletConnected"&&(0,import_jsx_runtime.jsx)(WalletConnected,{module:cr,onCloseModal:()=>Ar({hideReason:"user-triggered"})}),pe.name==="ScanQRCode"&&(0,import_jsx_runtime.jsx)(ScanQRCode,{handleOpenDefaultModal:()=>{ur(cr,!0)},onCloseModal:()=>Ar({hideReason:"user-triggered"}),uri:$r,wallet:cr})]}))}))]}))]})):null},MODAL_ELEMENT_ID="near-wallet-selector-modal",modalInstance=null,setupModal=(v,k)=>{const ie=document.createElement("div");ie.id=MODAL_ELEMENT_ID,document.getElementById(MODAL_ELEMENT_ID)||document.body.appendChild(ie);const ae=document.getElementById(MODAL_ELEMENT_ID),ce=(0,import_client.createRoot)(ae),fe=new EventEmitter,le=(ve=!1)=>{ce.render((0,import_jsx_runtime.jsx)(Modal,{selector:v,options:k,visible:ve,hide:()=>le(!1),emitter:fe}))};return modalInstance||(modalInstance={show:()=>{le(!0)},hide:()=>{le(!1)},on:(ve,pe)=>fe.on(ve,pe),off:(ve,pe)=>{fe.off(ve,pe)}}),modalInstance};/** * @license React * react-dom.development.js * @@ -197,11 +197,11 @@ Error generating stack: `+Wn.message+` * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT - */var import_bn$1=__toESM(require_bn$1()),nearAPI$8=__toESM(require_browser_index2$1()),{transactions:transactions2,utils:utils2}=nearAPI$8,getAccessKey=v=>{if(v==="FullAccess")return transactions2.fullAccessKey();const{receiverId:k,methodNames:ie=[]}=v,ae=v.allowance?new import_bn$1.BN(v.allowance):void 0;return transactions2.functionCallAccessKey(k,ie,ae)},createAction=v=>{switch(v.type){case"CreateAccount":return transactions2.createAccount();case"DeployContract":{const{code:k}=v.params;return transactions2.deployContract(k)}case"FunctionCall":{const{methodName:k,args:ie,gas:ae,deposit:ce}=v.params;return transactions2.functionCall(k,ie,new import_bn$1.BN(ae),new import_bn$1.BN(ce))}case"Transfer":{const{deposit:k}=v.params;return transactions2.transfer(new import_bn$1.BN(k))}case"Stake":{const{stake:k,publicKey:ie}=v.params;return transactions2.stake(new import_bn$1.BN(k),utils2.PublicKey.from(ie))}case"AddKey":{const{publicKey:k,accessKey:ie}=v.params;return transactions2.addKey(utils2.PublicKey.from(k),getAccessKey(ie.permission))}case"DeleteKey":{const{publicKey:k}=v.params;return transactions2.deleteKey(utils2.PublicKey.from(k))}case"DeleteAccount":{const{beneficiaryId:k}=v.params;return transactions2.deleteAccount(k)}default:throw new Error("Invalid action type")}},commonjsGlobal$h=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$d$9=function(v){try{return!!v()}catch{return!0}},fails$c$9=fails$d$9,functionBindNative$g=!fails$c$9(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$a=functionBindNative$g,FunctionPrototype$2$a=Function.prototype,bind$5$6=FunctionPrototype$2$a.bind,call$e$7=FunctionPrototype$2$a.call,uncurryThis$d$a=NATIVE_BIND$3$a&&bind$5$6.bind(call$e$7,call$e$7),functionUncurryThis$g=NATIVE_BIND$3$a?function(v){return v&&uncurryThis$d$a(v)}:function(v){return v&&function(){return call$e$7.apply(v,arguments)}},uncurryThis$c$a=functionUncurryThis$g,toString$2$d=uncurryThis$c$a({}.toString),stringSlice$g=uncurryThis$c$a("".slice),classofRaw$1$e=function(v){return stringSlice$g(toString$2$d(v),8,-1)},uncurryThis$b$a=functionUncurryThis$g,fails$b$a=fails$d$9,classof$5$9=classofRaw$1$e,$Object$4$a=Object,split$e=uncurryThis$b$a("".split),indexedObject$e=fails$b$a(function(){return!$Object$4$a("z").propertyIsEnumerable(0)})?function(v){return classof$5$9(v)=="String"?split$e(v,""):$Object$4$a(v)}:$Object$4$a,$TypeError$b$7=TypeError,requireObjectCoercible$2$e=function(v){if(v==null)throw $TypeError$b$7("Can't call method on "+v);return v},IndexedObject$g=indexedObject$e,requireObjectCoercible$1$g=requireObjectCoercible$2$e,toIndexedObject$5$a=function(v){return IndexedObject$g(requireObjectCoercible$1$g(v))},check$g=function(v){return v&&v.Math==Math&&v},global$j$6=check$g(typeof globalThis=="object"&&globalThis)||check$g(typeof window=="object"&&window)||check$g(typeof self=="object"&&self)||check$g(typeof commonjsGlobal$h=="object"&&commonjsGlobal$h)||function(){return this}()||Function("return this")(),shared$3$g={exports:{}},global$i$7=global$j$6,defineProperty$4$a=Object.defineProperty,defineGlobalProperty$3$e=function(v,k){try{defineProperty$4$a(global$i$7,v,{value:k,configurable:!0,writable:!0})}catch{global$i$7[v]=k}return k},global$h$a=global$j$6,defineGlobalProperty$2$g=defineGlobalProperty$3$e,SHARED$g="__core-js_shared__",store$3$g=global$h$a[SHARED$g]||defineGlobalProperty$2$g(SHARED$g,{}),sharedStore$g=store$3$g,store$2$g=sharedStore$g;(shared$3$g.exports=function(v,k){return store$2$g[v]||(store$2$g[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$i=requireObjectCoercible$2$e,$Object$3$c=Object,toObject$2$d=function(v){return $Object$3$c(requireObjectCoercible$i(v))},uncurryThis$a$e=functionUncurryThis$g,toObject$1$g=toObject$2$d,hasOwnProperty$g=uncurryThis$a$e({}.hasOwnProperty),hasOwnProperty_1$g=Object.hasOwn||function v(k,ie){return hasOwnProperty$g(toObject$1$g(k),ie)},uncurryThis$9$e=functionUncurryThis$g,id$i=0,postfix$g=Math.random(),toString$1$g=uncurryThis$9$e(1 .toString),uid$2$g=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$1$g(++id$i+postfix$g,36)},isCallable$k$6=function(v){return typeof v=="function"},global$g$a=global$j$6,isCallable$j$7=isCallable$k$6,aFunction$g=function(v){return isCallable$j$7(v)?v:void 0},getBuiltIn$8$6=function(v,k){return arguments.length<2?aFunction$g(global$g$a[v]):global$g$a[v]&&global$g$a[v][k]},getBuiltIn$7$6=getBuiltIn$8$6,engineUserAgent$g=getBuiltIn$7$6("navigator","userAgent")||"",global$f$a=global$j$6,userAgent$3$6=engineUserAgent$g,process$3$6=global$f$a.process,Deno$1$7=global$f$a.Deno,versions$g=process$3$6&&process$3$6.versions||Deno$1$7&&Deno$1$7.version,v8$g=versions$g&&versions$g.v8,match$g,version$g;v8$g&&(match$g=v8$g.split("."),version$g=match$g[0]>0&&match$g[0]<4?1:+(match$g[0]+match$g[1]));!version$g&&userAgent$3$6&&(match$g=userAgent$3$6.match(/Edge\/(\d+)/),(!match$g||match$g[1]>=74)&&(match$g=userAgent$3$6.match(/Chrome\/(\d+)/),match$g&&(version$g=+match$g[1])));var engineV8Version$g=version$g,V8_VERSION$1$6=engineV8Version$g,fails$a$c=fails$d$9,nativeSymbol$g=!!Object.getOwnPropertySymbols&&!fails$a$c(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$6&&V8_VERSION$1$6<41}),NATIVE_SYMBOL$1$g=nativeSymbol$g,useSymbolAsUid$g=NATIVE_SYMBOL$1$g&&!Symbol.sham&&typeof Symbol.iterator=="symbol",global$e$a=global$j$6,shared$2$g=shared$3$g.exports,hasOwn$a$9=hasOwnProperty_1$g,uid$1$g=uid$2$g,NATIVE_SYMBOL$h=nativeSymbol$g,USE_SYMBOL_AS_UID$1$g=useSymbolAsUid$g,WellKnownSymbolsStore$g=shared$2$g("wks"),Symbol$1$g=global$e$a.Symbol,symbolFor$g=Symbol$1$g&&Symbol$1$g.for,createWellKnownSymbol$g=USE_SYMBOL_AS_UID$1$g?Symbol$1$g:Symbol$1$g&&Symbol$1$g.withoutSetter||uid$1$g,wellKnownSymbol$e$9=function(v){if(!hasOwn$a$9(WellKnownSymbolsStore$g,v)||!(NATIVE_SYMBOL$h||typeof WellKnownSymbolsStore$g[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$h&&hasOwn$a$9(Symbol$1$g,v)?WellKnownSymbolsStore$g[v]=Symbol$1$g[v]:USE_SYMBOL_AS_UID$1$g&&symbolFor$g?WellKnownSymbolsStore$g[v]=symbolFor$g(k):WellKnownSymbolsStore$g[v]=createWellKnownSymbol$g(k)}return WellKnownSymbolsStore$g[v]},isCallable$i$9=isCallable$k$6,isObject$7$a=function(v){return typeof v=="object"?v!==null:isCallable$i$9(v)},isObject$6$a=isObject$7$a,$String$3$a=String,$TypeError$a$a=TypeError,anObject$c$7=function(v){if(isObject$6$a(v))return v;throw $TypeError$a$a($String$3$a(v)+" is not an object")},objectDefineProperties$a={},fails$9$e=fails$d$9,descriptors$g=!fails$9$e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),DESCRIPTORS$9$9=descriptors$g,fails$8$e=fails$d$9,v8PrototypeDefineBug$g=DESCRIPTORS$9$9&&fails$8$e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),objectDefineProperty$g={},global$d$a=global$j$6,isObject$5$g=isObject$7$a,document$3$6=global$d$a.document,EXISTS$1$g=isObject$5$g(document$3$6)&&isObject$5$g(document$3$6.createElement),documentCreateElement$2$8=function(v){return EXISTS$1$g?document$3$6.createElement(v):{}},DESCRIPTORS$8$a=descriptors$g,fails$7$g=fails$d$9,createElement$1$6=documentCreateElement$2$8,ie8DomDefine$g=!DESCRIPTORS$8$a&&!fails$7$g(function(){return Object.defineProperty(createElement$1$6("div"),"a",{get:function(){return 7}}).a!=7}),NATIVE_BIND$2$a=functionBindNative$g,call$d$9=Function.prototype.call,functionCall$g=NATIVE_BIND$2$a?call$d$9.bind(call$d$9):function(){return call$d$9.apply(call$d$9,arguments)},uncurryThis$8$e=functionUncurryThis$g,objectIsPrototypeOf$g=uncurryThis$8$e({}.isPrototypeOf),getBuiltIn$6$a=getBuiltIn$8$6,isCallable$h$a=isCallable$k$6,isPrototypeOf$3$9=objectIsPrototypeOf$g,USE_SYMBOL_AS_UID$h=useSymbolAsUid$g,$Object$2$g=Object,isSymbol$2$g=USE_SYMBOL_AS_UID$h?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$a("Symbol");return isCallable$h$a(k)&&isPrototypeOf$3$9(k.prototype,$Object$2$g(v))},$String$2$e=String,tryToString$4$a=function(v){try{return $String$2$e(v)}catch{return"Object"}},isCallable$g$a=isCallable$k$6,tryToString$3$a=tryToString$4$a,$TypeError$9$a=TypeError,aCallable$7$6=function(v){if(isCallable$g$a(v))return v;throw $TypeError$9$a(tryToString$3$a(v)+" is not a function")},aCallable$6$6=aCallable$7$6,getMethod$3$7=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$6$6(ie)},call$c$a=functionCall$g,isCallable$f$b=isCallable$k$6,isObject$4$g=isObject$7$a,$TypeError$8$a=TypeError,ordinaryToPrimitive$1$g=function(v,k){var ie,ae;if(k==="string"&&isCallable$f$b(ie=v.toString)&&!isObject$4$g(ae=call$c$a(ie,v))||isCallable$f$b(ie=v.valueOf)&&!isObject$4$g(ae=call$c$a(ie,v))||k!=="string"&&isCallable$f$b(ie=v.toString)&&!isObject$4$g(ae=call$c$a(ie,v)))return ae;throw $TypeError$8$a("Can't convert object to primitive value")},call$b$a=functionCall$g,isObject$3$g=isObject$7$a,isSymbol$1$g=isSymbol$2$g,getMethod$2$a=getMethod$3$7,ordinaryToPrimitive$h=ordinaryToPrimitive$1$g,wellKnownSymbol$d$9=wellKnownSymbol$e$9,$TypeError$7$a=TypeError,TO_PRIMITIVE$g=wellKnownSymbol$d$9("toPrimitive"),toPrimitive$1$g=function(v,k){if(!isObject$3$g(v)||isSymbol$1$g(v))return v;var ie=getMethod$2$a(v,TO_PRIMITIVE$g),ae;if(ie){if(k===void 0&&(k="default"),ae=call$b$a(ie,v,k),!isObject$3$g(ae)||isSymbol$1$g(ae))return ae;throw $TypeError$7$a("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$h(v,k)},toPrimitive$i=toPrimitive$1$g,isSymbol$j=isSymbol$2$g,toPropertyKey$2$e=function(v){var k=toPrimitive$i(v,"string");return isSymbol$j(k)?k:k+""},DESCRIPTORS$7$e=descriptors$g,IE8_DOM_DEFINE$1$e=ie8DomDefine$g,V8_PROTOTYPE_DEFINE_BUG$1$a=v8PrototypeDefineBug$g,anObject$b$7=anObject$c$7,toPropertyKey$1$g=toPropertyKey$2$e,$TypeError$6$b=TypeError,$defineProperty$g=Object.defineProperty,$getOwnPropertyDescriptor$1$e=Object.getOwnPropertyDescriptor,ENUMERABLE$g="enumerable",CONFIGURABLE$1$g="configurable",WRITABLE$g="writable";objectDefineProperty$g.f=DESCRIPTORS$7$e?V8_PROTOTYPE_DEFINE_BUG$1$a?function v(k,ie,ae){if(anObject$b$7(k),ie=toPropertyKey$1$g(ie),anObject$b$7(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$g in ae&&!ae[WRITABLE$g]){var ce=$getOwnPropertyDescriptor$1$e(k,ie);ce&&ce[WRITABLE$g]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$g in ae?ae[CONFIGURABLE$1$g]:ce[CONFIGURABLE$1$g],enumerable:ENUMERABLE$g in ae?ae[ENUMERABLE$g]:ce[ENUMERABLE$g],writable:!1})}return $defineProperty$g(k,ie,ae)}:$defineProperty$g:function v(k,ie,ae){if(anObject$b$7(k),ie=toPropertyKey$1$g(ie),anObject$b$7(ae),IE8_DOM_DEFINE$1$e)try{return $defineProperty$g(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$6$b("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var ceil$e=Math.ceil,floor$h=Math.floor,mathTrunc$e=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$h:ceil$e)(ie)},trunc2$e=mathTrunc$e,toIntegerOrInfinity$2$e=function(v){var k=+v;return k!==k||k===0?0:trunc2$e(k)},toIntegerOrInfinity$1$e=toIntegerOrInfinity$2$e,max$f=Math.max,min$1$e=Math.min,toAbsoluteIndex$1$e=function(v,k){var ie=toIntegerOrInfinity$1$e(v);return ie<0?max$f(ie+k,0):min$1$e(ie,k)},toIntegerOrInfinity$j=toIntegerOrInfinity$2$e,min$f=Math.min,toLength$1$e=function(v){return v>0?min$f(toIntegerOrInfinity$j(v),9007199254740991):0},toLength$j=toLength$1$e,lengthOfArrayLike$2$a=function(v){return toLength$j(v.length)},toIndexedObject$4$a=toIndexedObject$5$a,toAbsoluteIndex$i=toAbsoluteIndex$1$e,lengthOfArrayLike$1$e=lengthOfArrayLike$2$a,createMethod$f=function(v){return function(k,ie,ae){var ce=toIndexedObject$4$a(k),fe=lengthOfArrayLike$1$e(ce),le=toAbsoluteIndex$i(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$e={includes:createMethod$f(!0),indexOf:createMethod$f(!1)},hiddenKeys$4$a={},uncurryThis$7$e=functionUncurryThis$g,hasOwn$9$a=hasOwnProperty_1$g,toIndexedObject$3$e=toIndexedObject$5$a,indexOf$e=arrayIncludes$e.indexOf,hiddenKeys$3$e=hiddenKeys$4$a,push$f=uncurryThis$7$e([].push),objectKeysInternal$e=function(v,k){var ie=toIndexedObject$3$e(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$9$a(hiddenKeys$3$e,fe)&&hasOwn$9$a(ie,fe)&&push$f(ce,fe);for(;k.length>ae;)hasOwn$9$a(ie,fe=k[ae++])&&(~indexOf$e(ce,fe)||push$f(ce,fe));return ce},enumBugKeys$3$a=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$d=objectKeysInternal$e,enumBugKeys$2$d=enumBugKeys$3$a,objectKeys$1$d=Object.keys||function v(k){return internalObjectKeys$1$d(k,enumBugKeys$2$d)},DESCRIPTORS$6$e=descriptors$g,V8_PROTOTYPE_DEFINE_BUG$h=v8PrototypeDefineBug$g,definePropertyModule$4$9=objectDefineProperty$g,anObject$a$9=anObject$c$7,toIndexedObject$2$e=toIndexedObject$5$a,objectKeys$f=objectKeys$1$d;objectDefineProperties$a.f=DESCRIPTORS$6$e&&!V8_PROTOTYPE_DEFINE_BUG$h?Object.defineProperties:function v(k,ie){anObject$a$9(k);for(var ae=toIndexedObject$2$e(ie),ce=objectKeys$f(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$4$9.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$5$a=getBuiltIn$8$6,html$2$6=getBuiltIn$5$a("document","documentElement"),shared$1$g=shared$3$g.exports,uid$j=uid$2$g,keys2$5=shared$1$g("keys"),sharedKey$3$a=function(v){return keys2$5[v]||(keys2$5[v]=uid$j(v))},anObject$9$9=anObject$c$7,definePropertiesModule$a=objectDefineProperties$a,enumBugKeys$1$e=enumBugKeys$3$a,hiddenKeys$2$e=hiddenKeys$4$a,html$1$b=html$2$6,documentCreateElement$1$a=documentCreateElement$2$8,sharedKey$2$a=sharedKey$3$a,GT$a=">",LT$a="<",PROTOTYPE$b="prototype",SCRIPT$a="script",IE_PROTO$1$a=sharedKey$2$a("IE_PROTO"),EmptyConstructor$a=function(){},scriptTag$a=function(v){return LT$a+SCRIPT$a+GT$a+v+LT$a+"/"+SCRIPT$a+GT$a},NullProtoObjectViaActiveX$a=function(v){v.write(scriptTag$a("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$a=function(){var v=documentCreateElement$1$a("iframe"),k="java"+SCRIPT$a+":",ie;return v.style.display="none",html$1$b.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$a("document.F=Object")),ie.close(),ie.F},activeXDocument$a,NullProtoObject$a=function(){try{activeXDocument$a=new ActiveXObject("htmlfile")}catch{}NullProtoObject$a=typeof document<"u"?document.domain&&activeXDocument$a?NullProtoObjectViaActiveX$a(activeXDocument$a):NullProtoObjectViaIFrame$a():NullProtoObjectViaActiveX$a(activeXDocument$a);for(var v=enumBugKeys$1$e.length;v--;)delete NullProtoObject$a[PROTOTYPE$b][enumBugKeys$1$e[v]];return NullProtoObject$a()};hiddenKeys$2$e[IE_PROTO$1$a]=!0;var objectCreate$a=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$a[PROTOTYPE$b]=anObject$9$9(k),ae=new EmptyConstructor$a,EmptyConstructor$a[PROTOTYPE$b]=null,ae[IE_PROTO$1$a]=k):ae=NullProtoObject$a(),ie===void 0?ae:definePropertiesModule$a.f(ae,ie)},wellKnownSymbol$c$9=wellKnownSymbol$e$9,create$1$a=objectCreate$a,defineProperty$3$a=objectDefineProperty$g.f,UNSCOPABLES$a=wellKnownSymbol$c$9("unscopables"),ArrayPrototype$1$9=Array.prototype;ArrayPrototype$1$9[UNSCOPABLES$a]==null&&defineProperty$3$a(ArrayPrototype$1$9,UNSCOPABLES$a,{configurable:!0,value:create$1$a(null)});var addToUnscopables$1$a=function(v){ArrayPrototype$1$9[UNSCOPABLES$a][v]=!0},iterators$b={},uncurryThis$6$g=functionUncurryThis$g,isCallable$e$b=isCallable$k$6,store$1$g=sharedStore$g,functionToString$g=uncurryThis$6$g(Function.toString);isCallable$e$b(store$1$g.inspectSource)||(store$1$g.inspectSource=function(v){return functionToString$g(v)});var inspectSource$4$6=store$1$g.inspectSource,global$c$a=global$j$6,isCallable$d$b=isCallable$k$6,inspectSource$3$a=inspectSource$4$6,WeakMap$1$g=global$c$a.WeakMap,nativeWeakMap$g=isCallable$d$b(WeakMap$1$g)&&/native code/.test(inspectSource$3$a(WeakMap$1$g)),createPropertyDescriptor$3$a=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$5$g=descriptors$g,definePropertyModule$3$b=objectDefineProperty$g,createPropertyDescriptor$2$e=createPropertyDescriptor$3$a,createNonEnumerableProperty$4$a=DESCRIPTORS$5$g?function(v,k,ie){return definePropertyModule$3$b.f(v,k,createPropertyDescriptor$2$e(1,ie))}:function(v,k,ie){return v[k]=ie,v},NATIVE_WEAK_MAP$g=nativeWeakMap$g,global$b$b=global$j$6,uncurryThis$5$g=functionUncurryThis$g,isObject$2$g=isObject$7$a,createNonEnumerableProperty$3$a=createNonEnumerableProperty$4$a,hasOwn$8$b=hasOwnProperty_1$g,shared$j=sharedStore$g,sharedKey$1$g=sharedKey$3$a,hiddenKeys$1$e=hiddenKeys$4$a,OBJECT_ALREADY_INITIALIZED$g="Object already initialized",TypeError$2$a=global$b$b.TypeError,WeakMap$i=global$b$b.WeakMap,set$1$a,get$h,has$g,enforce$g=function(v){return has$g(v)?get$h(v):set$1$a(v,{})},getterFor$g=function(v){return function(k){var ie;if(!isObject$2$g(k)||(ie=get$h(k)).type!==v)throw TypeError$2$a("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$g||shared$j.state?(store$j=shared$j.state||(shared$j.state=new WeakMap$i),wmget$g=uncurryThis$5$g(store$j.get),wmhas$g=uncurryThis$5$g(store$j.has),wmset$g=uncurryThis$5$g(store$j.set),set$1$a=function(v,k){if(wmhas$g(store$j,v))throw new TypeError$2$a(OBJECT_ALREADY_INITIALIZED$g);return k.facade=v,wmset$g(store$j,v,k),k},get$h=function(v){return wmget$g(store$j,v)||{}},has$g=function(v){return wmhas$g(store$j,v)}):(STATE$g=sharedKey$1$g("state"),hiddenKeys$1$e[STATE$g]=!0,set$1$a=function(v,k){if(hasOwn$8$b(v,STATE$g))throw new TypeError$2$a(OBJECT_ALREADY_INITIALIZED$g);return k.facade=v,createNonEnumerableProperty$3$a(v,STATE$g,k),k},get$h=function(v){return hasOwn$8$b(v,STATE$g)?v[STATE$g]:{}},has$g=function(v){return hasOwn$8$b(v,STATE$g)});var store$j,wmget$g,wmhas$g,wmset$g,STATE$g,internalState$g={set:set$1$a,get:get$h,has:has$g,enforce:enforce$g,getterFor:getterFor$g},objectGetOwnPropertyDescriptor$e={},objectPropertyIsEnumerable$e={},$propertyIsEnumerable$e={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$6=Object.getOwnPropertyDescriptor,NASHORN_BUG$e=getOwnPropertyDescriptor$2$6&&!$propertyIsEnumerable$e.call({1:2},1);objectPropertyIsEnumerable$e.f=NASHORN_BUG$e?function v(k){var ie=getOwnPropertyDescriptor$2$6(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$e;var DESCRIPTORS$4$g=descriptors$g,call$a$a=functionCall$g,propertyIsEnumerableModule$f=objectPropertyIsEnumerable$e,createPropertyDescriptor$1$g=createPropertyDescriptor$3$a,toIndexedObject$1$e=toIndexedObject$5$a,toPropertyKey$k=toPropertyKey$2$e,hasOwn$7$c=hasOwnProperty_1$g,IE8_DOM_DEFINE$h=ie8DomDefine$g,$getOwnPropertyDescriptor$h=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$e.f=DESCRIPTORS$4$g?$getOwnPropertyDescriptor$h:function v(k,ie){if(k=toIndexedObject$1$e(k),ie=toPropertyKey$k(ie),IE8_DOM_DEFINE$h)try{return $getOwnPropertyDescriptor$h(k,ie)}catch{}if(hasOwn$7$c(k,ie))return createPropertyDescriptor$1$g(!call$a$a(propertyIsEnumerableModule$f.f,k,ie),k[ie])};var makeBuiltIn$2$g={exports:{}},DESCRIPTORS$3$g=descriptors$g,hasOwn$6$e=hasOwnProperty_1$g,FunctionPrototype$1$g=Function.prototype,getDescriptor$g=DESCRIPTORS$3$g&&Object.getOwnPropertyDescriptor,EXISTS$h=hasOwn$6$e(FunctionPrototype$1$g,"name"),PROPER$g=EXISTS$h&&function v(){}.name==="something",CONFIGURABLE$h=EXISTS$h&&(!DESCRIPTORS$3$g||DESCRIPTORS$3$g&&getDescriptor$g(FunctionPrototype$1$g,"name").configurable),functionName$g={EXISTS:EXISTS$h,PROPER:PROPER$g,CONFIGURABLE:CONFIGURABLE$h},fails$6$g=fails$d$9,isCallable$c$b=isCallable$k$6,hasOwn$5$e=hasOwnProperty_1$g,DESCRIPTORS$2$g=descriptors$g,CONFIGURABLE_FUNCTION_NAME$1$a=functionName$g.CONFIGURABLE,inspectSource$2$g=inspectSource$4$6,InternalStateModule$2$9=internalState$g,enforceInternalState$i=InternalStateModule$2$9.enforce,getInternalState$1$a=InternalStateModule$2$9.get,defineProperty$2$e=Object.defineProperty,CONFIGURABLE_LENGTH$g=DESCRIPTORS$2$g&&!fails$6$g(function(){return defineProperty$2$e(function(){},"length",{value:8}).length!==8}),TEMPLATE$g=String(String).split("String"),makeBuiltIn$1$g=makeBuiltIn$2$g.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$5$e(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$a&&v.name!==k)&&(DESCRIPTORS$2$g?defineProperty$2$e(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$g&&ie&&hasOwn$5$e(ie,"arity")&&v.length!==ie.arity&&defineProperty$2$e(v,"length",{value:ie.arity});try{ie&&hasOwn$5$e(ie,"constructor")&&ie.constructor?DESCRIPTORS$2$g&&defineProperty$2$e(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$i(v);return hasOwn$5$e(ae,"source")||(ae.source=TEMPLATE$g.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$g(function v(){return isCallable$c$b(this)&&getInternalState$1$a(this).source||inspectSource$2$g(this)},"toString");var isCallable$b$c=isCallable$k$6,definePropertyModule$2$e=objectDefineProperty$g,makeBuiltIn$i=makeBuiltIn$2$g.exports,defineGlobalProperty$1$g=defineGlobalProperty$3$e,defineBuiltIn$6$9=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$b$c(ie)&&makeBuiltIn$i(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$g(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$2$e.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$e={},internalObjectKeys$f=objectKeysInternal$e,enumBugKeys$h=enumBugKeys$3$a,hiddenKeys$i=enumBugKeys$h.concat("length","prototype");objectGetOwnPropertyNames$e.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$f(k,hiddenKeys$i)};var objectGetOwnPropertySymbols$e={};objectGetOwnPropertySymbols$e.f=Object.getOwnPropertySymbols;var getBuiltIn$4$b=getBuiltIn$8$6,uncurryThis$4$g=functionUncurryThis$g,getOwnPropertyNamesModule$e=objectGetOwnPropertyNames$e,getOwnPropertySymbolsModule$f=objectGetOwnPropertySymbols$e,anObject$8$a=anObject$c$7,concat$g=uncurryThis$4$g([].concat),ownKeys$1$e=getBuiltIn$4$b("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$e.f(anObject$8$a(k)),ae=getOwnPropertySymbolsModule$f.f;return ae?concat$g(ie,ae(k)):ie},hasOwn$4$g=hasOwnProperty_1$g,ownKeys2$e=ownKeys$1$e,getOwnPropertyDescriptorModule$f=objectGetOwnPropertyDescriptor$e,definePropertyModule$1$g=objectDefineProperty$g,copyConstructorProperties$1$e=function(v,k,ie){for(var ae=ownKeys2$e(k),ce=definePropertyModule$1$g.f,fe=getOwnPropertyDescriptorModule$f.f,le=0;le=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$a=Iterators$2$a.Arguments=Iterators$2$a.Array;addToUnscopables$b("keys");addToUnscopables$b("values");addToUnscopables$b("entries");if(DESCRIPTORS$1$g&&values$a.name!=="values")try{defineProperty3$d(values$a,"name",{value:"values"})}catch(v){}var domIterables$7={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$h=documentCreateElement$2$8,classList$7=documentCreateElement$h("span").classList,DOMTokenListPrototype$1$7=classList$7&&classList$7.constructor&&classList$7.constructor.prototype,domTokenListPrototype$7=DOMTokenListPrototype$1$7===Object.prototype?void 0:DOMTokenListPrototype$1$7,global$9$g=global$j$6,DOMIterables$7=domIterables$7,DOMTokenListPrototype$8=domTokenListPrototype$7,ArrayIteratorMethods$7=es_array_iterator$7,createNonEnumerableProperty$m=createNonEnumerableProperty$4$a,wellKnownSymbol$8$b=wellKnownSymbol$e$9,ITERATOR$3$9=wellKnownSymbol$8$b("iterator"),TO_STRING_TAG$2$b=wellKnownSymbol$8$b("toStringTag"),ArrayValues$7=ArrayIteratorMethods$7.values,handlePrototype$7=function(v,k){if(v){if(v[ITERATOR$3$9]!==ArrayValues$7)try{createNonEnumerableProperty$m(v,ITERATOR$3$9,ArrayValues$7)}catch{v[ITERATOR$3$9]=ArrayValues$7}if(v[TO_STRING_TAG$2$b]||createNonEnumerableProperty$m(v,TO_STRING_TAG$2$b,k),DOMIterables$7[k]){for(var ie in ArrayIteratorMethods$7)if(v[ie]!==ArrayIteratorMethods$7[ie])try{createNonEnumerableProperty$m(v,ie,ArrayIteratorMethods$7[ie])}catch{v[ie]=ArrayIteratorMethods$7[ie]}}}};for(COLLECTION_NAME$7 in DOMIterables$7)handlePrototype$7(global$9$g[COLLECTION_NAME$7]&&global$9$g[COLLECTION_NAME$7].prototype,COLLECTION_NAME$7);var COLLECTION_NAME$7;handlePrototype$7(DOMTokenListPrototype$8,"DOMTokenList");var classof$4$a=classofRaw$1$e,global$8$g=global$j$6,engineIsNode$6=classof$4$a(global$8$g.process)=="process",getBuiltIn$3$e=getBuiltIn$8$6,definePropertyModule$m=objectDefineProperty$g,wellKnownSymbol$7$b=wellKnownSymbol$e$9,DESCRIPTORS$t=descriptors$g,SPECIES$2$a=wellKnownSymbol$7$b("species"),setSpecies$1$a=function(v){var k=getBuiltIn$3$e(v),ie=definePropertyModule$m.f;DESCRIPTORS$t&&k&&!k[SPECIES$2$a]&&ie(k,SPECIES$2$a,{configurable:!0,get:function(){return this}})},isPrototypeOf$2$a=objectIsPrototypeOf$g,$TypeError$4$g=TypeError,anInstance$1$a=function(v,k){if(isPrototypeOf$2$a(k,v))return v;throw $TypeError$4$g("Incorrect invocation")},wellKnownSymbol$6$b=wellKnownSymbol$e$9,TO_STRING_TAG$1$e=wellKnownSymbol$6$b("toStringTag"),test$e={};test$e[TO_STRING_TAG$1$e]="z";var toStringTagSupport$e=String(test$e)==="[object z]",TO_STRING_TAG_SUPPORT$e=toStringTagSupport$e,isCallable$5$g=isCallable$k$6,classofRaw$h=classofRaw$1$e,wellKnownSymbol$5$b=wellKnownSymbol$e$9,TO_STRING_TAG$h=wellKnownSymbol$5$b("toStringTag"),$Object$k=Object,CORRECT_ARGUMENTS$e=classofRaw$h(function(){return arguments}())=="Arguments",tryGet$e=function(v,k){try{return v[k]}catch{}},classof$3$a=TO_STRING_TAG_SUPPORT$e?classofRaw$h:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$e(k=$Object$k(v),TO_STRING_TAG$h))=="string"?ie:CORRECT_ARGUMENTS$e?classofRaw$h(k):(ae=classofRaw$h(k))=="Object"&&isCallable$5$g(k.callee)?"Arguments":ae},uncurryThis$2$g=functionUncurryThis$g,fails$2$g=fails$d$9,isCallable$4$g=isCallable$k$6,classof$2$c=classof$3$a,getBuiltIn$2$g=getBuiltIn$8$6,inspectSource$1$g=inspectSource$4$6,noop$a=function(){},empty$9=[],construct$a=getBuiltIn$2$g("Reflect","construct"),constructorRegExp$a=/^\s*(?:class|function)\b/,exec$b=uncurryThis$2$g(constructorRegExp$a.exec),INCORRECT_TO_STRING$a=!constructorRegExp$a.exec(noop$a),isConstructorModern$a=function v(k){if(!isCallable$4$g(k))return!1;try{return construct$a(noop$a,empty$9,k),!0}catch{return!1}},isConstructorLegacy$a=function v(k){if(!isCallable$4$g(k))return!1;switch(classof$2$c(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$a||!!exec$b(constructorRegExp$a,inspectSource$1$g(k))}catch{return!0}};isConstructorLegacy$a.sham=!0;var isConstructor$1$a=!construct$a||fails$2$g(function(){var v;return isConstructorModern$a(isConstructorModern$a.call)||!isConstructorModern$a(Object)||!isConstructorModern$a(function(){v=!0})||v})?isConstructorLegacy$a:isConstructorModern$a,isConstructor3$a=isConstructor$1$a,tryToString$2$a=tryToString$4$a,$TypeError$3$g=TypeError,aConstructor$1$a=function(v){if(isConstructor3$a(v))return v;throw $TypeError$3$g(tryToString$2$a(v)+" is not a constructor")},anObject$6$b=anObject$c$7,aConstructor$c=aConstructor$1$a,wellKnownSymbol$4$b=wellKnownSymbol$e$9,SPECIES$1$a=wellKnownSymbol$4$b("species"),speciesConstructor$1$a=function(v,k){var ie=anObject$6$b(v).constructor,ae;return ie===void 0||(ae=anObject$6$b(ie)[SPECIES$1$a])==null?k:aConstructor$c(ae)},NATIVE_BIND$1$g=functionBindNative$g,FunctionPrototype$i=Function.prototype,apply$1$a=FunctionPrototype$i.apply,call$8$a=FunctionPrototype$i.call,functionApply$a=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$1$g?call$8$a.bind(apply$1$a):function(){return call$8$a.apply(apply$1$a,arguments)}),uncurryThis$1$g=functionUncurryThis$g,aCallable$5$6=aCallable$7$6,NATIVE_BIND$j=functionBindNative$g,bind$4$6=uncurryThis$1$g(uncurryThis$1$g.bind),functionBindContext$a=function(v,k){return aCallable$5$6(v),k===void 0?v:NATIVE_BIND$j?bind$4$6(v,k):function(){return v.apply(k,arguments)}},uncurryThis$A=functionUncurryThis$g,arraySlice$1$a=uncurryThis$A([].slice),$TypeError$2$g=TypeError,validateArgumentsLength$1$6=function(v,k){if(v=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3$6(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$c]=ae,SUBCLASSING$6=ie.then(function(){})instanceof ae,SUBCLASSING$6?!k&&IS_BROWSER$6&&!NATIVE_PROMISE_REJECTION_EVENT$1$6:!0}),promiseConstructorDetection$6={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$6,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$6,SUBCLASSING:SUBCLASSING$6},newPromiseCapability$2$6={},aCallable$4$a=aCallable$7$6,PromiseCapability$6=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$a(k),this.reject=aCallable$4$a(ie)};newPromiseCapability$2$6.f=function(v){return new PromiseCapability$6(v)};var $$5$6=_export$e,IS_NODE$8=engineIsNode$6,global$1$g=global$j$6,call$7$a=functionCall$g,defineBuiltIn$2$c=defineBuiltIn$6$9,setPrototypeOf$f=objectSetPrototypeOf$b,setToStringTag$e=setToStringTag$3$9,setSpecies$b=setSpecies$1$a,aCallable$3$a=aCallable$7$6,isCallable$1$g=isCallable$k$6,isObject$1$g=isObject$7$a,anInstance$c=anInstance$1$a,speciesConstructor$b=speciesConstructor$1$a,task$7=task$1$6.set,microtask$7=microtask$1$6,hostReportErrors$7=hostReportErrors$1$6,perform$2$6=perform$3$6,Queue$7=queue$7,InternalStateModule$k=internalState$g,NativePromiseConstructor$2$6=promiseNativeConstructor$6,PromiseConstructorDetection$6=promiseConstructorDetection$6,newPromiseCapabilityModule$3$6=newPromiseCapability$2$6,PROMISE$6="Promise",FORCED_PROMISE_CONSTRUCTOR$4$6=PromiseConstructorDetection$6.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$7=PromiseConstructorDetection$6.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$6=PromiseConstructorDetection$6.SUBCLASSING,getInternalPromiseState$6=InternalStateModule$k.getterFor(PROMISE$6),setInternalState$d=InternalStateModule$k.set,NativePromisePrototype$1$6=NativePromiseConstructor$2$6&&NativePromiseConstructor$2$6.prototype,PromiseConstructor$6=NativePromiseConstructor$2$6,PromisePrototype$6=NativePromisePrototype$1$6,TypeError$1$g=global$1$g.TypeError,document$1$b=global$1$g.document,process$h=global$1$g.process,newPromiseCapability$1$6=newPromiseCapabilityModule$3$6.f,newGenericPromiseCapability$6=newPromiseCapability$1$6,DISPATCH_EVENT$6=!!(document$1$b&&document$1$b.createEvent&&global$1$g.dispatchEvent),UNHANDLED_REJECTION$6="unhandledrejection",REJECTION_HANDLED$6="rejectionhandled",PENDING$6=0,FULFILLED$6=1,REJECTED$6=2,HANDLED$6=1,UNHANDLED$6=2,Internal$6,OwnPromiseCapability$6,PromiseWrapper$6,nativeThen$6,isThenable$6=function(v){var k;return isObject$1$g(v)&&isCallable$1$g(k=v.then)?k:!1},callReaction$6=function(v,k){var ie=k.value,ae=k.state==FULFILLED$6,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$6&&onHandleUnhandled$6(k),k.rejection=HANDLED$6),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$g("Promise-chain cycle")):(ye=isThenable$6(pe))?call$7$a(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$7=function(v,k){v.notified||(v.notified=!0,microtask$7(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$6(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$6(v)}))},dispatchEvent$6=function(v,k,ie){var ae,ce;DISPATCH_EVENT$6?(ae=document$1$b.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$1$g.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$7&&(ce=global$1$g["on"+v])?ce(ae):v===UNHANDLED_REJECTION$6&&hostReportErrors$7("Unhandled promise rejection",ie)},onUnhandled$6=function(v){call$7$a(task$7,global$1$g,function(){var k=v.facade,ie=v.value,ae=isUnhandled$6(v),ce;if(ae&&(ce=perform$2$6(function(){IS_NODE$8?process$h.emit("unhandledRejection",ie,k):dispatchEvent$6(UNHANDLED_REJECTION$6,k,ie)}),v.rejection=IS_NODE$8||isUnhandled$6(v)?UNHANDLED$6:HANDLED$6,ce.error))throw ce.value})},isUnhandled$6=function(v){return v.rejection!==HANDLED$6&&!v.parent},onHandleUnhandled$6=function(v){call$7$a(task$7,global$1$g,function(){var k=v.facade;IS_NODE$8?process$h.emit("rejectionHandled",k):dispatchEvent$6(REJECTION_HANDLED$6,k,v.value)})},bind$1$a=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$6=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$6,notify$7(v,!0))},internalResolve$6=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$g("Promise can't be resolved itself");var ae=isThenable$6(k);ae?microtask$7(function(){var ce={done:!1};try{call$7$a(ae,k,bind$1$a(internalResolve$6,ce,v),bind$1$a(internalReject$6,ce,v))}catch(fe){internalReject$6(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$6,notify$7(v,!1))}catch(ce){internalReject$6({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$6&&(PromiseConstructor$6=function(k){anInstance$c(this,PromisePrototype$6),aCallable$3$a(k),call$7$a(Internal$6,this);var ie=getInternalPromiseState$6(this);try{k(bind$1$a(internalResolve$6,ie),bind$1$a(internalReject$6,ie))}catch(ae){internalReject$6(ie,ae)}},PromisePrototype$6=PromiseConstructor$6.prototype,Internal$6=function(k){setInternalState$d(this,{type:PROMISE$6,done:!1,notified:!1,parent:!1,reactions:new Queue$7,rejection:!1,state:PENDING$6,value:void 0})},Internal$6.prototype=defineBuiltIn$2$c(PromisePrototype$6,"then",function(k,ie){var ae=getInternalPromiseState$6(this),ce=newPromiseCapability$1$6(speciesConstructor$b(this,PromiseConstructor$6));return ae.parent=!0,ce.ok=isCallable$1$g(k)?k:!0,ce.fail=isCallable$1$g(ie)&&ie,ce.domain=IS_NODE$8?process$h.domain:void 0,ae.state==PENDING$6?ae.reactions.add(ce):microtask$7(function(){callReaction$6(ce,ae)}),ce.promise}),OwnPromiseCapability$6=function(){var v=new Internal$6,k=getInternalPromiseState$6(v);this.promise=v,this.resolve=bind$1$a(internalResolve$6,k),this.reject=bind$1$a(internalReject$6,k)},newPromiseCapabilityModule$3$6.f=newPromiseCapability$1$6=function(v){return v===PromiseConstructor$6||v===PromiseWrapper$6?new OwnPromiseCapability$6(v):newGenericPromiseCapability$6(v)},isCallable$1$g(NativePromiseConstructor$2$6)&&NativePromisePrototype$1$6!==Object.prototype)){nativeThen$6=NativePromisePrototype$1$6.then,NATIVE_PROMISE_SUBCLASSING$6||defineBuiltIn$2$c(NativePromisePrototype$1$6,"then",function(k,ie){var ae=this;return new PromiseConstructor$6(function(ce,fe){call$7$a(nativeThen$6,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1$6.constructor}catch{}setPrototypeOf$f&&setPrototypeOf$f(NativePromisePrototype$1$6,PromisePrototype$6)}$$5$6({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$6},{Promise:PromiseConstructor$6});setToStringTag$e(PromiseConstructor$6,PROMISE$6,!1);setSpecies$b(PROMISE$6);var wellKnownSymbol$2$e=wellKnownSymbol$e$9,Iterators$1$b=iterators$b,ITERATOR$2$b=wellKnownSymbol$2$e("iterator"),ArrayPrototype$c=Array.prototype,isArrayIteratorMethod$1$a=function(v){return v!==void 0&&(Iterators$1$b.Array===v||ArrayPrototype$c[ITERATOR$2$b]===v)},classof$1$e=classof$3$a,getMethod$1$g=getMethod$3$7,Iterators$f=iterators$b,wellKnownSymbol$1$g=wellKnownSymbol$e$9,ITERATOR$1$b=wellKnownSymbol$1$g("iterator"),getIteratorMethod$2$a=function(v){if(v!=null)return getMethod$1$g(v,ITERATOR$1$b)||getMethod$1$g(v,"@@iterator")||Iterators$f[classof$1$e(v)]},call$6$c=functionCall$g,aCallable$2$a=aCallable$7$6,anObject$5$b=anObject$c$7,tryToString$1$g=tryToString$4$a,getIteratorMethod$1$a=getIteratorMethod$2$a,$TypeError$1$g=TypeError,getIterator$1$a=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$a(v):k;if(aCallable$2$a(ie))return anObject$5$b(call$6$c(ie,v));throw $TypeError$1$g(tryToString$1$g(v)+" is not iterable")},call$5$e=functionCall$g,anObject$4$c=anObject$c$7,getMethod$j=getMethod$3$7,iteratorClose$1$6=function(v,k,ie){var ae,ce;anObject$4$c(v);try{if(ae=getMethod$j(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$5$e(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$4$c(ae),ie},bind$l=functionBindContext$a,call$4$g=functionCall$g,anObject$3$e=anObject$c$7,tryToString$k=tryToString$4$a,isArrayIteratorMethod$b=isArrayIteratorMethod$1$a,lengthOfArrayLike$k=lengthOfArrayLike$2$a,isPrototypeOf$1$e=objectIsPrototypeOf$g,getIterator$b=getIterator$1$a,getIteratorMethod$c=getIteratorMethod$2$a,iteratorClose$7=iteratorClose$1$6,$TypeError$r=TypeError,Result$6=function(v,k){this.stopped=v,this.result=k},ResultPrototype$6=Result$6.prototype,iterate$2$6=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$l(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$7(pe,"normal",ur),new Result$6(!0,ur)},Or=function(ur){return ce?(anObject$3$e(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$c(v),!ye)throw $TypeError$r(tryToString$k(v)+" is not iterable");if(isArrayIteratorMethod$b(ye)){for(me=0,Ee=lengthOfArrayLike$k(v);Ee>me;me++)if(cr=Or(v[me]),cr&&isPrototypeOf$1$e(ResultPrototype$6,cr))return cr;return new Result$6(!1)}pe=getIterator$b(v,ye)}for(Br=pe.next;!($r=call$4$g(Br,pe)).done;){try{cr=Or($r.value)}catch(ur){iteratorClose$7(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$1$e(ResultPrototype$6,cr))return cr}return new Result$6(!1)},wellKnownSymbol$u=wellKnownSymbol$e$9,ITERATOR$f=wellKnownSymbol$u("iterator"),SAFE_CLOSING$a=!1;try{called$a=0,iteratorWithReturn$a={next:function(){return{done:!!called$a++}},return:function(){SAFE_CLOSING$a=!0}},iteratorWithReturn$a[ITERATOR$f]=function(){return this},Array.from(iteratorWithReturn$a,function(){throw 2})}catch(v){}var called$a,iteratorWithReturn$a,checkCorrectnessOfIteration$1$a=function(v,k){if(!k&&!SAFE_CLOSING$a)return!1;var ie=!1;try{var ae={};ae[ITERATOR$f]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1$6=promiseNativeConstructor$6,checkCorrectnessOfIteration$b=checkCorrectnessOfIteration$1$a,FORCED_PROMISE_CONSTRUCTOR$3$6=promiseConstructorDetection$6.CONSTRUCTOR,promiseStaticsIncorrectIteration$6=FORCED_PROMISE_CONSTRUCTOR$3$6||!checkCorrectnessOfIteration$b(function(v){NativePromiseConstructor$1$6.all(v).then(void 0,function(){})}),$$4$7=_export$e,call$3$g=functionCall$g,aCallable$1$g=aCallable$7$6,newPromiseCapabilityModule$2$6=newPromiseCapability$2$6,perform$1$6=perform$3$6,iterate$1$6=iterate$2$6,PROMISE_STATICS_INCORRECT_ITERATION$1$6=promiseStaticsIncorrectIteration$6;$$4$7({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$6},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$6.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$6(function(){var ve=aCallable$1$g(ie.resolve),pe=[],ye=0,me=1;iterate$1$6(k,function(Ee){var cr=ye++,Br=!1;me++,call$3$g(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$3$a=_export$e,FORCED_PROMISE_CONSTRUCTOR$2$6=promiseConstructorDetection$6.CONSTRUCTOR,NativePromiseConstructor$9=promiseNativeConstructor$6,getBuiltIn$1$g=getBuiltIn$8$6,isCallable$y=isCallable$k$6,defineBuiltIn$1$g=defineBuiltIn$6$9,NativePromisePrototype$7=NativePromiseConstructor$9&&NativePromiseConstructor$9.prototype;$$3$a({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$6,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$y(NativePromiseConstructor$9)&&(method$6=getBuiltIn$1$g("Promise").prototype.catch,NativePromisePrototype$7.catch!==method$6&&defineBuiltIn$1$g(NativePromisePrototype$7,"catch",method$6,{unsafe:!0}));var method$6,$$2$a=_export$e,call$2$g=functionCall$g,aCallable$n=aCallable$7$6,newPromiseCapabilityModule$1$6=newPromiseCapability$2$6,perform$9=perform$3$6,iterate$8=iterate$2$6,PROMISE_STATICS_INCORRECT_ITERATION$7=promiseStaticsIncorrectIteration$6;$$2$a({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$7},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$6.f(ie),ce=ae.reject,fe=perform$9(function(){var le=aCallable$n(ie.resolve);iterate$8(k,function(ve){call$2$g(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$1$a=_export$e,call$1$g=functionCall$g,newPromiseCapabilityModule$9=newPromiseCapability$2$6,FORCED_PROMISE_CONSTRUCTOR$1$6=promiseConstructorDetection$6.CONSTRUCTOR;$$1$a({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$6},{reject:function v(k){var ie=newPromiseCapabilityModule$9.f(this);return call$1$g(ie.reject,void 0,k),ie.promise}});var anObject$2$g=anObject$c$7,isObject$r=isObject$7$a,newPromiseCapability$8=newPromiseCapability$2$6,promiseResolve$1$6=function(v,k){if(anObject$2$g(v),isObject$r(k)&&k.constructor===v)return k;var ie=newPromiseCapability$8.f(v),ae=ie.resolve;return ae(k),ie.promise},$$l=_export$e,getBuiltIn$o=getBuiltIn$8$6,FORCED_PROMISE_CONSTRUCTOR$b=promiseConstructorDetection$6.CONSTRUCTOR,promiseResolve$7=promiseResolve$1$6;getBuiltIn$o("Promise");$$l({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$b},{resolve:function v(k){return promiseResolve$7(this,k)}});var classof$o=classof$3$a,$String$j=String,toString2$d=function(v){if(classof$o(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$j(v)},anObject$1$g=anObject$c$7,regexpFlags$d=function(){var v=anObject$1$g(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$u=functionCall$g,hasOwn2$g=hasOwnProperty_1$g,isPrototypeOf$k=objectIsPrototypeOf$g,regExpFlags$d=regexpFlags$d,RegExpPrototype$1$d=RegExp.prototype,regexpGetFlags$d=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$d)&&!hasOwn2$g(v,"flags")&&isPrototypeOf$k(RegExpPrototype$1$d,v)?call$u(regExpFlags$d,v):k},PROPER_FUNCTION_NAME$f=functionName$g.PROPER,defineBuiltIn$m=defineBuiltIn$6$9,anObject$q=anObject$c$7,$toString$d=toString2$d,fails$C=fails$d$9,getRegExpFlags$d=regexpGetFlags$d,TO_STRING$d="toString",RegExpPrototype$e=RegExp.prototype,n$ToString$d=RegExpPrototype$e[TO_STRING$d],NOT_GENERIC$d=fails$C(function(){return n$ToString$d.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$d=PROPER_FUNCTION_NAME$f&&n$ToString$d.name!=TO_STRING$d;(NOT_GENERIC$d||INCORRECT_NAME$d)&&defineBuiltIn$m(RegExp.prototype,TO_STRING$d,function(){var k=anObject$q(this),ie=$toString$d(k.source),ae=$toString$d(getRegExpFlags$d(k));return"/"+ie+"/"+ae},{unsafe:!0});function __awaiter$j(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var signTransactions=(v,k,ie)=>__awaiter$j(void 0,void 0,void 0,function*(){const ae=new nearAPI$8.providers.JsonRpcProvider({url:ie.nodeUrl}),ce=[];for(let fe=0;fecreateAction(cr)),me=nearAPI$8.transactions.createTransaction(v[fe].signerId,nearAPI$8.utils.PublicKey.from(le.toString()),v[fe].receiverId,pe.nonce+fe+1,ye,nearAPI$8.utils.serialize.base_decode(ve.header.hash)),Ee=yield nearAPI$8.transactions.signTransaction(me,k,v[fe].signerId,ie.networkId);ce.push(Ee[1])}return ce}),nearAPI$7=__toESM(require_browser_index2$1()),commonjsGlobal$g=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$f=function(v){return v&&v.Math==Math&&v},global$j$5=check$f(typeof globalThis=="object"&&globalThis)||check$f(typeof window=="object"&&window)||check$f(typeof self=="object"&&self)||check$f(typeof commonjsGlobal$g=="object"&&commonjsGlobal$g)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$d={},fails$e$8=function(v){try{return!!v()}catch{return!0}},fails$d$8=fails$e$8,descriptors$f=!fails$d$8(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$c$8=fails$e$8,functionBindNative$f=!fails$c$8(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$9=functionBindNative$f,call$f$6=Function.prototype.call,functionCall$f=NATIVE_BIND$3$9?call$f$6.bind(call$f$6):function(){return call$f$6.apply(call$f$6,arguments)},objectPropertyIsEnumerable$d={},$propertyIsEnumerable$d={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$5=Object.getOwnPropertyDescriptor,NASHORN_BUG$d=getOwnPropertyDescriptor$2$5&&!$propertyIsEnumerable$d.call({1:2},1);objectPropertyIsEnumerable$d.f=NASHORN_BUG$d?function v(k){var ie=getOwnPropertyDescriptor$2$5(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$d;var createPropertyDescriptor$3$9=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2$9=functionBindNative$f,FunctionPrototype$2$9=Function.prototype,bind$5$5=FunctionPrototype$2$9.bind,call$e$6=FunctionPrototype$2$9.call,uncurryThis$e$8=NATIVE_BIND$2$9&&bind$5$5.bind(call$e$6,call$e$6),functionUncurryThis$f=NATIVE_BIND$2$9?function(v){return v&&uncurryThis$e$8(v)}:function(v){return v&&function(){return call$e$6.apply(v,arguments)}},uncurryThis$d$9=functionUncurryThis$f,toString$2$c=uncurryThis$d$9({}.toString),stringSlice$f=uncurryThis$d$9("".slice),classofRaw$1$d=function(v){return stringSlice$f(toString$2$c(v),8,-1)},uncurryThis$c$9=functionUncurryThis$f,fails$b$9=fails$e$8,classof$5$8=classofRaw$1$d,$Object$4$9=Object,split$d=uncurryThis$c$9("".split),indexedObject$d=fails$b$9(function(){return!$Object$4$9("z").propertyIsEnumerable(0)})?function(v){return classof$5$8(v)=="String"?split$d(v,""):$Object$4$9(v)}:$Object$4$9,$TypeError$b$6=TypeError,requireObjectCoercible$2$d=function(v){if(v==null)throw $TypeError$b$6("Can't call method on "+v);return v},IndexedObject$1$b=indexedObject$d,requireObjectCoercible$1$f=requireObjectCoercible$2$d,toIndexedObject$5$9=function(v){return IndexedObject$1$b(requireObjectCoercible$1$f(v))},isCallable$k$5=function(v){return typeof v=="function"},isCallable$j$6=isCallable$k$5,isObject$7$9=function(v){return typeof v=="object"?v!==null:isCallable$j$6(v)},global$i$6=global$j$5,isCallable$i$8=isCallable$k$5,aFunction$f=function(v){return isCallable$i$8(v)?v:void 0},getBuiltIn$8$5=function(v,k){return arguments.length<2?aFunction$f(global$i$6[v]):global$i$6[v]&&global$i$6[v][k]},uncurryThis$b$9=functionUncurryThis$f,objectIsPrototypeOf$f=uncurryThis$b$9({}.isPrototypeOf),getBuiltIn$7$5=getBuiltIn$8$5,engineUserAgent$f=getBuiltIn$7$5("navigator","userAgent")||"",global$h$9=global$j$5,userAgent$3$5=engineUserAgent$f,process$3$5=global$h$9.process,Deno$1$6=global$h$9.Deno,versions$f=process$3$5&&process$3$5.versions||Deno$1$6&&Deno$1$6.version,v8$f=versions$f&&versions$f.v8,match$f,version$f;v8$f&&(match$f=v8$f.split("."),version$f=match$f[0]>0&&match$f[0]<4?1:+(match$f[0]+match$f[1]));!version$f&&userAgent$3$5&&(match$f=userAgent$3$5.match(/Edge\/(\d+)/),(!match$f||match$f[1]>=74)&&(match$f=userAgent$3$5.match(/Chrome\/(\d+)/),match$f&&(version$f=+match$f[1])));var engineV8Version$f=version$f,V8_VERSION$1$5=engineV8Version$f,fails$a$b=fails$e$8,nativeSymbol$f=!!Object.getOwnPropertySymbols&&!fails$a$b(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$5&&V8_VERSION$1$5<41}),NATIVE_SYMBOL$1$f=nativeSymbol$f,useSymbolAsUid$f=NATIVE_SYMBOL$1$f&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$6$9=getBuiltIn$8$5,isCallable$h$9=isCallable$k$5,isPrototypeOf$3$8=objectIsPrototypeOf$f,USE_SYMBOL_AS_UID$1$f=useSymbolAsUid$f,$Object$3$b=Object,isSymbol$2$f=USE_SYMBOL_AS_UID$1$f?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$9("Symbol");return isCallable$h$9(k)&&isPrototypeOf$3$8(k.prototype,$Object$3$b(v))},$String$3$9=String,tryToString$4$9=function(v){try{return $String$3$9(v)}catch{return"Object"}},isCallable$g$9=isCallable$k$5,tryToString$3$9=tryToString$4$9,$TypeError$a$9=TypeError,aCallable$7$5=function(v){if(isCallable$g$9(v))return v;throw $TypeError$a$9(tryToString$3$9(v)+" is not a function")},aCallable$6$5=aCallable$7$5,getMethod$3$6=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$6$5(ie)},call$d$8=functionCall$f,isCallable$f$a=isCallable$k$5,isObject$6$9=isObject$7$9,$TypeError$9$9=TypeError,ordinaryToPrimitive$1$f=function(v,k){var ie,ae;if(k==="string"&&isCallable$f$a(ie=v.toString)&&!isObject$6$9(ae=call$d$8(ie,v))||isCallable$f$a(ie=v.valueOf)&&!isObject$6$9(ae=call$d$8(ie,v))||k!=="string"&&isCallable$f$a(ie=v.toString)&&!isObject$6$9(ae=call$d$8(ie,v)))return ae;throw $TypeError$9$9("Can't convert object to primitive value")},shared$3$f={exports:{}},global$g$9=global$j$5,defineProperty$5$8=Object.defineProperty,defineGlobalProperty$3$d=function(v,k){try{defineProperty$5$8(global$g$9,v,{value:k,configurable:!0,writable:!0})}catch{global$g$9[v]=k}return k},global$f$9=global$j$5,defineGlobalProperty$2$f=defineGlobalProperty$3$d,SHARED$f="__core-js_shared__",store$3$f=global$f$9[SHARED$f]||defineGlobalProperty$2$f(SHARED$f,{}),sharedStore$f=store$3$f,store$2$f=sharedStore$f;(shared$3$f.exports=function(v,k){return store$2$f[v]||(store$2$f[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$h=requireObjectCoercible$2$d,$Object$2$f=Object,toObject$3$8=function(v){return $Object$2$f(requireObjectCoercible$h(v))},uncurryThis$a$d=functionUncurryThis$f,toObject$2$c=toObject$3$8,hasOwnProperty$f=uncurryThis$a$d({}.hasOwnProperty),hasOwnProperty_1$f=Object.hasOwn||function v(k,ie){return hasOwnProperty$f(toObject$2$c(k),ie)},uncurryThis$9$d=functionUncurryThis$f,id$h=0,postfix$f=Math.random(),toString$1$f=uncurryThis$9$d(1 .toString),uid$2$f=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$1$f(++id$h+postfix$f,36)},global$e$9=global$j$5,shared$2$f=shared$3$f.exports,hasOwn$a$8=hasOwnProperty_1$f,uid$1$f=uid$2$f,NATIVE_SYMBOL$g=nativeSymbol$f,USE_SYMBOL_AS_UID$g=useSymbolAsUid$f,WellKnownSymbolsStore$f=shared$2$f("wks"),Symbol$1$f=global$e$9.Symbol,symbolFor$f=Symbol$1$f&&Symbol$1$f.for,createWellKnownSymbol$f=USE_SYMBOL_AS_UID$g?Symbol$1$f:Symbol$1$f&&Symbol$1$f.withoutSetter||uid$1$f,wellKnownSymbol$e$8=function(v){if(!hasOwn$a$8(WellKnownSymbolsStore$f,v)||!(NATIVE_SYMBOL$g||typeof WellKnownSymbolsStore$f[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$g&&hasOwn$a$8(Symbol$1$f,v)?WellKnownSymbolsStore$f[v]=Symbol$1$f[v]:USE_SYMBOL_AS_UID$g&&symbolFor$f?WellKnownSymbolsStore$f[v]=symbolFor$f(k):WellKnownSymbolsStore$f[v]=createWellKnownSymbol$f(k)}return WellKnownSymbolsStore$f[v]},call$c$9=functionCall$f,isObject$5$f=isObject$7$9,isSymbol$1$f=isSymbol$2$f,getMethod$2$9=getMethod$3$6,ordinaryToPrimitive$g=ordinaryToPrimitive$1$f,wellKnownSymbol$d$8=wellKnownSymbol$e$8,$TypeError$8$9=TypeError,TO_PRIMITIVE$f=wellKnownSymbol$d$8("toPrimitive"),toPrimitive$1$f=function(v,k){if(!isObject$5$f(v)||isSymbol$1$f(v))return v;var ie=getMethod$2$9(v,TO_PRIMITIVE$f),ae;if(ie){if(k===void 0&&(k="default"),ae=call$c$9(ie,v,k),!isObject$5$f(ae)||isSymbol$1$f(ae))return ae;throw $TypeError$8$9("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$g(v,k)},toPrimitive$h=toPrimitive$1$f,isSymbol$i=isSymbol$2$f,toPropertyKey$2$d=function(v){var k=toPrimitive$h(v,"string");return isSymbol$i(k)?k:k+""},global$d$9=global$j$5,isObject$4$f=isObject$7$9,document$3$5=global$d$9.document,EXISTS$1$f=isObject$4$f(document$3$5)&&isObject$4$f(document$3$5.createElement),documentCreateElement$2$7=function(v){return EXISTS$1$f?document$3$5.createElement(v):{}},DESCRIPTORS$a$8=descriptors$f,fails$9$d=fails$e$8,createElement$1$5=documentCreateElement$2$7,ie8DomDefine$f=!DESCRIPTORS$a$8&&!fails$9$d(function(){return Object.defineProperty(createElement$1$5("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$9$8=descriptors$f,call$b$9=functionCall$f,propertyIsEnumerableModule$1$b=objectPropertyIsEnumerable$d,createPropertyDescriptor$2$d=createPropertyDescriptor$3$9,toIndexedObject$4$9=toIndexedObject$5$9,toPropertyKey$1$f=toPropertyKey$2$d,hasOwn$9$9=hasOwnProperty_1$f,IE8_DOM_DEFINE$1$d=ie8DomDefine$f,$getOwnPropertyDescriptor$1$d=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$d.f=DESCRIPTORS$9$8?$getOwnPropertyDescriptor$1$d:function v(k,ie){if(k=toIndexedObject$4$9(k),ie=toPropertyKey$1$f(ie),IE8_DOM_DEFINE$1$d)try{return $getOwnPropertyDescriptor$1$d(k,ie)}catch{}if(hasOwn$9$9(k,ie))return createPropertyDescriptor$2$d(!call$b$9(propertyIsEnumerableModule$1$b.f,k,ie),k[ie])};var objectDefineProperty$f={},DESCRIPTORS$8$9=descriptors$f,fails$8$d=fails$e$8,v8PrototypeDefineBug$f=DESCRIPTORS$8$9&&fails$8$d(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$3$f=isObject$7$9,$String$2$d=String,$TypeError$7$9=TypeError,anObject$c$6=function(v){if(isObject$3$f(v))return v;throw $TypeError$7$9($String$2$d(v)+" is not an object")},DESCRIPTORS$7$d=descriptors$f,IE8_DOM_DEFINE$g=ie8DomDefine$f,V8_PROTOTYPE_DEFINE_BUG$1$9=v8PrototypeDefineBug$f,anObject$b$6=anObject$c$6,toPropertyKey$j=toPropertyKey$2$d,$TypeError$6$a=TypeError,$defineProperty$f=Object.defineProperty,$getOwnPropertyDescriptor$g=Object.getOwnPropertyDescriptor,ENUMERABLE$f="enumerable",CONFIGURABLE$1$f="configurable",WRITABLE$f="writable";objectDefineProperty$f.f=DESCRIPTORS$7$d?V8_PROTOTYPE_DEFINE_BUG$1$9?function v(k,ie,ae){if(anObject$b$6(k),ie=toPropertyKey$j(ie),anObject$b$6(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$f in ae&&!ae[WRITABLE$f]){var ce=$getOwnPropertyDescriptor$g(k,ie);ce&&ce[WRITABLE$f]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$f in ae?ae[CONFIGURABLE$1$f]:ce[CONFIGURABLE$1$f],enumerable:ENUMERABLE$f in ae?ae[ENUMERABLE$f]:ce[ENUMERABLE$f],writable:!1})}return $defineProperty$f(k,ie,ae)}:$defineProperty$f:function v(k,ie,ae){if(anObject$b$6(k),ie=toPropertyKey$j(ie),anObject$b$6(ae),IE8_DOM_DEFINE$g)try{return $defineProperty$f(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$6$a("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$6$d=descriptors$f,definePropertyModule$4$8=objectDefineProperty$f,createPropertyDescriptor$1$f=createPropertyDescriptor$3$9,createNonEnumerableProperty$4$9=DESCRIPTORS$6$d?function(v,k,ie){return definePropertyModule$4$8.f(v,k,createPropertyDescriptor$1$f(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$f={exports:{}},DESCRIPTORS$5$f=descriptors$f,hasOwn$8$a=hasOwnProperty_1$f,FunctionPrototype$1$f=Function.prototype,getDescriptor$f=DESCRIPTORS$5$f&&Object.getOwnPropertyDescriptor,EXISTS$g=hasOwn$8$a(FunctionPrototype$1$f,"name"),PROPER$f=EXISTS$g&&function v(){}.name==="something",CONFIGURABLE$g=EXISTS$g&&(!DESCRIPTORS$5$f||DESCRIPTORS$5$f&&getDescriptor$f(FunctionPrototype$1$f,"name").configurable),functionName$f={EXISTS:EXISTS$g,PROPER:PROPER$f,CONFIGURABLE:CONFIGURABLE$g},uncurryThis$8$d=functionUncurryThis$f,isCallable$e$a=isCallable$k$5,store$1$f=sharedStore$f,functionToString$f=uncurryThis$8$d(Function.toString);isCallable$e$a(store$1$f.inspectSource)||(store$1$f.inspectSource=function(v){return functionToString$f(v)});var inspectSource$4$5=store$1$f.inspectSource,global$c$9=global$j$5,isCallable$d$a=isCallable$k$5,inspectSource$3$9=inspectSource$4$5,WeakMap$1$f=global$c$9.WeakMap,nativeWeakMap$f=isCallable$d$a(WeakMap$1$f)&&/native code/.test(inspectSource$3$9(WeakMap$1$f)),shared$1$f=shared$3$f.exports,uid$i=uid$2$f,keys$b=shared$1$f("keys"),sharedKey$3$9=function(v){return keys$b[v]||(keys$b[v]=uid$i(v))},hiddenKeys$4$9={},NATIVE_WEAK_MAP$f=nativeWeakMap$f,global$b$a=global$j$5,uncurryThis$7$d=functionUncurryThis$f,isObject$2$f=isObject$7$9,createNonEnumerableProperty$3$9=createNonEnumerableProperty$4$9,hasOwn$7$b=hasOwnProperty_1$f,shared$i=sharedStore$f,sharedKey$2$9=sharedKey$3$9,hiddenKeys$3$d=hiddenKeys$4$9,OBJECT_ALREADY_INITIALIZED$f="Object already initialized",TypeError$2$9=global$b$a.TypeError,WeakMap$h=global$b$a.WeakMap,set$1$9,get$g,has$f,enforce$f=function(v){return has$f(v)?get$g(v):set$1$9(v,{})},getterFor$f=function(v){return function(k){var ie;if(!isObject$2$f(k)||(ie=get$g(k)).type!==v)throw TypeError$2$9("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$f||shared$i.state?(store$i=shared$i.state||(shared$i.state=new WeakMap$h),wmget$f=uncurryThis$7$d(store$i.get),wmhas$f=uncurryThis$7$d(store$i.has),wmset$f=uncurryThis$7$d(store$i.set),set$1$9=function(v,k){if(wmhas$f(store$i,v))throw new TypeError$2$9(OBJECT_ALREADY_INITIALIZED$f);return k.facade=v,wmset$f(store$i,v,k),k},get$g=function(v){return wmget$f(store$i,v)||{}},has$f=function(v){return wmhas$f(store$i,v)}):(STATE$f=sharedKey$2$9("state"),hiddenKeys$3$d[STATE$f]=!0,set$1$9=function(v,k){if(hasOwn$7$b(v,STATE$f))throw new TypeError$2$9(OBJECT_ALREADY_INITIALIZED$f);return k.facade=v,createNonEnumerableProperty$3$9(v,STATE$f,k),k},get$g=function(v){return hasOwn$7$b(v,STATE$f)?v[STATE$f]:{}},has$f=function(v){return hasOwn$7$b(v,STATE$f)});var store$i,wmget$f,wmhas$f,wmset$f,STATE$f,internalState$f={set:set$1$9,get:get$g,has:has$f,enforce:enforce$f,getterFor:getterFor$f},fails$7$f=fails$e$8,isCallable$c$a=isCallable$k$5,hasOwn$6$d=hasOwnProperty_1$f,DESCRIPTORS$4$f=descriptors$f,CONFIGURABLE_FUNCTION_NAME$1$9=functionName$f.CONFIGURABLE,inspectSource$2$f=inspectSource$4$5,InternalStateModule$2$8=internalState$f,enforceInternalState$h=InternalStateModule$2$8.enforce,getInternalState$1$9=InternalStateModule$2$8.get,defineProperty$4$9=Object.defineProperty,CONFIGURABLE_LENGTH$f=DESCRIPTORS$4$f&&!fails$7$f(function(){return defineProperty$4$9(function(){},"length",{value:8}).length!==8}),TEMPLATE$f=String(String).split("String"),makeBuiltIn$1$f=makeBuiltIn$2$f.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$6$d(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$9&&v.name!==k)&&(DESCRIPTORS$4$f?defineProperty$4$9(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$f&&ie&&hasOwn$6$d(ie,"arity")&&v.length!==ie.arity&&defineProperty$4$9(v,"length",{value:ie.arity});try{ie&&hasOwn$6$d(ie,"constructor")&&ie.constructor?DESCRIPTORS$4$f&&defineProperty$4$9(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$h(v);return hasOwn$6$d(ae,"source")||(ae.source=TEMPLATE$f.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$f(function v(){return isCallable$c$a(this)&&getInternalState$1$9(this).source||inspectSource$2$f(this)},"toString");var isCallable$b$b=isCallable$k$5,definePropertyModule$3$a=objectDefineProperty$f,makeBuiltIn$h=makeBuiltIn$2$f.exports,defineGlobalProperty$1$f=defineGlobalProperty$3$d,defineBuiltIn$6$8=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$b$b(ie)&&makeBuiltIn$h(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$f(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$3$a.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$d={},ceil$d=Math.ceil,floor$g=Math.floor,mathTrunc$d=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$g:ceil$d)(ie)},trunc2$d=mathTrunc$d,toIntegerOrInfinity$2$d=function(v){var k=+v;return k!==k||k===0?0:trunc2$d(k)},toIntegerOrInfinity$1$d=toIntegerOrInfinity$2$d,max$e=Math.max,min$1$d=Math.min,toAbsoluteIndex$1$d=function(v,k){var ie=toIntegerOrInfinity$1$d(v);return ie<0?max$e(ie+k,0):min$1$d(ie,k)},toIntegerOrInfinity$i=toIntegerOrInfinity$2$d,min$e=Math.min,toLength$1$d=function(v){return v>0?min$e(toIntegerOrInfinity$i(v),9007199254740991):0},toLength$i=toLength$1$d,lengthOfArrayLike$2$9=function(v){return toLength$i(v.length)},toIndexedObject$3$d=toIndexedObject$5$9,toAbsoluteIndex$h=toAbsoluteIndex$1$d,lengthOfArrayLike$1$d=lengthOfArrayLike$2$9,createMethod$e=function(v){return function(k,ie,ae){var ce=toIndexedObject$3$d(k),fe=lengthOfArrayLike$1$d(ce),le=toAbsoluteIndex$h(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$d={includes:createMethod$e(!0),indexOf:createMethod$e(!1)},uncurryThis$6$f=functionUncurryThis$f,hasOwn$5$d=hasOwnProperty_1$f,toIndexedObject$2$d=toIndexedObject$5$9,indexOf$d=arrayIncludes$d.indexOf,hiddenKeys$2$d=hiddenKeys$4$9,push$e=uncurryThis$6$f([].push),objectKeysInternal$d=function(v,k){var ie=toIndexedObject$2$d(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$5$d(hiddenKeys$2$d,fe)&&hasOwn$5$d(ie,fe)&&push$e(ce,fe);for(;k.length>ae;)hasOwn$5$d(ie,fe=k[ae++])&&(~indexOf$d(ce,fe)||push$e(ce,fe));return ce},enumBugKeys$3$9=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$c=objectKeysInternal$d,enumBugKeys$2$c=enumBugKeys$3$9,hiddenKeys$1$d=enumBugKeys$2$c.concat("length","prototype");objectGetOwnPropertyNames$d.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$c(k,hiddenKeys$1$d)};var objectGetOwnPropertySymbols$d={};objectGetOwnPropertySymbols$d.f=Object.getOwnPropertySymbols;var getBuiltIn$5$9=getBuiltIn$8$5,uncurryThis$5$f=functionUncurryThis$f,getOwnPropertyNamesModule$d=objectGetOwnPropertyNames$d,getOwnPropertySymbolsModule$1$b=objectGetOwnPropertySymbols$d,anObject$a$8=anObject$c$6,concat$1$b=uncurryThis$5$f([].concat),ownKeys$1$d=getBuiltIn$5$9("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$d.f(anObject$a$8(k)),ae=getOwnPropertySymbolsModule$1$b.f;return ae?concat$1$b(ie,ae(k)):ie},hasOwn$4$f=hasOwnProperty_1$f,ownKeys2$d=ownKeys$1$d,getOwnPropertyDescriptorModule$e=objectGetOwnPropertyDescriptor$d,definePropertyModule$2$d=objectDefineProperty$f,copyConstructorProperties$1$d=function(v,k,ie){for(var ae=ownKeys2$d(k),ce=definePropertyModule$2$d.f,fe=getOwnPropertyDescriptorModule$e.f,le=0;lefe;)for(var pe=IndexedObject$f(arguments[fe++]),ye=le?concat$f(objectKeys$1$c(pe),le(pe)):objectKeys$1$c(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$3$f||call$a$9(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$b,$$7$5=_export$d,assign2$b=objectAssign$b;$$7$5({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$b},{assign:assign2$b});var wellKnownSymbol$c$8=wellKnownSymbol$e$8,TO_STRING_TAG$3$9=wellKnownSymbol$c$8("toStringTag"),test$d={};test$d[TO_STRING_TAG$3$9]="z";var toStringTagSupport$d=String(test$d)==="[object z]",TO_STRING_TAG_SUPPORT$d=toStringTagSupport$d,isCallable$9$f=isCallable$k$5,classofRaw$g=classofRaw$1$d,wellKnownSymbol$b$8=wellKnownSymbol$e$8,TO_STRING_TAG$2$a=wellKnownSymbol$b$8("toStringTag"),$Object$1$f=Object,CORRECT_ARGUMENTS$d=classofRaw$g(function(){return arguments}())=="Arguments",tryGet$d=function(v,k){try{return v[k]}catch{}},classof$4$9=TO_STRING_TAG_SUPPORT$d?classofRaw$g:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$d(k=$Object$1$f(v),TO_STRING_TAG$2$a))=="string"?ie:CORRECT_ARGUMENTS$d?classofRaw$g(k):(ae=classofRaw$g(k))=="Object"&&isCallable$9$f(k.callee)?"Arguments":ae},classof$3$9=classof$4$9,$String$1$f=String,toString2$c=function(v){if(classof$3$9(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$1$f(v)},anObject$9$8=anObject$c$6,regexpFlags$c=function(){var v=anObject$9$8(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$9$9=functionCall$f,hasOwn$3$f=hasOwnProperty_1$f,isPrototypeOf$2$9=objectIsPrototypeOf$f,regExpFlags$c=regexpFlags$c,RegExpPrototype$1$c=RegExp.prototype,regexpGetFlags$c=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$c)&&!hasOwn$3$f(v,"flags")&&isPrototypeOf$2$9(RegExpPrototype$1$c,v)?call$9$9(regExpFlags$c,v):k},PROPER_FUNCTION_NAME$1$9=functionName$f.PROPER,defineBuiltIn$4$9=defineBuiltIn$6$8,anObject$8$9=anObject$c$6,$toString$c=toString2$c,fails$4$f=fails$e$8,getRegExpFlags$c=regexpGetFlags$c,TO_STRING$c="toString",RegExpPrototype$d=RegExp.prototype,n$ToString$c=RegExpPrototype$d[TO_STRING$c],NOT_GENERIC$c=fails$4$f(function(){return n$ToString$c.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$c=PROPER_FUNCTION_NAME$1$9&&n$ToString$c.name!=TO_STRING$c;(NOT_GENERIC$c||INCORRECT_NAME$c)&&defineBuiltIn$4$9(RegExp.prototype,TO_STRING$c,function(){var k=anObject$8$9(this),ie=$toString$c(k.source),ae=$toString$c(getRegExpFlags$c(k));return"/"+ie+"/"+ae},{unsafe:!0});var objectDefineProperties$9={},DESCRIPTORS$2$f=descriptors$f,V8_PROTOTYPE_DEFINE_BUG$g=v8PrototypeDefineBug$f,definePropertyModule$1$f=objectDefineProperty$f,anObject$7$a=anObject$c$6,toIndexedObject$1$d=toIndexedObject$5$9,objectKeys$e=objectKeys$2$8;objectDefineProperties$9.f=DESCRIPTORS$2$f&&!V8_PROTOTYPE_DEFINE_BUG$g?Object.defineProperties:function v(k,ie){anObject$7$a(k);for(var ae=toIndexedObject$1$d(ie),ce=objectKeys$e(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$1$f.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$4$a=getBuiltIn$8$5,html$2$5=getBuiltIn$4$a("document","documentElement"),anObject$6$a=anObject$c$6,definePropertiesModule$9=objectDefineProperties$9,enumBugKeys$g=enumBugKeys$3$9,hiddenKeys$h=hiddenKeys$4$9,html$1$a=html$2$5,documentCreateElement$1$9=documentCreateElement$2$7,sharedKey$1$f=sharedKey$3$9,GT$9=">",LT$9="<",PROTOTYPE$a="prototype",SCRIPT$9="script",IE_PROTO$1$9=sharedKey$1$f("IE_PROTO"),EmptyConstructor$9=function(){},scriptTag$9=function(v){return LT$9+SCRIPT$9+GT$9+v+LT$9+"/"+SCRIPT$9+GT$9},NullProtoObjectViaActiveX$9=function(v){v.write(scriptTag$9("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$9=function(){var v=documentCreateElement$1$9("iframe"),k="java"+SCRIPT$9+":",ie;return v.style.display="none",html$1$a.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$9("document.F=Object")),ie.close(),ie.F},activeXDocument$9,NullProtoObject$9=function(){try{activeXDocument$9=new ActiveXObject("htmlfile")}catch{}NullProtoObject$9=typeof document<"u"?document.domain&&activeXDocument$9?NullProtoObjectViaActiveX$9(activeXDocument$9):NullProtoObjectViaIFrame$9():NullProtoObjectViaActiveX$9(activeXDocument$9);for(var v=enumBugKeys$g.length;v--;)delete NullProtoObject$9[PROTOTYPE$a][enumBugKeys$g[v]];return NullProtoObject$9()};hiddenKeys$h[IE_PROTO$1$9]=!0;var objectCreate$9=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$9[PROTOTYPE$a]=anObject$6$a(k),ae=new EmptyConstructor$9,EmptyConstructor$9[PROTOTYPE$a]=null,ae[IE_PROTO$1$9]=k):ae=NullProtoObject$9(),ie===void 0?ae:definePropertiesModule$9.f(ae,ie)},wellKnownSymbol$a$9=wellKnownSymbol$e$8,create$1$9=objectCreate$9,defineProperty$2$d=objectDefineProperty$f.f,UNSCOPABLES$9=wellKnownSymbol$a$9("unscopables"),ArrayPrototype$1$8=Array.prototype;ArrayPrototype$1$8[UNSCOPABLES$9]==null&&defineProperty$2$d(ArrayPrototype$1$8,UNSCOPABLES$9,{configurable:!0,value:create$1$9(null)});var addToUnscopables$1$9=function(v){ArrayPrototype$1$8[UNSCOPABLES$9][v]=!0},iterators$a={},fails$3$f=fails$e$8,correctPrototypeGetter$9=!fails$3$f(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype}),hasOwn$2$f=hasOwnProperty_1$f,isCallable$8$f=isCallable$k$5,toObject$l=toObject$3$8,sharedKey$h=sharedKey$3$9,CORRECT_PROTOTYPE_GETTER$9=correctPrototypeGetter$9,IE_PROTO$a=sharedKey$h("IE_PROTO"),$Object$j=Object,ObjectPrototype$b=$Object$j.prototype,objectGetPrototypeOf$9=CORRECT_PROTOTYPE_GETTER$9?$Object$j.getPrototypeOf:function(v){var k=toObject$l(v);if(hasOwn$2$f(k,IE_PROTO$a))return k[IE_PROTO$a];var ie=k.constructor;return isCallable$8$f(ie)&&k instanceof ie?ie.prototype:k instanceof $Object$j?ObjectPrototype$b:null},fails$2$f=fails$e$8,isCallable$7$f=isCallable$k$5,getPrototypeOf$1$9=objectGetPrototypeOf$9,defineBuiltIn$3$a=defineBuiltIn$6$8,wellKnownSymbol$9$9=wellKnownSymbol$e$8,ITERATOR$5$6=wellKnownSymbol$9$9("iterator"),BUGGY_SAFARI_ITERATORS$1$9=!1,IteratorPrototype$2$9,PrototypeOfArrayIteratorPrototype$9,arrayIterator$9;[].keys&&(arrayIterator$9=[].keys(),"next"in arrayIterator$9?(PrototypeOfArrayIteratorPrototype$9=getPrototypeOf$1$9(getPrototypeOf$1$9(arrayIterator$9)),PrototypeOfArrayIteratorPrototype$9!==Object.prototype&&(IteratorPrototype$2$9=PrototypeOfArrayIteratorPrototype$9)):BUGGY_SAFARI_ITERATORS$1$9=!0);var NEW_ITERATOR_PROTOTYPE$9=IteratorPrototype$2$9==null||fails$2$f(function(){var v={};return IteratorPrototype$2$9[ITERATOR$5$6].call(v)!==v});NEW_ITERATOR_PROTOTYPE$9&&(IteratorPrototype$2$9={});isCallable$7$f(IteratorPrototype$2$9[ITERATOR$5$6])||defineBuiltIn$3$a(IteratorPrototype$2$9,ITERATOR$5$6,function(){return this});var iteratorsCore$9={IteratorPrototype:IteratorPrototype$2$9,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1$9},defineProperty$1$f=objectDefineProperty$f.f,hasOwn$1$f=hasOwnProperty_1$f,wellKnownSymbol$8$a=wellKnownSymbol$e$8,TO_STRING_TAG$1$d=wellKnownSymbol$8$a("toStringTag"),setToStringTag$3$8=function(v,k,ie){v&&!ie&&(v=v.prototype),v&&!hasOwn$1$f(v,TO_STRING_TAG$1$d)&&defineProperty$1$f(v,TO_STRING_TAG$1$d,{configurable:!0,value:k})},IteratorPrototype$1$9=iteratorsCore$9.IteratorPrototype,create2$8=objectCreate$9,createPropertyDescriptor$k=createPropertyDescriptor$3$9,setToStringTag$2$9=setToStringTag$3$8,Iterators$4$8=iterators$a,returnThis$1$9=function(){return this},createIteratorConstructor$1$9=function(v,k,ie,ae){var ce=k+" Iterator";return v.prototype=create2$8(IteratorPrototype$1$9,{next:createPropertyDescriptor$k(+!ae,ie)}),setToStringTag$2$9(v,ce,!1),Iterators$4$8[ce]=returnThis$1$9,v},isCallable$6$f=isCallable$k$5,$String$i=String,$TypeError$5$f=TypeError,aPossiblePrototype$1$a=function(v){if(typeof v=="object"||isCallable$6$f(v))return v;throw $TypeError$5$f("Can't set "+$String$i(v)+" as a prototype")},uncurryThis$3$f=functionUncurryThis$f,anObject$5$a=anObject$c$6,aPossiblePrototype$b=aPossiblePrototype$1$a,objectSetPrototypeOf$a=Object.setPrototypeOf||("__proto__"in{}?function(){var v=!1,k={},ie;try{ie=uncurryThis$3$f(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),ie(k,[]),v=k instanceof Array}catch{}return function(ce,fe){return anObject$5$a(ce),aPossiblePrototype$b(fe),v?ie(ce,fe):ce.__proto__=fe,ce}}():void 0),$$6$5=_export$d,call$8$9=functionCall$f,FunctionName$a=functionName$f,isCallable$5$f=isCallable$k$5,createIteratorConstructor$a=createIteratorConstructor$1$9,getPrototypeOf$c=objectGetPrototypeOf$9,setPrototypeOf$1$8=objectSetPrototypeOf$a,setToStringTag$1$a=setToStringTag$3$8,createNonEnumerableProperty$1$f=createNonEnumerableProperty$4$9,defineBuiltIn$2$b=defineBuiltIn$6$8,wellKnownSymbol$7$a=wellKnownSymbol$e$8,Iterators$3$8=iterators$a,IteratorsCore$9=iteratorsCore$9,PROPER_FUNCTION_NAME$e=FunctionName$a.PROPER,CONFIGURABLE_FUNCTION_NAME$h=FunctionName$a.CONFIGURABLE,IteratorPrototype$b=IteratorsCore$9.IteratorPrototype,BUGGY_SAFARI_ITERATORS$a=IteratorsCore$9.BUGGY_SAFARI_ITERATORS,ITERATOR$4$8=wellKnownSymbol$7$a("iterator"),KEYS$9="keys",VALUES$9="values",ENTRIES$9="entries",returnThis$a=function(){return this},defineIterator$1$9=function(v,k,ie,ae,ce,fe,le){createIteratorConstructor$a(ie,k,ae);var ve=function(ur){if(ur===ce&&cr)return cr;if(!BUGGY_SAFARI_ITERATORS$a&&ur in me)return me[ur];switch(ur){case KEYS$9:return function(){return new ie(this,ur)};case VALUES$9:return function(){return new ie(this,ur)};case ENTRIES$9:return function(){return new ie(this,ur)}}return function(){return new ie(this)}},pe=k+" Iterator",ye=!1,me=v.prototype,Ee=me[ITERATOR$4$8]||me["@@iterator"]||ce&&me[ce],cr=!BUGGY_SAFARI_ITERATORS$a&&Ee||ve(ce),Br=k=="Array"&&me.entries||Ee,$r,Pr,Or;if(Br&&($r=getPrototypeOf$c(Br.call(new v)),$r!==Object.prototype&&$r.next&&(getPrototypeOf$c($r)!==IteratorPrototype$b&&(setPrototypeOf$1$8?setPrototypeOf$1$8($r,IteratorPrototype$b):isCallable$5$f($r[ITERATOR$4$8])||defineBuiltIn$2$b($r,ITERATOR$4$8,returnThis$a)),setToStringTag$1$a($r,pe,!0))),PROPER_FUNCTION_NAME$e&&ce==VALUES$9&&Ee&&Ee.name!==VALUES$9&&(CONFIGURABLE_FUNCTION_NAME$h?createNonEnumerableProperty$1$f(me,"name",VALUES$9):(ye=!0,cr=function(){return call$8$9(Ee,this)})),ce)if(Pr={values:ve(VALUES$9),keys:fe?cr:ve(KEYS$9),entries:ve(ENTRIES$9)},le)for(Or in Pr)(BUGGY_SAFARI_ITERATORS$a||ye||!(Or in me))&&defineBuiltIn$2$b(me,Or,Pr[Or]);else $$6$5({target:k,proto:!0,forced:BUGGY_SAFARI_ITERATORS$a||ye},Pr);return me[ITERATOR$4$8]!==cr&&defineBuiltIn$2$b(me,ITERATOR$4$8,cr,{name:ce}),Iterators$3$8[k]=cr,Pr},toIndexedObject$j=toIndexedObject$5$9,addToUnscopables$a=addToUnscopables$1$9,Iterators$2$9=iterators$a,InternalStateModule$1$a=internalState$f,defineProperty3$c=objectDefineProperty$f.f,defineIterator$a=defineIterator$1$9,DESCRIPTORS$1$f=descriptors$f,ARRAY_ITERATOR$9="Array Iterator",setInternalState$1$8=InternalStateModule$1$a.set,getInternalState$j=InternalStateModule$1$a.getterFor(ARRAY_ITERATOR$9),es_array_iterator$6=defineIterator$a(Array,"Array",function(v,k){setInternalState$1$8(this,{type:ARRAY_ITERATOR$9,target:toIndexedObject$j(v),index:0,kind:k})},function(){var v=getInternalState$j(this),k=v.target,ie=v.kind,ae=v.index++;return!k||ae>=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$9=Iterators$2$9.Arguments=Iterators$2$9.Array;addToUnscopables$a("keys");addToUnscopables$a("values");addToUnscopables$a("entries");if(DESCRIPTORS$1$f&&values$9.name!=="values")try{defineProperty3$c(values$9,"name",{value:"values"})}catch(v){}var classof$2$b=classofRaw$1$d,global$9$f=global$j$5,engineIsNode$5=classof$2$b(global$9$f.process)=="process",getBuiltIn$3$d=getBuiltIn$8$5,definePropertyModule$l=objectDefineProperty$f,wellKnownSymbol$6$a=wellKnownSymbol$e$8,DESCRIPTORS$s=descriptors$f,SPECIES$2$9=wellKnownSymbol$6$a("species"),setSpecies$1$9=function(v){var k=getBuiltIn$3$d(v),ie=definePropertyModule$l.f;DESCRIPTORS$s&&k&&!k[SPECIES$2$9]&&ie(k,SPECIES$2$9,{configurable:!0,get:function(){return this}})},isPrototypeOf$1$d=objectIsPrototypeOf$f,$TypeError$4$f=TypeError,anInstance$1$9=function(v,k){if(isPrototypeOf$1$d(k,v))return v;throw $TypeError$4$f("Incorrect invocation")},uncurryThis$2$f=functionUncurryThis$f,fails$1$f=fails$e$8,isCallable$4$f=isCallable$k$5,classof$1$d=classof$4$9,getBuiltIn$2$f=getBuiltIn$8$5,inspectSource$1$f=inspectSource$4$5,noop$9=function(){},empty$8=[],construct$9=getBuiltIn$2$f("Reflect","construct"),constructorRegExp$9=/^\s*(?:class|function)\b/,exec$a=uncurryThis$2$f(constructorRegExp$9.exec),INCORRECT_TO_STRING$9=!constructorRegExp$9.exec(noop$9),isConstructorModern$9=function v(k){if(!isCallable$4$f(k))return!1;try{return construct$9(noop$9,empty$8,k),!0}catch{return!1}},isConstructorLegacy$9=function v(k){if(!isCallable$4$f(k))return!1;switch(classof$1$d(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$9||!!exec$a(constructorRegExp$9,inspectSource$1$f(k))}catch{return!0}};isConstructorLegacy$9.sham=!0;var isConstructor$1$9=!construct$9||fails$1$f(function(){var v;return isConstructorModern$9(isConstructorModern$9.call)||!isConstructorModern$9(Object)||!isConstructorModern$9(function(){v=!0})||v})?isConstructorLegacy$9:isConstructorModern$9,isConstructor3$9=isConstructor$1$9,tryToString$2$9=tryToString$4$9,$TypeError$3$f=TypeError,aConstructor$1$9=function(v){if(isConstructor3$9(v))return v;throw $TypeError$3$f(tryToString$2$9(v)+" is not a constructor")},anObject$4$b=anObject$c$6,aConstructor$b=aConstructor$1$9,wellKnownSymbol$5$a=wellKnownSymbol$e$8,SPECIES$1$9=wellKnownSymbol$5$a("species"),speciesConstructor$1$9=function(v,k){var ie=anObject$4$b(v).constructor,ae;return ie===void 0||(ae=anObject$4$b(ie)[SPECIES$1$9])==null?k:aConstructor$b(ae)},NATIVE_BIND$1$f=functionBindNative$f,FunctionPrototype$h=Function.prototype,apply$1$9=FunctionPrototype$h.apply,call$7$9=FunctionPrototype$h.call,functionApply$9=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$1$f?call$7$9.bind(apply$1$9):function(){return call$7$9.apply(apply$1$9,arguments)}),uncurryThis$1$f=functionUncurryThis$f,aCallable$5$5=aCallable$7$5,NATIVE_BIND$i=functionBindNative$f,bind$4$5=uncurryThis$1$f(uncurryThis$1$f.bind),functionBindContext$9=function(v,k){return aCallable$5$5(v),k===void 0?v:NATIVE_BIND$i?bind$4$5(v,k):function(){return v.apply(k,arguments)}},uncurryThis$z=functionUncurryThis$f,arraySlice$1$9=uncurryThis$z([].slice),$TypeError$2$f=TypeError,validateArgumentsLength$1$5=function(v,k){if(v=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3$5(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$b]=ae,SUBCLASSING$5=ie.then(function(){})instanceof ae,SUBCLASSING$5?!k&&IS_BROWSER$5&&!NATIVE_PROMISE_REJECTION_EVENT$1$5:!0}),promiseConstructorDetection$5={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$5,SUBCLASSING:SUBCLASSING$5},newPromiseCapability$2$5={},aCallable$4$9=aCallable$7$5,PromiseCapability$5=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$9(k),this.reject=aCallable$4$9(ie)};newPromiseCapability$2$5.f=function(v){return new PromiseCapability$5(v)};var $$5$5=_export$d,IS_NODE$7=engineIsNode$5,global$2$f=global$j$5,call$6$b=functionCall$f,defineBuiltIn$1$f=defineBuiltIn$6$8,setPrototypeOf$e=objectSetPrototypeOf$a,setToStringTag$d=setToStringTag$3$8,setSpecies$a=setSpecies$1$9,aCallable$3$9=aCallable$7$5,isCallable$1$f=isCallable$k$5,isObject$1$f=isObject$7$9,anInstance$b=anInstance$1$9,speciesConstructor$a=speciesConstructor$1$9,task$6=task$1$5.set,microtask$6=microtask$1$5,hostReportErrors$6=hostReportErrors$1$5,perform$2$5=perform$3$5,Queue$6=queue$6,InternalStateModule$j=internalState$f,NativePromiseConstructor$2$5=promiseNativeConstructor$5,PromiseConstructorDetection$5=promiseConstructorDetection$5,newPromiseCapabilityModule$3$5=newPromiseCapability$2$5,PROMISE$5="Promise",FORCED_PROMISE_CONSTRUCTOR$4$5=PromiseConstructorDetection$5.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$6=PromiseConstructorDetection$5.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$5=PromiseConstructorDetection$5.SUBCLASSING,getInternalPromiseState$5=InternalStateModule$j.getterFor(PROMISE$5),setInternalState$c=InternalStateModule$j.set,NativePromisePrototype$1$5=NativePromiseConstructor$2$5&&NativePromiseConstructor$2$5.prototype,PromiseConstructor$5=NativePromiseConstructor$2$5,PromisePrototype$5=NativePromisePrototype$1$5,TypeError$1$f=global$2$f.TypeError,document$1$a=global$2$f.document,process$g=global$2$f.process,newPromiseCapability$1$5=newPromiseCapabilityModule$3$5.f,newGenericPromiseCapability$5=newPromiseCapability$1$5,DISPATCH_EVENT$5=!!(document$1$a&&document$1$a.createEvent&&global$2$f.dispatchEvent),UNHANDLED_REJECTION$5="unhandledrejection",REJECTION_HANDLED$5="rejectionhandled",PENDING$5=0,FULFILLED$5=1,REJECTED$5=2,HANDLED$5=1,UNHANDLED$5=2,Internal$5,OwnPromiseCapability$5,PromiseWrapper$5,nativeThen$5,isThenable$5=function(v){var k;return isObject$1$f(v)&&isCallable$1$f(k=v.then)?k:!1},callReaction$5=function(v,k){var ie=k.value,ae=k.state==FULFILLED$5,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$5&&onHandleUnhandled$5(k),k.rejection=HANDLED$5),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$f("Promise-chain cycle")):(ye=isThenable$5(pe))?call$6$b(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$6=function(v,k){v.notified||(v.notified=!0,microtask$6(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$5(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$5(v)}))},dispatchEvent$5=function(v,k,ie){var ae,ce;DISPATCH_EVENT$5?(ae=document$1$a.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$2$f.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$6&&(ce=global$2$f["on"+v])?ce(ae):v===UNHANDLED_REJECTION$5&&hostReportErrors$6("Unhandled promise rejection",ie)},onUnhandled$5=function(v){call$6$b(task$6,global$2$f,function(){var k=v.facade,ie=v.value,ae=isUnhandled$5(v),ce;if(ae&&(ce=perform$2$5(function(){IS_NODE$7?process$g.emit("unhandledRejection",ie,k):dispatchEvent$5(UNHANDLED_REJECTION$5,k,ie)}),v.rejection=IS_NODE$7||isUnhandled$5(v)?UNHANDLED$5:HANDLED$5,ce.error))throw ce.value})},isUnhandled$5=function(v){return v.rejection!==HANDLED$5&&!v.parent},onHandleUnhandled$5=function(v){call$6$b(task$6,global$2$f,function(){var k=v.facade;IS_NODE$7?process$g.emit("rejectionHandled",k):dispatchEvent$5(REJECTION_HANDLED$5,k,v.value)})},bind$1$9=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$5=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$5,notify$6(v,!0))},internalResolve$5=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$f("Promise can't be resolved itself");var ae=isThenable$5(k);ae?microtask$6(function(){var ce={done:!1};try{call$6$b(ae,k,bind$1$9(internalResolve$5,ce,v),bind$1$9(internalReject$5,ce,v))}catch(fe){internalReject$5(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$5,notify$6(v,!1))}catch(ce){internalReject$5({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$5&&(PromiseConstructor$5=function(k){anInstance$b(this,PromisePrototype$5),aCallable$3$9(k),call$6$b(Internal$5,this);var ie=getInternalPromiseState$5(this);try{k(bind$1$9(internalResolve$5,ie),bind$1$9(internalReject$5,ie))}catch(ae){internalReject$5(ie,ae)}},PromisePrototype$5=PromiseConstructor$5.prototype,Internal$5=function(k){setInternalState$c(this,{type:PROMISE$5,done:!1,notified:!1,parent:!1,reactions:new Queue$6,rejection:!1,state:PENDING$5,value:void 0})},Internal$5.prototype=defineBuiltIn$1$f(PromisePrototype$5,"then",function(k,ie){var ae=getInternalPromiseState$5(this),ce=newPromiseCapability$1$5(speciesConstructor$a(this,PromiseConstructor$5));return ae.parent=!0,ce.ok=isCallable$1$f(k)?k:!0,ce.fail=isCallable$1$f(ie)&&ie,ce.domain=IS_NODE$7?process$g.domain:void 0,ae.state==PENDING$5?ae.reactions.add(ce):microtask$6(function(){callReaction$5(ce,ae)}),ce.promise}),OwnPromiseCapability$5=function(){var v=new Internal$5,k=getInternalPromiseState$5(v);this.promise=v,this.resolve=bind$1$9(internalResolve$5,k),this.reject=bind$1$9(internalReject$5,k)},newPromiseCapabilityModule$3$5.f=newPromiseCapability$1$5=function(v){return v===PromiseConstructor$5||v===PromiseWrapper$5?new OwnPromiseCapability$5(v):newGenericPromiseCapability$5(v)},isCallable$1$f(NativePromiseConstructor$2$5)&&NativePromisePrototype$1$5!==Object.prototype)){nativeThen$5=NativePromisePrototype$1$5.then,NATIVE_PROMISE_SUBCLASSING$5||defineBuiltIn$1$f(NativePromisePrototype$1$5,"then",function(k,ie){var ae=this;return new PromiseConstructor$5(function(ce,fe){call$6$b(nativeThen$5,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1$5.constructor}catch{}setPrototypeOf$e&&setPrototypeOf$e(NativePromisePrototype$1$5,PromisePrototype$5)}$$5$5({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$5},{Promise:PromiseConstructor$5});setToStringTag$d(PromiseConstructor$5,PROMISE$5,!1);setSpecies$a(PROMISE$5);var wellKnownSymbol$3$d=wellKnownSymbol$e$8,Iterators$1$a=iterators$a,ITERATOR$3$8=wellKnownSymbol$3$d("iterator"),ArrayPrototype$b=Array.prototype,isArrayIteratorMethod$1$9=function(v){return v!==void 0&&(Iterators$1$a.Array===v||ArrayPrototype$b[ITERATOR$3$8]===v)},classof$n=classof$4$9,getMethod$1$f=getMethod$3$6,Iterators$e=iterators$a,wellKnownSymbol$2$d=wellKnownSymbol$e$8,ITERATOR$2$a=wellKnownSymbol$2$d("iterator"),getIteratorMethod$2$9=function(v){if(v!=null)return getMethod$1$f(v,ITERATOR$2$a)||getMethod$1$f(v,"@@iterator")||Iterators$e[classof$n(v)]},call$5$d=functionCall$f,aCallable$2$9=aCallable$7$5,anObject$3$d=anObject$c$6,tryToString$1$f=tryToString$4$9,getIteratorMethod$1$9=getIteratorMethod$2$9,$TypeError$1$f=TypeError,getIterator$1$9=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$9(v):k;if(aCallable$2$9(ie))return anObject$3$d(call$5$d(ie,v));throw $TypeError$1$f(tryToString$1$f(v)+" is not iterable")},call$4$f=functionCall$f,anObject$2$f=anObject$c$6,getMethod$i=getMethod$3$6,iteratorClose$1$5=function(v,k,ie){var ae,ce;anObject$2$f(v);try{if(ae=getMethod$i(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$4$f(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$2$f(ae),ie},bind$k=functionBindContext$9,call$3$f=functionCall$f,anObject$1$f=anObject$c$6,tryToString$j=tryToString$4$9,isArrayIteratorMethod$a=isArrayIteratorMethod$1$9,lengthOfArrayLike$j=lengthOfArrayLike$2$9,isPrototypeOf$j=objectIsPrototypeOf$f,getIterator$a=getIterator$1$9,getIteratorMethod$b=getIteratorMethod$2$9,iteratorClose$6=iteratorClose$1$5,$TypeError$q=TypeError,Result$5=function(v,k){this.stopped=v,this.result=k},ResultPrototype$5=Result$5.prototype,iterate$2$5=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$k(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$6(pe,"normal",ur),new Result$5(!0,ur)},Or=function(ur){return ce?(anObject$1$f(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$b(v),!ye)throw $TypeError$q(tryToString$j(v)+" is not iterable");if(isArrayIteratorMethod$a(ye)){for(me=0,Ee=lengthOfArrayLike$j(v);Ee>me;me++)if(cr=Or(v[me]),cr&&isPrototypeOf$j(ResultPrototype$5,cr))return cr;return new Result$5(!1)}pe=getIterator$a(v,ye)}for(Br=pe.next;!($r=call$3$f(Br,pe)).done;){try{cr=Or($r.value)}catch(ur){iteratorClose$6(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$j(ResultPrototype$5,cr))return cr}return new Result$5(!1)},wellKnownSymbol$1$f=wellKnownSymbol$e$8,ITERATOR$1$a=wellKnownSymbol$1$f("iterator"),SAFE_CLOSING$9=!1;try{called$9=0,iteratorWithReturn$9={next:function(){return{done:!!called$9++}},return:function(){SAFE_CLOSING$9=!0}},iteratorWithReturn$9[ITERATOR$1$a]=function(){return this},Array.from(iteratorWithReturn$9,function(){throw 2})}catch(v){}var called$9,iteratorWithReturn$9,checkCorrectnessOfIteration$1$9=function(v,k){if(!k&&!SAFE_CLOSING$9)return!1;var ie=!1;try{var ae={};ae[ITERATOR$1$a]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1$5=promiseNativeConstructor$5,checkCorrectnessOfIteration$a=checkCorrectnessOfIteration$1$9,FORCED_PROMISE_CONSTRUCTOR$3$5=promiseConstructorDetection$5.CONSTRUCTOR,promiseStaticsIncorrectIteration$5=FORCED_PROMISE_CONSTRUCTOR$3$5||!checkCorrectnessOfIteration$a(function(v){NativePromiseConstructor$1$5.all(v).then(void 0,function(){})}),$$4$6=_export$d,call$2$f=functionCall$f,aCallable$1$f=aCallable$7$5,newPromiseCapabilityModule$2$5=newPromiseCapability$2$5,perform$1$5=perform$3$5,iterate$1$5=iterate$2$5,PROMISE_STATICS_INCORRECT_ITERATION$1$5=promiseStaticsIncorrectIteration$5;$$4$6({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$5},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$5.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$5(function(){var ve=aCallable$1$f(ie.resolve),pe=[],ye=0,me=1;iterate$1$5(k,function(Ee){var cr=ye++,Br=!1;me++,call$2$f(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$3$9=_export$d,FORCED_PROMISE_CONSTRUCTOR$2$5=promiseConstructorDetection$5.CONSTRUCTOR,NativePromiseConstructor$8=promiseNativeConstructor$5,getBuiltIn$1$f=getBuiltIn$8$5,isCallable$x=isCallable$k$5,defineBuiltIn$l=defineBuiltIn$6$8,NativePromisePrototype$6=NativePromiseConstructor$8&&NativePromiseConstructor$8.prototype;$$3$9({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$5,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$x(NativePromiseConstructor$8)&&(method$5=getBuiltIn$1$f("Promise").prototype.catch,NativePromisePrototype$6.catch!==method$5&&defineBuiltIn$l(NativePromisePrototype$6,"catch",method$5,{unsafe:!0}));var method$5,$$2$9=_export$d,call$1$f=functionCall$f,aCallable$m=aCallable$7$5,newPromiseCapabilityModule$1$5=newPromiseCapability$2$5,perform$8=perform$3$5,iterate$7=iterate$2$5,PROMISE_STATICS_INCORRECT_ITERATION$6=promiseStaticsIncorrectIteration$5;$$2$9({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$6},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$5.f(ie),ce=ae.reject,fe=perform$8(function(){var le=aCallable$m(ie.resolve);iterate$7(k,function(ve){call$1$f(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$1$9=_export$d,call$t=functionCall$f,newPromiseCapabilityModule$8=newPromiseCapability$2$5,FORCED_PROMISE_CONSTRUCTOR$1$5=promiseConstructorDetection$5.CONSTRUCTOR;$$1$9({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$5},{reject:function v(k){var ie=newPromiseCapabilityModule$8.f(this);return call$t(ie.reject,void 0,k),ie.promise}});var anObject$p=anObject$c$6,isObject$q=isObject$7$9,newPromiseCapability$7=newPromiseCapability$2$5,promiseResolve$1$5=function(v,k){if(anObject$p(v),isObject$q(k)&&k.constructor===v)return k;var ie=newPromiseCapability$7.f(v),ae=ie.resolve;return ae(k),ie.promise},$$k=_export$d,getBuiltIn$n=getBuiltIn$8$5,FORCED_PROMISE_CONSTRUCTOR$a=promiseConstructorDetection$5.CONSTRUCTOR,promiseResolve$6=promiseResolve$1$5;getBuiltIn$n("Promise");$$k({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$a},{resolve:function v(k){return promiseResolve$6(this,k)}});var domIterables$6={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$g=documentCreateElement$2$7,classList$6=documentCreateElement$g("span").classList,DOMTokenListPrototype$1$6=classList$6&&classList$6.constructor&&classList$6.constructor.prototype,domTokenListPrototype$6=DOMTokenListPrototype$1$6===Object.prototype?void 0:DOMTokenListPrototype$1$6,global$1$f=global$j$5,DOMIterables$6=domIterables$6,DOMTokenListPrototype$7=domTokenListPrototype$6,ArrayIteratorMethods$6=es_array_iterator$6,createNonEnumerableProperty$l=createNonEnumerableProperty$4$9,wellKnownSymbol$t=wellKnownSymbol$e$8,ITERATOR$e=wellKnownSymbol$t("iterator"),TO_STRING_TAG$g=wellKnownSymbol$t("toStringTag"),ArrayValues$6=ArrayIteratorMethods$6.values,handlePrototype$6=function(v,k){if(v){if(v[ITERATOR$e]!==ArrayValues$6)try{createNonEnumerableProperty$l(v,ITERATOR$e,ArrayValues$6)}catch{v[ITERATOR$e]=ArrayValues$6}if(v[TO_STRING_TAG$g]||createNonEnumerableProperty$l(v,TO_STRING_TAG$g,k),DOMIterables$6[k]){for(var ie in ArrayIteratorMethods$6)if(v[ie]!==ArrayIteratorMethods$6[ie])try{createNonEnumerableProperty$l(v,ie,ArrayIteratorMethods$6[ie])}catch{v[ie]=ArrayIteratorMethods$6[ie]}}}};for(COLLECTION_NAME$6 in DOMIterables$6)handlePrototype$6(global$1$f[COLLECTION_NAME$6]&&global$1$f[COLLECTION_NAME$6].prototype,COLLECTION_NAME$6);var COLLECTION_NAME$6;handlePrototype$6(DOMTokenListPrototype$7,"DOMTokenList");function __awaiter$i(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAMAAABOo35HAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAD8UExURUdwTGx5rpLO8YOYx1Og0ly29X5ezR4mT0tiji4eWJ953KGn1Jxs7qB9xvfD/Us0gduu8yeh4HOq74dD647R91256eSz+j82cbvg/dSj/LuL79Wp6zCf24KN9xANGRANF59d/0W+/taa/8iN/3HL9uOn/z638Bil7l3G84TP+FHB8o5A/0i9/ZjU+47S+vq8/4Qy/S6w8O+x/5Rp/wyg7G2T/s+T/vO2/+qt/1qp/qDV/HyD/ki4+4R7/qnY/tyh/1Gx/ptU/76E/2bJ9Ld8/4t0/pxe+XvN9iOq7rB0/0i88aRk/6ps/z++/naL/mab/mGh/pVM/wub5mGd+fAEOhEAAAAgdFJOUwBEyWKA47EKJhnFluGA6l3H67Du6crdNOXs5q/I65rcQbfB9AAAIABJREFUeNrsnE9r4zoXxidOG9tNQqBvSrLKeKGF7WIz4J0WgSCuDc1s7vf/Mq/+S0d2p7Zkd7i0SsZJh3th+PGcR4+OpP748T3+4yNODofDKY2/SYxgdbhcfl4ul9M3rY9ZpZefbFwu6TeMD8dJwPp5Sb6l9eFIL5zW5TDoWrEc35wEjtOFDWPxjE2aJMkqWa3W6/WevuigPyVJ+tWngTg+HQ58PmSDQlqvt5Eax+jIBv2UY7umyL6u0JiMBK6DpETp4KqmL/ngX9hnwcEJYl8TGIV1EpzOEaNUCUBqFP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WL0otWgdRd9galxGiJVAJ4EgYpEPa3yVjzvNfZWctWePa/j/+8ZvOXL3oWIPSluTTXo1oRs5KTQ8otDVXdKmEf8deeTdf6rrCWLv31c7b5KlqZX9j84321DPfAPKd6NatGTqsvATydhFDWapwKxEf4Zvbv0b5JdzbbrL+QVki6cjq5v+azBK5AMrIIkiXq8aEycE1e1xv9rF+nky+Hypw1Ci4U/PHWsExrVjzDd3CJZf4EqEwlLLJskmWJW31fVoyGXTJK30WsWXUqKiXMWj4Nqv/LA9oVtF57L5s3hHEYmRtquPQlHrvwoKklalV/Stb/ZqjMyaivptalbKRbCHGpgyDxn2hxCRrkNFLCkGrxt0NlqvFjqvGSOpZx8QxCy2+V+mtiUI3KqgOCLSA1yb4DUgSvrbYSNbpsWCYyeCCU8lOaW8Cpt+k3QsrhpW9AA2CWXLWguXJtL7IKW4MA1E5xavHdoPKGRhFspRADWkkMV+0WQ+D8g5vA6l97n35XoJCjmb7rS/Y5YMYaRGCTvpY/zb45UKQmgWQ7hRl5dj8wXaPZQr/PQeGTLfQLHn5A+Xl+np/n53nC8x/tAMljWkeBnAAAAABJRU5ErkJggg==",resolveWalletUrl$3=(v,k)=>{if(k)return k;switch(v.networkId){case"mainnet":return"https://app.mynearwallet.com";case"testnet":return"https://testnet.mynearwallet.com";default:throw new Error("Invalid wallet url")}},setupWalletState$3=(v,k)=>__awaiter$i(void 0,void 0,void 0,function*(){const ie=new nearAPI$7.keyStores.BrowserLocalStorageKeyStore,ae=yield nearAPI$7.connect(Object.assign(Object.assign({keyStore:ie,walletUrl:v.walletUrl},k),{headers:{}}));return{wallet:new nearAPI$7.WalletConnection(ae,"near_app"),keyStore:ie}}),MyNearWallet=({metadata:v,options:k,store:ie,params:ae,logger:ce})=>__awaiter$i(void 0,void 0,void 0,function*(){const fe=yield setupWalletState$3(ae,k.network),le=()=>__awaiter$i(void 0,void 0,void 0,function*(){const pe=fe.wallet.getAccountId(),ye=fe.wallet.account();if(!pe||!ye)return[];const me=yield ye.connection.signer.getPublicKey(ye.accountId,k.network.networkId);return[{accountId:pe,publicKey:me?me.toString():""}]}),ve=pe=>__awaiter$i(void 0,void 0,void 0,function*(){const ye=fe.wallet.account(),{networkId:me,signer:Ee,provider:cr}=ye.connection,Br=yield Ee.getPublicKey(ye.accountId,me);return Promise.all(pe.map(($r,Pr)=>__awaiter$i(void 0,void 0,void 0,function*(){const Or=$r.actions.map(Mr=>createAction(Mr)),ur=yield ye.accessKeyForTransaction($r.receiverId,Or,Br);if(!ur)throw new Error(`Failed to find matching key for transaction sent to ${$r.receiverId}`);const jr=yield cr.block({finality:"final"});return nearAPI$7.transactions.createTransaction(ye.accountId,nearAPI$7.utils.PublicKey.from(ur.public_key),$r.receiverId,ur.access_key.nonce+Pr+1,Or,nearAPI$7.utils.serialize.base_decode(jr.header.hash))})))});return{signIn({contractId:pe,methodNames:ye,successUrl:me,failureUrl:Ee}){return __awaiter$i(this,void 0,void 0,function*(){const cr=yield le();return cr.length?cr:(yield fe.wallet.requestSignIn({contractId:pe,methodNames:ye,successUrl:me,failureUrl:Ee}),le())})},signOut(){return __awaiter$i(this,void 0,void 0,function*(){fe.wallet.isSignedIn()&&fe.wallet.signOut()})},getAccounts(){return __awaiter$i(this,void 0,void 0,function*(){return le()})},verifyOwner(){return __awaiter$i(this,void 0,void 0,function*(){throw new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction({signerId:pe,receiverId:ye,actions:me,callbackUrl:Ee}){return __awaiter$i(this,void 0,void 0,function*(){ce.log("signAndSendTransaction",{signerId:pe,receiverId:ye,actions:me,callbackUrl:Ee});const{contract:cr}=ie.getState();if(!fe.wallet.isSignedIn()||!cr)throw new Error("Wallet not signed in");return fe.wallet.account().signAndSendTransaction({receiverId:ye||cr.contractId,actions:me.map($r=>createAction($r)),walletCallbackUrl:Ee})})},signAndSendTransactions({transactions:pe,callbackUrl:ye}){return __awaiter$i(this,void 0,void 0,function*(){if(ce.log("signAndSendTransactions",{transactions:pe,callbackUrl:ye}),!fe.wallet.isSignedIn())throw new Error("Wallet not signed in");return fe.wallet.requestSignTransactions({transactions:yield ve(pe),callbackUrl:ye})})},buildImportAccountsUrl(){return`${ae.walletUrl}/batch-import`}}});function setupMyNearWallet({walletUrl:v,iconUrl:k=icon$h,deprecated:ie=!1,successUrl:ae="",failureUrl:ce=""}={}){return fe=>__awaiter$i(this,void 0,void 0,function*(){return{id:"my-near-wallet",type:"browser",metadata:{name:"MyNearWallet",description:"NEAR wallet to store, buy, send and stake assets for DeFi.",iconUrl:k,deprecated:ie,available:!0,successUrl:ae,failureUrl:ce,walletUrl:resolveWalletUrl$3(fe.options.network,v)},init:le=>MyNearWallet(Object.assign(Object.assign({},le),{params:{walletUrl:resolveWalletUrl$3(le.options.network,v)}}))}})}var commonjsGlobal$f=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$e=function(v){return v&&v.Math==Math&&v},global$a$c=check$e(typeof globalThis=="object"&&globalThis)||check$e(typeof window=="object"&&window)||check$e(typeof self=="object"&&self)||check$e(typeof commonjsGlobal$f=="object"&&commonjsGlobal$f)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$c={},fails$9$c=function(v){try{return!!v()}catch{return!0}},fails$8$c=fails$9$c,descriptors$e=!fails$8$c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$7$e=fails$9$c,functionBindNative$e=!fails$7$e(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$1$e=functionBindNative$e,call$5$c=Function.prototype.call,functionCall$e=NATIVE_BIND$1$e?call$5$c.bind(call$5$c):function(){return call$5$c.apply(call$5$c,arguments)},objectPropertyIsEnumerable$c={},$propertyIsEnumerable$c={}.propertyIsEnumerable,getOwnPropertyDescriptor$1$c=Object.getOwnPropertyDescriptor,NASHORN_BUG$c=getOwnPropertyDescriptor$1$c&&!$propertyIsEnumerable$c.call({1:2},1);objectPropertyIsEnumerable$c.f=NASHORN_BUG$c?function v(k){var ie=getOwnPropertyDescriptor$1$c(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$c;var createPropertyDescriptor$2$c=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$h=functionBindNative$e,FunctionPrototype$1$e=Function.prototype,bind$j=FunctionPrototype$1$e.bind,call$4$e=FunctionPrototype$1$e.call,uncurryThis$a$c=NATIVE_BIND$h&&bind$j.bind(call$4$e,call$4$e),functionUncurryThis$e=NATIVE_BIND$h?function(v){return v&&uncurryThis$a$c(v)}:function(v){return v&&function(){return call$4$e.apply(v,arguments)}},uncurryThis$9$c=functionUncurryThis$e,toString$1$e=uncurryThis$9$c({}.toString),stringSlice$e=uncurryThis$9$c("".slice),classofRaw$f=function(v){return stringSlice$e(toString$1$e(v),8,-1)},uncurryThis$8$c=functionUncurryThis$e,fails$6$e=fails$9$c,classof$m=classofRaw$f,$Object$2$e=Object,split$c=uncurryThis$8$c("".split),indexedObject$c=fails$6$e(function(){return!$Object$2$e("z").propertyIsEnumerable(0)})?function(v){return classof$m(v)=="String"?split$c(v,""):$Object$2$e(v)}:$Object$2$e,$TypeError$5$e=TypeError,requireObjectCoercible$2$c=function(v){if(v==null)throw $TypeError$5$e("Can't call method on "+v);return v},IndexedObject$1$a=indexedObject$c,requireObjectCoercible$1$e=requireObjectCoercible$2$c,toIndexedObject$3$c=function(v){return IndexedObject$1$a(requireObjectCoercible$1$e(v))},isCallable$a$e=function(v){return typeof v=="function"},isCallable$9$e=isCallable$a$e,isObject$5$e=function(v){return typeof v=="object"?v!==null:isCallable$9$e(v)},global$9$e=global$a$c,isCallable$8$e=isCallable$a$e,aFunction$e=function(v){return isCallable$8$e(v)?v:void 0},getBuiltIn$3$c=function(v,k){return arguments.length<2?aFunction$e(global$9$e[v]):global$9$e[v]&&global$9$e[v][k]},uncurryThis$7$c=functionUncurryThis$e,objectIsPrototypeOf$e=uncurryThis$7$c({}.isPrototypeOf),getBuiltIn$2$e=getBuiltIn$3$c,engineUserAgent$e=getBuiltIn$2$e("navigator","userAgent")||"",global$8$e=global$a$c,userAgent$h=engineUserAgent$e,process$f=global$8$e.process,Deno$a=global$8$e.Deno,versions$e=process$f&&process$f.versions||Deno$a&&Deno$a.version,v8$e=versions$e&&versions$e.v8,match$e,version$e;v8$e&&(match$e=v8$e.split("."),version$e=match$e[0]>0&&match$e[0]<4?1:+(match$e[0]+match$e[1]));!version$e&&userAgent$h&&(match$e=userAgent$h.match(/Edge\/(\d+)/),(!match$e||match$e[1]>=74)&&(match$e=userAgent$h.match(/Chrome\/(\d+)/),match$e&&(version$e=+match$e[1])));var engineV8Version$e=version$e,V8_VERSION$f=engineV8Version$e,fails$5$e=fails$9$c,nativeSymbol$e=!!Object.getOwnPropertySymbols&&!fails$5$e(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$f&&V8_VERSION$f<41}),NATIVE_SYMBOL$1$e=nativeSymbol$e,useSymbolAsUid$e=NATIVE_SYMBOL$1$e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$1$e=getBuiltIn$3$c,isCallable$7$e=isCallable$a$e,isPrototypeOf$i=objectIsPrototypeOf$e,USE_SYMBOL_AS_UID$1$e=useSymbolAsUid$e,$Object$1$e=Object,isSymbol$2$e=USE_SYMBOL_AS_UID$1$e?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$1$e("Symbol");return isCallable$7$e(k)&&isPrototypeOf$i(k.prototype,$Object$1$e(v))},$String$1$e=String,tryToString$1$e=function(v){try{return $String$1$e(v)}catch{return"Object"}},isCallable$6$e=isCallable$a$e,tryToString$i=tryToString$1$e,$TypeError$4$e=TypeError,aCallable$1$e=function(v){if(isCallable$6$e(v))return v;throw $TypeError$4$e(tryToString$i(v)+" is not a function")},aCallable$l=aCallable$1$e,getMethod$1$e=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$l(ie)},call$3$e=functionCall$e,isCallable$5$e=isCallable$a$e,isObject$4$e=isObject$5$e,$TypeError$3$e=TypeError,ordinaryToPrimitive$1$e=function(v,k){var ie,ae;if(k==="string"&&isCallable$5$e(ie=v.toString)&&!isObject$4$e(ae=call$3$e(ie,v))||isCallable$5$e(ie=v.valueOf)&&!isObject$4$e(ae=call$3$e(ie,v))||k!=="string"&&isCallable$5$e(ie=v.toString)&&!isObject$4$e(ae=call$3$e(ie,v)))return ae;throw $TypeError$3$e("Can't convert object to primitive value")},shared$3$e={exports:{}},global$7$e=global$a$c,defineProperty$2$c=Object.defineProperty,defineGlobalProperty$3$c=function(v,k){try{defineProperty$2$c(global$7$e,v,{value:k,configurable:!0,writable:!0})}catch{global$7$e[v]=k}return k},global$6$e=global$a$c,defineGlobalProperty$2$e=defineGlobalProperty$3$c,SHARED$e="__core-js_shared__",store$3$e=global$6$e[SHARED$e]||defineGlobalProperty$2$e(SHARED$e,{}),sharedStore$e=store$3$e,store$2$e=sharedStore$e;(shared$3$e.exports=function(v,k){return store$2$e[v]||(store$2$e[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$g=requireObjectCoercible$2$c,$Object$i=Object,toObject$2$b=function(v){return $Object$i(requireObjectCoercible$g(v))},uncurryThis$6$e=functionUncurryThis$e,toObject$1$e=toObject$2$b,hasOwnProperty$e=uncurryThis$6$e({}.hasOwnProperty),hasOwnProperty_1$e=Object.hasOwn||function v(k,ie){return hasOwnProperty$e(toObject$1$e(k),ie)},uncurryThis$5$e=functionUncurryThis$e,id$g=0,postfix$e=Math.random(),toString$9=uncurryThis$5$e(1 .toString),uid$2$e=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$9(++id$g+postfix$e,36)},global$5$e=global$a$c,shared$2$e=shared$3$e.exports,hasOwn$6$c=hasOwnProperty_1$e,uid$1$e=uid$2$e,NATIVE_SYMBOL$f=nativeSymbol$e,USE_SYMBOL_AS_UID$f=useSymbolAsUid$e,WellKnownSymbolsStore$e=shared$2$e("wks"),Symbol$1$e=global$5$e.Symbol,symbolFor$e=Symbol$1$e&&Symbol$1$e.for,createWellKnownSymbol$e=USE_SYMBOL_AS_UID$f?Symbol$1$e:Symbol$1$e&&Symbol$1$e.withoutSetter||uid$1$e,wellKnownSymbol$1$e=function(v){if(!hasOwn$6$c(WellKnownSymbolsStore$e,v)||!(NATIVE_SYMBOL$f||typeof WellKnownSymbolsStore$e[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$f&&hasOwn$6$c(Symbol$1$e,v)?WellKnownSymbolsStore$e[v]=Symbol$1$e[v]:USE_SYMBOL_AS_UID$f&&symbolFor$e?WellKnownSymbolsStore$e[v]=symbolFor$e(k):WellKnownSymbolsStore$e[v]=createWellKnownSymbol$e(k)}return WellKnownSymbolsStore$e[v]},call$2$e=functionCall$e,isObject$3$e=isObject$5$e,isSymbol$1$e=isSymbol$2$e,getMethod$h=getMethod$1$e,ordinaryToPrimitive$f=ordinaryToPrimitive$1$e,wellKnownSymbol$s=wellKnownSymbol$1$e,$TypeError$2$e=TypeError,TO_PRIMITIVE$e=wellKnownSymbol$s("toPrimitive"),toPrimitive$1$e=function(v,k){if(!isObject$3$e(v)||isSymbol$1$e(v))return v;var ie=getMethod$h(v,TO_PRIMITIVE$e),ae;if(ie){if(k===void 0&&(k="default"),ae=call$2$e(ie,v,k),!isObject$3$e(ae)||isSymbol$1$e(ae))return ae;throw $TypeError$2$e("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$f(v,k)},toPrimitive$g=toPrimitive$1$e,isSymbol$h=isSymbol$2$e,toPropertyKey$2$c=function(v){var k=toPrimitive$g(v,"string");return isSymbol$h(k)?k:k+""},global$4$e=global$a$c,isObject$2$e=isObject$5$e,document$7=global$4$e.document,EXISTS$1$e=isObject$2$e(document$7)&&isObject$2$e(document$7.createElement),documentCreateElement$f=function(v){return EXISTS$1$e?document$7.createElement(v):{}},DESCRIPTORS$7$c=descriptors$e,fails$4$e=fails$9$c,createElement$f=documentCreateElement$f,ie8DomDefine$e=!DESCRIPTORS$7$c&&!fails$4$e(function(){return Object.defineProperty(createElement$f("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$6$c=descriptors$e,call$1$e=functionCall$e,propertyIsEnumerableModule$1$a=objectPropertyIsEnumerable$c,createPropertyDescriptor$1$e=createPropertyDescriptor$2$c,toIndexedObject$2$c=toIndexedObject$3$c,toPropertyKey$1$e=toPropertyKey$2$c,hasOwn$5$c=hasOwnProperty_1$e,IE8_DOM_DEFINE$1$c=ie8DomDefine$e,$getOwnPropertyDescriptor$1$c=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$c.f=DESCRIPTORS$6$c?$getOwnPropertyDescriptor$1$c:function v(k,ie){if(k=toIndexedObject$2$c(k),ie=toPropertyKey$1$e(ie),IE8_DOM_DEFINE$1$c)try{return $getOwnPropertyDescriptor$1$c(k,ie)}catch{}if(hasOwn$5$c(k,ie))return createPropertyDescriptor$1$e(!call$1$e(propertyIsEnumerableModule$1$a.f,k,ie),k[ie])};var objectDefineProperty$e={},DESCRIPTORS$5$e=descriptors$e,fails$3$e=fails$9$c,v8PrototypeDefineBug$e=DESCRIPTORS$5$e&&fails$3$e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$1$e=isObject$5$e,$String$h=String,$TypeError$1$e=TypeError,anObject$2$e=function(v){if(isObject$1$e(v))return v;throw $TypeError$1$e($String$h(v)+" is not an object")},DESCRIPTORS$4$e=descriptors$e,IE8_DOM_DEFINE$f=ie8DomDefine$e,V8_PROTOTYPE_DEFINE_BUG$f=v8PrototypeDefineBug$e,anObject$1$e=anObject$2$e,toPropertyKey$i=toPropertyKey$2$c,$TypeError$p=TypeError,$defineProperty$e=Object.defineProperty,$getOwnPropertyDescriptor$f=Object.getOwnPropertyDescriptor,ENUMERABLE$e="enumerable",CONFIGURABLE$1$e="configurable",WRITABLE$e="writable";objectDefineProperty$e.f=DESCRIPTORS$4$e?V8_PROTOTYPE_DEFINE_BUG$f?function v(k,ie,ae){if(anObject$1$e(k),ie=toPropertyKey$i(ie),anObject$1$e(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$e in ae&&!ae[WRITABLE$e]){var ce=$getOwnPropertyDescriptor$f(k,ie);ce&&ce[WRITABLE$e]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$e in ae?ae[CONFIGURABLE$1$e]:ce[CONFIGURABLE$1$e],enumerable:ENUMERABLE$e in ae?ae[ENUMERABLE$e]:ce[ENUMERABLE$e],writable:!1})}return $defineProperty$e(k,ie,ae)}:$defineProperty$e:function v(k,ie,ae){if(anObject$1$e(k),ie=toPropertyKey$i(ie),anObject$1$e(ae),IE8_DOM_DEFINE$f)try{return $defineProperty$e(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$p("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$3$e=descriptors$e,definePropertyModule$2$c=objectDefineProperty$e,createPropertyDescriptor$j=createPropertyDescriptor$2$c,createNonEnumerableProperty$2$c=DESCRIPTORS$3$e?function(v,k,ie){return definePropertyModule$2$c.f(v,k,createPropertyDescriptor$j(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$e={exports:{}},DESCRIPTORS$2$e=descriptors$e,hasOwn$4$e=hasOwnProperty_1$e,FunctionPrototype$g=Function.prototype,getDescriptor$e=DESCRIPTORS$2$e&&Object.getOwnPropertyDescriptor,EXISTS$f=hasOwn$4$e(FunctionPrototype$g,"name"),PROPER$e=EXISTS$f&&function v(){}.name==="something",CONFIGURABLE$f=EXISTS$f&&(!DESCRIPTORS$2$e||DESCRIPTORS$2$e&&getDescriptor$e(FunctionPrototype$g,"name").configurable),functionName$e={EXISTS:EXISTS$f,PROPER:PROPER$e,CONFIGURABLE:CONFIGURABLE$f},uncurryThis$4$e=functionUncurryThis$e,isCallable$4$e=isCallable$a$e,store$1$e=sharedStore$e,functionToString$e=uncurryThis$4$e(Function.toString);isCallable$4$e(store$1$e.inspectSource)||(store$1$e.inspectSource=function(v){return functionToString$e(v)});var inspectSource$2$e=store$1$e.inspectSource,global$3$e=global$a$c,isCallable$3$e=isCallable$a$e,inspectSource$1$e=inspectSource$2$e,WeakMap$1$e=global$3$e.WeakMap,nativeWeakMap$e=isCallable$3$e(WeakMap$1$e)&&/native code/.test(inspectSource$1$e(WeakMap$1$e)),shared$1$e=shared$3$e.exports,uid$h=uid$2$e,keys$a=shared$1$e("keys"),sharedKey$1$e=function(v){return keys$a[v]||(keys$a[v]=uid$h(v))},hiddenKeys$3$c={},NATIVE_WEAK_MAP$e=nativeWeakMap$e,global$2$e=global$a$c,uncurryThis$3$e=functionUncurryThis$e,isObject$p=isObject$5$e,createNonEnumerableProperty$1$e=createNonEnumerableProperty$2$c,hasOwn$3$e=hasOwnProperty_1$e,shared$h=sharedStore$e,sharedKey$g=sharedKey$1$e,hiddenKeys$2$c=hiddenKeys$3$c,OBJECT_ALREADY_INITIALIZED$e="Object already initialized",TypeError$1$e=global$2$e.TypeError,WeakMap$g=global$2$e.WeakMap,set$f,get$f,has$e,enforce$e=function(v){return has$e(v)?get$f(v):set$f(v,{})},getterFor$e=function(v){return function(k){var ie;if(!isObject$p(k)||(ie=get$f(k)).type!==v)throw TypeError$1$e("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$e||shared$h.state?(store$h=shared$h.state||(shared$h.state=new WeakMap$g),wmget$e=uncurryThis$3$e(store$h.get),wmhas$e=uncurryThis$3$e(store$h.has),wmset$e=uncurryThis$3$e(store$h.set),set$f=function(v,k){if(wmhas$e(store$h,v))throw new TypeError$1$e(OBJECT_ALREADY_INITIALIZED$e);return k.facade=v,wmset$e(store$h,v,k),k},get$f=function(v){return wmget$e(store$h,v)||{}},has$e=function(v){return wmhas$e(store$h,v)}):(STATE$e=sharedKey$g("state"),hiddenKeys$2$c[STATE$e]=!0,set$f=function(v,k){if(hasOwn$3$e(v,STATE$e))throw new TypeError$1$e(OBJECT_ALREADY_INITIALIZED$e);return k.facade=v,createNonEnumerableProperty$1$e(v,STATE$e,k),k},get$f=function(v){return hasOwn$3$e(v,STATE$e)?v[STATE$e]:{}},has$e=function(v){return hasOwn$3$e(v,STATE$e)});var store$h,wmget$e,wmhas$e,wmset$e,STATE$e,internalState$e={set:set$f,get:get$f,has:has$e,enforce:enforce$e,getterFor:getterFor$e},fails$2$e=fails$9$c,isCallable$2$e=isCallable$a$e,hasOwn$2$e=hasOwnProperty_1$e,DESCRIPTORS$1$e=descriptors$e,CONFIGURABLE_FUNCTION_NAME$g=functionName$e.CONFIGURABLE,inspectSource$i=inspectSource$2$e,InternalStateModule$i=internalState$e,enforceInternalState$g=InternalStateModule$i.enforce,getInternalState$i=InternalStateModule$i.get,defineProperty$1$e=Object.defineProperty,CONFIGURABLE_LENGTH$e=DESCRIPTORS$1$e&&!fails$2$e(function(){return defineProperty$1$e(function(){},"length",{value:8}).length!==8}),TEMPLATE$e=String(String).split("String"),makeBuiltIn$1$e=makeBuiltIn$2$e.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$2$e(v,"name")||CONFIGURABLE_FUNCTION_NAME$g&&v.name!==k)&&(DESCRIPTORS$1$e?defineProperty$1$e(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$e&&ie&&hasOwn$2$e(ie,"arity")&&v.length!==ie.arity&&defineProperty$1$e(v,"length",{value:ie.arity});try{ie&&hasOwn$2$e(ie,"constructor")&&ie.constructor?DESCRIPTORS$1$e&&defineProperty$1$e(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$g(v);return hasOwn$2$e(ae,"source")||(ae.source=TEMPLATE$e.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$e(function v(){return isCallable$2$e(this)&&getInternalState$i(this).source||inspectSource$i(this)},"toString");var isCallable$1$e=isCallable$a$e,definePropertyModule$1$e=objectDefineProperty$e,makeBuiltIn$g=makeBuiltIn$2$e.exports,defineGlobalProperty$1$e=defineGlobalProperty$3$c,defineBuiltIn$1$e=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$1$e(ie)&&makeBuiltIn$g(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$e(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$1$e.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$c={},ceil$c=Math.ceil,floor$f=Math.floor,mathTrunc$c=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$f:ceil$c)(ie)},trunc2$c=mathTrunc$c,toIntegerOrInfinity$2$c=function(v){var k=+v;return k!==k||k===0?0:trunc2$c(k)},toIntegerOrInfinity$1$c=toIntegerOrInfinity$2$c,max$d=Math.max,min$1$c=Math.min,toAbsoluteIndex$1$c=function(v,k){var ie=toIntegerOrInfinity$1$c(v);return ie<0?max$d(ie+k,0):min$1$c(ie,k)},toIntegerOrInfinity$h=toIntegerOrInfinity$2$c,min$d=Math.min,toLength$1$c=function(v){return v>0?min$d(toIntegerOrInfinity$h(v),9007199254740991):0},toLength$h=toLength$1$c,lengthOfArrayLike$1$c=function(v){return toLength$h(v.length)},toIndexedObject$1$c=toIndexedObject$3$c,toAbsoluteIndex$g=toAbsoluteIndex$1$c,lengthOfArrayLike$i=lengthOfArrayLike$1$c,createMethod$d=function(v){return function(k,ie,ae){var ce=toIndexedObject$1$c(k),fe=lengthOfArrayLike$i(ce),le=toAbsoluteIndex$g(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$c={includes:createMethod$d(!0),indexOf:createMethod$d(!1)},uncurryThis$2$e=functionUncurryThis$e,hasOwn$1$e=hasOwnProperty_1$e,toIndexedObject$i=toIndexedObject$3$c,indexOf$c=arrayIncludes$c.indexOf,hiddenKeys$1$c=hiddenKeys$3$c,push$d=uncurryThis$2$e([].push),objectKeysInternal$c=function(v,k){var ie=toIndexedObject$i(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$1$e(hiddenKeys$1$c,fe)&&hasOwn$1$e(ie,fe)&&push$d(ce,fe);for(;k.length>ae;)hasOwn$1$e(ie,fe=k[ae++])&&(~indexOf$c(ce,fe)||push$d(ce,fe));return ce},enumBugKeys$2$b=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$b=objectKeysInternal$c,enumBugKeys$1$c=enumBugKeys$2$b,hiddenKeys$g=enumBugKeys$1$c.concat("length","prototype");objectGetOwnPropertyNames$c.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$b(k,hiddenKeys$g)};var objectGetOwnPropertySymbols$c={};objectGetOwnPropertySymbols$c.f=Object.getOwnPropertySymbols;var getBuiltIn$m=getBuiltIn$3$c,uncurryThis$1$e=functionUncurryThis$e,getOwnPropertyNamesModule$c=objectGetOwnPropertyNames$c,getOwnPropertySymbolsModule$1$a=objectGetOwnPropertySymbols$c,anObject$o=anObject$2$e,concat$1$a=uncurryThis$1$e([].concat),ownKeys$1$c=getBuiltIn$m("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$c.f(anObject$o(k)),ae=getOwnPropertySymbolsModule$1$a.f;return ae?concat$1$a(ie,ae(k)):ie},hasOwn2$e=hasOwnProperty_1$e,ownKeys2$c=ownKeys$1$c,getOwnPropertyDescriptorModule$d=objectGetOwnPropertyDescriptor$c,definePropertyModule$k=objectDefineProperty$e,copyConstructorProperties$1$c=function(v,k,ie){for(var ae=ownKeys2$c(k),ce=definePropertyModule$k.f,fe=getOwnPropertyDescriptorModule$d.f,le=0;lefe;)for(var pe=IndexedObject$e(arguments[fe++]),ye=le?concat$e(objectKeys$d(pe),le(pe)):objectKeys$d(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$r||call$s(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$a,$$j=_export$c,assign2$a=objectAssign$a;$$j({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$a},{assign:assign2$a});function __awaiter$h(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAQAAADTdEb+AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfmCBYRIzjChBcFAAAabUlEQVR42u2deWBVxfXHPwlhSYCAsikiqCAYQJGqdSmCWrVotbVgUdzrhlWUHWQTRCkiCAEtFdywILRWkWoFd1CsIiJFlFX8sW9hTSCBJCTv90dEEsjLe/e+uefc7XP+S/LeOWfmm3vvzJ05k4Q1UmlMBq1pzqnUoQaVSSrz+0Jy2cMW1rKCFawn2+L3h+hQlVM4i5a0oDH1SKcKkM9+stjAar5nNVsptPKFSXH/ZRpncwWXkkF9UuP4XD57WMtC5rGYnd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YhUWnERVzB+ZxOLSrH/OtictnKMj7jU1ZTEJ+L+IVVQmUa0oJWnEUT6pFOVSCfHHawnlV8zxq2uXJnbsjx1KUpLWlJU06mNmnHPAsXk08OO9nAKpazmq3WNjb/PwtMam6w6l9KAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA4LTIyVDE3OjM1OjQ4KzAwOjAwUOMNpQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wOC0yMlQxNzozNTo0OCswMDowMCG+tRkAAAAASUVORK5CYII=",resolveWalletUrl$2=(v,k)=>{if(k)return k;switch(v.networkId){case"mainnet":return"https://wallet.near.org";case"testnet":return"https://wallet.testnet.near.org";default:throw new Error("Invalid wallet url")}};function setupNearWallet({walletUrl:v,iconUrl:k=icon$g,deprecated:ie=!1,successUrl:ae="",failureUrl:ce=""}={}){return fe=>__awaiter$h(this,void 0,void 0,function*(){const le=yield setupMyNearWallet({walletUrl:resolveWalletUrl$2(fe.options.network,v),iconUrl:k,successUrl:ae,failureUrl:ce})(fe);return le?Object.assign(Object.assign({},le),{id:"near-wallet",metadata:Object.assign(Object.assign({},le.metadata),{name:"NEAR Wallet",description:"Web wallet for NEAR Protocol",iconUrl:k,deprecated:ie,available:!0})}):null})}var require_is_mobile=__commonJS$1({"node_modules/is-mobile/index.js"(v,k){k.exports=fe,k.exports.isMobile=fe,k.exports.default=fe;var ie=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,ae=/CrOS/,ce=/android|ipad|playbook|silk/i;function fe(le){le||(le={});let ve=le.ua;if(!ve&&typeof navigator<"u"&&(ve=navigator.userAgent),ve&&ve.headers&&typeof ve.headers["user-agent"]=="string"&&(ve=ve.headers["user-agent"]),typeof ve!="string")return!1;let pe=ie.test(ve)&&!ae.test(ve)||!!le.tablet&&ce.test(ve);return!pe&&le.tablet&&le.featureDetect&&navigator&&navigator.maxTouchPoints>1&&ve.indexOf("Macintosh")!==-1&&ve.indexOf("Safari")!==-1&&(pe=!0),pe}}}),import_is_mobile$a=__toESM(require_is_mobile(),1),commonjsGlobal$e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$k$4=function(v){try{return!!v()}catch{return!0}},fails$j$5=fails$k$4,descriptors$d=!fails$j$5(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$i$5=fails$k$4,functionBindNative$d=!fails$i$5(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$8=functionBindNative$d,FunctionPrototype$2$8=Function.prototype,bind$3$8=FunctionPrototype$2$8.bind,call$d$7=FunctionPrototype$2$8.call,uncurryThis$j$5=NATIVE_BIND$3$8&&bind$3$8.bind(call$d$7,call$d$7),functionUncurryThis$d=NATIVE_BIND$3$8?function(v){return v&&uncurryThis$j$5(v)}:function(v){return v&&function(){return call$d$7.apply(v,arguments)}},$TypeError$a$8=TypeError,requireObjectCoercible$2$b=function(v){if(v==null)throw $TypeError$a$8("Can't call method on "+v);return v},requireObjectCoercible$1$d=requireObjectCoercible$2$b,$Object$4$8=Object,toObject$6$3=function(v){return $Object$4$8(requireObjectCoercible$1$d(v))},uncurryThis$i$5=functionUncurryThis$d,toObject$5$3=toObject$6$3,hasOwnProperty$d=uncurryThis$i$5({}.hasOwnProperty),hasOwnProperty_1$d=Object.hasOwn||function v(k,ie){return hasOwnProperty$d(toObject$5$3(k),ie)},DESCRIPTORS$d$3=descriptors$d,hasOwn$b$3=hasOwnProperty_1$d,FunctionPrototype$1$d=Function.prototype,getDescriptor$d=DESCRIPTORS$d$3&&Object.getOwnPropertyDescriptor,EXISTS$1$d=hasOwn$b$3(FunctionPrototype$1$d,"name"),PROPER$d=EXISTS$1$d&&function v(){}.name==="something",CONFIGURABLE$1$d=EXISTS$1$d&&(!DESCRIPTORS$d$3||DESCRIPTORS$d$3&&getDescriptor$d(FunctionPrototype$1$d,"name").configurable),functionName$d={EXISTS:EXISTS$1$d,PROPER:PROPER$d,CONFIGURABLE:CONFIGURABLE$1$d},isCallable$i$7=function(v){return typeof v=="function"},objectDefineProperty$d={},check$d=function(v){return v&&v.Math==Math&&v},global$h$8=check$d(typeof globalThis=="object"&&globalThis)||check$d(typeof window=="object"&&window)||check$d(typeof self=="object"&&self)||check$d(typeof commonjsGlobal$e=="object"&&commonjsGlobal$e)||function(){return this}()||Function("return this")(),isCallable$h$8=isCallable$i$7,isObject$a$3=function(v){return typeof v=="object"?v!==null:isCallable$h$8(v)},global$g$8=global$h$8,isObject$9$3=isObject$a$3,document$1$9=global$g$8.document,EXISTS$e=isObject$9$3(document$1$9)&&isObject$9$3(document$1$9.createElement),documentCreateElement$1$8=function(v){return EXISTS$e?document$1$9.createElement(v):{}},DESCRIPTORS$c$3=descriptors$d,fails$h$5=fails$k$4,createElement$e=documentCreateElement$1$8,ie8DomDefine$d=!DESCRIPTORS$c$3&&!fails$h$5(function(){return Object.defineProperty(createElement$e("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$b$3=descriptors$d,fails$g$5=fails$k$4,v8PrototypeDefineBug$d=DESCRIPTORS$b$3&&fails$g$5(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$8$4=isObject$a$3,$String$3$8=String,$TypeError$9$8=TypeError,anObject$a$7=function(v){if(isObject$8$4(v))return v;throw $TypeError$9$8($String$3$8(v)+" is not an object")},NATIVE_BIND$2$8=functionBindNative$d,call$c$8=Function.prototype.call,functionCall$d=NATIVE_BIND$2$8?call$c$8.bind(call$c$8):function(){return call$c$8.apply(call$c$8,arguments)},global$f$8=global$h$8,isCallable$g$8=isCallable$i$7,aFunction$d=function(v){return isCallable$g$8(v)?v:void 0},getBuiltIn$6$8=function(v,k){return arguments.length<2?aFunction$d(global$f$8[v]):global$f$8[v]&&global$f$8[v][k]},uncurryThis$h$5=functionUncurryThis$d,objectIsPrototypeOf$d=uncurryThis$h$5({}.isPrototypeOf),getBuiltIn$5$8=getBuiltIn$6$8,engineUserAgent$d=getBuiltIn$5$8("navigator","userAgent")||"",global$e$8=global$h$8,userAgent$2$8=engineUserAgent$d,process$e=global$e$8.process,Deno$9=global$e$8.Deno,versions$d=process$e&&process$e.versions||Deno$9&&Deno$9.version,v8$d=versions$d&&versions$d.v8,match$d,version$d;v8$d&&(match$d=v8$d.split("."),version$d=match$d[0]>0&&match$d[0]<4?1:+(match$d[0]+match$d[1]));!version$d&&userAgent$2$8&&(match$d=userAgent$2$8.match(/Edge\/(\d+)/),(!match$d||match$d[1]>=74)&&(match$d=userAgent$2$8.match(/Chrome\/(\d+)/),match$d&&(version$d=+match$d[1])));var engineV8Version$d=version$d,V8_VERSION$e=engineV8Version$d,fails$f$5=fails$k$4,nativeSymbol$d=!!Object.getOwnPropertySymbols&&!fails$f$5(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$e&&V8_VERSION$e<41}),NATIVE_SYMBOL$1$d=nativeSymbol$d,useSymbolAsUid$d=NATIVE_SYMBOL$1$d&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$4$9=getBuiltIn$6$8,isCallable$f$9=isCallable$i$7,isPrototypeOf$4$3=objectIsPrototypeOf$d,USE_SYMBOL_AS_UID$1$d=useSymbolAsUid$d,$Object$3$a=Object,isSymbol$3$3=USE_SYMBOL_AS_UID$1$d?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$4$9("Symbol");return isCallable$f$9(k)&&isPrototypeOf$4$3(k.prototype,$Object$3$a(v))},$String$2$c=String,tryToString$4$8=function(v){try{return $String$2$c(v)}catch{return"Object"}},isCallable$e$9=isCallable$i$7,tryToString$3$8=tryToString$4$8,$TypeError$8$8=TypeError,aCallable$4$8=function(v){if(isCallable$e$9(v))return v;throw $TypeError$8$8(tryToString$3$8(v)+" is not a function")},aCallable$3$8=aCallable$4$8,getMethod$2$8=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$3$8(ie)},call$b$8=functionCall$d,isCallable$d$9=isCallable$i$7,isObject$7$8=isObject$a$3,$TypeError$7$8=TypeError,ordinaryToPrimitive$1$d=function(v,k){var ie,ae;if(k==="string"&&isCallable$d$9(ie=v.toString)&&!isObject$7$8(ae=call$b$8(ie,v))||isCallable$d$9(ie=v.valueOf)&&!isObject$7$8(ae=call$b$8(ie,v))||k!=="string"&&isCallable$d$9(ie=v.toString)&&!isObject$7$8(ae=call$b$8(ie,v)))return ae;throw $TypeError$7$8("Can't convert object to primitive value")},shared$3$d={exports:{}},global$d$8=global$h$8,defineProperty$7$3=Object.defineProperty,defineGlobalProperty$3$b=function(v,k){try{defineProperty$7$3(global$d$8,v,{value:k,configurable:!0,writable:!0})}catch{global$d$8[v]=k}return k},global$c$8=global$h$8,defineGlobalProperty$2$d=defineGlobalProperty$3$b,SHARED$d="__core-js_shared__",store$3$d=global$c$8[SHARED$d]||defineGlobalProperty$2$d(SHARED$d,{}),sharedStore$d=store$3$d,store$2$d=sharedStore$d;(shared$3$d.exports=function(v,k){return store$2$d[v]||(store$2$d[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var uncurryThis$g$5=functionUncurryThis$d,id$f=0,postfix$d=Math.random(),toString$2$b=uncurryThis$g$5(1 .toString),uid$3$3=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$2$b(++id$f+postfix$d,36)},global$b$9=global$h$8,shared$2$d=shared$3$d.exports,hasOwn$a$7=hasOwnProperty_1$d,uid$2$d=uid$3$3,NATIVE_SYMBOL$e=nativeSymbol$d,USE_SYMBOL_AS_UID$e=useSymbolAsUid$d,WellKnownSymbolsStore$d=shared$2$d("wks"),Symbol$1$d=global$b$9.Symbol,symbolFor$d=Symbol$1$d&&Symbol$1$d.for,createWellKnownSymbol$d=USE_SYMBOL_AS_UID$e?Symbol$1$d:Symbol$1$d&&Symbol$1$d.withoutSetter||uid$2$d,wellKnownSymbol$e$7=function(v){if(!hasOwn$a$7(WellKnownSymbolsStore$d,v)||!(NATIVE_SYMBOL$e||typeof WellKnownSymbolsStore$d[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$e&&hasOwn$a$7(Symbol$1$d,v)?WellKnownSymbolsStore$d[v]=Symbol$1$d[v]:USE_SYMBOL_AS_UID$e&&symbolFor$d?WellKnownSymbolsStore$d[v]=symbolFor$d(k):WellKnownSymbolsStore$d[v]=createWellKnownSymbol$d(k)}return WellKnownSymbolsStore$d[v]},call$a$8=functionCall$d,isObject$6$8=isObject$a$3,isSymbol$2$d=isSymbol$3$3,getMethod$1$d=getMethod$2$8,ordinaryToPrimitive$e=ordinaryToPrimitive$1$d,wellKnownSymbol$d$7=wellKnownSymbol$e$7,$TypeError$6$9=TypeError,TO_PRIMITIVE$d=wellKnownSymbol$d$7("toPrimitive"),toPrimitive$2$3=function(v,k){if(!isObject$6$8(v)||isSymbol$2$d(v))return v;var ie=getMethod$1$d(v,TO_PRIMITIVE$d),ae;if(ie){if(k===void 0&&(k="default"),ae=call$a$8(ie,v,k),!isObject$6$8(ae)||isSymbol$2$d(ae))return ae;throw $TypeError$6$9("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$e(v,k)},toPrimitive$1$d=toPrimitive$2$3,isSymbol$1$d=isSymbol$3$3,toPropertyKey$4$3=function(v){var k=toPrimitive$1$d(v,"string");return isSymbol$1$d(k)?k:k+""},DESCRIPTORS$a$7=descriptors$d,IE8_DOM_DEFINE$1$b=ie8DomDefine$d,V8_PROTOTYPE_DEFINE_BUG$1$8=v8PrototypeDefineBug$d,anObject$9$7=anObject$a$7,toPropertyKey$3$4=toPropertyKey$4$3,$TypeError$5$d=TypeError,$defineProperty$d=Object.defineProperty,$getOwnPropertyDescriptor$1$b=Object.getOwnPropertyDescriptor,ENUMERABLE$d="enumerable",CONFIGURABLE$e="configurable",WRITABLE$d="writable";objectDefineProperty$d.f=DESCRIPTORS$a$7?V8_PROTOTYPE_DEFINE_BUG$1$8?function v(k,ie,ae){if(anObject$9$7(k),ie=toPropertyKey$3$4(ie),anObject$9$7(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$d in ae&&!ae[WRITABLE$d]){var ce=$getOwnPropertyDescriptor$1$b(k,ie);ce&&ce[WRITABLE$d]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$e in ae?ae[CONFIGURABLE$e]:ce[CONFIGURABLE$e],enumerable:ENUMERABLE$d in ae?ae[ENUMERABLE$d]:ce[ENUMERABLE$d],writable:!1})}return $defineProperty$d(k,ie,ae)}:$defineProperty$d:function v(k,ie,ae){if(anObject$9$7(k),ie=toPropertyKey$3$4(ie),anObject$9$7(ae),IE8_DOM_DEFINE$1$b)try{return $defineProperty$d(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$5$d("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var makeBuiltIn$2$d={exports:{}},uncurryThis$f$5=functionUncurryThis$d,isCallable$c$9=isCallable$i$7,store$1$d=sharedStore$d,functionToString$d=uncurryThis$f$5(Function.toString);isCallable$c$9(store$1$d.inspectSource)||(store$1$d.inspectSource=function(v){return functionToString$d(v)});var inspectSource$3$8=store$1$d.inspectSource,global$a$b=global$h$8,isCallable$b$a=isCallable$i$7,inspectSource$2$d=inspectSource$3$8,WeakMap$1$d=global$a$b.WeakMap,nativeWeakMap$d=isCallable$b$a(WeakMap$1$d)&&/native code/.test(inspectSource$2$d(WeakMap$1$d)),createPropertyDescriptor$5$3=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$9$7=descriptors$d,definePropertyModule$6$3=objectDefineProperty$d,createPropertyDescriptor$4$4=createPropertyDescriptor$5$3,createNonEnumerableProperty$6$3=DESCRIPTORS$9$7?function(v,k,ie){return definePropertyModule$6$3.f(v,k,createPropertyDescriptor$4$4(1,ie))}:function(v,k,ie){return v[k]=ie,v},shared$1$d=shared$3$d.exports,uid$1$d=uid$3$3,keys$1$3=shared$1$d("keys"),sharedKey$3$8=function(v){return keys$1$3[v]||(keys$1$3[v]=uid$1$d(v))},hiddenKeys$4$8={},NATIVE_WEAK_MAP$d=nativeWeakMap$d,global$9$d=global$h$8,uncurryThis$e$7=functionUncurryThis$d,isObject$5$d=isObject$a$3,createNonEnumerableProperty$5$5=createNonEnumerableProperty$6$3,hasOwn$9$8=hasOwnProperty_1$d,shared$g=sharedStore$d,sharedKey$2$8=sharedKey$3$8,hiddenKeys$3$b=hiddenKeys$4$8,OBJECT_ALREADY_INITIALIZED$d="Object already initialized",TypeError$2$8=global$9$d.TypeError,WeakMap$f=global$9$d.WeakMap,set$1$8,get$1$3,has$d,enforce$d=function(v){return has$d(v)?get$1$3(v):set$1$8(v,{})},getterFor$d=function(v){return function(k){var ie;if(!isObject$5$d(k)||(ie=get$1$3(k)).type!==v)throw TypeError$2$8("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$d||shared$g.state?(store$g=shared$g.state||(shared$g.state=new WeakMap$f),wmget$d=uncurryThis$e$7(store$g.get),wmhas$d=uncurryThis$e$7(store$g.has),wmset$d=uncurryThis$e$7(store$g.set),set$1$8=function(v,k){if(wmhas$d(store$g,v))throw new TypeError$2$8(OBJECT_ALREADY_INITIALIZED$d);return k.facade=v,wmset$d(store$g,v,k),k},get$1$3=function(v){return wmget$d(store$g,v)||{}},has$d=function(v){return wmhas$d(store$g,v)}):(STATE$d=sharedKey$2$8("state"),hiddenKeys$3$b[STATE$d]=!0,set$1$8=function(v,k){if(hasOwn$9$8(v,STATE$d))throw new TypeError$2$8(OBJECT_ALREADY_INITIALIZED$d);return k.facade=v,createNonEnumerableProperty$5$5(v,STATE$d,k),k},get$1$3=function(v){return hasOwn$9$8(v,STATE$d)?v[STATE$d]:{}},has$d=function(v){return hasOwn$9$8(v,STATE$d)});var store$g,wmget$d,wmhas$d,wmset$d,STATE$d,internalState$d={set:set$1$8,get:get$1$3,has:has$d,enforce:enforce$d,getterFor:getterFor$d},fails$e$7=fails$k$4,isCallable$a$d=isCallable$i$7,hasOwn$8$9=hasOwnProperty_1$d,DESCRIPTORS$8$8=descriptors$d,CONFIGURABLE_FUNCTION_NAME$2$3=functionName$d.CONFIGURABLE,inspectSource$1$d=inspectSource$3$8,InternalStateModule$4$3=internalState$d,enforceInternalState$2$3=InternalStateModule$4$3.enforce,getInternalState$4$3=InternalStateModule$4$3.get,defineProperty$6$3=Object.defineProperty,CONFIGURABLE_LENGTH$d=DESCRIPTORS$8$8&&!fails$e$7(function(){return defineProperty$6$3(function(){},"length",{value:8}).length!==8}),TEMPLATE$d=String(String).split("String"),makeBuiltIn$1$d=makeBuiltIn$2$d.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$8$9(v,"name")||CONFIGURABLE_FUNCTION_NAME$2$3&&v.name!==k)&&(DESCRIPTORS$8$8?defineProperty$6$3(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$d&&ie&&hasOwn$8$9(ie,"arity")&&v.length!==ie.arity&&defineProperty$6$3(v,"length",{value:ie.arity});try{ie&&hasOwn$8$9(ie,"constructor")&&ie.constructor?DESCRIPTORS$8$8&&defineProperty$6$3(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$2$3(v);return hasOwn$8$9(ae,"source")||(ae.source=TEMPLATE$d.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$d(function v(){return isCallable$a$d(this)&&getInternalState$4$3(this).source||inspectSource$1$d(this)},"toString");var isCallable$9$d=isCallable$i$7,definePropertyModule$5$4=objectDefineProperty$d,makeBuiltIn$f=makeBuiltIn$2$d.exports,defineGlobalProperty$1$d=defineGlobalProperty$3$b,defineBuiltIn$6$7=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$9$d(ie)&&makeBuiltIn$f(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$d(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$5$4.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},wellKnownSymbol$c$7=wellKnownSymbol$e$7,TO_STRING_TAG$3$8=wellKnownSymbol$c$7("toStringTag"),test$c={};test$c[TO_STRING_TAG$3$8]="z";var toStringTagSupport$c=String(test$c)==="[object z]",uncurryThis$d$8=functionUncurryThis$d,toString$1$d=uncurryThis$d$8({}.toString),stringSlice$d=uncurryThis$d$8("".slice),classofRaw$1$c=function(v){return stringSlice$d(toString$1$d(v),8,-1)},TO_STRING_TAG_SUPPORT$c=toStringTagSupport$c,isCallable$8$d=isCallable$i$7,classofRaw$e=classofRaw$1$c,wellKnownSymbol$b$7=wellKnownSymbol$e$7,TO_STRING_TAG$2$9=wellKnownSymbol$b$7("toStringTag"),$Object$2$d=Object,CORRECT_ARGUMENTS$c=classofRaw$e(function(){return arguments}())=="Arguments",tryGet$c=function(v,k){try{return v[k]}catch{}},classof$8$3=TO_STRING_TAG_SUPPORT$c?classofRaw$e:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$c(k=$Object$2$d(v),TO_STRING_TAG$2$9))=="string"?ie:CORRECT_ARGUMENTS$c?classofRaw$e(k):(ae=classofRaw$e(k))=="Object"&&isCallable$8$d(k.callee)?"Arguments":ae},classof$7$4=classof$8$3,$String$1$d=String,toString2$b=function(v){if(classof$7$4(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$1$d(v)},anObject$8$8=anObject$a$7,regexpFlags$b=function(){var v=anObject$8$8(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$9$8=functionCall$d,hasOwn$7$a=hasOwnProperty_1$d,isPrototypeOf$3$7=objectIsPrototypeOf$d,regExpFlags$b=regexpFlags$b,RegExpPrototype$1$b=RegExp.prototype,regexpGetFlags$b=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$b)&&!hasOwn$7$a(v,"flags")&&isPrototypeOf$3$7(RegExpPrototype$1$b,v)?call$9$8(regExpFlags$b,v):k},PROPER_FUNCTION_NAME$2$3=functionName$d.PROPER,defineBuiltIn$5$7=defineBuiltIn$6$7,anObject$7$9=anObject$a$7,$toString$b=toString2$b,fails$d$7=fails$k$4,getRegExpFlags$b=regexpGetFlags$b,TO_STRING$b="toString",RegExpPrototype$c=RegExp.prototype,n$ToString$b=RegExpPrototype$c[TO_STRING$b],NOT_GENERIC$b=fails$d$7(function(){return n$ToString$b.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$b=PROPER_FUNCTION_NAME$2$3&&n$ToString$b.name!=TO_STRING$b;(NOT_GENERIC$b||INCORRECT_NAME$b)&&defineBuiltIn$5$7(RegExp.prototype,TO_STRING$b,function(){var k=anObject$7$9(this),ie=$toString$b(k.source),ae=$toString$b(getRegExpFlags$b(k));return"/"+ie+"/"+ae},{unsafe:!0});var uncurryThis$c$8=functionUncurryThis$d,fails$c$7=fails$k$4,classof$6$5=classofRaw$1$c,$Object$1$d=Object,split$b=uncurryThis$c$8("".split),indexedObject$b=fails$c$7(function(){return!$Object$1$d("z").propertyIsEnumerable(0)})?function(v){return classof$6$5(v)=="String"?split$b(v,""):$Object$1$d(v)}:$Object$1$d,IndexedObject$2$3=indexedObject$b,requireObjectCoercible$f=requireObjectCoercible$2$b,toIndexedObject$6$3=function(v){return IndexedObject$2$3(requireObjectCoercible$f(v))},objectDefineProperties$8={},ceil$b=Math.ceil,floor$3$3=Math.floor,mathTrunc$b=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$3$3:ceil$b)(ie)},trunc2$b=mathTrunc$b,toIntegerOrInfinity$5$3=function(v){var k=+v;return k!==k||k===0?0:trunc2$b(k)},toIntegerOrInfinity$4$4=toIntegerOrInfinity$5$3,max$1$5=Math.max,min$1$b=Math.min,toAbsoluteIndex$4$3=function(v,k){var ie=toIntegerOrInfinity$4$4(v);return ie<0?max$1$5(ie+k,0):min$1$b(ie,k)},toIntegerOrInfinity$3$5=toIntegerOrInfinity$5$3,min$c=Math.min,toLength$5$3=function(v){return v>0?min$c(toIntegerOrInfinity$3$5(v),9007199254740991):0},toLength$4$3=toLength$5$3,lengthOfArrayLike$6$3=function(v){return toLength$4$3(v.length)},toIndexedObject$5$8=toIndexedObject$6$3,toAbsoluteIndex$3$3=toAbsoluteIndex$4$3,lengthOfArrayLike$5$3=lengthOfArrayLike$6$3,createMethod$1$5=function(v){return function(k,ie,ae){var ce=toIndexedObject$5$8(k),fe=lengthOfArrayLike$5$3(ce),le=toAbsoluteIndex$3$3(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$b={includes:createMethod$1$5(!0),indexOf:createMethod$1$5(!1)},uncurryThis$b$8=functionUncurryThis$d,hasOwn$6$b=hasOwnProperty_1$d,toIndexedObject$4$8=toIndexedObject$6$3,indexOf$b=arrayIncludes$b.indexOf,hiddenKeys$2$b=hiddenKeys$4$8,push$1$5=uncurryThis$b$8([].push),objectKeysInternal$b=function(v,k){var ie=toIndexedObject$4$8(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$6$b(hiddenKeys$2$b,fe)&&hasOwn$6$b(ie,fe)&&push$1$5(ce,fe);for(;k.length>ae;)hasOwn$6$b(ie,fe=k[ae++])&&(~indexOf$b(ce,fe)||push$1$5(ce,fe));return ce},enumBugKeys$3$8=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$a=objectKeysInternal$b,enumBugKeys$2$a=enumBugKeys$3$8,objectKeys$2$7=Object.keys||function v(k){return internalObjectKeys$1$a(k,enumBugKeys$2$a)},DESCRIPTORS$7$b=descriptors$d,V8_PROTOTYPE_DEFINE_BUG$e=v8PrototypeDefineBug$d,definePropertyModule$4$7=objectDefineProperty$d,anObject$6$9=anObject$a$7,toIndexedObject$3$b=toIndexedObject$6$3,objectKeys$1$a=objectKeys$2$7;objectDefineProperties$8.f=DESCRIPTORS$7$b&&!V8_PROTOTYPE_DEFINE_BUG$e?Object.defineProperties:function v(k,ie){anObject$6$9(k);for(var ae=toIndexedObject$3$b(ie),ce=objectKeys$1$a(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$4$7.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$3$b=getBuiltIn$6$8,html$1$9=getBuiltIn$3$b("document","documentElement"),anObject$5$9=anObject$a$7,definePropertiesModule$8=objectDefineProperties$8,enumBugKeys$1$b=enumBugKeys$3$8,hiddenKeys$1$b=hiddenKeys$4$8,html$a=html$1$9,documentCreateElement$e=documentCreateElement$1$8,sharedKey$1$d=sharedKey$3$8,GT$8=">",LT$8="<",PROTOTYPE$1$3="prototype",SCRIPT$8="script",IE_PROTO$1$8=sharedKey$1$d("IE_PROTO"),EmptyConstructor$8=function(){},scriptTag$8=function(v){return LT$8+SCRIPT$8+GT$8+v+LT$8+"/"+SCRIPT$8+GT$8},NullProtoObjectViaActiveX$8=function(v){v.write(scriptTag$8("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$8=function(){var v=documentCreateElement$e("iframe"),k="java"+SCRIPT$8+":",ie;return v.style.display="none",html$a.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$8("document.F=Object")),ie.close(),ie.F},activeXDocument$8,NullProtoObject$8=function(){try{activeXDocument$8=new ActiveXObject("htmlfile")}catch{}NullProtoObject$8=typeof document<"u"?document.domain&&activeXDocument$8?NullProtoObjectViaActiveX$8(activeXDocument$8):NullProtoObjectViaIFrame$8():NullProtoObjectViaActiveX$8(activeXDocument$8);for(var v=enumBugKeys$1$b.length;v--;)delete NullProtoObject$8[PROTOTYPE$1$3][enumBugKeys$1$b[v]];return NullProtoObject$8()};hiddenKeys$1$b[IE_PROTO$1$8]=!0;var objectCreate$8=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$8[PROTOTYPE$1$3]=anObject$5$9(k),ae=new EmptyConstructor$8,EmptyConstructor$8[PROTOTYPE$1$3]=null,ae[IE_PROTO$1$8]=k):ae=NullProtoObject$8(),ie===void 0?ae:definePropertiesModule$8.f(ae,ie)},wellKnownSymbol$a$8=wellKnownSymbol$e$7,create$2$5=objectCreate$8,defineProperty$5$7=objectDefineProperty$d.f,UNSCOPABLES$8=wellKnownSymbol$a$8("unscopables"),ArrayPrototype$1$7=Array.prototype;ArrayPrototype$1$7[UNSCOPABLES$8]==null&&defineProperty$5$7(ArrayPrototype$1$7,UNSCOPABLES$8,{configurable:!0,value:create$2$5(null)});var addToUnscopables$1$8=function(v){ArrayPrototype$1$7[UNSCOPABLES$8][v]=!0},iterators$9={},objectGetOwnPropertyDescriptor$b={},objectPropertyIsEnumerable$b={},$propertyIsEnumerable$b={}.propertyIsEnumerable,getOwnPropertyDescriptor$1$b=Object.getOwnPropertyDescriptor,NASHORN_BUG$b=getOwnPropertyDescriptor$1$b&&!$propertyIsEnumerable$b.call({1:2},1);objectPropertyIsEnumerable$b.f=NASHORN_BUG$b?function v(k){var ie=getOwnPropertyDescriptor$1$b(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$b;var DESCRIPTORS$6$b=descriptors$d,call$8$8=functionCall$d,propertyIsEnumerableModule$1$9=objectPropertyIsEnumerable$b,createPropertyDescriptor$3$8=createPropertyDescriptor$5$3,toIndexedObject$2$b=toIndexedObject$6$3,toPropertyKey$2$b=toPropertyKey$4$3,hasOwn$5$b=hasOwnProperty_1$d,IE8_DOM_DEFINE$e=ie8DomDefine$d,$getOwnPropertyDescriptor$e=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$b.f=DESCRIPTORS$6$b?$getOwnPropertyDescriptor$e:function v(k,ie){if(k=toIndexedObject$2$b(k),ie=toPropertyKey$2$b(ie),IE8_DOM_DEFINE$e)try{return $getOwnPropertyDescriptor$e(k,ie)}catch{}if(hasOwn$5$b(k,ie))return createPropertyDescriptor$3$8(!call$8$8(propertyIsEnumerableModule$1$9.f,k,ie),k[ie])};var objectGetOwnPropertyNames$b={},internalObjectKeys$c=objectKeysInternal$b,enumBugKeys$e=enumBugKeys$3$8,hiddenKeys$f=enumBugKeys$e.concat("length","prototype");objectGetOwnPropertyNames$b.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$c(k,hiddenKeys$f)};var objectGetOwnPropertySymbols$b={};objectGetOwnPropertySymbols$b.f=Object.getOwnPropertySymbols;var getBuiltIn$2$d=getBuiltIn$6$8,uncurryThis$a$b=functionUncurryThis$d,getOwnPropertyNamesModule$b=objectGetOwnPropertyNames$b,getOwnPropertySymbolsModule$1$9=objectGetOwnPropertySymbols$b,anObject$4$a=anObject$a$7,concat$1$9=uncurryThis$a$b([].concat),ownKeys$1$b=getBuiltIn$2$d("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$b.f(anObject$4$a(k)),ae=getOwnPropertySymbolsModule$1$9.f;return ae?concat$1$9(ie,ae(k)):ie},hasOwn$4$d=hasOwnProperty_1$d,ownKeys2$b=ownKeys$1$b,getOwnPropertyDescriptorModule$1$3=objectGetOwnPropertyDescriptor$b,definePropertyModule$3$9=objectDefineProperty$d,copyConstructorProperties$1$b=function(v,k,ie){for(var ae=ownKeys2$b(k),ce=definePropertyModule$3$9.f,fe=getOwnPropertyDescriptorModule$1$3.f,le=0;le=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values");var values$8=Iterators$2$8.Arguments=Iterators$2$8.Array;addToUnscopables$9("keys");addToUnscopables$9("values");addToUnscopables$9("entries");if(DESCRIPTORS$5$d&&values$8.name!=="values")try{defineProperty$3$8(values$8,"name",{value:"values"})}catch(v){}var arrayBufferNative$3=typeof ArrayBuffer<"u"&&typeof DataView<"u",defineBuiltIn$1$d=defineBuiltIn$6$7,defineBuiltIns$1$3=function(v,k,ie){for(var ae in k)defineBuiltIn$1$d(v,ae,k[ae],ie);return v},isPrototypeOf$2$8=objectIsPrototypeOf$d,$TypeError$3$d=TypeError,anInstance$2$3=function(v,k){if(isPrototypeOf$2$8(k,v))return v;throw $TypeError$3$d("Incorrect invocation")},toIntegerOrInfinity$2$b=toIntegerOrInfinity$5$3,toLength$3$3=toLength$5$3,$RangeError$2$3=RangeError,toIndex$2$3=function(v){if(v===void 0)return 0;var k=toIntegerOrInfinity$2$b(v),ie=toLength$3$3(k);if(k!==ie)throw $RangeError$2$3("Wrong length or index");return ie},$Array$2$3=Array,abs$3=Math.abs,pow$3=Math.pow,floor$2$3=Math.floor,log$3=Math.log,LN2$3=Math.LN2,pack$4=function(v,k,ie){var ae=$Array$2$3(ie),ce=ie*8-k-1,fe=(1<>1,ve=k===23?pow$3(2,-24)-pow$3(2,-77):0,pe=v<0||v===0&&1/v<0?1:0,ye=0,me,Ee,cr;for(v=abs$3(v),v!=v||v===1/0?(Ee=v!=v?1:0,me=fe):(me=floor$2$3(log$3(v)/LN2$3),cr=pow$3(2,-me),v*cr<1&&(me--,cr*=2),me+le>=1?v+=ve/cr:v+=ve*pow$3(2,1-le),v*cr>=2&&(me++,cr/=2),me+le>=fe?(Ee=0,me=fe):me+le>=1?(Ee=(v*cr-1)*pow$3(2,k),me=me+le):(Ee=v*pow$3(2,le-1)*pow$3(2,k),me=0));k>=8;)ae[ye++]=Ee&255,Ee/=256,k-=8;for(me=me<0;)ae[ye++]=me&255,me/=256,ce-=8;return ae[--ye]|=pe*128,ae},unpack$4=function(v,k){var ie=v.length,ae=ie*8-k-1,ce=(1<>1,le=ae-7,ve=ie-1,pe=v[ve--],ye=pe&127,me;for(pe>>=7;le>0;)ye=ye*256+v[ve--],le-=8;for(me=ye&(1<<-le)-1,ye>>=-le,le+=k;le>0;)me=me*256+v[ve--],le-=8;if(ye===0)ye=1-fe;else{if(ye===ce)return me?NaN:pe?-1/0:1/0;me=me+pow$3(2,k),ye=ye-fe}return(pe?-1:1)*me*pow$3(2,ye-k)},ieee754$3={pack:pack$4,unpack:unpack$4},toObject$3$7=toObject$6$3,toAbsoluteIndex$2$4=toAbsoluteIndex$4$3,lengthOfArrayLike$4$3=lengthOfArrayLike$6$3,arrayFill$1$3=function v(k){for(var ie=toObject$3$7(this),ae=lengthOfArrayLike$4$3(ie),ce=arguments.length,fe=toAbsoluteIndex$2$4(ce>1?arguments[1]:void 0,ae),le=ce>2?arguments[2]:void 0,ve=le===void 0?ae:toAbsoluteIndex$2$4(le,ae);ve>fe;)ie[fe++]=k;return ie},toPropertyKey$1$d=toPropertyKey$4$3,definePropertyModule$2$b=objectDefineProperty$d,createPropertyDescriptor$1$d=createPropertyDescriptor$5$3,createProperty$1$4=function(v,k,ie){var ae=toPropertyKey$1$d(k);ae in v?definePropertyModule$2$b.f(v,ae,createPropertyDescriptor$1$d(0,ie)):v[ae]=ie},toAbsoluteIndex$1$b=toAbsoluteIndex$4$3,lengthOfArrayLike$3$4=lengthOfArrayLike$6$3,createProperty$5=createProperty$1$4,$Array$1$3=Array,max$c=Math.max,arraySliceSimple$4=function(v,k,ie){for(var ae=lengthOfArrayLike$3$4(v),ce=toAbsoluteIndex$1$b(k,ae),fe=toAbsoluteIndex$1$b(ie===void 0?ae:ie,ae),le=$Array$1$3(max$c(fe-ce,0)),ve=0;ce>8&255]},packInt32$3=function(v){return[v&255,v>>8&255,v>>16&255,v>>24&255]},unpackInt32$3=function(v){return v[3]<<24|v[2]<<16|v[1]<<8|v[0]},packFloat32$3=function(v){return packIEEE754$3(v,23,4)},packFloat64$3=function(v){return packIEEE754$3(v,52,8)},addGetter$1$3=function(v,k){defineProperty$2$b(v[PROTOTYPE$9],k,{get:function(){return getInternalState$2$5(this)[k]}})},get$e=function(v,k,ie,ae){var ce=toIndex$1$3(ie),fe=getInternalState$2$5(v);if(ce+k>fe.byteLength)throw RangeError$3$3(WRONG_INDEX$3);var le=getInternalState$2$5(fe.buffer).bytes,ve=ce+fe.byteOffset,pe=arraySlice$3$3(le,ve,ve+k);return ae?pe:reverse$3(pe)},set$e=function(v,k,ie,ae,ce,fe){var le=toIndex$1$3(ie),ve=getInternalState$2$5(v);if(le+k>ve.byteLength)throw RangeError$3$3(WRONG_INDEX$3);for(var pe=getInternalState$2$5(ve.buffer).bytes,ye=le+ve.byteOffset,me=ae(+ce),Ee=0;Eece)throw RangeError$3$3("Wrong offset");if(ae=ae===void 0?ce-fe:toLength$2$5(ae),fe+ae>ce)throw RangeError$3$3(WRONG_LENGTH$1$3);setInternalState$1$7(this,{buffer:k,byteLength:ae,byteOffset:fe}),DESCRIPTORS$4$d||(this.buffer=k,this.byteLength=ae,this.byteOffset=fe)},DataViewPrototype$1$3=$DataView$3[PROTOTYPE$9],DESCRIPTORS$4$d&&(addGetter$1$3($ArrayBuffer$3,"byteLength"),addGetter$1$3($DataView$3,"buffer"),addGetter$1$3($DataView$3,"byteLength"),addGetter$1$3($DataView$3,"byteOffset")),defineBuiltIns$4(DataViewPrototype$1$3,{getInt8:function(k){return get$e(this,1,k)[0]<<24>>24},getUint8:function(k){return get$e(this,1,k)[0]},getInt16:function(k){var ie=get$e(this,2,k,arguments.length>1?arguments[1]:void 0);return(ie[1]<<8|ie[0])<<16>>16},getUint16:function(k){var ie=get$e(this,2,k,arguments.length>1?arguments[1]:void 0);return ie[1]<<8|ie[0]},getInt32:function(k){return unpackInt32$3(get$e(this,4,k,arguments.length>1?arguments[1]:void 0))},getUint32:function(k){return unpackInt32$3(get$e(this,4,k,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(k){return unpackIEEE754$3(get$e(this,4,k,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(k){return unpackIEEE754$3(get$e(this,8,k,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(k,ie){set$e(this,1,k,packInt8$3,ie)},setUint8:function(k,ie){set$e(this,1,k,packInt8$3,ie)},setInt16:function(k,ie){set$e(this,2,k,packInt16$3,ie,arguments.length>2?arguments[2]:void 0)},setUint16:function(k,ie){set$e(this,2,k,packInt16$3,ie,arguments.length>2?arguments[2]:void 0)},setInt32:function(k,ie){set$e(this,4,k,packInt32$3,ie,arguments.length>2?arguments[2]:void 0)},setUint32:function(k,ie){set$e(this,4,k,packInt32$3,ie,arguments.length>2?arguments[2]:void 0)},setFloat32:function(k,ie){set$e(this,4,k,packFloat32$3,ie,arguments.length>2?arguments[2]:void 0)},setFloat64:function(k,ie){set$e(this,8,k,packFloat64$3,ie,arguments.length>2?arguments[2]:void 0)}});else{if(INCORRECT_ARRAY_BUFFER_NAME$3=PROPER_FUNCTION_NAME$d&&NativeArrayBuffer$3.name!==ARRAY_BUFFER$3,!fails$8$b(function(){NativeArrayBuffer$3(1)})||!fails$8$b(function(){new NativeArrayBuffer$3(-1)})||fails$8$b(function(){return new NativeArrayBuffer$3,new NativeArrayBuffer$3(1.5),new NativeArrayBuffer$3(NaN),INCORRECT_ARRAY_BUFFER_NAME$3&&!CONFIGURABLE_FUNCTION_NAME$f})){for($ArrayBuffer$3=function(k){return anInstance$1$8(this,ArrayBufferPrototype$1$3),new NativeArrayBuffer$3(toIndex$1$3(k))},$ArrayBuffer$3[PROTOTYPE$9]=ArrayBufferPrototype$1$3,keys2$4=getOwnPropertyNames$1$3(NativeArrayBuffer$3),j$5=0;keys2$4.length>j$5;)(key$4=keys2$4[j$5++])in $ArrayBuffer$3||createNonEnumerableProperty$2$b($ArrayBuffer$3,key$4,NativeArrayBuffer$3[key$4]);ArrayBufferPrototype$1$3.constructor=$ArrayBuffer$3}else INCORRECT_ARRAY_BUFFER_NAME$3&&CONFIGURABLE_FUNCTION_NAME$f&&createNonEnumerableProperty$2$b(NativeArrayBuffer$3,"name",ARRAY_BUFFER$3);setPrototypeOf$3$3&&getPrototypeOf$1$8(DataViewPrototype$1$3)!==ObjectPrototype$1$3&&setPrototypeOf$3$3(DataViewPrototype$1$3,ObjectPrototype$1$3),testView$3=new $DataView$3(new $ArrayBuffer$3(2)),$setInt8$3=uncurryThis$8$b(DataViewPrototype$1$3.setInt8),testView$3.setInt8(0,2147483648),testView$3.setInt8(1,2147483649),(testView$3.getInt8(0)||!testView$3.getInt8(1))&&defineBuiltIns$4(DataViewPrototype$1$3,{setInt8:function(k,ie){$setInt8$3(this,k,ie<<24>>24)},setUint8:function(k,ie){$setInt8$3(this,k,ie<<24>>24)}},{unsafe:!0})}var INCORRECT_ARRAY_BUFFER_NAME$3,keys2$4,j$5,key$4,testView$3,$setInt8$3;setToStringTag$c($ArrayBuffer$3,ARRAY_BUFFER$3);setToStringTag$c($DataView$3,DATA_VIEW$3);var arrayBuffer$3={ArrayBuffer:$ArrayBuffer$3,DataView:$DataView$3},uncurryThis$7$b=functionUncurryThis$d,fails$7$d=fails$k$4,isCallable$2$d=isCallable$i$7,classof$5$7=classof$8$3,getBuiltIn$1$d=getBuiltIn$6$8,inspectSource$h=inspectSource$3$8,noop$8=function(){},empty$7=[],construct$8=getBuiltIn$1$d("Reflect","construct"),constructorRegExp$8=/^\s*(?:class|function)\b/,exec$9=uncurryThis$7$b(constructorRegExp$8.exec),INCORRECT_TO_STRING$8=!constructorRegExp$8.exec(noop$8),isConstructorModern$8=function v(k){if(!isCallable$2$d(k))return!1;try{return construct$8(noop$8,empty$7,k),!0}catch{return!1}},isConstructorLegacy$8=function v(k){if(!isCallable$2$d(k))return!1;switch(classof$5$7(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$8||!!exec$9(constructorRegExp$8,inspectSource$h(k))}catch{return!0}};isConstructorLegacy$8.sham=!0;var isConstructor$2$3=!construct$8||fails$7$d(function(){var v;return isConstructorModern$8(isConstructorModern$8.call)||!isConstructorModern$8(Object)||!isConstructorModern$8(function(){v=!0})||v})?isConstructorLegacy$8:isConstructorModern$8,isConstructor$1$8=isConstructor$2$3,tryToString$2$8=tryToString$4$8,$TypeError$2$d=TypeError,aConstructor$2$3=function(v){if(isConstructor$1$8(v))return v;throw $TypeError$2$d(tryToString$2$8(v)+" is not a constructor")},anObject$2$d=anObject$a$7,aConstructor$1$8=aConstructor$2$3,wellKnownSymbol$6$9=wellKnownSymbol$e$7,SPECIES$2$8=wellKnownSymbol$6$9("species"),speciesConstructor$1$8=function(v,k){var ie=anObject$2$d(v).constructor,ae;return ie===void 0||(ae=anObject$2$d(ie)[SPECIES$2$8])==null?k:aConstructor$1$8(ae)},$$2$8=_export$b,uncurryThis$6$d=functionUncurryThis$d,fails$6$d=fails$k$4,ArrayBufferModule$1$3=arrayBuffer$3,anObject$1$d=anObject$a$7,toAbsoluteIndex$f=toAbsoluteIndex$4$3,toLength$1$b=toLength$5$3,speciesConstructor$9=speciesConstructor$1$8,ArrayBuffer$3$3=ArrayBufferModule$1$3.ArrayBuffer,DataView$2$3=ArrayBufferModule$1$3.DataView,DataViewPrototype$4=DataView$2$3.prototype,un$ArrayBufferSlice$3=uncurryThis$6$d(ArrayBuffer$3$3.prototype.slice),getUint8$3=uncurryThis$6$d(DataViewPrototype$4.getUint8),setUint8$3=uncurryThis$6$d(DataViewPrototype$4.setUint8),INCORRECT_SLICE$3=fails$6$d(function(){return!new ArrayBuffer$3$3(2).slice(1,void 0).byteLength});$$2$8({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:INCORRECT_SLICE$3},{slice:function v(k,ie){if(un$ArrayBufferSlice$3&&ie===void 0)return un$ArrayBufferSlice$3(anObject$1$d(this),k);for(var ae=anObject$1$d(this).byteLength,ce=toAbsoluteIndex$f(k,ae),fe=toAbsoluteIndex$f(ie===void 0?ae:ie,ae),le=new(speciesConstructor$9(this,ArrayBuffer$3$3))(toLength$1$b(fe-ce)),ve=new DataView$2$3(this),pe=new DataView$2$3(le),ye=0;ce1?arguments[1]:void 0,le=fe!==void 0,ve=getIteratorMethod$a(ae),pe,ye,me,Ee,cr,Br;if(ve&&!isArrayIteratorMethod$9(ve))for(cr=getIterator$9(ae,ve),Br=cr.next,ae=[];!(Ee=call$5$b(Br,cr)).done;)ae.push(Ee.value);for(le&&ce>2&&(fe=bind$1$8(fe,arguments[2])),ye=lengthOfArrayLike$2$8(ae),me=new(aTypedArrayConstructor$1$3(ie))(ye),pe=0;ye>pe;pe++)me[pe]=le?fe(ae[pe],pe):ae[pe];return me},classof$2$a=classofRaw$1$c,isArray$1$3=Array.isArray||function v(k){return classof$2$a(k)=="Array"},isArray2$3=isArray$1$3,isConstructor3$8=isConstructor$2$3,isObject$2$d=isObject$a$3,wellKnownSymbol$1$d=wellKnownSymbol$e$7,SPECIES$1$8=wellKnownSymbol$1$d("species"),$Array$6=Array,arraySpeciesConstructor$1$3=function(v){var k;return isArray2$3(v)&&(k=v.constructor,isConstructor3$8(k)&&(k===$Array$6||isArray2$3(k.prototype))?k=void 0:isObject$2$d(k)&&(k=k[SPECIES$1$8],k===null&&(k=void 0))),k===void 0?$Array$6:k},arraySpeciesConstructor$4=arraySpeciesConstructor$1$3,arraySpeciesCreate$1$3=function(v,k){return new(arraySpeciesConstructor$4(v))(k===0?0:k)},bind$i=functionBindContext$8,uncurryThis$4$d=functionUncurryThis$d,IndexedObject$1$9=indexedObject$b,toObject$1$d=toObject$6$3,lengthOfArrayLike$1$b=lengthOfArrayLike$6$3,arraySpeciesCreate$4=arraySpeciesCreate$1$3,push$c=uncurryThis$4$d([].push),createMethod$c=function(v){var k=v==1,ie=v==2,ae=v==3,ce=v==4,fe=v==6,le=v==7,ve=v==5||fe;return function(pe,ye,me,Ee){for(var cr=toObject$1$d(pe),Br=IndexedObject$1$9(cr),$r=bind$i(ye,me),Pr=lengthOfArrayLike$1$b(Br),Or=0,ur=Ee||arraySpeciesCreate$4,jr=k?ur(pe,Pr):ie||le?ur(pe,0):void 0,Mr,Lr;Pr>Or;Or++)if((ve||Or in Br)&&(Mr=Br[Or],Lr=$r(Mr,Or,cr),v))if(k)jr[Or]=Lr;else if(Lr)switch(v){case 3:return!0;case 5:return Mr;case 6:return Or;case 2:push$c(jr,Mr)}else switch(v){case 4:return!1;case 7:push$c(jr,Mr)}return fe?-1:ae||ce?ce:jr}},arrayIteration$3={forEach:createMethod$c(0),map:createMethod$c(1),filter:createMethod$c(2),some:createMethod$c(3),every:createMethod$c(4),find:createMethod$c(5),findIndex:createMethod$c(6),filterReject:createMethod$c(7)},getBuiltIn$l=getBuiltIn$6$8,definePropertyModule$1$d=objectDefineProperty$d,wellKnownSymbol$r=wellKnownSymbol$e$7,DESCRIPTORS$2$d=descriptors$d,SPECIES$a=wellKnownSymbol$r("species"),setSpecies$1$8=function(v){var k=getBuiltIn$l(v),ie=definePropertyModule$1$d.f;DESCRIPTORS$2$d&&k&&!k[SPECIES$a]&&ie(k,SPECIES$a,{configurable:!0,get:function(){return this}})},isCallable$v=isCallable$i$7,isObject$1$d=isObject$a$3,setPrototypeOf$1$7=objectSetPrototypeOf$9,inheritIfRequired$1$3=function(v,k,ie){var ae,ce;return setPrototypeOf$1$7&&isCallable$v(ae=k.constructor)&&ae!==ie&&isObject$1$d(ce=ae.prototype)&&ce!==ie.prototype&&setPrototypeOf$1$7(v,ce),v},$$1$8=_export$b,global$4$d=global$h$8,call$4$d=functionCall$d,DESCRIPTORS$1$d=descriptors$d,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$3=typedArrayConstructorsRequireWrappers$3,ArrayBufferViewCore$4$3=arrayBufferViewCore$3,ArrayBufferModule$4=arrayBuffer$3,anInstance$a=anInstance$2$3,createPropertyDescriptor$i=createPropertyDescriptor$5$3,createNonEnumerableProperty$j=createNonEnumerableProperty$6$3,isIntegralNumber$4=isIntegralNumber$1$3,toLength$g=toLength$5$3,toIndex$5=toIndex$2$3,toOffset$1$3=toOffset$2$3,toPropertyKey$h=toPropertyKey$4$3,hasOwn2$d=hasOwnProperty_1$d,classof$1$c=classof$8$3,isObject$o=isObject$a$3,isSymbol$g=isSymbol$3$3,create2$7=objectCreate$8,isPrototypeOf$h=objectIsPrototypeOf$d,setPrototypeOf$d=objectSetPrototypeOf$9,getOwnPropertyNames2$3=objectGetOwnPropertyNames$b.f,typedArrayFrom$4=typedArrayFrom$1$3,forEach$3=arrayIteration$3.forEach,setSpecies$9=setSpecies$1$8,definePropertyModule$j=objectDefineProperty$d,getOwnPropertyDescriptorModule$c=objectGetOwnPropertyDescriptor$b,InternalStateModule$h=internalState$d,inheritIfRequired$4=inheritIfRequired$1$3,getInternalState$h=InternalStateModule$h.get,setInternalState$b=InternalStateModule$h.set,enforceInternalState$f=InternalStateModule$h.enforce,nativeDefineProperty$3=definePropertyModule$j.f,nativeGetOwnPropertyDescriptor$3=getOwnPropertyDescriptorModule$c.f,round$3=Math.round,RangeError$2$3=global$4$d.RangeError,ArrayBuffer$1$3=ArrayBufferModule$4.ArrayBuffer,ArrayBufferPrototype$4=ArrayBuffer$1$3.prototype,DataView$1$3=ArrayBufferModule$4.DataView,NATIVE_ARRAY_BUFFER_VIEWS$5=ArrayBufferViewCore$4$3.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG$4=ArrayBufferViewCore$4$3.TYPED_ARRAY_TAG,TypedArray$4=ArrayBufferViewCore$4$3.TypedArray,TypedArrayPrototype$4=ArrayBufferViewCore$4$3.TypedArrayPrototype,aTypedArrayConstructor$5=ArrayBufferViewCore$4$3.aTypedArrayConstructor,isTypedArray$4=ArrayBufferViewCore$4$3.isTypedArray,BYTES_PER_ELEMENT$3="BYTES_PER_ELEMENT",WRONG_LENGTH$4="Wrong length",fromList$3=function(v,k){aTypedArrayConstructor$5(v);for(var ie=0,ae=k.length,ce=new v(ae);ae>ie;)ce[ie]=k[ie++];return ce},addGetter$4=function(v,k){nativeDefineProperty$3(v,k,{get:function(){return getInternalState$h(this)[k]}})},isArrayBuffer$3=function(v){var k;return isPrototypeOf$h(ArrayBufferPrototype$4,v)||(k=classof$1$c(v))=="ArrayBuffer"||k=="SharedArrayBuffer"},isTypedArrayIndex$3=function(v,k){return isTypedArray$4(v)&&!isSymbol$g(k)&&k in v&&isIntegralNumber$4(+k)&&k>=0},wrappedGetOwnPropertyDescriptor$3=function v(k,ie){return ie=toPropertyKey$h(ie),isTypedArrayIndex$3(k,ie)?createPropertyDescriptor$i(2,k[ie]):nativeGetOwnPropertyDescriptor$3(k,ie)},wrappedDefineProperty$3=function v(k,ie,ae){return ie=toPropertyKey$h(ie),isTypedArrayIndex$3(k,ie)&&isObject$o(ae)&&hasOwn2$d(ae,"value")&&!hasOwn2$d(ae,"get")&&!hasOwn2$d(ae,"set")&&!ae.configurable&&(!hasOwn2$d(ae,"writable")||ae.writable)&&(!hasOwn2$d(ae,"enumerable")||ae.enumerable)?(k[ie]=ae.value,k):nativeDefineProperty$3(k,ie,ae)};DESCRIPTORS$1$d?(NATIVE_ARRAY_BUFFER_VIEWS$5||(getOwnPropertyDescriptorModule$c.f=wrappedGetOwnPropertyDescriptor$3,definePropertyModule$j.f=wrappedDefineProperty$3,addGetter$4(TypedArrayPrototype$4,"buffer"),addGetter$4(TypedArrayPrototype$4,"byteOffset"),addGetter$4(TypedArrayPrototype$4,"byteLength"),addGetter$4(TypedArrayPrototype$4,"length")),$$1$8({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS$5},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor$3,defineProperty:wrappedDefineProperty$3}),typedArrayConstructor$3.exports=function(v,k,ie){var ae=v.match(/\d+$/)[0]/8,ce=v+(ie?"Clamped":"")+"Array",fe="get"+v,le="set"+v,ve=global$4$d[ce],pe=ve,ye=pe&&pe.prototype,me={},Ee=function(Pr,Or){var ur=getInternalState$h(Pr);return ur.view[fe](Or*ae+ur.byteOffset,!0)},cr=function(Pr,Or,ur){var jr=getInternalState$h(Pr);ie&&(ur=(ur=round$3(ur))<0?0:ur>255?255:ur&255),jr.view[le](Or*ae+jr.byteOffset,ur,!0)},Br=function(Pr,Or){nativeDefineProperty$3(Pr,Or,{get:function(){return Ee(this,Or)},set:function(ur){return cr(this,Or,ur)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS$5?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$3&&(pe=k(function(Pr,Or,ur,jr){return anInstance$a(Pr,ye),inheritIfRequired$4(function(){return isObject$o(Or)?isArrayBuffer$3(Or)?jr!==void 0?new ve(Or,toOffset$1$3(ur,ae),jr):ur!==void 0?new ve(Or,toOffset$1$3(ur,ae)):new ve(Or):isTypedArray$4(Or)?fromList$3(pe,Or):call$4$d(typedArrayFrom$4,pe,Or):new ve(toIndex$5(Or))}(),Pr,pe)}),setPrototypeOf$d&&setPrototypeOf$d(pe,TypedArray$4),forEach$3(getOwnPropertyNames2$3(ve),function(Pr){Pr in pe||createNonEnumerableProperty$j(pe,Pr,ve[Pr])}),pe.prototype=ye):(pe=k(function(Pr,Or,ur,jr){anInstance$a(Pr,ye);var Mr=0,Lr=0,Vr,Gr,Ur;if(!isObject$o(Or))Ur=toIndex$5(Or),Gr=Ur*ae,Vr=new ArrayBuffer$1$3(Gr);else if(isArrayBuffer$3(Or)){Vr=Or,Lr=toOffset$1$3(ur,ae);var Qr=Or.byteLength;if(jr===void 0){if(Qr%ae||(Gr=Qr-Lr,Gr<0))throw RangeError$2$3(WRONG_LENGTH$4)}else if(Gr=toLength$g(jr)*ae,Gr+Lr>Qr)throw RangeError$2$3(WRONG_LENGTH$4);Ur=Gr/ae}else return isTypedArray$4(Or)?fromList$3(pe,Or):call$4$d(typedArrayFrom$4,pe,Or);for(setInternalState$b(Pr,{buffer:Vr,byteOffset:Lr,byteLength:Gr,length:Ur,view:new DataView$1$3(Vr)});Mr1?arguments[1]:void 0,ie>2?arguments[2]:void 0)},CONVERSION_BUG$3);var global$3$d=global$h$8,call$2$d=functionCall$d,ArrayBufferViewCore$2$3=arrayBufferViewCore$3,lengthOfArrayLike$h=lengthOfArrayLike$6$3,toOffset$5=toOffset$2$3,toIndexedObject$h=toObject$6$3,fails$3$d=fails$k$4,RangeError$1$3=global$3$d.RangeError,Int8Array$2$3=global$3$d.Int8Array,Int8ArrayPrototype$4=Int8Array$2$3&&Int8Array$2$3.prototype,$set$3=Int8ArrayPrototype$4&&Int8ArrayPrototype$4.set,aTypedArray$2$3=ArrayBufferViewCore$2$3.aTypedArray,exportTypedArrayMethod$2$3=ArrayBufferViewCore$2$3.exportTypedArrayMethod,WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$3=!fails$3$d(function(){var v=new Uint8ClampedArray(2);return call$2$d($set$3,v,{length:1,0:3},1),v[1]!==3}),TO_OBJECT_BUG$3=WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$3&&ArrayBufferViewCore$2$3.NATIVE_ARRAY_BUFFER_VIEWS&&fails$3$d(function(){var v=new Int8Array$2$3(2);return v.set(1),v.set("2",1),v[0]!==0||v[1]!==2});exportTypedArrayMethod$2$3("set",function v(k){aTypedArray$2$3(this);var ie=toOffset$5(arguments.length>1?arguments[1]:void 0,1),ae=toIndexedObject$h(k);if(WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$3)return call$2$d($set$3,this,ae,ie);var ce=this.length,fe=lengthOfArrayLike$h(ae),le=0;if(fe+ie>ce)throw RangeError$1$3("Wrong length");for(;le0;)v[fe]=v[--fe];fe!==ae++&&(v[fe]=ce)}return v},merge$3=function(v,k,ie,ae){for(var ce=k.length,fe=ie.length,le=0,ve=0;le0&&1/ie<0?1:-1:k>ie}};exportTypedArrayMethod$1$3("sort",function v(k){return k!==void 0&&aCallable$k(k),STABLE_SORT$3?un$Sort$3(this,k):internalSort$3(aTypedArray$1$3(this),getSortCompare$3(k))},!STABLE_SORT$3||ACCEPT_INCORRECT_ARGUMENTS$3);var NATIVE_BIND$g=functionBindNative$d,FunctionPrototype$f=Function.prototype,apply$1$8=FunctionPrototype$f.apply,call$1$d=FunctionPrototype$f.call,functionApply$8=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$g?call$1$d.bind(apply$1$8):function(){return call$1$d.apply(apply$1$8,arguments)}),uncurryThis$1$d=functionUncurryThis$d,arraySlice$1$8=uncurryThis$1$d([].slice),global$1$d=global$h$8,apply$9=functionApply$8,ArrayBufferViewCore$7=arrayBufferViewCore$3,fails$1$d=fails$k$4,arraySlice$b=arraySlice$1$8,Int8Array$1$3=global$1$d.Int8Array,aTypedArray$7=ArrayBufferViewCore$7.aTypedArray,exportTypedArrayMethod$7=ArrayBufferViewCore$7.exportTypedArrayMethod,$toLocaleString$3=[].toLocaleString,TO_LOCALE_STRING_BUG$3=!!Int8Array$1$3&&fails$1$d(function(){$toLocaleString$3.call(new Int8Array$1$3(1))}),FORCED$4=fails$1$d(function(){return[1,2].toLocaleString()!=new Int8Array$1$3([1,2]).toLocaleString()})||!fails$1$d(function(){Int8Array$1$3.prototype.toLocaleString.call([1,2])});exportTypedArrayMethod$7("toLocaleString",function v(){return apply$9($toLocaleString$3,TO_LOCALE_STRING_BUG$3?arraySlice$b(aTypedArray$7(this)):aTypedArray$7(this),arraySlice$b(arguments))},FORCED$4);var DESCRIPTORS$q=descriptors$d,uncurryThis$x=functionUncurryThis$d,call$r=functionCall$d,fails$z=fails$k$4,objectKeys$c=objectKeys$2$7,getOwnPropertySymbolsModule$c=objectGetOwnPropertySymbols$b,propertyIsEnumerableModule$c=objectPropertyIsEnumerable$b,toObject$j=toObject$6$3,IndexedObject$d=indexedObject$b,$assign$9=Object.assign,defineProperty4$2=Object.defineProperty,concat$d=uncurryThis$x([].concat),objectAssign$9=!$assign$9||fails$z(function(){if(DESCRIPTORS$q&&$assign$9({b:1},$assign$9(defineProperty4$2({},"a",{enumerable:!0,get:function(){defineProperty4$2(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},k={},ie=Symbol(),ae="abcdefghijklmnopqrst";return v[ie]=7,ae.split("").forEach(function(ce){k[ce]=ce}),$assign$9({},v)[ie]!=7||objectKeys$c($assign$9({},k)).join("")!=ae})?function v(k,ie){for(var ae=toObject$j(k),ce=arguments.length,fe=1,le=getOwnPropertySymbolsModule$c.f,ve=propertyIsEnumerableModule$c.f;ce>fe;)for(var pe=IndexedObject$d(arguments[fe++]),ye=le?concat$d(objectKeys$c(pe),le(pe)):objectKeys$c(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$q||call$r(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$9,$$i=_export$b,assign2$9=objectAssign$9;$$i({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$9},{assign:assign2$9});function __awaiter$g(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ4AAAEOCAYAAAB4sfmlAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/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gfjJRA1JsNV30acrHQcpfrC08XB4JkOHG9kQbSmOzzkzo74iAPSYZTqDwd+ropjZuyFkQX0vCSd443ol4Tg3LbEmOekkyh1Ojw74sjZzCTjlNuijK1saG57S+RX0lGUKgbPFkfA2AksP6D6Gxm6M/hy1Zr136ScdBilisWzxcFEE+Tui1IBhG8jm29qWz7RYZdLSp0+zxYHmMYIfaPyBxBuTbZEnpE+BUqVineLg/jsMvdGFwh1yZbqB6UPXalS825xMM4u0+scYcKyUDi8ZH18dLf0YStVDt4tDmBkaf96YgKtNblC3YYV49PSB6tUOXm5OEq5VOBGNmZOsnnc76UPUikJXi6OyhL8nS8zsKg9HLlPp4krP/NycRRvxzZGDmTuMWF7x8Z49avSB6aUNM8WBwPBIk3/+o21NHfT0qpnpY9JKafwbHEQkAMQPo2/YBsKPC+5ZPzPpY9FKadxytMcxUf9m+LNwAEQ1eVD3dO1NJQ6Ps+OOMDcpy0EGLAG+E4+j8YtyyJ7pOMr5WSeLQ4GDhBwZi9//EnLdk5764S/SOdWyg08WxwE7Acw7hQ/9jwbqm9vrvqBbtasVO95tjgA2neih9wY6CGiFchWJtqXjzosnVQpt/FwcfCJdj37KeVofnJ5pFM6oVJu5dniIJg049jJndxOZOa0tUQel86mlNt5tjiYOQ0CGNhHTLclt0e+gbVUkM6llBd4tjgIpsPCftX2HL5988pp+6XzKOUl/w9vbeT/L2dfMwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wNi0yM1QxMjoxMzo0MiswMDowMIbbr3kAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDYtMjNUMTI6MTM6NDIrMDA6MDD3hhfFAAAAAElFTkSuQmCC",isInstalled$9=()=>waitFor(()=>{var v;return!!(!((v=window.near)===null||v===void 0)&&v.isSender)}).catch(()=>!1),setupSenderState=()=>({wallet:window.near}),Sender=({options:v,metadata:k,store:ie,provider:ae,emitter:ce,logger:fe})=>__awaiter$g(void 0,void 0,void 0,function*(){const le=setupSenderState(),ve=()=>{for(const $r in le.wallet.callbacks)le.wallet.remove($r)},pe=()=>__awaiter$g(void 0,void 0,void 0,function*(){if(!le.wallet.isSignedIn())return;ve();const $r=yield le.wallet.signOut();if($r===!0)return;const Pr=new Error(typeof $r.error=="string"?$r.error:$r.error.type);if(Pr.message==="User reject")throw Pr;fe.log("Failed to sign out"),fe.error(Pr)}),ye=()=>{le.wallet.on("accountChanged",$r=>__awaiter$g(void 0,void 0,void 0,function*(){fe.log("onAccountChange",$r),ce.emit("signedOut",null)})),le.wallet.on("rpcChanged",$r=>__awaiter$g(void 0,void 0,void 0,function*(){fe.log("onNetworkChange",$r),v.network.networkId!==$r.networkId&&(yield pe(),ce.emit("signedOut",null),ce.emit("networkChanged",{networkId:$r.networkId}))}))},me=()=>__awaiter$g(void 0,void 0,void 0,function*(){const $r=le.wallet.getAccountId();if(!$r)return[];yield waitFor(()=>!!le.wallet.account(),{timeout:100});const Pr=le.wallet.account();if(!Pr.connection.signer.getPublicKey)return[{accountId:$r,publicKey:void 0}];const Or=yield Pr.connection.signer.getPublicKey(Pr.accountId,v.network.networkId);return[{accountId:$r,publicKey:Or?Or.toString():void 0}]}),Ee=$r=>$r.every(Pr=>Pr.type==="FunctionCall"),cr=$r=>{if(!Ee($r))throw new Error(`Only 'FunctionCall' actions types are supported by ${k.name}`);return $r.map(Or=>Or.params)},Br=$r=>$r.map(Pr=>({receiverId:Pr.receiverId,actions:cr(Pr.actions)}));return le.wallet&&le.wallet.isSignedIn()&&ye(),{signIn({contractId:$r,methodNames:Pr}){return __awaiter$g(this,void 0,void 0,function*(){const Or=yield me();if(Or.length)return Or;const{accessKey:ur,error:jr}=yield le.wallet.requestSignIn({contractId:$r,methodNames:Pr});if(!ur||jr)throw yield pe(),new Error((typeof jr=="string"?jr:jr.type)||"Failed to sign in");return ye(),yield me()})},signOut:pe,getAccounts(){return __awaiter$g(this,void 0,void 0,function*(){return me()})},verifyOwner({message:$r}){return __awaiter$g(this,void 0,void 0,function*(){fe.log("Sender:verifyOwner",{message:$r});const Pr=le.wallet.account();if(!Pr)throw new Error("Wallet not signed in");if(!Pr.connection.signer.signMessage)throw new Error("Wallet is locked");const Or=v.network.networkId,ur=Pr.accountId,jr=yield Pr.connection.signer.getPublicKey(ur,Or),Mr=yield ae.block({finality:"final"}),Lr={accountId:ur,message:$r,blockId:Mr.header.hash,publicKey:Buffer.from(jr.data).toString("base64"),keyType:jr.keyType},Vr=JSON.stringify(Lr),Gr=yield Pr.connection.signer.signMessage(new Uint8Array(Buffer.from(Vr)),ur,Or);return Object.assign(Object.assign({},Lr),{signature:Buffer.from(Gr.signature).toString("base64"),keyType:Gr.publicKey.keyType})})},signAndSendTransaction({signerId:$r,receiverId:Pr,actions:Or}){return __awaiter$g(this,void 0,void 0,function*(){fe.log("signAndSendTransaction",{signerId:$r,receiverId:Pr,actions:Or});const{contract:ur}=ie.getState();if(!le.wallet.isSignedIn()||!ur)throw new Error("Wallet not signed in");return le.wallet.signAndSendTransaction({receiverId:Pr||ur.contractId,actions:cr(Or)}).then(jr=>{var Mr;if(jr.error)throw new Error(jr.error);if(jr.response&&"error"in jr.response)throw new Error(jr.response.error.message);if(!(!((Mr=jr.response)===null||Mr===void 0)&&Mr.length))throw new Error("Invalid response");return jr.response[0]})})},signAndSendTransactions({transactions:$r}){return __awaiter$g(this,void 0,void 0,function*(){if(fe.log("signAndSendTransactions",{transactions:$r}),!le.wallet.isSignedIn())throw new Error("Wallet not signed in");return le.wallet.requestSignTransactions({transactions:Br($r)}).then(Pr=>{var Or;if(Pr.error)throw new Error(Pr.error);if(Pr.response&&"error"in Pr.response)throw new Error(Pr.response.error.message);if(!(!((Or=Pr.response)===null||Or===void 0)&&Or.length))throw new Error("Invalid response");return Pr.response})})},importAccountsInSecureContext({accounts:$r}){return __awaiter$g(this,void 0,void 0,function*(){window.near&&window.near.isSender&&(yield window.near.batchImport({keystore:$r,network:v.network.networkId}))})}}});function setupSender({iconUrl:v=icon$f,deprecated:k=!1}={}){return()=>__awaiter$g(this,void 0,void 0,function*(){if((0,import_is_mobile$a.isMobile)())return null;const ae=yield isInstalled$9();return ae&&(yield waitFor(()=>{var ce;return!!(!((ce=window.near)===null||ce===void 0)&&ce.isSignedIn())},{timeout:200}).catch(()=>!1)),{id:"sender",type:"injected",metadata:{name:"Sender",description:"Browser extension wallet built on NEAR.",iconUrl:v,downloadUrl:"https://chrome.google.com/webstore/detail/sender-wallet/epapihdplajcdnnkdeiahlgigofloibg",deprecated:k,available:ae},init:Sender}})}var import_is_mobile$9=__toESM(require_is_mobile(),1);function __awaiter$f(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAIddJREFUeNrs3et/HFd5B/DRLu/6otsCIQFCxoQ4vltyILGNE48olNBCLcWOkzgXrwq5mJul9g/Q+A9opbzo7VPIblpKgLbshpAWQpKdALmQOOxCAm0gyU5C7s5lIG1feXb6PHPxzq5W0mo1M+fMzO/5fB7rsrb0ePbsV+ccnTlnTMlAnP7Lj6n0RqPktyZl/R1/db+lIBCITMVYBrBaoDezAx46oTjO4jv+ugG4EAiAJQVWFXpTHvig4/CfjNUcoVXFU41AACyRWDFUlRWwCkfLh8vAU45ApDcKKa79wJBYcYxTNk7/xWTt9NykiqcdgQBYSUdpSKxCjytT9Efz9JymU5bw9CMQAEtMrI5V8AdDNU/JcJXRBBAIgCUrVuHgoWHl9KzWoBxHU0AgAJasWIUec9dvNU/P7ie89mOYiEAALGmxCn/Aw8M2oaWjWSAQAEtmrIIo0Yfzp4/v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3Nt8nMXYsMKyBgQCESFaVuGnb/ecVp1nrAAWApGGF2nzbZNycsxbv2XmFSuAhUCkKMaabxuUGwgc6nU5Vt6wAlgIRBrhar0dbGNTXR9WWDiKQCASQet/LErvtGqe38oBVgALgUg/XC3K0DY2a8LKTN3/F085ApGdcHb+nk5vjlOWVsNq7Of/twE9LAQCIa4H8rP/1f1hYnUFrHhfruk0/v/+X4ABAA6s0eytIzCSAAAAAElFTkSuQmCC",isInstalled$8=()=>waitFor(()=>{var v;return!!(!((v=window.nearFiWallet)===null||v===void 0)&&v.isNearFi)},{timeout:200}).catch(()=>!1),setupNearFiState=()=>({wallet:window.nearFiWallet}),NearFi=({options:v,metadata:k,store:ie,emitter:ae,logger:ce})=>__awaiter$f(void 0,void 0,void 0,function*(){const fe=setupNearFiState(),le=()=>__awaiter$f(void 0,void 0,void 0,function*(){if(!fe.wallet.isSignedIn())return;const cr=yield fe.wallet.signOut();if(cr===!0)return;const Br=new Error(typeof cr.error=="string"?cr.error:cr.error.type);if(Br.message==="User reject")throw Br;ce.log("Failed to sign out"),ce.error(Br)}),ve=()=>{fe.wallet.on("accountChanged",cr=>__awaiter$f(void 0,void 0,void 0,function*(){ce.log("onAccountChange",cr),ae.emit("signedOut",null)})),fe.wallet.on("rpcChanged",cr=>__awaiter$f(void 0,void 0,void 0,function*(){ce.log("onNetworkChange",cr),v.network.networkId!==cr.networkId&&(yield le(),ae.emit("signedOut",null),ae.emit("networkChanged",{networkId:cr.networkId}))}))},pe=()=>__awaiter$f(void 0,void 0,void 0,function*(){let cr=fe.wallet.getAccountId();return!cr&&(yield fe.wallet.resolveSignInState(),cr=fe.wallet.getAccountId(),!cr)?[]:[{accountId:cr}]}),ye=cr=>cr.every(Br=>Br.type==="FunctionCall"),me=cr=>{if(!ye(cr))throw new Error(`Only 'FunctionCall' actions types are supported by ${k.name}`);return cr.map($r=>$r.params)},Ee=cr=>cr.map(Br=>({receiverId:Br.receiverId,actions:me(Br.actions)}));return fe.wallet&&fe.wallet.isSignedIn()&&ve(),{signIn({contractId:cr,methodNames:Br}){return __awaiter$f(this,void 0,void 0,function*(){const $r=yield pe();if($r.length)return $r;const{accessKey:Pr,error:Or}=yield fe.wallet.requestSignIn({contractId:cr,methodNames:Br});if(!Pr||Or)throw yield le(),new Error((typeof Or=="string"?Or:Or.type)||"Failed to sign in");return ve(),yield pe()})},signOut:le,getAccounts(){return __awaiter$f(this,void 0,void 0,function*(){return yield pe()})},verifyOwner({message:cr}){return __awaiter$f(this,void 0,void 0,function*(){throw ce.log("NearFi:verifyOwner",{message:cr}),new Error(`Method not supported by ${k.name}`)})},signAndSendTransaction({signerId:cr,receiverId:Br,actions:$r}){return __awaiter$f(this,void 0,void 0,function*(){ce.log("signAndSendTransaction",{signerId:cr,receiverId:Br,actions:$r});const{contract:Pr}=ie.getState();if(!fe.wallet.isSignedIn()||!Pr)throw new Error("Wallet not signed in");return fe.wallet.signAndSendTransaction({receiverId:Br||Pr.contractId,actions:me($r)}).then(Or=>{var ur;if(Or.error)throw new Error(Or.error);if(!(!((ur=Or.response)===null||ur===void 0)&&ur.length))throw new Error("Invalid response");return Or.response[0]})})},signAndSendTransactions({transactions:cr}){return __awaiter$f(this,void 0,void 0,function*(){if(ce.log("signAndSendTransactions",{transactions:cr}),!fe.wallet.isSignedIn())throw new Error("Wallet not signed in");return fe.wallet.requestSignTransactions({transactions:Ee(cr)}).then(Br=>{var $r;if(Br.error)throw new Error(Br.error);if(!(!(($r=Br.response)===null||$r===void 0)&&$r.length))throw new Error("Invalid response");return Br.response})})}}});function setupNearFi({iconUrl:v=icon$e,deprecated:k=!1}={}){return()=>__awaiter$f(this,void 0,void 0,function*(){const ie=(0,import_is_mobile$9.isMobile)(),ae=yield isInstalled$8();return!ie||!ae?null:{id:"nearfi",type:"injected",metadata:{name:"NearFi",description:"Your NEAR DeFi experience On The Go",iconUrl:v,downloadUrl:"https://nearfi.finance",deprecated:k,available:ae},init:NearFi}})}var import_is_mobile$8=__toESM(require_is_mobile(),1),commonjsGlobal$d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$k$3=function(v){try{return!!v()}catch{return!0}},fails$j$4=fails$k$3,descriptors$c=!fails$j$4(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$i$4=fails$k$3,functionBindNative$c=!fails$i$4(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$7=functionBindNative$c,FunctionPrototype$2$7=Function.prototype,bind$3$7=FunctionPrototype$2$7.bind,call$d$6=FunctionPrototype$2$7.call,uncurryThis$j$4=NATIVE_BIND$3$7&&bind$3$7.bind(call$d$6,call$d$6),functionUncurryThis$c=NATIVE_BIND$3$7?function(v){return v&&uncurryThis$j$4(v)}:function(v){return v&&function(){return call$d$6.apply(v,arguments)}},$TypeError$a$7=TypeError,requireObjectCoercible$2$a=function(v){if(v==null)throw $TypeError$a$7("Can't call method on "+v);return v},requireObjectCoercible$1$c=requireObjectCoercible$2$a,$Object$4$7=Object,toObject$6$2=function(v){return $Object$4$7(requireObjectCoercible$1$c(v))},uncurryThis$i$4=functionUncurryThis$c,toObject$5$2=toObject$6$2,hasOwnProperty$c=uncurryThis$i$4({}.hasOwnProperty),hasOwnProperty_1$c=Object.hasOwn||function v(k,ie){return hasOwnProperty$c(toObject$5$2(k),ie)},DESCRIPTORS$d$2=descriptors$c,hasOwn$b$2=hasOwnProperty_1$c,FunctionPrototype$1$c=Function.prototype,getDescriptor$c=DESCRIPTORS$d$2&&Object.getOwnPropertyDescriptor,EXISTS$1$c=hasOwn$b$2(FunctionPrototype$1$c,"name"),PROPER$c=EXISTS$1$c&&function v(){}.name==="something",CONFIGURABLE$1$c=EXISTS$1$c&&(!DESCRIPTORS$d$2||DESCRIPTORS$d$2&&getDescriptor$c(FunctionPrototype$1$c,"name").configurable),functionName$c={EXISTS:EXISTS$1$c,PROPER:PROPER$c,CONFIGURABLE:CONFIGURABLE$1$c},isCallable$i$6=function(v){return typeof v=="function"},objectDefineProperty$c={},check$c=function(v){return v&&v.Math==Math&&v},global$h$7=check$c(typeof globalThis=="object"&&globalThis)||check$c(typeof window=="object"&&window)||check$c(typeof self=="object"&&self)||check$c(typeof commonjsGlobal$d=="object"&&commonjsGlobal$d)||function(){return this}()||Function("return this")(),isCallable$h$7=isCallable$i$6,isObject$a$2=function(v){return typeof v=="object"?v!==null:isCallable$h$7(v)},global$g$7=global$h$7,isObject$9$2=isObject$a$2,document$1$8=global$g$7.document,EXISTS$d=isObject$9$2(document$1$8)&&isObject$9$2(document$1$8.createElement),documentCreateElement$1$7=function(v){return EXISTS$d?document$1$8.createElement(v):{}},DESCRIPTORS$c$2=descriptors$c,fails$h$4=fails$k$3,createElement$d=documentCreateElement$1$7,ie8DomDefine$c=!DESCRIPTORS$c$2&&!fails$h$4(function(){return Object.defineProperty(createElement$d("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$b$2=descriptors$c,fails$g$4=fails$k$3,v8PrototypeDefineBug$c=DESCRIPTORS$b$2&&fails$g$4(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$8$3=isObject$a$2,$String$3$7=String,$TypeError$9$7=TypeError,anObject$a$6=function(v){if(isObject$8$3(v))return v;throw $TypeError$9$7($String$3$7(v)+" is not an object")},NATIVE_BIND$2$7=functionBindNative$c,call$c$7=Function.prototype.call,functionCall$c=NATIVE_BIND$2$7?call$c$7.bind(call$c$7):function(){return call$c$7.apply(call$c$7,arguments)},global$f$7=global$h$7,isCallable$g$7=isCallable$i$6,aFunction$c=function(v){return isCallable$g$7(v)?v:void 0},getBuiltIn$6$7=function(v,k){return arguments.length<2?aFunction$c(global$f$7[v]):global$f$7[v]&&global$f$7[v][k]},uncurryThis$h$4=functionUncurryThis$c,objectIsPrototypeOf$c=uncurryThis$h$4({}.isPrototypeOf),getBuiltIn$5$7=getBuiltIn$6$7,engineUserAgent$c=getBuiltIn$5$7("navigator","userAgent")||"",global$e$7=global$h$7,userAgent$2$7=engineUserAgent$c,process$d=global$e$7.process,Deno$8=global$e$7.Deno,versions$c=process$d&&process$d.versions||Deno$8&&Deno$8.version,v8$c=versions$c&&versions$c.v8,match$c,version$c;v8$c&&(match$c=v8$c.split("."),version$c=match$c[0]>0&&match$c[0]<4?1:+(match$c[0]+match$c[1]));!version$c&&userAgent$2$7&&(match$c=userAgent$2$7.match(/Edge\/(\d+)/),(!match$c||match$c[1]>=74)&&(match$c=userAgent$2$7.match(/Chrome\/(\d+)/),match$c&&(version$c=+match$c[1])));var engineV8Version$c=version$c,V8_VERSION$d=engineV8Version$c,fails$f$4=fails$k$3,nativeSymbol$c=!!Object.getOwnPropertySymbols&&!fails$f$4(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$d&&V8_VERSION$d<41}),NATIVE_SYMBOL$1$c=nativeSymbol$c,useSymbolAsUid$c=NATIVE_SYMBOL$1$c&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$4$8=getBuiltIn$6$7,isCallable$f$8=isCallable$i$6,isPrototypeOf$4$2=objectIsPrototypeOf$c,USE_SYMBOL_AS_UID$1$c=useSymbolAsUid$c,$Object$3$9=Object,isSymbol$3$2=USE_SYMBOL_AS_UID$1$c?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$4$8("Symbol");return isCallable$f$8(k)&&isPrototypeOf$4$2(k.prototype,$Object$3$9(v))},$String$2$b=String,tryToString$4$7=function(v){try{return $String$2$b(v)}catch{return"Object"}},isCallable$e$8=isCallable$i$6,tryToString$3$7=tryToString$4$7,$TypeError$8$7=TypeError,aCallable$4$7=function(v){if(isCallable$e$8(v))return v;throw $TypeError$8$7(tryToString$3$7(v)+" is not a function")},aCallable$3$7=aCallable$4$7,getMethod$2$7=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$3$7(ie)},call$b$7=functionCall$c,isCallable$d$8=isCallable$i$6,isObject$7$7=isObject$a$2,$TypeError$7$7=TypeError,ordinaryToPrimitive$1$c=function(v,k){var ie,ae;if(k==="string"&&isCallable$d$8(ie=v.toString)&&!isObject$7$7(ae=call$b$7(ie,v))||isCallable$d$8(ie=v.valueOf)&&!isObject$7$7(ae=call$b$7(ie,v))||k!=="string"&&isCallable$d$8(ie=v.toString)&&!isObject$7$7(ae=call$b$7(ie,v)))return ae;throw $TypeError$7$7("Can't convert object to primitive value")},shared$3$c={exports:{}},global$d$7=global$h$7,defineProperty$7$2=Object.defineProperty,defineGlobalProperty$3$a=function(v,k){try{defineProperty$7$2(global$d$7,v,{value:k,configurable:!0,writable:!0})}catch{global$d$7[v]=k}return k},global$c$7=global$h$7,defineGlobalProperty$2$c=defineGlobalProperty$3$a,SHARED$c="__core-js_shared__",store$3$c=global$c$7[SHARED$c]||defineGlobalProperty$2$c(SHARED$c,{}),sharedStore$c=store$3$c,store$2$c=sharedStore$c;(shared$3$c.exports=function(v,k){return store$2$c[v]||(store$2$c[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var uncurryThis$g$4=functionUncurryThis$c,id$e=0,postfix$c=Math.random(),toString$2$a=uncurryThis$g$4(1 .toString),uid$3$2=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$2$a(++id$e+postfix$c,36)},global$b$8=global$h$7,shared$2$c=shared$3$c.exports,hasOwn$a$6=hasOwnProperty_1$c,uid$2$c=uid$3$2,NATIVE_SYMBOL$d=nativeSymbol$c,USE_SYMBOL_AS_UID$d=useSymbolAsUid$c,WellKnownSymbolsStore$c=shared$2$c("wks"),Symbol$1$c=global$b$8.Symbol,symbolFor$c=Symbol$1$c&&Symbol$1$c.for,createWellKnownSymbol$c=USE_SYMBOL_AS_UID$d?Symbol$1$c:Symbol$1$c&&Symbol$1$c.withoutSetter||uid$2$c,wellKnownSymbol$e$6=function(v){if(!hasOwn$a$6(WellKnownSymbolsStore$c,v)||!(NATIVE_SYMBOL$d||typeof WellKnownSymbolsStore$c[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$d&&hasOwn$a$6(Symbol$1$c,v)?WellKnownSymbolsStore$c[v]=Symbol$1$c[v]:USE_SYMBOL_AS_UID$d&&symbolFor$c?WellKnownSymbolsStore$c[v]=symbolFor$c(k):WellKnownSymbolsStore$c[v]=createWellKnownSymbol$c(k)}return WellKnownSymbolsStore$c[v]},call$a$7=functionCall$c,isObject$6$7=isObject$a$2,isSymbol$2$c=isSymbol$3$2,getMethod$1$c=getMethod$2$7,ordinaryToPrimitive$d=ordinaryToPrimitive$1$c,wellKnownSymbol$d$6=wellKnownSymbol$e$6,$TypeError$6$8=TypeError,TO_PRIMITIVE$c=wellKnownSymbol$d$6("toPrimitive"),toPrimitive$2$2=function(v,k){if(!isObject$6$7(v)||isSymbol$2$c(v))return v;var ie=getMethod$1$c(v,TO_PRIMITIVE$c),ae;if(ie){if(k===void 0&&(k="default"),ae=call$a$7(ie,v,k),!isObject$6$7(ae)||isSymbol$2$c(ae))return ae;throw $TypeError$6$8("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$d(v,k)},toPrimitive$1$c=toPrimitive$2$2,isSymbol$1$c=isSymbol$3$2,toPropertyKey$4$2=function(v){var k=toPrimitive$1$c(v,"string");return isSymbol$1$c(k)?k:k+""},DESCRIPTORS$a$6=descriptors$c,IE8_DOM_DEFINE$1$a=ie8DomDefine$c,V8_PROTOTYPE_DEFINE_BUG$1$7=v8PrototypeDefineBug$c,anObject$9$6=anObject$a$6,toPropertyKey$3$3=toPropertyKey$4$2,$TypeError$5$c=TypeError,$defineProperty$c=Object.defineProperty,$getOwnPropertyDescriptor$1$a=Object.getOwnPropertyDescriptor,ENUMERABLE$c="enumerable",CONFIGURABLE$d="configurable",WRITABLE$c="writable";objectDefineProperty$c.f=DESCRIPTORS$a$6?V8_PROTOTYPE_DEFINE_BUG$1$7?function v(k,ie,ae){if(anObject$9$6(k),ie=toPropertyKey$3$3(ie),anObject$9$6(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$c in ae&&!ae[WRITABLE$c]){var ce=$getOwnPropertyDescriptor$1$a(k,ie);ce&&ce[WRITABLE$c]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$d in ae?ae[CONFIGURABLE$d]:ce[CONFIGURABLE$d],enumerable:ENUMERABLE$c in ae?ae[ENUMERABLE$c]:ce[ENUMERABLE$c],writable:!1})}return $defineProperty$c(k,ie,ae)}:$defineProperty$c:function v(k,ie,ae){if(anObject$9$6(k),ie=toPropertyKey$3$3(ie),anObject$9$6(ae),IE8_DOM_DEFINE$1$a)try{return $defineProperty$c(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$5$c("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var makeBuiltIn$2$c={exports:{}},uncurryThis$f$4=functionUncurryThis$c,isCallable$c$8=isCallable$i$6,store$1$c=sharedStore$c,functionToString$c=uncurryThis$f$4(Function.toString);isCallable$c$8(store$1$c.inspectSource)||(store$1$c.inspectSource=function(v){return functionToString$c(v)});var inspectSource$3$7=store$1$c.inspectSource,global$a$a=global$h$7,isCallable$b$9=isCallable$i$6,inspectSource$2$c=inspectSource$3$7,WeakMap$1$c=global$a$a.WeakMap,nativeWeakMap$c=isCallable$b$9(WeakMap$1$c)&&/native code/.test(inspectSource$2$c(WeakMap$1$c)),createPropertyDescriptor$5$2=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$9$6=descriptors$c,definePropertyModule$6$2=objectDefineProperty$c,createPropertyDescriptor$4$3=createPropertyDescriptor$5$2,createNonEnumerableProperty$6$2=DESCRIPTORS$9$6?function(v,k,ie){return definePropertyModule$6$2.f(v,k,createPropertyDescriptor$4$3(1,ie))}:function(v,k,ie){return v[k]=ie,v},shared$1$c=shared$3$c.exports,uid$1$c=uid$3$2,keys$1$2=shared$1$c("keys"),sharedKey$3$7=function(v){return keys$1$2[v]||(keys$1$2[v]=uid$1$c(v))},hiddenKeys$4$7={},NATIVE_WEAK_MAP$c=nativeWeakMap$c,global$9$c=global$h$7,uncurryThis$e$6=functionUncurryThis$c,isObject$5$c=isObject$a$2,createNonEnumerableProperty$5$4=createNonEnumerableProperty$6$2,hasOwn$9$7=hasOwnProperty_1$c,shared$f=sharedStore$c,sharedKey$2$7=sharedKey$3$7,hiddenKeys$3$a=hiddenKeys$4$7,OBJECT_ALREADY_INITIALIZED$c="Object already initialized",TypeError$2$7=global$9$c.TypeError,WeakMap$e=global$9$c.WeakMap,set$1$7,get$1$2,has$c,enforce$c=function(v){return has$c(v)?get$1$2(v):set$1$7(v,{})},getterFor$c=function(v){return function(k){var ie;if(!isObject$5$c(k)||(ie=get$1$2(k)).type!==v)throw TypeError$2$7("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$c||shared$f.state?(store$f=shared$f.state||(shared$f.state=new WeakMap$e),wmget$c=uncurryThis$e$6(store$f.get),wmhas$c=uncurryThis$e$6(store$f.has),wmset$c=uncurryThis$e$6(store$f.set),set$1$7=function(v,k){if(wmhas$c(store$f,v))throw new TypeError$2$7(OBJECT_ALREADY_INITIALIZED$c);return k.facade=v,wmset$c(store$f,v,k),k},get$1$2=function(v){return wmget$c(store$f,v)||{}},has$c=function(v){return wmhas$c(store$f,v)}):(STATE$c=sharedKey$2$7("state"),hiddenKeys$3$a[STATE$c]=!0,set$1$7=function(v,k){if(hasOwn$9$7(v,STATE$c))throw new TypeError$2$7(OBJECT_ALREADY_INITIALIZED$c);return k.facade=v,createNonEnumerableProperty$5$4(v,STATE$c,k),k},get$1$2=function(v){return hasOwn$9$7(v,STATE$c)?v[STATE$c]:{}},has$c=function(v){return hasOwn$9$7(v,STATE$c)});var store$f,wmget$c,wmhas$c,wmset$c,STATE$c,internalState$c={set:set$1$7,get:get$1$2,has:has$c,enforce:enforce$c,getterFor:getterFor$c},fails$e$6=fails$k$3,isCallable$a$c=isCallable$i$6,hasOwn$8$8=hasOwnProperty_1$c,DESCRIPTORS$8$7=descriptors$c,CONFIGURABLE_FUNCTION_NAME$2$2=functionName$c.CONFIGURABLE,inspectSource$1$c=inspectSource$3$7,InternalStateModule$4$2=internalState$c,enforceInternalState$2$2=InternalStateModule$4$2.enforce,getInternalState$4$2=InternalStateModule$4$2.get,defineProperty$6$2=Object.defineProperty,CONFIGURABLE_LENGTH$c=DESCRIPTORS$8$7&&!fails$e$6(function(){return defineProperty$6$2(function(){},"length",{value:8}).length!==8}),TEMPLATE$c=String(String).split("String"),makeBuiltIn$1$c=makeBuiltIn$2$c.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$8$8(v,"name")||CONFIGURABLE_FUNCTION_NAME$2$2&&v.name!==k)&&(DESCRIPTORS$8$7?defineProperty$6$2(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$c&&ie&&hasOwn$8$8(ie,"arity")&&v.length!==ie.arity&&defineProperty$6$2(v,"length",{value:ie.arity});try{ie&&hasOwn$8$8(ie,"constructor")&&ie.constructor?DESCRIPTORS$8$7&&defineProperty$6$2(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$2$2(v);return hasOwn$8$8(ae,"source")||(ae.source=TEMPLATE$c.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$c(function v(){return isCallable$a$c(this)&&getInternalState$4$2(this).source||inspectSource$1$c(this)},"toString");var isCallable$9$c=isCallable$i$6,definePropertyModule$5$3=objectDefineProperty$c,makeBuiltIn$e=makeBuiltIn$2$c.exports,defineGlobalProperty$1$c=defineGlobalProperty$3$a,defineBuiltIn$6$6=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$9$c(ie)&&makeBuiltIn$e(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$c(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$5$3.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},wellKnownSymbol$c$6=wellKnownSymbol$e$6,TO_STRING_TAG$3$7=wellKnownSymbol$c$6("toStringTag"),test$b={};test$b[TO_STRING_TAG$3$7]="z";var toStringTagSupport$b=String(test$b)==="[object z]",uncurryThis$d$7=functionUncurryThis$c,toString$1$c=uncurryThis$d$7({}.toString),stringSlice$c=uncurryThis$d$7("".slice),classofRaw$1$b=function(v){return stringSlice$c(toString$1$c(v),8,-1)},TO_STRING_TAG_SUPPORT$b=toStringTagSupport$b,isCallable$8$c=isCallable$i$6,classofRaw$d=classofRaw$1$b,wellKnownSymbol$b$6=wellKnownSymbol$e$6,TO_STRING_TAG$2$8=wellKnownSymbol$b$6("toStringTag"),$Object$2$c=Object,CORRECT_ARGUMENTS$b=classofRaw$d(function(){return arguments}())=="Arguments",tryGet$b=function(v,k){try{return v[k]}catch{}},classof$8$2=TO_STRING_TAG_SUPPORT$b?classofRaw$d:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$b(k=$Object$2$c(v),TO_STRING_TAG$2$8))=="string"?ie:CORRECT_ARGUMENTS$b?classofRaw$d(k):(ae=classofRaw$d(k))=="Object"&&isCallable$8$c(k.callee)?"Arguments":ae},classof$7$3=classof$8$2,$String$1$c=String,toString2$a=function(v){if(classof$7$3(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$1$c(v)},anObject$8$7=anObject$a$6,regexpFlags$a=function(){var v=anObject$8$7(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$9$7=functionCall$c,hasOwn$7$9=hasOwnProperty_1$c,isPrototypeOf$3$6=objectIsPrototypeOf$c,regExpFlags$a=regexpFlags$a,RegExpPrototype$1$a=RegExp.prototype,regexpGetFlags$a=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$a)&&!hasOwn$7$9(v,"flags")&&isPrototypeOf$3$6(RegExpPrototype$1$a,v)?call$9$7(regExpFlags$a,v):k},PROPER_FUNCTION_NAME$2$2=functionName$c.PROPER,defineBuiltIn$5$6=defineBuiltIn$6$6,anObject$7$8=anObject$a$6,$toString$a=toString2$a,fails$d$6=fails$k$3,getRegExpFlags$a=regexpGetFlags$a,TO_STRING$a="toString",RegExpPrototype$b=RegExp.prototype,n$ToString$a=RegExpPrototype$b[TO_STRING$a],NOT_GENERIC$a=fails$d$6(function(){return n$ToString$a.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$a=PROPER_FUNCTION_NAME$2$2&&n$ToString$a.name!=TO_STRING$a;(NOT_GENERIC$a||INCORRECT_NAME$a)&&defineBuiltIn$5$6(RegExp.prototype,TO_STRING$a,function(){var k=anObject$7$8(this),ie=$toString$a(k.source),ae=$toString$a(getRegExpFlags$a(k));return"/"+ie+"/"+ae},{unsafe:!0});var uncurryThis$c$7=functionUncurryThis$c,fails$c$6=fails$k$3,classof$6$4=classofRaw$1$b,$Object$1$c=Object,split$a=uncurryThis$c$7("".split),indexedObject$a=fails$c$6(function(){return!$Object$1$c("z").propertyIsEnumerable(0)})?function(v){return classof$6$4(v)=="String"?split$a(v,""):$Object$1$c(v)}:$Object$1$c,IndexedObject$2$2=indexedObject$a,requireObjectCoercible$e=requireObjectCoercible$2$a,toIndexedObject$6$2=function(v){return IndexedObject$2$2(requireObjectCoercible$e(v))},objectDefineProperties$7={},ceil$a=Math.ceil,floor$3$2=Math.floor,mathTrunc$a=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$3$2:ceil$a)(ie)},trunc2$a=mathTrunc$a,toIntegerOrInfinity$5$2=function(v){var k=+v;return k!==k||k===0?0:trunc2$a(k)},toIntegerOrInfinity$4$3=toIntegerOrInfinity$5$2,max$1$4=Math.max,min$1$a=Math.min,toAbsoluteIndex$4$2=function(v,k){var ie=toIntegerOrInfinity$4$3(v);return ie<0?max$1$4(ie+k,0):min$1$a(ie,k)},toIntegerOrInfinity$3$4=toIntegerOrInfinity$5$2,min$b=Math.min,toLength$5$2=function(v){return v>0?min$b(toIntegerOrInfinity$3$4(v),9007199254740991):0},toLength$4$2=toLength$5$2,lengthOfArrayLike$6$2=function(v){return toLength$4$2(v.length)},toIndexedObject$5$7=toIndexedObject$6$2,toAbsoluteIndex$3$2=toAbsoluteIndex$4$2,lengthOfArrayLike$5$2=lengthOfArrayLike$6$2,createMethod$1$4=function(v){return function(k,ie,ae){var ce=toIndexedObject$5$7(k),fe=lengthOfArrayLike$5$2(ce),le=toAbsoluteIndex$3$2(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$a={includes:createMethod$1$4(!0),indexOf:createMethod$1$4(!1)},uncurryThis$b$7=functionUncurryThis$c,hasOwn$6$a=hasOwnProperty_1$c,toIndexedObject$4$7=toIndexedObject$6$2,indexOf$a=arrayIncludes$a.indexOf,hiddenKeys$2$a=hiddenKeys$4$7,push$1$4=uncurryThis$b$7([].push),objectKeysInternal$a=function(v,k){var ie=toIndexedObject$4$7(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$6$a(hiddenKeys$2$a,fe)&&hasOwn$6$a(ie,fe)&&push$1$4(ce,fe);for(;k.length>ae;)hasOwn$6$a(ie,fe=k[ae++])&&(~indexOf$a(ce,fe)||push$1$4(ce,fe));return ce},enumBugKeys$3$7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$9=objectKeysInternal$a,enumBugKeys$2$9=enumBugKeys$3$7,objectKeys$2$6=Object.keys||function v(k){return internalObjectKeys$1$9(k,enumBugKeys$2$9)},DESCRIPTORS$7$a=descriptors$c,V8_PROTOTYPE_DEFINE_BUG$d=v8PrototypeDefineBug$c,definePropertyModule$4$6=objectDefineProperty$c,anObject$6$8=anObject$a$6,toIndexedObject$3$a=toIndexedObject$6$2,objectKeys$1$9=objectKeys$2$6;objectDefineProperties$7.f=DESCRIPTORS$7$a&&!V8_PROTOTYPE_DEFINE_BUG$d?Object.defineProperties:function v(k,ie){anObject$6$8(k);for(var ae=toIndexedObject$3$a(ie),ce=objectKeys$1$9(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$4$6.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$3$a=getBuiltIn$6$7,html$1$8=getBuiltIn$3$a("document","documentElement"),anObject$5$8=anObject$a$6,definePropertiesModule$7=objectDefineProperties$7,enumBugKeys$1$a=enumBugKeys$3$7,hiddenKeys$1$a=hiddenKeys$4$7,html$9=html$1$8,documentCreateElement$d=documentCreateElement$1$7,sharedKey$1$c=sharedKey$3$7,GT$7=">",LT$7="<",PROTOTYPE$1$2="prototype",SCRIPT$7="script",IE_PROTO$1$7=sharedKey$1$c("IE_PROTO"),EmptyConstructor$7=function(){},scriptTag$7=function(v){return LT$7+SCRIPT$7+GT$7+v+LT$7+"/"+SCRIPT$7+GT$7},NullProtoObjectViaActiveX$7=function(v){v.write(scriptTag$7("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$7=function(){var v=documentCreateElement$d("iframe"),k="java"+SCRIPT$7+":",ie;return v.style.display="none",html$9.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$7("document.F=Object")),ie.close(),ie.F},activeXDocument$7,NullProtoObject$7=function(){try{activeXDocument$7=new ActiveXObject("htmlfile")}catch{}NullProtoObject$7=typeof document<"u"?document.domain&&activeXDocument$7?NullProtoObjectViaActiveX$7(activeXDocument$7):NullProtoObjectViaIFrame$7():NullProtoObjectViaActiveX$7(activeXDocument$7);for(var v=enumBugKeys$1$a.length;v--;)delete NullProtoObject$7[PROTOTYPE$1$2][enumBugKeys$1$a[v]];return NullProtoObject$7()};hiddenKeys$1$a[IE_PROTO$1$7]=!0;var objectCreate$7=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$7[PROTOTYPE$1$2]=anObject$5$8(k),ae=new EmptyConstructor$7,EmptyConstructor$7[PROTOTYPE$1$2]=null,ae[IE_PROTO$1$7]=k):ae=NullProtoObject$7(),ie===void 0?ae:definePropertiesModule$7.f(ae,ie)},wellKnownSymbol$a$7=wellKnownSymbol$e$6,create$2$4=objectCreate$7,defineProperty$5$6=objectDefineProperty$c.f,UNSCOPABLES$7=wellKnownSymbol$a$7("unscopables"),ArrayPrototype$1$6=Array.prototype;ArrayPrototype$1$6[UNSCOPABLES$7]==null&&defineProperty$5$6(ArrayPrototype$1$6,UNSCOPABLES$7,{configurable:!0,value:create$2$4(null)});var addToUnscopables$1$7=function(v){ArrayPrototype$1$6[UNSCOPABLES$7][v]=!0},iterators$8={},objectGetOwnPropertyDescriptor$a={},objectPropertyIsEnumerable$a={},$propertyIsEnumerable$a={}.propertyIsEnumerable,getOwnPropertyDescriptor$1$a=Object.getOwnPropertyDescriptor,NASHORN_BUG$a=getOwnPropertyDescriptor$1$a&&!$propertyIsEnumerable$a.call({1:2},1);objectPropertyIsEnumerable$a.f=NASHORN_BUG$a?function v(k){var ie=getOwnPropertyDescriptor$1$a(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$a;var DESCRIPTORS$6$a=descriptors$c,call$8$7=functionCall$c,propertyIsEnumerableModule$1$8=objectPropertyIsEnumerable$a,createPropertyDescriptor$3$7=createPropertyDescriptor$5$2,toIndexedObject$2$a=toIndexedObject$6$2,toPropertyKey$2$a=toPropertyKey$4$2,hasOwn$5$a=hasOwnProperty_1$c,IE8_DOM_DEFINE$d=ie8DomDefine$c,$getOwnPropertyDescriptor$d=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$a.f=DESCRIPTORS$6$a?$getOwnPropertyDescriptor$d:function v(k,ie){if(k=toIndexedObject$2$a(k),ie=toPropertyKey$2$a(ie),IE8_DOM_DEFINE$d)try{return $getOwnPropertyDescriptor$d(k,ie)}catch{}if(hasOwn$5$a(k,ie))return createPropertyDescriptor$3$7(!call$8$7(propertyIsEnumerableModule$1$8.f,k,ie),k[ie])};var objectGetOwnPropertyNames$a={},internalObjectKeys$b=objectKeysInternal$a,enumBugKeys$d=enumBugKeys$3$7,hiddenKeys$e=enumBugKeys$d.concat("length","prototype");objectGetOwnPropertyNames$a.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$b(k,hiddenKeys$e)};var objectGetOwnPropertySymbols$a={};objectGetOwnPropertySymbols$a.f=Object.getOwnPropertySymbols;var getBuiltIn$2$c=getBuiltIn$6$7,uncurryThis$a$a=functionUncurryThis$c,getOwnPropertyNamesModule$a=objectGetOwnPropertyNames$a,getOwnPropertySymbolsModule$1$8=objectGetOwnPropertySymbols$a,anObject$4$9=anObject$a$6,concat$1$8=uncurryThis$a$a([].concat),ownKeys$1$a=getBuiltIn$2$c("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$a.f(anObject$4$9(k)),ae=getOwnPropertySymbolsModule$1$8.f;return ae?concat$1$8(ie,ae(k)):ie},hasOwn$4$c=hasOwnProperty_1$c,ownKeys2$a=ownKeys$1$a,getOwnPropertyDescriptorModule$1$2=objectGetOwnPropertyDescriptor$a,definePropertyModule$3$8=objectDefineProperty$c,copyConstructorProperties$1$a=function(v,k,ie){for(var ae=ownKeys2$a(k),ce=definePropertyModule$3$8.f,fe=getOwnPropertyDescriptorModule$1$2.f,le=0;le=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values");var values$7=Iterators$2$7.Arguments=Iterators$2$7.Array;addToUnscopables$8("keys");addToUnscopables$8("values");addToUnscopables$8("entries");if(DESCRIPTORS$5$c&&values$7.name!=="values")try{defineProperty$3$7(values$7,"name",{value:"values"})}catch(v){}var arrayBufferNative$2=typeof ArrayBuffer<"u"&&typeof DataView<"u",defineBuiltIn$1$c=defineBuiltIn$6$6,defineBuiltIns$1$2=function(v,k,ie){for(var ae in k)defineBuiltIn$1$c(v,ae,k[ae],ie);return v},isPrototypeOf$2$7=objectIsPrototypeOf$c,$TypeError$3$c=TypeError,anInstance$2$2=function(v,k){if(isPrototypeOf$2$7(k,v))return v;throw $TypeError$3$c("Incorrect invocation")},toIntegerOrInfinity$2$a=toIntegerOrInfinity$5$2,toLength$3$2=toLength$5$2,$RangeError$2$2=RangeError,toIndex$2$2=function(v){if(v===void 0)return 0;var k=toIntegerOrInfinity$2$a(v),ie=toLength$3$2(k);if(k!==ie)throw $RangeError$2$2("Wrong length or index");return ie},$Array$2$2=Array,abs$2=Math.abs,pow$2=Math.pow,floor$2$2=Math.floor,log$2=Math.log,LN2$2=Math.LN2,pack$3=function(v,k,ie){var ae=$Array$2$2(ie),ce=ie*8-k-1,fe=(1<>1,ve=k===23?pow$2(2,-24)-pow$2(2,-77):0,pe=v<0||v===0&&1/v<0?1:0,ye=0,me,Ee,cr;for(v=abs$2(v),v!=v||v===1/0?(Ee=v!=v?1:0,me=fe):(me=floor$2$2(log$2(v)/LN2$2),cr=pow$2(2,-me),v*cr<1&&(me--,cr*=2),me+le>=1?v+=ve/cr:v+=ve*pow$2(2,1-le),v*cr>=2&&(me++,cr/=2),me+le>=fe?(Ee=0,me=fe):me+le>=1?(Ee=(v*cr-1)*pow$2(2,k),me=me+le):(Ee=v*pow$2(2,le-1)*pow$2(2,k),me=0));k>=8;)ae[ye++]=Ee&255,Ee/=256,k-=8;for(me=me<0;)ae[ye++]=me&255,me/=256,ce-=8;return ae[--ye]|=pe*128,ae},unpack$3=function(v,k){var ie=v.length,ae=ie*8-k-1,ce=(1<>1,le=ae-7,ve=ie-1,pe=v[ve--],ye=pe&127,me;for(pe>>=7;le>0;)ye=ye*256+v[ve--],le-=8;for(me=ye&(1<<-le)-1,ye>>=-le,le+=k;le>0;)me=me*256+v[ve--],le-=8;if(ye===0)ye=1-fe;else{if(ye===ce)return me?NaN:pe?-1/0:1/0;me=me+pow$2(2,k),ye=ye-fe}return(pe?-1:1)*me*pow$2(2,ye-k)},ieee754$2={pack:pack$3,unpack:unpack$3},toObject$3$6=toObject$6$2,toAbsoluteIndex$2$3=toAbsoluteIndex$4$2,lengthOfArrayLike$4$2=lengthOfArrayLike$6$2,arrayFill$1$2=function v(k){for(var ie=toObject$3$6(this),ae=lengthOfArrayLike$4$2(ie),ce=arguments.length,fe=toAbsoluteIndex$2$3(ce>1?arguments[1]:void 0,ae),le=ce>2?arguments[2]:void 0,ve=le===void 0?ae:toAbsoluteIndex$2$3(le,ae);ve>fe;)ie[fe++]=k;return ie},toPropertyKey$1$c=toPropertyKey$4$2,definePropertyModule$2$a=objectDefineProperty$c,createPropertyDescriptor$1$c=createPropertyDescriptor$5$2,createProperty$1$3=function(v,k,ie){var ae=toPropertyKey$1$c(k);ae in v?definePropertyModule$2$a.f(v,ae,createPropertyDescriptor$1$c(0,ie)):v[ae]=ie},toAbsoluteIndex$1$a=toAbsoluteIndex$4$2,lengthOfArrayLike$3$3=lengthOfArrayLike$6$2,createProperty$4=createProperty$1$3,$Array$1$2=Array,max$b=Math.max,arraySliceSimple$3=function(v,k,ie){for(var ae=lengthOfArrayLike$3$3(v),ce=toAbsoluteIndex$1$a(k,ae),fe=toAbsoluteIndex$1$a(ie===void 0?ae:ie,ae),le=$Array$1$2(max$b(fe-ce,0)),ve=0;ce>8&255]},packInt32$2=function(v){return[v&255,v>>8&255,v>>16&255,v>>24&255]},unpackInt32$2=function(v){return v[3]<<24|v[2]<<16|v[1]<<8|v[0]},packFloat32$2=function(v){return packIEEE754$2(v,23,4)},packFloat64$2=function(v){return packIEEE754$2(v,52,8)},addGetter$1$2=function(v,k){defineProperty$2$a(v[PROTOTYPE$8],k,{get:function(){return getInternalState$2$4(this)[k]}})},get$d=function(v,k,ie,ae){var ce=toIndex$1$2(ie),fe=getInternalState$2$4(v);if(ce+k>fe.byteLength)throw RangeError$3$2(WRONG_INDEX$2);var le=getInternalState$2$4(fe.buffer).bytes,ve=ce+fe.byteOffset,pe=arraySlice$3$2(le,ve,ve+k);return ae?pe:reverse$2(pe)},set$d=function(v,k,ie,ae,ce,fe){var le=toIndex$1$2(ie),ve=getInternalState$2$4(v);if(le+k>ve.byteLength)throw RangeError$3$2(WRONG_INDEX$2);for(var pe=getInternalState$2$4(ve.buffer).bytes,ye=le+ve.byteOffset,me=ae(+ce),Ee=0;Eece)throw RangeError$3$2("Wrong offset");if(ae=ae===void 0?ce-fe:toLength$2$4(ae),fe+ae>ce)throw RangeError$3$2(WRONG_LENGTH$1$2);setInternalState$1$6(this,{buffer:k,byteLength:ae,byteOffset:fe}),DESCRIPTORS$4$c||(this.buffer=k,this.byteLength=ae,this.byteOffset=fe)},DataViewPrototype$1$2=$DataView$2[PROTOTYPE$8],DESCRIPTORS$4$c&&(addGetter$1$2($ArrayBuffer$2,"byteLength"),addGetter$1$2($DataView$2,"buffer"),addGetter$1$2($DataView$2,"byteLength"),addGetter$1$2($DataView$2,"byteOffset")),defineBuiltIns$3(DataViewPrototype$1$2,{getInt8:function(k){return get$d(this,1,k)[0]<<24>>24},getUint8:function(k){return get$d(this,1,k)[0]},getInt16:function(k){var ie=get$d(this,2,k,arguments.length>1?arguments[1]:void 0);return(ie[1]<<8|ie[0])<<16>>16},getUint16:function(k){var ie=get$d(this,2,k,arguments.length>1?arguments[1]:void 0);return ie[1]<<8|ie[0]},getInt32:function(k){return unpackInt32$2(get$d(this,4,k,arguments.length>1?arguments[1]:void 0))},getUint32:function(k){return unpackInt32$2(get$d(this,4,k,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(k){return unpackIEEE754$2(get$d(this,4,k,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(k){return unpackIEEE754$2(get$d(this,8,k,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(k,ie){set$d(this,1,k,packInt8$2,ie)},setUint8:function(k,ie){set$d(this,1,k,packInt8$2,ie)},setInt16:function(k,ie){set$d(this,2,k,packInt16$2,ie,arguments.length>2?arguments[2]:void 0)},setUint16:function(k,ie){set$d(this,2,k,packInt16$2,ie,arguments.length>2?arguments[2]:void 0)},setInt32:function(k,ie){set$d(this,4,k,packInt32$2,ie,arguments.length>2?arguments[2]:void 0)},setUint32:function(k,ie){set$d(this,4,k,packInt32$2,ie,arguments.length>2?arguments[2]:void 0)},setFloat32:function(k,ie){set$d(this,4,k,packFloat32$2,ie,arguments.length>2?arguments[2]:void 0)},setFloat64:function(k,ie){set$d(this,8,k,packFloat64$2,ie,arguments.length>2?arguments[2]:void 0)}});else{if(INCORRECT_ARRAY_BUFFER_NAME$2=PROPER_FUNCTION_NAME$c&&NativeArrayBuffer$2.name!==ARRAY_BUFFER$2,!fails$8$a(function(){NativeArrayBuffer$2(1)})||!fails$8$a(function(){new NativeArrayBuffer$2(-1)})||fails$8$a(function(){return new NativeArrayBuffer$2,new NativeArrayBuffer$2(1.5),new NativeArrayBuffer$2(NaN),INCORRECT_ARRAY_BUFFER_NAME$2&&!CONFIGURABLE_FUNCTION_NAME$e})){for($ArrayBuffer$2=function(k){return anInstance$1$7(this,ArrayBufferPrototype$1$2),new NativeArrayBuffer$2(toIndex$1$2(k))},$ArrayBuffer$2[PROTOTYPE$8]=ArrayBufferPrototype$1$2,keys2$3=getOwnPropertyNames$1$2(NativeArrayBuffer$2),j$4=0;keys2$3.length>j$4;)(key$3=keys2$3[j$4++])in $ArrayBuffer$2||createNonEnumerableProperty$2$a($ArrayBuffer$2,key$3,NativeArrayBuffer$2[key$3]);ArrayBufferPrototype$1$2.constructor=$ArrayBuffer$2}else INCORRECT_ARRAY_BUFFER_NAME$2&&CONFIGURABLE_FUNCTION_NAME$e&&createNonEnumerableProperty$2$a(NativeArrayBuffer$2,"name",ARRAY_BUFFER$2);setPrototypeOf$3$2&&getPrototypeOf$1$7(DataViewPrototype$1$2)!==ObjectPrototype$1$2&&setPrototypeOf$3$2(DataViewPrototype$1$2,ObjectPrototype$1$2),testView$2=new $DataView$2(new $ArrayBuffer$2(2)),$setInt8$2=uncurryThis$8$a(DataViewPrototype$1$2.setInt8),testView$2.setInt8(0,2147483648),testView$2.setInt8(1,2147483649),(testView$2.getInt8(0)||!testView$2.getInt8(1))&&defineBuiltIns$3(DataViewPrototype$1$2,{setInt8:function(k,ie){$setInt8$2(this,k,ie<<24>>24)},setUint8:function(k,ie){$setInt8$2(this,k,ie<<24>>24)}},{unsafe:!0})}var INCORRECT_ARRAY_BUFFER_NAME$2,keys2$3,j$4,key$3,testView$2,$setInt8$2;setToStringTag$b($ArrayBuffer$2,ARRAY_BUFFER$2);setToStringTag$b($DataView$2,DATA_VIEW$2);var arrayBuffer$2={ArrayBuffer:$ArrayBuffer$2,DataView:$DataView$2},uncurryThis$7$a=functionUncurryThis$c,fails$7$c=fails$k$3,isCallable$2$c=isCallable$i$6,classof$5$6=classof$8$2,getBuiltIn$1$c=getBuiltIn$6$7,inspectSource$g=inspectSource$3$7,noop$7=function(){},empty$6=[],construct$7=getBuiltIn$1$c("Reflect","construct"),constructorRegExp$7=/^\s*(?:class|function)\b/,exec$8=uncurryThis$7$a(constructorRegExp$7.exec),INCORRECT_TO_STRING$7=!constructorRegExp$7.exec(noop$7),isConstructorModern$7=function v(k){if(!isCallable$2$c(k))return!1;try{return construct$7(noop$7,empty$6,k),!0}catch{return!1}},isConstructorLegacy$7=function v(k){if(!isCallable$2$c(k))return!1;switch(classof$5$6(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$7||!!exec$8(constructorRegExp$7,inspectSource$g(k))}catch{return!0}};isConstructorLegacy$7.sham=!0;var isConstructor$2$2=!construct$7||fails$7$c(function(){var v;return isConstructorModern$7(isConstructorModern$7.call)||!isConstructorModern$7(Object)||!isConstructorModern$7(function(){v=!0})||v})?isConstructorLegacy$7:isConstructorModern$7,isConstructor$1$7=isConstructor$2$2,tryToString$2$7=tryToString$4$7,$TypeError$2$c=TypeError,aConstructor$2$2=function(v){if(isConstructor$1$7(v))return v;throw $TypeError$2$c(tryToString$2$7(v)+" is not a constructor")},anObject$2$c=anObject$a$6,aConstructor$1$7=aConstructor$2$2,wellKnownSymbol$6$8=wellKnownSymbol$e$6,SPECIES$2$7=wellKnownSymbol$6$8("species"),speciesConstructor$1$7=function(v,k){var ie=anObject$2$c(v).constructor,ae;return ie===void 0||(ae=anObject$2$c(ie)[SPECIES$2$7])==null?k:aConstructor$1$7(ae)},$$2$7=_export$a,uncurryThis$6$c=functionUncurryThis$c,fails$6$c=fails$k$3,ArrayBufferModule$1$2=arrayBuffer$2,anObject$1$c=anObject$a$6,toAbsoluteIndex$e=toAbsoluteIndex$4$2,toLength$1$a=toLength$5$2,speciesConstructor$8=speciesConstructor$1$7,ArrayBuffer$3$2=ArrayBufferModule$1$2.ArrayBuffer,DataView$2$2=ArrayBufferModule$1$2.DataView,DataViewPrototype$3=DataView$2$2.prototype,un$ArrayBufferSlice$2=uncurryThis$6$c(ArrayBuffer$3$2.prototype.slice),getUint8$2=uncurryThis$6$c(DataViewPrototype$3.getUint8),setUint8$2=uncurryThis$6$c(DataViewPrototype$3.setUint8),INCORRECT_SLICE$2=fails$6$c(function(){return!new ArrayBuffer$3$2(2).slice(1,void 0).byteLength});$$2$7({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:INCORRECT_SLICE$2},{slice:function v(k,ie){if(un$ArrayBufferSlice$2&&ie===void 0)return un$ArrayBufferSlice$2(anObject$1$c(this),k);for(var ae=anObject$1$c(this).byteLength,ce=toAbsoluteIndex$e(k,ae),fe=toAbsoluteIndex$e(ie===void 0?ae:ie,ae),le=new(speciesConstructor$8(this,ArrayBuffer$3$2))(toLength$1$a(fe-ce)),ve=new DataView$2$2(this),pe=new DataView$2$2(le),ye=0;ce1?arguments[1]:void 0,le=fe!==void 0,ve=getIteratorMethod$9(ae),pe,ye,me,Ee,cr,Br;if(ve&&!isArrayIteratorMethod$8(ve))for(cr=getIterator$8(ae,ve),Br=cr.next,ae=[];!(Ee=call$5$a(Br,cr)).done;)ae.push(Ee.value);for(le&&ce>2&&(fe=bind$1$7(fe,arguments[2])),ye=lengthOfArrayLike$2$7(ae),me=new(aTypedArrayConstructor$1$2(ie))(ye),pe=0;ye>pe;pe++)me[pe]=le?fe(ae[pe],pe):ae[pe];return me},classof$2$9=classofRaw$1$b,isArray$1$2=Array.isArray||function v(k){return classof$2$9(k)=="Array"},isArray2$2=isArray$1$2,isConstructor3$7=isConstructor$2$2,isObject$2$c=isObject$a$2,wellKnownSymbol$1$c=wellKnownSymbol$e$6,SPECIES$1$7=wellKnownSymbol$1$c("species"),$Array$5=Array,arraySpeciesConstructor$1$2=function(v){var k;return isArray2$2(v)&&(k=v.constructor,isConstructor3$7(k)&&(k===$Array$5||isArray2$2(k.prototype))?k=void 0:isObject$2$c(k)&&(k=k[SPECIES$1$7],k===null&&(k=void 0))),k===void 0?$Array$5:k},arraySpeciesConstructor$3=arraySpeciesConstructor$1$2,arraySpeciesCreate$1$2=function(v,k){return new(arraySpeciesConstructor$3(v))(k===0?0:k)},bind$h=functionBindContext$7,uncurryThis$4$c=functionUncurryThis$c,IndexedObject$1$8=indexedObject$a,toObject$1$c=toObject$6$2,lengthOfArrayLike$1$a=lengthOfArrayLike$6$2,arraySpeciesCreate$3=arraySpeciesCreate$1$2,push$b=uncurryThis$4$c([].push),createMethod$b=function(v){var k=v==1,ie=v==2,ae=v==3,ce=v==4,fe=v==6,le=v==7,ve=v==5||fe;return function(pe,ye,me,Ee){for(var cr=toObject$1$c(pe),Br=IndexedObject$1$8(cr),$r=bind$h(ye,me),Pr=lengthOfArrayLike$1$a(Br),Or=0,ur=Ee||arraySpeciesCreate$3,jr=k?ur(pe,Pr):ie||le?ur(pe,0):void 0,Mr,Lr;Pr>Or;Or++)if((ve||Or in Br)&&(Mr=Br[Or],Lr=$r(Mr,Or,cr),v))if(k)jr[Or]=Lr;else if(Lr)switch(v){case 3:return!0;case 5:return Mr;case 6:return Or;case 2:push$b(jr,Mr)}else switch(v){case 4:return!1;case 7:push$b(jr,Mr)}return fe?-1:ae||ce?ce:jr}},arrayIteration$2={forEach:createMethod$b(0),map:createMethod$b(1),filter:createMethod$b(2),some:createMethod$b(3),every:createMethod$b(4),find:createMethod$b(5),findIndex:createMethod$b(6),filterReject:createMethod$b(7)},getBuiltIn$k=getBuiltIn$6$7,definePropertyModule$1$c=objectDefineProperty$c,wellKnownSymbol$q=wellKnownSymbol$e$6,DESCRIPTORS$2$c=descriptors$c,SPECIES$9=wellKnownSymbol$q("species"),setSpecies$1$7=function(v){var k=getBuiltIn$k(v),ie=definePropertyModule$1$c.f;DESCRIPTORS$2$c&&k&&!k[SPECIES$9]&&ie(k,SPECIES$9,{configurable:!0,get:function(){return this}})},isCallable$u=isCallable$i$6,isObject$1$c=isObject$a$2,setPrototypeOf$1$6=objectSetPrototypeOf$8,inheritIfRequired$1$2=function(v,k,ie){var ae,ce;return setPrototypeOf$1$6&&isCallable$u(ae=k.constructor)&&ae!==ie&&isObject$1$c(ce=ae.prototype)&&ce!==ie.prototype&&setPrototypeOf$1$6(v,ce),v},$$1$7=_export$a,global$4$c=global$h$7,call$4$c=functionCall$c,DESCRIPTORS$1$c=descriptors$c,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$2=typedArrayConstructorsRequireWrappers$2,ArrayBufferViewCore$4$2=arrayBufferViewCore$2,ArrayBufferModule$3=arrayBuffer$2,anInstance$9=anInstance$2$2,createPropertyDescriptor$h=createPropertyDescriptor$5$2,createNonEnumerableProperty$i=createNonEnumerableProperty$6$2,isIntegralNumber$3=isIntegralNumber$1$2,toLength$f=toLength$5$2,toIndex$4=toIndex$2$2,toOffset$1$2=toOffset$2$2,toPropertyKey$g=toPropertyKey$4$2,hasOwn2$c=hasOwnProperty_1$c,classof$1$b=classof$8$2,isObject$n=isObject$a$2,isSymbol$f=isSymbol$3$2,create2$6=objectCreate$7,isPrototypeOf$g=objectIsPrototypeOf$c,setPrototypeOf$c=objectSetPrototypeOf$8,getOwnPropertyNames2$2=objectGetOwnPropertyNames$a.f,typedArrayFrom$3=typedArrayFrom$1$2,forEach$2=arrayIteration$2.forEach,setSpecies$8=setSpecies$1$7,definePropertyModule$i=objectDefineProperty$c,getOwnPropertyDescriptorModule$b=objectGetOwnPropertyDescriptor$a,InternalStateModule$g=internalState$c,inheritIfRequired$3=inheritIfRequired$1$2,getInternalState$g=InternalStateModule$g.get,setInternalState$a=InternalStateModule$g.set,enforceInternalState$e=InternalStateModule$g.enforce,nativeDefineProperty$2=definePropertyModule$i.f,nativeGetOwnPropertyDescriptor$2=getOwnPropertyDescriptorModule$b.f,round$2=Math.round,RangeError$2$2=global$4$c.RangeError,ArrayBuffer$1$2=ArrayBufferModule$3.ArrayBuffer,ArrayBufferPrototype$3=ArrayBuffer$1$2.prototype,DataView$1$2=ArrayBufferModule$3.DataView,NATIVE_ARRAY_BUFFER_VIEWS$4=ArrayBufferViewCore$4$2.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG$3=ArrayBufferViewCore$4$2.TYPED_ARRAY_TAG,TypedArray$3=ArrayBufferViewCore$4$2.TypedArray,TypedArrayPrototype$3=ArrayBufferViewCore$4$2.TypedArrayPrototype,aTypedArrayConstructor$4=ArrayBufferViewCore$4$2.aTypedArrayConstructor,isTypedArray$3=ArrayBufferViewCore$4$2.isTypedArray,BYTES_PER_ELEMENT$2="BYTES_PER_ELEMENT",WRONG_LENGTH$3="Wrong length",fromList$2=function(v,k){aTypedArrayConstructor$4(v);for(var ie=0,ae=k.length,ce=new v(ae);ae>ie;)ce[ie]=k[ie++];return ce},addGetter$3=function(v,k){nativeDefineProperty$2(v,k,{get:function(){return getInternalState$g(this)[k]}})},isArrayBuffer$2=function(v){var k;return isPrototypeOf$g(ArrayBufferPrototype$3,v)||(k=classof$1$b(v))=="ArrayBuffer"||k=="SharedArrayBuffer"},isTypedArrayIndex$2=function(v,k){return isTypedArray$3(v)&&!isSymbol$f(k)&&k in v&&isIntegralNumber$3(+k)&&k>=0},wrappedGetOwnPropertyDescriptor$2=function v(k,ie){return ie=toPropertyKey$g(ie),isTypedArrayIndex$2(k,ie)?createPropertyDescriptor$h(2,k[ie]):nativeGetOwnPropertyDescriptor$2(k,ie)},wrappedDefineProperty$2=function v(k,ie,ae){return ie=toPropertyKey$g(ie),isTypedArrayIndex$2(k,ie)&&isObject$n(ae)&&hasOwn2$c(ae,"value")&&!hasOwn2$c(ae,"get")&&!hasOwn2$c(ae,"set")&&!ae.configurable&&(!hasOwn2$c(ae,"writable")||ae.writable)&&(!hasOwn2$c(ae,"enumerable")||ae.enumerable)?(k[ie]=ae.value,k):nativeDefineProperty$2(k,ie,ae)};DESCRIPTORS$1$c?(NATIVE_ARRAY_BUFFER_VIEWS$4||(getOwnPropertyDescriptorModule$b.f=wrappedGetOwnPropertyDescriptor$2,definePropertyModule$i.f=wrappedDefineProperty$2,addGetter$3(TypedArrayPrototype$3,"buffer"),addGetter$3(TypedArrayPrototype$3,"byteOffset"),addGetter$3(TypedArrayPrototype$3,"byteLength"),addGetter$3(TypedArrayPrototype$3,"length")),$$1$7({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS$4},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor$2,defineProperty:wrappedDefineProperty$2}),typedArrayConstructor$2.exports=function(v,k,ie){var ae=v.match(/\d+$/)[0]/8,ce=v+(ie?"Clamped":"")+"Array",fe="get"+v,le="set"+v,ve=global$4$c[ce],pe=ve,ye=pe&&pe.prototype,me={},Ee=function(Pr,Or){var ur=getInternalState$g(Pr);return ur.view[fe](Or*ae+ur.byteOffset,!0)},cr=function(Pr,Or,ur){var jr=getInternalState$g(Pr);ie&&(ur=(ur=round$2(ur))<0?0:ur>255?255:ur&255),jr.view[le](Or*ae+jr.byteOffset,ur,!0)},Br=function(Pr,Or){nativeDefineProperty$2(Pr,Or,{get:function(){return Ee(this,Or)},set:function(ur){return cr(this,Or,ur)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS$4?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$2&&(pe=k(function(Pr,Or,ur,jr){return anInstance$9(Pr,ye),inheritIfRequired$3(function(){return isObject$n(Or)?isArrayBuffer$2(Or)?jr!==void 0?new ve(Or,toOffset$1$2(ur,ae),jr):ur!==void 0?new ve(Or,toOffset$1$2(ur,ae)):new ve(Or):isTypedArray$3(Or)?fromList$2(pe,Or):call$4$c(typedArrayFrom$3,pe,Or):new ve(toIndex$4(Or))}(),Pr,pe)}),setPrototypeOf$c&&setPrototypeOf$c(pe,TypedArray$3),forEach$2(getOwnPropertyNames2$2(ve),function(Pr){Pr in pe||createNonEnumerableProperty$i(pe,Pr,ve[Pr])}),pe.prototype=ye):(pe=k(function(Pr,Or,ur,jr){anInstance$9(Pr,ye);var Mr=0,Lr=0,Vr,Gr,Ur;if(!isObject$n(Or))Ur=toIndex$4(Or),Gr=Ur*ae,Vr=new ArrayBuffer$1$2(Gr);else if(isArrayBuffer$2(Or)){Vr=Or,Lr=toOffset$1$2(ur,ae);var Qr=Or.byteLength;if(jr===void 0){if(Qr%ae||(Gr=Qr-Lr,Gr<0))throw RangeError$2$2(WRONG_LENGTH$3)}else if(Gr=toLength$f(jr)*ae,Gr+Lr>Qr)throw RangeError$2$2(WRONG_LENGTH$3);Ur=Gr/ae}else return isTypedArray$3(Or)?fromList$2(pe,Or):call$4$c(typedArrayFrom$3,pe,Or);for(setInternalState$a(Pr,{buffer:Vr,byteOffset:Lr,byteLength:Gr,length:Ur,view:new DataView$1$2(Vr)});Mr1?arguments[1]:void 0,ie>2?arguments[2]:void 0)},CONVERSION_BUG$2);var global$3$c=global$h$7,call$2$c=functionCall$c,ArrayBufferViewCore$2$2=arrayBufferViewCore$2,lengthOfArrayLike$g=lengthOfArrayLike$6$2,toOffset$4=toOffset$2$2,toIndexedObject$g=toObject$6$2,fails$3$c=fails$k$3,RangeError$1$2=global$3$c.RangeError,Int8Array$2$2=global$3$c.Int8Array,Int8ArrayPrototype$3=Int8Array$2$2&&Int8Array$2$2.prototype,$set$2=Int8ArrayPrototype$3&&Int8ArrayPrototype$3.set,aTypedArray$2$2=ArrayBufferViewCore$2$2.aTypedArray,exportTypedArrayMethod$2$2=ArrayBufferViewCore$2$2.exportTypedArrayMethod,WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$2=!fails$3$c(function(){var v=new Uint8ClampedArray(2);return call$2$c($set$2,v,{length:1,0:3},1),v[1]!==3}),TO_OBJECT_BUG$2=WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$2&&ArrayBufferViewCore$2$2.NATIVE_ARRAY_BUFFER_VIEWS&&fails$3$c(function(){var v=new Int8Array$2$2(2);return v.set(1),v.set("2",1),v[0]!==0||v[1]!==2});exportTypedArrayMethod$2$2("set",function v(k){aTypedArray$2$2(this);var ie=toOffset$4(arguments.length>1?arguments[1]:void 0,1),ae=toIndexedObject$g(k);if(WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$2)return call$2$c($set$2,this,ae,ie);var ce=this.length,fe=lengthOfArrayLike$g(ae),le=0;if(fe+ie>ce)throw RangeError$1$2("Wrong length");for(;le0;)v[fe]=v[--fe];fe!==ae++&&(v[fe]=ce)}return v},merge$2=function(v,k,ie,ae){for(var ce=k.length,fe=ie.length,le=0,ve=0;le0&&1/ie<0?1:-1:k>ie}};exportTypedArrayMethod$1$2("sort",function v(k){return k!==void 0&&aCallable$j(k),STABLE_SORT$2?un$Sort$2(this,k):internalSort$2(aTypedArray$1$2(this),getSortCompare$2(k))},!STABLE_SORT$2||ACCEPT_INCORRECT_ARGUMENTS$2);var NATIVE_BIND$f=functionBindNative$c,FunctionPrototype$e=Function.prototype,apply$1$7=FunctionPrototype$e.apply,call$1$c=FunctionPrototype$e.call,functionApply$7=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$f?call$1$c.bind(apply$1$7):function(){return call$1$c.apply(apply$1$7,arguments)}),uncurryThis$1$c=functionUncurryThis$c,arraySlice$1$7=uncurryThis$1$c([].slice),global$1$c=global$h$7,apply$8=functionApply$7,ArrayBufferViewCore$6=arrayBufferViewCore$2,fails$1$c=fails$k$3,arraySlice$a=arraySlice$1$7,Int8Array$1$2=global$1$c.Int8Array,aTypedArray$6=ArrayBufferViewCore$6.aTypedArray,exportTypedArrayMethod$6=ArrayBufferViewCore$6.exportTypedArrayMethod,$toLocaleString$2=[].toLocaleString,TO_LOCALE_STRING_BUG$2=!!Int8Array$1$2&&fails$1$c(function(){$toLocaleString$2.call(new Int8Array$1$2(1))}),FORCED$3=fails$1$c(function(){return[1,2].toLocaleString()!=new Int8Array$1$2([1,2]).toLocaleString()})||!fails$1$c(function(){Int8Array$1$2.prototype.toLocaleString.call([1,2])});exportTypedArrayMethod$6("toLocaleString",function v(){return apply$8($toLocaleString$2,TO_LOCALE_STRING_BUG$2?arraySlice$a(aTypedArray$6(this)):aTypedArray$6(this),arraySlice$a(arguments))},FORCED$3);var DESCRIPTORS$p=descriptors$c,uncurryThis$w=functionUncurryThis$c,call$q=functionCall$c,fails$y=fails$k$3,objectKeys$b=objectKeys$2$6,getOwnPropertySymbolsModule$b=objectGetOwnPropertySymbols$a,propertyIsEnumerableModule$b=objectPropertyIsEnumerable$a,toObject$i=toObject$6$2,IndexedObject$c=indexedObject$a,$assign$8=Object.assign,defineProperty4$1=Object.defineProperty,concat$c=uncurryThis$w([].concat),objectAssign$8=!$assign$8||fails$y(function(){if(DESCRIPTORS$p&&$assign$8({b:1},$assign$8(defineProperty4$1({},"a",{enumerable:!0,get:function(){defineProperty4$1(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},k={},ie=Symbol(),ae="abcdefghijklmnopqrst";return v[ie]=7,ae.split("").forEach(function(ce){k[ce]=ce}),$assign$8({},v)[ie]!=7||objectKeys$b($assign$8({},k)).join("")!=ae})?function v(k,ie){for(var ae=toObject$i(k),ce=arguments.length,fe=1,le=getOwnPropertySymbolsModule$b.f,ve=propertyIsEnumerableModule$b.f;ce>fe;)for(var pe=IndexedObject$c(arguments[fe++]),ye=le?concat$c(objectKeys$b(pe),le(pe)):objectKeys$b(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$p||call$q(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$8,$$h=_export$a,assign2$8=objectAssign$8;$$h({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$8},{assign:assign2$8});function __awaiter$e(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$d="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAAGExJREFUeAHtnQvwblVZxuV2jh3ugpwjV5FrkhWFXGyAIutAIOpUaBdNY5qpMR3LigHKAQd1stEuU0bYhWqmsiQ0bjIySmgIWKiJwAjC4agcLkIeOXo4B6Sep3P2zGa79v7W2nut/d1+78wz3/7WXutd7/qtd9/39/8/5zkYBCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQ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QhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEyBwP8B2gCjlCsIAoEAAAAASUVORK5CYII=",isInstalled$7=()=>!!window.nearWalletApi,setupMathWalletState=()=>({wallet:window.nearWalletApi}),MathWallet=({metadata:v,options:k,store:ie,provider:ae,logger:ce})=>__awaiter$e(void 0,void 0,void 0,function*(){const fe=setupMathWalletState(),le=()=>__awaiter$e(void 0,void 0,void 0,function*(){const pe=fe.wallet.signer.account;return pe?[{accountId:pe.accountId,publicKey:pe.publicKey}]:[]}),ve=pe=>{const{contract:ye}=ie.getState();if(!ye)throw new Error("Wallet not signed in");const me=getActiveAccount(ie.getState());if(!me)throw new Error("No active account");return pe.map(Ee=>({signerId:Ee.signerId||me.accountId,receiverId:Ee.receiverId||ye.contractId,actions:Ee.actions}))};return{signIn({contractId:pe}){return __awaiter$e(this,void 0,void 0,function*(){const ye=yield le();return ye.length?ye:(yield fe.wallet.login({contractId:pe}),le())})},signOut(){return __awaiter$e(this,void 0,void 0,function*(){yield fe.wallet.logout()})},getAccounts(){return __awaiter$e(this,void 0,void 0,function*(){return le()})},verifyOwner({message:pe}){return __awaiter$e(this,void 0,void 0,function*(){ce.log("MathWallet:verifyOwner",{message:pe});const ye=getActiveAccount(ie.getState());if(!ye)throw new Error("No active account");const me=ye.accountId,Ee=yield fe.wallet.signer.getPublicKey(me),cr=yield ae.block({finality:"final"}),Br={accountId:me,message:pe,blockId:cr.header.hash,publicKey:Buffer.from(Ee.data).toString("base64"),keyType:Ee.keyType};throw JSON.stringify(Br),new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction({signerId:pe,receiverId:ye,actions:me}){return __awaiter$e(this,void 0,void 0,function*(){ce.log("signAndSendTransaction",{signerId:pe,receiverId:ye,actions:me});const Ee=yield signTransactions(ve([{signerId:pe,receiverId:ye,actions:me}]),fe.wallet.signer,k.network);return ae.sendTransaction(Ee[0])})},signAndSendTransactions({transactions:pe}){return __awaiter$e(this,void 0,void 0,function*(){ce.log("signAndSendTransactions",{transactions:pe});const ye=yield signTransactions(ve(pe),fe.wallet.signer,k.network);ce.log("signAndSendTransactions:signedTransactions",ye);const me=[];for(let Ee=0;Ee()=>__awaiter$e(void 0,void 0,void 0,function*(){if((0,import_is_mobile$8.isMobile)())return null;const ae=yield isInstalled$7();return{id:"math-wallet",type:"injected",metadata:{name:"Math Wallet",description:"World's First Insured Crypto Wallet.",iconUrl:v,downloadUrl:"https://chrome.google.com/webstore/detail/math-wallet/afbcbjpbpfadlkmhmclhkeeodmamcflc",deprecated:k,available:ae},init:MathWallet}}),import_is_mobile$7=__toESM(require_is_mobile(),1),nearAPI$6=__toESM(require_browser_index2$1(),1),commonjsGlobal$c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$b$6=function(v){try{return!!v()}catch{return!0}},fails$a$8=fails$b$6,descriptors$b=!fails$a$8(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$9$9=fails$b$6,functionBindNative$b=!fails$9$9(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$1$b=functionBindNative$b,FunctionPrototype$1$b=Function.prototype,bind$g=FunctionPrototype$1$b.bind,call$6$8=FunctionPrototype$1$b.call,uncurryThis$a$9=NATIVE_BIND$1$b&&bind$g.bind(call$6$8,call$6$8),functionUncurryThis$b=NATIVE_BIND$1$b?function(v){return v&&uncurryThis$a$9(v)}:function(v){return v&&function(){return call$6$8.apply(v,arguments)}},$TypeError$6$7=TypeError,requireObjectCoercible$2$9=function(v){if(v==null)throw $TypeError$6$7("Can't call method on "+v);return v},requireObjectCoercible$1$b=requireObjectCoercible$2$9,$Object$4$6=Object,toObject$2$8=function(v){return $Object$4$6(requireObjectCoercible$1$b(v))},uncurryThis$9$9=functionUncurryThis$b,toObject$1$b=toObject$2$8,hasOwnProperty$b=uncurryThis$9$9({}.hasOwnProperty),hasOwnProperty_1$b=Object.hasOwn||function v(k,ie){return hasOwnProperty$b(toObject$1$b(k),ie)},DESCRIPTORS$8$6=descriptors$b,hasOwn$9$6=hasOwnProperty_1$b,FunctionPrototype$d=Function.prototype,getDescriptor$b=DESCRIPTORS$8$6&&Object.getOwnPropertyDescriptor,EXISTS$1$b=hasOwn$9$6(FunctionPrototype$d,"name"),PROPER$b=EXISTS$1$b&&function v(){}.name==="something",CONFIGURABLE$1$b=EXISTS$1$b&&(!DESCRIPTORS$8$6||DESCRIPTORS$8$6&&getDescriptor$b(FunctionPrototype$d,"name").configurable),functionName$b={EXISTS:EXISTS$1$b,PROPER:PROPER$b,CONFIGURABLE:CONFIGURABLE$1$b},isCallable$f$7=function(v){return typeof v=="function"},objectDefineProperty$b={},check$b=function(v){return v&&v.Math==Math&&v},global$b$7=check$b(typeof globalThis=="object"&&globalThis)||check$b(typeof window=="object"&&window)||check$b(typeof self=="object"&&self)||check$b(typeof commonjsGlobal$c=="object"&&commonjsGlobal$c)||function(){return this}()||Function("return this")(),isCallable$e$7=isCallable$f$7,isObject$5$b=function(v){return typeof v=="object"?v!==null:isCallable$e$7(v)},global$a$9=global$b$7,isObject$4$b=isObject$5$b,document$1$7=global$a$9.document,EXISTS$c=isObject$4$b(document$1$7)&&isObject$4$b(document$1$7.createElement),documentCreateElement$2$6=function(v){return EXISTS$c?document$1$7.createElement(v):{}},DESCRIPTORS$7$9=descriptors$b,fails$8$9=fails$b$6,createElement$c=documentCreateElement$2$6,ie8DomDefine$b=!DESCRIPTORS$7$9&&!fails$8$9(function(){return Object.defineProperty(createElement$c("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$6$9=descriptors$b,fails$7$b=fails$b$6,v8PrototypeDefineBug$b=DESCRIPTORS$6$9&&fails$7$b(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$3$b=isObject$5$b,$String$3$6=String,$TypeError$5$b=TypeError,anObject$7$7=function(v){if(isObject$3$b(v))return v;throw $TypeError$5$b($String$3$6(v)+" is not an object")},NATIVE_BIND$e=functionBindNative$b,call$5$9=Function.prototype.call,functionCall$b=NATIVE_BIND$e?call$5$9.bind(call$5$9):function(){return call$5$9.apply(call$5$9,arguments)},global$9$b=global$b$7,isCallable$d$7=isCallable$f$7,aFunction$b=function(v){return isCallable$d$7(v)?v:void 0},getBuiltIn$4$7=function(v,k){return arguments.length<2?aFunction$b(global$9$b[v]):global$9$b[v]&&global$9$b[v][k]},uncurryThis$8$9=functionUncurryThis$b,objectIsPrototypeOf$b=uncurryThis$8$9({}.isPrototypeOf),getBuiltIn$3$9=getBuiltIn$4$7,engineUserAgent$b=getBuiltIn$3$9("navigator","userAgent")||"",global$8$b=global$b$7,userAgent$e=engineUserAgent$b,process$c=global$8$b.process,Deno$7=global$8$b.Deno,versions$b=process$c&&process$c.versions||Deno$7&&Deno$7.version,v8$b=versions$b&&versions$b.v8,match$b,version$b;v8$b&&(match$b=v8$b.split("."),version$b=match$b[0]>0&&match$b[0]<4?1:+(match$b[0]+match$b[1]));!version$b&&userAgent$e&&(match$b=userAgent$e.match(/Edge\/(\d+)/),(!match$b||match$b[1]>=74)&&(match$b=userAgent$e.match(/Chrome\/(\d+)/),match$b&&(version$b=+match$b[1])));var engineV8Version$b=version$b,V8_VERSION$c=engineV8Version$b,fails$6$b=fails$b$6,nativeSymbol$b=!!Object.getOwnPropertySymbols&&!fails$6$b(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$c&&V8_VERSION$c<41}),NATIVE_SYMBOL$1$b=nativeSymbol$b,useSymbolAsUid$b=NATIVE_SYMBOL$1$b&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$2$b=getBuiltIn$4$7,isCallable$c$7=isCallable$f$7,isPrototypeOf$1$a=objectIsPrototypeOf$b,USE_SYMBOL_AS_UID$1$b=useSymbolAsUid$b,$Object$3$8=Object,isSymbol$2$b=USE_SYMBOL_AS_UID$1$b?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$2$b("Symbol");return isCallable$c$7(k)&&isPrototypeOf$1$a(k.prototype,$Object$3$8(v))},$String$2$a=String,tryToString$1$b=function(v){try{return $String$2$a(v)}catch{return"Object"}},isCallable$b$8=isCallable$f$7,tryToString$f=tryToString$1$b,$TypeError$4$b=TypeError,aCallable$1$b=function(v){if(isCallable$b$8(v))return v;throw $TypeError$4$b(tryToString$f(v)+" is not a function")},aCallable$i=aCallable$1$b,getMethod$1$b=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$i(ie)},call$4$b=functionCall$b,isCallable$a$b=isCallable$f$7,isObject$2$b=isObject$5$b,$TypeError$3$b=TypeError,ordinaryToPrimitive$1$b=function(v,k){var ie,ae;if(k==="string"&&isCallable$a$b(ie=v.toString)&&!isObject$2$b(ae=call$4$b(ie,v))||isCallable$a$b(ie=v.valueOf)&&!isObject$2$b(ae=call$4$b(ie,v))||k!=="string"&&isCallable$a$b(ie=v.toString)&&!isObject$2$b(ae=call$4$b(ie,v)))return ae;throw $TypeError$3$b("Can't convert object to primitive value")},shared$3$b={exports:{}},global$7$b=global$b$7,defineProperty$4$6=Object.defineProperty,defineGlobalProperty$3$9=function(v,k){try{defineProperty$4$6(global$7$b,v,{value:k,configurable:!0,writable:!0})}catch{global$7$b[v]=k}return k},global$6$b=global$b$7,defineGlobalProperty$2$b=defineGlobalProperty$3$9,SHARED$b="__core-js_shared__",store$3$b=global$6$b[SHARED$b]||defineGlobalProperty$2$b(SHARED$b,{}),sharedStore$b=store$3$b,store$2$b=sharedStore$b;(shared$3$b.exports=function(v,k){return store$2$b[v]||(store$2$b[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var uncurryThis$7$9=functionUncurryThis$b,id$d=0,postfix$b=Math.random(),toString$2$9=uncurryThis$7$9(1 .toString),uid$2$b=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$2$9(++id$d+postfix$b,36)},global$5$b=global$b$7,shared$2$b=shared$3$b.exports,hasOwn$8$7=hasOwnProperty_1$b,uid$1$b=uid$2$b,NATIVE_SYMBOL$c=nativeSymbol$b,USE_SYMBOL_AS_UID$c=useSymbolAsUid$b,WellKnownSymbolsStore$b=shared$2$b("wks"),Symbol$1$b=global$5$b.Symbol,symbolFor$b=Symbol$1$b&&Symbol$1$b.for,createWellKnownSymbol$b=USE_SYMBOL_AS_UID$c?Symbol$1$b:Symbol$1$b&&Symbol$1$b.withoutSetter||uid$1$b,wellKnownSymbol$8$7=function(v){if(!hasOwn$8$7(WellKnownSymbolsStore$b,v)||!(NATIVE_SYMBOL$c||typeof WellKnownSymbolsStore$b[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$c&&hasOwn$8$7(Symbol$1$b,v)?WellKnownSymbolsStore$b[v]=Symbol$1$b[v]:USE_SYMBOL_AS_UID$c&&symbolFor$b?WellKnownSymbolsStore$b[v]=symbolFor$b(k):WellKnownSymbolsStore$b[v]=createWellKnownSymbol$b(k)}return WellKnownSymbolsStore$b[v]},call$3$b=functionCall$b,isObject$1$b=isObject$5$b,isSymbol$1$b=isSymbol$2$b,getMethod$e=getMethod$1$b,ordinaryToPrimitive$c=ordinaryToPrimitive$1$b,wellKnownSymbol$7$7=wellKnownSymbol$8$7,$TypeError$2$b=TypeError,TO_PRIMITIVE$b=wellKnownSymbol$7$7("toPrimitive"),toPrimitive$1$b=function(v,k){if(!isObject$1$b(v)||isSymbol$1$b(v))return v;var ie=getMethod$e(v,TO_PRIMITIVE$b),ae;if(ie){if(k===void 0&&(k="default"),ae=call$3$b(ie,v,k),!isObject$1$b(ae)||isSymbol$1$b(ae))return ae;throw $TypeError$2$b("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$c(v,k)},toPrimitive$d=toPrimitive$1$b,isSymbol$e=isSymbol$2$b,toPropertyKey$2$9=function(v){var k=toPrimitive$d(v,"string");return isSymbol$e(k)?k:k+""},DESCRIPTORS$5$b=descriptors$b,IE8_DOM_DEFINE$1$9=ie8DomDefine$b,V8_PROTOTYPE_DEFINE_BUG$1$6=v8PrototypeDefineBug$b,anObject$6$7=anObject$7$7,toPropertyKey$1$b=toPropertyKey$2$9,$TypeError$1$b=TypeError,$defineProperty$b=Object.defineProperty,$getOwnPropertyDescriptor$1$9=Object.getOwnPropertyDescriptor,ENUMERABLE$b="enumerable",CONFIGURABLE$c="configurable",WRITABLE$b="writable";objectDefineProperty$b.f=DESCRIPTORS$5$b?V8_PROTOTYPE_DEFINE_BUG$1$6?function v(k,ie,ae){if(anObject$6$7(k),ie=toPropertyKey$1$b(ie),anObject$6$7(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$b in ae&&!ae[WRITABLE$b]){var ce=$getOwnPropertyDescriptor$1$9(k,ie);ce&&ce[WRITABLE$b]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$c in ae?ae[CONFIGURABLE$c]:ce[CONFIGURABLE$c],enumerable:ENUMERABLE$b in ae?ae[ENUMERABLE$b]:ce[ENUMERABLE$b],writable:!1})}return $defineProperty$b(k,ie,ae)}:$defineProperty$b:function v(k,ie,ae){if(anObject$6$7(k),ie=toPropertyKey$1$b(ie),anObject$6$7(ae),IE8_DOM_DEFINE$1$9)try{return $defineProperty$b(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$1$b("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var makeBuiltIn$2$b={exports:{}},uncurryThis$6$b=functionUncurryThis$b,isCallable$9$b=isCallable$f$7,store$1$b=sharedStore$b,functionToString$b=uncurryThis$6$b(Function.toString);isCallable$9$b(store$1$b.inspectSource)||(store$1$b.inspectSource=function(v){return functionToString$b(v)});var inspectSource$2$b=store$1$b.inspectSource,global$4$b=global$b$7,isCallable$8$b=isCallable$f$7,inspectSource$1$b=inspectSource$2$b,WeakMap$1$b=global$4$b.WeakMap,nativeWeakMap$b=isCallable$8$b(WeakMap$1$b)&&/native code/.test(inspectSource$1$b(WeakMap$1$b)),createPropertyDescriptor$3$6=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$4$b=descriptors$b,definePropertyModule$3$7=objectDefineProperty$b,createPropertyDescriptor$2$9=createPropertyDescriptor$3$6,createNonEnumerableProperty$4$6=DESCRIPTORS$4$b?function(v,k,ie){return definePropertyModule$3$7.f(v,k,createPropertyDescriptor$2$9(1,ie))}:function(v,k,ie){return v[k]=ie,v},shared$1$b=shared$3$b.exports,uid$e=uid$2$b,keys$9=shared$1$b("keys"),sharedKey$3$6=function(v){return keys$9[v]||(keys$9[v]=uid$e(v))},hiddenKeys$4$6={},NATIVE_WEAK_MAP$b=nativeWeakMap$b,global$3$b=global$b$7,uncurryThis$5$b=functionUncurryThis$b,isObject$m=isObject$5$b,createNonEnumerableProperty$3$6=createNonEnumerableProperty$4$6,hasOwn$7$8=hasOwnProperty_1$b,shared$e=sharedStore$b,sharedKey$2$6=sharedKey$3$6,hiddenKeys$3$9=hiddenKeys$4$6,OBJECT_ALREADY_INITIALIZED$b="Object already initialized",TypeError$1$b=global$3$b.TypeError,WeakMap$d=global$3$b.WeakMap,set$c,get$c,has$b,enforce$b=function(v){return has$b(v)?get$c(v):set$c(v,{})},getterFor$b=function(v){return function(k){var ie;if(!isObject$m(k)||(ie=get$c(k)).type!==v)throw TypeError$1$b("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$b||shared$e.state?(store$e=shared$e.state||(shared$e.state=new WeakMap$d),wmget$b=uncurryThis$5$b(store$e.get),wmhas$b=uncurryThis$5$b(store$e.has),wmset$b=uncurryThis$5$b(store$e.set),set$c=function(v,k){if(wmhas$b(store$e,v))throw new TypeError$1$b(OBJECT_ALREADY_INITIALIZED$b);return k.facade=v,wmset$b(store$e,v,k),k},get$c=function(v){return wmget$b(store$e,v)||{}},has$b=function(v){return wmhas$b(store$e,v)}):(STATE$b=sharedKey$2$6("state"),hiddenKeys$3$9[STATE$b]=!0,set$c=function(v,k){if(hasOwn$7$8(v,STATE$b))throw new TypeError$1$b(OBJECT_ALREADY_INITIALIZED$b);return k.facade=v,createNonEnumerableProperty$3$6(v,STATE$b,k),k},get$c=function(v){return hasOwn$7$8(v,STATE$b)?v[STATE$b]:{}},has$b=function(v){return hasOwn$7$8(v,STATE$b)});var store$e,wmget$b,wmhas$b,wmset$b,STATE$b,internalState$b={set:set$c,get:get$c,has:has$b,enforce:enforce$b,getterFor:getterFor$b},fails$5$b=fails$b$6,isCallable$7$b=isCallable$f$7,hasOwn$6$9=hasOwnProperty_1$b,DESCRIPTORS$3$b=descriptors$b,CONFIGURABLE_FUNCTION_NAME$1$6=functionName$b.CONFIGURABLE,inspectSource$f=inspectSource$2$b,InternalStateModule$1$7=internalState$b,enforceInternalState$d=InternalStateModule$1$7.enforce,getInternalState$1$6=InternalStateModule$1$7.get,defineProperty$3$6=Object.defineProperty,CONFIGURABLE_LENGTH$b=DESCRIPTORS$3$b&&!fails$5$b(function(){return defineProperty$3$6(function(){},"length",{value:8}).length!==8}),TEMPLATE$b=String(String).split("String"),makeBuiltIn$1$b=makeBuiltIn$2$b.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$6$9(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$6&&v.name!==k)&&(DESCRIPTORS$3$b?defineProperty$3$6(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$b&&ie&&hasOwn$6$9(ie,"arity")&&v.length!==ie.arity&&defineProperty$3$6(v,"length",{value:ie.arity});try{ie&&hasOwn$6$9(ie,"constructor")&&ie.constructor?DESCRIPTORS$3$b&&defineProperty$3$6(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$d(v);return hasOwn$6$9(ae,"source")||(ae.source=TEMPLATE$b.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$b(function v(){return isCallable$7$b(this)&&getInternalState$1$6(this).source||inspectSource$f(this)},"toString");var isCallable$6$b=isCallable$f$7,definePropertyModule$2$9=objectDefineProperty$b,makeBuiltIn$d=makeBuiltIn$2$b.exports,defineGlobalProperty$1$b=defineGlobalProperty$3$9,defineBuiltIn$4$6=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$6$b(ie)&&makeBuiltIn$d(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$b(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$2$9.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},wellKnownSymbol$6$7=wellKnownSymbol$8$7,TO_STRING_TAG$3$6=wellKnownSymbol$6$7("toStringTag"),test$a={};test$a[TO_STRING_TAG$3$6]="z";var toStringTagSupport$a=String(test$a)==="[object z]",uncurryThis$4$b=functionUncurryThis$b,toString$1$b=uncurryThis$4$b({}.toString),stringSlice$b=uncurryThis$4$b("".slice),classofRaw$1$a=function(v){return stringSlice$b(toString$1$b(v),8,-1)},TO_STRING_TAG_SUPPORT$a=toStringTagSupport$a,isCallable$5$b=isCallable$f$7,classofRaw$c=classofRaw$1$a,wellKnownSymbol$5$7=wellKnownSymbol$8$7,TO_STRING_TAG$2$7=wellKnownSymbol$5$7("toStringTag"),$Object$2$b=Object,CORRECT_ARGUMENTS$a=classofRaw$c(function(){return arguments}())=="Arguments",tryGet$a=function(v,k){try{return v[k]}catch{}},classof$2$8=TO_STRING_TAG_SUPPORT$a?classofRaw$c:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$a(k=$Object$2$b(v),TO_STRING_TAG$2$7))=="string"?ie:CORRECT_ARGUMENTS$a?classofRaw$c(k):(ae=classofRaw$c(k))=="Object"&&isCallable$5$b(k.callee)?"Arguments":ae},classof$1$a=classof$2$8,$String$1$b=String,toString2$9=function(v){if(classof$1$a(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$1$b(v)},anObject$5$7=anObject$7$7,regexpFlags$9=function(){var v=anObject$5$7(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$2$b=functionCall$b,hasOwn$5$9=hasOwnProperty_1$b,isPrototypeOf$f=objectIsPrototypeOf$b,regExpFlags$9=regexpFlags$9,RegExpPrototype$1$9=RegExp.prototype,regexpGetFlags$9=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$9)&&!hasOwn$5$9(v,"flags")&&isPrototypeOf$f(RegExpPrototype$1$9,v)?call$2$b(regExpFlags$9,v):k},PROPER_FUNCTION_NAME$1$6=functionName$b.PROPER,defineBuiltIn$3$7=defineBuiltIn$4$6,anObject$4$8=anObject$7$7,$toString$9=toString2$9,fails$4$b=fails$b$6,getRegExpFlags$9=regexpGetFlags$9,TO_STRING$9="toString",RegExpPrototype$a=RegExp.prototype,n$ToString$9=RegExpPrototype$a[TO_STRING$9],NOT_GENERIC$9=fails$4$b(function(){return n$ToString$9.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$9=PROPER_FUNCTION_NAME$1$6&&n$ToString$9.name!=TO_STRING$9;(NOT_GENERIC$9||INCORRECT_NAME$9)&&defineBuiltIn$3$7(RegExp.prototype,TO_STRING$9,function(){var k=anObject$4$8(this),ie=$toString$9(k.source),ae=$toString$9(getRegExpFlags$9(k));return"/"+ie+"/"+ae},{unsafe:!0});var uncurryThis$3$b=functionUncurryThis$b,fails$3$b=fails$b$6,classof$j=classofRaw$1$a,$Object$1$b=Object,split$9=uncurryThis$3$b("".split),indexedObject$9=fails$3$b(function(){return!$Object$1$b("z").propertyIsEnumerable(0)})?function(v){return classof$j(v)=="String"?split$9(v,""):$Object$1$b(v)}:$Object$1$b,IndexedObject$b=indexedObject$9,requireObjectCoercible$d=requireObjectCoercible$2$9,toIndexedObject$5$6=function(v){return IndexedObject$b(requireObjectCoercible$d(v))},objectDefineProperties$6={},ceil$9=Math.ceil,floor$c=Math.floor,mathTrunc$9=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$c:ceil$9)(ie)},trunc2$9=mathTrunc$9,toIntegerOrInfinity$2$9=function(v){var k=+v;return k!==k||k===0?0:trunc2$9(k)},toIntegerOrInfinity$1$9=toIntegerOrInfinity$2$9,max$a=Math.max,min$1$9=Math.min,toAbsoluteIndex$1$9=function(v,k){var ie=toIntegerOrInfinity$1$9(v);return ie<0?max$a(ie+k,0):min$1$9(ie,k)},toIntegerOrInfinity$e=toIntegerOrInfinity$2$9,min$a=Math.min,toLength$1$9=function(v){return v>0?min$a(toIntegerOrInfinity$e(v),9007199254740991):0},toLength$e=toLength$1$9,lengthOfArrayLike$1$9=function(v){return toLength$e(v.length)},toIndexedObject$4$6=toIndexedObject$5$6,toAbsoluteIndex$d=toAbsoluteIndex$1$9,lengthOfArrayLike$f=lengthOfArrayLike$1$9,createMethod$a=function(v){return function(k,ie,ae){var ce=toIndexedObject$4$6(k),fe=lengthOfArrayLike$f(ce),le=toAbsoluteIndex$d(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$9={includes:createMethod$a(!0),indexOf:createMethod$a(!1)},uncurryThis$2$b=functionUncurryThis$b,hasOwn$4$b=hasOwnProperty_1$b,toIndexedObject$3$9=toIndexedObject$5$6,indexOf$9=arrayIncludes$9.indexOf,hiddenKeys$2$9=hiddenKeys$4$6,push$a=uncurryThis$2$b([].push),objectKeysInternal$9=function(v,k){var ie=toIndexedObject$3$9(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$4$b(hiddenKeys$2$9,fe)&&hasOwn$4$b(ie,fe)&&push$a(ce,fe);for(;k.length>ae;)hasOwn$4$b(ie,fe=k[ae++])&&(~indexOf$9(ce,fe)||push$a(ce,fe));return ce},enumBugKeys$3$6=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$8=objectKeysInternal$9,enumBugKeys$2$8=enumBugKeys$3$6,objectKeys$1$8=Object.keys||function v(k){return internalObjectKeys$1$8(k,enumBugKeys$2$8)},DESCRIPTORS$2$b=descriptors$b,V8_PROTOTYPE_DEFINE_BUG$c=v8PrototypeDefineBug$b,definePropertyModule$1$b=objectDefineProperty$b,anObject$3$a=anObject$7$7,toIndexedObject$2$9=toIndexedObject$5$6,objectKeys$a=objectKeys$1$8;objectDefineProperties$6.f=DESCRIPTORS$2$b&&!V8_PROTOTYPE_DEFINE_BUG$c?Object.defineProperties:function v(k,ie){anObject$3$a(k);for(var ae=toIndexedObject$2$9(ie),ce=objectKeys$a(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$1$b.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$1$b=getBuiltIn$4$7,html$1$7=getBuiltIn$1$b("document","documentElement"),anObject$2$b=anObject$7$7,definePropertiesModule$6=objectDefineProperties$6,enumBugKeys$1$9=enumBugKeys$3$6,hiddenKeys$1$9=hiddenKeys$4$6,html$8=html$1$7,documentCreateElement$1$6=documentCreateElement$2$6,sharedKey$1$b=sharedKey$3$6,GT$6=">",LT$6="<",PROTOTYPE$7="prototype",SCRIPT$6="script",IE_PROTO$1$6=sharedKey$1$b("IE_PROTO"),EmptyConstructor$6=function(){},scriptTag$6=function(v){return LT$6+SCRIPT$6+GT$6+v+LT$6+"/"+SCRIPT$6+GT$6},NullProtoObjectViaActiveX$6=function(v){v.write(scriptTag$6("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$6=function(){var v=documentCreateElement$1$6("iframe"),k="java"+SCRIPT$6+":",ie;return v.style.display="none",html$8.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$6("document.F=Object")),ie.close(),ie.F},activeXDocument$6,NullProtoObject$6=function(){try{activeXDocument$6=new ActiveXObject("htmlfile")}catch{}NullProtoObject$6=typeof document<"u"?document.domain&&activeXDocument$6?NullProtoObjectViaActiveX$6(activeXDocument$6):NullProtoObjectViaIFrame$6():NullProtoObjectViaActiveX$6(activeXDocument$6);for(var v=enumBugKeys$1$9.length;v--;)delete NullProtoObject$6[PROTOTYPE$7][enumBugKeys$1$9[v]];return NullProtoObject$6()};hiddenKeys$1$9[IE_PROTO$1$6]=!0;var objectCreate$6=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$6[PROTOTYPE$7]=anObject$2$b(k),ae=new EmptyConstructor$6,EmptyConstructor$6[PROTOTYPE$7]=null,ae[IE_PROTO$1$6]=k):ae=NullProtoObject$6(),ie===void 0?ae:definePropertiesModule$6.f(ae,ie)},wellKnownSymbol$4$7=wellKnownSymbol$8$7,create$1$6=objectCreate$6,defineProperty$2$9=objectDefineProperty$b.f,UNSCOPABLES$6=wellKnownSymbol$4$7("unscopables"),ArrayPrototype$8=Array.prototype;ArrayPrototype$8[UNSCOPABLES$6]==null&&defineProperty$2$9(ArrayPrototype$8,UNSCOPABLES$6,{configurable:!0,value:create$1$6(null)});var addToUnscopables$1$6=function(v){ArrayPrototype$8[UNSCOPABLES$6][v]=!0},iterators$7={},objectGetOwnPropertyDescriptor$9={},objectPropertyIsEnumerable$9={},$propertyIsEnumerable$9={}.propertyIsEnumerable,getOwnPropertyDescriptor$1$9=Object.getOwnPropertyDescriptor,NASHORN_BUG$9=getOwnPropertyDescriptor$1$9&&!$propertyIsEnumerable$9.call({1:2},1);objectPropertyIsEnumerable$9.f=NASHORN_BUG$9?function v(k){var ie=getOwnPropertyDescriptor$1$9(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$9;var DESCRIPTORS$1$b=descriptors$b,call$1$b=functionCall$b,propertyIsEnumerableModule$a=objectPropertyIsEnumerable$9,createPropertyDescriptor$1$b=createPropertyDescriptor$3$6,toIndexedObject$1$9=toIndexedObject$5$6,toPropertyKey$f=toPropertyKey$2$9,hasOwn$3$b=hasOwnProperty_1$b,IE8_DOM_DEFINE$c=ie8DomDefine$b,$getOwnPropertyDescriptor$c=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$9.f=DESCRIPTORS$1$b?$getOwnPropertyDescriptor$c:function v(k,ie){if(k=toIndexedObject$1$9(k),ie=toPropertyKey$f(ie),IE8_DOM_DEFINE$c)try{return $getOwnPropertyDescriptor$c(k,ie)}catch{}if(hasOwn$3$b(k,ie))return createPropertyDescriptor$1$b(!call$1$b(propertyIsEnumerableModule$a.f,k,ie),k[ie])};var objectGetOwnPropertyNames$9={},internalObjectKeys$a=objectKeysInternal$9,enumBugKeys$c=enumBugKeys$3$6,hiddenKeys$d=enumBugKeys$c.concat("length","prototype");objectGetOwnPropertyNames$9.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$a(k,hiddenKeys$d)};var objectGetOwnPropertySymbols$9={};objectGetOwnPropertySymbols$9.f=Object.getOwnPropertySymbols;var getBuiltIn$j=getBuiltIn$4$7,uncurryThis$1$b=functionUncurryThis$b,getOwnPropertyNamesModule$9=objectGetOwnPropertyNames$9,getOwnPropertySymbolsModule$a=objectGetOwnPropertySymbols$9,anObject$1$b=anObject$7$7,concat$b=uncurryThis$1$b([].concat),ownKeys$1$9=getBuiltIn$j("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$9.f(anObject$1$b(k)),ae=getOwnPropertySymbolsModule$a.f;return ae?concat$b(ie,ae(k)):ie},hasOwn$2$b=hasOwnProperty_1$b,ownKeys2$9=ownKeys$1$9,getOwnPropertyDescriptorModule$a=objectGetOwnPropertyDescriptor$9,definePropertyModule$h=objectDefineProperty$b,copyConstructorProperties$1$9=function(v,k,ie){for(var ae=ownKeys2$9(k),ce=definePropertyModule$h.f,fe=getOwnPropertyDescriptorModule$a.f,le=0;le=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$6=Iterators$b.Arguments=Iterators$b.Array;addToUnscopables$7("keys");addToUnscopables$7("values");addToUnscopables$7("entries");if(DESCRIPTORS$o&&values$6.name!=="values")try{defineProperty3$a(values$6,"name",{value:"values"})}catch(v){}var domIterables$5={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$c=documentCreateElement$2$6,classList$5=documentCreateElement$c("span").classList,DOMTokenListPrototype$1$5=classList$5&&classList$5.constructor&&classList$5.constructor.prototype,domTokenListPrototype$5=DOMTokenListPrototype$1$5===Object.prototype?void 0:DOMTokenListPrototype$1$5,global$1$b=global$b$7,DOMIterables$5=domIterables$5,DOMTokenListPrototype$6=domTokenListPrototype$5,ArrayIteratorMethods$5=es_array_iterator$5,createNonEnumerableProperty$h=createNonEnumerableProperty$4$6,wellKnownSymbol$p=wellKnownSymbol$8$7,ITERATOR$b=wellKnownSymbol$p("iterator"),TO_STRING_TAG$d=wellKnownSymbol$p("toStringTag"),ArrayValues$5=ArrayIteratorMethods$5.values,handlePrototype$5=function(v,k){if(v){if(v[ITERATOR$b]!==ArrayValues$5)try{createNonEnumerableProperty$h(v,ITERATOR$b,ArrayValues$5)}catch{v[ITERATOR$b]=ArrayValues$5}if(v[TO_STRING_TAG$d]||createNonEnumerableProperty$h(v,TO_STRING_TAG$d,k),DOMIterables$5[k]){for(var ie in ArrayIteratorMethods$5)if(v[ie]!==ArrayIteratorMethods$5[ie])try{createNonEnumerableProperty$h(v,ie,ArrayIteratorMethods$5[ie])}catch{v[ie]=ArrayIteratorMethods$5[ie]}}}};for(COLLECTION_NAME$5 in DOMIterables$5)handlePrototype$5(global$1$b[COLLECTION_NAME$5]&&global$1$b[COLLECTION_NAME$5].prototype,COLLECTION_NAME$5);var COLLECTION_NAME$5;handlePrototype$5(DOMTokenListPrototype$6,"DOMTokenList");function __awaiter$d(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABGdBTUEAALGPC/xhBQAACklpQ0NQc1JHQiBJRUM2MTk2Ni0yLjEAAEiJnVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnE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oMU1ti//LGyavvRH8htva9EaMfQVdSAlen96ppDfrN1o885yP0mKBldypXwd639+ddhRmp4fFR+gt6PfZWGZUuN06QHTxwz5eWhX4lvJyBQX5gvr60Pv6CQGNTYq8XIK2p3lzjcXdP/KSmqoXopL48TcBM9Eue7Zgt4vNUfSetDtsLjci/K5kIwoFjy718funzROLRULAZQskR2u6HDF63LmU2rizr0qx4DPdeYuVghUrTRYt8TJkiGBoTmxbw9pENXqX9w/tLDQSh5CYygVeJElTRCl1d3/okKJsjOCqz7uYf77E7dba/s8f91Ffr/PxC6EjctNS4ZYbXVzetVHFm29bPLfC5MOdFoUFgoz0pL78dWgr33G7C3ZKAPwsA25wsoJwCKF/6o4pmltgwjjJeedKLphncOiwxaYPFA2NXSlmMvUuZuPKJGvfMfn7WxY7dlp4PITNB5BAXgMWOFW40wIA2mCUtFXEE9lDGhSNTXqL1ymTtbexzwQUuNxw5IhiyzYdvJqRrnWJUPkAEszdxGjhi5RECADosesZ9E7lSUMIPZdva4eOdnUiaFApvbKYliZwG0lV8vwcB76CztngKInai/UdYDLwBHBjguoMwr9PX2aG9tYNeU6C2xSClcCtJMgDK5GO9u3A14DPAocTWO9goQX9cXyeBLrfJSPS4hXgNOAPSah7oLIS3UMuS3TFyQq1aQAWAtPREUgfVzYB89BffVIW1ZIda7UZbda8FtiV3KYklIPAN7HZqhcLyRYAP8uBicDVwIYkt8VJPkJPi8cBS5PcFmDgCICf59Ari9eS5C/DZjajHWonoT2pkhjNEEiipoHRsrzrZz5wCTrIoSCpLYqeRuBP6Lm84/P5WEmUIShe0tHrCtegzaIDVXABVqOF90WS7CMRCQP5Qfakle5eoRi4GPgEMAs4PYntAq28bkSnX38NHZE7aBgsPUBfTEGbms9BTysnAx6H6jLRitz76Be+ruv3Qctg6QH6YlvXz2+6/i5AzygmAROAUqAQyAKygRQgDeidBM6H9q/rQDteNKEtclVAOdoDZwd6CnfS8P9uV4QPHOBjVAAAAABJRU5ErkJggg==",setupNightlyState=(v,k)=>__awaiter$d(void 0,void 0,void 0,function*(){const{selectedWalletId:ie}=v.getState(),ae=window.nightly.near;return ie==="nightly"&&(yield ae.connect(ce=>{ce?k.emit("accountsChanged",{accounts:[{accountId:ce.accountId,publicKey:ae.account.publicKey.toString()}]}):k.emit("signedOut",null)},!0).catch(()=>null)),{wallet:ae}}),isInstalled$6=()=>waitFor(()=>{var v;return!!(!((v=window.nightly)===null||v===void 0)&&v.near)}).catch(()=>!1),Nightly=({metadata:v,options:k,store:ie,logger:ae,provider:ce,emitter:fe})=>__awaiter$d(void 0,void 0,void 0,function*(){const le=yield setupNightlyState(ie,fe),ve=()=>{const{accountId:me,publicKey:Ee}=le.wallet.account;return me?[{accountId:me,publicKey:Ee.toString()}]:[]},pe=me=>{const Ee=ve(),{contract:cr}=ie.getState();if(!Ee.length||!cr)throw new Error("Wallet not signed in");return me.map(Br=>({signerId:Br.signerId||Ee[0].accountId,receiverId:Br.receiverId||cr.contractId,actions:Br.actions}))},ye={createKey:()=>{throw new Error("Not implemented")},getPublicKey:me=>__awaiter$d(void 0,void 0,void 0,function*(){const cr=ve().find(Br=>Br.accountId===me);if(!cr)throw new Error("Failed to find public key for account");return nearAPI$6.utils.PublicKey.from(cr.publicKey)}),signMessage:(me,Ee)=>__awaiter$d(void 0,void 0,void 0,function*(){if(!ve().find($r=>$r.accountId===Ee))throw new Error("Failed to find account for signing");try{const $r=nearAPI$6.transactions.Transaction.decode(Buffer.from(me));return{signature:(yield le.wallet.signTransaction($r)).signature.data,publicKey:$r.publicKey}}catch($r){throw ae.log("Failed to sign message"),ae.error($r),Error("Invalid message. Only transactions can be signed")}})};return{signIn(){return __awaiter$d(this,void 0,void 0,function*(){const me=ve();return me.length?me:(yield le.wallet.connect(Ee=>{Ee?fe.emit("accountsChanged",{accounts:[{accountId:Ee.accountId,publicKey:le.wallet.account.publicKey.toString()}]}):fe.emit("signedOut",null)}),ve())})},signOut(){return __awaiter$d(this,void 0,void 0,function*(){yield le.wallet.disconnect()})},getAccounts(){return __awaiter$d(this,void 0,void 0,function*(){return ve()})},verifyOwner({message:me}){return __awaiter$d(this,void 0,void 0,function*(){throw ae.log("Nightly:verifyOwner",{message:me}),new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction({signerId:me,receiverId:Ee,actions:cr}){return __awaiter$d(this,void 0,void 0,function*(){ae.log("signAndSendTransaction",{signerId:me,receiverId:Ee,actions:cr});const{contract:Br}=ie.getState();if(!ve().length||!Br)throw new Error("Wallet not signed in");const[Pr]=yield signTransactions(pe([{signerId:me,receiverId:Ee,actions:cr}]),ye,k.network);return ce.sendTransaction(Pr)})},signAndSendTransactions({transactions:me}){return __awaiter$d(this,void 0,void 0,function*(){ae.log("signAndSendTransactions",{transactions:me});const Ee=yield signTransactions(pe(me),ye,k.network),cr=[];for(let Br=0;Br__awaiter$d(this,void 0,void 0,function*(){if((0,import_is_mobile$7.isMobile)())return null;const ae=yield isInstalled$6();return{id:"nightly",type:"injected",metadata:{name:"Nightly",description:"Multichain crypto wallet.",iconUrl:v,downloadUrl:"https://wallet.nightly.app/download",deprecated:k,available:ae},init:Nightly}})}var require_strict_uri_encode=__commonJS$1({"node_modules/strict-uri-encode/index.js"(v,k){k.exports=ie=>encodeURIComponent(ie).replace(/[!'()*]/g,ae=>`%${ae.charCodeAt(0).toString(16).toUpperCase()}`)}}),require_split_on_first=__commonJS$1({"node_modules/split-on-first/index.js"(v,k){k.exports=(ie,ae)=>{if(!(typeof ie=="string"&&typeof ae=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(ae==="")return[ie];const ce=ie.indexOf(ae);return ce===-1?[ie]:[ie.slice(0,ce),ie.slice(ce+ae.length)]}}}),require_filter_obj=__commonJS$1({"node_modules/filter-obj/index.js"(v,k){k.exports=function(ie,ae){for(var ce={},fe=Object.keys(ie),le=Array.isArray(ae),ve=0;veQt!=null&&Qt.length>0;v.notNullEmpty=k;var ie=Qt=>!(0,v.notNullEmpty)(Qt);v.nullEmpty=ie;var ae=(...Qt)=>{for(const Kr of Qt)if((0,v.notNullEmpty)(Kr))return Kr};v.firstNotNullEmpty=ae;var ce=Qt=>{for(const Kr of Qt)if((0,v.nullEmpty)(Kr))return!0;return!1},fe=(Qt,Kr,be=null)=>(0,v.notNullEmpty)(Qt)?Qt+Kr:be!=null?be:Kr;v.safeAppend=fe;var le=class extends Array{pushIfNotNullEmpty(Qt){(0,v.notNullEmpty)(Qt)&&this.push(Qt)}};v.BetterStringArray=le;function ve(Qt,Kr,be=!1){return kr=>pe(kr,Qt,Kr,be)}v.createPadder=ve;function pe(Qt,Kr,be,kr=!1){const xr=be-`${Qt}`.length;if(xr>0){const Wr=new Array(xr).fill(Kr);return kr?`${Qt}${Wr.join("")}`:`${Wr.join("")}${Qt}`}return`${Qt}`}v.pad=pe;var ye=new RegExp("\\s+","g"),me=new RegExp("--+","g"),Ee=new RegExp("^-+","g"),cr=new RegExp("-+$","g"),Br=new RegExp("-","g"),$r=new RegExp("[^\\w\\-]+","g"),Pr=new RegExp("_","g");function Or(Qt){return Qt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var ur=(Qt,{slugDivider:Kr="-",letterCase:be="LOWER",normalize:kr=!0,excludeCharacters:xr=[]}={})=>{if(!Qt||Qt.length===0)return"";let Wr=Qt.toString();return kr&&(Wr=Wr.normalize("NFD")),be==="LOWER"?Wr=Wr.toLowerCase():be==="UPPER"&&(Wr=Wr.toUpperCase()),Wr.replace(ye,"-").replace(xr.length>0?new RegExp(`[^\\w\\-${xr.map(Jt=>Or(Jt)).join("")}]+`,"g"):$r,"").replace(xr.includes("_")?ye:Pr,"-").replace(me,"-").replace(Ee,"").replace(cr,"").replace(Br,Kr)};v.convertToSlug=ur;var jr=Qt=>(0,v.convertToSlug)(Qt,{normalize:!0,slugDivider:"_",letterCase:"UPPER"});v.stringToConstantStyledString=jr;var Mr=Qt=>{let Kr="";for(const be of Qt)Kr=`${be}${Kr}`;return Kr};function Lr(Qt){return Qt=Qt||"",Qt!==decodeURIComponent(Qt)}var Vr=Qt=>{let Kr=0;for(;Lr(Qt);)if(Kr+=1,Qt=decodeURIComponent(Qt),Kr>20)throw new Error("String Utils: Decode URI Fully: Enacted while loop too many times with attempt to decode fully.");return Qt},Gr=(Qt,Kr,{spaceAware:be=!0,insideWords:kr=!1}={})=>{let xr=`${Qt}`;for(const Wr of Kr)if(be)if(!kr)xr.indexOf(` ${Wr} `)>=0?xr=xr.replace(` ${Wr} `," "):(xr.startsWith(`${Wr} `)&&(xr=xr.substring(Wr.length+1)),xr.endsWith(` ${Wr}`)&&(xr=xr.substring(0,xr.length-(Wr.length+1))));else{const Jt=[new RegExp(`\\s${Wr}\\s`,"g"),new RegExp(`\\s${Wr}`,"g"),new RegExp(`${Wr}\\s`,"g")];for(const Xr of Jt)Xr.test(xr)&&(console.log(`Replacing "${Xr}" in "${xr}"`),xr=xr.replace(Xr," "),console.log(`Text after: "${xr}"`))}else xr.indexOf(Wr)>=0&&(xr=xr.replace(Wr,""));return xr.trim()};function Ur(Qt,Kr){const be=Qt.toLowerCase(),kr=Kr.toLowerCase();return bekr?1:0}function Qr(Qt,Kr){return Qt>Kr?1:QtQt.filter(Kr=>Kr).map((Kr,be,kr)=>{const xr=be!==0,Wr=be!==kr.length-1;return xr&&(Kr=Kr.startsWith("/")?Kr.slice(1):Kr),Wr&&(Kr=Kr.endsWith("/")?Kr.slice(0,-1):Kr),Kr}).join("/"),fn=(Qt,Kr)=>Kr.startsWith("http://")||Kr.startsWith("https://")?Kr:Yt(Qt,Kr),Xt=Qt=>{const Kr=Qt.match(/^[a-zA-Z0-9]+$/);return Boolean(Kr)};v.StringUtils={isUriEncoded:Lr,decodeUriFully:Vr,StringRegex:v.StringRegex,reverse:Mr,notNullEmpty:v.notNullEmpty,nullEmpty:v.nullEmpty,anyNullEmpty:ce,safeAppend:v.safeAppend,createPadder:ve,pad:pe,convertToSlug:v.convertToSlug,stringToConstantStyledString:v.stringToConstantStyledString,removeAndTrim:Gr,sortCompareStrings:Ur,comparePure:Qr,onlyNotNullEmpty:vn,firstNotNullEmpty:v.firstNotNullEmpty,joinIntoUrl:Yt,getUrlWithBaseUrl:fn,isHashId:Xt}}}),require_EnvironmentStorageUtils=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-common/src/modules_utility/state_utils/EnvironmentStorageUtils.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.EnvironmentStateAdapter_Sync=v.EnvironmentStateAdapter=void 0;var k=class{constructor(ae){this.implementation=ae}async setJson(ae,ce){await this.implementation.setString(ae,JSON.stringify(ce))}async getJson(ae){const ce=await this.implementation.getString(ae);if(!(ce==null||ce==="undefined"||ce==="null"))return JSON.parse(ce)}async setString(ae,ce){await this.implementation.setString(ae,ce)}async getString(ae){const ce=await this.implementation.getString(ae);if(ce!=null)return ce}createJsonGetterSetter(ae){return{get:()=>this.getJson(ae),set:ce=>this.setJson(ae,ce)}}createStringGetterSetter(ae){return{get:()=>this.getString(ae),set:ce=>this.setString(ae,ce)}}};v.EnvironmentStateAdapter=k;var ie=class{constructor(ae){this.implementation=ae}setJson(ae,ce){this.implementation.setString(ae,JSON.stringify(ce))}getJson(ae){const ce=this.implementation.getString(ae);if(!(ce==null||ce==="undefined"||ce==="null"))return JSON.parse(ce)}setString(ae,ce){this.implementation.setString(ae,ce)}getString(ae){const ce=this.implementation.getString(ae);if(ce!=null)return ce}clear(ae){this.implementation.clear(ae)}createJsonGetterSetter(ae){return{get:()=>this.getJson(ae),set:ce=>this.setJson(ae,ce)}}createStringGetterSetter(ae){return{get:()=>this.getString(ae),set:ce=>this.setString(ae,ce)}}};v.EnvironmentStateAdapter_Sync=ie}}),require_TransactionSchema=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-sdk/src/near-schema/TransactionSchema.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.SCHEMA=void 0;var k=require_browser_index2$1();v.SCHEMA=new Map([[k.transactions.Signature,{kind:"struct",fields:[["keyType","u8"],["data",[64]]]}],[k.transactions.SignedTransaction,{kind:"struct",fields:[["transaction",k.transactions.Transaction],["signature",k.transactions.Signature]]}],[k.transactions.Transaction,{kind:"struct",fields:[["signerId","string"],["publicKey",k.utils.PublicKey],["nonce","u64"],["receiverId","string"],["blockHash",[32]],["actions",[k.transactions.Action]]]}],[k.utils.PublicKey,{kind:"struct",fields:[["keyType","u8"],["data",[32]]]}],[k.transactions.AccessKey,{kind:"struct",fields:[["nonce","u64"],["permission",k.transactions.AccessKeyPermission]]}],[k.transactions.AccessKeyPermission,{kind:"enum",field:"enum",values:[["functionCall",k.transactions.FunctionCallPermission],["fullAccess",k.transactions.FullAccessPermission]]}],[k.transactions.FunctionCallPermission,{kind:"struct",fields:[["allowance",{kind:"option",type:"u128"}],["receiverId","string"],["methodNames",["string"]]]}],[k.transactions.FullAccessPermission,{kind:"struct",fields:[]}],[k.transactions.Action,{kind:"enum",field:"enum",values:[["createAccount",k.transactions.CreateAccount],["deployContract",k.transactions.DeployContract],["functionCall",k.transactions.FunctionCall],["transfer",k.transactions.Transfer],["stake",k.transactions.Stake],["addKey",k.transactions.AddKey],["deleteKey",k.transactions.DeleteKey],["deleteAccount",k.transactions.DeleteAccount]]}],[k.transactions.CreateAccount,{kind:"struct",fields:[]}],[k.transactions.DeployContract,{kind:"struct",fields:[["code",["u8"]]]}],[k.transactions.FunctionCall,{kind:"struct",fields:[["methodName","string"],["args",["u8"]],["gas","u64"],["deposit","u128"]]}],[k.transactions.Transfer,{kind:"struct",fields:[["deposit","u128"]]}],[k.transactions.Stake,{kind:"struct",fields:[["stake","u128"],["publicKey",k.utils.PublicKey]]}],[k.transactions.AddKey,{kind:"struct",fields:[["publicKey",k.utils.PublicKey],["accessKey",k.transactions.AccessKey]]}],[k.transactions.DeleteKey,{kind:"struct",fields:[["publicKey",k.utils.PublicKey]]}],[k.transactions.DeleteAccount,{kind:"struct",fields:[["beneficiaryId","string"]]}]])}}),require_MeteorWalletConstants=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-sdk/src/MeteorWalletConstants.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.WALLET_URL_LOCALHOST_BASE=v.WALLET_URL_PRODUCTION_BASE=v.WALLET_URL_DEV_BASE=void 0,v.WALLET_URL_DEV_BASE="https://dev.wallet.meteorwallet.app",v.WALLET_URL_PRODUCTION_BASE="https://wallet.meteorwallet.app",v.WALLET_URL_LOCALHOST_BASE="https://localhost:3000"}}),require_envConfig=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-sdk/src/envConfig.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.setEnvConfig=v.envConfig=void 0;var k=require_MeteorWalletConstants(),ie=typeof window<"u"?window.localStorage.getItem("DEV__METEOR_WALLET_BASE_URL"):void 0;v.envConfig={wallet_base_url:ie!=null?ie:k.WALLET_URL_PRODUCTION_BASE};function ae(ce){Object.assign(v.envConfig,ce)}v.setEnvConfig=ae}}),require_MeteorSdkUtils=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-sdk/src/utils/MeteorSdkUtils.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getNetworkPreset=v.resolveWalletUrl=void 0;var k=require_envConfig(),ie=(ce,fe)=>{if(fe)return fe;const le=k.envConfig.wallet_base_url;switch(ce){case"mainnet":return`${le}/connect/mainnet`;case"testnet":return`${le}/connect/testnet`;case"betanet":return`${le}/connect/betanet`;default:throw new Error("Invalid wallet URL")}};v.resolveWalletUrl=ie;var ae=ce=>{switch(ce){case"mainnet":return{networkId:ce,nodeUrl:"https://rpc.mainnet.near.org",helperUrl:"https://helper.mainnet.near.org",explorerUrl:"https://explorer.near.org"};case"testnet":return{networkId:ce,nodeUrl:"https://rpc.testnet.near.org",helperUrl:"https://helper.testnet.near.org",explorerUrl:"https://explorer.testnet.near.org"};case"betanet":return{networkId:ce,nodeUrl:"https://rpc.betanet.near.org",helperUrl:"https://helper.betanet.near.org",explorerUrl:"https://explorer.betanet.near.org"};default:throw Error(`Failed to find config for: '${ce}'`)}};v.getNetworkPreset=ae}}),urlAlphabet,init_url_alphabet=__esm$1({"node_modules/nanoid/url-alphabet/index.js"(){urlAlphabet="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"}}),index_browser_exports={};__export$1(index_browser_exports,{customAlphabet:()=>customAlphabet,customRandom:()=>customRandom,nanoid:()=>nanoid,random:()=>random,urlAlphabet:()=>urlAlphabet});var random,customRandom,customAlphabet,nanoid,init_index_browser=__esm$1({"node_modules/nanoid/index.browser.js"(){init_url_alphabet(),random=v=>crypto.getRandomValues(new Uint8Array(v)),customRandom=(v,k,ie)=>{let ae=(2<{let le="";for(;;){let ve=ie(ce),pe=ce;for(;pe--;)if(le+=v[ve[pe]&ae]||"",le.length===fe)return le}}},customAlphabet=(v,k=21)=>customRandom(v,k,random),nanoid=(v=21)=>crypto.getRandomValues(new Uint8Array(v)).reduce((k,ie)=>(ie&=63,ie<36?k+=ie.toString(36):ie<62?k+=(ie-26).toString(36).toUpperCase():ie>62?k+="-":k+="_",k),"")}}),require_decode_uri_component$1=__commonJS$1({"node_modules/decode-uri-component/index.js"(v,k){var ie="%[a-f0-9]{2}",ae=new RegExp(ie,"gi"),ce=new RegExp("("+ie+")+","gi");function fe(pe,ye){try{return decodeURIComponent(pe.join(""))}catch{}if(pe.length===1)return pe;ye=ye||1;var me=pe.slice(0,ye),Ee=pe.slice(ye);return Array.prototype.concat.call([],fe(me),fe(Ee))}function le(pe){try{return decodeURIComponent(pe)}catch{for(var ye=pe.match(ae),me=1;mejr==null,le=Symbol("encodeFragmentIdentifier");function ve(jr){switch(jr.arrayFormat){case"index":return Mr=>(Lr,Vr)=>{const Gr=Lr.length;return Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,[me(Mr,jr),"[",Gr,"]"].join("")]:[...Lr,[me(Mr,jr),"[",me(Gr,jr),"]=",me(Vr,jr)].join("")]};case"bracket":return Mr=>(Lr,Vr)=>Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,[me(Mr,jr),"[]"].join("")]:[...Lr,[me(Mr,jr),"[]=",me(Vr,jr)].join("")];case"colon-list-separator":return Mr=>(Lr,Vr)=>Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,[me(Mr,jr),":list="].join("")]:[...Lr,[me(Mr,jr),":list=",me(Vr,jr)].join("")];case"comma":case"separator":case"bracket-separator":{const Mr=jr.arrayFormat==="bracket-separator"?"[]=":"=";return Lr=>(Vr,Gr)=>Gr===void 0||jr.skipNull&&Gr===null||jr.skipEmptyString&&Gr===""?Vr:(Gr=Gr===null?"":Gr,Vr.length===0?[[me(Lr,jr),Mr,me(Gr,jr)].join("")]:[[Vr,me(Gr,jr)].join(jr.arrayFormatSeparator)])}default:return Mr=>(Lr,Vr)=>Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,me(Mr,jr)]:[...Lr,[me(Mr,jr),"=",me(Vr,jr)].join("")]}}function pe(jr){let Mr;switch(jr.arrayFormat){case"index":return(Lr,Vr,Gr)=>{if(Mr=/\[(\d*)\]$/.exec(Lr),Lr=Lr.replace(/\[\d*\]$/,""),!Mr){Gr[Lr]=Vr;return}Gr[Lr]===void 0&&(Gr[Lr]={}),Gr[Lr][Mr[1]]=Vr};case"bracket":return(Lr,Vr,Gr)=>{if(Mr=/(\[\])$/.exec(Lr),Lr=Lr.replace(/\[\]$/,""),!Mr){Gr[Lr]=Vr;return}if(Gr[Lr]===void 0){Gr[Lr]=[Vr];return}Gr[Lr]=[].concat(Gr[Lr],Vr)};case"colon-list-separator":return(Lr,Vr,Gr)=>{if(Mr=/(:list)$/.exec(Lr),Lr=Lr.replace(/:list$/,""),!Mr){Gr[Lr]=Vr;return}if(Gr[Lr]===void 0){Gr[Lr]=[Vr];return}Gr[Lr]=[].concat(Gr[Lr],Vr)};case"comma":case"separator":return(Lr,Vr,Gr)=>{const Ur=typeof Vr=="string"&&Vr.includes(jr.arrayFormatSeparator),Qr=typeof Vr=="string"&&!Ur&&Ee(Vr,jr).includes(jr.arrayFormatSeparator);Vr=Qr?Ee(Vr,jr):Vr;const vn=Ur||Qr?Vr.split(jr.arrayFormatSeparator).map(Yt=>Ee(Yt,jr)):Vr===null?Vr:Ee(Vr,jr);Gr[Lr]=vn};case"bracket-separator":return(Lr,Vr,Gr)=>{const Ur=/(\[\])$/.test(Lr);if(Lr=Lr.replace(/\[\]$/,""),!Ur){Gr[Lr]=Vr&&Ee(Vr,jr);return}const Qr=Vr===null?[]:Vr.split(jr.arrayFormatSeparator).map(vn=>Ee(vn,jr));if(Gr[Lr]===void 0){Gr[Lr]=Qr;return}Gr[Lr]=[].concat(Gr[Lr],Qr)};default:return(Lr,Vr,Gr)=>{if(Gr[Lr]===void 0){Gr[Lr]=Vr;return}Gr[Lr]=[].concat(Gr[Lr],Vr)}}}function ye(jr){if(typeof jr!="string"||jr.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function me(jr,Mr){return Mr.encode?Mr.strict?k(jr):encodeURIComponent(jr):jr}function Ee(jr,Mr){return Mr.decode?ie(jr):jr}function cr(jr){return Array.isArray(jr)?jr.sort():typeof jr=="object"?cr(Object.keys(jr)).sort((Mr,Lr)=>Number(Mr)-Number(Lr)).map(Mr=>jr[Mr]):jr}function Br(jr){const Mr=jr.indexOf("#");return Mr!==-1&&(jr=jr.slice(0,Mr)),jr}function $r(jr){let Mr="";const Lr=jr.indexOf("#");return Lr!==-1&&(Mr=jr.slice(Lr)),Mr}function Pr(jr){jr=Br(jr);const Mr=jr.indexOf("?");return Mr===-1?"":jr.slice(Mr+1)}function Or(jr,Mr){return Mr.parseNumbers&&!Number.isNaN(Number(jr))&&typeof jr=="string"&&jr.trim()!==""?jr=Number(jr):Mr.parseBooleans&&jr!==null&&(jr.toLowerCase()==="true"||jr.toLowerCase()==="false")&&(jr=jr.toLowerCase()==="true"),jr}function ur(jr,Mr){Mr=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},Mr),ye(Mr.arrayFormatSeparator);const Lr=pe(Mr),Vr=Object.create(null);if(typeof jr!="string"||(jr=jr.trim().replace(/^[?#&]/,""),!jr))return Vr;for(const Gr of jr.split("&")){if(Gr==="")continue;let[Ur,Qr]=ae(Mr.decode?Gr.replace(/\+/g," "):Gr,"=");Qr=Qr===void 0?null:["comma","separator","bracket-separator"].includes(Mr.arrayFormat)?Qr:Ee(Qr,Mr),Lr(Ee(Ur,Mr),Qr,Vr)}for(const Gr of Object.keys(Vr)){const Ur=Vr[Gr];if(typeof Ur=="object"&&Ur!==null)for(const Qr of Object.keys(Ur))Ur[Qr]=Or(Ur[Qr],Mr);else Vr[Gr]=Or(Ur,Mr)}return Mr.sort===!1?Vr:(Mr.sort===!0?Object.keys(Vr).sort():Object.keys(Vr).sort(Mr.sort)).reduce((Gr,Ur)=>{const Qr=Vr[Ur];return Boolean(Qr)&&typeof Qr=="object"&&!Array.isArray(Qr)?Gr[Ur]=cr(Qr):Gr[Ur]=Qr,Gr},Object.create(null))}v.extract=Pr,v.parse=ur,v.stringify=(jr,Mr)=>{if(!jr)return"";Mr=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},Mr),ye(Mr.arrayFormatSeparator);const Lr=Qr=>Mr.skipNull&&fe(jr[Qr])||Mr.skipEmptyString&&jr[Qr]==="",Vr=ve(Mr),Gr={};for(const Qr of Object.keys(jr))Lr(Qr)||(Gr[Qr]=jr[Qr]);const Ur=Object.keys(Gr);return Mr.sort!==!1&&Ur.sort(Mr.sort),Ur.map(Qr=>{const vn=jr[Qr];return vn===void 0?"":vn===null?me(Qr,Mr):Array.isArray(vn)?vn.length===0&&Mr.arrayFormat==="bracket-separator"?me(Qr,Mr)+"[]":vn.reduce(Vr(Qr),[]).join("&"):me(Qr,Mr)+"="+me(vn,Mr)}).filter(Qr=>Qr.length>0).join("&")},v.parseUrl=(jr,Mr)=>{Mr=Object.assign({decode:!0},Mr);const[Lr,Vr]=ae(jr,"#");return Object.assign({url:Lr.split("?")[0]||"",query:ur(Pr(jr),Mr)},Mr&&Mr.parseFragmentIdentifier&&Vr?{fragmentIdentifier:Ee(Vr,Mr)}:{})},v.stringifyUrl=(jr,Mr)=>{Mr=Object.assign({encode:!0,strict:!0,[le]:!0},Mr);const Lr=Br(jr.url).split("?")[0]||"",Vr=v.extract(jr.url),Gr=v.parse(Vr,{sort:!1}),Ur=Object.assign(Gr,jr.query);let Qr=v.stringify(Ur,Mr);Qr&&(Qr=`?${Qr}`);let vn=$r(jr.url);return jr.fragmentIdentifier&&(vn=`#${Mr[le]?me(jr.fragmentIdentifier,Mr):jr.fragmentIdentifier}`),`${Lr}${Qr}${vn}`},v.pick=(jr,Mr,Lr)=>{Lr=Object.assign({parseFragmentIdentifier:!0,[le]:!1},Lr);const{url:Vr,query:Gr,fragmentIdentifier:Ur}=v.parseUrl(jr,Lr);return v.stringifyUrl({url:Vr,query:ce(Gr,Mr),fragmentIdentifier:Ur},Lr)},v.exclude=(jr,Mr,Lr)=>{const Vr=Array.isArray(Mr)?Gr=>!Mr.includes(Gr):(Gr,Ur)=>!Mr(Gr,Ur);return v.pick(jr,Vr,Lr)}}}),require_constants_theme=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-common/src/modules_app_core/theme/constants_theme.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.THEME_SMALL_WINDOW_WIDTH_MAX=v.THEME_CONSTANT_BADGE_GREY_COLOR=v.THEME_CONSTANT_GREEN_COLOR=v.THEME_CONSTANT_RED_COLOR=v.THEME_CONSTANT_COLOR_DARK=v.THEME_CONSTANT_COLOR_BRAND=v.SIGN_POPUP_HEIGHT=v.SIGN_POPUP_WIDTH=void 0,v.SIGN_POPUP_WIDTH=390,v.SIGN_POPUP_HEIGHT=650,v.THEME_CONSTANT_COLOR_BRAND="#471be8",v.THEME_CONSTANT_COLOR_DARK="#101046",v.THEME_CONSTANT_RED_COLOR="#e25252",v.THEME_CONSTANT_GREEN_COLOR="#8bdaa1",v.THEME_CONSTANT_BADGE_GREY_COLOR="rgba(116,117,126,0.67)",v.THEME_SMALL_WINDOW_WIDTH_MAX=600}}),require_MeteorPostMessenger=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-sdk/src/postMessage/MeteorPostMessenger.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getMeteorPostMessenger=void 0;var k=(init_index_browser(),__toCommonJS$1(index_browser_exports)),ie=require_envConfig(),ae=require_types_dappConnect(),ce=require_query_string$1(),fe=require_error_handling_dappConnect(),le=require_constants_theme(),ve=class{constructor(cr,Br){const $r=ie.envConfig.wallet_base_url,Pr=new URL($r);if(this.walletOrigin=Pr.origin,window.meteorCom==null){this.comType=ae.EDappActionSource.website_post_message,console.log("No extension found. Need to connect to web popup for Meteor communication");const Or={source:ae.EDappActionSource.website_post_message,connectionUid:cr.uid},ur=le.SIGN_POPUP_WIDTH,jr=le.SIGN_POPUP_HEIGHT,Mr=window.top.outerHeight/2+window.top.screenY-jr/2,Lr=window.top.outerWidth/2+window.top.screenX-ur/2,Vr=window.open(`${$r}/connect/${cr.network}/${cr.actionType}?${(0,ce.stringify)(Or)}`,"_blank",`popup=1,width=${ur},height=${jr},top=${Mr},left=${Lr}`);if(Vr!=null)this.websiteWindow=Vr;else throw new ae.MeteorActionError({message:"Couldn't open popup window to complete wallet action",endTags:[fe.EDappActionErrorTag.POPUP_WINDOW_OPEN_FAILED]});window.addEventListener("message",Gr=>Br(Gr.data)),this.wasOpened=!1}else this.comType=ae.EDappActionSource.extension_injected,this.wasOpened=!0,window.meteorCom.addMessageDataListener(Br)}focus(){var cr;this.comType===ae.EDappActionSource.website_post_message&&((cr=this.websiteWindow)===null||cr===void 0||cr.focus())}sendMessage(cr){var Br,$r;this.comType===ae.EDappActionSource.website_post_message?(Br=this.websiteWindow)===null||Br===void 0||Br.postMessage(cr,this.walletOrigin):($r=window.meteorCom)===null||$r===void 0||$r.sendMessageData(cr)}isWindowClosed(){var cr,Br;return this.comType===ae.EDappActionSource.website_post_message?(Br=(cr=this.websiteWindow)===null||cr===void 0?void 0:cr.closed)!==null&&Br!==void 0?Br:!0:!1}hasActiveWindow(){return this.comType===ae.EDappActionSource.website_post_message?this.websiteWindow!=null:!0}close(){this.comType===ae.EDappActionSource.website_post_message&&delete this.websiteWindow}},pe=450,ye=class{constructor(){this.connections=[];const cr=ie.envConfig.wallet_base_url,Br=new URL(cr);this.baseWalletUrl=cr,this.walletOrigin=Br.origin,this.listener=$r=>{if($r!=null){const Pr=this.connections.find(Or=>Or.uid===$r.uid);Pr!=null&&(this.updateConnection(Pr.uid,{lastConnection:Date.now()}),$r.status===ae.EDappActionConnectionStatus.attempting_reconnect&&(this.updateConnection(Pr.uid,{status:ae.EDappActionConnectionStatus.initializing}),this.sendComs()),$r.status===ae.EDappActionConnectionStatus.connected&&Pr.status===ae.EDappActionConnectionStatus.initializing&&this.updateConnection(Pr.uid,{status:ae.EDappActionConnectionStatus.connected}),$r.status===ae.EDappActionConnectionStatus.closed_success&&(Pr.resolve({success:!0,endTags:[],payload:$r.payload}),this.updateConnection(Pr.uid,{status:ae.EDappActionConnectionStatus.closed_success}),this.sendComs()),$r.status===ae.EDappActionConnectionStatus.closed_fail&&(this.updateConnection(Pr.uid,{status:ae.EDappActionConnectionStatus.closed_fail}),this.sendComs(),Pr.reject(new ae.MeteorActionError({endTags:$r.endTags}))),$r.status===ae.EDappActionConnectionStatus.closed_window&&(this.updateConnection(Pr.uid,{status:ae.EDappActionConnectionStatus.closed_window}),Pr.reject(new ae.MeteorActionError({endTags:$r.endTags,message:"User closed the window"}))),[ae.EDappActionConnectionStatus.disconnected,ae.EDappActionConnectionStatus.closed_fail,ae.EDappActionConnectionStatus.closed_window,ae.EDappActionConnectionStatus.closed_success].includes($r.status)&&this.removeConnection(Pr.uid))}}}removeConnection(cr){this.connections=this.connections.filter(Br=>Br.uid!==cr),this.connections.length===0&&(delete this.comWindow,clearInterval(this.comInterval),delete this.comInterval)}updateConnection(cr,Br){this.connections=this.connections.map($r=>$r.uid===cr?{...$r,...Br,uid:$r.uid}:$r)}sendComs(){var cr;if(((cr=this.comWindow)===null||cr===void 0?void 0:cr.hasActiveWindow())&&this.connections.length>0)if(this.comInterval==null&&(this.comInterval=setInterval(()=>this.sendComs(),pe)),this.comWindow.isWindowClosed())if(this.comWindow.wasOpened){for(const Br of this.connections)Br.reject(new ae.MeteorActionError({message:"User closed the window before completing the action",endTags:[fe.EDappActionErrorTag.INCOMPLETE_ACTION,fe.EDappActionErrorTag.WINDOW_CLOSED]}));this.connections=[],this.comWindow.close()}else console.log("Window is closed, need to allow popup");else{this.comWindow.wasOpened=!0;for(const{network:Br,actionType:$r,endTags:Pr,status:Or,inputs:ur,uid:jr}of this.connections){const Mr={endTags:Pr,actionType:$r,status:Or,uid:jr,network:Br};Or===ae.EDappActionConnectionStatus.initializing&&(Mr.inputs=ur),this.comWindow.sendMessage(Mr)}}else clearInterval(this.comInterval),delete this.comInterval}addAndStartConnection(cr){if(this.connections.length>0)for(const Br of this.connections)Br.status=ae.EDappActionConnectionStatus.disconnected,Br.endTags=[fe.EDappActionErrorTag.NEW_ACTION_STARTED];this.connections.push(cr),this.comWindow==null||!this.comWindow.hasActiveWindow()?this.comWindow=new ve(cr,this.listener):this.comWindow.focus(),this.sendComs()}async connectAndWaitForResponse({actionType:cr,network:Br,inputs:$r}){let Pr={uid:(0,k.nanoid)(),actionType:cr,lastAttemptedConnection:0,lastConnection:0,status:ae.EDappActionConnectionStatus.initializing,promise:void 0,reject:void 0,resolve:void 0,currentPayload:{},inputs:$r,network:Br,endTags:[]};const Or=new Promise((ur,jr)=>{Pr.resolve=ur,Pr.reject=Mr=>{this.connections=this.connections.filter(Lr=>Lr.uid!==Pr.uid),jr(Mr)}});return Pr.promise=Or,this.addAndStartConnection(Pr),await Or}},me;function Ee(){return me==null&&(me=new ye),me}v.getMeteorPostMessenger=Ee}}),require_MeteorWallet=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-sdk/src/MeteorWallet.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ConnectedMeteorWalletAccount=v.MeteorWallet=void 0;var k=require_browser_index2$1(),ie=require_types_dappConnect(),ae=require_lib(),ce=require_StringUtils(),fe=require_EnvironmentStorageUtils(),le=require_TransactionSchema(),ve=require_MeteorSdkUtils(),pe=require_MeteorPostMessenger(),ye="add_request_and_confirm",me="_meteor_wallet_auth_key",Ee=new fe.EnvironmentStateAdapter_Sync({getString:$r=>window.localStorage.getItem($r),setString:($r,Pr)=>window.localStorage.setItem($r,Pr),clear:$r=>window.localStorage.removeItem($r)});new fe.EnvironmentStateAdapter_Sync({getString:$r=>window.sessionStorage.getItem($r),setString:($r,Pr)=>window.sessionStorage.setItem($r,Pr),clear:$r=>window.sessionStorage.removeItem($r)});var cr=class{static async init({walletUrl:$r,...Pr}){const Or=new k.keyStores.BrowserLocalStorageKeyStore,ur=await(0,k.connect)({keyStore:Or,headers:{},walletUrl:(0,ve.resolveWalletUrl)(Pr.networkId,$r),...(0,ve.getNetworkPreset)(Pr.networkId),...Pr}),jr=new cr({near:ur,appKeyPrefix:"near_app"});return jr.isSignedIn()||await Or.clear(),jr}constructor($r){var Pr,Or,{near:ur,appKeyPrefix:jr=(Pr=ur.config.contractName)!==null&&Pr!==void 0?Pr:"default"}=$r;this._initializationPromises=[],this._near=ur;const Mr=jr+me;this._authDataKey=Mr,this._authData=(Or=Ee.getJson(Mr))!==null&&Or!==void 0?Or:{allKeys:[]},this._networkId=ur.config.networkId,this._walletBaseUrl=ur.config.walletUrl,this._keyStore=ur.connection.signer.keyStore}isExtensionInstalled(){return window.meteorWallet!=null}isSignedIn(){return!!this._authData.accountId}getAccountId(){return this._authData.accountId}async verifyOwner($r){var Pr;const Or=(Pr=$r.accountId)!==null&&Pr!==void 0?Pr:this.getAccountId(),ur=await(0,pe.getMeteorPostMessenger)().connectAndWaitForResponse({actionType:ie.EExternalActionType.verify_owner,inputs:{accountId:Or,message:$r.message},network:this._networkId});if(ur.success)return ur;throw new ie.MeteorActionError({endTags:ur.endTags,message:ur.message})}async requestSignIn($r){const{keyPair:Pr,...Or}=$r,ur=Pr!=null?Pr:k.KeyPair.fromRandom("ed25519");let jr=ur.getPublicKey().toString();const Mr=await(0,pe.getMeteorPostMessenger)().connectAndWaitForResponse({actionType:ie.EExternalActionType.login,inputs:{public_key:jr,...Or},network:this._networkId});if(Mr.success){const{allKeys:Lr,accountId:Vr}=Mr.payload;return this._authData={accountId:Vr,allKeys:Lr,signedInContract:{contract_id:Or.contract_id,public_key:jr}},Ee.setJson(this._authDataKey,this._authData),await this._keyStore.setKey(this._networkId,Vr,ur),{success:!0,endTags:[],payload:{accessKey:ur,accountId:Vr}}}else throw new ie.MeteorActionError({endTags:Mr.endTags,message:Mr.message})}async signOut(){const $r=this.getAccountId();if(this._authData.signedInContract!=null&&$r!=null){const Pr={accountId:$r,contractInfo:this._authData.signedInContract};await(0,pe.getMeteorPostMessenger)().connectAndWaitForResponse({actionType:ie.EExternalActionType.logout,inputs:Pr,network:this._networkId})}this._authData={allKeys:[]},Ee.clear(this._authDataKey)}async signMessage({message:$r,nonce:Pr,recipient:Or,callbackUrl:ur,state:jr,accountId:Mr}){const Lr=await(0,pe.getMeteorPostMessenger)().connectAndWaitForResponse({actionType:ie.EExternalActionType.sign_message,inputs:{message:$r,nonce:Pr,recipient:Or,callbackUrl:ur,state:jr,accountId:Mr},network:this._networkId});if(Lr.success)return Lr.payload.state=jr,Lr;throw new ie.MeteorActionError({endTags:Lr.endTags,message:Lr.message})}async requestSignTransactions($r){const{transactions:Pr}=$r,Or=await(0,pe.getMeteorPostMessenger)().connectAndWaitForResponse({actionType:ie.EExternalActionType.sign,inputs:{transactions:Pr.map(ur=>(0,ae.serialize)(le.SCHEMA,ur)).map(ur=>Buffer.from(ur).toString("base64")).join(",")},network:this._networkId});if(Or.success)return Or.payload.executionOutcomes;throw new ie.MeteorActionError({endTags:Or.endTags,message:Or.message})}account(){const $r=this.getAccountId();return!this._connectedAccount&&(0,ce.notNullEmpty)($r)&&(this._connectedAccount=new Br(this,this._near.connection,$r)),this._connectedAccount}};v.MeteorWallet=cr;var Br=class extends k.Account{constructor($r,Pr,Or){super(Pr,Or),this.meteorWallet=$r}async signAndSendTransaction(...$r){return typeof $r[0]=="string"?this.signAndSendTransaction_direct({receiverId:$r[0],actions:$r[1]}):this.signAndSendTransaction_direct($r[0])}async trySendOrCreateTransaction({receiverId:$r,actions:Pr}){const Or=await this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);let ur=await this.accessKeyForTransaction($r,Pr,Or);if(!ur)throw new Error(`Cannot find matching key for transaction sent to ${$r}`);if(Or&&Or.toString()===ur.public_key)try{return{executionOutcome:await super.signAndSendTransaction({receiverId:$r,actions:Pr}),sent:!0}}catch(Ur){if(Ur.type==="NotEnoughAllowance")ur=await this.accessKeyForTransaction($r,Pr);else throw Ur}const jr=await this.connection.provider.block({finality:"final"}),Mr=(0,ae.baseDecode)(jr.header.hash),Lr=k.utils.PublicKey.from(ur.public_key),Vr=ur.access_key.nonce+1,Gr=k.transactions.createTransaction(this.accountId,Lr,$r,Vr,Pr,Mr);return{sent:!1,transaction:Gr}}async signAndSendTransaction_direct({receiverId:$r,actions:Pr}){const{transaction:Or,sent:ur,executionOutcome:jr}=await this.trySendOrCreateTransaction({receiverId:$r,actions:Pr});return ur?jr:(await this.meteorWallet.requestSignTransactions({transactions:[Or]}))[0]}async accessKeyMatchesTransaction($r,Pr,Or){const{access_key:{permission:ur}}=$r;if(ur==="FullAccess")return!0;if(ur.FunctionCall){const{receiver_id:jr,method_names:Mr}=ur.FunctionCall;if(jr===this.accountId&&Mr.includes(ye))return!0;if(jr===Pr){if(Or.length!==1)return!1;const[{functionCall:Lr}]=Or;return Lr&&(!Lr.deposit||Lr.deposit.toString()==="0")&&(Mr.length===0||Mr.includes(Lr.methodName))}}return!1}async accessKeyForTransaction($r,Pr,Or){const ur=await this.getAccessKeys();if(Or){const Mr=ur.find(Lr=>Lr.public_key.toString()===Or.toString());if(Mr&&await this.accessKeyMatchesTransaction(Mr,$r,Pr))return Mr}const jr=this.meteorWallet._authData.allKeys;for(const Mr of ur)if(jr.indexOf(Mr.public_key)!==-1&&await this.accessKeyMatchesTransaction(Mr,$r,Pr))return Mr;return null}};v.ConnectedMeteorWalletAccount=Br}}),require_near_basic_types=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-common/src/modules_external/near/types/near_basic_types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ENearNetwork=void 0,function(k){k.localnet="localnet",k.testnet="testnet",k.betanet="betanet",k.mainnet="mainnet"}(v.ENearNetwork||(v.ENearNetwork={}))}}),require_src$1=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-sdk/src/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(fe,le,ve,pe){pe===void 0&&(pe=ve);var ye=Object.getOwnPropertyDescriptor(le,ve);(!ye||("get"in ye?!le.__esModule:ye.writable||ye.configurable))&&(ye={enumerable:!0,get:function(){return le[ve]}}),Object.defineProperty(fe,pe,ye)}:function(fe,le,ve,pe){pe===void 0&&(pe=ve),fe[pe]=le[ve]}),ie=v&&v.__exportStar||function(fe,le){for(var ve in fe)ve!=="default"&&!Object.prototype.hasOwnProperty.call(le,ve)&&k(le,fe,ve)};Object.defineProperty(v,"__esModule",{value:!0}),v.setEnvConfig=v.ENearNetwork=void 0,ie(require_MeteorWallet(),v),ie(require_MeteorSdkUtils(),v),ie(require_MeteorWalletConstants(),v),ie(require_types_dappConnect(),v);var ae=require_near_basic_types();Object.defineProperty(v,"ENearNetwork",{enumerable:!0,get:function(){return ae.ENearNetwork}});var ce=require_envConfig();Object.defineProperty(v,"setEnvConfig",{enumerable:!0,get:function(){return ce.setEnvConfig}})}}),nearAPI$5=__toESM(require_browser_index2$1(),1),import_sdk$1=__toESM(require_src$1(),1),commonjsGlobal$b=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$a=function(v){return v&&v.Math==Math&&v},global$j$4=check$a(typeof globalThis=="object"&&globalThis)||check$a(typeof window=="object"&&window)||check$a(typeof self=="object"&&self)||check$a(typeof commonjsGlobal$b=="object"&&commonjsGlobal$b)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$8={},fails$e$5=function(v){try{return!!v()}catch{return!0}},fails$d$5=fails$e$5,descriptors$a=!fails$d$5(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$c$5=fails$e$5,functionBindNative$a=!fails$c$5(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$6=functionBindNative$a,call$f$5=Function.prototype.call,functionCall$a=NATIVE_BIND$3$6?call$f$5.bind(call$f$5):function(){return call$f$5.apply(call$f$5,arguments)},objectPropertyIsEnumerable$8={},$propertyIsEnumerable$8={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$4=Object.getOwnPropertyDescriptor,NASHORN_BUG$8=getOwnPropertyDescriptor$2$4&&!$propertyIsEnumerable$8.call({1:2},1);objectPropertyIsEnumerable$8.f=NASHORN_BUG$8?function v(k){var ie=getOwnPropertyDescriptor$2$4(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$8;var createPropertyDescriptor$3$5=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2$6=functionBindNative$a,FunctionPrototype$2$6=Function.prototype,bind$5$4=FunctionPrototype$2$6.bind,call$e$5=FunctionPrototype$2$6.call,uncurryThis$e$5=NATIVE_BIND$2$6&&bind$5$4.bind(call$e$5,call$e$5),functionUncurryThis$a=NATIVE_BIND$2$6?function(v){return v&&uncurryThis$e$5(v)}:function(v){return v&&function(){return call$e$5.apply(v,arguments)}},uncurryThis$d$6=functionUncurryThis$a,toString$2$8=uncurryThis$d$6({}.toString),stringSlice$a=uncurryThis$d$6("".slice),classofRaw$1$9=function(v){return stringSlice$a(toString$2$8(v),8,-1)},uncurryThis$c$6=functionUncurryThis$a,fails$b$5=fails$e$5,classof$5$5=classofRaw$1$9,$Object$4$5=Object,split$8=uncurryThis$c$6("".split),indexedObject$8=fails$b$5(function(){return!$Object$4$5("z").propertyIsEnumerable(0)})?function(v){return classof$5$5(v)=="String"?split$8(v,""):$Object$4$5(v)}:$Object$4$5,$TypeError$b$5=TypeError,requireObjectCoercible$2$8=function(v){if(v==null)throw $TypeError$b$5("Can't call method on "+v);return v},IndexedObject$1$7=indexedObject$8,requireObjectCoercible$1$a=requireObjectCoercible$2$8,toIndexedObject$5$5=function(v){return IndexedObject$1$7(requireObjectCoercible$1$a(v))},isCallable$k$4=function(v){return typeof v=="function"},isCallable$j$5=isCallable$k$4,isObject$7$6=function(v){return typeof v=="object"?v!==null:isCallable$j$5(v)},global$i$5=global$j$4,isCallable$i$5=isCallable$k$4,aFunction$a=function(v){return isCallable$i$5(v)?v:void 0},getBuiltIn$8$4=function(v,k){return arguments.length<2?aFunction$a(global$i$5[v]):global$i$5[v]&&global$i$5[v][k]},uncurryThis$b$6=functionUncurryThis$a,objectIsPrototypeOf$a=uncurryThis$b$6({}.isPrototypeOf),getBuiltIn$7$4=getBuiltIn$8$4,engineUserAgent$a=getBuiltIn$7$4("navigator","userAgent")||"",global$h$6=global$j$4,userAgent$3$4=engineUserAgent$a,process$3$4=global$h$6.process,Deno$1$5=global$h$6.Deno,versions$a=process$3$4&&process$3$4.versions||Deno$1$5&&Deno$1$5.version,v8$a=versions$a&&versions$a.v8,match$a,version$a;v8$a&&(match$a=v8$a.split("."),version$a=match$a[0]>0&&match$a[0]<4?1:+(match$a[0]+match$a[1]));!version$a&&userAgent$3$4&&(match$a=userAgent$3$4.match(/Edge\/(\d+)/),(!match$a||match$a[1]>=74)&&(match$a=userAgent$3$4.match(/Chrome\/(\d+)/),match$a&&(version$a=+match$a[1])));var engineV8Version$a=version$a,V8_VERSION$1$4=engineV8Version$a,fails$a$7=fails$e$5,nativeSymbol$a=!!Object.getOwnPropertySymbols&&!fails$a$7(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$4&&V8_VERSION$1$4<41}),NATIVE_SYMBOL$1$a=nativeSymbol$a,useSymbolAsUid$a=NATIVE_SYMBOL$1$a&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$6$6=getBuiltIn$8$4,isCallable$h$6=isCallable$k$4,isPrototypeOf$3$5=objectIsPrototypeOf$a,USE_SYMBOL_AS_UID$1$a=useSymbolAsUid$a,$Object$3$7=Object,isSymbol$2$a=USE_SYMBOL_AS_UID$1$a?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$6("Symbol");return isCallable$h$6(k)&&isPrototypeOf$3$5(k.prototype,$Object$3$7(v))},$String$3$5=String,tryToString$4$6=function(v){try{return $String$3$5(v)}catch{return"Object"}},isCallable$g$6=isCallable$k$4,tryToString$3$6=tryToString$4$6,$TypeError$a$6=TypeError,aCallable$7$4=function(v){if(isCallable$g$6(v))return v;throw $TypeError$a$6(tryToString$3$6(v)+" is not a function")},aCallable$6$4=aCallable$7$4,getMethod$3$5=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$6$4(ie)},call$d$5=functionCall$a,isCallable$f$6=isCallable$k$4,isObject$6$6=isObject$7$6,$TypeError$9$6=TypeError,ordinaryToPrimitive$1$a=function(v,k){var ie,ae;if(k==="string"&&isCallable$f$6(ie=v.toString)&&!isObject$6$6(ae=call$d$5(ie,v))||isCallable$f$6(ie=v.valueOf)&&!isObject$6$6(ae=call$d$5(ie,v))||k!=="string"&&isCallable$f$6(ie=v.toString)&&!isObject$6$6(ae=call$d$5(ie,v)))return ae;throw $TypeError$9$6("Can't convert object to primitive value")},shared$3$a={exports:{}},global$g$6=global$j$4,defineProperty$5$5=Object.defineProperty,defineGlobalProperty$3$8=function(v,k){try{defineProperty$5$5(global$g$6,v,{value:k,configurable:!0,writable:!0})}catch{global$g$6[v]=k}return k},global$f$6=global$j$4,defineGlobalProperty$2$a=defineGlobalProperty$3$8,SHARED$a="__core-js_shared__",store$3$a=global$f$6[SHARED$a]||defineGlobalProperty$2$a(SHARED$a,{}),sharedStore$a=store$3$a,store$2$a=sharedStore$a;(shared$3$a.exports=function(v,k){return store$2$a[v]||(store$2$a[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$c=requireObjectCoercible$2$8,$Object$2$a=Object,toObject$3$5=function(v){return $Object$2$a(requireObjectCoercible$c(v))},uncurryThis$a$8=functionUncurryThis$a,toObject$2$7=toObject$3$5,hasOwnProperty$a=uncurryThis$a$8({}.hasOwnProperty),hasOwnProperty_1$a=Object.hasOwn||function v(k,ie){return hasOwnProperty$a(toObject$2$7(k),ie)},uncurryThis$9$8=functionUncurryThis$a,id$c=0,postfix$a=Math.random(),toString$1$a=uncurryThis$9$8(1 .toString),uid$2$a=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$1$a(++id$c+postfix$a,36)},global$e$6=global$j$4,shared$2$a=shared$3$a.exports,hasOwn$a$5=hasOwnProperty_1$a,uid$1$a=uid$2$a,NATIVE_SYMBOL$b=nativeSymbol$a,USE_SYMBOL_AS_UID$b=useSymbolAsUid$a,WellKnownSymbolsStore$a=shared$2$a("wks"),Symbol$1$a=global$e$6.Symbol,symbolFor$a=Symbol$1$a&&Symbol$1$a.for,createWellKnownSymbol$a=USE_SYMBOL_AS_UID$b?Symbol$1$a:Symbol$1$a&&Symbol$1$a.withoutSetter||uid$1$a,wellKnownSymbol$e$5=function(v){if(!hasOwn$a$5(WellKnownSymbolsStore$a,v)||!(NATIVE_SYMBOL$b||typeof WellKnownSymbolsStore$a[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$b&&hasOwn$a$5(Symbol$1$a,v)?WellKnownSymbolsStore$a[v]=Symbol$1$a[v]:USE_SYMBOL_AS_UID$b&&symbolFor$a?WellKnownSymbolsStore$a[v]=symbolFor$a(k):WellKnownSymbolsStore$a[v]=createWellKnownSymbol$a(k)}return WellKnownSymbolsStore$a[v]},call$c$6=functionCall$a,isObject$5$a=isObject$7$6,isSymbol$1$a=isSymbol$2$a,getMethod$2$6=getMethod$3$5,ordinaryToPrimitive$b=ordinaryToPrimitive$1$a,wellKnownSymbol$d$5=wellKnownSymbol$e$5,$TypeError$8$6=TypeError,TO_PRIMITIVE$a=wellKnownSymbol$d$5("toPrimitive"),toPrimitive$1$a=function(v,k){if(!isObject$5$a(v)||isSymbol$1$a(v))return v;var ie=getMethod$2$6(v,TO_PRIMITIVE$a),ae;if(ie){if(k===void 0&&(k="default"),ae=call$c$6(ie,v,k),!isObject$5$a(ae)||isSymbol$1$a(ae))return ae;throw $TypeError$8$6("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$b(v,k)},toPrimitive$c=toPrimitive$1$a,isSymbol$d=isSymbol$2$a,toPropertyKey$2$8=function(v){var k=toPrimitive$c(v,"string");return isSymbol$d(k)?k:k+""},global$d$6=global$j$4,isObject$4$a=isObject$7$6,document$3$4=global$d$6.document,EXISTS$1$a=isObject$4$a(document$3$4)&&isObject$4$a(document$3$4.createElement),documentCreateElement$2$5=function(v){return EXISTS$1$a?document$3$4.createElement(v):{}},DESCRIPTORS$a$5=descriptors$a,fails$9$8=fails$e$5,createElement$1$4=documentCreateElement$2$5,ie8DomDefine$a=!DESCRIPTORS$a$5&&!fails$9$8(function(){return Object.defineProperty(createElement$1$4("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$9$5=descriptors$a,call$b$6=functionCall$a,propertyIsEnumerableModule$1$7=objectPropertyIsEnumerable$8,createPropertyDescriptor$2$8=createPropertyDescriptor$3$5,toIndexedObject$4$5=toIndexedObject$5$5,toPropertyKey$1$a=toPropertyKey$2$8,hasOwn$9$5=hasOwnProperty_1$a,IE8_DOM_DEFINE$1$8=ie8DomDefine$a,$getOwnPropertyDescriptor$1$8=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$8.f=DESCRIPTORS$9$5?$getOwnPropertyDescriptor$1$8:function v(k,ie){if(k=toIndexedObject$4$5(k),ie=toPropertyKey$1$a(ie),IE8_DOM_DEFINE$1$8)try{return $getOwnPropertyDescriptor$1$8(k,ie)}catch{}if(hasOwn$9$5(k,ie))return createPropertyDescriptor$2$8(!call$b$6(propertyIsEnumerableModule$1$7.f,k,ie),k[ie])};var objectDefineProperty$a={},DESCRIPTORS$8$5=descriptors$a,fails$8$8=fails$e$5,v8PrototypeDefineBug$a=DESCRIPTORS$8$5&&fails$8$8(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$3$a=isObject$7$6,$String$2$9=String,$TypeError$7$6=TypeError,anObject$c$5=function(v){if(isObject$3$a(v))return v;throw $TypeError$7$6($String$2$9(v)+" is not an object")},DESCRIPTORS$7$8=descriptors$a,IE8_DOM_DEFINE$b=ie8DomDefine$a,V8_PROTOTYPE_DEFINE_BUG$1$5=v8PrototypeDefineBug$a,anObject$b$5=anObject$c$5,toPropertyKey$e=toPropertyKey$2$8,$TypeError$6$6=TypeError,$defineProperty$a=Object.defineProperty,$getOwnPropertyDescriptor$b=Object.getOwnPropertyDescriptor,ENUMERABLE$a="enumerable",CONFIGURABLE$1$a="configurable",WRITABLE$a="writable";objectDefineProperty$a.f=DESCRIPTORS$7$8?V8_PROTOTYPE_DEFINE_BUG$1$5?function v(k,ie,ae){if(anObject$b$5(k),ie=toPropertyKey$e(ie),anObject$b$5(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$a in ae&&!ae[WRITABLE$a]){var ce=$getOwnPropertyDescriptor$b(k,ie);ce&&ce[WRITABLE$a]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$a in ae?ae[CONFIGURABLE$1$a]:ce[CONFIGURABLE$1$a],enumerable:ENUMERABLE$a in ae?ae[ENUMERABLE$a]:ce[ENUMERABLE$a],writable:!1})}return $defineProperty$a(k,ie,ae)}:$defineProperty$a:function v(k,ie,ae){if(anObject$b$5(k),ie=toPropertyKey$e(ie),anObject$b$5(ae),IE8_DOM_DEFINE$b)try{return $defineProperty$a(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$6$6("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$6$8=descriptors$a,definePropertyModule$4$5=objectDefineProperty$a,createPropertyDescriptor$1$a=createPropertyDescriptor$3$5,createNonEnumerableProperty$4$5=DESCRIPTORS$6$8?function(v,k,ie){return definePropertyModule$4$5.f(v,k,createPropertyDescriptor$1$a(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$a={exports:{}},DESCRIPTORS$5$a=descriptors$a,hasOwn$8$6=hasOwnProperty_1$a,FunctionPrototype$1$a=Function.prototype,getDescriptor$a=DESCRIPTORS$5$a&&Object.getOwnPropertyDescriptor,EXISTS$b=hasOwn$8$6(FunctionPrototype$1$a,"name"),PROPER$a=EXISTS$b&&function v(){}.name==="something",CONFIGURABLE$b=EXISTS$b&&(!DESCRIPTORS$5$a||DESCRIPTORS$5$a&&getDescriptor$a(FunctionPrototype$1$a,"name").configurable),functionName$a={EXISTS:EXISTS$b,PROPER:PROPER$a,CONFIGURABLE:CONFIGURABLE$b},uncurryThis$8$8=functionUncurryThis$a,isCallable$e$6=isCallable$k$4,store$1$a=sharedStore$a,functionToString$a=uncurryThis$8$8(Function.toString);isCallable$e$6(store$1$a.inspectSource)||(store$1$a.inspectSource=function(v){return functionToString$a(v)});var inspectSource$4$4=store$1$a.inspectSource,global$c$6=global$j$4,isCallable$d$6=isCallable$k$4,inspectSource$3$6=inspectSource$4$4,WeakMap$1$a=global$c$6.WeakMap,nativeWeakMap$a=isCallable$d$6(WeakMap$1$a)&&/native code/.test(inspectSource$3$6(WeakMap$1$a)),shared$1$a=shared$3$a.exports,uid$d=uid$2$a,keys$8=shared$1$a("keys"),sharedKey$3$5=function(v){return keys$8[v]||(keys$8[v]=uid$d(v))},hiddenKeys$4$5={},NATIVE_WEAK_MAP$a=nativeWeakMap$a,global$b$6=global$j$4,uncurryThis$7$8=functionUncurryThis$a,isObject$2$a=isObject$7$6,createNonEnumerableProperty$3$5=createNonEnumerableProperty$4$5,hasOwn$7$7=hasOwnProperty_1$a,shared$d=sharedStore$a,sharedKey$2$5=sharedKey$3$5,hiddenKeys$3$8=hiddenKeys$4$5,OBJECT_ALREADY_INITIALIZED$a="Object already initialized",TypeError$2$6=global$b$6.TypeError,WeakMap$c=global$b$6.WeakMap,set$1$6,get$b,has$a,enforce$a=function(v){return has$a(v)?get$b(v):set$1$6(v,{})},getterFor$a=function(v){return function(k){var ie;if(!isObject$2$a(k)||(ie=get$b(k)).type!==v)throw TypeError$2$6("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$a||shared$d.state?(store$d=shared$d.state||(shared$d.state=new WeakMap$c),wmget$a=uncurryThis$7$8(store$d.get),wmhas$a=uncurryThis$7$8(store$d.has),wmset$a=uncurryThis$7$8(store$d.set),set$1$6=function(v,k){if(wmhas$a(store$d,v))throw new TypeError$2$6(OBJECT_ALREADY_INITIALIZED$a);return k.facade=v,wmset$a(store$d,v,k),k},get$b=function(v){return wmget$a(store$d,v)||{}},has$a=function(v){return wmhas$a(store$d,v)}):(STATE$a=sharedKey$2$5("state"),hiddenKeys$3$8[STATE$a]=!0,set$1$6=function(v,k){if(hasOwn$7$7(v,STATE$a))throw new TypeError$2$6(OBJECT_ALREADY_INITIALIZED$a);return k.facade=v,createNonEnumerableProperty$3$5(v,STATE$a,k),k},get$b=function(v){return hasOwn$7$7(v,STATE$a)?v[STATE$a]:{}},has$a=function(v){return hasOwn$7$7(v,STATE$a)});var store$d,wmget$a,wmhas$a,wmset$a,STATE$a,internalState$a={set:set$1$6,get:get$b,has:has$a,enforce:enforce$a,getterFor:getterFor$a},fails$7$a=fails$e$5,isCallable$c$6=isCallable$k$4,hasOwn$6$8=hasOwnProperty_1$a,DESCRIPTORS$4$a=descriptors$a,CONFIGURABLE_FUNCTION_NAME$1$5=functionName$a.CONFIGURABLE,inspectSource$2$a=inspectSource$4$4,InternalStateModule$2$5=internalState$a,enforceInternalState$c=InternalStateModule$2$5.enforce,getInternalState$1$5=InternalStateModule$2$5.get,defineProperty$4$5=Object.defineProperty,CONFIGURABLE_LENGTH$a=DESCRIPTORS$4$a&&!fails$7$a(function(){return defineProperty$4$5(function(){},"length",{value:8}).length!==8}),TEMPLATE$a=String(String).split("String"),makeBuiltIn$1$a=makeBuiltIn$2$a.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$6$8(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$5&&v.name!==k)&&(DESCRIPTORS$4$a?defineProperty$4$5(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$a&&ie&&hasOwn$6$8(ie,"arity")&&v.length!==ie.arity&&defineProperty$4$5(v,"length",{value:ie.arity});try{ie&&hasOwn$6$8(ie,"constructor")&&ie.constructor?DESCRIPTORS$4$a&&defineProperty$4$5(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$c(v);return hasOwn$6$8(ae,"source")||(ae.source=TEMPLATE$a.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$a(function v(){return isCallable$c$6(this)&&getInternalState$1$5(this).source||inspectSource$2$a(this)},"toString");var isCallable$b$7=isCallable$k$4,definePropertyModule$3$6=objectDefineProperty$a,makeBuiltIn$c=makeBuiltIn$2$a.exports,defineGlobalProperty$1$a=defineGlobalProperty$3$8,defineBuiltIn$6$5=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$b$7(ie)&&makeBuiltIn$c(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$a(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$3$6.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$8={},ceil$8=Math.ceil,floor$b=Math.floor,mathTrunc$8=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$b:ceil$8)(ie)},trunc2$8=mathTrunc$8,toIntegerOrInfinity$2$8=function(v){var k=+v;return k!==k||k===0?0:trunc2$8(k)},toIntegerOrInfinity$1$8=toIntegerOrInfinity$2$8,max$9=Math.max,min$1$8=Math.min,toAbsoluteIndex$1$8=function(v,k){var ie=toIntegerOrInfinity$1$8(v);return ie<0?max$9(ie+k,0):min$1$8(ie,k)},toIntegerOrInfinity$d=toIntegerOrInfinity$2$8,min$9=Math.min,toLength$1$8=function(v){return v>0?min$9(toIntegerOrInfinity$d(v),9007199254740991):0},toLength$d=toLength$1$8,lengthOfArrayLike$2$6=function(v){return toLength$d(v.length)},toIndexedObject$3$8=toIndexedObject$5$5,toAbsoluteIndex$c=toAbsoluteIndex$1$8,lengthOfArrayLike$1$8=lengthOfArrayLike$2$6,createMethod$9=function(v){return function(k,ie,ae){var ce=toIndexedObject$3$8(k),fe=lengthOfArrayLike$1$8(ce),le=toAbsoluteIndex$c(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$8={includes:createMethod$9(!0),indexOf:createMethod$9(!1)},uncurryThis$6$a=functionUncurryThis$a,hasOwn$5$8=hasOwnProperty_1$a,toIndexedObject$2$8=toIndexedObject$5$5,indexOf$8=arrayIncludes$8.indexOf,hiddenKeys$2$8=hiddenKeys$4$5,push$9=uncurryThis$6$a([].push),objectKeysInternal$8=function(v,k){var ie=toIndexedObject$2$8(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$5$8(hiddenKeys$2$8,fe)&&hasOwn$5$8(ie,fe)&&push$9(ce,fe);for(;k.length>ae;)hasOwn$5$8(ie,fe=k[ae++])&&(~indexOf$8(ce,fe)||push$9(ce,fe));return ce},enumBugKeys$3$5=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$7=objectKeysInternal$8,enumBugKeys$2$7=enumBugKeys$3$5,hiddenKeys$1$8=enumBugKeys$2$7.concat("length","prototype");objectGetOwnPropertyNames$8.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$7(k,hiddenKeys$1$8)};var objectGetOwnPropertySymbols$8={};objectGetOwnPropertySymbols$8.f=Object.getOwnPropertySymbols;var getBuiltIn$5$6=getBuiltIn$8$4,uncurryThis$5$a=functionUncurryThis$a,getOwnPropertyNamesModule$8=objectGetOwnPropertyNames$8,getOwnPropertySymbolsModule$1$7=objectGetOwnPropertySymbols$8,anObject$a$5=anObject$c$5,concat$1$7=uncurryThis$5$a([].concat),ownKeys$1$8=getBuiltIn$5$6("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$8.f(anObject$a$5(k)),ae=getOwnPropertySymbolsModule$1$7.f;return ae?concat$1$7(ie,ae(k)):ie},hasOwn$4$a=hasOwnProperty_1$a,ownKeys2$8=ownKeys$1$8,getOwnPropertyDescriptorModule$9=objectGetOwnPropertyDescriptor$8,definePropertyModule$2$8=objectDefineProperty$a,copyConstructorProperties$1$8=function(v,k,ie){for(var ae=ownKeys2$8(k),ce=definePropertyModule$2$8.f,fe=getOwnPropertyDescriptorModule$9.f,le=0;lefe;)for(var pe=IndexedObject$a(arguments[fe++]),ye=le?concat$a(objectKeys$1$7(pe),le(pe)):objectKeys$1$7(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$3$a||call$a$6(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$7,$$7$4=_export$8,assign2$7=objectAssign$7;$$7$4({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$7},{assign:assign2$7});var wellKnownSymbol$c$5=wellKnownSymbol$e$5,TO_STRING_TAG$3$5=wellKnownSymbol$c$5("toStringTag"),test$9={};test$9[TO_STRING_TAG$3$5]="z";var toStringTagSupport$9=String(test$9)==="[object z]",TO_STRING_TAG_SUPPORT$9=toStringTagSupport$9,isCallable$9$a=isCallable$k$4,classofRaw$b=classofRaw$1$9,wellKnownSymbol$b$5=wellKnownSymbol$e$5,TO_STRING_TAG$2$6=wellKnownSymbol$b$5("toStringTag"),$Object$1$a=Object,CORRECT_ARGUMENTS$9=classofRaw$b(function(){return arguments}())=="Arguments",tryGet$9=function(v,k){try{return v[k]}catch{}},classof$4$6=TO_STRING_TAG_SUPPORT$9?classofRaw$b:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$9(k=$Object$1$a(v),TO_STRING_TAG$2$6))=="string"?ie:CORRECT_ARGUMENTS$9?classofRaw$b(k):(ae=classofRaw$b(k))=="Object"&&isCallable$9$a(k.callee)?"Arguments":ae},classof$3$6=classof$4$6,$String$1$a=String,toString2$8=function(v){if(classof$3$6(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$1$a(v)},anObject$9$5=anObject$c$5,regexpFlags$8=function(){var v=anObject$9$5(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$9$6=functionCall$a,hasOwn$3$a=hasOwnProperty_1$a,isPrototypeOf$2$6=objectIsPrototypeOf$a,regExpFlags$8=regexpFlags$8,RegExpPrototype$1$8=RegExp.prototype,regexpGetFlags$8=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$8)&&!hasOwn$3$a(v,"flags")&&isPrototypeOf$2$6(RegExpPrototype$1$8,v)?call$9$6(regExpFlags$8,v):k},PROPER_FUNCTION_NAME$1$5=functionName$a.PROPER,defineBuiltIn$4$5=defineBuiltIn$6$5,anObject$8$6=anObject$c$5,$toString$8=toString2$8,fails$4$a=fails$e$5,getRegExpFlags$8=regexpGetFlags$8,TO_STRING$8="toString",RegExpPrototype$9=RegExp.prototype,n$ToString$8=RegExpPrototype$9[TO_STRING$8],NOT_GENERIC$8=fails$4$a(function(){return n$ToString$8.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$8=PROPER_FUNCTION_NAME$1$5&&n$ToString$8.name!=TO_STRING$8;(NOT_GENERIC$8||INCORRECT_NAME$8)&&defineBuiltIn$4$5(RegExp.prototype,TO_STRING$8,function(){var k=anObject$8$6(this),ie=$toString$8(k.source),ae=$toString$8(getRegExpFlags$8(k));return"/"+ie+"/"+ae},{unsafe:!0});var objectDefineProperties$5={},DESCRIPTORS$2$a=descriptors$a,V8_PROTOTYPE_DEFINE_BUG$b=v8PrototypeDefineBug$a,definePropertyModule$1$a=objectDefineProperty$a,anObject$7$6=anObject$c$5,toIndexedObject$1$8=toIndexedObject$5$5,objectKeys$9=objectKeys$2$5;objectDefineProperties$5.f=DESCRIPTORS$2$a&&!V8_PROTOTYPE_DEFINE_BUG$b?Object.defineProperties:function v(k,ie){anObject$7$6(k);for(var ae=toIndexedObject$1$8(ie),ce=objectKeys$9(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$1$a.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$4$6=getBuiltIn$8$4,html$2$4=getBuiltIn$4$6("document","documentElement"),anObject$6$6=anObject$c$5,definePropertiesModule$5=objectDefineProperties$5,enumBugKeys$b=enumBugKeys$3$5,hiddenKeys$c=hiddenKeys$4$5,html$1$6=html$2$4,documentCreateElement$1$5=documentCreateElement$2$5,sharedKey$1$a=sharedKey$3$5,GT$5=">",LT$5="<",PROTOTYPE$6="prototype",SCRIPT$5="script",IE_PROTO$1$5=sharedKey$1$a("IE_PROTO"),EmptyConstructor$5=function(){},scriptTag$5=function(v){return LT$5+SCRIPT$5+GT$5+v+LT$5+"/"+SCRIPT$5+GT$5},NullProtoObjectViaActiveX$5=function(v){v.write(scriptTag$5("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$5=function(){var v=documentCreateElement$1$5("iframe"),k="java"+SCRIPT$5+":",ie;return v.style.display="none",html$1$6.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$5("document.F=Object")),ie.close(),ie.F},activeXDocument$5,NullProtoObject$5=function(){try{activeXDocument$5=new ActiveXObject("htmlfile")}catch{}NullProtoObject$5=typeof document<"u"?document.domain&&activeXDocument$5?NullProtoObjectViaActiveX$5(activeXDocument$5):NullProtoObjectViaIFrame$5():NullProtoObjectViaActiveX$5(activeXDocument$5);for(var v=enumBugKeys$b.length;v--;)delete NullProtoObject$5[PROTOTYPE$6][enumBugKeys$b[v]];return NullProtoObject$5()};hiddenKeys$c[IE_PROTO$1$5]=!0;var objectCreate$5=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$5[PROTOTYPE$6]=anObject$6$6(k),ae=new EmptyConstructor$5,EmptyConstructor$5[PROTOTYPE$6]=null,ae[IE_PROTO$1$5]=k):ae=NullProtoObject$5(),ie===void 0?ae:definePropertiesModule$5.f(ae,ie)},wellKnownSymbol$a$6=wellKnownSymbol$e$5,create$1$5=objectCreate$5,defineProperty$2$8=objectDefineProperty$a.f,UNSCOPABLES$5=wellKnownSymbol$a$6("unscopables"),ArrayPrototype$1$5=Array.prototype;ArrayPrototype$1$5[UNSCOPABLES$5]==null&&defineProperty$2$8(ArrayPrototype$1$5,UNSCOPABLES$5,{configurable:!0,value:create$1$5(null)});var addToUnscopables$1$5=function(v){ArrayPrototype$1$5[UNSCOPABLES$5][v]=!0},iterators$6={},fails$3$a=fails$e$5,correctPrototypeGetter$5=!fails$3$a(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype}),hasOwn$2$a=hasOwnProperty_1$a,isCallable$8$a=isCallable$k$4,toObject$g=toObject$3$5,sharedKey$c=sharedKey$3$5,CORRECT_PROTOTYPE_GETTER$5=correctPrototypeGetter$5,IE_PROTO$6=sharedKey$c("IE_PROTO"),$Object$e=Object,ObjectPrototype$7=$Object$e.prototype,objectGetPrototypeOf$5=CORRECT_PROTOTYPE_GETTER$5?$Object$e.getPrototypeOf:function(v){var k=toObject$g(v);if(hasOwn$2$a(k,IE_PROTO$6))return k[IE_PROTO$6];var ie=k.constructor;return isCallable$8$a(ie)&&k instanceof ie?ie.prototype:k instanceof $Object$e?ObjectPrototype$7:null},fails$2$a=fails$e$5,isCallable$7$a=isCallable$k$4,getPrototypeOf$1$5=objectGetPrototypeOf$5,defineBuiltIn$3$6=defineBuiltIn$6$5,wellKnownSymbol$9$6=wellKnownSymbol$e$5,ITERATOR$5$5=wellKnownSymbol$9$6("iterator"),BUGGY_SAFARI_ITERATORS$1$5=!1,IteratorPrototype$2$5,PrototypeOfArrayIteratorPrototype$5,arrayIterator$5;[].keys&&(arrayIterator$5=[].keys(),"next"in arrayIterator$5?(PrototypeOfArrayIteratorPrototype$5=getPrototypeOf$1$5(getPrototypeOf$1$5(arrayIterator$5)),PrototypeOfArrayIteratorPrototype$5!==Object.prototype&&(IteratorPrototype$2$5=PrototypeOfArrayIteratorPrototype$5)):BUGGY_SAFARI_ITERATORS$1$5=!0);var NEW_ITERATOR_PROTOTYPE$5=IteratorPrototype$2$5==null||fails$2$a(function(){var v={};return IteratorPrototype$2$5[ITERATOR$5$5].call(v)!==v});NEW_ITERATOR_PROTOTYPE$5&&(IteratorPrototype$2$5={});isCallable$7$a(IteratorPrototype$2$5[ITERATOR$5$5])||defineBuiltIn$3$6(IteratorPrototype$2$5,ITERATOR$5$5,function(){return this});var iteratorsCore$5={IteratorPrototype:IteratorPrototype$2$5,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1$5},defineProperty$1$a=objectDefineProperty$a.f,hasOwn$1$a=hasOwnProperty_1$a,wellKnownSymbol$8$6=wellKnownSymbol$e$5,TO_STRING_TAG$1$9=wellKnownSymbol$8$6("toStringTag"),setToStringTag$3$5=function(v,k,ie){v&&!ie&&(v=v.prototype),v&&!hasOwn$1$a(v,TO_STRING_TAG$1$9)&&defineProperty$1$a(v,TO_STRING_TAG$1$9,{configurable:!0,value:k})},IteratorPrototype$1$5=iteratorsCore$5.IteratorPrototype,create2$4=objectCreate$5,createPropertyDescriptor$f=createPropertyDescriptor$3$5,setToStringTag$2$5=setToStringTag$3$5,Iterators$4$5=iterators$6,returnThis$1$5=function(){return this},createIteratorConstructor$1$5=function(v,k,ie,ae){var ce=k+" Iterator";return v.prototype=create2$4(IteratorPrototype$1$5,{next:createPropertyDescriptor$f(+!ae,ie)}),setToStringTag$2$5(v,ce,!1),Iterators$4$5[ce]=returnThis$1$5,v},isCallable$6$a=isCallable$k$4,$String$d=String,$TypeError$5$a=TypeError,aPossiblePrototype$1$6=function(v){if(typeof v=="object"||isCallable$6$a(v))return v;throw $TypeError$5$a("Can't set "+$String$d(v)+" as a prototype")},uncurryThis$3$a=functionUncurryThis$a,anObject$5$6=anObject$c$5,aPossiblePrototype$7=aPossiblePrototype$1$6,objectSetPrototypeOf$6=Object.setPrototypeOf||("__proto__"in{}?function(){var v=!1,k={},ie;try{ie=uncurryThis$3$a(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),ie(k,[]),v=k instanceof Array}catch{}return function(ce,fe){return anObject$5$6(ce),aPossiblePrototype$7(fe),v?ie(ce,fe):ce.__proto__=fe,ce}}():void 0),$$6$4=_export$8,call$8$6=functionCall$a,FunctionName$6=functionName$a,isCallable$5$a=isCallable$k$4,createIteratorConstructor$6=createIteratorConstructor$1$5,getPrototypeOf$8=objectGetPrototypeOf$5,setPrototypeOf$1$5=objectSetPrototypeOf$6,setToStringTag$1$6=setToStringTag$3$5,createNonEnumerableProperty$1$a=createNonEnumerableProperty$4$5,defineBuiltIn$2$7=defineBuiltIn$6$5,wellKnownSymbol$7$6=wellKnownSymbol$e$5,Iterators$3$5=iterators$6,IteratorsCore$5=iteratorsCore$5,PROPER_FUNCTION_NAME$a=FunctionName$6.PROPER,CONFIGURABLE_FUNCTION_NAME$c=FunctionName$6.CONFIGURABLE,IteratorPrototype$7=IteratorsCore$5.IteratorPrototype,BUGGY_SAFARI_ITERATORS$6=IteratorsCore$5.BUGGY_SAFARI_ITERATORS,ITERATOR$4$5=wellKnownSymbol$7$6("iterator"),KEYS$5="keys",VALUES$5="values",ENTRIES$5="entries",returnThis$6=function(){return this},defineIterator$1$5=function(v,k,ie,ae,ce,fe,le){createIteratorConstructor$6(ie,k,ae);var ve=function(ur){if(ur===ce&&cr)return cr;if(!BUGGY_SAFARI_ITERATORS$6&&ur in me)return me[ur];switch(ur){case KEYS$5:return function(){return new ie(this,ur)};case VALUES$5:return function(){return new ie(this,ur)};case ENTRIES$5:return function(){return new ie(this,ur)}}return function(){return new ie(this)}},pe=k+" Iterator",ye=!1,me=v.prototype,Ee=me[ITERATOR$4$5]||me["@@iterator"]||ce&&me[ce],cr=!BUGGY_SAFARI_ITERATORS$6&&Ee||ve(ce),Br=k=="Array"&&me.entries||Ee,$r,Pr,Or;if(Br&&($r=getPrototypeOf$8(Br.call(new v)),$r!==Object.prototype&&$r.next&&(getPrototypeOf$8($r)!==IteratorPrototype$7&&(setPrototypeOf$1$5?setPrototypeOf$1$5($r,IteratorPrototype$7):isCallable$5$a($r[ITERATOR$4$5])||defineBuiltIn$2$7($r,ITERATOR$4$5,returnThis$6)),setToStringTag$1$6($r,pe,!0))),PROPER_FUNCTION_NAME$a&&ce==VALUES$5&&Ee&&Ee.name!==VALUES$5&&(CONFIGURABLE_FUNCTION_NAME$c?createNonEnumerableProperty$1$a(me,"name",VALUES$5):(ye=!0,cr=function(){return call$8$6(Ee,this)})),ce)if(Pr={values:ve(VALUES$5),keys:fe?cr:ve(KEYS$5),entries:ve(ENTRIES$5)},le)for(Or in Pr)(BUGGY_SAFARI_ITERATORS$6||ye||!(Or in me))&&defineBuiltIn$2$7(me,Or,Pr[Or]);else $$6$4({target:k,proto:!0,forced:BUGGY_SAFARI_ITERATORS$6||ye},Pr);return me[ITERATOR$4$5]!==cr&&defineBuiltIn$2$7(me,ITERATOR$4$5,cr,{name:ce}),Iterators$3$5[k]=cr,Pr},toIndexedObject$e=toIndexedObject$5$5,addToUnscopables$6=addToUnscopables$1$5,Iterators$2$5=iterators$6,InternalStateModule$1$6=internalState$a,defineProperty3$9=objectDefineProperty$a.f,defineIterator$6=defineIterator$1$5,DESCRIPTORS$1$a=descriptors$a,ARRAY_ITERATOR$5="Array Iterator",setInternalState$1$5=InternalStateModule$1$6.set,getInternalState$e=InternalStateModule$1$6.getterFor(ARRAY_ITERATOR$5),es_array_iterator$4=defineIterator$6(Array,"Array",function(v,k){setInternalState$1$5(this,{type:ARRAY_ITERATOR$5,target:toIndexedObject$e(v),index:0,kind:k})},function(){var v=getInternalState$e(this),k=v.target,ie=v.kind,ae=v.index++;return!k||ae>=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$5=Iterators$2$5.Arguments=Iterators$2$5.Array;addToUnscopables$6("keys");addToUnscopables$6("values");addToUnscopables$6("entries");if(DESCRIPTORS$1$a&&values$5.name!=="values")try{defineProperty3$9(values$5,"name",{value:"values"})}catch(v){}var classof$2$7=classofRaw$1$9,global$9$a=global$j$4,engineIsNode$4=classof$2$7(global$9$a.process)=="process",getBuiltIn$3$8=getBuiltIn$8$4,definePropertyModule$g=objectDefineProperty$a,wellKnownSymbol$6$6=wellKnownSymbol$e$5,DESCRIPTORS$n=descriptors$a,SPECIES$2$6=wellKnownSymbol$6$6("species"),setSpecies$1$6=function(v){var k=getBuiltIn$3$8(v),ie=definePropertyModule$g.f;DESCRIPTORS$n&&k&&!k[SPECIES$2$6]&&ie(k,SPECIES$2$6,{configurable:!0,get:function(){return this}})},isPrototypeOf$1$9=objectIsPrototypeOf$a,$TypeError$4$a=TypeError,anInstance$1$6=function(v,k){if(isPrototypeOf$1$9(k,v))return v;throw $TypeError$4$a("Incorrect invocation")},uncurryThis$2$a=functionUncurryThis$a,fails$1$a=fails$e$5,isCallable$4$a=isCallable$k$4,classof$1$9=classof$4$6,getBuiltIn$2$a=getBuiltIn$8$4,inspectSource$1$a=inspectSource$4$4,noop$6=function(){},empty$5=[],construct$6=getBuiltIn$2$a("Reflect","construct"),constructorRegExp$6=/^\s*(?:class|function)\b/,exec$7=uncurryThis$2$a(constructorRegExp$6.exec),INCORRECT_TO_STRING$6=!constructorRegExp$6.exec(noop$6),isConstructorModern$6=function v(k){if(!isCallable$4$a(k))return!1;try{return construct$6(noop$6,empty$5,k),!0}catch{return!1}},isConstructorLegacy$6=function v(k){if(!isCallable$4$a(k))return!1;switch(classof$1$9(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$6||!!exec$7(constructorRegExp$6,inspectSource$1$a(k))}catch{return!0}};isConstructorLegacy$6.sham=!0;var isConstructor$1$6=!construct$6||fails$1$a(function(){var v;return isConstructorModern$6(isConstructorModern$6.call)||!isConstructorModern$6(Object)||!isConstructorModern$6(function(){v=!0})||v})?isConstructorLegacy$6:isConstructorModern$6,isConstructor3$6=isConstructor$1$6,tryToString$2$6=tryToString$4$6,$TypeError$3$a=TypeError,aConstructor$1$6=function(v){if(isConstructor3$6(v))return v;throw $TypeError$3$a(tryToString$2$6(v)+" is not a constructor")},anObject$4$7=anObject$c$5,aConstructor$8=aConstructor$1$6,wellKnownSymbol$5$6=wellKnownSymbol$e$5,SPECIES$1$6=wellKnownSymbol$5$6("species"),speciesConstructor$1$6=function(v,k){var ie=anObject$4$7(v).constructor,ae;return ie===void 0||(ae=anObject$4$7(ie)[SPECIES$1$6])==null?k:aConstructor$8(ae)},NATIVE_BIND$1$a=functionBindNative$a,FunctionPrototype$c=Function.prototype,apply$1$6=FunctionPrototype$c.apply,call$7$6=FunctionPrototype$c.call,functionApply$6=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$1$a?call$7$6.bind(apply$1$6):function(){return call$7$6.apply(apply$1$6,arguments)}),uncurryThis$1$a=functionUncurryThis$a,aCallable$5$4=aCallable$7$4,NATIVE_BIND$d=functionBindNative$a,bind$4$4=uncurryThis$1$a(uncurryThis$1$a.bind),functionBindContext$6=function(v,k){return aCallable$5$4(v),k===void 0?v:NATIVE_BIND$d?bind$4$4(v,k):function(){return v.apply(k,arguments)}},uncurryThis$u=functionUncurryThis$a,arraySlice$1$6=uncurryThis$u([].slice),$TypeError$2$a=TypeError,validateArgumentsLength$1$4=function(v,k){if(v=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3$4(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$8]=ae,SUBCLASSING$4=ie.then(function(){})instanceof ae,SUBCLASSING$4?!k&&IS_BROWSER$4&&!NATIVE_PROMISE_REJECTION_EVENT$1$4:!0}),promiseConstructorDetection$4={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$4,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$4,SUBCLASSING:SUBCLASSING$4},newPromiseCapability$2$4={},aCallable$4$6=aCallable$7$4,PromiseCapability$4=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$6(k),this.reject=aCallable$4$6(ie)};newPromiseCapability$2$4.f=function(v){return new PromiseCapability$4(v)};var $$5$4=_export$8,IS_NODE$6=engineIsNode$4,global$2$a=global$j$4,call$6$7=functionCall$a,defineBuiltIn$1$a=defineBuiltIn$6$5,setPrototypeOf$a=objectSetPrototypeOf$6,setToStringTag$9=setToStringTag$3$5,setSpecies$7=setSpecies$1$6,aCallable$3$6=aCallable$7$4,isCallable$1$a=isCallable$k$4,isObject$1$a=isObject$7$6,anInstance$8=anInstance$1$6,speciesConstructor$7=speciesConstructor$1$6,task$5=task$1$4.set,microtask$5=microtask$1$4,hostReportErrors$5=hostReportErrors$1$4,perform$2$4=perform$3$4,Queue$5=queue$5,InternalStateModule$e=internalState$a,NativePromiseConstructor$2$4=promiseNativeConstructor$4,PromiseConstructorDetection$4=promiseConstructorDetection$4,newPromiseCapabilityModule$3$4=newPromiseCapability$2$4,PROMISE$4="Promise",FORCED_PROMISE_CONSTRUCTOR$4$4=PromiseConstructorDetection$4.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$5=PromiseConstructorDetection$4.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$4=PromiseConstructorDetection$4.SUBCLASSING,getInternalPromiseState$4=InternalStateModule$e.getterFor(PROMISE$4),setInternalState$8=InternalStateModule$e.set,NativePromisePrototype$1$4=NativePromiseConstructor$2$4&&NativePromiseConstructor$2$4.prototype,PromiseConstructor$4=NativePromiseConstructor$2$4,PromisePrototype$4=NativePromisePrototype$1$4,TypeError$1$a=global$2$a.TypeError,document$1$6=global$2$a.document,process$b=global$2$a.process,newPromiseCapability$1$4=newPromiseCapabilityModule$3$4.f,newGenericPromiseCapability$4=newPromiseCapability$1$4,DISPATCH_EVENT$4=!!(document$1$6&&document$1$6.createEvent&&global$2$a.dispatchEvent),UNHANDLED_REJECTION$4="unhandledrejection",REJECTION_HANDLED$4="rejectionhandled",PENDING$4=0,FULFILLED$4=1,REJECTED$4=2,HANDLED$4=1,UNHANDLED$4=2,Internal$4,OwnPromiseCapability$4,PromiseWrapper$4,nativeThen$4,isThenable$4=function(v){var k;return isObject$1$a(v)&&isCallable$1$a(k=v.then)?k:!1},callReaction$4=function(v,k){var ie=k.value,ae=k.state==FULFILLED$4,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$4&&onHandleUnhandled$4(k),k.rejection=HANDLED$4),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$a("Promise-chain cycle")):(ye=isThenable$4(pe))?call$6$7(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$5=function(v,k){v.notified||(v.notified=!0,microtask$5(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$4(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$4(v)}))},dispatchEvent$4=function(v,k,ie){var ae,ce;DISPATCH_EVENT$4?(ae=document$1$6.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$2$a.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$5&&(ce=global$2$a["on"+v])?ce(ae):v===UNHANDLED_REJECTION$4&&hostReportErrors$5("Unhandled promise rejection",ie)},onUnhandled$4=function(v){call$6$7(task$5,global$2$a,function(){var k=v.facade,ie=v.value,ae=isUnhandled$4(v),ce;if(ae&&(ce=perform$2$4(function(){IS_NODE$6?process$b.emit("unhandledRejection",ie,k):dispatchEvent$4(UNHANDLED_REJECTION$4,k,ie)}),v.rejection=IS_NODE$6||isUnhandled$4(v)?UNHANDLED$4:HANDLED$4,ce.error))throw ce.value})},isUnhandled$4=function(v){return v.rejection!==HANDLED$4&&!v.parent},onHandleUnhandled$4=function(v){call$6$7(task$5,global$2$a,function(){var k=v.facade;IS_NODE$6?process$b.emit("rejectionHandled",k):dispatchEvent$4(REJECTION_HANDLED$4,k,v.value)})},bind$1$6=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$4=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$4,notify$5(v,!0))},internalResolve$4=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$a("Promise can't be resolved itself");var ae=isThenable$4(k);ae?microtask$5(function(){var ce={done:!1};try{call$6$7(ae,k,bind$1$6(internalResolve$4,ce,v),bind$1$6(internalReject$4,ce,v))}catch(fe){internalReject$4(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$4,notify$5(v,!1))}catch(ce){internalReject$4({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$4&&(PromiseConstructor$4=function(k){anInstance$8(this,PromisePrototype$4),aCallable$3$6(k),call$6$7(Internal$4,this);var ie=getInternalPromiseState$4(this);try{k(bind$1$6(internalResolve$4,ie),bind$1$6(internalReject$4,ie))}catch(ae){internalReject$4(ie,ae)}},PromisePrototype$4=PromiseConstructor$4.prototype,Internal$4=function(k){setInternalState$8(this,{type:PROMISE$4,done:!1,notified:!1,parent:!1,reactions:new Queue$5,rejection:!1,state:PENDING$4,value:void 0})},Internal$4.prototype=defineBuiltIn$1$a(PromisePrototype$4,"then",function(k,ie){var ae=getInternalPromiseState$4(this),ce=newPromiseCapability$1$4(speciesConstructor$7(this,PromiseConstructor$4));return ae.parent=!0,ce.ok=isCallable$1$a(k)?k:!0,ce.fail=isCallable$1$a(ie)&&ie,ce.domain=IS_NODE$6?process$b.domain:void 0,ae.state==PENDING$4?ae.reactions.add(ce):microtask$5(function(){callReaction$4(ce,ae)}),ce.promise}),OwnPromiseCapability$4=function(){var v=new Internal$4,k=getInternalPromiseState$4(v);this.promise=v,this.resolve=bind$1$6(internalResolve$4,k),this.reject=bind$1$6(internalReject$4,k)},newPromiseCapabilityModule$3$4.f=newPromiseCapability$1$4=function(v){return v===PromiseConstructor$4||v===PromiseWrapper$4?new OwnPromiseCapability$4(v):newGenericPromiseCapability$4(v)},isCallable$1$a(NativePromiseConstructor$2$4)&&NativePromisePrototype$1$4!==Object.prototype)){nativeThen$4=NativePromisePrototype$1$4.then,NATIVE_PROMISE_SUBCLASSING$4||defineBuiltIn$1$a(NativePromisePrototype$1$4,"then",function(k,ie){var ae=this;return new PromiseConstructor$4(function(ce,fe){call$6$7(nativeThen$4,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1$4.constructor}catch{}setPrototypeOf$a&&setPrototypeOf$a(NativePromisePrototype$1$4,PromisePrototype$4)}$$5$4({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$4},{Promise:PromiseConstructor$4});setToStringTag$9(PromiseConstructor$4,PROMISE$4,!1);setSpecies$7(PROMISE$4);var wellKnownSymbol$3$9=wellKnownSymbol$e$5,Iterators$1$6=iterators$6,ITERATOR$3$5=wellKnownSymbol$3$9("iterator"),ArrayPrototype$7=Array.prototype,isArrayIteratorMethod$1$6=function(v){return v!==void 0&&(Iterators$1$6.Array===v||ArrayPrototype$7[ITERATOR$3$5]===v)},classof$i=classof$4$6,getMethod$1$a=getMethod$3$5,Iterators$a=iterators$6,wellKnownSymbol$2$9=wellKnownSymbol$e$5,ITERATOR$2$6=wellKnownSymbol$2$9("iterator"),getIteratorMethod$2$6=function(v){if(v!=null)return getMethod$1$a(v,ITERATOR$2$6)||getMethod$1$a(v,"@@iterator")||Iterators$a[classof$i(v)]},call$5$8=functionCall$a,aCallable$2$6=aCallable$7$4,anObject$3$9=anObject$c$5,tryToString$1$a=tryToString$4$6,getIteratorMethod$1$6=getIteratorMethod$2$6,$TypeError$1$a=TypeError,getIterator$1$6=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$6(v):k;if(aCallable$2$6(ie))return anObject$3$9(call$5$8(ie,v));throw $TypeError$1$a(tryToString$1$a(v)+" is not iterable")},call$4$a=functionCall$a,anObject$2$a=anObject$c$5,getMethod$d=getMethod$3$5,iteratorClose$1$4=function(v,k,ie){var ae,ce;anObject$2$a(v);try{if(ae=getMethod$d(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$4$a(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$2$a(ae),ie},bind$f=functionBindContext$6,call$3$a=functionCall$a,anObject$1$a=anObject$c$5,tryToString$e=tryToString$4$6,isArrayIteratorMethod$7=isArrayIteratorMethod$1$6,lengthOfArrayLike$e=lengthOfArrayLike$2$6,isPrototypeOf$e=objectIsPrototypeOf$a,getIterator$7=getIterator$1$6,getIteratorMethod$8=getIteratorMethod$2$6,iteratorClose$5=iteratorClose$1$4,$TypeError$l=TypeError,Result$4=function(v,k){this.stopped=v,this.result=k},ResultPrototype$4=Result$4.prototype,iterate$2$4=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$f(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$5(pe,"normal",ur),new Result$4(!0,ur)},Or=function(ur){return ce?(anObject$1$a(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$8(v),!ye)throw $TypeError$l(tryToString$e(v)+" is not iterable");if(isArrayIteratorMethod$7(ye)){for(me=0,Ee=lengthOfArrayLike$e(v);Ee>me;me++)if(cr=Or(v[me]),cr&&isPrototypeOf$e(ResultPrototype$4,cr))return cr;return new Result$4(!1)}pe=getIterator$7(v,ye)}for(Br=pe.next;!($r=call$3$a(Br,pe)).done;){try{cr=Or($r.value)}catch(ur){iteratorClose$5(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$e(ResultPrototype$4,cr))return cr}return new Result$4(!1)},wellKnownSymbol$1$a=wellKnownSymbol$e$5,ITERATOR$1$6=wellKnownSymbol$1$a("iterator"),SAFE_CLOSING$6=!1;try{called$6=0,iteratorWithReturn$6={next:function(){return{done:!!called$6++}},return:function(){SAFE_CLOSING$6=!0}},iteratorWithReturn$6[ITERATOR$1$6]=function(){return this},Array.from(iteratorWithReturn$6,function(){throw 2})}catch(v){}var called$6,iteratorWithReturn$6,checkCorrectnessOfIteration$1$6=function(v,k){if(!k&&!SAFE_CLOSING$6)return!1;var ie=!1;try{var ae={};ae[ITERATOR$1$6]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1$4=promiseNativeConstructor$4,checkCorrectnessOfIteration$7=checkCorrectnessOfIteration$1$6,FORCED_PROMISE_CONSTRUCTOR$3$4=promiseConstructorDetection$4.CONSTRUCTOR,promiseStaticsIncorrectIteration$4=FORCED_PROMISE_CONSTRUCTOR$3$4||!checkCorrectnessOfIteration$7(function(v){NativePromiseConstructor$1$4.all(v).then(void 0,function(){})}),$$4$5=_export$8,call$2$a=functionCall$a,aCallable$1$a=aCallable$7$4,newPromiseCapabilityModule$2$4=newPromiseCapability$2$4,perform$1$4=perform$3$4,iterate$1$4=iterate$2$4,PROMISE_STATICS_INCORRECT_ITERATION$1$4=promiseStaticsIncorrectIteration$4;$$4$5({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$4},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$4.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$4(function(){var ve=aCallable$1$a(ie.resolve),pe=[],ye=0,me=1;iterate$1$4(k,function(Ee){var cr=ye++,Br=!1;me++,call$2$a(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$3$6=_export$8,FORCED_PROMISE_CONSTRUCTOR$2$4=promiseConstructorDetection$4.CONSTRUCTOR,NativePromiseConstructor$7=promiseNativeConstructor$4,getBuiltIn$1$a=getBuiltIn$8$4,isCallable$s=isCallable$k$4,defineBuiltIn$g=defineBuiltIn$6$5,NativePromisePrototype$5=NativePromiseConstructor$7&&NativePromiseConstructor$7.prototype;$$3$6({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$4,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$s(NativePromiseConstructor$7)&&(method$4=getBuiltIn$1$a("Promise").prototype.catch,NativePromisePrototype$5.catch!==method$4&&defineBuiltIn$g(NativePromisePrototype$5,"catch",method$4,{unsafe:!0}));var method$4,$$2$6=_export$8,call$1$a=functionCall$a,aCallable$h=aCallable$7$4,newPromiseCapabilityModule$1$4=newPromiseCapability$2$4,perform$7=perform$3$4,iterate$6=iterate$2$4,PROMISE_STATICS_INCORRECT_ITERATION$5=promiseStaticsIncorrectIteration$4;$$2$6({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$5},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$4.f(ie),ce=ae.reject,fe=perform$7(function(){var le=aCallable$h(ie.resolve);iterate$6(k,function(ve){call$1$a(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$1$6=_export$8,call$o=functionCall$a,newPromiseCapabilityModule$7=newPromiseCapability$2$4,FORCED_PROMISE_CONSTRUCTOR$1$4=promiseConstructorDetection$4.CONSTRUCTOR;$$1$6({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$4},{reject:function v(k){var ie=newPromiseCapabilityModule$7.f(this);return call$o(ie.reject,void 0,k),ie.promise}});var anObject$k=anObject$c$5,isObject$l=isObject$7$6,newPromiseCapability$6=newPromiseCapability$2$4,promiseResolve$1$4=function(v,k){if(anObject$k(v),isObject$l(k)&&k.constructor===v)return k;var ie=newPromiseCapability$6.f(v),ae=ie.resolve;return ae(k),ie.promise},$$f=_export$8,getBuiltIn$i=getBuiltIn$8$4,FORCED_PROMISE_CONSTRUCTOR$9=promiseConstructorDetection$4.CONSTRUCTOR,promiseResolve$5=promiseResolve$1$4;getBuiltIn$i("Promise");$$f({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$9},{resolve:function v(k){return promiseResolve$5(this,k)}});var domIterables$4={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$b=documentCreateElement$2$5,classList$4=documentCreateElement$b("span").classList,DOMTokenListPrototype$1$4=classList$4&&classList$4.constructor&&classList$4.constructor.prototype,domTokenListPrototype$4=DOMTokenListPrototype$1$4===Object.prototype?void 0:DOMTokenListPrototype$1$4,global$1$a=global$j$4,DOMIterables$4=domIterables$4,DOMTokenListPrototype$5=domTokenListPrototype$4,ArrayIteratorMethods$4=es_array_iterator$4,createNonEnumerableProperty$g=createNonEnumerableProperty$4$5,wellKnownSymbol$o=wellKnownSymbol$e$5,ITERATOR$a=wellKnownSymbol$o("iterator"),TO_STRING_TAG$c=wellKnownSymbol$o("toStringTag"),ArrayValues$4=ArrayIteratorMethods$4.values,handlePrototype$4=function(v,k){if(v){if(v[ITERATOR$a]!==ArrayValues$4)try{createNonEnumerableProperty$g(v,ITERATOR$a,ArrayValues$4)}catch{v[ITERATOR$a]=ArrayValues$4}if(v[TO_STRING_TAG$c]||createNonEnumerableProperty$g(v,TO_STRING_TAG$c,k),DOMIterables$4[k]){for(var ie in ArrayIteratorMethods$4)if(v[ie]!==ArrayIteratorMethods$4[ie])try{createNonEnumerableProperty$g(v,ie,ArrayIteratorMethods$4[ie])}catch{v[ie]=ArrayIteratorMethods$4[ie]}}}};for(COLLECTION_NAME$4 in DOMIterables$4)handlePrototype$4(global$1$a[COLLECTION_NAME$4]&&global$1$a[COLLECTION_NAME$4].prototype,COLLECTION_NAME$4);var COLLECTION_NAME$4;handlePrototype$4(DOMTokenListPrototype$5,"DOMTokenList");function __awaiter$c(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$b="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZsAAAGbCAMAAAAlRs3KAAAC/VBMVEUAAAB1gdddWs6cq+JsadRdXalLTJhFRXtTU415iNhOTo5+pe41NXxjYM8qKmscHGuRn+MSGZl0ovJ3eL6EqPEXF19QUcFdnfNlctZZmvNvc9prbdaMsPA1NoYkJHFdXdFSg+08ReFMO9VVTdg3k/Vdk/BHSL1bXac+mPVDlvQcIqFKcupJlfQvL3lRculLS404ivJLRNw9P7dHkPIoKHQ/lPQpLapPm/RGRohmlvF0oPCBg7pFPt4UFFBOQ9AkKag0OK9Ie+04PLJYT9ZeYLtJRsc4OH9LXOE/TuIrL64kJG9dZ+EVHJxDZudFgu5AXuZHk/NHjfE9PMA2OLVQfOtLd+tQjfBrbLZ7fbFGdOs8d+1Dj/JCK9hPT49Jk/JqnvJaVc4jI3EXHptRTclVUcxOS8dUQdhNQ91SO9pZUdBLRt5WR9UgIGlLScVYU80YGFJXTNJGRcMbG1tDfO1BXOVDeexSPttJR8RVRNZDV+MUFEVTUMohIW5BaOhCcuqkoe9Eh+9DgO5CQcBCdetAX+VHT+FCbelBZedPQdxBaulITeBJS99GUeFFU+JAYeZYTtEdHWBKSd8XF04WFkseHmNCWeQTE0JEVeISEj94a+49Pr1WStRQP9xAQL5FivBCb+lFj/IfH2YZGVVBY+YaGlhGlvNEhO4VFUk5O7tGkvNFjPEPDzoRET0tMLDCv/02OLgwM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Q8Di1Z23acGf7CbnZp8cIcCMdjpQvXnN3JeU4Ybe390rI0swmtrfLg2m7ki8/s+0VpZlNgpGo4tkX1gge6Oeyuls/LZDb1UF26tu1E0da63e5S8ZIiF8+jwkpX7ne2tsL9hd3u4cqyKce/r+ZWubXb2QhpWusebi4Wk1IxvjEy6dLNrQ4WUIAbgo+b3c3u6u0LspcJoHzSdzc6G52dnQDynM3Nj4eHK8VyUrwExFzCrKztbnX20Y3PPAfNPD84eP56sVg3ZFoOGiOTeli6vbOxs7//4oS7tTcHb96+WV0tXsgYIISFZqXK6dLdmy/2nz7dwY8xZ87rt73eW/w4WFm5d6VcTso8FglzifNmvVKsoCMsnWc/h+j1egc99PPyzp3bxeJy3UqcFy3RoxtGBqlfR6544N/1DHLR0OXAnykaYljJZNI0zVQqhZ/4tzWnaeJFEARBEARBEARBEARBEARBEARBEASBMr8ADJvUZ0bGgJQAAAAASUVORK5CYII=",setupWalletState$2=(v,k)=>__awaiter$c(void 0,void 0,void 0,function*(){const ie=new nearAPI$5.keyStores.BrowserLocalStorageKeyStore(window.localStorage,"_meteor_wallet"),ae=yield nearAPI$5.connect(Object.assign(Object.assign({keyStore:ie},k),{headers:{}}));return{wallet:new import_sdk$1.MeteorWallet({near:ae,appKeyPrefix:"near_app"}),keyStore:ie}}),createMeteorWalletInjected=({options:v,logger:k,store:ie,params:ae})=>__awaiter$c(void 0,void 0,void 0,function*(){const ce=yield setupWalletState$2(ae,v.network),fe=()=>__awaiter$c(void 0,void 0,void 0,function*(){const ve=ce.wallet.getAccountId(),pe=ce.wallet.account();if(!ve||!pe)return[];const ye=yield pe.connection.signer.getPublicKey(pe.accountId,v.network.networkId);return[{accountId:ve,publicKey:ye?ye.toString():""}]}),le=ve=>__awaiter$c(void 0,void 0,void 0,function*(){const pe=ce.wallet.account(),{networkId:ye,signer:me,provider:Ee}=pe.connection,cr=yield me.getPublicKey(pe.accountId,ye);return Promise.all(ve.map((Br,$r)=>__awaiter$c(void 0,void 0,void 0,function*(){const Pr=Br.actions.map(jr=>createAction(jr)),Or=yield pe.accessKeyForTransaction(Br.receiverId,Pr,cr);if(!Or)throw new Error(`Failed to find matching key for transaction sent to ${Br.receiverId}`);const ur=yield Ee.block({finality:"final"});return nearAPI$5.transactions.createTransaction(pe.accountId,nearAPI$5.utils.PublicKey.from(Or.public_key),Br.receiverId,Or.access_key.nonce+$r+1,Pr,nearAPI$5.utils.serialize.base_decode(ur.header.hash))})))});return{signIn({contractId:ve,methodNames:pe=[]}){return __awaiter$c(this,void 0,void 0,function*(){return k.log("MeteorWallet:signIn",{contractId:ve,methodNames:pe}),pe.length?yield ce.wallet.requestSignIn({methods:pe,type:import_sdk$1.EMeteorWalletSignInType.SELECTED_METHODS,contract_id:ve}):yield ce.wallet.requestSignIn({type:import_sdk$1.EMeteorWalletSignInType.ALL_METHODS,contract_id:ve}),fe()})},signOut(){return __awaiter$c(this,void 0,void 0,function*(){ce.wallet.isSignedIn()&&(yield ce.wallet.signOut())})},isSignedIn(){return __awaiter$c(this,void 0,void 0,function*(){return ce.wallet?ce.wallet.isSignedIn():!1})},getAccounts(){return __awaiter$c(this,void 0,void 0,function*(){return fe()})},verifyOwner({message:ve}){return __awaiter$c(this,void 0,void 0,function*(){k.log("MeteorWallet:verifyOwner",{message:ve});const pe=yield ce.wallet.verifyOwner({message:ve});if(pe.success)return pe.payload;throw new Error(`Couldn't verify owner: ${pe.message}`)})},signMessage({message:ve,nonce:pe,recipient:ye,state:me}){return __awaiter$c(this,void 0,void 0,function*(){k.log("MeteorWallet:signMessage",{message:ve,nonce:pe,recipient:ye,state:me});const Ee=ce.wallet.getAccountId(),cr=yield ce.wallet.signMessage({message:ve,nonce:pe,recipient:ye,accountId:Ee,state:me});if(cr.success)return cr.payload;throw new Error(`Couldn't sign message owner: ${cr.message}`)})},signAndSendTransaction({signerId:ve,receiverId:pe,actions:ye}){return __awaiter$c(this,void 0,void 0,function*(){k.log("MeteorWallet:signAndSendTransaction",{signerId:ve,receiverId:pe,actions:ye});const{contract:me}=ie.getState();if(!ce.wallet.isSignedIn())throw new Error("Wallet not signed in");if(!pe&&!me)throw new Error("No receiver found to send the transaction to");return ce.wallet.account().signAndSendTransaction_direct({receiverId:pe!=null?pe:me.contractId,actions:ye.map(cr=>createAction(cr))})})},signAndSendTransactions({transactions:ve}){return __awaiter$c(this,void 0,void 0,function*(){if(k.log("MeteorWallet:signAndSendTransactions",{transactions:ve}),!ce.wallet.isSignedIn())throw new Error("Wallet not signed in");return ce.wallet.requestSignTransactions({transactions:yield le(ve)})})},buildImportAccountsUrl(){return`https://wallet.meteorwallet.app/batch-import?network=${ce.wallet._networkId}`}}});function setupMeteorWallet({iconUrl:v=icon$b,deprecated:k=!1}={}){return()=>__awaiter$c(this,void 0,void 0,function*(){return{id:"meteor-wallet",type:"injected",metadata:{available:!0,name:"Meteor Wallet",description:"Securely store and stake your NEAR tokens and compatible assets with Meteor.",iconUrl:v,deprecated:k,downloadUrl:"https://wallet.meteorwallet.app",useUrlAccountImport:!0},init:ie=>createMeteorWalletInjected(Object.assign(Object.assign({},ie),{params:{iconUrl:v}}))}})}var require_nightly_qr_code=__commonJS$1({"node_modules/@nightlylabs/qr-code/lib/nightly-qr-code.js"(v,k){(function(ie,ae){typeof v=="object"&&typeof k=="object"?k.exports=ae():typeof define=="function"&&define.amd?define([],ae):typeof v=="object"?v.NightlyQRCode=ae():ie.NightlyQRCode=ae()})(v,function(){return(()=>{var ie={192:(le,ve)=>{var pe,ye,me=function(){var Ee=function(Kr,be){var kr=Kr,xr=ur[be],Wr=null,Jt=0,Xr=null,zr=[],Jr={},Nr=function(hn,pn){Wr=function(Sn){for(var Qn=new Array(Sn),Jn=0;Jn=7&&mn(hn),Xr==null&&(Xr=bn(kr,xr,zr)),In(Xr,pn)},Hr=function(hn,pn){for(var Sn=-1;Sn<=7;Sn+=1)if(!(hn+Sn<=-1||Jt<=hn+Sn))for(var Qn=-1;Qn<=7;Qn+=1)pn+Qn<=-1||Jt<=pn+Qn||(Wr[hn+Sn][pn+Qn]=0<=Sn&&Sn<=6&&(Qn==0||Qn==6)||0<=Qn&&Qn<=6&&(Sn==0||Sn==6)||2<=Sn&&Sn<=4&&2<=Qn&&Qn<=4)},On=function(){for(var hn=8;hn>Sn&1)==1;Wr[Math.floor(Sn/3)][Sn%3+Jt-8-3]=Qn}for(Sn=0;Sn<18;Sn+=1)Qn=!hn&&(pn>>Sn&1)==1,Wr[Sn%3+Jt-8-3][Math.floor(Sn/3)]=Qn},Nn=function(hn,pn){for(var Sn=xr<<3|pn,Qn=jr.getBCHTypeInfo(Sn),Jn=0;Jn<15;Jn+=1){var ui=!hn&&(Qn>>Jn&1)==1;Jn<6?Wr[Jn][8]=ui:Jn<8?Wr[Jn+1][8]=ui:Wr[Jt-15+Jn][8]=ui}for(Jn=0;Jn<15;Jn+=1)ui=!hn&&(Qn>>Jn&1)==1,Jn<8?Wr[8][Jt-Jn-1]=ui:Jn<9?Wr[8][15-Jn-1+1]=ui:Wr[8][15-Jn-1]=ui;Wr[Jt-8][8]=!hn},In=function(hn,pn){for(var Sn=-1,Qn=Jt-1,Jn=7,ui=0,gi=jr.getMaskFunction(pn),di=Jt-1;di>0;di-=2)for(di==6&&(di-=1);;){for(var Ci=0;Ci<2;Ci+=1)if(Wr[Qn][di-Ci]==null){var yi=!1;ui>>Jn&1)==1),gi(Qn,di-Ci)&&(yi=!yi),Wr[Qn][di-Ci]=yi,(Jn-=1)==-1&&(ui+=1,Jn=7)}if((Qn+=Sn)<0||Jt<=Qn){Qn-=Sn,Sn=-Sn;break}}},bn=function(hn,pn,Sn){for(var Qn=Vr.getRSBlocks(hn,pn),Jn=Gr(),ui=0;ui8*di)throw"code length overflow. ("+Jn.getLengthInBits()+">"+8*di+")";for(Jn.getLengthInBits()+4<=8*di&&Jn.put(0,4);Jn.getLengthInBits()%8!=0;)Jn.putBit(!1);for(;!(Jn.getLengthInBits()>=8*di||(Jn.put(236,8),Jn.getLengthInBits()>=8*di));)Jn.put(17,8);return function(Ci,yi){for(var li=0,Pi=0,Ai=0,Oi=new Array(yi.length),to=new Array(yi.length),En=0;En=0?zn.getAt(gn):0}}var xn=0;for(Tn=0;Tnyi)&&(gi=yi,di=Ci)}return di}())},Jr.createTableTag=function(hn,pn){hn=hn||2;var Sn="";Sn+='";for(var Jn=0;Jn';Sn+=""}return(Sn+="")+"
"},Jr.createSvgTag=function(hn,pn,Sn,Qn){var Jn={};typeof arguments[0]=="object"&&(hn=(Jn=arguments[0]).cellSize,pn=Jn.margin,Sn=Jn.alt,Qn=Jn.title),hn=hn||2,pn=pn===void 0?4*hn:pn,(Sn=typeof Sn=="string"?{text:Sn}:Sn||{}).text=Sn.text||null,Sn.id=Sn.text?Sn.id||"qrcode-description":null,(Qn=typeof Qn=="string"?{text:Qn}:Qn||{}).text=Qn.text||null,Qn.id=Qn.text?Qn.id||"qrcode-title":null;var ui,gi,di,Ci,yi=Jr.getModuleCount()*hn+2*pn,li="";for(Ci="l"+hn+",0 0,"+hn+" -"+hn+",0 0,-"+hn+"z ",li+=''+ii(Qn.text)+"":"",li+=Sn.text?''+ii(Sn.text)+"":"",li+='',li+='"},Jr.createDataURL=function(hn,pn){hn=hn||2,pn=pn===void 0?4*hn:pn;var Sn=Jr.getModuleCount()*hn+2*pn,Qn=pn,Jn=Sn-pn;return Qt(Sn,Sn,function(ui,gi){if(Qn<=ui&&ui"};var ii=function(hn){for(var pn="",Sn=0;Sn":pn+=">";break;case"&":pn+="&";break;case'"':pn+=""";break;default:pn+=Qn}}return pn};return Jr.createASCII=function(hn,pn){if((hn=hn||1)<2)return function(Oi){Oi=Oi===void 0?2:Oi;var to,En,Bt,Zt,Tn,ei=1*Jr.getModuleCount()+2*Oi,zn=Oi,gn=ei-Oi,xn={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},Hn={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},Ln="";for(to=0;to=gn?Hn[Tn]:xn[Tn];Ln+=` -`}return ei%2&&Oi>0?Ln.substring(0,Ln.length-ei-1)+Array(ei+1).join("\u2580"):Ln.substring(0,Ln.length-1)}(pn);hn-=1,pn=pn===void 0?2*hn:pn;var Sn,Qn,Jn,ui,gi=Jr.getModuleCount()*hn+2*pn,di=pn,Ci=gi-pn,yi=Array(hn+1).join("\u2588\u2588"),li=Array(hn+1).join(" "),Pi="",Ai="";for(Sn=0;Sn>>8),Jt.push(255&Jr)):Jt.push(xr)}}return Jt}};var cr,Br,$r,Pr,Or,ur={L:1,M:0,Q:3,H:2},jr=(cr=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],Br=1335,$r=7973,Or=function(Kr){for(var be=0;Kr!=0;)be+=1,Kr>>>=1;return be},(Pr={}).getBCHTypeInfo=function(Kr){for(var be=Kr<<10;Or(be)-Or(Br)>=0;)be^=Br<=0;)be^=$r<5&&(kr+=3+Jt-5)}for(xr=0;xr=256;)xr-=255;return Kr[xr]}}}();function Lr(Kr,be){if(Kr.length===void 0)throw Kr.length+"/"+be;var kr=function(){for(var Wr=0;Wr>>7-xr%8&1)==1},put:function(xr,Wr){for(var Jt=0;Jt>>Wr-Jt-1&1)==1)},getLengthInBits:function(){return be},putBit:function(xr){var Wr=Math.floor(be/8);Kr.length<=Wr&&Kr.push(0),xr&&(Kr[Wr]|=128>>>be%8),be+=1}};return kr},Ur=function(Kr){var be=Kr,kr={getMode:function(){return 1},getLength:function(Jt){return be.length},write:function(Jt){for(var Xr=be,zr=0;zr+2>>8&255)+(255&zr),Wr.put(zr,13),Xr+=2}if(Xr>>8)},writeBytes:function(kr,xr,Wr){xr=xr||0,Wr=Wr||kr.length;for(var Jt=0;Jt0&&(kr+=","),kr+=Kr[xr];return kr+"]"}};return be},Xt=function(Kr){var be=Kr,kr=0,xr=0,Wr=0,Jt={read:function(){for(;Wr<8;){if(kr>=be.length){if(Wr==0)return-1;throw"unexpected end of file./"+Wr}var zr=be.charAt(kr);if(kr+=1,zr=="=")return Wr=0,-1;zr.match(/^\s$/)||(xr=xr<<6|Xr(zr.charCodeAt(0)),Wr+=6)}var Jr=xr>>>Wr-8&255;return Wr-=8,Jr}},Xr=function(zr){if(65<=zr&&zr<=90)return zr-65;if(97<=zr&&zr<=122)return zr-97+26;if(48<=zr&&zr<=57)return zr-48+52;if(zr==43)return 62;if(zr==47)return 63;throw"c:"+zr};return Jt},Qt=function(Kr,be,kr){for(var xr=function(Hr,On){var Gn=Hr,mn=On,Nn=new Array(Hr*On),In={setPixel:function(hn,pn,Sn){Nn[pn*Gn+hn]=Sn},write:function(hn){hn.writeString("GIF87a"),hn.writeShort(Gn),hn.writeShort(mn),hn.writeByte(128),hn.writeByte(0),hn.writeByte(0),hn.writeByte(0),hn.writeByte(0),hn.writeByte(0),hn.writeByte(255),hn.writeByte(255),hn.writeByte(255),hn.writeString(","),hn.writeShort(0),hn.writeShort(0),hn.writeShort(Gn),hn.writeShort(mn),hn.writeByte(0);var pn=bn(2);hn.writeByte(2);for(var Sn=0;pn.length-Sn>255;)hn.writeByte(255),hn.writeBytes(pn,Sn,255),Sn+=255;hn.writeByte(pn.length-Sn),hn.writeBytes(pn,Sn,pn.length-Sn),hn.writeByte(0),hn.writeString(";")}},bn=function(hn){for(var pn=1<>>En!=0)throw"length over";for(;di+En>=8;)gi.writeByte(255&(to<>>=8-di,Ci=0,di=0;Ci|=to<0&&gi.writeByte(Ci)}});li.write(pn,Qn);var Pi=0,Ai=String.fromCharCode(Nn[Pi]);for(Pi+=1;Pi=6;)In(Hr>>>On-6),On-=6},Nn.flush=function(){if(On>0&&(In(Hr<<6-On),Hr=0,On=0),Gn%3!=0)for(var ii=3-Gn%3,hn=0;hn>6,128|63&Pr):Pr<55296||Pr>=57344?Br.push(224|Pr>>12,128|Pr>>6&63,128|63&Pr):($r++,Pr=65536+((1023&Pr)<<10|1023&cr.charCodeAt($r)),Br.push(240|Pr>>18,128|Pr>>12&63,128|Pr>>6&63,128|63&Pr))}return Br}(Ee)},(ye=typeof(pe=function(){return me})=="function"?pe.apply(ve,[]):pe)===void 0||(le.exports=ye)}},ae={};function ce(le){var ve=ae[le];if(ve!==void 0)return ve.exports;var pe=ae[le]={exports:{}};return ie[le](pe,pe.exports,ce),pe.exports}ce.n=le=>{var ve=le&&le.__esModule?()=>le.default:()=>le;return ce.d(ve,{a:ve}),ve},ce.d=(le,ve)=>{for(var pe in ve)ce.o(ve,pe)&&!ce.o(le,pe)&&Object.defineProperty(le,pe,{enumerable:!0,get:ve[pe]})},ce.o=(le,ve)=>Object.prototype.hasOwnProperty.call(le,ve),ce.r=le=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(le,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(le,"__esModule",{value:!0})};var fe={};return(()=>{ce.r(fe),ce.d(fe,{cornerDotTypes:()=>ve,cornerSquareTypes:()=>pe,default:()=>ei,dotTypes:()=>le,drawTypes:()=>Pr,errorCorrectionLevels:()=>ye,errorCorrectionPercents:()=>me,generateNightlyQRCodeXML:()=>Tn,modes:()=>Ee,qrTypes:()=>$r});const le={dots:"dots",rounded:"rounded",classy:"classy",classyRounded:"classy-rounded",square:"square",extraRounded:"extra-rounded",distRounded:"dist-rounded"},ve={dot:"dot",square:"square",tear:"tear"},pe={dot:"dot",square:"square",extraRounded:"extra-rounded",tear:"tear"},ye={L:"L",M:"M",Q:"Q",H:"H"},me={L:.07,M:.15,Q:.25,H:.3},Ee={numeric:"Numeric",alphanumeric:"Alphanumeric",byte:"Byte",kanji:"Kanji"};for(var cr={},Br=0;Br<=40;Br++)cr[Br]=Br;const $r=cr,Pr={canvas:"canvas",svg:"svg"};function Or(zn){switch(!0){case/^[0-9]*$/.test(zn):return Ee.numeric;case/^[0-9A-Z $%*+\-./:]*$/.test(zn):return Ee.alphanumeric;default:return Ee.byte}}var ur=function(){return ur=Object.assign||function(zn){for(var gn,xn=1,Hn=arguments.length;xnHn||Ln&&Ln2||Ei&&Ri||Oo&&Ui)this._basicSquare({x:xn,y:Hn,size:Ln,context:ti,rotation:0});else{if(io===2){var So=0;return Ei&&Oo?So=Math.PI/2:Oo&&Ri?So=Math.PI:Ri&&Ui&&(So=-Math.PI/2),void this._basicCornerRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:So})}if(io===1)return So=0,Oo?So=Math.PI/2:Ri?So=Math.PI:Ui&&(So=-Math.PI/2),void this._basicSideRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:So})}else this._basicDot({x:xn,y:Hn,size:Ln,context:ti,rotation:0})},zn.prototype._drawExtraRounded=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size,ti=gn.context,oi=gn.getNeighbor,Ei=oi?+oi(-1,0):0,Ri=oi?+oi(1,0):0,Oo=oi?+oi(0,-1):0,Ui=oi?+oi(0,1):0,io=Ei+Ri+Oo+Ui;if(io!==0)if(io>2||Ei&&Ri||Oo&&Ui)this._basicSquare({x:xn,y:Hn,size:Ln,context:ti,rotation:0});else{if(io===2){var So=0;return Ei&&Oo?So=Math.PI/2:Oo&&Ri?So=Math.PI:Ri&&Ui&&(So=-Math.PI/2),void this._basicCornerExtraRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:So})}if(io===1)return So=0,Oo?So=Math.PI/2:Ri?So=Math.PI:Ui&&(So=-Math.PI/2),void this._basicSideRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:So})}else this._basicDot({x:xn,y:Hn,size:Ln,context:ti,rotation:0})},zn.prototype._drawClassy=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size,ti=gn.context,oi=gn.getNeighbor,Ei=oi?+oi(-1,0):0,Ri=oi?+oi(1,0):0,Oo=oi?+oi(0,-1):0,Ui=oi?+oi(0,1):0;Ei+Ri+Oo+Ui!==0?Ei||Oo?Ri||Ui?this._basicSquare({x:xn,y:Hn,size:Ln,context:ti,rotation:0}):this._basicCornerRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:Math.PI/2}):this._basicCornerRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:-Math.PI/2}):this._basicCornersRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:Math.PI/2})},zn.prototype._drawClassyRounded=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size,ti=gn.context,oi=gn.getNeighbor,Ei=oi?+oi(-1,0):0,Ri=oi?+oi(1,0):0,Oo=oi?+oi(0,-1):0,Ui=oi?+oi(0,1):0;Ei+Ri+Oo+Ui!==0?Ei||Oo?Ri||Ui?this._basicSquare({x:xn,y:Hn,size:Ln,context:ti,rotation:0}):this._basicCornerExtraRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:-Math.PI/2}):this._basicCornersRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:Math.PI/2})},zn.prototype._drawDistRounded=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size,ti=gn.context;this._basicDistRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:0})},zn}();const vn=Qr;var Yt=function(){return Yt=Object.assign||function(zn){for(var gn,xn=1,Hn=arguments.length;xn0&&zi[zi.length-1])||dn[0]!==6&&dn[0]!==2)){Yr=0;continue}if(dn[0]===3&&(!zi||dn[1]>zi[0]&&dn[1]=(oi-Oo.hideXDots)/2&&Eo<(oi+Oo.hideXDots)/2&&jo>=(oi-Oo.hideYDots)/2&&jo<(oi+Oo.hideYDots)/2||((go=xr[Eo])===null||go===void 0?void 0:go[jo])||((zi=xr[Eo-oi+7])===null||zi===void 0?void 0:zi[jo])||((xo=xr[Eo])===null||xo===void 0?void 0:xo[jo-oi+7])||((Yr=Wr[Eo])===null||Yr===void 0?void 0:Yr[jo])||((Wt=Wr[Eo-oi+7])===null||Wt===void 0?void 0:Wt[jo])||((ln=Wr[Eo])===null||ln===void 0?void 0:ln[jo-oi+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:Oo.width,height:Oo.height,count:oi,dotSize:Ri}),[2]}})},new((Ln=void 0)||(Ln=Promise))(function(oi,Ei){function Ri(io){try{Ui(ti.next(io))}catch(So){Ei(So)}}function Oo(io){try{Ui(ti.throw(io))}catch(So){Ei(So)}}function Ui(io){var So;io.done?oi(io.value):(So=io.value,So instanceof Ln?So:new Ln(function($o){$o(So)})).then(Ri,Oo)}Ui((ti=ti.apply(xn,Hn||[])).next())});var xn,Hn,Ln,ti},zn.prototype.drawBackground=function(){var gn=this.context,xn=this._options;if(gn){if(xn.backgroundOptions.gradient){var Hn=xn.backgroundOptions.gradient,Ln=this._createGradient({context:gn,options:Hn,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});Hn.colorStops.forEach(function(ti){var oi=ti.offset,Ei=ti.color;Ln.addColorStop(oi,Ei)}),gn.fillStyle=Ln}else xn.backgroundOptions.color&&(gn.fillStyle=xn.backgroundOptions.color);gn.fillRect(0,0,this._canvas.width,this._canvas.height)}},zn.prototype.drawDots=function(gn){var xn=this;if(!this._qr)throw"QR code is not defined";var Hn=this.context;if(!Hn)throw"QR code is not defined";var Ln=this._options,ti=this._qr.getModuleCount();if(ti>Ln.width||ti>Ln.height)throw"The canvas is too small.";var oi=Math.min(Ln.width,Ln.height)-2*Ln.margin,Ei=Math.floor(oi/ti),Ri=Math.floor((Ln.width-ti*Ei)/2),Oo=Math.floor((Ln.height-ti*Ei)/2),Ui=new vn({context:Hn,type:Ln.dotsOptions.type});Hn.beginPath();for(var io=function(wo){for(var Eo=function(go){return gn&&!gn(wo,go)?"continue":So._qr.isDark(wo,go)?void Ui.draw(Ri+wo*Ei,Oo+go*Ei,Ei,function(zi,xo){return!(wo+zi<0||go+xo<0||wo+zi>=ti||go+xo>=ti)&&!(gn&&!gn(wo+zi,go+xo))&&!!xn._qr&&xn._qr.isDark(wo+zi,go+xo)}):"continue"},jo=0;jo=0&&Ui<=.25*Math.PI||Ui>1.75*Math.PI&&Ui<=2*Math.PI?(io-=Ri/2,So-=Ri/2*Math.tan(Oo),$o+=Ri/2,mo+=Ri/2*Math.tan(Oo)):Ui>.25*Math.PI&&Ui<=.75*Math.PI?(So-=Ri/2,io-=Ri/2/Math.tan(Oo),mo+=Ri/2,$o+=Ri/2/Math.tan(Oo)):Ui>.75*Math.PI&&Ui<=1.25*Math.PI?(io+=Ri/2,So+=Ri/2*Math.tan(Oo),$o-=Ri/2,mo-=Ri/2*Math.tan(Oo)):Ui>1.25*Math.PI&&Ui<=1.75*Math.PI&&(So+=Ri/2,io+=Ri/2/Math.tan(Oo),mo-=Ri/2,$o-=Ri/2/Math.tan(Oo)),xn=Hn.createLinearGradient(Math.round(io),Math.round(So),Math.round($o),Math.round(mo))}return xn},zn}();var Xr=function(){return Xr=Object.assign||function(zn){for(var gn,xn=1,Hn=arguments.length;xn2||oi&&Ei||Ri&&Oo)this._basicSquare({x:xn,y:Hn,size:Ln,rotation:0});else{if(Ui===2){var io=0;return oi&&Ri?io=Math.PI/2:Ri&&Ei?io=Math.PI:Ei&&Oo&&(io=-Math.PI/2),void this._basicCornerRounded({x:xn,y:Hn,size:Ln,rotation:io})}if(Ui===1)return io=0,Ri?io=Math.PI/2:Ei?io=Math.PI:Oo&&(io=-Math.PI/2),void this._basicSideRounded({x:xn,y:Hn,size:Ln,rotation:io})}else this._basicDot({x:xn,y:Hn,size:Ln,rotation:0})},zn.prototype._drawExtraRounded=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size,ti=gn.getNeighbor,oi=ti?+ti(-1,0):0,Ei=ti?+ti(1,0):0,Ri=ti?+ti(0,-1):0,Oo=ti?+ti(0,1):0,Ui=oi+Ei+Ri+Oo;if(Ui!==0)if(Ui>2||oi&&Ei||Ri&&Oo)this._basicSquare({x:xn,y:Hn,size:Ln,rotation:0});else{if(Ui===2){var io=0;return oi&&Ri?io=Math.PI/2:Ri&&Ei?io=Math.PI:Ei&&Oo&&(io=-Math.PI/2),void this._basicCornerExtraRounded({x:xn,y:Hn,size:Ln,rotation:io})}if(Ui===1)return io=0,Ri?io=Math.PI/2:Ei?io=Math.PI:Oo&&(io=-Math.PI/2),void this._basicSideRounded({x:xn,y:Hn,size:Ln,rotation:io})}else this._basicDot({x:xn,y:Hn,size:Ln,rotation:0})},zn.prototype._drawClassy=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size,ti=gn.getNeighbor,oi=ti?+ti(-1,0):0,Ei=ti?+ti(1,0):0,Ri=ti?+ti(0,-1):0,Oo=ti?+ti(0,1):0;oi+Ei+Ri+Oo!==0?oi||Ri?Ei||Oo?this._basicSquare({x:xn,y:Hn,size:Ln,rotation:0}):this._basicCornerRounded({x:xn,y:Hn,size:Ln,rotation:Math.PI/2}):this._basicCornerRounded({x:xn,y:Hn,size:Ln,rotation:-Math.PI/2}):this._basicCornersRounded({x:xn,y:Hn,size:Ln,rotation:Math.PI/2})},zn.prototype._drawClassyRounded=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size,ti=gn.getNeighbor,oi=ti?+ti(-1,0):0,Ei=ti?+ti(1,0):0,Ri=ti?+ti(0,-1):0,Oo=ti?+ti(0,1):0;oi+Ei+Ri+Oo!==0?oi||Ri?Ei||Oo?this._basicSquare({x:xn,y:Hn,size:Ln,rotation:0}):this._basicCornerExtraRounded({x:xn,y:Hn,size:Ln,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:xn,y:Hn,size:Ln,rotation:-Math.PI/2}):this._basicCornersRounded({x:xn,y:Hn,size:Ln,rotation:Math.PI/2})},zn.prototype._drawDistRounded=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size;this._basicDistRounded({x:xn,y:Hn,size:Ln,rotation:0})},zn}();const Jr=zr;var Nr=function(){return Nr=Object.assign||function(zn){for(var gn,xn=1,Hn=arguments.length;xn0&&zi[zi.length-1])||dn[0]!==6&&dn[0]!==2)){Yr=0;continue}if(dn[0]===3&&(!zi||dn[1]>zi[0]&&dn[1]=(oi-Oo.hideXDots)/2&&Eo<(oi+Oo.hideXDots)/2&&jo>=(oi-Oo.hideYDots)/2&&jo<(oi+Oo.hideYDots)/2||((go=In[Eo])===null||go===void 0?void 0:go[jo])||((zi=In[Eo-oi+7])===null||zi===void 0?void 0:zi[jo])||((xo=In[Eo])===null||xo===void 0?void 0:xo[jo-oi+7])||((Yr=bn[Eo])===null||Yr===void 0?void 0:Yr[jo])||((Wt=bn[Eo-oi+7])===null||Wt===void 0?void 0:Wt[jo])||((ln=bn[Eo])===null||ln===void 0?void 0:ln[jo-oi+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:Oo.width,height:Oo.height,count:oi,dotSize:Ri}),[2]}})},new((Ln=void 0)||(Ln=Promise))(function(oi,Ei){function Ri(io){try{Ui(ti.next(io))}catch(So){Ei(So)}}function Oo(io){try{Ui(ti.throw(io))}catch(So){Ei(So)}}function Ui(io){var So;io.done?oi(io.value):(So=io.value,So instanceof Ln?So:new Ln(function($o){$o(So)})).then(Ri,Oo)}Ui((ti=ti.apply(xn,Hn||[])).next())});var xn,Hn,Ln,ti},zn.prototype.drawBackground=function(){var gn,xn,Hn=this._element,Ln=this._options;if(Hn){var ti=(gn=Ln.backgroundOptions)===null||gn===void 0?void 0:gn.gradient,oi=(xn=Ln.backgroundOptions)===null||xn===void 0?void 0:xn.color;(ti||oi)&&this._createColor({options:ti,color:oi,additionalRotation:0,x:0,y:0,height:Ln.height,width:Ln.width,name:"background-color"})}},zn.prototype.drawDots=function(gn){var xn,Hn,Ln=this;if(!this._qr)throw"QR code is not defined";var ti=this._options,oi=this._qr.getModuleCount();if(oi>ti.width||oi>ti.height)throw"The canvas is too small.";var Ei=(Math.min(ti.width,ti.height)-2*ti.margin)/oi,Ri=(ti.width-oi*Ei)/2,Oo=(ti.height-oi*Ei)/2,Ui=new Jr({svg:this._element,type:ti.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(xn=ti.dotsOptions)===null||xn===void 0?void 0:xn.gradient,color:ti.dotsOptions.color,additionalRotation:0,x:Ri,y:Oo,height:oi*Ei,width:oi*Ei,name:"dot-color"});for(var io=function(mo){for(var qo=function(Eo){return gn&&!gn(mo,Eo)?"continue":!((Hn=So._qr)===null||Hn===void 0)&&Hn.isDark(mo,Eo)?(Ui.draw(Ri+mo*Ei,Oo+Eo*Ei,Ei,function(jo,go){return!(mo+jo<0||Eo+go<0||mo+jo>=oi||Eo+go>=oi)&&!(gn&&!gn(mo+jo,Eo+go))&&!!Ln._qr&&Ln._qr.isDark(mo+jo,Eo+go)}),void(Ui._element&&So._dotsClipPath&&So._dotsClipPath.appendChild(Ui._element))):"continue"},wo=0;woEi?Ri:Ei,io=document.createElementNS("http://www.w3.org/2000/svg","rect");if(io.setAttribute("x",String(ti)),io.setAttribute("y",String(oi)),io.setAttribute("height",String(Ei)),io.setAttribute("width",String(Ri)),io.setAttribute("clip-path","url('#clip-path-".concat(Oo,"')")),xn){var So;if(xn.type===kr)(So=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",Oo),So.setAttribute("gradientUnits","userSpaceOnUse"),So.setAttribute("fx",String(ti+Ri/2)),So.setAttribute("fy",String(oi+Ei/2)),So.setAttribute("cx",String(ti+Ri/2)),So.setAttribute("cy",String(oi+Ei/2)),So.setAttribute("r",String(Ui/2));else{var $o=((xn.rotation||0)+Ln)%(2*Math.PI),mo=($o+2*Math.PI)%(2*Math.PI),qo=ti+Ri/2,wo=oi+Ei/2,Eo=ti+Ri/2,jo=oi+Ei/2;mo>=0&&mo<=.25*Math.PI||mo>1.75*Math.PI&&mo<=2*Math.PI?(qo-=Ri/2,wo-=Ei/2*Math.tan($o),Eo+=Ri/2,jo+=Ei/2*Math.tan($o)):mo>.25*Math.PI&&mo<=.75*Math.PI?(wo-=Ei/2,qo-=Ri/2/Math.tan($o),jo+=Ei/2,Eo+=Ri/2/Math.tan($o)):mo>.75*Math.PI&&mo<=1.25*Math.PI?(qo+=Ri/2,wo+=Ei/2*Math.tan($o),Eo-=Ri/2,jo-=Ei/2*Math.tan($o)):mo>1.25*Math.PI&&mo<=1.75*Math.PI&&(wo+=Ei/2,qo+=Ri/2/Math.tan($o),jo-=Ei/2,Eo-=Ri/2/Math.tan($o)),(So=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",Oo),So.setAttribute("gradientUnits","userSpaceOnUse"),So.setAttribute("x1",String(Math.round(qo))),So.setAttribute("y1",String(Math.round(wo))),So.setAttribute("x2",String(Math.round(Eo))),So.setAttribute("y2",String(Math.round(jo)))}xn.colorStops.forEach(function(go){var zi=go.offset,xo=go.color,Yr=document.createElementNS("http://www.w3.org/2000/svg","stop");Yr.setAttribute("offset","".concat(100*zi,"%")),Yr.setAttribute("stop-color",xo),So.appendChild(Yr)}),io.setAttribute("fill","url('#".concat(Oo,"')")),this._defs.appendChild(So)}else Hn&&io.setAttribute("fill",Hn);this._element.appendChild(io)},zn}(),hn={type:Pr.canvas,width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:$r[0],mode:void 0,errorCorrectionLevel:ye.Q},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};var pn=function(){return pn=Object.assign||function(zn){for(var gn,xn=1,Hn=arguments.length;xnMath.min(gn.width,gn.height)&&(gn.margin=Math.min(gn.width,gn.height)),gn.dotsOptions=pn({},gn.dotsOptions),gn.dotsOptions.gradient&&(gn.dotsOptions.gradient=Sn(gn.dotsOptions.gradient)),gn.cornersSquareOptions&&(gn.cornersSquareOptions=pn({},gn.cornersSquareOptions),gn.cornersSquareOptions.gradient&&(gn.cornersSquareOptions.gradient=Sn(gn.cornersSquareOptions.gradient))),gn.cornersDotOptions&&(gn.cornersDotOptions=pn({},gn.cornersDotOptions),gn.cornersDotOptions.gradient&&(gn.cornersDotOptions.gradient=Sn(gn.cornersDotOptions.gradient))),gn.backgroundOptions&&(gn.backgroundOptions=pn({},gn.backgroundOptions),gn.backgroundOptions.gradient&&(gn.backgroundOptions.gradient=Sn(gn.backgroundOptions.gradient))),gn}var Jn=ce(192),ui=ce.n(Jn),gi=function(zn,gn,xn,Hn){return new(xn||(xn=Promise))(function(Ln,ti){function oi(Oo){try{Ri(Hn.next(Oo))}catch(Ui){ti(Ui)}}function Ei(Oo){try{Ri(Hn.throw(Oo))}catch(Ui){ti(Ui)}}function Ri(Oo){var Ui;Oo.done?Ln(Oo.value):(Ui=Oo.value,Ui instanceof xn?Ui:new xn(function(io){io(Ui)})).then(oi,Ei)}Ri((Hn=Hn.apply(zn,gn||[])).next())})},di=function(zn,gn){var xn,Hn,Ln,ti,oi={label:0,sent:function(){if(1&Ln[0])throw Ln[1];return Ln[1]},trys:[],ops:[]};return ti={next:Ei(0),throw:Ei(1),return:Ei(2)},typeof Symbol=="function"&&(ti[Symbol.iterator]=function(){return this}),ti;function Ei(Ri){return function(Oo){return function(Ui){if(xn)throw new TypeError("Generator is already executing.");for(;oi;)try{if(xn=1,Hn&&(Ln=2&Ui[0]?Hn.return:Ui[0]?Hn.throw||((Ln=Hn.return)&&Ln.call(Hn),0):Hn.next)&&!(Ln=Ln.call(Hn,Ui[1])).done)return Ln;switch(Hn=0,Ln&&(Ui=[2&Ui[0],Ln.value]),Ui[0]){case 0:case 1:Ln=Ui;break;case 4:return oi.label++,{value:Ui[1],done:!1};case 5:oi.label++,Hn=Ui[1],Ui=[0];continue;case 7:Ui=oi.ops.pop(),oi.trys.pop();continue;default:if(!((Ln=(Ln=oi.trys).length>0&&Ln[Ln.length-1])||Ui[0]!==6&&Ui[0]!==2)){oi=0;continue}if(Ui[0]===3&&(!Ln||Ui[1]>Ln[0]&&Ui[1]\r + */var import_bn$1=__toESM(require_bn$1()),nearAPI$8=__toESM(require_browser_index2$1()),{transactions:transactions2,utils:utils2}=nearAPI$8,getAccessKey=v=>{if(v==="FullAccess")return transactions2.fullAccessKey();const{receiverId:k,methodNames:ie=[]}=v,ae=v.allowance?new import_bn$1.BN(v.allowance):void 0;return transactions2.functionCallAccessKey(k,ie,ae)},createAction=v=>{switch(v.type){case"CreateAccount":return transactions2.createAccount();case"DeployContract":{const{code:k}=v.params;return transactions2.deployContract(k)}case"FunctionCall":{const{methodName:k,args:ie,gas:ae,deposit:ce}=v.params;return transactions2.functionCall(k,ie,new import_bn$1.BN(ae),new import_bn$1.BN(ce))}case"Transfer":{const{deposit:k}=v.params;return transactions2.transfer(new import_bn$1.BN(k))}case"Stake":{const{stake:k,publicKey:ie}=v.params;return transactions2.stake(new import_bn$1.BN(k),utils2.PublicKey.from(ie))}case"AddKey":{const{publicKey:k,accessKey:ie}=v.params;return transactions2.addKey(utils2.PublicKey.from(k),getAccessKey(ie.permission))}case"DeleteKey":{const{publicKey:k}=v.params;return transactions2.deleteKey(utils2.PublicKey.from(k))}case"DeleteAccount":{const{beneficiaryId:k}=v.params;return transactions2.deleteAccount(k)}default:throw new Error("Invalid action type")}},commonjsGlobal$h=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$d$9=function(v){try{return!!v()}catch{return!0}},fails$c$9=fails$d$9,functionBindNative$g=!fails$c$9(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$a=functionBindNative$g,FunctionPrototype$2$a=Function.prototype,bind$5$6=FunctionPrototype$2$a.bind,call$e$7=FunctionPrototype$2$a.call,uncurryThis$d$a=NATIVE_BIND$3$a&&bind$5$6.bind(call$e$7,call$e$7),functionUncurryThis$g=NATIVE_BIND$3$a?function(v){return v&&uncurryThis$d$a(v)}:function(v){return v&&function(){return call$e$7.apply(v,arguments)}},uncurryThis$c$a=functionUncurryThis$g,toString$2$d=uncurryThis$c$a({}.toString),stringSlice$g=uncurryThis$c$a("".slice),classofRaw$1$e=function(v){return stringSlice$g(toString$2$d(v),8,-1)},uncurryThis$b$a=functionUncurryThis$g,fails$b$a=fails$d$9,classof$5$9=classofRaw$1$e,$Object$4$a=Object,split$e=uncurryThis$b$a("".split),indexedObject$e=fails$b$a(function(){return!$Object$4$a("z").propertyIsEnumerable(0)})?function(v){return classof$5$9(v)=="String"?split$e(v,""):$Object$4$a(v)}:$Object$4$a,$TypeError$b$7=TypeError,requireObjectCoercible$2$e=function(v){if(v==null)throw $TypeError$b$7("Can't call method on "+v);return v},IndexedObject$g=indexedObject$e,requireObjectCoercible$1$g=requireObjectCoercible$2$e,toIndexedObject$5$a=function(v){return IndexedObject$g(requireObjectCoercible$1$g(v))},check$g=function(v){return v&&v.Math==Math&&v},global$j$6=check$g(typeof globalThis=="object"&&globalThis)||check$g(typeof window=="object"&&window)||check$g(typeof self=="object"&&self)||check$g(typeof commonjsGlobal$h=="object"&&commonjsGlobal$h)||function(){return this}()||Function("return this")(),shared$3$g={exports:{}},global$i$7=global$j$6,defineProperty$4$a=Object.defineProperty,defineGlobalProperty$3$e=function(v,k){try{defineProperty$4$a(global$i$7,v,{value:k,configurable:!0,writable:!0})}catch{global$i$7[v]=k}return k},global$h$a=global$j$6,defineGlobalProperty$2$g=defineGlobalProperty$3$e,SHARED$g="__core-js_shared__",store$3$g=global$h$a[SHARED$g]||defineGlobalProperty$2$g(SHARED$g,{}),sharedStore$g=store$3$g,store$2$g=sharedStore$g;(shared$3$g.exports=function(v,k){return store$2$g[v]||(store$2$g[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$i=requireObjectCoercible$2$e,$Object$3$c=Object,toObject$2$d=function(v){return $Object$3$c(requireObjectCoercible$i(v))},uncurryThis$a$e=functionUncurryThis$g,toObject$1$g=toObject$2$d,hasOwnProperty$g=uncurryThis$a$e({}.hasOwnProperty),hasOwnProperty_1$g=Object.hasOwn||function v(k,ie){return hasOwnProperty$g(toObject$1$g(k),ie)},uncurryThis$9$e=functionUncurryThis$g,id$i=0,postfix$g=Math.random(),toString$1$g=uncurryThis$9$e(1 .toString),uid$2$g=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$1$g(++id$i+postfix$g,36)},isCallable$k$6=function(v){return typeof v=="function"},global$g$a=global$j$6,isCallable$j$7=isCallable$k$6,aFunction$g=function(v){return isCallable$j$7(v)?v:void 0},getBuiltIn$8$6=function(v,k){return arguments.length<2?aFunction$g(global$g$a[v]):global$g$a[v]&&global$g$a[v][k]},getBuiltIn$7$6=getBuiltIn$8$6,engineUserAgent$g=getBuiltIn$7$6("navigator","userAgent")||"",global$f$a=global$j$6,userAgent$3$6=engineUserAgent$g,process$3$6=global$f$a.process,Deno$1$7=global$f$a.Deno,versions$g=process$3$6&&process$3$6.versions||Deno$1$7&&Deno$1$7.version,v8$g=versions$g&&versions$g.v8,match$g,version$g;v8$g&&(match$g=v8$g.split("."),version$g=match$g[0]>0&&match$g[0]<4?1:+(match$g[0]+match$g[1]));!version$g&&userAgent$3$6&&(match$g=userAgent$3$6.match(/Edge\/(\d+)/),(!match$g||match$g[1]>=74)&&(match$g=userAgent$3$6.match(/Chrome\/(\d+)/),match$g&&(version$g=+match$g[1])));var engineV8Version$g=version$g,V8_VERSION$1$6=engineV8Version$g,fails$a$c=fails$d$9,nativeSymbol$g=!!Object.getOwnPropertySymbols&&!fails$a$c(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$6&&V8_VERSION$1$6<41}),NATIVE_SYMBOL$1$g=nativeSymbol$g,useSymbolAsUid$g=NATIVE_SYMBOL$1$g&&!Symbol.sham&&typeof Symbol.iterator=="symbol",global$e$a=global$j$6,shared$2$g=shared$3$g.exports,hasOwn$a$9=hasOwnProperty_1$g,uid$1$g=uid$2$g,NATIVE_SYMBOL$h=nativeSymbol$g,USE_SYMBOL_AS_UID$1$g=useSymbolAsUid$g,WellKnownSymbolsStore$g=shared$2$g("wks"),Symbol$1$g=global$e$a.Symbol,symbolFor$g=Symbol$1$g&&Symbol$1$g.for,createWellKnownSymbol$g=USE_SYMBOL_AS_UID$1$g?Symbol$1$g:Symbol$1$g&&Symbol$1$g.withoutSetter||uid$1$g,wellKnownSymbol$e$9=function(v){if(!hasOwn$a$9(WellKnownSymbolsStore$g,v)||!(NATIVE_SYMBOL$h||typeof WellKnownSymbolsStore$g[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$h&&hasOwn$a$9(Symbol$1$g,v)?WellKnownSymbolsStore$g[v]=Symbol$1$g[v]:USE_SYMBOL_AS_UID$1$g&&symbolFor$g?WellKnownSymbolsStore$g[v]=symbolFor$g(k):WellKnownSymbolsStore$g[v]=createWellKnownSymbol$g(k)}return WellKnownSymbolsStore$g[v]},isCallable$i$9=isCallable$k$6,isObject$7$a=function(v){return typeof v=="object"?v!==null:isCallable$i$9(v)},isObject$6$a=isObject$7$a,$String$3$a=String,$TypeError$a$a=TypeError,anObject$c$7=function(v){if(isObject$6$a(v))return v;throw $TypeError$a$a($String$3$a(v)+" is not an object")},objectDefineProperties$a={},fails$9$e=fails$d$9,descriptors$g=!fails$9$e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),DESCRIPTORS$9$9=descriptors$g,fails$8$e=fails$d$9,v8PrototypeDefineBug$g=DESCRIPTORS$9$9&&fails$8$e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),objectDefineProperty$g={},global$d$a=global$j$6,isObject$5$g=isObject$7$a,document$3$6=global$d$a.document,EXISTS$1$g=isObject$5$g(document$3$6)&&isObject$5$g(document$3$6.createElement),documentCreateElement$2$8=function(v){return EXISTS$1$g?document$3$6.createElement(v):{}},DESCRIPTORS$8$a=descriptors$g,fails$7$g=fails$d$9,createElement$1$6=documentCreateElement$2$8,ie8DomDefine$g=!DESCRIPTORS$8$a&&!fails$7$g(function(){return Object.defineProperty(createElement$1$6("div"),"a",{get:function(){return 7}}).a!=7}),NATIVE_BIND$2$a=functionBindNative$g,call$d$9=Function.prototype.call,functionCall$g=NATIVE_BIND$2$a?call$d$9.bind(call$d$9):function(){return call$d$9.apply(call$d$9,arguments)},uncurryThis$8$e=functionUncurryThis$g,objectIsPrototypeOf$g=uncurryThis$8$e({}.isPrototypeOf),getBuiltIn$6$a=getBuiltIn$8$6,isCallable$h$a=isCallable$k$6,isPrototypeOf$3$9=objectIsPrototypeOf$g,USE_SYMBOL_AS_UID$h=useSymbolAsUid$g,$Object$2$g=Object,isSymbol$2$g=USE_SYMBOL_AS_UID$h?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$a("Symbol");return isCallable$h$a(k)&&isPrototypeOf$3$9(k.prototype,$Object$2$g(v))},$String$2$e=String,tryToString$4$a=function(v){try{return $String$2$e(v)}catch{return"Object"}},isCallable$g$a=isCallable$k$6,tryToString$3$a=tryToString$4$a,$TypeError$9$a=TypeError,aCallable$7$6=function(v){if(isCallable$g$a(v))return v;throw $TypeError$9$a(tryToString$3$a(v)+" is not a function")},aCallable$6$6=aCallable$7$6,getMethod$3$7=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$6$6(ie)},call$c$a=functionCall$g,isCallable$f$b=isCallable$k$6,isObject$4$g=isObject$7$a,$TypeError$8$a=TypeError,ordinaryToPrimitive$1$g=function(v,k){var ie,ae;if(k==="string"&&isCallable$f$b(ie=v.toString)&&!isObject$4$g(ae=call$c$a(ie,v))||isCallable$f$b(ie=v.valueOf)&&!isObject$4$g(ae=call$c$a(ie,v))||k!=="string"&&isCallable$f$b(ie=v.toString)&&!isObject$4$g(ae=call$c$a(ie,v)))return ae;throw $TypeError$8$a("Can't convert object to primitive value")},call$b$a=functionCall$g,isObject$3$g=isObject$7$a,isSymbol$1$g=isSymbol$2$g,getMethod$2$a=getMethod$3$7,ordinaryToPrimitive$h=ordinaryToPrimitive$1$g,wellKnownSymbol$d$9=wellKnownSymbol$e$9,$TypeError$7$a=TypeError,TO_PRIMITIVE$g=wellKnownSymbol$d$9("toPrimitive"),toPrimitive$1$g=function(v,k){if(!isObject$3$g(v)||isSymbol$1$g(v))return v;var ie=getMethod$2$a(v,TO_PRIMITIVE$g),ae;if(ie){if(k===void 0&&(k="default"),ae=call$b$a(ie,v,k),!isObject$3$g(ae)||isSymbol$1$g(ae))return ae;throw $TypeError$7$a("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$h(v,k)},toPrimitive$i=toPrimitive$1$g,isSymbol$j=isSymbol$2$g,toPropertyKey$2$e=function(v){var k=toPrimitive$i(v,"string");return isSymbol$j(k)?k:k+""},DESCRIPTORS$7$e=descriptors$g,IE8_DOM_DEFINE$1$e=ie8DomDefine$g,V8_PROTOTYPE_DEFINE_BUG$1$a=v8PrototypeDefineBug$g,anObject$b$7=anObject$c$7,toPropertyKey$1$g=toPropertyKey$2$e,$TypeError$6$b=TypeError,$defineProperty$g=Object.defineProperty,$getOwnPropertyDescriptor$1$e=Object.getOwnPropertyDescriptor,ENUMERABLE$g="enumerable",CONFIGURABLE$1$g="configurable",WRITABLE$g="writable";objectDefineProperty$g.f=DESCRIPTORS$7$e?V8_PROTOTYPE_DEFINE_BUG$1$a?function v(k,ie,ae){if(anObject$b$7(k),ie=toPropertyKey$1$g(ie),anObject$b$7(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$g in ae&&!ae[WRITABLE$g]){var ce=$getOwnPropertyDescriptor$1$e(k,ie);ce&&ce[WRITABLE$g]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$g in ae?ae[CONFIGURABLE$1$g]:ce[CONFIGURABLE$1$g],enumerable:ENUMERABLE$g in ae?ae[ENUMERABLE$g]:ce[ENUMERABLE$g],writable:!1})}return $defineProperty$g(k,ie,ae)}:$defineProperty$g:function v(k,ie,ae){if(anObject$b$7(k),ie=toPropertyKey$1$g(ie),anObject$b$7(ae),IE8_DOM_DEFINE$1$e)try{return $defineProperty$g(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$6$b("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var ceil$e=Math.ceil,floor$h=Math.floor,mathTrunc$e=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$h:ceil$e)(ie)},trunc2$e=mathTrunc$e,toIntegerOrInfinity$2$e=function(v){var k=+v;return k!==k||k===0?0:trunc2$e(k)},toIntegerOrInfinity$1$e=toIntegerOrInfinity$2$e,max$f=Math.max,min$1$e=Math.min,toAbsoluteIndex$1$e=function(v,k){var ie=toIntegerOrInfinity$1$e(v);return ie<0?max$f(ie+k,0):min$1$e(ie,k)},toIntegerOrInfinity$j=toIntegerOrInfinity$2$e,min$f=Math.min,toLength$1$e=function(v){return v>0?min$f(toIntegerOrInfinity$j(v),9007199254740991):0},toLength$j=toLength$1$e,lengthOfArrayLike$2$a=function(v){return toLength$j(v.length)},toIndexedObject$4$a=toIndexedObject$5$a,toAbsoluteIndex$i=toAbsoluteIndex$1$e,lengthOfArrayLike$1$e=lengthOfArrayLike$2$a,createMethod$f=function(v){return function(k,ie,ae){var ce=toIndexedObject$4$a(k),fe=lengthOfArrayLike$1$e(ce),le=toAbsoluteIndex$i(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$e={includes:createMethod$f(!0),indexOf:createMethod$f(!1)},hiddenKeys$4$a={},uncurryThis$7$e=functionUncurryThis$g,hasOwn$9$a=hasOwnProperty_1$g,toIndexedObject$3$e=toIndexedObject$5$a,indexOf$e=arrayIncludes$e.indexOf,hiddenKeys$3$e=hiddenKeys$4$a,push$f=uncurryThis$7$e([].push),objectKeysInternal$e=function(v,k){var ie=toIndexedObject$3$e(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$9$a(hiddenKeys$3$e,fe)&&hasOwn$9$a(ie,fe)&&push$f(ce,fe);for(;k.length>ae;)hasOwn$9$a(ie,fe=k[ae++])&&(~indexOf$e(ce,fe)||push$f(ce,fe));return ce},enumBugKeys$3$a=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$d=objectKeysInternal$e,enumBugKeys$2$d=enumBugKeys$3$a,objectKeys$1$d=Object.keys||function v(k){return internalObjectKeys$1$d(k,enumBugKeys$2$d)},DESCRIPTORS$6$e=descriptors$g,V8_PROTOTYPE_DEFINE_BUG$h=v8PrototypeDefineBug$g,definePropertyModule$4$9=objectDefineProperty$g,anObject$a$9=anObject$c$7,toIndexedObject$2$e=toIndexedObject$5$a,objectKeys$f=objectKeys$1$d;objectDefineProperties$a.f=DESCRIPTORS$6$e&&!V8_PROTOTYPE_DEFINE_BUG$h?Object.defineProperties:function v(k,ie){anObject$a$9(k);for(var ae=toIndexedObject$2$e(ie),ce=objectKeys$f(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$4$9.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$5$a=getBuiltIn$8$6,html$2$6=getBuiltIn$5$a("document","documentElement"),shared$1$g=shared$3$g.exports,uid$j=uid$2$g,keys2$5=shared$1$g("keys"),sharedKey$3$a=function(v){return keys2$5[v]||(keys2$5[v]=uid$j(v))},anObject$9$9=anObject$c$7,definePropertiesModule$a=objectDefineProperties$a,enumBugKeys$1$e=enumBugKeys$3$a,hiddenKeys$2$e=hiddenKeys$4$a,html$1$b=html$2$6,documentCreateElement$1$a=documentCreateElement$2$8,sharedKey$2$a=sharedKey$3$a,GT$a=">",LT$a="<",PROTOTYPE$b="prototype",SCRIPT$a="script",IE_PROTO$1$a=sharedKey$2$a("IE_PROTO"),EmptyConstructor$a=function(){},scriptTag$a=function(v){return LT$a+SCRIPT$a+GT$a+v+LT$a+"/"+SCRIPT$a+GT$a},NullProtoObjectViaActiveX$a=function(v){v.write(scriptTag$a("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$a=function(){var v=documentCreateElement$1$a("iframe"),k="java"+SCRIPT$a+":",ie;return v.style.display="none",html$1$b.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$a("document.F=Object")),ie.close(),ie.F},activeXDocument$a,NullProtoObject$a=function(){try{activeXDocument$a=new ActiveXObject("htmlfile")}catch{}NullProtoObject$a=typeof document<"u"?document.domain&&activeXDocument$a?NullProtoObjectViaActiveX$a(activeXDocument$a):NullProtoObjectViaIFrame$a():NullProtoObjectViaActiveX$a(activeXDocument$a);for(var v=enumBugKeys$1$e.length;v--;)delete NullProtoObject$a[PROTOTYPE$b][enumBugKeys$1$e[v]];return NullProtoObject$a()};hiddenKeys$2$e[IE_PROTO$1$a]=!0;var objectCreate$a=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$a[PROTOTYPE$b]=anObject$9$9(k),ae=new EmptyConstructor$a,EmptyConstructor$a[PROTOTYPE$b]=null,ae[IE_PROTO$1$a]=k):ae=NullProtoObject$a(),ie===void 0?ae:definePropertiesModule$a.f(ae,ie)},wellKnownSymbol$c$9=wellKnownSymbol$e$9,create$1$a=objectCreate$a,defineProperty$3$a=objectDefineProperty$g.f,UNSCOPABLES$a=wellKnownSymbol$c$9("unscopables"),ArrayPrototype$1$9=Array.prototype;ArrayPrototype$1$9[UNSCOPABLES$a]==null&&defineProperty$3$a(ArrayPrototype$1$9,UNSCOPABLES$a,{configurable:!0,value:create$1$a(null)});var addToUnscopables$1$a=function(v){ArrayPrototype$1$9[UNSCOPABLES$a][v]=!0},iterators$b={},uncurryThis$6$g=functionUncurryThis$g,isCallable$e$b=isCallable$k$6,store$1$g=sharedStore$g,functionToString$g=uncurryThis$6$g(Function.toString);isCallable$e$b(store$1$g.inspectSource)||(store$1$g.inspectSource=function(v){return functionToString$g(v)});var inspectSource$4$6=store$1$g.inspectSource,global$c$a=global$j$6,isCallable$d$b=isCallable$k$6,inspectSource$3$a=inspectSource$4$6,WeakMap$1$g=global$c$a.WeakMap,nativeWeakMap$g=isCallable$d$b(WeakMap$1$g)&&/native code/.test(inspectSource$3$a(WeakMap$1$g)),createPropertyDescriptor$3$a=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$5$g=descriptors$g,definePropertyModule$3$b=objectDefineProperty$g,createPropertyDescriptor$2$e=createPropertyDescriptor$3$a,createNonEnumerableProperty$4$a=DESCRIPTORS$5$g?function(v,k,ie){return definePropertyModule$3$b.f(v,k,createPropertyDescriptor$2$e(1,ie))}:function(v,k,ie){return v[k]=ie,v},NATIVE_WEAK_MAP$g=nativeWeakMap$g,global$b$b=global$j$6,uncurryThis$5$g=functionUncurryThis$g,isObject$2$g=isObject$7$a,createNonEnumerableProperty$3$a=createNonEnumerableProperty$4$a,hasOwn$8$b=hasOwnProperty_1$g,shared$j=sharedStore$g,sharedKey$1$g=sharedKey$3$a,hiddenKeys$1$e=hiddenKeys$4$a,OBJECT_ALREADY_INITIALIZED$g="Object already initialized",TypeError$2$a=global$b$b.TypeError,WeakMap$i=global$b$b.WeakMap,set$1$a,get$h,has$g,enforce$g=function(v){return has$g(v)?get$h(v):set$1$a(v,{})},getterFor$g=function(v){return function(k){var ie;if(!isObject$2$g(k)||(ie=get$h(k)).type!==v)throw TypeError$2$a("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$g||shared$j.state?(store$j=shared$j.state||(shared$j.state=new WeakMap$i),wmget$g=uncurryThis$5$g(store$j.get),wmhas$g=uncurryThis$5$g(store$j.has),wmset$g=uncurryThis$5$g(store$j.set),set$1$a=function(v,k){if(wmhas$g(store$j,v))throw new TypeError$2$a(OBJECT_ALREADY_INITIALIZED$g);return k.facade=v,wmset$g(store$j,v,k),k},get$h=function(v){return wmget$g(store$j,v)||{}},has$g=function(v){return wmhas$g(store$j,v)}):(STATE$g=sharedKey$1$g("state"),hiddenKeys$1$e[STATE$g]=!0,set$1$a=function(v,k){if(hasOwn$8$b(v,STATE$g))throw new TypeError$2$a(OBJECT_ALREADY_INITIALIZED$g);return k.facade=v,createNonEnumerableProperty$3$a(v,STATE$g,k),k},get$h=function(v){return hasOwn$8$b(v,STATE$g)?v[STATE$g]:{}},has$g=function(v){return hasOwn$8$b(v,STATE$g)});var store$j,wmget$g,wmhas$g,wmset$g,STATE$g,internalState$g={set:set$1$a,get:get$h,has:has$g,enforce:enforce$g,getterFor:getterFor$g},objectGetOwnPropertyDescriptor$e={},objectPropertyIsEnumerable$e={},$propertyIsEnumerable$e={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$6=Object.getOwnPropertyDescriptor,NASHORN_BUG$e=getOwnPropertyDescriptor$2$6&&!$propertyIsEnumerable$e.call({1:2},1);objectPropertyIsEnumerable$e.f=NASHORN_BUG$e?function v(k){var ie=getOwnPropertyDescriptor$2$6(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$e;var DESCRIPTORS$4$g=descriptors$g,call$a$a=functionCall$g,propertyIsEnumerableModule$f=objectPropertyIsEnumerable$e,createPropertyDescriptor$1$g=createPropertyDescriptor$3$a,toIndexedObject$1$e=toIndexedObject$5$a,toPropertyKey$k=toPropertyKey$2$e,hasOwn$7$c=hasOwnProperty_1$g,IE8_DOM_DEFINE$h=ie8DomDefine$g,$getOwnPropertyDescriptor$h=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$e.f=DESCRIPTORS$4$g?$getOwnPropertyDescriptor$h:function v(k,ie){if(k=toIndexedObject$1$e(k),ie=toPropertyKey$k(ie),IE8_DOM_DEFINE$h)try{return $getOwnPropertyDescriptor$h(k,ie)}catch{}if(hasOwn$7$c(k,ie))return createPropertyDescriptor$1$g(!call$a$a(propertyIsEnumerableModule$f.f,k,ie),k[ie])};var makeBuiltIn$2$g={exports:{}},DESCRIPTORS$3$g=descriptors$g,hasOwn$6$e=hasOwnProperty_1$g,FunctionPrototype$1$g=Function.prototype,getDescriptor$g=DESCRIPTORS$3$g&&Object.getOwnPropertyDescriptor,EXISTS$h=hasOwn$6$e(FunctionPrototype$1$g,"name"),PROPER$g=EXISTS$h&&function v(){}.name==="something",CONFIGURABLE$h=EXISTS$h&&(!DESCRIPTORS$3$g||DESCRIPTORS$3$g&&getDescriptor$g(FunctionPrototype$1$g,"name").configurable),functionName$g={EXISTS:EXISTS$h,PROPER:PROPER$g,CONFIGURABLE:CONFIGURABLE$h},fails$6$g=fails$d$9,isCallable$c$b=isCallable$k$6,hasOwn$5$e=hasOwnProperty_1$g,DESCRIPTORS$2$g=descriptors$g,CONFIGURABLE_FUNCTION_NAME$1$a=functionName$g.CONFIGURABLE,inspectSource$2$g=inspectSource$4$6,InternalStateModule$2$9=internalState$g,enforceInternalState$i=InternalStateModule$2$9.enforce,getInternalState$1$a=InternalStateModule$2$9.get,defineProperty$2$e=Object.defineProperty,CONFIGURABLE_LENGTH$g=DESCRIPTORS$2$g&&!fails$6$g(function(){return defineProperty$2$e(function(){},"length",{value:8}).length!==8}),TEMPLATE$g=String(String).split("String"),makeBuiltIn$1$g=makeBuiltIn$2$g.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$5$e(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$a&&v.name!==k)&&(DESCRIPTORS$2$g?defineProperty$2$e(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$g&&ie&&hasOwn$5$e(ie,"arity")&&v.length!==ie.arity&&defineProperty$2$e(v,"length",{value:ie.arity});try{ie&&hasOwn$5$e(ie,"constructor")&&ie.constructor?DESCRIPTORS$2$g&&defineProperty$2$e(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$i(v);return hasOwn$5$e(ae,"source")||(ae.source=TEMPLATE$g.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$g(function v(){return isCallable$c$b(this)&&getInternalState$1$a(this).source||inspectSource$2$g(this)},"toString");var isCallable$b$c=isCallable$k$6,definePropertyModule$2$e=objectDefineProperty$g,makeBuiltIn$i=makeBuiltIn$2$g.exports,defineGlobalProperty$1$g=defineGlobalProperty$3$e,defineBuiltIn$6$9=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$b$c(ie)&&makeBuiltIn$i(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$g(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$2$e.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$e={},internalObjectKeys$f=objectKeysInternal$e,enumBugKeys$h=enumBugKeys$3$a,hiddenKeys$i=enumBugKeys$h.concat("length","prototype");objectGetOwnPropertyNames$e.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$f(k,hiddenKeys$i)};var objectGetOwnPropertySymbols$e={};objectGetOwnPropertySymbols$e.f=Object.getOwnPropertySymbols;var getBuiltIn$4$b=getBuiltIn$8$6,uncurryThis$4$g=functionUncurryThis$g,getOwnPropertyNamesModule$e=objectGetOwnPropertyNames$e,getOwnPropertySymbolsModule$f=objectGetOwnPropertySymbols$e,anObject$8$a=anObject$c$7,concat$g=uncurryThis$4$g([].concat),ownKeys$1$e=getBuiltIn$4$b("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$e.f(anObject$8$a(k)),ae=getOwnPropertySymbolsModule$f.f;return ae?concat$g(ie,ae(k)):ie},hasOwn$4$g=hasOwnProperty_1$g,ownKeys2$e=ownKeys$1$e,getOwnPropertyDescriptorModule$f=objectGetOwnPropertyDescriptor$e,definePropertyModule$1$g=objectDefineProperty$g,copyConstructorProperties$1$e=function(v,k,ie){for(var ae=ownKeys2$e(k),ce=definePropertyModule$1$g.f,fe=getOwnPropertyDescriptorModule$f.f,le=0;le=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$a=Iterators$2$a.Arguments=Iterators$2$a.Array;addToUnscopables$b("keys");addToUnscopables$b("values");addToUnscopables$b("entries");if(DESCRIPTORS$1$g&&values$a.name!=="values")try{defineProperty3$d(values$a,"name",{value:"values"})}catch(v){}var domIterables$7={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$h=documentCreateElement$2$8,classList$7=documentCreateElement$h("span").classList,DOMTokenListPrototype$1$7=classList$7&&classList$7.constructor&&classList$7.constructor.prototype,domTokenListPrototype$7=DOMTokenListPrototype$1$7===Object.prototype?void 0:DOMTokenListPrototype$1$7,global$9$g=global$j$6,DOMIterables$7=domIterables$7,DOMTokenListPrototype$8=domTokenListPrototype$7,ArrayIteratorMethods$7=es_array_iterator$7,createNonEnumerableProperty$m=createNonEnumerableProperty$4$a,wellKnownSymbol$8$b=wellKnownSymbol$e$9,ITERATOR$3$9=wellKnownSymbol$8$b("iterator"),TO_STRING_TAG$2$b=wellKnownSymbol$8$b("toStringTag"),ArrayValues$7=ArrayIteratorMethods$7.values,handlePrototype$7=function(v,k){if(v){if(v[ITERATOR$3$9]!==ArrayValues$7)try{createNonEnumerableProperty$m(v,ITERATOR$3$9,ArrayValues$7)}catch{v[ITERATOR$3$9]=ArrayValues$7}if(v[TO_STRING_TAG$2$b]||createNonEnumerableProperty$m(v,TO_STRING_TAG$2$b,k),DOMIterables$7[k]){for(var ie in ArrayIteratorMethods$7)if(v[ie]!==ArrayIteratorMethods$7[ie])try{createNonEnumerableProperty$m(v,ie,ArrayIteratorMethods$7[ie])}catch{v[ie]=ArrayIteratorMethods$7[ie]}}}};for(COLLECTION_NAME$7 in DOMIterables$7)handlePrototype$7(global$9$g[COLLECTION_NAME$7]&&global$9$g[COLLECTION_NAME$7].prototype,COLLECTION_NAME$7);var COLLECTION_NAME$7;handlePrototype$7(DOMTokenListPrototype$8,"DOMTokenList");var classof$4$a=classofRaw$1$e,global$8$g=global$j$6,engineIsNode$6=classof$4$a(global$8$g.process)=="process",getBuiltIn$3$e=getBuiltIn$8$6,definePropertyModule$m=objectDefineProperty$g,wellKnownSymbol$7$b=wellKnownSymbol$e$9,DESCRIPTORS$t=descriptors$g,SPECIES$2$a=wellKnownSymbol$7$b("species"),setSpecies$1$a=function(v){var k=getBuiltIn$3$e(v),ie=definePropertyModule$m.f;DESCRIPTORS$t&&k&&!k[SPECIES$2$a]&&ie(k,SPECIES$2$a,{configurable:!0,get:function(){return this}})},isPrototypeOf$2$a=objectIsPrototypeOf$g,$TypeError$4$g=TypeError,anInstance$1$a=function(v,k){if(isPrototypeOf$2$a(k,v))return v;throw $TypeError$4$g("Incorrect invocation")},wellKnownSymbol$6$b=wellKnownSymbol$e$9,TO_STRING_TAG$1$e=wellKnownSymbol$6$b("toStringTag"),test$e={};test$e[TO_STRING_TAG$1$e]="z";var toStringTagSupport$e=String(test$e)==="[object z]",TO_STRING_TAG_SUPPORT$e=toStringTagSupport$e,isCallable$5$g=isCallable$k$6,classofRaw$h=classofRaw$1$e,wellKnownSymbol$5$b=wellKnownSymbol$e$9,TO_STRING_TAG$h=wellKnownSymbol$5$b("toStringTag"),$Object$k=Object,CORRECT_ARGUMENTS$e=classofRaw$h(function(){return arguments}())=="Arguments",tryGet$e=function(v,k){try{return v[k]}catch{}},classof$3$a=TO_STRING_TAG_SUPPORT$e?classofRaw$h:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$e(k=$Object$k(v),TO_STRING_TAG$h))=="string"?ie:CORRECT_ARGUMENTS$e?classofRaw$h(k):(ae=classofRaw$h(k))=="Object"&&isCallable$5$g(k.callee)?"Arguments":ae},uncurryThis$2$g=functionUncurryThis$g,fails$2$g=fails$d$9,isCallable$4$g=isCallable$k$6,classof$2$c=classof$3$a,getBuiltIn$2$g=getBuiltIn$8$6,inspectSource$1$g=inspectSource$4$6,noop$a=function(){},empty$9=[],construct$a=getBuiltIn$2$g("Reflect","construct"),constructorRegExp$a=/^\s*(?:class|function)\b/,exec$b=uncurryThis$2$g(constructorRegExp$a.exec),INCORRECT_TO_STRING$a=!constructorRegExp$a.exec(noop$a),isConstructorModern$a=function v(k){if(!isCallable$4$g(k))return!1;try{return construct$a(noop$a,empty$9,k),!0}catch{return!1}},isConstructorLegacy$a=function v(k){if(!isCallable$4$g(k))return!1;switch(classof$2$c(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$a||!!exec$b(constructorRegExp$a,inspectSource$1$g(k))}catch{return!0}};isConstructorLegacy$a.sham=!0;var isConstructor$1$a=!construct$a||fails$2$g(function(){var v;return isConstructorModern$a(isConstructorModern$a.call)||!isConstructorModern$a(Object)||!isConstructorModern$a(function(){v=!0})||v})?isConstructorLegacy$a:isConstructorModern$a,isConstructor3$a=isConstructor$1$a,tryToString$2$a=tryToString$4$a,$TypeError$3$g=TypeError,aConstructor$1$a=function(v){if(isConstructor3$a(v))return v;throw $TypeError$3$g(tryToString$2$a(v)+" is not a constructor")},anObject$6$b=anObject$c$7,aConstructor$c=aConstructor$1$a,wellKnownSymbol$4$b=wellKnownSymbol$e$9,SPECIES$1$a=wellKnownSymbol$4$b("species"),speciesConstructor$1$a=function(v,k){var ie=anObject$6$b(v).constructor,ae;return ie===void 0||(ae=anObject$6$b(ie)[SPECIES$1$a])==null?k:aConstructor$c(ae)},NATIVE_BIND$1$g=functionBindNative$g,FunctionPrototype$i=Function.prototype,apply$1$a=FunctionPrototype$i.apply,call$8$a=FunctionPrototype$i.call,functionApply$a=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$1$g?call$8$a.bind(apply$1$a):function(){return call$8$a.apply(apply$1$a,arguments)}),uncurryThis$1$g=functionUncurryThis$g,aCallable$5$6=aCallable$7$6,NATIVE_BIND$j=functionBindNative$g,bind$4$6=uncurryThis$1$g(uncurryThis$1$g.bind),functionBindContext$a=function(v,k){return aCallable$5$6(v),k===void 0?v:NATIVE_BIND$j?bind$4$6(v,k):function(){return v.apply(k,arguments)}},uncurryThis$A=functionUncurryThis$g,arraySlice$1$a=uncurryThis$A([].slice),$TypeError$2$g=TypeError,validateArgumentsLength$1$6=function(v,k){if(v=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3$6(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$c]=ae,SUBCLASSING$6=ie.then(function(){})instanceof ae,SUBCLASSING$6?!k&&IS_BROWSER$6&&!NATIVE_PROMISE_REJECTION_EVENT$1$6:!0}),promiseConstructorDetection$6={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$6,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$6,SUBCLASSING:SUBCLASSING$6},newPromiseCapability$2$6={},aCallable$4$a=aCallable$7$6,PromiseCapability$6=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$a(k),this.reject=aCallable$4$a(ie)};newPromiseCapability$2$6.f=function(v){return new PromiseCapability$6(v)};var $$5$6=_export$e,IS_NODE$8=engineIsNode$6,global$1$g=global$j$6,call$7$a=functionCall$g,defineBuiltIn$2$c=defineBuiltIn$6$9,setPrototypeOf$f=objectSetPrototypeOf$b,setToStringTag$e=setToStringTag$3$9,setSpecies$b=setSpecies$1$a,aCallable$3$a=aCallable$7$6,isCallable$1$g=isCallable$k$6,isObject$1$g=isObject$7$a,anInstance$c=anInstance$1$a,speciesConstructor$b=speciesConstructor$1$a,task$7=task$1$6.set,microtask$7=microtask$1$6,hostReportErrors$7=hostReportErrors$1$6,perform$2$6=perform$3$6,Queue$7=queue$7,InternalStateModule$k=internalState$g,NativePromiseConstructor$2$6=promiseNativeConstructor$6,PromiseConstructorDetection$6=promiseConstructorDetection$6,newPromiseCapabilityModule$3$6=newPromiseCapability$2$6,PROMISE$6="Promise",FORCED_PROMISE_CONSTRUCTOR$4$6=PromiseConstructorDetection$6.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$7=PromiseConstructorDetection$6.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$6=PromiseConstructorDetection$6.SUBCLASSING,getInternalPromiseState$6=InternalStateModule$k.getterFor(PROMISE$6),setInternalState$d=InternalStateModule$k.set,NativePromisePrototype$1$6=NativePromiseConstructor$2$6&&NativePromiseConstructor$2$6.prototype,PromiseConstructor$6=NativePromiseConstructor$2$6,PromisePrototype$6=NativePromisePrototype$1$6,TypeError$1$g=global$1$g.TypeError,document$1$b=global$1$g.document,process$h=global$1$g.process,newPromiseCapability$1$6=newPromiseCapabilityModule$3$6.f,newGenericPromiseCapability$6=newPromiseCapability$1$6,DISPATCH_EVENT$6=!!(document$1$b&&document$1$b.createEvent&&global$1$g.dispatchEvent),UNHANDLED_REJECTION$6="unhandledrejection",REJECTION_HANDLED$6="rejectionhandled",PENDING$6=0,FULFILLED$6=1,REJECTED$6=2,HANDLED$6=1,UNHANDLED$6=2,Internal$6,OwnPromiseCapability$6,PromiseWrapper$6,nativeThen$6,isThenable$6=function(v){var k;return isObject$1$g(v)&&isCallable$1$g(k=v.then)?k:!1},callReaction$6=function(v,k){var ie=k.value,ae=k.state==FULFILLED$6,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$6&&onHandleUnhandled$6(k),k.rejection=HANDLED$6),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$g("Promise-chain cycle")):(ye=isThenable$6(pe))?call$7$a(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$7=function(v,k){v.notified||(v.notified=!0,microtask$7(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$6(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$6(v)}))},dispatchEvent$6=function(v,k,ie){var ae,ce;DISPATCH_EVENT$6?(ae=document$1$b.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$1$g.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$7&&(ce=global$1$g["on"+v])?ce(ae):v===UNHANDLED_REJECTION$6&&hostReportErrors$7("Unhandled promise rejection",ie)},onUnhandled$6=function(v){call$7$a(task$7,global$1$g,function(){var k=v.facade,ie=v.value,ae=isUnhandled$6(v),ce;if(ae&&(ce=perform$2$6(function(){IS_NODE$8?process$h.emit("unhandledRejection",ie,k):dispatchEvent$6(UNHANDLED_REJECTION$6,k,ie)}),v.rejection=IS_NODE$8||isUnhandled$6(v)?UNHANDLED$6:HANDLED$6,ce.error))throw ce.value})},isUnhandled$6=function(v){return v.rejection!==HANDLED$6&&!v.parent},onHandleUnhandled$6=function(v){call$7$a(task$7,global$1$g,function(){var k=v.facade;IS_NODE$8?process$h.emit("rejectionHandled",k):dispatchEvent$6(REJECTION_HANDLED$6,k,v.value)})},bind$1$a=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$6=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$6,notify$7(v,!0))},internalResolve$6=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$g("Promise can't be resolved itself");var ae=isThenable$6(k);ae?microtask$7(function(){var ce={done:!1};try{call$7$a(ae,k,bind$1$a(internalResolve$6,ce,v),bind$1$a(internalReject$6,ce,v))}catch(fe){internalReject$6(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$6,notify$7(v,!1))}catch(ce){internalReject$6({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$6&&(PromiseConstructor$6=function(k){anInstance$c(this,PromisePrototype$6),aCallable$3$a(k),call$7$a(Internal$6,this);var ie=getInternalPromiseState$6(this);try{k(bind$1$a(internalResolve$6,ie),bind$1$a(internalReject$6,ie))}catch(ae){internalReject$6(ie,ae)}},PromisePrototype$6=PromiseConstructor$6.prototype,Internal$6=function(k){setInternalState$d(this,{type:PROMISE$6,done:!1,notified:!1,parent:!1,reactions:new Queue$7,rejection:!1,state:PENDING$6,value:void 0})},Internal$6.prototype=defineBuiltIn$2$c(PromisePrototype$6,"then",function(k,ie){var ae=getInternalPromiseState$6(this),ce=newPromiseCapability$1$6(speciesConstructor$b(this,PromiseConstructor$6));return ae.parent=!0,ce.ok=isCallable$1$g(k)?k:!0,ce.fail=isCallable$1$g(ie)&&ie,ce.domain=IS_NODE$8?process$h.domain:void 0,ae.state==PENDING$6?ae.reactions.add(ce):microtask$7(function(){callReaction$6(ce,ae)}),ce.promise}),OwnPromiseCapability$6=function(){var v=new Internal$6,k=getInternalPromiseState$6(v);this.promise=v,this.resolve=bind$1$a(internalResolve$6,k),this.reject=bind$1$a(internalReject$6,k)},newPromiseCapabilityModule$3$6.f=newPromiseCapability$1$6=function(v){return v===PromiseConstructor$6||v===PromiseWrapper$6?new OwnPromiseCapability$6(v):newGenericPromiseCapability$6(v)},isCallable$1$g(NativePromiseConstructor$2$6)&&NativePromisePrototype$1$6!==Object.prototype)){nativeThen$6=NativePromisePrototype$1$6.then,NATIVE_PROMISE_SUBCLASSING$6||defineBuiltIn$2$c(NativePromisePrototype$1$6,"then",function(k,ie){var ae=this;return new PromiseConstructor$6(function(ce,fe){call$7$a(nativeThen$6,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1$6.constructor}catch{}setPrototypeOf$f&&setPrototypeOf$f(NativePromisePrototype$1$6,PromisePrototype$6)}$$5$6({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$6},{Promise:PromiseConstructor$6});setToStringTag$e(PromiseConstructor$6,PROMISE$6,!1);setSpecies$b(PROMISE$6);var wellKnownSymbol$2$e=wellKnownSymbol$e$9,Iterators$1$b=iterators$b,ITERATOR$2$b=wellKnownSymbol$2$e("iterator"),ArrayPrototype$c=Array.prototype,isArrayIteratorMethod$1$a=function(v){return v!==void 0&&(Iterators$1$b.Array===v||ArrayPrototype$c[ITERATOR$2$b]===v)},classof$1$e=classof$3$a,getMethod$1$g=getMethod$3$7,Iterators$f=iterators$b,wellKnownSymbol$1$g=wellKnownSymbol$e$9,ITERATOR$1$b=wellKnownSymbol$1$g("iterator"),getIteratorMethod$2$a=function(v){if(v!=null)return getMethod$1$g(v,ITERATOR$1$b)||getMethod$1$g(v,"@@iterator")||Iterators$f[classof$1$e(v)]},call$6$c=functionCall$g,aCallable$2$a=aCallable$7$6,anObject$5$b=anObject$c$7,tryToString$1$g=tryToString$4$a,getIteratorMethod$1$a=getIteratorMethod$2$a,$TypeError$1$g=TypeError,getIterator$1$a=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$a(v):k;if(aCallable$2$a(ie))return anObject$5$b(call$6$c(ie,v));throw $TypeError$1$g(tryToString$1$g(v)+" is not iterable")},call$5$e=functionCall$g,anObject$4$c=anObject$c$7,getMethod$j=getMethod$3$7,iteratorClose$1$6=function(v,k,ie){var ae,ce;anObject$4$c(v);try{if(ae=getMethod$j(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$5$e(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$4$c(ae),ie},bind$l=functionBindContext$a,call$4$g=functionCall$g,anObject$3$e=anObject$c$7,tryToString$k=tryToString$4$a,isArrayIteratorMethod$b=isArrayIteratorMethod$1$a,lengthOfArrayLike$k=lengthOfArrayLike$2$a,isPrototypeOf$1$e=objectIsPrototypeOf$g,getIterator$b=getIterator$1$a,getIteratorMethod$c=getIteratorMethod$2$a,iteratorClose$7=iteratorClose$1$6,$TypeError$r=TypeError,Result$6=function(v,k){this.stopped=v,this.result=k},ResultPrototype$6=Result$6.prototype,iterate$2$6=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$l(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$7(pe,"normal",ur),new Result$6(!0,ur)},Ar=function(ur){return ce?(anObject$3$e(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$c(v),!ye)throw $TypeError$r(tryToString$k(v)+" is not iterable");if(isArrayIteratorMethod$b(ye)){for(me=0,Ee=lengthOfArrayLike$k(v);Ee>me;me++)if(cr=Ar(v[me]),cr&&isPrototypeOf$1$e(ResultPrototype$6,cr))return cr;return new Result$6(!1)}pe=getIterator$b(v,ye)}for(Br=pe.next;!($r=call$4$g(Br,pe)).done;){try{cr=Ar($r.value)}catch(ur){iteratorClose$7(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$1$e(ResultPrototype$6,cr))return cr}return new Result$6(!1)},wellKnownSymbol$u=wellKnownSymbol$e$9,ITERATOR$f=wellKnownSymbol$u("iterator"),SAFE_CLOSING$a=!1;try{called$a=0,iteratorWithReturn$a={next:function(){return{done:!!called$a++}},return:function(){SAFE_CLOSING$a=!0}},iteratorWithReturn$a[ITERATOR$f]=function(){return this},Array.from(iteratorWithReturn$a,function(){throw 2})}catch(v){}var called$a,iteratorWithReturn$a,checkCorrectnessOfIteration$1$a=function(v,k){if(!k&&!SAFE_CLOSING$a)return!1;var ie=!1;try{var ae={};ae[ITERATOR$f]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1$6=promiseNativeConstructor$6,checkCorrectnessOfIteration$b=checkCorrectnessOfIteration$1$a,FORCED_PROMISE_CONSTRUCTOR$3$6=promiseConstructorDetection$6.CONSTRUCTOR,promiseStaticsIncorrectIteration$6=FORCED_PROMISE_CONSTRUCTOR$3$6||!checkCorrectnessOfIteration$b(function(v){NativePromiseConstructor$1$6.all(v).then(void 0,function(){})}),$$4$7=_export$e,call$3$g=functionCall$g,aCallable$1$g=aCallable$7$6,newPromiseCapabilityModule$2$6=newPromiseCapability$2$6,perform$1$6=perform$3$6,iterate$1$6=iterate$2$6,PROMISE_STATICS_INCORRECT_ITERATION$1$6=promiseStaticsIncorrectIteration$6;$$4$7({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$6},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$6.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$6(function(){var ve=aCallable$1$g(ie.resolve),pe=[],ye=0,me=1;iterate$1$6(k,function(Ee){var cr=ye++,Br=!1;me++,call$3$g(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$3$a=_export$e,FORCED_PROMISE_CONSTRUCTOR$2$6=promiseConstructorDetection$6.CONSTRUCTOR,NativePromiseConstructor$9=promiseNativeConstructor$6,getBuiltIn$1$g=getBuiltIn$8$6,isCallable$y=isCallable$k$6,defineBuiltIn$1$g=defineBuiltIn$6$9,NativePromisePrototype$7=NativePromiseConstructor$9&&NativePromiseConstructor$9.prototype;$$3$a({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$6,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$y(NativePromiseConstructor$9)&&(method$6=getBuiltIn$1$g("Promise").prototype.catch,NativePromisePrototype$7.catch!==method$6&&defineBuiltIn$1$g(NativePromisePrototype$7,"catch",method$6,{unsafe:!0}));var method$6,$$2$a=_export$e,call$2$g=functionCall$g,aCallable$n=aCallable$7$6,newPromiseCapabilityModule$1$6=newPromiseCapability$2$6,perform$9=perform$3$6,iterate$8=iterate$2$6,PROMISE_STATICS_INCORRECT_ITERATION$7=promiseStaticsIncorrectIteration$6;$$2$a({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$7},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$6.f(ie),ce=ae.reject,fe=perform$9(function(){var le=aCallable$n(ie.resolve);iterate$8(k,function(ve){call$2$g(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$1$a=_export$e,call$1$g=functionCall$g,newPromiseCapabilityModule$9=newPromiseCapability$2$6,FORCED_PROMISE_CONSTRUCTOR$1$6=promiseConstructorDetection$6.CONSTRUCTOR;$$1$a({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$6},{reject:function v(k){var ie=newPromiseCapabilityModule$9.f(this);return call$1$g(ie.reject,void 0,k),ie.promise}});var anObject$2$g=anObject$c$7,isObject$r=isObject$7$a,newPromiseCapability$8=newPromiseCapability$2$6,promiseResolve$1$6=function(v,k){if(anObject$2$g(v),isObject$r(k)&&k.constructor===v)return k;var ie=newPromiseCapability$8.f(v),ae=ie.resolve;return ae(k),ie.promise},$$l=_export$e,getBuiltIn$o=getBuiltIn$8$6,FORCED_PROMISE_CONSTRUCTOR$b=promiseConstructorDetection$6.CONSTRUCTOR,promiseResolve$7=promiseResolve$1$6;getBuiltIn$o("Promise");$$l({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$b},{resolve:function v(k){return promiseResolve$7(this,k)}});var classof$o=classof$3$a,$String$j=String,toString2$d=function(v){if(classof$o(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$j(v)},anObject$1$g=anObject$c$7,regexpFlags$d=function(){var v=anObject$1$g(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$u=functionCall$g,hasOwn2$g=hasOwnProperty_1$g,isPrototypeOf$k=objectIsPrototypeOf$g,regExpFlags$d=regexpFlags$d,RegExpPrototype$1$d=RegExp.prototype,regexpGetFlags$d=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$d)&&!hasOwn2$g(v,"flags")&&isPrototypeOf$k(RegExpPrototype$1$d,v)?call$u(regExpFlags$d,v):k},PROPER_FUNCTION_NAME$f=functionName$g.PROPER,defineBuiltIn$m=defineBuiltIn$6$9,anObject$q=anObject$c$7,$toString$d=toString2$d,fails$C=fails$d$9,getRegExpFlags$d=regexpGetFlags$d,TO_STRING$d="toString",RegExpPrototype$e=RegExp.prototype,n$ToString$d=RegExpPrototype$e[TO_STRING$d],NOT_GENERIC$d=fails$C(function(){return n$ToString$d.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$d=PROPER_FUNCTION_NAME$f&&n$ToString$d.name!=TO_STRING$d;(NOT_GENERIC$d||INCORRECT_NAME$d)&&defineBuiltIn$m(RegExp.prototype,TO_STRING$d,function(){var k=anObject$q(this),ie=$toString$d(k.source),ae=$toString$d(getRegExpFlags$d(k));return"/"+ie+"/"+ae},{unsafe:!0});function __awaiter$j(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var signTransactions=(v,k,ie)=>__awaiter$j(void 0,void 0,void 0,function*(){const ae=new nearAPI$8.providers.JsonRpcProvider({url:ie.nodeUrl}),ce=[];for(let fe=0;fecreateAction(cr)),me=nearAPI$8.transactions.createTransaction(v[fe].signerId,nearAPI$8.utils.PublicKey.from(le.toString()),v[fe].receiverId,pe.nonce+fe+1,ye,nearAPI$8.utils.serialize.base_decode(ve.header.hash)),Ee=yield nearAPI$8.transactions.signTransaction(me,k,v[fe].signerId,ie.networkId);ce.push(Ee[1])}return ce}),nearAPI$7=__toESM(require_browser_index2$1()),commonjsGlobal$g=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$f=function(v){return v&&v.Math==Math&&v},global$j$5=check$f(typeof globalThis=="object"&&globalThis)||check$f(typeof window=="object"&&window)||check$f(typeof self=="object"&&self)||check$f(typeof commonjsGlobal$g=="object"&&commonjsGlobal$g)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$d={},fails$e$8=function(v){try{return!!v()}catch{return!0}},fails$d$8=fails$e$8,descriptors$f=!fails$d$8(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$c$8=fails$e$8,functionBindNative$f=!fails$c$8(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$9=functionBindNative$f,call$f$6=Function.prototype.call,functionCall$f=NATIVE_BIND$3$9?call$f$6.bind(call$f$6):function(){return call$f$6.apply(call$f$6,arguments)},objectPropertyIsEnumerable$d={},$propertyIsEnumerable$d={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$5=Object.getOwnPropertyDescriptor,NASHORN_BUG$d=getOwnPropertyDescriptor$2$5&&!$propertyIsEnumerable$d.call({1:2},1);objectPropertyIsEnumerable$d.f=NASHORN_BUG$d?function v(k){var ie=getOwnPropertyDescriptor$2$5(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$d;var createPropertyDescriptor$3$9=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2$9=functionBindNative$f,FunctionPrototype$2$9=Function.prototype,bind$5$5=FunctionPrototype$2$9.bind,call$e$6=FunctionPrototype$2$9.call,uncurryThis$e$8=NATIVE_BIND$2$9&&bind$5$5.bind(call$e$6,call$e$6),functionUncurryThis$f=NATIVE_BIND$2$9?function(v){return v&&uncurryThis$e$8(v)}:function(v){return v&&function(){return call$e$6.apply(v,arguments)}},uncurryThis$d$9=functionUncurryThis$f,toString$2$c=uncurryThis$d$9({}.toString),stringSlice$f=uncurryThis$d$9("".slice),classofRaw$1$d=function(v){return stringSlice$f(toString$2$c(v),8,-1)},uncurryThis$c$9=functionUncurryThis$f,fails$b$9=fails$e$8,classof$5$8=classofRaw$1$d,$Object$4$9=Object,split$d=uncurryThis$c$9("".split),indexedObject$d=fails$b$9(function(){return!$Object$4$9("z").propertyIsEnumerable(0)})?function(v){return classof$5$8(v)=="String"?split$d(v,""):$Object$4$9(v)}:$Object$4$9,$TypeError$b$6=TypeError,requireObjectCoercible$2$d=function(v){if(v==null)throw $TypeError$b$6("Can't call method on "+v);return v},IndexedObject$1$b=indexedObject$d,requireObjectCoercible$1$f=requireObjectCoercible$2$d,toIndexedObject$5$9=function(v){return IndexedObject$1$b(requireObjectCoercible$1$f(v))},isCallable$k$5=function(v){return typeof v=="function"},isCallable$j$6=isCallable$k$5,isObject$7$9=function(v){return typeof v=="object"?v!==null:isCallable$j$6(v)},global$i$6=global$j$5,isCallable$i$8=isCallable$k$5,aFunction$f=function(v){return isCallable$i$8(v)?v:void 0},getBuiltIn$8$5=function(v,k){return arguments.length<2?aFunction$f(global$i$6[v]):global$i$6[v]&&global$i$6[v][k]},uncurryThis$b$9=functionUncurryThis$f,objectIsPrototypeOf$f=uncurryThis$b$9({}.isPrototypeOf),getBuiltIn$7$5=getBuiltIn$8$5,engineUserAgent$f=getBuiltIn$7$5("navigator","userAgent")||"",global$h$9=global$j$5,userAgent$3$5=engineUserAgent$f,process$3$5=global$h$9.process,Deno$1$6=global$h$9.Deno,versions$f=process$3$5&&process$3$5.versions||Deno$1$6&&Deno$1$6.version,v8$f=versions$f&&versions$f.v8,match$f,version$f;v8$f&&(match$f=v8$f.split("."),version$f=match$f[0]>0&&match$f[0]<4?1:+(match$f[0]+match$f[1]));!version$f&&userAgent$3$5&&(match$f=userAgent$3$5.match(/Edge\/(\d+)/),(!match$f||match$f[1]>=74)&&(match$f=userAgent$3$5.match(/Chrome\/(\d+)/),match$f&&(version$f=+match$f[1])));var engineV8Version$f=version$f,V8_VERSION$1$5=engineV8Version$f,fails$a$b=fails$e$8,nativeSymbol$f=!!Object.getOwnPropertySymbols&&!fails$a$b(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$5&&V8_VERSION$1$5<41}),NATIVE_SYMBOL$1$f=nativeSymbol$f,useSymbolAsUid$f=NATIVE_SYMBOL$1$f&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$6$9=getBuiltIn$8$5,isCallable$h$9=isCallable$k$5,isPrototypeOf$3$8=objectIsPrototypeOf$f,USE_SYMBOL_AS_UID$1$f=useSymbolAsUid$f,$Object$3$b=Object,isSymbol$2$f=USE_SYMBOL_AS_UID$1$f?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$9("Symbol");return isCallable$h$9(k)&&isPrototypeOf$3$8(k.prototype,$Object$3$b(v))},$String$3$9=String,tryToString$4$9=function(v){try{return $String$3$9(v)}catch{return"Object"}},isCallable$g$9=isCallable$k$5,tryToString$3$9=tryToString$4$9,$TypeError$a$9=TypeError,aCallable$7$5=function(v){if(isCallable$g$9(v))return v;throw $TypeError$a$9(tryToString$3$9(v)+" is not a function")},aCallable$6$5=aCallable$7$5,getMethod$3$6=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$6$5(ie)},call$d$8=functionCall$f,isCallable$f$a=isCallable$k$5,isObject$6$9=isObject$7$9,$TypeError$9$9=TypeError,ordinaryToPrimitive$1$f=function(v,k){var ie,ae;if(k==="string"&&isCallable$f$a(ie=v.toString)&&!isObject$6$9(ae=call$d$8(ie,v))||isCallable$f$a(ie=v.valueOf)&&!isObject$6$9(ae=call$d$8(ie,v))||k!=="string"&&isCallable$f$a(ie=v.toString)&&!isObject$6$9(ae=call$d$8(ie,v)))return ae;throw $TypeError$9$9("Can't convert object to primitive value")},shared$3$f={exports:{}},global$g$9=global$j$5,defineProperty$5$8=Object.defineProperty,defineGlobalProperty$3$d=function(v,k){try{defineProperty$5$8(global$g$9,v,{value:k,configurable:!0,writable:!0})}catch{global$g$9[v]=k}return k},global$f$9=global$j$5,defineGlobalProperty$2$f=defineGlobalProperty$3$d,SHARED$f="__core-js_shared__",store$3$f=global$f$9[SHARED$f]||defineGlobalProperty$2$f(SHARED$f,{}),sharedStore$f=store$3$f,store$2$f=sharedStore$f;(shared$3$f.exports=function(v,k){return store$2$f[v]||(store$2$f[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$h=requireObjectCoercible$2$d,$Object$2$f=Object,toObject$3$8=function(v){return $Object$2$f(requireObjectCoercible$h(v))},uncurryThis$a$d=functionUncurryThis$f,toObject$2$c=toObject$3$8,hasOwnProperty$f=uncurryThis$a$d({}.hasOwnProperty),hasOwnProperty_1$f=Object.hasOwn||function v(k,ie){return hasOwnProperty$f(toObject$2$c(k),ie)},uncurryThis$9$d=functionUncurryThis$f,id$h=0,postfix$f=Math.random(),toString$1$f=uncurryThis$9$d(1 .toString),uid$2$f=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$1$f(++id$h+postfix$f,36)},global$e$9=global$j$5,shared$2$f=shared$3$f.exports,hasOwn$a$8=hasOwnProperty_1$f,uid$1$f=uid$2$f,NATIVE_SYMBOL$g=nativeSymbol$f,USE_SYMBOL_AS_UID$g=useSymbolAsUid$f,WellKnownSymbolsStore$f=shared$2$f("wks"),Symbol$1$f=global$e$9.Symbol,symbolFor$f=Symbol$1$f&&Symbol$1$f.for,createWellKnownSymbol$f=USE_SYMBOL_AS_UID$g?Symbol$1$f:Symbol$1$f&&Symbol$1$f.withoutSetter||uid$1$f,wellKnownSymbol$e$8=function(v){if(!hasOwn$a$8(WellKnownSymbolsStore$f,v)||!(NATIVE_SYMBOL$g||typeof WellKnownSymbolsStore$f[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$g&&hasOwn$a$8(Symbol$1$f,v)?WellKnownSymbolsStore$f[v]=Symbol$1$f[v]:USE_SYMBOL_AS_UID$g&&symbolFor$f?WellKnownSymbolsStore$f[v]=symbolFor$f(k):WellKnownSymbolsStore$f[v]=createWellKnownSymbol$f(k)}return WellKnownSymbolsStore$f[v]},call$c$9=functionCall$f,isObject$5$f=isObject$7$9,isSymbol$1$f=isSymbol$2$f,getMethod$2$9=getMethod$3$6,ordinaryToPrimitive$g=ordinaryToPrimitive$1$f,wellKnownSymbol$d$8=wellKnownSymbol$e$8,$TypeError$8$9=TypeError,TO_PRIMITIVE$f=wellKnownSymbol$d$8("toPrimitive"),toPrimitive$1$f=function(v,k){if(!isObject$5$f(v)||isSymbol$1$f(v))return v;var ie=getMethod$2$9(v,TO_PRIMITIVE$f),ae;if(ie){if(k===void 0&&(k="default"),ae=call$c$9(ie,v,k),!isObject$5$f(ae)||isSymbol$1$f(ae))return ae;throw $TypeError$8$9("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$g(v,k)},toPrimitive$h=toPrimitive$1$f,isSymbol$i=isSymbol$2$f,toPropertyKey$2$d=function(v){var k=toPrimitive$h(v,"string");return isSymbol$i(k)?k:k+""},global$d$9=global$j$5,isObject$4$f=isObject$7$9,document$3$5=global$d$9.document,EXISTS$1$f=isObject$4$f(document$3$5)&&isObject$4$f(document$3$5.createElement),documentCreateElement$2$7=function(v){return EXISTS$1$f?document$3$5.createElement(v):{}},DESCRIPTORS$a$8=descriptors$f,fails$9$d=fails$e$8,createElement$1$5=documentCreateElement$2$7,ie8DomDefine$f=!DESCRIPTORS$a$8&&!fails$9$d(function(){return Object.defineProperty(createElement$1$5("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$9$8=descriptors$f,call$b$9=functionCall$f,propertyIsEnumerableModule$1$b=objectPropertyIsEnumerable$d,createPropertyDescriptor$2$d=createPropertyDescriptor$3$9,toIndexedObject$4$9=toIndexedObject$5$9,toPropertyKey$1$f=toPropertyKey$2$d,hasOwn$9$9=hasOwnProperty_1$f,IE8_DOM_DEFINE$1$d=ie8DomDefine$f,$getOwnPropertyDescriptor$1$d=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$d.f=DESCRIPTORS$9$8?$getOwnPropertyDescriptor$1$d:function v(k,ie){if(k=toIndexedObject$4$9(k),ie=toPropertyKey$1$f(ie),IE8_DOM_DEFINE$1$d)try{return $getOwnPropertyDescriptor$1$d(k,ie)}catch{}if(hasOwn$9$9(k,ie))return createPropertyDescriptor$2$d(!call$b$9(propertyIsEnumerableModule$1$b.f,k,ie),k[ie])};var objectDefineProperty$f={},DESCRIPTORS$8$9=descriptors$f,fails$8$d=fails$e$8,v8PrototypeDefineBug$f=DESCRIPTORS$8$9&&fails$8$d(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$3$f=isObject$7$9,$String$2$d=String,$TypeError$7$9=TypeError,anObject$c$6=function(v){if(isObject$3$f(v))return v;throw $TypeError$7$9($String$2$d(v)+" is not an object")},DESCRIPTORS$7$d=descriptors$f,IE8_DOM_DEFINE$g=ie8DomDefine$f,V8_PROTOTYPE_DEFINE_BUG$1$9=v8PrototypeDefineBug$f,anObject$b$6=anObject$c$6,toPropertyKey$j=toPropertyKey$2$d,$TypeError$6$a=TypeError,$defineProperty$f=Object.defineProperty,$getOwnPropertyDescriptor$g=Object.getOwnPropertyDescriptor,ENUMERABLE$f="enumerable",CONFIGURABLE$1$f="configurable",WRITABLE$f="writable";objectDefineProperty$f.f=DESCRIPTORS$7$d?V8_PROTOTYPE_DEFINE_BUG$1$9?function v(k,ie,ae){if(anObject$b$6(k),ie=toPropertyKey$j(ie),anObject$b$6(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$f in ae&&!ae[WRITABLE$f]){var ce=$getOwnPropertyDescriptor$g(k,ie);ce&&ce[WRITABLE$f]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$f in ae?ae[CONFIGURABLE$1$f]:ce[CONFIGURABLE$1$f],enumerable:ENUMERABLE$f in ae?ae[ENUMERABLE$f]:ce[ENUMERABLE$f],writable:!1})}return $defineProperty$f(k,ie,ae)}:$defineProperty$f:function v(k,ie,ae){if(anObject$b$6(k),ie=toPropertyKey$j(ie),anObject$b$6(ae),IE8_DOM_DEFINE$g)try{return $defineProperty$f(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$6$a("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$6$d=descriptors$f,definePropertyModule$4$8=objectDefineProperty$f,createPropertyDescriptor$1$f=createPropertyDescriptor$3$9,createNonEnumerableProperty$4$9=DESCRIPTORS$6$d?function(v,k,ie){return definePropertyModule$4$8.f(v,k,createPropertyDescriptor$1$f(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$f={exports:{}},DESCRIPTORS$5$f=descriptors$f,hasOwn$8$a=hasOwnProperty_1$f,FunctionPrototype$1$f=Function.prototype,getDescriptor$f=DESCRIPTORS$5$f&&Object.getOwnPropertyDescriptor,EXISTS$g=hasOwn$8$a(FunctionPrototype$1$f,"name"),PROPER$f=EXISTS$g&&function v(){}.name==="something",CONFIGURABLE$g=EXISTS$g&&(!DESCRIPTORS$5$f||DESCRIPTORS$5$f&&getDescriptor$f(FunctionPrototype$1$f,"name").configurable),functionName$f={EXISTS:EXISTS$g,PROPER:PROPER$f,CONFIGURABLE:CONFIGURABLE$g},uncurryThis$8$d=functionUncurryThis$f,isCallable$e$a=isCallable$k$5,store$1$f=sharedStore$f,functionToString$f=uncurryThis$8$d(Function.toString);isCallable$e$a(store$1$f.inspectSource)||(store$1$f.inspectSource=function(v){return functionToString$f(v)});var inspectSource$4$5=store$1$f.inspectSource,global$c$9=global$j$5,isCallable$d$a=isCallable$k$5,inspectSource$3$9=inspectSource$4$5,WeakMap$1$f=global$c$9.WeakMap,nativeWeakMap$f=isCallable$d$a(WeakMap$1$f)&&/native code/.test(inspectSource$3$9(WeakMap$1$f)),shared$1$f=shared$3$f.exports,uid$i=uid$2$f,keys$b=shared$1$f("keys"),sharedKey$3$9=function(v){return keys$b[v]||(keys$b[v]=uid$i(v))},hiddenKeys$4$9={},NATIVE_WEAK_MAP$f=nativeWeakMap$f,global$b$a=global$j$5,uncurryThis$7$d=functionUncurryThis$f,isObject$2$f=isObject$7$9,createNonEnumerableProperty$3$9=createNonEnumerableProperty$4$9,hasOwn$7$b=hasOwnProperty_1$f,shared$i=sharedStore$f,sharedKey$2$9=sharedKey$3$9,hiddenKeys$3$d=hiddenKeys$4$9,OBJECT_ALREADY_INITIALIZED$f="Object already initialized",TypeError$2$9=global$b$a.TypeError,WeakMap$h=global$b$a.WeakMap,set$1$9,get$g,has$f,enforce$f=function(v){return has$f(v)?get$g(v):set$1$9(v,{})},getterFor$f=function(v){return function(k){var ie;if(!isObject$2$f(k)||(ie=get$g(k)).type!==v)throw TypeError$2$9("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$f||shared$i.state?(store$i=shared$i.state||(shared$i.state=new WeakMap$h),wmget$f=uncurryThis$7$d(store$i.get),wmhas$f=uncurryThis$7$d(store$i.has),wmset$f=uncurryThis$7$d(store$i.set),set$1$9=function(v,k){if(wmhas$f(store$i,v))throw new TypeError$2$9(OBJECT_ALREADY_INITIALIZED$f);return k.facade=v,wmset$f(store$i,v,k),k},get$g=function(v){return wmget$f(store$i,v)||{}},has$f=function(v){return wmhas$f(store$i,v)}):(STATE$f=sharedKey$2$9("state"),hiddenKeys$3$d[STATE$f]=!0,set$1$9=function(v,k){if(hasOwn$7$b(v,STATE$f))throw new TypeError$2$9(OBJECT_ALREADY_INITIALIZED$f);return k.facade=v,createNonEnumerableProperty$3$9(v,STATE$f,k),k},get$g=function(v){return hasOwn$7$b(v,STATE$f)?v[STATE$f]:{}},has$f=function(v){return hasOwn$7$b(v,STATE$f)});var store$i,wmget$f,wmhas$f,wmset$f,STATE$f,internalState$f={set:set$1$9,get:get$g,has:has$f,enforce:enforce$f,getterFor:getterFor$f},fails$7$f=fails$e$8,isCallable$c$a=isCallable$k$5,hasOwn$6$d=hasOwnProperty_1$f,DESCRIPTORS$4$f=descriptors$f,CONFIGURABLE_FUNCTION_NAME$1$9=functionName$f.CONFIGURABLE,inspectSource$2$f=inspectSource$4$5,InternalStateModule$2$8=internalState$f,enforceInternalState$h=InternalStateModule$2$8.enforce,getInternalState$1$9=InternalStateModule$2$8.get,defineProperty$4$9=Object.defineProperty,CONFIGURABLE_LENGTH$f=DESCRIPTORS$4$f&&!fails$7$f(function(){return defineProperty$4$9(function(){},"length",{value:8}).length!==8}),TEMPLATE$f=String(String).split("String"),makeBuiltIn$1$f=makeBuiltIn$2$f.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$6$d(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$9&&v.name!==k)&&(DESCRIPTORS$4$f?defineProperty$4$9(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$f&&ie&&hasOwn$6$d(ie,"arity")&&v.length!==ie.arity&&defineProperty$4$9(v,"length",{value:ie.arity});try{ie&&hasOwn$6$d(ie,"constructor")&&ie.constructor?DESCRIPTORS$4$f&&defineProperty$4$9(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$h(v);return hasOwn$6$d(ae,"source")||(ae.source=TEMPLATE$f.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$f(function v(){return isCallable$c$a(this)&&getInternalState$1$9(this).source||inspectSource$2$f(this)},"toString");var isCallable$b$b=isCallable$k$5,definePropertyModule$3$a=objectDefineProperty$f,makeBuiltIn$h=makeBuiltIn$2$f.exports,defineGlobalProperty$1$f=defineGlobalProperty$3$d,defineBuiltIn$6$8=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$b$b(ie)&&makeBuiltIn$h(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$f(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$3$a.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$d={},ceil$d=Math.ceil,floor$g=Math.floor,mathTrunc$d=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$g:ceil$d)(ie)},trunc2$d=mathTrunc$d,toIntegerOrInfinity$2$d=function(v){var k=+v;return k!==k||k===0?0:trunc2$d(k)},toIntegerOrInfinity$1$d=toIntegerOrInfinity$2$d,max$e=Math.max,min$1$d=Math.min,toAbsoluteIndex$1$d=function(v,k){var ie=toIntegerOrInfinity$1$d(v);return ie<0?max$e(ie+k,0):min$1$d(ie,k)},toIntegerOrInfinity$i=toIntegerOrInfinity$2$d,min$e=Math.min,toLength$1$d=function(v){return v>0?min$e(toIntegerOrInfinity$i(v),9007199254740991):0},toLength$i=toLength$1$d,lengthOfArrayLike$2$9=function(v){return toLength$i(v.length)},toIndexedObject$3$d=toIndexedObject$5$9,toAbsoluteIndex$h=toAbsoluteIndex$1$d,lengthOfArrayLike$1$d=lengthOfArrayLike$2$9,createMethod$e=function(v){return function(k,ie,ae){var ce=toIndexedObject$3$d(k),fe=lengthOfArrayLike$1$d(ce),le=toAbsoluteIndex$h(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$d={includes:createMethod$e(!0),indexOf:createMethod$e(!1)},uncurryThis$6$f=functionUncurryThis$f,hasOwn$5$d=hasOwnProperty_1$f,toIndexedObject$2$d=toIndexedObject$5$9,indexOf$d=arrayIncludes$d.indexOf,hiddenKeys$2$d=hiddenKeys$4$9,push$e=uncurryThis$6$f([].push),objectKeysInternal$d=function(v,k){var ie=toIndexedObject$2$d(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$5$d(hiddenKeys$2$d,fe)&&hasOwn$5$d(ie,fe)&&push$e(ce,fe);for(;k.length>ae;)hasOwn$5$d(ie,fe=k[ae++])&&(~indexOf$d(ce,fe)||push$e(ce,fe));return ce},enumBugKeys$3$9=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$c=objectKeysInternal$d,enumBugKeys$2$c=enumBugKeys$3$9,hiddenKeys$1$d=enumBugKeys$2$c.concat("length","prototype");objectGetOwnPropertyNames$d.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$c(k,hiddenKeys$1$d)};var objectGetOwnPropertySymbols$d={};objectGetOwnPropertySymbols$d.f=Object.getOwnPropertySymbols;var getBuiltIn$5$9=getBuiltIn$8$5,uncurryThis$5$f=functionUncurryThis$f,getOwnPropertyNamesModule$d=objectGetOwnPropertyNames$d,getOwnPropertySymbolsModule$1$b=objectGetOwnPropertySymbols$d,anObject$a$8=anObject$c$6,concat$1$b=uncurryThis$5$f([].concat),ownKeys$1$d=getBuiltIn$5$9("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$d.f(anObject$a$8(k)),ae=getOwnPropertySymbolsModule$1$b.f;return ae?concat$1$b(ie,ae(k)):ie},hasOwn$4$f=hasOwnProperty_1$f,ownKeys2$d=ownKeys$1$d,getOwnPropertyDescriptorModule$e=objectGetOwnPropertyDescriptor$d,definePropertyModule$2$d=objectDefineProperty$f,copyConstructorProperties$1$d=function(v,k,ie){for(var ae=ownKeys2$d(k),ce=definePropertyModule$2$d.f,fe=getOwnPropertyDescriptorModule$e.f,le=0;lefe;)for(var pe=IndexedObject$f(arguments[fe++]),ye=le?concat$f(objectKeys$1$c(pe),le(pe)):objectKeys$1$c(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$3$f||call$a$9(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$b,$$7$5=_export$d,assign2$b=objectAssign$b;$$7$5({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$b},{assign:assign2$b});var wellKnownSymbol$c$8=wellKnownSymbol$e$8,TO_STRING_TAG$3$9=wellKnownSymbol$c$8("toStringTag"),test$d={};test$d[TO_STRING_TAG$3$9]="z";var toStringTagSupport$d=String(test$d)==="[object z]",TO_STRING_TAG_SUPPORT$d=toStringTagSupport$d,isCallable$9$f=isCallable$k$5,classofRaw$g=classofRaw$1$d,wellKnownSymbol$b$8=wellKnownSymbol$e$8,TO_STRING_TAG$2$a=wellKnownSymbol$b$8("toStringTag"),$Object$1$f=Object,CORRECT_ARGUMENTS$d=classofRaw$g(function(){return arguments}())=="Arguments",tryGet$d=function(v,k){try{return v[k]}catch{}},classof$4$9=TO_STRING_TAG_SUPPORT$d?classofRaw$g:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$d(k=$Object$1$f(v),TO_STRING_TAG$2$a))=="string"?ie:CORRECT_ARGUMENTS$d?classofRaw$g(k):(ae=classofRaw$g(k))=="Object"&&isCallable$9$f(k.callee)?"Arguments":ae},classof$3$9=classof$4$9,$String$1$f=String,toString2$c=function(v){if(classof$3$9(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$1$f(v)},anObject$9$8=anObject$c$6,regexpFlags$c=function(){var v=anObject$9$8(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$9$9=functionCall$f,hasOwn$3$f=hasOwnProperty_1$f,isPrototypeOf$2$9=objectIsPrototypeOf$f,regExpFlags$c=regexpFlags$c,RegExpPrototype$1$c=RegExp.prototype,regexpGetFlags$c=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$c)&&!hasOwn$3$f(v,"flags")&&isPrototypeOf$2$9(RegExpPrototype$1$c,v)?call$9$9(regExpFlags$c,v):k},PROPER_FUNCTION_NAME$1$9=functionName$f.PROPER,defineBuiltIn$4$9=defineBuiltIn$6$8,anObject$8$9=anObject$c$6,$toString$c=toString2$c,fails$4$f=fails$e$8,getRegExpFlags$c=regexpGetFlags$c,TO_STRING$c="toString",RegExpPrototype$d=RegExp.prototype,n$ToString$c=RegExpPrototype$d[TO_STRING$c],NOT_GENERIC$c=fails$4$f(function(){return n$ToString$c.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$c=PROPER_FUNCTION_NAME$1$9&&n$ToString$c.name!=TO_STRING$c;(NOT_GENERIC$c||INCORRECT_NAME$c)&&defineBuiltIn$4$9(RegExp.prototype,TO_STRING$c,function(){var k=anObject$8$9(this),ie=$toString$c(k.source),ae=$toString$c(getRegExpFlags$c(k));return"/"+ie+"/"+ae},{unsafe:!0});var objectDefineProperties$9={},DESCRIPTORS$2$f=descriptors$f,V8_PROTOTYPE_DEFINE_BUG$g=v8PrototypeDefineBug$f,definePropertyModule$1$f=objectDefineProperty$f,anObject$7$a=anObject$c$6,toIndexedObject$1$d=toIndexedObject$5$9,objectKeys$e=objectKeys$2$8;objectDefineProperties$9.f=DESCRIPTORS$2$f&&!V8_PROTOTYPE_DEFINE_BUG$g?Object.defineProperties:function v(k,ie){anObject$7$a(k);for(var ae=toIndexedObject$1$d(ie),ce=objectKeys$e(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$1$f.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$4$a=getBuiltIn$8$5,html$2$5=getBuiltIn$4$a("document","documentElement"),anObject$6$a=anObject$c$6,definePropertiesModule$9=objectDefineProperties$9,enumBugKeys$g=enumBugKeys$3$9,hiddenKeys$h=hiddenKeys$4$9,html$1$a=html$2$5,documentCreateElement$1$9=documentCreateElement$2$7,sharedKey$1$f=sharedKey$3$9,GT$9=">",LT$9="<",PROTOTYPE$a="prototype",SCRIPT$9="script",IE_PROTO$1$9=sharedKey$1$f("IE_PROTO"),EmptyConstructor$9=function(){},scriptTag$9=function(v){return LT$9+SCRIPT$9+GT$9+v+LT$9+"/"+SCRIPT$9+GT$9},NullProtoObjectViaActiveX$9=function(v){v.write(scriptTag$9("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$9=function(){var v=documentCreateElement$1$9("iframe"),k="java"+SCRIPT$9+":",ie;return v.style.display="none",html$1$a.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$9("document.F=Object")),ie.close(),ie.F},activeXDocument$9,NullProtoObject$9=function(){try{activeXDocument$9=new ActiveXObject("htmlfile")}catch{}NullProtoObject$9=typeof document<"u"?document.domain&&activeXDocument$9?NullProtoObjectViaActiveX$9(activeXDocument$9):NullProtoObjectViaIFrame$9():NullProtoObjectViaActiveX$9(activeXDocument$9);for(var v=enumBugKeys$g.length;v--;)delete NullProtoObject$9[PROTOTYPE$a][enumBugKeys$g[v]];return NullProtoObject$9()};hiddenKeys$h[IE_PROTO$1$9]=!0;var objectCreate$9=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$9[PROTOTYPE$a]=anObject$6$a(k),ae=new EmptyConstructor$9,EmptyConstructor$9[PROTOTYPE$a]=null,ae[IE_PROTO$1$9]=k):ae=NullProtoObject$9(),ie===void 0?ae:definePropertiesModule$9.f(ae,ie)},wellKnownSymbol$a$9=wellKnownSymbol$e$8,create$1$9=objectCreate$9,defineProperty$2$d=objectDefineProperty$f.f,UNSCOPABLES$9=wellKnownSymbol$a$9("unscopables"),ArrayPrototype$1$8=Array.prototype;ArrayPrototype$1$8[UNSCOPABLES$9]==null&&defineProperty$2$d(ArrayPrototype$1$8,UNSCOPABLES$9,{configurable:!0,value:create$1$9(null)});var addToUnscopables$1$9=function(v){ArrayPrototype$1$8[UNSCOPABLES$9][v]=!0},iterators$a={},fails$3$f=fails$e$8,correctPrototypeGetter$9=!fails$3$f(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype}),hasOwn$2$f=hasOwnProperty_1$f,isCallable$8$f=isCallable$k$5,toObject$l=toObject$3$8,sharedKey$h=sharedKey$3$9,CORRECT_PROTOTYPE_GETTER$9=correctPrototypeGetter$9,IE_PROTO$a=sharedKey$h("IE_PROTO"),$Object$j=Object,ObjectPrototype$b=$Object$j.prototype,objectGetPrototypeOf$9=CORRECT_PROTOTYPE_GETTER$9?$Object$j.getPrototypeOf:function(v){var k=toObject$l(v);if(hasOwn$2$f(k,IE_PROTO$a))return k[IE_PROTO$a];var ie=k.constructor;return isCallable$8$f(ie)&&k instanceof ie?ie.prototype:k instanceof $Object$j?ObjectPrototype$b:null},fails$2$f=fails$e$8,isCallable$7$f=isCallable$k$5,getPrototypeOf$1$9=objectGetPrototypeOf$9,defineBuiltIn$3$a=defineBuiltIn$6$8,wellKnownSymbol$9$9=wellKnownSymbol$e$8,ITERATOR$5$6=wellKnownSymbol$9$9("iterator"),BUGGY_SAFARI_ITERATORS$1$9=!1,IteratorPrototype$2$9,PrototypeOfArrayIteratorPrototype$9,arrayIterator$9;[].keys&&(arrayIterator$9=[].keys(),"next"in arrayIterator$9?(PrototypeOfArrayIteratorPrototype$9=getPrototypeOf$1$9(getPrototypeOf$1$9(arrayIterator$9)),PrototypeOfArrayIteratorPrototype$9!==Object.prototype&&(IteratorPrototype$2$9=PrototypeOfArrayIteratorPrototype$9)):BUGGY_SAFARI_ITERATORS$1$9=!0);var NEW_ITERATOR_PROTOTYPE$9=IteratorPrototype$2$9==null||fails$2$f(function(){var v={};return IteratorPrototype$2$9[ITERATOR$5$6].call(v)!==v});NEW_ITERATOR_PROTOTYPE$9&&(IteratorPrototype$2$9={});isCallable$7$f(IteratorPrototype$2$9[ITERATOR$5$6])||defineBuiltIn$3$a(IteratorPrototype$2$9,ITERATOR$5$6,function(){return this});var iteratorsCore$9={IteratorPrototype:IteratorPrototype$2$9,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1$9},defineProperty$1$f=objectDefineProperty$f.f,hasOwn$1$f=hasOwnProperty_1$f,wellKnownSymbol$8$a=wellKnownSymbol$e$8,TO_STRING_TAG$1$d=wellKnownSymbol$8$a("toStringTag"),setToStringTag$3$8=function(v,k,ie){v&&!ie&&(v=v.prototype),v&&!hasOwn$1$f(v,TO_STRING_TAG$1$d)&&defineProperty$1$f(v,TO_STRING_TAG$1$d,{configurable:!0,value:k})},IteratorPrototype$1$9=iteratorsCore$9.IteratorPrototype,create2$8=objectCreate$9,createPropertyDescriptor$k=createPropertyDescriptor$3$9,setToStringTag$2$9=setToStringTag$3$8,Iterators$4$8=iterators$a,returnThis$1$9=function(){return this},createIteratorConstructor$1$9=function(v,k,ie,ae){var ce=k+" Iterator";return v.prototype=create2$8(IteratorPrototype$1$9,{next:createPropertyDescriptor$k(+!ae,ie)}),setToStringTag$2$9(v,ce,!1),Iterators$4$8[ce]=returnThis$1$9,v},isCallable$6$f=isCallable$k$5,$String$i=String,$TypeError$5$f=TypeError,aPossiblePrototype$1$a=function(v){if(typeof v=="object"||isCallable$6$f(v))return v;throw $TypeError$5$f("Can't set "+$String$i(v)+" as a prototype")},uncurryThis$3$f=functionUncurryThis$f,anObject$5$a=anObject$c$6,aPossiblePrototype$b=aPossiblePrototype$1$a,objectSetPrototypeOf$a=Object.setPrototypeOf||("__proto__"in{}?function(){var v=!1,k={},ie;try{ie=uncurryThis$3$f(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),ie(k,[]),v=k instanceof Array}catch{}return function(ce,fe){return anObject$5$a(ce),aPossiblePrototype$b(fe),v?ie(ce,fe):ce.__proto__=fe,ce}}():void 0),$$6$5=_export$d,call$8$9=functionCall$f,FunctionName$a=functionName$f,isCallable$5$f=isCallable$k$5,createIteratorConstructor$a=createIteratorConstructor$1$9,getPrototypeOf$c=objectGetPrototypeOf$9,setPrototypeOf$1$8=objectSetPrototypeOf$a,setToStringTag$1$a=setToStringTag$3$8,createNonEnumerableProperty$1$f=createNonEnumerableProperty$4$9,defineBuiltIn$2$b=defineBuiltIn$6$8,wellKnownSymbol$7$a=wellKnownSymbol$e$8,Iterators$3$8=iterators$a,IteratorsCore$9=iteratorsCore$9,PROPER_FUNCTION_NAME$e=FunctionName$a.PROPER,CONFIGURABLE_FUNCTION_NAME$h=FunctionName$a.CONFIGURABLE,IteratorPrototype$b=IteratorsCore$9.IteratorPrototype,BUGGY_SAFARI_ITERATORS$a=IteratorsCore$9.BUGGY_SAFARI_ITERATORS,ITERATOR$4$8=wellKnownSymbol$7$a("iterator"),KEYS$9="keys",VALUES$9="values",ENTRIES$9="entries",returnThis$a=function(){return this},defineIterator$1$9=function(v,k,ie,ae,ce,fe,le){createIteratorConstructor$a(ie,k,ae);var ve=function(ur){if(ur===ce&&cr)return cr;if(!BUGGY_SAFARI_ITERATORS$a&&ur in me)return me[ur];switch(ur){case KEYS$9:return function(){return new ie(this,ur)};case VALUES$9:return function(){return new ie(this,ur)};case ENTRIES$9:return function(){return new ie(this,ur)}}return function(){return new ie(this)}},pe=k+" Iterator",ye=!1,me=v.prototype,Ee=me[ITERATOR$4$8]||me["@@iterator"]||ce&&me[ce],cr=!BUGGY_SAFARI_ITERATORS$a&&Ee||ve(ce),Br=k=="Array"&&me.entries||Ee,$r,Pr,Ar;if(Br&&($r=getPrototypeOf$c(Br.call(new v)),$r!==Object.prototype&&$r.next&&(getPrototypeOf$c($r)!==IteratorPrototype$b&&(setPrototypeOf$1$8?setPrototypeOf$1$8($r,IteratorPrototype$b):isCallable$5$f($r[ITERATOR$4$8])||defineBuiltIn$2$b($r,ITERATOR$4$8,returnThis$a)),setToStringTag$1$a($r,pe,!0))),PROPER_FUNCTION_NAME$e&&ce==VALUES$9&&Ee&&Ee.name!==VALUES$9&&(CONFIGURABLE_FUNCTION_NAME$h?createNonEnumerableProperty$1$f(me,"name",VALUES$9):(ye=!0,cr=function(){return call$8$9(Ee,this)})),ce)if(Pr={values:ve(VALUES$9),keys:fe?cr:ve(KEYS$9),entries:ve(ENTRIES$9)},le)for(Ar in Pr)(BUGGY_SAFARI_ITERATORS$a||ye||!(Ar in me))&&defineBuiltIn$2$b(me,Ar,Pr[Ar]);else $$6$5({target:k,proto:!0,forced:BUGGY_SAFARI_ITERATORS$a||ye},Pr);return me[ITERATOR$4$8]!==cr&&defineBuiltIn$2$b(me,ITERATOR$4$8,cr,{name:ce}),Iterators$3$8[k]=cr,Pr},toIndexedObject$j=toIndexedObject$5$9,addToUnscopables$a=addToUnscopables$1$9,Iterators$2$9=iterators$a,InternalStateModule$1$a=internalState$f,defineProperty3$c=objectDefineProperty$f.f,defineIterator$a=defineIterator$1$9,DESCRIPTORS$1$f=descriptors$f,ARRAY_ITERATOR$9="Array Iterator",setInternalState$1$8=InternalStateModule$1$a.set,getInternalState$j=InternalStateModule$1$a.getterFor(ARRAY_ITERATOR$9),es_array_iterator$6=defineIterator$a(Array,"Array",function(v,k){setInternalState$1$8(this,{type:ARRAY_ITERATOR$9,target:toIndexedObject$j(v),index:0,kind:k})},function(){var v=getInternalState$j(this),k=v.target,ie=v.kind,ae=v.index++;return!k||ae>=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$9=Iterators$2$9.Arguments=Iterators$2$9.Array;addToUnscopables$a("keys");addToUnscopables$a("values");addToUnscopables$a("entries");if(DESCRIPTORS$1$f&&values$9.name!=="values")try{defineProperty3$c(values$9,"name",{value:"values"})}catch(v){}var classof$2$b=classofRaw$1$d,global$9$f=global$j$5,engineIsNode$5=classof$2$b(global$9$f.process)=="process",getBuiltIn$3$d=getBuiltIn$8$5,definePropertyModule$l=objectDefineProperty$f,wellKnownSymbol$6$a=wellKnownSymbol$e$8,DESCRIPTORS$s=descriptors$f,SPECIES$2$9=wellKnownSymbol$6$a("species"),setSpecies$1$9=function(v){var k=getBuiltIn$3$d(v),ie=definePropertyModule$l.f;DESCRIPTORS$s&&k&&!k[SPECIES$2$9]&&ie(k,SPECIES$2$9,{configurable:!0,get:function(){return this}})},isPrototypeOf$1$d=objectIsPrototypeOf$f,$TypeError$4$f=TypeError,anInstance$1$9=function(v,k){if(isPrototypeOf$1$d(k,v))return v;throw $TypeError$4$f("Incorrect invocation")},uncurryThis$2$f=functionUncurryThis$f,fails$1$f=fails$e$8,isCallable$4$f=isCallable$k$5,classof$1$d=classof$4$9,getBuiltIn$2$f=getBuiltIn$8$5,inspectSource$1$f=inspectSource$4$5,noop$9=function(){},empty$8=[],construct$9=getBuiltIn$2$f("Reflect","construct"),constructorRegExp$9=/^\s*(?:class|function)\b/,exec$a=uncurryThis$2$f(constructorRegExp$9.exec),INCORRECT_TO_STRING$9=!constructorRegExp$9.exec(noop$9),isConstructorModern$9=function v(k){if(!isCallable$4$f(k))return!1;try{return construct$9(noop$9,empty$8,k),!0}catch{return!1}},isConstructorLegacy$9=function v(k){if(!isCallable$4$f(k))return!1;switch(classof$1$d(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$9||!!exec$a(constructorRegExp$9,inspectSource$1$f(k))}catch{return!0}};isConstructorLegacy$9.sham=!0;var isConstructor$1$9=!construct$9||fails$1$f(function(){var v;return isConstructorModern$9(isConstructorModern$9.call)||!isConstructorModern$9(Object)||!isConstructorModern$9(function(){v=!0})||v})?isConstructorLegacy$9:isConstructorModern$9,isConstructor3$9=isConstructor$1$9,tryToString$2$9=tryToString$4$9,$TypeError$3$f=TypeError,aConstructor$1$9=function(v){if(isConstructor3$9(v))return v;throw $TypeError$3$f(tryToString$2$9(v)+" is not a constructor")},anObject$4$b=anObject$c$6,aConstructor$b=aConstructor$1$9,wellKnownSymbol$5$a=wellKnownSymbol$e$8,SPECIES$1$9=wellKnownSymbol$5$a("species"),speciesConstructor$1$9=function(v,k){var ie=anObject$4$b(v).constructor,ae;return ie===void 0||(ae=anObject$4$b(ie)[SPECIES$1$9])==null?k:aConstructor$b(ae)},NATIVE_BIND$1$f=functionBindNative$f,FunctionPrototype$h=Function.prototype,apply$1$9=FunctionPrototype$h.apply,call$7$9=FunctionPrototype$h.call,functionApply$9=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$1$f?call$7$9.bind(apply$1$9):function(){return call$7$9.apply(apply$1$9,arguments)}),uncurryThis$1$f=functionUncurryThis$f,aCallable$5$5=aCallable$7$5,NATIVE_BIND$i=functionBindNative$f,bind$4$5=uncurryThis$1$f(uncurryThis$1$f.bind),functionBindContext$9=function(v,k){return aCallable$5$5(v),k===void 0?v:NATIVE_BIND$i?bind$4$5(v,k):function(){return v.apply(k,arguments)}},uncurryThis$z=functionUncurryThis$f,arraySlice$1$9=uncurryThis$z([].slice),$TypeError$2$f=TypeError,validateArgumentsLength$1$5=function(v,k){if(v=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3$5(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$b]=ae,SUBCLASSING$5=ie.then(function(){})instanceof ae,SUBCLASSING$5?!k&&IS_BROWSER$5&&!NATIVE_PROMISE_REJECTION_EVENT$1$5:!0}),promiseConstructorDetection$5={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$5,SUBCLASSING:SUBCLASSING$5},newPromiseCapability$2$5={},aCallable$4$9=aCallable$7$5,PromiseCapability$5=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$9(k),this.reject=aCallable$4$9(ie)};newPromiseCapability$2$5.f=function(v){return new PromiseCapability$5(v)};var $$5$5=_export$d,IS_NODE$7=engineIsNode$5,global$2$f=global$j$5,call$6$b=functionCall$f,defineBuiltIn$1$f=defineBuiltIn$6$8,setPrototypeOf$e=objectSetPrototypeOf$a,setToStringTag$d=setToStringTag$3$8,setSpecies$a=setSpecies$1$9,aCallable$3$9=aCallable$7$5,isCallable$1$f=isCallable$k$5,isObject$1$f=isObject$7$9,anInstance$b=anInstance$1$9,speciesConstructor$a=speciesConstructor$1$9,task$6=task$1$5.set,microtask$6=microtask$1$5,hostReportErrors$6=hostReportErrors$1$5,perform$2$5=perform$3$5,Queue$6=queue$6,InternalStateModule$j=internalState$f,NativePromiseConstructor$2$5=promiseNativeConstructor$5,PromiseConstructorDetection$5=promiseConstructorDetection$5,newPromiseCapabilityModule$3$5=newPromiseCapability$2$5,PROMISE$5="Promise",FORCED_PROMISE_CONSTRUCTOR$4$5=PromiseConstructorDetection$5.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$6=PromiseConstructorDetection$5.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$5=PromiseConstructorDetection$5.SUBCLASSING,getInternalPromiseState$5=InternalStateModule$j.getterFor(PROMISE$5),setInternalState$c=InternalStateModule$j.set,NativePromisePrototype$1$5=NativePromiseConstructor$2$5&&NativePromiseConstructor$2$5.prototype,PromiseConstructor$5=NativePromiseConstructor$2$5,PromisePrototype$5=NativePromisePrototype$1$5,TypeError$1$f=global$2$f.TypeError,document$1$a=global$2$f.document,process$g=global$2$f.process,newPromiseCapability$1$5=newPromiseCapabilityModule$3$5.f,newGenericPromiseCapability$5=newPromiseCapability$1$5,DISPATCH_EVENT$5=!!(document$1$a&&document$1$a.createEvent&&global$2$f.dispatchEvent),UNHANDLED_REJECTION$5="unhandledrejection",REJECTION_HANDLED$5="rejectionhandled",PENDING$5=0,FULFILLED$5=1,REJECTED$5=2,HANDLED$5=1,UNHANDLED$5=2,Internal$5,OwnPromiseCapability$5,PromiseWrapper$5,nativeThen$5,isThenable$5=function(v){var k;return isObject$1$f(v)&&isCallable$1$f(k=v.then)?k:!1},callReaction$5=function(v,k){var ie=k.value,ae=k.state==FULFILLED$5,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$5&&onHandleUnhandled$5(k),k.rejection=HANDLED$5),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$f("Promise-chain cycle")):(ye=isThenable$5(pe))?call$6$b(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$6=function(v,k){v.notified||(v.notified=!0,microtask$6(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$5(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$5(v)}))},dispatchEvent$5=function(v,k,ie){var ae,ce;DISPATCH_EVENT$5?(ae=document$1$a.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$2$f.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$6&&(ce=global$2$f["on"+v])?ce(ae):v===UNHANDLED_REJECTION$5&&hostReportErrors$6("Unhandled promise rejection",ie)},onUnhandled$5=function(v){call$6$b(task$6,global$2$f,function(){var k=v.facade,ie=v.value,ae=isUnhandled$5(v),ce;if(ae&&(ce=perform$2$5(function(){IS_NODE$7?process$g.emit("unhandledRejection",ie,k):dispatchEvent$5(UNHANDLED_REJECTION$5,k,ie)}),v.rejection=IS_NODE$7||isUnhandled$5(v)?UNHANDLED$5:HANDLED$5,ce.error))throw ce.value})},isUnhandled$5=function(v){return v.rejection!==HANDLED$5&&!v.parent},onHandleUnhandled$5=function(v){call$6$b(task$6,global$2$f,function(){var k=v.facade;IS_NODE$7?process$g.emit("rejectionHandled",k):dispatchEvent$5(REJECTION_HANDLED$5,k,v.value)})},bind$1$9=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$5=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$5,notify$6(v,!0))},internalResolve$5=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$f("Promise can't be resolved itself");var ae=isThenable$5(k);ae?microtask$6(function(){var ce={done:!1};try{call$6$b(ae,k,bind$1$9(internalResolve$5,ce,v),bind$1$9(internalReject$5,ce,v))}catch(fe){internalReject$5(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$5,notify$6(v,!1))}catch(ce){internalReject$5({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$5&&(PromiseConstructor$5=function(k){anInstance$b(this,PromisePrototype$5),aCallable$3$9(k),call$6$b(Internal$5,this);var ie=getInternalPromiseState$5(this);try{k(bind$1$9(internalResolve$5,ie),bind$1$9(internalReject$5,ie))}catch(ae){internalReject$5(ie,ae)}},PromisePrototype$5=PromiseConstructor$5.prototype,Internal$5=function(k){setInternalState$c(this,{type:PROMISE$5,done:!1,notified:!1,parent:!1,reactions:new Queue$6,rejection:!1,state:PENDING$5,value:void 0})},Internal$5.prototype=defineBuiltIn$1$f(PromisePrototype$5,"then",function(k,ie){var ae=getInternalPromiseState$5(this),ce=newPromiseCapability$1$5(speciesConstructor$a(this,PromiseConstructor$5));return ae.parent=!0,ce.ok=isCallable$1$f(k)?k:!0,ce.fail=isCallable$1$f(ie)&&ie,ce.domain=IS_NODE$7?process$g.domain:void 0,ae.state==PENDING$5?ae.reactions.add(ce):microtask$6(function(){callReaction$5(ce,ae)}),ce.promise}),OwnPromiseCapability$5=function(){var v=new Internal$5,k=getInternalPromiseState$5(v);this.promise=v,this.resolve=bind$1$9(internalResolve$5,k),this.reject=bind$1$9(internalReject$5,k)},newPromiseCapabilityModule$3$5.f=newPromiseCapability$1$5=function(v){return v===PromiseConstructor$5||v===PromiseWrapper$5?new OwnPromiseCapability$5(v):newGenericPromiseCapability$5(v)},isCallable$1$f(NativePromiseConstructor$2$5)&&NativePromisePrototype$1$5!==Object.prototype)){nativeThen$5=NativePromisePrototype$1$5.then,NATIVE_PROMISE_SUBCLASSING$5||defineBuiltIn$1$f(NativePromisePrototype$1$5,"then",function(k,ie){var ae=this;return new PromiseConstructor$5(function(ce,fe){call$6$b(nativeThen$5,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1$5.constructor}catch{}setPrototypeOf$e&&setPrototypeOf$e(NativePromisePrototype$1$5,PromisePrototype$5)}$$5$5({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$5},{Promise:PromiseConstructor$5});setToStringTag$d(PromiseConstructor$5,PROMISE$5,!1);setSpecies$a(PROMISE$5);var wellKnownSymbol$3$d=wellKnownSymbol$e$8,Iterators$1$a=iterators$a,ITERATOR$3$8=wellKnownSymbol$3$d("iterator"),ArrayPrototype$b=Array.prototype,isArrayIteratorMethod$1$9=function(v){return v!==void 0&&(Iterators$1$a.Array===v||ArrayPrototype$b[ITERATOR$3$8]===v)},classof$n=classof$4$9,getMethod$1$f=getMethod$3$6,Iterators$e=iterators$a,wellKnownSymbol$2$d=wellKnownSymbol$e$8,ITERATOR$2$a=wellKnownSymbol$2$d("iterator"),getIteratorMethod$2$9=function(v){if(v!=null)return getMethod$1$f(v,ITERATOR$2$a)||getMethod$1$f(v,"@@iterator")||Iterators$e[classof$n(v)]},call$5$d=functionCall$f,aCallable$2$9=aCallable$7$5,anObject$3$d=anObject$c$6,tryToString$1$f=tryToString$4$9,getIteratorMethod$1$9=getIteratorMethod$2$9,$TypeError$1$f=TypeError,getIterator$1$9=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$9(v):k;if(aCallable$2$9(ie))return anObject$3$d(call$5$d(ie,v));throw $TypeError$1$f(tryToString$1$f(v)+" is not iterable")},call$4$f=functionCall$f,anObject$2$f=anObject$c$6,getMethod$i=getMethod$3$6,iteratorClose$1$5=function(v,k,ie){var ae,ce;anObject$2$f(v);try{if(ae=getMethod$i(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$4$f(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$2$f(ae),ie},bind$k=functionBindContext$9,call$3$f=functionCall$f,anObject$1$f=anObject$c$6,tryToString$j=tryToString$4$9,isArrayIteratorMethod$a=isArrayIteratorMethod$1$9,lengthOfArrayLike$j=lengthOfArrayLike$2$9,isPrototypeOf$j=objectIsPrototypeOf$f,getIterator$a=getIterator$1$9,getIteratorMethod$b=getIteratorMethod$2$9,iteratorClose$6=iteratorClose$1$5,$TypeError$q=TypeError,Result$5=function(v,k){this.stopped=v,this.result=k},ResultPrototype$5=Result$5.prototype,iterate$2$5=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$k(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$6(pe,"normal",ur),new Result$5(!0,ur)},Ar=function(ur){return ce?(anObject$1$f(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$b(v),!ye)throw $TypeError$q(tryToString$j(v)+" is not iterable");if(isArrayIteratorMethod$a(ye)){for(me=0,Ee=lengthOfArrayLike$j(v);Ee>me;me++)if(cr=Ar(v[me]),cr&&isPrototypeOf$j(ResultPrototype$5,cr))return cr;return new Result$5(!1)}pe=getIterator$a(v,ye)}for(Br=pe.next;!($r=call$3$f(Br,pe)).done;){try{cr=Ar($r.value)}catch(ur){iteratorClose$6(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$j(ResultPrototype$5,cr))return cr}return new Result$5(!1)},wellKnownSymbol$1$f=wellKnownSymbol$e$8,ITERATOR$1$a=wellKnownSymbol$1$f("iterator"),SAFE_CLOSING$9=!1;try{called$9=0,iteratorWithReturn$9={next:function(){return{done:!!called$9++}},return:function(){SAFE_CLOSING$9=!0}},iteratorWithReturn$9[ITERATOR$1$a]=function(){return this},Array.from(iteratorWithReturn$9,function(){throw 2})}catch(v){}var called$9,iteratorWithReturn$9,checkCorrectnessOfIteration$1$9=function(v,k){if(!k&&!SAFE_CLOSING$9)return!1;var ie=!1;try{var ae={};ae[ITERATOR$1$a]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1$5=promiseNativeConstructor$5,checkCorrectnessOfIteration$a=checkCorrectnessOfIteration$1$9,FORCED_PROMISE_CONSTRUCTOR$3$5=promiseConstructorDetection$5.CONSTRUCTOR,promiseStaticsIncorrectIteration$5=FORCED_PROMISE_CONSTRUCTOR$3$5||!checkCorrectnessOfIteration$a(function(v){NativePromiseConstructor$1$5.all(v).then(void 0,function(){})}),$$4$6=_export$d,call$2$f=functionCall$f,aCallable$1$f=aCallable$7$5,newPromiseCapabilityModule$2$5=newPromiseCapability$2$5,perform$1$5=perform$3$5,iterate$1$5=iterate$2$5,PROMISE_STATICS_INCORRECT_ITERATION$1$5=promiseStaticsIncorrectIteration$5;$$4$6({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$5},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$5.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$5(function(){var ve=aCallable$1$f(ie.resolve),pe=[],ye=0,me=1;iterate$1$5(k,function(Ee){var cr=ye++,Br=!1;me++,call$2$f(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$3$9=_export$d,FORCED_PROMISE_CONSTRUCTOR$2$5=promiseConstructorDetection$5.CONSTRUCTOR,NativePromiseConstructor$8=promiseNativeConstructor$5,getBuiltIn$1$f=getBuiltIn$8$5,isCallable$x=isCallable$k$5,defineBuiltIn$l=defineBuiltIn$6$8,NativePromisePrototype$6=NativePromiseConstructor$8&&NativePromiseConstructor$8.prototype;$$3$9({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$5,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$x(NativePromiseConstructor$8)&&(method$5=getBuiltIn$1$f("Promise").prototype.catch,NativePromisePrototype$6.catch!==method$5&&defineBuiltIn$l(NativePromisePrototype$6,"catch",method$5,{unsafe:!0}));var method$5,$$2$9=_export$d,call$1$f=functionCall$f,aCallable$m=aCallable$7$5,newPromiseCapabilityModule$1$5=newPromiseCapability$2$5,perform$8=perform$3$5,iterate$7=iterate$2$5,PROMISE_STATICS_INCORRECT_ITERATION$6=promiseStaticsIncorrectIteration$5;$$2$9({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$6},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$5.f(ie),ce=ae.reject,fe=perform$8(function(){var le=aCallable$m(ie.resolve);iterate$7(k,function(ve){call$1$f(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$1$9=_export$d,call$t=functionCall$f,newPromiseCapabilityModule$8=newPromiseCapability$2$5,FORCED_PROMISE_CONSTRUCTOR$1$5=promiseConstructorDetection$5.CONSTRUCTOR;$$1$9({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$5},{reject:function v(k){var ie=newPromiseCapabilityModule$8.f(this);return call$t(ie.reject,void 0,k),ie.promise}});var anObject$p=anObject$c$6,isObject$q=isObject$7$9,newPromiseCapability$7=newPromiseCapability$2$5,promiseResolve$1$5=function(v,k){if(anObject$p(v),isObject$q(k)&&k.constructor===v)return k;var ie=newPromiseCapability$7.f(v),ae=ie.resolve;return ae(k),ie.promise},$$k=_export$d,getBuiltIn$n=getBuiltIn$8$5,FORCED_PROMISE_CONSTRUCTOR$a=promiseConstructorDetection$5.CONSTRUCTOR,promiseResolve$6=promiseResolve$1$5;getBuiltIn$n("Promise");$$k({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$a},{resolve:function v(k){return promiseResolve$6(this,k)}});var domIterables$6={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$g=documentCreateElement$2$7,classList$6=documentCreateElement$g("span").classList,DOMTokenListPrototype$1$6=classList$6&&classList$6.constructor&&classList$6.constructor.prototype,domTokenListPrototype$6=DOMTokenListPrototype$1$6===Object.prototype?void 0:DOMTokenListPrototype$1$6,global$1$f=global$j$5,DOMIterables$6=domIterables$6,DOMTokenListPrototype$7=domTokenListPrototype$6,ArrayIteratorMethods$6=es_array_iterator$6,createNonEnumerableProperty$l=createNonEnumerableProperty$4$9,wellKnownSymbol$t=wellKnownSymbol$e$8,ITERATOR$e=wellKnownSymbol$t("iterator"),TO_STRING_TAG$g=wellKnownSymbol$t("toStringTag"),ArrayValues$6=ArrayIteratorMethods$6.values,handlePrototype$6=function(v,k){if(v){if(v[ITERATOR$e]!==ArrayValues$6)try{createNonEnumerableProperty$l(v,ITERATOR$e,ArrayValues$6)}catch{v[ITERATOR$e]=ArrayValues$6}if(v[TO_STRING_TAG$g]||createNonEnumerableProperty$l(v,TO_STRING_TAG$g,k),DOMIterables$6[k]){for(var ie in ArrayIteratorMethods$6)if(v[ie]!==ArrayIteratorMethods$6[ie])try{createNonEnumerableProperty$l(v,ie,ArrayIteratorMethods$6[ie])}catch{v[ie]=ArrayIteratorMethods$6[ie]}}}};for(COLLECTION_NAME$6 in DOMIterables$6)handlePrototype$6(global$1$f[COLLECTION_NAME$6]&&global$1$f[COLLECTION_NAME$6].prototype,COLLECTION_NAME$6);var COLLECTION_NAME$6;handlePrototype$6(DOMTokenListPrototype$7,"DOMTokenList");function __awaiter$i(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAMAAABOo35HAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOk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SOpZx8QxCy2+V+mtiUI3KqgOCLSA1yb4DUgSvrbYSNbpsWCYyeCCU8lOaW8Cpt+k3QsrhpW9AA2CWXLWguXJtL7IKW4MA1E5xavHdoPKGRhFspRADWkkMV+0WQ+D8g5vA6l97n35XoJCjmb7rS/Y5YMYaRGCTvpY/zb45UKQmgWQ7hRl5dj8wXaPZQr/PQeGTLfQLHn5A+Xl+np/n53nC8x/tAMljWkeBnAAAAABJRU5ErkJggg==",resolveWalletUrl$3=(v,k)=>{if(k)return k;switch(v.networkId){case"mainnet":return"https://app.mynearwallet.com";case"testnet":return"https://testnet.mynearwallet.com";default:throw new Error("Invalid wallet url")}},setupWalletState$3=(v,k)=>__awaiter$i(void 0,void 0,void 0,function*(){const ie=new nearAPI$7.keyStores.BrowserLocalStorageKeyStore,ae=yield nearAPI$7.connect(Object.assign(Object.assign({keyStore:ie,walletUrl:v.walletUrl},k),{headers:{}}));return{wallet:new nearAPI$7.WalletConnection(ae,"near_app"),keyStore:ie}}),MyNearWallet=({metadata:v,options:k,store:ie,params:ae,logger:ce})=>__awaiter$i(void 0,void 0,void 0,function*(){const fe=yield setupWalletState$3(ae,k.network),le=()=>__awaiter$i(void 0,void 0,void 0,function*(){const pe=fe.wallet.getAccountId(),ye=fe.wallet.account();if(!pe||!ye)return[];const me=yield ye.connection.signer.getPublicKey(ye.accountId,k.network.networkId);return[{accountId:pe,publicKey:me?me.toString():""}]}),ve=pe=>__awaiter$i(void 0,void 0,void 0,function*(){const ye=fe.wallet.account(),{networkId:me,signer:Ee,provider:cr}=ye.connection,Br=yield Ee.getPublicKey(ye.accountId,me);return Promise.all(pe.map(($r,Pr)=>__awaiter$i(void 0,void 0,void 0,function*(){const Ar=$r.actions.map(Mr=>createAction(Mr)),ur=yield ye.accessKeyForTransaction($r.receiverId,Ar,Br);if(!ur)throw new Error(`Failed to find matching key for transaction sent to ${$r.receiverId}`);const jr=yield cr.block({finality:"final"});return nearAPI$7.transactions.createTransaction(ye.accountId,nearAPI$7.utils.PublicKey.from(ur.public_key),$r.receiverId,ur.access_key.nonce+Pr+1,Ar,nearAPI$7.utils.serialize.base_decode(jr.header.hash))})))});return{signIn({contractId:pe,methodNames:ye,successUrl:me,failureUrl:Ee}){return __awaiter$i(this,void 0,void 0,function*(){const cr=yield le();return cr.length?cr:(yield fe.wallet.requestSignIn({contractId:pe,methodNames:ye,successUrl:me,failureUrl:Ee}),le())})},signOut(){return __awaiter$i(this,void 0,void 0,function*(){fe.wallet.isSignedIn()&&fe.wallet.signOut()})},getAccounts(){return __awaiter$i(this,void 0,void 0,function*(){return le()})},verifyOwner(){return __awaiter$i(this,void 0,void 0,function*(){throw new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction({signerId:pe,receiverId:ye,actions:me,callbackUrl:Ee}){return __awaiter$i(this,void 0,void 0,function*(){ce.log("signAndSendTransaction",{signerId:pe,receiverId:ye,actions:me,callbackUrl:Ee});const{contract:cr}=ie.getState();if(!fe.wallet.isSignedIn()||!cr)throw new Error("Wallet not signed in");return fe.wallet.account().signAndSendTransaction({receiverId:ye||cr.contractId,actions:me.map($r=>createAction($r)),walletCallbackUrl:Ee})})},signAndSendTransactions({transactions:pe,callbackUrl:ye}){return __awaiter$i(this,void 0,void 0,function*(){if(ce.log("signAndSendTransactions",{transactions:pe,callbackUrl:ye}),!fe.wallet.isSignedIn())throw new Error("Wallet not signed in");return fe.wallet.requestSignTransactions({transactions:yield ve(pe),callbackUrl:ye})})},buildImportAccountsUrl(){return`${ae.walletUrl}/batch-import`}}});function setupMyNearWallet({walletUrl:v,iconUrl:k=icon$h,deprecated:ie=!1,successUrl:ae="",failureUrl:ce=""}={}){return fe=>__awaiter$i(this,void 0,void 0,function*(){return{id:"my-near-wallet",type:"browser",metadata:{name:"MyNearWallet",description:"NEAR wallet to store, buy, send and stake assets for DeFi.",iconUrl:k,deprecated:ie,available:!0,successUrl:ae,failureUrl:ce,walletUrl:resolveWalletUrl$3(fe.options.network,v)},init:le=>MyNearWallet(Object.assign(Object.assign({},le),{params:{walletUrl:resolveWalletUrl$3(le.options.network,v)}}))}})}var commonjsGlobal$f=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$e=function(v){return v&&v.Math==Math&&v},global$a$c=check$e(typeof globalThis=="object"&&globalThis)||check$e(typeof window=="object"&&window)||check$e(typeof self=="object"&&self)||check$e(typeof commonjsGlobal$f=="object"&&commonjsGlobal$f)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$c={},fails$9$c=function(v){try{return!!v()}catch{return!0}},fails$8$c=fails$9$c,descriptors$e=!fails$8$c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$7$e=fails$9$c,functionBindNative$e=!fails$7$e(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$1$e=functionBindNative$e,call$5$c=Function.prototype.call,functionCall$e=NATIVE_BIND$1$e?call$5$c.bind(call$5$c):function(){return call$5$c.apply(call$5$c,arguments)},objectPropertyIsEnumerable$c={},$propertyIsEnumerable$c={}.propertyIsEnumerable,getOwnPropertyDescriptor$1$c=Object.getOwnPropertyDescriptor,NASHORN_BUG$c=getOwnPropertyDescriptor$1$c&&!$propertyIsEnumerable$c.call({1:2},1);objectPropertyIsEnumerable$c.f=NASHORN_BUG$c?function v(k){var ie=getOwnPropertyDescriptor$1$c(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$c;var createPropertyDescriptor$2$c=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$h=functionBindNative$e,FunctionPrototype$1$e=Function.prototype,bind$j=FunctionPrototype$1$e.bind,call$4$e=FunctionPrototype$1$e.call,uncurryThis$a$c=NATIVE_BIND$h&&bind$j.bind(call$4$e,call$4$e),functionUncurryThis$e=NATIVE_BIND$h?function(v){return v&&uncurryThis$a$c(v)}:function(v){return v&&function(){return call$4$e.apply(v,arguments)}},uncurryThis$9$c=functionUncurryThis$e,toString$1$e=uncurryThis$9$c({}.toString),stringSlice$e=uncurryThis$9$c("".slice),classofRaw$f=function(v){return stringSlice$e(toString$1$e(v),8,-1)},uncurryThis$8$c=functionUncurryThis$e,fails$6$e=fails$9$c,classof$m=classofRaw$f,$Object$2$e=Object,split$c=uncurryThis$8$c("".split),indexedObject$c=fails$6$e(function(){return!$Object$2$e("z").propertyIsEnumerable(0)})?function(v){return classof$m(v)=="String"?split$c(v,""):$Object$2$e(v)}:$Object$2$e,$TypeError$5$e=TypeError,requireObjectCoercible$2$c=function(v){if(v==null)throw $TypeError$5$e("Can't call method on "+v);return v},IndexedObject$1$a=indexedObject$c,requireObjectCoercible$1$e=requireObjectCoercible$2$c,toIndexedObject$3$c=function(v){return IndexedObject$1$a(requireObjectCoercible$1$e(v))},isCallable$a$e=function(v){return typeof v=="function"},isCallable$9$e=isCallable$a$e,isObject$5$e=function(v){return typeof v=="object"?v!==null:isCallable$9$e(v)},global$9$e=global$a$c,isCallable$8$e=isCallable$a$e,aFunction$e=function(v){return isCallable$8$e(v)?v:void 0},getBuiltIn$3$c=function(v,k){return arguments.length<2?aFunction$e(global$9$e[v]):global$9$e[v]&&global$9$e[v][k]},uncurryThis$7$c=functionUncurryThis$e,objectIsPrototypeOf$e=uncurryThis$7$c({}.isPrototypeOf),getBuiltIn$2$e=getBuiltIn$3$c,engineUserAgent$e=getBuiltIn$2$e("navigator","userAgent")||"",global$8$e=global$a$c,userAgent$h=engineUserAgent$e,process$f=global$8$e.process,Deno$a=global$8$e.Deno,versions$e=process$f&&process$f.versions||Deno$a&&Deno$a.version,v8$e=versions$e&&versions$e.v8,match$e,version$e;v8$e&&(match$e=v8$e.split("."),version$e=match$e[0]>0&&match$e[0]<4?1:+(match$e[0]+match$e[1]));!version$e&&userAgent$h&&(match$e=userAgent$h.match(/Edge\/(\d+)/),(!match$e||match$e[1]>=74)&&(match$e=userAgent$h.match(/Chrome\/(\d+)/),match$e&&(version$e=+match$e[1])));var engineV8Version$e=version$e,V8_VERSION$f=engineV8Version$e,fails$5$e=fails$9$c,nativeSymbol$e=!!Object.getOwnPropertySymbols&&!fails$5$e(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$f&&V8_VERSION$f<41}),NATIVE_SYMBOL$1$e=nativeSymbol$e,useSymbolAsUid$e=NATIVE_SYMBOL$1$e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$1$e=getBuiltIn$3$c,isCallable$7$e=isCallable$a$e,isPrototypeOf$i=objectIsPrototypeOf$e,USE_SYMBOL_AS_UID$1$e=useSymbolAsUid$e,$Object$1$e=Object,isSymbol$2$e=USE_SYMBOL_AS_UID$1$e?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$1$e("Symbol");return isCallable$7$e(k)&&isPrototypeOf$i(k.prototype,$Object$1$e(v))},$String$1$e=String,tryToString$1$e=function(v){try{return $String$1$e(v)}catch{return"Object"}},isCallable$6$e=isCallable$a$e,tryToString$i=tryToString$1$e,$TypeError$4$e=TypeError,aCallable$1$e=function(v){if(isCallable$6$e(v))return v;throw $TypeError$4$e(tryToString$i(v)+" is not a function")},aCallable$l=aCallable$1$e,getMethod$1$e=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$l(ie)},call$3$e=functionCall$e,isCallable$5$e=isCallable$a$e,isObject$4$e=isObject$5$e,$TypeError$3$e=TypeError,ordinaryToPrimitive$1$e=function(v,k){var ie,ae;if(k==="string"&&isCallable$5$e(ie=v.toString)&&!isObject$4$e(ae=call$3$e(ie,v))||isCallable$5$e(ie=v.valueOf)&&!isObject$4$e(ae=call$3$e(ie,v))||k!=="string"&&isCallable$5$e(ie=v.toString)&&!isObject$4$e(ae=call$3$e(ie,v)))return ae;throw $TypeError$3$e("Can't convert object to primitive value")},shared$3$e={exports:{}},global$7$e=global$a$c,defineProperty$2$c=Object.defineProperty,defineGlobalProperty$3$c=function(v,k){try{defineProperty$2$c(global$7$e,v,{value:k,configurable:!0,writable:!0})}catch{global$7$e[v]=k}return k},global$6$e=global$a$c,defineGlobalProperty$2$e=defineGlobalProperty$3$c,SHARED$e="__core-js_shared__",store$3$e=global$6$e[SHARED$e]||defineGlobalProperty$2$e(SHARED$e,{}),sharedStore$e=store$3$e,store$2$e=sharedStore$e;(shared$3$e.exports=function(v,k){return store$2$e[v]||(store$2$e[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$g=requireObjectCoercible$2$c,$Object$i=Object,toObject$2$b=function(v){return $Object$i(requireObjectCoercible$g(v))},uncurryThis$6$e=functionUncurryThis$e,toObject$1$e=toObject$2$b,hasOwnProperty$e=uncurryThis$6$e({}.hasOwnProperty),hasOwnProperty_1$e=Object.hasOwn||function v(k,ie){return hasOwnProperty$e(toObject$1$e(k),ie)},uncurryThis$5$e=functionUncurryThis$e,id$g=0,postfix$e=Math.random(),toString$9=uncurryThis$5$e(1 .toString),uid$2$e=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$9(++id$g+postfix$e,36)},global$5$e=global$a$c,shared$2$e=shared$3$e.exports,hasOwn$6$c=hasOwnProperty_1$e,uid$1$e=uid$2$e,NATIVE_SYMBOL$f=nativeSymbol$e,USE_SYMBOL_AS_UID$f=useSymbolAsUid$e,WellKnownSymbolsStore$e=shared$2$e("wks"),Symbol$1$e=global$5$e.Symbol,symbolFor$e=Symbol$1$e&&Symbol$1$e.for,createWellKnownSymbol$e=USE_SYMBOL_AS_UID$f?Symbol$1$e:Symbol$1$e&&Symbol$1$e.withoutSetter||uid$1$e,wellKnownSymbol$1$e=function(v){if(!hasOwn$6$c(WellKnownSymbolsStore$e,v)||!(NATIVE_SYMBOL$f||typeof WellKnownSymbolsStore$e[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$f&&hasOwn$6$c(Symbol$1$e,v)?WellKnownSymbolsStore$e[v]=Symbol$1$e[v]:USE_SYMBOL_AS_UID$f&&symbolFor$e?WellKnownSymbolsStore$e[v]=symbolFor$e(k):WellKnownSymbolsStore$e[v]=createWellKnownSymbol$e(k)}return WellKnownSymbolsStore$e[v]},call$2$e=functionCall$e,isObject$3$e=isObject$5$e,isSymbol$1$e=isSymbol$2$e,getMethod$h=getMethod$1$e,ordinaryToPrimitive$f=ordinaryToPrimitive$1$e,wellKnownSymbol$s=wellKnownSymbol$1$e,$TypeError$2$e=TypeError,TO_PRIMITIVE$e=wellKnownSymbol$s("toPrimitive"),toPrimitive$1$e=function(v,k){if(!isObject$3$e(v)||isSymbol$1$e(v))return v;var ie=getMethod$h(v,TO_PRIMITIVE$e),ae;if(ie){if(k===void 0&&(k="default"),ae=call$2$e(ie,v,k),!isObject$3$e(ae)||isSymbol$1$e(ae))return ae;throw $TypeError$2$e("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$f(v,k)},toPrimitive$g=toPrimitive$1$e,isSymbol$h=isSymbol$2$e,toPropertyKey$2$c=function(v){var k=toPrimitive$g(v,"string");return isSymbol$h(k)?k:k+""},global$4$e=global$a$c,isObject$2$e=isObject$5$e,document$7=global$4$e.document,EXISTS$1$e=isObject$2$e(document$7)&&isObject$2$e(document$7.createElement),documentCreateElement$f=function(v){return EXISTS$1$e?document$7.createElement(v):{}},DESCRIPTORS$7$c=descriptors$e,fails$4$e=fails$9$c,createElement$f=documentCreateElement$f,ie8DomDefine$e=!DESCRIPTORS$7$c&&!fails$4$e(function(){return Object.defineProperty(createElement$f("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$6$c=descriptors$e,call$1$e=functionCall$e,propertyIsEnumerableModule$1$a=objectPropertyIsEnumerable$c,createPropertyDescriptor$1$e=createPropertyDescriptor$2$c,toIndexedObject$2$c=toIndexedObject$3$c,toPropertyKey$1$e=toPropertyKey$2$c,hasOwn$5$c=hasOwnProperty_1$e,IE8_DOM_DEFINE$1$c=ie8DomDefine$e,$getOwnPropertyDescriptor$1$c=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$c.f=DESCRIPTORS$6$c?$getOwnPropertyDescriptor$1$c:function v(k,ie){if(k=toIndexedObject$2$c(k),ie=toPropertyKey$1$e(ie),IE8_DOM_DEFINE$1$c)try{return $getOwnPropertyDescriptor$1$c(k,ie)}catch{}if(hasOwn$5$c(k,ie))return createPropertyDescriptor$1$e(!call$1$e(propertyIsEnumerableModule$1$a.f,k,ie),k[ie])};var objectDefineProperty$e={},DESCRIPTORS$5$e=descriptors$e,fails$3$e=fails$9$c,v8PrototypeDefineBug$e=DESCRIPTORS$5$e&&fails$3$e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$1$e=isObject$5$e,$String$h=String,$TypeError$1$e=TypeError,anObject$2$e=function(v){if(isObject$1$e(v))return v;throw $TypeError$1$e($String$h(v)+" is not an object")},DESCRIPTORS$4$e=descriptors$e,IE8_DOM_DEFINE$f=ie8DomDefine$e,V8_PROTOTYPE_DEFINE_BUG$f=v8PrototypeDefineBug$e,anObject$1$e=anObject$2$e,toPropertyKey$i=toPropertyKey$2$c,$TypeError$p=TypeError,$defineProperty$e=Object.defineProperty,$getOwnPropertyDescriptor$f=Object.getOwnPropertyDescriptor,ENUMERABLE$e="enumerable",CONFIGURABLE$1$e="configurable",WRITABLE$e="writable";objectDefineProperty$e.f=DESCRIPTORS$4$e?V8_PROTOTYPE_DEFINE_BUG$f?function v(k,ie,ae){if(anObject$1$e(k),ie=toPropertyKey$i(ie),anObject$1$e(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$e in ae&&!ae[WRITABLE$e]){var ce=$getOwnPropertyDescriptor$f(k,ie);ce&&ce[WRITABLE$e]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$e in ae?ae[CONFIGURABLE$1$e]:ce[CONFIGURABLE$1$e],enumerable:ENUMERABLE$e in ae?ae[ENUMERABLE$e]:ce[ENUMERABLE$e],writable:!1})}return $defineProperty$e(k,ie,ae)}:$defineProperty$e:function v(k,ie,ae){if(anObject$1$e(k),ie=toPropertyKey$i(ie),anObject$1$e(ae),IE8_DOM_DEFINE$f)try{return $defineProperty$e(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$p("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$3$e=descriptors$e,definePropertyModule$2$c=objectDefineProperty$e,createPropertyDescriptor$j=createPropertyDescriptor$2$c,createNonEnumerableProperty$2$c=DESCRIPTORS$3$e?function(v,k,ie){return definePropertyModule$2$c.f(v,k,createPropertyDescriptor$j(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$e={exports:{}},DESCRIPTORS$2$e=descriptors$e,hasOwn$4$e=hasOwnProperty_1$e,FunctionPrototype$g=Function.prototype,getDescriptor$e=DESCRIPTORS$2$e&&Object.getOwnPropertyDescriptor,EXISTS$f=hasOwn$4$e(FunctionPrototype$g,"name"),PROPER$e=EXISTS$f&&function v(){}.name==="something",CONFIGURABLE$f=EXISTS$f&&(!DESCRIPTORS$2$e||DESCRIPTORS$2$e&&getDescriptor$e(FunctionPrototype$g,"name").configurable),functionName$e={EXISTS:EXISTS$f,PROPER:PROPER$e,CONFIGURABLE:CONFIGURABLE$f},uncurryThis$4$e=functionUncurryThis$e,isCallable$4$e=isCallable$a$e,store$1$e=sharedStore$e,functionToString$e=uncurryThis$4$e(Function.toString);isCallable$4$e(store$1$e.inspectSource)||(store$1$e.inspectSource=function(v){return functionToString$e(v)});var inspectSource$2$e=store$1$e.inspectSource,global$3$e=global$a$c,isCallable$3$e=isCallable$a$e,inspectSource$1$e=inspectSource$2$e,WeakMap$1$e=global$3$e.WeakMap,nativeWeakMap$e=isCallable$3$e(WeakMap$1$e)&&/native code/.test(inspectSource$1$e(WeakMap$1$e)),shared$1$e=shared$3$e.exports,uid$h=uid$2$e,keys$a=shared$1$e("keys"),sharedKey$1$e=function(v){return keys$a[v]||(keys$a[v]=uid$h(v))},hiddenKeys$3$c={},NATIVE_WEAK_MAP$e=nativeWeakMap$e,global$2$e=global$a$c,uncurryThis$3$e=functionUncurryThis$e,isObject$p=isObject$5$e,createNonEnumerableProperty$1$e=createNonEnumerableProperty$2$c,hasOwn$3$e=hasOwnProperty_1$e,shared$h=sharedStore$e,sharedKey$g=sharedKey$1$e,hiddenKeys$2$c=hiddenKeys$3$c,OBJECT_ALREADY_INITIALIZED$e="Object already initialized",TypeError$1$e=global$2$e.TypeError,WeakMap$g=global$2$e.WeakMap,set$f,get$f,has$e,enforce$e=function(v){return has$e(v)?get$f(v):set$f(v,{})},getterFor$e=function(v){return function(k){var ie;if(!isObject$p(k)||(ie=get$f(k)).type!==v)throw TypeError$1$e("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$e||shared$h.state?(store$h=shared$h.state||(shared$h.state=new WeakMap$g),wmget$e=uncurryThis$3$e(store$h.get),wmhas$e=uncurryThis$3$e(store$h.has),wmset$e=uncurryThis$3$e(store$h.set),set$f=function(v,k){if(wmhas$e(store$h,v))throw new TypeError$1$e(OBJECT_ALREADY_INITIALIZED$e);return k.facade=v,wmset$e(store$h,v,k),k},get$f=function(v){return wmget$e(store$h,v)||{}},has$e=function(v){return wmhas$e(store$h,v)}):(STATE$e=sharedKey$g("state"),hiddenKeys$2$c[STATE$e]=!0,set$f=function(v,k){if(hasOwn$3$e(v,STATE$e))throw new TypeError$1$e(OBJECT_ALREADY_INITIALIZED$e);return k.facade=v,createNonEnumerableProperty$1$e(v,STATE$e,k),k},get$f=function(v){return hasOwn$3$e(v,STATE$e)?v[STATE$e]:{}},has$e=function(v){return hasOwn$3$e(v,STATE$e)});var store$h,wmget$e,wmhas$e,wmset$e,STATE$e,internalState$e={set:set$f,get:get$f,has:has$e,enforce:enforce$e,getterFor:getterFor$e},fails$2$e=fails$9$c,isCallable$2$e=isCallable$a$e,hasOwn$2$e=hasOwnProperty_1$e,DESCRIPTORS$1$e=descriptors$e,CONFIGURABLE_FUNCTION_NAME$g=functionName$e.CONFIGURABLE,inspectSource$i=inspectSource$2$e,InternalStateModule$i=internalState$e,enforceInternalState$g=InternalStateModule$i.enforce,getInternalState$i=InternalStateModule$i.get,defineProperty$1$e=Object.defineProperty,CONFIGURABLE_LENGTH$e=DESCRIPTORS$1$e&&!fails$2$e(function(){return defineProperty$1$e(function(){},"length",{value:8}).length!==8}),TEMPLATE$e=String(String).split("String"),makeBuiltIn$1$e=makeBuiltIn$2$e.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$2$e(v,"name")||CONFIGURABLE_FUNCTION_NAME$g&&v.name!==k)&&(DESCRIPTORS$1$e?defineProperty$1$e(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$e&&ie&&hasOwn$2$e(ie,"arity")&&v.length!==ie.arity&&defineProperty$1$e(v,"length",{value:ie.arity});try{ie&&hasOwn$2$e(ie,"constructor")&&ie.constructor?DESCRIPTORS$1$e&&defineProperty$1$e(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$g(v);return hasOwn$2$e(ae,"source")||(ae.source=TEMPLATE$e.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$e(function v(){return isCallable$2$e(this)&&getInternalState$i(this).source||inspectSource$i(this)},"toString");var isCallable$1$e=isCallable$a$e,definePropertyModule$1$e=objectDefineProperty$e,makeBuiltIn$g=makeBuiltIn$2$e.exports,defineGlobalProperty$1$e=defineGlobalProperty$3$c,defineBuiltIn$1$e=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$1$e(ie)&&makeBuiltIn$g(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$e(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$1$e.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$c={},ceil$c=Math.ceil,floor$f=Math.floor,mathTrunc$c=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$f:ceil$c)(ie)},trunc2$c=mathTrunc$c,toIntegerOrInfinity$2$c=function(v){var k=+v;return k!==k||k===0?0:trunc2$c(k)},toIntegerOrInfinity$1$c=toIntegerOrInfinity$2$c,max$d=Math.max,min$1$c=Math.min,toAbsoluteIndex$1$c=function(v,k){var ie=toIntegerOrInfinity$1$c(v);return ie<0?max$d(ie+k,0):min$1$c(ie,k)},toIntegerOrInfinity$h=toIntegerOrInfinity$2$c,min$d=Math.min,toLength$1$c=function(v){return v>0?min$d(toIntegerOrInfinity$h(v),9007199254740991):0},toLength$h=toLength$1$c,lengthOfArrayLike$1$c=function(v){return toLength$h(v.length)},toIndexedObject$1$c=toIndexedObject$3$c,toAbsoluteIndex$g=toAbsoluteIndex$1$c,lengthOfArrayLike$i=lengthOfArrayLike$1$c,createMethod$d=function(v){return function(k,ie,ae){var ce=toIndexedObject$1$c(k),fe=lengthOfArrayLike$i(ce),le=toAbsoluteIndex$g(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$c={includes:createMethod$d(!0),indexOf:createMethod$d(!1)},uncurryThis$2$e=functionUncurryThis$e,hasOwn$1$e=hasOwnProperty_1$e,toIndexedObject$i=toIndexedObject$3$c,indexOf$c=arrayIncludes$c.indexOf,hiddenKeys$1$c=hiddenKeys$3$c,push$d=uncurryThis$2$e([].push),objectKeysInternal$c=function(v,k){var ie=toIndexedObject$i(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$1$e(hiddenKeys$1$c,fe)&&hasOwn$1$e(ie,fe)&&push$d(ce,fe);for(;k.length>ae;)hasOwn$1$e(ie,fe=k[ae++])&&(~indexOf$c(ce,fe)||push$d(ce,fe));return ce},enumBugKeys$2$b=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$b=objectKeysInternal$c,enumBugKeys$1$c=enumBugKeys$2$b,hiddenKeys$g=enumBugKeys$1$c.concat("length","prototype");objectGetOwnPropertyNames$c.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$b(k,hiddenKeys$g)};var objectGetOwnPropertySymbols$c={};objectGetOwnPropertySymbols$c.f=Object.getOwnPropertySymbols;var getBuiltIn$m=getBuiltIn$3$c,uncurryThis$1$e=functionUncurryThis$e,getOwnPropertyNamesModule$c=objectGetOwnPropertyNames$c,getOwnPropertySymbolsModule$1$a=objectGetOwnPropertySymbols$c,anObject$o=anObject$2$e,concat$1$a=uncurryThis$1$e([].concat),ownKeys$1$c=getBuiltIn$m("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$c.f(anObject$o(k)),ae=getOwnPropertySymbolsModule$1$a.f;return ae?concat$1$a(ie,ae(k)):ie},hasOwn2$e=hasOwnProperty_1$e,ownKeys2$c=ownKeys$1$c,getOwnPropertyDescriptorModule$d=objectGetOwnPropertyDescriptor$c,definePropertyModule$k=objectDefineProperty$e,copyConstructorProperties$1$c=function(v,k,ie){for(var ae=ownKeys2$c(k),ce=definePropertyModule$k.f,fe=getOwnPropertyDescriptorModule$d.f,le=0;lefe;)for(var pe=IndexedObject$e(arguments[fe++]),ye=le?concat$e(objectKeys$d(pe),le(pe)):objectKeys$d(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$r||call$s(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$a,$$j=_export$c,assign2$a=objectAssign$a;$$j({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$a},{assign:assign2$a});function __awaiter$h(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAQAAADTdEb+AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfmCBYRIzjChBcFAAAabUlEQVR42u2deWBVxfXHPwlhSYCAsikiqCAYQJGqdSmCWrVotbVgUdzrhlWUHWQTRCkiCAEtFdywILRWkWoFd1CsIiJFlFX8sW9hTSCBJCTv90dEEsjLe/e+uefc7XP+S/LeOWfmm3vvzJ05k4Q1UmlMBq1pzqnUoQaVSSrz+0Jy2cMW1rKCFawn2+L3h+hQlVM4i5a0oDH1SKcKkM9+stjAar5nNVsptPKFSXH/ZRpncwWXkkF9UuP4XD57WMtC5rGYndrtFhKVNFrRgUtpyUmkkVzOXxSTy1a+41M+YzX5Jp035D4+YC8RG3aQJTzOOeWGHKLLqXTjffbE3Zc7eIuu1DXjvCF9WUaRLVEdta1Moq12O4aUogmDWUGx5Z4s5CseSFRcqdzBkgQlddS28AQNtdszBKjFgyxPoCeL+JzOVLHrvhUzyTcmqxJbxLUWnutCnOBi5nI44Z7M5SWaWXeeTBdWGxZVie1hCDW02zawVKM7W4315TKut+Y+lcFkOyKrkgvpVE7SbuFAUpdJhu9Bu+kd/y0xnYkUOiarEvsPTbRbOXA05i0HejKfp6kej/t0JtsYK1i39zhVu6UDxWm879gdaGLsh5tUJorIKkKEWaZmREJi0p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lqqLqbTNIz2ZHBYoNslqRnq9/IULWEkvtmgHUYoF5AC0N3Q2s3U7WOY0qpBEuF2tF4+1HC4tCakm85RCeMXz53e5h2QGU6guqpIb4c9vfB+iWCGAFd6vW+cqUh0+gTA+K+bBoyGdqrB4LI9btHvCd9Q3fsqadVtOo9Ih9RcP4AUfnd/lHs7if8rC6l82oFOEA/rOT8d7uIr2bFKU1RJOOTagO8gXc5/LTdrt72NuIVtJVofKG+WnCpYmnBLeBh0kiUeVxoczSC0voAxWirhfwunabe9zUvmbgqxWkhEtoE7sc9z9jkCWqpWmHu8Iy2ofnaKHk0R/Chx1n0s37TYPCM1ZLCirAvr/dLB8FKoyxsH6AAUMIUW7xQPDJawVklURY2K/Q6nBRIekVcAT4SscUa5mg4isJlIjnnCqM9qBqYcDDA5lJc5V/OCwrPIZHf82mCr0YrdR99u4h0rarRxILuQrB2W1m15Wp46uM7i5aCGXa7dvgDmd6Q7Na33LdXYCasaL5CbsPJvMsq8lQ8SpTnfWGxZVLi/Zfy1XhU58nsCjfAEf0jG8BbqCc3jF2KueIj6nc6JvT+rSja9szG4d4lNup5Z2e4b8TGWu5HX2JiiqAr6im6mDHerSlVkWqvZuYQY3hKJyIVVpx0RW2Xzm2sEsusYnqqR4/giAKrSgA+05h4ZUL/cAzSIOsIWlzGcBazms3YYhUWnERVzB+ZxOLSrH/OtictnKMj7jU1ZTEJ+L+IVVQmUa0oJWnEUT6pFOVSCfHHawnlV8zxq2uXJnbsjx1KUpLWlJU06mNmnHPAsXk08OO9nAKpazmq3WNjb/PwtMam6w6l9KAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA4LTIyVDE3OjM1OjQ4KzAwOjAwUOMNpQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wOC0yMlQxNzozNTo0OCswMDowMCG+tRkAAAAASUVORK5CYII=",resolveWalletUrl$2=(v,k)=>{if(k)return k;switch(v.networkId){case"mainnet":return"https://wallet.near.org";case"testnet":return"https://wallet.testnet.near.org";default:throw new Error("Invalid wallet url")}};function setupNearWallet({walletUrl:v,iconUrl:k=icon$g,deprecated:ie=!1,successUrl:ae="",failureUrl:ce=""}={}){return fe=>__awaiter$h(this,void 0,void 0,function*(){const le=yield setupMyNearWallet({walletUrl:resolveWalletUrl$2(fe.options.network,v),iconUrl:k,successUrl:ae,failureUrl:ce})(fe);return le?Object.assign(Object.assign({},le),{id:"near-wallet",metadata:Object.assign(Object.assign({},le.metadata),{name:"NEAR Wallet",description:"Web wallet for NEAR Protocol",iconUrl:k,deprecated:ie,available:!0})}):null})}var require_is_mobile=__commonJS$1({"node_modules/is-mobile/index.js"(v,k){k.exports=fe,k.exports.isMobile=fe,k.exports.default=fe;var ie=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,ae=/CrOS/,ce=/android|ipad|playbook|silk/i;function fe(le){le||(le={});let ve=le.ua;if(!ve&&typeof navigator<"u"&&(ve=navigator.userAgent),ve&&ve.headers&&typeof ve.headers["user-agent"]=="string"&&(ve=ve.headers["user-agent"]),typeof ve!="string")return!1;let pe=ie.test(ve)&&!ae.test(ve)||!!le.tablet&&ce.test(ve);return!pe&&le.tablet&&le.featureDetect&&navigator&&navigator.maxTouchPoints>1&&ve.indexOf("Macintosh")!==-1&&ve.indexOf("Safari")!==-1&&(pe=!0),pe}}}),import_is_mobile$a=__toESM(require_is_mobile(),1),commonjsGlobal$e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$k$4=function(v){try{return!!v()}catch{return!0}},fails$j$5=fails$k$4,descriptors$d=!fails$j$5(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$i$5=fails$k$4,functionBindNative$d=!fails$i$5(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$8=functionBindNative$d,FunctionPrototype$2$8=Function.prototype,bind$3$8=FunctionPrototype$2$8.bind,call$d$7=FunctionPrototype$2$8.call,uncurryThis$j$5=NATIVE_BIND$3$8&&bind$3$8.bind(call$d$7,call$d$7),functionUncurryThis$d=NATIVE_BIND$3$8?function(v){return v&&uncurryThis$j$5(v)}:function(v){return v&&function(){return call$d$7.apply(v,arguments)}},$TypeError$a$8=TypeError,requireObjectCoercible$2$b=function(v){if(v==null)throw $TypeError$a$8("Can't call method on "+v);return v},requireObjectCoercible$1$d=requireObjectCoercible$2$b,$Object$4$8=Object,toObject$6$3=function(v){return $Object$4$8(requireObjectCoercible$1$d(v))},uncurryThis$i$5=functionUncurryThis$d,toObject$5$3=toObject$6$3,hasOwnProperty$d=uncurryThis$i$5({}.hasOwnProperty),hasOwnProperty_1$d=Object.hasOwn||function v(k,ie){return hasOwnProperty$d(toObject$5$3(k),ie)},DESCRIPTORS$d$3=descriptors$d,hasOwn$b$3=hasOwnProperty_1$d,FunctionPrototype$1$d=Function.prototype,getDescriptor$d=DESCRIPTORS$d$3&&Object.getOwnPropertyDescriptor,EXISTS$1$d=hasOwn$b$3(FunctionPrototype$1$d,"name"),PROPER$d=EXISTS$1$d&&function v(){}.name==="something",CONFIGURABLE$1$d=EXISTS$1$d&&(!DESCRIPTORS$d$3||DESCRIPTORS$d$3&&getDescriptor$d(FunctionPrototype$1$d,"name").configurable),functionName$d={EXISTS:EXISTS$1$d,PROPER:PROPER$d,CONFIGURABLE:CONFIGURABLE$1$d},isCallable$i$7=function(v){return typeof v=="function"},objectDefineProperty$d={},check$d=function(v){return v&&v.Math==Math&&v},global$h$8=check$d(typeof globalThis=="object"&&globalThis)||check$d(typeof window=="object"&&window)||check$d(typeof self=="object"&&self)||check$d(typeof commonjsGlobal$e=="object"&&commonjsGlobal$e)||function(){return this}()||Function("return this")(),isCallable$h$8=isCallable$i$7,isObject$a$3=function(v){return typeof v=="object"?v!==null:isCallable$h$8(v)},global$g$8=global$h$8,isObject$9$3=isObject$a$3,document$1$9=global$g$8.document,EXISTS$e=isObject$9$3(document$1$9)&&isObject$9$3(document$1$9.createElement),documentCreateElement$1$8=function(v){return EXISTS$e?document$1$9.createElement(v):{}},DESCRIPTORS$c$3=descriptors$d,fails$h$5=fails$k$4,createElement$e=documentCreateElement$1$8,ie8DomDefine$d=!DESCRIPTORS$c$3&&!fails$h$5(function(){return Object.defineProperty(createElement$e("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$b$3=descriptors$d,fails$g$5=fails$k$4,v8PrototypeDefineBug$d=DESCRIPTORS$b$3&&fails$g$5(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$8$4=isObject$a$3,$String$3$8=String,$TypeError$9$8=TypeError,anObject$a$7=function(v){if(isObject$8$4(v))return v;throw $TypeError$9$8($String$3$8(v)+" is not an object")},NATIVE_BIND$2$8=functionBindNative$d,call$c$8=Function.prototype.call,functionCall$d=NATIVE_BIND$2$8?call$c$8.bind(call$c$8):function(){return call$c$8.apply(call$c$8,arguments)},global$f$8=global$h$8,isCallable$g$8=isCallable$i$7,aFunction$d=function(v){return isCallable$g$8(v)?v:void 0},getBuiltIn$6$8=function(v,k){return arguments.length<2?aFunction$d(global$f$8[v]):global$f$8[v]&&global$f$8[v][k]},uncurryThis$h$5=functionUncurryThis$d,objectIsPrototypeOf$d=uncurryThis$h$5({}.isPrototypeOf),getBuiltIn$5$8=getBuiltIn$6$8,engineUserAgent$d=getBuiltIn$5$8("navigator","userAgent")||"",global$e$8=global$h$8,userAgent$2$8=engineUserAgent$d,process$e=global$e$8.process,Deno$9=global$e$8.Deno,versions$d=process$e&&process$e.versions||Deno$9&&Deno$9.version,v8$d=versions$d&&versions$d.v8,match$d,version$d;v8$d&&(match$d=v8$d.split("."),version$d=match$d[0]>0&&match$d[0]<4?1:+(match$d[0]+match$d[1]));!version$d&&userAgent$2$8&&(match$d=userAgent$2$8.match(/Edge\/(\d+)/),(!match$d||match$d[1]>=74)&&(match$d=userAgent$2$8.match(/Chrome\/(\d+)/),match$d&&(version$d=+match$d[1])));var engineV8Version$d=version$d,V8_VERSION$e=engineV8Version$d,fails$f$5=fails$k$4,nativeSymbol$d=!!Object.getOwnPropertySymbols&&!fails$f$5(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$e&&V8_VERSION$e<41}),NATIVE_SYMBOL$1$d=nativeSymbol$d,useSymbolAsUid$d=NATIVE_SYMBOL$1$d&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$4$9=getBuiltIn$6$8,isCallable$f$9=isCallable$i$7,isPrototypeOf$4$3=objectIsPrototypeOf$d,USE_SYMBOL_AS_UID$1$d=useSymbolAsUid$d,$Object$3$a=Object,isSymbol$3$3=USE_SYMBOL_AS_UID$1$d?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$4$9("Symbol");return isCallable$f$9(k)&&isPrototypeOf$4$3(k.prototype,$Object$3$a(v))},$String$2$c=String,tryToString$4$8=function(v){try{return $String$2$c(v)}catch{return"Object"}},isCallable$e$9=isCallable$i$7,tryToString$3$8=tryToString$4$8,$TypeError$8$8=TypeError,aCallable$4$8=function(v){if(isCallable$e$9(v))return v;throw $TypeError$8$8(tryToString$3$8(v)+" is not a function")},aCallable$3$8=aCallable$4$8,getMethod$2$8=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$3$8(ie)},call$b$8=functionCall$d,isCallable$d$9=isCallable$i$7,isObject$7$8=isObject$a$3,$TypeError$7$8=TypeError,ordinaryToPrimitive$1$d=function(v,k){var ie,ae;if(k==="string"&&isCallable$d$9(ie=v.toString)&&!isObject$7$8(ae=call$b$8(ie,v))||isCallable$d$9(ie=v.valueOf)&&!isObject$7$8(ae=call$b$8(ie,v))||k!=="string"&&isCallable$d$9(ie=v.toString)&&!isObject$7$8(ae=call$b$8(ie,v)))return ae;throw $TypeError$7$8("Can't convert object to primitive value")},shared$3$d={exports:{}},global$d$8=global$h$8,defineProperty$7$3=Object.defineProperty,defineGlobalProperty$3$b=function(v,k){try{defineProperty$7$3(global$d$8,v,{value:k,configurable:!0,writable:!0})}catch{global$d$8[v]=k}return k},global$c$8=global$h$8,defineGlobalProperty$2$d=defineGlobalProperty$3$b,SHARED$d="__core-js_shared__",store$3$d=global$c$8[SHARED$d]||defineGlobalProperty$2$d(SHARED$d,{}),sharedStore$d=store$3$d,store$2$d=sharedStore$d;(shared$3$d.exports=function(v,k){return store$2$d[v]||(store$2$d[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var uncurryThis$g$5=functionUncurryThis$d,id$f=0,postfix$d=Math.random(),toString$2$b=uncurryThis$g$5(1 .toString),uid$3$3=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$2$b(++id$f+postfix$d,36)},global$b$9=global$h$8,shared$2$d=shared$3$d.exports,hasOwn$a$7=hasOwnProperty_1$d,uid$2$d=uid$3$3,NATIVE_SYMBOL$e=nativeSymbol$d,USE_SYMBOL_AS_UID$e=useSymbolAsUid$d,WellKnownSymbolsStore$d=shared$2$d("wks"),Symbol$1$d=global$b$9.Symbol,symbolFor$d=Symbol$1$d&&Symbol$1$d.for,createWellKnownSymbol$d=USE_SYMBOL_AS_UID$e?Symbol$1$d:Symbol$1$d&&Symbol$1$d.withoutSetter||uid$2$d,wellKnownSymbol$e$7=function(v){if(!hasOwn$a$7(WellKnownSymbolsStore$d,v)||!(NATIVE_SYMBOL$e||typeof WellKnownSymbolsStore$d[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$e&&hasOwn$a$7(Symbol$1$d,v)?WellKnownSymbolsStore$d[v]=Symbol$1$d[v]:USE_SYMBOL_AS_UID$e&&symbolFor$d?WellKnownSymbolsStore$d[v]=symbolFor$d(k):WellKnownSymbolsStore$d[v]=createWellKnownSymbol$d(k)}return WellKnownSymbolsStore$d[v]},call$a$8=functionCall$d,isObject$6$8=isObject$a$3,isSymbol$2$d=isSymbol$3$3,getMethod$1$d=getMethod$2$8,ordinaryToPrimitive$e=ordinaryToPrimitive$1$d,wellKnownSymbol$d$7=wellKnownSymbol$e$7,$TypeError$6$9=TypeError,TO_PRIMITIVE$d=wellKnownSymbol$d$7("toPrimitive"),toPrimitive$2$3=function(v,k){if(!isObject$6$8(v)||isSymbol$2$d(v))return v;var ie=getMethod$1$d(v,TO_PRIMITIVE$d),ae;if(ie){if(k===void 0&&(k="default"),ae=call$a$8(ie,v,k),!isObject$6$8(ae)||isSymbol$2$d(ae))return ae;throw $TypeError$6$9("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$e(v,k)},toPrimitive$1$d=toPrimitive$2$3,isSymbol$1$d=isSymbol$3$3,toPropertyKey$4$3=function(v){var k=toPrimitive$1$d(v,"string");return isSymbol$1$d(k)?k:k+""},DESCRIPTORS$a$7=descriptors$d,IE8_DOM_DEFINE$1$b=ie8DomDefine$d,V8_PROTOTYPE_DEFINE_BUG$1$8=v8PrototypeDefineBug$d,anObject$9$7=anObject$a$7,toPropertyKey$3$4=toPropertyKey$4$3,$TypeError$5$d=TypeError,$defineProperty$d=Object.defineProperty,$getOwnPropertyDescriptor$1$b=Object.getOwnPropertyDescriptor,ENUMERABLE$d="enumerable",CONFIGURABLE$e="configurable",WRITABLE$d="writable";objectDefineProperty$d.f=DESCRIPTORS$a$7?V8_PROTOTYPE_DEFINE_BUG$1$8?function v(k,ie,ae){if(anObject$9$7(k),ie=toPropertyKey$3$4(ie),anObject$9$7(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$d in ae&&!ae[WRITABLE$d]){var ce=$getOwnPropertyDescriptor$1$b(k,ie);ce&&ce[WRITABLE$d]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$e in ae?ae[CONFIGURABLE$e]:ce[CONFIGURABLE$e],enumerable:ENUMERABLE$d in ae?ae[ENUMERABLE$d]:ce[ENUMERABLE$d],writable:!1})}return $defineProperty$d(k,ie,ae)}:$defineProperty$d:function v(k,ie,ae){if(anObject$9$7(k),ie=toPropertyKey$3$4(ie),anObject$9$7(ae),IE8_DOM_DEFINE$1$b)try{return $defineProperty$d(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$5$d("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var makeBuiltIn$2$d={exports:{}},uncurryThis$f$5=functionUncurryThis$d,isCallable$c$9=isCallable$i$7,store$1$d=sharedStore$d,functionToString$d=uncurryThis$f$5(Function.toString);isCallable$c$9(store$1$d.inspectSource)||(store$1$d.inspectSource=function(v){return functionToString$d(v)});var inspectSource$3$8=store$1$d.inspectSource,global$a$b=global$h$8,isCallable$b$a=isCallable$i$7,inspectSource$2$d=inspectSource$3$8,WeakMap$1$d=global$a$b.WeakMap,nativeWeakMap$d=isCallable$b$a(WeakMap$1$d)&&/native code/.test(inspectSource$2$d(WeakMap$1$d)),createPropertyDescriptor$5$3=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$9$7=descriptors$d,definePropertyModule$6$3=objectDefineProperty$d,createPropertyDescriptor$4$4=createPropertyDescriptor$5$3,createNonEnumerableProperty$6$3=DESCRIPTORS$9$7?function(v,k,ie){return definePropertyModule$6$3.f(v,k,createPropertyDescriptor$4$4(1,ie))}:function(v,k,ie){return v[k]=ie,v},shared$1$d=shared$3$d.exports,uid$1$d=uid$3$3,keys$1$3=shared$1$d("keys"),sharedKey$3$8=function(v){return keys$1$3[v]||(keys$1$3[v]=uid$1$d(v))},hiddenKeys$4$8={},NATIVE_WEAK_MAP$d=nativeWeakMap$d,global$9$d=global$h$8,uncurryThis$e$7=functionUncurryThis$d,isObject$5$d=isObject$a$3,createNonEnumerableProperty$5$5=createNonEnumerableProperty$6$3,hasOwn$9$8=hasOwnProperty_1$d,shared$g=sharedStore$d,sharedKey$2$8=sharedKey$3$8,hiddenKeys$3$b=hiddenKeys$4$8,OBJECT_ALREADY_INITIALIZED$d="Object already initialized",TypeError$2$8=global$9$d.TypeError,WeakMap$f=global$9$d.WeakMap,set$1$8,get$1$3,has$d,enforce$d=function(v){return has$d(v)?get$1$3(v):set$1$8(v,{})},getterFor$d=function(v){return function(k){var ie;if(!isObject$5$d(k)||(ie=get$1$3(k)).type!==v)throw TypeError$2$8("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$d||shared$g.state?(store$g=shared$g.state||(shared$g.state=new WeakMap$f),wmget$d=uncurryThis$e$7(store$g.get),wmhas$d=uncurryThis$e$7(store$g.has),wmset$d=uncurryThis$e$7(store$g.set),set$1$8=function(v,k){if(wmhas$d(store$g,v))throw new TypeError$2$8(OBJECT_ALREADY_INITIALIZED$d);return k.facade=v,wmset$d(store$g,v,k),k},get$1$3=function(v){return wmget$d(store$g,v)||{}},has$d=function(v){return wmhas$d(store$g,v)}):(STATE$d=sharedKey$2$8("state"),hiddenKeys$3$b[STATE$d]=!0,set$1$8=function(v,k){if(hasOwn$9$8(v,STATE$d))throw new TypeError$2$8(OBJECT_ALREADY_INITIALIZED$d);return k.facade=v,createNonEnumerableProperty$5$5(v,STATE$d,k),k},get$1$3=function(v){return hasOwn$9$8(v,STATE$d)?v[STATE$d]:{}},has$d=function(v){return hasOwn$9$8(v,STATE$d)});var store$g,wmget$d,wmhas$d,wmset$d,STATE$d,internalState$d={set:set$1$8,get:get$1$3,has:has$d,enforce:enforce$d,getterFor:getterFor$d},fails$e$7=fails$k$4,isCallable$a$d=isCallable$i$7,hasOwn$8$9=hasOwnProperty_1$d,DESCRIPTORS$8$8=descriptors$d,CONFIGURABLE_FUNCTION_NAME$2$3=functionName$d.CONFIGURABLE,inspectSource$1$d=inspectSource$3$8,InternalStateModule$4$3=internalState$d,enforceInternalState$2$3=InternalStateModule$4$3.enforce,getInternalState$4$3=InternalStateModule$4$3.get,defineProperty$6$3=Object.defineProperty,CONFIGURABLE_LENGTH$d=DESCRIPTORS$8$8&&!fails$e$7(function(){return defineProperty$6$3(function(){},"length",{value:8}).length!==8}),TEMPLATE$d=String(String).split("String"),makeBuiltIn$1$d=makeBuiltIn$2$d.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$8$9(v,"name")||CONFIGURABLE_FUNCTION_NAME$2$3&&v.name!==k)&&(DESCRIPTORS$8$8?defineProperty$6$3(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$d&&ie&&hasOwn$8$9(ie,"arity")&&v.length!==ie.arity&&defineProperty$6$3(v,"length",{value:ie.arity});try{ie&&hasOwn$8$9(ie,"constructor")&&ie.constructor?DESCRIPTORS$8$8&&defineProperty$6$3(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$2$3(v);return hasOwn$8$9(ae,"source")||(ae.source=TEMPLATE$d.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$d(function v(){return isCallable$a$d(this)&&getInternalState$4$3(this).source||inspectSource$1$d(this)},"toString");var isCallable$9$d=isCallable$i$7,definePropertyModule$5$4=objectDefineProperty$d,makeBuiltIn$f=makeBuiltIn$2$d.exports,defineGlobalProperty$1$d=defineGlobalProperty$3$b,defineBuiltIn$6$7=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$9$d(ie)&&makeBuiltIn$f(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$d(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$5$4.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},wellKnownSymbol$c$7=wellKnownSymbol$e$7,TO_STRING_TAG$3$8=wellKnownSymbol$c$7("toStringTag"),test$c={};test$c[TO_STRING_TAG$3$8]="z";var toStringTagSupport$c=String(test$c)==="[object z]",uncurryThis$d$8=functionUncurryThis$d,toString$1$d=uncurryThis$d$8({}.toString),stringSlice$d=uncurryThis$d$8("".slice),classofRaw$1$c=function(v){return stringSlice$d(toString$1$d(v),8,-1)},TO_STRING_TAG_SUPPORT$c=toStringTagSupport$c,isCallable$8$d=isCallable$i$7,classofRaw$e=classofRaw$1$c,wellKnownSymbol$b$7=wellKnownSymbol$e$7,TO_STRING_TAG$2$9=wellKnownSymbol$b$7("toStringTag"),$Object$2$d=Object,CORRECT_ARGUMENTS$c=classofRaw$e(function(){return arguments}())=="Arguments",tryGet$c=function(v,k){try{return v[k]}catch{}},classof$8$3=TO_STRING_TAG_SUPPORT$c?classofRaw$e:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$c(k=$Object$2$d(v),TO_STRING_TAG$2$9))=="string"?ie:CORRECT_ARGUMENTS$c?classofRaw$e(k):(ae=classofRaw$e(k))=="Object"&&isCallable$8$d(k.callee)?"Arguments":ae},classof$7$4=classof$8$3,$String$1$d=String,toString2$b=function(v){if(classof$7$4(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$1$d(v)},anObject$8$8=anObject$a$7,regexpFlags$b=function(){var v=anObject$8$8(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$9$8=functionCall$d,hasOwn$7$a=hasOwnProperty_1$d,isPrototypeOf$3$7=objectIsPrototypeOf$d,regExpFlags$b=regexpFlags$b,RegExpPrototype$1$b=RegExp.prototype,regexpGetFlags$b=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$b)&&!hasOwn$7$a(v,"flags")&&isPrototypeOf$3$7(RegExpPrototype$1$b,v)?call$9$8(regExpFlags$b,v):k},PROPER_FUNCTION_NAME$2$3=functionName$d.PROPER,defineBuiltIn$5$7=defineBuiltIn$6$7,anObject$7$9=anObject$a$7,$toString$b=toString2$b,fails$d$7=fails$k$4,getRegExpFlags$b=regexpGetFlags$b,TO_STRING$b="toString",RegExpPrototype$c=RegExp.prototype,n$ToString$b=RegExpPrototype$c[TO_STRING$b],NOT_GENERIC$b=fails$d$7(function(){return n$ToString$b.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$b=PROPER_FUNCTION_NAME$2$3&&n$ToString$b.name!=TO_STRING$b;(NOT_GENERIC$b||INCORRECT_NAME$b)&&defineBuiltIn$5$7(RegExp.prototype,TO_STRING$b,function(){var k=anObject$7$9(this),ie=$toString$b(k.source),ae=$toString$b(getRegExpFlags$b(k));return"/"+ie+"/"+ae},{unsafe:!0});var uncurryThis$c$8=functionUncurryThis$d,fails$c$7=fails$k$4,classof$6$5=classofRaw$1$c,$Object$1$d=Object,split$b=uncurryThis$c$8("".split),indexedObject$b=fails$c$7(function(){return!$Object$1$d("z").propertyIsEnumerable(0)})?function(v){return classof$6$5(v)=="String"?split$b(v,""):$Object$1$d(v)}:$Object$1$d,IndexedObject$2$3=indexedObject$b,requireObjectCoercible$f=requireObjectCoercible$2$b,toIndexedObject$6$3=function(v){return IndexedObject$2$3(requireObjectCoercible$f(v))},objectDefineProperties$8={},ceil$b=Math.ceil,floor$3$3=Math.floor,mathTrunc$b=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$3$3:ceil$b)(ie)},trunc2$b=mathTrunc$b,toIntegerOrInfinity$5$3=function(v){var k=+v;return k!==k||k===0?0:trunc2$b(k)},toIntegerOrInfinity$4$4=toIntegerOrInfinity$5$3,max$1$5=Math.max,min$1$b=Math.min,toAbsoluteIndex$4$3=function(v,k){var ie=toIntegerOrInfinity$4$4(v);return ie<0?max$1$5(ie+k,0):min$1$b(ie,k)},toIntegerOrInfinity$3$5=toIntegerOrInfinity$5$3,min$c=Math.min,toLength$5$3=function(v){return v>0?min$c(toIntegerOrInfinity$3$5(v),9007199254740991):0},toLength$4$3=toLength$5$3,lengthOfArrayLike$6$3=function(v){return toLength$4$3(v.length)},toIndexedObject$5$8=toIndexedObject$6$3,toAbsoluteIndex$3$3=toAbsoluteIndex$4$3,lengthOfArrayLike$5$3=lengthOfArrayLike$6$3,createMethod$1$5=function(v){return function(k,ie,ae){var ce=toIndexedObject$5$8(k),fe=lengthOfArrayLike$5$3(ce),le=toAbsoluteIndex$3$3(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$b={includes:createMethod$1$5(!0),indexOf:createMethod$1$5(!1)},uncurryThis$b$8=functionUncurryThis$d,hasOwn$6$b=hasOwnProperty_1$d,toIndexedObject$4$8=toIndexedObject$6$3,indexOf$b=arrayIncludes$b.indexOf,hiddenKeys$2$b=hiddenKeys$4$8,push$1$5=uncurryThis$b$8([].push),objectKeysInternal$b=function(v,k){var ie=toIndexedObject$4$8(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$6$b(hiddenKeys$2$b,fe)&&hasOwn$6$b(ie,fe)&&push$1$5(ce,fe);for(;k.length>ae;)hasOwn$6$b(ie,fe=k[ae++])&&(~indexOf$b(ce,fe)||push$1$5(ce,fe));return ce},enumBugKeys$3$8=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$a=objectKeysInternal$b,enumBugKeys$2$a=enumBugKeys$3$8,objectKeys$2$7=Object.keys||function v(k){return internalObjectKeys$1$a(k,enumBugKeys$2$a)},DESCRIPTORS$7$b=descriptors$d,V8_PROTOTYPE_DEFINE_BUG$e=v8PrototypeDefineBug$d,definePropertyModule$4$7=objectDefineProperty$d,anObject$6$9=anObject$a$7,toIndexedObject$3$b=toIndexedObject$6$3,objectKeys$1$a=objectKeys$2$7;objectDefineProperties$8.f=DESCRIPTORS$7$b&&!V8_PROTOTYPE_DEFINE_BUG$e?Object.defineProperties:function v(k,ie){anObject$6$9(k);for(var ae=toIndexedObject$3$b(ie),ce=objectKeys$1$a(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$4$7.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$3$b=getBuiltIn$6$8,html$1$9=getBuiltIn$3$b("document","documentElement"),anObject$5$9=anObject$a$7,definePropertiesModule$8=objectDefineProperties$8,enumBugKeys$1$b=enumBugKeys$3$8,hiddenKeys$1$b=hiddenKeys$4$8,html$a=html$1$9,documentCreateElement$e=documentCreateElement$1$8,sharedKey$1$d=sharedKey$3$8,GT$8=">",LT$8="<",PROTOTYPE$1$3="prototype",SCRIPT$8="script",IE_PROTO$1$8=sharedKey$1$d("IE_PROTO"),EmptyConstructor$8=function(){},scriptTag$8=function(v){return LT$8+SCRIPT$8+GT$8+v+LT$8+"/"+SCRIPT$8+GT$8},NullProtoObjectViaActiveX$8=function(v){v.write(scriptTag$8("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$8=function(){var v=documentCreateElement$e("iframe"),k="java"+SCRIPT$8+":",ie;return v.style.display="none",html$a.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$8("document.F=Object")),ie.close(),ie.F},activeXDocument$8,NullProtoObject$8=function(){try{activeXDocument$8=new ActiveXObject("htmlfile")}catch{}NullProtoObject$8=typeof document<"u"?document.domain&&activeXDocument$8?NullProtoObjectViaActiveX$8(activeXDocument$8):NullProtoObjectViaIFrame$8():NullProtoObjectViaActiveX$8(activeXDocument$8);for(var v=enumBugKeys$1$b.length;v--;)delete NullProtoObject$8[PROTOTYPE$1$3][enumBugKeys$1$b[v]];return NullProtoObject$8()};hiddenKeys$1$b[IE_PROTO$1$8]=!0;var objectCreate$8=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$8[PROTOTYPE$1$3]=anObject$5$9(k),ae=new EmptyConstructor$8,EmptyConstructor$8[PROTOTYPE$1$3]=null,ae[IE_PROTO$1$8]=k):ae=NullProtoObject$8(),ie===void 0?ae:definePropertiesModule$8.f(ae,ie)},wellKnownSymbol$a$8=wellKnownSymbol$e$7,create$2$5=objectCreate$8,defineProperty$5$7=objectDefineProperty$d.f,UNSCOPABLES$8=wellKnownSymbol$a$8("unscopables"),ArrayPrototype$1$7=Array.prototype;ArrayPrototype$1$7[UNSCOPABLES$8]==null&&defineProperty$5$7(ArrayPrototype$1$7,UNSCOPABLES$8,{configurable:!0,value:create$2$5(null)});var addToUnscopables$1$8=function(v){ArrayPrototype$1$7[UNSCOPABLES$8][v]=!0},iterators$9={},objectGetOwnPropertyDescriptor$b={},objectPropertyIsEnumerable$b={},$propertyIsEnumerable$b={}.propertyIsEnumerable,getOwnPropertyDescriptor$1$b=Object.getOwnPropertyDescriptor,NASHORN_BUG$b=getOwnPropertyDescriptor$1$b&&!$propertyIsEnumerable$b.call({1:2},1);objectPropertyIsEnumerable$b.f=NASHORN_BUG$b?function v(k){var ie=getOwnPropertyDescriptor$1$b(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$b;var DESCRIPTORS$6$b=descriptors$d,call$8$8=functionCall$d,propertyIsEnumerableModule$1$9=objectPropertyIsEnumerable$b,createPropertyDescriptor$3$8=createPropertyDescriptor$5$3,toIndexedObject$2$b=toIndexedObject$6$3,toPropertyKey$2$b=toPropertyKey$4$3,hasOwn$5$b=hasOwnProperty_1$d,IE8_DOM_DEFINE$e=ie8DomDefine$d,$getOwnPropertyDescriptor$e=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$b.f=DESCRIPTORS$6$b?$getOwnPropertyDescriptor$e:function v(k,ie){if(k=toIndexedObject$2$b(k),ie=toPropertyKey$2$b(ie),IE8_DOM_DEFINE$e)try{return $getOwnPropertyDescriptor$e(k,ie)}catch{}if(hasOwn$5$b(k,ie))return createPropertyDescriptor$3$8(!call$8$8(propertyIsEnumerableModule$1$9.f,k,ie),k[ie])};var objectGetOwnPropertyNames$b={},internalObjectKeys$c=objectKeysInternal$b,enumBugKeys$e=enumBugKeys$3$8,hiddenKeys$f=enumBugKeys$e.concat("length","prototype");objectGetOwnPropertyNames$b.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$c(k,hiddenKeys$f)};var objectGetOwnPropertySymbols$b={};objectGetOwnPropertySymbols$b.f=Object.getOwnPropertySymbols;var getBuiltIn$2$d=getBuiltIn$6$8,uncurryThis$a$b=functionUncurryThis$d,getOwnPropertyNamesModule$b=objectGetOwnPropertyNames$b,getOwnPropertySymbolsModule$1$9=objectGetOwnPropertySymbols$b,anObject$4$a=anObject$a$7,concat$1$9=uncurryThis$a$b([].concat),ownKeys$1$b=getBuiltIn$2$d("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$b.f(anObject$4$a(k)),ae=getOwnPropertySymbolsModule$1$9.f;return ae?concat$1$9(ie,ae(k)):ie},hasOwn$4$d=hasOwnProperty_1$d,ownKeys2$b=ownKeys$1$b,getOwnPropertyDescriptorModule$1$3=objectGetOwnPropertyDescriptor$b,definePropertyModule$3$9=objectDefineProperty$d,copyConstructorProperties$1$b=function(v,k,ie){for(var ae=ownKeys2$b(k),ce=definePropertyModule$3$9.f,fe=getOwnPropertyDescriptorModule$1$3.f,le=0;le=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values");var values$8=Iterators$2$8.Arguments=Iterators$2$8.Array;addToUnscopables$9("keys");addToUnscopables$9("values");addToUnscopables$9("entries");if(DESCRIPTORS$5$d&&values$8.name!=="values")try{defineProperty$3$8(values$8,"name",{value:"values"})}catch(v){}var arrayBufferNative$3=typeof ArrayBuffer<"u"&&typeof DataView<"u",defineBuiltIn$1$d=defineBuiltIn$6$7,defineBuiltIns$1$3=function(v,k,ie){for(var ae in k)defineBuiltIn$1$d(v,ae,k[ae],ie);return v},isPrototypeOf$2$8=objectIsPrototypeOf$d,$TypeError$3$d=TypeError,anInstance$2$3=function(v,k){if(isPrototypeOf$2$8(k,v))return v;throw $TypeError$3$d("Incorrect invocation")},toIntegerOrInfinity$2$b=toIntegerOrInfinity$5$3,toLength$3$3=toLength$5$3,$RangeError$2$3=RangeError,toIndex$2$3=function(v){if(v===void 0)return 0;var k=toIntegerOrInfinity$2$b(v),ie=toLength$3$3(k);if(k!==ie)throw $RangeError$2$3("Wrong length or index");return ie},$Array$2$3=Array,abs$3=Math.abs,pow$3=Math.pow,floor$2$3=Math.floor,log$3=Math.log,LN2$3=Math.LN2,pack$4=function(v,k,ie){var ae=$Array$2$3(ie),ce=ie*8-k-1,fe=(1<>1,ve=k===23?pow$3(2,-24)-pow$3(2,-77):0,pe=v<0||v===0&&1/v<0?1:0,ye=0,me,Ee,cr;for(v=abs$3(v),v!=v||v===1/0?(Ee=v!=v?1:0,me=fe):(me=floor$2$3(log$3(v)/LN2$3),cr=pow$3(2,-me),v*cr<1&&(me--,cr*=2),me+le>=1?v+=ve/cr:v+=ve*pow$3(2,1-le),v*cr>=2&&(me++,cr/=2),me+le>=fe?(Ee=0,me=fe):me+le>=1?(Ee=(v*cr-1)*pow$3(2,k),me=me+le):(Ee=v*pow$3(2,le-1)*pow$3(2,k),me=0));k>=8;)ae[ye++]=Ee&255,Ee/=256,k-=8;for(me=me<0;)ae[ye++]=me&255,me/=256,ce-=8;return ae[--ye]|=pe*128,ae},unpack$4=function(v,k){var ie=v.length,ae=ie*8-k-1,ce=(1<>1,le=ae-7,ve=ie-1,pe=v[ve--],ye=pe&127,me;for(pe>>=7;le>0;)ye=ye*256+v[ve--],le-=8;for(me=ye&(1<<-le)-1,ye>>=-le,le+=k;le>0;)me=me*256+v[ve--],le-=8;if(ye===0)ye=1-fe;else{if(ye===ce)return me?NaN:pe?-1/0:1/0;me=me+pow$3(2,k),ye=ye-fe}return(pe?-1:1)*me*pow$3(2,ye-k)},ieee754$3={pack:pack$4,unpack:unpack$4},toObject$3$7=toObject$6$3,toAbsoluteIndex$2$4=toAbsoluteIndex$4$3,lengthOfArrayLike$4$3=lengthOfArrayLike$6$3,arrayFill$1$3=function v(k){for(var ie=toObject$3$7(this),ae=lengthOfArrayLike$4$3(ie),ce=arguments.length,fe=toAbsoluteIndex$2$4(ce>1?arguments[1]:void 0,ae),le=ce>2?arguments[2]:void 0,ve=le===void 0?ae:toAbsoluteIndex$2$4(le,ae);ve>fe;)ie[fe++]=k;return ie},toPropertyKey$1$d=toPropertyKey$4$3,definePropertyModule$2$b=objectDefineProperty$d,createPropertyDescriptor$1$d=createPropertyDescriptor$5$3,createProperty$1$4=function(v,k,ie){var ae=toPropertyKey$1$d(k);ae in v?definePropertyModule$2$b.f(v,ae,createPropertyDescriptor$1$d(0,ie)):v[ae]=ie},toAbsoluteIndex$1$b=toAbsoluteIndex$4$3,lengthOfArrayLike$3$4=lengthOfArrayLike$6$3,createProperty$5=createProperty$1$4,$Array$1$3=Array,max$c=Math.max,arraySliceSimple$4=function(v,k,ie){for(var ae=lengthOfArrayLike$3$4(v),ce=toAbsoluteIndex$1$b(k,ae),fe=toAbsoluteIndex$1$b(ie===void 0?ae:ie,ae),le=$Array$1$3(max$c(fe-ce,0)),ve=0;ce>8&255]},packInt32$3=function(v){return[v&255,v>>8&255,v>>16&255,v>>24&255]},unpackInt32$3=function(v){return v[3]<<24|v[2]<<16|v[1]<<8|v[0]},packFloat32$3=function(v){return packIEEE754$3(v,23,4)},packFloat64$3=function(v){return packIEEE754$3(v,52,8)},addGetter$1$3=function(v,k){defineProperty$2$b(v[PROTOTYPE$9],k,{get:function(){return getInternalState$2$5(this)[k]}})},get$e=function(v,k,ie,ae){var ce=toIndex$1$3(ie),fe=getInternalState$2$5(v);if(ce+k>fe.byteLength)throw RangeError$3$3(WRONG_INDEX$3);var le=getInternalState$2$5(fe.buffer).bytes,ve=ce+fe.byteOffset,pe=arraySlice$3$3(le,ve,ve+k);return ae?pe:reverse$3(pe)},set$e=function(v,k,ie,ae,ce,fe){var le=toIndex$1$3(ie),ve=getInternalState$2$5(v);if(le+k>ve.byteLength)throw RangeError$3$3(WRONG_INDEX$3);for(var pe=getInternalState$2$5(ve.buffer).bytes,ye=le+ve.byteOffset,me=ae(+ce),Ee=0;Eece)throw RangeError$3$3("Wrong offset");if(ae=ae===void 0?ce-fe:toLength$2$5(ae),fe+ae>ce)throw RangeError$3$3(WRONG_LENGTH$1$3);setInternalState$1$7(this,{buffer:k,byteLength:ae,byteOffset:fe}),DESCRIPTORS$4$d||(this.buffer=k,this.byteLength=ae,this.byteOffset=fe)},DataViewPrototype$1$3=$DataView$3[PROTOTYPE$9],DESCRIPTORS$4$d&&(addGetter$1$3($ArrayBuffer$3,"byteLength"),addGetter$1$3($DataView$3,"buffer"),addGetter$1$3($DataView$3,"byteLength"),addGetter$1$3($DataView$3,"byteOffset")),defineBuiltIns$4(DataViewPrototype$1$3,{getInt8:function(k){return get$e(this,1,k)[0]<<24>>24},getUint8:function(k){return get$e(this,1,k)[0]},getInt16:function(k){var ie=get$e(this,2,k,arguments.length>1?arguments[1]:void 0);return(ie[1]<<8|ie[0])<<16>>16},getUint16:function(k){var ie=get$e(this,2,k,arguments.length>1?arguments[1]:void 0);return ie[1]<<8|ie[0]},getInt32:function(k){return unpackInt32$3(get$e(this,4,k,arguments.length>1?arguments[1]:void 0))},getUint32:function(k){return unpackInt32$3(get$e(this,4,k,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(k){return unpackIEEE754$3(get$e(this,4,k,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(k){return unpackIEEE754$3(get$e(this,8,k,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(k,ie){set$e(this,1,k,packInt8$3,ie)},setUint8:function(k,ie){set$e(this,1,k,packInt8$3,ie)},setInt16:function(k,ie){set$e(this,2,k,packInt16$3,ie,arguments.length>2?arguments[2]:void 0)},setUint16:function(k,ie){set$e(this,2,k,packInt16$3,ie,arguments.length>2?arguments[2]:void 0)},setInt32:function(k,ie){set$e(this,4,k,packInt32$3,ie,arguments.length>2?arguments[2]:void 0)},setUint32:function(k,ie){set$e(this,4,k,packInt32$3,ie,arguments.length>2?arguments[2]:void 0)},setFloat32:function(k,ie){set$e(this,4,k,packFloat32$3,ie,arguments.length>2?arguments[2]:void 0)},setFloat64:function(k,ie){set$e(this,8,k,packFloat64$3,ie,arguments.length>2?arguments[2]:void 0)}});else{if(INCORRECT_ARRAY_BUFFER_NAME$3=PROPER_FUNCTION_NAME$d&&NativeArrayBuffer$3.name!==ARRAY_BUFFER$3,!fails$8$b(function(){NativeArrayBuffer$3(1)})||!fails$8$b(function(){new NativeArrayBuffer$3(-1)})||fails$8$b(function(){return new NativeArrayBuffer$3,new NativeArrayBuffer$3(1.5),new NativeArrayBuffer$3(NaN),INCORRECT_ARRAY_BUFFER_NAME$3&&!CONFIGURABLE_FUNCTION_NAME$f})){for($ArrayBuffer$3=function(k){return anInstance$1$8(this,ArrayBufferPrototype$1$3),new NativeArrayBuffer$3(toIndex$1$3(k))},$ArrayBuffer$3[PROTOTYPE$9]=ArrayBufferPrototype$1$3,keys2$4=getOwnPropertyNames$1$3(NativeArrayBuffer$3),j$5=0;keys2$4.length>j$5;)(key$4=keys2$4[j$5++])in $ArrayBuffer$3||createNonEnumerableProperty$2$b($ArrayBuffer$3,key$4,NativeArrayBuffer$3[key$4]);ArrayBufferPrototype$1$3.constructor=$ArrayBuffer$3}else INCORRECT_ARRAY_BUFFER_NAME$3&&CONFIGURABLE_FUNCTION_NAME$f&&createNonEnumerableProperty$2$b(NativeArrayBuffer$3,"name",ARRAY_BUFFER$3);setPrototypeOf$3$3&&getPrototypeOf$1$8(DataViewPrototype$1$3)!==ObjectPrototype$1$3&&setPrototypeOf$3$3(DataViewPrototype$1$3,ObjectPrototype$1$3),testView$3=new $DataView$3(new $ArrayBuffer$3(2)),$setInt8$3=uncurryThis$8$b(DataViewPrototype$1$3.setInt8),testView$3.setInt8(0,2147483648),testView$3.setInt8(1,2147483649),(testView$3.getInt8(0)||!testView$3.getInt8(1))&&defineBuiltIns$4(DataViewPrototype$1$3,{setInt8:function(k,ie){$setInt8$3(this,k,ie<<24>>24)},setUint8:function(k,ie){$setInt8$3(this,k,ie<<24>>24)}},{unsafe:!0})}var INCORRECT_ARRAY_BUFFER_NAME$3,keys2$4,j$5,key$4,testView$3,$setInt8$3;setToStringTag$c($ArrayBuffer$3,ARRAY_BUFFER$3);setToStringTag$c($DataView$3,DATA_VIEW$3);var arrayBuffer$3={ArrayBuffer:$ArrayBuffer$3,DataView:$DataView$3},uncurryThis$7$b=functionUncurryThis$d,fails$7$d=fails$k$4,isCallable$2$d=isCallable$i$7,classof$5$7=classof$8$3,getBuiltIn$1$d=getBuiltIn$6$8,inspectSource$h=inspectSource$3$8,noop$8=function(){},empty$7=[],construct$8=getBuiltIn$1$d("Reflect","construct"),constructorRegExp$8=/^\s*(?:class|function)\b/,exec$9=uncurryThis$7$b(constructorRegExp$8.exec),INCORRECT_TO_STRING$8=!constructorRegExp$8.exec(noop$8),isConstructorModern$8=function v(k){if(!isCallable$2$d(k))return!1;try{return construct$8(noop$8,empty$7,k),!0}catch{return!1}},isConstructorLegacy$8=function v(k){if(!isCallable$2$d(k))return!1;switch(classof$5$7(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$8||!!exec$9(constructorRegExp$8,inspectSource$h(k))}catch{return!0}};isConstructorLegacy$8.sham=!0;var isConstructor$2$3=!construct$8||fails$7$d(function(){var v;return isConstructorModern$8(isConstructorModern$8.call)||!isConstructorModern$8(Object)||!isConstructorModern$8(function(){v=!0})||v})?isConstructorLegacy$8:isConstructorModern$8,isConstructor$1$8=isConstructor$2$3,tryToString$2$8=tryToString$4$8,$TypeError$2$d=TypeError,aConstructor$2$3=function(v){if(isConstructor$1$8(v))return v;throw $TypeError$2$d(tryToString$2$8(v)+" is not a constructor")},anObject$2$d=anObject$a$7,aConstructor$1$8=aConstructor$2$3,wellKnownSymbol$6$9=wellKnownSymbol$e$7,SPECIES$2$8=wellKnownSymbol$6$9("species"),speciesConstructor$1$8=function(v,k){var ie=anObject$2$d(v).constructor,ae;return ie===void 0||(ae=anObject$2$d(ie)[SPECIES$2$8])==null?k:aConstructor$1$8(ae)},$$2$8=_export$b,uncurryThis$6$d=functionUncurryThis$d,fails$6$d=fails$k$4,ArrayBufferModule$1$3=arrayBuffer$3,anObject$1$d=anObject$a$7,toAbsoluteIndex$f=toAbsoluteIndex$4$3,toLength$1$b=toLength$5$3,speciesConstructor$9=speciesConstructor$1$8,ArrayBuffer$3$3=ArrayBufferModule$1$3.ArrayBuffer,DataView$2$3=ArrayBufferModule$1$3.DataView,DataViewPrototype$4=DataView$2$3.prototype,un$ArrayBufferSlice$3=uncurryThis$6$d(ArrayBuffer$3$3.prototype.slice),getUint8$3=uncurryThis$6$d(DataViewPrototype$4.getUint8),setUint8$3=uncurryThis$6$d(DataViewPrototype$4.setUint8),INCORRECT_SLICE$3=fails$6$d(function(){return!new ArrayBuffer$3$3(2).slice(1,void 0).byteLength});$$2$8({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:INCORRECT_SLICE$3},{slice:function v(k,ie){if(un$ArrayBufferSlice$3&&ie===void 0)return un$ArrayBufferSlice$3(anObject$1$d(this),k);for(var ae=anObject$1$d(this).byteLength,ce=toAbsoluteIndex$f(k,ae),fe=toAbsoluteIndex$f(ie===void 0?ae:ie,ae),le=new(speciesConstructor$9(this,ArrayBuffer$3$3))(toLength$1$b(fe-ce)),ve=new DataView$2$3(this),pe=new DataView$2$3(le),ye=0;ce1?arguments[1]:void 0,le=fe!==void 0,ve=getIteratorMethod$a(ae),pe,ye,me,Ee,cr,Br;if(ve&&!isArrayIteratorMethod$9(ve))for(cr=getIterator$9(ae,ve),Br=cr.next,ae=[];!(Ee=call$5$b(Br,cr)).done;)ae.push(Ee.value);for(le&&ce>2&&(fe=bind$1$8(fe,arguments[2])),ye=lengthOfArrayLike$2$8(ae),me=new(aTypedArrayConstructor$1$3(ie))(ye),pe=0;ye>pe;pe++)me[pe]=le?fe(ae[pe],pe):ae[pe];return me},classof$2$a=classofRaw$1$c,isArray$1$3=Array.isArray||function v(k){return classof$2$a(k)=="Array"},isArray2$3=isArray$1$3,isConstructor3$8=isConstructor$2$3,isObject$2$d=isObject$a$3,wellKnownSymbol$1$d=wellKnownSymbol$e$7,SPECIES$1$8=wellKnownSymbol$1$d("species"),$Array$6=Array,arraySpeciesConstructor$1$3=function(v){var k;return isArray2$3(v)&&(k=v.constructor,isConstructor3$8(k)&&(k===$Array$6||isArray2$3(k.prototype))?k=void 0:isObject$2$d(k)&&(k=k[SPECIES$1$8],k===null&&(k=void 0))),k===void 0?$Array$6:k},arraySpeciesConstructor$4=arraySpeciesConstructor$1$3,arraySpeciesCreate$1$3=function(v,k){return new(arraySpeciesConstructor$4(v))(k===0?0:k)},bind$i=functionBindContext$8,uncurryThis$4$d=functionUncurryThis$d,IndexedObject$1$9=indexedObject$b,toObject$1$d=toObject$6$3,lengthOfArrayLike$1$b=lengthOfArrayLike$6$3,arraySpeciesCreate$4=arraySpeciesCreate$1$3,push$c=uncurryThis$4$d([].push),createMethod$c=function(v){var k=v==1,ie=v==2,ae=v==3,ce=v==4,fe=v==6,le=v==7,ve=v==5||fe;return function(pe,ye,me,Ee){for(var cr=toObject$1$d(pe),Br=IndexedObject$1$9(cr),$r=bind$i(ye,me),Pr=lengthOfArrayLike$1$b(Br),Ar=0,ur=Ee||arraySpeciesCreate$4,jr=k?ur(pe,Pr):ie||le?ur(pe,0):void 0,Mr,Lr;Pr>Ar;Ar++)if((ve||Ar in Br)&&(Mr=Br[Ar],Lr=$r(Mr,Ar,cr),v))if(k)jr[Ar]=Lr;else if(Lr)switch(v){case 3:return!0;case 5:return Mr;case 6:return Ar;case 2:push$c(jr,Mr)}else switch(v){case 4:return!1;case 7:push$c(jr,Mr)}return fe?-1:ae||ce?ce:jr}},arrayIteration$3={forEach:createMethod$c(0),map:createMethod$c(1),filter:createMethod$c(2),some:createMethod$c(3),every:createMethod$c(4),find:createMethod$c(5),findIndex:createMethod$c(6),filterReject:createMethod$c(7)},getBuiltIn$l=getBuiltIn$6$8,definePropertyModule$1$d=objectDefineProperty$d,wellKnownSymbol$r=wellKnownSymbol$e$7,DESCRIPTORS$2$d=descriptors$d,SPECIES$a=wellKnownSymbol$r("species"),setSpecies$1$8=function(v){var k=getBuiltIn$l(v),ie=definePropertyModule$1$d.f;DESCRIPTORS$2$d&&k&&!k[SPECIES$a]&&ie(k,SPECIES$a,{configurable:!0,get:function(){return this}})},isCallable$v=isCallable$i$7,isObject$1$d=isObject$a$3,setPrototypeOf$1$7=objectSetPrototypeOf$9,inheritIfRequired$1$3=function(v,k,ie){var ae,ce;return setPrototypeOf$1$7&&isCallable$v(ae=k.constructor)&&ae!==ie&&isObject$1$d(ce=ae.prototype)&&ce!==ie.prototype&&setPrototypeOf$1$7(v,ce),v},$$1$8=_export$b,global$4$d=global$h$8,call$4$d=functionCall$d,DESCRIPTORS$1$d=descriptors$d,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$3=typedArrayConstructorsRequireWrappers$3,ArrayBufferViewCore$4$3=arrayBufferViewCore$3,ArrayBufferModule$4=arrayBuffer$3,anInstance$a=anInstance$2$3,createPropertyDescriptor$i=createPropertyDescriptor$5$3,createNonEnumerableProperty$j=createNonEnumerableProperty$6$3,isIntegralNumber$4=isIntegralNumber$1$3,toLength$g=toLength$5$3,toIndex$5=toIndex$2$3,toOffset$1$3=toOffset$2$3,toPropertyKey$h=toPropertyKey$4$3,hasOwn2$d=hasOwnProperty_1$d,classof$1$c=classof$8$3,isObject$o=isObject$a$3,isSymbol$g=isSymbol$3$3,create2$7=objectCreate$8,isPrototypeOf$h=objectIsPrototypeOf$d,setPrototypeOf$d=objectSetPrototypeOf$9,getOwnPropertyNames2$3=objectGetOwnPropertyNames$b.f,typedArrayFrom$4=typedArrayFrom$1$3,forEach$3=arrayIteration$3.forEach,setSpecies$9=setSpecies$1$8,definePropertyModule$j=objectDefineProperty$d,getOwnPropertyDescriptorModule$c=objectGetOwnPropertyDescriptor$b,InternalStateModule$h=internalState$d,inheritIfRequired$4=inheritIfRequired$1$3,getInternalState$h=InternalStateModule$h.get,setInternalState$b=InternalStateModule$h.set,enforceInternalState$f=InternalStateModule$h.enforce,nativeDefineProperty$3=definePropertyModule$j.f,nativeGetOwnPropertyDescriptor$3=getOwnPropertyDescriptorModule$c.f,round$3=Math.round,RangeError$2$3=global$4$d.RangeError,ArrayBuffer$1$3=ArrayBufferModule$4.ArrayBuffer,ArrayBufferPrototype$4=ArrayBuffer$1$3.prototype,DataView$1$3=ArrayBufferModule$4.DataView,NATIVE_ARRAY_BUFFER_VIEWS$5=ArrayBufferViewCore$4$3.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG$4=ArrayBufferViewCore$4$3.TYPED_ARRAY_TAG,TypedArray$4=ArrayBufferViewCore$4$3.TypedArray,TypedArrayPrototype$4=ArrayBufferViewCore$4$3.TypedArrayPrototype,aTypedArrayConstructor$5=ArrayBufferViewCore$4$3.aTypedArrayConstructor,isTypedArray$4=ArrayBufferViewCore$4$3.isTypedArray,BYTES_PER_ELEMENT$3="BYTES_PER_ELEMENT",WRONG_LENGTH$4="Wrong length",fromList$3=function(v,k){aTypedArrayConstructor$5(v);for(var ie=0,ae=k.length,ce=new v(ae);ae>ie;)ce[ie]=k[ie++];return ce},addGetter$4=function(v,k){nativeDefineProperty$3(v,k,{get:function(){return getInternalState$h(this)[k]}})},isArrayBuffer$3=function(v){var k;return isPrototypeOf$h(ArrayBufferPrototype$4,v)||(k=classof$1$c(v))=="ArrayBuffer"||k=="SharedArrayBuffer"},isTypedArrayIndex$3=function(v,k){return isTypedArray$4(v)&&!isSymbol$g(k)&&k in v&&isIntegralNumber$4(+k)&&k>=0},wrappedGetOwnPropertyDescriptor$3=function v(k,ie){return ie=toPropertyKey$h(ie),isTypedArrayIndex$3(k,ie)?createPropertyDescriptor$i(2,k[ie]):nativeGetOwnPropertyDescriptor$3(k,ie)},wrappedDefineProperty$3=function v(k,ie,ae){return ie=toPropertyKey$h(ie),isTypedArrayIndex$3(k,ie)&&isObject$o(ae)&&hasOwn2$d(ae,"value")&&!hasOwn2$d(ae,"get")&&!hasOwn2$d(ae,"set")&&!ae.configurable&&(!hasOwn2$d(ae,"writable")||ae.writable)&&(!hasOwn2$d(ae,"enumerable")||ae.enumerable)?(k[ie]=ae.value,k):nativeDefineProperty$3(k,ie,ae)};DESCRIPTORS$1$d?(NATIVE_ARRAY_BUFFER_VIEWS$5||(getOwnPropertyDescriptorModule$c.f=wrappedGetOwnPropertyDescriptor$3,definePropertyModule$j.f=wrappedDefineProperty$3,addGetter$4(TypedArrayPrototype$4,"buffer"),addGetter$4(TypedArrayPrototype$4,"byteOffset"),addGetter$4(TypedArrayPrototype$4,"byteLength"),addGetter$4(TypedArrayPrototype$4,"length")),$$1$8({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS$5},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor$3,defineProperty:wrappedDefineProperty$3}),typedArrayConstructor$3.exports=function(v,k,ie){var ae=v.match(/\d+$/)[0]/8,ce=v+(ie?"Clamped":"")+"Array",fe="get"+v,le="set"+v,ve=global$4$d[ce],pe=ve,ye=pe&&pe.prototype,me={},Ee=function(Pr,Ar){var ur=getInternalState$h(Pr);return ur.view[fe](Ar*ae+ur.byteOffset,!0)},cr=function(Pr,Ar,ur){var jr=getInternalState$h(Pr);ie&&(ur=(ur=round$3(ur))<0?0:ur>255?255:ur&255),jr.view[le](Ar*ae+jr.byteOffset,ur,!0)},Br=function(Pr,Ar){nativeDefineProperty$3(Pr,Ar,{get:function(){return Ee(this,Ar)},set:function(ur){return cr(this,Ar,ur)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS$5?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$3&&(pe=k(function(Pr,Ar,ur,jr){return anInstance$a(Pr,ye),inheritIfRequired$4(function(){return isObject$o(Ar)?isArrayBuffer$3(Ar)?jr!==void 0?new ve(Ar,toOffset$1$3(ur,ae),jr):ur!==void 0?new ve(Ar,toOffset$1$3(ur,ae)):new ve(Ar):isTypedArray$4(Ar)?fromList$3(pe,Ar):call$4$d(typedArrayFrom$4,pe,Ar):new ve(toIndex$5(Ar))}(),Pr,pe)}),setPrototypeOf$d&&setPrototypeOf$d(pe,TypedArray$4),forEach$3(getOwnPropertyNames2$3(ve),function(Pr){Pr in pe||createNonEnumerableProperty$j(pe,Pr,ve[Pr])}),pe.prototype=ye):(pe=k(function(Pr,Ar,ur,jr){anInstance$a(Pr,ye);var Mr=0,Lr=0,Vr,Gr,Ur;if(!isObject$o(Ar))Ur=toIndex$5(Ar),Gr=Ur*ae,Vr=new ArrayBuffer$1$3(Gr);else if(isArrayBuffer$3(Ar)){Vr=Ar,Lr=toOffset$1$3(ur,ae);var Qr=Ar.byteLength;if(jr===void 0){if(Qr%ae||(Gr=Qr-Lr,Gr<0))throw RangeError$2$3(WRONG_LENGTH$4)}else if(Gr=toLength$g(jr)*ae,Gr+Lr>Qr)throw RangeError$2$3(WRONG_LENGTH$4);Ur=Gr/ae}else return isTypedArray$4(Ar)?fromList$3(pe,Ar):call$4$d(typedArrayFrom$4,pe,Ar);for(setInternalState$b(Pr,{buffer:Vr,byteOffset:Lr,byteLength:Gr,length:Ur,view:new DataView$1$3(Vr)});Mr1?arguments[1]:void 0,ie>2?arguments[2]:void 0)},CONVERSION_BUG$3);var global$3$d=global$h$8,call$2$d=functionCall$d,ArrayBufferViewCore$2$3=arrayBufferViewCore$3,lengthOfArrayLike$h=lengthOfArrayLike$6$3,toOffset$5=toOffset$2$3,toIndexedObject$h=toObject$6$3,fails$3$d=fails$k$4,RangeError$1$3=global$3$d.RangeError,Int8Array$2$3=global$3$d.Int8Array,Int8ArrayPrototype$4=Int8Array$2$3&&Int8Array$2$3.prototype,$set$3=Int8ArrayPrototype$4&&Int8ArrayPrototype$4.set,aTypedArray$2$3=ArrayBufferViewCore$2$3.aTypedArray,exportTypedArrayMethod$2$3=ArrayBufferViewCore$2$3.exportTypedArrayMethod,WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$3=!fails$3$d(function(){var v=new Uint8ClampedArray(2);return call$2$d($set$3,v,{length:1,0:3},1),v[1]!==3}),TO_OBJECT_BUG$3=WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$3&&ArrayBufferViewCore$2$3.NATIVE_ARRAY_BUFFER_VIEWS&&fails$3$d(function(){var v=new Int8Array$2$3(2);return v.set(1),v.set("2",1),v[0]!==0||v[1]!==2});exportTypedArrayMethod$2$3("set",function v(k){aTypedArray$2$3(this);var ie=toOffset$5(arguments.length>1?arguments[1]:void 0,1),ae=toIndexedObject$h(k);if(WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$3)return call$2$d($set$3,this,ae,ie);var ce=this.length,fe=lengthOfArrayLike$h(ae),le=0;if(fe+ie>ce)throw RangeError$1$3("Wrong length");for(;le0;)v[fe]=v[--fe];fe!==ae++&&(v[fe]=ce)}return v},merge$3=function(v,k,ie,ae){for(var ce=k.length,fe=ie.length,le=0,ve=0;le0&&1/ie<0?1:-1:k>ie}};exportTypedArrayMethod$1$3("sort",function v(k){return k!==void 0&&aCallable$k(k),STABLE_SORT$3?un$Sort$3(this,k):internalSort$3(aTypedArray$1$3(this),getSortCompare$3(k))},!STABLE_SORT$3||ACCEPT_INCORRECT_ARGUMENTS$3);var NATIVE_BIND$g=functionBindNative$d,FunctionPrototype$f=Function.prototype,apply$1$8=FunctionPrototype$f.apply,call$1$d=FunctionPrototype$f.call,functionApply$8=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$g?call$1$d.bind(apply$1$8):function(){return call$1$d.apply(apply$1$8,arguments)}),uncurryThis$1$d=functionUncurryThis$d,arraySlice$1$8=uncurryThis$1$d([].slice),global$1$d=global$h$8,apply$9=functionApply$8,ArrayBufferViewCore$7=arrayBufferViewCore$3,fails$1$d=fails$k$4,arraySlice$b=arraySlice$1$8,Int8Array$1$3=global$1$d.Int8Array,aTypedArray$7=ArrayBufferViewCore$7.aTypedArray,exportTypedArrayMethod$7=ArrayBufferViewCore$7.exportTypedArrayMethod,$toLocaleString$3=[].toLocaleString,TO_LOCALE_STRING_BUG$3=!!Int8Array$1$3&&fails$1$d(function(){$toLocaleString$3.call(new Int8Array$1$3(1))}),FORCED$4=fails$1$d(function(){return[1,2].toLocaleString()!=new Int8Array$1$3([1,2]).toLocaleString()})||!fails$1$d(function(){Int8Array$1$3.prototype.toLocaleString.call([1,2])});exportTypedArrayMethod$7("toLocaleString",function v(){return apply$9($toLocaleString$3,TO_LOCALE_STRING_BUG$3?arraySlice$b(aTypedArray$7(this)):aTypedArray$7(this),arraySlice$b(arguments))},FORCED$4);var DESCRIPTORS$q=descriptors$d,uncurryThis$x=functionUncurryThis$d,call$r=functionCall$d,fails$z=fails$k$4,objectKeys$c=objectKeys$2$7,getOwnPropertySymbolsModule$c=objectGetOwnPropertySymbols$b,propertyIsEnumerableModule$c=objectPropertyIsEnumerable$b,toObject$j=toObject$6$3,IndexedObject$d=indexedObject$b,$assign$9=Object.assign,defineProperty4$2=Object.defineProperty,concat$d=uncurryThis$x([].concat),objectAssign$9=!$assign$9||fails$z(function(){if(DESCRIPTORS$q&&$assign$9({b:1},$assign$9(defineProperty4$2({},"a",{enumerable:!0,get:function(){defineProperty4$2(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},k={},ie=Symbol(),ae="abcdefghijklmnopqrst";return v[ie]=7,ae.split("").forEach(function(ce){k[ce]=ce}),$assign$9({},v)[ie]!=7||objectKeys$c($assign$9({},k)).join("")!=ae})?function v(k,ie){for(var ae=toObject$j(k),ce=arguments.length,fe=1,le=getOwnPropertySymbolsModule$c.f,ve=propertyIsEnumerableModule$c.f;ce>fe;)for(var pe=IndexedObject$d(arguments[fe++]),ye=le?concat$d(objectKeys$c(pe),le(pe)):objectKeys$c(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$q||call$r(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$9,$$i=_export$b,assign2$9=objectAssign$9;$$i({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$9},{assign:assign2$9});function __awaiter$g(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ4AAAEOCAYAAAB4sfmlAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH5gYXDA8FsK/ZnQAAAAFvck5UAc+id5oAACF9SURBVHja7d19gJRlvTfw7++a2ZnlVQFRJGBneU1gZ0EyszpHy15OnvJRj5rlU5aVnTJEAnZ3dkFHZXeWtwBJe/FkVk9lUumpTm9Hj1SPmSXCzgKGLOwMi4gKaLwsO2/X7/lDMvThZXeZmd/98vv8FbUx3/tm5rvXfc91XxdBKXVSNQ3pYaDCnYboF20t1b+RzuMEQekASjnWNRyITk5/ni3fSaARbOlZ6UhOocWh1HFEG1LvBXWugqUaOvrfEVGVdC6n0OJQ6h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snnc76UPUikJXi6OyhL8nS8zsKg9HLlPp4krP/NycRRvxzZGDmTuMWF7x8Z49avSB6aUNM8WBwPBIk3/+o21NHfT0qpnpY9JKafwbHEQkAMQPo2/YBsKPC+5ZPzPpY9FKadxytMcxUf9m+LNwAEQ1eVD3dO1NJQ6Ps+OOMDcpy0EGLAG+E4+j8YtyyJ7pOMr5WSeLQ4GDhBwZi9//EnLdk5764S/SOdWyg08WxwE7Acw7hQ/9jwbqm9vrvqBbtasVO95tjgA2neih9wY6CGiFchWJtqXjzosnVQpt/FwcfCJdj37KeVofnJ5pFM6oVJu5dniIJg049jJndxOZOa0tUQel86mlNt5tjiYOQ0CGNhHTLclt0e+gbVUkM6llBd4tjgIpsPCftX2HL5988pp+6XzKOUl/w9vbeT/L2dfMwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wNi0yM1QxMjoxMzo0MiswMDowMIbbr3kAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDYtMjNUMTI6MTM6NDIrMDA6MDD3hhfFAAAAAElFTkSuQmCC",isInstalled$9=()=>waitFor(()=>{var v;return!!(!((v=window.near)===null||v===void 0)&&v.isSender)}).catch(()=>!1),setupSenderState=()=>({wallet:window.near}),Sender=({options:v,metadata:k,store:ie,provider:ae,emitter:ce,logger:fe})=>__awaiter$g(void 0,void 0,void 0,function*(){const le=setupSenderState(),ve=()=>{for(const $r in le.wallet.callbacks)le.wallet.remove($r)},pe=()=>__awaiter$g(void 0,void 0,void 0,function*(){if(!le.wallet.isSignedIn())return;ve();const $r=yield le.wallet.signOut();if($r===!0)return;const Pr=new Error(typeof $r.error=="string"?$r.error:$r.error.type);if(Pr.message==="User reject")throw Pr;fe.log("Failed to sign out"),fe.error(Pr)}),ye=()=>{le.wallet.on("accountChanged",$r=>__awaiter$g(void 0,void 0,void 0,function*(){fe.log("onAccountChange",$r),ce.emit("signedOut",null)})),le.wallet.on("rpcChanged",$r=>__awaiter$g(void 0,void 0,void 0,function*(){fe.log("onNetworkChange",$r),v.network.networkId!==$r.networkId&&(yield pe(),ce.emit("signedOut",null),ce.emit("networkChanged",{networkId:$r.networkId}))}))},me=()=>__awaiter$g(void 0,void 0,void 0,function*(){const $r=le.wallet.getAccountId();if(!$r)return[];yield waitFor(()=>!!le.wallet.account(),{timeout:100});const Pr=le.wallet.account();if(!Pr.connection.signer.getPublicKey)return[{accountId:$r,publicKey:void 0}];const Ar=yield Pr.connection.signer.getPublicKey(Pr.accountId,v.network.networkId);return[{accountId:$r,publicKey:Ar?Ar.toString():void 0}]}),Ee=$r=>$r.every(Pr=>Pr.type==="FunctionCall"),cr=$r=>{if(!Ee($r))throw new Error(`Only 'FunctionCall' actions types are supported by ${k.name}`);return $r.map(Ar=>Ar.params)},Br=$r=>$r.map(Pr=>({receiverId:Pr.receiverId,actions:cr(Pr.actions)}));return le.wallet&&le.wallet.isSignedIn()&&ye(),{signIn({contractId:$r,methodNames:Pr}){return __awaiter$g(this,void 0,void 0,function*(){const Ar=yield me();if(Ar.length)return Ar;const{accessKey:ur,error:jr}=yield le.wallet.requestSignIn({contractId:$r,methodNames:Pr});if(!ur||jr)throw yield pe(),new Error((typeof jr=="string"?jr:jr.type)||"Failed to sign in");return ye(),yield me()})},signOut:pe,getAccounts(){return __awaiter$g(this,void 0,void 0,function*(){return me()})},verifyOwner({message:$r}){return __awaiter$g(this,void 0,void 0,function*(){fe.log("Sender:verifyOwner",{message:$r});const Pr=le.wallet.account();if(!Pr)throw new Error("Wallet not signed in");if(!Pr.connection.signer.signMessage)throw new Error("Wallet is locked");const Ar=v.network.networkId,ur=Pr.accountId,jr=yield Pr.connection.signer.getPublicKey(ur,Ar),Mr=yield ae.block({finality:"final"}),Lr={accountId:ur,message:$r,blockId:Mr.header.hash,publicKey:Buffer.from(jr.data).toString("base64"),keyType:jr.keyType},Vr=JSON.stringify(Lr),Gr=yield Pr.connection.signer.signMessage(new Uint8Array(Buffer.from(Vr)),ur,Ar);return Object.assign(Object.assign({},Lr),{signature:Buffer.from(Gr.signature).toString("base64"),keyType:Gr.publicKey.keyType})})},signAndSendTransaction({signerId:$r,receiverId:Pr,actions:Ar}){return __awaiter$g(this,void 0,void 0,function*(){fe.log("signAndSendTransaction",{signerId:$r,receiverId:Pr,actions:Ar});const{contract:ur}=ie.getState();if(!le.wallet.isSignedIn()||!ur)throw new Error("Wallet not signed in");return le.wallet.signAndSendTransaction({receiverId:Pr||ur.contractId,actions:cr(Ar)}).then(jr=>{var Mr;if(jr.error)throw new Error(jr.error);if(jr.response&&"error"in jr.response)throw new Error(jr.response.error.message);if(!(!((Mr=jr.response)===null||Mr===void 0)&&Mr.length))throw new Error("Invalid response");return jr.response[0]})})},signAndSendTransactions({transactions:$r}){return __awaiter$g(this,void 0,void 0,function*(){if(fe.log("signAndSendTransactions",{transactions:$r}),!le.wallet.isSignedIn())throw new Error("Wallet not signed in");return le.wallet.requestSignTransactions({transactions:Br($r)}).then(Pr=>{var Ar;if(Pr.error)throw new Error(Pr.error);if(Pr.response&&"error"in Pr.response)throw new Error(Pr.response.error.message);if(!(!((Ar=Pr.response)===null||Ar===void 0)&&Ar.length))throw new Error("Invalid response");return Pr.response})})},importAccountsInSecureContext({accounts:$r}){return __awaiter$g(this,void 0,void 0,function*(){window.near&&window.near.isSender&&(yield window.near.batchImport({keystore:$r,network:v.network.networkId}))})}}});function setupSender({iconUrl:v=icon$f,deprecated:k=!1}={}){return()=>__awaiter$g(this,void 0,void 0,function*(){if((0,import_is_mobile$a.isMobile)())return null;const ae=yield isInstalled$9();return ae&&(yield waitFor(()=>{var ce;return!!(!((ce=window.near)===null||ce===void 0)&&ce.isSignedIn())},{timeout:200}).catch(()=>!1)),{id:"sender",type:"injected",metadata:{name:"Sender",description:"Browser extension wallet built on NEAR.",iconUrl:v,downloadUrl:"https://chrome.google.com/webstore/detail/sender-wallet/epapihdplajcdnnkdeiahlgigofloibg",deprecated:k,available:ae},init:Sender}})}var import_is_mobile$9=__toESM(require_is_mobile(),1);function __awaiter$f(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAIddJREFUeNrs3et/HFd5B/DRLu/6otsCIQFCxoQ4vltyILGNE48olNBCLcWOkzgXrwq5mJul9g/Q+A9opbzo7VPIblpKgLbshpAWQpKdALmQOOxCAm0gyU5C7s5lIG1feXb6PHPxzq5W0mo1M+fMzO/5fB7rsrb0ePbsV+ccnTlnTMlAnP7Lj6n0RqPktyZl/R1/db+lIBCITMVYBrBaoDezAx46oTjO4jv+ugG4EAiAJQVWFXpTHvig4/CfjNUcoVXFU41AACyRWDFUlRWwCkfLh8vAU45ApDcKKa79wJBYcYxTNk7/xWTt9NykiqcdgQBYSUdpSKxCjytT9Efz9JymU5bw9CMQAEtMrI5V8AdDNU/JcJXRBBAIgCUrVuHgoWHl9KzWoBxHU0AgAJasWIUec9dvNU/P7ie89mOYiEAALGmxCn/Aw8M2oaWjWSAQAEtmrIIo0Yfzp4/vb1NOoXkgEAArAcxGwir8oUpZI7Qap49fpqKZIBAAS1aswp/U3GHily9boMT8FgIBsKTFKvxm1odrFk0GgQBYMmMVBPewuKfFcGloOggEwJIVq3CoiuM0Tn/p0hqliiaEQAAsWbEK/3aSf4vYtr90qU6J+S0EAmBJi5Ub/lYX8z5cZTQnBAJgyYxVECV6vGJ/cV+TUkOzQiAAljKEPCKwCj/ubmNDaDFeKpoXAgGwhjQscazCwcPDpv2FfTol5rcQCIAlLVbB1/W3sXEIro/iNh8EAmBJi1X4HR4a1gitBiW2sUEgcg2W3F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/1bPNVgIRCJwXXa2Sm/m6dVXBlYj96xSB1YBTR+RymHiD18xKb1tbIL5LWCV+dvHABYi5XC9alDy+q3QadXAKotYASxEduD60atV5cxp1cAqi1gBLETW0LIodR+uOrBSMnf7GMBCZBCu10xKfxsbpQWssoEVwEJkG64fv2ZQ8qJTvrnaAlapHxECLEQu4FqkV+kGeqEuAquUP5dozoh8oHXKKjx4KrSNDbACWAiE7A3+wVMmZfc2H2AFsBCIFMBVp6TelrPKadVZxgoLRxGIdL0AHnpdV4JtbPKGFZY1IBCpRMui5JXyE93TqoEVwEIg5IarVXj4dZ7f4j24TGAFsBAI+V8UD79eVbqnVVvACmAhEJKj9YZFqfvDxGoWsUrj3lIAC4FYGS6z8MgbwTY2LWAFsBAI+V8oj7xhUHqnVfMwEVgBLARCfrje5FN8gmPIgBXAQiAkf9H85E2LUleCbWzSiBU/5mDhKAKRJ7hMyml65fOOp2aqsMKOowhEXuF6yyg8+hb3tvxtbIAVwEIgZH8xPfrWoj9MXARWAAuBSANaFuUcuTBBOBjACmAhEPK/sB57q1V4zFp6WjWwAlgIhLxwWXXKYBmEBawAFgKRBrh0f/1WVQqsHAXbyyAQiBVebCcti7L3tGpRWKGHhUAghoPrtwalt43NkvVbSWKFhaMIBGJ4uGh4GN7GBlgBLARC5hfg47+1KHUChOGqAyuAhUCkAK7fmZTTZMmA06qBFcBCIGR8Qf70dwZldxsbYAWwEIgUwFVV3Nt8nMXYsMKyBgQCESFaVuGnb/ecVp1nrAAWApGGF2nzbZNycsxbv2XmFSuAhUCkKMaabxuUGwgc6nU5Vt6wAlgIRBrhar0dbGNTXR9WWDiKQCASQet/LErvtGqe38oBVgALgUg/XC3K0DY2a8LKTN3/F085ApGdcHb+nk5vjlOWVsNq7Of/twE9LAQCIa4H8rP/1f1hYnUFrHhfruk0/v/+X4ABAA6s0eytIzCSAAAAAElFTkSuQmCC",isInstalled$8=()=>waitFor(()=>{var v;return!!(!((v=window.nearFiWallet)===null||v===void 0)&&v.isNearFi)},{timeout:200}).catch(()=>!1),setupNearFiState=()=>({wallet:window.nearFiWallet}),NearFi=({options:v,metadata:k,store:ie,emitter:ae,logger:ce})=>__awaiter$f(void 0,void 0,void 0,function*(){const fe=setupNearFiState(),le=()=>__awaiter$f(void 0,void 0,void 0,function*(){if(!fe.wallet.isSignedIn())return;const cr=yield fe.wallet.signOut();if(cr===!0)return;const Br=new Error(typeof cr.error=="string"?cr.error:cr.error.type);if(Br.message==="User reject")throw Br;ce.log("Failed to sign out"),ce.error(Br)}),ve=()=>{fe.wallet.on("accountChanged",cr=>__awaiter$f(void 0,void 0,void 0,function*(){ce.log("onAccountChange",cr),ae.emit("signedOut",null)})),fe.wallet.on("rpcChanged",cr=>__awaiter$f(void 0,void 0,void 0,function*(){ce.log("onNetworkChange",cr),v.network.networkId!==cr.networkId&&(yield le(),ae.emit("signedOut",null),ae.emit("networkChanged",{networkId:cr.networkId}))}))},pe=()=>__awaiter$f(void 0,void 0,void 0,function*(){let cr=fe.wallet.getAccountId();return!cr&&(yield fe.wallet.resolveSignInState(),cr=fe.wallet.getAccountId(),!cr)?[]:[{accountId:cr}]}),ye=cr=>cr.every(Br=>Br.type==="FunctionCall"),me=cr=>{if(!ye(cr))throw new Error(`Only 'FunctionCall' actions types are supported by ${k.name}`);return cr.map($r=>$r.params)},Ee=cr=>cr.map(Br=>({receiverId:Br.receiverId,actions:me(Br.actions)}));return fe.wallet&&fe.wallet.isSignedIn()&&ve(),{signIn({contractId:cr,methodNames:Br}){return __awaiter$f(this,void 0,void 0,function*(){const $r=yield pe();if($r.length)return $r;const{accessKey:Pr,error:Ar}=yield fe.wallet.requestSignIn({contractId:cr,methodNames:Br});if(!Pr||Ar)throw yield le(),new Error((typeof Ar=="string"?Ar:Ar.type)||"Failed to sign in");return ve(),yield pe()})},signOut:le,getAccounts(){return __awaiter$f(this,void 0,void 0,function*(){return yield pe()})},verifyOwner({message:cr}){return __awaiter$f(this,void 0,void 0,function*(){throw ce.log("NearFi:verifyOwner",{message:cr}),new Error(`Method not supported by ${k.name}`)})},signAndSendTransaction({signerId:cr,receiverId:Br,actions:$r}){return __awaiter$f(this,void 0,void 0,function*(){ce.log("signAndSendTransaction",{signerId:cr,receiverId:Br,actions:$r});const{contract:Pr}=ie.getState();if(!fe.wallet.isSignedIn()||!Pr)throw new Error("Wallet not signed in");return fe.wallet.signAndSendTransaction({receiverId:Br||Pr.contractId,actions:me($r)}).then(Ar=>{var ur;if(Ar.error)throw new Error(Ar.error);if(!(!((ur=Ar.response)===null||ur===void 0)&&ur.length))throw new Error("Invalid response");return Ar.response[0]})})},signAndSendTransactions({transactions:cr}){return __awaiter$f(this,void 0,void 0,function*(){if(ce.log("signAndSendTransactions",{transactions:cr}),!fe.wallet.isSignedIn())throw new Error("Wallet not signed in");return fe.wallet.requestSignTransactions({transactions:Ee(cr)}).then(Br=>{var $r;if(Br.error)throw new Error(Br.error);if(!(!(($r=Br.response)===null||$r===void 0)&&$r.length))throw new Error("Invalid response");return Br.response})})}}});function setupNearFi({iconUrl:v=icon$e,deprecated:k=!1}={}){return()=>__awaiter$f(this,void 0,void 0,function*(){const ie=(0,import_is_mobile$9.isMobile)(),ae=yield isInstalled$8();return!ie||!ae?null:{id:"nearfi",type:"injected",metadata:{name:"NearFi",description:"Your NEAR DeFi experience On The Go",iconUrl:v,downloadUrl:"https://nearfi.finance",deprecated:k,available:ae},init:NearFi}})}var import_is_mobile$8=__toESM(require_is_mobile(),1),commonjsGlobal$d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$k$3=function(v){try{return!!v()}catch{return!0}},fails$j$4=fails$k$3,descriptors$c=!fails$j$4(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$i$4=fails$k$3,functionBindNative$c=!fails$i$4(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$7=functionBindNative$c,FunctionPrototype$2$7=Function.prototype,bind$3$7=FunctionPrototype$2$7.bind,call$d$6=FunctionPrototype$2$7.call,uncurryThis$j$4=NATIVE_BIND$3$7&&bind$3$7.bind(call$d$6,call$d$6),functionUncurryThis$c=NATIVE_BIND$3$7?function(v){return v&&uncurryThis$j$4(v)}:function(v){return v&&function(){return call$d$6.apply(v,arguments)}},$TypeError$a$7=TypeError,requireObjectCoercible$2$a=function(v){if(v==null)throw $TypeError$a$7("Can't call method on "+v);return v},requireObjectCoercible$1$c=requireObjectCoercible$2$a,$Object$4$7=Object,toObject$6$2=function(v){return $Object$4$7(requireObjectCoercible$1$c(v))},uncurryThis$i$4=functionUncurryThis$c,toObject$5$2=toObject$6$2,hasOwnProperty$c=uncurryThis$i$4({}.hasOwnProperty),hasOwnProperty_1$c=Object.hasOwn||function v(k,ie){return hasOwnProperty$c(toObject$5$2(k),ie)},DESCRIPTORS$d$2=descriptors$c,hasOwn$b$2=hasOwnProperty_1$c,FunctionPrototype$1$c=Function.prototype,getDescriptor$c=DESCRIPTORS$d$2&&Object.getOwnPropertyDescriptor,EXISTS$1$c=hasOwn$b$2(FunctionPrototype$1$c,"name"),PROPER$c=EXISTS$1$c&&function v(){}.name==="something",CONFIGURABLE$1$c=EXISTS$1$c&&(!DESCRIPTORS$d$2||DESCRIPTORS$d$2&&getDescriptor$c(FunctionPrototype$1$c,"name").configurable),functionName$c={EXISTS:EXISTS$1$c,PROPER:PROPER$c,CONFIGURABLE:CONFIGURABLE$1$c},isCallable$i$6=function(v){return typeof v=="function"},objectDefineProperty$c={},check$c=function(v){return v&&v.Math==Math&&v},global$h$7=check$c(typeof globalThis=="object"&&globalThis)||check$c(typeof window=="object"&&window)||check$c(typeof self=="object"&&self)||check$c(typeof commonjsGlobal$d=="object"&&commonjsGlobal$d)||function(){return this}()||Function("return this")(),isCallable$h$7=isCallable$i$6,isObject$a$2=function(v){return typeof v=="object"?v!==null:isCallable$h$7(v)},global$g$7=global$h$7,isObject$9$2=isObject$a$2,document$1$8=global$g$7.document,EXISTS$d=isObject$9$2(document$1$8)&&isObject$9$2(document$1$8.createElement),documentCreateElement$1$7=function(v){return EXISTS$d?document$1$8.createElement(v):{}},DESCRIPTORS$c$2=descriptors$c,fails$h$4=fails$k$3,createElement$d=documentCreateElement$1$7,ie8DomDefine$c=!DESCRIPTORS$c$2&&!fails$h$4(function(){return Object.defineProperty(createElement$d("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$b$2=descriptors$c,fails$g$4=fails$k$3,v8PrototypeDefineBug$c=DESCRIPTORS$b$2&&fails$g$4(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$8$3=isObject$a$2,$String$3$7=String,$TypeError$9$7=TypeError,anObject$a$6=function(v){if(isObject$8$3(v))return v;throw $TypeError$9$7($String$3$7(v)+" is not an object")},NATIVE_BIND$2$7=functionBindNative$c,call$c$7=Function.prototype.call,functionCall$c=NATIVE_BIND$2$7?call$c$7.bind(call$c$7):function(){return call$c$7.apply(call$c$7,arguments)},global$f$7=global$h$7,isCallable$g$7=isCallable$i$6,aFunction$c=function(v){return isCallable$g$7(v)?v:void 0},getBuiltIn$6$7=function(v,k){return arguments.length<2?aFunction$c(global$f$7[v]):global$f$7[v]&&global$f$7[v][k]},uncurryThis$h$4=functionUncurryThis$c,objectIsPrototypeOf$c=uncurryThis$h$4({}.isPrototypeOf),getBuiltIn$5$7=getBuiltIn$6$7,engineUserAgent$c=getBuiltIn$5$7("navigator","userAgent")||"",global$e$7=global$h$7,userAgent$2$7=engineUserAgent$c,process$d=global$e$7.process,Deno$8=global$e$7.Deno,versions$c=process$d&&process$d.versions||Deno$8&&Deno$8.version,v8$c=versions$c&&versions$c.v8,match$c,version$c;v8$c&&(match$c=v8$c.split("."),version$c=match$c[0]>0&&match$c[0]<4?1:+(match$c[0]+match$c[1]));!version$c&&userAgent$2$7&&(match$c=userAgent$2$7.match(/Edge\/(\d+)/),(!match$c||match$c[1]>=74)&&(match$c=userAgent$2$7.match(/Chrome\/(\d+)/),match$c&&(version$c=+match$c[1])));var engineV8Version$c=version$c,V8_VERSION$d=engineV8Version$c,fails$f$4=fails$k$3,nativeSymbol$c=!!Object.getOwnPropertySymbols&&!fails$f$4(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$d&&V8_VERSION$d<41}),NATIVE_SYMBOL$1$c=nativeSymbol$c,useSymbolAsUid$c=NATIVE_SYMBOL$1$c&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$4$8=getBuiltIn$6$7,isCallable$f$8=isCallable$i$6,isPrototypeOf$4$2=objectIsPrototypeOf$c,USE_SYMBOL_AS_UID$1$c=useSymbolAsUid$c,$Object$3$9=Object,isSymbol$3$2=USE_SYMBOL_AS_UID$1$c?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$4$8("Symbol");return isCallable$f$8(k)&&isPrototypeOf$4$2(k.prototype,$Object$3$9(v))},$String$2$b=String,tryToString$4$7=function(v){try{return $String$2$b(v)}catch{return"Object"}},isCallable$e$8=isCallable$i$6,tryToString$3$7=tryToString$4$7,$TypeError$8$7=TypeError,aCallable$4$7=function(v){if(isCallable$e$8(v))return v;throw $TypeError$8$7(tryToString$3$7(v)+" is not a function")},aCallable$3$7=aCallable$4$7,getMethod$2$7=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$3$7(ie)},call$b$7=functionCall$c,isCallable$d$8=isCallable$i$6,isObject$7$7=isObject$a$2,$TypeError$7$7=TypeError,ordinaryToPrimitive$1$c=function(v,k){var ie,ae;if(k==="string"&&isCallable$d$8(ie=v.toString)&&!isObject$7$7(ae=call$b$7(ie,v))||isCallable$d$8(ie=v.valueOf)&&!isObject$7$7(ae=call$b$7(ie,v))||k!=="string"&&isCallable$d$8(ie=v.toString)&&!isObject$7$7(ae=call$b$7(ie,v)))return ae;throw $TypeError$7$7("Can't convert object to primitive value")},shared$3$c={exports:{}},global$d$7=global$h$7,defineProperty$7$2=Object.defineProperty,defineGlobalProperty$3$a=function(v,k){try{defineProperty$7$2(global$d$7,v,{value:k,configurable:!0,writable:!0})}catch{global$d$7[v]=k}return k},global$c$7=global$h$7,defineGlobalProperty$2$c=defineGlobalProperty$3$a,SHARED$c="__core-js_shared__",store$3$c=global$c$7[SHARED$c]||defineGlobalProperty$2$c(SHARED$c,{}),sharedStore$c=store$3$c,store$2$c=sharedStore$c;(shared$3$c.exports=function(v,k){return store$2$c[v]||(store$2$c[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var uncurryThis$g$4=functionUncurryThis$c,id$e=0,postfix$c=Math.random(),toString$2$a=uncurryThis$g$4(1 .toString),uid$3$2=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$2$a(++id$e+postfix$c,36)},global$b$8=global$h$7,shared$2$c=shared$3$c.exports,hasOwn$a$6=hasOwnProperty_1$c,uid$2$c=uid$3$2,NATIVE_SYMBOL$d=nativeSymbol$c,USE_SYMBOL_AS_UID$d=useSymbolAsUid$c,WellKnownSymbolsStore$c=shared$2$c("wks"),Symbol$1$c=global$b$8.Symbol,symbolFor$c=Symbol$1$c&&Symbol$1$c.for,createWellKnownSymbol$c=USE_SYMBOL_AS_UID$d?Symbol$1$c:Symbol$1$c&&Symbol$1$c.withoutSetter||uid$2$c,wellKnownSymbol$e$6=function(v){if(!hasOwn$a$6(WellKnownSymbolsStore$c,v)||!(NATIVE_SYMBOL$d||typeof WellKnownSymbolsStore$c[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$d&&hasOwn$a$6(Symbol$1$c,v)?WellKnownSymbolsStore$c[v]=Symbol$1$c[v]:USE_SYMBOL_AS_UID$d&&symbolFor$c?WellKnownSymbolsStore$c[v]=symbolFor$c(k):WellKnownSymbolsStore$c[v]=createWellKnownSymbol$c(k)}return WellKnownSymbolsStore$c[v]},call$a$7=functionCall$c,isObject$6$7=isObject$a$2,isSymbol$2$c=isSymbol$3$2,getMethod$1$c=getMethod$2$7,ordinaryToPrimitive$d=ordinaryToPrimitive$1$c,wellKnownSymbol$d$6=wellKnownSymbol$e$6,$TypeError$6$8=TypeError,TO_PRIMITIVE$c=wellKnownSymbol$d$6("toPrimitive"),toPrimitive$2$2=function(v,k){if(!isObject$6$7(v)||isSymbol$2$c(v))return v;var ie=getMethod$1$c(v,TO_PRIMITIVE$c),ae;if(ie){if(k===void 0&&(k="default"),ae=call$a$7(ie,v,k),!isObject$6$7(ae)||isSymbol$2$c(ae))return ae;throw $TypeError$6$8("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$d(v,k)},toPrimitive$1$c=toPrimitive$2$2,isSymbol$1$c=isSymbol$3$2,toPropertyKey$4$2=function(v){var k=toPrimitive$1$c(v,"string");return isSymbol$1$c(k)?k:k+""},DESCRIPTORS$a$6=descriptors$c,IE8_DOM_DEFINE$1$a=ie8DomDefine$c,V8_PROTOTYPE_DEFINE_BUG$1$7=v8PrototypeDefineBug$c,anObject$9$6=anObject$a$6,toPropertyKey$3$3=toPropertyKey$4$2,$TypeError$5$c=TypeError,$defineProperty$c=Object.defineProperty,$getOwnPropertyDescriptor$1$a=Object.getOwnPropertyDescriptor,ENUMERABLE$c="enumerable",CONFIGURABLE$d="configurable",WRITABLE$c="writable";objectDefineProperty$c.f=DESCRIPTORS$a$6?V8_PROTOTYPE_DEFINE_BUG$1$7?function v(k,ie,ae){if(anObject$9$6(k),ie=toPropertyKey$3$3(ie),anObject$9$6(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$c in ae&&!ae[WRITABLE$c]){var ce=$getOwnPropertyDescriptor$1$a(k,ie);ce&&ce[WRITABLE$c]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$d in ae?ae[CONFIGURABLE$d]:ce[CONFIGURABLE$d],enumerable:ENUMERABLE$c in ae?ae[ENUMERABLE$c]:ce[ENUMERABLE$c],writable:!1})}return $defineProperty$c(k,ie,ae)}:$defineProperty$c:function v(k,ie,ae){if(anObject$9$6(k),ie=toPropertyKey$3$3(ie),anObject$9$6(ae),IE8_DOM_DEFINE$1$a)try{return $defineProperty$c(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$5$c("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var makeBuiltIn$2$c={exports:{}},uncurryThis$f$4=functionUncurryThis$c,isCallable$c$8=isCallable$i$6,store$1$c=sharedStore$c,functionToString$c=uncurryThis$f$4(Function.toString);isCallable$c$8(store$1$c.inspectSource)||(store$1$c.inspectSource=function(v){return functionToString$c(v)});var inspectSource$3$7=store$1$c.inspectSource,global$a$a=global$h$7,isCallable$b$9=isCallable$i$6,inspectSource$2$c=inspectSource$3$7,WeakMap$1$c=global$a$a.WeakMap,nativeWeakMap$c=isCallable$b$9(WeakMap$1$c)&&/native code/.test(inspectSource$2$c(WeakMap$1$c)),createPropertyDescriptor$5$2=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$9$6=descriptors$c,definePropertyModule$6$2=objectDefineProperty$c,createPropertyDescriptor$4$3=createPropertyDescriptor$5$2,createNonEnumerableProperty$6$2=DESCRIPTORS$9$6?function(v,k,ie){return definePropertyModule$6$2.f(v,k,createPropertyDescriptor$4$3(1,ie))}:function(v,k,ie){return v[k]=ie,v},shared$1$c=shared$3$c.exports,uid$1$c=uid$3$2,keys$1$2=shared$1$c("keys"),sharedKey$3$7=function(v){return keys$1$2[v]||(keys$1$2[v]=uid$1$c(v))},hiddenKeys$4$7={},NATIVE_WEAK_MAP$c=nativeWeakMap$c,global$9$c=global$h$7,uncurryThis$e$6=functionUncurryThis$c,isObject$5$c=isObject$a$2,createNonEnumerableProperty$5$4=createNonEnumerableProperty$6$2,hasOwn$9$7=hasOwnProperty_1$c,shared$f=sharedStore$c,sharedKey$2$7=sharedKey$3$7,hiddenKeys$3$a=hiddenKeys$4$7,OBJECT_ALREADY_INITIALIZED$c="Object already initialized",TypeError$2$7=global$9$c.TypeError,WeakMap$e=global$9$c.WeakMap,set$1$7,get$1$2,has$c,enforce$c=function(v){return has$c(v)?get$1$2(v):set$1$7(v,{})},getterFor$c=function(v){return function(k){var ie;if(!isObject$5$c(k)||(ie=get$1$2(k)).type!==v)throw TypeError$2$7("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$c||shared$f.state?(store$f=shared$f.state||(shared$f.state=new WeakMap$e),wmget$c=uncurryThis$e$6(store$f.get),wmhas$c=uncurryThis$e$6(store$f.has),wmset$c=uncurryThis$e$6(store$f.set),set$1$7=function(v,k){if(wmhas$c(store$f,v))throw new TypeError$2$7(OBJECT_ALREADY_INITIALIZED$c);return k.facade=v,wmset$c(store$f,v,k),k},get$1$2=function(v){return wmget$c(store$f,v)||{}},has$c=function(v){return wmhas$c(store$f,v)}):(STATE$c=sharedKey$2$7("state"),hiddenKeys$3$a[STATE$c]=!0,set$1$7=function(v,k){if(hasOwn$9$7(v,STATE$c))throw new TypeError$2$7(OBJECT_ALREADY_INITIALIZED$c);return k.facade=v,createNonEnumerableProperty$5$4(v,STATE$c,k),k},get$1$2=function(v){return hasOwn$9$7(v,STATE$c)?v[STATE$c]:{}},has$c=function(v){return hasOwn$9$7(v,STATE$c)});var store$f,wmget$c,wmhas$c,wmset$c,STATE$c,internalState$c={set:set$1$7,get:get$1$2,has:has$c,enforce:enforce$c,getterFor:getterFor$c},fails$e$6=fails$k$3,isCallable$a$c=isCallable$i$6,hasOwn$8$8=hasOwnProperty_1$c,DESCRIPTORS$8$7=descriptors$c,CONFIGURABLE_FUNCTION_NAME$2$2=functionName$c.CONFIGURABLE,inspectSource$1$c=inspectSource$3$7,InternalStateModule$4$2=internalState$c,enforceInternalState$2$2=InternalStateModule$4$2.enforce,getInternalState$4$2=InternalStateModule$4$2.get,defineProperty$6$2=Object.defineProperty,CONFIGURABLE_LENGTH$c=DESCRIPTORS$8$7&&!fails$e$6(function(){return defineProperty$6$2(function(){},"length",{value:8}).length!==8}),TEMPLATE$c=String(String).split("String"),makeBuiltIn$1$c=makeBuiltIn$2$c.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$8$8(v,"name")||CONFIGURABLE_FUNCTION_NAME$2$2&&v.name!==k)&&(DESCRIPTORS$8$7?defineProperty$6$2(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$c&&ie&&hasOwn$8$8(ie,"arity")&&v.length!==ie.arity&&defineProperty$6$2(v,"length",{value:ie.arity});try{ie&&hasOwn$8$8(ie,"constructor")&&ie.constructor?DESCRIPTORS$8$7&&defineProperty$6$2(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$2$2(v);return hasOwn$8$8(ae,"source")||(ae.source=TEMPLATE$c.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$c(function v(){return isCallable$a$c(this)&&getInternalState$4$2(this).source||inspectSource$1$c(this)},"toString");var isCallable$9$c=isCallable$i$6,definePropertyModule$5$3=objectDefineProperty$c,makeBuiltIn$e=makeBuiltIn$2$c.exports,defineGlobalProperty$1$c=defineGlobalProperty$3$a,defineBuiltIn$6$6=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$9$c(ie)&&makeBuiltIn$e(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$c(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$5$3.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},wellKnownSymbol$c$6=wellKnownSymbol$e$6,TO_STRING_TAG$3$7=wellKnownSymbol$c$6("toStringTag"),test$b={};test$b[TO_STRING_TAG$3$7]="z";var toStringTagSupport$b=String(test$b)==="[object z]",uncurryThis$d$7=functionUncurryThis$c,toString$1$c=uncurryThis$d$7({}.toString),stringSlice$c=uncurryThis$d$7("".slice),classofRaw$1$b=function(v){return stringSlice$c(toString$1$c(v),8,-1)},TO_STRING_TAG_SUPPORT$b=toStringTagSupport$b,isCallable$8$c=isCallable$i$6,classofRaw$d=classofRaw$1$b,wellKnownSymbol$b$6=wellKnownSymbol$e$6,TO_STRING_TAG$2$8=wellKnownSymbol$b$6("toStringTag"),$Object$2$c=Object,CORRECT_ARGUMENTS$b=classofRaw$d(function(){return arguments}())=="Arguments",tryGet$b=function(v,k){try{return v[k]}catch{}},classof$8$2=TO_STRING_TAG_SUPPORT$b?classofRaw$d:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$b(k=$Object$2$c(v),TO_STRING_TAG$2$8))=="string"?ie:CORRECT_ARGUMENTS$b?classofRaw$d(k):(ae=classofRaw$d(k))=="Object"&&isCallable$8$c(k.callee)?"Arguments":ae},classof$7$3=classof$8$2,$String$1$c=String,toString2$a=function(v){if(classof$7$3(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$1$c(v)},anObject$8$7=anObject$a$6,regexpFlags$a=function(){var v=anObject$8$7(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$9$7=functionCall$c,hasOwn$7$9=hasOwnProperty_1$c,isPrototypeOf$3$6=objectIsPrototypeOf$c,regExpFlags$a=regexpFlags$a,RegExpPrototype$1$a=RegExp.prototype,regexpGetFlags$a=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$a)&&!hasOwn$7$9(v,"flags")&&isPrototypeOf$3$6(RegExpPrototype$1$a,v)?call$9$7(regExpFlags$a,v):k},PROPER_FUNCTION_NAME$2$2=functionName$c.PROPER,defineBuiltIn$5$6=defineBuiltIn$6$6,anObject$7$8=anObject$a$6,$toString$a=toString2$a,fails$d$6=fails$k$3,getRegExpFlags$a=regexpGetFlags$a,TO_STRING$a="toString",RegExpPrototype$b=RegExp.prototype,n$ToString$a=RegExpPrototype$b[TO_STRING$a],NOT_GENERIC$a=fails$d$6(function(){return n$ToString$a.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$a=PROPER_FUNCTION_NAME$2$2&&n$ToString$a.name!=TO_STRING$a;(NOT_GENERIC$a||INCORRECT_NAME$a)&&defineBuiltIn$5$6(RegExp.prototype,TO_STRING$a,function(){var k=anObject$7$8(this),ie=$toString$a(k.source),ae=$toString$a(getRegExpFlags$a(k));return"/"+ie+"/"+ae},{unsafe:!0});var uncurryThis$c$7=functionUncurryThis$c,fails$c$6=fails$k$3,classof$6$4=classofRaw$1$b,$Object$1$c=Object,split$a=uncurryThis$c$7("".split),indexedObject$a=fails$c$6(function(){return!$Object$1$c("z").propertyIsEnumerable(0)})?function(v){return classof$6$4(v)=="String"?split$a(v,""):$Object$1$c(v)}:$Object$1$c,IndexedObject$2$2=indexedObject$a,requireObjectCoercible$e=requireObjectCoercible$2$a,toIndexedObject$6$2=function(v){return IndexedObject$2$2(requireObjectCoercible$e(v))},objectDefineProperties$7={},ceil$a=Math.ceil,floor$3$2=Math.floor,mathTrunc$a=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$3$2:ceil$a)(ie)},trunc2$a=mathTrunc$a,toIntegerOrInfinity$5$2=function(v){var k=+v;return k!==k||k===0?0:trunc2$a(k)},toIntegerOrInfinity$4$3=toIntegerOrInfinity$5$2,max$1$4=Math.max,min$1$a=Math.min,toAbsoluteIndex$4$2=function(v,k){var ie=toIntegerOrInfinity$4$3(v);return ie<0?max$1$4(ie+k,0):min$1$a(ie,k)},toIntegerOrInfinity$3$4=toIntegerOrInfinity$5$2,min$b=Math.min,toLength$5$2=function(v){return v>0?min$b(toIntegerOrInfinity$3$4(v),9007199254740991):0},toLength$4$2=toLength$5$2,lengthOfArrayLike$6$2=function(v){return toLength$4$2(v.length)},toIndexedObject$5$7=toIndexedObject$6$2,toAbsoluteIndex$3$2=toAbsoluteIndex$4$2,lengthOfArrayLike$5$2=lengthOfArrayLike$6$2,createMethod$1$4=function(v){return function(k,ie,ae){var ce=toIndexedObject$5$7(k),fe=lengthOfArrayLike$5$2(ce),le=toAbsoluteIndex$3$2(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$a={includes:createMethod$1$4(!0),indexOf:createMethod$1$4(!1)},uncurryThis$b$7=functionUncurryThis$c,hasOwn$6$a=hasOwnProperty_1$c,toIndexedObject$4$7=toIndexedObject$6$2,indexOf$a=arrayIncludes$a.indexOf,hiddenKeys$2$a=hiddenKeys$4$7,push$1$4=uncurryThis$b$7([].push),objectKeysInternal$a=function(v,k){var ie=toIndexedObject$4$7(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$6$a(hiddenKeys$2$a,fe)&&hasOwn$6$a(ie,fe)&&push$1$4(ce,fe);for(;k.length>ae;)hasOwn$6$a(ie,fe=k[ae++])&&(~indexOf$a(ce,fe)||push$1$4(ce,fe));return ce},enumBugKeys$3$7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$9=objectKeysInternal$a,enumBugKeys$2$9=enumBugKeys$3$7,objectKeys$2$6=Object.keys||function v(k){return internalObjectKeys$1$9(k,enumBugKeys$2$9)},DESCRIPTORS$7$a=descriptors$c,V8_PROTOTYPE_DEFINE_BUG$d=v8PrototypeDefineBug$c,definePropertyModule$4$6=objectDefineProperty$c,anObject$6$8=anObject$a$6,toIndexedObject$3$a=toIndexedObject$6$2,objectKeys$1$9=objectKeys$2$6;objectDefineProperties$7.f=DESCRIPTORS$7$a&&!V8_PROTOTYPE_DEFINE_BUG$d?Object.defineProperties:function v(k,ie){anObject$6$8(k);for(var ae=toIndexedObject$3$a(ie),ce=objectKeys$1$9(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$4$6.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$3$a=getBuiltIn$6$7,html$1$8=getBuiltIn$3$a("document","documentElement"),anObject$5$8=anObject$a$6,definePropertiesModule$7=objectDefineProperties$7,enumBugKeys$1$a=enumBugKeys$3$7,hiddenKeys$1$a=hiddenKeys$4$7,html$9=html$1$8,documentCreateElement$d=documentCreateElement$1$7,sharedKey$1$c=sharedKey$3$7,GT$7=">",LT$7="<",PROTOTYPE$1$2="prototype",SCRIPT$7="script",IE_PROTO$1$7=sharedKey$1$c("IE_PROTO"),EmptyConstructor$7=function(){},scriptTag$7=function(v){return LT$7+SCRIPT$7+GT$7+v+LT$7+"/"+SCRIPT$7+GT$7},NullProtoObjectViaActiveX$7=function(v){v.write(scriptTag$7("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$7=function(){var v=documentCreateElement$d("iframe"),k="java"+SCRIPT$7+":",ie;return v.style.display="none",html$9.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$7("document.F=Object")),ie.close(),ie.F},activeXDocument$7,NullProtoObject$7=function(){try{activeXDocument$7=new ActiveXObject("htmlfile")}catch{}NullProtoObject$7=typeof document<"u"?document.domain&&activeXDocument$7?NullProtoObjectViaActiveX$7(activeXDocument$7):NullProtoObjectViaIFrame$7():NullProtoObjectViaActiveX$7(activeXDocument$7);for(var v=enumBugKeys$1$a.length;v--;)delete NullProtoObject$7[PROTOTYPE$1$2][enumBugKeys$1$a[v]];return NullProtoObject$7()};hiddenKeys$1$a[IE_PROTO$1$7]=!0;var objectCreate$7=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$7[PROTOTYPE$1$2]=anObject$5$8(k),ae=new EmptyConstructor$7,EmptyConstructor$7[PROTOTYPE$1$2]=null,ae[IE_PROTO$1$7]=k):ae=NullProtoObject$7(),ie===void 0?ae:definePropertiesModule$7.f(ae,ie)},wellKnownSymbol$a$7=wellKnownSymbol$e$6,create$2$4=objectCreate$7,defineProperty$5$6=objectDefineProperty$c.f,UNSCOPABLES$7=wellKnownSymbol$a$7("unscopables"),ArrayPrototype$1$6=Array.prototype;ArrayPrototype$1$6[UNSCOPABLES$7]==null&&defineProperty$5$6(ArrayPrototype$1$6,UNSCOPABLES$7,{configurable:!0,value:create$2$4(null)});var addToUnscopables$1$7=function(v){ArrayPrototype$1$6[UNSCOPABLES$7][v]=!0},iterators$8={},objectGetOwnPropertyDescriptor$a={},objectPropertyIsEnumerable$a={},$propertyIsEnumerable$a={}.propertyIsEnumerable,getOwnPropertyDescriptor$1$a=Object.getOwnPropertyDescriptor,NASHORN_BUG$a=getOwnPropertyDescriptor$1$a&&!$propertyIsEnumerable$a.call({1:2},1);objectPropertyIsEnumerable$a.f=NASHORN_BUG$a?function v(k){var ie=getOwnPropertyDescriptor$1$a(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$a;var DESCRIPTORS$6$a=descriptors$c,call$8$7=functionCall$c,propertyIsEnumerableModule$1$8=objectPropertyIsEnumerable$a,createPropertyDescriptor$3$7=createPropertyDescriptor$5$2,toIndexedObject$2$a=toIndexedObject$6$2,toPropertyKey$2$a=toPropertyKey$4$2,hasOwn$5$a=hasOwnProperty_1$c,IE8_DOM_DEFINE$d=ie8DomDefine$c,$getOwnPropertyDescriptor$d=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$a.f=DESCRIPTORS$6$a?$getOwnPropertyDescriptor$d:function v(k,ie){if(k=toIndexedObject$2$a(k),ie=toPropertyKey$2$a(ie),IE8_DOM_DEFINE$d)try{return $getOwnPropertyDescriptor$d(k,ie)}catch{}if(hasOwn$5$a(k,ie))return createPropertyDescriptor$3$7(!call$8$7(propertyIsEnumerableModule$1$8.f,k,ie),k[ie])};var objectGetOwnPropertyNames$a={},internalObjectKeys$b=objectKeysInternal$a,enumBugKeys$d=enumBugKeys$3$7,hiddenKeys$e=enumBugKeys$d.concat("length","prototype");objectGetOwnPropertyNames$a.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$b(k,hiddenKeys$e)};var objectGetOwnPropertySymbols$a={};objectGetOwnPropertySymbols$a.f=Object.getOwnPropertySymbols;var getBuiltIn$2$c=getBuiltIn$6$7,uncurryThis$a$a=functionUncurryThis$c,getOwnPropertyNamesModule$a=objectGetOwnPropertyNames$a,getOwnPropertySymbolsModule$1$8=objectGetOwnPropertySymbols$a,anObject$4$9=anObject$a$6,concat$1$8=uncurryThis$a$a([].concat),ownKeys$1$a=getBuiltIn$2$c("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$a.f(anObject$4$9(k)),ae=getOwnPropertySymbolsModule$1$8.f;return ae?concat$1$8(ie,ae(k)):ie},hasOwn$4$c=hasOwnProperty_1$c,ownKeys2$a=ownKeys$1$a,getOwnPropertyDescriptorModule$1$2=objectGetOwnPropertyDescriptor$a,definePropertyModule$3$8=objectDefineProperty$c,copyConstructorProperties$1$a=function(v,k,ie){for(var ae=ownKeys2$a(k),ce=definePropertyModule$3$8.f,fe=getOwnPropertyDescriptorModule$1$2.f,le=0;le=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values");var values$7=Iterators$2$7.Arguments=Iterators$2$7.Array;addToUnscopables$8("keys");addToUnscopables$8("values");addToUnscopables$8("entries");if(DESCRIPTORS$5$c&&values$7.name!=="values")try{defineProperty$3$7(values$7,"name",{value:"values"})}catch(v){}var arrayBufferNative$2=typeof ArrayBuffer<"u"&&typeof DataView<"u",defineBuiltIn$1$c=defineBuiltIn$6$6,defineBuiltIns$1$2=function(v,k,ie){for(var ae in k)defineBuiltIn$1$c(v,ae,k[ae],ie);return v},isPrototypeOf$2$7=objectIsPrototypeOf$c,$TypeError$3$c=TypeError,anInstance$2$2=function(v,k){if(isPrototypeOf$2$7(k,v))return v;throw $TypeError$3$c("Incorrect invocation")},toIntegerOrInfinity$2$a=toIntegerOrInfinity$5$2,toLength$3$2=toLength$5$2,$RangeError$2$2=RangeError,toIndex$2$2=function(v){if(v===void 0)return 0;var k=toIntegerOrInfinity$2$a(v),ie=toLength$3$2(k);if(k!==ie)throw $RangeError$2$2("Wrong length or index");return ie},$Array$2$2=Array,abs$2=Math.abs,pow$2=Math.pow,floor$2$2=Math.floor,log$2=Math.log,LN2$2=Math.LN2,pack$3=function(v,k,ie){var ae=$Array$2$2(ie),ce=ie*8-k-1,fe=(1<>1,ve=k===23?pow$2(2,-24)-pow$2(2,-77):0,pe=v<0||v===0&&1/v<0?1:0,ye=0,me,Ee,cr;for(v=abs$2(v),v!=v||v===1/0?(Ee=v!=v?1:0,me=fe):(me=floor$2$2(log$2(v)/LN2$2),cr=pow$2(2,-me),v*cr<1&&(me--,cr*=2),me+le>=1?v+=ve/cr:v+=ve*pow$2(2,1-le),v*cr>=2&&(me++,cr/=2),me+le>=fe?(Ee=0,me=fe):me+le>=1?(Ee=(v*cr-1)*pow$2(2,k),me=me+le):(Ee=v*pow$2(2,le-1)*pow$2(2,k),me=0));k>=8;)ae[ye++]=Ee&255,Ee/=256,k-=8;for(me=me<0;)ae[ye++]=me&255,me/=256,ce-=8;return ae[--ye]|=pe*128,ae},unpack$3=function(v,k){var ie=v.length,ae=ie*8-k-1,ce=(1<>1,le=ae-7,ve=ie-1,pe=v[ve--],ye=pe&127,me;for(pe>>=7;le>0;)ye=ye*256+v[ve--],le-=8;for(me=ye&(1<<-le)-1,ye>>=-le,le+=k;le>0;)me=me*256+v[ve--],le-=8;if(ye===0)ye=1-fe;else{if(ye===ce)return me?NaN:pe?-1/0:1/0;me=me+pow$2(2,k),ye=ye-fe}return(pe?-1:1)*me*pow$2(2,ye-k)},ieee754$2={pack:pack$3,unpack:unpack$3},toObject$3$6=toObject$6$2,toAbsoluteIndex$2$3=toAbsoluteIndex$4$2,lengthOfArrayLike$4$2=lengthOfArrayLike$6$2,arrayFill$1$2=function v(k){for(var ie=toObject$3$6(this),ae=lengthOfArrayLike$4$2(ie),ce=arguments.length,fe=toAbsoluteIndex$2$3(ce>1?arguments[1]:void 0,ae),le=ce>2?arguments[2]:void 0,ve=le===void 0?ae:toAbsoluteIndex$2$3(le,ae);ve>fe;)ie[fe++]=k;return ie},toPropertyKey$1$c=toPropertyKey$4$2,definePropertyModule$2$a=objectDefineProperty$c,createPropertyDescriptor$1$c=createPropertyDescriptor$5$2,createProperty$1$3=function(v,k,ie){var ae=toPropertyKey$1$c(k);ae in v?definePropertyModule$2$a.f(v,ae,createPropertyDescriptor$1$c(0,ie)):v[ae]=ie},toAbsoluteIndex$1$a=toAbsoluteIndex$4$2,lengthOfArrayLike$3$3=lengthOfArrayLike$6$2,createProperty$4=createProperty$1$3,$Array$1$2=Array,max$b=Math.max,arraySliceSimple$3=function(v,k,ie){for(var ae=lengthOfArrayLike$3$3(v),ce=toAbsoluteIndex$1$a(k,ae),fe=toAbsoluteIndex$1$a(ie===void 0?ae:ie,ae),le=$Array$1$2(max$b(fe-ce,0)),ve=0;ce>8&255]},packInt32$2=function(v){return[v&255,v>>8&255,v>>16&255,v>>24&255]},unpackInt32$2=function(v){return v[3]<<24|v[2]<<16|v[1]<<8|v[0]},packFloat32$2=function(v){return packIEEE754$2(v,23,4)},packFloat64$2=function(v){return packIEEE754$2(v,52,8)},addGetter$1$2=function(v,k){defineProperty$2$a(v[PROTOTYPE$8],k,{get:function(){return getInternalState$2$4(this)[k]}})},get$d=function(v,k,ie,ae){var ce=toIndex$1$2(ie),fe=getInternalState$2$4(v);if(ce+k>fe.byteLength)throw RangeError$3$2(WRONG_INDEX$2);var le=getInternalState$2$4(fe.buffer).bytes,ve=ce+fe.byteOffset,pe=arraySlice$3$2(le,ve,ve+k);return ae?pe:reverse$2(pe)},set$d=function(v,k,ie,ae,ce,fe){var le=toIndex$1$2(ie),ve=getInternalState$2$4(v);if(le+k>ve.byteLength)throw RangeError$3$2(WRONG_INDEX$2);for(var pe=getInternalState$2$4(ve.buffer).bytes,ye=le+ve.byteOffset,me=ae(+ce),Ee=0;Eece)throw RangeError$3$2("Wrong offset");if(ae=ae===void 0?ce-fe:toLength$2$4(ae),fe+ae>ce)throw RangeError$3$2(WRONG_LENGTH$1$2);setInternalState$1$6(this,{buffer:k,byteLength:ae,byteOffset:fe}),DESCRIPTORS$4$c||(this.buffer=k,this.byteLength=ae,this.byteOffset=fe)},DataViewPrototype$1$2=$DataView$2[PROTOTYPE$8],DESCRIPTORS$4$c&&(addGetter$1$2($ArrayBuffer$2,"byteLength"),addGetter$1$2($DataView$2,"buffer"),addGetter$1$2($DataView$2,"byteLength"),addGetter$1$2($DataView$2,"byteOffset")),defineBuiltIns$3(DataViewPrototype$1$2,{getInt8:function(k){return get$d(this,1,k)[0]<<24>>24},getUint8:function(k){return get$d(this,1,k)[0]},getInt16:function(k){var ie=get$d(this,2,k,arguments.length>1?arguments[1]:void 0);return(ie[1]<<8|ie[0])<<16>>16},getUint16:function(k){var ie=get$d(this,2,k,arguments.length>1?arguments[1]:void 0);return ie[1]<<8|ie[0]},getInt32:function(k){return unpackInt32$2(get$d(this,4,k,arguments.length>1?arguments[1]:void 0))},getUint32:function(k){return unpackInt32$2(get$d(this,4,k,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(k){return unpackIEEE754$2(get$d(this,4,k,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(k){return unpackIEEE754$2(get$d(this,8,k,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(k,ie){set$d(this,1,k,packInt8$2,ie)},setUint8:function(k,ie){set$d(this,1,k,packInt8$2,ie)},setInt16:function(k,ie){set$d(this,2,k,packInt16$2,ie,arguments.length>2?arguments[2]:void 0)},setUint16:function(k,ie){set$d(this,2,k,packInt16$2,ie,arguments.length>2?arguments[2]:void 0)},setInt32:function(k,ie){set$d(this,4,k,packInt32$2,ie,arguments.length>2?arguments[2]:void 0)},setUint32:function(k,ie){set$d(this,4,k,packInt32$2,ie,arguments.length>2?arguments[2]:void 0)},setFloat32:function(k,ie){set$d(this,4,k,packFloat32$2,ie,arguments.length>2?arguments[2]:void 0)},setFloat64:function(k,ie){set$d(this,8,k,packFloat64$2,ie,arguments.length>2?arguments[2]:void 0)}});else{if(INCORRECT_ARRAY_BUFFER_NAME$2=PROPER_FUNCTION_NAME$c&&NativeArrayBuffer$2.name!==ARRAY_BUFFER$2,!fails$8$a(function(){NativeArrayBuffer$2(1)})||!fails$8$a(function(){new NativeArrayBuffer$2(-1)})||fails$8$a(function(){return new NativeArrayBuffer$2,new NativeArrayBuffer$2(1.5),new NativeArrayBuffer$2(NaN),INCORRECT_ARRAY_BUFFER_NAME$2&&!CONFIGURABLE_FUNCTION_NAME$e})){for($ArrayBuffer$2=function(k){return anInstance$1$7(this,ArrayBufferPrototype$1$2),new NativeArrayBuffer$2(toIndex$1$2(k))},$ArrayBuffer$2[PROTOTYPE$8]=ArrayBufferPrototype$1$2,keys2$3=getOwnPropertyNames$1$2(NativeArrayBuffer$2),j$4=0;keys2$3.length>j$4;)(key$3=keys2$3[j$4++])in $ArrayBuffer$2||createNonEnumerableProperty$2$a($ArrayBuffer$2,key$3,NativeArrayBuffer$2[key$3]);ArrayBufferPrototype$1$2.constructor=$ArrayBuffer$2}else INCORRECT_ARRAY_BUFFER_NAME$2&&CONFIGURABLE_FUNCTION_NAME$e&&createNonEnumerableProperty$2$a(NativeArrayBuffer$2,"name",ARRAY_BUFFER$2);setPrototypeOf$3$2&&getPrototypeOf$1$7(DataViewPrototype$1$2)!==ObjectPrototype$1$2&&setPrototypeOf$3$2(DataViewPrototype$1$2,ObjectPrototype$1$2),testView$2=new $DataView$2(new $ArrayBuffer$2(2)),$setInt8$2=uncurryThis$8$a(DataViewPrototype$1$2.setInt8),testView$2.setInt8(0,2147483648),testView$2.setInt8(1,2147483649),(testView$2.getInt8(0)||!testView$2.getInt8(1))&&defineBuiltIns$3(DataViewPrototype$1$2,{setInt8:function(k,ie){$setInt8$2(this,k,ie<<24>>24)},setUint8:function(k,ie){$setInt8$2(this,k,ie<<24>>24)}},{unsafe:!0})}var INCORRECT_ARRAY_BUFFER_NAME$2,keys2$3,j$4,key$3,testView$2,$setInt8$2;setToStringTag$b($ArrayBuffer$2,ARRAY_BUFFER$2);setToStringTag$b($DataView$2,DATA_VIEW$2);var arrayBuffer$2={ArrayBuffer:$ArrayBuffer$2,DataView:$DataView$2},uncurryThis$7$a=functionUncurryThis$c,fails$7$c=fails$k$3,isCallable$2$c=isCallable$i$6,classof$5$6=classof$8$2,getBuiltIn$1$c=getBuiltIn$6$7,inspectSource$g=inspectSource$3$7,noop$7=function(){},empty$6=[],construct$7=getBuiltIn$1$c("Reflect","construct"),constructorRegExp$7=/^\s*(?:class|function)\b/,exec$8=uncurryThis$7$a(constructorRegExp$7.exec),INCORRECT_TO_STRING$7=!constructorRegExp$7.exec(noop$7),isConstructorModern$7=function v(k){if(!isCallable$2$c(k))return!1;try{return construct$7(noop$7,empty$6,k),!0}catch{return!1}},isConstructorLegacy$7=function v(k){if(!isCallable$2$c(k))return!1;switch(classof$5$6(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$7||!!exec$8(constructorRegExp$7,inspectSource$g(k))}catch{return!0}};isConstructorLegacy$7.sham=!0;var isConstructor$2$2=!construct$7||fails$7$c(function(){var v;return isConstructorModern$7(isConstructorModern$7.call)||!isConstructorModern$7(Object)||!isConstructorModern$7(function(){v=!0})||v})?isConstructorLegacy$7:isConstructorModern$7,isConstructor$1$7=isConstructor$2$2,tryToString$2$7=tryToString$4$7,$TypeError$2$c=TypeError,aConstructor$2$2=function(v){if(isConstructor$1$7(v))return v;throw $TypeError$2$c(tryToString$2$7(v)+" is not a constructor")},anObject$2$c=anObject$a$6,aConstructor$1$7=aConstructor$2$2,wellKnownSymbol$6$8=wellKnownSymbol$e$6,SPECIES$2$7=wellKnownSymbol$6$8("species"),speciesConstructor$1$7=function(v,k){var ie=anObject$2$c(v).constructor,ae;return ie===void 0||(ae=anObject$2$c(ie)[SPECIES$2$7])==null?k:aConstructor$1$7(ae)},$$2$7=_export$a,uncurryThis$6$c=functionUncurryThis$c,fails$6$c=fails$k$3,ArrayBufferModule$1$2=arrayBuffer$2,anObject$1$c=anObject$a$6,toAbsoluteIndex$e=toAbsoluteIndex$4$2,toLength$1$a=toLength$5$2,speciesConstructor$8=speciesConstructor$1$7,ArrayBuffer$3$2=ArrayBufferModule$1$2.ArrayBuffer,DataView$2$2=ArrayBufferModule$1$2.DataView,DataViewPrototype$3=DataView$2$2.prototype,un$ArrayBufferSlice$2=uncurryThis$6$c(ArrayBuffer$3$2.prototype.slice),getUint8$2=uncurryThis$6$c(DataViewPrototype$3.getUint8),setUint8$2=uncurryThis$6$c(DataViewPrototype$3.setUint8),INCORRECT_SLICE$2=fails$6$c(function(){return!new ArrayBuffer$3$2(2).slice(1,void 0).byteLength});$$2$7({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:INCORRECT_SLICE$2},{slice:function v(k,ie){if(un$ArrayBufferSlice$2&&ie===void 0)return un$ArrayBufferSlice$2(anObject$1$c(this),k);for(var ae=anObject$1$c(this).byteLength,ce=toAbsoluteIndex$e(k,ae),fe=toAbsoluteIndex$e(ie===void 0?ae:ie,ae),le=new(speciesConstructor$8(this,ArrayBuffer$3$2))(toLength$1$a(fe-ce)),ve=new DataView$2$2(this),pe=new DataView$2$2(le),ye=0;ce1?arguments[1]:void 0,le=fe!==void 0,ve=getIteratorMethod$9(ae),pe,ye,me,Ee,cr,Br;if(ve&&!isArrayIteratorMethod$8(ve))for(cr=getIterator$8(ae,ve),Br=cr.next,ae=[];!(Ee=call$5$a(Br,cr)).done;)ae.push(Ee.value);for(le&&ce>2&&(fe=bind$1$7(fe,arguments[2])),ye=lengthOfArrayLike$2$7(ae),me=new(aTypedArrayConstructor$1$2(ie))(ye),pe=0;ye>pe;pe++)me[pe]=le?fe(ae[pe],pe):ae[pe];return me},classof$2$9=classofRaw$1$b,isArray$1$2=Array.isArray||function v(k){return classof$2$9(k)=="Array"},isArray2$2=isArray$1$2,isConstructor3$7=isConstructor$2$2,isObject$2$c=isObject$a$2,wellKnownSymbol$1$c=wellKnownSymbol$e$6,SPECIES$1$7=wellKnownSymbol$1$c("species"),$Array$5=Array,arraySpeciesConstructor$1$2=function(v){var k;return isArray2$2(v)&&(k=v.constructor,isConstructor3$7(k)&&(k===$Array$5||isArray2$2(k.prototype))?k=void 0:isObject$2$c(k)&&(k=k[SPECIES$1$7],k===null&&(k=void 0))),k===void 0?$Array$5:k},arraySpeciesConstructor$3=arraySpeciesConstructor$1$2,arraySpeciesCreate$1$2=function(v,k){return new(arraySpeciesConstructor$3(v))(k===0?0:k)},bind$h=functionBindContext$7,uncurryThis$4$c=functionUncurryThis$c,IndexedObject$1$8=indexedObject$a,toObject$1$c=toObject$6$2,lengthOfArrayLike$1$a=lengthOfArrayLike$6$2,arraySpeciesCreate$3=arraySpeciesCreate$1$2,push$b=uncurryThis$4$c([].push),createMethod$b=function(v){var k=v==1,ie=v==2,ae=v==3,ce=v==4,fe=v==6,le=v==7,ve=v==5||fe;return function(pe,ye,me,Ee){for(var cr=toObject$1$c(pe),Br=IndexedObject$1$8(cr),$r=bind$h(ye,me),Pr=lengthOfArrayLike$1$a(Br),Ar=0,ur=Ee||arraySpeciesCreate$3,jr=k?ur(pe,Pr):ie||le?ur(pe,0):void 0,Mr,Lr;Pr>Ar;Ar++)if((ve||Ar in Br)&&(Mr=Br[Ar],Lr=$r(Mr,Ar,cr),v))if(k)jr[Ar]=Lr;else if(Lr)switch(v){case 3:return!0;case 5:return Mr;case 6:return Ar;case 2:push$b(jr,Mr)}else switch(v){case 4:return!1;case 7:push$b(jr,Mr)}return fe?-1:ae||ce?ce:jr}},arrayIteration$2={forEach:createMethod$b(0),map:createMethod$b(1),filter:createMethod$b(2),some:createMethod$b(3),every:createMethod$b(4),find:createMethod$b(5),findIndex:createMethod$b(6),filterReject:createMethod$b(7)},getBuiltIn$k=getBuiltIn$6$7,definePropertyModule$1$c=objectDefineProperty$c,wellKnownSymbol$q=wellKnownSymbol$e$6,DESCRIPTORS$2$c=descriptors$c,SPECIES$9=wellKnownSymbol$q("species"),setSpecies$1$7=function(v){var k=getBuiltIn$k(v),ie=definePropertyModule$1$c.f;DESCRIPTORS$2$c&&k&&!k[SPECIES$9]&&ie(k,SPECIES$9,{configurable:!0,get:function(){return this}})},isCallable$u=isCallable$i$6,isObject$1$c=isObject$a$2,setPrototypeOf$1$6=objectSetPrototypeOf$8,inheritIfRequired$1$2=function(v,k,ie){var ae,ce;return setPrototypeOf$1$6&&isCallable$u(ae=k.constructor)&&ae!==ie&&isObject$1$c(ce=ae.prototype)&&ce!==ie.prototype&&setPrototypeOf$1$6(v,ce),v},$$1$7=_export$a,global$4$c=global$h$7,call$4$c=functionCall$c,DESCRIPTORS$1$c=descriptors$c,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$2=typedArrayConstructorsRequireWrappers$2,ArrayBufferViewCore$4$2=arrayBufferViewCore$2,ArrayBufferModule$3=arrayBuffer$2,anInstance$9=anInstance$2$2,createPropertyDescriptor$h=createPropertyDescriptor$5$2,createNonEnumerableProperty$i=createNonEnumerableProperty$6$2,isIntegralNumber$3=isIntegralNumber$1$2,toLength$f=toLength$5$2,toIndex$4=toIndex$2$2,toOffset$1$2=toOffset$2$2,toPropertyKey$g=toPropertyKey$4$2,hasOwn2$c=hasOwnProperty_1$c,classof$1$b=classof$8$2,isObject$n=isObject$a$2,isSymbol$f=isSymbol$3$2,create2$6=objectCreate$7,isPrototypeOf$g=objectIsPrototypeOf$c,setPrototypeOf$c=objectSetPrototypeOf$8,getOwnPropertyNames2$2=objectGetOwnPropertyNames$a.f,typedArrayFrom$3=typedArrayFrom$1$2,forEach$2=arrayIteration$2.forEach,setSpecies$8=setSpecies$1$7,definePropertyModule$i=objectDefineProperty$c,getOwnPropertyDescriptorModule$b=objectGetOwnPropertyDescriptor$a,InternalStateModule$g=internalState$c,inheritIfRequired$3=inheritIfRequired$1$2,getInternalState$g=InternalStateModule$g.get,setInternalState$a=InternalStateModule$g.set,enforceInternalState$e=InternalStateModule$g.enforce,nativeDefineProperty$2=definePropertyModule$i.f,nativeGetOwnPropertyDescriptor$2=getOwnPropertyDescriptorModule$b.f,round$2=Math.round,RangeError$2$2=global$4$c.RangeError,ArrayBuffer$1$2=ArrayBufferModule$3.ArrayBuffer,ArrayBufferPrototype$3=ArrayBuffer$1$2.prototype,DataView$1$2=ArrayBufferModule$3.DataView,NATIVE_ARRAY_BUFFER_VIEWS$4=ArrayBufferViewCore$4$2.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG$3=ArrayBufferViewCore$4$2.TYPED_ARRAY_TAG,TypedArray$3=ArrayBufferViewCore$4$2.TypedArray,TypedArrayPrototype$3=ArrayBufferViewCore$4$2.TypedArrayPrototype,aTypedArrayConstructor$4=ArrayBufferViewCore$4$2.aTypedArrayConstructor,isTypedArray$3=ArrayBufferViewCore$4$2.isTypedArray,BYTES_PER_ELEMENT$2="BYTES_PER_ELEMENT",WRONG_LENGTH$3="Wrong length",fromList$2=function(v,k){aTypedArrayConstructor$4(v);for(var ie=0,ae=k.length,ce=new v(ae);ae>ie;)ce[ie]=k[ie++];return ce},addGetter$3=function(v,k){nativeDefineProperty$2(v,k,{get:function(){return getInternalState$g(this)[k]}})},isArrayBuffer$2=function(v){var k;return isPrototypeOf$g(ArrayBufferPrototype$3,v)||(k=classof$1$b(v))=="ArrayBuffer"||k=="SharedArrayBuffer"},isTypedArrayIndex$2=function(v,k){return isTypedArray$3(v)&&!isSymbol$f(k)&&k in v&&isIntegralNumber$3(+k)&&k>=0},wrappedGetOwnPropertyDescriptor$2=function v(k,ie){return ie=toPropertyKey$g(ie),isTypedArrayIndex$2(k,ie)?createPropertyDescriptor$h(2,k[ie]):nativeGetOwnPropertyDescriptor$2(k,ie)},wrappedDefineProperty$2=function v(k,ie,ae){return ie=toPropertyKey$g(ie),isTypedArrayIndex$2(k,ie)&&isObject$n(ae)&&hasOwn2$c(ae,"value")&&!hasOwn2$c(ae,"get")&&!hasOwn2$c(ae,"set")&&!ae.configurable&&(!hasOwn2$c(ae,"writable")||ae.writable)&&(!hasOwn2$c(ae,"enumerable")||ae.enumerable)?(k[ie]=ae.value,k):nativeDefineProperty$2(k,ie,ae)};DESCRIPTORS$1$c?(NATIVE_ARRAY_BUFFER_VIEWS$4||(getOwnPropertyDescriptorModule$b.f=wrappedGetOwnPropertyDescriptor$2,definePropertyModule$i.f=wrappedDefineProperty$2,addGetter$3(TypedArrayPrototype$3,"buffer"),addGetter$3(TypedArrayPrototype$3,"byteOffset"),addGetter$3(TypedArrayPrototype$3,"byteLength"),addGetter$3(TypedArrayPrototype$3,"length")),$$1$7({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS$4},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor$2,defineProperty:wrappedDefineProperty$2}),typedArrayConstructor$2.exports=function(v,k,ie){var ae=v.match(/\d+$/)[0]/8,ce=v+(ie?"Clamped":"")+"Array",fe="get"+v,le="set"+v,ve=global$4$c[ce],pe=ve,ye=pe&&pe.prototype,me={},Ee=function(Pr,Ar){var ur=getInternalState$g(Pr);return ur.view[fe](Ar*ae+ur.byteOffset,!0)},cr=function(Pr,Ar,ur){var jr=getInternalState$g(Pr);ie&&(ur=(ur=round$2(ur))<0?0:ur>255?255:ur&255),jr.view[le](Ar*ae+jr.byteOffset,ur,!0)},Br=function(Pr,Ar){nativeDefineProperty$2(Pr,Ar,{get:function(){return Ee(this,Ar)},set:function(ur){return cr(this,Ar,ur)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS$4?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$2&&(pe=k(function(Pr,Ar,ur,jr){return anInstance$9(Pr,ye),inheritIfRequired$3(function(){return isObject$n(Ar)?isArrayBuffer$2(Ar)?jr!==void 0?new ve(Ar,toOffset$1$2(ur,ae),jr):ur!==void 0?new ve(Ar,toOffset$1$2(ur,ae)):new ve(Ar):isTypedArray$3(Ar)?fromList$2(pe,Ar):call$4$c(typedArrayFrom$3,pe,Ar):new ve(toIndex$4(Ar))}(),Pr,pe)}),setPrototypeOf$c&&setPrototypeOf$c(pe,TypedArray$3),forEach$2(getOwnPropertyNames2$2(ve),function(Pr){Pr in pe||createNonEnumerableProperty$i(pe,Pr,ve[Pr])}),pe.prototype=ye):(pe=k(function(Pr,Ar,ur,jr){anInstance$9(Pr,ye);var Mr=0,Lr=0,Vr,Gr,Ur;if(!isObject$n(Ar))Ur=toIndex$4(Ar),Gr=Ur*ae,Vr=new ArrayBuffer$1$2(Gr);else if(isArrayBuffer$2(Ar)){Vr=Ar,Lr=toOffset$1$2(ur,ae);var Qr=Ar.byteLength;if(jr===void 0){if(Qr%ae||(Gr=Qr-Lr,Gr<0))throw RangeError$2$2(WRONG_LENGTH$3)}else if(Gr=toLength$f(jr)*ae,Gr+Lr>Qr)throw RangeError$2$2(WRONG_LENGTH$3);Ur=Gr/ae}else return isTypedArray$3(Ar)?fromList$2(pe,Ar):call$4$c(typedArrayFrom$3,pe,Ar);for(setInternalState$a(Pr,{buffer:Vr,byteOffset:Lr,byteLength:Gr,length:Ur,view:new DataView$1$2(Vr)});Mr1?arguments[1]:void 0,ie>2?arguments[2]:void 0)},CONVERSION_BUG$2);var global$3$c=global$h$7,call$2$c=functionCall$c,ArrayBufferViewCore$2$2=arrayBufferViewCore$2,lengthOfArrayLike$g=lengthOfArrayLike$6$2,toOffset$4=toOffset$2$2,toIndexedObject$g=toObject$6$2,fails$3$c=fails$k$3,RangeError$1$2=global$3$c.RangeError,Int8Array$2$2=global$3$c.Int8Array,Int8ArrayPrototype$3=Int8Array$2$2&&Int8Array$2$2.prototype,$set$2=Int8ArrayPrototype$3&&Int8ArrayPrototype$3.set,aTypedArray$2$2=ArrayBufferViewCore$2$2.aTypedArray,exportTypedArrayMethod$2$2=ArrayBufferViewCore$2$2.exportTypedArrayMethod,WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$2=!fails$3$c(function(){var v=new Uint8ClampedArray(2);return call$2$c($set$2,v,{length:1,0:3},1),v[1]!==3}),TO_OBJECT_BUG$2=WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$2&&ArrayBufferViewCore$2$2.NATIVE_ARRAY_BUFFER_VIEWS&&fails$3$c(function(){var v=new Int8Array$2$2(2);return v.set(1),v.set("2",1),v[0]!==0||v[1]!==2});exportTypedArrayMethod$2$2("set",function v(k){aTypedArray$2$2(this);var ie=toOffset$4(arguments.length>1?arguments[1]:void 0,1),ae=toIndexedObject$g(k);if(WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$2)return call$2$c($set$2,this,ae,ie);var ce=this.length,fe=lengthOfArrayLike$g(ae),le=0;if(fe+ie>ce)throw RangeError$1$2("Wrong length");for(;le0;)v[fe]=v[--fe];fe!==ae++&&(v[fe]=ce)}return v},merge$2=function(v,k,ie,ae){for(var ce=k.length,fe=ie.length,le=0,ve=0;le0&&1/ie<0?1:-1:k>ie}};exportTypedArrayMethod$1$2("sort",function v(k){return k!==void 0&&aCallable$j(k),STABLE_SORT$2?un$Sort$2(this,k):internalSort$2(aTypedArray$1$2(this),getSortCompare$2(k))},!STABLE_SORT$2||ACCEPT_INCORRECT_ARGUMENTS$2);var NATIVE_BIND$f=functionBindNative$c,FunctionPrototype$e=Function.prototype,apply$1$7=FunctionPrototype$e.apply,call$1$c=FunctionPrototype$e.call,functionApply$7=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$f?call$1$c.bind(apply$1$7):function(){return call$1$c.apply(apply$1$7,arguments)}),uncurryThis$1$c=functionUncurryThis$c,arraySlice$1$7=uncurryThis$1$c([].slice),global$1$c=global$h$7,apply$8=functionApply$7,ArrayBufferViewCore$6=arrayBufferViewCore$2,fails$1$c=fails$k$3,arraySlice$a=arraySlice$1$7,Int8Array$1$2=global$1$c.Int8Array,aTypedArray$6=ArrayBufferViewCore$6.aTypedArray,exportTypedArrayMethod$6=ArrayBufferViewCore$6.exportTypedArrayMethod,$toLocaleString$2=[].toLocaleString,TO_LOCALE_STRING_BUG$2=!!Int8Array$1$2&&fails$1$c(function(){$toLocaleString$2.call(new Int8Array$1$2(1))}),FORCED$3=fails$1$c(function(){return[1,2].toLocaleString()!=new Int8Array$1$2([1,2]).toLocaleString()})||!fails$1$c(function(){Int8Array$1$2.prototype.toLocaleString.call([1,2])});exportTypedArrayMethod$6("toLocaleString",function v(){return apply$8($toLocaleString$2,TO_LOCALE_STRING_BUG$2?arraySlice$a(aTypedArray$6(this)):aTypedArray$6(this),arraySlice$a(arguments))},FORCED$3);var DESCRIPTORS$p=descriptors$c,uncurryThis$w=functionUncurryThis$c,call$q=functionCall$c,fails$y=fails$k$3,objectKeys$b=objectKeys$2$6,getOwnPropertySymbolsModule$b=objectGetOwnPropertySymbols$a,propertyIsEnumerableModule$b=objectPropertyIsEnumerable$a,toObject$i=toObject$6$2,IndexedObject$c=indexedObject$a,$assign$8=Object.assign,defineProperty4$1=Object.defineProperty,concat$c=uncurryThis$w([].concat),objectAssign$8=!$assign$8||fails$y(function(){if(DESCRIPTORS$p&&$assign$8({b:1},$assign$8(defineProperty4$1({},"a",{enumerable:!0,get:function(){defineProperty4$1(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},k={},ie=Symbol(),ae="abcdefghijklmnopqrst";return v[ie]=7,ae.split("").forEach(function(ce){k[ce]=ce}),$assign$8({},v)[ie]!=7||objectKeys$b($assign$8({},k)).join("")!=ae})?function v(k,ie){for(var ae=toObject$i(k),ce=arguments.length,fe=1,le=getOwnPropertySymbolsModule$b.f,ve=propertyIsEnumerableModule$b.f;ce>fe;)for(var pe=IndexedObject$c(arguments[fe++]),ye=le?concat$c(objectKeys$b(pe),le(pe)):objectKeys$b(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$p||call$q(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$8,$$h=_export$a,assign2$8=objectAssign$8;$$h({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$8},{assign:assign2$8});function __awaiter$e(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$d="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAAGExJREFUeAHtnQvwblVZxuV2jh3ugpwjV5FrkhWFXGyAIutAIOpUaBdNY5qpMR3LigHKAQd1stEuU0bYhWqmsiQ0bjIySmgIWKiJwAjC4agcLkIeOXo4B6Sep3P2zGa79v7W2nut/d1+78wz3/7WXutd7/qtd9/39/8/5zkYBCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAAC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AAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEyBwP8B2gCjlCsIAoEAAAAASUVORK5CYII=",isInstalled$7=()=>!!window.nearWalletApi,setupMathWalletState=()=>({wallet:window.nearWalletApi}),MathWallet=({metadata:v,options:k,store:ie,provider:ae,logger:ce})=>__awaiter$e(void 0,void 0,void 0,function*(){const fe=setupMathWalletState(),le=()=>__awaiter$e(void 0,void 0,void 0,function*(){const pe=fe.wallet.signer.account;return pe?[{accountId:pe.accountId,publicKey:pe.publicKey}]:[]}),ve=pe=>{const{contract:ye}=ie.getState();if(!ye)throw new Error("Wallet not signed in");const me=getActiveAccount(ie.getState());if(!me)throw new Error("No active account");return pe.map(Ee=>({signerId:Ee.signerId||me.accountId,receiverId:Ee.receiverId||ye.contractId,actions:Ee.actions}))};return{signIn({contractId:pe}){return __awaiter$e(this,void 0,void 0,function*(){const ye=yield le();return ye.length?ye:(yield fe.wallet.login({contractId:pe}),le())})},signOut(){return __awaiter$e(this,void 0,void 0,function*(){yield fe.wallet.logout()})},getAccounts(){return __awaiter$e(this,void 0,void 0,function*(){return le()})},verifyOwner({message:pe}){return __awaiter$e(this,void 0,void 0,function*(){ce.log("MathWallet:verifyOwner",{message:pe});const ye=getActiveAccount(ie.getState());if(!ye)throw new Error("No active account");const me=ye.accountId,Ee=yield fe.wallet.signer.getPublicKey(me),cr=yield ae.block({finality:"final"}),Br={accountId:me,message:pe,blockId:cr.header.hash,publicKey:Buffer.from(Ee.data).toString("base64"),keyType:Ee.keyType};throw JSON.stringify(Br),new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction({signerId:pe,receiverId:ye,actions:me}){return __awaiter$e(this,void 0,void 0,function*(){ce.log("signAndSendTransaction",{signerId:pe,receiverId:ye,actions:me});const Ee=yield signTransactions(ve([{signerId:pe,receiverId:ye,actions:me}]),fe.wallet.signer,k.network);return ae.sendTransaction(Ee[0])})},signAndSendTransactions({transactions:pe}){return __awaiter$e(this,void 0,void 0,function*(){ce.log("signAndSendTransactions",{transactions:pe});const ye=yield signTransactions(ve(pe),fe.wallet.signer,k.network);ce.log("signAndSendTransactions:signedTransactions",ye);const me=[];for(let Ee=0;Ee()=>__awaiter$e(void 0,void 0,void 0,function*(){if((0,import_is_mobile$8.isMobile)())return null;const ae=yield isInstalled$7();return{id:"math-wallet",type:"injected",metadata:{name:"Math Wallet",description:"World's First Insured Crypto Wallet.",iconUrl:v,downloadUrl:"https://chrome.google.com/webstore/detail/math-wallet/afbcbjpbpfadlkmhmclhkeeodmamcflc",deprecated:k,available:ae},init:MathWallet}}),import_is_mobile$7=__toESM(require_is_mobile(),1),nearAPI$6=__toESM(require_browser_index2$1(),1),commonjsGlobal$c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$b$6=function(v){try{return!!v()}catch{return!0}},fails$a$8=fails$b$6,descriptors$b=!fails$a$8(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$9$9=fails$b$6,functionBindNative$b=!fails$9$9(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$1$b=functionBindNative$b,FunctionPrototype$1$b=Function.prototype,bind$g=FunctionPrototype$1$b.bind,call$6$8=FunctionPrototype$1$b.call,uncurryThis$a$9=NATIVE_BIND$1$b&&bind$g.bind(call$6$8,call$6$8),functionUncurryThis$b=NATIVE_BIND$1$b?function(v){return v&&uncurryThis$a$9(v)}:function(v){return v&&function(){return call$6$8.apply(v,arguments)}},$TypeError$6$7=TypeError,requireObjectCoercible$2$9=function(v){if(v==null)throw $TypeError$6$7("Can't call method on "+v);return v},requireObjectCoercible$1$b=requireObjectCoercible$2$9,$Object$4$6=Object,toObject$2$8=function(v){return $Object$4$6(requireObjectCoercible$1$b(v))},uncurryThis$9$9=functionUncurryThis$b,toObject$1$b=toObject$2$8,hasOwnProperty$b=uncurryThis$9$9({}.hasOwnProperty),hasOwnProperty_1$b=Object.hasOwn||function v(k,ie){return hasOwnProperty$b(toObject$1$b(k),ie)},DESCRIPTORS$8$6=descriptors$b,hasOwn$9$6=hasOwnProperty_1$b,FunctionPrototype$d=Function.prototype,getDescriptor$b=DESCRIPTORS$8$6&&Object.getOwnPropertyDescriptor,EXISTS$1$b=hasOwn$9$6(FunctionPrototype$d,"name"),PROPER$b=EXISTS$1$b&&function v(){}.name==="something",CONFIGURABLE$1$b=EXISTS$1$b&&(!DESCRIPTORS$8$6||DESCRIPTORS$8$6&&getDescriptor$b(FunctionPrototype$d,"name").configurable),functionName$b={EXISTS:EXISTS$1$b,PROPER:PROPER$b,CONFIGURABLE:CONFIGURABLE$1$b},isCallable$f$7=function(v){return typeof v=="function"},objectDefineProperty$b={},check$b=function(v){return v&&v.Math==Math&&v},global$b$7=check$b(typeof globalThis=="object"&&globalThis)||check$b(typeof window=="object"&&window)||check$b(typeof self=="object"&&self)||check$b(typeof commonjsGlobal$c=="object"&&commonjsGlobal$c)||function(){return this}()||Function("return this")(),isCallable$e$7=isCallable$f$7,isObject$5$b=function(v){return typeof v=="object"?v!==null:isCallable$e$7(v)},global$a$9=global$b$7,isObject$4$b=isObject$5$b,document$1$7=global$a$9.document,EXISTS$c=isObject$4$b(document$1$7)&&isObject$4$b(document$1$7.createElement),documentCreateElement$2$6=function(v){return EXISTS$c?document$1$7.createElement(v):{}},DESCRIPTORS$7$9=descriptors$b,fails$8$9=fails$b$6,createElement$c=documentCreateElement$2$6,ie8DomDefine$b=!DESCRIPTORS$7$9&&!fails$8$9(function(){return Object.defineProperty(createElement$c("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$6$9=descriptors$b,fails$7$b=fails$b$6,v8PrototypeDefineBug$b=DESCRIPTORS$6$9&&fails$7$b(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$3$b=isObject$5$b,$String$3$6=String,$TypeError$5$b=TypeError,anObject$7$7=function(v){if(isObject$3$b(v))return v;throw $TypeError$5$b($String$3$6(v)+" is not an object")},NATIVE_BIND$e=functionBindNative$b,call$5$9=Function.prototype.call,functionCall$b=NATIVE_BIND$e?call$5$9.bind(call$5$9):function(){return call$5$9.apply(call$5$9,arguments)},global$9$b=global$b$7,isCallable$d$7=isCallable$f$7,aFunction$b=function(v){return isCallable$d$7(v)?v:void 0},getBuiltIn$4$7=function(v,k){return arguments.length<2?aFunction$b(global$9$b[v]):global$9$b[v]&&global$9$b[v][k]},uncurryThis$8$9=functionUncurryThis$b,objectIsPrototypeOf$b=uncurryThis$8$9({}.isPrototypeOf),getBuiltIn$3$9=getBuiltIn$4$7,engineUserAgent$b=getBuiltIn$3$9("navigator","userAgent")||"",global$8$b=global$b$7,userAgent$e=engineUserAgent$b,process$c=global$8$b.process,Deno$7=global$8$b.Deno,versions$b=process$c&&process$c.versions||Deno$7&&Deno$7.version,v8$b=versions$b&&versions$b.v8,match$b,version$b;v8$b&&(match$b=v8$b.split("."),version$b=match$b[0]>0&&match$b[0]<4?1:+(match$b[0]+match$b[1]));!version$b&&userAgent$e&&(match$b=userAgent$e.match(/Edge\/(\d+)/),(!match$b||match$b[1]>=74)&&(match$b=userAgent$e.match(/Chrome\/(\d+)/),match$b&&(version$b=+match$b[1])));var engineV8Version$b=version$b,V8_VERSION$c=engineV8Version$b,fails$6$b=fails$b$6,nativeSymbol$b=!!Object.getOwnPropertySymbols&&!fails$6$b(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$c&&V8_VERSION$c<41}),NATIVE_SYMBOL$1$b=nativeSymbol$b,useSymbolAsUid$b=NATIVE_SYMBOL$1$b&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$2$b=getBuiltIn$4$7,isCallable$c$7=isCallable$f$7,isPrototypeOf$1$a=objectIsPrototypeOf$b,USE_SYMBOL_AS_UID$1$b=useSymbolAsUid$b,$Object$3$8=Object,isSymbol$2$b=USE_SYMBOL_AS_UID$1$b?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$2$b("Symbol");return isCallable$c$7(k)&&isPrototypeOf$1$a(k.prototype,$Object$3$8(v))},$String$2$a=String,tryToString$1$b=function(v){try{return $String$2$a(v)}catch{return"Object"}},isCallable$b$8=isCallable$f$7,tryToString$f=tryToString$1$b,$TypeError$4$b=TypeError,aCallable$1$b=function(v){if(isCallable$b$8(v))return v;throw $TypeError$4$b(tryToString$f(v)+" is not a function")},aCallable$i=aCallable$1$b,getMethod$1$b=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$i(ie)},call$4$b=functionCall$b,isCallable$a$b=isCallable$f$7,isObject$2$b=isObject$5$b,$TypeError$3$b=TypeError,ordinaryToPrimitive$1$b=function(v,k){var ie,ae;if(k==="string"&&isCallable$a$b(ie=v.toString)&&!isObject$2$b(ae=call$4$b(ie,v))||isCallable$a$b(ie=v.valueOf)&&!isObject$2$b(ae=call$4$b(ie,v))||k!=="string"&&isCallable$a$b(ie=v.toString)&&!isObject$2$b(ae=call$4$b(ie,v)))return ae;throw $TypeError$3$b("Can't convert object to primitive value")},shared$3$b={exports:{}},global$7$b=global$b$7,defineProperty$4$6=Object.defineProperty,defineGlobalProperty$3$9=function(v,k){try{defineProperty$4$6(global$7$b,v,{value:k,configurable:!0,writable:!0})}catch{global$7$b[v]=k}return k},global$6$b=global$b$7,defineGlobalProperty$2$b=defineGlobalProperty$3$9,SHARED$b="__core-js_shared__",store$3$b=global$6$b[SHARED$b]||defineGlobalProperty$2$b(SHARED$b,{}),sharedStore$b=store$3$b,store$2$b=sharedStore$b;(shared$3$b.exports=function(v,k){return store$2$b[v]||(store$2$b[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var uncurryThis$7$9=functionUncurryThis$b,id$d=0,postfix$b=Math.random(),toString$2$9=uncurryThis$7$9(1 .toString),uid$2$b=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$2$9(++id$d+postfix$b,36)},global$5$b=global$b$7,shared$2$b=shared$3$b.exports,hasOwn$8$7=hasOwnProperty_1$b,uid$1$b=uid$2$b,NATIVE_SYMBOL$c=nativeSymbol$b,USE_SYMBOL_AS_UID$c=useSymbolAsUid$b,WellKnownSymbolsStore$b=shared$2$b("wks"),Symbol$1$b=global$5$b.Symbol,symbolFor$b=Symbol$1$b&&Symbol$1$b.for,createWellKnownSymbol$b=USE_SYMBOL_AS_UID$c?Symbol$1$b:Symbol$1$b&&Symbol$1$b.withoutSetter||uid$1$b,wellKnownSymbol$8$7=function(v){if(!hasOwn$8$7(WellKnownSymbolsStore$b,v)||!(NATIVE_SYMBOL$c||typeof WellKnownSymbolsStore$b[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$c&&hasOwn$8$7(Symbol$1$b,v)?WellKnownSymbolsStore$b[v]=Symbol$1$b[v]:USE_SYMBOL_AS_UID$c&&symbolFor$b?WellKnownSymbolsStore$b[v]=symbolFor$b(k):WellKnownSymbolsStore$b[v]=createWellKnownSymbol$b(k)}return WellKnownSymbolsStore$b[v]},call$3$b=functionCall$b,isObject$1$b=isObject$5$b,isSymbol$1$b=isSymbol$2$b,getMethod$e=getMethod$1$b,ordinaryToPrimitive$c=ordinaryToPrimitive$1$b,wellKnownSymbol$7$7=wellKnownSymbol$8$7,$TypeError$2$b=TypeError,TO_PRIMITIVE$b=wellKnownSymbol$7$7("toPrimitive"),toPrimitive$1$b=function(v,k){if(!isObject$1$b(v)||isSymbol$1$b(v))return v;var ie=getMethod$e(v,TO_PRIMITIVE$b),ae;if(ie){if(k===void 0&&(k="default"),ae=call$3$b(ie,v,k),!isObject$1$b(ae)||isSymbol$1$b(ae))return ae;throw $TypeError$2$b("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$c(v,k)},toPrimitive$d=toPrimitive$1$b,isSymbol$e=isSymbol$2$b,toPropertyKey$2$9=function(v){var k=toPrimitive$d(v,"string");return isSymbol$e(k)?k:k+""},DESCRIPTORS$5$b=descriptors$b,IE8_DOM_DEFINE$1$9=ie8DomDefine$b,V8_PROTOTYPE_DEFINE_BUG$1$6=v8PrototypeDefineBug$b,anObject$6$7=anObject$7$7,toPropertyKey$1$b=toPropertyKey$2$9,$TypeError$1$b=TypeError,$defineProperty$b=Object.defineProperty,$getOwnPropertyDescriptor$1$9=Object.getOwnPropertyDescriptor,ENUMERABLE$b="enumerable",CONFIGURABLE$c="configurable",WRITABLE$b="writable";objectDefineProperty$b.f=DESCRIPTORS$5$b?V8_PROTOTYPE_DEFINE_BUG$1$6?function v(k,ie,ae){if(anObject$6$7(k),ie=toPropertyKey$1$b(ie),anObject$6$7(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$b in ae&&!ae[WRITABLE$b]){var ce=$getOwnPropertyDescriptor$1$9(k,ie);ce&&ce[WRITABLE$b]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$c in ae?ae[CONFIGURABLE$c]:ce[CONFIGURABLE$c],enumerable:ENUMERABLE$b in ae?ae[ENUMERABLE$b]:ce[ENUMERABLE$b],writable:!1})}return $defineProperty$b(k,ie,ae)}:$defineProperty$b:function v(k,ie,ae){if(anObject$6$7(k),ie=toPropertyKey$1$b(ie),anObject$6$7(ae),IE8_DOM_DEFINE$1$9)try{return $defineProperty$b(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$1$b("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var makeBuiltIn$2$b={exports:{}},uncurryThis$6$b=functionUncurryThis$b,isCallable$9$b=isCallable$f$7,store$1$b=sharedStore$b,functionToString$b=uncurryThis$6$b(Function.toString);isCallable$9$b(store$1$b.inspectSource)||(store$1$b.inspectSource=function(v){return functionToString$b(v)});var inspectSource$2$b=store$1$b.inspectSource,global$4$b=global$b$7,isCallable$8$b=isCallable$f$7,inspectSource$1$b=inspectSource$2$b,WeakMap$1$b=global$4$b.WeakMap,nativeWeakMap$b=isCallable$8$b(WeakMap$1$b)&&/native code/.test(inspectSource$1$b(WeakMap$1$b)),createPropertyDescriptor$3$6=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$4$b=descriptors$b,definePropertyModule$3$7=objectDefineProperty$b,createPropertyDescriptor$2$9=createPropertyDescriptor$3$6,createNonEnumerableProperty$4$6=DESCRIPTORS$4$b?function(v,k,ie){return definePropertyModule$3$7.f(v,k,createPropertyDescriptor$2$9(1,ie))}:function(v,k,ie){return v[k]=ie,v},shared$1$b=shared$3$b.exports,uid$e=uid$2$b,keys$9=shared$1$b("keys"),sharedKey$3$6=function(v){return keys$9[v]||(keys$9[v]=uid$e(v))},hiddenKeys$4$6={},NATIVE_WEAK_MAP$b=nativeWeakMap$b,global$3$b=global$b$7,uncurryThis$5$b=functionUncurryThis$b,isObject$m=isObject$5$b,createNonEnumerableProperty$3$6=createNonEnumerableProperty$4$6,hasOwn$7$8=hasOwnProperty_1$b,shared$e=sharedStore$b,sharedKey$2$6=sharedKey$3$6,hiddenKeys$3$9=hiddenKeys$4$6,OBJECT_ALREADY_INITIALIZED$b="Object already initialized",TypeError$1$b=global$3$b.TypeError,WeakMap$d=global$3$b.WeakMap,set$c,get$c,has$b,enforce$b=function(v){return has$b(v)?get$c(v):set$c(v,{})},getterFor$b=function(v){return function(k){var ie;if(!isObject$m(k)||(ie=get$c(k)).type!==v)throw TypeError$1$b("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$b||shared$e.state?(store$e=shared$e.state||(shared$e.state=new WeakMap$d),wmget$b=uncurryThis$5$b(store$e.get),wmhas$b=uncurryThis$5$b(store$e.has),wmset$b=uncurryThis$5$b(store$e.set),set$c=function(v,k){if(wmhas$b(store$e,v))throw new TypeError$1$b(OBJECT_ALREADY_INITIALIZED$b);return k.facade=v,wmset$b(store$e,v,k),k},get$c=function(v){return wmget$b(store$e,v)||{}},has$b=function(v){return wmhas$b(store$e,v)}):(STATE$b=sharedKey$2$6("state"),hiddenKeys$3$9[STATE$b]=!0,set$c=function(v,k){if(hasOwn$7$8(v,STATE$b))throw new TypeError$1$b(OBJECT_ALREADY_INITIALIZED$b);return k.facade=v,createNonEnumerableProperty$3$6(v,STATE$b,k),k},get$c=function(v){return hasOwn$7$8(v,STATE$b)?v[STATE$b]:{}},has$b=function(v){return hasOwn$7$8(v,STATE$b)});var store$e,wmget$b,wmhas$b,wmset$b,STATE$b,internalState$b={set:set$c,get:get$c,has:has$b,enforce:enforce$b,getterFor:getterFor$b},fails$5$b=fails$b$6,isCallable$7$b=isCallable$f$7,hasOwn$6$9=hasOwnProperty_1$b,DESCRIPTORS$3$b=descriptors$b,CONFIGURABLE_FUNCTION_NAME$1$6=functionName$b.CONFIGURABLE,inspectSource$f=inspectSource$2$b,InternalStateModule$1$7=internalState$b,enforceInternalState$d=InternalStateModule$1$7.enforce,getInternalState$1$6=InternalStateModule$1$7.get,defineProperty$3$6=Object.defineProperty,CONFIGURABLE_LENGTH$b=DESCRIPTORS$3$b&&!fails$5$b(function(){return defineProperty$3$6(function(){},"length",{value:8}).length!==8}),TEMPLATE$b=String(String).split("String"),makeBuiltIn$1$b=makeBuiltIn$2$b.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$6$9(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$6&&v.name!==k)&&(DESCRIPTORS$3$b?defineProperty$3$6(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$b&&ie&&hasOwn$6$9(ie,"arity")&&v.length!==ie.arity&&defineProperty$3$6(v,"length",{value:ie.arity});try{ie&&hasOwn$6$9(ie,"constructor")&&ie.constructor?DESCRIPTORS$3$b&&defineProperty$3$6(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$d(v);return hasOwn$6$9(ae,"source")||(ae.source=TEMPLATE$b.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$b(function v(){return isCallable$7$b(this)&&getInternalState$1$6(this).source||inspectSource$f(this)},"toString");var isCallable$6$b=isCallable$f$7,definePropertyModule$2$9=objectDefineProperty$b,makeBuiltIn$d=makeBuiltIn$2$b.exports,defineGlobalProperty$1$b=defineGlobalProperty$3$9,defineBuiltIn$4$6=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$6$b(ie)&&makeBuiltIn$d(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$b(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$2$9.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},wellKnownSymbol$6$7=wellKnownSymbol$8$7,TO_STRING_TAG$3$6=wellKnownSymbol$6$7("toStringTag"),test$a={};test$a[TO_STRING_TAG$3$6]="z";var toStringTagSupport$a=String(test$a)==="[object z]",uncurryThis$4$b=functionUncurryThis$b,toString$1$b=uncurryThis$4$b({}.toString),stringSlice$b=uncurryThis$4$b("".slice),classofRaw$1$a=function(v){return stringSlice$b(toString$1$b(v),8,-1)},TO_STRING_TAG_SUPPORT$a=toStringTagSupport$a,isCallable$5$b=isCallable$f$7,classofRaw$c=classofRaw$1$a,wellKnownSymbol$5$7=wellKnownSymbol$8$7,TO_STRING_TAG$2$7=wellKnownSymbol$5$7("toStringTag"),$Object$2$b=Object,CORRECT_ARGUMENTS$a=classofRaw$c(function(){return arguments}())=="Arguments",tryGet$a=function(v,k){try{return v[k]}catch{}},classof$2$8=TO_STRING_TAG_SUPPORT$a?classofRaw$c:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$a(k=$Object$2$b(v),TO_STRING_TAG$2$7))=="string"?ie:CORRECT_ARGUMENTS$a?classofRaw$c(k):(ae=classofRaw$c(k))=="Object"&&isCallable$5$b(k.callee)?"Arguments":ae},classof$1$a=classof$2$8,$String$1$b=String,toString2$9=function(v){if(classof$1$a(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$1$b(v)},anObject$5$7=anObject$7$7,regexpFlags$9=function(){var v=anObject$5$7(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$2$b=functionCall$b,hasOwn$5$9=hasOwnProperty_1$b,isPrototypeOf$f=objectIsPrototypeOf$b,regExpFlags$9=regexpFlags$9,RegExpPrototype$1$9=RegExp.prototype,regexpGetFlags$9=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$9)&&!hasOwn$5$9(v,"flags")&&isPrototypeOf$f(RegExpPrototype$1$9,v)?call$2$b(regExpFlags$9,v):k},PROPER_FUNCTION_NAME$1$6=functionName$b.PROPER,defineBuiltIn$3$7=defineBuiltIn$4$6,anObject$4$8=anObject$7$7,$toString$9=toString2$9,fails$4$b=fails$b$6,getRegExpFlags$9=regexpGetFlags$9,TO_STRING$9="toString",RegExpPrototype$a=RegExp.prototype,n$ToString$9=RegExpPrototype$a[TO_STRING$9],NOT_GENERIC$9=fails$4$b(function(){return n$ToString$9.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$9=PROPER_FUNCTION_NAME$1$6&&n$ToString$9.name!=TO_STRING$9;(NOT_GENERIC$9||INCORRECT_NAME$9)&&defineBuiltIn$3$7(RegExp.prototype,TO_STRING$9,function(){var k=anObject$4$8(this),ie=$toString$9(k.source),ae=$toString$9(getRegExpFlags$9(k));return"/"+ie+"/"+ae},{unsafe:!0});var uncurryThis$3$b=functionUncurryThis$b,fails$3$b=fails$b$6,classof$j=classofRaw$1$a,$Object$1$b=Object,split$9=uncurryThis$3$b("".split),indexedObject$9=fails$3$b(function(){return!$Object$1$b("z").propertyIsEnumerable(0)})?function(v){return classof$j(v)=="String"?split$9(v,""):$Object$1$b(v)}:$Object$1$b,IndexedObject$b=indexedObject$9,requireObjectCoercible$d=requireObjectCoercible$2$9,toIndexedObject$5$6=function(v){return IndexedObject$b(requireObjectCoercible$d(v))},objectDefineProperties$6={},ceil$9=Math.ceil,floor$c=Math.floor,mathTrunc$9=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$c:ceil$9)(ie)},trunc2$9=mathTrunc$9,toIntegerOrInfinity$2$9=function(v){var k=+v;return k!==k||k===0?0:trunc2$9(k)},toIntegerOrInfinity$1$9=toIntegerOrInfinity$2$9,max$a=Math.max,min$1$9=Math.min,toAbsoluteIndex$1$9=function(v,k){var ie=toIntegerOrInfinity$1$9(v);return ie<0?max$a(ie+k,0):min$1$9(ie,k)},toIntegerOrInfinity$e=toIntegerOrInfinity$2$9,min$a=Math.min,toLength$1$9=function(v){return v>0?min$a(toIntegerOrInfinity$e(v),9007199254740991):0},toLength$e=toLength$1$9,lengthOfArrayLike$1$9=function(v){return toLength$e(v.length)},toIndexedObject$4$6=toIndexedObject$5$6,toAbsoluteIndex$d=toAbsoluteIndex$1$9,lengthOfArrayLike$f=lengthOfArrayLike$1$9,createMethod$a=function(v){return function(k,ie,ae){var ce=toIndexedObject$4$6(k),fe=lengthOfArrayLike$f(ce),le=toAbsoluteIndex$d(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$9={includes:createMethod$a(!0),indexOf:createMethod$a(!1)},uncurryThis$2$b=functionUncurryThis$b,hasOwn$4$b=hasOwnProperty_1$b,toIndexedObject$3$9=toIndexedObject$5$6,indexOf$9=arrayIncludes$9.indexOf,hiddenKeys$2$9=hiddenKeys$4$6,push$a=uncurryThis$2$b([].push),objectKeysInternal$9=function(v,k){var ie=toIndexedObject$3$9(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$4$b(hiddenKeys$2$9,fe)&&hasOwn$4$b(ie,fe)&&push$a(ce,fe);for(;k.length>ae;)hasOwn$4$b(ie,fe=k[ae++])&&(~indexOf$9(ce,fe)||push$a(ce,fe));return ce},enumBugKeys$3$6=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$8=objectKeysInternal$9,enumBugKeys$2$8=enumBugKeys$3$6,objectKeys$1$8=Object.keys||function v(k){return internalObjectKeys$1$8(k,enumBugKeys$2$8)},DESCRIPTORS$2$b=descriptors$b,V8_PROTOTYPE_DEFINE_BUG$c=v8PrototypeDefineBug$b,definePropertyModule$1$b=objectDefineProperty$b,anObject$3$a=anObject$7$7,toIndexedObject$2$9=toIndexedObject$5$6,objectKeys$a=objectKeys$1$8;objectDefineProperties$6.f=DESCRIPTORS$2$b&&!V8_PROTOTYPE_DEFINE_BUG$c?Object.defineProperties:function v(k,ie){anObject$3$a(k);for(var ae=toIndexedObject$2$9(ie),ce=objectKeys$a(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$1$b.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$1$b=getBuiltIn$4$7,html$1$7=getBuiltIn$1$b("document","documentElement"),anObject$2$b=anObject$7$7,definePropertiesModule$6=objectDefineProperties$6,enumBugKeys$1$9=enumBugKeys$3$6,hiddenKeys$1$9=hiddenKeys$4$6,html$8=html$1$7,documentCreateElement$1$6=documentCreateElement$2$6,sharedKey$1$b=sharedKey$3$6,GT$6=">",LT$6="<",PROTOTYPE$7="prototype",SCRIPT$6="script",IE_PROTO$1$6=sharedKey$1$b("IE_PROTO"),EmptyConstructor$6=function(){},scriptTag$6=function(v){return LT$6+SCRIPT$6+GT$6+v+LT$6+"/"+SCRIPT$6+GT$6},NullProtoObjectViaActiveX$6=function(v){v.write(scriptTag$6("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$6=function(){var v=documentCreateElement$1$6("iframe"),k="java"+SCRIPT$6+":",ie;return v.style.display="none",html$8.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$6("document.F=Object")),ie.close(),ie.F},activeXDocument$6,NullProtoObject$6=function(){try{activeXDocument$6=new ActiveXObject("htmlfile")}catch{}NullProtoObject$6=typeof document<"u"?document.domain&&activeXDocument$6?NullProtoObjectViaActiveX$6(activeXDocument$6):NullProtoObjectViaIFrame$6():NullProtoObjectViaActiveX$6(activeXDocument$6);for(var v=enumBugKeys$1$9.length;v--;)delete NullProtoObject$6[PROTOTYPE$7][enumBugKeys$1$9[v]];return NullProtoObject$6()};hiddenKeys$1$9[IE_PROTO$1$6]=!0;var objectCreate$6=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$6[PROTOTYPE$7]=anObject$2$b(k),ae=new EmptyConstructor$6,EmptyConstructor$6[PROTOTYPE$7]=null,ae[IE_PROTO$1$6]=k):ae=NullProtoObject$6(),ie===void 0?ae:definePropertiesModule$6.f(ae,ie)},wellKnownSymbol$4$7=wellKnownSymbol$8$7,create$1$6=objectCreate$6,defineProperty$2$9=objectDefineProperty$b.f,UNSCOPABLES$6=wellKnownSymbol$4$7("unscopables"),ArrayPrototype$8=Array.prototype;ArrayPrototype$8[UNSCOPABLES$6]==null&&defineProperty$2$9(ArrayPrototype$8,UNSCOPABLES$6,{configurable:!0,value:create$1$6(null)});var addToUnscopables$1$6=function(v){ArrayPrototype$8[UNSCOPABLES$6][v]=!0},iterators$7={},objectGetOwnPropertyDescriptor$9={},objectPropertyIsEnumerable$9={},$propertyIsEnumerable$9={}.propertyIsEnumerable,getOwnPropertyDescriptor$1$9=Object.getOwnPropertyDescriptor,NASHORN_BUG$9=getOwnPropertyDescriptor$1$9&&!$propertyIsEnumerable$9.call({1:2},1);objectPropertyIsEnumerable$9.f=NASHORN_BUG$9?function v(k){var ie=getOwnPropertyDescriptor$1$9(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$9;var DESCRIPTORS$1$b=descriptors$b,call$1$b=functionCall$b,propertyIsEnumerableModule$a=objectPropertyIsEnumerable$9,createPropertyDescriptor$1$b=createPropertyDescriptor$3$6,toIndexedObject$1$9=toIndexedObject$5$6,toPropertyKey$f=toPropertyKey$2$9,hasOwn$3$b=hasOwnProperty_1$b,IE8_DOM_DEFINE$c=ie8DomDefine$b,$getOwnPropertyDescriptor$c=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$9.f=DESCRIPTORS$1$b?$getOwnPropertyDescriptor$c:function v(k,ie){if(k=toIndexedObject$1$9(k),ie=toPropertyKey$f(ie),IE8_DOM_DEFINE$c)try{return $getOwnPropertyDescriptor$c(k,ie)}catch{}if(hasOwn$3$b(k,ie))return createPropertyDescriptor$1$b(!call$1$b(propertyIsEnumerableModule$a.f,k,ie),k[ie])};var objectGetOwnPropertyNames$9={},internalObjectKeys$a=objectKeysInternal$9,enumBugKeys$c=enumBugKeys$3$6,hiddenKeys$d=enumBugKeys$c.concat("length","prototype");objectGetOwnPropertyNames$9.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$a(k,hiddenKeys$d)};var objectGetOwnPropertySymbols$9={};objectGetOwnPropertySymbols$9.f=Object.getOwnPropertySymbols;var getBuiltIn$j=getBuiltIn$4$7,uncurryThis$1$b=functionUncurryThis$b,getOwnPropertyNamesModule$9=objectGetOwnPropertyNames$9,getOwnPropertySymbolsModule$a=objectGetOwnPropertySymbols$9,anObject$1$b=anObject$7$7,concat$b=uncurryThis$1$b([].concat),ownKeys$1$9=getBuiltIn$j("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$9.f(anObject$1$b(k)),ae=getOwnPropertySymbolsModule$a.f;return ae?concat$b(ie,ae(k)):ie},hasOwn$2$b=hasOwnProperty_1$b,ownKeys2$9=ownKeys$1$9,getOwnPropertyDescriptorModule$a=objectGetOwnPropertyDescriptor$9,definePropertyModule$h=objectDefineProperty$b,copyConstructorProperties$1$9=function(v,k,ie){for(var ae=ownKeys2$9(k),ce=definePropertyModule$h.f,fe=getOwnPropertyDescriptorModule$a.f,le=0;le=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$6=Iterators$b.Arguments=Iterators$b.Array;addToUnscopables$7("keys");addToUnscopables$7("values");addToUnscopables$7("entries");if(DESCRIPTORS$o&&values$6.name!=="values")try{defineProperty3$a(values$6,"name",{value:"values"})}catch(v){}var domIterables$5={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$c=documentCreateElement$2$6,classList$5=documentCreateElement$c("span").classList,DOMTokenListPrototype$1$5=classList$5&&classList$5.constructor&&classList$5.constructor.prototype,domTokenListPrototype$5=DOMTokenListPrototype$1$5===Object.prototype?void 0:DOMTokenListPrototype$1$5,global$1$b=global$b$7,DOMIterables$5=domIterables$5,DOMTokenListPrototype$6=domTokenListPrototype$5,ArrayIteratorMethods$5=es_array_iterator$5,createNonEnumerableProperty$h=createNonEnumerableProperty$4$6,wellKnownSymbol$p=wellKnownSymbol$8$7,ITERATOR$b=wellKnownSymbol$p("iterator"),TO_STRING_TAG$d=wellKnownSymbol$p("toStringTag"),ArrayValues$5=ArrayIteratorMethods$5.values,handlePrototype$5=function(v,k){if(v){if(v[ITERATOR$b]!==ArrayValues$5)try{createNonEnumerableProperty$h(v,ITERATOR$b,ArrayValues$5)}catch{v[ITERATOR$b]=ArrayValues$5}if(v[TO_STRING_TAG$d]||createNonEnumerableProperty$h(v,TO_STRING_TAG$d,k),DOMIterables$5[k]){for(var ie in ArrayIteratorMethods$5)if(v[ie]!==ArrayIteratorMethods$5[ie])try{createNonEnumerableProperty$h(v,ie,ArrayIteratorMethods$5[ie])}catch{v[ie]=ArrayIteratorMethods$5[ie]}}}};for(COLLECTION_NAME$5 in DOMIterables$5)handlePrototype$5(global$1$b[COLLECTION_NAME$5]&&global$1$b[COLLECTION_NAME$5].prototype,COLLECTION_NAME$5);var COLLECTION_NAME$5;handlePrototype$5(DOMTokenListPrototype$6,"DOMTokenList");function __awaiter$d(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABGdBTUEAALGPC/xhBQAACklpQ0NQc1JHQiBJRUM2MTk2Ni0yLjEAAEiJnVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2Mkc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eJElTRCl1d3/okKJsjOCqz7uYf77E7dba/s8f91Ffr/PxC6EjctNS4ZYbXVzetVHFm29bPLfC5MOdFoUFgoz0pL78dWgr33G7C3ZKAPwsA25wsoJwCKF/6o4pmltgwjjJeedKLphncOiwxaYPFA2NXSlmMvUuZuPKJGvfMfn7WxY7dlp4PITNB5BAXgMWOFW40wIA2mCUtFXEE9lDGhSNTXqL1ymTtbexzwQUuNxw5IhiyzYdvJqRrnWJUPkAEszdxGjhi5RECADosesZ9E7lSUMIPZdva4eOdnUiaFApvbKYliZwG0lV8vwcB76CztngKInai/UdYDLwBHBjguoMwr9PX2aG9tYNeU6C2xSClcCtJMgDK5GO9u3A14DPAocTWO9goQX9cXyeBLrfJSPS4hXgNOAPSah7oLIS3UMuS3TFyQq1aQAWAtPREUgfVzYB89BffVIW1ZIda7UZbda8FtiV3KYklIPAN7HZqhcLyRYAP8uBicDVwIYkt8VJPkJPi8cBS5PcFmDgCICf59Ari9eS5C/DZjajHWonoT2pkhjNEEiipoHRsrzrZz5wCTrIoSCpLYqeRuBP6Lm84/P5WEmUIShe0tHrCtegzaIDVXABVqOF90WS7CMRCQP5Qfakle5eoRi4GPgEMAs4PYntAq28bkSnX38NHZE7aBgsPUBfTEGbms9BTysnAx6H6jLRitz76Be+ruv3Qctg6QH6YlvXz2+6/i5AzygmAROAUqAQyAKygRQgDeidBM6H9q/rQDteNKEtclVAOdoDZwd6CnfS8P9uV4QPHOBjVAAAAABJRU5ErkJggg==",setupNightlyState=(v,k)=>__awaiter$d(void 0,void 0,void 0,function*(){const{selectedWalletId:ie}=v.getState(),ae=window.nightly.near;return ie==="nightly"&&(yield ae.connect(ce=>{ce?k.emit("accountsChanged",{accounts:[{accountId:ce.accountId,publicKey:ae.account.publicKey.toString()}]}):k.emit("signedOut",null)},!0).catch(()=>null)),{wallet:ae}}),isInstalled$6=()=>waitFor(()=>{var v;return!!(!((v=window.nightly)===null||v===void 0)&&v.near)}).catch(()=>!1),Nightly=({metadata:v,options:k,store:ie,logger:ae,provider:ce,emitter:fe})=>__awaiter$d(void 0,void 0,void 0,function*(){const le=yield setupNightlyState(ie,fe),ve=()=>{const{accountId:me,publicKey:Ee}=le.wallet.account;return me?[{accountId:me,publicKey:Ee.toString()}]:[]},pe=me=>{const Ee=ve(),{contract:cr}=ie.getState();if(!Ee.length||!cr)throw new Error("Wallet not signed in");return me.map(Br=>({signerId:Br.signerId||Ee[0].accountId,receiverId:Br.receiverId||cr.contractId,actions:Br.actions}))},ye={createKey:()=>{throw new Error("Not implemented")},getPublicKey:me=>__awaiter$d(void 0,void 0,void 0,function*(){const cr=ve().find(Br=>Br.accountId===me);if(!cr)throw new Error("Failed to find public key for account");return nearAPI$6.utils.PublicKey.from(cr.publicKey)}),signMessage:(me,Ee)=>__awaiter$d(void 0,void 0,void 0,function*(){if(!ve().find($r=>$r.accountId===Ee))throw new Error("Failed to find account for signing");try{const $r=nearAPI$6.transactions.Transaction.decode(Buffer.from(me));return{signature:(yield le.wallet.signTransaction($r)).signature.data,publicKey:$r.publicKey}}catch($r){throw ae.log("Failed to sign message"),ae.error($r),Error("Invalid message. Only transactions can be signed")}})};return{signIn(){return __awaiter$d(this,void 0,void 0,function*(){const me=ve();return me.length?me:(yield le.wallet.connect(Ee=>{Ee?fe.emit("accountsChanged",{accounts:[{accountId:Ee.accountId,publicKey:le.wallet.account.publicKey.toString()}]}):fe.emit("signedOut",null)}),ve())})},signOut(){return __awaiter$d(this,void 0,void 0,function*(){yield le.wallet.disconnect()})},getAccounts(){return __awaiter$d(this,void 0,void 0,function*(){return ve()})},verifyOwner({message:me}){return __awaiter$d(this,void 0,void 0,function*(){throw ae.log("Nightly:verifyOwner",{message:me}),new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction({signerId:me,receiverId:Ee,actions:cr}){return __awaiter$d(this,void 0,void 0,function*(){ae.log("signAndSendTransaction",{signerId:me,receiverId:Ee,actions:cr});const{contract:Br}=ie.getState();if(!ve().length||!Br)throw new Error("Wallet not signed in");const[Pr]=yield signTransactions(pe([{signerId:me,receiverId:Ee,actions:cr}]),ye,k.network);return ce.sendTransaction(Pr)})},signAndSendTransactions({transactions:me}){return __awaiter$d(this,void 0,void 0,function*(){ae.log("signAndSendTransactions",{transactions:me});const Ee=yield signTransactions(pe(me),ye,k.network),cr=[];for(let Br=0;Br__awaiter$d(this,void 0,void 0,function*(){if((0,import_is_mobile$7.isMobile)())return null;const ae=yield isInstalled$6();return{id:"nightly",type:"injected",metadata:{name:"Nightly",description:"Multichain crypto wallet.",iconUrl:v,downloadUrl:"https://wallet.nightly.app/download",deprecated:k,available:ae},init:Nightly}})}var require_strict_uri_encode=__commonJS$1({"node_modules/strict-uri-encode/index.js"(v,k){k.exports=ie=>encodeURIComponent(ie).replace(/[!'()*]/g,ae=>`%${ae.charCodeAt(0).toString(16).toUpperCase()}`)}}),require_split_on_first=__commonJS$1({"node_modules/split-on-first/index.js"(v,k){k.exports=(ie,ae)=>{if(!(typeof ie=="string"&&typeof ae=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(ae==="")return[ie];const ce=ie.indexOf(ae);return ce===-1?[ie]:[ie.slice(0,ce),ie.slice(ce+ae.length)]}}}),require_filter_obj=__commonJS$1({"node_modules/filter-obj/index.js"(v,k){k.exports=function(ie,ae){for(var ce={},fe=Object.keys(ie),le=Array.isArray(ae),ve=0;veXt!=null&&Xt.length>0;v.notNullEmpty=k;var ie=Xt=>!(0,v.notNullEmpty)(Xt);v.nullEmpty=ie;var ae=(...Xt)=>{for(const Kr of Xt)if((0,v.notNullEmpty)(Kr))return Kr};v.firstNotNullEmpty=ae;var ce=Xt=>{for(const Kr of Xt)if((0,v.nullEmpty)(Kr))return!0;return!1},fe=(Xt,Kr,be=null)=>(0,v.notNullEmpty)(Xt)?Xt+Kr:be!=null?be:Kr;v.safeAppend=fe;var le=class extends Array{pushIfNotNullEmpty(Xt){(0,v.notNullEmpty)(Xt)&&this.push(Xt)}};v.BetterStringArray=le;function ve(Xt,Kr,be=!1){return kr=>pe(kr,Xt,Kr,be)}v.createPadder=ve;function pe(Xt,Kr,be,kr=!1){const xr=be-`${Xt}`.length;if(xr>0){const Wr=new Array(xr).fill(Kr);return kr?`${Xt}${Wr.join("")}`:`${Wr.join("")}${Xt}`}return`${Xt}`}v.pad=pe;var ye=new RegExp("\\s+","g"),me=new RegExp("--+","g"),Ee=new RegExp("^-+","g"),cr=new RegExp("-+$","g"),Br=new RegExp("-","g"),$r=new RegExp("[^\\w\\-]+","g"),Pr=new RegExp("_","g");function Ar(Xt){return Xt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var ur=(Xt,{slugDivider:Kr="-",letterCase:be="LOWER",normalize:kr=!0,excludeCharacters:xr=[]}={})=>{if(!Xt||Xt.length===0)return"";let Wr=Xt.toString();return kr&&(Wr=Wr.normalize("NFD")),be==="LOWER"?Wr=Wr.toLowerCase():be==="UPPER"&&(Wr=Wr.toUpperCase()),Wr.replace(ye,"-").replace(xr.length>0?new RegExp(`[^\\w\\-${xr.map(Jt=>Ar(Jt)).join("")}]+`,"g"):$r,"").replace(xr.includes("_")?ye:Pr,"-").replace(me,"-").replace(Ee,"").replace(cr,"").replace(Br,Kr)};v.convertToSlug=ur;var jr=Xt=>(0,v.convertToSlug)(Xt,{normalize:!0,slugDivider:"_",letterCase:"UPPER"});v.stringToConstantStyledString=jr;var Mr=Xt=>{let Kr="";for(const be of Xt)Kr=`${be}${Kr}`;return Kr};function Lr(Xt){return Xt=Xt||"",Xt!==decodeURIComponent(Xt)}var Vr=Xt=>{let Kr=0;for(;Lr(Xt);)if(Kr+=1,Xt=decodeURIComponent(Xt),Kr>20)throw new Error("String Utils: Decode URI Fully: Enacted while loop too many times with attempt to decode fully.");return Xt},Gr=(Xt,Kr,{spaceAware:be=!0,insideWords:kr=!1}={})=>{let xr=`${Xt}`;for(const Wr of Kr)if(be)if(!kr)xr.indexOf(` ${Wr} `)>=0?xr=xr.replace(` ${Wr} `," "):(xr.startsWith(`${Wr} `)&&(xr=xr.substring(Wr.length+1)),xr.endsWith(` ${Wr}`)&&(xr=xr.substring(0,xr.length-(Wr.length+1))));else{const Jt=[new RegExp(`\\s${Wr}\\s`,"g"),new RegExp(`\\s${Wr}`,"g"),new RegExp(`${Wr}\\s`,"g")];for(const Xr of Jt)Xr.test(xr)&&(console.log(`Replacing "${Xr}" in "${xr}"`),xr=xr.replace(Xr," "),console.log(`Text after: "${xr}"`))}else xr.indexOf(Wr)>=0&&(xr=xr.replace(Wr,""));return xr.trim()};function Ur(Xt,Kr){const be=Xt.toLowerCase(),kr=Kr.toLowerCase();return bekr?1:0}function Qr(Xt,Kr){return Xt>Kr?1:XtXt.filter(Kr=>Kr).map((Kr,be,kr)=>{const xr=be!==0,Wr=be!==kr.length-1;return xr&&(Kr=Kr.startsWith("/")?Kr.slice(1):Kr),Wr&&(Kr=Kr.endsWith("/")?Kr.slice(0,-1):Kr),Kr}).join("/"),fn=(Xt,Kr)=>Kr.startsWith("http://")||Kr.startsWith("https://")?Kr:Yt(Xt,Kr),Qt=Xt=>{const Kr=Xt.match(/^[a-zA-Z0-9]+$/);return Boolean(Kr)};v.StringUtils={isUriEncoded:Lr,decodeUriFully:Vr,StringRegex:v.StringRegex,reverse:Mr,notNullEmpty:v.notNullEmpty,nullEmpty:v.nullEmpty,anyNullEmpty:ce,safeAppend:v.safeAppend,createPadder:ve,pad:pe,convertToSlug:v.convertToSlug,stringToConstantStyledString:v.stringToConstantStyledString,removeAndTrim:Gr,sortCompareStrings:Ur,comparePure:Qr,onlyNotNullEmpty:hn,firstNotNullEmpty:v.firstNotNullEmpty,joinIntoUrl:Yt,getUrlWithBaseUrl:fn,isHashId:Qt}}}),require_EnvironmentStorageUtils=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-common/src/modules_utility/state_utils/EnvironmentStorageUtils.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.EnvironmentStateAdapter_Sync=v.EnvironmentStateAdapter=void 0;var k=class{constructor(ae){this.implementation=ae}async setJson(ae,ce){await this.implementation.setString(ae,JSON.stringify(ce))}async getJson(ae){const ce=await this.implementation.getString(ae);if(!(ce==null||ce==="undefined"||ce==="null"))return JSON.parse(ce)}async setString(ae,ce){await this.implementation.setString(ae,ce)}async getString(ae){const ce=await this.implementation.getString(ae);if(ce!=null)return ce}createJsonGetterSetter(ae){return{get:()=>this.getJson(ae),set:ce=>this.setJson(ae,ce)}}createStringGetterSetter(ae){return{get:()=>this.getString(ae),set:ce=>this.setString(ae,ce)}}};v.EnvironmentStateAdapter=k;var ie=class{constructor(ae){this.implementation=ae}setJson(ae,ce){this.implementation.setString(ae,JSON.stringify(ce))}getJson(ae){const ce=this.implementation.getString(ae);if(!(ce==null||ce==="undefined"||ce==="null"))return JSON.parse(ce)}setString(ae,ce){this.implementation.setString(ae,ce)}getString(ae){const ce=this.implementation.getString(ae);if(ce!=null)return ce}clear(ae){this.implementation.clear(ae)}createJsonGetterSetter(ae){return{get:()=>this.getJson(ae),set:ce=>this.setJson(ae,ce)}}createStringGetterSetter(ae){return{get:()=>this.getString(ae),set:ce=>this.setString(ae,ce)}}};v.EnvironmentStateAdapter_Sync=ie}}),require_TransactionSchema=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-sdk/src/near-schema/TransactionSchema.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.SCHEMA=void 0;var k=require_browser_index2$1();v.SCHEMA=new Map([[k.transactions.Signature,{kind:"struct",fields:[["keyType","u8"],["data",[64]]]}],[k.transactions.SignedTransaction,{kind:"struct",fields:[["transaction",k.transactions.Transaction],["signature",k.transactions.Signature]]}],[k.transactions.Transaction,{kind:"struct",fields:[["signerId","string"],["publicKey",k.utils.PublicKey],["nonce","u64"],["receiverId","string"],["blockHash",[32]],["actions",[k.transactions.Action]]]}],[k.utils.PublicKey,{kind:"struct",fields:[["keyType","u8"],["data",[32]]]}],[k.transactions.AccessKey,{kind:"struct",fields:[["nonce","u64"],["permission",k.transactions.AccessKeyPermission]]}],[k.transactions.AccessKeyPermission,{kind:"enum",field:"enum",values:[["functionCall",k.transactions.FunctionCallPermission],["fullAccess",k.transactions.FullAccessPermission]]}],[k.transactions.FunctionCallPermission,{kind:"struct",fields:[["allowance",{kind:"option",type:"u128"}],["receiverId","string"],["methodNames",["string"]]]}],[k.transactions.FullAccessPermission,{kind:"struct",fields:[]}],[k.transactions.Action,{kind:"enum",field:"enum",values:[["createAccount",k.transactions.CreateAccount],["deployContract",k.transactions.DeployContract],["functionCall",k.transactions.FunctionCall],["transfer",k.transactions.Transfer],["stake",k.transactions.Stake],["addKey",k.transactions.AddKey],["deleteKey",k.transactions.DeleteKey],["deleteAccount",k.transactions.DeleteAccount]]}],[k.transactions.CreateAccount,{kind:"struct",fields:[]}],[k.transactions.DeployContract,{kind:"struct",fields:[["code",["u8"]]]}],[k.transactions.FunctionCall,{kind:"struct",fields:[["methodName","string"],["args",["u8"]],["gas","u64"],["deposit","u128"]]}],[k.transactions.Transfer,{kind:"struct",fields:[["deposit","u128"]]}],[k.transactions.Stake,{kind:"struct",fields:[["stake","u128"],["publicKey",k.utils.PublicKey]]}],[k.transactions.AddKey,{kind:"struct",fields:[["publicKey",k.utils.PublicKey],["accessKey",k.transactions.AccessKey]]}],[k.transactions.DeleteKey,{kind:"struct",fields:[["publicKey",k.utils.PublicKey]]}],[k.transactions.DeleteAccount,{kind:"struct",fields:[["beneficiaryId","string"]]}]])}}),require_MeteorWalletConstants=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-sdk/src/MeteorWalletConstants.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.WALLET_URL_LOCALHOST_BASE=v.WALLET_URL_PRODUCTION_BASE=v.WALLET_URL_DEV_BASE=void 0,v.WALLET_URL_DEV_BASE="https://dev.wallet.meteorwallet.app",v.WALLET_URL_PRODUCTION_BASE="https://wallet.meteorwallet.app",v.WALLET_URL_LOCALHOST_BASE="https://localhost:3000"}}),require_envConfig=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-sdk/src/envConfig.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.setEnvConfig=v.envConfig=void 0;var k=require_MeteorWalletConstants(),ie=typeof window<"u"?window.localStorage.getItem("DEV__METEOR_WALLET_BASE_URL"):void 0;v.envConfig={wallet_base_url:ie!=null?ie:k.WALLET_URL_PRODUCTION_BASE};function ae(ce){Object.assign(v.envConfig,ce)}v.setEnvConfig=ae}}),require_MeteorSdkUtils=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-sdk/src/utils/MeteorSdkUtils.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getNetworkPreset=v.resolveWalletUrl=void 0;var k=require_envConfig(),ie=(ce,fe)=>{if(fe)return fe;const le=k.envConfig.wallet_base_url;switch(ce){case"mainnet":return`${le}/connect/mainnet`;case"testnet":return`${le}/connect/testnet`;case"betanet":return`${le}/connect/betanet`;default:throw new Error("Invalid wallet URL")}};v.resolveWalletUrl=ie;var ae=ce=>{switch(ce){case"mainnet":return{networkId:ce,nodeUrl:"https://rpc.mainnet.near.org",helperUrl:"https://helper.mainnet.near.org",explorerUrl:"https://explorer.near.org"};case"testnet":return{networkId:ce,nodeUrl:"https://rpc.testnet.near.org",helperUrl:"https://helper.testnet.near.org",explorerUrl:"https://explorer.testnet.near.org"};case"betanet":return{networkId:ce,nodeUrl:"https://rpc.betanet.near.org",helperUrl:"https://helper.betanet.near.org",explorerUrl:"https://explorer.betanet.near.org"};default:throw Error(`Failed to find config for: '${ce}'`)}};v.getNetworkPreset=ae}}),urlAlphabet,init_url_alphabet=__esm$1({"node_modules/nanoid/url-alphabet/index.js"(){urlAlphabet="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"}}),index_browser_exports={};__export$1(index_browser_exports,{customAlphabet:()=>customAlphabet,customRandom:()=>customRandom,nanoid:()=>nanoid,random:()=>random,urlAlphabet:()=>urlAlphabet});var random,customRandom,customAlphabet,nanoid,init_index_browser=__esm$1({"node_modules/nanoid/index.browser.js"(){init_url_alphabet(),random=v=>crypto.getRandomValues(new Uint8Array(v)),customRandom=(v,k,ie)=>{let ae=(2<{let le="";for(;;){let ve=ie(ce),pe=ce;for(;pe--;)if(le+=v[ve[pe]&ae]||"",le.length===fe)return le}}},customAlphabet=(v,k=21)=>customRandom(v,k,random),nanoid=(v=21)=>crypto.getRandomValues(new Uint8Array(v)).reduce((k,ie)=>(ie&=63,ie<36?k+=ie.toString(36):ie<62?k+=(ie-26).toString(36).toUpperCase():ie>62?k+="-":k+="_",k),"")}}),require_decode_uri_component$1=__commonJS$1({"node_modules/decode-uri-component/index.js"(v,k){var ie="%[a-f0-9]{2}",ae=new RegExp(ie,"gi"),ce=new RegExp("("+ie+")+","gi");function fe(pe,ye){try{return decodeURIComponent(pe.join(""))}catch{}if(pe.length===1)return pe;ye=ye||1;var me=pe.slice(0,ye),Ee=pe.slice(ye);return Array.prototype.concat.call([],fe(me),fe(Ee))}function le(pe){try{return decodeURIComponent(pe)}catch{for(var ye=pe.match(ae),me=1;mejr==null,le=Symbol("encodeFragmentIdentifier");function ve(jr){switch(jr.arrayFormat){case"index":return Mr=>(Lr,Vr)=>{const Gr=Lr.length;return Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,[me(Mr,jr),"[",Gr,"]"].join("")]:[...Lr,[me(Mr,jr),"[",me(Gr,jr),"]=",me(Vr,jr)].join("")]};case"bracket":return Mr=>(Lr,Vr)=>Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,[me(Mr,jr),"[]"].join("")]:[...Lr,[me(Mr,jr),"[]=",me(Vr,jr)].join("")];case"colon-list-separator":return Mr=>(Lr,Vr)=>Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,[me(Mr,jr),":list="].join("")]:[...Lr,[me(Mr,jr),":list=",me(Vr,jr)].join("")];case"comma":case"separator":case"bracket-separator":{const Mr=jr.arrayFormat==="bracket-separator"?"[]=":"=";return Lr=>(Vr,Gr)=>Gr===void 0||jr.skipNull&&Gr===null||jr.skipEmptyString&&Gr===""?Vr:(Gr=Gr===null?"":Gr,Vr.length===0?[[me(Lr,jr),Mr,me(Gr,jr)].join("")]:[[Vr,me(Gr,jr)].join(jr.arrayFormatSeparator)])}default:return Mr=>(Lr,Vr)=>Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,me(Mr,jr)]:[...Lr,[me(Mr,jr),"=",me(Vr,jr)].join("")]}}function pe(jr){let Mr;switch(jr.arrayFormat){case"index":return(Lr,Vr,Gr)=>{if(Mr=/\[(\d*)\]$/.exec(Lr),Lr=Lr.replace(/\[\d*\]$/,""),!Mr){Gr[Lr]=Vr;return}Gr[Lr]===void 0&&(Gr[Lr]={}),Gr[Lr][Mr[1]]=Vr};case"bracket":return(Lr,Vr,Gr)=>{if(Mr=/(\[\])$/.exec(Lr),Lr=Lr.replace(/\[\]$/,""),!Mr){Gr[Lr]=Vr;return}if(Gr[Lr]===void 0){Gr[Lr]=[Vr];return}Gr[Lr]=[].concat(Gr[Lr],Vr)};case"colon-list-separator":return(Lr,Vr,Gr)=>{if(Mr=/(:list)$/.exec(Lr),Lr=Lr.replace(/:list$/,""),!Mr){Gr[Lr]=Vr;return}if(Gr[Lr]===void 0){Gr[Lr]=[Vr];return}Gr[Lr]=[].concat(Gr[Lr],Vr)};case"comma":case"separator":return(Lr,Vr,Gr)=>{const Ur=typeof Vr=="string"&&Vr.includes(jr.arrayFormatSeparator),Qr=typeof Vr=="string"&&!Ur&&Ee(Vr,jr).includes(jr.arrayFormatSeparator);Vr=Qr?Ee(Vr,jr):Vr;const hn=Ur||Qr?Vr.split(jr.arrayFormatSeparator).map(Yt=>Ee(Yt,jr)):Vr===null?Vr:Ee(Vr,jr);Gr[Lr]=hn};case"bracket-separator":return(Lr,Vr,Gr)=>{const Ur=/(\[\])$/.test(Lr);if(Lr=Lr.replace(/\[\]$/,""),!Ur){Gr[Lr]=Vr&&Ee(Vr,jr);return}const Qr=Vr===null?[]:Vr.split(jr.arrayFormatSeparator).map(hn=>Ee(hn,jr));if(Gr[Lr]===void 0){Gr[Lr]=Qr;return}Gr[Lr]=[].concat(Gr[Lr],Qr)};default:return(Lr,Vr,Gr)=>{if(Gr[Lr]===void 0){Gr[Lr]=Vr;return}Gr[Lr]=[].concat(Gr[Lr],Vr)}}}function ye(jr){if(typeof jr!="string"||jr.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function me(jr,Mr){return Mr.encode?Mr.strict?k(jr):encodeURIComponent(jr):jr}function Ee(jr,Mr){return Mr.decode?ie(jr):jr}function cr(jr){return Array.isArray(jr)?jr.sort():typeof jr=="object"?cr(Object.keys(jr)).sort((Mr,Lr)=>Number(Mr)-Number(Lr)).map(Mr=>jr[Mr]):jr}function Br(jr){const Mr=jr.indexOf("#");return Mr!==-1&&(jr=jr.slice(0,Mr)),jr}function $r(jr){let Mr="";const Lr=jr.indexOf("#");return Lr!==-1&&(Mr=jr.slice(Lr)),Mr}function Pr(jr){jr=Br(jr);const Mr=jr.indexOf("?");return Mr===-1?"":jr.slice(Mr+1)}function Ar(jr,Mr){return Mr.parseNumbers&&!Number.isNaN(Number(jr))&&typeof jr=="string"&&jr.trim()!==""?jr=Number(jr):Mr.parseBooleans&&jr!==null&&(jr.toLowerCase()==="true"||jr.toLowerCase()==="false")&&(jr=jr.toLowerCase()==="true"),jr}function ur(jr,Mr){Mr=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},Mr),ye(Mr.arrayFormatSeparator);const Lr=pe(Mr),Vr=Object.create(null);if(typeof jr!="string"||(jr=jr.trim().replace(/^[?#&]/,""),!jr))return Vr;for(const Gr of jr.split("&")){if(Gr==="")continue;let[Ur,Qr]=ae(Mr.decode?Gr.replace(/\+/g," "):Gr,"=");Qr=Qr===void 0?null:["comma","separator","bracket-separator"].includes(Mr.arrayFormat)?Qr:Ee(Qr,Mr),Lr(Ee(Ur,Mr),Qr,Vr)}for(const Gr of Object.keys(Vr)){const Ur=Vr[Gr];if(typeof Ur=="object"&&Ur!==null)for(const Qr of Object.keys(Ur))Ur[Qr]=Ar(Ur[Qr],Mr);else Vr[Gr]=Ar(Ur,Mr)}return Mr.sort===!1?Vr:(Mr.sort===!0?Object.keys(Vr).sort():Object.keys(Vr).sort(Mr.sort)).reduce((Gr,Ur)=>{const Qr=Vr[Ur];return Boolean(Qr)&&typeof Qr=="object"&&!Array.isArray(Qr)?Gr[Ur]=cr(Qr):Gr[Ur]=Qr,Gr},Object.create(null))}v.extract=Pr,v.parse=ur,v.stringify=(jr,Mr)=>{if(!jr)return"";Mr=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},Mr),ye(Mr.arrayFormatSeparator);const Lr=Qr=>Mr.skipNull&&fe(jr[Qr])||Mr.skipEmptyString&&jr[Qr]==="",Vr=ve(Mr),Gr={};for(const Qr of Object.keys(jr))Lr(Qr)||(Gr[Qr]=jr[Qr]);const Ur=Object.keys(Gr);return Mr.sort!==!1&&Ur.sort(Mr.sort),Ur.map(Qr=>{const hn=jr[Qr];return hn===void 0?"":hn===null?me(Qr,Mr):Array.isArray(hn)?hn.length===0&&Mr.arrayFormat==="bracket-separator"?me(Qr,Mr)+"[]":hn.reduce(Vr(Qr),[]).join("&"):me(Qr,Mr)+"="+me(hn,Mr)}).filter(Qr=>Qr.length>0).join("&")},v.parseUrl=(jr,Mr)=>{Mr=Object.assign({decode:!0},Mr);const[Lr,Vr]=ae(jr,"#");return Object.assign({url:Lr.split("?")[0]||"",query:ur(Pr(jr),Mr)},Mr&&Mr.parseFragmentIdentifier&&Vr?{fragmentIdentifier:Ee(Vr,Mr)}:{})},v.stringifyUrl=(jr,Mr)=>{Mr=Object.assign({encode:!0,strict:!0,[le]:!0},Mr);const Lr=Br(jr.url).split("?")[0]||"",Vr=v.extract(jr.url),Gr=v.parse(Vr,{sort:!1}),Ur=Object.assign(Gr,jr.query);let Qr=v.stringify(Ur,Mr);Qr&&(Qr=`?${Qr}`);let hn=$r(jr.url);return jr.fragmentIdentifier&&(hn=`#${Mr[le]?me(jr.fragmentIdentifier,Mr):jr.fragmentIdentifier}`),`${Lr}${Qr}${hn}`},v.pick=(jr,Mr,Lr)=>{Lr=Object.assign({parseFragmentIdentifier:!0,[le]:!1},Lr);const{url:Vr,query:Gr,fragmentIdentifier:Ur}=v.parseUrl(jr,Lr);return v.stringifyUrl({url:Vr,query:ce(Gr,Mr),fragmentIdentifier:Ur},Lr)},v.exclude=(jr,Mr,Lr)=>{const Vr=Array.isArray(Mr)?Gr=>!Mr.includes(Gr):(Gr,Ur)=>!Mr(Gr,Ur);return v.pick(jr,Vr,Lr)}}}),require_constants_theme=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-common/src/modules_app_core/theme/constants_theme.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.THEME_SMALL_WINDOW_WIDTH_MAX=v.THEME_CONSTANT_BADGE_GREY_COLOR=v.THEME_CONSTANT_GREEN_COLOR=v.THEME_CONSTANT_RED_COLOR=v.THEME_CONSTANT_COLOR_DARK=v.THEME_CONSTANT_COLOR_BRAND=v.SIGN_POPUP_HEIGHT=v.SIGN_POPUP_WIDTH=void 0,v.SIGN_POPUP_WIDTH=390,v.SIGN_POPUP_HEIGHT=650,v.THEME_CONSTANT_COLOR_BRAND="#471be8",v.THEME_CONSTANT_COLOR_DARK="#101046",v.THEME_CONSTANT_RED_COLOR="#e25252",v.THEME_CONSTANT_GREEN_COLOR="#8bdaa1",v.THEME_CONSTANT_BADGE_GREY_COLOR="rgba(116,117,126,0.67)",v.THEME_SMALL_WINDOW_WIDTH_MAX=600}}),require_MeteorPostMessenger=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-sdk/src/postMessage/MeteorPostMessenger.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.getMeteorPostMessenger=void 0;var k=(init_index_browser(),__toCommonJS$1(index_browser_exports)),ie=require_envConfig(),ae=require_types_dappConnect(),ce=require_query_string$1(),fe=require_error_handling_dappConnect(),le=require_constants_theme(),ve=class{constructor(cr,Br){const $r=ie.envConfig.wallet_base_url,Pr=new URL($r);if(this.walletOrigin=Pr.origin,window.meteorCom==null){this.comType=ae.EDappActionSource.website_post_message,console.log("No extension found. Need to connect to web popup for Meteor communication");const Ar={source:ae.EDappActionSource.website_post_message,connectionUid:cr.uid},ur=le.SIGN_POPUP_WIDTH,jr=le.SIGN_POPUP_HEIGHT,Mr=window.top.outerHeight/2+window.top.screenY-jr/2,Lr=window.top.outerWidth/2+window.top.screenX-ur/2,Vr=window.open(`${$r}/connect/${cr.network}/${cr.actionType}?${(0,ce.stringify)(Ar)}`,"_blank",`popup=1,width=${ur},height=${jr},top=${Mr},left=${Lr}`);if(Vr!=null)this.websiteWindow=Vr;else throw new ae.MeteorActionError({message:"Couldn't open popup window to complete wallet action",endTags:[fe.EDappActionErrorTag.POPUP_WINDOW_OPEN_FAILED]});window.addEventListener("message",Gr=>Br(Gr.data)),this.wasOpened=!1}else this.comType=ae.EDappActionSource.extension_injected,this.wasOpened=!0,window.meteorCom.addMessageDataListener(Br)}focus(){var cr;this.comType===ae.EDappActionSource.website_post_message&&((cr=this.websiteWindow)===null||cr===void 0||cr.focus())}sendMessage(cr){var Br,$r;this.comType===ae.EDappActionSource.website_post_message?(Br=this.websiteWindow)===null||Br===void 0||Br.postMessage(cr,this.walletOrigin):($r=window.meteorCom)===null||$r===void 0||$r.sendMessageData(cr)}isWindowClosed(){var cr,Br;return this.comType===ae.EDappActionSource.website_post_message?(Br=(cr=this.websiteWindow)===null||cr===void 0?void 0:cr.closed)!==null&&Br!==void 0?Br:!0:!1}hasActiveWindow(){return this.comType===ae.EDappActionSource.website_post_message?this.websiteWindow!=null:!0}close(){this.comType===ae.EDappActionSource.website_post_message&&delete this.websiteWindow}},pe=450,ye=class{constructor(){this.connections=[];const cr=ie.envConfig.wallet_base_url,Br=new URL(cr);this.baseWalletUrl=cr,this.walletOrigin=Br.origin,this.listener=$r=>{if($r!=null){const Pr=this.connections.find(Ar=>Ar.uid===$r.uid);Pr!=null&&(this.updateConnection(Pr.uid,{lastConnection:Date.now()}),$r.status===ae.EDappActionConnectionStatus.attempting_reconnect&&(this.updateConnection(Pr.uid,{status:ae.EDappActionConnectionStatus.initializing}),this.sendComs()),$r.status===ae.EDappActionConnectionStatus.connected&&Pr.status===ae.EDappActionConnectionStatus.initializing&&this.updateConnection(Pr.uid,{status:ae.EDappActionConnectionStatus.connected}),$r.status===ae.EDappActionConnectionStatus.closed_success&&(Pr.resolve({success:!0,endTags:[],payload:$r.payload}),this.updateConnection(Pr.uid,{status:ae.EDappActionConnectionStatus.closed_success}),this.sendComs()),$r.status===ae.EDappActionConnectionStatus.closed_fail&&(this.updateConnection(Pr.uid,{status:ae.EDappActionConnectionStatus.closed_fail}),this.sendComs(),Pr.reject(new ae.MeteorActionError({endTags:$r.endTags}))),$r.status===ae.EDappActionConnectionStatus.closed_window&&(this.updateConnection(Pr.uid,{status:ae.EDappActionConnectionStatus.closed_window}),Pr.reject(new ae.MeteorActionError({endTags:$r.endTags,message:"User closed the window"}))),[ae.EDappActionConnectionStatus.disconnected,ae.EDappActionConnectionStatus.closed_fail,ae.EDappActionConnectionStatus.closed_window,ae.EDappActionConnectionStatus.closed_success].includes($r.status)&&this.removeConnection(Pr.uid))}}}removeConnection(cr){this.connections=this.connections.filter(Br=>Br.uid!==cr),this.connections.length===0&&(delete this.comWindow,clearInterval(this.comInterval),delete this.comInterval)}updateConnection(cr,Br){this.connections=this.connections.map($r=>$r.uid===cr?{...$r,...Br,uid:$r.uid}:$r)}sendComs(){var cr;if(((cr=this.comWindow)===null||cr===void 0?void 0:cr.hasActiveWindow())&&this.connections.length>0)if(this.comInterval==null&&(this.comInterval=setInterval(()=>this.sendComs(),pe)),this.comWindow.isWindowClosed())if(this.comWindow.wasOpened){for(const Br of this.connections)Br.reject(new ae.MeteorActionError({message:"User closed the window before completing the action",endTags:[fe.EDappActionErrorTag.INCOMPLETE_ACTION,fe.EDappActionErrorTag.WINDOW_CLOSED]}));this.connections=[],this.comWindow.close()}else console.log("Window is closed, need to allow popup");else{this.comWindow.wasOpened=!0;for(const{network:Br,actionType:$r,endTags:Pr,status:Ar,inputs:ur,uid:jr}of this.connections){const Mr={endTags:Pr,actionType:$r,status:Ar,uid:jr,network:Br};Ar===ae.EDappActionConnectionStatus.initializing&&(Mr.inputs=ur),this.comWindow.sendMessage(Mr)}}else clearInterval(this.comInterval),delete this.comInterval}addAndStartConnection(cr){if(this.connections.length>0)for(const Br of this.connections)Br.status=ae.EDappActionConnectionStatus.disconnected,Br.endTags=[fe.EDappActionErrorTag.NEW_ACTION_STARTED];this.connections.push(cr),this.comWindow==null||!this.comWindow.hasActiveWindow()?this.comWindow=new ve(cr,this.listener):this.comWindow.focus(),this.sendComs()}async connectAndWaitForResponse({actionType:cr,network:Br,inputs:$r}){let Pr={uid:(0,k.nanoid)(),actionType:cr,lastAttemptedConnection:0,lastConnection:0,status:ae.EDappActionConnectionStatus.initializing,promise:void 0,reject:void 0,resolve:void 0,currentPayload:{},inputs:$r,network:Br,endTags:[]};const Ar=new Promise((ur,jr)=>{Pr.resolve=ur,Pr.reject=Mr=>{this.connections=this.connections.filter(Lr=>Lr.uid!==Pr.uid),jr(Mr)}});return Pr.promise=Ar,this.addAndStartConnection(Pr),await Ar}},me;function Ee(){return me==null&&(me=new ye),me}v.getMeteorPostMessenger=Ee}}),require_MeteorWallet=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-sdk/src/MeteorWallet.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ConnectedMeteorWalletAccount=v.MeteorWallet=void 0;var k=require_browser_index2$1(),ie=require_types_dappConnect(),ae=require_lib(),ce=require_StringUtils(),fe=require_EnvironmentStorageUtils(),le=require_TransactionSchema(),ve=require_MeteorSdkUtils(),pe=require_MeteorPostMessenger(),ye="add_request_and_confirm",me="_meteor_wallet_auth_key",Ee=new fe.EnvironmentStateAdapter_Sync({getString:$r=>window.localStorage.getItem($r),setString:($r,Pr)=>window.localStorage.setItem($r,Pr),clear:$r=>window.localStorage.removeItem($r)});new fe.EnvironmentStateAdapter_Sync({getString:$r=>window.sessionStorage.getItem($r),setString:($r,Pr)=>window.sessionStorage.setItem($r,Pr),clear:$r=>window.sessionStorage.removeItem($r)});var cr=class{static async init({walletUrl:$r,...Pr}){const Ar=new k.keyStores.BrowserLocalStorageKeyStore,ur=await(0,k.connect)({keyStore:Ar,headers:{},walletUrl:(0,ve.resolveWalletUrl)(Pr.networkId,$r),...(0,ve.getNetworkPreset)(Pr.networkId),...Pr}),jr=new cr({near:ur,appKeyPrefix:"near_app"});return jr.isSignedIn()||await Ar.clear(),jr}constructor($r){var Pr,Ar,{near:ur,appKeyPrefix:jr=(Pr=ur.config.contractName)!==null&&Pr!==void 0?Pr:"default"}=$r;this._initializationPromises=[],this._near=ur;const Mr=jr+me;this._authDataKey=Mr,this._authData=(Ar=Ee.getJson(Mr))!==null&&Ar!==void 0?Ar:{allKeys:[]},this._networkId=ur.config.networkId,this._walletBaseUrl=ur.config.walletUrl,this._keyStore=ur.connection.signer.keyStore}isExtensionInstalled(){return window.meteorWallet!=null}isSignedIn(){return!!this._authData.accountId}getAccountId(){return this._authData.accountId}async verifyOwner($r){var Pr;const Ar=(Pr=$r.accountId)!==null&&Pr!==void 0?Pr:this.getAccountId(),ur=await(0,pe.getMeteorPostMessenger)().connectAndWaitForResponse({actionType:ie.EExternalActionType.verify_owner,inputs:{accountId:Ar,message:$r.message},network:this._networkId});if(ur.success)return ur;throw new ie.MeteorActionError({endTags:ur.endTags,message:ur.message})}async requestSignIn($r){const{keyPair:Pr,...Ar}=$r,ur=Pr!=null?Pr:k.KeyPair.fromRandom("ed25519");let jr=ur.getPublicKey().toString();const Mr=await(0,pe.getMeteorPostMessenger)().connectAndWaitForResponse({actionType:ie.EExternalActionType.login,inputs:{public_key:jr,...Ar},network:this._networkId});if(Mr.success){const{allKeys:Lr,accountId:Vr}=Mr.payload;return this._authData={accountId:Vr,allKeys:Lr,signedInContract:{contract_id:Ar.contract_id,public_key:jr}},Ee.setJson(this._authDataKey,this._authData),await this._keyStore.setKey(this._networkId,Vr,ur),{success:!0,endTags:[],payload:{accessKey:ur,accountId:Vr}}}else throw new ie.MeteorActionError({endTags:Mr.endTags,message:Mr.message})}async signOut(){const $r=this.getAccountId();if(this._authData.signedInContract!=null&&$r!=null){const Pr={accountId:$r,contractInfo:this._authData.signedInContract};await(0,pe.getMeteorPostMessenger)().connectAndWaitForResponse({actionType:ie.EExternalActionType.logout,inputs:Pr,network:this._networkId})}this._authData={allKeys:[]},Ee.clear(this._authDataKey)}async signMessage({message:$r,nonce:Pr,recipient:Ar,callbackUrl:ur,state:jr,accountId:Mr}){const Lr=await(0,pe.getMeteorPostMessenger)().connectAndWaitForResponse({actionType:ie.EExternalActionType.sign_message,inputs:{message:$r,nonce:Pr,recipient:Ar,callbackUrl:ur,state:jr,accountId:Mr},network:this._networkId});if(Lr.success)return Lr.payload.state=jr,Lr;throw new ie.MeteorActionError({endTags:Lr.endTags,message:Lr.message})}async requestSignTransactions($r){const{transactions:Pr}=$r,Ar=await(0,pe.getMeteorPostMessenger)().connectAndWaitForResponse({actionType:ie.EExternalActionType.sign,inputs:{transactions:Pr.map(ur=>(0,ae.serialize)(le.SCHEMA,ur)).map(ur=>Buffer.from(ur).toString("base64")).join(",")},network:this._networkId});if(Ar.success)return Ar.payload.executionOutcomes;throw new ie.MeteorActionError({endTags:Ar.endTags,message:Ar.message})}account(){const $r=this.getAccountId();return!this._connectedAccount&&(0,ce.notNullEmpty)($r)&&(this._connectedAccount=new Br(this,this._near.connection,$r)),this._connectedAccount}};v.MeteorWallet=cr;var Br=class extends k.Account{constructor($r,Pr,Ar){super(Pr,Ar),this.meteorWallet=$r}async signAndSendTransaction(...$r){return typeof $r[0]=="string"?this.signAndSendTransaction_direct({receiverId:$r[0],actions:$r[1]}):this.signAndSendTransaction_direct($r[0])}async trySendOrCreateTransaction({receiverId:$r,actions:Pr}){const Ar=await this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);let ur=await this.accessKeyForTransaction($r,Pr,Ar);if(!ur)throw new Error(`Cannot find matching key for transaction sent to ${$r}`);if(Ar&&Ar.toString()===ur.public_key)try{return{executionOutcome:await super.signAndSendTransaction({receiverId:$r,actions:Pr}),sent:!0}}catch(Ur){if(Ur.type==="NotEnoughAllowance")ur=await this.accessKeyForTransaction($r,Pr);else throw Ur}const jr=await this.connection.provider.block({finality:"final"}),Mr=(0,ae.baseDecode)(jr.header.hash),Lr=k.utils.PublicKey.from(ur.public_key),Vr=ur.access_key.nonce+1,Gr=k.transactions.createTransaction(this.accountId,Lr,$r,Vr,Pr,Mr);return{sent:!1,transaction:Gr}}async signAndSendTransaction_direct({receiverId:$r,actions:Pr}){const{transaction:Ar,sent:ur,executionOutcome:jr}=await this.trySendOrCreateTransaction({receiverId:$r,actions:Pr});return ur?jr:(await this.meteorWallet.requestSignTransactions({transactions:[Ar]}))[0]}async accessKeyMatchesTransaction($r,Pr,Ar){const{access_key:{permission:ur}}=$r;if(ur==="FullAccess")return!0;if(ur.FunctionCall){const{receiver_id:jr,method_names:Mr}=ur.FunctionCall;if(jr===this.accountId&&Mr.includes(ye))return!0;if(jr===Pr){if(Ar.length!==1)return!1;const[{functionCall:Lr}]=Ar;return Lr&&(!Lr.deposit||Lr.deposit.toString()==="0")&&(Mr.length===0||Mr.includes(Lr.methodName))}}return!1}async accessKeyForTransaction($r,Pr,Ar){const ur=await this.getAccessKeys();if(Ar){const Mr=ur.find(Lr=>Lr.public_key.toString()===Ar.toString());if(Mr&&await this.accessKeyMatchesTransaction(Mr,$r,Pr))return Mr}const jr=this.meteorWallet._authData.allKeys;for(const Mr of ur)if(jr.indexOf(Mr.public_key)!==-1&&await this.accessKeyMatchesTransaction(Mr,$r,Pr))return Mr;return null}};v.ConnectedMeteorWalletAccount=Br}}),require_near_basic_types=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-common/src/modules_external/near/types/near_basic_types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ENearNetwork=void 0,function(k){k.localnet="localnet",k.testnet="testnet",k.betanet="betanet",k.mainnet="mainnet"}(v.ENearNetwork||(v.ENearNetwork={}))}}),require_src$1=__commonJS$1({"node_modules/@meteorwallet/sdk/dist/meteor-sdk/src/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(fe,le,ve,pe){pe===void 0&&(pe=ve);var ye=Object.getOwnPropertyDescriptor(le,ve);(!ye||("get"in ye?!le.__esModule:ye.writable||ye.configurable))&&(ye={enumerable:!0,get:function(){return le[ve]}}),Object.defineProperty(fe,pe,ye)}:function(fe,le,ve,pe){pe===void 0&&(pe=ve),fe[pe]=le[ve]}),ie=v&&v.__exportStar||function(fe,le){for(var ve in fe)ve!=="default"&&!Object.prototype.hasOwnProperty.call(le,ve)&&k(le,fe,ve)};Object.defineProperty(v,"__esModule",{value:!0}),v.setEnvConfig=v.ENearNetwork=void 0,ie(require_MeteorWallet(),v),ie(require_MeteorSdkUtils(),v),ie(require_MeteorWalletConstants(),v),ie(require_types_dappConnect(),v);var ae=require_near_basic_types();Object.defineProperty(v,"ENearNetwork",{enumerable:!0,get:function(){return ae.ENearNetwork}});var ce=require_envConfig();Object.defineProperty(v,"setEnvConfig",{enumerable:!0,get:function(){return ce.setEnvConfig}})}}),nearAPI$5=__toESM(require_browser_index2$1(),1),import_sdk$1=__toESM(require_src$1(),1),commonjsGlobal$b=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$a=function(v){return v&&v.Math==Math&&v},global$j$4=check$a(typeof globalThis=="object"&&globalThis)||check$a(typeof window=="object"&&window)||check$a(typeof self=="object"&&self)||check$a(typeof commonjsGlobal$b=="object"&&commonjsGlobal$b)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$8={},fails$e$5=function(v){try{return!!v()}catch{return!0}},fails$d$5=fails$e$5,descriptors$a=!fails$d$5(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$c$5=fails$e$5,functionBindNative$a=!fails$c$5(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$6=functionBindNative$a,call$f$5=Function.prototype.call,functionCall$a=NATIVE_BIND$3$6?call$f$5.bind(call$f$5):function(){return call$f$5.apply(call$f$5,arguments)},objectPropertyIsEnumerable$8={},$propertyIsEnumerable$8={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$4=Object.getOwnPropertyDescriptor,NASHORN_BUG$8=getOwnPropertyDescriptor$2$4&&!$propertyIsEnumerable$8.call({1:2},1);objectPropertyIsEnumerable$8.f=NASHORN_BUG$8?function v(k){var ie=getOwnPropertyDescriptor$2$4(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$8;var createPropertyDescriptor$3$5=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2$6=functionBindNative$a,FunctionPrototype$2$6=Function.prototype,bind$5$4=FunctionPrototype$2$6.bind,call$e$5=FunctionPrototype$2$6.call,uncurryThis$e$5=NATIVE_BIND$2$6&&bind$5$4.bind(call$e$5,call$e$5),functionUncurryThis$a=NATIVE_BIND$2$6?function(v){return v&&uncurryThis$e$5(v)}:function(v){return v&&function(){return call$e$5.apply(v,arguments)}},uncurryThis$d$6=functionUncurryThis$a,toString$2$8=uncurryThis$d$6({}.toString),stringSlice$a=uncurryThis$d$6("".slice),classofRaw$1$9=function(v){return stringSlice$a(toString$2$8(v),8,-1)},uncurryThis$c$6=functionUncurryThis$a,fails$b$5=fails$e$5,classof$5$5=classofRaw$1$9,$Object$4$5=Object,split$8=uncurryThis$c$6("".split),indexedObject$8=fails$b$5(function(){return!$Object$4$5("z").propertyIsEnumerable(0)})?function(v){return classof$5$5(v)=="String"?split$8(v,""):$Object$4$5(v)}:$Object$4$5,$TypeError$b$5=TypeError,requireObjectCoercible$2$8=function(v){if(v==null)throw $TypeError$b$5("Can't call method on "+v);return v},IndexedObject$1$7=indexedObject$8,requireObjectCoercible$1$a=requireObjectCoercible$2$8,toIndexedObject$5$5=function(v){return IndexedObject$1$7(requireObjectCoercible$1$a(v))},isCallable$k$4=function(v){return typeof v=="function"},isCallable$j$5=isCallable$k$4,isObject$7$6=function(v){return typeof v=="object"?v!==null:isCallable$j$5(v)},global$i$5=global$j$4,isCallable$i$5=isCallable$k$4,aFunction$a=function(v){return isCallable$i$5(v)?v:void 0},getBuiltIn$8$4=function(v,k){return arguments.length<2?aFunction$a(global$i$5[v]):global$i$5[v]&&global$i$5[v][k]},uncurryThis$b$6=functionUncurryThis$a,objectIsPrototypeOf$a=uncurryThis$b$6({}.isPrototypeOf),getBuiltIn$7$4=getBuiltIn$8$4,engineUserAgent$a=getBuiltIn$7$4("navigator","userAgent")||"",global$h$6=global$j$4,userAgent$3$4=engineUserAgent$a,process$3$4=global$h$6.process,Deno$1$5=global$h$6.Deno,versions$a=process$3$4&&process$3$4.versions||Deno$1$5&&Deno$1$5.version,v8$a=versions$a&&versions$a.v8,match$a,version$a;v8$a&&(match$a=v8$a.split("."),version$a=match$a[0]>0&&match$a[0]<4?1:+(match$a[0]+match$a[1]));!version$a&&userAgent$3$4&&(match$a=userAgent$3$4.match(/Edge\/(\d+)/),(!match$a||match$a[1]>=74)&&(match$a=userAgent$3$4.match(/Chrome\/(\d+)/),match$a&&(version$a=+match$a[1])));var engineV8Version$a=version$a,V8_VERSION$1$4=engineV8Version$a,fails$a$7=fails$e$5,nativeSymbol$a=!!Object.getOwnPropertySymbols&&!fails$a$7(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$4&&V8_VERSION$1$4<41}),NATIVE_SYMBOL$1$a=nativeSymbol$a,useSymbolAsUid$a=NATIVE_SYMBOL$1$a&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$6$6=getBuiltIn$8$4,isCallable$h$6=isCallable$k$4,isPrototypeOf$3$5=objectIsPrototypeOf$a,USE_SYMBOL_AS_UID$1$a=useSymbolAsUid$a,$Object$3$7=Object,isSymbol$2$a=USE_SYMBOL_AS_UID$1$a?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$6("Symbol");return isCallable$h$6(k)&&isPrototypeOf$3$5(k.prototype,$Object$3$7(v))},$String$3$5=String,tryToString$4$6=function(v){try{return $String$3$5(v)}catch{return"Object"}},isCallable$g$6=isCallable$k$4,tryToString$3$6=tryToString$4$6,$TypeError$a$6=TypeError,aCallable$7$4=function(v){if(isCallable$g$6(v))return v;throw $TypeError$a$6(tryToString$3$6(v)+" is not a function")},aCallable$6$4=aCallable$7$4,getMethod$3$5=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$6$4(ie)},call$d$5=functionCall$a,isCallable$f$6=isCallable$k$4,isObject$6$6=isObject$7$6,$TypeError$9$6=TypeError,ordinaryToPrimitive$1$a=function(v,k){var ie,ae;if(k==="string"&&isCallable$f$6(ie=v.toString)&&!isObject$6$6(ae=call$d$5(ie,v))||isCallable$f$6(ie=v.valueOf)&&!isObject$6$6(ae=call$d$5(ie,v))||k!=="string"&&isCallable$f$6(ie=v.toString)&&!isObject$6$6(ae=call$d$5(ie,v)))return ae;throw $TypeError$9$6("Can't convert object to primitive value")},shared$3$a={exports:{}},global$g$6=global$j$4,defineProperty$5$5=Object.defineProperty,defineGlobalProperty$3$8=function(v,k){try{defineProperty$5$5(global$g$6,v,{value:k,configurable:!0,writable:!0})}catch{global$g$6[v]=k}return k},global$f$6=global$j$4,defineGlobalProperty$2$a=defineGlobalProperty$3$8,SHARED$a="__core-js_shared__",store$3$a=global$f$6[SHARED$a]||defineGlobalProperty$2$a(SHARED$a,{}),sharedStore$a=store$3$a,store$2$a=sharedStore$a;(shared$3$a.exports=function(v,k){return store$2$a[v]||(store$2$a[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$c=requireObjectCoercible$2$8,$Object$2$a=Object,toObject$3$5=function(v){return $Object$2$a(requireObjectCoercible$c(v))},uncurryThis$a$8=functionUncurryThis$a,toObject$2$7=toObject$3$5,hasOwnProperty$a=uncurryThis$a$8({}.hasOwnProperty),hasOwnProperty_1$a=Object.hasOwn||function v(k,ie){return hasOwnProperty$a(toObject$2$7(k),ie)},uncurryThis$9$8=functionUncurryThis$a,id$c=0,postfix$a=Math.random(),toString$1$a=uncurryThis$9$8(1 .toString),uid$2$a=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$1$a(++id$c+postfix$a,36)},global$e$6=global$j$4,shared$2$a=shared$3$a.exports,hasOwn$a$5=hasOwnProperty_1$a,uid$1$a=uid$2$a,NATIVE_SYMBOL$b=nativeSymbol$a,USE_SYMBOL_AS_UID$b=useSymbolAsUid$a,WellKnownSymbolsStore$a=shared$2$a("wks"),Symbol$1$a=global$e$6.Symbol,symbolFor$a=Symbol$1$a&&Symbol$1$a.for,createWellKnownSymbol$a=USE_SYMBOL_AS_UID$b?Symbol$1$a:Symbol$1$a&&Symbol$1$a.withoutSetter||uid$1$a,wellKnownSymbol$e$5=function(v){if(!hasOwn$a$5(WellKnownSymbolsStore$a,v)||!(NATIVE_SYMBOL$b||typeof WellKnownSymbolsStore$a[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$b&&hasOwn$a$5(Symbol$1$a,v)?WellKnownSymbolsStore$a[v]=Symbol$1$a[v]:USE_SYMBOL_AS_UID$b&&symbolFor$a?WellKnownSymbolsStore$a[v]=symbolFor$a(k):WellKnownSymbolsStore$a[v]=createWellKnownSymbol$a(k)}return WellKnownSymbolsStore$a[v]},call$c$6=functionCall$a,isObject$5$a=isObject$7$6,isSymbol$1$a=isSymbol$2$a,getMethod$2$6=getMethod$3$5,ordinaryToPrimitive$b=ordinaryToPrimitive$1$a,wellKnownSymbol$d$5=wellKnownSymbol$e$5,$TypeError$8$6=TypeError,TO_PRIMITIVE$a=wellKnownSymbol$d$5("toPrimitive"),toPrimitive$1$a=function(v,k){if(!isObject$5$a(v)||isSymbol$1$a(v))return v;var ie=getMethod$2$6(v,TO_PRIMITIVE$a),ae;if(ie){if(k===void 0&&(k="default"),ae=call$c$6(ie,v,k),!isObject$5$a(ae)||isSymbol$1$a(ae))return ae;throw $TypeError$8$6("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$b(v,k)},toPrimitive$c=toPrimitive$1$a,isSymbol$d=isSymbol$2$a,toPropertyKey$2$8=function(v){var k=toPrimitive$c(v,"string");return isSymbol$d(k)?k:k+""},global$d$6=global$j$4,isObject$4$a=isObject$7$6,document$3$4=global$d$6.document,EXISTS$1$a=isObject$4$a(document$3$4)&&isObject$4$a(document$3$4.createElement),documentCreateElement$2$5=function(v){return EXISTS$1$a?document$3$4.createElement(v):{}},DESCRIPTORS$a$5=descriptors$a,fails$9$8=fails$e$5,createElement$1$4=documentCreateElement$2$5,ie8DomDefine$a=!DESCRIPTORS$a$5&&!fails$9$8(function(){return Object.defineProperty(createElement$1$4("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$9$5=descriptors$a,call$b$6=functionCall$a,propertyIsEnumerableModule$1$7=objectPropertyIsEnumerable$8,createPropertyDescriptor$2$8=createPropertyDescriptor$3$5,toIndexedObject$4$5=toIndexedObject$5$5,toPropertyKey$1$a=toPropertyKey$2$8,hasOwn$9$5=hasOwnProperty_1$a,IE8_DOM_DEFINE$1$8=ie8DomDefine$a,$getOwnPropertyDescriptor$1$8=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$8.f=DESCRIPTORS$9$5?$getOwnPropertyDescriptor$1$8:function v(k,ie){if(k=toIndexedObject$4$5(k),ie=toPropertyKey$1$a(ie),IE8_DOM_DEFINE$1$8)try{return $getOwnPropertyDescriptor$1$8(k,ie)}catch{}if(hasOwn$9$5(k,ie))return createPropertyDescriptor$2$8(!call$b$6(propertyIsEnumerableModule$1$7.f,k,ie),k[ie])};var objectDefineProperty$a={},DESCRIPTORS$8$5=descriptors$a,fails$8$8=fails$e$5,v8PrototypeDefineBug$a=DESCRIPTORS$8$5&&fails$8$8(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$3$a=isObject$7$6,$String$2$9=String,$TypeError$7$6=TypeError,anObject$c$5=function(v){if(isObject$3$a(v))return v;throw $TypeError$7$6($String$2$9(v)+" is not an object")},DESCRIPTORS$7$8=descriptors$a,IE8_DOM_DEFINE$b=ie8DomDefine$a,V8_PROTOTYPE_DEFINE_BUG$1$5=v8PrototypeDefineBug$a,anObject$b$5=anObject$c$5,toPropertyKey$e=toPropertyKey$2$8,$TypeError$6$6=TypeError,$defineProperty$a=Object.defineProperty,$getOwnPropertyDescriptor$b=Object.getOwnPropertyDescriptor,ENUMERABLE$a="enumerable",CONFIGURABLE$1$a="configurable",WRITABLE$a="writable";objectDefineProperty$a.f=DESCRIPTORS$7$8?V8_PROTOTYPE_DEFINE_BUG$1$5?function v(k,ie,ae){if(anObject$b$5(k),ie=toPropertyKey$e(ie),anObject$b$5(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$a in ae&&!ae[WRITABLE$a]){var ce=$getOwnPropertyDescriptor$b(k,ie);ce&&ce[WRITABLE$a]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$a in ae?ae[CONFIGURABLE$1$a]:ce[CONFIGURABLE$1$a],enumerable:ENUMERABLE$a in ae?ae[ENUMERABLE$a]:ce[ENUMERABLE$a],writable:!1})}return $defineProperty$a(k,ie,ae)}:$defineProperty$a:function v(k,ie,ae){if(anObject$b$5(k),ie=toPropertyKey$e(ie),anObject$b$5(ae),IE8_DOM_DEFINE$b)try{return $defineProperty$a(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$6$6("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$6$8=descriptors$a,definePropertyModule$4$5=objectDefineProperty$a,createPropertyDescriptor$1$a=createPropertyDescriptor$3$5,createNonEnumerableProperty$4$5=DESCRIPTORS$6$8?function(v,k,ie){return definePropertyModule$4$5.f(v,k,createPropertyDescriptor$1$a(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$a={exports:{}},DESCRIPTORS$5$a=descriptors$a,hasOwn$8$6=hasOwnProperty_1$a,FunctionPrototype$1$a=Function.prototype,getDescriptor$a=DESCRIPTORS$5$a&&Object.getOwnPropertyDescriptor,EXISTS$b=hasOwn$8$6(FunctionPrototype$1$a,"name"),PROPER$a=EXISTS$b&&function v(){}.name==="something",CONFIGURABLE$b=EXISTS$b&&(!DESCRIPTORS$5$a||DESCRIPTORS$5$a&&getDescriptor$a(FunctionPrototype$1$a,"name").configurable),functionName$a={EXISTS:EXISTS$b,PROPER:PROPER$a,CONFIGURABLE:CONFIGURABLE$b},uncurryThis$8$8=functionUncurryThis$a,isCallable$e$6=isCallable$k$4,store$1$a=sharedStore$a,functionToString$a=uncurryThis$8$8(Function.toString);isCallable$e$6(store$1$a.inspectSource)||(store$1$a.inspectSource=function(v){return functionToString$a(v)});var inspectSource$4$4=store$1$a.inspectSource,global$c$6=global$j$4,isCallable$d$6=isCallable$k$4,inspectSource$3$6=inspectSource$4$4,WeakMap$1$a=global$c$6.WeakMap,nativeWeakMap$a=isCallable$d$6(WeakMap$1$a)&&/native code/.test(inspectSource$3$6(WeakMap$1$a)),shared$1$a=shared$3$a.exports,uid$d=uid$2$a,keys$8=shared$1$a("keys"),sharedKey$3$5=function(v){return keys$8[v]||(keys$8[v]=uid$d(v))},hiddenKeys$4$5={},NATIVE_WEAK_MAP$a=nativeWeakMap$a,global$b$6=global$j$4,uncurryThis$7$8=functionUncurryThis$a,isObject$2$a=isObject$7$6,createNonEnumerableProperty$3$5=createNonEnumerableProperty$4$5,hasOwn$7$7=hasOwnProperty_1$a,shared$d=sharedStore$a,sharedKey$2$5=sharedKey$3$5,hiddenKeys$3$8=hiddenKeys$4$5,OBJECT_ALREADY_INITIALIZED$a="Object already initialized",TypeError$2$6=global$b$6.TypeError,WeakMap$c=global$b$6.WeakMap,set$1$6,get$b,has$a,enforce$a=function(v){return has$a(v)?get$b(v):set$1$6(v,{})},getterFor$a=function(v){return function(k){var ie;if(!isObject$2$a(k)||(ie=get$b(k)).type!==v)throw TypeError$2$6("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$a||shared$d.state?(store$d=shared$d.state||(shared$d.state=new WeakMap$c),wmget$a=uncurryThis$7$8(store$d.get),wmhas$a=uncurryThis$7$8(store$d.has),wmset$a=uncurryThis$7$8(store$d.set),set$1$6=function(v,k){if(wmhas$a(store$d,v))throw new TypeError$2$6(OBJECT_ALREADY_INITIALIZED$a);return k.facade=v,wmset$a(store$d,v,k),k},get$b=function(v){return wmget$a(store$d,v)||{}},has$a=function(v){return wmhas$a(store$d,v)}):(STATE$a=sharedKey$2$5("state"),hiddenKeys$3$8[STATE$a]=!0,set$1$6=function(v,k){if(hasOwn$7$7(v,STATE$a))throw new TypeError$2$6(OBJECT_ALREADY_INITIALIZED$a);return k.facade=v,createNonEnumerableProperty$3$5(v,STATE$a,k),k},get$b=function(v){return hasOwn$7$7(v,STATE$a)?v[STATE$a]:{}},has$a=function(v){return hasOwn$7$7(v,STATE$a)});var store$d,wmget$a,wmhas$a,wmset$a,STATE$a,internalState$a={set:set$1$6,get:get$b,has:has$a,enforce:enforce$a,getterFor:getterFor$a},fails$7$a=fails$e$5,isCallable$c$6=isCallable$k$4,hasOwn$6$8=hasOwnProperty_1$a,DESCRIPTORS$4$a=descriptors$a,CONFIGURABLE_FUNCTION_NAME$1$5=functionName$a.CONFIGURABLE,inspectSource$2$a=inspectSource$4$4,InternalStateModule$2$5=internalState$a,enforceInternalState$c=InternalStateModule$2$5.enforce,getInternalState$1$5=InternalStateModule$2$5.get,defineProperty$4$5=Object.defineProperty,CONFIGURABLE_LENGTH$a=DESCRIPTORS$4$a&&!fails$7$a(function(){return defineProperty$4$5(function(){},"length",{value:8}).length!==8}),TEMPLATE$a=String(String).split("String"),makeBuiltIn$1$a=makeBuiltIn$2$a.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$6$8(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$5&&v.name!==k)&&(DESCRIPTORS$4$a?defineProperty$4$5(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$a&&ie&&hasOwn$6$8(ie,"arity")&&v.length!==ie.arity&&defineProperty$4$5(v,"length",{value:ie.arity});try{ie&&hasOwn$6$8(ie,"constructor")&&ie.constructor?DESCRIPTORS$4$a&&defineProperty$4$5(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$c(v);return hasOwn$6$8(ae,"source")||(ae.source=TEMPLATE$a.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$a(function v(){return isCallable$c$6(this)&&getInternalState$1$5(this).source||inspectSource$2$a(this)},"toString");var isCallable$b$7=isCallable$k$4,definePropertyModule$3$6=objectDefineProperty$a,makeBuiltIn$c=makeBuiltIn$2$a.exports,defineGlobalProperty$1$a=defineGlobalProperty$3$8,defineBuiltIn$6$5=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$b$7(ie)&&makeBuiltIn$c(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$a(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$3$6.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$8={},ceil$8=Math.ceil,floor$b=Math.floor,mathTrunc$8=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$b:ceil$8)(ie)},trunc2$8=mathTrunc$8,toIntegerOrInfinity$2$8=function(v){var k=+v;return k!==k||k===0?0:trunc2$8(k)},toIntegerOrInfinity$1$8=toIntegerOrInfinity$2$8,max$9=Math.max,min$1$8=Math.min,toAbsoluteIndex$1$8=function(v,k){var ie=toIntegerOrInfinity$1$8(v);return ie<0?max$9(ie+k,0):min$1$8(ie,k)},toIntegerOrInfinity$d=toIntegerOrInfinity$2$8,min$9=Math.min,toLength$1$8=function(v){return v>0?min$9(toIntegerOrInfinity$d(v),9007199254740991):0},toLength$d=toLength$1$8,lengthOfArrayLike$2$6=function(v){return toLength$d(v.length)},toIndexedObject$3$8=toIndexedObject$5$5,toAbsoluteIndex$c=toAbsoluteIndex$1$8,lengthOfArrayLike$1$8=lengthOfArrayLike$2$6,createMethod$9=function(v){return function(k,ie,ae){var ce=toIndexedObject$3$8(k),fe=lengthOfArrayLike$1$8(ce),le=toAbsoluteIndex$c(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$8={includes:createMethod$9(!0),indexOf:createMethod$9(!1)},uncurryThis$6$a=functionUncurryThis$a,hasOwn$5$8=hasOwnProperty_1$a,toIndexedObject$2$8=toIndexedObject$5$5,indexOf$8=arrayIncludes$8.indexOf,hiddenKeys$2$8=hiddenKeys$4$5,push$9=uncurryThis$6$a([].push),objectKeysInternal$8=function(v,k){var ie=toIndexedObject$2$8(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$5$8(hiddenKeys$2$8,fe)&&hasOwn$5$8(ie,fe)&&push$9(ce,fe);for(;k.length>ae;)hasOwn$5$8(ie,fe=k[ae++])&&(~indexOf$8(ce,fe)||push$9(ce,fe));return ce},enumBugKeys$3$5=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$7=objectKeysInternal$8,enumBugKeys$2$7=enumBugKeys$3$5,hiddenKeys$1$8=enumBugKeys$2$7.concat("length","prototype");objectGetOwnPropertyNames$8.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$7(k,hiddenKeys$1$8)};var objectGetOwnPropertySymbols$8={};objectGetOwnPropertySymbols$8.f=Object.getOwnPropertySymbols;var getBuiltIn$5$6=getBuiltIn$8$4,uncurryThis$5$a=functionUncurryThis$a,getOwnPropertyNamesModule$8=objectGetOwnPropertyNames$8,getOwnPropertySymbolsModule$1$7=objectGetOwnPropertySymbols$8,anObject$a$5=anObject$c$5,concat$1$7=uncurryThis$5$a([].concat),ownKeys$1$8=getBuiltIn$5$6("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$8.f(anObject$a$5(k)),ae=getOwnPropertySymbolsModule$1$7.f;return ae?concat$1$7(ie,ae(k)):ie},hasOwn$4$a=hasOwnProperty_1$a,ownKeys2$8=ownKeys$1$8,getOwnPropertyDescriptorModule$9=objectGetOwnPropertyDescriptor$8,definePropertyModule$2$8=objectDefineProperty$a,copyConstructorProperties$1$8=function(v,k,ie){for(var ae=ownKeys2$8(k),ce=definePropertyModule$2$8.f,fe=getOwnPropertyDescriptorModule$9.f,le=0;lefe;)for(var pe=IndexedObject$a(arguments[fe++]),ye=le?concat$a(objectKeys$1$7(pe),le(pe)):objectKeys$1$7(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$3$a||call$a$6(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$7,$$7$4=_export$8,assign2$7=objectAssign$7;$$7$4({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$7},{assign:assign2$7});var wellKnownSymbol$c$5=wellKnownSymbol$e$5,TO_STRING_TAG$3$5=wellKnownSymbol$c$5("toStringTag"),test$9={};test$9[TO_STRING_TAG$3$5]="z";var toStringTagSupport$9=String(test$9)==="[object z]",TO_STRING_TAG_SUPPORT$9=toStringTagSupport$9,isCallable$9$a=isCallable$k$4,classofRaw$b=classofRaw$1$9,wellKnownSymbol$b$5=wellKnownSymbol$e$5,TO_STRING_TAG$2$6=wellKnownSymbol$b$5("toStringTag"),$Object$1$a=Object,CORRECT_ARGUMENTS$9=classofRaw$b(function(){return arguments}())=="Arguments",tryGet$9=function(v,k){try{return v[k]}catch{}},classof$4$6=TO_STRING_TAG_SUPPORT$9?classofRaw$b:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$9(k=$Object$1$a(v),TO_STRING_TAG$2$6))=="string"?ie:CORRECT_ARGUMENTS$9?classofRaw$b(k):(ae=classofRaw$b(k))=="Object"&&isCallable$9$a(k.callee)?"Arguments":ae},classof$3$6=classof$4$6,$String$1$a=String,toString2$8=function(v){if(classof$3$6(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$1$a(v)},anObject$9$5=anObject$c$5,regexpFlags$8=function(){var v=anObject$9$5(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$9$6=functionCall$a,hasOwn$3$a=hasOwnProperty_1$a,isPrototypeOf$2$6=objectIsPrototypeOf$a,regExpFlags$8=regexpFlags$8,RegExpPrototype$1$8=RegExp.prototype,regexpGetFlags$8=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$8)&&!hasOwn$3$a(v,"flags")&&isPrototypeOf$2$6(RegExpPrototype$1$8,v)?call$9$6(regExpFlags$8,v):k},PROPER_FUNCTION_NAME$1$5=functionName$a.PROPER,defineBuiltIn$4$5=defineBuiltIn$6$5,anObject$8$6=anObject$c$5,$toString$8=toString2$8,fails$4$a=fails$e$5,getRegExpFlags$8=regexpGetFlags$8,TO_STRING$8="toString",RegExpPrototype$9=RegExp.prototype,n$ToString$8=RegExpPrototype$9[TO_STRING$8],NOT_GENERIC$8=fails$4$a(function(){return n$ToString$8.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$8=PROPER_FUNCTION_NAME$1$5&&n$ToString$8.name!=TO_STRING$8;(NOT_GENERIC$8||INCORRECT_NAME$8)&&defineBuiltIn$4$5(RegExp.prototype,TO_STRING$8,function(){var k=anObject$8$6(this),ie=$toString$8(k.source),ae=$toString$8(getRegExpFlags$8(k));return"/"+ie+"/"+ae},{unsafe:!0});var objectDefineProperties$5={},DESCRIPTORS$2$a=descriptors$a,V8_PROTOTYPE_DEFINE_BUG$b=v8PrototypeDefineBug$a,definePropertyModule$1$a=objectDefineProperty$a,anObject$7$6=anObject$c$5,toIndexedObject$1$8=toIndexedObject$5$5,objectKeys$9=objectKeys$2$5;objectDefineProperties$5.f=DESCRIPTORS$2$a&&!V8_PROTOTYPE_DEFINE_BUG$b?Object.defineProperties:function v(k,ie){anObject$7$6(k);for(var ae=toIndexedObject$1$8(ie),ce=objectKeys$9(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$1$a.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$4$6=getBuiltIn$8$4,html$2$4=getBuiltIn$4$6("document","documentElement"),anObject$6$6=anObject$c$5,definePropertiesModule$5=objectDefineProperties$5,enumBugKeys$b=enumBugKeys$3$5,hiddenKeys$c=hiddenKeys$4$5,html$1$6=html$2$4,documentCreateElement$1$5=documentCreateElement$2$5,sharedKey$1$a=sharedKey$3$5,GT$5=">",LT$5="<",PROTOTYPE$6="prototype",SCRIPT$5="script",IE_PROTO$1$5=sharedKey$1$a("IE_PROTO"),EmptyConstructor$5=function(){},scriptTag$5=function(v){return LT$5+SCRIPT$5+GT$5+v+LT$5+"/"+SCRIPT$5+GT$5},NullProtoObjectViaActiveX$5=function(v){v.write(scriptTag$5("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$5=function(){var v=documentCreateElement$1$5("iframe"),k="java"+SCRIPT$5+":",ie;return v.style.display="none",html$1$6.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$5("document.F=Object")),ie.close(),ie.F},activeXDocument$5,NullProtoObject$5=function(){try{activeXDocument$5=new ActiveXObject("htmlfile")}catch{}NullProtoObject$5=typeof document<"u"?document.domain&&activeXDocument$5?NullProtoObjectViaActiveX$5(activeXDocument$5):NullProtoObjectViaIFrame$5():NullProtoObjectViaActiveX$5(activeXDocument$5);for(var v=enumBugKeys$b.length;v--;)delete NullProtoObject$5[PROTOTYPE$6][enumBugKeys$b[v]];return NullProtoObject$5()};hiddenKeys$c[IE_PROTO$1$5]=!0;var objectCreate$5=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$5[PROTOTYPE$6]=anObject$6$6(k),ae=new EmptyConstructor$5,EmptyConstructor$5[PROTOTYPE$6]=null,ae[IE_PROTO$1$5]=k):ae=NullProtoObject$5(),ie===void 0?ae:definePropertiesModule$5.f(ae,ie)},wellKnownSymbol$a$6=wellKnownSymbol$e$5,create$1$5=objectCreate$5,defineProperty$2$8=objectDefineProperty$a.f,UNSCOPABLES$5=wellKnownSymbol$a$6("unscopables"),ArrayPrototype$1$5=Array.prototype;ArrayPrototype$1$5[UNSCOPABLES$5]==null&&defineProperty$2$8(ArrayPrototype$1$5,UNSCOPABLES$5,{configurable:!0,value:create$1$5(null)});var addToUnscopables$1$5=function(v){ArrayPrototype$1$5[UNSCOPABLES$5][v]=!0},iterators$6={},fails$3$a=fails$e$5,correctPrototypeGetter$5=!fails$3$a(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype}),hasOwn$2$a=hasOwnProperty_1$a,isCallable$8$a=isCallable$k$4,toObject$g=toObject$3$5,sharedKey$c=sharedKey$3$5,CORRECT_PROTOTYPE_GETTER$5=correctPrototypeGetter$5,IE_PROTO$6=sharedKey$c("IE_PROTO"),$Object$e=Object,ObjectPrototype$7=$Object$e.prototype,objectGetPrototypeOf$5=CORRECT_PROTOTYPE_GETTER$5?$Object$e.getPrototypeOf:function(v){var k=toObject$g(v);if(hasOwn$2$a(k,IE_PROTO$6))return k[IE_PROTO$6];var ie=k.constructor;return isCallable$8$a(ie)&&k instanceof ie?ie.prototype:k instanceof $Object$e?ObjectPrototype$7:null},fails$2$a=fails$e$5,isCallable$7$a=isCallable$k$4,getPrototypeOf$1$5=objectGetPrototypeOf$5,defineBuiltIn$3$6=defineBuiltIn$6$5,wellKnownSymbol$9$6=wellKnownSymbol$e$5,ITERATOR$5$5=wellKnownSymbol$9$6("iterator"),BUGGY_SAFARI_ITERATORS$1$5=!1,IteratorPrototype$2$5,PrototypeOfArrayIteratorPrototype$5,arrayIterator$5;[].keys&&(arrayIterator$5=[].keys(),"next"in arrayIterator$5?(PrototypeOfArrayIteratorPrototype$5=getPrototypeOf$1$5(getPrototypeOf$1$5(arrayIterator$5)),PrototypeOfArrayIteratorPrototype$5!==Object.prototype&&(IteratorPrototype$2$5=PrototypeOfArrayIteratorPrototype$5)):BUGGY_SAFARI_ITERATORS$1$5=!0);var NEW_ITERATOR_PROTOTYPE$5=IteratorPrototype$2$5==null||fails$2$a(function(){var v={};return IteratorPrototype$2$5[ITERATOR$5$5].call(v)!==v});NEW_ITERATOR_PROTOTYPE$5&&(IteratorPrototype$2$5={});isCallable$7$a(IteratorPrototype$2$5[ITERATOR$5$5])||defineBuiltIn$3$6(IteratorPrototype$2$5,ITERATOR$5$5,function(){return this});var iteratorsCore$5={IteratorPrototype:IteratorPrototype$2$5,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1$5},defineProperty$1$a=objectDefineProperty$a.f,hasOwn$1$a=hasOwnProperty_1$a,wellKnownSymbol$8$6=wellKnownSymbol$e$5,TO_STRING_TAG$1$9=wellKnownSymbol$8$6("toStringTag"),setToStringTag$3$5=function(v,k,ie){v&&!ie&&(v=v.prototype),v&&!hasOwn$1$a(v,TO_STRING_TAG$1$9)&&defineProperty$1$a(v,TO_STRING_TAG$1$9,{configurable:!0,value:k})},IteratorPrototype$1$5=iteratorsCore$5.IteratorPrototype,create2$4=objectCreate$5,createPropertyDescriptor$f=createPropertyDescriptor$3$5,setToStringTag$2$5=setToStringTag$3$5,Iterators$4$5=iterators$6,returnThis$1$5=function(){return this},createIteratorConstructor$1$5=function(v,k,ie,ae){var ce=k+" Iterator";return v.prototype=create2$4(IteratorPrototype$1$5,{next:createPropertyDescriptor$f(+!ae,ie)}),setToStringTag$2$5(v,ce,!1),Iterators$4$5[ce]=returnThis$1$5,v},isCallable$6$a=isCallable$k$4,$String$d=String,$TypeError$5$a=TypeError,aPossiblePrototype$1$6=function(v){if(typeof v=="object"||isCallable$6$a(v))return v;throw $TypeError$5$a("Can't set "+$String$d(v)+" as a prototype")},uncurryThis$3$a=functionUncurryThis$a,anObject$5$6=anObject$c$5,aPossiblePrototype$7=aPossiblePrototype$1$6,objectSetPrototypeOf$6=Object.setPrototypeOf||("__proto__"in{}?function(){var v=!1,k={},ie;try{ie=uncurryThis$3$a(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),ie(k,[]),v=k instanceof Array}catch{}return function(ce,fe){return anObject$5$6(ce),aPossiblePrototype$7(fe),v?ie(ce,fe):ce.__proto__=fe,ce}}():void 0),$$6$4=_export$8,call$8$6=functionCall$a,FunctionName$6=functionName$a,isCallable$5$a=isCallable$k$4,createIteratorConstructor$6=createIteratorConstructor$1$5,getPrototypeOf$8=objectGetPrototypeOf$5,setPrototypeOf$1$5=objectSetPrototypeOf$6,setToStringTag$1$6=setToStringTag$3$5,createNonEnumerableProperty$1$a=createNonEnumerableProperty$4$5,defineBuiltIn$2$7=defineBuiltIn$6$5,wellKnownSymbol$7$6=wellKnownSymbol$e$5,Iterators$3$5=iterators$6,IteratorsCore$5=iteratorsCore$5,PROPER_FUNCTION_NAME$a=FunctionName$6.PROPER,CONFIGURABLE_FUNCTION_NAME$c=FunctionName$6.CONFIGURABLE,IteratorPrototype$7=IteratorsCore$5.IteratorPrototype,BUGGY_SAFARI_ITERATORS$6=IteratorsCore$5.BUGGY_SAFARI_ITERATORS,ITERATOR$4$5=wellKnownSymbol$7$6("iterator"),KEYS$5="keys",VALUES$5="values",ENTRIES$5="entries",returnThis$6=function(){return this},defineIterator$1$5=function(v,k,ie,ae,ce,fe,le){createIteratorConstructor$6(ie,k,ae);var ve=function(ur){if(ur===ce&&cr)return cr;if(!BUGGY_SAFARI_ITERATORS$6&&ur in me)return me[ur];switch(ur){case KEYS$5:return function(){return new ie(this,ur)};case VALUES$5:return function(){return new ie(this,ur)};case ENTRIES$5:return function(){return new ie(this,ur)}}return function(){return new ie(this)}},pe=k+" Iterator",ye=!1,me=v.prototype,Ee=me[ITERATOR$4$5]||me["@@iterator"]||ce&&me[ce],cr=!BUGGY_SAFARI_ITERATORS$6&&Ee||ve(ce),Br=k=="Array"&&me.entries||Ee,$r,Pr,Ar;if(Br&&($r=getPrototypeOf$8(Br.call(new v)),$r!==Object.prototype&&$r.next&&(getPrototypeOf$8($r)!==IteratorPrototype$7&&(setPrototypeOf$1$5?setPrototypeOf$1$5($r,IteratorPrototype$7):isCallable$5$a($r[ITERATOR$4$5])||defineBuiltIn$2$7($r,ITERATOR$4$5,returnThis$6)),setToStringTag$1$6($r,pe,!0))),PROPER_FUNCTION_NAME$a&&ce==VALUES$5&&Ee&&Ee.name!==VALUES$5&&(CONFIGURABLE_FUNCTION_NAME$c?createNonEnumerableProperty$1$a(me,"name",VALUES$5):(ye=!0,cr=function(){return call$8$6(Ee,this)})),ce)if(Pr={values:ve(VALUES$5),keys:fe?cr:ve(KEYS$5),entries:ve(ENTRIES$5)},le)for(Ar in Pr)(BUGGY_SAFARI_ITERATORS$6||ye||!(Ar in me))&&defineBuiltIn$2$7(me,Ar,Pr[Ar]);else $$6$4({target:k,proto:!0,forced:BUGGY_SAFARI_ITERATORS$6||ye},Pr);return me[ITERATOR$4$5]!==cr&&defineBuiltIn$2$7(me,ITERATOR$4$5,cr,{name:ce}),Iterators$3$5[k]=cr,Pr},toIndexedObject$e=toIndexedObject$5$5,addToUnscopables$6=addToUnscopables$1$5,Iterators$2$5=iterators$6,InternalStateModule$1$6=internalState$a,defineProperty3$9=objectDefineProperty$a.f,defineIterator$6=defineIterator$1$5,DESCRIPTORS$1$a=descriptors$a,ARRAY_ITERATOR$5="Array Iterator",setInternalState$1$5=InternalStateModule$1$6.set,getInternalState$e=InternalStateModule$1$6.getterFor(ARRAY_ITERATOR$5),es_array_iterator$4=defineIterator$6(Array,"Array",function(v,k){setInternalState$1$5(this,{type:ARRAY_ITERATOR$5,target:toIndexedObject$e(v),index:0,kind:k})},function(){var v=getInternalState$e(this),k=v.target,ie=v.kind,ae=v.index++;return!k||ae>=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$5=Iterators$2$5.Arguments=Iterators$2$5.Array;addToUnscopables$6("keys");addToUnscopables$6("values");addToUnscopables$6("entries");if(DESCRIPTORS$1$a&&values$5.name!=="values")try{defineProperty3$9(values$5,"name",{value:"values"})}catch(v){}var classof$2$7=classofRaw$1$9,global$9$a=global$j$4,engineIsNode$4=classof$2$7(global$9$a.process)=="process",getBuiltIn$3$8=getBuiltIn$8$4,definePropertyModule$g=objectDefineProperty$a,wellKnownSymbol$6$6=wellKnownSymbol$e$5,DESCRIPTORS$n=descriptors$a,SPECIES$2$6=wellKnownSymbol$6$6("species"),setSpecies$1$6=function(v){var k=getBuiltIn$3$8(v),ie=definePropertyModule$g.f;DESCRIPTORS$n&&k&&!k[SPECIES$2$6]&&ie(k,SPECIES$2$6,{configurable:!0,get:function(){return this}})},isPrototypeOf$1$9=objectIsPrototypeOf$a,$TypeError$4$a=TypeError,anInstance$1$6=function(v,k){if(isPrototypeOf$1$9(k,v))return v;throw $TypeError$4$a("Incorrect invocation")},uncurryThis$2$a=functionUncurryThis$a,fails$1$a=fails$e$5,isCallable$4$a=isCallable$k$4,classof$1$9=classof$4$6,getBuiltIn$2$a=getBuiltIn$8$4,inspectSource$1$a=inspectSource$4$4,noop$6=function(){},empty$5=[],construct$6=getBuiltIn$2$a("Reflect","construct"),constructorRegExp$6=/^\s*(?:class|function)\b/,exec$7=uncurryThis$2$a(constructorRegExp$6.exec),INCORRECT_TO_STRING$6=!constructorRegExp$6.exec(noop$6),isConstructorModern$6=function v(k){if(!isCallable$4$a(k))return!1;try{return construct$6(noop$6,empty$5,k),!0}catch{return!1}},isConstructorLegacy$6=function v(k){if(!isCallable$4$a(k))return!1;switch(classof$1$9(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$6||!!exec$7(constructorRegExp$6,inspectSource$1$a(k))}catch{return!0}};isConstructorLegacy$6.sham=!0;var isConstructor$1$6=!construct$6||fails$1$a(function(){var v;return isConstructorModern$6(isConstructorModern$6.call)||!isConstructorModern$6(Object)||!isConstructorModern$6(function(){v=!0})||v})?isConstructorLegacy$6:isConstructorModern$6,isConstructor3$6=isConstructor$1$6,tryToString$2$6=tryToString$4$6,$TypeError$3$a=TypeError,aConstructor$1$6=function(v){if(isConstructor3$6(v))return v;throw $TypeError$3$a(tryToString$2$6(v)+" is not a constructor")},anObject$4$7=anObject$c$5,aConstructor$8=aConstructor$1$6,wellKnownSymbol$5$6=wellKnownSymbol$e$5,SPECIES$1$6=wellKnownSymbol$5$6("species"),speciesConstructor$1$6=function(v,k){var ie=anObject$4$7(v).constructor,ae;return ie===void 0||(ae=anObject$4$7(ie)[SPECIES$1$6])==null?k:aConstructor$8(ae)},NATIVE_BIND$1$a=functionBindNative$a,FunctionPrototype$c=Function.prototype,apply$1$6=FunctionPrototype$c.apply,call$7$6=FunctionPrototype$c.call,functionApply$6=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$1$a?call$7$6.bind(apply$1$6):function(){return call$7$6.apply(apply$1$6,arguments)}),uncurryThis$1$a=functionUncurryThis$a,aCallable$5$4=aCallable$7$4,NATIVE_BIND$d=functionBindNative$a,bind$4$4=uncurryThis$1$a(uncurryThis$1$a.bind),functionBindContext$6=function(v,k){return aCallable$5$4(v),k===void 0?v:NATIVE_BIND$d?bind$4$4(v,k):function(){return v.apply(k,arguments)}},uncurryThis$u=functionUncurryThis$a,arraySlice$1$6=uncurryThis$u([].slice),$TypeError$2$a=TypeError,validateArgumentsLength$1$4=function(v,k){if(v=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3$4(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$8]=ae,SUBCLASSING$4=ie.then(function(){})instanceof ae,SUBCLASSING$4?!k&&IS_BROWSER$4&&!NATIVE_PROMISE_REJECTION_EVENT$1$4:!0}),promiseConstructorDetection$4={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$4,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$4,SUBCLASSING:SUBCLASSING$4},newPromiseCapability$2$4={},aCallable$4$6=aCallable$7$4,PromiseCapability$4=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$6(k),this.reject=aCallable$4$6(ie)};newPromiseCapability$2$4.f=function(v){return new PromiseCapability$4(v)};var $$5$4=_export$8,IS_NODE$6=engineIsNode$4,global$2$a=global$j$4,call$6$7=functionCall$a,defineBuiltIn$1$a=defineBuiltIn$6$5,setPrototypeOf$a=objectSetPrototypeOf$6,setToStringTag$9=setToStringTag$3$5,setSpecies$7=setSpecies$1$6,aCallable$3$6=aCallable$7$4,isCallable$1$a=isCallable$k$4,isObject$1$a=isObject$7$6,anInstance$8=anInstance$1$6,speciesConstructor$7=speciesConstructor$1$6,task$5=task$1$4.set,microtask$5=microtask$1$4,hostReportErrors$5=hostReportErrors$1$4,perform$2$4=perform$3$4,Queue$5=queue$5,InternalStateModule$e=internalState$a,NativePromiseConstructor$2$4=promiseNativeConstructor$4,PromiseConstructorDetection$4=promiseConstructorDetection$4,newPromiseCapabilityModule$3$4=newPromiseCapability$2$4,PROMISE$4="Promise",FORCED_PROMISE_CONSTRUCTOR$4$4=PromiseConstructorDetection$4.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$5=PromiseConstructorDetection$4.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$4=PromiseConstructorDetection$4.SUBCLASSING,getInternalPromiseState$4=InternalStateModule$e.getterFor(PROMISE$4),setInternalState$8=InternalStateModule$e.set,NativePromisePrototype$1$4=NativePromiseConstructor$2$4&&NativePromiseConstructor$2$4.prototype,PromiseConstructor$4=NativePromiseConstructor$2$4,PromisePrototype$4=NativePromisePrototype$1$4,TypeError$1$a=global$2$a.TypeError,document$1$6=global$2$a.document,process$b=global$2$a.process,newPromiseCapability$1$4=newPromiseCapabilityModule$3$4.f,newGenericPromiseCapability$4=newPromiseCapability$1$4,DISPATCH_EVENT$4=!!(document$1$6&&document$1$6.createEvent&&global$2$a.dispatchEvent),UNHANDLED_REJECTION$4="unhandledrejection",REJECTION_HANDLED$4="rejectionhandled",PENDING$4=0,FULFILLED$4=1,REJECTED$4=2,HANDLED$4=1,UNHANDLED$4=2,Internal$4,OwnPromiseCapability$4,PromiseWrapper$4,nativeThen$4,isThenable$4=function(v){var k;return isObject$1$a(v)&&isCallable$1$a(k=v.then)?k:!1},callReaction$4=function(v,k){var ie=k.value,ae=k.state==FULFILLED$4,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$4&&onHandleUnhandled$4(k),k.rejection=HANDLED$4),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$a("Promise-chain cycle")):(ye=isThenable$4(pe))?call$6$7(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$5=function(v,k){v.notified||(v.notified=!0,microtask$5(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$4(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$4(v)}))},dispatchEvent$4=function(v,k,ie){var ae,ce;DISPATCH_EVENT$4?(ae=document$1$6.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$2$a.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$5&&(ce=global$2$a["on"+v])?ce(ae):v===UNHANDLED_REJECTION$4&&hostReportErrors$5("Unhandled promise rejection",ie)},onUnhandled$4=function(v){call$6$7(task$5,global$2$a,function(){var k=v.facade,ie=v.value,ae=isUnhandled$4(v),ce;if(ae&&(ce=perform$2$4(function(){IS_NODE$6?process$b.emit("unhandledRejection",ie,k):dispatchEvent$4(UNHANDLED_REJECTION$4,k,ie)}),v.rejection=IS_NODE$6||isUnhandled$4(v)?UNHANDLED$4:HANDLED$4,ce.error))throw ce.value})},isUnhandled$4=function(v){return v.rejection!==HANDLED$4&&!v.parent},onHandleUnhandled$4=function(v){call$6$7(task$5,global$2$a,function(){var k=v.facade;IS_NODE$6?process$b.emit("rejectionHandled",k):dispatchEvent$4(REJECTION_HANDLED$4,k,v.value)})},bind$1$6=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$4=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$4,notify$5(v,!0))},internalResolve$4=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$a("Promise can't be resolved itself");var ae=isThenable$4(k);ae?microtask$5(function(){var ce={done:!1};try{call$6$7(ae,k,bind$1$6(internalResolve$4,ce,v),bind$1$6(internalReject$4,ce,v))}catch(fe){internalReject$4(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$4,notify$5(v,!1))}catch(ce){internalReject$4({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$4&&(PromiseConstructor$4=function(k){anInstance$8(this,PromisePrototype$4),aCallable$3$6(k),call$6$7(Internal$4,this);var ie=getInternalPromiseState$4(this);try{k(bind$1$6(internalResolve$4,ie),bind$1$6(internalReject$4,ie))}catch(ae){internalReject$4(ie,ae)}},PromisePrototype$4=PromiseConstructor$4.prototype,Internal$4=function(k){setInternalState$8(this,{type:PROMISE$4,done:!1,notified:!1,parent:!1,reactions:new Queue$5,rejection:!1,state:PENDING$4,value:void 0})},Internal$4.prototype=defineBuiltIn$1$a(PromisePrototype$4,"then",function(k,ie){var ae=getInternalPromiseState$4(this),ce=newPromiseCapability$1$4(speciesConstructor$7(this,PromiseConstructor$4));return ae.parent=!0,ce.ok=isCallable$1$a(k)?k:!0,ce.fail=isCallable$1$a(ie)&&ie,ce.domain=IS_NODE$6?process$b.domain:void 0,ae.state==PENDING$4?ae.reactions.add(ce):microtask$5(function(){callReaction$4(ce,ae)}),ce.promise}),OwnPromiseCapability$4=function(){var v=new Internal$4,k=getInternalPromiseState$4(v);this.promise=v,this.resolve=bind$1$6(internalResolve$4,k),this.reject=bind$1$6(internalReject$4,k)},newPromiseCapabilityModule$3$4.f=newPromiseCapability$1$4=function(v){return v===PromiseConstructor$4||v===PromiseWrapper$4?new OwnPromiseCapability$4(v):newGenericPromiseCapability$4(v)},isCallable$1$a(NativePromiseConstructor$2$4)&&NativePromisePrototype$1$4!==Object.prototype)){nativeThen$4=NativePromisePrototype$1$4.then,NATIVE_PROMISE_SUBCLASSING$4||defineBuiltIn$1$a(NativePromisePrototype$1$4,"then",function(k,ie){var ae=this;return new PromiseConstructor$4(function(ce,fe){call$6$7(nativeThen$4,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1$4.constructor}catch{}setPrototypeOf$a&&setPrototypeOf$a(NativePromisePrototype$1$4,PromisePrototype$4)}$$5$4({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$4},{Promise:PromiseConstructor$4});setToStringTag$9(PromiseConstructor$4,PROMISE$4,!1);setSpecies$7(PROMISE$4);var wellKnownSymbol$3$9=wellKnownSymbol$e$5,Iterators$1$6=iterators$6,ITERATOR$3$5=wellKnownSymbol$3$9("iterator"),ArrayPrototype$7=Array.prototype,isArrayIteratorMethod$1$6=function(v){return v!==void 0&&(Iterators$1$6.Array===v||ArrayPrototype$7[ITERATOR$3$5]===v)},classof$i=classof$4$6,getMethod$1$a=getMethod$3$5,Iterators$a=iterators$6,wellKnownSymbol$2$9=wellKnownSymbol$e$5,ITERATOR$2$6=wellKnownSymbol$2$9("iterator"),getIteratorMethod$2$6=function(v){if(v!=null)return getMethod$1$a(v,ITERATOR$2$6)||getMethod$1$a(v,"@@iterator")||Iterators$a[classof$i(v)]},call$5$8=functionCall$a,aCallable$2$6=aCallable$7$4,anObject$3$9=anObject$c$5,tryToString$1$a=tryToString$4$6,getIteratorMethod$1$6=getIteratorMethod$2$6,$TypeError$1$a=TypeError,getIterator$1$6=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$6(v):k;if(aCallable$2$6(ie))return anObject$3$9(call$5$8(ie,v));throw $TypeError$1$a(tryToString$1$a(v)+" is not iterable")},call$4$a=functionCall$a,anObject$2$a=anObject$c$5,getMethod$d=getMethod$3$5,iteratorClose$1$4=function(v,k,ie){var ae,ce;anObject$2$a(v);try{if(ae=getMethod$d(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$4$a(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$2$a(ae),ie},bind$f=functionBindContext$6,call$3$a=functionCall$a,anObject$1$a=anObject$c$5,tryToString$e=tryToString$4$6,isArrayIteratorMethod$7=isArrayIteratorMethod$1$6,lengthOfArrayLike$e=lengthOfArrayLike$2$6,isPrototypeOf$e=objectIsPrototypeOf$a,getIterator$7=getIterator$1$6,getIteratorMethod$8=getIteratorMethod$2$6,iteratorClose$5=iteratorClose$1$4,$TypeError$l=TypeError,Result$4=function(v,k){this.stopped=v,this.result=k},ResultPrototype$4=Result$4.prototype,iterate$2$4=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$f(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$5(pe,"normal",ur),new Result$4(!0,ur)},Ar=function(ur){return ce?(anObject$1$a(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$8(v),!ye)throw $TypeError$l(tryToString$e(v)+" is not iterable");if(isArrayIteratorMethod$7(ye)){for(me=0,Ee=lengthOfArrayLike$e(v);Ee>me;me++)if(cr=Ar(v[me]),cr&&isPrototypeOf$e(ResultPrototype$4,cr))return cr;return new Result$4(!1)}pe=getIterator$7(v,ye)}for(Br=pe.next;!($r=call$3$a(Br,pe)).done;){try{cr=Ar($r.value)}catch(ur){iteratorClose$5(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$e(ResultPrototype$4,cr))return cr}return new Result$4(!1)},wellKnownSymbol$1$a=wellKnownSymbol$e$5,ITERATOR$1$6=wellKnownSymbol$1$a("iterator"),SAFE_CLOSING$6=!1;try{called$6=0,iteratorWithReturn$6={next:function(){return{done:!!called$6++}},return:function(){SAFE_CLOSING$6=!0}},iteratorWithReturn$6[ITERATOR$1$6]=function(){return this},Array.from(iteratorWithReturn$6,function(){throw 2})}catch(v){}var called$6,iteratorWithReturn$6,checkCorrectnessOfIteration$1$6=function(v,k){if(!k&&!SAFE_CLOSING$6)return!1;var ie=!1;try{var ae={};ae[ITERATOR$1$6]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1$4=promiseNativeConstructor$4,checkCorrectnessOfIteration$7=checkCorrectnessOfIteration$1$6,FORCED_PROMISE_CONSTRUCTOR$3$4=promiseConstructorDetection$4.CONSTRUCTOR,promiseStaticsIncorrectIteration$4=FORCED_PROMISE_CONSTRUCTOR$3$4||!checkCorrectnessOfIteration$7(function(v){NativePromiseConstructor$1$4.all(v).then(void 0,function(){})}),$$4$5=_export$8,call$2$a=functionCall$a,aCallable$1$a=aCallable$7$4,newPromiseCapabilityModule$2$4=newPromiseCapability$2$4,perform$1$4=perform$3$4,iterate$1$4=iterate$2$4,PROMISE_STATICS_INCORRECT_ITERATION$1$4=promiseStaticsIncorrectIteration$4;$$4$5({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$4},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$4.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$4(function(){var ve=aCallable$1$a(ie.resolve),pe=[],ye=0,me=1;iterate$1$4(k,function(Ee){var cr=ye++,Br=!1;me++,call$2$a(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$3$6=_export$8,FORCED_PROMISE_CONSTRUCTOR$2$4=promiseConstructorDetection$4.CONSTRUCTOR,NativePromiseConstructor$7=promiseNativeConstructor$4,getBuiltIn$1$a=getBuiltIn$8$4,isCallable$s=isCallable$k$4,defineBuiltIn$g=defineBuiltIn$6$5,NativePromisePrototype$5=NativePromiseConstructor$7&&NativePromiseConstructor$7.prototype;$$3$6({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$4,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$s(NativePromiseConstructor$7)&&(method$4=getBuiltIn$1$a("Promise").prototype.catch,NativePromisePrototype$5.catch!==method$4&&defineBuiltIn$g(NativePromisePrototype$5,"catch",method$4,{unsafe:!0}));var method$4,$$2$6=_export$8,call$1$a=functionCall$a,aCallable$h=aCallable$7$4,newPromiseCapabilityModule$1$4=newPromiseCapability$2$4,perform$7=perform$3$4,iterate$6=iterate$2$4,PROMISE_STATICS_INCORRECT_ITERATION$5=promiseStaticsIncorrectIteration$4;$$2$6({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$5},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$4.f(ie),ce=ae.reject,fe=perform$7(function(){var le=aCallable$h(ie.resolve);iterate$6(k,function(ve){call$1$a(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$1$6=_export$8,call$o=functionCall$a,newPromiseCapabilityModule$7=newPromiseCapability$2$4,FORCED_PROMISE_CONSTRUCTOR$1$4=promiseConstructorDetection$4.CONSTRUCTOR;$$1$6({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$4},{reject:function v(k){var ie=newPromiseCapabilityModule$7.f(this);return call$o(ie.reject,void 0,k),ie.promise}});var anObject$k=anObject$c$5,isObject$l=isObject$7$6,newPromiseCapability$6=newPromiseCapability$2$4,promiseResolve$1$4=function(v,k){if(anObject$k(v),isObject$l(k)&&k.constructor===v)return k;var ie=newPromiseCapability$6.f(v),ae=ie.resolve;return ae(k),ie.promise},$$f=_export$8,getBuiltIn$i=getBuiltIn$8$4,FORCED_PROMISE_CONSTRUCTOR$9=promiseConstructorDetection$4.CONSTRUCTOR,promiseResolve$5=promiseResolve$1$4;getBuiltIn$i("Promise");$$f({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$9},{resolve:function v(k){return promiseResolve$5(this,k)}});var domIterables$4={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$b=documentCreateElement$2$5,classList$4=documentCreateElement$b("span").classList,DOMTokenListPrototype$1$4=classList$4&&classList$4.constructor&&classList$4.constructor.prototype,domTokenListPrototype$4=DOMTokenListPrototype$1$4===Object.prototype?void 0:DOMTokenListPrototype$1$4,global$1$a=global$j$4,DOMIterables$4=domIterables$4,DOMTokenListPrototype$5=domTokenListPrototype$4,ArrayIteratorMethods$4=es_array_iterator$4,createNonEnumerableProperty$g=createNonEnumerableProperty$4$5,wellKnownSymbol$o=wellKnownSymbol$e$5,ITERATOR$a=wellKnownSymbol$o("iterator"),TO_STRING_TAG$c=wellKnownSymbol$o("toStringTag"),ArrayValues$4=ArrayIteratorMethods$4.values,handlePrototype$4=function(v,k){if(v){if(v[ITERATOR$a]!==ArrayValues$4)try{createNonEnumerableProperty$g(v,ITERATOR$a,ArrayValues$4)}catch{v[ITERATOR$a]=ArrayValues$4}if(v[TO_STRING_TAG$c]||createNonEnumerableProperty$g(v,TO_STRING_TAG$c,k),DOMIterables$4[k]){for(var ie in ArrayIteratorMethods$4)if(v[ie]!==ArrayIteratorMethods$4[ie])try{createNonEnumerableProperty$g(v,ie,ArrayIteratorMethods$4[ie])}catch{v[ie]=ArrayIteratorMethods$4[ie]}}}};for(COLLECTION_NAME$4 in DOMIterables$4)handlePrototype$4(global$1$a[COLLECTION_NAME$4]&&global$1$a[COLLECTION_NAME$4].prototype,COLLECTION_NAME$4);var COLLECTION_NAME$4;handlePrototype$4(DOMTokenListPrototype$5,"DOMTokenList");function __awaiter$c(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$b="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZsAAAGbCAMAAAAlRs3KAAAC/VBMVEUAAAB1gdddWs6cq+JsadRdXalLTJhFRXtTU415iNhOTo5+pe41NXxjYM8qKmscHGuRn+MSGZl0ovJ3eL6EqPEXF19QUcFdnfNlctZZmvNvc9prbdaMsPA1NoYkJHFdXdFSg+08ReFMO9VVTdg3k/Vdk/BHSL1bXac+mPVDlvQcIqFKcupJlfQvL3lRculLS404ivJLRNw9P7dHkPIoKHQ/lPQpLapPm/RGRohmlvF0oPCBg7pFPt4UFFBOQ9AkKag0OK9Ie+04PLJYT9ZeYLtJRsc4OH9LXOE/TuIrL64kJG9dZ+EVHJxDZudFgu5AXuZHk/NHjfE9PMA2OLVQfOtLd+tQjfBrbLZ7fbFGdOs8d+1Dj/JCK9hPT49Jk/JqnvJaVc4jI3EXHptRTclVUcxOS8dUQdhNQ91SO9pZUdBLRt5WR9UgIGlLScVYU80YGFJXTNJGRcMbG1tDfO1BXOVDeexSPttJR8RVRNZDV+MUFEVTUMohIW5BaOhCcuqkoe9Eh+9DgO5CQcBCdetAX+VHT+FCbelBZedPQdxBaulITeBJS99GUeFFU+JAYeZYTtEdHWBKSd8XF04WFkseHmNCWeQTE0JEVeISEj94a+49Pr1WStRQP9xAQL5FivBCb+lFj/IfH2YZGVVBY+YaGlhGlvNEhO4VFUk5O7tGkvNFjPEPDzoRET0tMLDCv/02OLgwM7IqLa00NrZaVM8cIqAcHF4kKagyNbQhJqVCWuQODjVGmvQnK6tEQsIKCi0dHW1MR8tQSsuAcfUYGGmrqPNiXd97bfFKSN9hXNFNS9CvrPQGBiMFDJMTE2ZIRMhfWtsVG6NFRc0/QMfIxf9AlvQICFxQTtUoJ3lpZNU5OcCbmOw0NJrRzv8ZHopoYONcV9UwL4ampP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HzSdzc6G52dnQDynM3Nj4eHK8VyUrwExFzCrKztbnX20Y3PPAfNPD84eP56sVg3ZFoOGiOTeli6vbOxs7//4oS7tTcHb96+WV0tXsgYIISFZqXK6dLdmy/2nz7dwY8xZ87rt73eW/w4WFm5d6VcTso8FglzifNmvVKsoCMsnWc/h+j1egc99PPyzp3bxeJy3UqcFy3RoxtGBqlfR6544N/1DHLR0OXAnykaYljJZNI0zVQqhZ/4tzWnaeJFEARBEARBEARBEARBEARBEARBEASBMr8ADJvUZ0bGgJQAAAAASUVORK5CYII=",setupWalletState$2=(v,k)=>__awaiter$c(void 0,void 0,void 0,function*(){const ie=new nearAPI$5.keyStores.BrowserLocalStorageKeyStore(window.localStorage,"_meteor_wallet"),ae=yield nearAPI$5.connect(Object.assign(Object.assign({keyStore:ie},k),{headers:{}}));return{wallet:new import_sdk$1.MeteorWallet({near:ae,appKeyPrefix:"near_app"}),keyStore:ie}}),createMeteorWalletInjected=({options:v,logger:k,store:ie,params:ae})=>__awaiter$c(void 0,void 0,void 0,function*(){const ce=yield setupWalletState$2(ae,v.network),fe=()=>__awaiter$c(void 0,void 0,void 0,function*(){const ve=ce.wallet.getAccountId(),pe=ce.wallet.account();if(!ve||!pe)return[];const ye=yield pe.connection.signer.getPublicKey(pe.accountId,v.network.networkId);return[{accountId:ve,publicKey:ye?ye.toString():""}]}),le=ve=>__awaiter$c(void 0,void 0,void 0,function*(){const pe=ce.wallet.account(),{networkId:ye,signer:me,provider:Ee}=pe.connection,cr=yield me.getPublicKey(pe.accountId,ye);return Promise.all(ve.map((Br,$r)=>__awaiter$c(void 0,void 0,void 0,function*(){const Pr=Br.actions.map(jr=>createAction(jr)),Ar=yield pe.accessKeyForTransaction(Br.receiverId,Pr,cr);if(!Ar)throw new Error(`Failed to find matching key for transaction sent to ${Br.receiverId}`);const ur=yield Ee.block({finality:"final"});return nearAPI$5.transactions.createTransaction(pe.accountId,nearAPI$5.utils.PublicKey.from(Ar.public_key),Br.receiverId,Ar.access_key.nonce+$r+1,Pr,nearAPI$5.utils.serialize.base_decode(ur.header.hash))})))});return{signIn({contractId:ve,methodNames:pe=[]}){return __awaiter$c(this,void 0,void 0,function*(){return k.log("MeteorWallet:signIn",{contractId:ve,methodNames:pe}),pe.length?yield ce.wallet.requestSignIn({methods:pe,type:import_sdk$1.EMeteorWalletSignInType.SELECTED_METHODS,contract_id:ve}):yield ce.wallet.requestSignIn({type:import_sdk$1.EMeteorWalletSignInType.ALL_METHODS,contract_id:ve}),fe()})},signOut(){return __awaiter$c(this,void 0,void 0,function*(){ce.wallet.isSignedIn()&&(yield ce.wallet.signOut())})},isSignedIn(){return __awaiter$c(this,void 0,void 0,function*(){return ce.wallet?ce.wallet.isSignedIn():!1})},getAccounts(){return __awaiter$c(this,void 0,void 0,function*(){return fe()})},verifyOwner({message:ve}){return __awaiter$c(this,void 0,void 0,function*(){k.log("MeteorWallet:verifyOwner",{message:ve});const pe=yield ce.wallet.verifyOwner({message:ve});if(pe.success)return pe.payload;throw new Error(`Couldn't verify owner: ${pe.message}`)})},signMessage({message:ve,nonce:pe,recipient:ye,state:me}){return __awaiter$c(this,void 0,void 0,function*(){k.log("MeteorWallet:signMessage",{message:ve,nonce:pe,recipient:ye,state:me});const Ee=ce.wallet.getAccountId(),cr=yield ce.wallet.signMessage({message:ve,nonce:pe,recipient:ye,accountId:Ee,state:me});if(cr.success)return cr.payload;throw new Error(`Couldn't sign message owner: ${cr.message}`)})},signAndSendTransaction({signerId:ve,receiverId:pe,actions:ye}){return __awaiter$c(this,void 0,void 0,function*(){k.log("MeteorWallet:signAndSendTransaction",{signerId:ve,receiverId:pe,actions:ye});const{contract:me}=ie.getState();if(!ce.wallet.isSignedIn())throw new Error("Wallet not signed in");if(!pe&&!me)throw new Error("No receiver found to send the transaction to");return ce.wallet.account().signAndSendTransaction_direct({receiverId:pe!=null?pe:me.contractId,actions:ye.map(cr=>createAction(cr))})})},signAndSendTransactions({transactions:ve}){return __awaiter$c(this,void 0,void 0,function*(){if(k.log("MeteorWallet:signAndSendTransactions",{transactions:ve}),!ce.wallet.isSignedIn())throw new Error("Wallet not signed in");return ce.wallet.requestSignTransactions({transactions:yield le(ve)})})},buildImportAccountsUrl(){return`https://wallet.meteorwallet.app/batch-import?network=${ce.wallet._networkId}`}}});function setupMeteorWallet({iconUrl:v=icon$b,deprecated:k=!1}={}){return()=>__awaiter$c(this,void 0,void 0,function*(){return{id:"meteor-wallet",type:"injected",metadata:{available:!0,name:"Meteor Wallet",description:"Securely store and stake your NEAR tokens and compatible assets with Meteor.",iconUrl:v,deprecated:k,downloadUrl:"https://wallet.meteorwallet.app",useUrlAccountImport:!0},init:ie=>createMeteorWalletInjected(Object.assign(Object.assign({},ie),{params:{iconUrl:v}}))}})}var require_nightly_qr_code=__commonJS$1({"node_modules/@nightlylabs/qr-code/lib/nightly-qr-code.js"(v,k){(function(ie,ae){typeof v=="object"&&typeof k=="object"?k.exports=ae():typeof define=="function"&&define.amd?define([],ae):typeof v=="object"?v.NightlyQRCode=ae():ie.NightlyQRCode=ae()})(v,function(){return(()=>{var ie={192:(le,ve)=>{var pe,ye,me=function(){var Ee=function(Kr,be){var kr=Kr,xr=ur[be],Wr=null,Jt=0,Xr=null,zr=[],Jr={},Nr=function(vn,pn){Wr=function(Sn){for(var Qn=new Array(Sn),Jn=0;Jn=7&&mn(vn),Xr==null&&(Xr=bn(kr,xr,zr)),In(Xr,pn)},Hr=function(vn,pn){for(var Sn=-1;Sn<=7;Sn+=1)if(!(vn+Sn<=-1||Jt<=vn+Sn))for(var Qn=-1;Qn<=7;Qn+=1)pn+Qn<=-1||Jt<=pn+Qn||(Wr[vn+Sn][pn+Qn]=0<=Sn&&Sn<=6&&(Qn==0||Qn==6)||0<=Qn&&Qn<=6&&(Sn==0||Sn==6)||2<=Sn&&Sn<=4&&2<=Qn&&Qn<=4)},On=function(){for(var vn=8;vn>Sn&1)==1;Wr[Math.floor(Sn/3)][Sn%3+Jt-8-3]=Qn}for(Sn=0;Sn<18;Sn+=1)Qn=!vn&&(pn>>Sn&1)==1,Wr[Sn%3+Jt-8-3][Math.floor(Sn/3)]=Qn},Nn=function(vn,pn){for(var Sn=xr<<3|pn,Qn=jr.getBCHTypeInfo(Sn),Jn=0;Jn<15;Jn+=1){var ui=!vn&&(Qn>>Jn&1)==1;Jn<6?Wr[Jn][8]=ui:Jn<8?Wr[Jn+1][8]=ui:Wr[Jt-15+Jn][8]=ui}for(Jn=0;Jn<15;Jn+=1)ui=!vn&&(Qn>>Jn&1)==1,Jn<8?Wr[8][Jt-Jn-1]=ui:Jn<9?Wr[8][15-Jn-1+1]=ui:Wr[8][15-Jn-1]=ui;Wr[Jt-8][8]=!vn},In=function(vn,pn){for(var Sn=-1,Qn=Jt-1,Jn=7,ui=0,gi=jr.getMaskFunction(pn),di=Jt-1;di>0;di-=2)for(di==6&&(di-=1);;){for(var Ci=0;Ci<2;Ci+=1)if(Wr[Qn][di-Ci]==null){var yi=!1;ui>>Jn&1)==1),gi(Qn,di-Ci)&&(yi=!yi),Wr[Qn][di-Ci]=yi,(Jn-=1)==-1&&(ui+=1,Jn=7)}if((Qn+=Sn)<0||Jt<=Qn){Qn-=Sn,Sn=-Sn;break}}},bn=function(vn,pn,Sn){for(var Qn=Vr.getRSBlocks(vn,pn),Jn=Gr(),ui=0;ui8*di)throw"code length overflow. ("+Jn.getLengthInBits()+">"+8*di+")";for(Jn.getLengthInBits()+4<=8*di&&Jn.put(0,4);Jn.getLengthInBits()%8!=0;)Jn.putBit(!1);for(;!(Jn.getLengthInBits()>=8*di||(Jn.put(236,8),Jn.getLengthInBits()>=8*di));)Jn.put(17,8);return function(Ci,yi){for(var li=0,Pi=0,Ai=0,Oi=new Array(yi.length),to=new Array(yi.length),En=0;En=0?zn.getAt(gn):0}}var xn=0;for(Tn=0;Tnyi)&&(gi=yi,di=Ci)}return di}())},Jr.createTableTag=function(vn,pn){vn=vn||2;var Sn="";Sn+='";for(var Jn=0;Jn';Sn+=""}return(Sn+="")+"
"},Jr.createSvgTag=function(vn,pn,Sn,Qn){var Jn={};typeof arguments[0]=="object"&&(vn=(Jn=arguments[0]).cellSize,pn=Jn.margin,Sn=Jn.alt,Qn=Jn.title),vn=vn||2,pn=pn===void 0?4*vn:pn,(Sn=typeof Sn=="string"?{text:Sn}:Sn||{}).text=Sn.text||null,Sn.id=Sn.text?Sn.id||"qrcode-description":null,(Qn=typeof Qn=="string"?{text:Qn}:Qn||{}).text=Qn.text||null,Qn.id=Qn.text?Qn.id||"qrcode-title":null;var ui,gi,di,Ci,yi=Jr.getModuleCount()*vn+2*pn,li="";for(Ci="l"+vn+",0 0,"+vn+" -"+vn+",0 0,-"+vn+"z ",li+=''+ii(Qn.text)+"":"",li+=Sn.text?''+ii(Sn.text)+"":"",li+='',li+='"},Jr.createDataURL=function(vn,pn){vn=vn||2,pn=pn===void 0?4*vn:pn;var Sn=Jr.getModuleCount()*vn+2*pn,Qn=pn,Jn=Sn-pn;return Xt(Sn,Sn,function(ui,gi){if(Qn<=ui&&ui"};var ii=function(vn){for(var pn="",Sn=0;Sn":pn+=">";break;case"&":pn+="&";break;case'"':pn+=""";break;default:pn+=Qn}}return pn};return Jr.createASCII=function(vn,pn){if((vn=vn||1)<2)return function(Oi){Oi=Oi===void 0?2:Oi;var to,En,Bt,Zt,Tn,ei=1*Jr.getModuleCount()+2*Oi,zn=Oi,gn=ei-Oi,xn={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},Hn={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},Ln="";for(to=0;to=gn?Hn[Tn]:xn[Tn];Ln+=` +`}return ei%2&&Oi>0?Ln.substring(0,Ln.length-ei-1)+Array(ei+1).join("\u2580"):Ln.substring(0,Ln.length-1)}(pn);vn-=1,pn=pn===void 0?2*vn:pn;var Sn,Qn,Jn,ui,gi=Jr.getModuleCount()*vn+2*pn,di=pn,Ci=gi-pn,yi=Array(vn+1).join("\u2588\u2588"),li=Array(vn+1).join(" "),Pi="",Ai="";for(Sn=0;Sn>>8),Jt.push(255&Jr)):Jt.push(xr)}}return Jt}};var cr,Br,$r,Pr,Ar,ur={L:1,M:0,Q:3,H:2},jr=(cr=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],Br=1335,$r=7973,Ar=function(Kr){for(var be=0;Kr!=0;)be+=1,Kr>>>=1;return be},(Pr={}).getBCHTypeInfo=function(Kr){for(var be=Kr<<10;Ar(be)-Ar(Br)>=0;)be^=Br<=0;)be^=$r<5&&(kr+=3+Jt-5)}for(xr=0;xr=256;)xr-=255;return Kr[xr]}}}();function Lr(Kr,be){if(Kr.length===void 0)throw Kr.length+"/"+be;var kr=function(){for(var Wr=0;Wr>>7-xr%8&1)==1},put:function(xr,Wr){for(var Jt=0;Jt>>Wr-Jt-1&1)==1)},getLengthInBits:function(){return be},putBit:function(xr){var Wr=Math.floor(be/8);Kr.length<=Wr&&Kr.push(0),xr&&(Kr[Wr]|=128>>>be%8),be+=1}};return kr},Ur=function(Kr){var be=Kr,kr={getMode:function(){return 1},getLength:function(Jt){return be.length},write:function(Jt){for(var Xr=be,zr=0;zr+2>>8&255)+(255&zr),Wr.put(zr,13),Xr+=2}if(Xr>>8)},writeBytes:function(kr,xr,Wr){xr=xr||0,Wr=Wr||kr.length;for(var Jt=0;Jt0&&(kr+=","),kr+=Kr[xr];return kr+"]"}};return be},Qt=function(Kr){var be=Kr,kr=0,xr=0,Wr=0,Jt={read:function(){for(;Wr<8;){if(kr>=be.length){if(Wr==0)return-1;throw"unexpected end of file./"+Wr}var zr=be.charAt(kr);if(kr+=1,zr=="=")return Wr=0,-1;zr.match(/^\s$/)||(xr=xr<<6|Xr(zr.charCodeAt(0)),Wr+=6)}var Jr=xr>>>Wr-8&255;return Wr-=8,Jr}},Xr=function(zr){if(65<=zr&&zr<=90)return zr-65;if(97<=zr&&zr<=122)return zr-97+26;if(48<=zr&&zr<=57)return zr-48+52;if(zr==43)return 62;if(zr==47)return 63;throw"c:"+zr};return Jt},Xt=function(Kr,be,kr){for(var xr=function(Hr,On){var Gn=Hr,mn=On,Nn=new Array(Hr*On),In={setPixel:function(vn,pn,Sn){Nn[pn*Gn+vn]=Sn},write:function(vn){vn.writeString("GIF87a"),vn.writeShort(Gn),vn.writeShort(mn),vn.writeByte(128),vn.writeByte(0),vn.writeByte(0),vn.writeByte(0),vn.writeByte(0),vn.writeByte(0),vn.writeByte(255),vn.writeByte(255),vn.writeByte(255),vn.writeString(","),vn.writeShort(0),vn.writeShort(0),vn.writeShort(Gn),vn.writeShort(mn),vn.writeByte(0);var pn=bn(2);vn.writeByte(2);for(var Sn=0;pn.length-Sn>255;)vn.writeByte(255),vn.writeBytes(pn,Sn,255),Sn+=255;vn.writeByte(pn.length-Sn),vn.writeBytes(pn,Sn,pn.length-Sn),vn.writeByte(0),vn.writeString(";")}},bn=function(vn){for(var pn=1<>>En!=0)throw"length over";for(;di+En>=8;)gi.writeByte(255&(to<>>=8-di,Ci=0,di=0;Ci|=to<0&&gi.writeByte(Ci)}});li.write(pn,Qn);var Pi=0,Ai=String.fromCharCode(Nn[Pi]);for(Pi+=1;Pi=6;)In(Hr>>>On-6),On-=6},Nn.flush=function(){if(On>0&&(In(Hr<<6-On),Hr=0,On=0),Gn%3!=0)for(var ii=3-Gn%3,vn=0;vn>6,128|63&Pr):Pr<55296||Pr>=57344?Br.push(224|Pr>>12,128|Pr>>6&63,128|63&Pr):($r++,Pr=65536+((1023&Pr)<<10|1023&cr.charCodeAt($r)),Br.push(240|Pr>>18,128|Pr>>12&63,128|Pr>>6&63,128|63&Pr))}return Br}(Ee)},(ye=typeof(pe=function(){return me})=="function"?pe.apply(ve,[]):pe)===void 0||(le.exports=ye)}},ae={};function ce(le){var ve=ae[le];if(ve!==void 0)return ve.exports;var pe=ae[le]={exports:{}};return ie[le](pe,pe.exports,ce),pe.exports}ce.n=le=>{var ve=le&&le.__esModule?()=>le.default:()=>le;return ce.d(ve,{a:ve}),ve},ce.d=(le,ve)=>{for(var pe in ve)ce.o(ve,pe)&&!ce.o(le,pe)&&Object.defineProperty(le,pe,{enumerable:!0,get:ve[pe]})},ce.o=(le,ve)=>Object.prototype.hasOwnProperty.call(le,ve),ce.r=le=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(le,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(le,"__esModule",{value:!0})};var fe={};return(()=>{ce.r(fe),ce.d(fe,{cornerDotTypes:()=>ve,cornerSquareTypes:()=>pe,default:()=>ei,dotTypes:()=>le,drawTypes:()=>Pr,errorCorrectionLevels:()=>ye,errorCorrectionPercents:()=>me,generateNightlyQRCodeXML:()=>Tn,modes:()=>Ee,qrTypes:()=>$r});const le={dots:"dots",rounded:"rounded",classy:"classy",classyRounded:"classy-rounded",square:"square",extraRounded:"extra-rounded",distRounded:"dist-rounded"},ve={dot:"dot",square:"square",tear:"tear"},pe={dot:"dot",square:"square",extraRounded:"extra-rounded",tear:"tear"},ye={L:"L",M:"M",Q:"Q",H:"H"},me={L:.07,M:.15,Q:.25,H:.3},Ee={numeric:"Numeric",alphanumeric:"Alphanumeric",byte:"Byte",kanji:"Kanji"};for(var cr={},Br=0;Br<=40;Br++)cr[Br]=Br;const $r=cr,Pr={canvas:"canvas",svg:"svg"};function Ar(zn){switch(!0){case/^[0-9]*$/.test(zn):return Ee.numeric;case/^[0-9A-Z $%*+\-./:]*$/.test(zn):return Ee.alphanumeric;default:return Ee.byte}}var ur=function(){return ur=Object.assign||function(zn){for(var gn,xn=1,Hn=arguments.length;xnHn||Ln&&Ln2||Ei&&Ri||Oo&&Ui)this._basicSquare({x:xn,y:Hn,size:Ln,context:ti,rotation:0});else{if(io===2){var So=0;return Ei&&Oo?So=Math.PI/2:Oo&&Ri?So=Math.PI:Ri&&Ui&&(So=-Math.PI/2),void this._basicCornerRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:So})}if(io===1)return So=0,Oo?So=Math.PI/2:Ri?So=Math.PI:Ui&&(So=-Math.PI/2),void this._basicSideRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:So})}else this._basicDot({x:xn,y:Hn,size:Ln,context:ti,rotation:0})},zn.prototype._drawExtraRounded=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size,ti=gn.context,oi=gn.getNeighbor,Ei=oi?+oi(-1,0):0,Ri=oi?+oi(1,0):0,Oo=oi?+oi(0,-1):0,Ui=oi?+oi(0,1):0,io=Ei+Ri+Oo+Ui;if(io!==0)if(io>2||Ei&&Ri||Oo&&Ui)this._basicSquare({x:xn,y:Hn,size:Ln,context:ti,rotation:0});else{if(io===2){var So=0;return Ei&&Oo?So=Math.PI/2:Oo&&Ri?So=Math.PI:Ri&&Ui&&(So=-Math.PI/2),void this._basicCornerExtraRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:So})}if(io===1)return So=0,Oo?So=Math.PI/2:Ri?So=Math.PI:Ui&&(So=-Math.PI/2),void this._basicSideRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:So})}else this._basicDot({x:xn,y:Hn,size:Ln,context:ti,rotation:0})},zn.prototype._drawClassy=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size,ti=gn.context,oi=gn.getNeighbor,Ei=oi?+oi(-1,0):0,Ri=oi?+oi(1,0):0,Oo=oi?+oi(0,-1):0,Ui=oi?+oi(0,1):0;Ei+Ri+Oo+Ui!==0?Ei||Oo?Ri||Ui?this._basicSquare({x:xn,y:Hn,size:Ln,context:ti,rotation:0}):this._basicCornerRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:Math.PI/2}):this._basicCornerRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:-Math.PI/2}):this._basicCornersRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:Math.PI/2})},zn.prototype._drawClassyRounded=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size,ti=gn.context,oi=gn.getNeighbor,Ei=oi?+oi(-1,0):0,Ri=oi?+oi(1,0):0,Oo=oi?+oi(0,-1):0,Ui=oi?+oi(0,1):0;Ei+Ri+Oo+Ui!==0?Ei||Oo?Ri||Ui?this._basicSquare({x:xn,y:Hn,size:Ln,context:ti,rotation:0}):this._basicCornerExtraRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:-Math.PI/2}):this._basicCornersRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:Math.PI/2})},zn.prototype._drawDistRounded=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size,ti=gn.context;this._basicDistRounded({x:xn,y:Hn,size:Ln,context:ti,rotation:0})},zn}();const hn=Qr;var Yt=function(){return Yt=Object.assign||function(zn){for(var gn,xn=1,Hn=arguments.length;xn0&&zi[zi.length-1])||dn[0]!==6&&dn[0]!==2)){Yr=0;continue}if(dn[0]===3&&(!zi||dn[1]>zi[0]&&dn[1]=(oi-Oo.hideXDots)/2&&Eo<(oi+Oo.hideXDots)/2&&jo>=(oi-Oo.hideYDots)/2&&jo<(oi+Oo.hideYDots)/2||((go=xr[Eo])===null||go===void 0?void 0:go[jo])||((zi=xr[Eo-oi+7])===null||zi===void 0?void 0:zi[jo])||((xo=xr[Eo])===null||xo===void 0?void 0:xo[jo-oi+7])||((Yr=Wr[Eo])===null||Yr===void 0?void 0:Yr[jo])||((Wt=Wr[Eo-oi+7])===null||Wt===void 0?void 0:Wt[jo])||((ln=Wr[Eo])===null||ln===void 0?void 0:ln[jo-oi+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:Oo.width,height:Oo.height,count:oi,dotSize:Ri}),[2]}})},new((Ln=void 0)||(Ln=Promise))(function(oi,Ei){function Ri(io){try{Ui(ti.next(io))}catch(So){Ei(So)}}function Oo(io){try{Ui(ti.throw(io))}catch(So){Ei(So)}}function Ui(io){var So;io.done?oi(io.value):(So=io.value,So instanceof Ln?So:new Ln(function($o){$o(So)})).then(Ri,Oo)}Ui((ti=ti.apply(xn,Hn||[])).next())});var xn,Hn,Ln,ti},zn.prototype.drawBackground=function(){var gn=this.context,xn=this._options;if(gn){if(xn.backgroundOptions.gradient){var Hn=xn.backgroundOptions.gradient,Ln=this._createGradient({context:gn,options:Hn,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});Hn.colorStops.forEach(function(ti){var oi=ti.offset,Ei=ti.color;Ln.addColorStop(oi,Ei)}),gn.fillStyle=Ln}else xn.backgroundOptions.color&&(gn.fillStyle=xn.backgroundOptions.color);gn.fillRect(0,0,this._canvas.width,this._canvas.height)}},zn.prototype.drawDots=function(gn){var xn=this;if(!this._qr)throw"QR code is not defined";var Hn=this.context;if(!Hn)throw"QR code is not defined";var Ln=this._options,ti=this._qr.getModuleCount();if(ti>Ln.width||ti>Ln.height)throw"The canvas is too small.";var oi=Math.min(Ln.width,Ln.height)-2*Ln.margin,Ei=Math.floor(oi/ti),Ri=Math.floor((Ln.width-ti*Ei)/2),Oo=Math.floor((Ln.height-ti*Ei)/2),Ui=new hn({context:Hn,type:Ln.dotsOptions.type});Hn.beginPath();for(var io=function(wo){for(var Eo=function(go){return gn&&!gn(wo,go)?"continue":So._qr.isDark(wo,go)?void Ui.draw(Ri+wo*Ei,Oo+go*Ei,Ei,function(zi,xo){return!(wo+zi<0||go+xo<0||wo+zi>=ti||go+xo>=ti)&&!(gn&&!gn(wo+zi,go+xo))&&!!xn._qr&&xn._qr.isDark(wo+zi,go+xo)}):"continue"},jo=0;jo=0&&Ui<=.25*Math.PI||Ui>1.75*Math.PI&&Ui<=2*Math.PI?(io-=Ri/2,So-=Ri/2*Math.tan(Oo),$o+=Ri/2,mo+=Ri/2*Math.tan(Oo)):Ui>.25*Math.PI&&Ui<=.75*Math.PI?(So-=Ri/2,io-=Ri/2/Math.tan(Oo),mo+=Ri/2,$o+=Ri/2/Math.tan(Oo)):Ui>.75*Math.PI&&Ui<=1.25*Math.PI?(io+=Ri/2,So+=Ri/2*Math.tan(Oo),$o-=Ri/2,mo-=Ri/2*Math.tan(Oo)):Ui>1.25*Math.PI&&Ui<=1.75*Math.PI&&(So+=Ri/2,io+=Ri/2/Math.tan(Oo),mo-=Ri/2,$o-=Ri/2/Math.tan(Oo)),xn=Hn.createLinearGradient(Math.round(io),Math.round(So),Math.round($o),Math.round(mo))}return xn},zn}();var Xr=function(){return Xr=Object.assign||function(zn){for(var gn,xn=1,Hn=arguments.length;xn2||oi&&Ei||Ri&&Oo)this._basicSquare({x:xn,y:Hn,size:Ln,rotation:0});else{if(Ui===2){var io=0;return oi&&Ri?io=Math.PI/2:Ri&&Ei?io=Math.PI:Ei&&Oo&&(io=-Math.PI/2),void this._basicCornerRounded({x:xn,y:Hn,size:Ln,rotation:io})}if(Ui===1)return io=0,Ri?io=Math.PI/2:Ei?io=Math.PI:Oo&&(io=-Math.PI/2),void this._basicSideRounded({x:xn,y:Hn,size:Ln,rotation:io})}else this._basicDot({x:xn,y:Hn,size:Ln,rotation:0})},zn.prototype._drawExtraRounded=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size,ti=gn.getNeighbor,oi=ti?+ti(-1,0):0,Ei=ti?+ti(1,0):0,Ri=ti?+ti(0,-1):0,Oo=ti?+ti(0,1):0,Ui=oi+Ei+Ri+Oo;if(Ui!==0)if(Ui>2||oi&&Ei||Ri&&Oo)this._basicSquare({x:xn,y:Hn,size:Ln,rotation:0});else{if(Ui===2){var io=0;return oi&&Ri?io=Math.PI/2:Ri&&Ei?io=Math.PI:Ei&&Oo&&(io=-Math.PI/2),void this._basicCornerExtraRounded({x:xn,y:Hn,size:Ln,rotation:io})}if(Ui===1)return io=0,Ri?io=Math.PI/2:Ei?io=Math.PI:Oo&&(io=-Math.PI/2),void this._basicSideRounded({x:xn,y:Hn,size:Ln,rotation:io})}else this._basicDot({x:xn,y:Hn,size:Ln,rotation:0})},zn.prototype._drawClassy=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size,ti=gn.getNeighbor,oi=ti?+ti(-1,0):0,Ei=ti?+ti(1,0):0,Ri=ti?+ti(0,-1):0,Oo=ti?+ti(0,1):0;oi+Ei+Ri+Oo!==0?oi||Ri?Ei||Oo?this._basicSquare({x:xn,y:Hn,size:Ln,rotation:0}):this._basicCornerRounded({x:xn,y:Hn,size:Ln,rotation:Math.PI/2}):this._basicCornerRounded({x:xn,y:Hn,size:Ln,rotation:-Math.PI/2}):this._basicCornersRounded({x:xn,y:Hn,size:Ln,rotation:Math.PI/2})},zn.prototype._drawClassyRounded=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size,ti=gn.getNeighbor,oi=ti?+ti(-1,0):0,Ei=ti?+ti(1,0):0,Ri=ti?+ti(0,-1):0,Oo=ti?+ti(0,1):0;oi+Ei+Ri+Oo!==0?oi||Ri?Ei||Oo?this._basicSquare({x:xn,y:Hn,size:Ln,rotation:0}):this._basicCornerExtraRounded({x:xn,y:Hn,size:Ln,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:xn,y:Hn,size:Ln,rotation:-Math.PI/2}):this._basicCornersRounded({x:xn,y:Hn,size:Ln,rotation:Math.PI/2})},zn.prototype._drawDistRounded=function(gn){var xn=gn.x,Hn=gn.y,Ln=gn.size;this._basicDistRounded({x:xn,y:Hn,size:Ln,rotation:0})},zn}();const Jr=zr;var Nr=function(){return Nr=Object.assign||function(zn){for(var gn,xn=1,Hn=arguments.length;xn0&&zi[zi.length-1])||dn[0]!==6&&dn[0]!==2)){Yr=0;continue}if(dn[0]===3&&(!zi||dn[1]>zi[0]&&dn[1]=(oi-Oo.hideXDots)/2&&Eo<(oi+Oo.hideXDots)/2&&jo>=(oi-Oo.hideYDots)/2&&jo<(oi+Oo.hideYDots)/2||((go=In[Eo])===null||go===void 0?void 0:go[jo])||((zi=In[Eo-oi+7])===null||zi===void 0?void 0:zi[jo])||((xo=In[Eo])===null||xo===void 0?void 0:xo[jo-oi+7])||((Yr=bn[Eo])===null||Yr===void 0?void 0:Yr[jo])||((Wt=bn[Eo-oi+7])===null||Wt===void 0?void 0:Wt[jo])||((ln=bn[Eo])===null||ln===void 0?void 0:ln[jo-oi+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:Oo.width,height:Oo.height,count:oi,dotSize:Ri}),[2]}})},new((Ln=void 0)||(Ln=Promise))(function(oi,Ei){function Ri(io){try{Ui(ti.next(io))}catch(So){Ei(So)}}function Oo(io){try{Ui(ti.throw(io))}catch(So){Ei(So)}}function Ui(io){var So;io.done?oi(io.value):(So=io.value,So instanceof Ln?So:new Ln(function($o){$o(So)})).then(Ri,Oo)}Ui((ti=ti.apply(xn,Hn||[])).next())});var xn,Hn,Ln,ti},zn.prototype.drawBackground=function(){var gn,xn,Hn=this._element,Ln=this._options;if(Hn){var ti=(gn=Ln.backgroundOptions)===null||gn===void 0?void 0:gn.gradient,oi=(xn=Ln.backgroundOptions)===null||xn===void 0?void 0:xn.color;(ti||oi)&&this._createColor({options:ti,color:oi,additionalRotation:0,x:0,y:0,height:Ln.height,width:Ln.width,name:"background-color"})}},zn.prototype.drawDots=function(gn){var xn,Hn,Ln=this;if(!this._qr)throw"QR code is not defined";var ti=this._options,oi=this._qr.getModuleCount();if(oi>ti.width||oi>ti.height)throw"The canvas is too small.";var Ei=(Math.min(ti.width,ti.height)-2*ti.margin)/oi,Ri=(ti.width-oi*Ei)/2,Oo=(ti.height-oi*Ei)/2,Ui=new Jr({svg:this._element,type:ti.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(xn=ti.dotsOptions)===null||xn===void 0?void 0:xn.gradient,color:ti.dotsOptions.color,additionalRotation:0,x:Ri,y:Oo,height:oi*Ei,width:oi*Ei,name:"dot-color"});for(var io=function(mo){for(var qo=function(Eo){return gn&&!gn(mo,Eo)?"continue":!((Hn=So._qr)===null||Hn===void 0)&&Hn.isDark(mo,Eo)?(Ui.draw(Ri+mo*Ei,Oo+Eo*Ei,Ei,function(jo,go){return!(mo+jo<0||Eo+go<0||mo+jo>=oi||Eo+go>=oi)&&!(gn&&!gn(mo+jo,Eo+go))&&!!Ln._qr&&Ln._qr.isDark(mo+jo,Eo+go)}),void(Ui._element&&So._dotsClipPath&&So._dotsClipPath.appendChild(Ui._element))):"continue"},wo=0;woEi?Ri:Ei,io=document.createElementNS("http://www.w3.org/2000/svg","rect");if(io.setAttribute("x",String(ti)),io.setAttribute("y",String(oi)),io.setAttribute("height",String(Ei)),io.setAttribute("width",String(Ri)),io.setAttribute("clip-path","url('#clip-path-".concat(Oo,"')")),xn){var So;if(xn.type===kr)(So=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",Oo),So.setAttribute("gradientUnits","userSpaceOnUse"),So.setAttribute("fx",String(ti+Ri/2)),So.setAttribute("fy",String(oi+Ei/2)),So.setAttribute("cx",String(ti+Ri/2)),So.setAttribute("cy",String(oi+Ei/2)),So.setAttribute("r",String(Ui/2));else{var $o=((xn.rotation||0)+Ln)%(2*Math.PI),mo=($o+2*Math.PI)%(2*Math.PI),qo=ti+Ri/2,wo=oi+Ei/2,Eo=ti+Ri/2,jo=oi+Ei/2;mo>=0&&mo<=.25*Math.PI||mo>1.75*Math.PI&&mo<=2*Math.PI?(qo-=Ri/2,wo-=Ei/2*Math.tan($o),Eo+=Ri/2,jo+=Ei/2*Math.tan($o)):mo>.25*Math.PI&&mo<=.75*Math.PI?(wo-=Ei/2,qo-=Ri/2/Math.tan($o),jo+=Ei/2,Eo+=Ri/2/Math.tan($o)):mo>.75*Math.PI&&mo<=1.25*Math.PI?(qo+=Ri/2,wo+=Ei/2*Math.tan($o),Eo-=Ri/2,jo-=Ei/2*Math.tan($o)):mo>1.25*Math.PI&&mo<=1.75*Math.PI&&(wo+=Ei/2,qo+=Ri/2/Math.tan($o),jo-=Ei/2,Eo-=Ri/2/Math.tan($o)),(So=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",Oo),So.setAttribute("gradientUnits","userSpaceOnUse"),So.setAttribute("x1",String(Math.round(qo))),So.setAttribute("y1",String(Math.round(wo))),So.setAttribute("x2",String(Math.round(Eo))),So.setAttribute("y2",String(Math.round(jo)))}xn.colorStops.forEach(function(go){var zi=go.offset,xo=go.color,Yr=document.createElementNS("http://www.w3.org/2000/svg","stop");Yr.setAttribute("offset","".concat(100*zi,"%")),Yr.setAttribute("stop-color",xo),So.appendChild(Yr)}),io.setAttribute("fill","url('#".concat(Oo,"')")),this._defs.appendChild(So)}else Hn&&io.setAttribute("fill",Hn);this._element.appendChild(io)},zn}(),vn={type:Pr.canvas,width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:$r[0],mode:void 0,errorCorrectionLevel:ye.Q},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};var pn=function(){return pn=Object.assign||function(zn){for(var gn,xn=1,Hn=arguments.length;xnMath.min(gn.width,gn.height)&&(gn.margin=Math.min(gn.width,gn.height)),gn.dotsOptions=pn({},gn.dotsOptions),gn.dotsOptions.gradient&&(gn.dotsOptions.gradient=Sn(gn.dotsOptions.gradient)),gn.cornersSquareOptions&&(gn.cornersSquareOptions=pn({},gn.cornersSquareOptions),gn.cornersSquareOptions.gradient&&(gn.cornersSquareOptions.gradient=Sn(gn.cornersSquareOptions.gradient))),gn.cornersDotOptions&&(gn.cornersDotOptions=pn({},gn.cornersDotOptions),gn.cornersDotOptions.gradient&&(gn.cornersDotOptions.gradient=Sn(gn.cornersDotOptions.gradient))),gn.backgroundOptions&&(gn.backgroundOptions=pn({},gn.backgroundOptions),gn.backgroundOptions.gradient&&(gn.backgroundOptions.gradient=Sn(gn.backgroundOptions.gradient))),gn}var Jn=ce(192),ui=ce.n(Jn),gi=function(zn,gn,xn,Hn){return new(xn||(xn=Promise))(function(Ln,ti){function oi(Oo){try{Ri(Hn.next(Oo))}catch(Ui){ti(Ui)}}function Ei(Oo){try{Ri(Hn.throw(Oo))}catch(Ui){ti(Ui)}}function Ri(Oo){var Ui;Oo.done?Ln(Oo.value):(Ui=Oo.value,Ui instanceof xn?Ui:new xn(function(io){io(Ui)})).then(oi,Ei)}Ri((Hn=Hn.apply(zn,gn||[])).next())})},di=function(zn,gn){var xn,Hn,Ln,ti,oi={label:0,sent:function(){if(1&Ln[0])throw Ln[1];return Ln[1]},trys:[],ops:[]};return ti={next:Ei(0),throw:Ei(1),return:Ei(2)},typeof Symbol=="function"&&(ti[Symbol.iterator]=function(){return this}),ti;function Ei(Ri){return function(Oo){return function(Ui){if(xn)throw new TypeError("Generator is already executing.");for(;oi;)try{if(xn=1,Hn&&(Ln=2&Ui[0]?Hn.return:Ui[0]?Hn.throw||((Ln=Hn.return)&&Ln.call(Hn),0):Hn.next)&&!(Ln=Ln.call(Hn,Ui[1])).done)return Ln;switch(Hn=0,Ln&&(Ui=[2&Ui[0],Ln.value]),Ui[0]){case 0:case 1:Ln=Ui;break;case 4:return oi.label++,{value:Ui[1],done:!1};case 5:oi.label++,Hn=Ui[1],Ui=[0];continue;case 7:Ui=oi.ops.pop(),oi.trys.pop();continue;default:if(!((Ln=(Ln=oi.trys).length>0&&Ln[Ln.length-1])||Ui[0]!==6&&Ui[0]!==2)){oi=0;continue}if(Ui[0]===3&&(!Ln||Ui[1]>Ln[0]&&Ui[1]\r `+Ln],{type:"image/svg+xml"})]):[2,new Promise(function(oi){return xn.getCanvas().toBlob(oi,"image/".concat(gn),1)})]}})})},zn.prototype.download=function(gn){return gi(this,void 0,void 0,function(){var xn,Hn,Ln,ti,oi;return di(this,function(Ei){switch(Ei.label){case 0:if(!this._qr)throw"QR code is empty";return xn="png",Hn="qr",typeof gn=="string"?(xn=gn,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof gn=="object"&&gn!==null&&(gn.name&&(Hn=gn.name),gn.extension&&(xn=gn.extension)),[4,this._getQRStylingElement(xn)];case 1:return Ln=Ei.sent(),xn.toLowerCase()==="svg"?(ti=new XMLSerializer,oi=`\r -`+(oi=ti.serializeToString(Ln.getElement())),Vr("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(oi),"".concat(Hn,".svg"))):Vr(Ln.getCanvas().toDataURL("image/".concat(xn)),"".concat(Hn,".").concat(xn)),[2]}})})},zn}();var yi=function(){return yi=Object.assign||function(zn){for(var gn,xn=1,Hn=arguments.length;xn")},to=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],En=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]],Bt=function(){return Bt=Object.assign||function(zn){for(var gn,xn=1,Hn=arguments.length;xn')),xo=function(qr,dn,ri,Zn,ai,bi,_i,fi){for(var yo=(Math.min(dn,ri)-2*Zn)/_i,Di=(dn-_i*yo)/2,Ni=(ri-_i*yo)/2,oo=function(vo,_o,so){return function(lo,eo){var uo,ho,ro,ci,pi,mi;return!(vo&&lo>=(_o-so.hideXDots)/2&&lo<(_o+so.hideXDots)/2&&eo>=(_o-so.hideYDots)/2&&eo<(_o+so.hideYDots)/2||((uo=to[lo])===null||uo===void 0?void 0:uo[eo])||((ho=to[lo-_o+7])===null||ho===void 0?void 0:ho[eo])||((ro=to[lo])===null||ro===void 0?void 0:ro[eo-_o+7])||((ci=En[lo])===null||ci===void 0?void 0:ci[eo])||((pi=En[lo-_o+7])===null||pi===void 0?void 0:pi[eo])||((mi=En[lo])===null||mi===void 0?void 0:mi[eo-_o+7]))}}(bi,_i,fi),fo=[],co=0;co<_i;co++)for(var Ao=0;Ao<_i;Ao++)oo(co,Ao)&&qr.isDark(co,Ao)&&fo.push(Oi({x:Di+co*yo,y:Ni+Ao*yo,size:yo,color:ai}));return fo}(Hn,xn.width,xn.height,xn.margin,xn.dotsOptions.color,xn.imageOptions.hideBackgroundDots,Ln,Ei),Yr=function(qr,dn,ri,Zn,ai,bi){var _i=[],fi=(Math.min(qr,dn)-2*ri)/bi,yo=7*fi,Di=3*fi,Ni=(qr-bi*fi)/2,oo=(dn-bi*fi)/2;return[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(fo){var co=fo[0],Ao=fo[1],vo=fo[2],_o=Ni+co*fi*(bi-7),so=oo+Ao*fi*(bi-7);_i.push(function(lo){var eo=lo.x,uo=lo.y,ho=lo.size,ro=lo.rotation,ci=ro===void 0?0:ro,pi=lo.color,mi=ho/7,Si="M ".concat(eo," ").concat(uo+2.5*mi)+"v ".concat(2*mi)+"a ".concat(2.5*mi," ").concat(2.5*mi,", 0, 0, 0, ").concat(2.5*mi," ").concat(2.5*mi)+"h ".concat(4.5*mi)+"v ".concat(-4.5*mi)+"a ".concat(2.5*mi," ").concat(2.5*mi,", 0, 0, 0, ").concat(2.5*-mi," ").concat(2.5*-mi)+"h ".concat(-2*mi)+"a ".concat(2.5*mi," ").concat(2.5*mi,", 0, 0, 0, ").concat(2.5*-mi," ").concat(2.5*mi)+"M ".concat(eo+2.5*mi," ").concat(uo+mi)+"h ".concat(2*mi)+"a ".concat(1.5*mi," ").concat(1.5*mi,", 0, 0, 1, ").concat(1.5*mi," ").concat(1.5*mi)+"v ".concat(3.5*mi)+"h ".concat(-3.5*mi)+"a ".concat(1.5*mi," ").concat(1.5*mi,", 0, 0, 1, ").concat(1.5*-mi," ").concat(1.5*-mi)+"v ".concat(-2*mi)+"a ".concat(1.5*mi," ").concat(1.5*mi,", 0, 0, 1, ").concat(1.5*mi," ").concat(1.5*-mi);return'")}({x:_o,y:so,size:yo,rotation:vo,color:Zn})),_i.push(function(lo){var eo=lo.x,uo=lo.y,ho=lo.size,ro=lo.rotation,ci=ro===void 0?0:ro,pi=lo.color,mi=ho/7,Si="M ".concat(eo," ").concat(uo+2.5*mi)+"v ".concat(2*mi)+"a ".concat(2.5*mi," ").concat(2.5*mi,", 0, 0, 0, ").concat(2.5*mi," ").concat(2.5*mi)+"h ".concat(4.5*mi)+"v ".concat(-4.5*mi)+"a ".concat(2.5*mi," ").concat(2.5*mi,", 0, 0, 0, ").concat(2.5*-mi," ").concat(2.5*-mi)+"h ".concat(-2*mi)+"a ".concat(2.5*mi," ").concat(2.5*mi,", 0, 0, 0, ").concat(2.5*-mi," ").concat(2.5*mi);return'")}({x:_o+2*fi,y:so+2*fi,size:Di,rotation:vo,color:ai}))}),_i}(xn.width,xn.height,xn.margin,xn.cornersSquareOptions.color,xn.cornersDotOptions.color,Ln),Wt=function(qr){var dn=qr.width,ri=qr.height,Zn=qr.count,ai=qr.dotSize,bi=qr.image,_i=qr.imageMargin,fi=(qr.qrWidth-Zn*ai)/2+_i+(Zn*ai-dn)/2,yo=(qr.qrHeight-Zn*ai)/2+_i+(Zn*ai-ri)/2,Di=dn-2*_i,Ni=ri-2*_i;return'')}({qrWidth:xn.width,qrHeight:xn.height,width:Ei.width,height:Ei.height,count:Ln,dotSize:oi,image:xn.image,imageMargin:xn.imageOptions.margin}),ln=Zt(Zt(Zt([zi],xo,!0),Yr,!0),[Wt],!1);return' +`+(oi=ti.serializeToString(Ln.getElement())),Vr("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(oi),"".concat(Hn,".svg"))):Vr(Ln.getCanvas().toDataURL("image/".concat(xn)),"".concat(Hn,".").concat(xn)),[2]}})})},zn}();var yi=function(){return yi=Object.assign||function(zn){for(var gn,xn=1,Hn=arguments.length;xn
")},to=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],En=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]],Bt=function(){return Bt=Object.assign||function(zn){for(var gn,xn=1,Hn=arguments.length;xn')),xo=function(qr,dn,ri,Zn,ai,bi,_i,fi){for(var yo=(Math.min(dn,ri)-2*Zn)/_i,Di=(dn-_i*yo)/2,Ni=(ri-_i*yo)/2,oo=function(vo,_o,so){return function(lo,eo){var uo,ho,ro,ci,pi,mi;return!(vo&&lo>=(_o-so.hideXDots)/2&&lo<(_o+so.hideXDots)/2&&eo>=(_o-so.hideYDots)/2&&eo<(_o+so.hideYDots)/2||((uo=to[lo])===null||uo===void 0?void 0:uo[eo])||((ho=to[lo-_o+7])===null||ho===void 0?void 0:ho[eo])||((ro=to[lo])===null||ro===void 0?void 0:ro[eo-_o+7])||((ci=En[lo])===null||ci===void 0?void 0:ci[eo])||((pi=En[lo-_o+7])===null||pi===void 0?void 0:pi[eo])||((mi=En[lo])===null||mi===void 0?void 0:mi[eo-_o+7]))}}(bi,_i,fi),fo=[],co=0;co<_i;co++)for(var Ao=0;Ao<_i;Ao++)oo(co,Ao)&&qr.isDark(co,Ao)&&fo.push(Oi({x:Di+co*yo,y:Ni+Ao*yo,size:yo,color:ai}));return fo}(Hn,xn.width,xn.height,xn.margin,xn.dotsOptions.color,xn.imageOptions.hideBackgroundDots,Ln,Ei),Yr=function(qr,dn,ri,Zn,ai,bi){var _i=[],fi=(Math.min(qr,dn)-2*ri)/bi,yo=7*fi,Di=3*fi,Ni=(qr-bi*fi)/2,oo=(dn-bi*fi)/2;return[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(fo){var co=fo[0],Ao=fo[1],vo=fo[2],_o=Ni+co*fi*(bi-7),so=oo+Ao*fi*(bi-7);_i.push(function(lo){var eo=lo.x,uo=lo.y,ho=lo.size,ro=lo.rotation,ci=ro===void 0?0:ro,pi=lo.color,mi=ho/7,Si="M ".concat(eo," ").concat(uo+2.5*mi)+"v ".concat(2*mi)+"a ".concat(2.5*mi," ").concat(2.5*mi,", 0, 0, 0, ").concat(2.5*mi," ").concat(2.5*mi)+"h ".concat(4.5*mi)+"v ".concat(-4.5*mi)+"a ".concat(2.5*mi," ").concat(2.5*mi,", 0, 0, 0, ").concat(2.5*-mi," ").concat(2.5*-mi)+"h ".concat(-2*mi)+"a ".concat(2.5*mi," ").concat(2.5*mi,", 0, 0, 0, ").concat(2.5*-mi," ").concat(2.5*mi)+"M ".concat(eo+2.5*mi," ").concat(uo+mi)+"h ".concat(2*mi)+"a ".concat(1.5*mi," ").concat(1.5*mi,", 0, 0, 1, ").concat(1.5*mi," ").concat(1.5*mi)+"v ".concat(3.5*mi)+"h ".concat(-3.5*mi)+"a ".concat(1.5*mi," ").concat(1.5*mi,", 0, 0, 1, ").concat(1.5*-mi," ").concat(1.5*-mi)+"v ".concat(-2*mi)+"a ".concat(1.5*mi," ").concat(1.5*mi,", 0, 0, 1, ").concat(1.5*mi," ").concat(1.5*-mi);return'")}({x:_o,y:so,size:yo,rotation:vo,color:Zn})),_i.push(function(lo){var eo=lo.x,uo=lo.y,ho=lo.size,ro=lo.rotation,ci=ro===void 0?0:ro,pi=lo.color,mi=ho/7,Si="M ".concat(eo," ").concat(uo+2.5*mi)+"v ".concat(2*mi)+"a ".concat(2.5*mi," ").concat(2.5*mi,", 0, 0, 0, ").concat(2.5*mi," ").concat(2.5*mi)+"h ".concat(4.5*mi)+"v ".concat(-4.5*mi)+"a ".concat(2.5*mi," ").concat(2.5*mi,", 0, 0, 0, ").concat(2.5*-mi," ").concat(2.5*-mi)+"h ".concat(-2*mi)+"a ".concat(2.5*mi," ").concat(2.5*mi,", 0, 0, 0, ").concat(2.5*-mi," ").concat(2.5*mi);return'")}({x:_o+2*fi,y:so+2*fi,size:Di,rotation:vo,color:ai}))}),_i}(xn.width,xn.height,xn.margin,xn.cornersSquareOptions.color,xn.cornersDotOptions.color,Ln),Wt=function(qr){var dn=qr.width,ri=qr.height,Zn=qr.count,ai=qr.dotSize,bi=qr.image,_i=qr.imageMargin,fi=(qr.qrWidth-Zn*ai)/2+_i+(Zn*ai-dn)/2,yo=(qr.qrHeight-Zn*ai)/2+_i+(Zn*ai-ri)/2,Di=dn-2*_i,Ni=ri-2*_i;return'')}({qrWidth:xn.width,qrHeight:xn.height,width:Ei.width,height:Ei.height,count:Ln,dotSize:oi,image:xn.image,imageMargin:xn.imageOptions.margin}),ln=Zt(Zt(Zt([zi],xo,!0),Yr,!0),[Wt],!1);return' `).concat(ln.join(""),` `)};const ei=li})(),fe})()})}}),require_style=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/connect-modal/src/style.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.modalStyle=void 0,v.modalStyle=` @import url('https://fonts.googleapis.com/css2?family=Prompt&display=swap'); @@ -311,17 +311,17 @@ Error generating stack: `+Wn.message+` .nightlyConnect_copyButton:hover { transform: scale(1.2); } -`}}),require_assets=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/connect-modal/src/assets.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.logo=v.close=void 0,v.close="data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='39' height='39' rx='19.5' stroke='%23F7F7F7'/%3E%3Cpath d='M27 13L13 27' stroke='%23F7F7F7' stroke-width='2'/%3E%3Cpath d='M13 13L27 27' stroke='%23F7F7F7' stroke-width='2'/%3E%3C/svg%3E",v.logo="data:image/svg+xml,%3Csvg width='146' height='36' viewBox='0 0 146 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28.7743 0C26.2339 3.67797 23.0494 6.22712 19.2927 7.93559C17.9881 7.5661 16.6476 7.36949 15.33 7.38305C14.0124 7.36949 12.6719 7.5661 11.3673 7.93559C7.61063 6.22712 4.4261 3.68136 1.88567 0C1.11406 2.00339 -1.83832 8.91186 1.70912 18.5627C1.70912 18.5627 0.574591 23.6034 2.65728 27.9322C2.65728 27.9322 5.67833 26.5153 8.07163 28.5085C10.5794 30.6203 9.7816 32.6475 11.5471 34.3898C13.0642 36 15.33 36 15.33 36C15.33 36 17.5958 36 19.1128 34.3932C20.8784 32.6508 20.0839 30.6237 22.5884 28.5119C24.9817 26.5186 28.0027 27.9356 28.0027 27.9356C30.0854 23.6068 28.9509 18.5661 28.9509 18.5661C32.4983 8.91187 29.5459 2.00339 28.7743 0ZM3.59891 17.2271C1.66662 13.122 1.13695 7.48136 2.35976 3.02712C3.96837 7.25085 6.15896 9.15254 8.76477 11.1559C7.6564 13.5288 5.58025 15.7729 3.59891 17.2271ZM9.15058 24.4644C7.63352 23.7695 7.30656 22.3898 7.30656 22.3898C9.38272 21.0373 12.4299 22.0712 12.5247 25.2746C10.9194 24.2678 10.3865 25.0271 9.15058 24.4644ZM15.33 35.8237C14.2412 35.8237 13.3585 35.0169 13.3585 34.0237C13.3585 33.0305 14.2412 32.2237 15.33 32.2237C16.4188 32.2237 17.3015 33.0305 17.3015 34.0237C17.3015 35.0203 16.4188 35.8237 15.33 35.8237ZM21.5094 24.4644C20.2735 25.0271 19.7406 24.2678 18.1353 25.2746C18.2333 22.0712 21.2773 21.0373 23.3534 22.3898C23.3534 22.3898 23.0265 23.7695 21.5094 24.4644ZM27.0611 17.2271C25.0797 15.7729 23.0036 13.5288 21.8952 11.1525C24.501 9.15254 26.6916 7.25085 28.3002 3.02712C29.523 7.48475 28.9934 13.1254 27.0611 17.2271Z' fill='white'/%3E%3Cpath d='M41.5649 7.47353H46.0624L54.9358 21.2222V7.47353H59.5549V28.7353H55.0878L46.184 14.9866V28.7353H41.5649V7.47353Z' fill='%23F7F7F7'/%3E%3Cpath d='M65.2463 11.884C64.5372 11.884 63.9396 11.6508 63.4534 11.1844C62.9672 10.718 62.7241 10.13 62.7241 9.42024C62.7241 8.73078 62.9672 8.15285 63.4534 7.68645C63.9396 7.19977 64.5372 6.95643 65.2463 6.95643C65.9554 6.95643 66.553 7.19977 67.0392 7.68645C67.5254 8.15285 67.7685 8.73078 67.7685 9.42024C67.7685 10.13 67.5254 10.718 67.0392 11.1844C66.553 11.6508 65.9554 11.884 65.2463 11.884ZM62.9368 14.1349H67.5558V28.7353H62.9368V14.1349Z' fill='%23F7F7F7'/%3E%3Cpath d='M78.7549 35.7312C77.7825 35.7312 76.7999 35.64 75.8072 35.4575C74.8348 35.275 74.0143 35.0316 73.3458 34.7275V31.3511C74.9057 32.0406 76.7087 32.3853 78.7549 32.3853C80.3959 32.3853 81.5709 32.0507 82.28 31.3816C82.989 30.7124 83.3435 29.7086 83.3435 28.3702V27.4577C82.7155 28.0255 81.9457 28.4514 81.034 28.7353C80.1224 29.0394 79.1499 29.1915 78.1167 29.1915C76.6176 29.1915 75.2704 28.8671 74.0751 28.2182C72.9001 27.549 71.9783 26.6263 71.3097 25.4502C70.6412 24.274 70.3069 22.9357 70.3069 21.4351C70.3069 19.8939 70.6311 18.5353 71.2793 17.3592C71.9479 16.183 72.8595 15.2806 74.0143 14.652C75.1893 14.0031 76.5264 13.6787 78.0256 13.6787C79.1601 13.6787 80.1629 13.8409 81.034 14.1653C81.9052 14.4898 82.7257 15.0069 83.4955 15.7166V14.1349H87.9322V27.7923C87.9322 30.3271 87.1826 32.2839 85.6835 33.6629C84.1843 35.0418 81.8748 35.7312 78.7549 35.7312ZM79.2107 25.6327C80.1629 25.6327 81.0138 25.3792 81.7634 24.8723C82.5332 24.345 83.0599 23.6556 83.3435 22.8039V20.0663C83.0194 19.2146 82.4825 18.5353 81.733 18.0283C81.0036 17.5214 80.1629 17.2679 79.2107 17.2679C77.9749 17.2679 76.962 17.6431 76.1719 18.3934C75.402 19.1437 75.0171 20.1474 75.0171 21.4047C75.0171 22.6822 75.402 23.7063 76.1719 24.4768C76.962 25.2474 77.9749 25.6327 79.2107 25.6327Z' fill='%23F7F7F7'/%3E%3Cpath d='M91.1242 6.25684H95.7128V15.8079C96.4016 15.0981 97.1816 14.5709 98.0527 14.2262C98.9239 13.8612 99.8558 13.6787 100.848 13.6787C102.834 13.6787 104.313 14.216 105.285 15.2908C106.278 16.3453 106.774 17.7749 106.774 19.5796V28.7353H102.186V20.0967C102.186 18.2109 101.314 17.2679 99.5722 17.2679C98.8023 17.2679 98.0831 17.4606 97.4146 17.8458C96.746 18.2109 96.1788 18.7584 95.7128 19.4884V28.7353H91.1242V6.25684Z' fill='%23F7F7F7'/%3E%3Cpath d='M115.928 29.1915C114.226 29.1915 112.93 28.7251 112.039 27.7923C111.167 26.8392 110.732 25.5212 110.732 23.8381V17.4504H108.605V14.1349H110.732V9.75483H115.32V14.1349H118.754V17.4504H115.32V23.2297C115.32 24.0814 115.483 24.6999 115.807 25.0852C116.131 25.4502 116.708 25.6327 117.539 25.6327C118.207 25.6327 118.846 25.4705 119.453 25.146V28.5832C118.521 28.9887 117.346 29.1915 115.928 29.1915Z' fill='%23F7F7F7'/%3E%3Cpath d='M121.572 6.25684H126.161V28.7353H121.572V6.25684Z' fill='%23F7F7F7'/%3E%3Cpath d='M133.358 34.7579C132.751 34.7579 132.123 34.7173 131.474 34.6362C130.846 34.5551 130.37 34.4436 130.046 34.3016V30.8645C130.634 31.0875 131.282 31.1991 131.991 31.1991C132.72 31.1991 133.267 31.0368 133.632 30.7124C134.017 30.3879 134.331 29.881 134.574 29.1915L135.06 27.9444L128.739 14.1349H133.358L137.491 24.2031L141.411 14.1349H146L139.801 29.739C139.112 31.4627 138.261 32.7301 137.248 33.5412C136.235 34.3523 134.939 34.7579 133.358 34.7579Z' fill='%23F7F7F7'/%3E%3C/svg%3E%0A"}}),require_NightlyConnectModal=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/connect-modal/src/NightlyConnectModal.js"(v){var k=v&&v.__createBinding||(Object.create?function(pe,ye,me,Ee){Ee===void 0&&(Ee=me);var cr=Object.getOwnPropertyDescriptor(ye,me);(!cr||("get"in cr?!ye.__esModule:cr.writable||cr.configurable))&&(cr={enumerable:!0,get:function(){return ye[me]}}),Object.defineProperty(pe,Ee,cr)}:function(pe,ye,me,Ee){Ee===void 0&&(Ee=me),pe[Ee]=ye[me]}),ie=v&&v.__setModuleDefault||(Object.create?function(pe,ye){Object.defineProperty(pe,"default",{enumerable:!0,value:ye})}:function(pe,ye){pe.default=ye}),ae=v&&v.__importStar||function(pe){if(pe&&pe.__esModule)return pe;var ye={};if(pe!=null)for(var me in pe)me!=="default"&&Object.prototype.hasOwnProperty.call(pe,me)&&k(ye,pe,me);return ie(ye,pe),ye};Object.defineProperty(v,"__esModule",{value:!0}),v.NightlyConnectModal=void 0;var ce=require_nightly_qr_code(),fe=require_style(),le=ae(require_assets()),ve=class{openModal(pe,ye){var me,Ee;if(!this._styleElement){const cr=document.createElement("style");cr.textContent=fe.modalStyle,this._styleElement=cr,((me=document.head)!==null&&me!==void 0?me:document.getElementsByTagName("head")[0]).appendChild(this._styleElement)}if(!this._anchorElement){const cr=document.createElement("div");cr.style.position="relative",document.body.appendChild(cr),this._anchorElement=cr}if(pe!==this._lastSessionId||ye!==this._network||!this._modalElement){this._lastSessionId=pe,this._network=ye;const cr=document.createElement("div");cr.classList.add("nightlyConnect_topRow");const Br=document.createElement("img");Br.classList.add("nightlyConnect_logo"),Br.setAttribute("src",le.logo),cr.appendChild(Br);const $r=document.createElement("img");$r.classList.add("nightlyConnect_close"),$r.setAttribute("src",le.close),$r.addEventListener("click",()=>{this.closeModal()}),cr.appendChild($r);const Pr=document.createElement("div");Pr.classList.add("nightlyConnect_qrWrapper");const Or=(0,ce.generateNightlyQRCodeXML)("nightlyconnect:"+pe+"?network="+ye,{width:440,height:440,margin:4}),ur=btoa(Or),jr=document.createElement("img");jr.classList.add("nightlyConnect_qrImg"),jr.setAttribute("src","data:image/svg+xml;base64,"+ur),Pr.appendChild(jr);const Mr=document.createElement("div");Mr.classList.add("nightlyConnect_bottomRow");const Lr=document.createElement("span");Lr.classList.add("nightlyConnect_desc"),Lr.textContent="Scan the QR code with Nightly Wallet and approve the action.",Mr.appendChild(Lr);const Vr=document.createElement("button");Vr.classList.add("nightlyConnect_copyButton"),Vr.textContent="Copy QR",Vr.addEventListener("click",()=>{this.copySessionId()}),Mr.appendChild(Vr);const Gr=document.createElement("div");Gr.classList.add("nightlyConnect_wrapper"),Gr.appendChild(cr),Gr.appendChild(Pr),Gr.appendChild(Mr);const Ur=document.createElement("div");Ur.classList.add("nightlyConnect_overlay"),Ur.appendChild(Gr),this._anchorElement.replaceChildren(Ur),this._modalElement=Ur}this._modalElement.style.display="",(Ee=this.onOpen)===null||Ee===void 0||Ee.call(this)}closeModal(){var pe;this._modalElement&&(this._modalElement.style.display="none",(pe=this.onClose)===null||pe===void 0||pe.call(this))}copySessionId(){this._lastSessionId&&navigator.clipboard.writeText("nightlyconnect:"+this._lastSessionId+"?network="+this._network)}};v.NightlyConnectModal=ve}}),require_types$3=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/common/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.RankingHomeCollectionEnum=v.CollectionCategory=v.NotificationType=v.Device=v.NETWORK_TICKERS=v.NETWORK=void 0;var k;(function(ie){ie.SOLANA="SOLANA",ie.NEAR="NEAR",ie.APTOS="APTOS"})(k=v.NETWORK||(v.NETWORK={})),v.NETWORK_TICKERS={[k.APTOS]:"APT",[k.SOLANA]:"SOL",[k.NEAR]:"NEAR"},function(ie){ie.Apple="Apple",ie.Android="Android"}(v.Device||(v.Device={})),function(ie){ie.NIGHTLY_CONNECT_REQUEST="NIGHTLY_CONNECT_REQUEST"}(v.NotificationType||(v.NotificationType={})),function(ie){ie.PFP="PFP",ie.ART="ART",ie.MUSIC="MUSIC",ie.METAVERSE="METAVERSE",ie.GAMES="GAMES",ie.SPORTS="SPORTS",ie.NSFW="NSFW",ie.EARNING="EARNING",ie.UTILITY="UTILITY",ie.VIRTUAL_WORLDS="VIRTUAL_WORLDS",ie.TRADING_CARDS="TRADING_CARDS",ie.OTHER="OTHER"}(v.CollectionCategory||(v.CollectionCategory={})),function(ie){ie.BLOCKCHAIN="BLOCKCHAIN",ie.TIME="TIME",ie.CATEGORY="CATEGORY"}(v.RankingHomeCollectionEnum||(v.RankingHomeCollectionEnum={}))}}),require_browser2$2=__commonJS$1({"node_modules/isomorphic-ws/browser.js"(v,k){var ie=null;typeof WebSocket<"u"?ie=WebSocket:typeof MozWebSocket<"u"?ie=MozWebSocket:typeof globalThis<"u"?ie=globalThis.WebSocket||globalThis.MozWebSocket:typeof window<"u"?ie=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(ie=self.WebSocket||self.MozWebSocket),k.exports=ie}}),require_keystore=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/key_stores/keystore.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyStore=void 0;var k=class{};v.KeyStore=k}}),require_serialize=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/serialize.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_lib();Object.defineProperty(v,"base_encode",{enumerable:!0,get:function(){return k.baseEncode}}),Object.defineProperty(v,"base_decode",{enumerable:!0,get:function(){return k.baseDecode}}),Object.defineProperty(v,"serialize",{enumerable:!0,get:function(){return k.serialize}}),Object.defineProperty(v,"deserialize",{enumerable:!0,get:function(){return k.deserialize}}),Object.defineProperty(v,"BorshError",{enumerable:!0,get:function(){return k.BorshError}}),Object.defineProperty(v,"BinaryWriter",{enumerable:!0,get:function(){return k.BinaryWriter}}),Object.defineProperty(v,"BinaryReader",{enumerable:!0,get:function(){return k.BinaryReader}})}}),require_enums=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/enums.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Assignable=v.Enum=void 0;var k=class{constructor(ae){if(Object.keys(ae).length!==1)throw new Error("Enum can only take single value");Object.keys(ae).map(ce=>{this[ce]=ae[ce],this.enum=ce})}};v.Enum=k;var ie=class{constructor(ae){Object.keys(ae).map(ce=>{this[ce]=ae[ce]})}};v.Assignable=ie}}),require_key_pair=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/key_pair.js"(v){var k=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.KeyPairEd25519=v.KeyPair=v.PublicKey=v.KeyType=void 0;var ie=k(require_nacl_fast()),ae=require_serialize(),ce=require_enums(),fe;(function(Ee){Ee[Ee.ED25519=0]="ED25519"})(fe=v.KeyType||(v.KeyType={}));function le(Ee){switch(Ee){case fe.ED25519:return"ed25519";default:throw new Error(`Unknown key type ${Ee}`)}}function ve(Ee){switch(Ee.toLowerCase()){case"ed25519":return fe.ED25519;default:throw new Error(`Unknown key type ${Ee}`)}}var pe=class extends ce.Assignable{static from(Ee){return typeof Ee=="string"?pe.fromString(Ee):Ee}static fromString(Ee){const cr=Ee.split(":");if(cr.length===1)return new pe({keyType:fe.ED25519,data:ae.base_decode(cr[0])});if(cr.length===2)return new pe({keyType:ve(cr[0]),data:ae.base_decode(cr[1])});throw new Error("Invalid encoded key format, must be :")}toString(){return`${le(this.keyType)}:${ae.base_encode(this.data)}`}verify(Ee,cr){switch(this.keyType){case fe.ED25519:return ie.default.sign.detached.verify(Ee,cr,this.data);default:throw new Error(`Unknown key type ${this.keyType}`)}}};v.PublicKey=pe;var ye=class{static fromRandom(Ee){switch(Ee.toUpperCase()){case"ED25519":return me.fromRandom();default:throw new Error(`Unknown curve ${Ee}`)}}static fromString(Ee){const cr=Ee.split(":");if(cr.length===1)return new me(cr[0]);if(cr.length===2)switch(cr[0].toUpperCase()){case"ED25519":return new me(cr[1]);default:throw new Error(`Unknown curve: ${cr[0]}`)}else throw new Error("Invalid encoded key format, must be :")}};v.KeyPair=ye;var me=class extends ye{constructor(Ee){super();const cr=ie.default.sign.keyPair.fromSecretKey(ae.base_decode(Ee));this.publicKey=new pe({keyType:fe.ED25519,data:cr.publicKey}),this.secretKey=Ee}static fromRandom(){const Ee=ie.default.sign.keyPair();return new me(ae.base_encode(Ee.secretKey))}sign(Ee){return{signature:ie.default.sign.detached(Ee,ae.base_decode(this.secretKey)),publicKey:this.publicKey}}verify(Ee,cr){return this.publicKey.verify(Ee,cr)}toString(){return`ed25519:${this.secretKey}`}getPublicKey(){return this.publicKey}};v.KeyPairEd25519=me}}),require_in_memory_key_store=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/key_stores/in_memory_key_store.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.InMemoryKeyStore=void 0;var k=require_keystore(),ie=require_key_pair(),ae=class extends k.KeyStore{constructor(){super(),this.keys={}}async setKey(ce,fe,le){this.keys[`${fe}:${ce}`]=le.toString()}async getKey(ce,fe){const le=this.keys[`${fe}:${ce}`];return le?ie.KeyPair.fromString(le):null}async removeKey(ce,fe){delete this.keys[`${fe}:${ce}`]}async clear(){this.keys={}}async getNetworks(){const ce=new Set;return Object.keys(this.keys).forEach(fe=>{const le=fe.split(":");ce.add(le[1])}),Array.from(ce.values())}async getAccounts(ce){const fe=new Array;return Object.keys(this.keys).forEach(le=>{const ve=le.split(":");ve[ve.length-1]===ce&&fe.push(ve.slice(0,ve.length-1).join(":"))}),fe}toString(){return"InMemoryKeyStore"}};v.InMemoryKeyStore=ae}}),require_browser_local_storage_key_store=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/key_stores/browser_local_storage_key_store.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.BrowserLocalStorageKeyStore=void 0;var k=require_keystore(),ie=require_key_pair(),ae="near-api-js:keystore:",ce=class extends k.KeyStore{constructor(fe=window.localStorage,le=ae){super(),this.localStorage=fe,this.prefix=le}async setKey(fe,le,ve){this.localStorage.setItem(this.storageKeyForSecretKey(fe,le),ve.toString())}async getKey(fe,le){const ve=this.localStorage.getItem(this.storageKeyForSecretKey(fe,le));return ve?ie.KeyPair.fromString(ve):null}async removeKey(fe,le){this.localStorage.removeItem(this.storageKeyForSecretKey(fe,le))}async clear(){for(const fe of this.storageKeys())fe.startsWith(this.prefix)&&this.localStorage.removeItem(fe)}async getNetworks(){const fe=new Set;for(const le of this.storageKeys())if(le.startsWith(this.prefix)){const ve=le.substring(this.prefix.length).split(":");fe.add(ve[1])}return Array.from(fe.values())}async getAccounts(fe){const le=new Array;for(const ve of this.storageKeys())if(ve.startsWith(this.prefix)){const pe=ve.substring(this.prefix.length).split(":");pe[1]===fe&&le.push(pe[0])}return le}storageKeyForSecretKey(fe,le){return`${this.prefix}${le}:${fe}`}*storageKeys(){for(let fe=0;fesetTimeout(ce,ae))}}}),require_errors$1=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.logWarning=v.ErrorContext=v.TypedError=v.ArgumentTypeError=v.PositionalArgsError=void 0;var k=class extends Error{constructor(){super("Contract method calls expect named arguments wrapped in object, e.g. { argName1: argValue1, argName2: argValue2 }")}};v.PositionalArgsError=k;var ie=class extends Error{constructor(le,ve,pe){super(`Expected ${ve} for '${le}' argument, but got '${JSON.stringify(pe)}'`)}};v.ArgumentTypeError=ie;var ae=class extends Error{constructor(le,ve,pe){super(le),this.type=ve||"UntypedError",this.context=pe}};v.TypedError=ae;var ce=class{constructor(le){this.transactionHash=le}};v.ErrorContext=ce;function fe(...le){process.env.NEAR_NO_LOGS||console.warn(...le)}v.logWarning=fe}}),require_web=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/web.js"(v){var k=v&&v.__importDefault||function(me){return me&&me.__esModule?me:{default:me}};Object.defineProperty(v,"__esModule",{value:!0}),v.fetchJson=void 0;var ie=k(require_http_errors()),ae=k(require_exponential_backoff()),ce=require_providers(),fe=require_errors$1(),le=1e3,ve=1.5,pe=10;async function ye(me,Ee){let cr={url:null};typeof me=="string"?cr.url=me:cr=me;const Br=await ae.default(le,pe,ve,async()=>{try{const $r=await fetch(cr.url,{method:Ee?"POST":"GET",body:Ee||void 0,headers:{...cr.headers,"Content-Type":"application/json"}});if(!$r.ok){if($r.status===503)return fe.logWarning(`Retrying HTTP request for ${cr.url} as it's not available now`),null;throw ie.default($r.status,await $r.text())}return $r}catch($r){if($r.toString().includes("FetchError")||$r.toString().includes("Failed to fetch"))return fe.logWarning(`Retrying HTTP request for ${cr.url} because of error: ${$r}`),null;throw $r}});if(!Br)throw new ce.TypedError(`Exceeded ${pe} attempts for ${cr.url}.`,"RetriesExceeded");return await Br.json()}v.fetchJson=ye}}),require_rpc_error_schema=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/generated/rpc_error_schema.json"(v,k){k.exports={schema:{BadUTF16:{name:"BadUTF16",subtypes:[],props:{}},BadUTF8:{name:"BadUTF8",subtypes:[],props:{}},BalanceExceeded:{name:"BalanceExceeded",subtypes:[],props:{}},BreakpointTrap:{name:"BreakpointTrap",subtypes:[],props:{}},CacheError:{name:"CacheError",subtypes:["ReadError","WriteError","DeserializationError","SerializationError"],props:{}},CallIndirectOOB:{name:"CallIndirectOOB",subtypes:[],props:{}},CannotAppendActionToJointPromise:{name:"CannotAppendActionToJointPromise",subtypes:[],props:{}},CannotReturnJointPromise:{name:"CannotReturnJointPromise",subtypes:[],props:{}},CodeDoesNotExist:{name:"CodeDoesNotExist",subtypes:[],props:{account_id:""}},CompilationError:{name:"CompilationError",subtypes:["CodeDoesNotExist","PrepareError","WasmerCompileError"],props:{}},ContractSizeExceeded:{name:"ContractSizeExceeded",subtypes:[],props:{limit:"",size:""}},Deprecated:{name:"Deprecated",subtypes:[],props:{method_name:""}},Deserialization:{name:"Deserialization",subtypes:[],props:{}},DeserializationError:{name:"DeserializationError",subtypes:[],props:{}},EmptyMethodName:{name:"EmptyMethodName",subtypes:[],props:{}},FunctionCallError:{name:"FunctionCallError",subtypes:["CompilationError","LinkError","MethodResolveError","WasmTrap","WasmUnknownError","HostError","EvmError"],props:{}},GasExceeded:{name:"GasExceeded",subtypes:[],props:{}},GasInstrumentation:{name:"GasInstrumentation",subtypes:[],props:{}},GasLimitExceeded:{name:"GasLimitExceeded",subtypes:[],props:{}},GenericTrap:{name:"GenericTrap",subtypes:[],props:{}},GuestPanic:{name:"GuestPanic",subtypes:[],props:{panic_msg:""}},HostError:{name:"HostError",subtypes:["BadUTF16","BadUTF8","GasExceeded","GasLimitExceeded","BalanceExceeded","EmptyMethodName","GuestPanic","IntegerOverflow","InvalidPromiseIndex","CannotAppendActionToJointPromise","CannotReturnJointPromise","InvalidPromiseResultIndex","InvalidRegisterId","IteratorWasInvalidated","MemoryAccessViolation","InvalidReceiptIndex","InvalidIteratorIndex","InvalidAccountId","InvalidMethodName","InvalidPublicKey","ProhibitedInView","NumberOfLogsExceeded","KeyLengthExceeded","ValueLengthExceeded","TotalLogLengthExceeded","NumberPromisesExceeded","NumberInputDataDependenciesExceeded","ReturnedValueLengthExceeded","ContractSizeExceeded","Deprecated"],props:{}},IllegalArithmetic:{name:"IllegalArithmetic",subtypes:[],props:{}},IncorrectCallIndirectSignature:{name:"IncorrectCallIndirectSignature",subtypes:[],props:{}},Instantiate:{name:"Instantiate",subtypes:[],props:{}},IntegerOverflow:{name:"IntegerOverflow",subtypes:[],props:{}},InternalMemoryDeclared:{name:"InternalMemoryDeclared",subtypes:[],props:{}},InvalidAccountId:{name:"InvalidAccountId",subtypes:[],props:{account_id:""}},InvalidIteratorIndex:{name:"InvalidIteratorIndex",subtypes:[],props:{iterator_index:""}},InvalidMethodName:{name:"InvalidMethodName",subtypes:[],props:{}},InvalidPromiseIndex:{name:"InvalidPromiseIndex",subtypes:[],props:{promise_idx:""}},InvalidPromiseResultIndex:{name:"InvalidPromiseResultIndex",subtypes:[],props:{result_idx:""}},InvalidPublicKey:{name:"InvalidPublicKey",subtypes:[],props:{}},InvalidReceiptIndex:{name:"InvalidReceiptIndex",subtypes:[],props:{receipt_index:""}},InvalidRegisterId:{name:"InvalidRegisterId",subtypes:[],props:{register_id:""}},IteratorWasInvalidated:{name:"IteratorWasInvalidated",subtypes:[],props:{iterator_index:""}},KeyLengthExceeded:{name:"KeyLengthExceeded",subtypes:[],props:{length:"",limit:""}},LinkError:{name:"LinkError",subtypes:[],props:{msg:""}},Memory:{name:"Memory",subtypes:[],props:{}},MemoryAccessViolation:{name:"MemoryAccessViolation",subtypes:[],props:{}},MemoryOutOfBounds:{name:"MemoryOutOfBounds",subtypes:[],props:{}},MethodEmptyName:{name:"MethodEmptyName",subtypes:[],props:{}},MethodInvalidSignature:{name:"MethodInvalidSignature",subtypes:[],props:{}},MethodNotFound:{name:"MethodNotFound",subtypes:[],props:{}},MethodResolveError:{name:"MethodResolveError",subtypes:["MethodEmptyName","MethodUTF8Error","MethodNotFound","MethodInvalidSignature"],props:{}},MethodUTF8Error:{name:"MethodUTF8Error",subtypes:[],props:{}},MisalignedAtomicAccess:{name:"MisalignedAtomicAccess",subtypes:[],props:{}},NumberInputDataDependenciesExceeded:{name:"NumberInputDataDependenciesExceeded",subtypes:[],props:{limit:"",number_of_input_data_dependencies:""}},NumberOfLogsExceeded:{name:"NumberOfLogsExceeded",subtypes:[],props:{limit:""}},NumberPromisesExceeded:{name:"NumberPromisesExceeded",subtypes:[],props:{limit:"",number_of_promises:""}},PrepareError:{name:"PrepareError",subtypes:["Serialization","Deserialization","InternalMemoryDeclared","GasInstrumentation","StackHeightInstrumentation","Instantiate","Memory"],props:{}},ProhibitedInView:{name:"ProhibitedInView",subtypes:[],props:{method_name:""}},ReadError:{name:"ReadError",subtypes:[],props:{}},ReturnedValueLengthExceeded:{name:"ReturnedValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},Serialization:{name:"Serialization",subtypes:[],props:{}},SerializationError:{name:"SerializationError",subtypes:[],props:{hash:""}},StackHeightInstrumentation:{name:"StackHeightInstrumentation",subtypes:[],props:{}},StackOverflow:{name:"StackOverflow",subtypes:[],props:{}},TotalLogLengthExceeded:{name:"TotalLogLengthExceeded",subtypes:[],props:{length:"",limit:""}},Unreachable:{name:"Unreachable",subtypes:[],props:{}},ValueLengthExceeded:{name:"ValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},WasmTrap:{name:"WasmTrap",subtypes:["Unreachable","IncorrectCallIndirectSignature","MemoryOutOfBounds","CallIndirectOOB","IllegalArithmetic","MisalignedAtomicAccess","BreakpointTrap","StackOverflow","GenericTrap"],props:{}},WasmUnknownError:{name:"WasmUnknownError",subtypes:[],props:{}},WasmerCompileError:{name:"WasmerCompileError",subtypes:[],props:{msg:""}},WriteError:{name:"WriteError",subtypes:[],props:{}},AccessKeyNotFound:{name:"AccessKeyNotFound",subtypes:[],props:{account_id:"",public_key:""}},AccountAlreadyExists:{name:"AccountAlreadyExists",subtypes:[],props:{account_id:""}},AccountDoesNotExist:{name:"AccountDoesNotExist",subtypes:[],props:{account_id:""}},ActionError:{name:"ActionError",subtypes:["AccountAlreadyExists","AccountDoesNotExist","CreateAccountOnlyByRegistrar","CreateAccountNotAllowed","ActorNoPermission","DeleteKeyDoesNotExist","AddKeyAlreadyExists","DeleteAccountStaking","LackBalanceForState","TriesToUnstake","TriesToStake","InsufficientStake","FunctionCallError","NewReceiptValidationError","OnlyImplicitAccountCreationAllowed"],props:{index:""}},ActionsValidationError:{name:"ActionsValidationError",subtypes:["DeleteActionMustBeFinal","TotalPrepaidGasExceeded","TotalNumberOfActionsExceeded","AddKeyMethodNamesNumberOfBytesExceeded","AddKeyMethodNameLengthExceeded","IntegerOverflow","InvalidAccountId","ContractSizeExceeded","FunctionCallMethodNameLengthExceeded","FunctionCallArgumentsLengthExceeded","UnsuitableStakingKey","FunctionCallZeroAttachedGas"],props:{}},ActorNoPermission:{name:"ActorNoPermission",subtypes:[],props:{account_id:"",actor_id:""}},AddKeyAlreadyExists:{name:"AddKeyAlreadyExists",subtypes:[],props:{account_id:"",public_key:""}},AddKeyMethodNameLengthExceeded:{name:"AddKeyMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},AddKeyMethodNamesNumberOfBytesExceeded:{name:"AddKeyMethodNamesNumberOfBytesExceeded",subtypes:[],props:{limit:"",total_number_of_bytes:""}},BalanceMismatchError:{name:"BalanceMismatchError",subtypes:[],props:{final_accounts_balance:"",final_postponed_receipts_balance:"",incoming_receipts_balance:"",incoming_validator_rewards:"",initial_accounts_balance:"",initial_postponed_receipts_balance:"",new_delayed_receipts_balance:"",other_burnt_amount:"",outgoing_receipts_balance:"",processed_delayed_receipts_balance:"",slashed_burnt_amount:"",tx_burnt_amount:""}},CostOverflow:{name:"CostOverflow",subtypes:[],props:{}},CreateAccountNotAllowed:{name:"CreateAccountNotAllowed",subtypes:[],props:{account_id:"",predecessor_id:""}},CreateAccountOnlyByRegistrar:{name:"CreateAccountOnlyByRegistrar",subtypes:[],props:{account_id:"",predecessor_id:"",registrar_account_id:""}},DeleteAccountStaking:{name:"DeleteAccountStaking",subtypes:[],props:{account_id:""}},DeleteActionMustBeFinal:{name:"DeleteActionMustBeFinal",subtypes:[],props:{}},DeleteKeyDoesNotExist:{name:"DeleteKeyDoesNotExist",subtypes:[],props:{account_id:"",public_key:""}},DepositWithFunctionCall:{name:"DepositWithFunctionCall",subtypes:[],props:{}},Expired:{name:"Expired",subtypes:[],props:{}},FunctionCallArgumentsLengthExceeded:{name:"FunctionCallArgumentsLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallMethodNameLengthExceeded:{name:"FunctionCallMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallZeroAttachedGas:{name:"FunctionCallZeroAttachedGas",subtypes:[],props:{}},InsufficientStake:{name:"InsufficientStake",subtypes:[],props:{account_id:"",minimum_stake:"",stake:""}},InvalidAccessKeyError:{name:"InvalidAccessKeyError",subtypes:["AccessKeyNotFound","ReceiverMismatch","MethodNameMismatch","RequiresFullAccess","NotEnoughAllowance","DepositWithFunctionCall"],props:{}},InvalidChain:{name:"InvalidChain",subtypes:[],props:{}},InvalidDataReceiverId:{name:"InvalidDataReceiverId",subtypes:[],props:{account_id:""}},InvalidNonce:{name:"InvalidNonce",subtypes:[],props:{ak_nonce:"",tx_nonce:""}},InvalidPredecessorId:{name:"InvalidPredecessorId",subtypes:[],props:{account_id:""}},InvalidReceiverId:{name:"InvalidReceiverId",subtypes:[],props:{account_id:""}},InvalidSignature:{name:"InvalidSignature",subtypes:[],props:{}},InvalidSignerId:{name:"InvalidSignerId",subtypes:[],props:{account_id:""}},InvalidTxError:{name:"InvalidTxError",subtypes:["InvalidAccessKeyError","InvalidSignerId","SignerDoesNotExist","InvalidNonce","InvalidReceiverId","InvalidSignature","NotEnoughBalance","LackBalanceForState","CostOverflow","InvalidChain","Expired","ActionsValidation"],props:{}},LackBalanceForState:{name:"LackBalanceForState",subtypes:[],props:{account_id:"",amount:""}},MethodNameMismatch:{name:"MethodNameMismatch",subtypes:[],props:{method_name:""}},NotEnoughAllowance:{name:"NotEnoughAllowance",subtypes:[],props:{account_id:"",allowance:"",cost:"",public_key:""}},NotEnoughBalance:{name:"NotEnoughBalance",subtypes:[],props:{balance:"",cost:"",signer_id:""}},OnlyImplicitAccountCreationAllowed:{name:"OnlyImplicitAccountCreationAllowed",subtypes:[],props:{account_id:""}},ReceiptValidationError:{name:"ReceiptValidationError",subtypes:["InvalidPredecessorId","InvalidReceiverId","InvalidSignerId","InvalidDataReceiverId","ReturnedValueLengthExceeded","NumberInputDataDependenciesExceeded","ActionsValidation"],props:{}},ReceiverMismatch:{name:"ReceiverMismatch",subtypes:[],props:{ak_receiver:"",tx_receiver:""}},RequiresFullAccess:{name:"RequiresFullAccess",subtypes:[],props:{}},SignerDoesNotExist:{name:"SignerDoesNotExist",subtypes:[],props:{signer_id:""}},TotalNumberOfActionsExceeded:{name:"TotalNumberOfActionsExceeded",subtypes:[],props:{limit:"",total_number_of_actions:""}},TotalPrepaidGasExceeded:{name:"TotalPrepaidGasExceeded",subtypes:[],props:{limit:"",total_prepaid_gas:""}},TriesToStake:{name:"TriesToStake",subtypes:[],props:{account_id:"",balance:"",locked:"",stake:""}},TriesToUnstake:{name:"TriesToUnstake",subtypes:[],props:{account_id:""}},TxExecutionError:{name:"TxExecutionError",subtypes:["ActionError","InvalidTxError"],props:{}},UnsuitableStakingKey:{name:"UnsuitableStakingKey",subtypes:[],props:{public_key:""}},Closed:{name:"Closed",subtypes:[],props:{}},InternalError:{name:"InternalError",subtypes:[],props:{}},ServerError:{name:"ServerError",subtypes:["TxExecutionError","Timeout","Closed","InternalError"],props:{}},Timeout:{name:"Timeout",subtypes:[],props:{}}}}}}),require_error_messages=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/res/error_messages.json"(v,k){k.exports={GasLimitExceeded:"Exceeded the maximum amount of gas allowed to burn per contract",MethodEmptyName:"Method name is empty",WasmerCompileError:"Wasmer compilation error: {{msg}}",GuestPanic:"Smart contract panicked: {{panic_msg}}",Memory:"Error creating Wasm memory",GasExceeded:"Exceeded the prepaid gas",MethodUTF8Error:"Method name is not valid UTF8 string",BadUTF16:"String encoding is bad UTF-16 sequence",WasmTrap:"WebAssembly trap: {{msg}}",GasInstrumentation:"Gas instrumentation failed or contract has denied instructions.",InvalidPromiseIndex:"{{promise_idx}} does not correspond to existing promises",InvalidPromiseResultIndex:"Accessed invalid promise result index: {{result_idx}}",Deserialization:"Error happened while deserializing the module",MethodNotFound:"Contract method is not found",InvalidRegisterId:"Accessed invalid register id: {{register_id}}",InvalidReceiptIndex:"VM Logic returned an invalid receipt index: {{receipt_index}}",EmptyMethodName:"Method name is empty in contract call",CannotReturnJointPromise:"Returning joint promise is currently prohibited",StackHeightInstrumentation:"Stack instrumentation failed",CodeDoesNotExist:"Cannot find contract code for account {{account_id}}",MethodInvalidSignature:"Invalid method signature",IntegerOverflow:"Integer overflow happened during contract execution",MemoryAccessViolation:"MemoryAccessViolation",InvalidIteratorIndex:"Iterator index {{iterator_index}} does not exist",IteratorWasInvalidated:"Iterator {{iterator_index}} was invalidated after its creation by performing a mutable operation on trie",InvalidAccountId:"VM Logic returned an invalid account id",Serialization:"Error happened while serializing the module",CannotAppendActionToJointPromise:"Actions can only be appended to non-joint promise.",InternalMemoryDeclared:"Internal memory declaration has been found in the module",Instantiate:"Error happened during instantiation",ProhibitedInView:"{{method_name}} is not allowed in view calls",InvalidMethodName:"VM Logic returned an invalid method name",BadUTF8:"String encoding is bad UTF-8 sequence",BalanceExceeded:"Exceeded the account balance",LinkError:"Wasm contract link error: {{msg}}",InvalidPublicKey:"VM Logic provided an invalid public key",ActorNoPermission:"Actor {{actor_id}} doesn't have permission to account {{account_id}} to complete the action",LackBalanceForState:"The account {{account_id}} wouldn't have enough balance to cover storage, required to have {{amount}} yoctoNEAR more",ReceiverMismatch:"Wrong AccessKey used for transaction: transaction is sent to receiver_id={{tx_receiver}}, but is signed with function call access key that restricted to only use with receiver_id={{ak_receiver}}. Either change receiver_id in your transaction or switch to use a FullAccessKey.",CostOverflow:"Transaction gas or balance cost is too high",InvalidSignature:"Transaction is not signed with the given public key",AccessKeyNotFound:`Signer "{{account_id}}" doesn't have access key with the given public_key {{public_key}}`,NotEnoughBalance:"Sender {{signer_id}} does not have enough balance {{#formatNear}}{{balance}}{{/formatNear}} for operation costing {{#formatNear}}{{cost}}{{/formatNear}}",NotEnoughAllowance:"Access Key {account_id}:{public_key} does not have enough balance {{#formatNear}}{{allowance}}{{/formatNear}} for transaction costing {{#formatNear}}{{cost}}{{/formatNear}}",Expired:"Transaction has expired",DeleteAccountStaking:"Account {{account_id}} is staking and can not be deleted",SignerDoesNotExist:"Signer {{signer_id}} does not exist",TriesToStake:"Account {{account_id}} tried to stake {{#formatNear}}{{stake}}{{/formatNear}}, but has staked {{#formatNear}}{{locked}}{{/formatNear}} and only has {{#formatNear}}{{balance}}{{/formatNear}}",AddKeyAlreadyExists:"The public key {{public_key}} is already used for an existing access key",InvalidSigner:"Invalid signer account ID {{signer_id}} according to requirements",CreateAccountNotAllowed:"The new account_id {{account_id}} can't be created by {{predecessor_id}}",RequiresFullAccess:"The transaction contains more then one action, but it was signed with an access key which allows transaction to apply only one specific action. To apply more then one actions TX must be signed with a full access key",TriesToUnstake:"Account {{account_id}} is not yet staked, but tried to unstake",InvalidNonce:"Transaction nonce {{tx_nonce}} must be larger than nonce of the used access key {{ak_nonce}}",AccountAlreadyExists:"Can't create a new account {{account_id}}, because it already exists",InvalidChain:"Transaction parent block hash doesn't belong to the current chain",AccountDoesNotExist:"Can't complete the action because account {{account_id}} doesn't exist",MethodNameMismatch:"Transaction method name {{method_name}} isn't allowed by the access key",DeleteAccountHasRent:"Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover the rent",DeleteAccountHasEnoughBalance:"Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover it's storage",InvalidReceiver:"Invalid receiver account ID {{receiver_id}} according to requirements",DeleteKeyDoesNotExist:"Account {{account_id}} tries to remove an access key that doesn't exist",Timeout:"Timeout exceeded",Closed:"Connection closed"}}}),require_rpc_errors=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/rpc_errors.js"(v){var k=v&&v.__importDefault||function(ur){return ur&&ur.__esModule?ur:{default:ur}};Object.defineProperty(v,"__esModule",{value:!0}),v.getErrorTypeFromErrorMessage=v.formatError=v.parseResultError=v.parseRpcError=v.ServerError=void 0;var ie=k(require_mustache()),ae=k(require_rpc_error_schema()),ce=k(require_error_messages()),fe=require_common_index(),le=require_errors$1(),ve={formatNear:()=>(ur,jr)=>fe.utils.format.formatNearAmount(jr(ur))},pe=class extends le.TypedError{};v.ServerError=pe;var ye=class extends pe{};function me(ur){const jr={},Mr=Br(ur,ae.default.schema,jr,""),Lr=new pe(cr(Mr,jr),Mr);return Object.assign(Lr,jr),Lr}v.parseRpcError=me;function Ee(ur){const jr=me(ur.status.Failure),Mr=new ye;return Object.assign(Mr,jr),Mr.type=jr.type,Mr.message=jr.message,Mr.transaction_outcome=ur.transaction_outcome,Mr}v.parseResultError=Ee;function cr(ur,jr){return typeof ce.default[ur]=="string"?ie.default.render(ce.default[ur],{...jr,...ve}):JSON.stringify(jr)}v.formatError=cr;function Br(ur,jr,Mr,Lr){let Vr,Gr,Ur;for(const Qr in jr){if(Or(ur[Qr]))return ur[Qr];if(Pr(ur[Qr]))Vr=ur[Qr],Gr=jr[Qr],Ur=Qr;else if(Pr(ur.kind)&&Pr(ur.kind[Qr]))Vr=ur.kind[Qr],Gr=jr[Qr],Ur=Qr;else continue}if(Vr&&Gr){for(const Qr of Object.keys(Gr.props))Mr[Qr]=Vr[Qr];return Br(Vr,jr,Mr,Ur)}else return Mr.kind=ur,Lr}function $r(ur){switch(!0){case/^account .*? does not exist while viewing$/.test(ur):return"AccountDoesNotExist";case/^Account .*? doesn't exist$/.test(ur):return"AccountDoesNotExist";case/^access key .*? does not exist while viewing$/.test(ur):return"AccessKeyDoesNotExist";case/wasm execution failed with error: FunctionCallError\(CompilationError\(CodeDoesNotExist/.test(ur):return"CodeDoesNotExist";case/Transaction nonce \d+ must be larger than nonce of the used access key \d+/.test(ur):return"InvalidNonce";default:return"UntypedError"}}v.getErrorTypeFromErrorMessage=$r;function Pr(ur){return Object.prototype.toString.call(ur)==="[object Object]"}function Or(ur){return Object.prototype.toString.call(ur)==="[object String]"}}}),require_json_rpc_provider=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/providers/json-rpc-provider.js"(v){var k=v&&v.__importDefault||function($r){return $r&&$r.__esModule?$r:{default:$r}};Object.defineProperty(v,"__esModule",{value:!0}),v.JsonRpcProvider=v.ErrorContext=v.TypedError=void 0;var ie=k(require_browser$3()),ae=require_provider$1(),ce=require_web(),fe=require_errors$1();Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return fe.TypedError}}),Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return fe.ErrorContext}});var le=require_lib(),ve=k(require_exponential_backoff()),pe=require_rpc_errors(),ye=12,me=500,Ee=1.5,cr=123,Br=class extends ae.Provider{constructor($r){super(),$r!=null&&typeof $r=="object"?this.connection=$r:(ie.default("JsonRpcProvider(url?: string)")("use `JsonRpcProvider(connectionInfo: ConnectionInfo)` instead"),this.connection={url:$r})}async status(){return this.sendJsonRpc("status",[])}async sendTransaction($r){const Pr=$r.encode();return this.sendJsonRpc("broadcast_tx_commit",[Buffer.from(Pr).toString("base64")])}async sendTransactionAsync($r){const Pr=$r.encode();return this.sendJsonRpc("broadcast_tx_async",[Buffer.from(Pr).toString("base64")])}async txStatus($r,Pr){return typeof $r=="string"?this.txStatusString($r,Pr):this.txStatusUint8Array($r,Pr)}async txStatusUint8Array($r,Pr){return this.sendJsonRpc("tx",[le.baseEncode($r),Pr])}async txStatusString($r,Pr){return this.sendJsonRpc("tx",[$r,Pr])}async txStatusReceipts($r,Pr){return this.sendJsonRpc("EXPERIMENTAL_tx_status",[le.baseEncode($r),Pr])}async query(...$r){let Pr;if($r.length===1)Pr=await this.sendJsonRpc("query",$r[0]);else{const[Or,ur]=$r;Pr=await this.sendJsonRpc("query",[Or,ur])}if(Pr&&Pr.error)throw new fe.TypedError(`Querying ${$r} failed: ${Pr.error}. -${JSON.stringify(Pr,null,2)}`,pe.getErrorTypeFromErrorMessage(Pr.error));return Pr}async block($r){const{finality:Pr}=$r;let{blockId:Or}=$r;return typeof $r!="object"&&(ie.default("JsonRpcProvider.block(blockId)")("use `block({ blockId })` or `block({ finality })` instead"),Or=$r),this.sendJsonRpc("block",{block_id:Or,finality:Pr})}async blockChanges($r){const{finality:Pr}=$r,{blockId:Or}=$r;return this.sendJsonRpc("EXPERIMENTAL_changes_in_block",{block_id:Or,finality:Pr})}async chunk($r){return this.sendJsonRpc("chunk",[$r])}async validators($r){return this.sendJsonRpc("validators",[$r])}async experimental_genesisConfig(){return ie.default("JsonRpcProvider.experimental_protocolConfig()")("use `experimental_protocolConfig({ sync_checkpoint: 'genesis' })` to fetch the up-to-date or genesis protocol config explicitly"),await this.sendJsonRpc("EXPERIMENTAL_protocol_config",{sync_checkpoint:"genesis"})}async experimental_protocolConfig($r){return await this.sendJsonRpc("EXPERIMENTAL_protocol_config",$r)}async experimental_lightClientProof($r){return ie.default("JsonRpcProvider.experimental_lightClientProof(request)")("use `lightClientProof` instead"),await this.lightClientProof($r)}async lightClientProof($r){return await this.sendJsonRpc("EXPERIMENTAL_light_client_proof",$r)}async accessKeyChanges($r,Pr){const{finality:Or}=Pr,{blockId:ur}=Pr;return this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"all_access_key_changes",account_ids:$r,block_id:ur,finality:Or})}async singleAccessKeyChanges($r,Pr){const{finality:Or}=Pr,{blockId:ur}=Pr;return this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"single_access_key_changes",keys:$r,block_id:ur,finality:Or})}async accountChanges($r,Pr){const{finality:Or}=Pr,{blockId:ur}=Pr;return this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"account_changes",account_ids:$r,block_id:ur,finality:Or})}async contractStateChanges($r,Pr,Or=""){const{finality:ur}=Pr,{blockId:jr}=Pr;return this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"data_changes",account_ids:$r,key_prefix_base64:Or,block_id:jr,finality:ur})}async contractCodeChanges($r,Pr){const{finality:Or}=Pr,{blockId:ur}=Pr;return this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"contract_code_changes",account_ids:$r,block_id:ur,finality:Or})}async gasPrice($r){return await this.sendJsonRpc("gas_price",[$r])}async sendJsonRpc($r,Pr){const Or=await ve.default(me,ye,Ee,async()=>{try{const jr={method:$r,params:Pr,id:cr++,jsonrpc:"2.0"},Mr=await ce.fetchJson(this.connection,JSON.stringify(jr));if(Mr.error){if(typeof Mr.error.data=="object")throw typeof Mr.error.data.error_message=="string"&&typeof Mr.error.data.error_type=="string"?new fe.TypedError(Mr.error.data.error_message,Mr.error.data.error_type):pe.parseRpcError(Mr.error.data);{const Lr=`[${Mr.error.code}] ${Mr.error.message}: ${Mr.error.data}`;throw Mr.error.data==="Timeout"||Lr.includes("Timeout error")||Lr.includes("query has timed out")?new fe.TypedError(Lr,"TimeoutError"):new fe.TypedError(Lr,pe.getErrorTypeFromErrorMessage(Mr.error.data))}}return Mr}catch(jr){if(jr.type==="TimeoutError")return process.env.NEAR_NO_LOGS||console.warn(`Retrying request to ${$r} as it has timed out`,Pr),null;throw jr}}),{result:ur}=Or;if(typeof ur>"u")throw new fe.TypedError(`Exceeded ${ye} attempts for request to ${$r}.`,"RetriesExceeded");return ur}};v.JsonRpcProvider=Br}}),require_providers=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/providers/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ErrorContext=v.TypedError=v.getTransactionLastResult=v.FinalExecutionStatusBasic=v.JsonRpcProvider=v.Provider=void 0;var k=require_provider$1();Object.defineProperty(v,"Provider",{enumerable:!0,get:function(){return k.Provider}}),Object.defineProperty(v,"getTransactionLastResult",{enumerable:!0,get:function(){return k.getTransactionLastResult}}),Object.defineProperty(v,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return k.FinalExecutionStatusBasic}});var ie=require_json_rpc_provider();Object.defineProperty(v,"JsonRpcProvider",{enumerable:!0,get:function(){return ie.JsonRpcProvider}}),Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return ie.TypedError}}),Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return ie.ErrorContext}})}}),require_bn=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/bn.js/lib/bn.js"(v,k){(function(ie,ae){function ce(Kr,be){if(!Kr)throw new Error(be||"Assertion failed")}function fe(Kr,be){Kr.super_=be;var kr=function(){};kr.prototype=be.prototype,Kr.prototype=new kr,Kr.prototype.constructor=Kr}function le(Kr,be,kr){if(le.isBN(Kr))return Kr;this.negative=0,this.words=null,this.length=0,this.red=null,Kr!==null&&((be==="le"||be==="be")&&(kr=be,be=10),this._init(Kr||0,be||10,kr||"be"))}typeof ie=="object"?ie.exports=le:ae.BN=le,le.BN=le,le.wordSize=26;var ve;try{typeof window<"u"&&typeof window.Buffer<"u"?ve=window.Buffer:ve=require_buffer2().Buffer}catch{}le.isBN=function(be){return be instanceof le?!0:be!==null&&typeof be=="object"&&be.constructor.wordSize===le.wordSize&&Array.isArray(be.words)},le.max=function(be,kr){return be.cmp(kr)>0?be:kr},le.min=function(be,kr){return be.cmp(kr)<0?be:kr},le.prototype._init=function(be,kr,xr){if(typeof be=="number")return this._initNumber(be,kr,xr);if(typeof be=="object")return this._initArray(be,kr,xr);kr==="hex"&&(kr=16),ce(kr===(kr|0)&&kr>=2&&kr<=36),be=be.toString().replace(/\s+/g,"");var Wr=0;be[0]==="-"&&(Wr++,this.negative=1),Wr=0;Wr-=3)Xr=be[Wr]|be[Wr-1]<<8|be[Wr-2]<<16,this.words[Jt]|=Xr<>>26-zr&67108863,zr+=24,zr>=26&&(zr-=26,Jt++);else if(xr==="le")for(Wr=0,Jt=0;Wr>>26-zr&67108863,zr+=24,zr>=26&&(zr-=26,Jt++);return this._strip()};function pe(Kr,be){var kr=Kr.charCodeAt(be);if(kr>=48&&kr<=57)return kr-48;if(kr>=65&&kr<=70)return kr-55;if(kr>=97&&kr<=102)return kr-87;ce(!1,"Invalid character in "+Kr)}function ye(Kr,be,kr){var xr=pe(Kr,kr);return kr-1>=be&&(xr|=pe(Kr,kr-1)<<4),xr}le.prototype._parseHex=function(be,kr,xr){this.length=Math.ceil((be.length-kr)/6),this.words=new Array(this.length);for(var Wr=0;Wr=kr;Wr-=2)zr=ye(be,kr,Wr)<=18?(Jt-=18,Xr+=1,this.words[Xr]|=zr>>>26):Jt+=8;else{var Jr=be.length-kr;for(Wr=Jr%2===0?kr+1:kr;Wr=18?(Jt-=18,Xr+=1,this.words[Xr]|=zr>>>26):Jt+=8}this._strip()};function me(Kr,be,kr,xr){for(var Wr=0,Jt=0,Xr=Math.min(Kr.length,kr),zr=be;zr=49?Jt=Jr-49+10:Jr>=17?Jt=Jr-17+10:Jt=Jr,ce(Jr>=0&&Jt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},le.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{le.prototype[Symbol.for("nodejs.util.inspect.custom")]=cr}catch{le.prototype.inspect=cr}else le.prototype.inspect=cr;function cr(){return(this.red?""}var Br=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],$r=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Pr=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];le.prototype.toString=function(be,kr){be=be||10,kr=kr|0||1;var xr;if(be===16||be==="hex"){xr="";for(var Wr=0,Jt=0,Xr=0;Xr>>24-Wr&16777215,Jt!==0||Xr!==this.length-1?xr=Br[6-Jr.length]+Jr+xr:xr=Jr+xr,Wr+=2,Wr>=26&&(Wr-=26,Xr--)}for(Jt!==0&&(xr=Jt.toString(16)+xr);xr.length%kr!==0;)xr="0"+xr;return this.negative!==0&&(xr="-"+xr),xr}if(be===(be|0)&&be>=2&&be<=36){var Nr=$r[be],Hr=Pr[be];xr="";var On=this.clone();for(On.negative=0;!On.isZero();){var Gn=On.modrn(Hr).toString(be);On=On.idivn(Hr),On.isZero()?xr=Gn+xr:xr=Br[Nr-Gn.length]+Gn+xr}for(this.isZero()&&(xr="0"+xr);xr.length%kr!==0;)xr="0"+xr;return this.negative!==0&&(xr="-"+xr),xr}ce(!1,"Base should be between 2 and 36")},le.prototype.toNumber=function(){var be=this.words[0];return this.length===2?be+=this.words[1]*67108864:this.length===3&&this.words[2]===1?be+=4503599627370496+this.words[1]*67108864:this.length>2&&ce(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-be:be},le.prototype.toJSON=function(){return this.toString(16,2)},ve&&(le.prototype.toBuffer=function(be,kr){return this.toArrayLike(ve,be,kr)}),le.prototype.toArray=function(be,kr){return this.toArrayLike(Array,be,kr)};var Or=function(be,kr){return be.allocUnsafe?be.allocUnsafe(kr):new be(kr)};le.prototype.toArrayLike=function(be,kr,xr){this._strip();var Wr=this.byteLength(),Jt=xr||Math.max(1,Wr);ce(Wr<=Jt,"byte array longer than desired length"),ce(Jt>0,"Requested array length <= 0");var Xr=Or(be,Jt),zr=kr==="le"?"LE":"BE";return this["_toArrayLike"+zr](Xr,Wr),Xr},le.prototype._toArrayLikeLE=function(be,kr){for(var xr=0,Wr=0,Jt=0,Xr=0;Jt>8&255),xr>16&255),Xr===6?(xr>24&255),Wr=0,Xr=0):(Wr=zr>>>24,Xr+=2)}if(xr=0&&(be[xr--]=zr>>8&255),xr>=0&&(be[xr--]=zr>>16&255),Xr===6?(xr>=0&&(be[xr--]=zr>>24&255),Wr=0,Xr=0):(Wr=zr>>>24,Xr+=2)}if(xr>=0)for(be[xr--]=Wr;xr>=0;)be[xr--]=0},Math.clz32?le.prototype._countBits=function(be){return 32-Math.clz32(be)}:le.prototype._countBits=function(be){var kr=be,xr=0;return kr>=4096&&(xr+=13,kr>>>=13),kr>=64&&(xr+=7,kr>>>=7),kr>=8&&(xr+=4,kr>>>=4),kr>=2&&(xr+=2,kr>>>=2),xr+kr},le.prototype._zeroBits=function(be){if(be===0)return 26;var kr=be,xr=0;return(kr&8191)===0&&(xr+=13,kr>>>=13),(kr&127)===0&&(xr+=7,kr>>>=7),(kr&15)===0&&(xr+=4,kr>>>=4),(kr&3)===0&&(xr+=2,kr>>>=2),(kr&1)===0&&xr++,xr},le.prototype.bitLength=function(){var be=this.words[this.length-1],kr=this._countBits(be);return(this.length-1)*26+kr};function ur(Kr){for(var be=new Array(Kr.bitLength()),kr=0;kr>>Wr&1}return be}le.prototype.zeroBits=function(){if(this.isZero())return 0;for(var be=0,kr=0;krbe.length?this.clone().ior(be):be.clone().ior(this)},le.prototype.uor=function(be){return this.length>be.length?this.clone().iuor(be):be.clone().iuor(this)},le.prototype.iuand=function(be){var kr;this.length>be.length?kr=be:kr=this;for(var xr=0;xrbe.length?this.clone().iand(be):be.clone().iand(this)},le.prototype.uand=function(be){return this.length>be.length?this.clone().iuand(be):be.clone().iuand(this)},le.prototype.iuxor=function(be){var kr,xr;this.length>be.length?(kr=this,xr=be):(kr=be,xr=this);for(var Wr=0;Wrbe.length?this.clone().ixor(be):be.clone().ixor(this)},le.prototype.uxor=function(be){return this.length>be.length?this.clone().iuxor(be):be.clone().iuxor(this)},le.prototype.inotn=function(be){ce(typeof be=="number"&&be>=0);var kr=Math.ceil(be/26)|0,xr=be%26;this._expand(kr),xr>0&&kr--;for(var Wr=0;Wr0&&(this.words[Wr]=~this.words[Wr]&67108863>>26-xr),this._strip()},le.prototype.notn=function(be){return this.clone().inotn(be)},le.prototype.setn=function(be,kr){ce(typeof be=="number"&&be>=0);var xr=be/26|0,Wr=be%26;return this._expand(xr+1),kr?this.words[xr]=this.words[xr]|1<be.length?(xr=this,Wr=be):(xr=be,Wr=this);for(var Jt=0,Xr=0;Xr>>26;for(;Jt!==0&&Xr>>26;if(this.length=xr.length,Jt!==0)this.words[this.length]=Jt,this.length++;else if(xr!==this)for(;Xrbe.length?this.clone().iadd(be):be.clone().iadd(this)},le.prototype.isub=function(be){if(be.negative!==0){be.negative=0;var kr=this.iadd(be);return be.negative=1,kr._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(be),this.negative=1,this._normSign();var xr=this.cmp(be);if(xr===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Wr,Jt;xr>0?(Wr=this,Jt=be):(Wr=be,Jt=this);for(var Xr=0,zr=0;zr>26,this.words[zr]=kr&67108863;for(;Xr!==0&&zr>26,this.words[zr]=kr&67108863;if(Xr===0&&zr>>26,On=Jr&67108863,Gn=Math.min(Nr,be.length-1),mn=Math.max(0,Nr-Kr.length+1);mn<=Gn;mn++){var Nn=Nr-mn|0;Wr=Kr.words[Nn]|0,Jt=be.words[mn]|0,Xr=Wr*Jt+On,Hr+=Xr/67108864|0,On=Xr&67108863}kr.words[Nr]=On|0,Jr=Hr|0}return Jr!==0?kr.words[Nr]=Jr|0:kr.length--,kr._strip()}var Mr=function(be,kr,xr){var Wr=be.words,Jt=kr.words,Xr=xr.words,zr=0,Jr,Nr,Hr,On=Wr[0]|0,Gn=On&8191,mn=On>>>13,Nn=Wr[1]|0,In=Nn&8191,bn=Nn>>>13,ii=Wr[2]|0,hn=ii&8191,pn=ii>>>13,Sn=Wr[3]|0,Qn=Sn&8191,Jn=Sn>>>13,ui=Wr[4]|0,gi=ui&8191,di=ui>>>13,Ci=Wr[5]|0,yi=Ci&8191,li=Ci>>>13,Pi=Wr[6]|0,Ai=Pi&8191,Oi=Pi>>>13,to=Wr[7]|0,En=to&8191,Bt=to>>>13,Zt=Wr[8]|0,Tn=Zt&8191,ei=Zt>>>13,zn=Wr[9]|0,gn=zn&8191,xn=zn>>>13,Hn=Jt[0]|0,Ln=Hn&8191,ti=Hn>>>13,oi=Jt[1]|0,Ei=oi&8191,Ri=oi>>>13,Oo=Jt[2]|0,Ui=Oo&8191,io=Oo>>>13,So=Jt[3]|0,$o=So&8191,mo=So>>>13,qo=Jt[4]|0,wo=qo&8191,Eo=qo>>>13,jo=Jt[5]|0,go=jo&8191,zi=jo>>>13,xo=Jt[6]|0,Yr=xo&8191,Wt=xo>>>13,ln=Jt[7]|0,qr=ln&8191,dn=ln>>>13,ri=Jt[8]|0,Zn=ri&8191,ai=ri>>>13,bi=Jt[9]|0,_i=bi&8191,fi=bi>>>13;xr.negative=be.negative^kr.negative,xr.length=19,Jr=Math.imul(Gn,Ln),Nr=Math.imul(Gn,ti),Nr=Nr+Math.imul(mn,Ln)|0,Hr=Math.imul(mn,ti);var yo=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(yo>>>26)|0,yo&=67108863,Jr=Math.imul(In,Ln),Nr=Math.imul(In,ti),Nr=Nr+Math.imul(bn,Ln)|0,Hr=Math.imul(bn,ti),Jr=Jr+Math.imul(Gn,Ei)|0,Nr=Nr+Math.imul(Gn,Ri)|0,Nr=Nr+Math.imul(mn,Ei)|0,Hr=Hr+Math.imul(mn,Ri)|0;var Di=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(Di>>>26)|0,Di&=67108863,Jr=Math.imul(hn,Ln),Nr=Math.imul(hn,ti),Nr=Nr+Math.imul(pn,Ln)|0,Hr=Math.imul(pn,ti),Jr=Jr+Math.imul(In,Ei)|0,Nr=Nr+Math.imul(In,Ri)|0,Nr=Nr+Math.imul(bn,Ei)|0,Hr=Hr+Math.imul(bn,Ri)|0,Jr=Jr+Math.imul(Gn,Ui)|0,Nr=Nr+Math.imul(Gn,io)|0,Nr=Nr+Math.imul(mn,Ui)|0,Hr=Hr+Math.imul(mn,io)|0;var Ni=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,Jr=Math.imul(Qn,Ln),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=Math.imul(gn,ai),Nr=Nr+Math.imul(xn,Zn)|0,Hr=Math.imul(xn,ai),Jr=Jr+Math.imul(Tn,_i)|0,Nr=Nr+Math.imul(Tn,fi)|0,Nr=Nr+Math.imul(ei,_i)|0,Hr=Hr+Math.imul(ei,fi)|0;var mi=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(mi>>>26)|0,mi&=67108863,Jr=Math.imul(gn,_i),Nr=Math.imul(gn,fi),Nr=Nr+Math.imul(xn,_i)|0,Hr=Math.imul(xn,fi);var Si=(zr+Jr|0)+((Nr&8191)<<13)|0;return zr=(Hr+(Nr>>>13)|0)+(Si>>>26)|0,Si&=67108863,Xr[0]=yo,Xr[1]=Di,Xr[2]=Ni,Xr[3]=oo,Xr[4]=fo,Xr[5]=co,Xr[6]=Ao,Xr[7]=vo,Xr[8]=_o,Xr[9]=so,Xr[10]=lo,Xr[11]=eo,Xr[12]=uo,Xr[13]=ho,Xr[14]=ro,Xr[15]=ci,Xr[16]=pi,Xr[17]=mi,Xr[18]=Si,zr!==0&&(Xr[19]=zr,xr.length++),xr};Math.imul||(Mr=jr);function Lr(Kr,be,kr){kr.negative=be.negative^Kr.negative,kr.length=Kr.length+be.length;for(var xr=0,Wr=0,Jt=0;Jt>>26)|0,Wr+=Xr>>>26,Xr&=67108863}kr.words[Jt]=zr,xr=Xr,Xr=Wr}return xr!==0?kr.words[Jt]=xr:kr.length--,kr._strip()}function Vr(Kr,be,kr){return Lr(Kr,be,kr)}le.prototype.mulTo=function(be,kr){var xr,Wr=this.length+be.length;return this.length===10&&be.length===10?xr=Mr(this,be,kr):Wr<63?xr=jr(this,be,kr):Wr<1024?xr=Lr(this,be,kr):xr=Vr(this,be,kr),xr},le.prototype.mul=function(be){var kr=new le(null);return kr.words=new Array(this.length+be.length),this.mulTo(be,kr)},le.prototype.mulf=function(be){var kr=new le(null);return kr.words=new Array(this.length+be.length),Vr(this,be,kr)},le.prototype.imul=function(be){return this.clone().mulTo(be,this)},le.prototype.imuln=function(be){var kr=be<0;kr&&(be=-be),ce(typeof be=="number"),ce(be<67108864);for(var xr=0,Wr=0;Wr>=26,xr+=Jt/67108864|0,xr+=Xr>>>26,this.words[Wr]=Xr&67108863}return xr!==0&&(this.words[Wr]=xr,this.length++),kr?this.ineg():this},le.prototype.muln=function(be){return this.clone().imuln(be)},le.prototype.sqr=function(){return this.mul(this)},le.prototype.isqr=function(){return this.imul(this.clone())},le.prototype.pow=function(be){var kr=ur(be);if(kr.length===0)return new le(1);for(var xr=this,Wr=0;Wr=0);var kr=be%26,xr=(be-kr)/26,Wr=67108863>>>26-kr<<26-kr,Jt;if(kr!==0){var Xr=0;for(Jt=0;Jt>>26-kr}Xr&&(this.words[Jt]=Xr,this.length++)}if(xr!==0){for(Jt=this.length-1;Jt>=0;Jt--)this.words[Jt+xr]=this.words[Jt];for(Jt=0;Jt=0);var Wr;kr?Wr=(kr-kr%26)/26:Wr=0;var Jt=be%26,Xr=Math.min((be-Jt)/26,this.length),zr=67108863^67108863>>>Jt<Xr)for(this.length-=Xr,Nr=0;Nr=0&&(Hr!==0||Nr>=Wr);Nr--){var On=this.words[Nr]|0;this.words[Nr]=Hr<<26-Jt|On>>>Jt,Hr=On&zr}return Jr&&Hr!==0&&(Jr.words[Jr.length++]=Hr),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},le.prototype.ishrn=function(be,kr,xr){return ce(this.negative===0),this.iushrn(be,kr,xr)},le.prototype.shln=function(be){return this.clone().ishln(be)},le.prototype.ushln=function(be){return this.clone().iushln(be)},le.prototype.shrn=function(be){return this.clone().ishrn(be)},le.prototype.ushrn=function(be){return this.clone().iushrn(be)},le.prototype.testn=function(be){ce(typeof be=="number"&&be>=0);var kr=be%26,xr=(be-kr)/26,Wr=1<=0);var kr=be%26,xr=(be-kr)/26;if(ce(this.negative===0,"imaskn works only with positive numbers"),this.length<=xr)return this;if(kr!==0&&xr++,this.length=Math.min(xr,this.length),kr!==0){var Wr=67108863^67108863>>>kr<=67108864;kr++)this.words[kr]-=67108864,kr===this.length-1?this.words[kr+1]=1:this.words[kr+1]++;return this.length=Math.max(this.length,kr+1),this},le.prototype.isubn=function(be){if(ce(typeof be=="number"),ce(be<67108864),be<0)return this.iaddn(-be);if(this.negative!==0)return this.negative=0,this.iaddn(be),this.negative=1,this;if(this.words[0]-=be,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var kr=0;kr>26)-(Jr/67108864|0),this.words[Jt+xr]=Xr&67108863}for(;Jt>26,this.words[Jt+xr]=Xr&67108863;if(zr===0)return this._strip();for(ce(zr===-1),zr=0,Jt=0;Jt>26,this.words[Jt]=Xr&67108863;return this.negative=1,this._strip()},le.prototype._wordDiv=function(be,kr){var xr=this.length-be.length,Wr=this.clone(),Jt=be,Xr=Jt.words[Jt.length-1]|0,zr=this._countBits(Xr);xr=26-zr,xr!==0&&(Jt=Jt.ushln(xr),Wr.iushln(xr),Xr=Jt.words[Jt.length-1]|0);var Jr=Wr.length-Jt.length,Nr;if(kr!=="mod"){Nr=new le(null),Nr.length=Jr+1,Nr.words=new Array(Nr.length);for(var Hr=0;Hr=0;Gn--){var mn=(Wr.words[Jt.length+Gn]|0)*67108864+(Wr.words[Jt.length+Gn-1]|0);for(mn=Math.min(mn/Xr|0,67108863),Wr._ishlnsubmul(Jt,mn,Gn);Wr.negative!==0;)mn--,Wr.negative=0,Wr._ishlnsubmul(Jt,1,Gn),Wr.isZero()||(Wr.negative^=1);Nr&&(Nr.words[Gn]=mn)}return Nr&&Nr._strip(),Wr._strip(),kr!=="div"&&xr!==0&&Wr.iushrn(xr),{div:Nr||null,mod:Wr}},le.prototype.divmod=function(be,kr,xr){if(ce(!be.isZero()),this.isZero())return{div:new le(0),mod:new le(0)};var Wr,Jt,Xr;return this.negative!==0&&be.negative===0?(Xr=this.neg().divmod(be,kr),kr!=="mod"&&(Wr=Xr.div.neg()),kr!=="div"&&(Jt=Xr.mod.neg(),xr&&Jt.negative!==0&&Jt.iadd(be)),{div:Wr,mod:Jt}):this.negative===0&&be.negative!==0?(Xr=this.divmod(be.neg(),kr),kr!=="mod"&&(Wr=Xr.div.neg()),{div:Wr,mod:Xr.mod}):(this.negative&be.negative)!==0?(Xr=this.neg().divmod(be.neg(),kr),kr!=="div"&&(Jt=Xr.mod.neg(),xr&&Jt.negative!==0&&Jt.isub(be)),{div:Xr.div,mod:Jt}):be.length>this.length||this.cmp(be)<0?{div:new le(0),mod:this}:be.length===1?kr==="div"?{div:this.divn(be.words[0]),mod:null}:kr==="mod"?{div:null,mod:new le(this.modrn(be.words[0]))}:{div:this.divn(be.words[0]),mod:new le(this.modrn(be.words[0]))}:this._wordDiv(be,kr)},le.prototype.div=function(be){return this.divmod(be,"div",!1).div},le.prototype.mod=function(be){return this.divmod(be,"mod",!1).mod},le.prototype.umod=function(be){return this.divmod(be,"mod",!0).mod},le.prototype.divRound=function(be){var kr=this.divmod(be);if(kr.mod.isZero())return kr.div;var xr=kr.div.negative!==0?kr.mod.isub(be):kr.mod,Wr=be.ushrn(1),Jt=be.andln(1),Xr=xr.cmp(Wr);return Xr<0||Jt===1&&Xr===0?kr.div:kr.div.negative!==0?kr.div.isubn(1):kr.div.iaddn(1)},le.prototype.modrn=function(be){var kr=be<0;kr&&(be=-be),ce(be<=67108863);for(var xr=(1<<26)%be,Wr=0,Jt=this.length-1;Jt>=0;Jt--)Wr=(xr*Wr+(this.words[Jt]|0))%be;return kr?-Wr:Wr},le.prototype.modn=function(be){return this.modrn(be)},le.prototype.idivn=function(be){var kr=be<0;kr&&(be=-be),ce(be<=67108863);for(var xr=0,Wr=this.length-1;Wr>=0;Wr--){var Jt=(this.words[Wr]|0)+xr*67108864;this.words[Wr]=Jt/be|0,xr=Jt%be}return this._strip(),kr?this.ineg():this},le.prototype.divn=function(be){return this.clone().idivn(be)},le.prototype.egcd=function(be){ce(be.negative===0),ce(!be.isZero());var kr=this,xr=be.clone();kr.negative!==0?kr=kr.umod(be):kr=kr.clone();for(var Wr=new le(1),Jt=new le(0),Xr=new le(0),zr=new le(1),Jr=0;kr.isEven()&&xr.isEven();)kr.iushrn(1),xr.iushrn(1),++Jr;for(var Nr=xr.clone(),Hr=kr.clone();!kr.isZero();){for(var On=0,Gn=1;(kr.words[0]&Gn)===0&&On<26;++On,Gn<<=1);if(On>0)for(kr.iushrn(On);On-- >0;)(Wr.isOdd()||Jt.isOdd())&&(Wr.iadd(Nr),Jt.isub(Hr)),Wr.iushrn(1),Jt.iushrn(1);for(var mn=0,Nn=1;(xr.words[0]&Nn)===0&&mn<26;++mn,Nn<<=1);if(mn>0)for(xr.iushrn(mn);mn-- >0;)(Xr.isOdd()||zr.isOdd())&&(Xr.iadd(Nr),zr.isub(Hr)),Xr.iushrn(1),zr.iushrn(1);kr.cmp(xr)>=0?(kr.isub(xr),Wr.isub(Xr),Jt.isub(zr)):(xr.isub(kr),Xr.isub(Wr),zr.isub(Jt))}return{a:Xr,b:zr,gcd:xr.iushln(Jr)}},le.prototype._invmp=function(be){ce(be.negative===0),ce(!be.isZero());var kr=this,xr=be.clone();kr.negative!==0?kr=kr.umod(be):kr=kr.clone();for(var Wr=new le(1),Jt=new le(0),Xr=xr.clone();kr.cmpn(1)>0&&xr.cmpn(1)>0;){for(var zr=0,Jr=1;(kr.words[0]&Jr)===0&&zr<26;++zr,Jr<<=1);if(zr>0)for(kr.iushrn(zr);zr-- >0;)Wr.isOdd()&&Wr.iadd(Xr),Wr.iushrn(1);for(var Nr=0,Hr=1;(xr.words[0]&Hr)===0&&Nr<26;++Nr,Hr<<=1);if(Nr>0)for(xr.iushrn(Nr);Nr-- >0;)Jt.isOdd()&&Jt.iadd(Xr),Jt.iushrn(1);kr.cmp(xr)>=0?(kr.isub(xr),Wr.isub(Jt)):(xr.isub(kr),Jt.isub(Wr))}var On;return kr.cmpn(1)===0?On=Wr:On=Jt,On.cmpn(0)<0&&On.iadd(be),On},le.prototype.gcd=function(be){if(this.isZero())return be.abs();if(be.isZero())return this.abs();var kr=this.clone(),xr=be.clone();kr.negative=0,xr.negative=0;for(var Wr=0;kr.isEven()&&xr.isEven();Wr++)kr.iushrn(1),xr.iushrn(1);do{for(;kr.isEven();)kr.iushrn(1);for(;xr.isEven();)xr.iushrn(1);var Jt=kr.cmp(xr);if(Jt<0){var Xr=kr;kr=xr,xr=Xr}else if(Jt===0||xr.cmpn(1)===0)break;kr.isub(xr)}while(!0);return xr.iushln(Wr)},le.prototype.invm=function(be){return this.egcd(be).a.umod(be)},le.prototype.isEven=function(){return(this.words[0]&1)===0},le.prototype.isOdd=function(){return(this.words[0]&1)===1},le.prototype.andln=function(be){return this.words[0]&be},le.prototype.bincn=function(be){ce(typeof be=="number");var kr=be%26,xr=(be-kr)/26,Wr=1<>>26,zr&=67108863,this.words[Xr]=zr}return Jt!==0&&(this.words[Xr]=Jt,this.length++),this},le.prototype.isZero=function(){return this.length===1&&this.words[0]===0},le.prototype.cmpn=function(be){var kr=be<0;if(this.negative!==0&&!kr)return-1;if(this.negative===0&&kr)return 1;this._strip();var xr;if(this.length>1)xr=1;else{kr&&(be=-be),ce(be<=67108863,"Number is too big");var Wr=this.words[0]|0;xr=Wr===be?0:Wrbe.length)return 1;if(this.length=0;xr--){var Wr=this.words[xr]|0,Jt=be.words[xr]|0;if(Wr!==Jt){WrJt&&(kr=1);break}}return kr},le.prototype.gtn=function(be){return this.cmpn(be)===1},le.prototype.gt=function(be){return this.cmp(be)===1},le.prototype.gten=function(be){return this.cmpn(be)>=0},le.prototype.gte=function(be){return this.cmp(be)>=0},le.prototype.ltn=function(be){return this.cmpn(be)===-1},le.prototype.lt=function(be){return this.cmp(be)===-1},le.prototype.lten=function(be){return this.cmpn(be)<=0},le.prototype.lte=function(be){return this.cmp(be)<=0},le.prototype.eqn=function(be){return this.cmpn(be)===0},le.prototype.eq=function(be){return this.cmp(be)===0},le.red=function(be){return new Xt(be)},le.prototype.toRed=function(be){return ce(!this.red,"Already a number in reduction context"),ce(this.negative===0,"red works only with positives"),be.convertTo(this)._forceRed(be)},le.prototype.fromRed=function(){return ce(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},le.prototype._forceRed=function(be){return this.red=be,this},le.prototype.forceRed=function(be){return ce(!this.red,"Already a number in reduction context"),this._forceRed(be)},le.prototype.redAdd=function(be){return ce(this.red,"redAdd works only with red numbers"),this.red.add(this,be)},le.prototype.redIAdd=function(be){return ce(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,be)},le.prototype.redSub=function(be){return ce(this.red,"redSub works only with red numbers"),this.red.sub(this,be)},le.prototype.redISub=function(be){return ce(this.red,"redISub works only with red numbers"),this.red.isub(this,be)},le.prototype.redShl=function(be){return ce(this.red,"redShl works only with red numbers"),this.red.shl(this,be)},le.prototype.redMul=function(be){return ce(this.red,"redMul works only with red numbers"),this.red._verify2(this,be),this.red.mul(this,be)},le.prototype.redIMul=function(be){return ce(this.red,"redMul works only with red numbers"),this.red._verify2(this,be),this.red.imul(this,be)},le.prototype.redSqr=function(){return ce(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},le.prototype.redISqr=function(){return ce(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},le.prototype.redSqrt=function(){return ce(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},le.prototype.redInvm=function(){return ce(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},le.prototype.redNeg=function(){return ce(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},le.prototype.redPow=function(be){return ce(this.red&&!be.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,be)};var Gr={k256:null,p224:null,p192:null,p25519:null};function Ur(Kr,be){this.name=Kr,this.p=new le(be,16),this.n=this.p.bitLength(),this.k=new le(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ur.prototype._tmp=function(){var be=new le(null);return be.words=new Array(Math.ceil(this.n/13)),be},Ur.prototype.ireduce=function(be){var kr=be,xr;do this.split(kr,this.tmp),kr=this.imulK(kr),kr=kr.iadd(this.tmp),xr=kr.bitLength();while(xr>this.n);var Wr=xr0?kr.isub(this.p):kr.strip!==void 0?kr.strip():kr._strip(),kr},Ur.prototype.split=function(be,kr){be.iushrn(this.n,0,kr)},Ur.prototype.imulK=function(be){return be.imul(this.k)};function Qr(){Ur.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}fe(Qr,Ur),Qr.prototype.split=function(be,kr){for(var xr=4194303,Wr=Math.min(be.length,9),Jt=0;Jt>>22,Xr=zr}Xr>>>=22,be.words[Jt-10]=Xr,Xr===0&&be.length>10?be.length-=10:be.length-=9},Qr.prototype.imulK=function(be){be.words[be.length]=0,be.words[be.length+1]=0,be.length+=2;for(var kr=0,xr=0;xr>>=26,be.words[xr]=Jt,kr=Wr}return kr!==0&&(be.words[be.length++]=kr),be},le._prime=function(be){if(Gr[be])return Gr[be];var kr;if(be==="k256")kr=new Qr;else if(be==="p224")kr=new vn;else if(be==="p192")kr=new Yt;else if(be==="p25519")kr=new fn;else throw new Error("Unknown prime "+be);return Gr[be]=kr,kr};function Xt(Kr){if(typeof Kr=="string"){var be=le._prime(Kr);this.m=be.p,this.prime=be}else ce(Kr.gtn(1),"modulus must be greater than 1"),this.m=Kr,this.prime=null}Xt.prototype._verify1=function(be){ce(be.negative===0,"red works only with positives"),ce(be.red,"red works only with red numbers")},Xt.prototype._verify2=function(be,kr){ce((be.negative|kr.negative)===0,"red works only with positives"),ce(be.red&&be.red===kr.red,"red works only with red numbers")},Xt.prototype.imod=function(be){return this.prime?this.prime.ireduce(be)._forceRed(this):(Ee(be,be.umod(this.m)._forceRed(this)),be)},Xt.prototype.neg=function(be){return be.isZero()?be.clone():this.m.sub(be)._forceRed(this)},Xt.prototype.add=function(be,kr){this._verify2(be,kr);var xr=be.add(kr);return xr.cmp(this.m)>=0&&xr.isub(this.m),xr._forceRed(this)},Xt.prototype.iadd=function(be,kr){this._verify2(be,kr);var xr=be.iadd(kr);return xr.cmp(this.m)>=0&&xr.isub(this.m),xr},Xt.prototype.sub=function(be,kr){this._verify2(be,kr);var xr=be.sub(kr);return xr.cmpn(0)<0&&xr.iadd(this.m),xr._forceRed(this)},Xt.prototype.isub=function(be,kr){this._verify2(be,kr);var xr=be.isub(kr);return xr.cmpn(0)<0&&xr.iadd(this.m),xr},Xt.prototype.shl=function(be,kr){return this._verify1(be),this.imod(be.ushln(kr))},Xt.prototype.imul=function(be,kr){return this._verify2(be,kr),this.imod(be.imul(kr))},Xt.prototype.mul=function(be,kr){return this._verify2(be,kr),this.imod(be.mul(kr))},Xt.prototype.isqr=function(be){return this.imul(be,be.clone())},Xt.prototype.sqr=function(be){return this.mul(be,be)},Xt.prototype.sqrt=function(be){if(be.isZero())return be.clone();var kr=this.m.andln(3);if(ce(kr%2===1),kr===3){var xr=this.m.add(new le(1)).iushrn(2);return this.pow(be,xr)}for(var Wr=this.m.subn(1),Jt=0;!Wr.isZero()&&Wr.andln(1)===0;)Jt++,Wr.iushrn(1);ce(!Wr.isZero());var Xr=new le(1).toRed(this),zr=Xr.redNeg(),Jr=this.m.subn(1).iushrn(1),Nr=this.m.bitLength();for(Nr=new le(2*Nr*Nr).toRed(this);this.pow(Nr,Jr).cmp(zr)!==0;)Nr.redIAdd(zr);for(var Hr=this.pow(Nr,Wr),On=this.pow(be,Wr.addn(1).iushrn(1)),Gn=this.pow(be,Wr),mn=Jt;Gn.cmp(Xr)!==0;){for(var Nn=Gn,In=0;Nn.cmp(Xr)!==0;In++)Nn=Nn.redSqr();ce(In=0;Jt--){for(var Hr=kr.words[Jt],On=Nr-1;On>=0;On--){var Gn=Hr>>On&1;if(Xr!==Wr[0]&&(Xr=this.sqr(Xr)),Gn===0&&zr===0){Jr=0;continue}zr<<=1,zr|=Gn,Jr++,!(Jr!==xr&&(Jt!==0||On!==0))&&(Xr=this.mul(Xr,Wr[zr]),Jr=0,zr=0)}Nr=26}return Xr},Xt.prototype.convertTo=function(be){var kr=be.umod(this.m);return kr===be?kr.clone():kr},Xt.prototype.convertFrom=function(be){var kr=be.clone();return kr.red=null,kr},le.mont=function(be){return new Qt(be)};function Qt(Kr){Xt.call(this,Kr),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new le(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}fe(Qt,Xt),Qt.prototype.convertTo=function(be){return this.imod(be.ushln(this.shift))},Qt.prototype.convertFrom=function(be){var kr=this.imod(be.mul(this.rinv));return kr.red=null,kr},Qt.prototype.imul=function(be,kr){if(be.isZero()||kr.isZero())return be.words[0]=0,be.length=1,be;var xr=be.imul(kr),Wr=xr.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=xr.isub(Wr).iushrn(this.shift),Xr=Jt;return Jt.cmp(this.m)>=0?Xr=Jt.isub(this.m):Jt.cmpn(0)<0&&(Xr=Jt.iadd(this.m)),Xr._forceRed(this)},Qt.prototype.mul=function(be,kr){if(be.isZero()||kr.isZero())return new le(0)._forceRed(this);var xr=be.mul(kr),Wr=xr.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=xr.isub(Wr).iushrn(this.shift),Xr=Jt;return Jt.cmp(this.m)>=0?Xr=Jt.isub(this.m):Jt.cmpn(0)<0&&(Xr=Jt.iadd(this.m)),Xr._forceRed(this)},Qt.prototype.invm=function(be){var kr=this.imod(be._invmp(this.m).mul(this.r2));return kr._forceRed(this)}})(typeof k>"u"||k,v)}}),require_format=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/format.js"(v){var k=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.parseNearAmount=v.formatNearAmount=v.NEAR_NOMINATION=v.NEAR_NOMINATION_EXP=void 0;var ie=k(require_bn());v.NEAR_NOMINATION_EXP=24,v.NEAR_NOMINATION=new ie.default("10",10).pow(new ie.default(v.NEAR_NOMINATION_EXP,10));var ae=[],ce=new ie.default(10);for(let Ee=0,cr=new ie.default(5);Ee0&&Br.iadd(ae[Or])}Ee=Br.toString();const $r=Ee.substring(0,Ee.length-v.NEAR_NOMINATION_EXP)||"0",Pr=Ee.substring(Ee.length-v.NEAR_NOMINATION_EXP).padStart(v.NEAR_NOMINATION_EXP,"0").substring(0,cr);return pe(`${me($r)}.${Pr}`)}v.formatNearAmount=fe;function le(Ee){if(!Ee)return null;Ee=ve(Ee);const cr=Ee.split("."),Br=cr[0],$r=cr[1]||"";if(cr.length>2||$r.length>v.NEAR_NOMINATION_EXP)throw new Error(`Cannot parse '${Ee}' as NEAR amount`);return ye(Br+$r.padEnd(v.NEAR_NOMINATION_EXP,"0"))}v.parseNearAmount=le;function ve(Ee){return Ee.replace(/,/g,"").trim()}function pe(Ee){return Ee.replace(/\.?0*$/,"")}function ye(Ee){return Ee=Ee.replace(/^0+/,""),Ee===""?"0":Ee}function me(Ee){const cr=/(-?\d+)(\d{3})/;for(;cr.test(Ee);)Ee=Ee.replace(cr,"$1,$2");return Ee}}}),require_utils$3=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(cr,Br,$r,Pr){Pr===void 0&&(Pr=$r),Object.defineProperty(cr,Pr,{enumerable:!0,get:function(){return Br[$r]}})}:function(cr,Br,$r,Pr){Pr===void 0&&(Pr=$r),cr[Pr]=Br[$r]}),ie=v&&v.__setModuleDefault||(Object.create?function(cr,Br){Object.defineProperty(cr,"default",{enumerable:!0,value:Br})}:function(cr,Br){cr.default=Br}),ae=v&&v.__importStar||function(cr){if(cr&&cr.__esModule)return cr;var Br={};if(cr!=null)for(var $r in cr)$r!=="default"&&Object.hasOwnProperty.call(cr,$r)&&k(Br,cr,$r);return ie(Br,cr),Br};Object.defineProperty(v,"__esModule",{value:!0}),v.logWarning=v.rpc_errors=v.KeyPairEd25519=v.KeyPair=v.PublicKey=v.format=v.enums=v.web=v.serialize=v.key_pair=void 0;var ce=ae(require_key_pair());v.key_pair=ce;var fe=ae(require_serialize());v.serialize=fe;var le=ae(require_web());v.web=le;var ve=ae(require_enums());v.enums=ve;var pe=ae(require_format());v.format=pe;var ye=ae(require_rpc_errors());v.rpc_errors=ye;var me=require_key_pair();Object.defineProperty(v,"PublicKey",{enumerable:!0,get:function(){return me.PublicKey}}),Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return me.KeyPair}}),Object.defineProperty(v,"KeyPairEd25519",{enumerable:!0,get:function(){return me.KeyPairEd25519}});var Ee=require_errors$1();Object.defineProperty(v,"logWarning",{enumerable:!0,get:function(){return Ee.logWarning}})}}),require_transaction=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/transaction.js"(v){var k=v&&v.__importDefault||function(zr){return zr&&zr.__esModule?zr:{default:zr}};Object.defineProperty(v,"__esModule",{value:!0}),v.signTransaction=v.createTransaction=v.SCHEMA=v.Action=v.SignedTransaction=v.Transaction=v.Signature=v.deleteAccount=v.deleteKey=v.addKey=v.stake=v.transfer=v.functionCall=v.stringifyJsonOrBytes=v.deployContract=v.createAccount=v.DeleteAccount=v.DeleteKey=v.AddKey=v.Stake=v.Transfer=v.FunctionCall=v.DeployContract=v.CreateAccount=v.IAction=v.functionCallAccessKey=v.fullAccessKey=v.AccessKey=v.AccessKeyPermission=v.FullAccessPermission=v.FunctionCallPermission=void 0;var ie=k(require_sha256$2()),ae=require_enums(),ce=require_lib(),fe=require_key_pair(),le=class extends ae.Assignable{};v.FunctionCallPermission=le;var ve=class extends ae.Assignable{};v.FullAccessPermission=ve;var pe=class extends ae.Enum{};v.AccessKeyPermission=pe;var ye=class extends ae.Assignable{};v.AccessKey=ye;function me(){return new ye({nonce:0,permission:new pe({fullAccess:new ve({})})})}v.fullAccessKey=me;function Ee(zr,Jr,Nr){return new ye({nonce:0,permission:new pe({functionCall:new le({receiverId:zr,allowance:Nr,methodNames:Jr})})})}v.functionCallAccessKey=Ee;var cr=class extends ae.Assignable{};v.IAction=cr;var Br=class extends cr{};v.CreateAccount=Br;var $r=class extends cr{};v.DeployContract=$r;var Pr=class extends cr{};v.FunctionCall=Pr;var Or=class extends cr{};v.Transfer=Or;var ur=class extends cr{};v.Stake=ur;var jr=class extends cr{};v.AddKey=jr;var Mr=class extends cr{};v.DeleteKey=Mr;var Lr=class extends cr{};v.DeleteAccount=Lr;function Vr(){return new xr({createAccount:new Br({})})}v.createAccount=Vr;function Gr(zr){return new xr({deployContract:new $r({code:zr})})}v.deployContract=Gr;function Ur(zr){return zr.byteLength!==void 0&&zr.byteLength===zr.length?zr:Buffer.from(JSON.stringify(zr))}v.stringifyJsonOrBytes=Ur;function Qr(zr,Jr,Nr,Hr,On=Ur,Gn=!1){return Gn?new xr({functionCall:new Pr({methodName:zr,args:Jr,gas:Nr,deposit:Hr})}):new xr({functionCall:new Pr({methodName:zr,args:On(Jr),gas:Nr,deposit:Hr})})}v.functionCall=Qr;function vn(zr){return new xr({transfer:new Or({deposit:zr})})}v.transfer=vn;function Yt(zr,Jr){return new xr({stake:new ur({stake:zr,publicKey:Jr})})}v.stake=Yt;function fn(zr,Jr){return new xr({addKey:new jr({publicKey:zr,accessKey:Jr})})}v.addKey=fn;function Xt(zr){return new xr({deleteKey:new Mr({publicKey:zr})})}v.deleteKey=Xt;function Qt(zr){return new xr({deleteAccount:new Lr({beneficiaryId:zr})})}v.deleteAccount=Qt;var Kr=class extends ae.Assignable{};v.Signature=Kr;var be=class extends ae.Assignable{encode(){return ce.serialize(v.SCHEMA,this)}static decode(zr){return ce.deserialize(v.SCHEMA,be,zr)}};v.Transaction=be;var kr=class extends ae.Assignable{encode(){return ce.serialize(v.SCHEMA,this)}static decode(zr){return ce.deserialize(v.SCHEMA,kr,zr)}};v.SignedTransaction=kr;var xr=class extends ae.Enum{};v.Action=xr,v.SCHEMA=new Map([[Kr,{kind:"struct",fields:[["keyType","u8"],["data",[64]]]}],[kr,{kind:"struct",fields:[["transaction",be],["signature",Kr]]}],[be,{kind:"struct",fields:[["signerId","string"],["publicKey",fe.PublicKey],["nonce","u64"],["receiverId","string"],["blockHash",[32]],["actions",[xr]]]}],[fe.PublicKey,{kind:"struct",fields:[["keyType","u8"],["data",[32]]]}],[ye,{kind:"struct",fields:[["nonce","u64"],["permission",pe]]}],[pe,{kind:"enum",field:"enum",values:[["functionCall",le],["fullAccess",ve]]}],[le,{kind:"struct",fields:[["allowance",{kind:"option",type:"u128"}],["receiverId","string"],["methodNames",["string"]]]}],[ve,{kind:"struct",fields:[]}],[xr,{kind:"enum",field:"enum",values:[["createAccount",Br],["deployContract",$r],["functionCall",Pr],["transfer",Or],["stake",ur],["addKey",jr],["deleteKey",Mr],["deleteAccount",Lr]]}],[Br,{kind:"struct",fields:[]}],[$r,{kind:"struct",fields:[["code",["u8"]]]}],[Pr,{kind:"struct",fields:[["methodName","string"],["args",["u8"]],["gas","u64"],["deposit","u128"]]}],[Or,{kind:"struct",fields:[["deposit","u128"]]}],[ur,{kind:"struct",fields:[["stake","u128"],["publicKey",fe.PublicKey]]}],[jr,{kind:"struct",fields:[["publicKey",fe.PublicKey],["accessKey",ye]]}],[Mr,{kind:"struct",fields:[["publicKey",fe.PublicKey]]}],[Lr,{kind:"struct",fields:[["beneficiaryId","string"]]}]]);function Wr(zr,Jr,Nr,Hr,On,Gn){return new be({signerId:zr,publicKey:Jr,nonce:Hr,receiverId:Nr,actions:On,blockHash:Gn})}v.createTransaction=Wr;async function Jt(zr,Jr,Nr,Hr){const On=ce.serialize(v.SCHEMA,zr),Gn=new Uint8Array(ie.default.sha256.array(On)),mn=await Jr.signMessage(On,Nr,Hr),Nn=new kr({transaction:zr,signature:new Kr({keyType:zr.publicKey.keyType,data:mn.signature})});return[Gn,Nn]}async function Xr(...zr){if(zr[0].constructor===be){const[Jr,Nr,Hr,On]=zr;return Jt(Jr,Nr,Hr,On)}else{const[Jr,Nr,Hr,On,Gn,mn,Nn]=zr,In=await Gn.getPublicKey(mn,Nn),bn=Wr(mn,In,Jr,Nr,Hr,On);return Jt(bn,Gn,mn,Nn)}}v.signTransaction=Xr}}),require_validators=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/validators.js"(v){var k=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.diffEpochValidators=v.findSeatPrice=void 0;var ie=k(require_bn()),ae=k(require_browser$3());function ce(pe,ye,me,Ee){return Ee&&Ee<49?fe(pe,ye):(me||(ae.default("findSeatPrice(validators, maxNumberOfSeats)")("`use `findSeatPrice(validators, maxNumberOfSeats, minimumStakeRatio)` instead"),me=[1,6250]),le(pe,ye,me))}v.findSeatPrice=ce;function fe(pe,ye){const me=pe.map(Pr=>new ie.default(Pr.stake,10)).sort((Pr,Or)=>Pr.cmp(Or)),Ee=new ie.default(ye),cr=me.reduce((Pr,Or)=>Pr.add(Or));if(cr.lt(Ee))throw new Error("Stakes are below seats");let Br=new ie.default(1),$r=cr.add(new ie.default(1));for(;!Br.eq($r.sub(new ie.default(1)));){const Pr=Br.add($r).div(new ie.default(2));let Or=!1,ur=new ie.default(0);for(let jr=0;jrnew ie.default(Br.stake,10)).sort((Br,$r)=>Br.cmp($r)),cr=Ee.reduce((Br,$r)=>Br.add($r));return pe.lengthme.set(cr.account_id,cr));const Ee=new Set(ye.map(cr=>cr.account_id));return{newValidators:ye.filter(cr=>!me.has(cr.account_id)),removedValidators:pe.filter(cr=>!Ee.has(cr.account_id)),changedValidators:ye.filter(cr=>me.has(cr.account_id)&&me.get(cr.account_id).stake!=cr.stake).map(cr=>({current:me.get(cr.account_id),next:cr}))}}v.diffEpochValidators=ve}}),require_constants$1=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/constants.js"(v){var k=v&&v.__importDefault||function(ae){return ae&&ae.__esModule?ae:{default:ae}};Object.defineProperty(v,"__esModule",{value:!0}),v.DEFAULT_FUNCTION_CALL_GAS=void 0;var ie=k(require_bn());v.DEFAULT_FUNCTION_CALL_GAS=new ie.default("30000000000000")}}),require_account$1=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/account.js"(v){var k=v&&v.__importDefault||function(jr){return jr&&jr.__esModule?jr:{default:jr}};Object.defineProperty(v,"__esModule",{value:!0}),v.Account=void 0;var ie=k(require_bn()),ae=k(require_browser$3()),ce=require_transaction(),fe=require_providers(),le=require_lib(),ve=require_key_pair(),pe=require_errors$1(),ye=require_rpc_errors(),me=require_constants$1(),Ee=k(require_exponential_backoff()),cr=12,Br=500,$r=1.5;function Pr(jr){return JSON.parse(Buffer.from(jr).toString())}function Or(jr){return Buffer.from(JSON.stringify(jr))}var ur=class{constructor(jr,Mr){this.accessKeyByPublicKeyCache={},this.connection=jr,this.accountId=Mr}get ready(){return ae.default("Account.ready()")("not needed anymore, always ready"),Promise.resolve()}async fetchState(){ae.default("Account.fetchState()")("use `Account.state()` instead")}async state(){return this.connection.provider.query({request_type:"view_account",account_id:this.accountId,finality:"optimistic"})}printLogsAndFailures(jr,Mr){if(!process.env.NEAR_NO_LOGS)for(const Lr of Mr)console.log(`Receipt${Lr.receiptIds.length>1?"s":""}: ${Lr.receiptIds.join(", ")}`),this.printLogs(jr,Lr.logs," "),Lr.failure&&console.warn(` Failure [${jr}]: ${Lr.failure}`)}printLogs(jr,Mr,Lr=""){if(!process.env.NEAR_NO_LOGS)for(const Vr of Mr)console.log(`${Lr}Log [${jr}]: ${Vr}`)}async signTransaction(jr,Mr){const Lr=await this.findAccessKey(jr,Mr);if(!Lr)throw new fe.TypedError(`Can not sign transactions for account ${this.accountId} on network ${this.connection.networkId}, no matching key pair found in ${this.connection.signer}.`,"KeyNotFound");const{accessKey:Vr}=Lr,Ur=(await this.connection.provider.block({finality:"final"})).header.hash,Qr=++Vr.nonce;return await ce.signTransaction(jr,Qr,Mr,le.baseDecode(Ur),this.connection.signer,this.accountId,this.connection.networkId)}signAndSendTransaction(...jr){return typeof jr[0]=="string"?this.signAndSendTransactionV1(jr[0],jr[1]):this.signAndSendTransactionV2(jr[0])}signAndSendTransactionV1(jr,Mr){return ae.default("Account.signAndSendTransaction(receiverId, actions")("use `Account.signAndSendTransaction(SignAndSendTransactionOptions)` instead"),this.signAndSendTransactionV2({receiverId:jr,actions:Mr})}async signAndSendTransactionV2({receiverId:jr,actions:Mr,returnError:Lr}){let Vr,Gr;const Ur=await Ee.default(Br,cr,$r,async()=>{[Vr,Gr]=await this.signTransaction(jr,Mr);const vn=Gr.transaction.publicKey;try{return await this.connection.provider.sendTransaction(Gr)}catch(Yt){if(Yt.type==="InvalidNonce")return pe.logWarning(`Retrying transaction ${jr}:${le.baseEncode(Vr)} with new nonce.`),delete this.accessKeyByPublicKeyCache[vn.toString()],null;if(Yt.type==="Expired")return pe.logWarning(`Retrying transaction ${jr}:${le.baseEncode(Vr)} due to expired block hash`),null;throw Yt.context=new fe.ErrorContext(le.baseEncode(Vr)),Yt}});if(!Ur)throw new fe.TypedError("nonce retries exceeded for transaction. This usually means there are too many parallel requests with the same access key.","RetriesExceeded");const Qr=[Ur.transaction_outcome,...Ur.receipts_outcome].reduce((vn,Yt)=>Yt.outcome.logs.length||typeof Yt.outcome.status=="object"&&typeof Yt.outcome.status.Failure=="object"?vn.concat({receiptIds:Yt.outcome.receipt_ids,logs:Yt.outcome.logs,failure:typeof Yt.outcome.status.Failure<"u"?ye.parseRpcError(Yt.outcome.status.Failure):null}):vn,[]);if(this.printLogsAndFailures(Gr.transaction.receiverId,Qr),!Lr&&typeof Ur.status=="object"&&typeof Ur.status.Failure=="object")throw Ur.status.Failure.error_message&&Ur.status.Failure.error_type?new fe.TypedError(`Transaction ${Ur.transaction_outcome.id} failed. ${Ur.status.Failure.error_message}`,Ur.status.Failure.error_type):ye.parseResultError(Ur);return Ur}async findAccessKey(jr,Mr){const Lr=await this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);if(!Lr)return null;const Vr=this.accessKeyByPublicKeyCache[Lr.toString()];if(Vr!==void 0)return{publicKey:Lr,accessKey:Vr};try{const Gr=await this.connection.provider.query({request_type:"view_access_key",account_id:this.accountId,public_key:Lr.toString(),finality:"optimistic"});return this.accessKeyByPublicKeyCache[Lr.toString()]?{publicKey:Lr,accessKey:this.accessKeyByPublicKeyCache[Lr.toString()]}:(this.accessKeyByPublicKeyCache[Lr.toString()]=Gr,{publicKey:Lr,accessKey:Gr})}catch(Gr){if(Gr.type=="AccessKeyDoesNotExist")return null;throw Gr}}async createAndDeployContract(jr,Mr,Lr,Vr){const Gr=ce.fullAccessKey();return await this.signAndSendTransaction({receiverId:jr,actions:[ce.createAccount(),ce.transfer(Vr),ce.addKey(ve.PublicKey.from(Mr),Gr),ce.deployContract(Lr)]}),new ur(this.connection,jr)}async sendMoney(jr,Mr){return this.signAndSendTransaction({receiverId:jr,actions:[ce.transfer(Mr)]})}async createAccount(jr,Mr,Lr){const Vr=ce.fullAccessKey();return this.signAndSendTransaction({receiverId:jr,actions:[ce.createAccount(),ce.transfer(Lr),ce.addKey(ve.PublicKey.from(Mr),Vr)]})}async deleteAccount(jr){return this.signAndSendTransaction({receiverId:this.accountId,actions:[ce.deleteAccount(jr)]})}async deployContract(jr){return this.signAndSendTransaction({receiverId:this.accountId,actions:[ce.deployContract(jr)]})}encodeJSContractArgs(jr,Mr,Lr){return Buffer.concat([Buffer.from(jr),Buffer.from([0]),Buffer.from(Mr),Buffer.from([0]),Buffer.from(Lr)])}async functionCall(...jr){return typeof jr[0]=="string"?this.functionCallV1(jr[0],jr[1],jr[2],jr[3],jr[4]):this.functionCallV2(jr[0])}functionCallV1(jr,Mr,Lr,Vr,Gr){return ae.default("Account.functionCall(contractId, methodName, args, gas, amount)")("use `Account.functionCall(FunctionCallOptions)` instead"),Lr=Lr||{},this.validateArgs(Lr),this.signAndSendTransaction({receiverId:jr,actions:[ce.functionCall(Mr,Lr,Vr||me.DEFAULT_FUNCTION_CALL_GAS,Gr)]})}functionCallV2({contractId:jr,methodName:Mr,args:Lr={},gas:Vr=me.DEFAULT_FUNCTION_CALL_GAS,attachedDeposit:Gr,walletMeta:Ur,walletCallbackUrl:Qr,stringify:vn,jsContract:Yt}){this.validateArgs(Lr);let fn;if(Yt){const Xt=this.encodeJSContractArgs(jr,Mr,JSON.stringify(Lr));fn=["call_js_contract",Xt,Vr,Gr,null,!0]}else{const Xt=vn===void 0?ce.stringifyJsonOrBytes:vn;fn=[Mr,Lr,Vr,Gr,Xt,!1]}return this.signAndSendTransaction({receiverId:Yt?this.connection.jsvmAccountId:jr,actions:[ce.functionCall.apply(void 0,fn)],walletMeta:Ur,walletCallbackUrl:Qr})}async addKey(jr,Mr,Lr,Vr){Lr||(Lr=[]),Array.isArray(Lr)||(Lr=[Lr]);let Gr;return Mr?Gr=ce.functionCallAccessKey(Mr,Lr,Vr):Gr=ce.fullAccessKey(),this.signAndSendTransaction({receiverId:this.accountId,actions:[ce.addKey(ve.PublicKey.from(jr),Gr)]})}async deleteKey(jr){return this.signAndSendTransaction({receiverId:this.accountId,actions:[ce.deleteKey(ve.PublicKey.from(jr))]})}async stake(jr,Mr){return this.signAndSendTransaction({receiverId:this.accountId,actions:[ce.stake(Mr,ve.PublicKey.from(jr))]})}validateArgs(jr){if(!(jr.byteLength!==void 0&&jr.byteLength===jr.length)&&(Array.isArray(jr)||typeof jr!="object"))throw new pe.PositionalArgsError}async viewFunction(jr,Mr,Lr={},{parse:Vr=Pr,stringify:Gr=Or,jsContract:Ur=!1}={}){let Qr;this.validateArgs(Lr),Ur?Qr=this.encodeJSContractArgs(jr,Mr,Object.keys(Lr).length>0?JSON.stringify(Lr):""):Qr=Gr(Lr);const vn=await this.connection.provider.query({request_type:"call_function",account_id:Ur?this.connection.jsvmAccountId:jr,method_name:Ur?"view_js_contract":Mr,args_base64:Qr.toString("base64"),finality:"optimistic"});return vn.logs&&this.printLogs(jr,vn.logs),vn.result&&vn.result.length>0&&Vr(Buffer.from(vn.result))}async viewState(jr,Mr={finality:"optimistic"}){const{values:Lr}=await this.connection.provider.query({request_type:"view_state",...Mr,account_id:this.accountId,prefix_base64:Buffer.from(jr).toString("base64")});return Lr.map(({key:Vr,value:Gr})=>({key:Buffer.from(Vr,"base64"),value:Buffer.from(Gr,"base64")}))}async getAccessKeys(){const jr=await this.connection.provider.query({request_type:"view_access_key_list",account_id:this.accountId,finality:"optimistic"});return Array.isArray(jr)?jr:jr.keys}async getAccountDetails(){return{authorizedApps:(await this.getAccessKeys()).filter(Lr=>Lr.access_key.permission!=="FullAccess").map(Lr=>{const Vr=Lr.access_key.permission;return{contractId:Vr.FunctionCall.receiver_id,amount:Vr.FunctionCall.allowance,publicKey:Lr.public_key}})}}async getAccountBalance(){const jr=await this.connection.provider.experimental_protocolConfig({finality:"final"}),Mr=await this.state(),Lr=new ie.default(jr.runtime_config.storage_amount_per_byte),Vr=new ie.default(Mr.storage_usage).mul(Lr),Gr=new ie.default(Mr.locked),Ur=new ie.default(Mr.amount).add(Gr),Qr=Ur.sub(ie.default.max(Gr,Vr));return{total:Ur.toString(),stateStaked:Vr.toString(),staked:Gr.toString(),available:Qr.toString()}}};v.Account=ur}}),require_account_multisig=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/account_multisig.js"(v){var k=v&&v.__importDefault||function(Mr){return Mr&&Mr.__esModule?Mr:{default:Mr}};Object.defineProperty(v,"__esModule",{value:!0}),v.Account2FA=v.AccountMultisig=v.MultisigStateStatus=v.MultisigDeleteRequestRejectionError=v.MULTISIG_CONFIRM_METHODS=v.MULTISIG_CHANGE_METHODS=v.MULTISIG_DEPOSIT=v.MULTISIG_GAS=v.MULTISIG_ALLOWANCE=v.MULTISIG_STORAGE_KEY=void 0;var ie=k(require_bn()),ae=k(require_browser$3()),ce=require_account$1(),fe=require_format(),le=require_key_pair(),ve=require_transaction(),pe=require_providers(),ye=require_web();v.MULTISIG_STORAGE_KEY="__multisigRequest",v.MULTISIG_ALLOWANCE=new ie.default(fe.parseNearAmount("1")),v.MULTISIG_GAS=new ie.default("100000000000000"),v.MULTISIG_DEPOSIT=new ie.default("0"),v.MULTISIG_CHANGE_METHODS=["add_request","add_request_and_confirm","delete_request","confirm"],v.MULTISIG_CONFIRM_METHODS=["confirm"];var me;(function(Mr){Mr.CANNOT_DESERIALIZE_STATE="Cannot deserialize the contract state",Mr.MULTISIG_NOT_INITIALIZED="Smart contract panicked: Multisig contract should be initialized before usage",Mr.NO_SUCH_REQUEST="Smart contract panicked: panicked at 'No such request: either wrong number or already confirmed'",Mr.REQUEST_COOLDOWN_ERROR="Request cannot be deleted immediately after creation.",Mr.METHOD_NOT_FOUND="Contract method is not found"})(me=v.MultisigDeleteRequestRejectionError||(v.MultisigDeleteRequestRejectionError={}));var Ee;(function(Mr){Mr[Mr.INVALID_STATE=0]="INVALID_STATE",Mr[Mr.STATE_NOT_INITIALIZED=1]="STATE_NOT_INITIALIZED",Mr[Mr.VALID_STATE=2]="VALID_STATE",Mr[Mr.UNKNOWN_STATE=3]="UNKNOWN_STATE"})(Ee=v.MultisigStateStatus||(v.MultisigStateStatus={}));var cr;(function(Mr){Mr[Mr.INVALID_CODE=0]="INVALID_CODE",Mr[Mr.VALID_CODE=1]="VALID_CODE",Mr[Mr.UNKNOWN_CODE=2]="UNKNOWN_CODE"})(cr||(cr={}));var Br={[v.MULTISIG_STORAGE_KEY]:null},$r=class extends ce.Account{constructor(Mr,Lr,Vr){super(Mr,Lr),this.storage=Vr.storage,this.onAddRequestResult=Vr.onAddRequestResult}async signAndSendTransactionWithAccount(Mr,Lr){return super.signAndSendTransaction({receiverId:Mr,actions:Lr})}signAndSendTransaction(...Mr){return typeof Mr[0]=="string"?this._signAndSendTransaction({receiverId:Mr[0],actions:Mr[1]}):this._signAndSendTransaction(Mr[0])}async _signAndSendTransaction({receiverId:Mr,actions:Lr}){const{accountId:Vr}=this,Gr=Buffer.from(JSON.stringify({request:{receiver_id:Mr,actions:jr(Lr,Vr,Mr)}}));let Ur;try{Ur=await super.signAndSendTransaction({receiverId:Vr,actions:[ve.functionCall("add_request_and_confirm",Gr,v.MULTISIG_GAS,v.MULTISIG_DEPOSIT)]})}catch(vn){if(vn.toString().includes("Account has too many active requests. Confirm or delete some"))return await this.deleteUnconfirmedRequests(),await this.signAndSendTransaction(Mr,Lr);throw vn}if(!Ur.status)throw new Error("Request failed");const Qr={...Ur.status};if(!Qr.SuccessValue||typeof Qr.SuccessValue!="string")throw new Error("Request failed");return this.setRequest({accountId:Vr,actions:Lr,requestId:parseInt(Buffer.from(Qr.SuccessValue,"base64").toString("ascii"),10)}),this.onAddRequestResult&&await this.onAddRequestResult(Ur),this.deleteUnconfirmedRequests(),Ur}async checkMultisigCodeAndStateStatus(Mr){const Vr=Mr?cr.UNKNOWN_CODE:cr.VALID_CODE;try{return Mr?await super.signAndSendTransaction({receiverId:this.accountId,actions:[ve.deployContract(Mr),ve.functionCall("delete_request",{request_id:4294967295},v.MULTISIG_GAS,v.MULTISIG_DEPOSIT)]}):await this.deleteRequest(4294967295),{codeStatus:cr.VALID_CODE,stateStatus:Ee.VALID_STATE}}catch(Gr){if(new RegExp(me.CANNOT_DESERIALIZE_STATE).test(Gr&&Gr.kind&&Gr.kind.ExecutionError))return{codeStatus:Vr,stateStatus:Ee.INVALID_STATE};if(new RegExp(me.MULTISIG_NOT_INITIALIZED).test(Gr&&Gr.kind&&Gr.kind.ExecutionError))return{codeStatus:Vr,stateStatus:Ee.STATE_NOT_INITIALIZED};if(new RegExp(me.NO_SUCH_REQUEST).test(Gr&&Gr.kind&&Gr.kind.ExecutionError))return{codeStatus:Vr,stateStatus:Ee.VALID_STATE};if(new RegExp(me.METHOD_NOT_FOUND).test(Gr&&Gr.message))return{codeStatus:cr.INVALID_CODE,stateStatus:Ee.UNKNOWN_STATE};throw Gr}}deleteRequest(Mr){return super.signAndSendTransaction({receiverId:this.accountId,actions:[ve.functionCall("delete_request",{request_id:Mr},v.MULTISIG_GAS,v.MULTISIG_DEPOSIT)]})}async deleteAllRequests(){const Mr=await this.getRequestIds();Mr.length&&await Promise.all(Mr.map(Lr=>this.deleteRequest(Lr)))}async deleteUnconfirmedRequests(){const Mr=await this.getRequestIds(),{requestId:Lr}=this.getRequest();for(const Vr of Mr)if(Vr!=Lr)try{await super.signAndSendTransaction({receiverId:this.accountId,actions:[ve.functionCall("delete_request",{request_id:Vr},v.MULTISIG_GAS,v.MULTISIG_DEPOSIT)]})}catch{console.warn("Attempt to delete an earlier request before 15 minutes failed. Will try again.")}}async getRequestIds(){return this.viewFunction(this.accountId,"list_request_ids")}getRequest(){return this.storage?JSON.parse(this.storage.getItem(v.MULTISIG_STORAGE_KEY)||"{}"):Br[v.MULTISIG_STORAGE_KEY]}setRequest(Mr){if(this.storage)return this.storage.setItem(v.MULTISIG_STORAGE_KEY,JSON.stringify(Mr));Br[v.MULTISIG_STORAGE_KEY]=Mr}};v.AccountMultisig=$r;var Pr=class extends $r{constructor(Mr,Lr,Vr){super(Mr,Lr,Vr),this.helperUrl="https://helper.testnet.near.org",this.helperUrl=Vr.helperUrl||this.helperUrl,this.storage=Vr.storage,this.sendCode=Vr.sendCode||this.sendCodeDefault,this.getCode=Vr.getCode||this.getCodeDefault,this.verifyCode=Vr.verifyCode||this.verifyCodeDefault,this.onConfirmResult=Vr.onConfirmResult}async signAndSendTransaction(...Mr){return typeof Mr[0]=="string"?(ae.default("Account.signAndSendTransaction(receiverId, actions")("use `Account2FA.signAndSendTransaction(SignAndSendTransactionOptions)` instead"),this.__signAndSendTransaction({receiverId:Mr[0],actions:Mr[1]})):this.__signAndSendTransaction(Mr[0])}async __signAndSendTransaction({receiverId:Mr,actions:Lr}){await super.signAndSendTransaction({receiverId:Mr,actions:Lr}),await this.sendCode();const Vr=await this.promptAndVerify();return this.onConfirmResult&&await this.onConfirmResult(Vr),Vr}async deployMultisig(Mr){const{accountId:Lr}=this,Vr=(await this.getRecoveryMethods()).data.filter(({kind:Xt,publicKey:Qt})=>(Xt==="phrase"||Xt==="ledger")&&Qt!==null).map(Xt=>Xt.publicKey),Gr=(await this.getAccessKeys()).filter(({public_key:Xt,access_key:{permission:Qt}})=>Qt==="FullAccess"&&!Vr.includes(Xt)).map(Xt=>Xt.public_key).map(Or),Ur=Or((await this.postSignedJson("/2fa/getAccessKey",{accountId:Lr})).publicKey),Qr=Buffer.from(JSON.stringify({num_confirmations:2})),vn=[...Gr.map(Xt=>ve.deleteKey(Xt)),...Gr.map(Xt=>ve.addKey(Xt,ve.functionCallAccessKey(Lr,v.MULTISIG_CHANGE_METHODS,null))),ve.addKey(Ur,ve.functionCallAccessKey(Lr,v.MULTISIG_CONFIRM_METHODS,null)),ve.deployContract(Mr)],Yt=vn.concat(ve.functionCall("new",Qr,v.MULTISIG_GAS,v.MULTISIG_DEPOSIT));console.log("deploying multisig contract for",Lr);const{stateStatus:fn}=await this.checkMultisigCodeAndStateStatus(Mr);switch(fn){case Ee.STATE_NOT_INITIALIZED:return await super.signAndSendTransactionWithAccount(Lr,Yt);case Ee.VALID_STATE:return await super.signAndSendTransactionWithAccount(Lr,vn);case Ee.INVALID_STATE:throw new pe.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account has existing state.`,"ContractHasExistingState");default:throw new pe.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account state could not be verified.`,"ContractStateUnknown")}}async disableWithFAK({contractBytes:Mr,cleanupContractBytes:Lr}){let Vr=[];Lr&&(await this.deleteAllRequests().catch(vn=>vn),Vr=await this.get2faDisableCleanupActions(Lr));const Gr=await this.get2faDisableKeyConversionActions(),Ur=[...Vr,...Gr,ve.deployContract(Mr)],Qr=await this.findAccessKey(this.accountId,Ur);if(Qr&&Qr.accessKey&&Qr.accessKey.permission!=="FullAccess")throw new pe.TypedError("No full access key found in keystore. Unable to bypass multisig","NoFAKFound");return this.signAndSendTransactionWithAccount(this.accountId,Ur)}async get2faDisableCleanupActions(Mr){const Lr=await this.viewState("").catch(Gr=>{const Ur=Gr.cause&&Gr.cause.name;if(Ur=="NO_CONTRACT_CODE")return[];throw Ur=="TOO_LARGE_CONTRACT_STATE"?new pe.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account has existing state.`,"ContractHasExistingState"):Gr}),Vr=Lr.map(({key:Gr})=>Gr.toString("base64"));return Lr.length?[ve.deployContract(Mr),ve.functionCall("clean",{keys:Vr},v.MULTISIG_GAS,new ie.default("0"))]:[]}async get2faDisableKeyConversionActions(){const{accountId:Mr}=this,Vr=(await this.getAccessKeys()).filter(({access_key:Ur})=>Ur.permission!=="FullAccess").filter(({access_key:Ur})=>{const Qr=Ur.permission.FunctionCall;return Qr.receiver_id===Mr&&Qr.method_names.length===4&&Qr.method_names.includes("add_request_and_confirm")}),Gr=le.PublicKey.from((await this.postSignedJson("/2fa/getAccessKey",{accountId:Mr})).publicKey);return[ve.deleteKey(Gr),...Vr.map(({public_key:Ur})=>ve.deleteKey(le.PublicKey.from(Ur))),...Vr.map(({public_key:Ur})=>ve.addKey(le.PublicKey.from(Ur),ve.fullAccessKey()))]}async disable(Mr,Lr){const{stateStatus:Vr}=await this.checkMultisigCodeAndStateStatus();if(Vr!==Ee.VALID_STATE&&Vr!==Ee.STATE_NOT_INITIALIZED)throw new pe.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account state could not be verified.`,"ContractStateUnknown");let Gr;await this.deleteAllRequests().catch(vn=>Gr=vn);const Qr=[...await this.get2faDisableCleanupActions(Lr).catch(vn=>{throw vn.type==="ContractHasExistingState"&&Gr||vn}),...await this.get2faDisableKeyConversionActions(),ve.deployContract(Mr)];return console.log("disabling 2fa for",this.accountId),await this.signAndSendTransaction({receiverId:this.accountId,actions:Qr})}async sendCodeDefault(){const{accountId:Mr}=this,{requestId:Lr}=this.getRequest(),Vr=await this.get2faMethod();return await this.postSignedJson("/2fa/send",{accountId:Mr,method:Vr,requestId:Lr}),Lr}async getCodeDefault(Mr){throw new Error('There is no getCode callback provided. Please provide your own in AccountMultisig constructor options. It has a parameter method where method.kind is "email" or "phone".')}async promptAndVerify(){const Mr=await this.get2faMethod(),Lr=await this.getCode(Mr);try{return await this.verifyCode(Lr)}catch(Vr){if(console.warn("Error validating security code:",Vr),Vr.toString().includes("invalid 2fa code provided")||Vr.toString().includes("2fa code not valid"))return await this.promptAndVerify();throw Vr}}async verifyCodeDefault(Mr){const{accountId:Lr}=this,Vr=this.getRequest();if(!Vr)throw new Error("no request pending");const{requestId:Gr}=Vr;return await this.postSignedJson("/2fa/verify",{accountId:Lr,securityCode:Mr,requestId:Gr})}async getRecoveryMethods(){const{accountId:Mr}=this;return{accountId:Mr,data:await this.postSignedJson("/account/recoveryMethods",{accountId:Mr})}}async get2faMethod(){let{data:Mr}=await this.getRecoveryMethods();if(Mr&&Mr.length&&(Mr=Mr.find(Gr=>Gr.kind.indexOf("2fa-")===0)),!Mr)return null;const{kind:Lr,detail:Vr}=Mr;return{kind:Lr,detail:Vr}}async signatureFor(){const{accountId:Mr}=this,Vr=(await this.connection.provider.block({finality:"final"})).header.height.toString(),Gr=await this.connection.signer.signMessage(Buffer.from(Vr),Mr,this.connection.networkId),Ur=Buffer.from(Gr.signature).toString("base64");return{blockNumber:Vr,blockNumberSignature:Ur}}async postSignedJson(Mr,Lr){return await ye.fetchJson(this.helperUrl+Mr,JSON.stringify({...Lr,...await this.signatureFor()}))}};v.Account2FA=Pr;var Or=Mr=>le.PublicKey.from(Mr),ur=Mr=>Mr.toString().replace("ed25519:",""),jr=(Mr,Lr,Vr)=>Mr.map(Gr=>{const Ur=Gr.enum,{gas:Qr,publicKey:vn,methodName:Yt,args:fn,deposit:Xt,accessKey:Qt,code:Kr}=Gr[Ur],be={type:Ur[0].toUpperCase()+Ur.substr(1),gas:Qr&&Qr.toString()||void 0,public_key:vn&&ur(vn)||void 0,method_name:Yt,args:fn&&Buffer.from(fn).toString("base64")||void 0,code:Kr&&Buffer.from(Kr).toString("base64")||void 0,amount:Xt&&Xt.toString()||void 0,deposit:Xt&&Xt.toString()||"0",permission:void 0};if(Qt&&(Vr===Lr&&Qt.permission.enum!=="fullAccess"&&(be.permission={receiver_id:Lr,allowance:v.MULTISIG_ALLOWANCE.toString(),method_names:v.MULTISIG_CHANGE_METHODS}),Qt.permission.enum==="functionCall")){const{receiverId:kr,methodNames:xr,allowance:Wr}=Qt.permission.functionCall;be.permission={receiver_id:kr,allowance:Wr&&Wr.toString()||void 0,method_names:xr}}return be})}}),require_account_creator=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/account_creator.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.UrlAccountCreator=v.LocalAccountCreator=v.AccountCreator=void 0;var k=require_web(),ie=class{};v.AccountCreator=ie;var ae=class extends ie{constructor(fe,le){super(),this.masterAccount=fe,this.initialBalance=le}async createAccount(fe,le){await this.masterAccount.createAccount(fe,le,this.initialBalance)}};v.LocalAccountCreator=ae;var ce=class extends ie{constructor(fe,le){super(),this.connection=fe,this.helperUrl=le}async createAccount(fe,le){await k.fetchJson(`${this.helperUrl}/account`,JSON.stringify({newAccountId:fe,newAccountPublicKey:le.toString()}))}};v.UrlAccountCreator=ce}}),require_signer=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/signer.js"(v){var k=v&&v.__importDefault||function(ve){return ve&&ve.__esModule?ve:{default:ve}};Object.defineProperty(v,"__esModule",{value:!0}),v.InMemorySigner=v.Signer=void 0;var ie=k(require_sha256$2()),ae=require_key_pair(),ce=require_in_memory_key_store(),fe=class{};v.Signer=fe;var le=class extends fe{constructor(ve){super(),this.keyStore=ve}static async fromKeyPair(ve,pe,ye){const me=new ce.InMemoryKeyStore;return await me.setKey(ve,pe,ye),new le(me)}async createKey(ve,pe){const ye=ae.KeyPair.fromRandom("ed25519");return await this.keyStore.setKey(pe,ve,ye),ye.getPublicKey()}async getPublicKey(ve,pe){const ye=await this.keyStore.getKey(pe,ve);return ye===null?null:ye.getPublicKey()}async signMessage(ve,pe,ye){const me=new Uint8Array(ie.default.sha256.array(ve));if(!pe)throw new Error("InMemorySigner requires provided account id");const Ee=await this.keyStore.getKey(ye,pe);if(Ee===null)throw new Error(`Key for ${pe} not found in ${ye}`);return Ee.sign(me)}toString(){return`InMemorySigner(${this.keyStore})`}};v.InMemorySigner=le}}),require_connection=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/connection.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Connection=void 0;var k=require_providers(),ie=require_signer();function ae(le){switch(le.type){case void 0:return le;case"JsonRpcProvider":return new k.JsonRpcProvider({...le.args});default:throw new Error(`Unknown provider type ${le.type}`)}}function ce(le){switch(le.type){case void 0:return le;case"InMemorySigner":return new ie.InMemorySigner(le.keyStore);default:throw new Error(`Unknown signer type ${le.type}`)}}var fe=class{constructor(le,ve,pe,ye){this.networkId=le,this.provider=ve,this.signer=pe,this.jsvmAccountId=ye}static fromConfig(le){const ve=ae(le.provider),pe=ce(le.signer);return new fe(le.networkId,ve,pe,le.jsvmAccountId)}};v.Connection=fe}}),require_contract=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/contract.js"(v){var k=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.Contract=void 0;var ie=k(require_bn()),ae=k(require_browser$3()),ce=require_providers(),fe=require_errors$1();function le(Ee,cr){return{[Ee](...Br){return cr(...Br)}}[Ee]}var ve=Ee=>Ee&&Ee.byteLength!==void 0&&Ee.byteLength===Ee.length,pe=Ee=>Object.prototype.toString.call(Ee)==="[object Object]",ye=class{constructor(Ee,cr,Br){this.account=Ee,this.contractId=cr;const{viewMethods:$r=[],changeMethods:Pr=[]}=Br;$r.forEach(Or=>{Object.defineProperty(this,Or,{writable:!1,enumerable:!0,value:le(Or,async(ur={},jr={},...Mr)=>{if(Mr.length||!(pe(ur)||ve(ur))||!pe(jr))throw new fe.PositionalArgsError;return this.account.viewFunction(this.contractId,Or,ur,jr)})})}),Pr.forEach(Or=>{Object.defineProperty(this,Or,{writable:!1,enumerable:!0,value:le(Or,async(...ur)=>{if(ur.length&&(ur.length>3||!(pe(ur[0])||ve(ur[0]))))throw new fe.PositionalArgsError;return ur.length>1||!(ur[0]&&ur[0].args)?(ae.default("contract.methodName(args, gas, amount)")("use `contract.methodName({ args, gas?, amount?, callbackUrl?, meta? })` instead"),this._changeMethod({methodName:Or,args:ur[0],gas:ur[1],amount:ur[2]})):this._changeMethod({methodName:Or,...ur[0]})})})})}async _changeMethod({args:Ee,methodName:cr,gas:Br,amount:$r,meta:Pr,callbackUrl:Or}){me({gas:Br,amount:$r});const ur=await this.account.functionCall({contractId:this.contractId,methodName:cr,args:Ee,gas:Br,attachedDeposit:$r,walletMeta:Pr,walletCallbackUrl:Or});return ce.getTransactionLastResult(ur)}};v.Contract=ye;function me(Ee){const cr="number, decimal string or BN";for(const Br of Object.keys(Ee)){const $r=Ee[Br];if($r&&!ie.default.isBN($r)&&isNaN($r))throw new fe.ArgumentTypeError(Br,cr,$r)}}}}),require_near=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/near.js"(v){var k=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.Near=void 0;var ie=k(require_bn()),ae=require_account$1(),ce=require_connection(),fe=require_contract(),le=require_account_creator(),ve=class{constructor(pe){if(this.config=pe,this.connection=ce.Connection.fromConfig({networkId:pe.networkId,provider:{type:"JsonRpcProvider",args:{url:pe.nodeUrl,headers:pe.headers}},signer:pe.signer||{type:"InMemorySigner",keyStore:pe.keyStore||pe.deps&&pe.deps.keyStore},jsvmAccountId:pe.jsvmAccountId||`jsvm.${pe.networkId}`}),pe.masterAccount){const ye=pe.initialBalance?new ie.default(pe.initialBalance):new ie.default("500000000000000000000000000");this.accountCreator=new le.LocalAccountCreator(new ae.Account(this.connection,pe.masterAccount),ye)}else pe.helperUrl?this.accountCreator=new le.UrlAccountCreator(this.connection,pe.helperUrl):this.accountCreator=null}async account(pe){return new ae.Account(this.connection,pe)}async createAccount(pe,ye){if(!this.accountCreator)throw new Error("Must specify account creator, either via masterAccount or helperUrl configuration settings.");return await this.accountCreator.createAccount(pe,ye),new ae.Account(this.connection,pe)}async loadContract(pe,ye){const me=new ae.Account(this.connection,ye.sender);return new fe.Contract(me,pe,ye)}async sendTokens(pe,ye,me){return console.warn("near.sendTokens is deprecated. Use `yourAccount.sendMoney` instead."),(await new ae.Account(this.connection,ye).sendMoney(me,pe)).transaction_outcome.id}};v.Near=ve}}),require_wallet_account=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/wallet-account.js"(v){var k=v&&v.__importDefault||function($r){return $r&&$r.__esModule?$r:{default:$r}};Object.defineProperty(v,"__esModule",{value:!0}),v.ConnectedWalletAccount=v.WalletAccount=v.WalletConnection=void 0;var ie=k(require_browser$3()),ae=require_account$1(),ce=require_transaction(),fe=require_utils$3(),le=require_lib(),ve=require_lib(),pe="/login/",ye="add_request_and_confirm",me="_wallet_auth_key",Ee="pending_key",cr=class{constructor($r,Pr){this._near=$r;const Or=Pr+me,ur=JSON.parse(window.localStorage.getItem(Or));this._networkId=$r.config.networkId,this._walletBaseUrl=$r.config.walletUrl,Pr=Pr||$r.config.contractName||"default",this._keyStore=$r.connection.signer.keyStore,this._authData=ur||{allKeys:[]},this._authDataKey=Or,this.isSignedIn()||this._completeSignInWithAccessKey()}isSignedIn(){return!!this._authData.accountId}getAccountId(){return this._authData.accountId||""}async requestSignIn($r={},Pr,Or,ur){let jr;typeof $r=="string"?(ie.default("requestSignIn(contractId, title)")("`title` ignored; use `requestSignIn({ contractId, methodNames, successUrl, failureUrl })` instead"),jr={contractId:$r,successUrl:Or,failureUrl:ur}):jr=$r;const Mr=new URL(window.location.href),Lr=new URL(this._walletBaseUrl+pe);if(Lr.searchParams.set("success_url",jr.successUrl||Mr.href),Lr.searchParams.set("failure_url",jr.failureUrl||Mr.href),jr.contractId){await(await this._near.account(jr.contractId)).state(),Lr.searchParams.set("contract_id",jr.contractId);const Gr=fe.KeyPair.fromRandom("ed25519");Lr.searchParams.set("public_key",Gr.getPublicKey().toString()),await this._keyStore.setKey(this._networkId,Ee+Gr.getPublicKey(),Gr)}jr.methodNames&&jr.methodNames.forEach(Vr=>{Lr.searchParams.append("methodNames",Vr)}),window.location.assign(Lr.toString())}async requestSignTransactions(...$r){return Array.isArray($r[0])?(ie.default("WalletConnection.requestSignTransactions(transactions, callbackUrl, meta)")("use `WalletConnection.requestSignTransactions(RequestSignTransactionsOptions)` instead"),this._requestSignTransactions({transactions:$r[0],callbackUrl:$r[1],meta:$r[2]})):this._requestSignTransactions($r[0])}async _requestSignTransactions({transactions:$r,meta:Pr,callbackUrl:Or}){const ur=new URL(window.location.href),jr=new URL("sign",this._walletBaseUrl);jr.searchParams.set("transactions",$r.map(Mr=>ve.serialize(ce.SCHEMA,Mr)).map(Mr=>Buffer.from(Mr).toString("base64")).join(",")),jr.searchParams.set("callbackUrl",Or||ur.href),Pr&&jr.searchParams.set("meta",Pr),window.location.assign(jr.toString())}async _completeSignInWithAccessKey(){const $r=new URL(window.location.href),Pr=$r.searchParams.get("public_key")||"",Or=($r.searchParams.get("all_keys")||"").split(","),ur=$r.searchParams.get("account_id")||"";ur&&(this._authData={accountId:ur,allKeys:Or},window.localStorage.setItem(this._authDataKey,JSON.stringify(this._authData)),Pr&&await this._moveKeyFromTempToPermanent(ur,Pr)),$r.searchParams.delete("public_key"),$r.searchParams.delete("all_keys"),$r.searchParams.delete("account_id"),$r.searchParams.delete("meta"),$r.searchParams.delete("transactionHashes"),window.history.replaceState({},document.title,$r.toString())}async _moveKeyFromTempToPermanent($r,Pr){const Or=await this._keyStore.getKey(this._networkId,Ee+Pr);await this._keyStore.setKey(this._networkId,$r,Or),await this._keyStore.removeKey(this._networkId,Ee+Pr)}signOut(){this._authData={},window.localStorage.removeItem(this._authDataKey)}account(){return this._connectedAccount||(this._connectedAccount=new Br(this,this._near.connection,this._authData.accountId)),this._connectedAccount}};v.WalletConnection=cr,v.WalletAccount=cr;var Br=class extends ae.Account{constructor($r,Pr,Or){super(Pr,Or),this.walletConnection=$r}signAndSendTransaction(...$r){return typeof $r[0]=="string"?this._signAndSendTransaction({receiverId:$r[0],actions:$r[1]}):this._signAndSendTransaction($r[0])}async _signAndSendTransaction({receiverId:$r,actions:Pr,walletMeta:Or,walletCallbackUrl:ur=window.location.href}){const jr=await this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);let Mr=await this.accessKeyForTransaction($r,Pr,jr);if(!Mr)throw new Error(`Cannot find matching key for transaction sent to ${$r}`);if(jr&&jr.toString()===Mr.public_key)try{return await super.signAndSendTransaction({receiverId:$r,actions:Pr})}catch(vn){if(vn.type==="NotEnoughAllowance")Mr=await this.accessKeyForTransaction($r,Pr);else throw vn}const Lr=await this.connection.provider.block({finality:"final"}),Vr=le.baseDecode(Lr.header.hash),Gr=fe.PublicKey.from(Mr.public_key),Ur=Mr.access_key.nonce+1,Qr=ce.createTransaction(this.accountId,Gr,$r,Ur,Pr,Vr);return await this.walletConnection.requestSignTransactions({transactions:[Qr],meta:Or,callbackUrl:ur}),new Promise((vn,Yt)=>{setTimeout(()=>{Yt(new Error("Failed to redirect to sign transaction"))},1e3)})}async accessKeyMatchesTransaction($r,Pr,Or){const{access_key:{permission:ur}}=$r;if(ur==="FullAccess")return!0;if(ur.FunctionCall){const{receiver_id:jr,method_names:Mr}=ur.FunctionCall;if(jr===this.accountId&&Mr.includes(ye))return!0;if(jr===Pr){if(Or.length!==1)return!1;const[{functionCall:Lr}]=Or;return Lr&&(!Lr.deposit||Lr.deposit.toString()==="0")&&(Mr.length===0||Mr.includes(Lr.methodName))}}return!1}async accessKeyForTransaction($r,Pr,Or){const ur=await this.getAccessKeys();if(Or){const Mr=ur.find(Lr=>Lr.public_key.toString()===Or.toString());if(Mr&&await this.accessKeyMatchesTransaction(Mr,$r,Pr))return Mr}const jr=this.walletConnection._authData.allKeys;for(const Mr of ur)if(jr.indexOf(Mr.public_key)!==-1&&await this.accessKeyMatchesTransaction(Mr,$r,Pr))return Mr;return null}};v.ConnectedWalletAccount=Br}}),require_common_index=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/common-index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ur,jr,Mr,Lr){Lr===void 0&&(Lr=Mr),Object.defineProperty(ur,Lr,{enumerable:!0,get:function(){return jr[Mr]}})}:function(ur,jr,Mr,Lr){Lr===void 0&&(Lr=Mr),ur[Lr]=jr[Mr]}),ie=v&&v.__setModuleDefault||(Object.create?function(ur,jr){Object.defineProperty(ur,"default",{enumerable:!0,value:jr})}:function(ur,jr){ur.default=jr}),ae=v&&v.__importStar||function(ur){if(ur&&ur.__esModule)return ur;var jr={};if(ur!=null)for(var Mr in ur)Mr!=="default"&&Object.hasOwnProperty.call(ur,Mr)&&k(jr,ur,Mr);return ie(jr,ur),jr};Object.defineProperty(v,"__esModule",{value:!0}),v.WalletConnection=v.WalletAccount=v.ConnectedWalletAccount=v.Near=v.KeyPair=v.Signer=v.InMemorySigner=v.Contract=v.Connection=v.Account=v.multisig=v.validators=v.transactions=v.utils=v.providers=v.accountCreator=void 0;var ce=ae(require_providers());v.providers=ce;var fe=ae(require_utils$3());v.utils=fe;var le=ae(require_transaction());v.transactions=le;var ve=ae(require_validators());v.validators=ve;var pe=require_account$1();Object.defineProperty(v,"Account",{enumerable:!0,get:function(){return pe.Account}});var ye=ae(require_account_multisig());v.multisig=ye;var me=ae(require_account_creator());v.accountCreator=me;var Ee=require_connection();Object.defineProperty(v,"Connection",{enumerable:!0,get:function(){return Ee.Connection}});var cr=require_signer();Object.defineProperty(v,"Signer",{enumerable:!0,get:function(){return cr.Signer}}),Object.defineProperty(v,"InMemorySigner",{enumerable:!0,get:function(){return cr.InMemorySigner}});var Br=require_contract();Object.defineProperty(v,"Contract",{enumerable:!0,get:function(){return Br.Contract}});var $r=require_key_pair();Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return $r.KeyPair}});var Pr=require_near();Object.defineProperty(v,"Near",{enumerable:!0,get:function(){return Pr.Near}});var Or=require_wallet_account();Object.defineProperty(v,"ConnectedWalletAccount",{enumerable:!0,get:function(){return Or.ConnectedWalletAccount}}),Object.defineProperty(v,"WalletAccount",{enumerable:!0,get:function(){return Or.WalletAccount}}),Object.defineProperty(v,"WalletConnection",{enumerable:!0,get:function(){return Or.WalletConnection}})}}),require_browser_connect=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/browser-connect.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.connect=void 0;var k=require_near();async function ie(ae){return new k.Near(ae)}v.connect=ie}}),require_browser_index3=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/browser-index.js"(v){var k=v&&v.__createBinding||(Object.create?function(fe,le,ve,pe){pe===void 0&&(pe=ve),Object.defineProperty(fe,pe,{enumerable:!0,get:function(){return le[ve]}})}:function(fe,le,ve,pe){pe===void 0&&(pe=ve),fe[pe]=le[ve]}),ie=v&&v.__setModuleDefault||(Object.create?function(fe,le){Object.defineProperty(fe,"default",{enumerable:!0,value:le})}:function(fe,le){fe.default=le}),ae=v&&v.__importStar||function(fe){if(fe&&fe.__esModule)return fe;var le={};if(fe!=null)for(var ve in fe)ve!=="default"&&Object.hasOwnProperty.call(fe,ve)&&k(le,fe,ve);return ie(le,fe),le},ce=v&&v.__exportStar||function(fe,le){for(var ve in fe)ve!=="default"&&!le.hasOwnProperty(ve)&&k(le,fe,ve)};Object.defineProperty(v,"__esModule",{value:!0}),v.keyStores=ae(require_browser_index2()),ce(require_common_index(),v),ce(require_browser_connect(),v),require_error_polyfill()}});function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var getRandomValues,rnds8,init_rng=__esm$1({"node_modules/uuid/dist/esm-browser/rng.js"(){rnds8=new Uint8Array(16)}}),regex_default,init_regex=__esm$1({"node_modules/uuid/dist/esm-browser/regex.js"(){regex_default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i}});function validate(v){return typeof v=="string"&®ex_default.test(v)}var validate_default,init_validate=__esm$1({"node_modules/uuid/dist/esm-browser/validate.js"(){init_regex(),validate_default=validate}});function stringify(v){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ie=(byteToHex[v[k+0]]+byteToHex[v[k+1]]+byteToHex[v[k+2]]+byteToHex[v[k+3]]+"-"+byteToHex[v[k+4]]+byteToHex[v[k+5]]+"-"+byteToHex[v[k+6]]+byteToHex[v[k+7]]+"-"+byteToHex[v[k+8]]+byteToHex[v[k+9]]+"-"+byteToHex[v[k+10]]+byteToHex[v[k+11]]+byteToHex[v[k+12]]+byteToHex[v[k+13]]+byteToHex[v[k+14]]+byteToHex[v[k+15]]).toLowerCase();if(!validate_default(ie))throw TypeError("Stringified UUID is invalid");return ie}var byteToHex,i$1,stringify_default,init_stringify=__esm$1({"node_modules/uuid/dist/esm-browser/stringify.js"(){for(init_validate(),byteToHex=[],i$1=0;i$1<256;++i$1)byteToHex.push((i$1+256).toString(16).substr(1));stringify_default=stringify}});function v1(v,k,ie){var ae=k&&ie||0,ce=k||new Array(16);v=v||{};var fe=v.node||_nodeId,le=v.clockseq!==void 0?v.clockseq:_clockseq;if(fe==null||le==null){var ve=v.random||(v.rng||rng)();fe==null&&(fe=_nodeId=[ve[0]|1,ve[1],ve[2],ve[3],ve[4],ve[5]]),le==null&&(le=_clockseq=(ve[6]<<8|ve[7])&16383)}var pe=v.msecs!==void 0?v.msecs:Date.now(),ye=v.nsecs!==void 0?v.nsecs:_lastNSecs+1,me=pe-_lastMSecs+(ye-_lastNSecs)/1e4;if(me<0&&v.clockseq===void 0&&(le=le+1&16383),(me<0||pe>_lastMSecs)&&v.nsecs===void 0&&(ye=0),ye>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_lastMSecs=pe,_lastNSecs=ye,_clockseq=le,pe+=122192928e5;var Ee=((pe&268435455)*1e4+ye)%4294967296;ce[ae++]=Ee>>>24&255,ce[ae++]=Ee>>>16&255,ce[ae++]=Ee>>>8&255,ce[ae++]=Ee&255;var cr=pe/4294967296*1e4&268435455;ce[ae++]=cr>>>8&255,ce[ae++]=cr&255,ce[ae++]=cr>>>24&15|16,ce[ae++]=cr>>>16&255,ce[ae++]=le>>>8|128,ce[ae++]=le&255;for(var Br=0;Br<6;++Br)ce[ae+Br]=fe[Br];return k||stringify_default(ce)}var _nodeId,_clockseq,_lastMSecs,_lastNSecs,v1_default,init_v1=__esm$1({"node_modules/uuid/dist/esm-browser/v1.js"(){init_rng(),init_stringify(),_lastMSecs=0,_lastNSecs=0,v1_default=v1}});function parse$1(v){if(!validate_default(v))throw TypeError("Invalid UUID");var k,ie=new Uint8Array(16);return ie[0]=(k=parseInt(v.slice(0,8),16))>>>24,ie[1]=k>>>16&255,ie[2]=k>>>8&255,ie[3]=k&255,ie[4]=(k=parseInt(v.slice(9,13),16))>>>8,ie[5]=k&255,ie[6]=(k=parseInt(v.slice(14,18),16))>>>8,ie[7]=k&255,ie[8]=(k=parseInt(v.slice(19,23),16))>>>8,ie[9]=k&255,ie[10]=(k=parseInt(v.slice(24,36),16))/1099511627776&255,ie[11]=k/4294967296&255,ie[12]=k>>>24&255,ie[13]=k>>>16&255,ie[14]=k>>>8&255,ie[15]=k&255,ie}var parse_default,init_parse=__esm$1({"node_modules/uuid/dist/esm-browser/parse.js"(){init_validate(),parse_default=parse$1}});function stringToBytes(v){v=unescape(encodeURIComponent(v));for(var k=[],ie=0;ie>5]>>>ce%32&255,le=parseInt(ae.charAt(fe>>>4&15)+ae.charAt(fe&15),16);k.push(le)}return k}function getOutputLength(v){return(v+64>>>9<<4)+14+1}function wordsToMd5(v,k){v[k>>5]|=128<>5]|=(v[ae/8]&255)<>16)+(k>>16)+(ie>>16);return ae<<16|ie&65535}function bitRotateLeft(v,k){return v<>>32-k}function md5cmn(v,k,ie,ae,ce,fe){return safeAdd(bitRotateLeft(safeAdd(safeAdd(k,v),safeAdd(ae,fe)),ce),ie)}function md5ff(v,k,ie,ae,ce,fe,le){return md5cmn(k&ie|~k&ae,v,k,ce,fe,le)}function md5gg(v,k,ie,ae,ce,fe,le){return md5cmn(k&ae|ie&~ae,v,k,ce,fe,le)}function md5hh(v,k,ie,ae,ce,fe,le){return md5cmn(k^ie^ae,v,k,ce,fe,le)}function md5ii(v,k,ie,ae,ce,fe,le){return md5cmn(ie^(k|~ae),v,k,ce,fe,le)}var md5_default,init_md5=__esm$1({"node_modules/uuid/dist/esm-browser/md5.js"(){md5_default=md5}}),v3,v3_default,init_v3=__esm$1({"node_modules/uuid/dist/esm-browser/v3.js"(){init_v35(),init_md5(),v3=v35_default("v3",48,md5_default),v3_default=v3}});function v4(v,k,ie){v=v||{};var ae=v.random||(v.rng||rng)();if(ae[6]=ae[6]&15|64,ae[8]=ae[8]&63|128,k){ie=ie||0;for(var ce=0;ce<16;++ce)k[ie+ce]=ae[ce];return k}return stringify_default(ae)}var v4_default,init_v4=__esm$1({"node_modules/uuid/dist/esm-browser/v4.js"(){init_rng(),init_stringify(),v4_default=v4}});function f$1(v,k,ie,ae){switch(v){case 0:return k&ie^~k&ae;case 1:return k^ie^ae;case 2:return k&ie^k&ae^ie&ae;case 3:return k^ie^ae}}function ROTL(v,k){return v<>>32-k}function sha1(v){var k=[1518500249,1859775393,2400959708,3395469782],ie=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof v=="string"){var ae=unescape(encodeURIComponent(v));v=[];for(var ce=0;ce>>0;Mr=jr,jr=ur,ur=ROTL(Or,30)>>>0,Or=Pr,Pr=Gr}ie[0]=ie[0]+Pr>>>0,ie[1]=ie[1]+Or>>>0,ie[2]=ie[2]+ur>>>0,ie[3]=ie[3]+jr>>>0,ie[4]=ie[4]+Mr>>>0}return[ie[0]>>24&255,ie[0]>>16&255,ie[0]>>8&255,ie[0]&255,ie[1]>>24&255,ie[1]>>16&255,ie[1]>>8&255,ie[1]&255,ie[2]>>24&255,ie[2]>>16&255,ie[2]>>8&255,ie[2]&255,ie[3]>>24&255,ie[3]>>16&255,ie[3]>>8&255,ie[3]&255,ie[4]>>24&255,ie[4]>>16&255,ie[4]>>8&255,ie[4]&255]}var sha1_default,init_sha1=__esm$1({"node_modules/uuid/dist/esm-browser/sha1.js"(){sha1_default=sha1}}),v5,v5_default,init_v5=__esm$1({"node_modules/uuid/dist/esm-browser/v5.js"(){init_v35(),init_sha1(),v5=v35_default("v5",80,sha1_default),v5_default=v5}}),nil_default,init_nil=__esm$1({"node_modules/uuid/dist/esm-browser/nil.js"(){nil_default="00000000-0000-0000-0000-000000000000"}});function version$9(v){if(!validate_default(v))throw TypeError("Invalid UUID");return parseInt(v.substr(14,1),16)}var version_default,init_version=__esm$1({"node_modules/uuid/dist/esm-browser/version.js"(){init_validate(),version_default=version$9}}),esm_browser_exports={};__export$1(esm_browser_exports,{NIL:()=>nil_default,parse:()=>parse_default,stringify:()=>stringify_default,v1:()=>v1_default,v3:()=>v3_default,v4:()=>v4_default,v5:()=>v5_default,validate:()=>validate_default,version:()=>version_default});var init_esm_browser=__esm$1({"node_modules/uuid/dist/esm-browser/index.js"(){init_v1(),init_v3(),init_v4(),init_v5(),init_nil(),init_version(),init_validate(),init_stringify(),init_parse()}}),require_utils2$2=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/sdk/src/utils.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.sleep=v.getRandomId=void 0;var k=(init_esm_browser(),__toCommonJS$1(esm_browser_exports)),ie=()=>(0,k.v4)();v.getRandomId=ie;function ae(ce){return new Promise(fe=>setTimeout(fe,ce))}v.sleep=ae}}),require_AppMessages=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/sdk/src/types/AppMessages.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.createInitAction=v.Version=v.AppMessageTypes=void 0;var k=require_utils2$2(),ie;(function(fe){fe.Init="Init",fe.SignTransaction="SignTransaction",fe.SignAllTransactions="SignAllTransactions",fe.SignMessage="SignMessage"})(ie=v.AppMessageTypes||(v.AppMessageTypes={}));var ae;(function(fe){fe.V1="V1"})(ae=v.Version||(v.Version={}));var ce=({persistent:fe=!0,additionalInfo:le,application:ve,description:pe,network:ye,icon:me,persistentSessionId:Ee})=>{const cr=(0,k.getRandomId)();return{type:ie.Init,persistent:fe,application:ve,description:pe,additionalInfo:le,network:ye,icon:me,version:ae.V1,id:cr,persistentSessionId:Ee}};v.createInitAction=ce}}),require_ServerMessage=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/sdk/src/types/ServerMessage.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ServerMessageTypes=void 0,function(k){k.InitSuccess="InitSuccess",k.AppData="AppData",k.UserConnected="UserConnected",k.PendingRequests="PendingRequests",k.SignTransactionResolve="SignTransactionResolve",k.SignAllTransactionsResolve="SignAllTransactionsResolve",k.SignMessageResolve="SignMessageResolve",k.NewRequestMessage="NewRequestMessage",k.GetSessions="GetSessions",k.Success="Success",k.Error="Error"}(v.ServerMessageTypes||(v.ServerMessageTypes={}))}}),require_browser3$2=__commonJS$1({"node_modules/isomorphic-localstorage/browser.js"(v,k){var ie=ae=>{var ce=null;return typeof localStorage<"u"?ce=localStorage:typeof window<"u"&&(ce=window.localStorage),ce};k.exports=ie}}),require_appNear=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/sdk/src/near/appNear.js"(v){var k=v&&v.__awaiter||function(Pr,Or,ur,jr){function Mr(Lr){return Lr instanceof ur?Lr:new ur(function(Vr){Vr(Lr)})}return new(ur||(ur=Promise))(function(Lr,Vr){function Gr(vn){try{Qr(jr.next(vn))}catch(Yt){Vr(Yt)}}function Ur(vn){try{Qr(jr.throw(vn))}catch(Yt){Vr(Yt)}}function Qr(vn){vn.done?Lr(vn.value):Mr(vn.value).then(Gr,Ur)}Qr((jr=jr.apply(Pr,Or||[])).next())})},ie=v&&v.__importDefault||function(Pr){return Pr&&Pr.__esModule?Pr:{default:Pr}};Object.defineProperty(v,"__esModule",{value:!0}),v.AppNear=void 0;var ae=require_types$3(),ce=ie(require_bs58()),fe=ie(require_browser2$2()),le=require_browser_index3(),ve=require_utils$3(),pe=require_AppMessages(),ye=require_ServerMessage(),me=require_utils2$2(),Ee=ie(require_browser3$2()),cr=(0,Ee.default)("./.localstorage"),Br="nightly-id-near",$r=class{constructor(Pr,Or){this.events={},this.sessionId="",this.send=ur=>k(this,void 0,void 0,function*(){return new Promise((jr,Mr)=>{const Lr=(0,me.getRandomId)(),Vr=JSON.stringify(Object.assign(Object.assign({},ur),{id:Lr})),Gr=setTimeout(()=>{Mr(new Error(`Connection timed out after ${this.timeout} ms`))},this.timeout);this.events[Lr]=Ur=>{clearTimeout(Gr),Ur.type===ye.ServerMessageTypes.Error?Mr(Ur.msg):jr(Ur)},this.ws.send(Vr)})}),this.signTransaction=ur=>k(this,void 0,void 0,function*(){const jr={transaction:Buffer.from(ur.encode()).toString("hex"),network:ae.NETWORK.NEAR,type:pe.AppMessageTypes.SignTransaction},Mr=yield this.send(jr);return le.transactions.SignedTransaction.decode(Buffer.from(Mr.transaction,"hex"))}),this.signAllTransactions=ur=>k(this,void 0,void 0,function*(){const jr={transactions:ur.map(Vr=>Buffer.from(Vr.encode()).toString("hex")),network:ae.NETWORK.NEAR,type:pe.AppMessageTypes.SignAllTransactions};return(yield this.send(jr)).transactions.map(Vr=>le.transactions.SignedTransaction.decode(Buffer.from(Vr,"hex")))}),this.signMessage=ur=>k(this,void 0,void 0,function*(){const jr={message:ur,network:ae.NETWORK.NEAR,type:pe.AppMessageTypes.SignMessage},Mr=yield this.send(jr);return Uint8Array.from(Buffer.from(Mr.signature,"hex"))}),this.ws=Pr,this.timeout=Or}};v.AppNear=$r,$r.build=({appMetadata:Pr,url:Or,onUserConnect:ur,timeout:jr=40*1e3})=>k(void 0,void 0,void 0,function*(){return new Promise((Mr,Lr)=>{const Vr=typeof Pr.persistent>"u"?!0:Pr.persistent,Gr=Or?new fe.default(Or):new fe.default("wss://relay.nightly.app/app"),Ur=new $r(Gr,jr);Ur.events[ye.ServerMessageTypes.UserConnected]=Qr=>{const vn=JSON.parse(Qr.metadata),Yt=ve.PublicKey.fromString(ce.default.encode(Buffer.from(Qr.publicKey,"hex")));ur({accountId:vn.accountId,publicKey:Yt})},Ur.ws.onopen=()=>{var Qr;Ur.ws.onmessage=({data:Xt})=>{const Qt=JSON.parse(Xt);Ur.events[Qt.id](Qt)};const vn=Vr&&(Qr=cr.getItem(Br))!==null&&Qr!==void 0?Qr:void 0,Yt=(0,pe.createInitAction)(Object.assign(Object.assign({},Pr),{network:ae.NETWORK.NEAR,persistentSessionId:vn})),fn=setTimeout(()=>{Lr(new Error(`Connection timed out after ${Ur.timeout} ms`))},jr);Ur.events[Yt.id]=Xt=>{clearTimeout(fn),Xt.type===ye.ServerMessageTypes.InitSuccess?(Ur.sessionId=Xt.sessionId,Vr&&cr.setItem(Br,Xt.sessionId),Mr(Ur)):Lr()},Ur.ws.send(JSON.stringify(Yt))}})})}}),require_eventemitter3=__commonJS$1({"node_modules/eventemitter3/index.js"(v,k){var ie=Object.prototype.hasOwnProperty,ae="~";function ce(){}Object.create&&(ce.prototype=Object.create(null),new ce().__proto__||(ae=!1));function fe(ye,me,Ee){this.fn=ye,this.context=me,this.once=Ee||!1}function le(ye,me,Ee,cr,Br){if(typeof Ee!="function")throw new TypeError("The listener must be a function");var $r=new fe(Ee,cr||ye,Br),Pr=ae?ae+me:me;return ye._events[Pr]?ye._events[Pr].fn?ye._events[Pr]=[ye._events[Pr],$r]:ye._events[Pr].push($r):(ye._events[Pr]=$r,ye._eventsCount++),ye}function ve(ye,me){--ye._eventsCount===0?ye._events=new ce:delete ye._events[me]}function pe(){this._events=new ce,this._eventsCount=0}pe.prototype.eventNames=function(){var me=[],Ee,cr;if(this._eventsCount===0)return me;for(cr in Ee=this._events)ie.call(Ee,cr)&&me.push(ae?cr.slice(1):cr);return Object.getOwnPropertySymbols?me.concat(Object.getOwnPropertySymbols(Ee)):me},pe.prototype.listeners=function(me){var Ee=ae?ae+me:me,cr=this._events[Ee];if(!cr)return[];if(cr.fn)return[cr.fn];for(var Br=0,$r=cr.length,Pr=new Array($r);Br<$r;Br++)Pr[Br]=cr[Br].fn;return Pr},pe.prototype.listenerCount=function(me){var Ee=ae?ae+me:me,cr=this._events[Ee];return cr?cr.fn?1:cr.length:0},pe.prototype.emit=function(me,Ee,cr,Br,$r,Pr){var Or=ae?ae+me:me;if(!this._events[Or])return!1;var ur=this._events[Or],jr=arguments.length,Mr,Lr;if(ur.fn){switch(ur.once&&this.removeListener(me,ur.fn,void 0,!0),jr){case 1:return ur.fn.call(ur.context),!0;case 2:return ur.fn.call(ur.context,Ee),!0;case 3:return ur.fn.call(ur.context,Ee,cr),!0;case 4:return ur.fn.call(ur.context,Ee,cr,Br),!0;case 5:return ur.fn.call(ur.context,Ee,cr,Br,$r),!0;case 6:return ur.fn.call(ur.context,Ee,cr,Br,$r,Pr),!0}for(Lr=1,Mr=new Array(jr-1);Lr({type:ie.Connect,version:k.Version.V1,publicKey:ce,sessionId:fe,token:le,notificationEndpoint:ve,device:pe,metadata:ye});v.createConnectMessage=ae}}),require_clientNear=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/sdk/src/near/clientNear.js"(v){var k=v&&v.__awaiter||function(Ee,cr,Br,$r){function Pr(Or){return Or instanceof Br?Or:new Br(function(ur){ur(Or)})}return new(Br||(Br=Promise))(function(Or,ur){function jr(Vr){try{Lr($r.next(Vr))}catch(Gr){ur(Gr)}}function Mr(Vr){try{Lr($r.throw(Vr))}catch(Gr){ur(Gr)}}function Lr(Vr){Vr.done?Or(Vr.value):Pr(Vr.value).then(jr,Mr)}Lr(($r=$r.apply(Ee,cr||[])).next())})},ie=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.ClientNear=void 0;var ae=ie(require_eventemitter3()),ce=ie(require_browser2$2()),fe=require_browser_index3(),le=require_AppRequest(),ve=require_ClientMessages(),pe=require_ServerMessage(),ye=require_utils2$2(),me=class extends ae.default{constructor(Ee,cr){super(),this.events={},this.sessionId="",this.connect=({publicKey:Br,sessionId:$r,token:Pr,device:Or,accountId:ur,notificationEndpoint:jr})=>k(this,void 0,void 0,function*(){const Mr=(0,ve.createConnectMessage)(Buffer.from(Br.data).toString("hex"),$r,Pr,jr,Or,JSON.stringify({accountId:ur}));yield this.send(Mr)}),this.endSession=()=>k(this,void 0,void 0,function*(){const Br={type:ve.ClientMessageTypes.EndSession,sessionId:this.sessionId};yield this.send(Br)}),this.getSessions=Br=>k(this,void 0,void 0,function*(){const $r={type:ve.ClientMessageTypes.GetSessions,token:Br};return yield this.send($r)}),this.getPendingRequests=()=>k(this,void 0,void 0,function*(){const Br={type:ve.ClientMessageTypes.GetPendingRequests,sessionId:this.sessionId};return yield this.send(Br)}),this.send=Br=>k(this,void 0,void 0,function*(){return new Promise(($r,Pr)=>{const Or=(0,ye.getRandomId)(),ur=JSON.stringify(Object.assign(Object.assign({},Br),{id:Or}));this.events[Or]=jr=>{jr.type===pe.ServerMessageTypes.Error?Pr(jr.msg):$r(jr)},this.ws.send(ur)})}),this.resolveSignTransaction=({requestId:Br,signedTransactions:$r})=>k(this,void 0,void 0,function*(){const Pr=$r.map(ur=>Buffer.from(ur.encode()).toString("hex")),Or={type:ve.ClientMessageTypes.ResolveSignTransaction,sessionId:this.sessionId,requestId:Br,signedTransactions:Pr};return this.send(Or)}),this.resolveSignMessage=({requestId:Br,signature:$r})=>k(this,void 0,void 0,function*(){const Pr={type:ve.ClientMessageTypes.ResolveSignMessage,sessionId:this.sessionId,requestId:Br,signature:Buffer.from($r).toString("hex")};return this.send(Pr)}),this.rejectRequest=Br=>k(this,void 0,void 0,function*(){const $r={type:ve.ClientMessageTypes.RejectRequest,requestId:Br};return this.send($r)}),this.ws=Ee,this.sessionId=cr}};v.ClientNear=me,me.build=({sessionId:Ee,url:cr})=>k(void 0,void 0,void 0,function*(){return new Promise((Br,$r)=>{const Pr=cr?new ce.default(cr):new ce.default("wss://relay.nightly.app/client"),Or=new me(Pr,Ee);Or.ws.onopen=()=>{Or.ws.onmessage=({data:Mr})=>{const Lr=JSON.parse(Mr);if(Lr.type===pe.ServerMessageTypes.NewRequestMessage){if(Lr.request.type==le.AppRequest.SignTransaction||Lr.request.type==le.AppRequest.SignAllTransactions){const Vr=Object.assign({deserialized:Lr.request.transactions.map(Gr=>fe.transactions.Transaction.decode(Buffer.from(Gr,"hex")))},Lr.request);Or.emit("newRequest",Vr)}else Or.emit("newRequest",Lr.request);return}else Or.events[Lr.id](Lr)},Or.ws.onclose=()=>{Or.emit("disconnect")};const ur=(0,ye.getRandomId)(),jr={id:ur,sessionId:Ee,type:ve.ClientMessageTypes.GetInfo};Or.events[ur]=Mr=>{Mr.type===pe.ServerMessageTypes.AppData?Br({client:Or,data:Mr}):$r(Mr)},Or.ws.send(JSON.stringify(jr))}})})}}),require_AppInfo=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/sdk/src/types/AppInfo.js"(v){Object.defineProperty(v,"__esModule",{value:!0})}}),require_NearAppInfo=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/sdk/src/types/NearAppInfo.js"(v){Object.defineProperty(v,"__esModule",{value:!0})}}),require_persistedData=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/lib-near/src/persistedData.js"(v){var k=v&&v.__importDefault||function(cr){return cr&&cr.__esModule?cr:{default:cr}};Object.defineProperty(v,"__esModule",{value:!0}),v.clearPersistedSessionAccountId=v.clearPersistedSessionPublicKey=v.clearPersistedSessionId=v.setPersistedSessionAccountId=v.setPersistedSessionPublicKey=v.getPersistedSessionAccountId=v.getPersistedSessionPublicKey=v.getPersistedSessionId=v.SESSION_ACCOUNTID_KEY=v.SESSION_PUBLICKEY_KEY=v.SESSION_ID_KEY=void 0;var ie=k(require_browser3$2()),ae=(0,ie.default)("./.localstorage");v.SESSION_ID_KEY="nightly-id-near",v.SESSION_PUBLICKEY_KEY="nightly-connect-near-publickey",v.SESSION_ACCOUNTID_KEY="nightly-connect-near-accountid";var ce=()=>ae.getItem(v.SESSION_ID_KEY);v.getPersistedSessionId=ce;var fe=()=>ae.getItem(v.SESSION_PUBLICKEY_KEY);v.getPersistedSessionPublicKey=fe;var le=()=>ae.getItem(v.SESSION_ACCOUNTID_KEY);v.getPersistedSessionAccountId=le;var ve=cr=>{ae.setItem(v.SESSION_PUBLICKEY_KEY,cr)};v.setPersistedSessionPublicKey=ve;var pe=cr=>{ae.setItem(v.SESSION_ACCOUNTID_KEY,cr)};v.setPersistedSessionAccountId=pe;var ye=()=>{ae.removeItem(v.SESSION_ID_KEY)};v.clearPersistedSessionId=ye;var me=()=>{ae.removeItem(v.SESSION_PUBLICKEY_KEY)};v.clearPersistedSessionPublicKey=me;var Ee=()=>{ae.removeItem(v.SESSION_ACCOUNTID_KEY)};v.clearPersistedSessionAccountId=Ee}}),require_src=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/lib-near/src/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(le,ve,pe,ye){ye===void 0&&(ye=pe);var me=Object.getOwnPropertyDescriptor(ve,pe);(!me||("get"in me?!ve.__esModule:me.writable||me.configurable))&&(me={enumerable:!0,get:function(){return ve[pe]}}),Object.defineProperty(le,ye,me)}:function(le,ve,pe,ye){ye===void 0&&(ye=pe),le[ye]=ve[pe]}),ie=v&&v.__exportStar||function(le,ve){for(var pe in le)pe!=="default"&&!Object.prototype.hasOwnProperty.call(ve,pe)&&k(ve,le,pe)};Object.defineProperty(v,"__esModule",{value:!0}),v.ClientNear=v.AppNear=v.NightlyConnectModal=void 0;var ae=require_NightlyConnectModal();Object.defineProperty(v,"NightlyConnectModal",{enumerable:!0,get:function(){return ae.NightlyConnectModal}});var ce=require_appNear();Object.defineProperty(v,"AppNear",{enumerable:!0,get:function(){return ce.AppNear}});var fe=require_clientNear();Object.defineProperty(v,"ClientNear",{enumerable:!0,get:function(){return fe.ClientNear}}),ie(require_AppMessages(),v),ie(require_AppRequest(),v),ie(require_ClientMessages(),v),ie(require_ServerMessage(),v),ie(require_AppInfo(),v),ie(require_NearAppInfo(),v),ie(require_types$3(),v),ie(require_persistedData(),v)}}),nearAPI$4=__toESM(require_browser_index2$1(),1),import_connect_near=__toESM(require_src(),1),commonjsGlobal$a=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$9=function(v){return v&&v.Math==Math&&v},global$j$3=check$9(typeof globalThis=="object"&&globalThis)||check$9(typeof window=="object"&&window)||check$9(typeof self=="object"&&self)||check$9(typeof commonjsGlobal$a=="object"&&commonjsGlobal$a)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$7={},fails$e$4=function(v){try{return!!v()}catch{return!0}},fails$d$4=fails$e$4,descriptors$9=!fails$d$4(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$c$4=fails$e$4,functionBindNative$9=!fails$c$4(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$5=functionBindNative$9,call$f$4=Function.prototype.call,functionCall$9=NATIVE_BIND$3$5?call$f$4.bind(call$f$4):function(){return call$f$4.apply(call$f$4,arguments)},objectPropertyIsEnumerable$7={},$propertyIsEnumerable$7={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$3=Object.getOwnPropertyDescriptor,NASHORN_BUG$7=getOwnPropertyDescriptor$2$3&&!$propertyIsEnumerable$7.call({1:2},1);objectPropertyIsEnumerable$7.f=NASHORN_BUG$7?function v(k){var ie=getOwnPropertyDescriptor$2$3(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$7;var createPropertyDescriptor$3$4=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2$5=functionBindNative$9,FunctionPrototype$2$5=Function.prototype,bind$5$3=FunctionPrototype$2$5.bind,call$e$4=FunctionPrototype$2$5.call,uncurryThis$e$4=NATIVE_BIND$2$5&&bind$5$3.bind(call$e$4,call$e$4),functionUncurryThis$9=NATIVE_BIND$2$5?function(v){return v&&uncurryThis$e$4(v)}:function(v){return v&&function(){return call$e$4.apply(v,arguments)}},uncurryThis$d$5=functionUncurryThis$9,toString$2$7=uncurryThis$d$5({}.toString),stringSlice$9=uncurryThis$d$5("".slice),classofRaw$1$8=function(v){return stringSlice$9(toString$2$7(v),8,-1)},uncurryThis$c$5=functionUncurryThis$9,fails$b$4=fails$e$4,classof$5$4=classofRaw$1$8,$Object$4$4=Object,split$7=uncurryThis$c$5("".split),indexedObject$7=fails$b$4(function(){return!$Object$4$4("z").propertyIsEnumerable(0)})?function(v){return classof$5$4(v)=="String"?split$7(v,""):$Object$4$4(v)}:$Object$4$4,$TypeError$b$4=TypeError,requireObjectCoercible$2$7=function(v){if(v==null)throw $TypeError$b$4("Can't call method on "+v);return v},IndexedObject$1$6=indexedObject$7,requireObjectCoercible$1$9=requireObjectCoercible$2$7,toIndexedObject$5$4=function(v){return IndexedObject$1$6(requireObjectCoercible$1$9(v))},isCallable$k$3=function(v){return typeof v=="function"},isCallable$j$4=isCallable$k$3,isObject$7$5=function(v){return typeof v=="object"?v!==null:isCallable$j$4(v)},global$i$4=global$j$3,isCallable$i$4=isCallable$k$3,aFunction$9=function(v){return isCallable$i$4(v)?v:void 0},getBuiltIn$8$3=function(v,k){return arguments.length<2?aFunction$9(global$i$4[v]):global$i$4[v]&&global$i$4[v][k]},uncurryThis$b$5=functionUncurryThis$9,objectIsPrototypeOf$9=uncurryThis$b$5({}.isPrototypeOf),getBuiltIn$7$3=getBuiltIn$8$3,engineUserAgent$9=getBuiltIn$7$3("navigator","userAgent")||"",global$h$5=global$j$3,userAgent$3$3=engineUserAgent$9,process$3$3=global$h$5.process,Deno$1$4=global$h$5.Deno,versions$9=process$3$3&&process$3$3.versions||Deno$1$4&&Deno$1$4.version,v8$9=versions$9&&versions$9.v8,match$9,version2$2;v8$9&&(match$9=v8$9.split("."),version2$2=match$9[0]>0&&match$9[0]<4?1:+(match$9[0]+match$9[1]));!version2$2&&userAgent$3$3&&(match$9=userAgent$3$3.match(/Edge\/(\d+)/),(!match$9||match$9[1]>=74)&&(match$9=userAgent$3$3.match(/Chrome\/(\d+)/),match$9&&(version2$2=+match$9[1])));var engineV8Version$9=version2$2,V8_VERSION$1$3=engineV8Version$9,fails$a$6=fails$e$4,nativeSymbol$9=!!Object.getOwnPropertySymbols&&!fails$a$6(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$3&&V8_VERSION$1$3<41}),NATIVE_SYMBOL$1$9=nativeSymbol$9,useSymbolAsUid$9=NATIVE_SYMBOL$1$9&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$6$5=getBuiltIn$8$3,isCallable$h$5=isCallable$k$3,isPrototypeOf$3$4=objectIsPrototypeOf$9,USE_SYMBOL_AS_UID$1$9=useSymbolAsUid$9,$Object$3$6=Object,isSymbol$2$9=USE_SYMBOL_AS_UID$1$9?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$5("Symbol");return isCallable$h$5(k)&&isPrototypeOf$3$4(k.prototype,$Object$3$6(v))},$String$3$4=String,tryToString$4$5=function(v){try{return $String$3$4(v)}catch{return"Object"}},isCallable$g$5=isCallable$k$3,tryToString$3$5=tryToString$4$5,$TypeError$a$5=TypeError,aCallable$7$3=function(v){if(isCallable$g$5(v))return v;throw $TypeError$a$5(tryToString$3$5(v)+" is not a function")},aCallable$6$3=aCallable$7$3,getMethod$3$4=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$6$3(ie)},call$d$4=functionCall$9,isCallable$f$5=isCallable$k$3,isObject$6$5=isObject$7$5,$TypeError$9$5=TypeError,ordinaryToPrimitive$1$9=function(v,k){var ie,ae;if(k==="string"&&isCallable$f$5(ie=v.toString)&&!isObject$6$5(ae=call$d$4(ie,v))||isCallable$f$5(ie=v.valueOf)&&!isObject$6$5(ae=call$d$4(ie,v))||k!=="string"&&isCallable$f$5(ie=v.toString)&&!isObject$6$5(ae=call$d$4(ie,v)))return ae;throw $TypeError$9$5("Can't convert object to primitive value")},shared$3$9={exports:{}},global$g$5=global$j$3,defineProperty$5$4=Object.defineProperty,defineGlobalProperty$3$7=function(v,k){try{defineProperty$5$4(global$g$5,v,{value:k,configurable:!0,writable:!0})}catch{global$g$5[v]=k}return k},global$f$5=global$j$3,defineGlobalProperty$2$9=defineGlobalProperty$3$7,SHARED$9="__core-js_shared__",store$3$9=global$f$5[SHARED$9]||defineGlobalProperty$2$9(SHARED$9,{}),sharedStore$9=store$3$9,store$2$9=sharedStore$9;(shared$3$9.exports=function(v,k){return store$2$9[v]||(store$2$9[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$b=requireObjectCoercible$2$7,$Object$2$9=Object,toObject$3$4=function(v){return $Object$2$9(requireObjectCoercible$b(v))},uncurryThis$a$7=functionUncurryThis$9,toObject$2$6=toObject$3$4,hasOwnProperty$9=uncurryThis$a$7({}.hasOwnProperty),hasOwnProperty_1$9=Object.hasOwn||function v(k,ie){return hasOwnProperty$9(toObject$2$6(k),ie)},uncurryThis$9$7=functionUncurryThis$9,id$b=0,postfix$9=Math.random(),toString$1$9=uncurryThis$9$7(1 .toString),uid$2$9=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$1$9(++id$b+postfix$9,36)},global$e$5=global$j$3,shared$2$9=shared$3$9.exports,hasOwn$a$4=hasOwnProperty_1$9,uid$1$9=uid$2$9,NATIVE_SYMBOL$a=nativeSymbol$9,USE_SYMBOL_AS_UID$a=useSymbolAsUid$9,WellKnownSymbolsStore$9=shared$2$9("wks"),Symbol$1$9=global$e$5.Symbol,symbolFor$9=Symbol$1$9&&Symbol$1$9.for,createWellKnownSymbol$9=USE_SYMBOL_AS_UID$a?Symbol$1$9:Symbol$1$9&&Symbol$1$9.withoutSetter||uid$1$9,wellKnownSymbol$e$4=function(v){if(!hasOwn$a$4(WellKnownSymbolsStore$9,v)||!(NATIVE_SYMBOL$a||typeof WellKnownSymbolsStore$9[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$a&&hasOwn$a$4(Symbol$1$9,v)?WellKnownSymbolsStore$9[v]=Symbol$1$9[v]:USE_SYMBOL_AS_UID$a&&symbolFor$9?WellKnownSymbolsStore$9[v]=symbolFor$9(k):WellKnownSymbolsStore$9[v]=createWellKnownSymbol$9(k)}return WellKnownSymbolsStore$9[v]},call$c$5=functionCall$9,isObject$5$9=isObject$7$5,isSymbol$1$9=isSymbol$2$9,getMethod$2$5=getMethod$3$4,ordinaryToPrimitive$a=ordinaryToPrimitive$1$9,wellKnownSymbol$d$4=wellKnownSymbol$e$4,$TypeError$8$5=TypeError,TO_PRIMITIVE$9=wellKnownSymbol$d$4("toPrimitive"),toPrimitive$1$9=function(v,k){if(!isObject$5$9(v)||isSymbol$1$9(v))return v;var ie=getMethod$2$5(v,TO_PRIMITIVE$9),ae;if(ie){if(k===void 0&&(k="default"),ae=call$c$5(ie,v,k),!isObject$5$9(ae)||isSymbol$1$9(ae))return ae;throw $TypeError$8$5("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$a(v,k)},toPrimitive$b=toPrimitive$1$9,isSymbol$c=isSymbol$2$9,toPropertyKey$2$7=function(v){var k=toPrimitive$b(v,"string");return isSymbol$c(k)?k:k+""},global$d$5=global$j$3,isObject$4$9=isObject$7$5,document$3$3=global$d$5.document,EXISTS$1$9=isObject$4$9(document$3$3)&&isObject$4$9(document$3$3.createElement),documentCreateElement$2$4=function(v){return EXISTS$1$9?document$3$3.createElement(v):{}},DESCRIPTORS$a$4=descriptors$9,fails$9$7=fails$e$4,createElement$1$3=documentCreateElement$2$4,ie8DomDefine$9=!DESCRIPTORS$a$4&&!fails$9$7(function(){return Object.defineProperty(createElement$1$3("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$9$4=descriptors$9,call$b$5=functionCall$9,propertyIsEnumerableModule$1$6=objectPropertyIsEnumerable$7,createPropertyDescriptor$2$7=createPropertyDescriptor$3$4,toIndexedObject$4$4=toIndexedObject$5$4,toPropertyKey$1$9=toPropertyKey$2$7,hasOwn$9$4=hasOwnProperty_1$9,IE8_DOM_DEFINE$1$7=ie8DomDefine$9,$getOwnPropertyDescriptor$1$7=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$7.f=DESCRIPTORS$9$4?$getOwnPropertyDescriptor$1$7:function v(k,ie){if(k=toIndexedObject$4$4(k),ie=toPropertyKey$1$9(ie),IE8_DOM_DEFINE$1$7)try{return $getOwnPropertyDescriptor$1$7(k,ie)}catch{}if(hasOwn$9$4(k,ie))return createPropertyDescriptor$2$7(!call$b$5(propertyIsEnumerableModule$1$6.f,k,ie),k[ie])};var objectDefineProperty$9={},DESCRIPTORS$8$4=descriptors$9,fails$8$7=fails$e$4,v8PrototypeDefineBug$9=DESCRIPTORS$8$4&&fails$8$7(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$3$9=isObject$7$5,$String$2$8=String,$TypeError$7$5=TypeError,anObject$c$4=function(v){if(isObject$3$9(v))return v;throw $TypeError$7$5($String$2$8(v)+" is not an object")},DESCRIPTORS$7$7=descriptors$9,IE8_DOM_DEFINE$a=ie8DomDefine$9,V8_PROTOTYPE_DEFINE_BUG$1$4=v8PrototypeDefineBug$9,anObject$b$4=anObject$c$4,toPropertyKey$d=toPropertyKey$2$7,$TypeError$6$5=TypeError,$defineProperty$9=Object.defineProperty,$getOwnPropertyDescriptor$a=Object.getOwnPropertyDescriptor,ENUMERABLE$9="enumerable",CONFIGURABLE$1$9="configurable",WRITABLE$9="writable";objectDefineProperty$9.f=DESCRIPTORS$7$7?V8_PROTOTYPE_DEFINE_BUG$1$4?function v(k,ie,ae){if(anObject$b$4(k),ie=toPropertyKey$d(ie),anObject$b$4(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$9 in ae&&!ae[WRITABLE$9]){var ce=$getOwnPropertyDescriptor$a(k,ie);ce&&ce[WRITABLE$9]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$9 in ae?ae[CONFIGURABLE$1$9]:ce[CONFIGURABLE$1$9],enumerable:ENUMERABLE$9 in ae?ae[ENUMERABLE$9]:ce[ENUMERABLE$9],writable:!1})}return $defineProperty$9(k,ie,ae)}:$defineProperty$9:function v(k,ie,ae){if(anObject$b$4(k),ie=toPropertyKey$d(ie),anObject$b$4(ae),IE8_DOM_DEFINE$a)try{return $defineProperty$9(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$6$5("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$6$7=descriptors$9,definePropertyModule$4$4=objectDefineProperty$9,createPropertyDescriptor$1$9=createPropertyDescriptor$3$4,createNonEnumerableProperty$4$4=DESCRIPTORS$6$7?function(v,k,ie){return definePropertyModule$4$4.f(v,k,createPropertyDescriptor$1$9(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$9={exports:{}},DESCRIPTORS$5$9=descriptors$9,hasOwn$8$5=hasOwnProperty_1$9,FunctionPrototype$1$9=Function.prototype,getDescriptor$9=DESCRIPTORS$5$9&&Object.getOwnPropertyDescriptor,EXISTS$a=hasOwn$8$5(FunctionPrototype$1$9,"name"),PROPER$9=EXISTS$a&&function v(){}.name==="something",CONFIGURABLE$a=EXISTS$a&&(!DESCRIPTORS$5$9||DESCRIPTORS$5$9&&getDescriptor$9(FunctionPrototype$1$9,"name").configurable),functionName$9={EXISTS:EXISTS$a,PROPER:PROPER$9,CONFIGURABLE:CONFIGURABLE$a},uncurryThis$8$7=functionUncurryThis$9,isCallable$e$5=isCallable$k$3,store$1$9=sharedStore$9,functionToString$9=uncurryThis$8$7(Function.toString);isCallable$e$5(store$1$9.inspectSource)||(store$1$9.inspectSource=function(v){return functionToString$9(v)});var inspectSource$4$3=store$1$9.inspectSource,global$c$5=global$j$3,isCallable$d$5=isCallable$k$3,inspectSource$3$5=inspectSource$4$3,WeakMap$1$9=global$c$5.WeakMap,nativeWeakMap$9=isCallable$d$5(WeakMap$1$9)&&/native code/.test(inspectSource$3$5(WeakMap$1$9)),shared$1$9=shared$3$9.exports,uid$c=uid$2$9,keys$7=shared$1$9("keys"),sharedKey$3$4=function(v){return keys$7[v]||(keys$7[v]=uid$c(v))},hiddenKeys$4$4={},NATIVE_WEAK_MAP$9=nativeWeakMap$9,global$b$5=global$j$3,uncurryThis$7$7=functionUncurryThis$9,isObject$2$9=isObject$7$5,createNonEnumerableProperty$3$4=createNonEnumerableProperty$4$4,hasOwn$7$6=hasOwnProperty_1$9,shared$c=sharedStore$9,sharedKey$2$4=sharedKey$3$4,hiddenKeys$3$7=hiddenKeys$4$4,OBJECT_ALREADY_INITIALIZED$9="Object already initialized",TypeError$2$5=global$b$5.TypeError,WeakMap$b=global$b$5.WeakMap,set$1$5,get$a,has$9,enforce$9=function(v){return has$9(v)?get$a(v):set$1$5(v,{})},getterFor$9=function(v){return function(k){var ie;if(!isObject$2$9(k)||(ie=get$a(k)).type!==v)throw TypeError$2$5("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$9||shared$c.state?(store$c=shared$c.state||(shared$c.state=new WeakMap$b),wmget$9=uncurryThis$7$7(store$c.get),wmhas$9=uncurryThis$7$7(store$c.has),wmset$9=uncurryThis$7$7(store$c.set),set$1$5=function(v,k){if(wmhas$9(store$c,v))throw new TypeError$2$5(OBJECT_ALREADY_INITIALIZED$9);return k.facade=v,wmset$9(store$c,v,k),k},get$a=function(v){return wmget$9(store$c,v)||{}},has$9=function(v){return wmhas$9(store$c,v)}):(STATE$9=sharedKey$2$4("state"),hiddenKeys$3$7[STATE$9]=!0,set$1$5=function(v,k){if(hasOwn$7$6(v,STATE$9))throw new TypeError$2$5(OBJECT_ALREADY_INITIALIZED$9);return k.facade=v,createNonEnumerableProperty$3$4(v,STATE$9,k),k},get$a=function(v){return hasOwn$7$6(v,STATE$9)?v[STATE$9]:{}},has$9=function(v){return hasOwn$7$6(v,STATE$9)});var store$c,wmget$9,wmhas$9,wmset$9,STATE$9,internalState$9={set:set$1$5,get:get$a,has:has$9,enforce:enforce$9,getterFor:getterFor$9},fails$7$9=fails$e$4,isCallable$c$5=isCallable$k$3,hasOwn$6$7=hasOwnProperty_1$9,DESCRIPTORS$4$9=descriptors$9,CONFIGURABLE_FUNCTION_NAME$1$4=functionName$9.CONFIGURABLE,inspectSource$2$9=inspectSource$4$3,InternalStateModule$2$4=internalState$9,enforceInternalState$b=InternalStateModule$2$4.enforce,getInternalState$1$4=InternalStateModule$2$4.get,defineProperty$4$4=Object.defineProperty,CONFIGURABLE_LENGTH$9=DESCRIPTORS$4$9&&!fails$7$9(function(){return defineProperty$4$4(function(){},"length",{value:8}).length!==8}),TEMPLATE$9=String(String).split("String"),makeBuiltIn$1$9=makeBuiltIn$2$9.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$6$7(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$4&&v.name!==k)&&(DESCRIPTORS$4$9?defineProperty$4$4(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$9&&ie&&hasOwn$6$7(ie,"arity")&&v.length!==ie.arity&&defineProperty$4$4(v,"length",{value:ie.arity});try{ie&&hasOwn$6$7(ie,"constructor")&&ie.constructor?DESCRIPTORS$4$9&&defineProperty$4$4(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$b(v);return hasOwn$6$7(ae,"source")||(ae.source=TEMPLATE$9.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$9(function v(){return isCallable$c$5(this)&&getInternalState$1$4(this).source||inspectSource$2$9(this)},"toString");var isCallable$b$6=isCallable$k$3,definePropertyModule$3$5=objectDefineProperty$9,makeBuiltIn$b=makeBuiltIn$2$9.exports,defineGlobalProperty$1$9=defineGlobalProperty$3$7,defineBuiltIn$6$4=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$b$6(ie)&&makeBuiltIn$b(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$9(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$3$5.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$7={},ceil$7=Math.ceil,floor$a=Math.floor,mathTrunc$7=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$a:ceil$7)(ie)},trunc2$7=mathTrunc$7,toIntegerOrInfinity$2$7=function(v){var k=+v;return k!==k||k===0?0:trunc2$7(k)},toIntegerOrInfinity$1$7=toIntegerOrInfinity$2$7,max$8=Math.max,min$1$7=Math.min,toAbsoluteIndex$1$7=function(v,k){var ie=toIntegerOrInfinity$1$7(v);return ie<0?max$8(ie+k,0):min$1$7(ie,k)},toIntegerOrInfinity$c=toIntegerOrInfinity$2$7,min$8=Math.min,toLength$1$7=function(v){return v>0?min$8(toIntegerOrInfinity$c(v),9007199254740991):0},toLength$c=toLength$1$7,lengthOfArrayLike$2$5=function(v){return toLength$c(v.length)},toIndexedObject$3$7=toIndexedObject$5$4,toAbsoluteIndex$b=toAbsoluteIndex$1$7,lengthOfArrayLike$1$7=lengthOfArrayLike$2$5,createMethod$8=function(v){return function(k,ie,ae){var ce=toIndexedObject$3$7(k),fe=lengthOfArrayLike$1$7(ce),le=toAbsoluteIndex$b(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$7={includes:createMethod$8(!0),indexOf:createMethod$8(!1)},uncurryThis$6$9=functionUncurryThis$9,hasOwn$5$7=hasOwnProperty_1$9,toIndexedObject$2$7=toIndexedObject$5$4,indexOf$7=arrayIncludes$7.indexOf,hiddenKeys$2$7=hiddenKeys$4$4,push$8=uncurryThis$6$9([].push),objectKeysInternal$7=function(v,k){var ie=toIndexedObject$2$7(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$5$7(hiddenKeys$2$7,fe)&&hasOwn$5$7(ie,fe)&&push$8(ce,fe);for(;k.length>ae;)hasOwn$5$7(ie,fe=k[ae++])&&(~indexOf$7(ce,fe)||push$8(ce,fe));return ce},enumBugKeys$3$4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$6=objectKeysInternal$7,enumBugKeys$2$6=enumBugKeys$3$4,hiddenKeys$1$7=enumBugKeys$2$6.concat("length","prototype");objectGetOwnPropertyNames$7.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$6(k,hiddenKeys$1$7)};var objectGetOwnPropertySymbols$7={};objectGetOwnPropertySymbols$7.f=Object.getOwnPropertySymbols;var getBuiltIn$5$5=getBuiltIn$8$3,uncurryThis$5$9=functionUncurryThis$9,getOwnPropertyNamesModule$7=objectGetOwnPropertyNames$7,getOwnPropertySymbolsModule$1$6=objectGetOwnPropertySymbols$7,anObject$a$4=anObject$c$4,concat$1$6=uncurryThis$5$9([].concat),ownKeys$1$7=getBuiltIn$5$5("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$7.f(anObject$a$4(k)),ae=getOwnPropertySymbolsModule$1$6.f;return ae?concat$1$6(ie,ae(k)):ie},hasOwn$4$9=hasOwnProperty_1$9,ownKeys2$7=ownKeys$1$7,getOwnPropertyDescriptorModule$8=objectGetOwnPropertyDescriptor$7,definePropertyModule$2$7=objectDefineProperty$9,copyConstructorProperties$1$7=function(v,k,ie){for(var ae=ownKeys2$7(k),ce=definePropertyModule$2$7.f,fe=getOwnPropertyDescriptorModule$8.f,le=0;le=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3$3(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$7]=ae,SUBCLASSING$3=ie.then(function(){})instanceof ae,SUBCLASSING$3?!k&&IS_BROWSER$3&&!NATIVE_PROMISE_REJECTION_EVENT$1$3:!0}),promiseConstructorDetection$3={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$3,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$3,SUBCLASSING:SUBCLASSING$3},newPromiseCapability$2$3={},aCallable$4$5=aCallable$7$3,PromiseCapability$3=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$5(k),this.reject=aCallable$4$5(ie)};newPromiseCapability$2$3.f=function(v){return new PromiseCapability$3(v)};var $$7$3=_export$7,IS_NODE$5=engineIsNode$3,global$2$9=global$j$3,call$9$5=functionCall$9,defineBuiltIn$4$4=defineBuiltIn$6$4,setPrototypeOf$1$4=objectSetPrototypeOf$5,setToStringTag$2$4=setToStringTag$3$4,setSpecies$6=setSpecies$1$5,aCallable$3$5=aCallable$7$3,isCallable$4$9=isCallable$k$3,isObject$1$9=isObject$7$5,anInstance$7=anInstance$1$5,speciesConstructor$6=speciesConstructor$1$5,task$4=task$1$3.set,microtask$4=microtask$1$3,hostReportErrors$4=hostReportErrors$1$3,perform$2$3=perform$3$3,Queue$4=queue$4,InternalStateModule$1$5=internalState$9,NativePromiseConstructor$2$3=promiseNativeConstructor$3,PromiseConstructorDetection$3=promiseConstructorDetection$3,newPromiseCapabilityModule$3$3=newPromiseCapability$2$3,PROMISE$3="Promise",FORCED_PROMISE_CONSTRUCTOR$4$3=PromiseConstructorDetection$3.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$4=PromiseConstructorDetection$3.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$3=PromiseConstructorDetection$3.SUBCLASSING,getInternalPromiseState$3=InternalStateModule$1$5.getterFor(PROMISE$3),setInternalState$1$4=InternalStateModule$1$5.set,NativePromisePrototype$1$3=NativePromiseConstructor$2$3&&NativePromiseConstructor$2$3.prototype,PromiseConstructor$3=NativePromiseConstructor$2$3,PromisePrototype$3=NativePromisePrototype$1$3,TypeError$1$9=global$2$9.TypeError,document$1$5=global$2$9.document,process2$1=global$2$9.process,newPromiseCapability$1$3=newPromiseCapabilityModule$3$3.f,newGenericPromiseCapability$3=newPromiseCapability$1$3,DISPATCH_EVENT$3=!!(document$1$5&&document$1$5.createEvent&&global$2$9.dispatchEvent),UNHANDLED_REJECTION$3="unhandledrejection",REJECTION_HANDLED$3="rejectionhandled",PENDING$3=0,FULFILLED$3=1,REJECTED$3=2,HANDLED$3=1,UNHANDLED$3=2,Internal$3,OwnPromiseCapability$3,PromiseWrapper$3,nativeThen$3,isThenable$3=function(v){var k;return isObject$1$9(v)&&isCallable$4$9(k=v.then)?k:!1},callReaction$3=function(v,k){var ie=k.value,ae=k.state==FULFILLED$3,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$3&&onHandleUnhandled$3(k),k.rejection=HANDLED$3),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$9("Promise-chain cycle")):(ye=isThenable$3(pe))?call$9$5(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$4=function(v,k){v.notified||(v.notified=!0,microtask$4(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$3(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$3(v)}))},dispatchEvent$3=function(v,k,ie){var ae,ce;DISPATCH_EVENT$3?(ae=document$1$5.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$2$9.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$4&&(ce=global$2$9["on"+v])?ce(ae):v===UNHANDLED_REJECTION$3&&hostReportErrors$4("Unhandled promise rejection",ie)},onUnhandled$3=function(v){call$9$5(task$4,global$2$9,function(){var k=v.facade,ie=v.value,ae=isUnhandled$3(v),ce;if(ae&&(ce=perform$2$3(function(){IS_NODE$5?process2$1.emit("unhandledRejection",ie,k):dispatchEvent$3(UNHANDLED_REJECTION$3,k,ie)}),v.rejection=IS_NODE$5||isUnhandled$3(v)?UNHANDLED$3:HANDLED$3,ce.error))throw ce.value})},isUnhandled$3=function(v){return v.rejection!==HANDLED$3&&!v.parent},onHandleUnhandled$3=function(v){call$9$5(task$4,global$2$9,function(){var k=v.facade;IS_NODE$5?process2$1.emit("rejectionHandled",k):dispatchEvent$3(REJECTION_HANDLED$3,k,v.value)})},bind$1$5=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$3=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$3,notify$4(v,!0))},internalResolve$3=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$9("Promise can't be resolved itself");var ae=isThenable$3(k);ae?microtask$4(function(){var ce={done:!1};try{call$9$5(ae,k,bind$1$5(internalResolve$3,ce,v),bind$1$5(internalReject$3,ce,v))}catch(fe){internalReject$3(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$3,notify$4(v,!1))}catch(ce){internalReject$3({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$3&&(PromiseConstructor$3=function(k){anInstance$7(this,PromisePrototype$3),aCallable$3$5(k),call$9$5(Internal$3,this);var ie=getInternalPromiseState$3(this);try{k(bind$1$5(internalResolve$3,ie),bind$1$5(internalReject$3,ie))}catch(ae){internalReject$3(ie,ae)}},PromisePrototype$3=PromiseConstructor$3.prototype,Internal$3=function(k){setInternalState$1$4(this,{type:PROMISE$3,done:!1,notified:!1,parent:!1,reactions:new Queue$4,rejection:!1,state:PENDING$3,value:void 0})},Internal$3.prototype=defineBuiltIn$4$4(PromisePrototype$3,"then",function(k,ie){var ae=getInternalPromiseState$3(this),ce=newPromiseCapability$1$3(speciesConstructor$6(this,PromiseConstructor$3));return ae.parent=!0,ce.ok=isCallable$4$9(k)?k:!0,ce.fail=isCallable$4$9(ie)&&ie,ce.domain=IS_NODE$5?process2$1.domain:void 0,ae.state==PENDING$3?ae.reactions.add(ce):microtask$4(function(){callReaction$3(ce,ae)}),ce.promise}),OwnPromiseCapability$3=function(){var v=new Internal$3,k=getInternalPromiseState$3(v);this.promise=v,this.resolve=bind$1$5(internalResolve$3,k),this.reject=bind$1$5(internalReject$3,k)},newPromiseCapabilityModule$3$3.f=newPromiseCapability$1$3=function(v){return v===PromiseConstructor$3||v===PromiseWrapper$3?new OwnPromiseCapability$3(v):newGenericPromiseCapability$3(v)},isCallable$4$9(NativePromiseConstructor$2$3)&&NativePromisePrototype$1$3!==Object.prototype)){nativeThen$3=NativePromisePrototype$1$3.then,NATIVE_PROMISE_SUBCLASSING$3||defineBuiltIn$4$4(NativePromisePrototype$1$3,"then",function(k,ie){var ae=this;return new PromiseConstructor$3(function(ce,fe){call$9$5(nativeThen$3,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1$3.constructor}catch{}setPrototypeOf$1$4&&setPrototypeOf$1$4(NativePromisePrototype$1$3,PromisePrototype$3)}$$7$3({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$3},{Promise:PromiseConstructor$3});setToStringTag$2$4(PromiseConstructor$3,PROMISE$3,!1);setSpecies$6(PROMISE$3);var iterators$5={},wellKnownSymbol$6$5=wellKnownSymbol$e$4,Iterators$4$4=iterators$5,ITERATOR$5$4=wellKnownSymbol$6$5("iterator"),ArrayPrototype$1$4=Array.prototype,isArrayIteratorMethod$1$5=function(v){return v!==void 0&&(Iterators$4$4.Array===v||ArrayPrototype$1$4[ITERATOR$5$4]===v)},classof$1$8=classof$3$5,getMethod$1$9=getMethod$3$4,Iterators$3$4=iterators$5,wellKnownSymbol$5$5=wellKnownSymbol$e$4,ITERATOR$4$4=wellKnownSymbol$5$5("iterator"),getIteratorMethod$2$5=function(v){if(v!=null)return getMethod$1$9(v,ITERATOR$4$4)||getMethod$1$9(v,"@@iterator")||Iterators$3$4[classof$1$8(v)]},call$8$5=functionCall$9,aCallable$2$5=aCallable$7$3,anObject$7$5=anObject$c$4,tryToString$1$9=tryToString$4$5,getIteratorMethod$1$5=getIteratorMethod$2$5,$TypeError$1$9=TypeError,getIterator$1$5=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$5(v):k;if(aCallable$2$5(ie))return anObject$7$5(call$8$5(ie,v));throw $TypeError$1$9(tryToString$1$9(v)+" is not iterable")},call$7$5=functionCall$9,anObject$6$5=anObject$c$4,getMethod$c=getMethod$3$4,iteratorClose$1$3=function(v,k,ie){var ae,ce;anObject$6$5(v);try{if(ae=getMethod$c(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$7$5(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$6$5(ae),ie},bind$e=functionBindContext$5,call$6$6=functionCall$9,anObject$5$5=anObject$c$4,tryToString$d=tryToString$4$5,isArrayIteratorMethod$6=isArrayIteratorMethod$1$5,lengthOfArrayLike$d=lengthOfArrayLike$2$5,isPrototypeOf$1$8=objectIsPrototypeOf$9,getIterator$6=getIterator$1$5,getIteratorMethod$7=getIteratorMethod$2$5,iteratorClose$4=iteratorClose$1$3,$TypeError$k=TypeError,Result$3=function(v,k){this.stopped=v,this.result=k},ResultPrototype$3=Result$3.prototype,iterate$2$3=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$e(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$4(pe,"normal",ur),new Result$3(!0,ur)},Or=function(ur){return ce?(anObject$5$5(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$7(v),!ye)throw $TypeError$k(tryToString$d(v)+" is not iterable");if(isArrayIteratorMethod$6(ye)){for(me=0,Ee=lengthOfArrayLike$d(v);Ee>me;me++)if(cr=Or(v[me]),cr&&isPrototypeOf$1$8(ResultPrototype$3,cr))return cr;return new Result$3(!1)}pe=getIterator$6(v,ye)}for(Br=pe.next;!($r=call$6$6(Br,pe)).done;){try{cr=Or($r.value)}catch(ur){iteratorClose$4(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$1$8(ResultPrototype$3,cr))return cr}return new Result$3(!1)},wellKnownSymbol$4$5=wellKnownSymbol$e$4,ITERATOR$3$4=wellKnownSymbol$4$5("iterator"),SAFE_CLOSING$5=!1;try{called$5=0,iteratorWithReturn$5={next:function(){return{done:!!called$5++}},return:function(){SAFE_CLOSING$5=!0}},iteratorWithReturn$5[ITERATOR$3$4]=function(){return this},Array.from(iteratorWithReturn$5,function(){throw 2})}catch(v){}var called$5,iteratorWithReturn$5,checkCorrectnessOfIteration$1$5=function(v,k){if(!k&&!SAFE_CLOSING$5)return!1;var ie=!1;try{var ae={};ae[ITERATOR$3$4]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1$3=promiseNativeConstructor$3,checkCorrectnessOfIteration$6=checkCorrectnessOfIteration$1$5,FORCED_PROMISE_CONSTRUCTOR$3$3=promiseConstructorDetection$3.CONSTRUCTOR,promiseStaticsIncorrectIteration$3=FORCED_PROMISE_CONSTRUCTOR$3$3||!checkCorrectnessOfIteration$6(function(v){NativePromiseConstructor$1$3.all(v).then(void 0,function(){})}),$$6$3=_export$7,call$5$7=functionCall$9,aCallable$1$9=aCallable$7$3,newPromiseCapabilityModule$2$3=newPromiseCapability$2$3,perform$1$3=perform$3$3,iterate$1$3=iterate$2$3,PROMISE_STATICS_INCORRECT_ITERATION$1$3=promiseStaticsIncorrectIteration$3;$$6$3({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$3},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$3.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$3(function(){var ve=aCallable$1$9(ie.resolve),pe=[],ye=0,me=1;iterate$1$3(k,function(Ee){var cr=ye++,Br=!1;me++,call$5$7(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$5$3=_export$7,FORCED_PROMISE_CONSTRUCTOR$2$3=promiseConstructorDetection$3.CONSTRUCTOR,NativePromiseConstructor$6=promiseNativeConstructor$3,getBuiltIn$1$9=getBuiltIn$8$3,isCallable$3$9=isCallable$k$3,defineBuiltIn$3$5=defineBuiltIn$6$4,NativePromisePrototype$4=NativePromiseConstructor$6&&NativePromiseConstructor$6.prototype;$$5$3({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$3,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$3$9(NativePromiseConstructor$6)&&(method$3=getBuiltIn$1$9("Promise").prototype.catch,NativePromisePrototype$4.catch!==method$3&&defineBuiltIn$3$5(NativePromisePrototype$4,"catch",method$3,{unsafe:!0}));var method$3,$$4$4=_export$7,call$4$9=functionCall$9,aCallable$g=aCallable$7$3,newPromiseCapabilityModule$1$3=newPromiseCapability$2$3,perform$6=perform$3$3,iterate$5=iterate$2$3,PROMISE_STATICS_INCORRECT_ITERATION$4=promiseStaticsIncorrectIteration$3;$$4$4({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$4},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$3.f(ie),ce=ae.reject,fe=perform$6(function(){var le=aCallable$g(ie.resolve);iterate$5(k,function(ve){call$4$9(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$3$5=_export$7,call$3$9=functionCall$9,newPromiseCapabilityModule$6=newPromiseCapability$2$3,FORCED_PROMISE_CONSTRUCTOR$1$3=promiseConstructorDetection$3.CONSTRUCTOR;$$3$5({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$3},{reject:function v(k){var ie=newPromiseCapabilityModule$6.f(this);return call$3$9(ie.reject,void 0,k),ie.promise}});var anObject$4$6=anObject$c$4,isObject$k=isObject$7$5,newPromiseCapability$5=newPromiseCapability$2$3,promiseResolve$1$3=function(v,k){if(anObject$4$6(v),isObject$k(k)&&k.constructor===v)return k;var ie=newPromiseCapability$5.f(v),ae=ie.resolve;return ae(k),ie.promise},$$2$5=_export$7,getBuiltIn$h=getBuiltIn$8$3,FORCED_PROMISE_CONSTRUCTOR$8=promiseConstructorDetection$3.CONSTRUCTOR,promiseResolve$4=promiseResolve$1$3;getBuiltIn$h("Promise");$$2$5({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$8},{resolve:function v(k){return promiseResolve$4(this,k)}});var classof$h=classof$3$5,$String$c=String,toString2$7=function(v){if(classof$h(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$c(v)},anObject$3$8=anObject$c$4,regexpFlags$7=function(){var v=anObject$3$8(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$2$9=functionCall$9,hasOwn$1$9=hasOwnProperty_1$9,isPrototypeOf$d=objectIsPrototypeOf$9,regExpFlags$7=regexpFlags$7,RegExpPrototype$1$7=RegExp.prototype,regexpGetFlags$7=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$7)&&!hasOwn$1$9(v,"flags")&&isPrototypeOf$d(RegExpPrototype$1$7,v)?call$2$9(regExpFlags$7,v):k},PROPER_FUNCTION_NAME$1$4=functionName$9.PROPER,defineBuiltIn$2$6=defineBuiltIn$6$4,anObject$2$9=anObject$c$4,$toString$7=toString2$7,fails$3$9=fails$e$4,getRegExpFlags$7=regexpGetFlags$7,TO_STRING$7="toString",RegExpPrototype$8=RegExp.prototype,n$ToString$7=RegExpPrototype$8[TO_STRING$7],NOT_GENERIC$7=fails$3$9(function(){return n$ToString$7.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$7=PROPER_FUNCTION_NAME$1$4&&n$ToString$7.name!=TO_STRING$7;(NOT_GENERIC$7||INCORRECT_NAME$7)&&defineBuiltIn$2$6(RegExp.prototype,TO_STRING$7,function(){var k=anObject$2$9(this),ie=$toString$7(k.source),ae=$toString$7(getRegExpFlags$7(k));return"/"+ie+"/"+ae},{unsafe:!0});var internalObjectKeys$8=objectKeysInternal$7,enumBugKeys$1$7=enumBugKeys$3$4,objectKeys$2$4=Object.keys||function v(k){return internalObjectKeys$8(k,enumBugKeys$1$7)},DESCRIPTORS$2$9=descriptors$9,uncurryThis$t=functionUncurryThis$9,call$1$9=functionCall$9,fails$2$9=fails$e$4,objectKeys$1$6=objectKeys$2$4,getOwnPropertySymbolsModule$8=objectGetOwnPropertySymbols$7,propertyIsEnumerableModule$8=objectPropertyIsEnumerable$7,toObject$1$9=toObject$3$4,IndexedObject$9=indexedObject$7,$assign$6=Object.assign,defineProperty$2$7=Object.defineProperty,concat$9=uncurryThis$t([].concat),objectAssign$6=!$assign$6||fails$2$9(function(){if(DESCRIPTORS$2$9&&$assign$6({b:1},$assign$6(defineProperty$2$7({},"a",{enumerable:!0,get:function(){defineProperty$2$7(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},k={},ie=Symbol(),ae="abcdefghijklmnopqrst";return v[ie]=7,ae.split("").forEach(function(ce){k[ce]=ce}),$assign$6({},v)[ie]!=7||objectKeys$1$6($assign$6({},k)).join("")!=ae})?function v(k,ie){for(var ae=toObject$1$9(k),ce=arguments.length,fe=1,le=getOwnPropertySymbolsModule$8.f,ve=propertyIsEnumerableModule$8.f;ce>fe;)for(var pe=IndexedObject$9(arguments[fe++]),ye=le?concat$9(objectKeys$1$6(pe),le(pe)):objectKeys$1$6(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$2$9||call$1$9(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$6,$$1$5=_export$7,assign2$6=objectAssign$6;$$1$5({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$6},{assign:assign2$6});var objectDefineProperties$4={},DESCRIPTORS$1$9=descriptors$9,V8_PROTOTYPE_DEFINE_BUG$a=v8PrototypeDefineBug$9,definePropertyModule$f=objectDefineProperty$9,anObject$1$9=anObject$c$4,toIndexedObject$1$7=toIndexedObject$5$4,objectKeys$8=objectKeys$2$4;objectDefineProperties$4.f=DESCRIPTORS$1$9&&!V8_PROTOTYPE_DEFINE_BUG$a?Object.defineProperties:function v(k,ie){anObject$1$9(k);for(var ae=toIndexedObject$1$7(ie),ce=objectKeys$8(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$f.f(k,ve=ce[le++],ae[ve]);return k};var anObject$j=anObject$c$4,definePropertiesModule$4=objectDefineProperties$4,enumBugKeys$a=enumBugKeys$3$4,hiddenKeys$b=hiddenKeys$4$4,html$6=html$2$3,documentCreateElement$1$4=documentCreateElement$2$4,sharedKey$1$9=sharedKey$3$4,GT$4=">",LT$4="<",PROTOTYPE$5="prototype",SCRIPT$4="script",IE_PROTO$1$4=sharedKey$1$9("IE_PROTO"),EmptyConstructor$4=function(){},scriptTag$4=function(v){return LT$4+SCRIPT$4+GT$4+v+LT$4+"/"+SCRIPT$4+GT$4},NullProtoObjectViaActiveX$4=function(v){v.write(scriptTag$4("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$4=function(){var v=documentCreateElement$1$4("iframe"),k="java"+SCRIPT$4+":",ie;return v.style.display="none",html$6.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$4("document.F=Object")),ie.close(),ie.F},activeXDocument$4,NullProtoObject$4=function(){try{activeXDocument$4=new ActiveXObject("htmlfile")}catch{}NullProtoObject$4=typeof document<"u"?document.domain&&activeXDocument$4?NullProtoObjectViaActiveX$4(activeXDocument$4):NullProtoObjectViaIFrame$4():NullProtoObjectViaActiveX$4(activeXDocument$4);for(var v=enumBugKeys$a.length;v--;)delete NullProtoObject$4[PROTOTYPE$5][enumBugKeys$a[v]];return NullProtoObject$4()};hiddenKeys$b[IE_PROTO$1$4]=!0;var objectCreate$4=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$4[PROTOTYPE$5]=anObject$j(k),ae=new EmptyConstructor$4,EmptyConstructor$4[PROTOTYPE$5]=null,ae[IE_PROTO$1$4]=k):ae=NullProtoObject$4(),ie===void 0?ae:definePropertiesModule$4.f(ae,ie)},wellKnownSymbol$3$8=wellKnownSymbol$e$4,create$1$4=objectCreate$4,defineProperty$1$9=objectDefineProperty$9.f,UNSCOPABLES$4=wellKnownSymbol$3$8("unscopables"),ArrayPrototype$6=Array.prototype;ArrayPrototype$6[UNSCOPABLES$4]==null&&defineProperty$1$9(ArrayPrototype$6,UNSCOPABLES$4,{configurable:!0,value:create$1$4(null)});var addToUnscopables$1$4=function(v){ArrayPrototype$6[UNSCOPABLES$4][v]=!0},fails$1$9=fails$e$4,correctPrototypeGetter$4=!fails$1$9(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype}),hasOwn2$9=hasOwnProperty_1$9,isCallable$2$9=isCallable$k$3,toObject$f=toObject$3$4,sharedKey$b=sharedKey$3$4,CORRECT_PROTOTYPE_GETTER$4=correctPrototypeGetter$4,IE_PROTO$5=sharedKey$b("IE_PROTO"),$Object$d=Object,ObjectPrototype$6=$Object$d.prototype,objectGetPrototypeOf$4=CORRECT_PROTOTYPE_GETTER$4?$Object$d.getPrototypeOf:function(v){var k=toObject$f(v);if(hasOwn2$9(k,IE_PROTO$5))return k[IE_PROTO$5];var ie=k.constructor;return isCallable$2$9(ie)&&k instanceof ie?ie.prototype:k instanceof $Object$d?ObjectPrototype$6:null},fails$v=fails$e$4,isCallable$1$9=isCallable$k$3,getPrototypeOf$1$4=objectGetPrototypeOf$4,defineBuiltIn$1$9=defineBuiltIn$6$4,wellKnownSymbol$2$8=wellKnownSymbol$e$4,ITERATOR$2$5=wellKnownSymbol$2$8("iterator"),BUGGY_SAFARI_ITERATORS$1$4=!1,IteratorPrototype$2$4,PrototypeOfArrayIteratorPrototype$4,arrayIterator$4;[].keys&&(arrayIterator$4=[].keys(),"next"in arrayIterator$4?(PrototypeOfArrayIteratorPrototype$4=getPrototypeOf$1$4(getPrototypeOf$1$4(arrayIterator$4)),PrototypeOfArrayIteratorPrototype$4!==Object.prototype&&(IteratorPrototype$2$4=PrototypeOfArrayIteratorPrototype$4)):BUGGY_SAFARI_ITERATORS$1$4=!0);var NEW_ITERATOR_PROTOTYPE$4=IteratorPrototype$2$4==null||fails$v(function(){var v={};return IteratorPrototype$2$4[ITERATOR$2$5].call(v)!==v});NEW_ITERATOR_PROTOTYPE$4&&(IteratorPrototype$2$4={});isCallable$1$9(IteratorPrototype$2$4[ITERATOR$2$5])||defineBuiltIn$1$9(IteratorPrototype$2$4,ITERATOR$2$5,function(){return this});var iteratorsCore$4={IteratorPrototype:IteratorPrototype$2$4,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1$4},IteratorPrototype$1$4=iteratorsCore$4.IteratorPrototype,create2$3=objectCreate$4,createPropertyDescriptor$e=createPropertyDescriptor$3$4,setToStringTag$1$5=setToStringTag$3$4,Iterators$2$4=iterators$5,returnThis$1$4=function(){return this},createIteratorConstructor$1$4=function(v,k,ie,ae){var ce=k+" Iterator";return v.prototype=create2$3(IteratorPrototype$1$4,{next:createPropertyDescriptor$e(+!ae,ie)}),setToStringTag$1$5(v,ce,!1),Iterators$2$4[ce]=returnThis$1$4,v},$$e=_export$7,call$n=functionCall$9,FunctionName$5=functionName$9,isCallable$r=isCallable$k$3,createIteratorConstructor$5=createIteratorConstructor$1$4,getPrototypeOf$7=objectGetPrototypeOf$4,setPrototypeOf$9=objectSetPrototypeOf$5,setToStringTag$8=setToStringTag$3$4,createNonEnumerableProperty$1$9=createNonEnumerableProperty$4$4,defineBuiltIn$f=defineBuiltIn$6$4,wellKnownSymbol$1$9=wellKnownSymbol$e$4,Iterators$1$5=iterators$5,IteratorsCore$4=iteratorsCore$4,PROPER_FUNCTION_NAME$9=FunctionName$5.PROPER,CONFIGURABLE_FUNCTION_NAME$b=FunctionName$5.CONFIGURABLE,IteratorPrototype$6=IteratorsCore$4.IteratorPrototype,BUGGY_SAFARI_ITERATORS$5=IteratorsCore$4.BUGGY_SAFARI_ITERATORS,ITERATOR$1$5=wellKnownSymbol$1$9("iterator"),KEYS$4="keys",VALUES$4="values",ENTRIES$4="entries",returnThis$5=function(){return this},defineIterator$1$4=function(v,k,ie,ae,ce,fe,le){createIteratorConstructor$5(ie,k,ae);var ve=function(ur){if(ur===ce&&cr)return cr;if(!BUGGY_SAFARI_ITERATORS$5&&ur in me)return me[ur];switch(ur){case KEYS$4:return function(){return new ie(this,ur)};case VALUES$4:return function(){return new ie(this,ur)};case ENTRIES$4:return function(){return new ie(this,ur)}}return function(){return new ie(this)}},pe=k+" Iterator",ye=!1,me=v.prototype,Ee=me[ITERATOR$1$5]||me["@@iterator"]||ce&&me[ce],cr=!BUGGY_SAFARI_ITERATORS$5&&Ee||ve(ce),Br=k=="Array"&&me.entries||Ee,$r,Pr,Or;if(Br&&($r=getPrototypeOf$7(Br.call(new v)),$r!==Object.prototype&&$r.next&&(getPrototypeOf$7($r)!==IteratorPrototype$6&&(setPrototypeOf$9?setPrototypeOf$9($r,IteratorPrototype$6):isCallable$r($r[ITERATOR$1$5])||defineBuiltIn$f($r,ITERATOR$1$5,returnThis$5)),setToStringTag$8($r,pe,!0))),PROPER_FUNCTION_NAME$9&&ce==VALUES$4&&Ee&&Ee.name!==VALUES$4&&(CONFIGURABLE_FUNCTION_NAME$b?createNonEnumerableProperty$1$9(me,"name",VALUES$4):(ye=!0,cr=function(){return call$n(Ee,this)})),ce)if(Pr={values:ve(VALUES$4),keys:fe?cr:ve(KEYS$4),entries:ve(ENTRIES$4)},le)for(Or in Pr)(BUGGY_SAFARI_ITERATORS$5||ye||!(Or in me))&&defineBuiltIn$f(me,Or,Pr[Or]);else $$e({target:k,proto:!0,forced:BUGGY_SAFARI_ITERATORS$5||ye},Pr);return me[ITERATOR$1$5]!==cr&&defineBuiltIn$f(me,ITERATOR$1$5,cr,{name:ce}),Iterators$1$5[k]=cr,Pr},toIndexedObject$d=toIndexedObject$5$4,addToUnscopables$5=addToUnscopables$1$4,Iterators$9=iterators$5,InternalStateModule$d=internalState$9,defineProperty3$8=objectDefineProperty$9.f,defineIterator$5=defineIterator$1$4,DESCRIPTORS$m=descriptors$9,ARRAY_ITERATOR$4="Array Iterator",setInternalState$7=InternalStateModule$d.set,getInternalState$d=InternalStateModule$d.getterFor(ARRAY_ITERATOR$4),es_array_iterator$3=defineIterator$5(Array,"Array",function(v,k){setInternalState$7(this,{type:ARRAY_ITERATOR$4,target:toIndexedObject$d(v),index:0,kind:k})},function(){var v=getInternalState$d(this),k=v.target,ie=v.kind,ae=v.index++;return!k||ae>=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$4=Iterators$9.Arguments=Iterators$9.Array;addToUnscopables$5("keys");addToUnscopables$5("values");addToUnscopables$5("entries");if(DESCRIPTORS$m&&values$4.name!=="values")try{defineProperty3$8(values$4,"name",{value:"values"})}catch(v){}var domIterables$3={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$a=documentCreateElement$2$4,classList$3=documentCreateElement$a("span").classList,DOMTokenListPrototype$1$3=classList$3&&classList$3.constructor&&classList$3.constructor.prototype,domTokenListPrototype$3=DOMTokenListPrototype$1$3===Object.prototype?void 0:DOMTokenListPrototype$1$3,global$1$9=global$j$3,DOMIterables$3=domIterables$3,DOMTokenListPrototype$4=domTokenListPrototype$3,ArrayIteratorMethods$3=es_array_iterator$3,createNonEnumerableProperty$f=createNonEnumerableProperty$4$4,wellKnownSymbol$n=wellKnownSymbol$e$4,ITERATOR$9=wellKnownSymbol$n("iterator"),TO_STRING_TAG$b=wellKnownSymbol$n("toStringTag"),ArrayValues$3=ArrayIteratorMethods$3.values,handlePrototype$3=function(v,k){if(v){if(v[ITERATOR$9]!==ArrayValues$3)try{createNonEnumerableProperty$f(v,ITERATOR$9,ArrayValues$3)}catch{v[ITERATOR$9]=ArrayValues$3}if(v[TO_STRING_TAG$b]||createNonEnumerableProperty$f(v,TO_STRING_TAG$b,k),DOMIterables$3[k]){for(var ie in ArrayIteratorMethods$3)if(v[ie]!==ArrayIteratorMethods$3[ie])try{createNonEnumerableProperty$f(v,ie,ArrayIteratorMethods$3[ie])}catch{v[ie]=ArrayIteratorMethods$3[ie]}}}};for(COLLECTION_NAME$3 in DOMIterables$3)handlePrototype$3(global$1$9[COLLECTION_NAME$3]&&global$1$9[COLLECTION_NAME$3].prototype,COLLECTION_NAME$3);var COLLECTION_NAME$3;handlePrototype$3(DOMTokenListPrototype$4,"DOMTokenList");function __awaiter$b(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAMAAABOo35HAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAA2UExURUdwTGBn+f///2ty+mBn+WBn+WBn+WBn+WBn+WBn+fT1/36E+qmt/JOY+9rb/ujp/ru+/czO/XzSUHkAAAAKdFJOUwD////Jf6Ih5FRLDj7LAAAZ50lEQVR42uxdiRajKgwdSzcFFP7/Z0cWFZAlgdraznjOm+3NtHiT3CyE8OfP55/Ho+9vt/v9en0+n932zL97Xq/3++3W94/Hn3/80ShpjLrCo1H7ZzGbcZphKoK0A01B9k8hVoeT82jE/g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N01o/iZSZwP214GyAGtLEOvq9t8AagcsDzGF078ElI3YBlndvQWt6+oNpn8UpwCzppWoObh1EqO2uQpK/wEBMCXTFLhsgwAAAABJRU5ErkJggg==",setupNightlyConnectState=()=>({client:null,modal:new import_connect_near.NightlyConnectModal,accounts:[]}),NightlyConnect=({metadata:v,store:k,params:ie,logger:ae,options:ce,provider:fe,emitter:le})=>__awaiter$b(void 0,void 0,void 0,function*(){const ve=setupNightlyConnectState(),pe=()=>ve.accounts,ye={createKey:()=>{throw new Error("Not implemented")},getPublicKey:cr=>__awaiter$b(void 0,void 0,void 0,function*(){const $r=pe().find(Pr=>Pr.accountId===cr);if(!$r)throw new Error("Failed to find public key for account");return nearAPI$4.utils.PublicKey.from($r.publicKey)}),signMessage:(cr,Br)=>__awaiter$b(void 0,void 0,void 0,function*(){if(!pe().find(Or=>Or.accountId===Br))throw new Error("Failed to find account for signing");try{const Or=nearAPI$4.transactions.Transaction.decode(Buffer.from(cr));return{signature:(yield ve.client.signTransaction(Or)).signature.data,publicKey:Or.publicKey}}catch(Or){throw ae.log("Failed to sign message"),ae.error(Or),Error("Invalid message. Only transactions can be signed")}})},me=()=>__awaiter$b(void 0,void 0,void 0,function*(){var cr;(0,import_connect_near.clearPersistedSessionId)(),(0,import_connect_near.clearPersistedSessionPublicKey)(),(0,import_connect_near.clearPersistedSessionAccountId)(),(cr=ve.client)===null||cr===void 0||cr.ws.close()}),Ee=cr=>{const Br=getActiveAccount(k.getState()),{contract:$r}=k.getState();if(!Br||!$r)throw new Error("Wallet not signed in");return cr.map(Pr=>({signerId:Pr.signerId||Br.accountId,receiverId:Pr.receiverId||$r.contractId,actions:Pr.actions}))};return{signIn({qrCodeModal:cr=!0}){return __awaiter$b(this,void 0,void 0,function*(){return new Promise((Br,$r)=>{const Pr=pe().map(Mr=>({accountId:Mr.accountId,publicKey:Mr.publicKey.toString()}));if(Pr.length)return Br(Pr);let Or=(0,import_connect_near.getPersistedSessionId)();const ur=(0,import_connect_near.getPersistedSessionPublicKey)(),jr=(0,import_connect_near.getPersistedSessionAccountId)();ie.appMetadata.persistent!==!1&&Or!==null&&(ur===null||jr===null)&&((0,import_connect_near.clearPersistedSessionId)(),Or=null);try{import_connect_near.AppNear.build(Object.assign(Object.assign({},ie),{onUserConnect:Mr=>{(0,import_connect_near.setPersistedSessionPublicKey)(Mr.publicKey.toString()),(0,import_connect_near.setPersistedSessionAccountId)(Mr.accountId.toString()),ve.accounts.push(Mr),ve.modal.onClose=void 0,ve.modal.closeModal(),Br(pe().map(Lr=>({accountId:Lr.accountId,publicKey:Lr.publicKey.toString()})))}})).then(Mr=>{if(Mr.ws.onclose=()=>{ve.client=null,ve.accounts=[],le.emit("signedOut",null)},ve.client=Mr,ie.appMetadata.persistent!==!1&&Or===Mr.sessionId&&ur!==null&&jr!==null)ve.accounts.push({accountId:jr,publicKey:nearAPI$4.utils.PublicKey.from(ur)}),ve.modal.onClose=void 0,Br(pe().map(Lr=>({accountId:Lr.accountId,publicKey:Lr.publicKey.toString()})));else if(cr)ve.modal.openModal(Mr.sessionId,import_connect_near.NETWORK.NEAR),ve.modal.onClose=()=>{$r(new Error("User cancelled pairing"))};else{const Lr=`nightlyconnect:${Mr.sessionId}?network=${import_connect_near.NETWORK.NEAR}`;le.emit("uriChanged",{uri:Lr})}})}catch(Mr){me(),$r(Mr)}})})},signOut:me,getAccounts(){return __awaiter$b(this,void 0,void 0,function*(){return pe().map(cr=>({accountId:cr.accountId,publicKey:cr.publicKey.toString()}))})},verifyOwner({message:cr}){return __awaiter$b(this,void 0,void 0,function*(){throw ae.log("NightlyConnect:verifyOwner",{message:cr}),new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction({signerId:cr,receiverId:Br,actions:$r}){var Pr;return __awaiter$b(this,void 0,void 0,function*(){ae.log("signAndSendTransaction",{signerId:cr,receiverId:Br,actions:$r});const Or=pe();if(!(!((Pr=ve.client)===null||Pr===void 0)&&Pr.sessionId)||!Or.length)throw new Error("Wallet not signed in");const[ur]=yield signTransactions(Ee([{signerId:cr,receiverId:Br,actions:$r}]),ye,ce.network);return fe.sendTransaction(ur)})},signAndSendTransactions({transactions:cr}){var Br;return __awaiter$b(this,void 0,void 0,function*(){ae.log("signAndSendTransactions",{transactions:cr});const $r=pe();if(!(!((Br=ve.client)===null||Br===void 0)&&Br.sessionId)||!$r.length)throw new Error("Wallet not signed in");const Pr=yield signTransactions(Ee(cr),ye,ce.network),Or=[];for(let ur=0;ur__awaiter$b(this,void 0,void 0,function*(){return{id:"nightly-connect",type:"bridge",metadata:{name:"Nightly Connect",description:"Upcoming cutting-edge crypto bridge wallet.",iconUrl:ae,deprecated:ce,available:!0},init:fe=>NightlyConnect(Object.assign(Object.assign({},fe),{params:{appMetadata:v,timeout:k,url:ie}}))}})}const scriptRel="modulepreload",assetsURL=function(v){return"/guest-book-vue/"+v},seen={},__vitePreload=function v(k,ie,ae){return!ie||ie.length===0?k():Promise.all(ie.map(ce=>{if(ce=assetsURL(ce),ce in seen)return;seen[ce]=!0;const fe=ce.endsWith(".css"),le=fe?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${ce}"]${le}`))return;const ve=document.createElement("link");if(ve.rel=fe?"stylesheet":scriptRel,fe||(ve.as="script",ve.crossOrigin=""),ve.href=ce,document.head.appendChild(ve),fe)return new Promise((pe,ye)=>{ve.addEventListener("load",pe),ve.addEventListener("error",()=>ye(new Error(`Unable to preload CSS for ${ce}`)))})})).then(()=>k())};var t=Symbol(),s=Object.getPrototypeOf,c=new WeakMap,l=v=>v&&(c.has(v)?c.get(v):s(v)===Object.prototype||s(v)===Array.prototype),y$1=v=>l(v)&&v[t]||null,h$1=(v,k=!0)=>{c.set(v,k)},isObject$j=v=>typeof v=="object"&&v!==null,proxyStateMap=new WeakMap,refSet=new WeakSet,buildProxyFunction=(v=Object.is,k=(ye,me)=>new Proxy(ye,me),ie=ye=>isObject$j(ye)&&!refSet.has(ye)&&(Array.isArray(ye)||!(Symbol.iterator in ye))&&!(ye instanceof WeakMap)&&!(ye instanceof WeakSet)&&!(ye instanceof Error)&&!(ye instanceof Number)&&!(ye instanceof Date)&&!(ye instanceof String)&&!(ye instanceof RegExp)&&!(ye instanceof ArrayBuffer),ae=ye=>{switch(ye.status){case"fulfilled":return ye.value;case"rejected":throw ye.reason;default:throw ye}},ce=new WeakMap,fe=(ye,me,Ee=ae)=>{const cr=ce.get(ye);if((cr==null?void 0:cr[0])===me)return cr[1];const Br=Array.isArray(ye)?[]:Object.create(Object.getPrototypeOf(ye));return h$1(Br,!0),ce.set(ye,[me,Br]),Reflect.ownKeys(ye).forEach($r=>{if(Object.getOwnPropertyDescriptor(Br,$r))return;const Pr=Reflect.get(ye,$r),Or={value:Pr,enumerable:!0,configurable:!0};if(refSet.has(Pr))h$1(Pr,!1);else if(Pr instanceof Promise)delete Or.value,Or.get=()=>Ee(Pr);else if(proxyStateMap.has(Pr)){const[ur,jr]=proxyStateMap.get(Pr);Or.value=fe(ur,jr(),Ee)}Object.defineProperty(Br,$r,Or)}),Object.preventExtensions(Br)},le=new WeakMap,ve=[1,1],pe=ye=>{if(!isObject$j(ye))throw new Error("object required");const me=le.get(ye);if(me)return me;let Ee=ve[0];const cr=new Set,Br=(vn,Yt=++ve[0])=>{Ee!==Yt&&(Ee=Yt,cr.forEach(fn=>fn(vn,Yt)))};let $r=ve[1];const Pr=(vn=++ve[1])=>($r!==vn&&!cr.size&&($r=vn,ur.forEach(([Yt])=>{const fn=Yt[1](vn);fn>Ee&&(Ee=fn)})),Ee),Or=vn=>(Yt,fn)=>{const Xt=[...Yt];Xt[1]=[vn,...Xt[1]],Br(Xt,fn)},ur=new Map,jr=(vn,Yt)=>{if(cr.size){const fn=Yt[3](Or(vn));ur.set(vn,[Yt,fn])}else ur.set(vn,[Yt])},Mr=vn=>{var Yt;const fn=ur.get(vn);fn&&(ur.delete(vn),(Yt=fn[1])==null||Yt.call(fn))},Lr=vn=>(cr.add(vn),cr.size===1&&ur.forEach(([fn,Xt],Qt)=>{const Kr=fn[3](Or(Qt));ur.set(Qt,[fn,Kr])}),()=>{cr.delete(vn),cr.size===0&&ur.forEach(([fn,Xt],Qt)=>{Xt&&(Xt(),ur.set(Qt,[fn]))})}),Vr=Array.isArray(ye)?[]:Object.create(Object.getPrototypeOf(ye)),Ur=k(Vr,{deleteProperty(vn,Yt){const fn=Reflect.get(vn,Yt);Mr(Yt);const Xt=Reflect.deleteProperty(vn,Yt);return Xt&&Br(["delete",[Yt],fn]),Xt},set(vn,Yt,fn,Xt){const Qt=Reflect.has(vn,Yt),Kr=Reflect.get(vn,Yt,Xt);if(Qt&&(v(Kr,fn)||le.has(fn)&&v(Kr,le.get(fn))))return!0;Mr(Yt),isObject$j(fn)&&(fn=y$1(fn)||fn);let be=fn;if(fn instanceof Promise)fn.then(kr=>{fn.status="fulfilled",fn.value=kr,Br(["resolve",[Yt],kr])}).catch(kr=>{fn.status="rejected",fn.reason=kr,Br(["reject",[Yt],kr])});else{!proxyStateMap.has(fn)&&ie(fn)&&(be=pe(fn));const kr=!refSet.has(be)&&proxyStateMap.get(be);kr&&jr(Yt,kr)}return Reflect.set(vn,Yt,be,Xt),Br(["set",[Yt],fn,Kr]),!0}});le.set(ye,Ur);const Qr=[Vr,Pr,fe,Lr];return proxyStateMap.set(Ur,Qr),Reflect.ownKeys(ye).forEach(vn=>{const Yt=Object.getOwnPropertyDescriptor(ye,vn);"value"in Yt&&(Ur[vn]=ye[vn],delete Yt.value,delete Yt.writable),Object.defineProperty(Vr,vn,Yt)}),Ur})=>[pe,proxyStateMap,refSet,v,k,ie,ae,ce,fe,le,ve],[defaultProxyFunction]=buildProxyFunction();function proxy(v={}){return defaultProxyFunction(v)}function subscribe(v,k,ie){const ae=proxyStateMap.get(v);let ce;const fe=[],le=ae[3];let ve=!1;const ye=le(me=>{if(fe.push(me),ie){k(fe.splice(0));return}ce||(ce=Promise.resolve().then(()=>{ce=void 0,ve&&k(fe.splice(0))}))});return ve=!0,()=>{ve=!1,ye()}}function snapshot(v,k){const ie=proxyStateMap.get(v),[ae,ce,fe]=ie;return fe(ae,ce(),k)}var o=proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),N$2={state:o,subscribe(v){return subscribe(o,()=>v(o))},push(v,k){v!==o.view&&(o.view=v,k&&(o.data=k),o.history.push(v))},reset(v){o.view=v,o.history=[v]},replace(v){o.history.length>1&&(o.history[o.history.length-1]=v,o.view=v)},goBack(){if(o.history.length>1){o.history.pop();const[v]=o.history.slice(-1);o.view=v}},setData(v){o.data=v}},i={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return i.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const v=navigator.userAgent.toLowerCase();return i.isMobile()&&(v.includes("iphone")||v.includes("ipad"))},isHttpUrl(v){return v.startsWith("http://")||v.startsWith("https://")},isArray(v){return Array.isArray(v)&&v.length>0},formatNativeUrl(v,k,ie){if(i.isHttpUrl(v))return this.formatUniversalUrl(v,k,ie);let ae=v;ae.includes("://")||(ae=v.replaceAll("/","").replaceAll(":",""),ae=`${ae}://`),ae.endsWith("/")||(ae=`${ae}/`),this.setWalletConnectDeepLink(ae,ie);const ce=encodeURIComponent(k);return`${ae}wc?uri=${ce}`},formatUniversalUrl(v,k,ie){if(!i.isHttpUrl(v))return this.formatNativeUrl(v,k,ie);let ae=v;ae.endsWith("/")||(ae=`${ae}/`),this.setWalletConnectDeepLink(ae,ie);const ce=encodeURIComponent(k);return`${ae}wc?uri=${ce}`},async wait(v){return new Promise(k=>{setTimeout(k,v)})},openHref(v,k){window.open(v,k,"noreferrer noopener")},setWalletConnectDeepLink(v,k){try{localStorage.setItem(i.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:v,name:k}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(v){try{const[k]=v.split("?");localStorage.setItem(i.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:k,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(i.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(i.WCM_VERSION,"2.6.0")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var v;const k=(v=N$2.state.data)==null?void 0:v.Wallet;if(!k)throw new Error('Missing "Wallet" view data');return k}},x$1=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r$1=proxy({enabled:x$1,userSessionId:"",events:[],connectedWalletId:void 0}),T={state:r$1,subscribe(v){return subscribe(r$1.events,()=>v(snapshot(r$1.events[r$1.events.length-1])))},initialize(){r$1.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(r$1.userSessionId=crypto.randomUUID())},setConnectedWalletId(v){r$1.connectedWalletId=v},click(v){if(r$1.enabled){const k={type:"CLICK",name:v.name,userSessionId:r$1.userSessionId,timestamp:Date.now(),data:v};r$1.events.push(k)}},track(v){if(r$1.enabled){const k={type:"TRACK",name:v.name,userSessionId:r$1.userSessionId,timestamp:Date.now(),data:v};r$1.events.push(k)}},view(v){if(r$1.enabled){const k={type:"VIEW",name:v.name,userSessionId:r$1.userSessionId,timestamp:Date.now(),data:v};r$1.events.push(k)}}},l2=proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),d={state:l2,subscribe(v){return subscribe(l2,()=>v(l2))},setChains(v){l2.chains=v},setWalletConnectUri(v){l2.walletConnectUri=v},setIsCustomDesktop(v){l2.isCustomDesktop=v},setIsCustomMobile(v){l2.isCustomMobile=v},setIsDataLoaded(v){l2.isDataLoaded=v},setIsUiLoaded(v){l2.isUiLoaded=v},setIsAuth(v){l2.isAuth=v}},W$1=proxy({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),f={state:W$1,subscribe(v){return subscribe(W$1,()=>v(W$1))},setConfig(v){var k,ie;T.initialize(),d.setChains(v.chains),d.setIsAuth(Boolean(v.enableAuthMode)),d.setIsCustomMobile(Boolean((k=v.mobileWallets)==null?void 0:k.length)),d.setIsCustomDesktop(Boolean((ie=v.desktopWallets)==null?void 0:ie.length)),i.setModalVersionInStorage(),Object.assign(W$1,v)}},w$1="https://explorer-api.walletconnect.com";async function L$1(v,k){const ie=new URL(v,w$1);return ie.searchParams.append("projectId",f.state.projectId),Object.entries(k).forEach(([ae,ce])=>{ce&&ie.searchParams.append(ae,String(ce))}),(await fetch(ie)).json()}var m={async getDesktopListings(v){return L$1("/w3m/v1/getDesktopListings",v)},async getMobileListings(v){return L$1("/w3m/v1/getMobileListings",v)},async getInjectedListings(v){return L$1("/w3m/v1/getInjectedListings",v)},async getAllListings(v){return L$1("/w3m/v1/getAllListings",v)},getWalletImageUrl(v){return`${w$1}/w3m/v1/getWalletImage/${v}?projectId=${f.state.projectId}`},getAssetImageUrl(v){return`${w$1}/w3m/v1/getAssetImage/${v}?projectId=${f.state.projectId}`}},$$d=Object.defineProperty,O$1=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,_$1=Object.prototype.propertyIsEnumerable,U$1=(v,k,ie)=>k in v?$$d(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,R$1=(v,k)=>{for(var ie in k||(k={}))P.call(k,ie)&&U$1(v,ie,k[ie]);if(O$1)for(var ie of O$1(k))_$1.call(k,ie)&&U$1(v,ie,k[ie]);return v},M$1=i.isMobile(),c2=proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),q$1={state:c2,async getRecomendedWallets(){const{explorerRecommendedWalletIds:v,explorerExcludedWalletIds:k}=f.state;if(v==="NONE"||k==="ALL"&&!v)return c2.recomendedWallets;if(i.isArray(v)){const ie={recommendedIds:v.join(",")},{listings:ae}=await m.getAllListings(ie),ce=Object.values(ae);ce.sort((fe,le)=>{const ve=v.indexOf(fe.id),pe=v.indexOf(le.id);return ve-pe}),c2.recomendedWallets=ce}else{const{chains:ie,isAuth:ae}=d.state,ce=ie==null?void 0:ie.join(","),fe=i.isArray(k),le={page:1,sdks:ae?"auth_v1":void 0,entries:i.RECOMMENDED_WALLET_AMOUNT,chains:ce,version:2,excludedIds:fe?k.join(","):void 0},{listings:ve}=M$1?await m.getMobileListings(le):await m.getDesktopListings(le);c2.recomendedWallets=Object.values(ve)}return c2.recomendedWallets},async getWallets(v){const k=R$1({},v),{explorerRecommendedWalletIds:ie,explorerExcludedWalletIds:ae}=f.state,{recomendedWallets:ce}=c2;if(ae==="ALL")return c2.wallets;ce.length?k.excludedIds=ce.map(Ee=>Ee.id).join(","):i.isArray(ie)&&(k.excludedIds=ie.join(",")),i.isArray(ae)&&(k.excludedIds=[k.excludedIds,ae].filter(Boolean).join(",")),d.state.isAuth&&(k.sdks="auth_v1");const{page:fe,search:le}=v,{listings:ve,total:pe}=M$1?await m.getMobileListings(k):await m.getDesktopListings(k),ye=Object.values(ve),me=le?"search":"wallets";return c2[me]={listings:[...c2[me].listings,...ye],total:pe,page:fe!=null?fe:1},{listings:ye,total:pe}},getWalletImageUrl(v){return m.getWalletImageUrl(v)},getAssetImageUrl(v){return m.getAssetImageUrl(v)},resetSearch(){c2.search={listings:[],total:0,page:1}}},I$1=proxy({open:!1}),F={state:I$1,subscribe(v){return subscribe(I$1,()=>v(I$1))},async open(v){return new Promise(k=>{const{isUiLoaded:ie,isDataLoaded:ae}=d.state;if(d.setWalletConnectUri(v==null?void 0:v.uri),d.setChains(v==null?void 0:v.chains),N$2.reset("ConnectWallet"),ie&&ae)I$1.open=!0,k();else{const ce=setInterval(()=>{const fe=d.state;fe.isUiLoaded&&fe.isDataLoaded&&(clearInterval(ce),I$1.open=!0,k())},200)}})},close(){I$1.open=!1}},H$1=Object.defineProperty,D$1=Object.getOwnPropertySymbols,B$1=Object.prototype.hasOwnProperty,V$1=Object.prototype.propertyIsEnumerable,j$3=(v,k,ie)=>k in v?H$1(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,K$1=(v,k)=>{for(var ie in k||(k={}))B$1.call(k,ie)&&j$3(v,ie,k[ie]);if(D$1)for(var ie of D$1(k))V$1.call(k,ie)&&j$3(v,ie,k[ie]);return v};function z(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}var b$1=proxy({themeMode:z()?"dark":"light"}),G={state:b$1,subscribe(v){return subscribe(b$1,()=>v(b$1))},setThemeConfig(v){const{themeMode:k,themeVariables:ie}=v;k&&(b$1.themeMode=k),ie&&(b$1.themeVariables=K$1({},ie))}},g$1=proxy({open:!1,message:"",variant:"success"}),Q$1={state:g$1,subscribe(v){return subscribe(g$1,()=>v(g$1))},openToast(v,k){g$1.open=!0,g$1.message=v,g$1.variant=k},closeToast(){g$1.open=!1}},require_tslib=__commonJS$1({"node_modules/tslib/tslib.js"(v,k){var ie,ae,ce,fe,le,ve,pe,ye,me,Ee,cr,Br,$r,Pr,Or,ur,jr,Mr,Lr,Vr,Gr,Ur,Qr;(function(vn){var Yt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(Xt){vn(fn(Yt,fn(Xt)))}):typeof k=="object"&&typeof k.exports=="object"?vn(fn(Yt,fn(k.exports))):vn(fn(Yt));function fn(Xt,Qt){return Xt!==Yt&&(typeof Object.create=="function"?Object.defineProperty(Xt,"__esModule",{value:!0}):Xt.__esModule=!0),function(Kr,be){return Xt[Kr]=Qt?Qt(Kr,be):be}}})(function(vn){var Yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fn,Xt){fn.__proto__=Xt}||function(fn,Xt){for(var Qt in Xt)Xt.hasOwnProperty(Qt)&&(fn[Qt]=Xt[Qt])};ie=function(fn,Xt){Yt(fn,Xt);function Qt(){this.constructor=fn}fn.prototype=Xt===null?Object.create(Xt):(Qt.prototype=Xt.prototype,new Qt)},ae=Object.assign||function(fn){for(var Xt,Qt=1,Kr=arguments.length;Qt=0;Wr--)(xr=fn[Wr])&&(kr=(be<3?xr(kr):be>3?xr(Xt,Qt,kr):xr(Xt,Qt))||kr);return be>3&&kr&&Object.defineProperty(Xt,Qt,kr),kr},le=function(fn,Xt){return function(Qt,Kr){Xt(Qt,Kr,fn)}},ve=function(fn,Xt){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(fn,Xt)},pe=function(fn,Xt,Qt,Kr){function be(kr){return kr instanceof Qt?kr:new Qt(function(xr){xr(kr)})}return new(Qt||(Qt=Promise))(function(kr,xr){function Wr(zr){try{Xr(Kr.next(zr))}catch(Jr){xr(Jr)}}function Jt(zr){try{Xr(Kr.throw(zr))}catch(Jr){xr(Jr)}}function Xr(zr){zr.done?kr(zr.value):be(zr.value).then(Wr,Jt)}Xr((Kr=Kr.apply(fn,Xt||[])).next())})},ye=function(fn,Xt){var Qt={label:0,sent:function(){if(kr[0]&1)throw kr[1];return kr[1]},trys:[],ops:[]},Kr,be,kr,xr;return xr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(xr[Symbol.iterator]=function(){return this}),xr;function Wr(Xr){return function(zr){return Jt([Xr,zr])}}function Jt(Xr){if(Kr)throw new TypeError("Generator is already executing.");for(;Qt;)try{if(Kr=1,be&&(kr=Xr[0]&2?be.return:Xr[0]?be.throw||((kr=be.return)&&kr.call(be),0):be.next)&&!(kr=kr.call(be,Xr[1])).done)return kr;switch(be=0,kr&&(Xr=[Xr[0]&2,kr.value]),Xr[0]){case 0:case 1:kr=Xr;break;case 4:return Qt.label++,{value:Xr[1],done:!1};case 5:Qt.label++,be=Xr[1],Xr=[0];continue;case 7:Xr=Qt.ops.pop(),Qt.trys.pop();continue;default:if(kr=Qt.trys,!(kr=kr.length>0&&kr[kr.length-1])&&(Xr[0]===6||Xr[0]===2)){Qt=0;continue}if(Xr[0]===3&&(!kr||Xr[1]>kr[0]&&Xr[1]=fn.length&&(fn=void 0),{value:fn&&fn[Kr++],done:!fn}}};throw new TypeError(Xt?"Object is not iterable.":"Symbol.iterator is not defined.")},cr=function(fn,Xt){var Qt=typeof Symbol=="function"&&fn[Symbol.iterator];if(!Qt)return fn;var Kr=Qt.call(fn),be,kr=[],xr;try{for(;(Xt===void 0||Xt-- >0)&&!(be=Kr.next()).done;)kr.push(be.value)}catch(Wr){xr={error:Wr}}finally{try{be&&!be.done&&(Qt=Kr.return)&&Qt.call(Kr)}finally{if(xr)throw xr.error}}return kr},Br=function(){for(var fn=[],Xt=0;Xt1||Wr(Nr,Hr)})})}function Wr(Nr,Hr){try{Jt(Kr[Nr](Hr))}catch(On){Jr(kr[0][3],On)}}function Jt(Nr){Nr.value instanceof Pr?Promise.resolve(Nr.value.v).then(Xr,zr):Jr(kr[0][2],Nr)}function Xr(Nr){Wr("next",Nr)}function zr(Nr){Wr("throw",Nr)}function Jr(Nr,Hr){Nr(Hr),kr.shift(),kr.length&&Wr(kr[0][0],kr[0][1])}},ur=function(fn){var Xt,Qt;return Xt={},Kr("next"),Kr("throw",function(be){throw be}),Kr("return"),Xt[Symbol.iterator]=function(){return this},Xt;function Kr(be,kr){Xt[be]=fn[be]?function(xr){return(Qt=!Qt)?{value:Pr(fn[be](xr)),done:be==="return"}:kr?kr(xr):xr}:kr}},jr=function(fn){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Xt=fn[Symbol.asyncIterator],Qt;return Xt?Xt.call(fn):(fn=typeof Ee=="function"?Ee(fn):fn[Symbol.iterator](),Qt={},Kr("next"),Kr("throw"),Kr("return"),Qt[Symbol.asyncIterator]=function(){return this},Qt);function Kr(kr){Qt[kr]=fn[kr]&&function(xr){return new Promise(function(Wr,Jt){xr=fn[kr](xr),be(Wr,Jt,xr.done,xr.value)})}}function be(kr,xr,Wr,Jt){Promise.resolve(Jt).then(function(Xr){kr({value:Xr,done:Wr})},xr)}},Mr=function(fn,Xt){return Object.defineProperty?Object.defineProperty(fn,"raw",{value:Xt}):fn.raw=Xt,fn},Lr=function(fn){if(fn&&fn.__esModule)return fn;var Xt={};if(fn!=null)for(var Qt in fn)Object.hasOwnProperty.call(fn,Qt)&&(Xt[Qt]=fn[Qt]);return Xt.default=fn,Xt},Vr=function(fn){return fn&&fn.__esModule?fn:{default:fn}},Gr=function(fn,Xt){if(!Xt.has(fn))throw new TypeError("attempted to get private field on non-instance");return Xt.get(fn)},Ur=function(fn,Xt,Qt){if(!Xt.has(fn))throw new TypeError("attempted to set private field on non-instance");return Xt.set(fn,Qt),Qt},vn("__extends",ie),vn("__assign",ae),vn("__rest",ce),vn("__decorate",fe),vn("__param",le),vn("__metadata",ve),vn("__awaiter",pe),vn("__generator",ye),vn("__exportStar",me),vn("__createBinding",Qr),vn("__values",Ee),vn("__read",cr),vn("__spread",Br),vn("__spreadArrays",$r),vn("__await",Pr),vn("__asyncGenerator",Or),vn("__asyncDelegator",ur),vn("__asyncValues",jr),vn("__makeTemplateObject",Mr),vn("__importStar",Lr),vn("__importDefault",Vr),vn("__classPrivateFieldGet",Gr),vn("__classPrivateFieldSet",Ur)})}}),require_cjs=__commonJS$1({"node_modules/safe-json-utils/dist/cjs/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});function k(ae){if(typeof ae!="string")throw new Error(`Cannot safe json parse value of type ${typeof ae}`);try{return JSON.parse(ae)}catch{return ae}}v.safeJsonParse=k;function ie(ae){return typeof ae=="string"?ae:JSON.stringify(ae,(ce,fe)=>typeof fe>"u"?null:fe)}v.safeJsonStringify=ie}}),require_localStorage=__commonJS$1({"node_modules/@walletconnect/keyvaluestorage/dist/cjs/browser/lib/localStorage.js"(v,k){(function(){let ie;function ae(){}ie=ae,ie.prototype.getItem=function(ce){return this.hasOwnProperty(ce)?String(this[ce]):null},ie.prototype.setItem=function(ce,fe){this[ce]=String(fe)},ie.prototype.removeItem=function(ce){delete this[ce]},ie.prototype.clear=function(){const ce=this;Object.keys(ce).forEach(function(fe){ce[fe]=void 0,delete ce[fe]})},ie.prototype.key=function(ce){return ce=ce||0,Object.keys(this)[ce]},ie.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof globalThis<"u"&&globalThis.localStorage?k.exports=globalThis.localStorage:typeof window<"u"&&window.localStorage?k.exports=window.localStorage:k.exports=new ae})()}}),require_types$2=__commonJS$1({"node_modules/@walletconnect/keyvaluestorage/dist/cjs/shared/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.IKeyValueStorage=void 0;var k=class{};v.IKeyValueStorage=k}}),require_utils$2=__commonJS$1({"node_modules/@walletconnect/keyvaluestorage/dist/cjs/shared/utils.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.parseEntry=void 0;var k=require_cjs();function ie(ae){var ce;return[ae[0],k.safeJsonParse((ce=ae[1])!==null&&ce!==void 0?ce:"")]}v.parseEntry=ie}}),require_shared=__commonJS$1({"node_modules/@walletconnect/keyvaluestorage/dist/cjs/shared/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_types$2(),v),k.__exportStar(require_utils$2(),v)}}),require_browser$1=__commonJS$1({"node_modules/@walletconnect/keyvaluestorage/dist/cjs/browser/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyValueStorage=void 0;var k=require_tslib(),ie=require_cjs(),ae=k.__importDefault(require_localStorage()),ce=require_shared(),fe=class{constructor(){this.localStorage=ae.default}getKeys(){return k.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return k.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(ce.parseEntry)})}getItem(le){return k.__awaiter(this,void 0,void 0,function*(){const ve=this.localStorage.getItem(le);if(ve!==null)return ie.safeJsonParse(ve)})}setItem(le,ve){return k.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(le,ie.safeJsonStringify(ve))})}removeItem(le){return k.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(le)})}};v.KeyValueStorage=fe,v.default=fe}}),require_delay=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/utils/delay.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.delay=void 0;function k(ie){return new Promise(ae=>{setTimeout(()=>{ae(!0)},ie)})}v.delay=k}}),require_misc=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/constants/misc.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ONE_THOUSAND=v.ONE_HUNDRED=void 0,v.ONE_HUNDRED=100,v.ONE_THOUSAND=1e3}}),require_time=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/constants/time.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ONE_YEAR=v.FOUR_WEEKS=v.THREE_WEEKS=v.TWO_WEEKS=v.ONE_WEEK=v.THIRTY_DAYS=v.SEVEN_DAYS=v.FIVE_DAYS=v.THREE_DAYS=v.ONE_DAY=v.TWENTY_FOUR_HOURS=v.TWELVE_HOURS=v.SIX_HOURS=v.THREE_HOURS=v.ONE_HOUR=v.SIXTY_MINUTES=v.THIRTY_MINUTES=v.TEN_MINUTES=v.FIVE_MINUTES=v.ONE_MINUTE=v.SIXTY_SECONDS=v.THIRTY_SECONDS=v.TEN_SECONDS=v.FIVE_SECONDS=v.ONE_SECOND=void 0,v.ONE_SECOND=1,v.FIVE_SECONDS=5,v.TEN_SECONDS=10,v.THIRTY_SECONDS=30,v.SIXTY_SECONDS=60,v.ONE_MINUTE=v.SIXTY_SECONDS,v.FIVE_MINUTES=v.ONE_MINUTE*5,v.TEN_MINUTES=v.ONE_MINUTE*10,v.THIRTY_MINUTES=v.ONE_MINUTE*30,v.SIXTY_MINUTES=v.ONE_MINUTE*60,v.ONE_HOUR=v.SIXTY_MINUTES,v.THREE_HOURS=v.ONE_HOUR*3,v.SIX_HOURS=v.ONE_HOUR*6,v.TWELVE_HOURS=v.ONE_HOUR*12,v.TWENTY_FOUR_HOURS=v.ONE_HOUR*24,v.ONE_DAY=v.TWENTY_FOUR_HOURS,v.THREE_DAYS=v.ONE_DAY*3,v.FIVE_DAYS=v.ONE_DAY*5,v.SEVEN_DAYS=v.ONE_DAY*7,v.THIRTY_DAYS=v.ONE_DAY*30,v.ONE_WEEK=v.SEVEN_DAYS,v.TWO_WEEKS=v.ONE_WEEK*2,v.THREE_WEEKS=v.ONE_WEEK*3,v.FOUR_WEEKS=v.ONE_WEEK*4,v.ONE_YEAR=v.ONE_DAY*365}}),require_constants=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/constants/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_misc(),v),k.__exportStar(require_time(),v)}}),require_convert=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/utils/convert.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.fromMiliseconds=v.toMiliseconds=void 0;var k=require_constants();function ie(ce){return ce*k.ONE_THOUSAND}v.toMiliseconds=ie;function ae(ce){return Math.floor(ce/k.ONE_THOUSAND)}v.fromMiliseconds=ae}}),require_utils2$1=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/utils/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_delay(),v),k.__exportStar(require_convert(),v)}}),require_watch=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/watch.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Watch=void 0;var k=class{constructor(){this.timestamps=new Map}start(ie){if(this.timestamps.has(ie))throw new Error(`Watch already started for label: ${ie}`);this.timestamps.set(ie,{started:Date.now()})}stop(ie){const ae=this.get(ie);if(typeof ae.elapsed<"u")throw new Error(`Watch already stopped for label: ${ie}`);const ce=Date.now()-ae.started;this.timestamps.set(ie,{started:ae.started,elapsed:ce})}get(ie){const ae=this.timestamps.get(ie);if(typeof ae>"u")throw new Error(`No timestamp found for label: ${ie}`);return ae}elapsed(ie){const ae=this.get(ie);return ae.elapsed||Date.now()-ae.started}};v.Watch=k,v.default=k}}),require_watch2=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/types/watch.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.IWatch=void 0;var k=class{};v.IWatch=k}}),require_types2$1=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/types/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_watch2(),v)}}),require_cjs2=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_utils2$1(),v),k.__exportStar(require_watch(),v),k.__exportStar(require_types2$1(),v),k.__exportStar(require_constants(),v)}}),IEvents,init_events=__esm$1({"node_modules/@walletconnect/events/dist/esm/events.js"(){IEvents=class{}}}),esm_exports={};__export$1(esm_exports,{IEvents:()=>IEvents});var init_esm=__esm$1({"node_modules/@walletconnect/events/dist/esm/index.js"(){init_events()}}),require_heartbeat=__commonJS$1({"node_modules/@walletconnect/heartbeat/dist/cjs/types/heartbeat.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.IHeartBeat=void 0;var k=(init_esm(),__toCommonJS$1(esm_exports)),ie=class extends k.IEvents{constructor(ae){super()}};v.IHeartBeat=ie}}),require_types3=__commonJS$1({"node_modules/@walletconnect/heartbeat/dist/cjs/types/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_heartbeat(),v)}}),require_heartbeat2=__commonJS$1({"node_modules/@walletconnect/heartbeat/dist/cjs/constants/heartbeat.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.HEARTBEAT_EVENTS=v.HEARTBEAT_INTERVAL=void 0;var k=require_cjs2();v.HEARTBEAT_INTERVAL=k.FIVE_SECONDS,v.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}}}),require_constants2=__commonJS$1({"node_modules/@walletconnect/heartbeat/dist/cjs/constants/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_heartbeat2(),v)}}),require_heartbeat3=__commonJS$1({"node_modules/@walletconnect/heartbeat/dist/cjs/heartbeat.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.HeartBeat=void 0;var k=require_tslib(),ie=require_events(),ae=require_cjs2(),ce=require_types3(),fe=require_constants2(),le=class extends ce.IHeartBeat{constructor(ve){super(ve),this.events=new ie.EventEmitter,this.interval=fe.HEARTBEAT_INTERVAL,this.interval=(ve==null?void 0:ve.interval)||fe.HEARTBEAT_INTERVAL}static init(ve){return k.__awaiter(this,void 0,void 0,function*(){const pe=new le(ve);return yield pe.init(),pe})}init(){return k.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(ve,pe){this.events.on(ve,pe)}once(ve,pe){this.events.once(ve,pe)}off(ve,pe){this.events.off(ve,pe)}removeListener(ve,pe){this.events.removeListener(ve,pe)}initialize(){return k.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),ae.toMiliseconds(this.interval))})}pulse(){this.events.emit(fe.HEARTBEAT_EVENTS.pulse)}};v.HeartBeat=le}}),require_cjs3=__commonJS$1({"node_modules/@walletconnect/heartbeat/dist/cjs/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_heartbeat3(),v),k.__exportStar(require_types3(),v),k.__exportStar(require_constants2(),v)}}),require_quick_format_unescaped=__commonJS$1({"node_modules/quick-format-unescaped/index.js"(v,k){function ie(ce){try{return JSON.stringify(ce)}catch{return'"[Circular]"'}}k.exports=ae;function ae(ce,fe,le){var ve=le&&le.stringify||ie,pe=1;if(typeof ce=="object"&&ce!==null){var ye=fe.length+pe;if(ye===1)return ce;var me=new Array(ye);me[0]=ve(ce);for(var Ee=1;Ee-1?Pr:0,ce.charCodeAt(ur+1)){case 100:case 102:if($r>=cr||fe[$r]==null)break;Pr=cr||fe[$r]==null)break;Pr=cr||fe[$r]===void 0)break;Pr",Pr=ur+2,ur++;break}Br+=ve(fe[$r]),Pr=ur+2,ur++;break;case 115:if($r>=cr)break;Pr-1&&(Qt=!1);const Kr=["error","fatal","warn","info","debug","trace"];typeof Yt=="function"&&(Yt.error=Yt.fatal=Yt.warn=Yt.info=Yt.debug=Yt.trace=Yt),Qr.enabled===!1&&(Qr.level="silent");const be=Qr.level||"info",kr=Object.create(Yt);kr.log||(kr.log=jr),Object.defineProperty(kr,"levelVal",{get:Wr}),Object.defineProperty(kr,"level",{get:Jt,set:Xr});const xr={transmit:vn,serialize:Xt,asObject:Qr.browser.asObject,levels:Kr,timestamp:Pr(Qr)};kr.levels=le.levels,kr.level=be,kr.setMaxListeners=kr.getMaxListeners=kr.emit=kr.addListener=kr.on=kr.prependListener=kr.once=kr.prependOnceListener=kr.removeListener=kr.removeAllListeners=kr.listeners=kr.listenerCount=kr.eventNames=kr.write=kr.flush=jr,kr.serializers=fn,kr._serialize=Xt,kr._stdErrSerialize=Qt,kr.child=zr,vn&&(kr._logEvent=Br());function Wr(){return this.level==="silent"?1/0:this.levels.values[this.level]}function Jt(){return this._level}function Xr(Jr){if(Jr!=="silent"&&!this.levels.values[Jr])throw Error("unknown level "+Jr);this._level=Jr,ve(xr,kr,"error","log"),ve(xr,kr,"fatal","error"),ve(xr,kr,"warn","error"),ve(xr,kr,"info","log"),ve(xr,kr,"debug","log"),ve(xr,kr,"trace","log")}function zr(Jr,Nr){if(!Jr)throw new Error("missing bindings for child Pino");Nr=Nr||{},Xt&&Jr.serializers&&(Nr.serializers=Jr.serializers);const Hr=Nr.serializers;if(Xt&&Hr){var On=Object.assign({},fn,Hr),Gn=Qr.browser.serialize===!0?Object.keys(On):Xt;delete Jr.serializers,me([Jr],Gn,On,this._stdErrSerialize)}function mn(Nn){this._childLevel=(Nn._childLevel|0)+1,this.error=Ee(Nn,Jr,"error"),this.fatal=Ee(Nn,Jr,"fatal"),this.warn=Ee(Nn,Jr,"warn"),this.info=Ee(Nn,Jr,"info"),this.debug=Ee(Nn,Jr,"debug"),this.trace=Ee(Nn,Jr,"trace"),On&&(this.serializers=On,this._serialize=Gn),vn&&(this._logEvent=Br([].concat(Nn._logEvent.bindings,Jr)))}return mn.prototype=this,new mn(this)}return kr}le.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},le.stdSerializers=ce,le.stdTimeFunctions=Object.assign({},{nullTime:Mr,epochTime:Lr,unixTime:Vr,isoTime:Gr});function ve(Qr,vn,Yt,fn){const Xt=Object.getPrototypeOf(vn);vn[Yt]=vn.levelVal>vn.levels.values[Yt]?jr:Xt[Yt]?Xt[Yt]:ae[Yt]||ae[fn]||jr,pe(Qr,vn,Yt)}function pe(Qr,vn,Yt){!Qr.transmit&&vn[Yt]===jr||(vn[Yt]=function(fn){return function(){const Qt=Qr.timestamp(),Kr=new Array(arguments.length),be=Object.getPrototypeOf&&Object.getPrototypeOf(this)===ae?ae:this;for(var kr=0;kr-1&&Qt in Yt&&(Qr[Xt][Qt]=Yt[Qt](Qr[Xt][Qt]))}function Ee(Qr,vn,Yt){return function(){const fn=new Array(1+arguments.length);fn[0]=vn;for(var Xt=1;Xt"u"?me=ae(pe,ye):me=pe.bindings().context||"",me}v.getLoggerContext=fe;function le(pe,ye,me=k.PINO_CUSTOM_CONTEXT_KEY){const Ee=fe(pe,me);return Ee.trim()?`${Ee}/${ye}`:ye}v.formatChildLoggerContext=le;function ve(pe,ye,me=k.PINO_CUSTOM_CONTEXT_KEY){const Ee=le(pe,ye,me),cr=pe.child({context:Ee});return ce(cr,Ee,me)}v.generateChildLogger=ve}}),require_cjs4=__commonJS$1({"node_modules/@walletconnect/logger/dist/cjs/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.pino=void 0;var k=require_tslib(),ie=k.__importDefault(require_browser2$1());Object.defineProperty(v,"pino",{enumerable:!0,get:function(){return ie.default}}),k.__exportStar(require_constants3(),v),k.__exportStar(require_utils3(),v)}}),require_browser3$1=__commonJS$1({"node_modules/@stablelib/random/lib/source/browser.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.BrowserRandomSource=void 0;var k=65536,ie=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const ae=typeof self<"u"?self.crypto||self.msCrypto:null;ae&&ae.getRandomValues!==void 0&&(this._crypto=ae,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(ae){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const ce=new Uint8Array(ae);for(let fe=0;fe>>16&65535,me=ve&65535,Ee=pe>>>16&65535,cr=pe&65535;return me*cr+(ye*cr+me*Ee<<16>>>0)|0}v.mul=Math.imul||k;function ie(ve,pe){return ve+pe|0}v.add=ie;function ae(ve,pe){return ve-pe|0}v.sub=ae;function ce(ve,pe){return ve<>>32-pe}v.rotl=ce;function fe(ve,pe){return ve<<32-pe|ve>>>pe}v.rotr=fe;function le(ve){return typeof ve=="number"&&isFinite(ve)&&Math.floor(ve)===ve}v.isInteger=Number.isInteger||le,v.MAX_SAFE_INTEGER=9007199254740991,v.isSafeInteger=function(ve){return v.isInteger(ve)&&ve>=-v.MAX_SAFE_INTEGER&&ve<=v.MAX_SAFE_INTEGER}}}),require_binary=__commonJS$1({"node_modules/@stablelib/binary/lib/binary.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_int();function ie(kr,xr){return xr===void 0&&(xr=0),(kr[xr+0]<<8|kr[xr+1])<<16>>16}v.readInt16BE=ie;function ae(kr,xr){return xr===void 0&&(xr=0),(kr[xr+0]<<8|kr[xr+1])>>>0}v.readUint16BE=ae;function ce(kr,xr){return xr===void 0&&(xr=0),(kr[xr+1]<<8|kr[xr])<<16>>16}v.readInt16LE=ce;function fe(kr,xr){return xr===void 0&&(xr=0),(kr[xr+1]<<8|kr[xr])>>>0}v.readUint16LE=fe;function le(kr,xr,Wr){return xr===void 0&&(xr=new Uint8Array(2)),Wr===void 0&&(Wr=0),xr[Wr+0]=kr>>>8,xr[Wr+1]=kr>>>0,xr}v.writeUint16BE=le,v.writeInt16BE=le;function ve(kr,xr,Wr){return xr===void 0&&(xr=new Uint8Array(2)),Wr===void 0&&(Wr=0),xr[Wr+0]=kr>>>0,xr[Wr+1]=kr>>>8,xr}v.writeUint16LE=ve,v.writeInt16LE=ve;function pe(kr,xr){return xr===void 0&&(xr=0),kr[xr]<<24|kr[xr+1]<<16|kr[xr+2]<<8|kr[xr+3]}v.readInt32BE=pe;function ye(kr,xr){return xr===void 0&&(xr=0),(kr[xr]<<24|kr[xr+1]<<16|kr[xr+2]<<8|kr[xr+3])>>>0}v.readUint32BE=ye;function me(kr,xr){return xr===void 0&&(xr=0),kr[xr+3]<<24|kr[xr+2]<<16|kr[xr+1]<<8|kr[xr]}v.readInt32LE=me;function Ee(kr,xr){return xr===void 0&&(xr=0),(kr[xr+3]<<24|kr[xr+2]<<16|kr[xr+1]<<8|kr[xr])>>>0}v.readUint32LE=Ee;function cr(kr,xr,Wr){return xr===void 0&&(xr=new Uint8Array(4)),Wr===void 0&&(Wr=0),xr[Wr+0]=kr>>>24,xr[Wr+1]=kr>>>16,xr[Wr+2]=kr>>>8,xr[Wr+3]=kr>>>0,xr}v.writeUint32BE=cr,v.writeInt32BE=cr;function Br(kr,xr,Wr){return xr===void 0&&(xr=new Uint8Array(4)),Wr===void 0&&(Wr=0),xr[Wr+0]=kr>>>0,xr[Wr+1]=kr>>>8,xr[Wr+2]=kr>>>16,xr[Wr+3]=kr>>>24,xr}v.writeUint32LE=Br,v.writeInt32LE=Br;function $r(kr,xr){xr===void 0&&(xr=0);var Wr=pe(kr,xr),Jt=pe(kr,xr+4);return Wr*4294967296+Jt-(Jt>>31)*4294967296}v.readInt64BE=$r;function Pr(kr,xr){xr===void 0&&(xr=0);var Wr=ye(kr,xr),Jt=ye(kr,xr+4);return Wr*4294967296+Jt}v.readUint64BE=Pr;function Or(kr,xr){xr===void 0&&(xr=0);var Wr=me(kr,xr),Jt=me(kr,xr+4);return Jt*4294967296+Wr-(Wr>>31)*4294967296}v.readInt64LE=Or;function ur(kr,xr){xr===void 0&&(xr=0);var Wr=Ee(kr,xr),Jt=Ee(kr,xr+4);return Jt*4294967296+Wr}v.readUint64LE=ur;function jr(kr,xr,Wr){return xr===void 0&&(xr=new Uint8Array(8)),Wr===void 0&&(Wr=0),cr(kr/4294967296>>>0,xr,Wr),cr(kr>>>0,xr,Wr+4),xr}v.writeUint64BE=jr,v.writeInt64BE=jr;function Mr(kr,xr,Wr){return xr===void 0&&(xr=new Uint8Array(8)),Wr===void 0&&(Wr=0),Br(kr>>>0,xr,Wr),Br(kr/4294967296>>>0,xr,Wr+4),xr}v.writeUint64LE=Mr,v.writeInt64LE=Mr;function Lr(kr,xr,Wr){if(Wr===void 0&&(Wr=0),kr%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(kr/8>xr.length-Wr)throw new Error("readUintBE: array is too short for the given bitLength");for(var Jt=0,Xr=1,zr=kr/8+Wr-1;zr>=Wr;zr--)Jt+=xr[zr]*Xr,Xr*=256;return Jt}v.readUintBE=Lr;function Vr(kr,xr,Wr){if(Wr===void 0&&(Wr=0),kr%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(kr/8>xr.length-Wr)throw new Error("readUintLE: array is too short for the given bitLength");for(var Jt=0,Xr=1,zr=Wr;zr=Jt;zr--)Wr[zr]=xr/Xr&255,Xr*=256;return Wr}v.writeUintBE=Gr;function Ur(kr,xr,Wr,Jt){if(Wr===void 0&&(Wr=new Uint8Array(kr/8)),Jt===void 0&&(Jt=0),kr%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!k.isSafeInteger(xr))throw new Error("writeUintLE value must be an integer");for(var Xr=1,zr=Jt;zr256)throw new Error("randomString charset is too long");let cr="";const Br=me.length,$r=256-256%Br;for(;ye>0;){const Pr=ce(Math.ceil(ye*256/$r),Ee);for(let Or=0;Or0;Or++){const ur=Pr[Or];ur<$r&&(cr+=me.charAt(ur%Br),ye--)}(0,ae.wipe)(Pr)}return cr}v.randomString=ve;function pe(ye,me=le,Ee=v.defaultRandomSource){const cr=Math.ceil(ye/(Math.log(me.length)/Math.LN2));return ve(cr,me,Ee)}v.randomStringForEntropy=pe}}),require_sha512$1=__commonJS$1({"node_modules/@stablelib/sha512/lib/sha512.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_binary(),ie=require_wipe();v.DIGEST_LENGTH=64,v.BLOCK_SIZE=128;var ae=function(){function ve(){this.digestLength=v.DIGEST_LENGTH,this.blockSize=v.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return ve.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},ve.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},ve.prototype.clean=function(){ie.wipe(this._buffer),ie.wipe(this._tempHi),ie.wipe(this._tempLo),this.reset()},ve.prototype.update=function(pe,ye){if(ye===void 0&&(ye=pe.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var me=0;if(this._bytesHashed+=ye,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=pe[me++],ye--;this._bufferLength===this.blockSize&&(fe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(ye>=this.blockSize&&(me=fe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,pe,me,ye),ye%=this.blockSize);ye>0;)this._buffer[this._bufferLength++]=pe[me++],ye--;return this},ve.prototype.finish=function(pe){if(!this._finished){var ye=this._bytesHashed,me=this._bufferLength,Ee=ye/536870912|0,cr=ye<<3,Br=ye%128<112?128:256;this._buffer[me]=128;for(var $r=me+1;$r0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},ve.prototype.restoreState=function(pe){return this._stateHi.set(pe.stateHi),this._stateLo.set(pe.stateLo),this._bufferLength=pe.bufferLength,pe.buffer&&this._buffer.set(pe.buffer),this._bytesHashed=pe.bytesHashed,this._finished=!1,this},ve.prototype.cleanSavedState=function(pe){ie.wipe(pe.stateHi),ie.wipe(pe.stateLo),pe.buffer&&ie.wipe(pe.buffer),pe.bufferLength=0,pe.bytesHashed=0},ve}();v.SHA512=ae;var ce=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function fe(ve,pe,ye,me,Ee,cr,Br){for(var $r=ye[0],Pr=ye[1],Or=ye[2],ur=ye[3],jr=ye[4],Mr=ye[5],Lr=ye[6],Vr=ye[7],Gr=me[0],Ur=me[1],Qr=me[2],vn=me[3],Yt=me[4],fn=me[5],Xt=me[6],Qt=me[7],Kr,be,kr,xr,Wr,Jt,Xr,zr;Br>=128;){for(var Jr=0;Jr<16;Jr++){var Nr=8*Jr+cr;ve[Jr]=k.readUint32BE(Ee,Nr),pe[Jr]=k.readUint32BE(Ee,Nr+4)}for(var Jr=0;Jr<80;Jr++){var Hr=$r,On=Pr,Gn=Or,mn=ur,Nn=jr,In=Mr,bn=Lr,ii=Vr,hn=Gr,pn=Ur,Sn=Qr,Qn=vn,Jn=Yt,ui=fn,gi=Xt,di=Qt;if(Kr=Vr,be=Qt,Wr=be&65535,Jt=be>>>16,Xr=Kr&65535,zr=Kr>>>16,Kr=(jr>>>14|Yt<<32-14)^(jr>>>18|Yt<<32-18)^(Yt>>>41-32|jr<<32-(41-32)),be=(Yt>>>14|jr<<32-14)^(Yt>>>18|jr<<32-18)^(jr>>>41-32|Yt<<32-(41-32)),Wr+=be&65535,Jt+=be>>>16,Xr+=Kr&65535,zr+=Kr>>>16,Kr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>>>16,Jt+=Wr>>>16,Xr+=Jt>>>16,zr+=Xr>>>16,ye[7]=Vr=Xr&65535|zr<<16,me[7]=Qt=Wr&65535|Jt<<16,cr+=128,Br-=128}return cr}function le(ve){var pe=new ae;pe.update(ve);var ye=pe.digest();return pe.clean(),ye}v.hash=le}}),require_ed25519=__commonJS$1({"node_modules/@stablelib/ed25519/lib/ed25519.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.convertSecretKeyToX25519=v.convertPublicKeyToX25519=v.verify=v.sign=v.extractPublicKeyFromSecretKey=v.generateKeyPair=v.generateKeyPairFromSeed=v.SEED_LENGTH=v.SECRET_KEY_LENGTH=v.PUBLIC_KEY_LENGTH=v.SIGNATURE_LENGTH=void 0;var k=require_random(),ie=require_sha512$1(),ae=require_wipe();v.SIGNATURE_LENGTH=64,v.PUBLIC_KEY_LENGTH=32,v.SECRET_KEY_LENGTH=64,v.SEED_LENGTH=32;function ce(mn){const Nn=new Float64Array(16);if(mn)for(let In=0;In>16&1),In[pn-1]&=65535;In[15]=bn[15]-32767-(In[14]>>16&1);const hn=In[15]>>16&1;In[14]&=65535,Pr(bn,In,1-hn)}for(let ii=0;ii<16;ii++)mn[2*ii]=bn[ii]&255,mn[2*ii+1]=bn[ii]>>8}function ur(mn,Nn){let In=0;for(let bn=0;bn<32;bn++)In|=mn[bn]^Nn[bn];return(1&In-1>>>8)-1}function jr(mn,Nn){const In=new Uint8Array(32),bn=new Uint8Array(32);return Or(In,mn),Or(bn,Nn),ur(In,bn)}function Mr(mn){const Nn=new Uint8Array(32);return Or(Nn,mn),Nn[0]&1}function Lr(mn,Nn){for(let In=0;In<16;In++)mn[In]=Nn[2*In]+(Nn[2*In+1]<<8);mn[15]&=32767}function Vr(mn,Nn,In){for(let bn=0;bn<16;bn++)mn[bn]=Nn[bn]+In[bn]}function Gr(mn,Nn,In){for(let bn=0;bn<16;bn++)mn[bn]=Nn[bn]-In[bn]}function Ur(mn,Nn,In){let bn,ii,hn=0,pn=0,S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=38*Tn,Qn+=38*ei,Jn+=38*zn,ui+=38*gn,gi+=38*xn,di+=38*Hn,Ci+=38*Ln,yi+=38*ti,li+=38*oi,Pi+=38*Ei,Ai+=38*Ri,Oi+=38*Oo,to+=38*Ui,ii=1,bn=hn+ii+65535,ii=Math.floor(bn/65536),hn=bn-ii*65536,bn=pn+ii+65535,ii=Math.floor(bn/65536),pn=bn-ii*65536,bn=Sn+ii+65535,ii=Math.floor(bn/65536),Sn=bn-ii*65536,bn=Qn+ii+65535,ii=Math.floor(bn/65536),Qn=bn-ii*65536,bn=Jn+ii+65535,ii=Math.floor(bn/65536),Jn=bn-ii*65536,bn=ui+ii+65535,ii=Math.floor(bn/65536),ui=bn-ii*65536,bn=gi+ii+65535,ii=Math.floor(bn/65536),gi=bn-ii*65536,bn=di+ii+65535,ii=Math.floor(bn/65536),di=bn-ii*65536,bn=Ci+ii+65535,ii=Math.floor(bn/65536),Ci=bn-ii*65536,bn=yi+ii+65535,ii=Math.floor(bn/65536),yi=bn-ii*65536,bn=li+ii+65535,ii=Math.floor(bn/65536),li=bn-ii*65536,bn=Pi+ii+65535,ii=Math.floor(bn/65536),Pi=bn-ii*65536,bn=Ai+ii+65535,ii=Math.floor(bn/65536),Ai=bn-ii*65536,bn=Oi+ii+65535,ii=Math.floor(bn/65536),Oi=bn-ii*65536,bn=to+ii+65535,ii=Math.floor(bn/65536),to=bn-ii*65536,bn=En+ii+65535,ii=Math.floor(bn/65536),En=bn-ii*65536,hn+=ii-1+37*(ii-1),ii=1,bn=hn+ii+65535,ii=Math.floor(bn/65536),hn=bn-ii*65536,bn=pn+ii+65535,ii=Math.floor(bn/65536),pn=bn-ii*65536,bn=Sn+ii+65535,ii=Math.floor(bn/65536),Sn=bn-ii*65536,bn=Qn+ii+65535,ii=Math.floor(bn/65536),Qn=bn-ii*65536,bn=Jn+ii+65535,ii=Math.floor(bn/65536),Jn=bn-ii*65536,bn=ui+ii+65535,ii=Math.floor(bn/65536),ui=bn-ii*65536,bn=gi+ii+65535,ii=Math.floor(bn/65536),gi=bn-ii*65536,bn=di+ii+65535,ii=Math.floor(bn/65536),di=bn-ii*65536,bn=Ci+ii+65535,ii=Math.floor(bn/65536),Ci=bn-ii*65536,bn=yi+ii+65535,ii=Math.floor(bn/65536),yi=bn-ii*65536,bn=li+ii+65535,ii=Math.floor(bn/65536),li=bn-ii*65536,bn=Pi+ii+65535,ii=Math.floor(bn/65536),Pi=bn-ii*65536,bn=Ai+ii+65535,ii=Math.floor(bn/65536),Ai=bn-ii*65536,bn=Oi+ii+65535,ii=Math.floor(bn/65536),Oi=bn-ii*65536,bn=to+ii+65535,ii=Math.floor(bn/65536),to=bn-ii*65536,bn=En+ii+65535,ii=Math.floor(bn/65536),En=bn-ii*65536,hn+=ii-1+37*(ii-1),mn[0]=hn,mn[1]=pn,mn[2]=Sn,mn[3]=Qn,mn[4]=Jn,mn[5]=ui,mn[6]=gi,mn[7]=di,mn[8]=Ci,mn[9]=yi,mn[10]=li,mn[11]=Pi,mn[12]=Ai,mn[13]=Oi,mn[14]=to,mn[15]=En}function Qr(mn,Nn){Ur(mn,Nn,Nn)}function vn(mn,Nn){const In=ce();let bn;for(bn=0;bn<16;bn++)In[bn]=Nn[bn];for(bn=253;bn>=0;bn--)Qr(In,In),bn!==2&&bn!==4&&Ur(In,In,Nn);for(bn=0;bn<16;bn++)mn[bn]=In[bn]}function Yt(mn,Nn){const In=ce();let bn;for(bn=0;bn<16;bn++)In[bn]=Nn[bn];for(bn=250;bn>=0;bn--)Qr(In,In),bn!==1&&Ur(In,In,Nn);for(bn=0;bn<16;bn++)mn[bn]=In[bn]}function fn(mn,Nn){const In=ce(),bn=ce(),ii=ce(),hn=ce(),pn=ce(),Sn=ce(),Qn=ce(),Jn=ce(),ui=ce();Gr(In,mn[1],mn[0]),Gr(ui,Nn[1],Nn[0]),Ur(In,In,ui),Vr(bn,mn[0],mn[1]),Vr(ui,Nn[0],Nn[1]),Ur(bn,bn,ui),Ur(ii,mn[3],Nn[3]),Ur(ii,ii,ye),Ur(hn,mn[2],Nn[2]),Vr(hn,hn,hn),Gr(pn,bn,In),Gr(Sn,hn,ii),Vr(Qn,hn,ii),Vr(Jn,bn,In),Ur(mn[0],pn,Sn),Ur(mn[1],Jn,Qn),Ur(mn[2],Qn,Sn),Ur(mn[3],pn,Jn)}function Xt(mn,Nn,In){for(let bn=0;bn<4;bn++)Pr(mn[bn],Nn[bn],In)}function Qt(mn,Nn){const In=ce(),bn=ce(),ii=ce();vn(ii,Nn[2]),Ur(In,Nn[0],ii),Ur(bn,Nn[1],ii),Or(mn,bn),mn[31]^=Mr(In)<<7}function Kr(mn,Nn,In){Br(mn[0],le),Br(mn[1],ve),Br(mn[2],ve),Br(mn[3],le);for(let bn=255;bn>=0;--bn){const ii=In[bn/8|0]>>(bn&7)&1;Xt(mn,Nn,ii),fn(Nn,mn),fn(mn,mn),Xt(mn,Nn,ii)}}function be(mn,Nn){const In=[ce(),ce(),ce(),ce()];Br(In[0],me),Br(In[1],Ee),Br(In[2],ve),Ur(In[3],me,Ee),Kr(mn,In,Nn)}function kr(mn){if(mn.length!==v.SEED_LENGTH)throw new Error(`ed25519: seed must be ${v.SEED_LENGTH} bytes`);const Nn=(0,ie.hash)(mn);Nn[0]&=248,Nn[31]&=127,Nn[31]|=64;const In=new Uint8Array(32),bn=[ce(),ce(),ce(),ce()];be(bn,Nn),Qt(In,bn);const ii=new Uint8Array(64);return ii.set(mn),ii.set(In,32),{publicKey:In,secretKey:ii}}v.generateKeyPairFromSeed=kr;function xr(mn){const Nn=(0,k.randomBytes)(32,mn),In=kr(Nn);return(0,ae.wipe)(Nn),In}v.generateKeyPair=xr;function Wr(mn){if(mn.length!==v.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${v.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(mn.subarray(32))}v.extractPublicKeyFromSecretKey=Wr;var Jt=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Xr(mn,Nn){let In,bn,ii,hn;for(bn=63;bn>=32;--bn){for(In=0,ii=bn-32,hn=bn-12;ii>4)*Jt[ii],In=Nn[ii]>>8,Nn[ii]&=255;for(ii=0;ii<32;ii++)Nn[ii]-=In*Jt[ii];for(bn=0;bn<32;bn++)Nn[bn+1]+=Nn[bn]>>8,mn[bn]=Nn[bn]&255}function zr(mn){const Nn=new Float64Array(64);for(let In=0;In<64;In++)Nn[In]=mn[In];for(let In=0;In<64;In++)mn[In]=0;Xr(mn,Nn)}function Jr(mn,Nn){const In=new Float64Array(64),bn=[ce(),ce(),ce(),ce()],ii=(0,ie.hash)(mn.subarray(0,32));ii[0]&=248,ii[31]&=127,ii[31]|=64;const hn=new Uint8Array(64);hn.set(ii.subarray(32),32);const pn=new ie.SHA512;pn.update(hn.subarray(32)),pn.update(Nn);const Sn=pn.digest();pn.clean(),zr(Sn),be(bn,Sn),Qt(hn,bn),pn.reset(),pn.update(hn.subarray(0,32)),pn.update(mn.subarray(32)),pn.update(Nn);const Qn=pn.digest();zr(Qn);for(let Jn=0;Jn<32;Jn++)In[Jn]=Sn[Jn];for(let Jn=0;Jn<32;Jn++)for(let ui=0;ui<32;ui++)In[Jn+ui]+=Qn[Jn]*ii[ui];return Xr(hn.subarray(32),In),hn}v.sign=Jr;function Nr(mn,Nn){const In=ce(),bn=ce(),ii=ce(),hn=ce(),pn=ce(),Sn=ce(),Qn=ce();return Br(mn[2],ve),Lr(mn[1],Nn),Qr(ii,mn[1]),Ur(hn,ii,pe),Gr(ii,ii,mn[2]),Vr(hn,mn[2],hn),Qr(pn,hn),Qr(Sn,pn),Ur(Qn,Sn,pn),Ur(In,Qn,ii),Ur(In,In,hn),Yt(In,In),Ur(In,In,ii),Ur(In,In,hn),Ur(In,In,hn),Ur(mn[0],In,hn),Qr(bn,mn[0]),Ur(bn,bn,hn),jr(bn,ii)&&Ur(mn[0],mn[0],cr),Qr(bn,mn[0]),Ur(bn,bn,hn),jr(bn,ii)?-1:(Mr(mn[0])===Nn[31]>>7&&Gr(mn[0],le,mn[0]),Ur(mn[3],mn[0],mn[1]),0)}function Hr(mn,Nn,In){const bn=new Uint8Array(32),ii=[ce(),ce(),ce(),ce()],hn=[ce(),ce(),ce(),ce()];if(In.length!==v.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${v.SIGNATURE_LENGTH} bytes`);if(Nr(hn,mn))return!1;const pn=new ie.SHA512;pn.update(In.subarray(0,32)),pn.update(mn),pn.update(Nn);const Sn=pn.digest();return zr(Sn),Kr(ii,hn,Sn),be(hn,In.subarray(32)),fn(ii,hn),Qt(bn,ii),!ur(In,bn)}v.verify=Hr;function On(mn){let Nn=[ce(),ce(),ce(),ce()];if(Nr(Nn,mn))throw new Error("Ed25519: invalid public key");let In=ce(),bn=ce(),ii=Nn[1];Vr(In,ve,ii),Gr(bn,ve,ii),vn(bn,bn),Ur(In,In,bn);let hn=new Uint8Array(32);return Or(hn,In),hn}v.convertPublicKeyToX25519=On;function Gn(mn){const Nn=(0,ie.hash)(mn.subarray(0,32));Nn[0]&=248,Nn[31]&=127,Nn[31]|=64;const In=new Uint8Array(Nn.subarray(0,32));return(0,ae.wipe)(Nn),In}v.convertSecretKeyToX25519=Gn}}),require_chacha=__commonJS$1({"node_modules/@stablelib/chacha/lib/chacha.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_binary(),ie=require_wipe(),ae=20;function ce(pe,ye,me){for(var Ee=1634760805,cr=857760878,Br=2036477234,$r=1797285236,Pr=me[3]<<24|me[2]<<16|me[1]<<8|me[0],Or=me[7]<<24|me[6]<<16|me[5]<<8|me[4],ur=me[11]<<24|me[10]<<16|me[9]<<8|me[8],jr=me[15]<<24|me[14]<<16|me[13]<<8|me[12],Mr=me[19]<<24|me[18]<<16|me[17]<<8|me[16],Lr=me[23]<<24|me[22]<<16|me[21]<<8|me[20],Vr=me[27]<<24|me[26]<<16|me[25]<<8|me[24],Gr=me[31]<<24|me[30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Jr,xr=xr>>>32-12|xr<<12,Qt=Qt+Wr|0,Hr^=Qt,Hr=Hr>>>32-16|Hr<<16,Jt=Jt+Hr|0,Wr^=Jt,Wr=Wr>>>32-12|Wr<<12,Kr=Kr+be|0,On^=Kr,On=On>>>32-16|On<<16,Xr=Xr+On|0,be^=Xr,be=be>>>32-12|be<<12,Qt=Qt+Wr|0,Hr^=Qt,Hr=Hr>>>32-8|Hr<<8,Jt=Jt+Hr|0,Wr^=Jt,Wr=Wr>>>32-7|Wr<<7,Kr=Kr+be|0,On^=Kr,On=On>>>32-8|On<<8,Xr=Xr+On|0,be^=Xr,be=be>>>32-7|be<<7,Xt=Xt+xr|0,Nr^=Xt,Nr=Nr>>>32-8|Nr<<8,Jr=Jr+Nr|0,xr^=Jr,xr=xr>>>32-7|xr<<7,fn=fn+kr|0,Gn^=fn,Gn=Gn>>>32-8|Gn<<8,zr=zr+Gn|0,kr^=zr,kr=kr>>>32-7|kr<<7;k.writeUint32LE(fn+Ee|0,pe,0),k.writeUint32LE(Xt+cr|0,pe,4),k.writeUint32LE(Qt+Br|0,pe,8),k.writeUint32LE(Kr+$r|0,pe,12),k.writeUint32LE(be+Pr|0,pe,16),k.writeUint32LE(kr+Or|0,pe,20),k.writeUint32LE(xr+ur|0,pe,24),k.writeUint32LE(Wr+jr|0,pe,28),k.writeUint32LE(Jt+Mr|0,pe,32),k.writeUint32LE(Xr+Lr|0,pe,36),k.writeUint32LE(zr+Vr|0,pe,40),k.writeUint32LE(Jr+Gr|0,pe,44),k.writeUint32LE(Nr+Ur|0,pe,48),k.writeUint32LE(Hr+Qr|0,pe,52),k.writeUint32LE(On+vn|0,pe,56),k.writeUint32LE(Gn+Yt|0,pe,60)}function fe(pe,ye,me,Ee,cr){if(cr===void 0&&(cr=0),pe.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(Ee.length>>=8,ye++;if(Ee>0)throw new Error("ChaCha: counter overflow")}}}),require_constant_time=__commonJS$1({"node_modules/@stablelib/constant-time/lib/constant-time.js"(v){Object.defineProperty(v,"__esModule",{value:!0});function k(fe,le,ve){return~(fe-1)&le|fe-1&ve}v.select=k;function ie(fe,le){return(fe|0)-(le|0)-1>>>31&1}v.lessOrEqual=ie;function ae(fe,le){if(fe.length!==le.length)return 0;for(var ve=0,pe=0;pe>>8}v.compare=ae;function ce(fe,le){return fe.length===0||le.length===0?!1:ae(fe,le)!==0}v.equal=ce}}),require_poly1305=__commonJS$1({"node_modules/@stablelib/poly1305/lib/poly1305.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_constant_time(),ie=require_wipe();v.DIGEST_LENGTH=16;var ae=function(){function le(ve){this.digestLength=v.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var pe=ve[0]|ve[1]<<8;this._r[0]=pe&8191;var ye=ve[2]|ve[3]<<8;this._r[1]=(pe>>>13|ye<<3)&8191;var me=ve[4]|ve[5]<<8;this._r[2]=(ye>>>10|me<<6)&7939;var Ee=ve[6]|ve[7]<<8;this._r[3]=(me>>>7|Ee<<9)&8191;var cr=ve[8]|ve[9]<<8;this._r[4]=(Ee>>>4|cr<<12)&255,this._r[5]=cr>>>1&8190;var Br=ve[10]|ve[11]<<8;this._r[6]=(cr>>>14|Br<<2)&8191;var $r=ve[12]|ve[13]<<8;this._r[7]=(Br>>>11|$r<<5)&8065;var Pr=ve[14]|ve[15]<<8;this._r[8]=($r>>>8|Pr<<8)&8191,this._r[9]=Pr>>>5&127,this._pad[0]=ve[16]|ve[17]<<8,this._pad[1]=ve[18]|ve[19]<<8,this._pad[2]=ve[20]|ve[21]<<8,this._pad[3]=ve[22]|ve[23]<<8,this._pad[4]=ve[24]|ve[25]<<8,this._pad[5]=ve[26]|ve[27]<<8,this._pad[6]=ve[28]|ve[29]<<8,this._pad[7]=ve[30]|ve[31]<<8}return le.prototype._blocks=function(ve,pe,ye){for(var me=this._fin?0:2048,Ee=this._h[0],cr=this._h[1],Br=this._h[2],$r=this._h[3],Pr=this._h[4],Or=this._h[5],ur=this._h[6],jr=this._h[7],Mr=this._h[8],Lr=this._h[9],Vr=this._r[0],Gr=this._r[1],Ur=this._r[2],Qr=this._r[3],vn=this._r[4],Yt=this._r[5],fn=this._r[6],Xt=this._r[7],Qt=this._r[8],Kr=this._r[9];ye>=16;){var be=ve[pe+0]|ve[pe+1]<<8;Ee+=be&8191;var kr=ve[pe+2]|ve[pe+3]<<8;cr+=(be>>>13|kr<<3)&8191;var xr=ve[pe+4]|ve[pe+5]<<8;Br+=(kr>>>10|xr<<6)&8191;var Wr=ve[pe+6]|ve[pe+7]<<8;$r+=(xr>>>7|Wr<<9)&8191;var Jt=ve[pe+8]|ve[pe+9]<<8;Pr+=(Wr>>>4|Jt<<12)&8191,Or+=Jt>>>1&8191;var Xr=ve[pe+10]|ve[pe+11]<<8;ur+=(Jt>>>14|Xr<<2)&8191;var zr=ve[pe+12]|ve[pe+13]<<8;jr+=(Xr>>>11|zr<<5)&8191;var Jr=ve[pe+14]|ve[pe+15]<<8;Mr+=(zr>>>8|Jr<<8)&8191,Lr+=Jr>>>5|me;var Nr=0,Hr=Nr;Hr+=Ee*Vr,Hr+=cr*(5*Kr),Hr+=Br*(5*Qt),Hr+=$r*(5*Xt),Hr+=Pr*(5*fn),Nr=Hr>>>13,Hr&=8191,Hr+=Or*(5*Yt),Hr+=ur*(5*vn),Hr+=jr*(5*Qr),Hr+=Mr*(5*Ur),Hr+=Lr*(5*Gr),Nr+=Hr>>>13,Hr&=8191;var On=Nr;On+=Ee*Gr,On+=cr*Vr,On+=Br*(5*Kr),On+=$r*(5*Qt),On+=Pr*(5*Xt),Nr=On>>>13,On&=8191,On+=Or*(5*fn),On+=ur*(5*Yt),On+=jr*(5*vn),On+=Mr*(5*Qr),On+=Lr*(5*Ur),Nr+=On>>>13,On&=8191;var Gn=Nr;Gn+=Ee*Ur,Gn+=cr*Gr,Gn+=Br*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xt,hn+=Br*fn,hn+=$r*Yt,hn+=Pr*vn,Nr=hn>>>13,hn&=8191,hn+=Or*Qr,hn+=ur*Ur,hn+=jr*Gr,hn+=Mr*Vr,hn+=Lr*(5*Kr),Nr+=hn>>>13,hn&=8191;var pn=Nr;pn+=Ee*Kr,pn+=cr*Qt,pn+=Br*Xt,pn+=$r*fn,pn+=Pr*Yt,Nr=pn>>>13,pn&=8191,pn+=Or*vn,pn+=ur*Qr,pn+=jr*Ur,pn+=Mr*Gr,pn+=Lr*Vr,Nr+=pn>>>13,pn&=8191,Nr=(Nr<<2)+Nr|0,Nr=Nr+Hr|0,Hr=Nr&8191,Nr=Nr>>>13,On+=Nr,Ee=Hr,cr=On,Br=Gn,$r=mn,Pr=Nn,Or=In,ur=bn,jr=ii,Mr=hn,Lr=pn,pe+=16,ye-=16}this._h[0]=Ee,this._h[1]=cr,this._h[2]=Br,this._h[3]=$r,this._h[4]=Pr,this._h[5]=Or,this._h[6]=ur,this._h[7]=jr,this._h[8]=Mr,this._h[9]=Lr},le.prototype.finish=function(ve,pe){pe===void 0&&(pe=0);var ye=new Uint16Array(10),me,Ee,cr,Br;if(this._leftover){for(Br=this._leftover,this._buffer[Br++]=1;Br<16;Br++)this._buffer[Br]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(me=this._h[1]>>>13,this._h[1]&=8191,Br=2;Br<10;Br++)this._h[Br]+=me,me=this._h[Br]>>>13,this._h[Br]&=8191;for(this._h[0]+=me*5,me=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=me,me=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=me,ye[0]=this._h[0]+5,me=ye[0]>>>13,ye[0]&=8191,Br=1;Br<10;Br++)ye[Br]=this._h[Br]+me,me=ye[Br]>>>13,ye[Br]&=8191;for(ye[9]-=1<<13,Ee=(me^1)-1,Br=0;Br<10;Br++)ye[Br]&=Ee;for(Ee=~Ee,Br=0;Br<10;Br++)this._h[Br]=this._h[Br]&Ee|ye[Br];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,cr=this._h[0]+this._pad[0],this._h[0]=cr&65535,Br=1;Br<8;Br++)cr=(this._h[Br]+this._pad[Br]|0)+(cr>>>16)|0,this._h[Br]=cr&65535;return ve[pe+0]=this._h[0]>>>0,ve[pe+1]=this._h[0]>>>8,ve[pe+2]=this._h[1]>>>0,ve[pe+3]=this._h[1]>>>8,ve[pe+4]=this._h[2]>>>0,ve[pe+5]=this._h[2]>>>8,ve[pe+6]=this._h[3]>>>0,ve[pe+7]=this._h[3]>>>8,ve[pe+8]=this._h[4]>>>0,ve[pe+9]=this._h[4]>>>8,ve[pe+10]=this._h[5]>>>0,ve[pe+11]=this._h[5]>>>8,ve[pe+12]=this._h[6]>>>0,ve[pe+13]=this._h[6]>>>8,ve[pe+14]=this._h[7]>>>0,ve[pe+15]=this._h[7]>>>8,this._finished=!0,this},le.prototype.update=function(ve){var pe=0,ye=ve.length,me;if(this._leftover){me=16-this._leftover,me>ye&&(me=ye);for(var Ee=0;Ee=16&&(me=ye-ye%16,this._blocks(ve,pe,me),pe+=me,ye-=me),ye){for(var Ee=0;Ee16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var Br=new Uint8Array(16);Br.set(ye,Br.length-ye.length);var $r=new Uint8Array(32);k.stream(this._key,Br,$r,4);var Pr=me.length+this.tagLength,Or;if(cr){if(cr.length!==Pr)throw new Error("ChaCha20Poly1305: incorrect destination length");Or=cr}else Or=new Uint8Array(Pr);return k.streamXOR(this._key,Br,me,Or,4),this._authenticate(Or.subarray(Or.length-this.tagLength,Or.length),$r,Or.subarray(0,Or.length-this.tagLength),Ee),ae.wipe(Br),Or},pe.prototype.open=function(ye,me,Ee,cr){if(ye.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(me.length0&&Br.update(le.subarray(cr.length%16))),Br.update(Ee),Ee.length%16>0&&Br.update(le.subarray(Ee.length%16));var $r=new Uint8Array(8);cr&&ce.writeUint64LE(cr.length,$r),Br.update($r),ce.writeUint64LE(Ee.length,$r),Br.update($r);for(var Pr=Br.digest(),Or=0;Orthis.blockSize?this._inner.update(pe).finish(ye).clean():ye.set(pe);for(var me=0;me1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},ce.prototype.expand=function(fe){for(var le=new Uint8Array(fe),ve=0;ve0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=pe[me++],ye--;this._bufferLength===this.blockSize&&(fe(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(ye>=this.blockSize&&(me=fe(this._temp,this._state,pe,me,ye),ye%=this.blockSize);ye>0;)this._buffer[this._bufferLength++]=pe[me++],ye--;return this},ve.prototype.finish=function(pe){if(!this._finished){var ye=this._bytesHashed,me=this._bufferLength,Ee=ye/536870912|0,cr=ye<<3,Br=ye%64<56?64:128;this._buffer[me]=128;for(var $r=me+1;$r0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},ve.prototype.restoreState=function(pe){return this._state.set(pe.state),this._bufferLength=pe.bufferLength,pe.buffer&&this._buffer.set(pe.buffer),this._bytesHashed=pe.bytesHashed,this._finished=!1,this},ve.prototype.cleanSavedState=function(pe){ie.wipe(pe.state),pe.buffer&&ie.wipe(pe.buffer),pe.bufferLength=0,pe.bytesHashed=0},ve}();v.SHA256=ae;var ce=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function fe(ve,pe,ye,me,Ee){for(;Ee>=64;){for(var cr=pe[0],Br=pe[1],$r=pe[2],Pr=pe[3],Or=pe[4],ur=pe[5],jr=pe[6],Mr=pe[7],Lr=0;Lr<16;Lr++){var Vr=me+Lr*4;ve[Lr]=k.readUint32BE(ye,Vr)}for(var Lr=16;Lr<64;Lr++){var Gr=ve[Lr-2],Ur=(Gr>>>17|Gr<<32-17)^(Gr>>>19|Gr<<32-19)^Gr>>>10;Gr=ve[Lr-15];var Qr=(Gr>>>7|Gr<<32-7)^(Gr>>>18|Gr<<32-18)^Gr>>>3;ve[Lr]=(Ur+ve[Lr-7]|0)+(Qr+ve[Lr-16]|0)}for(var Lr=0;Lr<64;Lr++){var Ur=(((Or>>>6|Or<<26)^(Or>>>11|Or<<21)^(Or>>>25|Or<<7))+(Or&ur^~Or&jr)|0)+(Mr+(ce[Lr]+ve[Lr]|0)|0)|0,Qr=((cr>>>2|cr<<32-2)^(cr>>>13|cr<<32-13)^(cr>>>22|cr<<32-22))+(cr&Br^cr&$r^Br&$r)|0;Mr=jr,jr=ur,ur=Or,Or=Pr+Ur|0,Pr=$r,$r=Br,Br=cr,cr=Ur+Qr|0}pe[0]+=cr,pe[1]+=Br,pe[2]+=$r,pe[3]+=Pr,pe[4]+=Or,pe[5]+=ur,pe[6]+=jr,pe[7]+=Mr,me+=64,Ee-=64}return me}function le(ve){var pe=new ae;pe.update(ve);var ye=pe.digest();return pe.clean(),ye}v.hash=le}}),require_x25519=__commonJS$1({"node_modules/@stablelib/x25519/lib/x25519.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.sharedKey=v.generateKeyPair=v.generateKeyPairFromSeed=v.scalarMultBase=v.scalarMult=v.SHARED_KEY_LENGTH=v.SECRET_KEY_LENGTH=v.PUBLIC_KEY_LENGTH=void 0;var k=require_random(),ie=require_wipe();v.PUBLIC_KEY_LENGTH=32,v.SECRET_KEY_LENGTH=32,v.SHARED_KEY_LENGTH=32;function ae(Lr){const Vr=new Float64Array(16);if(Lr)for(let Gr=0;Gr>16&1),Gr[Yt-1]&=65535;Gr[15]=Ur[15]-32767-(Gr[14]>>16&1);const vn=Gr[15]>>16&1;Gr[14]&=65535,ve(Ur,Gr,1-vn)}for(let Qr=0;Qr<16;Qr++)Lr[2*Qr]=Ur[Qr]&255,Lr[2*Qr+1]=Ur[Qr]>>8}function ye(Lr,Vr){for(let Gr=0;Gr<16;Gr++)Lr[Gr]=Vr[2*Gr]+(Vr[2*Gr+1]<<8);Lr[15]&=32767}function me(Lr,Vr,Gr){for(let Ur=0;Ur<16;Ur++)Lr[Ur]=Vr[Ur]+Gr[Ur]}function Ee(Lr,Vr,Gr){for(let Ur=0;Ur<16;Ur++)Lr[Ur]=Vr[Ur]-Gr[Ur]}function cr(Lr,Vr,Gr){let Ur,Qr,vn=0,Yt=0,fn=0,Xt=0,Qt=0,Kr=0,be=0,kr=0,xr=0,Wr=0,Jt=0,Xr=0,zr=0,Jr=0,Nr=0,Hr=0,On=0,Gn=0,mn=0,Nn=0,In=0,bn=0,ii=0,hn=0,pn=0,Sn=0,Qn=0,Jn=0,ui=0,gi=0,di=0,Ci=Gr[0],yi=Gr[1],li=Gr[2],Pi=Gr[3],Ai=Gr[4],Oi=Gr[5],to=Gr[6],En=Gr[7],Bt=Gr[8],Zt=Gr[9],Tn=Gr[10],ei=Gr[11],zn=Gr[12],gn=Gr[13],xn=Gr[14],Hn=Gr[15];Ur=Vr[0],vn+=Ur*Ci,Yt+=Ur*yi,fn+=Ur*li,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+=Ur*zn,ui+=Ur*gn,gi+=Ur*xn,di+=Ur*Hn,vn+=38*On,Yt+=38*Gn,fn+=38*mn,Xt+=38*Nn,Qt+=38*In,Kr+=38*bn,be+=38*ii,kr+=38*hn,xr+=38*pn,Wr+=38*Sn,Jt+=38*Qn,Xr+=38*Jn,zr+=38*ui,Jr+=38*gi,Nr+=38*di,Qr=1,Ur=vn+Qr+65535,Qr=Math.floor(Ur/65536),vn=Ur-Qr*65536,Ur=Yt+Qr+65535,Qr=Math.floor(Ur/65536),Yt=Ur-Qr*65536,Ur=fn+Qr+65535,Qr=Math.floor(Ur/65536),fn=Ur-Qr*65536,Ur=Xt+Qr+65535,Qr=Math.floor(Ur/65536),Xt=Ur-Qr*65536,Ur=Qt+Qr+65535,Qr=Math.floor(Ur/65536),Qt=Ur-Qr*65536,Ur=Kr+Qr+65535,Qr=Math.floor(Ur/65536),Kr=Ur-Qr*65536,Ur=be+Qr+65535,Qr=Math.floor(Ur/65536),be=Ur-Qr*65536,Ur=kr+Qr+65535,Qr=Math.floor(Ur/65536),kr=Ur-Qr*65536,Ur=xr+Qr+65535,Qr=Math.floor(Ur/65536),xr=Ur-Qr*65536,Ur=Wr+Qr+65535,Qr=Math.floor(Ur/65536),Wr=Ur-Qr*65536,Ur=Jt+Qr+65535,Qr=Math.floor(Ur/65536),Jt=Ur-Qr*65536,Ur=Xr+Qr+65535,Qr=Math.floor(Ur/65536),Xr=Ur-Qr*65536,Ur=zr+Qr+65535,Qr=Math.floor(Ur/65536),zr=Ur-Qr*65536,Ur=Jr+Qr+65535,Qr=Math.floor(Ur/65536),Jr=Ur-Qr*65536,Ur=Nr+Qr+65535,Qr=Math.floor(Ur/65536),Nr=Ur-Qr*65536,Ur=Hr+Qr+65535,Qr=Math.floor(Ur/65536),Hr=Ur-Qr*65536,vn+=Qr-1+37*(Qr-1),Qr=1,Ur=vn+Qr+65535,Qr=Math.floor(Ur/65536),vn=Ur-Qr*65536,Ur=Yt+Qr+65535,Qr=Math.floor(Ur/65536),Yt=Ur-Qr*65536,Ur=fn+Qr+65535,Qr=Math.floor(Ur/65536),fn=Ur-Qr*65536,Ur=Xt+Qr+65535,Qr=Math.floor(Ur/65536),Xt=Ur-Qr*65536,Ur=Qt+Qr+65535,Qr=Math.floor(Ur/65536),Qt=Ur-Qr*65536,Ur=Kr+Qr+65535,Qr=Math.floor(Ur/65536),Kr=Ur-Qr*65536,Ur=be+Qr+65535,Qr=Math.floor(Ur/65536),be=Ur-Qr*65536,Ur=kr+Qr+65535,Qr=Math.floor(Ur/65536),kr=Ur-Qr*65536,Ur=xr+Qr+65535,Qr=Math.floor(Ur/65536),xr=Ur-Qr*65536,Ur=Wr+Qr+65535,Qr=Math.floor(Ur/65536),Wr=Ur-Qr*65536,Ur=Jt+Qr+65535,Qr=Math.floor(Ur/65536),Jt=Ur-Qr*65536,Ur=Xr+Qr+65535,Qr=Math.floor(Ur/65536),Xr=Ur-Qr*65536,Ur=zr+Qr+65535,Qr=Math.floor(Ur/65536),zr=Ur-Qr*65536,Ur=Jr+Qr+65535,Qr=Math.floor(Ur/65536),Jr=Ur-Qr*65536,Ur=Nr+Qr+65535,Qr=Math.floor(Ur/65536),Nr=Ur-Qr*65536,Ur=Hr+Qr+65535,Qr=Math.floor(Ur/65536),Hr=Ur-Qr*65536,vn+=Qr-1+37*(Qr-1),Lr[0]=vn,Lr[1]=Yt,Lr[2]=fn,Lr[3]=Xt,Lr[4]=Qt,Lr[5]=Kr,Lr[6]=be,Lr[7]=kr,Lr[8]=xr,Lr[9]=Wr,Lr[10]=Jt,Lr[11]=Xr,Lr[12]=zr,Lr[13]=Jr,Lr[14]=Nr,Lr[15]=Hr}function Br(Lr,Vr){cr(Lr,Vr,Vr)}function $r(Lr,Vr){const Gr=ae();for(let Ur=0;Ur<16;Ur++)Gr[Ur]=Vr[Ur];for(let Ur=253;Ur>=0;Ur--)Br(Gr,Gr),Ur!==2&&Ur!==4&&cr(Gr,Gr,Vr);for(let Ur=0;Ur<16;Ur++)Lr[Ur]=Gr[Ur]}function Pr(Lr,Vr){const Gr=new Uint8Array(32),Ur=new Float64Array(80),Qr=ae(),vn=ae(),Yt=ae(),fn=ae(),Xt=ae(),Qt=ae();for(let xr=0;xr<31;xr++)Gr[xr]=Lr[xr];Gr[31]=Lr[31]&127|64,Gr[0]&=248,ye(Ur,Vr);for(let xr=0;xr<16;xr++)vn[xr]=Ur[xr];Qr[0]=fn[0]=1;for(let xr=254;xr>=0;--xr){const Wr=Gr[xr>>>3]>>>(xr&7)&1;ve(Qr,vn,Wr),ve(Yt,fn,Wr),me(Xt,Qr,Yt),Ee(Qr,Qr,Yt),me(Yt,vn,fn),Ee(vn,vn,fn),Br(fn,Xt),Br(Qt,Qr),cr(Qr,Yt,Qr),cr(Yt,vn,Xt),me(Xt,Qr,Yt),Ee(Qr,Qr,Yt),Br(vn,Qr),Ee(Yt,fn,Qt),cr(Qr,Yt,fe),me(Qr,Qr,fn),cr(Yt,Yt,Qr),cr(Qr,fn,Qt),cr(fn,vn,Ur),Br(vn,Xt),ve(Qr,vn,Wr),ve(Yt,fn,Wr)}for(let xr=0;xr<16;xr++)Ur[xr+16]=Qr[xr],Ur[xr+32]=Yt[xr],Ur[xr+48]=vn[xr],Ur[xr+64]=fn[xr];const Kr=Ur.subarray(32),be=Ur.subarray(16);$r(Kr,Kr),cr(be,be,Kr);const kr=new Uint8Array(32);return pe(kr,be),kr}v.scalarMult=Pr;function Or(Lr){return Pr(Lr,ce)}v.scalarMultBase=Or;function ur(Lr){if(Lr.length!==v.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${v.SECRET_KEY_LENGTH} bytes`);const Vr=new Uint8Array(Lr);return{publicKey:Or(Vr),secretKey:Vr}}v.generateKeyPairFromSeed=ur;function jr(Lr){const Vr=(0,k.randomBytes)(32,Lr),Gr=ur(Vr);return(0,ie.wipe)(Vr),Gr}v.generateKeyPair=jr;function Mr(Lr,Vr,Gr=!1){if(Lr.length!==v.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(Vr.length!==v.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const Ur=Pr(Lr,Vr);if(Gr){let Qr=0;for(let vn=0;vn-1){const Mr=ur.getAttribute("href");if(Mr)if(Mr.toLowerCase().indexOf("https:")===-1&&Mr.toLowerCase().indexOf("http:")===-1&&Mr.indexOf("//")!==0){let Lr=ce.protocol+"//"+ce.host;if(Mr.indexOf("/")===0)Lr+=Mr;else{const Vr=ce.pathname.split("/");Vr.pop(),Lr+=Vr.join("/")+"/"+Mr}Pr.push(Lr)}else if(Mr.indexOf("//")===0){const Lr=ce.protocol+Mr;Pr.push(Lr)}else Pr.push(Mr)}}return Pr}function le(...$r){const Pr=ae.getElementsByTagName("meta");for(let Or=0;Orur.getAttribute(Mr)).filter(Mr=>Mr?$r.includes(Mr):!1);if(jr.length&&jr){const Mr=ur.getAttribute("content");if(Mr)return Mr}}return""}function ve(){let $r=le("name","og:site_name","og:title","twitter:title");return $r||($r=ae.title),$r}function pe(){return le("description","og:description","twitter:description","keywords")}const ye=ve(),me=pe(),Ee=ce.origin,cr=fe();return{description:me,url:Ee,icons:cr,name:ye}}v.getWindowMetadata=ie}}),require_decode_uri_component=__commonJS$1({"node_modules/@walletconnect/utils/node_modules/decode-uri-component/index.js"(v,k){var ie="%[a-f0-9]{2}",ae=new RegExp("("+ie+")|([^%]+?)","gi"),ce=new RegExp("("+ie+")+","gi");function fe(pe,ye){try{return[decodeURIComponent(pe.join(""))]}catch{}if(pe.length===1)return pe;ye=ye||1;var me=pe.slice(0,ye),Ee=pe.slice(ye);return Array.prototype.concat.call([],fe(me),fe(Ee))}function le(pe){try{return decodeURIComponent(pe)}catch{for(var ye=pe.match(ae)||[],me=1;mejr==null,le=Symbol("encodeFragmentIdentifier");function ve(jr){switch(jr.arrayFormat){case"index":return Mr=>(Lr,Vr)=>{const Gr=Lr.length;return Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,[me(Mr,jr),"[",Gr,"]"].join("")]:[...Lr,[me(Mr,jr),"[",me(Gr,jr),"]=",me(Vr,jr)].join("")]};case"bracket":return Mr=>(Lr,Vr)=>Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,[me(Mr,jr),"[]"].join("")]:[...Lr,[me(Mr,jr),"[]=",me(Vr,jr)].join("")];case"colon-list-separator":return Mr=>(Lr,Vr)=>Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,[me(Mr,jr),":list="].join("")]:[...Lr,[me(Mr,jr),":list=",me(Vr,jr)].join("")];case"comma":case"separator":case"bracket-separator":{const Mr=jr.arrayFormat==="bracket-separator"?"[]=":"=";return Lr=>(Vr,Gr)=>Gr===void 0||jr.skipNull&&Gr===null||jr.skipEmptyString&&Gr===""?Vr:(Gr=Gr===null?"":Gr,Vr.length===0?[[me(Lr,jr),Mr,me(Gr,jr)].join("")]:[[Vr,me(Gr,jr)].join(jr.arrayFormatSeparator)])}default:return Mr=>(Lr,Vr)=>Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,me(Mr,jr)]:[...Lr,[me(Mr,jr),"=",me(Vr,jr)].join("")]}}function pe(jr){let Mr;switch(jr.arrayFormat){case"index":return(Lr,Vr,Gr)=>{if(Mr=/\[(\d*)\]$/.exec(Lr),Lr=Lr.replace(/\[\d*\]$/,""),!Mr){Gr[Lr]=Vr;return}Gr[Lr]===void 0&&(Gr[Lr]={}),Gr[Lr][Mr[1]]=Vr};case"bracket":return(Lr,Vr,Gr)=>{if(Mr=/(\[\])$/.exec(Lr),Lr=Lr.replace(/\[\]$/,""),!Mr){Gr[Lr]=Vr;return}if(Gr[Lr]===void 0){Gr[Lr]=[Vr];return}Gr[Lr]=[].concat(Gr[Lr],Vr)};case"colon-list-separator":return(Lr,Vr,Gr)=>{if(Mr=/(:list)$/.exec(Lr),Lr=Lr.replace(/:list$/,""),!Mr){Gr[Lr]=Vr;return}if(Gr[Lr]===void 0){Gr[Lr]=[Vr];return}Gr[Lr]=[].concat(Gr[Lr],Vr)};case"comma":case"separator":return(Lr,Vr,Gr)=>{const Ur=typeof Vr=="string"&&Vr.includes(jr.arrayFormatSeparator),Qr=typeof Vr=="string"&&!Ur&&Ee(Vr,jr).includes(jr.arrayFormatSeparator);Vr=Qr?Ee(Vr,jr):Vr;const vn=Ur||Qr?Vr.split(jr.arrayFormatSeparator).map(Yt=>Ee(Yt,jr)):Vr===null?Vr:Ee(Vr,jr);Gr[Lr]=vn};case"bracket-separator":return(Lr,Vr,Gr)=>{const Ur=/(\[\])$/.test(Lr);if(Lr=Lr.replace(/\[\]$/,""),!Ur){Gr[Lr]=Vr&&Ee(Vr,jr);return}const Qr=Vr===null?[]:Vr.split(jr.arrayFormatSeparator).map(vn=>Ee(vn,jr));if(Gr[Lr]===void 0){Gr[Lr]=Qr;return}Gr[Lr]=[].concat(Gr[Lr],Qr)};default:return(Lr,Vr,Gr)=>{if(Gr[Lr]===void 0){Gr[Lr]=Vr;return}Gr[Lr]=[].concat(Gr[Lr],Vr)}}}function ye(jr){if(typeof jr!="string"||jr.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function me(jr,Mr){return Mr.encode?Mr.strict?k(jr):encodeURIComponent(jr):jr}function Ee(jr,Mr){return Mr.decode?ie(jr):jr}function cr(jr){return Array.isArray(jr)?jr.sort():typeof jr=="object"?cr(Object.keys(jr)).sort((Mr,Lr)=>Number(Mr)-Number(Lr)).map(Mr=>jr[Mr]):jr}function Br(jr){const Mr=jr.indexOf("#");return Mr!==-1&&(jr=jr.slice(0,Mr)),jr}function $r(jr){let Mr="";const Lr=jr.indexOf("#");return Lr!==-1&&(Mr=jr.slice(Lr)),Mr}function Pr(jr){jr=Br(jr);const Mr=jr.indexOf("?");return Mr===-1?"":jr.slice(Mr+1)}function Or(jr,Mr){return Mr.parseNumbers&&!Number.isNaN(Number(jr))&&typeof jr=="string"&&jr.trim()!==""?jr=Number(jr):Mr.parseBooleans&&jr!==null&&(jr.toLowerCase()==="true"||jr.toLowerCase()==="false")&&(jr=jr.toLowerCase()==="true"),jr}function ur(jr,Mr){Mr=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},Mr),ye(Mr.arrayFormatSeparator);const Lr=pe(Mr),Vr=Object.create(null);if(typeof jr!="string"||(jr=jr.trim().replace(/^[?#&]/,""),!jr))return Vr;for(const Gr of jr.split("&")){if(Gr==="")continue;let[Ur,Qr]=ae(Mr.decode?Gr.replace(/\+/g," "):Gr,"=");Qr=Qr===void 0?null:["comma","separator","bracket-separator"].includes(Mr.arrayFormat)?Qr:Ee(Qr,Mr),Lr(Ee(Ur,Mr),Qr,Vr)}for(const Gr of Object.keys(Vr)){const Ur=Vr[Gr];if(typeof Ur=="object"&&Ur!==null)for(const Qr of Object.keys(Ur))Ur[Qr]=Or(Ur[Qr],Mr);else Vr[Gr]=Or(Ur,Mr)}return Mr.sort===!1?Vr:(Mr.sort===!0?Object.keys(Vr).sort():Object.keys(Vr).sort(Mr.sort)).reduce((Gr,Ur)=>{const Qr=Vr[Ur];return Boolean(Qr)&&typeof Qr=="object"&&!Array.isArray(Qr)?Gr[Ur]=cr(Qr):Gr[Ur]=Qr,Gr},Object.create(null))}v.extract=Pr,v.parse=ur,v.stringify=(jr,Mr)=>{if(!jr)return"";Mr=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},Mr),ye(Mr.arrayFormatSeparator);const Lr=Qr=>Mr.skipNull&&fe(jr[Qr])||Mr.skipEmptyString&&jr[Qr]==="",Vr=ve(Mr),Gr={};for(const Qr of Object.keys(jr))Lr(Qr)||(Gr[Qr]=jr[Qr]);const Ur=Object.keys(Gr);return Mr.sort!==!1&&Ur.sort(Mr.sort),Ur.map(Qr=>{const vn=jr[Qr];return vn===void 0?"":vn===null?me(Qr,Mr):Array.isArray(vn)?vn.length===0&&Mr.arrayFormat==="bracket-separator"?me(Qr,Mr)+"[]":vn.reduce(Vr(Qr),[]).join("&"):me(Qr,Mr)+"="+me(vn,Mr)}).filter(Qr=>Qr.length>0).join("&")},v.parseUrl=(jr,Mr)=>{Mr=Object.assign({decode:!0},Mr);const[Lr,Vr]=ae(jr,"#");return Object.assign({url:Lr.split("?")[0]||"",query:ur(Pr(jr),Mr)},Mr&&Mr.parseFragmentIdentifier&&Vr?{fragmentIdentifier:Ee(Vr,Mr)}:{})},v.stringifyUrl=(jr,Mr)=>{Mr=Object.assign({encode:!0,strict:!0,[le]:!0},Mr);const Lr=Br(jr.url).split("?")[0]||"",Vr=v.extract(jr.url),Gr=v.parse(Vr,{sort:!1}),Ur=Object.assign(Gr,jr.query);let Qr=v.stringify(Ur,Mr);Qr&&(Qr=`?${Qr}`);let vn=$r(jr.url);return jr.fragmentIdentifier&&(vn=`#${Mr[le]?me(jr.fragmentIdentifier,Mr):jr.fragmentIdentifier}`),`${Lr}${Qr}${vn}`},v.pick=(jr,Mr,Lr)=>{Lr=Object.assign({parseFragmentIdentifier:!0,[le]:!1},Lr);const{url:Vr,query:Gr,fragmentIdentifier:Ur}=v.parseUrl(jr,Lr);return v.stringifyUrl({url:Vr,query:ce(Gr,Mr),fragmentIdentifier:Ur},Lr)},v.exclude=(jr,Mr,Lr)=>{const Vr=Array.isArray(Mr)?Gr=>!Mr.includes(Gr):(Gr,Ur)=>!Mr(Gr,Ur);return v.pick(jr,Vr,Lr)}}}),require_crypto2=__commonJS$1({"node_modules/@walletconnect/environment/dist/cjs/crypto.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.isBrowserCryptoAvailable=v.getSubtleCrypto=v.getBrowerCrypto=void 0;function k(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}v.getBrowerCrypto=k;function ie(){const ce=k();return ce.subtle||ce.webkitSubtle}v.getSubtleCrypto=ie;function ae(){return!!k()&&!!ie()}v.isBrowserCryptoAvailable=ae}}),require_env=__commonJS$1({"node_modules/@walletconnect/environment/dist/cjs/env.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.isBrowser=v.isNode=v.isReactNative=void 0;function k(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}v.isReactNative=k;function ie(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}v.isNode=ie;function ae(){return!k()&&!ie()}v.isBrowser=ae}}),require_cjs7=__commonJS$1({"node_modules/@walletconnect/environment/dist/cjs/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_crypto2(),v),k.__exportStar(require_env(),v)}}),require_browser4$1=__commonJS$1({"node_modules/@walletconnect/jsonrpc-ws-connection/node_modules/ws/browser.js"(v,k){k.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}}),require_lodash=__commonJS$1({"node_modules/lodash.isequal/index.js"(v,k){var ie=200,ae="__lodash_hash_undefined__",ce=1,fe=2,le=9007199254740991,ve="[object Arguments]",pe="[object Array]",ye="[object AsyncFunction]",me="[object Boolean]",Ee="[object Date]",cr="[object Error]",Br="[object Function]",$r="[object GeneratorFunction]",Pr="[object Map]",Or="[object Number]",ur="[object Null]",jr="[object Object]",Mr="[object Promise]",Lr="[object Proxy]",Vr="[object RegExp]",Gr="[object Set]",Ur="[object String]",Qr="[object Symbol]",vn="[object Undefined]",Yt="[object WeakMap]",fn="[object ArrayBuffer]",Xt="[object DataView]",Qt="[object Float32Array]",Kr="[object Float64Array]",be="[object Int8Array]",kr="[object Int16Array]",xr="[object Int32Array]",Wr="[object Uint8Array]",Jt="[object Uint8ClampedArray]",Xr="[object Uint16Array]",zr="[object Uint32Array]",Jr=/[\\^$.*+?()[\]{}|]/g,Nr=/^\[object .+?Constructor\]$/,Hr=/^(?:0|[1-9]\d*)$/,On={};On[Qt]=On[Kr]=On[be]=On[kr]=On[xr]=On[Wr]=On[Jt]=On[Xr]=On[zr]=!0,On[ve]=On[pe]=On[fn]=On[me]=On[Xt]=On[Ee]=On[cr]=On[Br]=On[Pr]=On[Or]=On[jr]=On[Vr]=On[Gr]=On[Ur]=On[Yt]=!1;var Gn=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,mn=typeof self=="object"&&self&&self.Object===Object&&self,Nn=Gn||mn||Function("return this")(),In=typeof v=="object"&&v&&!v.nodeType&&v,bn=In&&typeof k=="object"&&k&&!k.nodeType&&k,ii=bn&&bn.exports===In,hn=ii&&Gn.process,pn=function(){try{return hn&&hn.binding&&hn.binding("util")}catch{}}(),Sn=pn&&pn.isTypedArray;function Qn(wi,ao){for(var Po=-1,Yo=wi==null?0:wi.length,va=0,sa=[];++Po-1}function Ni(wi,ao){var Po=this.__data__,Yo=Ti(Po,wi);return Yo<0?(++this.size,Po.push([wi,ao])):Po[Yo][1]=ao,this}bi.prototype.clear=_i,bi.prototype.delete=fi,bi.prototype.get=yo,bi.prototype.has=Di,bi.prototype.set=Ni;function oo(wi){var ao=-1,Po=wi==null?0:wi.length;for(this.clear();++aoSa))return!1;var da=sa.get(wi);if(da&&sa.get(ao))return da==ao;var Ba=-1,Ka=!0,Ca=Po&fe?new so:void 0;for(sa.set(wi,ao),sa.set(ao,wi);++Ba-1&&wi%1==0&&wi-1&&wi%1==0&&wi<=le}function ll(wi){var ao=typeof wi;return wi!=null&&(ao=="object"||ao=="function")}function Du(wi){return wi!=null&&typeof wi=="object"}var Xu=Sn?di(Sn):Ko;function fl(wi){return Ju(wi)?Si(wi):Wo(wi)}function cf(){return[]}function Qu(){return!1}k.exports=uf}}),nearAPI$3=__toESM(require_browser_index2$1(),1),import_events5=__toESM(require_events()),import_keyvaluestorage=__toESM(require_browser$1()),import_heartbeat=__toESM(require_cjs3()),import_logger=__toESM(require_cjs4());init_esm();__toESM(require_events());var n$1=class extends IEvents{constructor(v){super(),this.opts=v,this.protocol="wc",this.version=2}},h=class extends IEvents{constructor(v,k){super(),this.core=v,this.logger=k,this.records=new Map}},a=class{constructor(v,k){this.logger=v,this.core=k}},u=class extends IEvents{constructor(v,k){super(),this.relayer=v,this.logger=k}},g=class extends IEvents{constructor(v){super()}},p=class{constructor(v,k,ie,ae){this.core=v,this.logger=k,this.name=ie}},d2=class extends IEvents{constructor(v,k){super(),this.relayer=v,this.logger=k}},E=class extends IEvents{constructor(v,k){super(),this.core=v,this.logger=k}},y=class{constructor(v,k){this.projectId=v,this.logger=k}},b=class{constructor(v){this.opts=v,this.protocol="wc",this.version=2}},S=class{constructor(v){this.client=v}},JSONStringify=v=>JSON.stringify(v,(k,ie)=>typeof ie=="bigint"?ie.toString()+"n":ie),JSONParse=v=>{const k=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,ie=v.replace(k,'$1"$2n"$3');return JSON.parse(ie,(ae,ce)=>typeof ce=="string"&&ce.match(/^\d+n$/)?BigInt(ce.substring(0,ce.length-1)):ce)};function safeJsonParse(v){if(typeof v!="string")throw new Error(`Cannot safe json parse value of type ${typeof v}`);try{return JSONParse(v)}catch{return v}}function safeJsonStringify(v){return typeof v=="string"?v:JSONStringify(v)||""}var ed25519=__toESM(require_ed25519()),import_random=__toESM(require_random()),import_time=__toESM(require_cjs2()),JWT_IRIDIUM_ALG="EdDSA",JWT_IRIDIUM_TYP="JWT",JWT_DELIMITER=".",JWT_ENCODING="base64url",JSON_ENCODING="utf8",DATA_ENCODING="utf8",DID_DELIMITER=":",DID_PREFIX="did",DID_METHOD="key",MULTICODEC_ED25519_ENCODING="base58btc",MULTICODEC_ED25519_BASE="z",MULTICODEC_ED25519_HEADER="K36",KEY_PAIR_SEED_LENGTH=32;function asUint8Array(v){return globalThis.Buffer!=null?new Uint8Array(v.buffer,v.byteOffset,v.byteLength):v}function allocUnsafe(v=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?asUint8Array(globalThis.Buffer.allocUnsafe(v)):new Uint8Array(v)}function concat$8(v,k){k||(k=v.reduce((ce,fe)=>ce+fe.length,0));const ie=allocUnsafe(k);let ae=0;for(const ce of v)ie.set(ce,ae),ae+=ce.length;return asUint8Array(ie)}var identity_exports={};__export$1(identity_exports,{identity:()=>identity});function base$1(v,k){if(v.length>=255)throw new TypeError("Alphabet too long");for(var ie=new Uint8Array(256),ae=0;ae>>0,Lr=new Uint8Array(Mr);ur!==jr;){for(var Vr=$r[ur],Gr=0,Ur=Mr-1;(Vr!==0||Gr>>0,Lr[Ur]=Vr%ve>>>0,Vr=Vr/ve>>>0;if(Vr!==0)throw new Error("Non-zero carry");Or=Gr,ur++}for(var Qr=Mr-Or;Qr!==Mr&&Lr[Qr]===0;)Qr++;for(var vn=pe.repeat(Pr);Qr>>0,Mr=new Uint8Array(jr);$r[Pr];){var Lr=ie[$r.charCodeAt(Pr)];if(Lr===255)return;for(var Vr=0,Gr=jr-1;(Lr!==0||Vr>>0,Mr[Gr]=Lr%256>>>0,Lr=Lr/256>>>0;if(Lr!==0)throw new Error("Non-zero carry");ur=Vr,Pr++}if($r[Pr]!==" "){for(var Ur=jr-ur;Ur!==jr&&Mr[Ur]===0;)Ur++;for(var Qr=new Uint8Array(Or+(jr-Ur)),vn=Or;Ur!==jr;)Qr[vn++]=Mr[Ur++];return Qr}}}function Br($r){var Pr=cr($r);if(Pr)return Pr;throw new Error(`Non-${k} character`)}return{encode:Ee,decodeUnsafe:cr,decode:Br}}var src=base$1,_brrp__multiformats_scope_baseX=src,base_x_default=_brrp__multiformats_scope_baseX,coerce=v=>{if(v instanceof Uint8Array&&v.constructor.name==="Uint8Array")return v;if(v instanceof ArrayBuffer)return new Uint8Array(v);if(ArrayBuffer.isView(v))return new Uint8Array(v.buffer,v.byteOffset,v.byteLength);throw new Error("Unknown type, must be binary type")},fromString=v=>new TextEncoder().encode(v),toString$6=v=>new TextDecoder().decode(v),Encoder=class{constructor(v,k,ie){this.name=v,this.prefix=k,this.baseEncode=ie}encode(v){if(v instanceof Uint8Array)return`${this.prefix}${this.baseEncode(v)}`;throw Error("Unknown type, must be binary type")}},Decoder=class{constructor(v,k,ie){if(this.name=v,this.prefix=k,k.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=k.codePointAt(0),this.baseDecode=ie}decode(v){if(typeof v=="string"){if(v.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(v)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(v.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(v){return or(this,v)}},ComposedDecoder=class{constructor(v){this.decoders=v}or(v){return or(this,v)}decode(v){const k=v[0],ie=this.decoders[k];if(ie)return ie.decode(v);throw RangeError(`Unable to decode multibase string ${JSON.stringify(v)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},or=(v,k)=>new ComposedDecoder({...v.decoders||{[v.prefix]:v},...k.decoders||{[k.prefix]:k}}),Codec=class{constructor(v,k,ie,ae){this.name=v,this.prefix=k,this.baseEncode=ie,this.baseDecode=ae,this.encoder=new Encoder(v,k,ie),this.decoder=new Decoder(v,k,ae)}encode(v){return this.encoder.encode(v)}decode(v){return this.decoder.decode(v)}},from=({name:v,prefix:k,encode:ie,decode:ae})=>new Codec(v,k,ie,ae),baseX=({prefix:v,name:k,alphabet:ie})=>{const{encode:ae,decode:ce}=base_x_default(ie,k);return from({prefix:v,name:k,encode:ae,decode:fe=>coerce(ce(fe))})},decode$1=(v,k,ie,ae)=>{const ce={};for(let me=0;me=8&&(ve-=8,le[ye++]=255&pe>>ve)}if(ve>=ie||255&pe<<8-ve)throw new SyntaxError("Unexpected end of data");return le},encode$1=(v,k,ie)=>{const ae=k[k.length-1]==="=",ce=(1<ie;)le-=ie,fe+=k[ce&ve>>le];if(le&&(fe+=k[ce&ve<from({prefix:k,name:v,encode(ce){return encode$1(ce,ae,ie)},decode(ce){return decode$1(ce,ae,ie,v)}}),identity=from({prefix:"\0",name:"identity",encode:v=>toString$6(v),decode:v=>fromString(v)}),base2_exports={};__export$1(base2_exports,{base2:()=>base2});var base2=rfc4648({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),base8_exports={};__export$1(base8_exports,{base8:()=>base8});var base8=rfc4648({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),base10_exports={};__export$1(base10_exports,{base10:()=>base10});var base10=baseX({prefix:"9",name:"base10",alphabet:"0123456789"}),base16_exports={};__export$1(base16_exports,{base16:()=>base16,base16upper:()=>base16upper});var base16=rfc4648({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),base16upper=rfc4648({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),base32_exports={};__export$1(base32_exports,{base32:()=>base32,base32hex:()=>base32hex,base32hexpad:()=>base32hexpad,base32hexpadupper:()=>base32hexpadupper,base32hexupper:()=>base32hexupper,base32pad:()=>base32pad,base32padupper:()=>base32padupper,base32upper:()=>base32upper,base32z:()=>base32z});var base32=rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),base32upper=rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),base32pad=rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),base32padupper=rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),base32hex=rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),base32hexupper=rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),base32hexpad=rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),base32hexpadupper=rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),base32z=rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),base36_exports={};__export$1(base36_exports,{base36:()=>base36,base36upper:()=>base36upper});var base36=baseX({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),base36upper=baseX({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),base58_exports={};__export$1(base58_exports,{base58btc:()=>base58btc,base58flickr:()=>base58flickr});var base58btc=baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),base58flickr=baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),base64_exports={};__export$1(base64_exports,{base64:()=>base64,base64pad:()=>base64pad,base64url:()=>base64url,base64urlpad:()=>base64urlpad});var base64=rfc4648({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),base64pad=rfc4648({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),base64url=rfc4648({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),base64urlpad=rfc4648({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),base256emoji_exports={};__export$1(base256emoji_exports,{base256emoji:()=>base256emoji});var alphabet=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),alphabetBytesToChars=alphabet.reduce((v,k,ie)=>(v[ie]=k,v),[]),alphabetCharsToBytes=alphabet.reduce((v,k,ie)=>(v[k.codePointAt(0)]=ie,v),[]);function encode2$1(v){return v.reduce((k,ie)=>(k+=alphabetBytesToChars[ie],k),"")}function decode2$1(v){const k=[];for(const ie of v){const ae=alphabetCharsToBytes[ie.codePointAt(0)];if(ae===void 0)throw new Error(`Non-base256emoji character: ${ie}`);k.push(ae)}return new Uint8Array(k)}var base256emoji=from({prefix:"\u{1F680}",name:"base256emoji",encode:encode2$1,decode:decode2$1}),sha2_browser_exports={};__export$1(sha2_browser_exports,{sha256:()=>sha256$1,sha512:()=>sha512$1});var encode_1=encode3,MSB=128,REST=127,MSBALL=~REST,INT=Math.pow(2,31);function encode3(v,k,ie){k=k||[],ie=ie||0;for(var ae=ie;v>=INT;)k[ie++]=v&255|MSB,v/=128;for(;v&MSBALL;)k[ie++]=v&255|MSB,v>>>=7;return k[ie]=v|0,encode3.bytes=ie-ae+1,k}var decode3=read,MSB$1=128,REST$1=127;function read(v,ae){var ie=0,ae=ae||0,ce=0,fe=ae,le,ve=v.length;do{if(fe>=ve)throw read.bytes=0,new RangeError("Could not decode varint");le=v[fe++],ie+=ce<28?(le&REST$1)<=MSB$1);return read.bytes=fe-ae,ie}var N1=Math.pow(2,7),N2=Math.pow(2,14),N3=Math.pow(2,21),N4=Math.pow(2,28),N5=Math.pow(2,35),N6=Math.pow(2,42),N7=Math.pow(2,49),N8=Math.pow(2,56),N9=Math.pow(2,63),length=function(v){return v(varint_default.encode(v,k,ie),k),encodingLength=v=>varint_default.encodingLength(v),create=(v,k)=>{const ie=k.byteLength,ae=encodingLength(v),ce=ae+encodingLength(ie),fe=new Uint8Array(ce+ie);return encodeTo(v,fe,0),encodeTo(ie,fe,ae),fe.set(k,ce),new Digest(v,ie,k,fe)},Digest=class{constructor(v,k,ie,ae){this.code=v,this.size=k,this.digest=ie,this.bytes=ae}},from2=({name:v,code:k,encode:ie})=>new Hasher(v,k,ie),Hasher=class{constructor(v,k,ie){this.name=v,this.code=k,this.encode=ie}digest(v){if(v instanceof Uint8Array){const k=this.encode(v);return k instanceof Uint8Array?create(this.code,k):k.then(ie=>create(this.code,ie))}else throw Error("Unknown type, must be binary type")}},sha=v=>async k=>new Uint8Array(await crypto.subtle.digest(v,k)),sha256$1=from2({name:"sha2-256",code:18,encode:sha("SHA-256")}),sha512$1=from2({name:"sha2-512",code:19,encode:sha("SHA-512")}),identity_exports2={};__export$1(identity_exports2,{identity:()=>identity2});var code=0,name="identity",encode4=coerce,digest=v=>create(code,encode4(v)),identity2={code,name,encode:encode4,digest};new TextEncoder;new TextDecoder;var bases={...identity_exports,...base2_exports,...base8_exports,...base10_exports,...base16_exports,...base32_exports,...base36_exports,...base58_exports,...base64_exports,...base256emoji_exports};({...sha2_browser_exports,...identity_exports2});function createCodec(v,k,ie,ae){return{name:v,prefix:k,encoder:{name:v,prefix:k,encode:ie},decoder:{decode:ae}}}var string=createCodec("utf8","u",v=>{const k=new TextDecoder("utf8");return"u"+k.decode(v)},v=>new TextEncoder().encode(v.substring(1))),ascii=createCodec("ascii","a",v=>{let k="a";for(let ie=0;ie{v=v.substring(1);const k=allocUnsafe(v.length);for(let ie=0;ie"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new ReactNativeInfo:typeof navigator<"u"?parseUserAgent(navigator.userAgent):getNodeVersion()}function matchUserAgent(v){return v!==""&&userAgentRules.reduce(function(k,ie){var ae=ie[0],ce=ie[1];if(k)return k;var fe=ce.exec(v);return!!fe&&[ae,fe]},!1)}function parseUserAgent(v){var k=matchUserAgent(v);if(!k)return null;var ie=k[0],ae=k[1];if(ie==="searchbot")return new BotInfo;var ce=ae[1]&&ae[1].split(".").join("_").split("_").slice(0,3);ce?ce.length"u")throw new Error("Missing sender public key for type 1 envelope");const ie=typeof v.senderPublicKey<"u"?fromString2(v.senderPublicKey,p2):void 0,ae=typeof v.iv<"u"?fromString2(v.iv,p2):(0,import_random2.randomBytes)(J),ce=new import_chacha20poly1305.ChaCha20Poly1305(fromString2(v.symKey,p2)).seal(ae,fromString2(v.message,x));return Ie({type:k,sealed:ce,iv:ae,senderPublicKey:ie})}function Cn(v){const k=new import_chacha20poly1305.ChaCha20Poly1305(fromString2(v.symKey,p2)),{sealed:ie,iv:ae}=Z(v.encoded),ce=k.open(ae,ie);if(ce===null)throw new Error("Failed to decrypt");return toString2$6(ce,x)}function Ie(v){if($$b(v.type)===U){if(typeof v.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return toString2$6(concat$8([v.type,v.senderPublicKey,v.iv,v.sealed]),L)}return toString2$6(concat$8([v.type,v.iv,v.sealed]),L)}function Z(v){const k=fromString2(v,L),ie=k.slice(wn,Oe),ae=Oe;if($$b(ie)===U){const ve=ae+Q,pe=ve+J,ye=k.slice(ae,ve),me=k.slice(ve,pe),Ee=k.slice(pe);return{type:ie,sealed:Ee,iv:me,senderPublicKey:ye}}const ce=ae+J,fe=k.slice(ae,ce),le=k.slice(ce);return{type:ie,sealed:le,iv:fe}}function Dn(v,k){const ie=Z(v);return Pe({type:$$b(ie.type),senderPublicKey:typeof ie.senderPublicKey<"u"?toString2$6(ie.senderPublicKey,p2):void 0,receiverPublicKey:k==null?void 0:k.receiverPublicKey})}function Pe(v){const k=(v==null?void 0:v.type)||Y;if(k===U){if(typeof(v==null?void 0:v.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(v==null?void 0:v.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:k,senderPublicKey:v==null?void 0:v.senderPublicKey,receiverPublicKey:v==null?void 0:v.receiverPublicKey}}function Vn(v){return v.type===U&&typeof v.senderPublicKey=="string"&&typeof v.receiverPublicKey=="string"}var kn=Object.defineProperty,Te=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,Kn=Object.prototype.propertyIsEnumerable,we=(v,k,ie)=>k in v?kn(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,Re=(v,k)=>{for(var ie in k||(k={}))Mn.call(k,ie)&&we(v,ie,k[ie]);if(Te)for(var ie of Te(k))Kn.call(k,ie)&&we(v,ie,k[ie]);return v},Ae="ReactNative",b2={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},_e="js";function ee(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function $e(){return!(0,import_window_getters.getDocument)()&&!!(0,import_window_getters.getNavigator)()&&navigator.product===Ae}function je(){return!ee()&&!!(0,import_window_getters.getNavigator)()}function j$2(){return $e()?b2.reactNative:ee()?b2.node:je()?b2.browser:b2.unknown}function Ce(v,k){let ie=V.parse(v);return ie=Re(Re({},ie),k),v=V.stringify(ie),v}function Fn(){return(0,import_window_metadata.getWindowMetadata)()||{name:"",description:"",url:"",icons:[""]}}function De(){if(j$2()===b2.reactNative&&typeof globalThis<"u"&&typeof(globalThis==null?void 0:globalThis.Platform)<"u"){const{OS:ie,Version:ae}=globalThis.Platform;return[ie,ae].join("-")}const v=detect();if(v===null)return"unknown";const k=v.os?v.os.replace(" ","").toLowerCase():"unknown";return v.type==="browser"?[k,v.name,v.version].join("-"):[k,v.version].join("-")}function Ve(){var v;const k=j$2();return k===b2.browser?[k,((v=(0,import_window_getters.getLocation)())==null?void 0:v.host)||"unknown"].join(":"):k}function ke(v,k,ie){const ae=De(),ce=Ve();return[[v,k].join("-"),[_e,ie].join("-"),ae,ce].join("/")}function qn({protocol:v,version:k,relayUrl:ie,sdkVersion:ae,auth:ce,projectId:fe,useOnCloseEvent:le}){const ve=ie.split("?"),pe=ke(v,k,ae),ye={auth:ce,ua:pe,projectId:fe,useOnCloseEvent:le||void 0},me=Ce(ve[1]||"",ye);return ve[0]+"?"+me}function O(v,k){return v.filter(ie=>k.includes(ie)).length===v.length}function Bn(v){return Object.fromEntries(v.entries())}function Yn(v){return new Map(Object.entries(v))}function Xn(v=import_time2.FIVE_MINUTES,k){const ie=(0,import_time2.toMiliseconds)(v||import_time2.FIVE_MINUTES);let ae,ce,fe;return{resolve:le=>{fe&&ae&&(clearTimeout(fe),ae(le))},reject:le=>{fe&&ce&&(clearTimeout(fe),ce(le))},done:()=>new Promise((le,ve)=>{fe=setTimeout(()=>{ve(new Error(k))},ie),ae=le,ce=ve})}}function et(v,k,ie){return new Promise(async(ae,ce)=>{const fe=setTimeout(()=>ce(new Error(ie)),k);try{const le=await v;ae(le)}catch(le){ce(le)}clearTimeout(fe)})}function ne(v,k){if(typeof k=="string"&&k.startsWith(`${v}:`))return k;if(v.toLowerCase()==="topic"){if(typeof k!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${k}`}else if(v.toLowerCase()==="id"){if(typeof k!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${k}`}throw new Error(`Unknown expirer target type: ${v}`)}function nt(v){return ne("topic",v)}function tt(v){return ne("id",v)}function rt(v){const[k,ie]=v.split(":"),ae={id:void 0,topic:void 0};if(k==="topic"&&typeof ie=="string")ae.topic=ie;else if(k==="id"&&Number.isInteger(Number(ie)))ae.id=Number(ie);else throw new Error(`Invalid target, expected id:number or topic:string, got ${k}:${ie}`);return ae}function ot(v,k){return(0,import_time2.fromMiliseconds)((k||Date.now())+(0,import_time2.toMiliseconds)(v))}function st(v){return Date.now()>=(0,import_time2.toMiliseconds)(v)}function it(v,k){return`${v}${k?`:${k}`:""}`}async function ct({id:v,topic:k,wcDeepLink:ie}){try{if(!ie)return;const ae=typeof ie=="string"?JSON.parse(ie):ie;let ce=ae==null?void 0:ae.href;if(typeof ce!="string")return;ce.endsWith("/")&&(ce=ce.slice(0,-1));const fe=`${ce}/wc?requestId=${v}&sessionTopic=${k}`,le=j$2();le===b2.browser?fe.startsWith("https://")?window.open(fe,"_blank","noreferrer noopener"):window.open(fe,"_self","noreferrer noopener"):le===b2.reactNative&&typeof(globalThis==null?void 0:globalThis.Linking)<"u"&&await globalThis.Linking.openURL(fe)}catch(ae){console.error(ae)}}var xe="irn";function at(v){return(v==null?void 0:v.relay)||{protocol:xe}}function ut(v){const k=RELAY_JSONRPC[v];if(typeof k>"u")throw new Error(`Relay Protocol not supported: ${v}`);return k}var dt=Object.defineProperty,Fe=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,He=(v,k,ie)=>k in v?dt(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,pt=(v,k)=>{for(var ie in k||(k={}))lt.call(k,ie)&&He(v,ie,k[ie]);if(Fe)for(var ie of Fe(k))ft.call(k,ie)&&He(v,ie,k[ie]);return v};function qe(v,k="-"){const ie={},ae="relay"+k;return Object.keys(v).forEach(ce=>{if(ce.startsWith(ae)){const fe=ce.replace(ae,""),le=v[ce];ie[fe]=le}}),ie}function mt(v){const k=v.indexOf(":"),ie=v.indexOf("?")!==-1?v.indexOf("?"):void 0,ae=v.substring(0,k),ce=v.substring(k+1,ie).split("@"),fe=typeof ie<"u"?v.substring(ie):"",le=V.parse(fe);return{protocol:ae,topic:Ge(ce[0]),version:parseInt(ce[1],10),symKey:le.symKey,relay:qe(le)}}function Ge(v){return v.startsWith("//")?v.substring(2):v}function We(v,k="-"){const ie="relay",ae={};return Object.keys(v).forEach(ce=>{const fe=ie+k+ce;v[ce]&&(ae[fe]=v[ce])}),ae}function yt(v){return`${v.protocol}:${v.topic}@${v.version}?`+V.stringify(pt({symKey:v.symKey},We(v.relay)))}function R(v){const k=[];return v.forEach(ie=>{const[ae,ce]=ie.split(":");k.push(`${ae}:${ce}`)}),k}function Ye(v){const k=[];return Object.values(v).forEach(ie=>{k.push(...R(ie.accounts))}),k}function Je(v,k){const ie=[];return Object.values(v).forEach(ae=>{R(ae.accounts).includes(k)&&ie.push(...ae.methods)}),ie}function Qe(v,k){const ie=[];return Object.values(v).forEach(ae=>{R(ae.accounts).includes(k)&&ie.push(...ae.events)}),ie}function St(v,k){const ie=sn(v,k);if(ie)throw new Error(ie.message);const ae={};for(const[ce,fe]of Object.entries(v))ae[ce]={methods:fe.methods,events:fe.events,chains:fe.accounts.map(le=>`${le.split(":")[0]}:${le.split(":")[1]}`)};return ae}var Pt={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Tt={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function N$1(v,k){const{message:ie,code:ae}=Tt[v];return{message:k?`${ie} ${k}`:ie,code:ae}}function A(v,k){const{message:ie,code:ae}=Pt[v];return{message:k?`${ie} ${k}`:ie,code:ae}}function C(v,k){return Array.isArray(v)?typeof k<"u"&&v.length?v.every(k):!0:!1}function H(v){return Object.getPrototypeOf(v)===Object.prototype&&Object.keys(v).length}function I(v){return typeof v>"u"}function y2(v,k){return k&&I(v)?!0:typeof v=="string"&&!!v.trim().length}function q(v,k){return k&&I(v)?!0:typeof v=="number"&&!isNaN(v)}function wt(v,k){const{requiredNamespaces:ie}=k,ae=Object.keys(v.namespaces),ce=Object.keys(ie);let fe=!0;return O(ce,ae)?(ae.forEach(le=>{const{accounts:ve,methods:pe,events:ye}=v.namespaces[le],me=R(ve),Ee=ie[le];(!O(M(le,Ee),me)||!O(Ee.methods,pe)||!O(Ee.events,ye))&&(fe=!1)}),fe):!1}function D(v){return y2(v,!1)&&v.includes(":")?v.split(":").length===2:!1}function Xe(v){if(y2(v,!1)&&v.includes(":")){const k=v.split(":");if(k.length===3){const ie=k[0]+":"+k[1];return!!k[2]&&D(ie)}}return!1}function Rt(v){if(y2(v,!1))try{return typeof new URL(v)<"u"}catch{return!1}return!1}function At(v){var k;return(k=v==null?void 0:v.proposer)==null?void 0:k.publicKey}function Ut(v){return v==null?void 0:v.topic}function _t(v,k){let ie=null;return y2(v==null?void 0:v.publicKey,!1)||(ie=N$1("MISSING_OR_INVALID",`${k} controller public key should be a string`)),ie}function oe(v){let k=!0;return C(v)?v.length&&(k=v.every(ie=>y2(ie,!1))):k=!1,k}function en(v,k,ie){let ae=null;return C(k)&&k.length?k.forEach(ce=>{ae||D(ce)||(ae=A("UNSUPPORTED_CHAINS",`${ie}, chain ${ce} should be a string and conform to "namespace:chainId" format`))}):D(v)||(ae=A("UNSUPPORTED_CHAINS",`${ie}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),ae}function nn(v,k,ie){let ae=null;return Object.entries(v).forEach(([ce,fe])=>{if(ae)return;const le=en(ce,M(ce,fe),`${k} ${ie}`);le&&(ae=le)}),ae}function tn(v,k){let ie=null;return C(v)?v.forEach(ae=>{ie||Xe(ae)||(ie=A("UNSUPPORTED_ACCOUNTS",`${k}, account ${ae} should be a string and conform to "namespace:chainId:address" format`))}):ie=A("UNSUPPORTED_ACCOUNTS",`${k}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),ie}function rn(v,k){let ie=null;return Object.values(v).forEach(ae=>{if(ie)return;const ce=tn(ae==null?void 0:ae.accounts,`${k} namespace`);ce&&(ie=ce)}),ie}function on(v,k){let ie=null;return oe(v==null?void 0:v.methods)?oe(v==null?void 0:v.events)||(ie=A("UNSUPPORTED_EVENTS",`${k}, events should be an array of strings or empty array for no events`)):ie=A("UNSUPPORTED_METHODS",`${k}, methods should be an array of strings or empty array for no methods`),ie}function se(v,k){let ie=null;return Object.values(v).forEach(ae=>{if(ie)return;const ce=on(ae,`${k}, namespace`);ce&&(ie=ce)}),ie}function $t(v,k,ie){let ae=null;if(v&&H(v)){const ce=se(v,k);ce&&(ae=ce);const fe=nn(v,k,ie);fe&&(ae=fe)}else ae=N$1("MISSING_OR_INVALID",`${k}, ${ie} should be an object with data`);return ae}function sn(v,k){let ie=null;if(v&&H(v)){const ae=se(v,k);ae&&(ie=ae);const ce=rn(v,k);ce&&(ie=ce)}else ie=N$1("MISSING_OR_INVALID",`${k}, namespaces should be an object with data`);return ie}function cn(v){return y2(v.protocol,!0)}function jt(v,k){let ie=!1;return k&&!v?ie=!0:v&&C(v)&&v.length&&v.forEach(ae=>{ie=cn(ae)}),ie}function Ct(v){return typeof v=="number"}function Dt(v){return typeof v<"u"&&typeof v!==null}function Vt(v){return!(!v||typeof v!="object"||!v.code||!q(v.code,!1)||!v.message||!y2(v.message,!1))}function kt(v){return!(I(v)||!y2(v.method,!1))}function Mt(v){return!(I(v)||I(v.result)&&I(v.error)||!q(v.id,!1)||!y2(v.jsonrpc,!1))}function Kt(v){return!(I(v)||!y2(v.name,!1))}function Lt(v,k){return!(!D(k)||!Ye(v).includes(k))}function xt(v,k,ie){return y2(ie,!1)?Je(v,k).includes(ie):!1}function Ft(v,k,ie){return y2(ie,!1)?Qe(v,k).includes(ie):!1}function an(v,k,ie){let ae=null;const ce=Ht(v),fe=qt(k),le=Object.keys(ce),ve=Object.keys(fe),pe=un(Object.keys(v)),ye=un(Object.keys(k)),me=pe.filter(Ee=>!ye.includes(Ee));return me.length&&(ae=N$1("NON_CONFORMING_NAMESPACES",`${ie} namespaces keys don't satisfy requiredNamespaces. +`}}),require_assets=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/connect-modal/src/assets.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.logo=v.close=void 0,v.close="data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='39' height='39' rx='19.5' stroke='%23F7F7F7'/%3E%3Cpath d='M27 13L13 27' stroke='%23F7F7F7' stroke-width='2'/%3E%3Cpath d='M13 13L27 27' stroke='%23F7F7F7' stroke-width='2'/%3E%3C/svg%3E",v.logo="data:image/svg+xml,%3Csvg width='146' height='36' viewBox='0 0 146 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28.7743 0C26.2339 3.67797 23.0494 6.22712 19.2927 7.93559C17.9881 7.5661 16.6476 7.36949 15.33 7.38305C14.0124 7.36949 12.6719 7.5661 11.3673 7.93559C7.61063 6.22712 4.4261 3.68136 1.88567 0C1.11406 2.00339 -1.83832 8.91186 1.70912 18.5627C1.70912 18.5627 0.574591 23.6034 2.65728 27.9322C2.65728 27.9322 5.67833 26.5153 8.07163 28.5085C10.5794 30.6203 9.7816 32.6475 11.5471 34.3898C13.0642 36 15.33 36 15.33 36C15.33 36 17.5958 36 19.1128 34.3932C20.8784 32.6508 20.0839 30.6237 22.5884 28.5119C24.9817 26.5186 28.0027 27.9356 28.0027 27.9356C30.0854 23.6068 28.9509 18.5661 28.9509 18.5661C32.4983 8.91187 29.5459 2.00339 28.7743 0ZM3.59891 17.2271C1.66662 13.122 1.13695 7.48136 2.35976 3.02712C3.96837 7.25085 6.15896 9.15254 8.76477 11.1559C7.6564 13.5288 5.58025 15.7729 3.59891 17.2271ZM9.15058 24.4644C7.63352 23.7695 7.30656 22.3898 7.30656 22.3898C9.38272 21.0373 12.4299 22.0712 12.5247 25.2746C10.9194 24.2678 10.3865 25.0271 9.15058 24.4644ZM15.33 35.8237C14.2412 35.8237 13.3585 35.0169 13.3585 34.0237C13.3585 33.0305 14.2412 32.2237 15.33 32.2237C16.4188 32.2237 17.3015 33.0305 17.3015 34.0237C17.3015 35.0203 16.4188 35.8237 15.33 35.8237ZM21.5094 24.4644C20.2735 25.0271 19.7406 24.2678 18.1353 25.2746C18.2333 22.0712 21.2773 21.0373 23.3534 22.3898C23.3534 22.3898 23.0265 23.7695 21.5094 24.4644ZM27.0611 17.2271C25.0797 15.7729 23.0036 13.5288 21.8952 11.1525C24.501 9.15254 26.6916 7.25085 28.3002 3.02712C29.523 7.48475 28.9934 13.1254 27.0611 17.2271Z' fill='white'/%3E%3Cpath d='M41.5649 7.47353H46.0624L54.9358 21.2222V7.47353H59.5549V28.7353H55.0878L46.184 14.9866V28.7353H41.5649V7.47353Z' fill='%23F7F7F7'/%3E%3Cpath d='M65.2463 11.884C64.5372 11.884 63.9396 11.6508 63.4534 11.1844C62.9672 10.718 62.7241 10.13 62.7241 9.42024C62.7241 8.73078 62.9672 8.15285 63.4534 7.68645C63.9396 7.19977 64.5372 6.95643 65.2463 6.95643C65.9554 6.95643 66.553 7.19977 67.0392 7.68645C67.5254 8.15285 67.7685 8.73078 67.7685 9.42024C67.7685 10.13 67.5254 10.718 67.0392 11.1844C66.553 11.6508 65.9554 11.884 65.2463 11.884ZM62.9368 14.1349H67.5558V28.7353H62.9368V14.1349Z' fill='%23F7F7F7'/%3E%3Cpath d='M78.7549 35.7312C77.7825 35.7312 76.7999 35.64 75.8072 35.4575C74.8348 35.275 74.0143 35.0316 73.3458 34.7275V31.3511C74.9057 32.0406 76.7087 32.3853 78.7549 32.3853C80.3959 32.3853 81.5709 32.0507 82.28 31.3816C82.989 30.7124 83.3435 29.7086 83.3435 28.3702V27.4577C82.7155 28.0255 81.9457 28.4514 81.034 28.7353C80.1224 29.0394 79.1499 29.1915 78.1167 29.1915C76.6176 29.1915 75.2704 28.8671 74.0751 28.2182C72.9001 27.549 71.9783 26.6263 71.3097 25.4502C70.6412 24.274 70.3069 22.9357 70.3069 21.4351C70.3069 19.8939 70.6311 18.5353 71.2793 17.3592C71.9479 16.183 72.8595 15.2806 74.0143 14.652C75.1893 14.0031 76.5264 13.6787 78.0256 13.6787C79.1601 13.6787 80.1629 13.8409 81.034 14.1653C81.9052 14.4898 82.7257 15.0069 83.4955 15.7166V14.1349H87.9322V27.7923C87.9322 30.3271 87.1826 32.2839 85.6835 33.6629C84.1843 35.0418 81.8748 35.7312 78.7549 35.7312ZM79.2107 25.6327C80.1629 25.6327 81.0138 25.3792 81.7634 24.8723C82.5332 24.345 83.0599 23.6556 83.3435 22.8039V20.0663C83.0194 19.2146 82.4825 18.5353 81.733 18.0283C81.0036 17.5214 80.1629 17.2679 79.2107 17.2679C77.9749 17.2679 76.962 17.6431 76.1719 18.3934C75.402 19.1437 75.0171 20.1474 75.0171 21.4047C75.0171 22.6822 75.402 23.7063 76.1719 24.4768C76.962 25.2474 77.9749 25.6327 79.2107 25.6327Z' fill='%23F7F7F7'/%3E%3Cpath d='M91.1242 6.25684H95.7128V15.8079C96.4016 15.0981 97.1816 14.5709 98.0527 14.2262C98.9239 13.8612 99.8558 13.6787 100.848 13.6787C102.834 13.6787 104.313 14.216 105.285 15.2908C106.278 16.3453 106.774 17.7749 106.774 19.5796V28.7353H102.186V20.0967C102.186 18.2109 101.314 17.2679 99.5722 17.2679C98.8023 17.2679 98.0831 17.4606 97.4146 17.8458C96.746 18.2109 96.1788 18.7584 95.7128 19.4884V28.7353H91.1242V6.25684Z' fill='%23F7F7F7'/%3E%3Cpath d='M115.928 29.1915C114.226 29.1915 112.93 28.7251 112.039 27.7923C111.167 26.8392 110.732 25.5212 110.732 23.8381V17.4504H108.605V14.1349H110.732V9.75483H115.32V14.1349H118.754V17.4504H115.32V23.2297C115.32 24.0814 115.483 24.6999 115.807 25.0852C116.131 25.4502 116.708 25.6327 117.539 25.6327C118.207 25.6327 118.846 25.4705 119.453 25.146V28.5832C118.521 28.9887 117.346 29.1915 115.928 29.1915Z' fill='%23F7F7F7'/%3E%3Cpath d='M121.572 6.25684H126.161V28.7353H121.572V6.25684Z' fill='%23F7F7F7'/%3E%3Cpath d='M133.358 34.7579C132.751 34.7579 132.123 34.7173 131.474 34.6362C130.846 34.5551 130.37 34.4436 130.046 34.3016V30.8645C130.634 31.0875 131.282 31.1991 131.991 31.1991C132.72 31.1991 133.267 31.0368 133.632 30.7124C134.017 30.3879 134.331 29.881 134.574 29.1915L135.06 27.9444L128.739 14.1349H133.358L137.491 24.2031L141.411 14.1349H146L139.801 29.739C139.112 31.4627 138.261 32.7301 137.248 33.5412C136.235 34.3523 134.939 34.7579 133.358 34.7579Z' fill='%23F7F7F7'/%3E%3C/svg%3E%0A"}}),require_NightlyConnectModal=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/connect-modal/src/NightlyConnectModal.js"(v){var k=v&&v.__createBinding||(Object.create?function(pe,ye,me,Ee){Ee===void 0&&(Ee=me);var cr=Object.getOwnPropertyDescriptor(ye,me);(!cr||("get"in cr?!ye.__esModule:cr.writable||cr.configurable))&&(cr={enumerable:!0,get:function(){return ye[me]}}),Object.defineProperty(pe,Ee,cr)}:function(pe,ye,me,Ee){Ee===void 0&&(Ee=me),pe[Ee]=ye[me]}),ie=v&&v.__setModuleDefault||(Object.create?function(pe,ye){Object.defineProperty(pe,"default",{enumerable:!0,value:ye})}:function(pe,ye){pe.default=ye}),ae=v&&v.__importStar||function(pe){if(pe&&pe.__esModule)return pe;var ye={};if(pe!=null)for(var me in pe)me!=="default"&&Object.prototype.hasOwnProperty.call(pe,me)&&k(ye,pe,me);return ie(ye,pe),ye};Object.defineProperty(v,"__esModule",{value:!0}),v.NightlyConnectModal=void 0;var ce=require_nightly_qr_code(),fe=require_style(),le=ae(require_assets()),ve=class{openModal(pe,ye){var me,Ee;if(!this._styleElement){const cr=document.createElement("style");cr.textContent=fe.modalStyle,this._styleElement=cr,((me=document.head)!==null&&me!==void 0?me:document.getElementsByTagName("head")[0]).appendChild(this._styleElement)}if(!this._anchorElement){const cr=document.createElement("div");cr.style.position="relative",document.body.appendChild(cr),this._anchorElement=cr}if(pe!==this._lastSessionId||ye!==this._network||!this._modalElement){this._lastSessionId=pe,this._network=ye;const cr=document.createElement("div");cr.classList.add("nightlyConnect_topRow");const Br=document.createElement("img");Br.classList.add("nightlyConnect_logo"),Br.setAttribute("src",le.logo),cr.appendChild(Br);const $r=document.createElement("img");$r.classList.add("nightlyConnect_close"),$r.setAttribute("src",le.close),$r.addEventListener("click",()=>{this.closeModal()}),cr.appendChild($r);const Pr=document.createElement("div");Pr.classList.add("nightlyConnect_qrWrapper");const Ar=(0,ce.generateNightlyQRCodeXML)("nightlyconnect:"+pe+"?network="+ye,{width:440,height:440,margin:4}),ur=btoa(Ar),jr=document.createElement("img");jr.classList.add("nightlyConnect_qrImg"),jr.setAttribute("src","data:image/svg+xml;base64,"+ur),Pr.appendChild(jr);const Mr=document.createElement("div");Mr.classList.add("nightlyConnect_bottomRow");const Lr=document.createElement("span");Lr.classList.add("nightlyConnect_desc"),Lr.textContent="Scan the QR code with Nightly Wallet and approve the action.",Mr.appendChild(Lr);const Vr=document.createElement("button");Vr.classList.add("nightlyConnect_copyButton"),Vr.textContent="Copy QR",Vr.addEventListener("click",()=>{this.copySessionId()}),Mr.appendChild(Vr);const Gr=document.createElement("div");Gr.classList.add("nightlyConnect_wrapper"),Gr.appendChild(cr),Gr.appendChild(Pr),Gr.appendChild(Mr);const Ur=document.createElement("div");Ur.classList.add("nightlyConnect_overlay"),Ur.appendChild(Gr),this._anchorElement.replaceChildren(Ur),this._modalElement=Ur}this._modalElement.style.display="",(Ee=this.onOpen)===null||Ee===void 0||Ee.call(this)}closeModal(){var pe;this._modalElement&&(this._modalElement.style.display="none",(pe=this.onClose)===null||pe===void 0||pe.call(this))}copySessionId(){this._lastSessionId&&navigator.clipboard.writeText("nightlyconnect:"+this._lastSessionId+"?network="+this._network)}};v.NightlyConnectModal=ve}}),require_types$3=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/common/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.RankingHomeCollectionEnum=v.CollectionCategory=v.NotificationType=v.Device=v.NETWORK_TICKERS=v.NETWORK=void 0;var k;(function(ie){ie.SOLANA="SOLANA",ie.NEAR="NEAR",ie.APTOS="APTOS"})(k=v.NETWORK||(v.NETWORK={})),v.NETWORK_TICKERS={[k.APTOS]:"APT",[k.SOLANA]:"SOL",[k.NEAR]:"NEAR"},function(ie){ie.Apple="Apple",ie.Android="Android"}(v.Device||(v.Device={})),function(ie){ie.NIGHTLY_CONNECT_REQUEST="NIGHTLY_CONNECT_REQUEST"}(v.NotificationType||(v.NotificationType={})),function(ie){ie.PFP="PFP",ie.ART="ART",ie.MUSIC="MUSIC",ie.METAVERSE="METAVERSE",ie.GAMES="GAMES",ie.SPORTS="SPORTS",ie.NSFW="NSFW",ie.EARNING="EARNING",ie.UTILITY="UTILITY",ie.VIRTUAL_WORLDS="VIRTUAL_WORLDS",ie.TRADING_CARDS="TRADING_CARDS",ie.OTHER="OTHER"}(v.CollectionCategory||(v.CollectionCategory={})),function(ie){ie.BLOCKCHAIN="BLOCKCHAIN",ie.TIME="TIME",ie.CATEGORY="CATEGORY"}(v.RankingHomeCollectionEnum||(v.RankingHomeCollectionEnum={}))}}),require_browser2$2=__commonJS$1({"node_modules/isomorphic-ws/browser.js"(v,k){var ie=null;typeof WebSocket<"u"?ie=WebSocket:typeof MozWebSocket<"u"?ie=MozWebSocket:typeof globalThis<"u"?ie=globalThis.WebSocket||globalThis.MozWebSocket:typeof window<"u"?ie=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(ie=self.WebSocket||self.MozWebSocket),k.exports=ie}}),require_keystore=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/key_stores/keystore.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyStore=void 0;var k=class{};v.KeyStore=k}}),require_serialize=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/serialize.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_lib();Object.defineProperty(v,"base_encode",{enumerable:!0,get:function(){return k.baseEncode}}),Object.defineProperty(v,"base_decode",{enumerable:!0,get:function(){return k.baseDecode}}),Object.defineProperty(v,"serialize",{enumerable:!0,get:function(){return k.serialize}}),Object.defineProperty(v,"deserialize",{enumerable:!0,get:function(){return k.deserialize}}),Object.defineProperty(v,"BorshError",{enumerable:!0,get:function(){return k.BorshError}}),Object.defineProperty(v,"BinaryWriter",{enumerable:!0,get:function(){return k.BinaryWriter}}),Object.defineProperty(v,"BinaryReader",{enumerable:!0,get:function(){return k.BinaryReader}})}}),require_enums=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/enums.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Assignable=v.Enum=void 0;var k=class{constructor(ae){if(Object.keys(ae).length!==1)throw new Error("Enum can only take single value");Object.keys(ae).map(ce=>{this[ce]=ae[ce],this.enum=ce})}};v.Enum=k;var ie=class{constructor(ae){Object.keys(ae).map(ce=>{this[ce]=ae[ce]})}};v.Assignable=ie}}),require_key_pair=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/key_pair.js"(v){var k=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.KeyPairEd25519=v.KeyPair=v.PublicKey=v.KeyType=void 0;var ie=k(require_nacl_fast()),ae=require_serialize(),ce=require_enums(),fe;(function(Ee){Ee[Ee.ED25519=0]="ED25519"})(fe=v.KeyType||(v.KeyType={}));function le(Ee){switch(Ee){case fe.ED25519:return"ed25519";default:throw new Error(`Unknown key type ${Ee}`)}}function ve(Ee){switch(Ee.toLowerCase()){case"ed25519":return fe.ED25519;default:throw new Error(`Unknown key type ${Ee}`)}}var pe=class extends ce.Assignable{static from(Ee){return typeof Ee=="string"?pe.fromString(Ee):Ee}static fromString(Ee){const cr=Ee.split(":");if(cr.length===1)return new pe({keyType:fe.ED25519,data:ae.base_decode(cr[0])});if(cr.length===2)return new pe({keyType:ve(cr[0]),data:ae.base_decode(cr[1])});throw new Error("Invalid encoded key format, must be :")}toString(){return`${le(this.keyType)}:${ae.base_encode(this.data)}`}verify(Ee,cr){switch(this.keyType){case fe.ED25519:return ie.default.sign.detached.verify(Ee,cr,this.data);default:throw new Error(`Unknown key type ${this.keyType}`)}}};v.PublicKey=pe;var ye=class{static fromRandom(Ee){switch(Ee.toUpperCase()){case"ED25519":return me.fromRandom();default:throw new Error(`Unknown curve ${Ee}`)}}static fromString(Ee){const cr=Ee.split(":");if(cr.length===1)return new me(cr[0]);if(cr.length===2)switch(cr[0].toUpperCase()){case"ED25519":return new me(cr[1]);default:throw new Error(`Unknown curve: ${cr[0]}`)}else throw new Error("Invalid encoded key format, must be :")}};v.KeyPair=ye;var me=class extends ye{constructor(Ee){super();const cr=ie.default.sign.keyPair.fromSecretKey(ae.base_decode(Ee));this.publicKey=new pe({keyType:fe.ED25519,data:cr.publicKey}),this.secretKey=Ee}static fromRandom(){const Ee=ie.default.sign.keyPair();return new me(ae.base_encode(Ee.secretKey))}sign(Ee){return{signature:ie.default.sign.detached(Ee,ae.base_decode(this.secretKey)),publicKey:this.publicKey}}verify(Ee,cr){return this.publicKey.verify(Ee,cr)}toString(){return`ed25519:${this.secretKey}`}getPublicKey(){return this.publicKey}};v.KeyPairEd25519=me}}),require_in_memory_key_store=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/key_stores/in_memory_key_store.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.InMemoryKeyStore=void 0;var k=require_keystore(),ie=require_key_pair(),ae=class extends k.KeyStore{constructor(){super(),this.keys={}}async setKey(ce,fe,le){this.keys[`${fe}:${ce}`]=le.toString()}async getKey(ce,fe){const le=this.keys[`${fe}:${ce}`];return le?ie.KeyPair.fromString(le):null}async removeKey(ce,fe){delete this.keys[`${fe}:${ce}`]}async clear(){this.keys={}}async getNetworks(){const ce=new Set;return Object.keys(this.keys).forEach(fe=>{const le=fe.split(":");ce.add(le[1])}),Array.from(ce.values())}async getAccounts(ce){const fe=new Array;return Object.keys(this.keys).forEach(le=>{const ve=le.split(":");ve[ve.length-1]===ce&&fe.push(ve.slice(0,ve.length-1).join(":"))}),fe}toString(){return"InMemoryKeyStore"}};v.InMemoryKeyStore=ae}}),require_browser_local_storage_key_store=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/key_stores/browser_local_storage_key_store.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.BrowserLocalStorageKeyStore=void 0;var k=require_keystore(),ie=require_key_pair(),ae="near-api-js:keystore:",ce=class extends k.KeyStore{constructor(fe=window.localStorage,le=ae){super(),this.localStorage=fe,this.prefix=le}async setKey(fe,le,ve){this.localStorage.setItem(this.storageKeyForSecretKey(fe,le),ve.toString())}async getKey(fe,le){const ve=this.localStorage.getItem(this.storageKeyForSecretKey(fe,le));return ve?ie.KeyPair.fromString(ve):null}async removeKey(fe,le){this.localStorage.removeItem(this.storageKeyForSecretKey(fe,le))}async clear(){for(const fe of this.storageKeys())fe.startsWith(this.prefix)&&this.localStorage.removeItem(fe)}async getNetworks(){const fe=new Set;for(const le of this.storageKeys())if(le.startsWith(this.prefix)){const ve=le.substring(this.prefix.length).split(":");fe.add(ve[1])}return Array.from(fe.values())}async getAccounts(fe){const le=new Array;for(const ve of this.storageKeys())if(ve.startsWith(this.prefix)){const pe=ve.substring(this.prefix.length).split(":");pe[1]===fe&&le.push(pe[0])}return le}storageKeyForSecretKey(fe,le){return`${this.prefix}${le}:${fe}`}*storageKeys(){for(let fe=0;fesetTimeout(ce,ae))}}}),require_errors$1=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.logWarning=v.ErrorContext=v.TypedError=v.ArgumentTypeError=v.PositionalArgsError=void 0;var k=class extends Error{constructor(){super("Contract method calls expect named arguments wrapped in object, e.g. { argName1: argValue1, argName2: argValue2 }")}};v.PositionalArgsError=k;var ie=class extends Error{constructor(le,ve,pe){super(`Expected ${ve} for '${le}' argument, but got '${JSON.stringify(pe)}'`)}};v.ArgumentTypeError=ie;var ae=class extends Error{constructor(le,ve,pe){super(le),this.type=ve||"UntypedError",this.context=pe}};v.TypedError=ae;var ce=class{constructor(le){this.transactionHash=le}};v.ErrorContext=ce;function fe(...le){process.env.NEAR_NO_LOGS||console.warn(...le)}v.logWarning=fe}}),require_web=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/web.js"(v){var k=v&&v.__importDefault||function(me){return me&&me.__esModule?me:{default:me}};Object.defineProperty(v,"__esModule",{value:!0}),v.fetchJson=void 0;var ie=k(require_http_errors()),ae=k(require_exponential_backoff()),ce=require_providers(),fe=require_errors$1(),le=1e3,ve=1.5,pe=10;async function ye(me,Ee){let cr={url:null};typeof me=="string"?cr.url=me:cr=me;const Br=await ae.default(le,pe,ve,async()=>{try{const $r=await fetch(cr.url,{method:Ee?"POST":"GET",body:Ee||void 0,headers:{...cr.headers,"Content-Type":"application/json"}});if(!$r.ok){if($r.status===503)return fe.logWarning(`Retrying HTTP request for ${cr.url} as it's not available now`),null;throw ie.default($r.status,await $r.text())}return $r}catch($r){if($r.toString().includes("FetchError")||$r.toString().includes("Failed to fetch"))return fe.logWarning(`Retrying HTTP request for ${cr.url} because of error: ${$r}`),null;throw $r}});if(!Br)throw new ce.TypedError(`Exceeded ${pe} attempts for ${cr.url}.`,"RetriesExceeded");return await Br.json()}v.fetchJson=ye}}),require_rpc_error_schema=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/generated/rpc_error_schema.json"(v,k){k.exports={schema:{BadUTF16:{name:"BadUTF16",subtypes:[],props:{}},BadUTF8:{name:"BadUTF8",subtypes:[],props:{}},BalanceExceeded:{name:"BalanceExceeded",subtypes:[],props:{}},BreakpointTrap:{name:"BreakpointTrap",subtypes:[],props:{}},CacheError:{name:"CacheError",subtypes:["ReadError","WriteError","DeserializationError","SerializationError"],props:{}},CallIndirectOOB:{name:"CallIndirectOOB",subtypes:[],props:{}},CannotAppendActionToJointPromise:{name:"CannotAppendActionToJointPromise",subtypes:[],props:{}},CannotReturnJointPromise:{name:"CannotReturnJointPromise",subtypes:[],props:{}},CodeDoesNotExist:{name:"CodeDoesNotExist",subtypes:[],props:{account_id:""}},CompilationError:{name:"CompilationError",subtypes:["CodeDoesNotExist","PrepareError","WasmerCompileError"],props:{}},ContractSizeExceeded:{name:"ContractSizeExceeded",subtypes:[],props:{limit:"",size:""}},Deprecated:{name:"Deprecated",subtypes:[],props:{method_name:""}},Deserialization:{name:"Deserialization",subtypes:[],props:{}},DeserializationError:{name:"DeserializationError",subtypes:[],props:{}},EmptyMethodName:{name:"EmptyMethodName",subtypes:[],props:{}},FunctionCallError:{name:"FunctionCallError",subtypes:["CompilationError","LinkError","MethodResolveError","WasmTrap","WasmUnknownError","HostError","EvmError"],props:{}},GasExceeded:{name:"GasExceeded",subtypes:[],props:{}},GasInstrumentation:{name:"GasInstrumentation",subtypes:[],props:{}},GasLimitExceeded:{name:"GasLimitExceeded",subtypes:[],props:{}},GenericTrap:{name:"GenericTrap",subtypes:[],props:{}},GuestPanic:{name:"GuestPanic",subtypes:[],props:{panic_msg:""}},HostError:{name:"HostError",subtypes:["BadUTF16","BadUTF8","GasExceeded","GasLimitExceeded","BalanceExceeded","EmptyMethodName","GuestPanic","IntegerOverflow","InvalidPromiseIndex","CannotAppendActionToJointPromise","CannotReturnJointPromise","InvalidPromiseResultIndex","InvalidRegisterId","IteratorWasInvalidated","MemoryAccessViolation","InvalidReceiptIndex","InvalidIteratorIndex","InvalidAccountId","InvalidMethodName","InvalidPublicKey","ProhibitedInView","NumberOfLogsExceeded","KeyLengthExceeded","ValueLengthExceeded","TotalLogLengthExceeded","NumberPromisesExceeded","NumberInputDataDependenciesExceeded","ReturnedValueLengthExceeded","ContractSizeExceeded","Deprecated"],props:{}},IllegalArithmetic:{name:"IllegalArithmetic",subtypes:[],props:{}},IncorrectCallIndirectSignature:{name:"IncorrectCallIndirectSignature",subtypes:[],props:{}},Instantiate:{name:"Instantiate",subtypes:[],props:{}},IntegerOverflow:{name:"IntegerOverflow",subtypes:[],props:{}},InternalMemoryDeclared:{name:"InternalMemoryDeclared",subtypes:[],props:{}},InvalidAccountId:{name:"InvalidAccountId",subtypes:[],props:{account_id:""}},InvalidIteratorIndex:{name:"InvalidIteratorIndex",subtypes:[],props:{iterator_index:""}},InvalidMethodName:{name:"InvalidMethodName",subtypes:[],props:{}},InvalidPromiseIndex:{name:"InvalidPromiseIndex",subtypes:[],props:{promise_idx:""}},InvalidPromiseResultIndex:{name:"InvalidPromiseResultIndex",subtypes:[],props:{result_idx:""}},InvalidPublicKey:{name:"InvalidPublicKey",subtypes:[],props:{}},InvalidReceiptIndex:{name:"InvalidReceiptIndex",subtypes:[],props:{receipt_index:""}},InvalidRegisterId:{name:"InvalidRegisterId",subtypes:[],props:{register_id:""}},IteratorWasInvalidated:{name:"IteratorWasInvalidated",subtypes:[],props:{iterator_index:""}},KeyLengthExceeded:{name:"KeyLengthExceeded",subtypes:[],props:{length:"",limit:""}},LinkError:{name:"LinkError",subtypes:[],props:{msg:""}},Memory:{name:"Memory",subtypes:[],props:{}},MemoryAccessViolation:{name:"MemoryAccessViolation",subtypes:[],props:{}},MemoryOutOfBounds:{name:"MemoryOutOfBounds",subtypes:[],props:{}},MethodEmptyName:{name:"MethodEmptyName",subtypes:[],props:{}},MethodInvalidSignature:{name:"MethodInvalidSignature",subtypes:[],props:{}},MethodNotFound:{name:"MethodNotFound",subtypes:[],props:{}},MethodResolveError:{name:"MethodResolveError",subtypes:["MethodEmptyName","MethodUTF8Error","MethodNotFound","MethodInvalidSignature"],props:{}},MethodUTF8Error:{name:"MethodUTF8Error",subtypes:[],props:{}},MisalignedAtomicAccess:{name:"MisalignedAtomicAccess",subtypes:[],props:{}},NumberInputDataDependenciesExceeded:{name:"NumberInputDataDependenciesExceeded",subtypes:[],props:{limit:"",number_of_input_data_dependencies:""}},NumberOfLogsExceeded:{name:"NumberOfLogsExceeded",subtypes:[],props:{limit:""}},NumberPromisesExceeded:{name:"NumberPromisesExceeded",subtypes:[],props:{limit:"",number_of_promises:""}},PrepareError:{name:"PrepareError",subtypes:["Serialization","Deserialization","InternalMemoryDeclared","GasInstrumentation","StackHeightInstrumentation","Instantiate","Memory"],props:{}},ProhibitedInView:{name:"ProhibitedInView",subtypes:[],props:{method_name:""}},ReadError:{name:"ReadError",subtypes:[],props:{}},ReturnedValueLengthExceeded:{name:"ReturnedValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},Serialization:{name:"Serialization",subtypes:[],props:{}},SerializationError:{name:"SerializationError",subtypes:[],props:{hash:""}},StackHeightInstrumentation:{name:"StackHeightInstrumentation",subtypes:[],props:{}},StackOverflow:{name:"StackOverflow",subtypes:[],props:{}},TotalLogLengthExceeded:{name:"TotalLogLengthExceeded",subtypes:[],props:{length:"",limit:""}},Unreachable:{name:"Unreachable",subtypes:[],props:{}},ValueLengthExceeded:{name:"ValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},WasmTrap:{name:"WasmTrap",subtypes:["Unreachable","IncorrectCallIndirectSignature","MemoryOutOfBounds","CallIndirectOOB","IllegalArithmetic","MisalignedAtomicAccess","BreakpointTrap","StackOverflow","GenericTrap"],props:{}},WasmUnknownError:{name:"WasmUnknownError",subtypes:[],props:{}},WasmerCompileError:{name:"WasmerCompileError",subtypes:[],props:{msg:""}},WriteError:{name:"WriteError",subtypes:[],props:{}},AccessKeyNotFound:{name:"AccessKeyNotFound",subtypes:[],props:{account_id:"",public_key:""}},AccountAlreadyExists:{name:"AccountAlreadyExists",subtypes:[],props:{account_id:""}},AccountDoesNotExist:{name:"AccountDoesNotExist",subtypes:[],props:{account_id:""}},ActionError:{name:"ActionError",subtypes:["AccountAlreadyExists","AccountDoesNotExist","CreateAccountOnlyByRegistrar","CreateAccountNotAllowed","ActorNoPermission","DeleteKeyDoesNotExist","AddKeyAlreadyExists","DeleteAccountStaking","LackBalanceForState","TriesToUnstake","TriesToStake","InsufficientStake","FunctionCallError","NewReceiptValidationError","OnlyImplicitAccountCreationAllowed"],props:{index:""}},ActionsValidationError:{name:"ActionsValidationError",subtypes:["DeleteActionMustBeFinal","TotalPrepaidGasExceeded","TotalNumberOfActionsExceeded","AddKeyMethodNamesNumberOfBytesExceeded","AddKeyMethodNameLengthExceeded","IntegerOverflow","InvalidAccountId","ContractSizeExceeded","FunctionCallMethodNameLengthExceeded","FunctionCallArgumentsLengthExceeded","UnsuitableStakingKey","FunctionCallZeroAttachedGas"],props:{}},ActorNoPermission:{name:"ActorNoPermission",subtypes:[],props:{account_id:"",actor_id:""}},AddKeyAlreadyExists:{name:"AddKeyAlreadyExists",subtypes:[],props:{account_id:"",public_key:""}},AddKeyMethodNameLengthExceeded:{name:"AddKeyMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},AddKeyMethodNamesNumberOfBytesExceeded:{name:"AddKeyMethodNamesNumberOfBytesExceeded",subtypes:[],props:{limit:"",total_number_of_bytes:""}},BalanceMismatchError:{name:"BalanceMismatchError",subtypes:[],props:{final_accounts_balance:"",final_postponed_receipts_balance:"",incoming_receipts_balance:"",incoming_validator_rewards:"",initial_accounts_balance:"",initial_postponed_receipts_balance:"",new_delayed_receipts_balance:"",other_burnt_amount:"",outgoing_receipts_balance:"",processed_delayed_receipts_balance:"",slashed_burnt_amount:"",tx_burnt_amount:""}},CostOverflow:{name:"CostOverflow",subtypes:[],props:{}},CreateAccountNotAllowed:{name:"CreateAccountNotAllowed",subtypes:[],props:{account_id:"",predecessor_id:""}},CreateAccountOnlyByRegistrar:{name:"CreateAccountOnlyByRegistrar",subtypes:[],props:{account_id:"",predecessor_id:"",registrar_account_id:""}},DeleteAccountStaking:{name:"DeleteAccountStaking",subtypes:[],props:{account_id:""}},DeleteActionMustBeFinal:{name:"DeleteActionMustBeFinal",subtypes:[],props:{}},DeleteKeyDoesNotExist:{name:"DeleteKeyDoesNotExist",subtypes:[],props:{account_id:"",public_key:""}},DepositWithFunctionCall:{name:"DepositWithFunctionCall",subtypes:[],props:{}},Expired:{name:"Expired",subtypes:[],props:{}},FunctionCallArgumentsLengthExceeded:{name:"FunctionCallArgumentsLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallMethodNameLengthExceeded:{name:"FunctionCallMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallZeroAttachedGas:{name:"FunctionCallZeroAttachedGas",subtypes:[],props:{}},InsufficientStake:{name:"InsufficientStake",subtypes:[],props:{account_id:"",minimum_stake:"",stake:""}},InvalidAccessKeyError:{name:"InvalidAccessKeyError",subtypes:["AccessKeyNotFound","ReceiverMismatch","MethodNameMismatch","RequiresFullAccess","NotEnoughAllowance","DepositWithFunctionCall"],props:{}},InvalidChain:{name:"InvalidChain",subtypes:[],props:{}},InvalidDataReceiverId:{name:"InvalidDataReceiverId",subtypes:[],props:{account_id:""}},InvalidNonce:{name:"InvalidNonce",subtypes:[],props:{ak_nonce:"",tx_nonce:""}},InvalidPredecessorId:{name:"InvalidPredecessorId",subtypes:[],props:{account_id:""}},InvalidReceiverId:{name:"InvalidReceiverId",subtypes:[],props:{account_id:""}},InvalidSignature:{name:"InvalidSignature",subtypes:[],props:{}},InvalidSignerId:{name:"InvalidSignerId",subtypes:[],props:{account_id:""}},InvalidTxError:{name:"InvalidTxError",subtypes:["InvalidAccessKeyError","InvalidSignerId","SignerDoesNotExist","InvalidNonce","InvalidReceiverId","InvalidSignature","NotEnoughBalance","LackBalanceForState","CostOverflow","InvalidChain","Expired","ActionsValidation"],props:{}},LackBalanceForState:{name:"LackBalanceForState",subtypes:[],props:{account_id:"",amount:""}},MethodNameMismatch:{name:"MethodNameMismatch",subtypes:[],props:{method_name:""}},NotEnoughAllowance:{name:"NotEnoughAllowance",subtypes:[],props:{account_id:"",allowance:"",cost:"",public_key:""}},NotEnoughBalance:{name:"NotEnoughBalance",subtypes:[],props:{balance:"",cost:"",signer_id:""}},OnlyImplicitAccountCreationAllowed:{name:"OnlyImplicitAccountCreationAllowed",subtypes:[],props:{account_id:""}},ReceiptValidationError:{name:"ReceiptValidationError",subtypes:["InvalidPredecessorId","InvalidReceiverId","InvalidSignerId","InvalidDataReceiverId","ReturnedValueLengthExceeded","NumberInputDataDependenciesExceeded","ActionsValidation"],props:{}},ReceiverMismatch:{name:"ReceiverMismatch",subtypes:[],props:{ak_receiver:"",tx_receiver:""}},RequiresFullAccess:{name:"RequiresFullAccess",subtypes:[],props:{}},SignerDoesNotExist:{name:"SignerDoesNotExist",subtypes:[],props:{signer_id:""}},TotalNumberOfActionsExceeded:{name:"TotalNumberOfActionsExceeded",subtypes:[],props:{limit:"",total_number_of_actions:""}},TotalPrepaidGasExceeded:{name:"TotalPrepaidGasExceeded",subtypes:[],props:{limit:"",total_prepaid_gas:""}},TriesToStake:{name:"TriesToStake",subtypes:[],props:{account_id:"",balance:"",locked:"",stake:""}},TriesToUnstake:{name:"TriesToUnstake",subtypes:[],props:{account_id:""}},TxExecutionError:{name:"TxExecutionError",subtypes:["ActionError","InvalidTxError"],props:{}},UnsuitableStakingKey:{name:"UnsuitableStakingKey",subtypes:[],props:{public_key:""}},Closed:{name:"Closed",subtypes:[],props:{}},InternalError:{name:"InternalError",subtypes:[],props:{}},ServerError:{name:"ServerError",subtypes:["TxExecutionError","Timeout","Closed","InternalError"],props:{}},Timeout:{name:"Timeout",subtypes:[],props:{}}}}}}),require_error_messages=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/res/error_messages.json"(v,k){k.exports={GasLimitExceeded:"Exceeded the maximum amount of gas allowed to burn per contract",MethodEmptyName:"Method name is empty",WasmerCompileError:"Wasmer compilation error: {{msg}}",GuestPanic:"Smart contract panicked: {{panic_msg}}",Memory:"Error creating Wasm memory",GasExceeded:"Exceeded the prepaid gas",MethodUTF8Error:"Method name is not valid UTF8 string",BadUTF16:"String encoding is bad UTF-16 sequence",WasmTrap:"WebAssembly trap: {{msg}}",GasInstrumentation:"Gas instrumentation failed or contract has denied instructions.",InvalidPromiseIndex:"{{promise_idx}} does not correspond to existing promises",InvalidPromiseResultIndex:"Accessed invalid promise result index: {{result_idx}}",Deserialization:"Error happened while deserializing the module",MethodNotFound:"Contract method is not found",InvalidRegisterId:"Accessed invalid register id: {{register_id}}",InvalidReceiptIndex:"VM Logic returned an invalid receipt index: {{receipt_index}}",EmptyMethodName:"Method name is empty in contract call",CannotReturnJointPromise:"Returning joint promise is currently prohibited",StackHeightInstrumentation:"Stack instrumentation failed",CodeDoesNotExist:"Cannot find contract code for account {{account_id}}",MethodInvalidSignature:"Invalid method signature",IntegerOverflow:"Integer overflow happened during contract execution",MemoryAccessViolation:"MemoryAccessViolation",InvalidIteratorIndex:"Iterator index {{iterator_index}} does not exist",IteratorWasInvalidated:"Iterator {{iterator_index}} was invalidated after its creation by performing a mutable operation on trie",InvalidAccountId:"VM Logic returned an invalid account id",Serialization:"Error happened while serializing the module",CannotAppendActionToJointPromise:"Actions can only be appended to non-joint promise.",InternalMemoryDeclared:"Internal memory declaration has been found in the module",Instantiate:"Error happened during instantiation",ProhibitedInView:"{{method_name}} is not allowed in view calls",InvalidMethodName:"VM Logic returned an invalid method name",BadUTF8:"String encoding is bad UTF-8 sequence",BalanceExceeded:"Exceeded the account balance",LinkError:"Wasm contract link error: {{msg}}",InvalidPublicKey:"VM Logic provided an invalid public key",ActorNoPermission:"Actor {{actor_id}} doesn't have permission to account {{account_id}} to complete the action",LackBalanceForState:"The account {{account_id}} wouldn't have enough balance to cover storage, required to have {{amount}} yoctoNEAR more",ReceiverMismatch:"Wrong AccessKey used for transaction: transaction is sent to receiver_id={{tx_receiver}}, but is signed with function call access key that restricted to only use with receiver_id={{ak_receiver}}. Either change receiver_id in your transaction or switch to use a FullAccessKey.",CostOverflow:"Transaction gas or balance cost is too high",InvalidSignature:"Transaction is not signed with the given public key",AccessKeyNotFound:`Signer "{{account_id}}" doesn't have access key with the given public_key {{public_key}}`,NotEnoughBalance:"Sender {{signer_id}} does not have enough balance {{#formatNear}}{{balance}}{{/formatNear}} for operation costing {{#formatNear}}{{cost}}{{/formatNear}}",NotEnoughAllowance:"Access Key {account_id}:{public_key} does not have enough balance {{#formatNear}}{{allowance}}{{/formatNear}} for transaction costing {{#formatNear}}{{cost}}{{/formatNear}}",Expired:"Transaction has expired",DeleteAccountStaking:"Account {{account_id}} is staking and can not be deleted",SignerDoesNotExist:"Signer {{signer_id}} does not exist",TriesToStake:"Account {{account_id}} tried to stake {{#formatNear}}{{stake}}{{/formatNear}}, but has staked {{#formatNear}}{{locked}}{{/formatNear}} and only has {{#formatNear}}{{balance}}{{/formatNear}}",AddKeyAlreadyExists:"The public key {{public_key}} is already used for an existing access key",InvalidSigner:"Invalid signer account ID {{signer_id}} according to requirements",CreateAccountNotAllowed:"The new account_id {{account_id}} can't be created by {{predecessor_id}}",RequiresFullAccess:"The transaction contains more then one action, but it was signed with an access key which allows transaction to apply only one specific action. To apply more then one actions TX must be signed with a full access key",TriesToUnstake:"Account {{account_id}} is not yet staked, but tried to unstake",InvalidNonce:"Transaction nonce {{tx_nonce}} must be larger than nonce of the used access key {{ak_nonce}}",AccountAlreadyExists:"Can't create a new account {{account_id}}, because it already exists",InvalidChain:"Transaction parent block hash doesn't belong to the current chain",AccountDoesNotExist:"Can't complete the action because account {{account_id}} doesn't exist",MethodNameMismatch:"Transaction method name {{method_name}} isn't allowed by the access key",DeleteAccountHasRent:"Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover the rent",DeleteAccountHasEnoughBalance:"Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover it's storage",InvalidReceiver:"Invalid receiver account ID {{receiver_id}} according to requirements",DeleteKeyDoesNotExist:"Account {{account_id}} tries to remove an access key that doesn't exist",Timeout:"Timeout exceeded",Closed:"Connection closed"}}}),require_rpc_errors=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/rpc_errors.js"(v){var k=v&&v.__importDefault||function(ur){return ur&&ur.__esModule?ur:{default:ur}};Object.defineProperty(v,"__esModule",{value:!0}),v.getErrorTypeFromErrorMessage=v.formatError=v.parseResultError=v.parseRpcError=v.ServerError=void 0;var ie=k(require_mustache()),ae=k(require_rpc_error_schema()),ce=k(require_error_messages()),fe=require_common_index(),le=require_errors$1(),ve={formatNear:()=>(ur,jr)=>fe.utils.format.formatNearAmount(jr(ur))},pe=class extends le.TypedError{};v.ServerError=pe;var ye=class extends pe{};function me(ur){const jr={},Mr=Br(ur,ae.default.schema,jr,""),Lr=new pe(cr(Mr,jr),Mr);return Object.assign(Lr,jr),Lr}v.parseRpcError=me;function Ee(ur){const jr=me(ur.status.Failure),Mr=new ye;return Object.assign(Mr,jr),Mr.type=jr.type,Mr.message=jr.message,Mr.transaction_outcome=ur.transaction_outcome,Mr}v.parseResultError=Ee;function cr(ur,jr){return typeof ce.default[ur]=="string"?ie.default.render(ce.default[ur],{...jr,...ve}):JSON.stringify(jr)}v.formatError=cr;function Br(ur,jr,Mr,Lr){let Vr,Gr,Ur;for(const Qr in jr){if(Ar(ur[Qr]))return ur[Qr];if(Pr(ur[Qr]))Vr=ur[Qr],Gr=jr[Qr],Ur=Qr;else if(Pr(ur.kind)&&Pr(ur.kind[Qr]))Vr=ur.kind[Qr],Gr=jr[Qr],Ur=Qr;else continue}if(Vr&&Gr){for(const Qr of Object.keys(Gr.props))Mr[Qr]=Vr[Qr];return Br(Vr,jr,Mr,Ur)}else return Mr.kind=ur,Lr}function $r(ur){switch(!0){case/^account .*? does not exist while viewing$/.test(ur):return"AccountDoesNotExist";case/^Account .*? doesn't exist$/.test(ur):return"AccountDoesNotExist";case/^access key .*? does not exist while viewing$/.test(ur):return"AccessKeyDoesNotExist";case/wasm execution failed with error: FunctionCallError\(CompilationError\(CodeDoesNotExist/.test(ur):return"CodeDoesNotExist";case/Transaction nonce \d+ must be larger than nonce of the used access key \d+/.test(ur):return"InvalidNonce";default:return"UntypedError"}}v.getErrorTypeFromErrorMessage=$r;function Pr(ur){return Object.prototype.toString.call(ur)==="[object Object]"}function Ar(ur){return Object.prototype.toString.call(ur)==="[object String]"}}}),require_json_rpc_provider=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/providers/json-rpc-provider.js"(v){var k=v&&v.__importDefault||function($r){return $r&&$r.__esModule?$r:{default:$r}};Object.defineProperty(v,"__esModule",{value:!0}),v.JsonRpcProvider=v.ErrorContext=v.TypedError=void 0;var ie=k(require_browser$3()),ae=require_provider$1(),ce=require_web(),fe=require_errors$1();Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return fe.TypedError}}),Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return fe.ErrorContext}});var le=require_lib(),ve=k(require_exponential_backoff()),pe=require_rpc_errors(),ye=12,me=500,Ee=1.5,cr=123,Br=class extends ae.Provider{constructor($r){super(),$r!=null&&typeof $r=="object"?this.connection=$r:(ie.default("JsonRpcProvider(url?: string)")("use `JsonRpcProvider(connectionInfo: ConnectionInfo)` instead"),this.connection={url:$r})}async status(){return this.sendJsonRpc("status",[])}async sendTransaction($r){const Pr=$r.encode();return this.sendJsonRpc("broadcast_tx_commit",[Buffer.from(Pr).toString("base64")])}async sendTransactionAsync($r){const Pr=$r.encode();return this.sendJsonRpc("broadcast_tx_async",[Buffer.from(Pr).toString("base64")])}async txStatus($r,Pr){return typeof $r=="string"?this.txStatusString($r,Pr):this.txStatusUint8Array($r,Pr)}async txStatusUint8Array($r,Pr){return this.sendJsonRpc("tx",[le.baseEncode($r),Pr])}async txStatusString($r,Pr){return this.sendJsonRpc("tx",[$r,Pr])}async txStatusReceipts($r,Pr){return this.sendJsonRpc("EXPERIMENTAL_tx_status",[le.baseEncode($r),Pr])}async query(...$r){let Pr;if($r.length===1)Pr=await this.sendJsonRpc("query",$r[0]);else{const[Ar,ur]=$r;Pr=await this.sendJsonRpc("query",[Ar,ur])}if(Pr&&Pr.error)throw new fe.TypedError(`Querying ${$r} failed: ${Pr.error}. +${JSON.stringify(Pr,null,2)}`,pe.getErrorTypeFromErrorMessage(Pr.error));return Pr}async block($r){const{finality:Pr}=$r;let{blockId:Ar}=$r;return typeof $r!="object"&&(ie.default("JsonRpcProvider.block(blockId)")("use `block({ blockId })` or `block({ finality })` instead"),Ar=$r),this.sendJsonRpc("block",{block_id:Ar,finality:Pr})}async blockChanges($r){const{finality:Pr}=$r,{blockId:Ar}=$r;return this.sendJsonRpc("EXPERIMENTAL_changes_in_block",{block_id:Ar,finality:Pr})}async chunk($r){return this.sendJsonRpc("chunk",[$r])}async validators($r){return this.sendJsonRpc("validators",[$r])}async experimental_genesisConfig(){return ie.default("JsonRpcProvider.experimental_protocolConfig()")("use `experimental_protocolConfig({ sync_checkpoint: 'genesis' })` to fetch the up-to-date or genesis protocol config explicitly"),await this.sendJsonRpc("EXPERIMENTAL_protocol_config",{sync_checkpoint:"genesis"})}async experimental_protocolConfig($r){return await this.sendJsonRpc("EXPERIMENTAL_protocol_config",$r)}async experimental_lightClientProof($r){return ie.default("JsonRpcProvider.experimental_lightClientProof(request)")("use `lightClientProof` instead"),await this.lightClientProof($r)}async lightClientProof($r){return await this.sendJsonRpc("EXPERIMENTAL_light_client_proof",$r)}async accessKeyChanges($r,Pr){const{finality:Ar}=Pr,{blockId:ur}=Pr;return this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"all_access_key_changes",account_ids:$r,block_id:ur,finality:Ar})}async singleAccessKeyChanges($r,Pr){const{finality:Ar}=Pr,{blockId:ur}=Pr;return this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"single_access_key_changes",keys:$r,block_id:ur,finality:Ar})}async accountChanges($r,Pr){const{finality:Ar}=Pr,{blockId:ur}=Pr;return this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"account_changes",account_ids:$r,block_id:ur,finality:Ar})}async contractStateChanges($r,Pr,Ar=""){const{finality:ur}=Pr,{blockId:jr}=Pr;return this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"data_changes",account_ids:$r,key_prefix_base64:Ar,block_id:jr,finality:ur})}async contractCodeChanges($r,Pr){const{finality:Ar}=Pr,{blockId:ur}=Pr;return this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"contract_code_changes",account_ids:$r,block_id:ur,finality:Ar})}async gasPrice($r){return await this.sendJsonRpc("gas_price",[$r])}async sendJsonRpc($r,Pr){const Ar=await ve.default(me,ye,Ee,async()=>{try{const jr={method:$r,params:Pr,id:cr++,jsonrpc:"2.0"},Mr=await ce.fetchJson(this.connection,JSON.stringify(jr));if(Mr.error){if(typeof Mr.error.data=="object")throw typeof Mr.error.data.error_message=="string"&&typeof Mr.error.data.error_type=="string"?new fe.TypedError(Mr.error.data.error_message,Mr.error.data.error_type):pe.parseRpcError(Mr.error.data);{const Lr=`[${Mr.error.code}] ${Mr.error.message}: ${Mr.error.data}`;throw Mr.error.data==="Timeout"||Lr.includes("Timeout error")||Lr.includes("query has timed out")?new fe.TypedError(Lr,"TimeoutError"):new fe.TypedError(Lr,pe.getErrorTypeFromErrorMessage(Mr.error.data))}}return Mr}catch(jr){if(jr.type==="TimeoutError")return process.env.NEAR_NO_LOGS||console.warn(`Retrying request to ${$r} as it has timed out`,Pr),null;throw jr}}),{result:ur}=Ar;if(typeof ur>"u")throw new fe.TypedError(`Exceeded ${ye} attempts for request to ${$r}.`,"RetriesExceeded");return ur}};v.JsonRpcProvider=Br}}),require_providers=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/providers/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ErrorContext=v.TypedError=v.getTransactionLastResult=v.FinalExecutionStatusBasic=v.JsonRpcProvider=v.Provider=void 0;var k=require_provider$1();Object.defineProperty(v,"Provider",{enumerable:!0,get:function(){return k.Provider}}),Object.defineProperty(v,"getTransactionLastResult",{enumerable:!0,get:function(){return k.getTransactionLastResult}}),Object.defineProperty(v,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return k.FinalExecutionStatusBasic}});var ie=require_json_rpc_provider();Object.defineProperty(v,"JsonRpcProvider",{enumerable:!0,get:function(){return ie.JsonRpcProvider}}),Object.defineProperty(v,"TypedError",{enumerable:!0,get:function(){return ie.TypedError}}),Object.defineProperty(v,"ErrorContext",{enumerable:!0,get:function(){return ie.ErrorContext}})}}),require_bn=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/bn.js/lib/bn.js"(v,k){(function(ie,ae){function ce(Kr,be){if(!Kr)throw new Error(be||"Assertion failed")}function fe(Kr,be){Kr.super_=be;var kr=function(){};kr.prototype=be.prototype,Kr.prototype=new kr,Kr.prototype.constructor=Kr}function le(Kr,be,kr){if(le.isBN(Kr))return Kr;this.negative=0,this.words=null,this.length=0,this.red=null,Kr!==null&&((be==="le"||be==="be")&&(kr=be,be=10),this._init(Kr||0,be||10,kr||"be"))}typeof ie=="object"?ie.exports=le:ae.BN=le,le.BN=le,le.wordSize=26;var ve;try{typeof window<"u"&&typeof window.Buffer<"u"?ve=window.Buffer:ve=require_buffer2().Buffer}catch{}le.isBN=function(be){return be instanceof le?!0:be!==null&&typeof be=="object"&&be.constructor.wordSize===le.wordSize&&Array.isArray(be.words)},le.max=function(be,kr){return be.cmp(kr)>0?be:kr},le.min=function(be,kr){return be.cmp(kr)<0?be:kr},le.prototype._init=function(be,kr,xr){if(typeof be=="number")return this._initNumber(be,kr,xr);if(typeof be=="object")return this._initArray(be,kr,xr);kr==="hex"&&(kr=16),ce(kr===(kr|0)&&kr>=2&&kr<=36),be=be.toString().replace(/\s+/g,"");var Wr=0;be[0]==="-"&&(Wr++,this.negative=1),Wr=0;Wr-=3)Xr=be[Wr]|be[Wr-1]<<8|be[Wr-2]<<16,this.words[Jt]|=Xr<>>26-zr&67108863,zr+=24,zr>=26&&(zr-=26,Jt++);else if(xr==="le")for(Wr=0,Jt=0;Wr>>26-zr&67108863,zr+=24,zr>=26&&(zr-=26,Jt++);return this._strip()};function pe(Kr,be){var kr=Kr.charCodeAt(be);if(kr>=48&&kr<=57)return kr-48;if(kr>=65&&kr<=70)return kr-55;if(kr>=97&&kr<=102)return kr-87;ce(!1,"Invalid character in "+Kr)}function ye(Kr,be,kr){var xr=pe(Kr,kr);return kr-1>=be&&(xr|=pe(Kr,kr-1)<<4),xr}le.prototype._parseHex=function(be,kr,xr){this.length=Math.ceil((be.length-kr)/6),this.words=new Array(this.length);for(var Wr=0;Wr=kr;Wr-=2)zr=ye(be,kr,Wr)<=18?(Jt-=18,Xr+=1,this.words[Xr]|=zr>>>26):Jt+=8;else{var Jr=be.length-kr;for(Wr=Jr%2===0?kr+1:kr;Wr=18?(Jt-=18,Xr+=1,this.words[Xr]|=zr>>>26):Jt+=8}this._strip()};function me(Kr,be,kr,xr){for(var Wr=0,Jt=0,Xr=Math.min(Kr.length,kr),zr=be;zr=49?Jt=Jr-49+10:Jr>=17?Jt=Jr-17+10:Jt=Jr,ce(Jr>=0&&Jt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},le.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{le.prototype[Symbol.for("nodejs.util.inspect.custom")]=cr}catch{le.prototype.inspect=cr}else le.prototype.inspect=cr;function cr(){return(this.red?""}var Br=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],$r=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Pr=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];le.prototype.toString=function(be,kr){be=be||10,kr=kr|0||1;var xr;if(be===16||be==="hex"){xr="";for(var Wr=0,Jt=0,Xr=0;Xr>>24-Wr&16777215,Jt!==0||Xr!==this.length-1?xr=Br[6-Jr.length]+Jr+xr:xr=Jr+xr,Wr+=2,Wr>=26&&(Wr-=26,Xr--)}for(Jt!==0&&(xr=Jt.toString(16)+xr);xr.length%kr!==0;)xr="0"+xr;return this.negative!==0&&(xr="-"+xr),xr}if(be===(be|0)&&be>=2&&be<=36){var Nr=$r[be],Hr=Pr[be];xr="";var On=this.clone();for(On.negative=0;!On.isZero();){var Gn=On.modrn(Hr).toString(be);On=On.idivn(Hr),On.isZero()?xr=Gn+xr:xr=Br[Nr-Gn.length]+Gn+xr}for(this.isZero()&&(xr="0"+xr);xr.length%kr!==0;)xr="0"+xr;return this.negative!==0&&(xr="-"+xr),xr}ce(!1,"Base should be between 2 and 36")},le.prototype.toNumber=function(){var be=this.words[0];return this.length===2?be+=this.words[1]*67108864:this.length===3&&this.words[2]===1?be+=4503599627370496+this.words[1]*67108864:this.length>2&&ce(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-be:be},le.prototype.toJSON=function(){return this.toString(16,2)},ve&&(le.prototype.toBuffer=function(be,kr){return this.toArrayLike(ve,be,kr)}),le.prototype.toArray=function(be,kr){return this.toArrayLike(Array,be,kr)};var Ar=function(be,kr){return be.allocUnsafe?be.allocUnsafe(kr):new be(kr)};le.prototype.toArrayLike=function(be,kr,xr){this._strip();var Wr=this.byteLength(),Jt=xr||Math.max(1,Wr);ce(Wr<=Jt,"byte array longer than desired length"),ce(Jt>0,"Requested array length <= 0");var Xr=Ar(be,Jt),zr=kr==="le"?"LE":"BE";return this["_toArrayLike"+zr](Xr,Wr),Xr},le.prototype._toArrayLikeLE=function(be,kr){for(var xr=0,Wr=0,Jt=0,Xr=0;Jt>8&255),xr>16&255),Xr===6?(xr>24&255),Wr=0,Xr=0):(Wr=zr>>>24,Xr+=2)}if(xr=0&&(be[xr--]=zr>>8&255),xr>=0&&(be[xr--]=zr>>16&255),Xr===6?(xr>=0&&(be[xr--]=zr>>24&255),Wr=0,Xr=0):(Wr=zr>>>24,Xr+=2)}if(xr>=0)for(be[xr--]=Wr;xr>=0;)be[xr--]=0},Math.clz32?le.prototype._countBits=function(be){return 32-Math.clz32(be)}:le.prototype._countBits=function(be){var kr=be,xr=0;return kr>=4096&&(xr+=13,kr>>>=13),kr>=64&&(xr+=7,kr>>>=7),kr>=8&&(xr+=4,kr>>>=4),kr>=2&&(xr+=2,kr>>>=2),xr+kr},le.prototype._zeroBits=function(be){if(be===0)return 26;var kr=be,xr=0;return(kr&8191)===0&&(xr+=13,kr>>>=13),(kr&127)===0&&(xr+=7,kr>>>=7),(kr&15)===0&&(xr+=4,kr>>>=4),(kr&3)===0&&(xr+=2,kr>>>=2),(kr&1)===0&&xr++,xr},le.prototype.bitLength=function(){var be=this.words[this.length-1],kr=this._countBits(be);return(this.length-1)*26+kr};function ur(Kr){for(var be=new Array(Kr.bitLength()),kr=0;kr>>Wr&1}return be}le.prototype.zeroBits=function(){if(this.isZero())return 0;for(var be=0,kr=0;krbe.length?this.clone().ior(be):be.clone().ior(this)},le.prototype.uor=function(be){return this.length>be.length?this.clone().iuor(be):be.clone().iuor(this)},le.prototype.iuand=function(be){var kr;this.length>be.length?kr=be:kr=this;for(var xr=0;xrbe.length?this.clone().iand(be):be.clone().iand(this)},le.prototype.uand=function(be){return this.length>be.length?this.clone().iuand(be):be.clone().iuand(this)},le.prototype.iuxor=function(be){var kr,xr;this.length>be.length?(kr=this,xr=be):(kr=be,xr=this);for(var Wr=0;Wrbe.length?this.clone().ixor(be):be.clone().ixor(this)},le.prototype.uxor=function(be){return this.length>be.length?this.clone().iuxor(be):be.clone().iuxor(this)},le.prototype.inotn=function(be){ce(typeof be=="number"&&be>=0);var kr=Math.ceil(be/26)|0,xr=be%26;this._expand(kr),xr>0&&kr--;for(var Wr=0;Wr0&&(this.words[Wr]=~this.words[Wr]&67108863>>26-xr),this._strip()},le.prototype.notn=function(be){return this.clone().inotn(be)},le.prototype.setn=function(be,kr){ce(typeof be=="number"&&be>=0);var xr=be/26|0,Wr=be%26;return this._expand(xr+1),kr?this.words[xr]=this.words[xr]|1<be.length?(xr=this,Wr=be):(xr=be,Wr=this);for(var Jt=0,Xr=0;Xr>>26;for(;Jt!==0&&Xr>>26;if(this.length=xr.length,Jt!==0)this.words[this.length]=Jt,this.length++;else if(xr!==this)for(;Xrbe.length?this.clone().iadd(be):be.clone().iadd(this)},le.prototype.isub=function(be){if(be.negative!==0){be.negative=0;var kr=this.iadd(be);return be.negative=1,kr._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(be),this.negative=1,this._normSign();var xr=this.cmp(be);if(xr===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Wr,Jt;xr>0?(Wr=this,Jt=be):(Wr=be,Jt=this);for(var Xr=0,zr=0;zr>26,this.words[zr]=kr&67108863;for(;Xr!==0&&zr>26,this.words[zr]=kr&67108863;if(Xr===0&&zr>>26,On=Jr&67108863,Gn=Math.min(Nr,be.length-1),mn=Math.max(0,Nr-Kr.length+1);mn<=Gn;mn++){var Nn=Nr-mn|0;Wr=Kr.words[Nn]|0,Jt=be.words[mn]|0,Xr=Wr*Jt+On,Hr+=Xr/67108864|0,On=Xr&67108863}kr.words[Nr]=On|0,Jr=Hr|0}return Jr!==0?kr.words[Nr]=Jr|0:kr.length--,kr._strip()}var Mr=function(be,kr,xr){var Wr=be.words,Jt=kr.words,Xr=xr.words,zr=0,Jr,Nr,Hr,On=Wr[0]|0,Gn=On&8191,mn=On>>>13,Nn=Wr[1]|0,In=Nn&8191,bn=Nn>>>13,ii=Wr[2]|0,vn=ii&8191,pn=ii>>>13,Sn=Wr[3]|0,Qn=Sn&8191,Jn=Sn>>>13,ui=Wr[4]|0,gi=ui&8191,di=ui>>>13,Ci=Wr[5]|0,yi=Ci&8191,li=Ci>>>13,Pi=Wr[6]|0,Ai=Pi&8191,Oi=Pi>>>13,to=Wr[7]|0,En=to&8191,Bt=to>>>13,Zt=Wr[8]|0,Tn=Zt&8191,ei=Zt>>>13,zn=Wr[9]|0,gn=zn&8191,xn=zn>>>13,Hn=Jt[0]|0,Ln=Hn&8191,ti=Hn>>>13,oi=Jt[1]|0,Ei=oi&8191,Ri=oi>>>13,Oo=Jt[2]|0,Ui=Oo&8191,io=Oo>>>13,So=Jt[3]|0,$o=So&8191,mo=So>>>13,qo=Jt[4]|0,wo=qo&8191,Eo=qo>>>13,jo=Jt[5]|0,go=jo&8191,zi=jo>>>13,xo=Jt[6]|0,Yr=xo&8191,Wt=xo>>>13,ln=Jt[7]|0,qr=ln&8191,dn=ln>>>13,ri=Jt[8]|0,Zn=ri&8191,ai=ri>>>13,bi=Jt[9]|0,_i=bi&8191,fi=bi>>>13;xr.negative=be.negative^kr.negative,xr.length=19,Jr=Math.imul(Gn,Ln),Nr=Math.imul(Gn,ti),Nr=Nr+Math.imul(mn,Ln)|0,Hr=Math.imul(mn,ti);var yo=(zr+Jr|0)+((Nr&8191)<<13)|0;zr=(Hr+(Nr>>>13)|0)+(yo>>>26)|0,yo&=67108863,Jr=Math.imul(In,Ln),Nr=Math.imul(In,ti),Nr=Nr+Math.imul(bn,Ln)|0,Hr=Math.imul(bn,ti),Jr=Jr+Math.imul(Gn,Ei)|0,Nr=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[17]=mi,Xr[18]=Si,zr!==0&&(Xr[19]=zr,xr.length++),xr};Math.imul||(Mr=jr);function Lr(Kr,be,kr){kr.negative=be.negative^Kr.negative,kr.length=Kr.length+be.length;for(var xr=0,Wr=0,Jt=0;Jt>>26)|0,Wr+=Xr>>>26,Xr&=67108863}kr.words[Jt]=zr,xr=Xr,Xr=Wr}return xr!==0?kr.words[Jt]=xr:kr.length--,kr._strip()}function Vr(Kr,be,kr){return Lr(Kr,be,kr)}le.prototype.mulTo=function(be,kr){var xr,Wr=this.length+be.length;return this.length===10&&be.length===10?xr=Mr(this,be,kr):Wr<63?xr=jr(this,be,kr):Wr<1024?xr=Lr(this,be,kr):xr=Vr(this,be,kr),xr},le.prototype.mul=function(be){var kr=new le(null);return kr.words=new Array(this.length+be.length),this.mulTo(be,kr)},le.prototype.mulf=function(be){var kr=new le(null);return kr.words=new Array(this.length+be.length),Vr(this,be,kr)},le.prototype.imul=function(be){return this.clone().mulTo(be,this)},le.prototype.imuln=function(be){var kr=be<0;kr&&(be=-be),ce(typeof be=="number"),ce(be<67108864);for(var xr=0,Wr=0;Wr>=26,xr+=Jt/67108864|0,xr+=Xr>>>26,this.words[Wr]=Xr&67108863}return xr!==0&&(this.words[Wr]=xr,this.length++),kr?this.ineg():this},le.prototype.muln=function(be){return this.clone().imuln(be)},le.prototype.sqr=function(){return this.mul(this)},le.prototype.isqr=function(){return this.imul(this.clone())},le.prototype.pow=function(be){var kr=ur(be);if(kr.length===0)return new le(1);for(var xr=this,Wr=0;Wr=0);var kr=be%26,xr=(be-kr)/26,Wr=67108863>>>26-kr<<26-kr,Jt;if(kr!==0){var Xr=0;for(Jt=0;Jt>>26-kr}Xr&&(this.words[Jt]=Xr,this.length++)}if(xr!==0){for(Jt=this.length-1;Jt>=0;Jt--)this.words[Jt+xr]=this.words[Jt];for(Jt=0;Jt=0);var Wr;kr?Wr=(kr-kr%26)/26:Wr=0;var Jt=be%26,Xr=Math.min((be-Jt)/26,this.length),zr=67108863^67108863>>>Jt<Xr)for(this.length-=Xr,Nr=0;Nr=0&&(Hr!==0||Nr>=Wr);Nr--){var On=this.words[Nr]|0;this.words[Nr]=Hr<<26-Jt|On>>>Jt,Hr=On&zr}return Jr&&Hr!==0&&(Jr.words[Jr.length++]=Hr),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},le.prototype.ishrn=function(be,kr,xr){return ce(this.negative===0),this.iushrn(be,kr,xr)},le.prototype.shln=function(be){return this.clone().ishln(be)},le.prototype.ushln=function(be){return this.clone().iushln(be)},le.prototype.shrn=function(be){return this.clone().ishrn(be)},le.prototype.ushrn=function(be){return this.clone().iushrn(be)},le.prototype.testn=function(be){ce(typeof be=="number"&&be>=0);var kr=be%26,xr=(be-kr)/26,Wr=1<=0);var kr=be%26,xr=(be-kr)/26;if(ce(this.negative===0,"imaskn works only with positive numbers"),this.length<=xr)return this;if(kr!==0&&xr++,this.length=Math.min(xr,this.length),kr!==0){var Wr=67108863^67108863>>>kr<=67108864;kr++)this.words[kr]-=67108864,kr===this.length-1?this.words[kr+1]=1:this.words[kr+1]++;return this.length=Math.max(this.length,kr+1),this},le.prototype.isubn=function(be){if(ce(typeof be=="number"),ce(be<67108864),be<0)return this.iaddn(-be);if(this.negative!==0)return this.negative=0,this.iaddn(be),this.negative=1,this;if(this.words[0]-=be,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var kr=0;kr>26)-(Jr/67108864|0),this.words[Jt+xr]=Xr&67108863}for(;Jt>26,this.words[Jt+xr]=Xr&67108863;if(zr===0)return this._strip();for(ce(zr===-1),zr=0,Jt=0;Jt>26,this.words[Jt]=Xr&67108863;return this.negative=1,this._strip()},le.prototype._wordDiv=function(be,kr){var xr=this.length-be.length,Wr=this.clone(),Jt=be,Xr=Jt.words[Jt.length-1]|0,zr=this._countBits(Xr);xr=26-zr,xr!==0&&(Jt=Jt.ushln(xr),Wr.iushln(xr),Xr=Jt.words[Jt.length-1]|0);var Jr=Wr.length-Jt.length,Nr;if(kr!=="mod"){Nr=new le(null),Nr.length=Jr+1,Nr.words=new Array(Nr.length);for(var Hr=0;Hr=0;Gn--){var mn=(Wr.words[Jt.length+Gn]|0)*67108864+(Wr.words[Jt.length+Gn-1]|0);for(mn=Math.min(mn/Xr|0,67108863),Wr._ishlnsubmul(Jt,mn,Gn);Wr.negative!==0;)mn--,Wr.negative=0,Wr._ishlnsubmul(Jt,1,Gn),Wr.isZero()||(Wr.negative^=1);Nr&&(Nr.words[Gn]=mn)}return Nr&&Nr._strip(),Wr._strip(),kr!=="div"&&xr!==0&&Wr.iushrn(xr),{div:Nr||null,mod:Wr}},le.prototype.divmod=function(be,kr,xr){if(ce(!be.isZero()),this.isZero())return{div:new le(0),mod:new le(0)};var Wr,Jt,Xr;return this.negative!==0&&be.negative===0?(Xr=this.neg().divmod(be,kr),kr!=="mod"&&(Wr=Xr.div.neg()),kr!=="div"&&(Jt=Xr.mod.neg(),xr&&Jt.negative!==0&&Jt.iadd(be)),{div:Wr,mod:Jt}):this.negative===0&&be.negative!==0?(Xr=this.divmod(be.neg(),kr),kr!=="mod"&&(Wr=Xr.div.neg()),{div:Wr,mod:Xr.mod}):(this.negative&be.negative)!==0?(Xr=this.neg().divmod(be.neg(),kr),kr!=="div"&&(Jt=Xr.mod.neg(),xr&&Jt.negative!==0&&Jt.isub(be)),{div:Xr.div,mod:Jt}):be.length>this.length||this.cmp(be)<0?{div:new le(0),mod:this}:be.length===1?kr==="div"?{div:this.divn(be.words[0]),mod:null}:kr==="mod"?{div:null,mod:new le(this.modrn(be.words[0]))}:{div:this.divn(be.words[0]),mod:new le(this.modrn(be.words[0]))}:this._wordDiv(be,kr)},le.prototype.div=function(be){return this.divmod(be,"div",!1).div},le.prototype.mod=function(be){return this.divmod(be,"mod",!1).mod},le.prototype.umod=function(be){return this.divmod(be,"mod",!0).mod},le.prototype.divRound=function(be){var kr=this.divmod(be);if(kr.mod.isZero())return kr.div;var xr=kr.div.negative!==0?kr.mod.isub(be):kr.mod,Wr=be.ushrn(1),Jt=be.andln(1),Xr=xr.cmp(Wr);return Xr<0||Jt===1&&Xr===0?kr.div:kr.div.negative!==0?kr.div.isubn(1):kr.div.iaddn(1)},le.prototype.modrn=function(be){var kr=be<0;kr&&(be=-be),ce(be<=67108863);for(var xr=(1<<26)%be,Wr=0,Jt=this.length-1;Jt>=0;Jt--)Wr=(xr*Wr+(this.words[Jt]|0))%be;return kr?-Wr:Wr},le.prototype.modn=function(be){return this.modrn(be)},le.prototype.idivn=function(be){var kr=be<0;kr&&(be=-be),ce(be<=67108863);for(var xr=0,Wr=this.length-1;Wr>=0;Wr--){var Jt=(this.words[Wr]|0)+xr*67108864;this.words[Wr]=Jt/be|0,xr=Jt%be}return this._strip(),kr?this.ineg():this},le.prototype.divn=function(be){return this.clone().idivn(be)},le.prototype.egcd=function(be){ce(be.negative===0),ce(!be.isZero());var kr=this,xr=be.clone();kr.negative!==0?kr=kr.umod(be):kr=kr.clone();for(var Wr=new le(1),Jt=new le(0),Xr=new le(0),zr=new le(1),Jr=0;kr.isEven()&&xr.isEven();)kr.iushrn(1),xr.iushrn(1),++Jr;for(var Nr=xr.clone(),Hr=kr.clone();!kr.isZero();){for(var On=0,Gn=1;(kr.words[0]&Gn)===0&&On<26;++On,Gn<<=1);if(On>0)for(kr.iushrn(On);On-- >0;)(Wr.isOdd()||Jt.isOdd())&&(Wr.iadd(Nr),Jt.isub(Hr)),Wr.iushrn(1),Jt.iushrn(1);for(var mn=0,Nn=1;(xr.words[0]&Nn)===0&&mn<26;++mn,Nn<<=1);if(mn>0)for(xr.iushrn(mn);mn-- >0;)(Xr.isOdd()||zr.isOdd())&&(Xr.iadd(Nr),zr.isub(Hr)),Xr.iushrn(1),zr.iushrn(1);kr.cmp(xr)>=0?(kr.isub(xr),Wr.isub(Xr),Jt.isub(zr)):(xr.isub(kr),Xr.isub(Wr),zr.isub(Jt))}return{a:Xr,b:zr,gcd:xr.iushln(Jr)}},le.prototype._invmp=function(be){ce(be.negative===0),ce(!be.isZero());var kr=this,xr=be.clone();kr.negative!==0?kr=kr.umod(be):kr=kr.clone();for(var Wr=new le(1),Jt=new le(0),Xr=xr.clone();kr.cmpn(1)>0&&xr.cmpn(1)>0;){for(var zr=0,Jr=1;(kr.words[0]&Jr)===0&&zr<26;++zr,Jr<<=1);if(zr>0)for(kr.iushrn(zr);zr-- >0;)Wr.isOdd()&&Wr.iadd(Xr),Wr.iushrn(1);for(var Nr=0,Hr=1;(xr.words[0]&Hr)===0&&Nr<26;++Nr,Hr<<=1);if(Nr>0)for(xr.iushrn(Nr);Nr-- >0;)Jt.isOdd()&&Jt.iadd(Xr),Jt.iushrn(1);kr.cmp(xr)>=0?(kr.isub(xr),Wr.isub(Jt)):(xr.isub(kr),Jt.isub(Wr))}var On;return kr.cmpn(1)===0?On=Wr:On=Jt,On.cmpn(0)<0&&On.iadd(be),On},le.prototype.gcd=function(be){if(this.isZero())return be.abs();if(be.isZero())return this.abs();var kr=this.clone(),xr=be.clone();kr.negative=0,xr.negative=0;for(var Wr=0;kr.isEven()&&xr.isEven();Wr++)kr.iushrn(1),xr.iushrn(1);do{for(;kr.isEven();)kr.iushrn(1);for(;xr.isEven();)xr.iushrn(1);var Jt=kr.cmp(xr);if(Jt<0){var Xr=kr;kr=xr,xr=Xr}else if(Jt===0||xr.cmpn(1)===0)break;kr.isub(xr)}while(!0);return xr.iushln(Wr)},le.prototype.invm=function(be){return this.egcd(be).a.umod(be)},le.prototype.isEven=function(){return(this.words[0]&1)===0},le.prototype.isOdd=function(){return(this.words[0]&1)===1},le.prototype.andln=function(be){return this.words[0]&be},le.prototype.bincn=function(be){ce(typeof be=="number");var kr=be%26,xr=(be-kr)/26,Wr=1<>>26,zr&=67108863,this.words[Xr]=zr}return Jt!==0&&(this.words[Xr]=Jt,this.length++),this},le.prototype.isZero=function(){return this.length===1&&this.words[0]===0},le.prototype.cmpn=function(be){var kr=be<0;if(this.negative!==0&&!kr)return-1;if(this.negative===0&&kr)return 1;this._strip();var xr;if(this.length>1)xr=1;else{kr&&(be=-be),ce(be<=67108863,"Number is too big");var Wr=this.words[0]|0;xr=Wr===be?0:Wrbe.length)return 1;if(this.length=0;xr--){var Wr=this.words[xr]|0,Jt=be.words[xr]|0;if(Wr!==Jt){WrJt&&(kr=1);break}}return kr},le.prototype.gtn=function(be){return this.cmpn(be)===1},le.prototype.gt=function(be){return this.cmp(be)===1},le.prototype.gten=function(be){return this.cmpn(be)>=0},le.prototype.gte=function(be){return this.cmp(be)>=0},le.prototype.ltn=function(be){return this.cmpn(be)===-1},le.prototype.lt=function(be){return this.cmp(be)===-1},le.prototype.lten=function(be){return this.cmpn(be)<=0},le.prototype.lte=function(be){return this.cmp(be)<=0},le.prototype.eqn=function(be){return this.cmpn(be)===0},le.prototype.eq=function(be){return this.cmp(be)===0},le.red=function(be){return new Qt(be)},le.prototype.toRed=function(be){return ce(!this.red,"Already a number in reduction context"),ce(this.negative===0,"red works only with positives"),be.convertTo(this)._forceRed(be)},le.prototype.fromRed=function(){return ce(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},le.prototype._forceRed=function(be){return this.red=be,this},le.prototype.forceRed=function(be){return ce(!this.red,"Already a number in reduction context"),this._forceRed(be)},le.prototype.redAdd=function(be){return ce(this.red,"redAdd works only with red numbers"),this.red.add(this,be)},le.prototype.redIAdd=function(be){return ce(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,be)},le.prototype.redSub=function(be){return ce(this.red,"redSub works only with red numbers"),this.red.sub(this,be)},le.prototype.redISub=function(be){return ce(this.red,"redISub works only with red numbers"),this.red.isub(this,be)},le.prototype.redShl=function(be){return ce(this.red,"redShl works only with red numbers"),this.red.shl(this,be)},le.prototype.redMul=function(be){return ce(this.red,"redMul works only with red numbers"),this.red._verify2(this,be),this.red.mul(this,be)},le.prototype.redIMul=function(be){return ce(this.red,"redMul works only with red numbers"),this.red._verify2(this,be),this.red.imul(this,be)},le.prototype.redSqr=function(){return ce(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},le.prototype.redISqr=function(){return ce(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},le.prototype.redSqrt=function(){return ce(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},le.prototype.redInvm=function(){return ce(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},le.prototype.redNeg=function(){return ce(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},le.prototype.redPow=function(be){return ce(this.red&&!be.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,be)};var Gr={k256:null,p224:null,p192:null,p25519:null};function Ur(Kr,be){this.name=Kr,this.p=new le(be,16),this.n=this.p.bitLength(),this.k=new le(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Ur.prototype._tmp=function(){var be=new le(null);return be.words=new Array(Math.ceil(this.n/13)),be},Ur.prototype.ireduce=function(be){var kr=be,xr;do this.split(kr,this.tmp),kr=this.imulK(kr),kr=kr.iadd(this.tmp),xr=kr.bitLength();while(xr>this.n);var Wr=xr0?kr.isub(this.p):kr.strip!==void 0?kr.strip():kr._strip(),kr},Ur.prototype.split=function(be,kr){be.iushrn(this.n,0,kr)},Ur.prototype.imulK=function(be){return be.imul(this.k)};function Qr(){Ur.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}fe(Qr,Ur),Qr.prototype.split=function(be,kr){for(var xr=4194303,Wr=Math.min(be.length,9),Jt=0;Jt>>22,Xr=zr}Xr>>>=22,be.words[Jt-10]=Xr,Xr===0&&be.length>10?be.length-=10:be.length-=9},Qr.prototype.imulK=function(be){be.words[be.length]=0,be.words[be.length+1]=0,be.length+=2;for(var kr=0,xr=0;xr>>=26,be.words[xr]=Jt,kr=Wr}return kr!==0&&(be.words[be.length++]=kr),be},le._prime=function(be){if(Gr[be])return Gr[be];var kr;if(be==="k256")kr=new Qr;else if(be==="p224")kr=new hn;else if(be==="p192")kr=new Yt;else if(be==="p25519")kr=new fn;else throw new Error("Unknown prime "+be);return Gr[be]=kr,kr};function Qt(Kr){if(typeof Kr=="string"){var be=le._prime(Kr);this.m=be.p,this.prime=be}else ce(Kr.gtn(1),"modulus must be greater than 1"),this.m=Kr,this.prime=null}Qt.prototype._verify1=function(be){ce(be.negative===0,"red works only with positives"),ce(be.red,"red works only with red numbers")},Qt.prototype._verify2=function(be,kr){ce((be.negative|kr.negative)===0,"red works only with positives"),ce(be.red&&be.red===kr.red,"red works only with red numbers")},Qt.prototype.imod=function(be){return this.prime?this.prime.ireduce(be)._forceRed(this):(Ee(be,be.umod(this.m)._forceRed(this)),be)},Qt.prototype.neg=function(be){return be.isZero()?be.clone():this.m.sub(be)._forceRed(this)},Qt.prototype.add=function(be,kr){this._verify2(be,kr);var xr=be.add(kr);return xr.cmp(this.m)>=0&&xr.isub(this.m),xr._forceRed(this)},Qt.prototype.iadd=function(be,kr){this._verify2(be,kr);var xr=be.iadd(kr);return xr.cmp(this.m)>=0&&xr.isub(this.m),xr},Qt.prototype.sub=function(be,kr){this._verify2(be,kr);var xr=be.sub(kr);return xr.cmpn(0)<0&&xr.iadd(this.m),xr._forceRed(this)},Qt.prototype.isub=function(be,kr){this._verify2(be,kr);var xr=be.isub(kr);return xr.cmpn(0)<0&&xr.iadd(this.m),xr},Qt.prototype.shl=function(be,kr){return this._verify1(be),this.imod(be.ushln(kr))},Qt.prototype.imul=function(be,kr){return this._verify2(be,kr),this.imod(be.imul(kr))},Qt.prototype.mul=function(be,kr){return this._verify2(be,kr),this.imod(be.mul(kr))},Qt.prototype.isqr=function(be){return this.imul(be,be.clone())},Qt.prototype.sqr=function(be){return this.mul(be,be)},Qt.prototype.sqrt=function(be){if(be.isZero())return be.clone();var kr=this.m.andln(3);if(ce(kr%2===1),kr===3){var xr=this.m.add(new le(1)).iushrn(2);return this.pow(be,xr)}for(var Wr=this.m.subn(1),Jt=0;!Wr.isZero()&&Wr.andln(1)===0;)Jt++,Wr.iushrn(1);ce(!Wr.isZero());var Xr=new le(1).toRed(this),zr=Xr.redNeg(),Jr=this.m.subn(1).iushrn(1),Nr=this.m.bitLength();for(Nr=new le(2*Nr*Nr).toRed(this);this.pow(Nr,Jr).cmp(zr)!==0;)Nr.redIAdd(zr);for(var Hr=this.pow(Nr,Wr),On=this.pow(be,Wr.addn(1).iushrn(1)),Gn=this.pow(be,Wr),mn=Jt;Gn.cmp(Xr)!==0;){for(var Nn=Gn,In=0;Nn.cmp(Xr)!==0;In++)Nn=Nn.redSqr();ce(In=0;Jt--){for(var Hr=kr.words[Jt],On=Nr-1;On>=0;On--){var Gn=Hr>>On&1;if(Xr!==Wr[0]&&(Xr=this.sqr(Xr)),Gn===0&&zr===0){Jr=0;continue}zr<<=1,zr|=Gn,Jr++,!(Jr!==xr&&(Jt!==0||On!==0))&&(Xr=this.mul(Xr,Wr[zr]),Jr=0,zr=0)}Nr=26}return Xr},Qt.prototype.convertTo=function(be){var kr=be.umod(this.m);return kr===be?kr.clone():kr},Qt.prototype.convertFrom=function(be){var kr=be.clone();return kr.red=null,kr},le.mont=function(be){return new Xt(be)};function Xt(Kr){Qt.call(this,Kr),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new le(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}fe(Xt,Qt),Xt.prototype.convertTo=function(be){return this.imod(be.ushln(this.shift))},Xt.prototype.convertFrom=function(be){var kr=this.imod(be.mul(this.rinv));return kr.red=null,kr},Xt.prototype.imul=function(be,kr){if(be.isZero()||kr.isZero())return be.words[0]=0,be.length=1,be;var xr=be.imul(kr),Wr=xr.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=xr.isub(Wr).iushrn(this.shift),Xr=Jt;return Jt.cmp(this.m)>=0?Xr=Jt.isub(this.m):Jt.cmpn(0)<0&&(Xr=Jt.iadd(this.m)),Xr._forceRed(this)},Xt.prototype.mul=function(be,kr){if(be.isZero()||kr.isZero())return new le(0)._forceRed(this);var xr=be.mul(kr),Wr=xr.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=xr.isub(Wr).iushrn(this.shift),Xr=Jt;return Jt.cmp(this.m)>=0?Xr=Jt.isub(this.m):Jt.cmpn(0)<0&&(Xr=Jt.iadd(this.m)),Xr._forceRed(this)},Xt.prototype.invm=function(be){var kr=this.imod(be._invmp(this.m).mul(this.r2));return kr._forceRed(this)}})(typeof k>"u"||k,v)}}),require_format=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/format.js"(v){var k=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.parseNearAmount=v.formatNearAmount=v.NEAR_NOMINATION=v.NEAR_NOMINATION_EXP=void 0;var ie=k(require_bn());v.NEAR_NOMINATION_EXP=24,v.NEAR_NOMINATION=new ie.default("10",10).pow(new ie.default(v.NEAR_NOMINATION_EXP,10));var ae=[],ce=new ie.default(10);for(let Ee=0,cr=new ie.default(5);Ee0&&Br.iadd(ae[Ar])}Ee=Br.toString();const $r=Ee.substring(0,Ee.length-v.NEAR_NOMINATION_EXP)||"0",Pr=Ee.substring(Ee.length-v.NEAR_NOMINATION_EXP).padStart(v.NEAR_NOMINATION_EXP,"0").substring(0,cr);return pe(`${me($r)}.${Pr}`)}v.formatNearAmount=fe;function le(Ee){if(!Ee)return null;Ee=ve(Ee);const cr=Ee.split("."),Br=cr[0],$r=cr[1]||"";if(cr.length>2||$r.length>v.NEAR_NOMINATION_EXP)throw new Error(`Cannot parse '${Ee}' as NEAR amount`);return ye(Br+$r.padEnd(v.NEAR_NOMINATION_EXP,"0"))}v.parseNearAmount=le;function ve(Ee){return Ee.replace(/,/g,"").trim()}function pe(Ee){return Ee.replace(/\.?0*$/,"")}function ye(Ee){return Ee=Ee.replace(/^0+/,""),Ee===""?"0":Ee}function me(Ee){const cr=/(-?\d+)(\d{3})/;for(;cr.test(Ee);)Ee=Ee.replace(cr,"$1,$2");return Ee}}}),require_utils$2=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/utils/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(cr,Br,$r,Pr){Pr===void 0&&(Pr=$r),Object.defineProperty(cr,Pr,{enumerable:!0,get:function(){return Br[$r]}})}:function(cr,Br,$r,Pr){Pr===void 0&&(Pr=$r),cr[Pr]=Br[$r]}),ie=v&&v.__setModuleDefault||(Object.create?function(cr,Br){Object.defineProperty(cr,"default",{enumerable:!0,value:Br})}:function(cr,Br){cr.default=Br}),ae=v&&v.__importStar||function(cr){if(cr&&cr.__esModule)return cr;var Br={};if(cr!=null)for(var $r in cr)$r!=="default"&&Object.hasOwnProperty.call(cr,$r)&&k(Br,cr,$r);return ie(Br,cr),Br};Object.defineProperty(v,"__esModule",{value:!0}),v.logWarning=v.rpc_errors=v.KeyPairEd25519=v.KeyPair=v.PublicKey=v.format=v.enums=v.web=v.serialize=v.key_pair=void 0;var ce=ae(require_key_pair());v.key_pair=ce;var fe=ae(require_serialize());v.serialize=fe;var le=ae(require_web());v.web=le;var ve=ae(require_enums());v.enums=ve;var pe=ae(require_format());v.format=pe;var ye=ae(require_rpc_errors());v.rpc_errors=ye;var me=require_key_pair();Object.defineProperty(v,"PublicKey",{enumerable:!0,get:function(){return me.PublicKey}}),Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return me.KeyPair}}),Object.defineProperty(v,"KeyPairEd25519",{enumerable:!0,get:function(){return me.KeyPairEd25519}});var Ee=require_errors$1();Object.defineProperty(v,"logWarning",{enumerable:!0,get:function(){return Ee.logWarning}})}}),require_transaction=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/transaction.js"(v){var k=v&&v.__importDefault||function(zr){return zr&&zr.__esModule?zr:{default:zr}};Object.defineProperty(v,"__esModule",{value:!0}),v.signTransaction=v.createTransaction=v.SCHEMA=v.Action=v.SignedTransaction=v.Transaction=v.Signature=v.deleteAccount=v.deleteKey=v.addKey=v.stake=v.transfer=v.functionCall=v.stringifyJsonOrBytes=v.deployContract=v.createAccount=v.DeleteAccount=v.DeleteKey=v.AddKey=v.Stake=v.Transfer=v.FunctionCall=v.DeployContract=v.CreateAccount=v.IAction=v.functionCallAccessKey=v.fullAccessKey=v.AccessKey=v.AccessKeyPermission=v.FullAccessPermission=v.FunctionCallPermission=void 0;var ie=k(require_sha256$2()),ae=require_enums(),ce=require_lib(),fe=require_key_pair(),le=class extends ae.Assignable{};v.FunctionCallPermission=le;var ve=class extends ae.Assignable{};v.FullAccessPermission=ve;var pe=class extends ae.Enum{};v.AccessKeyPermission=pe;var ye=class extends ae.Assignable{};v.AccessKey=ye;function me(){return new ye({nonce:0,permission:new pe({fullAccess:new ve({})})})}v.fullAccessKey=me;function Ee(zr,Jr,Nr){return new ye({nonce:0,permission:new pe({functionCall:new le({receiverId:zr,allowance:Nr,methodNames:Jr})})})}v.functionCallAccessKey=Ee;var cr=class extends ae.Assignable{};v.IAction=cr;var Br=class extends cr{};v.CreateAccount=Br;var $r=class extends cr{};v.DeployContract=$r;var Pr=class extends cr{};v.FunctionCall=Pr;var Ar=class extends cr{};v.Transfer=Ar;var ur=class extends cr{};v.Stake=ur;var jr=class extends cr{};v.AddKey=jr;var Mr=class extends cr{};v.DeleteKey=Mr;var Lr=class extends cr{};v.DeleteAccount=Lr;function Vr(){return new xr({createAccount:new Br({})})}v.createAccount=Vr;function Gr(zr){return new xr({deployContract:new $r({code:zr})})}v.deployContract=Gr;function Ur(zr){return zr.byteLength!==void 0&&zr.byteLength===zr.length?zr:Buffer.from(JSON.stringify(zr))}v.stringifyJsonOrBytes=Ur;function Qr(zr,Jr,Nr,Hr,On=Ur,Gn=!1){return Gn?new xr({functionCall:new Pr({methodName:zr,args:Jr,gas:Nr,deposit:Hr})}):new xr({functionCall:new Pr({methodName:zr,args:On(Jr),gas:Nr,deposit:Hr})})}v.functionCall=Qr;function hn(zr){return new xr({transfer:new Ar({deposit:zr})})}v.transfer=hn;function Yt(zr,Jr){return new xr({stake:new ur({stake:zr,publicKey:Jr})})}v.stake=Yt;function fn(zr,Jr){return new xr({addKey:new jr({publicKey:zr,accessKey:Jr})})}v.addKey=fn;function Qt(zr){return new xr({deleteKey:new Mr({publicKey:zr})})}v.deleteKey=Qt;function Xt(zr){return new xr({deleteAccount:new Lr({beneficiaryId:zr})})}v.deleteAccount=Xt;var Kr=class extends ae.Assignable{};v.Signature=Kr;var be=class extends ae.Assignable{encode(){return ce.serialize(v.SCHEMA,this)}static decode(zr){return ce.deserialize(v.SCHEMA,be,zr)}};v.Transaction=be;var kr=class extends ae.Assignable{encode(){return ce.serialize(v.SCHEMA,this)}static decode(zr){return ce.deserialize(v.SCHEMA,kr,zr)}};v.SignedTransaction=kr;var xr=class extends ae.Enum{};v.Action=xr,v.SCHEMA=new Map([[Kr,{kind:"struct",fields:[["keyType","u8"],["data",[64]]]}],[kr,{kind:"struct",fields:[["transaction",be],["signature",Kr]]}],[be,{kind:"struct",fields:[["signerId","string"],["publicKey",fe.PublicKey],["nonce","u64"],["receiverId","string"],["blockHash",[32]],["actions",[xr]]]}],[fe.PublicKey,{kind:"struct",fields:[["keyType","u8"],["data",[32]]]}],[ye,{kind:"struct",fields:[["nonce","u64"],["permission",pe]]}],[pe,{kind:"enum",field:"enum",values:[["functionCall",le],["fullAccess",ve]]}],[le,{kind:"struct",fields:[["allowance",{kind:"option",type:"u128"}],["receiverId","string"],["methodNames",["string"]]]}],[ve,{kind:"struct",fields:[]}],[xr,{kind:"enum",field:"enum",values:[["createAccount",Br],["deployContract",$r],["functionCall",Pr],["transfer",Ar],["stake",ur],["addKey",jr],["deleteKey",Mr],["deleteAccount",Lr]]}],[Br,{kind:"struct",fields:[]}],[$r,{kind:"struct",fields:[["code",["u8"]]]}],[Pr,{kind:"struct",fields:[["methodName","string"],["args",["u8"]],["gas","u64"],["deposit","u128"]]}],[Ar,{kind:"struct",fields:[["deposit","u128"]]}],[ur,{kind:"struct",fields:[["stake","u128"],["publicKey",fe.PublicKey]]}],[jr,{kind:"struct",fields:[["publicKey",fe.PublicKey],["accessKey",ye]]}],[Mr,{kind:"struct",fields:[["publicKey",fe.PublicKey]]}],[Lr,{kind:"struct",fields:[["beneficiaryId","string"]]}]]);function Wr(zr,Jr,Nr,Hr,On,Gn){return new be({signerId:zr,publicKey:Jr,nonce:Hr,receiverId:Nr,actions:On,blockHash:Gn})}v.createTransaction=Wr;async function Jt(zr,Jr,Nr,Hr){const On=ce.serialize(v.SCHEMA,zr),Gn=new Uint8Array(ie.default.sha256.array(On)),mn=await Jr.signMessage(On,Nr,Hr),Nn=new kr({transaction:zr,signature:new Kr({keyType:zr.publicKey.keyType,data:mn.signature})});return[Gn,Nn]}async function Xr(...zr){if(zr[0].constructor===be){const[Jr,Nr,Hr,On]=zr;return Jt(Jr,Nr,Hr,On)}else{const[Jr,Nr,Hr,On,Gn,mn,Nn]=zr,In=await Gn.getPublicKey(mn,Nn),bn=Wr(mn,In,Jr,Nr,Hr,On);return Jt(bn,Gn,mn,Nn)}}v.signTransaction=Xr}}),require_validators=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/validators.js"(v){var k=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.diffEpochValidators=v.findSeatPrice=void 0;var ie=k(require_bn()),ae=k(require_browser$3());function ce(pe,ye,me,Ee){return Ee&&Ee<49?fe(pe,ye):(me||(ae.default("findSeatPrice(validators, maxNumberOfSeats)")("`use `findSeatPrice(validators, maxNumberOfSeats, minimumStakeRatio)` instead"),me=[1,6250]),le(pe,ye,me))}v.findSeatPrice=ce;function fe(pe,ye){const me=pe.map(Pr=>new ie.default(Pr.stake,10)).sort((Pr,Ar)=>Pr.cmp(Ar)),Ee=new ie.default(ye),cr=me.reduce((Pr,Ar)=>Pr.add(Ar));if(cr.lt(Ee))throw new Error("Stakes are below seats");let Br=new ie.default(1),$r=cr.add(new ie.default(1));for(;!Br.eq($r.sub(new ie.default(1)));){const Pr=Br.add($r).div(new ie.default(2));let Ar=!1,ur=new ie.default(0);for(let jr=0;jrnew ie.default(Br.stake,10)).sort((Br,$r)=>Br.cmp($r)),cr=Ee.reduce((Br,$r)=>Br.add($r));return pe.lengthme.set(cr.account_id,cr));const Ee=new Set(ye.map(cr=>cr.account_id));return{newValidators:ye.filter(cr=>!me.has(cr.account_id)),removedValidators:pe.filter(cr=>!Ee.has(cr.account_id)),changedValidators:ye.filter(cr=>me.has(cr.account_id)&&me.get(cr.account_id).stake!=cr.stake).map(cr=>({current:me.get(cr.account_id),next:cr}))}}v.diffEpochValidators=ve}}),require_constants$1=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/constants.js"(v){var k=v&&v.__importDefault||function(ae){return ae&&ae.__esModule?ae:{default:ae}};Object.defineProperty(v,"__esModule",{value:!0}),v.DEFAULT_FUNCTION_CALL_GAS=void 0;var ie=k(require_bn());v.DEFAULT_FUNCTION_CALL_GAS=new ie.default("30000000000000")}}),require_account$1=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/account.js"(v){var k=v&&v.__importDefault||function(jr){return jr&&jr.__esModule?jr:{default:jr}};Object.defineProperty(v,"__esModule",{value:!0}),v.Account=void 0;var ie=k(require_bn()),ae=k(require_browser$3()),ce=require_transaction(),fe=require_providers(),le=require_lib(),ve=require_key_pair(),pe=require_errors$1(),ye=require_rpc_errors(),me=require_constants$1(),Ee=k(require_exponential_backoff()),cr=12,Br=500,$r=1.5;function Pr(jr){return JSON.parse(Buffer.from(jr).toString())}function Ar(jr){return Buffer.from(JSON.stringify(jr))}var ur=class{constructor(jr,Mr){this.accessKeyByPublicKeyCache={},this.connection=jr,this.accountId=Mr}get ready(){return ae.default("Account.ready()")("not needed anymore, always ready"),Promise.resolve()}async fetchState(){ae.default("Account.fetchState()")("use `Account.state()` instead")}async state(){return this.connection.provider.query({request_type:"view_account",account_id:this.accountId,finality:"optimistic"})}printLogsAndFailures(jr,Mr){if(!process.env.NEAR_NO_LOGS)for(const Lr of Mr)console.log(`Receipt${Lr.receiptIds.length>1?"s":""}: ${Lr.receiptIds.join(", ")}`),this.printLogs(jr,Lr.logs," "),Lr.failure&&console.warn(` Failure [${jr}]: ${Lr.failure}`)}printLogs(jr,Mr,Lr=""){if(!process.env.NEAR_NO_LOGS)for(const Vr of Mr)console.log(`${Lr}Log [${jr}]: ${Vr}`)}async signTransaction(jr,Mr){const Lr=await this.findAccessKey(jr,Mr);if(!Lr)throw new fe.TypedError(`Can not sign transactions for account ${this.accountId} on network ${this.connection.networkId}, no matching key pair found in ${this.connection.signer}.`,"KeyNotFound");const{accessKey:Vr}=Lr,Ur=(await this.connection.provider.block({finality:"final"})).header.hash,Qr=++Vr.nonce;return await ce.signTransaction(jr,Qr,Mr,le.baseDecode(Ur),this.connection.signer,this.accountId,this.connection.networkId)}signAndSendTransaction(...jr){return typeof jr[0]=="string"?this.signAndSendTransactionV1(jr[0],jr[1]):this.signAndSendTransactionV2(jr[0])}signAndSendTransactionV1(jr,Mr){return ae.default("Account.signAndSendTransaction(receiverId, actions")("use `Account.signAndSendTransaction(SignAndSendTransactionOptions)` instead"),this.signAndSendTransactionV2({receiverId:jr,actions:Mr})}async signAndSendTransactionV2({receiverId:jr,actions:Mr,returnError:Lr}){let Vr,Gr;const Ur=await Ee.default(Br,cr,$r,async()=>{[Vr,Gr]=await this.signTransaction(jr,Mr);const hn=Gr.transaction.publicKey;try{return await this.connection.provider.sendTransaction(Gr)}catch(Yt){if(Yt.type==="InvalidNonce")return pe.logWarning(`Retrying transaction ${jr}:${le.baseEncode(Vr)} with new nonce.`),delete this.accessKeyByPublicKeyCache[hn.toString()],null;if(Yt.type==="Expired")return pe.logWarning(`Retrying transaction ${jr}:${le.baseEncode(Vr)} due to expired block hash`),null;throw Yt.context=new fe.ErrorContext(le.baseEncode(Vr)),Yt}});if(!Ur)throw new fe.TypedError("nonce retries exceeded for transaction. This usually means there are too many parallel requests with the same access key.","RetriesExceeded");const Qr=[Ur.transaction_outcome,...Ur.receipts_outcome].reduce((hn,Yt)=>Yt.outcome.logs.length||typeof Yt.outcome.status=="object"&&typeof Yt.outcome.status.Failure=="object"?hn.concat({receiptIds:Yt.outcome.receipt_ids,logs:Yt.outcome.logs,failure:typeof Yt.outcome.status.Failure<"u"?ye.parseRpcError(Yt.outcome.status.Failure):null}):hn,[]);if(this.printLogsAndFailures(Gr.transaction.receiverId,Qr),!Lr&&typeof Ur.status=="object"&&typeof Ur.status.Failure=="object")throw Ur.status.Failure.error_message&&Ur.status.Failure.error_type?new fe.TypedError(`Transaction ${Ur.transaction_outcome.id} failed. ${Ur.status.Failure.error_message}`,Ur.status.Failure.error_type):ye.parseResultError(Ur);return Ur}async findAccessKey(jr,Mr){const Lr=await this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);if(!Lr)return null;const Vr=this.accessKeyByPublicKeyCache[Lr.toString()];if(Vr!==void 0)return{publicKey:Lr,accessKey:Vr};try{const Gr=await this.connection.provider.query({request_type:"view_access_key",account_id:this.accountId,public_key:Lr.toString(),finality:"optimistic"});return this.accessKeyByPublicKeyCache[Lr.toString()]?{publicKey:Lr,accessKey:this.accessKeyByPublicKeyCache[Lr.toString()]}:(this.accessKeyByPublicKeyCache[Lr.toString()]=Gr,{publicKey:Lr,accessKey:Gr})}catch(Gr){if(Gr.type=="AccessKeyDoesNotExist")return null;throw Gr}}async createAndDeployContract(jr,Mr,Lr,Vr){const Gr=ce.fullAccessKey();return await this.signAndSendTransaction({receiverId:jr,actions:[ce.createAccount(),ce.transfer(Vr),ce.addKey(ve.PublicKey.from(Mr),Gr),ce.deployContract(Lr)]}),new ur(this.connection,jr)}async sendMoney(jr,Mr){return this.signAndSendTransaction({receiverId:jr,actions:[ce.transfer(Mr)]})}async createAccount(jr,Mr,Lr){const Vr=ce.fullAccessKey();return this.signAndSendTransaction({receiverId:jr,actions:[ce.createAccount(),ce.transfer(Lr),ce.addKey(ve.PublicKey.from(Mr),Vr)]})}async deleteAccount(jr){return this.signAndSendTransaction({receiverId:this.accountId,actions:[ce.deleteAccount(jr)]})}async deployContract(jr){return this.signAndSendTransaction({receiverId:this.accountId,actions:[ce.deployContract(jr)]})}encodeJSContractArgs(jr,Mr,Lr){return Buffer.concat([Buffer.from(jr),Buffer.from([0]),Buffer.from(Mr),Buffer.from([0]),Buffer.from(Lr)])}async functionCall(...jr){return typeof jr[0]=="string"?this.functionCallV1(jr[0],jr[1],jr[2],jr[3],jr[4]):this.functionCallV2(jr[0])}functionCallV1(jr,Mr,Lr,Vr,Gr){return ae.default("Account.functionCall(contractId, methodName, args, gas, amount)")("use `Account.functionCall(FunctionCallOptions)` instead"),Lr=Lr||{},this.validateArgs(Lr),this.signAndSendTransaction({receiverId:jr,actions:[ce.functionCall(Mr,Lr,Vr||me.DEFAULT_FUNCTION_CALL_GAS,Gr)]})}functionCallV2({contractId:jr,methodName:Mr,args:Lr={},gas:Vr=me.DEFAULT_FUNCTION_CALL_GAS,attachedDeposit:Gr,walletMeta:Ur,walletCallbackUrl:Qr,stringify:hn,jsContract:Yt}){this.validateArgs(Lr);let fn;if(Yt){const Qt=this.encodeJSContractArgs(jr,Mr,JSON.stringify(Lr));fn=["call_js_contract",Qt,Vr,Gr,null,!0]}else{const Qt=hn===void 0?ce.stringifyJsonOrBytes:hn;fn=[Mr,Lr,Vr,Gr,Qt,!1]}return this.signAndSendTransaction({receiverId:Yt?this.connection.jsvmAccountId:jr,actions:[ce.functionCall.apply(void 0,fn)],walletMeta:Ur,walletCallbackUrl:Qr})}async addKey(jr,Mr,Lr,Vr){Lr||(Lr=[]),Array.isArray(Lr)||(Lr=[Lr]);let Gr;return Mr?Gr=ce.functionCallAccessKey(Mr,Lr,Vr):Gr=ce.fullAccessKey(),this.signAndSendTransaction({receiverId:this.accountId,actions:[ce.addKey(ve.PublicKey.from(jr),Gr)]})}async deleteKey(jr){return this.signAndSendTransaction({receiverId:this.accountId,actions:[ce.deleteKey(ve.PublicKey.from(jr))]})}async stake(jr,Mr){return this.signAndSendTransaction({receiverId:this.accountId,actions:[ce.stake(Mr,ve.PublicKey.from(jr))]})}validateArgs(jr){if(!(jr.byteLength!==void 0&&jr.byteLength===jr.length)&&(Array.isArray(jr)||typeof jr!="object"))throw new pe.PositionalArgsError}async viewFunction(jr,Mr,Lr={},{parse:Vr=Pr,stringify:Gr=Ar,jsContract:Ur=!1}={}){let Qr;this.validateArgs(Lr),Ur?Qr=this.encodeJSContractArgs(jr,Mr,Object.keys(Lr).length>0?JSON.stringify(Lr):""):Qr=Gr(Lr);const hn=await this.connection.provider.query({request_type:"call_function",account_id:Ur?this.connection.jsvmAccountId:jr,method_name:Ur?"view_js_contract":Mr,args_base64:Qr.toString("base64"),finality:"optimistic"});return hn.logs&&this.printLogs(jr,hn.logs),hn.result&&hn.result.length>0&&Vr(Buffer.from(hn.result))}async viewState(jr,Mr={finality:"optimistic"}){const{values:Lr}=await this.connection.provider.query({request_type:"view_state",...Mr,account_id:this.accountId,prefix_base64:Buffer.from(jr).toString("base64")});return Lr.map(({key:Vr,value:Gr})=>({key:Buffer.from(Vr,"base64"),value:Buffer.from(Gr,"base64")}))}async getAccessKeys(){const jr=await this.connection.provider.query({request_type:"view_access_key_list",account_id:this.accountId,finality:"optimistic"});return Array.isArray(jr)?jr:jr.keys}async getAccountDetails(){return{authorizedApps:(await this.getAccessKeys()).filter(Lr=>Lr.access_key.permission!=="FullAccess").map(Lr=>{const Vr=Lr.access_key.permission;return{contractId:Vr.FunctionCall.receiver_id,amount:Vr.FunctionCall.allowance,publicKey:Lr.public_key}})}}async getAccountBalance(){const jr=await this.connection.provider.experimental_protocolConfig({finality:"final"}),Mr=await this.state(),Lr=new ie.default(jr.runtime_config.storage_amount_per_byte),Vr=new ie.default(Mr.storage_usage).mul(Lr),Gr=new ie.default(Mr.locked),Ur=new ie.default(Mr.amount).add(Gr),Qr=Ur.sub(ie.default.max(Gr,Vr));return{total:Ur.toString(),stateStaked:Vr.toString(),staked:Gr.toString(),available:Qr.toString()}}};v.Account=ur}}),require_account_multisig=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/account_multisig.js"(v){var k=v&&v.__importDefault||function(Mr){return Mr&&Mr.__esModule?Mr:{default:Mr}};Object.defineProperty(v,"__esModule",{value:!0}),v.Account2FA=v.AccountMultisig=v.MultisigStateStatus=v.MultisigDeleteRequestRejectionError=v.MULTISIG_CONFIRM_METHODS=v.MULTISIG_CHANGE_METHODS=v.MULTISIG_DEPOSIT=v.MULTISIG_GAS=v.MULTISIG_ALLOWANCE=v.MULTISIG_STORAGE_KEY=void 0;var ie=k(require_bn()),ae=k(require_browser$3()),ce=require_account$1(),fe=require_format(),le=require_key_pair(),ve=require_transaction(),pe=require_providers(),ye=require_web();v.MULTISIG_STORAGE_KEY="__multisigRequest",v.MULTISIG_ALLOWANCE=new ie.default(fe.parseNearAmount("1")),v.MULTISIG_GAS=new ie.default("100000000000000"),v.MULTISIG_DEPOSIT=new ie.default("0"),v.MULTISIG_CHANGE_METHODS=["add_request","add_request_and_confirm","delete_request","confirm"],v.MULTISIG_CONFIRM_METHODS=["confirm"];var me;(function(Mr){Mr.CANNOT_DESERIALIZE_STATE="Cannot deserialize the contract state",Mr.MULTISIG_NOT_INITIALIZED="Smart contract panicked: Multisig contract should be initialized before usage",Mr.NO_SUCH_REQUEST="Smart contract panicked: panicked at 'No such request: either wrong number or already confirmed'",Mr.REQUEST_COOLDOWN_ERROR="Request cannot be deleted immediately after creation.",Mr.METHOD_NOT_FOUND="Contract method is not found"})(me=v.MultisigDeleteRequestRejectionError||(v.MultisigDeleteRequestRejectionError={}));var Ee;(function(Mr){Mr[Mr.INVALID_STATE=0]="INVALID_STATE",Mr[Mr.STATE_NOT_INITIALIZED=1]="STATE_NOT_INITIALIZED",Mr[Mr.VALID_STATE=2]="VALID_STATE",Mr[Mr.UNKNOWN_STATE=3]="UNKNOWN_STATE"})(Ee=v.MultisigStateStatus||(v.MultisigStateStatus={}));var cr;(function(Mr){Mr[Mr.INVALID_CODE=0]="INVALID_CODE",Mr[Mr.VALID_CODE=1]="VALID_CODE",Mr[Mr.UNKNOWN_CODE=2]="UNKNOWN_CODE"})(cr||(cr={}));var Br={[v.MULTISIG_STORAGE_KEY]:null},$r=class extends ce.Account{constructor(Mr,Lr,Vr){super(Mr,Lr),this.storage=Vr.storage,this.onAddRequestResult=Vr.onAddRequestResult}async signAndSendTransactionWithAccount(Mr,Lr){return super.signAndSendTransaction({receiverId:Mr,actions:Lr})}signAndSendTransaction(...Mr){return typeof Mr[0]=="string"?this._signAndSendTransaction({receiverId:Mr[0],actions:Mr[1]}):this._signAndSendTransaction(Mr[0])}async _signAndSendTransaction({receiverId:Mr,actions:Lr}){const{accountId:Vr}=this,Gr=Buffer.from(JSON.stringify({request:{receiver_id:Mr,actions:jr(Lr,Vr,Mr)}}));let Ur;try{Ur=await super.signAndSendTransaction({receiverId:Vr,actions:[ve.functionCall("add_request_and_confirm",Gr,v.MULTISIG_GAS,v.MULTISIG_DEPOSIT)]})}catch(hn){if(hn.toString().includes("Account has too many active requests. Confirm or delete some"))return await this.deleteUnconfirmedRequests(),await this.signAndSendTransaction(Mr,Lr);throw hn}if(!Ur.status)throw new Error("Request failed");const Qr={...Ur.status};if(!Qr.SuccessValue||typeof Qr.SuccessValue!="string")throw new Error("Request failed");return this.setRequest({accountId:Vr,actions:Lr,requestId:parseInt(Buffer.from(Qr.SuccessValue,"base64").toString("ascii"),10)}),this.onAddRequestResult&&await this.onAddRequestResult(Ur),this.deleteUnconfirmedRequests(),Ur}async checkMultisigCodeAndStateStatus(Mr){const Vr=Mr?cr.UNKNOWN_CODE:cr.VALID_CODE;try{return Mr?await super.signAndSendTransaction({receiverId:this.accountId,actions:[ve.deployContract(Mr),ve.functionCall("delete_request",{request_id:4294967295},v.MULTISIG_GAS,v.MULTISIG_DEPOSIT)]}):await this.deleteRequest(4294967295),{codeStatus:cr.VALID_CODE,stateStatus:Ee.VALID_STATE}}catch(Gr){if(new RegExp(me.CANNOT_DESERIALIZE_STATE).test(Gr&&Gr.kind&&Gr.kind.ExecutionError))return{codeStatus:Vr,stateStatus:Ee.INVALID_STATE};if(new RegExp(me.MULTISIG_NOT_INITIALIZED).test(Gr&&Gr.kind&&Gr.kind.ExecutionError))return{codeStatus:Vr,stateStatus:Ee.STATE_NOT_INITIALIZED};if(new RegExp(me.NO_SUCH_REQUEST).test(Gr&&Gr.kind&&Gr.kind.ExecutionError))return{codeStatus:Vr,stateStatus:Ee.VALID_STATE};if(new RegExp(me.METHOD_NOT_FOUND).test(Gr&&Gr.message))return{codeStatus:cr.INVALID_CODE,stateStatus:Ee.UNKNOWN_STATE};throw Gr}}deleteRequest(Mr){return super.signAndSendTransaction({receiverId:this.accountId,actions:[ve.functionCall("delete_request",{request_id:Mr},v.MULTISIG_GAS,v.MULTISIG_DEPOSIT)]})}async deleteAllRequests(){const Mr=await this.getRequestIds();Mr.length&&await Promise.all(Mr.map(Lr=>this.deleteRequest(Lr)))}async deleteUnconfirmedRequests(){const Mr=await this.getRequestIds(),{requestId:Lr}=this.getRequest();for(const Vr of Mr)if(Vr!=Lr)try{await super.signAndSendTransaction({receiverId:this.accountId,actions:[ve.functionCall("delete_request",{request_id:Vr},v.MULTISIG_GAS,v.MULTISIG_DEPOSIT)]})}catch{console.warn("Attempt to delete an earlier request before 15 minutes failed. Will try again.")}}async getRequestIds(){return this.viewFunction(this.accountId,"list_request_ids")}getRequest(){return this.storage?JSON.parse(this.storage.getItem(v.MULTISIG_STORAGE_KEY)||"{}"):Br[v.MULTISIG_STORAGE_KEY]}setRequest(Mr){if(this.storage)return this.storage.setItem(v.MULTISIG_STORAGE_KEY,JSON.stringify(Mr));Br[v.MULTISIG_STORAGE_KEY]=Mr}};v.AccountMultisig=$r;var Pr=class extends $r{constructor(Mr,Lr,Vr){super(Mr,Lr,Vr),this.helperUrl="https://helper.testnet.near.org",this.helperUrl=Vr.helperUrl||this.helperUrl,this.storage=Vr.storage,this.sendCode=Vr.sendCode||this.sendCodeDefault,this.getCode=Vr.getCode||this.getCodeDefault,this.verifyCode=Vr.verifyCode||this.verifyCodeDefault,this.onConfirmResult=Vr.onConfirmResult}async signAndSendTransaction(...Mr){return typeof Mr[0]=="string"?(ae.default("Account.signAndSendTransaction(receiverId, actions")("use `Account2FA.signAndSendTransaction(SignAndSendTransactionOptions)` instead"),this.__signAndSendTransaction({receiverId:Mr[0],actions:Mr[1]})):this.__signAndSendTransaction(Mr[0])}async __signAndSendTransaction({receiverId:Mr,actions:Lr}){await super.signAndSendTransaction({receiverId:Mr,actions:Lr}),await this.sendCode();const Vr=await this.promptAndVerify();return this.onConfirmResult&&await this.onConfirmResult(Vr),Vr}async deployMultisig(Mr){const{accountId:Lr}=this,Vr=(await this.getRecoveryMethods()).data.filter(({kind:Qt,publicKey:Xt})=>(Qt==="phrase"||Qt==="ledger")&&Xt!==null).map(Qt=>Qt.publicKey),Gr=(await this.getAccessKeys()).filter(({public_key:Qt,access_key:{permission:Xt}})=>Xt==="FullAccess"&&!Vr.includes(Qt)).map(Qt=>Qt.public_key).map(Ar),Ur=Ar((await this.postSignedJson("/2fa/getAccessKey",{accountId:Lr})).publicKey),Qr=Buffer.from(JSON.stringify({num_confirmations:2})),hn=[...Gr.map(Qt=>ve.deleteKey(Qt)),...Gr.map(Qt=>ve.addKey(Qt,ve.functionCallAccessKey(Lr,v.MULTISIG_CHANGE_METHODS,null))),ve.addKey(Ur,ve.functionCallAccessKey(Lr,v.MULTISIG_CONFIRM_METHODS,null)),ve.deployContract(Mr)],Yt=hn.concat(ve.functionCall("new",Qr,v.MULTISIG_GAS,v.MULTISIG_DEPOSIT));console.log("deploying multisig contract for",Lr);const{stateStatus:fn}=await this.checkMultisigCodeAndStateStatus(Mr);switch(fn){case Ee.STATE_NOT_INITIALIZED:return await super.signAndSendTransactionWithAccount(Lr,Yt);case Ee.VALID_STATE:return await super.signAndSendTransactionWithAccount(Lr,hn);case Ee.INVALID_STATE:throw new pe.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account has existing state.`,"ContractHasExistingState");default:throw new pe.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account state could not be verified.`,"ContractStateUnknown")}}async disableWithFAK({contractBytes:Mr,cleanupContractBytes:Lr}){let Vr=[];Lr&&(await this.deleteAllRequests().catch(hn=>hn),Vr=await this.get2faDisableCleanupActions(Lr));const Gr=await this.get2faDisableKeyConversionActions(),Ur=[...Vr,...Gr,ve.deployContract(Mr)],Qr=await this.findAccessKey(this.accountId,Ur);if(Qr&&Qr.accessKey&&Qr.accessKey.permission!=="FullAccess")throw new pe.TypedError("No full access key found in keystore. Unable to bypass multisig","NoFAKFound");return this.signAndSendTransactionWithAccount(this.accountId,Ur)}async get2faDisableCleanupActions(Mr){const Lr=await this.viewState("").catch(Gr=>{const Ur=Gr.cause&&Gr.cause.name;if(Ur=="NO_CONTRACT_CODE")return[];throw Ur=="TOO_LARGE_CONTRACT_STATE"?new pe.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account has existing state.`,"ContractHasExistingState"):Gr}),Vr=Lr.map(({key:Gr})=>Gr.toString("base64"));return Lr.length?[ve.deployContract(Mr),ve.functionCall("clean",{keys:Vr},v.MULTISIG_GAS,new ie.default("0"))]:[]}async get2faDisableKeyConversionActions(){const{accountId:Mr}=this,Vr=(await this.getAccessKeys()).filter(({access_key:Ur})=>Ur.permission!=="FullAccess").filter(({access_key:Ur})=>{const Qr=Ur.permission.FunctionCall;return Qr.receiver_id===Mr&&Qr.method_names.length===4&&Qr.method_names.includes("add_request_and_confirm")}),Gr=le.PublicKey.from((await this.postSignedJson("/2fa/getAccessKey",{accountId:Mr})).publicKey);return[ve.deleteKey(Gr),...Vr.map(({public_key:Ur})=>ve.deleteKey(le.PublicKey.from(Ur))),...Vr.map(({public_key:Ur})=>ve.addKey(le.PublicKey.from(Ur),ve.fullAccessKey()))]}async disable(Mr,Lr){const{stateStatus:Vr}=await this.checkMultisigCodeAndStateStatus();if(Vr!==Ee.VALID_STATE&&Vr!==Ee.STATE_NOT_INITIALIZED)throw new pe.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account state could not be verified.`,"ContractStateUnknown");let Gr;await this.deleteAllRequests().catch(hn=>Gr=hn);const Qr=[...await this.get2faDisableCleanupActions(Lr).catch(hn=>{throw hn.type==="ContractHasExistingState"&&Gr||hn}),...await this.get2faDisableKeyConversionActions(),ve.deployContract(Mr)];return console.log("disabling 2fa for",this.accountId),await this.signAndSendTransaction({receiverId:this.accountId,actions:Qr})}async sendCodeDefault(){const{accountId:Mr}=this,{requestId:Lr}=this.getRequest(),Vr=await this.get2faMethod();return await this.postSignedJson("/2fa/send",{accountId:Mr,method:Vr,requestId:Lr}),Lr}async getCodeDefault(Mr){throw new Error('There is no getCode callback provided. Please provide your own in AccountMultisig constructor options. It has a parameter method where method.kind is "email" or "phone".')}async promptAndVerify(){const Mr=await this.get2faMethod(),Lr=await this.getCode(Mr);try{return await this.verifyCode(Lr)}catch(Vr){if(console.warn("Error validating security code:",Vr),Vr.toString().includes("invalid 2fa code provided")||Vr.toString().includes("2fa code not valid"))return await this.promptAndVerify();throw Vr}}async verifyCodeDefault(Mr){const{accountId:Lr}=this,Vr=this.getRequest();if(!Vr)throw new Error("no request pending");const{requestId:Gr}=Vr;return await this.postSignedJson("/2fa/verify",{accountId:Lr,securityCode:Mr,requestId:Gr})}async getRecoveryMethods(){const{accountId:Mr}=this;return{accountId:Mr,data:await this.postSignedJson("/account/recoveryMethods",{accountId:Mr})}}async get2faMethod(){let{data:Mr}=await this.getRecoveryMethods();if(Mr&&Mr.length&&(Mr=Mr.find(Gr=>Gr.kind.indexOf("2fa-")===0)),!Mr)return null;const{kind:Lr,detail:Vr}=Mr;return{kind:Lr,detail:Vr}}async signatureFor(){const{accountId:Mr}=this,Vr=(await this.connection.provider.block({finality:"final"})).header.height.toString(),Gr=await this.connection.signer.signMessage(Buffer.from(Vr),Mr,this.connection.networkId),Ur=Buffer.from(Gr.signature).toString("base64");return{blockNumber:Vr,blockNumberSignature:Ur}}async postSignedJson(Mr,Lr){return await ye.fetchJson(this.helperUrl+Mr,JSON.stringify({...Lr,...await this.signatureFor()}))}};v.Account2FA=Pr;var Ar=Mr=>le.PublicKey.from(Mr),ur=Mr=>Mr.toString().replace("ed25519:",""),jr=(Mr,Lr,Vr)=>Mr.map(Gr=>{const Ur=Gr.enum,{gas:Qr,publicKey:hn,methodName:Yt,args:fn,deposit:Qt,accessKey:Xt,code:Kr}=Gr[Ur],be={type:Ur[0].toUpperCase()+Ur.substr(1),gas:Qr&&Qr.toString()||void 0,public_key:hn&&ur(hn)||void 0,method_name:Yt,args:fn&&Buffer.from(fn).toString("base64")||void 0,code:Kr&&Buffer.from(Kr).toString("base64")||void 0,amount:Qt&&Qt.toString()||void 0,deposit:Qt&&Qt.toString()||"0",permission:void 0};if(Xt&&(Vr===Lr&&Xt.permission.enum!=="fullAccess"&&(be.permission={receiver_id:Lr,allowance:v.MULTISIG_ALLOWANCE.toString(),method_names:v.MULTISIG_CHANGE_METHODS}),Xt.permission.enum==="functionCall")){const{receiverId:kr,methodNames:xr,allowance:Wr}=Xt.permission.functionCall;be.permission={receiver_id:kr,allowance:Wr&&Wr.toString()||void 0,method_names:xr}}return be})}}),require_account_creator=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/account_creator.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.UrlAccountCreator=v.LocalAccountCreator=v.AccountCreator=void 0;var k=require_web(),ie=class{};v.AccountCreator=ie;var ae=class extends ie{constructor(fe,le){super(),this.masterAccount=fe,this.initialBalance=le}async createAccount(fe,le){await this.masterAccount.createAccount(fe,le,this.initialBalance)}};v.LocalAccountCreator=ae;var ce=class extends ie{constructor(fe,le){super(),this.connection=fe,this.helperUrl=le}async createAccount(fe,le){await k.fetchJson(`${this.helperUrl}/account`,JSON.stringify({newAccountId:fe,newAccountPublicKey:le.toString()}))}};v.UrlAccountCreator=ce}}),require_signer=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/signer.js"(v){var k=v&&v.__importDefault||function(ve){return ve&&ve.__esModule?ve:{default:ve}};Object.defineProperty(v,"__esModule",{value:!0}),v.InMemorySigner=v.Signer=void 0;var ie=k(require_sha256$2()),ae=require_key_pair(),ce=require_in_memory_key_store(),fe=class{};v.Signer=fe;var le=class extends fe{constructor(ve){super(),this.keyStore=ve}static async fromKeyPair(ve,pe,ye){const me=new ce.InMemoryKeyStore;return await me.setKey(ve,pe,ye),new le(me)}async createKey(ve,pe){const ye=ae.KeyPair.fromRandom("ed25519");return await this.keyStore.setKey(pe,ve,ye),ye.getPublicKey()}async getPublicKey(ve,pe){const ye=await this.keyStore.getKey(pe,ve);return ye===null?null:ye.getPublicKey()}async signMessage(ve,pe,ye){const me=new Uint8Array(ie.default.sha256.array(ve));if(!pe)throw new Error("InMemorySigner requires provided account id");const Ee=await this.keyStore.getKey(ye,pe);if(Ee===null)throw new Error(`Key for ${pe} not found in ${ye}`);return Ee.sign(me)}toString(){return`InMemorySigner(${this.keyStore})`}};v.InMemorySigner=le}}),require_connection=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/connection.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Connection=void 0;var k=require_providers(),ie=require_signer();function ae(le){switch(le.type){case void 0:return le;case"JsonRpcProvider":return new k.JsonRpcProvider({...le.args});default:throw new Error(`Unknown provider type ${le.type}`)}}function ce(le){switch(le.type){case void 0:return le;case"InMemorySigner":return new ie.InMemorySigner(le.keyStore);default:throw new Error(`Unknown signer type ${le.type}`)}}var fe=class{constructor(le,ve,pe,ye){this.networkId=le,this.provider=ve,this.signer=pe,this.jsvmAccountId=ye}static fromConfig(le){const ve=ae(le.provider),pe=ce(le.signer);return new fe(le.networkId,ve,pe,le.jsvmAccountId)}};v.Connection=fe}}),require_contract=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/contract.js"(v){var k=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.Contract=void 0;var ie=k(require_bn()),ae=k(require_browser$3()),ce=require_providers(),fe=require_errors$1();function le(Ee,cr){return{[Ee](...Br){return cr(...Br)}}[Ee]}var ve=Ee=>Ee&&Ee.byteLength!==void 0&&Ee.byteLength===Ee.length,pe=Ee=>Object.prototype.toString.call(Ee)==="[object Object]",ye=class{constructor(Ee,cr,Br){this.account=Ee,this.contractId=cr;const{viewMethods:$r=[],changeMethods:Pr=[]}=Br;$r.forEach(Ar=>{Object.defineProperty(this,Ar,{writable:!1,enumerable:!0,value:le(Ar,async(ur={},jr={},...Mr)=>{if(Mr.length||!(pe(ur)||ve(ur))||!pe(jr))throw new fe.PositionalArgsError;return this.account.viewFunction(this.contractId,Ar,ur,jr)})})}),Pr.forEach(Ar=>{Object.defineProperty(this,Ar,{writable:!1,enumerable:!0,value:le(Ar,async(...ur)=>{if(ur.length&&(ur.length>3||!(pe(ur[0])||ve(ur[0]))))throw new fe.PositionalArgsError;return ur.length>1||!(ur[0]&&ur[0].args)?(ae.default("contract.methodName(args, gas, amount)")("use `contract.methodName({ args, gas?, amount?, callbackUrl?, meta? })` instead"),this._changeMethod({methodName:Ar,args:ur[0],gas:ur[1],amount:ur[2]})):this._changeMethod({methodName:Ar,...ur[0]})})})})}async _changeMethod({args:Ee,methodName:cr,gas:Br,amount:$r,meta:Pr,callbackUrl:Ar}){me({gas:Br,amount:$r});const ur=await this.account.functionCall({contractId:this.contractId,methodName:cr,args:Ee,gas:Br,attachedDeposit:$r,walletMeta:Pr,walletCallbackUrl:Ar});return ce.getTransactionLastResult(ur)}};v.Contract=ye;function me(Ee){const cr="number, decimal string or BN";for(const Br of Object.keys(Ee)){const $r=Ee[Br];if($r&&!ie.default.isBN($r)&&isNaN($r))throw new fe.ArgumentTypeError(Br,cr,$r)}}}}),require_near=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/near.js"(v){var k=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.Near=void 0;var ie=k(require_bn()),ae=require_account$1(),ce=require_connection(),fe=require_contract(),le=require_account_creator(),ve=class{constructor(pe){if(this.config=pe,this.connection=ce.Connection.fromConfig({networkId:pe.networkId,provider:{type:"JsonRpcProvider",args:{url:pe.nodeUrl,headers:pe.headers}},signer:pe.signer||{type:"InMemorySigner",keyStore:pe.keyStore||pe.deps&&pe.deps.keyStore},jsvmAccountId:pe.jsvmAccountId||`jsvm.${pe.networkId}`}),pe.masterAccount){const ye=pe.initialBalance?new ie.default(pe.initialBalance):new ie.default("500000000000000000000000000");this.accountCreator=new le.LocalAccountCreator(new ae.Account(this.connection,pe.masterAccount),ye)}else pe.helperUrl?this.accountCreator=new le.UrlAccountCreator(this.connection,pe.helperUrl):this.accountCreator=null}async account(pe){return new ae.Account(this.connection,pe)}async createAccount(pe,ye){if(!this.accountCreator)throw new Error("Must specify account creator, either via masterAccount or helperUrl configuration settings.");return await this.accountCreator.createAccount(pe,ye),new ae.Account(this.connection,pe)}async loadContract(pe,ye){const me=new ae.Account(this.connection,ye.sender);return new fe.Contract(me,pe,ye)}async sendTokens(pe,ye,me){return console.warn("near.sendTokens is deprecated. Use `yourAccount.sendMoney` instead."),(await new ae.Account(this.connection,ye).sendMoney(me,pe)).transaction_outcome.id}};v.Near=ve}}),require_wallet_account=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/wallet-account.js"(v){var k=v&&v.__importDefault||function($r){return $r&&$r.__esModule?$r:{default:$r}};Object.defineProperty(v,"__esModule",{value:!0}),v.ConnectedWalletAccount=v.WalletAccount=v.WalletConnection=void 0;var ie=k(require_browser$3()),ae=require_account$1(),ce=require_transaction(),fe=require_utils$2(),le=require_lib(),ve=require_lib(),pe="/login/",ye="add_request_and_confirm",me="_wallet_auth_key",Ee="pending_key",cr=class{constructor($r,Pr){this._near=$r;const Ar=Pr+me,ur=JSON.parse(window.localStorage.getItem(Ar));this._networkId=$r.config.networkId,this._walletBaseUrl=$r.config.walletUrl,Pr=Pr||$r.config.contractName||"default",this._keyStore=$r.connection.signer.keyStore,this._authData=ur||{allKeys:[]},this._authDataKey=Ar,this.isSignedIn()||this._completeSignInWithAccessKey()}isSignedIn(){return!!this._authData.accountId}getAccountId(){return this._authData.accountId||""}async requestSignIn($r={},Pr,Ar,ur){let jr;typeof $r=="string"?(ie.default("requestSignIn(contractId, title)")("`title` ignored; use `requestSignIn({ contractId, methodNames, successUrl, failureUrl })` instead"),jr={contractId:$r,successUrl:Ar,failureUrl:ur}):jr=$r;const Mr=new URL(window.location.href),Lr=new URL(this._walletBaseUrl+pe);if(Lr.searchParams.set("success_url",jr.successUrl||Mr.href),Lr.searchParams.set("failure_url",jr.failureUrl||Mr.href),jr.contractId){await(await this._near.account(jr.contractId)).state(),Lr.searchParams.set("contract_id",jr.contractId);const Gr=fe.KeyPair.fromRandom("ed25519");Lr.searchParams.set("public_key",Gr.getPublicKey().toString()),await this._keyStore.setKey(this._networkId,Ee+Gr.getPublicKey(),Gr)}jr.methodNames&&jr.methodNames.forEach(Vr=>{Lr.searchParams.append("methodNames",Vr)}),window.location.assign(Lr.toString())}async requestSignTransactions(...$r){return Array.isArray($r[0])?(ie.default("WalletConnection.requestSignTransactions(transactions, callbackUrl, meta)")("use `WalletConnection.requestSignTransactions(RequestSignTransactionsOptions)` instead"),this._requestSignTransactions({transactions:$r[0],callbackUrl:$r[1],meta:$r[2]})):this._requestSignTransactions($r[0])}async _requestSignTransactions({transactions:$r,meta:Pr,callbackUrl:Ar}){const ur=new URL(window.location.href),jr=new URL("sign",this._walletBaseUrl);jr.searchParams.set("transactions",$r.map(Mr=>ve.serialize(ce.SCHEMA,Mr)).map(Mr=>Buffer.from(Mr).toString("base64")).join(",")),jr.searchParams.set("callbackUrl",Ar||ur.href),Pr&&jr.searchParams.set("meta",Pr),window.location.assign(jr.toString())}async _completeSignInWithAccessKey(){const $r=new URL(window.location.href),Pr=$r.searchParams.get("public_key")||"",Ar=($r.searchParams.get("all_keys")||"").split(","),ur=$r.searchParams.get("account_id")||"";ur&&(this._authData={accountId:ur,allKeys:Ar},window.localStorage.setItem(this._authDataKey,JSON.stringify(this._authData)),Pr&&await this._moveKeyFromTempToPermanent(ur,Pr)),$r.searchParams.delete("public_key"),$r.searchParams.delete("all_keys"),$r.searchParams.delete("account_id"),$r.searchParams.delete("meta"),$r.searchParams.delete("transactionHashes"),window.history.replaceState({},document.title,$r.toString())}async _moveKeyFromTempToPermanent($r,Pr){const Ar=await this._keyStore.getKey(this._networkId,Ee+Pr);await this._keyStore.setKey(this._networkId,$r,Ar),await this._keyStore.removeKey(this._networkId,Ee+Pr)}signOut(){this._authData={},window.localStorage.removeItem(this._authDataKey)}account(){return this._connectedAccount||(this._connectedAccount=new Br(this,this._near.connection,this._authData.accountId)),this._connectedAccount}};v.WalletConnection=cr,v.WalletAccount=cr;var Br=class extends ae.Account{constructor($r,Pr,Ar){super(Pr,Ar),this.walletConnection=$r}signAndSendTransaction(...$r){return typeof $r[0]=="string"?this._signAndSendTransaction({receiverId:$r[0],actions:$r[1]}):this._signAndSendTransaction($r[0])}async _signAndSendTransaction({receiverId:$r,actions:Pr,walletMeta:Ar,walletCallbackUrl:ur=window.location.href}){const jr=await this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);let Mr=await this.accessKeyForTransaction($r,Pr,jr);if(!Mr)throw new Error(`Cannot find matching key for transaction sent to ${$r}`);if(jr&&jr.toString()===Mr.public_key)try{return await super.signAndSendTransaction({receiverId:$r,actions:Pr})}catch(hn){if(hn.type==="NotEnoughAllowance")Mr=await this.accessKeyForTransaction($r,Pr);else throw hn}const Lr=await this.connection.provider.block({finality:"final"}),Vr=le.baseDecode(Lr.header.hash),Gr=fe.PublicKey.from(Mr.public_key),Ur=Mr.access_key.nonce+1,Qr=ce.createTransaction(this.accountId,Gr,$r,Ur,Pr,Vr);return await this.walletConnection.requestSignTransactions({transactions:[Qr],meta:Ar,callbackUrl:ur}),new Promise((hn,Yt)=>{setTimeout(()=>{Yt(new Error("Failed to redirect to sign transaction"))},1e3)})}async accessKeyMatchesTransaction($r,Pr,Ar){const{access_key:{permission:ur}}=$r;if(ur==="FullAccess")return!0;if(ur.FunctionCall){const{receiver_id:jr,method_names:Mr}=ur.FunctionCall;if(jr===this.accountId&&Mr.includes(ye))return!0;if(jr===Pr){if(Ar.length!==1)return!1;const[{functionCall:Lr}]=Ar;return Lr&&(!Lr.deposit||Lr.deposit.toString()==="0")&&(Mr.length===0||Mr.includes(Lr.methodName))}}return!1}async accessKeyForTransaction($r,Pr,Ar){const ur=await this.getAccessKeys();if(Ar){const Mr=ur.find(Lr=>Lr.public_key.toString()===Ar.toString());if(Mr&&await this.accessKeyMatchesTransaction(Mr,$r,Pr))return Mr}const jr=this.walletConnection._authData.allKeys;for(const Mr of ur)if(jr.indexOf(Mr.public_key)!==-1&&await this.accessKeyMatchesTransaction(Mr,$r,Pr))return Mr;return null}};v.ConnectedWalletAccount=Br}}),require_common_index=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/common-index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ur,jr,Mr,Lr){Lr===void 0&&(Lr=Mr),Object.defineProperty(ur,Lr,{enumerable:!0,get:function(){return jr[Mr]}})}:function(ur,jr,Mr,Lr){Lr===void 0&&(Lr=Mr),ur[Lr]=jr[Mr]}),ie=v&&v.__setModuleDefault||(Object.create?function(ur,jr){Object.defineProperty(ur,"default",{enumerable:!0,value:jr})}:function(ur,jr){ur.default=jr}),ae=v&&v.__importStar||function(ur){if(ur&&ur.__esModule)return ur;var jr={};if(ur!=null)for(var Mr in ur)Mr!=="default"&&Object.hasOwnProperty.call(ur,Mr)&&k(jr,ur,Mr);return ie(jr,ur),jr};Object.defineProperty(v,"__esModule",{value:!0}),v.WalletConnection=v.WalletAccount=v.ConnectedWalletAccount=v.Near=v.KeyPair=v.Signer=v.InMemorySigner=v.Contract=v.Connection=v.Account=v.multisig=v.validators=v.transactions=v.utils=v.providers=v.accountCreator=void 0;var ce=ae(require_providers());v.providers=ce;var fe=ae(require_utils$2());v.utils=fe;var le=ae(require_transaction());v.transactions=le;var ve=ae(require_validators());v.validators=ve;var pe=require_account$1();Object.defineProperty(v,"Account",{enumerable:!0,get:function(){return pe.Account}});var ye=ae(require_account_multisig());v.multisig=ye;var me=ae(require_account_creator());v.accountCreator=me;var Ee=require_connection();Object.defineProperty(v,"Connection",{enumerable:!0,get:function(){return Ee.Connection}});var cr=require_signer();Object.defineProperty(v,"Signer",{enumerable:!0,get:function(){return cr.Signer}}),Object.defineProperty(v,"InMemorySigner",{enumerable:!0,get:function(){return cr.InMemorySigner}});var Br=require_contract();Object.defineProperty(v,"Contract",{enumerable:!0,get:function(){return Br.Contract}});var $r=require_key_pair();Object.defineProperty(v,"KeyPair",{enumerable:!0,get:function(){return $r.KeyPair}});var Pr=require_near();Object.defineProperty(v,"Near",{enumerable:!0,get:function(){return Pr.Near}});var Ar=require_wallet_account();Object.defineProperty(v,"ConnectedWalletAccount",{enumerable:!0,get:function(){return Ar.ConnectedWalletAccount}}),Object.defineProperty(v,"WalletAccount",{enumerable:!0,get:function(){return Ar.WalletAccount}}),Object.defineProperty(v,"WalletConnection",{enumerable:!0,get:function(){return Ar.WalletConnection}})}}),require_browser_connect=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/browser-connect.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.connect=void 0;var k=require_near();async function ie(ae){return new k.Near(ae)}v.connect=ie}}),require_browser_index3=__commonJS$1({"node_modules/@nightlylabs/connect-near/node_modules/near-api-js/lib/browser-index.js"(v){var k=v&&v.__createBinding||(Object.create?function(fe,le,ve,pe){pe===void 0&&(pe=ve),Object.defineProperty(fe,pe,{enumerable:!0,get:function(){return le[ve]}})}:function(fe,le,ve,pe){pe===void 0&&(pe=ve),fe[pe]=le[ve]}),ie=v&&v.__setModuleDefault||(Object.create?function(fe,le){Object.defineProperty(fe,"default",{enumerable:!0,value:le})}:function(fe,le){fe.default=le}),ae=v&&v.__importStar||function(fe){if(fe&&fe.__esModule)return fe;var le={};if(fe!=null)for(var ve in fe)ve!=="default"&&Object.hasOwnProperty.call(fe,ve)&&k(le,fe,ve);return ie(le,fe),le},ce=v&&v.__exportStar||function(fe,le){for(var ve in fe)ve!=="default"&&!le.hasOwnProperty(ve)&&k(le,fe,ve)};Object.defineProperty(v,"__esModule",{value:!0}),v.keyStores=ae(require_browser_index2()),ce(require_common_index(),v),ce(require_browser_connect(),v),require_error_polyfill()}});function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var getRandomValues,rnds8,init_rng=__esm$1({"node_modules/uuid/dist/esm-browser/rng.js"(){rnds8=new Uint8Array(16)}}),regex_default,init_regex=__esm$1({"node_modules/uuid/dist/esm-browser/regex.js"(){regex_default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i}});function validate(v){return typeof v=="string"&®ex_default.test(v)}var validate_default,init_validate=__esm$1({"node_modules/uuid/dist/esm-browser/validate.js"(){init_regex(),validate_default=validate}});function stringify(v){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ie=(byteToHex[v[k+0]]+byteToHex[v[k+1]]+byteToHex[v[k+2]]+byteToHex[v[k+3]]+"-"+byteToHex[v[k+4]]+byteToHex[v[k+5]]+"-"+byteToHex[v[k+6]]+byteToHex[v[k+7]]+"-"+byteToHex[v[k+8]]+byteToHex[v[k+9]]+"-"+byteToHex[v[k+10]]+byteToHex[v[k+11]]+byteToHex[v[k+12]]+byteToHex[v[k+13]]+byteToHex[v[k+14]]+byteToHex[v[k+15]]).toLowerCase();if(!validate_default(ie))throw TypeError("Stringified UUID is invalid");return ie}var byteToHex,i$1,stringify_default,init_stringify=__esm$1({"node_modules/uuid/dist/esm-browser/stringify.js"(){for(init_validate(),byteToHex=[],i$1=0;i$1<256;++i$1)byteToHex.push((i$1+256).toString(16).substr(1));stringify_default=stringify}});function v1(v,k,ie){var ae=k&&ie||0,ce=k||new Array(16);v=v||{};var fe=v.node||_nodeId,le=v.clockseq!==void 0?v.clockseq:_clockseq;if(fe==null||le==null){var ve=v.random||(v.rng||rng)();fe==null&&(fe=_nodeId=[ve[0]|1,ve[1],ve[2],ve[3],ve[4],ve[5]]),le==null&&(le=_clockseq=(ve[6]<<8|ve[7])&16383)}var pe=v.msecs!==void 0?v.msecs:Date.now(),ye=v.nsecs!==void 0?v.nsecs:_lastNSecs+1,me=pe-_lastMSecs+(ye-_lastNSecs)/1e4;if(me<0&&v.clockseq===void 0&&(le=le+1&16383),(me<0||pe>_lastMSecs)&&v.nsecs===void 0&&(ye=0),ye>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_lastMSecs=pe,_lastNSecs=ye,_clockseq=le,pe+=122192928e5;var Ee=((pe&268435455)*1e4+ye)%4294967296;ce[ae++]=Ee>>>24&255,ce[ae++]=Ee>>>16&255,ce[ae++]=Ee>>>8&255,ce[ae++]=Ee&255;var cr=pe/4294967296*1e4&268435455;ce[ae++]=cr>>>8&255,ce[ae++]=cr&255,ce[ae++]=cr>>>24&15|16,ce[ae++]=cr>>>16&255,ce[ae++]=le>>>8|128,ce[ae++]=le&255;for(var Br=0;Br<6;++Br)ce[ae+Br]=fe[Br];return k||stringify_default(ce)}var _nodeId,_clockseq,_lastMSecs,_lastNSecs,v1_default,init_v1=__esm$1({"node_modules/uuid/dist/esm-browser/v1.js"(){init_rng(),init_stringify(),_lastMSecs=0,_lastNSecs=0,v1_default=v1}});function parse$1(v){if(!validate_default(v))throw TypeError("Invalid UUID");var k,ie=new Uint8Array(16);return ie[0]=(k=parseInt(v.slice(0,8),16))>>>24,ie[1]=k>>>16&255,ie[2]=k>>>8&255,ie[3]=k&255,ie[4]=(k=parseInt(v.slice(9,13),16))>>>8,ie[5]=k&255,ie[6]=(k=parseInt(v.slice(14,18),16))>>>8,ie[7]=k&255,ie[8]=(k=parseInt(v.slice(19,23),16))>>>8,ie[9]=k&255,ie[10]=(k=parseInt(v.slice(24,36),16))/1099511627776&255,ie[11]=k/4294967296&255,ie[12]=k>>>24&255,ie[13]=k>>>16&255,ie[14]=k>>>8&255,ie[15]=k&255,ie}var parse_default,init_parse=__esm$1({"node_modules/uuid/dist/esm-browser/parse.js"(){init_validate(),parse_default=parse$1}});function stringToBytes(v){v=unescape(encodeURIComponent(v));for(var k=[],ie=0;ie>5]>>>ce%32&255,le=parseInt(ae.charAt(fe>>>4&15)+ae.charAt(fe&15),16);k.push(le)}return k}function getOutputLength(v){return(v+64>>>9<<4)+14+1}function wordsToMd5(v,k){v[k>>5]|=128<>5]|=(v[ae/8]&255)<>16)+(k>>16)+(ie>>16);return ae<<16|ie&65535}function bitRotateLeft(v,k){return v<>>32-k}function md5cmn(v,k,ie,ae,ce,fe){return safeAdd(bitRotateLeft(safeAdd(safeAdd(k,v),safeAdd(ae,fe)),ce),ie)}function md5ff(v,k,ie,ae,ce,fe,le){return md5cmn(k&ie|~k&ae,v,k,ce,fe,le)}function md5gg(v,k,ie,ae,ce,fe,le){return md5cmn(k&ae|ie&~ae,v,k,ce,fe,le)}function md5hh(v,k,ie,ae,ce,fe,le){return md5cmn(k^ie^ae,v,k,ce,fe,le)}function md5ii(v,k,ie,ae,ce,fe,le){return md5cmn(ie^(k|~ae),v,k,ce,fe,le)}var md5_default,init_md5=__esm$1({"node_modules/uuid/dist/esm-browser/md5.js"(){md5_default=md5}}),v3,v3_default,init_v3=__esm$1({"node_modules/uuid/dist/esm-browser/v3.js"(){init_v35(),init_md5(),v3=v35_default("v3",48,md5_default),v3_default=v3}});function v4(v,k,ie){v=v||{};var ae=v.random||(v.rng||rng)();if(ae[6]=ae[6]&15|64,ae[8]=ae[8]&63|128,k){ie=ie||0;for(var ce=0;ce<16;++ce)k[ie+ce]=ae[ce];return k}return stringify_default(ae)}var v4_default,init_v4=__esm$1({"node_modules/uuid/dist/esm-browser/v4.js"(){init_rng(),init_stringify(),v4_default=v4}});function f$1(v,k,ie,ae){switch(v){case 0:return k&ie^~k&ae;case 1:return k^ie^ae;case 2:return k&ie^k&ae^ie&ae;case 3:return k^ie^ae}}function ROTL(v,k){return v<>>32-k}function sha1(v){var k=[1518500249,1859775393,2400959708,3395469782],ie=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof v=="string"){var ae=unescape(encodeURIComponent(v));v=[];for(var ce=0;ce>>0;Mr=jr,jr=ur,ur=ROTL(Ar,30)>>>0,Ar=Pr,Pr=Gr}ie[0]=ie[0]+Pr>>>0,ie[1]=ie[1]+Ar>>>0,ie[2]=ie[2]+ur>>>0,ie[3]=ie[3]+jr>>>0,ie[4]=ie[4]+Mr>>>0}return[ie[0]>>24&255,ie[0]>>16&255,ie[0]>>8&255,ie[0]&255,ie[1]>>24&255,ie[1]>>16&255,ie[1]>>8&255,ie[1]&255,ie[2]>>24&255,ie[2]>>16&255,ie[2]>>8&255,ie[2]&255,ie[3]>>24&255,ie[3]>>16&255,ie[3]>>8&255,ie[3]&255,ie[4]>>24&255,ie[4]>>16&255,ie[4]>>8&255,ie[4]&255]}var sha1_default,init_sha1=__esm$1({"node_modules/uuid/dist/esm-browser/sha1.js"(){sha1_default=sha1}}),v5,v5_default,init_v5=__esm$1({"node_modules/uuid/dist/esm-browser/v5.js"(){init_v35(),init_sha1(),v5=v35_default("v5",80,sha1_default),v5_default=v5}}),nil_default,init_nil=__esm$1({"node_modules/uuid/dist/esm-browser/nil.js"(){nil_default="00000000-0000-0000-0000-000000000000"}});function version$9(v){if(!validate_default(v))throw TypeError("Invalid UUID");return parseInt(v.substr(14,1),16)}var version_default,init_version=__esm$1({"node_modules/uuid/dist/esm-browser/version.js"(){init_validate(),version_default=version$9}}),esm_browser_exports={};__export$1(esm_browser_exports,{NIL:()=>nil_default,parse:()=>parse_default,stringify:()=>stringify_default,v1:()=>v1_default,v3:()=>v3_default,v4:()=>v4_default,v5:()=>v5_default,validate:()=>validate_default,version:()=>version_default});var init_esm_browser=__esm$1({"node_modules/uuid/dist/esm-browser/index.js"(){init_v1(),init_v3(),init_v4(),init_v5(),init_nil(),init_version(),init_validate(),init_stringify(),init_parse()}}),require_utils2$3=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/sdk/src/utils.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.sleep=v.getRandomId=void 0;var k=(init_esm_browser(),__toCommonJS$1(esm_browser_exports)),ie=()=>(0,k.v4)();v.getRandomId=ie;function ae(ce){return new Promise(fe=>setTimeout(fe,ce))}v.sleep=ae}}),require_AppMessages=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/sdk/src/types/AppMessages.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.createInitAction=v.Version=v.AppMessageTypes=void 0;var k=require_utils2$3(),ie;(function(fe){fe.Init="Init",fe.SignTransaction="SignTransaction",fe.SignAllTransactions="SignAllTransactions",fe.SignMessage="SignMessage"})(ie=v.AppMessageTypes||(v.AppMessageTypes={}));var ae;(function(fe){fe.V1="V1"})(ae=v.Version||(v.Version={}));var ce=({persistent:fe=!0,additionalInfo:le,application:ve,description:pe,network:ye,icon:me,persistentSessionId:Ee})=>{const cr=(0,k.getRandomId)();return{type:ie.Init,persistent:fe,application:ve,description:pe,additionalInfo:le,network:ye,icon:me,version:ae.V1,id:cr,persistentSessionId:Ee}};v.createInitAction=ce}}),require_ServerMessage=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/sdk/src/types/ServerMessage.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ServerMessageTypes=void 0,function(k){k.InitSuccess="InitSuccess",k.AppData="AppData",k.UserConnected="UserConnected",k.PendingRequests="PendingRequests",k.SignTransactionResolve="SignTransactionResolve",k.SignAllTransactionsResolve="SignAllTransactionsResolve",k.SignMessageResolve="SignMessageResolve",k.NewRequestMessage="NewRequestMessage",k.GetSessions="GetSessions",k.Success="Success",k.Error="Error"}(v.ServerMessageTypes||(v.ServerMessageTypes={}))}}),require_browser3$2=__commonJS$1({"node_modules/isomorphic-localstorage/browser.js"(v,k){var ie=ae=>{var ce=null;return typeof localStorage<"u"?ce=localStorage:typeof window<"u"&&(ce=window.localStorage),ce};k.exports=ie}}),require_appNear=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/sdk/src/near/appNear.js"(v){var k=v&&v.__awaiter||function(Pr,Ar,ur,jr){function Mr(Lr){return Lr instanceof ur?Lr:new ur(function(Vr){Vr(Lr)})}return new(ur||(ur=Promise))(function(Lr,Vr){function Gr(hn){try{Qr(jr.next(hn))}catch(Yt){Vr(Yt)}}function Ur(hn){try{Qr(jr.throw(hn))}catch(Yt){Vr(Yt)}}function Qr(hn){hn.done?Lr(hn.value):Mr(hn.value).then(Gr,Ur)}Qr((jr=jr.apply(Pr,Ar||[])).next())})},ie=v&&v.__importDefault||function(Pr){return Pr&&Pr.__esModule?Pr:{default:Pr}};Object.defineProperty(v,"__esModule",{value:!0}),v.AppNear=void 0;var ae=require_types$3(),ce=ie(require_bs58()),fe=ie(require_browser2$2()),le=require_browser_index3(),ve=require_utils$2(),pe=require_AppMessages(),ye=require_ServerMessage(),me=require_utils2$3(),Ee=ie(require_browser3$2()),cr=(0,Ee.default)("./.localstorage"),Br="nightly-id-near",$r=class{constructor(Pr,Ar){this.events={},this.sessionId="",this.send=ur=>k(this,void 0,void 0,function*(){return new Promise((jr,Mr)=>{const Lr=(0,me.getRandomId)(),Vr=JSON.stringify(Object.assign(Object.assign({},ur),{id:Lr})),Gr=setTimeout(()=>{Mr(new Error(`Connection timed out after ${this.timeout} ms`))},this.timeout);this.events[Lr]=Ur=>{clearTimeout(Gr),Ur.type===ye.ServerMessageTypes.Error?Mr(Ur.msg):jr(Ur)},this.ws.send(Vr)})}),this.signTransaction=ur=>k(this,void 0,void 0,function*(){const jr={transaction:Buffer.from(ur.encode()).toString("hex"),network:ae.NETWORK.NEAR,type:pe.AppMessageTypes.SignTransaction},Mr=yield this.send(jr);return le.transactions.SignedTransaction.decode(Buffer.from(Mr.transaction,"hex"))}),this.signAllTransactions=ur=>k(this,void 0,void 0,function*(){const jr={transactions:ur.map(Vr=>Buffer.from(Vr.encode()).toString("hex")),network:ae.NETWORK.NEAR,type:pe.AppMessageTypes.SignAllTransactions};return(yield this.send(jr)).transactions.map(Vr=>le.transactions.SignedTransaction.decode(Buffer.from(Vr,"hex")))}),this.signMessage=ur=>k(this,void 0,void 0,function*(){const jr={message:ur,network:ae.NETWORK.NEAR,type:pe.AppMessageTypes.SignMessage},Mr=yield this.send(jr);return Uint8Array.from(Buffer.from(Mr.signature,"hex"))}),this.ws=Pr,this.timeout=Ar}};v.AppNear=$r,$r.build=({appMetadata:Pr,url:Ar,onUserConnect:ur,timeout:jr=40*1e3})=>k(void 0,void 0,void 0,function*(){return new Promise((Mr,Lr)=>{const Vr=typeof Pr.persistent>"u"?!0:Pr.persistent,Gr=Ar?new fe.default(Ar):new fe.default("wss://relay.nightly.app/app"),Ur=new $r(Gr,jr);Ur.events[ye.ServerMessageTypes.UserConnected]=Qr=>{const hn=JSON.parse(Qr.metadata),Yt=ve.PublicKey.fromString(ce.default.encode(Buffer.from(Qr.publicKey,"hex")));ur({accountId:hn.accountId,publicKey:Yt})},Ur.ws.onopen=()=>{var Qr;Ur.ws.onmessage=({data:Qt})=>{const Xt=JSON.parse(Qt);Ur.events[Xt.id](Xt)};const hn=Vr&&(Qr=cr.getItem(Br))!==null&&Qr!==void 0?Qr:void 0,Yt=(0,pe.createInitAction)(Object.assign(Object.assign({},Pr),{network:ae.NETWORK.NEAR,persistentSessionId:hn})),fn=setTimeout(()=>{Lr(new Error(`Connection timed out after ${Ur.timeout} ms`))},jr);Ur.events[Yt.id]=Qt=>{clearTimeout(fn),Qt.type===ye.ServerMessageTypes.InitSuccess?(Ur.sessionId=Qt.sessionId,Vr&&cr.setItem(Br,Qt.sessionId),Mr(Ur)):Lr()},Ur.ws.send(JSON.stringify(Yt))}})})}}),require_eventemitter3=__commonJS$1({"node_modules/eventemitter3/index.js"(v,k){var ie=Object.prototype.hasOwnProperty,ae="~";function ce(){}Object.create&&(ce.prototype=Object.create(null),new ce().__proto__||(ae=!1));function fe(ye,me,Ee){this.fn=ye,this.context=me,this.once=Ee||!1}function le(ye,me,Ee,cr,Br){if(typeof Ee!="function")throw new TypeError("The listener must be a function");var $r=new fe(Ee,cr||ye,Br),Pr=ae?ae+me:me;return ye._events[Pr]?ye._events[Pr].fn?ye._events[Pr]=[ye._events[Pr],$r]:ye._events[Pr].push($r):(ye._events[Pr]=$r,ye._eventsCount++),ye}function ve(ye,me){--ye._eventsCount===0?ye._events=new ce:delete ye._events[me]}function pe(){this._events=new ce,this._eventsCount=0}pe.prototype.eventNames=function(){var me=[],Ee,cr;if(this._eventsCount===0)return me;for(cr in Ee=this._events)ie.call(Ee,cr)&&me.push(ae?cr.slice(1):cr);return Object.getOwnPropertySymbols?me.concat(Object.getOwnPropertySymbols(Ee)):me},pe.prototype.listeners=function(me){var Ee=ae?ae+me:me,cr=this._events[Ee];if(!cr)return[];if(cr.fn)return[cr.fn];for(var Br=0,$r=cr.length,Pr=new Array($r);Br<$r;Br++)Pr[Br]=cr[Br].fn;return Pr},pe.prototype.listenerCount=function(me){var Ee=ae?ae+me:me,cr=this._events[Ee];return cr?cr.fn?1:cr.length:0},pe.prototype.emit=function(me,Ee,cr,Br,$r,Pr){var Ar=ae?ae+me:me;if(!this._events[Ar])return!1;var ur=this._events[Ar],jr=arguments.length,Mr,Lr;if(ur.fn){switch(ur.once&&this.removeListener(me,ur.fn,void 0,!0),jr){case 1:return ur.fn.call(ur.context),!0;case 2:return ur.fn.call(ur.context,Ee),!0;case 3:return ur.fn.call(ur.context,Ee,cr),!0;case 4:return ur.fn.call(ur.context,Ee,cr,Br),!0;case 5:return ur.fn.call(ur.context,Ee,cr,Br,$r),!0;case 6:return ur.fn.call(ur.context,Ee,cr,Br,$r,Pr),!0}for(Lr=1,Mr=new Array(jr-1);Lr({type:ie.Connect,version:k.Version.V1,publicKey:ce,sessionId:fe,token:le,notificationEndpoint:ve,device:pe,metadata:ye});v.createConnectMessage=ae}}),require_clientNear=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/sdk/src/near/clientNear.js"(v){var k=v&&v.__awaiter||function(Ee,cr,Br,$r){function Pr(Ar){return Ar instanceof Br?Ar:new Br(function(ur){ur(Ar)})}return new(Br||(Br=Promise))(function(Ar,ur){function jr(Vr){try{Lr($r.next(Vr))}catch(Gr){ur(Gr)}}function Mr(Vr){try{Lr($r.throw(Vr))}catch(Gr){ur(Gr)}}function Lr(Vr){Vr.done?Ar(Vr.value):Pr(Vr.value).then(jr,Mr)}Lr(($r=$r.apply(Ee,cr||[])).next())})},ie=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.ClientNear=void 0;var ae=ie(require_eventemitter3()),ce=ie(require_browser2$2()),fe=require_browser_index3(),le=require_AppRequest(),ve=require_ClientMessages(),pe=require_ServerMessage(),ye=require_utils2$3(),me=class extends ae.default{constructor(Ee,cr){super(),this.events={},this.sessionId="",this.connect=({publicKey:Br,sessionId:$r,token:Pr,device:Ar,accountId:ur,notificationEndpoint:jr})=>k(this,void 0,void 0,function*(){const Mr=(0,ve.createConnectMessage)(Buffer.from(Br.data).toString("hex"),$r,Pr,jr,Ar,JSON.stringify({accountId:ur}));yield this.send(Mr)}),this.endSession=()=>k(this,void 0,void 0,function*(){const Br={type:ve.ClientMessageTypes.EndSession,sessionId:this.sessionId};yield this.send(Br)}),this.getSessions=Br=>k(this,void 0,void 0,function*(){const $r={type:ve.ClientMessageTypes.GetSessions,token:Br};return yield this.send($r)}),this.getPendingRequests=()=>k(this,void 0,void 0,function*(){const Br={type:ve.ClientMessageTypes.GetPendingRequests,sessionId:this.sessionId};return yield this.send(Br)}),this.send=Br=>k(this,void 0,void 0,function*(){return new Promise(($r,Pr)=>{const Ar=(0,ye.getRandomId)(),ur=JSON.stringify(Object.assign(Object.assign({},Br),{id:Ar}));this.events[Ar]=jr=>{jr.type===pe.ServerMessageTypes.Error?Pr(jr.msg):$r(jr)},this.ws.send(ur)})}),this.resolveSignTransaction=({requestId:Br,signedTransactions:$r})=>k(this,void 0,void 0,function*(){const Pr=$r.map(ur=>Buffer.from(ur.encode()).toString("hex")),Ar={type:ve.ClientMessageTypes.ResolveSignTransaction,sessionId:this.sessionId,requestId:Br,signedTransactions:Pr};return this.send(Ar)}),this.resolveSignMessage=({requestId:Br,signature:$r})=>k(this,void 0,void 0,function*(){const Pr={type:ve.ClientMessageTypes.ResolveSignMessage,sessionId:this.sessionId,requestId:Br,signature:Buffer.from($r).toString("hex")};return this.send(Pr)}),this.rejectRequest=Br=>k(this,void 0,void 0,function*(){const $r={type:ve.ClientMessageTypes.RejectRequest,requestId:Br};return this.send($r)}),this.ws=Ee,this.sessionId=cr}};v.ClientNear=me,me.build=({sessionId:Ee,url:cr})=>k(void 0,void 0,void 0,function*(){return new Promise((Br,$r)=>{const Pr=cr?new ce.default(cr):new ce.default("wss://relay.nightly.app/client"),Ar=new me(Pr,Ee);Ar.ws.onopen=()=>{Ar.ws.onmessage=({data:Mr})=>{const Lr=JSON.parse(Mr);if(Lr.type===pe.ServerMessageTypes.NewRequestMessage){if(Lr.request.type==le.AppRequest.SignTransaction||Lr.request.type==le.AppRequest.SignAllTransactions){const Vr=Object.assign({deserialized:Lr.request.transactions.map(Gr=>fe.transactions.Transaction.decode(Buffer.from(Gr,"hex")))},Lr.request);Ar.emit("newRequest",Vr)}else Ar.emit("newRequest",Lr.request);return}else Ar.events[Lr.id](Lr)},Ar.ws.onclose=()=>{Ar.emit("disconnect")};const ur=(0,ye.getRandomId)(),jr={id:ur,sessionId:Ee,type:ve.ClientMessageTypes.GetInfo};Ar.events[ur]=Mr=>{Mr.type===pe.ServerMessageTypes.AppData?Br({client:Ar,data:Mr}):$r(Mr)},Ar.ws.send(JSON.stringify(jr))}})})}}),require_AppInfo=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/sdk/src/types/AppInfo.js"(v){Object.defineProperty(v,"__esModule",{value:!0})}}),require_NearAppInfo=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/sdk/src/types/NearAppInfo.js"(v){Object.defineProperty(v,"__esModule",{value:!0})}}),require_persistedData=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/lib-near/src/persistedData.js"(v){var k=v&&v.__importDefault||function(cr){return cr&&cr.__esModule?cr:{default:cr}};Object.defineProperty(v,"__esModule",{value:!0}),v.clearPersistedSessionAccountId=v.clearPersistedSessionPublicKey=v.clearPersistedSessionId=v.setPersistedSessionAccountId=v.setPersistedSessionPublicKey=v.getPersistedSessionAccountId=v.getPersistedSessionPublicKey=v.getPersistedSessionId=v.SESSION_ACCOUNTID_KEY=v.SESSION_PUBLICKEY_KEY=v.SESSION_ID_KEY=void 0;var ie=k(require_browser3$2()),ae=(0,ie.default)("./.localstorage");v.SESSION_ID_KEY="nightly-id-near",v.SESSION_PUBLICKEY_KEY="nightly-connect-near-publickey",v.SESSION_ACCOUNTID_KEY="nightly-connect-near-accountid";var ce=()=>ae.getItem(v.SESSION_ID_KEY);v.getPersistedSessionId=ce;var fe=()=>ae.getItem(v.SESSION_PUBLICKEY_KEY);v.getPersistedSessionPublicKey=fe;var le=()=>ae.getItem(v.SESSION_ACCOUNTID_KEY);v.getPersistedSessionAccountId=le;var ve=cr=>{ae.setItem(v.SESSION_PUBLICKEY_KEY,cr)};v.setPersistedSessionPublicKey=ve;var pe=cr=>{ae.setItem(v.SESSION_ACCOUNTID_KEY,cr)};v.setPersistedSessionAccountId=pe;var ye=()=>{ae.removeItem(v.SESSION_ID_KEY)};v.clearPersistedSessionId=ye;var me=()=>{ae.removeItem(v.SESSION_PUBLICKEY_KEY)};v.clearPersistedSessionPublicKey=me;var Ee=()=>{ae.removeItem(v.SESSION_ACCOUNTID_KEY)};v.clearPersistedSessionAccountId=Ee}}),require_src=__commonJS$1({"node_modules/@nightlylabs/connect-near/lib/nightlyConnect/connect/lib-near/src/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(le,ve,pe,ye){ye===void 0&&(ye=pe);var me=Object.getOwnPropertyDescriptor(ve,pe);(!me||("get"in me?!ve.__esModule:me.writable||me.configurable))&&(me={enumerable:!0,get:function(){return ve[pe]}}),Object.defineProperty(le,ye,me)}:function(le,ve,pe,ye){ye===void 0&&(ye=pe),le[ye]=ve[pe]}),ie=v&&v.__exportStar||function(le,ve){for(var pe in le)pe!=="default"&&!Object.prototype.hasOwnProperty.call(ve,pe)&&k(ve,le,pe)};Object.defineProperty(v,"__esModule",{value:!0}),v.ClientNear=v.AppNear=v.NightlyConnectModal=void 0;var ae=require_NightlyConnectModal();Object.defineProperty(v,"NightlyConnectModal",{enumerable:!0,get:function(){return ae.NightlyConnectModal}});var ce=require_appNear();Object.defineProperty(v,"AppNear",{enumerable:!0,get:function(){return ce.AppNear}});var fe=require_clientNear();Object.defineProperty(v,"ClientNear",{enumerable:!0,get:function(){return fe.ClientNear}}),ie(require_AppMessages(),v),ie(require_AppRequest(),v),ie(require_ClientMessages(),v),ie(require_ServerMessage(),v),ie(require_AppInfo(),v),ie(require_NearAppInfo(),v),ie(require_types$3(),v),ie(require_persistedData(),v)}}),nearAPI$4=__toESM(require_browser_index2$1(),1),import_connect_near=__toESM(require_src(),1),commonjsGlobal$a=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$9=function(v){return v&&v.Math==Math&&v},global$j$3=check$9(typeof globalThis=="object"&&globalThis)||check$9(typeof window=="object"&&window)||check$9(typeof self=="object"&&self)||check$9(typeof commonjsGlobal$a=="object"&&commonjsGlobal$a)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$7={},fails$e$4=function(v){try{return!!v()}catch{return!0}},fails$d$4=fails$e$4,descriptors$9=!fails$d$4(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$c$4=fails$e$4,functionBindNative$9=!fails$c$4(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$5=functionBindNative$9,call$f$4=Function.prototype.call,functionCall$9=NATIVE_BIND$3$5?call$f$4.bind(call$f$4):function(){return call$f$4.apply(call$f$4,arguments)},objectPropertyIsEnumerable$7={},$propertyIsEnumerable$7={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$3=Object.getOwnPropertyDescriptor,NASHORN_BUG$7=getOwnPropertyDescriptor$2$3&&!$propertyIsEnumerable$7.call({1:2},1);objectPropertyIsEnumerable$7.f=NASHORN_BUG$7?function v(k){var ie=getOwnPropertyDescriptor$2$3(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$7;var createPropertyDescriptor$3$4=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2$5=functionBindNative$9,FunctionPrototype$2$5=Function.prototype,bind$5$3=FunctionPrototype$2$5.bind,call$e$4=FunctionPrototype$2$5.call,uncurryThis$e$4=NATIVE_BIND$2$5&&bind$5$3.bind(call$e$4,call$e$4),functionUncurryThis$9=NATIVE_BIND$2$5?function(v){return v&&uncurryThis$e$4(v)}:function(v){return v&&function(){return call$e$4.apply(v,arguments)}},uncurryThis$d$5=functionUncurryThis$9,toString$2$7=uncurryThis$d$5({}.toString),stringSlice$9=uncurryThis$d$5("".slice),classofRaw$1$8=function(v){return stringSlice$9(toString$2$7(v),8,-1)},uncurryThis$c$5=functionUncurryThis$9,fails$b$4=fails$e$4,classof$5$4=classofRaw$1$8,$Object$4$4=Object,split$7=uncurryThis$c$5("".split),indexedObject$7=fails$b$4(function(){return!$Object$4$4("z").propertyIsEnumerable(0)})?function(v){return classof$5$4(v)=="String"?split$7(v,""):$Object$4$4(v)}:$Object$4$4,$TypeError$b$4=TypeError,requireObjectCoercible$2$7=function(v){if(v==null)throw $TypeError$b$4("Can't call method on "+v);return v},IndexedObject$1$6=indexedObject$7,requireObjectCoercible$1$9=requireObjectCoercible$2$7,toIndexedObject$5$4=function(v){return IndexedObject$1$6(requireObjectCoercible$1$9(v))},isCallable$k$3=function(v){return typeof v=="function"},isCallable$j$4=isCallable$k$3,isObject$7$5=function(v){return typeof v=="object"?v!==null:isCallable$j$4(v)},global$i$4=global$j$3,isCallable$i$4=isCallable$k$3,aFunction$9=function(v){return isCallable$i$4(v)?v:void 0},getBuiltIn$8$3=function(v,k){return arguments.length<2?aFunction$9(global$i$4[v]):global$i$4[v]&&global$i$4[v][k]},uncurryThis$b$5=functionUncurryThis$9,objectIsPrototypeOf$9=uncurryThis$b$5({}.isPrototypeOf),getBuiltIn$7$3=getBuiltIn$8$3,engineUserAgent$9=getBuiltIn$7$3("navigator","userAgent")||"",global$h$5=global$j$3,userAgent$3$3=engineUserAgent$9,process$3$3=global$h$5.process,Deno$1$4=global$h$5.Deno,versions$9=process$3$3&&process$3$3.versions||Deno$1$4&&Deno$1$4.version,v8$9=versions$9&&versions$9.v8,match$9,version2$2;v8$9&&(match$9=v8$9.split("."),version2$2=match$9[0]>0&&match$9[0]<4?1:+(match$9[0]+match$9[1]));!version2$2&&userAgent$3$3&&(match$9=userAgent$3$3.match(/Edge\/(\d+)/),(!match$9||match$9[1]>=74)&&(match$9=userAgent$3$3.match(/Chrome\/(\d+)/),match$9&&(version2$2=+match$9[1])));var engineV8Version$9=version2$2,V8_VERSION$1$3=engineV8Version$9,fails$a$6=fails$e$4,nativeSymbol$9=!!Object.getOwnPropertySymbols&&!fails$a$6(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$3&&V8_VERSION$1$3<41}),NATIVE_SYMBOL$1$9=nativeSymbol$9,useSymbolAsUid$9=NATIVE_SYMBOL$1$9&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$6$5=getBuiltIn$8$3,isCallable$h$5=isCallable$k$3,isPrototypeOf$3$4=objectIsPrototypeOf$9,USE_SYMBOL_AS_UID$1$9=useSymbolAsUid$9,$Object$3$6=Object,isSymbol$2$9=USE_SYMBOL_AS_UID$1$9?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$5("Symbol");return isCallable$h$5(k)&&isPrototypeOf$3$4(k.prototype,$Object$3$6(v))},$String$3$4=String,tryToString$4$5=function(v){try{return $String$3$4(v)}catch{return"Object"}},isCallable$g$5=isCallable$k$3,tryToString$3$5=tryToString$4$5,$TypeError$a$5=TypeError,aCallable$7$3=function(v){if(isCallable$g$5(v))return v;throw $TypeError$a$5(tryToString$3$5(v)+" is not a function")},aCallable$6$3=aCallable$7$3,getMethod$3$4=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$6$3(ie)},call$d$4=functionCall$9,isCallable$f$5=isCallable$k$3,isObject$6$5=isObject$7$5,$TypeError$9$5=TypeError,ordinaryToPrimitive$1$9=function(v,k){var ie,ae;if(k==="string"&&isCallable$f$5(ie=v.toString)&&!isObject$6$5(ae=call$d$4(ie,v))||isCallable$f$5(ie=v.valueOf)&&!isObject$6$5(ae=call$d$4(ie,v))||k!=="string"&&isCallable$f$5(ie=v.toString)&&!isObject$6$5(ae=call$d$4(ie,v)))return ae;throw $TypeError$9$5("Can't convert object to primitive value")},shared$3$9={exports:{}},global$g$5=global$j$3,defineProperty$5$4=Object.defineProperty,defineGlobalProperty$3$7=function(v,k){try{defineProperty$5$4(global$g$5,v,{value:k,configurable:!0,writable:!0})}catch{global$g$5[v]=k}return k},global$f$5=global$j$3,defineGlobalProperty$2$9=defineGlobalProperty$3$7,SHARED$9="__core-js_shared__",store$3$9=global$f$5[SHARED$9]||defineGlobalProperty$2$9(SHARED$9,{}),sharedStore$9=store$3$9,store$2$9=sharedStore$9;(shared$3$9.exports=function(v,k){return store$2$9[v]||(store$2$9[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$b=requireObjectCoercible$2$7,$Object$2$9=Object,toObject$3$4=function(v){return $Object$2$9(requireObjectCoercible$b(v))},uncurryThis$a$7=functionUncurryThis$9,toObject$2$6=toObject$3$4,hasOwnProperty$9=uncurryThis$a$7({}.hasOwnProperty),hasOwnProperty_1$9=Object.hasOwn||function v(k,ie){return hasOwnProperty$9(toObject$2$6(k),ie)},uncurryThis$9$7=functionUncurryThis$9,id$b=0,postfix$9=Math.random(),toString$1$9=uncurryThis$9$7(1 .toString),uid$2$9=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$1$9(++id$b+postfix$9,36)},global$e$5=global$j$3,shared$2$9=shared$3$9.exports,hasOwn$a$4=hasOwnProperty_1$9,uid$1$9=uid$2$9,NATIVE_SYMBOL$a=nativeSymbol$9,USE_SYMBOL_AS_UID$a=useSymbolAsUid$9,WellKnownSymbolsStore$9=shared$2$9("wks"),Symbol$1$9=global$e$5.Symbol,symbolFor$9=Symbol$1$9&&Symbol$1$9.for,createWellKnownSymbol$9=USE_SYMBOL_AS_UID$a?Symbol$1$9:Symbol$1$9&&Symbol$1$9.withoutSetter||uid$1$9,wellKnownSymbol$e$4=function(v){if(!hasOwn$a$4(WellKnownSymbolsStore$9,v)||!(NATIVE_SYMBOL$a||typeof WellKnownSymbolsStore$9[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$a&&hasOwn$a$4(Symbol$1$9,v)?WellKnownSymbolsStore$9[v]=Symbol$1$9[v]:USE_SYMBOL_AS_UID$a&&symbolFor$9?WellKnownSymbolsStore$9[v]=symbolFor$9(k):WellKnownSymbolsStore$9[v]=createWellKnownSymbol$9(k)}return WellKnownSymbolsStore$9[v]},call$c$5=functionCall$9,isObject$5$9=isObject$7$5,isSymbol$1$9=isSymbol$2$9,getMethod$2$5=getMethod$3$4,ordinaryToPrimitive$a=ordinaryToPrimitive$1$9,wellKnownSymbol$d$4=wellKnownSymbol$e$4,$TypeError$8$5=TypeError,TO_PRIMITIVE$9=wellKnownSymbol$d$4("toPrimitive"),toPrimitive$1$9=function(v,k){if(!isObject$5$9(v)||isSymbol$1$9(v))return v;var ie=getMethod$2$5(v,TO_PRIMITIVE$9),ae;if(ie){if(k===void 0&&(k="default"),ae=call$c$5(ie,v,k),!isObject$5$9(ae)||isSymbol$1$9(ae))return ae;throw $TypeError$8$5("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$a(v,k)},toPrimitive$b=toPrimitive$1$9,isSymbol$c=isSymbol$2$9,toPropertyKey$2$7=function(v){var k=toPrimitive$b(v,"string");return isSymbol$c(k)?k:k+""},global$d$5=global$j$3,isObject$4$9=isObject$7$5,document$3$3=global$d$5.document,EXISTS$1$9=isObject$4$9(document$3$3)&&isObject$4$9(document$3$3.createElement),documentCreateElement$2$4=function(v){return EXISTS$1$9?document$3$3.createElement(v):{}},DESCRIPTORS$a$4=descriptors$9,fails$9$7=fails$e$4,createElement$1$3=documentCreateElement$2$4,ie8DomDefine$9=!DESCRIPTORS$a$4&&!fails$9$7(function(){return Object.defineProperty(createElement$1$3("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$9$4=descriptors$9,call$b$5=functionCall$9,propertyIsEnumerableModule$1$6=objectPropertyIsEnumerable$7,createPropertyDescriptor$2$7=createPropertyDescriptor$3$4,toIndexedObject$4$4=toIndexedObject$5$4,toPropertyKey$1$9=toPropertyKey$2$7,hasOwn$9$4=hasOwnProperty_1$9,IE8_DOM_DEFINE$1$7=ie8DomDefine$9,$getOwnPropertyDescriptor$1$7=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$7.f=DESCRIPTORS$9$4?$getOwnPropertyDescriptor$1$7:function v(k,ie){if(k=toIndexedObject$4$4(k),ie=toPropertyKey$1$9(ie),IE8_DOM_DEFINE$1$7)try{return $getOwnPropertyDescriptor$1$7(k,ie)}catch{}if(hasOwn$9$4(k,ie))return createPropertyDescriptor$2$7(!call$b$5(propertyIsEnumerableModule$1$6.f,k,ie),k[ie])};var objectDefineProperty$9={},DESCRIPTORS$8$4=descriptors$9,fails$8$7=fails$e$4,v8PrototypeDefineBug$9=DESCRIPTORS$8$4&&fails$8$7(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$3$9=isObject$7$5,$String$2$8=String,$TypeError$7$5=TypeError,anObject$c$4=function(v){if(isObject$3$9(v))return v;throw $TypeError$7$5($String$2$8(v)+" is not an object")},DESCRIPTORS$7$7=descriptors$9,IE8_DOM_DEFINE$a=ie8DomDefine$9,V8_PROTOTYPE_DEFINE_BUG$1$4=v8PrototypeDefineBug$9,anObject$b$4=anObject$c$4,toPropertyKey$d=toPropertyKey$2$7,$TypeError$6$5=TypeError,$defineProperty$9=Object.defineProperty,$getOwnPropertyDescriptor$a=Object.getOwnPropertyDescriptor,ENUMERABLE$9="enumerable",CONFIGURABLE$1$9="configurable",WRITABLE$9="writable";objectDefineProperty$9.f=DESCRIPTORS$7$7?V8_PROTOTYPE_DEFINE_BUG$1$4?function v(k,ie,ae){if(anObject$b$4(k),ie=toPropertyKey$d(ie),anObject$b$4(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$9 in ae&&!ae[WRITABLE$9]){var ce=$getOwnPropertyDescriptor$a(k,ie);ce&&ce[WRITABLE$9]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$9 in ae?ae[CONFIGURABLE$1$9]:ce[CONFIGURABLE$1$9],enumerable:ENUMERABLE$9 in ae?ae[ENUMERABLE$9]:ce[ENUMERABLE$9],writable:!1})}return $defineProperty$9(k,ie,ae)}:$defineProperty$9:function v(k,ie,ae){if(anObject$b$4(k),ie=toPropertyKey$d(ie),anObject$b$4(ae),IE8_DOM_DEFINE$a)try{return $defineProperty$9(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$6$5("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$6$7=descriptors$9,definePropertyModule$4$4=objectDefineProperty$9,createPropertyDescriptor$1$9=createPropertyDescriptor$3$4,createNonEnumerableProperty$4$4=DESCRIPTORS$6$7?function(v,k,ie){return definePropertyModule$4$4.f(v,k,createPropertyDescriptor$1$9(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$9={exports:{}},DESCRIPTORS$5$9=descriptors$9,hasOwn$8$5=hasOwnProperty_1$9,FunctionPrototype$1$9=Function.prototype,getDescriptor$9=DESCRIPTORS$5$9&&Object.getOwnPropertyDescriptor,EXISTS$a=hasOwn$8$5(FunctionPrototype$1$9,"name"),PROPER$9=EXISTS$a&&function v(){}.name==="something",CONFIGURABLE$a=EXISTS$a&&(!DESCRIPTORS$5$9||DESCRIPTORS$5$9&&getDescriptor$9(FunctionPrototype$1$9,"name").configurable),functionName$9={EXISTS:EXISTS$a,PROPER:PROPER$9,CONFIGURABLE:CONFIGURABLE$a},uncurryThis$8$7=functionUncurryThis$9,isCallable$e$5=isCallable$k$3,store$1$9=sharedStore$9,functionToString$9=uncurryThis$8$7(Function.toString);isCallable$e$5(store$1$9.inspectSource)||(store$1$9.inspectSource=function(v){return functionToString$9(v)});var inspectSource$4$3=store$1$9.inspectSource,global$c$5=global$j$3,isCallable$d$5=isCallable$k$3,inspectSource$3$5=inspectSource$4$3,WeakMap$1$9=global$c$5.WeakMap,nativeWeakMap$9=isCallable$d$5(WeakMap$1$9)&&/native code/.test(inspectSource$3$5(WeakMap$1$9)),shared$1$9=shared$3$9.exports,uid$c=uid$2$9,keys$7=shared$1$9("keys"),sharedKey$3$4=function(v){return keys$7[v]||(keys$7[v]=uid$c(v))},hiddenKeys$4$4={},NATIVE_WEAK_MAP$9=nativeWeakMap$9,global$b$5=global$j$3,uncurryThis$7$7=functionUncurryThis$9,isObject$2$9=isObject$7$5,createNonEnumerableProperty$3$4=createNonEnumerableProperty$4$4,hasOwn$7$6=hasOwnProperty_1$9,shared$c=sharedStore$9,sharedKey$2$4=sharedKey$3$4,hiddenKeys$3$7=hiddenKeys$4$4,OBJECT_ALREADY_INITIALIZED$9="Object already initialized",TypeError$2$5=global$b$5.TypeError,WeakMap$b=global$b$5.WeakMap,set$1$5,get$a,has$9,enforce$9=function(v){return has$9(v)?get$a(v):set$1$5(v,{})},getterFor$9=function(v){return function(k){var ie;if(!isObject$2$9(k)||(ie=get$a(k)).type!==v)throw TypeError$2$5("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$9||shared$c.state?(store$c=shared$c.state||(shared$c.state=new WeakMap$b),wmget$9=uncurryThis$7$7(store$c.get),wmhas$9=uncurryThis$7$7(store$c.has),wmset$9=uncurryThis$7$7(store$c.set),set$1$5=function(v,k){if(wmhas$9(store$c,v))throw new TypeError$2$5(OBJECT_ALREADY_INITIALIZED$9);return k.facade=v,wmset$9(store$c,v,k),k},get$a=function(v){return wmget$9(store$c,v)||{}},has$9=function(v){return wmhas$9(store$c,v)}):(STATE$9=sharedKey$2$4("state"),hiddenKeys$3$7[STATE$9]=!0,set$1$5=function(v,k){if(hasOwn$7$6(v,STATE$9))throw new TypeError$2$5(OBJECT_ALREADY_INITIALIZED$9);return k.facade=v,createNonEnumerableProperty$3$4(v,STATE$9,k),k},get$a=function(v){return hasOwn$7$6(v,STATE$9)?v[STATE$9]:{}},has$9=function(v){return hasOwn$7$6(v,STATE$9)});var store$c,wmget$9,wmhas$9,wmset$9,STATE$9,internalState$9={set:set$1$5,get:get$a,has:has$9,enforce:enforce$9,getterFor:getterFor$9},fails$7$9=fails$e$4,isCallable$c$5=isCallable$k$3,hasOwn$6$7=hasOwnProperty_1$9,DESCRIPTORS$4$9=descriptors$9,CONFIGURABLE_FUNCTION_NAME$1$4=functionName$9.CONFIGURABLE,inspectSource$2$9=inspectSource$4$3,InternalStateModule$2$4=internalState$9,enforceInternalState$b=InternalStateModule$2$4.enforce,getInternalState$1$4=InternalStateModule$2$4.get,defineProperty$4$4=Object.defineProperty,CONFIGURABLE_LENGTH$9=DESCRIPTORS$4$9&&!fails$7$9(function(){return defineProperty$4$4(function(){},"length",{value:8}).length!==8}),TEMPLATE$9=String(String).split("String"),makeBuiltIn$1$9=makeBuiltIn$2$9.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$6$7(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$4&&v.name!==k)&&(DESCRIPTORS$4$9?defineProperty$4$4(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$9&&ie&&hasOwn$6$7(ie,"arity")&&v.length!==ie.arity&&defineProperty$4$4(v,"length",{value:ie.arity});try{ie&&hasOwn$6$7(ie,"constructor")&&ie.constructor?DESCRIPTORS$4$9&&defineProperty$4$4(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$b(v);return hasOwn$6$7(ae,"source")||(ae.source=TEMPLATE$9.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$9(function v(){return isCallable$c$5(this)&&getInternalState$1$4(this).source||inspectSource$2$9(this)},"toString");var isCallable$b$6=isCallable$k$3,definePropertyModule$3$5=objectDefineProperty$9,makeBuiltIn$b=makeBuiltIn$2$9.exports,defineGlobalProperty$1$9=defineGlobalProperty$3$7,defineBuiltIn$6$4=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$b$6(ie)&&makeBuiltIn$b(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$9(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$3$5.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$7={},ceil$7=Math.ceil,floor$a=Math.floor,mathTrunc$7=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$a:ceil$7)(ie)},trunc2$7=mathTrunc$7,toIntegerOrInfinity$2$7=function(v){var k=+v;return k!==k||k===0?0:trunc2$7(k)},toIntegerOrInfinity$1$7=toIntegerOrInfinity$2$7,max$8=Math.max,min$1$7=Math.min,toAbsoluteIndex$1$7=function(v,k){var ie=toIntegerOrInfinity$1$7(v);return ie<0?max$8(ie+k,0):min$1$7(ie,k)},toIntegerOrInfinity$c=toIntegerOrInfinity$2$7,min$8=Math.min,toLength$1$7=function(v){return v>0?min$8(toIntegerOrInfinity$c(v),9007199254740991):0},toLength$c=toLength$1$7,lengthOfArrayLike$2$5=function(v){return toLength$c(v.length)},toIndexedObject$3$7=toIndexedObject$5$4,toAbsoluteIndex$b=toAbsoluteIndex$1$7,lengthOfArrayLike$1$7=lengthOfArrayLike$2$5,createMethod$8=function(v){return function(k,ie,ae){var ce=toIndexedObject$3$7(k),fe=lengthOfArrayLike$1$7(ce),le=toAbsoluteIndex$b(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$7={includes:createMethod$8(!0),indexOf:createMethod$8(!1)},uncurryThis$6$9=functionUncurryThis$9,hasOwn$5$7=hasOwnProperty_1$9,toIndexedObject$2$7=toIndexedObject$5$4,indexOf$7=arrayIncludes$7.indexOf,hiddenKeys$2$7=hiddenKeys$4$4,push$8=uncurryThis$6$9([].push),objectKeysInternal$7=function(v,k){var ie=toIndexedObject$2$7(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$5$7(hiddenKeys$2$7,fe)&&hasOwn$5$7(ie,fe)&&push$8(ce,fe);for(;k.length>ae;)hasOwn$5$7(ie,fe=k[ae++])&&(~indexOf$7(ce,fe)||push$8(ce,fe));return ce},enumBugKeys$3$4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$6=objectKeysInternal$7,enumBugKeys$2$6=enumBugKeys$3$4,hiddenKeys$1$7=enumBugKeys$2$6.concat("length","prototype");objectGetOwnPropertyNames$7.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$6(k,hiddenKeys$1$7)};var objectGetOwnPropertySymbols$7={};objectGetOwnPropertySymbols$7.f=Object.getOwnPropertySymbols;var getBuiltIn$5$5=getBuiltIn$8$3,uncurryThis$5$9=functionUncurryThis$9,getOwnPropertyNamesModule$7=objectGetOwnPropertyNames$7,getOwnPropertySymbolsModule$1$6=objectGetOwnPropertySymbols$7,anObject$a$4=anObject$c$4,concat$1$6=uncurryThis$5$9([].concat),ownKeys$1$7=getBuiltIn$5$5("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$7.f(anObject$a$4(k)),ae=getOwnPropertySymbolsModule$1$6.f;return ae?concat$1$6(ie,ae(k)):ie},hasOwn$4$9=hasOwnProperty_1$9,ownKeys2$7=ownKeys$1$7,getOwnPropertyDescriptorModule$8=objectGetOwnPropertyDescriptor$7,definePropertyModule$2$7=objectDefineProperty$9,copyConstructorProperties$1$7=function(v,k,ie){for(var ae=ownKeys2$7(k),ce=definePropertyModule$2$7.f,fe=getOwnPropertyDescriptorModule$8.f,le=0;le=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3$3(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$7]=ae,SUBCLASSING$3=ie.then(function(){})instanceof ae,SUBCLASSING$3?!k&&IS_BROWSER$3&&!NATIVE_PROMISE_REJECTION_EVENT$1$3:!0}),promiseConstructorDetection$3={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$3,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$3,SUBCLASSING:SUBCLASSING$3},newPromiseCapability$2$3={},aCallable$4$5=aCallable$7$3,PromiseCapability$3=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$5(k),this.reject=aCallable$4$5(ie)};newPromiseCapability$2$3.f=function(v){return new PromiseCapability$3(v)};var $$7$3=_export$7,IS_NODE$5=engineIsNode$3,global$2$9=global$j$3,call$9$5=functionCall$9,defineBuiltIn$4$4=defineBuiltIn$6$4,setPrototypeOf$1$4=objectSetPrototypeOf$5,setToStringTag$2$4=setToStringTag$3$4,setSpecies$6=setSpecies$1$5,aCallable$3$5=aCallable$7$3,isCallable$4$9=isCallable$k$3,isObject$1$9=isObject$7$5,anInstance$7=anInstance$1$5,speciesConstructor$6=speciesConstructor$1$5,task$4=task$1$3.set,microtask$4=microtask$1$3,hostReportErrors$4=hostReportErrors$1$3,perform$2$3=perform$3$3,Queue$4=queue$4,InternalStateModule$1$5=internalState$9,NativePromiseConstructor$2$3=promiseNativeConstructor$3,PromiseConstructorDetection$3=promiseConstructorDetection$3,newPromiseCapabilityModule$3$3=newPromiseCapability$2$3,PROMISE$3="Promise",FORCED_PROMISE_CONSTRUCTOR$4$3=PromiseConstructorDetection$3.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$4=PromiseConstructorDetection$3.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$3=PromiseConstructorDetection$3.SUBCLASSING,getInternalPromiseState$3=InternalStateModule$1$5.getterFor(PROMISE$3),setInternalState$1$4=InternalStateModule$1$5.set,NativePromisePrototype$1$3=NativePromiseConstructor$2$3&&NativePromiseConstructor$2$3.prototype,PromiseConstructor$3=NativePromiseConstructor$2$3,PromisePrototype$3=NativePromisePrototype$1$3,TypeError$1$9=global$2$9.TypeError,document$1$5=global$2$9.document,process2$1=global$2$9.process,newPromiseCapability$1$3=newPromiseCapabilityModule$3$3.f,newGenericPromiseCapability$3=newPromiseCapability$1$3,DISPATCH_EVENT$3=!!(document$1$5&&document$1$5.createEvent&&global$2$9.dispatchEvent),UNHANDLED_REJECTION$3="unhandledrejection",REJECTION_HANDLED$3="rejectionhandled",PENDING$3=0,FULFILLED$3=1,REJECTED$3=2,HANDLED$3=1,UNHANDLED$3=2,Internal$3,OwnPromiseCapability$3,PromiseWrapper$3,nativeThen$3,isThenable$3=function(v){var k;return isObject$1$9(v)&&isCallable$4$9(k=v.then)?k:!1},callReaction$3=function(v,k){var ie=k.value,ae=k.state==FULFILLED$3,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$3&&onHandleUnhandled$3(k),k.rejection=HANDLED$3),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$9("Promise-chain cycle")):(ye=isThenable$3(pe))?call$9$5(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$4=function(v,k){v.notified||(v.notified=!0,microtask$4(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$3(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$3(v)}))},dispatchEvent$3=function(v,k,ie){var ae,ce;DISPATCH_EVENT$3?(ae=document$1$5.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$2$9.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$4&&(ce=global$2$9["on"+v])?ce(ae):v===UNHANDLED_REJECTION$3&&hostReportErrors$4("Unhandled promise rejection",ie)},onUnhandled$3=function(v){call$9$5(task$4,global$2$9,function(){var k=v.facade,ie=v.value,ae=isUnhandled$3(v),ce;if(ae&&(ce=perform$2$3(function(){IS_NODE$5?process2$1.emit("unhandledRejection",ie,k):dispatchEvent$3(UNHANDLED_REJECTION$3,k,ie)}),v.rejection=IS_NODE$5||isUnhandled$3(v)?UNHANDLED$3:HANDLED$3,ce.error))throw ce.value})},isUnhandled$3=function(v){return v.rejection!==HANDLED$3&&!v.parent},onHandleUnhandled$3=function(v){call$9$5(task$4,global$2$9,function(){var k=v.facade;IS_NODE$5?process2$1.emit("rejectionHandled",k):dispatchEvent$3(REJECTION_HANDLED$3,k,v.value)})},bind$1$5=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$3=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$3,notify$4(v,!0))},internalResolve$3=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$9("Promise can't be resolved itself");var ae=isThenable$3(k);ae?microtask$4(function(){var ce={done:!1};try{call$9$5(ae,k,bind$1$5(internalResolve$3,ce,v),bind$1$5(internalReject$3,ce,v))}catch(fe){internalReject$3(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$3,notify$4(v,!1))}catch(ce){internalReject$3({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$3&&(PromiseConstructor$3=function(k){anInstance$7(this,PromisePrototype$3),aCallable$3$5(k),call$9$5(Internal$3,this);var ie=getInternalPromiseState$3(this);try{k(bind$1$5(internalResolve$3,ie),bind$1$5(internalReject$3,ie))}catch(ae){internalReject$3(ie,ae)}},PromisePrototype$3=PromiseConstructor$3.prototype,Internal$3=function(k){setInternalState$1$4(this,{type:PROMISE$3,done:!1,notified:!1,parent:!1,reactions:new Queue$4,rejection:!1,state:PENDING$3,value:void 0})},Internal$3.prototype=defineBuiltIn$4$4(PromisePrototype$3,"then",function(k,ie){var ae=getInternalPromiseState$3(this),ce=newPromiseCapability$1$3(speciesConstructor$6(this,PromiseConstructor$3));return ae.parent=!0,ce.ok=isCallable$4$9(k)?k:!0,ce.fail=isCallable$4$9(ie)&&ie,ce.domain=IS_NODE$5?process2$1.domain:void 0,ae.state==PENDING$3?ae.reactions.add(ce):microtask$4(function(){callReaction$3(ce,ae)}),ce.promise}),OwnPromiseCapability$3=function(){var v=new Internal$3,k=getInternalPromiseState$3(v);this.promise=v,this.resolve=bind$1$5(internalResolve$3,k),this.reject=bind$1$5(internalReject$3,k)},newPromiseCapabilityModule$3$3.f=newPromiseCapability$1$3=function(v){return v===PromiseConstructor$3||v===PromiseWrapper$3?new OwnPromiseCapability$3(v):newGenericPromiseCapability$3(v)},isCallable$4$9(NativePromiseConstructor$2$3)&&NativePromisePrototype$1$3!==Object.prototype)){nativeThen$3=NativePromisePrototype$1$3.then,NATIVE_PROMISE_SUBCLASSING$3||defineBuiltIn$4$4(NativePromisePrototype$1$3,"then",function(k,ie){var ae=this;return new PromiseConstructor$3(function(ce,fe){call$9$5(nativeThen$3,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1$3.constructor}catch{}setPrototypeOf$1$4&&setPrototypeOf$1$4(NativePromisePrototype$1$3,PromisePrototype$3)}$$7$3({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$3},{Promise:PromiseConstructor$3});setToStringTag$2$4(PromiseConstructor$3,PROMISE$3,!1);setSpecies$6(PROMISE$3);var iterators$5={},wellKnownSymbol$6$5=wellKnownSymbol$e$4,Iterators$4$4=iterators$5,ITERATOR$5$4=wellKnownSymbol$6$5("iterator"),ArrayPrototype$1$4=Array.prototype,isArrayIteratorMethod$1$5=function(v){return v!==void 0&&(Iterators$4$4.Array===v||ArrayPrototype$1$4[ITERATOR$5$4]===v)},classof$1$8=classof$3$5,getMethod$1$9=getMethod$3$4,Iterators$3$4=iterators$5,wellKnownSymbol$5$5=wellKnownSymbol$e$4,ITERATOR$4$4=wellKnownSymbol$5$5("iterator"),getIteratorMethod$2$5=function(v){if(v!=null)return getMethod$1$9(v,ITERATOR$4$4)||getMethod$1$9(v,"@@iterator")||Iterators$3$4[classof$1$8(v)]},call$8$5=functionCall$9,aCallable$2$5=aCallable$7$3,anObject$7$5=anObject$c$4,tryToString$1$9=tryToString$4$5,getIteratorMethod$1$5=getIteratorMethod$2$5,$TypeError$1$9=TypeError,getIterator$1$5=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$5(v):k;if(aCallable$2$5(ie))return anObject$7$5(call$8$5(ie,v));throw $TypeError$1$9(tryToString$1$9(v)+" is not iterable")},call$7$5=functionCall$9,anObject$6$5=anObject$c$4,getMethod$c=getMethod$3$4,iteratorClose$1$3=function(v,k,ie){var ae,ce;anObject$6$5(v);try{if(ae=getMethod$c(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$7$5(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$6$5(ae),ie},bind$e=functionBindContext$5,call$6$6=functionCall$9,anObject$5$5=anObject$c$4,tryToString$d=tryToString$4$5,isArrayIteratorMethod$6=isArrayIteratorMethod$1$5,lengthOfArrayLike$d=lengthOfArrayLike$2$5,isPrototypeOf$1$8=objectIsPrototypeOf$9,getIterator$6=getIterator$1$5,getIteratorMethod$7=getIteratorMethod$2$5,iteratorClose$4=iteratorClose$1$3,$TypeError$k=TypeError,Result$3=function(v,k){this.stopped=v,this.result=k},ResultPrototype$3=Result$3.prototype,iterate$2$3=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$e(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$4(pe,"normal",ur),new Result$3(!0,ur)},Ar=function(ur){return ce?(anObject$5$5(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$7(v),!ye)throw $TypeError$k(tryToString$d(v)+" is not iterable");if(isArrayIteratorMethod$6(ye)){for(me=0,Ee=lengthOfArrayLike$d(v);Ee>me;me++)if(cr=Ar(v[me]),cr&&isPrototypeOf$1$8(ResultPrototype$3,cr))return cr;return new Result$3(!1)}pe=getIterator$6(v,ye)}for(Br=pe.next;!($r=call$6$6(Br,pe)).done;){try{cr=Ar($r.value)}catch(ur){iteratorClose$4(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$1$8(ResultPrototype$3,cr))return cr}return new Result$3(!1)},wellKnownSymbol$4$5=wellKnownSymbol$e$4,ITERATOR$3$4=wellKnownSymbol$4$5("iterator"),SAFE_CLOSING$5=!1;try{called$5=0,iteratorWithReturn$5={next:function(){return{done:!!called$5++}},return:function(){SAFE_CLOSING$5=!0}},iteratorWithReturn$5[ITERATOR$3$4]=function(){return this},Array.from(iteratorWithReturn$5,function(){throw 2})}catch(v){}var called$5,iteratorWithReturn$5,checkCorrectnessOfIteration$1$5=function(v,k){if(!k&&!SAFE_CLOSING$5)return!1;var ie=!1;try{var ae={};ae[ITERATOR$3$4]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1$3=promiseNativeConstructor$3,checkCorrectnessOfIteration$6=checkCorrectnessOfIteration$1$5,FORCED_PROMISE_CONSTRUCTOR$3$3=promiseConstructorDetection$3.CONSTRUCTOR,promiseStaticsIncorrectIteration$3=FORCED_PROMISE_CONSTRUCTOR$3$3||!checkCorrectnessOfIteration$6(function(v){NativePromiseConstructor$1$3.all(v).then(void 0,function(){})}),$$6$3=_export$7,call$5$7=functionCall$9,aCallable$1$9=aCallable$7$3,newPromiseCapabilityModule$2$3=newPromiseCapability$2$3,perform$1$3=perform$3$3,iterate$1$3=iterate$2$3,PROMISE_STATICS_INCORRECT_ITERATION$1$3=promiseStaticsIncorrectIteration$3;$$6$3({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$3},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$3.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$3(function(){var ve=aCallable$1$9(ie.resolve),pe=[],ye=0,me=1;iterate$1$3(k,function(Ee){var cr=ye++,Br=!1;me++,call$5$7(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$5$3=_export$7,FORCED_PROMISE_CONSTRUCTOR$2$3=promiseConstructorDetection$3.CONSTRUCTOR,NativePromiseConstructor$6=promiseNativeConstructor$3,getBuiltIn$1$9=getBuiltIn$8$3,isCallable$3$9=isCallable$k$3,defineBuiltIn$3$5=defineBuiltIn$6$4,NativePromisePrototype$4=NativePromiseConstructor$6&&NativePromiseConstructor$6.prototype;$$5$3({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$3,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$3$9(NativePromiseConstructor$6)&&(method$3=getBuiltIn$1$9("Promise").prototype.catch,NativePromisePrototype$4.catch!==method$3&&defineBuiltIn$3$5(NativePromisePrototype$4,"catch",method$3,{unsafe:!0}));var method$3,$$4$4=_export$7,call$4$9=functionCall$9,aCallable$g=aCallable$7$3,newPromiseCapabilityModule$1$3=newPromiseCapability$2$3,perform$6=perform$3$3,iterate$5=iterate$2$3,PROMISE_STATICS_INCORRECT_ITERATION$4=promiseStaticsIncorrectIteration$3;$$4$4({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$4},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$3.f(ie),ce=ae.reject,fe=perform$6(function(){var le=aCallable$g(ie.resolve);iterate$5(k,function(ve){call$4$9(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$3$5=_export$7,call$3$9=functionCall$9,newPromiseCapabilityModule$6=newPromiseCapability$2$3,FORCED_PROMISE_CONSTRUCTOR$1$3=promiseConstructorDetection$3.CONSTRUCTOR;$$3$5({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$3},{reject:function v(k){var ie=newPromiseCapabilityModule$6.f(this);return call$3$9(ie.reject,void 0,k),ie.promise}});var anObject$4$6=anObject$c$4,isObject$k=isObject$7$5,newPromiseCapability$5=newPromiseCapability$2$3,promiseResolve$1$3=function(v,k){if(anObject$4$6(v),isObject$k(k)&&k.constructor===v)return k;var ie=newPromiseCapability$5.f(v),ae=ie.resolve;return ae(k),ie.promise},$$2$5=_export$7,getBuiltIn$h=getBuiltIn$8$3,FORCED_PROMISE_CONSTRUCTOR$8=promiseConstructorDetection$3.CONSTRUCTOR,promiseResolve$4=promiseResolve$1$3;getBuiltIn$h("Promise");$$2$5({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$8},{resolve:function v(k){return promiseResolve$4(this,k)}});var classof$h=classof$3$5,$String$c=String,toString2$7=function(v){if(classof$h(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$c(v)},anObject$3$8=anObject$c$4,regexpFlags$7=function(){var v=anObject$3$8(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$2$9=functionCall$9,hasOwn$1$9=hasOwnProperty_1$9,isPrototypeOf$d=objectIsPrototypeOf$9,regExpFlags$7=regexpFlags$7,RegExpPrototype$1$7=RegExp.prototype,regexpGetFlags$7=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$7)&&!hasOwn$1$9(v,"flags")&&isPrototypeOf$d(RegExpPrototype$1$7,v)?call$2$9(regExpFlags$7,v):k},PROPER_FUNCTION_NAME$1$4=functionName$9.PROPER,defineBuiltIn$2$6=defineBuiltIn$6$4,anObject$2$9=anObject$c$4,$toString$7=toString2$7,fails$3$9=fails$e$4,getRegExpFlags$7=regexpGetFlags$7,TO_STRING$7="toString",RegExpPrototype$8=RegExp.prototype,n$ToString$7=RegExpPrototype$8[TO_STRING$7],NOT_GENERIC$7=fails$3$9(function(){return n$ToString$7.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$7=PROPER_FUNCTION_NAME$1$4&&n$ToString$7.name!=TO_STRING$7;(NOT_GENERIC$7||INCORRECT_NAME$7)&&defineBuiltIn$2$6(RegExp.prototype,TO_STRING$7,function(){var k=anObject$2$9(this),ie=$toString$7(k.source),ae=$toString$7(getRegExpFlags$7(k));return"/"+ie+"/"+ae},{unsafe:!0});var internalObjectKeys$8=objectKeysInternal$7,enumBugKeys$1$7=enumBugKeys$3$4,objectKeys$2$4=Object.keys||function v(k){return internalObjectKeys$8(k,enumBugKeys$1$7)},DESCRIPTORS$2$9=descriptors$9,uncurryThis$t=functionUncurryThis$9,call$1$9=functionCall$9,fails$2$9=fails$e$4,objectKeys$1$6=objectKeys$2$4,getOwnPropertySymbolsModule$8=objectGetOwnPropertySymbols$7,propertyIsEnumerableModule$8=objectPropertyIsEnumerable$7,toObject$1$9=toObject$3$4,IndexedObject$9=indexedObject$7,$assign$6=Object.assign,defineProperty$2$7=Object.defineProperty,concat$9=uncurryThis$t([].concat),objectAssign$6=!$assign$6||fails$2$9(function(){if(DESCRIPTORS$2$9&&$assign$6({b:1},$assign$6(defineProperty$2$7({},"a",{enumerable:!0,get:function(){defineProperty$2$7(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},k={},ie=Symbol(),ae="abcdefghijklmnopqrst";return v[ie]=7,ae.split("").forEach(function(ce){k[ce]=ce}),$assign$6({},v)[ie]!=7||objectKeys$1$6($assign$6({},k)).join("")!=ae})?function v(k,ie){for(var ae=toObject$1$9(k),ce=arguments.length,fe=1,le=getOwnPropertySymbolsModule$8.f,ve=propertyIsEnumerableModule$8.f;ce>fe;)for(var pe=IndexedObject$9(arguments[fe++]),ye=le?concat$9(objectKeys$1$6(pe),le(pe)):objectKeys$1$6(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$2$9||call$1$9(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$6,$$1$5=_export$7,assign2$6=objectAssign$6;$$1$5({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$6},{assign:assign2$6});var objectDefineProperties$4={},DESCRIPTORS$1$9=descriptors$9,V8_PROTOTYPE_DEFINE_BUG$a=v8PrototypeDefineBug$9,definePropertyModule$f=objectDefineProperty$9,anObject$1$9=anObject$c$4,toIndexedObject$1$7=toIndexedObject$5$4,objectKeys$8=objectKeys$2$4;objectDefineProperties$4.f=DESCRIPTORS$1$9&&!V8_PROTOTYPE_DEFINE_BUG$a?Object.defineProperties:function v(k,ie){anObject$1$9(k);for(var ae=toIndexedObject$1$7(ie),ce=objectKeys$8(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$f.f(k,ve=ce[le++],ae[ve]);return k};var anObject$j=anObject$c$4,definePropertiesModule$4=objectDefineProperties$4,enumBugKeys$a=enumBugKeys$3$4,hiddenKeys$b=hiddenKeys$4$4,html$6=html$2$3,documentCreateElement$1$4=documentCreateElement$2$4,sharedKey$1$9=sharedKey$3$4,GT$4=">",LT$4="<",PROTOTYPE$5="prototype",SCRIPT$4="script",IE_PROTO$1$4=sharedKey$1$9("IE_PROTO"),EmptyConstructor$4=function(){},scriptTag$4=function(v){return LT$4+SCRIPT$4+GT$4+v+LT$4+"/"+SCRIPT$4+GT$4},NullProtoObjectViaActiveX$4=function(v){v.write(scriptTag$4("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$4=function(){var v=documentCreateElement$1$4("iframe"),k="java"+SCRIPT$4+":",ie;return v.style.display="none",html$6.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$4("document.F=Object")),ie.close(),ie.F},activeXDocument$4,NullProtoObject$4=function(){try{activeXDocument$4=new ActiveXObject("htmlfile")}catch{}NullProtoObject$4=typeof document<"u"?document.domain&&activeXDocument$4?NullProtoObjectViaActiveX$4(activeXDocument$4):NullProtoObjectViaIFrame$4():NullProtoObjectViaActiveX$4(activeXDocument$4);for(var v=enumBugKeys$a.length;v--;)delete NullProtoObject$4[PROTOTYPE$5][enumBugKeys$a[v]];return NullProtoObject$4()};hiddenKeys$b[IE_PROTO$1$4]=!0;var objectCreate$4=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$4[PROTOTYPE$5]=anObject$j(k),ae=new EmptyConstructor$4,EmptyConstructor$4[PROTOTYPE$5]=null,ae[IE_PROTO$1$4]=k):ae=NullProtoObject$4(),ie===void 0?ae:definePropertiesModule$4.f(ae,ie)},wellKnownSymbol$3$8=wellKnownSymbol$e$4,create$1$4=objectCreate$4,defineProperty$1$9=objectDefineProperty$9.f,UNSCOPABLES$4=wellKnownSymbol$3$8("unscopables"),ArrayPrototype$6=Array.prototype;ArrayPrototype$6[UNSCOPABLES$4]==null&&defineProperty$1$9(ArrayPrototype$6,UNSCOPABLES$4,{configurable:!0,value:create$1$4(null)});var addToUnscopables$1$4=function(v){ArrayPrototype$6[UNSCOPABLES$4][v]=!0},fails$1$9=fails$e$4,correctPrototypeGetter$4=!fails$1$9(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype}),hasOwn2$9=hasOwnProperty_1$9,isCallable$2$9=isCallable$k$3,toObject$f=toObject$3$4,sharedKey$b=sharedKey$3$4,CORRECT_PROTOTYPE_GETTER$4=correctPrototypeGetter$4,IE_PROTO$5=sharedKey$b("IE_PROTO"),$Object$d=Object,ObjectPrototype$6=$Object$d.prototype,objectGetPrototypeOf$4=CORRECT_PROTOTYPE_GETTER$4?$Object$d.getPrototypeOf:function(v){var k=toObject$f(v);if(hasOwn2$9(k,IE_PROTO$5))return k[IE_PROTO$5];var ie=k.constructor;return isCallable$2$9(ie)&&k instanceof ie?ie.prototype:k instanceof $Object$d?ObjectPrototype$6:null},fails$v=fails$e$4,isCallable$1$9=isCallable$k$3,getPrototypeOf$1$4=objectGetPrototypeOf$4,defineBuiltIn$1$9=defineBuiltIn$6$4,wellKnownSymbol$2$8=wellKnownSymbol$e$4,ITERATOR$2$5=wellKnownSymbol$2$8("iterator"),BUGGY_SAFARI_ITERATORS$1$4=!1,IteratorPrototype$2$4,PrototypeOfArrayIteratorPrototype$4,arrayIterator$4;[].keys&&(arrayIterator$4=[].keys(),"next"in arrayIterator$4?(PrototypeOfArrayIteratorPrototype$4=getPrototypeOf$1$4(getPrototypeOf$1$4(arrayIterator$4)),PrototypeOfArrayIteratorPrototype$4!==Object.prototype&&(IteratorPrototype$2$4=PrototypeOfArrayIteratorPrototype$4)):BUGGY_SAFARI_ITERATORS$1$4=!0);var NEW_ITERATOR_PROTOTYPE$4=IteratorPrototype$2$4==null||fails$v(function(){var v={};return IteratorPrototype$2$4[ITERATOR$2$5].call(v)!==v});NEW_ITERATOR_PROTOTYPE$4&&(IteratorPrototype$2$4={});isCallable$1$9(IteratorPrototype$2$4[ITERATOR$2$5])||defineBuiltIn$1$9(IteratorPrototype$2$4,ITERATOR$2$5,function(){return this});var iteratorsCore$4={IteratorPrototype:IteratorPrototype$2$4,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1$4},IteratorPrototype$1$4=iteratorsCore$4.IteratorPrototype,create2$3=objectCreate$4,createPropertyDescriptor$e=createPropertyDescriptor$3$4,setToStringTag$1$5=setToStringTag$3$4,Iterators$2$4=iterators$5,returnThis$1$4=function(){return this},createIteratorConstructor$1$4=function(v,k,ie,ae){var ce=k+" Iterator";return v.prototype=create2$3(IteratorPrototype$1$4,{next:createPropertyDescriptor$e(+!ae,ie)}),setToStringTag$1$5(v,ce,!1),Iterators$2$4[ce]=returnThis$1$4,v},$$e=_export$7,call$n=functionCall$9,FunctionName$5=functionName$9,isCallable$r=isCallable$k$3,createIteratorConstructor$5=createIteratorConstructor$1$4,getPrototypeOf$7=objectGetPrototypeOf$4,setPrototypeOf$9=objectSetPrototypeOf$5,setToStringTag$8=setToStringTag$3$4,createNonEnumerableProperty$1$9=createNonEnumerableProperty$4$4,defineBuiltIn$f=defineBuiltIn$6$4,wellKnownSymbol$1$9=wellKnownSymbol$e$4,Iterators$1$5=iterators$5,IteratorsCore$4=iteratorsCore$4,PROPER_FUNCTION_NAME$9=FunctionName$5.PROPER,CONFIGURABLE_FUNCTION_NAME$b=FunctionName$5.CONFIGURABLE,IteratorPrototype$6=IteratorsCore$4.IteratorPrototype,BUGGY_SAFARI_ITERATORS$5=IteratorsCore$4.BUGGY_SAFARI_ITERATORS,ITERATOR$1$5=wellKnownSymbol$1$9("iterator"),KEYS$4="keys",VALUES$4="values",ENTRIES$4="entries",returnThis$5=function(){return this},defineIterator$1$4=function(v,k,ie,ae,ce,fe,le){createIteratorConstructor$5(ie,k,ae);var ve=function(ur){if(ur===ce&&cr)return cr;if(!BUGGY_SAFARI_ITERATORS$5&&ur in me)return me[ur];switch(ur){case KEYS$4:return function(){return new ie(this,ur)};case VALUES$4:return function(){return new ie(this,ur)};case ENTRIES$4:return function(){return new ie(this,ur)}}return function(){return new ie(this)}},pe=k+" Iterator",ye=!1,me=v.prototype,Ee=me[ITERATOR$1$5]||me["@@iterator"]||ce&&me[ce],cr=!BUGGY_SAFARI_ITERATORS$5&&Ee||ve(ce),Br=k=="Array"&&me.entries||Ee,$r,Pr,Ar;if(Br&&($r=getPrototypeOf$7(Br.call(new v)),$r!==Object.prototype&&$r.next&&(getPrototypeOf$7($r)!==IteratorPrototype$6&&(setPrototypeOf$9?setPrototypeOf$9($r,IteratorPrototype$6):isCallable$r($r[ITERATOR$1$5])||defineBuiltIn$f($r,ITERATOR$1$5,returnThis$5)),setToStringTag$8($r,pe,!0))),PROPER_FUNCTION_NAME$9&&ce==VALUES$4&&Ee&&Ee.name!==VALUES$4&&(CONFIGURABLE_FUNCTION_NAME$b?createNonEnumerableProperty$1$9(me,"name",VALUES$4):(ye=!0,cr=function(){return call$n(Ee,this)})),ce)if(Pr={values:ve(VALUES$4),keys:fe?cr:ve(KEYS$4),entries:ve(ENTRIES$4)},le)for(Ar in Pr)(BUGGY_SAFARI_ITERATORS$5||ye||!(Ar in me))&&defineBuiltIn$f(me,Ar,Pr[Ar]);else $$e({target:k,proto:!0,forced:BUGGY_SAFARI_ITERATORS$5||ye},Pr);return me[ITERATOR$1$5]!==cr&&defineBuiltIn$f(me,ITERATOR$1$5,cr,{name:ce}),Iterators$1$5[k]=cr,Pr},toIndexedObject$d=toIndexedObject$5$4,addToUnscopables$5=addToUnscopables$1$4,Iterators$9=iterators$5,InternalStateModule$d=internalState$9,defineProperty3$8=objectDefineProperty$9.f,defineIterator$5=defineIterator$1$4,DESCRIPTORS$m=descriptors$9,ARRAY_ITERATOR$4="Array Iterator",setInternalState$7=InternalStateModule$d.set,getInternalState$d=InternalStateModule$d.getterFor(ARRAY_ITERATOR$4),es_array_iterator$3=defineIterator$5(Array,"Array",function(v,k){setInternalState$7(this,{type:ARRAY_ITERATOR$4,target:toIndexedObject$d(v),index:0,kind:k})},function(){var v=getInternalState$d(this),k=v.target,ie=v.kind,ae=v.index++;return!k||ae>=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$4=Iterators$9.Arguments=Iterators$9.Array;addToUnscopables$5("keys");addToUnscopables$5("values");addToUnscopables$5("entries");if(DESCRIPTORS$m&&values$4.name!=="values")try{defineProperty3$8(values$4,"name",{value:"values"})}catch(v){}var domIterables$3={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$a=documentCreateElement$2$4,classList$3=documentCreateElement$a("span").classList,DOMTokenListPrototype$1$3=classList$3&&classList$3.constructor&&classList$3.constructor.prototype,domTokenListPrototype$3=DOMTokenListPrototype$1$3===Object.prototype?void 0:DOMTokenListPrototype$1$3,global$1$9=global$j$3,DOMIterables$3=domIterables$3,DOMTokenListPrototype$4=domTokenListPrototype$3,ArrayIteratorMethods$3=es_array_iterator$3,createNonEnumerableProperty$f=createNonEnumerableProperty$4$4,wellKnownSymbol$n=wellKnownSymbol$e$4,ITERATOR$9=wellKnownSymbol$n("iterator"),TO_STRING_TAG$b=wellKnownSymbol$n("toStringTag"),ArrayValues$3=ArrayIteratorMethods$3.values,handlePrototype$3=function(v,k){if(v){if(v[ITERATOR$9]!==ArrayValues$3)try{createNonEnumerableProperty$f(v,ITERATOR$9,ArrayValues$3)}catch{v[ITERATOR$9]=ArrayValues$3}if(v[TO_STRING_TAG$b]||createNonEnumerableProperty$f(v,TO_STRING_TAG$b,k),DOMIterables$3[k]){for(var ie in ArrayIteratorMethods$3)if(v[ie]!==ArrayIteratorMethods$3[ie])try{createNonEnumerableProperty$f(v,ie,ArrayIteratorMethods$3[ie])}catch{v[ie]=ArrayIteratorMethods$3[ie]}}}};for(COLLECTION_NAME$3 in DOMIterables$3)handlePrototype$3(global$1$9[COLLECTION_NAME$3]&&global$1$9[COLLECTION_NAME$3].prototype,COLLECTION_NAME$3);var COLLECTION_NAME$3;handlePrototype$3(DOMTokenListPrototype$4,"DOMTokenList");function __awaiter$b(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAMAAABOo35HAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAA2UExURUdwTGBn+f///2ty+mBn+WBn+WBn+WBn+WBn+WBn+fT1/36E+qmt/JOY+9rb/ujp/ru+/czO/XzSUHkAAAAKdFJOUwD////Jf6Ih5FRLDj7LAAAZ50lEQVR42uxdiRajKgwdSzcFFP7/Z0cWFZAlgdraznjOm+3NtHiT3CyE8OfP55/Ho+9vt/v9en0+n932zL97Xq/3++3W94/Hn3/80ShpjLrCo1H7ZzGbcZphKoK0A01B9k8hVoeT82jE/g2gmnBydOy3AXsZUD8P2KO/X7sDnuv91/CakXp2hz3PH8LrWKR+Cq83ILXa45cr1e3avfG53h7/lQpljt/JVNfuE8/z+nXs9Wb7+2ZrfNye3Uef59fA9XGovgeuU0D1HXCdBqrzw/VRWv8yqu9PBpWG65xx1+PenfK5P/6T1RdT1xkt8KS2eFYLPKMt9s/u9M+z/69WX6Zc36BWJ1Gub1GrMyjXuZ3gudzi7dl92fO8/TfB05vit5ngJ02xf3Zf+rzdKz5u3Rc/700Wv5OuPkNcj2v35c/18Z+uzkdcv4DVu9C6/QRWiubfgFX3M8/haN277j9a/yJWx4YQjx/D6lC0fg6r49B6/CBWh6H1k1gdhNaPYnWIT/xZrGbdemMsSsk3IJJb5e19cbuQ34DVSN9libncmUwXfnqsiLyIN2XV2ToDu1wmenawSot8HVqPHFZkvFwu8uS0Rad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X/IEra9iRYCWe+CKNnzbBadseVBE99OxIthTS00PcQSs8UFxsNqejxVBcuroRCGKTTaI44NiJWyfFcVFg5aIEnoWYb+8H7t8HawIbEvqRIkYVbzLG8l4Nd8GKwrbkmjJDjEG9pVx89P3o7qvhhVF3JpNjzg0BtMM8VElluutsKLIIHYJYGDWsZ6kzJSowXJ+bK+Ir/PR0noNXIqp2WXaQnUHq8YcgkLbpiK/mtP3iUKTfgoU3aNoMFr0L093we4DWFHsqpkjiD9Mm9T77ChBnW9WXV9V90TrF67pgV3DKthtsaLhTpmAGlET9Ne+yot+jZeXM0Ec77OGE9wqZfDRoir+lg2wy7ouS4pQXe4y+FGs6IpGPnB9LlxZaNX3xKr+AlZUgYv6ap/Vd67mdq74mUz0b7jid1zwnq74NRe836rY9dXXr7sY19fN6j7GdQWzuotxXcSs7rAs1n11qet53Zyra57V1a6r+mJ7Paiu6otX80B7/3MxuOrmWV33ulTo6i4N1aXguj5Ul4HrHlBdAq77QKXgqv8P6wfg+lIi0dX93aBSeVf7cW/s2r666/Vhb7yf/33LvO5sVHb0osfrF6ln9UcuWrz+ElI7XiTxq/5zSBm8mro7N01o/iZSZwP214GyAGtLEOvq9t8AagcsDzGF078ElI3YBlndvQWt6+oNpn8UpwCzppWoObh1EqO2uQpK/wEBMCXTFLhsgwAAAABJRU5ErkJggg==",setupNightlyConnectState=()=>({client:null,modal:new import_connect_near.NightlyConnectModal,accounts:[]}),NightlyConnect=({metadata:v,store:k,params:ie,logger:ae,options:ce,provider:fe,emitter:le})=>__awaiter$b(void 0,void 0,void 0,function*(){const ve=setupNightlyConnectState(),pe=()=>ve.accounts,ye={createKey:()=>{throw new Error("Not implemented")},getPublicKey:cr=>__awaiter$b(void 0,void 0,void 0,function*(){const $r=pe().find(Pr=>Pr.accountId===cr);if(!$r)throw new Error("Failed to find public key for account");return nearAPI$4.utils.PublicKey.from($r.publicKey)}),signMessage:(cr,Br)=>__awaiter$b(void 0,void 0,void 0,function*(){if(!pe().find(Ar=>Ar.accountId===Br))throw new Error("Failed to find account for signing");try{const Ar=nearAPI$4.transactions.Transaction.decode(Buffer.from(cr));return{signature:(yield ve.client.signTransaction(Ar)).signature.data,publicKey:Ar.publicKey}}catch(Ar){throw ae.log("Failed to sign message"),ae.error(Ar),Error("Invalid message. Only transactions can be signed")}})},me=()=>__awaiter$b(void 0,void 0,void 0,function*(){var cr;(0,import_connect_near.clearPersistedSessionId)(),(0,import_connect_near.clearPersistedSessionPublicKey)(),(0,import_connect_near.clearPersistedSessionAccountId)(),(cr=ve.client)===null||cr===void 0||cr.ws.close()}),Ee=cr=>{const Br=getActiveAccount(k.getState()),{contract:$r}=k.getState();if(!Br||!$r)throw new Error("Wallet not signed in");return cr.map(Pr=>({signerId:Pr.signerId||Br.accountId,receiverId:Pr.receiverId||$r.contractId,actions:Pr.actions}))};return{signIn({qrCodeModal:cr=!0}){return __awaiter$b(this,void 0,void 0,function*(){return new Promise((Br,$r)=>{const Pr=pe().map(Mr=>({accountId:Mr.accountId,publicKey:Mr.publicKey.toString()}));if(Pr.length)return Br(Pr);let Ar=(0,import_connect_near.getPersistedSessionId)();const ur=(0,import_connect_near.getPersistedSessionPublicKey)(),jr=(0,import_connect_near.getPersistedSessionAccountId)();ie.appMetadata.persistent!==!1&&Ar!==null&&(ur===null||jr===null)&&((0,import_connect_near.clearPersistedSessionId)(),Ar=null);try{import_connect_near.AppNear.build(Object.assign(Object.assign({},ie),{onUserConnect:Mr=>{(0,import_connect_near.setPersistedSessionPublicKey)(Mr.publicKey.toString()),(0,import_connect_near.setPersistedSessionAccountId)(Mr.accountId.toString()),ve.accounts.push(Mr),ve.modal.onClose=void 0,ve.modal.closeModal(),Br(pe().map(Lr=>({accountId:Lr.accountId,publicKey:Lr.publicKey.toString()})))}})).then(Mr=>{if(Mr.ws.onclose=()=>{ve.client=null,ve.accounts=[],le.emit("signedOut",null)},ve.client=Mr,ie.appMetadata.persistent!==!1&&Ar===Mr.sessionId&&ur!==null&&jr!==null)ve.accounts.push({accountId:jr,publicKey:nearAPI$4.utils.PublicKey.from(ur)}),ve.modal.onClose=void 0,Br(pe().map(Lr=>({accountId:Lr.accountId,publicKey:Lr.publicKey.toString()})));else if(cr)ve.modal.openModal(Mr.sessionId,import_connect_near.NETWORK.NEAR),ve.modal.onClose=()=>{$r(new Error("User cancelled pairing"))};else{const Lr=`nightlyconnect:${Mr.sessionId}?network=${import_connect_near.NETWORK.NEAR}`;le.emit("uriChanged",{uri:Lr})}})}catch(Mr){me(),$r(Mr)}})})},signOut:me,getAccounts(){return __awaiter$b(this,void 0,void 0,function*(){return pe().map(cr=>({accountId:cr.accountId,publicKey:cr.publicKey.toString()}))})},verifyOwner({message:cr}){return __awaiter$b(this,void 0,void 0,function*(){throw ae.log("NightlyConnect:verifyOwner",{message:cr}),new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction({signerId:cr,receiverId:Br,actions:$r}){var Pr;return __awaiter$b(this,void 0,void 0,function*(){ae.log("signAndSendTransaction",{signerId:cr,receiverId:Br,actions:$r});const Ar=pe();if(!(!((Pr=ve.client)===null||Pr===void 0)&&Pr.sessionId)||!Ar.length)throw new Error("Wallet not signed in");const[ur]=yield signTransactions(Ee([{signerId:cr,receiverId:Br,actions:$r}]),ye,ce.network);return fe.sendTransaction(ur)})},signAndSendTransactions({transactions:cr}){var Br;return __awaiter$b(this,void 0,void 0,function*(){ae.log("signAndSendTransactions",{transactions:cr});const $r=pe();if(!(!((Br=ve.client)===null||Br===void 0)&&Br.sessionId)||!$r.length)throw new Error("Wallet not signed in");const Pr=yield signTransactions(Ee(cr),ye,ce.network),Ar=[];for(let ur=0;ur__awaiter$b(this,void 0,void 0,function*(){return{id:"nightly-connect",type:"bridge",metadata:{name:"Nightly Connect",description:"Upcoming cutting-edge crypto bridge wallet.",iconUrl:ae,deprecated:ce,available:!0},init:fe=>NightlyConnect(Object.assign(Object.assign({},fe),{params:{appMetadata:v,timeout:k,url:ie}}))}})}const scriptRel="modulepreload",assetsURL=function(v){return"/guest-book-vue/"+v},seen={},__vitePreload=function v(k,ie,ae){return!ie||ie.length===0?k():Promise.all(ie.map(ce=>{if(ce=assetsURL(ce),ce in seen)return;seen[ce]=!0;const fe=ce.endsWith(".css"),le=fe?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${ce}"]${le}`))return;const ve=document.createElement("link");if(ve.rel=fe?"stylesheet":scriptRel,fe||(ve.as="script",ve.crossOrigin=""),ve.href=ce,document.head.appendChild(ve),fe)return new Promise((pe,ye)=>{ve.addEventListener("load",pe),ve.addEventListener("error",()=>ye(new Error(`Unable to preload CSS for ${ce}`)))})})).then(()=>k())};var t=Symbol(),s=Object.getPrototypeOf,c=new WeakMap,l=v=>v&&(c.has(v)?c.get(v):s(v)===Object.prototype||s(v)===Array.prototype),y$1=v=>l(v)&&v[t]||null,h$1=(v,k=!0)=>{c.set(v,k)},isObject$j=v=>typeof v=="object"&&v!==null,proxyStateMap=new WeakMap,refSet=new WeakSet,buildProxyFunction=(v=Object.is,k=(ye,me)=>new Proxy(ye,me),ie=ye=>isObject$j(ye)&&!refSet.has(ye)&&(Array.isArray(ye)||!(Symbol.iterator in ye))&&!(ye instanceof WeakMap)&&!(ye instanceof WeakSet)&&!(ye instanceof Error)&&!(ye instanceof Number)&&!(ye instanceof Date)&&!(ye instanceof String)&&!(ye instanceof RegExp)&&!(ye instanceof ArrayBuffer),ae=ye=>{switch(ye.status){case"fulfilled":return ye.value;case"rejected":throw ye.reason;default:throw ye}},ce=new WeakMap,fe=(ye,me,Ee=ae)=>{const cr=ce.get(ye);if((cr==null?void 0:cr[0])===me)return cr[1];const Br=Array.isArray(ye)?[]:Object.create(Object.getPrototypeOf(ye));return h$1(Br,!0),ce.set(ye,[me,Br]),Reflect.ownKeys(ye).forEach($r=>{if(Object.getOwnPropertyDescriptor(Br,$r))return;const Pr=Reflect.get(ye,$r),Ar={value:Pr,enumerable:!0,configurable:!0};if(refSet.has(Pr))h$1(Pr,!1);else if(Pr instanceof Promise)delete Ar.value,Ar.get=()=>Ee(Pr);else if(proxyStateMap.has(Pr)){const[ur,jr]=proxyStateMap.get(Pr);Ar.value=fe(ur,jr(),Ee)}Object.defineProperty(Br,$r,Ar)}),Object.preventExtensions(Br)},le=new WeakMap,ve=[1,1],pe=ye=>{if(!isObject$j(ye))throw new Error("object required");const me=le.get(ye);if(me)return me;let Ee=ve[0];const cr=new Set,Br=(hn,Yt=++ve[0])=>{Ee!==Yt&&(Ee=Yt,cr.forEach(fn=>fn(hn,Yt)))};let $r=ve[1];const Pr=(hn=++ve[1])=>($r!==hn&&!cr.size&&($r=hn,ur.forEach(([Yt])=>{const fn=Yt[1](hn);fn>Ee&&(Ee=fn)})),Ee),Ar=hn=>(Yt,fn)=>{const Qt=[...Yt];Qt[1]=[hn,...Qt[1]],Br(Qt,fn)},ur=new Map,jr=(hn,Yt)=>{if(cr.size){const fn=Yt[3](Ar(hn));ur.set(hn,[Yt,fn])}else ur.set(hn,[Yt])},Mr=hn=>{var Yt;const fn=ur.get(hn);fn&&(ur.delete(hn),(Yt=fn[1])==null||Yt.call(fn))},Lr=hn=>(cr.add(hn),cr.size===1&&ur.forEach(([fn,Qt],Xt)=>{const Kr=fn[3](Ar(Xt));ur.set(Xt,[fn,Kr])}),()=>{cr.delete(hn),cr.size===0&&ur.forEach(([fn,Qt],Xt)=>{Qt&&(Qt(),ur.set(Xt,[fn]))})}),Vr=Array.isArray(ye)?[]:Object.create(Object.getPrototypeOf(ye)),Ur=k(Vr,{deleteProperty(hn,Yt){const fn=Reflect.get(hn,Yt);Mr(Yt);const Qt=Reflect.deleteProperty(hn,Yt);return Qt&&Br(["delete",[Yt],fn]),Qt},set(hn,Yt,fn,Qt){const Xt=Reflect.has(hn,Yt),Kr=Reflect.get(hn,Yt,Qt);if(Xt&&(v(Kr,fn)||le.has(fn)&&v(Kr,le.get(fn))))return!0;Mr(Yt),isObject$j(fn)&&(fn=y$1(fn)||fn);let be=fn;if(fn instanceof Promise)fn.then(kr=>{fn.status="fulfilled",fn.value=kr,Br(["resolve",[Yt],kr])}).catch(kr=>{fn.status="rejected",fn.reason=kr,Br(["reject",[Yt],kr])});else{!proxyStateMap.has(fn)&&ie(fn)&&(be=pe(fn));const kr=!refSet.has(be)&&proxyStateMap.get(be);kr&&jr(Yt,kr)}return Reflect.set(hn,Yt,be,Qt),Br(["set",[Yt],fn,Kr]),!0}});le.set(ye,Ur);const Qr=[Vr,Pr,fe,Lr];return proxyStateMap.set(Ur,Qr),Reflect.ownKeys(ye).forEach(hn=>{const Yt=Object.getOwnPropertyDescriptor(ye,hn);"value"in Yt&&(Ur[hn]=ye[hn],delete Yt.value,delete Yt.writable),Object.defineProperty(Vr,hn,Yt)}),Ur})=>[pe,proxyStateMap,refSet,v,k,ie,ae,ce,fe,le,ve],[defaultProxyFunction]=buildProxyFunction();function proxy(v={}){return defaultProxyFunction(v)}function subscribe(v,k,ie){const ae=proxyStateMap.get(v);let ce;const fe=[],le=ae[3];let ve=!1;const ye=le(me=>{if(fe.push(me),ie){k(fe.splice(0));return}ce||(ce=Promise.resolve().then(()=>{ce=void 0,ve&&k(fe.splice(0))}))});return ve=!0,()=>{ve=!1,ye()}}function snapshot(v,k){const ie=proxyStateMap.get(v),[ae,ce,fe]=ie;return fe(ae,ce(),k)}var o=proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),N$2={state:o,subscribe(v){return subscribe(o,()=>v(o))},push(v,k){v!==o.view&&(o.view=v,k&&(o.data=k),o.history.push(v))},reset(v){o.view=v,o.history=[v]},replace(v){o.history.length>1&&(o.history[o.history.length-1]=v,o.view=v)},goBack(){if(o.history.length>1){o.history.pop();const[v]=o.history.slice(-1);o.view=v}},setData(v){o.data=v}},i={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return i.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const v=navigator.userAgent.toLowerCase();return i.isMobile()&&(v.includes("iphone")||v.includes("ipad"))},isHttpUrl(v){return v.startsWith("http://")||v.startsWith("https://")},isArray(v){return Array.isArray(v)&&v.length>0},formatNativeUrl(v,k,ie){if(i.isHttpUrl(v))return this.formatUniversalUrl(v,k,ie);let ae=v;ae.includes("://")||(ae=v.replaceAll("/","").replaceAll(":",""),ae=`${ae}://`),ae.endsWith("/")||(ae=`${ae}/`),this.setWalletConnectDeepLink(ae,ie);const ce=encodeURIComponent(k);return`${ae}wc?uri=${ce}`},formatUniversalUrl(v,k,ie){if(!i.isHttpUrl(v))return this.formatNativeUrl(v,k,ie);let ae=v;ae.endsWith("/")||(ae=`${ae}/`),this.setWalletConnectDeepLink(ae,ie);const ce=encodeURIComponent(k);return`${ae}wc?uri=${ce}`},async wait(v){return new Promise(k=>{setTimeout(k,v)})},openHref(v,k){window.open(v,k,"noreferrer noopener")},setWalletConnectDeepLink(v,k){try{localStorage.setItem(i.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:v,name:k}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(v){try{const[k]=v.split("?");localStorage.setItem(i.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:k,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(i.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(i.WCM_VERSION,"2.6.0")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var v;const k=(v=N$2.state.data)==null?void 0:v.Wallet;if(!k)throw new Error('Missing "Wallet" view data');return k}},x$1=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r$1=proxy({enabled:x$1,userSessionId:"",events:[],connectedWalletId:void 0}),T={state:r$1,subscribe(v){return subscribe(r$1.events,()=>v(snapshot(r$1.events[r$1.events.length-1])))},initialize(){r$1.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(r$1.userSessionId=crypto.randomUUID())},setConnectedWalletId(v){r$1.connectedWalletId=v},click(v){if(r$1.enabled){const k={type:"CLICK",name:v.name,userSessionId:r$1.userSessionId,timestamp:Date.now(),data:v};r$1.events.push(k)}},track(v){if(r$1.enabled){const k={type:"TRACK",name:v.name,userSessionId:r$1.userSessionId,timestamp:Date.now(),data:v};r$1.events.push(k)}},view(v){if(r$1.enabled){const k={type:"VIEW",name:v.name,userSessionId:r$1.userSessionId,timestamp:Date.now(),data:v};r$1.events.push(k)}}},l2=proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),d={state:l2,subscribe(v){return subscribe(l2,()=>v(l2))},setChains(v){l2.chains=v},setWalletConnectUri(v){l2.walletConnectUri=v},setIsCustomDesktop(v){l2.isCustomDesktop=v},setIsCustomMobile(v){l2.isCustomMobile=v},setIsDataLoaded(v){l2.isDataLoaded=v},setIsUiLoaded(v){l2.isUiLoaded=v},setIsAuth(v){l2.isAuth=v}},W$1=proxy({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),f={state:W$1,subscribe(v){return subscribe(W$1,()=>v(W$1))},setConfig(v){var k,ie;T.initialize(),d.setChains(v.chains),d.setIsAuth(Boolean(v.enableAuthMode)),d.setIsCustomMobile(Boolean((k=v.mobileWallets)==null?void 0:k.length)),d.setIsCustomDesktop(Boolean((ie=v.desktopWallets)==null?void 0:ie.length)),i.setModalVersionInStorage(),Object.assign(W$1,v)}},w$1="https://explorer-api.walletconnect.com";async function L$1(v,k){const ie=new URL(v,w$1);return ie.searchParams.append("projectId",f.state.projectId),Object.entries(k).forEach(([ae,ce])=>{ce&&ie.searchParams.append(ae,String(ce))}),(await fetch(ie)).json()}var m={async getDesktopListings(v){return L$1("/w3m/v1/getDesktopListings",v)},async getMobileListings(v){return L$1("/w3m/v1/getMobileListings",v)},async getInjectedListings(v){return L$1("/w3m/v1/getInjectedListings",v)},async getAllListings(v){return L$1("/w3m/v1/getAllListings",v)},getWalletImageUrl(v){return`${w$1}/w3m/v1/getWalletImage/${v}?projectId=${f.state.projectId}`},getAssetImageUrl(v){return`${w$1}/w3m/v1/getAssetImage/${v}?projectId=${f.state.projectId}`}},$$d=Object.defineProperty,O$1=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,_$1=Object.prototype.propertyIsEnumerable,U$1=(v,k,ie)=>k in v?$$d(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,R$1=(v,k)=>{for(var ie in k||(k={}))P.call(k,ie)&&U$1(v,ie,k[ie]);if(O$1)for(var ie of O$1(k))_$1.call(k,ie)&&U$1(v,ie,k[ie]);return v},M$1=i.isMobile(),c2=proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),q$1={state:c2,async getRecomendedWallets(){const{explorerRecommendedWalletIds:v,explorerExcludedWalletIds:k}=f.state;if(v==="NONE"||k==="ALL"&&!v)return c2.recomendedWallets;if(i.isArray(v)){const ie={recommendedIds:v.join(",")},{listings:ae}=await m.getAllListings(ie),ce=Object.values(ae);ce.sort((fe,le)=>{const ve=v.indexOf(fe.id),pe=v.indexOf(le.id);return ve-pe}),c2.recomendedWallets=ce}else{const{chains:ie,isAuth:ae}=d.state,ce=ie==null?void 0:ie.join(","),fe=i.isArray(k),le={page:1,sdks:ae?"auth_v1":void 0,entries:i.RECOMMENDED_WALLET_AMOUNT,chains:ce,version:2,excludedIds:fe?k.join(","):void 0},{listings:ve}=M$1?await m.getMobileListings(le):await m.getDesktopListings(le);c2.recomendedWallets=Object.values(ve)}return c2.recomendedWallets},async getWallets(v){const k=R$1({},v),{explorerRecommendedWalletIds:ie,explorerExcludedWalletIds:ae}=f.state,{recomendedWallets:ce}=c2;if(ae==="ALL")return c2.wallets;ce.length?k.excludedIds=ce.map(Ee=>Ee.id).join(","):i.isArray(ie)&&(k.excludedIds=ie.join(",")),i.isArray(ae)&&(k.excludedIds=[k.excludedIds,ae].filter(Boolean).join(",")),d.state.isAuth&&(k.sdks="auth_v1");const{page:fe,search:le}=v,{listings:ve,total:pe}=M$1?await m.getMobileListings(k):await m.getDesktopListings(k),ye=Object.values(ve),me=le?"search":"wallets";return c2[me]={listings:[...c2[me].listings,...ye],total:pe,page:fe!=null?fe:1},{listings:ye,total:pe}},getWalletImageUrl(v){return m.getWalletImageUrl(v)},getAssetImageUrl(v){return m.getAssetImageUrl(v)},resetSearch(){c2.search={listings:[],total:0,page:1}}},I$1=proxy({open:!1}),F={state:I$1,subscribe(v){return subscribe(I$1,()=>v(I$1))},async open(v){return new Promise(k=>{const{isUiLoaded:ie,isDataLoaded:ae}=d.state;if(d.setWalletConnectUri(v==null?void 0:v.uri),d.setChains(v==null?void 0:v.chains),N$2.reset("ConnectWallet"),ie&&ae)I$1.open=!0,k();else{const ce=setInterval(()=>{const fe=d.state;fe.isUiLoaded&&fe.isDataLoaded&&(clearInterval(ce),I$1.open=!0,k())},200)}})},close(){I$1.open=!1}},H$1=Object.defineProperty,D$1=Object.getOwnPropertySymbols,B$1=Object.prototype.hasOwnProperty,V$1=Object.prototype.propertyIsEnumerable,j$3=(v,k,ie)=>k in v?H$1(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,K$1=(v,k)=>{for(var ie in k||(k={}))B$1.call(k,ie)&&j$3(v,ie,k[ie]);if(D$1)for(var ie of D$1(k))V$1.call(k,ie)&&j$3(v,ie,k[ie]);return v};function z(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}var b$1=proxy({themeMode:z()?"dark":"light"}),G={state:b$1,subscribe(v){return subscribe(b$1,()=>v(b$1))},setThemeConfig(v){const{themeMode:k,themeVariables:ie}=v;k&&(b$1.themeMode=k),ie&&(b$1.themeVariables=K$1({},ie))}},g$1=proxy({open:!1,message:"",variant:"success"}),Q$1={state:g$1,subscribe(v){return subscribe(g$1,()=>v(g$1))},openToast(v,k){g$1.open=!0,g$1.message=v,g$1.variant=k},closeToast(){g$1.open=!1}},require_tslib=__commonJS$1({"node_modules/tslib/tslib.js"(v,k){var ie,ae,ce,fe,le,ve,pe,ye,me,Ee,cr,Br,$r,Pr,Ar,ur,jr,Mr,Lr,Vr,Gr,Ur,Qr;(function(hn){var Yt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(Qt){hn(fn(Yt,fn(Qt)))}):typeof k=="object"&&typeof k.exports=="object"?hn(fn(Yt,fn(k.exports))):hn(fn(Yt));function fn(Qt,Xt){return Qt!==Yt&&(typeof Object.create=="function"?Object.defineProperty(Qt,"__esModule",{value:!0}):Qt.__esModule=!0),function(Kr,be){return Qt[Kr]=Xt?Xt(Kr,be):be}}})(function(hn){var Yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fn,Qt){fn.__proto__=Qt}||function(fn,Qt){for(var Xt in Qt)Qt.hasOwnProperty(Xt)&&(fn[Xt]=Qt[Xt])};ie=function(fn,Qt){Yt(fn,Qt);function Xt(){this.constructor=fn}fn.prototype=Qt===null?Object.create(Qt):(Xt.prototype=Qt.prototype,new Xt)},ae=Object.assign||function(fn){for(var Qt,Xt=1,Kr=arguments.length;Xt=0;Wr--)(xr=fn[Wr])&&(kr=(be<3?xr(kr):be>3?xr(Qt,Xt,kr):xr(Qt,Xt))||kr);return be>3&&kr&&Object.defineProperty(Qt,Xt,kr),kr},le=function(fn,Qt){return function(Xt,Kr){Qt(Xt,Kr,fn)}},ve=function(fn,Qt){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(fn,Qt)},pe=function(fn,Qt,Xt,Kr){function be(kr){return kr instanceof Xt?kr:new Xt(function(xr){xr(kr)})}return new(Xt||(Xt=Promise))(function(kr,xr){function Wr(zr){try{Xr(Kr.next(zr))}catch(Jr){xr(Jr)}}function Jt(zr){try{Xr(Kr.throw(zr))}catch(Jr){xr(Jr)}}function Xr(zr){zr.done?kr(zr.value):be(zr.value).then(Wr,Jt)}Xr((Kr=Kr.apply(fn,Qt||[])).next())})},ye=function(fn,Qt){var Xt={label:0,sent:function(){if(kr[0]&1)throw kr[1];return kr[1]},trys:[],ops:[]},Kr,be,kr,xr;return xr={next:Wr(0),throw:Wr(1),return:Wr(2)},typeof Symbol=="function"&&(xr[Symbol.iterator]=function(){return this}),xr;function Wr(Xr){return function(zr){return Jt([Xr,zr])}}function Jt(Xr){if(Kr)throw new TypeError("Generator is already executing.");for(;Xt;)try{if(Kr=1,be&&(kr=Xr[0]&2?be.return:Xr[0]?be.throw||((kr=be.return)&&kr.call(be),0):be.next)&&!(kr=kr.call(be,Xr[1])).done)return kr;switch(be=0,kr&&(Xr=[Xr[0]&2,kr.value]),Xr[0]){case 0:case 1:kr=Xr;break;case 4:return Xt.label++,{value:Xr[1],done:!1};case 5:Xt.label++,be=Xr[1],Xr=[0];continue;case 7:Xr=Xt.ops.pop(),Xt.trys.pop();continue;default:if(kr=Xt.trys,!(kr=kr.length>0&&kr[kr.length-1])&&(Xr[0]===6||Xr[0]===2)){Xt=0;continue}if(Xr[0]===3&&(!kr||Xr[1]>kr[0]&&Xr[1]=fn.length&&(fn=void 0),{value:fn&&fn[Kr++],done:!fn}}};throw new TypeError(Qt?"Object is not iterable.":"Symbol.iterator is not defined.")},cr=function(fn,Qt){var Xt=typeof Symbol=="function"&&fn[Symbol.iterator];if(!Xt)return fn;var Kr=Xt.call(fn),be,kr=[],xr;try{for(;(Qt===void 0||Qt-- >0)&&!(be=Kr.next()).done;)kr.push(be.value)}catch(Wr){xr={error:Wr}}finally{try{be&&!be.done&&(Xt=Kr.return)&&Xt.call(Kr)}finally{if(xr)throw xr.error}}return kr},Br=function(){for(var fn=[],Qt=0;Qt1||Wr(Nr,Hr)})})}function Wr(Nr,Hr){try{Jt(Kr[Nr](Hr))}catch(On){Jr(kr[0][3],On)}}function Jt(Nr){Nr.value instanceof Pr?Promise.resolve(Nr.value.v).then(Xr,zr):Jr(kr[0][2],Nr)}function Xr(Nr){Wr("next",Nr)}function zr(Nr){Wr("throw",Nr)}function Jr(Nr,Hr){Nr(Hr),kr.shift(),kr.length&&Wr(kr[0][0],kr[0][1])}},ur=function(fn){var Qt,Xt;return Qt={},Kr("next"),Kr("throw",function(be){throw be}),Kr("return"),Qt[Symbol.iterator]=function(){return this},Qt;function Kr(be,kr){Qt[be]=fn[be]?function(xr){return(Xt=!Xt)?{value:Pr(fn[be](xr)),done:be==="return"}:kr?kr(xr):xr}:kr}},jr=function(fn){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Qt=fn[Symbol.asyncIterator],Xt;return Qt?Qt.call(fn):(fn=typeof Ee=="function"?Ee(fn):fn[Symbol.iterator](),Xt={},Kr("next"),Kr("throw"),Kr("return"),Xt[Symbol.asyncIterator]=function(){return this},Xt);function Kr(kr){Xt[kr]=fn[kr]&&function(xr){return new Promise(function(Wr,Jt){xr=fn[kr](xr),be(Wr,Jt,xr.done,xr.value)})}}function be(kr,xr,Wr,Jt){Promise.resolve(Jt).then(function(Xr){kr({value:Xr,done:Wr})},xr)}},Mr=function(fn,Qt){return Object.defineProperty?Object.defineProperty(fn,"raw",{value:Qt}):fn.raw=Qt,fn},Lr=function(fn){if(fn&&fn.__esModule)return fn;var Qt={};if(fn!=null)for(var Xt in fn)Object.hasOwnProperty.call(fn,Xt)&&(Qt[Xt]=fn[Xt]);return Qt.default=fn,Qt},Vr=function(fn){return fn&&fn.__esModule?fn:{default:fn}},Gr=function(fn,Qt){if(!Qt.has(fn))throw new TypeError("attempted to get private field on non-instance");return Qt.get(fn)},Ur=function(fn,Qt,Xt){if(!Qt.has(fn))throw new TypeError("attempted to set private field on non-instance");return Qt.set(fn,Xt),Xt},hn("__extends",ie),hn("__assign",ae),hn("__rest",ce),hn("__decorate",fe),hn("__param",le),hn("__metadata",ve),hn("__awaiter",pe),hn("__generator",ye),hn("__exportStar",me),hn("__createBinding",Qr),hn("__values",Ee),hn("__read",cr),hn("__spread",Br),hn("__spreadArrays",$r),hn("__await",Pr),hn("__asyncGenerator",Ar),hn("__asyncDelegator",ur),hn("__asyncValues",jr),hn("__makeTemplateObject",Mr),hn("__importStar",Lr),hn("__importDefault",Vr),hn("__classPrivateFieldGet",Gr),hn("__classPrivateFieldSet",Ur)})}}),require_cjs=__commonJS$1({"node_modules/safe-json-utils/dist/cjs/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});function k(ae){if(typeof ae!="string")throw new Error(`Cannot safe json parse value of type ${typeof ae}`);try{return JSON.parse(ae)}catch{return ae}}v.safeJsonParse=k;function ie(ae){return typeof ae=="string"?ae:JSON.stringify(ae,(ce,fe)=>typeof fe>"u"?null:fe)}v.safeJsonStringify=ie}}),require_localStorage=__commonJS$1({"node_modules/@walletconnect/keyvaluestorage/dist/cjs/browser/lib/localStorage.js"(v,k){(function(){let ie;function ae(){}ie=ae,ie.prototype.getItem=function(ce){return this.hasOwnProperty(ce)?String(this[ce]):null},ie.prototype.setItem=function(ce,fe){this[ce]=String(fe)},ie.prototype.removeItem=function(ce){delete this[ce]},ie.prototype.clear=function(){const ce=this;Object.keys(ce).forEach(function(fe){ce[fe]=void 0,delete ce[fe]})},ie.prototype.key=function(ce){return ce=ce||0,Object.keys(this)[ce]},ie.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof globalThis<"u"&&globalThis.localStorage?k.exports=globalThis.localStorage:typeof window<"u"&&window.localStorage?k.exports=window.localStorage:k.exports=new ae})()}}),require_types$2=__commonJS$1({"node_modules/@walletconnect/keyvaluestorage/dist/cjs/shared/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.IKeyValueStorage=void 0;var k=class{};v.IKeyValueStorage=k}}),require_utils$1=__commonJS$1({"node_modules/@walletconnect/keyvaluestorage/dist/cjs/shared/utils.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.parseEntry=void 0;var k=require_cjs();function ie(ae){var ce;return[ae[0],k.safeJsonParse((ce=ae[1])!==null&&ce!==void 0?ce:"")]}v.parseEntry=ie}}),require_shared=__commonJS$1({"node_modules/@walletconnect/keyvaluestorage/dist/cjs/shared/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_types$2(),v),k.__exportStar(require_utils$1(),v)}}),require_browser$1=__commonJS$1({"node_modules/@walletconnect/keyvaluestorage/dist/cjs/browser/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.KeyValueStorage=void 0;var k=require_tslib(),ie=require_cjs(),ae=k.__importDefault(require_localStorage()),ce=require_shared(),fe=class{constructor(){this.localStorage=ae.default}getKeys(){return k.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return k.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(ce.parseEntry)})}getItem(le){return k.__awaiter(this,void 0,void 0,function*(){const ve=this.localStorage.getItem(le);if(ve!==null)return ie.safeJsonParse(ve)})}setItem(le,ve){return k.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(le,ie.safeJsonStringify(ve))})}removeItem(le){return k.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(le)})}};v.KeyValueStorage=fe,v.default=fe}}),require_delay=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/utils/delay.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.delay=void 0;function k(ie){return new Promise(ae=>{setTimeout(()=>{ae(!0)},ie)})}v.delay=k}}),require_misc=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/constants/misc.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ONE_THOUSAND=v.ONE_HUNDRED=void 0,v.ONE_HUNDRED=100,v.ONE_THOUSAND=1e3}}),require_time=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/constants/time.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.ONE_YEAR=v.FOUR_WEEKS=v.THREE_WEEKS=v.TWO_WEEKS=v.ONE_WEEK=v.THIRTY_DAYS=v.SEVEN_DAYS=v.FIVE_DAYS=v.THREE_DAYS=v.ONE_DAY=v.TWENTY_FOUR_HOURS=v.TWELVE_HOURS=v.SIX_HOURS=v.THREE_HOURS=v.ONE_HOUR=v.SIXTY_MINUTES=v.THIRTY_MINUTES=v.TEN_MINUTES=v.FIVE_MINUTES=v.ONE_MINUTE=v.SIXTY_SECONDS=v.THIRTY_SECONDS=v.TEN_SECONDS=v.FIVE_SECONDS=v.ONE_SECOND=void 0,v.ONE_SECOND=1,v.FIVE_SECONDS=5,v.TEN_SECONDS=10,v.THIRTY_SECONDS=30,v.SIXTY_SECONDS=60,v.ONE_MINUTE=v.SIXTY_SECONDS,v.FIVE_MINUTES=v.ONE_MINUTE*5,v.TEN_MINUTES=v.ONE_MINUTE*10,v.THIRTY_MINUTES=v.ONE_MINUTE*30,v.SIXTY_MINUTES=v.ONE_MINUTE*60,v.ONE_HOUR=v.SIXTY_MINUTES,v.THREE_HOURS=v.ONE_HOUR*3,v.SIX_HOURS=v.ONE_HOUR*6,v.TWELVE_HOURS=v.ONE_HOUR*12,v.TWENTY_FOUR_HOURS=v.ONE_HOUR*24,v.ONE_DAY=v.TWENTY_FOUR_HOURS,v.THREE_DAYS=v.ONE_DAY*3,v.FIVE_DAYS=v.ONE_DAY*5,v.SEVEN_DAYS=v.ONE_DAY*7,v.THIRTY_DAYS=v.ONE_DAY*30,v.ONE_WEEK=v.SEVEN_DAYS,v.TWO_WEEKS=v.ONE_WEEK*2,v.THREE_WEEKS=v.ONE_WEEK*3,v.FOUR_WEEKS=v.ONE_WEEK*4,v.ONE_YEAR=v.ONE_DAY*365}}),require_constants=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/constants/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_misc(),v),k.__exportStar(require_time(),v)}}),require_convert=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/utils/convert.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.fromMiliseconds=v.toMiliseconds=void 0;var k=require_constants();function ie(ce){return ce*k.ONE_THOUSAND}v.toMiliseconds=ie;function ae(ce){return Math.floor(ce/k.ONE_THOUSAND)}v.fromMiliseconds=ae}}),require_utils2$2=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/utils/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_delay(),v),k.__exportStar(require_convert(),v)}}),require_watch=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/watch.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.Watch=void 0;var k=class{constructor(){this.timestamps=new Map}start(ie){if(this.timestamps.has(ie))throw new Error(`Watch already started for label: ${ie}`);this.timestamps.set(ie,{started:Date.now()})}stop(ie){const ae=this.get(ie);if(typeof ae.elapsed<"u")throw new Error(`Watch already stopped for label: ${ie}`);const ce=Date.now()-ae.started;this.timestamps.set(ie,{started:ae.started,elapsed:ce})}get(ie){const ae=this.timestamps.get(ie);if(typeof ae>"u")throw new Error(`No timestamp found for label: ${ie}`);return ae}elapsed(ie){const ae=this.get(ie);return ae.elapsed||Date.now()-ae.started}};v.Watch=k,v.default=k}}),require_watch2=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/types/watch.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.IWatch=void 0;var k=class{};v.IWatch=k}}),require_types2$1=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/types/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_watch2(),v)}}),require_cjs2=__commonJS$1({"node_modules/@walletconnect/time/dist/cjs/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_utils2$2(),v),k.__exportStar(require_watch(),v),k.__exportStar(require_types2$1(),v),k.__exportStar(require_constants(),v)}}),IEvents,init_events=__esm$1({"node_modules/@walletconnect/events/dist/esm/events.js"(){IEvents=class{}}}),esm_exports={};__export$1(esm_exports,{IEvents:()=>IEvents});var init_esm=__esm$1({"node_modules/@walletconnect/events/dist/esm/index.js"(){init_events()}}),require_heartbeat=__commonJS$1({"node_modules/@walletconnect/heartbeat/dist/cjs/types/heartbeat.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.IHeartBeat=void 0;var k=(init_esm(),__toCommonJS$1(esm_exports)),ie=class extends k.IEvents{constructor(ae){super()}};v.IHeartBeat=ie}}),require_types3=__commonJS$1({"node_modules/@walletconnect/heartbeat/dist/cjs/types/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_heartbeat(),v)}}),require_heartbeat2=__commonJS$1({"node_modules/@walletconnect/heartbeat/dist/cjs/constants/heartbeat.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.HEARTBEAT_EVENTS=v.HEARTBEAT_INTERVAL=void 0;var k=require_cjs2();v.HEARTBEAT_INTERVAL=k.FIVE_SECONDS,v.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}}}),require_constants2=__commonJS$1({"node_modules/@walletconnect/heartbeat/dist/cjs/constants/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_heartbeat2(),v)}}),require_heartbeat3=__commonJS$1({"node_modules/@walletconnect/heartbeat/dist/cjs/heartbeat.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.HeartBeat=void 0;var k=require_tslib(),ie=require_events(),ae=require_cjs2(),ce=require_types3(),fe=require_constants2(),le=class extends ce.IHeartBeat{constructor(ve){super(ve),this.events=new ie.EventEmitter,this.interval=fe.HEARTBEAT_INTERVAL,this.interval=(ve==null?void 0:ve.interval)||fe.HEARTBEAT_INTERVAL}static init(ve){return k.__awaiter(this,void 0,void 0,function*(){const pe=new le(ve);return yield pe.init(),pe})}init(){return k.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(ve,pe){this.events.on(ve,pe)}once(ve,pe){this.events.once(ve,pe)}off(ve,pe){this.events.off(ve,pe)}removeListener(ve,pe){this.events.removeListener(ve,pe)}initialize(){return k.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),ae.toMiliseconds(this.interval))})}pulse(){this.events.emit(fe.HEARTBEAT_EVENTS.pulse)}};v.HeartBeat=le}}),require_cjs3=__commonJS$1({"node_modules/@walletconnect/heartbeat/dist/cjs/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_heartbeat3(),v),k.__exportStar(require_types3(),v),k.__exportStar(require_constants2(),v)}}),require_quick_format_unescaped=__commonJS$1({"node_modules/quick-format-unescaped/index.js"(v,k){function ie(ce){try{return JSON.stringify(ce)}catch{return'"[Circular]"'}}k.exports=ae;function ae(ce,fe,le){var ve=le&&le.stringify||ie,pe=1;if(typeof ce=="object"&&ce!==null){var ye=fe.length+pe;if(ye===1)return ce;var me=new Array(ye);me[0]=ve(ce);for(var Ee=1;Ee-1?Pr:0,ce.charCodeAt(ur+1)){case 100:case 102:if($r>=cr||fe[$r]==null)break;Pr=cr||fe[$r]==null)break;Pr=cr||fe[$r]===void 0)break;Pr",Pr=ur+2,ur++;break}Br+=ve(fe[$r]),Pr=ur+2,ur++;break;case 115:if($r>=cr)break;Pr-1&&(Xt=!1);const Kr=["error","fatal","warn","info","debug","trace"];typeof Yt=="function"&&(Yt.error=Yt.fatal=Yt.warn=Yt.info=Yt.debug=Yt.trace=Yt),Qr.enabled===!1&&(Qr.level="silent");const be=Qr.level||"info",kr=Object.create(Yt);kr.log||(kr.log=jr),Object.defineProperty(kr,"levelVal",{get:Wr}),Object.defineProperty(kr,"level",{get:Jt,set:Xr});const xr={transmit:hn,serialize:Qt,asObject:Qr.browser.asObject,levels:Kr,timestamp:Pr(Qr)};kr.levels=le.levels,kr.level=be,kr.setMaxListeners=kr.getMaxListeners=kr.emit=kr.addListener=kr.on=kr.prependListener=kr.once=kr.prependOnceListener=kr.removeListener=kr.removeAllListeners=kr.listeners=kr.listenerCount=kr.eventNames=kr.write=kr.flush=jr,kr.serializers=fn,kr._serialize=Qt,kr._stdErrSerialize=Xt,kr.child=zr,hn&&(kr._logEvent=Br());function Wr(){return this.level==="silent"?1/0:this.levels.values[this.level]}function Jt(){return this._level}function Xr(Jr){if(Jr!=="silent"&&!this.levels.values[Jr])throw Error("unknown level "+Jr);this._level=Jr,ve(xr,kr,"error","log"),ve(xr,kr,"fatal","error"),ve(xr,kr,"warn","error"),ve(xr,kr,"info","log"),ve(xr,kr,"debug","log"),ve(xr,kr,"trace","log")}function zr(Jr,Nr){if(!Jr)throw new Error("missing bindings for child Pino");Nr=Nr||{},Qt&&Jr.serializers&&(Nr.serializers=Jr.serializers);const Hr=Nr.serializers;if(Qt&&Hr){var On=Object.assign({},fn,Hr),Gn=Qr.browser.serialize===!0?Object.keys(On):Qt;delete Jr.serializers,me([Jr],Gn,On,this._stdErrSerialize)}function mn(Nn){this._childLevel=(Nn._childLevel|0)+1,this.error=Ee(Nn,Jr,"error"),this.fatal=Ee(Nn,Jr,"fatal"),this.warn=Ee(Nn,Jr,"warn"),this.info=Ee(Nn,Jr,"info"),this.debug=Ee(Nn,Jr,"debug"),this.trace=Ee(Nn,Jr,"trace"),On&&(this.serializers=On,this._serialize=Gn),hn&&(this._logEvent=Br([].concat(Nn._logEvent.bindings,Jr)))}return mn.prototype=this,new mn(this)}return kr}le.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},le.stdSerializers=ce,le.stdTimeFunctions=Object.assign({},{nullTime:Mr,epochTime:Lr,unixTime:Vr,isoTime:Gr});function ve(Qr,hn,Yt,fn){const Qt=Object.getPrototypeOf(hn);hn[Yt]=hn.levelVal>hn.levels.values[Yt]?jr:Qt[Yt]?Qt[Yt]:ae[Yt]||ae[fn]||jr,pe(Qr,hn,Yt)}function pe(Qr,hn,Yt){!Qr.transmit&&hn[Yt]===jr||(hn[Yt]=function(fn){return function(){const Xt=Qr.timestamp(),Kr=new Array(arguments.length),be=Object.getPrototypeOf&&Object.getPrototypeOf(this)===ae?ae:this;for(var kr=0;kr-1&&Xt in Yt&&(Qr[Qt][Xt]=Yt[Xt](Qr[Qt][Xt]))}function Ee(Qr,hn,Yt){return function(){const fn=new Array(1+arguments.length);fn[0]=hn;for(var Qt=1;Qt"u"?me=ae(pe,ye):me=pe.bindings().context||"",me}v.getLoggerContext=fe;function le(pe,ye,me=k.PINO_CUSTOM_CONTEXT_KEY){const Ee=fe(pe,me);return Ee.trim()?`${Ee}/${ye}`:ye}v.formatChildLoggerContext=le;function ve(pe,ye,me=k.PINO_CUSTOM_CONTEXT_KEY){const Ee=le(pe,ye,me),cr=pe.child({context:Ee});return ce(cr,Ee,me)}v.generateChildLogger=ve}}),require_cjs4=__commonJS$1({"node_modules/@walletconnect/logger/dist/cjs/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.pino=void 0;var k=require_tslib(),ie=k.__importDefault(require_browser2$1());Object.defineProperty(v,"pino",{enumerable:!0,get:function(){return ie.default}}),k.__exportStar(require_constants3(),v),k.__exportStar(require_utils3(),v)}}),require_browser3$1=__commonJS$1({"node_modules/@stablelib/random/lib/source/browser.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.BrowserRandomSource=void 0;var k=65536,ie=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const ae=typeof self<"u"?self.crypto||self.msCrypto:null;ae&&ae.getRandomValues!==void 0&&(this._crypto=ae,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(ae){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const ce=new Uint8Array(ae);for(let fe=0;fe>>16&65535,me=ve&65535,Ee=pe>>>16&65535,cr=pe&65535;return me*cr+(ye*cr+me*Ee<<16>>>0)|0}v.mul=Math.imul||k;function ie(ve,pe){return ve+pe|0}v.add=ie;function ae(ve,pe){return ve-pe|0}v.sub=ae;function ce(ve,pe){return ve<>>32-pe}v.rotl=ce;function fe(ve,pe){return ve<<32-pe|ve>>>pe}v.rotr=fe;function le(ve){return typeof ve=="number"&&isFinite(ve)&&Math.floor(ve)===ve}v.isInteger=Number.isInteger||le,v.MAX_SAFE_INTEGER=9007199254740991,v.isSafeInteger=function(ve){return v.isInteger(ve)&&ve>=-v.MAX_SAFE_INTEGER&&ve<=v.MAX_SAFE_INTEGER}}}),require_binary=__commonJS$1({"node_modules/@stablelib/binary/lib/binary.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_int();function ie(kr,xr){return xr===void 0&&(xr=0),(kr[xr+0]<<8|kr[xr+1])<<16>>16}v.readInt16BE=ie;function ae(kr,xr){return xr===void 0&&(xr=0),(kr[xr+0]<<8|kr[xr+1])>>>0}v.readUint16BE=ae;function ce(kr,xr){return xr===void 0&&(xr=0),(kr[xr+1]<<8|kr[xr])<<16>>16}v.readInt16LE=ce;function fe(kr,xr){return xr===void 0&&(xr=0),(kr[xr+1]<<8|kr[xr])>>>0}v.readUint16LE=fe;function le(kr,xr,Wr){return xr===void 0&&(xr=new Uint8Array(2)),Wr===void 0&&(Wr=0),xr[Wr+0]=kr>>>8,xr[Wr+1]=kr>>>0,xr}v.writeUint16BE=le,v.writeInt16BE=le;function ve(kr,xr,Wr){return xr===void 0&&(xr=new Uint8Array(2)),Wr===void 0&&(Wr=0),xr[Wr+0]=kr>>>0,xr[Wr+1]=kr>>>8,xr}v.writeUint16LE=ve,v.writeInt16LE=ve;function pe(kr,xr){return xr===void 0&&(xr=0),kr[xr]<<24|kr[xr+1]<<16|kr[xr+2]<<8|kr[xr+3]}v.readInt32BE=pe;function ye(kr,xr){return xr===void 0&&(xr=0),(kr[xr]<<24|kr[xr+1]<<16|kr[xr+2]<<8|kr[xr+3])>>>0}v.readUint32BE=ye;function me(kr,xr){return xr===void 0&&(xr=0),kr[xr+3]<<24|kr[xr+2]<<16|kr[xr+1]<<8|kr[xr]}v.readInt32LE=me;function Ee(kr,xr){return xr===void 0&&(xr=0),(kr[xr+3]<<24|kr[xr+2]<<16|kr[xr+1]<<8|kr[xr])>>>0}v.readUint32LE=Ee;function cr(kr,xr,Wr){return xr===void 0&&(xr=new Uint8Array(4)),Wr===void 0&&(Wr=0),xr[Wr+0]=kr>>>24,xr[Wr+1]=kr>>>16,xr[Wr+2]=kr>>>8,xr[Wr+3]=kr>>>0,xr}v.writeUint32BE=cr,v.writeInt32BE=cr;function Br(kr,xr,Wr){return xr===void 0&&(xr=new Uint8Array(4)),Wr===void 0&&(Wr=0),xr[Wr+0]=kr>>>0,xr[Wr+1]=kr>>>8,xr[Wr+2]=kr>>>16,xr[Wr+3]=kr>>>24,xr}v.writeUint32LE=Br,v.writeInt32LE=Br;function $r(kr,xr){xr===void 0&&(xr=0);var Wr=pe(kr,xr),Jt=pe(kr,xr+4);return Wr*4294967296+Jt-(Jt>>31)*4294967296}v.readInt64BE=$r;function Pr(kr,xr){xr===void 0&&(xr=0);var Wr=ye(kr,xr),Jt=ye(kr,xr+4);return Wr*4294967296+Jt}v.readUint64BE=Pr;function Ar(kr,xr){xr===void 0&&(xr=0);var Wr=me(kr,xr),Jt=me(kr,xr+4);return Jt*4294967296+Wr-(Wr>>31)*4294967296}v.readInt64LE=Ar;function ur(kr,xr){xr===void 0&&(xr=0);var Wr=Ee(kr,xr),Jt=Ee(kr,xr+4);return Jt*4294967296+Wr}v.readUint64LE=ur;function jr(kr,xr,Wr){return xr===void 0&&(xr=new Uint8Array(8)),Wr===void 0&&(Wr=0),cr(kr/4294967296>>>0,xr,Wr),cr(kr>>>0,xr,Wr+4),xr}v.writeUint64BE=jr,v.writeInt64BE=jr;function Mr(kr,xr,Wr){return xr===void 0&&(xr=new Uint8Array(8)),Wr===void 0&&(Wr=0),Br(kr>>>0,xr,Wr),Br(kr/4294967296>>>0,xr,Wr+4),xr}v.writeUint64LE=Mr,v.writeInt64LE=Mr;function Lr(kr,xr,Wr){if(Wr===void 0&&(Wr=0),kr%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(kr/8>xr.length-Wr)throw new Error("readUintBE: array is too short for the given bitLength");for(var Jt=0,Xr=1,zr=kr/8+Wr-1;zr>=Wr;zr--)Jt+=xr[zr]*Xr,Xr*=256;return Jt}v.readUintBE=Lr;function Vr(kr,xr,Wr){if(Wr===void 0&&(Wr=0),kr%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(kr/8>xr.length-Wr)throw new Error("readUintLE: array is too short for the given bitLength");for(var Jt=0,Xr=1,zr=Wr;zr=Jt;zr--)Wr[zr]=xr/Xr&255,Xr*=256;return Wr}v.writeUintBE=Gr;function Ur(kr,xr,Wr,Jt){if(Wr===void 0&&(Wr=new Uint8Array(kr/8)),Jt===void 0&&(Jt=0),kr%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!k.isSafeInteger(xr))throw new Error("writeUintLE value must be an integer");for(var Xr=1,zr=Jt;zr256)throw new Error("randomString charset is too long");let cr="";const Br=me.length,$r=256-256%Br;for(;ye>0;){const Pr=ce(Math.ceil(ye*256/$r),Ee);for(let Ar=0;Ar0;Ar++){const ur=Pr[Ar];ur<$r&&(cr+=me.charAt(ur%Br),ye--)}(0,ae.wipe)(Pr)}return cr}v.randomString=ve;function pe(ye,me=le,Ee=v.defaultRandomSource){const cr=Math.ceil(ye/(Math.log(me.length)/Math.LN2));return ve(cr,me,Ee)}v.randomStringForEntropy=pe}}),require_sha512$1=__commonJS$1({"node_modules/@stablelib/sha512/lib/sha512.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_binary(),ie=require_wipe();v.DIGEST_LENGTH=64,v.BLOCK_SIZE=128;var ae=function(){function ve(){this.digestLength=v.DIGEST_LENGTH,this.blockSize=v.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return ve.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},ve.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},ve.prototype.clean=function(){ie.wipe(this._buffer),ie.wipe(this._tempHi),ie.wipe(this._tempLo),this.reset()},ve.prototype.update=function(pe,ye){if(ye===void 0&&(ye=pe.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var me=0;if(this._bytesHashed+=ye,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=pe[me++],ye--;this._bufferLength===this.blockSize&&(fe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(ye>=this.blockSize&&(me=fe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,pe,me,ye),ye%=this.blockSize);ye>0;)this._buffer[this._bufferLength++]=pe[me++],ye--;return this},ve.prototype.finish=function(pe){if(!this._finished){var ye=this._bytesHashed,me=this._bufferLength,Ee=ye/536870912|0,cr=ye<<3,Br=ye%128<112?128:256;this._buffer[me]=128;for(var $r=me+1;$r0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},ve.prototype.restoreState=function(pe){return this._stateHi.set(pe.stateHi),this._stateLo.set(pe.stateLo),this._bufferLength=pe.bufferLength,pe.buffer&&this._buffer.set(pe.buffer),this._bytesHashed=pe.bytesHashed,this._finished=!1,this},ve.prototype.cleanSavedState=function(pe){ie.wipe(pe.stateHi),ie.wipe(pe.stateLo),pe.buffer&&ie.wipe(pe.buffer),pe.bufferLength=0,pe.bytesHashed=0},ve}();v.SHA512=ae;var ce=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function fe(ve,pe,ye,me,Ee,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535,Jt+=be>>>16,Xr+=Kr&65535,zr+=Kr>>>16,Jt+=Wr>>>16,Xr+=Jt>>>16,zr+=Xr>>>16,ye[4]=jr=Xr&65535|zr<<16,me[4]=Yt=Wr&65535|Jt<<16,Kr=Mr,be=fn,Wr=be&65535,Jt=be>>>16,Xr=Kr&65535,zr=Kr>>>16,Kr=ye[5],be=me[5],Wr+=be&65535,Jt+=be>>>16,Xr+=Kr&65535,zr+=Kr>>>16,Jt+=Wr>>>16,Xr+=Jt>>>16,zr+=Xr>>>16,ye[5]=Mr=Xr&65535|zr<<16,me[5]=fn=Wr&65535|Jt<<16,Kr=Lr,be=Qt,Wr=be&65535,Jt=be>>>16,Xr=Kr&65535,zr=Kr>>>16,Kr=ye[6],be=me[6],Wr+=be&65535,Jt+=be>>>16,Xr+=Kr&65535,zr+=Kr>>>16,Jt+=Wr>>>16,Xr+=Jt>>>16,zr+=Xr>>>16,ye[6]=Lr=Xr&65535|zr<<16,me[6]=Qt=Wr&65535|Jt<<16,Kr=Vr,be=Xt,Wr=be&65535,Jt=be>>>16,Xr=Kr&65535,zr=Kr>>>16,Kr=ye[7],be=me[7],Wr+=be&65535,Jt+=be>>>16,Xr+=Kr&65535,zr+=Kr>>>16,Jt+=Wr>>>16,Xr+=Jt>>>16,zr+=Xr>>>16,ye[7]=Vr=Xr&65535|zr<<16,me[7]=Xt=Wr&65535|Jt<<16,cr+=128,Br-=128}return cr}function le(ve){var pe=new ae;pe.update(ve);var ye=pe.digest();return pe.clean(),ye}v.hash=le}}),require_ed25519=__commonJS$1({"node_modules/@stablelib/ed25519/lib/ed25519.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.convertSecretKeyToX25519=v.convertPublicKeyToX25519=v.verify=v.sign=v.extractPublicKeyFromSecretKey=v.generateKeyPair=v.generateKeyPairFromSeed=v.SEED_LENGTH=v.SECRET_KEY_LENGTH=v.PUBLIC_KEY_LENGTH=v.SIGNATURE_LENGTH=void 0;var k=require_random(),ie=require_sha512$1(),ae=require_wipe();v.SIGNATURE_LENGTH=64,v.PUBLIC_KEY_LENGTH=32,v.SECRET_KEY_LENGTH=64,v.SEED_LENGTH=32;function ce(mn){const Nn=new Float64Array(16);if(mn)for(let In=0;In>16&1),In[pn-1]&=65535;In[15]=bn[15]-32767-(In[14]>>16&1);const vn=In[15]>>16&1;In[14]&=65535,Pr(bn,In,1-vn)}for(let ii=0;ii<16;ii++)mn[2*ii]=bn[ii]&255,mn[2*ii+1]=bn[ii]>>8}function ur(mn,Nn){let In=0;for(let bn=0;bn<32;bn++)In|=mn[bn]^Nn[bn];return(1&In-1>>>8)-1}function jr(mn,Nn){const In=new Uint8Array(32),bn=new Uint8Array(32);return Ar(In,mn),Ar(bn,Nn),ur(In,bn)}function Mr(mn){const Nn=new Uint8Array(32);return Ar(Nn,mn),Nn[0]&1}function Lr(mn,Nn){for(let In=0;In<16;In++)mn[In]=Nn[2*In]+(Nn[2*In+1]<<8);mn[15]&=32767}function Vr(mn,Nn,In){for(let bn=0;bn<16;bn++)mn[bn]=Nn[bn]+In[bn]}function Gr(mn,Nn,In){for(let bn=0;bn<16;bn++)mn[bn]=Nn[bn]-In[bn]}function Ur(mn,Nn,In){let bn,ii,vn=0,pn=0,Sn=0,Qn=0,Jn=0,ui=0,gi=0,di=0,Ci=0,yi=0,li=0,Pi=0,Ai=0,Oi=0,to=0,En=0,Bt=0,Zt=0,Tn=0,ei=0,zn=0,gn=0,xn=0,Hn=0,Ln=0,ti=0,oi=0,Ei=0,Ri=0,Oo=0,Ui=0,io=In[0],So=In[1],$o=In[2],mo=In[3],qo=In[4],wo=In[5],Eo=In[6],jo=In[7],go=In[8],zi=In[9],xo=In[10],Yr=In[11],Wt=In[12],ln=In[13],qr=In[14],dn=In[15];bn=Nn[0],vn+=bn*io,pn+=bn*So,Sn+=bn*$o,Qn+=bn*mo,Jn+=bn*qo,ui+=bn*wo,gi+=bn*Eo,di+=bn*jo,Ci+=bn*go,yi+=bn*zi,li+=bn*xo,Pi+=bn*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),gi=bn-ii*65536,bn=di+ii+65535,ii=Math.floor(bn/65536),di=bn-ii*65536,bn=Ci+ii+65535,ii=Math.floor(bn/65536),Ci=bn-ii*65536,bn=yi+ii+65535,ii=Math.floor(bn/65536),yi=bn-ii*65536,bn=li+ii+65535,ii=Math.floor(bn/65536),li=bn-ii*65536,bn=Pi+ii+65535,ii=Math.floor(bn/65536),Pi=bn-ii*65536,bn=Ai+ii+65535,ii=Math.floor(bn/65536),Ai=bn-ii*65536,bn=Oi+ii+65535,ii=Math.floor(bn/65536),Oi=bn-ii*65536,bn=to+ii+65535,ii=Math.floor(bn/65536),to=bn-ii*65536,bn=En+ii+65535,ii=Math.floor(bn/65536),En=bn-ii*65536,vn+=ii-1+37*(ii-1),ii=1,bn=vn+ii+65535,ii=Math.floor(bn/65536),vn=bn-ii*65536,bn=pn+ii+65535,ii=Math.floor(bn/65536),pn=bn-ii*65536,bn=Sn+ii+65535,ii=Math.floor(bn/65536),Sn=bn-ii*65536,bn=Qn+ii+65535,ii=Math.floor(bn/65536),Qn=bn-ii*65536,bn=Jn+ii+65535,ii=Math.floor(bn/65536),Jn=bn-ii*65536,bn=ui+ii+65535,ii=Math.floor(bn/65536),ui=bn-ii*65536,bn=gi+ii+65535,ii=Math.floor(bn/65536),gi=bn-ii*65536,bn=di+ii+65535,ii=Math.floor(bn/65536),di=bn-ii*65536,bn=Ci+ii+65535,ii=Math.floor(bn/65536),Ci=bn-ii*65536,bn=yi+ii+65535,ii=Math.floor(bn/65536),yi=bn-ii*65536,bn=li+ii+65535,ii=Math.floor(bn/65536),li=bn-ii*65536,bn=Pi+ii+65535,ii=Math.floor(bn/65536),Pi=bn-ii*65536,bn=Ai+ii+65535,ii=Math.floor(bn/65536),Ai=bn-ii*65536,bn=Oi+ii+65535,ii=Math.floor(bn/65536),Oi=bn-ii*65536,bn=to+ii+65535,ii=Math.floor(bn/65536),to=bn-ii*65536,bn=En+ii+65535,ii=Math.floor(bn/65536),En=bn-ii*65536,vn+=ii-1+37*(ii-1),mn[0]=vn,mn[1]=pn,mn[2]=Sn,mn[3]=Qn,mn[4]=Jn,mn[5]=ui,mn[6]=gi,mn[7]=di,mn[8]=Ci,mn[9]=yi,mn[10]=li,mn[11]=Pi,mn[12]=Ai,mn[13]=Oi,mn[14]=to,mn[15]=En}function Qr(mn,Nn){Ur(mn,Nn,Nn)}function hn(mn,Nn){const In=ce();let bn;for(bn=0;bn<16;bn++)In[bn]=Nn[bn];for(bn=253;bn>=0;bn--)Qr(In,In),bn!==2&&bn!==4&&Ur(In,In,Nn);for(bn=0;bn<16;bn++)mn[bn]=In[bn]}function Yt(mn,Nn){const In=ce();let bn;for(bn=0;bn<16;bn++)In[bn]=Nn[bn];for(bn=250;bn>=0;bn--)Qr(In,In),bn!==1&&Ur(In,In,Nn);for(bn=0;bn<16;bn++)mn[bn]=In[bn]}function fn(mn,Nn){const In=ce(),bn=ce(),ii=ce(),vn=ce(),pn=ce(),Sn=ce(),Qn=ce(),Jn=ce(),ui=ce();Gr(In,mn[1],mn[0]),Gr(ui,Nn[1],Nn[0]),Ur(In,In,ui),Vr(bn,mn[0],mn[1]),Vr(ui,Nn[0],Nn[1]),Ur(bn,bn,ui),Ur(ii,mn[3],Nn[3]),Ur(ii,ii,ye),Ur(vn,mn[2],Nn[2]),Vr(vn,vn,vn),Gr(pn,bn,In),Gr(Sn,vn,ii),Vr(Qn,vn,ii),Vr(Jn,bn,In),Ur(mn[0],pn,Sn),Ur(mn[1],Jn,Qn),Ur(mn[2],Qn,Sn),Ur(mn[3],pn,Jn)}function Qt(mn,Nn,In){for(let bn=0;bn<4;bn++)Pr(mn[bn],Nn[bn],In)}function Xt(mn,Nn){const In=ce(),bn=ce(),ii=ce();hn(ii,Nn[2]),Ur(In,Nn[0],ii),Ur(bn,Nn[1],ii),Ar(mn,bn),mn[31]^=Mr(In)<<7}function Kr(mn,Nn,In){Br(mn[0],le),Br(mn[1],ve),Br(mn[2],ve),Br(mn[3],le);for(let bn=255;bn>=0;--bn){const ii=In[bn/8|0]>>(bn&7)&1;Qt(mn,Nn,ii),fn(Nn,mn),fn(mn,mn),Qt(mn,Nn,ii)}}function be(mn,Nn){const In=[ce(),ce(),ce(),ce()];Br(In[0],me),Br(In[1],Ee),Br(In[2],ve),Ur(In[3],me,Ee),Kr(mn,In,Nn)}function kr(mn){if(mn.length!==v.SEED_LENGTH)throw new Error(`ed25519: seed must be ${v.SEED_LENGTH} bytes`);const Nn=(0,ie.hash)(mn);Nn[0]&=248,Nn[31]&=127,Nn[31]|=64;const In=new Uint8Array(32),bn=[ce(),ce(),ce(),ce()];be(bn,Nn),Xt(In,bn);const ii=new Uint8Array(64);return ii.set(mn),ii.set(In,32),{publicKey:In,secretKey:ii}}v.generateKeyPairFromSeed=kr;function xr(mn){const Nn=(0,k.randomBytes)(32,mn),In=kr(Nn);return(0,ae.wipe)(Nn),In}v.generateKeyPair=xr;function Wr(mn){if(mn.length!==v.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${v.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(mn.subarray(32))}v.extractPublicKeyFromSecretKey=Wr;var Jt=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Xr(mn,Nn){let In,bn,ii,vn;for(bn=63;bn>=32;--bn){for(In=0,ii=bn-32,vn=bn-12;ii>4)*Jt[ii],In=Nn[ii]>>8,Nn[ii]&=255;for(ii=0;ii<32;ii++)Nn[ii]-=In*Jt[ii];for(bn=0;bn<32;bn++)Nn[bn+1]+=Nn[bn]>>8,mn[bn]=Nn[bn]&255}function zr(mn){const Nn=new Float64Array(64);for(let In=0;In<64;In++)Nn[In]=mn[In];for(let In=0;In<64;In++)mn[In]=0;Xr(mn,Nn)}function Jr(mn,Nn){const In=new Float64Array(64),bn=[ce(),ce(),ce(),ce()],ii=(0,ie.hash)(mn.subarray(0,32));ii[0]&=248,ii[31]&=127,ii[31]|=64;const vn=new Uint8Array(64);vn.set(ii.subarray(32),32);const pn=new ie.SHA512;pn.update(vn.subarray(32)),pn.update(Nn);const Sn=pn.digest();pn.clean(),zr(Sn),be(bn,Sn),Xt(vn,bn),pn.reset(),pn.update(vn.subarray(0,32)),pn.update(mn.subarray(32)),pn.update(Nn);const Qn=pn.digest();zr(Qn);for(let Jn=0;Jn<32;Jn++)In[Jn]=Sn[Jn];for(let Jn=0;Jn<32;Jn++)for(let ui=0;ui<32;ui++)In[Jn+ui]+=Qn[Jn]*ii[ui];return Xr(vn.subarray(32),In),vn}v.sign=Jr;function Nr(mn,Nn){const In=ce(),bn=ce(),ii=ce(),vn=ce(),pn=ce(),Sn=ce(),Qn=ce();return Br(mn[2],ve),Lr(mn[1],Nn),Qr(ii,mn[1]),Ur(vn,ii,pe),Gr(ii,ii,mn[2]),Vr(vn,mn[2],vn),Qr(pn,vn),Qr(Sn,pn),Ur(Qn,Sn,pn),Ur(In,Qn,ii),Ur(In,In,vn),Yt(In,In),Ur(In,In,ii),Ur(In,In,vn),Ur(In,In,vn),Ur(mn[0],In,vn),Qr(bn,mn[0]),Ur(bn,bn,vn),jr(bn,ii)&&Ur(mn[0],mn[0],cr),Qr(bn,mn[0]),Ur(bn,bn,vn),jr(bn,ii)?-1:(Mr(mn[0])===Nn[31]>>7&&Gr(mn[0],le,mn[0]),Ur(mn[3],mn[0],mn[1]),0)}function Hr(mn,Nn,In){const bn=new Uint8Array(32),ii=[ce(),ce(),ce(),ce()],vn=[ce(),ce(),ce(),ce()];if(In.length!==v.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${v.SIGNATURE_LENGTH} bytes`);if(Nr(vn,mn))return!1;const pn=new ie.SHA512;pn.update(In.subarray(0,32)),pn.update(mn),pn.update(Nn);const Sn=pn.digest();return zr(Sn),Kr(ii,vn,Sn),be(vn,In.subarray(32)),fn(ii,vn),Xt(bn,ii),!ur(In,bn)}v.verify=Hr;function On(mn){let Nn=[ce(),ce(),ce(),ce()];if(Nr(Nn,mn))throw new Error("Ed25519: invalid public key");let In=ce(),bn=ce(),ii=Nn[1];Vr(In,ve,ii),Gr(bn,ve,ii),hn(bn,bn),Ur(In,In,bn);let vn=new Uint8Array(32);return Ar(vn,In),vn}v.convertPublicKeyToX25519=On;function Gn(mn){const Nn=(0,ie.hash)(mn.subarray(0,32));Nn[0]&=248,Nn[31]&=127,Nn[31]|=64;const In=new Uint8Array(Nn.subarray(0,32));return(0,ae.wipe)(Nn),In}v.convertSecretKeyToX25519=Gn}}),require_chacha=__commonJS$1({"node_modules/@stablelib/chacha/lib/chacha.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_binary(),ie=require_wipe(),ae=20;function ce(pe,ye,me){for(var Ee=1634760805,cr=857760878,Br=2036477234,$r=1797285236,Pr=me[3]<<24|me[2]<<16|me[1]<<8|me[0],Ar=me[7]<<24|me[6]<<16|me[5]<<8|me[4],ur=me[11]<<24|me[10]<<16|me[9]<<8|me[8],jr=me[15]<<24|me[14]<<16|me[13]<<8|me[12],Mr=me[19]<<24|me[18]<<16|me[17]<<8|me[16],Lr=me[23]<<24|me[22]<<16|me[21]<<8|me[20],Vr=me[27]<<24|me[26]<<16|me[25]<<8|me[24],Gr=me[31]<<24|me[30]<<16|me[29]<<8|me[28],Ur=ye[3]<<24|ye[2]<<16|ye[1]<<8|ye[0],Qr=ye[7]<<24|ye[6]<<16|ye[5]<<8|ye[4],hn=ye[11]<<24|ye[10]<<16|ye[9]<<8|ye[8],Yt=ye[15]<<24|ye[14]<<16|ye[13]<<8|ye[12],fn=Ee,Qt=cr,Xt=Br,Kr=$r,be=Pr,kr=Ar,xr=ur,Wr=jr,Jt=Mr,Xr=Lr,zr=Vr,Jr=Gr,Nr=Ur,Hr=Qr,On=hn,Gn=Yt,mn=0;mn>>32-16|Nr<<16,Jt=Jt+Nr|0,be^=Jt,be=be>>>32-12|be<<12,Qt=Qt+kr|0,Hr^=Qt,Hr=Hr>>>32-16|Hr<<16,Xr=Xr+Hr|0,kr^=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xr^=Jr,xr=xr>>>32-7|xr<<7,fn=fn+kr|0,Gn^=fn,Gn=Gn>>>32-8|Gn<<8,zr=zr+Gn|0,kr^=zr,kr=kr>>>32-7|kr<<7;k.writeUint32LE(fn+Ee|0,pe,0),k.writeUint32LE(Qt+cr|0,pe,4),k.writeUint32LE(Xt+Br|0,pe,8),k.writeUint32LE(Kr+$r|0,pe,12),k.writeUint32LE(be+Pr|0,pe,16),k.writeUint32LE(kr+Ar|0,pe,20),k.writeUint32LE(xr+ur|0,pe,24),k.writeUint32LE(Wr+jr|0,pe,28),k.writeUint32LE(Jt+Mr|0,pe,32),k.writeUint32LE(Xr+Lr|0,pe,36),k.writeUint32LE(zr+Vr|0,pe,40),k.writeUint32LE(Jr+Gr|0,pe,44),k.writeUint32LE(Nr+Ur|0,pe,48),k.writeUint32LE(Hr+Qr|0,pe,52),k.writeUint32LE(On+hn|0,pe,56),k.writeUint32LE(Gn+Yt|0,pe,60)}function fe(pe,ye,me,Ee,cr){if(cr===void 0&&(cr=0),pe.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(Ee.length>>=8,ye++;if(Ee>0)throw new Error("ChaCha: counter overflow")}}}),require_constant_time=__commonJS$1({"node_modules/@stablelib/constant-time/lib/constant-time.js"(v){Object.defineProperty(v,"__esModule",{value:!0});function k(fe,le,ve){return~(fe-1)&le|fe-1&ve}v.select=k;function ie(fe,le){return(fe|0)-(le|0)-1>>>31&1}v.lessOrEqual=ie;function ae(fe,le){if(fe.length!==le.length)return 0;for(var ve=0,pe=0;pe>>8}v.compare=ae;function ce(fe,le){return fe.length===0||le.length===0?!1:ae(fe,le)!==0}v.equal=ce}}),require_poly1305=__commonJS$1({"node_modules/@stablelib/poly1305/lib/poly1305.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_constant_time(),ie=require_wipe();v.DIGEST_LENGTH=16;var ae=function(){function le(ve){this.digestLength=v.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var pe=ve[0]|ve[1]<<8;this._r[0]=pe&8191;var ye=ve[2]|ve[3]<<8;this._r[1]=(pe>>>13|ye<<3)&8191;var me=ve[4]|ve[5]<<8;this._r[2]=(ye>>>10|me<<6)&7939;var Ee=ve[6]|ve[7]<<8;this._r[3]=(me>>>7|Ee<<9)&8191;var cr=ve[8]|ve[9]<<8;this._r[4]=(Ee>>>4|cr<<12)&255,this._r[5]=cr>>>1&8190;var Br=ve[10]|ve[11]<<8;this._r[6]=(cr>>>14|Br<<2)&8191;var $r=ve[12]|ve[13]<<8;this._r[7]=(Br>>>11|$r<<5)&8065;var Pr=ve[14]|ve[15]<<8;this._r[8]=($r>>>8|Pr<<8)&8191,this._r[9]=Pr>>>5&127,this._pad[0]=ve[16]|ve[17]<<8,this._pad[1]=ve[18]|ve[19]<<8,this._pad[2]=ve[20]|ve[21]<<8,this._pad[3]=ve[22]|ve[23]<<8,this._pad[4]=ve[24]|ve[25]<<8,this._pad[5]=ve[26]|ve[27]<<8,this._pad[6]=ve[28]|ve[29]<<8,this._pad[7]=ve[30]|ve[31]<<8}return le.prototype._blocks=function(ve,pe,ye){for(var me=this._fin?0:2048,Ee=this._h[0],cr=this._h[1],Br=this._h[2],$r=this._h[3],Pr=this._h[4],Ar=this._h[5],ur=this._h[6],jr=this._h[7],Mr=this._h[8],Lr=this._h[9],Vr=this._r[0],Gr=this._r[1],Ur=this._r[2],Qr=this._r[3],hn=this._r[4],Yt=this._r[5],fn=this._r[6],Qt=this._r[7],Xt=this._r[8],Kr=this._r[9];ye>=16;){var be=ve[pe+0]|ve[pe+1]<<8;Ee+=be&8191;var kr=ve[pe+2]|ve[pe+3]<<8;cr+=(be>>>13|kr<<3)&8191;var xr=ve[pe+4]|ve[pe+5]<<8;Br+=(kr>>>10|xr<<6)&8191;var Wr=ve[pe+6]|ve[pe+7]<<8;$r+=(xr>>>7|Wr<<9)&8191;var Jt=ve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Pr=Nn,Ar=In,ur=bn,jr=ii,Mr=vn,Lr=pn,pe+=16,ye-=16}this._h[0]=Ee,this._h[1]=cr,this._h[2]=Br,this._h[3]=$r,this._h[4]=Pr,this._h[5]=Ar,this._h[6]=ur,this._h[7]=jr,this._h[8]=Mr,this._h[9]=Lr},le.prototype.finish=function(ve,pe){pe===void 0&&(pe=0);var ye=new Uint16Array(10),me,Ee,cr,Br;if(this._leftover){for(Br=this._leftover,this._buffer[Br++]=1;Br<16;Br++)this._buffer[Br]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(me=this._h[1]>>>13,this._h[1]&=8191,Br=2;Br<10;Br++)this._h[Br]+=me,me=this._h[Br]>>>13,this._h[Br]&=8191;for(this._h[0]+=me*5,me=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=me,me=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=me,ye[0]=this._h[0]+5,me=ye[0]>>>13,ye[0]&=8191,Br=1;Br<10;Br++)ye[Br]=this._h[Br]+me,me=ye[Br]>>>13,ye[Br]&=8191;for(ye[9]-=1<<13,Ee=(me^1)-1,Br=0;Br<10;Br++)ye[Br]&=Ee;for(Ee=~Ee,Br=0;Br<10;Br++)this._h[Br]=this._h[Br]&Ee|ye[Br];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,cr=this._h[0]+this._pad[0],this._h[0]=cr&65535,Br=1;Br<8;Br++)cr=(this._h[Br]+this._pad[Br]|0)+(cr>>>16)|0,this._h[Br]=cr&65535;return ve[pe+0]=this._h[0]>>>0,ve[pe+1]=this._h[0]>>>8,ve[pe+2]=this._h[1]>>>0,ve[pe+3]=this._h[1]>>>8,ve[pe+4]=this._h[2]>>>0,ve[pe+5]=this._h[2]>>>8,ve[pe+6]=this._h[3]>>>0,ve[pe+7]=this._h[3]>>>8,ve[pe+8]=this._h[4]>>>0,ve[pe+9]=this._h[4]>>>8,ve[pe+10]=this._h[5]>>>0,ve[pe+11]=this._h[5]>>>8,ve[pe+12]=this._h[6]>>>0,ve[pe+13]=this._h[6]>>>8,ve[pe+14]=this._h[7]>>>0,ve[pe+15]=this._h[7]>>>8,this._finished=!0,this},le.prototype.update=function(ve){var pe=0,ye=ve.length,me;if(this._leftover){me=16-this._leftover,me>ye&&(me=ye);for(var Ee=0;Ee=16&&(me=ye-ye%16,this._blocks(ve,pe,me),pe+=me,ye-=me),ye){for(var Ee=0;Ee16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var Br=new Uint8Array(16);Br.set(ye,Br.length-ye.length);var $r=new Uint8Array(32);k.stream(this._key,Br,$r,4);var Pr=me.length+this.tagLength,Ar;if(cr){if(cr.length!==Pr)throw new Error("ChaCha20Poly1305: incorrect destination length");Ar=cr}else Ar=new Uint8Array(Pr);return k.streamXOR(this._key,Br,me,Ar,4),this._authenticate(Ar.subarray(Ar.length-this.tagLength,Ar.length),$r,Ar.subarray(0,Ar.length-this.tagLength),Ee),ae.wipe(Br),Ar},pe.prototype.open=function(ye,me,Ee,cr){if(ye.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(me.length0&&Br.update(le.subarray(cr.length%16))),Br.update(Ee),Ee.length%16>0&&Br.update(le.subarray(Ee.length%16));var $r=new Uint8Array(8);cr&&ce.writeUint64LE(cr.length,$r),Br.update($r),ce.writeUint64LE(Ee.length,$r),Br.update($r);for(var Pr=Br.digest(),Ar=0;Arthis.blockSize?this._inner.update(pe).finish(ye).clean():ye.set(pe);for(var me=0;me1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},ce.prototype.expand=function(fe){for(var le=new Uint8Array(fe),ve=0;ve0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=pe[me++],ye--;this._bufferLength===this.blockSize&&(fe(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(ye>=this.blockSize&&(me=fe(this._temp,this._state,pe,me,ye),ye%=this.blockSize);ye>0;)this._buffer[this._bufferLength++]=pe[me++],ye--;return this},ve.prototype.finish=function(pe){if(!this._finished){var ye=this._bytesHashed,me=this._bufferLength,Ee=ye/536870912|0,cr=ye<<3,Br=ye%64<56?64:128;this._buffer[me]=128;for(var $r=me+1;$r0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},ve.prototype.restoreState=function(pe){return this._state.set(pe.state),this._bufferLength=pe.bufferLength,pe.buffer&&this._buffer.set(pe.buffer),this._bytesHashed=pe.bytesHashed,this._finished=!1,this},ve.prototype.cleanSavedState=function(pe){ie.wipe(pe.state),pe.buffer&&ie.wipe(pe.buffer),pe.bufferLength=0,pe.bytesHashed=0},ve}();v.SHA256=ae;var ce=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function fe(ve,pe,ye,me,Ee){for(;Ee>=64;){for(var cr=pe[0],Br=pe[1],$r=pe[2],Pr=pe[3],Ar=pe[4],ur=pe[5],jr=pe[6],Mr=pe[7],Lr=0;Lr<16;Lr++){var Vr=me+Lr*4;ve[Lr]=k.readUint32BE(ye,Vr)}for(var Lr=16;Lr<64;Lr++){var Gr=ve[Lr-2],Ur=(Gr>>>17|Gr<<32-17)^(Gr>>>19|Gr<<32-19)^Gr>>>10;Gr=ve[Lr-15];var Qr=(Gr>>>7|Gr<<32-7)^(Gr>>>18|Gr<<32-18)^Gr>>>3;ve[Lr]=(Ur+ve[Lr-7]|0)+(Qr+ve[Lr-16]|0)}for(var Lr=0;Lr<64;Lr++){var Ur=(((Ar>>>6|Ar<<26)^(Ar>>>11|Ar<<21)^(Ar>>>25|Ar<<7))+(Ar&ur^~Ar&jr)|0)+(Mr+(ce[Lr]+ve[Lr]|0)|0)|0,Qr=((cr>>>2|cr<<32-2)^(cr>>>13|cr<<32-13)^(cr>>>22|cr<<32-22))+(cr&Br^cr&$r^Br&$r)|0;Mr=jr,jr=ur,ur=Ar,Ar=Pr+Ur|0,Pr=$r,$r=Br,Br=cr,cr=Ur+Qr|0}pe[0]+=cr,pe[1]+=Br,pe[2]+=$r,pe[3]+=Pr,pe[4]+=Ar,pe[5]+=ur,pe[6]+=jr,pe[7]+=Mr,me+=64,Ee-=64}return me}function le(ve){var pe=new ae;pe.update(ve);var ye=pe.digest();return pe.clean(),ye}v.hash=le}}),require_x25519=__commonJS$1({"node_modules/@stablelib/x25519/lib/x25519.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.sharedKey=v.generateKeyPair=v.generateKeyPairFromSeed=v.scalarMultBase=v.scalarMult=v.SHARED_KEY_LENGTH=v.SECRET_KEY_LENGTH=v.PUBLIC_KEY_LENGTH=void 0;var k=require_random(),ie=require_wipe();v.PUBLIC_KEY_LENGTH=32,v.SECRET_KEY_LENGTH=32,v.SHARED_KEY_LENGTH=32;function ae(Lr){const Vr=new Float64Array(16);if(Lr)for(let Gr=0;Gr>16&1),Gr[Yt-1]&=65535;Gr[15]=Ur[15]-32767-(Gr[14]>>16&1);const hn=Gr[15]>>16&1;Gr[14]&=65535,ve(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or(Ur/65536),Qt=Ur-Qr*65536,Ur=Xt+Qr+65535,Qr=Math.floor(Ur/65536),Xt=Ur-Qr*65536,Ur=Kr+Qr+65535,Qr=Math.floor(Ur/65536),Kr=Ur-Qr*65536,Ur=be+Qr+65535,Qr=Math.floor(Ur/65536),be=Ur-Qr*65536,Ur=kr+Qr+65535,Qr=Math.floor(Ur/65536),kr=Ur-Qr*65536,Ur=xr+Qr+65535,Qr=Math.floor(Ur/65536),xr=Ur-Qr*65536,Ur=Wr+Qr+65535,Qr=Math.floor(Ur/65536),Wr=Ur-Qr*65536,Ur=Jt+Qr+65535,Qr=Math.floor(Ur/65536),Jt=Ur-Qr*65536,Ur=Xr+Qr+65535,Qr=Math.floor(Ur/65536),Xr=Ur-Qr*65536,Ur=zr+Qr+65535,Qr=Math.floor(Ur/65536),zr=Ur-Qr*65536,Ur=Jr+Qr+65535,Qr=Math.floor(Ur/65536),Jr=Ur-Qr*65536,Ur=Nr+Qr+65535,Qr=Math.floor(Ur/65536),Nr=Ur-Qr*65536,Ur=Hr+Qr+65535,Qr=Math.floor(Ur/65536),Hr=Ur-Qr*65536,hn+=Qr-1+37*(Qr-1),Qr=1,Ur=hn+Qr+65535,Qr=Math.floor(Ur/65536),hn=Ur-Qr*65536,Ur=Yt+Qr+65535,Qr=Math.floor(Ur/65536),Yt=Ur-Qr*65536,Ur=fn+Qr+65535,Qr=Math.floor(Ur/65536),fn=Ur-Qr*65536,Ur=Qt+Qr+65535,Qr=Math.floor(Ur/65536),Qt=Ur-Qr*65536,Ur=Xt+Qr+65535,Qr=Math.floor(Ur/65536),Xt=Ur-Qr*65536,Ur=Kr+Qr+65535,Qr=Math.floor(Ur/65536),Kr=Ur-Qr*65536,Ur=be+Qr+65535,Qr=Math.floor(Ur/65536),be=Ur-Qr*65536,Ur=kr+Qr+65535,Qr=Math.floor(Ur/65536),kr=Ur-Qr*65536,Ur=xr+Qr+65535,Qr=Math.floor(Ur/65536),xr=Ur-Qr*65536,Ur=Wr+Qr+65535,Qr=Math.floor(Ur/65536),Wr=Ur-Qr*65536,Ur=Jt+Qr+65535,Qr=Math.floor(Ur/65536),Jt=Ur-Qr*65536,Ur=Xr+Qr+65535,Qr=Math.floor(Ur/65536),Xr=Ur-Qr*65536,Ur=zr+Qr+65535,Qr=Math.floor(Ur/65536),zr=Ur-Qr*65536,Ur=Jr+Qr+65535,Qr=Math.floor(Ur/65536),Jr=Ur-Qr*65536,Ur=Nr+Qr+65535,Qr=Math.floor(Ur/65536),Nr=Ur-Qr*65536,Ur=Hr+Qr+65535,Qr=Math.floor(Ur/65536),Hr=Ur-Qr*65536,hn+=Qr-1+37*(Qr-1),Lr[0]=hn,Lr[1]=Yt,Lr[2]=fn,Lr[3]=Qt,Lr[4]=Xt,Lr[5]=Kr,Lr[6]=be,Lr[7]=kr,Lr[8]=xr,Lr[9]=Wr,Lr[10]=Jt,Lr[11]=Xr,Lr[12]=zr,Lr[13]=Jr,Lr[14]=Nr,Lr[15]=Hr}function Br(Lr,Vr){cr(Lr,Vr,Vr)}function $r(Lr,Vr){const Gr=ae();for(let Ur=0;Ur<16;Ur++)Gr[Ur]=Vr[Ur];for(let Ur=253;Ur>=0;Ur--)Br(Gr,Gr),Ur!==2&&Ur!==4&&cr(Gr,Gr,Vr);for(let Ur=0;Ur<16;Ur++)Lr[Ur]=Gr[Ur]}function Pr(Lr,Vr){const Gr=new Uint8Array(32),Ur=new Float64Array(80),Qr=ae(),hn=ae(),Yt=ae(),fn=ae(),Qt=ae(),Xt=ae();for(let xr=0;xr<31;xr++)Gr[xr]=Lr[xr];Gr[31]=Lr[31]&127|64,Gr[0]&=248,ye(Ur,Vr);for(let xr=0;xr<16;xr++)hn[xr]=Ur[xr];Qr[0]=fn[0]=1;for(let xr=254;xr>=0;--xr){const Wr=Gr[xr>>>3]>>>(xr&7)&1;ve(Qr,hn,Wr),ve(Yt,fn,Wr),me(Qt,Qr,Yt),Ee(Qr,Qr,Yt),me(Yt,hn,fn),Ee(hn,hn,fn),Br(fn,Qt),Br(Xt,Qr),cr(Qr,Yt,Qr),cr(Yt,hn,Qt),me(Qt,Qr,Yt),Ee(Qr,Qr,Yt),Br(hn,Qr),Ee(Yt,fn,Xt),cr(Qr,Yt,fe),me(Qr,Qr,fn),cr(Yt,Yt,Qr),cr(Qr,fn,Xt),cr(fn,hn,Ur),Br(hn,Qt),ve(Qr,hn,Wr),ve(Yt,fn,Wr)}for(let xr=0;xr<16;xr++)Ur[xr+16]=Qr[xr],Ur[xr+32]=Yt[xr],Ur[xr+48]=hn[xr],Ur[xr+64]=fn[xr];const Kr=Ur.subarray(32),be=Ur.subarray(16);$r(Kr,Kr),cr(be,be,Kr);const kr=new Uint8Array(32);return pe(kr,be),kr}v.scalarMult=Pr;function Ar(Lr){return Pr(Lr,ce)}v.scalarMultBase=Ar;function ur(Lr){if(Lr.length!==v.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${v.SECRET_KEY_LENGTH} bytes`);const Vr=new Uint8Array(Lr);return{publicKey:Ar(Vr),secretKey:Vr}}v.generateKeyPairFromSeed=ur;function jr(Lr){const Vr=(0,k.randomBytes)(32,Lr),Gr=ur(Vr);return(0,ie.wipe)(Vr),Gr}v.generateKeyPair=jr;function Mr(Lr,Vr,Gr=!1){if(Lr.length!==v.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(Vr.length!==v.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const Ur=Pr(Lr,Vr);if(Gr){let Qr=0;for(let hn=0;hn-1){const Mr=ur.getAttribute("href");if(Mr)if(Mr.toLowerCase().indexOf("https:")===-1&&Mr.toLowerCase().indexOf("http:")===-1&&Mr.indexOf("//")!==0){let Lr=ce.protocol+"//"+ce.host;if(Mr.indexOf("/")===0)Lr+=Mr;else{const Vr=ce.pathname.split("/");Vr.pop(),Lr+=Vr.join("/")+"/"+Mr}Pr.push(Lr)}else if(Mr.indexOf("//")===0){const Lr=ce.protocol+Mr;Pr.push(Lr)}else Pr.push(Mr)}}return Pr}function le(...$r){const Pr=ae.getElementsByTagName("meta");for(let Ar=0;Arur.getAttribute(Mr)).filter(Mr=>Mr?$r.includes(Mr):!1);if(jr.length&&jr){const Mr=ur.getAttribute("content");if(Mr)return Mr}}return""}function ve(){let $r=le("name","og:site_name","og:title","twitter:title");return $r||($r=ae.title),$r}function pe(){return le("description","og:description","twitter:description","keywords")}const ye=ve(),me=pe(),Ee=ce.origin,cr=fe();return{description:me,url:Ee,icons:cr,name:ye}}v.getWindowMetadata=ie}}),require_decode_uri_component=__commonJS$1({"node_modules/@walletconnect/utils/node_modules/decode-uri-component/index.js"(v,k){var ie="%[a-f0-9]{2}",ae=new RegExp("("+ie+")|([^%]+?)","gi"),ce=new RegExp("("+ie+")+","gi");function fe(pe,ye){try{return[decodeURIComponent(pe.join(""))]}catch{}if(pe.length===1)return pe;ye=ye||1;var me=pe.slice(0,ye),Ee=pe.slice(ye);return Array.prototype.concat.call([],fe(me),fe(Ee))}function le(pe){try{return decodeURIComponent(pe)}catch{for(var ye=pe.match(ae)||[],me=1;mejr==null,le=Symbol("encodeFragmentIdentifier");function ve(jr){switch(jr.arrayFormat){case"index":return Mr=>(Lr,Vr)=>{const Gr=Lr.length;return Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,[me(Mr,jr),"[",Gr,"]"].join("")]:[...Lr,[me(Mr,jr),"[",me(Gr,jr),"]=",me(Vr,jr)].join("")]};case"bracket":return Mr=>(Lr,Vr)=>Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,[me(Mr,jr),"[]"].join("")]:[...Lr,[me(Mr,jr),"[]=",me(Vr,jr)].join("")];case"colon-list-separator":return Mr=>(Lr,Vr)=>Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,[me(Mr,jr),":list="].join("")]:[...Lr,[me(Mr,jr),":list=",me(Vr,jr)].join("")];case"comma":case"separator":case"bracket-separator":{const Mr=jr.arrayFormat==="bracket-separator"?"[]=":"=";return Lr=>(Vr,Gr)=>Gr===void 0||jr.skipNull&&Gr===null||jr.skipEmptyString&&Gr===""?Vr:(Gr=Gr===null?"":Gr,Vr.length===0?[[me(Lr,jr),Mr,me(Gr,jr)].join("")]:[[Vr,me(Gr,jr)].join(jr.arrayFormatSeparator)])}default:return Mr=>(Lr,Vr)=>Vr===void 0||jr.skipNull&&Vr===null||jr.skipEmptyString&&Vr===""?Lr:Vr===null?[...Lr,me(Mr,jr)]:[...Lr,[me(Mr,jr),"=",me(Vr,jr)].join("")]}}function pe(jr){let Mr;switch(jr.arrayFormat){case"index":return(Lr,Vr,Gr)=>{if(Mr=/\[(\d*)\]$/.exec(Lr),Lr=Lr.replace(/\[\d*\]$/,""),!Mr){Gr[Lr]=Vr;return}Gr[Lr]===void 0&&(Gr[Lr]={}),Gr[Lr][Mr[1]]=Vr};case"bracket":return(Lr,Vr,Gr)=>{if(Mr=/(\[\])$/.exec(Lr),Lr=Lr.replace(/\[\]$/,""),!Mr){Gr[Lr]=Vr;return}if(Gr[Lr]===void 0){Gr[Lr]=[Vr];return}Gr[Lr]=[].concat(Gr[Lr],Vr)};case"colon-list-separator":return(Lr,Vr,Gr)=>{if(Mr=/(:list)$/.exec(Lr),Lr=Lr.replace(/:list$/,""),!Mr){Gr[Lr]=Vr;return}if(Gr[Lr]===void 0){Gr[Lr]=[Vr];return}Gr[Lr]=[].concat(Gr[Lr],Vr)};case"comma":case"separator":return(Lr,Vr,Gr)=>{const Ur=typeof Vr=="string"&&Vr.includes(jr.arrayFormatSeparator),Qr=typeof Vr=="string"&&!Ur&&Ee(Vr,jr).includes(jr.arrayFormatSeparator);Vr=Qr?Ee(Vr,jr):Vr;const hn=Ur||Qr?Vr.split(jr.arrayFormatSeparator).map(Yt=>Ee(Yt,jr)):Vr===null?Vr:Ee(Vr,jr);Gr[Lr]=hn};case"bracket-separator":return(Lr,Vr,Gr)=>{const Ur=/(\[\])$/.test(Lr);if(Lr=Lr.replace(/\[\]$/,""),!Ur){Gr[Lr]=Vr&&Ee(Vr,jr);return}const Qr=Vr===null?[]:Vr.split(jr.arrayFormatSeparator).map(hn=>Ee(hn,jr));if(Gr[Lr]===void 0){Gr[Lr]=Qr;return}Gr[Lr]=[].concat(Gr[Lr],Qr)};default:return(Lr,Vr,Gr)=>{if(Gr[Lr]===void 0){Gr[Lr]=Vr;return}Gr[Lr]=[].concat(Gr[Lr],Vr)}}}function ye(jr){if(typeof jr!="string"||jr.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function me(jr,Mr){return Mr.encode?Mr.strict?k(jr):encodeURIComponent(jr):jr}function Ee(jr,Mr){return Mr.decode?ie(jr):jr}function cr(jr){return Array.isArray(jr)?jr.sort():typeof jr=="object"?cr(Object.keys(jr)).sort((Mr,Lr)=>Number(Mr)-Number(Lr)).map(Mr=>jr[Mr]):jr}function Br(jr){const Mr=jr.indexOf("#");return Mr!==-1&&(jr=jr.slice(0,Mr)),jr}function $r(jr){let Mr="";const Lr=jr.indexOf("#");return Lr!==-1&&(Mr=jr.slice(Lr)),Mr}function Pr(jr){jr=Br(jr);const Mr=jr.indexOf("?");return Mr===-1?"":jr.slice(Mr+1)}function Ar(jr,Mr){return Mr.parseNumbers&&!Number.isNaN(Number(jr))&&typeof jr=="string"&&jr.trim()!==""?jr=Number(jr):Mr.parseBooleans&&jr!==null&&(jr.toLowerCase()==="true"||jr.toLowerCase()==="false")&&(jr=jr.toLowerCase()==="true"),jr}function ur(jr,Mr){Mr=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},Mr),ye(Mr.arrayFormatSeparator);const Lr=pe(Mr),Vr=Object.create(null);if(typeof jr!="string"||(jr=jr.trim().replace(/^[?#&]/,""),!jr))return Vr;for(const Gr of jr.split("&")){if(Gr==="")continue;let[Ur,Qr]=ae(Mr.decode?Gr.replace(/\+/g," "):Gr,"=");Qr=Qr===void 0?null:["comma","separator","bracket-separator"].includes(Mr.arrayFormat)?Qr:Ee(Qr,Mr),Lr(Ee(Ur,Mr),Qr,Vr)}for(const Gr of Object.keys(Vr)){const Ur=Vr[Gr];if(typeof Ur=="object"&&Ur!==null)for(const Qr of Object.keys(Ur))Ur[Qr]=Ar(Ur[Qr],Mr);else Vr[Gr]=Ar(Ur,Mr)}return Mr.sort===!1?Vr:(Mr.sort===!0?Object.keys(Vr).sort():Object.keys(Vr).sort(Mr.sort)).reduce((Gr,Ur)=>{const Qr=Vr[Ur];return Boolean(Qr)&&typeof Qr=="object"&&!Array.isArray(Qr)?Gr[Ur]=cr(Qr):Gr[Ur]=Qr,Gr},Object.create(null))}v.extract=Pr,v.parse=ur,v.stringify=(jr,Mr)=>{if(!jr)return"";Mr=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},Mr),ye(Mr.arrayFormatSeparator);const Lr=Qr=>Mr.skipNull&&fe(jr[Qr])||Mr.skipEmptyString&&jr[Qr]==="",Vr=ve(Mr),Gr={};for(const Qr of Object.keys(jr))Lr(Qr)||(Gr[Qr]=jr[Qr]);const Ur=Object.keys(Gr);return Mr.sort!==!1&&Ur.sort(Mr.sort),Ur.map(Qr=>{const hn=jr[Qr];return hn===void 0?"":hn===null?me(Qr,Mr):Array.isArray(hn)?hn.length===0&&Mr.arrayFormat==="bracket-separator"?me(Qr,Mr)+"[]":hn.reduce(Vr(Qr),[]).join("&"):me(Qr,Mr)+"="+me(hn,Mr)}).filter(Qr=>Qr.length>0).join("&")},v.parseUrl=(jr,Mr)=>{Mr=Object.assign({decode:!0},Mr);const[Lr,Vr]=ae(jr,"#");return Object.assign({url:Lr.split("?")[0]||"",query:ur(Pr(jr),Mr)},Mr&&Mr.parseFragmentIdentifier&&Vr?{fragmentIdentifier:Ee(Vr,Mr)}:{})},v.stringifyUrl=(jr,Mr)=>{Mr=Object.assign({encode:!0,strict:!0,[le]:!0},Mr);const Lr=Br(jr.url).split("?")[0]||"",Vr=v.extract(jr.url),Gr=v.parse(Vr,{sort:!1}),Ur=Object.assign(Gr,jr.query);let Qr=v.stringify(Ur,Mr);Qr&&(Qr=`?${Qr}`);let hn=$r(jr.url);return jr.fragmentIdentifier&&(hn=`#${Mr[le]?me(jr.fragmentIdentifier,Mr):jr.fragmentIdentifier}`),`${Lr}${Qr}${hn}`},v.pick=(jr,Mr,Lr)=>{Lr=Object.assign({parseFragmentIdentifier:!0,[le]:!1},Lr);const{url:Vr,query:Gr,fragmentIdentifier:Ur}=v.parseUrl(jr,Lr);return v.stringifyUrl({url:Vr,query:ce(Gr,Mr),fragmentIdentifier:Ur},Lr)},v.exclude=(jr,Mr,Lr)=>{const Vr=Array.isArray(Mr)?Gr=>!Mr.includes(Gr):(Gr,Ur)=>!Mr(Gr,Ur);return v.pick(jr,Vr,Lr)}}}),require_crypto2=__commonJS$1({"node_modules/@walletconnect/environment/dist/cjs/crypto.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.isBrowserCryptoAvailable=v.getSubtleCrypto=v.getBrowerCrypto=void 0;function k(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}v.getBrowerCrypto=k;function ie(){const ce=k();return ce.subtle||ce.webkitSubtle}v.getSubtleCrypto=ie;function ae(){return!!k()&&!!ie()}v.isBrowserCryptoAvailable=ae}}),require_env=__commonJS$1({"node_modules/@walletconnect/environment/dist/cjs/env.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.isBrowser=v.isNode=v.isReactNative=void 0;function k(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}v.isReactNative=k;function ie(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}v.isNode=ie;function ae(){return!k()&&!ie()}v.isBrowser=ae}}),require_cjs7=__commonJS$1({"node_modules/@walletconnect/environment/dist/cjs/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0});var k=require_tslib();k.__exportStar(require_crypto2(),v),k.__exportStar(require_env(),v)}}),require_browser4$1=__commonJS$1({"node_modules/@walletconnect/jsonrpc-ws-connection/node_modules/ws/browser.js"(v,k){k.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}}),require_lodash=__commonJS$1({"node_modules/lodash.isequal/index.js"(v,k){var ie=200,ae="__lodash_hash_undefined__",ce=1,fe=2,le=9007199254740991,ve="[object Arguments]",pe="[object Array]",ye="[object AsyncFunction]",me="[object Boolean]",Ee="[object Date]",cr="[object Error]",Br="[object Function]",$r="[object GeneratorFunction]",Pr="[object Map]",Ar="[object Number]",ur="[object Null]",jr="[object Object]",Mr="[object Promise]",Lr="[object Proxy]",Vr="[object RegExp]",Gr="[object Set]",Ur="[object String]",Qr="[object Symbol]",hn="[object Undefined]",Yt="[object WeakMap]",fn="[object ArrayBuffer]",Qt="[object DataView]",Xt="[object Float32Array]",Kr="[object Float64Array]",be="[object Int8Array]",kr="[object Int16Array]",xr="[object Int32Array]",Wr="[object Uint8Array]",Jt="[object Uint8ClampedArray]",Xr="[object Uint16Array]",zr="[object Uint32Array]",Jr=/[\\^$.*+?()[\]{}|]/g,Nr=/^\[object .+?Constructor\]$/,Hr=/^(?:0|[1-9]\d*)$/,On={};On[Xt]=On[Kr]=On[be]=On[kr]=On[xr]=On[Wr]=On[Jt]=On[Xr]=On[zr]=!0,On[ve]=On[pe]=On[fn]=On[me]=On[Qt]=On[Ee]=On[cr]=On[Br]=On[Pr]=On[Ar]=On[jr]=On[Vr]=On[Gr]=On[Ur]=On[Yt]=!1;var Gn=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,mn=typeof self=="object"&&self&&self.Object===Object&&self,Nn=Gn||mn||Function("return this")(),In=typeof v=="object"&&v&&!v.nodeType&&v,bn=In&&typeof k=="object"&&k&&!k.nodeType&&k,ii=bn&&bn.exports===In,vn=ii&&Gn.process,pn=function(){try{return vn&&vn.binding&&vn.binding("util")}catch{}}(),Sn=pn&&pn.isTypedArray;function Qn(wi,ao){for(var Po=-1,Yo=wi==null?0:wi.length,va=0,sa=[];++Po-1}function Ni(wi,ao){var Po=this.__data__,Yo=Ti(Po,wi);return Yo<0?(++this.size,Po.push([wi,ao])):Po[Yo][1]=ao,this}bi.prototype.clear=_i,bi.prototype.delete=fi,bi.prototype.get=yo,bi.prototype.has=Di,bi.prototype.set=Ni;function oo(wi){var ao=-1,Po=wi==null?0:wi.length;for(this.clear();++aoSa))return!1;var da=sa.get(wi);if(da&&sa.get(ao))return da==ao;var Ba=-1,Ka=!0,Ca=Po&fe?new so:void 0;for(sa.set(wi,ao),sa.set(ao,wi);++Ba-1&&wi%1==0&&wi-1&&wi%1==0&&wi<=le}function ll(wi){var ao=typeof wi;return wi!=null&&(ao=="object"||ao=="function")}function Du(wi){return wi!=null&&typeof wi=="object"}var Xu=Sn?di(Sn):Ko;function fl(wi){return Ju(wi)?Si(wi):Wo(wi)}function cf(){return[]}function Qu(){return!1}k.exports=uf}}),nearAPI$3=__toESM(require_browser_index2$1(),1),import_events5=__toESM(require_events()),import_keyvaluestorage=__toESM(require_browser$1()),import_heartbeat=__toESM(require_cjs3()),import_logger=__toESM(require_cjs4());init_esm();__toESM(require_events());var n$1=class extends IEvents{constructor(v){super(),this.opts=v,this.protocol="wc",this.version=2}},h=class extends IEvents{constructor(v,k){super(),this.core=v,this.logger=k,this.records=new Map}},a=class{constructor(v,k){this.logger=v,this.core=k}},u=class extends IEvents{constructor(v,k){super(),this.relayer=v,this.logger=k}},g=class extends IEvents{constructor(v){super()}},p=class{constructor(v,k,ie,ae){this.core=v,this.logger=k,this.name=ie}},d2=class extends IEvents{constructor(v,k){super(),this.relayer=v,this.logger=k}},E=class extends IEvents{constructor(v,k){super(),this.core=v,this.logger=k}},y=class{constructor(v,k){this.projectId=v,this.logger=k}},b=class{constructor(v){this.opts=v,this.protocol="wc",this.version=2}},S=class{constructor(v){this.client=v}},JSONStringify=v=>JSON.stringify(v,(k,ie)=>typeof ie=="bigint"?ie.toString()+"n":ie),JSONParse=v=>{const k=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,ie=v.replace(k,'$1"$2n"$3');return JSON.parse(ie,(ae,ce)=>typeof ce=="string"&&ce.match(/^\d+n$/)?BigInt(ce.substring(0,ce.length-1)):ce)};function safeJsonParse(v){if(typeof v!="string")throw new Error(`Cannot safe json parse value of type ${typeof v}`);try{return JSONParse(v)}catch{return v}}function safeJsonStringify(v){return typeof v=="string"?v:JSONStringify(v)||""}var ed25519=__toESM(require_ed25519()),import_random=__toESM(require_random()),import_time=__toESM(require_cjs2()),JWT_IRIDIUM_ALG="EdDSA",JWT_IRIDIUM_TYP="JWT",JWT_DELIMITER=".",JWT_ENCODING="base64url",JSON_ENCODING="utf8",DATA_ENCODING="utf8",DID_DELIMITER=":",DID_PREFIX="did",DID_METHOD="key",MULTICODEC_ED25519_ENCODING="base58btc",MULTICODEC_ED25519_BASE="z",MULTICODEC_ED25519_HEADER="K36",KEY_PAIR_SEED_LENGTH=32;function asUint8Array(v){return globalThis.Buffer!=null?new Uint8Array(v.buffer,v.byteOffset,v.byteLength):v}function allocUnsafe(v=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?asUint8Array(globalThis.Buffer.allocUnsafe(v)):new Uint8Array(v)}function concat$8(v,k){k||(k=v.reduce((ce,fe)=>ce+fe.length,0));const ie=allocUnsafe(k);let ae=0;for(const ce of v)ie.set(ce,ae),ae+=ce.length;return asUint8Array(ie)}var identity_exports={};__export$1(identity_exports,{identity:()=>identity});function base$1(v,k){if(v.length>=255)throw new TypeError("Alphabet too long");for(var ie=new Uint8Array(256),ae=0;ae>>0,Lr=new Uint8Array(Mr);ur!==jr;){for(var Vr=$r[ur],Gr=0,Ur=Mr-1;(Vr!==0||Gr>>0,Lr[Ur]=Vr%ve>>>0,Vr=Vr/ve>>>0;if(Vr!==0)throw new Error("Non-zero carry");Ar=Gr,ur++}for(var Qr=Mr-Ar;Qr!==Mr&&Lr[Qr]===0;)Qr++;for(var hn=pe.repeat(Pr);Qr>>0,Mr=new Uint8Array(jr);$r[Pr];){var Lr=ie[$r.charCodeAt(Pr)];if(Lr===255)return;for(var Vr=0,Gr=jr-1;(Lr!==0||Vr>>0,Mr[Gr]=Lr%256>>>0,Lr=Lr/256>>>0;if(Lr!==0)throw new Error("Non-zero carry");ur=Vr,Pr++}if($r[Pr]!==" "){for(var Ur=jr-ur;Ur!==jr&&Mr[Ur]===0;)Ur++;for(var Qr=new Uint8Array(Ar+(jr-Ur)),hn=Ar;Ur!==jr;)Qr[hn++]=Mr[Ur++];return Qr}}}function Br($r){var Pr=cr($r);if(Pr)return Pr;throw new Error(`Non-${k} character`)}return{encode:Ee,decodeUnsafe:cr,decode:Br}}var src=base$1,_brrp__multiformats_scope_baseX=src,base_x_default=_brrp__multiformats_scope_baseX,coerce=v=>{if(v instanceof Uint8Array&&v.constructor.name==="Uint8Array")return v;if(v instanceof ArrayBuffer)return new Uint8Array(v);if(ArrayBuffer.isView(v))return new Uint8Array(v.buffer,v.byteOffset,v.byteLength);throw new Error("Unknown type, must be binary type")},fromString=v=>new TextEncoder().encode(v),toString$6=v=>new TextDecoder().decode(v),Encoder=class{constructor(v,k,ie){this.name=v,this.prefix=k,this.baseEncode=ie}encode(v){if(v instanceof Uint8Array)return`${this.prefix}${this.baseEncode(v)}`;throw Error("Unknown type, must be binary type")}},Decoder=class{constructor(v,k,ie){if(this.name=v,this.prefix=k,k.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=k.codePointAt(0),this.baseDecode=ie}decode(v){if(typeof v=="string"){if(v.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(v)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(v.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(v){return or(this,v)}},ComposedDecoder=class{constructor(v){this.decoders=v}or(v){return or(this,v)}decode(v){const k=v[0],ie=this.decoders[k];if(ie)return ie.decode(v);throw RangeError(`Unable to decode multibase string ${JSON.stringify(v)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},or=(v,k)=>new ComposedDecoder({...v.decoders||{[v.prefix]:v},...k.decoders||{[k.prefix]:k}}),Codec=class{constructor(v,k,ie,ae){this.name=v,this.prefix=k,this.baseEncode=ie,this.baseDecode=ae,this.encoder=new Encoder(v,k,ie),this.decoder=new Decoder(v,k,ae)}encode(v){return this.encoder.encode(v)}decode(v){return this.decoder.decode(v)}},from=({name:v,prefix:k,encode:ie,decode:ae})=>new Codec(v,k,ie,ae),baseX=({prefix:v,name:k,alphabet:ie})=>{const{encode:ae,decode:ce}=base_x_default(ie,k);return from({prefix:v,name:k,encode:ae,decode:fe=>coerce(ce(fe))})},decode$1=(v,k,ie,ae)=>{const ce={};for(let me=0;me=8&&(ve-=8,le[ye++]=255&pe>>ve)}if(ve>=ie||255&pe<<8-ve)throw new SyntaxError("Unexpected end of data");return le},encode$1=(v,k,ie)=>{const ae=k[k.length-1]==="=",ce=(1<ie;)le-=ie,fe+=k[ce&ve>>le];if(le&&(fe+=k[ce&ve<from({prefix:k,name:v,encode(ce){return encode$1(ce,ae,ie)},decode(ce){return decode$1(ce,ae,ie,v)}}),identity=from({prefix:"\0",name:"identity",encode:v=>toString$6(v),decode:v=>fromString(v)}),base2_exports={};__export$1(base2_exports,{base2:()=>base2});var base2=rfc4648({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),base8_exports={};__export$1(base8_exports,{base8:()=>base8});var base8=rfc4648({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),base10_exports={};__export$1(base10_exports,{base10:()=>base10});var base10=baseX({prefix:"9",name:"base10",alphabet:"0123456789"}),base16_exports={};__export$1(base16_exports,{base16:()=>base16,base16upper:()=>base16upper});var base16=rfc4648({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),base16upper=rfc4648({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),base32_exports={};__export$1(base32_exports,{base32:()=>base32,base32hex:()=>base32hex,base32hexpad:()=>base32hexpad,base32hexpadupper:()=>base32hexpadupper,base32hexupper:()=>base32hexupper,base32pad:()=>base32pad,base32padupper:()=>base32padupper,base32upper:()=>base32upper,base32z:()=>base32z});var base32=rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),base32upper=rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),base32pad=rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),base32padupper=rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),base32hex=rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),base32hexupper=rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),base32hexpad=rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),base32hexpadupper=rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),base32z=rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),base36_exports={};__export$1(base36_exports,{base36:()=>base36,base36upper:()=>base36upper});var base36=baseX({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),base36upper=baseX({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),base58_exports={};__export$1(base58_exports,{base58btc:()=>base58btc,base58flickr:()=>base58flickr});var base58btc=baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),base58flickr=baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),base64_exports={};__export$1(base64_exports,{base64:()=>base64,base64pad:()=>base64pad,base64url:()=>base64url,base64urlpad:()=>base64urlpad});var base64=rfc4648({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),base64pad=rfc4648({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),base64url=rfc4648({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),base64urlpad=rfc4648({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),base256emoji_exports={};__export$1(base256emoji_exports,{base256emoji:()=>base256emoji});var alphabet=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),alphabetBytesToChars=alphabet.reduce((v,k,ie)=>(v[ie]=k,v),[]),alphabetCharsToBytes=alphabet.reduce((v,k,ie)=>(v[k.codePointAt(0)]=ie,v),[]);function encode2$1(v){return v.reduce((k,ie)=>(k+=alphabetBytesToChars[ie],k),"")}function decode2$1(v){const k=[];for(const ie of v){const ae=alphabetCharsToBytes[ie.codePointAt(0)];if(ae===void 0)throw new Error(`Non-base256emoji character: ${ie}`);k.push(ae)}return new Uint8Array(k)}var base256emoji=from({prefix:"\u{1F680}",name:"base256emoji",encode:encode2$1,decode:decode2$1}),sha2_browser_exports={};__export$1(sha2_browser_exports,{sha256:()=>sha256$1,sha512:()=>sha512$1});var encode_1=encode3,MSB=128,REST=127,MSBALL=~REST,INT=Math.pow(2,31);function encode3(v,k,ie){k=k||[],ie=ie||0;for(var ae=ie;v>=INT;)k[ie++]=v&255|MSB,v/=128;for(;v&MSBALL;)k[ie++]=v&255|MSB,v>>>=7;return k[ie]=v|0,encode3.bytes=ie-ae+1,k}var decode3=read,MSB$1=128,REST$1=127;function read(v,ae){var ie=0,ae=ae||0,ce=0,fe=ae,le,ve=v.length;do{if(fe>=ve)throw read.bytes=0,new RangeError("Could not decode varint");le=v[fe++],ie+=ce<28?(le&REST$1)<=MSB$1);return read.bytes=fe-ae,ie}var N1=Math.pow(2,7),N2=Math.pow(2,14),N3=Math.pow(2,21),N4=Math.pow(2,28),N5=Math.pow(2,35),N6=Math.pow(2,42),N7=Math.pow(2,49),N8=Math.pow(2,56),N9=Math.pow(2,63),length=function(v){return v(varint_default.encode(v,k,ie),k),encodingLength=v=>varint_default.encodingLength(v),create=(v,k)=>{const ie=k.byteLength,ae=encodingLength(v),ce=ae+encodingLength(ie),fe=new Uint8Array(ce+ie);return encodeTo(v,fe,0),encodeTo(ie,fe,ae),fe.set(k,ce),new Digest(v,ie,k,fe)},Digest=class{constructor(v,k,ie,ae){this.code=v,this.size=k,this.digest=ie,this.bytes=ae}},from2=({name:v,code:k,encode:ie})=>new Hasher(v,k,ie),Hasher=class{constructor(v,k,ie){this.name=v,this.code=k,this.encode=ie}digest(v){if(v instanceof Uint8Array){const k=this.encode(v);return k instanceof Uint8Array?create(this.code,k):k.then(ie=>create(this.code,ie))}else throw Error("Unknown type, must be binary type")}},sha=v=>async k=>new Uint8Array(await crypto.subtle.digest(v,k)),sha256$1=from2({name:"sha2-256",code:18,encode:sha("SHA-256")}),sha512$1=from2({name:"sha2-512",code:19,encode:sha("SHA-512")}),identity_exports2={};__export$1(identity_exports2,{identity:()=>identity2});var code=0,name="identity",encode4=coerce,digest=v=>create(code,encode4(v)),identity2={code,name,encode:encode4,digest};new TextEncoder;new TextDecoder;var bases={...identity_exports,...base2_exports,...base8_exports,...base10_exports,...base16_exports,...base32_exports,...base36_exports,...base58_exports,...base64_exports,...base256emoji_exports};({...sha2_browser_exports,...identity_exports2});function createCodec(v,k,ie,ae){return{name:v,prefix:k,encoder:{name:v,prefix:k,encode:ie},decoder:{decode:ae}}}var string=createCodec("utf8","u",v=>{const k=new TextDecoder("utf8");return"u"+k.decode(v)},v=>new TextEncoder().encode(v.substring(1))),ascii=createCodec("ascii","a",v=>{let k="a";for(let ie=0;ie{v=v.substring(1);const k=allocUnsafe(v.length);for(let ie=0;ie"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new ReactNativeInfo:typeof navigator<"u"?parseUserAgent(navigator.userAgent):getNodeVersion()}function matchUserAgent(v){return v!==""&&userAgentRules.reduce(function(k,ie){var ae=ie[0],ce=ie[1];if(k)return k;var fe=ce.exec(v);return!!fe&&[ae,fe]},!1)}function parseUserAgent(v){var k=matchUserAgent(v);if(!k)return null;var ie=k[0],ae=k[1];if(ie==="searchbot")return new BotInfo;var ce=ae[1]&&ae[1].split(".").join("_").split("_").slice(0,3);ce?ce.length"u")throw new Error("Missing sender public key for type 1 envelope");const ie=typeof v.senderPublicKey<"u"?fromString2(v.senderPublicKey,p2):void 0,ae=typeof v.iv<"u"?fromString2(v.iv,p2):(0,import_random2.randomBytes)(J),ce=new import_chacha20poly1305.ChaCha20Poly1305(fromString2(v.symKey,p2)).seal(ae,fromString2(v.message,x));return Ie({type:k,sealed:ce,iv:ae,senderPublicKey:ie})}function Cn(v){const k=new import_chacha20poly1305.ChaCha20Poly1305(fromString2(v.symKey,p2)),{sealed:ie,iv:ae}=Z(v.encoded),ce=k.open(ae,ie);if(ce===null)throw new Error("Failed to decrypt");return toString2$6(ce,x)}function Ie(v){if($$b(v.type)===U){if(typeof v.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return toString2$6(concat$8([v.type,v.senderPublicKey,v.iv,v.sealed]),L)}return toString2$6(concat$8([v.type,v.iv,v.sealed]),L)}function Z(v){const k=fromString2(v,L),ie=k.slice(wn,Oe),ae=Oe;if($$b(ie)===U){const ve=ae+Q,pe=ve+J,ye=k.slice(ae,ve),me=k.slice(ve,pe),Ee=k.slice(pe);return{type:ie,sealed:Ee,iv:me,senderPublicKey:ye}}const ce=ae+J,fe=k.slice(ae,ce),le=k.slice(ce);return{type:ie,sealed:le,iv:fe}}function Dn(v,k){const ie=Z(v);return Pe({type:$$b(ie.type),senderPublicKey:typeof ie.senderPublicKey<"u"?toString2$6(ie.senderPublicKey,p2):void 0,receiverPublicKey:k==null?void 0:k.receiverPublicKey})}function Pe(v){const k=(v==null?void 0:v.type)||Y;if(k===U){if(typeof(v==null?void 0:v.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(v==null?void 0:v.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:k,senderPublicKey:v==null?void 0:v.senderPublicKey,receiverPublicKey:v==null?void 0:v.receiverPublicKey}}function Vn(v){return v.type===U&&typeof v.senderPublicKey=="string"&&typeof v.receiverPublicKey=="string"}var kn=Object.defineProperty,Te=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,Kn=Object.prototype.propertyIsEnumerable,we=(v,k,ie)=>k in v?kn(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,Re=(v,k)=>{for(var ie in k||(k={}))Mn.call(k,ie)&&we(v,ie,k[ie]);if(Te)for(var ie of Te(k))Kn.call(k,ie)&&we(v,ie,k[ie]);return v},Ae="ReactNative",b2={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},_e="js";function ee(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function $e(){return!(0,import_window_getters.getDocument)()&&!!(0,import_window_getters.getNavigator)()&&navigator.product===Ae}function je(){return!ee()&&!!(0,import_window_getters.getNavigator)()}function j$2(){return $e()?b2.reactNative:ee()?b2.node:je()?b2.browser:b2.unknown}function Ce(v,k){let ie=V.parse(v);return ie=Re(Re({},ie),k),v=V.stringify(ie),v}function Fn(){return(0,import_window_metadata.getWindowMetadata)()||{name:"",description:"",url:"",icons:[""]}}function De(){if(j$2()===b2.reactNative&&typeof globalThis<"u"&&typeof(globalThis==null?void 0:globalThis.Platform)<"u"){const{OS:ie,Version:ae}=globalThis.Platform;return[ie,ae].join("-")}const v=detect();if(v===null)return"unknown";const k=v.os?v.os.replace(" ","").toLowerCase():"unknown";return v.type==="browser"?[k,v.name,v.version].join("-"):[k,v.version].join("-")}function Ve(){var v;const k=j$2();return k===b2.browser?[k,((v=(0,import_window_getters.getLocation)())==null?void 0:v.host)||"unknown"].join(":"):k}function ke(v,k,ie){const ae=De(),ce=Ve();return[[v,k].join("-"),[_e,ie].join("-"),ae,ce].join("/")}function qn({protocol:v,version:k,relayUrl:ie,sdkVersion:ae,auth:ce,projectId:fe,useOnCloseEvent:le}){const ve=ie.split("?"),pe=ke(v,k,ae),ye={auth:ce,ua:pe,projectId:fe,useOnCloseEvent:le||void 0},me=Ce(ve[1]||"",ye);return ve[0]+"?"+me}function O(v,k){return v.filter(ie=>k.includes(ie)).length===v.length}function Bn(v){return Object.fromEntries(v.entries())}function Yn(v){return new Map(Object.entries(v))}function Xn(v=import_time2.FIVE_MINUTES,k){const ie=(0,import_time2.toMiliseconds)(v||import_time2.FIVE_MINUTES);let ae,ce,fe;return{resolve:le=>{fe&&ae&&(clearTimeout(fe),ae(le))},reject:le=>{fe&&ce&&(clearTimeout(fe),ce(le))},done:()=>new Promise((le,ve)=>{fe=setTimeout(()=>{ve(new Error(k))},ie),ae=le,ce=ve})}}function et(v,k,ie){return new Promise(async(ae,ce)=>{const fe=setTimeout(()=>ce(new Error(ie)),k);try{const le=await v;ae(le)}catch(le){ce(le)}clearTimeout(fe)})}function ne(v,k){if(typeof k=="string"&&k.startsWith(`${v}:`))return k;if(v.toLowerCase()==="topic"){if(typeof k!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${k}`}else if(v.toLowerCase()==="id"){if(typeof k!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${k}`}throw new Error(`Unknown expirer target type: ${v}`)}function nt(v){return ne("topic",v)}function tt(v){return ne("id",v)}function rt(v){const[k,ie]=v.split(":"),ae={id:void 0,topic:void 0};if(k==="topic"&&typeof ie=="string")ae.topic=ie;else if(k==="id"&&Number.isInteger(Number(ie)))ae.id=Number(ie);else throw new Error(`Invalid target, expected id:number or topic:string, got ${k}:${ie}`);return ae}function ot(v,k){return(0,import_time2.fromMiliseconds)((k||Date.now())+(0,import_time2.toMiliseconds)(v))}function st(v){return Date.now()>=(0,import_time2.toMiliseconds)(v)}function it(v,k){return`${v}${k?`:${k}`:""}`}async function ct({id:v,topic:k,wcDeepLink:ie}){try{if(!ie)return;const ae=typeof ie=="string"?JSON.parse(ie):ie;let ce=ae==null?void 0:ae.href;if(typeof ce!="string")return;ce.endsWith("/")&&(ce=ce.slice(0,-1));const fe=`${ce}/wc?requestId=${v}&sessionTopic=${k}`,le=j$2();le===b2.browser?fe.startsWith("https://")?window.open(fe,"_blank","noreferrer noopener"):window.open(fe,"_self","noreferrer noopener"):le===b2.reactNative&&typeof(globalThis==null?void 0:globalThis.Linking)<"u"&&await globalThis.Linking.openURL(fe)}catch(ae){console.error(ae)}}var xe="irn";function at(v){return(v==null?void 0:v.relay)||{protocol:xe}}function ut(v){const k=RELAY_JSONRPC[v];if(typeof k>"u")throw new Error(`Relay Protocol not supported: ${v}`);return k}var dt=Object.defineProperty,Fe=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,He=(v,k,ie)=>k in v?dt(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,pt=(v,k)=>{for(var ie in k||(k={}))lt.call(k,ie)&&He(v,ie,k[ie]);if(Fe)for(var ie of Fe(k))ft.call(k,ie)&&He(v,ie,k[ie]);return v};function qe(v,k="-"){const ie={},ae="relay"+k;return Object.keys(v).forEach(ce=>{if(ce.startsWith(ae)){const fe=ce.replace(ae,""),le=v[ce];ie[fe]=le}}),ie}function mt(v){const k=v.indexOf(":"),ie=v.indexOf("?")!==-1?v.indexOf("?"):void 0,ae=v.substring(0,k),ce=v.substring(k+1,ie).split("@"),fe=typeof ie<"u"?v.substring(ie):"",le=V.parse(fe);return{protocol:ae,topic:Ge(ce[0]),version:parseInt(ce[1],10),symKey:le.symKey,relay:qe(le)}}function Ge(v){return v.startsWith("//")?v.substring(2):v}function We(v,k="-"){const ie="relay",ae={};return Object.keys(v).forEach(ce=>{const fe=ie+k+ce;v[ce]&&(ae[fe]=v[ce])}),ae}function yt(v){return`${v.protocol}:${v.topic}@${v.version}?`+V.stringify(pt({symKey:v.symKey},We(v.relay)))}function R(v){const k=[];return v.forEach(ie=>{const[ae,ce]=ie.split(":");k.push(`${ae}:${ce}`)}),k}function Ye(v){const k=[];return Object.values(v).forEach(ie=>{k.push(...R(ie.accounts))}),k}function Je(v,k){const ie=[];return Object.values(v).forEach(ae=>{R(ae.accounts).includes(k)&&ie.push(...ae.methods)}),ie}function Qe(v,k){const ie=[];return Object.values(v).forEach(ae=>{R(ae.accounts).includes(k)&&ie.push(...ae.events)}),ie}function St(v,k){const ie=sn(v,k);if(ie)throw new Error(ie.message);const ae={};for(const[ce,fe]of Object.entries(v))ae[ce]={methods:fe.methods,events:fe.events,chains:fe.accounts.map(le=>`${le.split(":")[0]}:${le.split(":")[1]}`)};return ae}var Pt={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Tt={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function N$1(v,k){const{message:ie,code:ae}=Tt[v];return{message:k?`${ie} ${k}`:ie,code:ae}}function A(v,k){const{message:ie,code:ae}=Pt[v];return{message:k?`${ie} ${k}`:ie,code:ae}}function C(v,k){return Array.isArray(v)?typeof k<"u"&&v.length?v.every(k):!0:!1}function H(v){return Object.getPrototypeOf(v)===Object.prototype&&Object.keys(v).length}function I(v){return typeof v>"u"}function y2(v,k){return k&&I(v)?!0:typeof v=="string"&&!!v.trim().length}function q(v,k){return k&&I(v)?!0:typeof v=="number"&&!isNaN(v)}function wt(v,k){const{requiredNamespaces:ie}=k,ae=Object.keys(v.namespaces),ce=Object.keys(ie);let fe=!0;return O(ce,ae)?(ae.forEach(le=>{const{accounts:ve,methods:pe,events:ye}=v.namespaces[le],me=R(ve),Ee=ie[le];(!O(M(le,Ee),me)||!O(Ee.methods,pe)||!O(Ee.events,ye))&&(fe=!1)}),fe):!1}function D(v){return y2(v,!1)&&v.includes(":")?v.split(":").length===2:!1}function Xe(v){if(y2(v,!1)&&v.includes(":")){const k=v.split(":");if(k.length===3){const ie=k[0]+":"+k[1];return!!k[2]&&D(ie)}}return!1}function Rt(v){if(y2(v,!1))try{return typeof new URL(v)<"u"}catch{return!1}return!1}function At(v){var k;return(k=v==null?void 0:v.proposer)==null?void 0:k.publicKey}function Ut(v){return v==null?void 0:v.topic}function _t(v,k){let ie=null;return y2(v==null?void 0:v.publicKey,!1)||(ie=N$1("MISSING_OR_INVALID",`${k} controller public key should be a string`)),ie}function oe(v){let k=!0;return C(v)?v.length&&(k=v.every(ie=>y2(ie,!1))):k=!1,k}function en(v,k,ie){let ae=null;return C(k)&&k.length?k.forEach(ce=>{ae||D(ce)||(ae=A("UNSUPPORTED_CHAINS",`${ie}, chain ${ce} should be a string and conform to "namespace:chainId" format`))}):D(v)||(ae=A("UNSUPPORTED_CHAINS",`${ie}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),ae}function nn(v,k,ie){let ae=null;return Object.entries(v).forEach(([ce,fe])=>{if(ae)return;const le=en(ce,M(ce,fe),`${k} ${ie}`);le&&(ae=le)}),ae}function tn(v,k){let ie=null;return C(v)?v.forEach(ae=>{ie||Xe(ae)||(ie=A("UNSUPPORTED_ACCOUNTS",`${k}, account ${ae} should be a string and conform to "namespace:chainId:address" format`))}):ie=A("UNSUPPORTED_ACCOUNTS",`${k}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),ie}function rn(v,k){let ie=null;return Object.values(v).forEach(ae=>{if(ie)return;const ce=tn(ae==null?void 0:ae.accounts,`${k} namespace`);ce&&(ie=ce)}),ie}function on(v,k){let ie=null;return oe(v==null?void 0:v.methods)?oe(v==null?void 0:v.events)||(ie=A("UNSUPPORTED_EVENTS",`${k}, events should be an array of strings or empty array for no events`)):ie=A("UNSUPPORTED_METHODS",`${k}, methods should be an array of strings or empty array for no methods`),ie}function se(v,k){let ie=null;return Object.values(v).forEach(ae=>{if(ie)return;const ce=on(ae,`${k}, namespace`);ce&&(ie=ce)}),ie}function $t(v,k,ie){let ae=null;if(v&&H(v)){const ce=se(v,k);ce&&(ae=ce);const fe=nn(v,k,ie);fe&&(ae=fe)}else ae=N$1("MISSING_OR_INVALID",`${k}, ${ie} should be an object with data`);return ae}function sn(v,k){let ie=null;if(v&&H(v)){const ae=se(v,k);ae&&(ie=ae);const ce=rn(v,k);ce&&(ie=ce)}else ie=N$1("MISSING_OR_INVALID",`${k}, namespaces should be an object with data`);return ie}function cn(v){return y2(v.protocol,!0)}function jt(v,k){let ie=!1;return k&&!v?ie=!0:v&&C(v)&&v.length&&v.forEach(ae=>{ie=cn(ae)}),ie}function Ct(v){return typeof v=="number"}function Dt(v){return typeof v<"u"&&typeof v!==null}function Vt(v){return!(!v||typeof v!="object"||!v.code||!q(v.code,!1)||!v.message||!y2(v.message,!1))}function kt(v){return!(I(v)||!y2(v.method,!1))}function Mt(v){return!(I(v)||I(v.result)&&I(v.error)||!q(v.id,!1)||!y2(v.jsonrpc,!1))}function Kt(v){return!(I(v)||!y2(v.name,!1))}function Lt(v,k){return!(!D(k)||!Ye(v).includes(k))}function xt(v,k,ie){return y2(ie,!1)?Je(v,k).includes(ie):!1}function Ft(v,k,ie){return y2(ie,!1)?Qe(v,k).includes(ie):!1}function an(v,k,ie){let ae=null;const ce=Ht(v),fe=qt(k),le=Object.keys(ce),ve=Object.keys(fe),pe=un(Object.keys(v)),ye=un(Object.keys(k)),me=pe.filter(Ee=>!ye.includes(Ee));return me.length&&(ae=N$1("NON_CONFORMING_NAMESPACES",`${ie} namespaces keys don't satisfy requiredNamespaces. Required: ${me.toString()} Received: ${Object.keys(k).toString()}`)),O(le,ve)||(ae=N$1("NON_CONFORMING_NAMESPACES",`${ie} namespaces chains don't satisfy required namespaces. Required: ${le.toString()} Approved: ${ve.toString()}`)),Object.keys(k).forEach(Ee=>{if(!Ee.includes(":")||ae)return;const cr=R(k[Ee].accounts);cr.includes(Ee)||(ae=N$1("NON_CONFORMING_NAMESPACES",`${ie} namespaces accounts don't satisfy namespace accounts for ${Ee} Required: ${Ee} - Approved: ${cr.toString()}`))}),le.forEach(Ee=>{ae||(O(ce[Ee].methods,fe[Ee].methods)?O(ce[Ee].events,fe[Ee].events)||(ae=N$1("NON_CONFORMING_NAMESPACES",`${ie} namespaces events don't satisfy namespace events for ${Ee}`)):ae=N$1("NON_CONFORMING_NAMESPACES",`${ie} namespaces methods don't satisfy namespace methods for ${Ee}`))}),ae}function Ht(v){const k={};return Object.keys(v).forEach(ie=>{var ae;ie.includes(":")?k[ie]=v[ie]:(ae=v[ie].chains)==null||ae.forEach(ce=>{k[ce]={methods:v[ie].methods,events:v[ie].events}})}),k}function un(v){return[...new Set(v.map(k=>k.includes(":")?k.split(":")[0]:k))]}function qt(v){const k={};return Object.keys(v).forEach(ie=>{if(ie.includes(":"))k[ie]=v[ie];else{const ae=R(v[ie].accounts);ae==null||ae.forEach(ce=>{k[ce]={accounts:v[ie].accounts.filter(fe=>fe.includes(`${ce}:`)),methods:v[ie].methods,events:v[ie].events}})}}),k}function Gt(v,k){return q(v,!1)&&v<=k.max&&v>=k.min}var import_time3=__toESM(require_cjs2()),import_events3=__toESM(require_events()),esm_exports2={};__export$1(esm_exports2,{DEFAULT_ERROR:()=>DEFAULT_ERROR,IBaseJsonRpcProvider:()=>IBaseJsonRpcProvider,IEvents:()=>IEvents2,IJsonRpcConnection:()=>IJsonRpcConnection,IJsonRpcProvider:()=>IJsonRpcProvider,INTERNAL_ERROR:()=>INTERNAL_ERROR,INVALID_PARAMS:()=>INVALID_PARAMS,INVALID_REQUEST:()=>INVALID_REQUEST,METHOD_NOT_FOUND:()=>METHOD_NOT_FOUND,PARSE_ERROR:()=>PARSE_ERROR,RESERVED_ERROR_CODES:()=>RESERVED_ERROR_CODES,SERVER_ERROR:()=>SERVER_ERROR,SERVER_ERROR_CODE_RANGE:()=>SERVER_ERROR_CODE_RANGE,STANDARD_ERROR_MAP:()=>STANDARD_ERROR_MAP,formatErrorMessage:()=>formatErrorMessage,formatJsonRpcError:()=>formatJsonRpcError,formatJsonRpcRequest:()=>formatJsonRpcRequest,formatJsonRpcResult:()=>formatJsonRpcResult,getBigIntRpcId:()=>getBigIntRpcId,getError:()=>getError,getErrorByCode:()=>getErrorByCode,isHttpUrl:()=>isHttpUrl,isJsonRpcError:()=>isJsonRpcError,isJsonRpcPayload:()=>isJsonRpcPayload,isJsonRpcRequest:()=>isJsonRpcRequest,isJsonRpcResponse:()=>isJsonRpcResponse,isJsonRpcResult:()=>isJsonRpcResult,isJsonRpcValidationInvalid:()=>isJsonRpcValidationInvalid,isLocalhostUrl:()=>isLocalhostUrl,isNodeJs:()=>isNodeJs,isReservedErrorCode:()=>isReservedErrorCode,isServerErrorCode:()=>isServerErrorCode,isValidDefaultRoute:()=>isValidDefaultRoute,isValidErrorCode:()=>isValidErrorCode,isValidLeadingWildcardRoute:()=>isValidLeadingWildcardRoute,isValidRoute:()=>isValidRoute,isValidTrailingWildcardRoute:()=>isValidTrailingWildcardRoute,isValidWildcardRoute:()=>isValidWildcardRoute,isWsUrl:()=>isWsUrl,parseConnectionError:()=>parseConnectionError,payloadId:()=>payloadId,validateJsonRpcError:()=>validateJsonRpcError});var PARSE_ERROR="PARSE_ERROR",INVALID_REQUEST="INVALID_REQUEST",METHOD_NOT_FOUND="METHOD_NOT_FOUND",INVALID_PARAMS="INVALID_PARAMS",INTERNAL_ERROR="INTERNAL_ERROR",SERVER_ERROR="SERVER_ERROR",RESERVED_ERROR_CODES=[-32700,-32600,-32601,-32602,-32603],SERVER_ERROR_CODE_RANGE=[-32e3,-32099],STANDARD_ERROR_MAP={[PARSE_ERROR]:{code:-32700,message:"Parse error"},[INVALID_REQUEST]:{code:-32600,message:"Invalid Request"},[METHOD_NOT_FOUND]:{code:-32601,message:"Method not found"},[INVALID_PARAMS]:{code:-32602,message:"Invalid params"},[INTERNAL_ERROR]:{code:-32603,message:"Internal error"},[SERVER_ERROR]:{code:-32e3,message:"Server error"}},DEFAULT_ERROR=SERVER_ERROR;function isServerErrorCode(v){return v<=SERVER_ERROR_CODE_RANGE[0]&&v>=SERVER_ERROR_CODE_RANGE[1]}function isReservedErrorCode(v){return RESERVED_ERROR_CODES.includes(v)}function isValidErrorCode(v){return typeof v=="number"}function getError(v){return Object.keys(STANDARD_ERROR_MAP).includes(v)?STANDARD_ERROR_MAP[v]:STANDARD_ERROR_MAP[DEFAULT_ERROR]}function getErrorByCode(v){const k=Object.values(STANDARD_ERROR_MAP).find(ie=>ie.code===v);return k||STANDARD_ERROR_MAP[DEFAULT_ERROR]}function validateJsonRpcError(v){if(typeof v.error.code>"u")return{valid:!1,error:"Missing code for JSON-RPC error"};if(typeof v.error.message>"u")return{valid:!1,error:"Missing message for JSON-RPC error"};if(!isValidErrorCode(v.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${v.error.code}`};if(isReservedErrorCode(v.error.code)){const k=getErrorByCode(v.error.code);if(k.message!==STANDARD_ERROR_MAP[DEFAULT_ERROR].message&&v.error.message===k.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${v.error.code}`}}return{valid:!0}}function parseConnectionError(v,k,ie){return v.message.includes("getaddrinfo ENOTFOUND")||v.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${ie} RPC url at ${k}`):v}var env_exports={};__export$1(env_exports,{isNodeJs:()=>isNodeJs});var import_environment=__toESM(require_cjs7());__reExport(env_exports,__toESM(require_cjs7()));var isNodeJs=import_environment.isNode;__reExport(esm_exports2,env_exports);function payloadId(v=3){const k=Date.now()*Math.pow(10,v),ie=Math.floor(Math.random()*Math.pow(10,v));return k+ie}function getBigIntRpcId(v=6){return BigInt(payloadId(v))}function formatJsonRpcRequest(v,k,ie){return{id:ie||payloadId(),jsonrpc:"2.0",method:v,params:k}}function formatJsonRpcResult(v,k){return{id:v,jsonrpc:"2.0",result:k}}function formatJsonRpcError(v,k,ie){return{id:v,jsonrpc:"2.0",error:formatErrorMessage(k,ie)}}function formatErrorMessage(v,k){return typeof v>"u"?getError(INTERNAL_ERROR):(typeof v=="string"&&(v=Object.assign(Object.assign({},getError(SERVER_ERROR)),{message:v})),typeof k<"u"&&(v.data=k),isReservedErrorCode(v.code)&&(v=getErrorByCode(v.code)),v)}function isValidRoute(v){return v.includes("*")?isValidWildcardRoute(v):!/\W/g.test(v)}function isValidDefaultRoute(v){return v==="*"}function isValidWildcardRoute(v){return isValidDefaultRoute(v)?!0:!(!v.includes("*")||v.split("*").length!==2||v.split("*").filter(k=>k.trim()==="").length!==1)}function isValidLeadingWildcardRoute(v){return!isValidDefaultRoute(v)&&isValidWildcardRoute(v)&&!v.split("*")[0].trim()}function isValidTrailingWildcardRoute(v){return!isValidDefaultRoute(v)&&isValidWildcardRoute(v)&&!v.split("*")[1].trim()}var IEvents2=class{},IJsonRpcConnection=class extends IEvents2{constructor(v){super()}},IBaseJsonRpcProvider=class extends IEvents2{constructor(){super()}},IJsonRpcProvider=class extends IBaseJsonRpcProvider{constructor(v){super()}},HTTP_REGEX="^https?:",WS_REGEX="^wss?:";function getUrlProtocol(v){const k=v.match(new RegExp(/^\w+:/,"gi"));if(!(!k||!k.length))return k[0]}function matchRegexProtocol(v,k){const ie=getUrlProtocol(v);return typeof ie>"u"?!1:new RegExp(k).test(ie)}function isHttpUrl(v){return matchRegexProtocol(v,HTTP_REGEX)}function isWsUrl(v){return matchRegexProtocol(v,WS_REGEX)}function isLocalhostUrl(v){return new RegExp("wss?://localhost(:d{2,5})?").test(v)}function isJsonRpcPayload(v){return typeof v=="object"&&"id"in v&&"jsonrpc"in v&&v.jsonrpc==="2.0"}function isJsonRpcRequest(v){return isJsonRpcPayload(v)&&"method"in v}function isJsonRpcResponse(v){return isJsonRpcPayload(v)&&(isJsonRpcResult(v)||isJsonRpcError(v))}function isJsonRpcResult(v){return"result"in v}function isJsonRpcError(v){return"error"in v}function isJsonRpcValidationInvalid(v){return"error"in v&&v.valid===!1}var JsonRpcProvider$1=class extends IJsonRpcProvider{constructor(v){super(v),this.events=new import_events3.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(v),this.connection.connected&&this.registerEventListeners()}async connect(v=this.connection){await this.open(v)}async disconnect(){await this.close()}on(v,k){this.events.on(v,k)}once(v,k){this.events.once(v,k)}off(v,k){this.events.off(v,k)}removeListener(v,k){this.events.removeListener(v,k)}async request(v,k){return this.requestStrict(formatJsonRpcRequest(v.method,v.params||[],v.id||getBigIntRpcId().toString()),k)}async requestStrict(v,k){return new Promise(async(ie,ae)=>{if(!this.connection.connected)try{await this.open()}catch(ce){ae(ce)}this.events.on(`${v.id}`,ce=>{isJsonRpcError(ce)?ae(ce.error):ie(ce.result)});try{await this.connection.send(v,k)}catch(ce){ae(ce)}})}setConnection(v=this.connection){return v}onPayload(v){this.events.emit("payload",v),isJsonRpcResponse(v)?this.events.emit(`${v.id}`,v):this.events.emit("message",{type:v.method,data:v.params})}onClose(v){v&&v.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${v.code} ${v.reason?`(${v.reason})`:""}`)),this.events.emit("disconnect")}async open(v=this.connection){this.connection===v&&this.connection.connected||(this.connection.connected&&this.close(),typeof v=="string"&&(await this.connection.open(v),v=this.connection),this.connection=this.setConnection(v),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",v=>this.onPayload(v)),this.connection.on("close",v=>this.onClose(v)),this.connection.on("error",v=>this.events.emit("error",v)),this.connection.on("register_error",v=>this.onClose()),this.hasRegisteredEventListeners=!0)}},import_events4=__toESM(require_events()),esm_exports3={};__export$1(esm_exports3,{DEFAULT_ERROR:()=>DEFAULT_ERROR2,IBaseJsonRpcProvider:()=>IBaseJsonRpcProvider2,IEvents:()=>IEvents3,IJsonRpcConnection:()=>IJsonRpcConnection2,IJsonRpcProvider:()=>IJsonRpcProvider2,INTERNAL_ERROR:()=>INTERNAL_ERROR2,INVALID_PARAMS:()=>INVALID_PARAMS2,INVALID_REQUEST:()=>INVALID_REQUEST2,METHOD_NOT_FOUND:()=>METHOD_NOT_FOUND2,PARSE_ERROR:()=>PARSE_ERROR2,RESERVED_ERROR_CODES:()=>RESERVED_ERROR_CODES2,SERVER_ERROR:()=>SERVER_ERROR2,SERVER_ERROR_CODE_RANGE:()=>SERVER_ERROR_CODE_RANGE2,STANDARD_ERROR_MAP:()=>STANDARD_ERROR_MAP2,formatErrorMessage:()=>formatErrorMessage2,formatJsonRpcError:()=>formatJsonRpcError2,formatJsonRpcRequest:()=>formatJsonRpcRequest2,formatJsonRpcResult:()=>formatJsonRpcResult2,getBigIntRpcId:()=>getBigIntRpcId2,getError:()=>getError2,getErrorByCode:()=>getErrorByCode2,isHttpUrl:()=>isHttpUrl2,isJsonRpcError:()=>isJsonRpcError2,isJsonRpcPayload:()=>isJsonRpcPayload2,isJsonRpcRequest:()=>isJsonRpcRequest2,isJsonRpcResponse:()=>isJsonRpcResponse2,isJsonRpcResult:()=>isJsonRpcResult2,isJsonRpcValidationInvalid:()=>isJsonRpcValidationInvalid2,isLocalhostUrl:()=>isLocalhostUrl2,isNodeJs:()=>isNodeJs2,isReservedErrorCode:()=>isReservedErrorCode2,isServerErrorCode:()=>isServerErrorCode2,isValidDefaultRoute:()=>isValidDefaultRoute2,isValidErrorCode:()=>isValidErrorCode2,isValidLeadingWildcardRoute:()=>isValidLeadingWildcardRoute2,isValidRoute:()=>isValidRoute2,isValidTrailingWildcardRoute:()=>isValidTrailingWildcardRoute2,isValidWildcardRoute:()=>isValidWildcardRoute2,isWsUrl:()=>isWsUrl2,parseConnectionError:()=>parseConnectionError2,payloadId:()=>payloadId2,validateJsonRpcError:()=>validateJsonRpcError2});var PARSE_ERROR2="PARSE_ERROR",INVALID_REQUEST2="INVALID_REQUEST",METHOD_NOT_FOUND2="METHOD_NOT_FOUND",INVALID_PARAMS2="INVALID_PARAMS",INTERNAL_ERROR2="INTERNAL_ERROR",SERVER_ERROR2="SERVER_ERROR",RESERVED_ERROR_CODES2=[-32700,-32600,-32601,-32602,-32603],SERVER_ERROR_CODE_RANGE2=[-32e3,-32099],STANDARD_ERROR_MAP2={[PARSE_ERROR2]:{code:-32700,message:"Parse error"},[INVALID_REQUEST2]:{code:-32600,message:"Invalid Request"},[METHOD_NOT_FOUND2]:{code:-32601,message:"Method not found"},[INVALID_PARAMS2]:{code:-32602,message:"Invalid params"},[INTERNAL_ERROR2]:{code:-32603,message:"Internal error"},[SERVER_ERROR2]:{code:-32e3,message:"Server error"}},DEFAULT_ERROR2=SERVER_ERROR2;function isServerErrorCode2(v){return v<=SERVER_ERROR_CODE_RANGE2[0]&&v>=SERVER_ERROR_CODE_RANGE2[1]}function isReservedErrorCode2(v){return RESERVED_ERROR_CODES2.includes(v)}function isValidErrorCode2(v){return typeof v=="number"}function getError2(v){return Object.keys(STANDARD_ERROR_MAP2).includes(v)?STANDARD_ERROR_MAP2[v]:STANDARD_ERROR_MAP2[DEFAULT_ERROR2]}function getErrorByCode2(v){const k=Object.values(STANDARD_ERROR_MAP2).find(ie=>ie.code===v);return k||STANDARD_ERROR_MAP2[DEFAULT_ERROR2]}function validateJsonRpcError2(v){if(typeof v.error.code>"u")return{valid:!1,error:"Missing code for JSON-RPC error"};if(typeof v.error.message>"u")return{valid:!1,error:"Missing message for JSON-RPC error"};if(!isValidErrorCode2(v.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${v.error.code}`};if(isReservedErrorCode2(v.error.code)){const k=getErrorByCode2(v.error.code);if(k.message!==STANDARD_ERROR_MAP2[DEFAULT_ERROR2].message&&v.error.message===k.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${v.error.code}`}}return{valid:!0}}function parseConnectionError2(v,k,ie){return v.message.includes("getaddrinfo ENOTFOUND")||v.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${ie} RPC url at ${k}`):v}var env_exports2={};__export$1(env_exports2,{isNodeJs:()=>isNodeJs2});var import_environment2=__toESM(require_cjs7());__reExport(env_exports2,__toESM(require_cjs7()));var isNodeJs2=import_environment2.isNode;__reExport(esm_exports3,env_exports2);function payloadId2(v=3){const k=Date.now()*Math.pow(10,v),ie=Math.floor(Math.random()*Math.pow(10,v));return k+ie}function getBigIntRpcId2(v=6){return BigInt(payloadId2(v))}function formatJsonRpcRequest2(v,k,ie){return{id:ie||payloadId2(),jsonrpc:"2.0",method:v,params:k}}function formatJsonRpcResult2(v,k){return{id:v,jsonrpc:"2.0",result:k}}function formatJsonRpcError2(v,k,ie){return{id:v,jsonrpc:"2.0",error:formatErrorMessage2(k,ie)}}function formatErrorMessage2(v,k){return typeof v>"u"?getError2(INTERNAL_ERROR2):(typeof v=="string"&&(v=Object.assign(Object.assign({},getError2(SERVER_ERROR2)),{message:v})),typeof k<"u"&&(v.data=k),isReservedErrorCode2(v.code)&&(v=getErrorByCode2(v.code)),v)}function isValidRoute2(v){return v.includes("*")?isValidWildcardRoute2(v):!/\W/g.test(v)}function isValidDefaultRoute2(v){return v==="*"}function isValidWildcardRoute2(v){return isValidDefaultRoute2(v)?!0:!(!v.includes("*")||v.split("*").length!==2||v.split("*").filter(k=>k.trim()==="").length!==1)}function isValidLeadingWildcardRoute2(v){return!isValidDefaultRoute2(v)&&isValidWildcardRoute2(v)&&!v.split("*")[0].trim()}function isValidTrailingWildcardRoute2(v){return!isValidDefaultRoute2(v)&&isValidWildcardRoute2(v)&&!v.split("*")[1].trim()}var IEvents3=class{},IJsonRpcConnection2=class extends IEvents3{constructor(v){super()}},IBaseJsonRpcProvider2=class extends IEvents3{constructor(){super()}},IJsonRpcProvider2=class extends IBaseJsonRpcProvider2{constructor(v){super()}},HTTP_REGEX2="^https?:",WS_REGEX2="^wss?:";function getUrlProtocol2(v){const k=v.match(new RegExp(/^\w+:/,"gi"));if(!(!k||!k.length))return k[0]}function matchRegexProtocol2(v,k){const ie=getUrlProtocol2(v);return typeof ie>"u"?!1:new RegExp(k).test(ie)}function isHttpUrl2(v){return matchRegexProtocol2(v,HTTP_REGEX2)}function isWsUrl2(v){return matchRegexProtocol2(v,WS_REGEX2)}function isLocalhostUrl2(v){return new RegExp("wss?://localhost(:d{2,5})?").test(v)}function isJsonRpcPayload2(v){return typeof v=="object"&&"id"in v&&"jsonrpc"in v&&v.jsonrpc==="2.0"}function isJsonRpcRequest2(v){return isJsonRpcPayload2(v)&&"method"in v}function isJsonRpcResponse2(v){return isJsonRpcPayload2(v)&&(isJsonRpcResult2(v)||isJsonRpcError2(v))}function isJsonRpcResult2(v){return"result"in v}function isJsonRpcError2(v){return"error"in v}function isJsonRpcValidationInvalid2(v){return"error"in v&&v.valid===!1}var resolveWebSocketImplementation=()=>typeof WebSocket<"u"?WebSocket:typeof globalThis<"u"&&typeof globalThis.WebSocket<"u"?globalThis.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:require_browser4$1(),hasBuiltInWebSocket=()=>typeof WebSocket<"u"||typeof globalThis<"u"&&typeof globalThis.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",truncateQuery=v=>v.split("?")[0],EVENT_EMITTER_MAX_LISTENERS_DEFAULT=10,WS$1=resolveWebSocketImplementation(),WsConnection=class{constructor(v){if(this.url=v,this.events=new import_events4.EventEmitter,this.registering=!1,!isWsUrl2(v))throw new Error(`Provided URL is not compatible with WebSocket connection: ${v}`);this.url=v}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(v,k){this.events.on(v,k)}once(v,k){this.events.once(v,k)}off(v,k){this.events.off(v,k)}removeListener(v,k){this.events.removeListener(v,k)}async open(v=this.url){await this.register(v)}async close(){return new Promise((v,k)=>{if(typeof this.socket>"u"){k(new Error("Connection already closed"));return}this.socket.onclose=ie=>{this.onClose(ie),v()},this.socket.close()})}async send(v,k){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(safeJsonStringify(v))}catch(ie){this.onError(v.id,ie)}}register(v=this.url){if(!isWsUrl2(v))throw new Error(`Provided URL is not compatible with WebSocket connection: ${v}`);if(this.registering){const k=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=k||this.events.listenerCount("open")>=k)&&this.events.setMaxListeners(k+1),new Promise((ie,ae)=>{this.events.once("register_error",ce=>{this.resetMaxListeners(),ae(ce)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return ae(new Error("WebSocket connection is missing or invalid"));ie(this.socket)})})}return this.url=v,this.registering=!0,new Promise((k,ie)=>{const ae=(0,esm_exports3.isReactNative)()?void 0:{rejectUnauthorized:!isLocalhostUrl2(v)},ce=new WS$1(v,[],ae);hasBuiltInWebSocket()?ce.onerror=fe=>{const le=fe;ie(this.emitError(le.error))}:ce.on("error",fe=>{ie(this.emitError(fe))}),ce.onopen=()=>{this.onOpen(ce),k(ce)}})}onOpen(v){v.onmessage=k=>this.onPayload(k),v.onclose=k=>this.onClose(k),this.socket=v,this.registering=!1,this.events.emit("open")}onClose(v){this.socket=void 0,this.registering=!1,this.events.emit("close",v)}onPayload(v){if(typeof v.data>"u")return;const k=typeof v.data=="string"?safeJsonParse(v.data):v.data;this.events.emit("payload",k)}onError(v,k){const ie=this.parseError(k),ae=ie.message||ie.toString(),ce=formatJsonRpcError2(v,ae);this.events.emit("payload",ce)}parseError(v,k=this.url){return parseConnectionError2(v,truncateQuery(k),"WS")}resetMaxListeners(){this.events.getMaxListeners()>EVENT_EMITTER_MAX_LISTENERS_DEFAULT&&this.events.setMaxListeners(EVENT_EMITTER_MAX_LISTENERS_DEFAULT)}emitError(v){const k=this.parseError(new Error((v==null?void 0:v.message)||`WebSocket connection failed for host: ${truncateQuery(this.url)}`));return this.events.emit("register_error",k),k}},ws_default=WsConnection,esm_default=ws_default,import_lodash=__toESM(require_lodash());function $i(v,k){if(v.length>=255)throw new TypeError("Alphabet too long");for(var ie=new Uint8Array(256),ae=0;ae>>0,Lr=new Uint8Array(Mr);ur!==jr;){for(var Vr=$r[ur],Gr=0,Ur=Mr-1;(Vr!==0||Gr>>0,Lr[Ur]=Vr%ve>>>0,Vr=Vr/ve>>>0;if(Vr!==0)throw new Error("Non-zero carry");Or=Gr,ur++}for(var Qr=Mr-Or;Qr!==Mr&&Lr[Qr]===0;)Qr++;for(var vn=pe.repeat(Pr);Qr>>0,Mr=new Uint8Array(jr);$r[Pr];){var Lr=ie[$r.charCodeAt(Pr)];if(Lr===255)return;for(var Vr=0,Gr=jr-1;(Lr!==0||Vr>>0,Mr[Gr]=Lr%256>>>0,Lr=Lr/256>>>0;if(Lr!==0)throw new Error("Non-zero carry");ur=Vr,Pr++}if($r[Pr]!==" "){for(var Ur=jr-ur;Ur!==jr&&Mr[Ur]===0;)Ur++;for(var Qr=new Uint8Array(Or+(jr-Ur)),vn=Or;Ur!==jr;)Qr[vn++]=Mr[Ur++];return Qr}}}function Br($r){var Pr=cr($r);if(Pr)return Pr;throw new Error(`Non-${k} character`)}return{encode:Ee,decodeUnsafe:cr,decode:Br}}var Fi=$i,Mi=Fi,Oe2=v=>{if(v instanceof Uint8Array&&v.constructor.name==="Uint8Array")return v;if(v instanceof ArrayBuffer)return new Uint8Array(v);if(ArrayBuffer.isView(v))return new Uint8Array(v.buffer,v.byteOffset,v.byteLength);throw new Error("Unknown type, must be binary type")},Ki=v=>new TextEncoder().encode(v),ki=v=>new TextDecoder().decode(v),Bi=class{constructor(v,k,ie){this.name=v,this.prefix=k,this.baseEncode=ie}encode(v){if(v instanceof Uint8Array)return`${this.prefix}${this.baseEncode(v)}`;throw Error("Unknown type, must be binary type")}},ji=class{constructor(v,k,ie){if(this.name=v,this.prefix=k,k.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=k.codePointAt(0),this.baseDecode=ie}decode(v){if(typeof v=="string"){if(v.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(v)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(v.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(v){return xe2(this,v)}},Vi=class{constructor(v){this.decoders=v}or(v){return xe2(this,v)}decode(v){const k=v[0],ie=this.decoders[k];if(ie)return ie.decode(v);throw RangeError(`Unable to decode multibase string ${JSON.stringify(v)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},xe2=(v,k)=>new Vi({...v.decoders||{[v.prefix]:v},...k.decoders||{[k.prefix]:k}}),qi=class{constructor(v,k,ie,ae){this.name=v,this.prefix=k,this.baseEncode=ie,this.baseDecode=ae,this.encoder=new Bi(v,k,ie),this.decoder=new ji(v,k,ae)}encode(v){return this.encoder.encode(v)}decode(v){return this.decoder.decode(v)}},H2=({name:v,prefix:k,encode:ie,decode:ae})=>new qi(v,k,ie,ae),M2=({prefix:v,name:k,alphabet:ie})=>{const{encode:ae,decode:ce}=Mi(ie,k);return H2({prefix:v,name:k,encode:ae,decode:fe=>Oe2(ce(fe))})},Yi=(v,k,ie,ae)=>{const ce={};for(let me=0;me=8&&(ve-=8,le[ye++]=255&pe>>ve)}if(ve>=ie||255&pe<<8-ve)throw new SyntaxError("Unexpected end of data");return le},Gi=(v,k,ie)=>{const ae=k[k.length-1]==="=",ce=(1<ie;)le-=ie,fe+=k[ce&ve>>le];if(le&&(fe+=k[ce&ve<H2({prefix:k,name:v,encode(ce){return Gi(ce,ae,ie)},decode(ce){return Yi(ce,ae,ie,v)}}),Ji=H2({prefix:"\0",name:"identity",encode:v=>ki(v),decode:v=>Ki(v)}),Hi=Object.freeze({__proto__:null,identity:Ji}),Wi=p3({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),Xi=Object.freeze({__proto__:null,base2:Wi}),Zi=p3({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),Qi=Object.freeze({__proto__:null,base8:Zi}),es=M2({prefix:"9",name:"base10",alphabet:"0123456789"}),ts=Object.freeze({__proto__:null,base10:es}),is=p3({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),ss=p3({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),rs=Object.freeze({__proto__:null,base16:is,base16upper:ss}),ns=p3({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),as=p3({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),os=p3({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),hs=p3({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),cs=p3({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),us=p3({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),ls=p3({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),ds=p3({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),gs=p3({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),ps=Object.freeze({__proto__:null,base32:ns,base32upper:as,base32pad:os,base32padupper:hs,base32hex:cs,base32hexupper:us,base32hexpad:ls,base32hexpadupper:ds,base32z:gs}),Ds=M2({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),ys=M2({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),bs=Object.freeze({__proto__:null,base36:Ds,base36upper:ys}),ms=M2({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Es=M2({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),fs=Object.freeze({__proto__:null,base58btc:ms,base58flickr:Es}),ws=p3({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),vs=p3({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Is=p3({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Cs=p3({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),_s=Object.freeze({__proto__:null,base64:ws,base64pad:vs,base64url:Is,base64urlpad:Cs}),Ae2=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),Rs=Ae2.reduce((v,k,ie)=>(v[ie]=k,v),[]),Ts=Ae2.reduce((v,k,ie)=>(v[k.codePointAt(0)]=ie,v),[]);function Ss(v){return v.reduce((k,ie)=>(k+=Rs[ie],k),"")}function Ps(v){const k=[];for(const ie of v){const ae=Ts[ie.codePointAt(0)];if(ae===void 0)throw new Error(`Non-base256emoji character: ${ie}`);k.push(ae)}return new Uint8Array(k)}var Os=H2({prefix:"\u{1F680}",name:"base256emoji",encode:Ss,decode:Ps}),xs=Object.freeze({__proto__:null,base256emoji:Os}),As=Ne,ze=128,zs=127,Ns=~zs,Us=Math.pow(2,31);function Ne(v,k,ie){k=k||[],ie=ie||0;for(var ae=ie;v>=Us;)k[ie++]=v&255|ze,v/=128;for(;v&Ns;)k[ie++]=v&255|ze,v>>>=7;return k[ie]=v|0,Ne.bytes=ie-ae+1,k}var Ls=ae2,$s=128,Ue=127;function ae2(v,ae){var ie=0,ae=ae||0,ce=0,fe=ae,le,ve=v.length;do{if(fe>=ve)throw ae2.bytes=0,new RangeError("Could not decode varint");le=v[fe++],ie+=ce<28?(le&Ue)<=$s);return ae2.bytes=fe-ae,ie}var Fs=Math.pow(2,7),Ms=Math.pow(2,14),Ks=Math.pow(2,21),ks=Math.pow(2,28),Bs=Math.pow(2,35),js=Math.pow(2,42),Vs=Math.pow(2,49),qs=Math.pow(2,56),Ys=Math.pow(2,63),Gs=function(v){return v(Le.encode(v,k,ie),k),Fe2=v=>Le.encodingLength(v),oe2=(v,k)=>{const ie=k.byteLength,ae=Fe2(v),ce=ae+Fe2(ie),fe=new Uint8Array(ce+ie);return $e2(v,fe,0),$e2(ie,fe,ae),fe.set(k,ce),new Hs(v,ie,k,fe)},Hs=class{constructor(v,k,ie,ae){this.code=v,this.size=k,this.digest=ie,this.bytes=ae}},Me=({name:v,code:k,encode:ie})=>new Ws(v,k,ie),Ws=class{constructor(v,k,ie){this.name=v,this.code=k,this.encode=ie}digest(v){if(v instanceof Uint8Array){const k=this.encode(v);return k instanceof Uint8Array?oe2(this.code,k):k.then(ie=>oe2(this.code,ie))}else throw Error("Unknown type, must be binary type")}},Ke=v=>async k=>new Uint8Array(await crypto.subtle.digest(v,k)),Xs=Me({name:"sha2-256",code:18,encode:Ke("SHA-256")}),Zs=Me({name:"sha2-512",code:19,encode:Ke("SHA-512")}),Qs=Object.freeze({__proto__:null,sha256:Xs,sha512:Zs}),ke2=0,er="identity",Be=Oe2,tr=v=>oe2(ke2,Be(v)),ir={code:ke2,name:er,encode:Be,digest:tr},sr=Object.freeze({__proto__:null,identity:ir});new TextEncoder,new TextDecoder;var je2={...Hi,...Xi,...Qi,...ts,...rs,...ps,...bs,...fs,..._s,...xs};({...Qs,...sr});function Ve2(v){return globalThis.Buffer!=null?new Uint8Array(v.buffer,v.byteOffset,v.byteLength):v}function rr(v=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?Ve2(globalThis.Buffer.allocUnsafe(v)):new Uint8Array(v)}function qe2(v,k,ie,ae){return{name:v,prefix:k,encoder:{name:v,prefix:k,encode:ie},decoder:{decode:ae}}}var Ye2=qe2("utf8","u",v=>"u"+new TextDecoder("utf8").decode(v),v=>new TextEncoder().encode(v.substring(1))),he=qe2("ascii","a",v=>{let k="a";for(let ie=0;ie{v=v.substring(1);const k=rr(v.length);for(let ie=0;ie{if(!this.initialized){const ie=await this.getKeyChain();typeof ie<"u"&&(this.keychain=ie),this.initialized=!0}},this.has=ie=>(this.isInitialized(),this.keychain.has(ie)),this.set=async(ie,ae)=>{this.isInitialized(),this.keychain.set(ie,ae),await this.persist()},this.get=ie=>{this.isInitialized();const ae=this.keychain.get(ie);if(typeof ae>"u"){const{message:ce}=N$1("NO_MATCHING_KEY",`${this.name}: ${ie}`);throw new Error(ce)}return ae},this.del=async ie=>{this.isInitialized(),this.keychain.delete(ie),await this.persist()},this.core=v,this.logger=(0,import_logger.generateChildLogger)(k,this.name)}get context(){return(0,import_logger.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(v){await this.core.storage.setItem(this.storageKey,Bn(v))}async getKeyChain(){const v=await this.core.storage.getItem(this.storageKey);return typeof v<"u"?Yn(v):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}},It=class{constructor(v,k,ie){this.core=v,this.logger=k,this.name=We2,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=ae=>(this.isInitialized(),this.keychain.has(ae)),this.getClientId=async()=>{this.isInitialized();const ae=await this.getClientSeed(),ce=generateKeyPair(ae);return encodeIss(ce.publicKey)},this.generateKeyPair=()=>{this.isInitialized();const ae=Rn();return this.setPrivateKey(ae.publicKey,ae.privateKey)},this.signJWT=async ae=>{this.isInitialized();const ce=await this.getClientSeed(),fe=generateKeyPair(ce),le=An();return await signJWT(le,ae,Xe2,fe)},this.generateSharedKey=(ae,ce,fe)=>{this.isInitialized();const le=this.getPrivateKey(ae),ve=Un(le,ce);return this.setSymKey(ve,fe)},this.setSymKey=async(ae,ce)=>{this.isInitialized();const fe=ce||_n(ae);return await this.keychain.set(fe,ae),fe},this.deleteKeyPair=async ae=>{this.isInitialized(),await this.keychain.del(ae)},this.deleteSymKey=async ae=>{this.isInitialized(),await this.keychain.del(ae)},this.encode=async(ae,ce,fe)=>{this.isInitialized();const le=Pe(fe),ve=safeJsonStringify(ce);if(Vn(le)){const Ee=le.senderPublicKey,cr=le.receiverPublicKey;ae=await this.generateSharedKey(Ee,cr)}const pe=this.getSymKey(ae),{type:ye,senderPublicKey:me}=le;return jn({type:ye,symKey:pe,message:ve,senderPublicKey:me})},this.decode=async(ae,ce,fe)=>{this.isInitialized();const le=Dn(ce,fe);if(Vn(le)){const ve=le.receiverPublicKey,pe=le.senderPublicKey;ae=await this.generateSharedKey(ve,pe)}try{const ve=this.getSymKey(ae),pe=Cn({symKey:ve,encoded:ce});return safeJsonParse(pe)}catch(ve){this.logger.error(`Failed to decode message from topic: '${ae}', clientId: '${await this.getClientId()}'`),this.logger.error(ve)}},this.getPayloadType=ae=>{const ce=Z(ae);return $$b(ce.type)},this.getPayloadSenderPublicKey=ae=>{const ce=Z(ae);return ce.senderPublicKey?toString2$6(ce.senderPublicKey,p2):void 0},this.core=v,this.logger=(0,import_logger.generateChildLogger)(k,this.name),this.keychain=ie||new vt(this.core,this.logger)}get context(){return(0,import_logger.getLoggerContext)(this.logger)}async setPrivateKey(v,k){return await this.keychain.set(v,k),v}getPrivateKey(v){return this.keychain.get(v)}async getClientSeed(){let v="";try{v=this.keychain.get(ue2)}catch{v=An(),await this.keychain.set(ue2,v)}return ar(v,"base16")}getSymKey(v){return this.keychain.get(v)}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}},Ct2=class extends a{constructor(v,k){super(v,k),this.logger=v,this.core=k,this.messages=new Map,this.name=et2,this.version=tt2,this.initialized=!1,this.storagePrefix=O2,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const ie=await this.getRelayerMessages();typeof ie<"u"&&(this.messages=ie),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(ie){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(ie)}finally{this.initialized=!0}}},this.set=async(ie,ae)=>{this.isInitialized();const ce=$n(ae);let fe=this.messages.get(ie);return typeof fe>"u"&&(fe={}),typeof fe[ce]<"u"||(fe[ce]=ae,this.messages.set(ie,fe),await this.persist()),ce},this.get=ie=>{this.isInitialized();let ae=this.messages.get(ie);return typeof ae>"u"&&(ae={}),ae},this.has=(ie,ae)=>{this.isInitialized();const ce=this.get(ie),fe=$n(ae);return typeof ce[fe]<"u"},this.del=async ie=>{this.isInitialized(),this.messages.delete(ie),await this.persist()},this.logger=(0,import_logger.generateChildLogger)(v,this.name),this.core=k}get context(){return(0,import_logger.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(v){await this.core.storage.setItem(this.storageKey,Bn(v))}async getRelayerMessages(){const v=await this.core.storage.getItem(this.storageKey);return typeof v<"u"?Yn(v):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}},lr=class extends u{constructor(v,k){super(v,k),this.relayer=v,this.logger=k,this.events=new import_events5.EventEmitter,this.name=st2,this.queue=new Map,this.publishTimeout=(0,import_time3.toMiliseconds)(import_time3.TEN_SECONDS),this.queueTimeout=(0,import_time3.toMiliseconds)(import_time3.FIVE_SECONDS),this.needsTransportRestart=!1,this.publish=async(ie,ae,ce)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:ie,message:ae,opts:ce}});try{const fe=(ce==null?void 0:ce.ttl)||it2,le=at(ce),ve=(ce==null?void 0:ce.prompt)||!1,pe=(ce==null?void 0:ce.tag)||0,ye=(ce==null?void 0:ce.id)||getBigIntRpcId().toString(),me={topic:ie,message:ae,opts:{ttl:fe,relay:le,prompt:ve,tag:pe,id:ye}},Ee=setTimeout(()=>this.queue.set(ye,me),this.queueTimeout);try{await await et(this.rpcPublish(ie,ae,fe,le,ve,pe,ye),this.publishTimeout),clearTimeout(Ee),this.relayer.events.emit(g2.publish,me)}catch{this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0;return}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:ie,message:ae,opts:ce}})}catch(fe){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(fe),fe}},this.on=(ie,ae)=>{this.events.on(ie,ae)},this.once=(ie,ae)=>{this.events.once(ie,ae)},this.off=(ie,ae)=>{this.events.off(ie,ae)},this.removeListener=(ie,ae)=>{this.events.removeListener(ie,ae)},this.relayer=v,this.logger=(0,import_logger.generateChildLogger)(k,this.name),this.registerEventListeners()}get context(){return(0,import_logger.getLoggerContext)(this.logger)}rpcPublish(v,k,ie,ae,ce,fe,le){var ve,pe,ye,me;const Ee={method:ut(ae.protocol).publish,params:{topic:v,message:k,ttl:ie,prompt:ce,tag:fe},id:le};return I((ve=Ee.params)==null?void 0:ve.prompt)&&((pe=Ee.params)==null||delete pe.prompt),I((ye=Ee.params)==null?void 0:ye.tag)&&((me=Ee.params)==null||delete me.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:Ee}),this.relayer.request(Ee)}onPublish(v){this.queue.delete(v)}checkQueue(){this.queue.forEach(async v=>{const{topic:k,message:ie,opts:ae}=v;await this.publish(k,ie,ae)})}registerEventListeners(){this.relayer.core.heartbeat.on(import_heartbeat.HEARTBEAT_EVENTS.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(g2.connection_stalled);return}this.checkQueue()}),this.relayer.on(g2.message_ack,v=>{this.onPublish(v.id.toString())})}},dr=class{constructor(){this.map=new Map,this.set=(v,k)=>{const ie=this.get(v);this.exists(v,k)||this.map.set(v,[...ie,k])},this.get=v=>this.map.get(v)||[],this.exists=(v,k)=>this.get(v).includes(k),this.delete=(v,k)=>{if(typeof k>"u"){this.map.delete(v);return}if(!this.map.has(v))return;const ie=this.get(v);if(!this.exists(v,k))return;const ae=ie.filter(ce=>ce!==k);if(!ae.length){this.map.delete(v);return}this.map.set(v,ae)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}},gr=Object.defineProperty,pr=Object.defineProperties,Dr=Object.getOwnPropertyDescriptors,_t2=Object.getOwnPropertySymbols,yr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable,Rt2=(v,k,ie)=>k in v?gr(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,K=(v,k)=>{for(var ie in k||(k={}))yr.call(k,ie)&&Rt2(v,ie,k[ie]);if(_t2)for(var ie of _t2(k))br.call(k,ie)&&Rt2(v,ie,k[ie]);return v},pe2=(v,k)=>pr(v,Dr(k)),Tt2=class extends d2{constructor(v,k){super(v,k),this.relayer=v,this.logger=k,this.subscriptions=new Map,this.topicMap=new dr,this.events=new import_events5.EventEmitter,this.name=gt,this.version=pt2,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=O2,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(ie,ae)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:ie,opts:ae}});try{const ce=at(ae),fe={topic:ie,relay:ce};this.pending.set(ie,fe);const le=await this.rpcSubscribe(ie,ce);return this.onSubscribe(le,fe),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:ie,opts:ae}}),le}catch(ce){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(ce),ce}},this.unsubscribe=async(ie,ae)=>{await this.restartToComplete(),this.isInitialized(),typeof(ae==null?void 0:ae.id)<"u"?await this.unsubscribeById(ie,ae.id,ae):await this.unsubscribeByTopic(ie,ae)},this.isSubscribed=async ie=>this.topics.includes(ie)?!0:await new Promise((ae,ce)=>{const fe=new import_time3.Watch;fe.start(this.pendingSubscriptionWatchLabel);const le=setInterval(()=>{!this.pending.has(ie)&&this.topics.includes(ie)&&(clearInterval(le),fe.stop(this.pendingSubscriptionWatchLabel),ae(!0)),fe.elapsed(this.pendingSubscriptionWatchLabel)>=Dt2&&(clearInterval(le),fe.stop(this.pendingSubscriptionWatchLabel),ce(new Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1),this.on=(ie,ae)=>{this.events.on(ie,ae)},this.once=(ie,ae)=>{this.events.once(ie,ae)},this.off=(ie,ae)=>{this.events.off(ie,ae)},this.removeListener=(ie,ae)=>{this.events.removeListener(ie,ae)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=v,this.logger=(0,import_logger.generateChildLogger)(k,this.name),this.clientId=""}get context(){return(0,import_logger.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(v,k){let ie=!1;try{ie=this.getSubscription(v).topic===k}catch{}return ie}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(v,k){const ie=this.topicMap.get(v);await Promise.all(ie.map(async ae=>await this.unsubscribeById(v,ae,k)))}async unsubscribeById(v,k,ie){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:v,id:k,opts:ie}});try{const ae=at(ie);await this.rpcUnsubscribe(v,k,ae);const ce=A("USER_DISCONNECTED",`${this.name}, ${v}`);await this.onUnsubscribe(v,k,ce),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:v,id:k,opts:ie}})}catch(ae){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(ae),ae}}async rpcSubscribe(v,k){const ie={method:ut(k.protocol).subscribe,params:{topic:v}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:ie});try{await await et(this.relayer.request(ie),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(g2.connection_stalled)}return $n(v+this.clientId)}async rpcBatchSubscribe(v){if(!v.length)return;const k=v[0].relay,ie={method:ut(k.protocol).batchSubscribe,params:{topics:v.map(ae=>ae.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:ie});try{return await await et(this.relayer.request(ie),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(g2.connection_stalled)}}rpcUnsubscribe(v,k,ie){const ae={method:ut(ie.protocol).unsubscribe,params:{topic:v,id:k}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:ae}),this.relayer.request(ae)}onSubscribe(v,k){this.setSubscription(v,pe2(K({},k),{id:v})),this.pending.delete(k.topic)}onBatchSubscribe(v){v.length&&v.forEach(k=>{this.setSubscription(k.id,K({},k)),this.pending.delete(k.topic)})}async onUnsubscribe(v,k,ie){this.events.removeAllListeners(k),this.hasSubscription(k,v)&&this.deleteSubscription(k,ie),await this.relayer.messages.del(v)}async setRelayerSubscriptions(v){await this.relayer.core.storage.setItem(this.storageKey,v)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(v,k){this.subscriptions.has(v)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:v,subscription:k}),this.addSubscription(v,k))}addSubscription(v,k){this.subscriptions.set(v,K({},k)),this.topicMap.set(k.topic,v),this.events.emit(C2.created,k)}getSubscription(v){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:v});const k=this.subscriptions.get(v);if(!k){const{message:ie}=N$1("NO_MATCHING_KEY",`${this.name}: ${v}`);throw new Error(ie)}return k}deleteSubscription(v,k){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:v,reason:k});const ie=this.getSubscription(v);this.subscriptions.delete(v),this.topicMap.delete(ie.topic,v),this.events.emit(C2.deleted,pe2(K({},ie),{reason:k}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(C2.sync)}async reset(){if(this.cached.length){const v=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let k=0;k"u"||!v.length)return;if(this.subscriptions.size){const{message:k}=N$1("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(k),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(k)}this.cached=v,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(v){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(v)}}async batchSubscribe(v){if(!v.length)return;const k=await this.rpcBatchSubscribe(v);C(k)&&this.onBatchSubscribe(k.map((ie,ae)=>pe2(K({},v[ae]),{id:ie})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(this.relayer.transportExplicitlyClosed)return;const v=[];this.pending.forEach(k=>{v.push(k)}),await this.batchSubscribe(v)}registerEventListeners(){this.relayer.core.heartbeat.on(import_heartbeat.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(g2.connect,async()=>{await this.onConnect()}),this.relayer.on(g2.disconnect,()=>{this.onDisconnect()}),this.events.on(C2.created,async v=>{const k=C2.created;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,data:v}),await this.persist()}),this.events.on(C2.deleted,async v=>{const k=C2.deleted;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,data:v}),await this.persist()})}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}async restartToComplete(){this.restartInProgress&&await new Promise(v=>{const k=setInterval(()=>{this.restartInProgress||(clearInterval(k),v())},this.pollingInterval)})}},mr=Object.defineProperty,St2=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable,Pt2=(v,k,ie)=>k in v?mr(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,wr=(v,k)=>{for(var ie in k||(k={}))Er.call(k,ie)&&Pt2(v,ie,k[ie]);if(St2)for(var ie of St2(k))fr.call(k,ie)&&Pt2(v,ie,k[ie]);return v},Ot=class extends g{constructor(v){super(v),this.protocol="wc",this.version=2,this.events=new import_events5.EventEmitter,this.name=at2,this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.request=async k=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(k)}catch(ie){throw this.logger.debug("Failed to Publish Request"),this.logger.error(ie),ie}},this.core=v.core,this.logger=typeof v.logger<"u"&&typeof v.logger!="string"?(0,import_logger.generateChildLogger)(v.logger,this.name):(0,import_logger.pino)((0,import_logger.getDefaultLoggerOptions)({level:v.logger||nt2})),this.messages=new Ct2(this.logger,v.core),this.subscriber=new Tt2(this,this.logger),this.publisher=new lr(this,this.logger),this.relayUrl=(v==null?void 0:v.relayUrl)||le2,this.projectId=v.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${de}...`),await this.restartTransport(de)}this.registerEventListeners(),this.initialized=!0,setTimeout(async()=>{this.subscriber.topics.length===0&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},ut2)}get context(){return(0,import_logger.getLoggerContext)(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(v,k,ie){this.isInitialized(),await this.publisher.publish(v,k,ie),await this.recordMessageEvent({topic:v,message:k,publishedAt:Date.now()})}async subscribe(v,k){var ie;this.isInitialized();let ae=((ie=this.subscriber.topicMap.get(v))==null?void 0:ie[0])||"";return ae||(await Promise.all([new Promise(ce=>{this.subscriber.once(C2.created,fe=>{fe.topic===v&&ce()})}),new Promise(async ce=>{ae=await this.subscriber.subscribe(v,k),ce()})]),ae)}async unsubscribe(v,k){this.isInitialized(),await this.subscriber.unsubscribe(v,k)}on(v,k){this.events.on(v,k)}once(v,k){this.events.once(v,k)}off(v,k){this.events.off(v,k)}removeListener(v,k){this.events.removeListener(v,k)}async transportClose(){this.transportExplicitlyClosed=!0,this.connected&&(await this.provider.disconnect(),this.events.emit(g2.transport_closed))}async transportOpen(v){if(this.transportExplicitlyClosed=!1,!this.reconnecting){this.relayUrl=v||this.relayUrl,this.reconnecting=!0;try{await Promise.all([new Promise(k=>{this.initialized||k(),this.subscriber.once(C2.resubscribed,()=>{k()})}),await Promise.race([new Promise(async(k,ie)=>{await et(this.provider.connect(),1e4,`Socket stalled when trying to connect to ${this.relayUrl}`).catch(ae=>ie(ae)).then(()=>k()).finally(()=>this.removeListener(g2.transport_closed,this.rejectTransportOpen))}),new Promise(k=>this.once(g2.transport_closed,this.rejectTransportOpen))])])}catch(k){this.logger.error(k);const ie=k;if(!this.isConnectionStalled(ie.message))throw k;this.events.emit(g2.transport_closed)}finally{this.reconnecting=!1}}}async restartTransport(v){this.transportExplicitlyClosed||this.reconnecting||(this.relayUrl=v||this.relayUrl,this.connected&&await Promise.all([new Promise(k=>{this.provider.once(L2.disconnect,()=>{k()})}),this.transportClose()]),await this.createProvider(),await this.transportOpen())}isConnectionStalled(v){return this.staleConnectionErrors.some(k=>v.includes(k))}rejectTransportOpen(){throw new Error("Attempt to connect to relay via `transportOpen` has stalled. Retrying...")}async createProvider(){const v=await this.core.crypto.signJWT(this.relayUrl);this.provider=new JsonRpcProvider$1(new esm_default(qn({sdkVersion:ct2,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:v,useOnCloseEvent:!0}))),this.registerProviderListeners()}async recordMessageEvent(v){const{topic:k,message:ie}=v;await this.messages.set(k,ie)}async shouldIgnoreMessageEvent(v){const{topic:k,message:ie}=v;if(!ie||ie.length===0)return this.logger.debug(`Ignoring invalid/empty message: ${ie}`),!0;if(!await this.subscriber.isSubscribed(k))return this.logger.debug(`Ignoring message for non-subscribed topic ${k}`),!0;const ae=this.messages.has(k,ie);return ae&&this.logger.debug(`Ignoring duplicate message: ${ie}`),ae}async onProviderPayload(v){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:v}),isJsonRpcRequest(v)){if(!v.method.endsWith(ot2))return;const k=v.params,{topic:ie,message:ae,publishedAt:ce}=k.data,fe={topic:ie,message:ae,publishedAt:ce};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(wr({type:"event",event:k.id},fe)),this.events.emit(k.id,fe),await this.acknowledgePayload(v),await this.onMessageEvent(fe)}else isJsonRpcResponse(v)&&this.events.emit(g2.message_ack,v)}async onMessageEvent(v){await this.shouldIgnoreMessageEvent(v)||(this.events.emit(g2.message,v),await this.recordMessageEvent(v))}async acknowledgePayload(v){const k=formatJsonRpcResult(v.id,!0);await this.provider.connection.send(k)}registerProviderListeners(){this.provider.on(L2.payload,v=>this.onProviderPayload(v)),this.provider.on(L2.connect,()=>{this.events.emit(g2.connect)}),this.provider.on(L2.disconnect,()=>{this.onProviderDisconnect()}),this.provider.on(L2.error,v=>{this.logger.error(v),this.events.emit(g2.error,v)})}registerEventListeners(){this.events.on(g2.connection_stalled,async()=>{await this.restartTransport()})}onProviderDisconnect(){this.events.emit(g2.disconnect),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.restartTransport()},(0,import_time3.toMiliseconds)(ht))}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}async toEstablishConnection(){if(!this.connected){if(this.connecting)return await new Promise(v=>{const k=setInterval(()=>{this.connected&&(clearInterval(k),v())},this.connectionStatusPollingInterval)});await this.restartTransport()}}},vr=Object.defineProperty,xt2=Object.getOwnPropertySymbols,Ir=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,At2=(v,k,ie)=>k in v?vr(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,zt=(v,k)=>{for(var ie in k||(k={}))Ir.call(k,ie)&&At2(v,ie,k[ie]);if(xt2)for(var ie of xt2(k))Cr.call(k,ie)&&At2(v,ie,k[ie]);return v},Nt=class extends p{constructor(v,k,ie,ae=O2,ce=void 0){super(v,k,ie,ae),this.core=v,this.logger=k,this.name=ie,this.map=new Map,this.version=lt2,this.cached=[],this.initialized=!1,this.storagePrefix=O2,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(fe=>{this.getKey&&fe!==null&&!I(fe)?this.map.set(this.getKey(fe),fe):At(fe)?this.map.set(fe.id,fe):Ut(fe)&&this.map.set(fe.topic,fe)}),this.cached=[],this.initialized=!0)},this.set=async(fe,le)=>{this.isInitialized(),this.map.has(fe)?await this.update(fe,le):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:fe,value:le}),this.map.set(fe,le),await this.persist())},this.get=fe=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:fe}),this.getData(fe)),this.getAll=fe=>(this.isInitialized(),fe?this.values.filter(le=>Object.keys(fe).every(ve=>(0,import_lodash.default)(le[ve],fe[ve]))):this.values),this.update=async(fe,le)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:fe,update:le});const ve=zt(zt({},this.getData(fe)),le);this.map.set(fe,ve),await this.persist()},this.delete=async(fe,le)=>{this.isInitialized(),this.map.has(fe)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:fe,reason:le}),this.map.delete(fe),await this.persist())},this.logger=(0,import_logger.generateChildLogger)(k,this.name),this.storagePrefix=ae,this.getKey=ce}get context(){return(0,import_logger.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(v){await this.core.storage.setItem(this.storageKey,v)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(v){const k=this.map.get(v);if(!k){const{message:ie}=N$1("NO_MATCHING_KEY",`${this.name}: ${v}`);throw this.logger.error(ie),new Error(ie)}return k}async persist(){await this.setDataStore(this.values)}async restore(){try{const v=await this.getDataStore();if(typeof v>"u"||!v.length)return;if(this.map.size){const{message:k}=N$1("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(k),new Error(k)}this.cached=v,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(v){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(v)}}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}},Ut2=class{constructor(v,k){this.core=v,this.logger=k,this.name=yt2,this.version=bt,this.events=new import_events5.default,this.initialized=!1,this.storagePrefix=O2,this.ignoredPayloadTypes=[U],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:ie})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...ie])]},this.create=async()=>{this.isInitialized();const ie=An(),ae=await this.core.crypto.setSymKey(ie),ce=ot(import_time3.FIVE_MINUTES),fe={protocol:rt2},le={topic:ae,expiry:ce,relay:fe,active:!1},ve=yt({protocol:this.core.protocol,version:this.core.version,topic:ae,symKey:ie,relay:fe});return await this.pairings.set(ae,le),await this.core.relayer.subscribe(ae),this.core.expirer.set(ae,ce),{topic:ae,uri:ve}},this.pair=async ie=>{this.isInitialized(),this.isValidPair(ie);const{topic:ae,symKey:ce,relay:fe}=mt(ie.uri);if(this.pairings.keys.includes(ae))throw new Error(`Pairing already exists: ${ae}`);if(this.core.crypto.hasKeys(ae))throw new Error(`Keychain already exists: ${ae}`);const le=ot(import_time3.FIVE_MINUTES),ve={topic:ae,relay:fe,expiry:le,active:!1};return await this.pairings.set(ae,ve),await this.core.crypto.setSymKey(ce,ae),await this.core.relayer.subscribe(ae,{relay:fe}),this.core.expirer.set(ae,le),ie.activatePairing&&await this.activate({topic:ae}),ve},this.activate=async({topic:ie})=>{this.isInitialized();const ae=ot(import_time3.THIRTY_DAYS);await this.pairings.update(ie,{active:!0,expiry:ae}),this.core.expirer.set(ie,ae)},this.ping=async ie=>{this.isInitialized(),await this.isValidPing(ie);const{topic:ae}=ie;if(this.pairings.keys.includes(ae)){const ce=await this.sendRequest(ae,"wc_pairingPing",{}),{done:fe,resolve:le,reject:ve}=Xn();this.events.once(it("pairing_ping",ce),({error:pe})=>{pe?ve(pe):le()}),await fe()}},this.updateExpiry=async({topic:ie,expiry:ae})=>{this.isInitialized(),await this.pairings.update(ie,{expiry:ae})},this.updateMetadata=async({topic:ie,metadata:ae})=>{this.isInitialized(),await this.pairings.update(ie,{peerMetadata:ae})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async ie=>{this.isInitialized(),await this.isValidDisconnect(ie);const{topic:ae}=ie;this.pairings.keys.includes(ae)&&(await this.sendRequest(ae,"wc_pairingDelete",A("USER_DISCONNECTED")),await this.deletePairing(ae))},this.sendRequest=async(ie,ae,ce)=>{const fe=formatJsonRpcRequest(ae,ce),le=await this.core.crypto.encode(ie,fe),ve=$2[ae].req;return this.core.history.set(ie,fe),this.core.relayer.publish(ie,le,ve),fe.id},this.sendResult=async(ie,ae,ce)=>{const fe=formatJsonRpcResult(ie,ce),le=await this.core.crypto.encode(ae,fe),ve=await this.core.history.get(ae,ie),pe=$2[ve.request.method].res;await this.core.relayer.publish(ae,le,pe),await this.core.history.resolve(fe)},this.sendError=async(ie,ae,ce)=>{const fe=formatJsonRpcError(ie,ce),le=await this.core.crypto.encode(ae,fe),ve=await this.core.history.get(ae,ie),pe=$2[ve.request.method]?$2[ve.request.method].res:$2.unregistered_method.res;await this.core.relayer.publish(ae,le,pe),await this.core.history.resolve(fe)},this.deletePairing=async(ie,ae)=>{await this.core.relayer.unsubscribe(ie),await Promise.all([this.pairings.delete(ie,A("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(ie),ae?Promise.resolve():this.core.expirer.del(ie)])},this.cleanup=async()=>{const ie=this.pairings.getAll().filter(ae=>st(ae.expiry));await Promise.all(ie.map(ae=>this.deletePairing(ae.topic)))},this.onRelayEventRequest=ie=>{const{topic:ae,payload:ce}=ie;switch(ce.method){case"wc_pairingPing":return this.onPairingPingRequest(ae,ce);case"wc_pairingDelete":return this.onPairingDeleteRequest(ae,ce);default:return this.onUnknownRpcMethodRequest(ae,ce)}},this.onRelayEventResponse=async ie=>{const{topic:ae,payload:ce}=ie,fe=(await this.core.history.get(ae,ce.id)).request.method;switch(fe){case"wc_pairingPing":return this.onPairingPingResponse(ae,ce);default:return this.onUnknownRpcMethodResponse(fe)}},this.onPairingPingRequest=async(ie,ae)=>{const{id:ce}=ae;try{this.isValidPing({topic:ie}),await this.sendResult(ce,ie,!0),this.events.emit("pairing_ping",{id:ce,topic:ie})}catch(fe){await this.sendError(ce,ie,fe),this.logger.error(fe)}},this.onPairingPingResponse=(ie,ae)=>{const{id:ce}=ae;setTimeout(()=>{isJsonRpcResult(ae)?this.events.emit(it("pairing_ping",ce),{}):isJsonRpcError(ae)&&this.events.emit(it("pairing_ping",ce),{error:ae.error})},500)},this.onPairingDeleteRequest=async(ie,ae)=>{const{id:ce}=ae;try{this.isValidDisconnect({topic:ie}),await this.deletePairing(ie),this.events.emit("pairing_delete",{id:ce,topic:ie})}catch(fe){await this.sendError(ce,ie,fe),this.logger.error(fe)}},this.onUnknownRpcMethodRequest=async(ie,ae)=>{const{id:ce,method:fe}=ae;try{if(this.registeredMethods.includes(fe))return;const le=A("WC_METHOD_UNSUPPORTED",fe);await this.sendError(ce,ie,le),this.logger.error(le)}catch(le){await this.sendError(ce,ie,le),this.logger.error(le)}},this.onUnknownRpcMethodResponse=ie=>{this.registeredMethods.includes(ie)||this.logger.error(A("WC_METHOD_UNSUPPORTED",ie))},this.isValidPair=ie=>{if(!Dt(ie)){const{message:ae}=N$1("MISSING_OR_INVALID",`pair() params: ${ie}`);throw new Error(ae)}if(!Rt(ie.uri)){const{message:ae}=N$1("MISSING_OR_INVALID",`pair() uri: ${ie.uri}`);throw new Error(ae)}},this.isValidPing=async ie=>{if(!Dt(ie)){const{message:ce}=N$1("MISSING_OR_INVALID",`ping() params: ${ie}`);throw new Error(ce)}const{topic:ae}=ie;await this.isValidPairingTopic(ae)},this.isValidDisconnect=async ie=>{if(!Dt(ie)){const{message:ce}=N$1("MISSING_OR_INVALID",`disconnect() params: ${ie}`);throw new Error(ce)}const{topic:ae}=ie;await this.isValidPairingTopic(ae)},this.isValidPairingTopic=async ie=>{if(!y2(ie,!1)){const{message:ae}=N$1("MISSING_OR_INVALID",`pairing topic should be a string: ${ie}`);throw new Error(ae)}if(!this.pairings.keys.includes(ie)){const{message:ae}=N$1("NO_MATCHING_KEY",`pairing topic doesn't exist: ${ie}`);throw new Error(ae)}if(st(this.pairings.get(ie).expiry)){await this.deletePairing(ie);const{message:ae}=N$1("EXPIRED",`pairing topic: ${ie}`);throw new Error(ae)}},this.core=v,this.logger=(0,import_logger.generateChildLogger)(k,this.name),this.pairings=new Nt(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,import_logger.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}registerRelayerEvents(){this.core.relayer.on(g2.message,async v=>{const{topic:k,message:ie}=v;if(!this.pairings.keys.includes(k)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(ie)))return;const ae=await this.core.crypto.decode(k,ie);isJsonRpcRequest(ae)?(this.core.history.set(k,ae),this.onRelayEventRequest({topic:k,payload:ae})):isJsonRpcResponse(ae)&&(await this.core.history.resolve(ae),await this.onRelayEventResponse({topic:k,payload:ae}),this.core.history.delete(k,ae.id))})}registerExpirerEvents(){this.core.expirer.on(w.expired,async v=>{const{topic:k}=rt(v.target);k&&this.pairings.keys.includes(k)&&(await this.deletePairing(k,!0),this.events.emit("pairing_expire",{topic:k}))})}},Lt2=class extends h{constructor(v,k){super(v,k),this.core=v,this.logger=k,this.records=new Map,this.events=new import_events5.EventEmitter,this.name=mt2,this.version=Et,this.cached=[],this.initialized=!1,this.storagePrefix=O2,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(ie=>this.records.set(ie.id,ie)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(ie,ae,ce)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:ie,request:ae,chainId:ce}),this.records.has(ae.id))return;const fe={id:ae.id,topic:ie,request:{method:ae.method,params:ae.params||null},chainId:ce,expiry:ot(import_time3.THIRTY_DAYS)};this.records.set(fe.id,fe),this.events.emit(_.created,fe)},this.resolve=async ie=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:ie}),!this.records.has(ie.id))return;const ae=await this.getRecord(ie.id);typeof ae.response>"u"&&(ae.response=isJsonRpcError(ie)?{error:ie.error}:{result:ie.result},this.records.set(ae.id,ae),this.events.emit(_.updated,ae))},this.get=async(ie,ae)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:ie,id:ae}),await this.getRecord(ae)),this.delete=(ie,ae)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:ae}),this.values.forEach(ce=>{if(ce.topic===ie){if(typeof ae<"u"&&ce.id!==ae)return;this.records.delete(ce.id),this.events.emit(_.deleted,ce)}})},this.exists=async(ie,ae)=>(this.isInitialized(),this.records.has(ae)?(await this.getRecord(ae)).topic===ie:!1),this.on=(ie,ae)=>{this.events.on(ie,ae)},this.once=(ie,ae)=>{this.events.once(ie,ae)},this.off=(ie,ae)=>{this.events.off(ie,ae)},this.removeListener=(ie,ae)=>{this.events.removeListener(ie,ae)},this.logger=(0,import_logger.generateChildLogger)(k,this.name)}get context(){return(0,import_logger.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const v=[];return this.values.forEach(k=>{if(typeof k.response<"u")return;const ie={topic:k.topic,request:formatJsonRpcRequest(k.request.method,k.request.params,k.id),chainId:k.chainId};return v.push(ie)}),v}async setJsonRpcRecords(v){await this.core.storage.setItem(this.storageKey,v)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(v){this.isInitialized();const k=this.records.get(v);if(!k){const{message:ie}=N$1("NO_MATCHING_KEY",`${this.name}: ${v}`);throw new Error(ie)}return k}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(_.sync)}async restore(){try{const v=await this.getJsonRpcRecords();if(typeof v>"u"||!v.length)return;if(this.records.size){const{message:k}=N$1("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(k),new Error(k)}this.cached=v,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(v){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(v)}}registerEventListeners(){this.events.on(_.created,v=>{const k=_.created;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,record:v}),this.persist()}),this.events.on(_.updated,v=>{const k=_.updated;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,record:v}),this.persist()}),this.events.on(_.deleted,v=>{const k=_.deleted;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,record:v}),this.persist()}),this.core.heartbeat.on(import_heartbeat.HEARTBEAT_EVENTS.pulse,()=>{this.cleanup()})}cleanup(){try{this.records.forEach(v=>{(0,import_time3.toMiliseconds)(v.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${v.id}`),this.delete(v.topic,v.id))})}catch(v){this.logger.warn(v)}}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}},$t2=class extends E{constructor(v,k){super(v,k),this.core=v,this.logger=k,this.expirations=new Map,this.events=new import_events5.EventEmitter,this.name=ft2,this.version=wt2,this.cached=[],this.initialized=!1,this.storagePrefix=O2,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(ie=>this.expirations.set(ie.target,ie)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=ie=>{try{const ae=this.formatTarget(ie);return typeof this.getExpiration(ae)<"u"}catch{return!1}},this.set=(ie,ae)=>{this.isInitialized();const ce=this.formatTarget(ie),fe={target:ce,expiry:ae};this.expirations.set(ce,fe),this.checkExpiry(ce,fe),this.events.emit(w.created,{target:ce,expiration:fe})},this.get=ie=>{this.isInitialized();const ae=this.formatTarget(ie);return this.getExpiration(ae)},this.del=ie=>{if(this.isInitialized(),this.has(ie)){const ae=this.formatTarget(ie),ce=this.getExpiration(ae);this.expirations.delete(ae),this.events.emit(w.deleted,{target:ae,expiration:ce})}},this.on=(ie,ae)=>{this.events.on(ie,ae)},this.once=(ie,ae)=>{this.events.once(ie,ae)},this.off=(ie,ae)=>{this.events.off(ie,ae)},this.removeListener=(ie,ae)=>{this.events.removeListener(ie,ae)},this.logger=(0,import_logger.generateChildLogger)(k,this.name)}get context(){return(0,import_logger.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(v){if(typeof v=="string")return nt(v);if(typeof v=="number")return tt(v);const{message:k}=N$1("UNKNOWN_TYPE",`Target type: ${typeof v}`);throw new Error(k)}async setExpirations(v){await this.core.storage.setItem(this.storageKey,v)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(w.sync)}async restore(){try{const v=await this.getExpirations();if(typeof v>"u"||!v.length)return;if(this.expirations.size){const{message:k}=N$1("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(k),new Error(k)}this.cached=v,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(v){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(v)}}getExpiration(v){const k=this.expirations.get(v);if(!k){const{message:ie}=N$1("NO_MATCHING_KEY",`${this.name}: ${v}`);throw this.logger.error(ie),new Error(ie)}return k}checkExpiry(v,k){const{expiry:ie}=k;(0,import_time3.toMiliseconds)(ie)-Date.now()<=0&&this.expire(v,k)}expire(v,k){this.expirations.delete(v),this.events.emit(w.expired,{target:v,expiration:k})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((v,k)=>this.checkExpiry(k,v))}registerEventListeners(){this.core.heartbeat.on(import_heartbeat.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(w.created,v=>{const k=w.created;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,data:v}),this.persist()}),this.events.on(w.expired,v=>{const k=w.expired;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,data:v}),this.persist()}),this.events.on(w.deleted,v=>{const k=w.deleted;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,data:v}),this.persist()})}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}},Ft2=class extends y{constructor(v,k){super(v,k),this.projectId=v,this.logger=k,this.name=X,this.initialized=!1,this.init=async ie=>{$e()||!je()||(this.verifyUrl=(ie==null?void 0:ie.verifyUrl)||ge,await this.createIframe())},this.register=async ie=>{var ae;if(this.initialized||await this.init(),!!this.iframe)try{(ae=this.iframe.contentWindow)==null||ae.postMessage(ie.attestationId,this.verifyUrl),this.logger.info(`postMessage sent: ${ie.attestationId} ${this.verifyUrl}`)}catch{}},this.resolve=async ie=>{var ae;if(this.isDevEnv)return"";this.logger.info(`resolving attestation: ${ie.attestationId}`);const ce=this.startAbortTimer(import_time3.FIVE_SECONDS),fe=await fetch(`${this.verifyUrl}/attestation/${ie.attestationId}`,{signal:this.abortController.signal});return clearTimeout(ce),fe.status===200?(ae=await fe.json())==null?void 0:ae.origin:""},this.createIframe=async()=>{try{await Promise.race([new Promise((ie,ae)=>{if(document.getElementById(X))return ie();const ce=document.createElement("iframe");ce.setAttribute("id",X),ce.setAttribute("src",`${this.verifyUrl}/${this.projectId}`),ce.style.display="none",ce.addEventListener("load",()=>{this.initialized=!0,ie()}),ce.addEventListener("error",fe=>{ae(fe)}),document.body.append(ce),this.iframe=ce}),new Promise(ie=>{setTimeout(()=>ie("iframe load timeout"),(0,import_time3.toMiliseconds)(import_time3.ONE_SECOND/2))})])}catch(ie){this.logger.error(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.error(ie)}},this.logger=(0,import_logger.generateChildLogger)(k,this.name),this.verifyUrl=ge,this.abortController=new AbortController,this.isDevEnv=ee()&&process.env.IS_VITEST}get context(){return(0,import_logger.getLoggerContext)(this.logger)}startAbortTimer(v){return setTimeout(()=>this.abortController.abort(),(0,import_time3.toMiliseconds)(v))}},_r=Object.defineProperty,Mt2=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,Tr=Object.prototype.propertyIsEnumerable,Kt2=(v,k,ie)=>k in v?_r(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,kt2=(v,k)=>{for(var ie in k||(k={}))Rr.call(k,ie)&&Kt2(v,ie,k[ie]);if(Mt2)for(var ie of Mt2(k))Tr.call(k,ie)&&Kt2(v,ie,k[ie]);return v},Z2=class extends n$1{constructor(v){super(v),this.protocol=ce2,this.version=Ge2,this.name=W,this.events=new import_events5.EventEmitter,this.initialized=!1,this.on=(ie,ae)=>this.events.on(ie,ae),this.once=(ie,ae)=>this.events.once(ie,ae),this.off=(ie,ae)=>this.events.off(ie,ae),this.removeListener=(ie,ae)=>this.events.removeListener(ie,ae),this.projectId=v==null?void 0:v.projectId,this.relayUrl=(v==null?void 0:v.relayUrl)||le2;const k=typeof(v==null?void 0:v.logger)<"u"&&typeof(v==null?void 0:v.logger)!="string"?v.logger:(0,import_logger.pino)((0,import_logger.getDefaultLoggerOptions)({level:(v==null?void 0:v.logger)||Je2.logger}));this.logger=(0,import_logger.generateChildLogger)(k,this.name),this.heartbeat=new import_heartbeat.HeartBeat,this.crypto=new It(this,this.logger,v==null?void 0:v.keychain),this.history=new Lt2(this,this.logger),this.expirer=new $t2(this,this.logger),this.storage=v!=null&&v.storage?v.storage:new import_keyvaluestorage.default(kt2(kt2({},He2),v==null?void 0:v.storageOptions)),this.relayer=new Ot({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new Ut2(this,this.logger),this.verify=new Ft2(this.projectId||"",this.logger)}static async init(v){const k=new Z2(v);await k.initialize();const ie=await k.crypto.getClientId();return await k.storage.setItem(dt2,ie),k}get context(){return(0,import_logger.getLoggerContext)(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(v){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,v),this.logger.error(v.message),v}}},Sr=Z2,import_logger2=__toESM(require_cjs4()),import_events6=__toESM(require_events()),import_time4=__toESM(require_cjs2()),Y2="wc",J3=2,X2="client",G3=`${Y2}@${J3}:${X2}:`,$3={name:X2,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},te="WALLETCONNECT_DEEPLINK_CHOICE",ie2="proposal",re="Proposal expired",ne3="session",A2=import_time4.SEVEN_DAYS,oe3="engine",O3={wc_sessionPropose:{req:{ttl:import_time4.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:import_time4.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:import_time4.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:import_time4.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:import_time4.ONE_DAY,prompt:!1,tag:1104},res:{ttl:import_time4.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:import_time4.ONE_DAY,prompt:!1,tag:1106},res:{ttl:import_time4.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:import_time4.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:import_time4.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:import_time4.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:import_time4.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:import_time4.ONE_DAY,prompt:!1,tag:1112},res:{ttl:import_time4.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:import_time4.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:import_time4.THIRTY_SECONDS,prompt:!1,tag:1115}}},M3={min:import_time4.FIVE_MINUTES,max:import_time4.SEVEN_DAYS},V2={idle:"idle",active:"active"},ae3="request",ce3=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"],ts2=Object.defineProperty,is2=Object.defineProperties,rs2=Object.getOwnPropertyDescriptors,le3=Object.getOwnPropertySymbols,ns2=Object.prototype.hasOwnProperty,os2=Object.prototype.propertyIsEnumerable,pe3=(v,k,ie)=>k in v?ts2(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,w2=(v,k)=>{for(var ie in k||(k={}))ns2.call(k,ie)&&pe3(v,ie,k[ie]);if(le3)for(var ie of le3(k))os2.call(k,ie)&&pe3(v,ie,k[ie]);return v},H3=(v,k)=>is2(v,rs2(k)),as2=class extends S{constructor(v){super(v),this.name=oe3,this.events=new import_events6.default,this.initialized=!1,this.ignoredPayloadTypes=[U],this.requestQueue={state:V2.idle,requests:[]},this.requestQueueDelay=import_time4.ONE_SECOND,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(O3)}),this.initialized=!0,setTimeout(()=>{this.requestQueue.requests=this.getPendingSessionRequests(),this.processRequestQueue()},(0,import_time4.toMiliseconds)(this.requestQueueDelay)))},this.connect=async k=>{this.isInitialized();const ie=H3(w2({},k),{requiredNamespaces:k.requiredNamespaces||{},optionalNamespaces:k.optionalNamespaces||{}});await this.isValidConnect(ie);const{pairingTopic:ae,requiredNamespaces:ce,optionalNamespaces:fe,sessionProperties:le,relays:ve}=ie;let pe=ae,ye,me=!1;if(pe&&(me=this.client.core.pairing.pairings.get(pe).active),!pe||!me){const{topic:jr,uri:Mr}=await this.client.core.pairing.create();pe=jr,ye=Mr}const Ee=await this.client.core.crypto.generateKeyPair(),cr=w2({requiredNamespaces:ce,optionalNamespaces:fe,relays:ve!=null?ve:[{protocol:rt2}],proposer:{publicKey:Ee,metadata:this.client.metadata}},le&&{sessionProperties:le}),{reject:Br,resolve:$r,done:Pr}=Xn(import_time4.FIVE_MINUTES,re);if(this.events.once(it("session_connect"),async({error:jr,session:Mr})=>{if(jr)Br(jr);else if(Mr){Mr.self.publicKey=Ee;const Lr=H3(w2({},Mr),{requiredNamespaces:Mr.requiredNamespaces,optionalNamespaces:Mr.optionalNamespaces});await this.client.session.set(Mr.topic,Lr),await this.setExpiry(Mr.topic,Mr.expiry),pe&&await this.client.core.pairing.updateMetadata({topic:pe,metadata:Mr.peer.metadata}),$r(Lr)}}),!pe){const{message:jr}=N$1("NO_MATCHING_KEY",`connect() pairing topic: ${pe}`);throw new Error(jr)}const Or=await this.sendRequest(pe,"wc_sessionPropose",cr),ur=ot(import_time4.FIVE_MINUTES);return await this.setProposal(Or,w2({id:Or,expiry:ur},cr)),{uri:ye,approval:Pr}},this.pair=async k=>(this.isInitialized(),await this.client.core.pairing.pair(k)),this.approve=async k=>{this.isInitialized(),await this.isValidApprove(k);const{id:ie,relayProtocol:ae,namespaces:ce,sessionProperties:fe}=k,le=this.client.proposal.get(ie);let{pairingTopic:ve,proposer:pe,requiredNamespaces:ye,optionalNamespaces:me}=le;ve=ve||"",H(ye)||(ye=St(ce,"approve()"));const Ee=await this.client.core.crypto.generateKeyPair(),cr=pe.publicKey,Br=await this.client.core.crypto.generateSharedKey(Ee,cr);ve&&ie&&(await this.client.core.pairing.updateMetadata({topic:ve,metadata:pe.metadata}),await this.sendResult(ie,ve,{relay:{protocol:ae!=null?ae:"irn"},responderPublicKey:Ee}),await this.client.proposal.delete(ie,A("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:ve}));const $r=w2({relay:{protocol:ae!=null?ae:"irn"},namespaces:ce,requiredNamespaces:ye,optionalNamespaces:me,pairingTopic:ve,controller:{publicKey:Ee,metadata:this.client.metadata},expiry:ot(A2)},fe&&{sessionProperties:fe});await this.client.core.relayer.subscribe(Br),await this.sendRequest(Br,"wc_sessionSettle",$r);const Pr=H3(w2({},$r),{topic:Br,pairingTopic:ve,acknowledged:!1,self:$r.controller,peer:{publicKey:pe.publicKey,metadata:pe.metadata},controller:Ee});return await this.client.session.set(Br,Pr),await this.setExpiry(Br,ot(A2)),{topic:Br,acknowledged:()=>new Promise(Or=>setTimeout(()=>Or(this.client.session.get(Br)),500))}},this.reject=async k=>{this.isInitialized(),await this.isValidReject(k);const{id:ie,reason:ae}=k,{pairingTopic:ce}=this.client.proposal.get(ie);ce&&(await this.sendError(ie,ce,ae),await this.client.proposal.delete(ie,A("USER_DISCONNECTED")))},this.update=async k=>{this.isInitialized(),await this.isValidUpdate(k);const{topic:ie,namespaces:ae}=k,ce=await this.sendRequest(ie,"wc_sessionUpdate",{namespaces:ae}),{done:fe,resolve:le,reject:ve}=Xn();return this.events.once(it("session_update",ce),({error:pe})=>{pe?ve(pe):le()}),await this.client.session.update(ie,{namespaces:ae}),{acknowledged:fe}},this.extend=async k=>{this.isInitialized(),await this.isValidExtend(k);const{topic:ie}=k,ae=await this.sendRequest(ie,"wc_sessionExtend",{}),{done:ce,resolve:fe,reject:le}=Xn();return this.events.once(it("session_extend",ae),({error:ve})=>{ve?le(ve):fe()}),await this.setExpiry(ie,ot(A2)),{acknowledged:ce}},this.request=async k=>{this.isInitialized(),await this.isValidRequest(k);const{chainId:ie,request:ae,topic:ce,expiry:fe}=k,le=await this.sendRequest(ce,"wc_sessionRequest",{request:ae,chainId:ie},fe),{done:ve,resolve:pe,reject:ye}=Xn(fe);this.events.once(it("session_request",le),({error:Ee,result:cr})=>{Ee?ye(Ee):pe(cr)}),this.client.events.emit("session_request_sent",{topic:ce,request:ae,chainId:ie,id:le});const me=await this.client.core.storage.getItem(te);return ct({id:le,topic:ce,wcDeepLink:me}),await ve()},this.respond=async k=>{this.isInitialized(),await this.isValidRespond(k);const{topic:ie,response:ae}=k,{id:ce}=ae;isJsonRpcResult(ae)?await this.sendResult(ce,ie,ae.result):isJsonRpcError(ae)&&await this.sendError(ce,ie,ae.error),this.cleanupAfterResponse(k)},this.ping=async k=>{this.isInitialized(),await this.isValidPing(k);const{topic:ie}=k;if(this.client.session.keys.includes(ie)){const ae=await this.sendRequest(ie,"wc_sessionPing",{}),{done:ce,resolve:fe,reject:le}=Xn();this.events.once(it("session_ping",ae),({error:ve})=>{ve?le(ve):fe()}),await ce()}else this.client.core.pairing.pairings.keys.includes(ie)&&await this.client.core.pairing.ping({topic:ie})},this.emit=async k=>{this.isInitialized(),await this.isValidEmit(k);const{topic:ie,event:ae,chainId:ce}=k;await this.sendRequest(ie,"wc_sessionEvent",{event:ae,chainId:ce})},this.disconnect=async k=>{this.isInitialized(),await this.isValidDisconnect(k);const{topic:ie}=k;if(this.client.session.keys.includes(ie)){const ae=getBigIntRpcId().toString();let ce;const fe=le=>{(le==null?void 0:le.id.toString())===ae&&(this.client.core.relayer.events.removeListener(g2.message_ack,fe),ce())};await Promise.all([new Promise(le=>{ce=le,this.client.core.relayer.on(g2.message_ack,fe)}),this.sendRequest(ie,"wc_sessionDelete",A("USER_DISCONNECTED"),void 0,ae)]),await this.deleteSession(ie)}else await this.client.core.pairing.disconnect({topic:ie})},this.find=k=>(this.isInitialized(),this.client.session.getAll().filter(ie=>wt(ie,k))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async k=>{if(k.pairingTopic)try{const ie=this.client.core.pairing.pairings.get(k.pairingTopic),ae=this.client.core.pairing.pairings.getAll().filter(ce=>{var fe,le;return((fe=ce.peerMetadata)==null?void 0:fe.url)&&((le=ce.peerMetadata)==null?void 0:le.url)===k.peer.metadata.url&&ce.topic&&ce.topic!==ie.topic});if(ae.length===0)return;this.client.logger.info(`Cleaning up ${ae.length} duplicate pairing(s)`),await Promise.all(ae.map(ce=>this.client.core.pairing.disconnect({topic:ce.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(ie){this.client.logger.error(ie)}},this.deleteSession=async(k,ie)=>{const{self:ae}=this.client.session.get(k);await this.client.core.relayer.unsubscribe(k),this.client.session.delete(k,A("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(ae.publicKey)&&await this.client.core.crypto.deleteKeyPair(ae.publicKey),this.client.core.crypto.keychain.has(k)&&await this.client.core.crypto.deleteSymKey(k),ie||this.client.core.expirer.del(k)},this.deleteProposal=async(k,ie)=>{await Promise.all([this.client.proposal.delete(k,A("USER_DISCONNECTED")),ie?Promise.resolve():this.client.core.expirer.del(k)])},this.deletePendingSessionRequest=async(k,ie,ae=!1)=>{await Promise.all([this.client.pendingRequest.delete(k,ie),ae?Promise.resolve():this.client.core.expirer.del(k)]),this.requestQueue.requests=this.requestQueue.requests.filter(ce=>ce.id!==k),ae&&(this.requestQueue.state=V2.idle)},this.setExpiry=async(k,ie)=>{this.client.session.keys.includes(k)&&await this.client.session.update(k,{expiry:ie}),this.client.core.expirer.set(k,ie)},this.setProposal=async(k,ie)=>{await this.client.proposal.set(k,ie),this.client.core.expirer.set(k,ie.expiry)},this.setPendingSessionRequest=async k=>{const ie=O3.wc_sessionRequest.req.ttl,{id:ae,topic:ce,params:fe}=k;await this.client.pendingRequest.set(ae,{id:ae,topic:ce,params:fe}),ie&&this.client.core.expirer.set(ae,ot(ie))},this.sendRequest=async(k,ie,ae,ce,fe)=>{const le=formatJsonRpcRequest(ie,ae);if(je()&&ce3.includes(ie)){const ye=$n(JSON.stringify(le));await this.client.core.verify.register({attestationId:ye})}const ve=await this.client.core.crypto.encode(k,le),pe=O3[ie].req;return ce&&(pe.ttl=ce),fe&&(pe.id=fe),this.client.core.history.set(k,le),this.client.core.relayer.publish(k,ve,pe),le.id},this.sendResult=async(k,ie,ae)=>{const ce=formatJsonRpcResult(k,ae),fe=await this.client.core.crypto.encode(ie,ce),le=await this.client.core.history.get(ie,k),ve=O3[le.request.method].res;this.client.core.relayer.publish(ie,fe,ve),await this.client.core.history.resolve(ce)},this.sendError=async(k,ie,ae)=>{const ce=formatJsonRpcError(k,ae),fe=await this.client.core.crypto.encode(ie,ce),le=await this.client.core.history.get(ie,k),ve=O3[le.request.method].res;this.client.core.relayer.publish(ie,fe,ve),await this.client.core.history.resolve(ce)},this.cleanup=async()=>{const k=[],ie=[];this.client.session.getAll().forEach(ae=>{st(ae.expiry)&&k.push(ae.topic)}),this.client.proposal.getAll().forEach(ae=>{st(ae.expiry)&&ie.push(ae.id)}),await Promise.all([...k.map(ae=>this.deleteSession(ae)),...ie.map(ae=>this.deleteProposal(ae))])},this.onRelayEventRequest=k=>{const{topic:ie,payload:ae}=k,ce=ae.method;switch(ce){case"wc_sessionPropose":return this.onSessionProposeRequest(ie,ae);case"wc_sessionSettle":return this.onSessionSettleRequest(ie,ae);case"wc_sessionUpdate":return this.onSessionUpdateRequest(ie,ae);case"wc_sessionExtend":return this.onSessionExtendRequest(ie,ae);case"wc_sessionPing":return this.onSessionPingRequest(ie,ae);case"wc_sessionDelete":return this.onSessionDeleteRequest(ie,ae);case"wc_sessionRequest":return this.onSessionRequest(ie,ae);case"wc_sessionEvent":return this.onSessionEventRequest(ie,ae);default:return this.client.logger.info(`Unsupported request method ${ce}`)}},this.onRelayEventResponse=async k=>{const{topic:ie,payload:ae}=k,ce=(await this.client.core.history.get(ie,ae.id)).request.method;switch(ce){case"wc_sessionPropose":return this.onSessionProposeResponse(ie,ae);case"wc_sessionSettle":return this.onSessionSettleResponse(ie,ae);case"wc_sessionUpdate":return this.onSessionUpdateResponse(ie,ae);case"wc_sessionExtend":return this.onSessionExtendResponse(ie,ae);case"wc_sessionPing":return this.onSessionPingResponse(ie,ae);case"wc_sessionRequest":return this.onSessionRequestResponse(ie,ae);default:return this.client.logger.info(`Unsupported response method ${ce}`)}},this.onRelayEventUnknownPayload=k=>{const{topic:ie}=k,{message:ae}=N$1("MISSING_OR_INVALID",`Decoded payload on topic ${ie} is not identifiable as a JSON-RPC request or a response.`);throw new Error(ae)},this.onSessionProposeRequest=async(k,ie)=>{const{params:ae,id:ce}=ie;try{this.isValidConnect(w2({},ie.params));const fe=ot(import_time4.FIVE_MINUTES),le=w2({id:ce,pairingTopic:k,expiry:fe},ae);await this.setProposal(ce,le);const ve=$n(JSON.stringify(ie)),pe=await this.getVerifyContext(ve,le.proposer.metadata);this.client.events.emit("session_proposal",{id:ce,params:le,verifyContext:pe})}catch(fe){await this.sendError(ce,k,fe),this.client.logger.error(fe)}},this.onSessionProposeResponse=async(k,ie)=>{const{id:ae}=ie;if(isJsonRpcResult(ie)){const{result:ce}=ie;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:ce});const fe=this.client.proposal.get(ae);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:fe});const le=fe.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:le});const ve=ce.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:ve});const pe=await this.client.core.crypto.generateSharedKey(le,ve);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:pe});const ye=await this.client.core.relayer.subscribe(pe);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:ye}),await this.client.core.pairing.activate({topic:k})}else isJsonRpcError(ie)&&(await this.client.proposal.delete(ae,A("USER_DISCONNECTED")),this.events.emit(it("session_connect"),{error:ie.error}))},this.onSessionSettleRequest=async(k,ie)=>{const{id:ae,params:ce}=ie;try{this.isValidSessionSettleRequest(ce);const{relay:fe,controller:le,expiry:ve,namespaces:pe,requiredNamespaces:ye,optionalNamespaces:me,sessionProperties:Ee,pairingTopic:cr}=ie.params,Br=w2({topic:k,relay:fe,expiry:ve,namespaces:pe,acknowledged:!0,pairingTopic:cr,requiredNamespaces:ye,optionalNamespaces:me,controller:le.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:le.publicKey,metadata:le.metadata}},Ee&&{sessionProperties:Ee});await this.sendResult(ie.id,k,!0),this.events.emit(it("session_connect"),{session:Br}),this.cleanupDuplicatePairings(Br)}catch(fe){await this.sendError(ae,k,fe),this.client.logger.error(fe)}},this.onSessionSettleResponse=async(k,ie)=>{const{id:ae}=ie;isJsonRpcResult(ie)?(await this.client.session.update(k,{acknowledged:!0}),this.events.emit(it("session_approve",ae),{})):isJsonRpcError(ie)&&(await this.client.session.delete(k,A("USER_DISCONNECTED")),this.events.emit(it("session_approve",ae),{error:ie.error}))},this.onSessionUpdateRequest=async(k,ie)=>{const{params:ae,id:ce}=ie;try{this.isValidUpdate(w2({topic:k},ae)),await this.client.session.update(k,{namespaces:ae.namespaces}),await this.sendResult(ce,k,!0),this.client.events.emit("session_update",{id:ce,topic:k,params:ae})}catch(fe){await this.sendError(ce,k,fe),this.client.logger.error(fe)}},this.onSessionUpdateResponse=(k,ie)=>{const{id:ae}=ie;isJsonRpcResult(ie)?this.events.emit(it("session_update",ae),{}):isJsonRpcError(ie)&&this.events.emit(it("session_update",ae),{error:ie.error})},this.onSessionExtendRequest=async(k,ie)=>{const{id:ae}=ie;try{this.isValidExtend({topic:k}),await this.setExpiry(k,ot(A2)),await this.sendResult(ae,k,!0),this.client.events.emit("session_extend",{id:ae,topic:k})}catch(ce){await this.sendError(ae,k,ce),this.client.logger.error(ce)}},this.onSessionExtendResponse=(k,ie)=>{const{id:ae}=ie;isJsonRpcResult(ie)?this.events.emit(it("session_extend",ae),{}):isJsonRpcError(ie)&&this.events.emit(it("session_extend",ae),{error:ie.error})},this.onSessionPingRequest=async(k,ie)=>{const{id:ae}=ie;try{this.isValidPing({topic:k}),await this.sendResult(ae,k,!0),this.client.events.emit("session_ping",{id:ae,topic:k})}catch(ce){await this.sendError(ae,k,ce),this.client.logger.error(ce)}},this.onSessionPingResponse=(k,ie)=>{const{id:ae}=ie;setTimeout(()=>{isJsonRpcResult(ie)?this.events.emit(it("session_ping",ae),{}):isJsonRpcError(ie)&&this.events.emit(it("session_ping",ae),{error:ie.error})},500)},this.onSessionDeleteRequest=async(k,ie)=>{const{id:ae}=ie;try{this.isValidDisconnect({topic:k,reason:ie.params}),await Promise.all([new Promise(ce=>{this.client.core.relayer.once(g2.publish,async()=>{ce(await this.deleteSession(k))})}),this.sendResult(ae,k,!0)]),this.client.events.emit("session_delete",{id:ae,topic:k})}catch(ce){this.client.logger.error(ce)}},this.onSessionRequest=async(k,ie)=>{const{id:ae,params:ce}=ie;try{this.isValidRequest(w2({topic:k},ce)),await this.setPendingSessionRequest({id:ae,topic:k,params:ce}),this.addRequestToQueue({id:ae,topic:k,params:ce}),await this.processRequestQueue()}catch(fe){await this.sendError(ae,k,fe),this.client.logger.error(fe)}},this.onSessionRequestResponse=(k,ie)=>{const{id:ae}=ie;isJsonRpcResult(ie)?this.events.emit(it("session_request",ae),{result:ie.result}):isJsonRpcError(ie)&&this.events.emit(it("session_request",ae),{error:ie.error})},this.onSessionEventRequest=async(k,ie)=>{const{id:ae,params:ce}=ie;try{this.isValidEmit(w2({topic:k},ce)),this.client.events.emit("session_event",{id:ae,topic:k,params:ce})}catch(fe){await this.sendError(ae,k,fe),this.client.logger.error(fe)}},this.addRequestToQueue=k=>{this.requestQueue.requests.push(k)},this.cleanupAfterResponse=k=>{this.deletePendingSessionRequest(k.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.requestQueue.state=V2.idle,this.processRequestQueue()},(0,import_time4.toMiliseconds)(this.requestQueueDelay))},this.processRequestQueue=async()=>{if(this.requestQueue.state===V2.active){this.client.logger.info("session request queue is already active.");return}const k=this.requestQueue.requests[0];if(!k){this.client.logger.info("session request queue is empty.");return}try{const{id:ie,topic:ae,params:ce}=k,fe=$n(JSON.stringify({id:ie,params:ce})),le=this.client.session.get(ae),ve=await this.getVerifyContext(fe,le.peer.metadata);this.requestQueue.state=V2.active,this.client.events.emit("session_request",{id:ie,topic:ae,params:ce,verifyContext:ve})}catch(ie){this.client.logger.error(ie)}},this.isValidConnect=async k=>{if(!Dt(k)){const{message:ve}=N$1("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(k)}`);throw new Error(ve)}const{pairingTopic:ie,requiredNamespaces:ae,optionalNamespaces:ce,sessionProperties:fe,relays:le}=k;if(I(ie)||await this.isValidPairingTopic(ie),!jt(le,!0)){const{message:ve}=N$1("MISSING_OR_INVALID",`connect() relays: ${le}`);throw new Error(ve)}!I(ae)&&H(ae)!==0&&this.validateNamespaces(ae,"requiredNamespaces"),!I(ce)&&H(ce)!==0&&this.validateNamespaces(ce,"optionalNamespaces"),I(fe)||this.validateSessionProps(fe,"sessionProperties")},this.validateNamespaces=(k,ie)=>{const ae=$t(k,"connect()",ie);if(ae)throw new Error(ae.message)},this.isValidApprove=async k=>{if(!Dt(k))throw new Error(N$1("MISSING_OR_INVALID",`approve() params: ${k}`).message);const{id:ie,namespaces:ae,relayProtocol:ce,sessionProperties:fe}=k;await this.isValidProposalId(ie);const le=this.client.proposal.get(ie),ve=sn(ae,"approve()");if(ve)throw new Error(ve.message);const pe=an(le.requiredNamespaces,ae,"approve()");if(pe)throw new Error(pe.message);if(!y2(ce,!0)){const{message:ye}=N$1("MISSING_OR_INVALID",`approve() relayProtocol: ${ce}`);throw new Error(ye)}I(fe)||this.validateSessionProps(fe,"sessionProperties")},this.isValidReject=async k=>{if(!Dt(k)){const{message:ce}=N$1("MISSING_OR_INVALID",`reject() params: ${k}`);throw new Error(ce)}const{id:ie,reason:ae}=k;if(await this.isValidProposalId(ie),!Vt(ae)){const{message:ce}=N$1("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(ae)}`);throw new Error(ce)}},this.isValidSessionSettleRequest=k=>{if(!Dt(k)){const{message:pe}=N$1("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${k}`);throw new Error(pe)}const{relay:ie,controller:ae,namespaces:ce,expiry:fe}=k;if(!cn(ie)){const{message:pe}=N$1("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(pe)}const le=_t(ae,"onSessionSettleRequest()");if(le)throw new Error(le.message);const ve=sn(ce,"onSessionSettleRequest()");if(ve)throw new Error(ve.message);if(st(fe)){const{message:pe}=N$1("EXPIRED","onSessionSettleRequest()");throw new Error(pe)}},this.isValidUpdate=async k=>{if(!Dt(k)){const{message:ve}=N$1("MISSING_OR_INVALID",`update() params: ${k}`);throw new Error(ve)}const{topic:ie,namespaces:ae}=k;await this.isValidSessionTopic(ie);const ce=this.client.session.get(ie),fe=sn(ae,"update()");if(fe)throw new Error(fe.message);const le=an(ce.requiredNamespaces,ae,"update()");if(le)throw new Error(le.message)},this.isValidExtend=async k=>{if(!Dt(k)){const{message:ae}=N$1("MISSING_OR_INVALID",`extend() params: ${k}`);throw new Error(ae)}const{topic:ie}=k;await this.isValidSessionTopic(ie)},this.isValidRequest=async k=>{if(!Dt(k)){const{message:ve}=N$1("MISSING_OR_INVALID",`request() params: ${k}`);throw new Error(ve)}const{topic:ie,request:ae,chainId:ce,expiry:fe}=k;await this.isValidSessionTopic(ie);const{namespaces:le}=this.client.session.get(ie);if(!Lt(le,ce)){const{message:ve}=N$1("MISSING_OR_INVALID",`request() chainId: ${ce}`);throw new Error(ve)}if(!kt(ae)){const{message:ve}=N$1("MISSING_OR_INVALID",`request() ${JSON.stringify(ae)}`);throw new Error(ve)}if(!xt(le,ce,ae.method)){const{message:ve}=N$1("MISSING_OR_INVALID",`request() method: ${ae.method}`);throw new Error(ve)}if(fe&&!Gt(fe,M3)){const{message:ve}=N$1("MISSING_OR_INVALID",`request() expiry: ${fe}. Expiry must be a number (in seconds) between ${M3.min} and ${M3.max}`);throw new Error(ve)}},this.isValidRespond=async k=>{if(!Dt(k)){const{message:ce}=N$1("MISSING_OR_INVALID",`respond() params: ${k}`);throw new Error(ce)}const{topic:ie,response:ae}=k;if(await this.isValidSessionTopic(ie),!Mt(ae)){const{message:ce}=N$1("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(ae)}`);throw new Error(ce)}},this.isValidPing=async k=>{if(!Dt(k)){const{message:ae}=N$1("MISSING_OR_INVALID",`ping() params: ${k}`);throw new Error(ae)}const{topic:ie}=k;await this.isValidSessionOrPairingTopic(ie)},this.isValidEmit=async k=>{if(!Dt(k)){const{message:le}=N$1("MISSING_OR_INVALID",`emit() params: ${k}`);throw new Error(le)}const{topic:ie,event:ae,chainId:ce}=k;await this.isValidSessionTopic(ie);const{namespaces:fe}=this.client.session.get(ie);if(!Lt(fe,ce)){const{message:le}=N$1("MISSING_OR_INVALID",`emit() chainId: ${ce}`);throw new Error(le)}if(!Kt(ae)){const{message:le}=N$1("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(ae)}`);throw new Error(le)}if(!Ft(fe,ce,ae.name)){const{message:le}=N$1("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(ae)}`);throw new Error(le)}},this.isValidDisconnect=async k=>{if(!Dt(k)){const{message:ae}=N$1("MISSING_OR_INVALID",`disconnect() params: ${k}`);throw new Error(ae)}const{topic:ie}=k;await this.isValidSessionOrPairingTopic(ie)},this.getVerifyContext=async(k,ie)=>{const ae={verified:{verifyUrl:ie.verifyUrl||"",validation:"UNKNOWN",origin:ie.url||""}};try{const ce=await this.client.core.verify.resolve({attestationId:k,verifyUrl:ie.verifyUrl});ce&&(ae.verified.origin=ce,ae.verified.validation=ce===ie.url?"VALID":"INVALID")}catch(ce){this.client.logger.error(ce)}return this.client.logger.info(`Verify context: ${JSON.stringify(ae)}`),ae},this.validateSessionProps=(k,ie)=>{Object.values(k).forEach(ae=>{if(!y2(ae,!1)){const{message:ce}=N$1("MISSING_OR_INVALID",`${ie} must be in Record format. Received: ${JSON.stringify(ae)}`);throw new Error(ce)}})}}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}registerRelayerEvents(){this.client.core.relayer.on(g2.message,async v=>{const{topic:k,message:ie}=v;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(ie)))return;const ae=await this.client.core.crypto.decode(k,ie);isJsonRpcRequest(ae)?(this.client.core.history.set(k,ae),this.onRelayEventRequest({topic:k,payload:ae})):isJsonRpcResponse(ae)?(await this.client.core.history.resolve(ae),await this.onRelayEventResponse({topic:k,payload:ae}),this.client.core.history.delete(k,ae.id)):this.onRelayEventUnknownPayload({topic:k,payload:ae})})}registerExpirerEvents(){this.client.core.expirer.on(w.expired,async v=>{const{topic:k,id:ie}=rt(v.target);if(ie&&this.client.pendingRequest.keys.includes(ie))return await this.deletePendingSessionRequest(ie,N$1("EXPIRED"),!0);k?this.client.session.keys.includes(k)&&(await this.deleteSession(k,!0),this.client.events.emit("session_expire",{topic:k})):ie&&(await this.deleteProposal(ie,!0),this.client.events.emit("proposal_expire",{id:ie}))})}isValidPairingTopic(v){if(!y2(v,!1)){const{message:k}=N$1("MISSING_OR_INVALID",`pairing topic should be a string: ${v}`);throw new Error(k)}if(!this.client.core.pairing.pairings.keys.includes(v)){const{message:k}=N$1("NO_MATCHING_KEY",`pairing topic doesn't exist: ${v}`);throw new Error(k)}if(st(this.client.core.pairing.pairings.get(v).expiry)){const{message:k}=N$1("EXPIRED",`pairing topic: ${v}`);throw new Error(k)}}async isValidSessionTopic(v){if(!y2(v,!1)){const{message:k}=N$1("MISSING_OR_INVALID",`session topic should be a string: ${v}`);throw new Error(k)}if(!this.client.session.keys.includes(v)){const{message:k}=N$1("NO_MATCHING_KEY",`session topic doesn't exist: ${v}`);throw new Error(k)}if(st(this.client.session.get(v).expiry)){await this.deleteSession(v);const{message:k}=N$1("EXPIRED",`session topic: ${v}`);throw new Error(k)}}async isValidSessionOrPairingTopic(v){if(this.client.session.keys.includes(v))await this.isValidSessionTopic(v);else if(this.client.core.pairing.pairings.keys.includes(v))this.isValidPairingTopic(v);else if(y2(v,!1)){const{message:k}=N$1("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${v}`);throw new Error(k)}else{const{message:k}=N$1("MISSING_OR_INVALID",`session or pairing topic should be a string: ${v}`);throw new Error(k)}}async isValidProposalId(v){if(!Ct(v)){const{message:k}=N$1("MISSING_OR_INVALID",`proposal id should be a number: ${v}`);throw new Error(k)}if(!this.client.proposal.keys.includes(v)){const{message:k}=N$1("NO_MATCHING_KEY",`proposal id doesn't exist: ${v}`);throw new Error(k)}if(st(this.client.proposal.get(v).expiry)){await this.deleteProposal(v);const{message:k}=N$1("EXPIRED",`proposal id: ${v}`);throw new Error(k)}}},cs2=class extends Nt{constructor(v,k){super(v,k,ie2,G3),this.core=v,this.logger=k}},ls2=class extends Nt{constructor(v,k){super(v,k,ne3,G3),this.core=v,this.logger=k}},ps2=class extends Nt{constructor(v,k){super(v,k,ae3,G3,ie=>ie.id),this.core=v,this.logger=k}},U3=class extends b{constructor(v){super(v),this.protocol=Y2,this.version=J3,this.name=$3.name,this.events=new import_events6.EventEmitter,this.on=(ie,ae)=>this.events.on(ie,ae),this.once=(ie,ae)=>this.events.once(ie,ae),this.off=(ie,ae)=>this.events.off(ie,ae),this.removeListener=(ie,ae)=>this.events.removeListener(ie,ae),this.removeAllListeners=ie=>this.events.removeAllListeners(ie),this.connect=async ie=>{try{return await this.engine.connect(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.pair=async ie=>{try{return await this.engine.pair(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.approve=async ie=>{try{return await this.engine.approve(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.reject=async ie=>{try{return await this.engine.reject(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.update=async ie=>{try{return await this.engine.update(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.extend=async ie=>{try{return await this.engine.extend(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.request=async ie=>{try{return await this.engine.request(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.respond=async ie=>{try{return await this.engine.respond(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.ping=async ie=>{try{return await this.engine.ping(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.emit=async ie=>{try{return await this.engine.emit(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.disconnect=async ie=>{try{return await this.engine.disconnect(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.find=ie=>{try{return this.engine.find(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(ie){throw this.logger.error(ie.message),ie}},this.name=(v==null?void 0:v.name)||$3.name,this.metadata=(v==null?void 0:v.metadata)||Fn();const k=typeof(v==null?void 0:v.logger)<"u"&&typeof(v==null?void 0:v.logger)!="string"?v.logger:(0,import_logger2.pino)((0,import_logger2.getDefaultLoggerOptions)({level:(v==null?void 0:v.logger)||$3.logger}));this.core=(v==null?void 0:v.core)||new Sr(v),this.logger=(0,import_logger2.generateChildLogger)(k,this.name),this.session=new ls2(this.core,this.logger),this.proposal=new cs2(this.core,this.logger),this.pendingRequest=new ps2(this.core,this.logger),this.engine=new as2(this)}static async init(v){const k=new U3(v);return await k.initialize(),k}get context(){return(0,import_logger2.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(v){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(v.message),v}}},d3=class{constructor(v){this.openModal=F.open,this.closeModal=F.close,this.subscribeModal=F.subscribe,this.setTheme=G.setThemeConfig,G.setThemeConfig(v),f.setConfig(v),this.initUi()}async initUi(){if(typeof window<"u"){await __vitePreload(()=>import("./dist-L25PVQMT.844ce2be.js"),[]);const v=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",v),d.setIsUiLoaded(!0)}}},commonjsGlobal$9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$m$2=function(v){try{return!!v()}catch{return!0}},fails$l$2=fails$m$2,functionBindNative$8=!fails$l$2(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$4=functionBindNative$8,FunctionPrototype$2$4=Function.prototype,bind$5$2=FunctionPrototype$2$4.bind,call$i$1=FunctionPrototype$2$4.call,uncurryThis$l$2=NATIVE_BIND$3$4&&bind$5$2.bind(call$i$1,call$i$1),functionUncurryThis$8=NATIVE_BIND$3$4?function(v){return v&&uncurryThis$l$2(v)}:function(v){return v&&function(){return call$i$1.apply(v,arguments)}},uncurryThis$k$2=functionUncurryThis$8,toString$8=uncurryThis$k$2({}.toString),stringSlice$3$3=uncurryThis$k$2("".slice),classofRaw$1$7=function(v){return stringSlice$3$3(toString$8(v),8,-1)},uncurryThis$j$3=functionUncurryThis$8,fails$k$2=fails$m$2,classof$7$2=classofRaw$1$7,$Object$4$3=Object,split$6=uncurryThis$j$3("".split),indexedObject$6=fails$k$2(function(){return!$Object$4$3("z").propertyIsEnumerable(0)})?function(v){return classof$7$2(v)=="String"?split$6(v,""):$Object$4$3(v)}:$Object$4$3,$TypeError$d$1=TypeError,requireObjectCoercible$6$1=function(v){if(v==null)throw $TypeError$d$1("Can't call method on "+v);return v},IndexedObject$1$5=indexedObject$6,requireObjectCoercible$5$1=requireObjectCoercible$6$1,toIndexedObject$5$3=function(v){return IndexedObject$1$5(requireObjectCoercible$5$1(v))},check$8=function(v){return v&&v.Math==Math&&v},global$n=check$8(typeof globalThis=="object"&&globalThis)||check$8(typeof window=="object"&&window)||check$8(typeof self=="object"&&self)||check$8(typeof commonjsGlobal$9=="object"&&commonjsGlobal$9)||function(){return this}()||Function("return this")(),shared$4$3={exports:{}},global$m$1=global$n,defineProperty$5$3=Object.defineProperty,defineGlobalProperty$3$6=function(v,k){try{defineProperty$5$3(global$m$1,v,{value:k,configurable:!0,writable:!0})}catch{global$m$1[v]=k}return k},global$l$2=global$n,defineGlobalProperty$2$8=defineGlobalProperty$3$6,SHARED$8="__core-js_shared__",store$3$8=global$l$2[SHARED$8]||defineGlobalProperty$2$8(SHARED$8,{}),sharedStore$8=store$3$8,store$2$8=sharedStore$8;(shared$4$3.exports=function(v,k){return store$2$8[v]||(store$2$8[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$4$3=requireObjectCoercible$6$1,$Object$3$5=Object,toObject$3$3=function(v){return $Object$3$5(requireObjectCoercible$4$3(v))},uncurryThis$i$3=functionUncurryThis$8,toObject$2$5=toObject$3$3,hasOwnProperty$8=uncurryThis$i$3({}.hasOwnProperty),hasOwnProperty_1$8=Object.hasOwn||function v(k,ie){return hasOwnProperty$8(toObject$2$5(k),ie)},uncurryThis$h$3=functionUncurryThis$8,id$a=0,postfix$8=Math.random(),toString$7=uncurryThis$h$3(1 .toString),uid$2$8=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$7(++id$a+postfix$8,36)},isCallable$m$2=function(v){return typeof v=="function"},global$k$2=global$n,isCallable$l$2=isCallable$m$2,aFunction$8=function(v){return isCallable$l$2(v)?v:void 0},getBuiltIn$9$1=function(v,k){return arguments.length<2?aFunction$8(global$k$2[v]):global$k$2[v]&&global$k$2[v][k]},getBuiltIn$8$2=getBuiltIn$9$1,engineUserAgent$8=getBuiltIn$8$2("navigator","userAgent")||"",global$j$2=global$n,userAgent$3$2=engineUserAgent$8,process$3$2=global$j$2.process,Deno$1$3=global$j$2.Deno,versions$8=process$3$2&&process$3$2.versions||Deno$1$3&&Deno$1$3.version,v8$8=versions$8&&versions$8.v8,match$8,version2$1;v8$8&&(match$8=v8$8.split("."),version2$1=match$8[0]>0&&match$8[0]<4?1:+(match$8[0]+match$8[1]));!version2$1&&userAgent$3$2&&(match$8=userAgent$3$2.match(/Edge\/(\d+)/),(!match$8||match$8[1]>=74)&&(match$8=userAgent$3$2.match(/Chrome\/(\d+)/),match$8&&(version2$1=+match$8[1])));var engineV8Version$8=version2$1,V8_VERSION$1$2=engineV8Version$8,fails$j$3=fails$m$2,nativeSymbol$8=!!Object.getOwnPropertySymbols&&!fails$j$3(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$2&&V8_VERSION$1$2<41}),NATIVE_SYMBOL$1$8=nativeSymbol$8,useSymbolAsUid$8=NATIVE_SYMBOL$1$8&&!Symbol.sham&&typeof Symbol.iterator=="symbol",global$i$3=global$n,shared$3$8=shared$4$3.exports,hasOwn$a$3=hasOwnProperty_1$8,uid$1$8=uid$2$8,NATIVE_SYMBOL$9=nativeSymbol$8,USE_SYMBOL_AS_UID$1$8=useSymbolAsUid$8,WellKnownSymbolsStore$8=shared$3$8("wks"),Symbol$2=global$i$3.Symbol,symbolFor$8=Symbol$2&&Symbol$2.for,createWellKnownSymbol$8=USE_SYMBOL_AS_UID$1$8?Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$1$8,wellKnownSymbol$h$2=function(v){if(!hasOwn$a$3(WellKnownSymbolsStore$8,v)||!(NATIVE_SYMBOL$9||typeof WellKnownSymbolsStore$8[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$9&&hasOwn$a$3(Symbol$2,v)?WellKnownSymbolsStore$8[v]=Symbol$2[v]:USE_SYMBOL_AS_UID$1$8&&symbolFor$8?WellKnownSymbolsStore$8[v]=symbolFor$8(k):WellKnownSymbolsStore$8[v]=createWellKnownSymbol$8(k)}return WellKnownSymbolsStore$8[v]},isCallable$k$2=isCallable$m$2,isObject$8$2=function(v){return typeof v=="object"?v!==null:isCallable$k$2(v)},isObject$7$4=isObject$8$2,$String$3$3=String,$TypeError$c$2=TypeError,anObject$e$2=function(v){if(isObject$7$4(v))return v;throw $TypeError$c$2($String$3$3(v)+" is not an object")},objectDefineProperties$3={},fails$i$3=fails$m$2,descriptors$8=!fails$i$3(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),DESCRIPTORS$a$3=descriptors$8,fails$h$3=fails$m$2,v8PrototypeDefineBug$8=DESCRIPTORS$a$3&&fails$h$3(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),objectDefineProperty$8={},global$h$4=global$n,isObject$6$4=isObject$8$2,document$3$2=global$h$4.document,EXISTS$1$8=isObject$6$4(document$3$2)&&isObject$6$4(document$3$2.createElement),documentCreateElement$2$3=function(v){return EXISTS$1$8?document$3$2.createElement(v):{}},DESCRIPTORS$9$3=descriptors$8,fails$g$3=fails$m$2,createElement$1$2=documentCreateElement$2$3,ie8DomDefine$8=!DESCRIPTORS$9$3&&!fails$g$3(function(){return Object.defineProperty(createElement$1$2("div"),"a",{get:function(){return 7}}).a!=7}),NATIVE_BIND$2$4=functionBindNative$8,call$h$2=Function.prototype.call,functionCall$8=NATIVE_BIND$2$4?call$h$2.bind(call$h$2):function(){return call$h$2.apply(call$h$2,arguments)},uncurryThis$g$3=functionUncurryThis$8,objectIsPrototypeOf$8=uncurryThis$g$3({}.isPrototypeOf),getBuiltIn$7$2=getBuiltIn$9$1,isCallable$j$3=isCallable$m$2,isPrototypeOf$3$3=objectIsPrototypeOf$8,USE_SYMBOL_AS_UID$9=useSymbolAsUid$8,$Object$2$8=Object,isSymbol$2$8=USE_SYMBOL_AS_UID$9?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$7$2("Symbol");return isCallable$j$3(k)&&isPrototypeOf$3$3(k.prototype,$Object$2$8(v))},$String$2$7=String,tryToString$4$4=function(v){try{return $String$2$7(v)}catch{return"Object"}},isCallable$i$3=isCallable$m$2,tryToString$3$4=tryToString$4$4,$TypeError$b$3=TypeError,aCallable$7$2=function(v){if(isCallable$i$3(v))return v;throw $TypeError$b$3(tryToString$3$4(v)+" is not a function")},aCallable$6$2=aCallable$7$2,getMethod$4$2=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$6$2(ie)},call$g$3=functionCall$8,isCallable$h$4=isCallable$m$2,isObject$5$8=isObject$8$2,$TypeError$a$4=TypeError,ordinaryToPrimitive$1$8=function(v,k){var ie,ae;if(k==="string"&&isCallable$h$4(ie=v.toString)&&!isObject$5$8(ae=call$g$3(ie,v))||isCallable$h$4(ie=v.valueOf)&&!isObject$5$8(ae=call$g$3(ie,v))||k!=="string"&&isCallable$h$4(ie=v.toString)&&!isObject$5$8(ae=call$g$3(ie,v)))return ae;throw $TypeError$a$4("Can't convert object to primitive value")},call$f$3=functionCall$8,isObject$4$8=isObject$8$2,isSymbol$1$8=isSymbol$2$8,getMethod$3$3=getMethod$4$2,ordinaryToPrimitive$9=ordinaryToPrimitive$1$8,wellKnownSymbol$g$3=wellKnownSymbol$h$2,$TypeError$9$4=TypeError,TO_PRIMITIVE$8=wellKnownSymbol$g$3("toPrimitive"),toPrimitive$1$8=function(v,k){if(!isObject$4$8(v)||isSymbol$1$8(v))return v;var ie=getMethod$3$3(v,TO_PRIMITIVE$8),ae;if(ie){if(k===void 0&&(k="default"),ae=call$f$3(ie,v,k),!isObject$4$8(ae)||isSymbol$1$8(ae))return ae;throw $TypeError$9$4("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$9(v,k)},toPrimitive$a=toPrimitive$1$8,isSymbol$b=isSymbol$2$8,toPropertyKey$3$2=function(v){var k=toPrimitive$a(v,"string");return isSymbol$b(k)?k:k+""},DESCRIPTORS$8$3=descriptors$8,IE8_DOM_DEFINE$1$6=ie8DomDefine$8,V8_PROTOTYPE_DEFINE_BUG$1$3=v8PrototypeDefineBug$8,anObject$d$2=anObject$e$2,toPropertyKey$2$6=toPropertyKey$3$2,$TypeError$8$4=TypeError,$defineProperty$8=Object.defineProperty,$getOwnPropertyDescriptor$1$6=Object.getOwnPropertyDescriptor,ENUMERABLE$8="enumerable",CONFIGURABLE$1$8="configurable",WRITABLE$8="writable";objectDefineProperty$8.f=DESCRIPTORS$8$3?V8_PROTOTYPE_DEFINE_BUG$1$3?function v(k,ie,ae){if(anObject$d$2(k),ie=toPropertyKey$2$6(ie),anObject$d$2(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$8 in ae&&!ae[WRITABLE$8]){var ce=$getOwnPropertyDescriptor$1$6(k,ie);ce&&ce[WRITABLE$8]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$8 in ae?ae[CONFIGURABLE$1$8]:ce[CONFIGURABLE$1$8],enumerable:ENUMERABLE$8 in ae?ae[ENUMERABLE$8]:ce[ENUMERABLE$8],writable:!1})}return $defineProperty$8(k,ie,ae)}:$defineProperty$8:function v(k,ie,ae){if(anObject$d$2(k),ie=toPropertyKey$2$6(ie),anObject$d$2(ae),IE8_DOM_DEFINE$1$6)try{return $defineProperty$8(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$8$4("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var ceil$6=Math.ceil,floor$9=Math.floor,mathTrunc$6=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$9:ceil$6)(ie)},trunc2$6=mathTrunc$6,toIntegerOrInfinity$3$3=function(v){var k=+v;return k!==k||k===0?0:trunc2$6(k)},toIntegerOrInfinity$2$6=toIntegerOrInfinity$3$3,max$1$3=Math.max,min$2$3=Math.min,toAbsoluteIndex$2$2=function(v,k){var ie=toIntegerOrInfinity$2$6(v);return ie<0?max$1$3(ie+k,0):min$2$3(ie,k)},toIntegerOrInfinity$1$6=toIntegerOrInfinity$3$3,min$1$6=Math.min,toLength$2$3=function(v){return v>0?min$1$6(toIntegerOrInfinity$1$6(v),9007199254740991):0},toLength$1$6=toLength$2$3,lengthOfArrayLike$3$2=function(v){return toLength$1$6(v.length)},toIndexedObject$4$3=toIndexedObject$5$3,toAbsoluteIndex$1$6=toAbsoluteIndex$2$2,lengthOfArrayLike$2$4=lengthOfArrayLike$3$2,createMethod$2$2=function(v){return function(k,ie,ae){var ce=toIndexedObject$4$3(k),fe=lengthOfArrayLike$2$4(ce),le=toAbsoluteIndex$1$6(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$6={includes:createMethod$2$2(!0),indexOf:createMethod$2$2(!1)},hiddenKeys$4$3={},uncurryThis$f$3=functionUncurryThis$8,hasOwn$9$3=hasOwnProperty_1$8,toIndexedObject$3$6=toIndexedObject$5$3,indexOf$1$3=arrayIncludes$6.indexOf,hiddenKeys$3$6=hiddenKeys$4$3,push$1$3=uncurryThis$f$3([].push),objectKeysInternal$6=function(v,k){var ie=toIndexedObject$3$6(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$9$3(hiddenKeys$3$6,fe)&&hasOwn$9$3(ie,fe)&&push$1$3(ce,fe);for(;k.length>ae;)hasOwn$9$3(ie,fe=k[ae++])&&(~indexOf$1$3(ce,fe)||push$1$3(ce,fe));return ce},enumBugKeys$3$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$5=objectKeysInternal$6,enumBugKeys$2$5=enumBugKeys$3$3,objectKeys$2$3=Object.keys||function v(k){return internalObjectKeys$1$5(k,enumBugKeys$2$5)},DESCRIPTORS$7$6=descriptors$8,V8_PROTOTYPE_DEFINE_BUG$9=v8PrototypeDefineBug$8,definePropertyModule$5$2=objectDefineProperty$8,anObject$c$3=anObject$e$2,toIndexedObject$2$6=toIndexedObject$5$3,objectKeys$1$5=objectKeys$2$3;objectDefineProperties$3.f=DESCRIPTORS$7$6&&!V8_PROTOTYPE_DEFINE_BUG$9?Object.defineProperties:function v(k,ie){anObject$c$3(k);for(var ae=toIndexedObject$2$6(ie),ce=objectKeys$1$5(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$5$2.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$6$4=getBuiltIn$9$1,html$2$2=getBuiltIn$6$4("document","documentElement"),shared$2$8=shared$4$3.exports,uid$b=uid$2$8,keys2$2=shared$2$8("keys"),sharedKey$3$3=function(v){return keys2$2[v]||(keys2$2[v]=uid$b(v))},anObject$b$3=anObject$e$2,definePropertiesModule$3=objectDefineProperties$3,enumBugKeys$1$6=enumBugKeys$3$3,hiddenKeys$2$6=hiddenKeys$4$3,html$1$4=html$2$2,documentCreateElement$1$3=documentCreateElement$2$3,sharedKey$2$3=sharedKey$3$3,GT$3=">",LT$3="<",PROTOTYPE$4="prototype",SCRIPT$3="script",IE_PROTO$1$3=sharedKey$2$3("IE_PROTO"),EmptyConstructor$3=function(){},scriptTag$3=function(v){return LT$3+SCRIPT$3+GT$3+v+LT$3+"/"+SCRIPT$3+GT$3},NullProtoObjectViaActiveX$3=function(v){v.write(scriptTag$3("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$3=function(){var v=documentCreateElement$1$3("iframe"),k="java"+SCRIPT$3+":",ie;return v.style.display="none",html$1$4.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$3("document.F=Object")),ie.close(),ie.F},activeXDocument$3,NullProtoObject$3=function(){try{activeXDocument$3=new ActiveXObject("htmlfile")}catch{}NullProtoObject$3=typeof document<"u"?document.domain&&activeXDocument$3?NullProtoObjectViaActiveX$3(activeXDocument$3):NullProtoObjectViaIFrame$3():NullProtoObjectViaActiveX$3(activeXDocument$3);for(var v=enumBugKeys$1$6.length;v--;)delete NullProtoObject$3[PROTOTYPE$4][enumBugKeys$1$6[v]];return NullProtoObject$3()};hiddenKeys$2$6[IE_PROTO$1$3]=!0;var objectCreate$3=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$3[PROTOTYPE$4]=anObject$b$3(k),ae=new EmptyConstructor$3,EmptyConstructor$3[PROTOTYPE$4]=null,ae[IE_PROTO$1$3]=k):ae=NullProtoObject$3(),ie===void 0?ae:definePropertiesModule$3.f(ae,ie)},wellKnownSymbol$f$3=wellKnownSymbol$h$2,create$2$3=objectCreate$3,defineProperty$4$3=objectDefineProperty$8.f,UNSCOPABLES$3=wellKnownSymbol$f$3("unscopables"),ArrayPrototype$1$3=Array.prototype;ArrayPrototype$1$3[UNSCOPABLES$3]==null&&defineProperty$4$3(ArrayPrototype$1$3,UNSCOPABLES$3,{configurable:!0,value:create$2$3(null)});var addToUnscopables$2$1=function(v){ArrayPrototype$1$3[UNSCOPABLES$3][v]=!0},iterators$4={},uncurryThis$e$3=functionUncurryThis$8,isCallable$g$4=isCallable$m$2,store$1$8=sharedStore$8,functionToString$8=uncurryThis$e$3(Function.toString);isCallable$g$4(store$1$8.inspectSource)||(store$1$8.inspectSource=function(v){return functionToString$8(v)});var inspectSource$4$2=store$1$8.inspectSource,global$g$4=global$n,isCallable$f$4=isCallable$m$2,inspectSource$3$4=inspectSource$4$2,WeakMap$1$8=global$g$4.WeakMap,nativeWeakMap$8=isCallable$f$4(WeakMap$1$8)&&/native code/.test(inspectSource$3$4(WeakMap$1$8)),createPropertyDescriptor$4$2=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$6$6=descriptors$8,definePropertyModule$4$3=objectDefineProperty$8,createPropertyDescriptor$3$3=createPropertyDescriptor$4$2,createNonEnumerableProperty$5$3=DESCRIPTORS$6$6?function(v,k,ie){return definePropertyModule$4$3.f(v,k,createPropertyDescriptor$3$3(1,ie))}:function(v,k,ie){return v[k]=ie,v},NATIVE_WEAK_MAP$8=nativeWeakMap$8,global$f$4=global$n,uncurryThis$d$4=functionUncurryThis$8,isObject$3$8=isObject$8$2,createNonEnumerableProperty$4$3=createNonEnumerableProperty$5$3,hasOwn$8$4=hasOwnProperty_1$8,shared$1$8=sharedStore$8,sharedKey$1$8=sharedKey$3$3,hiddenKeys$1$6=hiddenKeys$4$3,OBJECT_ALREADY_INITIALIZED$8="Object already initialized",TypeError$2$4=global$f$4.TypeError,WeakMap$a=global$f$4.WeakMap,set$1$4,get$9,has$8,enforce$8=function(v){return has$8(v)?get$9(v):set$1$4(v,{})},getterFor$8=function(v){return function(k){var ie;if(!isObject$3$8(k)||(ie=get$9(k)).type!==v)throw TypeError$2$4("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$8||shared$1$8.state?(store$b=shared$1$8.state||(shared$1$8.state=new WeakMap$a),wmget$8=uncurryThis$d$4(store$b.get),wmhas$8=uncurryThis$d$4(store$b.has),wmset$8=uncurryThis$d$4(store$b.set),set$1$4=function(v,k){if(wmhas$8(store$b,v))throw new TypeError$2$4(OBJECT_ALREADY_INITIALIZED$8);return k.facade=v,wmset$8(store$b,v,k),k},get$9=function(v){return wmget$8(store$b,v)||{}},has$8=function(v){return wmhas$8(store$b,v)}):(STATE$8=sharedKey$1$8("state"),hiddenKeys$1$6[STATE$8]=!0,set$1$4=function(v,k){if(hasOwn$8$4(v,STATE$8))throw new TypeError$2$4(OBJECT_ALREADY_INITIALIZED$8);return k.facade=v,createNonEnumerableProperty$4$3(v,STATE$8,k),k},get$9=function(v){return hasOwn$8$4(v,STATE$8)?v[STATE$8]:{}},has$8=function(v){return hasOwn$8$4(v,STATE$8)});var store$b,wmget$8,wmhas$8,wmset$8,STATE$8,internalState$8={set:set$1$4,get:get$9,has:has$8,enforce:enforce$8,getterFor:getterFor$8},objectGetOwnPropertyDescriptor$6={},objectPropertyIsEnumerable$6={},$propertyIsEnumerable$6={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$2=Object.getOwnPropertyDescriptor,NASHORN_BUG$6=getOwnPropertyDescriptor$2$2&&!$propertyIsEnumerable$6.call({1:2},1);objectPropertyIsEnumerable$6.f=NASHORN_BUG$6?function v(k){var ie=getOwnPropertyDescriptor$2$2(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$6;var DESCRIPTORS$5$8=descriptors$8,call$e$3=functionCall$8,propertyIsEnumerableModule$1$5=objectPropertyIsEnumerable$6,createPropertyDescriptor$2$6=createPropertyDescriptor$4$2,toIndexedObject$1$6=toIndexedObject$5$3,toPropertyKey$1$8=toPropertyKey$3$2,hasOwn$7$5=hasOwnProperty_1$8,IE8_DOM_DEFINE$9=ie8DomDefine$8,$getOwnPropertyDescriptor$9=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$6.f=DESCRIPTORS$5$8?$getOwnPropertyDescriptor$9:function v(k,ie){if(k=toIndexedObject$1$6(k),ie=toPropertyKey$1$8(ie),IE8_DOM_DEFINE$9)try{return $getOwnPropertyDescriptor$9(k,ie)}catch{}if(hasOwn$7$5(k,ie))return createPropertyDescriptor$2$6(!call$e$3(propertyIsEnumerableModule$1$5.f,k,ie),k[ie])};var makeBuiltIn$2$8={exports:{}},DESCRIPTORS$4$8=descriptors$8,hasOwn$6$6=hasOwnProperty_1$8,FunctionPrototype$1$8=Function.prototype,getDescriptor$8=DESCRIPTORS$4$8&&Object.getOwnPropertyDescriptor,EXISTS$9=hasOwn$6$6(FunctionPrototype$1$8,"name"),PROPER$8=EXISTS$9&&function v(){}.name==="something",CONFIGURABLE$9=EXISTS$9&&(!DESCRIPTORS$4$8||DESCRIPTORS$4$8&&getDescriptor$8(FunctionPrototype$1$8,"name").configurable),functionName$8={EXISTS:EXISTS$9,PROPER:PROPER$8,CONFIGURABLE:CONFIGURABLE$9},fails$f$3=fails$m$2,isCallable$e$4=isCallable$m$2,hasOwn$5$6=hasOwnProperty_1$8,DESCRIPTORS$3$8=descriptors$8,CONFIGURABLE_FUNCTION_NAME$1$3=functionName$8.CONFIGURABLE,inspectSource$2$8=inspectSource$4$2,InternalStateModule$2$3=internalState$8,enforceInternalState$a=InternalStateModule$2$3.enforce,getInternalState$2$3=InternalStateModule$2$3.get,defineProperty$3$3=Object.defineProperty,CONFIGURABLE_LENGTH$8=DESCRIPTORS$3$8&&!fails$f$3(function(){return defineProperty$3$3(function(){},"length",{value:8}).length!==8}),TEMPLATE$8=String(String).split("String"),makeBuiltIn$1$8=makeBuiltIn$2$8.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$5$6(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$3&&v.name!==k)&&(DESCRIPTORS$3$8?defineProperty$3$3(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$8&&ie&&hasOwn$5$6(ie,"arity")&&v.length!==ie.arity&&defineProperty$3$3(v,"length",{value:ie.arity});try{ie&&hasOwn$5$6(ie,"constructor")&&ie.constructor?DESCRIPTORS$3$8&&defineProperty$3$3(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$a(v);return hasOwn$5$6(ae,"source")||(ae.source=TEMPLATE$8.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$8(function v(){return isCallable$e$4(this)&&getInternalState$2$3(this).source||inspectSource$2$8(this)},"toString");var isCallable$d$4=isCallable$m$2,definePropertyModule$3$4=objectDefineProperty$8,makeBuiltIn$a=makeBuiltIn$2$8.exports,defineGlobalProperty$1$8=defineGlobalProperty$3$6,defineBuiltIn$8$1=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$d$4(ie)&&makeBuiltIn$a(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$8(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$3$4.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$6={},internalObjectKeys$7=objectKeysInternal$6,enumBugKeys$9=enumBugKeys$3$3,hiddenKeys$a=enumBugKeys$9.concat("length","prototype");objectGetOwnPropertyNames$6.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$7(k,hiddenKeys$a)};var objectGetOwnPropertySymbols$6={};objectGetOwnPropertySymbols$6.f=Object.getOwnPropertySymbols;var getBuiltIn$5$4=getBuiltIn$9$1,uncurryThis$c$4=functionUncurryThis$8,getOwnPropertyNamesModule$6=objectGetOwnPropertyNames$6,getOwnPropertySymbolsModule$1$5=objectGetOwnPropertySymbols$6,anObject$a$3=anObject$e$2,concat$1$5=uncurryThis$c$4([].concat),ownKeys$1$6=getBuiltIn$5$4("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$6.f(anObject$a$3(k)),ae=getOwnPropertySymbolsModule$1$5.f;return ae?concat$1$5(ie,ae(k)):ie},hasOwn$4$8=hasOwnProperty_1$8,ownKeys2$6=ownKeys$1$6,getOwnPropertyDescriptorModule$7=objectGetOwnPropertyDescriptor$6,definePropertyModule$2$6=objectDefineProperty$8,copyConstructorProperties$1$6=function(v,k,ie){for(var ae=ownKeys2$6(k),ce=definePropertyModule$2$6.f,fe=getOwnPropertyDescriptorModule$7.f,le=0;le=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$3=Iterators$2$3.Arguments=Iterators$2$3.Array;addToUnscopables$1$3("keys");addToUnscopables$1$3("values");addToUnscopables$1$3("entries");if(DESCRIPTORS$2$8&&values$3.name!=="values")try{defineProperty$1$8(values$3,"name",{value:"values"})}catch(v){}var domIterables$2={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$9=documentCreateElement$2$3,classList$2=documentCreateElement$9("span").classList,DOMTokenListPrototype$1$2=classList$2&&classList$2.constructor&&classList$2.constructor.prototype,domTokenListPrototype$2=DOMTokenListPrototype$1$2===Object.prototype?void 0:DOMTokenListPrototype$1$2,global$d$4=global$n,DOMIterables$2=domIterables$2,DOMTokenListPrototype$3=domTokenListPrototype$2,ArrayIteratorMethods$2=es_array_iterator$2,createNonEnumerableProperty$1$8=createNonEnumerableProperty$5$3,wellKnownSymbol$b$3=wellKnownSymbol$h$2,ITERATOR$4$3=wellKnownSymbol$b$3("iterator"),TO_STRING_TAG$2$4=wellKnownSymbol$b$3("toStringTag"),ArrayValues$2=ArrayIteratorMethods$2.values,handlePrototype$2=function(v,k){if(v){if(v[ITERATOR$4$3]!==ArrayValues$2)try{createNonEnumerableProperty$1$8(v,ITERATOR$4$3,ArrayValues$2)}catch{v[ITERATOR$4$3]=ArrayValues$2}if(v[TO_STRING_TAG$2$4]||createNonEnumerableProperty$1$8(v,TO_STRING_TAG$2$4,k),DOMIterables$2[k]){for(var ie in ArrayIteratorMethods$2)if(v[ie]!==ArrayIteratorMethods$2[ie])try{createNonEnumerableProperty$1$8(v,ie,ArrayIteratorMethods$2[ie])}catch{v[ie]=ArrayIteratorMethods$2[ie]}}}};for(COLLECTION_NAME$2 in DOMIterables$2)handlePrototype$2(global$d$4[COLLECTION_NAME$2]&&global$d$4[COLLECTION_NAME$2].prototype,COLLECTION_NAME$2);var COLLECTION_NAME$2;handlePrototype$2(DOMTokenListPrototype$3,"DOMTokenList");var $$b$1=_export$6,$includes=arrayIncludes$6.includes,fails$b$3=fails$m$2,addToUnscopables$4=addToUnscopables$2$1,BROKEN_ON_SPARSE=fails$b$3(function(){return!Array(1).includes()});$$b$1({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function v(k){return $includes(this,k,arguments.length>1?arguments[1]:void 0)}});addToUnscopables$4("includes");var wellKnownSymbol$a$4=wellKnownSymbol$h$2,TO_STRING_TAG$1$7=wellKnownSymbol$a$4("toStringTag"),test$7={};test$7[TO_STRING_TAG$1$7]="z";var toStringTagSupport$7=String(test$7)==="[object z]",TO_STRING_TAG_SUPPORT$7=toStringTagSupport$7,isCallable$7$8=isCallable$m$2,classofRaw$9=classofRaw$1$7,wellKnownSymbol$9$4=wellKnownSymbol$h$2,TO_STRING_TAG$a=wellKnownSymbol$9$4("toStringTag"),$Object$c=Object,CORRECT_ARGUMENTS$7=classofRaw$9(function(){return arguments}())=="Arguments",tryGet$7=function(v,k){try{return v[k]}catch{}},classof$6$3=TO_STRING_TAG_SUPPORT$7?classofRaw$9:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$7(k=$Object$c(v),TO_STRING_TAG$a))=="string"?ie:CORRECT_ARGUMENTS$7?classofRaw$9(k):(ae=classofRaw$9(k))=="Object"&&isCallable$7$8(k.callee)?"Arguments":ae},classof$5$3=classof$6$3,$String$b=String,toString$6$1=function(v){if(classof$5$3(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$b(v)},anObject$8$4=anObject$e$2,regexpFlags$1$3=function(){var v=anObject$8$4(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},fails$a$5=fails$m$2,global$c$4=global$n,$RegExp$2$2=global$c$4.RegExp,UNSUPPORTED_Y$2$1=fails$a$5(function(){var v=$RegExp$2$2("a","y");return v.lastIndex=2,v.exec("abcd")!=null}),MISSED_STICKY$2=UNSUPPORTED_Y$2$1||fails$a$5(function(){return!$RegExp$2$2("a","y").sticky}),BROKEN_CARET$2=UNSUPPORTED_Y$2$1||fails$a$5(function(){var v=$RegExp$2$2("^r","gy");return v.lastIndex=2,v.exec("str")!=null}),regexpStickyHelpers$2={BROKEN_CARET:BROKEN_CARET$2,MISSED_STICKY:MISSED_STICKY$2,UNSUPPORTED_Y:UNSUPPORTED_Y$2$1},fails$9$6=fails$m$2,global$b$4=global$n,$RegExp$1$2=global$b$4.RegExp,regexpUnsupportedDotAll$2=fails$9$6(function(){var v=$RegExp$1$2(".","s");return!(v.dotAll&&v.exec(` -`)&&v.flags==="s")}),fails$8$6=fails$m$2,global$a$6=global$n,$RegExp$4=global$a$6.RegExp,regexpUnsupportedNcg$2=fails$8$6(function(){var v=$RegExp$4("(?
b)","g");return v.exec("b").groups.a!=="b"||"b".replace(v,"$c")!=="bc"}),call$c$4=functionCall$8,uncurryThis$a$6=functionUncurryThis$8,toString$5$2=toString$6$1,regexpFlags$6=regexpFlags$1$3,stickyHelpers$1$1=regexpStickyHelpers$2,shared$b=shared$4$3.exports,create3=objectCreate$3,getInternalState$c=internalState$8.get,UNSUPPORTED_DOT_ALL$2=regexpUnsupportedDotAll$2,UNSUPPORTED_NCG$2=regexpUnsupportedNcg$2,nativeReplace$2=shared$b("native-string-replace",String.prototype.replace),nativeExec$2=RegExp.prototype.exec,patchedExec$2=nativeExec$2,charAt$3$1=uncurryThis$a$6("".charAt),indexOf$6=uncurryThis$a$6("".indexOf),replace$1$1=uncurryThis$a$6("".replace),stringSlice$2$3=uncurryThis$a$6("".slice),UPDATES_LAST_INDEX_WRONG$2=function(){var v=/a/,k=/b*/g;return call$c$4(nativeExec$2,v,"a"),call$c$4(nativeExec$2,k,"a"),v.lastIndex!==0||k.lastIndex!==0}(),UNSUPPORTED_Y$1$2=stickyHelpers$1$1.BROKEN_CARET,NPCG_INCLUDED$2=/()??/.exec("")[1]!==void 0,PATCH$2=UPDATES_LAST_INDEX_WRONG$2||NPCG_INCLUDED$2||UNSUPPORTED_Y$1$2||UNSUPPORTED_DOT_ALL$2||UNSUPPORTED_NCG$2;PATCH$2&&(patchedExec$2=function(k){var ie=this,ae=getInternalState$c(ie),ce=toString$5$2(k),fe=ae.raw,le,ve,pe,ye,me,Ee,cr;if(fe)return fe.lastIndex=ie.lastIndex,le=call$c$4(patchedExec$2,fe,ce),ie.lastIndex=fe.lastIndex,le;var Br=ae.groups,$r=UNSUPPORTED_Y$1$2&&ie.sticky,Pr=call$c$4(regexpFlags$6,ie),Or=ie.source,ur=0,jr=ce;if($r&&(Pr=replace$1$1(Pr,"y",""),indexOf$6(Pr,"g")===-1&&(Pr+="g"),jr=stringSlice$2$3(ce,ie.lastIndex),ie.lastIndex>0&&(!ie.multiline||ie.multiline&&charAt$3$1(ce,ie.lastIndex-1)!==` -`)&&(Or="(?: "+Or+")",jr=" "+jr,ur++),ve=new RegExp("^(?:"+Or+")",Pr)),NPCG_INCLUDED$2&&(ve=new RegExp("^"+Or+"$(?!\\s)",Pr)),UPDATES_LAST_INDEX_WRONG$2&&(pe=ie.lastIndex),ye=call$c$4(nativeExec$2,$r?ve:ie,jr),$r?ye?(ye.input=stringSlice$2$3(ye.input,ur),ye[0]=stringSlice$2$3(ye[0],ur),ye.index=ie.lastIndex,ie.lastIndex+=ye[0].length):ie.lastIndex=0:UPDATES_LAST_INDEX_WRONG$2&&ye&&(ie.lastIndex=ie.global?ye.index+ye[0].length:pe),NPCG_INCLUDED$2&&ye&&ye.length>1&&call$c$4(nativeReplace$2,ye[0],ve,function(){for(me=1;me=fe?v?"":void 0:(le=charCodeAt$2(ae,ce),le<55296||le>56319||ce+1===fe||(ve=charCodeAt$2(ae,ce+1))<56320||ve>57343?v?charAt$2$2(ae,ce):le:v?stringSlice$1$3(ae,ce,ce+2):(le-55296<<10)+(ve-56320)+65536)}},stringMultibyte$2={codeAt:createMethod$1$3(!1),charAt:createMethod$1$3(!0)},charAt$1$2=stringMultibyte$2.charAt,advanceStringIndex$1$2=function(v,k,ie){return k+(ie?charAt$1$2(v,k).length:1)},toPropertyKey$c=toPropertyKey$3$2,definePropertyModule$1$8=objectDefineProperty$8,createPropertyDescriptor$d=createPropertyDescriptor$4$2,createProperty$1$2=function(v,k,ie){var ae=toPropertyKey$c(k);ae in v?definePropertyModule$1$8.f(v,ae,createPropertyDescriptor$d(0,ie)):v[ae]=ie},toAbsoluteIndex$a=toAbsoluteIndex$2$2,lengthOfArrayLike$1$6=lengthOfArrayLike$3$2,createProperty$3=createProperty$1$2,$Array$4=Array,max$7=Math.max,arraySliceSimple$2=function(v,k,ie){for(var ae=lengthOfArrayLike$1$6(v),ce=toAbsoluteIndex$a(k,ae),fe=toAbsoluteIndex$a(ie===void 0?ae:ie,ae),le=$Array$4(max$7(fe-ce,0)),ve=0;ce1||"".split(/.?/).length?ae=function(ce,fe){var le=toString$3$3(requireObjectCoercible$2$6(this)),ve=fe===void 0?MAX_UINT32$1:fe>>>0;if(ve===0)return[];if(ce===void 0)return[le];if(!isRegExp$1(ce))return call$9$4(k,le,ce,ve);for(var pe=[],ye=(ce.ignoreCase?"i":"")+(ce.multiline?"m":"")+(ce.unicode?"u":"")+(ce.sticky?"y":""),me=0,Ee=new RegExp(ce.source,ye+"g"),cr,Br,$r;(cr=call$9$4(regexpExec$5,Ee,le))&&(Br=Ee.lastIndex,!(Br>me&&(push$7(pe,stringSlice$8(le,me,cr.index)),cr.length>1&&cr.index=ve)));)Ee.lastIndex===cr.index&&Ee.lastIndex++;return me===le.length?($r||!exec$5(Ee,""))&&push$7(pe,""):push$7(pe,stringSlice$8(le,me)),pe.length>ve?arraySlice$2$2(pe,0,ve):pe}:"0".split(void 0,0).length?ae=function(ce,fe){return ce===void 0&&fe===0?[]:call$9$4(k,this,ce,fe)}:ae=k,[function(fe,le){var ve=requireObjectCoercible$2$6(this),pe=fe==null?void 0:getMethod$2$4(fe,v);return pe?call$9$4(pe,fe,ve,le):call$9$4(ae,toString$3$3(ve),fe,le)},function(ce,fe){var le=anObject$5$4(this),ve=toString$3$3(ce),pe=ie(ae,le,ve,fe,ae!==k);if(pe.done)return pe.value;var ye=speciesConstructor$2$2(le,RegExp),me=le.unicode,Ee=(le.ignoreCase?"i":"")+(le.multiline?"m":"")+(le.unicode?"u":"")+(UNSUPPORTED_Y$4?"g":"y"),cr=new ye(UNSUPPORTED_Y$4?"^(?:"+le.source+")":le,Ee),Br=fe===void 0?MAX_UINT32$1:fe>>>0;if(Br===0)return[];if(ve.length===0)return callRegExpExec$1(cr,ve)===null?[ve]:[];for(var $r=0,Pr=0,Or=[];Pr1?arguments[1]:void 0)}});var whitespaces$2=` -\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,uncurryThis$4$8=functionUncurryThis$8,requireObjectCoercible$a=requireObjectCoercible$6$1,toString$1$8=toString$6$1,whitespaces$1=whitespaces$2,replace$3=uncurryThis$4$8("".replace),whitespace="["+whitespaces$1+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod$7=function(v){return function(k){var ie=toString$1$8(requireObjectCoercible$a(k));return v&1&&(ie=replace$3(ie,ltrim,"")),v&2&&(ie=replace$3(ie,rtrim,"")),ie}},stringTrim={start:createMethod$7(1),end:createMethod$7(2),trim:createMethod$7(3)},global$9$8=global$n,fails$3$8=fails$m$2,uncurryThis$3$8=functionUncurryThis$8,toString4=toString$6$1,trim=stringTrim.trim,whitespaces=whitespaces$2,charAt$5=uncurryThis$3$8("".charAt),n$ParseFloat=global$9$8.parseFloat,Symbol$1$8=global$9$8.Symbol,ITERATOR$3$3=Symbol$1$8&&Symbol$1$8.iterator,FORCED$2=1/n$ParseFloat(whitespaces+"-0")!==-1/0||ITERATOR$3$3&&!fails$3$8(function(){n$ParseFloat(Object(ITERATOR$3$3))}),numberParseFloat=FORCED$2?function v(k){var ie=trim(toString4(k)),ae=n$ParseFloat(ie);return ae===0&&charAt$5(ie,0)=="-"?-0:ae}:n$ParseFloat,$$8$2=_export$6,$parseFloat=numberParseFloat;$$8$2({globalThis:!0,forced:parseFloat!=$parseFloat},{parseFloat:$parseFloat});var classof$1$7=classofRaw$1$7,global$8$8=global$n,engineIsNode$2=classof$1$7(global$8$8.process)=="process",getBuiltIn$3$6=getBuiltIn$9$1,definePropertyModule$e=objectDefineProperty$8,wellKnownSymbol$4$4=wellKnownSymbol$h$2,DESCRIPTORS$1$8=descriptors$8,SPECIES$1$4=wellKnownSymbol$4$4("species"),setSpecies$1$4=function(v){var k=getBuiltIn$3$6(v),ie=definePropertyModule$e.f;DESCRIPTORS$1$8&&k&&!k[SPECIES$1$4]&&ie(k,SPECIES$1$4,{configurable:!0,get:function(){return this}})},isPrototypeOf$1$7=objectIsPrototypeOf$8,$TypeError$3$8=TypeError,anInstance$1$4=function(v,k){if(isPrototypeOf$1$7(k,v))return v;throw $TypeError$3$8("Incorrect invocation")},uncurryThis$2$8=functionUncurryThis$8,aCallable$5$2=aCallable$7$2,NATIVE_BIND$b=functionBindNative$8,bind$4$2=uncurryThis$2$8(uncurryThis$2$8.bind),functionBindContext$4=function(v,k){return aCallable$5$2(v),k===void 0?v:NATIVE_BIND$b?bind$4$2(v,k):function(){return v.apply(k,arguments)}},uncurryThis$1$8=functionUncurryThis$8,arraySlice$1$4=uncurryThis$1$8([].slice),$TypeError$2$8=TypeError,validateArgumentsLength$1$2=function(v,k){if(v=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$4$1(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$6]=ae,SUBCLASSING$2=ie.then(function(){})instanceof ae,SUBCLASSING$2?!k&&IS_BROWSER$2&&!NATIVE_PROMISE_REJECTION_EVENT$1$2:!0}),promiseConstructorDetection$2={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$2,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$2,SUBCLASSING:SUBCLASSING$2},newPromiseCapability$2$2={},aCallable$4$4=aCallable$7$2,PromiseCapability$2=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$4(k),this.reject=aCallable$4$4(ie)};newPromiseCapability$2$2.f=function(v){return new PromiseCapability$2(v)};var $$7$2=_export$6,IS_NODE$4=engineIsNode$2,global$1$8=global$n,call$7$4=functionCall$8,defineBuiltIn$2$5=defineBuiltIn$8$1,setPrototypeOf$8=objectSetPrototypeOf$4,setToStringTag$7=setToStringTag$3$3,setSpecies$5=setSpecies$1$4,aCallable$3$4=aCallable$7$2,isCallable$2$8=isCallable$m$2,isObject$1$8=isObject$8$2,anInstance$6=anInstance$1$4,speciesConstructor$1$4=speciesConstructor$3$1,task$3=task$1$2.set,microtask$3=microtask$1$2,hostReportErrors$3=hostReportErrors$1$2,perform$2$2=perform$3$2,Queue$3=queue$3,InternalStateModule$c=internalState$8,NativePromiseConstructor$3$2=promiseNativeConstructor$2,PromiseConstructorDetection$2=promiseConstructorDetection$2,newPromiseCapabilityModule$3$2=newPromiseCapability$2$2,PROMISE$2="Promise",FORCED_PROMISE_CONSTRUCTOR$4$2=PromiseConstructorDetection$2.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$3=PromiseConstructorDetection$2.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$2=PromiseConstructorDetection$2.SUBCLASSING,getInternalPromiseState$2=InternalStateModule$c.getterFor(PROMISE$2),setInternalState$6=InternalStateModule$c.set,NativePromisePrototype$2$1=NativePromiseConstructor$3$2&&NativePromiseConstructor$3$2.prototype,PromiseConstructor$2=NativePromiseConstructor$3$2,PromisePrototype$2=NativePromisePrototype$2$1,TypeError$1$8=global$1$8.TypeError,document$1$4=global$1$8.document,process2=global$1$8.process,newPromiseCapability$1$2=newPromiseCapabilityModule$3$2.f,newGenericPromiseCapability$2=newPromiseCapability$1$2,DISPATCH_EVENT$2=!!(document$1$4&&document$1$4.createEvent&&global$1$8.dispatchEvent),UNHANDLED_REJECTION$2="unhandledrejection",REJECTION_HANDLED$2="rejectionhandled",PENDING$2=0,FULFILLED$2=1,REJECTED$2=2,HANDLED$2=1,UNHANDLED$2=2,Internal$2,OwnPromiseCapability$2,PromiseWrapper$2,nativeThen$2,isThenable$2=function(v){var k;return isObject$1$8(v)&&isCallable$2$8(k=v.then)?k:!1},callReaction$2=function(v,k){var ie=k.value,ae=k.state==FULFILLED$2,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$2&&onHandleUnhandled$2(k),k.rejection=HANDLED$2),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$8("Promise-chain cycle")):(ye=isThenable$2(pe))?call$7$4(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$3=function(v,k){v.notified||(v.notified=!0,microtask$3(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$2(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$2(v)}))},dispatchEvent$2=function(v,k,ie){var ae,ce;DISPATCH_EVENT$2?(ae=document$1$4.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$1$8.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$3&&(ce=global$1$8["on"+v])?ce(ae):v===UNHANDLED_REJECTION$2&&hostReportErrors$3("Unhandled promise rejection",ie)},onUnhandled$2=function(v){call$7$4(task$3,global$1$8,function(){var k=v.facade,ie=v.value,ae=isUnhandled$2(v),ce;if(ae&&(ce=perform$2$2(function(){IS_NODE$4?process2.emit("unhandledRejection",ie,k):dispatchEvent$2(UNHANDLED_REJECTION$2,k,ie)}),v.rejection=IS_NODE$4||isUnhandled$2(v)?UNHANDLED$2:HANDLED$2,ce.error))throw ce.value})},isUnhandled$2=function(v){return v.rejection!==HANDLED$2&&!v.parent},onHandleUnhandled$2=function(v){call$7$4(task$3,global$1$8,function(){var k=v.facade;IS_NODE$4?process2.emit("rejectionHandled",k):dispatchEvent$2(REJECTION_HANDLED$2,k,v.value)})},bind$1$4=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$2=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$2,notify$3(v,!0))},internalResolve$2=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$8("Promise can't be resolved itself");var ae=isThenable$2(k);ae?microtask$3(function(){var ce={done:!1};try{call$7$4(ae,k,bind$1$4(internalResolve$2,ce,v),bind$1$4(internalReject$2,ce,v))}catch(fe){internalReject$2(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$2,notify$3(v,!1))}catch(ce){internalReject$2({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$2&&(PromiseConstructor$2=function(k){anInstance$6(this,PromisePrototype$2),aCallable$3$4(k),call$7$4(Internal$2,this);var ie=getInternalPromiseState$2(this);try{k(bind$1$4(internalResolve$2,ie),bind$1$4(internalReject$2,ie))}catch(ae){internalReject$2(ie,ae)}},PromisePrototype$2=PromiseConstructor$2.prototype,Internal$2=function(k){setInternalState$6(this,{type:PROMISE$2,done:!1,notified:!1,parent:!1,reactions:new Queue$3,rejection:!1,state:PENDING$2,value:void 0})},Internal$2.prototype=defineBuiltIn$2$5(PromisePrototype$2,"then",function(k,ie){var ae=getInternalPromiseState$2(this),ce=newPromiseCapability$1$2(speciesConstructor$1$4(this,PromiseConstructor$2));return ae.parent=!0,ce.ok=isCallable$2$8(k)?k:!0,ce.fail=isCallable$2$8(ie)&&ie,ce.domain=IS_NODE$4?process2.domain:void 0,ae.state==PENDING$2?ae.reactions.add(ce):microtask$3(function(){callReaction$2(ce,ae)}),ce.promise}),OwnPromiseCapability$2=function(){var v=new Internal$2,k=getInternalPromiseState$2(v);this.promise=v,this.resolve=bind$1$4(internalResolve$2,k),this.reject=bind$1$4(internalReject$2,k)},newPromiseCapabilityModule$3$2.f=newPromiseCapability$1$2=function(v){return v===PromiseConstructor$2||v===PromiseWrapper$2?new OwnPromiseCapability$2(v):newGenericPromiseCapability$2(v)},isCallable$2$8(NativePromiseConstructor$3$2)&&NativePromisePrototype$2$1!==Object.prototype)){nativeThen$2=NativePromisePrototype$2$1.then,NATIVE_PROMISE_SUBCLASSING$2||defineBuiltIn$2$5(NativePromisePrototype$2$1,"then",function(k,ie){var ae=this;return new PromiseConstructor$2(function(ce,fe){call$7$4(nativeThen$2,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$2$1.constructor}catch{}setPrototypeOf$8&&setPrototypeOf$8(NativePromisePrototype$2$1,PromisePrototype$2)}$$7$2({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$2},{Promise:PromiseConstructor$2});setToStringTag$7(PromiseConstructor$2,PROMISE$2,!1);setSpecies$5(PROMISE$2);var wellKnownSymbol$2$7=wellKnownSymbol$h$2,Iterators$1$4=iterators$4,ITERATOR$2$4=wellKnownSymbol$2$7("iterator"),ArrayPrototype$5=Array.prototype,isArrayIteratorMethod$1$4=function(v){return v!==void 0&&(Iterators$1$4.Array===v||ArrayPrototype$5[ITERATOR$2$4]===v)},classof$g=classof$6$3,getMethod$1$8=getMethod$4$2,Iterators$8=iterators$4,wellKnownSymbol$1$8=wellKnownSymbol$h$2,ITERATOR$1$4=wellKnownSymbol$1$8("iterator"),getIteratorMethod$2$4=function(v){if(v!=null)return getMethod$1$8(v,ITERATOR$1$4)||getMethod$1$8(v,"@@iterator")||Iterators$8[classof$g(v)]},call$6$5=functionCall$8,aCallable$2$4=aCallable$7$2,anObject$3$7=anObject$e$2,tryToString$1$8=tryToString$4$4,getIteratorMethod$1$4=getIteratorMethod$2$4,$TypeError$1$8=TypeError,getIterator$1$4=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$4(v):k;if(aCallable$2$4(ie))return anObject$3$7(call$6$5(ie,v));throw $TypeError$1$8(tryToString$1$8(v)+" is not iterable")},call$5$6=functionCall$8,anObject$2$8=anObject$e$2,getMethod$b=getMethod$4$2,iteratorClose$1$2=function(v,k,ie){var ae,ce;anObject$2$8(v);try{if(ae=getMethod$b(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$5$6(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$2$8(ae),ie},bind$d=functionBindContext$4,call$4$8=functionCall$8,anObject$1$8=anObject$e$2,tryToString$c=tryToString$4$4,isArrayIteratorMethod$5=isArrayIteratorMethod$1$4,lengthOfArrayLike$c=lengthOfArrayLike$3$2,isPrototypeOf$c=objectIsPrototypeOf$8,getIterator$5=getIterator$1$4,getIteratorMethod$6=getIteratorMethod$2$4,iteratorClose$3=iteratorClose$1$2,$TypeError$j=TypeError,Result$2=function(v,k){this.stopped=v,this.result=k},ResultPrototype$2=Result$2.prototype,iterate$2$2=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$d(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$3(pe,"normal",ur),new Result$2(!0,ur)},Or=function(ur){return ce?(anObject$1$8(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$6(v),!ye)throw $TypeError$j(tryToString$c(v)+" is not iterable");if(isArrayIteratorMethod$5(ye)){for(me=0,Ee=lengthOfArrayLike$c(v);Ee>me;me++)if(cr=Or(v[me]),cr&&isPrototypeOf$c(ResultPrototype$2,cr))return cr;return new Result$2(!1)}pe=getIterator$5(v,ye)}for(Br=pe.next;!($r=call$4$8(Br,pe)).done;){try{cr=Or($r.value)}catch(ur){iteratorClose$3(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$c(ResultPrototype$2,cr))return cr}return new Result$2(!1)},wellKnownSymbol$m=wellKnownSymbol$h$2,ITERATOR$8=wellKnownSymbol$m("iterator"),SAFE_CLOSING$4=!1;try{called$4=0,iteratorWithReturn$4={next:function(){return{done:!!called$4++}},return:function(){SAFE_CLOSING$4=!0}},iteratorWithReturn$4[ITERATOR$8]=function(){return this},Array.from(iteratorWithReturn$4,function(){throw 2})}catch(v){}var called$4,iteratorWithReturn$4,checkCorrectnessOfIteration$1$4=function(v,k){if(!k&&!SAFE_CLOSING$4)return!1;var ie=!1;try{var ae={};ae[ITERATOR$8]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$2$2=promiseNativeConstructor$2,checkCorrectnessOfIteration$5=checkCorrectnessOfIteration$1$4,FORCED_PROMISE_CONSTRUCTOR$3$2=promiseConstructorDetection$2.CONSTRUCTOR,promiseStaticsIncorrectIteration$2=FORCED_PROMISE_CONSTRUCTOR$3$2||!checkCorrectnessOfIteration$5(function(v){NativePromiseConstructor$2$2.all(v).then(void 0,function(){})}),$$6$2=_export$6,call$3$8=functionCall$8,aCallable$1$8=aCallable$7$2,newPromiseCapabilityModule$2$2=newPromiseCapability$2$2,perform$1$2=perform$3$2,iterate$1$2=iterate$2$2,PROMISE_STATICS_INCORRECT_ITERATION$1$2=promiseStaticsIncorrectIteration$2;$$6$2({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$2},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$2.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$2(function(){var ve=aCallable$1$8(ie.resolve),pe=[],ye=0,me=1;iterate$1$2(k,function(Ee){var cr=ye++,Br=!1;me++,call$3$8(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$5$2=_export$6,FORCED_PROMISE_CONSTRUCTOR$2$2=promiseConstructorDetection$2.CONSTRUCTOR,NativePromiseConstructor$1$2=promiseNativeConstructor$2,getBuiltIn$2$8=getBuiltIn$9$1,isCallable$1$8=isCallable$m$2,defineBuiltIn$1$8=defineBuiltIn$8$1,NativePromisePrototype$1$2=NativePromiseConstructor$1$2&&NativePromiseConstructor$1$2.prototype;$$5$2({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$2,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$1$8(NativePromiseConstructor$1$2)&&(method$1$1=getBuiltIn$2$8("Promise").prototype.catch,NativePromisePrototype$1$2.catch!==method$1$1&&defineBuiltIn$1$8(NativePromisePrototype$1$2,"catch",method$1$1,{unsafe:!0}));var method$1$1,$$4$3=_export$6,call$2$8=functionCall$8,aCallable$f=aCallable$7$2,newPromiseCapabilityModule$1$2=newPromiseCapability$2$2,perform$5=perform$3$2,iterate$4=iterate$2$2,PROMISE_STATICS_INCORRECT_ITERATION$3=promiseStaticsIncorrectIteration$2;$$4$3({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$3},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$2.f(ie),ce=ae.reject,fe=perform$5(function(){var le=aCallable$f(ie.resolve);iterate$4(k,function(ve){call$2$8(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$3$4=_export$6,call$1$8=functionCall$8,newPromiseCapabilityModule$5=newPromiseCapability$2$2,FORCED_PROMISE_CONSTRUCTOR$1$2=promiseConstructorDetection$2.CONSTRUCTOR;$$3$4({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$2},{reject:function v(k){var ie=newPromiseCapabilityModule$5.f(this);return call$1$8(ie.reject,void 0,k),ie.promise}});var anObject$i=anObject$e$2,isObject$i=isObject$8$2,newPromiseCapability$4=newPromiseCapability$2$2,promiseResolve$2$1=function(v,k){if(anObject$i(v),isObject$i(k)&&k.constructor===v)return k;var ie=newPromiseCapability$4.f(v),ae=ie.resolve;return ae(k),ie.promise},$$2$4=_export$6,getBuiltIn$1$8=getBuiltIn$9$1,FORCED_PROMISE_CONSTRUCTOR$7=promiseConstructorDetection$2.CONSTRUCTOR,promiseResolve$1$2=promiseResolve$2$1;getBuiltIn$1$8("Promise");$$2$4({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$7},{resolve:function v(k){return promiseResolve$1$2(this,k)}});var DESCRIPTORS$l=descriptors$8,uncurryThis$s=functionUncurryThis$8,call$m=functionCall$8,fails$1$8=fails$m$2,objectKeys$7=objectKeys$2$3,getOwnPropertySymbolsModule$7=objectGetOwnPropertySymbols$6,propertyIsEnumerableModule$7=objectPropertyIsEnumerable$6,toObject$e=toObject$3$3,IndexedObject$8=indexedObject$6,$assign$5=Object.assign,defineProperty3$7=Object.defineProperty,concat2=uncurryThis$s([].concat),objectAssign$5=!$assign$5||fails$1$8(function(){if(DESCRIPTORS$l&&$assign$5({b:1},$assign$5(defineProperty3$7({},"a",{enumerable:!0,get:function(){defineProperty3$7(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},k={},ie=Symbol(),ae="abcdefghijklmnopqrst";return v[ie]=7,ae.split("").forEach(function(ce){k[ce]=ce}),$assign$5({},v)[ie]!=7||objectKeys$7($assign$5({},k)).join("")!=ae})?function v(k,ie){for(var ae=toObject$e(k),ce=arguments.length,fe=1,le=getOwnPropertySymbolsModule$7.f,ve=propertyIsEnumerableModule$7.f;ce>fe;)for(var pe=IndexedObject$8(arguments[fe++]),ye=le?concat2(objectKeys$7(pe),le(pe)):objectKeys$7(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$l||call$m(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$5,$$1$4=_export$6,assign2$5=objectAssign$5;$$1$4({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$5},{assign:assign2$5});function __awaiter$a(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var $4=_export$6,NativePromiseConstructor$5=promiseNativeConstructor$2,fails$u=fails$m$2,getBuiltIn$g=getBuiltIn$9$1,isCallable$q=isCallable$m$2,speciesConstructor$5=speciesConstructor$3$1,promiseResolve$3=promiseResolve$2$1,defineBuiltIn$e=defineBuiltIn$8$1,NativePromisePrototype$3=NativePromiseConstructor$5&&NativePromiseConstructor$5.prototype,NON_GENERIC=!!NativePromiseConstructor$5&&fails$u(function(){NativePromisePrototype$3.finally.call({then:function(){}},function(){})});$4({target:"Promise",proto:!0,real:!0,forced:NON_GENERIC},{finally:function(v){var k=speciesConstructor$5(this,getBuiltIn$g("Promise")),ie=isCallable$q(v);return this.then(ie?function(ae){return promiseResolve$3(k,v()).then(function(){return ae})}:v,ie?function(ae){return promiseResolve$3(k,v()).then(function(){throw ae})}:v)}});isCallable$q(NativePromiseConstructor$5)&&(method$2=getBuiltIn$g("Promise").prototype.finally,NativePromisePrototype$3.finally!==method$2&&defineBuiltIn$e(NativePromisePrototype$3,"finally",method$2,{unsafe:!0}));var method$2,OPTO_WALLET="9504a1c1a86cc0702b2d3e47049e1389b373fb2ff22de3208c748d62912433a4",WalletConnectClient=class{init(v){return __awaiter$a(this,void 0,void 0,function*(){this.client=yield U3.init(v)})}constructor(v){this.emitter=v}get session(){return this.client.session}on(v,k){return this.client.on(v,k),{remove:()=>this.client.removeListener(v,k)}}once(v,k){this.client.once(v,k)}connect(v,k,ie,ae){return __awaiter$a(this,void 0,void 0,function*(){const ce=new d3({projectId:ie,chains:[ae],explorerExcludedWalletIds:"ALL",explorerRecommendedWalletIds:[OPTO_WALLET]});return new Promise((fe,le)=>{this.client.connect(v).then(({uri:ve,approval:pe})=>{ve&&(k?(ce.openModal({uri:ve,standaloneChains:[ae]}),ce.subscribeModal(({open:ye})=>{ye||le(new Error("User cancelled pairing"))})):this.emitter.emit("uriChanged",{uri:ve})),pe().then(fe).catch(le).finally(()=>ce.closeModal())}).catch(le)})})}request(v){return __awaiter$a(this,void 0,void 0,function*(){return this.client.request(v)})}disconnect(v){return __awaiter$a(this,void 0,void 0,function*(){return this.client.disconnect(v)})}},icon$9="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAir0lEQVR42u3deZxcVZn/8c9zbnV3dhIim6CMCIyK4rigM6S6AUEZcRu3EQGRJV0NmA3CYiASCGtkT0Do6gRB1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WXJsNE24/V7hxsaLfkB7j809P7z28INueH2+ZWrWTKAb/08MAvsS578m+ctgC2UL6bNguORzoNtu3Zd2cPTOw+zz//zR+zrc3cMQ3Gmoi12/P8p9+TCeMQLqS5uDuyyjW/3PNjZwILFHcmQv5waCN4C2EKlQtJjaIGZnQlbf+1q8PSasp122B6e/AAL/tnKH97Lvt6b2mnAtsy991czO9NM8z35t5y3APopX0ybEEcLXQTs0M+XP2lw2qqy3fo/n0saPvlfbr9r01xLwickXQLs1s+X/9XMZoC+UirkGu5yalt4AdgK+WJsknQk6GJgpy182Z/N7BTgO6WCJ/8ryRfTHOI/hC4HXrOFL1ti2Ocx+1qp0Hh9KdvKC8BWynfGHOjTQpew+SLwuGGnYNxeKiSNvGzZZuU700TwYSpF4J828+dLzOw0sP8qFfxyamt4AdgG+WJMQJ+SdBmw80b+7HHDpgLfK3V48m+JCZ1pYvABoavYSBEweAbsVILdUmr35N9a3gm4DUqFkJqFWzCbAvyev1+UtGzwiGEnAXd48m+5xR1JinGHmZ0EPMLfr+mQAr/HbCoWbvbk3zbeAhgAE7oUAulb08gJwexNSBGzhw2ulfhtqSNRrWOsR63F1IA3SDoReCtmQdKvE6xTwX7R3R5irWOsd14ABtD+16UjRjeHsWvSSBRLfQjqwMgX0+G5xMY1AytTLbvfH+pxzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOecy5f8DP47LVlAysbUAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDYtMjNUMTQ6MzU6MDkrMDA6MDD1AeMiAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA2LTIzVDE0OjM1OjA5KzAwOjAwhFxbngAAAABJRU5ErkJggg==",WC_METHODS=["near_signIn","near_signOut","near_getAccounts","near_signTransaction","near_signTransactions","near_verifyOwner"],WC_EVENTS=["chainChanged","accountsChanged"],setupWalletConnectState=(v,k,ie)=>__awaiter$a(void 0,void 0,void 0,function*(){const ae=new WalletConnectClient(ie);let ce=null;const fe=new nearAPI$3.keyStores.BrowserLocalStorageKeyStore(window.localStorage,`near-wallet-selector:${v}:keystore:`);if(yield ae.init({projectId:k.projectId,metadata:k.metadata,relayUrl:k.relayUrl}),ae.session.length){const le=ae.session.keys.length-1;ce=ae.session.get(ae.session.keys[le])}return{client:ae,session:ce,keystore:fe,subscriptions:[]}}),WalletConnect=({id:v,options:k,store:ie,params:ae,provider:ce,emitter:fe,logger:le})=>__awaiter$a(void 0,void 0,void 0,function*(){const ve=yield setupWalletConnectState(v,ae,fe),pe=()=>{if(ae.chainId)return ae.chainId;const{networkId:Gr}=k.network;if(["mainnet","testnet"].includes(Gr))return`near:${Gr}`;throw new Error("Invalid chain id")},ye=()=>__awaiter$a(void 0,void 0,void 0,function*(){var Gr;const Ur=((Gr=ve.session)===null||Gr===void 0?void 0:Gr.namespaces.near.accounts)||[],Qr=[];for(let vn=0;vn__awaiter$a(void 0,void 0,void 0,function*(){ve.subscriptions.forEach(Gr=>Gr.remove()),ve.subscriptions=[],ve.session=null}),Ee=(Gr,Ur)=>{if(Ur.permission==="FullAccess")return Ur;const{receiver_id:Qr,method_names:vn}=Ur.permission.FunctionCall;return Gr.receiverId!==Qr?null:Gr.actions.every(Yt=>{if(Yt.type!=="FunctionCall")return!1;const{methodName:fn,deposit:Xt}=Yt.params;return vn.length&&vn.includes(fn)?!1:parseFloat(Xt)<=0})},cr=Gr=>__awaiter$a(void 0,void 0,void 0,function*(){const Ur=new nearAPI$3.InMemorySigner(ve.keystore),Qr=[],vn=yield ce.block({finality:"final"});for(let Yt=0;YtcreateAction(kr)),nearAPI$3.utils.serialize.base_decode(vn.header.hash)),[,be]=yield nearAPI$3.transactions.signTransaction(Kr,Ur,Gr[Yt].signerId,k.network.networkId);Qr.push(be)}return Qr}),Br=()=>__awaiter$a(void 0,void 0,void 0,function*(){return ve.client.request({topic:ve.session.topic,chainId:pe(),request:{method:"near_getAccounts",params:{}}})}),$r=(Gr,Ur)=>__awaiter$a(void 0,void 0,void 0,function*(){return ve.client.request({topic:ve.session.topic,chainId:pe(),request:{method:"near_verifyOwner",params:{accountId:Gr,message:Ur}}})}),Pr=Gr=>__awaiter$a(void 0,void 0,void 0,function*(){const Qr=(yield Br()).find(Qt=>Qt.accountId===Gr.signerId);if(!Qr)throw new Error("Invalid signer id");const[vn,Yt]=yield Promise.all([ce.block({finality:"final"}),ce.query({request_type:"view_access_key",finality:"final",account_id:Gr.signerId,public_key:Qr.publicKey})]),fn=nearAPI$3.transactions.createTransaction(Gr.signerId,nearAPI$3.utils.PublicKey.from(Qr.publicKey),Gr.receiverId,Yt.nonce+1,Gr.actions.map(Qt=>createAction(Qt)),nearAPI$3.utils.serialize.base_decode(vn.header.hash)),Xt=yield ve.client.request({topic:ve.session.topic,chainId:pe(),request:{method:"near_signTransaction",params:{transaction:fn.encode()}}});return nearAPI$3.transactions.SignedTransaction.decode(Buffer.from(Xt))}),Or=Gr=>__awaiter$a(void 0,void 0,void 0,function*(){if(!Gr.length)return[];const Ur=[],[Qr,vn]=yield Promise.all([ce.block({finality:"final"}),Br()]);for(let fn=0;fnbe.accountId===Xt.signerId);if(!Qt)throw new Error("Invalid signer id");const Kr=yield ce.query({request_type:"view_access_key",finality:"final",account_id:Xt.signerId,public_key:Qt.publicKey});Ur.push(nearAPI$3.transactions.createTransaction(Xt.signerId,nearAPI$3.utils.PublicKey.from(Qt.publicKey),Xt.receiverId,Kr.nonce+fn+1,Xt.actions.map(be=>createAction(be)),nearAPI$3.utils.serialize.base_decode(Qr.header.hash)))}return(yield ve.client.request({topic:ve.session.topic,chainId:pe(),request:{method:"near_signTransactions",params:{transactions:Ur.map(fn=>fn.encode())}}})).map(fn=>nearAPI$3.transactions.SignedTransaction.decode(Buffer.from(fn)))}),ur=()=>__awaiter$a(void 0,void 0,void 0,function*(){return(yield ye()).map(({accountId:Ur})=>({accountId:Ur,keyPair:nearAPI$3.utils.KeyPair.fromRandom("ed25519")}))}),jr=Gr=>__awaiter$a(void 0,void 0,void 0,function*(){const Ur=yield ur(),Qr=Ur.map(({accountId:vn,keyPair:Yt})=>({accountId:vn,publicKey:Yt.getPublicKey().toString()}));yield ve.client.request({topic:ve.session.topic,chainId:pe(),request:{method:"near_signIn",params:{permission:Gr,accounts:Qr}}});for(let vn=0;vn__awaiter$a(void 0,void 0,void 0,function*(){const Gr=yield ye(),Ur=[];for(let Qr=0;Qr__awaiter$a(void 0,void 0,void 0,function*(){ve.session&&(yield Mr(),yield ve.client.disconnect({topic:ve.session.topic,reason:{code:5900,message:"User disconnected"}})),yield me()}),Vr=()=>__awaiter$a(void 0,void 0,void 0,function*(){ve.subscriptions.push(ve.client.on("session_update",Gr=>__awaiter$a(void 0,void 0,void 0,function*(){var Ur;le.log("Session Update",Gr),Gr.topic===((Ur=ve.session)===null||Ur===void 0?void 0:Ur.topic)&&(ve.session=Object.assign(Object.assign({},ve.client.session.get(Gr.topic)),{namespaces:Gr.params.namespaces}),fe.emit("accountsChanged",{accounts:yield ye()}))}))),ve.subscriptions.push(ve.client.on("session_delete",Gr=>__awaiter$a(void 0,void 0,void 0,function*(){var Ur;le.log("Session Deleted",Gr),Gr.topic===((Ur=ve.session)===null||Ur===void 0?void 0:Ur.topic)&&(yield me(),fe.emit("signedOut",null))})))});return ve.session&&(yield Vr()),{signIn({contractId:Gr,methodNames:Ur=[],qrCodeModal:Qr=!0}){return __awaiter$a(this,void 0,void 0,function*(){const vn=yield ye();if(vn.length)return vn;try{const Yt=pe();return ve.session=yield ve.client.connect({requiredNamespaces:{near:{chains:[pe()],methods:WC_METHODS,events:WC_EVENTS}}},Qr,ae.projectId,Yt),yield jr({receiverId:Gr,methodNames:Ur}),yield Vr(),ye()}catch(Yt){throw yield Lr(),Yt}})},signOut:Lr,getAccounts(){return __awaiter$a(this,void 0,void 0,function*(){return ye()})},verifyOwner({message:Gr}){return __awaiter$a(this,void 0,void 0,function*(){le.log("WalletConnect:verifyOwner",{message:Gr});const{contract:Ur}=ie.getState();if(!ve.session||!Ur)throw new Error("Wallet not signed in");const Qr=getActiveAccount(ie.getState());if(!Qr)throw new Error("No active account");return $r(Qr.accountId,Gr)})},signAndSendTransaction({signerId:Gr,receiverId:Ur,actions:Qr}){return __awaiter$a(this,void 0,void 0,function*(){le.log("signAndSendTransaction",{signerId:Gr,receiverId:Ur,actions:Qr});const{contract:vn}=ie.getState();if(!ve.session||!vn)throw new Error("Wallet not signed in");const Yt=getActiveAccount(ie.getState());if(!Yt)throw new Error("No active account");const fn={signerId:Gr||Yt.accountId,receiverId:Ur||vn.contractId,actions:Qr};try{const[Xt]=yield cr([fn]);return ce.sendTransaction(Xt)}catch(Xt){le.log("Falling back to WalletConnect to sign transaction",Xt);const Qt=yield Pr(fn);return ce.sendTransaction(Qt)}})},signAndSendTransactions({transactions:Gr}){return __awaiter$a(this,void 0,void 0,function*(){le.log("signAndSendTransactions",{transactions:Gr});const{contract:Ur}=ie.getState();if(!ve.session||!Ur)throw new Error("Wallet not signed in");const Qr=getActiveAccount(ie.getState());if(!Qr)throw new Error("No active account");const vn=Gr.map(Yt=>({signerId:Yt.signerId||Qr.accountId,receiverId:Yt.receiverId,actions:Yt.actions}));try{const Yt=yield cr(vn),fn=[];for(let Xt=0;Xt__awaiter$a(this,void 0,void 0,function*(){return{id:"wallet-connect",type:"bridge",metadata:{name:"WalletConnect",description:"Bridge wallet for NEAR.",iconUrl:ce,deprecated:fe,available:!0},init:le=>WalletConnect(Object.assign(Object.assign({},le),{params:{projectId:v,metadata:k,relayUrl:ae,chainId:ie}}))}})}/*! ***************************************************************************** + Approved: ${cr.toString()}`))}),le.forEach(Ee=>{ae||(O(ce[Ee].methods,fe[Ee].methods)?O(ce[Ee].events,fe[Ee].events)||(ae=N$1("NON_CONFORMING_NAMESPACES",`${ie} namespaces events don't satisfy namespace events for ${Ee}`)):ae=N$1("NON_CONFORMING_NAMESPACES",`${ie} namespaces methods don't satisfy namespace methods for ${Ee}`))}),ae}function Ht(v){const k={};return Object.keys(v).forEach(ie=>{var ae;ie.includes(":")?k[ie]=v[ie]:(ae=v[ie].chains)==null||ae.forEach(ce=>{k[ce]={methods:v[ie].methods,events:v[ie].events}})}),k}function un(v){return[...new Set(v.map(k=>k.includes(":")?k.split(":")[0]:k))]}function qt(v){const k={};return Object.keys(v).forEach(ie=>{if(ie.includes(":"))k[ie]=v[ie];else{const ae=R(v[ie].accounts);ae==null||ae.forEach(ce=>{k[ce]={accounts:v[ie].accounts.filter(fe=>fe.includes(`${ce}:`)),methods:v[ie].methods,events:v[ie].events}})}}),k}function Gt(v,k){return q(v,!1)&&v<=k.max&&v>=k.min}var import_time3=__toESM(require_cjs2()),import_events3=__toESM(require_events()),esm_exports2={};__export$1(esm_exports2,{DEFAULT_ERROR:()=>DEFAULT_ERROR,IBaseJsonRpcProvider:()=>IBaseJsonRpcProvider,IEvents:()=>IEvents2,IJsonRpcConnection:()=>IJsonRpcConnection,IJsonRpcProvider:()=>IJsonRpcProvider,INTERNAL_ERROR:()=>INTERNAL_ERROR,INVALID_PARAMS:()=>INVALID_PARAMS,INVALID_REQUEST:()=>INVALID_REQUEST,METHOD_NOT_FOUND:()=>METHOD_NOT_FOUND,PARSE_ERROR:()=>PARSE_ERROR,RESERVED_ERROR_CODES:()=>RESERVED_ERROR_CODES,SERVER_ERROR:()=>SERVER_ERROR,SERVER_ERROR_CODE_RANGE:()=>SERVER_ERROR_CODE_RANGE,STANDARD_ERROR_MAP:()=>STANDARD_ERROR_MAP,formatErrorMessage:()=>formatErrorMessage,formatJsonRpcError:()=>formatJsonRpcError,formatJsonRpcRequest:()=>formatJsonRpcRequest,formatJsonRpcResult:()=>formatJsonRpcResult,getBigIntRpcId:()=>getBigIntRpcId,getError:()=>getError,getErrorByCode:()=>getErrorByCode,isHttpUrl:()=>isHttpUrl,isJsonRpcError:()=>isJsonRpcError,isJsonRpcPayload:()=>isJsonRpcPayload,isJsonRpcRequest:()=>isJsonRpcRequest,isJsonRpcResponse:()=>isJsonRpcResponse,isJsonRpcResult:()=>isJsonRpcResult,isJsonRpcValidationInvalid:()=>isJsonRpcValidationInvalid,isLocalhostUrl:()=>isLocalhostUrl,isNodeJs:()=>isNodeJs,isReservedErrorCode:()=>isReservedErrorCode,isServerErrorCode:()=>isServerErrorCode,isValidDefaultRoute:()=>isValidDefaultRoute,isValidErrorCode:()=>isValidErrorCode,isValidLeadingWildcardRoute:()=>isValidLeadingWildcardRoute,isValidRoute:()=>isValidRoute,isValidTrailingWildcardRoute:()=>isValidTrailingWildcardRoute,isValidWildcardRoute:()=>isValidWildcardRoute,isWsUrl:()=>isWsUrl,parseConnectionError:()=>parseConnectionError,payloadId:()=>payloadId,validateJsonRpcError:()=>validateJsonRpcError});var PARSE_ERROR="PARSE_ERROR",INVALID_REQUEST="INVALID_REQUEST",METHOD_NOT_FOUND="METHOD_NOT_FOUND",INVALID_PARAMS="INVALID_PARAMS",INTERNAL_ERROR="INTERNAL_ERROR",SERVER_ERROR="SERVER_ERROR",RESERVED_ERROR_CODES=[-32700,-32600,-32601,-32602,-32603],SERVER_ERROR_CODE_RANGE=[-32e3,-32099],STANDARD_ERROR_MAP={[PARSE_ERROR]:{code:-32700,message:"Parse error"},[INVALID_REQUEST]:{code:-32600,message:"Invalid Request"},[METHOD_NOT_FOUND]:{code:-32601,message:"Method not found"},[INVALID_PARAMS]:{code:-32602,message:"Invalid params"},[INTERNAL_ERROR]:{code:-32603,message:"Internal error"},[SERVER_ERROR]:{code:-32e3,message:"Server error"}},DEFAULT_ERROR=SERVER_ERROR;function isServerErrorCode(v){return v<=SERVER_ERROR_CODE_RANGE[0]&&v>=SERVER_ERROR_CODE_RANGE[1]}function isReservedErrorCode(v){return RESERVED_ERROR_CODES.includes(v)}function isValidErrorCode(v){return typeof v=="number"}function getError(v){return Object.keys(STANDARD_ERROR_MAP).includes(v)?STANDARD_ERROR_MAP[v]:STANDARD_ERROR_MAP[DEFAULT_ERROR]}function getErrorByCode(v){const k=Object.values(STANDARD_ERROR_MAP).find(ie=>ie.code===v);return k||STANDARD_ERROR_MAP[DEFAULT_ERROR]}function validateJsonRpcError(v){if(typeof v.error.code>"u")return{valid:!1,error:"Missing code for JSON-RPC error"};if(typeof v.error.message>"u")return{valid:!1,error:"Missing message for JSON-RPC error"};if(!isValidErrorCode(v.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${v.error.code}`};if(isReservedErrorCode(v.error.code)){const k=getErrorByCode(v.error.code);if(k.message!==STANDARD_ERROR_MAP[DEFAULT_ERROR].message&&v.error.message===k.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${v.error.code}`}}return{valid:!0}}function parseConnectionError(v,k,ie){return v.message.includes("getaddrinfo ENOTFOUND")||v.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${ie} RPC url at ${k}`):v}var env_exports={};__export$1(env_exports,{isNodeJs:()=>isNodeJs});var import_environment=__toESM(require_cjs7());__reExport(env_exports,__toESM(require_cjs7()));var isNodeJs=import_environment.isNode;__reExport(esm_exports2,env_exports);function payloadId(v=3){const k=Date.now()*Math.pow(10,v),ie=Math.floor(Math.random()*Math.pow(10,v));return k+ie}function getBigIntRpcId(v=6){return BigInt(payloadId(v))}function formatJsonRpcRequest(v,k,ie){return{id:ie||payloadId(),jsonrpc:"2.0",method:v,params:k}}function formatJsonRpcResult(v,k){return{id:v,jsonrpc:"2.0",result:k}}function formatJsonRpcError(v,k,ie){return{id:v,jsonrpc:"2.0",error:formatErrorMessage(k,ie)}}function formatErrorMessage(v,k){return typeof v>"u"?getError(INTERNAL_ERROR):(typeof v=="string"&&(v=Object.assign(Object.assign({},getError(SERVER_ERROR)),{message:v})),typeof k<"u"&&(v.data=k),isReservedErrorCode(v.code)&&(v=getErrorByCode(v.code)),v)}function isValidRoute(v){return v.includes("*")?isValidWildcardRoute(v):!/\W/g.test(v)}function isValidDefaultRoute(v){return v==="*"}function isValidWildcardRoute(v){return isValidDefaultRoute(v)?!0:!(!v.includes("*")||v.split("*").length!==2||v.split("*").filter(k=>k.trim()==="").length!==1)}function isValidLeadingWildcardRoute(v){return!isValidDefaultRoute(v)&&isValidWildcardRoute(v)&&!v.split("*")[0].trim()}function isValidTrailingWildcardRoute(v){return!isValidDefaultRoute(v)&&isValidWildcardRoute(v)&&!v.split("*")[1].trim()}var IEvents2=class{},IJsonRpcConnection=class extends IEvents2{constructor(v){super()}},IBaseJsonRpcProvider=class extends IEvents2{constructor(){super()}},IJsonRpcProvider=class extends IBaseJsonRpcProvider{constructor(v){super()}},HTTP_REGEX="^https?:",WS_REGEX="^wss?:";function getUrlProtocol(v){const k=v.match(new RegExp(/^\w+:/,"gi"));if(!(!k||!k.length))return k[0]}function matchRegexProtocol(v,k){const ie=getUrlProtocol(v);return typeof ie>"u"?!1:new RegExp(k).test(ie)}function isHttpUrl(v){return matchRegexProtocol(v,HTTP_REGEX)}function isWsUrl(v){return matchRegexProtocol(v,WS_REGEX)}function isLocalhostUrl(v){return new RegExp("wss?://localhost(:d{2,5})?").test(v)}function isJsonRpcPayload(v){return typeof v=="object"&&"id"in v&&"jsonrpc"in v&&v.jsonrpc==="2.0"}function isJsonRpcRequest(v){return isJsonRpcPayload(v)&&"method"in v}function isJsonRpcResponse(v){return isJsonRpcPayload(v)&&(isJsonRpcResult(v)||isJsonRpcError(v))}function isJsonRpcResult(v){return"result"in v}function isJsonRpcError(v){return"error"in v}function isJsonRpcValidationInvalid(v){return"error"in v&&v.valid===!1}var JsonRpcProvider$1=class extends IJsonRpcProvider{constructor(v){super(v),this.events=new import_events3.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(v),this.connection.connected&&this.registerEventListeners()}async connect(v=this.connection){await this.open(v)}async disconnect(){await this.close()}on(v,k){this.events.on(v,k)}once(v,k){this.events.once(v,k)}off(v,k){this.events.off(v,k)}removeListener(v,k){this.events.removeListener(v,k)}async request(v,k){return this.requestStrict(formatJsonRpcRequest(v.method,v.params||[],v.id||getBigIntRpcId().toString()),k)}async requestStrict(v,k){return new Promise(async(ie,ae)=>{if(!this.connection.connected)try{await this.open()}catch(ce){ae(ce)}this.events.on(`${v.id}`,ce=>{isJsonRpcError(ce)?ae(ce.error):ie(ce.result)});try{await this.connection.send(v,k)}catch(ce){ae(ce)}})}setConnection(v=this.connection){return v}onPayload(v){this.events.emit("payload",v),isJsonRpcResponse(v)?this.events.emit(`${v.id}`,v):this.events.emit("message",{type:v.method,data:v.params})}onClose(v){v&&v.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${v.code} ${v.reason?`(${v.reason})`:""}`)),this.events.emit("disconnect")}async open(v=this.connection){this.connection===v&&this.connection.connected||(this.connection.connected&&this.close(),typeof v=="string"&&(await this.connection.open(v),v=this.connection),this.connection=this.setConnection(v),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",v=>this.onPayload(v)),this.connection.on("close",v=>this.onClose(v)),this.connection.on("error",v=>this.events.emit("error",v)),this.connection.on("register_error",v=>this.onClose()),this.hasRegisteredEventListeners=!0)}},import_events4=__toESM(require_events()),esm_exports3={};__export$1(esm_exports3,{DEFAULT_ERROR:()=>DEFAULT_ERROR2,IBaseJsonRpcProvider:()=>IBaseJsonRpcProvider2,IEvents:()=>IEvents3,IJsonRpcConnection:()=>IJsonRpcConnection2,IJsonRpcProvider:()=>IJsonRpcProvider2,INTERNAL_ERROR:()=>INTERNAL_ERROR2,INVALID_PARAMS:()=>INVALID_PARAMS2,INVALID_REQUEST:()=>INVALID_REQUEST2,METHOD_NOT_FOUND:()=>METHOD_NOT_FOUND2,PARSE_ERROR:()=>PARSE_ERROR2,RESERVED_ERROR_CODES:()=>RESERVED_ERROR_CODES2,SERVER_ERROR:()=>SERVER_ERROR2,SERVER_ERROR_CODE_RANGE:()=>SERVER_ERROR_CODE_RANGE2,STANDARD_ERROR_MAP:()=>STANDARD_ERROR_MAP2,formatErrorMessage:()=>formatErrorMessage2,formatJsonRpcError:()=>formatJsonRpcError2,formatJsonRpcRequest:()=>formatJsonRpcRequest2,formatJsonRpcResult:()=>formatJsonRpcResult2,getBigIntRpcId:()=>getBigIntRpcId2,getError:()=>getError2,getErrorByCode:()=>getErrorByCode2,isHttpUrl:()=>isHttpUrl2,isJsonRpcError:()=>isJsonRpcError2,isJsonRpcPayload:()=>isJsonRpcPayload2,isJsonRpcRequest:()=>isJsonRpcRequest2,isJsonRpcResponse:()=>isJsonRpcResponse2,isJsonRpcResult:()=>isJsonRpcResult2,isJsonRpcValidationInvalid:()=>isJsonRpcValidationInvalid2,isLocalhostUrl:()=>isLocalhostUrl2,isNodeJs:()=>isNodeJs2,isReservedErrorCode:()=>isReservedErrorCode2,isServerErrorCode:()=>isServerErrorCode2,isValidDefaultRoute:()=>isValidDefaultRoute2,isValidErrorCode:()=>isValidErrorCode2,isValidLeadingWildcardRoute:()=>isValidLeadingWildcardRoute2,isValidRoute:()=>isValidRoute2,isValidTrailingWildcardRoute:()=>isValidTrailingWildcardRoute2,isValidWildcardRoute:()=>isValidWildcardRoute2,isWsUrl:()=>isWsUrl2,parseConnectionError:()=>parseConnectionError2,payloadId:()=>payloadId2,validateJsonRpcError:()=>validateJsonRpcError2});var PARSE_ERROR2="PARSE_ERROR",INVALID_REQUEST2="INVALID_REQUEST",METHOD_NOT_FOUND2="METHOD_NOT_FOUND",INVALID_PARAMS2="INVALID_PARAMS",INTERNAL_ERROR2="INTERNAL_ERROR",SERVER_ERROR2="SERVER_ERROR",RESERVED_ERROR_CODES2=[-32700,-32600,-32601,-32602,-32603],SERVER_ERROR_CODE_RANGE2=[-32e3,-32099],STANDARD_ERROR_MAP2={[PARSE_ERROR2]:{code:-32700,message:"Parse error"},[INVALID_REQUEST2]:{code:-32600,message:"Invalid Request"},[METHOD_NOT_FOUND2]:{code:-32601,message:"Method not found"},[INVALID_PARAMS2]:{code:-32602,message:"Invalid params"},[INTERNAL_ERROR2]:{code:-32603,message:"Internal error"},[SERVER_ERROR2]:{code:-32e3,message:"Server error"}},DEFAULT_ERROR2=SERVER_ERROR2;function isServerErrorCode2(v){return v<=SERVER_ERROR_CODE_RANGE2[0]&&v>=SERVER_ERROR_CODE_RANGE2[1]}function isReservedErrorCode2(v){return RESERVED_ERROR_CODES2.includes(v)}function isValidErrorCode2(v){return typeof v=="number"}function getError2(v){return Object.keys(STANDARD_ERROR_MAP2).includes(v)?STANDARD_ERROR_MAP2[v]:STANDARD_ERROR_MAP2[DEFAULT_ERROR2]}function getErrorByCode2(v){const k=Object.values(STANDARD_ERROR_MAP2).find(ie=>ie.code===v);return k||STANDARD_ERROR_MAP2[DEFAULT_ERROR2]}function validateJsonRpcError2(v){if(typeof v.error.code>"u")return{valid:!1,error:"Missing code for JSON-RPC error"};if(typeof v.error.message>"u")return{valid:!1,error:"Missing message for JSON-RPC error"};if(!isValidErrorCode2(v.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${v.error.code}`};if(isReservedErrorCode2(v.error.code)){const k=getErrorByCode2(v.error.code);if(k.message!==STANDARD_ERROR_MAP2[DEFAULT_ERROR2].message&&v.error.message===k.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${v.error.code}`}}return{valid:!0}}function parseConnectionError2(v,k,ie){return v.message.includes("getaddrinfo ENOTFOUND")||v.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${ie} RPC url at ${k}`):v}var env_exports2={};__export$1(env_exports2,{isNodeJs:()=>isNodeJs2});var import_environment2=__toESM(require_cjs7());__reExport(env_exports2,__toESM(require_cjs7()));var isNodeJs2=import_environment2.isNode;__reExport(esm_exports3,env_exports2);function payloadId2(v=3){const k=Date.now()*Math.pow(10,v),ie=Math.floor(Math.random()*Math.pow(10,v));return k+ie}function getBigIntRpcId2(v=6){return BigInt(payloadId2(v))}function formatJsonRpcRequest2(v,k,ie){return{id:ie||payloadId2(),jsonrpc:"2.0",method:v,params:k}}function formatJsonRpcResult2(v,k){return{id:v,jsonrpc:"2.0",result:k}}function formatJsonRpcError2(v,k,ie){return{id:v,jsonrpc:"2.0",error:formatErrorMessage2(k,ie)}}function formatErrorMessage2(v,k){return typeof v>"u"?getError2(INTERNAL_ERROR2):(typeof v=="string"&&(v=Object.assign(Object.assign({},getError2(SERVER_ERROR2)),{message:v})),typeof k<"u"&&(v.data=k),isReservedErrorCode2(v.code)&&(v=getErrorByCode2(v.code)),v)}function isValidRoute2(v){return v.includes("*")?isValidWildcardRoute2(v):!/\W/g.test(v)}function isValidDefaultRoute2(v){return v==="*"}function isValidWildcardRoute2(v){return isValidDefaultRoute2(v)?!0:!(!v.includes("*")||v.split("*").length!==2||v.split("*").filter(k=>k.trim()==="").length!==1)}function isValidLeadingWildcardRoute2(v){return!isValidDefaultRoute2(v)&&isValidWildcardRoute2(v)&&!v.split("*")[0].trim()}function isValidTrailingWildcardRoute2(v){return!isValidDefaultRoute2(v)&&isValidWildcardRoute2(v)&&!v.split("*")[1].trim()}var IEvents3=class{},IJsonRpcConnection2=class extends IEvents3{constructor(v){super()}},IBaseJsonRpcProvider2=class extends IEvents3{constructor(){super()}},IJsonRpcProvider2=class extends IBaseJsonRpcProvider2{constructor(v){super()}},HTTP_REGEX2="^https?:",WS_REGEX2="^wss?:";function getUrlProtocol2(v){const k=v.match(new RegExp(/^\w+:/,"gi"));if(!(!k||!k.length))return k[0]}function matchRegexProtocol2(v,k){const ie=getUrlProtocol2(v);return typeof ie>"u"?!1:new RegExp(k).test(ie)}function isHttpUrl2(v){return matchRegexProtocol2(v,HTTP_REGEX2)}function isWsUrl2(v){return matchRegexProtocol2(v,WS_REGEX2)}function isLocalhostUrl2(v){return new RegExp("wss?://localhost(:d{2,5})?").test(v)}function isJsonRpcPayload2(v){return typeof v=="object"&&"id"in v&&"jsonrpc"in v&&v.jsonrpc==="2.0"}function isJsonRpcRequest2(v){return isJsonRpcPayload2(v)&&"method"in v}function isJsonRpcResponse2(v){return isJsonRpcPayload2(v)&&(isJsonRpcResult2(v)||isJsonRpcError2(v))}function isJsonRpcResult2(v){return"result"in v}function isJsonRpcError2(v){return"error"in v}function isJsonRpcValidationInvalid2(v){return"error"in v&&v.valid===!1}var resolveWebSocketImplementation=()=>typeof WebSocket<"u"?WebSocket:typeof globalThis<"u"&&typeof globalThis.WebSocket<"u"?globalThis.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:require_browser4$1(),hasBuiltInWebSocket=()=>typeof WebSocket<"u"||typeof globalThis<"u"&&typeof globalThis.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",truncateQuery=v=>v.split("?")[0],EVENT_EMITTER_MAX_LISTENERS_DEFAULT=10,WS$1=resolveWebSocketImplementation(),WsConnection=class{constructor(v){if(this.url=v,this.events=new import_events4.EventEmitter,this.registering=!1,!isWsUrl2(v))throw new Error(`Provided URL is not compatible with WebSocket connection: ${v}`);this.url=v}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(v,k){this.events.on(v,k)}once(v,k){this.events.once(v,k)}off(v,k){this.events.off(v,k)}removeListener(v,k){this.events.removeListener(v,k)}async open(v=this.url){await this.register(v)}async close(){return new Promise((v,k)=>{if(typeof this.socket>"u"){k(new Error("Connection already closed"));return}this.socket.onclose=ie=>{this.onClose(ie),v()},this.socket.close()})}async send(v,k){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(safeJsonStringify(v))}catch(ie){this.onError(v.id,ie)}}register(v=this.url){if(!isWsUrl2(v))throw new Error(`Provided URL is not compatible with WebSocket connection: ${v}`);if(this.registering){const k=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=k||this.events.listenerCount("open")>=k)&&this.events.setMaxListeners(k+1),new Promise((ie,ae)=>{this.events.once("register_error",ce=>{this.resetMaxListeners(),ae(ce)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return ae(new Error("WebSocket connection is missing or invalid"));ie(this.socket)})})}return this.url=v,this.registering=!0,new Promise((k,ie)=>{const ae=(0,esm_exports3.isReactNative)()?void 0:{rejectUnauthorized:!isLocalhostUrl2(v)},ce=new WS$1(v,[],ae);hasBuiltInWebSocket()?ce.onerror=fe=>{const le=fe;ie(this.emitError(le.error))}:ce.on("error",fe=>{ie(this.emitError(fe))}),ce.onopen=()=>{this.onOpen(ce),k(ce)}})}onOpen(v){v.onmessage=k=>this.onPayload(k),v.onclose=k=>this.onClose(k),this.socket=v,this.registering=!1,this.events.emit("open")}onClose(v){this.socket=void 0,this.registering=!1,this.events.emit("close",v)}onPayload(v){if(typeof v.data>"u")return;const k=typeof v.data=="string"?safeJsonParse(v.data):v.data;this.events.emit("payload",k)}onError(v,k){const ie=this.parseError(k),ae=ie.message||ie.toString(),ce=formatJsonRpcError2(v,ae);this.events.emit("payload",ce)}parseError(v,k=this.url){return parseConnectionError2(v,truncateQuery(k),"WS")}resetMaxListeners(){this.events.getMaxListeners()>EVENT_EMITTER_MAX_LISTENERS_DEFAULT&&this.events.setMaxListeners(EVENT_EMITTER_MAX_LISTENERS_DEFAULT)}emitError(v){const k=this.parseError(new Error((v==null?void 0:v.message)||`WebSocket connection failed for host: ${truncateQuery(this.url)}`));return this.events.emit("register_error",k),k}},ws_default=WsConnection,esm_default=ws_default,import_lodash=__toESM(require_lodash());function $i(v,k){if(v.length>=255)throw new TypeError("Alphabet too long");for(var ie=new Uint8Array(256),ae=0;ae>>0,Lr=new Uint8Array(Mr);ur!==jr;){for(var Vr=$r[ur],Gr=0,Ur=Mr-1;(Vr!==0||Gr>>0,Lr[Ur]=Vr%ve>>>0,Vr=Vr/ve>>>0;if(Vr!==0)throw new Error("Non-zero carry");Ar=Gr,ur++}for(var Qr=Mr-Ar;Qr!==Mr&&Lr[Qr]===0;)Qr++;for(var hn=pe.repeat(Pr);Qr>>0,Mr=new Uint8Array(jr);$r[Pr];){var Lr=ie[$r.charCodeAt(Pr)];if(Lr===255)return;for(var Vr=0,Gr=jr-1;(Lr!==0||Vr>>0,Mr[Gr]=Lr%256>>>0,Lr=Lr/256>>>0;if(Lr!==0)throw new Error("Non-zero carry");ur=Vr,Pr++}if($r[Pr]!==" "){for(var Ur=jr-ur;Ur!==jr&&Mr[Ur]===0;)Ur++;for(var Qr=new Uint8Array(Ar+(jr-Ur)),hn=Ar;Ur!==jr;)Qr[hn++]=Mr[Ur++];return Qr}}}function Br($r){var Pr=cr($r);if(Pr)return Pr;throw new Error(`Non-${k} character`)}return{encode:Ee,decodeUnsafe:cr,decode:Br}}var Fi=$i,Mi=Fi,Oe2=v=>{if(v instanceof Uint8Array&&v.constructor.name==="Uint8Array")return v;if(v instanceof ArrayBuffer)return new Uint8Array(v);if(ArrayBuffer.isView(v))return new Uint8Array(v.buffer,v.byteOffset,v.byteLength);throw new Error("Unknown type, must be binary type")},Ki=v=>new TextEncoder().encode(v),ki=v=>new TextDecoder().decode(v),Bi=class{constructor(v,k,ie){this.name=v,this.prefix=k,this.baseEncode=ie}encode(v){if(v instanceof Uint8Array)return`${this.prefix}${this.baseEncode(v)}`;throw Error("Unknown type, must be binary type")}},ji=class{constructor(v,k,ie){if(this.name=v,this.prefix=k,k.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=k.codePointAt(0),this.baseDecode=ie}decode(v){if(typeof v=="string"){if(v.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(v)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(v.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(v){return xe2(this,v)}},Vi=class{constructor(v){this.decoders=v}or(v){return xe2(this,v)}decode(v){const k=v[0],ie=this.decoders[k];if(ie)return ie.decode(v);throw RangeError(`Unable to decode multibase string ${JSON.stringify(v)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},xe2=(v,k)=>new Vi({...v.decoders||{[v.prefix]:v},...k.decoders||{[k.prefix]:k}}),qi=class{constructor(v,k,ie,ae){this.name=v,this.prefix=k,this.baseEncode=ie,this.baseDecode=ae,this.encoder=new Bi(v,k,ie),this.decoder=new ji(v,k,ae)}encode(v){return this.encoder.encode(v)}decode(v){return this.decoder.decode(v)}},H2=({name:v,prefix:k,encode:ie,decode:ae})=>new qi(v,k,ie,ae),M2=({prefix:v,name:k,alphabet:ie})=>{const{encode:ae,decode:ce}=Mi(ie,k);return H2({prefix:v,name:k,encode:ae,decode:fe=>Oe2(ce(fe))})},Yi=(v,k,ie,ae)=>{const ce={};for(let me=0;me=8&&(ve-=8,le[ye++]=255&pe>>ve)}if(ve>=ie||255&pe<<8-ve)throw new SyntaxError("Unexpected end of data");return le},Gi=(v,k,ie)=>{const ae=k[k.length-1]==="=",ce=(1<ie;)le-=ie,fe+=k[ce&ve>>le];if(le&&(fe+=k[ce&ve<H2({prefix:k,name:v,encode(ce){return Gi(ce,ae,ie)},decode(ce){return Yi(ce,ae,ie,v)}}),Ji=H2({prefix:"\0",name:"identity",encode:v=>ki(v),decode:v=>Ki(v)}),Hi=Object.freeze({__proto__:null,identity:Ji}),Wi=p3({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),Xi=Object.freeze({__proto__:null,base2:Wi}),Zi=p3({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),Qi=Object.freeze({__proto__:null,base8:Zi}),es=M2({prefix:"9",name:"base10",alphabet:"0123456789"}),ts=Object.freeze({__proto__:null,base10:es}),is=p3({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),ss=p3({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),rs=Object.freeze({__proto__:null,base16:is,base16upper:ss}),ns=p3({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),as=p3({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),os=p3({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),hs=p3({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),cs=p3({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),us=p3({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),ls=p3({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),ds=p3({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),gs=p3({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),ps=Object.freeze({__proto__:null,base32:ns,base32upper:as,base32pad:os,base32padupper:hs,base32hex:cs,base32hexupper:us,base32hexpad:ls,base32hexpadupper:ds,base32z:gs}),Ds=M2({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),ys=M2({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),bs=Object.freeze({__proto__:null,base36:Ds,base36upper:ys}),ms=M2({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Es=M2({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),fs=Object.freeze({__proto__:null,base58btc:ms,base58flickr:Es}),ws=p3({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),vs=p3({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Is=p3({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Cs=p3({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),_s=Object.freeze({__proto__:null,base64:ws,base64pad:vs,base64url:Is,base64urlpad:Cs}),Ae2=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),Rs=Ae2.reduce((v,k,ie)=>(v[ie]=k,v),[]),Ts=Ae2.reduce((v,k,ie)=>(v[k.codePointAt(0)]=ie,v),[]);function Ss(v){return v.reduce((k,ie)=>(k+=Rs[ie],k),"")}function Ps(v){const k=[];for(const ie of v){const ae=Ts[ie.codePointAt(0)];if(ae===void 0)throw new Error(`Non-base256emoji character: ${ie}`);k.push(ae)}return new Uint8Array(k)}var Os=H2({prefix:"\u{1F680}",name:"base256emoji",encode:Ss,decode:Ps}),xs=Object.freeze({__proto__:null,base256emoji:Os}),As=Ne,ze=128,zs=127,Ns=~zs,Us=Math.pow(2,31);function Ne(v,k,ie){k=k||[],ie=ie||0;for(var ae=ie;v>=Us;)k[ie++]=v&255|ze,v/=128;for(;v&Ns;)k[ie++]=v&255|ze,v>>>=7;return k[ie]=v|0,Ne.bytes=ie-ae+1,k}var Ls=ae2,$s=128,Ue=127;function ae2(v,ae){var ie=0,ae=ae||0,ce=0,fe=ae,le,ve=v.length;do{if(fe>=ve)throw ae2.bytes=0,new RangeError("Could not decode varint");le=v[fe++],ie+=ce<28?(le&Ue)<=$s);return ae2.bytes=fe-ae,ie}var Fs=Math.pow(2,7),Ms=Math.pow(2,14),Ks=Math.pow(2,21),ks=Math.pow(2,28),Bs=Math.pow(2,35),js=Math.pow(2,42),Vs=Math.pow(2,49),qs=Math.pow(2,56),Ys=Math.pow(2,63),Gs=function(v){return v(Le.encode(v,k,ie),k),Fe2=v=>Le.encodingLength(v),oe2=(v,k)=>{const ie=k.byteLength,ae=Fe2(v),ce=ae+Fe2(ie),fe=new Uint8Array(ce+ie);return $e2(v,fe,0),$e2(ie,fe,ae),fe.set(k,ce),new Hs(v,ie,k,fe)},Hs=class{constructor(v,k,ie,ae){this.code=v,this.size=k,this.digest=ie,this.bytes=ae}},Me=({name:v,code:k,encode:ie})=>new Ws(v,k,ie),Ws=class{constructor(v,k,ie){this.name=v,this.code=k,this.encode=ie}digest(v){if(v instanceof Uint8Array){const k=this.encode(v);return k instanceof Uint8Array?oe2(this.code,k):k.then(ie=>oe2(this.code,ie))}else throw Error("Unknown type, must be binary type")}},Ke=v=>async k=>new Uint8Array(await crypto.subtle.digest(v,k)),Xs=Me({name:"sha2-256",code:18,encode:Ke("SHA-256")}),Zs=Me({name:"sha2-512",code:19,encode:Ke("SHA-512")}),Qs=Object.freeze({__proto__:null,sha256:Xs,sha512:Zs}),ke2=0,er="identity",Be=Oe2,tr=v=>oe2(ke2,Be(v)),ir={code:ke2,name:er,encode:Be,digest:tr},sr=Object.freeze({__proto__:null,identity:ir});new TextEncoder,new TextDecoder;var je2={...Hi,...Xi,...Qi,...ts,...rs,...ps,...bs,...fs,..._s,...xs};({...Qs,...sr});function Ve2(v){return globalThis.Buffer!=null?new Uint8Array(v.buffer,v.byteOffset,v.byteLength):v}function rr(v=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?Ve2(globalThis.Buffer.allocUnsafe(v)):new Uint8Array(v)}function qe2(v,k,ie,ae){return{name:v,prefix:k,encoder:{name:v,prefix:k,encode:ie},decoder:{decode:ae}}}var Ye2=qe2("utf8","u",v=>"u"+new TextDecoder("utf8").decode(v),v=>new TextEncoder().encode(v.substring(1))),he=qe2("ascii","a",v=>{let k="a";for(let ie=0;ie{v=v.substring(1);const k=rr(v.length);for(let ie=0;ie{if(!this.initialized){const ie=await this.getKeyChain();typeof ie<"u"&&(this.keychain=ie),this.initialized=!0}},this.has=ie=>(this.isInitialized(),this.keychain.has(ie)),this.set=async(ie,ae)=>{this.isInitialized(),this.keychain.set(ie,ae),await this.persist()},this.get=ie=>{this.isInitialized();const ae=this.keychain.get(ie);if(typeof ae>"u"){const{message:ce}=N$1("NO_MATCHING_KEY",`${this.name}: ${ie}`);throw new Error(ce)}return ae},this.del=async ie=>{this.isInitialized(),this.keychain.delete(ie),await this.persist()},this.core=v,this.logger=(0,import_logger.generateChildLogger)(k,this.name)}get context(){return(0,import_logger.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(v){await this.core.storage.setItem(this.storageKey,Bn(v))}async getKeyChain(){const v=await this.core.storage.getItem(this.storageKey);return typeof v<"u"?Yn(v):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}},It=class{constructor(v,k,ie){this.core=v,this.logger=k,this.name=We2,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=ae=>(this.isInitialized(),this.keychain.has(ae)),this.getClientId=async()=>{this.isInitialized();const ae=await this.getClientSeed(),ce=generateKeyPair(ae);return encodeIss(ce.publicKey)},this.generateKeyPair=()=>{this.isInitialized();const ae=Rn();return this.setPrivateKey(ae.publicKey,ae.privateKey)},this.signJWT=async ae=>{this.isInitialized();const ce=await this.getClientSeed(),fe=generateKeyPair(ce),le=An();return await signJWT(le,ae,Xe2,fe)},this.generateSharedKey=(ae,ce,fe)=>{this.isInitialized();const le=this.getPrivateKey(ae),ve=Un(le,ce);return this.setSymKey(ve,fe)},this.setSymKey=async(ae,ce)=>{this.isInitialized();const fe=ce||_n(ae);return await this.keychain.set(fe,ae),fe},this.deleteKeyPair=async ae=>{this.isInitialized(),await this.keychain.del(ae)},this.deleteSymKey=async ae=>{this.isInitialized(),await this.keychain.del(ae)},this.encode=async(ae,ce,fe)=>{this.isInitialized();const le=Pe(fe),ve=safeJsonStringify(ce);if(Vn(le)){const Ee=le.senderPublicKey,cr=le.receiverPublicKey;ae=await this.generateSharedKey(Ee,cr)}const pe=this.getSymKey(ae),{type:ye,senderPublicKey:me}=le;return jn({type:ye,symKey:pe,message:ve,senderPublicKey:me})},this.decode=async(ae,ce,fe)=>{this.isInitialized();const le=Dn(ce,fe);if(Vn(le)){const ve=le.receiverPublicKey,pe=le.senderPublicKey;ae=await this.generateSharedKey(ve,pe)}try{const ve=this.getSymKey(ae),pe=Cn({symKey:ve,encoded:ce});return safeJsonParse(pe)}catch(ve){this.logger.error(`Failed to decode message from topic: '${ae}', clientId: '${await this.getClientId()}'`),this.logger.error(ve)}},this.getPayloadType=ae=>{const ce=Z(ae);return $$b(ce.type)},this.getPayloadSenderPublicKey=ae=>{const ce=Z(ae);return ce.senderPublicKey?toString2$6(ce.senderPublicKey,p2):void 0},this.core=v,this.logger=(0,import_logger.generateChildLogger)(k,this.name),this.keychain=ie||new vt(this.core,this.logger)}get context(){return(0,import_logger.getLoggerContext)(this.logger)}async setPrivateKey(v,k){return await this.keychain.set(v,k),v}getPrivateKey(v){return this.keychain.get(v)}async getClientSeed(){let v="";try{v=this.keychain.get(ue2)}catch{v=An(),await this.keychain.set(ue2,v)}return ar(v,"base16")}getSymKey(v){return this.keychain.get(v)}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}},Ct2=class extends a{constructor(v,k){super(v,k),this.logger=v,this.core=k,this.messages=new Map,this.name=et2,this.version=tt2,this.initialized=!1,this.storagePrefix=O2,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const ie=await this.getRelayerMessages();typeof ie<"u"&&(this.messages=ie),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(ie){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(ie)}finally{this.initialized=!0}}},this.set=async(ie,ae)=>{this.isInitialized();const ce=$n(ae);let fe=this.messages.get(ie);return typeof fe>"u"&&(fe={}),typeof fe[ce]<"u"||(fe[ce]=ae,this.messages.set(ie,fe),await this.persist()),ce},this.get=ie=>{this.isInitialized();let ae=this.messages.get(ie);return typeof ae>"u"&&(ae={}),ae},this.has=(ie,ae)=>{this.isInitialized();const ce=this.get(ie),fe=$n(ae);return typeof ce[fe]<"u"},this.del=async ie=>{this.isInitialized(),this.messages.delete(ie),await this.persist()},this.logger=(0,import_logger.generateChildLogger)(v,this.name),this.core=k}get context(){return(0,import_logger.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(v){await this.core.storage.setItem(this.storageKey,Bn(v))}async getRelayerMessages(){const v=await this.core.storage.getItem(this.storageKey);return typeof v<"u"?Yn(v):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}},lr=class extends u{constructor(v,k){super(v,k),this.relayer=v,this.logger=k,this.events=new import_events5.EventEmitter,this.name=st2,this.queue=new Map,this.publishTimeout=(0,import_time3.toMiliseconds)(import_time3.TEN_SECONDS),this.queueTimeout=(0,import_time3.toMiliseconds)(import_time3.FIVE_SECONDS),this.needsTransportRestart=!1,this.publish=async(ie,ae,ce)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:ie,message:ae,opts:ce}});try{const fe=(ce==null?void 0:ce.ttl)||it2,le=at(ce),ve=(ce==null?void 0:ce.prompt)||!1,pe=(ce==null?void 0:ce.tag)||0,ye=(ce==null?void 0:ce.id)||getBigIntRpcId().toString(),me={topic:ie,message:ae,opts:{ttl:fe,relay:le,prompt:ve,tag:pe,id:ye}},Ee=setTimeout(()=>this.queue.set(ye,me),this.queueTimeout);try{await await et(this.rpcPublish(ie,ae,fe,le,ve,pe,ye),this.publishTimeout),clearTimeout(Ee),this.relayer.events.emit(g2.publish,me)}catch{this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0;return}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:ie,message:ae,opts:ce}})}catch(fe){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(fe),fe}},this.on=(ie,ae)=>{this.events.on(ie,ae)},this.once=(ie,ae)=>{this.events.once(ie,ae)},this.off=(ie,ae)=>{this.events.off(ie,ae)},this.removeListener=(ie,ae)=>{this.events.removeListener(ie,ae)},this.relayer=v,this.logger=(0,import_logger.generateChildLogger)(k,this.name),this.registerEventListeners()}get context(){return(0,import_logger.getLoggerContext)(this.logger)}rpcPublish(v,k,ie,ae,ce,fe,le){var ve,pe,ye,me;const Ee={method:ut(ae.protocol).publish,params:{topic:v,message:k,ttl:ie,prompt:ce,tag:fe},id:le};return I((ve=Ee.params)==null?void 0:ve.prompt)&&((pe=Ee.params)==null||delete pe.prompt),I((ye=Ee.params)==null?void 0:ye.tag)&&((me=Ee.params)==null||delete me.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:Ee}),this.relayer.request(Ee)}onPublish(v){this.queue.delete(v)}checkQueue(){this.queue.forEach(async v=>{const{topic:k,message:ie,opts:ae}=v;await this.publish(k,ie,ae)})}registerEventListeners(){this.relayer.core.heartbeat.on(import_heartbeat.HEARTBEAT_EVENTS.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(g2.connection_stalled);return}this.checkQueue()}),this.relayer.on(g2.message_ack,v=>{this.onPublish(v.id.toString())})}},dr=class{constructor(){this.map=new Map,this.set=(v,k)=>{const ie=this.get(v);this.exists(v,k)||this.map.set(v,[...ie,k])},this.get=v=>this.map.get(v)||[],this.exists=(v,k)=>this.get(v).includes(k),this.delete=(v,k)=>{if(typeof k>"u"){this.map.delete(v);return}if(!this.map.has(v))return;const ie=this.get(v);if(!this.exists(v,k))return;const ae=ie.filter(ce=>ce!==k);if(!ae.length){this.map.delete(v);return}this.map.set(v,ae)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}},gr=Object.defineProperty,pr=Object.defineProperties,Dr=Object.getOwnPropertyDescriptors,_t2=Object.getOwnPropertySymbols,yr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable,Rt2=(v,k,ie)=>k in v?gr(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,K=(v,k)=>{for(var ie in k||(k={}))yr.call(k,ie)&&Rt2(v,ie,k[ie]);if(_t2)for(var ie of _t2(k))br.call(k,ie)&&Rt2(v,ie,k[ie]);return v},pe2=(v,k)=>pr(v,Dr(k)),Tt2=class extends d2{constructor(v,k){super(v,k),this.relayer=v,this.logger=k,this.subscriptions=new Map,this.topicMap=new dr,this.events=new import_events5.EventEmitter,this.name=gt,this.version=pt2,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=O2,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(ie,ae)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:ie,opts:ae}});try{const ce=at(ae),fe={topic:ie,relay:ce};this.pending.set(ie,fe);const le=await this.rpcSubscribe(ie,ce);return this.onSubscribe(le,fe),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:ie,opts:ae}}),le}catch(ce){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(ce),ce}},this.unsubscribe=async(ie,ae)=>{await this.restartToComplete(),this.isInitialized(),typeof(ae==null?void 0:ae.id)<"u"?await this.unsubscribeById(ie,ae.id,ae):await this.unsubscribeByTopic(ie,ae)},this.isSubscribed=async ie=>this.topics.includes(ie)?!0:await new Promise((ae,ce)=>{const fe=new import_time3.Watch;fe.start(this.pendingSubscriptionWatchLabel);const le=setInterval(()=>{!this.pending.has(ie)&&this.topics.includes(ie)&&(clearInterval(le),fe.stop(this.pendingSubscriptionWatchLabel),ae(!0)),fe.elapsed(this.pendingSubscriptionWatchLabel)>=Dt2&&(clearInterval(le),fe.stop(this.pendingSubscriptionWatchLabel),ce(new Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1),this.on=(ie,ae)=>{this.events.on(ie,ae)},this.once=(ie,ae)=>{this.events.once(ie,ae)},this.off=(ie,ae)=>{this.events.off(ie,ae)},this.removeListener=(ie,ae)=>{this.events.removeListener(ie,ae)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=v,this.logger=(0,import_logger.generateChildLogger)(k,this.name),this.clientId=""}get context(){return(0,import_logger.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(v,k){let ie=!1;try{ie=this.getSubscription(v).topic===k}catch{}return ie}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(v,k){const ie=this.topicMap.get(v);await Promise.all(ie.map(async ae=>await this.unsubscribeById(v,ae,k)))}async unsubscribeById(v,k,ie){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:v,id:k,opts:ie}});try{const ae=at(ie);await this.rpcUnsubscribe(v,k,ae);const ce=A("USER_DISCONNECTED",`${this.name}, ${v}`);await this.onUnsubscribe(v,k,ce),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:v,id:k,opts:ie}})}catch(ae){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(ae),ae}}async rpcSubscribe(v,k){const ie={method:ut(k.protocol).subscribe,params:{topic:v}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:ie});try{await await et(this.relayer.request(ie),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(g2.connection_stalled)}return $n(v+this.clientId)}async rpcBatchSubscribe(v){if(!v.length)return;const k=v[0].relay,ie={method:ut(k.protocol).batchSubscribe,params:{topics:v.map(ae=>ae.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:ie});try{return await await et(this.relayer.request(ie),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(g2.connection_stalled)}}rpcUnsubscribe(v,k,ie){const ae={method:ut(ie.protocol).unsubscribe,params:{topic:v,id:k}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:ae}),this.relayer.request(ae)}onSubscribe(v,k){this.setSubscription(v,pe2(K({},k),{id:v})),this.pending.delete(k.topic)}onBatchSubscribe(v){v.length&&v.forEach(k=>{this.setSubscription(k.id,K({},k)),this.pending.delete(k.topic)})}async onUnsubscribe(v,k,ie){this.events.removeAllListeners(k),this.hasSubscription(k,v)&&this.deleteSubscription(k,ie),await this.relayer.messages.del(v)}async setRelayerSubscriptions(v){await this.relayer.core.storage.setItem(this.storageKey,v)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(v,k){this.subscriptions.has(v)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:v,subscription:k}),this.addSubscription(v,k))}addSubscription(v,k){this.subscriptions.set(v,K({},k)),this.topicMap.set(k.topic,v),this.events.emit(C2.created,k)}getSubscription(v){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:v});const k=this.subscriptions.get(v);if(!k){const{message:ie}=N$1("NO_MATCHING_KEY",`${this.name}: ${v}`);throw new Error(ie)}return k}deleteSubscription(v,k){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:v,reason:k});const ie=this.getSubscription(v);this.subscriptions.delete(v),this.topicMap.delete(ie.topic,v),this.events.emit(C2.deleted,pe2(K({},ie),{reason:k}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(C2.sync)}async reset(){if(this.cached.length){const v=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let k=0;k"u"||!v.length)return;if(this.subscriptions.size){const{message:k}=N$1("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(k),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(k)}this.cached=v,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(v){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(v)}}async batchSubscribe(v){if(!v.length)return;const k=await this.rpcBatchSubscribe(v);C(k)&&this.onBatchSubscribe(k.map((ie,ae)=>pe2(K({},v[ae]),{id:ie})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(this.relayer.transportExplicitlyClosed)return;const v=[];this.pending.forEach(k=>{v.push(k)}),await this.batchSubscribe(v)}registerEventListeners(){this.relayer.core.heartbeat.on(import_heartbeat.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(g2.connect,async()=>{await this.onConnect()}),this.relayer.on(g2.disconnect,()=>{this.onDisconnect()}),this.events.on(C2.created,async v=>{const k=C2.created;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,data:v}),await this.persist()}),this.events.on(C2.deleted,async v=>{const k=C2.deleted;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,data:v}),await this.persist()})}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}async restartToComplete(){this.restartInProgress&&await new Promise(v=>{const k=setInterval(()=>{this.restartInProgress||(clearInterval(k),v())},this.pollingInterval)})}},mr=Object.defineProperty,St2=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable,Pt2=(v,k,ie)=>k in v?mr(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,wr=(v,k)=>{for(var ie in k||(k={}))Er.call(k,ie)&&Pt2(v,ie,k[ie]);if(St2)for(var ie of St2(k))fr.call(k,ie)&&Pt2(v,ie,k[ie]);return v},Ot=class extends g{constructor(v){super(v),this.protocol="wc",this.version=2,this.events=new import_events5.EventEmitter,this.name=at2,this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.request=async k=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(k)}catch(ie){throw this.logger.debug("Failed to Publish Request"),this.logger.error(ie),ie}},this.core=v.core,this.logger=typeof v.logger<"u"&&typeof v.logger!="string"?(0,import_logger.generateChildLogger)(v.logger,this.name):(0,import_logger.pino)((0,import_logger.getDefaultLoggerOptions)({level:v.logger||nt2})),this.messages=new Ct2(this.logger,v.core),this.subscriber=new Tt2(this,this.logger),this.publisher=new lr(this,this.logger),this.relayUrl=(v==null?void 0:v.relayUrl)||le2,this.projectId=v.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${de}...`),await this.restartTransport(de)}this.registerEventListeners(),this.initialized=!0,setTimeout(async()=>{this.subscriber.topics.length===0&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},ut2)}get context(){return(0,import_logger.getLoggerContext)(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(v,k,ie){this.isInitialized(),await this.publisher.publish(v,k,ie),await this.recordMessageEvent({topic:v,message:k,publishedAt:Date.now()})}async subscribe(v,k){var ie;this.isInitialized();let ae=((ie=this.subscriber.topicMap.get(v))==null?void 0:ie[0])||"";return ae||(await Promise.all([new Promise(ce=>{this.subscriber.once(C2.created,fe=>{fe.topic===v&&ce()})}),new Promise(async ce=>{ae=await this.subscriber.subscribe(v,k),ce()})]),ae)}async unsubscribe(v,k){this.isInitialized(),await this.subscriber.unsubscribe(v,k)}on(v,k){this.events.on(v,k)}once(v,k){this.events.once(v,k)}off(v,k){this.events.off(v,k)}removeListener(v,k){this.events.removeListener(v,k)}async transportClose(){this.transportExplicitlyClosed=!0,this.connected&&(await this.provider.disconnect(),this.events.emit(g2.transport_closed))}async transportOpen(v){if(this.transportExplicitlyClosed=!1,!this.reconnecting){this.relayUrl=v||this.relayUrl,this.reconnecting=!0;try{await Promise.all([new Promise(k=>{this.initialized||k(),this.subscriber.once(C2.resubscribed,()=>{k()})}),await Promise.race([new Promise(async(k,ie)=>{await et(this.provider.connect(),1e4,`Socket stalled when trying to connect to ${this.relayUrl}`).catch(ae=>ie(ae)).then(()=>k()).finally(()=>this.removeListener(g2.transport_closed,this.rejectTransportOpen))}),new Promise(k=>this.once(g2.transport_closed,this.rejectTransportOpen))])])}catch(k){this.logger.error(k);const ie=k;if(!this.isConnectionStalled(ie.message))throw k;this.events.emit(g2.transport_closed)}finally{this.reconnecting=!1}}}async restartTransport(v){this.transportExplicitlyClosed||this.reconnecting||(this.relayUrl=v||this.relayUrl,this.connected&&await Promise.all([new Promise(k=>{this.provider.once(L2.disconnect,()=>{k()})}),this.transportClose()]),await this.createProvider(),await this.transportOpen())}isConnectionStalled(v){return this.staleConnectionErrors.some(k=>v.includes(k))}rejectTransportOpen(){throw new Error("Attempt to connect to relay via `transportOpen` has stalled. Retrying...")}async createProvider(){const v=await this.core.crypto.signJWT(this.relayUrl);this.provider=new JsonRpcProvider$1(new esm_default(qn({sdkVersion:ct2,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:v,useOnCloseEvent:!0}))),this.registerProviderListeners()}async recordMessageEvent(v){const{topic:k,message:ie}=v;await this.messages.set(k,ie)}async shouldIgnoreMessageEvent(v){const{topic:k,message:ie}=v;if(!ie||ie.length===0)return this.logger.debug(`Ignoring invalid/empty message: ${ie}`),!0;if(!await this.subscriber.isSubscribed(k))return this.logger.debug(`Ignoring message for non-subscribed topic ${k}`),!0;const ae=this.messages.has(k,ie);return ae&&this.logger.debug(`Ignoring duplicate message: ${ie}`),ae}async onProviderPayload(v){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:v}),isJsonRpcRequest(v)){if(!v.method.endsWith(ot2))return;const k=v.params,{topic:ie,message:ae,publishedAt:ce}=k.data,fe={topic:ie,message:ae,publishedAt:ce};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(wr({type:"event",event:k.id},fe)),this.events.emit(k.id,fe),await this.acknowledgePayload(v),await this.onMessageEvent(fe)}else isJsonRpcResponse(v)&&this.events.emit(g2.message_ack,v)}async onMessageEvent(v){await this.shouldIgnoreMessageEvent(v)||(this.events.emit(g2.message,v),await this.recordMessageEvent(v))}async acknowledgePayload(v){const k=formatJsonRpcResult(v.id,!0);await this.provider.connection.send(k)}registerProviderListeners(){this.provider.on(L2.payload,v=>this.onProviderPayload(v)),this.provider.on(L2.connect,()=>{this.events.emit(g2.connect)}),this.provider.on(L2.disconnect,()=>{this.onProviderDisconnect()}),this.provider.on(L2.error,v=>{this.logger.error(v),this.events.emit(g2.error,v)})}registerEventListeners(){this.events.on(g2.connection_stalled,async()=>{await this.restartTransport()})}onProviderDisconnect(){this.events.emit(g2.disconnect),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.restartTransport()},(0,import_time3.toMiliseconds)(ht))}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}async toEstablishConnection(){if(!this.connected){if(this.connecting)return await new Promise(v=>{const k=setInterval(()=>{this.connected&&(clearInterval(k),v())},this.connectionStatusPollingInterval)});await this.restartTransport()}}},vr=Object.defineProperty,xt2=Object.getOwnPropertySymbols,Ir=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,At2=(v,k,ie)=>k in v?vr(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,zt=(v,k)=>{for(var ie in k||(k={}))Ir.call(k,ie)&&At2(v,ie,k[ie]);if(xt2)for(var ie of xt2(k))Cr.call(k,ie)&&At2(v,ie,k[ie]);return v},Nt=class extends p{constructor(v,k,ie,ae=O2,ce=void 0){super(v,k,ie,ae),this.core=v,this.logger=k,this.name=ie,this.map=new Map,this.version=lt2,this.cached=[],this.initialized=!1,this.storagePrefix=O2,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(fe=>{this.getKey&&fe!==null&&!I(fe)?this.map.set(this.getKey(fe),fe):At(fe)?this.map.set(fe.id,fe):Ut(fe)&&this.map.set(fe.topic,fe)}),this.cached=[],this.initialized=!0)},this.set=async(fe,le)=>{this.isInitialized(),this.map.has(fe)?await this.update(fe,le):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:fe,value:le}),this.map.set(fe,le),await this.persist())},this.get=fe=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:fe}),this.getData(fe)),this.getAll=fe=>(this.isInitialized(),fe?this.values.filter(le=>Object.keys(fe).every(ve=>(0,import_lodash.default)(le[ve],fe[ve]))):this.values),this.update=async(fe,le)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:fe,update:le});const ve=zt(zt({},this.getData(fe)),le);this.map.set(fe,ve),await this.persist()},this.delete=async(fe,le)=>{this.isInitialized(),this.map.has(fe)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:fe,reason:le}),this.map.delete(fe),await this.persist())},this.logger=(0,import_logger.generateChildLogger)(k,this.name),this.storagePrefix=ae,this.getKey=ce}get context(){return(0,import_logger.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(v){await this.core.storage.setItem(this.storageKey,v)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(v){const k=this.map.get(v);if(!k){const{message:ie}=N$1("NO_MATCHING_KEY",`${this.name}: ${v}`);throw this.logger.error(ie),new Error(ie)}return k}async persist(){await this.setDataStore(this.values)}async restore(){try{const v=await this.getDataStore();if(typeof v>"u"||!v.length)return;if(this.map.size){const{message:k}=N$1("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(k),new Error(k)}this.cached=v,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(v){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(v)}}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}},Ut2=class{constructor(v,k){this.core=v,this.logger=k,this.name=yt2,this.version=bt,this.events=new import_events5.default,this.initialized=!1,this.storagePrefix=O2,this.ignoredPayloadTypes=[U],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:ie})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...ie])]},this.create=async()=>{this.isInitialized();const ie=An(),ae=await this.core.crypto.setSymKey(ie),ce=ot(import_time3.FIVE_MINUTES),fe={protocol:rt2},le={topic:ae,expiry:ce,relay:fe,active:!1},ve=yt({protocol:this.core.protocol,version:this.core.version,topic:ae,symKey:ie,relay:fe});return await this.pairings.set(ae,le),await this.core.relayer.subscribe(ae),this.core.expirer.set(ae,ce),{topic:ae,uri:ve}},this.pair=async ie=>{this.isInitialized(),this.isValidPair(ie);const{topic:ae,symKey:ce,relay:fe}=mt(ie.uri);if(this.pairings.keys.includes(ae))throw new Error(`Pairing already exists: ${ae}`);if(this.core.crypto.hasKeys(ae))throw new Error(`Keychain already exists: ${ae}`);const le=ot(import_time3.FIVE_MINUTES),ve={topic:ae,relay:fe,expiry:le,active:!1};return await this.pairings.set(ae,ve),await this.core.crypto.setSymKey(ce,ae),await this.core.relayer.subscribe(ae,{relay:fe}),this.core.expirer.set(ae,le),ie.activatePairing&&await this.activate({topic:ae}),ve},this.activate=async({topic:ie})=>{this.isInitialized();const ae=ot(import_time3.THIRTY_DAYS);await this.pairings.update(ie,{active:!0,expiry:ae}),this.core.expirer.set(ie,ae)},this.ping=async ie=>{this.isInitialized(),await this.isValidPing(ie);const{topic:ae}=ie;if(this.pairings.keys.includes(ae)){const ce=await this.sendRequest(ae,"wc_pairingPing",{}),{done:fe,resolve:le,reject:ve}=Xn();this.events.once(it("pairing_ping",ce),({error:pe})=>{pe?ve(pe):le()}),await fe()}},this.updateExpiry=async({topic:ie,expiry:ae})=>{this.isInitialized(),await this.pairings.update(ie,{expiry:ae})},this.updateMetadata=async({topic:ie,metadata:ae})=>{this.isInitialized(),await this.pairings.update(ie,{peerMetadata:ae})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async ie=>{this.isInitialized(),await this.isValidDisconnect(ie);const{topic:ae}=ie;this.pairings.keys.includes(ae)&&(await this.sendRequest(ae,"wc_pairingDelete",A("USER_DISCONNECTED")),await this.deletePairing(ae))},this.sendRequest=async(ie,ae,ce)=>{const fe=formatJsonRpcRequest(ae,ce),le=await this.core.crypto.encode(ie,fe),ve=$2[ae].req;return this.core.history.set(ie,fe),this.core.relayer.publish(ie,le,ve),fe.id},this.sendResult=async(ie,ae,ce)=>{const fe=formatJsonRpcResult(ie,ce),le=await this.core.crypto.encode(ae,fe),ve=await this.core.history.get(ae,ie),pe=$2[ve.request.method].res;await this.core.relayer.publish(ae,le,pe),await this.core.history.resolve(fe)},this.sendError=async(ie,ae,ce)=>{const fe=formatJsonRpcError(ie,ce),le=await this.core.crypto.encode(ae,fe),ve=await this.core.history.get(ae,ie),pe=$2[ve.request.method]?$2[ve.request.method].res:$2.unregistered_method.res;await this.core.relayer.publish(ae,le,pe),await this.core.history.resolve(fe)},this.deletePairing=async(ie,ae)=>{await this.core.relayer.unsubscribe(ie),await Promise.all([this.pairings.delete(ie,A("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(ie),ae?Promise.resolve():this.core.expirer.del(ie)])},this.cleanup=async()=>{const ie=this.pairings.getAll().filter(ae=>st(ae.expiry));await Promise.all(ie.map(ae=>this.deletePairing(ae.topic)))},this.onRelayEventRequest=ie=>{const{topic:ae,payload:ce}=ie;switch(ce.method){case"wc_pairingPing":return this.onPairingPingRequest(ae,ce);case"wc_pairingDelete":return this.onPairingDeleteRequest(ae,ce);default:return this.onUnknownRpcMethodRequest(ae,ce)}},this.onRelayEventResponse=async ie=>{const{topic:ae,payload:ce}=ie,fe=(await this.core.history.get(ae,ce.id)).request.method;switch(fe){case"wc_pairingPing":return this.onPairingPingResponse(ae,ce);default:return this.onUnknownRpcMethodResponse(fe)}},this.onPairingPingRequest=async(ie,ae)=>{const{id:ce}=ae;try{this.isValidPing({topic:ie}),await this.sendResult(ce,ie,!0),this.events.emit("pairing_ping",{id:ce,topic:ie})}catch(fe){await this.sendError(ce,ie,fe),this.logger.error(fe)}},this.onPairingPingResponse=(ie,ae)=>{const{id:ce}=ae;setTimeout(()=>{isJsonRpcResult(ae)?this.events.emit(it("pairing_ping",ce),{}):isJsonRpcError(ae)&&this.events.emit(it("pairing_ping",ce),{error:ae.error})},500)},this.onPairingDeleteRequest=async(ie,ae)=>{const{id:ce}=ae;try{this.isValidDisconnect({topic:ie}),await this.deletePairing(ie),this.events.emit("pairing_delete",{id:ce,topic:ie})}catch(fe){await this.sendError(ce,ie,fe),this.logger.error(fe)}},this.onUnknownRpcMethodRequest=async(ie,ae)=>{const{id:ce,method:fe}=ae;try{if(this.registeredMethods.includes(fe))return;const le=A("WC_METHOD_UNSUPPORTED",fe);await this.sendError(ce,ie,le),this.logger.error(le)}catch(le){await this.sendError(ce,ie,le),this.logger.error(le)}},this.onUnknownRpcMethodResponse=ie=>{this.registeredMethods.includes(ie)||this.logger.error(A("WC_METHOD_UNSUPPORTED",ie))},this.isValidPair=ie=>{if(!Dt(ie)){const{message:ae}=N$1("MISSING_OR_INVALID",`pair() params: ${ie}`);throw new Error(ae)}if(!Rt(ie.uri)){const{message:ae}=N$1("MISSING_OR_INVALID",`pair() uri: ${ie.uri}`);throw new Error(ae)}},this.isValidPing=async ie=>{if(!Dt(ie)){const{message:ce}=N$1("MISSING_OR_INVALID",`ping() params: ${ie}`);throw new Error(ce)}const{topic:ae}=ie;await this.isValidPairingTopic(ae)},this.isValidDisconnect=async ie=>{if(!Dt(ie)){const{message:ce}=N$1("MISSING_OR_INVALID",`disconnect() params: ${ie}`);throw new Error(ce)}const{topic:ae}=ie;await this.isValidPairingTopic(ae)},this.isValidPairingTopic=async ie=>{if(!y2(ie,!1)){const{message:ae}=N$1("MISSING_OR_INVALID",`pairing topic should be a string: ${ie}`);throw new Error(ae)}if(!this.pairings.keys.includes(ie)){const{message:ae}=N$1("NO_MATCHING_KEY",`pairing topic doesn't exist: ${ie}`);throw new Error(ae)}if(st(this.pairings.get(ie).expiry)){await this.deletePairing(ie);const{message:ae}=N$1("EXPIRED",`pairing topic: ${ie}`);throw new Error(ae)}},this.core=v,this.logger=(0,import_logger.generateChildLogger)(k,this.name),this.pairings=new Nt(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,import_logger.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}registerRelayerEvents(){this.core.relayer.on(g2.message,async v=>{const{topic:k,message:ie}=v;if(!this.pairings.keys.includes(k)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(ie)))return;const ae=await this.core.crypto.decode(k,ie);isJsonRpcRequest(ae)?(this.core.history.set(k,ae),this.onRelayEventRequest({topic:k,payload:ae})):isJsonRpcResponse(ae)&&(await this.core.history.resolve(ae),await this.onRelayEventResponse({topic:k,payload:ae}),this.core.history.delete(k,ae.id))})}registerExpirerEvents(){this.core.expirer.on(w.expired,async v=>{const{topic:k}=rt(v.target);k&&this.pairings.keys.includes(k)&&(await this.deletePairing(k,!0),this.events.emit("pairing_expire",{topic:k}))})}},Lt2=class extends h{constructor(v,k){super(v,k),this.core=v,this.logger=k,this.records=new Map,this.events=new import_events5.EventEmitter,this.name=mt2,this.version=Et,this.cached=[],this.initialized=!1,this.storagePrefix=O2,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(ie=>this.records.set(ie.id,ie)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(ie,ae,ce)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:ie,request:ae,chainId:ce}),this.records.has(ae.id))return;const fe={id:ae.id,topic:ie,request:{method:ae.method,params:ae.params||null},chainId:ce,expiry:ot(import_time3.THIRTY_DAYS)};this.records.set(fe.id,fe),this.events.emit(_.created,fe)},this.resolve=async ie=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:ie}),!this.records.has(ie.id))return;const ae=await this.getRecord(ie.id);typeof ae.response>"u"&&(ae.response=isJsonRpcError(ie)?{error:ie.error}:{result:ie.result},this.records.set(ae.id,ae),this.events.emit(_.updated,ae))},this.get=async(ie,ae)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:ie,id:ae}),await this.getRecord(ae)),this.delete=(ie,ae)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:ae}),this.values.forEach(ce=>{if(ce.topic===ie){if(typeof ae<"u"&&ce.id!==ae)return;this.records.delete(ce.id),this.events.emit(_.deleted,ce)}})},this.exists=async(ie,ae)=>(this.isInitialized(),this.records.has(ae)?(await this.getRecord(ae)).topic===ie:!1),this.on=(ie,ae)=>{this.events.on(ie,ae)},this.once=(ie,ae)=>{this.events.once(ie,ae)},this.off=(ie,ae)=>{this.events.off(ie,ae)},this.removeListener=(ie,ae)=>{this.events.removeListener(ie,ae)},this.logger=(0,import_logger.generateChildLogger)(k,this.name)}get context(){return(0,import_logger.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const v=[];return this.values.forEach(k=>{if(typeof k.response<"u")return;const ie={topic:k.topic,request:formatJsonRpcRequest(k.request.method,k.request.params,k.id),chainId:k.chainId};return v.push(ie)}),v}async setJsonRpcRecords(v){await this.core.storage.setItem(this.storageKey,v)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(v){this.isInitialized();const k=this.records.get(v);if(!k){const{message:ie}=N$1("NO_MATCHING_KEY",`${this.name}: ${v}`);throw new Error(ie)}return k}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(_.sync)}async restore(){try{const v=await this.getJsonRpcRecords();if(typeof v>"u"||!v.length)return;if(this.records.size){const{message:k}=N$1("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(k),new Error(k)}this.cached=v,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(v){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(v)}}registerEventListeners(){this.events.on(_.created,v=>{const k=_.created;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,record:v}),this.persist()}),this.events.on(_.updated,v=>{const k=_.updated;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,record:v}),this.persist()}),this.events.on(_.deleted,v=>{const k=_.deleted;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,record:v}),this.persist()}),this.core.heartbeat.on(import_heartbeat.HEARTBEAT_EVENTS.pulse,()=>{this.cleanup()})}cleanup(){try{this.records.forEach(v=>{(0,import_time3.toMiliseconds)(v.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${v.id}`),this.delete(v.topic,v.id))})}catch(v){this.logger.warn(v)}}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}},$t2=class extends E{constructor(v,k){super(v,k),this.core=v,this.logger=k,this.expirations=new Map,this.events=new import_events5.EventEmitter,this.name=ft2,this.version=wt2,this.cached=[],this.initialized=!1,this.storagePrefix=O2,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(ie=>this.expirations.set(ie.target,ie)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=ie=>{try{const ae=this.formatTarget(ie);return typeof this.getExpiration(ae)<"u"}catch{return!1}},this.set=(ie,ae)=>{this.isInitialized();const ce=this.formatTarget(ie),fe={target:ce,expiry:ae};this.expirations.set(ce,fe),this.checkExpiry(ce,fe),this.events.emit(w.created,{target:ce,expiration:fe})},this.get=ie=>{this.isInitialized();const ae=this.formatTarget(ie);return this.getExpiration(ae)},this.del=ie=>{if(this.isInitialized(),this.has(ie)){const ae=this.formatTarget(ie),ce=this.getExpiration(ae);this.expirations.delete(ae),this.events.emit(w.deleted,{target:ae,expiration:ce})}},this.on=(ie,ae)=>{this.events.on(ie,ae)},this.once=(ie,ae)=>{this.events.once(ie,ae)},this.off=(ie,ae)=>{this.events.off(ie,ae)},this.removeListener=(ie,ae)=>{this.events.removeListener(ie,ae)},this.logger=(0,import_logger.generateChildLogger)(k,this.name)}get context(){return(0,import_logger.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(v){if(typeof v=="string")return nt(v);if(typeof v=="number")return tt(v);const{message:k}=N$1("UNKNOWN_TYPE",`Target type: ${typeof v}`);throw new Error(k)}async setExpirations(v){await this.core.storage.setItem(this.storageKey,v)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(w.sync)}async restore(){try{const v=await this.getExpirations();if(typeof v>"u"||!v.length)return;if(this.expirations.size){const{message:k}=N$1("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(k),new Error(k)}this.cached=v,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(v){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(v)}}getExpiration(v){const k=this.expirations.get(v);if(!k){const{message:ie}=N$1("NO_MATCHING_KEY",`${this.name}: ${v}`);throw this.logger.error(ie),new Error(ie)}return k}checkExpiry(v,k){const{expiry:ie}=k;(0,import_time3.toMiliseconds)(ie)-Date.now()<=0&&this.expire(v,k)}expire(v,k){this.expirations.delete(v),this.events.emit(w.expired,{target:v,expiration:k})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((v,k)=>this.checkExpiry(k,v))}registerEventListeners(){this.core.heartbeat.on(import_heartbeat.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(w.created,v=>{const k=w.created;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,data:v}),this.persist()}),this.events.on(w.expired,v=>{const k=w.expired;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,data:v}),this.persist()}),this.events.on(w.deleted,v=>{const k=w.deleted;this.logger.info(`Emitting ${k}`),this.logger.debug({type:"event",event:k,data:v}),this.persist()})}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}},Ft2=class extends y{constructor(v,k){super(v,k),this.projectId=v,this.logger=k,this.name=X,this.initialized=!1,this.init=async ie=>{$e()||!je()||(this.verifyUrl=(ie==null?void 0:ie.verifyUrl)||ge,await this.createIframe())},this.register=async ie=>{var ae;if(this.initialized||await this.init(),!!this.iframe)try{(ae=this.iframe.contentWindow)==null||ae.postMessage(ie.attestationId,this.verifyUrl),this.logger.info(`postMessage sent: ${ie.attestationId} ${this.verifyUrl}`)}catch{}},this.resolve=async ie=>{var ae;if(this.isDevEnv)return"";this.logger.info(`resolving attestation: ${ie.attestationId}`);const ce=this.startAbortTimer(import_time3.FIVE_SECONDS),fe=await fetch(`${this.verifyUrl}/attestation/${ie.attestationId}`,{signal:this.abortController.signal});return clearTimeout(ce),fe.status===200?(ae=await fe.json())==null?void 0:ae.origin:""},this.createIframe=async()=>{try{await Promise.race([new Promise((ie,ae)=>{if(document.getElementById(X))return ie();const ce=document.createElement("iframe");ce.setAttribute("id",X),ce.setAttribute("src",`${this.verifyUrl}/${this.projectId}`),ce.style.display="none",ce.addEventListener("load",()=>{this.initialized=!0,ie()}),ce.addEventListener("error",fe=>{ae(fe)}),document.body.append(ce),this.iframe=ce}),new Promise(ie=>{setTimeout(()=>ie("iframe load timeout"),(0,import_time3.toMiliseconds)(import_time3.ONE_SECOND/2))})])}catch(ie){this.logger.error(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.error(ie)}},this.logger=(0,import_logger.generateChildLogger)(k,this.name),this.verifyUrl=ge,this.abortController=new AbortController,this.isDevEnv=ee()&&process.env.IS_VITEST}get context(){return(0,import_logger.getLoggerContext)(this.logger)}startAbortTimer(v){return setTimeout(()=>this.abortController.abort(),(0,import_time3.toMiliseconds)(v))}},_r=Object.defineProperty,Mt2=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,Tr=Object.prototype.propertyIsEnumerable,Kt2=(v,k,ie)=>k in v?_r(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,kt2=(v,k)=>{for(var ie in k||(k={}))Rr.call(k,ie)&&Kt2(v,ie,k[ie]);if(Mt2)for(var ie of Mt2(k))Tr.call(k,ie)&&Kt2(v,ie,k[ie]);return v},Z2=class extends n$1{constructor(v){super(v),this.protocol=ce2,this.version=Ge2,this.name=W,this.events=new import_events5.EventEmitter,this.initialized=!1,this.on=(ie,ae)=>this.events.on(ie,ae),this.once=(ie,ae)=>this.events.once(ie,ae),this.off=(ie,ae)=>this.events.off(ie,ae),this.removeListener=(ie,ae)=>this.events.removeListener(ie,ae),this.projectId=v==null?void 0:v.projectId,this.relayUrl=(v==null?void 0:v.relayUrl)||le2;const k=typeof(v==null?void 0:v.logger)<"u"&&typeof(v==null?void 0:v.logger)!="string"?v.logger:(0,import_logger.pino)((0,import_logger.getDefaultLoggerOptions)({level:(v==null?void 0:v.logger)||Je2.logger}));this.logger=(0,import_logger.generateChildLogger)(k,this.name),this.heartbeat=new import_heartbeat.HeartBeat,this.crypto=new It(this,this.logger,v==null?void 0:v.keychain),this.history=new Lt2(this,this.logger),this.expirer=new $t2(this,this.logger),this.storage=v!=null&&v.storage?v.storage:new import_keyvaluestorage.default(kt2(kt2({},He2),v==null?void 0:v.storageOptions)),this.relayer=new Ot({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new Ut2(this,this.logger),this.verify=new Ft2(this.projectId||"",this.logger)}static async init(v){const k=new Z2(v);await k.initialize();const ie=await k.crypto.getClientId();return await k.storage.setItem(dt2,ie),k}get context(){return(0,import_logger.getLoggerContext)(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(v){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,v),this.logger.error(v.message),v}}},Sr=Z2,import_logger2=__toESM(require_cjs4()),import_events6=__toESM(require_events()),import_time4=__toESM(require_cjs2()),Y2="wc",J3=2,X2="client",G3=`${Y2}@${J3}:${X2}:`,$3={name:X2,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},te="WALLETCONNECT_DEEPLINK_CHOICE",ie2="proposal",re="Proposal expired",ne3="session",A2=import_time4.SEVEN_DAYS,oe3="engine",O3={wc_sessionPropose:{req:{ttl:import_time4.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:import_time4.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:import_time4.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:import_time4.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:import_time4.ONE_DAY,prompt:!1,tag:1104},res:{ttl:import_time4.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:import_time4.ONE_DAY,prompt:!1,tag:1106},res:{ttl:import_time4.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:import_time4.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:import_time4.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:import_time4.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:import_time4.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:import_time4.ONE_DAY,prompt:!1,tag:1112},res:{ttl:import_time4.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:import_time4.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:import_time4.THIRTY_SECONDS,prompt:!1,tag:1115}}},M3={min:import_time4.FIVE_MINUTES,max:import_time4.SEVEN_DAYS},V2={idle:"idle",active:"active"},ae3="request",ce3=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"],ts2=Object.defineProperty,is2=Object.defineProperties,rs2=Object.getOwnPropertyDescriptors,le3=Object.getOwnPropertySymbols,ns2=Object.prototype.hasOwnProperty,os2=Object.prototype.propertyIsEnumerable,pe3=(v,k,ie)=>k in v?ts2(v,k,{enumerable:!0,configurable:!0,writable:!0,value:ie}):v[k]=ie,w2=(v,k)=>{for(var ie in k||(k={}))ns2.call(k,ie)&&pe3(v,ie,k[ie]);if(le3)for(var ie of le3(k))os2.call(k,ie)&&pe3(v,ie,k[ie]);return v},H3=(v,k)=>is2(v,rs2(k)),as2=class extends S{constructor(v){super(v),this.name=oe3,this.events=new import_events6.default,this.initialized=!1,this.ignoredPayloadTypes=[U],this.requestQueue={state:V2.idle,requests:[]},this.requestQueueDelay=import_time4.ONE_SECOND,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(O3)}),this.initialized=!0,setTimeout(()=>{this.requestQueue.requests=this.getPendingSessionRequests(),this.processRequestQueue()},(0,import_time4.toMiliseconds)(this.requestQueueDelay)))},this.connect=async k=>{this.isInitialized();const ie=H3(w2({},k),{requiredNamespaces:k.requiredNamespaces||{},optionalNamespaces:k.optionalNamespaces||{}});await this.isValidConnect(ie);const{pairingTopic:ae,requiredNamespaces:ce,optionalNamespaces:fe,sessionProperties:le,relays:ve}=ie;let pe=ae,ye,me=!1;if(pe&&(me=this.client.core.pairing.pairings.get(pe).active),!pe||!me){const{topic:jr,uri:Mr}=await this.client.core.pairing.create();pe=jr,ye=Mr}const Ee=await this.client.core.crypto.generateKeyPair(),cr=w2({requiredNamespaces:ce,optionalNamespaces:fe,relays:ve!=null?ve:[{protocol:rt2}],proposer:{publicKey:Ee,metadata:this.client.metadata}},le&&{sessionProperties:le}),{reject:Br,resolve:$r,done:Pr}=Xn(import_time4.FIVE_MINUTES,re);if(this.events.once(it("session_connect"),async({error:jr,session:Mr})=>{if(jr)Br(jr);else if(Mr){Mr.self.publicKey=Ee;const Lr=H3(w2({},Mr),{requiredNamespaces:Mr.requiredNamespaces,optionalNamespaces:Mr.optionalNamespaces});await this.client.session.set(Mr.topic,Lr),await this.setExpiry(Mr.topic,Mr.expiry),pe&&await this.client.core.pairing.updateMetadata({topic:pe,metadata:Mr.peer.metadata}),$r(Lr)}}),!pe){const{message:jr}=N$1("NO_MATCHING_KEY",`connect() pairing topic: ${pe}`);throw new Error(jr)}const Ar=await this.sendRequest(pe,"wc_sessionPropose",cr),ur=ot(import_time4.FIVE_MINUTES);return await this.setProposal(Ar,w2({id:Ar,expiry:ur},cr)),{uri:ye,approval:Pr}},this.pair=async k=>(this.isInitialized(),await this.client.core.pairing.pair(k)),this.approve=async k=>{this.isInitialized(),await this.isValidApprove(k);const{id:ie,relayProtocol:ae,namespaces:ce,sessionProperties:fe}=k,le=this.client.proposal.get(ie);let{pairingTopic:ve,proposer:pe,requiredNamespaces:ye,optionalNamespaces:me}=le;ve=ve||"",H(ye)||(ye=St(ce,"approve()"));const Ee=await this.client.core.crypto.generateKeyPair(),cr=pe.publicKey,Br=await this.client.core.crypto.generateSharedKey(Ee,cr);ve&&ie&&(await this.client.core.pairing.updateMetadata({topic:ve,metadata:pe.metadata}),await this.sendResult(ie,ve,{relay:{protocol:ae!=null?ae:"irn"},responderPublicKey:Ee}),await this.client.proposal.delete(ie,A("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:ve}));const $r=w2({relay:{protocol:ae!=null?ae:"irn"},namespaces:ce,requiredNamespaces:ye,optionalNamespaces:me,pairingTopic:ve,controller:{publicKey:Ee,metadata:this.client.metadata},expiry:ot(A2)},fe&&{sessionProperties:fe});await this.client.core.relayer.subscribe(Br),await this.sendRequest(Br,"wc_sessionSettle",$r);const Pr=H3(w2({},$r),{topic:Br,pairingTopic:ve,acknowledged:!1,self:$r.controller,peer:{publicKey:pe.publicKey,metadata:pe.metadata},controller:Ee});return await this.client.session.set(Br,Pr),await this.setExpiry(Br,ot(A2)),{topic:Br,acknowledged:()=>new Promise(Ar=>setTimeout(()=>Ar(this.client.session.get(Br)),500))}},this.reject=async k=>{this.isInitialized(),await this.isValidReject(k);const{id:ie,reason:ae}=k,{pairingTopic:ce}=this.client.proposal.get(ie);ce&&(await this.sendError(ie,ce,ae),await this.client.proposal.delete(ie,A("USER_DISCONNECTED")))},this.update=async k=>{this.isInitialized(),await this.isValidUpdate(k);const{topic:ie,namespaces:ae}=k,ce=await this.sendRequest(ie,"wc_sessionUpdate",{namespaces:ae}),{done:fe,resolve:le,reject:ve}=Xn();return this.events.once(it("session_update",ce),({error:pe})=>{pe?ve(pe):le()}),await this.client.session.update(ie,{namespaces:ae}),{acknowledged:fe}},this.extend=async k=>{this.isInitialized(),await this.isValidExtend(k);const{topic:ie}=k,ae=await this.sendRequest(ie,"wc_sessionExtend",{}),{done:ce,resolve:fe,reject:le}=Xn();return this.events.once(it("session_extend",ae),({error:ve})=>{ve?le(ve):fe()}),await this.setExpiry(ie,ot(A2)),{acknowledged:ce}},this.request=async k=>{this.isInitialized(),await this.isValidRequest(k);const{chainId:ie,request:ae,topic:ce,expiry:fe}=k,le=await this.sendRequest(ce,"wc_sessionRequest",{request:ae,chainId:ie},fe),{done:ve,resolve:pe,reject:ye}=Xn(fe);this.events.once(it("session_request",le),({error:Ee,result:cr})=>{Ee?ye(Ee):pe(cr)}),this.client.events.emit("session_request_sent",{topic:ce,request:ae,chainId:ie,id:le});const me=await this.client.core.storage.getItem(te);return ct({id:le,topic:ce,wcDeepLink:me}),await ve()},this.respond=async k=>{this.isInitialized(),await this.isValidRespond(k);const{topic:ie,response:ae}=k,{id:ce}=ae;isJsonRpcResult(ae)?await this.sendResult(ce,ie,ae.result):isJsonRpcError(ae)&&await this.sendError(ce,ie,ae.error),this.cleanupAfterResponse(k)},this.ping=async k=>{this.isInitialized(),await this.isValidPing(k);const{topic:ie}=k;if(this.client.session.keys.includes(ie)){const ae=await this.sendRequest(ie,"wc_sessionPing",{}),{done:ce,resolve:fe,reject:le}=Xn();this.events.once(it("session_ping",ae),({error:ve})=>{ve?le(ve):fe()}),await ce()}else this.client.core.pairing.pairings.keys.includes(ie)&&await this.client.core.pairing.ping({topic:ie})},this.emit=async k=>{this.isInitialized(),await this.isValidEmit(k);const{topic:ie,event:ae,chainId:ce}=k;await this.sendRequest(ie,"wc_sessionEvent",{event:ae,chainId:ce})},this.disconnect=async k=>{this.isInitialized(),await this.isValidDisconnect(k);const{topic:ie}=k;if(this.client.session.keys.includes(ie)){const ae=getBigIntRpcId().toString();let ce;const fe=le=>{(le==null?void 0:le.id.toString())===ae&&(this.client.core.relayer.events.removeListener(g2.message_ack,fe),ce())};await Promise.all([new Promise(le=>{ce=le,this.client.core.relayer.on(g2.message_ack,fe)}),this.sendRequest(ie,"wc_sessionDelete",A("USER_DISCONNECTED"),void 0,ae)]),await this.deleteSession(ie)}else await this.client.core.pairing.disconnect({topic:ie})},this.find=k=>(this.isInitialized(),this.client.session.getAll().filter(ie=>wt(ie,k))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async k=>{if(k.pairingTopic)try{const ie=this.client.core.pairing.pairings.get(k.pairingTopic),ae=this.client.core.pairing.pairings.getAll().filter(ce=>{var fe,le;return((fe=ce.peerMetadata)==null?void 0:fe.url)&&((le=ce.peerMetadata)==null?void 0:le.url)===k.peer.metadata.url&&ce.topic&&ce.topic!==ie.topic});if(ae.length===0)return;this.client.logger.info(`Cleaning up ${ae.length} duplicate pairing(s)`),await Promise.all(ae.map(ce=>this.client.core.pairing.disconnect({topic:ce.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(ie){this.client.logger.error(ie)}},this.deleteSession=async(k,ie)=>{const{self:ae}=this.client.session.get(k);await this.client.core.relayer.unsubscribe(k),this.client.session.delete(k,A("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(ae.publicKey)&&await this.client.core.crypto.deleteKeyPair(ae.publicKey),this.client.core.crypto.keychain.has(k)&&await this.client.core.crypto.deleteSymKey(k),ie||this.client.core.expirer.del(k)},this.deleteProposal=async(k,ie)=>{await Promise.all([this.client.proposal.delete(k,A("USER_DISCONNECTED")),ie?Promise.resolve():this.client.core.expirer.del(k)])},this.deletePendingSessionRequest=async(k,ie,ae=!1)=>{await Promise.all([this.client.pendingRequest.delete(k,ie),ae?Promise.resolve():this.client.core.expirer.del(k)]),this.requestQueue.requests=this.requestQueue.requests.filter(ce=>ce.id!==k),ae&&(this.requestQueue.state=V2.idle)},this.setExpiry=async(k,ie)=>{this.client.session.keys.includes(k)&&await this.client.session.update(k,{expiry:ie}),this.client.core.expirer.set(k,ie)},this.setProposal=async(k,ie)=>{await this.client.proposal.set(k,ie),this.client.core.expirer.set(k,ie.expiry)},this.setPendingSessionRequest=async k=>{const ie=O3.wc_sessionRequest.req.ttl,{id:ae,topic:ce,params:fe}=k;await this.client.pendingRequest.set(ae,{id:ae,topic:ce,params:fe}),ie&&this.client.core.expirer.set(ae,ot(ie))},this.sendRequest=async(k,ie,ae,ce,fe)=>{const le=formatJsonRpcRequest(ie,ae);if(je()&&ce3.includes(ie)){const ye=$n(JSON.stringify(le));await this.client.core.verify.register({attestationId:ye})}const ve=await this.client.core.crypto.encode(k,le),pe=O3[ie].req;return ce&&(pe.ttl=ce),fe&&(pe.id=fe),this.client.core.history.set(k,le),this.client.core.relayer.publish(k,ve,pe),le.id},this.sendResult=async(k,ie,ae)=>{const ce=formatJsonRpcResult(k,ae),fe=await this.client.core.crypto.encode(ie,ce),le=await this.client.core.history.get(ie,k),ve=O3[le.request.method].res;this.client.core.relayer.publish(ie,fe,ve),await this.client.core.history.resolve(ce)},this.sendError=async(k,ie,ae)=>{const ce=formatJsonRpcError(k,ae),fe=await this.client.core.crypto.encode(ie,ce),le=await this.client.core.history.get(ie,k),ve=O3[le.request.method].res;this.client.core.relayer.publish(ie,fe,ve),await this.client.core.history.resolve(ce)},this.cleanup=async()=>{const k=[],ie=[];this.client.session.getAll().forEach(ae=>{st(ae.expiry)&&k.push(ae.topic)}),this.client.proposal.getAll().forEach(ae=>{st(ae.expiry)&&ie.push(ae.id)}),await Promise.all([...k.map(ae=>this.deleteSession(ae)),...ie.map(ae=>this.deleteProposal(ae))])},this.onRelayEventRequest=k=>{const{topic:ie,payload:ae}=k,ce=ae.method;switch(ce){case"wc_sessionPropose":return this.onSessionProposeRequest(ie,ae);case"wc_sessionSettle":return this.onSessionSettleRequest(ie,ae);case"wc_sessionUpdate":return this.onSessionUpdateRequest(ie,ae);case"wc_sessionExtend":return this.onSessionExtendRequest(ie,ae);case"wc_sessionPing":return this.onSessionPingRequest(ie,ae);case"wc_sessionDelete":return this.onSessionDeleteRequest(ie,ae);case"wc_sessionRequest":return this.onSessionRequest(ie,ae);case"wc_sessionEvent":return this.onSessionEventRequest(ie,ae);default:return this.client.logger.info(`Unsupported request method ${ce}`)}},this.onRelayEventResponse=async k=>{const{topic:ie,payload:ae}=k,ce=(await this.client.core.history.get(ie,ae.id)).request.method;switch(ce){case"wc_sessionPropose":return this.onSessionProposeResponse(ie,ae);case"wc_sessionSettle":return this.onSessionSettleResponse(ie,ae);case"wc_sessionUpdate":return this.onSessionUpdateResponse(ie,ae);case"wc_sessionExtend":return this.onSessionExtendResponse(ie,ae);case"wc_sessionPing":return this.onSessionPingResponse(ie,ae);case"wc_sessionRequest":return this.onSessionRequestResponse(ie,ae);default:return this.client.logger.info(`Unsupported response method ${ce}`)}},this.onRelayEventUnknownPayload=k=>{const{topic:ie}=k,{message:ae}=N$1("MISSING_OR_INVALID",`Decoded payload on topic ${ie} is not identifiable as a JSON-RPC request or a response.`);throw new Error(ae)},this.onSessionProposeRequest=async(k,ie)=>{const{params:ae,id:ce}=ie;try{this.isValidConnect(w2({},ie.params));const fe=ot(import_time4.FIVE_MINUTES),le=w2({id:ce,pairingTopic:k,expiry:fe},ae);await this.setProposal(ce,le);const ve=$n(JSON.stringify(ie)),pe=await this.getVerifyContext(ve,le.proposer.metadata);this.client.events.emit("session_proposal",{id:ce,params:le,verifyContext:pe})}catch(fe){await this.sendError(ce,k,fe),this.client.logger.error(fe)}},this.onSessionProposeResponse=async(k,ie)=>{const{id:ae}=ie;if(isJsonRpcResult(ie)){const{result:ce}=ie;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:ce});const fe=this.client.proposal.get(ae);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:fe});const le=fe.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:le});const ve=ce.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:ve});const pe=await this.client.core.crypto.generateSharedKey(le,ve);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:pe});const ye=await this.client.core.relayer.subscribe(pe);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:ye}),await this.client.core.pairing.activate({topic:k})}else isJsonRpcError(ie)&&(await this.client.proposal.delete(ae,A("USER_DISCONNECTED")),this.events.emit(it("session_connect"),{error:ie.error}))},this.onSessionSettleRequest=async(k,ie)=>{const{id:ae,params:ce}=ie;try{this.isValidSessionSettleRequest(ce);const{relay:fe,controller:le,expiry:ve,namespaces:pe,requiredNamespaces:ye,optionalNamespaces:me,sessionProperties:Ee,pairingTopic:cr}=ie.params,Br=w2({topic:k,relay:fe,expiry:ve,namespaces:pe,acknowledged:!0,pairingTopic:cr,requiredNamespaces:ye,optionalNamespaces:me,controller:le.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:le.publicKey,metadata:le.metadata}},Ee&&{sessionProperties:Ee});await this.sendResult(ie.id,k,!0),this.events.emit(it("session_connect"),{session:Br}),this.cleanupDuplicatePairings(Br)}catch(fe){await this.sendError(ae,k,fe),this.client.logger.error(fe)}},this.onSessionSettleResponse=async(k,ie)=>{const{id:ae}=ie;isJsonRpcResult(ie)?(await this.client.session.update(k,{acknowledged:!0}),this.events.emit(it("session_approve",ae),{})):isJsonRpcError(ie)&&(await this.client.session.delete(k,A("USER_DISCONNECTED")),this.events.emit(it("session_approve",ae),{error:ie.error}))},this.onSessionUpdateRequest=async(k,ie)=>{const{params:ae,id:ce}=ie;try{this.isValidUpdate(w2({topic:k},ae)),await this.client.session.update(k,{namespaces:ae.namespaces}),await this.sendResult(ce,k,!0),this.client.events.emit("session_update",{id:ce,topic:k,params:ae})}catch(fe){await this.sendError(ce,k,fe),this.client.logger.error(fe)}},this.onSessionUpdateResponse=(k,ie)=>{const{id:ae}=ie;isJsonRpcResult(ie)?this.events.emit(it("session_update",ae),{}):isJsonRpcError(ie)&&this.events.emit(it("session_update",ae),{error:ie.error})},this.onSessionExtendRequest=async(k,ie)=>{const{id:ae}=ie;try{this.isValidExtend({topic:k}),await this.setExpiry(k,ot(A2)),await this.sendResult(ae,k,!0),this.client.events.emit("session_extend",{id:ae,topic:k})}catch(ce){await this.sendError(ae,k,ce),this.client.logger.error(ce)}},this.onSessionExtendResponse=(k,ie)=>{const{id:ae}=ie;isJsonRpcResult(ie)?this.events.emit(it("session_extend",ae),{}):isJsonRpcError(ie)&&this.events.emit(it("session_extend",ae),{error:ie.error})},this.onSessionPingRequest=async(k,ie)=>{const{id:ae}=ie;try{this.isValidPing({topic:k}),await this.sendResult(ae,k,!0),this.client.events.emit("session_ping",{id:ae,topic:k})}catch(ce){await this.sendError(ae,k,ce),this.client.logger.error(ce)}},this.onSessionPingResponse=(k,ie)=>{const{id:ae}=ie;setTimeout(()=>{isJsonRpcResult(ie)?this.events.emit(it("session_ping",ae),{}):isJsonRpcError(ie)&&this.events.emit(it("session_ping",ae),{error:ie.error})},500)},this.onSessionDeleteRequest=async(k,ie)=>{const{id:ae}=ie;try{this.isValidDisconnect({topic:k,reason:ie.params}),await Promise.all([new Promise(ce=>{this.client.core.relayer.once(g2.publish,async()=>{ce(await this.deleteSession(k))})}),this.sendResult(ae,k,!0)]),this.client.events.emit("session_delete",{id:ae,topic:k})}catch(ce){this.client.logger.error(ce)}},this.onSessionRequest=async(k,ie)=>{const{id:ae,params:ce}=ie;try{this.isValidRequest(w2({topic:k},ce)),await this.setPendingSessionRequest({id:ae,topic:k,params:ce}),this.addRequestToQueue({id:ae,topic:k,params:ce}),await this.processRequestQueue()}catch(fe){await this.sendError(ae,k,fe),this.client.logger.error(fe)}},this.onSessionRequestResponse=(k,ie)=>{const{id:ae}=ie;isJsonRpcResult(ie)?this.events.emit(it("session_request",ae),{result:ie.result}):isJsonRpcError(ie)&&this.events.emit(it("session_request",ae),{error:ie.error})},this.onSessionEventRequest=async(k,ie)=>{const{id:ae,params:ce}=ie;try{this.isValidEmit(w2({topic:k},ce)),this.client.events.emit("session_event",{id:ae,topic:k,params:ce})}catch(fe){await this.sendError(ae,k,fe),this.client.logger.error(fe)}},this.addRequestToQueue=k=>{this.requestQueue.requests.push(k)},this.cleanupAfterResponse=k=>{this.deletePendingSessionRequest(k.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.requestQueue.state=V2.idle,this.processRequestQueue()},(0,import_time4.toMiliseconds)(this.requestQueueDelay))},this.processRequestQueue=async()=>{if(this.requestQueue.state===V2.active){this.client.logger.info("session request queue is already active.");return}const k=this.requestQueue.requests[0];if(!k){this.client.logger.info("session request queue is empty.");return}try{const{id:ie,topic:ae,params:ce}=k,fe=$n(JSON.stringify({id:ie,params:ce})),le=this.client.session.get(ae),ve=await this.getVerifyContext(fe,le.peer.metadata);this.requestQueue.state=V2.active,this.client.events.emit("session_request",{id:ie,topic:ae,params:ce,verifyContext:ve})}catch(ie){this.client.logger.error(ie)}},this.isValidConnect=async k=>{if(!Dt(k)){const{message:ve}=N$1("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(k)}`);throw new Error(ve)}const{pairingTopic:ie,requiredNamespaces:ae,optionalNamespaces:ce,sessionProperties:fe,relays:le}=k;if(I(ie)||await this.isValidPairingTopic(ie),!jt(le,!0)){const{message:ve}=N$1("MISSING_OR_INVALID",`connect() relays: ${le}`);throw new Error(ve)}!I(ae)&&H(ae)!==0&&this.validateNamespaces(ae,"requiredNamespaces"),!I(ce)&&H(ce)!==0&&this.validateNamespaces(ce,"optionalNamespaces"),I(fe)||this.validateSessionProps(fe,"sessionProperties")},this.validateNamespaces=(k,ie)=>{const ae=$t(k,"connect()",ie);if(ae)throw new Error(ae.message)},this.isValidApprove=async k=>{if(!Dt(k))throw new Error(N$1("MISSING_OR_INVALID",`approve() params: ${k}`).message);const{id:ie,namespaces:ae,relayProtocol:ce,sessionProperties:fe}=k;await this.isValidProposalId(ie);const le=this.client.proposal.get(ie),ve=sn(ae,"approve()");if(ve)throw new Error(ve.message);const pe=an(le.requiredNamespaces,ae,"approve()");if(pe)throw new Error(pe.message);if(!y2(ce,!0)){const{message:ye}=N$1("MISSING_OR_INVALID",`approve() relayProtocol: ${ce}`);throw new Error(ye)}I(fe)||this.validateSessionProps(fe,"sessionProperties")},this.isValidReject=async k=>{if(!Dt(k)){const{message:ce}=N$1("MISSING_OR_INVALID",`reject() params: ${k}`);throw new Error(ce)}const{id:ie,reason:ae}=k;if(await this.isValidProposalId(ie),!Vt(ae)){const{message:ce}=N$1("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(ae)}`);throw new Error(ce)}},this.isValidSessionSettleRequest=k=>{if(!Dt(k)){const{message:pe}=N$1("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${k}`);throw new Error(pe)}const{relay:ie,controller:ae,namespaces:ce,expiry:fe}=k;if(!cn(ie)){const{message:pe}=N$1("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(pe)}const le=_t(ae,"onSessionSettleRequest()");if(le)throw new Error(le.message);const ve=sn(ce,"onSessionSettleRequest()");if(ve)throw new Error(ve.message);if(st(fe)){const{message:pe}=N$1("EXPIRED","onSessionSettleRequest()");throw new Error(pe)}},this.isValidUpdate=async k=>{if(!Dt(k)){const{message:ve}=N$1("MISSING_OR_INVALID",`update() params: ${k}`);throw new Error(ve)}const{topic:ie,namespaces:ae}=k;await this.isValidSessionTopic(ie);const ce=this.client.session.get(ie),fe=sn(ae,"update()");if(fe)throw new Error(fe.message);const le=an(ce.requiredNamespaces,ae,"update()");if(le)throw new Error(le.message)},this.isValidExtend=async k=>{if(!Dt(k)){const{message:ae}=N$1("MISSING_OR_INVALID",`extend() params: ${k}`);throw new Error(ae)}const{topic:ie}=k;await this.isValidSessionTopic(ie)},this.isValidRequest=async k=>{if(!Dt(k)){const{message:ve}=N$1("MISSING_OR_INVALID",`request() params: ${k}`);throw new Error(ve)}const{topic:ie,request:ae,chainId:ce,expiry:fe}=k;await this.isValidSessionTopic(ie);const{namespaces:le}=this.client.session.get(ie);if(!Lt(le,ce)){const{message:ve}=N$1("MISSING_OR_INVALID",`request() chainId: ${ce}`);throw new Error(ve)}if(!kt(ae)){const{message:ve}=N$1("MISSING_OR_INVALID",`request() ${JSON.stringify(ae)}`);throw new Error(ve)}if(!xt(le,ce,ae.method)){const{message:ve}=N$1("MISSING_OR_INVALID",`request() method: ${ae.method}`);throw new Error(ve)}if(fe&&!Gt(fe,M3)){const{message:ve}=N$1("MISSING_OR_INVALID",`request() expiry: ${fe}. Expiry must be a number (in seconds) between ${M3.min} and ${M3.max}`);throw new Error(ve)}},this.isValidRespond=async k=>{if(!Dt(k)){const{message:ce}=N$1("MISSING_OR_INVALID",`respond() params: ${k}`);throw new Error(ce)}const{topic:ie,response:ae}=k;if(await this.isValidSessionTopic(ie),!Mt(ae)){const{message:ce}=N$1("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(ae)}`);throw new Error(ce)}},this.isValidPing=async k=>{if(!Dt(k)){const{message:ae}=N$1("MISSING_OR_INVALID",`ping() params: ${k}`);throw new Error(ae)}const{topic:ie}=k;await this.isValidSessionOrPairingTopic(ie)},this.isValidEmit=async k=>{if(!Dt(k)){const{message:le}=N$1("MISSING_OR_INVALID",`emit() params: ${k}`);throw new Error(le)}const{topic:ie,event:ae,chainId:ce}=k;await this.isValidSessionTopic(ie);const{namespaces:fe}=this.client.session.get(ie);if(!Lt(fe,ce)){const{message:le}=N$1("MISSING_OR_INVALID",`emit() chainId: ${ce}`);throw new Error(le)}if(!Kt(ae)){const{message:le}=N$1("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(ae)}`);throw new Error(le)}if(!Ft(fe,ce,ae.name)){const{message:le}=N$1("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(ae)}`);throw new Error(le)}},this.isValidDisconnect=async k=>{if(!Dt(k)){const{message:ae}=N$1("MISSING_OR_INVALID",`disconnect() params: ${k}`);throw new Error(ae)}const{topic:ie}=k;await this.isValidSessionOrPairingTopic(ie)},this.getVerifyContext=async(k,ie)=>{const ae={verified:{verifyUrl:ie.verifyUrl||"",validation:"UNKNOWN",origin:ie.url||""}};try{const ce=await this.client.core.verify.resolve({attestationId:k,verifyUrl:ie.verifyUrl});ce&&(ae.verified.origin=ce,ae.verified.validation=ce===ie.url?"VALID":"INVALID")}catch(ce){this.client.logger.error(ce)}return this.client.logger.info(`Verify context: ${JSON.stringify(ae)}`),ae},this.validateSessionProps=(k,ie)=>{Object.values(k).forEach(ae=>{if(!y2(ae,!1)){const{message:ce}=N$1("MISSING_OR_INVALID",`${ie} must be in Record format. Received: ${JSON.stringify(ae)}`);throw new Error(ce)}})}}isInitialized(){if(!this.initialized){const{message:v}=N$1("NOT_INITIALIZED",this.name);throw new Error(v)}}registerRelayerEvents(){this.client.core.relayer.on(g2.message,async v=>{const{topic:k,message:ie}=v;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(ie)))return;const ae=await this.client.core.crypto.decode(k,ie);isJsonRpcRequest(ae)?(this.client.core.history.set(k,ae),this.onRelayEventRequest({topic:k,payload:ae})):isJsonRpcResponse(ae)?(await this.client.core.history.resolve(ae),await this.onRelayEventResponse({topic:k,payload:ae}),this.client.core.history.delete(k,ae.id)):this.onRelayEventUnknownPayload({topic:k,payload:ae})})}registerExpirerEvents(){this.client.core.expirer.on(w.expired,async v=>{const{topic:k,id:ie}=rt(v.target);if(ie&&this.client.pendingRequest.keys.includes(ie))return await this.deletePendingSessionRequest(ie,N$1("EXPIRED"),!0);k?this.client.session.keys.includes(k)&&(await this.deleteSession(k,!0),this.client.events.emit("session_expire",{topic:k})):ie&&(await this.deleteProposal(ie,!0),this.client.events.emit("proposal_expire",{id:ie}))})}isValidPairingTopic(v){if(!y2(v,!1)){const{message:k}=N$1("MISSING_OR_INVALID",`pairing topic should be a string: ${v}`);throw new Error(k)}if(!this.client.core.pairing.pairings.keys.includes(v)){const{message:k}=N$1("NO_MATCHING_KEY",`pairing topic doesn't exist: ${v}`);throw new Error(k)}if(st(this.client.core.pairing.pairings.get(v).expiry)){const{message:k}=N$1("EXPIRED",`pairing topic: ${v}`);throw new Error(k)}}async isValidSessionTopic(v){if(!y2(v,!1)){const{message:k}=N$1("MISSING_OR_INVALID",`session topic should be a string: ${v}`);throw new Error(k)}if(!this.client.session.keys.includes(v)){const{message:k}=N$1("NO_MATCHING_KEY",`session topic doesn't exist: ${v}`);throw new Error(k)}if(st(this.client.session.get(v).expiry)){await this.deleteSession(v);const{message:k}=N$1("EXPIRED",`session topic: ${v}`);throw new Error(k)}}async isValidSessionOrPairingTopic(v){if(this.client.session.keys.includes(v))await this.isValidSessionTopic(v);else if(this.client.core.pairing.pairings.keys.includes(v))this.isValidPairingTopic(v);else if(y2(v,!1)){const{message:k}=N$1("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${v}`);throw new Error(k)}else{const{message:k}=N$1("MISSING_OR_INVALID",`session or pairing topic should be a string: ${v}`);throw new Error(k)}}async isValidProposalId(v){if(!Ct(v)){const{message:k}=N$1("MISSING_OR_INVALID",`proposal id should be a number: ${v}`);throw new Error(k)}if(!this.client.proposal.keys.includes(v)){const{message:k}=N$1("NO_MATCHING_KEY",`proposal id doesn't exist: ${v}`);throw new Error(k)}if(st(this.client.proposal.get(v).expiry)){await this.deleteProposal(v);const{message:k}=N$1("EXPIRED",`proposal id: ${v}`);throw new Error(k)}}},cs2=class extends Nt{constructor(v,k){super(v,k,ie2,G3),this.core=v,this.logger=k}},ls2=class extends Nt{constructor(v,k){super(v,k,ne3,G3),this.core=v,this.logger=k}},ps2=class extends Nt{constructor(v,k){super(v,k,ae3,G3,ie=>ie.id),this.core=v,this.logger=k}},U3=class extends b{constructor(v){super(v),this.protocol=Y2,this.version=J3,this.name=$3.name,this.events=new import_events6.EventEmitter,this.on=(ie,ae)=>this.events.on(ie,ae),this.once=(ie,ae)=>this.events.once(ie,ae),this.off=(ie,ae)=>this.events.off(ie,ae),this.removeListener=(ie,ae)=>this.events.removeListener(ie,ae),this.removeAllListeners=ie=>this.events.removeAllListeners(ie),this.connect=async ie=>{try{return await this.engine.connect(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.pair=async ie=>{try{return await this.engine.pair(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.approve=async ie=>{try{return await this.engine.approve(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.reject=async ie=>{try{return await this.engine.reject(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.update=async ie=>{try{return await this.engine.update(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.extend=async ie=>{try{return await this.engine.extend(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.request=async ie=>{try{return await this.engine.request(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.respond=async ie=>{try{return await this.engine.respond(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.ping=async ie=>{try{return await this.engine.ping(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.emit=async ie=>{try{return await this.engine.emit(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.disconnect=async ie=>{try{return await this.engine.disconnect(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.find=ie=>{try{return this.engine.find(ie)}catch(ae){throw this.logger.error(ae.message),ae}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(ie){throw this.logger.error(ie.message),ie}},this.name=(v==null?void 0:v.name)||$3.name,this.metadata=(v==null?void 0:v.metadata)||Fn();const k=typeof(v==null?void 0:v.logger)<"u"&&typeof(v==null?void 0:v.logger)!="string"?v.logger:(0,import_logger2.pino)((0,import_logger2.getDefaultLoggerOptions)({level:(v==null?void 0:v.logger)||$3.logger}));this.core=(v==null?void 0:v.core)||new Sr(v),this.logger=(0,import_logger2.generateChildLogger)(k,this.name),this.session=new ls2(this.core,this.logger),this.proposal=new cs2(this.core,this.logger),this.pendingRequest=new ps2(this.core,this.logger),this.engine=new as2(this)}static async init(v){const k=new U3(v);return await k.initialize(),k}get context(){return(0,import_logger2.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(v){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(v.message),v}}},d3=class{constructor(v){this.openModal=F.open,this.closeModal=F.close,this.subscribeModal=F.subscribe,this.setTheme=G.setThemeConfig,G.setThemeConfig(v),f.setConfig(v),this.initUi()}async initUi(){if(typeof window<"u"){await __vitePreload(()=>import("./dist-L25PVQMT.861dc13c.js"),[]);const v=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",v),d.setIsUiLoaded(!0)}}},commonjsGlobal$9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$m$2=function(v){try{return!!v()}catch{return!0}},fails$l$2=fails$m$2,functionBindNative$8=!fails$l$2(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$4=functionBindNative$8,FunctionPrototype$2$4=Function.prototype,bind$5$2=FunctionPrototype$2$4.bind,call$i$1=FunctionPrototype$2$4.call,uncurryThis$l$2=NATIVE_BIND$3$4&&bind$5$2.bind(call$i$1,call$i$1),functionUncurryThis$8=NATIVE_BIND$3$4?function(v){return v&&uncurryThis$l$2(v)}:function(v){return v&&function(){return call$i$1.apply(v,arguments)}},uncurryThis$k$2=functionUncurryThis$8,toString$8=uncurryThis$k$2({}.toString),stringSlice$3$3=uncurryThis$k$2("".slice),classofRaw$1$7=function(v){return stringSlice$3$3(toString$8(v),8,-1)},uncurryThis$j$3=functionUncurryThis$8,fails$k$2=fails$m$2,classof$7$2=classofRaw$1$7,$Object$4$3=Object,split$6=uncurryThis$j$3("".split),indexedObject$6=fails$k$2(function(){return!$Object$4$3("z").propertyIsEnumerable(0)})?function(v){return classof$7$2(v)=="String"?split$6(v,""):$Object$4$3(v)}:$Object$4$3,$TypeError$d$1=TypeError,requireObjectCoercible$6$1=function(v){if(v==null)throw $TypeError$d$1("Can't call method on "+v);return v},IndexedObject$1$5=indexedObject$6,requireObjectCoercible$5$1=requireObjectCoercible$6$1,toIndexedObject$5$3=function(v){return IndexedObject$1$5(requireObjectCoercible$5$1(v))},check$8=function(v){return v&&v.Math==Math&&v},global$n=check$8(typeof globalThis=="object"&&globalThis)||check$8(typeof window=="object"&&window)||check$8(typeof self=="object"&&self)||check$8(typeof commonjsGlobal$9=="object"&&commonjsGlobal$9)||function(){return this}()||Function("return this")(),shared$4$3={exports:{}},global$m$1=global$n,defineProperty$5$3=Object.defineProperty,defineGlobalProperty$3$6=function(v,k){try{defineProperty$5$3(global$m$1,v,{value:k,configurable:!0,writable:!0})}catch{global$m$1[v]=k}return k},global$l$2=global$n,defineGlobalProperty$2$8=defineGlobalProperty$3$6,SHARED$8="__core-js_shared__",store$3$8=global$l$2[SHARED$8]||defineGlobalProperty$2$8(SHARED$8,{}),sharedStore$8=store$3$8,store$2$8=sharedStore$8;(shared$4$3.exports=function(v,k){return store$2$8[v]||(store$2$8[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$4$3=requireObjectCoercible$6$1,$Object$3$5=Object,toObject$3$3=function(v){return $Object$3$5(requireObjectCoercible$4$3(v))},uncurryThis$i$3=functionUncurryThis$8,toObject$2$5=toObject$3$3,hasOwnProperty$8=uncurryThis$i$3({}.hasOwnProperty),hasOwnProperty_1$8=Object.hasOwn||function v(k,ie){return hasOwnProperty$8(toObject$2$5(k),ie)},uncurryThis$h$3=functionUncurryThis$8,id$a=0,postfix$8=Math.random(),toString$7=uncurryThis$h$3(1 .toString),uid$2$8=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$7(++id$a+postfix$8,36)},isCallable$m$2=function(v){return typeof v=="function"},global$k$2=global$n,isCallable$l$2=isCallable$m$2,aFunction$8=function(v){return isCallable$l$2(v)?v:void 0},getBuiltIn$9$1=function(v,k){return arguments.length<2?aFunction$8(global$k$2[v]):global$k$2[v]&&global$k$2[v][k]},getBuiltIn$8$2=getBuiltIn$9$1,engineUserAgent$8=getBuiltIn$8$2("navigator","userAgent")||"",global$j$2=global$n,userAgent$3$2=engineUserAgent$8,process$3$2=global$j$2.process,Deno$1$3=global$j$2.Deno,versions$8=process$3$2&&process$3$2.versions||Deno$1$3&&Deno$1$3.version,v8$8=versions$8&&versions$8.v8,match$8,version2$1;v8$8&&(match$8=v8$8.split("."),version2$1=match$8[0]>0&&match$8[0]<4?1:+(match$8[0]+match$8[1]));!version2$1&&userAgent$3$2&&(match$8=userAgent$3$2.match(/Edge\/(\d+)/),(!match$8||match$8[1]>=74)&&(match$8=userAgent$3$2.match(/Chrome\/(\d+)/),match$8&&(version2$1=+match$8[1])));var engineV8Version$8=version2$1,V8_VERSION$1$2=engineV8Version$8,fails$j$3=fails$m$2,nativeSymbol$8=!!Object.getOwnPropertySymbols&&!fails$j$3(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$2&&V8_VERSION$1$2<41}),NATIVE_SYMBOL$1$8=nativeSymbol$8,useSymbolAsUid$8=NATIVE_SYMBOL$1$8&&!Symbol.sham&&typeof Symbol.iterator=="symbol",global$i$3=global$n,shared$3$8=shared$4$3.exports,hasOwn$a$3=hasOwnProperty_1$8,uid$1$8=uid$2$8,NATIVE_SYMBOL$9=nativeSymbol$8,USE_SYMBOL_AS_UID$1$8=useSymbolAsUid$8,WellKnownSymbolsStore$8=shared$3$8("wks"),Symbol$2=global$i$3.Symbol,symbolFor$8=Symbol$2&&Symbol$2.for,createWellKnownSymbol$8=USE_SYMBOL_AS_UID$1$8?Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$1$8,wellKnownSymbol$h$2=function(v){if(!hasOwn$a$3(WellKnownSymbolsStore$8,v)||!(NATIVE_SYMBOL$9||typeof WellKnownSymbolsStore$8[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$9&&hasOwn$a$3(Symbol$2,v)?WellKnownSymbolsStore$8[v]=Symbol$2[v]:USE_SYMBOL_AS_UID$1$8&&symbolFor$8?WellKnownSymbolsStore$8[v]=symbolFor$8(k):WellKnownSymbolsStore$8[v]=createWellKnownSymbol$8(k)}return WellKnownSymbolsStore$8[v]},isCallable$k$2=isCallable$m$2,isObject$8$2=function(v){return typeof v=="object"?v!==null:isCallable$k$2(v)},isObject$7$4=isObject$8$2,$String$3$3=String,$TypeError$c$2=TypeError,anObject$e$2=function(v){if(isObject$7$4(v))return v;throw $TypeError$c$2($String$3$3(v)+" is not an object")},objectDefineProperties$3={},fails$i$3=fails$m$2,descriptors$8=!fails$i$3(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),DESCRIPTORS$a$3=descriptors$8,fails$h$3=fails$m$2,v8PrototypeDefineBug$8=DESCRIPTORS$a$3&&fails$h$3(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),objectDefineProperty$8={},global$h$4=global$n,isObject$6$4=isObject$8$2,document$3$2=global$h$4.document,EXISTS$1$8=isObject$6$4(document$3$2)&&isObject$6$4(document$3$2.createElement),documentCreateElement$2$3=function(v){return EXISTS$1$8?document$3$2.createElement(v):{}},DESCRIPTORS$9$3=descriptors$8,fails$g$3=fails$m$2,createElement$1$2=documentCreateElement$2$3,ie8DomDefine$8=!DESCRIPTORS$9$3&&!fails$g$3(function(){return Object.defineProperty(createElement$1$2("div"),"a",{get:function(){return 7}}).a!=7}),NATIVE_BIND$2$4=functionBindNative$8,call$h$2=Function.prototype.call,functionCall$8=NATIVE_BIND$2$4?call$h$2.bind(call$h$2):function(){return call$h$2.apply(call$h$2,arguments)},uncurryThis$g$3=functionUncurryThis$8,objectIsPrototypeOf$8=uncurryThis$g$3({}.isPrototypeOf),getBuiltIn$7$2=getBuiltIn$9$1,isCallable$j$3=isCallable$m$2,isPrototypeOf$3$3=objectIsPrototypeOf$8,USE_SYMBOL_AS_UID$9=useSymbolAsUid$8,$Object$2$8=Object,isSymbol$2$8=USE_SYMBOL_AS_UID$9?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$7$2("Symbol");return isCallable$j$3(k)&&isPrototypeOf$3$3(k.prototype,$Object$2$8(v))},$String$2$7=String,tryToString$4$4=function(v){try{return $String$2$7(v)}catch{return"Object"}},isCallable$i$3=isCallable$m$2,tryToString$3$4=tryToString$4$4,$TypeError$b$3=TypeError,aCallable$7$2=function(v){if(isCallable$i$3(v))return v;throw $TypeError$b$3(tryToString$3$4(v)+" is not a function")},aCallable$6$2=aCallable$7$2,getMethod$4$2=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$6$2(ie)},call$g$3=functionCall$8,isCallable$h$4=isCallable$m$2,isObject$5$8=isObject$8$2,$TypeError$a$4=TypeError,ordinaryToPrimitive$1$8=function(v,k){var ie,ae;if(k==="string"&&isCallable$h$4(ie=v.toString)&&!isObject$5$8(ae=call$g$3(ie,v))||isCallable$h$4(ie=v.valueOf)&&!isObject$5$8(ae=call$g$3(ie,v))||k!=="string"&&isCallable$h$4(ie=v.toString)&&!isObject$5$8(ae=call$g$3(ie,v)))return ae;throw $TypeError$a$4("Can't convert object to primitive value")},call$f$3=functionCall$8,isObject$4$8=isObject$8$2,isSymbol$1$8=isSymbol$2$8,getMethod$3$3=getMethod$4$2,ordinaryToPrimitive$9=ordinaryToPrimitive$1$8,wellKnownSymbol$g$3=wellKnownSymbol$h$2,$TypeError$9$4=TypeError,TO_PRIMITIVE$8=wellKnownSymbol$g$3("toPrimitive"),toPrimitive$1$8=function(v,k){if(!isObject$4$8(v)||isSymbol$1$8(v))return v;var ie=getMethod$3$3(v,TO_PRIMITIVE$8),ae;if(ie){if(k===void 0&&(k="default"),ae=call$f$3(ie,v,k),!isObject$4$8(ae)||isSymbol$1$8(ae))return ae;throw $TypeError$9$4("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$9(v,k)},toPrimitive$a=toPrimitive$1$8,isSymbol$b=isSymbol$2$8,toPropertyKey$3$2=function(v){var k=toPrimitive$a(v,"string");return isSymbol$b(k)?k:k+""},DESCRIPTORS$8$3=descriptors$8,IE8_DOM_DEFINE$1$6=ie8DomDefine$8,V8_PROTOTYPE_DEFINE_BUG$1$3=v8PrototypeDefineBug$8,anObject$d$2=anObject$e$2,toPropertyKey$2$6=toPropertyKey$3$2,$TypeError$8$4=TypeError,$defineProperty$8=Object.defineProperty,$getOwnPropertyDescriptor$1$6=Object.getOwnPropertyDescriptor,ENUMERABLE$8="enumerable",CONFIGURABLE$1$8="configurable",WRITABLE$8="writable";objectDefineProperty$8.f=DESCRIPTORS$8$3?V8_PROTOTYPE_DEFINE_BUG$1$3?function v(k,ie,ae){if(anObject$d$2(k),ie=toPropertyKey$2$6(ie),anObject$d$2(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$8 in ae&&!ae[WRITABLE$8]){var ce=$getOwnPropertyDescriptor$1$6(k,ie);ce&&ce[WRITABLE$8]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$8 in ae?ae[CONFIGURABLE$1$8]:ce[CONFIGURABLE$1$8],enumerable:ENUMERABLE$8 in ae?ae[ENUMERABLE$8]:ce[ENUMERABLE$8],writable:!1})}return $defineProperty$8(k,ie,ae)}:$defineProperty$8:function v(k,ie,ae){if(anObject$d$2(k),ie=toPropertyKey$2$6(ie),anObject$d$2(ae),IE8_DOM_DEFINE$1$6)try{return $defineProperty$8(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$8$4("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var ceil$6=Math.ceil,floor$9=Math.floor,mathTrunc$6=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$9:ceil$6)(ie)},trunc2$6=mathTrunc$6,toIntegerOrInfinity$3$3=function(v){var k=+v;return k!==k||k===0?0:trunc2$6(k)},toIntegerOrInfinity$2$6=toIntegerOrInfinity$3$3,max$1$3=Math.max,min$2$3=Math.min,toAbsoluteIndex$2$2=function(v,k){var ie=toIntegerOrInfinity$2$6(v);return ie<0?max$1$3(ie+k,0):min$2$3(ie,k)},toIntegerOrInfinity$1$6=toIntegerOrInfinity$3$3,min$1$6=Math.min,toLength$2$3=function(v){return v>0?min$1$6(toIntegerOrInfinity$1$6(v),9007199254740991):0},toLength$1$6=toLength$2$3,lengthOfArrayLike$3$2=function(v){return toLength$1$6(v.length)},toIndexedObject$4$3=toIndexedObject$5$3,toAbsoluteIndex$1$6=toAbsoluteIndex$2$2,lengthOfArrayLike$2$4=lengthOfArrayLike$3$2,createMethod$2$2=function(v){return function(k,ie,ae){var ce=toIndexedObject$4$3(k),fe=lengthOfArrayLike$2$4(ce),le=toAbsoluteIndex$1$6(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$6={includes:createMethod$2$2(!0),indexOf:createMethod$2$2(!1)},hiddenKeys$4$3={},uncurryThis$f$3=functionUncurryThis$8,hasOwn$9$3=hasOwnProperty_1$8,toIndexedObject$3$6=toIndexedObject$5$3,indexOf$1$3=arrayIncludes$6.indexOf,hiddenKeys$3$6=hiddenKeys$4$3,push$1$3=uncurryThis$f$3([].push),objectKeysInternal$6=function(v,k){var ie=toIndexedObject$3$6(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$9$3(hiddenKeys$3$6,fe)&&hasOwn$9$3(ie,fe)&&push$1$3(ce,fe);for(;k.length>ae;)hasOwn$9$3(ie,fe=k[ae++])&&(~indexOf$1$3(ce,fe)||push$1$3(ce,fe));return ce},enumBugKeys$3$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$5=objectKeysInternal$6,enumBugKeys$2$5=enumBugKeys$3$3,objectKeys$2$3=Object.keys||function v(k){return internalObjectKeys$1$5(k,enumBugKeys$2$5)},DESCRIPTORS$7$6=descriptors$8,V8_PROTOTYPE_DEFINE_BUG$9=v8PrototypeDefineBug$8,definePropertyModule$5$2=objectDefineProperty$8,anObject$c$3=anObject$e$2,toIndexedObject$2$6=toIndexedObject$5$3,objectKeys$1$5=objectKeys$2$3;objectDefineProperties$3.f=DESCRIPTORS$7$6&&!V8_PROTOTYPE_DEFINE_BUG$9?Object.defineProperties:function v(k,ie){anObject$c$3(k);for(var ae=toIndexedObject$2$6(ie),ce=objectKeys$1$5(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$5$2.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$6$4=getBuiltIn$9$1,html$2$2=getBuiltIn$6$4("document","documentElement"),shared$2$8=shared$4$3.exports,uid$b=uid$2$8,keys2$2=shared$2$8("keys"),sharedKey$3$3=function(v){return keys2$2[v]||(keys2$2[v]=uid$b(v))},anObject$b$3=anObject$e$2,definePropertiesModule$3=objectDefineProperties$3,enumBugKeys$1$6=enumBugKeys$3$3,hiddenKeys$2$6=hiddenKeys$4$3,html$1$4=html$2$2,documentCreateElement$1$3=documentCreateElement$2$3,sharedKey$2$3=sharedKey$3$3,GT$3=">",LT$3="<",PROTOTYPE$4="prototype",SCRIPT$3="script",IE_PROTO$1$3=sharedKey$2$3("IE_PROTO"),EmptyConstructor$3=function(){},scriptTag$3=function(v){return LT$3+SCRIPT$3+GT$3+v+LT$3+"/"+SCRIPT$3+GT$3},NullProtoObjectViaActiveX$3=function(v){v.write(scriptTag$3("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$3=function(){var v=documentCreateElement$1$3("iframe"),k="java"+SCRIPT$3+":",ie;return v.style.display="none",html$1$4.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$3("document.F=Object")),ie.close(),ie.F},activeXDocument$3,NullProtoObject$3=function(){try{activeXDocument$3=new ActiveXObject("htmlfile")}catch{}NullProtoObject$3=typeof document<"u"?document.domain&&activeXDocument$3?NullProtoObjectViaActiveX$3(activeXDocument$3):NullProtoObjectViaIFrame$3():NullProtoObjectViaActiveX$3(activeXDocument$3);for(var v=enumBugKeys$1$6.length;v--;)delete NullProtoObject$3[PROTOTYPE$4][enumBugKeys$1$6[v]];return NullProtoObject$3()};hiddenKeys$2$6[IE_PROTO$1$3]=!0;var objectCreate$3=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$3[PROTOTYPE$4]=anObject$b$3(k),ae=new EmptyConstructor$3,EmptyConstructor$3[PROTOTYPE$4]=null,ae[IE_PROTO$1$3]=k):ae=NullProtoObject$3(),ie===void 0?ae:definePropertiesModule$3.f(ae,ie)},wellKnownSymbol$f$3=wellKnownSymbol$h$2,create$2$3=objectCreate$3,defineProperty$4$3=objectDefineProperty$8.f,UNSCOPABLES$3=wellKnownSymbol$f$3("unscopables"),ArrayPrototype$1$3=Array.prototype;ArrayPrototype$1$3[UNSCOPABLES$3]==null&&defineProperty$4$3(ArrayPrototype$1$3,UNSCOPABLES$3,{configurable:!0,value:create$2$3(null)});var addToUnscopables$2$1=function(v){ArrayPrototype$1$3[UNSCOPABLES$3][v]=!0},iterators$4={},uncurryThis$e$3=functionUncurryThis$8,isCallable$g$4=isCallable$m$2,store$1$8=sharedStore$8,functionToString$8=uncurryThis$e$3(Function.toString);isCallable$g$4(store$1$8.inspectSource)||(store$1$8.inspectSource=function(v){return functionToString$8(v)});var inspectSource$4$2=store$1$8.inspectSource,global$g$4=global$n,isCallable$f$4=isCallable$m$2,inspectSource$3$4=inspectSource$4$2,WeakMap$1$8=global$g$4.WeakMap,nativeWeakMap$8=isCallable$f$4(WeakMap$1$8)&&/native code/.test(inspectSource$3$4(WeakMap$1$8)),createPropertyDescriptor$4$2=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$6$6=descriptors$8,definePropertyModule$4$3=objectDefineProperty$8,createPropertyDescriptor$3$3=createPropertyDescriptor$4$2,createNonEnumerableProperty$5$3=DESCRIPTORS$6$6?function(v,k,ie){return definePropertyModule$4$3.f(v,k,createPropertyDescriptor$3$3(1,ie))}:function(v,k,ie){return v[k]=ie,v},NATIVE_WEAK_MAP$8=nativeWeakMap$8,global$f$4=global$n,uncurryThis$d$4=functionUncurryThis$8,isObject$3$8=isObject$8$2,createNonEnumerableProperty$4$3=createNonEnumerableProperty$5$3,hasOwn$8$4=hasOwnProperty_1$8,shared$1$8=sharedStore$8,sharedKey$1$8=sharedKey$3$3,hiddenKeys$1$6=hiddenKeys$4$3,OBJECT_ALREADY_INITIALIZED$8="Object already initialized",TypeError$2$4=global$f$4.TypeError,WeakMap$a=global$f$4.WeakMap,set$1$4,get$9,has$8,enforce$8=function(v){return has$8(v)?get$9(v):set$1$4(v,{})},getterFor$8=function(v){return function(k){var ie;if(!isObject$3$8(k)||(ie=get$9(k)).type!==v)throw TypeError$2$4("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$8||shared$1$8.state?(store$b=shared$1$8.state||(shared$1$8.state=new WeakMap$a),wmget$8=uncurryThis$d$4(store$b.get),wmhas$8=uncurryThis$d$4(store$b.has),wmset$8=uncurryThis$d$4(store$b.set),set$1$4=function(v,k){if(wmhas$8(store$b,v))throw new TypeError$2$4(OBJECT_ALREADY_INITIALIZED$8);return k.facade=v,wmset$8(store$b,v,k),k},get$9=function(v){return wmget$8(store$b,v)||{}},has$8=function(v){return wmhas$8(store$b,v)}):(STATE$8=sharedKey$1$8("state"),hiddenKeys$1$6[STATE$8]=!0,set$1$4=function(v,k){if(hasOwn$8$4(v,STATE$8))throw new TypeError$2$4(OBJECT_ALREADY_INITIALIZED$8);return k.facade=v,createNonEnumerableProperty$4$3(v,STATE$8,k),k},get$9=function(v){return hasOwn$8$4(v,STATE$8)?v[STATE$8]:{}},has$8=function(v){return hasOwn$8$4(v,STATE$8)});var store$b,wmget$8,wmhas$8,wmset$8,STATE$8,internalState$8={set:set$1$4,get:get$9,has:has$8,enforce:enforce$8,getterFor:getterFor$8},objectGetOwnPropertyDescriptor$6={},objectPropertyIsEnumerable$6={},$propertyIsEnumerable$6={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$2=Object.getOwnPropertyDescriptor,NASHORN_BUG$6=getOwnPropertyDescriptor$2$2&&!$propertyIsEnumerable$6.call({1:2},1);objectPropertyIsEnumerable$6.f=NASHORN_BUG$6?function v(k){var ie=getOwnPropertyDescriptor$2$2(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$6;var DESCRIPTORS$5$8=descriptors$8,call$e$3=functionCall$8,propertyIsEnumerableModule$1$5=objectPropertyIsEnumerable$6,createPropertyDescriptor$2$6=createPropertyDescriptor$4$2,toIndexedObject$1$6=toIndexedObject$5$3,toPropertyKey$1$8=toPropertyKey$3$2,hasOwn$7$5=hasOwnProperty_1$8,IE8_DOM_DEFINE$9=ie8DomDefine$8,$getOwnPropertyDescriptor$9=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$6.f=DESCRIPTORS$5$8?$getOwnPropertyDescriptor$9:function v(k,ie){if(k=toIndexedObject$1$6(k),ie=toPropertyKey$1$8(ie),IE8_DOM_DEFINE$9)try{return $getOwnPropertyDescriptor$9(k,ie)}catch{}if(hasOwn$7$5(k,ie))return createPropertyDescriptor$2$6(!call$e$3(propertyIsEnumerableModule$1$5.f,k,ie),k[ie])};var makeBuiltIn$2$8={exports:{}},DESCRIPTORS$4$8=descriptors$8,hasOwn$6$6=hasOwnProperty_1$8,FunctionPrototype$1$8=Function.prototype,getDescriptor$8=DESCRIPTORS$4$8&&Object.getOwnPropertyDescriptor,EXISTS$9=hasOwn$6$6(FunctionPrototype$1$8,"name"),PROPER$8=EXISTS$9&&function v(){}.name==="something",CONFIGURABLE$9=EXISTS$9&&(!DESCRIPTORS$4$8||DESCRIPTORS$4$8&&getDescriptor$8(FunctionPrototype$1$8,"name").configurable),functionName$8={EXISTS:EXISTS$9,PROPER:PROPER$8,CONFIGURABLE:CONFIGURABLE$9},fails$f$3=fails$m$2,isCallable$e$4=isCallable$m$2,hasOwn$5$6=hasOwnProperty_1$8,DESCRIPTORS$3$8=descriptors$8,CONFIGURABLE_FUNCTION_NAME$1$3=functionName$8.CONFIGURABLE,inspectSource$2$8=inspectSource$4$2,InternalStateModule$2$3=internalState$8,enforceInternalState$a=InternalStateModule$2$3.enforce,getInternalState$2$3=InternalStateModule$2$3.get,defineProperty$3$3=Object.defineProperty,CONFIGURABLE_LENGTH$8=DESCRIPTORS$3$8&&!fails$f$3(function(){return defineProperty$3$3(function(){},"length",{value:8}).length!==8}),TEMPLATE$8=String(String).split("String"),makeBuiltIn$1$8=makeBuiltIn$2$8.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$5$6(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$3&&v.name!==k)&&(DESCRIPTORS$3$8?defineProperty$3$3(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$8&&ie&&hasOwn$5$6(ie,"arity")&&v.length!==ie.arity&&defineProperty$3$3(v,"length",{value:ie.arity});try{ie&&hasOwn$5$6(ie,"constructor")&&ie.constructor?DESCRIPTORS$3$8&&defineProperty$3$3(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$a(v);return hasOwn$5$6(ae,"source")||(ae.source=TEMPLATE$8.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$8(function v(){return isCallable$e$4(this)&&getInternalState$2$3(this).source||inspectSource$2$8(this)},"toString");var isCallable$d$4=isCallable$m$2,definePropertyModule$3$4=objectDefineProperty$8,makeBuiltIn$a=makeBuiltIn$2$8.exports,defineGlobalProperty$1$8=defineGlobalProperty$3$6,defineBuiltIn$8$1=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$d$4(ie)&&makeBuiltIn$a(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$8(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$3$4.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$6={},internalObjectKeys$7=objectKeysInternal$6,enumBugKeys$9=enumBugKeys$3$3,hiddenKeys$a=enumBugKeys$9.concat("length","prototype");objectGetOwnPropertyNames$6.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$7(k,hiddenKeys$a)};var objectGetOwnPropertySymbols$6={};objectGetOwnPropertySymbols$6.f=Object.getOwnPropertySymbols;var getBuiltIn$5$4=getBuiltIn$9$1,uncurryThis$c$4=functionUncurryThis$8,getOwnPropertyNamesModule$6=objectGetOwnPropertyNames$6,getOwnPropertySymbolsModule$1$5=objectGetOwnPropertySymbols$6,anObject$a$3=anObject$e$2,concat$1$5=uncurryThis$c$4([].concat),ownKeys$1$6=getBuiltIn$5$4("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$6.f(anObject$a$3(k)),ae=getOwnPropertySymbolsModule$1$5.f;return ae?concat$1$5(ie,ae(k)):ie},hasOwn$4$8=hasOwnProperty_1$8,ownKeys2$6=ownKeys$1$6,getOwnPropertyDescriptorModule$7=objectGetOwnPropertyDescriptor$6,definePropertyModule$2$6=objectDefineProperty$8,copyConstructorProperties$1$6=function(v,k,ie){for(var ae=ownKeys2$6(k),ce=definePropertyModule$2$6.f,fe=getOwnPropertyDescriptorModule$7.f,le=0;le=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$3=Iterators$2$3.Arguments=Iterators$2$3.Array;addToUnscopables$1$3("keys");addToUnscopables$1$3("values");addToUnscopables$1$3("entries");if(DESCRIPTORS$2$8&&values$3.name!=="values")try{defineProperty$1$8(values$3,"name",{value:"values"})}catch(v){}var domIterables$2={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$9=documentCreateElement$2$3,classList$2=documentCreateElement$9("span").classList,DOMTokenListPrototype$1$2=classList$2&&classList$2.constructor&&classList$2.constructor.prototype,domTokenListPrototype$2=DOMTokenListPrototype$1$2===Object.prototype?void 0:DOMTokenListPrototype$1$2,global$d$4=global$n,DOMIterables$2=domIterables$2,DOMTokenListPrototype$3=domTokenListPrototype$2,ArrayIteratorMethods$2=es_array_iterator$2,createNonEnumerableProperty$1$8=createNonEnumerableProperty$5$3,wellKnownSymbol$b$3=wellKnownSymbol$h$2,ITERATOR$4$3=wellKnownSymbol$b$3("iterator"),TO_STRING_TAG$2$4=wellKnownSymbol$b$3("toStringTag"),ArrayValues$2=ArrayIteratorMethods$2.values,handlePrototype$2=function(v,k){if(v){if(v[ITERATOR$4$3]!==ArrayValues$2)try{createNonEnumerableProperty$1$8(v,ITERATOR$4$3,ArrayValues$2)}catch{v[ITERATOR$4$3]=ArrayValues$2}if(v[TO_STRING_TAG$2$4]||createNonEnumerableProperty$1$8(v,TO_STRING_TAG$2$4,k),DOMIterables$2[k]){for(var ie in ArrayIteratorMethods$2)if(v[ie]!==ArrayIteratorMethods$2[ie])try{createNonEnumerableProperty$1$8(v,ie,ArrayIteratorMethods$2[ie])}catch{v[ie]=ArrayIteratorMethods$2[ie]}}}};for(COLLECTION_NAME$2 in DOMIterables$2)handlePrototype$2(global$d$4[COLLECTION_NAME$2]&&global$d$4[COLLECTION_NAME$2].prototype,COLLECTION_NAME$2);var COLLECTION_NAME$2;handlePrototype$2(DOMTokenListPrototype$3,"DOMTokenList");var $$b$1=_export$6,$includes=arrayIncludes$6.includes,fails$b$3=fails$m$2,addToUnscopables$4=addToUnscopables$2$1,BROKEN_ON_SPARSE=fails$b$3(function(){return!Array(1).includes()});$$b$1({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function v(k){return $includes(this,k,arguments.length>1?arguments[1]:void 0)}});addToUnscopables$4("includes");var wellKnownSymbol$a$4=wellKnownSymbol$h$2,TO_STRING_TAG$1$7=wellKnownSymbol$a$4("toStringTag"),test$7={};test$7[TO_STRING_TAG$1$7]="z";var toStringTagSupport$7=String(test$7)==="[object z]",TO_STRING_TAG_SUPPORT$7=toStringTagSupport$7,isCallable$7$8=isCallable$m$2,classofRaw$9=classofRaw$1$7,wellKnownSymbol$9$4=wellKnownSymbol$h$2,TO_STRING_TAG$a=wellKnownSymbol$9$4("toStringTag"),$Object$c=Object,CORRECT_ARGUMENTS$7=classofRaw$9(function(){return arguments}())=="Arguments",tryGet$7=function(v,k){try{return v[k]}catch{}},classof$6$3=TO_STRING_TAG_SUPPORT$7?classofRaw$9:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$7(k=$Object$c(v),TO_STRING_TAG$a))=="string"?ie:CORRECT_ARGUMENTS$7?classofRaw$9(k):(ae=classofRaw$9(k))=="Object"&&isCallable$7$8(k.callee)?"Arguments":ae},classof$5$3=classof$6$3,$String$b=String,toString$6$1=function(v){if(classof$5$3(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$b(v)},anObject$8$4=anObject$e$2,regexpFlags$1$3=function(){var v=anObject$8$4(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},fails$a$5=fails$m$2,global$c$4=global$n,$RegExp$2$2=global$c$4.RegExp,UNSUPPORTED_Y$2$1=fails$a$5(function(){var v=$RegExp$2$2("a","y");return v.lastIndex=2,v.exec("abcd")!=null}),MISSED_STICKY$2=UNSUPPORTED_Y$2$1||fails$a$5(function(){return!$RegExp$2$2("a","y").sticky}),BROKEN_CARET$2=UNSUPPORTED_Y$2$1||fails$a$5(function(){var v=$RegExp$2$2("^r","gy");return v.lastIndex=2,v.exec("str")!=null}),regexpStickyHelpers$2={BROKEN_CARET:BROKEN_CARET$2,MISSED_STICKY:MISSED_STICKY$2,UNSUPPORTED_Y:UNSUPPORTED_Y$2$1},fails$9$6=fails$m$2,global$b$4=global$n,$RegExp$1$2=global$b$4.RegExp,regexpUnsupportedDotAll$2=fails$9$6(function(){var v=$RegExp$1$2(".","s");return!(v.dotAll&&v.exec(` +`)&&v.flags==="s")}),fails$8$6=fails$m$2,global$a$6=global$n,$RegExp$4=global$a$6.RegExp,regexpUnsupportedNcg$2=fails$8$6(function(){var v=$RegExp$4("(?b)","g");return v.exec("b").groups.a!=="b"||"b".replace(v,"$c")!=="bc"}),call$c$4=functionCall$8,uncurryThis$a$6=functionUncurryThis$8,toString$5$2=toString$6$1,regexpFlags$6=regexpFlags$1$3,stickyHelpers$1$1=regexpStickyHelpers$2,shared$b=shared$4$3.exports,create3=objectCreate$3,getInternalState$c=internalState$8.get,UNSUPPORTED_DOT_ALL$2=regexpUnsupportedDotAll$2,UNSUPPORTED_NCG$2=regexpUnsupportedNcg$2,nativeReplace$2=shared$b("native-string-replace",String.prototype.replace),nativeExec$2=RegExp.prototype.exec,patchedExec$2=nativeExec$2,charAt$3$1=uncurryThis$a$6("".charAt),indexOf$6=uncurryThis$a$6("".indexOf),replace$1$1=uncurryThis$a$6("".replace),stringSlice$2$3=uncurryThis$a$6("".slice),UPDATES_LAST_INDEX_WRONG$2=function(){var v=/a/,k=/b*/g;return call$c$4(nativeExec$2,v,"a"),call$c$4(nativeExec$2,k,"a"),v.lastIndex!==0||k.lastIndex!==0}(),UNSUPPORTED_Y$1$2=stickyHelpers$1$1.BROKEN_CARET,NPCG_INCLUDED$2=/()??/.exec("")[1]!==void 0,PATCH$2=UPDATES_LAST_INDEX_WRONG$2||NPCG_INCLUDED$2||UNSUPPORTED_Y$1$2||UNSUPPORTED_DOT_ALL$2||UNSUPPORTED_NCG$2;PATCH$2&&(patchedExec$2=function(k){var ie=this,ae=getInternalState$c(ie),ce=toString$5$2(k),fe=ae.raw,le,ve,pe,ye,me,Ee,cr;if(fe)return fe.lastIndex=ie.lastIndex,le=call$c$4(patchedExec$2,fe,ce),ie.lastIndex=fe.lastIndex,le;var Br=ae.groups,$r=UNSUPPORTED_Y$1$2&&ie.sticky,Pr=call$c$4(regexpFlags$6,ie),Ar=ie.source,ur=0,jr=ce;if($r&&(Pr=replace$1$1(Pr,"y",""),indexOf$6(Pr,"g")===-1&&(Pr+="g"),jr=stringSlice$2$3(ce,ie.lastIndex),ie.lastIndex>0&&(!ie.multiline||ie.multiline&&charAt$3$1(ce,ie.lastIndex-1)!==` +`)&&(Ar="(?: "+Ar+")",jr=" "+jr,ur++),ve=new RegExp("^(?:"+Ar+")",Pr)),NPCG_INCLUDED$2&&(ve=new RegExp("^"+Ar+"$(?!\\s)",Pr)),UPDATES_LAST_INDEX_WRONG$2&&(pe=ie.lastIndex),ye=call$c$4(nativeExec$2,$r?ve:ie,jr),$r?ye?(ye.input=stringSlice$2$3(ye.input,ur),ye[0]=stringSlice$2$3(ye[0],ur),ye.index=ie.lastIndex,ie.lastIndex+=ye[0].length):ie.lastIndex=0:UPDATES_LAST_INDEX_WRONG$2&&ye&&(ie.lastIndex=ie.global?ye.index+ye[0].length:pe),NPCG_INCLUDED$2&&ye&&ye.length>1&&call$c$4(nativeReplace$2,ye[0],ve,function(){for(me=1;me=fe?v?"":void 0:(le=charCodeAt$2(ae,ce),le<55296||le>56319||ce+1===fe||(ve=charCodeAt$2(ae,ce+1))<56320||ve>57343?v?charAt$2$2(ae,ce):le:v?stringSlice$1$3(ae,ce,ce+2):(le-55296<<10)+(ve-56320)+65536)}},stringMultibyte$2={codeAt:createMethod$1$3(!1),charAt:createMethod$1$3(!0)},charAt$1$2=stringMultibyte$2.charAt,advanceStringIndex$1$2=function(v,k,ie){return k+(ie?charAt$1$2(v,k).length:1)},toPropertyKey$c=toPropertyKey$3$2,definePropertyModule$1$8=objectDefineProperty$8,createPropertyDescriptor$d=createPropertyDescriptor$4$2,createProperty$1$2=function(v,k,ie){var ae=toPropertyKey$c(k);ae in v?definePropertyModule$1$8.f(v,ae,createPropertyDescriptor$d(0,ie)):v[ae]=ie},toAbsoluteIndex$a=toAbsoluteIndex$2$2,lengthOfArrayLike$1$6=lengthOfArrayLike$3$2,createProperty$3=createProperty$1$2,$Array$4=Array,max$7=Math.max,arraySliceSimple$2=function(v,k,ie){for(var ae=lengthOfArrayLike$1$6(v),ce=toAbsoluteIndex$a(k,ae),fe=toAbsoluteIndex$a(ie===void 0?ae:ie,ae),le=$Array$4(max$7(fe-ce,0)),ve=0;ce1||"".split(/.?/).length?ae=function(ce,fe){var le=toString$3$3(requireObjectCoercible$2$6(this)),ve=fe===void 0?MAX_UINT32$1:fe>>>0;if(ve===0)return[];if(ce===void 0)return[le];if(!isRegExp$1(ce))return call$9$4(k,le,ce,ve);for(var pe=[],ye=(ce.ignoreCase?"i":"")+(ce.multiline?"m":"")+(ce.unicode?"u":"")+(ce.sticky?"y":""),me=0,Ee=new RegExp(ce.source,ye+"g"),cr,Br,$r;(cr=call$9$4(regexpExec$5,Ee,le))&&(Br=Ee.lastIndex,!(Br>me&&(push$7(pe,stringSlice$8(le,me,cr.index)),cr.length>1&&cr.index=ve)));)Ee.lastIndex===cr.index&&Ee.lastIndex++;return me===le.length?($r||!exec$5(Ee,""))&&push$7(pe,""):push$7(pe,stringSlice$8(le,me)),pe.length>ve?arraySlice$2$2(pe,0,ve):pe}:"0".split(void 0,0).length?ae=function(ce,fe){return ce===void 0&&fe===0?[]:call$9$4(k,this,ce,fe)}:ae=k,[function(fe,le){var ve=requireObjectCoercible$2$6(this),pe=fe==null?void 0:getMethod$2$4(fe,v);return pe?call$9$4(pe,fe,ve,le):call$9$4(ae,toString$3$3(ve),fe,le)},function(ce,fe){var le=anObject$5$4(this),ve=toString$3$3(ce),pe=ie(ae,le,ve,fe,ae!==k);if(pe.done)return pe.value;var ye=speciesConstructor$2$2(le,RegExp),me=le.unicode,Ee=(le.ignoreCase?"i":"")+(le.multiline?"m":"")+(le.unicode?"u":"")+(UNSUPPORTED_Y$4?"g":"y"),cr=new ye(UNSUPPORTED_Y$4?"^(?:"+le.source+")":le,Ee),Br=fe===void 0?MAX_UINT32$1:fe>>>0;if(Br===0)return[];if(ve.length===0)return callRegExpExec$1(cr,ve)===null?[ve]:[];for(var $r=0,Pr=0,Ar=[];Pr1?arguments[1]:void 0)}});var whitespaces$2=` +\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,uncurryThis$4$8=functionUncurryThis$8,requireObjectCoercible$a=requireObjectCoercible$6$1,toString$1$8=toString$6$1,whitespaces$1=whitespaces$2,replace$3=uncurryThis$4$8("".replace),whitespace="["+whitespaces$1+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod$7=function(v){return function(k){var ie=toString$1$8(requireObjectCoercible$a(k));return v&1&&(ie=replace$3(ie,ltrim,"")),v&2&&(ie=replace$3(ie,rtrim,"")),ie}},stringTrim={start:createMethod$7(1),end:createMethod$7(2),trim:createMethod$7(3)},global$9$8=global$n,fails$3$8=fails$m$2,uncurryThis$3$8=functionUncurryThis$8,toString4=toString$6$1,trim=stringTrim.trim,whitespaces=whitespaces$2,charAt$5=uncurryThis$3$8("".charAt),n$ParseFloat=global$9$8.parseFloat,Symbol$1$8=global$9$8.Symbol,ITERATOR$3$3=Symbol$1$8&&Symbol$1$8.iterator,FORCED$2=1/n$ParseFloat(whitespaces+"-0")!==-1/0||ITERATOR$3$3&&!fails$3$8(function(){n$ParseFloat(Object(ITERATOR$3$3))}),numberParseFloat=FORCED$2?function v(k){var ie=trim(toString4(k)),ae=n$ParseFloat(ie);return ae===0&&charAt$5(ie,0)=="-"?-0:ae}:n$ParseFloat,$$8$2=_export$6,$parseFloat=numberParseFloat;$$8$2({globalThis:!0,forced:parseFloat!=$parseFloat},{parseFloat:$parseFloat});var classof$1$7=classofRaw$1$7,global$8$8=global$n,engineIsNode$2=classof$1$7(global$8$8.process)=="process",getBuiltIn$3$6=getBuiltIn$9$1,definePropertyModule$e=objectDefineProperty$8,wellKnownSymbol$4$4=wellKnownSymbol$h$2,DESCRIPTORS$1$8=descriptors$8,SPECIES$1$4=wellKnownSymbol$4$4("species"),setSpecies$1$4=function(v){var k=getBuiltIn$3$6(v),ie=definePropertyModule$e.f;DESCRIPTORS$1$8&&k&&!k[SPECIES$1$4]&&ie(k,SPECIES$1$4,{configurable:!0,get:function(){return this}})},isPrototypeOf$1$7=objectIsPrototypeOf$8,$TypeError$3$8=TypeError,anInstance$1$4=function(v,k){if(isPrototypeOf$1$7(k,v))return v;throw $TypeError$3$8("Incorrect invocation")},uncurryThis$2$8=functionUncurryThis$8,aCallable$5$2=aCallable$7$2,NATIVE_BIND$b=functionBindNative$8,bind$4$2=uncurryThis$2$8(uncurryThis$2$8.bind),functionBindContext$4=function(v,k){return aCallable$5$2(v),k===void 0?v:NATIVE_BIND$b?bind$4$2(v,k):function(){return v.apply(k,arguments)}},uncurryThis$1$8=functionUncurryThis$8,arraySlice$1$4=uncurryThis$1$8([].slice),$TypeError$2$8=TypeError,validateArgumentsLength$1$2=function(v,k){if(v=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$4$1(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$6]=ae,SUBCLASSING$2=ie.then(function(){})instanceof ae,SUBCLASSING$2?!k&&IS_BROWSER$2&&!NATIVE_PROMISE_REJECTION_EVENT$1$2:!0}),promiseConstructorDetection$2={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$2,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$2,SUBCLASSING:SUBCLASSING$2},newPromiseCapability$2$2={},aCallable$4$4=aCallable$7$2,PromiseCapability$2=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$4(k),this.reject=aCallable$4$4(ie)};newPromiseCapability$2$2.f=function(v){return new PromiseCapability$2(v)};var $$7$2=_export$6,IS_NODE$4=engineIsNode$2,global$1$8=global$n,call$7$4=functionCall$8,defineBuiltIn$2$5=defineBuiltIn$8$1,setPrototypeOf$8=objectSetPrototypeOf$4,setToStringTag$7=setToStringTag$3$3,setSpecies$5=setSpecies$1$4,aCallable$3$4=aCallable$7$2,isCallable$2$8=isCallable$m$2,isObject$1$8=isObject$8$2,anInstance$6=anInstance$1$4,speciesConstructor$1$4=speciesConstructor$3$1,task$3=task$1$2.set,microtask$3=microtask$1$2,hostReportErrors$3=hostReportErrors$1$2,perform$2$2=perform$3$2,Queue$3=queue$3,InternalStateModule$c=internalState$8,NativePromiseConstructor$3$2=promiseNativeConstructor$2,PromiseConstructorDetection$2=promiseConstructorDetection$2,newPromiseCapabilityModule$3$2=newPromiseCapability$2$2,PROMISE$2="Promise",FORCED_PROMISE_CONSTRUCTOR$4$2=PromiseConstructorDetection$2.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$3=PromiseConstructorDetection$2.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$2=PromiseConstructorDetection$2.SUBCLASSING,getInternalPromiseState$2=InternalStateModule$c.getterFor(PROMISE$2),setInternalState$6=InternalStateModule$c.set,NativePromisePrototype$2$1=NativePromiseConstructor$3$2&&NativePromiseConstructor$3$2.prototype,PromiseConstructor$2=NativePromiseConstructor$3$2,PromisePrototype$2=NativePromisePrototype$2$1,TypeError$1$8=global$1$8.TypeError,document$1$4=global$1$8.document,process2=global$1$8.process,newPromiseCapability$1$2=newPromiseCapabilityModule$3$2.f,newGenericPromiseCapability$2=newPromiseCapability$1$2,DISPATCH_EVENT$2=!!(document$1$4&&document$1$4.createEvent&&global$1$8.dispatchEvent),UNHANDLED_REJECTION$2="unhandledrejection",REJECTION_HANDLED$2="rejectionhandled",PENDING$2=0,FULFILLED$2=1,REJECTED$2=2,HANDLED$2=1,UNHANDLED$2=2,Internal$2,OwnPromiseCapability$2,PromiseWrapper$2,nativeThen$2,isThenable$2=function(v){var k;return isObject$1$8(v)&&isCallable$2$8(k=v.then)?k:!1},callReaction$2=function(v,k){var ie=k.value,ae=k.state==FULFILLED$2,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$2&&onHandleUnhandled$2(k),k.rejection=HANDLED$2),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$8("Promise-chain cycle")):(ye=isThenable$2(pe))?call$7$4(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$3=function(v,k){v.notified||(v.notified=!0,microtask$3(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$2(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$2(v)}))},dispatchEvent$2=function(v,k,ie){var ae,ce;DISPATCH_EVENT$2?(ae=document$1$4.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$1$8.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$3&&(ce=global$1$8["on"+v])?ce(ae):v===UNHANDLED_REJECTION$2&&hostReportErrors$3("Unhandled promise rejection",ie)},onUnhandled$2=function(v){call$7$4(task$3,global$1$8,function(){var k=v.facade,ie=v.value,ae=isUnhandled$2(v),ce;if(ae&&(ce=perform$2$2(function(){IS_NODE$4?process2.emit("unhandledRejection",ie,k):dispatchEvent$2(UNHANDLED_REJECTION$2,k,ie)}),v.rejection=IS_NODE$4||isUnhandled$2(v)?UNHANDLED$2:HANDLED$2,ce.error))throw ce.value})},isUnhandled$2=function(v){return v.rejection!==HANDLED$2&&!v.parent},onHandleUnhandled$2=function(v){call$7$4(task$3,global$1$8,function(){var k=v.facade;IS_NODE$4?process2.emit("rejectionHandled",k):dispatchEvent$2(REJECTION_HANDLED$2,k,v.value)})},bind$1$4=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$2=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$2,notify$3(v,!0))},internalResolve$2=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$8("Promise can't be resolved itself");var ae=isThenable$2(k);ae?microtask$3(function(){var ce={done:!1};try{call$7$4(ae,k,bind$1$4(internalResolve$2,ce,v),bind$1$4(internalReject$2,ce,v))}catch(fe){internalReject$2(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$2,notify$3(v,!1))}catch(ce){internalReject$2({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$2&&(PromiseConstructor$2=function(k){anInstance$6(this,PromisePrototype$2),aCallable$3$4(k),call$7$4(Internal$2,this);var ie=getInternalPromiseState$2(this);try{k(bind$1$4(internalResolve$2,ie),bind$1$4(internalReject$2,ie))}catch(ae){internalReject$2(ie,ae)}},PromisePrototype$2=PromiseConstructor$2.prototype,Internal$2=function(k){setInternalState$6(this,{type:PROMISE$2,done:!1,notified:!1,parent:!1,reactions:new Queue$3,rejection:!1,state:PENDING$2,value:void 0})},Internal$2.prototype=defineBuiltIn$2$5(PromisePrototype$2,"then",function(k,ie){var ae=getInternalPromiseState$2(this),ce=newPromiseCapability$1$2(speciesConstructor$1$4(this,PromiseConstructor$2));return ae.parent=!0,ce.ok=isCallable$2$8(k)?k:!0,ce.fail=isCallable$2$8(ie)&&ie,ce.domain=IS_NODE$4?process2.domain:void 0,ae.state==PENDING$2?ae.reactions.add(ce):microtask$3(function(){callReaction$2(ce,ae)}),ce.promise}),OwnPromiseCapability$2=function(){var v=new Internal$2,k=getInternalPromiseState$2(v);this.promise=v,this.resolve=bind$1$4(internalResolve$2,k),this.reject=bind$1$4(internalReject$2,k)},newPromiseCapabilityModule$3$2.f=newPromiseCapability$1$2=function(v){return v===PromiseConstructor$2||v===PromiseWrapper$2?new OwnPromiseCapability$2(v):newGenericPromiseCapability$2(v)},isCallable$2$8(NativePromiseConstructor$3$2)&&NativePromisePrototype$2$1!==Object.prototype)){nativeThen$2=NativePromisePrototype$2$1.then,NATIVE_PROMISE_SUBCLASSING$2||defineBuiltIn$2$5(NativePromisePrototype$2$1,"then",function(k,ie){var ae=this;return new PromiseConstructor$2(function(ce,fe){call$7$4(nativeThen$2,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$2$1.constructor}catch{}setPrototypeOf$8&&setPrototypeOf$8(NativePromisePrototype$2$1,PromisePrototype$2)}$$7$2({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$2},{Promise:PromiseConstructor$2});setToStringTag$7(PromiseConstructor$2,PROMISE$2,!1);setSpecies$5(PROMISE$2);var wellKnownSymbol$2$7=wellKnownSymbol$h$2,Iterators$1$4=iterators$4,ITERATOR$2$4=wellKnownSymbol$2$7("iterator"),ArrayPrototype$5=Array.prototype,isArrayIteratorMethod$1$4=function(v){return v!==void 0&&(Iterators$1$4.Array===v||ArrayPrototype$5[ITERATOR$2$4]===v)},classof$g=classof$6$3,getMethod$1$8=getMethod$4$2,Iterators$8=iterators$4,wellKnownSymbol$1$8=wellKnownSymbol$h$2,ITERATOR$1$4=wellKnownSymbol$1$8("iterator"),getIteratorMethod$2$4=function(v){if(v!=null)return getMethod$1$8(v,ITERATOR$1$4)||getMethod$1$8(v,"@@iterator")||Iterators$8[classof$g(v)]},call$6$5=functionCall$8,aCallable$2$4=aCallable$7$2,anObject$3$7=anObject$e$2,tryToString$1$8=tryToString$4$4,getIteratorMethod$1$4=getIteratorMethod$2$4,$TypeError$1$8=TypeError,getIterator$1$4=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$4(v):k;if(aCallable$2$4(ie))return anObject$3$7(call$6$5(ie,v));throw $TypeError$1$8(tryToString$1$8(v)+" is not iterable")},call$5$6=functionCall$8,anObject$2$8=anObject$e$2,getMethod$b=getMethod$4$2,iteratorClose$1$2=function(v,k,ie){var ae,ce;anObject$2$8(v);try{if(ae=getMethod$b(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$5$6(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$2$8(ae),ie},bind$d=functionBindContext$4,call$4$8=functionCall$8,anObject$1$8=anObject$e$2,tryToString$c=tryToString$4$4,isArrayIteratorMethod$5=isArrayIteratorMethod$1$4,lengthOfArrayLike$c=lengthOfArrayLike$3$2,isPrototypeOf$c=objectIsPrototypeOf$8,getIterator$5=getIterator$1$4,getIteratorMethod$6=getIteratorMethod$2$4,iteratorClose$3=iteratorClose$1$2,$TypeError$j=TypeError,Result$2=function(v,k){this.stopped=v,this.result=k},ResultPrototype$2=Result$2.prototype,iterate$2$2=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$d(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$3(pe,"normal",ur),new Result$2(!0,ur)},Ar=function(ur){return ce?(anObject$1$8(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$6(v),!ye)throw $TypeError$j(tryToString$c(v)+" is not iterable");if(isArrayIteratorMethod$5(ye)){for(me=0,Ee=lengthOfArrayLike$c(v);Ee>me;me++)if(cr=Ar(v[me]),cr&&isPrototypeOf$c(ResultPrototype$2,cr))return cr;return new Result$2(!1)}pe=getIterator$5(v,ye)}for(Br=pe.next;!($r=call$4$8(Br,pe)).done;){try{cr=Ar($r.value)}catch(ur){iteratorClose$3(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$c(ResultPrototype$2,cr))return cr}return new Result$2(!1)},wellKnownSymbol$m=wellKnownSymbol$h$2,ITERATOR$8=wellKnownSymbol$m("iterator"),SAFE_CLOSING$4=!1;try{called$4=0,iteratorWithReturn$4={next:function(){return{done:!!called$4++}},return:function(){SAFE_CLOSING$4=!0}},iteratorWithReturn$4[ITERATOR$8]=function(){return this},Array.from(iteratorWithReturn$4,function(){throw 2})}catch(v){}var called$4,iteratorWithReturn$4,checkCorrectnessOfIteration$1$4=function(v,k){if(!k&&!SAFE_CLOSING$4)return!1;var ie=!1;try{var ae={};ae[ITERATOR$8]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$2$2=promiseNativeConstructor$2,checkCorrectnessOfIteration$5=checkCorrectnessOfIteration$1$4,FORCED_PROMISE_CONSTRUCTOR$3$2=promiseConstructorDetection$2.CONSTRUCTOR,promiseStaticsIncorrectIteration$2=FORCED_PROMISE_CONSTRUCTOR$3$2||!checkCorrectnessOfIteration$5(function(v){NativePromiseConstructor$2$2.all(v).then(void 0,function(){})}),$$6$2=_export$6,call$3$8=functionCall$8,aCallable$1$8=aCallable$7$2,newPromiseCapabilityModule$2$2=newPromiseCapability$2$2,perform$1$2=perform$3$2,iterate$1$2=iterate$2$2,PROMISE_STATICS_INCORRECT_ITERATION$1$2=promiseStaticsIncorrectIteration$2;$$6$2({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$2},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$2.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$2(function(){var ve=aCallable$1$8(ie.resolve),pe=[],ye=0,me=1;iterate$1$2(k,function(Ee){var cr=ye++,Br=!1;me++,call$3$8(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$5$2=_export$6,FORCED_PROMISE_CONSTRUCTOR$2$2=promiseConstructorDetection$2.CONSTRUCTOR,NativePromiseConstructor$1$2=promiseNativeConstructor$2,getBuiltIn$2$8=getBuiltIn$9$1,isCallable$1$8=isCallable$m$2,defineBuiltIn$1$8=defineBuiltIn$8$1,NativePromisePrototype$1$2=NativePromiseConstructor$1$2&&NativePromiseConstructor$1$2.prototype;$$5$2({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$2,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$1$8(NativePromiseConstructor$1$2)&&(method$1$1=getBuiltIn$2$8("Promise").prototype.catch,NativePromisePrototype$1$2.catch!==method$1$1&&defineBuiltIn$1$8(NativePromisePrototype$1$2,"catch",method$1$1,{unsafe:!0}));var method$1$1,$$4$3=_export$6,call$2$8=functionCall$8,aCallable$f=aCallable$7$2,newPromiseCapabilityModule$1$2=newPromiseCapability$2$2,perform$5=perform$3$2,iterate$4=iterate$2$2,PROMISE_STATICS_INCORRECT_ITERATION$3=promiseStaticsIncorrectIteration$2;$$4$3({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$3},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$2.f(ie),ce=ae.reject,fe=perform$5(function(){var le=aCallable$f(ie.resolve);iterate$4(k,function(ve){call$2$8(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$3$4=_export$6,call$1$8=functionCall$8,newPromiseCapabilityModule$5=newPromiseCapability$2$2,FORCED_PROMISE_CONSTRUCTOR$1$2=promiseConstructorDetection$2.CONSTRUCTOR;$$3$4({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$2},{reject:function v(k){var ie=newPromiseCapabilityModule$5.f(this);return call$1$8(ie.reject,void 0,k),ie.promise}});var anObject$i=anObject$e$2,isObject$i=isObject$8$2,newPromiseCapability$4=newPromiseCapability$2$2,promiseResolve$2$1=function(v,k){if(anObject$i(v),isObject$i(k)&&k.constructor===v)return k;var ie=newPromiseCapability$4.f(v),ae=ie.resolve;return ae(k),ie.promise},$$2$4=_export$6,getBuiltIn$1$8=getBuiltIn$9$1,FORCED_PROMISE_CONSTRUCTOR$7=promiseConstructorDetection$2.CONSTRUCTOR,promiseResolve$1$2=promiseResolve$2$1;getBuiltIn$1$8("Promise");$$2$4({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$7},{resolve:function v(k){return promiseResolve$1$2(this,k)}});var DESCRIPTORS$l=descriptors$8,uncurryThis$s=functionUncurryThis$8,call$m=functionCall$8,fails$1$8=fails$m$2,objectKeys$7=objectKeys$2$3,getOwnPropertySymbolsModule$7=objectGetOwnPropertySymbols$6,propertyIsEnumerableModule$7=objectPropertyIsEnumerable$6,toObject$e=toObject$3$3,IndexedObject$8=indexedObject$6,$assign$5=Object.assign,defineProperty3$7=Object.defineProperty,concat2=uncurryThis$s([].concat),objectAssign$5=!$assign$5||fails$1$8(function(){if(DESCRIPTORS$l&&$assign$5({b:1},$assign$5(defineProperty3$7({},"a",{enumerable:!0,get:function(){defineProperty3$7(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},k={},ie=Symbol(),ae="abcdefghijklmnopqrst";return v[ie]=7,ae.split("").forEach(function(ce){k[ce]=ce}),$assign$5({},v)[ie]!=7||objectKeys$7($assign$5({},k)).join("")!=ae})?function v(k,ie){for(var ae=toObject$e(k),ce=arguments.length,fe=1,le=getOwnPropertySymbolsModule$7.f,ve=propertyIsEnumerableModule$7.f;ce>fe;)for(var pe=IndexedObject$8(arguments[fe++]),ye=le?concat2(objectKeys$7(pe),le(pe)):objectKeys$7(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$l||call$m(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$5,$$1$4=_export$6,assign2$5=objectAssign$5;$$1$4({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$5},{assign:assign2$5});function __awaiter$a(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var $4=_export$6,NativePromiseConstructor$5=promiseNativeConstructor$2,fails$u=fails$m$2,getBuiltIn$g=getBuiltIn$9$1,isCallable$q=isCallable$m$2,speciesConstructor$5=speciesConstructor$3$1,promiseResolve$3=promiseResolve$2$1,defineBuiltIn$e=defineBuiltIn$8$1,NativePromisePrototype$3=NativePromiseConstructor$5&&NativePromiseConstructor$5.prototype,NON_GENERIC=!!NativePromiseConstructor$5&&fails$u(function(){NativePromisePrototype$3.finally.call({then:function(){}},function(){})});$4({target:"Promise",proto:!0,real:!0,forced:NON_GENERIC},{finally:function(v){var k=speciesConstructor$5(this,getBuiltIn$g("Promise")),ie=isCallable$q(v);return this.then(ie?function(ae){return promiseResolve$3(k,v()).then(function(){return ae})}:v,ie?function(ae){return promiseResolve$3(k,v()).then(function(){throw ae})}:v)}});isCallable$q(NativePromiseConstructor$5)&&(method$2=getBuiltIn$g("Promise").prototype.finally,NativePromisePrototype$3.finally!==method$2&&defineBuiltIn$e(NativePromisePrototype$3,"finally",method$2,{unsafe:!0}));var method$2,OPTO_WALLET="9504a1c1a86cc0702b2d3e47049e1389b373fb2ff22de3208c748d62912433a4",WalletConnectClient=class{init(v){return __awaiter$a(this,void 0,void 0,function*(){this.client=yield U3.init(v)})}constructor(v){this.emitter=v}get session(){return this.client.session}on(v,k){return this.client.on(v,k),{remove:()=>this.client.removeListener(v,k)}}once(v,k){this.client.once(v,k)}connect(v,k,ie,ae){return __awaiter$a(this,void 0,void 0,function*(){const ce=new d3({projectId:ie,chains:[ae],explorerExcludedWalletIds:"ALL",explorerRecommendedWalletIds:[OPTO_WALLET]});return new Promise((fe,le)=>{this.client.connect(v).then(({uri:ve,approval:pe})=>{ve&&(k?(ce.openModal({uri:ve,standaloneChains:[ae]}),ce.subscribeModal(({open:ye})=>{ye||le(new Error("User cancelled pairing"))})):this.emitter.emit("uriChanged",{uri:ve})),pe().then(fe).catch(le).finally(()=>ce.closeModal())}).catch(le)})})}request(v){return __awaiter$a(this,void 0,void 0,function*(){return this.client.request(v)})}disconnect(v){return __awaiter$a(this,void 0,void 0,function*(){return this.client.disconnect(v)})}},icon$9="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAir0lEQVR42u3deZxcVZn/8c9zbnV3dhIim6CMCIyK4rigM6S6AUEZcRu3EQGRJV0NmA3CYiASCGtkT0Do6gRB1AEFdRBRfrKYdAUU1JERl0FUUBCCQEL2dNc9398f1RGMZOmku+pW1/N+vfrVL0hX3adu3ee555577jngnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc85tO6t1AG7gTCimAcgBORO5JrNR5cDOpHqVjFcB4xGjgGZBi0ELgGCdwTqgB2Ml8LyJ5yyx55oiz6yTVsooQ+VncSGJtf6sbmB4Aahj+WI6CjHGAqMlxkvaG9gd2BV4tcFYwXAqib7+JwcEIOn7DRCBtO93mUoxWEelMKwRLAP+YvCU4Akze9SM5yVWAMtLhWRlrfeF2zpeAOrA269JGddESMXIXmMPxN6gPYE3AHtQSfoxQBOVBE/6fgZS2vdTBnqB5cATwB+A34I9hvFos+wPiWnVC2Xiz08a6BDcQPMCkFEHdaW2LmXc6BbGL1ujtyYJBxjsA7wa2AUYQeUMbtTue1TfTwRWA08L/gL8Ko0sHD/cHl7ew/PNxtJ72xPVep+6f+QFIGPaiuXtIrwV8c4oDuiJvL0lYTsqCV8vp9QUWL2uzIvNOX4eYCHGTxOzhxe2Jy/WOjj3Ei8ANZZfICONY016XYSPGPyr4E3ATlSa8/X+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c84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOeecc84555xzzjnnnHPOOecy5f8DP47LVlAysbUAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDYtMjNUMTQ6MzU6MDkrMDA6MDD1AeMiAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA2LTIzVDE0OjM1OjA5KzAwOjAwhFxbngAAAABJRU5ErkJggg==",WC_METHODS=["near_signIn","near_signOut","near_getAccounts","near_signTransaction","near_signTransactions","near_verifyOwner"],WC_EVENTS=["chainChanged","accountsChanged"],setupWalletConnectState=(v,k,ie)=>__awaiter$a(void 0,void 0,void 0,function*(){const ae=new WalletConnectClient(ie);let ce=null;const fe=new nearAPI$3.keyStores.BrowserLocalStorageKeyStore(window.localStorage,`near-wallet-selector:${v}:keystore:`);if(yield ae.init({projectId:k.projectId,metadata:k.metadata,relayUrl:k.relayUrl}),ae.session.length){const le=ae.session.keys.length-1;ce=ae.session.get(ae.session.keys[le])}return{client:ae,session:ce,keystore:fe,subscriptions:[]}}),WalletConnect=({id:v,options:k,store:ie,params:ae,provider:ce,emitter:fe,logger:le})=>__awaiter$a(void 0,void 0,void 0,function*(){const ve=yield setupWalletConnectState(v,ae,fe),pe=()=>{if(ae.chainId)return ae.chainId;const{networkId:Gr}=k.network;if(["mainnet","testnet"].includes(Gr))return`near:${Gr}`;throw new Error("Invalid chain id")},ye=()=>__awaiter$a(void 0,void 0,void 0,function*(){var Gr;const Ur=((Gr=ve.session)===null||Gr===void 0?void 0:Gr.namespaces.near.accounts)||[],Qr=[];for(let hn=0;hn__awaiter$a(void 0,void 0,void 0,function*(){ve.subscriptions.forEach(Gr=>Gr.remove()),ve.subscriptions=[],ve.session=null}),Ee=(Gr,Ur)=>{if(Ur.permission==="FullAccess")return Ur;const{receiver_id:Qr,method_names:hn}=Ur.permission.FunctionCall;return Gr.receiverId!==Qr?null:Gr.actions.every(Yt=>{if(Yt.type!=="FunctionCall")return!1;const{methodName:fn,deposit:Qt}=Yt.params;return hn.length&&hn.includes(fn)?!1:parseFloat(Qt)<=0})},cr=Gr=>__awaiter$a(void 0,void 0,void 0,function*(){const Ur=new nearAPI$3.InMemorySigner(ve.keystore),Qr=[],hn=yield ce.block({finality:"final"});for(let Yt=0;YtcreateAction(kr)),nearAPI$3.utils.serialize.base_decode(hn.header.hash)),[,be]=yield nearAPI$3.transactions.signTransaction(Kr,Ur,Gr[Yt].signerId,k.network.networkId);Qr.push(be)}return Qr}),Br=()=>__awaiter$a(void 0,void 0,void 0,function*(){return ve.client.request({topic:ve.session.topic,chainId:pe(),request:{method:"near_getAccounts",params:{}}})}),$r=(Gr,Ur)=>__awaiter$a(void 0,void 0,void 0,function*(){return ve.client.request({topic:ve.session.topic,chainId:pe(),request:{method:"near_verifyOwner",params:{accountId:Gr,message:Ur}}})}),Pr=Gr=>__awaiter$a(void 0,void 0,void 0,function*(){const Qr=(yield Br()).find(Xt=>Xt.accountId===Gr.signerId);if(!Qr)throw new Error("Invalid signer id");const[hn,Yt]=yield Promise.all([ce.block({finality:"final"}),ce.query({request_type:"view_access_key",finality:"final",account_id:Gr.signerId,public_key:Qr.publicKey})]),fn=nearAPI$3.transactions.createTransaction(Gr.signerId,nearAPI$3.utils.PublicKey.from(Qr.publicKey),Gr.receiverId,Yt.nonce+1,Gr.actions.map(Xt=>createAction(Xt)),nearAPI$3.utils.serialize.base_decode(hn.header.hash)),Qt=yield ve.client.request({topic:ve.session.topic,chainId:pe(),request:{method:"near_signTransaction",params:{transaction:fn.encode()}}});return nearAPI$3.transactions.SignedTransaction.decode(Buffer.from(Qt))}),Ar=Gr=>__awaiter$a(void 0,void 0,void 0,function*(){if(!Gr.length)return[];const Ur=[],[Qr,hn]=yield Promise.all([ce.block({finality:"final"}),Br()]);for(let fn=0;fnbe.accountId===Qt.signerId);if(!Xt)throw new Error("Invalid signer id");const Kr=yield ce.query({request_type:"view_access_key",finality:"final",account_id:Qt.signerId,public_key:Xt.publicKey});Ur.push(nearAPI$3.transactions.createTransaction(Qt.signerId,nearAPI$3.utils.PublicKey.from(Xt.publicKey),Qt.receiverId,Kr.nonce+fn+1,Qt.actions.map(be=>createAction(be)),nearAPI$3.utils.serialize.base_decode(Qr.header.hash)))}return(yield ve.client.request({topic:ve.session.topic,chainId:pe(),request:{method:"near_signTransactions",params:{transactions:Ur.map(fn=>fn.encode())}}})).map(fn=>nearAPI$3.transactions.SignedTransaction.decode(Buffer.from(fn)))}),ur=()=>__awaiter$a(void 0,void 0,void 0,function*(){return(yield ye()).map(({accountId:Ur})=>({accountId:Ur,keyPair:nearAPI$3.utils.KeyPair.fromRandom("ed25519")}))}),jr=Gr=>__awaiter$a(void 0,void 0,void 0,function*(){const Ur=yield ur(),Qr=Ur.map(({accountId:hn,keyPair:Yt})=>({accountId:hn,publicKey:Yt.getPublicKey().toString()}));yield ve.client.request({topic:ve.session.topic,chainId:pe(),request:{method:"near_signIn",params:{permission:Gr,accounts:Qr}}});for(let hn=0;hn__awaiter$a(void 0,void 0,void 0,function*(){const Gr=yield ye(),Ur=[];for(let Qr=0;Qr__awaiter$a(void 0,void 0,void 0,function*(){ve.session&&(yield Mr(),yield ve.client.disconnect({topic:ve.session.topic,reason:{code:5900,message:"User disconnected"}})),yield me()}),Vr=()=>__awaiter$a(void 0,void 0,void 0,function*(){ve.subscriptions.push(ve.client.on("session_update",Gr=>__awaiter$a(void 0,void 0,void 0,function*(){var Ur;le.log("Session Update",Gr),Gr.topic===((Ur=ve.session)===null||Ur===void 0?void 0:Ur.topic)&&(ve.session=Object.assign(Object.assign({},ve.client.session.get(Gr.topic)),{namespaces:Gr.params.namespaces}),fe.emit("accountsChanged",{accounts:yield ye()}))}))),ve.subscriptions.push(ve.client.on("session_delete",Gr=>__awaiter$a(void 0,void 0,void 0,function*(){var Ur;le.log("Session Deleted",Gr),Gr.topic===((Ur=ve.session)===null||Ur===void 0?void 0:Ur.topic)&&(yield me(),fe.emit("signedOut",null))})))});return ve.session&&(yield Vr()),{signIn({contractId:Gr,methodNames:Ur=[],qrCodeModal:Qr=!0}){return __awaiter$a(this,void 0,void 0,function*(){const hn=yield ye();if(hn.length)return hn;try{const Yt=pe();return ve.session=yield ve.client.connect({requiredNamespaces:{near:{chains:[pe()],methods:WC_METHODS,events:WC_EVENTS}}},Qr,ae.projectId,Yt),yield jr({receiverId:Gr,methodNames:Ur}),yield Vr(),ye()}catch(Yt){throw yield Lr(),Yt}})},signOut:Lr,getAccounts(){return __awaiter$a(this,void 0,void 0,function*(){return ye()})},verifyOwner({message:Gr}){return __awaiter$a(this,void 0,void 0,function*(){le.log("WalletConnect:verifyOwner",{message:Gr});const{contract:Ur}=ie.getState();if(!ve.session||!Ur)throw new Error("Wallet not signed in");const Qr=getActiveAccount(ie.getState());if(!Qr)throw new Error("No active account");return $r(Qr.accountId,Gr)})},signAndSendTransaction({signerId:Gr,receiverId:Ur,actions:Qr}){return __awaiter$a(this,void 0,void 0,function*(){le.log("signAndSendTransaction",{signerId:Gr,receiverId:Ur,actions:Qr});const{contract:hn}=ie.getState();if(!ve.session||!hn)throw new Error("Wallet not signed in");const Yt=getActiveAccount(ie.getState());if(!Yt)throw new Error("No active account");const fn={signerId:Gr||Yt.accountId,receiverId:Ur||hn.contractId,actions:Qr};try{const[Qt]=yield cr([fn]);return ce.sendTransaction(Qt)}catch(Qt){le.log("Falling back to WalletConnect to sign transaction",Qt);const Xt=yield Pr(fn);return ce.sendTransaction(Xt)}})},signAndSendTransactions({transactions:Gr}){return __awaiter$a(this,void 0,void 0,function*(){le.log("signAndSendTransactions",{transactions:Gr});const{contract:Ur}=ie.getState();if(!ve.session||!Ur)throw new Error("Wallet not signed in");const Qr=getActiveAccount(ie.getState());if(!Qr)throw new Error("No active account");const hn=Gr.map(Yt=>({signerId:Yt.signerId||Qr.accountId,receiverId:Yt.receiverId,actions:Yt.actions}));try{const Yt=yield cr(hn),fn=[];for(let Qt=0;Qt__awaiter$a(this,void 0,void 0,function*(){return{id:"wallet-connect",type:"bridge",metadata:{name:"WalletConnect",description:"Bridge wallet for NEAR.",iconUrl:ce,deprecated:fe,available:!0},init:le=>WalletConnect(Object.assign(Object.assign({},le),{params:{projectId:v,metadata:k,relayUrl:ae,chainId:ie}}))}})}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -334,21 +334,21 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var import_is_mobile$6=__toESM(require_is_mobile(),1),commonjsGlobal$8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$7$7=function(v){try{return!!v()}catch{return!0}},fails$6$7=fails$7$7,descriptors$7=!fails$6$7(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$5$7=fails$7$7,functionBindNative$7=!fails$5$7(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$1$7=functionBindNative$7,FunctionPrototype$1$7=Function.prototype,bind$c=FunctionPrototype$1$7.bind,call$4$7=FunctionPrototype$1$7.call,uncurryThis$6$7=NATIVE_BIND$1$7&&bind$c.bind(call$4$7,call$4$7),functionUncurryThis$7=NATIVE_BIND$1$7?function(v){return v&&uncurryThis$6$7(v)}:function(v){return v&&function(){return call$4$7.apply(v,arguments)}},$TypeError$5$7=TypeError,requireObjectCoercible$1$7=function(v){if(v==null)throw $TypeError$5$7("Can't call method on "+v);return v},requireObjectCoercible$9=requireObjectCoercible$1$7,$Object$2$7=Object,toObject$1$7=function(v){return $Object$2$7(requireObjectCoercible$9(v))},uncurryThis$5$7=functionUncurryThis$7,toObject$d=toObject$1$7,hasOwnProperty$7=uncurryThis$5$7({}.hasOwnProperty),hasOwnProperty_1$7=Object.hasOwn||function v(k,ie){return hasOwnProperty$7(toObject$d(k),ie)},DESCRIPTORS$5$7=descriptors$7,hasOwn$4$7=hasOwnProperty_1$7,FunctionPrototype$9=Function.prototype,getDescriptor$7=DESCRIPTORS$5$7&&Object.getOwnPropertyDescriptor,EXISTS$1$7=hasOwn$4$7(FunctionPrototype$9,"name"),PROPER$7=EXISTS$1$7&&function v(){}.name==="something",CONFIGURABLE$1$7=EXISTS$1$7&&(!DESCRIPTORS$5$7||DESCRIPTORS$5$7&&getDescriptor$7(FunctionPrototype$9,"name").configurable),functionName$7={EXISTS:EXISTS$1$7,PROPER:PROPER$7,CONFIGURABLE:CONFIGURABLE$1$7},isCallable$a$7=function(v){return typeof v=="function"},objectDefineProperty$7={},check$7=function(v){return v&&v.Math==Math&&v},global$9$7=check$7(typeof globalThis=="object"&&globalThis)||check$7(typeof window=="object"&&window)||check$7(typeof self=="object"&&self)||check$7(typeof commonjsGlobal$8=="object"&&commonjsGlobal$8)||function(){return this}()||Function("return this")(),isCallable$9$7=isCallable$a$7,isObject$5$7=function(v){return typeof v=="object"?v!==null:isCallable$9$7(v)},global$8$7=global$9$7,isObject$4$7=isObject$5$7,document$6=global$8$7.document,EXISTS$8=isObject$4$7(document$6)&&isObject$4$7(document$6.createElement),documentCreateElement$8=function(v){return EXISTS$8?document$6.createElement(v):{}},DESCRIPTORS$4$7=descriptors$7,fails$4$7=fails$7$7,createElement$8=documentCreateElement$8,ie8DomDefine$7=!DESCRIPTORS$4$7&&!fails$4$7(function(){return Object.defineProperty(createElement$8("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$3$7=descriptors$7,fails$3$7=fails$7$7,v8PrototypeDefineBug$7=DESCRIPTORS$3$7&&fails$3$7(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$3$7=isObject$5$7,$String$2$6=String,$TypeError$4$7=TypeError,anObject$3$6=function(v){if(isObject$3$7(v))return v;throw $TypeError$4$7($String$2$6(v)+" is not an object")},NATIVE_BIND$a=functionBindNative$7,call$3$7=Function.prototype.call,functionCall$7=NATIVE_BIND$a?call$3$7.bind(call$3$7):function(){return call$3$7.apply(call$3$7,arguments)},global$7$7=global$9$7,isCallable$8$7=isCallable$a$7,aFunction$7=function(v){return isCallable$8$7(v)?v:void 0},getBuiltIn$2$7=function(v,k){return arguments.length<2?aFunction$7(global$7$7[v]):global$7$7[v]&&global$7$7[v][k]},uncurryThis$4$7=functionUncurryThis$7,objectIsPrototypeOf$7=uncurryThis$4$7({}.isPrototypeOf),getBuiltIn$1$7=getBuiltIn$2$7,engineUserAgent$7=getBuiltIn$1$7("navigator","userAgent")||"",global$6$7=global$9$7,userAgent$a=engineUserAgent$7,process$a=global$6$7.process,Deno$6=global$6$7.Deno,versions$7=process$a&&process$a.versions||Deno$6&&Deno$6.version,v8$7=versions$7&&versions$7.v8,match$7,version$8;v8$7&&(match$7=v8$7.split("."),version$8=match$7[0]>0&&match$7[0]<4?1:+(match$7[0]+match$7[1]));!version$8&&userAgent$a&&(match$7=userAgent$a.match(/Edge\/(\d+)/),(!match$7||match$7[1]>=74)&&(match$7=userAgent$a.match(/Chrome\/(\d+)/),match$7&&(version$8=+match$7[1])));var engineV8Version$7=version$8,V8_VERSION$8=engineV8Version$7,fails$2$7=fails$7$7,nativeSymbol$7=!!Object.getOwnPropertySymbols&&!fails$2$7(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$8&&V8_VERSION$8<41}),NATIVE_SYMBOL$1$7=nativeSymbol$7,useSymbolAsUid$7=NATIVE_SYMBOL$1$7&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$f=getBuiltIn$2$7,isCallable$7$7=isCallable$a$7,isPrototypeOf$1$6=objectIsPrototypeOf$7,USE_SYMBOL_AS_UID$1$7=useSymbolAsUid$7,$Object$1$7=Object,isSymbol$2$7=USE_SYMBOL_AS_UID$1$7?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$f("Symbol");return isCallable$7$7(k)&&isPrototypeOf$1$6(k.prototype,$Object$1$7(v))},$String$1$7=String,tryToString$1$7=function(v){try{return $String$1$7(v)}catch{return"Object"}},isCallable$6$7=isCallable$a$7,tryToString$b=tryToString$1$7,$TypeError$3$7=TypeError,aCallable$1$7=function(v){if(isCallable$6$7(v))return v;throw $TypeError$3$7(tryToString$b(v)+" is not a function")},aCallable$e=aCallable$1$7,getMethod$1$7=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$e(ie)},call$2$7=functionCall$7,isCallable$5$7=isCallable$a$7,isObject$2$7=isObject$5$7,$TypeError$2$7=TypeError,ordinaryToPrimitive$1$7=function(v,k){var ie,ae;if(k==="string"&&isCallable$5$7(ie=v.toString)&&!isObject$2$7(ae=call$2$7(ie,v))||isCallable$5$7(ie=v.valueOf)&&!isObject$2$7(ae=call$2$7(ie,v))||k!=="string"&&isCallable$5$7(ie=v.toString)&&!isObject$2$7(ae=call$2$7(ie,v)))return ae;throw $TypeError$2$7("Can't convert object to primitive value")},shared$3$7={exports:{}},global$5$7=global$9$7,defineProperty$1$7=Object.defineProperty,defineGlobalProperty$2$7=function(v,k){try{defineProperty$1$7(global$5$7,v,{value:k,configurable:!0,writable:!0})}catch{global$5$7[v]=k}return k},global$4$7=global$9$7,defineGlobalProperty$1$7=defineGlobalProperty$2$7,SHARED$7="__core-js_shared__",store$3$7=global$4$7[SHARED$7]||defineGlobalProperty$1$7(SHARED$7,{}),sharedStore$7=store$3$7,store$2$7=sharedStore$7;(shared$3$7.exports=function(v,k){return store$2$7[v]||(store$2$7[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var uncurryThis$3$7=functionUncurryThis$7,id$9=0,postfix$7=Math.random(),toString$2$5=uncurryThis$3$7(1 .toString),uid$2$7=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$2$5(++id$9+postfix$7,36)},global$3$7=global$9$7,shared$2$7=shared$3$7.exports,hasOwn$3$7=hasOwnProperty_1$7,uid$1$7=uid$2$7,NATIVE_SYMBOL$8=nativeSymbol$7,USE_SYMBOL_AS_UID$8=useSymbolAsUid$7,WellKnownSymbolsStore$7=shared$2$7("wks"),Symbol$1$7=global$3$7.Symbol,symbolFor$7=Symbol$1$7&&Symbol$1$7.for,createWellKnownSymbol$7=USE_SYMBOL_AS_UID$8?Symbol$1$7:Symbol$1$7&&Symbol$1$7.withoutSetter||uid$1$7,wellKnownSymbol$3$6=function(v){if(!hasOwn$3$7(WellKnownSymbolsStore$7,v)||!(NATIVE_SYMBOL$8||typeof WellKnownSymbolsStore$7[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$8&&hasOwn$3$7(Symbol$1$7,v)?WellKnownSymbolsStore$7[v]=Symbol$1$7[v]:USE_SYMBOL_AS_UID$8&&symbolFor$7?WellKnownSymbolsStore$7[v]=symbolFor$7(k):WellKnownSymbolsStore$7[v]=createWellKnownSymbol$7(k)}return WellKnownSymbolsStore$7[v]},call$1$7=functionCall$7,isObject$1$7=isObject$5$7,isSymbol$1$7=isSymbol$2$7,getMethod$a=getMethod$1$7,ordinaryToPrimitive$8=ordinaryToPrimitive$1$7,wellKnownSymbol$2$6=wellKnownSymbol$3$6,$TypeError$1$7=TypeError,TO_PRIMITIVE$7=wellKnownSymbol$2$6("toPrimitive"),toPrimitive$1$7=function(v,k){if(!isObject$1$7(v)||isSymbol$1$7(v))return v;var ie=getMethod$a(v,TO_PRIMITIVE$7),ae;if(ie){if(k===void 0&&(k="default"),ae=call$1$7(ie,v,k),!isObject$1$7(ae)||isSymbol$1$7(ae))return ae;throw $TypeError$1$7("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$8(v,k)},toPrimitive$9=toPrimitive$1$7,isSymbol$a=isSymbol$2$7,toPropertyKey$1$7=function(v){var k=toPrimitive$9(v,"string");return isSymbol$a(k)?k:k+""},DESCRIPTORS$2$7=descriptors$7,IE8_DOM_DEFINE$8=ie8DomDefine$7,V8_PROTOTYPE_DEFINE_BUG$8=v8PrototypeDefineBug$7,anObject$2$7=anObject$3$6,toPropertyKey$b=toPropertyKey$1$7,$TypeError$i=TypeError,$defineProperty$7=Object.defineProperty,$getOwnPropertyDescriptor$8=Object.getOwnPropertyDescriptor,ENUMERABLE$7="enumerable",CONFIGURABLE$8="configurable",WRITABLE$7="writable";objectDefineProperty$7.f=DESCRIPTORS$2$7?V8_PROTOTYPE_DEFINE_BUG$8?function v(k,ie,ae){if(anObject$2$7(k),ie=toPropertyKey$b(ie),anObject$2$7(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$7 in ae&&!ae[WRITABLE$7]){var ce=$getOwnPropertyDescriptor$8(k,ie);ce&&ce[WRITABLE$7]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$8 in ae?ae[CONFIGURABLE$8]:ce[CONFIGURABLE$8],enumerable:ENUMERABLE$7 in ae?ae[ENUMERABLE$7]:ce[ENUMERABLE$7],writable:!1})}return $defineProperty$7(k,ie,ae)}:$defineProperty$7:function v(k,ie,ae){if(anObject$2$7(k),ie=toPropertyKey$b(ie),anObject$2$7(ae),IE8_DOM_DEFINE$8)try{return $defineProperty$7(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$i("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var makeBuiltIn$2$7={exports:{}},uncurryThis$2$7=functionUncurryThis$7,isCallable$4$7=isCallable$a$7,store$1$7=sharedStore$7,functionToString$7=uncurryThis$2$7(Function.toString);isCallable$4$7(store$1$7.inspectSource)||(store$1$7.inspectSource=function(v){return functionToString$7(v)});var inspectSource$2$7=store$1$7.inspectSource,global$2$7=global$9$7,isCallable$3$7=isCallable$a$7,inspectSource$1$7=inspectSource$2$7,WeakMap$1$7=global$2$7.WeakMap,nativeWeakMap$7=isCallable$3$7(WeakMap$1$7)&&/native code/.test(inspectSource$1$7(WeakMap$1$7)),createPropertyDescriptor$1$7=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$1$7=descriptors$7,definePropertyModule$1$7=objectDefineProperty$7,createPropertyDescriptor$c=createPropertyDescriptor$1$7,createNonEnumerableProperty$1$7=DESCRIPTORS$1$7?function(v,k,ie){return definePropertyModule$1$7.f(v,k,createPropertyDescriptor$c(1,ie))}:function(v,k,ie){return v[k]=ie,v},shared$1$7=shared$3$7.exports,uid$a=uid$2$7,keys$6=shared$1$7("keys"),sharedKey$1$7=function(v){return keys$6[v]||(keys$6[v]=uid$a(v))},NATIVE_WEAK_MAP$7=nativeWeakMap$7,global$1$7=global$9$7,uncurryThis$1$7=functionUncurryThis$7,isObject$h=isObject$5$7,createNonEnumerableProperty$d=createNonEnumerableProperty$1$7,hasOwn$2$7=hasOwnProperty_1$7,shared$a=sharedStore$7,sharedKey$a=sharedKey$1$7,OBJECT_ALREADY_INITIALIZED$7="Object already initialized",TypeError$1$7=global$1$7.TypeError,WeakMap$9=global$1$7.WeakMap,set$8,get$8,has$7,enforce$7=function(v){return has$7(v)?get$8(v):set$8(v,{})},getterFor$7=function(v){return function(k){var ie;if(!isObject$h(k)||(ie=get$8(k)).type!==v)throw TypeError$1$7("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$7||shared$a.state?(store$a=shared$a.state||(shared$a.state=new WeakMap$9),wmget$7=uncurryThis$1$7(store$a.get),wmhas$7=uncurryThis$1$7(store$a.has),wmset$7=uncurryThis$1$7(store$a.set),set$8=function(v,k){if(wmhas$7(store$a,v))throw new TypeError$1$7(OBJECT_ALREADY_INITIALIZED$7);return k.facade=v,wmset$7(store$a,v,k),k},get$8=function(v){return wmget$7(store$a,v)||{}},has$7=function(v){return wmhas$7(store$a,v)}):(STATE$7=sharedKey$a("state"),set$8=function(v,k){if(hasOwn$2$7(v,STATE$7))throw new TypeError$1$7(OBJECT_ALREADY_INITIALIZED$7);return k.facade=v,createNonEnumerableProperty$d(v,STATE$7,k),k},get$8=function(v){return hasOwn$2$7(v,STATE$7)?v[STATE$7]:{}},has$7=function(v){return hasOwn$2$7(v,STATE$7)});var store$a,wmget$7,wmhas$7,wmset$7,STATE$7,internalState$7={set:set$8,get:get$8,has:has$7,enforce:enforce$7,getterFor:getterFor$7},fails$1$7=fails$7$7,isCallable$2$7=isCallable$a$7,hasOwn$1$7=hasOwnProperty_1$7,DESCRIPTORS$k=descriptors$7,CONFIGURABLE_FUNCTION_NAME$9=functionName$7.CONFIGURABLE,inspectSource$b=inspectSource$2$7,InternalStateModule$b=internalState$7,enforceInternalState$9=InternalStateModule$b.enforce,getInternalState$b=InternalStateModule$b.get,defineProperty3$6=Object.defineProperty,CONFIGURABLE_LENGTH$7=DESCRIPTORS$k&&!fails$1$7(function(){return defineProperty3$6(function(){},"length",{value:8}).length!==8}),TEMPLATE$7=String(String).split("String"),makeBuiltIn$1$7=makeBuiltIn$2$7.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$1$7(v,"name")||CONFIGURABLE_FUNCTION_NAME$9&&v.name!==k)&&(DESCRIPTORS$k?defineProperty3$6(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$7&&ie&&hasOwn$1$7(ie,"arity")&&v.length!==ie.arity&&defineProperty3$6(v,"length",{value:ie.arity});try{ie&&hasOwn$1$7(ie,"constructor")&&ie.constructor?DESCRIPTORS$k&&defineProperty3$6(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$9(v);return hasOwn$1$7(ae,"source")||(ae.source=TEMPLATE$7.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$7(function v(){return isCallable$2$7(this)&&getInternalState$b(this).source||inspectSource$b(this)},"toString");var isCallable$1$7=isCallable$a$7,definePropertyModule$d=objectDefineProperty$7,makeBuiltIn$9=makeBuiltIn$2$7.exports,defineGlobalProperty$a=defineGlobalProperty$2$7,defineBuiltIn$1$7=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$1$7(ie)&&makeBuiltIn$9(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$a(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$d.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},wellKnownSymbol$1$7=wellKnownSymbol$3$6,TO_STRING_TAG$1$6=wellKnownSymbol$1$7("toStringTag"),test$6={};test$6[TO_STRING_TAG$1$6]="z";var toStringTagSupport$6=String(test$6)==="[object z]",uncurryThis$r=functionUncurryThis$7,toString$1$7=uncurryThis$r({}.toString),stringSlice$7=uncurryThis$r("".slice),classofRaw$1$6=function(v){return stringSlice$7(toString$1$7(v),8,-1)},TO_STRING_TAG_SUPPORT$6=toStringTagSupport$6,isCallable$p=isCallable$a$7,classofRaw$8=classofRaw$1$6,wellKnownSymbol$l=wellKnownSymbol$3$6,TO_STRING_TAG$9=wellKnownSymbol$l("toStringTag"),$Object$b=Object,CORRECT_ARGUMENTS$6=classofRaw$8(function(){return arguments}())=="Arguments",tryGet$6=function(v,k){try{return v[k]}catch{}},classof$1$6=TO_STRING_TAG_SUPPORT$6?classofRaw$8:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$6(k=$Object$b(v),TO_STRING_TAG$9))=="string"?ie:CORRECT_ARGUMENTS$6?classofRaw$8(k):(ae=classofRaw$8(k))=="Object"&&isCallable$p(k.callee)?"Arguments":ae},classof$f=classof$1$6,$String$a=String,toString2$5=function(v){if(classof$f(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$a(v)},anObject$1$7=anObject$3$6,regexpFlags$5=function(){var v=anObject$1$7(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$l=functionCall$7,hasOwn2$7=hasOwnProperty_1$7,isPrototypeOf$b=objectIsPrototypeOf$7,regExpFlags$5=regexpFlags$5,RegExpPrototype$1$5=RegExp.prototype,regexpGetFlags$5=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$5)&&!hasOwn2$7(v,"flags")&&isPrototypeOf$b(RegExpPrototype$1$5,v)?call$l(regExpFlags$5,v):k},PROPER_FUNCTION_NAME$7=functionName$7.PROPER,defineBuiltIn$d=defineBuiltIn$1$7,anObject$h=anObject$3$6,$toString$5=toString2$5,fails$t=fails$7$7,getRegExpFlags$5=regexpGetFlags$5,TO_STRING$5="toString",RegExpPrototype$6=RegExp.prototype,n$ToString$5=RegExpPrototype$6[TO_STRING$5],NOT_GENERIC$5=fails$t(function(){return n$ToString$5.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$5=PROPER_FUNCTION_NAME$7&&n$ToString$5.name!=TO_STRING$5;(NOT_GENERIC$5||INCORRECT_NAME$5)&&defineBuiltIn$d(RegExp.prototype,TO_STRING$5,function(){var k=anObject$h(this),ie=$toString$5(k.source),ae=$toString$5(getRegExpFlags$5(k));return"/"+ie+"/"+ae},{unsafe:!0});function __awaiter$9(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAA5UExURauTPuTDVeC9UtevS9+8UeLCVNu2TujMWtKuSr6gROfJWOvPW9KoR+/VXgEAADMqDIlzL2BQHqSMOui3gb0AAAAKdFJOUwH///8ra/+trf6s0FUfAAAXG0lEQVR42uRc2XbrqBZswMERSBHw/x97rQHYI8Ln9cpOsvr0clZKtWvP6L///i+u1+vn5/f3932+6PW+vt7Pr/t9fv3T9fPzev07iJ/ft7fWGmOO78dPY8Lx/rw+V/2v+9/rP+Mrnq/7HWIE/3q86bXF7XhLV/zAef0LihNEu8z17YJj7692hf5DxHPiiPH6+6Vri9fff/1QoBxgvsTy+kUoThwnivoD4+iMVLJEJDc9jIqtfW+EqFC2b6AwGJ2UC0KjBfEB0GBaYmAwKJqDiouW+MTKtk1Cef0cMPz5RoTYRsnNiKWEAByKdcna2CLCMURx8vUzgePnfUBQKAEvZlwGIqFoGClALRtAU6E8oXk/kvJzU0GxGCB3K+n99mCNEaMyEh4pmSBl+3lQxwfCbVnWMl6MpXK3QCXBYCgAS+ysdEokzUNGHq73CMf7JMJ70boQDMV1Ib2rjIiUYEYmwLwfcDRGoN4N/CZpBNABjMsMBM8dF+PkAYomlBuHrd9UueucBGOGjKgiITKZUonGScXhKw6OB+m9orA4nDzHxajbWDWtOZUoSH4bCpkR04OiRkkAFsZSlUiMSyKkJSuzmn/LOLzHUAREBgvefBNMGCFBYmTeA4te+OdCYSEjokzsUCaBuC7BtlSVCNFkAgoR/MtdbHgMhXhhgwMjCSbdroBI9KSLqmTj0WT73rh+Lxi3SqD34nHRwJyLm1fA5iXUJ2o5Qj3XlOCRcb2894wSNbpbnHFZ6rkCErzhglc910Z1MmFe8YUJ8QSErHZD9C5QwjViplWCQ/wcI5CSpnSP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EXyDmRycxavcAF8ZJqKbRt3S/6u4Gf/ySS6GAS9SIwqUlBFOqEZJUyKmvDuoj66qynAgZZPp23HF8ZThr8qxUTqLvBydMalnq5zioTJ0pwPh617JKJjOAOcwBhUVfwQI4tna899dV5beK6Q+V0jkX6wYPuDilZ7pcLkUR7fPBwBdVischD4WlZ3KHXTpJ2s0qBHKtOak+Ad8uCmbaDC0Oj15sqamZSmJdo87pfL5EkwlO4akx0p52uvT3ENWLnWJy+V6cpielDlb2xbeXTGw0EVpvhlZzlX6PtRwvUdbuE3+0km4dL9NmeXSOyMlSV4EGWsq7BdojW24wTOT6SPLQAtWO/gyvEggfngAZT9lTCjvDnf+4ewrxu3rZqPPxpfW8wbW0LAyMVvOaCv98uXd/m8+28/xig3BTEmBN0g0+62oeHlNv10vtdH2fGlSNxMhtmnQWToOrd3OT+gxiLgT06Zounj5boczFqExngeS6/Ziu/irHJ8qjno5MOUUpfkaV6j14r98e/kWIT5nr7iPPfffflv9vtdv33QvzPvn8AipGJV7Bw0z0AAAAASUVORK5CYII=",isInstalled$5=()=>!!window.coin98,setupCoin98WalletState=()=>({wallet:window.coin98}),Coin98Wallet=({metadata:v,options:k,store:ie,provider:ae,logger:ce})=>__awaiter$9(void 0,void 0,void 0,function*(){const fe=setupCoin98WalletState(),le=()=>__awaiter$9(void 0,void 0,void 0,function*(){const pe=fe.wallet.near.account;if(!pe)return[];const ye=yield fe.wallet.near.signer.getPublicKey(pe,k.network.networkId);return[{accountId:pe,publicKey:ye?ye.toString():void 0}]}),ve=pe=>{const{contract:ye}=ie.getState();if(!ye)throw new Error("Wallet not signed in");const me=getActiveAccount(ie.getState());if(!me)throw new Error("No active account");return pe.map(Ee=>({signerId:Ee.signerId||me.accountId,receiverId:Ee.receiverId||ye.contractId,actions:Ee.actions}))};return{signIn({contractId:pe}){return __awaiter$9(this,void 0,void 0,function*(){const ye=yield le();return ye.length?ye:(yield fe.wallet.near.connect({prefix:"near_selector",contractId:pe}),le())})},signOut(){return __awaiter$9(this,void 0,void 0,function*(){yield fe.wallet.near.disconnect()})},getAccounts(){return __awaiter$9(this,void 0,void 0,function*(){return le()})},verifyOwner(){return __awaiter$9(this,void 0,void 0,function*(){throw new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction({signerId:pe,receiverId:ye,actions:me}){return __awaiter$9(this,void 0,void 0,function*(){ce.log("signAndSendTransaction",{signerId:pe,receiverId:ye,actions:me});const Ee=yield signTransactions(ve([{signerId:pe,receiverId:ye,actions:me}]),fe.wallet.near.signer,k.network);return ae.sendTransaction(Ee[0])})},signAndSendTransactions({transactions:pe}){return __awaiter$9(this,void 0,void 0,function*(){ce.log("signAndSendTransactions",{transactions:pe});const ye=yield signTransactions(ve(pe),fe.wallet.near.signer,k.network);ce.log("signAndSendTransactions:signedTransactions",ye);const me=[];for(let Ee=0;Ee()=>__awaiter$9(void 0,void 0,void 0,function*(){if((0,import_is_mobile$6.isMobile)())return null;const ae=isInstalled$5();return{id:"coin98-wallet",type:"injected",metadata:{name:"Coin98 Wallet",description:"Using a Decentralized Wallet With Experiences of a Centralized One",iconUrl:v,downloadUrl:"https://chrome.google.com/webstore/detail/coin98-wallet/aeachknmefphepccionboohckonoeemg",deprecated:k,available:ae},init:Coin98Wallet}}),require_JSONStorage=__commonJS$1({"node_modules/@here-wallet/core/build/JSONStorage.js"(v){var k=v&&v.__awaiter||function(ae,ce,fe,le){function ve(pe){return pe instanceof fe?pe:new fe(function(ye){ye(pe)})}return new(fe||(fe=Promise))(function(pe,ye){function me(Br){try{cr(le.next(Br))}catch($r){ye($r)}}function Ee(Br){try{cr(le.throw(Br))}catch($r){ye($r)}}function cr(Br){Br.done?pe(Br.value):ve(Br.value).then(me,Ee)}cr((le=le.apply(ae,ce||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.StateStorage=void 0;var ie=class{constructor(){this.dataKey="herewallet:keystore"}setState(ae,ce){return k(this,void 0,void 0,function*(){const fe=yield this.getFullState();fe[ae]=ce,window.localStorage.setItem(this.dataKey,JSON.stringify(fe))})}getFullState(){return k(this,void 0,void 0,function*(){try{return JSON.parse(window.localStorage.getItem(this.dataKey))||{}}catch{return{}}})}getState(ae){return k(this,void 0,void 0,function*(){return(yield this.getFullState())[ae]||{activeAccount:null,accounts:{}}})}clear(){return k(this,void 0,void 0,function*(){window.localStorage.removeItem(this.dataKey)})}};v.StateStorage=ie}}),require_HereKeyStore=__commonJS$1({"node_modules/@here-wallet/core/build/HereKeyStore.js"(v){var k=v&&v.__awaiter||function(fe,le,ve,pe){function ye(me){return me instanceof ve?me:new ve(function(Ee){Ee(me)})}return new(ve||(ve=Promise))(function(me,Ee){function cr(Pr){try{$r(pe.next(Pr))}catch(Or){Ee(Or)}}function Br(Pr){try{$r(pe.throw(Pr))}catch(Or){Ee(Or)}}function $r(Pr){Pr.done?me(Pr.value):ye(Pr.value).then(cr,Br)}$r((pe=pe.apply(fe,le||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.HereKeyStore=void 0;var ie=require_key_pair2(),ae=require_JSONStorage(),ce=class{constructor(fe=new ae.StateStorage){this.storage=fe}setActiveAccount(fe,le){return k(this,void 0,void 0,function*(){const ve=yield this.storage.getState(fe);ve.activeAccount=le,this.storage.setState(fe,ve)})}setKey(fe,le,ve){return k(this,void 0,void 0,function*(){const pe=yield this.storage.getState(fe);pe.accounts[le]=ve.toString(),this.storage.setState(fe,pe)})}getAccounts(fe){return k(this,void 0,void 0,function*(){const le=yield this.storage.getState(fe);return Object.keys(le.accounts)})}getActiveAccount(fe){return k(this,void 0,void 0,function*(){return(yield this.storage.getState(fe)).activeAccount})}getKey(fe,le){return k(this,void 0,void 0,function*(){const pe=(yield this.storage.getState(fe)).accounts[le];if(pe==null)throw Error(`For ${le} in ${fe} network key not found`);return ie.KeyPair.fromString(pe)})}removeKey(fe,le){return k(this,void 0,void 0,function*(){let ve=yield this.storage.getState(fe);ve.activeAccount===le&&(ve.activeAccount=null),delete ve.accounts[le],this.storage.setState(fe,ve)})}getNetworks(){return k(this,void 0,void 0,function*(){let fe=yield this.storage.getFullState();return Object.keys(fe.accounts)})}clear(){return k(this,void 0,void 0,function*(){yield this.storage.clear()})}};v.HereKeyStore=ce}}),require_provider=__commonJS$1({"node_modules/@here-wallet/core/build/provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.HereProviderError=v.HereProviderStatus=void 0,function(ie){ie[ie.APPROVING=1]="APPROVING",ie[ie.FAILED=2]="FAILED",ie[ie.SUCCESS=3]="SUCCESS"}(v.HereProviderStatus||(v.HereProviderStatus={}));var k=class extends Error{constructor(ie,ae){super(ie!=null?ie:ae==null?void 0:ae.message),this.payload=ie,this.parentError=ae}};v.HereProviderError=k}}),browser_exports={};__export$1(browser_exports,{default:()=>browser_default,uuid4:()=>uuid4,valid:()=>valid});function valid(v){return uuidPattern.test(v)}function uuid4(){var v=URL.createObjectURL(new Blob),k=v.toString();return URL.revokeObjectURL(v),k.split(/[:\/]/g).pop().toLowerCase()}var uuidPattern,browser_default,init_browser=__esm$1({"node_modules/uuid4/browser.mjs"(){uuidPattern=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,uuid4.valid=valid,browser_default=uuid4}}),require_utils$1=__commonJS$1({"node_modules/@here-wallet/core/build/utils.js"(v){var k=v&&v.__awaiter||function(Ee,cr,Br,$r){function Pr(Or){return Or instanceof Br?Or:new Br(function(ur){ur(Or)})}return new(Br||(Br=Promise))(function(Or,ur){function jr(Vr){try{Lr($r.next(Vr))}catch(Gr){ur(Gr)}}function Mr(Vr){try{Lr($r.throw(Vr))}catch(Gr){ur(Gr)}}function Lr(Vr){Vr.done?Or(Vr.value):Pr(Vr.value).then(jr,Mr)}Lr(($r=$r.apply(Ee,cr||[])).next())})},ie=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.isValidAccessKey=v.internalThrow=v.getPublicKeys=v.serializeActions=v.isMobile=v.getDeviceId=void 0;var ae=ie((init_browser(),__toCommonJS$1(browser_exports))),ce=require_provider(),fe=()=>{const Ee=window.localStorage.getItem("herewallet-topic")||(0,ae.default)();return window.localStorage.setItem("herewallet-topic",Ee),Ee};v.getDeviceId=fe;var le=()=>window.matchMedia("(any-pointer:coarse)").matches;v.isMobile=le;var ve=Ee=>Ee.map(cr=>{if(cr.type!=="FunctionCall")return cr;let{args:Br,deposit:$r,gas:Pr,methodName:Or}=cr.params;return ArrayBuffer.isView(Br)&&(Br=Buffer.from(Br.buffer,Br.byteOffset,Br.byteLength)),Br instanceof Buffer&&(Br=Br.toString("base64")),{type:cr.type,params:{args:Br,deposit:$r,gas:Pr,methodName:Or}}});v.serializeActions=ve;var pe=(Ee,cr)=>k(void 0,void 0,void 0,function*(){const Br=yield fetch(Ee,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:"dontcare",method:"query",params:{request_type:"view_access_key_list",finality:"final",account_id:cr}}),headers:{"content-type":"application/json"}});return Br.ok===!1?[]:(yield Br.json()).result.keys});v.getPublicKeys=pe;var ye=(Ee,cr)=>{var Br,$r,Pr;if(Ee instanceof ce.HereProviderError)throw Ee;const Or={payload:Ee instanceof Error?Ee.message:"UNKNOWN",status:ce.HereProviderStatus.FAILED,account_id:""};throw(Br=cr.onFailed)===null||Br===void 0||Br.call(cr,Or),(Pr=($r=cr==null?void 0:cr.strategy)===null||$r===void 0?void 0:$r.onFailed)===null||Pr===void 0||Pr.call($r,Or),Ee};v.internalThrow=ye;var me=(Ee,cr,Br)=>{const{permission:$r}=cr.access_key;if($r==="FullAccess")return!0;if($r.FunctionCall){const{receiver_id:Pr,method_names:Or}=$r.FunctionCall;if(Pr===Ee&&Or.includes("add_request_and_confirm"))return!0;if(Pr===Br.receiverId)return Br.actions.length!==1?!1:Br.actions.every(ur=>ur.type!=="FunctionCall"?!1:(!ur.params.deposit||ur.params.deposit.toString()==="0")&&(Or.length===0||Or.includes(ur.params.methodName)))}return!1};v.isValidAccessKey=me}}),require_crypt=__commonJS$1({"node_modules/crypt/crypt.js"(v,k){(function(){var ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ae={rotl:function(ce,fe){return ce<>>32-fe},rotr:function(ce,fe){return ce<<32-fe|ce>>>fe},endian:function(ce){if(ce.constructor==Number)return ae.rotl(ce,8)&16711935|ae.rotl(ce,24)&4278255360;for(var fe=0;fe0;ce--)fe.push(Math.floor(Math.random()*256));return fe},bytesToWords:function(ce){for(var fe=[],le=0,ve=0;le>>5]|=ce[le]<<24-ve%32;return fe},wordsToBytes:function(ce){for(var fe=[],le=0;le>>5]>>>24-le%32&255);return fe},bytesToHex:function(ce){for(var fe=[],le=0;le>>4).toString(16)),fe.push((ce[le]&15).toString(16));return fe.join("")},hexToBytes:function(ce){for(var fe=[],le=0;le>>6*(3-pe)&63)):fe.push("=");return fe.join("")},base64ToBytes:function(ce){ce=ce.replace(/[^A-Z0-9+\/]/ig,"");for(var fe=[],le=0,ve=0;le>>6-ve*2);return fe}};k.exports=ae})()}}),require_charenc=__commonJS$1({"node_modules/charenc/charenc.js"(v,k){var ie={utf8:{stringToBytes:function(ae){return ie.bin.stringToBytes(unescape(encodeURIComponent(ae)))},bytesToString:function(ae){return decodeURIComponent(escape(ie.bin.bytesToString(ae)))}},bin:{stringToBytes:function(ae){for(var ce=[],fe=0;fe>5]|=128<<24-ye%32,pe[(ye+64>>>9<<4)+15]=ye;for(var Or=0;Or>>31}var Qr=(Ee<<5|Ee>>>27)+Pr+(me[Gr]>>>0)+(Gr<20?(cr&Br|~cr&$r)+1518500249:Gr<40?(cr^Br^$r)+1859775393:Gr<60?(cr&Br|cr&$r|Br&$r)-1894007588:(cr^Br^$r)-899497514);Pr=$r,$r=Br,Br=cr<<30|cr>>>2,cr=Ee,Ee=Qr}Ee+=ur,cr+=jr,Br+=Mr,$r+=Lr,Pr+=Vr}return[Ee,cr,Br,$r,Pr]},le=function(ve,pe){var ye=ie.wordsToBytes(fe(ve));return pe&&pe.asBytes?ye:pe&&pe.asString?ce.bytesToString(ye):ie.bytesToHex(ye)};le._blocksize=16,le._digestsize=20,k.exports=le})()}}),require_methods=__commonJS$1({"node_modules/@here-wallet/core/build/here-provider/methods.js"(v){var k=v&&v.__awaiter||function(Ee,cr,Br,$r){function Pr(Or){return Or instanceof Br?Or:new Br(function(ur){ur(Or)})}return new(Br||(Br=Promise))(function(Or,ur){function jr(Vr){try{Lr($r.next(Vr))}catch(Gr){ur(Gr)}}function Mr(Vr){try{Lr($r.throw(Vr))}catch(Gr){ur(Gr)}}function Lr(Vr){Vr.done?Or(Vr.value):Pr(Vr.value).then(jr,Mr)}Lr(($r=$r.apply(Ee,cr||[])).next())})},ie=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.createRequest=v.deleteRequest=v.getResponse=v.getRequest=v.proxyApi=void 0;var ae=ie(require_sha1$1()),ce=ie((init_browser(),__toCommonJS$1(browser_exports))),fe=require_serialize$1(),le=require_utils$1();v.proxyApi="https://h4n.app";var ve=(Ee,cr)=>k(void 0,void 0,void 0,function*(){const Br=yield fetch(`${v.proxyApi}/${Ee}/request`,{signal:cr,headers:{"content-type":"application/json"},method:"GET"});if(Br.ok===!1)throw Error(yield Br.text());const{data:$r}=yield Br.json();return JSON.parse((0,fe.base_decode)($r).toString("utf8"))});v.getRequest=ve;var pe=Ee=>k(void 0,void 0,void 0,function*(){var cr,Br,$r,Pr;const Or=yield fetch(`${v.proxyApi}/${Ee}/response`,{headers:{"content-type":"application/json"},method:"GET"});if(Or.ok===!1)throw Error(yield Or.text());const{data:ur}=yield Or.json(),jr=(cr=JSON.parse(ur))!==null&&cr!==void 0?cr:{};return{account_id:(Br=jr.account_id)!==null&&Br!==void 0?Br:"",payload:($r=jr.payload)!==null&&$r!==void 0?$r:"",status:(Pr=jr.status)!==null&&Pr!==void 0?Pr:-1}});v.getResponse=pe;var ye=Ee=>k(void 0,void 0,void 0,function*(){const cr=yield fetch(`${v.proxyApi}/${Ee}`,{headers:{"content-type":"application/json"},method:"DELETE"});if(cr.ok===!1)throw Error(yield cr.text())});v.deleteRequest=ye;var me=(Ee,cr)=>k(void 0,void 0,void 0,function*(){const Br=(0,fe.base_encode)(JSON.stringify(Object.assign(Object.assign({},Ee),{_id:(0,ce.default)()}))),$r=(0,ae.default)(Br),Or=Buffer.from($r,"hex").toString("base64").replaceAll("/","_").replaceAll("-","+").slice(0,13),ur=yield fetch(`${v.proxyApi}/${Or}/request`,{method:"POST",signal:cr,body:JSON.stringify({topic_id:(0,le.getDeviceId)(),data:Br}),headers:{"content-type":"application/json"}});if(ur.ok===!1)throw Error(yield ur.text());return Or});v.createRequest=me}}),require_here_provider=__commonJS$1({"node_modules/@here-wallet/core/build/here-provider/index.js"(v){var k=v&&v.__awaiter||function(ve,pe,ye,me){function Ee(cr){return cr instanceof ye?cr:new ye(function(Br){Br(cr)})}return new(ye||(ye=Promise))(function(cr,Br){function $r(ur){try{Or(me.next(ur))}catch(jr){Br(jr)}}function Pr(ur){try{Or(me.throw(ur))}catch(jr){Br(jr)}}function Or(ur){ur.done?cr(ur.value):Ee(ur.value).then($r,Pr)}Or((me=me.apply(ve,pe||[])).next())})},ie=v&&v.__rest||function(ve,pe){var ye={};for(var me in ve)Object.prototype.hasOwnProperty.call(ve,me)&&pe.indexOf(me)<0&&(ye[me]=ve[me]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,me=Object.getOwnPropertySymbols(ve);Eek(void 0,void 0,void 0,function*(){let{strategy:pe,request:ye,disableCleanupRequest:me,id:Ee,signal:cr}=ve,Br=ie(ve,["strategy","request","disableCleanupRequest","id","signal"]);return Ee!=null?ye=yield(0,fe.getRequest)(Ee,cr):Ee=yield(0,fe.createRequest)(ye,cr),new Promise(($r,Pr)=>{var Or,ur;const jr=fe.proxyApi.replace("https","wss");let Mr=null,Lr=null;const Vr=()=>k(void 0,void 0,void 0,function*(){Mr=-1,clearInterval(Mr),Lr==null||Lr.close(),me!==!0&&(yield(0,fe.deleteRequest)(Ee))}),Gr=vn=>{var Yt,fn,Xt,Qt,Kr,be;switch(vn.status){case ce.HereProviderStatus.APPROVING:(Yt=Br.onApproving)===null||Yt===void 0||Yt.call(Br,vn),(fn=pe==null?void 0:pe.onApproving)===null||fn===void 0||fn.call(pe,vn);return;case ce.HereProviderStatus.FAILED:Vr(),Pr(new ce.HereProviderError(vn.payload)),(Xt=Br.onFailed)===null||Xt===void 0||Xt.call(Br,vn),(Qt=pe==null?void 0:pe.onFailed)===null||Qt===void 0||Qt.call(pe,vn);return;case ce.HereProviderStatus.SUCCESS:Vr(),$r(vn),(Kr=Br.onSuccess)===null||Kr===void 0||Kr.call(Br,vn),(be=pe==null?void 0:pe.onSuccess)===null||be===void 0||be.call(pe,vn);return}},Ur=vn=>{Gr({status:ce.HereProviderStatus.FAILED,payload:vn})};(Or=Br.onRequested)===null||Or===void 0||Or.call(Br,Ee,ye,Ur),(ur=pe==null?void 0:pe.onRequested)===null||ur===void 0||ur.call(pe,Ee,ye,Ur),cr==null||cr.addEventListener("abort",()=>Ur());const Qr=()=>{Mr!==-1&&(Mr=setTimeout(()=>k(void 0,void 0,void 0,function*(){var vn,Yt;try{const fn=yield(0,fe.getResponse)(Ee);if(Mr===-1)return;Gr(fn),Qr()}catch(fn){const Xt=ce.HereProviderStatus.FAILED,Qt=fn instanceof Error?fn:void 0,Kr=Qt==null?void 0:Qt.message;Vr(),Pr(new ce.HereProviderError(Kr,Qt)),(vn=Br.onFailed)===null||vn===void 0||vn.call(Br,{status:Xt,payload:Kr}),(Yt=pe==null?void 0:pe.onFailed)===null||Yt===void 0||Yt.call(pe,{status:Xt,payload:Kr})}}),3e3))};if(Qr(),(0,ae.isMobile)()===!1){const vn=`${jr}/ws/${Ee}`;Lr=new WebSocket(vn),Lr.onmessage=Yt=>{if(Yt.data!=null)try{const fn=JSON.parse(Yt.data);Gr(fn)}catch{}}}})});v.proxyProvider=le}}),require_actions=__commonJS$1({"node_modules/@here-wallet/core/build/actions/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.createAction=v.parseArgs=void 0;var k=require_bn$1(),ie=require_browser_index2$1(),ae=le=>{if(le==="FullAccess")return ie.transactions.fullAccessKey();const{receiverId:ve,methodNames:pe=[]}=le,ye=le.allowance?new k.BN(le.allowance):void 0;return ie.transactions.functionCallAccessKey(ve,pe,ye)},ce=le=>typeof le=="string"?Buffer.from(le,"base64"):le;v.parseArgs=ce;var fe=le=>{switch(le.type){case"CreateAccount":return ie.transactions.createAccount();case"DeployContract":{const{code:ve}=le.params;return ie.transactions.deployContract(ve)}case"FunctionCall":{const{methodName:ve,args:pe,gas:ye,deposit:me}=le.params;return ie.transactions.functionCall(ve,(0,v.parseArgs)(pe),new k.BN(ye),new k.BN(me))}case"Transfer":{const{deposit:ve}=le.params;return ie.transactions.transfer(new k.BN(ve))}case"Stake":{const{stake:ve,publicKey:pe}=le.params;return ie.transactions.stake(new k.BN(ve),ie.utils.PublicKey.from(pe))}case"AddKey":{const{publicKey:ve,accessKey:pe}=le.params;return ie.transactions.addKey(ie.utils.PublicKey.from(ve),ae(pe.permission))}case"DeleteKey":{const{publicKey:ve}=le.params;return ie.transactions.deleteKey(ie.utils.PublicKey.from(ve))}case"DeleteAccount":{const{beneficiaryId:ve}=le.params;return ie.transactions.deleteAccount(ve)}default:throw new Error("Invalid action type")}};v.createAction=fe}}),require_WidgetStrategy=__commonJS$1({"node_modules/@here-wallet/core/build/WidgetStrategy.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.WidgetStrategy=void 0;var k=ae=>{const ce=document.createElement("iframe");return ce.src=ae,ce.style.border="none",ce.style.zIndex="10000",ce.style.position="fixed",ce.style.display="none",ce.style.top="0",ce.style.left="0",ce.style.width="100%",ce.style.height="100%",document.body.appendChild(ce),ce},ie=class{constructor(ae="https://my.herewallet.app/connector/index.html"){this.widget=ae,ie.connector==null&&(ie.connector=k(ae),ie.connector.addEventListener("load",()=>{ie.isLoaded=!0}))}onRequested(ae,ce,fe){if(ie.connector==null)return;ie.connector.style.display="block";const le=()=>{var ve,pe,ye;(ve=ie.connector)===null||ve===void 0||ve.removeEventListener("load",le),(ye=(pe=ie.connector)===null||pe===void 0?void 0:pe.contentWindow)===null||ye===void 0||ye.postMessage(JSON.stringify({type:"request",payload:{id:ae,request:ce}}),new URL(this.widget).origin)};ie.isLoaded?le():ie.connector.addEventListener("load",le),this.messageHandler=ve=>{try{if(ve.origin!==new URL(this.widget).origin)return;JSON.parse(ve.data).type==="reject"&&fe()}catch{}},window.addEventListener("message",this.messageHandler)}onApproving(){var ae;ie.connector!=null&&((ae=ie.connector.contentWindow)===null||ae===void 0||ae.postMessage(JSON.stringify({type:"approving"}),new URL(this.widget).origin))}onSuccess(){this.close()}onFailed(){this.close()}close(){this.messageHandler&&(window.removeEventListener("message",this.messageHandler),this.messageHandler=void 0),ie.connector!=null&&(ie.connector.style.display="none")}};v.WidgetStrategy=ie,ie.isLoaded=!1}}),require_wallet=__commonJS$1({"node_modules/@here-wallet/core/build/wallet.js"(v){var k=v&&v.__awaiter||function(ur,jr,Mr,Lr){function Vr(Gr){return Gr instanceof Mr?Gr:new Mr(function(Ur){Ur(Gr)})}return new(Mr||(Mr=Promise))(function(Gr,Ur){function Qr(fn){try{Yt(Lr.next(fn))}catch(Xt){Ur(Xt)}}function vn(fn){try{Yt(Lr.throw(fn))}catch(Xt){Ur(Xt)}}function Yt(fn){fn.done?Gr(fn.value):Vr(fn.value).then(Qr,vn)}Yt((Lr=Lr.apply(ur,jr||[])).next())})},ie=v&&v.__rest||function(ur,jr){var Mr={};for(var Lr in ur)Object.prototype.hasOwnProperty.call(ur,Lr)&&jr.indexOf(Lr)<0&&(Mr[Lr]=ur[Lr]);if(ur!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vr=0,Lr=Object.getOwnPropertySymbols(ur);Vrnew $r.WidgetStrategy,defaultProvider:Vr=cr.proxyProvider}={}){this.authStorage=Mr,this.defaultProvider=Vr,this.defaultStrategy=Lr;const Gr=new ce.InMemorySigner(this.authStorage),Ur=new fe.JsonRpcProvider({url:ur!=null?ur:`https://rpc.${jr}.near.org`});this.connection=ce.Connection.fromConfig({jsvmAccountId:`jsvm.${jr}`,provider:Ur,networkId:jr,signer:Gr})}get rpc(){return this.connection.provider}get signer(){return this.connection.signer}get networkId(){return this.connection.networkId}account(ur){return k(this,void 0,void 0,function*(){const jr=ur!=null?ur:yield this.authStorage.getActiveAccount(this.networkId);if(jr==null)throw new Error("Wallet not signed in");return new ce.Account(this.connection,jr)})}isSignedIn(){return k(this,void 0,void 0,function*(){return(yield this.authStorage.getActiveAccount(this.networkId))!=null})}signOut(){return k(this,void 0,void 0,function*(){const ur=yield this.authStorage.getActiveAccount(this.networkId);if(ur==null)throw new Error("Wallet not signed in");const jr=yield this.authStorage.getKey(this.networkId,ur);if(jr!=null){const Mr=jr.getPublicKey().toString();yield this.silentSignAndSendTransaction({receiverId:ur,actions:[{type:"DeleteKey",params:{publicKey:Mr}}]}).catch(()=>{})}yield this.authStorage.removeKey(this.networkId,ur)})}getHereBalance(ur){return k(this,void 0,void 0,function*(){const jr=yield this.account(ur),Mr=this.networkId==="mainnet"?"here.storage.near":"here.storage.testnet",Lr=yield jr.viewFunction({args:{account_id:jr.accountId},methodName:"ft_balance_of",contractId:Mr}).catch(()=>"0");return new pe.default(Lr)})}getAvailableBalance(ur){return k(this,void 0,void 0,function*(){const Mr=yield(yield this.account(ur)).getAccountBalance(),Lr=yield this.getHereBalance();return new pe.default(Mr.available).add(new pe.default(Lr))})}getAccounts(){return k(this,void 0,void 0,function*(){return yield this.authStorage.getAccounts(this.networkId)})}getAccountId(){return k(this,void 0,void 0,function*(){const ur=yield this.authStorage.getActiveAccount(this.networkId);if(ur==null)throw new Error("Wallet not signed in");return ur})}switchAccount(ur){return k(this,void 0,void 0,function*(){if((yield this.authStorage.getKey(this.networkId,ur))==null)throw new Error(`Account ${ur} not signed in`);yield this.authStorage.setActiveAccount(this.networkId,ur)})}signIn(ur={}){var jr,Mr,Lr,Vr,Gr,{contractId:Ur,allowance:Qr,methodNames:vn=[]}=ur,Yt=ie(ur,["contractId","allowance","methodNames"]);return k(this,void 0,void 0,function*(){if(Ur==null){const{accountId:fn}=yield this.signMessage(Object.assign({receiver:window.location.host,message:"Sign this message to sign in"},Yt));return yield this.authStorage.setKey(this.networkId,fn,le.KeyPairEd25519.fromRandom()),yield this.authStorage.setActiveAccount(this.networkId,fn),fn}Yt.strategy=(jr=Yt.strategy)!==null&&jr!==void 0?jr:this.defaultStrategy(),Yt.provider=(Mr=Yt.provider)!==null&&Mr!==void 0?Mr:this.defaultProvider,(Lr=Yt.onInitialized)===null||Lr===void 0||Lr.call(Yt),(Gr=(Vr=Yt.strategy)===null||Vr===void 0?void 0:Vr.onInitialized)===null||Gr===void 0||Gr.call(Vr);try{const fn=ce.KeyPair.fromRandom("ed25519"),Xt={receiverId:Ur,methodNames:vn,allowance:Qr},Qt=yield Yt.provider(Object.assign(Object.assign({},Yt),{request:{type:"call",network:this.networkId,transactions:[{actions:[{type:"AddKey",params:{publicKey:fn.getPublicKey().toString(),accessKey:{permission:Xt}}}]}]}}));if(Qt.account_id==null)throw Error("Transaction is failed");return yield this.authStorage.setKey(this.networkId,Qt.account_id,fn),yield this.authStorage.setActiveAccount(this.networkId,Qt.account_id),Qt.account_id}catch(fn){throw(0,Ee.internalThrow)(fn,Yt),fn}})}silentSignAndSendTransaction({actions:ur,receiverId:jr,signerId:Mr}){return k(this,void 0,void 0,function*(){const Lr=yield this.account(Mr),Vr=yield this.authStorage.getKey(this.networkId,Lr.accountId);if(Vr==null)throw new Pr;const Gr=Vr.getPublicKey(),Ur=yield Lr.getAccessKeys(),Qr={receiverId:jr,actions:ur};if(Ur.some(Yt=>Yt.public_key!==Gr.toString()?!1:(0,Ee.isValidAccessKey)(Lr.accountId,Yt,Qr))===!1)throw new Pr;return yield Lr.signAndSendTransaction({actions:ur.map(Yt=>(0,Br.createAction)(Yt)),receiverId:jr!=null?jr:Lr.accountId})})}signAndSendTransaction(ur){var jr,Mr,Lr,Vr,Gr,Ur,Qr,vn;return k(this,void 0,void 0,function*(){const{signerId:Yt,receiverId:fn,actions:Xt}=ur,Kr=ie(ur,["signerId","receiverId","actions"]);Kr.strategy=(jr=Kr.strategy)!==null&&jr!==void 0?jr:this.defaultStrategy(),Kr.provider=(Mr=Kr.provider)!==null&&Mr!==void 0?Mr:this.defaultProvider,(Lr=Kr.onInitialized)===null||Lr===void 0||Lr.call(Kr),(Gr=(Vr=Kr.strategy)===null||Vr===void 0?void 0:Vr.onInitialized)===null||Gr===void 0||Gr.call(Vr);try{const be=yield this.silentSignAndSendTransaction({receiverId:fn,actions:Xt,signerId:Yt}),kr={status:me.HereProviderStatus.SUCCESS,payload:be==null?void 0:be.transaction_outcome.id};return(Ur=Kr.onSuccess)===null||Ur===void 0||Ur.call(Kr,kr),(vn=(Qr=Kr.strategy)===null||Qr===void 0?void 0:Qr.onSuccess)===null||vn===void 0||vn.call(Qr,kr),be}catch(be){try{if(!(be instanceof Pr)&&(be==null?void 0:be.type)!=="NotEnoughAllowance")throw(0,Ee.internalThrow)(be,Kr),be;const kr=yield Kr.provider(Object.assign(Object.assign({},Kr),{request:{type:"call",transactions:[{actions:(0,Ee.serializeActions)(Xt),receiverId:fn,signerId:Yt}],network:this.networkId}}));if(kr.payload==null||kr.account_id==null)throw Error("Transaction not found, but maybe executed");return yield this.rpc.txStatus(kr.payload,kr.account_id)}catch(kr){throw(0,Ee.internalThrow)(kr,Kr),kr}}})}signMessage(ur){var jr,Mr,Lr,Vr,Gr,{message:Ur,receiver:Qr,nonce:vn}=ur,Yt=ie(ur,["message","receiver","nonce"]);return k(this,void 0,void 0,function*(){if(Yt.strategy=(jr=Yt.strategy)!==null&&jr!==void 0?jr:this.defaultStrategy(),Yt.provider=(Mr=Yt.provider)!==null&&Mr!==void 0?Mr:this.defaultProvider,(Lr=Yt.onInitialized)===null||Lr===void 0||Lr.call(Yt),(Gr=(Vr=Yt.strategy)===null||Vr===void 0?void 0:Vr.onInitialized)===null||Gr===void 0||Gr.call(Vr),vn==null){let Xt=new Uint8Array(32);vn=[...crypto.getRandomValues(Xt)]}const fn=yield Yt.provider(Object.assign(Object.assign({},Yt),{request:{type:"sign",message:Ur,receiver:Qr,nonce:vn,network:this.networkId}}));if(fn.payload==null)throw Error("Signature not found");try{const{publicKey:Xt,signature:Qt,accountId:Kr}=JSON.parse(fn.payload),be=new Uint8Array(Buffer.from(Qt,"base64")),kr=JSON.stringify({message:Ur,receiver:Qr,nonce:vn}),xr=new Uint8Array(ve.sha256.digest("NEP0413:"+kr));if(le.PublicKey.from(Xt).verify(xr,be)===!1)throw Error();const Xr=yield(yield this.account(Kr)).getAccessKeys(),zr=Xt.toString();if(Xr.some(Nr=>!(Nr.public_key!==zr||Nr.access_key.permission!=="FullAccess"))===!1)throw Error();return{signature:new Uint8Array(Buffer.from(Qt,"base64")),publicKey:le.PublicKey.from(Xt),message:"NEP0413:"+kr,receiver:Qr,accountId:Kr,nonce:vn}}catch{throw Error("Signature not correct")}})}signAndSendTransactions(ur){var jr,Mr,Lr,Vr,Gr,Ur,Qr,vn,{transactions:Yt}=ur,fn=ie(ur,["transactions"]);return k(this,void 0,void 0,function*(){fn.strategy=(jr=fn.strategy)!==null&&jr!==void 0?jr:this.defaultStrategy(),fn.provider=(Mr=fn.provider)!==null&&Mr!==void 0?Mr:this.defaultProvider,(Lr=fn.onInitialized)===null||Lr===void 0||Lr.call(fn),(Gr=(Vr=fn.strategy)===null||Vr===void 0?void 0:Vr.onInitialized)===null||Gr===void 0||Gr.call(Vr);let Xt=[];try{for(const be of Yt){const kr=yield this.silentSignAndSendTransaction(be);Xt.push(kr)}const Qt=Xt.map(be=>be.transaction_outcome.id).join(","),Kr={status:me.HereProviderStatus.SUCCESS,payload:Qt};return(Ur=fn.onSuccess)===null||Ur===void 0||Ur.call(fn,Kr),(vn=(Qr=fn.strategy)===null||Qr===void 0?void 0:Qr.onSuccess)===null||vn===void 0||vn.call(Qr,Kr),Xt}catch(Qt){try{if(!(Qt instanceof Pr)&&(Qt==null?void 0:Qt.type)!=="NotEnoughAllowance")throw(0,Ee.internalThrow)(Qt,fn),Qt;const Kr=Yt.slice(Xt.length),be=yield fn.provider(Object.assign(Object.assign({},fn),{request:{type:"call",transactions:Kr.map(xr=>Object.assign(Object.assign({},xr),{actions:(0,Ee.serializeActions)(xr.actions)})),network:this.networkId}}));if(be.payload==null||be.account_id==null)throw Error("Transaction not found, but maybe executed");const kr=be.payload.split(",").map(xr=>this.rpc.txStatus(xr,be.account_id));return yield Promise.all(kr)}catch(Kr){throw(0,Ee.internalThrow)(Kr,fn),Kr}}})}};v.HereWallet=Or}}),require_types$1=__commonJS$1({"node_modules/@here-wallet/core/build/actions/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0})}}),require_WindowStrategy=__commonJS$1({"node_modules/@here-wallet/core/build/WindowStrategy.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.WindowStrategy=void 0;var k=class{constructor(ie="https://h4n.app",ae="https://my.herewallet.app"){this.mainnet=ie,this.testnet=ae,this.signWindow=null,this.onFailed=()=>this.close(),this.onSuccess=()=>this.close()}onInitialized(){if(this.signWindow)return;const ie=window.innerWidth/2-420/2,ae=window.innerHeight/2-700/2;this.signWindow=window.open("https://my.herewallet.app/loading","_blank",`popup=1,width=420,height=700,top=${ae},left=${ie}`)}onRequested(ie,ae,ce){var fe;if(this.signWindow==null)return;this.unloadHandler=()=>{var ve;return(ve=this.signWindow)===null||ve===void 0?void 0:ve.close()},window.addEventListener("beforeunload",this.unloadHandler);const le=(fe=ae.network)!==null&&fe!==void 0?fe:"mainnet";this.signWindow.location=`${le?this.testnet:this.mainnet}/${ie}`,this.timerHandler=setInterval(()=>{var ve;!((ve=this.signWindow)===null||ve===void 0)&&ve.closed&&ce("CLOSED")},1e3)}close(){var ie;clearInterval(this.timerHandler),(ie=this.signWindow)===null||ie===void 0||ie.close(),this.signWindow=null,this.unloadHandler&&window.removeEventListener("beforeunload",this.unloadHandler)}};v.WindowStrategy=k}}),require_types2=__commonJS$1({"node_modules/@here-wallet/core/build/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0})}}),require_build$1=__commonJS$1({"node_modules/@here-wallet/core/build/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ce,fe,le,ve){ve===void 0&&(ve=le),Object.defineProperty(ce,ve,{enumerable:!0,get:function(){return fe[le]}})}:function(ce,fe,le,ve){ve===void 0&&(ve=le),ce[ve]=fe[le]}),ie=v&&v.__exportStar||function(ce,fe){for(var le in ce)le!=="default"&&!Object.prototype.hasOwnProperty.call(fe,le)&&k(fe,ce,le)};Object.defineProperty(v,"__esModule",{value:!0}),v.HereWallet=void 0;var ae=require_wallet();Object.defineProperty(v,"HereWallet",{enumerable:!0,get:function(){return ae.HereWallet}}),ie(require_actions(),v),ie(require_HereKeyStore(),v),ie(require_JSONStorage(),v),ie(require_types$1(),v),ie(require_WidgetStrategy(),v),ie(require_WindowStrategy(),v),ie(require_provider(),v),ie(require_types2(),v),ie(require_utils$1(),v),ie(require_here_provider(),v)}}),import_core=__toESM(require_build$1(),1),commonjsGlobal$7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$6=function(v){return v&&v.Math==Math&&v},global$a$5=check$6(typeof globalThis=="object"&&globalThis)||check$6(typeof window=="object"&&window)||check$6(typeof self=="object"&&self)||check$6(typeof commonjsGlobal$7=="object"&&commonjsGlobal$7)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$5={},fails$a$4=function(v){try{return!!v()}catch{return!0}},fails$9$5=fails$a$4,descriptors$6=!fails$9$5(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$8$5=fails$a$4,functionBindNative$6=!fails$8$5(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$1$6=functionBindNative$6,call$6$4=Function.prototype.call,functionCall$6=NATIVE_BIND$1$6?call$6$4.bind(call$6$4):function(){return call$6$4.apply(call$6$4,arguments)},objectPropertyIsEnumerable$5={},$propertyIsEnumerable$5={}.propertyIsEnumerable,getOwnPropertyDescriptor$1$5=Object.getOwnPropertyDescriptor,NASHORN_BUG$5=getOwnPropertyDescriptor$1$5&&!$propertyIsEnumerable$5.call({1:2},1);objectPropertyIsEnumerable$5.f=NASHORN_BUG$5?function v(k){var ie=getOwnPropertyDescriptor$1$5(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$5;var createPropertyDescriptor$2$5=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$9=functionBindNative$6,FunctionPrototype$1$6=Function.prototype,bind$b=FunctionPrototype$1$6.bind,call$5$5=FunctionPrototype$1$6.call,uncurryThis$a$5=NATIVE_BIND$9&&bind$b.bind(call$5$5,call$5$5),functionUncurryThis$6=NATIVE_BIND$9?function(v){return v&&uncurryThis$a$5(v)}:function(v){return v&&function(){return call$5$5.apply(v,arguments)}},uncurryThis$9$5=functionUncurryThis$6,toString$2$4=uncurryThis$9$5({}.toString),stringSlice$6=uncurryThis$9$5("".slice),classofRaw$1$5=function(v){return stringSlice$6(toString$2$4(v),8,-1)},uncurryThis$8$5=functionUncurryThis$6,fails$7$6=fails$a$4,classof$2$4=classofRaw$1$5,$Object$3$4=Object,split$5=uncurryThis$8$5("".split),indexedObject$5=fails$7$6(function(){return!$Object$3$4("z").propertyIsEnumerable(0)})?function(v){return classof$2$4(v)=="String"?split$5(v,""):$Object$3$4(v)}:$Object$3$4,$TypeError$5$6=TypeError,requireObjectCoercible$2$5=function(v){if(v==null)throw $TypeError$5$6("Can't call method on "+v);return v},IndexedObject$1$4=indexedObject$5,requireObjectCoercible$1$6=requireObjectCoercible$2$5,toIndexedObject$3$5=function(v){return IndexedObject$1$4(requireObjectCoercible$1$6(v))},isCallable$b$4=function(v){return typeof v=="function"},isCallable$a$6=isCallable$b$4,isObject$5$6=function(v){return typeof v=="object"?v!==null:isCallable$a$6(v)},global$9$6=global$a$5,isCallable$9$6=isCallable$b$4,aFunction$6=function(v){return isCallable$9$6(v)?v:void 0},getBuiltIn$3$5=function(v,k){return arguments.length<2?aFunction$6(global$9$6[v]):global$9$6[v]&&global$9$6[v][k]},uncurryThis$7$5=functionUncurryThis$6,objectIsPrototypeOf$6=uncurryThis$7$5({}.isPrototypeOf),getBuiltIn$2$6=getBuiltIn$3$5,engineUserAgent$6=getBuiltIn$2$6("navigator","userAgent")||"",global$8$6=global$a$5,userAgent$9=engineUserAgent$6,process$9=global$8$6.process,Deno$5=global$8$6.Deno,versions$6=process$9&&process$9.versions||Deno$5&&Deno$5.version,v8$6=versions$6&&versions$6.v8,match$6,version$7;v8$6&&(match$6=v8$6.split("."),version$7=match$6[0]>0&&match$6[0]<4?1:+(match$6[0]+match$6[1]));!version$7&&userAgent$9&&(match$6=userAgent$9.match(/Edge\/(\d+)/),(!match$6||match$6[1]>=74)&&(match$6=userAgent$9.match(/Chrome\/(\d+)/),match$6&&(version$7=+match$6[1])));var engineV8Version$6=version$7,V8_VERSION$7=engineV8Version$6,fails$6$6=fails$a$4,nativeSymbol$6=!!Object.getOwnPropertySymbols&&!fails$6$6(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$7&&V8_VERSION$7<41}),NATIVE_SYMBOL$1$6=nativeSymbol$6,useSymbolAsUid$6=NATIVE_SYMBOL$1$6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$1$6=getBuiltIn$3$5,isCallable$8$6=isCallable$b$4,isPrototypeOf$1$5=objectIsPrototypeOf$6,USE_SYMBOL_AS_UID$1$6=useSymbolAsUid$6,$Object$2$6=Object,isSymbol$2$6=USE_SYMBOL_AS_UID$1$6?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$1$6("Symbol");return isCallable$8$6(k)&&isPrototypeOf$1$5(k.prototype,$Object$2$6(v))},$String$2$5=String,tryToString$1$6=function(v){try{return $String$2$5(v)}catch{return"Object"}},isCallable$7$6=isCallable$b$4,tryToString$a=tryToString$1$6,$TypeError$4$6=TypeError,aCallable$1$6=function(v){if(isCallable$7$6(v))return v;throw $TypeError$4$6(tryToString$a(v)+" is not a function")},aCallable$d=aCallable$1$6,getMethod$1$6=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$d(ie)},call$4$6=functionCall$6,isCallable$6$6=isCallable$b$4,isObject$4$6=isObject$5$6,$TypeError$3$6=TypeError,ordinaryToPrimitive$1$6=function(v,k){var ie,ae;if(k==="string"&&isCallable$6$6(ie=v.toString)&&!isObject$4$6(ae=call$4$6(ie,v))||isCallable$6$6(ie=v.valueOf)&&!isObject$4$6(ae=call$4$6(ie,v))||k!=="string"&&isCallable$6$6(ie=v.toString)&&!isObject$4$6(ae=call$4$6(ie,v)))return ae;throw $TypeError$3$6("Can't convert object to primitive value")},shared$3$6={exports:{}},global$7$6=global$a$5,defineProperty$2$5=Object.defineProperty,defineGlobalProperty$3$5=function(v,k){try{defineProperty$2$5(global$7$6,v,{value:k,configurable:!0,writable:!0})}catch{global$7$6[v]=k}return k},global$6$6=global$a$5,defineGlobalProperty$2$6=defineGlobalProperty$3$5,SHARED$6="__core-js_shared__",store$3$6=global$6$6[SHARED$6]||defineGlobalProperty$2$6(SHARED$6,{}),sharedStore$6=store$3$6,store$2$6=sharedStore$6;(shared$3$6.exports=function(v,k){return store$2$6[v]||(store$2$6[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$8=requireObjectCoercible$2$5,$Object$1$6=Object,toObject$2$4=function(v){return $Object$1$6(requireObjectCoercible$8(v))},uncurryThis$6$6=functionUncurryThis$6,toObject$1$6=toObject$2$4,hasOwnProperty$6=uncurryThis$6$6({}.hasOwnProperty),hasOwnProperty_1$6=Object.hasOwn||function v(k,ie){return hasOwnProperty$6(toObject$1$6(k),ie)},uncurryThis$5$6=functionUncurryThis$6,id$8=0,postfix$6=Math.random(),toString$1$6=uncurryThis$5$6(1 .toString),uid$2$6=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$1$6(++id$8+postfix$6,36)},global$5$6=global$a$5,shared$2$6=shared$3$6.exports,hasOwn$7$4=hasOwnProperty_1$6,uid$1$6=uid$2$6,NATIVE_SYMBOL$7=nativeSymbol$6,USE_SYMBOL_AS_UID$7=useSymbolAsUid$6,WellKnownSymbolsStore$6=shared$2$6("wks"),Symbol$1$6=global$5$6.Symbol,symbolFor$6=Symbol$1$6&&Symbol$1$6.for,createWellKnownSymbol$6=USE_SYMBOL_AS_UID$7?Symbol$1$6:Symbol$1$6&&Symbol$1$6.withoutSetter||uid$1$6,wellKnownSymbol$3$5=function(v){if(!hasOwn$7$4(WellKnownSymbolsStore$6,v)||!(NATIVE_SYMBOL$7||typeof WellKnownSymbolsStore$6[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$7&&hasOwn$7$4(Symbol$1$6,v)?WellKnownSymbolsStore$6[v]=Symbol$1$6[v]:USE_SYMBOL_AS_UID$7&&symbolFor$6?WellKnownSymbolsStore$6[v]=symbolFor$6(k):WellKnownSymbolsStore$6[v]=createWellKnownSymbol$6(k)}return WellKnownSymbolsStore$6[v]},call$3$6=functionCall$6,isObject$3$6=isObject$5$6,isSymbol$1$6=isSymbol$2$6,getMethod$9=getMethod$1$6,ordinaryToPrimitive$7=ordinaryToPrimitive$1$6,wellKnownSymbol$2$5=wellKnownSymbol$3$5,$TypeError$2$6=TypeError,TO_PRIMITIVE$6=wellKnownSymbol$2$5("toPrimitive"),toPrimitive$1$6=function(v,k){if(!isObject$3$6(v)||isSymbol$1$6(v))return v;var ie=getMethod$9(v,TO_PRIMITIVE$6),ae;if(ie){if(k===void 0&&(k="default"),ae=call$3$6(ie,v,k),!isObject$3$6(ae)||isSymbol$1$6(ae))return ae;throw $TypeError$2$6("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$7(v,k)},toPrimitive$8=toPrimitive$1$6,isSymbol$9=isSymbol$2$6,toPropertyKey$2$5=function(v){var k=toPrimitive$8(v,"string");return isSymbol$9(k)?k:k+""},global$4$6=global$a$5,isObject$2$6=isObject$5$6,document2=global$4$6.document,EXISTS$1$6=isObject$2$6(document2)&&isObject$2$6(document2.createElement),documentCreateElement$7=function(v){return EXISTS$1$6?document2.createElement(v):{}},DESCRIPTORS$7$5=descriptors$6,fails$5$6=fails$a$4,createElement$7=documentCreateElement$7,ie8DomDefine$6=!DESCRIPTORS$7$5&&!fails$5$6(function(){return Object.defineProperty(createElement$7("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$6$5=descriptors$6,call$2$6=functionCall$6,propertyIsEnumerableModule$1$4=objectPropertyIsEnumerable$5,createPropertyDescriptor$1$6=createPropertyDescriptor$2$5,toIndexedObject$2$5=toIndexedObject$3$5,toPropertyKey$1$6=toPropertyKey$2$5,hasOwn$6$5=hasOwnProperty_1$6,IE8_DOM_DEFINE$1$5=ie8DomDefine$6,$getOwnPropertyDescriptor$1$5=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$5.f=DESCRIPTORS$6$5?$getOwnPropertyDescriptor$1$5:function v(k,ie){if(k=toIndexedObject$2$5(k),ie=toPropertyKey$1$6(ie),IE8_DOM_DEFINE$1$5)try{return $getOwnPropertyDescriptor$1$5(k,ie)}catch{}if(hasOwn$6$5(k,ie))return createPropertyDescriptor$1$6(!call$2$6(propertyIsEnumerableModule$1$4.f,k,ie),k[ie])};var objectDefineProperty$6={},DESCRIPTORS$5$6=descriptors$6,fails$4$6=fails$a$4,v8PrototypeDefineBug$6=DESCRIPTORS$5$6&&fails$4$6(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$1$6=isObject$5$6,$String$1$6=String,$TypeError$1$6=TypeError,anObject$4$4=function(v){if(isObject$1$6(v))return v;throw $TypeError$1$6($String$1$6(v)+" is not an object")},DESCRIPTORS$4$6=descriptors$6,IE8_DOM_DEFINE$7=ie8DomDefine$6,V8_PROTOTYPE_DEFINE_BUG$7=v8PrototypeDefineBug$6,anObject$3$5=anObject$4$4,toPropertyKey$a=toPropertyKey$2$5,$TypeError$h=TypeError,$defineProperty$6=Object.defineProperty,$getOwnPropertyDescriptor$7=Object.getOwnPropertyDescriptor,ENUMERABLE$6="enumerable",CONFIGURABLE$1$6="configurable",WRITABLE$6="writable";objectDefineProperty$6.f=DESCRIPTORS$4$6?V8_PROTOTYPE_DEFINE_BUG$7?function v(k,ie,ae){if(anObject$3$5(k),ie=toPropertyKey$a(ie),anObject$3$5(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$6 in ae&&!ae[WRITABLE$6]){var ce=$getOwnPropertyDescriptor$7(k,ie);ce&&ce[WRITABLE$6]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$6 in ae?ae[CONFIGURABLE$1$6]:ce[CONFIGURABLE$1$6],enumerable:ENUMERABLE$6 in ae?ae[ENUMERABLE$6]:ce[ENUMERABLE$6],writable:!1})}return $defineProperty$6(k,ie,ae)}:$defineProperty$6:function v(k,ie,ae){if(anObject$3$5(k),ie=toPropertyKey$a(ie),anObject$3$5(ae),IE8_DOM_DEFINE$7)try{return $defineProperty$6(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$h("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$3$6=descriptors$6,definePropertyModule$2$5=objectDefineProperty$6,createPropertyDescriptor$b=createPropertyDescriptor$2$5,createNonEnumerableProperty$2$5=DESCRIPTORS$3$6?function(v,k,ie){return definePropertyModule$2$5.f(v,k,createPropertyDescriptor$b(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$6={exports:{}},DESCRIPTORS$2$6=descriptors$6,hasOwn$5$5=hasOwnProperty_1$6,FunctionPrototype$8=Function.prototype,getDescriptor$6=DESCRIPTORS$2$6&&Object.getOwnPropertyDescriptor,EXISTS$7=hasOwn$5$5(FunctionPrototype$8,"name"),PROPER$6=EXISTS$7&&function v(){}.name==="something",CONFIGURABLE$7=EXISTS$7&&(!DESCRIPTORS$2$6||DESCRIPTORS$2$6&&getDescriptor$6(FunctionPrototype$8,"name").configurable),functionName$6={EXISTS:EXISTS$7,PROPER:PROPER$6,CONFIGURABLE:CONFIGURABLE$7},uncurryThis$4$6=functionUncurryThis$6,isCallable$5$6=isCallable$b$4,store$1$6=sharedStore$6,functionToString$6=uncurryThis$4$6(Function.toString);isCallable$5$6(store$1$6.inspectSource)||(store$1$6.inspectSource=function(v){return functionToString$6(v)});var inspectSource$2$6=store$1$6.inspectSource,global$3$6=global$a$5,isCallable$4$6=isCallable$b$4,inspectSource$1$6=inspectSource$2$6,WeakMap$1$6=global$3$6.WeakMap,nativeWeakMap$6=isCallable$4$6(WeakMap$1$6)&&/native code/.test(inspectSource$1$6(WeakMap$1$6)),shared$1$6=shared$3$6.exports,uid$9=uid$2$6,keys$5=shared$1$6("keys"),sharedKey$1$6=function(v){return keys$5[v]||(keys$5[v]=uid$9(v))},hiddenKeys$3$5={},NATIVE_WEAK_MAP$6=nativeWeakMap$6,global$2$6=global$a$5,uncurryThis$3$6=functionUncurryThis$6,isObject$g=isObject$5$6,createNonEnumerableProperty$1$6=createNonEnumerableProperty$2$5,hasOwn$4$6=hasOwnProperty_1$6,shared$9=sharedStore$6,sharedKey$9=sharedKey$1$6,hiddenKeys$2$5=hiddenKeys$3$5,OBJECT_ALREADY_INITIALIZED$6="Object already initialized",TypeError$1$6=global$2$6.TypeError,WeakMap$8=global$2$6.WeakMap,set$7,get$7,has$6,enforce$6=function(v){return has$6(v)?get$7(v):set$7(v,{})},getterFor$6=function(v){return function(k){var ie;if(!isObject$g(k)||(ie=get$7(k)).type!==v)throw TypeError$1$6("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$6||shared$9.state?(store$9=shared$9.state||(shared$9.state=new WeakMap$8),wmget$6=uncurryThis$3$6(store$9.get),wmhas$6=uncurryThis$3$6(store$9.has),wmset$6=uncurryThis$3$6(store$9.set),set$7=function(v,k){if(wmhas$6(store$9,v))throw new TypeError$1$6(OBJECT_ALREADY_INITIALIZED$6);return k.facade=v,wmset$6(store$9,v,k),k},get$7=function(v){return wmget$6(store$9,v)||{}},has$6=function(v){return wmhas$6(store$9,v)}):(STATE$6=sharedKey$9("state"),hiddenKeys$2$5[STATE$6]=!0,set$7=function(v,k){if(hasOwn$4$6(v,STATE$6))throw new TypeError$1$6(OBJECT_ALREADY_INITIALIZED$6);return k.facade=v,createNonEnumerableProperty$1$6(v,STATE$6,k),k},get$7=function(v){return hasOwn$4$6(v,STATE$6)?v[STATE$6]:{}},has$6=function(v){return hasOwn$4$6(v,STATE$6)});var store$9,wmget$6,wmhas$6,wmset$6,STATE$6,internalState$6={set:set$7,get:get$7,has:has$6,enforce:enforce$6,getterFor:getterFor$6},fails$3$6=fails$a$4,isCallable$3$6=isCallable$b$4,hasOwn$3$6=hasOwnProperty_1$6,DESCRIPTORS$1$6=descriptors$6,CONFIGURABLE_FUNCTION_NAME$8=functionName$6.CONFIGURABLE,inspectSource$a=inspectSource$2$6,InternalStateModule$a=internalState$6,enforceInternalState$8=InternalStateModule$a.enforce,getInternalState$a=InternalStateModule$a.get,defineProperty$1$6=Object.defineProperty,CONFIGURABLE_LENGTH$6=DESCRIPTORS$1$6&&!fails$3$6(function(){return defineProperty$1$6(function(){},"length",{value:8}).length!==8}),TEMPLATE$6=String(String).split("String"),makeBuiltIn$1$6=makeBuiltIn$2$6.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$3$6(v,"name")||CONFIGURABLE_FUNCTION_NAME$8&&v.name!==k)&&(DESCRIPTORS$1$6?defineProperty$1$6(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$6&&ie&&hasOwn$3$6(ie,"arity")&&v.length!==ie.arity&&defineProperty$1$6(v,"length",{value:ie.arity});try{ie&&hasOwn$3$6(ie,"constructor")&&ie.constructor?DESCRIPTORS$1$6&&defineProperty$1$6(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$8(v);return hasOwn$3$6(ae,"source")||(ae.source=TEMPLATE$6.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$6(function v(){return isCallable$3$6(this)&&getInternalState$a(this).source||inspectSource$a(this)},"toString");var isCallable$2$6=isCallable$b$4,definePropertyModule$1$6=objectDefineProperty$6,makeBuiltIn$8=makeBuiltIn$2$6.exports,defineGlobalProperty$1$6=defineGlobalProperty$3$5,defineBuiltIn$2$4=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$2$6(ie)&&makeBuiltIn$8(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$6(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$1$6.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$5={},ceil$5=Math.ceil,floor$8=Math.floor,mathTrunc$5=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$8:ceil$5)(ie)},trunc2$5=mathTrunc$5,toIntegerOrInfinity$2$5=function(v){var k=+v;return k!==k||k===0?0:trunc2$5(k)},toIntegerOrInfinity$1$5=toIntegerOrInfinity$2$5,max$6=Math.max,min$1$5=Math.min,toAbsoluteIndex$1$5=function(v,k){var ie=toIntegerOrInfinity$1$5(v);return ie<0?max$6(ie+k,0):min$1$5(ie,k)},toIntegerOrInfinity$a=toIntegerOrInfinity$2$5,min$6=Math.min,toLength$1$5=function(v){return v>0?min$6(toIntegerOrInfinity$a(v),9007199254740991):0},toLength$a=toLength$1$5,lengthOfArrayLike$1$5=function(v){return toLength$a(v.length)},toIndexedObject$1$5=toIndexedObject$3$5,toAbsoluteIndex$9=toAbsoluteIndex$1$5,lengthOfArrayLike$b=lengthOfArrayLike$1$5,createMethod$6=function(v){return function(k,ie,ae){var ce=toIndexedObject$1$5(k),fe=lengthOfArrayLike$b(ce),le=toAbsoluteIndex$9(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$5={includes:createMethod$6(!0),indexOf:createMethod$6(!1)},uncurryThis$2$6=functionUncurryThis$6,hasOwn$2$6=hasOwnProperty_1$6,toIndexedObject$b=toIndexedObject$3$5,indexOf$5=arrayIncludes$5.indexOf,hiddenKeys$1$5=hiddenKeys$3$5,push$6=uncurryThis$2$6([].push),objectKeysInternal$5=function(v,k){var ie=toIndexedObject$b(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$2$6(hiddenKeys$1$5,fe)&&hasOwn$2$6(ie,fe)&&push$6(ce,fe);for(;k.length>ae;)hasOwn$2$6(ie,fe=k[ae++])&&(~indexOf$5(ce,fe)||push$6(ce,fe));return ce},enumBugKeys$2$4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$4=objectKeysInternal$5,enumBugKeys$1$5=enumBugKeys$2$4,hiddenKeys$9=enumBugKeys$1$5.concat("length","prototype");objectGetOwnPropertyNames$5.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$4(k,hiddenKeys$9)};var objectGetOwnPropertySymbols$5={};objectGetOwnPropertySymbols$5.f=Object.getOwnPropertySymbols;var getBuiltIn$e=getBuiltIn$3$5,uncurryThis$1$6=functionUncurryThis$6,getOwnPropertyNamesModule$5=objectGetOwnPropertyNames$5,getOwnPropertySymbolsModule$1$4=objectGetOwnPropertySymbols$5,anObject$2$6=anObject$4$4,concat$1$4=uncurryThis$1$6([].concat),ownKeys$1$5=getBuiltIn$e("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$5.f(anObject$2$6(k)),ae=getOwnPropertySymbolsModule$1$4.f;return ae?concat$1$4(ie,ae(k)):ie},hasOwn$1$6=hasOwnProperty_1$6,ownKeys2$5=ownKeys$1$5,getOwnPropertyDescriptorModule$6=objectGetOwnPropertyDescriptor$5,definePropertyModule$c=objectDefineProperty$6,copyConstructorProperties$1$5=function(v,k,ie){for(var ae=ownKeys2$5(k),ce=definePropertyModule$c.f,fe=getOwnPropertyDescriptorModule$6.f,le=0;lefe;)for(var pe=IndexedObject$7(arguments[fe++]),ye=le?concat$7(objectKeys$6(pe),le(pe)):objectKeys$6(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$j||call$1$6(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$4,$$a=_export$5,assign2$4=objectAssign$4;$$a({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$4},{assign:assign2$4});function __awaiter$8(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var wellKnownSymbol$1$6=wellKnownSymbol$3$5,TO_STRING_TAG$1$5=wellKnownSymbol$1$6("toStringTag"),test$5={};test$5[TO_STRING_TAG$1$5]="z";var toStringTagSupport$5=String(test$5)==="[object z]",TO_STRING_TAG_SUPPORT$5=toStringTagSupport$5,isCallable$o=isCallable$b$4,classofRaw$7=classofRaw$1$5,wellKnownSymbol$k=wellKnownSymbol$3$5,TO_STRING_TAG$8=wellKnownSymbol$k("toStringTag"),$Object$a=Object,CORRECT_ARGUMENTS$5=classofRaw$7(function(){return arguments}())=="Arguments",tryGet$5=function(v,k){try{return v[k]}catch{}},classof$1$5=TO_STRING_TAG_SUPPORT$5?classofRaw$7:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$5(k=$Object$a(v),TO_STRING_TAG$8))=="string"?ie:CORRECT_ARGUMENTS$5?classofRaw$7(k):(ae=classofRaw$7(k))=="Object"&&isCallable$o(k.callee)?"Arguments":ae},classof$e=classof$1$5,$String$9=String,toString2$4=function(v){if(classof$e(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$9(v)},anObject$1$6=anObject$4$4,regexpFlags$4=function(){var v=anObject$1$6(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$k=functionCall$6,hasOwn2$6=hasOwnProperty_1$6,isPrototypeOf$a=objectIsPrototypeOf$6,regExpFlags$4=regexpFlags$4,RegExpPrototype$1$4=RegExp.prototype,regexpGetFlags$4=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$4)&&!hasOwn2$6(v,"flags")&&isPrototypeOf$a(RegExpPrototype$1$4,v)?call$k(regExpFlags$4,v):k},PROPER_FUNCTION_NAME$6=functionName$6.PROPER,defineBuiltIn$c=defineBuiltIn$2$4,anObject$g=anObject$4$4,$toString$4=toString2$4,fails$s=fails$a$4,getRegExpFlags$4=regexpGetFlags$4,TO_STRING$4="toString",RegExpPrototype$5=RegExp.prototype,n$ToString$4=RegExpPrototype$5[TO_STRING$4],NOT_GENERIC$4=fails$s(function(){return n$ToString$4.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$4=PROPER_FUNCTION_NAME$6&&n$ToString$4.name!=TO_STRING$4;(NOT_GENERIC$4||INCORRECT_NAME$4)&&defineBuiltIn$c(RegExp.prototype,TO_STRING$4,function(){var k=anObject$g(this),ie=$toString$4(k.source),ae=$toString$4(getRegExpFlags$4(k));return"/"+ie+"/"+ae},{unsafe:!0});var initHereWallet=v=>__awaiter$8(void 0,void 0,void 0,function*(){const{store:k,logger:ie,emitter:ae,options:ce,defaultProvider:fe,defaultStrategy:le,metadata:ve}=v,pe=new import_core.HereWallet({networkId:ce.network.networkId,nodeUrl:ce.network.nodeUrl,defaultProvider:fe,defaultStrategy:le});function ye(){return __awaiter$8(this,void 0,void 0,function*(){ie.log("HereWallet:getAccounts");const me=yield pe.getAccounts(),Ee=[];for(let cr=0;cr__awaiter$8(this,void 0,void 0,function*(){return{id:"here-wallet",type:"injected",metadata:{name:"Here Wallet",description:"Mobile wallet for NEAR Protocol",useUrlAccountImport:!0,downloadUrl:"https://herewallet.app",iconUrl:k,deprecated:v,available:!0},init:ce=>initHereWallet(Object.assign(Object.assign({},ce),{defaultStrategy:ie,defaultProvider:ae}))}})}var nearAPI$2=__toESM(require_browser_index2$1(),1),commonjsGlobal$6=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$5=function(v){return v&&v.Math==Math&&v},global$m=check$5(typeof globalThis=="object"&&globalThis)||check$5(typeof window=="object"&&window)||check$5(typeof self=="object"&&self)||check$5(typeof commonjsGlobal$6=="object"&&commonjsGlobal$6)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$4={},fails$j$2=function(v){try{return!!v()}catch{return!0}},fails$i$2=fails$j$2,descriptors$5=!fails$i$2(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$h$2=fails$j$2,functionBindNative$5=!fails$h$2(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$3=functionBindNative$5,call$i=Function.prototype.call,functionCall$5=NATIVE_BIND$3$3?call$i.bind(call$i):function(){return call$i.apply(call$i,arguments)},objectPropertyIsEnumerable$4={},$propertyIsEnumerable$4={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$1=Object.getOwnPropertyDescriptor,NASHORN_BUG$4=getOwnPropertyDescriptor$2$1&&!$propertyIsEnumerable$4.call({1:2},1);objectPropertyIsEnumerable$4.f=NASHORN_BUG$4?function v(k){var ie=getOwnPropertyDescriptor$2$1(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$4;var createPropertyDescriptor$3$2=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2$3=functionBindNative$5,FunctionPrototype$2$3=Function.prototype,bind$5$1=FunctionPrototype$2$3.bind,call$h$1=FunctionPrototype$2$3.call,uncurryThis$j$2=NATIVE_BIND$2$3&&bind$5$1.bind(call$h$1,call$h$1),functionUncurryThis$5=NATIVE_BIND$2$3?function(v){return v&&uncurryThis$j$2(v)}:function(v){return v&&function(){return call$h$1.apply(v,arguments)}},uncurryThis$i$2=functionUncurryThis$5,toString$5$1=uncurryThis$i$2({}.toString),stringSlice$4$1=uncurryThis$i$2("".slice),classofRaw$1$4=function(v){return stringSlice$4$1(toString$5$1(v),8,-1)},uncurryThis$h$2=functionUncurryThis$5,fails$g$2=fails$j$2,classof$6$2=classofRaw$1$4,$Object$4$2=Object,split$4=uncurryThis$h$2("".split),indexedObject$4=fails$g$2(function(){return!$Object$4$2("z").propertyIsEnumerable(0)})?function(v){return classof$6$2(v)=="String"?split$4(v,""):$Object$4$2(v)}:$Object$4$2,$TypeError$c$1=TypeError,requireObjectCoercible$4$2=function(v){if(v==null)throw $TypeError$c$1("Can't call method on "+v);return v},IndexedObject$1$3=indexedObject$4,requireObjectCoercible$3$2=requireObjectCoercible$4$2,toIndexedObject$5$2=function(v){return IndexedObject$1$3(requireObjectCoercible$3$2(v))},isCallable$m$1=function(v){return typeof v=="function"},isCallable$l$1=isCallable$m$1,isObject$7$3=function(v){return typeof v=="object"?v!==null:isCallable$l$1(v)},global$l$1=global$m,isCallable$k$1=isCallable$m$1,aFunction$5=function(v){return isCallable$k$1(v)?v:void 0},getBuiltIn$8$1=function(v,k){return arguments.length<2?aFunction$5(global$l$1[v]):global$l$1[v]&&global$l$1[v][k]},uncurryThis$g$2=functionUncurryThis$5,objectIsPrototypeOf$5=uncurryThis$g$2({}.isPrototypeOf),getBuiltIn$7$1=getBuiltIn$8$1,engineUserAgent$5=getBuiltIn$7$1("navigator","userAgent")||"",global$k$1=global$m,userAgent$3$1=engineUserAgent$5,process$3$1=global$k$1.process,Deno$1$2=global$k$1.Deno,versions$5=process$3$1&&process$3$1.versions||Deno$1$2&&Deno$1$2.version,v8$5=versions$5&&versions$5.v8,match$5,version$6;v8$5&&(match$5=v8$5.split("."),version$6=match$5[0]>0&&match$5[0]<4?1:+(match$5[0]+match$5[1]));!version$6&&userAgent$3$1&&(match$5=userAgent$3$1.match(/Edge\/(\d+)/),(!match$5||match$5[1]>=74)&&(match$5=userAgent$3$1.match(/Chrome\/(\d+)/),match$5&&(version$6=+match$5[1])));var engineV8Version$5=version$6,V8_VERSION$1$1=engineV8Version$5,fails$f$2=fails$j$2,nativeSymbol$5=!!Object.getOwnPropertySymbols&&!fails$f$2(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$1&&V8_VERSION$1$1<41}),NATIVE_SYMBOL$1$5=nativeSymbol$5,useSymbolAsUid$5=NATIVE_SYMBOL$1$5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$6$3=getBuiltIn$8$1,isCallable$j$2=isCallable$m$1,isPrototypeOf$3$2=objectIsPrototypeOf$5,USE_SYMBOL_AS_UID$1$5=useSymbolAsUid$5,$Object$3$3=Object,isSymbol$2$5=USE_SYMBOL_AS_UID$1$5?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$3("Symbol");return isCallable$j$2(k)&&isPrototypeOf$3$2(k.prototype,$Object$3$3(v))},$String$3$2=String,tryToString$4$3=function(v){try{return $String$3$2(v)}catch{return"Object"}},isCallable$i$2=isCallable$m$1,tryToString$3$3=tryToString$4$3,$TypeError$b$2=TypeError,aCallable$7$1=function(v){if(isCallable$i$2(v))return v;throw $TypeError$b$2(tryToString$3$3(v)+" is not a function")},aCallable$6$1=aCallable$7$1,getMethod$4$1=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$6$1(ie)},call$g$2=functionCall$5,isCallable$h$3=isCallable$m$1,isObject$6$3=isObject$7$3,$TypeError$a$3=TypeError,ordinaryToPrimitive$1$5=function(v,k){var ie,ae;if(k==="string"&&isCallable$h$3(ie=v.toString)&&!isObject$6$3(ae=call$g$2(ie,v))||isCallable$h$3(ie=v.valueOf)&&!isObject$6$3(ae=call$g$2(ie,v))||k!=="string"&&isCallable$h$3(ie=v.toString)&&!isObject$6$3(ae=call$g$2(ie,v)))return ae;throw $TypeError$a$3("Can't convert object to primitive value")},shared$4$2={exports:{}},global$j$1=global$m,defineProperty$5$2=Object.defineProperty,defineGlobalProperty$3$4=function(v,k){try{defineProperty$5$2(global$j$1,v,{value:k,configurable:!0,writable:!0})}catch{global$j$1[v]=k}return k},global$i$2=global$m,defineGlobalProperty$2$5=defineGlobalProperty$3$4,SHARED$5="__core-js_shared__",store$3$5=global$i$2[SHARED$5]||defineGlobalProperty$2$5(SHARED$5,{}),sharedStore$5=store$3$5,store$2$5=sharedStore$5;(shared$4$2.exports=function(v,k){return store$2$5[v]||(store$2$5[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$2$4=requireObjectCoercible$4$2,$Object$2$5=Object,toObject$4$2=function(v){return $Object$2$5(requireObjectCoercible$2$4(v))},uncurryThis$f$2=functionUncurryThis$5,toObject$3$2=toObject$4$2,hasOwnProperty$5=uncurryThis$f$2({}.hasOwnProperty),hasOwnProperty_1$5=Object.hasOwn||function v(k,ie){return hasOwnProperty$5(toObject$3$2(k),ie)},uncurryThis$e$2=functionUncurryThis$5,id$7=0,postfix$5=Math.random(),toString$4$1=uncurryThis$e$2(1 .toString),uid$2$5=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$4$1(++id$7+postfix$5,36)},global$h$3=global$m,shared$3$5=shared$4$2.exports,hasOwn$a$2=hasOwnProperty_1$5,uid$1$5=uid$2$5,NATIVE_SYMBOL$6=nativeSymbol$5,USE_SYMBOL_AS_UID$6=useSymbolAsUid$5,WellKnownSymbolsStore$5=shared$3$5("wks"),Symbol$1$5=global$h$3.Symbol,symbolFor$5=Symbol$1$5&&Symbol$1$5.for,createWellKnownSymbol$5=USE_SYMBOL_AS_UID$6?Symbol$1$5:Symbol$1$5&&Symbol$1$5.withoutSetter||uid$1$5,wellKnownSymbol$g$2=function(v){if(!hasOwn$a$2(WellKnownSymbolsStore$5,v)||!(NATIVE_SYMBOL$6||typeof WellKnownSymbolsStore$5[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$6&&hasOwn$a$2(Symbol$1$5,v)?WellKnownSymbolsStore$5[v]=Symbol$1$5[v]:USE_SYMBOL_AS_UID$6&&symbolFor$5?WellKnownSymbolsStore$5[v]=symbolFor$5(k):WellKnownSymbolsStore$5[v]=createWellKnownSymbol$5(k)}return WellKnownSymbolsStore$5[v]},call$f$2=functionCall$5,isObject$5$5=isObject$7$3,isSymbol$1$5=isSymbol$2$5,getMethod$3$2=getMethod$4$1,ordinaryToPrimitive$6=ordinaryToPrimitive$1$5,wellKnownSymbol$f$2=wellKnownSymbol$g$2,$TypeError$9$3=TypeError,TO_PRIMITIVE$5=wellKnownSymbol$f$2("toPrimitive"),toPrimitive$1$5=function(v,k){if(!isObject$5$5(v)||isSymbol$1$5(v))return v;var ie=getMethod$3$2(v,TO_PRIMITIVE$5),ae;if(ie){if(k===void 0&&(k="default"),ae=call$f$2(ie,v,k),!isObject$5$5(ae)||isSymbol$1$5(ae))return ae;throw $TypeError$9$3("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$6(v,k)},toPrimitive$7=toPrimitive$1$5,isSymbol$8=isSymbol$2$5,toPropertyKey$2$4=function(v){var k=toPrimitive$7(v,"string");return isSymbol$8(k)?k:k+""},global$g$3=global$m,isObject$4$5=isObject$7$3,document$3$1=global$g$3.document,EXISTS$1$5=isObject$4$5(document$3$1)&&isObject$4$5(document$3$1.createElement),documentCreateElement$2$2=function(v){return EXISTS$1$5?document$3$1.createElement(v):{}},DESCRIPTORS$a$2=descriptors$5,fails$e$2=fails$j$2,createElement$1$1=documentCreateElement$2$2,ie8DomDefine$5=!DESCRIPTORS$a$2&&!fails$e$2(function(){return Object.defineProperty(createElement$1$1("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$9$2=descriptors$5,call$e$2=functionCall$5,propertyIsEnumerableModule$1$3=objectPropertyIsEnumerable$4,createPropertyDescriptor$2$4=createPropertyDescriptor$3$2,toIndexedObject$4$2=toIndexedObject$5$2,toPropertyKey$1$5=toPropertyKey$2$4,hasOwn$9$2=hasOwnProperty_1$5,IE8_DOM_DEFINE$1$4=ie8DomDefine$5,$getOwnPropertyDescriptor$1$4=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$4.f=DESCRIPTORS$9$2?$getOwnPropertyDescriptor$1$4:function v(k,ie){if(k=toIndexedObject$4$2(k),ie=toPropertyKey$1$5(ie),IE8_DOM_DEFINE$1$4)try{return $getOwnPropertyDescriptor$1$4(k,ie)}catch{}if(hasOwn$9$2(k,ie))return createPropertyDescriptor$2$4(!call$e$2(propertyIsEnumerableModule$1$3.f,k,ie),k[ie])};var objectDefineProperty$5={},DESCRIPTORS$8$2=descriptors$5,fails$d$2=fails$j$2,v8PrototypeDefineBug$5=DESCRIPTORS$8$2&&fails$d$2(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$3$5=isObject$7$3,$String$2$4=String,$TypeError$8$3=TypeError,anObject$e$1=function(v){if(isObject$3$5(v))return v;throw $TypeError$8$3($String$2$4(v)+" is not an object")},DESCRIPTORS$7$4=descriptors$5,IE8_DOM_DEFINE$6=ie8DomDefine$5,V8_PROTOTYPE_DEFINE_BUG$1$2=v8PrototypeDefineBug$5,anObject$d$1=anObject$e$1,toPropertyKey$9=toPropertyKey$2$4,$TypeError$7$3=TypeError,$defineProperty$5=Object.defineProperty,$getOwnPropertyDescriptor$6=Object.getOwnPropertyDescriptor,ENUMERABLE$5="enumerable",CONFIGURABLE$1$5="configurable",WRITABLE$5="writable";objectDefineProperty$5.f=DESCRIPTORS$7$4?V8_PROTOTYPE_DEFINE_BUG$1$2?function v(k,ie,ae){if(anObject$d$1(k),ie=toPropertyKey$9(ie),anObject$d$1(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$5 in ae&&!ae[WRITABLE$5]){var ce=$getOwnPropertyDescriptor$6(k,ie);ce&&ce[WRITABLE$5]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$5 in ae?ae[CONFIGURABLE$1$5]:ce[CONFIGURABLE$1$5],enumerable:ENUMERABLE$5 in ae?ae[ENUMERABLE$5]:ce[ENUMERABLE$5],writable:!1})}return $defineProperty$5(k,ie,ae)}:$defineProperty$5:function v(k,ie,ae){if(anObject$d$1(k),ie=toPropertyKey$9(ie),anObject$d$1(ae),IE8_DOM_DEFINE$6)try{return $defineProperty$5(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$7$3("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$6$4=descriptors$5,definePropertyModule$4$2=objectDefineProperty$5,createPropertyDescriptor$1$5=createPropertyDescriptor$3$2,createNonEnumerableProperty$5$2=DESCRIPTORS$6$4?function(v,k,ie){return definePropertyModule$4$2.f(v,k,createPropertyDescriptor$1$5(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$5={exports:{}},DESCRIPTORS$5$5=descriptors$5,hasOwn$8$3=hasOwnProperty_1$5,FunctionPrototype$1$5=Function.prototype,getDescriptor$5=DESCRIPTORS$5$5&&Object.getOwnPropertyDescriptor,EXISTS$6=hasOwn$8$3(FunctionPrototype$1$5,"name"),PROPER$5=EXISTS$6&&function v(){}.name==="something",CONFIGURABLE$6=EXISTS$6&&(!DESCRIPTORS$5$5||DESCRIPTORS$5$5&&getDescriptor$5(FunctionPrototype$1$5,"name").configurable),functionName$5={EXISTS:EXISTS$6,PROPER:PROPER$5,CONFIGURABLE:CONFIGURABLE$6},uncurryThis$d$3=functionUncurryThis$5,isCallable$g$3=isCallable$m$1,store$1$5=sharedStore$5,functionToString$5=uncurryThis$d$3(Function.toString);isCallable$g$3(store$1$5.inspectSource)||(store$1$5.inspectSource=function(v){return functionToString$5(v)});var inspectSource$4$1=store$1$5.inspectSource,global$f$3=global$m,isCallable$f$3=isCallable$m$1,inspectSource$3$3=inspectSource$4$1,WeakMap$1$5=global$f$3.WeakMap,nativeWeakMap$5=isCallable$f$3(WeakMap$1$5)&&/native code/.test(inspectSource$3$3(WeakMap$1$5)),shared$2$5=shared$4$2.exports,uid$8=uid$2$5,keys$4=shared$2$5("keys"),sharedKey$3$2=function(v){return keys$4[v]||(keys$4[v]=uid$8(v))},hiddenKeys$4$2={},NATIVE_WEAK_MAP$5=nativeWeakMap$5,global$e$3=global$m,uncurryThis$c$3=functionUncurryThis$5,isObject$2$5=isObject$7$3,createNonEnumerableProperty$4$2=createNonEnumerableProperty$5$2,hasOwn$7$3=hasOwnProperty_1$5,shared$1$5=sharedStore$5,sharedKey$2$2=sharedKey$3$2,hiddenKeys$3$4=hiddenKeys$4$2,OBJECT_ALREADY_INITIALIZED$5="Object already initialized",TypeError$2$3=global$e$3.TypeError,WeakMap$7=global$e$3.WeakMap,set$1$3,get$6,has$5,enforce$5=function(v){return has$5(v)?get$6(v):set$1$3(v,{})},getterFor$5=function(v){return function(k){var ie;if(!isObject$2$5(k)||(ie=get$6(k)).type!==v)throw TypeError$2$3("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$5||shared$1$5.state?(store$8=shared$1$5.state||(shared$1$5.state=new WeakMap$7),wmget$5=uncurryThis$c$3(store$8.get),wmhas$5=uncurryThis$c$3(store$8.has),wmset$5=uncurryThis$c$3(store$8.set),set$1$3=function(v,k){if(wmhas$5(store$8,v))throw new TypeError$2$3(OBJECT_ALREADY_INITIALIZED$5);return k.facade=v,wmset$5(store$8,v,k),k},get$6=function(v){return wmget$5(store$8,v)||{}},has$5=function(v){return wmhas$5(store$8,v)}):(STATE$5=sharedKey$2$2("state"),hiddenKeys$3$4[STATE$5]=!0,set$1$3=function(v,k){if(hasOwn$7$3(v,STATE$5))throw new TypeError$2$3(OBJECT_ALREADY_INITIALIZED$5);return k.facade=v,createNonEnumerableProperty$4$2(v,STATE$5,k),k},get$6=function(v){return hasOwn$7$3(v,STATE$5)?v[STATE$5]:{}},has$5=function(v){return hasOwn$7$3(v,STATE$5)});var store$8,wmget$5,wmhas$5,wmset$5,STATE$5,internalState$5={set:set$1$3,get:get$6,has:has$5,enforce:enforce$5,getterFor:getterFor$5},fails$c$2=fails$j$2,isCallable$e$3=isCallable$m$1,hasOwn$6$4=hasOwnProperty_1$5,DESCRIPTORS$4$5=descriptors$5,CONFIGURABLE_FUNCTION_NAME$1$2=functionName$5.CONFIGURABLE,inspectSource$2$5=inspectSource$4$1,InternalStateModule$2$2=internalState$5,enforceInternalState$7=InternalStateModule$2$2.enforce,getInternalState$2$2=InternalStateModule$2$2.get,defineProperty$4$2=Object.defineProperty,CONFIGURABLE_LENGTH$5=DESCRIPTORS$4$5&&!fails$c$2(function(){return defineProperty$4$2(function(){},"length",{value:8}).length!==8}),TEMPLATE$5=String(String).split("String"),makeBuiltIn$1$5=makeBuiltIn$2$5.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$6$4(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$2&&v.name!==k)&&(DESCRIPTORS$4$5?defineProperty$4$2(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$5&&ie&&hasOwn$6$4(ie,"arity")&&v.length!==ie.arity&&defineProperty$4$2(v,"length",{value:ie.arity});try{ie&&hasOwn$6$4(ie,"constructor")&&ie.constructor?DESCRIPTORS$4$5&&defineProperty$4$2(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$7(v);return hasOwn$6$4(ae,"source")||(ae.source=TEMPLATE$5.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$5(function v(){return isCallable$e$3(this)&&getInternalState$2$2(this).source||inspectSource$2$5(this)},"toString");var isCallable$d$3=isCallable$m$1,definePropertyModule$3$3=objectDefineProperty$5,makeBuiltIn$7=makeBuiltIn$2$5.exports,defineGlobalProperty$1$5=defineGlobalProperty$3$4,defineBuiltIn$7$2=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$d$3(ie)&&makeBuiltIn$7(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$5(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$3$3.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$4={},ceil$4=Math.ceil,floor$1$2=Math.floor,mathTrunc$4=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$1$2:ceil$4)(ie)},trunc2$4=mathTrunc$4,toIntegerOrInfinity$4$2=function(v){var k=+v;return k!==k||k===0?0:trunc2$4(k)},toIntegerOrInfinity$3$2=toIntegerOrInfinity$4$2,max$1$2=Math.max,min$2$2=Math.min,toAbsoluteIndex$1$4=function(v,k){var ie=toIntegerOrInfinity$3$2(v);return ie<0?max$1$2(ie+k,0):min$2$2(ie,k)},toIntegerOrInfinity$2$4=toIntegerOrInfinity$4$2,min$1$4=Math.min,toLength$2$2=function(v){return v>0?min$1$4(toIntegerOrInfinity$2$4(v),9007199254740991):0},toLength$1$4=toLength$2$2,lengthOfArrayLike$2$3=function(v){return toLength$1$4(v.length)},toIndexedObject$3$4=toIndexedObject$5$2,toAbsoluteIndex$8=toAbsoluteIndex$1$4,lengthOfArrayLike$1$4=lengthOfArrayLike$2$3,createMethod$1$2=function(v){return function(k,ie,ae){var ce=toIndexedObject$3$4(k),fe=lengthOfArrayLike$1$4(ce),le=toAbsoluteIndex$8(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$4={includes:createMethod$1$2(!0),indexOf:createMethod$1$2(!1)},uncurryThis$b$3=functionUncurryThis$5,hasOwn$5$4=hasOwnProperty_1$5,toIndexedObject$2$4=toIndexedObject$5$2,indexOf$1$2=arrayIncludes$4.indexOf,hiddenKeys$2$4=hiddenKeys$4$2,push$1$2=uncurryThis$b$3([].push),objectKeysInternal$4=function(v,k){var ie=toIndexedObject$2$4(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$5$4(hiddenKeys$2$4,fe)&&hasOwn$5$4(ie,fe)&&push$1$2(ce,fe);for(;k.length>ae;)hasOwn$5$4(ie,fe=k[ae++])&&(~indexOf$1$2(ce,fe)||push$1$2(ce,fe));return ce},enumBugKeys$3$2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$3=objectKeysInternal$4,enumBugKeys$2$3=enumBugKeys$3$2,hiddenKeys$1$4=enumBugKeys$2$3.concat("length","prototype");objectGetOwnPropertyNames$4.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$3(k,hiddenKeys$1$4)};var objectGetOwnPropertySymbols$4={};objectGetOwnPropertySymbols$4.f=Object.getOwnPropertySymbols;var getBuiltIn$5$3=getBuiltIn$8$1,uncurryThis$a$4=functionUncurryThis$5,getOwnPropertyNamesModule$4=objectGetOwnPropertyNames$4,getOwnPropertySymbolsModule$1$3=objectGetOwnPropertySymbols$4,anObject$c$2=anObject$e$1,concat$2$1=uncurryThis$a$4([].concat),ownKeys$1$4=getBuiltIn$5$3("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$4.f(anObject$c$2(k)),ae=getOwnPropertySymbolsModule$1$3.f;return ae?concat$2$1(ie,ae(k)):ie},hasOwn$4$5=hasOwnProperty_1$5,ownKeys2$4=ownKeys$1$4,getOwnPropertyDescriptorModule$5=objectGetOwnPropertyDescriptor$4,definePropertyModule$2$4=objectDefineProperty$5,copyConstructorProperties$1$4=function(v,k,ie){for(var ae=ownKeys2$4(k),ce=definePropertyModule$2$4.f,fe=getOwnPropertyDescriptorModule$5.f,le=0;lefe;)for(var pe=IndexedObject$6(arguments[fe++]),ye=le?concat$1$3(objectKeys$1$3(pe),le(pe)):objectKeys$1$3(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$3$5||call$d$2(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$3,$$8$1=_export$4,assign2$3=objectAssign$3;$$8$1({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$3},{assign:assign2$3});var wellKnownSymbol$e$2=wellKnownSymbol$g$2,TO_STRING_TAG$3$2=wellKnownSymbol$e$2("toStringTag"),test$4={};test$4[TO_STRING_TAG$3$2]="z";var toStringTagSupport$4=String(test$4)==="[object z]",TO_STRING_TAG_SUPPORT$4=toStringTagSupport$4,isCallable$b$3=isCallable$m$1,classofRaw$6=classofRaw$1$4,wellKnownSymbol$d$2=wellKnownSymbol$g$2,TO_STRING_TAG$2$3=wellKnownSymbol$d$2("toStringTag"),$Object$1$5=Object,CORRECT_ARGUMENTS$4=classofRaw$6(function(){return arguments}())=="Arguments",tryGet$4=function(v,k){try{return v[k]}catch{}},classof$5$2=TO_STRING_TAG_SUPPORT$4?classofRaw$6:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$4(k=$Object$1$5(v),TO_STRING_TAG$2$3))=="string"?ie:CORRECT_ARGUMENTS$4?classofRaw$6(k):(ae=classofRaw$6(k))=="Object"&&isCallable$b$3(k.callee)?"Arguments":ae},classof$4$3=classof$5$2,$String$1$5=String,toString$3$2=function(v){if(classof$4$3(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$1$5(v)},anObject$b$2=anObject$e$1,regexpFlags$1$2=function(){var v=anObject$b$2(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$c$3=functionCall$5,hasOwn$3$5=hasOwnProperty_1$5,isPrototypeOf$2$3=objectIsPrototypeOf$5,regExpFlags$3=regexpFlags$1$2,RegExpPrototype$2$2=RegExp.prototype,regexpGetFlags$3=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$2$2)&&!hasOwn$3$5(v,"flags")&&isPrototypeOf$2$3(RegExpPrototype$2$2,v)?call$c$3(regExpFlags$3,v):k},PROPER_FUNCTION_NAME$1$2=functionName$5.PROPER,defineBuiltIn$5$2=defineBuiltIn$7$2,anObject$a$2=anObject$e$1,$toString$3=toString$3$2,fails$9$4=fails$j$2,getRegExpFlags$3=regexpGetFlags$3,TO_STRING$3="toString",RegExpPrototype$1$3=RegExp.prototype,n$ToString$3=RegExpPrototype$1$3[TO_STRING$3],NOT_GENERIC$3=fails$9$4(function(){return n$ToString$3.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$3=PROPER_FUNCTION_NAME$1$2&&n$ToString$3.name!=TO_STRING$3;(NOT_GENERIC$3||INCORRECT_NAME$3)&&defineBuiltIn$5$2(RegExp.prototype,TO_STRING$3,function(){var k=anObject$a$2(this),ie=$toString$3(k.source),ae=$toString$3(getRegExpFlags$3(k));return"/"+ie+"/"+ae},{unsafe:!0});var objectDefineProperties$2={},DESCRIPTORS$2$5=descriptors$5,V8_PROTOTYPE_DEFINE_BUG$6=v8PrototypeDefineBug$5,definePropertyModule$1$5=objectDefineProperty$5,anObject$9$2=anObject$e$1,toIndexedObject$1$4=toIndexedObject$5$2,objectKeys$5=objectKeys$2$2;objectDefineProperties$2.f=DESCRIPTORS$2$5&&!V8_PROTOTYPE_DEFINE_BUG$6?Object.defineProperties:function v(k,ie){anObject$9$2(k);for(var ae=toIndexedObject$1$4(ie),ce=objectKeys$5(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$1$5.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$4$3=getBuiltIn$8$1,html$2$1=getBuiltIn$4$3("document","documentElement"),anObject$8$3=anObject$e$1,definePropertiesModule$2=objectDefineProperties$2,enumBugKeys$7=enumBugKeys$3$2,hiddenKeys$8=hiddenKeys$4$2,html$1$3=html$2$1,documentCreateElement$1$2=documentCreateElement$2$2,sharedKey$1$5=sharedKey$3$2,GT$2=">",LT$2="<",PROTOTYPE$3="prototype",SCRIPT$2="script",IE_PROTO$1$2=sharedKey$1$5("IE_PROTO"),EmptyConstructor$2=function(){},scriptTag$2=function(v){return LT$2+SCRIPT$2+GT$2+v+LT$2+"/"+SCRIPT$2+GT$2},NullProtoObjectViaActiveX$2=function(v){v.write(scriptTag$2("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$2=function(){var v=documentCreateElement$1$2("iframe"),k="java"+SCRIPT$2+":",ie;return v.style.display="none",html$1$3.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$2("document.F=Object")),ie.close(),ie.F},activeXDocument$2,NullProtoObject$2=function(){try{activeXDocument$2=new ActiveXObject("htmlfile")}catch{}NullProtoObject$2=typeof document<"u"?document.domain&&activeXDocument$2?NullProtoObjectViaActiveX$2(activeXDocument$2):NullProtoObjectViaIFrame$2():NullProtoObjectViaActiveX$2(activeXDocument$2);for(var v=enumBugKeys$7.length;v--;)delete NullProtoObject$2[PROTOTYPE$3][enumBugKeys$7[v]];return NullProtoObject$2()};hiddenKeys$8[IE_PROTO$1$2]=!0;var objectCreate$2=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$2[PROTOTYPE$3]=anObject$8$3(k),ae=new EmptyConstructor$2,EmptyConstructor$2[PROTOTYPE$3]=null,ae[IE_PROTO$1$2]=k):ae=NullProtoObject$2(),ie===void 0?ae:definePropertiesModule$2.f(ae,ie)},wellKnownSymbol$c$2=wellKnownSymbol$g$2,create$2$2=objectCreate$2,defineProperty$2$4=objectDefineProperty$5.f,UNSCOPABLES$2=wellKnownSymbol$c$2("unscopables"),ArrayPrototype$1$2=Array.prototype;ArrayPrototype$1$2[UNSCOPABLES$2]==null&&defineProperty$2$4(ArrayPrototype$1$2,UNSCOPABLES$2,{configurable:!0,value:create$2$2(null)});var addToUnscopables$1$2=function(v){ArrayPrototype$1$2[UNSCOPABLES$2][v]=!0},iterators$3={},fails$8$4=fails$j$2,correctPrototypeGetter$2=!fails$8$4(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype}),hasOwn$2$5=hasOwnProperty_1$5,isCallable$a$5=isCallable$m$1,toObject$1$5=toObject$4$2,sharedKey$8=sharedKey$3$2,CORRECT_PROTOTYPE_GETTER$2=correctPrototypeGetter$2,IE_PROTO$3=sharedKey$8("IE_PROTO"),$Object$9=Object,ObjectPrototype$4=$Object$9.prototype,objectGetPrototypeOf$2=CORRECT_PROTOTYPE_GETTER$2?$Object$9.getPrototypeOf:function(v){var k=toObject$1$5(v);if(hasOwn$2$5(k,IE_PROTO$3))return k[IE_PROTO$3];var ie=k.constructor;return isCallable$a$5(ie)&&k instanceof ie?ie.prototype:k instanceof $Object$9?ObjectPrototype$4:null},fails$7$5=fails$j$2,isCallable$9$5=isCallable$m$1,getPrototypeOf$1$2=objectGetPrototypeOf$2,defineBuiltIn$4$2=defineBuiltIn$7$2,wellKnownSymbol$b$2=wellKnownSymbol$g$2,ITERATOR$5$2=wellKnownSymbol$b$2("iterator"),BUGGY_SAFARI_ITERATORS$1$2=!1,IteratorPrototype$2$2,PrototypeOfArrayIteratorPrototype$2,arrayIterator$2;[].keys&&(arrayIterator$2=[].keys(),"next"in arrayIterator$2?(PrototypeOfArrayIteratorPrototype$2=getPrototypeOf$1$2(getPrototypeOf$1$2(arrayIterator$2)),PrototypeOfArrayIteratorPrototype$2!==Object.prototype&&(IteratorPrototype$2$2=PrototypeOfArrayIteratorPrototype$2)):BUGGY_SAFARI_ITERATORS$1$2=!0);var NEW_ITERATOR_PROTOTYPE$2=IteratorPrototype$2$2==null||fails$7$5(function(){var v={};return IteratorPrototype$2$2[ITERATOR$5$2].call(v)!==v});NEW_ITERATOR_PROTOTYPE$2&&(IteratorPrototype$2$2={});isCallable$9$5(IteratorPrototype$2$2[ITERATOR$5$2])||defineBuiltIn$4$2(IteratorPrototype$2$2,ITERATOR$5$2,function(){return this});var iteratorsCore$2={IteratorPrototype:IteratorPrototype$2$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1$2},defineProperty$1$5=objectDefineProperty$5.f,hasOwn$1$5=hasOwnProperty_1$5,wellKnownSymbol$a$3=wellKnownSymbol$g$2,TO_STRING_TAG$1$4=wellKnownSymbol$a$3("toStringTag"),setToStringTag$3$2=function(v,k,ie){v&&!ie&&(v=v.prototype),v&&!hasOwn$1$5(v,TO_STRING_TAG$1$4)&&defineProperty$1$5(v,TO_STRING_TAG$1$4,{configurable:!0,value:k})},IteratorPrototype$1$2=iteratorsCore$2.IteratorPrototype,create$1$2=objectCreate$2,createPropertyDescriptor$a=createPropertyDescriptor$3$2,setToStringTag$2$2=setToStringTag$3$2,Iterators$4$2=iterators$3,returnThis$1$2=function(){return this},createIteratorConstructor$1$2=function(v,k,ie,ae){var ce=k+" Iterator";return v.prototype=create$1$2(IteratorPrototype$1$2,{next:createPropertyDescriptor$a(+!ae,ie)}),setToStringTag$2$2(v,ce,!1),Iterators$4$2[ce]=returnThis$1$2,v},isCallable$8$5=isCallable$m$1,$String$8=String,$TypeError$6$3=TypeError,aPossiblePrototype$1$3=function(v){if(typeof v=="object"||isCallable$8$5(v))return v;throw $TypeError$6$3("Can't set "+$String$8(v)+" as a prototype")},uncurryThis$8$4=functionUncurryThis$5,anObject$7$3=anObject$e$1,aPossiblePrototype$4=aPossiblePrototype$1$3,objectSetPrototypeOf$3=Object.setPrototypeOf||("__proto__"in{}?function(){var v=!1,k={},ie;try{ie=uncurryThis$8$4(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),ie(k,[]),v=k instanceof Array}catch{}return function(ce,fe){return anObject$7$3(ce),aPossiblePrototype$4(fe),v?ie(ce,fe):ce.__proto__=fe,ce}}():void 0),$$7$1=_export$4,call$b$3=functionCall$5,FunctionName$3=functionName$5,isCallable$7$5=isCallable$m$1,createIteratorConstructor$3=createIteratorConstructor$1$2,getPrototypeOf$5=objectGetPrototypeOf$2,setPrototypeOf$1$2=objectSetPrototypeOf$3,setToStringTag$1$3=setToStringTag$3$2,createNonEnumerableProperty$2$4=createNonEnumerableProperty$5$2,defineBuiltIn$3$3=defineBuiltIn$7$2,wellKnownSymbol$9$3=wellKnownSymbol$g$2,Iterators$3$2=iterators$3,IteratorsCore$2=iteratorsCore$2,PROPER_FUNCTION_NAME$5=FunctionName$3.PROPER,CONFIGURABLE_FUNCTION_NAME$7=FunctionName$3.CONFIGURABLE,IteratorPrototype$4=IteratorsCore$2.IteratorPrototype,BUGGY_SAFARI_ITERATORS$3=IteratorsCore$2.BUGGY_SAFARI_ITERATORS,ITERATOR$4$2=wellKnownSymbol$9$3("iterator"),KEYS$2="keys",VALUES$2="values",ENTRIES$2="entries",returnThis$3=function(){return this},defineIterator$1$2=function(v,k,ie,ae,ce,fe,le){createIteratorConstructor$3(ie,k,ae);var ve=function(ur){if(ur===ce&&cr)return cr;if(!BUGGY_SAFARI_ITERATORS$3&&ur in me)return me[ur];switch(ur){case KEYS$2:return function(){return new ie(this,ur)};case VALUES$2:return function(){return new ie(this,ur)};case ENTRIES$2:return function(){return new ie(this,ur)}}return function(){return new ie(this)}},pe=k+" Iterator",ye=!1,me=v.prototype,Ee=me[ITERATOR$4$2]||me["@@iterator"]||ce&&me[ce],cr=!BUGGY_SAFARI_ITERATORS$3&&Ee||ve(ce),Br=k=="Array"&&me.entries||Ee,$r,Pr,Or;if(Br&&($r=getPrototypeOf$5(Br.call(new v)),$r!==Object.prototype&&$r.next&&(getPrototypeOf$5($r)!==IteratorPrototype$4&&(setPrototypeOf$1$2?setPrototypeOf$1$2($r,IteratorPrototype$4):isCallable$7$5($r[ITERATOR$4$2])||defineBuiltIn$3$3($r,ITERATOR$4$2,returnThis$3)),setToStringTag$1$3($r,pe,!0))),PROPER_FUNCTION_NAME$5&&ce==VALUES$2&&Ee&&Ee.name!==VALUES$2&&(CONFIGURABLE_FUNCTION_NAME$7?createNonEnumerableProperty$2$4(me,"name",VALUES$2):(ye=!0,cr=function(){return call$b$3(Ee,this)})),ce)if(Pr={values:ve(VALUES$2),keys:fe?cr:ve(KEYS$2),entries:ve(ENTRIES$2)},le)for(Or in Pr)(BUGGY_SAFARI_ITERATORS$3||ye||!(Or in me))&&defineBuiltIn$3$3(me,Or,Pr[Or]);else $$7$1({target:k,proto:!0,forced:BUGGY_SAFARI_ITERATORS$3||ye},Pr);return me[ITERATOR$4$2]!==cr&&defineBuiltIn$3$3(me,ITERATOR$4$2,cr,{name:ce}),Iterators$3$2[k]=cr,Pr},toIndexedObject$a=toIndexedObject$5$2,addToUnscopables$3=addToUnscopables$1$2,Iterators$2$2=iterators$3,InternalStateModule$1$3=internalState$5,defineProperty3$4=objectDefineProperty$5.f,defineIterator$3=defineIterator$1$2,DESCRIPTORS$1$5=descriptors$5,ARRAY_ITERATOR$2="Array Iterator",setInternalState$1$2=InternalStateModule$1$3.set,getInternalState$1$2=InternalStateModule$1$3.getterFor(ARRAY_ITERATOR$2),es_array_iterator$1=defineIterator$3(Array,"Array",function(v,k){setInternalState$1$2(this,{type:ARRAY_ITERATOR$2,target:toIndexedObject$a(v),index:0,kind:k})},function(){var v=getInternalState$1$2(this),k=v.target,ie=v.kind,ae=v.index++;return!k||ae>=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$2=Iterators$2$2.Arguments=Iterators$2$2.Array;addToUnscopables$3("keys");addToUnscopables$3("values");addToUnscopables$3("entries");if(DESCRIPTORS$1$5&&values$2.name!=="values")try{defineProperty3$4(values$2,"name",{value:"values"})}catch(v){}var classof$3$3=classofRaw$1$4,global$c$3=global$m,engineIsNode$1=classof$3$3(global$c$3.process)=="process",getBuiltIn$3$4=getBuiltIn$8$1,definePropertyModule$b=objectDefineProperty$5,wellKnownSymbol$8$3=wellKnownSymbol$g$2,DESCRIPTORS$i=descriptors$5,SPECIES$3$2=wellKnownSymbol$8$3("species"),setSpecies$1$3=function(v){var k=getBuiltIn$3$4(v),ie=definePropertyModule$b.f;DESCRIPTORS$i&&k&&!k[SPECIES$3$2]&&ie(k,SPECIES$3$2,{configurable:!0,get:function(){return this}})},isPrototypeOf$1$4=objectIsPrototypeOf$5,$TypeError$5$5=TypeError,anInstance$1$3=function(v,k){if(isPrototypeOf$1$4(k,v))return v;throw $TypeError$5$5("Incorrect invocation")},uncurryThis$7$4=functionUncurryThis$5,fails$6$5=fails$j$2,isCallable$6$5=isCallable$m$1,classof$2$3=classof$5$2,getBuiltIn$2$5=getBuiltIn$8$1,inspectSource$1$5=inspectSource$4$1,noop$3=function(){},empty$3=[],construct$3=getBuiltIn$2$5("Reflect","construct"),constructorRegExp$3=/^\s*(?:class|function)\b/,exec$1$2=uncurryThis$7$4(constructorRegExp$3.exec),INCORRECT_TO_STRING$3=!constructorRegExp$3.exec(noop$3),isConstructorModern$3=function v(k){if(!isCallable$6$5(k))return!1;try{return construct$3(noop$3,empty$3,k),!0}catch{return!1}},isConstructorLegacy$3=function v(k){if(!isCallable$6$5(k))return!1;switch(classof$2$3(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$3||!!exec$1$2(constructorRegExp$3,inspectSource$1$5(k))}catch{return!0}};isConstructorLegacy$3.sham=!0;var isConstructor$1$3=!construct$3||fails$6$5(function(){var v;return isConstructorModern$3(isConstructorModern$3.call)||!isConstructorModern$3(Object)||!isConstructorModern$3(function(){v=!0})||v})?isConstructorLegacy$3:isConstructorModern$3,isConstructor3$3=isConstructor$1$3,tryToString$2$3=tryToString$4$3,$TypeError$4$5=TypeError,aConstructor$1$3=function(v){if(isConstructor3$3(v))return v;throw $TypeError$4$5(tryToString$2$3(v)+" is not a constructor")},anObject$6$3=anObject$e$1,aConstructor$5=aConstructor$1$3,wellKnownSymbol$7$3=wellKnownSymbol$g$2,SPECIES$2$3=wellKnownSymbol$7$3("species"),speciesConstructor$1$3=function(v,k){var ie=anObject$6$3(v).constructor,ae;return ie===void 0||(ae=anObject$6$3(ie)[SPECIES$2$3])==null?k:aConstructor$5(ae)},NATIVE_BIND$1$5=functionBindNative$5,FunctionPrototype$7=Function.prototype,apply$2$2=FunctionPrototype$7.apply,call$a$3=FunctionPrototype$7.call,functionApply$3=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$1$5?call$a$3.bind(apply$2$2):function(){return call$a$3.apply(apply$2$2,arguments)}),uncurryThis$6$5=functionUncurryThis$5,aCallable$5$1=aCallable$7$1,NATIVE_BIND$8=functionBindNative$5,bind$4$1=uncurryThis$6$5(uncurryThis$6$5.bind),functionBindContext$3=function(v,k){return aCallable$5$1(v),k===void 0?v:NATIVE_BIND$8?bind$4$1(v,k):function(){return v.apply(k,arguments)}},uncurryThis$5$5=functionUncurryThis$5,arraySlice$1$3=uncurryThis$5$5([].slice),$TypeError$3$5=TypeError,validateArgumentsLength$1$1=function(v,k){if(v=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3$1(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$1$3]=ae,SUBCLASSING$1=ie.then(function(){})instanceof ae,SUBCLASSING$1?!k&&IS_BROWSER$1&&!NATIVE_PROMISE_REJECTION_EVENT$1$1:!0}),promiseConstructorDetection$1={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$1,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$1,SUBCLASSING:SUBCLASSING$1},newPromiseCapability$2$1={},aCallable$4$3=aCallable$7$1,PromiseCapability$1=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$3(k),this.reject=aCallable$4$3(ie)};newPromiseCapability$2$1.f=function(v){return new PromiseCapability$1(v)};var $$6$1=_export$4,IS_NODE$3=engineIsNode$1,global$5$5=global$m,call$9$3=functionCall$5,defineBuiltIn$2$3=defineBuiltIn$7$2,setPrototypeOf$7=objectSetPrototypeOf$3,setToStringTag$6=setToStringTag$3$2,setSpecies$4=setSpecies$1$3,aCallable$3$3=aCallable$7$1,isCallable$3$5=isCallable$m$1,isObject$1$5=isObject$7$3,anInstance$5=anInstance$1$3,speciesConstructor$4=speciesConstructor$1$3,task$2=task$1$1.set,microtask$2=microtask$1$1,hostReportErrors$2=hostReportErrors$1$1,perform$2$1=perform$3$1,Queue$2=queue$2,InternalStateModule$9=internalState$5,NativePromiseConstructor$2$1=promiseNativeConstructor$1,PromiseConstructorDetection$1=promiseConstructorDetection$1,newPromiseCapabilityModule$3$1=newPromiseCapability$2$1,PROMISE$1="Promise",FORCED_PROMISE_CONSTRUCTOR$4$1=PromiseConstructorDetection$1.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$2=PromiseConstructorDetection$1.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$1=PromiseConstructorDetection$1.SUBCLASSING,getInternalPromiseState$1=InternalStateModule$9.getterFor(PROMISE$1),setInternalState$5=InternalStateModule$9.set,NativePromisePrototype$1$1=NativePromiseConstructor$2$1&&NativePromiseConstructor$2$1.prototype,PromiseConstructor$1=NativePromiseConstructor$2$1,PromisePrototype$1=NativePromisePrototype$1$1,TypeError$1$5=global$5$5.TypeError,document$1$3=global$5$5.document,process$8=global$5$5.process,newPromiseCapability$1$1=newPromiseCapabilityModule$3$1.f,newGenericPromiseCapability$1=newPromiseCapability$1$1,DISPATCH_EVENT$1=!!(document$1$3&&document$1$3.createEvent&&global$5$5.dispatchEvent),UNHANDLED_REJECTION$1="unhandledrejection",REJECTION_HANDLED$1="rejectionhandled",PENDING$1=0,FULFILLED$1=1,REJECTED$1=2,HANDLED$1=1,UNHANDLED$1=2,Internal$1,OwnPromiseCapability$1,PromiseWrapper$1,nativeThen$1,isThenable$1=function(v){var k;return isObject$1$5(v)&&isCallable$3$5(k=v.then)?k:!1},callReaction$1=function(v,k){var ie=k.value,ae=k.state==FULFILLED$1,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$1&&onHandleUnhandled$1(k),k.rejection=HANDLED$1),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$5("Promise-chain cycle")):(ye=isThenable$1(pe))?call$9$3(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$2=function(v,k){v.notified||(v.notified=!0,microtask$2(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$1(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$1(v)}))},dispatchEvent$1=function(v,k,ie){var ae,ce;DISPATCH_EVENT$1?(ae=document$1$3.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$5$5.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$2&&(ce=global$5$5["on"+v])?ce(ae):v===UNHANDLED_REJECTION$1&&hostReportErrors$2("Unhandled promise rejection",ie)},onUnhandled$1=function(v){call$9$3(task$2,global$5$5,function(){var k=v.facade,ie=v.value,ae=isUnhandled$1(v),ce;if(ae&&(ce=perform$2$1(function(){IS_NODE$3?process$8.emit("unhandledRejection",ie,k):dispatchEvent$1(UNHANDLED_REJECTION$1,k,ie)}),v.rejection=IS_NODE$3||isUnhandled$1(v)?UNHANDLED$1:HANDLED$1,ce.error))throw ce.value})},isUnhandled$1=function(v){return v.rejection!==HANDLED$1&&!v.parent},onHandleUnhandled$1=function(v){call$9$3(task$2,global$5$5,function(){var k=v.facade;IS_NODE$3?process$8.emit("rejectionHandled",k):dispatchEvent$1(REJECTION_HANDLED$1,k,v.value)})},bind$1$3=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$1=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$1,notify$2(v,!0))},internalResolve$1=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$5("Promise can't be resolved itself");var ae=isThenable$1(k);ae?microtask$2(function(){var ce={done:!1};try{call$9$3(ae,k,bind$1$3(internalResolve$1,ce,v),bind$1$3(internalReject$1,ce,v))}catch(fe){internalReject$1(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$1,notify$2(v,!1))}catch(ce){internalReject$1({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$1&&(PromiseConstructor$1=function(k){anInstance$5(this,PromisePrototype$1),aCallable$3$3(k),call$9$3(Internal$1,this);var ie=getInternalPromiseState$1(this);try{k(bind$1$3(internalResolve$1,ie),bind$1$3(internalReject$1,ie))}catch(ae){internalReject$1(ie,ae)}},PromisePrototype$1=PromiseConstructor$1.prototype,Internal$1=function(k){setInternalState$5(this,{type:PROMISE$1,done:!1,notified:!1,parent:!1,reactions:new Queue$2,rejection:!1,state:PENDING$1,value:void 0})},Internal$1.prototype=defineBuiltIn$2$3(PromisePrototype$1,"then",function(k,ie){var ae=getInternalPromiseState$1(this),ce=newPromiseCapability$1$1(speciesConstructor$4(this,PromiseConstructor$1));return ae.parent=!0,ce.ok=isCallable$3$5(k)?k:!0,ce.fail=isCallable$3$5(ie)&&ie,ce.domain=IS_NODE$3?process$8.domain:void 0,ae.state==PENDING$1?ae.reactions.add(ce):microtask$2(function(){callReaction$1(ce,ae)}),ce.promise}),OwnPromiseCapability$1=function(){var v=new Internal$1,k=getInternalPromiseState$1(v);this.promise=v,this.resolve=bind$1$3(internalResolve$1,k),this.reject=bind$1$3(internalReject$1,k)},newPromiseCapabilityModule$3$1.f=newPromiseCapability$1$1=function(v){return v===PromiseConstructor$1||v===PromiseWrapper$1?new OwnPromiseCapability$1(v):newGenericPromiseCapability$1(v)},isCallable$3$5(NativePromiseConstructor$2$1)&&NativePromisePrototype$1$1!==Object.prototype)){nativeThen$1=NativePromisePrototype$1$1.then,NATIVE_PROMISE_SUBCLASSING$1||defineBuiltIn$2$3(NativePromisePrototype$1$1,"then",function(k,ie){var ae=this;return new PromiseConstructor$1(function(ce,fe){call$9$3(nativeThen$1,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1$1.constructor}catch{}setPrototypeOf$7&&setPrototypeOf$7(NativePromisePrototype$1$1,PromisePrototype$1)}$$6$1({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$1},{Promise:PromiseConstructor$1});setToStringTag$6(PromiseConstructor$1,PROMISE$1,!1);setSpecies$4(PROMISE$1);var wellKnownSymbol$5$3=wellKnownSymbol$g$2,Iterators$1$3=iterators$3,ITERATOR$3$2=wellKnownSymbol$5$3("iterator"),ArrayPrototype$4=Array.prototype,isArrayIteratorMethod$1$3=function(v){return v!==void 0&&(Iterators$1$3.Array===v||ArrayPrototype$4[ITERATOR$3$2]===v)},classof$1$4=classof$5$2,getMethod$2$3=getMethod$4$1,Iterators$7=iterators$3,wellKnownSymbol$4$3=wellKnownSymbol$g$2,ITERATOR$2$3=wellKnownSymbol$4$3("iterator"),getIteratorMethod$2$3=function(v){if(v!=null)return getMethod$2$3(v,ITERATOR$2$3)||getMethod$2$3(v,"@@iterator")||Iterators$7[classof$1$4(v)]},call$8$3=functionCall$5,aCallable$2$3=aCallable$7$1,anObject$5$3=anObject$e$1,tryToString$1$5=tryToString$4$3,getIteratorMethod$1$3=getIteratorMethod$2$3,$TypeError$2$5=TypeError,getIterator$1$3=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$3(v):k;if(aCallable$2$3(ie))return anObject$5$3(call$8$3(ie,v));throw $TypeError$2$5(tryToString$1$5(v)+" is not iterable")},call$7$3=functionCall$5,anObject$4$3=anObject$e$1,getMethod$1$5=getMethod$4$1,iteratorClose$1$1=function(v,k,ie){var ae,ce;anObject$4$3(v);try{if(ae=getMethod$1$5(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$7$3(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$4$3(ae),ie},bind$a=functionBindContext$3,call$6$3=functionCall$5,anObject$3$4=anObject$e$1,tryToString$9=tryToString$4$3,isArrayIteratorMethod$4=isArrayIteratorMethod$1$3,lengthOfArrayLike$a=lengthOfArrayLike$2$3,isPrototypeOf$9=objectIsPrototypeOf$5,getIterator$4=getIterator$1$3,getIteratorMethod$5=getIteratorMethod$2$3,iteratorClose$2=iteratorClose$1$1,$TypeError$1$5=TypeError,Result$1=function(v,k){this.stopped=v,this.result=k},ResultPrototype$1=Result$1.prototype,iterate$2$1=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$a(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$2(pe,"normal",ur),new Result$1(!0,ur)},Or=function(ur){return ce?(anObject$3$4(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$5(v),!ye)throw $TypeError$1$5(tryToString$9(v)+" is not iterable");if(isArrayIteratorMethod$4(ye)){for(me=0,Ee=lengthOfArrayLike$a(v);Ee>me;me++)if(cr=Or(v[me]),cr&&isPrototypeOf$9(ResultPrototype$1,cr))return cr;return new Result$1(!1)}pe=getIterator$4(v,ye)}for(Br=pe.next;!($r=call$6$3(Br,pe)).done;){try{cr=Or($r.value)}catch(ur){iteratorClose$2(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$9(ResultPrototype$1,cr))return cr}return new Result$1(!1)},wellKnownSymbol$3$4=wellKnownSymbol$g$2,ITERATOR$1$3=wellKnownSymbol$3$4("iterator"),SAFE_CLOSING$3=!1;try{called$3=0,iteratorWithReturn$3={next:function(){return{done:!!called$3++}},return:function(){SAFE_CLOSING$3=!0}},iteratorWithReturn$3[ITERATOR$1$3]=function(){return this},Array.from(iteratorWithReturn$3,function(){throw 2})}catch(v){}var called$3,iteratorWithReturn$3,checkCorrectnessOfIteration$1$3=function(v,k){if(!k&&!SAFE_CLOSING$3)return!1;var ie=!1;try{var ae={};ae[ITERATOR$1$3]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1$1=promiseNativeConstructor$1,checkCorrectnessOfIteration$4=checkCorrectnessOfIteration$1$3,FORCED_PROMISE_CONSTRUCTOR$3$1=promiseConstructorDetection$1.CONSTRUCTOR,promiseStaticsIncorrectIteration$1=FORCED_PROMISE_CONSTRUCTOR$3$1||!checkCorrectnessOfIteration$4(function(v){NativePromiseConstructor$1$1.all(v).then(void 0,function(){})}),$$5$1=_export$4,call$5$4=functionCall$5,aCallable$1$5=aCallable$7$1,newPromiseCapabilityModule$2$1=newPromiseCapability$2$1,perform$1$1=perform$3$1,iterate$1$1=iterate$2$1,PROMISE_STATICS_INCORRECT_ITERATION$1$1=promiseStaticsIncorrectIteration$1;$$5$1({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$1},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$1.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$1(function(){var ve=aCallable$1$5(ie.resolve),pe=[],ye=0,me=1;iterate$1$1(k,function(Ee){var cr=ye++,Br=!1;me++,call$5$4(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$4$2=_export$4,FORCED_PROMISE_CONSTRUCTOR$2$1=promiseConstructorDetection$1.CONSTRUCTOR,NativePromiseConstructor$4=promiseNativeConstructor$1,getBuiltIn$1$5=getBuiltIn$8$1,isCallable$2$5=isCallable$m$1,defineBuiltIn$1$5=defineBuiltIn$7$2,NativePromisePrototype$2=NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype;$$4$2({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$1,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$2$5(NativePromiseConstructor$4)&&(method$1=getBuiltIn$1$5("Promise").prototype.catch,NativePromisePrototype$2.catch!==method$1&&defineBuiltIn$1$5(NativePromisePrototype$2,"catch",method$1,{unsafe:!0}));var method$1,$$3$3=_export$4,call$4$5=functionCall$5,aCallable$c=aCallable$7$1,newPromiseCapabilityModule$1$1=newPromiseCapability$2$1,perform$4=perform$3$1,iterate$3=iterate$2$1,PROMISE_STATICS_INCORRECT_ITERATION$2=promiseStaticsIncorrectIteration$1;$$3$3({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$2},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$1.f(ie),ce=ae.reject,fe=perform$4(function(){var le=aCallable$c(ie.resolve);iterate$3(k,function(ve){call$4$5(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$2$3=_export$4,call$3$5=functionCall$5,newPromiseCapabilityModule$4=newPromiseCapability$2$1,FORCED_PROMISE_CONSTRUCTOR$1$1=promiseConstructorDetection$1.CONSTRUCTOR;$$2$3({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$1},{reject:function v(k){var ie=newPromiseCapabilityModule$4.f(this);return call$3$5(ie.reject,void 0,k),ie.promise}});var anObject$2$5=anObject$e$1,isObject$f=isObject$7$3,newPromiseCapability$3=newPromiseCapability$2$1,promiseResolve$1$1=function(v,k){if(anObject$2$5(v),isObject$f(k)&&k.constructor===v)return k;var ie=newPromiseCapability$3.f(v),ae=ie.resolve;return ae(k),ie.promise},$$1$3=_export$4,getBuiltIn$d=getBuiltIn$8$1,FORCED_PROMISE_CONSTRUCTOR$6=promiseConstructorDetection$1.CONSTRUCTOR,promiseResolve$2=promiseResolve$1$1;getBuiltIn$d("Promise");$$1$3({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$6},{resolve:function v(k){return promiseResolve$2(this,k)}});var domIterables$1={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$6=documentCreateElement$2$2,classList$1=documentCreateElement$6("span").classList,DOMTokenListPrototype$1$1=classList$1&&classList$1.constructor&&classList$1.constructor.prototype,domTokenListPrototype$1=DOMTokenListPrototype$1$1===Object.prototype?void 0:DOMTokenListPrototype$1$1,global$4$5=global$m,DOMIterables$1=domIterables$1,DOMTokenListPrototype$2=domTokenListPrototype$1,ArrayIteratorMethods$1=es_array_iterator$1,createNonEnumerableProperty$1$5=createNonEnumerableProperty$5$2,wellKnownSymbol$2$4=wellKnownSymbol$g$2,ITERATOR$7=wellKnownSymbol$2$4("iterator"),TO_STRING_TAG$7=wellKnownSymbol$2$4("toStringTag"),ArrayValues$1=ArrayIteratorMethods$1.values,handlePrototype$1=function(v,k){if(v){if(v[ITERATOR$7]!==ArrayValues$1)try{createNonEnumerableProperty$1$5(v,ITERATOR$7,ArrayValues$1)}catch{v[ITERATOR$7]=ArrayValues$1}if(v[TO_STRING_TAG$7]||createNonEnumerableProperty$1$5(v,TO_STRING_TAG$7,k),DOMIterables$1[k]){for(var ie in ArrayIteratorMethods$1)if(v[ie]!==ArrayIteratorMethods$1[ie])try{createNonEnumerableProperty$1$5(v,ie,ArrayIteratorMethods$1[ie])}catch{v[ie]=ArrayIteratorMethods$1[ie]}}}};for(COLLECTION_NAME$1 in DOMIterables$1)handlePrototype$1(global$4$5[COLLECTION_NAME$1]&&global$4$5[COLLECTION_NAME$1].prototype,COLLECTION_NAME$1);var COLLECTION_NAME$1;handlePrototype$1(DOMTokenListPrototype$2,"DOMTokenList");var fails$4$5=fails$j$2,global$3$5=global$m,$RegExp$2$1=global$3$5.RegExp,UNSUPPORTED_Y$1$1=fails$4$5(function(){var v=$RegExp$2$1("a","y");return v.lastIndex=2,v.exec("abcd")!=null}),MISSED_STICKY$1=UNSUPPORTED_Y$1$1||fails$4$5(function(){return!$RegExp$2$1("a","y").sticky}),BROKEN_CARET$1=UNSUPPORTED_Y$1$1||fails$4$5(function(){var v=$RegExp$2$1("^r","gy");return v.lastIndex=2,v.exec("str")!=null}),regexpStickyHelpers$1={BROKEN_CARET:BROKEN_CARET$1,MISSED_STICKY:MISSED_STICKY$1,UNSUPPORTED_Y:UNSUPPORTED_Y$1$1},fails$3$5=fails$j$2,global$2$5=global$m,$RegExp$1$1=global$2$5.RegExp,regexpUnsupportedDotAll$1=fails$3$5(function(){var v=$RegExp$1$1(".","s");return!(v.dotAll&&v.exec(` -`)&&v.flags==="s")}),fails$2$5=fails$j$2,global$1$5=global$m,$RegExp$3=global$1$5.RegExp,regexpUnsupportedNcg$1=fails$2$5(function(){var v=$RegExp$3("(?b)","g");return v.exec("b").groups.a!=="b"||"b".replace(v,"$c")!=="bc"}),call$2$5=functionCall$5,uncurryThis$4$5=functionUncurryThis$5,toString$2$3=toString$3$2,regexpFlags$3=regexpFlags$1$2,stickyHelpers$2=regexpStickyHelpers$1,shared$8=shared$4$2.exports,create2$2=objectCreate$2,getInternalState$9=internalState$5.get,UNSUPPORTED_DOT_ALL$1=regexpUnsupportedDotAll$1,UNSUPPORTED_NCG$1=regexpUnsupportedNcg$1,nativeReplace$1=shared$8("native-string-replace",String.prototype.replace),nativeExec$1=RegExp.prototype.exec,patchedExec$1=nativeExec$1,charAt$3=uncurryThis$4$5("".charAt),indexOf$4=uncurryThis$4$5("".indexOf),replace$1=uncurryThis$4$5("".replace),stringSlice$3$2=uncurryThis$4$5("".slice),UPDATES_LAST_INDEX_WRONG$1=function(){var v=/a/,k=/b*/g;return call$2$5(nativeExec$1,v,"a"),call$2$5(nativeExec$1,k,"a"),v.lastIndex!==0||k.lastIndex!==0}(),UNSUPPORTED_Y$3=stickyHelpers$2.BROKEN_CARET,NPCG_INCLUDED$1=/()??/.exec("")[1]!==void 0,PATCH$1=UPDATES_LAST_INDEX_WRONG$1||NPCG_INCLUDED$1||UNSUPPORTED_Y$3||UNSUPPORTED_DOT_ALL$1||UNSUPPORTED_NCG$1;PATCH$1&&(patchedExec$1=function(k){var ie=this,ae=getInternalState$9(ie),ce=toString$2$3(k),fe=ae.raw,le,ve,pe,ye,me,Ee,cr;if(fe)return fe.lastIndex=ie.lastIndex,le=call$2$5(patchedExec$1,fe,ce),ie.lastIndex=fe.lastIndex,le;var Br=ae.groups,$r=UNSUPPORTED_Y$3&&ie.sticky,Pr=call$2$5(regexpFlags$3,ie),Or=ie.source,ur=0,jr=ce;if($r&&(Pr=replace$1(Pr,"y",""),indexOf$4(Pr,"g")===-1&&(Pr+="g"),jr=stringSlice$3$2(ce,ie.lastIndex),ie.lastIndex>0&&(!ie.multiline||ie.multiline&&charAt$3(ce,ie.lastIndex-1)!==` -`)&&(Or="(?: "+Or+")",jr=" "+jr,ur++),ve=new RegExp("^(?:"+Or+")",Pr)),NPCG_INCLUDED$1&&(ve=new RegExp("^"+Or+"$(?!\\s)",Pr)),UPDATES_LAST_INDEX_WRONG$1&&(pe=ie.lastIndex),ye=call$2$5(nativeExec$1,$r?ve:ie,jr),$r?ye?(ye.input=stringSlice$3$2(ye.input,ur),ye[0]=stringSlice$3$2(ye[0],ur),ye.index=ie.lastIndex,ie.lastIndex+=ye[0].length):ie.lastIndex=0:UPDATES_LAST_INDEX_WRONG$1&&ye&&(ie.lastIndex=ie.global?ye.index+ye[0].length:pe),NPCG_INCLUDED$1&&ye&&ye.length>1&&call$2$5(nativeReplace$1,ye[0],ve,function(){for(me=1;me=fe?v?"":void 0:(le=charCodeAt$1(ae,ce),le<55296||le>56319||ce+1===fe||(ve=charCodeAt$1(ae,ce+1))<56320||ve>57343?v?charAt$2$1(ae,ce):le:v?stringSlice$2$2(ae,ce,ce+2):(le-55296<<10)+(ve-56320)+65536)}},stringMultibyte$1={codeAt:createMethod$5(!1),charAt:createMethod$5(!0)},charAt$1$1=stringMultibyte$1.charAt,advanceStringIndex$1$1=function(v,k,ie){return k+(ie?charAt$1$1(v,k).length:1)},uncurryThis$1$5=functionUncurryThis$5,toObject$b=toObject$4$2,floor$7=Math.floor,charAt$4=uncurryThis$1$5("".charAt),replace$2=uncurryThis$1$5("".replace),stringSlice$1$2=uncurryThis$1$5("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(v,k,ie,ae,ce,fe){var le=ie+v.length,ve=ae.length,pe=SUBSTITUTION_SYMBOLS_NO_NAMED;return ce!==void 0&&(ce=toObject$b(ce),pe=SUBSTITUTION_SYMBOLS),replace$2(fe,pe,function(ye,me){var Ee;switch(charAt$4(me,0)){case"$":return"$";case"&":return v;case"`":return stringSlice$1$2(k,0,ie);case"'":return stringSlice$1$2(k,le);case"<":Ee=ce[stringSlice$1$2(me,1,-1)];break;default:var cr=+me;if(cr===0)return ye;if(cr>ve){var Br=floor$7(cr/10);return Br===0?ye:Br<=ve?ae[Br-1]===void 0?charAt$4(me,1):ae[Br-1]+charAt$4(me,1):ye}Ee=ae[cr-1]}return Ee===void 0?"":Ee})},call$1$5=functionCall$5,anObject$1$5=anObject$e$1,isCallable$1$5=isCallable$m$1,classof$d=classofRaw$1$4,regexpExec$4=regexpExec$2$1,$TypeError$g=TypeError,regexpExecAbstract$1=function(v,k){var ie=v.exec;if(isCallable$1$5(ie)){var ae=call$1$5(ie,v,k);return ae!==null&&anObject$1$5(ae),ae}if(classof$d(v)==="RegExp")return call$1$5(regexpExec$4,v,k);throw $TypeError$g("RegExp#exec called on incompatible receiver")},apply$4=functionApply$3,call$j=functionCall$5,uncurryThis$p=functionUncurryThis$5,fixRegExpWellKnownSymbolLogic$1=fixRegexpWellKnownSymbolLogic$1,fails$r=fails$j$2,anObject$f=anObject$e$1,isCallable$n=isCallable$m$1,toIntegerOrInfinity$9=toIntegerOrInfinity$4$2,toLength$9=toLength$2$2,toString2$3=toString$3$2,requireObjectCoercible$7=requireObjectCoercible$4$2,advanceStringIndex$2=advanceStringIndex$1$1,getMethod$8=getMethod$4$1,getSubstitution=getSubstitution$1,regExpExec=regexpExecAbstract$1,wellKnownSymbol$j=wellKnownSymbol$g$2,REPLACE=wellKnownSymbol$j("replace"),max$5=Math.max,min$5=Math.min,concat$6=uncurryThis$p([].concat),push$5=uncurryThis$p([].push),stringIndexOf=uncurryThis$p("".indexOf),stringSlice$5=uncurryThis$p("".slice),maybeToString=function(v){return v===void 0?v:String(v)},REPLACE_KEEPS_$0=function(){return"a".replace(/./,"$0")==="$0"}(),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=function(){return/./[REPLACE]?/./[REPLACE]("a","$0")==="":!1}(),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$r(function(){var v=/./;return v.exec=function(){var k=[];return k.groups={a:"7"},k},"".replace(v,"$")!=="7"});fixRegExpWellKnownSymbolLogic$1("replace",function(v,k,ie){var ae=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(fe,le){var ve=requireObjectCoercible$7(this),pe=fe==null?void 0:getMethod$8(fe,REPLACE);return pe?call$j(pe,fe,ve,le):call$j(k,toString2$3(ve),fe,le)},function(ce,fe){var le=anObject$f(this),ve=toString2$3(ce);if(typeof fe=="string"&&stringIndexOf(fe,ae)===-1&&stringIndexOf(fe,"$<")===-1){var pe=ie(k,le,ve,fe);if(pe.done)return pe.value}var ye=isCallable$n(fe);ye||(fe=toString2$3(fe));var me=le.global;if(me){var Ee=le.unicode;le.lastIndex=0}for(var cr=[];;){var Br=regExpExec(le,ve);if(Br===null||(push$5(cr,Br),!me))break;var $r=toString2$3(Br[0]);$r===""&&(le.lastIndex=advanceStringIndex$2(ve,toLength$9(le.lastIndex),Ee))}for(var Pr="",Or=0,ur=0;ur=Or&&(Pr+=stringSlice$5(ve,Or,Mr)+Qr,Or=Mr+jr.length)}return Pr+stringSlice$5(ve,Or)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);function __awaiter$7(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t+KAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAEgAAAABAAAASAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAB9KADAAQAAAABAAAB9AAAAACEVKODAAAACXBIWXMAAAsTAAALEwEAmpwYAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgoZXuEHAABAAElEQVR4Aey9CZwdx3kf+L33ZjADzGAGA2AwuAYAQRK8SVG8RFEkRVEUJVISJVG3ZN2yLJmK147srK9EiuXEjhM79tprx7u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uRtBdI+y5p+eldhrVVBaoCVYGqQFXgCa0AvqL9CWkfkvZ70n5f2qel5W2rtS7jrqicg15R4m2QMTZ6vPrJG57Gb5eGRf3p0rDY3yntrDR8He4GafiZPF4t1VYVqApUBaoCVYErVQH8PPxBaV+Xhl+a9mVpn5H2KWkfl4bF/EvSgMsb1i0+qLLP9h2X/z8/uanyoXvQxgAAAABJRU5ErkJggg==",resolveWalletUrl$1=(v,k)=>{if(k)return k;switch(v.networkId){case"mainnet":return"https://app.optowallet.com";case"testnet":return"https://app.testnet.optowallet.com";default:throw new Error("Invalid wallet url")}},setupWalletState$1=(v,k)=>__awaiter$7(void 0,void 0,void 0,function*(){const ie=new nearAPI$2.keyStores.BrowserLocalStorageKeyStore,ae=yield nearAPI$2.connect(Object.assign(Object.assign({keyStore:ie,walletUrl:v.walletUrl},k),{headers:{}}));return{wallet:new nearAPI$2.WalletConnection(ae,"near_app"),keyStore:ie}}),OptoWallet=({metadata:v,options:k,store:ie,params:ae,logger:ce})=>__awaiter$7(void 0,void 0,void 0,function*(){const fe=yield setupWalletState$1(ae,k.network),le=()=>__awaiter$7(void 0,void 0,void 0,function*(){const pe=fe.wallet.getAccountId();if(!pe)return[];const ye=fe.wallet.account();return[{accountId:pe,publicKey:ye?(yield ye.connection.signer.getPublicKey(ye.accountId,k.network.networkId)).toString():void 0}]}),ve=pe=>__awaiter$7(void 0,void 0,void 0,function*(){const ye=fe.wallet.account(),{networkId:me,signer:Ee,provider:cr}=ye.connection,Br=yield Ee.getPublicKey(ye.accountId,me);return Promise.all(pe.map(($r,Pr)=>__awaiter$7(void 0,void 0,void 0,function*(){const Or=$r.actions.map(Mr=>createAction(Mr)),ur=yield ye.accessKeyForTransaction($r.receiverId,Or,Br);if(!ur)throw new Error(`Failed to find matching key for transaction sent to ${$r.receiverId}`);const jr=yield cr.block({finality:"final"});return nearAPI$2.transactions.createTransaction(ye.accountId,nearAPI$2.utils.PublicKey.from(ur.public_key),$r.receiverId,ur.access_key.nonce+Pr+1,Or,nearAPI$2.utils.serialize.base_decode(jr.header.hash))})))});return{signIn({contractId:pe,methodNames:ye}){return __awaiter$7(this,void 0,void 0,function*(){const me=yield le();return me.length?me:(yield fe.wallet.requestSignIn({contractId:pe,methodNames:ye}),le())})},signOut(){return __awaiter$7(this,void 0,void 0,function*(){fe.wallet.isSignedIn()&&fe.wallet.signOut()})},getAccounts(){return __awaiter$7(this,void 0,void 0,function*(){return le()})},verifyOwner({message:pe,callbackUrl:ye,meta:me}){return __awaiter$7(this,void 0,void 0,function*(){if(ce.log("verifyOwner",{message:pe}),!fe.wallet.account())throw new Error("Wallet not signed in");const cr=typeof window<"u"?window.location.href:"",Br=ye||cr;if(!Br)throw new Error(`The callbackUrl is missing for ${v.name}`);const $r=encodeURIComponent(Br),Pr=me?`&meta=${me}`:"";window.location.replace(`${ae.walletUrl}/verify-owner?message=${pe}&callbackUrl=${$r}${Pr}`)})},signAndSendTransaction({signerId:pe,receiverId:ye,actions:me,callbackUrl:Ee}){return __awaiter$7(this,void 0,void 0,function*(){ce.log("signAndSendTransaction",{signerId:pe,receiverId:ye,actions:me,callbackUrl:Ee});const{contract:cr}=ie.getState();if(!fe.wallet.isSignedIn()||!cr)throw new Error("Wallet not signed in");return fe.wallet.account().signAndSendTransaction({receiverId:ye||cr.contractId,actions:me.map($r=>createAction($r)),walletCallbackUrl:Ee})})},signAndSendTransactions({transactions:pe,callbackUrl:ye}){return __awaiter$7(this,void 0,void 0,function*(){if(ce.log("signAndSendTransactions",{transactions:pe,callbackUrl:ye}),!fe.wallet.isSignedIn())throw new Error("Wallet not signed in");return fe.wallet.requestSignTransactions({transactions:yield ve(pe),callbackUrl:ye})})}}});function setupOptoWallet({walletUrl:v,iconUrl:k=icon$6,deprecated:ie=!1}={}){return ae=>__awaiter$7(this,void 0,void 0,function*(){return window.opto?{id:"opto-wallet",type:"browser",metadata:{name:"OptoWallet",description:"Have Sign of your Crypto with Opto Wallet.",iconUrl:k,deprecated:ie,available:!0,walletUrl:resolveWalletUrl$1(ae.options.network,v)},init:ce=>OptoWallet(Object.assign(Object.assign({},ce),{params:{walletUrl:resolveWalletUrl$1(ce.options.network,v)}}))}:null})}var nearAPI$1=__toESM(require_browser_index2$1(),1),import_is_mobile$5=__toESM(require_is_mobile(),1),commonjsGlobal$5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$4=function(v){return v&&v.Math==Math&&v},global$l=check$4(typeof globalThis=="object"&&globalThis)||check$4(typeof window=="object"&&window)||check$4(typeof self=="object"&&self)||check$4(typeof commonjsGlobal$5=="object"&&commonjsGlobal$5)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$3={},fails$p=function(v){try{return!!v()}catch{return!0}},fails$o=fails$p,descriptors$4=!fails$o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$n$1=fails$p,functionBindNative$4=!fails$n$1(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$2=functionBindNative$4,call$g$1=Function.prototype.call,functionCall$4=NATIVE_BIND$3$2?call$g$1.bind(call$g$1):function(){return call$g$1.apply(call$g$1,arguments)},objectPropertyIsEnumerable$3={},$propertyIsEnumerable$3={}.propertyIsEnumerable,getOwnPropertyDescriptor$1$3=Object.getOwnPropertyDescriptor,NASHORN_BUG$3=getOwnPropertyDescriptor$1$3&&!$propertyIsEnumerable$3.call({1:2},1);objectPropertyIsEnumerable$3.f=NASHORN_BUG$3?function v(k){var ie=getOwnPropertyDescriptor$1$3(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$3;var createPropertyDescriptor$5$1=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2$2=functionBindNative$4,FunctionPrototype$2$2=Function.prototype,bind$3$2=FunctionPrototype$2$2.bind,call$f$1=FunctionPrototype$2$2.call,uncurryThis$n=NATIVE_BIND$2$2&&bind$3$2.bind(call$f$1,call$f$1),functionUncurryThis$4=NATIVE_BIND$2$2?function(v){return v&&uncurryThis$n(v)}:function(v){return v&&function(){return call$f$1.apply(v,arguments)}},uncurryThis$m$1=functionUncurryThis$4,toString$5=uncurryThis$m$1({}.toString),stringSlice$3$1=uncurryThis$m$1("".slice),classofRaw$1$3=function(v){return stringSlice$3$1(toString$5(v),8,-1)},uncurryThis$l$1=functionUncurryThis$4,fails$m$1=fails$p,classof$a$1=classofRaw$1$3,$Object$4$1=Object,split$3=uncurryThis$l$1("".split),indexedObject$3=fails$m$1(function(){return!$Object$4$1("z").propertyIsEnumerable(0)})?function(v){return classof$a$1(v)=="String"?split$3(v,""):$Object$4$1(v)}:$Object$4$1,$TypeError$b$1=TypeError,requireObjectCoercible$4$1=function(v){if(v==null)throw $TypeError$b$1("Can't call method on "+v);return v},IndexedObject$2$1=indexedObject$3,requireObjectCoercible$3$1=requireObjectCoercible$4$1,toIndexedObject$6$1=function(v){return IndexedObject$2$1(requireObjectCoercible$3$1(v))},isCallable$j$1=function(v){return typeof v=="function"},isCallable$i$1=isCallable$j$1,isObject$b$1=function(v){return typeof v=="object"?v!==null:isCallable$i$1(v)},global$k=global$l,isCallable$h$2=isCallable$j$1,aFunction$4=function(v){return isCallable$h$2(v)?v:void 0},getBuiltIn$6$2=function(v,k){return arguments.length<2?aFunction$4(global$k[v]):global$k[v]&&global$k[v][k]},uncurryThis$k$1=functionUncurryThis$4,objectIsPrototypeOf$4=uncurryThis$k$1({}.isPrototypeOf),getBuiltIn$5$2=getBuiltIn$6$2,engineUserAgent$4=getBuiltIn$5$2("navigator","userAgent")||"",global$j=global$l,userAgent$2$2=engineUserAgent$4,process$7=global$j.process,Deno$4=global$j.Deno,versions$4=process$7&&process$7.versions||Deno$4&&Deno$4.version,v8$4=versions$4&&versions$4.v8,match$4,version$5;v8$4&&(match$4=v8$4.split("."),version$5=match$4[0]>0&&match$4[0]<4?1:+(match$4[0]+match$4[1]));!version$5&&userAgent$2$2&&(match$4=userAgent$2$2.match(/Edge\/(\d+)/),(!match$4||match$4[1]>=74)&&(match$4=userAgent$2$2.match(/Chrome\/(\d+)/),match$4&&(version$5=+match$4[1])));var engineV8Version$4=version$5,V8_VERSION$5=engineV8Version$4,fails$l$1=fails$p,nativeSymbol$4=!!Object.getOwnPropertySymbols&&!fails$l$1(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$5&&V8_VERSION$5<41}),NATIVE_SYMBOL$1$4=nativeSymbol$4,useSymbolAsUid$4=NATIVE_SYMBOL$1$4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$4$2=getBuiltIn$6$2,isCallable$g$2=isCallable$j$1,isPrototypeOf$4$1=objectIsPrototypeOf$4,USE_SYMBOL_AS_UID$1$4=useSymbolAsUid$4,$Object$3$2=Object,isSymbol$3$1=USE_SYMBOL_AS_UID$1$4?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$4$2("Symbol");return isCallable$g$2(k)&&isPrototypeOf$4$1(k.prototype,$Object$3$2(v))},$String$3$1=String,tryToString$4$2=function(v){try{return $String$3$1(v)}catch{return"Object"}},isCallable$f$2=isCallable$j$1,tryToString$3$2=tryToString$4$2,$TypeError$a$2=TypeError,aCallable$4$2=function(v){if(isCallable$f$2(v))return v;throw $TypeError$a$2(tryToString$3$2(v)+" is not a function")},aCallable$3$2=aCallable$4$2,getMethod$3$1=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$3$2(ie)},call$e$1=functionCall$4,isCallable$e$2=isCallable$j$1,isObject$a$1=isObject$b$1,$TypeError$9$2=TypeError,ordinaryToPrimitive$1$4=function(v,k){var ie,ae;if(k==="string"&&isCallable$e$2(ie=v.toString)&&!isObject$a$1(ae=call$e$1(ie,v))||isCallable$e$2(ie=v.valueOf)&&!isObject$a$1(ae=call$e$1(ie,v))||k!=="string"&&isCallable$e$2(ie=v.toString)&&!isObject$a$1(ae=call$e$1(ie,v)))return ae;throw $TypeError$9$2("Can't convert object to primitive value")},shared$4$1={exports:{}},global$i$1=global$l,defineProperty$7$1=Object.defineProperty,defineGlobalProperty$3$3=function(v,k){try{defineProperty$7$1(global$i$1,v,{value:k,configurable:!0,writable:!0})}catch{global$i$1[v]=k}return k},global$h$2=global$l,defineGlobalProperty$2$4=defineGlobalProperty$3$3,SHARED$4="__core-js_shared__",store$3$4=global$h$2[SHARED$4]||defineGlobalProperty$2$4(SHARED$4,{}),sharedStore$4=store$3$4,store$2$4=sharedStore$4;(shared$4$1.exports=function(v,k){return store$2$4[v]||(store$2$4[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$2$3=requireObjectCoercible$4$1,$Object$2$4=Object,toObject$6$1=function(v){return $Object$2$4(requireObjectCoercible$2$3(v))},uncurryThis$j$1=functionUncurryThis$4,toObject$5$1=toObject$6$1,hasOwnProperty$4=uncurryThis$j$1({}.hasOwnProperty),hasOwnProperty_1$4=Object.hasOwn||function v(k,ie){return hasOwnProperty$4(toObject$5$1(k),ie)},uncurryThis$i$1=functionUncurryThis$4,id$6=0,postfix$4=Math.random(),toString$4=uncurryThis$i$1(1 .toString),uid$3$1=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$4(++id$6+postfix$4,36)},global$g$2=global$l,shared$3$4=shared$4$1.exports,hasOwn$b$1=hasOwnProperty_1$4,uid$2$4=uid$3$1,NATIVE_SYMBOL$5=nativeSymbol$4,USE_SYMBOL_AS_UID$5=useSymbolAsUid$4,WellKnownSymbolsStore$4=shared$3$4("wks"),Symbol$1$4=global$g$2.Symbol,symbolFor$4=Symbol$1$4&&Symbol$1$4.for,createWellKnownSymbol$4=USE_SYMBOL_AS_UID$5?Symbol$1$4:Symbol$1$4&&Symbol$1$4.withoutSetter||uid$2$4,wellKnownSymbol$h$1=function(v){if(!hasOwn$b$1(WellKnownSymbolsStore$4,v)||!(NATIVE_SYMBOL$5||typeof WellKnownSymbolsStore$4[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$5&&hasOwn$b$1(Symbol$1$4,v)?WellKnownSymbolsStore$4[v]=Symbol$1$4[v]:USE_SYMBOL_AS_UID$5&&symbolFor$4?WellKnownSymbolsStore$4[v]=symbolFor$4(k):WellKnownSymbolsStore$4[v]=createWellKnownSymbol$4(k)}return WellKnownSymbolsStore$4[v]},call$d$1=functionCall$4,isObject$9$1=isObject$b$1,isSymbol$2$4=isSymbol$3$1,getMethod$2$2=getMethod$3$1,ordinaryToPrimitive$5=ordinaryToPrimitive$1$4,wellKnownSymbol$g$1=wellKnownSymbol$h$1,$TypeError$8$2=TypeError,TO_PRIMITIVE$4=wellKnownSymbol$g$1("toPrimitive"),toPrimitive$2$1=function(v,k){if(!isObject$9$1(v)||isSymbol$2$4(v))return v;var ie=getMethod$2$2(v,TO_PRIMITIVE$4),ae;if(ie){if(k===void 0&&(k="default"),ae=call$d$1(ie,v,k),!isObject$9$1(ae)||isSymbol$2$4(ae))return ae;throw $TypeError$8$2("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$5(v,k)},toPrimitive$1$4=toPrimitive$2$1,isSymbol$1$4=isSymbol$3$1,toPropertyKey$4$1=function(v){var k=toPrimitive$1$4(v,"string");return isSymbol$1$4(k)?k:k+""},global$f$2=global$l,isObject$8$1=isObject$b$1,document$1$2=global$f$2.document,EXISTS$1$4=isObject$8$1(document$1$2)&&isObject$8$1(document$1$2.createElement),documentCreateElement$2$1=function(v){return EXISTS$1$4?document$1$2.createElement(v):{}},DESCRIPTORS$d$1=descriptors$4,fails$k$1=fails$p,createElement$5=documentCreateElement$2$1,ie8DomDefine$4=!DESCRIPTORS$d$1&&!fails$k$1(function(){return Object.defineProperty(createElement$5("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$c$1=descriptors$4,call$c$2=functionCall$4,propertyIsEnumerableModule$1$2=objectPropertyIsEnumerable$3,createPropertyDescriptor$4$1=createPropertyDescriptor$5$1,toIndexedObject$5$1=toIndexedObject$6$1,toPropertyKey$3$1=toPropertyKey$4$1,hasOwn$a$1=hasOwnProperty_1$4,IE8_DOM_DEFINE$1$3=ie8DomDefine$4,$getOwnPropertyDescriptor$1$3=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$3.f=DESCRIPTORS$c$1?$getOwnPropertyDescriptor$1$3:function v(k,ie){if(k=toIndexedObject$5$1(k),ie=toPropertyKey$3$1(ie),IE8_DOM_DEFINE$1$3)try{return $getOwnPropertyDescriptor$1$3(k,ie)}catch{}if(hasOwn$a$1(k,ie))return createPropertyDescriptor$4$1(!call$c$2(propertyIsEnumerableModule$1$2.f,k,ie),k[ie])};var objectDefineProperty$4={},DESCRIPTORS$b$1=descriptors$4,fails$j$1=fails$p,v8PrototypeDefineBug$4=DESCRIPTORS$b$1&&fails$j$1(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$7$2=isObject$b$1,$String$2$3=String,$TypeError$7$2=TypeError,anObject$c$1=function(v){if(isObject$7$2(v))return v;throw $TypeError$7$2($String$2$3(v)+" is not an object")},DESCRIPTORS$a$1=descriptors$4,IE8_DOM_DEFINE$5=ie8DomDefine$4,V8_PROTOTYPE_DEFINE_BUG$1$1=v8PrototypeDefineBug$4,anObject$b$1=anObject$c$1,toPropertyKey$2$3=toPropertyKey$4$1,$TypeError$6$2=TypeError,$defineProperty$4=Object.defineProperty,$getOwnPropertyDescriptor$5=Object.getOwnPropertyDescriptor,ENUMERABLE$4="enumerable",CONFIGURABLE$1$4="configurable",WRITABLE$4="writable";objectDefineProperty$4.f=DESCRIPTORS$a$1?V8_PROTOTYPE_DEFINE_BUG$1$1?function v(k,ie,ae){if(anObject$b$1(k),ie=toPropertyKey$2$3(ie),anObject$b$1(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$4 in ae&&!ae[WRITABLE$4]){var ce=$getOwnPropertyDescriptor$5(k,ie);ce&&ce[WRITABLE$4]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$4 in ae?ae[CONFIGURABLE$1$4]:ce[CONFIGURABLE$1$4],enumerable:ENUMERABLE$4 in ae?ae[ENUMERABLE$4]:ce[ENUMERABLE$4],writable:!1})}return $defineProperty$4(k,ie,ae)}:$defineProperty$4:function v(k,ie,ae){if(anObject$b$1(k),ie=toPropertyKey$2$3(ie),anObject$b$1(ae),IE8_DOM_DEFINE$5)try{return $defineProperty$4(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$6$2("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$9$1=descriptors$4,definePropertyModule$6$1=objectDefineProperty$4,createPropertyDescriptor$3$1=createPropertyDescriptor$5$1,createNonEnumerableProperty$8$1=DESCRIPTORS$9$1?function(v,k,ie){return definePropertyModule$6$1.f(v,k,createPropertyDescriptor$3$1(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$4={exports:{}},DESCRIPTORS$8$1=descriptors$4,hasOwn$9$1=hasOwnProperty_1$4,FunctionPrototype$1$4=Function.prototype,getDescriptor$4=DESCRIPTORS$8$1&&Object.getOwnPropertyDescriptor,EXISTS$5=hasOwn$9$1(FunctionPrototype$1$4,"name"),PROPER$4=EXISTS$5&&function v(){}.name==="something",CONFIGURABLE$5=EXISTS$5&&(!DESCRIPTORS$8$1||DESCRIPTORS$8$1&&getDescriptor$4(FunctionPrototype$1$4,"name").configurable),functionName$4={EXISTS:EXISTS$5,PROPER:PROPER$4,CONFIGURABLE:CONFIGURABLE$5},uncurryThis$h$1=functionUncurryThis$4,isCallable$d$2=isCallable$j$1,store$1$4=sharedStore$4,functionToString$4=uncurryThis$h$1(Function.toString);isCallable$d$2(store$1$4.inspectSource)||(store$1$4.inspectSource=function(v){return functionToString$4(v)});var inspectSource$3$2=store$1$4.inspectSource,global$e$2=global$l,isCallable$c$2=isCallable$j$1,inspectSource$2$4=inspectSource$3$2,WeakMap$1$4=global$e$2.WeakMap,nativeWeakMap$4=isCallable$c$2(WeakMap$1$4)&&/native code/.test(inspectSource$2$4(WeakMap$1$4)),shared$2$4=shared$4$1.exports,uid$1$4=uid$3$1,keys$1$1=shared$2$4("keys"),sharedKey$3$1=function(v){return keys$1$1[v]||(keys$1$1[v]=uid$1$4(v))},hiddenKeys$4$1={},NATIVE_WEAK_MAP$4=nativeWeakMap$4,global$d$2=global$l,uncurryThis$g$1=functionUncurryThis$4,isObject$6$2=isObject$b$1,createNonEnumerableProperty$7$1=createNonEnumerableProperty$8$1,hasOwn$8$2=hasOwnProperty_1$4,shared$1$4=sharedStore$4,sharedKey$2$1=sharedKey$3$1,hiddenKeys$3$3=hiddenKeys$4$1,OBJECT_ALREADY_INITIALIZED$4="Object already initialized",TypeError$2$2=global$d$2.TypeError,WeakMap$6=global$d$2.WeakMap,set$1$2,get$1$1,has$4,enforce$4=function(v){return has$4(v)?get$1$1(v):set$1$2(v,{})},getterFor$4=function(v){return function(k){var ie;if(!isObject$6$2(k)||(ie=get$1$1(k)).type!==v)throw TypeError$2$2("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$4||shared$1$4.state?(store$7=shared$1$4.state||(shared$1$4.state=new WeakMap$6),wmget$4=uncurryThis$g$1(store$7.get),wmhas$4=uncurryThis$g$1(store$7.has),wmset$4=uncurryThis$g$1(store$7.set),set$1$2=function(v,k){if(wmhas$4(store$7,v))throw new TypeError$2$2(OBJECT_ALREADY_INITIALIZED$4);return k.facade=v,wmset$4(store$7,v,k),k},get$1$1=function(v){return wmget$4(store$7,v)||{}},has$4=function(v){return wmhas$4(store$7,v)}):(STATE$4=sharedKey$2$1("state"),hiddenKeys$3$3[STATE$4]=!0,set$1$2=function(v,k){if(hasOwn$8$2(v,STATE$4))throw new TypeError$2$2(OBJECT_ALREADY_INITIALIZED$4);return k.facade=v,createNonEnumerableProperty$7$1(v,STATE$4,k),k},get$1$1=function(v){return hasOwn$8$2(v,STATE$4)?v[STATE$4]:{}},has$4=function(v){return hasOwn$8$2(v,STATE$4)});var store$7,wmget$4,wmhas$4,wmset$4,STATE$4,internalState$4={set:set$1$2,get:get$1$1,has:has$4,enforce:enforce$4,getterFor:getterFor$4},fails$i$1=fails$p,isCallable$b$2=isCallable$j$1,hasOwn$7$2=hasOwnProperty_1$4,DESCRIPTORS$7$3=descriptors$4,CONFIGURABLE_FUNCTION_NAME$2$1=functionName$4.CONFIGURABLE,inspectSource$1$4=inspectSource$3$2,InternalStateModule$4$1=internalState$4,enforceInternalState$2$1=InternalStateModule$4$1.enforce,getInternalState$5$1=InternalStateModule$4$1.get,defineProperty$6$1=Object.defineProperty,CONFIGURABLE_LENGTH$4=DESCRIPTORS$7$3&&!fails$i$1(function(){return defineProperty$6$1(function(){},"length",{value:8}).length!==8}),TEMPLATE$4=String(String).split("String"),makeBuiltIn$1$4=makeBuiltIn$2$4.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$7$2(v,"name")||CONFIGURABLE_FUNCTION_NAME$2$1&&v.name!==k)&&(DESCRIPTORS$7$3?defineProperty$6$1(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$4&&ie&&hasOwn$7$2(ie,"arity")&&v.length!==ie.arity&&defineProperty$6$1(v,"length",{value:ie.arity});try{ie&&hasOwn$7$2(ie,"constructor")&&ie.constructor?DESCRIPTORS$7$3&&defineProperty$6$1(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$2$1(v);return hasOwn$7$2(ae,"source")||(ae.source=TEMPLATE$4.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$4(function v(){return isCallable$b$2(this)&&getInternalState$5$1(this).source||inspectSource$1$4(this)},"toString");var isCallable$a$4=isCallable$j$1,definePropertyModule$5$1=objectDefineProperty$4,makeBuiltIn$6=makeBuiltIn$2$4.exports,defineGlobalProperty$1$4=defineGlobalProperty$3$3,defineBuiltIn$7$1=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$a$4(ie)&&makeBuiltIn$6(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$4(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$5$1.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$3={},ceil$3=Math.ceil,floor$3$1=Math.floor,mathTrunc$3=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$3$1:ceil$3)(ie)},trunc2$3=mathTrunc$3,toIntegerOrInfinity$6$1=function(v){var k=+v;return k!==k||k===0?0:trunc2$3(k)},toIntegerOrInfinity$5$1=toIntegerOrInfinity$6$1,max$1$1=Math.max,min$2$1=Math.min,toAbsoluteIndex$4$1=function(v,k){var ie=toIntegerOrInfinity$5$1(v);return ie<0?max$1$1(ie+k,0):min$2$1(ie,k)},toIntegerOrInfinity$4$1=toIntegerOrInfinity$6$1,min$1$3=Math.min,toLength$6$1=function(v){return v>0?min$1$3(toIntegerOrInfinity$4$1(v),9007199254740991):0},toLength$5$1=toLength$6$1,lengthOfArrayLike$6$1=function(v){return toLength$5$1(v.length)},toIndexedObject$4$1=toIndexedObject$6$1,toAbsoluteIndex$3$1=toAbsoluteIndex$4$1,lengthOfArrayLike$5$1=lengthOfArrayLike$6$1,createMethod$2$1=function(v){return function(k,ie,ae){var ce=toIndexedObject$4$1(k),fe=lengthOfArrayLike$5$1(ce),le=toAbsoluteIndex$3$1(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$3={includes:createMethod$2$1(!0),indexOf:createMethod$2$1(!1)},uncurryThis$f$1=functionUncurryThis$4,hasOwn$6$3=hasOwnProperty_1$4,toIndexedObject$3$3=toIndexedObject$6$1,indexOf$1$1=arrayIncludes$3.indexOf,hiddenKeys$2$3=hiddenKeys$4$1,push$2$1=uncurryThis$f$1([].push),objectKeysInternal$3=function(v,k){var ie=toIndexedObject$3$3(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$6$3(hiddenKeys$2$3,fe)&&hasOwn$6$3(ie,fe)&&push$2$1(ce,fe);for(;k.length>ae;)hasOwn$6$3(ie,fe=k[ae++])&&(~indexOf$1$1(ce,fe)||push$2$1(ce,fe));return ce},enumBugKeys$3$1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$2=objectKeysInternal$3,enumBugKeys$2$2=enumBugKeys$3$1,hiddenKeys$1$3=enumBugKeys$2$2.concat("length","prototype");objectGetOwnPropertyNames$3.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$2(k,hiddenKeys$1$3)};var objectGetOwnPropertySymbols$3={};objectGetOwnPropertySymbols$3.f=Object.getOwnPropertySymbols;var getBuiltIn$3$3=getBuiltIn$6$2,uncurryThis$e$1=functionUncurryThis$4,getOwnPropertyNamesModule$3=objectGetOwnPropertyNames$3,getOwnPropertySymbolsModule$1$2=objectGetOwnPropertySymbols$3,anObject$a$1=anObject$c$1,concat$1$2=uncurryThis$e$1([].concat),ownKeys$1$3=getBuiltIn$3$3("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$3.f(anObject$a$1(k)),ae=getOwnPropertySymbolsModule$1$2.f;return ae?concat$1$2(ie,ae(k)):ie},hasOwn$5$3=hasOwnProperty_1$4,ownKeys2$3=ownKeys$1$3,getOwnPropertyDescriptorModule$1$1=objectGetOwnPropertyDescriptor$3,definePropertyModule$4$1=objectDefineProperty$4,copyConstructorProperties$1$3=function(v,k,ie){for(var ae=ownKeys2$3(k),ce=definePropertyModule$4$1.f,fe=getOwnPropertyDescriptorModule$1$1.f,le=0;lele;)definePropertyModule$3$2.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$2$4=getBuiltIn$6$2,html$1$2=getBuiltIn$2$4("document","documentElement"),anObject$7$2=anObject$c$1,definePropertiesModule$1=objectDefineProperties$1,enumBugKeys$6=enumBugKeys$3$1,hiddenKeys$7=hiddenKeys$4$1,html$3=html$1$2,documentCreateElement$1$1=documentCreateElement$2$1,sharedKey$1$4=sharedKey$3$1,GT$1=">",LT$1="<",PROTOTYPE$1$1="prototype",SCRIPT$1="script",IE_PROTO$1$1=sharedKey$1$4("IE_PROTO"),EmptyConstructor$1=function(){},scriptTag$1=function(v){return LT$1+SCRIPT$1+GT$1+v+LT$1+"/"+SCRIPT$1+GT$1},NullProtoObjectViaActiveX$1=function(v){v.write(scriptTag$1("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$1=function(){var v=documentCreateElement$1$1("iframe"),k="java"+SCRIPT$1+":",ie;return v.style.display="none",html$3.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$1("document.F=Object")),ie.close(),ie.F},activeXDocument$1,NullProtoObject$1=function(){try{activeXDocument$1=new ActiveXObject("htmlfile")}catch{}NullProtoObject$1=typeof document<"u"?document.domain&&activeXDocument$1?NullProtoObjectViaActiveX$1(activeXDocument$1):NullProtoObjectViaIFrame$1():NullProtoObjectViaActiveX$1(activeXDocument$1);for(var v=enumBugKeys$6.length;v--;)delete NullProtoObject$1[PROTOTYPE$1$1][enumBugKeys$6[v]];return NullProtoObject$1()};hiddenKeys$7[IE_PROTO$1$1]=!0;var objectCreate$1=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$1[PROTOTYPE$1$1]=anObject$7$2(k),ae=new EmptyConstructor$1,EmptyConstructor$1[PROTOTYPE$1$1]=null,ae[IE_PROTO$1$1]=k):ae=NullProtoObject$1(),ie===void 0?ae:definePropertiesModule$1.f(ae,ie)},fails$f$1=fails$p,global$a$3=global$l,$RegExp$1=global$a$3.RegExp,regexpUnsupportedDotAll=fails$f$1(function(){var v=$RegExp$1(".","s");return!(v.dotAll&&v.exec(` -`)&&v.flags==="s")}),fails$e$1=fails$p,global$9$4=global$l,$RegExp=global$9$4.RegExp,regexpUnsupportedNcg=fails$e$1(function(){var v=$RegExp("(?b)","g");return v.exec("b").groups.a!=="b"||"b".replace(v,"$c")!=="bc"}),call$b$2=functionCall$4,uncurryThis$d$2=functionUncurryThis$4,toString$2$2=toString$3$1,regexpFlags$2=regexpFlags$1$1,stickyHelpers$1=regexpStickyHelpers,shared$7=shared$4$1.exports,create$3=objectCreate$1,getInternalState$4$1=internalState$4.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared$7("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$2=uncurryThis$d$2("".charAt),indexOf$3=uncurryThis$d$2("".indexOf),replace=uncurryThis$d$2("".replace),stringSlice$2$1=uncurryThis$d$2("".slice),UPDATES_LAST_INDEX_WRONG=function(){var v=/a/,k=/b*/g;return call$b$2(nativeExec,v,"a"),call$b$2(nativeExec,k,"a"),v.lastIndex!==0||k.lastIndex!==0}(),UNSUPPORTED_Y$1=stickyHelpers$1.BROKEN_CARET,NPCG_INCLUDED=/()??/.exec("")[1]!==void 0,PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y$1||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG;PATCH&&(patchedExec=function(k){var ie=this,ae=getInternalState$4$1(ie),ce=toString$2$2(k),fe=ae.raw,le,ve,pe,ye,me,Ee,cr;if(fe)return fe.lastIndex=ie.lastIndex,le=call$b$2(patchedExec,fe,ce),ie.lastIndex=fe.lastIndex,le;var Br=ae.groups,$r=UNSUPPORTED_Y$1&&ie.sticky,Pr=call$b$2(regexpFlags$2,ie),Or=ie.source,ur=0,jr=ce;if($r&&(Pr=replace(Pr,"y",""),indexOf$3(Pr,"g")===-1&&(Pr+="g"),jr=stringSlice$2$1(ce,ie.lastIndex),ie.lastIndex>0&&(!ie.multiline||ie.multiline&&charAt$2(ce,ie.lastIndex-1)!==` -`)&&(Or="(?: "+Or+")",jr=" "+jr,ur++),ve=new RegExp("^(?:"+Or+")",Pr)),NPCG_INCLUDED&&(ve=new RegExp("^"+Or+"$(?!\\s)",Pr)),UPDATES_LAST_INDEX_WRONG&&(pe=ie.lastIndex),ye=call$b$2(nativeExec,$r?ve:ie,jr),$r?ye?(ye.input=stringSlice$2$1(ye.input,ur),ye[0]=stringSlice$2$1(ye[0],ur),ye.index=ie.lastIndex,ie.lastIndex+=ye[0].length):ie.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&ye&&(ie.lastIndex=ie.global?ye.index+ye[0].length:pe),NPCG_INCLUDED&&ye&&ye.length>1&&call$b$2(nativeReplace,ye[0],ve,function(){for(me=1;me=fe?v?"":void 0:(le=charCodeAt(ae,ce),le<55296||le>56319||ce+1===fe||(ve=charCodeAt(ae,ce+1))<56320||ve>57343?v?charAt$1(ae,ce):le:v?stringSlice$1$1(ae,ce,ce+2):(le-55296<<10)+(ve-56320)+65536)}},stringMultibyte={codeAt:createMethod$1$1(!1),charAt:createMethod$1$1(!0)},charAt=stringMultibyte.charAt,advanceStringIndex$1=function(v,k,ie){return k+(ie?charAt(v,k).length:1)},toPropertyKey$1$4=toPropertyKey$4$1,definePropertyModule$2$3=objectDefineProperty$4,createPropertyDescriptor$2$3=createPropertyDescriptor$5$1,createProperty$1$1=function(v,k,ie){var ae=toPropertyKey$1$4(k);ae in v?definePropertyModule$2$3.f(v,ae,createPropertyDescriptor$2$3(0,ie)):v[ae]=ie},toAbsoluteIndex$2$1=toAbsoluteIndex$4$1,lengthOfArrayLike$4$1=lengthOfArrayLike$6$1,createProperty$2=createProperty$1$1,$Array$2$1=Array,max$4=Math.max,arraySliceSimple$1=function(v,k,ie){for(var ae=lengthOfArrayLike$4$1(v),ce=toAbsoluteIndex$2$1(k,ae),fe=toAbsoluteIndex$2$1(ie===void 0?ae:ie,ae),le=$Array$2$1(max$4(fe-ce,0)),ve=0;ce1||"".split(/.?/).length?ae=function(ce,fe){var le=toString2$2(requireObjectCoercible$6(this)),ve=fe===void 0?MAX_UINT32:fe>>>0;if(ve===0)return[];if(ce===void 0)return[le];if(!isRegExp(ce))return call$8$2(k,le,ce,ve);for(var pe=[],ye=(ce.ignoreCase?"i":"")+(ce.multiline?"m":"")+(ce.unicode?"u":"")+(ce.sticky?"y":""),me=0,Ee=new RegExp(ce.source,ye+"g"),cr,Br,$r;(cr=call$8$2(regexpExec,Ee,le))&&(Br=Ee.lastIndex,!(Br>me&&(push$1$1(pe,stringSlice$4(le,me,cr.index)),cr.length>1&&cr.index=ve)));)Ee.lastIndex===cr.index&&Ee.lastIndex++;return me===le.length?($r||!exec$3(Ee,""))&&push$1$1(pe,""):push$1$1(pe,stringSlice$4(le,me)),pe.length>ve?arraySlice$4$1(pe,0,ve):pe}:"0".split(void 0,0).length?ae=function(ce,fe){return ce===void 0&&fe===0?[]:call$8$2(k,this,ce,fe)}:ae=k,[function(fe,le){var ve=requireObjectCoercible$6(this),pe=fe==null?void 0:getMethod$1$4(fe,v);return pe?call$8$2(pe,fe,ve,le):call$8$2(ae,toString2$2(ve),fe,le)},function(ce,fe){var le=anObject$4$2(this),ve=toString2$2(ce),pe=ie(ae,le,ve,fe,ae!==k);if(pe.done)return pe.value;var ye=speciesConstructor$1$2(le,RegExp),me=le.unicode,Ee=(le.ignoreCase?"i":"")+(le.multiline?"m":"")+(le.unicode?"u":"")+(UNSUPPORTED_Y?"g":"y"),cr=new ye(UNSUPPORTED_Y?"^(?:"+le.source+")":le,Ee),Br=fe===void 0?MAX_UINT32:fe>>>0;if(Br===0)return[];if(ve.length===0)return callRegExpExec(cr,ve)===null?[ve]:[];for(var $r=0,Pr=0,Or=[];Pr=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$1=Iterators$2$1.Arguments=Iterators$2$1.Array;addToUnscopables$2("keys");addToUnscopables$2("values");addToUnscopables$2("entries");if(DESCRIPTORS$5$4&&values$1.name!=="values")try{defineProperty$3$1(values$1,"name",{value:"values"})}catch(v){}var arrayBufferNative$1=typeof ArrayBuffer<"u"&&typeof DataView<"u",defineBuiltIn$1$4=defineBuiltIn$7$1,defineBuiltIns$1$1=function(v,k,ie){for(var ae in k)defineBuiltIn$1$4(v,ae,k[ae],ie);return v},isPrototypeOf$2$2=objectIsPrototypeOf$4,$TypeError$2$4=TypeError,anInstance$2$1=function(v,k){if(isPrototypeOf$2$2(k,v))return v;throw $TypeError$2$4("Incorrect invocation")},toIntegerOrInfinity$2$3=toIntegerOrInfinity$6$1,toLength$3$1=toLength$6$1,$RangeError$2$1=RangeError,toIndex$2$1=function(v){if(v===void 0)return 0;var k=toIntegerOrInfinity$2$3(v),ie=toLength$3$1(k);if(k!==ie)throw $RangeError$2$1("Wrong length or index");return ie},$Array$1$1=Array,abs$1=Math.abs,pow$1=Math.pow,floor$2$1=Math.floor,log$1=Math.log,LN2$1=Math.LN2,pack$2=function(v,k,ie){var ae=$Array$1$1(ie),ce=ie*8-k-1,fe=(1<>1,ve=k===23?pow$1(2,-24)-pow$1(2,-77):0,pe=v<0||v===0&&1/v<0?1:0,ye=0,me,Ee,cr;for(v=abs$1(v),v!=v||v===1/0?(Ee=v!=v?1:0,me=fe):(me=floor$2$1(log$1(v)/LN2$1),cr=pow$1(2,-me),v*cr<1&&(me--,cr*=2),me+le>=1?v+=ve/cr:v+=ve*pow$1(2,1-le),v*cr>=2&&(me++,cr/=2),me+le>=fe?(Ee=0,me=fe):me+le>=1?(Ee=(v*cr-1)*pow$1(2,k),me=me+le):(Ee=v*pow$1(2,le-1)*pow$1(2,k),me=0));k>=8;)ae[ye++]=Ee&255,Ee/=256,k-=8;for(me=me<0;)ae[ye++]=me&255,me/=256,ce-=8;return ae[--ye]|=pe*128,ae},unpack$2=function(v,k){var ie=v.length,ae=ie*8-k-1,ce=(1<>1,le=ae-7,ve=ie-1,pe=v[ve--],ye=pe&127,me;for(pe>>=7;le>0;)ye=ye*256+v[ve--],le-=8;for(me=ye&(1<<-le)-1,ye>>=-le,le+=k;le>0;)me=me*256+v[ve--],le-=8;if(ye===0)ye=1-fe;else{if(ye===ce)return me?NaN:pe?-1/0:1/0;me=me+pow$1(2,k),ye=ye-fe}return(pe?-1:1)*me*pow$1(2,ye-k)},ieee754$1={pack:pack$2,unpack:unpack$2},toObject$3$1=toObject$6$1,toAbsoluteIndex$1$3=toAbsoluteIndex$4$1,lengthOfArrayLike$3$1=lengthOfArrayLike$6$1,arrayFill$1$1=function v(k){for(var ie=toObject$3$1(this),ae=lengthOfArrayLike$3$1(ie),ce=arguments.length,fe=toAbsoluteIndex$1$3(ce>1?arguments[1]:void 0,ae),le=ce>2?arguments[2]:void 0,ve=le===void 0?ae:toAbsoluteIndex$1$3(le,ae);ve>fe;)ie[fe++]=k;return ie},global$8$4=global$l,uncurryThis$7$3=functionUncurryThis$4,DESCRIPTORS$4$4=descriptors$4,NATIVE_ARRAY_BUFFER$1$1=arrayBufferNative$1,FunctionName$2=functionName$4,createNonEnumerableProperty$3$1=createNonEnumerableProperty$8$1,defineBuiltIns$2=defineBuiltIns$1$1,fails$7$4=fails$p,anInstance$1$2=anInstance$2$1,toIntegerOrInfinity$1$3=toIntegerOrInfinity$6$1,toLength$2$1=toLength$6$1,toIndex$1$1=toIndex$2$1,IEEE754$1=ieee754$1,getPrototypeOf$1$1=objectGetPrototypeOf$1,setPrototypeOf$3$1=objectSetPrototypeOf$2,getOwnPropertyNames$1$1=objectGetOwnPropertyNames$3.f,defineProperty$2$3=objectDefineProperty$4.f,arrayFill$2=arrayFill$1$1,arraySlice$3$1=arraySliceSimple$1,setToStringTag$5=setToStringTag$3$1,InternalStateModule$2$1=internalState$4,PROPER_FUNCTION_NAME$4=FunctionName$2.PROPER,CONFIGURABLE_FUNCTION_NAME$6=FunctionName$2.CONFIGURABLE,getInternalState$2$1=InternalStateModule$2$1.get,setInternalState$1$1=InternalStateModule$2$1.set,ARRAY_BUFFER$1="ArrayBuffer",DATA_VIEW$1="DataView",PROTOTYPE$2="prototype",WRONG_LENGTH$1$1="Wrong length",WRONG_INDEX$1="Wrong index",NativeArrayBuffer$1=global$8$4[ARRAY_BUFFER$1],$ArrayBuffer$1=NativeArrayBuffer$1,ArrayBufferPrototype$1$1=$ArrayBuffer$1&&$ArrayBuffer$1[PROTOTYPE$2],$DataView$1=global$8$4[DATA_VIEW$1],DataViewPrototype$1$1=$DataView$1&&$DataView$1[PROTOTYPE$2],ObjectPrototype$1$1=Object.prototype,Array$1$1=global$8$4.Array,RangeError$3$1=global$8$4.RangeError,fill2$1=uncurryThis$7$3(arrayFill$2),reverse$1=uncurryThis$7$3([].reverse),packIEEE754$1=IEEE754$1.pack,unpackIEEE754$1=IEEE754$1.unpack,packInt8$1=function(v){return[v&255]},packInt16$1=function(v){return[v&255,v>>8&255]},packInt32$1=function(v){return[v&255,v>>8&255,v>>16&255,v>>24&255]},unpackInt32$1=function(v){return v[3]<<24|v[2]<<16|v[1]<<8|v[0]},packFloat32$1=function(v){return packIEEE754$1(v,23,4)},packFloat64$1=function(v){return packIEEE754$1(v,52,8)},addGetter$1$1=function(v,k){defineProperty$2$3(v[PROTOTYPE$2],k,{get:function(){return getInternalState$2$1(this)[k]}})},get$5=function(v,k,ie,ae){var ce=toIndex$1$1(ie),fe=getInternalState$2$1(v);if(ce+k>fe.byteLength)throw RangeError$3$1(WRONG_INDEX$1);var le=getInternalState$2$1(fe.buffer).bytes,ve=ce+fe.byteOffset,pe=arraySlice$3$1(le,ve,ve+k);return ae?pe:reverse$1(pe)},set$5=function(v,k,ie,ae,ce,fe){var le=toIndex$1$1(ie),ve=getInternalState$2$1(v);if(le+k>ve.byteLength)throw RangeError$3$1(WRONG_INDEX$1);for(var pe=getInternalState$2$1(ve.buffer).bytes,ye=le+ve.byteOffset,me=ae(+ce),Ee=0;Eece)throw RangeError$3$1("Wrong offset");if(ae=ae===void 0?ce-fe:toLength$2$1(ae),fe+ae>ce)throw RangeError$3$1(WRONG_LENGTH$1$1);setInternalState$1$1(this,{buffer:k,byteLength:ae,byteOffset:fe}),DESCRIPTORS$4$4||(this.buffer=k,this.byteLength=ae,this.byteOffset=fe)},DataViewPrototype$1$1=$DataView$1[PROTOTYPE$2],DESCRIPTORS$4$4&&(addGetter$1$1($ArrayBuffer$1,"byteLength"),addGetter$1$1($DataView$1,"buffer"),addGetter$1$1($DataView$1,"byteLength"),addGetter$1$1($DataView$1,"byteOffset")),defineBuiltIns$2(DataViewPrototype$1$1,{getInt8:function(k){return get$5(this,1,k)[0]<<24>>24},getUint8:function(k){return get$5(this,1,k)[0]},getInt16:function(k){var ie=get$5(this,2,k,arguments.length>1?arguments[1]:void 0);return(ie[1]<<8|ie[0])<<16>>16},getUint16:function(k){var ie=get$5(this,2,k,arguments.length>1?arguments[1]:void 0);return ie[1]<<8|ie[0]},getInt32:function(k){return unpackInt32$1(get$5(this,4,k,arguments.length>1?arguments[1]:void 0))},getUint32:function(k){return unpackInt32$1(get$5(this,4,k,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(k){return unpackIEEE754$1(get$5(this,4,k,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(k){return unpackIEEE754$1(get$5(this,8,k,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(k,ie){set$5(this,1,k,packInt8$1,ie)},setUint8:function(k,ie){set$5(this,1,k,packInt8$1,ie)},setInt16:function(k,ie){set$5(this,2,k,packInt16$1,ie,arguments.length>2?arguments[2]:void 0)},setUint16:function(k,ie){set$5(this,2,k,packInt16$1,ie,arguments.length>2?arguments[2]:void 0)},setInt32:function(k,ie){set$5(this,4,k,packInt32$1,ie,arguments.length>2?arguments[2]:void 0)},setUint32:function(k,ie){set$5(this,4,k,packInt32$1,ie,arguments.length>2?arguments[2]:void 0)},setFloat32:function(k,ie){set$5(this,4,k,packFloat32$1,ie,arguments.length>2?arguments[2]:void 0)},setFloat64:function(k,ie){set$5(this,8,k,packFloat64$1,ie,arguments.length>2?arguments[2]:void 0)}});else{if(INCORRECT_ARRAY_BUFFER_NAME$1=PROPER_FUNCTION_NAME$4&&NativeArrayBuffer$1.name!==ARRAY_BUFFER$1,!fails$7$4(function(){NativeArrayBuffer$1(1)})||!fails$7$4(function(){new NativeArrayBuffer$1(-1)})||fails$7$4(function(){return new NativeArrayBuffer$1,new NativeArrayBuffer$1(1.5),new NativeArrayBuffer$1(NaN),INCORRECT_ARRAY_BUFFER_NAME$1&&!CONFIGURABLE_FUNCTION_NAME$6})){for($ArrayBuffer$1=function(k){return anInstance$1$2(this,ArrayBufferPrototype$1$1),new NativeArrayBuffer$1(toIndex$1$1(k))},$ArrayBuffer$1[PROTOTYPE$2]=ArrayBufferPrototype$1$1,keys2$1=getOwnPropertyNames$1$1(NativeArrayBuffer$1),j$1=0;keys2$1.length>j$1;)(key$2=keys2$1[j$1++])in $ArrayBuffer$1||createNonEnumerableProperty$3$1($ArrayBuffer$1,key$2,NativeArrayBuffer$1[key$2]);ArrayBufferPrototype$1$1.constructor=$ArrayBuffer$1}else INCORRECT_ARRAY_BUFFER_NAME$1&&CONFIGURABLE_FUNCTION_NAME$6&&createNonEnumerableProperty$3$1(NativeArrayBuffer$1,"name",ARRAY_BUFFER$1);setPrototypeOf$3$1&&getPrototypeOf$1$1(DataViewPrototype$1$1)!==ObjectPrototype$1$1&&setPrototypeOf$3$1(DataViewPrototype$1$1,ObjectPrototype$1$1),testView$1=new $DataView$1(new $ArrayBuffer$1(2)),$setInt8$1=uncurryThis$7$3(DataViewPrototype$1$1.setInt8),testView$1.setInt8(0,2147483648),testView$1.setInt8(1,2147483649),(testView$1.getInt8(0)||!testView$1.getInt8(1))&&defineBuiltIns$2(DataViewPrototype$1$1,{setInt8:function(k,ie){$setInt8$1(this,k,ie<<24>>24)},setUint8:function(k,ie){$setInt8$1(this,k,ie<<24>>24)}},{unsafe:!0})}var INCORRECT_ARRAY_BUFFER_NAME$1,keys2$1,j$1,key$2,testView$1,$setInt8$1;setToStringTag$5($ArrayBuffer$1,ARRAY_BUFFER$1);setToStringTag$5($DataView$1,DATA_VIEW$1);var arrayBuffer$1={ArrayBuffer:$ArrayBuffer$1,DataView:$DataView$1},$$2$2=_export$3,uncurryThis$6$4=functionUncurryThis$4,fails$6$4=fails$p,ArrayBufferModule$1$1=arrayBuffer$1,anObject$1$4=anObject$c$1,toAbsoluteIndex$7=toAbsoluteIndex$4$1,toLength$1$3=toLength$6$1,speciesConstructor$3=speciesConstructor$2$1,ArrayBuffer$3$1=ArrayBufferModule$1$1.ArrayBuffer,DataView$2$1=ArrayBufferModule$1$1.DataView,DataViewPrototype$2=DataView$2$1.prototype,un$ArrayBufferSlice$1=uncurryThis$6$4(ArrayBuffer$3$1.prototype.slice),getUint8$1=uncurryThis$6$4(DataViewPrototype$2.getUint8),setUint8$1=uncurryThis$6$4(DataViewPrototype$2.setUint8),INCORRECT_SLICE$1=fails$6$4(function(){return!new ArrayBuffer$3$1(2).slice(1,void 0).byteLength});$$2$2({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:INCORRECT_SLICE$1},{slice:function v(k,ie){if(un$ArrayBufferSlice$1&&ie===void 0)return un$ArrayBufferSlice$1(anObject$1$4(this),k);for(var ae=anObject$1$4(this).byteLength,ce=toAbsoluteIndex$7(k,ae),fe=toAbsoluteIndex$7(ie===void 0?ae:ie,ae),le=new(speciesConstructor$3(this,ArrayBuffer$3$1))(toLength$1$3(fe-ce)),ve=new DataView$2$1(this),pe=new DataView$2$1(le),ye=0;ce1?arguments[1]:void 0,le=fe!==void 0,ve=getIteratorMethod$4(ae),pe,ye,me,Ee,cr,Br;if(ve&&!isArrayIteratorMethod$3(ve))for(cr=getIterator$3(ae,ve),Br=cr.next,ae=[];!(Ee=call$4$4(Br,cr)).done;)ae.push(Ee.value);for(le&&ce>2&&(fe=bind$1$2(fe,arguments[2])),ye=lengthOfArrayLike$2$2(ae),me=new(aTypedArrayConstructor$1$1(ie))(ye),pe=0;ye>pe;pe++)me[pe]=le?fe(ae[pe],pe):ae[pe];return me},classof$2$2=classofRaw$1$3,isArray$1$1=Array.isArray||function v(k){return classof$2$2(k)=="Array"},isArray2$1=isArray$1$1,isConstructor3$2=isConstructor$2$1,isObject$2$4=isObject$b$1,wellKnownSymbol$2$3=wellKnownSymbol$h$1,SPECIES$1$2=wellKnownSymbol$2$3("species"),$Array$3=Array,arraySpeciesConstructor$1$1=function(v){var k;return isArray2$1(v)&&(k=v.constructor,isConstructor3$2(k)&&(k===$Array$3||isArray2$1(k.prototype))?k=void 0:isObject$2$4(k)&&(k=k[SPECIES$1$2],k===null&&(k=void 0))),k===void 0?$Array$3:k},arraySpeciesConstructor$2=arraySpeciesConstructor$1$1,arraySpeciesCreate$1$1=function(v,k){return new(arraySpeciesConstructor$2(v))(k===0?0:k)},bind$9=functionBindContext$2,uncurryThis$4$4=functionUncurryThis$4,IndexedObject$1$2=indexedObject$3,toObject$1$4=toObject$6$1,lengthOfArrayLike$1$3=lengthOfArrayLike$6$1,arraySpeciesCreate$2=arraySpeciesCreate$1$1,push$4=uncurryThis$4$4([].push),createMethod$4=function(v){var k=v==1,ie=v==2,ae=v==3,ce=v==4,fe=v==6,le=v==7,ve=v==5||fe;return function(pe,ye,me,Ee){for(var cr=toObject$1$4(pe),Br=IndexedObject$1$2(cr),$r=bind$9(ye,me),Pr=lengthOfArrayLike$1$3(Br),Or=0,ur=Ee||arraySpeciesCreate$2,jr=k?ur(pe,Pr):ie||le?ur(pe,0):void 0,Mr,Lr;Pr>Or;Or++)if((ve||Or in Br)&&(Mr=Br[Or],Lr=$r(Mr,Or,cr),v))if(k)jr[Or]=Lr;else if(Lr)switch(v){case 3:return!0;case 5:return Mr;case 6:return Or;case 2:push$4(jr,Mr)}else switch(v){case 4:return!1;case 7:push$4(jr,Mr)}return fe?-1:ae||ce?ce:jr}},arrayIteration$1={forEach:createMethod$4(0),map:createMethod$4(1),filter:createMethod$4(2),some:createMethod$4(3),every:createMethod$4(4),find:createMethod$4(5),findIndex:createMethod$4(6),filterReject:createMethod$4(7)},getBuiltIn$c=getBuiltIn$6$2,definePropertyModule$1$4=objectDefineProperty$4,wellKnownSymbol$1$4=wellKnownSymbol$h$1,DESCRIPTORS$2$4=descriptors$4,SPECIES$4=wellKnownSymbol$1$4("species"),setSpecies$1$2=function(v){var k=getBuiltIn$c(v),ie=definePropertyModule$1$4.f;DESCRIPTORS$2$4&&k&&!k[SPECIES$4]&&ie(k,SPECIES$4,{configurable:!0,get:function(){return this}})},isCallable$m=isCallable$j$1,isObject$1$4=isObject$b$1,setPrototypeOf$1$1=objectSetPrototypeOf$2,inheritIfRequired$1$1=function(v,k,ie){var ae,ce;return setPrototypeOf$1$1&&isCallable$m(ae=k.constructor)&&ae!==ie&&isObject$1$4(ce=ae.prototype)&&ce!==ie.prototype&&setPrototypeOf$1$1(v,ce),v},$$1$2=_export$3,global$5$4=global$l,call$3$4=functionCall$4,DESCRIPTORS$1$4=descriptors$4,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$1=typedArrayConstructorsRequireWrappers$1,ArrayBufferViewCore$4$1=arrayBufferViewCore$1,ArrayBufferModule$2=arrayBuffer$1,anInstance$4=anInstance$2$1,createPropertyDescriptor$9=createPropertyDescriptor$5$1,createNonEnumerableProperty$1$4=createNonEnumerableProperty$8$1,isIntegralNumber$2=isIntegralNumber$1$1,toLength$8=toLength$6$1,toIndex$3=toIndex$2$1,toOffset$1$1=toOffset$2$1,toPropertyKey$8=toPropertyKey$4$1,hasOwn2$4=hasOwnProperty_1$4,classof$1$3=classof$9$1,isObject$e=isObject$b$1,isSymbol$7=isSymbol$3$1,create2$1=objectCreate$1,isPrototypeOf$8=objectIsPrototypeOf$4,setPrototypeOf$6=objectSetPrototypeOf$2,getOwnPropertyNames2$1=objectGetOwnPropertyNames$3.f,typedArrayFrom$2=typedArrayFrom$1$1,forEach$1=arrayIteration$1.forEach,setSpecies$3=setSpecies$1$2,definePropertyModule$a=objectDefineProperty$4,getOwnPropertyDescriptorModule$4=objectGetOwnPropertyDescriptor$3,InternalStateModule$8=internalState$4,inheritIfRequired$2=inheritIfRequired$1$1,getInternalState$8=InternalStateModule$8.get,setInternalState$4=InternalStateModule$8.set,enforceInternalState$6=InternalStateModule$8.enforce,nativeDefineProperty$1=definePropertyModule$a.f,nativeGetOwnPropertyDescriptor$1=getOwnPropertyDescriptorModule$4.f,round$1=Math.round,RangeError$2$1=global$5$4.RangeError,ArrayBuffer$1$1=ArrayBufferModule$2.ArrayBuffer,ArrayBufferPrototype$2=ArrayBuffer$1$1.prototype,DataView$1$1=ArrayBufferModule$2.DataView,NATIVE_ARRAY_BUFFER_VIEWS$3=ArrayBufferViewCore$4$1.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG$2=ArrayBufferViewCore$4$1.TYPED_ARRAY_TAG,TypedArray$2=ArrayBufferViewCore$4$1.TypedArray,TypedArrayPrototype$2=ArrayBufferViewCore$4$1.TypedArrayPrototype,aTypedArrayConstructor$3=ArrayBufferViewCore$4$1.aTypedArrayConstructor,isTypedArray$2=ArrayBufferViewCore$4$1.isTypedArray,BYTES_PER_ELEMENT$1="BYTES_PER_ELEMENT",WRONG_LENGTH$2="Wrong length",fromList$1=function(v,k){aTypedArrayConstructor$3(v);for(var ie=0,ae=k.length,ce=new v(ae);ae>ie;)ce[ie]=k[ie++];return ce},addGetter$2=function(v,k){nativeDefineProperty$1(v,k,{get:function(){return getInternalState$8(this)[k]}})},isArrayBuffer$1=function(v){var k;return isPrototypeOf$8(ArrayBufferPrototype$2,v)||(k=classof$1$3(v))=="ArrayBuffer"||k=="SharedArrayBuffer"},isTypedArrayIndex$1=function(v,k){return isTypedArray$2(v)&&!isSymbol$7(k)&&k in v&&isIntegralNumber$2(+k)&&k>=0},wrappedGetOwnPropertyDescriptor$1=function v(k,ie){return ie=toPropertyKey$8(ie),isTypedArrayIndex$1(k,ie)?createPropertyDescriptor$9(2,k[ie]):nativeGetOwnPropertyDescriptor$1(k,ie)},wrappedDefineProperty$1=function v(k,ie,ae){return ie=toPropertyKey$8(ie),isTypedArrayIndex$1(k,ie)&&isObject$e(ae)&&hasOwn2$4(ae,"value")&&!hasOwn2$4(ae,"get")&&!hasOwn2$4(ae,"set")&&!ae.configurable&&(!hasOwn2$4(ae,"writable")||ae.writable)&&(!hasOwn2$4(ae,"enumerable")||ae.enumerable)?(k[ie]=ae.value,k):nativeDefineProperty$1(k,ie,ae)};DESCRIPTORS$1$4?(NATIVE_ARRAY_BUFFER_VIEWS$3||(getOwnPropertyDescriptorModule$4.f=wrappedGetOwnPropertyDescriptor$1,definePropertyModule$a.f=wrappedDefineProperty$1,addGetter$2(TypedArrayPrototype$2,"buffer"),addGetter$2(TypedArrayPrototype$2,"byteOffset"),addGetter$2(TypedArrayPrototype$2,"byteLength"),addGetter$2(TypedArrayPrototype$2,"length")),$$1$2({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS$3},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor$1,defineProperty:wrappedDefineProperty$1}),typedArrayConstructor$1.exports=function(v,k,ie){var ae=v.match(/\d+$/)[0]/8,ce=v+(ie?"Clamped":"")+"Array",fe="get"+v,le="set"+v,ve=global$5$4[ce],pe=ve,ye=pe&&pe.prototype,me={},Ee=function(Pr,Or){var ur=getInternalState$8(Pr);return ur.view[fe](Or*ae+ur.byteOffset,!0)},cr=function(Pr,Or,ur){var jr=getInternalState$8(Pr);ie&&(ur=(ur=round$1(ur))<0?0:ur>255?255:ur&255),jr.view[le](Or*ae+jr.byteOffset,ur,!0)},Br=function(Pr,Or){nativeDefineProperty$1(Pr,Or,{get:function(){return Ee(this,Or)},set:function(ur){return cr(this,Or,ur)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS$3?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$1&&(pe=k(function(Pr,Or,ur,jr){return anInstance$4(Pr,ye),inheritIfRequired$2(function(){return isObject$e(Or)?isArrayBuffer$1(Or)?jr!==void 0?new ve(Or,toOffset$1$1(ur,ae),jr):ur!==void 0?new ve(Or,toOffset$1$1(ur,ae)):new ve(Or):isTypedArray$2(Or)?fromList$1(pe,Or):call$3$4(typedArrayFrom$2,pe,Or):new ve(toIndex$3(Or))}(),Pr,pe)}),setPrototypeOf$6&&setPrototypeOf$6(pe,TypedArray$2),forEach$1(getOwnPropertyNames2$1(ve),function(Pr){Pr in pe||createNonEnumerableProperty$1$4(pe,Pr,ve[Pr])}),pe.prototype=ye):(pe=k(function(Pr,Or,ur,jr){anInstance$4(Pr,ye);var Mr=0,Lr=0,Vr,Gr,Ur;if(!isObject$e(Or))Ur=toIndex$3(Or),Gr=Ur*ae,Vr=new ArrayBuffer$1$1(Gr);else if(isArrayBuffer$1(Or)){Vr=Or,Lr=toOffset$1$1(ur,ae);var Qr=Or.byteLength;if(jr===void 0){if(Qr%ae||(Gr=Qr-Lr,Gr<0))throw RangeError$2$1(WRONG_LENGTH$2)}else if(Gr=toLength$8(jr)*ae,Gr+Lr>Qr)throw RangeError$2$1(WRONG_LENGTH$2);Ur=Gr/ae}else return isTypedArray$2(Or)?fromList$1(pe,Or):call$3$4(typedArrayFrom$2,pe,Or);for(setInternalState$4(Pr,{buffer:Vr,byteOffset:Lr,byteLength:Gr,length:Ur,view:new DataView$1$1(Vr)});Mr1?arguments[1]:void 0,ie>2?arguments[2]:void 0)},CONVERSION_BUG$1);var global$4$4=global$l,call$1$4=functionCall$4,ArrayBufferViewCore$2$1=arrayBufferViewCore$1,lengthOfArrayLike$9=lengthOfArrayLike$6$1,toOffset$3=toOffset$2$1,toIndexedObject$9=toObject$6$1,fails$3$4=fails$p,RangeError$1$1=global$4$4.RangeError,Int8Array$2$1=global$4$4.Int8Array,Int8ArrayPrototype$2=Int8Array$2$1&&Int8Array$2$1.prototype,$set$1=Int8ArrayPrototype$2&&Int8ArrayPrototype$2.set,aTypedArray$2$1=ArrayBufferViewCore$2$1.aTypedArray,exportTypedArrayMethod$2$1=ArrayBufferViewCore$2$1.exportTypedArrayMethod,WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$1=!fails$3$4(function(){var v=new Uint8ClampedArray(2);return call$1$4($set$1,v,{length:1,0:3},1),v[1]!==3}),TO_OBJECT_BUG$1=WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$1&&ArrayBufferViewCore$2$1.NATIVE_ARRAY_BUFFER_VIEWS&&fails$3$4(function(){var v=new Int8Array$2$1(2);return v.set(1),v.set("2",1),v[0]!==0||v[1]!==2});exportTypedArrayMethod$2$1("set",function v(k){aTypedArray$2$1(this);var ie=toOffset$3(arguments.length>1?arguments[1]:void 0,1),ae=toIndexedObject$9(k);if(WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$1)return call$1$4($set$1,this,ae,ie);var ce=this.length,fe=lengthOfArrayLike$9(ae),le=0;if(fe+ie>ce)throw RangeError$1$1("Wrong length");for(;le0;)v[fe]=v[--fe];fe!==ae++&&(v[fe]=ce)}return v},merge$1=function(v,k,ie,ae){for(var ce=k.length,fe=ie.length,le=0,ve=0;le0&&1/ie<0?1:-1:k>ie}};exportTypedArrayMethod$1$1("sort",function v(k){return k!==void 0&&aCallable$b(k),STABLE_SORT$1?un$Sort$1(this,k):internalSort$1(aTypedArray$1$1(this),getSortCompare$1(k))},!STABLE_SORT$1||ACCEPT_INCORRECT_ARGUMENTS$1);var uncurryThis$1$4=functionUncurryThis$4,arraySlice$1$2=uncurryThis$1$4([].slice),global$2$4=global$l,apply$3=functionApply$2,ArrayBufferViewCore$5=arrayBufferViewCore$1,fails$1$4=fails$p,arraySlice$5=arraySlice$1$2,Int8Array$1$1=global$2$4.Int8Array,aTypedArray$5=ArrayBufferViewCore$5.aTypedArray,exportTypedArrayMethod$5=ArrayBufferViewCore$5.exportTypedArrayMethod,$toLocaleString$1=[].toLocaleString,TO_LOCALE_STRING_BUG$1=!!Int8Array$1$1&&fails$1$4(function(){$toLocaleString$1.call(new Int8Array$1$1(1))}),FORCED$1=fails$1$4(function(){return[1,2].toLocaleString()!=new Int8Array$1$1([1,2]).toLocaleString()})||!fails$1$4(function(){Int8Array$1$1.prototype.toLocaleString.call([1,2])});exportTypedArrayMethod$5("toLocaleString",function v(){return apply$3($toLocaleString$1,TO_LOCALE_STRING_BUG$1?arraySlice$5(aTypedArray$5(this)):aTypedArray$5(this),arraySlice$5(arguments))},FORCED$1);var DESCRIPTORS$h=descriptors$4,uncurryThis$o=functionUncurryThis$4,call$h=functionCall$4,fails$q=fails$p,objectKeys$4=objectKeys$2$1,getOwnPropertySymbolsModule$4=objectGetOwnPropertySymbols$3,propertyIsEnumerableModule$4=objectPropertyIsEnumerable$3,toObject$a=toObject$6$1,IndexedObject$5=indexedObject$3,$assign$2=Object.assign,defineProperty4=Object.defineProperty,concat$5=uncurryThis$o([].concat),objectAssign$2=!$assign$2||fails$q(function(){if(DESCRIPTORS$h&&$assign$2({b:1},$assign$2(defineProperty4({},"a",{enumerable:!0,get:function(){defineProperty4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},k={},ie=Symbol(),ae="abcdefghijklmnopqrst";return v[ie]=7,ae.split("").forEach(function(ce){k[ce]=ce}),$assign$2({},v)[ie]!=7||objectKeys$4($assign$2({},k)).join("")!=ae})?function v(k,ie){for(var ae=toObject$a(k),ce=arguments.length,fe=1,le=getOwnPropertySymbolsModule$4.f,ve=propertyIsEnumerableModule$4.f;ce>fe;)for(var pe=IndexedObject$5(arguments[fe++]),ye=le?concat$5(objectKeys$4(pe),le(pe)):objectKeys$4(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$h||call$h(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$2,$$8=_export$3,assign2$2=objectAssign$2;$$8({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$2},{assign:assign2$2});var domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$5=documentCreateElement$2$1,classList=documentCreateElement$5("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$1$4=global$l,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$a=createNonEnumerableProperty$8$1,wellKnownSymbol$i=wellKnownSymbol$h$1,ITERATOR$6=wellKnownSymbol$i("iterator"),TO_STRING_TAG$6=wellKnownSymbol$i("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(v,k){if(v){if(v[ITERATOR$6]!==ArrayValues)try{createNonEnumerableProperty$a(v,ITERATOR$6,ArrayValues)}catch{v[ITERATOR$6]=ArrayValues}if(v[TO_STRING_TAG$6]||createNonEnumerableProperty$a(v,TO_STRING_TAG$6,k),DOMIterables[k]){for(var ie in ArrayIteratorMethods)if(v[ie]!==ArrayIteratorMethods[ie])try{createNonEnumerableProperty$a(v,ie,ArrayIteratorMethods[ie])}catch{v[ie]=ArrayIteratorMethods[ie]}}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$1$4[COLLECTION_NAME]&&global$1$4[COLLECTION_NAME].prototype,COLLECTION_NAME);var COLLECTION_NAME;handlePrototype(DOMTokenListPrototype,"DOMTokenList");function __awaiter$6(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARMAAAETCAYAAAAVqeK4AAAAAXNSR0IArs4c6QAAAJZlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgExAAIAAAARAAAAWodpAAQAAAABAAAAbAAAAAAAAAEsAAAAAQAAASwAAAABd3d3Lmlua3NjYXBlLm9yZwAAAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAROgAwAEAAAAAQAAARMAAAAAwzPlUAAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAi9pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx4bXA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Gx7s2rLx5qfu//yT/bvoXo7nHvvbDRLV5bvMm7Lo0nm1TeNW1Q+asKR59NxRBv5b9Kz4eqHYT8UymRCT4rr9Ccm2SmxNcdmD5drW2bbl3Vd+8Vb7xlfXbe388Oqn77vEqFXHg0UTT+7nH/26Xh2qecP2P7q+ZcTCcxpapq1sGDRhfDwtFl2rLlp0jdi3xXSwlQSBogjoCaN3QHoas2aLQmd0Jh1s79mnxWzruMhXxZqMjgznjCVQKZ7pZWzPkw0xMba7inYsiJi0S606ZWBY0bWTEQI+BAbLfh0EzQsKYuIDyqLdxYiJDsbfLDbSorgSddXae2+JUurd2Lvy9USxtt67+eYogY0Slz7ZO05Mx82cmwYvMZFSJqArYukaKFyZpNwRETRf6Mpkg9S7WmxgBPVTBQT6JaADcIhJv5iMz5AXE/3joGNiOhWAO53Gd5tbDpZLOH/sVkiZjOYKiVpnq07LZPQEDQEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAgQQJ/D/LxtSxjmI1fwAAAABJRU5ErkJggg==",STORAGE_ACCOUNT="account",isInstalled$4=()=>waitFor(()=>!!window.dapp).catch(()=>!1);function setupWalletState(v){return __awaiter$6(this,void 0,void 0,function*(){const k=yield v.getItem(STORAGE_ACCOUNT);return window.dapp?{wallet:window.dapp,account:k||void 0}:{}})}var WelldoneWallet=({options:v,store:k,emitter:ie,logger:ae,storage:ce,provider:fe})=>__awaiter$6(void 0,void 0,void 0,function*(){const le=yield setupWalletState(ce),ve=()=>__awaiter$6(void 0,void 0,void 0,function*(){if(le.wallet){const Pr=yield le.wallet.request("near",{method:"dapp:accounts"});return Pr.near?[Pr.near.address,Pr.near.pubKey]:[]}return[]}),pe=({accountId:Pr,publicKey:Or})=>__awaiter$6(void 0,void 0,void 0,function*(){if(ae.log("validateAccessKey",{accountId:Pr,publicKey:Or}),!le.wallet)throw new Error("Wallet is not installed");const ur=yield le.wallet.request("near",{method:"query",params:{request_type:"view_access_key",finality:"final",account_id:Pr,public_key:Or}});if(ae.log("validateAccessKey:accessKey",{accessKey:ur}),ur.permission!=="FullAccess")throw new Error("Public key requires 'FullAccess' permission");return ur}),ye=()=>{le.account&&(ce.removeItem(STORAGE_ACCOUNT),delete le.account)},me=()=>le.account?[{accountId:le.account.accountId,publicKey:le.account.publicKey}]:[],Ee=()=>__awaiter$6(void 0,void 0,void 0,function*(){ye(),ie.emit("signedOut",null)}),cr=()=>{le.wallet&&(le.wallet.on("dapp:accountsChanged",Pr=>__awaiter$6(void 0,void 0,void 0,function*(){ae.log("onAccountChange",Pr),yield Ee()})),le.wallet.on("dapp:chainChanged",Pr=>__awaiter$6(void 0,void 0,void 0,function*(){ae.log("onNetworkChange",Pr);const Or=Pr.split(":")[1]==="near"?"mainnet":"testnet";v.network.networkId!==Or&&(yield Ee(),ie.emit("networkChanged",{networkId:Or}))})))},Br={createKey:()=>{throw new Error("Not implemented")},getPublicKey:Pr=>__awaiter$6(void 0,void 0,void 0,function*(){const ur=me().find(jr=>jr.accountId===Pr);if(!ur)throw new Error("Failed to find public key for account");return nearAPI$1.utils.PublicKey.from(ur.publicKey)}),signMessage:(Pr,Or)=>__awaiter$6(void 0,void 0,void 0,function*(){if(!le.wallet)throw new Error("Wallet is not installed");if(!me().find(Mr=>Mr.accountId===Or))throw new Error("Failed to find account for signing");try{const Mr=nearAPI$1.transactions.Transaction.decode(Buffer.from(Pr)),Lr=Buffer.from(Mr.encode()).toString("hex"),Vr=yield le.wallet.request("near",{method:"dapp:signTransaction",params:["0x"+Lr]});return{signature:Buffer.from(Vr[0].signature.substr(2),"hex"),publicKey:nearAPI$1.utils.PublicKey.from(Vr[0].publicKey)}}catch{const Lr=new TextDecoder("utf-8").decode(Pr),Vr=yield le.wallet.request("near",{method:"dapp:signMessage",params:[Lr]});return{signature:Buffer.from(Vr[0].signature.substr(2),"hex"),publicKey:nearAPI$1.utils.PublicKey.from(Vr[0].publicKey)}}})},$r=Pr=>{const Or=me(),{contract:ur}=k.getState();if(!Or.length||!ur)throw new Error("Wallet not signed in");return Pr.map(jr=>({signerId:jr.signerId||Or[0].accountId,receiverId:jr.receiverId||ur.contractId,actions:jr.actions}))};return{signIn(){return __awaiter$6(this,void 0,void 0,function*(){const Pr=me();if(Pr.length)return Pr;le.account&&(yield Ee());const Or=yield ve();if(!(yield pe({accountId:Or[0],publicKey:Or[1]})))throw Ee(),new Error(`Public key (${Or[1]}) is not registered with the account '${Or[0]}'.`);return yield ce.setItem(STORAGE_ACCOUNT,{accountId:Or[0],publicKey:Or[1]}),le.account={accountId:Or[0],publicKey:Or[1]},cr(),me()})},getAccounts(){return __awaiter$6(this,void 0,void 0,function*(){return me()})},signOut:Ee,verifyOwner({message:Pr}){return __awaiter$6(this,void 0,void 0,function*(){if(ae.log("verifyOwner",{message:Pr}),!le.wallet)throw new Error("Wallet is not installed");const Or=le.account;if(!Or)throw new Error("Wallet not signed in");const ur=Or.accountId,jr=nearAPI$1.utils.PublicKey.fromString(Or.publicKey),Mr=yield fe.block({finality:"final"}),Lr={accountId:ur,message:Pr,blockId:Mr.header.hash,publicKey:Buffer.from(jr.data).toString("base64"),keyType:jr.keyType},Vr=JSON.stringify(Lr),Gr=yield Br.signMessage(new Uint8Array(Buffer.from(Vr)),ur);return Object.assign(Object.assign({},Lr),{signature:Buffer.from(Gr.signature).toString("base64")})})},signAndSendTransaction({signerId:Pr,receiverId:Or,actions:ur}){return __awaiter$6(this,void 0,void 0,function*(){ae.log("signAndSendTransaction",{signerId:Pr,receiverId:Or,actions:ur});const{contract:jr}=k.getState();if(!me().length||!jr)throw new Error("Wallet not signed in");const[Lr]=yield signTransactions($r([{signerId:Pr,receiverId:Or,actions:ur}]),Br,v.network);return fe.sendTransaction(Lr)})},signAndSendTransactions({transactions:Pr}){return __awaiter$6(this,void 0,void 0,function*(){ae.log("signAndSendTransactions",{transactions:Pr});const Or=yield signTransactions($r(Pr),Br,v.network),ur=[];for(let jr=0;jr{jr.slice(0,8)==="ed25519:"?Or.push(jr.slice(8)):Or.push(jr)});const ur={privateKey:Or,network:v.network.networkId};yield le.wallet.request("near",{method:"experimental:near:importPrivatekey",params:[ur]})})}}});function setupWelldoneWallet({iconUrl:v=icon$5,deprecated:k=!1}={}){return()=>__awaiter$6(this,void 0,void 0,function*(){const ie=(0,import_is_mobile$5.default)(),ae=isCurrentBrowserSupported(["chrome","edge-chromium","opera"]);if(ie||!ae)return null;const ce=yield isInstalled$4();return{id:"welldone-wallet",type:"injected",metadata:{name:"WELLDONE Wallet",description:"WELLDONE Wallet for Multichains",iconUrl:v,downloadUrl:"https://chrome.google.com/webstore/detail/welldone-wallet/bmkakpenjmcpfhhjadflneinmhboecjf",deprecated:k,available:ce},init:WelldoneWallet}})}var require_util=__commonJS$1({"browser-external:util"(v,k){k.exports={}}}),require_dist=__commonJS$1({"node_modules/@metamask/detect-provider/dist/index.js"(v,k){function ie({mustBeMetaMask:ae=!1,silent:ce=!1,timeout:fe=3e3}={}){ve();let le=!1;return new Promise(pe=>{window.ethereum?ye():(window.addEventListener("ethereum#initialized",ye,{once:!0}),setTimeout(()=>{ye()},fe));function ye(){if(le)return;le=!0,window.removeEventListener("ethereum#initialized",ye);const{ethereum:me}=window;me&&(!ae||me.isMetaMask)?pe(me):(!ce&&console.error("@metamask/detect-provider:",ae&&me?"Non-MetaMask window.ethereum detected.":"Unable to detect window.ethereum."),pe(null))}});function ve(){if(typeof ae!="boolean")throw new Error("@metamask/detect-provider: Expected option 'mustBeMetaMask' to be a boolean.");if(typeof ce!="boolean")throw new Error("@metamask/detect-provider: Expected option 'silent' to be a boolean.");if(typeof fe!="number")throw new Error("@metamask/detect-provider: Expected option 'timeout' to be a number.")}}k.exports=ie}}),require_sha3=__commonJS$1({"node_modules/js-sha3/src/sha3.js"(v,k){(function(){var ie="input is invalid type",ae="finalize already called",ce=typeof window=="object",fe=ce?window:{};fe.JS_SHA3_NO_WINDOW&&(ce=!1);var le=!ce&&typeof self=="object",ve=!fe.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;ve?fe=globalThis:le&&(fe=self);var pe=!fe.JS_SHA3_NO_COMMON_JS&&typeof k=="object"&&k.exports,ye=typeof define=="function"&&define.amd,me=!fe.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",Ee="0123456789abcdef".split(""),cr=[31,7936,2031616,520093696],Br=[4,1024,262144,67108864],$r=[1,256,65536,16777216],Pr=[6,1536,393216,100663296],Or=[0,8,16,24],ur=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],jr=[224,256,384,512],Mr=[128,256],Lr=["hex","buffer","arrayBuffer","array","digest"],Vr={128:168,256:136};(fe.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(mn){return Object.prototype.toString.call(mn)==="[object Array]"}),me&&(fe.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(mn){return typeof mn=="object"&&mn.buffer&&mn.buffer.constructor===ArrayBuffer});for(var Gr=function(mn,Nn,In){return function(bn){return new Hr(mn,Nn,mn).update(bn)[In]()}},Ur=function(mn,Nn,In){return function(bn,ii){return new Hr(mn,Nn,ii).update(bn)[In]()}},Qr=function(mn,Nn,In){return function(bn,ii,hn,pn){return kr["cshake"+mn].update(bn,ii,hn,pn)[In]()}},vn=function(mn,Nn,In){return function(bn,ii,hn,pn){return kr["kmac"+mn].update(bn,ii,hn,pn)[In]()}},Yt=function(mn,Nn,In,bn){for(var ii=0;ii>5,this.byteCount=this.blockCount<<2,this.outputBlocks=In>>5,this.extraBytes=(In&31)>>3;for(var bn=0;bn<50;++bn)this.s[bn]=0}Hr.prototype.update=function(mn){if(this.finalized)throw new Error(ae);var Nn,In=typeof mn;if(In!=="string"){if(In==="object"){if(mn===null)throw new Error(ie);if(me&&mn.constructor===ArrayBuffer)mn=new Uint8Array(mn);else if(!Array.isArray(mn)&&(!me||!ArrayBuffer.isView(mn)))throw new Error(ie)}else throw new Error(ie);Nn=!0}for(var bn=this.blocks,ii=this.byteCount,hn=mn.length,pn=this.blockCount,Sn=0,Qn=this.s,Jn,ui;Sn>2]|=mn[Sn]<>2]|=ui<>2]|=(192|ui>>6)<>2]|=(128|ui&63)<=57344?(bn[Jn>>2]|=(224|ui>>12)<>2]|=(128|ui>>6&63)<>2]|=(128|ui&63)<>2]|=(240|ui>>18)<>2]|=(128|ui>>12&63)<>2]|=(128|ui>>6&63)<>2]|=(128|ui&63)<=ii){for(this.start=Jn-ii,this.block=bn[pn],Jn=0;Jn>8,In=mn&255;In>0;)ii.unshift(In),mn=mn>>8,In=mn&255,++bn;return Nn?ii.push(bn):ii.unshift(bn),this.update(ii),ii.length},Hr.prototype.encodeString=function(mn){var Nn,In=typeof mn;if(In!=="string"){if(In==="object"){if(mn===null)throw new Error(ie);if(me&&mn.constructor===ArrayBuffer)mn=new Uint8Array(mn);else if(!Array.isArray(mn)&&(!me||!ArrayBuffer.isView(mn)))throw new Error(ie)}else throw new Error(ie);Nn=!0}var bn=0,ii=mn.length;if(Nn)bn=ii;else for(var hn=0;hn=57344?bn+=3:(pn=65536+((pn&1023)<<10|mn.charCodeAt(++hn)&1023),bn+=4)}return bn+=this.encode(bn*8),this.update(mn),bn},Hr.prototype.bytepad=function(mn,Nn){for(var In=this.encode(Nn),bn=0;bn>2]|=this.padding[Nn&3],this.lastByteIndex===this.byteCount)for(mn[0]=mn[In],Nn=1;Nn>4&15]+Ee[Sn&15]+Ee[Sn>>12&15]+Ee[Sn>>8&15]+Ee[Sn>>20&15]+Ee[Sn>>16&15]+Ee[Sn>>28&15]+Ee[Sn>>24&15];hn%mn===0&&(Gn(Nn),ii=0)}return bn&&(Sn=Nn[ii],pn+=Ee[Sn>>4&15]+Ee[Sn&15],bn>1&&(pn+=Ee[Sn>>12&15]+Ee[Sn>>8&15]),bn>2&&(pn+=Ee[Sn>>20&15]+Ee[Sn>>16&15])),pn},Hr.prototype.arrayBuffer=function(){this.finalize();var mn=this.blockCount,Nn=this.s,In=this.outputBlocks,bn=this.extraBytes,ii=0,hn=0,pn=this.outputBits>>3,Sn;bn?Sn=new ArrayBuffer(In+1<<2):Sn=new ArrayBuffer(pn);for(var Qn=new Uint32Array(Sn);hn>8&255,pn[Sn+2]=Qn>>16&255,pn[Sn+3]=Qn>>24&255;hn%mn===0&&Gn(Nn)}return bn&&(Sn=hn<<2,Qn=Nn[ii],pn[Sn]=Qn&255,bn>1&&(pn[Sn+1]=Qn>>8&255),bn>2&&(pn[Sn+2]=Qn>>16&255)),pn};function On(mn,Nn,In){Hr.call(this,mn,Nn,In)}On.prototype=new Hr,On.prototype.finalize=function(){return this.encode(this.outputBits,!0),Hr.prototype.finalize.call(this)};var Gn=function(mn){var Nn,In,bn,ii,hn,pn,Sn,Qn,Jn,ui,gi,di,Ci,yi,li,Pi,Ai,Oi,to,En,Bt,Zt,Tn,ei,zn,gn,xn,Hn,Ln,ti,oi,Ei,Ri,Oo,Ui,io,So,$o,mo,qo,wo,Eo,jo,go,zi,xo,Yr,Wt,ln,qr,dn,ri,Zn,ai,bi,_i,fi,yo,Di,Ni,oo,fo,co;for(bn=0;bn<48;bn+=2)ii=mn[0]^mn[10]^mn[20]^mn[30]^mn[40],hn=mn[1]^mn[11]^mn[21]^mn[31]^mn[41],pn=mn[2]^mn[12]^mn[22]^mn[32]^mn[42],Sn=mn[3]^mn[13]^mn[23]^mn[33]^mn[43],Qn=mn[4]^mn[14]^mn[24]^mn[34]^mn[44],Jn=mn[5]^mn[15]^mn[25]^mn[35]^mn[45],ui=mn[6]^mn[16]^mn[26]^mn[36]^mn[46],gi=mn[7]^mn[17]^mn[27]^mn[37]^mn[47],di=mn[8]^mn[18]^mn[28]^mn[38]^mn[48],Ci=mn[9]^m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n[22]<<10|mn[23]>>>22,ln=mn[23]<<10|mn[22]>>>22,ti=mn[33]<<13|mn[32]>>>19,oi=mn[32]<<13|mn[33]>>>19,fo=mn[42]<<2|mn[43]>>>30,co=mn[43]<<2|mn[42]>>>30,ai=mn[5]<<30|mn[4]>>>2,bi=mn[4]<<30|mn[5]>>>2,io=mn[14]<<6|mn[15]>>>26,So=mn[15]<<6|mn[14]>>>26,Oi=mn[25]<<11|mn[24]>>>21,to=mn[24]<<11|mn[25]>>>21,qr=mn[34]<<15|mn[35]>>>17,dn=mn[35]<<15|mn[34]>>>17,Ei=mn[45]<<29|mn[44]>>>3,Ri=mn[44]<<29|mn[45]>>>3,ei=mn[6]<<28|mn[7]>>>4,zn=mn[7]<<28|mn[6]>>>4,_i=mn[17]<<23|mn[16]>>>9,fi=mn[16]<<23|mn[17]>>>9,$o=mn[26]<<25|mn[27]>>>7,mo=mn[27]<<25|mn[26]>>>7,En=mn[36]<<21|mn[37]>>>11,Bt=mn[37]<<21|mn[36]>>>11,ri=mn[47]<<24|mn[46]>>>8,Zn=mn[46]<<24|mn[47]>>>8,go=mn[8]<<27|mn[9]>>>5,zi=mn[9]<<27|mn[8]>>>5,gn=mn[18]<<20|mn[19]>>>12,xn=mn[19]<<20|mn[18]>>>12,yo=mn[29]<<7|mn[28]>>>25,Di=mn[28]<<7|mn[29]>>>25,qo=mn[38]<<8|mn[39]>>>24,wo=mn[39]<<8|mn[38]>>>24,Zt=mn[48]<<14|mn[49]>>>18,Tn=mn[49]<<14|mn[48]>>>18,mn[0]=yi^~Pi&Oi,mn[1]=li^~Ai&to,mn[10]=ei^~gn&Hn,mn[11]=zn^~xn&Ln,mn[20]=Oo^~io&$o,mn[21]=Ui^~So&mo,mn[30]=go^~xo&Wt,mn[31]=zi^~Yr&ln,mn[40]=ai^~_i&yo,mn[41]=bi^~fi&Di,mn[2]=Pi^~Oi&En,mn[3]=Ai^~to&Bt,mn[12]=gn^~Hn&ti,mn[13]=xn^~Ln&oi,mn[22]=io^~$o&qo,mn[23]=So^~mo&wo,mn[32]=xo^~Wt&qr,mn[33]=Yr^~ln&dn,mn[42]=_i^~yo&Ni,mn[43]=fi^~Di&oo,mn[4]=Oi^~En&Zt,mn[5]=to^~Bt&Tn,mn[14]=Hn^~ti&Ei,mn[15]=Ln^~oi&Ri,mn[24]=$o^~qo&Eo,mn[25]=mo^~wo&jo,mn[34]=Wt^~qr&ri,mn[35]=ln^~dn&Zn,mn[44]=yo^~Ni&fo,mn[45]=Di^~oo&co,mn[6]=En^~Zt&yi,mn[7]=Bt^~Tn&li,mn[16]=ti^~Ei&ei,mn[17]=oi^~Ri&zn,mn[26]=qo^~Eo&Oo,mn[27]=wo^~jo&Ui,mn[36]=qr^~ri&go,mn[37]=dn^~Zn&zi,mn[46]=Ni^~fo&ai,mn[47]=oo^~co&bi,mn[8]=Zt^~yi&Pi,mn[9]=Tn^~li&Ai,mn[18]=Ei^~ei&gn,mn[19]=Ri^~zn&xn,mn[28]=Eo^~Oo&io,mn[29]=jo^~Ui&So,mn[38]=ri^~go&xo,mn[39]=Zn^~zi&Yr,mn[48]=fo^~ai&_i,mn[49]=co^~bi&fi,mn[0]^=ur[bn],mn[1]^=ur[bn+1]};if(pe)k.exports=kr;else{for(Wr=0;Wr=Qt.length?!1:(Qt.charCodeAt(Kr+1)&64512)===56320}function ce(Qt,Kr){if(Array.isArray(Qt))return Qt.slice();if(!Qt)return[];var be=[];if(typeof Qt=="string")if(Kr){if(Kr==="hex")for(Qt=Qt.replace(/[^a-z0-9]+/ig,""),Qt.length%2!==0&&(Qt="0"+Qt),xr=0;xr>6|192,be[kr++]=Wr&63|128):ae(Qt,xr)?(Wr=65536+((Wr&1023)<<10)+(Qt.charCodeAt(++xr)&1023),be[kr++]=Wr>>18|240,be[kr++]=Wr>>12&63|128,be[kr++]=Wr>>6&63|128,be[kr++]=Wr&63|128):(be[kr++]=Wr>>12|224,be[kr++]=Wr>>6&63|128,be[kr++]=Wr&63|128)}else for(xr=0;xr>>24|Qt>>>8&65280|Qt<<8&16711680|(Qt&255)<<24;return Kr>>>0}v.htonl=le;function ve(Qt,Kr){for(var be="",kr=0;kr>>0}return Wr}v.join32=me;function Ee(Qt,Kr){for(var be=new Array(Qt.length*4),kr=0,xr=0;kr>>24,be[xr+1]=Wr>>>16&255,be[xr+2]=Wr>>>8&255,be[xr+3]=Wr&255):(be[xr+3]=Wr>>>24,be[xr+2]=Wr>>>16&255,be[xr+1]=Wr>>>8&255,be[xr]=Wr&255)}return be}v.split32=Ee;function cr(Qt,Kr){return Qt>>>Kr|Qt<<32-Kr}v.rotr32=cr;function Br(Qt,Kr){return Qt<>>32-Kr}v.rotl32=Br;function $r(Qt,Kr){return Qt+Kr>>>0}v.sum32=$r;function Pr(Qt,Kr,be){return Qt+Kr+be>>>0}v.sum32_3=Pr;function Or(Qt,Kr,be,kr){return Qt+Kr+be+kr>>>0}v.sum32_4=Or;function ur(Qt,Kr,be,kr,xr){return Qt+Kr+be+kr+xr>>>0}v.sum32_5=ur;function jr(Qt,Kr,be,kr){var xr=Qt[Kr],Wr=Qt[Kr+1],Jt=kr+Wr>>>0,Xr=(Jt>>0,Qt[Kr+1]=Jt}v.sum64=jr;function Mr(Qt,Kr,be,kr){var xr=Kr+kr>>>0,Wr=(xr>>0}v.sum64_hi=Mr;function Lr(Qt,Kr,be,kr){var xr=Kr+kr;return xr>>>0}v.sum64_lo=Lr;function Vr(Qt,Kr,be,kr,xr,Wr,Jt,Xr){var zr=0,Jr=Kr;Jr=Jr+kr>>>0,zr+=Jr>>0,zr+=Jr>>0,zr+=Jr>>0}v.sum64_4_hi=Vr;function Gr(Qt,Kr,be,kr,xr,Wr,Jt,Xr){var zr=Kr+kr+Wr+Xr;return zr>>>0}v.sum64_4_lo=Gr;function Ur(Qt,Kr,be,kr,xr,Wr,Jt,Xr,zr,Jr){var Nr=0,Hr=Kr;Hr=Hr+kr>>>0,Nr+=Hr>>0,Nr+=Hr>>0,Nr+=Hr>>0,Nr+=Hr>>0}v.sum64_5_hi=Ur;function Qr(Qt,Kr,be,kr,xr,Wr,Jt,Xr,zr,Jr){var Nr=Kr+kr+Wr+Xr+Jr;return Nr>>>0}v.sum64_5_lo=Qr;function vn(Qt,Kr,be){var kr=Kr<<32-be|Qt>>>be;return kr>>>0}v.rotr64_hi=vn;function Yt(Qt,Kr,be){var kr=Qt<<32-be|Kr>>>be;return kr>>>0}v.rotr64_lo=Yt;function fn(Qt,Kr,be){return Qt>>>be}v.shr64_hi=fn;function Xt(Qt,Kr,be){var kr=Qt<<32-be|Kr>>>be;return kr>>>0}v.shr64_lo=Xt}}),require_common=__commonJS$1({"node_modules/hash.js/lib/hash/common.js"(v){var k=require_utils(),ie=require_minimalistic_assert();function ae(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}v.BlockHash=ae,ae.prototype.update=function(fe,le){if(fe=k.toArray(fe,le),this.pending?this.pending=this.pending.concat(fe):this.pending=fe,this.pendingTotal+=fe.length,this.pending.length>=this._delta8){fe=this.pending;var ve=fe.length%this._delta8;this.pending=fe.slice(fe.length-ve,fe.length),this.pending.length===0&&(this.pending=null),fe=k.join32(fe,0,fe.length-ve,this.endian);for(var pe=0;pe>>24&255,pe[ye++]=fe>>>16&255,pe[ye++]=fe>>>8&255,pe[ye++]=fe&255}else for(pe[ye++]=fe&255,pe[ye++]=fe>>>8&255,pe[ye++]=fe>>>16&255,pe[ye++]=fe>>>24&255,pe[ye++]=0,pe[ye++]=0,pe[ye++]=0,pe[ye++]=0,me=8;me>>3}v.g0_256=ye;function me(Ee){return ie(Ee,17)^ie(Ee,19)^Ee>>>10}v.g1_256=me}}),require__=__commonJS$1({"node_modules/hash.js/lib/hash/sha/1.js"(v,k){var ie=require_utils(),ae=require_common(),ce=require_common2(),fe=ie.rotl32,le=ie.sum32,ve=ie.sum32_5,pe=ce.ft_1,ye=ae.BlockHash,me=[1518500249,1859775393,2400959708,3395469782];function Ee(){if(!(this instanceof Ee))return new Ee;ye.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}ie.inherits(Ee,ye),k.exports=Ee,Ee.blockSize=512,Ee.outSize=160,Ee.hmacStrength=80,Ee.padLength=64,Ee.prototype._update=function(Br,$r){for(var Pr=this.W,Or=0;Or<16;Or++)Pr[Or]=Br[$r+Or];for(;Orthis.blockSize&&(le=new this.Hash().update(le).digest()),ae(le.length<=this.blockSize);for(var ve=le.length;ve255)return!1;return!0}function fe(zr,Jr){if(zr.buffer&&ArrayBuffer.isView(zr)&&zr.name==="Uint8Array")return Jr&&(zr.slice?zr=zr.slice():zr=Array.prototype.slice.call(zr)),zr;if(Array.isArray(zr)){if(!ce(zr))throw new Error("Array contains invalid value: "+zr);return new Uint8Array(zr)}if(ae(zr.length)&&ce(zr))return new Uint8Array(zr);throw new Error("unsupported array-like object")}function le(zr){return new Uint8Array(zr)}function ve(zr,Jr,Nr,Hr,On){(Hr!=null||On!=null)&&(zr.slice?zr=zr.slice(Hr,On):zr=Array.prototype.slice.call(zr,Hr,On)),Jr.set(zr,Nr)}var pe=function(){function zr(Nr){var Hr=[],On=0;for(Nr=encodeURI(Nr);On191&&Gn<224?(Hr.push(String.fromCharCode((Gn&31)<<6|Nr[On+1]&63)),On+=2):(Hr.push(String.fromCharCode((Gn&15)<<12|(Nr[On+1]&63)<<6|Nr[On+2]&63)),On+=3)}return Hr.join("")}return{toBytes:zr,fromBytes:Jr}}(),ye=function(){function zr(Hr){for(var On=[],Gn=0;Gn>4]+Jr[mn&15])}return On.join("")}return{toBytes:zr,fromBytes:Nr}}(),me={16:10,24:12,32:14},Ee=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],cr=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Br=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],$r=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],Pr=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],Or=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],ur=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],jr=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],Mr=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],Lr=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],Vr=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],Gr=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],Ur=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],Qr=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],vn=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function Yt(zr){for(var Jr=[],Nr=0;Nr>2,this._Ke[Gn][Jr%4]=On[Jr],this._Kd[zr-Gn][Jr%4]=On[Jr];for(var mn=0,Nn=Hr,In;Nn>16&255]<<24^cr[In>>8&255]<<16^cr[In&255]<<8^cr[In>>24&255]^Ee[mn]<<24,mn+=1,Hr!=8)for(var Jr=1;Jr>8&255]<<8^cr[In>>16&255]<<16^cr[In>>24&255]<<24;for(var Jr=Hr/2+1;Jr>2,ii=Nn%4,this._Ke[bn][ii]=On[Jr],this._Kd[zr-bn][ii]=On[Jr++],Nn++}for(var bn=1;bn>24&255]^Ur[In>>16&255]^Qr[In>>8&255]^vn[In&255]},fn.prototype.encrypt=function(zr){if(zr.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var Jr=this._Ke.length-1,Nr=[0,0,0,0],Hr=Yt(zr),On=0;On<4;On++)Hr[On]^=this._Ke[0][On];for(var Gn=1;Gn>24&255]^Pr[Hr[(On+1)%4]>>16&255]^Or[Hr[(On+2)%4]>>8&255]^ur[Hr[(On+3)%4]&255]^this._Ke[Gn][On];Hr=Nr.slice()}for(var mn=le(16),Nn,On=0;On<4;On++)Nn=this._Ke[Jr][On],mn[4*On]=(cr[Hr[On]>>24&255]^Nn>>24)&255,mn[4*On+1]=(cr[Hr[(On+1)%4]>>16&255]^Nn>>16)&255,mn[4*On+2]=(cr[Hr[(On+2)%4]>>8&255]^Nn>>8)&255,mn[4*On+3]=(cr[Hr[(On+3)%4]&255]^Nn)&255;return mn},fn.prototype.decrypt=function(zr){if(zr.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var Jr=this._Kd.length-1,Nr=[0,0,0,0],Hr=Yt(zr),On=0;On<4;On++)Hr[On]^=this._Kd[0][On];for(var Gn=1;Gn>24&255]^Mr[Hr[(On+3)%4]>>16&255]^Lr[Hr[(On+2)%4]>>8&255]^Vr[Hr[(On+1)%4]&255]^this._Kd[Gn][On];Hr=Nr.slice()}for(var mn=le(16),Nn,On=0;On<4;On++)Nn=this._Kd[Jr][On],mn[4*On]=(Br[Hr[On]>>24&255]^Nn>>24)&255,mn[4*On+1]=(Br[Hr[(On+3)%4]>>16&255]^Nn>>16)&255,mn[4*On+2]=(Br[Hr[(On+2)%4]>>8&255]^Nn>>8)&255,mn[4*On+3]=(Br[Hr[(On+1)%4]&255]^Nn)&255;return mn};var Xt=function(zr){if(!(this instanceof Xt))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new fn(zr)};Xt.prototype.encrypt=function(zr){if(zr=fe(zr),zr.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var Jr=le(zr.length),Nr=le(16),Hr=0;Hr=0;--Jr)this._counter[Jr]=zr%256,zr=zr>>8},kr.prototype.setBytes=function(zr){if(zr=fe(zr,!0),zr.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=zr},kr.prototype.increment=function(){for(var zr=15;zr>=0;zr--)if(this._counter[zr]===255)this._counter[zr]=0;else{this._counter[zr]++;break}};var xr=function(zr,Jr){if(!(this instanceof xr))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",Jr instanceof kr||(Jr=new kr(Jr)),this._counter=Jr,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new fn(zr)};xr.prototype.encrypt=function(zr){for(var Jr=fe(zr,!0),Nr=0;Nr16)throw new Error("PKCS#7 padding byte out of range");for(var Nr=zr.length-Jr,Hr=0;Hr=64;){let Xr=ur,zr=jr,Jr=Mr,Nr=Lr,Hr=Vr,On=Gr,Gn=Ur,mn=Qr,Nn,In,bn,ii,hn;for(In=0;In<16;In++)bn=Wr+In*4,vn[In]=(xr[bn]&255)<<24|(xr[bn+1]&255)<<16|(xr[bn+2]&255)<<8|xr[bn+3]&255;for(In=16;In<64;In++)Nn=vn[In-2],ii=(Nn>>>17|Nn<<32-17)^(Nn>>>19|Nn<<32-19)^Nn>>>10,Nn=vn[In-15],hn=(Nn>>>7|Nn<<32-7)^(Nn>>>18|Nn<<32-18)^Nn>>>3,vn[In]=(ii+vn[In-7]|0)+(hn+vn[In-16]|0)|0;for(In=0;In<64;In++)ii=(((Hr>>>6|Hr<<32-6)^(Hr>>>11|Hr<<32-11)^(Hr>>>25|Hr<<32-25))+(Hr&On^~Hr&Gn)|0)+(mn+(Or[In]+vn[In]|0)|0)|0,hn=((Xr>>>2|Xr<<32-2)^(Xr>>>13|Xr<<32-13)^(Xr>>>22|Xr<<32-22))+(Xr&zr^Xr&Jr^zr&Jr)|0,mn=Gn,Gn=On,On=Hr,Hr=Nr+ii|0,Nr=Jr,Jr=zr,zr=Xr,Xr=ii+hn|0;ur=ur+Xr|0,jr=jr+zr|0,Mr=Mr+Jr|0,Lr=Lr+Nr|0,Vr=Vr+Hr|0,Gr=Gr+On|0,Ur=Ur+Gn|0,Qr=Qr+mn|0,Wr+=64,Jt-=64}}Yt(Pr);let fn,Xt=Pr.length%64,Qt=Pr.length/536870912|0,Kr=Pr.length<<3,be=Xt<56?56:120,kr=Pr.slice(Pr.length-Xt,Pr.length);for(kr.push(128),fn=Xt+1;fn>>24&255),kr.push(Qt>>>16&255),kr.push(Qt>>>8&255),kr.push(Qt>>>0&255),kr.push(Kr>>>24&255),kr.push(Kr>>>16&255),kr.push(Kr>>>8&255),kr.push(Kr>>>0&255),Yt(kr),[ur>>>24&255,ur>>>16&255,ur>>>8&255,ur>>>0&255,jr>>>24&255,jr>>>16&255,jr>>>8&255,jr>>>0&255,Mr>>>24&255,Mr>>>16&255,Mr>>>8&255,Mr>>>0&255,Lr>>>24&255,Lr>>>16&255,Lr>>>8&255,Lr>>>0&255,Vr>>>24&255,Vr>>>16&255,Vr>>>8&255,Vr>>>0&255,Gr>>>24&255,Gr>>>16&255,Gr>>>8&255,Gr>>>0&255,Ur>>>24&255,Ur>>>16&255,Ur>>>8&255,Ur>>>0&255,Qr>>>24&255,Qr>>>16&255,Qr>>>8&255,Qr>>>0&255]}function fe(Pr,Or,ur){Pr=Pr.length<=64?Pr:ce(Pr);const jr=64+Or.length+4,Mr=new Array(jr),Lr=new Array(64);let Vr,Gr=[];for(Vr=0;Vr<64;Vr++)Mr[Vr]=54;for(Vr=0;Vr=jr-4;Qr--){if(Mr[Qr]++,Mr[Qr]<=255)return;Mr[Qr]=0}}for(;ur>=32;)Ur(),Gr=Gr.concat(ce(Lr.concat(ce(Mr)))),ur-=32;return ur>0&&(Ur(),Gr=Gr.concat(ce(Lr.concat(ce(Mr))).slice(0,ur))),Gr}function le(Pr,Or,ur,jr,Mr){let Lr;for(me(Pr,(2*ur-1)*16,Mr,0,16),Lr=0;Lr<2*ur;Lr++)ye(Pr,Lr*16,Mr,16),pe(Mr,jr),me(Mr,0,Pr,Or+Lr*16,16);for(Lr=0;Lr>>32-Or}function pe(Pr,Or){me(Pr,0,Or,0,16);for(let ur=8;ur>0;ur-=2)Or[4]^=ve(Or[0]+Or[12],7),Or[8]^=ve(Or[4]+Or[0],9),Or[12]^=ve(Or[8]+Or[4],13),Or[0]^=ve(Or[12]+Or[8],18),Or[9]^=ve(Or[5]+Or[1],7),Or[13]^=ve(Or[9]+Or[5],9),Or[1]^=ve(Or[13]+Or[9],13),Or[5]^=ve(Or[1]+Or[13],18),Or[14]^=ve(Or[10]+Or[6],7),Or[2]^=ve(Or[14]+Or[10],9),Or[6]^=ve(Or[2]+Or[14],13),Or[10]^=ve(Or[6]+Or[2],18),Or[3]^=ve(Or[15]+Or[11],7),Or[7]^=ve(Or[3]+Or[15],9),Or[11]^=ve(Or[7]+Or[3],13),Or[15]^=ve(Or[11]+Or[7],18),Or[1]^=ve(Or[0]+Or[3],7),Or[2]^=ve(Or[1]+Or[0],9),Or[3]^=ve(Or[2]+Or[1],13),Or[0]^=ve(Or[3]+Or[2],18),Or[6]^=ve(Or[5]+Or[4],7),Or[7]^=ve(Or[6]+Or[5],9),Or[4]^=ve(Or[7]+Or[6],13),Or[5]^=ve(Or[4]+Or[7],18),Or[11]^=ve(Or[10]+Or[9],7),Or[8]^=ve(Or[11]+Or[10],9),Or[9]^=ve(Or[8]+Or[11],13),Or[10]^=ve(Or[9]+Or[8],18),Or[12]^=ve(Or[15]+Or[14],7),Or[13]^=ve(Or[12]+Or[15],9),Or[14]^=ve(Or[13]+Or[12],13),Or[15]^=ve(Or[14]+Or[13],18);for(let ur=0;ur<16;++ur)Pr[ur]+=Or[ur]}function ye(Pr,Or,ur,jr){for(let Mr=0;Mr=256)return!1}return!0}function cr(Pr,Or){if(typeof Pr!="number"||Pr%1)throw new Error("invalid "+Or);return Pr}function Br(Pr,Or,ur,jr,Mr,Lr,Vr){if(ur=cr(ur,"N"),jr=cr(jr,"r"),Mr=cr(Mr,"p"),Lr=cr(Lr,"dkLen"),ur===0||(ur&ur-1)!==0)throw new Error("N must be power of 2");if(ur>2147483647/128/jr)throw new Error("N too large");if(jr>2147483647/128/Mr)throw new Error("r too large");if(!Ee(Pr))throw new Error("password must be an array or buffer");if(Pr=Array.prototype.slice.call(Pr),!Ee(Or))throw new Error("salt must be an array or buffer");Or=Array.prototype.slice.call(Or);let Gr=fe(Pr,Or,Mr*128*jr);const Ur=new Uint32Array(Mr*32*jr);for(let Hr=0;Hrzr&&(Hr=zr);for(let Gn=0;Gnzr&&(Hr=zr);for(let Gn=0;Gn>0&255),Gr.push(Ur[Gn]>>8&255),Gr.push(Ur[Gn]>>16&255),Gr.push(Ur[Gn]>>24&255);const On=fe(Pr,Gr,Lr);return Vr&&Vr(null,1,On),On}Vr&&Jr(Nr)};if(!Vr)for(;;){const Hr=Nr();if(Hr!=null)return Hr}Nr()}const $r={scrypt:function(Pr,Or,ur,jr,Mr,Lr,Vr){return new Promise(function(Gr,Ur){let Qr=0;Vr&&Vr(0),Br(Pr,Or,ur,jr,Mr,Lr,function(vn,Yt,fn){if(vn)Ur(vn);else if(fn)Vr&&Qr!==1&&Vr(1),Gr(new Uint8Array(fn));else if(Vr&&Yt!==Qr)return Qr=Yt,Vr(Yt)})})},syncScrypt:function(Pr,Or,ur,jr,Mr,Lr){return new Uint8Array(Br(Pr,Or,ur,jr,Mr,Lr))}};typeof v<"u"?k.exports=$r:typeof define=="function"&&define.amd?define($r):ie&&(ie.scrypt&&(ie._scrypt=ie.scrypt),ie.scrypt=$r)})(v)}}),require_bech32=__commonJS$1({"node_modules/bech32/index.js"(v,k){var ie="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ae={};for(fe=0;fe>25;return(ur&33554431)<<5^-(jr>>0&1)&996825010^-(jr>>1&1)&642813549^-(jr>>2&1)&513874426^-(jr>>3&1)&1027748829^-(jr>>4&1)&705979059}function ve(ur){for(var jr=1,Mr=0;Mr126)return"Invalid prefix ("+ur+")";jr=le(jr)^Lr>>5}for(jr=le(jr),Mr=0;MrMr)throw new TypeError("Exceeds length limit");ur=ur.toLowerCase();var Lr=ve(ur);if(typeof Lr=="string")throw new Error(Lr);for(var Vr=ur+"1",Gr=0;Gr>5!==0)throw new Error("Non 5-bit word");Lr=le(Lr)^Ur,Vr+=ie.charAt(Ur)}for(Gr=0;Gr<6;++Gr)Lr=le(Lr);for(Lr^=1,Gr=0;Gr<6;++Gr){var Qr=Lr>>(5-Gr)*5&31;Vr+=ie.charAt(Qr)}return Vr}function ye(ur,jr){if(jr=jr||90,ur.length<8)return ur+" too short";if(ur.length>jr)return"Exceeds length limit";var Mr=ur.toLowerCase(),Lr=ur.toUpperCase();if(ur!==Mr&&ur!==Lr)return"Mixed-case string "+ur;ur=Mr;var Vr=ur.lastIndexOf("1");if(Vr===-1)return"No separator character for "+ur;if(Vr===0)return"Missing prefix for "+ur;var Gr=ur.slice(0,Vr),Ur=ur.slice(Vr+1);if(Ur.length<6)return"Data too short";var Qr=ve(Gr);if(typeof Qr=="string")return Qr;for(var vn=[],Yt=0;Yt=Ur.length)&&vn.push(Xt)}return Qr!==1?"Invalid checksum for "+ur:{prefix:Gr,words:vn}}function me(){var ur=ye.apply(null,arguments);if(typeof ur=="object")return ur}function Ee(ur){var jr=ye.apply(null,arguments);if(typeof jr=="object")return jr;throw new Error(jr)}function cr(ur,jr,Mr,Lr){for(var Vr=0,Gr=0,Ur=(1<=Mr;)Gr-=Mr,Qr.push(Vr>>Gr&Ur);if(Lr)Gr>0&&Qr.push(Vr<=jr)return"Excess padding";if(Vr<0?this.tail.next=ur:this.head=ur,this.tail=ur,++this.length}},{key:"unshift",value:function(Or){var ur={data:Or,next:this.head};this.length===0&&(this.tail=ur),this.head=ur,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Or=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Or}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Or){if(this.length===0)return"";for(var ur=this.head,jr=""+ur.data;ur=ur.next;)jr+=Or+ur.data;return jr}},{key:"concat",value:function(Or){if(this.length===0)return ye.alloc(0);for(var ur=ye.allocUnsafe(Or>>>0),jr=this.head,Mr=0;jr;)Br(jr.data,ur,Mr),Mr+=jr.data.length,jr=jr.next;return ur}},{key:"consume",value:function(Or,ur){var jr;return OrLr.length?Lr.length:Or;if(Vr===Lr.length?Mr+=Lr:Mr+=Lr.slice(0,Or),Or-=Vr,Or===0){Vr===Lr.length?(++jr,ur.next?this.head=ur.next:this.head=this.tail=null):(this.head=ur,ur.data=Lr.slice(Vr));break}++jr}return this.length-=jr,Mr}},{key:"_getBuffer",value:function(Or){var ur=ye.allocUnsafe(Or),jr=this.head,Mr=1;for(jr.data.copy(ur),Or-=jr.data.length;jr=jr.next;){var Lr=jr.data,Vr=Or>Lr.length?Lr.length:Or;if(Lr.copy(ur,ur.length-Or,0,Vr),Or-=Vr,Or===0){Vr===Lr.length?(++Mr,jr.next?this.head=jr.next:this.head=this.tail=null):(this.head=jr,jr.data=Lr.slice(Vr));break}++Mr}return this.length-=Mr,ur}},{key:cr,value:function(Or,ur){return Ee(this,ae({},ur,{depth:0,customInspect:!1}))}}]),$r}()}}),require_destroy=__commonJS$1({"node_modules/readable-stream/lib/internal/streams/destroy.js"(v,k){function ie(pe,ye){var me=this,Ee=this._readableState&&this._readableState.destroyed,cr=this._writableState&&this._writableState.destroyed;return Ee||cr?(ye?ye(pe):pe&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(le,this,pe)):process.nextTick(le,this,pe)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(pe||null,function(Br){!ye&&Br?me._writableState?me._writableState.errorEmitted?process.nextTick(ce,me):(me._writableState.errorEmitted=!0,process.nextTick(ae,me,Br)):process.nextTick(ae,me,Br):ye?(process.nextTick(ce,me),ye(Br)):process.nextTick(ce,me)}),this)}function ae(pe,ye){le(pe,ye),ce(pe)}function ce(pe){pe._writableState&&!pe._writableState.emitClose||pe._readableState&&!pe._readableState.emitClose||pe.emit("close")}function fe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function le(pe,ye){pe.emit("error",ye)}function ve(pe,ye){var me=pe._readableState,Ee=pe._writableState;me&&me.autoDestroy||Ee&&Ee.autoDestroy?pe.destroy(ye):pe.emit("error",ye)}k.exports={destroy:ie,undestroy:fe,errorOrDestroy:ve}}}),require_errors_browser=__commonJS$1({"node_modules/readable-stream/errors-browser.js"(v,k){function ie(ye,me){ye.prototype=Object.create(me.prototype),ye.prototype.constructor=ye,ye.__proto__=me}var ae={};function ce(ye,me,Ee){Ee||(Ee=Error);function cr($r,Pr,Or){return typeof me=="string"?me:me($r,Pr,Or)}var Br=function($r){ie(Pr,$r);function Pr(Or,ur,jr){return $r.call(this,cr(Or,ur,jr))||this}return Pr}(Ee);Br.prototype.name=Ee.name,Br.prototype.code=ye,ae[ye]=Br}function fe(ye,me){if(Array.isArray(ye)){var Ee=ye.length;return ye=ye.map(function(cr){return String(cr)}),Ee>2?"one of ".concat(me," ").concat(ye.slice(0,Ee-1).join(", "),", or ")+ye[Ee-1]:Ee===2?"one of ".concat(me," ").concat(ye[0]," or ").concat(ye[1]):"of ".concat(me," ").concat(ye[0])}else return"of ".concat(me," ").concat(String(ye))}function le(ye,me,Ee){return ye.substr(!Ee||Ee<0?0:+Ee,me.length)===me}function ve(ye,me,Ee){return(Ee===void 0||Ee>ye.length)&&(Ee=ye.length),ye.substring(Ee-me.length,Ee)===me}function pe(ye,me,Ee){return typeof Ee!="number"&&(Ee=0),Ee+me.length>ye.length?!1:ye.indexOf(me,Ee)!==-1}ce("ERR_INVALID_OPT_VALUE",function(ye,me){return'The value "'+me+'" is invalid for option "'+ye+'"'},TypeError),ce("ERR_INVALID_ARG_TYPE",function(ye,me,Ee){var cr;typeof me=="string"&&le(me,"not ")?(cr="must not be",me=me.replace(/^not /,"")):cr="must be";var Br;if(ve(ye," argument"))Br="The ".concat(ye," ").concat(cr," ").concat(fe(me,"type"));else{var $r=pe(ye,".")?"property":"argument";Br='The "'.concat(ye,'" ').concat($r," ").concat(cr," ").concat(fe(me,"type"))}return Br+=". Received type ".concat(typeof Ee),Br},TypeError),ce("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ce("ERR_METHOD_NOT_IMPLEMENTED",function(ye){return"The "+ye+" method is not implemented"}),ce("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ce("ERR_STREAM_DESTROYED",function(ye){return"Cannot call "+ye+" after a stream was destroyed"}),ce("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ce("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ce("ERR_STREAM_WRITE_AFTER_END","write after end"),ce("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ce("ERR_UNKNOWN_ENCODING",function(ye){return"Unknown encoding: "+ye},TypeError),ce("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),k.exports.codes=ae}}),require_state=__commonJS$1({"node_modules/readable-stream/lib/internal/streams/state.js"(v,k){var ie=require_errors_browser().codes.ERR_INVALID_OPT_VALUE;function ae(fe,le,ve){return fe.highWaterMark!=null?fe.highWaterMark:le?fe[ve]:null}function ce(fe,le,ve,pe){var ye=ae(le,pe,ve);if(ye!=null){if(!(isFinite(ye)&&Math.floor(ye)===ye)||ye<0){var me=pe?ve:"highWaterMark";throw new ie(me,ye)}return Math.floor(ye)}return fe.objectMode?16:16*1024}k.exports={getHighWaterMark:ce}}}),require_browser=__commonJS$1({"node_modules/util-deprecate/browser.js"(v,k){k.exports=ie;function ie(ce,fe){if(ae("noDeprecation"))return ce;var le=!1;function ve(){if(!le){if(ae("throwDeprecation"))throw new Error(fe);ae("traceDeprecation")?console.trace(fe):console.warn(fe),le=!0}return ce.apply(this,arguments)}return ve}function ae(ce){try{if(!globalThis.localStorage)return!1}catch{return!1}var fe=globalThis.localStorage[ce];return fe==null?!1:String(fe).toLowerCase()==="true"}}}),require_stream_writable=__commonJS$1({"node_modules/readable-stream/lib/_stream_writable.js"(v,k){k.exports=Yt;function ie(Nn){var In=this;this.next=null,this.entry=null,this.finish=function(){mn(In,Nn)}}var ae;Yt.WritableState=Qr;var ce={deprecate:require_browser()},fe=require_stream_browser(),le=require_buffer$1().Buffer,ve=globalThis.Uint8Array||function(){};function pe(Nn){return le.from(Nn)}function ye(Nn){return le.isBuffer(Nn)||Nn instanceof ve}var me=require_destroy(),Ee=require_state(),cr=Ee.getHighWaterMark,Br=require_errors_browser().codes,$r=Br.ERR_INVALID_ARG_TYPE,Pr=Br.ERR_METHOD_NOT_IMPLEMENTED,Or=Br.ERR_MULTIPLE_CALLBACK,ur=Br.ERR_STREAM_CANNOT_PIPE,jr=Br.ERR_STREAM_DESTROYED,Mr=Br.ERR_STREAM_NULL_VALUES,Lr=Br.ERR_STREAM_WRITE_AFTER_END,Vr=Br.ERR_UNKNOWN_ENCODING,Gr=me.errorOrDestroy;require_inherits_browser()(Yt,fe);function Ur(){}function Qr(Nn,In,bn){ae=ae||require_stream_duplex(),Nn=Nn||{},typeof bn!="boolean"&&(bn=In instanceof ae),this.objectMode=!!Nn.objectMode,bn&&(this.objectMode=this.objectMode||!!Nn.writableObjectMode),this.highWaterMark=cr(this,Nn,"writableHighWaterMark",bn),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ii=Nn.decodeStrings===!1;this.decodeStrings=!ii,this.defaultEncoding=Nn.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(hn){Wr(In,hn)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Nn.emitClose!==!1,this.autoDestroy=!!Nn.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ie(this)}Qr.prototype.getBuffer=function(){for(var In=this.bufferedRequest,bn=[];In;)bn.push(In),In=In.next;return bn},function(){try{Object.defineProperty(Qr.prototype,"buffer",{get:ce.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var vn;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(vn=Function.prototype[Symbol.hasInstance],Object.defineProperty(Yt,Symbol.hasInstance,{value:function(In){return vn.call(this,In)?!0:this!==Yt?!1:In&&In._writableState instanceof Qr}})):vn=function(In){return In instanceof this};function Yt(Nn){ae=ae||require_stream_duplex();var In=this instanceof ae;if(!In&&!vn.call(Yt,this))return new Yt(Nn);this._writableState=new Qr(Nn,this,In),this.writable=!0,Nn&&(typeof Nn.write=="function"&&(this._write=Nn.write),typeof Nn.writev=="function"&&(this._writev=Nn.writev),typeof Nn.destroy=="function"&&(this._destroy=Nn.destroy),typeof Nn.final=="function"&&(this._final=Nn.final)),fe.call(this)}Yt.prototype.pipe=function(){Gr(this,new ur)};function fn(Nn,In){var bn=new Lr;Gr(Nn,bn),process.nextTick(In,bn)}function Xt(Nn,In,bn,ii){var hn;return bn===null?hn=new Mr:typeof bn!="string"&&!In.objectMode&&(hn=new $r("chunk",["string","Buffer"],bn)),hn?(Gr(Nn,hn),process.nextTick(ii,hn),!1):!0}Yt.prototype.write=function(Nn,In,bn){var ii=this._writableState,hn=!1,pn=!ii.objectMode&&ye(Nn);return pn&&!le.isBuffer(Nn)&&(Nn=pe(Nn)),typeof In=="function"&&(bn=In,In=null),pn?In="buffer":In||(In=ii.defaultEncoding),typeof bn!="function"&&(bn=Ur),ii.ending?fn(this,bn):(pn||Xt(this,ii,Nn,bn))&&(ii.pendingcb++,hn=Kr(this,ii,pn,Nn,In,bn)),hn},Yt.prototype.cork=function(){this._writableState.corked++},Yt.prototype.uncork=function(){var Nn=this._writableState;Nn.corked&&(Nn.corked--,!Nn.writing&&!Nn.corked&&!Nn.bufferProcessing&&Nn.bufferedRequest&&zr(this,Nn))},Yt.prototype.setDefaultEncoding=function(In){if(typeof In=="string"&&(In=In.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((In+"").toLowerCase())>-1))throw new Vr(In);return this._writableState.defaultEncoding=In,this},Object.defineProperty(Yt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Qt(Nn,In,bn){return!Nn.objectMode&&Nn.decodeStrings!==!1&&typeof In=="string"&&(In=le.from(In,bn)),In}Object.defineProperty(Yt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Kr(Nn,In,bn,ii,hn,pn){if(!bn){var Sn=Qt(In,ii,hn);ii!==Sn&&(bn=!0,hn="buffer",ii=Sn)}var Qn=In.objectMode?1:ii.length;In.length+=Qn;var Jn=In.length>5===6?2:jr>>4===14?3:jr>>3===30?4:jr>>6===2?-1:-2}function ve(jr,Mr,Lr){var Vr=Mr.length-1;if(Vr=0?(Gr>0&&(jr.lastNeed=Gr-1),Gr):--Vr=0?(Gr>0&&(jr.lastNeed=Gr-2),Gr):--Vr=0?(Gr>0&&(Gr===2?Gr=0:jr.lastNeed=Gr-3),Gr):0))}function pe(jr,Mr,Lr){if((Mr[0]&192)!==128)return jr.lastNeed=0,"\uFFFD";if(jr.lastNeed>1&&Mr.length>1){if((Mr[1]&192)!==128)return jr.lastNeed=1,"\uFFFD";if(jr.lastNeed>2&&Mr.length>2&&(Mr[2]&192)!==128)return jr.lastNeed=2,"\uFFFD"}}function ye(jr){var Mr=this.lastTotal-this.lastNeed,Lr=pe(this,jr);if(Lr!==void 0)return Lr;if(this.lastNeed<=jr.length)return jr.copy(this.lastChar,Mr,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);jr.copy(this.lastChar,Mr,0,jr.length),this.lastNeed-=jr.length}function me(jr,Mr){var Lr=ve(this,jr,Mr);if(!this.lastNeed)return jr.toString("utf8",Mr);this.lastTotal=Lr;var Vr=jr.length-(Lr-this.lastNeed);return jr.copy(this.lastChar,0,Vr),jr.toString("utf8",Mr,Vr)}function Ee(jr){var Mr=jr&&jr.length?this.write(jr):"";return this.lastNeed?Mr+"\uFFFD":Mr}function cr(jr,Mr){if((jr.length-Mr)%2===0){var Lr=jr.toString("utf16le",Mr);if(Lr){var Vr=Lr.charCodeAt(Lr.length-1);if(Vr>=55296&&Vr<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=jr[jr.length-2],this.lastChar[1]=jr[jr.length-1],Lr.slice(0,-1)}return Lr}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=jr[jr.length-1],jr.toString("utf16le",Mr,jr.length-1)}function Br(jr){var Mr=jr&&jr.length?this.write(jr):"";if(this.lastNeed){var Lr=this.lastTotal-this.lastNeed;return Mr+this.lastChar.toString("utf16le",0,Lr)}return Mr}function $r(jr,Mr){var Lr=(jr.length-Mr)%3;return Lr===0?jr.toString("base64",Mr):(this.lastNeed=3-Lr,this.lastTotal=3,Lr===1?this.lastChar[0]=jr[jr.length-1]:(this.lastChar[0]=jr[jr.length-2],this.lastChar[1]=jr[jr.length-1]),jr.toString("base64",Mr,jr.length-Lr))}function Pr(jr){var Mr=jr&&jr.length?this.write(jr):"";return this.lastNeed?Mr+this.lastChar.toString("base64",0,3-this.lastNeed):Mr}function Or(jr){return jr.toString(this.encoding)}function ur(jr){return jr&&jr.length?this.write(jr):""}}}),require_end_of_stream=__commonJS$1({"node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(v,k){var ie=require_errors_browser().codes.ERR_STREAM_PREMATURE_CLOSE;function ae(ve){var pe=!1;return function(){if(!pe){pe=!0;for(var ye=arguments.length,me=new Array(ye),Ee=0;Ee0)if(typeof Sn!="string"&&!gi.objectMode&&Object.getPrototypeOf(Sn)!==fe.prototype&&(Sn=ve(Sn)),Jn)gi.endEmitted?Ur(pn,new Mr):Qt(pn,gi,Sn,!0);else if(gi.ended)Ur(pn,new ur);else{if(gi.destroyed)return!1;gi.reading=!1,gi.decoder&&!Qn?(Sn=gi.decoder.write(Sn),gi.objectMode||Sn.length!==0?Qt(pn,gi,Sn,!1):zr(pn,gi)):Qt(pn,gi,Sn,!1)}else Jn||(gi.reading=!1,zr(pn,gi))}return!gi.ended&&(gi.length=be?pn=be:(pn--,pn|=pn>>>1,pn|=pn>>>2,pn|=pn>>>4,pn|=pn>>>8,pn|=pn>>>16,pn++),pn}function xr(pn,Sn){return pn<=0||Sn.length===0&&Sn.ended?0:Sn.objectMode?1:pn!==pn?Sn.flowing&&Sn.length?Sn.buffer.head.data.length:Sn.length:(pn>Sn.highWaterMark&&(Sn.highWaterMark=kr(pn)),pn<=Sn.length?pn:Sn.ended?Sn.length:(Sn.needReadable=!0,0))}fn.prototype.read=function(pn){me("read",pn),pn=parseInt(pn,10);var Sn=this._readableState,Qn=pn;if(pn!==0&&(Sn.emittedReadable=!1),pn===0&&Sn.needReadable&&((Sn.highWaterMark!==0?Sn.length>=Sn.highWaterMark:Sn.length>0)||Sn.ended))return me("read: emitReadable",Sn.length,Sn.ended),Sn.length===0&&Sn.ended?bn(this):Jt(this),null;if(pn=xr(pn,Sn),pn===0&&Sn.ended)return Sn.length===0&&bn(this),null;var Jn=Sn.needReadable;me("need readable",Jn),(Sn.length===0||Sn.length-pn0?ui=In(pn,Sn):ui=null,ui===null?(Sn.needReadable=Sn.length<=Sn.highWaterMark,pn=0):(Sn.length-=pn,Sn.awaitDrain=0),Sn.length===0&&(Sn.ended||(Sn.needReadable=!0),Qn!==pn&&Sn.ended&&bn(this)),ui!==null&&this.emit("data",ui),ui};function Wr(pn,Sn){if(me("onEofChunk"),!Sn.ended){if(Sn.decoder){var Qn=Sn.decoder.end();Qn&&Qn.length&&(Sn.buffer.push(Qn),Sn.length+=Sn.objectMode?1:Qn.length)}Sn.ended=!0,Sn.sync?Jt(pn):(Sn.needReadable=!1,Sn.emittedReadable||(Sn.emittedReadable=!0,Xr(pn)))}}function Jt(pn){var Sn=pn._readableState;me("emitReadable",Sn.needReadable,Sn.emittedReadable),Sn.needReadable=!1,Sn.emittedReadable||(me("emitReadable",Sn.flowing),Sn.emittedReadable=!0,process.nextTick(Xr,pn))}function Xr(pn){var Sn=pn._readableState;me("emitReadable_",Sn.destroyed,Sn.length,Sn.ended),!Sn.destroyed&&(Sn.length||Sn.ended)&&(pn.emit("readable"),Sn.emittedReadable=!1),Sn.needReadable=!Sn.flowing&&!Sn.ended&&Sn.length<=Sn.highWaterMark,Nn(pn)}function zr(pn,Sn){Sn.readingMore||(Sn.readingMore=!0,process.nextTick(Jr,pn,Sn))}function Jr(pn,Sn){for(;!Sn.reading&&!Sn.ended&&(Sn.length1&&hn(Jn.pipes,pn)!==-1)&&!li&&(me("false write response, pause",Jn.awaitDrain),Jn.awaitDrain++),Qn.pause())}function Oi(Zt){me("onerror",Zt),Bt(),pn.removeListener("error",Oi),ae(pn,"error")===0&&Ur(pn,Zt)}vn(pn,"error",Oi);function to(){pn.removeListener("finish",En),Bt()}pn.once("close",to);function En(){me("onfinish"),pn.removeListener("close",to),Bt()}pn.once("finish",En);function Bt(){me("unpipe"),Qn.unpipe(pn)}return pn.emit("pipe",Qn),Jn.flowing||(me("pipe resume"),Qn.resume()),pn};function Nr(pn){return function(){var Qn=pn._readableState;me("pipeOnDrain",Qn.awaitDrain),Qn.awaitDrain&&Qn.awaitDrain--,Qn.awaitDrain===0&&ae(pn,"data")&&(Qn.flowing=!0,Nn(pn))}}fn.prototype.unpipe=function(pn){var Sn=this._readableState,Qn={hasUnpiped:!1};if(Sn.pipesCount===0)return this;if(Sn.pipesCount===1)return pn&&pn!==Sn.pipes?this:(pn||(pn=Sn.pipes),Sn.pipes=null,Sn.pipesCount=0,Sn.flowing=!1,pn&&pn.emit("unpipe",this,Qn),this);if(!pn){var Jn=Sn.pipes,ui=Sn.pipesCount;Sn.pipes=null,Sn.pipesCount=0,Sn.flowing=!1;for(var gi=0;gi0,Jn.flowing!==!1&&this.resume()):pn==="readable"&&!Jn.endEmitted&&!Jn.readableListening&&(Jn.readableListening=Jn.needReadable=!0,Jn.flowing=!1,Jn.emittedReadable=!1,me("on readable",Jn.length,Jn.reading),Jn.length?Jt(this):Jn.reading||process.nextTick(On,this)),Qn},fn.prototype.addListener=fn.prototype.on,fn.prototype.removeListener=function(pn,Sn){var Qn=ce.prototype.removeListener.call(this,pn,Sn);return pn==="readable"&&process.nextTick(Hr,this),Qn},fn.prototype.removeAllListeners=function(pn){var Sn=ce.prototype.removeAllListeners.apply(this,arguments);return(pn==="readable"||pn===void 0)&&process.nextTick(Hr,this),Sn};function Hr(pn){var Sn=pn._readableState;Sn.readableListening=pn.listenerCount("readable")>0,Sn.resumeScheduled&&!Sn.paused?Sn.flowing=!0:pn.listenerCount("data")>0&&pn.resume()}function On(pn){me("readable nexttick read 0"),pn.read(0)}fn.prototype.resume=function(){var pn=this._readableState;return pn.flowing||(me("resume"),pn.flowing=!pn.readableListening,Gn(this,pn)),pn.paused=!1,this};function Gn(pn,Sn){Sn.resumeScheduled||(Sn.resumeScheduled=!0,process.nextTick(mn,pn,Sn))}function mn(pn,Sn){me("resume",Sn.reading),Sn.reading||pn.read(0),Sn.resumeScheduled=!1,pn.emit("resume"),Nn(pn),Sn.flowing&&!Sn.reading&&pn.read(0)}fn.prototype.pause=function(){return me("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(me("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Nn(pn){var Sn=pn._readableState;for(me("flow",Sn.flowing);Sn.flowing&&pn.read()!==null;);}fn.prototype.wrap=function(pn){var Sn=this,Qn=this._readableState,Jn=!1;pn.on("end",function(){if(me("wrapped end"),Qn.decoder&&!Qn.ended){var di=Qn.decoder.end();di&&di.length&&Sn.push(di)}Sn.push(null)}),pn.on("data",function(di){if(me("wrapped data"),Qn.decoder&&(di=Qn.decoder.write(di)),!(Qn.objectMode&&di==null)&&!(!Qn.objectMode&&(!di||!di.length))){var Ci=Sn.push(di);Ci||(Jn=!0,pn.pause())}});for(var ui in pn)this[ui]===void 0&&typeof pn[ui]=="function"&&(this[ui]=function(Ci){return function(){return pn[Ci].apply(pn,arguments)}}(ui));for(var gi=0;gi=Sn.length?(Sn.decoder?Qn=Sn.buffer.join(""):Sn.buffer.length===1?Qn=Sn.buffer.first():Qn=Sn.buffer.concat(Sn.length),Sn.buffer.clear()):Qn=Sn.buffer.consume(pn,Sn.decoder),Qn}function bn(pn){var Sn=pn._readableState;me("endReadable",Sn.endEmitted),Sn.endEmitted||(Sn.ended=!0,process.nextTick(ii,Sn,pn))}function ii(pn,Sn){if(me("endReadableNT",pn.endEmitted,pn.length),!pn.endEmitted&&pn.length===0&&(pn.endEmitted=!0,Sn.readable=!1,Sn.emit("end"),pn.autoDestroy)){var Qn=Sn._writableState;(!Qn||Qn.autoDestroy&&Qn.finished)&&Sn.destroy()}}typeof Symbol=="function"&&(fn.from=function(pn,Sn){return Gr===void 0&&(Gr=require_from_browser()),Gr(fn,pn,Sn)});function hn(pn,Sn){for(var Qn=0,Jn=pn.length;Qn0;return ye(Lr,Gr,Ur,function(Qr){jr||(jr=Qr),Qr&&Mr.forEach(me),!Gr&&(Mr.forEach(me),ur(jr))})});return Pr.reduce(Ee)}k.exports=Br}}),require_readable_browser=__commonJS$1({"node_modules/readable-stream/readable-browser.js"(v,k){v=k.exports=require_stream_readable(),v.Stream=v,v.Readable=v,v.Writable=require_stream_writable(),v.Duplex=require_stream_duplex(),v.Transform=require_stream_transform(),v.PassThrough=require_stream_passthrough(),v.finished=require_end_of_stream(),v.pipeline=require_pipeline()}}),require_hash_base=__commonJS$1({"node_modules/hash-base/index.js"(v,k){var ie=require_safe_buffer().Buffer,ae=require_readable_browser().Transform,ce=require_inherits_browser();function fe(ve,pe){if(!ie.isBuffer(ve)&&typeof ve!="string")throw new TypeError(pe+" must be a string or a buffer")}function le(ve){ae.call(this),this._block=ie.allocUnsafe(ve),this._blockSize=ve,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}ce(le,ae),le.prototype._transform=function(ve,pe,ye){var me=null;try{this.update(ve,pe)}catch(Ee){me=Ee}ye(me)},le.prototype._flush=function(ve){var pe=null;try{this.push(this.digest())}catch(ye){pe=ye}ve(pe)},le.prototype.update=function(ve,pe){if(fe(ve,"Data"),this._finalized)throw new Error("Digest already called");ie.isBuffer(ve)||(ve=ie.from(ve,pe));for(var ye=this._block,me=0;this._blockOffset+ve.length-me>=this._blockSize;){for(var Ee=this._blockOffset;Ee0;++cr)this._length[cr]+=Br,Br=this._length[cr]/4294967296|0,Br>0&&(this._length[cr]-=4294967296*Br);return this},le.prototype._update=function(){throw new Error("_update is not implemented")},le.prototype.digest=function(ve){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var pe=this._digest();ve!==void 0&&(pe=pe.toString(ve)),this._block.fill(0),this._blockOffset=0;for(var ye=0;ye<4;++ye)this._length[ye]=0;return pe},le.prototype._digest=function(){throw new Error("_digest is not implemented")},k.exports=le}}),require_md5=__commonJS$1({"node_modules/md5.js/index.js"(v,k){var ie=require_inherits_browser(),ae=require_hash_base(),ce=require_safe_buffer().Buffer,fe=new Array(16);function le(){ae.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}ie(le,ae),le.prototype._update=function(){for(var cr=fe,Br=0;Br<16;++Br)cr[Br]=this._block.readInt32LE(Br*4);var $r=this._a,Pr=this._b,Or=this._c,ur=this._d;$r=pe($r,Pr,Or,ur,cr[0],3614090360,7),ur=pe(ur,$r,Pr,Or,cr[1],3905402710,12),Or=pe(Or,ur,$r,Pr,cr[2],606105819,17),Pr=pe(Pr,Or,ur,$r,cr[3],3250441966,22),$r=pe($r,Pr,Or,ur,cr[4],4118548399,7),ur=pe(ur,$r,Pr,Or,cr[5],1200080426,12),Or=pe(Or,ur,$r,Pr,cr[6],2821735955,17),Pr=pe(Pr,Or,ur,$r,cr[7],4249261313,22),$r=pe($r,Pr,Or,ur,cr[8],1770035416,7),ur=pe(ur,$r,Pr,Or,cr[9],2336552879,12),Or=pe(Or,ur,$r,Pr,cr[10],4294925233,17),Pr=pe(Pr,Or,ur,$r,cr[11],2304563134,22),$r=pe($r,Pr,Or,ur,cr[12],1804603682,7),ur=pe(ur,$r,Pr,Or,cr[13],4254626195,12),Or=pe(Or,ur,$r,Pr,cr[14],2792965006,17),Pr=pe(Pr,Or,ur,$r,cr[15],1236535329,22),$r=ye($r,Pr,Or,ur,cr[1],4129170786,5),ur=ye(ur,$r,Pr,Or,cr[6],3225465664,9),Or=ye(Or,ur,$r,Pr,cr[11],643717713,14),Pr=ye(Pr,Or,ur,$r,cr[0],3921069994,20),$r=ye($r,Pr,Or,ur,cr[5],3593408605,5),ur=ye(ur,$r,Pr,Or,cr[10],38016083,9),Or=ye(Or,ur,$r,Pr,cr[15],3634488961,14),Pr=ye(Pr,Or,ur,$r,cr[4],3889429448,20),$r=ye($r,Pr,Or,ur,cr[9],568446438,5),ur=ye(ur,$r,Pr,Or,cr[14],3275163606,9),Or=ye(Or,ur,$r,Pr,cr[3],4107603335,14),Pr=ye(Pr,Or,ur,$r,cr[8],1163531501,20),$r=ye($r,Pr,Or,ur,cr[13],2850285829,5),ur=ye(ur,$r,Pr,Or,cr[2],4243563512,9),Or=ye(Or,ur,$r,Pr,cr[7],1735328473,14),Pr=ye(Pr,Or,ur,$r,cr[12],2368359562,20),$r=me($r,Pr,Or,ur,cr[5],4294588738,4),ur=me(ur,$r,Pr,Or,cr[8],2272392833,11),Or=me(Or,ur,$r,Pr,cr[11],1839030562,16),Pr=me(Pr,Or,ur,$r,cr[14],4259657740,23),$r=me($r,Pr,Or,ur,cr[1],2763975236,4),ur=me(ur,$r,Pr,Or,cr[4],1272893353,11),Or=me(Or,ur,$r,Pr,cr[7],4139469664,16),Pr=me(Pr,Or,ur,$r,cr[10],3200236656,23),$r=me($r,Pr,Or,ur,cr[13],681279174,4),ur=me(ur,$r,Pr,Or,cr[0],3936430074,11),Or=me(Or,ur,$r,Pr,cr[3],3572445317,16),Pr=me(Pr,Or,ur,$r,cr[6],76029189,23),$r=me($r,Pr,Or,ur,cr[9],3654602809,4),ur=me(ur,$r,Pr,Or,cr[12],3873151461,11),Or=me(Or,ur,$r,Pr,cr[15],530742520,16),Pr=me(Pr,Or,ur,$r,cr[2],3299628645,23),$r=Ee($r,Pr,Or,ur,cr[0],4096336452,6),ur=Ee(ur,$r,Pr,Or,cr[7],1126891415,10),Or=Ee(Or,ur,$r,Pr,cr[14],2878612391,15),Pr=Ee(Pr,Or,ur,$r,cr[5],4237533241,21),$r=Ee($r,Pr,Or,ur,cr[12],1700485571,6),ur=Ee(ur,$r,Pr,Or,cr[3],2399980690,10),Or=Ee(Or,ur,$r,Pr,cr[10],4293915773,15),Pr=Ee(Pr,Or,ur,$r,cr[1],2240044497,21),$r=Ee($r,Pr,Or,ur,cr[8],1873313359,6),ur=Ee(ur,$r,Pr,Or,cr[15],4264355552,10),Or=Ee(Or,ur,$r,Pr,cr[6],2734768916,15),Pr=Ee(Pr,Or,ur,$r,cr[13],1309151649,21),$r=Ee($r,Pr,Or,ur,cr[4],4149444226,6),ur=Ee(ur,$r,Pr,Or,cr[11],3174756917,10),Or=Ee(Or,ur,$r,Pr,cr[2],718787259,15),Pr=Ee(Pr,Or,ur,$r,cr[9],3951481745,21),this._a=this._a+$r|0,this._b=this._b+Pr|0,this._c=this._c+Or|0,this._d=this._d+ur|0},le.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var cr=ce.allocUnsafe(16);return cr.writeInt32LE(this._a,0),cr.writeInt32LE(this._b,4),cr.writeInt32LE(this._c,8),cr.writeInt32LE(this._d,12),cr};function ve(cr,Br){return cr<>>32-Br}function pe(cr,Br,$r,Pr,Or,ur,jr){return ve(cr+(Br&$r|~Br&Pr)+Or+ur|0,jr)+Br|0}function ye(cr,Br,$r,Pr,Or,ur,jr){return ve(cr+(Br&Pr|$r&~Pr)+Or+ur|0,jr)+Br|0}function me(cr,Br,$r,Pr,Or,ur,jr){return ve(cr+(Br^$r^Pr)+Or+ur|0,jr)+Br|0}function Ee(cr,Br,$r,Pr,Or,ur,jr){return ve(cr+($r^(Br|~Pr))+Or+ur|0,jr)+Br|0}k.exports=le}}),require_ripemd160=__commonJS$1({"node_modules/ripemd160/index.js"(v,k){var ie=require_buffer$1().Buffer,ae=require_inherits_browser(),ce=require_hash_base(),fe=new Array(16),le=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],ve=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],pe=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],ye=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],me=[0,1518500249,1859775393,2400959708,2840853838],Ee=[1352829926,1548603684,1836072691,2053994217,0];function cr(){ce.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}ae(cr,ce),cr.prototype._update=function(){for(var Mr=fe,Lr=0;Lr<16;++Lr)Mr[Lr]=this._block.readInt32LE(Lr*4);for(var Vr=this._a|0,Gr=this._b|0,Ur=this._c|0,Qr=this._d|0,vn=this._e|0,Yt=this._a|0,fn=this._b|0,Xt=this._c|0,Qt=this._d|0,Kr=this._e|0,be=0;be<80;be+=1){var kr,xr;be<16?(kr=$r(Vr,Gr,Ur,Qr,vn,Mr[le[be]],me[0],pe[be]),xr=jr(Yt,fn,Xt,Qt,Kr,Mr[ve[be]],Ee[0],ye[be])):be<32?(kr=Pr(Vr,Gr,Ur,Qr,vn,Mr[le[be]],me[1],pe[be]),xr=ur(Yt,fn,Xt,Qt,Kr,Mr[ve[be]],Ee[1],ye[be])):be<48?(kr=Or(Vr,Gr,Ur,Qr,vn,Mr[le[be]],me[2],pe[be]),xr=Or(Yt,fn,Xt,Qt,Kr,Mr[ve[be]],Ee[2],ye[be])):be<64?(kr=ur(Vr,Gr,Ur,Qr,vn,Mr[le[be]],me[3],pe[be]),xr=Pr(Yt,fn,Xt,Qt,Kr,Mr[ve[be]],Ee[3],ye[be])):(kr=jr(Vr,Gr,Ur,Qr,vn,Mr[le[be]],me[4],pe[be]),xr=$r(Yt,fn,Xt,Qt,Kr,Mr[ve[be]],Ee[4],ye[be])),Vr=vn,vn=Qr,Qr=Br(Ur,10),Ur=Gr,Gr=kr,Yt=Kr,Kr=Qt,Qt=Br(Xt,10),Xt=fn,fn=xr}var Wr=this._b+Ur+Qt|0;this._b=this._c+Qr+Kr|0,this._c=this._d+vn+Yt|0,this._d=this._e+Vr+fn|0,this._e=this._a+Gr+Xt|0,this._a=Wr},cr.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var Mr=ie.alloc?ie.alloc(20):new ie(20);return Mr.writeInt32LE(this._a,0),Mr.writeInt32LE(this._b,4),Mr.writeInt32LE(this._c,8),Mr.writeInt32LE(this._d,12),Mr.writeInt32LE(this._e,16),Mr};function Br(Mr,Lr){return Mr<>>32-Lr}function $r(Mr,Lr,Vr,Gr,Ur,Qr,vn,Yt){return Br(Mr+(Lr^Vr^Gr)+Qr+vn|0,Yt)+Ur|0}function Pr(Mr,Lr,Vr,Gr,Ur,Qr,vn,Yt){return Br(Mr+(Lr&Vr|~Lr&Gr)+Qr+vn|0,Yt)+Ur|0}function Or(Mr,Lr,Vr,Gr,Ur,Qr,vn,Yt){return Br(Mr+((Lr|~Vr)^Gr)+Qr+vn|0,Yt)+Ur|0}function ur(Mr,Lr,Vr,Gr,Ur,Qr,vn,Yt){return Br(Mr+(Lr&Gr|Vr&~Gr)+Qr+vn|0,Yt)+Ur|0}function jr(Mr,Lr,Vr,Gr,Ur,Qr,vn,Yt){return Br(Mr+(Lr^(Vr|~Gr))+Qr+vn|0,Yt)+Ur|0}k.exports=cr}}),require_hash2=__commonJS$1({"node_modules/sha.js/hash.js"(v,k){var ie=require_safe_buffer().Buffer;function ae(ce,fe){this._block=ie.alloc(ce),this._finalSize=fe,this._blockSize=ce,this._len=0}ae.prototype.update=function(ce,fe){typeof ce=="string"&&(fe=fe||"utf8",ce=ie.from(ce,fe));for(var le=this._block,ve=this._blockSize,pe=ce.length,ye=this._len,me=0;me=this._finalSize&&(this._update(this._block),this._block.fill(0));var le=this._len*8;if(le<=4294967295)this._block.writeUInt32BE(le,this._blockSize-4);else{var ve=(le&4294967295)>>>0,pe=(le-ve)/4294967296;this._block.writeUInt32BE(pe,this._blockSize-8),this._block.writeUInt32BE(ve,this._blockSize-4)}this._update(this._block);var ye=this._hash();return ce?ye.toString(ce):ye},ae.prototype._update=function(){throw new Error("_update must be implemented by subclass")},k.exports=ae}}),require_sha2=__commonJS$1({"node_modules/sha.js/sha.js"(v,k){var ie=require_inherits_browser(),ae=require_hash2(),ce=require_safe_buffer().Buffer,fe=[1518500249,1859775393,-1894007588,-899497514],le=new Array(80);function ve(){this.init(),this._w=le,ae.call(this,64,56)}ie(ve,ae),ve.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function pe(Ee){return Ee<<5|Ee>>>27}function ye(Ee){return Ee<<30|Ee>>>2}function me(Ee,cr,Br,$r){return Ee===0?cr&Br|~cr&$r:Ee===2?cr&Br|cr&$r|Br&$r:cr^Br^$r}ve.prototype._update=function(Ee){for(var cr=this._w,Br=this._a|0,$r=this._b|0,Pr=this._c|0,Or=this._d|0,ur=this._e|0,jr=0;jr<16;++jr)cr[jr]=Ee.readInt32BE(jr*4);for(;jr<80;++jr)cr[jr]=cr[jr-3]^cr[jr-8]^cr[jr-14]^cr[jr-16];for(var Mr=0;Mr<80;++Mr){var Lr=~~(Mr/20),Vr=pe(Br)+me(Lr,$r,Pr,Or)+ur+cr[Mr]+fe[Lr]|0;ur=Or,Or=Pr,Pr=ye($r),$r=Br,Br=Vr}this._a=Br+this._a|0,this._b=$r+this._b|0,this._c=Pr+this._c|0,this._d=Or+this._d|0,this._e=ur+this._e|0},ve.prototype._hash=function(){var Ee=ce.allocUnsafe(20);return Ee.writeInt32BE(this._a|0,0),Ee.writeInt32BE(this._b|0,4),Ee.writeInt32BE(this._c|0,8),Ee.writeInt32BE(this._d|0,12),Ee.writeInt32BE(this._e|0,16),Ee},k.exports=ve}}),require_sha1=__commonJS$1({"node_modules/sha.js/sha1.js"(v,k){var ie=require_inherits_browser(),ae=require_hash2(),ce=require_safe_buffer().Buffer,fe=[1518500249,1859775393,-1894007588,-899497514],le=new Array(80);function ve(){this.init(),this._w=le,ae.call(this,64,56)}ie(ve,ae),ve.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function pe(cr){return cr<<1|cr>>>31}function ye(cr){return cr<<5|cr>>>27}function me(cr){return cr<<30|cr>>>2}function Ee(cr,Br,$r,Pr){return cr===0?Br&$r|~Br&Pr:cr===2?Br&$r|Br&Pr|$r&Pr:Br^$r^Pr}ve.prototype._update=function(cr){for(var Br=this._w,$r=this._a|0,Pr=this._b|0,Or=this._c|0,ur=this._d|0,jr=this._e|0,Mr=0;Mr<16;++Mr)Br[Mr]=cr.readInt32BE(Mr*4);for(;Mr<80;++Mr)Br[Mr]=pe(Br[Mr-3]^Br[Mr-8]^Br[Mr-14]^Br[Mr-16]);for(var Lr=0;Lr<80;++Lr){var Vr=~~(Lr/20),Gr=ye($r)+Ee(Vr,Pr,Or,ur)+jr+Br[Lr]+fe[Vr]|0;jr=ur,ur=Or,Or=me(Pr),Pr=$r,$r=Gr}this._a=$r+this._a|0,this._b=Pr+this._b|0,this._c=Or+this._c|0,this._d=ur+this._d|0,this._e=jr+this._e|0},ve.prototype._hash=function(){var cr=ce.allocUnsafe(20);return cr.writeInt32BE(this._a|0,0),cr.writeInt32BE(this._b|0,4),cr.writeInt32BE(this._c|0,8),cr.writeInt32BE(this._d|0,12),cr.writeInt32BE(this._e|0,16),cr},k.exports=ve}}),require_sha256=__commonJS$1({"node_modules/sha.js/sha256.js"(v,k){var ie=require_inherits_browser(),ae=require_hash2(),ce=require_safe_buffer().Buffer,fe=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],le=new Array(64);function ve(){this.init(),this._w=le,ae.call(this,64,56)}ie(ve,ae),ve.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function pe($r,Pr,Or){return Or^$r&(Pr^Or)}function ye($r,Pr,Or){return $r&Pr|Or&($r|Pr)}function me($r){return($r>>>2|$r<<30)^($r>>>13|$r<<19)^($r>>>22|$r<<10)}function Ee($r){return($r>>>6|$r<<26)^($r>>>11|$r<<21)^($r>>>25|$r<<7)}function cr($r){return($r>>>7|$r<<25)^($r>>>18|$r<<14)^$r>>>3}function Br($r){return($r>>>17|$r<<15)^($r>>>19|$r<<13)^$r>>>10}ve.prototype._update=function($r){for(var Pr=this._w,Or=this._a|0,ur=this._b|0,jr=this._c|0,Mr=this._d|0,Lr=this._e|0,Vr=this._f|0,Gr=this._g|0,Ur=this._h|0,Qr=0;Qr<16;++Qr)Pr[Qr]=$r.readInt32BE(Qr*4);for(;Qr<64;++Qr)Pr[Qr]=Br(Pr[Qr-2])+Pr[Qr-7]+cr(Pr[Qr-15])+Pr[Qr-16]|0;for(var vn=0;vn<64;++vn){var Yt=Ur+Ee(Lr)+pe(Lr,Vr,Gr)+fe[vn]+Pr[vn]|0,fn=me(Or)+ye(Or,ur,jr)|0;Ur=Gr,Gr=Vr,Vr=Lr,Lr=Mr+Yt|0,Mr=jr,jr=ur,ur=Or,Or=Yt+fn|0}this._a=Or+this._a|0,this._b=ur+this._b|0,this._c=jr+this._c|0,this._d=Mr+this._d|0,this._e=Lr+this._e|0,this._f=Vr+this._f|0,this._g=Gr+this._g|0,this._h=Ur+this._h|0},ve.prototype._hash=function(){var $r=ce.allocUnsafe(32);return $r.writeInt32BE(this._a,0),$r.writeInt32BE(this._b,4),$r.writeInt32BE(this._c,8),$r.writeInt32BE(this._d,12),$r.writeInt32BE(this._e,16),$r.writeInt32BE(this._f,20),$r.writeInt32BE(this._g,24),$r.writeInt32BE(this._h,28),$r},k.exports=ve}}),require_sha224=__commonJS$1({"node_modules/sha.js/sha224.js"(v,k){var ie=require_inherits_browser(),ae=require_sha256(),ce=require_hash2(),fe=require_safe_buffer().Buffer,le=new Array(64);function ve(){this.init(),this._w=le,ce.call(this,64,56)}ie(ve,ae),ve.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},ve.prototype._hash=function(){var pe=fe.allocUnsafe(28);return pe.writeInt32BE(this._a,0),pe.writeInt32BE(this._b,4),pe.writeInt32BE(this._c,8),pe.writeInt32BE(this._d,12),pe.writeInt32BE(this._e,16),pe.writeInt32BE(this._f,20),pe.writeInt32BE(this._g,24),pe},k.exports=ve}}),require_sha512=__commonJS$1({"node_modules/sha.js/sha512.js"(v,k){var ie=require_inherits_browser(),ae=require_hash2(),ce=require_safe_buffer().Buffer,fe=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],le=new Array(160);function ve(){this.init(),this._w=le,ae.call(this,128,112)}ie(ve,ae),ve.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function pe(ur,jr,Mr){return Mr^ur&(jr^Mr)}function ye(ur,jr,Mr){return ur&jr|Mr&(ur|jr)}function me(ur,jr){return(ur>>>28|jr<<4)^(jr>>>2|ur<<30)^(jr>>>7|ur<<25)}function Ee(ur,jr){return(ur>>>14|jr<<18)^(ur>>>18|jr<<14)^(jr>>>9|ur<<23)}function cr(ur,jr){return(ur>>>1|jr<<31)^(ur>>>8|jr<<24)^ur>>>7}function Br(ur,jr){return(ur>>>1|jr<<31)^(ur>>>8|jr<<24)^(ur>>>7|jr<<25)}function $r(ur,jr){return(ur>>>19|jr<<13)^(jr>>>29|ur<<3)^ur>>>6}function Pr(ur,jr){return(ur>>>19|jr<<13)^(jr>>>29|ur<<3)^(ur>>>6|jr<<26)}function Or(ur,jr){return ur>>>0>>0?1:0}ve.prototype._update=function(ur){for(var jr=this._w,Mr=this._ah|0,Lr=this._bh|0,Vr=this._ch|0,Gr=this._dh|0,Ur=this._eh|0,Qr=this._fh|0,vn=this._gh|0,Yt=this._hh|0,fn=this._al|0,Xt=this._bl|0,Qt=this._cl|0,Kr=this._dl|0,be=this._el|0,kr=this._fl|0,xr=this._gl|0,Wr=this._hl|0,Jt=0;Jt<32;Jt+=2)jr[Jt]=ur.readInt32BE(Jt*4),jr[Jt+1]=ur.readInt32BE(Jt*4+4);for(;Jt<160;Jt+=2){var Xr=jr[Jt-30],zr=jr[Jt-15*2+1],Jr=cr(Xr,zr),Nr=Br(zr,Xr);Xr=jr[Jt-2*2],zr=jr[Jt-2*2+1];var Hr=$r(Xr,zr),On=Pr(zr,Xr),Gn=jr[Jt-7*2],mn=jr[Jt-7*2+1],Nn=jr[Jt-16*2],In=jr[Jt-16*2+1],bn=Nr+mn|0,ii=Jr+Gn+Or(bn,Nr)|0;bn=bn+On|0,ii=ii+Hr+Or(bn,On)|0,bn=bn+In|0,ii=ii+Nn+Or(bn,In)|0,jr[Jt]=ii,jr[Jt+1]=bn}for(var hn=0;hn<160;hn+=2){ii=jr[hn],bn=jr[hn+1];var pn=ye(Mr,Lr,Vr),Sn=ye(fn,Xt,Qt),Qn=me(Mr,fn),Jn=me(fn,Mr),ui=Ee(Ur,be),gi=Ee(be,Ur),di=fe[hn],Ci=fe[hn+1],yi=pe(Ur,Qr,vn),li=pe(be,kr,xr),Pi=Wr+gi|0,Ai=Yt+ui+Or(Pi,Wr)|0;Pi=Pi+li|0,Ai=Ai+yi+Or(Pi,li)|0,Pi=Pi+Ci|0,Ai=Ai+di+Or(Pi,Ci)|0,Pi=Pi+bn|0,Ai=Ai+ii+Or(Pi,bn)|0;var Oi=Jn+Sn|0,to=Qn+pn+Or(Oi,Jn)|0;Yt=vn,Wr=xr,vn=Qr,xr=kr,Qr=Ur,kr=be,be=Kr+Pi|0,Ur=Gr+Ai+Or(be,Kr)|0,Gr=Vr,Kr=Qt,Vr=Lr,Qt=Xt,Lr=Mr,Xt=fn,fn=Pi+Oi|0,Mr=Ai+to+Or(fn,Pi)|0}this._al=this._al+fn|0,this._bl=this._bl+Xt|0,this._cl=this._cl+Qt|0,this._dl=this._dl+Kr|0,this._el=this._el+be|0,this._fl=this._fl+kr|0,this._gl=this._gl+xr|0,this._hl=this._hl+Wr|0,this._ah=this._ah+Mr+Or(this._al,fn)|0,this._bh=this._bh+Lr+Or(this._bl,Xt)|0,this._ch=this._ch+Vr+Or(this._cl,Qt)|0,this._dh=this._dh+Gr+Or(this._dl,Kr)|0,this._eh=this._eh+Ur+Or(this._el,be)|0,this._fh=this._fh+Qr+Or(this._fl,kr)|0,this._gh=this._gh+vn+Or(this._gl,xr)|0,this._hh=this._hh+Yt+Or(this._hl,Wr)|0},ve.prototype._hash=function(){var ur=ce.allocUnsafe(64);function jr(Mr,Lr,Vr){ur.writeInt32BE(Mr,Vr),ur.writeInt32BE(Lr,Vr+4)}return jr(this._ah,this._al,0),jr(this._bh,this._bl,8),jr(this._ch,this._cl,16),jr(this._dh,this._dl,24),jr(this._eh,this._el,32),jr(this._fh,this._fl,40),jr(this._gh,this._gl,48),jr(this._hh,this._hl,56),ur},k.exports=ve}}),require_sha384=__commonJS$1({"node_modules/sha.js/sha384.js"(v,k){var ie=require_inherits_browser(),ae=require_sha512(),ce=require_hash2(),fe=require_safe_buffer().Buffer,le=new Array(160);function ve(){this.init(),this._w=le,ce.call(this,128,112)}ie(ve,ae),ve.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},ve.prototype._hash=function(){var pe=fe.allocUnsafe(48);function ye(me,Ee,cr){pe.writeInt32BE(me,cr),pe.writeInt32BE(Ee,cr+4)}return ye(this._ah,this._al,0),ye(this._bh,this._bl,8),ye(this._ch,this._cl,16),ye(this._dh,this._dl,24),ye(this._eh,this._el,32),ye(this._fh,this._fl,40),pe},k.exports=ve}}),require_sha4=__commonJS$1({"node_modules/sha.js/index.js"(ie,k){var ie=k.exports=function(ce){ce=ce.toLowerCase();var fe=ie[ce];if(!fe)throw new Error(ce+" is not supported (we accept pull requests)");return new fe};ie.sha=require_sha2(),ie.sha1=require_sha1(),ie.sha224=require_sha224(),ie.sha256=require_sha256(),ie.sha384=require_sha384(),ie.sha512=require_sha512()}}),require_stream=__commonJS$1({"browser-external:stream"(v,k){k.exports={}}}),require_cipher_base=__commonJS$1({"node_modules/cipher-base/index.js"(v,k){var ie=require_safe_buffer().Buffer,ae=require_stream().Transform,ce=require_string_decoder().StringDecoder,fe=require_inherits_browser();function le(ve){ae.call(this),this.hashMode=typeof ve=="string",this.hashMode?this[ve]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}fe(le,ae),le.prototype.update=function(ve,pe,ye){typeof ve=="string"&&(ve=ie.from(ve,pe));var me=this._update(ve);return this.hashMode?this:(ye&&(me=this._toString(me,ye)),me)},le.prototype.setAutoPadding=function(){},le.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},le.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},le.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},le.prototype._transform=function(ve,pe,ye){var me;try{this.hashMode?this._update(ve):this.push(this._update(ve))}catch(Ee){me=Ee}finally{ye(me)}},le.prototype._flush=function(ve){var pe;try{this.push(this.__final())}catch(ye){pe=ye}ve(pe)},le.prototype._finalOrDigest=function(ve){var pe=this.__final()||ie.alloc(0);return ve&&(pe=this._toString(pe,ve,!0)),pe},le.prototype._toString=function(ve,pe,ye){if(this._decoder||(this._decoder=new ce(pe),this._encoding=pe),this._encoding!==pe)throw new Error("can't switch encodings");var me=this._decoder.write(ve);return ye&&(me+=this._decoder.end()),me},k.exports=le}}),require_browser2=__commonJS$1({"node_modules/create-hash/browser.js"(v,k){var ie=require_inherits_browser(),ae=require_md5(),ce=require_ripemd160(),fe=require_sha4(),le=require_cipher_base();function ve(pe){le.call(this,"digest"),this._hash=pe}ie(ve,le),ve.prototype._update=function(pe){this._hash.update(pe)},ve.prototype._final=function(){return this._hash.digest()},k.exports=function(ye){return ye=ye.toLowerCase(),ye==="md5"?new ae:ye==="rmd160"||ye==="ripemd160"?new ce:new ve(fe(ye))}}}),require_precondition=__commonJS$1({"node_modules/pbkdf2/lib/precondition.js"(v,k){var ie=Math.pow(2,30)-1;k.exports=function(ae,ce){if(typeof ae!="number")throw new TypeError("Iterations not a number");if(ae<0)throw new TypeError("Bad iterations");if(typeof ce!="number")throw new TypeError("Key length not a number");if(ce<0||ce>ie||ce!==ce)throw new TypeError("Bad key length")}}}),require_default_encoding=__commonJS$1({"node_modules/pbkdf2/lib/default-encoding.js"(v,k){var ie;globalThis.process&&globalThis.process.browser?ie="utf-8":globalThis.process&&globalThis.process.version?(ae=parseInt(process.version.split(".")[0].slice(1),10),ie=ae>=6?"utf-8":"binary"):ie="utf-8";var ae;k.exports=ie}}),require_md52=__commonJS$1({"node_modules/create-hash/md5.js"(v,k){var ie=require_md5();k.exports=function(ae){return new ie().update(ae).digest()}}}),require_to_buffer=__commonJS$1({"node_modules/pbkdf2/lib/to-buffer.js"(v,k){var ie=require_safe_buffer().Buffer;k.exports=function(ae,ce,fe){if(ie.isBuffer(ae))return ae;if(typeof ae=="string")return ie.from(ae,ce);if(ArrayBuffer.isView(ae))return ie.from(ae.buffer);throw new TypeError(fe+" must be a string, a Buffer, a typed array or a DataView")}}}),require_sync_browser=__commonJS$1({"node_modules/pbkdf2/lib/sync-browser.js"(v,k){var ie=require_md52(),ae=require_ripemd160(),ce=require_sha4(),fe=require_safe_buffer().Buffer,le=require_precondition(),ve=require_default_encoding(),pe=require_to_buffer(),ye=fe.alloc(128),me={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Ee($r,Pr,Or){var ur=cr($r),jr=$r==="sha512"||$r==="sha384"?128:64;Pr.length>jr?Pr=ur(Pr):Pr.length32)throw new Error(pe);if(Xt.length%4!==0)throw new Error(pe);var Qt=Buffer.from(Xt),Kr=Br(Qt);if(Kr!==fn)throw new Error(ye);return Qt.toString("hex")}function jr(Vr,Gr){if(Buffer.isBuffer(Vr)||(Vr=Buffer.from(Vr,"hex")),Gr=Gr||le,Vr.length<16)throw new TypeError(pe);if(Vr.length>32)throw new TypeError(pe);if(Vr.length%4!==0)throw new TypeError(pe);var Ur=cr([].slice.call(Vr)),Qr=Br(Vr),vn=Ur+Qr,Yt=vn.match(/(.{1,11})/g),fn=Yt.map(function(Xt){var Qt=Ee(Xt);return Gr[Qt]});return fn.join(" ")}function Mr(Vr,Gr,Ur){if(Vr=Vr||128,Vr%32!==0)throw new TypeError(pe);return Gr=Gr||ie,jr(Gr(Vr/8),Ur)}function Lr(Vr,Gr){try{ur(Vr,Gr)}catch{return!1}return!0}k.exports={mnemonicToSeed:Pr,mnemonicToSeedHex:Or,mnemonicToEntropy:ur,entropyToMnemonic:jr,generateMnemonic:Mr,validateMnemonic:Lr,wordlists:{EN:fe}}}}),require_legacy=__commonJS$1({"node_modules/create-hmac/legacy.js"(v,k){var ie=require_inherits_browser(),ae=require_safe_buffer().Buffer,ce=require_cipher_base(),fe=ae.alloc(128),le=64;function ve(pe,ye){ce.call(this,"digest"),typeof ye=="string"&&(ye=ae.from(ye)),this._alg=pe,this._key=ye,ye.length>le?ye=pe(ye):ye.lengthBr){var $r=Ee==="rmd160"?new ve:pe(Ee);cr=$r.update(cr).digest()}else cr.lengthk.replace("'","")}}),require_dist2=__commonJS$1({"node_modules/near-hd-key/dist/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.derivePath=v.isValidPath=v.getPublicKey=v.getMasterKeyFromSeed=void 0;var k=require_browser4(),ie=require_nacl_fast(),ae=require_utils2(),ce="ed25519 seed",fe=2147483648;v.getMasterKeyFromSeed=ve=>{const ye=k("sha512",ce).update(Buffer.from(ve,"hex")).digest(),me=ye.slice(0,32),Ee=ye.slice(32);return{key:me,chainCode:Ee}};var le=({key:ve,chainCode:pe},ye)=>{const me=Buffer.allocUnsafe(4);me.writeUInt32BE(ye,0);const Ee=Buffer.concat([Buffer.alloc(1,0),ve,me]),cr=k("sha512",pe).update(Ee).digest(),Br=cr.slice(0,32),$r=cr.slice(32);return{key:Br,chainCode:$r}};v.getPublicKey=(ve,pe=!0)=>{const me=ie.sign.keyPair.fromSeed(ve).secretKey.subarray(32),Ee=Buffer.alloc(1,0);return pe?Buffer.concat([Ee,Buffer.from(me)]):Buffer.from(me)},v.isValidPath=ve=>ae.pathRegex.test(ve)?!ve.split("/").slice(1).map(ae.replaceDerive).some(isNaN):!1,v.derivePath=(ve,pe,ye=fe)=>{if(!v.isValidPath(ve))throw new Error("Invalid derivation path");const{key:me,chainCode:Ee}=v.getMasterKeyFromSeed(pe);return ve.split("/").slice(1).map(ae.replaceDerive).map(Br=>parseInt(Br,10)).reduce((Br,$r)=>le(Br,$r+ye),{key:me,chainCode:Ee})}}}),require_near_seed_phrase=__commonJS$1({"node_modules/near-seed-phrase/index.js"(v,k){var ie=require_bip39_light(),{derivePath:ae}=require_dist2(),ce=require_bs58(),fe=require_nacl_fast(),le="m/44'/397'/0'",ve=Ee=>ye(Ee!==void 0?ie.entropyToMnemonic(Ee):ie.generateMnemonic()),pe=Ee=>Ee.trim().split(/\s+/).map(cr=>cr.toLowerCase()).join(" "),ye=(Ee,cr)=>{const Br=ie.mnemonicToSeed(pe(Ee)),{key:$r}=ae(cr||le,Br.toString("hex")),Pr=fe.sign.keyPair.fromSeed($r),Or="ed25519:"+ce.encode(Buffer.from(Pr.publicKey)),ur="ed25519:"+ce.encode(Buffer.from(Pr.secretKey));return{seedPhrase:Ee,secretKey:ur,publicKey:Or}},me=(Ee,cr)=>{const Br=ye(Ee);return cr.indexOf(Br.publicKey)<0?{}:Br};k.exports={KEY_DERIVATION_PATH:le,generateSeedPhrase:ve,normalizeSeedPhrase:pe,parseSeedPhrase:ye,findSeedPhraseKey:me}}}),import_detect_provider=__toESM(require_dist(),1),ethers_exports={};__export$1(ethers_exports,{BaseContract:()=>BaseContract,BigNumber:()=>BigNumber,Contract:()=>Contract,ContractFactory:()=>ContractFactory,FixedNumber:()=>FixedNumber,Signer:()=>Signer,VoidSigner:()=>VoidSigner,Wallet:()=>Wallet,Wordlist:()=>Wordlist,constants:()=>lib_exports2,errors:()=>ErrorCode,getDefaultProvider:()=>getDefaultProvider,logger:()=>logger46,providers:()=>lib_exports4,utils:()=>utils_exports,version:()=>version26,wordlists:()=>wordlists});var import_bn=__toESM(require_bn$1()),version$4="logger/5.7.0",_permanentCensorErrors=!1,_censorErrors=!1,LogLevels={debug:1,default:2,info:2,warning:3,error:4,off:5},_logLevel=LogLevels.default,_globalLogger=null;function _checkNormalize(){try{const v=[];if(["NFD","NFC","NFKD","NFKC"].forEach(k=>{try{if("test".normalize(k)!=="test")throw new Error("bad normalize")}catch{v.push(k)}}),v.length)throw new Error("missing "+v.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(v){return v.message}return null}var _normalizeError=_checkNormalize(),LogLevel;(function(v){v.DEBUG="DEBUG",v.INFO="INFO",v.WARNING="WARNING",v.ERROR="ERROR",v.OFF="OFF"})(LogLevel||(LogLevel={}));var ErrorCode;(function(v){v.UNKNOWN_ERROR="UNKNOWN_ERROR",v.NOT_IMPLEMENTED="NOT_IMPLEMENTED",v.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",v.NETWORK_ERROR="NETWORK_ERROR",v.SERVER_ERROR="SERVER_ERROR",v.TIMEOUT="TIMEOUT",v.BUFFER_OVERRUN="BUFFER_OVERRUN",v.NUMERIC_FAULT="NUMERIC_FAULT",v.MISSING_NEW="MISSING_NEW",v.INVALID_ARGUMENT="INVALID_ARGUMENT",v.MISSING_ARGUMENT="MISSING_ARGUMENT",v.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",v.CALL_EXCEPTION="CALL_EXCEPTION",v.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",v.NONCE_EXPIRED="NONCE_EXPIRED",v.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",v.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",v.TRANSACTION_REPLACED="TRANSACTION_REPLACED",v.ACTION_REJECTED="ACTION_REJECTED"})(ErrorCode||(ErrorCode={}));var HEX="0123456789abcdef",Logger=class{constructor(v){Object.defineProperty(this,"version",{enumerable:!0,value:v,writable:!1})}_log(v,k){const ie=v.toLowerCase();LogLevels[ie]==null&&this.throwArgumentError("invalid log level name","logLevel",v),!(_logLevel>LogLevels[ie])&&console.log.apply(console,k)}debug(...v){this._log(Logger.levels.DEBUG,v)}info(...v){this._log(Logger.levels.INFO,v)}warn(...v){this._log(Logger.levels.WARNING,v)}makeError(v,k,ie){if(_censorErrors)return this.makeError("censored error",k,{});k||(k=Logger.errors.UNKNOWN_ERROR),ie||(ie={});const ae=[];Object.keys(ie).forEach(ve=>{const pe=ie[ve];try{if(pe instanceof Uint8Array){let ye="";for(let me=0;me>4],ye+=HEX[pe[me]&15];ae.push(ve+"=Uint8Array(0x"+ye+")")}else ae.push(ve+"="+JSON.stringify(pe))}catch{ae.push(ve+"="+JSON.stringify(ie[ve].toString()))}}),ae.push(`code=${k}`),ae.push(`version=${this.version}`);const ce=v;let fe="";switch(k){case ErrorCode.NUMERIC_FAULT:{fe="NUMERIC_FAULT";const ve=v;switch(ve){case"overflow":case"underflow":case"division-by-zero":fe+="-"+ve;break;case"negative-power":case"negative-width":fe+="-unsupported";break;case"unbound-bitwise-result":fe+="-unbound-result";break}break}case ErrorCode.CALL_EXCEPTION:case ErrorCode.INSUFFICIENT_FUNDS:case ErrorCode.MISSING_NEW:case ErrorCode.NONCE_EXPIRED:case ErrorCode.REPLACEMENT_UNDERPRICED:case ErrorCode.TRANSACTION_REPLACED:case ErrorCode.UNPREDICTABLE_GAS_LIMIT:fe=k;break}fe&&(v+=" [ See: https://links.ethers.org/v5-errors-"+fe+" ]"),ae.length&&(v+=" ("+ae.join(", ")+")");const le=new Error(v);return le.reason=ce,le.code=k,Object.keys(ie).forEach(function(ve){le[ve]=ie[ve]}),le}throwError(v,k,ie){throw this.makeError(v,k,ie)}throwArgumentError(v,k,ie){return this.throwError(v,Logger.errors.INVALID_ARGUMENT,{argument:k,value:ie})}assert(v,k,ie,ae){v||this.throwError(k,ie,ae)}assertArgument(v,k,ie,ae){v||this.throwArgumentError(k,ie,ae)}checkNormalize(v){_normalizeError&&this.throwError("platform missing String.prototype.normalize",Logger.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:_normalizeError})}checkSafeUint53(v,k){typeof v=="number"&&(k==null&&(k="value not safe"),(v<0||v>=9007199254740991)&&this.throwError(k,Logger.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:v}),v%1&&this.throwError(k,Logger.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:v}))}checkArgumentCount(v,k,ie){ie?ie=": "+ie:ie="",vk&&this.throwError("too many arguments"+ie,Logger.errors.UNEXPECTED_ARGUMENT,{count:v,expectedCount:k})}checkNew(v,k){(v===Object||v==null)&&this.throwError("missing new",Logger.errors.MISSING_NEW,{name:k.name})}checkAbstract(v,k){v===k?this.throwError("cannot instantiate abstract class "+JSON.stringify(k.name)+" directly; use a sub-class",Logger.errors.UNSUPPORTED_OPERATION,{name:v.name,operation:"new"}):(v===Object||v==null)&&this.throwError("missing new",Logger.errors.MISSING_NEW,{name:k.name})}static globalLogger(){return _globalLogger||(_globalLogger=new Logger(version$4)),_globalLogger}static setCensorship(v,k){if(!v&&k&&this.globalLogger().throwError("cannot permanently disable censorship",Logger.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),_permanentCensorErrors){if(!v)return;this.globalLogger().throwError("error censorship permanent",Logger.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}_censorErrors=!!v,_permanentCensorErrors=!!k}static setLogLevel(v){const k=LogLevels[v.toLowerCase()];if(k==null){Logger.globalLogger().warn("invalid log level - "+v);return}_logLevel=k}static from(v){return new Logger(v)}};Logger.errors=ErrorCode;Logger.levels=LogLevel;var version2="bytes/5.7.0",logger=new Logger(version2);function isHexable(v){return!!v.toHexString}function addSlice(v){return v.slice||(v.slice=function(){const k=Array.prototype.slice.call(arguments);return addSlice(new Uint8Array(Array.prototype.slice.apply(v,k)))}),v}function isBytesLike(v){return isHexString(v)&&!(v.length%2)||isBytes(v)}function isInteger(v){return typeof v=="number"&&v==v&&v%1===0}function isBytes(v){if(v==null)return!1;if(v.constructor===Uint8Array)return!0;if(typeof v=="string"||!isInteger(v.length)||v.length<0)return!1;for(let k=0;k=256)return!1}return!0}function arrayify(v,k){if(k||(k={}),typeof v=="number"){logger.checkSafeUint53(v,"invalid arrayify value");const ie=[];for(;v;)ie.unshift(v&255),v=parseInt(String(v/256));return ie.length===0&&ie.push(0),addSlice(new Uint8Array(ie))}if(k.allowMissingPrefix&&typeof v=="string"&&v.substring(0,2)!=="0x"&&(v="0x"+v),isHexable(v)&&(v=v.toHexString()),isHexString(v)){let ie=v.substring(2);ie.length%2&&(k.hexPad==="left"?ie="0"+ie:k.hexPad==="right"?ie+="0":logger.throwArgumentError("hex data is odd-length","value",v));const ae=[];for(let ce=0;cearrayify(ce)),ie=k.reduce((ce,fe)=>ce+fe.length,0),ae=new Uint8Array(ie);return k.reduce((ce,fe)=>(ae.set(fe,ce),ce+fe.length),0),addSlice(ae)}function stripZeros(v){let k=arrayify(v);if(k.length===0)return k;let ie=0;for(;iek&&logger.throwArgumentError("value out of range","value",arguments[0]);const ie=new Uint8Array(k);return ie.set(v,k-v.length),addSlice(ie)}function isHexString(v,k){return!(typeof v!="string"||!v.match(/^0x[0-9A-Fa-f]*$/)||k&&v.length!==2+2*k)}var HexCharacters="0123456789abcdef";function hexlify(v,k){if(k||(k={}),typeof v=="number"){logger.checkSafeUint53(v,"invalid hexlify value");let ie="";for(;v;)ie=HexCharacters[v&15]+ie,v=Math.floor(v/16);return ie.length?(ie.length%2&&(ie="0"+ie),"0x"+ie):"0x00"}if(typeof v=="bigint")return v=v.toString(16),v.length%2?"0x0"+v:"0x"+v;if(k.allowMissingPrefix&&typeof v=="string"&&v.substring(0,2)!=="0x"&&(v="0x"+v),isHexable(v))return v.toHexString();if(isHexString(v))return v.length%2&&(k.hexPad==="left"?v="0x0"+v.substring(2):k.hexPad==="right"?v+="0":logger.throwArgumentError("hex data is odd-length","value",v)),v.toLowerCase();if(isBytes(v)){let ie="0x";for(let ae=0;ae>4]+HexCharacters[ce&15]}return ie}return logger.throwArgumentError("invalid hexlify value","value",v)}function hexDataLength(v){if(typeof v!="string")v=hexlify(v);else if(!isHexString(v)||v.length%2)return null;return(v.length-2)/2}function hexDataSlice(v,k,ie){return typeof v!="string"?v=hexlify(v):(!isHexString(v)||v.length%2)&&logger.throwArgumentError("invalid hexData","value",v),k=2+2*k,ie!=null?"0x"+v.substring(k,2+2*ie):"0x"+v.substring(k)}function hexConcat(v){let k="0x";return v.forEach(ie=>{k+=hexlify(ie).substring(2)}),k}function hexValue(v){const k=hexStripZeros(hexlify(v,{hexPad:"left"}));return k==="0x"?"0x0":k}function hexStripZeros(v){typeof v!="string"&&(v=hexlify(v)),isHexString(v)||logger.throwArgumentError("invalid hex string","value",v),v=v.substring(2);let k=0;for(;k2*k+2&&logger.throwArgumentError("value out of range","value",arguments[1]);v.length<2*k+2;)v="0x0"+v.substring(2);return v}function splitSignature(v){const k={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(isBytesLike(v)){let ie=arrayify(v);ie.length===64?(k.v=27+(ie[32]>>7),ie[32]&=127,k.r=hexlify(ie.slice(0,32)),k.s=hexlify(ie.slice(32,64))):ie.length===65?(k.r=hexlify(ie.slice(0,32)),k.s=hexlify(ie.slice(32,64)),k.v=ie[64]):logger.throwArgumentError("invalid signature string","signature",v),k.v<27&&(k.v===0||k.v===1?k.v+=27:logger.throwArgumentError("signature invalid v byte","signature",v)),k.recoveryParam=1-k.v%2,k.recoveryParam&&(ie[32]|=128),k._vs=hexlify(ie.slice(32,64))}else{if(k.r=v.r,k.s=v.s,k.v=v.v,k.recoveryParam=v.recoveryParam,k._vs=v._vs,k._vs!=null){const ce=zeroPad(arrayify(k._vs),32);k._vs=hexlify(ce);const fe=ce[0]>=128?1:0;k.recoveryParam==null?k.recoveryParam=fe:k.recoveryParam!==fe&&logger.throwArgumentError("signature recoveryParam mismatch _vs","signature",v),ce[0]&=127;const le=hexlify(ce);k.s==null?k.s=le:k.s!==le&&logger.throwArgumentError("signature v mismatch _vs","signature",v)}if(k.recoveryParam==null)k.v==null?logger.throwArgumentError("signature missing v and recoveryParam","signature",v):k.v===0||k.v===1?k.recoveryParam=k.v:k.recoveryParam=1-k.v%2;else if(k.v==null)k.v=27+k.recoveryParam;else{const ce=k.v===0||k.v===1?k.v:1-k.v%2;k.recoveryParam!==ce&&logger.throwArgumentError("signature recoveryParam mismatch v","signature",v)}k.r==null||!isHexString(k.r)?logger.throwArgumentError("signature missing or invalid r","signature",v):k.r=hexZeroPad(k.r,32),k.s==null||!isHexString(k.s)?logger.throwArgumentError("signature missing or invalid s","signature",v):k.s=hexZeroPad(k.s,32);const ie=arrayify(k.s);ie[0]>=128&&logger.throwArgumentError("signature s out of range","signature",v),k.recoveryParam&&(ie[0]|=128);const ae=hexlify(ie);k._vs&&(isHexString(k._vs)||logger.throwArgumentError("signature invalid _vs","signature",v),k._vs=hexZeroPad(k._vs,32)),k._vs==null?k._vs=ae:k._vs!==ae&&logger.throwArgumentError("signature _vs mismatch v and s","signature",v)}return k.yParityAndS=k._vs,k.compact=k.r+k.yParityAndS.substring(2),k}function joinSignature(v){return v=splitSignature(v),hexlify(concat$4([v.r,v.s,v.recoveryParam?"0x1c":"0x1b"]))}var version3="bignumber/5.7.0",BN=import_bn.default.BN,logger2=new Logger(version3),_constructorGuard={},MAX_SAFE=9007199254740991;function isBigNumberish(v){return v!=null&&(BigNumber.isBigNumber(v)||typeof v=="number"&&v%1===0||typeof v=="string"&&!!v.match(/^-?[0-9]+$/)||isHexString(v)||typeof v=="bigint"||isBytes(v))}var _warnedToStringRadix=!1,BigNumber=class{constructor(v,k){v!==_constructorGuard&&logger2.throwError("cannot call constructor directly; use BigNumber.from",Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=k,this._isBigNumber=!0,Object.freeze(this)}fromTwos(v){return toBigNumber(toBN(this).fromTwos(v))}toTwos(v){return toBigNumber(toBN(this).toTwos(v))}abs(){return this._hex[0]==="-"?BigNumber.from(this._hex.substring(1)):this}add(v){return toBigNumber(toBN(this).add(toBN(v)))}sub(v){return toBigNumber(toBN(this).sub(toBN(v)))}div(v){return BigNumber.from(v).isZero()&&throwFault("division-by-zero","div"),toBigNumber(toBN(this).div(toBN(v)))}mul(v){return toBigNumber(toBN(this).mul(toBN(v)))}mod(v){const k=toBN(v);return k.isNeg()&&throwFault("division-by-zero","mod"),toBigNumber(toBN(this).umod(k))}pow(v){const k=toBN(v);return k.isNeg()&&throwFault("negative-power","pow"),toBigNumber(toBN(this).pow(k))}and(v){const k=toBN(v);return(this.isNegative()||k.isNeg())&&throwFault("unbound-bitwise-result","and"),toBigNumber(toBN(this).and(k))}or(v){const k=toBN(v);return(this.isNegative()||k.isNeg())&&throwFault("unbound-bitwise-result","or"),toBigNumber(toBN(this).or(k))}xor(v){const k=toBN(v);return(this.isNegative()||k.isNeg())&&throwFault("unbound-bitwise-result","xor"),toBigNumber(toBN(this).xor(k))}mask(v){return(this.isNegative()||v<0)&&throwFault("negative-width","mask"),toBigNumber(toBN(this).maskn(v))}shl(v){return(this.isNegative()||v<0)&&throwFault("negative-width","shl"),toBigNumber(toBN(this).shln(v))}shr(v){return(this.isNegative()||v<0)&&throwFault("negative-width","shr"),toBigNumber(toBN(this).shrn(v))}eq(v){return toBN(this).eq(toBN(v))}lt(v){return toBN(this).lt(toBN(v))}lte(v){return toBN(this).lte(toBN(v))}gt(v){return toBN(this).gt(toBN(v))}gte(v){return toBN(this).gte(toBN(v))}isNegative(){return this._hex[0]==="-"}isZero(){return toBN(this).isZero()}toNumber(){try{return toBN(this).toNumber()}catch{throwFault("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return logger2.throwError("this platform does not support BigInt",Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?_warnedToStringRadix||(_warnedToStringRadix=!0,logger2.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?logger2.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Logger.errors.UNEXPECTED_ARGUMENT,{}):logger2.throwError("BigNumber.toString does not accept parameters",Logger.errors.UNEXPECTED_ARGUMENT,{})),toBN(this).toString(10)}toHexString(){return this._hex}toJSON(v){return{type:"BigNumber",hex:this.toHexString()}}static from(v){if(v instanceof BigNumber)return v;if(typeof v=="string")return v.match(/^-?0x[0-9a-f]+$/i)?new BigNumber(_constructorGuard,toHex(v)):v.match(/^-?[0-9]+$/)?new BigNumber(_constructorGuard,toHex(new BN(v))):logger2.throwArgumentError("invalid BigNumber string","value",v);if(typeof v=="number")return v%1&&throwFault("underflow","BigNumber.from",v),(v>=MAX_SAFE||v<=-MAX_SAFE)&&throwFault("overflow","BigNumber.from",v),BigNumber.from(String(v));const k=v;if(typeof k=="bigint")return BigNumber.from(k.toString());if(isBytes(k))return BigNumber.from(hexlify(k));if(k)if(k.toHexString){const ie=k.toHexString();if(typeof ie=="string")return BigNumber.from(ie)}else{let ie=k._hex;if(ie==null&&k.type==="BigNumber"&&(ie=k.hex),typeof ie=="string"&&(isHexString(ie)||ie[0]==="-"&&isHexString(ie.substring(1))))return BigNumber.from(ie)}return logger2.throwArgumentError("invalid BigNumber value","value",v)}static isBigNumber(v){return!!(v&&v._isBigNumber)}};function toHex(v){if(typeof v!="string")return toHex(v.toString(16));if(v[0]==="-")return v=v.substring(1),v[0]==="-"&&logger2.throwArgumentError("invalid hex","value",v),v=toHex(v),v==="0x00"?v:"-"+v;if(v.substring(0,2)!=="0x"&&(v="0x"+v),v==="0x")return"0x00";for(v.length%2&&(v="0x0"+v.substring(2));v.length>4&&v.substring(0,4)==="0x00";)v="0x"+v.substring(4);return v}function toBigNumber(v){return BigNumber.from(toHex(v))}function toBN(v){const k=BigNumber.from(v).toHexString();return k[0]==="-"?new BN("-"+k.substring(3),16):new BN(k.substring(2),16)}function throwFault(v,k,ie){const ae={fault:v,operation:k};return ie!=null&&(ae.value=ie),logger2.throwError(v,Logger.errors.NUMERIC_FAULT,ae)}function _base36To16(v){return new BN(v,36).toString(16)}function _base16To36(v){return new BN(v,16).toString(36)}var logger3=new Logger(version3),_constructorGuard2={},Zero=BigNumber.from(0),NegativeOne=BigNumber.from(-1);function throwFault2(v,k,ie,ae){const ce={fault:k,operation:ie};return ae!==void 0&&(ce.value=ae),logger3.throwError(v,Logger.errors.NUMERIC_FAULT,ce)}var zeros="0";for(;zeros.length<256;)zeros+=zeros;function getMultiplier(v){if(typeof v!="number")try{v=BigNumber.from(v).toNumber()}catch{}return typeof v=="number"&&v>=0&&v<=256&&!(v%1)?"1"+zeros.substring(0,v):logger3.throwArgumentError("invalid decimal size","decimals",v)}function formatFixed(v,k){k==null&&(k=0);const ie=getMultiplier(k);v=BigNumber.from(v);const ae=v.lt(Zero);ae&&(v=v.mul(NegativeOne));let ce=v.mod(ie).toString();for(;ce.length2&&logger3.throwArgumentError("too many decimal points","value",v);let fe=ce[0],le=ce[1];for(fe||(fe="0"),le||(le="0");le[le.length-1]==="0";)le=le.substring(0,le.length-1);for(le.length>ie.length-1&&throwFault2("fractional component exceeds decimals","underflow","parseFixed"),le===""&&(le="0");le.lengthv[fe]==null?ve:(typeof v[fe]!==le&&logger3.throwArgumentError("invalid fixed format ("+fe+" not "+le+")","format."+fe,v[fe]),v[fe]);k=ce("signed","boolean",k),ie=ce("width","number",ie),ae=ce("decimals","number",ae)}return ie%8&&logger3.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",ie),ae>80&&logger3.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",ae),new FixedFormat(_constructorGuard2,k,ie,ae)}},FixedNumber=class{constructor(v,k,ie,ae){v!==_constructorGuard2&&logger3.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=ae,this._hex=k,this._value=ie,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(v){this.format.name!==v.format.name&&logger3.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",v)}addUnsafe(v){this._checkFormat(v);const k=parseFixed(this._value,this.format.decimals),ie=parseFixed(v._value,v.format.decimals);return FixedNumber.fromValue(k.add(ie),this.format.decimals,this.format)}subUnsafe(v){this._checkFormat(v);const k=parseFixed(this._value,this.format.decimals),ie=parseFixed(v._value,v.format.decimals);return FixedNumber.fromValue(k.sub(ie),this.format.decimals,this.format)}mulUnsafe(v){this._checkFormat(v);const k=parseFixed(this._value,this.format.decimals),ie=parseFixed(v._value,v.format.decimals);return FixedNumber.fromValue(k.mul(ie).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(v){this._checkFormat(v);const k=parseFixed(this._value,this.format.decimals),ie=parseFixed(v._value,v.format.decimals);return FixedNumber.fromValue(k.mul(this.format._multiplier).div(ie),this.format.decimals,this.format)}floor(){const v=this.toString().split(".");v.length===1&&v.push("0");let k=FixedNumber.from(v[0],this.format);const ie=!v[1].match(/^(0*)$/);return this.isNegative()&&ie&&(k=k.subUnsafe(ONE.toFormat(k.format))),k}ceiling(){const v=this.toString().split(".");v.length===1&&v.push("0");let k=FixedNumber.from(v[0],this.format);const ie=!v[1].match(/^(0*)$/);return!this.isNegative()&&ie&&(k=k.addUnsafe(ONE.toFormat(k.format))),k}round(v){v==null&&(v=0);const k=this.toString().split(".");if(k.length===1&&k.push("0"),(v<0||v>80||v%1)&&logger3.throwArgumentError("invalid decimal count","decimals",v),k[1].length<=v)return this;const ie=FixedNumber.from("1"+zeros.substring(0,v),this.format),ae=BUMP.toFormat(this.format);return this.mulUnsafe(ie).addUnsafe(ae).floor().divUnsafe(ie)}isZero(){return this._value==="0.0"||this._value==="0"}isNegative(){return this._value[0]==="-"}toString(){return this._value}toHexString(v){if(v==null)return this._hex;v%8&&logger3.throwArgumentError("invalid byte width","width",v);const k=BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(v).toHexString();return hexZeroPad(k,v/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(v){return FixedNumber.fromString(this._value,v)}static fromValue(v,k,ie){return ie==null&&k!=null&&!isBigNumberish(k)&&(ie=k,k=null),k==null&&(k=0),ie==null&&(ie="fixed"),FixedNumber.fromString(formatFixed(v,k),FixedFormat.from(ie))}static fromString(v,k){k==null&&(k="fixed");const ie=FixedFormat.from(k),ae=parseFixed(v,ie.decimals);!ie.signed&&ae.lt(Zero)&&throwFault2("unsigned value cannot be negative","overflow","value",v);let ce=null;ie.signed?ce=ae.toTwos(ie.width).toHexString():(ce=ae.toHexString(),ce=hexZeroPad(ce,ie.width/8));const fe=formatFixed(ae,ie.decimals);return new FixedNumber(_constructorGuard2,ce,fe,ie)}static fromBytes(v,k){k==null&&(k="fixed");const ie=FixedFormat.from(k);if(arrayify(v).length>ie.width/8)throw new Error("overflow");let ae=BigNumber.from(v);ie.signed&&(ae=ae.fromTwos(ie.width));const ce=ae.toTwos((ie.signed?0:1)+ie.width).toHexString(),fe=formatFixed(ae,ie.decimals);return new FixedNumber(_constructorGuard2,ce,fe,ie)}static from(v,k){if(typeof v=="string")return FixedNumber.fromString(v,k);if(isBytes(v))return FixedNumber.fromBytes(v,k);try{return FixedNumber.fromValue(v,0,k)}catch(ie){if(ie.code!==Logger.errors.INVALID_ARGUMENT)throw ie}return logger3.throwArgumentError("invalid FixedNumber value","value",v)}static isFixedNumber(v){return!!(v&&v._isFixedNumber)}},ONE=FixedNumber.from(1),BUMP=FixedNumber.from("0.5"),version4="properties/5.7.0",__awaiter$5=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger4=new Logger(version4);function defineReadOnly(v,k,ie){Object.defineProperty(v,k,{enumerable:!0,value:ie,writable:!1})}function getStatic(v,k){for(let ie=0;ie<32;ie++){if(v[k])return v[k];if(!v.prototype||typeof v.prototype!="object")break;v=Object.getPrototypeOf(v.prototype).constructor}return null}function resolveProperties(v){return __awaiter$5(this,void 0,void 0,function*(){const k=Object.keys(v).map(ae=>{const ce=v[ae];return Promise.resolve(ce).then(fe=>({key:ae,value:fe}))});return(yield Promise.all(k)).reduce((ae,ce)=>(ae[ce.key]=ce.value,ae),{})})}function checkProperties(v,k){(!v||typeof v!="object")&&logger4.throwArgumentError("invalid object","object",v),Object.keys(v).forEach(ie=>{k[ie]||logger4.throwArgumentError("invalid object key - "+ie,"transaction:"+ie,v)})}function shallowCopy(v){const k={};for(const ie in v)k[ie]=v[ie];return k}var opaque={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function _isFrozen(v){if(v==null||opaque[typeof v])return!0;if(Array.isArray(v)||typeof v=="object"){if(!Object.isFrozen(v))return!1;const k=Object.keys(v);for(let ie=0;iedeepCopy(k)));if(typeof v=="object"){const k={};for(const ie in v){const ae=v[ie];ae!==void 0&&defineReadOnly(k,ie,deepCopy(ae))}return k}return logger4.throwArgumentError(`Cannot deepCopy ${typeof v}`,"object",v)}function deepCopy(v){return _deepCopy(v)}var Description=class{constructor(v){for(const k in v)this[k]=deepCopy(v[k])}},version5="abi/5.7.0",logger5=new Logger(version5),_constructorGuard3={},ModifiersBytes={calldata:!0,memory:!0,storage:!0},ModifiersNest={calldata:!0,memory:!0};function checkModifier(v,k){if(v==="bytes"||v==="string"){if(ModifiersBytes[k])return!0}else if(v==="address"){if(k==="payable")return!0}else if((v.indexOf("[")>=0||v==="tuple")&&ModifiersNest[k])return!0;return(ModifiersBytes[k]||k==="payable")&&logger5.throwArgumentError("invalid modifier","name",k),!1}function parseParamType(v,k){let ie=v;function ae(ve){logger5.throwArgumentError(`unexpected character at position ${ve}`,"param",v)}v=v.replace(/\s/g," ");function ce(ve){let pe={type:"",name:"",parent:ve,state:{allowType:!0}};return k&&(pe.indexed=!1),pe}let fe={type:"",name:"",state:{allowType:!0}},le=fe;for(let ve=0;veJSON.parse(ae.format(v)))),JSON.stringify(ie)}let k="";return this.baseType==="array"?(k+=this.arrayChildren.format(v),k+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(v!==FormatTypes.sighash&&(k+=this.type),k+="("+this.components.map(ie=>ie.format(v)).join(v===FormatTypes.full?", ":",")+")"):k+=this.type,v!==FormatTypes.sighash&&(this.indexed===!0&&(k+=" indexed"),v===FormatTypes.full&&this.name&&(k+=" "+this.name)),k}static from(v,k){return typeof v=="string"?ParamType.fromString(v,k):ParamType.fromObject(v)}static fromObject(v){return ParamType.isParamType(v)?v:new ParamType(_constructorGuard3,{name:v.name||null,type:verifyType(v.type),indexed:v.indexed==null?null:!!v.indexed,components:v.components?v.components.map(ParamType.fromObject):null})}static fromString(v,k){function ie(ae){return ParamType.fromObject({name:ae.name,type:ae.type,indexed:ae.indexed,components:ae.components})}return ie(parseParamType(v,!!k))}static isParamType(v){return!!(v!=null&&v._isParamType)}};function parseParams(v,k){return splitNesting(v).map(ie=>ParamType.fromString(ie,k))}var Fragment=class{constructor(v,k){v!==_constructorGuard3&&logger5.throwError("use a static from method",Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),populate(this,k),this._isFragment=!0,Object.freeze(this)}static from(v){return Fragment.isFragment(v)?v:typeof v=="string"?Fragment.fromString(v):Fragment.fromObject(v)}static fromObject(v){if(Fragment.isFragment(v))return v;switch(v.type){case"function":return FunctionFragment.fromObject(v);case"event":return EventFragment.fromObject(v);case"constructor":return ConstructorFragment.fromObject(v);case"error":return ErrorFragment.fromObject(v);case"fallback":case"receive":return null}return logger5.throwArgumentError("invalid fragment object","value",v)}static fromString(v){return v=v.replace(/\s/g," "),v=v.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),v=v.trim(),v.split(" ")[0]==="event"?EventFragment.fromString(v.substring(5).trim()):v.split(" ")[0]==="function"?FunctionFragment.fromString(v.substring(8).trim()):v.split("(")[0].trim()==="constructor"?ConstructorFragment.fromString(v.trim()):v.split(" ")[0]==="error"?ErrorFragment.fromString(v.substring(5).trim()):logger5.throwArgumentError("unsupported fragment","value",v)}static isFragment(v){return!!(v&&v._isFragment)}},EventFragment=class extends Fragment{format(v){if(v||(v=FormatTypes.sighash),FormatTypes[v]||logger5.throwArgumentError("invalid format type","format",v),v===FormatTypes.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(ie=>JSON.parse(ie.format(v)))});let k="";return v!==FormatTypes.sighash&&(k+="event "),k+=this.name+"("+this.inputs.map(ie=>ie.format(v)).join(v===FormatTypes.full?", ":",")+") ",v!==FormatTypes.sighash&&this.anonymous&&(k+="anonymous "),k.trim()}static from(v){return typeof v=="string"?EventFragment.fromString(v):EventFragment.fromObject(v)}static fromObject(v){if(EventFragment.isEventFragment(v))return v;v.type!=="event"&&logger5.throwArgumentError("invalid event object","value",v);const k={name:verifyIdentifier(v.name),anonymous:v.anonymous,inputs:v.inputs?v.inputs.map(ParamType.fromObject):[],type:"event"};return new EventFragment(_constructorGuard3,k)}static fromString(v){let k=v.match(regexParen);k||logger5.throwArgumentError("invalid event string","value",v);let ie=!1;return k[3].split(" ").forEach(ae=>{switch(ae.trim()){case"anonymous":ie=!0;break;case"":break;default:logger5.warn("unknown modifier: "+ae)}}),EventFragment.fromObject({name:k[1].trim(),anonymous:ie,inputs:parseParams(k[2],!0),type:"event"})}static isEventFragment(v){return v&&v._isFragment&&v.type==="event"}};function parseGas(v,k){k.gas=null;let ie=v.split("@");return ie.length!==1?(ie.length>2&&logger5.throwArgumentError("invalid human-readable ABI signature","value",v),ie[1].match(/^[0-9]+$/)||logger5.throwArgumentError("invalid human-readable ABI signature gas","value",v),k.gas=BigNumber.from(ie[1]),ie[0]):v}function parseModifiers(v,k){k.constant=!1,k.payable=!1,k.stateMutability="nonpayable",v.split(" ").forEach(ie=>{switch(ie.trim()){case"constant":k.constant=!0;break;case"payable":k.payable=!0,k.stateMutability="payable";break;case"nonpayable":k.payable=!1,k.stateMutability="nonpayable";break;case"pure":k.constant=!0,k.stateMutability="pure";break;case"view":k.constant=!0,k.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+ie)}})}function verifyState(v){let k={constant:!1,payable:!0,stateMutability:"payable"};return v.stateMutability!=null?(k.stateMutability=v.stateMutability,k.constant=k.stateMutability==="view"||k.stateMutability==="pure",v.constant!=null&&!!v.constant!==k.constant&&logger5.throwArgumentError("cannot have constant function with mutability "+k.stateMutability,"value",v),k.payable=k.stateMutability==="payable",v.payable!=null&&!!v.payable!==k.payable&&logger5.throwArgumentError("cannot have payable function with mutability "+k.stateMutability,"value",v)):v.payable!=null?(k.payable=!!v.payable,v.constant==null&&!k.payable&&v.type!=="constructor"&&logger5.throwArgumentError("unable to determine stateMutability","value",v),k.constant=!!v.constant,k.constant?k.stateMutability="view":k.stateMutability=k.payable?"payable":"nonpayable",k.payable&&k.constant&&logger5.throwArgumentError("cannot have constant payable function","value",v)):v.constant!=null?(k.constant=!!v.constant,k.payable=!k.constant,k.stateMutability=k.constant?"view":"payable"):v.type!=="constructor"&&logger5.throwArgumentError("unable to determine stateMutability","value",v),k}var ConstructorFragment=class extends Fragment{format(v){if(v||(v=FormatTypes.sighash),FormatTypes[v]||logger5.throwArgumentError("invalid format type","format",v),v===FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(ie=>JSON.parse(ie.format(v)))});v===FormatTypes.sighash&&logger5.throwError("cannot format a constructor for sighash",Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let k="constructor("+this.inputs.map(ie=>ie.format(v)).join(v===FormatTypes.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(k+=this.stateMutability+" "),k.trim()}static from(v){return typeof v=="string"?ConstructorFragment.fromString(v):ConstructorFragment.fromObject(v)}static fromObject(v){if(ConstructorFragment.isConstructorFragment(v))return v;v.type!=="constructor"&&logger5.throwArgumentError("invalid constructor object","value",v);let k=verifyState(v);k.constant&&logger5.throwArgumentError("constructor cannot be constant","value",v);const ie={name:null,type:v.type,inputs:v.inputs?v.inputs.map(ParamType.fromObject):[],payable:k.payable,stateMutability:k.stateMutability,gas:v.gas?BigNumber.from(v.gas):null};return new ConstructorFragment(_constructorGuard3,ie)}static fromString(v){let k={type:"constructor"};v=parseGas(v,k);let ie=v.match(regexParen);return(!ie||ie[1].trim()!=="constructor")&&logger5.throwArgumentError("invalid constructor string","value",v),k.inputs=parseParams(ie[2].trim(),!1),parseModifiers(ie[3].trim(),k),ConstructorFragment.fromObject(k)}static isConstructorFragment(v){return v&&v._isFragment&&v.type==="constructor"}},FunctionFragment=class extends ConstructorFragment{format(v){if(v||(v=FormatTypes.sighash),FormatTypes[v]||logger5.throwArgumentError("invalid format type","format",v),v===FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(ie=>JSON.parse(ie.format(v))),outputs:this.outputs.map(ie=>JSON.parse(ie.format(v)))});let k="";return v!==FormatTypes.sighash&&(k+="function "),k+=this.name+"("+this.inputs.map(ie=>ie.format(v)).join(v===FormatTypes.full?", ":",")+") ",v!==FormatTypes.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(k+=this.stateMutability+" "):this.constant&&(k+="view "),this.outputs&&this.outputs.length&&(k+="returns ("+this.outputs.map(ie=>ie.format(v)).join(", ")+") "),this.gas!=null&&(k+="@"+this.gas.toString()+" ")),k.trim()}static from(v){return typeof v=="string"?FunctionFragment.fromString(v):FunctionFragment.fromObject(v)}static fromObject(v){if(FunctionFragment.isFunctionFragment(v))return v;v.type!=="function"&&logger5.throwArgumentError("invalid function object","value",v);let k=verifyState(v);const ie={type:v.type,name:verifyIdentifier(v.name),constant:k.constant,inputs:v.inputs?v.inputs.map(ParamType.fromObject):[],outputs:v.outputs?v.outputs.map(ParamType.fromObject):[],payable:k.payable,stateMutability:k.stateMutability,gas:v.gas?BigNumber.from(v.gas):null};return new FunctionFragment(_constructorGuard3,ie)}static fromString(v){let k={type:"function"};v=parseGas(v,k);let ie=v.split(" returns ");ie.length>2&&logger5.throwArgumentError("invalid function string","value",v);let ae=ie[0].match(regexParen);if(ae||logger5.throwArgumentError("invalid function signature","value",v),k.name=ae[1].trim(),k.name&&verifyIdentifier(k.name),k.inputs=parseParams(ae[2],!1),parseModifiers(ae[3].trim(),k),ie.length>1){let ce=ie[1].match(regexParen);(ce[1].trim()!=""||ce[3].trim()!="")&&logger5.throwArgumentError("unexpected tokens","value",v),k.outputs=parseParams(ce[2],!1)}else k.outputs=[];return FunctionFragment.fromObject(k)}static isFunctionFragment(v){return v&&v._isFragment&&v.type==="function"}};function checkForbidden(v){const k=v.format();return(k==="Error(string)"||k==="Panic(uint256)")&&logger5.throwArgumentError(`cannot specify user defined ${k} error`,"fragment",v),v}var ErrorFragment=class extends Fragment{format(v){if(v||(v=FormatTypes.sighash),FormatTypes[v]||logger5.throwArgumentError("invalid format type","format",v),v===FormatTypes.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(ie=>JSON.parse(ie.format(v)))});let k="";return v!==FormatTypes.sighash&&(k+="error "),k+=this.name+"("+this.inputs.map(ie=>ie.format(v)).join(v===FormatTypes.full?", ":",")+") ",k.trim()}static from(v){return typeof v=="string"?ErrorFragment.fromString(v):ErrorFragment.fromObject(v)}static fromObject(v){if(ErrorFragment.isErrorFragment(v))return v;v.type!=="error"&&logger5.throwArgumentError("invalid error object","value",v);const k={type:v.type,name:verifyIdentifier(v.name),inputs:v.inputs?v.inputs.map(ParamType.fromObject):[]};return checkForbidden(new ErrorFragment(_constructorGuard3,k))}static fromString(v){let k={type:"error"},ie=v.match(regexParen);return ie||logger5.throwArgumentError("invalid error signature","value",v),k.name=ie[1].trim(),k.name&&verifyIdentifier(k.name),k.inputs=parseParams(ie[2],!1),checkForbidden(ErrorFragment.fromObject(k))}static isErrorFragment(v){return v&&v._isFragment&&v.type==="error"}};function verifyType(v){return v.match(/^uint($|[^1-9])/)?v="uint256"+v.substring(4):v.match(/^int($|[^1-9])/)&&(v="int256"+v.substring(3)),v}var regexIdentifier=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function verifyIdentifier(v){return(!v||!v.match(regexIdentifier))&&logger5.throwArgumentError(`invalid identifier "${v}"`,"value",v),v}var regexParen=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function splitNesting(v){v=v.trim();let k=[],ie="",ae=0;for(let ce=0;cethis.wordSize&&logger6.throwError("value out-of-bounds",Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:k.length}),k.length%this.wordSize&&(k=concat$4([this._padding.slice(k.length%this.wordSize),k])),k}writeValue(v){return this._writeData(this._getValue(v))}writeUpdatableValue(){const v=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,k=>{this._data[v]=this._getValue(k)}}},Reader=class{constructor(v,k,ie,ae){defineReadOnly(this,"_data",arrayify(v)),defineReadOnly(this,"wordSize",k||32),defineReadOnly(this,"_coerceFunc",ie),defineReadOnly(this,"allowLoose",ae),this._offset=0}get data(){return hexlify(this._data)}get consumed(){return this._offset}static coerce(v,k){let ie=v.match("^u?int([0-9]+)$");return ie&&parseInt(ie[1])<=48&&(k=k.toNumber()),k}coerce(v,k){return this._coerceFunc?this._coerceFunc(v,k):Reader.coerce(v,k)}_peekBytes(v,k,ie){let ae=Math.ceil(k/this.wordSize)*this.wordSize;return this._offset+ae>this._data.length&&(this.allowLoose&&ie&&this._offset+k<=this._data.length?ae=k:logger6.throwError("data out-of-bounds",Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+ae})),this._data.slice(this._offset,this._offset+ae)}subReader(v){return new Reader(this._data.slice(this._offset+v),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(v,k){let ie=this._peekBytes(0,v,!!k);return this._offset+=ie.length,ie.slice(0,v)}readValue(){return BigNumber.from(this.readBytes(this.wordSize))}},import_js_sha3=__toESM(require_sha3());function keccak256(v){return"0x"+import_js_sha3.default.keccak_256(arrayify(v))}var lib_exports={};__export$1(lib_exports,{decode:()=>decode,encode:()=>encode});var version6="rlp/5.7.0",logger7=new Logger(version6);function arrayifyInteger(v){const k=[];for(;v;)k.unshift(v&255),v>>=8;return k}function unarrayifyInteger(v,k,ie){let ae=0;for(let ce=0;cek+1+ae&&logger7.throwError("child data too short",Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+ae,result:ce}}function _decode(v,k){if(v.length===0&&logger7.throwError("data too short",Logger.errors.BUFFER_OVERRUN,{}),v[k]>=248){const ie=v[k]-247;k+1+ie>v.length&&logger7.throwError("data short segment too short",Logger.errors.BUFFER_OVERRUN,{});const ae=unarrayifyInteger(v,k+1,ie);return k+1+ie+ae>v.length&&logger7.throwError("data long segment too short",Logger.errors.BUFFER_OVERRUN,{}),_decodeChildren(v,k,k+1+ie,ie+ae)}else if(v[k]>=192){const ie=v[k]-192;return k+1+ie>v.length&&logger7.throwError("data array too short",Logger.errors.BUFFER_OVERRUN,{}),_decodeChildren(v,k,k+1,ie)}else if(v[k]>=184){const ie=v[k]-183;k+1+ie>v.length&&logger7.throwError("data array too short",Logger.errors.BUFFER_OVERRUN,{});const ae=unarrayifyInteger(v,k+1,ie);k+1+ie+ae>v.length&&logger7.throwError("data array too short",Logger.errors.BUFFER_OVERRUN,{});const ce=hexlify(v.slice(k+1+ie,k+1+ie+ae));return{consumed:1+ie+ae,result:ce}}else if(v[k]>=128){const ie=v[k]-128;k+1+ie>v.length&&logger7.throwError("data too short",Logger.errors.BUFFER_OVERRUN,{});const ae=hexlify(v.slice(k+1,k+1+ie));return{consumed:1+ie,result:ae}}return{consumed:1,result:hexlify(v[k])}}function decode(v){const k=arrayify(v),ie=_decode(k,0);return ie.consumed!==k.length&&logger7.throwArgumentError("invalid rlp data","data",v),ie.result}var version7="address/5.7.0",logger8=new Logger(version7);function getChecksumAddress(v){isHexString(v,20)||logger8.throwArgumentError("invalid address","address",v),v=v.toLowerCase();const k=v.substring(2).split(""),ie=new Uint8Array(40);for(let ce=0;ce<40;ce++)ie[ce]=k[ce].charCodeAt(0);const ae=arrayify(keccak256(ie));for(let ce=0;ce<40;ce+=2)ae[ce>>1]>>4>=8&&(k[ce]=k[ce].toUpperCase()),(ae[ce>>1]&15)>=8&&(k[ce+1]=k[ce+1].toUpperCase());return"0x"+k.join("")}var MAX_SAFE_INTEGER=9007199254740991;function log10(v){return Math.log10?Math.log10(v):Math.log(v)/Math.LN10}var ibanLookup={};for(let v=0;v<10;v++)ibanLookup[String(v)]=String(v);for(let v=0;v<26;v++)ibanLookup[String.fromCharCode(65+v)]=String(10+v);var safeDigits=Math.floor(log10(MAX_SAFE_INTEGER));function ibanChecksum(v){v=v.toUpperCase(),v=v.substring(4)+v.substring(0,2)+"00";let k=v.split("").map(ae=>ibanLookup[ae]).join("");for(;k.length>=safeDigits;){let ae=k.substring(0,safeDigits);k=parseInt(ae,10)%97+k.substring(ae.length)}let ie=String(98-parseInt(k,10)%97);for(;ie.length<2;)ie="0"+ie;return ie}function getAddress(v){let k=null;if(typeof v!="string"&&logger8.throwArgumentError("invalid address","address",v),v.match(/^(0x)?[0-9a-fA-F]{40}$/))v.substring(0,2)!=="0x"&&(v="0x"+v),k=getChecksumAddress(v),v.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&k!==v&&logger8.throwArgumentError("bad address checksum","address",v);else if(v.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(v.substring(2,4)!==ibanChecksum(v)&&logger8.throwArgumentError("bad icap checksum","address",v),k=_base36To16(v.substring(4));k.length<40;)k="0"+k;k=getChecksumAddress("0x"+k)}else logger8.throwArgumentError("invalid address","address",v);return k}function isAddress(v){try{return getAddress(v),!0}catch{}return!1}function getIcapAddress(v){let k=_base16To36(getAddress(v).substring(2)).toUpperCase();for(;k.length<30;)k="0"+k;return"XE"+ibanChecksum("XE00"+k)+k}function getContractAddress(v){let k=null;try{k=getAddress(v.from)}catch{logger8.throwArgumentError("missing from address","transaction",v)}const ie=stripZeros(arrayify(BigNumber.from(v.nonce).toHexString()));return getAddress(hexDataSlice(keccak256(encode([k,ie])),12))}function getCreate2Address(v,k,ie){return hexDataLength(k)!==32&&logger8.throwArgumentError("salt must be 32 bytes","salt",k),hexDataLength(ie)!==32&&logger8.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",ie),getAddress(hexDataSlice(keccak256(concat$4(["0xff",getAddress(v),k,ie])),12))}var AddressCoder=class extends Coder{constructor(v){super("address","address",v,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(v,k){try{k=getAddress(k)}catch(ie){this._throwError(ie.message,k)}return v.writeValue(k)}decode(v){return getAddress(hexZeroPad(v.readValue().toHexString(),20))}},AnonymousCoder=class extends Coder{constructor(v){super(v.name,v.type,void 0,v.dynamic),this.coder=v}defaultValue(){return this.coder.defaultValue()}encode(v,k){return this.coder.encode(v,k)}decode(v){return this.coder.decode(v)}},logger9=new Logger(version5);function pack$1(v,k,ie){let ae=null;if(Array.isArray(ie))ae=ie;else if(ie&&typeof ie=="object"){let pe={};ae=k.map(ye=>{const me=ye.localName;return me||logger9.throwError("cannot encode object for signature with missing names",Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:ye,value:ie}),pe[me]&&logger9.throwError("cannot encode object for signature with duplicate names",Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:ye,value:ie}),pe[me]=!0,ie[me]})}else logger9.throwArgumentError("invalid tuple value","tuple",ie);k.length!==ae.length&&logger9.throwArgumentError("types/value length mismatch","tuple",ie);let ce=new Writer(v.wordSize),fe=new Writer(v.wordSize),le=[];k.forEach((pe,ye)=>{let me=ae[ye];if(pe.dynamic){let Ee=fe.length;pe.encode(fe,me);let cr=ce.writeUpdatableValue();le.push(Br=>{cr(Br+Ee)})}else pe.encode(ce,me)}),le.forEach(pe=>{pe(ce.length)});let ve=v.appendWriter(ce);return ve+=v.appendWriter(fe),ve}function unpack$1(v,k){let ie=[],ae=v.subReader(0);k.forEach(fe=>{let le=null;if(fe.dynamic){let ve=v.readValue(),pe=ae.subReader(ve.toNumber());try{le=fe.decode(pe)}catch(ye){if(ye.code===Logger.errors.BUFFER_OVERRUN)throw ye;le=ye,le.baseType=fe.name,le.name=fe.localName,le.type=fe.type}}else try{le=fe.decode(v)}catch(ve){if(ve.code===Logger.errors.BUFFER_OVERRUN)throw ve;le=ve,le.baseType=fe.name,le.name=fe.localName,le.type=fe.type}le!=null&&ie.push(le)});const ce=k.reduce((fe,le)=>{const ve=le.localName;return ve&&(fe[ve]||(fe[ve]=0),fe[ve]++),fe},{});k.forEach((fe,le)=>{let ve=fe.localName;if(!ve||ce[ve]!==1||(ve==="length"&&(ve="_length"),ie[ve]!=null))return;const pe=ie[le];pe instanceof Error?Object.defineProperty(ie,ve,{enumerable:!0,get:()=>{throw pe}}):ie[ve]=pe});for(let fe=0;fe{throw le}})}return Object.freeze(ie)}var ArrayCoder=class extends Coder{constructor(v,k,ie){const ae=v.type+"["+(k>=0?k:"")+"]",ce=k===-1||v.dynamic;super("array",ae,ie,ce),this.coder=v,this.length=k}defaultValue(){const v=this.coder.defaultValue(),k=[];for(let ie=0;iev._data.length&&logger9.throwError("insufficient data length",Logger.errors.BUFFER_OVERRUN,{length:v._data.length,count:k}));let ie=[];for(let ae=0;aeAddressZero,EtherSymbol:()=>EtherSymbol,HashZero:()=>HashZero,MaxInt256:()=>MaxInt256,MaxUint256:()=>MaxUint256,MinInt256:()=>MinInt256,NegativeOne:()=>NegativeOne2,One:()=>One,Two:()=>Two,WeiPerEther:()=>WeiPerEther,Zero:()=>Zero2});var AddressZero="0x0000000000000000000000000000000000000000",NegativeOne2=BigNumber.from(-1),Zero2=BigNumber.from(0),One=BigNumber.from(1),Two=BigNumber.from(2),WeiPerEther=BigNumber.from("1000000000000000000"),MaxUint256=BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),MinInt256=BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),MaxInt256=BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),HashZero="0x0000000000000000000000000000000000000000000000000000000000000000",EtherSymbol="\u039E",NumberCoder=class extends Coder{constructor(v,k,ie){const ae=(k?"int":"uint")+v*8;super(ae,ae,ie,!1),this.size=v,this.signed=k}defaultValue(){return 0}encode(v,k){let ie=BigNumber.from(k),ae=MaxUint256.mask(v.wordSize*8);if(this.signed){let ce=ae.mask(this.size*8-1);(ie.gt(ce)||ie.lt(ce.add(One).mul(NegativeOne2)))&&this._throwError("value out-of-bounds",k)}else(ie.lt(Zero2)||ie.gt(ae.mask(this.size*8)))&&this._throwError("value out-of-bounds",k);return ie=ie.toTwos(this.size*8).mask(this.size*8),this.signed&&(ie=ie.fromTwos(this.size*8).toTwos(8*v.wordSize)),v.writeValue(ie)}decode(v){let k=v.readValue().mask(this.size*8);return this.signed&&(k=k.fromTwos(this.size*8)),v.coerce(this.name,k)}},version8="strings/5.7.0",logger10=new Logger(version8),UnicodeNormalizationForm;(function(v){v.current="",v.NFC="NFC",v.NFD="NFD",v.NFKC="NFKC",v.NFKD="NFKD"})(UnicodeNormalizationForm||(UnicodeNormalizationForm={}));var Utf8ErrorReason;(function(v){v.UNEXPECTED_CONTINUE="unexpected continuation byte",v.BAD_PREFIX="bad codepoint prefix",v.OVERRUN="string overrun",v.MISSING_CONTINUE="missing continuation byte",v.OUT_OF_RANGE="out of UTF-8 range",v.UTF16_SURROGATE="UTF-16 surrogate",v.OVERLONG="overlong representation"})(Utf8ErrorReason||(Utf8ErrorReason={}));function errorFunc(v,k,ie,ae,ce){return logger10.throwArgumentError(`invalid codepoint at offset ${k}; ${v}`,"bytes",ie)}function ignoreFunc(v,k,ie,ae,ce){if(v===Utf8ErrorReason.BAD_PREFIX||v===Utf8ErrorReason.UNEXPECTED_CONTINUE){let fe=0;for(let le=k+1;le>6===2;le++)fe++;return fe}return v===Utf8ErrorReason.OVERRUN?ie.length-k-1:0}function replaceFunc(v,k,ie,ae,ce){return v===Utf8ErrorReason.OVERLONG?(ae.push(ce),0):(ae.push(65533),ignoreFunc(v,k,ie))}var Utf8ErrorFuncs=Object.freeze({error:errorFunc,ignore:ignoreFunc,replace:replaceFunc});function getUtf8CodePoints(v,k){k==null&&(k=Utf8ErrorFuncs.error),v=arrayify(v);const ie=[];let ae=0;for(;ae>7===0){ie.push(ce);continue}let fe=null,le=null;if((ce&224)===192)fe=1,le=127;else if((ce&240)===224)fe=2,le=2047;else if((ce&248)===240)fe=3,le=65535;else{(ce&192)===128?ae+=k(Utf8ErrorReason.UNEXPECTED_CONTINUE,ae-1,v,ie):ae+=k(Utf8ErrorReason.BAD_PREFIX,ae-1,v,ie);continue}if(ae-1+fe>=v.length){ae+=k(Utf8ErrorReason.OVERRUN,ae-1,v,ie);continue}let ve=ce&(1<<8-fe-1)-1;for(let pe=0;pe1114111){ae+=k(Utf8ErrorReason.OUT_OF_RANGE,ae-1-fe,v,ie,ve);continue}if(ve>=55296&&ve<=57343){ae+=k(Utf8ErrorReason.UTF16_SURROGATE,ae-1-fe,v,ie,ve);continue}if(ve<=le){ae+=k(Utf8ErrorReason.OVERLONG,ae-1-fe,v,ie,ve);continue}ie.push(ve)}}return ie}function toUtf8Bytes(v,k=UnicodeNormalizationForm.current){k!=UnicodeNormalizationForm.current&&(logger10.checkNormalize(),v=v.normalize(k));let ie=[];for(let ae=0;ae>6|192),ie.push(ce&63|128);else if((ce&64512)==55296){ae++;const fe=v.charCodeAt(ae);if(ae>=v.length||(fe&64512)!==56320)throw new Error("invalid utf-8 string");const le=65536+((ce&1023)<<10)+(fe&1023);ie.push(le>>18|240),ie.push(le>>12&63|128),ie.push(le>>6&63|128),ie.push(le&63|128)}else ie.push(ce>>12|224),ie.push(ce>>6&63|128),ie.push(ce&63|128)}return arrayify(ie)}function escapeChar(v){const k="0000"+v.toString(16);return"\\u"+k.substring(k.length-4)}function _toEscapedUtf8String(v,k){return'"'+getUtf8CodePoints(v,k).map(ie=>{if(ie<256){switch(ie){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(ie>=32&&ie<127)return String.fromCharCode(ie)}return ie<=65535?escapeChar(ie):(ie-=65536,escapeChar((ie>>10&1023)+55296)+escapeChar((ie&1023)+56320))}).join("")+'"'}function _toUtf8String(v){return v.map(k=>k<=65535?String.fromCharCode(k):(k-=65536,String.fromCharCode((k>>10&1023)+55296,(k&1023)+56320))).join("")}function toUtf8String(v,k){return _toUtf8String(getUtf8CodePoints(v,k))}function toUtf8CodePoints(v,k=UnicodeNormalizationForm.current){return getUtf8CodePoints(toUtf8Bytes(v,k))}function formatBytes32String(v){const k=toUtf8Bytes(v);if(k.length>31)throw new Error("bytes32 string must be less than 32 bytes");return hexlify(concat$4([k,HashZero]).slice(0,32))}function parseBytes32String(v){const k=arrayify(v);if(k.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(k[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let ie=31;for(;k[ie-1]===0;)ie--;return toUtf8String(k.slice(0,ie))}function bytes2(v){if(v.length%4!==0)throw new Error("bad data");let k=[];for(let ie=0;ie{let fe=ce.split(":");ie+=parseInt(fe[0],16),ae[ie]=k(fe[1])}),ae}function createRangeTable(v){let k=0;return v.split(",").map(ie=>{let ae=ie.split("-");ae.length===1?ae[1]="0":ae[1]===""&&(ae[1]="1");let ce=k+parseInt(ae[0],16);return k=parseInt(ae[1],16),{l:ce,h:k}})}function matchMap(v,k){let ie=0;for(let ae=0;ae=ie&&v<=ie+ce.h&&(v-ie)%(ce.d||1)===0){if(ce.e&&ce.e.indexOf(v-ie)!==-1)continue;return ce}}return null}var Table_A_1_ranges=createRangeTable("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),Table_B_1_flags="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(v=>parseInt(v,16)),Table_B_2_ranges=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],Table_B_2_lut_abs=createTable("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),Table_B_2_lut_rel=createTable("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),Table_B_2_complex=createTable("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",bytes2),Table_C_ranges=createRangeTable("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function flatten(v){return v.reduce((k,ie)=>(ie.forEach(ae=>{k.push(ae)}),k),[])}function _nameprepTableA1(v){return!!matchMap(v,Table_A_1_ranges)}function _nameprepTableB2(v){let k=matchMap(v,Table_B_2_ranges);if(k)return[v+k.s];let ie=Table_B_2_lut_abs[v];if(ie)return ie;let ae=Table_B_2_lut_rel[v];if(ae)return[v+ae[0]];let ce=Table_B_2_complex[v];return ce||null}function _nameprepTableC(v){return!!matchMap(v,Table_C_ranges)}function nameprep(v){if(v.match(/^[a-z0-9-]*$/i)&&v.length<=59)return v.toLowerCase();let k=toUtf8CodePoints(v);k=flatten(k.map(ae=>{if(Table_B_1_flags.indexOf(ae)>=0)return[];if(ae>=65024&&ae<=65039)return[];let ce=_nameprepTableB2(ae);return ce||[ae]})),k=toUtf8CodePoints(_toUtf8String(k),UnicodeNormalizationForm.NFKC),k.forEach(ae=>{if(_nameprepTableC(ae))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),k.forEach(ae=>{if(_nameprepTableA1(ae))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});let ie=_toUtf8String(k);if(ie.substring(0,1)==="-"||ie.substring(2,4)==="--"||ie.substring(ie.length-1)==="-")throw new Error("invalid hyphen");return ie}var StringCoder=class extends DynamicBytesCoder{constructor(v){super("string",v)}defaultValue(){return""}encode(v,k){return super.encode(v,toUtf8Bytes(k))}decode(v){return toUtf8String(super.decode(v))}},TupleCoder=class extends Coder{constructor(v,k){let ie=!1;const ae=[];v.forEach(fe=>{fe.dynamic&&(ie=!0),ae.push(fe.type)});const ce="tuple("+ae.join(",")+")";super("tuple",ce,k,ie),this.coders=v}defaultValue(){const v=[];this.coders.forEach(ie=>{v.push(ie.defaultValue())});const k=this.coders.reduce((ie,ae)=>{const ce=ae.localName;return ce&&(ie[ce]||(ie[ce]=0),ie[ce]++),ie},{});return this.coders.forEach((ie,ae)=>{let ce=ie.localName;!ce||k[ce]!==1||(ce==="length"&&(ce="_length"),v[ce]==null&&(v[ce]=v[ae]))}),Object.freeze(v)}encode(v,k){return pack$1(v,this.coders,k)}decode(v){return v.coerce(this.name,unpack$1(v,this.coders))}},logger11=new Logger(version5),paramTypeBytes=new RegExp(/^bytes([0-9]*)$/),paramTypeNumber=new RegExp(/^(u?int)([0-9]*)$/),AbiCoder=class{constructor(v){defineReadOnly(this,"coerceFunc",v||null)}_getCoder(v){switch(v.baseType){case"address":return new AddressCoder(v.name);case"bool":return new BooleanCoder(v.name);case"string":return new StringCoder(v.name);case"bytes":return new BytesCoder(v.name);case"array":return new ArrayCoder(this._getCoder(v.arrayChildren),v.arrayLength,v.name);case"tuple":return new TupleCoder((v.components||[]).map(ie=>this._getCoder(ie)),v.name);case"":return new NullCoder(v.name)}let k=v.type.match(paramTypeNumber);if(k){let ie=parseInt(k[2]||"256");return(ie===0||ie>256||ie%8!==0)&&logger11.throwArgumentError("invalid "+k[1]+" bit length","param",v),new NumberCoder(ie/8,k[1]==="int",v.name)}if(k=v.type.match(paramTypeBytes),k){let ie=parseInt(k[1]);return(ie===0||ie>32)&&logger11.throwArgumentError("invalid bytes length","param",v),new FixedBytesCoder(ie,v.name)}return logger11.throwArgumentError("invalid type","type",v.type)}_getWordSize(){return 32}_getReader(v,k){return new Reader(v,this._getWordSize(),this.coerceFunc,k)}_getWriter(){return new Writer(this._getWordSize())}getDefaultValue(v){const k=v.map(ae=>this._getCoder(ParamType.from(ae)));return new TupleCoder(k,"_").defaultValue()}encode(v,k){v.length!==k.length&&logger11.throwError("types/values length mismatch",Logger.errors.INVALID_ARGUMENT,{count:{types:v.length,values:k.length},value:{types:v,values:k}});const ie=v.map(fe=>this._getCoder(ParamType.from(fe))),ae=new TupleCoder(ie,"_"),ce=this._getWriter();return ae.encode(ce,k),ce.data}decode(v,k,ie){const ae=v.map(fe=>this._getCoder(ParamType.from(fe)));return new TupleCoder(ae,"_").decode(this._getReader(arrayify(k),ie))}},defaultAbiCoder=new AbiCoder;function id$5(v){return keccak256(toUtf8Bytes(v))}var version9="hash/5.7.0",lib_exports3={};__export$1(lib_exports3,{decode:()=>decode2,encode:()=>encode2});function decode2(v){v=atob(v);const k=[];for(let ie=0;ie0&&Array.isArray(ve)?ce(ve,le-1):ie.push(ve)})};return ce(v,k),ie}function fromEntries(v){const k={};for(let ie=0;ie>--pe&1}const Ee=31,cr=Math.pow(2,Ee),Br=cr>>>1,$r=Br>>1,Pr=cr-1;let Or=0;for(let Vr=0;Vr1;){let Yt=Gr+Ur>>>1;Vr>>1|me(),Qr=Qr<<1^Br,vn=(vn^Br)<<1|Br|1;jr=Qr,Mr=1+vn-Qr}let Lr=ae-4;return ur.map(Vr=>{switch(Vr-Lr){case 3:return Lr+65792+(v[ve++]<<16|v[ve++]<<8|v[ve++]);case 2:return Lr+256+(v[ve++]<<8|v[ve++]);case 1:return Lr+v[ve++];default:return Vr-1}})}function read_payload(v){let k=0;return()=>v[k++]}function read_compressed_payload(v){return read_payload(decode_arithmetic(v))}function signed(v){return v&1?~v>>1:v>>1}function read_counts(v,k){let ie=Array(v);for(let ae=0;aek[le]):ie}function read_mapped_map(v){let k=[];for(;;){let ie=v();if(ie==0)break;k.push(read_linear_table(ie,v))}for(;;){let ie=v()-1;if(ie<0)break;k.push(read_replacement_table(ie,v))}return fromEntries(flat(k))}function read_zero_terminated_array(v){let k=[];for(;;){let ie=v();if(ie==0)break;k.push(ie)}return k}function read_transposed(v,k,ie){let ae=Array(v).fill(void 0).map(()=>[]);for(let ce=0;ceae[le].push(fe));return ae}function read_linear_table(v,k){let ie=1+k(),ae=k(),ce=read_zero_terminated_array(k),fe=read_transposed(ce.length,1+v,k);return flat(fe.map((le,ve)=>{const pe=le[0],ye=le.slice(1);return Array(ce[ve]).fill(void 0).map((me,Ee)=>{let cr=Ee*ae;return[pe+Ee*ie,ye.map(Br=>Br+cr)]})}))}function read_replacement_table(v,k){let ie=1+k();return read_transposed(ie,1+v,k).map(ce=>[ce[0],ce.slice(1)])}function read_emoji_trie(v){let k=read_member_array(v).sort((ae,ce)=>ae-ce);return ie();function ie(){let ae=[];for(;;){let ye=read_member_array(v,k);if(ye.length==0)break;ae.push({set:new Set(ye),node:ie()})}ae.sort((ye,me)=>me.set.size-ye.set.size);let ce=v(),fe=ce%3;ce=ce/3|0;let le=!!(ce&1);ce>>=1;let ve=ce==1,pe=ce==2;return{branches:ae,valid:fe,fe0f:le,save:ve,check:pe}}}function getData(){return read_compressed_payload(decode2("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ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h9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}var r=getData(),VALID=new Set(read_member_array(r)),IGNORED=new Set(read_member_array(r)),MAPPED=read_mapped_map(r),EMOJI_ROOT=read_emoji_trie(r),HYPHEN=45,UNDERSCORE=95;function explode_cp(v){return toUtf8CodePoints(v)}function filter_fe0f(v){return v.filter(k=>k!=65039)}function ens_normalize_post_check(v){for(let k of v.split(".")){let ie=explode_cp(k);try{for(let ae=ie.lastIndexOf(UNDERSCORE)-1;ae>=0;ae--)if(ie[ae]!==UNDERSCORE)throw new Error("underscore only allowed at start");if(ie.length>=4&&ie.every(ae=>ae<128)&&ie[2]===HYPHEN&&ie[3]===HYPHEN)throw new Error("invalid label extension")}catch(ae){throw new Error(`Invalid label "${k}": ${ae.message}`)}}return v}function ens_normalize(v){return ens_normalize_post_check(normalize$3(v,filter_fe0f))}function normalize$3(v,k){let ie=explode_cp(v).reverse(),ae=[];for(;ie.length;){let ce=consume_emoji_reversed(ie);if(ce){ae.push(...k(ce));continue}let fe=ie.pop();if(VALID.has(fe)){ae.push(fe);continue}if(IGNORED.has(fe))continue;let le=MAPPED[fe];if(le){ae.push(...le);continue}throw new Error(`Disallowed codepoint: 0x${fe.toString(16).toUpperCase()}`)}return ens_normalize_post_check(nfc(String.fromCodePoint(...ae)))}function nfc(v){return v.normalize("NFC")}function consume_emoji_reversed(v,k){var ie;let ae=EMOJI_ROOT,ce,fe,le=[],ve=v.length;for(k&&(k.length=0);ve;){let pe=v[--ve];if(ae=(ie=ae.branches.find(ye=>ye.set.has(pe)))===null||ie===void 0?void 0:ie.node,!ae)break;if(ae.save)fe=pe;else if(ae.check&&pe===fe)break;le.push(pe),ae.fe0f&&(le.push(65039),ve>0&&v[ve-1]==65039&&ve--),ae.valid&&(ce=le.slice(),ae.valid==2&&ce.splice(1,1),k&&k.push(...v.slice(ve).reverse()),v.length=ve)}return ce}var logger12=new Logger(version9),Zeros=new Uint8Array(32);Zeros.fill(0);function checkComponent(v){if(v.length===0)throw new Error("invalid ENS name; empty component");return v}function ensNameSplit(v){const k=toUtf8Bytes(ens_normalize(v)),ie=[];if(v.length===0)return ie;let ae=0;for(let ce=0;ce=k.length)throw new Error("invalid ENS name; empty component");return ie.push(checkComponent(k.slice(ae))),ie}function isValidName(v){try{return ensNameSplit(v).length!==0}catch{}return!1}function namehash(v){typeof v!="string"&&logger12.throwArgumentError("invalid ENS name; not a string","name",v);let k=Zeros;const ie=ensNameSplit(v);for(;ie.length;)k=keccak256(concat$4([k,keccak256(ie.pop())]));return hexlify(k)}function dnsEncode(v){return hexlify(concat$4(ensNameSplit(v).map(k=>{if(k.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const ie=new Uint8Array(k.length+1);return ie.set(k,1),ie[0]=ie.length-1,ie})))+"00"}var messagePrefix=`Ethereum Signed Message: -`;function hashMessage(v){return typeof v=="string"&&(v=toUtf8Bytes(v)),keccak256(concat$4([toUtf8Bytes(messagePrefix),toUtf8Bytes(String(v.length)),v]))}var __awaiter2$1=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger13=new Logger(version9),padding=new Uint8Array(32);padding.fill(0);var NegativeOne3=BigNumber.from(-1),Zero3=BigNumber.from(0),One2=BigNumber.from(1),MaxUint2562=BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function hexPadRight(v){const k=arrayify(v),ie=k.length%32;return ie?hexConcat([k,padding.slice(ie)]):hexlify(k)}var hexTrue=hexZeroPad(One2.toHexString(),32),hexFalse=hexZeroPad(Zero3.toHexString(),32),domainFieldTypes={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},domainFieldNames=["name","version","chainId","verifyingContract","salt"];function checkString(v){return function(k){return typeof k!="string"&&logger13.throwArgumentError(`invalid domain value for ${JSON.stringify(v)}`,`domain.${v}`,k),k}}var domainChecks={name:checkString("name"),version:checkString("version"),chainId:function(v){try{return BigNumber.from(v).toString()}catch{}return logger13.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",v)},verifyingContract:function(v){try{return getAddress(v).toLowerCase()}catch{}return logger13.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",v)},salt:function(v){try{const k=arrayify(v);if(k.length!==32)throw new Error("bad length");return hexlify(k)}catch{}return logger13.throwArgumentError('invalid domain value "salt"',"domain.salt",v)}};function getBaseEncoder(v){{const k=v.match(/^(u?)int(\d*)$/);if(k){const ie=k[1]==="",ae=parseInt(k[2]||"256");(ae%8!==0||ae>256||k[2]&&k[2]!==String(ae))&&logger13.throwArgumentError("invalid numeric width","type",v);const ce=MaxUint2562.mask(ie?ae-1:ae),fe=ie?ce.add(One2).mul(NegativeOne3):Zero3;return function(le){const ve=BigNumber.from(le);return(ve.lt(fe)||ve.gt(ce))&&logger13.throwArgumentError(`value out-of-bounds for ${v}`,"value",le),hexZeroPad(ve.toTwos(256).toHexString(),32)}}}{const k=v.match(/^bytes(\d+)$/);if(k){const ie=parseInt(k[1]);return(ie===0||ie>32||k[1]!==String(ie))&&logger13.throwArgumentError("invalid bytes width","type",v),function(ae){return arrayify(ae).length!==ie&&logger13.throwArgumentError(`invalid length for ${v}`,"value",ae),hexPadRight(ae)}}}switch(v){case"address":return function(k){return hexZeroPad(getAddress(k),32)};case"bool":return function(k){return k?hexTrue:hexFalse};case"bytes":return function(k){return keccak256(k)};case"string":return function(k){return id$5(k)}}return null}function encodeType(v,k){return`${v}(${k.map(({name:ie,type:ae})=>ae+" "+ie).join(",")})`}var TypedDataEncoder=class{constructor(v){defineReadOnly(this,"types",Object.freeze(deepCopy(v))),defineReadOnly(this,"_encoderCache",{}),defineReadOnly(this,"_types",{});const k={},ie={},ae={};Object.keys(v).forEach(le=>{k[le]={},ie[le]=[],ae[le]={}});for(const le in v){const ve={};v[le].forEach(pe=>{ve[pe.name]&&logger13.throwArgumentError(`duplicate variable name ${JSON.stringify(pe.name)} in ${JSON.stringify(le)}`,"types",v),ve[pe.name]=!0;const ye=pe.type.match(/^([^\x5b]*)(\x5b|$)/)[1];ye===le&&logger13.throwArgumentError(`circular type reference to ${JSON.stringify(ye)}`,"types",v),!getBaseEncoder(ye)&&(ie[ye]||logger13.throwArgumentError(`unknown type ${JSON.stringify(ye)}`,"types",v),ie[ye].push(le),k[le][ye]=!0)})}const ce=Object.keys(ie).filter(le=>ie[le].length===0);ce.length===0?logger13.throwArgumentError("missing primary type","types",v):ce.length>1&&logger13.throwArgumentError(`ambiguous primary types or unused types: ${ce.map(le=>JSON.stringify(le)).join(", ")}`,"types",v),defineReadOnly(this,"primaryType",ce[0]);function fe(le,ve){ve[le]&&logger13.throwArgumentError(`circular type reference to ${JSON.stringify(le)}`,"types",v),ve[le]=!0,Object.keys(k[le]).forEach(pe=>{!ie[pe]||(fe(pe,ve),Object.keys(ve).forEach(ye=>{ae[ye][pe]=!0}))}),delete ve[le]}fe(this.primaryType,{});for(const le in ae){const ve=Object.keys(ae[le]);ve.sort(),this._types[le]=encodeType(le,v[le])+ve.map(pe=>encodeType(pe,v[pe])).join("")}}getEncoder(v){let k=this._encoderCache[v];return k||(k=this._encoderCache[v]=this._getEncoder(v)),k}_getEncoder(v){{const ae=getBaseEncoder(v);if(ae)return ae}const k=v.match(/^(.*)(\x5b(\d*)\x5d)$/);if(k){const ae=k[1],ce=this.getEncoder(ae),fe=parseInt(k[3]);return le=>{fe>=0&&le.length!==fe&&logger13.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",le);let ve=le.map(ce);return this._types[ae]&&(ve=ve.map(keccak256)),keccak256(hexConcat(ve))}}const ie=this.types[v];if(ie){const ae=id$5(this._types[v]);return ce=>{const fe=ie.map(({name:le,type:ve})=>{const pe=this.getEncoder(ve)(ce[le]);return this._types[ve]?keccak256(pe):pe});return fe.unshift(ae),hexConcat(fe)}}return logger13.throwArgumentError(`unknown type: ${v}`,"type",v)}encodeType(v){const k=this._types[v];return k||logger13.throwArgumentError(`unknown type: ${JSON.stringify(v)}`,"name",v),k}encodeData(v,k){return this.getEncoder(v)(k)}hashStruct(v,k){return keccak256(this.encodeData(v,k))}encode(v){return this.encodeData(this.primaryType,v)}hash(v){return this.hashStruct(this.primaryType,v)}_visit(v,k,ie){if(getBaseEncoder(v))return ie(v,k);const ae=v.match(/^(.*)(\x5b(\d*)\x5d)$/);if(ae){const fe=ae[1],le=parseInt(ae[3]);return le>=0&&k.length!==le&&logger13.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",k),k.map(ve=>this._visit(fe,ve,ie))}const ce=this.types[v];return ce?ce.reduce((fe,{name:le,type:ve})=>(fe[le]=this._visit(ve,k[le],ie),fe),{}):logger13.throwArgumentError(`unknown type: ${v}`,"type",v)}visit(v,k){return this._visit(this.primaryType,v,k)}static from(v){return new TypedDataEncoder(v)}static getPrimaryType(v){return TypedDataEncoder.from(v).primaryType}static hashStruct(v,k,ie){return TypedDataEncoder.from(k).hashStruct(v,ie)}static hashDomain(v){const k=[];for(const ie in v){const ae=domainFieldTypes[ie];ae||logger13.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(ie)}`,"domain",v),k.push({name:ie,type:ae})}return k.sort((ie,ae)=>domainFieldNames.indexOf(ie.name)-domainFieldNames.indexOf(ae.name)),TypedDataEncoder.hashStruct("EIP712Domain",{EIP712Domain:k},v)}static encode(v,k,ie){return hexConcat(["0x1901",TypedDataEncoder.hashDomain(v),TypedDataEncoder.from(k).hash(ie)])}static hash(v,k,ie){return keccak256(TypedDataEncoder.encode(v,k,ie))}static resolveNames(v,k,ie,ae){return __awaiter2$1(this,void 0,void 0,function*(){v=shallowCopy(v);const ce={};v.verifyingContract&&!isHexString(v.verifyingContract,20)&&(ce[v.verifyingContract]="0x");const fe=TypedDataEncoder.from(k);fe.visit(ie,(le,ve)=>(le==="address"&&!isHexString(ve,20)&&(ce[ve]="0x"),ve));for(const le in ce)ce[le]=yield ae(le);return v.verifyingContract&&ce[v.verifyingContract]&&(v.verifyingContract=ce[v.verifyingContract]),ie=fe.visit(ie,(le,ve)=>le==="address"&&ce[ve]?ce[ve]:ve),{domain:v,value:ie}})}static getPayload(v,k,ie){TypedDataEncoder.hashDomain(v);const ae={},ce=[];domainFieldNames.forEach(ve=>{const pe=v[ve];pe!=null&&(ae[ve]=domainChecks[ve](pe),ce.push({name:ve,type:domainFieldTypes[ve]}))});const fe=TypedDataEncoder.from(k),le=shallowCopy(k);return le.EIP712Domain?logger13.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",k):le.EIP712Domain=ce,fe.encode(ie),{types:le,domain:ae,primaryType:fe.primaryType,message:fe.visit(ie,(ve,pe)=>{if(ve.match(/^bytes(\d*)/))return hexlify(arrayify(pe));if(ve.match(/^u?int/))return BigNumber.from(pe).toString();switch(ve){case"address":return pe.toLowerCase();case"bool":return!!pe;case"string":return typeof pe!="string"&&logger13.throwArgumentError("invalid string","value",pe),pe}return logger13.throwArgumentError("unsupported type","type",ve)})}}},logger14=new Logger(version5),LogDescription=class extends Description{},TransactionDescription=class extends Description{},ErrorDescription=class extends Description{},Indexed=class extends Description{static isIndexed(v){return!!(v&&v._isIndexed)}},BuiltinErrors={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function wrapAccessError(v,k){const ie=new Error(`deferred error during ABI decoding triggered accessing ${v}`);return ie.error=k,ie}var Interface=class{constructor(v){let k=[];typeof v=="string"?k=JSON.parse(v):k=v,defineReadOnly(this,"fragments",k.map(ie=>Fragment.from(ie)).filter(ie=>ie!=null)),defineReadOnly(this,"_abiCoder",getStatic(new.target,"getAbiCoder")()),defineReadOnly(this,"functions",{}),defineReadOnly(this,"errors",{}),defineReadOnly(this,"events",{}),defineReadOnly(this,"structs",{}),this.fragments.forEach(ie=>{let ae=null;switch(ie.type){case"constructor":if(this.deploy){logger14.warn("duplicate definition - constructor");return}defineReadOnly(this,"deploy",ie);return;case"function":ae=this.functions;break;case"event":ae=this.events;break;case"error":ae=this.errors;break;default:return}let ce=ie.format();if(ae[ce]){logger14.warn("duplicate definition - "+ce);return}ae[ce]=ie}),this.deploy||defineReadOnly(this,"deploy",ConstructorFragment.from({payable:!1,type:"constructor"})),defineReadOnly(this,"_isInterface",!0)}format(v){v||(v=FormatTypes.full),v===FormatTypes.sighash&&logger14.throwArgumentError("interface does not support formatting sighash","format",v);const k=this.fragments.map(ie=>ie.format(v));return v===FormatTypes.json?JSON.stringify(k.map(ie=>JSON.parse(ie))):k}static getAbiCoder(){return defaultAbiCoder}static getAddress(v){return getAddress(v)}static getSighash(v){return hexDataSlice(id$5(v.format()),0,4)}static getEventTopic(v){return id$5(v.format())}getFunction(v){if(isHexString(v)){for(const ie in this.functions)if(v===this.getSighash(ie))return this.functions[ie];logger14.throwArgumentError("no matching function","sighash",v)}if(v.indexOf("(")===-1){const ie=v.trim(),ae=Object.keys(this.functions).filter(ce=>ce.split("(")[0]===ie);return ae.length===0?logger14.throwArgumentError("no matching function","name",ie):ae.length>1&&logger14.throwArgumentError("multiple matching functions","name",ie),this.functions[ae[0]]}const k=this.functions[FunctionFragment.fromString(v).format()];return k||logger14.throwArgumentError("no matching function","signature",v),k}getEvent(v){if(isHexString(v)){const ie=v.toLowerCase();for(const ae in this.events)if(ie===this.getEventTopic(ae))return this.events[ae];logger14.throwArgumentError("no matching event","topichash",ie)}if(v.indexOf("(")===-1){const ie=v.trim(),ae=Object.keys(this.events).filter(ce=>ce.split("(")[0]===ie);return ae.length===0?logger14.throwArgumentError("no matching event","name",ie):ae.length>1&&logger14.throwArgumentError("multiple matching events","name",ie),this.events[ae[0]]}const k=this.events[EventFragment.fromString(v).format()];return k||logger14.throwArgumentError("no matching event","signature",v),k}getError(v){if(isHexString(v)){const ie=getStatic(this.constructor,"getSighash");for(const ae in this.errors){const ce=this.errors[ae];if(v===ie(ce))return this.errors[ae]}logger14.throwArgumentError("no matching error","sighash",v)}if(v.indexOf("(")===-1){const ie=v.trim(),ae=Object.keys(this.errors).filter(ce=>ce.split("(")[0]===ie);return ae.length===0?logger14.throwArgumentError("no matching error","name",ie):ae.length>1&&logger14.throwArgumentError("multiple matching errors","name",ie),this.errors[ae[0]]}const k=this.errors[FunctionFragment.fromString(v).format()];return k||logger14.throwArgumentError("no matching error","signature",v),k}getSighash(v){if(typeof v=="string")try{v=this.getFunction(v)}catch(k){try{v=this.getError(v)}catch{throw k}}return getStatic(this.constructor,"getSighash")(v)}getEventTopic(v){return typeof v=="string"&&(v=this.getEvent(v)),getStatic(this.constructor,"getEventTopic")(v)}_decodeParams(v,k){return this._abiCoder.decode(v,k)}_encodeParams(v,k){return this._abiCoder.encode(v,k)}encodeDeploy(v){return this._encodeParams(this.deploy.inputs,v||[])}decodeErrorResult(v,k){typeof v=="string"&&(v=this.getError(v));const ie=arrayify(k);return hexlify(ie.slice(0,4))!==this.getSighash(v)&&logger14.throwArgumentError(`data signature does not match error ${v.name}.`,"data",hexlify(ie)),this._decodeParams(v.inputs,ie.slice(4))}encodeErrorResult(v,k){return typeof v=="string"&&(v=this.getError(v)),hexlify(concat$4([this.getSighash(v),this._encodeParams(v.inputs,k||[])]))}decodeFunctionData(v,k){typeof v=="string"&&(v=this.getFunction(v));const ie=arrayify(k);return hexlify(ie.slice(0,4))!==this.getSighash(v)&&logger14.throwArgumentError(`data signature does not match function ${v.name}.`,"data",hexlify(ie)),this._decodeParams(v.inputs,ie.slice(4))}encodeFunctionData(v,k){return typeof v=="string"&&(v=this.getFunction(v)),hexlify(concat$4([this.getSighash(v),this._encodeParams(v.inputs,k||[])]))}decodeFunctionResult(v,k){typeof v=="string"&&(v=this.getFunction(v));let ie=arrayify(k),ae=null,ce="",fe=null,le=null,ve=null;switch(ie.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(v.outputs,ie)}catch{}break;case 4:{const pe=hexlify(ie.slice(0,4)),ye=BuiltinErrors[pe];if(ye)fe=this._abiCoder.decode(ye.inputs,ie.slice(4)),le=ye.name,ve=ye.signature,ye.reason&&(ae=fe[0]),le==="Error"?ce=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(fe[0])}`:le==="Panic"&&(ce=`; VM Exception while processing transaction: reverted with panic code ${fe[0]}`);else try{const me=this.getError(pe);fe=this._abiCoder.decode(me.inputs,ie.slice(4)),le=me.name,ve=me.format()}catch{}break}}return logger14.throwError("call revert exception"+ce,Logger.errors.CALL_EXCEPTION,{method:v.format(),data:hexlify(k),errorArgs:fe,errorName:le,errorSignature:ve,reason:ae})}encodeFunctionResult(v,k){return typeof v=="string"&&(v=this.getFunction(v)),hexlify(this._abiCoder.encode(v.outputs,k||[]))}encodeFilterTopics(v,k){typeof v=="string"&&(v=this.getEvent(v)),k.length>v.inputs.length&&logger14.throwError("too many arguments for "+v.format(),Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:k});let ie=[];v.anonymous||ie.push(this.getEventTopic(v));const ae=(ce,fe)=>ce.type==="string"?id$5(fe):ce.type==="bytes"?keccak256(hexlify(fe)):(ce.type==="bool"&&typeof fe=="boolean"&&(fe=fe?"0x01":"0x00"),ce.type.match(/^u?int/)&&(fe=BigNumber.from(fe).toHexString()),ce.type==="address"&&this._abiCoder.encode(["address"],[fe]),hexZeroPad(hexlify(fe),32));for(k.forEach((ce,fe)=>{let le=v.inputs[fe];if(!le.indexed){ce!=null&&logger14.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+le.name,ce);return}ce==null?ie.push(null):le.baseType==="array"||le.baseType==="tuple"?logger14.throwArgumentError("filtering with tuples or arrays not supported","contract."+le.name,ce):Array.isArray(ce)?ie.push(ce.map(ve=>ae(le,ve))):ie.push(ae(le,ce))});ie.length&&ie[ie.length-1]===null;)ie.pop();return ie}encodeEventLog(v,k){typeof v=="string"&&(v=this.getEvent(v));const ie=[],ae=[],ce=[];return v.anonymous||ie.push(this.getEventTopic(v)),k.length!==v.inputs.length&&logger14.throwArgumentError("event arguments/values mismatch","values",k),v.inputs.forEach((fe,le)=>{const ve=k[le];if(fe.indexed)if(fe.type==="string")ie.push(id$5(ve));else if(fe.type==="bytes")ie.push(keccak256(ve));else{if(fe.baseType==="tuple"||fe.baseType==="array")throw new Error("not implemented");ie.push(this._abiCoder.encode([fe.type],[ve]))}else ae.push(fe),ce.push(ve)}),{data:this._abiCoder.encode(ae,ce),topics:ie}}decodeEventLog(v,k,ie){if(typeof v=="string"&&(v=this.getEvent(v)),ie!=null&&!v.anonymous){let Ee=this.getEventTopic(v);(!isHexString(ie[0],32)||ie[0].toLowerCase()!==Ee)&&logger14.throwError("fragment/topic mismatch",Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:Ee,value:ie[0]}),ie=ie.slice(1)}let ae=[],ce=[],fe=[];v.inputs.forEach((Ee,cr)=>{Ee.indexed?Ee.type==="string"||Ee.type==="bytes"||Ee.baseType==="tuple"||Ee.baseType==="array"?(ae.push(ParamType.fromObject({type:"bytes32",name:Ee.name})),fe.push(!0)):(ae.push(Ee),fe.push(!1)):(ce.push(Ee),fe.push(!1))});let le=ie!=null?this._abiCoder.decode(ae,concat$4(ie)):null,ve=this._abiCoder.decode(ce,k,!0),pe=[],ye=0,me=0;v.inputs.forEach((Ee,cr)=>{if(Ee.indexed)if(le==null)pe[cr]=new Indexed({_isIndexed:!0,hash:null});else if(fe[cr])pe[cr]=new Indexed({_isIndexed:!0,hash:le[me++]});else try{pe[cr]=le[me++]}catch(Br){pe[cr]=Br}else try{pe[cr]=ve[ye++]}catch(Br){pe[cr]=Br}if(Ee.name&&pe[Ee.name]==null){const Br=pe[cr];Br instanceof Error?Object.defineProperty(pe,Ee.name,{enumerable:!0,get:()=>{throw wrapAccessError(`property ${JSON.stringify(Ee.name)}`,Br)}}):pe[Ee.name]=Br}});for(let Ee=0;Ee{throw wrapAccessError(`index ${Ee}`,cr)}})}return Object.freeze(pe)}parseTransaction(v){let k=this.getFunction(v.data.substring(0,10).toLowerCase());return k?new TransactionDescription({args:this._abiCoder.decode(k.inputs,"0x"+v.data.substring(10)),functionFragment:k,name:k.name,signature:k.format(),sighash:this.getSighash(k),value:BigNumber.from(v.value||"0")}):null}parseLog(v){let k=this.getEvent(v.topics[0]);return!k||k.anonymous?null:new LogDescription({eventFragment:k,name:k.name,signature:k.format(),topic:this.getEventTopic(k),args:this.decodeEventLog(k,v.data,v.topics)})}parseError(v){const k=hexlify(v);let ie=this.getError(k.substring(0,10).toLowerCase());return ie?new ErrorDescription({args:this._abiCoder.decode(ie.inputs,"0x"+k.substring(10)),errorFragment:ie,name:ie.name,signature:ie.format(),sighash:this.getSighash(ie)}):null}static isInterface(v){return!!(v&&v._isInterface)}},version10="abstract-provider/5.7.0",__awaiter3=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger15=new Logger(version10),ForkEvent=class extends Description{static isForkEvent(v){return!!(v&&v._isForkEvent)}},Provider=class{constructor(){logger15.checkAbstract(new.target,Provider),defineReadOnly(this,"_isProvider",!0)}getFeeData(){return __awaiter3(this,void 0,void 0,function*(){const{block:v,gasPrice:k}=yield resolveProperties({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(fe=>null)});let ie=null,ae=null,ce=null;return v&&v.baseFeePerGas&&(ie=v.baseFeePerGas,ce=BigNumber.from("1500000000"),ae=v.baseFeePerGas.mul(2).add(ce)),{lastBaseFeePerGas:ie,maxFeePerGas:ae,maxPriorityFeePerGas:ce,gasPrice:k}})}addListener(v,k){return this.on(v,k)}removeListener(v,k){return this.off(v,k)}static isProvider(v){return!!(v&&v._isProvider)}},version11="abstract-signer/5.7.0",__awaiter4=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger16=new Logger(version11),allowedTransactionKeys=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],forwardErrors=[Logger.errors.INSUFFICIENT_FUNDS,Logger.errors.NONCE_EXPIRED,Logger.errors.REPLACEMENT_UNDERPRICED],Signer=class{constructor(){logger16.checkAbstract(new.target,Signer),defineReadOnly(this,"_isSigner",!0)}getBalance(v){return __awaiter4(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),v)})}getTransactionCount(v){return __awaiter4(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),v)})}estimateGas(v){return __awaiter4(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const k=yield resolveProperties(this.checkTransaction(v));return yield this.provider.estimateGas(k)})}call(v,k){return __awaiter4(this,void 0,void 0,function*(){this._checkProvider("call");const ie=yield resolveProperties(this.checkTransaction(v));return yield this.provider.call(ie,k)})}sendTransaction(v){return __awaiter4(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const k=yield this.populateTransaction(v),ie=yield this.signTransaction(k);return yield this.provider.sendTransaction(ie)})}getChainId(){return __awaiter4(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return __awaiter4(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return __awaiter4(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(v){return __awaiter4(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(v)})}checkTransaction(v){for(const ie in v)allowedTransactionKeys.indexOf(ie)===-1&&logger16.throwArgumentError("invalid transaction key: "+ie,"transaction",v);const k=shallowCopy(v);return k.from==null?k.from=this.getAddress():k.from=Promise.all([Promise.resolve(k.from),this.getAddress()]).then(ie=>(ie[0].toLowerCase()!==ie[1].toLowerCase()&&logger16.throwArgumentError("from address mismatch","transaction",v),ie[0])),k}populateTransaction(v){return __awaiter4(this,void 0,void 0,function*(){const k=yield resolveProperties(this.checkTransaction(v));k.to!=null&&(k.to=Promise.resolve(k.to).then(ae=>__awaiter4(this,void 0,void 0,function*(){if(ae==null)return null;const ce=yield this.resolveName(ae);return ce==null&&logger16.throwArgumentError("provided ENS name resolves to null","tx.to",ae),ce})),k.to.catch(ae=>{}));const ie=k.maxFeePerGas!=null||k.maxPriorityFeePerGas!=null;if(k.gasPrice!=null&&(k.type===2||ie)?logger16.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",v):(k.type===0||k.type===1)&&ie&&logger16.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",v),(k.type===2||k.type==null)&&k.maxFeePerGas!=null&&k.maxPriorityFeePerGas!=null)k.type=2;else if(k.type===0||k.type===1)k.gasPrice==null&&(k.gasPrice=this.getGasPrice());else{const ae=yield this.getFeeData();if(k.type==null)if(ae.maxFeePerGas!=null&&ae.maxPriorityFeePerGas!=null)if(k.type=2,k.gasPrice!=null){const ce=k.gasPrice;delete k.gasPrice,k.maxFeePerGas=ce,k.maxPriorityFeePerGas=ce}else k.maxFeePerGas==null&&(k.maxFeePerGas=ae.maxFeePerGas),k.maxPriorityFeePerGas==null&&(k.maxPriorityFeePerGas=ae.maxPriorityFeePerGas);else ae.gasPrice!=null?(ie&&logger16.throwError("network does not support EIP-1559",Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),k.gasPrice==null&&(k.gasPrice=ae.gasPrice),k.type=0):logger16.throwError("failed to get consistent fee data",Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else k.type===2&&(k.maxFeePerGas==null&&(k.maxFeePerGas=ae.maxFeePerGas),k.maxPriorityFeePerGas==null&&(k.maxPriorityFeePerGas=ae.maxPriorityFeePerGas))}return k.nonce==null&&(k.nonce=this.getTransactionCount("pending")),k.gasLimit==null&&(k.gasLimit=this.estimateGas(k).catch(ae=>{if(forwardErrors.indexOf(ae.code)>=0)throw ae;return logger16.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:ae,tx:k})})),k.chainId==null?k.chainId=this.getChainId():k.chainId=Promise.all([Promise.resolve(k.chainId),this.getChainId()]).then(ae=>(ae[1]!==0&&ae[0]!==ae[1]&&logger16.throwArgumentError("chainId address mismatch","transaction",v),ae[0])),yield resolveProperties(k)})}_checkProvider(v){this.provider||logger16.throwError("missing provider",Logger.errors.UNSUPPORTED_OPERATION,{operation:v||"_checkProvider"})}static isSigner(v){return!!(v&&v._isSigner)}},VoidSigner=class extends Signer{constructor(v,k){super(),defineReadOnly(this,"address",v),defineReadOnly(this,"provider",k||null)}getAddress(){return Promise.resolve(this.address)}_fail(v,k){return Promise.resolve().then(()=>{logger16.throwError(v,Logger.errors.UNSUPPORTED_OPERATION,{operation:k})})}signMessage(v){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(v){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(v,k,ie){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(v){return new VoidSigner(this.address,v)}},import_bn2=__toESM(require_bn$1()),import_hash2=__toESM(require_hash());function createCommonjsModule(v,k,ie){return ie={path:k,exports:{},require:function(ae,ce){return commonjsRequire(ae,ce==null?ie.path:ce)}},v(ie,ie.exports),ie.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var minimalisticAssert=assert;function assert(v,k){if(!v)throw new Error(k||"Assertion failed")}assert.equal=function v(k,ie,ae){if(k!=ie)throw new Error(ae||"Assertion failed: "+k+" != "+ie)};var utils_1=createCommonjsModule(function(v,k){var ie=k;function ae(le,ve){if(Array.isArray(le))return le.slice();if(!le)return[];var pe=[];if(typeof le!="string"){for(var ye=0;ye>8,cr=me&255;Ee?pe.push(Ee,cr):pe.push(cr)}return pe}ie.toArray=ae;function ce(le){return le.length===1?"0"+le:le}ie.zero2=ce;function fe(le){for(var ve="",pe=0;pe(cr>>1)-1?Pr=(cr>>1)-Or:Pr=Or,Br.isubn(Pr)):Pr=0,Ee[$r]=Pr,Br.iushrn(1)}return Ee}ie.getNAF=ae;function ce(pe,ye){var me=[[],[]];pe=pe.clone(),ye=ye.clone();for(var Ee=0,cr=0,Br;pe.cmpn(-Ee)>0||ye.cmpn(-cr)>0;){var $r=pe.andln(3)+Ee&3,Pr=ye.andln(3)+cr&3;$r===3&&($r=-1),Pr===3&&(Pr=-1);var Or;($r&1)===0?Or=0:(Br=pe.andln(7)+Ee&7,(Br===3||Br===5)&&Pr===2?Or=-$r:Or=$r),me[0].push(Or);var ur;(Pr&1)===0?ur=0:(Br=ye.andln(7)+cr&7,(Br===3||Br===5)&&$r===2?ur=-Pr:ur=Pr),me[1].push(ur),2*Ee===Or+1&&(Ee=1-Ee),2*cr===ur+1&&(cr=1-cr),pe.iushrn(1),ye.iushrn(1)}return me}ie.getJSF=ce;function fe(pe,ye,me){var Ee="_"+ye;pe.prototype[ye]=function(){return this[Ee]!==void 0?this[Ee]:this[Ee]=me.call(this)}}ie.cachedProperty=fe;function le(pe){return typeof pe=="string"?ie.toArray(pe,"hex"):pe}ie.parseBytes=le;function ve(pe){return new import_bn2.default(pe,"hex","le")}ie.intFromLE=ve}),getNAF=utils_1$1.getNAF,getJSF=utils_1$1.getJSF,assert$1=utils_1$1.assert;function BaseCurve(v,k){this.type=v,this.p=new import_bn2.default(k.p,16),this.red=k.prime?import_bn2.default.red(k.prime):import_bn2.default.mont(this.p),this.zero=new import_bn2.default(0).toRed(this.red),this.one=new import_bn2.default(1).toRed(this.red),this.two=new import_bn2.default(2).toRed(this.red),this.n=k.n&&new import_bn2.default(k.n,16),this.g=k.g&&this.pointFromJSON(k.g,k.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var ie=this.n&&this.p.div(this.n);!ie||ie.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base=BaseCurve;BaseCurve.prototype.point=function v(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function v(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function v(k,ie){assert$1(k.precomputed);var ae=k._getDoubles(),ce=getNAF(ie,1,this._bitLength),fe=(1<=ve;ye--)pe=(pe<<1)+ce[ye];le.push(pe)}for(var me=this.jpoint(null,null,null),Ee=this.jpoint(null,null,null),cr=fe;cr>0;cr--){for(ve=0;ve=0;pe--){for(var ye=0;pe>=0&&le[pe]===0;pe--)ye++;if(pe>=0&&ye++,ve=ve.dblp(ye),pe<0)break;var me=le[pe];assert$1(me!==0),k.type==="affine"?me>0?ve=ve.mixedAdd(fe[me-1>>1]):ve=ve.mixedAdd(fe[-me-1>>1].neg()):me>0?ve=ve.add(fe[me-1>>1]):ve=ve.add(fe[-me-1>>1].neg())}return k.type==="affine"?ve.toP():ve};BaseCurve.prototype._wnafMulAdd=function v(k,ie,ae,ce,fe){var le=this._wnafT1,ve=this._wnafT2,pe=this._wnafT3,ye=0,me,Ee,cr;for(me=0;me=1;me-=2){var $r=me-1,Pr=me;if(le[$r]!==1||le[Pr]!==1){pe[$r]=getNAF(ae[$r],le[$r],this._bitLength),pe[Pr]=getNAF(ae[Pr],le[Pr],this._bitLength),ye=Math.max(pe[$r].length,ye),ye=Math.max(pe[Pr].length,ye);continue}var Or=[ie[$r],null,null,ie[Pr]];ie[$r].y.cmp(ie[Pr].y)===0?(Or[1]=ie[$r].add(ie[Pr]),Or[2]=ie[$r].toJ().mixedAdd(ie[Pr].neg())):ie[$r].y.cmp(ie[Pr].y.redNeg())===0?(Or[1]=ie[$r].toJ().mixedAdd(ie[Pr]),Or[2]=ie[$r].add(ie[Pr].neg())):(Or[1]=ie[$r].toJ().mixedAdd(ie[Pr]),Or[2]=ie[$r].toJ().mixedAdd(ie[Pr].neg()));var ur=[-3,-1,-5,-7,0,7,5,1,3],jr=getJSF(ae[$r],ae[Pr]);for(ye=Math.max(jr[0].length,ye),pe[$r]=new Array(ye),pe[Pr]=new Array(ye),Ee=0;Ee=0;me--){for(var Ur=0;me>=0;){var Qr=!0;for(Ee=0;Ee=0&&Ur++,Vr=Vr.dblp(Ur),me<0)break;for(Ee=0;Ee0?cr=ve[Ee][vn-1>>1]:vn<0&&(cr=ve[Ee][-vn-1>>1].neg()),cr.type==="affine"?Vr=Vr.mixedAdd(cr):Vr=Vr.add(cr))}}for(me=0;me=Math.ceil((k.bitLength()+1)/ie.step):!1};BasePoint.prototype._getDoubles=function v(k,ie){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var ae=[this],ce=this,fe=0;fe=0&&(Br=ye,$r=me),Ee.negative&&(Ee=Ee.neg(),cr=cr.neg()),Br.negative&&(Br=Br.neg(),$r=$r.neg()),[{a:Ee,b:cr},{a:Br,b:$r}]};ShortCurve.prototype._endoSplit=function v(k){var ie=this.endo.basis,ae=ie[0],ce=ie[1],fe=ce.b.mul(k).divRound(this.n),le=ae.b.neg().mul(k).divRound(this.n),ve=fe.mul(ae.a),pe=le.mul(ce.a),ye=fe.mul(ae.b),me=le.mul(ce.b),Ee=k.sub(ve).sub(pe),cr=ye.add(me).neg();return{k1:Ee,k2:cr}};ShortCurve.prototype.pointFromX=function v(k,ie){k=new import_bn2.default(k,16),k.red||(k=k.toRed(this.red));var ae=k.redSqr().redMul(k).redIAdd(k.redMul(this.a)).redIAdd(this.b),ce=ae.redSqrt();if(ce.redSqr().redSub(ae).cmp(this.zero)!==0)throw new Error("invalid point");var fe=ce.fromRed().isOdd();return(ie&&!fe||!ie&&fe)&&(ce=ce.redNeg()),this.point(k,ce)};ShortCurve.prototype.validate=function v(k){if(k.inf)return!0;var ie=k.x,ae=k.y,ce=this.a.redMul(ie),fe=ie.redSqr().redMul(ie).redIAdd(ce).redIAdd(this.b);return ae.redSqr().redISub(fe).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function v(k,ie,ae){for(var ce=this._endoWnafT1,fe=this._endoWnafT2,le=0;le":""};Point.prototype.isInfinity=function v(){return this.inf};Point.prototype.add=function v(k){if(this.inf)return k;if(k.inf)return this;if(this.eq(k))return this.dbl();if(this.neg().eq(k))return this.curve.point(null,null);if(this.x.cmp(k.x)===0)return this.curve.point(null,null);var ie=this.y.redSub(k.y);ie.cmpn(0)!==0&&(ie=ie.redMul(this.x.redSub(k.x).redInvm()));var ae=ie.redSqr().redISub(this.x).redISub(k.x),ce=ie.redMul(this.x.redSub(ae)).redISub(this.y);return this.curve.point(ae,ce)};Point.prototype.dbl=function v(){if(this.inf)return this;var k=this.y.redAdd(this.y);if(k.cmpn(0)===0)return this.curve.point(null,null);var ie=this.curve.a,ae=this.x.redSqr(),ce=k.redInvm(),fe=ae.redAdd(ae).redIAdd(ae).redIAdd(ie).redMul(ce),le=fe.redSqr().redISub(this.x.redAdd(this.x)),ve=fe.redMul(this.x.redSub(le)).redISub(this.y);return this.curve.point(le,ve)};Point.prototype.getX=function v(){return this.x.fromRed()};Point.prototype.getY=function v(){return this.y.fromRed()};Point.prototype.mul=function v(k){return k=new import_bn2.default(k,16),this.isInfinity()?this:this._hasDoubles(k)?this.curve._fixedNafMul(this,k):this.curve.endo?this.curve._endoWnafMulAdd([this],[k]):this.curve._wnafMul(this,k)};Point.prototype.mulAdd=function v(k,ie,ae){var ce=[this,ie],fe=[k,ae];return this.curve.endo?this.curve._endoWnafMulAdd(ce,fe):this.curve._wnafMulAdd(1,ce,fe,2)};Point.prototype.jmulAdd=function v(k,ie,ae){var ce=[this,ie],fe=[k,ae];return this.curve.endo?this.curve._endoWnafMulAdd(ce,fe,!0):this.curve._wnafMulAdd(1,ce,fe,2,!0)};Point.prototype.eq=function v(k){return this===k||this.inf===k.inf&&(this.inf||this.x.cmp(k.x)===0&&this.y.cmp(k.y)===0)};Point.prototype.neg=function v(k){if(this.inf)return this;var ie=this.curve.point(this.x,this.y.redNeg());if(k&&this.precomputed){var ae=this.precomputed,ce=function(fe){return fe.neg()};ie.precomputed={naf:ae.naf&&{wnd:ae.naf.wnd,points:ae.naf.points.map(ce)},doubles:ae.doubles&&{step:ae.doubles.step,points:ae.doubles.points.map(ce)}}}return ie};Point.prototype.toJ=function v(){if(this.inf)return this.curve.jpoint(null,null,null);var k=this.curve.jpoint(this.x,this.y,this.curve.one);return k};function JPoint(v,k,ie,ae){base.BasePoint.call(this,v,"jacobian"),k===null&&ie===null&&ae===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new import_bn2.default(0)):(this.x=new import_bn2.default(k,16),this.y=new import_bn2.default(ie,16),this.z=new import_bn2.default(ae,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits_browser(JPoint,base.BasePoint);ShortCurve.prototype.jpoint=function v(k,ie,ae){return new JPoint(this,k,ie,ae)};JPoint.prototype.toP=function v(){if(this.isInfinity())return this.curve.point(null,null);var k=this.z.redInvm(),ie=k.redSqr(),ae=this.x.redMul(ie),ce=this.y.redMul(ie).redMul(k);return this.curve.point(ae,ce)};JPoint.prototype.neg=function v(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function v(k){if(this.isInfinity())return k;if(k.isInfinity())return this;var ie=k.z.redSqr(),ae=this.z.redSqr(),ce=this.x.redMul(ie),fe=k.x.redMul(ae),le=this.y.redMul(ie.redMul(k.z)),ve=k.y.redMul(ae.redMul(this.z)),pe=ce.redSub(fe),ye=le.redSub(ve);if(pe.cmpn(0)===0)return ye.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var me=pe.redSqr(),Ee=me.redMul(pe),cr=ce.redMul(me),Br=ye.redSqr().redIAdd(Ee).redISub(cr).redISub(cr),$r=ye.redMul(cr.redISub(Br)).redISub(le.redMul(Ee)),Pr=this.z.redMul(k.z).redMul(pe);return this.curve.jpoint(Br,$r,Pr)};JPoint.prototype.mixedAdd=function v(k){if(this.isInfinity())return k.toJ();if(k.isInfinity())return this;var ie=this.z.redSqr(),ae=this.x,ce=k.x.redMul(ie),fe=this.y,le=k.y.redMul(ie).redMul(this.z),ve=ae.redSub(ce),pe=fe.redSub(le);if(ve.cmpn(0)===0)return pe.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var ye=ve.redSqr(),me=ye.redMul(ve),Ee=ae.redMul(ye),cr=pe.redSqr().redIAdd(me).redISub(Ee).redISub(Ee),Br=pe.redMul(Ee.redISub(cr)).redISub(fe.redMul(me)),$r=this.z.redMul(ve);return this.curve.jpoint(cr,Br,$r)};JPoint.prototype.dblp=function v(k){if(k===0)return this;if(this.isInfinity())return this;if(!k)return this.dbl();var ie;if(this.curve.zeroA||this.curve.threeA){var ae=this;for(ie=0;ie=0)return!1;if(ae.redIAdd(fe),this.x.cmp(ae)===0)return!0}};JPoint.prototype.inspect=function v(){return this.isInfinity()?"":""};JPoint.prototype.isInfinity=function v(){return this.z.cmpn(0)===0};var curve_1=createCommonjsModule(function(v,k){var ie=k;ie.base=base,ie.short=short_1,ie.mont=null,ie.edwards=null}),curves_1=createCommonjsModule(function(v,k){var ie=k,ae=utils_1$1.assert;function ce(ve){ve.type==="short"?this.curve=new curve_1.short(ve):ve.type==="edwards"?this.curve=new curve_1.edwards(ve):this.curve=new curve_1.mont(ve),this.g=this.curve.g,this.n=this.curve.n,this.hash=ve.hash,ae(this.g.validate(),"Invalid curve"),ae(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}ie.PresetCurve=ce;function fe(ve,pe){Object.defineProperty(ie,ve,{configurable:!0,enumerable:!0,get:function(){var ye=new ce(pe);return Object.defineProperty(ie,ve,{configurable:!0,enumerable:!0,value:ye}),ye}})}fe("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:import_hash2.default.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),fe("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:import_hash2.default.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),fe("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:import_hash2.default.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),fe("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:import_hash2.default.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),fe("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:import_hash2.default.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),fe("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:import_hash2.default.sha256,gRed:!1,g:["9"]}),fe("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:import_hash2.default.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var le;try{le=null.crash()}catch{le=void 0}fe("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:import_hash2.default.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",le]})});function HmacDRBG(v){if(!(this instanceof HmacDRBG))return new HmacDRBG(v);this.hash=v.hash,this.predResist=!!v.predResist,this.outLen=this.hash.outSize,this.minEntropy=v.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var k=utils_1.toArray(v.entropy,v.entropyEnc||"hex"),ie=utils_1.toArray(v.nonce,v.nonceEnc||"hex"),ae=utils_1.toArray(v.pers,v.persEnc||"hex");minimalisticAssert(k.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(k,ie,ae)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function v(k,ie,ae){var ce=k.concat(ie).concat(ae);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var fe=0;fe=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(k.concat(ae||[])),this._reseed=1};HmacDRBG.prototype.generate=function v(k,ie,ae,ce){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof ie!="string"&&(ce=ae,ae=ie,ie=null),ae&&(ae=utils_1.toArray(ae,ce||"hex"),this._update(ae));for(var fe=[];fe.length"};var assert$4=utils_1$1.assert;function Signature(v,k){if(v instanceof Signature)return v;this._importDER(v,k)||(assert$4(v.r&&v.s,"Signature without r or s"),this.r=new import_bn2.default(v.r,16),this.s=new import_bn2.default(v.s,16),v.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=v.recoveryParam)}var signature=Signature;function Position(){this.place=0}function getLength(v,k){var ie=v[k.place++];if(!(ie&128))return ie;var ae=ie&15;if(ae===0||ae>4)return!1;for(var ce=0,fe=0,le=k.place;fe>>=0;return ce<=127?!1:(k.place=le,ce)}function rmPadding(v){for(var k=0,ie=v.length-1;!v[k]&&!(v[k+1]&128)&&k>>3);for(v.push(ie|128);--ie;)v.push(k>>>(ie<<3)&255);v.push(k)}Signature.prototype.toDER=function v(k){var ie=this.r.toArray(),ae=this.s.toArray();for(ie[0]&128&&(ie=[0].concat(ie)),ae[0]&128&&(ae=[0].concat(ae)),ie=rmPadding(ie),ae=rmPadding(ae);!ae[0]&&!(ae[1]&128);)ae=ae.slice(1);var ce=[2];constructLength(ce,ie.length),ce=ce.concat(ie),ce.push(2),constructLength(ce,ae.length);var fe=ce.concat(ae),le=[48];return constructLength(le,fe.length),le=le.concat(fe),utils_1$1.encode(le,k)};var rand=function(){throw new Error("unsupported")},assert$5=utils_1$1.assert;function EC(v){if(!(this instanceof EC))return new EC(v);typeof v=="string"&&(assert$5(Object.prototype.hasOwnProperty.call(curves_1,v),"Unknown curve "+v),v=curves_1[v]),v instanceof curves_1.PresetCurve&&(v={curve:v}),this.curve=v.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=v.curve.g,this.g.precompute(v.curve.n.bitLength()+1),this.hash=v.hash||v.curve.hash}var ec=EC;EC.prototype.keyPair=function v(k){return new key$1(this,k)};EC.prototype.keyFromPrivate=function v(k,ie){return key$1.fromPrivate(this,k,ie)};EC.prototype.keyFromPublic=function v(k,ie){return key$1.fromPublic(this,k,ie)};EC.prototype.genKeyPair=function v(k){k||(k={});for(var ie=new hmacDrbg({hash:this.hash,pers:k.pers,persEnc:k.persEnc||"utf8",entropy:k.entropy||rand(this.hash.hmacStrength),entropyEnc:k.entropy&&k.entropyEnc||"utf8",nonce:this.n.toArray()}),ae=this.n.byteLength(),ce=this.n.sub(new import_bn2.default(2));;){var fe=new import_bn2.default(ie.generate(ae));if(!(fe.cmp(ce)>0))return fe.iaddn(1),this.keyFromPrivate(fe)}};EC.prototype._truncateToN=function v(k,ie){var ae=k.byteLength()*8-this.n.bitLength();return ae>0&&(k=k.ushrn(ae)),!ie&&k.cmp(this.n)>=0?k.sub(this.n):k};EC.prototype.sign=function v(k,ie,ae,ce){typeof ae=="object"&&(ce=ae,ae=null),ce||(ce={}),ie=this.keyFromPrivate(ie,ae),k=this._truncateToN(new import_bn2.default(k,16));for(var fe=this.n.byteLength(),le=ie.getPrivate().toArray("be",fe),ve=k.toArray("be",fe),pe=new hmacDrbg({hash:this.hash,entropy:le,nonce:ve,pers:ce.pers,persEnc:ce.persEnc||"utf8"}),ye=this.n.sub(new import_bn2.default(1)),me=0;;me++){var Ee=ce.k?ce.k(me):new import_bn2.default(pe.generate(this.n.byteLength()));if(Ee=this._truncateToN(Ee,!0),!(Ee.cmpn(1)<=0||Ee.cmp(ye)>=0)){var cr=this.g.mul(Ee);if(!cr.isInfinity()){var Br=cr.getX(),$r=Br.umod(this.n);if($r.cmpn(0)!==0){var Pr=Ee.invm(this.n).mul($r.mul(ie.getPrivate()).iadd(k));if(Pr=Pr.umod(this.n),Pr.cmpn(0)!==0){var Or=(cr.getY().isOdd()?1:0)|(Br.cmp($r)!==0?2:0);return ce.canonical&&Pr.cmp(this.nh)>0&&(Pr=this.n.sub(Pr),Or^=1),new signature({r:$r,s:Pr,recoveryParam:Or})}}}}}};EC.prototype.verify=function v(k,ie,ae,ce){k=this._truncateToN(new import_bn2.default(k,16)),ae=this.keyFromPublic(ae,ce),ie=new signature(ie,"hex");var fe=ie.r,le=ie.s;if(fe.cmpn(1)<0||fe.cmp(this.n)>=0||le.cmpn(1)<0||le.cmp(this.n)>=0)return!1;var ve=le.invm(this.n),pe=ve.mul(k).umod(this.n),ye=ve.mul(fe).umod(this.n),me;return this.curve._maxwellTrick?(me=this.g.jmulAdd(pe,ae.getPublic(),ye),me.isInfinity()?!1:me.eqXToP(fe)):(me=this.g.mulAdd(pe,ae.getPublic(),ye),me.isInfinity()?!1:me.getX().umod(this.n).cmp(fe)===0)};EC.prototype.recoverPubKey=function(v,k,ie,ae){assert$5((3&ie)===ie,"The recovery param is more than two bits"),k=new signature(k,ae);var ce=this.n,fe=new import_bn2.default(v),le=k.r,ve=k.s,pe=ie&1,ye=ie>>1;if(le.cmp(this.curve.p.umod(this.curve.n))>=0&&ye)throw new Error("Unable to find sencond key candinate");ye?le=this.curve.pointFromX(le.add(this.curve.n),pe):le=this.curve.pointFromX(le,pe);var me=k.r.invm(ce),Ee=ce.sub(fe).mul(me).umod(ce),cr=ve.mul(me).umod(ce);return this.g.mulAdd(Ee,le,cr)};EC.prototype.getKeyRecoveryParam=function(v,k,ie,ae){if(k=new signature(k,ae),k.recoveryParam!==null)return k.recoveryParam;for(var ce=0;ce<4;ce++){var fe;try{fe=this.recoverPubKey(v,k,ce)}catch{continue}if(fe.eq(ie))return ce}throw new Error("Unable to find valid recovery factor")};var elliptic_1=createCommonjsModule(function(v,k){var ie=k;ie.version="6.5.4",ie.utils=utils_1$1,ie.rand=function(){throw new Error("unsupported")},ie.curve=curve_1,ie.curves=curves_1,ie.ec=ec,ie.eddsa=null}),EC$1=elliptic_1.ec,version12="signing-key/5.7.0",logger17=new Logger(version12),_curve=null;function getCurve(){return _curve||(_curve=new EC$1("secp256k1")),_curve}var SigningKey=class{constructor(v){defineReadOnly(this,"curve","secp256k1"),defineReadOnly(this,"privateKey",hexlify(v)),hexDataLength(this.privateKey)!==32&&logger17.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const k=getCurve().keyFromPrivate(arrayify(this.privateKey));defineReadOnly(this,"publicKey","0x"+k.getPublic(!1,"hex")),defineReadOnly(this,"compressedPublicKey","0x"+k.getPublic(!0,"hex")),defineReadOnly(this,"_isSigningKey",!0)}_addPoint(v){const k=getCurve().keyFromPublic(arrayify(this.publicKey)),ie=getCurve().keyFromPublic(arrayify(v));return"0x"+k.pub.add(ie.pub).encodeCompressed("hex")}signDigest(v){const k=getCurve().keyFromPrivate(arrayify(this.privateKey)),ie=arrayify(v);ie.length!==32&&logger17.throwArgumentError("bad digest length","digest",v);const ae=k.sign(ie,{canonical:!0});return splitSignature({recoveryParam:ae.recoveryParam,r:hexZeroPad("0x"+ae.r.toString(16),32),s:hexZeroPad("0x"+ae.s.toString(16),32)})}computeSharedSecret(v){const k=getCurve().keyFromPrivate(arrayify(this.privateKey)),ie=getCurve().keyFromPublic(arrayify(computePublicKey(v)));return hexZeroPad("0x"+k.derive(ie.getPublic()).toString(16),32)}static isSigningKey(v){return!!(v&&v._isSigningKey)}};function recoverPublicKey(v,k){const ie=splitSignature(k),ae={r:arrayify(ie.r),s:arrayify(ie.s)};return"0x"+getCurve().recoverPubKey(arrayify(v),ae,ie.recoveryParam).encode("hex",!1)}function computePublicKey(v,k){const ie=arrayify(v);if(ie.length===32){const ae=new SigningKey(ie);return k?"0x"+getCurve().keyFromPrivate(ie).getPublic(!0,"hex"):ae.publicKey}else{if(ie.length===33)return k?hexlify(ie):"0x"+getCurve().keyFromPublic(ie).getPublic(!1,"hex");if(ie.length===65)return k?"0x"+getCurve().keyFromPublic(ie).getPublic(!0,"hex"):hexlify(ie)}return logger17.throwArgumentError("invalid public or private key","key","[REDACTED]")}var version13="transactions/5.7.0",logger18=new Logger(version13),TransactionTypes;(function(v){v[v.legacy=0]="legacy",v[v.eip2930=1]="eip2930",v[v.eip1559=2]="eip1559"})(TransactionTypes||(TransactionTypes={}));function handleAddress(v){return v==="0x"?null:getAddress(v)}function handleNumber(v){return v==="0x"?Zero2:BigNumber.from(v)}var transactionFields=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],allowedTransactionKeys2={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function computeAddress(v){const k=computePublicKey(v);return getAddress(hexDataSlice(keccak256(hexDataSlice(k,1)),12))}function recoverAddress(v,k){return computeAddress(recoverPublicKey(arrayify(v),k))}function formatNumber(v,k){const ie=stripZeros(BigNumber.from(v).toHexString());return ie.length>32&&logger18.throwArgumentError("invalid length for "+k,"transaction:"+k,v),ie}function accessSetify(v,k){return{address:getAddress(v),storageKeys:(k||[]).map((ie,ae)=>(hexDataLength(ie)!==32&&logger18.throwArgumentError("invalid access list storageKey",`accessList[${v}:${ae}]`,ie),ie.toLowerCase()))}}function accessListify(v){if(Array.isArray(v))return v.map((ie,ae)=>Array.isArray(ie)?(ie.length>2&&logger18.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${ae}]`,ie),accessSetify(ie[0],ie[1])):accessSetify(ie.address,ie.storageKeys));const k=Object.keys(v).map(ie=>{const ae=v[ie].reduce((ce,fe)=>(ce[fe]=!0,ce),{});return accessSetify(ie,Object.keys(ae).sort())});return k.sort((ie,ae)=>ie.address.localeCompare(ae.address)),k}function formatAccessList(v){return accessListify(v).map(k=>[k.address,k.storageKeys])}function _serializeEip1559(v,k){if(v.gasPrice!=null){const ae=BigNumber.from(v.gasPrice),ce=BigNumber.from(v.maxFeePerGas||0);ae.eq(ce)||logger18.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:ae,maxFeePerGas:ce})}const ie=[formatNumber(v.chainId||0,"chainId"),formatNumber(v.nonce||0,"nonce"),formatNumber(v.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),formatNumber(v.maxFeePerGas||0,"maxFeePerGas"),formatNumber(v.gasLimit||0,"gasLimit"),v.to!=null?getAddress(v.to):"0x",formatNumber(v.value||0,"value"),v.data||"0x",formatAccessList(v.accessList||[])];if(k){const ae=splitSignature(k);ie.push(formatNumber(ae.recoveryParam,"recoveryParam")),ie.push(stripZeros(ae.r)),ie.push(stripZeros(ae.s))}return hexConcat(["0x02",encode(ie)])}function _serializeEip2930(v,k){const ie=[formatNumber(v.chainId||0,"chainId"),formatNumber(v.nonce||0,"nonce"),formatNumber(v.gasPrice||0,"gasPrice"),formatNumber(v.gasLimit||0,"gasLimit"),v.to!=null?getAddress(v.to):"0x",formatNumber(v.value||0,"value"),v.data||"0x",formatAccessList(v.accessList||[])];if(k){const ae=splitSignature(k);ie.push(formatNumber(ae.recoveryParam,"recoveryParam")),ie.push(stripZeros(ae.r)),ie.push(stripZeros(ae.s))}return hexConcat(["0x01",encode(ie)])}function _serialize(v,k){checkProperties(v,allowedTransactionKeys2);const ie=[];transactionFields.forEach(function(le){let ve=v[le.name]||[];const pe={};le.numeric&&(pe.hexPad="left"),ve=arrayify(hexlify(ve,pe)),le.length&&ve.length!==le.length&&ve.length>0&&logger18.throwArgumentError("invalid length for "+le.name,"transaction:"+le.name,ve),le.maxLength&&(ve=stripZeros(ve),ve.length>le.maxLength&&logger18.throwArgumentError("invalid length for "+le.name,"transaction:"+le.name,ve)),ie.push(hexlify(ve))});let ae=0;if(v.chainId!=null?(ae=v.chainId,typeof ae!="number"&&logger18.throwArgumentError("invalid transaction.chainId","transaction",v)):k&&!isBytesLike(k)&&k.v>28&&(ae=Math.floor((k.v-35)/2)),ae!==0&&(ie.push(hexlify(ae)),ie.push("0x"),ie.push("0x")),!k)return encode(ie);const ce=splitSignature(k);let fe=27+ce.recoveryParam;return ae!==0?(ie.pop(),ie.pop(),ie.pop(),fe+=ae*2+8,ce.v>28&&ce.v!==fe&&logger18.throwArgumentError("transaction.chainId/signature.v mismatch","signature",k)):ce.v!==fe&&logger18.throwArgumentError("transaction.chainId/signature.v mismatch","signature",k),ie.push(hexlify(fe)),ie.push(stripZeros(arrayify(ce.r))),ie.push(stripZeros(arrayify(ce.s))),encode(ie)}function serialize(v,k){if(v.type==null||v.type===0)return v.accessList!=null&&logger18.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",v),_serialize(v,k);switch(v.type){case 1:return _serializeEip2930(v,k);case 2:return _serializeEip1559(v,k)}return logger18.throwError(`unsupported transaction type: ${v.type}`,Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:v.type})}function _parseEipSignature(v,k,ie){try{const ae=handleNumber(k[0]).toNumber();if(ae!==0&&ae!==1)throw new Error("bad recid");v.v=ae}catch{logger18.throwArgumentError("invalid v for transaction type: 1","v",k[0])}v.r=hexZeroPad(k[1],32),v.s=hexZeroPad(k[2],32);try{const ae=keccak256(ie(v));v.from=recoverAddress(ae,{r:v.r,s:v.s,recoveryParam:v.v})}catch{}}function _parseEip1559(v){const k=decode(v.slice(1));k.length!==9&&k.length!==12&&logger18.throwArgumentError("invalid component count for transaction type: 2","payload",hexlify(v));const ie=handleNumber(k[2]),ae=handleNumber(k[3]),ce={type:2,chainId:handleNumber(k[0]).toNumber(),nonce:handleNumber(k[1]).toNumber(),maxPriorityFeePerGas:ie,maxFeePerGas:ae,gasPrice:null,gasLimit:handleNumber(k[4]),to:handleAddress(k[5]),value:handleNumber(k[6]),data:k[7],accessList:accessListify(k[8])};return k.length===9||(ce.hash=keccak256(v),_parseEipSignature(ce,k.slice(9),_serializeEip1559)),ce}function _parseEip2930(v){const k=decode(v.slice(1));k.length!==8&&k.length!==11&&logger18.throwArgumentError("invalid component count for transaction type: 1","payload",hexlify(v));const ie={type:1,chainId:handleNumber(k[0]).toNumber(),nonce:handleNumber(k[1]).toNumber(),gasPrice:handleNumber(k[2]),gasLimit:handleNumber(k[3]),to:handleAddress(k[4]),value:handleNumber(k[5]),data:k[6],accessList:accessListify(k[7])};return k.length===8||(ie.hash=keccak256(v),_parseEipSignature(ie,k.slice(8),_serializeEip2930)),ie}function _parse(v){const k=decode(v);k.length!==9&&k.length!==6&&logger18.throwArgumentError("invalid raw transaction","rawTransaction",v);const ie={nonce:handleNumber(k[0]).toNumber(),gasPrice:handleNumber(k[1]),gasLimit:handleNumber(k[2]),to:handleAddress(k[3]),value:handleNumber(k[4]),data:k[5],chainId:0};if(k.length===6)return ie;try{ie.v=BigNumber.from(k[6]).toNumber()}catch{return ie}if(ie.r=hexZeroPad(k[7],32),ie.s=hexZeroPad(k[8],32),BigNumber.from(ie.r).isZero()&&BigNumber.from(ie.s).isZero())ie.chainId=ie.v,ie.v=0;else{ie.chainId=Math.floor((ie.v-35)/2),ie.chainId<0&&(ie.chainId=0);let ae=ie.v-27;const ce=k.slice(0,6);ie.chainId!==0&&(ce.push(hexlify(ie.chainId)),ce.push("0x"),ce.push("0x"),ae-=ie.chainId*2+8);const fe=keccak256(encode(ce));try{ie.from=recoverAddress(fe,{r:hexlify(ie.r),s:hexlify(ie.s),recoveryParam:ae})}catch{}ie.hash=keccak256(v)}return ie.type=null,ie}function parse(v){const k=arrayify(v);if(k[0]>127)return _parse(k);switch(k[0]){case 1:return _parseEip2930(k);case 2:return _parseEip1559(k)}return logger18.throwError(`unsupported transaction type: ${k[0]}`,Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:k[0]})}var version14="contracts/5.7.0",__awaiter5=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger19=new Logger(version14),allowedTransactionKeys3={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function resolveName(v,k){return __awaiter5(this,void 0,void 0,function*(){const ie=yield k;typeof ie!="string"&&logger19.throwArgumentError("invalid address or ENS name","name",ie);try{return getAddress(ie)}catch{}v||logger19.throwError("a provider or signer is needed to resolve ENS names",Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const ae=yield v.resolveName(ie);return ae==null&&logger19.throwArgumentError("resolver or addr is not configured for ENS name","name",ie),ae})}function resolveAddresses(v,k,ie){return __awaiter5(this,void 0,void 0,function*(){return Array.isArray(ie)?yield Promise.all(ie.map((ae,ce)=>resolveAddresses(v,Array.isArray(k)?k[ce]:k[ae.name],ae))):ie.type==="address"?yield resolveName(v,k):ie.type==="tuple"?yield resolveAddresses(v,k,ie.components):ie.baseType==="array"?Array.isArray(k)?yield Promise.all(k.map(ae=>resolveAddresses(v,ae,ie.arrayChildren))):Promise.reject(logger19.makeError("invalid value for array",Logger.errors.INVALID_ARGUMENT,{argument:"value",value:k})):k})}function populateTransaction(v,k,ie){return __awaiter5(this,void 0,void 0,function*(){let ae={};ie.length===k.inputs.length+1&&typeof ie[ie.length-1]=="object"&&(ae=shallowCopy(ie.pop())),logger19.checkArgumentCount(ie.length,k.inputs.length,"passed to contract"),v.signer?ae.from?ae.from=resolveProperties({override:resolveName(v.signer,ae.from),signer:v.signer.getAddress()}).then(ye=>__awaiter5(this,void 0,void 0,function*(){return getAddress(ye.signer)!==ye.override&&logger19.throwError("Contract with a Signer cannot override from",Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),ye.override})):ae.from=v.signer.getAddress():ae.from&&(ae.from=resolveName(v.provider,ae.from));const ce=yield resolveProperties({args:resolveAddresses(v.signer||v.provider,ie,k.inputs),address:v.resolvedAddress,overrides:resolveProperties(ae)||{}}),fe=v.interface.encodeFunctionData(k,ce.args),le={data:fe,to:ce.address},ve=ce.overrides;if(ve.nonce!=null&&(le.nonce=BigNumber.from(ve.nonce).toNumber()),ve.gasLimit!=null&&(le.gasLimit=BigNumber.from(ve.gasLimit)),ve.gasPrice!=null&&(le.gasPrice=BigNumber.from(ve.gasPrice)),ve.maxFeePerGas!=null&&(le.maxFeePerGas=BigNumber.from(ve.maxFeePerGas)),ve.maxPriorityFeePerGas!=null&&(le.maxPriorityFeePerGas=BigNumber.from(ve.maxPriorityFeePerGas)),ve.from!=null&&(le.from=ve.from),ve.type!=null&&(le.type=ve.type),ve.accessList!=null&&(le.accessList=accessListify(ve.accessList)),le.gasLimit==null&&k.gas!=null){let ye=21e3;const me=arrayify(fe);for(let Ee=0;Eeae[ye]!=null);return pe.length&&logger19.throwError(`cannot override ${pe.map(ye=>JSON.stringify(ye)).join(",")}`,Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:pe}),le})}function buildPopulate(v,k){return function(...ie){return populateTransaction(v,k,ie)}}function buildEstimate(v,k){const ie=v.signer||v.provider;return function(...ae){return __awaiter5(this,void 0,void 0,function*(){ie||logger19.throwError("estimate require a provider or signer",Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const ce=yield populateTransaction(v,k,ae);return yield ie.estimateGas(ce)})}}function addContractWait(v,k){const ie=k.wait.bind(k);k.wait=ae=>ie(ae).then(ce=>(ce.events=ce.logs.map(fe=>{let le=deepCopy(fe),ve=null;try{ve=v.interface.parseLog(fe)}catch{}return ve&&(le.args=ve.args,le.decode=(pe,ye)=>v.interface.decodeEventLog(ve.eventFragment,pe,ye),le.event=ve.name,le.eventSignature=ve.signature),le.removeListener=()=>v.provider,le.getBlock=()=>v.provider.getBlock(ce.blockHash),le.getTransaction=()=>v.provider.getTransaction(ce.transactionHash),le.getTransactionReceipt=()=>Promise.resolve(ce),le}),ce))}function buildCall(v,k,ie){const ae=v.signer||v.provider;return function(...ce){return __awaiter5(this,void 0,void 0,function*(){let fe;if(ce.length===k.inputs.length+1&&typeof ce[ce.length-1]=="object"){const pe=shallowCopy(ce.pop());pe.blockTag!=null&&(fe=yield pe.blockTag),delete pe.blockTag,ce.push(pe)}v.deployTransaction!=null&&(yield v._deployed(fe));const le=yield populateTransaction(v,k,ce),ve=yield ae.call(le,fe);try{let pe=v.interface.decodeFunctionResult(k,ve);return ie&&k.outputs.length===1&&(pe=pe[0]),pe}catch(pe){throw pe.code===Logger.errors.CALL_EXCEPTION&&(pe.address=v.address,pe.args=ce,pe.transaction=le),pe}})}}function buildSend(v,k){return function(...ie){return __awaiter5(this,void 0,void 0,function*(){v.signer||logger19.throwError("sending a transaction requires a signer",Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),v.deployTransaction!=null&&(yield v._deployed());const ae=yield populateTransaction(v,k,ie),ce=yield v.signer.sendTransaction(ae);return addContractWait(v,ce),ce})}}function buildDefault(v,k,ie){return k.constant?buildCall(v,k,ie):buildSend(v,k)}function getEventTag(v){return v.address&&(v.topics==null||v.topics.length===0)?"*":(v.address||"*")+"@"+(v.topics?v.topics.map(k=>Array.isArray(k)?k.join("|"):k).join(":"):"")}var RunningEvent=class{constructor(v,k){defineReadOnly(this,"tag",v),defineReadOnly(this,"filter",k),this._listeners=[]}addListener(v,k){this._listeners.push({listener:v,once:k})}removeListener(v){let k=!1;this._listeners=this._listeners.filter(ie=>k||ie.listener!==v?!0:(k=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(v=>v.listener)}listenerCount(){return this._listeners.length}run(v){const k=this.listenerCount();return this._listeners=this._listeners.filter(ie=>{const ae=v.slice();return setTimeout(()=>{ie.listener.apply(this,ae)},0),!ie.once}),k}prepareEvent(v){}getEmit(v){return[v]}},ErrorRunningEvent=class extends RunningEvent{constructor(){super("error",null)}},FragmentRunningEvent=class extends RunningEvent{constructor(v,k,ie,ae){const ce={address:v};let fe=k.getEventTopic(ie);ae?(fe!==ae[0]&&logger19.throwArgumentError("topic mismatch","topics",ae),ce.topics=ae.slice()):ce.topics=[fe],super(getEventTag(ce),ce),defineReadOnly(this,"address",v),defineReadOnly(this,"interface",k),defineReadOnly(this,"fragment",ie)}prepareEvent(v){super.prepareEvent(v),v.event=this.fragment.name,v.eventSignature=this.fragment.format(),v.decode=(k,ie)=>this.interface.decodeEventLog(this.fragment,k,ie);try{v.args=this.interface.decodeEventLog(this.fragment,v.data,v.topics)}catch(k){v.args=null,v.decodeError=k}}getEmit(v){const k=checkResultErrors(v.args);if(k.length)throw k[0].error;const ie=(v.args||[]).slice();return ie.push(v),ie}},WildcardRunningEvent=class extends RunningEvent{constructor(v,k){super("*",{address:v}),defineReadOnly(this,"address",v),defineReadOnly(this,"interface",k)}prepareEvent(v){super.prepareEvent(v);try{const k=this.interface.parseLog(v);v.event=k.name,v.eventSignature=k.signature,v.decode=(ie,ae)=>this.interface.decodeEventLog(k.eventFragment,ie,ae),v.args=k.args}catch{}}},BaseContract=class{constructor(v,k,ie){defineReadOnly(this,"interface",getStatic(new.target,"getInterface")(k)),ie==null?(defineReadOnly(this,"provider",null),defineReadOnly(this,"signer",null)):Signer.isSigner(ie)?(defineReadOnly(this,"provider",ie.provider||null),defineReadOnly(this,"signer",ie)):Provider.isProvider(ie)?(defineReadOnly(this,"provider",ie),defineReadOnly(this,"signer",null)):logger19.throwArgumentError("invalid signer or provider","signerOrProvider",ie),defineReadOnly(this,"callStatic",{}),defineReadOnly(this,"estimateGas",{}),defineReadOnly(this,"functions",{}),defineReadOnly(this,"populateTransaction",{}),defineReadOnly(this,"filters",{});{const fe={};Object.keys(this.interface.events).forEach(le=>{const ve=this.interface.events[le];defineReadOnly(this.filters,le,(...pe)=>({address:this.address,topics:this.interface.encodeFilterTopics(ve,pe)})),fe[ve.name]||(fe[ve.name]=[]),fe[ve.name].push(le)}),Object.keys(fe).forEach(le=>{const ve=fe[le];ve.length===1?defineReadOnly(this.filters,le,this.filters[ve[0]]):logger19.warn(`Duplicate definition of ${le} (${ve.join(", ")})`)})}if(defineReadOnly(this,"_runningEvents",{}),defineReadOnly(this,"_wrappedEmits",{}),v==null&&logger19.throwArgumentError("invalid contract address or ENS name","addressOrName",v),defineReadOnly(this,"address",v),this.provider)defineReadOnly(this,"resolvedAddress",resolveName(this.provider,v));else try{defineReadOnly(this,"resolvedAddress",Promise.resolve(getAddress(v)))}catch{logger19.throwError("provider is required to use ENS name as contract address",Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(fe=>{});const ae={},ce={};Object.keys(this.interface.functions).forEach(fe=>{const le=this.interface.functions[fe];if(ce[fe]){logger19.warn(`Duplicate ABI entry for ${JSON.stringify(fe)}`);return}ce[fe]=!0;{const ve=le.name;ae[`%${ve}`]||(ae[`%${ve}`]=[]),ae[`%${ve}`].push(fe)}this[fe]==null&&defineReadOnly(this,fe,buildDefault(this,le,!0)),this.functions[fe]==null&&defineReadOnly(this.functions,fe,buildDefault(this,le,!1)),this.callStatic[fe]==null&&defineReadOnly(this.callStatic,fe,buildCall(this,le,!0)),this.populateTransaction[fe]==null&&defineReadOnly(this.populateTransaction,fe,buildPopulate(this,le)),this.estimateGas[fe]==null&&defineReadOnly(this.estimateGas,fe,buildEstimate(this,le))}),Object.keys(ae).forEach(fe=>{const le=ae[fe];if(le.length>1)return;fe=fe.substring(1);const ve=le[0];try{this[fe]==null&&defineReadOnly(this,fe,this[ve])}catch{}this.functions[fe]==null&&defineReadOnly(this.functions,fe,this.functions[ve]),this.callStatic[fe]==null&&defineReadOnly(this.callStatic,fe,this.callStatic[ve]),this.populateTransaction[fe]==null&&defineReadOnly(this.populateTransaction,fe,this.populateTransaction[ve]),this.estimateGas[fe]==null&&defineReadOnly(this.estimateGas,fe,this.estimateGas[ve])})}static getContractAddress(v){return getContractAddress(v)}static getInterface(v){return Interface.isInterface(v)?v:new Interface(v)}deployed(){return this._deployed()}_deployed(v){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,v).then(k=>(k==="0x"&&logger19.throwError("contract not deployed",Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(v){this.signer||logger19.throwError("sending a transactions require a signer",Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const k=shallowCopy(v||{});return["from","to"].forEach(function(ie){k[ie]!=null&&logger19.throwError("cannot override "+ie,Logger.errors.UNSUPPORTED_OPERATION,{operation:ie})}),k.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(k))}connect(v){typeof v=="string"&&(v=new VoidSigner(v,this.provider));const k=new this.constructor(this.address,this.interface,v);return this.deployTransaction&&defineReadOnly(k,"deployTransaction",this.deployTransaction),k}attach(v){return new this.constructor(v,this.interface,this.signer||this.provider)}static isIndexed(v){return Indexed.isIndexed(v)}_normalizeRunningEvent(v){return this._runningEvents[v.tag]?this._runningEvents[v.tag]:v}_getRunningEvent(v){if(typeof v=="string"){if(v==="error")return this._normalizeRunningEvent(new ErrorRunningEvent);if(v==="event")return this._normalizeRunningEvent(new RunningEvent("event",null));if(v==="*")return this._normalizeRunningEvent(new WildcardRunningEvent(this.address,this.interface));const k=this.interface.getEvent(v);return this._normalizeRunningEvent(new FragmentRunningEvent(this.address,this.interface,k))}if(v.topics&&v.topics.length>0){try{const ie=v.topics[0];if(typeof ie!="string")throw new Error("invalid topic");const ae=this.interface.getEvent(ie);return this._normalizeRunningEvent(new FragmentRunningEvent(this.address,this.interface,ae,v.topics))}catch{}const k={address:this.address,topics:v.topics};return this._normalizeRunningEvent(new RunningEvent(getEventTag(k),k))}return this._normalizeRunningEvent(new WildcardRunningEvent(this.address,this.interface))}_checkRunningEvents(v){if(v.listenerCount()===0){delete this._runningEvents[v.tag];const k=this._wrappedEmits[v.tag];k&&v.filter&&(this.provider.off(v.filter,k),delete this._wrappedEmits[v.tag])}}_wrapEvent(v,k,ie){const ae=deepCopy(k);return ae.removeListener=()=>{!ie||(v.removeListener(ie),this._checkRunningEvents(v))},ae.getBlock=()=>this.provider.getBlock(k.blockHash),ae.getTransaction=()=>this.provider.getTransaction(k.transactionHash),ae.getTransactionReceipt=()=>this.provider.getTransactionReceipt(k.transactionHash),v.prepareEvent(ae),ae}_addEventListener(v,k,ie){if(this.provider||logger19.throwError("events require a provider or a signer with a provider",Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),v.addListener(k,ie),this._runningEvents[v.tag]=v,!this._wrappedEmits[v.tag]){const ae=ce=>{let fe=this._wrapEvent(v,ce,k);if(fe.decodeError==null)try{const le=v.getEmit(fe);this.emit(v.filter,...le)}catch(le){fe.decodeError=le.error}v.filter!=null&&this.emit("event",fe),fe.decodeError!=null&&this.emit("error",fe.decodeError,fe)};this._wrappedEmits[v.tag]=ae,v.filter!=null&&this.provider.on(v.filter,ae)}}queryFilter(v,k,ie){const ae=this._getRunningEvent(v),ce=shallowCopy(ae.filter);return typeof k=="string"&&isHexString(k,32)?(ie!=null&&logger19.throwArgumentError("cannot specify toBlock with blockhash","toBlock",ie),ce.blockHash=k):(ce.fromBlock=k!=null?k:0,ce.toBlock=ie!=null?ie:"latest"),this.provider.getLogs(ce).then(fe=>fe.map(le=>this._wrapEvent(ae,le,null)))}on(v,k){return this._addEventListener(this._getRunningEvent(v),k,!1),this}once(v,k){return this._addEventListener(this._getRunningEvent(v),k,!0),this}emit(v,...k){if(!this.provider)return!1;const ie=this._getRunningEvent(v),ae=ie.run(k)>0;return this._checkRunningEvents(ie),ae}listenerCount(v){return this.provider?v==null?Object.keys(this._runningEvents).reduce((k,ie)=>k+this._runningEvents[ie].listenerCount(),0):this._getRunningEvent(v).listenerCount():0}listeners(v){if(!this.provider)return[];if(v==null){const k=[];for(let ie in this._runningEvents)this._runningEvents[ie].listeners().forEach(ae=>{k.push(ae)});return k}return this._getRunningEvent(v).listeners()}removeAllListeners(v){if(!this.provider)return this;if(v==null){for(const ie in this._runningEvents){const ae=this._runningEvents[ie];ae.removeAllListeners(),this._checkRunningEvents(ae)}return this}const k=this._getRunningEvent(v);return k.removeAllListeners(),this._checkRunningEvents(k),this}off(v,k){if(!this.provider)return this;const ie=this._getRunningEvent(v);return ie.removeListener(k),this._checkRunningEvents(ie),this}removeListener(v,k){return this.off(v,k)}},Contract=class extends BaseContract{},ContractFactory=class{constructor(v,k,ie){let ae=null;typeof k=="string"?ae=k:isBytes(k)?ae=hexlify(k):k&&typeof k.object=="string"?ae=k.object:ae="!",ae.substring(0,2)!=="0x"&&(ae="0x"+ae),(!isHexString(ae)||ae.length%2)&&logger19.throwArgumentError("invalid bytecode","bytecode",k),ie&&!Signer.isSigner(ie)&&logger19.throwArgumentError("invalid signer","signer",ie),defineReadOnly(this,"bytecode",ae),defineReadOnly(this,"interface",getStatic(new.target,"getInterface")(v)),defineReadOnly(this,"signer",ie||null)}getDeployTransaction(...v){let k={};if(v.length===this.interface.deploy.inputs.length+1&&typeof v[v.length-1]=="object"){k=shallowCopy(v.pop());for(const ie in k)if(!allowedTransactionKeys3[ie])throw new Error("unknown transaction override "+ie)}return["data","from","to"].forEach(ie=>{k[ie]!=null&&logger19.throwError("cannot override "+ie,Logger.errors.UNSUPPORTED_OPERATION,{operation:ie})}),k.value&&!BigNumber.from(k.value).isZero()&&!this.interface.deploy.payable&&logger19.throwError("non-payable constructor cannot override value",Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:k.value}),logger19.checkArgumentCount(v.length,this.interface.deploy.inputs.length," in Contract constructor"),k.data=hexlify(concat$4([this.bytecode,this.interface.encodeDeploy(v)])),k}deploy(...v){return __awaiter5(this,void 0,void 0,function*(){let k={};v.length===this.interface.deploy.inputs.length+1&&(k=v.pop()),logger19.checkArgumentCount(v.length,this.interface.deploy.inputs.length," in Contract constructor");const ie=yield resolveAddresses(this.signer,v,this.interface.deploy.inputs);ie.push(k);const ae=this.getDeployTransaction(...ie),ce=yield this.signer.sendTransaction(ae),fe=getStatic(this.constructor,"getContractAddress")(ce),le=getStatic(this.constructor,"getContract")(fe,this.interface,this.signer);return addContractWait(le,ce),defineReadOnly(le,"deployTransaction",ce),le})}attach(v){return this.constructor.getContract(v,this.interface,this.signer)}connect(v){return new this.constructor(this.interface,this.bytecode,v)}static fromSolidity(v,k){v==null&&logger19.throwError("missing compiler output",Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),typeof v=="string"&&(v=JSON.parse(v));const ie=v.abi;let ae=null;return v.bytecode?ae=v.bytecode:v.evm&&v.evm.bytecode&&(ae=v.evm.bytecode),new this(ie,ae,k)}static getInterface(v){return Contract.getInterface(v)}static getContractAddress(v){return getContractAddress(v)}static getContract(v,k,ie){return new Contract(v,k,ie)}},BaseX=class{constructor(v){defineReadOnly(this,"alphabet",v),defineReadOnly(this,"base",v.length),defineReadOnly(this,"_alphabetMap",{}),defineReadOnly(this,"_leader",v.charAt(0));for(let k=0;k0;)ie.push(fe%this.base),fe=fe/this.base|0}let ae="";for(let ce=0;k[ce]===0&&ce=0;--ce)ae+=this.alphabet[ie[ce]];return ae}decode(v){if(typeof v!="string")throw new TypeError("Expected String");let k=[];if(v.length===0)return new Uint8Array(k);k.push(0);for(let ie=0;ie>=8;for(;ce>0;)k.push(ce&255),ce>>=8}for(let ie=0;v[ie]===this._leader&&ie>24&255,pe[k.length+1]=Ee>>16&255,pe[k.length+2]=Ee>>8&255,pe[k.length+3]=Ee&255;let cr=arrayify(computeHmac(ce,v,pe));fe||(fe=cr.length,me=new Uint8Array(fe),le=Math.ceil(ae/fe),ye=ae-(le-1)*fe),me.set(cr);for(let Pr=1;Pr0&&match$7[0]<4?1:+(match$7[0]+match$7[1]));!version$8&&userAgent$a&&(match$7=userAgent$a.match(/Edge\/(\d+)/),(!match$7||match$7[1]>=74)&&(match$7=userAgent$a.match(/Chrome\/(\d+)/),match$7&&(version$8=+match$7[1])));var engineV8Version$7=version$8,V8_VERSION$8=engineV8Version$7,fails$2$7=fails$7$7,nativeSymbol$7=!!Object.getOwnPropertySymbols&&!fails$2$7(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$8&&V8_VERSION$8<41}),NATIVE_SYMBOL$1$7=nativeSymbol$7,useSymbolAsUid$7=NATIVE_SYMBOL$1$7&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$f=getBuiltIn$2$7,isCallable$7$7=isCallable$a$7,isPrototypeOf$1$6=objectIsPrototypeOf$7,USE_SYMBOL_AS_UID$1$7=useSymbolAsUid$7,$Object$1$7=Object,isSymbol$2$7=USE_SYMBOL_AS_UID$1$7?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$f("Symbol");return isCallable$7$7(k)&&isPrototypeOf$1$6(k.prototype,$Object$1$7(v))},$String$1$7=String,tryToString$1$7=function(v){try{return $String$1$7(v)}catch{return"Object"}},isCallable$6$7=isCallable$a$7,tryToString$b=tryToString$1$7,$TypeError$3$7=TypeError,aCallable$1$7=function(v){if(isCallable$6$7(v))return v;throw $TypeError$3$7(tryToString$b(v)+" is not a function")},aCallable$e=aCallable$1$7,getMethod$1$7=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$e(ie)},call$2$7=functionCall$7,isCallable$5$7=isCallable$a$7,isObject$2$7=isObject$5$7,$TypeError$2$7=TypeError,ordinaryToPrimitive$1$7=function(v,k){var ie,ae;if(k==="string"&&isCallable$5$7(ie=v.toString)&&!isObject$2$7(ae=call$2$7(ie,v))||isCallable$5$7(ie=v.valueOf)&&!isObject$2$7(ae=call$2$7(ie,v))||k!=="string"&&isCallable$5$7(ie=v.toString)&&!isObject$2$7(ae=call$2$7(ie,v)))return ae;throw $TypeError$2$7("Can't convert object to primitive value")},shared$3$7={exports:{}},global$5$7=global$9$7,defineProperty$1$7=Object.defineProperty,defineGlobalProperty$2$7=function(v,k){try{defineProperty$1$7(global$5$7,v,{value:k,configurable:!0,writable:!0})}catch{global$5$7[v]=k}return k},global$4$7=global$9$7,defineGlobalProperty$1$7=defineGlobalProperty$2$7,SHARED$7="__core-js_shared__",store$3$7=global$4$7[SHARED$7]||defineGlobalProperty$1$7(SHARED$7,{}),sharedStore$7=store$3$7,store$2$7=sharedStore$7;(shared$3$7.exports=function(v,k){return store$2$7[v]||(store$2$7[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var uncurryThis$3$7=functionUncurryThis$7,id$9=0,postfix$7=Math.random(),toString$2$5=uncurryThis$3$7(1 .toString),uid$2$7=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$2$5(++id$9+postfix$7,36)},global$3$7=global$9$7,shared$2$7=shared$3$7.exports,hasOwn$3$7=hasOwnProperty_1$7,uid$1$7=uid$2$7,NATIVE_SYMBOL$8=nativeSymbol$7,USE_SYMBOL_AS_UID$8=useSymbolAsUid$7,WellKnownSymbolsStore$7=shared$2$7("wks"),Symbol$1$7=global$3$7.Symbol,symbolFor$7=Symbol$1$7&&Symbol$1$7.for,createWellKnownSymbol$7=USE_SYMBOL_AS_UID$8?Symbol$1$7:Symbol$1$7&&Symbol$1$7.withoutSetter||uid$1$7,wellKnownSymbol$3$6=function(v){if(!hasOwn$3$7(WellKnownSymbolsStore$7,v)||!(NATIVE_SYMBOL$8||typeof WellKnownSymbolsStore$7[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$8&&hasOwn$3$7(Symbol$1$7,v)?WellKnownSymbolsStore$7[v]=Symbol$1$7[v]:USE_SYMBOL_AS_UID$8&&symbolFor$7?WellKnownSymbolsStore$7[v]=symbolFor$7(k):WellKnownSymbolsStore$7[v]=createWellKnownSymbol$7(k)}return WellKnownSymbolsStore$7[v]},call$1$7=functionCall$7,isObject$1$7=isObject$5$7,isSymbol$1$7=isSymbol$2$7,getMethod$a=getMethod$1$7,ordinaryToPrimitive$8=ordinaryToPrimitive$1$7,wellKnownSymbol$2$6=wellKnownSymbol$3$6,$TypeError$1$7=TypeError,TO_PRIMITIVE$7=wellKnownSymbol$2$6("toPrimitive"),toPrimitive$1$7=function(v,k){if(!isObject$1$7(v)||isSymbol$1$7(v))return v;var ie=getMethod$a(v,TO_PRIMITIVE$7),ae;if(ie){if(k===void 0&&(k="default"),ae=call$1$7(ie,v,k),!isObject$1$7(ae)||isSymbol$1$7(ae))return ae;throw $TypeError$1$7("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$8(v,k)},toPrimitive$9=toPrimitive$1$7,isSymbol$a=isSymbol$2$7,toPropertyKey$1$7=function(v){var k=toPrimitive$9(v,"string");return isSymbol$a(k)?k:k+""},DESCRIPTORS$2$7=descriptors$7,IE8_DOM_DEFINE$8=ie8DomDefine$7,V8_PROTOTYPE_DEFINE_BUG$8=v8PrototypeDefineBug$7,anObject$2$7=anObject$3$6,toPropertyKey$b=toPropertyKey$1$7,$TypeError$i=TypeError,$defineProperty$7=Object.defineProperty,$getOwnPropertyDescriptor$8=Object.getOwnPropertyDescriptor,ENUMERABLE$7="enumerable",CONFIGURABLE$8="configurable",WRITABLE$7="writable";objectDefineProperty$7.f=DESCRIPTORS$2$7?V8_PROTOTYPE_DEFINE_BUG$8?function v(k,ie,ae){if(anObject$2$7(k),ie=toPropertyKey$b(ie),anObject$2$7(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$7 in ae&&!ae[WRITABLE$7]){var ce=$getOwnPropertyDescriptor$8(k,ie);ce&&ce[WRITABLE$7]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$8 in ae?ae[CONFIGURABLE$8]:ce[CONFIGURABLE$8],enumerable:ENUMERABLE$7 in ae?ae[ENUMERABLE$7]:ce[ENUMERABLE$7],writable:!1})}return $defineProperty$7(k,ie,ae)}:$defineProperty$7:function v(k,ie,ae){if(anObject$2$7(k),ie=toPropertyKey$b(ie),anObject$2$7(ae),IE8_DOM_DEFINE$8)try{return $defineProperty$7(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$i("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var makeBuiltIn$2$7={exports:{}},uncurryThis$2$7=functionUncurryThis$7,isCallable$4$7=isCallable$a$7,store$1$7=sharedStore$7,functionToString$7=uncurryThis$2$7(Function.toString);isCallable$4$7(store$1$7.inspectSource)||(store$1$7.inspectSource=function(v){return functionToString$7(v)});var inspectSource$2$7=store$1$7.inspectSource,global$2$7=global$9$7,isCallable$3$7=isCallable$a$7,inspectSource$1$7=inspectSource$2$7,WeakMap$1$7=global$2$7.WeakMap,nativeWeakMap$7=isCallable$3$7(WeakMap$1$7)&&/native code/.test(inspectSource$1$7(WeakMap$1$7)),createPropertyDescriptor$1$7=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$1$7=descriptors$7,definePropertyModule$1$7=objectDefineProperty$7,createPropertyDescriptor$c=createPropertyDescriptor$1$7,createNonEnumerableProperty$1$7=DESCRIPTORS$1$7?function(v,k,ie){return definePropertyModule$1$7.f(v,k,createPropertyDescriptor$c(1,ie))}:function(v,k,ie){return v[k]=ie,v},shared$1$7=shared$3$7.exports,uid$a=uid$2$7,keys$6=shared$1$7("keys"),sharedKey$1$7=function(v){return keys$6[v]||(keys$6[v]=uid$a(v))},NATIVE_WEAK_MAP$7=nativeWeakMap$7,global$1$7=global$9$7,uncurryThis$1$7=functionUncurryThis$7,isObject$h=isObject$5$7,createNonEnumerableProperty$d=createNonEnumerableProperty$1$7,hasOwn$2$7=hasOwnProperty_1$7,shared$a=sharedStore$7,sharedKey$a=sharedKey$1$7,OBJECT_ALREADY_INITIALIZED$7="Object already initialized",TypeError$1$7=global$1$7.TypeError,WeakMap$9=global$1$7.WeakMap,set$8,get$8,has$7,enforce$7=function(v){return has$7(v)?get$8(v):set$8(v,{})},getterFor$7=function(v){return function(k){var ie;if(!isObject$h(k)||(ie=get$8(k)).type!==v)throw TypeError$1$7("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$7||shared$a.state?(store$a=shared$a.state||(shared$a.state=new WeakMap$9),wmget$7=uncurryThis$1$7(store$a.get),wmhas$7=uncurryThis$1$7(store$a.has),wmset$7=uncurryThis$1$7(store$a.set),set$8=function(v,k){if(wmhas$7(store$a,v))throw new TypeError$1$7(OBJECT_ALREADY_INITIALIZED$7);return k.facade=v,wmset$7(store$a,v,k),k},get$8=function(v){return wmget$7(store$a,v)||{}},has$7=function(v){return wmhas$7(store$a,v)}):(STATE$7=sharedKey$a("state"),set$8=function(v,k){if(hasOwn$2$7(v,STATE$7))throw new TypeError$1$7(OBJECT_ALREADY_INITIALIZED$7);return k.facade=v,createNonEnumerableProperty$d(v,STATE$7,k),k},get$8=function(v){return hasOwn$2$7(v,STATE$7)?v[STATE$7]:{}},has$7=function(v){return hasOwn$2$7(v,STATE$7)});var store$a,wmget$7,wmhas$7,wmset$7,STATE$7,internalState$7={set:set$8,get:get$8,has:has$7,enforce:enforce$7,getterFor:getterFor$7},fails$1$7=fails$7$7,isCallable$2$7=isCallable$a$7,hasOwn$1$7=hasOwnProperty_1$7,DESCRIPTORS$k=descriptors$7,CONFIGURABLE_FUNCTION_NAME$9=functionName$7.CONFIGURABLE,inspectSource$b=inspectSource$2$7,InternalStateModule$b=internalState$7,enforceInternalState$9=InternalStateModule$b.enforce,getInternalState$b=InternalStateModule$b.get,defineProperty3$6=Object.defineProperty,CONFIGURABLE_LENGTH$7=DESCRIPTORS$k&&!fails$1$7(function(){return defineProperty3$6(function(){},"length",{value:8}).length!==8}),TEMPLATE$7=String(String).split("String"),makeBuiltIn$1$7=makeBuiltIn$2$7.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$1$7(v,"name")||CONFIGURABLE_FUNCTION_NAME$9&&v.name!==k)&&(DESCRIPTORS$k?defineProperty3$6(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$7&&ie&&hasOwn$1$7(ie,"arity")&&v.length!==ie.arity&&defineProperty3$6(v,"length",{value:ie.arity});try{ie&&hasOwn$1$7(ie,"constructor")&&ie.constructor?DESCRIPTORS$k&&defineProperty3$6(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$9(v);return hasOwn$1$7(ae,"source")||(ae.source=TEMPLATE$7.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$7(function v(){return isCallable$2$7(this)&&getInternalState$b(this).source||inspectSource$b(this)},"toString");var isCallable$1$7=isCallable$a$7,definePropertyModule$d=objectDefineProperty$7,makeBuiltIn$9=makeBuiltIn$2$7.exports,defineGlobalProperty$a=defineGlobalProperty$2$7,defineBuiltIn$1$7=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$1$7(ie)&&makeBuiltIn$9(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$a(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$d.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},wellKnownSymbol$1$7=wellKnownSymbol$3$6,TO_STRING_TAG$1$6=wellKnownSymbol$1$7("toStringTag"),test$6={};test$6[TO_STRING_TAG$1$6]="z";var toStringTagSupport$6=String(test$6)==="[object z]",uncurryThis$r=functionUncurryThis$7,toString$1$7=uncurryThis$r({}.toString),stringSlice$7=uncurryThis$r("".slice),classofRaw$1$6=function(v){return stringSlice$7(toString$1$7(v),8,-1)},TO_STRING_TAG_SUPPORT$6=toStringTagSupport$6,isCallable$p=isCallable$a$7,classofRaw$8=classofRaw$1$6,wellKnownSymbol$l=wellKnownSymbol$3$6,TO_STRING_TAG$9=wellKnownSymbol$l("toStringTag"),$Object$b=Object,CORRECT_ARGUMENTS$6=classofRaw$8(function(){return arguments}())=="Arguments",tryGet$6=function(v,k){try{return v[k]}catch{}},classof$1$6=TO_STRING_TAG_SUPPORT$6?classofRaw$8:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$6(k=$Object$b(v),TO_STRING_TAG$9))=="string"?ie:CORRECT_ARGUMENTS$6?classofRaw$8(k):(ae=classofRaw$8(k))=="Object"&&isCallable$p(k.callee)?"Arguments":ae},classof$f=classof$1$6,$String$a=String,toString2$5=function(v){if(classof$f(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$a(v)},anObject$1$7=anObject$3$6,regexpFlags$5=function(){var v=anObject$1$7(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$l=functionCall$7,hasOwn2$7=hasOwnProperty_1$7,isPrototypeOf$b=objectIsPrototypeOf$7,regExpFlags$5=regexpFlags$5,RegExpPrototype$1$5=RegExp.prototype,regexpGetFlags$5=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$5)&&!hasOwn2$7(v,"flags")&&isPrototypeOf$b(RegExpPrototype$1$5,v)?call$l(regExpFlags$5,v):k},PROPER_FUNCTION_NAME$7=functionName$7.PROPER,defineBuiltIn$d=defineBuiltIn$1$7,anObject$h=anObject$3$6,$toString$5=toString2$5,fails$t=fails$7$7,getRegExpFlags$5=regexpGetFlags$5,TO_STRING$5="toString",RegExpPrototype$6=RegExp.prototype,n$ToString$5=RegExpPrototype$6[TO_STRING$5],NOT_GENERIC$5=fails$t(function(){return n$ToString$5.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$5=PROPER_FUNCTION_NAME$7&&n$ToString$5.name!=TO_STRING$5;(NOT_GENERIC$5||INCORRECT_NAME$5)&&defineBuiltIn$d(RegExp.prototype,TO_STRING$5,function(){var k=anObject$h(this),ie=$toString$5(k.source),ae=$toString$5(getRegExpFlags$5(k));return"/"+ie+"/"+ae},{unsafe:!0});function __awaiter$9(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$8="data:image/png;base64,iVBORw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Thr8qxUTqLvBydMalnq5zioTJ0pwPh617JKJjOAOcwBhUVfwQI4tna899dV5beK6Q+V0jkX6wYPuDilZ7pcLkUR7fPBwBdVischD4WlZ3KHXTpJ2s0qBHKtOak+Ad8uCmbaDC0Oj15sqamZSmJdo87pfL5EkwlO4akx0p52uvT3ENWLnWJy+V6cpielDlb2xbeXTGw0EVpvhlZzlX6PtRwvUdbuE3+0km4dL9NmeXSOyMlSV4EGWsq7BdojW24wTOT6SPLQAtWO/gyvEggfngAZT9lTCjvDnf+4ewrxu3rZqPPxpfW8wbW0LAyMVvOaCv98uXd/m8+28/xig3BTEmBN0g0+62oeHlNv10vtdH2fGlSNxMhtmnQWToOrd3OT+gxiLgT06Zounj5boczFqExngeS6/Ziu/irHJ8qjno5MOUUpfkaV6j14r98e/kWIT5nr7iPPfffflv9vtdv33QvzPvn8AipGJV7Bw0z0AAAAASUVORK5CYII=",isInstalled$5=()=>!!window.coin98,setupCoin98WalletState=()=>({wallet:window.coin98}),Coin98Wallet=({metadata:v,options:k,store:ie,provider:ae,logger:ce})=>__awaiter$9(void 0,void 0,void 0,function*(){const fe=setupCoin98WalletState(),le=()=>__awaiter$9(void 0,void 0,void 0,function*(){const pe=fe.wallet.near.account;if(!pe)return[];const ye=yield fe.wallet.near.signer.getPublicKey(pe,k.network.networkId);return[{accountId:pe,publicKey:ye?ye.toString():void 0}]}),ve=pe=>{const{contract:ye}=ie.getState();if(!ye)throw new Error("Wallet not signed in");const me=getActiveAccount(ie.getState());if(!me)throw new Error("No active account");return pe.map(Ee=>({signerId:Ee.signerId||me.accountId,receiverId:Ee.receiverId||ye.contractId,actions:Ee.actions}))};return{signIn({contractId:pe}){return __awaiter$9(this,void 0,void 0,function*(){const ye=yield le();return ye.length?ye:(yield fe.wallet.near.connect({prefix:"near_selector",contractId:pe}),le())})},signOut(){return __awaiter$9(this,void 0,void 0,function*(){yield fe.wallet.near.disconnect()})},getAccounts(){return __awaiter$9(this,void 0,void 0,function*(){return le()})},verifyOwner(){return __awaiter$9(this,void 0,void 0,function*(){throw new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction({signerId:pe,receiverId:ye,actions:me}){return __awaiter$9(this,void 0,void 0,function*(){ce.log("signAndSendTransaction",{signerId:pe,receiverId:ye,actions:me});const Ee=yield signTransactions(ve([{signerId:pe,receiverId:ye,actions:me}]),fe.wallet.near.signer,k.network);return ae.sendTransaction(Ee[0])})},signAndSendTransactions({transactions:pe}){return __awaiter$9(this,void 0,void 0,function*(){ce.log("signAndSendTransactions",{transactions:pe});const ye=yield signTransactions(ve(pe),fe.wallet.near.signer,k.network);ce.log("signAndSendTransactions:signedTransactions",ye);const me=[];for(let Ee=0;Ee()=>__awaiter$9(void 0,void 0,void 0,function*(){if((0,import_is_mobile$6.isMobile)())return null;const ae=isInstalled$5();return{id:"coin98-wallet",type:"injected",metadata:{name:"Coin98 Wallet",description:"Using a Decentralized Wallet With Experiences of a Centralized One",iconUrl:v,downloadUrl:"https://chrome.google.com/webstore/detail/coin98-wallet/aeachknmefphepccionboohckonoeemg",deprecated:k,available:ae},init:Coin98Wallet}}),require_JSONStorage=__commonJS$1({"node_modules/@here-wallet/core/build/JSONStorage.js"(v){var k=v&&v.__awaiter||function(ae,ce,fe,le){function ve(pe){return pe instanceof fe?pe:new fe(function(ye){ye(pe)})}return new(fe||(fe=Promise))(function(pe,ye){function me(Br){try{cr(le.next(Br))}catch($r){ye($r)}}function Ee(Br){try{cr(le.throw(Br))}catch($r){ye($r)}}function cr(Br){Br.done?pe(Br.value):ve(Br.value).then(me,Ee)}cr((le=le.apply(ae,ce||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.StateStorage=void 0;var ie=class{constructor(){this.dataKey="herewallet:keystore"}setState(ae,ce){return k(this,void 0,void 0,function*(){const fe=yield this.getFullState();fe[ae]=ce,window.localStorage.setItem(this.dataKey,JSON.stringify(fe))})}getFullState(){return k(this,void 0,void 0,function*(){try{return JSON.parse(window.localStorage.getItem(this.dataKey))||{}}catch{return{}}})}getState(ae){return k(this,void 0,void 0,function*(){return(yield this.getFullState())[ae]||{activeAccount:null,accounts:{}}})}clear(){return k(this,void 0,void 0,function*(){window.localStorage.removeItem(this.dataKey)})}};v.StateStorage=ie}}),require_HereKeyStore=__commonJS$1({"node_modules/@here-wallet/core/build/HereKeyStore.js"(v){var k=v&&v.__awaiter||function(fe,le,ve,pe){function ye(me){return me instanceof ve?me:new ve(function(Ee){Ee(me)})}return new(ve||(ve=Promise))(function(me,Ee){function cr(Pr){try{$r(pe.next(Pr))}catch(Ar){Ee(Ar)}}function Br(Pr){try{$r(pe.throw(Pr))}catch(Ar){Ee(Ar)}}function $r(Pr){Pr.done?me(Pr.value):ye(Pr.value).then(cr,Br)}$r((pe=pe.apply(fe,le||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.HereKeyStore=void 0;var ie=require_key_pair2(),ae=require_JSONStorage(),ce=class{constructor(fe=new ae.StateStorage){this.storage=fe}setActiveAccount(fe,le){return k(this,void 0,void 0,function*(){const ve=yield this.storage.getState(fe);ve.activeAccount=le,this.storage.setState(fe,ve)})}setKey(fe,le,ve){return k(this,void 0,void 0,function*(){const pe=yield this.storage.getState(fe);pe.accounts[le]=ve.toString(),this.storage.setState(fe,pe)})}getAccounts(fe){return k(this,void 0,void 0,function*(){const le=yield this.storage.getState(fe);return Object.keys(le.accounts)})}getActiveAccount(fe){return k(this,void 0,void 0,function*(){return(yield this.storage.getState(fe)).activeAccount})}getKey(fe,le){return k(this,void 0,void 0,function*(){const pe=(yield this.storage.getState(fe)).accounts[le];if(pe==null)throw Error(`For ${le} in ${fe} network key not found`);return ie.KeyPair.fromString(pe)})}removeKey(fe,le){return k(this,void 0,void 0,function*(){let ve=yield this.storage.getState(fe);ve.activeAccount===le&&(ve.activeAccount=null),delete ve.accounts[le],this.storage.setState(fe,ve)})}getNetworks(){return k(this,void 0,void 0,function*(){let fe=yield this.storage.getFullState();return Object.keys(fe.accounts)})}clear(){return k(this,void 0,void 0,function*(){yield this.storage.clear()})}};v.HereKeyStore=ce}}),require_provider=__commonJS$1({"node_modules/@here-wallet/core/build/provider.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.HereProviderError=v.HereProviderStatus=void 0,function(ie){ie[ie.APPROVING=1]="APPROVING",ie[ie.FAILED=2]="FAILED",ie[ie.SUCCESS=3]="SUCCESS"}(v.HereProviderStatus||(v.HereProviderStatus={}));var k=class extends Error{constructor(ie,ae){super(ie!=null?ie:ae==null?void 0:ae.message),this.payload=ie,this.parentError=ae}};v.HereProviderError=k}}),browser_exports={};__export$1(browser_exports,{default:()=>browser_default,uuid4:()=>uuid4,valid:()=>valid});function valid(v){return uuidPattern.test(v)}function uuid4(){var v=URL.createObjectURL(new Blob),k=v.toString();return URL.revokeObjectURL(v),k.split(/[:\/]/g).pop().toLowerCase()}var uuidPattern,browser_default,init_browser=__esm$1({"node_modules/uuid4/browser.mjs"(){uuidPattern=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,uuid4.valid=valid,browser_default=uuid4}}),require_utils2$1=__commonJS$1({"node_modules/@here-wallet/core/build/utils.js"(v){var k=v&&v.__awaiter||function(Ee,cr,Br,$r){function Pr(Ar){return Ar instanceof Br?Ar:new Br(function(ur){ur(Ar)})}return new(Br||(Br=Promise))(function(Ar,ur){function jr(Vr){try{Lr($r.next(Vr))}catch(Gr){ur(Gr)}}function Mr(Vr){try{Lr($r.throw(Vr))}catch(Gr){ur(Gr)}}function Lr(Vr){Vr.done?Ar(Vr.value):Pr(Vr.value).then(jr,Mr)}Lr(($r=$r.apply(Ee,cr||[])).next())})},ie=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.isValidAccessKey=v.internalThrow=v.getPublicKeys=v.serializeActions=v.isMobile=v.getDeviceId=void 0;var ae=ie((init_browser(),__toCommonJS$1(browser_exports))),ce=require_provider(),fe=()=>{const Ee=window.localStorage.getItem("herewallet-topic")||(0,ae.default)();return window.localStorage.setItem("herewallet-topic",Ee),Ee};v.getDeviceId=fe;var le=()=>window.matchMedia("(any-pointer:coarse)").matches;v.isMobile=le;var ve=Ee=>Ee.map(cr=>{if(cr.type!=="FunctionCall")return cr;let{args:Br,deposit:$r,gas:Pr,methodName:Ar}=cr.params;return ArrayBuffer.isView(Br)&&(Br=Buffer.from(Br.buffer,Br.byteOffset,Br.byteLength)),Br instanceof Buffer&&(Br=Br.toString("base64")),{type:cr.type,params:{args:Br,deposit:$r,gas:Pr,methodName:Ar}}});v.serializeActions=ve;var pe=(Ee,cr)=>k(void 0,void 0,void 0,function*(){const Br=yield fetch(Ee,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:"dontcare",method:"query",params:{request_type:"view_access_key_list",finality:"final",account_id:cr}}),headers:{"content-type":"application/json"}});return Br.ok===!1?[]:(yield Br.json()).result.keys});v.getPublicKeys=pe;var ye=(Ee,cr)=>{var Br,$r,Pr;if(Ee instanceof ce.HereProviderError)throw Ee;const Ar={payload:Ee instanceof Error?Ee.message:"UNKNOWN",status:ce.HereProviderStatus.FAILED,account_id:""};throw(Br=cr.onFailed)===null||Br===void 0||Br.call(cr,Ar),(Pr=($r=cr==null?void 0:cr.strategy)===null||$r===void 0?void 0:$r.onFailed)===null||Pr===void 0||Pr.call($r,Ar),Ee};v.internalThrow=ye;var me=(Ee,cr,Br)=>{const{permission:$r}=cr.access_key;if($r==="FullAccess")return!0;if($r.FunctionCall){const{receiver_id:Pr,method_names:Ar}=$r.FunctionCall;if(Pr===Ee&&Ar.includes("add_request_and_confirm"))return!0;if(Pr===Br.receiverId)return Br.actions.length!==1?!1:Br.actions.every(ur=>ur.type!=="FunctionCall"?!1:(!ur.params.deposit||ur.params.deposit.toString()==="0")&&(Ar.length===0||Ar.includes(ur.params.methodName)))}return!1};v.isValidAccessKey=me}}),require_crypt=__commonJS$1({"node_modules/crypt/crypt.js"(v,k){(function(){var ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ae={rotl:function(ce,fe){return ce<>>32-fe},rotr:function(ce,fe){return ce<<32-fe|ce>>>fe},endian:function(ce){if(ce.constructor==Number)return ae.rotl(ce,8)&16711935|ae.rotl(ce,24)&4278255360;for(var fe=0;fe0;ce--)fe.push(Math.floor(Math.random()*256));return fe},bytesToWords:function(ce){for(var fe=[],le=0,ve=0;le>>5]|=ce[le]<<24-ve%32;return fe},wordsToBytes:function(ce){for(var fe=[],le=0;le>>5]>>>24-le%32&255);return fe},bytesToHex:function(ce){for(var fe=[],le=0;le>>4).toString(16)),fe.push((ce[le]&15).toString(16));return fe.join("")},hexToBytes:function(ce){for(var fe=[],le=0;le>>6*(3-pe)&63)):fe.push("=");return fe.join("")},base64ToBytes:function(ce){ce=ce.replace(/[^A-Z0-9+\/]/ig,"");for(var fe=[],le=0,ve=0;le>>6-ve*2);return fe}};k.exports=ae})()}}),require_charenc=__commonJS$1({"node_modules/charenc/charenc.js"(v,k){var ie={utf8:{stringToBytes:function(ae){return ie.bin.stringToBytes(unescape(encodeURIComponent(ae)))},bytesToString:function(ae){return decodeURIComponent(escape(ie.bin.bytesToString(ae)))}},bin:{stringToBytes:function(ae){for(var ce=[],fe=0;fe>5]|=128<<24-ye%32,pe[(ye+64>>>9<<4)+15]=ye;for(var Ar=0;Ar>>31}var Qr=(Ee<<5|Ee>>>27)+Pr+(me[Gr]>>>0)+(Gr<20?(cr&Br|~cr&$r)+1518500249:Gr<40?(cr^Br^$r)+1859775393:Gr<60?(cr&Br|cr&$r|Br&$r)-1894007588:(cr^Br^$r)-899497514);Pr=$r,$r=Br,Br=cr<<30|cr>>>2,cr=Ee,Ee=Qr}Ee+=ur,cr+=jr,Br+=Mr,$r+=Lr,Pr+=Vr}return[Ee,cr,Br,$r,Pr]},le=function(ve,pe){var ye=ie.wordsToBytes(fe(ve));return pe&&pe.asBytes?ye:pe&&pe.asString?ce.bytesToString(ye):ie.bytesToHex(ye)};le._blocksize=16,le._digestsize=20,k.exports=le})()}}),require_methods=__commonJS$1({"node_modules/@here-wallet/core/build/here-provider/methods.js"(v){var k=v&&v.__awaiter||function(Ee,cr,Br,$r){function Pr(Ar){return Ar instanceof Br?Ar:new Br(function(ur){ur(Ar)})}return new(Br||(Br=Promise))(function(Ar,ur){function jr(Vr){try{Lr($r.next(Vr))}catch(Gr){ur(Gr)}}function Mr(Vr){try{Lr($r.throw(Vr))}catch(Gr){ur(Gr)}}function Lr(Vr){Vr.done?Ar(Vr.value):Pr(Vr.value).then(jr,Mr)}Lr(($r=$r.apply(Ee,cr||[])).next())})},ie=v&&v.__importDefault||function(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}};Object.defineProperty(v,"__esModule",{value:!0}),v.createRequest=v.deleteRequest=v.getResponse=v.getRequest=v.proxyApi=void 0;var ae=ie(require_sha1$1()),ce=ie((init_browser(),__toCommonJS$1(browser_exports))),fe=require_serialize$1(),le=require_utils2$1();v.proxyApi="https://h4n.app";var ve=(Ee,cr)=>k(void 0,void 0,void 0,function*(){const Br=yield fetch(`${v.proxyApi}/${Ee}/request`,{signal:cr,headers:{"content-type":"application/json"},method:"GET"});if(Br.ok===!1)throw Error(yield Br.text());const{data:$r}=yield Br.json();return JSON.parse((0,fe.base_decode)($r).toString("utf8"))});v.getRequest=ve;var pe=Ee=>k(void 0,void 0,void 0,function*(){var cr,Br,$r,Pr;const Ar=yield fetch(`${v.proxyApi}/${Ee}/response`,{headers:{"content-type":"application/json"},method:"GET"});if(Ar.ok===!1)throw Error(yield Ar.text());const{data:ur}=yield Ar.json(),jr=(cr=JSON.parse(ur))!==null&&cr!==void 0?cr:{};return{account_id:(Br=jr.account_id)!==null&&Br!==void 0?Br:"",payload:($r=jr.payload)!==null&&$r!==void 0?$r:"",status:(Pr=jr.status)!==null&&Pr!==void 0?Pr:-1,topic:jr.topic}});v.getResponse=pe;var ye=Ee=>k(void 0,void 0,void 0,function*(){const cr=yield fetch(`${v.proxyApi}/${Ee}`,{headers:{"content-type":"application/json"},method:"DELETE"});if(cr.ok===!1)throw Error(yield cr.text())});v.deleteRequest=ye;var me=(Ee,cr)=>k(void 0,void 0,void 0,function*(){const Br=(0,fe.base_encode)(JSON.stringify(Object.assign(Object.assign({},Ee),{_id:(0,ce.default)()}))),$r=(0,ae.default)(Br),Ar=Buffer.from($r,"hex").toString("base64").replaceAll("/","_").replaceAll("-","+").slice(0,13),ur=yield fetch(`${v.proxyApi}/${Ar}/request`,{method:"POST",signal:cr,body:JSON.stringify({topic_id:(0,le.getDeviceId)(),data:Br}),headers:{"content-type":"application/json"}});if(ur.ok===!1)throw Error(yield ur.text());return Ar});v.createRequest=me}}),require_here_provider=__commonJS$1({"node_modules/@here-wallet/core/build/here-provider/index.js"(v){var k=v&&v.__awaiter||function(ve,pe,ye,me){function Ee(cr){return cr instanceof ye?cr:new ye(function(Br){Br(cr)})}return new(ye||(ye=Promise))(function(cr,Br){function $r(ur){try{Ar(me.next(ur))}catch(jr){Br(jr)}}function Pr(ur){try{Ar(me.throw(ur))}catch(jr){Br(jr)}}function Ar(ur){ur.done?cr(ur.value):Ee(ur.value).then($r,Pr)}Ar((me=me.apply(ve,pe||[])).next())})},ie=v&&v.__rest||function(ve,pe){var ye={};for(var me in ve)Object.prototype.hasOwnProperty.call(ve,me)&&pe.indexOf(me)<0&&(ye[me]=ve[me]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,me=Object.getOwnPropertySymbols(ve);Eek(void 0,void 0,void 0,function*(){let{strategy:pe,request:ye,disableCleanupRequest:me,id:Ee,signal:cr}=ve,Br=ie(ve,["strategy","request","disableCleanupRequest","id","signal"]);return Ee!=null?ye=yield(0,fe.getRequest)(Ee,cr):Ee=yield(0,fe.createRequest)(ye,cr),new Promise(($r,Pr)=>{var Ar,ur;const jr=fe.proxyApi.replace("https","wss");let Mr=null,Lr=null;const Vr=()=>k(void 0,void 0,void 0,function*(){Mr=-1,clearInterval(Mr),Lr==null||Lr.close(),me!==!0&&(yield(0,fe.deleteRequest)(Ee))}),Gr=hn=>{var Yt,fn,Qt,Xt,Kr,be;switch(hn.status){case ce.HereProviderStatus.APPROVING:(Yt=Br.onApproving)===null||Yt===void 0||Yt.call(Br,hn),(fn=pe==null?void 0:pe.onApproving)===null||fn===void 0||fn.call(pe,hn);return;case ce.HereProviderStatus.FAILED:Vr(),Pr(new ce.HereProviderError(hn.payload)),(Qt=Br.onFailed)===null||Qt===void 0||Qt.call(Br,hn),(Xt=pe==null?void 0:pe.onFailed)===null||Xt===void 0||Xt.call(pe,hn);return;case ce.HereProviderStatus.SUCCESS:Vr(),$r(hn),(Kr=Br.onSuccess)===null||Kr===void 0||Kr.call(Br,hn),(be=pe==null?void 0:pe.onSuccess)===null||be===void 0||be.call(pe,hn);return}},Ur=hn=>{Gr({status:ce.HereProviderStatus.FAILED,payload:hn})};(Ar=Br.onRequested)===null||Ar===void 0||Ar.call(Br,Ee,ye,Ur),(ur=pe==null?void 0:pe.onRequested)===null||ur===void 0||ur.call(pe,Ee,ye,Ur),cr==null||cr.addEventListener("abort",()=>Ur());const Qr=()=>{Mr!==-1&&(Mr=setTimeout(()=>k(void 0,void 0,void 0,function*(){var hn,Yt;try{const fn=yield(0,fe.getResponse)(Ee);if(Mr===-1)return;Gr(fn),Qr()}catch(fn){const Qt=ce.HereProviderStatus.FAILED,Xt=fn instanceof Error?fn:void 0,Kr=Xt==null?void 0:Xt.message;Vr(),Pr(new ce.HereProviderError(Kr,Xt)),(hn=Br.onFailed)===null||hn===void 0||hn.call(Br,{status:Qt,payload:Kr}),(Yt=pe==null?void 0:pe.onFailed)===null||Yt===void 0||Yt.call(pe,{status:Qt,payload:Kr})}}),3e3))};if(Qr(),(0,ae.isMobile)()===!1){const hn=`${jr}/ws/${Ee}`;Lr=new WebSocket(hn),Lr.onmessage=Yt=>{if(Yt.data!=null)try{const fn=JSON.parse(Yt.data);Gr(fn)}catch{}}}})});v.proxyProvider=le}}),require_actions=__commonJS$1({"node_modules/@here-wallet/core/build/actions/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.createAction=v.parseArgs=void 0;var k=require_bn$1(),ie=require_browser_index2$1(),ae=le=>{if(le==="FullAccess")return ie.transactions.fullAccessKey();const{receiverId:ve,methodNames:pe=[]}=le,ye=le.allowance?new k.BN(le.allowance):void 0;return ie.transactions.functionCallAccessKey(ve,pe,ye)},ce=le=>typeof le=="string"?Buffer.from(le,"base64"):le;v.parseArgs=ce;var fe=le=>{switch(le.type){case"CreateAccount":return ie.transactions.createAccount();case"DeployContract":{const{code:ve}=le.params;return ie.transactions.deployContract(ve)}case"FunctionCall":{const{methodName:ve,args:pe,gas:ye,deposit:me}=le.params;return ie.transactions.functionCall(ve,(0,v.parseArgs)(pe),new k.BN(ye),new k.BN(me))}case"Transfer":{const{deposit:ve}=le.params;return ie.transactions.transfer(new k.BN(ve))}case"Stake":{const{stake:ve,publicKey:pe}=le.params;return ie.transactions.stake(new k.BN(ve),ie.utils.PublicKey.from(pe))}case"AddKey":{const{publicKey:ve,accessKey:pe}=le.params;return ie.transactions.addKey(ie.utils.PublicKey.from(ve),ae(pe.permission))}case"DeleteKey":{const{publicKey:ve}=le.params;return ie.transactions.deleteKey(ie.utils.PublicKey.from(ve))}case"DeleteAccount":{const{beneficiaryId:ve}=le.params;return ie.transactions.deleteAccount(ve)}default:throw new Error("Invalid action type")}};v.createAction=fe}}),require_WidgetStrategy=__commonJS$1({"node_modules/@here-wallet/core/build/WidgetStrategy.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.WidgetStrategy=v.defaultUrl=void 0;var k=ae=>{const ce=document.createElement("iframe");return ce.src=ae,ce.style.border="none",ce.style.zIndex="10000",ce.style.position="fixed",ce.style.display="none",ce.style.top="0",ce.style.left="0",ce.style.width="100%",ce.style.height="100%",document.body.appendChild(ce),ce};v.defaultUrl="https://my.herewallet.app/connector/index.html";var ie=class{constructor(ae={widget:v.defaultUrl,lazy:!1}){this.options={lazy:typeof ae=="object"&&ae.lazy||!1,widget:typeof ae=="string"?ae:ae.widget||v.defaultUrl},this.options.lazy||this.initIframe()}initIframe(){return ie.connector==null&&(ie.connector=k(this.options.widget),ie.connector.addEventListener("load",()=>{ie.isLoaded=!0})),ie.connector}onRequested(ae,ce,fe){const le=this.initIframe();le.style.display="block";const ve=()=>{var pe,ye,me;(pe=ie.connector)===null||pe===void 0||pe.removeEventListener("load",ve),(me=(ye=ie.connector)===null||ye===void 0?void 0:ye.contentWindow)===null||me===void 0||me.postMessage(JSON.stringify({type:"request",payload:{id:ae,request:ce}}),new URL(this.options.widget).origin)};ie.isLoaded?ve():le.addEventListener("load",ve),this.messageHandler=pe=>{try{if(pe.origin!==new URL(this.options.widget).origin)return;JSON.parse(pe.data).type==="reject"&&fe()}catch{}},window.addEventListener("message",this.messageHandler)}postMessage(ae){var ce;const fe=this.initIframe(),le=JSON.stringify(ae),ve=new URL(this.options.widget).origin;(ce=fe.contentWindow)===null||ce===void 0||ce.postMessage(le,ve)}onApproving(){this.postMessage({type:"approving"})}onSuccess(ae){console.log(ae),this.postMessage({type:"result",payload:{request:ae}}),this.close()}onFailed(ae){this.postMessage({type:"result",payload:{request:ae}}),this.close()}close(){this.messageHandler&&(window.removeEventListener("message",this.messageHandler),this.messageHandler=void 0),ie.connector&&(ie.connector.style.display="none")}};v.WidgetStrategy=ie,ie.isLoaded=!1}}),require_nep0314=__commonJS$1({"node_modules/@here-wallet/core/build/nep0314.js"(v){var k=v&&v.__createBinding||(Object.create?function(me,Ee,cr,Br){Br===void 0&&(Br=cr),Object.defineProperty(me,Br,{enumerable:!0,get:function(){return Ee[cr]}})}:function(me,Ee,cr,Br){Br===void 0&&(Br=cr),me[Br]=Ee[cr]}),ie=v&&v.__setModuleDefault||(Object.create?function(me,Ee){Object.defineProperty(me,"default",{enumerable:!0,value:Ee})}:function(me,Ee){me.default=Ee}),ae=v&&v.__importStar||function(me){if(me&&me.__esModule)return me;var Ee={};if(me!=null)for(var cr in me)cr!=="default"&&Object.prototype.hasOwnProperty.call(me,cr)&&k(Ee,me,cr);return ie(Ee,me),Ee},ce=v&&v.__importDefault||function(me){return me&&me.__esModule?me:{default:me}};Object.defineProperty(v,"__esModule",{value:!0}),v.verifySignature=v.authPayloadSchema=v.AuthPayload=void 0;var fe=ae(require_lib()),le=ce(require_sha256$2()),ve=require_utils$4(),pe=class{constructor({message:me,nonce:Ee,recipient:cr,callbackUrl:Br}){this.tag=2147484061,this.message=me,this.nonce=Ee,this.recipient=cr,Br&&(this.callbackUrl=Br)}};v.AuthPayload=pe,v.authPayloadSchema=new Map([[pe,{kind:"struct",fields:[["tag","u32"],["message","string"],["nonce",[32]],["recipient","string"],["callbackUrl",{kind:"option",type:"string"}]]}]]);function ye(me,Ee){const cr=new pe(me),Br=fe.serialize(v.authPayloadSchema,cr),$r=Uint8Array.from(le.default.sha256.array(Br));let Pr=new Uint8Array(Buffer.from(Ee.signature,"base64"));return ve.PublicKey.from(Ee.publicKey).verify($r,Pr)}v.verifySignature=ye}}),require_wallet=__commonJS$1({"node_modules/@here-wallet/core/build/wallet.js"(v){var k=v&&v.__awaiter||function(Mr,Lr,Vr,Gr){function Ur(Qr){return Qr instanceof Vr?Qr:new Vr(function(hn){hn(Qr)})}return new(Vr||(Vr=Promise))(function(Qr,hn){function Yt(Xt){try{Qt(Gr.next(Xt))}catch(Kr){hn(Kr)}}function fn(Xt){try{Qt(Gr.throw(Xt))}catch(Kr){hn(Kr)}}function Qt(Xt){Xt.done?Qr(Xt.value):Ur(Xt.value).then(Yt,fn)}Qt((Gr=Gr.apply(Mr,Lr||[])).next())})},ie=v&&v.__rest||function(Mr,Lr){var Vr={};for(var Gr in Mr)Object.prototype.hasOwnProperty.call(Mr,Gr)&&Lr.indexOf(Gr)<0&&(Vr[Gr]=Mr[Gr]);if(Mr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ur=0,Gr=Object.getOwnPropertySymbols(Mr);Urnew Pr.WidgetStrategy,defaultProvider:Ur=Br.proxyProvider}={}){this.authStorage=Vr,this.defaultProvider=Ur,this.defaultStrategy=Gr;const Qr=new ce.InMemorySigner(this.authStorage),hn=new fe.JsonRpcProvider({url:Mr!=null?Mr:`https://rpc.${Lr}.near.org`});this.connection=ce.Connection.fromConfig({jsvmAccountId:`jsvm.${Lr}`,provider:hn,networkId:Lr,signer:Qr})}get rpc(){return this.connection.provider}get signer(){return this.connection.signer}get networkId(){return this.connection.networkId}account(Mr){return k(this,void 0,void 0,function*(){const Lr=Mr!=null?Mr:yield this.authStorage.getActiveAccount(this.networkId);if(Lr==null)throw new ur("Wallet not signed in");return new ce.Account(this.connection,Lr)})}isSignedIn(){return k(this,void 0,void 0,function*(){return(yield this.authStorage.getActiveAccount(this.networkId))!=null})}signOut(){return k(this,void 0,void 0,function*(){const Mr=yield this.authStorage.getActiveAccount(this.networkId);if(Mr==null)throw new ur("Wallet not signed in");const Lr=yield this.authStorage.getKey(this.networkId,Mr);if(Lr!=null){const Vr=Lr.getPublicKey().toString();yield this.silentSignAndSendTransaction({receiverId:Mr,actions:[{type:"DeleteKey",params:{publicKey:Vr}}]}).catch(()=>{})}yield this.authStorage.removeKey(this.networkId,Mr)})}getHereBalance(Mr){return k(this,void 0,void 0,function*(){const Lr=yield this.account(Mr),Vr=this.networkId==="mainnet"?"here.storage.near":"here.storage.testnet",Gr=yield Lr.viewFunction({args:{account_id:Lr.accountId},methodName:"ft_balance_of",contractId:Vr}).catch(()=>"0");return new ye.default(Gr)})}getAvailableBalance(Mr){return k(this,void 0,void 0,function*(){const Vr=yield(yield this.account(Mr)).getAccountBalance(),Gr=yield this.getHereBalance();return new ye.default(Vr.available).add(new ye.default(Gr))})}getAccounts(){return k(this,void 0,void 0,function*(){return yield this.authStorage.getAccounts(this.networkId)})}getAccountId(){return k(this,void 0,void 0,function*(){const Mr=yield this.authStorage.getActiveAccount(this.networkId);if(Mr==null)throw new ur("Wallet not signed in");return Mr})}switchAccount(Mr){return k(this,void 0,void 0,function*(){if((yield this.authStorage.getKey(this.networkId,Mr))==null)throw new Error(`Account ${Mr} not signed in`);yield this.authStorage.setActiveAccount(this.networkId,Mr)})}signIn(Mr={}){var Lr,Vr,Gr,Ur,Qr,{contractId:hn,allowance:Yt,methodNames:fn=[]}=Mr,Qt=ie(Mr,["contractId","allowance","methodNames"]);return k(this,void 0,void 0,function*(){if(hn==null){const{accountId:Xt}=yield this.authenticate(Qt);return yield this.authStorage.setKey(this.networkId,Xt,le.KeyPairEd25519.fromRandom()),yield this.authStorage.setActiveAccount(this.networkId,Xt),Xt}Qt.strategy=(Lr=Qt.strategy)!==null&&Lr!==void 0?Lr:this.defaultStrategy(),Qt.provider=(Vr=Qt.provider)!==null&&Vr!==void 0?Vr:this.defaultProvider,(Gr=Qt.onInitialized)===null||Gr===void 0||Gr.call(Qt),(Qr=(Ur=Qt.strategy)===null||Ur===void 0?void 0:Ur.onInitialized)===null||Qr===void 0||Qr.call(Ur);try{const Xt=ce.KeyPair.fromRandom("ed25519"),Kr={receiverId:hn,methodNames:fn,allowance:Yt},be=yield Qt.provider(Object.assign(Object.assign({},Qt),{request:{type:"call",network:this.networkId,transactions:[{actions:[{type:"AddKey",params:{publicKey:Xt.getPublicKey().toString(),accessKey:{permission:Kr}}}]}]}}));if(be.account_id==null)throw Error("Transaction is failed");return yield this.authStorage.setKey(this.networkId,be.account_id,Xt),yield this.authStorage.setActiveAccount(this.networkId,be.account_id),be.account_id}catch(Xt){throw(0,cr.internalThrow)(Xt,Qt),Xt}})}silentSignAndSendTransaction({actions:Mr,receiverId:Lr,signerId:Vr}){return k(this,void 0,void 0,function*(){const Gr=yield this.account(Vr),Ur=yield this.authStorage.getKey(this.networkId,Gr.accountId);if(Ur==null)throw new ur;const Qr=Ur.getPublicKey(),hn=yield Gr.getAccessKeys(),Yt={receiverId:Lr,actions:Mr};if(hn.some(Qt=>Qt.public_key!==Qr.toString()?!1:(0,cr.isValidAccessKey)(Gr.accountId,Qt,Yt))===!1)throw new ur;return yield Gr.signAndSendTransaction({actions:Mr.map(Qt=>(0,$r.createAction)(Qt)),receiverId:Lr!=null?Lr:Gr.accountId})})}signAndSendTransaction(Mr){var Lr,Vr,Gr,Ur,Qr,hn,Yt,fn;return k(this,void 0,void 0,function*(){const{signerId:Qt,receiverId:Xt,actions:Kr}=Mr,kr=ie(Mr,["signerId","receiverId","actions"]);kr.strategy=(Lr=kr.strategy)!==null&&Lr!==void 0?Lr:this.defaultStrategy(),kr.provider=(Vr=kr.provider)!==null&&Vr!==void 0?Vr:this.defaultProvider,(Gr=kr.onInitialized)===null||Gr===void 0||Gr.call(kr),(Qr=(Ur=kr.strategy)===null||Ur===void 0?void 0:Ur.onInitialized)===null||Qr===void 0||Qr.call(Ur);try{const xr=yield this.silentSignAndSendTransaction({receiverId:Xt,actions:Kr,signerId:Qt}),Wr={status:Ee.HereProviderStatus.SUCCESS,payload:xr==null?void 0:xr.transaction_outcome.id};return(hn=kr.onSuccess)===null||hn===void 0||hn.call(kr,Wr),(fn=(Yt=kr.strategy)===null||Yt===void 0?void 0:Yt.onSuccess)===null||fn===void 0||fn.call(Yt,Wr),xr}catch(xr){try{if(!(xr instanceof ur)&&(xr==null?void 0:xr.type)!=="NotEnoughAllowance")throw(0,cr.internalThrow)(xr,kr),xr;const Wr=yield kr.provider(Object.assign(Object.assign({},kr),{request:{type:"call",transactions:[{actions:(0,cr.serializeActions)(Kr),receiverId:Xt,signerId:Qt}],network:this.networkId}}));if(Wr.payload==null||Wr.account_id==null)throw Error("Transaction not found, but maybe executed");return yield this.rpc.txStatus(Wr.payload,Wr.account_id)}catch(Wr){throw(0,cr.internalThrow)(Wr,kr),Wr}}})}verifyMessageNEP0413(Mr,Lr){return k(this,void 0,void 0,function*(){if(!(0,Ar.verifySignature)(Mr,Lr))throw Error("Incorrect signature");if(!(yield(yield this.account(Lr.accountId)).getAccessKeys()).some(hn=>!(hn.public_key!==Lr.publicKey||hn.access_key.permission!=="FullAccess")))throw Error("Signer public key is not full access");return!0})}authenticate(Mr={}){var Lr,Vr,Gr;return k(this,void 0,void 0,function*(){const Ur={nonce:(Lr=Mr.nonce)!==null&&Lr!==void 0?Lr:(0,pe.randomBytes)(32),recipient:(Vr=Mr.recipient)!==null&&Vr!==void 0?Vr:window.location.host,message:(Gr=Mr.message)!==null&&Gr!==void 0?Gr:"Authenticate"},Qr=yield this.signMessage(Object.assign(Object.assign({},Ur),Mr));return yield this.verifyMessageNEP0413(Ur,Qr),Qr})}signMessage(Mr){var Lr,Vr,Gr,Ur,Qr;return k(this,void 0,void 0,function*(){if(Mr.strategy=(Lr=Mr.strategy)!==null&&Lr!==void 0?Lr:this.defaultStrategy(),Mr.provider=(Vr=Mr.provider)!==null&&Vr!==void 0?Vr:this.defaultProvider,(Gr=Mr.onInitialized)===null||Gr===void 0||Gr.call(Mr),(Qr=(Ur=Mr.strategy)===null||Ur===void 0?void 0:Ur.onInitialized)===null||Qr===void 0||Qr.call(Ur),"receiver"in Mr)return yield this.legacySignMessage(Mr);const hn=yield Mr.provider(Object.assign(Object.assign({},Mr),{request:{type:"sign",message:Mr.message,recipient:Mr.recipient,nonce:Array.from(Mr.nonce),network:this.networkId}}));if((hn==null?void 0:hn.payload)==null)throw Error("Signature not found");const{publicKey:Yt,signature:fn,accountId:Qt}=JSON.parse(hn.payload);return{publicKey:Yt,signature:fn,accountId:Qt}})}legacySignMessage(Mr){var Lr,{message:Vr,receiver:Gr,nonce:Ur}=Mr,Qr=ie(Mr,["message","receiver","nonce"]);return k(this,void 0,void 0,function*(){if(Ur==null){let Yt=new Uint8Array(32);Ur=[...crypto.getRandomValues(Yt)]}const hn=yield(Lr=Qr.provider)===null||Lr===void 0?void 0:Lr.call(Qr,Object.assign(Object.assign({},Qr),{request:{type:"sign",message:Vr,receiver:Gr,nonce:Ur,network:this.networkId}}));if((hn==null?void 0:hn.payload)==null)throw Error("Signature not found");try{const{publicKey:Yt,signature:fn,accountId:Qt}=JSON.parse(hn.payload),Xt=new Uint8Array(Buffer.from(fn,"base64")),Kr=JSON.stringify({message:Vr,receiver:Gr,nonce:Ur}),be=new Uint8Array(ve.sha256.digest("NEP0413:"+Kr));if(le.PublicKey.from(Yt).verify(be,Xt)===!1)throw Error();const Wr=yield(yield this.account(Qt)).getAccessKeys(),Jt=Yt.toString();if(Wr.some(zr=>!(zr.public_key!==Jt||zr.access_key.permission!=="FullAccess"))===!1)throw Error();return{signature:new Uint8Array(Buffer.from(fn,"base64")),publicKey:le.PublicKey.from(Yt),message:"NEP0413:"+Kr,receiver:Gr,accountId:Qt,nonce:Ur}}catch{throw Error("Signature not correct")}})}signAndSendTransactions(Mr){var Lr,Vr,Gr,Ur,Qr,hn,Yt,fn,{transactions:Qt}=Mr,Xt=ie(Mr,["transactions"]);return k(this,void 0,void 0,function*(){Xt.strategy=(Lr=Xt.strategy)!==null&&Lr!==void 0?Lr:this.defaultStrategy(),Xt.provider=(Vr=Xt.provider)!==null&&Vr!==void 0?Vr:this.defaultProvider,(Gr=Xt.onInitialized)===null||Gr===void 0||Gr.call(Xt),(Qr=(Ur=Xt.strategy)===null||Ur===void 0?void 0:Ur.onInitialized)===null||Qr===void 0||Qr.call(Ur);let Kr=[];try{for(const xr of Qt){const Wr=yield this.silentSignAndSendTransaction(xr);Kr.push(Wr)}const be=Kr.map(xr=>xr.transaction_outcome.id).join(","),kr={status:Ee.HereProviderStatus.SUCCESS,payload:be};return(hn=Xt.onSuccess)===null||hn===void 0||hn.call(Xt,kr),(fn=(Yt=Xt.strategy)===null||Yt===void 0?void 0:Yt.onSuccess)===null||fn===void 0||fn.call(Yt,kr),Kr}catch(be){try{if(!(be instanceof ur)&&(be==null?void 0:be.type)!=="NotEnoughAllowance")throw(0,cr.internalThrow)(be,Xt),be;const kr=Qt.slice(Kr.length),xr=yield Xt.provider(Object.assign(Object.assign({},Xt),{request:{type:"call",transactions:kr.map(Jt=>Object.assign(Object.assign({},Jt),{actions:(0,cr.serializeActions)(Jt.actions)})),network:this.networkId}}));if(xr.payload==null||xr.account_id==null)throw Error("Transaction not found, but maybe executed");const Wr=xr.payload.split(",").map(Jt=>this.rpc.txStatus(Jt,xr.account_id));return yield Promise.all(Wr)}catch(kr){throw(0,cr.internalThrow)(kr,Xt),kr}}})}};v.HereWallet=jr}}),require_types$1=__commonJS$1({"node_modules/@here-wallet/core/build/actions/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0})}}),require_WindowStrategy=__commonJS$1({"node_modules/@here-wallet/core/build/WindowStrategy.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.WindowStrategy=void 0;var k=class{constructor(ie="https://my.herewallet.app"){this.endpoint=ie,this.signWindow=null,this.onFailed=()=>this.close(),this.onSuccess=()=>this.close()}onInitialized(){if(this.signWindow)return;const ie=window.innerWidth/2-420/2,ae=window.innerHeight/2-700/2;this.signWindow=window.open(`${this.endpoint}/loading`,"_blank",`popup=1,width=420,height=700,top=${ae},left=${ie}`)}onRequested(ie,ae,ce){this.signWindow!=null&&(this.unloadHandler=()=>{var fe;return(fe=this.signWindow)===null||fe===void 0?void 0:fe.close()},window.addEventListener("beforeunload",this.unloadHandler),this.signWindow.location=`${this.endpoint}/request/${ie}`,this.timerHandler=setInterval(()=>{var fe;!((fe=this.signWindow)===null||fe===void 0)&&fe.closed&&ce("CLOSED")},1e3))}close(){var ie;clearInterval(this.timerHandler),(ie=this.signWindow)===null||ie===void 0||ie.close(),this.signWindow=null,this.unloadHandler&&window.removeEventListener("beforeunload",this.unloadHandler)}};v.WindowStrategy=k}}),require_types2=__commonJS$1({"node_modules/@here-wallet/core/build/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0})}}),require_build$1=__commonJS$1({"node_modules/@here-wallet/core/build/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(ce,fe,le,ve){ve===void 0&&(ve=le),Object.defineProperty(ce,ve,{enumerable:!0,get:function(){return fe[le]}})}:function(ce,fe,le,ve){ve===void 0&&(ve=le),ce[ve]=fe[le]}),ie=v&&v.__exportStar||function(ce,fe){for(var le in ce)le!=="default"&&!Object.prototype.hasOwnProperty.call(fe,le)&&k(fe,ce,le)};Object.defineProperty(v,"__esModule",{value:!0}),v.HereWallet=void 0;var ae=require_wallet();Object.defineProperty(v,"HereWallet",{enumerable:!0,get:function(){return ae.HereWallet}}),ie(require_actions(),v),ie(require_HereKeyStore(),v),ie(require_JSONStorage(),v),ie(require_types$1(),v),ie(require_WidgetStrategy(),v),ie(require_WindowStrategy(),v),ie(require_provider(),v),ie(require_types2(),v),ie(require_utils2$1(),v),ie(require_here_provider(),v)}}),import_core=__toESM(require_build$1(),1),commonjsGlobal$7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$6=function(v){return v&&v.Math==Math&&v},global$a$5=check$6(typeof globalThis=="object"&&globalThis)||check$6(typeof window=="object"&&window)||check$6(typeof self=="object"&&self)||check$6(typeof commonjsGlobal$7=="object"&&commonjsGlobal$7)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$5={},fails$a$4=function(v){try{return!!v()}catch{return!0}},fails$9$5=fails$a$4,descriptors$6=!fails$9$5(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$8$5=fails$a$4,functionBindNative$6=!fails$8$5(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$1$6=functionBindNative$6,call$6$4=Function.prototype.call,functionCall$6=NATIVE_BIND$1$6?call$6$4.bind(call$6$4):function(){return call$6$4.apply(call$6$4,arguments)},objectPropertyIsEnumerable$5={},$propertyIsEnumerable$5={}.propertyIsEnumerable,getOwnPropertyDescriptor$1$5=Object.getOwnPropertyDescriptor,NASHORN_BUG$5=getOwnPropertyDescriptor$1$5&&!$propertyIsEnumerable$5.call({1:2},1);objectPropertyIsEnumerable$5.f=NASHORN_BUG$5?function v(k){var ie=getOwnPropertyDescriptor$1$5(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$5;var createPropertyDescriptor$2$5=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$9=functionBindNative$6,FunctionPrototype$1$6=Function.prototype,bind$b=FunctionPrototype$1$6.bind,call$5$5=FunctionPrototype$1$6.call,uncurryThis$a$5=NATIVE_BIND$9&&bind$b.bind(call$5$5,call$5$5),functionUncurryThis$6=NATIVE_BIND$9?function(v){return v&&uncurryThis$a$5(v)}:function(v){return v&&function(){return call$5$5.apply(v,arguments)}},uncurryThis$9$5=functionUncurryThis$6,toString$2$4=uncurryThis$9$5({}.toString),stringSlice$6=uncurryThis$9$5("".slice),classofRaw$1$5=function(v){return stringSlice$6(toString$2$4(v),8,-1)},uncurryThis$8$5=functionUncurryThis$6,fails$7$6=fails$a$4,classof$2$4=classofRaw$1$5,$Object$3$4=Object,split$5=uncurryThis$8$5("".split),indexedObject$5=fails$7$6(function(){return!$Object$3$4("z").propertyIsEnumerable(0)})?function(v){return classof$2$4(v)=="String"?split$5(v,""):$Object$3$4(v)}:$Object$3$4,$TypeError$5$6=TypeError,requireObjectCoercible$2$5=function(v){if(v==null)throw $TypeError$5$6("Can't call method on "+v);return v},IndexedObject$1$4=indexedObject$5,requireObjectCoercible$1$6=requireObjectCoercible$2$5,toIndexedObject$3$5=function(v){return IndexedObject$1$4(requireObjectCoercible$1$6(v))},isCallable$b$4=function(v){return typeof v=="function"},isCallable$a$6=isCallable$b$4,isObject$5$6=function(v){return typeof v=="object"?v!==null:isCallable$a$6(v)},global$9$6=global$a$5,isCallable$9$6=isCallable$b$4,aFunction$6=function(v){return isCallable$9$6(v)?v:void 0},getBuiltIn$3$5=function(v,k){return arguments.length<2?aFunction$6(global$9$6[v]):global$9$6[v]&&global$9$6[v][k]},uncurryThis$7$5=functionUncurryThis$6,objectIsPrototypeOf$6=uncurryThis$7$5({}.isPrototypeOf),getBuiltIn$2$6=getBuiltIn$3$5,engineUserAgent$6=getBuiltIn$2$6("navigator","userAgent")||"",global$8$6=global$a$5,userAgent$9=engineUserAgent$6,process$9=global$8$6.process,Deno$5=global$8$6.Deno,versions$6=process$9&&process$9.versions||Deno$5&&Deno$5.version,v8$6=versions$6&&versions$6.v8,match$6,version$7;v8$6&&(match$6=v8$6.split("."),version$7=match$6[0]>0&&match$6[0]<4?1:+(match$6[0]+match$6[1]));!version$7&&userAgent$9&&(match$6=userAgent$9.match(/Edge\/(\d+)/),(!match$6||match$6[1]>=74)&&(match$6=userAgent$9.match(/Chrome\/(\d+)/),match$6&&(version$7=+match$6[1])));var engineV8Version$6=version$7,V8_VERSION$7=engineV8Version$6,fails$6$6=fails$a$4,nativeSymbol$6=!!Object.getOwnPropertySymbols&&!fails$6$6(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$7&&V8_VERSION$7<41}),NATIVE_SYMBOL$1$6=nativeSymbol$6,useSymbolAsUid$6=NATIVE_SYMBOL$1$6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$1$6=getBuiltIn$3$5,isCallable$8$6=isCallable$b$4,isPrototypeOf$1$5=objectIsPrototypeOf$6,USE_SYMBOL_AS_UID$1$6=useSymbolAsUid$6,$Object$2$6=Object,isSymbol$2$6=USE_SYMBOL_AS_UID$1$6?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$1$6("Symbol");return isCallable$8$6(k)&&isPrototypeOf$1$5(k.prototype,$Object$2$6(v))},$String$2$5=String,tryToString$1$6=function(v){try{return $String$2$5(v)}catch{return"Object"}},isCallable$7$6=isCallable$b$4,tryToString$a=tryToString$1$6,$TypeError$4$6=TypeError,aCallable$1$6=function(v){if(isCallable$7$6(v))return v;throw $TypeError$4$6(tryToString$a(v)+" is not a function")},aCallable$d=aCallable$1$6,getMethod$1$6=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$d(ie)},call$4$6=functionCall$6,isCallable$6$6=isCallable$b$4,isObject$4$6=isObject$5$6,$TypeError$3$6=TypeError,ordinaryToPrimitive$1$6=function(v,k){var ie,ae;if(k==="string"&&isCallable$6$6(ie=v.toString)&&!isObject$4$6(ae=call$4$6(ie,v))||isCallable$6$6(ie=v.valueOf)&&!isObject$4$6(ae=call$4$6(ie,v))||k!=="string"&&isCallable$6$6(ie=v.toString)&&!isObject$4$6(ae=call$4$6(ie,v)))return ae;throw $TypeError$3$6("Can't convert object to primitive value")},shared$3$6={exports:{}},global$7$6=global$a$5,defineProperty$2$5=Object.defineProperty,defineGlobalProperty$3$5=function(v,k){try{defineProperty$2$5(global$7$6,v,{value:k,configurable:!0,writable:!0})}catch{global$7$6[v]=k}return k},global$6$6=global$a$5,defineGlobalProperty$2$6=defineGlobalProperty$3$5,SHARED$6="__core-js_shared__",store$3$6=global$6$6[SHARED$6]||defineGlobalProperty$2$6(SHARED$6,{}),sharedStore$6=store$3$6,store$2$6=sharedStore$6;(shared$3$6.exports=function(v,k){return store$2$6[v]||(store$2$6[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$8=requireObjectCoercible$2$5,$Object$1$6=Object,toObject$2$4=function(v){return $Object$1$6(requireObjectCoercible$8(v))},uncurryThis$6$6=functionUncurryThis$6,toObject$1$6=toObject$2$4,hasOwnProperty$6=uncurryThis$6$6({}.hasOwnProperty),hasOwnProperty_1$6=Object.hasOwn||function v(k,ie){return hasOwnProperty$6(toObject$1$6(k),ie)},uncurryThis$5$6=functionUncurryThis$6,id$8=0,postfix$6=Math.random(),toString$1$6=uncurryThis$5$6(1 .toString),uid$2$6=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$1$6(++id$8+postfix$6,36)},global$5$6=global$a$5,shared$2$6=shared$3$6.exports,hasOwn$7$4=hasOwnProperty_1$6,uid$1$6=uid$2$6,NATIVE_SYMBOL$7=nativeSymbol$6,USE_SYMBOL_AS_UID$7=useSymbolAsUid$6,WellKnownSymbolsStore$6=shared$2$6("wks"),Symbol$1$6=global$5$6.Symbol,symbolFor$6=Symbol$1$6&&Symbol$1$6.for,createWellKnownSymbol$6=USE_SYMBOL_AS_UID$7?Symbol$1$6:Symbol$1$6&&Symbol$1$6.withoutSetter||uid$1$6,wellKnownSymbol$3$5=function(v){if(!hasOwn$7$4(WellKnownSymbolsStore$6,v)||!(NATIVE_SYMBOL$7||typeof WellKnownSymbolsStore$6[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$7&&hasOwn$7$4(Symbol$1$6,v)?WellKnownSymbolsStore$6[v]=Symbol$1$6[v]:USE_SYMBOL_AS_UID$7&&symbolFor$6?WellKnownSymbolsStore$6[v]=symbolFor$6(k):WellKnownSymbolsStore$6[v]=createWellKnownSymbol$6(k)}return WellKnownSymbolsStore$6[v]},call$3$6=functionCall$6,isObject$3$6=isObject$5$6,isSymbol$1$6=isSymbol$2$6,getMethod$9=getMethod$1$6,ordinaryToPrimitive$7=ordinaryToPrimitive$1$6,wellKnownSymbol$2$5=wellKnownSymbol$3$5,$TypeError$2$6=TypeError,TO_PRIMITIVE$6=wellKnownSymbol$2$5("toPrimitive"),toPrimitive$1$6=function(v,k){if(!isObject$3$6(v)||isSymbol$1$6(v))return v;var ie=getMethod$9(v,TO_PRIMITIVE$6),ae;if(ie){if(k===void 0&&(k="default"),ae=call$3$6(ie,v,k),!isObject$3$6(ae)||isSymbol$1$6(ae))return ae;throw $TypeError$2$6("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$7(v,k)},toPrimitive$8=toPrimitive$1$6,isSymbol$9=isSymbol$2$6,toPropertyKey$2$5=function(v){var k=toPrimitive$8(v,"string");return isSymbol$9(k)?k:k+""},global$4$6=global$a$5,isObject$2$6=isObject$5$6,document2=global$4$6.document,EXISTS$1$6=isObject$2$6(document2)&&isObject$2$6(document2.createElement),documentCreateElement$7=function(v){return EXISTS$1$6?document2.createElement(v):{}},DESCRIPTORS$7$5=descriptors$6,fails$5$6=fails$a$4,createElement$7=documentCreateElement$7,ie8DomDefine$6=!DESCRIPTORS$7$5&&!fails$5$6(function(){return Object.defineProperty(createElement$7("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$6$5=descriptors$6,call$2$6=functionCall$6,propertyIsEnumerableModule$1$4=objectPropertyIsEnumerable$5,createPropertyDescriptor$1$6=createPropertyDescriptor$2$5,toIndexedObject$2$5=toIndexedObject$3$5,toPropertyKey$1$6=toPropertyKey$2$5,hasOwn$6$5=hasOwnProperty_1$6,IE8_DOM_DEFINE$1$5=ie8DomDefine$6,$getOwnPropertyDescriptor$1$5=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$5.f=DESCRIPTORS$6$5?$getOwnPropertyDescriptor$1$5:function v(k,ie){if(k=toIndexedObject$2$5(k),ie=toPropertyKey$1$6(ie),IE8_DOM_DEFINE$1$5)try{return $getOwnPropertyDescriptor$1$5(k,ie)}catch{}if(hasOwn$6$5(k,ie))return createPropertyDescriptor$1$6(!call$2$6(propertyIsEnumerableModule$1$4.f,k,ie),k[ie])};var objectDefineProperty$6={},DESCRIPTORS$5$6=descriptors$6,fails$4$6=fails$a$4,v8PrototypeDefineBug$6=DESCRIPTORS$5$6&&fails$4$6(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$1$6=isObject$5$6,$String$1$6=String,$TypeError$1$6=TypeError,anObject$4$4=function(v){if(isObject$1$6(v))return v;throw $TypeError$1$6($String$1$6(v)+" is not an object")},DESCRIPTORS$4$6=descriptors$6,IE8_DOM_DEFINE$7=ie8DomDefine$6,V8_PROTOTYPE_DEFINE_BUG$7=v8PrototypeDefineBug$6,anObject$3$5=anObject$4$4,toPropertyKey$a=toPropertyKey$2$5,$TypeError$h=TypeError,$defineProperty$6=Object.defineProperty,$getOwnPropertyDescriptor$7=Object.getOwnPropertyDescriptor,ENUMERABLE$6="enumerable",CONFIGURABLE$1$6="configurable",WRITABLE$6="writable";objectDefineProperty$6.f=DESCRIPTORS$4$6?V8_PROTOTYPE_DEFINE_BUG$7?function v(k,ie,ae){if(anObject$3$5(k),ie=toPropertyKey$a(ie),anObject$3$5(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$6 in ae&&!ae[WRITABLE$6]){var ce=$getOwnPropertyDescriptor$7(k,ie);ce&&ce[WRITABLE$6]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$6 in ae?ae[CONFIGURABLE$1$6]:ce[CONFIGURABLE$1$6],enumerable:ENUMERABLE$6 in ae?ae[ENUMERABLE$6]:ce[ENUMERABLE$6],writable:!1})}return $defineProperty$6(k,ie,ae)}:$defineProperty$6:function v(k,ie,ae){if(anObject$3$5(k),ie=toPropertyKey$a(ie),anObject$3$5(ae),IE8_DOM_DEFINE$7)try{return $defineProperty$6(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$h("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$3$6=descriptors$6,definePropertyModule$2$5=objectDefineProperty$6,createPropertyDescriptor$b=createPropertyDescriptor$2$5,createNonEnumerableProperty$2$5=DESCRIPTORS$3$6?function(v,k,ie){return definePropertyModule$2$5.f(v,k,createPropertyDescriptor$b(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$6={exports:{}},DESCRIPTORS$2$6=descriptors$6,hasOwn$5$5=hasOwnProperty_1$6,FunctionPrototype$8=Function.prototype,getDescriptor$6=DESCRIPTORS$2$6&&Object.getOwnPropertyDescriptor,EXISTS$7=hasOwn$5$5(FunctionPrototype$8,"name"),PROPER$6=EXISTS$7&&function v(){}.name==="something",CONFIGURABLE$7=EXISTS$7&&(!DESCRIPTORS$2$6||DESCRIPTORS$2$6&&getDescriptor$6(FunctionPrototype$8,"name").configurable),functionName$6={EXISTS:EXISTS$7,PROPER:PROPER$6,CONFIGURABLE:CONFIGURABLE$7},uncurryThis$4$6=functionUncurryThis$6,isCallable$5$6=isCallable$b$4,store$1$6=sharedStore$6,functionToString$6=uncurryThis$4$6(Function.toString);isCallable$5$6(store$1$6.inspectSource)||(store$1$6.inspectSource=function(v){return functionToString$6(v)});var inspectSource$2$6=store$1$6.inspectSource,global$3$6=global$a$5,isCallable$4$6=isCallable$b$4,inspectSource$1$6=inspectSource$2$6,WeakMap$1$6=global$3$6.WeakMap,nativeWeakMap$6=isCallable$4$6(WeakMap$1$6)&&/native code/.test(inspectSource$1$6(WeakMap$1$6)),shared$1$6=shared$3$6.exports,uid$9=uid$2$6,keys$5=shared$1$6("keys"),sharedKey$1$6=function(v){return keys$5[v]||(keys$5[v]=uid$9(v))},hiddenKeys$3$5={},NATIVE_WEAK_MAP$6=nativeWeakMap$6,global$2$6=global$a$5,uncurryThis$3$6=functionUncurryThis$6,isObject$g=isObject$5$6,createNonEnumerableProperty$1$6=createNonEnumerableProperty$2$5,hasOwn$4$6=hasOwnProperty_1$6,shared$9=sharedStore$6,sharedKey$9=sharedKey$1$6,hiddenKeys$2$5=hiddenKeys$3$5,OBJECT_ALREADY_INITIALIZED$6="Object already initialized",TypeError$1$6=global$2$6.TypeError,WeakMap$8=global$2$6.WeakMap,set$7,get$7,has$6,enforce$6=function(v){return has$6(v)?get$7(v):set$7(v,{})},getterFor$6=function(v){return function(k){var ie;if(!isObject$g(k)||(ie=get$7(k)).type!==v)throw TypeError$1$6("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$6||shared$9.state?(store$9=shared$9.state||(shared$9.state=new WeakMap$8),wmget$6=uncurryThis$3$6(store$9.get),wmhas$6=uncurryThis$3$6(store$9.has),wmset$6=uncurryThis$3$6(store$9.set),set$7=function(v,k){if(wmhas$6(store$9,v))throw new TypeError$1$6(OBJECT_ALREADY_INITIALIZED$6);return k.facade=v,wmset$6(store$9,v,k),k},get$7=function(v){return wmget$6(store$9,v)||{}},has$6=function(v){return wmhas$6(store$9,v)}):(STATE$6=sharedKey$9("state"),hiddenKeys$2$5[STATE$6]=!0,set$7=function(v,k){if(hasOwn$4$6(v,STATE$6))throw new TypeError$1$6(OBJECT_ALREADY_INITIALIZED$6);return k.facade=v,createNonEnumerableProperty$1$6(v,STATE$6,k),k},get$7=function(v){return hasOwn$4$6(v,STATE$6)?v[STATE$6]:{}},has$6=function(v){return hasOwn$4$6(v,STATE$6)});var store$9,wmget$6,wmhas$6,wmset$6,STATE$6,internalState$6={set:set$7,get:get$7,has:has$6,enforce:enforce$6,getterFor:getterFor$6},fails$3$6=fails$a$4,isCallable$3$6=isCallable$b$4,hasOwn$3$6=hasOwnProperty_1$6,DESCRIPTORS$1$6=descriptors$6,CONFIGURABLE_FUNCTION_NAME$8=functionName$6.CONFIGURABLE,inspectSource$a=inspectSource$2$6,InternalStateModule$a=internalState$6,enforceInternalState$8=InternalStateModule$a.enforce,getInternalState$a=InternalStateModule$a.get,defineProperty$1$6=Object.defineProperty,CONFIGURABLE_LENGTH$6=DESCRIPTORS$1$6&&!fails$3$6(function(){return defineProperty$1$6(function(){},"length",{value:8}).length!==8}),TEMPLATE$6=String(String).split("String"),makeBuiltIn$1$6=makeBuiltIn$2$6.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$3$6(v,"name")||CONFIGURABLE_FUNCTION_NAME$8&&v.name!==k)&&(DESCRIPTORS$1$6?defineProperty$1$6(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$6&&ie&&hasOwn$3$6(ie,"arity")&&v.length!==ie.arity&&defineProperty$1$6(v,"length",{value:ie.arity});try{ie&&hasOwn$3$6(ie,"constructor")&&ie.constructor?DESCRIPTORS$1$6&&defineProperty$1$6(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$8(v);return hasOwn$3$6(ae,"source")||(ae.source=TEMPLATE$6.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$6(function v(){return isCallable$3$6(this)&&getInternalState$a(this).source||inspectSource$a(this)},"toString");var isCallable$2$6=isCallable$b$4,definePropertyModule$1$6=objectDefineProperty$6,makeBuiltIn$8=makeBuiltIn$2$6.exports,defineGlobalProperty$1$6=defineGlobalProperty$3$5,defineBuiltIn$2$4=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$2$6(ie)&&makeBuiltIn$8(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$6(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$1$6.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$5={},ceil$5=Math.ceil,floor$8=Math.floor,mathTrunc$5=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$8:ceil$5)(ie)},trunc2$5=mathTrunc$5,toIntegerOrInfinity$2$5=function(v){var k=+v;return k!==k||k===0?0:trunc2$5(k)},toIntegerOrInfinity$1$5=toIntegerOrInfinity$2$5,max$6=Math.max,min$1$5=Math.min,toAbsoluteIndex$1$5=function(v,k){var ie=toIntegerOrInfinity$1$5(v);return ie<0?max$6(ie+k,0):min$1$5(ie,k)},toIntegerOrInfinity$a=toIntegerOrInfinity$2$5,min$6=Math.min,toLength$1$5=function(v){return v>0?min$6(toIntegerOrInfinity$a(v),9007199254740991):0},toLength$a=toLength$1$5,lengthOfArrayLike$1$5=function(v){return toLength$a(v.length)},toIndexedObject$1$5=toIndexedObject$3$5,toAbsoluteIndex$9=toAbsoluteIndex$1$5,lengthOfArrayLike$b=lengthOfArrayLike$1$5,createMethod$6=function(v){return function(k,ie,ae){var ce=toIndexedObject$1$5(k),fe=lengthOfArrayLike$b(ce),le=toAbsoluteIndex$9(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$5={includes:createMethod$6(!0),indexOf:createMethod$6(!1)},uncurryThis$2$6=functionUncurryThis$6,hasOwn$2$6=hasOwnProperty_1$6,toIndexedObject$b=toIndexedObject$3$5,indexOf$5=arrayIncludes$5.indexOf,hiddenKeys$1$5=hiddenKeys$3$5,push$6=uncurryThis$2$6([].push),objectKeysInternal$5=function(v,k){var ie=toIndexedObject$b(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$2$6(hiddenKeys$1$5,fe)&&hasOwn$2$6(ie,fe)&&push$6(ce,fe);for(;k.length>ae;)hasOwn$2$6(ie,fe=k[ae++])&&(~indexOf$5(ce,fe)||push$6(ce,fe));return ce},enumBugKeys$2$4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$4=objectKeysInternal$5,enumBugKeys$1$5=enumBugKeys$2$4,hiddenKeys$9=enumBugKeys$1$5.concat("length","prototype");objectGetOwnPropertyNames$5.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$4(k,hiddenKeys$9)};var objectGetOwnPropertySymbols$5={};objectGetOwnPropertySymbols$5.f=Object.getOwnPropertySymbols;var getBuiltIn$e=getBuiltIn$3$5,uncurryThis$1$6=functionUncurryThis$6,getOwnPropertyNamesModule$5=objectGetOwnPropertyNames$5,getOwnPropertySymbolsModule$1$4=objectGetOwnPropertySymbols$5,anObject$2$6=anObject$4$4,concat$1$4=uncurryThis$1$6([].concat),ownKeys$1$5=getBuiltIn$e("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$5.f(anObject$2$6(k)),ae=getOwnPropertySymbolsModule$1$4.f;return ae?concat$1$4(ie,ae(k)):ie},hasOwn$1$6=hasOwnProperty_1$6,ownKeys2$5=ownKeys$1$5,getOwnPropertyDescriptorModule$6=objectGetOwnPropertyDescriptor$5,definePropertyModule$c=objectDefineProperty$6,copyConstructorProperties$1$5=function(v,k,ie){for(var ae=ownKeys2$5(k),ce=definePropertyModule$c.f,fe=getOwnPropertyDescriptorModule$6.f,le=0;lefe;)for(var pe=IndexedObject$7(arguments[fe++]),ye=le?concat$7(objectKeys$6(pe),le(pe)):objectKeys$6(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$j||call$1$6(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$4,$$a=_export$5,assign2$4=objectAssign$4;$$a({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$4},{assign:assign2$4});function __awaiter$8(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var wellKnownSymbol$1$6=wellKnownSymbol$3$5,TO_STRING_TAG$1$5=wellKnownSymbol$1$6("toStringTag"),test$5={};test$5[TO_STRING_TAG$1$5]="z";var toStringTagSupport$5=String(test$5)==="[object z]",TO_STRING_TAG_SUPPORT$5=toStringTagSupport$5,isCallable$o=isCallable$b$4,classofRaw$7=classofRaw$1$5,wellKnownSymbol$k=wellKnownSymbol$3$5,TO_STRING_TAG$8=wellKnownSymbol$k("toStringTag"),$Object$a=Object,CORRECT_ARGUMENTS$5=classofRaw$7(function(){return arguments}())=="Arguments",tryGet$5=function(v,k){try{return v[k]}catch{}},classof$1$5=TO_STRING_TAG_SUPPORT$5?classofRaw$7:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$5(k=$Object$a(v),TO_STRING_TAG$8))=="string"?ie:CORRECT_ARGUMENTS$5?classofRaw$7(k):(ae=classofRaw$7(k))=="Object"&&isCallable$o(k.callee)?"Arguments":ae},classof$e=classof$1$5,$String$9=String,toString2$4=function(v){if(classof$e(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$9(v)},anObject$1$6=anObject$4$4,regexpFlags$4=function(){var v=anObject$1$6(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$k=functionCall$6,hasOwn2$6=hasOwnProperty_1$6,isPrototypeOf$a=objectIsPrototypeOf$6,regExpFlags$4=regexpFlags$4,RegExpPrototype$1$4=RegExp.prototype,regexpGetFlags$4=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$4)&&!hasOwn2$6(v,"flags")&&isPrototypeOf$a(RegExpPrototype$1$4,v)?call$k(regExpFlags$4,v):k},PROPER_FUNCTION_NAME$6=functionName$6.PROPER,defineBuiltIn$c=defineBuiltIn$2$4,anObject$g=anObject$4$4,$toString$4=toString2$4,fails$s=fails$a$4,getRegExpFlags$4=regexpGetFlags$4,TO_STRING$4="toString",RegExpPrototype$5=RegExp.prototype,n$ToString$4=RegExpPrototype$5[TO_STRING$4],NOT_GENERIC$4=fails$s(function(){return n$ToString$4.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$4=PROPER_FUNCTION_NAME$6&&n$ToString$4.name!=TO_STRING$4;(NOT_GENERIC$4||INCORRECT_NAME$4)&&defineBuiltIn$c(RegExp.prototype,TO_STRING$4,function(){var k=anObject$g(this),ie=$toString$4(k.source),ae=$toString$4(getRegExpFlags$4(k));return"/"+ie+"/"+ae},{unsafe:!0});var initHereWallet=v=>__awaiter$8(void 0,void 0,void 0,function*(){const{store:k,logger:ie,emitter:ae,options:ce,defaultProvider:fe,defaultStrategy:le}=v,ve=new import_core.HereWallet({networkId:ce.network.networkId,nodeUrl:ce.network.nodeUrl,defaultProvider:fe,defaultStrategy:le});function pe(){return __awaiter$8(this,void 0,void 0,function*(){ie.log("HereWallet:getAccounts");const ye=yield ve.getAccounts(),me=[];for(let Ee=0;Ee__awaiter$8(this,void 0,void 0,function*(){return{id:"here-wallet",type:"injected",metadata:{name:"Here Wallet",description:"Mobile wallet for NEAR Protocol",useUrlAccountImport:!0,downloadUrl:"https://herewallet.app",iconUrl:k,deprecated:v,available:!0},init:ce=>initHereWallet(Object.assign(Object.assign({},ce),{defaultStrategy:ie,defaultProvider:ae}))}})}var nearAPI$2=__toESM(require_browser_index2$1(),1),commonjsGlobal$6=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$5=function(v){return v&&v.Math==Math&&v},global$m=check$5(typeof globalThis=="object"&&globalThis)||check$5(typeof window=="object"&&window)||check$5(typeof self=="object"&&self)||check$5(typeof commonjsGlobal$6=="object"&&commonjsGlobal$6)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$4={},fails$j$2=function(v){try{return!!v()}catch{return!0}},fails$i$2=fails$j$2,descriptors$5=!fails$i$2(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$h$2=fails$j$2,functionBindNative$5=!fails$h$2(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$3=functionBindNative$5,call$i=Function.prototype.call,functionCall$5=NATIVE_BIND$3$3?call$i.bind(call$i):function(){return call$i.apply(call$i,arguments)},objectPropertyIsEnumerable$4={},$propertyIsEnumerable$4={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$1=Object.getOwnPropertyDescriptor,NASHORN_BUG$4=getOwnPropertyDescriptor$2$1&&!$propertyIsEnumerable$4.call({1:2},1);objectPropertyIsEnumerable$4.f=NASHORN_BUG$4?function v(k){var ie=getOwnPropertyDescriptor$2$1(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$4;var createPropertyDescriptor$3$2=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2$3=functionBindNative$5,FunctionPrototype$2$3=Function.prototype,bind$5$1=FunctionPrototype$2$3.bind,call$h$1=FunctionPrototype$2$3.call,uncurryThis$j$2=NATIVE_BIND$2$3&&bind$5$1.bind(call$h$1,call$h$1),functionUncurryThis$5=NATIVE_BIND$2$3?function(v){return v&&uncurryThis$j$2(v)}:function(v){return v&&function(){return call$h$1.apply(v,arguments)}},uncurryThis$i$2=functionUncurryThis$5,toString$5$1=uncurryThis$i$2({}.toString),stringSlice$4$1=uncurryThis$i$2("".slice),classofRaw$1$4=function(v){return stringSlice$4$1(toString$5$1(v),8,-1)},uncurryThis$h$2=functionUncurryThis$5,fails$g$2=fails$j$2,classof$6$2=classofRaw$1$4,$Object$4$2=Object,split$4=uncurryThis$h$2("".split),indexedObject$4=fails$g$2(function(){return!$Object$4$2("z").propertyIsEnumerable(0)})?function(v){return classof$6$2(v)=="String"?split$4(v,""):$Object$4$2(v)}:$Object$4$2,$TypeError$c$1=TypeError,requireObjectCoercible$4$2=function(v){if(v==null)throw $TypeError$c$1("Can't call method on "+v);return v},IndexedObject$1$3=indexedObject$4,requireObjectCoercible$3$2=requireObjectCoercible$4$2,toIndexedObject$5$2=function(v){return IndexedObject$1$3(requireObjectCoercible$3$2(v))},isCallable$m$1=function(v){return typeof v=="function"},isCallable$l$1=isCallable$m$1,isObject$7$3=function(v){return typeof v=="object"?v!==null:isCallable$l$1(v)},global$l$1=global$m,isCallable$k$1=isCallable$m$1,aFunction$5=function(v){return isCallable$k$1(v)?v:void 0},getBuiltIn$8$1=function(v,k){return arguments.length<2?aFunction$5(global$l$1[v]):global$l$1[v]&&global$l$1[v][k]},uncurryThis$g$2=functionUncurryThis$5,objectIsPrototypeOf$5=uncurryThis$g$2({}.isPrototypeOf),getBuiltIn$7$1=getBuiltIn$8$1,engineUserAgent$5=getBuiltIn$7$1("navigator","userAgent")||"",global$k$1=global$m,userAgent$3$1=engineUserAgent$5,process$3$1=global$k$1.process,Deno$1$2=global$k$1.Deno,versions$5=process$3$1&&process$3$1.versions||Deno$1$2&&Deno$1$2.version,v8$5=versions$5&&versions$5.v8,match$5,version$6;v8$5&&(match$5=v8$5.split("."),version$6=match$5[0]>0&&match$5[0]<4?1:+(match$5[0]+match$5[1]));!version$6&&userAgent$3$1&&(match$5=userAgent$3$1.match(/Edge\/(\d+)/),(!match$5||match$5[1]>=74)&&(match$5=userAgent$3$1.match(/Chrome\/(\d+)/),match$5&&(version$6=+match$5[1])));var engineV8Version$5=version$6,V8_VERSION$1$1=engineV8Version$5,fails$f$2=fails$j$2,nativeSymbol$5=!!Object.getOwnPropertySymbols&&!fails$f$2(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1$1&&V8_VERSION$1$1<41}),NATIVE_SYMBOL$1$5=nativeSymbol$5,useSymbolAsUid$5=NATIVE_SYMBOL$1$5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$6$3=getBuiltIn$8$1,isCallable$j$2=isCallable$m$1,isPrototypeOf$3$2=objectIsPrototypeOf$5,USE_SYMBOL_AS_UID$1$5=useSymbolAsUid$5,$Object$3$3=Object,isSymbol$2$5=USE_SYMBOL_AS_UID$1$5?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$3("Symbol");return isCallable$j$2(k)&&isPrototypeOf$3$2(k.prototype,$Object$3$3(v))},$String$3$2=String,tryToString$4$3=function(v){try{return $String$3$2(v)}catch{return"Object"}},isCallable$i$2=isCallable$m$1,tryToString$3$3=tryToString$4$3,$TypeError$b$2=TypeError,aCallable$7$1=function(v){if(isCallable$i$2(v))return v;throw $TypeError$b$2(tryToString$3$3(v)+" is not a function")},aCallable$6$1=aCallable$7$1,getMethod$4$1=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$6$1(ie)},call$g$2=functionCall$5,isCallable$h$3=isCallable$m$1,isObject$6$3=isObject$7$3,$TypeError$a$3=TypeError,ordinaryToPrimitive$1$5=function(v,k){var ie,ae;if(k==="string"&&isCallable$h$3(ie=v.toString)&&!isObject$6$3(ae=call$g$2(ie,v))||isCallable$h$3(ie=v.valueOf)&&!isObject$6$3(ae=call$g$2(ie,v))||k!=="string"&&isCallable$h$3(ie=v.toString)&&!isObject$6$3(ae=call$g$2(ie,v)))return ae;throw $TypeError$a$3("Can't convert object to primitive value")},shared$4$2={exports:{}},global$j$1=global$m,defineProperty$5$2=Object.defineProperty,defineGlobalProperty$3$4=function(v,k){try{defineProperty$5$2(global$j$1,v,{value:k,configurable:!0,writable:!0})}catch{global$j$1[v]=k}return k},global$i$2=global$m,defineGlobalProperty$2$5=defineGlobalProperty$3$4,SHARED$5="__core-js_shared__",store$3$5=global$i$2[SHARED$5]||defineGlobalProperty$2$5(SHARED$5,{}),sharedStore$5=store$3$5,store$2$5=sharedStore$5;(shared$4$2.exports=function(v,k){return store$2$5[v]||(store$2$5[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$2$4=requireObjectCoercible$4$2,$Object$2$5=Object,toObject$4$2=function(v){return $Object$2$5(requireObjectCoercible$2$4(v))},uncurryThis$f$2=functionUncurryThis$5,toObject$3$2=toObject$4$2,hasOwnProperty$5=uncurryThis$f$2({}.hasOwnProperty),hasOwnProperty_1$5=Object.hasOwn||function v(k,ie){return hasOwnProperty$5(toObject$3$2(k),ie)},uncurryThis$e$2=functionUncurryThis$5,id$7=0,postfix$5=Math.random(),toString$4$1=uncurryThis$e$2(1 .toString),uid$2$5=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$4$1(++id$7+postfix$5,36)},global$h$3=global$m,shared$3$5=shared$4$2.exports,hasOwn$a$2=hasOwnProperty_1$5,uid$1$5=uid$2$5,NATIVE_SYMBOL$6=nativeSymbol$5,USE_SYMBOL_AS_UID$6=useSymbolAsUid$5,WellKnownSymbolsStore$5=shared$3$5("wks"),Symbol$1$5=global$h$3.Symbol,symbolFor$5=Symbol$1$5&&Symbol$1$5.for,createWellKnownSymbol$5=USE_SYMBOL_AS_UID$6?Symbol$1$5:Symbol$1$5&&Symbol$1$5.withoutSetter||uid$1$5,wellKnownSymbol$g$2=function(v){if(!hasOwn$a$2(WellKnownSymbolsStore$5,v)||!(NATIVE_SYMBOL$6||typeof WellKnownSymbolsStore$5[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$6&&hasOwn$a$2(Symbol$1$5,v)?WellKnownSymbolsStore$5[v]=Symbol$1$5[v]:USE_SYMBOL_AS_UID$6&&symbolFor$5?WellKnownSymbolsStore$5[v]=symbolFor$5(k):WellKnownSymbolsStore$5[v]=createWellKnownSymbol$5(k)}return WellKnownSymbolsStore$5[v]},call$f$2=functionCall$5,isObject$5$5=isObject$7$3,isSymbol$1$5=isSymbol$2$5,getMethod$3$2=getMethod$4$1,ordinaryToPrimitive$6=ordinaryToPrimitive$1$5,wellKnownSymbol$f$2=wellKnownSymbol$g$2,$TypeError$9$3=TypeError,TO_PRIMITIVE$5=wellKnownSymbol$f$2("toPrimitive"),toPrimitive$1$5=function(v,k){if(!isObject$5$5(v)||isSymbol$1$5(v))return v;var ie=getMethod$3$2(v,TO_PRIMITIVE$5),ae;if(ie){if(k===void 0&&(k="default"),ae=call$f$2(ie,v,k),!isObject$5$5(ae)||isSymbol$1$5(ae))return ae;throw $TypeError$9$3("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$6(v,k)},toPrimitive$7=toPrimitive$1$5,isSymbol$8=isSymbol$2$5,toPropertyKey$2$4=function(v){var k=toPrimitive$7(v,"string");return isSymbol$8(k)?k:k+""},global$g$3=global$m,isObject$4$5=isObject$7$3,document$3$1=global$g$3.document,EXISTS$1$5=isObject$4$5(document$3$1)&&isObject$4$5(document$3$1.createElement),documentCreateElement$2$2=function(v){return EXISTS$1$5?document$3$1.createElement(v):{}},DESCRIPTORS$a$2=descriptors$5,fails$e$2=fails$j$2,createElement$1$1=documentCreateElement$2$2,ie8DomDefine$5=!DESCRIPTORS$a$2&&!fails$e$2(function(){return Object.defineProperty(createElement$1$1("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$9$2=descriptors$5,call$e$2=functionCall$5,propertyIsEnumerableModule$1$3=objectPropertyIsEnumerable$4,createPropertyDescriptor$2$4=createPropertyDescriptor$3$2,toIndexedObject$4$2=toIndexedObject$5$2,toPropertyKey$1$5=toPropertyKey$2$4,hasOwn$9$2=hasOwnProperty_1$5,IE8_DOM_DEFINE$1$4=ie8DomDefine$5,$getOwnPropertyDescriptor$1$4=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$4.f=DESCRIPTORS$9$2?$getOwnPropertyDescriptor$1$4:function v(k,ie){if(k=toIndexedObject$4$2(k),ie=toPropertyKey$1$5(ie),IE8_DOM_DEFINE$1$4)try{return $getOwnPropertyDescriptor$1$4(k,ie)}catch{}if(hasOwn$9$2(k,ie))return createPropertyDescriptor$2$4(!call$e$2(propertyIsEnumerableModule$1$3.f,k,ie),k[ie])};var objectDefineProperty$5={},DESCRIPTORS$8$2=descriptors$5,fails$d$2=fails$j$2,v8PrototypeDefineBug$5=DESCRIPTORS$8$2&&fails$d$2(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$3$5=isObject$7$3,$String$2$4=String,$TypeError$8$3=TypeError,anObject$e$1=function(v){if(isObject$3$5(v))return v;throw $TypeError$8$3($String$2$4(v)+" is not an object")},DESCRIPTORS$7$4=descriptors$5,IE8_DOM_DEFINE$6=ie8DomDefine$5,V8_PROTOTYPE_DEFINE_BUG$1$2=v8PrototypeDefineBug$5,anObject$d$1=anObject$e$1,toPropertyKey$9=toPropertyKey$2$4,$TypeError$7$3=TypeError,$defineProperty$5=Object.defineProperty,$getOwnPropertyDescriptor$6=Object.getOwnPropertyDescriptor,ENUMERABLE$5="enumerable",CONFIGURABLE$1$5="configurable",WRITABLE$5="writable";objectDefineProperty$5.f=DESCRIPTORS$7$4?V8_PROTOTYPE_DEFINE_BUG$1$2?function v(k,ie,ae){if(anObject$d$1(k),ie=toPropertyKey$9(ie),anObject$d$1(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$5 in ae&&!ae[WRITABLE$5]){var ce=$getOwnPropertyDescriptor$6(k,ie);ce&&ce[WRITABLE$5]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$5 in ae?ae[CONFIGURABLE$1$5]:ce[CONFIGURABLE$1$5],enumerable:ENUMERABLE$5 in ae?ae[ENUMERABLE$5]:ce[ENUMERABLE$5],writable:!1})}return $defineProperty$5(k,ie,ae)}:$defineProperty$5:function v(k,ie,ae){if(anObject$d$1(k),ie=toPropertyKey$9(ie),anObject$d$1(ae),IE8_DOM_DEFINE$6)try{return $defineProperty$5(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$7$3("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$6$4=descriptors$5,definePropertyModule$4$2=objectDefineProperty$5,createPropertyDescriptor$1$5=createPropertyDescriptor$3$2,createNonEnumerableProperty$5$2=DESCRIPTORS$6$4?function(v,k,ie){return definePropertyModule$4$2.f(v,k,createPropertyDescriptor$1$5(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$5={exports:{}},DESCRIPTORS$5$5=descriptors$5,hasOwn$8$3=hasOwnProperty_1$5,FunctionPrototype$1$5=Function.prototype,getDescriptor$5=DESCRIPTORS$5$5&&Object.getOwnPropertyDescriptor,EXISTS$6=hasOwn$8$3(FunctionPrototype$1$5,"name"),PROPER$5=EXISTS$6&&function v(){}.name==="something",CONFIGURABLE$6=EXISTS$6&&(!DESCRIPTORS$5$5||DESCRIPTORS$5$5&&getDescriptor$5(FunctionPrototype$1$5,"name").configurable),functionName$5={EXISTS:EXISTS$6,PROPER:PROPER$5,CONFIGURABLE:CONFIGURABLE$6},uncurryThis$d$3=functionUncurryThis$5,isCallable$g$3=isCallable$m$1,store$1$5=sharedStore$5,functionToString$5=uncurryThis$d$3(Function.toString);isCallable$g$3(store$1$5.inspectSource)||(store$1$5.inspectSource=function(v){return functionToString$5(v)});var inspectSource$4$1=store$1$5.inspectSource,global$f$3=global$m,isCallable$f$3=isCallable$m$1,inspectSource$3$3=inspectSource$4$1,WeakMap$1$5=global$f$3.WeakMap,nativeWeakMap$5=isCallable$f$3(WeakMap$1$5)&&/native code/.test(inspectSource$3$3(WeakMap$1$5)),shared$2$5=shared$4$2.exports,uid$8=uid$2$5,keys$4=shared$2$5("keys"),sharedKey$3$2=function(v){return keys$4[v]||(keys$4[v]=uid$8(v))},hiddenKeys$4$2={},NATIVE_WEAK_MAP$5=nativeWeakMap$5,global$e$3=global$m,uncurryThis$c$3=functionUncurryThis$5,isObject$2$5=isObject$7$3,createNonEnumerableProperty$4$2=createNonEnumerableProperty$5$2,hasOwn$7$3=hasOwnProperty_1$5,shared$1$5=sharedStore$5,sharedKey$2$2=sharedKey$3$2,hiddenKeys$3$4=hiddenKeys$4$2,OBJECT_ALREADY_INITIALIZED$5="Object already initialized",TypeError$2$3=global$e$3.TypeError,WeakMap$7=global$e$3.WeakMap,set$1$3,get$6,has$5,enforce$5=function(v){return has$5(v)?get$6(v):set$1$3(v,{})},getterFor$5=function(v){return function(k){var ie;if(!isObject$2$5(k)||(ie=get$6(k)).type!==v)throw TypeError$2$3("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$5||shared$1$5.state?(store$8=shared$1$5.state||(shared$1$5.state=new WeakMap$7),wmget$5=uncurryThis$c$3(store$8.get),wmhas$5=uncurryThis$c$3(store$8.has),wmset$5=uncurryThis$c$3(store$8.set),set$1$3=function(v,k){if(wmhas$5(store$8,v))throw new TypeError$2$3(OBJECT_ALREADY_INITIALIZED$5);return k.facade=v,wmset$5(store$8,v,k),k},get$6=function(v){return wmget$5(store$8,v)||{}},has$5=function(v){return wmhas$5(store$8,v)}):(STATE$5=sharedKey$2$2("state"),hiddenKeys$3$4[STATE$5]=!0,set$1$3=function(v,k){if(hasOwn$7$3(v,STATE$5))throw new TypeError$2$3(OBJECT_ALREADY_INITIALIZED$5);return k.facade=v,createNonEnumerableProperty$4$2(v,STATE$5,k),k},get$6=function(v){return hasOwn$7$3(v,STATE$5)?v[STATE$5]:{}},has$5=function(v){return hasOwn$7$3(v,STATE$5)});var store$8,wmget$5,wmhas$5,wmset$5,STATE$5,internalState$5={set:set$1$3,get:get$6,has:has$5,enforce:enforce$5,getterFor:getterFor$5},fails$c$2=fails$j$2,isCallable$e$3=isCallable$m$1,hasOwn$6$4=hasOwnProperty_1$5,DESCRIPTORS$4$5=descriptors$5,CONFIGURABLE_FUNCTION_NAME$1$2=functionName$5.CONFIGURABLE,inspectSource$2$5=inspectSource$4$1,InternalStateModule$2$2=internalState$5,enforceInternalState$7=InternalStateModule$2$2.enforce,getInternalState$2$2=InternalStateModule$2$2.get,defineProperty$4$2=Object.defineProperty,CONFIGURABLE_LENGTH$5=DESCRIPTORS$4$5&&!fails$c$2(function(){return defineProperty$4$2(function(){},"length",{value:8}).length!==8}),TEMPLATE$5=String(String).split("String"),makeBuiltIn$1$5=makeBuiltIn$2$5.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$6$4(v,"name")||CONFIGURABLE_FUNCTION_NAME$1$2&&v.name!==k)&&(DESCRIPTORS$4$5?defineProperty$4$2(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$5&&ie&&hasOwn$6$4(ie,"arity")&&v.length!==ie.arity&&defineProperty$4$2(v,"length",{value:ie.arity});try{ie&&hasOwn$6$4(ie,"constructor")&&ie.constructor?DESCRIPTORS$4$5&&defineProperty$4$2(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$7(v);return hasOwn$6$4(ae,"source")||(ae.source=TEMPLATE$5.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$5(function v(){return isCallable$e$3(this)&&getInternalState$2$2(this).source||inspectSource$2$5(this)},"toString");var isCallable$d$3=isCallable$m$1,definePropertyModule$3$3=objectDefineProperty$5,makeBuiltIn$7=makeBuiltIn$2$5.exports,defineGlobalProperty$1$5=defineGlobalProperty$3$4,defineBuiltIn$7$2=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$d$3(ie)&&makeBuiltIn$7(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$5(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$3$3.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$4={},ceil$4=Math.ceil,floor$1$2=Math.floor,mathTrunc$4=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$1$2:ceil$4)(ie)},trunc2$4=mathTrunc$4,toIntegerOrInfinity$4$2=function(v){var k=+v;return k!==k||k===0?0:trunc2$4(k)},toIntegerOrInfinity$3$2=toIntegerOrInfinity$4$2,max$1$2=Math.max,min$2$2=Math.min,toAbsoluteIndex$1$4=function(v,k){var ie=toIntegerOrInfinity$3$2(v);return ie<0?max$1$2(ie+k,0):min$2$2(ie,k)},toIntegerOrInfinity$2$4=toIntegerOrInfinity$4$2,min$1$4=Math.min,toLength$2$2=function(v){return v>0?min$1$4(toIntegerOrInfinity$2$4(v),9007199254740991):0},toLength$1$4=toLength$2$2,lengthOfArrayLike$2$3=function(v){return toLength$1$4(v.length)},toIndexedObject$3$4=toIndexedObject$5$2,toAbsoluteIndex$8=toAbsoluteIndex$1$4,lengthOfArrayLike$1$4=lengthOfArrayLike$2$3,createMethod$1$2=function(v){return function(k,ie,ae){var ce=toIndexedObject$3$4(k),fe=lengthOfArrayLike$1$4(ce),le=toAbsoluteIndex$8(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$4={includes:createMethod$1$2(!0),indexOf:createMethod$1$2(!1)},uncurryThis$b$3=functionUncurryThis$5,hasOwn$5$4=hasOwnProperty_1$5,toIndexedObject$2$4=toIndexedObject$5$2,indexOf$1$2=arrayIncludes$4.indexOf,hiddenKeys$2$4=hiddenKeys$4$2,push$1$2=uncurryThis$b$3([].push),objectKeysInternal$4=function(v,k){var ie=toIndexedObject$2$4(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$5$4(hiddenKeys$2$4,fe)&&hasOwn$5$4(ie,fe)&&push$1$2(ce,fe);for(;k.length>ae;)hasOwn$5$4(ie,fe=k[ae++])&&(~indexOf$1$2(ce,fe)||push$1$2(ce,fe));return ce},enumBugKeys$3$2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$3=objectKeysInternal$4,enumBugKeys$2$3=enumBugKeys$3$2,hiddenKeys$1$4=enumBugKeys$2$3.concat("length","prototype");objectGetOwnPropertyNames$4.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$3(k,hiddenKeys$1$4)};var objectGetOwnPropertySymbols$4={};objectGetOwnPropertySymbols$4.f=Object.getOwnPropertySymbols;var getBuiltIn$5$3=getBuiltIn$8$1,uncurryThis$a$4=functionUncurryThis$5,getOwnPropertyNamesModule$4=objectGetOwnPropertyNames$4,getOwnPropertySymbolsModule$1$3=objectGetOwnPropertySymbols$4,anObject$c$2=anObject$e$1,concat$2$1=uncurryThis$a$4([].concat),ownKeys$1$4=getBuiltIn$5$3("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$4.f(anObject$c$2(k)),ae=getOwnPropertySymbolsModule$1$3.f;return ae?concat$2$1(ie,ae(k)):ie},hasOwn$4$5=hasOwnProperty_1$5,ownKeys2$4=ownKeys$1$4,getOwnPropertyDescriptorModule$5=objectGetOwnPropertyDescriptor$4,definePropertyModule$2$4=objectDefineProperty$5,copyConstructorProperties$1$4=function(v,k,ie){for(var ae=ownKeys2$4(k),ce=definePropertyModule$2$4.f,fe=getOwnPropertyDescriptorModule$5.f,le=0;lefe;)for(var pe=IndexedObject$6(arguments[fe++]),ye=le?concat$1$3(objectKeys$1$3(pe),le(pe)):objectKeys$1$3(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$3$5||call$d$2(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$3,$$8$1=_export$4,assign2$3=objectAssign$3;$$8$1({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$3},{assign:assign2$3});var wellKnownSymbol$e$2=wellKnownSymbol$g$2,TO_STRING_TAG$3$2=wellKnownSymbol$e$2("toStringTag"),test$4={};test$4[TO_STRING_TAG$3$2]="z";var toStringTagSupport$4=String(test$4)==="[object z]",TO_STRING_TAG_SUPPORT$4=toStringTagSupport$4,isCallable$b$3=isCallable$m$1,classofRaw$6=classofRaw$1$4,wellKnownSymbol$d$2=wellKnownSymbol$g$2,TO_STRING_TAG$2$3=wellKnownSymbol$d$2("toStringTag"),$Object$1$5=Object,CORRECT_ARGUMENTS$4=classofRaw$6(function(){return arguments}())=="Arguments",tryGet$4=function(v,k){try{return v[k]}catch{}},classof$5$2=TO_STRING_TAG_SUPPORT$4?classofRaw$6:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$4(k=$Object$1$5(v),TO_STRING_TAG$2$3))=="string"?ie:CORRECT_ARGUMENTS$4?classofRaw$6(k):(ae=classofRaw$6(k))=="Object"&&isCallable$b$3(k.callee)?"Arguments":ae},classof$4$3=classof$5$2,$String$1$5=String,toString$3$2=function(v){if(classof$4$3(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$1$5(v)},anObject$b$2=anObject$e$1,regexpFlags$1$2=function(){var v=anObject$b$2(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$c$3=functionCall$5,hasOwn$3$5=hasOwnProperty_1$5,isPrototypeOf$2$3=objectIsPrototypeOf$5,regExpFlags$3=regexpFlags$1$2,RegExpPrototype$2$2=RegExp.prototype,regexpGetFlags$3=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$2$2)&&!hasOwn$3$5(v,"flags")&&isPrototypeOf$2$3(RegExpPrototype$2$2,v)?call$c$3(regExpFlags$3,v):k},PROPER_FUNCTION_NAME$1$2=functionName$5.PROPER,defineBuiltIn$5$2=defineBuiltIn$7$2,anObject$a$2=anObject$e$1,$toString$3=toString$3$2,fails$9$4=fails$j$2,getRegExpFlags$3=regexpGetFlags$3,TO_STRING$3="toString",RegExpPrototype$1$3=RegExp.prototype,n$ToString$3=RegExpPrototype$1$3[TO_STRING$3],NOT_GENERIC$3=fails$9$4(function(){return n$ToString$3.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$3=PROPER_FUNCTION_NAME$1$2&&n$ToString$3.name!=TO_STRING$3;(NOT_GENERIC$3||INCORRECT_NAME$3)&&defineBuiltIn$5$2(RegExp.prototype,TO_STRING$3,function(){var k=anObject$a$2(this),ie=$toString$3(k.source),ae=$toString$3(getRegExpFlags$3(k));return"/"+ie+"/"+ae},{unsafe:!0});var objectDefineProperties$2={},DESCRIPTORS$2$5=descriptors$5,V8_PROTOTYPE_DEFINE_BUG$6=v8PrototypeDefineBug$5,definePropertyModule$1$5=objectDefineProperty$5,anObject$9$2=anObject$e$1,toIndexedObject$1$4=toIndexedObject$5$2,objectKeys$5=objectKeys$2$2;objectDefineProperties$2.f=DESCRIPTORS$2$5&&!V8_PROTOTYPE_DEFINE_BUG$6?Object.defineProperties:function v(k,ie){anObject$9$2(k);for(var ae=toIndexedObject$1$4(ie),ce=objectKeys$5(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$1$5.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$4$3=getBuiltIn$8$1,html$2$1=getBuiltIn$4$3("document","documentElement"),anObject$8$3=anObject$e$1,definePropertiesModule$2=objectDefineProperties$2,enumBugKeys$7=enumBugKeys$3$2,hiddenKeys$8=hiddenKeys$4$2,html$1$3=html$2$1,documentCreateElement$1$2=documentCreateElement$2$2,sharedKey$1$5=sharedKey$3$2,GT$2=">",LT$2="<",PROTOTYPE$3="prototype",SCRIPT$2="script",IE_PROTO$1$2=sharedKey$1$5("IE_PROTO"),EmptyConstructor$2=function(){},scriptTag$2=function(v){return LT$2+SCRIPT$2+GT$2+v+LT$2+"/"+SCRIPT$2+GT$2},NullProtoObjectViaActiveX$2=function(v){v.write(scriptTag$2("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$2=function(){var v=documentCreateElement$1$2("iframe"),k="java"+SCRIPT$2+":",ie;return v.style.display="none",html$1$3.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$2("document.F=Object")),ie.close(),ie.F},activeXDocument$2,NullProtoObject$2=function(){try{activeXDocument$2=new ActiveXObject("htmlfile")}catch{}NullProtoObject$2=typeof document<"u"?document.domain&&activeXDocument$2?NullProtoObjectViaActiveX$2(activeXDocument$2):NullProtoObjectViaIFrame$2():NullProtoObjectViaActiveX$2(activeXDocument$2);for(var v=enumBugKeys$7.length;v--;)delete NullProtoObject$2[PROTOTYPE$3][enumBugKeys$7[v]];return NullProtoObject$2()};hiddenKeys$8[IE_PROTO$1$2]=!0;var objectCreate$2=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$2[PROTOTYPE$3]=anObject$8$3(k),ae=new EmptyConstructor$2,EmptyConstructor$2[PROTOTYPE$3]=null,ae[IE_PROTO$1$2]=k):ae=NullProtoObject$2(),ie===void 0?ae:definePropertiesModule$2.f(ae,ie)},wellKnownSymbol$c$2=wellKnownSymbol$g$2,create$2$2=objectCreate$2,defineProperty$2$4=objectDefineProperty$5.f,UNSCOPABLES$2=wellKnownSymbol$c$2("unscopables"),ArrayPrototype$1$2=Array.prototype;ArrayPrototype$1$2[UNSCOPABLES$2]==null&&defineProperty$2$4(ArrayPrototype$1$2,UNSCOPABLES$2,{configurable:!0,value:create$2$2(null)});var addToUnscopables$1$2=function(v){ArrayPrototype$1$2[UNSCOPABLES$2][v]=!0},iterators$3={},fails$8$4=fails$j$2,correctPrototypeGetter$2=!fails$8$4(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype}),hasOwn$2$5=hasOwnProperty_1$5,isCallable$a$5=isCallable$m$1,toObject$1$5=toObject$4$2,sharedKey$8=sharedKey$3$2,CORRECT_PROTOTYPE_GETTER$2=correctPrototypeGetter$2,IE_PROTO$3=sharedKey$8("IE_PROTO"),$Object$9=Object,ObjectPrototype$4=$Object$9.prototype,objectGetPrototypeOf$2=CORRECT_PROTOTYPE_GETTER$2?$Object$9.getPrototypeOf:function(v){var k=toObject$1$5(v);if(hasOwn$2$5(k,IE_PROTO$3))return k[IE_PROTO$3];var ie=k.constructor;return isCallable$a$5(ie)&&k instanceof ie?ie.prototype:k instanceof $Object$9?ObjectPrototype$4:null},fails$7$5=fails$j$2,isCallable$9$5=isCallable$m$1,getPrototypeOf$1$2=objectGetPrototypeOf$2,defineBuiltIn$4$2=defineBuiltIn$7$2,wellKnownSymbol$b$2=wellKnownSymbol$g$2,ITERATOR$5$2=wellKnownSymbol$b$2("iterator"),BUGGY_SAFARI_ITERATORS$1$2=!1,IteratorPrototype$2$2,PrototypeOfArrayIteratorPrototype$2,arrayIterator$2;[].keys&&(arrayIterator$2=[].keys(),"next"in arrayIterator$2?(PrototypeOfArrayIteratorPrototype$2=getPrototypeOf$1$2(getPrototypeOf$1$2(arrayIterator$2)),PrototypeOfArrayIteratorPrototype$2!==Object.prototype&&(IteratorPrototype$2$2=PrototypeOfArrayIteratorPrototype$2)):BUGGY_SAFARI_ITERATORS$1$2=!0);var NEW_ITERATOR_PROTOTYPE$2=IteratorPrototype$2$2==null||fails$7$5(function(){var v={};return IteratorPrototype$2$2[ITERATOR$5$2].call(v)!==v});NEW_ITERATOR_PROTOTYPE$2&&(IteratorPrototype$2$2={});isCallable$9$5(IteratorPrototype$2$2[ITERATOR$5$2])||defineBuiltIn$4$2(IteratorPrototype$2$2,ITERATOR$5$2,function(){return this});var iteratorsCore$2={IteratorPrototype:IteratorPrototype$2$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1$2},defineProperty$1$5=objectDefineProperty$5.f,hasOwn$1$5=hasOwnProperty_1$5,wellKnownSymbol$a$3=wellKnownSymbol$g$2,TO_STRING_TAG$1$4=wellKnownSymbol$a$3("toStringTag"),setToStringTag$3$2=function(v,k,ie){v&&!ie&&(v=v.prototype),v&&!hasOwn$1$5(v,TO_STRING_TAG$1$4)&&defineProperty$1$5(v,TO_STRING_TAG$1$4,{configurable:!0,value:k})},IteratorPrototype$1$2=iteratorsCore$2.IteratorPrototype,create$1$2=objectCreate$2,createPropertyDescriptor$a=createPropertyDescriptor$3$2,setToStringTag$2$2=setToStringTag$3$2,Iterators$4$2=iterators$3,returnThis$1$2=function(){return this},createIteratorConstructor$1$2=function(v,k,ie,ae){var ce=k+" Iterator";return v.prototype=create$1$2(IteratorPrototype$1$2,{next:createPropertyDescriptor$a(+!ae,ie)}),setToStringTag$2$2(v,ce,!1),Iterators$4$2[ce]=returnThis$1$2,v},isCallable$8$5=isCallable$m$1,$String$8=String,$TypeError$6$3=TypeError,aPossiblePrototype$1$3=function(v){if(typeof v=="object"||isCallable$8$5(v))return v;throw $TypeError$6$3("Can't set "+$String$8(v)+" as a prototype")},uncurryThis$8$4=functionUncurryThis$5,anObject$7$3=anObject$e$1,aPossiblePrototype$4=aPossiblePrototype$1$3,objectSetPrototypeOf$3=Object.setPrototypeOf||("__proto__"in{}?function(){var v=!1,k={},ie;try{ie=uncurryThis$8$4(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),ie(k,[]),v=k instanceof Array}catch{}return function(ce,fe){return anObject$7$3(ce),aPossiblePrototype$4(fe),v?ie(ce,fe):ce.__proto__=fe,ce}}():void 0),$$7$1=_export$4,call$b$3=functionCall$5,FunctionName$3=functionName$5,isCallable$7$5=isCallable$m$1,createIteratorConstructor$3=createIteratorConstructor$1$2,getPrototypeOf$5=objectGetPrototypeOf$2,setPrototypeOf$1$2=objectSetPrototypeOf$3,setToStringTag$1$3=setToStringTag$3$2,createNonEnumerableProperty$2$4=createNonEnumerableProperty$5$2,defineBuiltIn$3$3=defineBuiltIn$7$2,wellKnownSymbol$9$3=wellKnownSymbol$g$2,Iterators$3$2=iterators$3,IteratorsCore$2=iteratorsCore$2,PROPER_FUNCTION_NAME$5=FunctionName$3.PROPER,CONFIGURABLE_FUNCTION_NAME$7=FunctionName$3.CONFIGURABLE,IteratorPrototype$4=IteratorsCore$2.IteratorPrototype,BUGGY_SAFARI_ITERATORS$3=IteratorsCore$2.BUGGY_SAFARI_ITERATORS,ITERATOR$4$2=wellKnownSymbol$9$3("iterator"),KEYS$2="keys",VALUES$2="values",ENTRIES$2="entries",returnThis$3=function(){return this},defineIterator$1$2=function(v,k,ie,ae,ce,fe,le){createIteratorConstructor$3(ie,k,ae);var ve=function(ur){if(ur===ce&&cr)return cr;if(!BUGGY_SAFARI_ITERATORS$3&&ur in me)return me[ur];switch(ur){case KEYS$2:return function(){return new ie(this,ur)};case VALUES$2:return function(){return new ie(this,ur)};case ENTRIES$2:return function(){return new ie(this,ur)}}return function(){return new ie(this)}},pe=k+" Iterator",ye=!1,me=v.prototype,Ee=me[ITERATOR$4$2]||me["@@iterator"]||ce&&me[ce],cr=!BUGGY_SAFARI_ITERATORS$3&&Ee||ve(ce),Br=k=="Array"&&me.entries||Ee,$r,Pr,Ar;if(Br&&($r=getPrototypeOf$5(Br.call(new v)),$r!==Object.prototype&&$r.next&&(getPrototypeOf$5($r)!==IteratorPrototype$4&&(setPrototypeOf$1$2?setPrototypeOf$1$2($r,IteratorPrototype$4):isCallable$7$5($r[ITERATOR$4$2])||defineBuiltIn$3$3($r,ITERATOR$4$2,returnThis$3)),setToStringTag$1$3($r,pe,!0))),PROPER_FUNCTION_NAME$5&&ce==VALUES$2&&Ee&&Ee.name!==VALUES$2&&(CONFIGURABLE_FUNCTION_NAME$7?createNonEnumerableProperty$2$4(me,"name",VALUES$2):(ye=!0,cr=function(){return call$b$3(Ee,this)})),ce)if(Pr={values:ve(VALUES$2),keys:fe?cr:ve(KEYS$2),entries:ve(ENTRIES$2)},le)for(Ar in Pr)(BUGGY_SAFARI_ITERATORS$3||ye||!(Ar in me))&&defineBuiltIn$3$3(me,Ar,Pr[Ar]);else $$7$1({target:k,proto:!0,forced:BUGGY_SAFARI_ITERATORS$3||ye},Pr);return me[ITERATOR$4$2]!==cr&&defineBuiltIn$3$3(me,ITERATOR$4$2,cr,{name:ce}),Iterators$3$2[k]=cr,Pr},toIndexedObject$a=toIndexedObject$5$2,addToUnscopables$3=addToUnscopables$1$2,Iterators$2$2=iterators$3,InternalStateModule$1$3=internalState$5,defineProperty3$4=objectDefineProperty$5.f,defineIterator$3=defineIterator$1$2,DESCRIPTORS$1$5=descriptors$5,ARRAY_ITERATOR$2="Array Iterator",setInternalState$1$2=InternalStateModule$1$3.set,getInternalState$1$2=InternalStateModule$1$3.getterFor(ARRAY_ITERATOR$2),es_array_iterator$1=defineIterator$3(Array,"Array",function(v,k){setInternalState$1$2(this,{type:ARRAY_ITERATOR$2,target:toIndexedObject$a(v),index:0,kind:k})},function(){var v=getInternalState$1$2(this),k=v.target,ie=v.kind,ae=v.index++;return!k||ae>=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$2=Iterators$2$2.Arguments=Iterators$2$2.Array;addToUnscopables$3("keys");addToUnscopables$3("values");addToUnscopables$3("entries");if(DESCRIPTORS$1$5&&values$2.name!=="values")try{defineProperty3$4(values$2,"name",{value:"values"})}catch(v){}var classof$3$3=classofRaw$1$4,global$c$3=global$m,engineIsNode$1=classof$3$3(global$c$3.process)=="process",getBuiltIn$3$4=getBuiltIn$8$1,definePropertyModule$b=objectDefineProperty$5,wellKnownSymbol$8$3=wellKnownSymbol$g$2,DESCRIPTORS$i=descriptors$5,SPECIES$3$2=wellKnownSymbol$8$3("species"),setSpecies$1$3=function(v){var k=getBuiltIn$3$4(v),ie=definePropertyModule$b.f;DESCRIPTORS$i&&k&&!k[SPECIES$3$2]&&ie(k,SPECIES$3$2,{configurable:!0,get:function(){return this}})},isPrototypeOf$1$4=objectIsPrototypeOf$5,$TypeError$5$5=TypeError,anInstance$1$3=function(v,k){if(isPrototypeOf$1$4(k,v))return v;throw $TypeError$5$5("Incorrect invocation")},uncurryThis$7$4=functionUncurryThis$5,fails$6$5=fails$j$2,isCallable$6$5=isCallable$m$1,classof$2$3=classof$5$2,getBuiltIn$2$5=getBuiltIn$8$1,inspectSource$1$5=inspectSource$4$1,noop$3=function(){},empty$3=[],construct$3=getBuiltIn$2$5("Reflect","construct"),constructorRegExp$3=/^\s*(?:class|function)\b/,exec$1$2=uncurryThis$7$4(constructorRegExp$3.exec),INCORRECT_TO_STRING$3=!constructorRegExp$3.exec(noop$3),isConstructorModern$3=function v(k){if(!isCallable$6$5(k))return!1;try{return construct$3(noop$3,empty$3,k),!0}catch{return!1}},isConstructorLegacy$3=function v(k){if(!isCallable$6$5(k))return!1;switch(classof$2$3(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING$3||!!exec$1$2(constructorRegExp$3,inspectSource$1$5(k))}catch{return!0}};isConstructorLegacy$3.sham=!0;var isConstructor$1$3=!construct$3||fails$6$5(function(){var v;return isConstructorModern$3(isConstructorModern$3.call)||!isConstructorModern$3(Object)||!isConstructorModern$3(function(){v=!0})||v})?isConstructorLegacy$3:isConstructorModern$3,isConstructor3$3=isConstructor$1$3,tryToString$2$3=tryToString$4$3,$TypeError$4$5=TypeError,aConstructor$1$3=function(v){if(isConstructor3$3(v))return v;throw $TypeError$4$5(tryToString$2$3(v)+" is not a constructor")},anObject$6$3=anObject$e$1,aConstructor$5=aConstructor$1$3,wellKnownSymbol$7$3=wellKnownSymbol$g$2,SPECIES$2$3=wellKnownSymbol$7$3("species"),speciesConstructor$1$3=function(v,k){var ie=anObject$6$3(v).constructor,ae;return ie===void 0||(ae=anObject$6$3(ie)[SPECIES$2$3])==null?k:aConstructor$5(ae)},NATIVE_BIND$1$5=functionBindNative$5,FunctionPrototype$7=Function.prototype,apply$2$2=FunctionPrototype$7.apply,call$a$3=FunctionPrototype$7.call,functionApply$3=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$1$5?call$a$3.bind(apply$2$2):function(){return call$a$3.apply(apply$2$2,arguments)}),uncurryThis$6$5=functionUncurryThis$5,aCallable$5$1=aCallable$7$1,NATIVE_BIND$8=functionBindNative$5,bind$4$1=uncurryThis$6$5(uncurryThis$6$5.bind),functionBindContext$3=function(v,k){return aCallable$5$1(v),k===void 0?v:NATIVE_BIND$8?bind$4$1(v,k):function(){return v.apply(k,arguments)}},uncurryThis$5$5=functionUncurryThis$5,arraySlice$1$3=uncurryThis$5$5([].slice),$TypeError$3$5=TypeError,validateArgumentsLength$1$1=function(v,k){if(v=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3$1(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$1$3]=ae,SUBCLASSING$1=ie.then(function(){})instanceof ae,SUBCLASSING$1?!k&&IS_BROWSER$1&&!NATIVE_PROMISE_REJECTION_EVENT$1$1:!0}),promiseConstructorDetection$1={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5$1,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1$1,SUBCLASSING:SUBCLASSING$1},newPromiseCapability$2$1={},aCallable$4$3=aCallable$7$1,PromiseCapability$1=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$3(k),this.reject=aCallable$4$3(ie)};newPromiseCapability$2$1.f=function(v){return new PromiseCapability$1(v)};var $$6$1=_export$4,IS_NODE$3=engineIsNode$1,global$5$5=global$m,call$9$3=functionCall$5,defineBuiltIn$2$3=defineBuiltIn$7$2,setPrototypeOf$7=objectSetPrototypeOf$3,setToStringTag$6=setToStringTag$3$2,setSpecies$4=setSpecies$1$3,aCallable$3$3=aCallable$7$1,isCallable$3$5=isCallable$m$1,isObject$1$5=isObject$7$3,anInstance$5=anInstance$1$3,speciesConstructor$4=speciesConstructor$1$3,task$2=task$1$1.set,microtask$2=microtask$1$1,hostReportErrors$2=hostReportErrors$1$1,perform$2$1=perform$3$1,Queue$2=queue$2,InternalStateModule$9=internalState$5,NativePromiseConstructor$2$1=promiseNativeConstructor$1,PromiseConstructorDetection$1=promiseConstructorDetection$1,newPromiseCapabilityModule$3$1=newPromiseCapability$2$1,PROMISE$1="Promise",FORCED_PROMISE_CONSTRUCTOR$4$1=PromiseConstructorDetection$1.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT$2=PromiseConstructorDetection$1.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING$1=PromiseConstructorDetection$1.SUBCLASSING,getInternalPromiseState$1=InternalStateModule$9.getterFor(PROMISE$1),setInternalState$5=InternalStateModule$9.set,NativePromisePrototype$1$1=NativePromiseConstructor$2$1&&NativePromiseConstructor$2$1.prototype,PromiseConstructor$1=NativePromiseConstructor$2$1,PromisePrototype$1=NativePromisePrototype$1$1,TypeError$1$5=global$5$5.TypeError,document$1$3=global$5$5.document,process$8=global$5$5.process,newPromiseCapability$1$1=newPromiseCapabilityModule$3$1.f,newGenericPromiseCapability$1=newPromiseCapability$1$1,DISPATCH_EVENT$1=!!(document$1$3&&document$1$3.createEvent&&global$5$5.dispatchEvent),UNHANDLED_REJECTION$1="unhandledrejection",REJECTION_HANDLED$1="rejectionhandled",PENDING$1=0,FULFILLED$1=1,REJECTED$1=2,HANDLED$1=1,UNHANDLED$1=2,Internal$1,OwnPromiseCapability$1,PromiseWrapper$1,nativeThen$1,isThenable$1=function(v){var k;return isObject$1$5(v)&&isCallable$3$5(k=v.then)?k:!1},callReaction$1=function(v,k){var ie=k.value,ae=k.state==FULFILLED$1,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED$1&&onHandleUnhandled$1(k),k.rejection=HANDLED$1),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$5("Promise-chain cycle")):(ye=isThenable$1(pe))?call$9$3(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify$2=function(v,k){v.notified||(v.notified=!0,microtask$2(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction$1(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled$1(v)}))},dispatchEvent$1=function(v,k,ie){var ae,ce;DISPATCH_EVENT$1?(ae=document$1$3.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$5$5.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT$2&&(ce=global$5$5["on"+v])?ce(ae):v===UNHANDLED_REJECTION$1&&hostReportErrors$2("Unhandled promise rejection",ie)},onUnhandled$1=function(v){call$9$3(task$2,global$5$5,function(){var k=v.facade,ie=v.value,ae=isUnhandled$1(v),ce;if(ae&&(ce=perform$2$1(function(){IS_NODE$3?process$8.emit("unhandledRejection",ie,k):dispatchEvent$1(UNHANDLED_REJECTION$1,k,ie)}),v.rejection=IS_NODE$3||isUnhandled$1(v)?UNHANDLED$1:HANDLED$1,ce.error))throw ce.value})},isUnhandled$1=function(v){return v.rejection!==HANDLED$1&&!v.parent},onHandleUnhandled$1=function(v){call$9$3(task$2,global$5$5,function(){var k=v.facade;IS_NODE$3?process$8.emit("rejectionHandled",k):dispatchEvent$1(REJECTION_HANDLED$1,k,v.value)})},bind$1$3=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject$1=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED$1,notify$2(v,!0))},internalResolve$1=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$5("Promise can't be resolved itself");var ae=isThenable$1(k);ae?microtask$2(function(){var ce={done:!1};try{call$9$3(ae,k,bind$1$3(internalResolve$1,ce,v),bind$1$3(internalReject$1,ce,v))}catch(fe){internalReject$1(ce,fe,v)}}):(v.value=k,v.state=FULFILLED$1,notify$2(v,!1))}catch(ce){internalReject$1({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4$1&&(PromiseConstructor$1=function(k){anInstance$5(this,PromisePrototype$1),aCallable$3$3(k),call$9$3(Internal$1,this);var ie=getInternalPromiseState$1(this);try{k(bind$1$3(internalResolve$1,ie),bind$1$3(internalReject$1,ie))}catch(ae){internalReject$1(ie,ae)}},PromisePrototype$1=PromiseConstructor$1.prototype,Internal$1=function(k){setInternalState$5(this,{type:PROMISE$1,done:!1,notified:!1,parent:!1,reactions:new Queue$2,rejection:!1,state:PENDING$1,value:void 0})},Internal$1.prototype=defineBuiltIn$2$3(PromisePrototype$1,"then",function(k,ie){var ae=getInternalPromiseState$1(this),ce=newPromiseCapability$1$1(speciesConstructor$4(this,PromiseConstructor$1));return ae.parent=!0,ce.ok=isCallable$3$5(k)?k:!0,ce.fail=isCallable$3$5(ie)&&ie,ce.domain=IS_NODE$3?process$8.domain:void 0,ae.state==PENDING$1?ae.reactions.add(ce):microtask$2(function(){callReaction$1(ce,ae)}),ce.promise}),OwnPromiseCapability$1=function(){var v=new Internal$1,k=getInternalPromiseState$1(v);this.promise=v,this.resolve=bind$1$3(internalResolve$1,k),this.reject=bind$1$3(internalReject$1,k)},newPromiseCapabilityModule$3$1.f=newPromiseCapability$1$1=function(v){return v===PromiseConstructor$1||v===PromiseWrapper$1?new OwnPromiseCapability$1(v):newGenericPromiseCapability$1(v)},isCallable$3$5(NativePromiseConstructor$2$1)&&NativePromisePrototype$1$1!==Object.prototype)){nativeThen$1=NativePromisePrototype$1$1.then,NATIVE_PROMISE_SUBCLASSING$1||defineBuiltIn$2$3(NativePromisePrototype$1$1,"then",function(k,ie){var ae=this;return new PromiseConstructor$1(function(ce,fe){call$9$3(nativeThen$1,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1$1.constructor}catch{}setPrototypeOf$7&&setPrototypeOf$7(NativePromisePrototype$1$1,PromisePrototype$1)}$$6$1({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4$1},{Promise:PromiseConstructor$1});setToStringTag$6(PromiseConstructor$1,PROMISE$1,!1);setSpecies$4(PROMISE$1);var wellKnownSymbol$5$3=wellKnownSymbol$g$2,Iterators$1$3=iterators$3,ITERATOR$3$2=wellKnownSymbol$5$3("iterator"),ArrayPrototype$4=Array.prototype,isArrayIteratorMethod$1$3=function(v){return v!==void 0&&(Iterators$1$3.Array===v||ArrayPrototype$4[ITERATOR$3$2]===v)},classof$1$4=classof$5$2,getMethod$2$3=getMethod$4$1,Iterators$7=iterators$3,wellKnownSymbol$4$3=wellKnownSymbol$g$2,ITERATOR$2$3=wellKnownSymbol$4$3("iterator"),getIteratorMethod$2$3=function(v){if(v!=null)return getMethod$2$3(v,ITERATOR$2$3)||getMethod$2$3(v,"@@iterator")||Iterators$7[classof$1$4(v)]},call$8$3=functionCall$5,aCallable$2$3=aCallable$7$1,anObject$5$3=anObject$e$1,tryToString$1$5=tryToString$4$3,getIteratorMethod$1$3=getIteratorMethod$2$3,$TypeError$2$5=TypeError,getIterator$1$3=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$3(v):k;if(aCallable$2$3(ie))return anObject$5$3(call$8$3(ie,v));throw $TypeError$2$5(tryToString$1$5(v)+" is not iterable")},call$7$3=functionCall$5,anObject$4$3=anObject$e$1,getMethod$1$5=getMethod$4$1,iteratorClose$1$1=function(v,k,ie){var ae,ce;anObject$4$3(v);try{if(ae=getMethod$1$5(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$7$3(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$4$3(ae),ie},bind$a=functionBindContext$3,call$6$3=functionCall$5,anObject$3$4=anObject$e$1,tryToString$9=tryToString$4$3,isArrayIteratorMethod$4=isArrayIteratorMethod$1$3,lengthOfArrayLike$a=lengthOfArrayLike$2$3,isPrototypeOf$9=objectIsPrototypeOf$5,getIterator$4=getIterator$1$3,getIteratorMethod$5=getIteratorMethod$2$3,iteratorClose$2=iteratorClose$1$1,$TypeError$1$5=TypeError,Result$1=function(v,k){this.stopped=v,this.result=k},ResultPrototype$1=Result$1.prototype,iterate$2$1=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$a(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose$2(pe,"normal",ur),new Result$1(!0,ur)},Ar=function(ur){return ce?(anObject$3$4(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$5(v),!ye)throw $TypeError$1$5(tryToString$9(v)+" is not iterable");if(isArrayIteratorMethod$4(ye)){for(me=0,Ee=lengthOfArrayLike$a(v);Ee>me;me++)if(cr=Ar(v[me]),cr&&isPrototypeOf$9(ResultPrototype$1,cr))return cr;return new Result$1(!1)}pe=getIterator$4(v,ye)}for(Br=pe.next;!($r=call$6$3(Br,pe)).done;){try{cr=Ar($r.value)}catch(ur){iteratorClose$2(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$9(ResultPrototype$1,cr))return cr}return new Result$1(!1)},wellKnownSymbol$3$4=wellKnownSymbol$g$2,ITERATOR$1$3=wellKnownSymbol$3$4("iterator"),SAFE_CLOSING$3=!1;try{called$3=0,iteratorWithReturn$3={next:function(){return{done:!!called$3++}},return:function(){SAFE_CLOSING$3=!0}},iteratorWithReturn$3[ITERATOR$1$3]=function(){return this},Array.from(iteratorWithReturn$3,function(){throw 2})}catch(v){}var called$3,iteratorWithReturn$3,checkCorrectnessOfIteration$1$3=function(v,k){if(!k&&!SAFE_CLOSING$3)return!1;var ie=!1;try{var ae={};ae[ITERATOR$1$3]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1$1=promiseNativeConstructor$1,checkCorrectnessOfIteration$4=checkCorrectnessOfIteration$1$3,FORCED_PROMISE_CONSTRUCTOR$3$1=promiseConstructorDetection$1.CONSTRUCTOR,promiseStaticsIncorrectIteration$1=FORCED_PROMISE_CONSTRUCTOR$3$1||!checkCorrectnessOfIteration$4(function(v){NativePromiseConstructor$1$1.all(v).then(void 0,function(){})}),$$5$1=_export$4,call$5$4=functionCall$5,aCallable$1$5=aCallable$7$1,newPromiseCapabilityModule$2$1=newPromiseCapability$2$1,perform$1$1=perform$3$1,iterate$1$1=iterate$2$1,PROMISE_STATICS_INCORRECT_ITERATION$1$1=promiseStaticsIncorrectIteration$1;$$5$1({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1$1},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2$1.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1$1(function(){var ve=aCallable$1$5(ie.resolve),pe=[],ye=0,me=1;iterate$1$1(k,function(Ee){var cr=ye++,Br=!1;me++,call$5$4(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$4$2=_export$4,FORCED_PROMISE_CONSTRUCTOR$2$1=promiseConstructorDetection$1.CONSTRUCTOR,NativePromiseConstructor$4=promiseNativeConstructor$1,getBuiltIn$1$5=getBuiltIn$8$1,isCallable$2$5=isCallable$m$1,defineBuiltIn$1$5=defineBuiltIn$7$2,NativePromisePrototype$2=NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype;$$4$2({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2$1,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$2$5(NativePromiseConstructor$4)&&(method$1=getBuiltIn$1$5("Promise").prototype.catch,NativePromisePrototype$2.catch!==method$1&&defineBuiltIn$1$5(NativePromisePrototype$2,"catch",method$1,{unsafe:!0}));var method$1,$$3$3=_export$4,call$4$5=functionCall$5,aCallable$c=aCallable$7$1,newPromiseCapabilityModule$1$1=newPromiseCapability$2$1,perform$4=perform$3$1,iterate$3=iterate$2$1,PROMISE_STATICS_INCORRECT_ITERATION$2=promiseStaticsIncorrectIteration$1;$$3$3({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$2},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1$1.f(ie),ce=ae.reject,fe=perform$4(function(){var le=aCallable$c(ie.resolve);iterate$3(k,function(ve){call$4$5(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$2$3=_export$4,call$3$5=functionCall$5,newPromiseCapabilityModule$4=newPromiseCapability$2$1,FORCED_PROMISE_CONSTRUCTOR$1$1=promiseConstructorDetection$1.CONSTRUCTOR;$$2$3({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1$1},{reject:function v(k){var ie=newPromiseCapabilityModule$4.f(this);return call$3$5(ie.reject,void 0,k),ie.promise}});var anObject$2$5=anObject$e$1,isObject$f=isObject$7$3,newPromiseCapability$3=newPromiseCapability$2$1,promiseResolve$1$1=function(v,k){if(anObject$2$5(v),isObject$f(k)&&k.constructor===v)return k;var ie=newPromiseCapability$3.f(v),ae=ie.resolve;return ae(k),ie.promise},$$1$3=_export$4,getBuiltIn$d=getBuiltIn$8$1,FORCED_PROMISE_CONSTRUCTOR$6=promiseConstructorDetection$1.CONSTRUCTOR,promiseResolve$2=promiseResolve$1$1;getBuiltIn$d("Promise");$$1$3({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$6},{resolve:function v(k){return promiseResolve$2(this,k)}});var domIterables$1={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$6=documentCreateElement$2$2,classList$1=documentCreateElement$6("span").classList,DOMTokenListPrototype$1$1=classList$1&&classList$1.constructor&&classList$1.constructor.prototype,domTokenListPrototype$1=DOMTokenListPrototype$1$1===Object.prototype?void 0:DOMTokenListPrototype$1$1,global$4$5=global$m,DOMIterables$1=domIterables$1,DOMTokenListPrototype$2=domTokenListPrototype$1,ArrayIteratorMethods$1=es_array_iterator$1,createNonEnumerableProperty$1$5=createNonEnumerableProperty$5$2,wellKnownSymbol$2$4=wellKnownSymbol$g$2,ITERATOR$7=wellKnownSymbol$2$4("iterator"),TO_STRING_TAG$7=wellKnownSymbol$2$4("toStringTag"),ArrayValues$1=ArrayIteratorMethods$1.values,handlePrototype$1=function(v,k){if(v){if(v[ITERATOR$7]!==ArrayValues$1)try{createNonEnumerableProperty$1$5(v,ITERATOR$7,ArrayValues$1)}catch{v[ITERATOR$7]=ArrayValues$1}if(v[TO_STRING_TAG$7]||createNonEnumerableProperty$1$5(v,TO_STRING_TAG$7,k),DOMIterables$1[k]){for(var ie in ArrayIteratorMethods$1)if(v[ie]!==ArrayIteratorMethods$1[ie])try{createNonEnumerableProperty$1$5(v,ie,ArrayIteratorMethods$1[ie])}catch{v[ie]=ArrayIteratorMethods$1[ie]}}}};for(COLLECTION_NAME$1 in DOMIterables$1)handlePrototype$1(global$4$5[COLLECTION_NAME$1]&&global$4$5[COLLECTION_NAME$1].prototype,COLLECTION_NAME$1);var COLLECTION_NAME$1;handlePrototype$1(DOMTokenListPrototype$2,"DOMTokenList");var fails$4$5=fails$j$2,global$3$5=global$m,$RegExp$2$1=global$3$5.RegExp,UNSUPPORTED_Y$1$1=fails$4$5(function(){var v=$RegExp$2$1("a","y");return v.lastIndex=2,v.exec("abcd")!=null}),MISSED_STICKY$1=UNSUPPORTED_Y$1$1||fails$4$5(function(){return!$RegExp$2$1("a","y").sticky}),BROKEN_CARET$1=UNSUPPORTED_Y$1$1||fails$4$5(function(){var v=$RegExp$2$1("^r","gy");return v.lastIndex=2,v.exec("str")!=null}),regexpStickyHelpers$1={BROKEN_CARET:BROKEN_CARET$1,MISSED_STICKY:MISSED_STICKY$1,UNSUPPORTED_Y:UNSUPPORTED_Y$1$1},fails$3$5=fails$j$2,global$2$5=global$m,$RegExp$1$1=global$2$5.RegExp,regexpUnsupportedDotAll$1=fails$3$5(function(){var v=$RegExp$1$1(".","s");return!(v.dotAll&&v.exec(` +`)&&v.flags==="s")}),fails$2$5=fails$j$2,global$1$5=global$m,$RegExp$3=global$1$5.RegExp,regexpUnsupportedNcg$1=fails$2$5(function(){var v=$RegExp$3("(?b)","g");return v.exec("b").groups.a!=="b"||"b".replace(v,"$c")!=="bc"}),call$2$5=functionCall$5,uncurryThis$4$5=functionUncurryThis$5,toString$2$3=toString$3$2,regexpFlags$3=regexpFlags$1$2,stickyHelpers$2=regexpStickyHelpers$1,shared$8=shared$4$2.exports,create2$2=objectCreate$2,getInternalState$9=internalState$5.get,UNSUPPORTED_DOT_ALL$1=regexpUnsupportedDotAll$1,UNSUPPORTED_NCG$1=regexpUnsupportedNcg$1,nativeReplace$1=shared$8("native-string-replace",String.prototype.replace),nativeExec$1=RegExp.prototype.exec,patchedExec$1=nativeExec$1,charAt$3=uncurryThis$4$5("".charAt),indexOf$4=uncurryThis$4$5("".indexOf),replace$1=uncurryThis$4$5("".replace),stringSlice$3$2=uncurryThis$4$5("".slice),UPDATES_LAST_INDEX_WRONG$1=function(){var v=/a/,k=/b*/g;return call$2$5(nativeExec$1,v,"a"),call$2$5(nativeExec$1,k,"a"),v.lastIndex!==0||k.lastIndex!==0}(),UNSUPPORTED_Y$3=stickyHelpers$2.BROKEN_CARET,NPCG_INCLUDED$1=/()??/.exec("")[1]!==void 0,PATCH$1=UPDATES_LAST_INDEX_WRONG$1||NPCG_INCLUDED$1||UNSUPPORTED_Y$3||UNSUPPORTED_DOT_ALL$1||UNSUPPORTED_NCG$1;PATCH$1&&(patchedExec$1=function(k){var ie=this,ae=getInternalState$9(ie),ce=toString$2$3(k),fe=ae.raw,le,ve,pe,ye,me,Ee,cr;if(fe)return fe.lastIndex=ie.lastIndex,le=call$2$5(patchedExec$1,fe,ce),ie.lastIndex=fe.lastIndex,le;var Br=ae.groups,$r=UNSUPPORTED_Y$3&&ie.sticky,Pr=call$2$5(regexpFlags$3,ie),Ar=ie.source,ur=0,jr=ce;if($r&&(Pr=replace$1(Pr,"y",""),indexOf$4(Pr,"g")===-1&&(Pr+="g"),jr=stringSlice$3$2(ce,ie.lastIndex),ie.lastIndex>0&&(!ie.multiline||ie.multiline&&charAt$3(ce,ie.lastIndex-1)!==` +`)&&(Ar="(?: "+Ar+")",jr=" "+jr,ur++),ve=new RegExp("^(?:"+Ar+")",Pr)),NPCG_INCLUDED$1&&(ve=new RegExp("^"+Ar+"$(?!\\s)",Pr)),UPDATES_LAST_INDEX_WRONG$1&&(pe=ie.lastIndex),ye=call$2$5(nativeExec$1,$r?ve:ie,jr),$r?ye?(ye.input=stringSlice$3$2(ye.input,ur),ye[0]=stringSlice$3$2(ye[0],ur),ye.index=ie.lastIndex,ie.lastIndex+=ye[0].length):ie.lastIndex=0:UPDATES_LAST_INDEX_WRONG$1&&ye&&(ie.lastIndex=ie.global?ye.index+ye[0].length:pe),NPCG_INCLUDED$1&&ye&&ye.length>1&&call$2$5(nativeReplace$1,ye[0],ve,function(){for(me=1;me=fe?v?"":void 0:(le=charCodeAt$1(ae,ce),le<55296||le>56319||ce+1===fe||(ve=charCodeAt$1(ae,ce+1))<56320||ve>57343?v?charAt$2$1(ae,ce):le:v?stringSlice$2$2(ae,ce,ce+2):(le-55296<<10)+(ve-56320)+65536)}},stringMultibyte$1={codeAt:createMethod$5(!1),charAt:createMethod$5(!0)},charAt$1$1=stringMultibyte$1.charAt,advanceStringIndex$1$1=function(v,k,ie){return k+(ie?charAt$1$1(v,k).length:1)},uncurryThis$1$5=functionUncurryThis$5,toObject$b=toObject$4$2,floor$7=Math.floor,charAt$4=uncurryThis$1$5("".charAt),replace$2=uncurryThis$1$5("".replace),stringSlice$1$2=uncurryThis$1$5("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(v,k,ie,ae,ce,fe){var le=ie+v.length,ve=ae.length,pe=SUBSTITUTION_SYMBOLS_NO_NAMED;return ce!==void 0&&(ce=toObject$b(ce),pe=SUBSTITUTION_SYMBOLS),replace$2(fe,pe,function(ye,me){var Ee;switch(charAt$4(me,0)){case"$":return"$";case"&":return v;case"`":return stringSlice$1$2(k,0,ie);case"'":return stringSlice$1$2(k,le);case"<":Ee=ce[stringSlice$1$2(me,1,-1)];break;default:var cr=+me;if(cr===0)return ye;if(cr>ve){var Br=floor$7(cr/10);return Br===0?ye:Br<=ve?ae[Br-1]===void 0?charAt$4(me,1):ae[Br-1]+charAt$4(me,1):ye}Ee=ae[cr-1]}return Ee===void 0?"":Ee})},call$1$5=functionCall$5,anObject$1$5=anObject$e$1,isCallable$1$5=isCallable$m$1,classof$d=classofRaw$1$4,regexpExec$4=regexpExec$2$1,$TypeError$g=TypeError,regexpExecAbstract$1=function(v,k){var ie=v.exec;if(isCallable$1$5(ie)){var ae=call$1$5(ie,v,k);return ae!==null&&anObject$1$5(ae),ae}if(classof$d(v)==="RegExp")return call$1$5(regexpExec$4,v,k);throw $TypeError$g("RegExp#exec called on incompatible receiver")},apply$4=functionApply$3,call$j=functionCall$5,uncurryThis$p=functionUncurryThis$5,fixRegExpWellKnownSymbolLogic$1=fixRegexpWellKnownSymbolLogic$1,fails$r=fails$j$2,anObject$f=anObject$e$1,isCallable$n=isCallable$m$1,toIntegerOrInfinity$9=toIntegerOrInfinity$4$2,toLength$9=toLength$2$2,toString2$3=toString$3$2,requireObjectCoercible$7=requireObjectCoercible$4$2,advanceStringIndex$2=advanceStringIndex$1$1,getMethod$8=getMethod$4$1,getSubstitution=getSubstitution$1,regExpExec=regexpExecAbstract$1,wellKnownSymbol$j=wellKnownSymbol$g$2,REPLACE=wellKnownSymbol$j("replace"),max$5=Math.max,min$5=Math.min,concat$6=uncurryThis$p([].concat),push$5=uncurryThis$p([].push),stringIndexOf=uncurryThis$p("".indexOf),stringSlice$5=uncurryThis$p("".slice),maybeToString=function(v){return v===void 0?v:String(v)},REPLACE_KEEPS_$0=function(){return"a".replace(/./,"$0")==="$0"}(),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=function(){return/./[REPLACE]?/./[REPLACE]("a","$0")==="":!1}(),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$r(function(){var v=/./;return v.exec=function(){var k=[];return k.groups={a:"7"},k},"".replace(v,"$")!=="7"});fixRegExpWellKnownSymbolLogic$1("replace",function(v,k,ie){var ae=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(fe,le){var ve=requireObjectCoercible$7(this),pe=fe==null?void 0:getMethod$8(fe,REPLACE);return pe?call$j(pe,fe,ve,le):call$j(k,toString2$3(ve),fe,le)},function(ce,fe){var le=anObject$f(this),ve=toString2$3(ce);if(typeof fe=="string"&&stringIndexOf(fe,ae)===-1&&stringIndexOf(fe,"$<")===-1){var pe=ie(k,le,ve,fe);if(pe.done)return pe.value}var ye=isCallable$n(fe);ye||(fe=toString2$3(fe));var me=le.global;if(me){var Ee=le.unicode;le.lastIndex=0}for(var cr=[];;){var Br=regExpExec(le,ve);if(Br===null||(push$5(cr,Br),!me))break;var $r=toString2$3(Br[0]);$r===""&&(le.lastIndex=advanceStringIndex$2(ve,toLength$9(le.lastIndex),Ee))}for(var Pr="",Ar=0,ur=0;ur=Ar&&(Pr+=stringSlice$5(ve,Ar,Mr)+Qr,Ar=Mr+jr.length)}return Pr+stringSlice$5(ve,Ar)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);function __awaiter$7(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t+KAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAAR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6yUwl7RdzoKOgFjUsYEHv6Lud6Th5+ovlXZCGhLDn2Ktp3UpQm1VgapAVaAqcGArgKdyLNh4Kv+KtJ+Q9k+l4R1trKFYT7mmivj4t8td0BkRSTAhfK3t30vDz9SfKw2LOQ6EGBFrqwpUBaoCVYGqwIGoAB5q0Y5Iw1P5b0l7q7Q/kIYNa+clvcWu3ml3pd8OR7L5VcZ9Mv4lafj5Ojb+3KC+4mb1qH1VoCpQFagK7M8KYBHHu9R4Isf2v6X9grTfxkA2rL+X9Ra7sqTdlV7QQT0mia+yvU3a35d2tzRs+Cg+DhRP73gRUFtVoCpQFagKVAX2egWwrmF9wzrIB9c/E/nXpL1fGn5+jm18+DXtZe53YkFnSuTGEzs2/Ez9jdLw99WfLY0bfn4ALBZ3+tBWfVWgKlAVqApUBa7mCmCNwyKOnr+LBfl+VNo/l/avpeEvpWHjGsd10bRXaE/yK0Q3oyF/Th4/R3i1tB+X9lppfDtCxHhyx88U8AqG/rDVVhWoClQFqgJVgSeyAlzL8CSOn3tjncLDKDf8WPkD0v6VNHxIHGNuXM/IQf0V6xngihGuIMpx8sF8p+Dxc/bXS3uxtPzqRob6igdFgw8XeHKxB662qkBVoCpQFagKXKkKYM3hWoUeCzjWHDxsjmsP3kbHd8jxh1Tw8/FPSssb8eTLtisqM9AVJd2CLMcbD+4vid8PSHuRtBdI+y5p+eldhrVVBaoCVYGqQFXgCa0AvqL9CWkfkvZ70n5f2qel5W2rtS7jrqicg15R4m2QMTZ6vPrJG57Gb5eGRf3p0rDY3yntrDR8He4GafiZPF4t1VYVqApUBaoCVYErVQH8PPxBaV+Xhl+a9mVpn5H2KWkfl4bF/EvSgMsb1i0+qLLP9h2X/z8/uanyoXvQxgAAAABJRU5ErkJggg==",resolveWalletUrl$1=(v,k)=>{if(k)return k;switch(v.networkId){case"mainnet":return"https://app.optowallet.com";case"testnet":return"https://app.testnet.optowallet.com";default:throw new Error("Invalid wallet url")}},setupWalletState$1=(v,k)=>__awaiter$7(void 0,void 0,void 0,function*(){const ie=new nearAPI$2.keyStores.BrowserLocalStorageKeyStore,ae=yield nearAPI$2.connect(Object.assign(Object.assign({keyStore:ie,walletUrl:v.walletUrl},k),{headers:{}}));return{wallet:new nearAPI$2.WalletConnection(ae,"near_app"),keyStore:ie}}),OptoWallet=({metadata:v,options:k,store:ie,params:ae,logger:ce})=>__awaiter$7(void 0,void 0,void 0,function*(){const fe=yield setupWalletState$1(ae,k.network),le=()=>__awaiter$7(void 0,void 0,void 0,function*(){const pe=fe.wallet.getAccountId();if(!pe)return[];const ye=fe.wallet.account();return[{accountId:pe,publicKey:ye?(yield ye.connection.signer.getPublicKey(ye.accountId,k.network.networkId)).toString():void 0}]}),ve=pe=>__awaiter$7(void 0,void 0,void 0,function*(){const ye=fe.wallet.account(),{networkId:me,signer:Ee,provider:cr}=ye.connection,Br=yield Ee.getPublicKey(ye.accountId,me);return Promise.all(pe.map(($r,Pr)=>__awaiter$7(void 0,void 0,void 0,function*(){const Ar=$r.actions.map(Mr=>createAction(Mr)),ur=yield ye.accessKeyForTransaction($r.receiverId,Ar,Br);if(!ur)throw new Error(`Failed to find matching key for transaction sent to ${$r.receiverId}`);const jr=yield cr.block({finality:"final"});return nearAPI$2.transactions.createTransaction(ye.accountId,nearAPI$2.utils.PublicKey.from(ur.public_key),$r.receiverId,ur.access_key.nonce+Pr+1,Ar,nearAPI$2.utils.serialize.base_decode(jr.header.hash))})))});return{signIn({contractId:pe,methodNames:ye}){return __awaiter$7(this,void 0,void 0,function*(){const me=yield le();return me.length?me:(yield fe.wallet.requestSignIn({contractId:pe,methodNames:ye}),le())})},signOut(){return __awaiter$7(this,void 0,void 0,function*(){fe.wallet.isSignedIn()&&fe.wallet.signOut()})},getAccounts(){return __awaiter$7(this,void 0,void 0,function*(){return le()})},verifyOwner({message:pe,callbackUrl:ye,meta:me}){return __awaiter$7(this,void 0,void 0,function*(){if(ce.log("verifyOwner",{message:pe}),!fe.wallet.account())throw new Error("Wallet not signed in");const cr=typeof window<"u"?window.location.href:"",Br=ye||cr;if(!Br)throw new Error(`The callbackUrl is missing for ${v.name}`);const $r=encodeURIComponent(Br),Pr=me?`&meta=${me}`:"";window.location.replace(`${ae.walletUrl}/verify-owner?message=${pe}&callbackUrl=${$r}${Pr}`)})},signAndSendTransaction({signerId:pe,receiverId:ye,actions:me,callbackUrl:Ee}){return __awaiter$7(this,void 0,void 0,function*(){ce.log("signAndSendTransaction",{signerId:pe,receiverId:ye,actions:me,callbackUrl:Ee});const{contract:cr}=ie.getState();if(!fe.wallet.isSignedIn()||!cr)throw new Error("Wallet not signed in");return fe.wallet.account().signAndSendTransaction({receiverId:ye||cr.contractId,actions:me.map($r=>createAction($r)),walletCallbackUrl:Ee})})},signAndSendTransactions({transactions:pe,callbackUrl:ye}){return __awaiter$7(this,void 0,void 0,function*(){if(ce.log("signAndSendTransactions",{transactions:pe,callbackUrl:ye}),!fe.wallet.isSignedIn())throw new Error("Wallet not signed in");return fe.wallet.requestSignTransactions({transactions:yield ve(pe),callbackUrl:ye})})}}});function setupOptoWallet({walletUrl:v,iconUrl:k=icon$6,deprecated:ie=!1}={}){return ae=>__awaiter$7(this,void 0,void 0,function*(){return window.opto?{id:"opto-wallet",type:"browser",metadata:{name:"OptoWallet",description:"Have Sign of your Crypto with Opto Wallet.",iconUrl:k,deprecated:ie,available:!0,walletUrl:resolveWalletUrl$1(ae.options.network,v)},init:ce=>OptoWallet(Object.assign(Object.assign({},ce),{params:{walletUrl:resolveWalletUrl$1(ce.options.network,v)}}))}:null})}var nearAPI$1=__toESM(require_browser_index2$1(),1),import_is_mobile$5=__toESM(require_is_mobile(),1),commonjsGlobal$5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$4=function(v){return v&&v.Math==Math&&v},global$l=check$4(typeof globalThis=="object"&&globalThis)||check$4(typeof window=="object"&&window)||check$4(typeof self=="object"&&self)||check$4(typeof commonjsGlobal$5=="object"&&commonjsGlobal$5)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$3={},fails$p=function(v){try{return!!v()}catch{return!0}},fails$o=fails$p,descriptors$4=!fails$o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$n$1=fails$p,functionBindNative$4=!fails$n$1(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$2=functionBindNative$4,call$g$1=Function.prototype.call,functionCall$4=NATIVE_BIND$3$2?call$g$1.bind(call$g$1):function(){return call$g$1.apply(call$g$1,arguments)},objectPropertyIsEnumerable$3={},$propertyIsEnumerable$3={}.propertyIsEnumerable,getOwnPropertyDescriptor$1$3=Object.getOwnPropertyDescriptor,NASHORN_BUG$3=getOwnPropertyDescriptor$1$3&&!$propertyIsEnumerable$3.call({1:2},1);objectPropertyIsEnumerable$3.f=NASHORN_BUG$3?function v(k){var ie=getOwnPropertyDescriptor$1$3(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$3;var createPropertyDescriptor$5$1=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2$2=functionBindNative$4,FunctionPrototype$2$2=Function.prototype,bind$3$2=FunctionPrototype$2$2.bind,call$f$1=FunctionPrototype$2$2.call,uncurryThis$n=NATIVE_BIND$2$2&&bind$3$2.bind(call$f$1,call$f$1),functionUncurryThis$4=NATIVE_BIND$2$2?function(v){return v&&uncurryThis$n(v)}:function(v){return v&&function(){return call$f$1.apply(v,arguments)}},uncurryThis$m$1=functionUncurryThis$4,toString$5=uncurryThis$m$1({}.toString),stringSlice$3$1=uncurryThis$m$1("".slice),classofRaw$1$3=function(v){return stringSlice$3$1(toString$5(v),8,-1)},uncurryThis$l$1=functionUncurryThis$4,fails$m$1=fails$p,classof$a$1=classofRaw$1$3,$Object$4$1=Object,split$3=uncurryThis$l$1("".split),indexedObject$3=fails$m$1(function(){return!$Object$4$1("z").propertyIsEnumerable(0)})?function(v){return classof$a$1(v)=="String"?split$3(v,""):$Object$4$1(v)}:$Object$4$1,$TypeError$b$1=TypeError,requireObjectCoercible$4$1=function(v){if(v==null)throw $TypeError$b$1("Can't call method on "+v);return v},IndexedObject$2$1=indexedObject$3,requireObjectCoercible$3$1=requireObjectCoercible$4$1,toIndexedObject$6$1=function(v){return IndexedObject$2$1(requireObjectCoercible$3$1(v))},isCallable$j$1=function(v){return typeof v=="function"},isCallable$i$1=isCallable$j$1,isObject$b$1=function(v){return typeof v=="object"?v!==null:isCallable$i$1(v)},global$k=global$l,isCallable$h$2=isCallable$j$1,aFunction$4=function(v){return isCallable$h$2(v)?v:void 0},getBuiltIn$6$2=function(v,k){return arguments.length<2?aFunction$4(global$k[v]):global$k[v]&&global$k[v][k]},uncurryThis$k$1=functionUncurryThis$4,objectIsPrototypeOf$4=uncurryThis$k$1({}.isPrototypeOf),getBuiltIn$5$2=getBuiltIn$6$2,engineUserAgent$4=getBuiltIn$5$2("navigator","userAgent")||"",global$j=global$l,userAgent$2$2=engineUserAgent$4,process$7=global$j.process,Deno$4=global$j.Deno,versions$4=process$7&&process$7.versions||Deno$4&&Deno$4.version,v8$4=versions$4&&versions$4.v8,match$4,version$5;v8$4&&(match$4=v8$4.split("."),version$5=match$4[0]>0&&match$4[0]<4?1:+(match$4[0]+match$4[1]));!version$5&&userAgent$2$2&&(match$4=userAgent$2$2.match(/Edge\/(\d+)/),(!match$4||match$4[1]>=74)&&(match$4=userAgent$2$2.match(/Chrome\/(\d+)/),match$4&&(version$5=+match$4[1])));var engineV8Version$4=version$5,V8_VERSION$5=engineV8Version$4,fails$l$1=fails$p,nativeSymbol$4=!!Object.getOwnPropertySymbols&&!fails$l$1(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$5&&V8_VERSION$5<41}),NATIVE_SYMBOL$1$4=nativeSymbol$4,useSymbolAsUid$4=NATIVE_SYMBOL$1$4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$4$2=getBuiltIn$6$2,isCallable$g$2=isCallable$j$1,isPrototypeOf$4$1=objectIsPrototypeOf$4,USE_SYMBOL_AS_UID$1$4=useSymbolAsUid$4,$Object$3$2=Object,isSymbol$3$1=USE_SYMBOL_AS_UID$1$4?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$4$2("Symbol");return isCallable$g$2(k)&&isPrototypeOf$4$1(k.prototype,$Object$3$2(v))},$String$3$1=String,tryToString$4$2=function(v){try{return $String$3$1(v)}catch{return"Object"}},isCallable$f$2=isCallable$j$1,tryToString$3$2=tryToString$4$2,$TypeError$a$2=TypeError,aCallable$4$2=function(v){if(isCallable$f$2(v))return v;throw $TypeError$a$2(tryToString$3$2(v)+" is not a function")},aCallable$3$2=aCallable$4$2,getMethod$3$1=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$3$2(ie)},call$e$1=functionCall$4,isCallable$e$2=isCallable$j$1,isObject$a$1=isObject$b$1,$TypeError$9$2=TypeError,ordinaryToPrimitive$1$4=function(v,k){var ie,ae;if(k==="string"&&isCallable$e$2(ie=v.toString)&&!isObject$a$1(ae=call$e$1(ie,v))||isCallable$e$2(ie=v.valueOf)&&!isObject$a$1(ae=call$e$1(ie,v))||k!=="string"&&isCallable$e$2(ie=v.toString)&&!isObject$a$1(ae=call$e$1(ie,v)))return ae;throw $TypeError$9$2("Can't convert object to primitive value")},shared$4$1={exports:{}},global$i$1=global$l,defineProperty$7$1=Object.defineProperty,defineGlobalProperty$3$3=function(v,k){try{defineProperty$7$1(global$i$1,v,{value:k,configurable:!0,writable:!0})}catch{global$i$1[v]=k}return k},global$h$2=global$l,defineGlobalProperty$2$4=defineGlobalProperty$3$3,SHARED$4="__core-js_shared__",store$3$4=global$h$2[SHARED$4]||defineGlobalProperty$2$4(SHARED$4,{}),sharedStore$4=store$3$4,store$2$4=sharedStore$4;(shared$4$1.exports=function(v,k){return store$2$4[v]||(store$2$4[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$2$3=requireObjectCoercible$4$1,$Object$2$4=Object,toObject$6$1=function(v){return $Object$2$4(requireObjectCoercible$2$3(v))},uncurryThis$j$1=functionUncurryThis$4,toObject$5$1=toObject$6$1,hasOwnProperty$4=uncurryThis$j$1({}.hasOwnProperty),hasOwnProperty_1$4=Object.hasOwn||function v(k,ie){return hasOwnProperty$4(toObject$5$1(k),ie)},uncurryThis$i$1=functionUncurryThis$4,id$6=0,postfix$4=Math.random(),toString$4=uncurryThis$i$1(1 .toString),uid$3$1=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$4(++id$6+postfix$4,36)},global$g$2=global$l,shared$3$4=shared$4$1.exports,hasOwn$b$1=hasOwnProperty_1$4,uid$2$4=uid$3$1,NATIVE_SYMBOL$5=nativeSymbol$4,USE_SYMBOL_AS_UID$5=useSymbolAsUid$4,WellKnownSymbolsStore$4=shared$3$4("wks"),Symbol$1$4=global$g$2.Symbol,symbolFor$4=Symbol$1$4&&Symbol$1$4.for,createWellKnownSymbol$4=USE_SYMBOL_AS_UID$5?Symbol$1$4:Symbol$1$4&&Symbol$1$4.withoutSetter||uid$2$4,wellKnownSymbol$h$1=function(v){if(!hasOwn$b$1(WellKnownSymbolsStore$4,v)||!(NATIVE_SYMBOL$5||typeof WellKnownSymbolsStore$4[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$5&&hasOwn$b$1(Symbol$1$4,v)?WellKnownSymbolsStore$4[v]=Symbol$1$4[v]:USE_SYMBOL_AS_UID$5&&symbolFor$4?WellKnownSymbolsStore$4[v]=symbolFor$4(k):WellKnownSymbolsStore$4[v]=createWellKnownSymbol$4(k)}return WellKnownSymbolsStore$4[v]},call$d$1=functionCall$4,isObject$9$1=isObject$b$1,isSymbol$2$4=isSymbol$3$1,getMethod$2$2=getMethod$3$1,ordinaryToPrimitive$5=ordinaryToPrimitive$1$4,wellKnownSymbol$g$1=wellKnownSymbol$h$1,$TypeError$8$2=TypeError,TO_PRIMITIVE$4=wellKnownSymbol$g$1("toPrimitive"),toPrimitive$2$1=function(v,k){if(!isObject$9$1(v)||isSymbol$2$4(v))return v;var ie=getMethod$2$2(v,TO_PRIMITIVE$4),ae;if(ie){if(k===void 0&&(k="default"),ae=call$d$1(ie,v,k),!isObject$9$1(ae)||isSymbol$2$4(ae))return ae;throw $TypeError$8$2("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$5(v,k)},toPrimitive$1$4=toPrimitive$2$1,isSymbol$1$4=isSymbol$3$1,toPropertyKey$4$1=function(v){var k=toPrimitive$1$4(v,"string");return isSymbol$1$4(k)?k:k+""},global$f$2=global$l,isObject$8$1=isObject$b$1,document$1$2=global$f$2.document,EXISTS$1$4=isObject$8$1(document$1$2)&&isObject$8$1(document$1$2.createElement),documentCreateElement$2$1=function(v){return EXISTS$1$4?document$1$2.createElement(v):{}},DESCRIPTORS$d$1=descriptors$4,fails$k$1=fails$p,createElement$5=documentCreateElement$2$1,ie8DomDefine$4=!DESCRIPTORS$d$1&&!fails$k$1(function(){return Object.defineProperty(createElement$5("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$c$1=descriptors$4,call$c$2=functionCall$4,propertyIsEnumerableModule$1$2=objectPropertyIsEnumerable$3,createPropertyDescriptor$4$1=createPropertyDescriptor$5$1,toIndexedObject$5$1=toIndexedObject$6$1,toPropertyKey$3$1=toPropertyKey$4$1,hasOwn$a$1=hasOwnProperty_1$4,IE8_DOM_DEFINE$1$3=ie8DomDefine$4,$getOwnPropertyDescriptor$1$3=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$3.f=DESCRIPTORS$c$1?$getOwnPropertyDescriptor$1$3:function v(k,ie){if(k=toIndexedObject$5$1(k),ie=toPropertyKey$3$1(ie),IE8_DOM_DEFINE$1$3)try{return $getOwnPropertyDescriptor$1$3(k,ie)}catch{}if(hasOwn$a$1(k,ie))return createPropertyDescriptor$4$1(!call$c$2(propertyIsEnumerableModule$1$2.f,k,ie),k[ie])};var objectDefineProperty$4={},DESCRIPTORS$b$1=descriptors$4,fails$j$1=fails$p,v8PrototypeDefineBug$4=DESCRIPTORS$b$1&&fails$j$1(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$7$2=isObject$b$1,$String$2$3=String,$TypeError$7$2=TypeError,anObject$c$1=function(v){if(isObject$7$2(v))return v;throw $TypeError$7$2($String$2$3(v)+" is not an object")},DESCRIPTORS$a$1=descriptors$4,IE8_DOM_DEFINE$5=ie8DomDefine$4,V8_PROTOTYPE_DEFINE_BUG$1$1=v8PrototypeDefineBug$4,anObject$b$1=anObject$c$1,toPropertyKey$2$3=toPropertyKey$4$1,$TypeError$6$2=TypeError,$defineProperty$4=Object.defineProperty,$getOwnPropertyDescriptor$5=Object.getOwnPropertyDescriptor,ENUMERABLE$4="enumerable",CONFIGURABLE$1$4="configurable",WRITABLE$4="writable";objectDefineProperty$4.f=DESCRIPTORS$a$1?V8_PROTOTYPE_DEFINE_BUG$1$1?function v(k,ie,ae){if(anObject$b$1(k),ie=toPropertyKey$2$3(ie),anObject$b$1(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$4 in ae&&!ae[WRITABLE$4]){var ce=$getOwnPropertyDescriptor$5(k,ie);ce&&ce[WRITABLE$4]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$4 in ae?ae[CONFIGURABLE$1$4]:ce[CONFIGURABLE$1$4],enumerable:ENUMERABLE$4 in ae?ae[ENUMERABLE$4]:ce[ENUMERABLE$4],writable:!1})}return $defineProperty$4(k,ie,ae)}:$defineProperty$4:function v(k,ie,ae){if(anObject$b$1(k),ie=toPropertyKey$2$3(ie),anObject$b$1(ae),IE8_DOM_DEFINE$5)try{return $defineProperty$4(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$6$2("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$9$1=descriptors$4,definePropertyModule$6$1=objectDefineProperty$4,createPropertyDescriptor$3$1=createPropertyDescriptor$5$1,createNonEnumerableProperty$8$1=DESCRIPTORS$9$1?function(v,k,ie){return definePropertyModule$6$1.f(v,k,createPropertyDescriptor$3$1(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$4={exports:{}},DESCRIPTORS$8$1=descriptors$4,hasOwn$9$1=hasOwnProperty_1$4,FunctionPrototype$1$4=Function.prototype,getDescriptor$4=DESCRIPTORS$8$1&&Object.getOwnPropertyDescriptor,EXISTS$5=hasOwn$9$1(FunctionPrototype$1$4,"name"),PROPER$4=EXISTS$5&&function v(){}.name==="something",CONFIGURABLE$5=EXISTS$5&&(!DESCRIPTORS$8$1||DESCRIPTORS$8$1&&getDescriptor$4(FunctionPrototype$1$4,"name").configurable),functionName$4={EXISTS:EXISTS$5,PROPER:PROPER$4,CONFIGURABLE:CONFIGURABLE$5},uncurryThis$h$1=functionUncurryThis$4,isCallable$d$2=isCallable$j$1,store$1$4=sharedStore$4,functionToString$4=uncurryThis$h$1(Function.toString);isCallable$d$2(store$1$4.inspectSource)||(store$1$4.inspectSource=function(v){return functionToString$4(v)});var inspectSource$3$2=store$1$4.inspectSource,global$e$2=global$l,isCallable$c$2=isCallable$j$1,inspectSource$2$4=inspectSource$3$2,WeakMap$1$4=global$e$2.WeakMap,nativeWeakMap$4=isCallable$c$2(WeakMap$1$4)&&/native code/.test(inspectSource$2$4(WeakMap$1$4)),shared$2$4=shared$4$1.exports,uid$1$4=uid$3$1,keys$1$1=shared$2$4("keys"),sharedKey$3$1=function(v){return keys$1$1[v]||(keys$1$1[v]=uid$1$4(v))},hiddenKeys$4$1={},NATIVE_WEAK_MAP$4=nativeWeakMap$4,global$d$2=global$l,uncurryThis$g$1=functionUncurryThis$4,isObject$6$2=isObject$b$1,createNonEnumerableProperty$7$1=createNonEnumerableProperty$8$1,hasOwn$8$2=hasOwnProperty_1$4,shared$1$4=sharedStore$4,sharedKey$2$1=sharedKey$3$1,hiddenKeys$3$3=hiddenKeys$4$1,OBJECT_ALREADY_INITIALIZED$4="Object already initialized",TypeError$2$2=global$d$2.TypeError,WeakMap$6=global$d$2.WeakMap,set$1$2,get$1$1,has$4,enforce$4=function(v){return has$4(v)?get$1$1(v):set$1$2(v,{})},getterFor$4=function(v){return function(k){var ie;if(!isObject$6$2(k)||(ie=get$1$1(k)).type!==v)throw TypeError$2$2("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$4||shared$1$4.state?(store$7=shared$1$4.state||(shared$1$4.state=new WeakMap$6),wmget$4=uncurryThis$g$1(store$7.get),wmhas$4=uncurryThis$g$1(store$7.has),wmset$4=uncurryThis$g$1(store$7.set),set$1$2=function(v,k){if(wmhas$4(store$7,v))throw new TypeError$2$2(OBJECT_ALREADY_INITIALIZED$4);return k.facade=v,wmset$4(store$7,v,k),k},get$1$1=function(v){return wmget$4(store$7,v)||{}},has$4=function(v){return wmhas$4(store$7,v)}):(STATE$4=sharedKey$2$1("state"),hiddenKeys$3$3[STATE$4]=!0,set$1$2=function(v,k){if(hasOwn$8$2(v,STATE$4))throw new TypeError$2$2(OBJECT_ALREADY_INITIALIZED$4);return k.facade=v,createNonEnumerableProperty$7$1(v,STATE$4,k),k},get$1$1=function(v){return hasOwn$8$2(v,STATE$4)?v[STATE$4]:{}},has$4=function(v){return hasOwn$8$2(v,STATE$4)});var store$7,wmget$4,wmhas$4,wmset$4,STATE$4,internalState$4={set:set$1$2,get:get$1$1,has:has$4,enforce:enforce$4,getterFor:getterFor$4},fails$i$1=fails$p,isCallable$b$2=isCallable$j$1,hasOwn$7$2=hasOwnProperty_1$4,DESCRIPTORS$7$3=descriptors$4,CONFIGURABLE_FUNCTION_NAME$2$1=functionName$4.CONFIGURABLE,inspectSource$1$4=inspectSource$3$2,InternalStateModule$4$1=internalState$4,enforceInternalState$2$1=InternalStateModule$4$1.enforce,getInternalState$5$1=InternalStateModule$4$1.get,defineProperty$6$1=Object.defineProperty,CONFIGURABLE_LENGTH$4=DESCRIPTORS$7$3&&!fails$i$1(function(){return defineProperty$6$1(function(){},"length",{value:8}).length!==8}),TEMPLATE$4=String(String).split("String"),makeBuiltIn$1$4=makeBuiltIn$2$4.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$7$2(v,"name")||CONFIGURABLE_FUNCTION_NAME$2$1&&v.name!==k)&&(DESCRIPTORS$7$3?defineProperty$6$1(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$4&&ie&&hasOwn$7$2(ie,"arity")&&v.length!==ie.arity&&defineProperty$6$1(v,"length",{value:ie.arity});try{ie&&hasOwn$7$2(ie,"constructor")&&ie.constructor?DESCRIPTORS$7$3&&defineProperty$6$1(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$2$1(v);return hasOwn$7$2(ae,"source")||(ae.source=TEMPLATE$4.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$4(function v(){return isCallable$b$2(this)&&getInternalState$5$1(this).source||inspectSource$1$4(this)},"toString");var isCallable$a$4=isCallable$j$1,definePropertyModule$5$1=objectDefineProperty$4,makeBuiltIn$6=makeBuiltIn$2$4.exports,defineGlobalProperty$1$4=defineGlobalProperty$3$3,defineBuiltIn$7$1=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$a$4(ie)&&makeBuiltIn$6(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$4(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$5$1.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$3={},ceil$3=Math.ceil,floor$3$1=Math.floor,mathTrunc$3=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$3$1:ceil$3)(ie)},trunc2$3=mathTrunc$3,toIntegerOrInfinity$6$1=function(v){var k=+v;return k!==k||k===0?0:trunc2$3(k)},toIntegerOrInfinity$5$1=toIntegerOrInfinity$6$1,max$1$1=Math.max,min$2$1=Math.min,toAbsoluteIndex$4$1=function(v,k){var ie=toIntegerOrInfinity$5$1(v);return ie<0?max$1$1(ie+k,0):min$2$1(ie,k)},toIntegerOrInfinity$4$1=toIntegerOrInfinity$6$1,min$1$3=Math.min,toLength$6$1=function(v){return v>0?min$1$3(toIntegerOrInfinity$4$1(v),9007199254740991):0},toLength$5$1=toLength$6$1,lengthOfArrayLike$6$1=function(v){return toLength$5$1(v.length)},toIndexedObject$4$1=toIndexedObject$6$1,toAbsoluteIndex$3$1=toAbsoluteIndex$4$1,lengthOfArrayLike$5$1=lengthOfArrayLike$6$1,createMethod$2$1=function(v){return function(k,ie,ae){var ce=toIndexedObject$4$1(k),fe=lengthOfArrayLike$5$1(ce),le=toAbsoluteIndex$3$1(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$3={includes:createMethod$2$1(!0),indexOf:createMethod$2$1(!1)},uncurryThis$f$1=functionUncurryThis$4,hasOwn$6$3=hasOwnProperty_1$4,toIndexedObject$3$3=toIndexedObject$6$1,indexOf$1$1=arrayIncludes$3.indexOf,hiddenKeys$2$3=hiddenKeys$4$1,push$2$1=uncurryThis$f$1([].push),objectKeysInternal$3=function(v,k){var ie=toIndexedObject$3$3(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$6$3(hiddenKeys$2$3,fe)&&hasOwn$6$3(ie,fe)&&push$2$1(ce,fe);for(;k.length>ae;)hasOwn$6$3(ie,fe=k[ae++])&&(~indexOf$1$1(ce,fe)||push$2$1(ce,fe));return ce},enumBugKeys$3$1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$2=objectKeysInternal$3,enumBugKeys$2$2=enumBugKeys$3$1,hiddenKeys$1$3=enumBugKeys$2$2.concat("length","prototype");objectGetOwnPropertyNames$3.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$2(k,hiddenKeys$1$3)};var objectGetOwnPropertySymbols$3={};objectGetOwnPropertySymbols$3.f=Object.getOwnPropertySymbols;var getBuiltIn$3$3=getBuiltIn$6$2,uncurryThis$e$1=functionUncurryThis$4,getOwnPropertyNamesModule$3=objectGetOwnPropertyNames$3,getOwnPropertySymbolsModule$1$2=objectGetOwnPropertySymbols$3,anObject$a$1=anObject$c$1,concat$1$2=uncurryThis$e$1([].concat),ownKeys$1$3=getBuiltIn$3$3("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$3.f(anObject$a$1(k)),ae=getOwnPropertySymbolsModule$1$2.f;return ae?concat$1$2(ie,ae(k)):ie},hasOwn$5$3=hasOwnProperty_1$4,ownKeys2$3=ownKeys$1$3,getOwnPropertyDescriptorModule$1$1=objectGetOwnPropertyDescriptor$3,definePropertyModule$4$1=objectDefineProperty$4,copyConstructorProperties$1$3=function(v,k,ie){for(var ae=ownKeys2$3(k),ce=definePropertyModule$4$1.f,fe=getOwnPropertyDescriptorModule$1$1.f,le=0;lele;)definePropertyModule$3$2.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$2$4=getBuiltIn$6$2,html$1$2=getBuiltIn$2$4("document","documentElement"),anObject$7$2=anObject$c$1,definePropertiesModule$1=objectDefineProperties$1,enumBugKeys$6=enumBugKeys$3$1,hiddenKeys$7=hiddenKeys$4$1,html$3=html$1$2,documentCreateElement$1$1=documentCreateElement$2$1,sharedKey$1$4=sharedKey$3$1,GT$1=">",LT$1="<",PROTOTYPE$1$1="prototype",SCRIPT$1="script",IE_PROTO$1$1=sharedKey$1$4("IE_PROTO"),EmptyConstructor$1=function(){},scriptTag$1=function(v){return LT$1+SCRIPT$1+GT$1+v+LT$1+"/"+SCRIPT$1+GT$1},NullProtoObjectViaActiveX$1=function(v){v.write(scriptTag$1("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame$1=function(){var v=documentCreateElement$1$1("iframe"),k="java"+SCRIPT$1+":",ie;return v.style.display="none",html$3.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag$1("document.F=Object")),ie.close(),ie.F},activeXDocument$1,NullProtoObject$1=function(){try{activeXDocument$1=new ActiveXObject("htmlfile")}catch{}NullProtoObject$1=typeof document<"u"?document.domain&&activeXDocument$1?NullProtoObjectViaActiveX$1(activeXDocument$1):NullProtoObjectViaIFrame$1():NullProtoObjectViaActiveX$1(activeXDocument$1);for(var v=enumBugKeys$6.length;v--;)delete NullProtoObject$1[PROTOTYPE$1$1][enumBugKeys$6[v]];return NullProtoObject$1()};hiddenKeys$7[IE_PROTO$1$1]=!0;var objectCreate$1=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor$1[PROTOTYPE$1$1]=anObject$7$2(k),ae=new EmptyConstructor$1,EmptyConstructor$1[PROTOTYPE$1$1]=null,ae[IE_PROTO$1$1]=k):ae=NullProtoObject$1(),ie===void 0?ae:definePropertiesModule$1.f(ae,ie)},fails$f$1=fails$p,global$a$3=global$l,$RegExp$1=global$a$3.RegExp,regexpUnsupportedDotAll=fails$f$1(function(){var v=$RegExp$1(".","s");return!(v.dotAll&&v.exec(` +`)&&v.flags==="s")}),fails$e$1=fails$p,global$9$4=global$l,$RegExp=global$9$4.RegExp,regexpUnsupportedNcg=fails$e$1(function(){var v=$RegExp("(?b)","g");return v.exec("b").groups.a!=="b"||"b".replace(v,"$c")!=="bc"}),call$b$2=functionCall$4,uncurryThis$d$2=functionUncurryThis$4,toString$2$2=toString$3$1,regexpFlags$2=regexpFlags$1$1,stickyHelpers$1=regexpStickyHelpers,shared$7=shared$4$1.exports,create$3=objectCreate$1,getInternalState$4$1=internalState$4.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared$7("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$2=uncurryThis$d$2("".charAt),indexOf$3=uncurryThis$d$2("".indexOf),replace=uncurryThis$d$2("".replace),stringSlice$2$1=uncurryThis$d$2("".slice),UPDATES_LAST_INDEX_WRONG=function(){var v=/a/,k=/b*/g;return call$b$2(nativeExec,v,"a"),call$b$2(nativeExec,k,"a"),v.lastIndex!==0||k.lastIndex!==0}(),UNSUPPORTED_Y$1=stickyHelpers$1.BROKEN_CARET,NPCG_INCLUDED=/()??/.exec("")[1]!==void 0,PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y$1||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG;PATCH&&(patchedExec=function(k){var ie=this,ae=getInternalState$4$1(ie),ce=toString$2$2(k),fe=ae.raw,le,ve,pe,ye,me,Ee,cr;if(fe)return fe.lastIndex=ie.lastIndex,le=call$b$2(patchedExec,fe,ce),ie.lastIndex=fe.lastIndex,le;var Br=ae.groups,$r=UNSUPPORTED_Y$1&&ie.sticky,Pr=call$b$2(regexpFlags$2,ie),Ar=ie.source,ur=0,jr=ce;if($r&&(Pr=replace(Pr,"y",""),indexOf$3(Pr,"g")===-1&&(Pr+="g"),jr=stringSlice$2$1(ce,ie.lastIndex),ie.lastIndex>0&&(!ie.multiline||ie.multiline&&charAt$2(ce,ie.lastIndex-1)!==` +`)&&(Ar="(?: "+Ar+")",jr=" "+jr,ur++),ve=new RegExp("^(?:"+Ar+")",Pr)),NPCG_INCLUDED&&(ve=new RegExp("^"+Ar+"$(?!\\s)",Pr)),UPDATES_LAST_INDEX_WRONG&&(pe=ie.lastIndex),ye=call$b$2(nativeExec,$r?ve:ie,jr),$r?ye?(ye.input=stringSlice$2$1(ye.input,ur),ye[0]=stringSlice$2$1(ye[0],ur),ye.index=ie.lastIndex,ie.lastIndex+=ye[0].length):ie.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&ye&&(ie.lastIndex=ie.global?ye.index+ye[0].length:pe),NPCG_INCLUDED&&ye&&ye.length>1&&call$b$2(nativeReplace,ye[0],ve,function(){for(me=1;me=fe?v?"":void 0:(le=charCodeAt(ae,ce),le<55296||le>56319||ce+1===fe||(ve=charCodeAt(ae,ce+1))<56320||ve>57343?v?charAt$1(ae,ce):le:v?stringSlice$1$1(ae,ce,ce+2):(le-55296<<10)+(ve-56320)+65536)}},stringMultibyte={codeAt:createMethod$1$1(!1),charAt:createMethod$1$1(!0)},charAt=stringMultibyte.charAt,advanceStringIndex$1=function(v,k,ie){return k+(ie?charAt(v,k).length:1)},toPropertyKey$1$4=toPropertyKey$4$1,definePropertyModule$2$3=objectDefineProperty$4,createPropertyDescriptor$2$3=createPropertyDescriptor$5$1,createProperty$1$1=function(v,k,ie){var ae=toPropertyKey$1$4(k);ae in v?definePropertyModule$2$3.f(v,ae,createPropertyDescriptor$2$3(0,ie)):v[ae]=ie},toAbsoluteIndex$2$1=toAbsoluteIndex$4$1,lengthOfArrayLike$4$1=lengthOfArrayLike$6$1,createProperty$2=createProperty$1$1,$Array$2$1=Array,max$4=Math.max,arraySliceSimple$1=function(v,k,ie){for(var ae=lengthOfArrayLike$4$1(v),ce=toAbsoluteIndex$2$1(k,ae),fe=toAbsoluteIndex$2$1(ie===void 0?ae:ie,ae),le=$Array$2$1(max$4(fe-ce,0)),ve=0;ce1||"".split(/.?/).length?ae=function(ce,fe){var le=toString2$2(requireObjectCoercible$6(this)),ve=fe===void 0?MAX_UINT32:fe>>>0;if(ve===0)return[];if(ce===void 0)return[le];if(!isRegExp(ce))return call$8$2(k,le,ce,ve);for(var pe=[],ye=(ce.ignoreCase?"i":"")+(ce.multiline?"m":"")+(ce.unicode?"u":"")+(ce.sticky?"y":""),me=0,Ee=new RegExp(ce.source,ye+"g"),cr,Br,$r;(cr=call$8$2(regexpExec,Ee,le))&&(Br=Ee.lastIndex,!(Br>me&&(push$1$1(pe,stringSlice$4(le,me,cr.index)),cr.length>1&&cr.index=ve)));)Ee.lastIndex===cr.index&&Ee.lastIndex++;return me===le.length?($r||!exec$3(Ee,""))&&push$1$1(pe,""):push$1$1(pe,stringSlice$4(le,me)),pe.length>ve?arraySlice$4$1(pe,0,ve):pe}:"0".split(void 0,0).length?ae=function(ce,fe){return ce===void 0&&fe===0?[]:call$8$2(k,this,ce,fe)}:ae=k,[function(fe,le){var ve=requireObjectCoercible$6(this),pe=fe==null?void 0:getMethod$1$4(fe,v);return pe?call$8$2(pe,fe,ve,le):call$8$2(ae,toString2$2(ve),fe,le)},function(ce,fe){var le=anObject$4$2(this),ve=toString2$2(ce),pe=ie(ae,le,ve,fe,ae!==k);if(pe.done)return pe.value;var ye=speciesConstructor$1$2(le,RegExp),me=le.unicode,Ee=(le.ignoreCase?"i":"")+(le.multiline?"m":"")+(le.unicode?"u":"")+(UNSUPPORTED_Y?"g":"y"),cr=new ye(UNSUPPORTED_Y?"^(?:"+le.source+")":le,Ee),Br=fe===void 0?MAX_UINT32:fe>>>0;if(Br===0)return[];if(ve.length===0)return callRegExpExec(cr,ve)===null?[ve]:[];for(var $r=0,Pr=0,Ar=[];Pr=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values"),values$1=Iterators$2$1.Arguments=Iterators$2$1.Array;addToUnscopables$2("keys");addToUnscopables$2("values");addToUnscopables$2("entries");if(DESCRIPTORS$5$4&&values$1.name!=="values")try{defineProperty$3$1(values$1,"name",{value:"values"})}catch(v){}var arrayBufferNative$1=typeof ArrayBuffer<"u"&&typeof DataView<"u",defineBuiltIn$1$4=defineBuiltIn$7$1,defineBuiltIns$1$1=function(v,k,ie){for(var ae in k)defineBuiltIn$1$4(v,ae,k[ae],ie);return v},isPrototypeOf$2$2=objectIsPrototypeOf$4,$TypeError$2$4=TypeError,anInstance$2$1=function(v,k){if(isPrototypeOf$2$2(k,v))return v;throw $TypeError$2$4("Incorrect invocation")},toIntegerOrInfinity$2$3=toIntegerOrInfinity$6$1,toLength$3$1=toLength$6$1,$RangeError$2$1=RangeError,toIndex$2$1=function(v){if(v===void 0)return 0;var k=toIntegerOrInfinity$2$3(v),ie=toLength$3$1(k);if(k!==ie)throw $RangeError$2$1("Wrong length or index");return ie},$Array$1$1=Array,abs$1=Math.abs,pow$1=Math.pow,floor$2$1=Math.floor,log$1=Math.log,LN2$1=Math.LN2,pack$2=function(v,k,ie){var ae=$Array$1$1(ie),ce=ie*8-k-1,fe=(1<>1,ve=k===23?pow$1(2,-24)-pow$1(2,-77):0,pe=v<0||v===0&&1/v<0?1:0,ye=0,me,Ee,cr;for(v=abs$1(v),v!=v||v===1/0?(Ee=v!=v?1:0,me=fe):(me=floor$2$1(log$1(v)/LN2$1),cr=pow$1(2,-me),v*cr<1&&(me--,cr*=2),me+le>=1?v+=ve/cr:v+=ve*pow$1(2,1-le),v*cr>=2&&(me++,cr/=2),me+le>=fe?(Ee=0,me=fe):me+le>=1?(Ee=(v*cr-1)*pow$1(2,k),me=me+le):(Ee=v*pow$1(2,le-1)*pow$1(2,k),me=0));k>=8;)ae[ye++]=Ee&255,Ee/=256,k-=8;for(me=me<0;)ae[ye++]=me&255,me/=256,ce-=8;return ae[--ye]|=pe*128,ae},unpack$2=function(v,k){var ie=v.length,ae=ie*8-k-1,ce=(1<>1,le=ae-7,ve=ie-1,pe=v[ve--],ye=pe&127,me;for(pe>>=7;le>0;)ye=ye*256+v[ve--],le-=8;for(me=ye&(1<<-le)-1,ye>>=-le,le+=k;le>0;)me=me*256+v[ve--],le-=8;if(ye===0)ye=1-fe;else{if(ye===ce)return me?NaN:pe?-1/0:1/0;me=me+pow$1(2,k),ye=ye-fe}return(pe?-1:1)*me*pow$1(2,ye-k)},ieee754$1={pack:pack$2,unpack:unpack$2},toObject$3$1=toObject$6$1,toAbsoluteIndex$1$3=toAbsoluteIndex$4$1,lengthOfArrayLike$3$1=lengthOfArrayLike$6$1,arrayFill$1$1=function v(k){for(var ie=toObject$3$1(this),ae=lengthOfArrayLike$3$1(ie),ce=arguments.length,fe=toAbsoluteIndex$1$3(ce>1?arguments[1]:void 0,ae),le=ce>2?arguments[2]:void 0,ve=le===void 0?ae:toAbsoluteIndex$1$3(le,ae);ve>fe;)ie[fe++]=k;return ie},global$8$4=global$l,uncurryThis$7$3=functionUncurryThis$4,DESCRIPTORS$4$4=descriptors$4,NATIVE_ARRAY_BUFFER$1$1=arrayBufferNative$1,FunctionName$2=functionName$4,createNonEnumerableProperty$3$1=createNonEnumerableProperty$8$1,defineBuiltIns$2=defineBuiltIns$1$1,fails$7$4=fails$p,anInstance$1$2=anInstance$2$1,toIntegerOrInfinity$1$3=toIntegerOrInfinity$6$1,toLength$2$1=toLength$6$1,toIndex$1$1=toIndex$2$1,IEEE754$1=ieee754$1,getPrototypeOf$1$1=objectGetPrototypeOf$1,setPrototypeOf$3$1=objectSetPrototypeOf$2,getOwnPropertyNames$1$1=objectGetOwnPropertyNames$3.f,defineProperty$2$3=objectDefineProperty$4.f,arrayFill$2=arrayFill$1$1,arraySlice$3$1=arraySliceSimple$1,setToStringTag$5=setToStringTag$3$1,InternalStateModule$2$1=internalState$4,PROPER_FUNCTION_NAME$4=FunctionName$2.PROPER,CONFIGURABLE_FUNCTION_NAME$6=FunctionName$2.CONFIGURABLE,getInternalState$2$1=InternalStateModule$2$1.get,setInternalState$1$1=InternalStateModule$2$1.set,ARRAY_BUFFER$1="ArrayBuffer",DATA_VIEW$1="DataView",PROTOTYPE$2="prototype",WRONG_LENGTH$1$1="Wrong length",WRONG_INDEX$1="Wrong index",NativeArrayBuffer$1=global$8$4[ARRAY_BUFFER$1],$ArrayBuffer$1=NativeArrayBuffer$1,ArrayBufferPrototype$1$1=$ArrayBuffer$1&&$ArrayBuffer$1[PROTOTYPE$2],$DataView$1=global$8$4[DATA_VIEW$1],DataViewPrototype$1$1=$DataView$1&&$DataView$1[PROTOTYPE$2],ObjectPrototype$1$1=Object.prototype,Array$1$1=global$8$4.Array,RangeError$3$1=global$8$4.RangeError,fill2$1=uncurryThis$7$3(arrayFill$2),reverse$1=uncurryThis$7$3([].reverse),packIEEE754$1=IEEE754$1.pack,unpackIEEE754$1=IEEE754$1.unpack,packInt8$1=function(v){return[v&255]},packInt16$1=function(v){return[v&255,v>>8&255]},packInt32$1=function(v){return[v&255,v>>8&255,v>>16&255,v>>24&255]},unpackInt32$1=function(v){return v[3]<<24|v[2]<<16|v[1]<<8|v[0]},packFloat32$1=function(v){return packIEEE754$1(v,23,4)},packFloat64$1=function(v){return packIEEE754$1(v,52,8)},addGetter$1$1=function(v,k){defineProperty$2$3(v[PROTOTYPE$2],k,{get:function(){return getInternalState$2$1(this)[k]}})},get$5=function(v,k,ie,ae){var ce=toIndex$1$1(ie),fe=getInternalState$2$1(v);if(ce+k>fe.byteLength)throw RangeError$3$1(WRONG_INDEX$1);var le=getInternalState$2$1(fe.buffer).bytes,ve=ce+fe.byteOffset,pe=arraySlice$3$1(le,ve,ve+k);return ae?pe:reverse$1(pe)},set$5=function(v,k,ie,ae,ce,fe){var le=toIndex$1$1(ie),ve=getInternalState$2$1(v);if(le+k>ve.byteLength)throw RangeError$3$1(WRONG_INDEX$1);for(var pe=getInternalState$2$1(ve.buffer).bytes,ye=le+ve.byteOffset,me=ae(+ce),Ee=0;Eece)throw RangeError$3$1("Wrong offset");if(ae=ae===void 0?ce-fe:toLength$2$1(ae),fe+ae>ce)throw RangeError$3$1(WRONG_LENGTH$1$1);setInternalState$1$1(this,{buffer:k,byteLength:ae,byteOffset:fe}),DESCRIPTORS$4$4||(this.buffer=k,this.byteLength=ae,this.byteOffset=fe)},DataViewPrototype$1$1=$DataView$1[PROTOTYPE$2],DESCRIPTORS$4$4&&(addGetter$1$1($ArrayBuffer$1,"byteLength"),addGetter$1$1($DataView$1,"buffer"),addGetter$1$1($DataView$1,"byteLength"),addGetter$1$1($DataView$1,"byteOffset")),defineBuiltIns$2(DataViewPrototype$1$1,{getInt8:function(k){return get$5(this,1,k)[0]<<24>>24},getUint8:function(k){return get$5(this,1,k)[0]},getInt16:function(k){var ie=get$5(this,2,k,arguments.length>1?arguments[1]:void 0);return(ie[1]<<8|ie[0])<<16>>16},getUint16:function(k){var ie=get$5(this,2,k,arguments.length>1?arguments[1]:void 0);return ie[1]<<8|ie[0]},getInt32:function(k){return unpackInt32$1(get$5(this,4,k,arguments.length>1?arguments[1]:void 0))},getUint32:function(k){return unpackInt32$1(get$5(this,4,k,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(k){return unpackIEEE754$1(get$5(this,4,k,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(k){return unpackIEEE754$1(get$5(this,8,k,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(k,ie){set$5(this,1,k,packInt8$1,ie)},setUint8:function(k,ie){set$5(this,1,k,packInt8$1,ie)},setInt16:function(k,ie){set$5(this,2,k,packInt16$1,ie,arguments.length>2?arguments[2]:void 0)},setUint16:function(k,ie){set$5(this,2,k,packInt16$1,ie,arguments.length>2?arguments[2]:void 0)},setInt32:function(k,ie){set$5(this,4,k,packInt32$1,ie,arguments.length>2?arguments[2]:void 0)},setUint32:function(k,ie){set$5(this,4,k,packInt32$1,ie,arguments.length>2?arguments[2]:void 0)},setFloat32:function(k,ie){set$5(this,4,k,packFloat32$1,ie,arguments.length>2?arguments[2]:void 0)},setFloat64:function(k,ie){set$5(this,8,k,packFloat64$1,ie,arguments.length>2?arguments[2]:void 0)}});else{if(INCORRECT_ARRAY_BUFFER_NAME$1=PROPER_FUNCTION_NAME$4&&NativeArrayBuffer$1.name!==ARRAY_BUFFER$1,!fails$7$4(function(){NativeArrayBuffer$1(1)})||!fails$7$4(function(){new NativeArrayBuffer$1(-1)})||fails$7$4(function(){return new NativeArrayBuffer$1,new NativeArrayBuffer$1(1.5),new NativeArrayBuffer$1(NaN),INCORRECT_ARRAY_BUFFER_NAME$1&&!CONFIGURABLE_FUNCTION_NAME$6})){for($ArrayBuffer$1=function(k){return anInstance$1$2(this,ArrayBufferPrototype$1$1),new NativeArrayBuffer$1(toIndex$1$1(k))},$ArrayBuffer$1[PROTOTYPE$2]=ArrayBufferPrototype$1$1,keys2$1=getOwnPropertyNames$1$1(NativeArrayBuffer$1),j$1=0;keys2$1.length>j$1;)(key$2=keys2$1[j$1++])in $ArrayBuffer$1||createNonEnumerableProperty$3$1($ArrayBuffer$1,key$2,NativeArrayBuffer$1[key$2]);ArrayBufferPrototype$1$1.constructor=$ArrayBuffer$1}else INCORRECT_ARRAY_BUFFER_NAME$1&&CONFIGURABLE_FUNCTION_NAME$6&&createNonEnumerableProperty$3$1(NativeArrayBuffer$1,"name",ARRAY_BUFFER$1);setPrototypeOf$3$1&&getPrototypeOf$1$1(DataViewPrototype$1$1)!==ObjectPrototype$1$1&&setPrototypeOf$3$1(DataViewPrototype$1$1,ObjectPrototype$1$1),testView$1=new $DataView$1(new $ArrayBuffer$1(2)),$setInt8$1=uncurryThis$7$3(DataViewPrototype$1$1.setInt8),testView$1.setInt8(0,2147483648),testView$1.setInt8(1,2147483649),(testView$1.getInt8(0)||!testView$1.getInt8(1))&&defineBuiltIns$2(DataViewPrototype$1$1,{setInt8:function(k,ie){$setInt8$1(this,k,ie<<24>>24)},setUint8:function(k,ie){$setInt8$1(this,k,ie<<24>>24)}},{unsafe:!0})}var INCORRECT_ARRAY_BUFFER_NAME$1,keys2$1,j$1,key$2,testView$1,$setInt8$1;setToStringTag$5($ArrayBuffer$1,ARRAY_BUFFER$1);setToStringTag$5($DataView$1,DATA_VIEW$1);var arrayBuffer$1={ArrayBuffer:$ArrayBuffer$1,DataView:$DataView$1},$$2$2=_export$3,uncurryThis$6$4=functionUncurryThis$4,fails$6$4=fails$p,ArrayBufferModule$1$1=arrayBuffer$1,anObject$1$4=anObject$c$1,toAbsoluteIndex$7=toAbsoluteIndex$4$1,toLength$1$3=toLength$6$1,speciesConstructor$3=speciesConstructor$2$1,ArrayBuffer$3$1=ArrayBufferModule$1$1.ArrayBuffer,DataView$2$1=ArrayBufferModule$1$1.DataView,DataViewPrototype$2=DataView$2$1.prototype,un$ArrayBufferSlice$1=uncurryThis$6$4(ArrayBuffer$3$1.prototype.slice),getUint8$1=uncurryThis$6$4(DataViewPrototype$2.getUint8),setUint8$1=uncurryThis$6$4(DataViewPrototype$2.setUint8),INCORRECT_SLICE$1=fails$6$4(function(){return!new ArrayBuffer$3$1(2).slice(1,void 0).byteLength});$$2$2({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:INCORRECT_SLICE$1},{slice:function v(k,ie){if(un$ArrayBufferSlice$1&&ie===void 0)return un$ArrayBufferSlice$1(anObject$1$4(this),k);for(var ae=anObject$1$4(this).byteLength,ce=toAbsoluteIndex$7(k,ae),fe=toAbsoluteIndex$7(ie===void 0?ae:ie,ae),le=new(speciesConstructor$3(this,ArrayBuffer$3$1))(toLength$1$3(fe-ce)),ve=new DataView$2$1(this),pe=new DataView$2$1(le),ye=0;ce1?arguments[1]:void 0,le=fe!==void 0,ve=getIteratorMethod$4(ae),pe,ye,me,Ee,cr,Br;if(ve&&!isArrayIteratorMethod$3(ve))for(cr=getIterator$3(ae,ve),Br=cr.next,ae=[];!(Ee=call$4$4(Br,cr)).done;)ae.push(Ee.value);for(le&&ce>2&&(fe=bind$1$2(fe,arguments[2])),ye=lengthOfArrayLike$2$2(ae),me=new(aTypedArrayConstructor$1$1(ie))(ye),pe=0;ye>pe;pe++)me[pe]=le?fe(ae[pe],pe):ae[pe];return me},classof$2$2=classofRaw$1$3,isArray$1$1=Array.isArray||function v(k){return classof$2$2(k)=="Array"},isArray2$1=isArray$1$1,isConstructor3$2=isConstructor$2$1,isObject$2$4=isObject$b$1,wellKnownSymbol$2$3=wellKnownSymbol$h$1,SPECIES$1$2=wellKnownSymbol$2$3("species"),$Array$3=Array,arraySpeciesConstructor$1$1=function(v){var k;return isArray2$1(v)&&(k=v.constructor,isConstructor3$2(k)&&(k===$Array$3||isArray2$1(k.prototype))?k=void 0:isObject$2$4(k)&&(k=k[SPECIES$1$2],k===null&&(k=void 0))),k===void 0?$Array$3:k},arraySpeciesConstructor$2=arraySpeciesConstructor$1$1,arraySpeciesCreate$1$1=function(v,k){return new(arraySpeciesConstructor$2(v))(k===0?0:k)},bind$9=functionBindContext$2,uncurryThis$4$4=functionUncurryThis$4,IndexedObject$1$2=indexedObject$3,toObject$1$4=toObject$6$1,lengthOfArrayLike$1$3=lengthOfArrayLike$6$1,arraySpeciesCreate$2=arraySpeciesCreate$1$1,push$4=uncurryThis$4$4([].push),createMethod$4=function(v){var k=v==1,ie=v==2,ae=v==3,ce=v==4,fe=v==6,le=v==7,ve=v==5||fe;return function(pe,ye,me,Ee){for(var cr=toObject$1$4(pe),Br=IndexedObject$1$2(cr),$r=bind$9(ye,me),Pr=lengthOfArrayLike$1$3(Br),Ar=0,ur=Ee||arraySpeciesCreate$2,jr=k?ur(pe,Pr):ie||le?ur(pe,0):void 0,Mr,Lr;Pr>Ar;Ar++)if((ve||Ar in Br)&&(Mr=Br[Ar],Lr=$r(Mr,Ar,cr),v))if(k)jr[Ar]=Lr;else if(Lr)switch(v){case 3:return!0;case 5:return Mr;case 6:return Ar;case 2:push$4(jr,Mr)}else switch(v){case 4:return!1;case 7:push$4(jr,Mr)}return fe?-1:ae||ce?ce:jr}},arrayIteration$1={forEach:createMethod$4(0),map:createMethod$4(1),filter:createMethod$4(2),some:createMethod$4(3),every:createMethod$4(4),find:createMethod$4(5),findIndex:createMethod$4(6),filterReject:createMethod$4(7)},getBuiltIn$c=getBuiltIn$6$2,definePropertyModule$1$4=objectDefineProperty$4,wellKnownSymbol$1$4=wellKnownSymbol$h$1,DESCRIPTORS$2$4=descriptors$4,SPECIES$4=wellKnownSymbol$1$4("species"),setSpecies$1$2=function(v){var k=getBuiltIn$c(v),ie=definePropertyModule$1$4.f;DESCRIPTORS$2$4&&k&&!k[SPECIES$4]&&ie(k,SPECIES$4,{configurable:!0,get:function(){return this}})},isCallable$m=isCallable$j$1,isObject$1$4=isObject$b$1,setPrototypeOf$1$1=objectSetPrototypeOf$2,inheritIfRequired$1$1=function(v,k,ie){var ae,ce;return setPrototypeOf$1$1&&isCallable$m(ae=k.constructor)&&ae!==ie&&isObject$1$4(ce=ae.prototype)&&ce!==ie.prototype&&setPrototypeOf$1$1(v,ce),v},$$1$2=_export$3,global$5$4=global$l,call$3$4=functionCall$4,DESCRIPTORS$1$4=descriptors$4,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$1=typedArrayConstructorsRequireWrappers$1,ArrayBufferViewCore$4$1=arrayBufferViewCore$1,ArrayBufferModule$2=arrayBuffer$1,anInstance$4=anInstance$2$1,createPropertyDescriptor$9=createPropertyDescriptor$5$1,createNonEnumerableProperty$1$4=createNonEnumerableProperty$8$1,isIntegralNumber$2=isIntegralNumber$1$1,toLength$8=toLength$6$1,toIndex$3=toIndex$2$1,toOffset$1$1=toOffset$2$1,toPropertyKey$8=toPropertyKey$4$1,hasOwn2$4=hasOwnProperty_1$4,classof$1$3=classof$9$1,isObject$e=isObject$b$1,isSymbol$7=isSymbol$3$1,create2$1=objectCreate$1,isPrototypeOf$8=objectIsPrototypeOf$4,setPrototypeOf$6=objectSetPrototypeOf$2,getOwnPropertyNames2$1=objectGetOwnPropertyNames$3.f,typedArrayFrom$2=typedArrayFrom$1$1,forEach$1=arrayIteration$1.forEach,setSpecies$3=setSpecies$1$2,definePropertyModule$a=objectDefineProperty$4,getOwnPropertyDescriptorModule$4=objectGetOwnPropertyDescriptor$3,InternalStateModule$8=internalState$4,inheritIfRequired$2=inheritIfRequired$1$1,getInternalState$8=InternalStateModule$8.get,setInternalState$4=InternalStateModule$8.set,enforceInternalState$6=InternalStateModule$8.enforce,nativeDefineProperty$1=definePropertyModule$a.f,nativeGetOwnPropertyDescriptor$1=getOwnPropertyDescriptorModule$4.f,round$1=Math.round,RangeError$2$1=global$5$4.RangeError,ArrayBuffer$1$1=ArrayBufferModule$2.ArrayBuffer,ArrayBufferPrototype$2=ArrayBuffer$1$1.prototype,DataView$1$1=ArrayBufferModule$2.DataView,NATIVE_ARRAY_BUFFER_VIEWS$3=ArrayBufferViewCore$4$1.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG$2=ArrayBufferViewCore$4$1.TYPED_ARRAY_TAG,TypedArray$2=ArrayBufferViewCore$4$1.TypedArray,TypedArrayPrototype$2=ArrayBufferViewCore$4$1.TypedArrayPrototype,aTypedArrayConstructor$3=ArrayBufferViewCore$4$1.aTypedArrayConstructor,isTypedArray$2=ArrayBufferViewCore$4$1.isTypedArray,BYTES_PER_ELEMENT$1="BYTES_PER_ELEMENT",WRONG_LENGTH$2="Wrong length",fromList$1=function(v,k){aTypedArrayConstructor$3(v);for(var ie=0,ae=k.length,ce=new v(ae);ae>ie;)ce[ie]=k[ie++];return ce},addGetter$2=function(v,k){nativeDefineProperty$1(v,k,{get:function(){return getInternalState$8(this)[k]}})},isArrayBuffer$1=function(v){var k;return isPrototypeOf$8(ArrayBufferPrototype$2,v)||(k=classof$1$3(v))=="ArrayBuffer"||k=="SharedArrayBuffer"},isTypedArrayIndex$1=function(v,k){return isTypedArray$2(v)&&!isSymbol$7(k)&&k in v&&isIntegralNumber$2(+k)&&k>=0},wrappedGetOwnPropertyDescriptor$1=function v(k,ie){return ie=toPropertyKey$8(ie),isTypedArrayIndex$1(k,ie)?createPropertyDescriptor$9(2,k[ie]):nativeGetOwnPropertyDescriptor$1(k,ie)},wrappedDefineProperty$1=function v(k,ie,ae){return ie=toPropertyKey$8(ie),isTypedArrayIndex$1(k,ie)&&isObject$e(ae)&&hasOwn2$4(ae,"value")&&!hasOwn2$4(ae,"get")&&!hasOwn2$4(ae,"set")&&!ae.configurable&&(!hasOwn2$4(ae,"writable")||ae.writable)&&(!hasOwn2$4(ae,"enumerable")||ae.enumerable)?(k[ie]=ae.value,k):nativeDefineProperty$1(k,ie,ae)};DESCRIPTORS$1$4?(NATIVE_ARRAY_BUFFER_VIEWS$3||(getOwnPropertyDescriptorModule$4.f=wrappedGetOwnPropertyDescriptor$1,definePropertyModule$a.f=wrappedDefineProperty$1,addGetter$2(TypedArrayPrototype$2,"buffer"),addGetter$2(TypedArrayPrototype$2,"byteOffset"),addGetter$2(TypedArrayPrototype$2,"byteLength"),addGetter$2(TypedArrayPrototype$2,"length")),$$1$2({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS$3},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor$1,defineProperty:wrappedDefineProperty$1}),typedArrayConstructor$1.exports=function(v,k,ie){var ae=v.match(/\d+$/)[0]/8,ce=v+(ie?"Clamped":"")+"Array",fe="get"+v,le="set"+v,ve=global$5$4[ce],pe=ve,ye=pe&&pe.prototype,me={},Ee=function(Pr,Ar){var ur=getInternalState$8(Pr);return ur.view[fe](Ar*ae+ur.byteOffset,!0)},cr=function(Pr,Ar,ur){var jr=getInternalState$8(Pr);ie&&(ur=(ur=round$1(ur))<0?0:ur>255?255:ur&255),jr.view[le](Ar*ae+jr.byteOffset,ur,!0)},Br=function(Pr,Ar){nativeDefineProperty$1(Pr,Ar,{get:function(){return Ee(this,Ar)},set:function(ur){return cr(this,Ar,ur)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS$3?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$1&&(pe=k(function(Pr,Ar,ur,jr){return anInstance$4(Pr,ye),inheritIfRequired$2(function(){return isObject$e(Ar)?isArrayBuffer$1(Ar)?jr!==void 0?new ve(Ar,toOffset$1$1(ur,ae),jr):ur!==void 0?new ve(Ar,toOffset$1$1(ur,ae)):new ve(Ar):isTypedArray$2(Ar)?fromList$1(pe,Ar):call$3$4(typedArrayFrom$2,pe,Ar):new ve(toIndex$3(Ar))}(),Pr,pe)}),setPrototypeOf$6&&setPrototypeOf$6(pe,TypedArray$2),forEach$1(getOwnPropertyNames2$1(ve),function(Pr){Pr in pe||createNonEnumerableProperty$1$4(pe,Pr,ve[Pr])}),pe.prototype=ye):(pe=k(function(Pr,Ar,ur,jr){anInstance$4(Pr,ye);var Mr=0,Lr=0,Vr,Gr,Ur;if(!isObject$e(Ar))Ur=toIndex$3(Ar),Gr=Ur*ae,Vr=new ArrayBuffer$1$1(Gr);else if(isArrayBuffer$1(Ar)){Vr=Ar,Lr=toOffset$1$1(ur,ae);var Qr=Ar.byteLength;if(jr===void 0){if(Qr%ae||(Gr=Qr-Lr,Gr<0))throw RangeError$2$1(WRONG_LENGTH$2)}else if(Gr=toLength$8(jr)*ae,Gr+Lr>Qr)throw RangeError$2$1(WRONG_LENGTH$2);Ur=Gr/ae}else return isTypedArray$2(Ar)?fromList$1(pe,Ar):call$3$4(typedArrayFrom$2,pe,Ar);for(setInternalState$4(Pr,{buffer:Vr,byteOffset:Lr,byteLength:Gr,length:Ur,view:new DataView$1$1(Vr)});Mr1?arguments[1]:void 0,ie>2?arguments[2]:void 0)},CONVERSION_BUG$1);var global$4$4=global$l,call$1$4=functionCall$4,ArrayBufferViewCore$2$1=arrayBufferViewCore$1,lengthOfArrayLike$9=lengthOfArrayLike$6$1,toOffset$3=toOffset$2$1,toIndexedObject$9=toObject$6$1,fails$3$4=fails$p,RangeError$1$1=global$4$4.RangeError,Int8Array$2$1=global$4$4.Int8Array,Int8ArrayPrototype$2=Int8Array$2$1&&Int8Array$2$1.prototype,$set$1=Int8ArrayPrototype$2&&Int8ArrayPrototype$2.set,aTypedArray$2$1=ArrayBufferViewCore$2$1.aTypedArray,exportTypedArrayMethod$2$1=ArrayBufferViewCore$2$1.exportTypedArrayMethod,WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$1=!fails$3$4(function(){var v=new Uint8ClampedArray(2);return call$1$4($set$1,v,{length:1,0:3},1),v[1]!==3}),TO_OBJECT_BUG$1=WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$1&&ArrayBufferViewCore$2$1.NATIVE_ARRAY_BUFFER_VIEWS&&fails$3$4(function(){var v=new Int8Array$2$1(2);return v.set(1),v.set("2",1),v[0]!==0||v[1]!==2});exportTypedArrayMethod$2$1("set",function v(k){aTypedArray$2$1(this);var ie=toOffset$3(arguments.length>1?arguments[1]:void 0,1),ae=toIndexedObject$9(k);if(WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS$1)return call$1$4($set$1,this,ae,ie);var ce=this.length,fe=lengthOfArrayLike$9(ae),le=0;if(fe+ie>ce)throw RangeError$1$1("Wrong length");for(;le0;)v[fe]=v[--fe];fe!==ae++&&(v[fe]=ce)}return v},merge$1=function(v,k,ie,ae){for(var ce=k.length,fe=ie.length,le=0,ve=0;le0&&1/ie<0?1:-1:k>ie}};exportTypedArrayMethod$1$1("sort",function v(k){return k!==void 0&&aCallable$b(k),STABLE_SORT$1?un$Sort$1(this,k):internalSort$1(aTypedArray$1$1(this),getSortCompare$1(k))},!STABLE_SORT$1||ACCEPT_INCORRECT_ARGUMENTS$1);var uncurryThis$1$4=functionUncurryThis$4,arraySlice$1$2=uncurryThis$1$4([].slice),global$2$4=global$l,apply$3=functionApply$2,ArrayBufferViewCore$5=arrayBufferViewCore$1,fails$1$4=fails$p,arraySlice$5=arraySlice$1$2,Int8Array$1$1=global$2$4.Int8Array,aTypedArray$5=ArrayBufferViewCore$5.aTypedArray,exportTypedArrayMethod$5=ArrayBufferViewCore$5.exportTypedArrayMethod,$toLocaleString$1=[].toLocaleString,TO_LOCALE_STRING_BUG$1=!!Int8Array$1$1&&fails$1$4(function(){$toLocaleString$1.call(new Int8Array$1$1(1))}),FORCED$1=fails$1$4(function(){return[1,2].toLocaleString()!=new Int8Array$1$1([1,2]).toLocaleString()})||!fails$1$4(function(){Int8Array$1$1.prototype.toLocaleString.call([1,2])});exportTypedArrayMethod$5("toLocaleString",function v(){return apply$3($toLocaleString$1,TO_LOCALE_STRING_BUG$1?arraySlice$5(aTypedArray$5(this)):aTypedArray$5(this),arraySlice$5(arguments))},FORCED$1);var DESCRIPTORS$h=descriptors$4,uncurryThis$o=functionUncurryThis$4,call$h=functionCall$4,fails$q=fails$p,objectKeys$4=objectKeys$2$1,getOwnPropertySymbolsModule$4=objectGetOwnPropertySymbols$3,propertyIsEnumerableModule$4=objectPropertyIsEnumerable$3,toObject$a=toObject$6$1,IndexedObject$5=indexedObject$3,$assign$2=Object.assign,defineProperty4=Object.defineProperty,concat$5=uncurryThis$o([].concat),objectAssign$2=!$assign$2||fails$q(function(){if(DESCRIPTORS$h&&$assign$2({b:1},$assign$2(defineProperty4({},"a",{enumerable:!0,get:function(){defineProperty4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},k={},ie=Symbol(),ae="abcdefghijklmnopqrst";return v[ie]=7,ae.split("").forEach(function(ce){k[ce]=ce}),$assign$2({},v)[ie]!=7||objectKeys$4($assign$2({},k)).join("")!=ae})?function v(k,ie){for(var ae=toObject$a(k),ce=arguments.length,fe=1,le=getOwnPropertySymbolsModule$4.f,ve=propertyIsEnumerableModule$4.f;ce>fe;)for(var pe=IndexedObject$5(arguments[fe++]),ye=le?concat$5(objectKeys$4(pe),le(pe)):objectKeys$4(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$h||call$h(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$2,$$8=_export$3,assign2$2=objectAssign$2;$$8({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$2},{assign:assign2$2});var domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement$5=documentCreateElement$2$1,classList=documentCreateElement$5("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$1$4=global$l,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$a=createNonEnumerableProperty$8$1,wellKnownSymbol$i=wellKnownSymbol$h$1,ITERATOR$6=wellKnownSymbol$i("iterator"),TO_STRING_TAG$6=wellKnownSymbol$i("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(v,k){if(v){if(v[ITERATOR$6]!==ArrayValues)try{createNonEnumerableProperty$a(v,ITERATOR$6,ArrayValues)}catch{v[ITERATOR$6]=ArrayValues}if(v[TO_STRING_TAG$6]||createNonEnumerableProperty$a(v,TO_STRING_TAG$6,k),DOMIterables[k]){for(var ie in ArrayIteratorMethods)if(v[ie]!==ArrayIteratorMethods[ie])try{createNonEnumerableProperty$a(v,ie,ArrayIteratorMethods[ie])}catch{v[ie]=ArrayIteratorMethods[ie]}}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$1$4[COLLECTION_NAME]&&global$1$4[COLLECTION_NAME].prototype,COLLECTION_NAME);var COLLECTION_NAME;handlePrototype(DOMTokenListPrototype,"DOMTokenList");function __awaiter$6(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARMAAAETCAYAAAAVqeK4AAAAAXNSR0IArs4c6QAAAJZlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgExAAIAAAARAAAAWodpAAQAAAABAAAAbAAAAAAAAAEsAAAAAQAAASwAAAABd3d3Lmlua3NjYXBlLm9yZwAAAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAROgAwAEAAAAAQAAARMAAAAAwzPlUAAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAi9pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+d3d3Lmlua3NjYXBlLm9yZzwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj4zMDA8L3RpZmY6WVJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjMwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJER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IDyqLdxYiJDsbfLDbSorgSddXae2+JUurd2Lvy9USxtt67+eYogY0Slz7ZO05Mx82cmwYvMZFSJqArYukaKFyZpNwRETRf6Mpkg9S7WmxgBPVTBQT6JaADcIhJv5iMz5AXE/3joGNiOhWAO53Gd5tbDpZLOH/sVkiZjOYKiVpnq07LZPQEDQEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAgQQJ/D/LxtSxjmI1fwAAAABJRU5ErkJggg==",STORAGE_ACCOUNT="account",isInstalled$4=()=>waitFor(()=>!!window.dapp).catch(()=>!1);function setupWalletState(v){return __awaiter$6(this,void 0,void 0,function*(){const k=yield v.getItem(STORAGE_ACCOUNT);return window.dapp?{wallet:window.dapp,account:k||void 0}:{}})}var WelldoneWallet=({options:v,store:k,emitter:ie,logger:ae,storage:ce,provider:fe})=>__awaiter$6(void 0,void 0,void 0,function*(){const le=yield setupWalletState(ce),ve=()=>__awaiter$6(void 0,void 0,void 0,function*(){if(le.wallet){const Pr=yield le.wallet.request("near",{method:"dapp:accounts"});return Pr.near?[Pr.near.address,Pr.near.pubKey]:[]}return[]}),pe=({accountId:Pr,publicKey:Ar})=>__awaiter$6(void 0,void 0,void 0,function*(){if(ae.log("validateAccessKey",{accountId:Pr,publicKey:Ar}),!le.wallet)throw new Error("Wallet is not installed");const ur=yield le.wallet.request("near",{method:"query",params:{request_type:"view_access_key",finality:"final",account_id:Pr,public_key:Ar}});if(ae.log("validateAccessKey:accessKey",{accessKey:ur}),ur.permission!=="FullAccess")throw new Error("Public key requires 'FullAccess' permission");return ur}),ye=()=>{le.account&&(ce.removeItem(STORAGE_ACCOUNT),delete le.account)},me=()=>le.account?[{accountId:le.account.accountId,publicKey:le.account.publicKey}]:[],Ee=()=>__awaiter$6(void 0,void 0,void 0,function*(){ye(),ie.emit("signedOut",null)}),cr=()=>{le.wallet&&(le.wallet.on("dapp:accountsChanged",Pr=>__awaiter$6(void 0,void 0,void 0,function*(){ae.log("onAccountChange",Pr),yield Ee()})),le.wallet.on("dapp:chainChanged",Pr=>__awaiter$6(void 0,void 0,void 0,function*(){ae.log("onNetworkChange",Pr);const Ar=Pr.split(":")[1]==="near"?"mainnet":"testnet";v.network.networkId!==Ar&&(yield Ee(),ie.emit("networkChanged",{networkId:Ar}))})))},Br={createKey:()=>{throw new Error("Not implemented")},getPublicKey:Pr=>__awaiter$6(void 0,void 0,void 0,function*(){const ur=me().find(jr=>jr.accountId===Pr);if(!ur)throw new Error("Failed to find public key for account");return nearAPI$1.utils.PublicKey.from(ur.publicKey)}),signMessage:(Pr,Ar)=>__awaiter$6(void 0,void 0,void 0,function*(){if(!le.wallet)throw new Error("Wallet is not installed");if(!me().find(Mr=>Mr.accountId===Ar))throw new Error("Failed to find account for signing");try{const Mr=nearAPI$1.transactions.Transaction.decode(Buffer.from(Pr)),Lr=Buffer.from(Mr.encode()).toString("hex"),Vr=yield le.wallet.request("near",{method:"dapp:signTransaction",params:["0x"+Lr]});return{signature:Buffer.from(Vr[0].signature.substr(2),"hex"),publicKey:nearAPI$1.utils.PublicKey.from(Vr[0].publicKey)}}catch{const Lr=new TextDecoder("utf-8").decode(Pr),Vr=yield le.wallet.request("near",{method:"dapp:signMessage",params:[Lr]});return{signature:Buffer.from(Vr[0].signature.substr(2),"hex"),publicKey:nearAPI$1.utils.PublicKey.from(Vr[0].publicKey)}}})},$r=Pr=>{const Ar=me(),{contract:ur}=k.getState();if(!Ar.length||!ur)throw new Error("Wallet not signed in");return Pr.map(jr=>({signerId:jr.signerId||Ar[0].accountId,receiverId:jr.receiverId||ur.contractId,actions:jr.actions}))};return{signIn(){return __awaiter$6(this,void 0,void 0,function*(){const Pr=me();if(Pr.length)return Pr;le.account&&(yield Ee());const Ar=yield ve();if(!(yield pe({accountId:Ar[0],publicKey:Ar[1]})))throw Ee(),new Error(`Public key (${Ar[1]}) is not registered with the account '${Ar[0]}'.`);return yield ce.setItem(STORAGE_ACCOUNT,{accountId:Ar[0],publicKey:Ar[1]}),le.account={accountId:Ar[0],publicKey:Ar[1]},cr(),me()})},getAccounts(){return __awaiter$6(this,void 0,void 0,function*(){return me()})},signOut:Ee,verifyOwner({message:Pr}){return __awaiter$6(this,void 0,void 0,function*(){if(ae.log("verifyOwner",{message:Pr}),!le.wallet)throw new Error("Wallet is not installed");const Ar=le.account;if(!Ar)throw new Error("Wallet not signed in");const ur=Ar.accountId,jr=nearAPI$1.utils.PublicKey.fromString(Ar.publicKey),Mr=yield fe.block({finality:"final"}),Lr={accountId:ur,message:Pr,blockId:Mr.header.hash,publicKey:Buffer.from(jr.data).toString("base64"),keyType:jr.keyType},Vr=JSON.stringify(Lr),Gr=yield Br.signMessage(new Uint8Array(Buffer.from(Vr)),ur);return Object.assign(Object.assign({},Lr),{signature:Buffer.from(Gr.signature).toString("base64")})})},signAndSendTransaction({signerId:Pr,receiverId:Ar,actions:ur}){return __awaiter$6(this,void 0,void 0,function*(){ae.log("signAndSendTransaction",{signerId:Pr,receiverId:Ar,actions:ur});const{contract:jr}=k.getState();if(!me().length||!jr)throw new Error("Wallet not signed in");const[Lr]=yield signTransactions($r([{signerId:Pr,receiverId:Ar,actions:ur}]),Br,v.network);return fe.sendTransaction(Lr)})},signAndSendTransactions({transactions:Pr}){return __awaiter$6(this,void 0,void 0,function*(){ae.log("signAndSendTransactions",{transactions:Pr});const Ar=yield signTransactions($r(Pr),Br,v.network),ur=[];for(let jr=0;jr{jr.slice(0,8)==="ed25519:"?Ar.push(jr.slice(8)):Ar.push(jr)});const ur={privateKey:Ar,network:v.network.networkId};yield le.wallet.request("near",{method:"experimental:near:importPrivatekey",params:[ur]})})}}});function setupWelldoneWallet({iconUrl:v=icon$5,deprecated:k=!1}={}){return()=>__awaiter$6(this,void 0,void 0,function*(){const ie=(0,import_is_mobile$5.default)(),ae=isCurrentBrowserSupported(["chrome","edge-chromium","opera"]);if(ie||!ae)return null;const ce=yield isInstalled$4();return{id:"welldone-wallet",type:"injected",metadata:{name:"WELLDONE Wallet",description:"WELLDONE Wallet for Multichains",iconUrl:v,downloadUrl:"https://chrome.google.com/webstore/detail/welldone-wallet/bmkakpenjmcpfhhjadflneinmhboecjf",deprecated:k,available:ce},init:WelldoneWallet}})}var require_util=__commonJS$1({"browser-external:util"(v,k){k.exports={}}}),require_dist=__commonJS$1({"node_modules/@metamask/detect-provider/dist/index.js"(v,k){function ie({mustBeMetaMask:ae=!1,silent:ce=!1,timeout:fe=3e3}={}){ve();let le=!1;return new Promise(pe=>{window.ethereum?ye():(window.addEventListener("ethereum#initialized",ye,{once:!0}),setTimeout(()=>{ye()},fe));function ye(){if(le)return;le=!0,window.removeEventListener("ethereum#initialized",ye);const{ethereum:me}=window;me&&(!ae||me.isMetaMask)?pe(me):(!ce&&console.error("@metamask/detect-provider:",ae&&me?"Non-MetaMask window.ethereum detected.":"Unable to detect window.ethereum."),pe(null))}});function ve(){if(typeof ae!="boolean")throw new Error("@metamask/detect-provider: Expected option 'mustBeMetaMask' to be a boolean.");if(typeof ce!="boolean")throw new Error("@metamask/detect-provider: Expected option 'silent' to be a boolean.");if(typeof fe!="number")throw new Error("@metamask/detect-provider: Expected option 'timeout' to be a number.")}}k.exports=ie}}),require_sha3=__commonJS$1({"node_modules/js-sha3/src/sha3.js"(v,k){(function(){var ie="input is invalid type",ae="finalize already called",ce=typeof window=="object",fe=ce?window:{};fe.JS_SHA3_NO_WINDOW&&(ce=!1);var le=!ce&&typeof self=="object",ve=!fe.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;ve?fe=globalThis:le&&(fe=self);var pe=!fe.JS_SHA3_NO_COMMON_JS&&typeof k=="object"&&k.exports,ye=typeof define=="function"&&define.amd,me=!fe.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",Ee="0123456789abcdef".split(""),cr=[31,7936,2031616,520093696],Br=[4,1024,262144,67108864],$r=[1,256,65536,16777216],Pr=[6,1536,393216,100663296],Ar=[0,8,16,24],ur=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],jr=[224,256,384,512],Mr=[128,256],Lr=["hex","buffer","arrayBuffer","array","digest"],Vr={128:168,256:136};(fe.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(mn){return Object.prototype.toString.call(mn)==="[object Array]"}),me&&(fe.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(mn){return typeof mn=="object"&&mn.buffer&&mn.buffer.constructor===ArrayBuffer});for(var Gr=function(mn,Nn,In){return function(bn){return new Hr(mn,Nn,mn).update(bn)[In]()}},Ur=function(mn,Nn,In){return function(bn,ii){return new Hr(mn,Nn,ii).update(bn)[In]()}},Qr=function(mn,Nn,In){return function(bn,ii,vn,pn){return kr["cshake"+mn].update(bn,ii,vn,pn)[In]()}},hn=function(mn,Nn,In){return function(bn,ii,vn,pn){return kr["kmac"+mn].update(bn,ii,vn,pn)[In]()}},Yt=function(mn,Nn,In,bn){for(var ii=0;ii>5,this.byteCount=this.blockCount<<2,this.outputBlocks=In>>5,this.extraBytes=(In&31)>>3;for(var bn=0;bn<50;++bn)this.s[bn]=0}Hr.prototype.update=function(mn){if(this.finalized)throw new Error(ae);var Nn,In=typeof mn;if(In!=="string"){if(In==="object"){if(mn===null)throw new Error(ie);if(me&&mn.constructor===ArrayBuffer)mn=new Uint8Array(mn);else if(!Array.isArray(mn)&&(!me||!ArrayBuffer.isView(mn)))throw new Error(ie)}else throw new Error(ie);Nn=!0}for(var bn=this.blocks,ii=this.byteCount,vn=mn.length,pn=this.blockCount,Sn=0,Qn=this.s,Jn,ui;Sn>2]|=mn[Sn]<>2]|=ui<>2]|=(192|ui>>6)<>2]|=(128|ui&63)<=57344?(bn[Jn>>2]|=(224|ui>>12)<>2]|=(128|ui>>6&63)<>2]|=(128|ui&63)<>2]|=(240|ui>>18)<>2]|=(128|ui>>12&63)<>2]|=(128|ui>>6&63)<>2]|=(128|ui&63)<=ii){for(this.start=Jn-ii,this.block=bn[pn],Jn=0;Jn>8,In=mn&255;In>0;)ii.unshift(In),mn=mn>>8,In=mn&255,++bn;return Nn?ii.push(bn):ii.unshift(bn),this.update(ii),ii.length},Hr.prototype.encodeString=function(mn){var Nn,In=typeof mn;if(In!=="string"){if(In==="object"){if(mn===null)throw new Error(ie);if(me&&mn.constructor===ArrayBuffer)mn=new Uint8Array(mn);else if(!Array.isArray(mn)&&(!me||!ArrayBuffer.isView(mn)))throw new Error(ie)}else throw new Error(ie);Nn=!0}var bn=0,ii=mn.length;if(Nn)bn=ii;else for(var vn=0;vn=57344?bn+=3:(pn=65536+((pn&1023)<<10|mn.charCodeAt(++vn)&1023),bn+=4)}return bn+=this.encode(bn*8),this.update(mn),bn},Hr.prototype.bytepad=function(mn,Nn){for(var In=this.encode(Nn),bn=0;bn>2]|=this.padding[Nn&3],this.lastByteIndex===this.byteCount)for(mn[0]=mn[In],Nn=1;Nn>4&15]+Ee[Sn&15]+Ee[Sn>>12&15]+Ee[Sn>>8&15]+Ee[Sn>>20&15]+Ee[Sn>>16&15]+Ee[Sn>>28&15]+Ee[Sn>>24&15];vn%mn===0&&(Gn(Nn),ii=0)}return bn&&(Sn=Nn[ii],pn+=Ee[Sn>>4&15]+Ee[Sn&15],bn>1&&(pn+=Ee[Sn>>12&15]+Ee[Sn>>8&15]),bn>2&&(pn+=Ee[Sn>>20&15]+Ee[Sn>>16&15])),pn},Hr.prototype.arrayBuffer=function(){this.finalize();var mn=this.blockCount,Nn=this.s,In=this.outputBlocks,bn=this.extraBytes,ii=0,vn=0,pn=this.outputBits>>3,Sn;bn?Sn=new ArrayBuffer(In+1<<2):Sn=new ArrayBuffer(pn);for(var Qn=new Uint32Array(Sn);vn>8&255,pn[Sn+2]=Qn>>16&255,pn[Sn+3]=Qn>>24&255;vn%mn===0&&Gn(Nn)}return bn&&(Sn=vn<<2,Qn=Nn[ii],pn[Sn]=Qn&255,bn>1&&(pn[Sn+1]=Qn>>8&255),bn>2&&(pn[Sn+2]=Qn>>16&255)),pn};function On(mn,Nn,In){Hr.call(this,mn,Nn,In)}On.prototype=new Hr,On.prototype.finalize=function(){return this.encode(this.outputBits,!0),Hr.prototype.finalize.call(this)};var Gn=function(mn){var Nn,In,bn,ii,vn,pn,Sn,Qn,Jn,ui,gi,di,Ci,yi,li,Pi,Ai,Oi,to,En,Bt,Zt,Tn,ei,zn,gn,xn,Hn,Ln,ti,oi,Ei,Ri,Oo,Ui,io,So,$o,mo,qo,wo,Eo,jo,go,zi,xo,Yr,Wt,ln,qr,dn,ri,Zn,ai,bi,_i,fi,yo,Di,Ni,oo,fo,co;for(bn=0;bn<48;bn+=2)ii=mn[0]^mn[10]^mn[20]^mn[30]^mn[40],vn=mn[1]^mn[11]^mn[21]^mn[31]^mn[41],pn=mn[2]^mn[12]^mn[22]^mn[32]^mn[42],Sn=mn[3]^mn[13]^mn[23]^mn[33]^mn[43],Qn=mn[4]^mn[14]^mn[24]^mn[34]^mn[44],Jn=mn[5]^mn[15]^mn[25]^mn[35]^mn[45],ui=mn[6]^mn[16]^mn[26]^mn[36]^mn[46],gi=mn[7]^mn[17]^mn[27]^mn[37]^mn[47],di=mn[8]^mn[18]^mn[28]^mn[38]^mn[48],Ci=mn[9]^mn[19]^mn[29]^mn[39]^mn[49],Nn=di^(pn<<1|Sn>>>31),In=Ci^(Sn<<1|pn>>>31),mn[0]^=Nn,mn[1]^=In,mn[10]^=Nn,mn[11]^=In,mn[20]^=Nn,mn[21]^=In,mn[30]^=Nn,mn[31]^=In,mn[40]^=Nn,mn[41]^=In,Nn=ii^(Qn<<1|Jn>>>31),In=vn^(Jn<<1|Qn>>>31),mn[2]^=Nn,mn[3]^=In,mn[12]^=Nn,mn[13]^=In,mn[22]^=Nn,mn[23]^=In,mn[32]^=Nn,mn[33]^=In,mn[42]^=Nn,mn[43]^=In,Nn=pn^(ui<<1|gi>>>31),In=Sn^(gi<<1|ui>>>31),mn[4]^=Nn,mn[5]^=In,mn[14]^=Nn,mn[15]^=In,mn[24]^=Nn,mn[25]^=In,mn[34]^=Nn,mn[35]^=In,mn[44]^=Nn,mn[45]^=In,Nn=Qn^(di<<1|Ci>>>31),In=Jn^(Ci<<1|di>>>31),mn[6]^=Nn,mn[7]^=In,mn[16]^=Nn,mn[17]^=In,mn[26]^=Nn,mn[27]^=In,mn[36]^=Nn,mn[37]^=In,mn[46]^=Nn,mn[47]^=In,Nn=ui^(ii<<1|vn>>>31),In=gi^(vn<<1|ii>>>31),mn[8]^=Nn,mn[9]^=In,mn[18]^=Nn,mn[19]^=In,mn[28]^=Nn,mn[29]^=In,mn[38]^=Nn,mn[39]^=In,mn[48]^=Nn,mn[49]^=In,yi=mn[0],li=mn[1],xo=mn[11]<<4|mn[10]>>>28,Yr=mn[10]<<4|mn[11]>>>28,Hn=mn[20]<<3|mn[21]>>>29,Ln=mn[21]<<3|mn[20]>>>29,Ni=mn[31]<<9|mn[30]>>>23,oo=mn[30]<<9|mn[31]>>>23,Eo=mn[40]<<18|mn[41]>>>14,jo=mn[41]<<18|mn[40]>>>14,Oo=mn[2]<<1|mn[3]>>>31,Ui=mn[3]<<1|mn[2]>>>31,Pi=mn[13]<<12|mn[12]>>>20,Ai=mn[12]<<12|mn[13]>>>20,Wt=mn[22]<<10|mn[23]>>>22,ln=mn[23]<<10|mn[22]>>>22,ti=mn[33]<<13|mn[32]>>>19,oi=mn[32]<<13|mn[33]>>>19,fo=mn[42]<<2|mn[43]>>>30,co=mn[43]<<2|mn[42]>>>30,ai=mn[5]<<30|mn[4]>>>2,bi=mn[4]<<30|mn[5]>>>2,io=mn[14]<<6|mn[15]>>>26,So=mn[15]<<6|mn[14]>>>26,Oi=mn[25]<<11|mn[24]>>>21,to=mn[24]<<11|mn[25]>>>21,qr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o&co,mn[6]=En^~Zt&yi,mn[7]=Bt^~Tn&li,mn[16]=ti^~Ei&ei,mn[17]=oi^~Ri&zn,mn[26]=qo^~Eo&Oo,mn[27]=wo^~jo&Ui,mn[36]=qr^~ri&go,mn[37]=dn^~Zn&zi,mn[46]=Ni^~fo&ai,mn[47]=oo^~co&bi,mn[8]=Zt^~yi&Pi,mn[9]=Tn^~li&Ai,mn[18]=Ei^~ei&gn,mn[19]=Ri^~zn&xn,mn[28]=Eo^~Oo&io,mn[29]=jo^~Ui&So,mn[38]=ri^~go&xo,mn[39]=Zn^~zi&Yr,mn[48]=fo^~ai&_i,mn[49]=co^~bi&fi,mn[0]^=ur[bn],mn[1]^=ur[bn+1]};if(pe)k.exports=kr;else{for(Wr=0;Wr=Xt.length?!1:(Xt.charCodeAt(Kr+1)&64512)===56320}function ce(Xt,Kr){if(Array.isArray(Xt))return Xt.slice();if(!Xt)return[];var be=[];if(typeof Xt=="string")if(Kr){if(Kr==="hex")for(Xt=Xt.replace(/[^a-z0-9]+/ig,""),Xt.length%2!==0&&(Xt="0"+Xt),xr=0;xr>6|192,be[kr++]=Wr&63|128):ae(Xt,xr)?(Wr=65536+((Wr&1023)<<10)+(Xt.charCodeAt(++xr)&1023),be[kr++]=Wr>>18|240,be[kr++]=Wr>>12&63|128,be[kr++]=Wr>>6&63|128,be[kr++]=Wr&63|128):(be[kr++]=Wr>>12|224,be[kr++]=Wr>>6&63|128,be[kr++]=Wr&63|128)}else for(xr=0;xr>>24|Xt>>>8&65280|Xt<<8&16711680|(Xt&255)<<24;return Kr>>>0}v.htonl=le;function ve(Xt,Kr){for(var be="",kr=0;kr>>0}return Wr}v.join32=me;function Ee(Xt,Kr){for(var be=new Array(Xt.length*4),kr=0,xr=0;kr>>24,be[xr+1]=Wr>>>16&255,be[xr+2]=Wr>>>8&255,be[xr+3]=Wr&255):(be[xr+3]=Wr>>>24,be[xr+2]=Wr>>>16&255,be[xr+1]=Wr>>>8&255,be[xr]=Wr&255)}return be}v.split32=Ee;function cr(Xt,Kr){return Xt>>>Kr|Xt<<32-Kr}v.rotr32=cr;function Br(Xt,Kr){return Xt<>>32-Kr}v.rotl32=Br;function $r(Xt,Kr){return Xt+Kr>>>0}v.sum32=$r;function Pr(Xt,Kr,be){return Xt+Kr+be>>>0}v.sum32_3=Pr;function Ar(Xt,Kr,be,kr){return Xt+Kr+be+kr>>>0}v.sum32_4=Ar;function ur(Xt,Kr,be,kr,xr){return Xt+Kr+be+kr+xr>>>0}v.sum32_5=ur;function jr(Xt,Kr,be,kr){var xr=Xt[Kr],Wr=Xt[Kr+1],Jt=kr+Wr>>>0,Xr=(Jt>>0,Xt[Kr+1]=Jt}v.sum64=jr;function Mr(Xt,Kr,be,kr){var xr=Kr+kr>>>0,Wr=(xr>>0}v.sum64_hi=Mr;function Lr(Xt,Kr,be,kr){var xr=Kr+kr;return xr>>>0}v.sum64_lo=Lr;function Vr(Xt,Kr,be,kr,xr,Wr,Jt,Xr){var zr=0,Jr=Kr;Jr=Jr+kr>>>0,zr+=Jr>>0,zr+=Jr>>0,zr+=Jr>>0}v.sum64_4_hi=Vr;function Gr(Xt,Kr,be,kr,xr,Wr,Jt,Xr){var zr=Kr+kr+Wr+Xr;return zr>>>0}v.sum64_4_lo=Gr;function Ur(Xt,Kr,be,kr,xr,Wr,Jt,Xr,zr,Jr){var Nr=0,Hr=Kr;Hr=Hr+kr>>>0,Nr+=Hr>>0,Nr+=Hr>>0,Nr+=Hr>>0,Nr+=Hr>>0}v.sum64_5_hi=Ur;function Qr(Xt,Kr,be,kr,xr,Wr,Jt,Xr,zr,Jr){var Nr=Kr+kr+Wr+Xr+Jr;return Nr>>>0}v.sum64_5_lo=Qr;function hn(Xt,Kr,be){var kr=Kr<<32-be|Xt>>>be;return kr>>>0}v.rotr64_hi=hn;function Yt(Xt,Kr,be){var kr=Xt<<32-be|Kr>>>be;return kr>>>0}v.rotr64_lo=Yt;function fn(Xt,Kr,be){return Xt>>>be}v.shr64_hi=fn;function Qt(Xt,Kr,be){var kr=Xt<<32-be|Kr>>>be;return kr>>>0}v.shr64_lo=Qt}}),require_common=__commonJS$1({"node_modules/hash.js/lib/hash/common.js"(v){var k=require_utils(),ie=require_minimalistic_assert();function ae(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}v.BlockHash=ae,ae.prototype.update=function(fe,le){if(fe=k.toArray(fe,le),this.pending?this.pending=this.pending.concat(fe):this.pending=fe,this.pendingTotal+=fe.length,this.pending.length>=this._delta8){fe=this.pending;var ve=fe.length%this._delta8;this.pending=fe.slice(fe.length-ve,fe.length),this.pending.length===0&&(this.pending=null),fe=k.join32(fe,0,fe.length-ve,this.endian);for(var pe=0;pe>>24&255,pe[ye++]=fe>>>16&255,pe[ye++]=fe>>>8&255,pe[ye++]=fe&255}else for(pe[ye++]=fe&255,pe[ye++]=fe>>>8&255,pe[ye++]=fe>>>16&255,pe[ye++]=fe>>>24&255,pe[ye++]=0,pe[ye++]=0,pe[ye++]=0,pe[ye++]=0,me=8;me>>3}v.g0_256=ye;function me(Ee){return ie(Ee,17)^ie(Ee,19)^Ee>>>10}v.g1_256=me}}),require__=__commonJS$1({"node_modules/hash.js/lib/hash/sha/1.js"(v,k){var ie=require_utils(),ae=require_common(),ce=require_common2(),fe=ie.rotl32,le=ie.sum32,ve=ie.sum32_5,pe=ce.ft_1,ye=ae.BlockHash,me=[1518500249,1859775393,2400959708,3395469782];function Ee(){if(!(this instanceof Ee))return new Ee;ye.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}ie.inherits(Ee,ye),k.exports=Ee,Ee.blockSize=512,Ee.outSize=160,Ee.hmacStrength=80,Ee.padLength=64,Ee.prototype._update=function(Br,$r){for(var Pr=this.W,Ar=0;Ar<16;Ar++)Pr[Ar]=Br[$r+Ar];for(;Arthis.blockSize&&(le=new this.Hash().update(le).digest()),ae(le.length<=this.blockSize);for(var ve=le.length;ve255)return!1;return!0}function fe(zr,Jr){if(zr.buffer&&ArrayBuffer.isView(zr)&&zr.name==="Uint8Array")return Jr&&(zr.slice?zr=zr.slice():zr=Array.prototype.slice.call(zr)),zr;if(Array.isArray(zr)){if(!ce(zr))throw new Error("Array contains invalid value: "+zr);return new Uint8Array(zr)}if(ae(zr.length)&&ce(zr))return new Uint8Array(zr);throw new Error("unsupported array-like object")}function le(zr){return new Uint8Array(zr)}function ve(zr,Jr,Nr,Hr,On){(Hr!=null||On!=null)&&(zr.slice?zr=zr.slice(Hr,On):zr=Array.prototype.slice.call(zr,Hr,On)),Jr.set(zr,Nr)}var pe=function(){function zr(Nr){var Hr=[],On=0;for(Nr=encodeURI(Nr);On191&&Gn<224?(Hr.push(String.fromCharCode((Gn&31)<<6|Nr[On+1]&63)),On+=2):(Hr.push(String.fromCharCode((Gn&15)<<12|(Nr[On+1]&63)<<6|Nr[On+2]&63)),On+=3)}return Hr.join("")}return{toBytes:zr,fromBytes:Jr}}(),ye=function(){function zr(Hr){for(var On=[],Gn=0;Gn>4]+Jr[mn&15])}return On.join("")}return{toBytes:zr,fromBytes:Nr}}(),me={16:10,24:12,32:14},Ee=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],cr=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Br=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],$r=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],Pr=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],Ar=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],ur=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],jr=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],Mr=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],Lr=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],Vr=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],Gr=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],Ur=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],Qr=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],hn=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function Yt(zr){for(var Jr=[],Nr=0;Nr>2,this._Ke[Gn][Jr%4]=On[Jr],this._Kd[zr-Gn][Jr%4]=On[Jr];for(var mn=0,Nn=Hr,In;Nn>16&255]<<24^cr[In>>8&255]<<16^cr[In&255]<<8^cr[In>>24&255]^Ee[mn]<<24,mn+=1,Hr!=8)for(var Jr=1;Jr>8&255]<<8^cr[In>>16&255]<<16^cr[In>>24&255]<<24;for(var Jr=Hr/2+1;Jr>2,ii=Nn%4,this._Ke[bn][ii]=On[Jr],this._Kd[zr-bn][ii]=On[Jr++],Nn++}for(var bn=1;bn>24&255]^Ur[In>>16&255]^Qr[In>>8&255]^hn[In&255]},fn.prototype.encrypt=function(zr){if(zr.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var Jr=this._Ke.length-1,Nr=[0,0,0,0],Hr=Yt(zr),On=0;On<4;On++)Hr[On]^=this._Ke[0][On];for(var Gn=1;Gn>24&255]^Pr[Hr[(On+1)%4]>>16&255]^Ar[Hr[(On+2)%4]>>8&255]^ur[Hr[(On+3)%4]&255]^this._Ke[Gn][On];Hr=Nr.slice()}for(var mn=le(16),Nn,On=0;On<4;On++)Nn=this._Ke[Jr][On],mn[4*On]=(cr[Hr[On]>>24&255]^Nn>>24)&255,mn[4*On+1]=(cr[Hr[(On+1)%4]>>16&255]^Nn>>16)&255,mn[4*On+2]=(cr[Hr[(On+2)%4]>>8&255]^Nn>>8)&255,mn[4*On+3]=(cr[Hr[(On+3)%4]&255]^Nn)&255;return mn},fn.prototype.decrypt=function(zr){if(zr.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var Jr=this._Kd.length-1,Nr=[0,0,0,0],Hr=Yt(zr),On=0;On<4;On++)Hr[On]^=this._Kd[0][On];for(var Gn=1;Gn>24&255]^Mr[Hr[(On+3)%4]>>16&255]^Lr[Hr[(On+2)%4]>>8&255]^Vr[Hr[(On+1)%4]&255]^this._Kd[Gn][On];Hr=Nr.slice()}for(var mn=le(16),Nn,On=0;On<4;On++)Nn=this._Kd[Jr][On],mn[4*On]=(Br[Hr[On]>>24&255]^Nn>>24)&255,mn[4*On+1]=(Br[Hr[(On+3)%4]>>16&255]^Nn>>16)&255,mn[4*On+2]=(Br[Hr[(On+2)%4]>>8&255]^Nn>>8)&255,mn[4*On+3]=(Br[Hr[(On+1)%4]&255]^Nn)&255;return mn};var Qt=function(zr){if(!(this instanceof Qt))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new fn(zr)};Qt.prototype.encrypt=function(zr){if(zr=fe(zr),zr.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var Jr=le(zr.length),Nr=le(16),Hr=0;Hr=0;--Jr)this._counter[Jr]=zr%256,zr=zr>>8},kr.prototype.setBytes=function(zr){if(zr=fe(zr,!0),zr.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=zr},kr.prototype.increment=function(){for(var zr=15;zr>=0;zr--)if(this._counter[zr]===255)this._counter[zr]=0;else{this._counter[zr]++;break}};var xr=function(zr,Jr){if(!(this instanceof xr))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",Jr instanceof kr||(Jr=new kr(Jr)),this._counter=Jr,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new fn(zr)};xr.prototype.encrypt=function(zr){for(var Jr=fe(zr,!0),Nr=0;Nr16)throw new Error("PKCS#7 padding byte out of range");for(var Nr=zr.length-Jr,Hr=0;Hr=64;){let Xr=ur,zr=jr,Jr=Mr,Nr=Lr,Hr=Vr,On=Gr,Gn=Ur,mn=Qr,Nn,In,bn,ii,vn;for(In=0;In<16;In++)bn=Wr+In*4,hn[In]=(xr[bn]&255)<<24|(xr[bn+1]&255)<<16|(xr[bn+2]&255)<<8|xr[bn+3]&255;for(In=16;In<64;In++)Nn=hn[In-2],ii=(Nn>>>17|Nn<<32-17)^(Nn>>>19|Nn<<32-19)^Nn>>>10,Nn=hn[In-15],vn=(Nn>>>7|Nn<<32-7)^(Nn>>>18|Nn<<32-18)^Nn>>>3,hn[In]=(ii+hn[In-7]|0)+(vn+hn[In-16]|0)|0;for(In=0;In<64;In++)ii=(((Hr>>>6|Hr<<32-6)^(Hr>>>11|Hr<<32-11)^(Hr>>>25|Hr<<32-25))+(Hr&On^~Hr&Gn)|0)+(mn+(Ar[In]+hn[In]|0)|0)|0,vn=((Xr>>>2|Xr<<32-2)^(Xr>>>13|Xr<<32-13)^(Xr>>>22|Xr<<32-22))+(Xr&zr^Xr&Jr^zr&Jr)|0,mn=Gn,Gn=On,On=Hr,Hr=Nr+ii|0,Nr=Jr,Jr=zr,zr=Xr,Xr=ii+vn|0;ur=ur+Xr|0,jr=jr+zr|0,Mr=Mr+Jr|0,Lr=Lr+Nr|0,Vr=Vr+Hr|0,Gr=Gr+On|0,Ur=Ur+Gn|0,Qr=Qr+mn|0,Wr+=64,Jt-=64}}Yt(Pr);let fn,Qt=Pr.length%64,Xt=Pr.length/536870912|0,Kr=Pr.length<<3,be=Qt<56?56:120,kr=Pr.slice(Pr.length-Qt,Pr.length);for(kr.push(128),fn=Qt+1;fn>>24&255),kr.push(Xt>>>16&255),kr.push(Xt>>>8&255),kr.push(Xt>>>0&255),kr.push(Kr>>>24&255),kr.push(Kr>>>16&255),kr.push(Kr>>>8&255),kr.push(Kr>>>0&255),Yt(kr),[ur>>>24&255,ur>>>16&255,ur>>>8&255,ur>>>0&255,jr>>>24&255,jr>>>16&255,jr>>>8&255,jr>>>0&255,Mr>>>24&255,Mr>>>16&255,Mr>>>8&255,Mr>>>0&255,Lr>>>24&255,Lr>>>16&255,Lr>>>8&255,Lr>>>0&255,Vr>>>24&255,Vr>>>16&255,Vr>>>8&255,Vr>>>0&255,Gr>>>24&255,Gr>>>16&255,Gr>>>8&255,Gr>>>0&255,Ur>>>24&255,Ur>>>16&255,Ur>>>8&255,Ur>>>0&255,Qr>>>24&255,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ar[6]^=ve(Ar[5]+Ar[4],7),Ar[7]^=ve(Ar[6]+Ar[5],9),Ar[4]^=ve(Ar[7]+Ar[6],13),Ar[5]^=ve(Ar[4]+Ar[7],18),Ar[11]^=ve(Ar[10]+Ar[9],7),Ar[8]^=ve(Ar[11]+Ar[10],9),Ar[9]^=ve(Ar[8]+Ar[11],13),Ar[10]^=ve(Ar[9]+Ar[8],18),Ar[12]^=ve(Ar[15]+Ar[14],7),Ar[13]^=ve(Ar[12]+Ar[15],9),Ar[14]^=ve(Ar[13]+Ar[12],13),Ar[15]^=ve(Ar[14]+Ar[13],18);for(let ur=0;ur<16;++ur)Pr[ur]+=Ar[ur]}function ye(Pr,Ar,ur,jr){for(let Mr=0;Mr=256)return!1}return!0}function cr(Pr,Ar){if(typeof Pr!="number"||Pr%1)throw new Error("invalid "+Ar);return Pr}function Br(Pr,Ar,ur,jr,Mr,Lr,Vr){if(ur=cr(ur,"N"),jr=cr(jr,"r"),Mr=cr(Mr,"p"),Lr=cr(Lr,"dkLen"),ur===0||(ur&ur-1)!==0)throw new Error("N must be power of 2");if(ur>2147483647/128/jr)throw new Error("N too large");if(jr>2147483647/128/Mr)throw new Error("r too large");if(!Ee(Pr))throw new Error("password must be an array or buffer");if(Pr=Array.prototype.slice.call(Pr),!Ee(Ar))throw new Error("salt must be an array or buffer");Ar=Array.prototype.slice.call(Ar);let Gr=fe(Pr,Ar,Mr*128*jr);const Ur=new Uint32Array(Mr*32*jr);for(let Hr=0;Hrzr&&(Hr=zr);for(let Gn=0;Gnzr&&(Hr=zr);for(let Gn=0;Gn>0&255),Gr.push(Ur[Gn]>>8&255),Gr.push(Ur[Gn]>>16&255),Gr.push(Ur[Gn]>>24&255);const On=fe(Pr,Gr,Lr);return Vr&&Vr(null,1,On),On}Vr&&Jr(Nr)};if(!Vr)for(;;){const Hr=Nr();if(Hr!=null)return Hr}Nr()}const $r={scrypt:function(Pr,Ar,ur,jr,Mr,Lr,Vr){return new Promise(function(Gr,Ur){let Qr=0;Vr&&Vr(0),Br(Pr,Ar,ur,jr,Mr,Lr,function(hn,Yt,fn){if(hn)Ur(hn);else if(fn)Vr&&Qr!==1&&Vr(1),Gr(new Uint8Array(fn));else if(Vr&&Yt!==Qr)return Qr=Yt,Vr(Yt)})})},syncScrypt:function(Pr,Ar,ur,jr,Mr,Lr){return new Uint8Array(Br(Pr,Ar,ur,jr,Mr,Lr))}};typeof v<"u"?k.exports=$r:typeof define=="function"&&define.amd?define($r):ie&&(ie.scrypt&&(ie._scrypt=ie.scrypt),ie.scrypt=$r)})(v)}}),require_bech32=__commonJS$1({"node_modules/bech32/index.js"(v,k){var ie="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ae={};for(fe=0;fe>25;return(ur&33554431)<<5^-(jr>>0&1)&996825010^-(jr>>1&1)&642813549^-(jr>>2&1)&513874426^-(jr>>3&1)&1027748829^-(jr>>4&1)&705979059}function ve(ur){for(var jr=1,Mr=0;Mr126)return"Invalid prefix ("+ur+")";jr=le(jr)^Lr>>5}for(jr=le(jr),Mr=0;MrMr)throw new TypeError("Exceeds length limit");ur=ur.toLowerCase();var Lr=ve(ur);if(typeof Lr=="string")throw new Error(Lr);for(var Vr=ur+"1",Gr=0;Gr>5!==0)throw new Error("Non 5-bit word");Lr=le(Lr)^Ur,Vr+=ie.charAt(Ur)}for(Gr=0;Gr<6;++Gr)Lr=le(Lr);for(Lr^=1,Gr=0;Gr<6;++Gr){var Qr=Lr>>(5-Gr)*5&31;Vr+=ie.charAt(Qr)}return Vr}function ye(ur,jr){if(jr=jr||90,ur.length<8)return ur+" too short";if(ur.length>jr)return"Exceeds length limit";var Mr=ur.toLowerCase(),Lr=ur.toUpperCase();if(ur!==Mr&&ur!==Lr)return"Mixed-case string "+ur;ur=Mr;var Vr=ur.lastIndexOf("1");if(Vr===-1)return"No separator character for "+ur;if(Vr===0)return"Missing prefix for "+ur;var Gr=ur.slice(0,Vr),Ur=ur.slice(Vr+1);if(Ur.length<6)return"Data too short";var Qr=ve(Gr);if(typeof Qr=="string")return Qr;for(var hn=[],Yt=0;Yt=Ur.length)&&hn.push(Qt)}return Qr!==1?"Invalid checksum for "+ur:{prefix:Gr,words:hn}}function me(){var ur=ye.apply(null,arguments);if(typeof ur=="object")return ur}function Ee(ur){var jr=ye.apply(null,arguments);if(typeof jr=="object")return jr;throw new Error(jr)}function cr(ur,jr,Mr,Lr){for(var Vr=0,Gr=0,Ur=(1<=Mr;)Gr-=Mr,Qr.push(Vr>>Gr&Ur);if(Lr)Gr>0&&Qr.push(Vr<=jr)return"Excess padding";if(Vr<0?this.tail.next=ur:this.head=ur,this.tail=ur,++this.length}},{key:"unshift",value:function(Ar){var ur={data:Ar,next:this.head};this.length===0&&(this.tail=ur),this.head=ur,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Ar=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Ar}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Ar){if(this.length===0)return"";for(var ur=this.head,jr=""+ur.data;ur=ur.next;)jr+=Ar+ur.data;return jr}},{key:"concat",value:function(Ar){if(this.length===0)return ye.alloc(0);for(var ur=ye.allocUnsafe(Ar>>>0),jr=this.head,Mr=0;jr;)Br(jr.data,ur,Mr),Mr+=jr.data.length,jr=jr.next;return ur}},{key:"consume",value:function(Ar,ur){var jr;return ArLr.length?Lr.length:Ar;if(Vr===Lr.length?Mr+=Lr:Mr+=Lr.slice(0,Ar),Ar-=Vr,Ar===0){Vr===Lr.length?(++jr,ur.next?this.head=ur.next:this.head=this.tail=null):(this.head=ur,ur.data=Lr.slice(Vr));break}++jr}return this.length-=jr,Mr}},{key:"_getBuffer",value:function(Ar){var ur=ye.allocUnsafe(Ar),jr=this.head,Mr=1;for(jr.data.copy(ur),Ar-=jr.data.length;jr=jr.next;){var Lr=jr.data,Vr=Ar>Lr.length?Lr.length:Ar;if(Lr.copy(ur,ur.length-Ar,0,Vr),Ar-=Vr,Ar===0){Vr===Lr.length?(++Mr,jr.next?this.head=jr.next:this.head=this.tail=null):(this.head=jr,jr.data=Lr.slice(Vr));break}++Mr}return this.length-=Mr,ur}},{key:cr,value:function(Ar,ur){return Ee(this,ae({},ur,{depth:0,customInspect:!1}))}}]),$r}()}}),require_destroy=__commonJS$1({"node_modules/readable-stream/lib/internal/streams/destroy.js"(v,k){function ie(pe,ye){var me=this,Ee=this._readableState&&this._readableState.destroyed,cr=this._writableState&&this._writableState.destroyed;return Ee||cr?(ye?ye(pe):pe&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(le,this,pe)):process.nextTick(le,this,pe)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(pe||null,function(Br){!ye&&Br?me._writableState?me._writableState.errorEmitted?process.nextTick(ce,me):(me._writableState.errorEmitted=!0,process.nextTick(ae,me,Br)):process.nextTick(ae,me,Br):ye?(process.nextTick(ce,me),ye(Br)):process.nextTick(ce,me)}),this)}function ae(pe,ye){le(pe,ye),ce(pe)}function ce(pe){pe._writableState&&!pe._writableState.emitClose||pe._readableState&&!pe._readableState.emitClose||pe.emit("close")}function fe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function le(pe,ye){pe.emit("error",ye)}function ve(pe,ye){var me=pe._readableState,Ee=pe._writableState;me&&me.autoDestroy||Ee&&Ee.autoDestroy?pe.destroy(ye):pe.emit("error",ye)}k.exports={destroy:ie,undestroy:fe,errorOrDestroy:ve}}}),require_errors_browser=__commonJS$1({"node_modules/readable-stream/errors-browser.js"(v,k){function ie(ye,me){ye.prototype=Object.create(me.prototype),ye.prototype.constructor=ye,ye.__proto__=me}var ae={};function ce(ye,me,Ee){Ee||(Ee=Error);function cr($r,Pr,Ar){return typeof me=="string"?me:me($r,Pr,Ar)}var Br=function($r){ie(Pr,$r);function Pr(Ar,ur,jr){return $r.call(this,cr(Ar,ur,jr))||this}return Pr}(Ee);Br.prototype.name=Ee.name,Br.prototype.code=ye,ae[ye]=Br}function fe(ye,me){if(Array.isArray(ye)){var Ee=ye.length;return ye=ye.map(function(cr){return String(cr)}),Ee>2?"one of ".concat(me," ").concat(ye.slice(0,Ee-1).join(", "),", or ")+ye[Ee-1]:Ee===2?"one of ".concat(me," ").concat(ye[0]," or ").concat(ye[1]):"of ".concat(me," ").concat(ye[0])}else return"of ".concat(me," ").concat(String(ye))}function le(ye,me,Ee){return ye.substr(!Ee||Ee<0?0:+Ee,me.length)===me}function ve(ye,me,Ee){return(Ee===void 0||Ee>ye.length)&&(Ee=ye.length),ye.substring(Ee-me.length,Ee)===me}function pe(ye,me,Ee){return typeof Ee!="number"&&(Ee=0),Ee+me.length>ye.length?!1:ye.indexOf(me,Ee)!==-1}ce("ERR_INVALID_OPT_VALUE",function(ye,me){return'The value "'+me+'" is invalid for option "'+ye+'"'},TypeError),ce("ERR_INVALID_ARG_TYPE",function(ye,me,Ee){var cr;typeof me=="string"&&le(me,"not ")?(cr="must not be",me=me.replace(/^not /,"")):cr="must be";var Br;if(ve(ye," argument"))Br="The ".concat(ye," ").concat(cr," ").concat(fe(me,"type"));else{var $r=pe(ye,".")?"property":"argument";Br='The "'.concat(ye,'" ').concat($r," ").concat(cr," ").concat(fe(me,"type"))}return Br+=". Received type ".concat(typeof Ee),Br},TypeError),ce("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ce("ERR_METHOD_NOT_IMPLEMENTED",function(ye){return"The "+ye+" method is not implemented"}),ce("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ce("ERR_STREAM_DESTROYED",function(ye){return"Cannot call "+ye+" after a stream was destroyed"}),ce("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ce("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ce("ERR_STREAM_WRITE_AFTER_END","write after end"),ce("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ce("ERR_UNKNOWN_ENCODING",function(ye){return"Unknown encoding: "+ye},TypeError),ce("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),k.exports.codes=ae}}),require_state=__commonJS$1({"node_modules/readable-stream/lib/internal/streams/state.js"(v,k){var ie=require_errors_browser().codes.ERR_INVALID_OPT_VALUE;function ae(fe,le,ve){return fe.highWaterMark!=null?fe.highWaterMark:le?fe[ve]:null}function ce(fe,le,ve,pe){var ye=ae(le,pe,ve);if(ye!=null){if(!(isFinite(ye)&&Math.floor(ye)===ye)||ye<0){var me=pe?ve:"highWaterMark";throw new ie(me,ye)}return Math.floor(ye)}return fe.objectMode?16:16*1024}k.exports={getHighWaterMark:ce}}}),require_browser=__commonJS$1({"node_modules/util-deprecate/browser.js"(v,k){k.exports=ie;function ie(ce,fe){if(ae("noDeprecation"))return ce;var le=!1;function ve(){if(!le){if(ae("throwDeprecation"))throw new Error(fe);ae("traceDeprecation")?console.trace(fe):console.warn(fe),le=!0}return ce.apply(this,arguments)}return ve}function ae(ce){try{if(!globalThis.localStorage)return!1}catch{return!1}var fe=globalThis.localStorage[ce];return fe==null?!1:String(fe).toLowerCase()==="true"}}}),require_stream_writable=__commonJS$1({"node_modules/readable-stream/lib/_stream_writable.js"(v,k){k.exports=Yt;function ie(Nn){var In=this;this.next=null,this.entry=null,this.finish=function(){mn(In,Nn)}}var ae;Yt.WritableState=Qr;var ce={deprecate:require_browser()},fe=require_stream_browser(),le=require_buffer$1().Buffer,ve=globalThis.Uint8Array||function(){};function pe(Nn){return le.from(Nn)}function ye(Nn){return le.isBuffer(Nn)||Nn instanceof ve}var me=require_destroy(),Ee=require_state(),cr=Ee.getHighWaterMark,Br=require_errors_browser().codes,$r=Br.ERR_INVALID_ARG_TYPE,Pr=Br.ERR_METHOD_NOT_IMPLEMENTED,Ar=Br.ERR_MULTIPLE_CALLBACK,ur=Br.ERR_STREAM_CANNOT_PIPE,jr=Br.ERR_STREAM_DESTROYED,Mr=Br.ERR_STREAM_NULL_VALUES,Lr=Br.ERR_STREAM_WRITE_AFTER_END,Vr=Br.ERR_UNKNOWN_ENCODING,Gr=me.errorOrDestroy;require_inherits_browser()(Yt,fe);function Ur(){}function Qr(Nn,In,bn){ae=ae||require_stream_duplex(),Nn=Nn||{},typeof bn!="boolean"&&(bn=In instanceof ae),this.objectMode=!!Nn.objectMode,bn&&(this.objectMode=this.objectMode||!!Nn.writableObjectMode),this.highWaterMark=cr(this,Nn,"writableHighWaterMark",bn),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ii=Nn.decodeStrings===!1;this.decodeStrings=!ii,this.defaultEncoding=Nn.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(vn){Wr(In,vn)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Nn.emitClose!==!1,this.autoDestroy=!!Nn.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ie(this)}Qr.prototype.getBuffer=function(){for(var In=this.bufferedRequest,bn=[];In;)bn.push(In),In=In.next;return bn},function(){try{Object.defineProperty(Qr.prototype,"buffer",{get:ce.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var hn;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(hn=Function.prototype[Symbol.hasInstance],Object.defineProperty(Yt,Symbol.hasInstance,{value:function(In){return hn.call(this,In)?!0:this!==Yt?!1:In&&In._writableState instanceof Qr}})):hn=function(In){return In instanceof this};function Yt(Nn){ae=ae||require_stream_duplex();var In=this instanceof ae;if(!In&&!hn.call(Yt,this))return new Yt(Nn);this._writableState=new Qr(Nn,this,In),this.writable=!0,Nn&&(typeof Nn.write=="function"&&(this._write=Nn.write),typeof Nn.writev=="function"&&(this._writev=Nn.writev),typeof Nn.destroy=="function"&&(this._destroy=Nn.destroy),typeof Nn.final=="function"&&(this._final=Nn.final)),fe.call(this)}Yt.prototype.pipe=function(){Gr(this,new ur)};function fn(Nn,In){var bn=new Lr;Gr(Nn,bn),process.nextTick(In,bn)}function Qt(Nn,In,bn,ii){var vn;return bn===null?vn=new Mr:typeof bn!="string"&&!In.objectMode&&(vn=new $r("chunk",["string","Buffer"],bn)),vn?(Gr(Nn,vn),process.nextTick(ii,vn),!1):!0}Yt.prototype.write=function(Nn,In,bn){var ii=this._writableState,vn=!1,pn=!ii.objectMode&&ye(Nn);return pn&&!le.isBuffer(Nn)&&(Nn=pe(Nn)),typeof In=="function"&&(bn=In,In=null),pn?In="buffer":In||(In=ii.defaultEncoding),typeof bn!="function"&&(bn=Ur),ii.ending?fn(this,bn):(pn||Qt(this,ii,Nn,bn))&&(ii.pendingcb++,vn=Kr(this,ii,pn,Nn,In,bn)),vn},Yt.prototype.cork=function(){this._writableState.corked++},Yt.prototype.uncork=function(){var Nn=this._writableState;Nn.corked&&(Nn.corked--,!Nn.writing&&!Nn.corked&&!Nn.bufferProcessing&&Nn.bufferedRequest&&zr(this,Nn))},Yt.prototype.setDefaultEncoding=function(In){if(typeof In=="string"&&(In=In.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((In+"").toLowerCase())>-1))throw new Vr(In);return this._writableState.defaultEncoding=In,this},Object.defineProperty(Yt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Xt(Nn,In,bn){return!Nn.objectMode&&Nn.decodeStrings!==!1&&typeof In=="string"&&(In=le.from(In,bn)),In}Object.defineProperty(Yt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Kr(Nn,In,bn,ii,vn,pn){if(!bn){var Sn=Xt(In,ii,vn);ii!==Sn&&(bn=!0,vn="buffer",ii=Sn)}var Qn=In.objectMode?1:ii.length;In.length+=Qn;var Jn=In.length>5===6?2:jr>>4===14?3:jr>>3===30?4:jr>>6===2?-1:-2}function ve(jr,Mr,Lr){var Vr=Mr.length-1;if(Vr=0?(Gr>0&&(jr.lastNeed=Gr-1),Gr):--Vr=0?(Gr>0&&(jr.lastNeed=Gr-2),Gr):--Vr=0?(Gr>0&&(Gr===2?Gr=0:jr.lastNeed=Gr-3),Gr):0))}function pe(jr,Mr,Lr){if((Mr[0]&192)!==128)return jr.lastNeed=0,"\uFFFD";if(jr.lastNeed>1&&Mr.length>1){if((Mr[1]&192)!==128)return jr.lastNeed=1,"\uFFFD";if(jr.lastNeed>2&&Mr.length>2&&(Mr[2]&192)!==128)return jr.lastNeed=2,"\uFFFD"}}function ye(jr){var Mr=this.lastTotal-this.lastNeed,Lr=pe(this,jr);if(Lr!==void 0)return Lr;if(this.lastNeed<=jr.length)return jr.copy(this.lastChar,Mr,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);jr.copy(this.lastChar,Mr,0,jr.length),this.lastNeed-=jr.length}function me(jr,Mr){var Lr=ve(this,jr,Mr);if(!this.lastNeed)return jr.toString("utf8",Mr);this.lastTotal=Lr;var Vr=jr.length-(Lr-this.lastNeed);return jr.copy(this.lastChar,0,Vr),jr.toString("utf8",Mr,Vr)}function Ee(jr){var Mr=jr&&jr.length?this.write(jr):"";return this.lastNeed?Mr+"\uFFFD":Mr}function cr(jr,Mr){if((jr.length-Mr)%2===0){var Lr=jr.toString("utf16le",Mr);if(Lr){var Vr=Lr.charCodeAt(Lr.length-1);if(Vr>=55296&&Vr<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=jr[jr.length-2],this.lastChar[1]=jr[jr.length-1],Lr.slice(0,-1)}return Lr}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=jr[jr.length-1],jr.toString("utf16le",Mr,jr.length-1)}function Br(jr){var Mr=jr&&jr.length?this.write(jr):"";if(this.lastNeed){var Lr=this.lastTotal-this.lastNeed;return Mr+this.lastChar.toString("utf16le",0,Lr)}return Mr}function $r(jr,Mr){var Lr=(jr.length-Mr)%3;return Lr===0?jr.toString("base64",Mr):(this.lastNeed=3-Lr,this.lastTotal=3,Lr===1?this.lastChar[0]=jr[jr.length-1]:(this.lastChar[0]=jr[jr.length-2],this.lastChar[1]=jr[jr.length-1]),jr.toString("base64",Mr,jr.length-Lr))}function Pr(jr){var Mr=jr&&jr.length?this.write(jr):"";return this.lastNeed?Mr+this.lastChar.toString("base64",0,3-this.lastNeed):Mr}function Ar(jr){return jr.toString(this.encoding)}function ur(jr){return jr&&jr.length?this.write(jr):""}}}),require_end_of_stream=__commonJS$1({"node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(v,k){var ie=require_errors_browser().codes.ERR_STREAM_PREMATURE_CLOSE;function ae(ve){var pe=!1;return function(){if(!pe){pe=!0;for(var ye=arguments.length,me=new Array(ye),Ee=0;Ee0)if(typeof Sn!="string"&&!gi.objectMode&&Object.getPrototypeOf(Sn)!==fe.prototype&&(Sn=ve(Sn)),Jn)gi.endEmitted?Ur(pn,new Mr):Xt(pn,gi,Sn,!0);else if(gi.ended)Ur(pn,new ur);else{if(gi.destroyed)return!1;gi.reading=!1,gi.decoder&&!Qn?(Sn=gi.decoder.write(Sn),gi.objectMode||Sn.length!==0?Xt(pn,gi,Sn,!1):zr(pn,gi)):Xt(pn,gi,Sn,!1)}else Jn||(gi.reading=!1,zr(pn,gi))}return!gi.ended&&(gi.length=be?pn=be:(pn--,pn|=pn>>>1,pn|=pn>>>2,pn|=pn>>>4,pn|=pn>>>8,pn|=pn>>>16,pn++),pn}function xr(pn,Sn){return pn<=0||Sn.length===0&&Sn.ended?0:Sn.objectMode?1:pn!==pn?Sn.flowing&&Sn.length?Sn.buffer.head.data.length:Sn.length:(pn>Sn.highWaterMark&&(Sn.highWaterMark=kr(pn)),pn<=Sn.length?pn:Sn.ended?Sn.length:(Sn.needReadable=!0,0))}fn.prototype.read=function(pn){me("read",pn),pn=parseInt(pn,10);var Sn=this._readableState,Qn=pn;if(pn!==0&&(Sn.emittedReadable=!1),pn===0&&Sn.needReadable&&((Sn.highWaterMark!==0?Sn.length>=Sn.highWaterMark:Sn.length>0)||Sn.ended))return me("read: emitReadable",Sn.length,Sn.ended),Sn.length===0&&Sn.ended?bn(this):Jt(this),null;if(pn=xr(pn,Sn),pn===0&&Sn.ended)return Sn.length===0&&bn(this),null;var Jn=Sn.needReadable;me("need readable",Jn),(Sn.length===0||Sn.length-pn0?ui=In(pn,Sn):ui=null,ui===null?(Sn.needReadable=Sn.length<=Sn.highWaterMark,pn=0):(Sn.length-=pn,Sn.awaitDrain=0),Sn.length===0&&(Sn.ended||(Sn.needReadable=!0),Qn!==pn&&Sn.ended&&bn(this)),ui!==null&&this.emit("data",ui),ui};function Wr(pn,Sn){if(me("onEofChunk"),!Sn.ended){if(Sn.decoder){var Qn=Sn.decoder.end();Qn&&Qn.length&&(Sn.buffer.push(Qn),Sn.length+=Sn.objectMode?1:Qn.length)}Sn.ended=!0,Sn.sync?Jt(pn):(Sn.needReadable=!1,Sn.emittedReadable||(Sn.emittedReadable=!0,Xr(pn)))}}function Jt(pn){var Sn=pn._readableState;me("emitReadable",Sn.needReadable,Sn.emittedReadable),Sn.needReadable=!1,Sn.emittedReadable||(me("emitReadable",Sn.flowing),Sn.emittedReadable=!0,process.nextTick(Xr,pn))}function Xr(pn){var Sn=pn._readableState;me("emitReadable_",Sn.destroyed,Sn.length,Sn.ended),!Sn.destroyed&&(Sn.length||Sn.ended)&&(pn.emit("readable"),Sn.emittedReadable=!1),Sn.needReadable=!Sn.flowing&&!Sn.ended&&Sn.length<=Sn.highWaterMark,Nn(pn)}function zr(pn,Sn){Sn.readingMore||(Sn.readingMore=!0,process.nextTick(Jr,pn,Sn))}function Jr(pn,Sn){for(;!Sn.reading&&!Sn.ended&&(Sn.length1&&vn(Jn.pipes,pn)!==-1)&&!li&&(me("false write response, pause",Jn.awaitDrain),Jn.awaitDrain++),Qn.pause())}function Oi(Zt){me("onerror",Zt),Bt(),pn.removeListener("error",Oi),ae(pn,"error")===0&&Ur(pn,Zt)}hn(pn,"error",Oi);function to(){pn.removeListener("finish",En),Bt()}pn.once("close",to);function En(){me("onfinish"),pn.removeListener("close",to),Bt()}pn.once("finish",En);function Bt(){me("unpipe"),Qn.unpipe(pn)}return pn.emit("pipe",Qn),Jn.flowing||(me("pipe resume"),Qn.resume()),pn};function Nr(pn){return function(){var Qn=pn._readableState;me("pipeOnDrain",Qn.awaitDrain),Qn.awaitDrain&&Qn.awaitDrain--,Qn.awaitDrain===0&&ae(pn,"data")&&(Qn.flowing=!0,Nn(pn))}}fn.prototype.unpipe=function(pn){var Sn=this._readableState,Qn={hasUnpiped:!1};if(Sn.pipesCount===0)return this;if(Sn.pipesCount===1)return pn&&pn!==Sn.pipes?this:(pn||(pn=Sn.pipes),Sn.pipes=null,Sn.pipesCount=0,Sn.flowing=!1,pn&&pn.emit("unpipe",this,Qn),this);if(!pn){var Jn=Sn.pipes,ui=Sn.pipesCount;Sn.pipes=null,Sn.pipesCount=0,Sn.flowing=!1;for(var gi=0;gi0,Jn.flowing!==!1&&this.resume()):pn==="readable"&&!Jn.endEmitted&&!Jn.readableListening&&(Jn.readableListening=Jn.needReadable=!0,Jn.flowing=!1,Jn.emittedReadable=!1,me("on readable",Jn.length,Jn.reading),Jn.length?Jt(this):Jn.reading||process.nextTick(On,this)),Qn},fn.prototype.addListener=fn.prototype.on,fn.prototype.removeListener=function(pn,Sn){var Qn=ce.prototype.removeListener.call(this,pn,Sn);return pn==="readable"&&process.nextTick(Hr,this),Qn},fn.prototype.removeAllListeners=function(pn){var Sn=ce.prototype.removeAllListeners.apply(this,arguments);return(pn==="readable"||pn===void 0)&&process.nextTick(Hr,this),Sn};function Hr(pn){var Sn=pn._readableState;Sn.readableListening=pn.listenerCount("readable")>0,Sn.resumeScheduled&&!Sn.paused?Sn.flowing=!0:pn.listenerCount("data")>0&&pn.resume()}function On(pn){me("readable nexttick read 0"),pn.read(0)}fn.prototype.resume=function(){var pn=this._readableState;return pn.flowing||(me("resume"),pn.flowing=!pn.readableListening,Gn(this,pn)),pn.paused=!1,this};function Gn(pn,Sn){Sn.resumeScheduled||(Sn.resumeScheduled=!0,process.nextTick(mn,pn,Sn))}function mn(pn,Sn){me("resume",Sn.reading),Sn.reading||pn.read(0),Sn.resumeScheduled=!1,pn.emit("resume"),Nn(pn),Sn.flowing&&!Sn.reading&&pn.read(0)}fn.prototype.pause=function(){return me("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(me("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Nn(pn){var Sn=pn._readableState;for(me("flow",Sn.flowing);Sn.flowing&&pn.read()!==null;);}fn.prototype.wrap=function(pn){var Sn=this,Qn=this._readableState,Jn=!1;pn.on("end",function(){if(me("wrapped end"),Qn.decoder&&!Qn.ended){var di=Qn.decoder.end();di&&di.length&&Sn.push(di)}Sn.push(null)}),pn.on("data",function(di){if(me("wrapped data"),Qn.decoder&&(di=Qn.decoder.write(di)),!(Qn.objectMode&&di==null)&&!(!Qn.objectMode&&(!di||!di.length))){var Ci=Sn.push(di);Ci||(Jn=!0,pn.pause())}});for(var ui in pn)this[ui]===void 0&&typeof pn[ui]=="function"&&(this[ui]=function(Ci){return function(){return pn[Ci].apply(pn,arguments)}}(ui));for(var gi=0;gi=Sn.length?(Sn.decoder?Qn=Sn.buffer.join(""):Sn.buffer.length===1?Qn=Sn.buffer.first():Qn=Sn.buffer.concat(Sn.length),Sn.buffer.clear()):Qn=Sn.buffer.consume(pn,Sn.decoder),Qn}function bn(pn){var Sn=pn._readableState;me("endReadable",Sn.endEmitted),Sn.endEmitted||(Sn.ended=!0,process.nextTick(ii,Sn,pn))}function ii(pn,Sn){if(me("endReadableNT",pn.endEmitted,pn.length),!pn.endEmitted&&pn.length===0&&(pn.endEmitted=!0,Sn.readable=!1,Sn.emit("end"),pn.autoDestroy)){var Qn=Sn._writableState;(!Qn||Qn.autoDestroy&&Qn.finished)&&Sn.destroy()}}typeof Symbol=="function"&&(fn.from=function(pn,Sn){return Gr===void 0&&(Gr=require_from_browser()),Gr(fn,pn,Sn)});function vn(pn,Sn){for(var Qn=0,Jn=pn.length;Qn0;return ye(Lr,Gr,Ur,function(Qr){jr||(jr=Qr),Qr&&Mr.forEach(me),!Gr&&(Mr.forEach(me),ur(jr))})});return Pr.reduce(Ee)}k.exports=Br}}),require_readable_browser=__commonJS$1({"node_modules/readable-stream/readable-browser.js"(v,k){v=k.exports=require_stream_readable(),v.Stream=v,v.Readable=v,v.Writable=require_stream_writable(),v.Duplex=require_stream_duplex(),v.Transform=require_stream_transform(),v.PassThrough=require_stream_passthrough(),v.finished=require_end_of_stream(),v.pipeline=require_pipeline()}}),require_hash_base=__commonJS$1({"node_modules/hash-base/index.js"(v,k){var ie=require_safe_buffer().Buffer,ae=require_readable_browser().Transform,ce=require_inherits_browser();function fe(ve,pe){if(!ie.isBuffer(ve)&&typeof ve!="string")throw new TypeError(pe+" must be a string or a buffer")}function le(ve){ae.call(this),this._block=ie.allocUnsafe(ve),this._blockSize=ve,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}ce(le,ae),le.prototype._transform=function(ve,pe,ye){var me=null;try{this.update(ve,pe)}catch(Ee){me=Ee}ye(me)},le.prototype._flush=function(ve){var pe=null;try{this.push(this.digest())}catch(ye){pe=ye}ve(pe)},le.prototype.update=function(ve,pe){if(fe(ve,"Data"),this._finalized)throw new Error("Digest already called");ie.isBuffer(ve)||(ve=ie.from(ve,pe));for(var ye=this._block,me=0;this._blockOffset+ve.length-me>=this._blockSize;){for(var Ee=this._blockOffset;Ee0;++cr)this._length[cr]+=Br,Br=this._length[cr]/4294967296|0,Br>0&&(this._length[cr]-=4294967296*Br);return this},le.prototype._update=function(){throw new Error("_update is not implemented")},le.prototype.digest=function(ve){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var pe=this._digest();ve!==void 0&&(pe=pe.toString(ve)),this._block.fill(0),this._blockOffset=0;for(var ye=0;ye<4;++ye)this._length[ye]=0;return pe},le.prototype._digest=function(){throw new Error("_digest is not implemented")},k.exports=le}}),require_md5=__commonJS$1({"node_modules/md5.js/index.js"(v,k){var ie=require_inherits_browser(),ae=require_hash_base(),ce=require_safe_buffer().Buffer,fe=new Array(16);function le(){ae.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}ie(le,ae),le.prototype._update=function(){for(var cr=fe,Br=0;Br<16;++Br)cr[Br]=this._block.readInt32LE(Br*4);var $r=this._a,Pr=this._b,Ar=this._c,ur=this._d;$r=pe($r,Pr,Ar,ur,cr[0],3614090360,7),ur=pe(ur,$r,Pr,Ar,cr[1],3905402710,12),Ar=pe(Ar,ur,$r,Pr,cr[2],606105819,17),Pr=pe(Pr,Ar,ur,$r,cr[3],3250441966,22),$r=pe($r,Pr,Ar,ur,cr[4],4118548399,7),ur=pe(ur,$r,Pr,Ar,cr[5],1200080426,12),Ar=pe(Ar,ur,$r,Pr,cr[6],2821735955,17),Pr=pe(Pr,Ar,ur,$r,cr[7],4249261313,22),$r=pe($r,Pr,Ar,ur,cr[8],1770035416,7),ur=pe(ur,$r,Pr,Ar,cr[9],2336552879,12),Ar=pe(Ar,ur,$r,Pr,cr[10],4294925233,17),Pr=pe(Pr,Ar,ur,$r,cr[11],2304563134,22),$r=pe($r,Pr,Ar,ur,cr[12],1804603682,7),ur=pe(ur,$r,Pr,Ar,cr[13],4254626195,12),Ar=pe(Ar,ur,$r,Pr,cr[14],2792965006,17),Pr=pe(Pr,Ar,ur,$r,cr[15],1236535329,22),$r=ye($r,Pr,Ar,ur,cr[1],4129170786,5),ur=ye(ur,$r,Pr,Ar,cr[6],3225465664,9),Ar=ye(Ar,ur,$r,Pr,cr[11],643717713,14),Pr=ye(Pr,Ar,ur,$r,cr[0],3921069994,20),$r=ye($r,Pr,Ar,ur,cr[5],3593408605,5),ur=ye(ur,$r,Pr,Ar,cr[10],38016083,9),Ar=ye(Ar,ur,$r,Pr,cr[15],3634488961,14),Pr=ye(Pr,Ar,ur,$r,cr[4],3889429448,20),$r=ye($r,Pr,Ar,ur,cr[9],568446438,5),ur=ye(ur,$r,Pr,Ar,cr[14],3275163606,9),Ar=ye(Ar,ur,$r,Pr,cr[3],4107603335,14),Pr=ye(Pr,Ar,ur,$r,cr[8],1163531501,20),$r=ye($r,Pr,Ar,ur,cr[13],2850285829,5),ur=ye(ur,$r,Pr,Ar,cr[2],4243563512,9),Ar=ye(Ar,ur,$r,Pr,cr[7],1735328473,14),Pr=ye(Pr,Ar,ur,$r,cr[12],2368359562,20),$r=me($r,Pr,Ar,ur,cr[5],4294588738,4),ur=me(ur,$r,Pr,Ar,cr[8],2272392833,11),Ar=me(Ar,ur,$r,Pr,cr[11],1839030562,16),Pr=me(Pr,Ar,ur,$r,cr[14],4259657740,23),$r=me($r,Pr,Ar,ur,cr[1],2763975236,4),ur=me(ur,$r,Pr,Ar,cr[4],1272893353,11),Ar=me(Ar,ur,$r,Pr,cr[7],4139469664,16),Pr=me(Pr,Ar,ur,$r,cr[10],3200236656,23),$r=me($r,Pr,Ar,ur,cr[13],681279174,4),ur=me(ur,$r,Pr,Ar,cr[0],3936430074,11),Ar=me(Ar,ur,$r,Pr,cr[3],3572445317,16),Pr=me(Pr,Ar,ur,$r,cr[6],76029189,23),$r=me($r,Pr,Ar,ur,cr[9],3654602809,4),ur=me(ur,$r,Pr,Ar,cr[12],3873151461,11),Ar=me(Ar,ur,$r,Pr,cr[15],530742520,16),Pr=me(Pr,Ar,ur,$r,cr[2],3299628645,23),$r=Ee($r,Pr,Ar,ur,cr[0],4096336452,6),ur=Ee(ur,$r,Pr,Ar,cr[7],1126891415,10),Ar=Ee(Ar,ur,$r,Pr,cr[14],2878612391,15),Pr=Ee(Pr,Ar,ur,$r,cr[5],4237533241,21),$r=Ee($r,Pr,Ar,ur,cr[12],1700485571,6),ur=Ee(ur,$r,Pr,Ar,cr[3],2399980690,10),Ar=Ee(Ar,ur,$r,Pr,cr[10],4293915773,15),Pr=Ee(Pr,Ar,ur,$r,cr[1],2240044497,21),$r=Ee($r,Pr,Ar,ur,cr[8],1873313359,6),ur=Ee(ur,$r,Pr,Ar,cr[15],4264355552,10),Ar=Ee(Ar,ur,$r,Pr,cr[6],2734768916,15),Pr=Ee(Pr,Ar,ur,$r,cr[13],1309151649,21),$r=Ee($r,Pr,Ar,ur,cr[4],4149444226,6),ur=Ee(ur,$r,Pr,Ar,cr[11],3174756917,10),Ar=Ee(Ar,ur,$r,Pr,cr[2],718787259,15),Pr=Ee(Pr,Ar,ur,$r,cr[9],3951481745,21),this._a=this._a+$r|0,this._b=this._b+Pr|0,this._c=this._c+Ar|0,this._d=this._d+ur|0},le.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var cr=ce.allocUnsafe(16);return cr.writeInt32LE(this._a,0),cr.writeInt32LE(this._b,4),cr.writeInt32LE(this._c,8),cr.writeInt32LE(this._d,12),cr};function ve(cr,Br){return cr<>>32-Br}function pe(cr,Br,$r,Pr,Ar,ur,jr){return ve(cr+(Br&$r|~Br&Pr)+Ar+ur|0,jr)+Br|0}function ye(cr,Br,$r,Pr,Ar,ur,jr){return ve(cr+(Br&Pr|$r&~Pr)+Ar+ur|0,jr)+Br|0}function me(cr,Br,$r,Pr,Ar,ur,jr){return ve(cr+(Br^$r^Pr)+Ar+ur|0,jr)+Br|0}function Ee(cr,Br,$r,Pr,Ar,ur,jr){return ve(cr+($r^(Br|~Pr))+Ar+ur|0,jr)+Br|0}k.exports=le}}),require_ripemd160=__commonJS$1({"node_modules/ripemd160/index.js"(v,k){var ie=require_buffer$1().Buffer,ae=require_inherits_browser(),ce=require_hash_base(),fe=new Array(16),le=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],ve=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],pe=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],ye=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],me=[0,1518500249,1859775393,2400959708,2840853838],Ee=[1352829926,1548603684,1836072691,2053994217,0];function cr(){ce.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}ae(cr,ce),cr.prototype._update=function(){for(var Mr=fe,Lr=0;Lr<16;++Lr)Mr[Lr]=this._block.readInt32LE(Lr*4);for(var Vr=this._a|0,Gr=this._b|0,Ur=this._c|0,Qr=this._d|0,hn=this._e|0,Yt=this._a|0,fn=this._b|0,Qt=this._c|0,Xt=this._d|0,Kr=this._e|0,be=0;be<80;be+=1){var kr,xr;be<16?(kr=$r(Vr,Gr,Ur,Qr,hn,Mr[le[be]],me[0],pe[be]),xr=jr(Yt,fn,Qt,Xt,Kr,Mr[ve[be]],Ee[0],ye[be])):be<32?(kr=Pr(Vr,Gr,Ur,Qr,hn,Mr[le[be]],me[1],pe[be]),xr=ur(Yt,fn,Qt,Xt,Kr,Mr[ve[be]],Ee[1],ye[be])):be<48?(kr=Ar(Vr,Gr,Ur,Qr,hn,Mr[le[be]],me[2],pe[be]),xr=Ar(Yt,fn,Qt,Xt,Kr,Mr[ve[be]],Ee[2],ye[be])):be<64?(kr=ur(Vr,Gr,Ur,Qr,hn,Mr[le[be]],me[3],pe[be]),xr=Pr(Yt,fn,Qt,Xt,Kr,Mr[ve[be]],Ee[3],ye[be])):(kr=jr(Vr,Gr,Ur,Qr,hn,Mr[le[be]],me[4],pe[be]),xr=$r(Yt,fn,Qt,Xt,Kr,Mr[ve[be]],Ee[4],ye[be])),Vr=hn,hn=Qr,Qr=Br(Ur,10),Ur=Gr,Gr=kr,Yt=Kr,Kr=Xt,Xt=Br(Qt,10),Qt=fn,fn=xr}var Wr=this._b+Ur+Xt|0;this._b=this._c+Qr+Kr|0,this._c=this._d+hn+Yt|0,this._d=this._e+Vr+fn|0,this._e=this._a+Gr+Qt|0,this._a=Wr},cr.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var Mr=ie.alloc?ie.alloc(20):new ie(20);return Mr.writeInt32LE(this._a,0),Mr.writeInt32LE(this._b,4),Mr.writeInt32LE(this._c,8),Mr.writeInt32LE(this._d,12),Mr.writeInt32LE(this._e,16),Mr};function Br(Mr,Lr){return Mr<>>32-Lr}function $r(Mr,Lr,Vr,Gr,Ur,Qr,hn,Yt){return Br(Mr+(Lr^Vr^Gr)+Qr+hn|0,Yt)+Ur|0}function Pr(Mr,Lr,Vr,Gr,Ur,Qr,hn,Yt){return Br(Mr+(Lr&Vr|~Lr&Gr)+Qr+hn|0,Yt)+Ur|0}function Ar(Mr,Lr,Vr,Gr,Ur,Qr,hn,Yt){return Br(Mr+((Lr|~Vr)^Gr)+Qr+hn|0,Yt)+Ur|0}function ur(Mr,Lr,Vr,Gr,Ur,Qr,hn,Yt){return Br(Mr+(Lr&Gr|Vr&~Gr)+Qr+hn|0,Yt)+Ur|0}function jr(Mr,Lr,Vr,Gr,Ur,Qr,hn,Yt){return Br(Mr+(Lr^(Vr|~Gr))+Qr+hn|0,Yt)+Ur|0}k.exports=cr}}),require_hash2=__commonJS$1({"node_modules/sha.js/hash.js"(v,k){var ie=require_safe_buffer().Buffer;function ae(ce,fe){this._block=ie.alloc(ce),this._finalSize=fe,this._blockSize=ce,this._len=0}ae.prototype.update=function(ce,fe){typeof ce=="string"&&(fe=fe||"utf8",ce=ie.from(ce,fe));for(var le=this._block,ve=this._blockSize,pe=ce.length,ye=this._len,me=0;me=this._finalSize&&(this._update(this._block),this._block.fill(0));var le=this._len*8;if(le<=4294967295)this._block.writeUInt32BE(le,this._blockSize-4);else{var ve=(le&4294967295)>>>0,pe=(le-ve)/4294967296;this._block.writeUInt32BE(pe,this._blockSize-8),this._block.writeUInt32BE(ve,this._blockSize-4)}this._update(this._block);var ye=this._hash();return ce?ye.toString(ce):ye},ae.prototype._update=function(){throw new Error("_update must be implemented by subclass")},k.exports=ae}}),require_sha2=__commonJS$1({"node_modules/sha.js/sha.js"(v,k){var ie=require_inherits_browser(),ae=require_hash2(),ce=require_safe_buffer().Buffer,fe=[1518500249,1859775393,-1894007588,-899497514],le=new Array(80);function ve(){this.init(),this._w=le,ae.call(this,64,56)}ie(ve,ae),ve.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function pe(Ee){return Ee<<5|Ee>>>27}function ye(Ee){return Ee<<30|Ee>>>2}function me(Ee,cr,Br,$r){return Ee===0?cr&Br|~cr&$r:Ee===2?cr&Br|cr&$r|Br&$r:cr^Br^$r}ve.prototype._update=function(Ee){for(var cr=this._w,Br=this._a|0,$r=this._b|0,Pr=this._c|0,Ar=this._d|0,ur=this._e|0,jr=0;jr<16;++jr)cr[jr]=Ee.readInt32BE(jr*4);for(;jr<80;++jr)cr[jr]=cr[jr-3]^cr[jr-8]^cr[jr-14]^cr[jr-16];for(var Mr=0;Mr<80;++Mr){var Lr=~~(Mr/20),Vr=pe(Br)+me(Lr,$r,Pr,Ar)+ur+cr[Mr]+fe[Lr]|0;ur=Ar,Ar=Pr,Pr=ye($r),$r=Br,Br=Vr}this._a=Br+this._a|0,this._b=$r+this._b|0,this._c=Pr+this._c|0,this._d=Ar+this._d|0,this._e=ur+this._e|0},ve.prototype._hash=function(){var Ee=ce.allocUnsafe(20);return Ee.writeInt32BE(this._a|0,0),Ee.writeInt32BE(this._b|0,4),Ee.writeInt32BE(this._c|0,8),Ee.writeInt32BE(this._d|0,12),Ee.writeInt32BE(this._e|0,16),Ee},k.exports=ve}}),require_sha1=__commonJS$1({"node_modules/sha.js/sha1.js"(v,k){var ie=require_inherits_browser(),ae=require_hash2(),ce=require_safe_buffer().Buffer,fe=[1518500249,1859775393,-1894007588,-899497514],le=new Array(80);function ve(){this.init(),this._w=le,ae.call(this,64,56)}ie(ve,ae),ve.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function pe(cr){return cr<<1|cr>>>31}function ye(cr){return cr<<5|cr>>>27}function me(cr){return cr<<30|cr>>>2}function Ee(cr,Br,$r,Pr){return cr===0?Br&$r|~Br&Pr:cr===2?Br&$r|Br&Pr|$r&Pr:Br^$r^Pr}ve.prototype._update=function(cr){for(var Br=this._w,$r=this._a|0,Pr=this._b|0,Ar=this._c|0,ur=this._d|0,jr=this._e|0,Mr=0;Mr<16;++Mr)Br[Mr]=cr.readInt32BE(Mr*4);for(;Mr<80;++Mr)Br[Mr]=pe(Br[Mr-3]^Br[Mr-8]^Br[Mr-14]^Br[Mr-16]);for(var Lr=0;Lr<80;++Lr){var Vr=~~(Lr/20),Gr=ye($r)+Ee(Vr,Pr,Ar,ur)+jr+Br[Lr]+fe[Vr]|0;jr=ur,ur=Ar,Ar=me(Pr),Pr=$r,$r=Gr}this._a=$r+this._a|0,this._b=Pr+this._b|0,this._c=Ar+this._c|0,this._d=ur+this._d|0,this._e=jr+this._e|0},ve.prototype._hash=function(){var cr=ce.allocUnsafe(20);return cr.writeInt32BE(this._a|0,0),cr.writeInt32BE(this._b|0,4),cr.writeInt32BE(this._c|0,8),cr.writeInt32BE(this._d|0,12),cr.writeInt32BE(this._e|0,16),cr},k.exports=ve}}),require_sha256=__commonJS$1({"node_modules/sha.js/sha256.js"(v,k){var ie=require_inherits_browser(),ae=require_hash2(),ce=require_safe_buffer().Buffer,fe=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],le=new Array(64);function ve(){this.init(),this._w=le,ae.call(this,64,56)}ie(ve,ae),ve.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function pe($r,Pr,Ar){return Ar^$r&(Pr^Ar)}function ye($r,Pr,Ar){return $r&Pr|Ar&($r|Pr)}function me($r){return($r>>>2|$r<<30)^($r>>>13|$r<<19)^($r>>>22|$r<<10)}function Ee($r){return($r>>>6|$r<<26)^($r>>>11|$r<<21)^($r>>>25|$r<<7)}function cr($r){return($r>>>7|$r<<25)^($r>>>18|$r<<14)^$r>>>3}function Br($r){return($r>>>17|$r<<15)^($r>>>19|$r<<13)^$r>>>10}ve.prototype._update=function($r){for(var Pr=this._w,Ar=this._a|0,ur=this._b|0,jr=this._c|0,Mr=this._d|0,Lr=this._e|0,Vr=this._f|0,Gr=this._g|0,Ur=this._h|0,Qr=0;Qr<16;++Qr)Pr[Qr]=$r.readInt32BE(Qr*4);for(;Qr<64;++Qr)Pr[Qr]=Br(Pr[Qr-2])+Pr[Qr-7]+cr(Pr[Qr-15])+Pr[Qr-16]|0;for(var hn=0;hn<64;++hn){var Yt=Ur+Ee(Lr)+pe(Lr,Vr,Gr)+fe[hn]+Pr[hn]|0,fn=me(Ar)+ye(Ar,ur,jr)|0;Ur=Gr,Gr=Vr,Vr=Lr,Lr=Mr+Yt|0,Mr=jr,jr=ur,ur=Ar,Ar=Yt+fn|0}this._a=Ar+this._a|0,this._b=ur+this._b|0,this._c=jr+this._c|0,this._d=Mr+this._d|0,this._e=Lr+this._e|0,this._f=Vr+this._f|0,this._g=Gr+this._g|0,this._h=Ur+this._h|0},ve.prototype._hash=function(){var $r=ce.allocUnsafe(32);return $r.writeInt32BE(this._a,0),$r.writeInt32BE(this._b,4),$r.writeInt32BE(this._c,8),$r.writeInt32BE(this._d,12),$r.writeInt32BE(this._e,16),$r.writeInt32BE(this._f,20),$r.writeInt32BE(this._g,24),$r.writeInt32BE(this._h,28),$r},k.exports=ve}}),require_sha224=__commonJS$1({"node_modules/sha.js/sha224.js"(v,k){var ie=require_inherits_browser(),ae=require_sha256(),ce=require_hash2(),fe=require_safe_buffer().Buffer,le=new Array(64);function ve(){this.init(),this._w=le,ce.call(this,64,56)}ie(ve,ae),ve.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},ve.prototype._hash=function(){var pe=fe.allocUnsafe(28);return pe.writeInt32BE(this._a,0),pe.writeInt32BE(this._b,4),pe.writeInt32BE(this._c,8),pe.writeInt32BE(this._d,12),pe.writeInt32BE(this._e,16),pe.writeInt32BE(this._f,20),pe.writeInt32BE(this._g,24),pe},k.exports=ve}}),require_sha512=__commonJS$1({"node_modules/sha.js/sha512.js"(v,k){var ie=require_inherits_browser(),ae=require_hash2(),ce=require_safe_buffer().Buffer,fe=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],le=new Array(160);function ve(){this.init(),this._w=le,ae.call(this,128,112)}ie(ve,ae),ve.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function pe(ur,jr,Mr){return Mr^ur&(jr^Mr)}function ye(ur,jr,Mr){return ur&jr|Mr&(ur|jr)}function me(ur,jr){return(ur>>>28|jr<<4)^(jr>>>2|ur<<30)^(jr>>>7|ur<<25)}function Ee(ur,jr){return(ur>>>14|jr<<18)^(ur>>>18|jr<<14)^(jr>>>9|ur<<23)}function cr(ur,jr){return(ur>>>1|jr<<31)^(ur>>>8|jr<<24)^ur>>>7}function Br(ur,jr){return(ur>>>1|jr<<31)^(ur>>>8|jr<<24)^(ur>>>7|jr<<25)}function $r(ur,jr){return(ur>>>19|jr<<13)^(jr>>>29|ur<<3)^ur>>>6}function Pr(ur,jr){return(ur>>>19|jr<<13)^(jr>>>29|ur<<3)^(ur>>>6|jr<<26)}function Ar(ur,jr){return ur>>>0>>0?1:0}ve.prototype._update=function(ur){for(var jr=this._w,Mr=this._ah|0,Lr=this._bh|0,Vr=this._ch|0,Gr=this._dh|0,Ur=this._eh|0,Qr=this._fh|0,hn=this._gh|0,Yt=this._hh|0,fn=this._al|0,Qt=this._bl|0,Xt=this._cl|0,Kr=this._dl|0,be=this._el|0,kr=this._fl|0,xr=this._gl|0,Wr=this._hl|0,Jt=0;Jt<32;Jt+=2)jr[Jt]=ur.readInt32BE(Jt*4),jr[Jt+1]=ur.readInt32BE(Jt*4+4);for(;Jt<160;Jt+=2){var Xr=jr[Jt-30],zr=jr[Jt-15*2+1],Jr=cr(Xr,zr),Nr=Br(zr,Xr);Xr=jr[Jt-2*2],zr=jr[Jt-2*2+1];var Hr=$r(Xr,zr),On=Pr(zr,Xr),Gn=jr[Jt-7*2],mn=jr[Jt-7*2+1],Nn=jr[Jt-16*2],In=jr[Jt-16*2+1],bn=Nr+mn|0,ii=Jr+Gn+Ar(bn,Nr)|0;bn=bn+On|0,ii=ii+Hr+Ar(bn,On)|0,bn=bn+In|0,ii=ii+Nn+Ar(bn,In)|0,jr[Jt]=ii,jr[Jt+1]=bn}for(var vn=0;vn<160;vn+=2){ii=jr[vn],bn=jr[vn+1];var pn=ye(Mr,Lr,Vr),Sn=ye(fn,Qt,Xt),Qn=me(Mr,fn),Jn=me(fn,Mr),ui=Ee(Ur,be),gi=Ee(be,Ur),di=fe[vn],Ci=fe[vn+1],yi=pe(Ur,Qr,hn),li=pe(be,kr,xr),Pi=Wr+gi|0,Ai=Yt+ui+Ar(Pi,Wr)|0;Pi=Pi+li|0,Ai=Ai+yi+Ar(Pi,li)|0,Pi=Pi+Ci|0,Ai=Ai+di+Ar(Pi,Ci)|0,Pi=Pi+bn|0,Ai=Ai+ii+Ar(Pi,bn)|0;var Oi=Jn+Sn|0,to=Qn+pn+Ar(Oi,Jn)|0;Yt=hn,Wr=xr,hn=Qr,xr=kr,Qr=Ur,kr=be,be=Kr+Pi|0,Ur=Gr+Ai+Ar(be,Kr)|0,Gr=Vr,Kr=Xt,Vr=Lr,Xt=Qt,Lr=Mr,Qt=fn,fn=Pi+Oi|0,Mr=Ai+to+Ar(fn,Pi)|0}this._al=this._al+fn|0,this._bl=this._bl+Qt|0,this._cl=this._cl+Xt|0,this._dl=this._dl+Kr|0,this._el=this._el+be|0,this._fl=this._fl+kr|0,this._gl=this._gl+xr|0,this._hl=this._hl+Wr|0,this._ah=this._ah+Mr+Ar(this._al,fn)|0,this._bh=this._bh+Lr+Ar(this._bl,Qt)|0,this._ch=this._ch+Vr+Ar(this._cl,Xt)|0,this._dh=this._dh+Gr+Ar(this._dl,Kr)|0,this._eh=this._eh+Ur+Ar(this._el,be)|0,this._fh=this._fh+Qr+Ar(this._fl,kr)|0,this._gh=this._gh+hn+Ar(this._gl,xr)|0,this._hh=this._hh+Yt+Ar(this._hl,Wr)|0},ve.prototype._hash=function(){var ur=ce.allocUnsafe(64);function jr(Mr,Lr,Vr){ur.writeInt32BE(Mr,Vr),ur.writeInt32BE(Lr,Vr+4)}return jr(this._ah,this._al,0),jr(this._bh,this._bl,8),jr(this._ch,this._cl,16),jr(this._dh,this._dl,24),jr(this._eh,this._el,32),jr(this._fh,this._fl,40),jr(this._gh,this._gl,48),jr(this._hh,this._hl,56),ur},k.exports=ve}}),require_sha384=__commonJS$1({"node_modules/sha.js/sha384.js"(v,k){var ie=require_inherits_browser(),ae=require_sha512(),ce=require_hash2(),fe=require_safe_buffer().Buffer,le=new Array(160);function ve(){this.init(),this._w=le,ce.call(this,128,112)}ie(ve,ae),ve.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},ve.prototype._hash=function(){var pe=fe.allocUnsafe(48);function ye(me,Ee,cr){pe.writeInt32BE(me,cr),pe.writeInt32BE(Ee,cr+4)}return ye(this._ah,this._al,0),ye(this._bh,this._bl,8),ye(this._ch,this._cl,16),ye(this._dh,this._dl,24),ye(this._eh,this._el,32),ye(this._fh,this._fl,40),pe},k.exports=ve}}),require_sha4=__commonJS$1({"node_modules/sha.js/index.js"(ie,k){var ie=k.exports=function(ce){ce=ce.toLowerCase();var fe=ie[ce];if(!fe)throw new Error(ce+" is not supported (we accept pull requests)");return new fe};ie.sha=require_sha2(),ie.sha1=require_sha1(),ie.sha224=require_sha224(),ie.sha256=require_sha256(),ie.sha384=require_sha384(),ie.sha512=require_sha512()}}),require_stream=__commonJS$1({"browser-external:stream"(v,k){k.exports={}}}),require_cipher_base=__commonJS$1({"node_modules/cipher-base/index.js"(v,k){var ie=require_safe_buffer().Buffer,ae=require_stream().Transform,ce=require_string_decoder().StringDecoder,fe=require_inherits_browser();function le(ve){ae.call(this),this.hashMode=typeof ve=="string",this.hashMode?this[ve]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}fe(le,ae),le.prototype.update=function(ve,pe,ye){typeof ve=="string"&&(ve=ie.from(ve,pe));var me=this._update(ve);return this.hashMode?this:(ye&&(me=this._toString(me,ye)),me)},le.prototype.setAutoPadding=function(){},le.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},le.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},le.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},le.prototype._transform=function(ve,pe,ye){var me;try{this.hashMode?this._update(ve):this.push(this._update(ve))}catch(Ee){me=Ee}finally{ye(me)}},le.prototype._flush=function(ve){var pe;try{this.push(this.__final())}catch(ye){pe=ye}ve(pe)},le.prototype._finalOrDigest=function(ve){var pe=this.__final()||ie.alloc(0);return ve&&(pe=this._toString(pe,ve,!0)),pe},le.prototype._toString=function(ve,pe,ye){if(this._decoder||(this._decoder=new ce(pe),this._encoding=pe),this._encoding!==pe)throw new Error("can't switch encodings");var me=this._decoder.write(ve);return ye&&(me+=this._decoder.end()),me},k.exports=le}}),require_browser2=__commonJS$1({"node_modules/create-hash/browser.js"(v,k){var ie=require_inherits_browser(),ae=require_md5(),ce=require_ripemd160(),fe=require_sha4(),le=require_cipher_base();function ve(pe){le.call(this,"digest"),this._hash=pe}ie(ve,le),ve.prototype._update=function(pe){this._hash.update(pe)},ve.prototype._final=function(){return this._hash.digest()},k.exports=function(ye){return ye=ye.toLowerCase(),ye==="md5"?new ae:ye==="rmd160"||ye==="ripemd160"?new ce:new ve(fe(ye))}}}),require_precondition=__commonJS$1({"node_modules/pbkdf2/lib/precondition.js"(v,k){var ie=Math.pow(2,30)-1;k.exports=function(ae,ce){if(typeof ae!="number")throw new TypeError("Iterations not a number");if(ae<0)throw new TypeError("Bad iterations");if(typeof ce!="number")throw new TypeError("Key length not a number");if(ce<0||ce>ie||ce!==ce)throw new TypeError("Bad key length")}}}),require_default_encoding=__commonJS$1({"node_modules/pbkdf2/lib/default-encoding.js"(v,k){var ie;globalThis.process&&globalThis.process.browser?ie="utf-8":globalThis.process&&globalThis.process.version?(ae=parseInt(process.version.split(".")[0].slice(1),10),ie=ae>=6?"utf-8":"binary"):ie="utf-8";var ae;k.exports=ie}}),require_md52=__commonJS$1({"node_modules/create-hash/md5.js"(v,k){var ie=require_md5();k.exports=function(ae){return new ie().update(ae).digest()}}}),require_to_buffer=__commonJS$1({"node_modules/pbkdf2/lib/to-buffer.js"(v,k){var ie=require_safe_buffer().Buffer;k.exports=function(ae,ce,fe){if(ie.isBuffer(ae))return ae;if(typeof ae=="string")return ie.from(ae,ce);if(ArrayBuffer.isView(ae))return ie.from(ae.buffer);throw new TypeError(fe+" must be a string, a Buffer, a typed array or a DataView")}}}),require_sync_browser=__commonJS$1({"node_modules/pbkdf2/lib/sync-browser.js"(v,k){var ie=require_md52(),ae=require_ripemd160(),ce=require_sha4(),fe=require_safe_buffer().Buffer,le=require_precondition(),ve=require_default_encoding(),pe=require_to_buffer(),ye=fe.alloc(128),me={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Ee($r,Pr,Ar){var ur=cr($r),jr=$r==="sha512"||$r==="sha384"?128:64;Pr.length>jr?Pr=ur(Pr):Pr.length32)throw new Error(pe);if(Qt.length%4!==0)throw new Error(pe);var Xt=Buffer.from(Qt),Kr=Br(Xt);if(Kr!==fn)throw new Error(ye);return Xt.toString("hex")}function jr(Vr,Gr){if(Buffer.isBuffer(Vr)||(Vr=Buffer.from(Vr,"hex")),Gr=Gr||le,Vr.length<16)throw new TypeError(pe);if(Vr.length>32)throw new TypeError(pe);if(Vr.length%4!==0)throw new TypeError(pe);var Ur=cr([].slice.call(Vr)),Qr=Br(Vr),hn=Ur+Qr,Yt=hn.match(/(.{1,11})/g),fn=Yt.map(function(Qt){var Xt=Ee(Qt);return Gr[Xt]});return fn.join(" ")}function Mr(Vr,Gr,Ur){if(Vr=Vr||128,Vr%32!==0)throw new TypeError(pe);return Gr=Gr||ie,jr(Gr(Vr/8),Ur)}function Lr(Vr,Gr){try{ur(Vr,Gr)}catch{return!1}return!0}k.exports={mnemonicToSeed:Pr,mnemonicToSeedHex:Ar,mnemonicToEntropy:ur,entropyToMnemonic:jr,generateMnemonic:Mr,validateMnemonic:Lr,wordlists:{EN:fe}}}}),require_legacy=__commonJS$1({"node_modules/create-hmac/legacy.js"(v,k){var ie=require_inherits_browser(),ae=require_safe_buffer().Buffer,ce=require_cipher_base(),fe=ae.alloc(128),le=64;function ve(pe,ye){ce.call(this,"digest"),typeof ye=="string"&&(ye=ae.from(ye)),this._alg=pe,this._key=ye,ye.length>le?ye=pe(ye):ye.lengthBr){var $r=Ee==="rmd160"?new ve:pe(Ee);cr=$r.update(cr).digest()}else cr.lengthk.replace("'","")}}),require_dist2=__commonJS$1({"node_modules/near-hd-key/dist/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.derivePath=v.isValidPath=v.getPublicKey=v.getMasterKeyFromSeed=void 0;var k=require_browser4(),ie=require_nacl_fast(),ae=require_utils2(),ce="ed25519 seed",fe=2147483648;v.getMasterKeyFromSeed=ve=>{const ye=k("sha512",ce).update(Buffer.from(ve,"hex")).digest(),me=ye.slice(0,32),Ee=ye.slice(32);return{key:me,chainCode:Ee}};var le=({key:ve,chainCode:pe},ye)=>{const me=Buffer.allocUnsafe(4);me.writeUInt32BE(ye,0);const Ee=Buffer.concat([Buffer.alloc(1,0),ve,me]),cr=k("sha512",pe).update(Ee).digest(),Br=cr.slice(0,32),$r=cr.slice(32);return{key:Br,chainCode:$r}};v.getPublicKey=(ve,pe=!0)=>{const me=ie.sign.keyPair.fromSeed(ve).secretKey.subarray(32),Ee=Buffer.alloc(1,0);return pe?Buffer.concat([Ee,Buffer.from(me)]):Buffer.from(me)},v.isValidPath=ve=>ae.pathRegex.test(ve)?!ve.split("/").slice(1).map(ae.replaceDerive).some(isNaN):!1,v.derivePath=(ve,pe,ye=fe)=>{if(!v.isValidPath(ve))throw new Error("Invalid derivation path");const{key:me,chainCode:Ee}=v.getMasterKeyFromSeed(pe);return ve.split("/").slice(1).map(ae.replaceDerive).map(Br=>parseInt(Br,10)).reduce((Br,$r)=>le(Br,$r+ye),{key:me,chainCode:Ee})}}}),require_near_seed_phrase=__commonJS$1({"node_modules/near-seed-phrase/index.js"(v,k){var ie=require_bip39_light(),{derivePath:ae}=require_dist2(),ce=require_bs58(),fe=require_nacl_fast(),le="m/44'/397'/0'",ve=Ee=>ye(Ee!==void 0?ie.entropyToMnemonic(Ee):ie.generateMnemonic()),pe=Ee=>Ee.trim().split(/\s+/).map(cr=>cr.toLowerCase()).join(" "),ye=(Ee,cr)=>{const Br=ie.mnemonicToSeed(pe(Ee)),{key:$r}=ae(cr||le,Br.toString("hex")),Pr=fe.sign.keyPair.fromSeed($r),Ar="ed25519:"+ce.encode(Buffer.from(Pr.publicKey)),ur="ed25519:"+ce.encode(Buffer.from(Pr.secretKey));return{seedPhrase:Ee,secretKey:ur,publicKey:Ar}},me=(Ee,cr)=>{const Br=ye(Ee);return cr.indexOf(Br.publicKey)<0?{}:Br};k.exports={KEY_DERIVATION_PATH:le,generateSeedPhrase:ve,normalizeSeedPhrase:pe,parseSeedPhrase:ye,findSeedPhraseKey:me}}}),import_detect_provider=__toESM(require_dist(),1),ethers_exports={};__export$1(ethers_exports,{BaseContract:()=>BaseContract,BigNumber:()=>BigNumber,Contract:()=>Contract,ContractFactory:()=>ContractFactory,FixedNumber:()=>FixedNumber,Signer:()=>Signer,VoidSigner:()=>VoidSigner,Wallet:()=>Wallet,Wordlist:()=>Wordlist,constants:()=>lib_exports2,errors:()=>ErrorCode,getDefaultProvider:()=>getDefaultProvider,logger:()=>logger46,providers:()=>lib_exports4,utils:()=>utils_exports,version:()=>version26,wordlists:()=>wordlists});var import_bn=__toESM(require_bn$1()),version$4="logger/5.7.0",_permanentCensorErrors=!1,_censorErrors=!1,LogLevels={debug:1,default:2,info:2,warning:3,error:4,off:5},_logLevel=LogLevels.default,_globalLogger=null;function _checkNormalize(){try{const v=[];if(["NFD","NFC","NFKD","NFKC"].forEach(k=>{try{if("test".normalize(k)!=="test")throw new Error("bad normalize")}catch{v.push(k)}}),v.length)throw new Error("missing "+v.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(v){return v.message}return null}var _normalizeError=_checkNormalize(),LogLevel;(function(v){v.DEBUG="DEBUG",v.INFO="INFO",v.WARNING="WARNING",v.ERROR="ERROR",v.OFF="OFF"})(LogLevel||(LogLevel={}));var ErrorCode;(function(v){v.UNKNOWN_ERROR="UNKNOWN_ERROR",v.NOT_IMPLEMENTED="NOT_IMPLEMENTED",v.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",v.NETWORK_ERROR="NETWORK_ERROR",v.SERVER_ERROR="SERVER_ERROR",v.TIMEOUT="TIMEOUT",v.BUFFER_OVERRUN="BUFFER_OVERRUN",v.NUMERIC_FAULT="NUMERIC_FAULT",v.MISSING_NEW="MISSING_NEW",v.INVALID_ARGUMENT="INVALID_ARGUMENT",v.MISSING_ARGUMENT="MISSING_ARGUMENT",v.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",v.CALL_EXCEPTION="CALL_EXCEPTION",v.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",v.NONCE_EXPIRED="NONCE_EXPIRED",v.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",v.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",v.TRANSACTION_REPLACED="TRANSACTION_REPLACED",v.ACTION_REJECTED="ACTION_REJECTED"})(ErrorCode||(ErrorCode={}));var HEX="0123456789abcdef",Logger=class{constructor(v){Object.defineProperty(this,"version",{enumerable:!0,value:v,writable:!1})}_log(v,k){const ie=v.toLowerCase();LogLevels[ie]==null&&this.throwArgumentError("invalid log level name","logLevel",v),!(_logLevel>LogLevels[ie])&&console.log.apply(console,k)}debug(...v){this._log(Logger.levels.DEBUG,v)}info(...v){this._log(Logger.levels.INFO,v)}warn(...v){this._log(Logger.levels.WARNING,v)}makeError(v,k,ie){if(_censorErrors)return this.makeError("censored error",k,{});k||(k=Logger.errors.UNKNOWN_ERROR),ie||(ie={});const ae=[];Object.keys(ie).forEach(ve=>{const pe=ie[ve];try{if(pe instanceof Uint8Array){let ye="";for(let me=0;me>4],ye+=HEX[pe[me]&15];ae.push(ve+"=Uint8Array(0x"+ye+")")}else ae.push(ve+"="+JSON.stringify(pe))}catch{ae.push(ve+"="+JSON.stringify(ie[ve].toString()))}}),ae.push(`code=${k}`),ae.push(`version=${this.version}`);const ce=v;let fe="";switch(k){case ErrorCode.NUMERIC_FAULT:{fe="NUMERIC_FAULT";const ve=v;switch(ve){case"overflow":case"underflow":case"division-by-zero":fe+="-"+ve;break;case"negative-power":case"negative-width":fe+="-unsupported";break;case"unbound-bitwise-result":fe+="-unbound-result";break}break}case ErrorCode.CALL_EXCEPTION:case ErrorCode.INSUFFICIENT_FUNDS:case ErrorCode.MISSING_NEW:case ErrorCode.NONCE_EXPIRED:case ErrorCode.REPLACEMENT_UNDERPRICED:case ErrorCode.TRANSACTION_REPLACED:case ErrorCode.UNPREDICTABLE_GAS_LIMIT:fe=k;break}fe&&(v+=" [ See: https://links.ethers.org/v5-errors-"+fe+" ]"),ae.length&&(v+=" ("+ae.join(", ")+")");const le=new Error(v);return le.reason=ce,le.code=k,Object.keys(ie).forEach(function(ve){le[ve]=ie[ve]}),le}throwError(v,k,ie){throw this.makeError(v,k,ie)}throwArgumentError(v,k,ie){return this.throwError(v,Logger.errors.INVALID_ARGUMENT,{argument:k,value:ie})}assert(v,k,ie,ae){v||this.throwError(k,ie,ae)}assertArgument(v,k,ie,ae){v||this.throwArgumentError(k,ie,ae)}checkNormalize(v){_normalizeError&&this.throwError("platform missing String.prototype.normalize",Logger.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:_normalizeError})}checkSafeUint53(v,k){typeof v=="number"&&(k==null&&(k="value not safe"),(v<0||v>=9007199254740991)&&this.throwError(k,Logger.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:v}),v%1&&this.throwError(k,Logger.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:v}))}checkArgumentCount(v,k,ie){ie?ie=": "+ie:ie="",vk&&this.throwError("too many arguments"+ie,Logger.errors.UNEXPECTED_ARGUMENT,{count:v,expectedCount:k})}checkNew(v,k){(v===Object||v==null)&&this.throwError("missing new",Logger.errors.MISSING_NEW,{name:k.name})}checkAbstract(v,k){v===k?this.throwError("cannot instantiate abstract class "+JSON.stringify(k.name)+" directly; use a sub-class",Logger.errors.UNSUPPORTED_OPERATION,{name:v.name,operation:"new"}):(v===Object||v==null)&&this.throwError("missing new",Logger.errors.MISSING_NEW,{name:k.name})}static globalLogger(){return _globalLogger||(_globalLogger=new Logger(version$4)),_globalLogger}static setCensorship(v,k){if(!v&&k&&this.globalLogger().throwError("cannot permanently disable censorship",Logger.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),_permanentCensorErrors){if(!v)return;this.globalLogger().throwError("error censorship permanent",Logger.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}_censorErrors=!!v,_permanentCensorErrors=!!k}static setLogLevel(v){const k=LogLevels[v.toLowerCase()];if(k==null){Logger.globalLogger().warn("invalid log level - "+v);return}_logLevel=k}static from(v){return new Logger(v)}};Logger.errors=ErrorCode;Logger.levels=LogLevel;var version2="bytes/5.7.0",logger=new Logger(version2);function isHexable(v){return!!v.toHexString}function addSlice(v){return v.slice||(v.slice=function(){const k=Array.prototype.slice.call(arguments);return addSlice(new Uint8Array(Array.prototype.slice.apply(v,k)))}),v}function isBytesLike(v){return isHexString(v)&&!(v.length%2)||isBytes(v)}function isInteger(v){return typeof v=="number"&&v==v&&v%1===0}function isBytes(v){if(v==null)return!1;if(v.constructor===Uint8Array)return!0;if(typeof v=="string"||!isInteger(v.length)||v.length<0)return!1;for(let k=0;k=256)return!1}return!0}function arrayify(v,k){if(k||(k={}),typeof v=="number"){logger.checkSafeUint53(v,"invalid arrayify value");const ie=[];for(;v;)ie.unshift(v&255),v=parseInt(String(v/256));return ie.length===0&&ie.push(0),addSlice(new Uint8Array(ie))}if(k.allowMissingPrefix&&typeof v=="string"&&v.substring(0,2)!=="0x"&&(v="0x"+v),isHexable(v)&&(v=v.toHexString()),isHexString(v)){let ie=v.substring(2);ie.length%2&&(k.hexPad==="left"?ie="0"+ie:k.hexPad==="right"?ie+="0":logger.throwArgumentError("hex data is odd-length","value",v));const ae=[];for(let ce=0;cearrayify(ce)),ie=k.reduce((ce,fe)=>ce+fe.length,0),ae=new Uint8Array(ie);return k.reduce((ce,fe)=>(ae.set(fe,ce),ce+fe.length),0),addSlice(ae)}function stripZeros(v){let k=arrayify(v);if(k.length===0)return k;let ie=0;for(;iek&&logger.throwArgumentError("value out of range","value",arguments[0]);const ie=new Uint8Array(k);return ie.set(v,k-v.length),addSlice(ie)}function isHexString(v,k){return!(typeof v!="string"||!v.match(/^0x[0-9A-Fa-f]*$/)||k&&v.length!==2+2*k)}var HexCharacters="0123456789abcdef";function hexlify(v,k){if(k||(k={}),typeof v=="number"){logger.checkSafeUint53(v,"invalid hexlify value");let ie="";for(;v;)ie=HexCharacters[v&15]+ie,v=Math.floor(v/16);return ie.length?(ie.length%2&&(ie="0"+ie),"0x"+ie):"0x00"}if(typeof v=="bigint")return v=v.toString(16),v.length%2?"0x0"+v:"0x"+v;if(k.allowMissingPrefix&&typeof v=="string"&&v.substring(0,2)!=="0x"&&(v="0x"+v),isHexable(v))return v.toHexString();if(isHexString(v))return v.length%2&&(k.hexPad==="left"?v="0x0"+v.substring(2):k.hexPad==="right"?v+="0":logger.throwArgumentError("hex data is odd-length","value",v)),v.toLowerCase();if(isBytes(v)){let ie="0x";for(let ae=0;ae>4]+HexCharacters[ce&15]}return ie}return logger.throwArgumentError("invalid hexlify value","value",v)}function hexDataLength(v){if(typeof v!="string")v=hexlify(v);else if(!isHexString(v)||v.length%2)return null;return(v.length-2)/2}function hexDataSlice(v,k,ie){return typeof v!="string"?v=hexlify(v):(!isHexString(v)||v.length%2)&&logger.throwArgumentError("invalid hexData","value",v),k=2+2*k,ie!=null?"0x"+v.substring(k,2+2*ie):"0x"+v.substring(k)}function hexConcat(v){let k="0x";return v.forEach(ie=>{k+=hexlify(ie).substring(2)}),k}function hexValue(v){const k=hexStripZeros(hexlify(v,{hexPad:"left"}));return k==="0x"?"0x0":k}function hexStripZeros(v){typeof v!="string"&&(v=hexlify(v)),isHexString(v)||logger.throwArgumentError("invalid hex string","value",v),v=v.substring(2);let k=0;for(;k2*k+2&&logger.throwArgumentError("value out of range","value",arguments[1]);v.length<2*k+2;)v="0x0"+v.substring(2);return v}function splitSignature(v){const k={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(isBytesLike(v)){let ie=arrayify(v);ie.length===64?(k.v=27+(ie[32]>>7),ie[32]&=127,k.r=hexlify(ie.slice(0,32)),k.s=hexlify(ie.slice(32,64))):ie.length===65?(k.r=hexlify(ie.slice(0,32)),k.s=hexlify(ie.slice(32,64)),k.v=ie[64]):logger.throwArgumentError("invalid signature string","signature",v),k.v<27&&(k.v===0||k.v===1?k.v+=27:logger.throwArgumentError("signature invalid v byte","signature",v)),k.recoveryParam=1-k.v%2,k.recoveryParam&&(ie[32]|=128),k._vs=hexlify(ie.slice(32,64))}else{if(k.r=v.r,k.s=v.s,k.v=v.v,k.recoveryParam=v.recoveryParam,k._vs=v._vs,k._vs!=null){const ce=zeroPad(arrayify(k._vs),32);k._vs=hexlify(ce);const fe=ce[0]>=128?1:0;k.recoveryParam==null?k.recoveryParam=fe:k.recoveryParam!==fe&&logger.throwArgumentError("signature recoveryParam mismatch _vs","signature",v),ce[0]&=127;const le=hexlify(ce);k.s==null?k.s=le:k.s!==le&&logger.throwArgumentError("signature v mismatch _vs","signature",v)}if(k.recoveryParam==null)k.v==null?logger.throwArgumentError("signature missing v and recoveryParam","signature",v):k.v===0||k.v===1?k.recoveryParam=k.v:k.recoveryParam=1-k.v%2;else if(k.v==null)k.v=27+k.recoveryParam;else{const ce=k.v===0||k.v===1?k.v:1-k.v%2;k.recoveryParam!==ce&&logger.throwArgumentError("signature recoveryParam mismatch v","signature",v)}k.r==null||!isHexString(k.r)?logger.throwArgumentError("signature missing or invalid r","signature",v):k.r=hexZeroPad(k.r,32),k.s==null||!isHexString(k.s)?logger.throwArgumentError("signature missing or invalid s","signature",v):k.s=hexZeroPad(k.s,32);const ie=arrayify(k.s);ie[0]>=128&&logger.throwArgumentError("signature s out of range","signature",v),k.recoveryParam&&(ie[0]|=128);const ae=hexlify(ie);k._vs&&(isHexString(k._vs)||logger.throwArgumentError("signature invalid _vs","signature",v),k._vs=hexZeroPad(k._vs,32)),k._vs==null?k._vs=ae:k._vs!==ae&&logger.throwArgumentError("signature _vs mismatch v and s","signature",v)}return k.yParityAndS=k._vs,k.compact=k.r+k.yParityAndS.substring(2),k}function joinSignature(v){return v=splitSignature(v),hexlify(concat$4([v.r,v.s,v.recoveryParam?"0x1c":"0x1b"]))}var version3="bignumber/5.7.0",BN=import_bn.default.BN,logger2=new Logger(version3),_constructorGuard={},MAX_SAFE=9007199254740991;function isBigNumberish(v){return v!=null&&(BigNumber.isBigNumber(v)||typeof v=="number"&&v%1===0||typeof v=="string"&&!!v.match(/^-?[0-9]+$/)||isHexString(v)||typeof v=="bigint"||isBytes(v))}var _warnedToStringRadix=!1,BigNumber=class{constructor(v,k){v!==_constructorGuard&&logger2.throwError("cannot call constructor directly; use BigNumber.from",Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=k,this._isBigNumber=!0,Object.freeze(this)}fromTwos(v){return toBigNumber(toBN(this).fromTwos(v))}toTwos(v){return toBigNumber(toBN(this).toTwos(v))}abs(){return this._hex[0]==="-"?BigNumber.from(this._hex.substring(1)):this}add(v){return toBigNumber(toBN(this).add(toBN(v)))}sub(v){return toBigNumber(toBN(this).sub(toBN(v)))}div(v){return BigNumber.from(v).isZero()&&throwFault("division-by-zero","div"),toBigNumber(toBN(this).div(toBN(v)))}mul(v){return toBigNumber(toBN(this).mul(toBN(v)))}mod(v){const k=toBN(v);return k.isNeg()&&throwFault("division-by-zero","mod"),toBigNumber(toBN(this).umod(k))}pow(v){const k=toBN(v);return k.isNeg()&&throwFault("negative-power","pow"),toBigNumber(toBN(this).pow(k))}and(v){const k=toBN(v);return(this.isNegative()||k.isNeg())&&throwFault("unbound-bitwise-result","and"),toBigNumber(toBN(this).and(k))}or(v){const k=toBN(v);return(this.isNegative()||k.isNeg())&&throwFault("unbound-bitwise-result","or"),toBigNumber(toBN(this).or(k))}xor(v){const k=toBN(v);return(this.isNegative()||k.isNeg())&&throwFault("unbound-bitwise-result","xor"),toBigNumber(toBN(this).xor(k))}mask(v){return(this.isNegative()||v<0)&&throwFault("negative-width","mask"),toBigNumber(toBN(this).maskn(v))}shl(v){return(this.isNegative()||v<0)&&throwFault("negative-width","shl"),toBigNumber(toBN(this).shln(v))}shr(v){return(this.isNegative()||v<0)&&throwFault("negative-width","shr"),toBigNumber(toBN(this).shrn(v))}eq(v){return toBN(this).eq(toBN(v))}lt(v){return toBN(this).lt(toBN(v))}lte(v){return toBN(this).lte(toBN(v))}gt(v){return toBN(this).gt(toBN(v))}gte(v){return toBN(this).gte(toBN(v))}isNegative(){return this._hex[0]==="-"}isZero(){return toBN(this).isZero()}toNumber(){try{return toBN(this).toNumber()}catch{throwFault("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return logger2.throwError("this platform does not support BigInt",Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?_warnedToStringRadix||(_warnedToStringRadix=!0,logger2.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?logger2.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Logger.errors.UNEXPECTED_ARGUMENT,{}):logger2.throwError("BigNumber.toString does not accept parameters",Logger.errors.UNEXPECTED_ARGUMENT,{})),toBN(this).toString(10)}toHexString(){return this._hex}toJSON(v){return{type:"BigNumber",hex:this.toHexString()}}static from(v){if(v instanceof BigNumber)return v;if(typeof v=="string")return v.match(/^-?0x[0-9a-f]+$/i)?new BigNumber(_constructorGuard,toHex(v)):v.match(/^-?[0-9]+$/)?new BigNumber(_constructorGuard,toHex(new BN(v))):logger2.throwArgumentError("invalid BigNumber string","value",v);if(typeof v=="number")return v%1&&throwFault("underflow","BigNumber.from",v),(v>=MAX_SAFE||v<=-MAX_SAFE)&&throwFault("overflow","BigNumber.from",v),BigNumber.from(String(v));const k=v;if(typeof k=="bigint")return BigNumber.from(k.toString());if(isBytes(k))return BigNumber.from(hexlify(k));if(k)if(k.toHexString){const ie=k.toHexString();if(typeof ie=="string")return BigNumber.from(ie)}else{let ie=k._hex;if(ie==null&&k.type==="BigNumber"&&(ie=k.hex),typeof ie=="string"&&(isHexString(ie)||ie[0]==="-"&&isHexString(ie.substring(1))))return BigNumber.from(ie)}return logger2.throwArgumentError("invalid BigNumber value","value",v)}static isBigNumber(v){return!!(v&&v._isBigNumber)}};function toHex(v){if(typeof v!="string")return toHex(v.toString(16));if(v[0]==="-")return v=v.substring(1),v[0]==="-"&&logger2.throwArgumentError("invalid hex","value",v),v=toHex(v),v==="0x00"?v:"-"+v;if(v.substring(0,2)!=="0x"&&(v="0x"+v),v==="0x")return"0x00";for(v.length%2&&(v="0x0"+v.substring(2));v.length>4&&v.substring(0,4)==="0x00";)v="0x"+v.substring(4);return v}function toBigNumber(v){return BigNumber.from(toHex(v))}function toBN(v){const k=BigNumber.from(v).toHexString();return k[0]==="-"?new BN("-"+k.substring(3),16):new BN(k.substring(2),16)}function throwFault(v,k,ie){const ae={fault:v,operation:k};return ie!=null&&(ae.value=ie),logger2.throwError(v,Logger.errors.NUMERIC_FAULT,ae)}function _base36To16(v){return new BN(v,36).toString(16)}function _base16To36(v){return new BN(v,16).toString(36)}var logger3=new Logger(version3),_constructorGuard2={},Zero=BigNumber.from(0),NegativeOne=BigNumber.from(-1);function throwFault2(v,k,ie,ae){const ce={fault:k,operation:ie};return ae!==void 0&&(ce.value=ae),logger3.throwError(v,Logger.errors.NUMERIC_FAULT,ce)}var zeros="0";for(;zeros.length<256;)zeros+=zeros;function getMultiplier(v){if(typeof v!="number")try{v=BigNumber.from(v).toNumber()}catch{}return typeof v=="number"&&v>=0&&v<=256&&!(v%1)?"1"+zeros.substring(0,v):logger3.throwArgumentError("invalid decimal size","decimals",v)}function formatFixed(v,k){k==null&&(k=0);const ie=getMultiplier(k);v=BigNumber.from(v);const ae=v.lt(Zero);ae&&(v=v.mul(NegativeOne));let ce=v.mod(ie).toString();for(;ce.length2&&logger3.throwArgumentError("too many decimal points","value",v);let fe=ce[0],le=ce[1];for(fe||(fe="0"),le||(le="0");le[le.length-1]==="0";)le=le.substring(0,le.length-1);for(le.length>ie.length-1&&throwFault2("fractional component exceeds decimals","underflow","parseFixed"),le===""&&(le="0");le.lengthv[fe]==null?ve:(typeof v[fe]!==le&&logger3.throwArgumentError("invalid fixed format ("+fe+" not "+le+")","format."+fe,v[fe]),v[fe]);k=ce("signed","boolean",k),ie=ce("width","number",ie),ae=ce("decimals","number",ae)}return ie%8&&logger3.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",ie),ae>80&&logger3.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",ae),new FixedFormat(_constructorGuard2,k,ie,ae)}},FixedNumber=class{constructor(v,k,ie,ae){v!==_constructorGuard2&&logger3.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=ae,this._hex=k,this._value=ie,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(v){this.format.name!==v.format.name&&logger3.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",v)}addUnsafe(v){this._checkFormat(v);const k=parseFixed(this._value,this.format.decimals),ie=parseFixed(v._value,v.format.decimals);return FixedNumber.fromValue(k.add(ie),this.format.decimals,this.format)}subUnsafe(v){this._checkFormat(v);const k=parseFixed(this._value,this.format.decimals),ie=parseFixed(v._value,v.format.decimals);return FixedNumber.fromValue(k.sub(ie),this.format.decimals,this.format)}mulUnsafe(v){this._checkFormat(v);const k=parseFixed(this._value,this.format.decimals),ie=parseFixed(v._value,v.format.decimals);return FixedNumber.fromValue(k.mul(ie).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(v){this._checkFormat(v);const k=parseFixed(this._value,this.format.decimals),ie=parseFixed(v._value,v.format.decimals);return FixedNumber.fromValue(k.mul(this.format._multiplier).div(ie),this.format.decimals,this.format)}floor(){const v=this.toString().split(".");v.length===1&&v.push("0");let k=FixedNumber.from(v[0],this.format);const ie=!v[1].match(/^(0*)$/);return this.isNegative()&&ie&&(k=k.subUnsafe(ONE.toFormat(k.format))),k}ceiling(){const v=this.toString().split(".");v.length===1&&v.push("0");let k=FixedNumber.from(v[0],this.format);const ie=!v[1].match(/^(0*)$/);return!this.isNegative()&&ie&&(k=k.addUnsafe(ONE.toFormat(k.format))),k}round(v){v==null&&(v=0);const k=this.toString().split(".");if(k.length===1&&k.push("0"),(v<0||v>80||v%1)&&logger3.throwArgumentError("invalid decimal count","decimals",v),k[1].length<=v)return this;const ie=FixedNumber.from("1"+zeros.substring(0,v),this.format),ae=BUMP.toFormat(this.format);return this.mulUnsafe(ie).addUnsafe(ae).floor().divUnsafe(ie)}isZero(){return this._value==="0.0"||this._value==="0"}isNegative(){return this._value[0]==="-"}toString(){return this._value}toHexString(v){if(v==null)return this._hex;v%8&&logger3.throwArgumentError("invalid byte width","width",v);const k=BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(v).toHexString();return hexZeroPad(k,v/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(v){return FixedNumber.fromString(this._value,v)}static fromValue(v,k,ie){return ie==null&&k!=null&&!isBigNumberish(k)&&(ie=k,k=null),k==null&&(k=0),ie==null&&(ie="fixed"),FixedNumber.fromString(formatFixed(v,k),FixedFormat.from(ie))}static fromString(v,k){k==null&&(k="fixed");const ie=FixedFormat.from(k),ae=parseFixed(v,ie.decimals);!ie.signed&&ae.lt(Zero)&&throwFault2("unsigned value cannot be negative","overflow","value",v);let ce=null;ie.signed?ce=ae.toTwos(ie.width).toHexString():(ce=ae.toHexString(),ce=hexZeroPad(ce,ie.width/8));const fe=formatFixed(ae,ie.decimals);return new FixedNumber(_constructorGuard2,ce,fe,ie)}static fromBytes(v,k){k==null&&(k="fixed");const ie=FixedFormat.from(k);if(arrayify(v).length>ie.width/8)throw new Error("overflow");let ae=BigNumber.from(v);ie.signed&&(ae=ae.fromTwos(ie.width));const ce=ae.toTwos((ie.signed?0:1)+ie.width).toHexString(),fe=formatFixed(ae,ie.decimals);return new FixedNumber(_constructorGuard2,ce,fe,ie)}static from(v,k){if(typeof v=="string")return FixedNumber.fromString(v,k);if(isBytes(v))return FixedNumber.fromBytes(v,k);try{return FixedNumber.fromValue(v,0,k)}catch(ie){if(ie.code!==Logger.errors.INVALID_ARGUMENT)throw ie}return logger3.throwArgumentError("invalid FixedNumber value","value",v)}static isFixedNumber(v){return!!(v&&v._isFixedNumber)}},ONE=FixedNumber.from(1),BUMP=FixedNumber.from("0.5"),version4="properties/5.7.0",__awaiter$5=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger4=new Logger(version4);function defineReadOnly(v,k,ie){Object.defineProperty(v,k,{enumerable:!0,value:ie,writable:!1})}function getStatic(v,k){for(let ie=0;ie<32;ie++){if(v[k])return v[k];if(!v.prototype||typeof v.prototype!="object")break;v=Object.getPrototypeOf(v.prototype).constructor}return null}function resolveProperties(v){return __awaiter$5(this,void 0,void 0,function*(){const k=Object.keys(v).map(ae=>{const ce=v[ae];return Promise.resolve(ce).then(fe=>({key:ae,value:fe}))});return(yield Promise.all(k)).reduce((ae,ce)=>(ae[ce.key]=ce.value,ae),{})})}function checkProperties(v,k){(!v||typeof v!="object")&&logger4.throwArgumentError("invalid object","object",v),Object.keys(v).forEach(ie=>{k[ie]||logger4.throwArgumentError("invalid object key - "+ie,"transaction:"+ie,v)})}function shallowCopy(v){const k={};for(const ie in v)k[ie]=v[ie];return k}var opaque={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function _isFrozen(v){if(v==null||opaque[typeof v])return!0;if(Array.isArray(v)||typeof v=="object"){if(!Object.isFrozen(v))return!1;const k=Object.keys(v);for(let ie=0;iedeepCopy(k)));if(typeof v=="object"){const k={};for(const ie in v){const ae=v[ie];ae!==void 0&&defineReadOnly(k,ie,deepCopy(ae))}return k}return logger4.throwArgumentError(`Cannot deepCopy ${typeof v}`,"object",v)}function deepCopy(v){return _deepCopy(v)}var Description=class{constructor(v){for(const k in v)this[k]=deepCopy(v[k])}},version5="abi/5.7.0",logger5=new Logger(version5),_constructorGuard3={},ModifiersBytes={calldata:!0,memory:!0,storage:!0},ModifiersNest={calldata:!0,memory:!0};function checkModifier(v,k){if(v==="bytes"||v==="string"){if(ModifiersBytes[k])return!0}else if(v==="address"){if(k==="payable")return!0}else if((v.indexOf("[")>=0||v==="tuple")&&ModifiersNest[k])return!0;return(ModifiersBytes[k]||k==="payable")&&logger5.throwArgumentError("invalid modifier","name",k),!1}function parseParamType(v,k){let ie=v;function ae(ve){logger5.throwArgumentError(`unexpected character at position ${ve}`,"param",v)}v=v.replace(/\s/g," ");function ce(ve){let pe={type:"",name:"",parent:ve,state:{allowType:!0}};return k&&(pe.indexed=!1),pe}let fe={type:"",name:"",state:{allowType:!0}},le=fe;for(let ve=0;veJSON.parse(ae.format(v)))),JSON.stringify(ie)}let k="";return this.baseType==="array"?(k+=this.arrayChildren.format(v),k+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(v!==FormatTypes.sighash&&(k+=this.type),k+="("+this.components.map(ie=>ie.format(v)).join(v===FormatTypes.full?", ":",")+")"):k+=this.type,v!==FormatTypes.sighash&&(this.indexed===!0&&(k+=" indexed"),v===FormatTypes.full&&this.name&&(k+=" "+this.name)),k}static from(v,k){return typeof v=="string"?ParamType.fromString(v,k):ParamType.fromObject(v)}static fromObject(v){return ParamType.isParamType(v)?v:new ParamType(_constructorGuard3,{name:v.name||null,type:verifyType(v.type),indexed:v.indexed==null?null:!!v.indexed,components:v.components?v.components.map(ParamType.fromObject):null})}static fromString(v,k){function ie(ae){return ParamType.fromObject({name:ae.name,type:ae.type,indexed:ae.indexed,components:ae.components})}return ie(parseParamType(v,!!k))}static isParamType(v){return!!(v!=null&&v._isParamType)}};function parseParams(v,k){return splitNesting(v).map(ie=>ParamType.fromString(ie,k))}var Fragment=class{constructor(v,k){v!==_constructorGuard3&&logger5.throwError("use a static from method",Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),populate(this,k),this._isFragment=!0,Object.freeze(this)}static from(v){return Fragment.isFragment(v)?v:typeof v=="string"?Fragment.fromString(v):Fragment.fromObject(v)}static fromObject(v){if(Fragment.isFragment(v))return v;switch(v.type){case"function":return FunctionFragment.fromObject(v);case"event":return EventFragment.fromObject(v);case"constructor":return ConstructorFragment.fromObject(v);case"error":return ErrorFragment.fromObject(v);case"fallback":case"receive":return null}return logger5.throwArgumentError("invalid fragment object","value",v)}static fromString(v){return v=v.replace(/\s/g," "),v=v.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),v=v.trim(),v.split(" ")[0]==="event"?EventFragment.fromString(v.substring(5).trim()):v.split(" ")[0]==="function"?FunctionFragment.fromString(v.substring(8).trim()):v.split("(")[0].trim()==="constructor"?ConstructorFragment.fromString(v.trim()):v.split(" ")[0]==="error"?ErrorFragment.fromString(v.substring(5).trim()):logger5.throwArgumentError("unsupported fragment","value",v)}static isFragment(v){return!!(v&&v._isFragment)}},EventFragment=class extends Fragment{format(v){if(v||(v=FormatTypes.sighash),FormatTypes[v]||logger5.throwArgumentError("invalid format type","format",v),v===FormatTypes.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(ie=>JSON.parse(ie.format(v)))});let k="";return v!==FormatTypes.sighash&&(k+="event "),k+=this.name+"("+this.inputs.map(ie=>ie.format(v)).join(v===FormatTypes.full?", ":",")+") ",v!==FormatTypes.sighash&&this.anonymous&&(k+="anonymous "),k.trim()}static from(v){return typeof v=="string"?EventFragment.fromString(v):EventFragment.fromObject(v)}static fromObject(v){if(EventFragment.isEventFragment(v))return v;v.type!=="event"&&logger5.throwArgumentError("invalid event object","value",v);const k={name:verifyIdentifier(v.name),anonymous:v.anonymous,inputs:v.inputs?v.inputs.map(ParamType.fromObject):[],type:"event"};return new EventFragment(_constructorGuard3,k)}static fromString(v){let k=v.match(regexParen);k||logger5.throwArgumentError("invalid event string","value",v);let ie=!1;return k[3].split(" ").forEach(ae=>{switch(ae.trim()){case"anonymous":ie=!0;break;case"":break;default:logger5.warn("unknown modifier: "+ae)}}),EventFragment.fromObject({name:k[1].trim(),anonymous:ie,inputs:parseParams(k[2],!0),type:"event"})}static isEventFragment(v){return v&&v._isFragment&&v.type==="event"}};function parseGas(v,k){k.gas=null;let ie=v.split("@");return ie.length!==1?(ie.length>2&&logger5.throwArgumentError("invalid human-readable ABI signature","value",v),ie[1].match(/^[0-9]+$/)||logger5.throwArgumentError("invalid human-readable ABI signature gas","value",v),k.gas=BigNumber.from(ie[1]),ie[0]):v}function parseModifiers(v,k){k.constant=!1,k.payable=!1,k.stateMutability="nonpayable",v.split(" ").forEach(ie=>{switch(ie.trim()){case"constant":k.constant=!0;break;case"payable":k.payable=!0,k.stateMutability="payable";break;case"nonpayable":k.payable=!1,k.stateMutability="nonpayable";break;case"pure":k.constant=!0,k.stateMutability="pure";break;case"view":k.constant=!0,k.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+ie)}})}function verifyState(v){let k={constant:!1,payable:!0,stateMutability:"payable"};return v.stateMutability!=null?(k.stateMutability=v.stateMutability,k.constant=k.stateMutability==="view"||k.stateMutability==="pure",v.constant!=null&&!!v.constant!==k.constant&&logger5.throwArgumentError("cannot have constant function with mutability "+k.stateMutability,"value",v),k.payable=k.stateMutability==="payable",v.payable!=null&&!!v.payable!==k.payable&&logger5.throwArgumentError("cannot have payable function with mutability "+k.stateMutability,"value",v)):v.payable!=null?(k.payable=!!v.payable,v.constant==null&&!k.payable&&v.type!=="constructor"&&logger5.throwArgumentError("unable to determine stateMutability","value",v),k.constant=!!v.constant,k.constant?k.stateMutability="view":k.stateMutability=k.payable?"payable":"nonpayable",k.payable&&k.constant&&logger5.throwArgumentError("cannot have constant payable function","value",v)):v.constant!=null?(k.constant=!!v.constant,k.payable=!k.constant,k.stateMutability=k.constant?"view":"payable"):v.type!=="constructor"&&logger5.throwArgumentError("unable to determine stateMutability","value",v),k}var ConstructorFragment=class extends Fragment{format(v){if(v||(v=FormatTypes.sighash),FormatTypes[v]||logger5.throwArgumentError("invalid format type","format",v),v===FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(ie=>JSON.parse(ie.format(v)))});v===FormatTypes.sighash&&logger5.throwError("cannot format a constructor for sighash",Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let k="constructor("+this.inputs.map(ie=>ie.format(v)).join(v===FormatTypes.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(k+=this.stateMutability+" "),k.trim()}static from(v){return typeof v=="string"?ConstructorFragment.fromString(v):ConstructorFragment.fromObject(v)}static fromObject(v){if(ConstructorFragment.isConstructorFragment(v))return v;v.type!=="constructor"&&logger5.throwArgumentError("invalid constructor object","value",v);let k=verifyState(v);k.constant&&logger5.throwArgumentError("constructor cannot be constant","value",v);const ie={name:null,type:v.type,inputs:v.inputs?v.inputs.map(ParamType.fromObject):[],payable:k.payable,stateMutability:k.stateMutability,gas:v.gas?BigNumber.from(v.gas):null};return new ConstructorFragment(_constructorGuard3,ie)}static fromString(v){let k={type:"constructor"};v=parseGas(v,k);let ie=v.match(regexParen);return(!ie||ie[1].trim()!=="constructor")&&logger5.throwArgumentError("invalid constructor string","value",v),k.inputs=parseParams(ie[2].trim(),!1),parseModifiers(ie[3].trim(),k),ConstructorFragment.fromObject(k)}static isConstructorFragment(v){return v&&v._isFragment&&v.type==="constructor"}},FunctionFragment=class extends ConstructorFragment{format(v){if(v||(v=FormatTypes.sighash),FormatTypes[v]||logger5.throwArgumentError("invalid format type","format",v),v===FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(ie=>JSON.parse(ie.format(v))),outputs:this.outputs.map(ie=>JSON.parse(ie.format(v)))});let k="";return v!==FormatTypes.sighash&&(k+="function "),k+=this.name+"("+this.inputs.map(ie=>ie.format(v)).join(v===FormatTypes.full?", ":",")+") ",v!==FormatTypes.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(k+=this.stateMutability+" "):this.constant&&(k+="view "),this.outputs&&this.outputs.length&&(k+="returns ("+this.outputs.map(ie=>ie.format(v)).join(", ")+") "),this.gas!=null&&(k+="@"+this.gas.toString()+" ")),k.trim()}static from(v){return typeof v=="string"?FunctionFragment.fromString(v):FunctionFragment.fromObject(v)}static fromObject(v){if(FunctionFragment.isFunctionFragment(v))return v;v.type!=="function"&&logger5.throwArgumentError("invalid function object","value",v);let k=verifyState(v);const ie={type:v.type,name:verifyIdentifier(v.name),constant:k.constant,inputs:v.inputs?v.inputs.map(ParamType.fromObject):[],outputs:v.outputs?v.outputs.map(ParamType.fromObject):[],payable:k.payable,stateMutability:k.stateMutability,gas:v.gas?BigNumber.from(v.gas):null};return new FunctionFragment(_constructorGuard3,ie)}static fromString(v){let k={type:"function"};v=parseGas(v,k);let ie=v.split(" returns ");ie.length>2&&logger5.throwArgumentError("invalid function string","value",v);let ae=ie[0].match(regexParen);if(ae||logger5.throwArgumentError("invalid function signature","value",v),k.name=ae[1].trim(),k.name&&verifyIdentifier(k.name),k.inputs=parseParams(ae[2],!1),parseModifiers(ae[3].trim(),k),ie.length>1){let ce=ie[1].match(regexParen);(ce[1].trim()!=""||ce[3].trim()!="")&&logger5.throwArgumentError("unexpected tokens","value",v),k.outputs=parseParams(ce[2],!1)}else k.outputs=[];return FunctionFragment.fromObject(k)}static isFunctionFragment(v){return v&&v._isFragment&&v.type==="function"}};function checkForbidden(v){const k=v.format();return(k==="Error(string)"||k==="Panic(uint256)")&&logger5.throwArgumentError(`cannot specify user defined ${k} error`,"fragment",v),v}var ErrorFragment=class extends Fragment{format(v){if(v||(v=FormatTypes.sighash),FormatTypes[v]||logger5.throwArgumentError("invalid format type","format",v),v===FormatTypes.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(ie=>JSON.parse(ie.format(v)))});let k="";return v!==FormatTypes.sighash&&(k+="error "),k+=this.name+"("+this.inputs.map(ie=>ie.format(v)).join(v===FormatTypes.full?", ":",")+") ",k.trim()}static from(v){return typeof v=="string"?ErrorFragment.fromString(v):ErrorFragment.fromObject(v)}static fromObject(v){if(ErrorFragment.isErrorFragment(v))return v;v.type!=="error"&&logger5.throwArgumentError("invalid error object","value",v);const k={type:v.type,name:verifyIdentifier(v.name),inputs:v.inputs?v.inputs.map(ParamType.fromObject):[]};return checkForbidden(new ErrorFragment(_constructorGuard3,k))}static fromString(v){let k={type:"error"},ie=v.match(regexParen);return ie||logger5.throwArgumentError("invalid error signature","value",v),k.name=ie[1].trim(),k.name&&verifyIdentifier(k.name),k.inputs=parseParams(ie[2],!1),checkForbidden(ErrorFragment.fromObject(k))}static isErrorFragment(v){return v&&v._isFragment&&v.type==="error"}};function verifyType(v){return v.match(/^uint($|[^1-9])/)?v="uint256"+v.substring(4):v.match(/^int($|[^1-9])/)&&(v="int256"+v.substring(3)),v}var regexIdentifier=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function verifyIdentifier(v){return(!v||!v.match(regexIdentifier))&&logger5.throwArgumentError(`invalid identifier "${v}"`,"value",v),v}var regexParen=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function splitNesting(v){v=v.trim();let k=[],ie="",ae=0;for(let ce=0;cethis.wordSize&&logger6.throwError("value out-of-bounds",Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:k.length}),k.length%this.wordSize&&(k=concat$4([this._padding.slice(k.length%this.wordSize),k])),k}writeValue(v){return this._writeData(this._getValue(v))}writeUpdatableValue(){const v=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,k=>{this._data[v]=this._getValue(k)}}},Reader=class{constructor(v,k,ie,ae){defineReadOnly(this,"_data",arrayify(v)),defineReadOnly(this,"wordSize",k||32),defineReadOnly(this,"_coerceFunc",ie),defineReadOnly(this,"allowLoose",ae),this._offset=0}get data(){return hexlify(this._data)}get consumed(){return this._offset}static coerce(v,k){let ie=v.match("^u?int([0-9]+)$");return ie&&parseInt(ie[1])<=48&&(k=k.toNumber()),k}coerce(v,k){return this._coerceFunc?this._coerceFunc(v,k):Reader.coerce(v,k)}_peekBytes(v,k,ie){let ae=Math.ceil(k/this.wordSize)*this.wordSize;return this._offset+ae>this._data.length&&(this.allowLoose&&ie&&this._offset+k<=this._data.length?ae=k:logger6.throwError("data out-of-bounds",Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+ae})),this._data.slice(this._offset,this._offset+ae)}subReader(v){return new Reader(this._data.slice(this._offset+v),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(v,k){let ie=this._peekBytes(0,v,!!k);return this._offset+=ie.length,ie.slice(0,v)}readValue(){return BigNumber.from(this.readBytes(this.wordSize))}},import_js_sha3=__toESM(require_sha3());function keccak256(v){return"0x"+import_js_sha3.default.keccak_256(arrayify(v))}var lib_exports={};__export$1(lib_exports,{decode:()=>decode,encode:()=>encode});var version6="rlp/5.7.0",logger7=new Logger(version6);function arrayifyInteger(v){const k=[];for(;v;)k.unshift(v&255),v>>=8;return k}function unarrayifyInteger(v,k,ie){let ae=0;for(let ce=0;cek+1+ae&&logger7.throwError("child data too short",Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+ae,result:ce}}function _decode(v,k){if(v.length===0&&logger7.throwError("data too short",Logger.errors.BUFFER_OVERRUN,{}),v[k]>=248){const ie=v[k]-247;k+1+ie>v.length&&logger7.throwError("data short segment too short",Logger.errors.BUFFER_OVERRUN,{});const ae=unarrayifyInteger(v,k+1,ie);return k+1+ie+ae>v.length&&logger7.throwError("data long segment too short",Logger.errors.BUFFER_OVERRUN,{}),_decodeChildren(v,k,k+1+ie,ie+ae)}else if(v[k]>=192){const ie=v[k]-192;return k+1+ie>v.length&&logger7.throwError("data array too short",Logger.errors.BUFFER_OVERRUN,{}),_decodeChildren(v,k,k+1,ie)}else if(v[k]>=184){const ie=v[k]-183;k+1+ie>v.length&&logger7.throwError("data array too short",Logger.errors.BUFFER_OVERRUN,{});const ae=unarrayifyInteger(v,k+1,ie);k+1+ie+ae>v.length&&logger7.throwError("data array too short",Logger.errors.BUFFER_OVERRUN,{});const ce=hexlify(v.slice(k+1+ie,k+1+ie+ae));return{consumed:1+ie+ae,result:ce}}else if(v[k]>=128){const ie=v[k]-128;k+1+ie>v.length&&logger7.throwError("data too short",Logger.errors.BUFFER_OVERRUN,{});const ae=hexlify(v.slice(k+1,k+1+ie));return{consumed:1+ie,result:ae}}return{consumed:1,result:hexlify(v[k])}}function decode(v){const k=arrayify(v),ie=_decode(k,0);return ie.consumed!==k.length&&logger7.throwArgumentError("invalid rlp data","data",v),ie.result}var version7="address/5.7.0",logger8=new Logger(version7);function getChecksumAddress(v){isHexString(v,20)||logger8.throwArgumentError("invalid address","address",v),v=v.toLowerCase();const k=v.substring(2).split(""),ie=new Uint8Array(40);for(let ce=0;ce<40;ce++)ie[ce]=k[ce].charCodeAt(0);const ae=arrayify(keccak256(ie));for(let ce=0;ce<40;ce+=2)ae[ce>>1]>>4>=8&&(k[ce]=k[ce].toUpperCase()),(ae[ce>>1]&15)>=8&&(k[ce+1]=k[ce+1].toUpperCase());return"0x"+k.join("")}var MAX_SAFE_INTEGER=9007199254740991;function log10(v){return Math.log10?Math.log10(v):Math.log(v)/Math.LN10}var ibanLookup={};for(let v=0;v<10;v++)ibanLookup[String(v)]=String(v);for(let v=0;v<26;v++)ibanLookup[String.fromCharCode(65+v)]=String(10+v);var safeDigits=Math.floor(log10(MAX_SAFE_INTEGER));function ibanChecksum(v){v=v.toUpperCase(),v=v.substring(4)+v.substring(0,2)+"00";let k=v.split("").map(ae=>ibanLookup[ae]).join("");for(;k.length>=safeDigits;){let ae=k.substring(0,safeDigits);k=parseInt(ae,10)%97+k.substring(ae.length)}let ie=String(98-parseInt(k,10)%97);for(;ie.length<2;)ie="0"+ie;return ie}function getAddress(v){let k=null;if(typeof v!="string"&&logger8.throwArgumentError("invalid address","address",v),v.match(/^(0x)?[0-9a-fA-F]{40}$/))v.substring(0,2)!=="0x"&&(v="0x"+v),k=getChecksumAddress(v),v.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&k!==v&&logger8.throwArgumentError("bad address checksum","address",v);else if(v.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(v.substring(2,4)!==ibanChecksum(v)&&logger8.throwArgumentError("bad icap checksum","address",v),k=_base36To16(v.substring(4));k.length<40;)k="0"+k;k=getChecksumAddress("0x"+k)}else logger8.throwArgumentError("invalid address","address",v);return k}function isAddress(v){try{return getAddress(v),!0}catch{}return!1}function getIcapAddress(v){let k=_base16To36(getAddress(v).substring(2)).toUpperCase();for(;k.length<30;)k="0"+k;return"XE"+ibanChecksum("XE00"+k)+k}function getContractAddress(v){let k=null;try{k=getAddress(v.from)}catch{logger8.throwArgumentError("missing from address","transaction",v)}const ie=stripZeros(arrayify(BigNumber.from(v.nonce).toHexString()));return getAddress(hexDataSlice(keccak256(encode([k,ie])),12))}function getCreate2Address(v,k,ie){return hexDataLength(k)!==32&&logger8.throwArgumentError("salt must be 32 bytes","salt",k),hexDataLength(ie)!==32&&logger8.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",ie),getAddress(hexDataSlice(keccak256(concat$4(["0xff",getAddress(v),k,ie])),12))}var AddressCoder=class extends Coder{constructor(v){super("address","address",v,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(v,k){try{k=getAddress(k)}catch(ie){this._throwError(ie.message,k)}return v.writeValue(k)}decode(v){return getAddress(hexZeroPad(v.readValue().toHexString(),20))}},AnonymousCoder=class extends Coder{constructor(v){super(v.name,v.type,void 0,v.dynamic),this.coder=v}defaultValue(){return this.coder.defaultValue()}encode(v,k){return this.coder.encode(v,k)}decode(v){return this.coder.decode(v)}},logger9=new Logger(version5);function pack$1(v,k,ie){let ae=null;if(Array.isArray(ie))ae=ie;else if(ie&&typeof ie=="object"){let pe={};ae=k.map(ye=>{const me=ye.localName;return me||logger9.throwError("cannot encode object for signature with missing names",Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:ye,value:ie}),pe[me]&&logger9.throwError("cannot encode object for signature with duplicate names",Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:ye,value:ie}),pe[me]=!0,ie[me]})}else logger9.throwArgumentError("invalid tuple value","tuple",ie);k.length!==ae.length&&logger9.throwArgumentError("types/value length mismatch","tuple",ie);let ce=new Writer(v.wordSize),fe=new Writer(v.wordSize),le=[];k.forEach((pe,ye)=>{let me=ae[ye];if(pe.dynamic){let Ee=fe.length;pe.encode(fe,me);let cr=ce.writeUpdatableValue();le.push(Br=>{cr(Br+Ee)})}else pe.encode(ce,me)}),le.forEach(pe=>{pe(ce.length)});let ve=v.appendWriter(ce);return ve+=v.appendWriter(fe),ve}function unpack$1(v,k){let ie=[],ae=v.subReader(0);k.forEach(fe=>{let le=null;if(fe.dynamic){let ve=v.readValue(),pe=ae.subReader(ve.toNumber());try{le=fe.decode(pe)}catch(ye){if(ye.code===Logger.errors.BUFFER_OVERRUN)throw ye;le=ye,le.baseType=fe.name,le.name=fe.localName,le.type=fe.type}}else try{le=fe.decode(v)}catch(ve){if(ve.code===Logger.errors.BUFFER_OVERRUN)throw ve;le=ve,le.baseType=fe.name,le.name=fe.localName,le.type=fe.type}le!=null&&ie.push(le)});const ce=k.reduce((fe,le)=>{const ve=le.localName;return ve&&(fe[ve]||(fe[ve]=0),fe[ve]++),fe},{});k.forEach((fe,le)=>{let ve=fe.localName;if(!ve||ce[ve]!==1||(ve==="length"&&(ve="_length"),ie[ve]!=null))return;const pe=ie[le];pe instanceof Error?Object.defineProperty(ie,ve,{enumerable:!0,get:()=>{throw pe}}):ie[ve]=pe});for(let fe=0;fe{throw le}})}return Object.freeze(ie)}var ArrayCoder=class extends Coder{constructor(v,k,ie){const ae=v.type+"["+(k>=0?k:"")+"]",ce=k===-1||v.dynamic;super("array",ae,ie,ce),this.coder=v,this.length=k}defaultValue(){const v=this.coder.defaultValue(),k=[];for(let ie=0;iev._data.length&&logger9.throwError("insufficient data length",Logger.errors.BUFFER_OVERRUN,{length:v._data.length,count:k}));let ie=[];for(let ae=0;aeAddressZero,EtherSymbol:()=>EtherSymbol,HashZero:()=>HashZero,MaxInt256:()=>MaxInt256,MaxUint256:()=>MaxUint256,MinInt256:()=>MinInt256,NegativeOne:()=>NegativeOne2,One:()=>One,Two:()=>Two,WeiPerEther:()=>WeiPerEther,Zero:()=>Zero2});var AddressZero="0x0000000000000000000000000000000000000000",NegativeOne2=BigNumber.from(-1),Zero2=BigNumber.from(0),One=BigNumber.from(1),Two=BigNumber.from(2),WeiPerEther=BigNumber.from("1000000000000000000"),MaxUint256=BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),MinInt256=BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),MaxInt256=BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),HashZero="0x0000000000000000000000000000000000000000000000000000000000000000",EtherSymbol="\u039E",NumberCoder=class extends Coder{constructor(v,k,ie){const ae=(k?"int":"uint")+v*8;super(ae,ae,ie,!1),this.size=v,this.signed=k}defaultValue(){return 0}encode(v,k){let ie=BigNumber.from(k),ae=MaxUint256.mask(v.wordSize*8);if(this.signed){let ce=ae.mask(this.size*8-1);(ie.gt(ce)||ie.lt(ce.add(One).mul(NegativeOne2)))&&this._throwError("value out-of-bounds",k)}else(ie.lt(Zero2)||ie.gt(ae.mask(this.size*8)))&&this._throwError("value out-of-bounds",k);return ie=ie.toTwos(this.size*8).mask(this.size*8),this.signed&&(ie=ie.fromTwos(this.size*8).toTwos(8*v.wordSize)),v.writeValue(ie)}decode(v){let k=v.readValue().mask(this.size*8);return this.signed&&(k=k.fromTwos(this.size*8)),v.coerce(this.name,k)}},version8="strings/5.7.0",logger10=new Logger(version8),UnicodeNormalizationForm;(function(v){v.current="",v.NFC="NFC",v.NFD="NFD",v.NFKC="NFKC",v.NFKD="NFKD"})(UnicodeNormalizationForm||(UnicodeNormalizationForm={}));var Utf8ErrorReason;(function(v){v.UNEXPECTED_CONTINUE="unexpected continuation byte",v.BAD_PREFIX="bad codepoint prefix",v.OVERRUN="string overrun",v.MISSING_CONTINUE="missing continuation byte",v.OUT_OF_RANGE="out of UTF-8 range",v.UTF16_SURROGATE="UTF-16 surrogate",v.OVERLONG="overlong representation"})(Utf8ErrorReason||(Utf8ErrorReason={}));function errorFunc(v,k,ie,ae,ce){return logger10.throwArgumentError(`invalid codepoint at offset ${k}; ${v}`,"bytes",ie)}function ignoreFunc(v,k,ie,ae,ce){if(v===Utf8ErrorReason.BAD_PREFIX||v===Utf8ErrorReason.UNEXPECTED_CONTINUE){let fe=0;for(let le=k+1;le>6===2;le++)fe++;return fe}return v===Utf8ErrorReason.OVERRUN?ie.length-k-1:0}function replaceFunc(v,k,ie,ae,ce){return v===Utf8ErrorReason.OVERLONG?(ae.push(ce),0):(ae.push(65533),ignoreFunc(v,k,ie))}var Utf8ErrorFuncs=Object.freeze({error:errorFunc,ignore:ignoreFunc,replace:replaceFunc});function getUtf8CodePoints(v,k){k==null&&(k=Utf8ErrorFuncs.error),v=arrayify(v);const ie=[];let ae=0;for(;ae>7===0){ie.push(ce);continue}let fe=null,le=null;if((ce&224)===192)fe=1,le=127;else if((ce&240)===224)fe=2,le=2047;else if((ce&248)===240)fe=3,le=65535;else{(ce&192)===128?ae+=k(Utf8ErrorReason.UNEXPECTED_CONTINUE,ae-1,v,ie):ae+=k(Utf8ErrorReason.BAD_PREFIX,ae-1,v,ie);continue}if(ae-1+fe>=v.length){ae+=k(Utf8ErrorReason.OVERRUN,ae-1,v,ie);continue}let ve=ce&(1<<8-fe-1)-1;for(let pe=0;pe1114111){ae+=k(Utf8ErrorReason.OUT_OF_RANGE,ae-1-fe,v,ie,ve);continue}if(ve>=55296&&ve<=57343){ae+=k(Utf8ErrorReason.UTF16_SURROGATE,ae-1-fe,v,ie,ve);continue}if(ve<=le){ae+=k(Utf8ErrorReason.OVERLONG,ae-1-fe,v,ie,ve);continue}ie.push(ve)}}return ie}function toUtf8Bytes(v,k=UnicodeNormalizationForm.current){k!=UnicodeNormalizationForm.current&&(logger10.checkNormalize(),v=v.normalize(k));let ie=[];for(let ae=0;ae>6|192),ie.push(ce&63|128);else if((ce&64512)==55296){ae++;const fe=v.charCodeAt(ae);if(ae>=v.length||(fe&64512)!==56320)throw new Error("invalid utf-8 string");const le=65536+((ce&1023)<<10)+(fe&1023);ie.push(le>>18|240),ie.push(le>>12&63|128),ie.push(le>>6&63|128),ie.push(le&63|128)}else ie.push(ce>>12|224),ie.push(ce>>6&63|128),ie.push(ce&63|128)}return arrayify(ie)}function escapeChar(v){const k="0000"+v.toString(16);return"\\u"+k.substring(k.length-4)}function _toEscapedUtf8String(v,k){return'"'+getUtf8CodePoints(v,k).map(ie=>{if(ie<256){switch(ie){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(ie>=32&&ie<127)return String.fromCharCode(ie)}return ie<=65535?escapeChar(ie):(ie-=65536,escapeChar((ie>>10&1023)+55296)+escapeChar((ie&1023)+56320))}).join("")+'"'}function _toUtf8String(v){return v.map(k=>k<=65535?String.fromCharCode(k):(k-=65536,String.fromCharCode((k>>10&1023)+55296,(k&1023)+56320))).join("")}function toUtf8String(v,k){return _toUtf8String(getUtf8CodePoints(v,k))}function toUtf8CodePoints(v,k=UnicodeNormalizationForm.current){return getUtf8CodePoints(toUtf8Bytes(v,k))}function formatBytes32String(v){const k=toUtf8Bytes(v);if(k.length>31)throw new Error("bytes32 string must be less than 32 bytes");return hexlify(concat$4([k,HashZero]).slice(0,32))}function parseBytes32String(v){const k=arrayify(v);if(k.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(k[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let ie=31;for(;k[ie-1]===0;)ie--;return toUtf8String(k.slice(0,ie))}function bytes2(v){if(v.length%4!==0)throw new Error("bad data");let k=[];for(let ie=0;ie{let fe=ce.split(":");ie+=parseInt(fe[0],16),ae[ie]=k(fe[1])}),ae}function createRangeTable(v){let k=0;return v.split(",").map(ie=>{let ae=ie.split("-");ae.length===1?ae[1]="0":ae[1]===""&&(ae[1]="1");let ce=k+parseInt(ae[0],16);return k=parseInt(ae[1],16),{l:ce,h:k}})}function matchMap(v,k){let ie=0;for(let ae=0;ae=ie&&v<=ie+ce.h&&(v-ie)%(ce.d||1)===0){if(ce.e&&ce.e.indexOf(v-ie)!==-1)continue;return ce}}return null}var Table_A_1_ranges=createRangeTable("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),Table_B_1_flags="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(v=>parseInt(v,16)),Table_B_2_ranges=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],Table_B_2_lut_abs=createTable("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),Table_B_2_lut_rel=createTable("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),Table_B_2_complex=createTable("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",bytes2),Table_C_ranges=createRangeTable("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function flatten(v){return v.reduce((k,ie)=>(ie.forEach(ae=>{k.push(ae)}),k),[])}function _nameprepTableA1(v){return!!matchMap(v,Table_A_1_ranges)}function _nameprepTableB2(v){let k=matchMap(v,Table_B_2_ranges);if(k)return[v+k.s];let ie=Table_B_2_lut_abs[v];if(ie)return ie;let ae=Table_B_2_lut_rel[v];if(ae)return[v+ae[0]];let ce=Table_B_2_complex[v];return ce||null}function _nameprepTableC(v){return!!matchMap(v,Table_C_ranges)}function nameprep(v){if(v.match(/^[a-z0-9-]*$/i)&&v.length<=59)return v.toLowerCase();let k=toUtf8CodePoints(v);k=flatten(k.map(ae=>{if(Table_B_1_flags.indexOf(ae)>=0)return[];if(ae>=65024&&ae<=65039)return[];let ce=_nameprepTableB2(ae);return ce||[ae]})),k=toUtf8CodePoints(_toUtf8String(k),UnicodeNormalizationForm.NFKC),k.forEach(ae=>{if(_nameprepTableC(ae))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),k.forEach(ae=>{if(_nameprepTableA1(ae))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});let ie=_toUtf8String(k);if(ie.substring(0,1)==="-"||ie.substring(2,4)==="--"||ie.substring(ie.length-1)==="-")throw new Error("invalid hyphen");return ie}var StringCoder=class extends DynamicBytesCoder{constructor(v){super("string",v)}defaultValue(){return""}encode(v,k){return super.encode(v,toUtf8Bytes(k))}decode(v){return toUtf8String(super.decode(v))}},TupleCoder=class extends Coder{constructor(v,k){let ie=!1;const ae=[];v.forEach(fe=>{fe.dynamic&&(ie=!0),ae.push(fe.type)});const ce="tuple("+ae.join(",")+")";super("tuple",ce,k,ie),this.coders=v}defaultValue(){const v=[];this.coders.forEach(ie=>{v.push(ie.defaultValue())});const k=this.coders.reduce((ie,ae)=>{const ce=ae.localName;return ce&&(ie[ce]||(ie[ce]=0),ie[ce]++),ie},{});return this.coders.forEach((ie,ae)=>{let ce=ie.localName;!ce||k[ce]!==1||(ce==="length"&&(ce="_length"),v[ce]==null&&(v[ce]=v[ae]))}),Object.freeze(v)}encode(v,k){return pack$1(v,this.coders,k)}decode(v){return v.coerce(this.name,unpack$1(v,this.coders))}},logger11=new Logger(version5),paramTypeBytes=new RegExp(/^bytes([0-9]*)$/),paramTypeNumber=new RegExp(/^(u?int)([0-9]*)$/),AbiCoder=class{constructor(v){defineReadOnly(this,"coerceFunc",v||null)}_getCoder(v){switch(v.baseType){case"address":return new AddressCoder(v.name);case"bool":return new BooleanCoder(v.name);case"string":return new StringCoder(v.name);case"bytes":return new BytesCoder(v.name);case"array":return new ArrayCoder(this._getCoder(v.arrayChildren),v.arrayLength,v.name);case"tuple":return new TupleCoder((v.components||[]).map(ie=>this._getCoder(ie)),v.name);case"":return new NullCoder(v.name)}let k=v.type.match(paramTypeNumber);if(k){let ie=parseInt(k[2]||"256");return(ie===0||ie>256||ie%8!==0)&&logger11.throwArgumentError("invalid "+k[1]+" bit length","param",v),new NumberCoder(ie/8,k[1]==="int",v.name)}if(k=v.type.match(paramTypeBytes),k){let ie=parseInt(k[1]);return(ie===0||ie>32)&&logger11.throwArgumentError("invalid bytes length","param",v),new FixedBytesCoder(ie,v.name)}return logger11.throwArgumentError("invalid type","type",v.type)}_getWordSize(){return 32}_getReader(v,k){return new Reader(v,this._getWordSize(),this.coerceFunc,k)}_getWriter(){return new Writer(this._getWordSize())}getDefaultValue(v){const k=v.map(ae=>this._getCoder(ParamType.from(ae)));return new TupleCoder(k,"_").defaultValue()}encode(v,k){v.length!==k.length&&logger11.throwError("types/values length mismatch",Logger.errors.INVALID_ARGUMENT,{count:{types:v.length,values:k.length},value:{types:v,values:k}});const ie=v.map(fe=>this._getCoder(ParamType.from(fe))),ae=new TupleCoder(ie,"_"),ce=this._getWriter();return ae.encode(ce,k),ce.data}decode(v,k,ie){const ae=v.map(fe=>this._getCoder(ParamType.from(fe)));return new TupleCoder(ae,"_").decode(this._getReader(arrayify(k),ie))}},defaultAbiCoder=new AbiCoder;function id$5(v){return keccak256(toUtf8Bytes(v))}var version9="hash/5.7.0",lib_exports3={};__export$1(lib_exports3,{decode:()=>decode2,encode:()=>encode2});function decode2(v){v=atob(v);const k=[];for(let ie=0;ie0&&Array.isArray(ve)?ce(ve,le-1):ie.push(ve)})};return ce(v,k),ie}function fromEntries(v){const k={};for(let ie=0;ie>--pe&1}const Ee=31,cr=Math.pow(2,Ee),Br=cr>>>1,$r=Br>>1,Pr=cr-1;let Ar=0;for(let Vr=0;Vr1;){let Yt=Gr+Ur>>>1;Vr>>1|me(),Qr=Qr<<1^Br,hn=(hn^Br)<<1|Br|1;jr=Qr,Mr=1+hn-Qr}let Lr=ae-4;return ur.map(Vr=>{switch(Vr-Lr){case 3:return Lr+65792+(v[ve++]<<16|v[ve++]<<8|v[ve++]);case 2:return Lr+256+(v[ve++]<<8|v[ve++]);case 1:return Lr+v[ve++];default:return Vr-1}})}function read_payload(v){let k=0;return()=>v[k++]}function read_compressed_payload(v){return read_payload(decode_arithmetic(v))}function signed(v){return v&1?~v>>1:v>>1}function read_counts(v,k){let ie=Array(v);for(let ae=0;aek[le]):ie}function read_mapped_map(v){let k=[];for(;;){let ie=v();if(ie==0)break;k.push(read_linear_table(ie,v))}for(;;){let ie=v()-1;if(ie<0)break;k.push(read_replacement_table(ie,v))}return fromEntries(flat(k))}function read_zero_terminated_array(v){let k=[];for(;;){let ie=v();if(ie==0)break;k.push(ie)}return k}function read_transposed(v,k,ie){let ae=Array(v).fill(void 0).map(()=>[]);for(let ce=0;ceae[le].push(fe));return ae}function read_linear_table(v,k){let ie=1+k(),ae=k(),ce=read_zero_terminated_array(k),fe=read_transposed(ce.length,1+v,k);return flat(fe.map((le,ve)=>{const pe=le[0],ye=le.slice(1);return Array(ce[ve]).fill(void 0).map((me,Ee)=>{let cr=Ee*ae;return[pe+Ee*ie,ye.map(Br=>Br+cr)]})}))}function read_replacement_table(v,k){let ie=1+k();return read_transposed(ie,1+v,k).map(ce=>[ce[0],ce.slice(1)])}function read_emoji_trie(v){let k=read_member_array(v).sort((ae,ce)=>ae-ce);return ie();function ie(){let ae=[];for(;;){let ye=read_member_array(v,k);if(ye.length==0)break;ae.push({set:new Set(ye),node:ie()})}ae.sort((ye,me)=>me.set.size-ye.set.size);let ce=v(),fe=ce%3;ce=ce/3|0;let le=!!(ce&1);ce>>=1;let ve=ce==1,pe=ce==2;return{branches:ae,valid:fe,fe0f:le,save:ve,check:pe}}}function getData(){return read_compressed_payload(decode2("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+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1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}var r=getData(),VALID=new Set(read_member_array(r)),IGNORED=new Set(read_member_array(r)),MAPPED=read_mapped_map(r),EMOJI_ROOT=read_emoji_trie(r),HYPHEN=45,UNDERSCORE=95;function explode_cp(v){return toUtf8CodePoints(v)}function filter_fe0f(v){return v.filter(k=>k!=65039)}function ens_normalize_post_check(v){for(let k of v.split(".")){let ie=explode_cp(k);try{for(let ae=ie.lastIndexOf(UNDERSCORE)-1;ae>=0;ae--)if(ie[ae]!==UNDERSCORE)throw new Error("underscore only allowed at start");if(ie.length>=4&&ie.every(ae=>ae<128)&&ie[2]===HYPHEN&&ie[3]===HYPHEN)throw new Error("invalid label extension")}catch(ae){throw new Error(`Invalid label "${k}": ${ae.message}`)}}return v}function ens_normalize(v){return ens_normalize_post_check(normalize$3(v,filter_fe0f))}function normalize$3(v,k){let ie=explode_cp(v).reverse(),ae=[];for(;ie.length;){let ce=consume_emoji_reversed(ie);if(ce){ae.push(...k(ce));continue}let fe=ie.pop();if(VALID.has(fe)){ae.push(fe);continue}if(IGNORED.has(fe))continue;let le=MAPPED[fe];if(le){ae.push(...le);continue}throw new Error(`Disallowed codepoint: 0x${fe.toString(16).toUpperCase()}`)}return ens_normalize_post_check(nfc(String.fromCodePoint(...ae)))}function nfc(v){return v.normalize("NFC")}function consume_emoji_reversed(v,k){var ie;let ae=EMOJI_ROOT,ce,fe,le=[],ve=v.length;for(k&&(k.length=0);ve;){let pe=v[--ve];if(ae=(ie=ae.branches.find(ye=>ye.set.has(pe)))===null||ie===void 0?void 0:ie.node,!ae)break;if(ae.save)fe=pe;else if(ae.check&&pe===fe)break;le.push(pe),ae.fe0f&&(le.push(65039),ve>0&&v[ve-1]==65039&&ve--),ae.valid&&(ce=le.slice(),ae.valid==2&&ce.splice(1,1),k&&k.push(...v.slice(ve).reverse()),v.length=ve)}return ce}var logger12=new Logger(version9),Zeros=new Uint8Array(32);Zeros.fill(0);function checkComponent(v){if(v.length===0)throw new Error("invalid ENS name; empty component");return v}function ensNameSplit(v){const k=toUtf8Bytes(ens_normalize(v)),ie=[];if(v.length===0)return ie;let ae=0;for(let ce=0;ce=k.length)throw new Error("invalid ENS name; empty component");return ie.push(checkComponent(k.slice(ae))),ie}function isValidName(v){try{return ensNameSplit(v).length!==0}catch{}return!1}function namehash(v){typeof v!="string"&&logger12.throwArgumentError("invalid ENS name; not a string","name",v);let k=Zeros;const ie=ensNameSplit(v);for(;ie.length;)k=keccak256(concat$4([k,keccak256(ie.pop())]));return hexlify(k)}function dnsEncode(v){return hexlify(concat$4(ensNameSplit(v).map(k=>{if(k.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const ie=new Uint8Array(k.length+1);return ie.set(k,1),ie[0]=ie.length-1,ie})))+"00"}var messagePrefix=`Ethereum Signed Message: +`;function hashMessage(v){return typeof v=="string"&&(v=toUtf8Bytes(v)),keccak256(concat$4([toUtf8Bytes(messagePrefix),toUtf8Bytes(String(v.length)),v]))}var __awaiter2$1=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger13=new Logger(version9),padding=new Uint8Array(32);padding.fill(0);var NegativeOne3=BigNumber.from(-1),Zero3=BigNumber.from(0),One2=BigNumber.from(1),MaxUint2562=BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function hexPadRight(v){const k=arrayify(v),ie=k.length%32;return ie?hexConcat([k,padding.slice(ie)]):hexlify(k)}var hexTrue=hexZeroPad(One2.toHexString(),32),hexFalse=hexZeroPad(Zero3.toHexString(),32),domainFieldTypes={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},domainFieldNames=["name","version","chainId","verifyingContract","salt"];function checkString(v){return function(k){return typeof k!="string"&&logger13.throwArgumentError(`invalid domain value for ${JSON.stringify(v)}`,`domain.${v}`,k),k}}var domainChecks={name:checkString("name"),version:checkString("version"),chainId:function(v){try{return BigNumber.from(v).toString()}catch{}return logger13.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",v)},verifyingContract:function(v){try{return getAddress(v).toLowerCase()}catch{}return logger13.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",v)},salt:function(v){try{const k=arrayify(v);if(k.length!==32)throw new Error("bad length");return hexlify(k)}catch{}return logger13.throwArgumentError('invalid domain value "salt"',"domain.salt",v)}};function getBaseEncoder(v){{const k=v.match(/^(u?)int(\d*)$/);if(k){const ie=k[1]==="",ae=parseInt(k[2]||"256");(ae%8!==0||ae>256||k[2]&&k[2]!==String(ae))&&logger13.throwArgumentError("invalid numeric width","type",v);const ce=MaxUint2562.mask(ie?ae-1:ae),fe=ie?ce.add(One2).mul(NegativeOne3):Zero3;return function(le){const ve=BigNumber.from(le);return(ve.lt(fe)||ve.gt(ce))&&logger13.throwArgumentError(`value out-of-bounds for ${v}`,"value",le),hexZeroPad(ve.toTwos(256).toHexString(),32)}}}{const k=v.match(/^bytes(\d+)$/);if(k){const ie=parseInt(k[1]);return(ie===0||ie>32||k[1]!==String(ie))&&logger13.throwArgumentError("invalid bytes width","type",v),function(ae){return arrayify(ae).length!==ie&&logger13.throwArgumentError(`invalid length for ${v}`,"value",ae),hexPadRight(ae)}}}switch(v){case"address":return function(k){return hexZeroPad(getAddress(k),32)};case"bool":return function(k){return k?hexTrue:hexFalse};case"bytes":return function(k){return keccak256(k)};case"string":return function(k){return id$5(k)}}return null}function encodeType(v,k){return`${v}(${k.map(({name:ie,type:ae})=>ae+" "+ie).join(",")})`}var TypedDataEncoder=class{constructor(v){defineReadOnly(this,"types",Object.freeze(deepCopy(v))),defineReadOnly(this,"_encoderCache",{}),defineReadOnly(this,"_types",{});const k={},ie={},ae={};Object.keys(v).forEach(le=>{k[le]={},ie[le]=[],ae[le]={}});for(const le in v){const ve={};v[le].forEach(pe=>{ve[pe.name]&&logger13.throwArgumentError(`duplicate variable name ${JSON.stringify(pe.name)} in ${JSON.stringify(le)}`,"types",v),ve[pe.name]=!0;const ye=pe.type.match(/^([^\x5b]*)(\x5b|$)/)[1];ye===le&&logger13.throwArgumentError(`circular type reference to ${JSON.stringify(ye)}`,"types",v),!getBaseEncoder(ye)&&(ie[ye]||logger13.throwArgumentError(`unknown type ${JSON.stringify(ye)}`,"types",v),ie[ye].push(le),k[le][ye]=!0)})}const ce=Object.keys(ie).filter(le=>ie[le].length===0);ce.length===0?logger13.throwArgumentError("missing primary type","types",v):ce.length>1&&logger13.throwArgumentError(`ambiguous primary types or unused types: ${ce.map(le=>JSON.stringify(le)).join(", ")}`,"types",v),defineReadOnly(this,"primaryType",ce[0]);function fe(le,ve){ve[le]&&logger13.throwArgumentError(`circular type reference to ${JSON.stringify(le)}`,"types",v),ve[le]=!0,Object.keys(k[le]).forEach(pe=>{!ie[pe]||(fe(pe,ve),Object.keys(ve).forEach(ye=>{ae[ye][pe]=!0}))}),delete ve[le]}fe(this.primaryType,{});for(const le in ae){const ve=Object.keys(ae[le]);ve.sort(),this._types[le]=encodeType(le,v[le])+ve.map(pe=>encodeType(pe,v[pe])).join("")}}getEncoder(v){let k=this._encoderCache[v];return k||(k=this._encoderCache[v]=this._getEncoder(v)),k}_getEncoder(v){{const ae=getBaseEncoder(v);if(ae)return ae}const k=v.match(/^(.*)(\x5b(\d*)\x5d)$/);if(k){const ae=k[1],ce=this.getEncoder(ae),fe=parseInt(k[3]);return le=>{fe>=0&&le.length!==fe&&logger13.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",le);let ve=le.map(ce);return this._types[ae]&&(ve=ve.map(keccak256)),keccak256(hexConcat(ve))}}const ie=this.types[v];if(ie){const ae=id$5(this._types[v]);return ce=>{const fe=ie.map(({name:le,type:ve})=>{const pe=this.getEncoder(ve)(ce[le]);return this._types[ve]?keccak256(pe):pe});return fe.unshift(ae),hexConcat(fe)}}return logger13.throwArgumentError(`unknown type: ${v}`,"type",v)}encodeType(v){const k=this._types[v];return k||logger13.throwArgumentError(`unknown type: ${JSON.stringify(v)}`,"name",v),k}encodeData(v,k){return this.getEncoder(v)(k)}hashStruct(v,k){return keccak256(this.encodeData(v,k))}encode(v){return this.encodeData(this.primaryType,v)}hash(v){return this.hashStruct(this.primaryType,v)}_visit(v,k,ie){if(getBaseEncoder(v))return ie(v,k);const ae=v.match(/^(.*)(\x5b(\d*)\x5d)$/);if(ae){const fe=ae[1],le=parseInt(ae[3]);return le>=0&&k.length!==le&&logger13.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",k),k.map(ve=>this._visit(fe,ve,ie))}const ce=this.types[v];return ce?ce.reduce((fe,{name:le,type:ve})=>(fe[le]=this._visit(ve,k[le],ie),fe),{}):logger13.throwArgumentError(`unknown type: ${v}`,"type",v)}visit(v,k){return this._visit(this.primaryType,v,k)}static from(v){return new TypedDataEncoder(v)}static getPrimaryType(v){return TypedDataEncoder.from(v).primaryType}static hashStruct(v,k,ie){return TypedDataEncoder.from(k).hashStruct(v,ie)}static hashDomain(v){const k=[];for(const ie in v){const ae=domainFieldTypes[ie];ae||logger13.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(ie)}`,"domain",v),k.push({name:ie,type:ae})}return k.sort((ie,ae)=>domainFieldNames.indexOf(ie.name)-domainFieldNames.indexOf(ae.name)),TypedDataEncoder.hashStruct("EIP712Domain",{EIP712Domain:k},v)}static encode(v,k,ie){return hexConcat(["0x1901",TypedDataEncoder.hashDomain(v),TypedDataEncoder.from(k).hash(ie)])}static hash(v,k,ie){return keccak256(TypedDataEncoder.encode(v,k,ie))}static resolveNames(v,k,ie,ae){return __awaiter2$1(this,void 0,void 0,function*(){v=shallowCopy(v);const ce={};v.verifyingContract&&!isHexString(v.verifyingContract,20)&&(ce[v.verifyingContract]="0x");const fe=TypedDataEncoder.from(k);fe.visit(ie,(le,ve)=>(le==="address"&&!isHexString(ve,20)&&(ce[ve]="0x"),ve));for(const le in ce)ce[le]=yield ae(le);return v.verifyingContract&&ce[v.verifyingContract]&&(v.verifyingContract=ce[v.verifyingContract]),ie=fe.visit(ie,(le,ve)=>le==="address"&&ce[ve]?ce[ve]:ve),{domain:v,value:ie}})}static getPayload(v,k,ie){TypedDataEncoder.hashDomain(v);const ae={},ce=[];domainFieldNames.forEach(ve=>{const pe=v[ve];pe!=null&&(ae[ve]=domainChecks[ve](pe),ce.push({name:ve,type:domainFieldTypes[ve]}))});const fe=TypedDataEncoder.from(k),le=shallowCopy(k);return le.EIP712Domain?logger13.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",k):le.EIP712Domain=ce,fe.encode(ie),{types:le,domain:ae,primaryType:fe.primaryType,message:fe.visit(ie,(ve,pe)=>{if(ve.match(/^bytes(\d*)/))return hexlify(arrayify(pe));if(ve.match(/^u?int/))return BigNumber.from(pe).toString();switch(ve){case"address":return pe.toLowerCase();case"bool":return!!pe;case"string":return typeof pe!="string"&&logger13.throwArgumentError("invalid string","value",pe),pe}return logger13.throwArgumentError("unsupported type","type",ve)})}}},logger14=new Logger(version5),LogDescription=class extends Description{},TransactionDescription=class extends Description{},ErrorDescription=class extends Description{},Indexed=class extends Description{static isIndexed(v){return!!(v&&v._isIndexed)}},BuiltinErrors={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function wrapAccessError(v,k){const ie=new Error(`deferred error during ABI decoding triggered accessing ${v}`);return ie.error=k,ie}var Interface=class{constructor(v){let k=[];typeof v=="string"?k=JSON.parse(v):k=v,defineReadOnly(this,"fragments",k.map(ie=>Fragment.from(ie)).filter(ie=>ie!=null)),defineReadOnly(this,"_abiCoder",getStatic(new.target,"getAbiCoder")()),defineReadOnly(this,"functions",{}),defineReadOnly(this,"errors",{}),defineReadOnly(this,"events",{}),defineReadOnly(this,"structs",{}),this.fragments.forEach(ie=>{let ae=null;switch(ie.type){case"constructor":if(this.deploy){logger14.warn("duplicate definition - constructor");return}defineReadOnly(this,"deploy",ie);return;case"function":ae=this.functions;break;case"event":ae=this.events;break;case"error":ae=this.errors;break;default:return}let ce=ie.format();if(ae[ce]){logger14.warn("duplicate definition - "+ce);return}ae[ce]=ie}),this.deploy||defineReadOnly(this,"deploy",ConstructorFragment.from({payable:!1,type:"constructor"})),defineReadOnly(this,"_isInterface",!0)}format(v){v||(v=FormatTypes.full),v===FormatTypes.sighash&&logger14.throwArgumentError("interface does not support formatting sighash","format",v);const k=this.fragments.map(ie=>ie.format(v));return v===FormatTypes.json?JSON.stringify(k.map(ie=>JSON.parse(ie))):k}static getAbiCoder(){return defaultAbiCoder}static getAddress(v){return getAddress(v)}static getSighash(v){return hexDataSlice(id$5(v.format()),0,4)}static getEventTopic(v){return id$5(v.format())}getFunction(v){if(isHexString(v)){for(const ie in this.functions)if(v===this.getSighash(ie))return this.functions[ie];logger14.throwArgumentError("no matching function","sighash",v)}if(v.indexOf("(")===-1){const ie=v.trim(),ae=Object.keys(this.functions).filter(ce=>ce.split("(")[0]===ie);return ae.length===0?logger14.throwArgumentError("no matching function","name",ie):ae.length>1&&logger14.throwArgumentError("multiple matching functions","name",ie),this.functions[ae[0]]}const k=this.functions[FunctionFragment.fromString(v).format()];return k||logger14.throwArgumentError("no matching function","signature",v),k}getEvent(v){if(isHexString(v)){const ie=v.toLowerCase();for(const ae in this.events)if(ie===this.getEventTopic(ae))return this.events[ae];logger14.throwArgumentError("no matching event","topichash",ie)}if(v.indexOf("(")===-1){const ie=v.trim(),ae=Object.keys(this.events).filter(ce=>ce.split("(")[0]===ie);return ae.length===0?logger14.throwArgumentError("no matching event","name",ie):ae.length>1&&logger14.throwArgumentError("multiple matching events","name",ie),this.events[ae[0]]}const k=this.events[EventFragment.fromString(v).format()];return k||logger14.throwArgumentError("no matching event","signature",v),k}getError(v){if(isHexString(v)){const ie=getStatic(this.constructor,"getSighash");for(const ae in this.errors){const ce=this.errors[ae];if(v===ie(ce))return this.errors[ae]}logger14.throwArgumentError("no matching error","sighash",v)}if(v.indexOf("(")===-1){const ie=v.trim(),ae=Object.keys(this.errors).filter(ce=>ce.split("(")[0]===ie);return ae.length===0?logger14.throwArgumentError("no matching error","name",ie):ae.length>1&&logger14.throwArgumentError("multiple matching errors","name",ie),this.errors[ae[0]]}const k=this.errors[FunctionFragment.fromString(v).format()];return k||logger14.throwArgumentError("no matching error","signature",v),k}getSighash(v){if(typeof v=="string")try{v=this.getFunction(v)}catch(k){try{v=this.getError(v)}catch{throw k}}return getStatic(this.constructor,"getSighash")(v)}getEventTopic(v){return typeof v=="string"&&(v=this.getEvent(v)),getStatic(this.constructor,"getEventTopic")(v)}_decodeParams(v,k){return this._abiCoder.decode(v,k)}_encodeParams(v,k){return this._abiCoder.encode(v,k)}encodeDeploy(v){return this._encodeParams(this.deploy.inputs,v||[])}decodeErrorResult(v,k){typeof v=="string"&&(v=this.getError(v));const ie=arrayify(k);return hexlify(ie.slice(0,4))!==this.getSighash(v)&&logger14.throwArgumentError(`data signature does not match error ${v.name}.`,"data",hexlify(ie)),this._decodeParams(v.inputs,ie.slice(4))}encodeErrorResult(v,k){return typeof v=="string"&&(v=this.getError(v)),hexlify(concat$4([this.getSighash(v),this._encodeParams(v.inputs,k||[])]))}decodeFunctionData(v,k){typeof v=="string"&&(v=this.getFunction(v));const ie=arrayify(k);return hexlify(ie.slice(0,4))!==this.getSighash(v)&&logger14.throwArgumentError(`data signature does not match function ${v.name}.`,"data",hexlify(ie)),this._decodeParams(v.inputs,ie.slice(4))}encodeFunctionData(v,k){return typeof v=="string"&&(v=this.getFunction(v)),hexlify(concat$4([this.getSighash(v),this._encodeParams(v.inputs,k||[])]))}decodeFunctionResult(v,k){typeof v=="string"&&(v=this.getFunction(v));let ie=arrayify(k),ae=null,ce="",fe=null,le=null,ve=null;switch(ie.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(v.outputs,ie)}catch{}break;case 4:{const pe=hexlify(ie.slice(0,4)),ye=BuiltinErrors[pe];if(ye)fe=this._abiCoder.decode(ye.inputs,ie.slice(4)),le=ye.name,ve=ye.signature,ye.reason&&(ae=fe[0]),le==="Error"?ce=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(fe[0])}`:le==="Panic"&&(ce=`; VM Exception while processing transaction: reverted with panic code ${fe[0]}`);else try{const me=this.getError(pe);fe=this._abiCoder.decode(me.inputs,ie.slice(4)),le=me.name,ve=me.format()}catch{}break}}return logger14.throwError("call revert exception"+ce,Logger.errors.CALL_EXCEPTION,{method:v.format(),data:hexlify(k),errorArgs:fe,errorName:le,errorSignature:ve,reason:ae})}encodeFunctionResult(v,k){return typeof v=="string"&&(v=this.getFunction(v)),hexlify(this._abiCoder.encode(v.outputs,k||[]))}encodeFilterTopics(v,k){typeof v=="string"&&(v=this.getEvent(v)),k.length>v.inputs.length&&logger14.throwError("too many arguments for "+v.format(),Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:k});let ie=[];v.anonymous||ie.push(this.getEventTopic(v));const ae=(ce,fe)=>ce.type==="string"?id$5(fe):ce.type==="bytes"?keccak256(hexlify(fe)):(ce.type==="bool"&&typeof fe=="boolean"&&(fe=fe?"0x01":"0x00"),ce.type.match(/^u?int/)&&(fe=BigNumber.from(fe).toHexString()),ce.type==="address"&&this._abiCoder.encode(["address"],[fe]),hexZeroPad(hexlify(fe),32));for(k.forEach((ce,fe)=>{let le=v.inputs[fe];if(!le.indexed){ce!=null&&logger14.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+le.name,ce);return}ce==null?ie.push(null):le.baseType==="array"||le.baseType==="tuple"?logger14.throwArgumentError("filtering with tuples or arrays not supported","contract."+le.name,ce):Array.isArray(ce)?ie.push(ce.map(ve=>ae(le,ve))):ie.push(ae(le,ce))});ie.length&&ie[ie.length-1]===null;)ie.pop();return ie}encodeEventLog(v,k){typeof v=="string"&&(v=this.getEvent(v));const ie=[],ae=[],ce=[];return v.anonymous||ie.push(this.getEventTopic(v)),k.length!==v.inputs.length&&logger14.throwArgumentError("event arguments/values mismatch","values",k),v.inputs.forEach((fe,le)=>{const ve=k[le];if(fe.indexed)if(fe.type==="string")ie.push(id$5(ve));else if(fe.type==="bytes")ie.push(keccak256(ve));else{if(fe.baseType==="tuple"||fe.baseType==="array")throw new Error("not implemented");ie.push(this._abiCoder.encode([fe.type],[ve]))}else ae.push(fe),ce.push(ve)}),{data:this._abiCoder.encode(ae,ce),topics:ie}}decodeEventLog(v,k,ie){if(typeof v=="string"&&(v=this.getEvent(v)),ie!=null&&!v.anonymous){let Ee=this.getEventTopic(v);(!isHexString(ie[0],32)||ie[0].toLowerCase()!==Ee)&&logger14.throwError("fragment/topic mismatch",Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:Ee,value:ie[0]}),ie=ie.slice(1)}let ae=[],ce=[],fe=[];v.inputs.forEach((Ee,cr)=>{Ee.indexed?Ee.type==="string"||Ee.type==="bytes"||Ee.baseType==="tuple"||Ee.baseType==="array"?(ae.push(ParamType.fromObject({type:"bytes32",name:Ee.name})),fe.push(!0)):(ae.push(Ee),fe.push(!1)):(ce.push(Ee),fe.push(!1))});let le=ie!=null?this._abiCoder.decode(ae,concat$4(ie)):null,ve=this._abiCoder.decode(ce,k,!0),pe=[],ye=0,me=0;v.inputs.forEach((Ee,cr)=>{if(Ee.indexed)if(le==null)pe[cr]=new Indexed({_isIndexed:!0,hash:null});else if(fe[cr])pe[cr]=new Indexed({_isIndexed:!0,hash:le[me++]});else try{pe[cr]=le[me++]}catch(Br){pe[cr]=Br}else try{pe[cr]=ve[ye++]}catch(Br){pe[cr]=Br}if(Ee.name&&pe[Ee.name]==null){const Br=pe[cr];Br instanceof Error?Object.defineProperty(pe,Ee.name,{enumerable:!0,get:()=>{throw wrapAccessError(`property ${JSON.stringify(Ee.name)}`,Br)}}):pe[Ee.name]=Br}});for(let Ee=0;Ee{throw wrapAccessError(`index ${Ee}`,cr)}})}return Object.freeze(pe)}parseTransaction(v){let k=this.getFunction(v.data.substring(0,10).toLowerCase());return k?new TransactionDescription({args:this._abiCoder.decode(k.inputs,"0x"+v.data.substring(10)),functionFragment:k,name:k.name,signature:k.format(),sighash:this.getSighash(k),value:BigNumber.from(v.value||"0")}):null}parseLog(v){let k=this.getEvent(v.topics[0]);return!k||k.anonymous?null:new LogDescription({eventFragment:k,name:k.name,signature:k.format(),topic:this.getEventTopic(k),args:this.decodeEventLog(k,v.data,v.topics)})}parseError(v){const k=hexlify(v);let ie=this.getError(k.substring(0,10).toLowerCase());return ie?new ErrorDescription({args:this._abiCoder.decode(ie.inputs,"0x"+k.substring(10)),errorFragment:ie,name:ie.name,signature:ie.format(),sighash:this.getSighash(ie)}):null}static isInterface(v){return!!(v&&v._isInterface)}},version10="abstract-provider/5.7.0",__awaiter3=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger15=new Logger(version10),ForkEvent=class extends Description{static isForkEvent(v){return!!(v&&v._isForkEvent)}},Provider=class{constructor(){logger15.checkAbstract(new.target,Provider),defineReadOnly(this,"_isProvider",!0)}getFeeData(){return __awaiter3(this,void 0,void 0,function*(){const{block:v,gasPrice:k}=yield resolveProperties({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(fe=>null)});let ie=null,ae=null,ce=null;return v&&v.baseFeePerGas&&(ie=v.baseFeePerGas,ce=BigNumber.from("1500000000"),ae=v.baseFeePerGas.mul(2).add(ce)),{lastBaseFeePerGas:ie,maxFeePerGas:ae,maxPriorityFeePerGas:ce,gasPrice:k}})}addListener(v,k){return this.on(v,k)}removeListener(v,k){return this.off(v,k)}static isProvider(v){return!!(v&&v._isProvider)}},version11="abstract-signer/5.7.0",__awaiter4=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger16=new Logger(version11),allowedTransactionKeys=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],forwardErrors=[Logger.errors.INSUFFICIENT_FUNDS,Logger.errors.NONCE_EXPIRED,Logger.errors.REPLACEMENT_UNDERPRICED],Signer=class{constructor(){logger16.checkAbstract(new.target,Signer),defineReadOnly(this,"_isSigner",!0)}getBalance(v){return __awaiter4(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),v)})}getTransactionCount(v){return __awaiter4(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),v)})}estimateGas(v){return __awaiter4(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const k=yield resolveProperties(this.checkTransaction(v));return yield this.provider.estimateGas(k)})}call(v,k){return __awaiter4(this,void 0,void 0,function*(){this._checkProvider("call");const ie=yield resolveProperties(this.checkTransaction(v));return yield this.provider.call(ie,k)})}sendTransaction(v){return __awaiter4(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const k=yield this.populateTransaction(v),ie=yield this.signTransaction(k);return yield this.provider.sendTransaction(ie)})}getChainId(){return __awaiter4(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return __awaiter4(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return __awaiter4(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(v){return __awaiter4(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(v)})}checkTransaction(v){for(const ie in v)allowedTransactionKeys.indexOf(ie)===-1&&logger16.throwArgumentError("invalid transaction key: "+ie,"transaction",v);const k=shallowCopy(v);return k.from==null?k.from=this.getAddress():k.from=Promise.all([Promise.resolve(k.from),this.getAddress()]).then(ie=>(ie[0].toLowerCase()!==ie[1].toLowerCase()&&logger16.throwArgumentError("from address mismatch","transaction",v),ie[0])),k}populateTransaction(v){return __awaiter4(this,void 0,void 0,function*(){const k=yield resolveProperties(this.checkTransaction(v));k.to!=null&&(k.to=Promise.resolve(k.to).then(ae=>__awaiter4(this,void 0,void 0,function*(){if(ae==null)return null;const ce=yield this.resolveName(ae);return ce==null&&logger16.throwArgumentError("provided ENS name resolves to null","tx.to",ae),ce})),k.to.catch(ae=>{}));const ie=k.maxFeePerGas!=null||k.maxPriorityFeePerGas!=null;if(k.gasPrice!=null&&(k.type===2||ie)?logger16.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",v):(k.type===0||k.type===1)&&ie&&logger16.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",v),(k.type===2||k.type==null)&&k.maxFeePerGas!=null&&k.maxPriorityFeePerGas!=null)k.type=2;else if(k.type===0||k.type===1)k.gasPrice==null&&(k.gasPrice=this.getGasPrice());else{const ae=yield this.getFeeData();if(k.type==null)if(ae.maxFeePerGas!=null&&ae.maxPriorityFeePerGas!=null)if(k.type=2,k.gasPrice!=null){const ce=k.gasPrice;delete k.gasPrice,k.maxFeePerGas=ce,k.maxPriorityFeePerGas=ce}else k.maxFeePerGas==null&&(k.maxFeePerGas=ae.maxFeePerGas),k.maxPriorityFeePerGas==null&&(k.maxPriorityFeePerGas=ae.maxPriorityFeePerGas);else ae.gasPrice!=null?(ie&&logger16.throwError("network does not support EIP-1559",Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),k.gasPrice==null&&(k.gasPrice=ae.gasPrice),k.type=0):logger16.throwError("failed to get consistent fee data",Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else k.type===2&&(k.maxFeePerGas==null&&(k.maxFeePerGas=ae.maxFeePerGas),k.maxPriorityFeePerGas==null&&(k.maxPriorityFeePerGas=ae.maxPriorityFeePerGas))}return k.nonce==null&&(k.nonce=this.getTransactionCount("pending")),k.gasLimit==null&&(k.gasLimit=this.estimateGas(k).catch(ae=>{if(forwardErrors.indexOf(ae.code)>=0)throw ae;return logger16.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:ae,tx:k})})),k.chainId==null?k.chainId=this.getChainId():k.chainId=Promise.all([Promise.resolve(k.chainId),this.getChainId()]).then(ae=>(ae[1]!==0&&ae[0]!==ae[1]&&logger16.throwArgumentError("chainId address mismatch","transaction",v),ae[0])),yield resolveProperties(k)})}_checkProvider(v){this.provider||logger16.throwError("missing provider",Logger.errors.UNSUPPORTED_OPERATION,{operation:v||"_checkProvider"})}static isSigner(v){return!!(v&&v._isSigner)}},VoidSigner=class extends Signer{constructor(v,k){super(),defineReadOnly(this,"address",v),defineReadOnly(this,"provider",k||null)}getAddress(){return Promise.resolve(this.address)}_fail(v,k){return Promise.resolve().then(()=>{logger16.throwError(v,Logger.errors.UNSUPPORTED_OPERATION,{operation:k})})}signMessage(v){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(v){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(v,k,ie){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(v){return new VoidSigner(this.address,v)}},import_bn2=__toESM(require_bn$1()),import_hash2=__toESM(require_hash());function createCommonjsModule(v,k,ie){return ie={path:k,exports:{},require:function(ae,ce){return commonjsRequire(ae,ce==null?ie.path:ce)}},v(ie,ie.exports),ie.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var minimalisticAssert=assert;function assert(v,k){if(!v)throw new Error(k||"Assertion failed")}assert.equal=function v(k,ie,ae){if(k!=ie)throw new Error(ae||"Assertion failed: "+k+" != "+ie)};var utils_1=createCommonjsModule(function(v,k){var ie=k;function ae(le,ve){if(Array.isArray(le))return le.slice();if(!le)return[];var pe=[];if(typeof le!="string"){for(var ye=0;ye>8,cr=me&255;Ee?pe.push(Ee,cr):pe.push(cr)}return pe}ie.toArray=ae;function ce(le){return le.length===1?"0"+le:le}ie.zero2=ce;function fe(le){for(var ve="",pe=0;pe(cr>>1)-1?Pr=(cr>>1)-Ar:Pr=Ar,Br.isubn(Pr)):Pr=0,Ee[$r]=Pr,Br.iushrn(1)}return Ee}ie.getNAF=ae;function ce(pe,ye){var me=[[],[]];pe=pe.clone(),ye=ye.clone();for(var Ee=0,cr=0,Br;pe.cmpn(-Ee)>0||ye.cmpn(-cr)>0;){var $r=pe.andln(3)+Ee&3,Pr=ye.andln(3)+cr&3;$r===3&&($r=-1),Pr===3&&(Pr=-1);var Ar;($r&1)===0?Ar=0:(Br=pe.andln(7)+Ee&7,(Br===3||Br===5)&&Pr===2?Ar=-$r:Ar=$r),me[0].push(Ar);var ur;(Pr&1)===0?ur=0:(Br=ye.andln(7)+cr&7,(Br===3||Br===5)&&$r===2?ur=-Pr:ur=Pr),me[1].push(ur),2*Ee===Ar+1&&(Ee=1-Ee),2*cr===ur+1&&(cr=1-cr),pe.iushrn(1),ye.iushrn(1)}return me}ie.getJSF=ce;function fe(pe,ye,me){var Ee="_"+ye;pe.prototype[ye]=function(){return this[Ee]!==void 0?this[Ee]:this[Ee]=me.call(this)}}ie.cachedProperty=fe;function le(pe){return typeof pe=="string"?ie.toArray(pe,"hex"):pe}ie.parseBytes=le;function ve(pe){return new import_bn2.default(pe,"hex","le")}ie.intFromLE=ve}),getNAF=utils_1$1.getNAF,getJSF=utils_1$1.getJSF,assert$1=utils_1$1.assert;function BaseCurve(v,k){this.type=v,this.p=new import_bn2.default(k.p,16),this.red=k.prime?import_bn2.default.red(k.prime):import_bn2.default.mont(this.p),this.zero=new import_bn2.default(0).toRed(this.red),this.one=new import_bn2.default(1).toRed(this.red),this.two=new import_bn2.default(2).toRed(this.red),this.n=k.n&&new import_bn2.default(k.n,16),this.g=k.g&&this.pointFromJSON(k.g,k.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var ie=this.n&&this.p.div(this.n);!ie||ie.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base=BaseCurve;BaseCurve.prototype.point=function v(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function v(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function v(k,ie){assert$1(k.precomputed);var ae=k._getDoubles(),ce=getNAF(ie,1,this._bitLength),fe=(1<=ve;ye--)pe=(pe<<1)+ce[ye];le.push(pe)}for(var me=this.jpoint(null,null,null),Ee=this.jpoint(null,null,null),cr=fe;cr>0;cr--){for(ve=0;ve=0;pe--){for(var ye=0;pe>=0&&le[pe]===0;pe--)ye++;if(pe>=0&&ye++,ve=ve.dblp(ye),pe<0)break;var me=le[pe];assert$1(me!==0),k.type==="affine"?me>0?ve=ve.mixedAdd(fe[me-1>>1]):ve=ve.mixedAdd(fe[-me-1>>1].neg()):me>0?ve=ve.add(fe[me-1>>1]):ve=ve.add(fe[-me-1>>1].neg())}return k.type==="affine"?ve.toP():ve};BaseCurve.prototype._wnafMulAdd=function v(k,ie,ae,ce,fe){var le=this._wnafT1,ve=this._wnafT2,pe=this._wnafT3,ye=0,me,Ee,cr;for(me=0;me=1;me-=2){var $r=me-1,Pr=me;if(le[$r]!==1||le[Pr]!==1){pe[$r]=getNAF(ae[$r],le[$r],this._bitLength),pe[Pr]=getNAF(ae[Pr],le[Pr],this._bitLength),ye=Math.max(pe[$r].length,ye),ye=Math.max(pe[Pr].length,ye);continue}var Ar=[ie[$r],null,null,ie[Pr]];ie[$r].y.cmp(ie[Pr].y)===0?(Ar[1]=ie[$r].add(ie[Pr]),Ar[2]=ie[$r].toJ().mixedAdd(ie[Pr].neg())):ie[$r].y.cmp(ie[Pr].y.redNeg())===0?(Ar[1]=ie[$r].toJ().mixedAdd(ie[Pr]),Ar[2]=ie[$r].add(ie[Pr].neg())):(Ar[1]=ie[$r].toJ().mixedAdd(ie[Pr]),Ar[2]=ie[$r].toJ().mixedAdd(ie[Pr].neg()));var ur=[-3,-1,-5,-7,0,7,5,1,3],jr=getJSF(ae[$r],ae[Pr]);for(ye=Math.max(jr[0].length,ye),pe[$r]=new Array(ye),pe[Pr]=new Array(ye),Ee=0;Ee=0;me--){for(var Ur=0;me>=0;){var Qr=!0;for(Ee=0;Ee=0&&Ur++,Vr=Vr.dblp(Ur),me<0)break;for(Ee=0;Ee0?cr=ve[Ee][hn-1>>1]:hn<0&&(cr=ve[Ee][-hn-1>>1].neg()),cr.type==="affine"?Vr=Vr.mixedAdd(cr):Vr=Vr.add(cr))}}for(me=0;me=Math.ceil((k.bitLength()+1)/ie.step):!1};BasePoint.prototype._getDoubles=function v(k,ie){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var ae=[this],ce=this,fe=0;fe=0&&(Br=ye,$r=me),Ee.negative&&(Ee=Ee.neg(),cr=cr.neg()),Br.negative&&(Br=Br.neg(),$r=$r.neg()),[{a:Ee,b:cr},{a:Br,b:$r}]};ShortCurve.prototype._endoSplit=function v(k){var ie=this.endo.basis,ae=ie[0],ce=ie[1],fe=ce.b.mul(k).divRound(this.n),le=ae.b.neg().mul(k).divRound(this.n),ve=fe.mul(ae.a),pe=le.mul(ce.a),ye=fe.mul(ae.b),me=le.mul(ce.b),Ee=k.sub(ve).sub(pe),cr=ye.add(me).neg();return{k1:Ee,k2:cr}};ShortCurve.prototype.pointFromX=function v(k,ie){k=new import_bn2.default(k,16),k.red||(k=k.toRed(this.red));var ae=k.redSqr().redMul(k).redIAdd(k.redMul(this.a)).redIAdd(this.b),ce=ae.redSqrt();if(ce.redSqr().redSub(ae).cmp(this.zero)!==0)throw new Error("invalid point");var fe=ce.fromRed().isOdd();return(ie&&!fe||!ie&&fe)&&(ce=ce.redNeg()),this.point(k,ce)};ShortCurve.prototype.validate=function v(k){if(k.inf)return!0;var ie=k.x,ae=k.y,ce=this.a.redMul(ie),fe=ie.redSqr().redMul(ie).redIAdd(ce).redIAdd(this.b);return ae.redSqr().redISub(fe).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function v(k,ie,ae){for(var ce=this._endoWnafT1,fe=this._endoWnafT2,le=0;le":""};Point.prototype.isInfinity=function v(){return this.inf};Point.prototype.add=function v(k){if(this.inf)return k;if(k.inf)return this;if(this.eq(k))return this.dbl();if(this.neg().eq(k))return this.curve.point(null,null);if(this.x.cmp(k.x)===0)return this.curve.point(null,null);var ie=this.y.redSub(k.y);ie.cmpn(0)!==0&&(ie=ie.redMul(this.x.redSub(k.x).redInvm()));var ae=ie.redSqr().redISub(this.x).redISub(k.x),ce=ie.redMul(this.x.redSub(ae)).redISub(this.y);return this.curve.point(ae,ce)};Point.prototype.dbl=function v(){if(this.inf)return this;var k=this.y.redAdd(this.y);if(k.cmpn(0)===0)return this.curve.point(null,null);var ie=this.curve.a,ae=this.x.redSqr(),ce=k.redInvm(),fe=ae.redAdd(ae).redIAdd(ae).redIAdd(ie).redMul(ce),le=fe.redSqr().redISub(this.x.redAdd(this.x)),ve=fe.redMul(this.x.redSub(le)).redISub(this.y);return this.curve.point(le,ve)};Point.prototype.getX=function v(){return this.x.fromRed()};Point.prototype.getY=function v(){return this.y.fromRed()};Point.prototype.mul=function v(k){return k=new import_bn2.default(k,16),this.isInfinity()?this:this._hasDoubles(k)?this.curve._fixedNafMul(this,k):this.curve.endo?this.curve._endoWnafMulAdd([this],[k]):this.curve._wnafMul(this,k)};Point.prototype.mulAdd=function v(k,ie,ae){var ce=[this,ie],fe=[k,ae];return this.curve.endo?this.curve._endoWnafMulAdd(ce,fe):this.curve._wnafMulAdd(1,ce,fe,2)};Point.prototype.jmulAdd=function v(k,ie,ae){var ce=[this,ie],fe=[k,ae];return this.curve.endo?this.curve._endoWnafMulAdd(ce,fe,!0):this.curve._wnafMulAdd(1,ce,fe,2,!0)};Point.prototype.eq=function v(k){return this===k||this.inf===k.inf&&(this.inf||this.x.cmp(k.x)===0&&this.y.cmp(k.y)===0)};Point.prototype.neg=function v(k){if(this.inf)return this;var ie=this.curve.point(this.x,this.y.redNeg());if(k&&this.precomputed){var ae=this.precomputed,ce=function(fe){return fe.neg()};ie.precomputed={naf:ae.naf&&{wnd:ae.naf.wnd,points:ae.naf.points.map(ce)},doubles:ae.doubles&&{step:ae.doubles.step,points:ae.doubles.points.map(ce)}}}return ie};Point.prototype.toJ=function v(){if(this.inf)return this.curve.jpoint(null,null,null);var k=this.curve.jpoint(this.x,this.y,this.curve.one);return k};function JPoint(v,k,ie,ae){base.BasePoint.call(this,v,"jacobian"),k===null&&ie===null&&ae===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new import_bn2.default(0)):(this.x=new import_bn2.default(k,16),this.y=new import_bn2.default(ie,16),this.z=new import_bn2.default(ae,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits_browser(JPoint,base.BasePoint);ShortCurve.prototype.jpoint=function v(k,ie,ae){return new JPoint(this,k,ie,ae)};JPoint.prototype.toP=function v(){if(this.isInfinity())return this.curve.point(null,null);var k=this.z.redInvm(),ie=k.redSqr(),ae=this.x.redMul(ie),ce=this.y.redMul(ie).redMul(k);return this.curve.point(ae,ce)};JPoint.prototype.neg=function v(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function v(k){if(this.isInfinity())return k;if(k.isInfinity())return this;var ie=k.z.redSqr(),ae=this.z.redSqr(),ce=this.x.redMul(ie),fe=k.x.redMul(ae),le=this.y.redMul(ie.redMul(k.z)),ve=k.y.redMul(ae.redMul(this.z)),pe=ce.redSub(fe),ye=le.redSub(ve);if(pe.cmpn(0)===0)return ye.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var me=pe.redSqr(),Ee=me.redMul(pe),cr=ce.redMul(me),Br=ye.redSqr().redIAdd(Ee).redISub(cr).redISub(cr),$r=ye.redMul(cr.redISub(Br)).redISub(le.redMul(Ee)),Pr=this.z.redMul(k.z).redMul(pe);return this.curve.jpoint(Br,$r,Pr)};JPoint.prototype.mixedAdd=function v(k){if(this.isInfinity())return k.toJ();if(k.isInfinity())return this;var ie=this.z.redSqr(),ae=this.x,ce=k.x.redMul(ie),fe=this.y,le=k.y.redMul(ie).redMul(this.z),ve=ae.redSub(ce),pe=fe.redSub(le);if(ve.cmpn(0)===0)return pe.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var ye=ve.redSqr(),me=ye.redMul(ve),Ee=ae.redMul(ye),cr=pe.redSqr().redIAdd(me).redISub(Ee).redISub(Ee),Br=pe.redMul(Ee.redISub(cr)).redISub(fe.redMul(me)),$r=this.z.redMul(ve);return this.curve.jpoint(cr,Br,$r)};JPoint.prototype.dblp=function v(k){if(k===0)return this;if(this.isInfinity())return this;if(!k)return this.dbl();var ie;if(this.curve.zeroA||this.curve.threeA){var ae=this;for(ie=0;ie=0)return!1;if(ae.redIAdd(fe),this.x.cmp(ae)===0)return!0}};JPoint.prototype.inspect=function v(){return this.isInfinity()?"":""};JPoint.prototype.isInfinity=function v(){return this.z.cmpn(0)===0};var curve_1=createCommonjsModule(function(v,k){var ie=k;ie.base=base,ie.short=short_1,ie.mont=null,ie.edwards=null}),curves_1=createCommonjsModule(function(v,k){var ie=k,ae=utils_1$1.assert;function ce(ve){ve.type==="short"?this.curve=new curve_1.short(ve):ve.type==="edwards"?this.curve=new curve_1.edwards(ve):this.curve=new curve_1.mont(ve),this.g=this.curve.g,this.n=this.curve.n,this.hash=ve.hash,ae(this.g.validate(),"Invalid curve"),ae(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}ie.PresetCurve=ce;function fe(ve,pe){Object.defineProperty(ie,ve,{configurable:!0,enumerable:!0,get:function(){var ye=new ce(pe);return Object.defineProperty(ie,ve,{configurable:!0,enumerable:!0,value:ye}),ye}})}fe("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:import_hash2.default.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),fe("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:import_hash2.default.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),fe("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:import_hash2.default.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),fe("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:import_hash2.default.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),fe("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:import_hash2.default.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),fe("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:import_hash2.default.sha256,gRed:!1,g:["9"]}),fe("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:import_hash2.default.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var le;try{le=null.crash()}catch{le=void 0}fe("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:import_hash2.default.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",le]})});function HmacDRBG(v){if(!(this instanceof HmacDRBG))return new HmacDRBG(v);this.hash=v.hash,this.predResist=!!v.predResist,this.outLen=this.hash.outSize,this.minEntropy=v.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var k=utils_1.toArray(v.entropy,v.entropyEnc||"hex"),ie=utils_1.toArray(v.nonce,v.nonceEnc||"hex"),ae=utils_1.toArray(v.pers,v.persEnc||"hex");minimalisticAssert(k.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(k,ie,ae)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function v(k,ie,ae){var ce=k.concat(ie).concat(ae);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var fe=0;fe=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(k.concat(ae||[])),this._reseed=1};HmacDRBG.prototype.generate=function v(k,ie,ae,ce){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof ie!="string"&&(ce=ae,ae=ie,ie=null),ae&&(ae=utils_1.toArray(ae,ce||"hex"),this._update(ae));for(var fe=[];fe.length"};var assert$4=utils_1$1.assert;function Signature(v,k){if(v instanceof Signature)return v;this._importDER(v,k)||(assert$4(v.r&&v.s,"Signature without r or s"),this.r=new import_bn2.default(v.r,16),this.s=new import_bn2.default(v.s,16),v.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=v.recoveryParam)}var signature=Signature;function Position(){this.place=0}function getLength(v,k){var ie=v[k.place++];if(!(ie&128))return ie;var ae=ie&15;if(ae===0||ae>4)return!1;for(var ce=0,fe=0,le=k.place;fe>>=0;return ce<=127?!1:(k.place=le,ce)}function rmPadding(v){for(var k=0,ie=v.length-1;!v[k]&&!(v[k+1]&128)&&k>>3);for(v.push(ie|128);--ie;)v.push(k>>>(ie<<3)&255);v.push(k)}Signature.prototype.toDER=function v(k){var ie=this.r.toArray(),ae=this.s.toArray();for(ie[0]&128&&(ie=[0].concat(ie)),ae[0]&128&&(ae=[0].concat(ae)),ie=rmPadding(ie),ae=rmPadding(ae);!ae[0]&&!(ae[1]&128);)ae=ae.slice(1);var ce=[2];constructLength(ce,ie.length),ce=ce.concat(ie),ce.push(2),constructLength(ce,ae.length);var fe=ce.concat(ae),le=[48];return constructLength(le,fe.length),le=le.concat(fe),utils_1$1.encode(le,k)};var rand=function(){throw new Error("unsupported")},assert$5=utils_1$1.assert;function EC(v){if(!(this instanceof EC))return new EC(v);typeof v=="string"&&(assert$5(Object.prototype.hasOwnProperty.call(curves_1,v),"Unknown curve "+v),v=curves_1[v]),v instanceof curves_1.PresetCurve&&(v={curve:v}),this.curve=v.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=v.curve.g,this.g.precompute(v.curve.n.bitLength()+1),this.hash=v.hash||v.curve.hash}var ec=EC;EC.prototype.keyPair=function v(k){return new key$1(this,k)};EC.prototype.keyFromPrivate=function v(k,ie){return key$1.fromPrivate(this,k,ie)};EC.prototype.keyFromPublic=function v(k,ie){return key$1.fromPublic(this,k,ie)};EC.prototype.genKeyPair=function v(k){k||(k={});for(var ie=new hmacDrbg({hash:this.hash,pers:k.pers,persEnc:k.persEnc||"utf8",entropy:k.entropy||rand(this.hash.hmacStrength),entropyEnc:k.entropy&&k.entropyEnc||"utf8",nonce:this.n.toArray()}),ae=this.n.byteLength(),ce=this.n.sub(new import_bn2.default(2));;){var fe=new import_bn2.default(ie.generate(ae));if(!(fe.cmp(ce)>0))return fe.iaddn(1),this.keyFromPrivate(fe)}};EC.prototype._truncateToN=function v(k,ie){var ae=k.byteLength()*8-this.n.bitLength();return ae>0&&(k=k.ushrn(ae)),!ie&&k.cmp(this.n)>=0?k.sub(this.n):k};EC.prototype.sign=function v(k,ie,ae,ce){typeof ae=="object"&&(ce=ae,ae=null),ce||(ce={}),ie=this.keyFromPrivate(ie,ae),k=this._truncateToN(new import_bn2.default(k,16));for(var fe=this.n.byteLength(),le=ie.getPrivate().toArray("be",fe),ve=k.toArray("be",fe),pe=new hmacDrbg({hash:this.hash,entropy:le,nonce:ve,pers:ce.pers,persEnc:ce.persEnc||"utf8"}),ye=this.n.sub(new import_bn2.default(1)),me=0;;me++){var Ee=ce.k?ce.k(me):new import_bn2.default(pe.generate(this.n.byteLength()));if(Ee=this._truncateToN(Ee,!0),!(Ee.cmpn(1)<=0||Ee.cmp(ye)>=0)){var cr=this.g.mul(Ee);if(!cr.isInfinity()){var Br=cr.getX(),$r=Br.umod(this.n);if($r.cmpn(0)!==0){var Pr=Ee.invm(this.n).mul($r.mul(ie.getPrivate()).iadd(k));if(Pr=Pr.umod(this.n),Pr.cmpn(0)!==0){var Ar=(cr.getY().isOdd()?1:0)|(Br.cmp($r)!==0?2:0);return ce.canonical&&Pr.cmp(this.nh)>0&&(Pr=this.n.sub(Pr),Ar^=1),new signature({r:$r,s:Pr,recoveryParam:Ar})}}}}}};EC.prototype.verify=function v(k,ie,ae,ce){k=this._truncateToN(new import_bn2.default(k,16)),ae=this.keyFromPublic(ae,ce),ie=new signature(ie,"hex");var fe=ie.r,le=ie.s;if(fe.cmpn(1)<0||fe.cmp(this.n)>=0||le.cmpn(1)<0||le.cmp(this.n)>=0)return!1;var ve=le.invm(this.n),pe=ve.mul(k).umod(this.n),ye=ve.mul(fe).umod(this.n),me;return this.curve._maxwellTrick?(me=this.g.jmulAdd(pe,ae.getPublic(),ye),me.isInfinity()?!1:me.eqXToP(fe)):(me=this.g.mulAdd(pe,ae.getPublic(),ye),me.isInfinity()?!1:me.getX().umod(this.n).cmp(fe)===0)};EC.prototype.recoverPubKey=function(v,k,ie,ae){assert$5((3&ie)===ie,"The recovery param is more than two bits"),k=new signature(k,ae);var ce=this.n,fe=new import_bn2.default(v),le=k.r,ve=k.s,pe=ie&1,ye=ie>>1;if(le.cmp(this.curve.p.umod(this.curve.n))>=0&&ye)throw new Error("Unable to find sencond key candinate");ye?le=this.curve.pointFromX(le.add(this.curve.n),pe):le=this.curve.pointFromX(le,pe);var me=k.r.invm(ce),Ee=ce.sub(fe).mul(me).umod(ce),cr=ve.mul(me).umod(ce);return this.g.mulAdd(Ee,le,cr)};EC.prototype.getKeyRecoveryParam=function(v,k,ie,ae){if(k=new signature(k,ae),k.recoveryParam!==null)return k.recoveryParam;for(var ce=0;ce<4;ce++){var fe;try{fe=this.recoverPubKey(v,k,ce)}catch{continue}if(fe.eq(ie))return ce}throw new Error("Unable to find valid recovery factor")};var elliptic_1=createCommonjsModule(function(v,k){var ie=k;ie.version="6.5.4",ie.utils=utils_1$1,ie.rand=function(){throw new Error("unsupported")},ie.curve=curve_1,ie.curves=curves_1,ie.ec=ec,ie.eddsa=null}),EC$1=elliptic_1.ec,version12="signing-key/5.7.0",logger17=new Logger(version12),_curve=null;function getCurve(){return _curve||(_curve=new EC$1("secp256k1")),_curve}var SigningKey=class{constructor(v){defineReadOnly(this,"curve","secp256k1"),defineReadOnly(this,"privateKey",hexlify(v)),hexDataLength(this.privateKey)!==32&&logger17.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const k=getCurve().keyFromPrivate(arrayify(this.privateKey));defineReadOnly(this,"publicKey","0x"+k.getPublic(!1,"hex")),defineReadOnly(this,"compressedPublicKey","0x"+k.getPublic(!0,"hex")),defineReadOnly(this,"_isSigningKey",!0)}_addPoint(v){const k=getCurve().keyFromPublic(arrayify(this.publicKey)),ie=getCurve().keyFromPublic(arrayify(v));return"0x"+k.pub.add(ie.pub).encodeCompressed("hex")}signDigest(v){const k=getCurve().keyFromPrivate(arrayify(this.privateKey)),ie=arrayify(v);ie.length!==32&&logger17.throwArgumentError("bad digest length","digest",v);const ae=k.sign(ie,{canonical:!0});return splitSignature({recoveryParam:ae.recoveryParam,r:hexZeroPad("0x"+ae.r.toString(16),32),s:hexZeroPad("0x"+ae.s.toString(16),32)})}computeSharedSecret(v){const k=getCurve().keyFromPrivate(arrayify(this.privateKey)),ie=getCurve().keyFromPublic(arrayify(computePublicKey(v)));return hexZeroPad("0x"+k.derive(ie.getPublic()).toString(16),32)}static isSigningKey(v){return!!(v&&v._isSigningKey)}};function recoverPublicKey(v,k){const ie=splitSignature(k),ae={r:arrayify(ie.r),s:arrayify(ie.s)};return"0x"+getCurve().recoverPubKey(arrayify(v),ae,ie.recoveryParam).encode("hex",!1)}function computePublicKey(v,k){const ie=arrayify(v);if(ie.length===32){const ae=new SigningKey(ie);return k?"0x"+getCurve().keyFromPrivate(ie).getPublic(!0,"hex"):ae.publicKey}else{if(ie.length===33)return k?hexlify(ie):"0x"+getCurve().keyFromPublic(ie).getPublic(!1,"hex");if(ie.length===65)return k?"0x"+getCurve().keyFromPublic(ie).getPublic(!0,"hex"):hexlify(ie)}return logger17.throwArgumentError("invalid public or private key","key","[REDACTED]")}var version13="transactions/5.7.0",logger18=new Logger(version13),TransactionTypes;(function(v){v[v.legacy=0]="legacy",v[v.eip2930=1]="eip2930",v[v.eip1559=2]="eip1559"})(TransactionTypes||(TransactionTypes={}));function handleAddress(v){return v==="0x"?null:getAddress(v)}function handleNumber(v){return v==="0x"?Zero2:BigNumber.from(v)}var transactionFields=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],allowedTransactionKeys2={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function computeAddress(v){const k=computePublicKey(v);return getAddress(hexDataSlice(keccak256(hexDataSlice(k,1)),12))}function recoverAddress(v,k){return computeAddress(recoverPublicKey(arrayify(v),k))}function formatNumber(v,k){const ie=stripZeros(BigNumber.from(v).toHexString());return ie.length>32&&logger18.throwArgumentError("invalid length for "+k,"transaction:"+k,v),ie}function accessSetify(v,k){return{address:getAddress(v),storageKeys:(k||[]).map((ie,ae)=>(hexDataLength(ie)!==32&&logger18.throwArgumentError("invalid access list storageKey",`accessList[${v}:${ae}]`,ie),ie.toLowerCase()))}}function accessListify(v){if(Array.isArray(v))return v.map((ie,ae)=>Array.isArray(ie)?(ie.length>2&&logger18.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${ae}]`,ie),accessSetify(ie[0],ie[1])):accessSetify(ie.address,ie.storageKeys));const k=Object.keys(v).map(ie=>{const ae=v[ie].reduce((ce,fe)=>(ce[fe]=!0,ce),{});return accessSetify(ie,Object.keys(ae).sort())});return k.sort((ie,ae)=>ie.address.localeCompare(ae.address)),k}function formatAccessList(v){return accessListify(v).map(k=>[k.address,k.storageKeys])}function _serializeEip1559(v,k){if(v.gasPrice!=null){const ae=BigNumber.from(v.gasPrice),ce=BigNumber.from(v.maxFeePerGas||0);ae.eq(ce)||logger18.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:ae,maxFeePerGas:ce})}const ie=[formatNumber(v.chainId||0,"chainId"),formatNumber(v.nonce||0,"nonce"),formatNumber(v.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),formatNumber(v.maxFeePerGas||0,"maxFeePerGas"),formatNumber(v.gasLimit||0,"gasLimit"),v.to!=null?getAddress(v.to):"0x",formatNumber(v.value||0,"value"),v.data||"0x",formatAccessList(v.accessList||[])];if(k){const ae=splitSignature(k);ie.push(formatNumber(ae.recoveryParam,"recoveryParam")),ie.push(stripZeros(ae.r)),ie.push(stripZeros(ae.s))}return hexConcat(["0x02",encode(ie)])}function _serializeEip2930(v,k){const ie=[formatNumber(v.chainId||0,"chainId"),formatNumber(v.nonce||0,"nonce"),formatNumber(v.gasPrice||0,"gasPrice"),formatNumber(v.gasLimit||0,"gasLimit"),v.to!=null?getAddress(v.to):"0x",formatNumber(v.value||0,"value"),v.data||"0x",formatAccessList(v.accessList||[])];if(k){const ae=splitSignature(k);ie.push(formatNumber(ae.recoveryParam,"recoveryParam")),ie.push(stripZeros(ae.r)),ie.push(stripZeros(ae.s))}return hexConcat(["0x01",encode(ie)])}function _serialize(v,k){checkProperties(v,allowedTransactionKeys2);const ie=[];transactionFields.forEach(function(le){let ve=v[le.name]||[];const pe={};le.numeric&&(pe.hexPad="left"),ve=arrayify(hexlify(ve,pe)),le.length&&ve.length!==le.length&&ve.length>0&&logger18.throwArgumentError("invalid length for "+le.name,"transaction:"+le.name,ve),le.maxLength&&(ve=stripZeros(ve),ve.length>le.maxLength&&logger18.throwArgumentError("invalid length for "+le.name,"transaction:"+le.name,ve)),ie.push(hexlify(ve))});let ae=0;if(v.chainId!=null?(ae=v.chainId,typeof ae!="number"&&logger18.throwArgumentError("invalid transaction.chainId","transaction",v)):k&&!isBytesLike(k)&&k.v>28&&(ae=Math.floor((k.v-35)/2)),ae!==0&&(ie.push(hexlify(ae)),ie.push("0x"),ie.push("0x")),!k)return encode(ie);const ce=splitSignature(k);let fe=27+ce.recoveryParam;return ae!==0?(ie.pop(),ie.pop(),ie.pop(),fe+=ae*2+8,ce.v>28&&ce.v!==fe&&logger18.throwArgumentError("transaction.chainId/signature.v mismatch","signature",k)):ce.v!==fe&&logger18.throwArgumentError("transaction.chainId/signature.v mismatch","signature",k),ie.push(hexlify(fe)),ie.push(stripZeros(arrayify(ce.r))),ie.push(stripZeros(arrayify(ce.s))),encode(ie)}function serialize(v,k){if(v.type==null||v.type===0)return v.accessList!=null&&logger18.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",v),_serialize(v,k);switch(v.type){case 1:return _serializeEip2930(v,k);case 2:return _serializeEip1559(v,k)}return logger18.throwError(`unsupported transaction type: ${v.type}`,Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:v.type})}function _parseEipSignature(v,k,ie){try{const ae=handleNumber(k[0]).toNumber();if(ae!==0&&ae!==1)throw new Error("bad recid");v.v=ae}catch{logger18.throwArgumentError("invalid v for transaction type: 1","v",k[0])}v.r=hexZeroPad(k[1],32),v.s=hexZeroPad(k[2],32);try{const ae=keccak256(ie(v));v.from=recoverAddress(ae,{r:v.r,s:v.s,recoveryParam:v.v})}catch{}}function _parseEip1559(v){const k=decode(v.slice(1));k.length!==9&&k.length!==12&&logger18.throwArgumentError("invalid component count for transaction type: 2","payload",hexlify(v));const ie=handleNumber(k[2]),ae=handleNumber(k[3]),ce={type:2,chainId:handleNumber(k[0]).toNumber(),nonce:handleNumber(k[1]).toNumber(),maxPriorityFeePerGas:ie,maxFeePerGas:ae,gasPrice:null,gasLimit:handleNumber(k[4]),to:handleAddress(k[5]),value:handleNumber(k[6]),data:k[7],accessList:accessListify(k[8])};return k.length===9||(ce.hash=keccak256(v),_parseEipSignature(ce,k.slice(9),_serializeEip1559)),ce}function _parseEip2930(v){const k=decode(v.slice(1));k.length!==8&&k.length!==11&&logger18.throwArgumentError("invalid component count for transaction type: 1","payload",hexlify(v));const ie={type:1,chainId:handleNumber(k[0]).toNumber(),nonce:handleNumber(k[1]).toNumber(),gasPrice:handleNumber(k[2]),gasLimit:handleNumber(k[3]),to:handleAddress(k[4]),value:handleNumber(k[5]),data:k[6],accessList:accessListify(k[7])};return k.length===8||(ie.hash=keccak256(v),_parseEipSignature(ie,k.slice(8),_serializeEip2930)),ie}function _parse(v){const k=decode(v);k.length!==9&&k.length!==6&&logger18.throwArgumentError("invalid raw transaction","rawTransaction",v);const ie={nonce:handleNumber(k[0]).toNumber(),gasPrice:handleNumber(k[1]),gasLimit:handleNumber(k[2]),to:handleAddress(k[3]),value:handleNumber(k[4]),data:k[5],chainId:0};if(k.length===6)return ie;try{ie.v=BigNumber.from(k[6]).toNumber()}catch{return ie}if(ie.r=hexZeroPad(k[7],32),ie.s=hexZeroPad(k[8],32),BigNumber.from(ie.r).isZero()&&BigNumber.from(ie.s).isZero())ie.chainId=ie.v,ie.v=0;else{ie.chainId=Math.floor((ie.v-35)/2),ie.chainId<0&&(ie.chainId=0);let ae=ie.v-27;const ce=k.slice(0,6);ie.chainId!==0&&(ce.push(hexlify(ie.chainId)),ce.push("0x"),ce.push("0x"),ae-=ie.chainId*2+8);const fe=keccak256(encode(ce));try{ie.from=recoverAddress(fe,{r:hexlify(ie.r),s:hexlify(ie.s),recoveryParam:ae})}catch{}ie.hash=keccak256(v)}return ie.type=null,ie}function parse(v){const k=arrayify(v);if(k[0]>127)return _parse(k);switch(k[0]){case 1:return _parseEip2930(k);case 2:return _parseEip1559(k)}return logger18.throwError(`unsupported transaction type: ${k[0]}`,Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:k[0]})}var version14="contracts/5.7.0",__awaiter5=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger19=new Logger(version14),allowedTransactionKeys3={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function resolveName(v,k){return __awaiter5(this,void 0,void 0,function*(){const ie=yield k;typeof ie!="string"&&logger19.throwArgumentError("invalid address or ENS name","name",ie);try{return getAddress(ie)}catch{}v||logger19.throwError("a provider or signer is needed to resolve ENS names",Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const ae=yield v.resolveName(ie);return ae==null&&logger19.throwArgumentError("resolver or addr is not configured for ENS name","name",ie),ae})}function resolveAddresses(v,k,ie){return __awaiter5(this,void 0,void 0,function*(){return Array.isArray(ie)?yield Promise.all(ie.map((ae,ce)=>resolveAddresses(v,Array.isArray(k)?k[ce]:k[ae.name],ae))):ie.type==="address"?yield resolveName(v,k):ie.type==="tuple"?yield resolveAddresses(v,k,ie.components):ie.baseType==="array"?Array.isArray(k)?yield Promise.all(k.map(ae=>resolveAddresses(v,ae,ie.arrayChildren))):Promise.reject(logger19.makeError("invalid value for array",Logger.errors.INVALID_ARGUMENT,{argument:"value",value:k})):k})}function populateTransaction(v,k,ie){return __awaiter5(this,void 0,void 0,function*(){let ae={};ie.length===k.inputs.length+1&&typeof ie[ie.length-1]=="object"&&(ae=shallowCopy(ie.pop())),logger19.checkArgumentCount(ie.length,k.inputs.length,"passed to contract"),v.signer?ae.from?ae.from=resolveProperties({override:resolveName(v.signer,ae.from),signer:v.signer.getAddress()}).then(ye=>__awaiter5(this,void 0,void 0,function*(){return getAddress(ye.signer)!==ye.override&&logger19.throwError("Contract with a Signer cannot override from",Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),ye.override})):ae.from=v.signer.getAddress():ae.from&&(ae.from=resolveName(v.provider,ae.from));const ce=yield resolveProperties({args:resolveAddresses(v.signer||v.provider,ie,k.inputs),address:v.resolvedAddress,overrides:resolveProperties(ae)||{}}),fe=v.interface.encodeFunctionData(k,ce.args),le={data:fe,to:ce.address},ve=ce.overrides;if(ve.nonce!=null&&(le.nonce=BigNumber.from(ve.nonce).toNumber()),ve.gasLimit!=null&&(le.gasLimit=BigNumber.from(ve.gasLimit)),ve.gasPrice!=null&&(le.gasPrice=BigNumber.from(ve.gasPrice)),ve.maxFeePerGas!=null&&(le.maxFeePerGas=BigNumber.from(ve.maxFeePerGas)),ve.maxPriorityFeePerGas!=null&&(le.maxPriorityFeePerGas=BigNumber.from(ve.maxPriorityFeePerGas)),ve.from!=null&&(le.from=ve.from),ve.type!=null&&(le.type=ve.type),ve.accessList!=null&&(le.accessList=accessListify(ve.accessList)),le.gasLimit==null&&k.gas!=null){let ye=21e3;const me=arrayify(fe);for(let Ee=0;Eeae[ye]!=null);return pe.length&&logger19.throwError(`cannot override ${pe.map(ye=>JSON.stringify(ye)).join(",")}`,Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:pe}),le})}function buildPopulate(v,k){return function(...ie){return populateTransaction(v,k,ie)}}function buildEstimate(v,k){const ie=v.signer||v.provider;return function(...ae){return __awaiter5(this,void 0,void 0,function*(){ie||logger19.throwError("estimate require a provider or signer",Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const ce=yield populateTransaction(v,k,ae);return yield ie.estimateGas(ce)})}}function addContractWait(v,k){const ie=k.wait.bind(k);k.wait=ae=>ie(ae).then(ce=>(ce.events=ce.logs.map(fe=>{let le=deepCopy(fe),ve=null;try{ve=v.interface.parseLog(fe)}catch{}return ve&&(le.args=ve.args,le.decode=(pe,ye)=>v.interface.decodeEventLog(ve.eventFragment,pe,ye),le.event=ve.name,le.eventSignature=ve.signature),le.removeListener=()=>v.provider,le.getBlock=()=>v.provider.getBlock(ce.blockHash),le.getTransaction=()=>v.provider.getTransaction(ce.transactionHash),le.getTransactionReceipt=()=>Promise.resolve(ce),le}),ce))}function buildCall(v,k,ie){const ae=v.signer||v.provider;return function(...ce){return __awaiter5(this,void 0,void 0,function*(){let fe;if(ce.length===k.inputs.length+1&&typeof ce[ce.length-1]=="object"){const pe=shallowCopy(ce.pop());pe.blockTag!=null&&(fe=yield pe.blockTag),delete pe.blockTag,ce.push(pe)}v.deployTransaction!=null&&(yield v._deployed(fe));const le=yield populateTransaction(v,k,ce),ve=yield ae.call(le,fe);try{let pe=v.interface.decodeFunctionResult(k,ve);return ie&&k.outputs.length===1&&(pe=pe[0]),pe}catch(pe){throw pe.code===Logger.errors.CALL_EXCEPTION&&(pe.address=v.address,pe.args=ce,pe.transaction=le),pe}})}}function buildSend(v,k){return function(...ie){return __awaiter5(this,void 0,void 0,function*(){v.signer||logger19.throwError("sending a transaction requires a signer",Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),v.deployTransaction!=null&&(yield v._deployed());const ae=yield populateTransaction(v,k,ie),ce=yield v.signer.sendTransaction(ae);return addContractWait(v,ce),ce})}}function buildDefault(v,k,ie){return k.constant?buildCall(v,k,ie):buildSend(v,k)}function getEventTag(v){return v.address&&(v.topics==null||v.topics.length===0)?"*":(v.address||"*")+"@"+(v.topics?v.topics.map(k=>Array.isArray(k)?k.join("|"):k).join(":"):"")}var RunningEvent=class{constructor(v,k){defineReadOnly(this,"tag",v),defineReadOnly(this,"filter",k),this._listeners=[]}addListener(v,k){this._listeners.push({listener:v,once:k})}removeListener(v){let k=!1;this._listeners=this._listeners.filter(ie=>k||ie.listener!==v?!0:(k=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(v=>v.listener)}listenerCount(){return this._listeners.length}run(v){const k=this.listenerCount();return this._listeners=this._listeners.filter(ie=>{const ae=v.slice();return setTimeout(()=>{ie.listener.apply(this,ae)},0),!ie.once}),k}prepareEvent(v){}getEmit(v){return[v]}},ErrorRunningEvent=class extends RunningEvent{constructor(){super("error",null)}},FragmentRunningEvent=class extends RunningEvent{constructor(v,k,ie,ae){const ce={address:v};let fe=k.getEventTopic(ie);ae?(fe!==ae[0]&&logger19.throwArgumentError("topic mismatch","topics",ae),ce.topics=ae.slice()):ce.topics=[fe],super(getEventTag(ce),ce),defineReadOnly(this,"address",v),defineReadOnly(this,"interface",k),defineReadOnly(this,"fragment",ie)}prepareEvent(v){super.prepareEvent(v),v.event=this.fragment.name,v.eventSignature=this.fragment.format(),v.decode=(k,ie)=>this.interface.decodeEventLog(this.fragment,k,ie);try{v.args=this.interface.decodeEventLog(this.fragment,v.data,v.topics)}catch(k){v.args=null,v.decodeError=k}}getEmit(v){const k=checkResultErrors(v.args);if(k.length)throw k[0].error;const ie=(v.args||[]).slice();return ie.push(v),ie}},WildcardRunningEvent=class extends RunningEvent{constructor(v,k){super("*",{address:v}),defineReadOnly(this,"address",v),defineReadOnly(this,"interface",k)}prepareEvent(v){super.prepareEvent(v);try{const k=this.interface.parseLog(v);v.event=k.name,v.eventSignature=k.signature,v.decode=(ie,ae)=>this.interface.decodeEventLog(k.eventFragment,ie,ae),v.args=k.args}catch{}}},BaseContract=class{constructor(v,k,ie){defineReadOnly(this,"interface",getStatic(new.target,"getInterface")(k)),ie==null?(defineReadOnly(this,"provider",null),defineReadOnly(this,"signer",null)):Signer.isSigner(ie)?(defineReadOnly(this,"provider",ie.provider||null),defineReadOnly(this,"signer",ie)):Provider.isProvider(ie)?(defineReadOnly(this,"provider",ie),defineReadOnly(this,"signer",null)):logger19.throwArgumentError("invalid signer or provider","signerOrProvider",ie),defineReadOnly(this,"callStatic",{}),defineReadOnly(this,"estimateGas",{}),defineReadOnly(this,"functions",{}),defineReadOnly(this,"populateTransaction",{}),defineReadOnly(this,"filters",{});{const fe={};Object.keys(this.interface.events).forEach(le=>{const ve=this.interface.events[le];defineReadOnly(this.filters,le,(...pe)=>({address:this.address,topics:this.interface.encodeFilterTopics(ve,pe)})),fe[ve.name]||(fe[ve.name]=[]),fe[ve.name].push(le)}),Object.keys(fe).forEach(le=>{const ve=fe[le];ve.length===1?defineReadOnly(this.filters,le,this.filters[ve[0]]):logger19.warn(`Duplicate definition of ${le} (${ve.join(", ")})`)})}if(defineReadOnly(this,"_runningEvents",{}),defineReadOnly(this,"_wrappedEmits",{}),v==null&&logger19.throwArgumentError("invalid contract address or ENS name","addressOrName",v),defineReadOnly(this,"address",v),this.provider)defineReadOnly(this,"resolvedAddress",resolveName(this.provider,v));else try{defineReadOnly(this,"resolvedAddress",Promise.resolve(getAddress(v)))}catch{logger19.throwError("provider is required to use ENS name as contract address",Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(fe=>{});const ae={},ce={};Object.keys(this.interface.functions).forEach(fe=>{const le=this.interface.functions[fe];if(ce[fe]){logger19.warn(`Duplicate ABI entry for ${JSON.stringify(fe)}`);return}ce[fe]=!0;{const ve=le.name;ae[`%${ve}`]||(ae[`%${ve}`]=[]),ae[`%${ve}`].push(fe)}this[fe]==null&&defineReadOnly(this,fe,buildDefault(this,le,!0)),this.functions[fe]==null&&defineReadOnly(this.functions,fe,buildDefault(this,le,!1)),this.callStatic[fe]==null&&defineReadOnly(this.callStatic,fe,buildCall(this,le,!0)),this.populateTransaction[fe]==null&&defineReadOnly(this.populateTransaction,fe,buildPopulate(this,le)),this.estimateGas[fe]==null&&defineReadOnly(this.estimateGas,fe,buildEstimate(this,le))}),Object.keys(ae).forEach(fe=>{const le=ae[fe];if(le.length>1)return;fe=fe.substring(1);const ve=le[0];try{this[fe]==null&&defineReadOnly(this,fe,this[ve])}catch{}this.functions[fe]==null&&defineReadOnly(this.functions,fe,this.functions[ve]),this.callStatic[fe]==null&&defineReadOnly(this.callStatic,fe,this.callStatic[ve]),this.populateTransaction[fe]==null&&defineReadOnly(this.populateTransaction,fe,this.populateTransaction[ve]),this.estimateGas[fe]==null&&defineReadOnly(this.estimateGas,fe,this.estimateGas[ve])})}static getContractAddress(v){return getContractAddress(v)}static getInterface(v){return Interface.isInterface(v)?v:new Interface(v)}deployed(){return this._deployed()}_deployed(v){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,v).then(k=>(k==="0x"&&logger19.throwError("contract not deployed",Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(v){this.signer||logger19.throwError("sending a transactions require a signer",Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const k=shallowCopy(v||{});return["from","to"].forEach(function(ie){k[ie]!=null&&logger19.throwError("cannot override "+ie,Logger.errors.UNSUPPORTED_OPERATION,{operation:ie})}),k.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(k))}connect(v){typeof v=="string"&&(v=new VoidSigner(v,this.provider));const k=new this.constructor(this.address,this.interface,v);return this.deployTransaction&&defineReadOnly(k,"deployTransaction",this.deployTransaction),k}attach(v){return new this.constructor(v,this.interface,this.signer||this.provider)}static isIndexed(v){return Indexed.isIndexed(v)}_normalizeRunningEvent(v){return this._runningEvents[v.tag]?this._runningEvents[v.tag]:v}_getRunningEvent(v){if(typeof v=="string"){if(v==="error")return this._normalizeRunningEvent(new ErrorRunningEvent);if(v==="event")return this._normalizeRunningEvent(new RunningEvent("event",null));if(v==="*")return this._normalizeRunningEvent(new WildcardRunningEvent(this.address,this.interface));const k=this.interface.getEvent(v);return this._normalizeRunningEvent(new FragmentRunningEvent(this.address,this.interface,k))}if(v.topics&&v.topics.length>0){try{const ie=v.topics[0];if(typeof ie!="string")throw new Error("invalid topic");const ae=this.interface.getEvent(ie);return this._normalizeRunningEvent(new FragmentRunningEvent(this.address,this.interface,ae,v.topics))}catch{}const k={address:this.address,topics:v.topics};return this._normalizeRunningEvent(new RunningEvent(getEventTag(k),k))}return this._normalizeRunningEvent(new WildcardRunningEvent(this.address,this.interface))}_checkRunningEvents(v){if(v.listenerCount()===0){delete this._runningEvents[v.tag];const k=this._wrappedEmits[v.tag];k&&v.filter&&(this.provider.off(v.filter,k),delete this._wrappedEmits[v.tag])}}_wrapEvent(v,k,ie){const ae=deepCopy(k);return ae.removeListener=()=>{!ie||(v.removeListener(ie),this._checkRunningEvents(v))},ae.getBlock=()=>this.provider.getBlock(k.blockHash),ae.getTransaction=()=>this.provider.getTransaction(k.transactionHash),ae.getTransactionReceipt=()=>this.provider.getTransactionReceipt(k.transactionHash),v.prepareEvent(ae),ae}_addEventListener(v,k,ie){if(this.provider||logger19.throwError("events require a provider or a signer with a provider",Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),v.addListener(k,ie),this._runningEvents[v.tag]=v,!this._wrappedEmits[v.tag]){const ae=ce=>{let fe=this._wrapEvent(v,ce,k);if(fe.decodeError==null)try{const le=v.getEmit(fe);this.emit(v.filter,...le)}catch(le){fe.decodeError=le.error}v.filter!=null&&this.emit("event",fe),fe.decodeError!=null&&this.emit("error",fe.decodeError,fe)};this._wrappedEmits[v.tag]=ae,v.filter!=null&&this.provider.on(v.filter,ae)}}queryFilter(v,k,ie){const ae=this._getRunningEvent(v),ce=shallowCopy(ae.filter);return typeof k=="string"&&isHexString(k,32)?(ie!=null&&logger19.throwArgumentError("cannot specify toBlock with blockhash","toBlock",ie),ce.blockHash=k):(ce.fromBlock=k!=null?k:0,ce.toBlock=ie!=null?ie:"latest"),this.provider.getLogs(ce).then(fe=>fe.map(le=>this._wrapEvent(ae,le,null)))}on(v,k){return this._addEventListener(this._getRunningEvent(v),k,!1),this}once(v,k){return this._addEventListener(this._getRunningEvent(v),k,!0),this}emit(v,...k){if(!this.provider)return!1;const ie=this._getRunningEvent(v),ae=ie.run(k)>0;return this._checkRunningEvents(ie),ae}listenerCount(v){return this.provider?v==null?Object.keys(this._runningEvents).reduce((k,ie)=>k+this._runningEvents[ie].listenerCount(),0):this._getRunningEvent(v).listenerCount():0}listeners(v){if(!this.provider)return[];if(v==null){const k=[];for(let ie in this._runningEvents)this._runningEvents[ie].listeners().forEach(ae=>{k.push(ae)});return k}return this._getRunningEvent(v).listeners()}removeAllListeners(v){if(!this.provider)return this;if(v==null){for(const ie in this._runningEvents){const ae=this._runningEvents[ie];ae.removeAllListeners(),this._checkRunningEvents(ae)}return this}const k=this._getRunningEvent(v);return k.removeAllListeners(),this._checkRunningEvents(k),this}off(v,k){if(!this.provider)return this;const ie=this._getRunningEvent(v);return ie.removeListener(k),this._checkRunningEvents(ie),this}removeListener(v,k){return this.off(v,k)}},Contract=class extends BaseContract{},ContractFactory=class{constructor(v,k,ie){let ae=null;typeof k=="string"?ae=k:isBytes(k)?ae=hexlify(k):k&&typeof k.object=="string"?ae=k.object:ae="!",ae.substring(0,2)!=="0x"&&(ae="0x"+ae),(!isHexString(ae)||ae.length%2)&&logger19.throwArgumentError("invalid bytecode","bytecode",k),ie&&!Signer.isSigner(ie)&&logger19.throwArgumentError("invalid signer","signer",ie),defineReadOnly(this,"bytecode",ae),defineReadOnly(this,"interface",getStatic(new.target,"getInterface")(v)),defineReadOnly(this,"signer",ie||null)}getDeployTransaction(...v){let k={};if(v.length===this.interface.deploy.inputs.length+1&&typeof v[v.length-1]=="object"){k=shallowCopy(v.pop());for(const ie in k)if(!allowedTransactionKeys3[ie])throw new Error("unknown transaction override "+ie)}return["data","from","to"].forEach(ie=>{k[ie]!=null&&logger19.throwError("cannot override "+ie,Logger.errors.UNSUPPORTED_OPERATION,{operation:ie})}),k.value&&!BigNumber.from(k.value).isZero()&&!this.interface.deploy.payable&&logger19.throwError("non-payable constructor cannot override value",Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:k.value}),logger19.checkArgumentCount(v.length,this.interface.deploy.inputs.length," in Contract constructor"),k.data=hexlify(concat$4([this.bytecode,this.interface.encodeDeploy(v)])),k}deploy(...v){return __awaiter5(this,void 0,void 0,function*(){let k={};v.length===this.interface.deploy.inputs.length+1&&(k=v.pop()),logger19.checkArgumentCount(v.length,this.interface.deploy.inputs.length," in Contract constructor");const ie=yield resolveAddresses(this.signer,v,this.interface.deploy.inputs);ie.push(k);const ae=this.getDeployTransaction(...ie),ce=yield this.signer.sendTransaction(ae),fe=getStatic(this.constructor,"getContractAddress")(ce),le=getStatic(this.constructor,"getContract")(fe,this.interface,this.signer);return addContractWait(le,ce),defineReadOnly(le,"deployTransaction",ce),le})}attach(v){return this.constructor.getContract(v,this.interface,this.signer)}connect(v){return new this.constructor(this.interface,this.bytecode,v)}static fromSolidity(v,k){v==null&&logger19.throwError("missing compiler output",Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),typeof v=="string"&&(v=JSON.parse(v));const ie=v.abi;let ae=null;return v.bytecode?ae=v.bytecode:v.evm&&v.evm.bytecode&&(ae=v.evm.bytecode),new this(ie,ae,k)}static getInterface(v){return Contract.getInterface(v)}static getContractAddress(v){return getContractAddress(v)}static getContract(v,k,ie){return new Contract(v,k,ie)}},BaseX=class{constructor(v){defineReadOnly(this,"alphabet",v),defineReadOnly(this,"base",v.length),defineReadOnly(this,"_alphabetMap",{}),defineReadOnly(this,"_leader",v.charAt(0));for(let k=0;k0;)ie.push(fe%this.base),fe=fe/this.base|0}let ae="";for(let ce=0;k[ce]===0&&ce=0;--ce)ae+=this.alphabet[ie[ce]];return ae}decode(v){if(typeof v!="string")throw new TypeError("Expected String");let k=[];if(v.length===0)return new Uint8Array(k);k.push(0);for(let ie=0;ie>=8;for(;ce>0;)k.push(ce&255),ce>>=8}for(let ie=0;v[ie]===this._leader&&ie>24&255,pe[k.length+1]=Ee>>16&255,pe[k.length+2]=Ee>>8&255,pe[k.length+3]=Ee&255;let cr=arrayify(computeHmac(ce,v,pe));fe||(fe=cr.length,me=new Uint8Array(fe),le=Math.ceil(ae/fe),ye=ae-(le-1)*fe),me.set(cr);for(let Pr=1;Pr=256)throw new Error("Depth too large!");return base58check(concat$4([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",hexlify(this.depth),this.parentFingerprint,hexZeroPad(hexlify(this.index),4),this.chainCode,this.privateKey!=null?concat$4(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new HDNode(_constructorGuard4,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(v){if(v>4294967295)throw new Error("invalid index - "+String(v));let k=this.path;k&&(k+="/"+(v&~HardenedBit));const ie=new Uint8Array(37);if(v&HardenedBit){if(!this.privateKey)throw new Error("cannot derive child of neutered node");ie.set(arrayify(this.privateKey),1),k&&(k+="'")}else ie.set(arrayify(this.publicKey));for(let me=24;me>=0;me-=8)ie[33+(me>>3)]=v>>24-me&255;const ae=arrayify(computeHmac(SupportedAlgorithm.sha512,this.chainCode,ie)),ce=ae.slice(0,32),fe=ae.slice(32);let le=null,ve=null;this.privateKey?le=bytes32(BigNumber.from(ce).add(this.privateKey).mod(N)):ve=new SigningKey(hexlify(ce))._addPoint(this.publicKey);let pe=k;const ye=this.mnemonic;return ye&&(pe=Object.freeze({phrase:ye.phrase,path:k,locale:ye.locale||"en"})),new HDNode(_constructorGuard4,le,ve,this.fingerprint,bytes32(fe),v,this.depth+1,pe)}derivePath(v){const k=v.split("/");if(k.length===0||k[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+v);k[0]==="m"&&k.shift();let ie=this;for(let ae=0;ae=HardenedBit)throw new Error("invalid path index - "+ce);ie=ie._derive(HardenedBit+fe)}else if(ce.match(/^[0-9]+$/)){const fe=parseInt(ce);if(fe>=HardenedBit)throw new Error("invalid path index - "+ce);ie=ie._derive(fe)}else throw new Error("invalid path component - "+ce)}return ie}static _fromSeed(v,k){const ie=arrayify(v);if(ie.length<16||ie.length>64)throw new Error("invalid seed");const ae=arrayify(computeHmac(SupportedAlgorithm.sha512,MasterSecret,ie));return new HDNode(_constructorGuard4,bytes32(ae.slice(0,32)),null,"0x00000000",bytes32(ae.slice(32)),0,0,k)}static fromMnemonic(v,k,ie){return ie=getWordlist(ie),v=entropyToMnemonic(mnemonicToEntropy(v,ie),ie),HDNode._fromSeed(mnemonicToSeed(v,k),{phrase:v,path:"m",locale:ie.locale})}static fromSeed(v){return HDNode._fromSeed(v,null)}static fromExtendedKey(v){const k=Base58.decode(v);(k.length!==82||base58check(k.slice(0,78))!==v)&&logger22.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const ie=k[4],ae=hexlify(k.slice(5,9)),ce=parseInt(hexlify(k.slice(9,13)).substring(2),16),fe=hexlify(k.slice(13,45)),le=k.slice(45,78);switch(hexlify(k.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new HDNode(_constructorGuard4,null,hexlify(le),ae,fe,ce,ie,null);case"0x0488ade4":case"0x04358394 ":if(le[0]!==0)break;return new HDNode(_constructorGuard4,hexlify(le.slice(1)),null,ae,fe,ce,ie,null)}return logger22.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}};function mnemonicToSeed(v,k){k||(k="");const ie=toUtf8Bytes("mnemonic"+k,UnicodeNormalizationForm.NFKD);return pbkdf2(toUtf8Bytes(v,UnicodeNormalizationForm.NFKD),ie,2048,64,"sha512")}function mnemonicToEntropy(v,k){k=getWordlist(k),logger22.checkNormalize();const ie=k.split(v);if(ie.length%3!==0)throw new Error("invalid mnemonic");const ae=arrayify(new Uint8Array(Math.ceil(11*ie.length/8)));let ce=0;for(let ye=0;ye>3]|=1<<7-ce%8),ce++}const fe=32*ie.length/3,le=ie.length/3,ve=getUpperMask(le);if((arrayify(sha256(ae.slice(0,fe/8)))[0]&ve)!==(ae[ae.length-1]&ve))throw new Error("invalid checksum");return hexlify(ae.slice(0,fe/8))}function entropyToMnemonic(v,k){if(k=getWordlist(k),v=arrayify(v),v.length%4!==0||v.length<16||v.length>32)throw new Error("invalid entropy");const ie=[0];let ae=11;for(let le=0;le8?(ie[ie.length-1]<<=8,ie[ie.length-1]|=v[le],ae-=8):(ie[ie.length-1]<<=ae,ie[ie.length-1]|=v[le]>>8-ae,ie.push(v[le]&getLowerMask(8-ae)),ae+=3);const ce=v.length/4,fe=arrayify(sha256(v))[0]&getUpperMask(ce);return ie[ie.length-1]<<=ce,ie[ie.length-1]|=fe>>8-ce,k.join(ie.map(le=>k.getWord(le)))}function isValidMnemonic(v,k){try{return mnemonicToEntropy(v,k),!0}catch{}return!1}function getAccountPath(v){return(typeof v!="number"||v<0||v>=HardenedBit||v%1)&&logger22.throwArgumentError("invalid account index","index",v),`m/44'/60'/${v}'/0/0`}var version18="random/5.7.0",logger23=new Logger(version18);function getGlobal(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate globalThis object")}var anyGlobal=getGlobal(),crypto$1=anyGlobal.crypto||anyGlobal.msCrypto;(!crypto$1||!crypto$1.getRandomValues)&&(logger23.warn("WARNING: Missing strong random number source"),crypto$1={getRandomValues:function(v){return logger23.throwError("no secure random source avaialble",Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function randomBytes(v){(v<=0||v>1024||v%1||v!=v)&&logger23.throwArgumentError("invalid length","length",v);const k=new Uint8Array(v);return crypto$1.getRandomValues(k),arrayify(k)}function shuffled(v){v=v.slice();for(let k=v.length-1;k>0;k--){const ie=Math.floor(Math.random()*(k+1)),ae=v[k];v[k]=v[ie],v[ie]=ae}return v}var import_aes_js=__toESM(require_aes_js()),version19="json-wallets/5.7.0";function looseArrayify(v){return typeof v=="string"&&v.substring(0,2)!=="0x"&&(v="0x"+v),arrayify(v)}function zpad(v,k){for(v=String(v);v.length{Or=arrayify(Or);const ur=Or.slice(0,16),jr=Or.slice(16,32),Mr=Or.slice(32,64),Lr=new import_aes_js2.default.Counter(Ee),Vr=new import_aes_js2.default.ModeOfOperation.ctr(ur,Lr),Gr=arrayify(Vr.encrypt(ce)),Ur=keccak256(concat$4([jr,Gr])),Qr={address:v.address.substring(2).toLowerCase(),id:uuidV4(cr),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:hexlify(Ee).substring(2)},ciphertext:hexlify(Gr).substring(2),kdf:"scrypt",kdfparams:{salt:hexlify(me).substring(2),n:Br,dklen:32,p:Pr,r:$r},mac:Ur.substring(2)}};if(le){const vn=randomBytes(16),Yt=new import_aes_js2.default.Counter(vn),fn=new import_aes_js2.default.ModeOfOperation.ctr(Mr,Yt),Xt=arrayify(fn.encrypt(le)),Qt=new Date,Kr=Qt.getUTCFullYear()+"-"+zpad(Qt.getUTCMonth()+1,2)+"-"+zpad(Qt.getUTCDate(),2)+"T"+zpad(Qt.getUTCHours(),2)+"-"+zpad(Qt.getUTCMinutes(),2)+"-"+zpad(Qt.getUTCSeconds(),2)+".0Z";Qr["x-ethers"]={client:ye,gethFilename:"UTC--"+Kr+"--"+Qr.address,mnemonicCounter:hexlify(vn).substring(2),mnemonicCiphertext:hexlify(Xt).substring(2),path:ve,locale:pe,version:"0.1"}}return JSON.stringify(Qr)})}function decryptJsonWallet(v,k,ie){if(isCrowdsaleWallet(v)){ie&&ie(0);const ae=decrypt(v,k);return ie&&ie(1),Promise.resolve(ae)}return isKeystoreWallet(v)?decrypt2(v,k,ie):Promise.reject(new Error("invalid JSON wallet"))}function decryptJsonWalletSync(v,k){if(isCrowdsaleWallet(v))return decrypt(v,k);if(isKeystoreWallet(v))return decryptSync(v,k);throw new Error("invalid JSON wallet")}var version20="wallet/5.7.0",__awaiter7=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger26=new Logger(version20);function isAccount(v){return v!=null&&isHexString(v.privateKey,32)&&v.address!=null}function hasMnemonic2(v){const k=v.mnemonic;return k&&k.phrase}var Wallet=class extends Signer{constructor(v,k){if(super(),isAccount(v)){const ie=new SigningKey(v.privateKey);if(defineReadOnly(this,"_signingKey",()=>ie),defineReadOnly(this,"address",computeAddress(this.publicKey)),this.address!==getAddress(v.address)&&logger26.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),hasMnemonic2(v)){const ae=v.mnemonic;defineReadOnly(this,"_mnemonic",()=>({phrase:ae.phrase,path:ae.path||defaultPath,locale:ae.locale||"en"}));const ce=this.mnemonic,fe=HDNode.fromMnemonic(ce.phrase,null,ce.locale).derivePath(ce.path);computeAddress(fe.privateKey)!==this.address&&logger26.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else defineReadOnly(this,"_mnemonic",()=>null)}else{if(SigningKey.isSigningKey(v))v.curve!=="secp256k1"&&logger26.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),defineReadOnly(this,"_signingKey",()=>v);else{typeof v=="string"&&v.match(/^[0-9a-f]*$/i)&&v.length===64&&(v="0x"+v);const ie=new SigningKey(v);defineReadOnly(this,"_signingKey",()=>ie)}defineReadOnly(this,"_mnemonic",()=>null),defineReadOnly(this,"address",computeAddress(this.publicKey))}k&&!Provider.isProvider(k)&&logger26.throwArgumentError("invalid provider","provider",k),defineReadOnly(this,"provider",k||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(v){return new Wallet(this,v)}signTransaction(v){return resolveProperties(v).then(k=>{k.from!=null&&(getAddress(k.from)!==this.address&&logger26.throwArgumentError("transaction from address mismatch","transaction.from",v.from),delete k.from);const ie=this._signingKey().signDigest(keccak256(serialize(k)));return serialize(k,ie)})}signMessage(v){return __awaiter7(this,void 0,void 0,function*(){return joinSignature(this._signingKey().signDigest(hashMessage(v)))})}_signTypedData(v,k,ie){return __awaiter7(this,void 0,void 0,function*(){const ae=yield TypedDataEncoder.resolveNames(v,k,ie,ce=>(this.provider==null&&logger26.throwError("cannot resolve ENS names without a provider",Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:ce}),this.provider.resolveName(ce)));return joinSignature(this._signingKey().signDigest(TypedDataEncoder.hash(ae.domain,k,ae.value)))})}encrypt(v,k,ie){if(typeof k=="function"&&!ie&&(ie=k,k={}),ie&&typeof ie!="function")throw new Error("invalid callback");return k||(k={}),encrypt(this,v,k,ie)}static createRandom(v){let k=randomBytes(16);v||(v={}),v.extraEntropy&&(k=arrayify(hexDataSlice(keccak256(concat$4([k,v.extraEntropy])),0,16)));const ie=entropyToMnemonic(k,v.locale);return Wallet.fromMnemonic(ie,v.path,v.locale)}static fromEncryptedJson(v,k,ie){return decryptJsonWallet(v,k,ie).then(ae=>new Wallet(ae))}static fromEncryptedJsonSync(v,k){return new Wallet(decryptJsonWalletSync(v,k))}static fromMnemonic(v,k,ie){return k||(k=defaultPath),new Wallet(HDNode.fromMnemonic(v,null,ie).derivePath(k))}};function verifyMessage(v,k){return recoverAddress(hashMessage(v),k)}function verifyTypedData(v,k,ie,ae){return recoverAddress(TypedDataEncoder.hash(v,k,ie),ae)}var lib_exports4={};__export$1(lib_exports4,{AlchemyProvider:()=>AlchemyProvider,AlchemyWebSocketProvider:()=>AlchemyWebSocketProvider,AnkrProvider:()=>AnkrProvider,BaseProvider:()=>BaseProvider,CloudflareProvider:()=>CloudflareProvider,EtherscanProvider:()=>EtherscanProvider,FallbackProvider:()=>FallbackProvider,Formatter:()=>Formatter,InfuraProvider:()=>InfuraProvider,InfuraWebSocketProvider:()=>InfuraWebSocketProvider,IpcProvider:()=>IpcProvider,JsonRpcBatchProvider:()=>JsonRpcBatchProvider,JsonRpcProvider:()=>JsonRpcProvider,JsonRpcSigner:()=>JsonRpcSigner,NodesmithProvider:()=>NodesmithProvider,PocketProvider:()=>PocketProvider,Provider:()=>Provider,Resolver:()=>Resolver,StaticJsonRpcProvider:()=>StaticJsonRpcProvider,UrlJsonRpcProvider:()=>UrlJsonRpcProvider,Web3Provider:()=>Web3Provider,WebSocketProvider:()=>WebSocketProvider,getDefaultProvider:()=>getDefaultProvider,getNetwork:()=>getNetwork,isCommunityResourcable:()=>isCommunityResourcable,isCommunityResource:()=>isCommunityResource,showThrottleMessage:()=>showThrottleMessage});var version21="networks/5.7.1",logger27=new Logger(version21);function isRenetworkable(v){return v&&typeof v.renetwork=="function"}function ethDefaultProvider(v){const k=function(ie,ae){ae==null&&(ae={});const ce=[];if(ie.InfuraProvider&&ae.infura!=="-")try{ce.push(new ie.InfuraProvider(v,ae.infura))}catch{}if(ie.EtherscanProvider&&ae.etherscan!=="-")try{ce.push(new ie.EtherscanProvider(v,ae.etherscan))}catch{}if(ie.AlchemyProvider&&ae.alchemy!=="-")try{ce.push(new ie.AlchemyProvider(v,ae.alchemy))}catch{}if(ie.PocketProvider&&ae.pocket!=="-"){const fe=["goerli","ropsten","rinkeby","sepolia"];try{const le=new ie.PocketProvider(v,ae.pocket);le.network&&fe.indexOf(le.network.name)===-1&&ce.push(le)}catch{}}if(ie.CloudflareProvider&&ae.cloudflare!=="-")try{ce.push(new ie.CloudflareProvider(v))}catch{}if(ie.AnkrProvider&&ae.ankr!=="-")try{const fe=["ropsten"],le=new ie.AnkrProvider(v,ae.ankr);le.network&&fe.indexOf(le.network.name)===-1&&ce.push(le)}catch{}if(ce.length===0)return null;if(ie.FallbackProvider){let fe=1;return ae.quorum!=null?fe=ae.quorum:v==="homestead"&&(fe=2),new ie.FallbackProvider(ce,fe)}return ce[0]};return k.renetwork=function(ie){return ethDefaultProvider(ie)},k}function etcDefaultProvider(v,k){const ie=function(ae,ce){return ae.JsonRpcProvider?new ae.JsonRpcProvider(v,k):null};return ie.renetwork=function(ae){return etcDefaultProvider(v,ae)},ie}var homestead={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:ethDefaultProvider("homestead")},ropsten={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:ethDefaultProvider("ropsten")},classicMordor={chainId:63,name:"classicMordor",_defaultProvider:etcDefaultProvider("https://www.ethercluster.com/mordor","classicMordor")},networks={unspecified:{chainId:0,name:"unspecified"},homestead,mainnet:homestead,morden:{chainId:2,name:"morden"},ropsten,testnet:ropsten,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:ethDefaultProvider("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:ethDefaultProvider("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:ethDefaultProvider("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:ethDefaultProvider("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:etcDefaultProvider("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor,classicTestnet:classicMordor,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:etcDefaultProvider("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:ethDefaultProvider("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:ethDefaultProvider("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function getNetwork(v){if(v==null)return null;if(typeof v=="number"){for(const ae in networks){const ce=networks[ae];if(ce.chainId===v)return{name:ce.name,chainId:ce.chainId,ensAddress:ce.ensAddress||null,_defaultProvider:ce._defaultProvider||null}}return{chainId:v,name:"unknown"}}if(typeof v=="string"){const ae=networks[v];return ae==null?null:{name:ae.name,chainId:ae.chainId,ensAddress:ae.ensAddress,_defaultProvider:ae._defaultProvider||null}}const k=networks[v.name];if(!k)return typeof v.chainId!="number"&&logger27.throwArgumentError("invalid network chainId","network",v),v;v.chainId!==0&&v.chainId!==k.chainId&&logger27.throwArgumentError("network chainId mismatch","network",v);let ie=v._defaultProvider||null;return ie==null&&k._defaultProvider&&(isRenetworkable(k._defaultProvider)?ie=k._defaultProvider.renetwork(v):ie=k._defaultProvider),{name:v.name,chainId:k.chainId,ensAddress:v.ensAddress||k.ensAddress||null,_defaultProvider:ie}}var version22="web/5.7.1",__awaiter8=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})};function getUrl(v,k){return __awaiter8(this,void 0,void 0,function*(){k==null&&(k={});const ie={method:k.method||"GET",headers:k.headers||{},body:k.body||void 0};if(k.skipFetchSetup!==!0&&(ie.mode="cors",ie.cache="no-cache",ie.credentials="same-origin",ie.redirect="follow",ie.referrer="client"),k.fetchOptions!=null){const le=k.fetchOptions;le.mode&&(ie.mode=le.mode),le.cache&&(ie.cache=le.cache),le.credentials&&(ie.credentials=le.credentials),le.redirect&&(ie.redirect=le.redirect),le.referrer&&(ie.referrer=le.referrer)}const ae=yield fetch(v,ie),ce=yield ae.arrayBuffer(),fe={};return ae.headers.forEach?ae.headers.forEach((le,ve)=>{fe[ve.toLowerCase()]=le}):ae.headers.keys().forEach(le=>{fe[le.toLowerCase()]=ae.headers.get(le)}),{headers:fe,statusCode:ae.status,statusMessage:ae.statusText,body:arrayify(new Uint8Array(ce))}})}var __awaiter9=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger28=new Logger(version22);function staller(v){return new Promise(k=>{setTimeout(k,v)})}function bodyify(v,k){if(v==null)return null;if(typeof v=="string")return v;if(isBytesLike(v)){if(k&&(k.split("/")[0]==="text"||k.split(";")[0].trim()==="application/json"))try{return toUtf8String(v)}catch{}return hexlify(v)}return v}function unpercent(v){return toUtf8Bytes(v.replace(/%([0-9a-f][0-9a-f])/gi,(k,ie)=>String.fromCharCode(parseInt(ie,16))))}function _fetchData(v,k,ie){const ae=typeof v=="object"&&v.throttleLimit!=null?v.throttleLimit:12;logger28.assertArgument(ae>0&&ae%1===0,"invalid connection throttle limit","connection.throttleLimit",ae);const ce=typeof v=="object"?v.throttleCallback:null,fe=typeof v=="object"&&typeof v.throttleSlotInterval=="number"?v.throttleSlotInterval:100;logger28.assertArgument(fe>0&&fe%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",fe);const le=typeof v=="object"?!!v.errorPassThrough:!1,ve={};let pe=null;const ye={method:"GET"};let me=!1,Ee=2*60*1e3;if(typeof v=="string")pe=v;else if(typeof v=="object"){if((v==null||v.url==null)&&logger28.throwArgumentError("missing URL","connection.url",v),pe=v.url,typeof v.timeout=="number"&&v.timeout>0&&(Ee=v.timeout),v.headers)for(const ur in v.headers)ve[ur.toLowerCase()]={key:ur,value:String(v.headers[ur])},["if-none-match","if-modified-since"].indexOf(ur.toLowerCase())>=0&&(me=!0);if(ye.allowGzip=!!v.allowGzip,v.user!=null&&v.password!=null){pe.substring(0,6)!=="https:"&&v.allowInsecureAuthentication!==!0&&logger28.throwError("basic authentication requires a secure https url",Logger.errors.INVALID_ARGUMENT,{argument:"url",url:pe,user:v.user,password:"[REDACTED]"});const ur=v.user+":"+v.password;ve.authorization={key:"Authorization",value:"Basic "+encode2(toUtf8Bytes(ur))}}v.skipFetchSetup!=null&&(ye.skipFetchSetup=!!v.skipFetchSetup),v.fetchOptions!=null&&(ye.fetchOptions=shallowCopy(v.fetchOptions))}const cr=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),Br=pe?pe.match(cr):null;if(Br)try{const ur={statusCode:200,statusMessage:"OK",headers:{"content-type":Br[1]||"text/plain"},body:Br[2]?decode2(Br[3]):unpercent(Br[3])};let jr=ur.body;return ie&&(jr=ie(ur.body,ur)),Promise.resolve(jr)}catch(ur){logger28.throwError("processing response error",Logger.errors.SERVER_ERROR,{body:bodyify(Br[1],Br[2]),error:ur,requestBody:null,requestMethod:"GET",url:pe})}k&&(ye.method="POST",ye.body=k,ve["content-type"]==null&&(ve["content-type"]={key:"Content-Type",value:"application/octet-stream"}),ve["content-length"]==null&&(ve["content-length"]={key:"Content-Length",value:String(k.length)}));const $r={};Object.keys(ve).forEach(ur=>{const jr=ve[ur];$r[jr.key]=jr.value}),ye.headers=$r;const Pr=function(){let ur=null;return{promise:new Promise(function(Lr,Vr){Ee&&(ur=setTimeout(()=>{ur!=null&&(ur=null,Vr(logger28.makeError("timeout",Logger.errors.TIMEOUT,{requestBody:bodyify(ye.body,$r["content-type"]),requestMethod:ye.method,timeout:Ee,url:pe})))},Ee))}),cancel:function(){ur!=null&&(clearTimeout(ur),ur=null)}}}(),Or=function(){return __awaiter9(this,void 0,void 0,function*(){for(let ur=0;ur=300)&&(Pr.cancel(),logger28.throwError("bad response",Logger.errors.SERVER_ERROR,{status:jr.statusCode,headers:jr.headers,body:bodyify(Mr,jr.headers?jr.headers["content-type"]:null),requestBody:bodyify(ye.body,$r["content-type"]),requestMethod:ye.method,url:pe})),ie)try{const Lr=yield ie(Mr,jr);return Pr.cancel(),Lr}catch(Lr){if(Lr.throttleRetry&&ur{let ve=null;if(fe!=null)try{ve=JSON.parse(toUtf8String(fe))}catch(pe){logger28.throwError("invalid JSON",Logger.errors.SERVER_ERROR,{body:fe,error:pe})}return ie&&(ve=ie(ve,le)),ve},ce=null;if(k!=null){ce=toUtf8Bytes(k);const fe=typeof v=="string"?{url:v}:shallowCopy(v);fe.headers?Object.keys(fe.headers).filter(ve=>ve.toLowerCase()==="content-type").length!==0||(fe.headers=shallowCopy(fe.headers),fe.headers["content-type"]="application/json"):fe.headers={"content-type":"application/json"},v=fe}return _fetchData(v,ce,ae)}function poll(v,k){return k||(k={}),k=shallowCopy(k),k.floor==null&&(k.floor=0),k.ceiling==null&&(k.ceiling=1e4),k.interval==null&&(k.interval=250),new Promise(function(ie,ae){let ce=null,fe=!1;const le=()=>fe?!1:(fe=!0,ce&&clearTimeout(ce),!0);k.timeout&&(ce=setTimeout(()=>{le()&&ae(new Error("timeout"))},k.timeout));const ve=k.retryLimit;let pe=0;function ye(){return v().then(function(me){if(me!==void 0)le()&&ie(me);else if(k.oncePoll)k.oncePoll.once("poll",ye);else if(k.onceBlock)k.onceBlock.once("block",ye);else if(!fe){if(pe++,pe>ve){le()&&ae(new Error("retry limit reached"));return}let Ee=k.interval*parseInt(String(Math.random()*Math.pow(2,pe)));Eek.ceiling&&(Ee=k.ceiling),setTimeout(ye,Ee)}return null},function(me){le()&&ae(me)})}ye()})}var import_bech32=__toESM(require_bech32()),version23="providers/5.7.2",logger29=new Logger(version23),Formatter=class{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const v={},k=this.address.bind(this),ie=this.bigNumber.bind(this),ae=this.blockTag.bind(this),ce=this.data.bind(this),fe=this.hash.bind(this),le=this.hex.bind(this),ve=this.number.bind(this),pe=this.type.bind(this),ye=me=>this.data(me,!0);return v.transaction={hash:fe,type:pe,accessList:Formatter.allowNull(this.accessList.bind(this),null),blockHash:Formatter.allowNull(fe,null),blockNumber:Formatter.allowNull(ve,null),transactionIndex:Formatter.allowNull(ve,null),confirmations:Formatter.allowNull(ve,null),from:k,gasPrice:Formatter.allowNull(ie),maxPriorityFeePerGas:Formatter.allowNull(ie),maxFeePerGas:Formatter.allowNull(ie),gasLimit:ie,to:Formatter.allowNull(k,null),value:ie,nonce:ve,data:ce,r:Formatter.allowNull(this.uint256),s:Formatter.allowNull(this.uint256),v:Formatter.allowNull(ve),creates:Formatter.allowNull(k,null),raw:Formatter.allowNull(ce)},v.transactionRequest={from:Formatter.allowNull(k),nonce:Formatter.allowNull(ve),gasLimit:Formatter.allowNull(ie),gasPrice:Formatter.allowNull(ie),maxPriorityFeePerGas:Formatter.allowNull(ie),maxFeePerGas:Formatter.allowNull(ie),to:Formatter.allowNull(k),value:Formatter.allowNull(ie),data:Formatter.allowNull(ye),type:Formatter.allowNull(ve),accessList:Formatter.allowNull(this.accessList.bind(this),null)},v.receiptLog={transactionIndex:ve,blockNumber:ve,transactionHash:fe,address:k,topics:Formatter.arrayOf(fe),data:ce,logIndex:ve,blockHash:fe},v.receipt={to:Formatter.allowNull(this.address,null),from:Formatter.allowNull(this.address,null),contractAddress:Formatter.allowNull(k,null),transactionIndex:ve,root:Formatter.allowNull(le),gasUsed:ie,logsBloom:Formatter.allowNull(ce),blockHash:fe,transactionHash:fe,logs:Formatter.arrayOf(this.receiptLog.bind(this)),blockNumber:ve,confirmations:Formatter.allowNull(ve,null),cumulativeGasUsed:ie,effectiveGasPrice:Formatter.allowNull(ie),status:Formatter.allowNull(ve),type:pe},v.block={hash:Formatter.allowNull(fe),parentHash:fe,number:ve,timestamp:ve,nonce:Formatter.allowNull(le),difficulty:this.difficulty.bind(this),gasLimit:ie,gasUsed:ie,miner:Formatter.allowNull(k),extraData:ce,transactions:Formatter.allowNull(Formatter.arrayOf(fe)),baseFeePerGas:Formatter.allowNull(ie)},v.blockWithTransactions=shallowCopy(v.block),v.blockWithTransactions.transactions=Formatter.allowNull(Formatter.arrayOf(this.transactionResponse.bind(this))),v.filter={fromBlock:Formatter.allowNull(ae,void 0),toBlock:Formatter.allowNull(ae,void 0),blockHash:Formatter.allowNull(fe,void 0),address:Formatter.allowNull(k,void 0),topics:Formatter.allowNull(this.topics.bind(this),void 0)},v.filterLog={blockNumber:Formatter.allowNull(ve),blockHash:Formatter.allowNull(fe),transactionIndex:ve,removed:Formatter.allowNull(this.boolean.bind(this)),address:k,data:Formatter.allowFalsish(ce,"0x"),topics:Formatter.arrayOf(fe),transactionHash:fe,logIndex:ve},v}accessList(v){return accessListify(v||[])}number(v){return v==="0x"?0:BigNumber.from(v).toNumber()}type(v){return v==="0x"||v==null?0:BigNumber.from(v).toNumber()}bigNumber(v){return BigNumber.from(v)}boolean(v){if(typeof v=="boolean")return v;if(typeof v=="string"){if(v=v.toLowerCase(),v==="true")return!0;if(v==="false")return!1}throw new Error("invalid boolean - "+v)}hex(v,k){return typeof v=="string"&&(!k&&v.substring(0,2)!=="0x"&&(v="0x"+v),isHexString(v))?v.toLowerCase():logger29.throwArgumentError("invalid hash","value",v)}data(v,k){const ie=this.hex(v,k);if(ie.length%2!==0)throw new Error("invalid data; odd-length - "+v);return ie}address(v){return getAddress(v)}callAddress(v){if(!isHexString(v,32))return null;const k=getAddress(hexDataSlice(v,12));return k===AddressZero?null:k}contractAddress(v){return getContractAddress(v)}blockTag(v){if(v==null)return"latest";if(v==="earliest")return"0x0";switch(v){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return v}if(typeof v=="number"||isHexString(v))return hexValue(v);throw new Error("invalid blockTag")}hash(v,k){const ie=this.hex(v,k);return hexDataLength(ie)!==32?logger29.throwArgumentError("invalid hash","value",v):ie}difficulty(v){if(v==null)return null;const k=BigNumber.from(v);try{return k.toNumber()}catch{}return null}uint256(v){if(!isHexString(v))throw new Error("invalid uint256");return hexZeroPad(v,32)}_block(v,k){v.author!=null&&v.miner==null&&(v.miner=v.author);const ie=v._difficulty!=null?v._difficulty:v.difficulty,ae=Formatter.check(k,v);return ae._difficulty=ie==null?null:BigNumber.from(ie),ae}block(v){return this._block(v,this.formats.block)}blockWithTransactions(v){return this._block(v,this.formats.blockWithTransactions)}transactionRequest(v){return Formatter.check(this.formats.transactionRequest,v)}transactionResponse(v){v.gas!=null&&v.gasLimit==null&&(v.gasLimit=v.gas),v.to&&BigNumber.from(v.to).isZero()&&(v.to="0x0000000000000000000000000000000000000000"),v.input!=null&&v.data==null&&(v.data=v.input),v.to==null&&v.creates==null&&(v.creates=this.contractAddress(v)),(v.type===1||v.type===2)&&v.accessList==null&&(v.accessList=[]);const k=Formatter.check(this.formats.transaction,v);if(v.chainId!=null){let ie=v.chainId;isHexString(ie)&&(ie=BigNumber.from(ie).toNumber()),k.chainId=ie}else{let ie=v.networkId;ie==null&&k.v==null&&(ie=v.chainId),isHexString(ie)&&(ie=BigNumber.from(ie).toNumber()),typeof ie!="number"&&k.v!=null&&(ie=(k.v-35)/2,ie<0&&(ie=0),ie=parseInt(ie)),typeof ie!="number"&&(ie=0),k.chainId=ie}return k.blockHash&&k.blockHash.replace(/0/g,"")==="x"&&(k.blockHash=null),k}transaction(v){return parse(v)}receiptLog(v){return Formatter.check(this.formats.receiptLog,v)}receipt(v){const k=Formatter.check(this.formats.receipt,v);if(k.root!=null)if(k.root.length<=4){const ie=BigNumber.from(k.root).toNumber();ie===0||ie===1?(k.status!=null&&k.status!==ie&&logger29.throwArgumentError("alt-root-status/status mismatch","value",{root:k.root,status:k.status}),k.status=ie,delete k.root):logger29.throwArgumentError("invalid alt-root-status","value.root",k.root)}else k.root.length!==66&&logger29.throwArgumentError("invalid root hash","value.root",k.root);return k.status!=null&&(k.byzantium=!0),k}topics(v){return Array.isArray(v)?v.map(k=>this.topics(k)):v!=null?this.hash(v,!0):null}filter(v){return Formatter.check(this.formats.filter,v)}filterLog(v){return Formatter.check(this.formats.filterLog,v)}static check(v,k){const ie={};for(const ae in v)try{const ce=v[ae](k[ae]);ce!==void 0&&(ie[ae]=ce)}catch(ce){throw ce.checkKey=ae,ce.checkValue=k[ae],ce}return ie}static allowNull(v,k){return function(ie){return ie==null?k:v(ie)}}static allowFalsish(v,k){return function(ie){return ie?v(ie):k}}static arrayOf(v){return function(k){if(!Array.isArray(k))throw new Error("not an array");const ie=[];return k.forEach(function(ae){ie.push(v(ae))}),ie}}};function isCommunityResourcable(v){return v&&typeof v.isCommunityResource=="function"}function isCommunityResource(v){return isCommunityResourcable(v)&&v.isCommunityResource()}var throttleMessage=!1;function showThrottleMessage(){throttleMessage||(throttleMessage=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}var __awaiter10=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger30=new Logger(version23),MAX_CCIP_REDIRECTS=10;function checkTopic(v){return v==null?"null":(hexDataLength(v)!==32&&logger30.throwArgumentError("invalid topic","topic",v),v.toLowerCase())}function serializeTopics(v){for(v=v.slice();v.length>0&&v[v.length-1]==null;)v.pop();return v.map(k=>{if(Array.isArray(k)){const ie={};k.forEach(ce=>{ie[checkTopic(ce)]=!0});const ae=Object.keys(ie);return ae.sort(),ae.join("|")}else return checkTopic(k)}).join("&")}function deserializeTopics(v){return v===""?[]:v.split(/&/g).map(k=>{if(k==="")return[];const ie=k.split("|").map(ae=>ae==="null"?null:ae);return ie.length===1?ie[0]:ie})}function getEventTag2(v){if(typeof v=="string"){if(v=v.toLowerCase(),hexDataLength(v)===32)return"tx:"+v;if(v.indexOf(":")===-1)return v}else{if(Array.isArray(v))return"filter:*:"+serializeTopics(v);if(ForkEvent.isForkEvent(v))throw logger30.warn("not implemented"),new Error("not implemented");if(v&&typeof v=="object")return"filter:"+(v.address||"*")+":"+serializeTopics(v.topics||[])}throw new Error("invalid event - "+v)}function getTime(){return new Date().getTime()}function stall(v){return new Promise(k=>{setTimeout(k,v)})}var PollableEvents=["block","network","pending","poll"],Event=class{constructor(v,k,ie){defineReadOnly(this,"tag",v),defineReadOnly(this,"listener",k),defineReadOnly(this,"once",ie),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const v=this.tag.split(":");return v[0]!=="tx"?null:v[1]}get filter(){const v=this.tag.split(":");if(v[0]!=="filter")return null;const k=v[1],ie=deserializeTopics(v[2]),ae={};return ie.length>0&&(ae.topics=ie),k&&k!=="*"&&(ae.address=k),ae}pollable(){return this.tag.indexOf(":")>=0||PollableEvents.indexOf(this.tag)>=0}},coinInfos={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function bytes32ify(v){return hexZeroPad(BigNumber.from(v).toHexString(),32)}function base58Encode(v){return Base58.encode(concat$4([v,hexDataSlice(sha256(sha256(v)),0,4)]))}var matcherIpfs=new RegExp("^(ipfs)://(.*)$","i"),matchers=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),matcherIpfs,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function _parseString(v,k){try{return toUtf8String(_parseBytes(v,k))}catch{}return null}function _parseBytes(v,k){if(v==="0x")return null;const ie=BigNumber.from(hexDataSlice(v,k,k+32)).toNumber(),ae=BigNumber.from(hexDataSlice(v,ie,ie+32)).toNumber();return hexDataSlice(v,ie+32,ie+32+ae)}function getIpfsLink(v){return v.match(/^ipfs:\/\/ipfs\//i)?v=v.substring(12):v.match(/^ipfs:\/\//i)?v=v.substring(7):logger30.throwArgumentError("unsupported IPFS format","link",v),`https://gateway.ipfs.io/ipfs/${v}`}function numPad(v){const k=arrayify(v);if(k.length>32)throw new Error("internal; should not happen");const ie=new Uint8Array(32);return ie.set(k,32-k.length),ie}function bytesPad(v){if(v.length%32===0)return v;const k=new Uint8Array(Math.ceil(v.length/32)*32);return k.set(v),k}function encodeBytes(v){const k=[];let ie=0;for(let ae=0;aeBigNumber.from(v).eq(1)).catch(v=>{if(v.code===Logger.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,v})),this._supportsEip2544}_fetch(v,k){return __awaiter10(this,void 0,void 0,function*(){const ie={to:this.address,ccipReadEnabled:!0,data:hexConcat([v,namehash(this.name),k||"0x"])};let ae=!1;(yield this.supportsWildcard())&&(ae=!0,ie.data=hexConcat(["0x9061b923",encodeBytes([dnsEncode(this.name),ie.data])]));try{let ce=yield this.provider.call(ie);return arrayify(ce).length%32===4&&logger30.throwError("resolver threw error",Logger.errors.CALL_EXCEPTION,{transaction:ie,data:ce}),ae&&(ce=_parseBytes(ce,0)),ce}catch(ce){if(ce.code===Logger.errors.CALL_EXCEPTION)return null;throw ce}})}_fetchBytes(v,k){return __awaiter10(this,void 0,void 0,function*(){const ie=yield this._fetch(v,k);return ie!=null?_parseBytes(ie,0):null})}_getAddress(v,k){const ie=coinInfos[String(v)];if(ie==null&&logger30.throwError(`unsupported coin type: ${v}`,Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${v})`}),ie.ilk==="eth")return this.provider.formatter.address(k);const ae=arrayify(k);if(ie.p2pkh!=null){const ce=k.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(ce){const fe=parseInt(ce[1],16);if(ce[2].length===fe*2&&fe>=1&&fe<=75)return base58Encode(concat$4([[ie.p2pkh],"0x"+ce[2]]))}}if(ie.p2sh!=null){const ce=k.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(ce){const fe=parseInt(ce[1],16);if(ce[2].length===fe*2&&fe>=1&&fe<=75)return base58Encode(concat$4([[ie.p2sh],"0x"+ce[2]]))}}if(ie.prefix!=null){const ce=ae[1];let fe=ae[0];if(fe===0?ce!==20&&ce!==32&&(fe=-1):fe=-1,fe>=0&&ae.length===2+ce&&ce>=1&&ce<=75){const le=import_bech32.default.toWords(ae.slice(2));return le.unshift(fe),import_bech32.default.encode(ie.prefix,le)}}return null}getAddress(v){return __awaiter10(this,void 0,void 0,function*(){if(v==null&&(v=60),v===60)try{const ae=yield this._fetch("0x3b3b57de");return ae==="0x"||ae===HashZero?null:this.provider.formatter.callAddress(ae)}catch(ae){if(ae.code===Logger.errors.CALL_EXCEPTION)return null;throw ae}const k=yield this._fetchBytes("0xf1cb7e06",bytes32ify(v));if(k==null||k==="0x")return null;const ie=this._getAddress(v,k);return ie==null&&logger30.throwError("invalid or unsupported coin data",Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${v})`,coinType:v,data:k}),ie})}getAvatar(){return __awaiter10(this,void 0,void 0,function*(){const v=[{type:"name",content:this.name}];try{const k=yield this.getText("avatar");if(k==null)return null;for(let ie=0;iefe[ve]);return"sia://"+le}return logger30.throwError("invalid or unsupported content hash data",Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:v})})}getText(v){return __awaiter10(this,void 0,void 0,function*(){let k=toUtf8Bytes(v);k=concat$4([bytes32ify(64),bytes32ify(k.length),k]),k.length%32!==0&&(k=concat$4([k,hexZeroPad("0x",32-v.length%32)]));const ie=yield this._fetchBytes("0x59d1d43c",hexlify(k));return ie==null||ie==="0x"?null:toUtf8String(ie)})}},defaultFormatter=null,nextPollId=1,BaseProvider=class extends Provider{constructor(v){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),defineReadOnly(this,"anyNetwork",v==="any"),this.anyNetwork&&(v=this.detectNetwork()),v instanceof Promise)this._networkPromise=v,v.catch(k=>{}),this._ready().catch(k=>{});else{const k=getStatic(new.target,"getNetwork")(v);k?(defineReadOnly(this,"_network",k),this.emit("network",k,null)):logger30.throwArgumentError("invalid network","network",v)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return __awaiter10(this,void 0,void 0,function*(){if(this._network==null){let v=null;if(this._networkPromise)try{v=yield this._networkPromise}catch{}v==null&&(v=yield this.detectNetwork()),v||logger30.throwError("no network detected",Logger.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=v:defineReadOnly(this,"_network",v),this.emit("network",v,null))}return this._network})}get ready(){return poll(()=>this._ready().then(v=>v,v=>{if(!(v.code===Logger.errors.NETWORK_ERROR&&v.event==="noNetwork"))throw v}))}static getFormatter(){return defaultFormatter==null&&(defaultFormatter=new Formatter),defaultFormatter}static getNetwork(v){return getNetwork(v==null?"homestead":v)}ccipReadFetch(v,k,ie){return __awaiter10(this,void 0,void 0,function*(){if(this.disableCcipRead||ie.length===0)return null;const ae=v.to.toLowerCase(),ce=k.toLowerCase(),fe=[];for(let le=0;le=0?null:JSON.stringify({data:ce,sender:ae}),me=yield fetchJson({url:pe,errorPassThrough:!0},ye,(cr,Br)=>(cr.status=Br.statusCode,cr));if(me.data)return me.data;const Ee=me.message||"unknown error";if(me.status>=400&&me.status<500)return logger30.throwError(`response not found during CCIP fetch: ${Ee}`,Logger.errors.SERVER_ERROR,{url:ve,errorMessage:Ee});fe.push(Ee)}return logger30.throwError(`error encountered during CCIP fetch: ${fe.map(le=>JSON.stringify(le)).join(", ")}`,Logger.errors.SERVER_ERROR,{urls:ie,errorMessages:fe})})}_getInternalBlockNumber(v){return __awaiter10(this,void 0,void 0,function*(){if(yield this._ready(),v>0)for(;this._internalBlockNumber;){const ae=this._internalBlockNumber;try{const ce=yield ae;if(getTime()-ce.respTime<=v)return ce.blockNumber;break}catch{if(this._internalBlockNumber===ae)break}}const k=getTime(),ie=resolveProperties({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(ae=>null,ae=>ae)}).then(({blockNumber:ae,networkError:ce})=>{if(ce)throw this._internalBlockNumber===ie&&(this._internalBlockNumber=null),ce;const fe=getTime();return ae=BigNumber.from(ae).toNumber(),ae{this._internalBlockNumber===ie&&(this._internalBlockNumber=null)}),(yield ie).blockNumber})}poll(){return __awaiter10(this,void 0,void 0,function*(){const v=nextPollId++,k=[];let ie=null;try{ie=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(ae){this.emit("error",ae);return}if(this._setFastBlockNumber(ie),this.emit("poll",v,ie),ie===this._lastBlockNumber){this.emit("didPoll",v);return}if(this._emitted.block===-2&&(this._emitted.block=ie-1),Math.abs(this._emitted.block-ie)>1e3)logger30.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${ie})`),this.emit("error",logger30.makeError("network block skew detected",Logger.errors.NETWORK_ERROR,{blockNumber:ie,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",ie);else for(let ae=this._emitted.block+1;ae<=ie;ae++)this.emit("block",ae);this._emitted.block!==ie&&(this._emitted.block=ie,Object.keys(this._emitted).forEach(ae=>{if(ae==="block")return;const ce=this._emitted[ae];ce!=="pending"&&ie-ce>12&&delete this._emitted[ae]})),this._lastBlockNumber===-2&&(this._lastBlockNumber=ie-1),this._events.forEach(ae=>{switch(ae.type){case"tx":{const ce=ae.hash;let fe=this.getTransactionReceipt(ce).then(le=>(!le||le.blockNumber==null||(this._emitted["t:"+ce]=le.blockNumber,this.emit(ce,le)),null)).catch(le=>{this.emit("error",le)});k.push(fe);break}case"filter":{if(!ae._inflight){ae._inflight=!0,ae._lastBlockNumber===-2&&(ae._lastBlockNumber=ie-1);const ce=ae.filter;ce.fromBlock=ae._lastBlockNumber+1,ce.toBlock=ie;const fe=ce.toBlock-this._maxFilterBlockRange;fe>ce.fromBlock&&(ce.fromBlock=fe),ce.fromBlock<0&&(ce.fromBlock=0);const le=this.getLogs(ce).then(ve=>{ae._inflight=!1,ve.length!==0&&ve.forEach(pe=>{pe.blockNumber>ae._lastBlockNumber&&(ae._lastBlockNumber=pe.blockNumber),this._emitted["b:"+pe.blockHash]=pe.blockNumber,this._emitted["t:"+pe.transactionHash]=pe.blockNumber,this.emit(ce,pe)})}).catch(ve=>{this.emit("error",ve),ae._inflight=!1});k.push(le)}break}}}),this._lastBlockNumber=ie,Promise.all(k).then(()=>{this.emit("didPoll",v)}).catch(ae=>{this.emit("error",ae)})})}resetEventsBlock(v){this._lastBlockNumber=v-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return __awaiter10(this,void 0,void 0,function*(){return logger30.throwError("provider does not support network detection",Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return __awaiter10(this,void 0,void 0,function*(){const v=yield this._ready(),k=yield this.detectNetwork();if(v.chainId!==k.chainId){if(this.anyNetwork)return this._network=k,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",k,v),yield stall(0),this._network;const ie=logger30.makeError("underlying network changed",Logger.errors.NETWORK_ERROR,{event:"changed",network:v,detectedNetwork:k});throw this.emit("error",ie),ie}return v})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(v=>{this._setFastBlockNumber(v)},v=>{}),this._fastBlockNumber!=null?this._fastBlockNumber:-1}get polling(){return this._poller!=null}set polling(v){v&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!v&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(v){if(typeof v!="number"||v<=0||parseInt(String(v))!=v)throw new Error("invalid polling interval");this._pollingInterval=v,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const v=getTime();return v-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=v,this._fastBlockNumberPromise=this.getBlockNumber().then(k=>((this._fastBlockNumber==null||k>this._fastBlockNumber)&&(this._fastBlockNumber=k),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(v){this._fastBlockNumber!=null&&vthis._fastBlockNumber)&&(this._fastBlockNumber=v,this._fastBlockNumberPromise=Promise.resolve(v)))}waitForTransaction(v,k,ie){return __awaiter10(this,void 0,void 0,function*(){return this._waitForTransaction(v,k==null?1:k,ie||0,null)})}_waitForTransaction(v,k,ie,ae){return __awaiter10(this,void 0,void 0,function*(){const ce=yield this.getTransactionReceipt(v);return(ce?ce.confirmations:0)>=k?ce:new Promise((fe,le)=>{const ve=[];let pe=!1;const ye=function(){return pe?!0:(pe=!0,ve.forEach(Ee=>{Ee()}),!1)},me=Ee=>{Ee.confirmations{this.removeListener(v,me)}),ae){let Ee=ae.startBlock,cr=null;const Br=$r=>__awaiter10(this,void 0,void 0,function*(){pe||(yield stall(1e3),this.getTransactionCount(ae.from).then(Pr=>__awaiter10(this,void 0,void 0,function*(){if(!pe){if(Pr<=ae.nonce)Ee=$r;else{{const Or=yield this.getTransaction(v);if(Or&&Or.blockNumber!=null)return}for(cr==null&&(cr=Ee-3,cr{pe||this.once("block",Br)}))});if(pe)return;this.once("block",Br),ve.push(()=>{this.removeListener("block",Br)})}if(typeof ie=="number"&&ie>0){const Ee=setTimeout(()=>{ye()||le(logger30.makeError("timeout exceeded",Logger.errors.TIMEOUT,{timeout:ie}))},ie);Ee.unref&&Ee.unref(),ve.push(()=>{clearTimeout(Ee)})}})})}getBlockNumber(){return __awaiter10(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork();const v=yield this.perform("getGasPrice",{});try{return BigNumber.from(v)}catch(k){return logger30.throwError("bad result from backend",Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:v,error:k})}})}getBalance(v,k){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork();const ie=yield resolveProperties({address:this._getAddress(v),blockTag:this._getBlockTag(k)}),ae=yield this.perform("getBalance",ie);try{return BigNumber.from(ae)}catch(ce){return logger30.throwError("bad result from backend",Logger.errors.SERVER_ERROR,{method:"getBalance",params:ie,result:ae,error:ce})}})}getTransactionCount(v,k){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork();const ie=yield resolveProperties({address:this._getAddress(v),blockTag:this._getBlockTag(k)}),ae=yield this.perform("getTransactionCount",ie);try{return BigNumber.from(ae).toNumber()}catch(ce){return logger30.throwError("bad result from backend",Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:ie,result:ae,error:ce})}})}getCode(v,k){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork();const ie=yield resolveProperties({address:this._getAddress(v),blockTag:this._getBlockTag(k)}),ae=yield this.perform("getCode",ie);try{return hexlify(ae)}catch(ce){return logger30.throwError("bad result from backend",Logger.errors.SERVER_ERROR,{method:"getCode",params:ie,result:ae,error:ce})}})}getStorageAt(v,k,ie){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork();const ae=yield resolveProperties({address:this._getAddress(v),blockTag:this._getBlockTag(ie),position:Promise.resolve(k).then(fe=>hexValue(fe))}),ce=yield this.perform("getStorageAt",ae);try{return hexlify(ce)}catch(fe){return logger30.throwError("bad result from backend",Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:ae,result:ce,error:fe})}})}_wrapTransaction(v,k,ie){if(k!=null&&hexDataLength(k)!==32)throw new Error("invalid response - sendTransaction");const ae=v;return k!=null&&v.hash!==k&&logger30.throwError("Transaction hash mismatch from Provider.sendTransaction.",Logger.errors.UNKNOWN_ERROR,{expectedHash:v.hash,returnedHash:k}),ae.wait=(ce,fe)=>__awaiter10(this,void 0,void 0,function*(){ce==null&&(ce=1),fe==null&&(fe=0);let le;ce!==0&&ie!=null&&(le={data:v.data,from:v.from,nonce:v.nonce,to:v.to,value:v.value,startBlock:ie});const ve=yield this._waitForTransaction(v.hash,ce,fe,le);return ve==null&&ce===0?null:(this._emitted["t:"+v.hash]=ve.blockNumber,ve.status===0&&logger30.throwError("transaction failed",Logger.errors.CALL_EXCEPTION,{transactionHash:v.hash,transaction:v,receipt:ve}),ve)}),ae}sendTransaction(v){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork();const k=yield Promise.resolve(v).then(ce=>hexlify(ce)),ie=this.formatter.transaction(v);ie.confirmations==null&&(ie.confirmations=0);const ae=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const ce=yield this.perform("sendTransaction",{signedTransaction:k});return this._wrapTransaction(ie,ce,ae)}catch(ce){throw ce.transaction=ie,ce.transactionHash=ie.hash,ce}})}_getTransactionRequest(v){return __awaiter10(this,void 0,void 0,function*(){const k=yield v,ie={};return["from","to"].forEach(ae=>{k[ae]!=null&&(ie[ae]=Promise.resolve(k[ae]).then(ce=>ce?this._getAddress(ce):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(ae=>{k[ae]!=null&&(ie[ae]=Promise.resolve(k[ae]).then(ce=>ce?BigNumber.from(ce):null))}),["type"].forEach(ae=>{k[ae]!=null&&(ie[ae]=Promise.resolve(k[ae]).then(ce=>ce!=null?ce:null))}),k.accessList&&(ie.accessList=this.formatter.accessList(k.accessList)),["data"].forEach(ae=>{k[ae]!=null&&(ie[ae]=Promise.resolve(k[ae]).then(ce=>ce?hexlify(ce):null))}),this.formatter.transactionRequest(yield resolveProperties(ie))})}_getFilter(v){return __awaiter10(this,void 0,void 0,function*(){v=yield v;const k={};return v.address!=null&&(k.address=this._getAddress(v.address)),["blockHash","topics"].forEach(ie=>{v[ie]!=null&&(k[ie]=v[ie])}),["fromBlock","toBlock"].forEach(ie=>{v[ie]!=null&&(k[ie]=this._getBlockTag(v[ie]))}),this.formatter.filter(yield resolveProperties(k))})}_call(v,k,ie){return __awaiter10(this,void 0,void 0,function*(){ie>=MAX_CCIP_REDIRECTS&&logger30.throwError("CCIP read exceeded maximum redirections",Logger.errors.SERVER_ERROR,{redirects:ie,transaction:v});const ae=v.to,ce=yield this.perform("call",{transaction:v,blockTag:k});if(ie>=0&&k==="latest"&&ae!=null&&ce.substring(0,10)==="0x556f1830"&&hexDataLength(ce)%32===4)try{const fe=hexDataSlice(ce,4),le=hexDataSlice(fe,0,32);BigNumber.from(le).eq(ae)||logger30.throwError("CCIP Read sender did not match",Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:v,data:ce});const ve=[],pe=BigNumber.from(hexDataSlice(fe,32,64)).toNumber(),ye=BigNumber.from(hexDataSlice(fe,pe,pe+32)).toNumber(),me=hexDataSlice(fe,pe+32);for(let Or=0;Or__awaiter10(this,void 0,void 0,function*(){const ce=yield this.perform("getBlock",ae);if(ce==null)return ae.blockHash!=null&&this._emitted["b:"+ae.blockHash]==null||ae.blockTag!=null&&ie>this._emitted.block?null:void 0;if(k){let fe=null;for(let ve=0;vethis._wrapTransaction(ve)),le}return this.formatter.block(ce)}),{oncePoll:this})})}getBlock(v){return this._getBlock(v,!1)}getBlockWithTransactions(v){return this._getBlock(v,!0)}getTransaction(v){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork(),v=yield v;const k={transactionHash:this.formatter.hash(v,!0)};return poll(()=>__awaiter10(this,void 0,void 0,function*(){const ie=yield this.perform("getTransaction",k);if(ie==null)return this._emitted["t:"+v]==null?null:void 0;const ae=this.formatter.transactionResponse(ie);if(ae.blockNumber==null)ae.confirmations=0;else if(ae.confirmations==null){let fe=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-ae.blockNumber+1;fe<=0&&(fe=1),ae.confirmations=fe}return this._wrapTransaction(ae)}),{oncePoll:this})})}getTransactionReceipt(v){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork(),v=yield v;const k={transactionHash:this.formatter.hash(v,!0)};return poll(()=>__awaiter10(this,void 0,void 0,function*(){const ie=yield this.perform("getTransactionReceipt",k);if(ie==null)return this._emitted["t:"+v]==null?null:void 0;if(ie.blockHash==null)return;const ae=this.formatter.receipt(ie);if(ae.blockNumber==null)ae.confirmations=0;else if(ae.confirmations==null){let fe=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-ae.blockNumber+1;fe<=0&&(fe=1),ae.confirmations=fe}return ae}),{oncePoll:this})})}getLogs(v){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork();const k=yield resolveProperties({filter:this._getFilter(v)}),ie=yield this.perform("getLogs",k);return ie.forEach(ae=>{ae.removed==null&&(ae.removed=!1)}),Formatter.arrayOf(this.formatter.filterLog.bind(this.formatter))(ie)})}getEtherPrice(){return __awaiter10(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(v){return __awaiter10(this,void 0,void 0,function*(){if(v=yield v,typeof v=="number"&&v<0){v%1&&logger30.throwArgumentError("invalid BlockTag","blockTag",v);let k=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return k+=v,k<0&&(k=0),this.formatter.blockTag(k)}return this.formatter.blockTag(v)})}getResolver(v){return __awaiter10(this,void 0,void 0,function*(){let k=v;for(;;){if(k===""||k==="."||v!=="eth"&&k==="eth")return null;const ie=yield this._getResolver(k,"getResolver");if(ie!=null){const ae=new Resolver(this,ie,v);return k!==v&&!(yield ae.supportsWildcard())?null:ae}k=k.split(".").slice(1).join(".")}})}_getResolver(v,k){return __awaiter10(this,void 0,void 0,function*(){k==null&&(k="ENS");const ie=yield this.getNetwork();ie.ensAddress||logger30.throwError("network does not support ENS",Logger.errors.UNSUPPORTED_OPERATION,{operation:k,network:ie.name});try{const ae=yield this.call({to:ie.ensAddress,data:"0x0178b8bf"+namehash(v).substring(2)});return this.formatter.callAddress(ae)}catch{}return null})}resolveName(v){return __awaiter10(this,void 0,void 0,function*(){v=yield v;try{return Promise.resolve(this.formatter.address(v))}catch(ie){if(isHexString(v))throw ie}typeof v!="string"&&logger30.throwArgumentError("invalid ENS name","name",v);const k=yield this.getResolver(v);return k?yield k.getAddress():null})}lookupAddress(v){return __awaiter10(this,void 0,void 0,function*(){v=yield v,v=this.formatter.address(v);const k=v.substring(2).toLowerCase()+".addr.reverse",ie=yield this._getResolver(k,"lookupAddress");if(ie==null)return null;const ae=_parseString(yield this.call({to:ie,data:"0x691f3431"+namehash(k).substring(2)}),0);return(yield this.resolveName(ae))!=v?null:ae})}getAvatar(v){return __awaiter10(this,void 0,void 0,function*(){let k=null;if(isHexString(v)){const ce=this.formatter.address(v).substring(2).toLowerCase()+".addr.reverse",fe=yield this._getResolver(ce,"getAvatar");if(!fe)return null;k=new Resolver(this,fe,ce);try{const le=yield k.getAvatar();if(le)return le.url}catch(le){if(le.code!==Logger.errors.CALL_EXCEPTION)throw le}try{const le=_parseString(yield this.call({to:fe,data:"0x691f3431"+namehash(ce).substring(2)}),0);k=yield this.getResolver(le)}catch(le){if(le.code!==Logger.errors.CALL_EXCEPTION)throw le;return null}}else if(k=yield this.getResolver(v),!k)return null;const ie=yield k.getAvatar();return ie==null?null:ie.url})}perform(v,k){return logger30.throwError(v+" not implemented",Logger.errors.NOT_IMPLEMENTED,{operation:v})}_startEvent(v){this.polling=this._events.filter(k=>k.pollable()).length>0}_stopEvent(v){this.polling=this._events.filter(k=>k.pollable()).length>0}_addEventListener(v,k,ie){const ae=new Event(getEventTag2(v),k,ie);return this._events.push(ae),this._startEvent(ae),this}on(v,k){return this._addEventListener(v,k,!1)}once(v,k){return this._addEventListener(v,k,!0)}emit(v,...k){let ie=!1,ae=[],ce=getEventTag2(v);return this._events=this._events.filter(fe=>fe.tag!==ce?!0:(setTimeout(()=>{fe.listener.apply(this,k)},0),ie=!0,fe.once?(ae.push(fe),!1):!0)),ae.forEach(fe=>{this._stopEvent(fe)}),ie}listenerCount(v){if(!v)return this._events.length;let k=getEventTag2(v);return this._events.filter(ie=>ie.tag===k).length}listeners(v){if(v==null)return this._events.map(ie=>ie.listener);let k=getEventTag2(v);return this._events.filter(ie=>ie.tag===k).map(ie=>ie.listener)}off(v,k){if(k==null)return this.removeAllListeners(v);const ie=[];let ae=!1,ce=getEventTag2(v);return this._events=this._events.filter(fe=>fe.tag!==ce||fe.listener!=k||ae?!0:(ae=!0,ie.push(fe),!1)),ie.forEach(fe=>{this._stopEvent(fe)}),this}removeAllListeners(v){let k=[];if(v==null)k=this._events,this._events=[];else{const ie=getEventTag2(v);this._events=this._events.filter(ae=>ae.tag!==ie?!0:(k.push(ae),!1))}return k.forEach(ie=>{this._stopEvent(ie)}),this}},__awaiter11=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger31=new Logger(version23),errorGas=["call","estimateGas"];function spelunk(v,k){if(v==null)return null;if(typeof v.message=="string"&&v.message.match("reverted")){const ie=isHexString(v.data)?v.data:null;if(!k||ie)return{message:v.message,data:ie}}if(typeof v=="object"){for(const ie in v){const ae=spelunk(v[ie],k);if(ae)return ae}return null}if(typeof v=="string")try{return spelunk(JSON.parse(v),k)}catch{}return null}function checkError(v,k,ie){const ae=ie.transaction||ie.signedTransaction;if(v==="call"){const fe=spelunk(k,!0);if(fe)return fe.data;logger31.throwError("missing revert data in call exception; Transaction reverted without a reason string",Logger.errors.CALL_EXCEPTION,{data:"0x",transaction:ae,error:k})}if(v==="estimateGas"){let fe=spelunk(k.body,!1);fe==null&&(fe=spelunk(k,!1)),fe&&logger31.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Logger.errors.UNPREDICTABLE_GAS_LIMIT,{reason:fe.message,method:v,transaction:ae,error:k})}let ce=k.message;throw k.code===Logger.errors.SERVER_ERROR&&k.error&&typeof k.error.message=="string"?ce=k.error.message:typeof k.body=="string"?ce=k.body:typeof k.responseText=="string"&&(ce=k.responseText),ce=(ce||"").toLowerCase(),ce.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&logger31.throwError("insufficient funds for intrinsic transaction cost",Logger.errors.INSUFFICIENT_FUNDS,{error:k,method:v,transaction:ae}),ce.match(/nonce (is )?too low/i)&&logger31.throwError("nonce has already been used",Logger.errors.NONCE_EXPIRED,{error:k,method:v,transaction:ae}),ce.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&logger31.throwError("replacement fee too low",Logger.errors.REPLACEMENT_UNDERPRICED,{error:k,method:v,transaction:ae}),ce.match(/only replay-protected/i)&&logger31.throwError("legacy pre-eip-155 transactions not supported",Logger.errors.UNSUPPORTED_OPERATION,{error:k,method:v,transaction:ae}),errorGas.indexOf(v)>=0&&ce.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&logger31.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:k,method:v,transaction:ae}),k}function timer(v){return new Promise(function(k){setTimeout(k,v)})}function getResult(v){if(v.error){const k=new Error(v.error.message);throw k.code=v.error.code,k.data=v.error.data,k}return v.result}function getLowerCase(v){return v&&v.toLowerCase()}var _constructorGuard5={},JsonRpcSigner=class extends Signer{constructor(v,k,ie){if(super(),v!==_constructorGuard5)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");defineReadOnly(this,"provider",k),ie==null&&(ie=0),typeof ie=="string"?(defineReadOnly(this,"_address",this.provider.formatter.address(ie)),defineReadOnly(this,"_index",null)):typeof ie=="number"?(defineReadOnly(this,"_index",ie),defineReadOnly(this,"_address",null)):logger31.throwArgumentError("invalid address or index","addressOrIndex",ie)}connect(v){return logger31.throwError("cannot alter JSON-RPC Signer connection",Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new UncheckedJsonRpcSigner(_constructorGuard5,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(v=>(v.length<=this._index&&logger31.throwError("unknown account #"+this._index,Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(v[this._index])))}sendUncheckedTransaction(v){v=shallowCopy(v);const k=this.getAddress().then(ie=>(ie&&(ie=ie.toLowerCase()),ie));if(v.gasLimit==null){const ie=shallowCopy(v);ie.from=k,v.gasLimit=this.provider.estimateGas(ie)}return v.to!=null&&(v.to=Promise.resolve(v.to).then(ie=>__awaiter11(this,void 0,void 0,function*(){if(ie==null)return null;const ae=yield this.provider.resolveName(ie);return ae==null&&logger31.throwArgumentError("provided ENS name resolves to null","tx.to",ie),ae}))),resolveProperties({tx:resolveProperties(v),sender:k}).then(({tx:ie,sender:ae})=>{ie.from!=null?ie.from.toLowerCase()!==ae&&logger31.throwArgumentError("from address mismatch","transaction",v):ie.from=ae;const ce=this.provider.constructor.hexlifyTransaction(ie,{from:!0});return this.provider.send("eth_sendTransaction",[ce]).then(fe=>fe,fe=>(typeof fe.message=="string"&&fe.message.match(/user denied/i)&&logger31.throwError("user rejected transaction",Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:ie}),checkError("sendTransaction",fe,ce)))})}signTransaction(v){return logger31.throwError("signing transactions is unsupported",Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(v){return __awaiter11(this,void 0,void 0,function*(){const k=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),ie=yield this.sendUncheckedTransaction(v);try{return yield poll(()=>__awaiter11(this,void 0,void 0,function*(){const ae=yield this.provider.getTransaction(ie);if(ae!==null)return this.provider._wrapTransaction(ae,ie,k)}),{oncePoll:this.provider})}catch(ae){throw ae.transactionHash=ie,ae}})}signMessage(v){return __awaiter11(this,void 0,void 0,function*(){const k=typeof v=="string"?toUtf8Bytes(v):v,ie=yield this.getAddress();try{return yield this.provider.send("personal_sign",[hexlify(k),ie.toLowerCase()])}catch(ae){throw typeof ae.message=="string"&&ae.message.match(/user denied/i)&&logger31.throwError("user rejected signing",Logger.errors.ACTION_REJECTED,{action:"signMessage",from:ie,messageData:v}),ae}})}_legacySignMessage(v){return __awaiter11(this,void 0,void 0,function*(){const k=typeof v=="string"?toUtf8Bytes(v):v,ie=yield this.getAddress();try{return yield this.provider.send("eth_sign",[ie.toLowerCase(),hexlify(k)])}catch(ae){throw typeof ae.message=="string"&&ae.message.match(/user denied/i)&&logger31.throwError("user rejected signing",Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:ie,messageData:v}),ae}})}_signTypedData(v,k,ie){return __awaiter11(this,void 0,void 0,function*(){const ae=yield TypedDataEncoder.resolveNames(v,k,ie,fe=>this.provider.resolveName(fe)),ce=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[ce.toLowerCase(),JSON.stringify(TypedDataEncoder.getPayload(ae.domain,k,ae.value))])}catch(fe){throw typeof fe.message=="string"&&fe.message.match(/user denied/i)&&logger31.throwError("user rejected signing",Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:ce,messageData:{domain:ae.domain,types:k,value:ae.value}}),fe}})}unlock(v){return __awaiter11(this,void 0,void 0,function*(){const k=this.provider,ie=yield this.getAddress();return k.send("personal_unlockAccount",[ie.toLowerCase(),v,null])})}},UncheckedJsonRpcSigner=class extends JsonRpcSigner{sendTransaction(v){return this.sendUncheckedTransaction(v).then(k=>({hash:k,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:ie=>this.provider.waitForTransaction(k,ie)}))}},allowedTransactionKeys4={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},JsonRpcProvider=class extends BaseProvider{constructor(v,k){let ie=k;ie==null&&(ie=new Promise((ae,ce)=>{setTimeout(()=>{this.detectNetwork().then(fe=>{ae(fe)},fe=>{ce(fe)})},0)})),super(ie),v||(v=getStatic(this.constructor,"defaultUrl")()),typeof v=="string"?defineReadOnly(this,"connection",Object.freeze({url:v})):defineReadOnly(this,"connection",Object.freeze(shallowCopy(v))),this._nextId=42}get _cache(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return __awaiter11(this,void 0,void 0,function*(){yield timer(0);let v=null;try{v=yield this.send("eth_chainId",[])}catch{try{v=yield this.send("net_version",[])}catch{}}if(v!=null){const k=getStatic(this.constructor,"getNetwork");try{return k(BigNumber.from(v).toNumber())}catch(ie){return logger31.throwError("could not detect network",Logger.errors.NETWORK_ERROR,{chainId:v,event:"invalidNetwork",serverError:ie})}}return logger31.throwError("could not detect network",Logger.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(v){return new JsonRpcSigner(_constructorGuard5,this,v)}getUncheckedSigner(v){return this.getSigner(v).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(v=>v.map(k=>this.formatter.address(k)))}send(v,k){const ie={method:v,params:k,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:deepCopy(ie),provider:this});const ae=["eth_chainId","eth_blockNumber"].indexOf(v)>=0;if(ae&&this._cache[v])return this._cache[v];const ce=fetchJson(this.connection,JSON.stringify(ie),getResult).then(fe=>(this.emit("debug",{action:"response",request:ie,response:fe,provider:this}),fe),fe=>{throw this.emit("debug",{action:"response",error:fe,request:ie,provider:this}),fe});return ae&&(this._cache[v]=ce,setTimeout(()=>{this._cache[v]=null},0)),ce}prepareRequest(v,k){switch(v){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[getLowerCase(k.address),k.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[getLowerCase(k.address),k.blockTag]];case"getCode":return["eth_getCode",[getLowerCase(k.address),k.blockTag]];case"getStorageAt":return["eth_getStorageAt",[getLowerCase(k.address),hexZeroPad(k.position,32),k.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[k.signedTransaction]];case"getBlock":return k.blockTag?["eth_getBlockByNumber",[k.blockTag,!!k.includeTransactions]]:k.blockHash?["eth_getBlockByHash",[k.blockHash,!!k.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[k.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[k.transactionHash]];case"call":{const ie=getStatic(this.constructor,"hexlifyTransaction");return["eth_call",[ie(k.transaction,{from:!0}),k.blockTag]]}case"estimateGas":{const ie=getStatic(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[ie(k.transaction,{from:!0})]]}case"getLogs":return k.filter&&k.filter.address!=null&&(k.filter.address=getLowerCase(k.filter.address)),["eth_getLogs",[k.filter]]}return null}perform(v,k){return __awaiter11(this,void 0,void 0,function*(){if(v==="call"||v==="estimateGas"){const ae=k.transaction;if(ae&&ae.type!=null&&BigNumber.from(ae.type).isZero()&&ae.maxFeePerGas==null&&ae.maxPriorityFeePerGas==null){const ce=yield this.getFeeData();ce.maxFeePerGas==null&&ce.maxPriorityFeePerGas==null&&(k=shallowCopy(k),k.transaction=shallowCopy(ae),delete k.transaction.type)}}const ie=this.prepareRequest(v,k);ie==null&&logger31.throwError(v+" not implemented",Logger.errors.NOT_IMPLEMENTED,{operation:v});try{return yield this.send(ie[0],ie[1])}catch(ae){return checkError(v,ae,k)}})}_startEvent(v){v.tag==="pending"&&this._startPending(),super._startEvent(v)}_startPending(){if(this._pendingFilter!=null)return;const v=this,k=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=k,k.then(function(ie){function ae(){v.send("eth_getFilterChanges",[ie]).then(function(ce){if(v._pendingFilter!=k)return null;let fe=Promise.resolve();return ce.forEach(function(le){v._emitted["t:"+le.toLowerCase()]="pending",fe=fe.then(function(){return v.getTransaction(le).then(function(ve){return v.emit("pending",ve),null})})}),fe.then(function(){return timer(1e3)})}).then(function(){if(v._pendingFilter!=k){v.send("eth_uninstallFilter",[ie]);return}return setTimeout(function(){ae()},0),null}).catch(ce=>{})}return ae(),ie}).catch(ie=>{})}_stopEvent(v){v.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),super._stopEvent(v)}static hexlifyTransaction(v,k){const ie=shallowCopy(allowedTransactionKeys4);if(k)for(const ce in k)k[ce]&&(ie[ce]=!0);checkProperties(v,ie);const ae={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(ce){if(v[ce]==null)return;const fe=hexValue(BigNumber.from(v[ce]));ce==="gasLimit"&&(ce="gas"),ae[ce]=fe}),["from","to","data"].forEach(function(ce){v[ce]!=null&&(ae[ce]=hexlify(v[ce]))}),v.accessList&&(ae.accessList=accessListify(v.accessList)),ae}},WS=null;try{if(WS=WebSocket,WS==null)throw new Error("inject please")}catch(v){const k=new Logger(version23);WS=function(){k.throwError("WebSockets not supported in this environment",Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var __awaiter12=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger32=new Logger(version23),NextId=1,WebSocketProvider=class extends JsonRpcProvider{constructor(v,k){k==="any"&&logger32.throwError("WebSocketProvider does not support 'any' network yet",Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),typeof v=="string"?super(v,k):super("_websocket",k),this._pollingInterval=-1,this._wsReady=!1,typeof v=="string"?defineReadOnly(this,"_websocket",new WS(this.connection.url)):defineReadOnly(this,"_websocket",v),defineReadOnly(this,"_requests",{}),defineReadOnly(this,"_subs",{}),defineReadOnly(this,"_subIds",{}),defineReadOnly(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach(ae=>{this.websocket.send(this._requests[ae].payload)})},this.websocket.onmessage=ae=>{const ce=ae.data,fe=JSON.parse(ce);if(fe.id!=null){const le=String(fe.id),ve=this._requests[le];if(delete this._requests[le],fe.result!==void 0)ve.callback(null,fe.result),this.emit("debug",{action:"response",request:JSON.parse(ve.payload),response:fe.result,provider:this});else{let pe=null;fe.error?(pe=new Error(fe.error.message||"unknown error"),defineReadOnly(pe,"code",fe.error.code||null),defineReadOnly(pe,"response",ce)):pe=new Error("unknown error"),ve.callback(pe,void 0),this.emit("debug",{action:"response",error:pe,request:JSON.parse(ve.payload),provider:this})}}else if(fe.method==="eth_subscription"){const le=this._subs[fe.params.subscription];le&&le.processFunc(fe.params.result)}else console.warn("this should not happen")};const ie=setInterval(()=>{this.emit("poll")},1e3);ie.unref&&ie.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(v){logger32.throwError("cannot reset events block on WebSocketProvider",Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(v){logger32.throwError("cannot set polling interval on WebSocketProvider",Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return __awaiter12(this,void 0,void 0,function*(){return null})}set polling(v){!v||logger32.throwError("cannot set polling on WebSocketProvider",Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(v,k){const ie=NextId++;return new Promise((ae,ce)=>{function fe(ve,pe){return ve?ce(ve):ae(pe)}const le=JSON.stringify({method:v,params:k,id:ie,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(le),provider:this}),this._requests[String(ie)]={callback:fe,payload:le},this._wsReady&&this.websocket.send(le)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(v,k,ie){return __awaiter12(this,void 0,void 0,function*(){let ae=this._subIds[v];ae==null&&(ae=Promise.all(k).then(fe=>this.send("eth_subscribe",fe)),this._subIds[v]=ae);const ce=yield ae;this._subs[ce]={tag:v,processFunc:ie}})}_startEvent(v){switch(v.type){case"block":this._subscribe("block",["newHeads"],k=>{const ie=BigNumber.from(k.number).toNumber();this._emitted.block=ie,this.emit("block",ie)});break;case"pending":this._subscribe("pending",["newPendingTransactions"],k=>{this.emit("pending",k)});break;case"filter":this._subscribe(v.tag,["logs",this._getFilter(v.filter)],k=>{k.removed==null&&(k.removed=!1),this.emit(v.filter,this.formatter.filterLog(k))});break;case"tx":{const k=ie=>{const ae=ie.hash;this.getTransactionReceipt(ae).then(ce=>{!ce||this.emit(ae,ce)})};k(v),this._subscribe("tx",["newHeads"],ie=>{this._events.filter(ae=>ae.type==="tx").forEach(k)});break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",v);break}}_stopEvent(v){let k=v.tag;if(v.type==="tx"){if(this._events.filter(ae=>ae.type==="tx").length)return;k="tx"}else if(this.listenerCount(v.event))return;const ie=this._subIds[k];!ie||(delete this._subIds[k],ie.then(ae=>{!this._subs[ae]||(delete this._subs[ae],this.send("eth_unsubscribe",[ae]))}))}destroy(){return __awaiter12(this,void 0,void 0,function*(){this.websocket.readyState===WS.CONNECTING&&(yield new Promise(v=>{this.websocket.onopen=function(){v(!0)},this.websocket.onerror=function(){v(!1)}})),this.websocket.close(1e3)})}},__awaiter13=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger33=new Logger(version23),StaticJsonRpcProvider=class extends JsonRpcProvider{detectNetwork(){const v=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return __awaiter13(this,void 0,void 0,function*(){let k=this.network;return k==null&&(k=yield v.detectNetwork.call(this),k||logger33.throwError("no network detected",Logger.errors.UNKNOWN_ERROR,{}),this._network==null&&(defineReadOnly(this,"_network",k),this.emit("network",k,null))),k})}},UrlJsonRpcProvider=class extends StaticJsonRpcProvider{constructor(v,k){logger33.checkAbstract(new.target,UrlJsonRpcProvider),v=getStatic(new.target,"getNetwork")(v),k=getStatic(new.target,"getApiKey")(k);const ie=getStatic(new.target,"getUrl")(v,k);super(ie,v),typeof k=="string"?defineReadOnly(this,"apiKey",k):k!=null&&Object.keys(k).forEach(ae=>{defineReadOnly(this,ae,k[ae])})}_startPending(){logger33.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(v){return logger33.throwError("API provider does not support signing",Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(v){return v}static getUrl(v,k){return logger33.throwError("not implemented; sub-classes must override getUrl",Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}},logger34=new Logger(version23),defaultApiKey="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",AlchemyWebSocketProvider=class extends WebSocketProvider{constructor(v,k){const ie=new AlchemyProvider(v,k),ae=ie.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");super(ae,ie.network),defineReadOnly(this,"apiKey",ie.apiKey)}isCommunityResource(){return this.apiKey===defaultApiKey}},AlchemyProvider=class extends UrlJsonRpcProvider{static getWebSocketProvider(v,k){return new AlchemyWebSocketProvider(v,k)}static getApiKey(v){return v==null?defaultApiKey:(v&&typeof v!="string"&&logger34.throwArgumentError("invalid apiKey","apiKey",v),v)}static getUrl(v,k){let ie=null;switch(v.name){case"homestead":ie="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":ie="eth-goerli.g.alchemy.com/v2/";break;case"matic":ie="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":ie="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":ie="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":ie="arb-goerli.g.alchemy.com/v2/";break;case"optimism":ie="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":ie="opt-goerli.g.alchemy.com/v2/";break;default:logger34.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+ie+k,throttleCallback:(ae,ce)=>(k===defaultApiKey&&showThrottleMessage(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===defaultApiKey}},logger35=new Logger(version23),defaultApiKey2="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function getHost(v){switch(v){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return logger35.throwArgumentError("unsupported network","name",v)}var AnkrProvider=class extends UrlJsonRpcProvider{isCommunityResource(){return this.apiKey===defaultApiKey2}static getApiKey(v){return v==null?defaultApiKey2:v}static getUrl(v,k){k==null&&(k=defaultApiKey2);const ie={allowGzip:!0,url:"https://"+getHost(v.name)+k,throttleCallback:(ae,ce)=>(k.apiKey===defaultApiKey2&&showThrottleMessage(),Promise.resolve(!0))};return k.projectSecret!=null&&(ie.user="",ie.password=k.projectSecret),ie}},__awaiter14=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger36=new Logger(version23),CloudflareProvider=class extends UrlJsonRpcProvider{static getApiKey(v){return v!=null&&logger36.throwArgumentError("apiKey not supported for cloudflare","apiKey",v),null}static getUrl(v,k){let ie=null;switch(v.name){case"homestead":ie="https://cloudflare-eth.com/";break;default:logger36.throwArgumentError("unsupported network","network",arguments[0])}return ie}perform(v,k){const ie=Object.create(null,{perform:{get:()=>super.perform}});return __awaiter14(this,void 0,void 0,function*(){return v==="getBlockNumber"?(yield ie.perform.call(this,"getBlock",{blockTag:"latest"})).number:ie.perform.call(this,v,k)})}},__awaiter15=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger37=new Logger(version23);function getTransactionPostData(v){const k={};for(let ie in v){if(v[ie]==null)continue;let ae=v[ie];ie==="type"&&ae===0||({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[ie]?ae=hexValue(hexlify(ae)):ie==="accessList"?ae="["+accessListify(ae).map(ce=>`{address:"${ce.address}",storageKeys:["${ce.storageKeys.join('","')}"]}`).join(",")+"]":ae=hexlify(ae),k[ie]=ae)}return k}function getResult2(v){if(v.status==0&&(v.message==="No records found"||v.message==="No transactions found"))return v.result;if(v.status!=1||typeof v.message!="string"||!v.message.match(/^OK/)){const k=new Error("invalid response");throw k.result=JSON.stringify(v),(v.result||"").toLowerCase().indexOf("rate limit")>=0&&(k.throttleRetry=!0),k}return v.result}function getJsonResult(v){if(v&&v.status==0&&v.message=="NOTOK"&&(v.result||"").toLowerCase().indexOf("rate limit")>=0){const k=new Error("throttled response");throw k.result=JSON.stringify(v),k.throttleRetry=!0,k}if(v.jsonrpc!="2.0"){const k=new Error("invalid response");throw k.result=JSON.stringify(v),k}if(v.error){const k=new Error(v.error.message||"unknown error");throw v.error.code&&(k.code=v.error.code),v.error.data&&(k.data=v.error.data),k}return v.result}function checkLogTag(v){if(v==="pending")throw new Error("pending not supported");return v==="latest"?v:parseInt(v.substring(2),16)}function checkError2(v,k,ie){if(v==="call"&&k.code===Logger.errors.SERVER_ERROR){const ce=k.error;if(ce&&(ce.message.match(/reverted/i)||ce.message.match(/VM execution error/i))){let fe=ce.data;if(fe&&(fe="0x"+fe.replace(/^.*0x/i,"")),isHexString(fe))return fe;logger37.throwError("missing revert data in call exception",Logger.errors.CALL_EXCEPTION,{error:k,data:"0x"})}}let ae=k.message;throw k.code===Logger.errors.SERVER_ERROR&&(k.error&&typeof k.error.message=="string"?ae=k.error.message:typeof k.body=="string"?ae=k.body:typeof k.responseText=="string"&&(ae=k.responseText)),ae=(ae||"").toLowerCase(),ae.match(/insufficient funds/)&&logger37.throwError("insufficient funds for intrinsic transaction cost",Logger.errors.INSUFFICIENT_FUNDS,{error:k,method:v,transaction:ie}),ae.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&logger37.throwError("nonce has already been used",Logger.errors.NONCE_EXPIRED,{error:k,method:v,transaction:ie}),ae.match(/another transaction with same nonce/)&&logger37.throwError("replacement fee too low",Logger.errors.REPLACEMENT_UNDERPRICED,{error:k,method:v,transaction:ie}),ae.match(/execution failed due to an exception|execution reverted/)&&logger37.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:k,method:v,transaction:ie}),k}var EtherscanProvider=class extends BaseProvider{constructor(v,k){super(v),defineReadOnly(this,"baseUrl",this.getBaseUrl()),defineReadOnly(this,"apiKey",k||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return logger37.throwArgumentError("unsupported network","network",this.network.name)}getUrl(v,k){const ie=Object.keys(k).reduce((ce,fe)=>{const le=k[fe];return le!=null&&(ce+=`&${fe}=${le}`),ce},""),ae=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${v}${ie}${ae}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(v,k){return k.module=v,k.apikey=this.apiKey,k}fetch(v,k,ie){return __awaiter15(this,void 0,void 0,function*(){const ae=ie?this.getPostUrl():this.getUrl(v,k),ce=ie?this.getPostData(v,k):null,fe=v==="proxy"?getJsonResult:getResult2;this.emit("debug",{action:"request",request:ae,provider:this});const le={url:ae,throttleSlotInterval:1e3,throttleCallback:(ye,me)=>(this.isCommunityResource()&&showThrottleMessage(),Promise.resolve(!0))};let ve=null;ce&&(le.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},ve=Object.keys(ce).map(ye=>`${ye}=${ce[ye]}`).join("&"));const pe=yield fetchJson(le,ve,fe||getJsonResult);return this.emit("debug",{action:"response",request:ae,response:deepCopy(pe),provider:this}),pe})}detectNetwork(){return __awaiter15(this,void 0,void 0,function*(){return this.network})}perform(v,k){const ie=Object.create(null,{perform:{get:()=>super.perform}});return __awaiter15(this,void 0,void 0,function*(){switch(v){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:k.address,tag:k.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:k.address,tag:k.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:k.address,tag:k.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:k.address,position:k.position,tag:k.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:k.signedTransaction},!0).catch(ae=>checkError2("sendTransaction",ae,k.signedTransaction));case"getBlock":if(k.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:k.blockTag,boolean:k.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:k.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:k.transactionHash});case"call":{if(k.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const ae=getTransactionPostData(k.transaction);ae.module="proxy",ae.action="eth_call";try{return yield this.fetch("proxy",ae,!0)}catch(ce){return checkError2("call",ce,k.transaction)}}case"estimateGas":{const ae=getTransactionPostData(k.transaction);ae.module="proxy",ae.action="eth_estimateGas";try{return yield this.fetch("proxy",ae,!0)}catch(ce){return checkError2("estimateGas",ce,k.transaction)}}case"getLogs":{const ae={action:"getLogs"};if(k.filter.fromBlock&&(ae.fromBlock=checkLogTag(k.filter.fromBlock)),k.filter.toBlock&&(ae.toBlock=checkLogTag(k.filter.toBlock)),k.filter.address&&(ae.address=k.filter.address),k.filter.topics&&k.filter.topics.length>0&&(k.filter.topics.length>1&&logger37.throwError("unsupported topic count",Logger.errors.UNSUPPORTED_OPERATION,{topics:k.filter.topics}),k.filter.topics.length===1)){const le=k.filter.topics[0];(typeof le!="string"||le.length!==66)&&logger37.throwError("unsupported topic format",Logger.errors.UNSUPPORTED_OPERATION,{topic0:le}),ae.topic0=le}const ce=yield this.fetch("logs",ae);let fe={};for(let le=0;le{["contractAddress","to"].forEach(function(ve){fe[ve]==""&&delete fe[ve]}),fe.creates==null&&fe.contractAddress!=null&&(fe.creates=fe.contractAddress);const le=this.formatter.transactionResponse(fe);return fe.timeStamp&&(le.timestamp=parseInt(fe.timeStamp)),le})})}isCommunityResource(){return this.apiKey==null}},__awaiter16=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger38=new Logger(version23);function now(){return new Date().getTime()}function checkNetworks(v){let k=null;for(let ie=0;iek?null:(ae+ce)/2}function serialize2(v){if(v===null)return"null";if(typeof v=="number"||typeof v=="boolean")return JSON.stringify(v);if(typeof v=="string")return v;if(BigNumber.isBigNumber(v))return v.toString();if(Array.isArray(v))return JSON.stringify(v.map(k=>serialize2(k)));if(typeof v=="object"){const k=Object.keys(v);return k.sort(),"{"+k.map(ie=>{let ae=v[ie];return typeof ae=="function"?ae="[function]":ae=serialize2(ae),JSON.stringify(ie)+":"+ae}).join(",")+"}"}throw new Error("unknown value type: "+typeof v)}var nextRid=1;function stall2(v){let k=null,ie=null,ae=new Promise(le=>{k=function(){ie&&(clearTimeout(ie),ie=null),le()},ie=setTimeout(k,v)});const ce=le=>(ae=ae.then(le),ae);function fe(){return ae}return{cancel:k,getPromise:fe,wait:ce}}var ForwardErrors=[Logger.errors.CALL_EXCEPTION,Logger.errors.INSUFFICIENT_FUNDS,Logger.errors.NONCE_EXPIRED,Logger.errors.REPLACEMENT_UNDERPRICED,Logger.errors.UNPREDICTABLE_GAS_LIMIT],ForwardProperties=["address","args","errorArgs","errorSignature","method","transaction"];function exposeDebugConfig(v,k){const ie={weight:v.weight};return Object.defineProperty(ie,"provider",{get:()=>v.provider}),v.start&&(ie.start=v.start),k&&(ie.duration=k-v.start),v.done&&(v.error?ie.error=v.error:ie.result=v.result||null),ie}function normalizedTally(v,k){return function(ie){const ae={};ie.forEach(fe=>{const le=v(fe.result);ae[le]||(ae[le]={count:0,result:fe.result}),ae[le].count++});const ce=Object.keys(ae);for(let fe=0;fe=k)return le.result}}}function getProcessFunc(v,k,ie){let ae=serialize2;switch(k){case"getBlockNumber":return function(ce){const fe=ce.map(ve=>ve.result);let le=median(ce.map(ve=>ve.result),2);if(le!=null)return le=Math.ceil(le),fe.indexOf(le+1)>=0&&le++,le>=v._highestBlockNumber&&(v._highestBlockNumber=le),v._highestBlockNumber};case"getGasPrice":return function(ce){const fe=ce.map(le=>le.result);return fe.sort(),fe[Math.floor(fe.length/2)]};case"getEtherPrice":return function(ce){return median(ce.map(fe=>fe.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":ae=function(ce){return ce==null?null:(ce=shallowCopy(ce),ce.confirmations=-1,serialize2(ce))};break;case"getBlock":ie.includeTransactions?ae=function(ce){return ce==null?null:(ce=shallowCopy(ce),ce.transactions=ce.transactions.map(fe=>(fe=shallowCopy(fe),fe.confirmations=-1,fe)),serialize2(ce))}:ae=function(ce){return ce==null?null:serialize2(ce)};break;default:throw new Error("unknown method: "+k)}return normalizedTally(ae,v.quorum)}function waitForSync(v,k){return __awaiter16(this,void 0,void 0,function*(){const ie=v.provider;return ie.blockNumber!=null&&ie.blockNumber>=k||k===-1?ie:poll(()=>new Promise((ae,ce)=>{setTimeout(function(){return ie.blockNumber>=k?ae(ie):v.cancelled?ae(null):ae(void 0)},0)}),{oncePoll:ie})})}function getRunner(v,k,ie,ae){return __awaiter16(this,void 0,void 0,function*(){let ce=v.provider;switch(ie){case"getBlockNumber":case"getGasPrice":return ce[ie]();case"getEtherPrice":if(ce.getEtherPrice)return ce.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return ae.blockTag&&isHexString(ae.blockTag)&&(ce=yield waitForSync(v,k)),ce[ie](ae.address,ae.blockTag||"latest");case"getStorageAt":return ae.blockTag&&isHexString(ae.blockTag)&&(ce=yield waitForSync(v,k)),ce.getStorageAt(ae.address,ae.position,ae.blockTag||"latest");case"getBlock":return ae.blockTag&&isHexString(ae.blockTag)&&(ce=yield waitForSync(v,k)),ce[ae.includeTransactions?"getBlockWithTransactions":"getBlock"](ae.blockTag||ae.blockHash);case"call":case"estimateGas":return ae.blockTag&&isHexString(ae.blockTag)&&(ce=yield waitForSync(v,k)),ie==="call"&&ae.blockTag?ce[ie](ae.transaction,ae.blockTag):ce[ie](ae.transaction);case"getTransaction":case"getTransactionReceipt":return ce[ie](ae.transactionHash);case"getLogs":{let fe=ae.filter;return(fe.fromBlock&&isHexString(fe.fromBlock)||fe.toBlock&&isHexString(fe.toBlock))&&(ce=yield waitForSync(v,k)),ce.getLogs(fe)}}return logger38.throwError("unknown method error",Logger.errors.UNKNOWN_ERROR,{method:ie,params:ae})})}var FallbackProvider=class extends BaseProvider{constructor(v,k){v.length===0&&logger38.throwArgumentError("missing providers","providers",v);const ie=v.map((fe,le)=>{if(Provider.isProvider(fe)){const ye=isCommunityResource(fe)?2e3:750;return Object.freeze({provider:fe,weight:1,stallTimeout:ye,priority:1})}const ve=shallowCopy(fe);ve.priority==null&&(ve.priority=1),ve.stallTimeout==null&&(ve.stallTimeout=isCommunityResource(fe)?2e3:750),ve.weight==null&&(ve.weight=1);const pe=ve.weight;return(pe%1||pe>512||pe<1)&&logger38.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${le}].weight`,pe),Object.freeze(ve)}),ae=ie.reduce((fe,le)=>fe+le.weight,0);k==null?k=ae/2:k>ae&&logger38.throwArgumentError("quorum will always fail; larger than total weight","quorum",k);let ce=checkNetworks(ie.map(fe=>fe.provider.network));ce==null&&(ce=new Promise((fe,le)=>{setTimeout(()=>{this.detectNetwork().then(fe,le)},0)})),super(ce),defineReadOnly(this,"providerConfigs",Object.freeze(ie)),defineReadOnly(this,"quorum",k),this._highestBlockNumber=-1}detectNetwork(){return __awaiter16(this,void 0,void 0,function*(){const v=yield Promise.all(this.providerConfigs.map(k=>k.provider.getNetwork()));return checkNetworks(v)})}perform(v,k){return __awaiter16(this,void 0,void 0,function*(){if(v==="sendTransaction"){const ve=yield Promise.all(this.providerConfigs.map(pe=>pe.provider.sendTransaction(k.signedTransaction).then(ye=>ye.hash,ye=>ye)));for(let pe=0;peve.priority-pe.priority);const ce=this._highestBlockNumber;let fe=0,le=!0;for(;;){const ve=now();let pe=ae.filter(cr=>cr.runner&&ve-cr.startcr+Br.weight,0);for(;pe{cr.staller=null}),cr.runner=getRunner(cr,ce,v,k).then($r=>{cr.done=!0,cr.result=$r,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:Br,backend:exposeDebugConfig(cr,now()),request:{method:v,params:deepCopy(k)},provider:this})},$r=>{cr.done=!0,cr.error=$r,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:Br,backend:exposeDebugConfig(cr,now()),request:{method:v,params:deepCopy(k)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:Br,backend:exposeDebugConfig(cr,null),request:{method:v,params:deepCopy(k)},provider:this}),pe+=cr.weight}const ye=[];ae.forEach(cr=>{cr.done||!cr.runner||(ye.push(cr.runner),cr.staller&&ye.push(cr.staller.getPromise()))}),ye.length&&(yield Promise.race(ye));const me=ae.filter(cr=>cr.done&&cr.error==null);if(me.length>=this.quorum){const cr=ie(me);if(cr!==void 0)return ae.forEach(Br=>{Br.staller&&Br.staller.cancel(),Br.cancelled=!0}),cr;le||(yield stall2(100).getPromise()),le=!1}const Ee=ae.reduce((cr,Br)=>{if(!Br.done||Br.error==null)return cr;const $r=Br.error.code;return ForwardErrors.indexOf($r)>=0&&(cr[$r]||(cr[$r]={error:Br.error,weight:0}),cr[$r].weight+=Br.weight),cr},{});if(Object.keys(Ee).forEach(cr=>{const Br=Ee[cr];if(Br.weight{Or.staller&&Or.staller.cancel(),Or.cancelled=!0});const $r=Br.error,Pr={};ForwardProperties.forEach(Or=>{$r[Or]!=null&&(Pr[Or]=$r[Or])}),logger38.throwError($r.reason||$r.message,cr,Pr)}),ae.filter(cr=>!cr.done).length===0)break}return ae.forEach(ve=>{ve.staller&&ve.staller.cancel(),ve.cancelled=!0}),logger38.throwError("failed to meet quorum",Logger.errors.SERVER_ERROR,{method:v,params:k,results:ae.map(ve=>exposeDebugConfig(ve)),provider:this})})}},IpcProvider=null,logger39=new Logger(version23),defaultProjectId="84842078b09946638c03157f83405213",InfuraWebSocketProvider=class extends WebSocketProvider{constructor(v,k){const ie=new InfuraProvider(v,k),ae=ie.connection;ae.password&&logger39.throwError("INFURA WebSocket project secrets unsupported",Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});const ce=ae.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(ce,v),defineReadOnly(this,"apiKey",ie.projectId),defineReadOnly(this,"projectId",ie.projectId),defineReadOnly(this,"projectSecret",ie.projectSecret)}isCommunityResource(){return this.projectId===defaultProjectId}},InfuraProvider=class extends UrlJsonRpcProvider{static getWebSocketProvider(v,k){return new InfuraWebSocketProvider(v,k)}static getApiKey(v){const k={apiKey:defaultProjectId,projectId:defaultProjectId,projectSecret:null};return v==null||(typeof v=="string"?k.projectId=v:v.projectSecret!=null?(logger39.assertArgument(typeof v.projectId=="string","projectSecret requires a projectId","projectId",v.projectId),logger39.assertArgument(typeof v.projectSecret=="string","invalid projectSecret","projectSecret","[REDACTED]"),k.projectId=v.projectId,k.projectSecret=v.projectSecret):v.projectId&&(k.projectId=v.projectId),k.apiKey=k.projectId),k}static getUrl(v,k){let ie=null;switch(v?v.name:"unknown"){case"homestead":ie="mainnet.infura.io";break;case"goerli":ie="goerli.infura.io";break;case"sepolia":ie="sepolia.infura.io";break;case"matic":ie="polygon-mainnet.infura.io";break;case"maticmum":ie="polygon-mumbai.infura.io";break;case"optimism":ie="optimism-mainnet.infura.io";break;case"optimism-goerli":ie="optimism-goerli.infura.io";break;case"arbitrum":ie="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":ie="arbitrum-goerli.infura.io";break;default:logger39.throwError("unsupported network",Logger.errors.INVALID_ARGUMENT,{argument:"network",value:v})}const ae={allowGzip:!0,url:"https://"+ie+"/v3/"+k.projectId,throttleCallback:(ce,fe)=>(k.projectId===defaultProjectId&&showThrottleMessage(),Promise.resolve(!0))};return k.projectSecret!=null&&(ae.user="",ae.password=k.projectSecret),ae}isCommunityResource(){return this.projectId===defaultProjectId}},JsonRpcBatchProvider=class extends JsonRpcProvider{send(v,k){const ie={method:v,params:k,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch==null&&(this._pendingBatch=[]);const ae={request:ie,resolve:null,reject:null},ce=new Promise((fe,le)=>{ae.resolve=fe,ae.reject=le});return this._pendingBatch.push(ae),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{const fe=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const le=fe.map(ve=>ve.request);return this.emit("debug",{action:"requestBatch",request:deepCopy(le),provider:this}),fetchJson(this.connection,JSON.stringify(le)).then(ve=>{this.emit("debug",{action:"response",request:le,response:ve,provider:this}),fe.forEach((pe,ye)=>{const me=ve[ye];if(me.error){const Ee=new Error(me.error.message);Ee.code=me.error.code,Ee.data=me.error.data,pe.reject(Ee)}else pe.resolve(me.result)})},ve=>{this.emit("debug",{action:"response",error:ve,request:le,provider:this}),fe.forEach(pe=>{pe.reject(ve)})})},10)),ce}},logger40=new Logger(version23),defaultApiKey3="ETHERS_JS_SHARED",NodesmithProvider=class extends UrlJsonRpcProvider{static getApiKey(v){return v&&typeof v!="string"&&logger40.throwArgumentError("invalid apiKey","apiKey",v),v||defaultApiKey3}static getUrl(v,k){logger40.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let ie=null;switch(v.name){case"homestead":ie="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":ie="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":ie="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":ie="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":ie="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:logger40.throwArgumentError("unsupported network","network",arguments[0])}return ie+"?apiKey="+k}},logger41=new Logger(version23),defaultApplicationId="62e1ad51b37b8e00394bda3b",PocketProvider=class extends UrlJsonRpcProvider{static getApiKey(v){const k={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return v==null?k.applicationId=defaultApplicationId:typeof v=="string"?k.applicationId=v:v.applicationSecretKey!=null?(k.applicationId=v.applicationId,k.applicationSecretKey=v.applicationSecretKey):v.applicationId?k.applicationId=v.applicationId:logger41.throwArgumentError("unsupported PocketProvider apiKey","apiKey",v),k}static getUrl(v,k){let ie=null;switch(v?v.name:"unknown"){case"goerli":ie="eth-goerli.gateway.pokt.network";break;case"homestead":ie="eth-mainnet.gateway.pokt.network";break;case"kovan":ie="poa-kovan.gateway.pokt.network";break;case"matic":ie="poly-mainnet.gateway.pokt.network";break;case"maticmum":ie="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":ie="eth-rinkeby.gateway.pokt.network";break;case"ropsten":ie="eth-ropsten.gateway.pokt.network";break;default:logger41.throwError("unsupported network",Logger.errors.INVALID_ARGUMENT,{argument:"network",value:v})}const ae=`https://${ie}/v1/lb/${k.applicationId}`,ce={headers:{},url:ae};return k.applicationSecretKey!=null&&(ce.user="",ce.password=k.applicationSecretKey),ce}isCommunityResource(){return this.applicationId===defaultApplicationId}},logger42=new Logger(version23),_nextId=1;function buildWeb3LegacyFetcher(v,k){const ie="Web3LegacyFetcher";return function(ae,ce){const fe={method:ae,params:ce,id:_nextId++,jsonrpc:"2.0"};return new Promise((le,ve)=>{this.emit("debug",{action:"request",fetcher:ie,request:deepCopy(fe),provider:this}),k(fe,(pe,ye)=>{if(pe)return this.emit("debug",{action:"response",fetcher:ie,error:pe,request:fe,provider:this}),ve(pe);if(this.emit("debug",{action:"response",fetcher:ie,request:fe,response:ye,provider:this}),ye.error){const me=new Error(ye.error.message);return me.code=ye.error.code,me.data=ye.error.data,ve(me)}le(ye.result)})})}}function buildEip1193Fetcher(v){return function(k,ie){ie==null&&(ie=[]);const ae={method:k,params:ie};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:deepCopy(ae),provider:this}),v.request(ae).then(ce=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:ae,response:ce,provider:this}),ce),ce=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:ae,error:ce,provider:this}),ce})}}var Web3Provider=class extends JsonRpcProvider{constructor(v,k){v==null&&logger42.throwArgumentError("missing provider","provider",v);let ie=null,ae=null,ce=null;typeof v=="function"?(ie="unknown:",ae=v):(ie=v.host||v.path||"",!ie&&v.isMetaMask&&(ie="metamask"),ce=v,v.request?(ie===""&&(ie="eip-1193:"),ae=buildEip1193Fetcher(v)):v.sendAsync?ae=buildWeb3LegacyFetcher(v,v.sendAsync.bind(v)):v.send?ae=buildWeb3LegacyFetcher(v,v.send.bind(v)):logger42.throwArgumentError("unsupported provider","provider",v),ie||(ie="unknown:")),super(ie,k),defineReadOnly(this,"jsonRpcFetchFunc",ae),defineReadOnly(this,"provider",ce)}send(v,k){return this.jsonRpcFetchFunc(v,k)}},logger43=new Logger(version23);function getDefaultProvider(v,k){if(v==null&&(v="homestead"),typeof v=="string"){const ae=v.match(/^(ws|http)s?:/i);if(ae)switch(ae[1].toLowerCase()){case"http":case"https":return new JsonRpcProvider(v);case"ws":case"wss":return new WebSocketProvider(v);default:logger43.throwArgumentError("unsupported URL scheme","network",v)}}const ie=getNetwork(v);return(!ie||!ie._defaultProvider)&&logger43.throwError("unsupported getDefaultProvider network",Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:v}),ie._defaultProvider({FallbackProvider,AlchemyProvider,AnkrProvider,CloudflareProvider,EtherscanProvider,InfuraProvider,JsonRpcProvider,NodesmithProvider,PocketProvider,Web3Provider,IpcProvider},k)}var utils_exports={};__export$1(utils_exports,{AbiCoder:()=>AbiCoder,ConstructorFragment:()=>ConstructorFragment,ErrorFragment:()=>ErrorFragment,EventFragment:()=>EventFragment,FormatTypes:()=>FormatTypes,Fragment:()=>Fragment,FunctionFragment:()=>FunctionFragment,HDNode:()=>HDNode,Indexed:()=>Indexed,Interface:()=>Interface,LogDescription:()=>LogDescription,Logger:()=>Logger,ParamType:()=>ParamType,RLP:()=>lib_exports,SigningKey:()=>SigningKey,SupportedAlgorithm:()=>SupportedAlgorithm,TransactionDescription:()=>TransactionDescription,TransactionTypes:()=>TransactionTypes,UnicodeNormalizationForm:()=>UnicodeNormalizationForm,Utf8ErrorFuncs:()=>Utf8ErrorFuncs,Utf8ErrorReason:()=>Utf8ErrorReason,_TypedDataEncoder:()=>TypedDataEncoder,_fetchData:()=>_fetchData,_toEscapedUtf8String:()=>_toEscapedUtf8String,accessListify:()=>accessListify,arrayify:()=>arrayify,base58:()=>Base58,base64:()=>lib_exports3,checkProperties:()=>checkProperties,checkResultErrors:()=>checkResultErrors,commify:()=>commify,computeAddress:()=>computeAddress,computeHmac:()=>computeHmac,computePublicKey:()=>computePublicKey,concat:()=>concat$4,deepCopy:()=>deepCopy,defaultAbiCoder:()=>defaultAbiCoder,defaultPath:()=>defaultPath,defineReadOnly:()=>defineReadOnly,dnsEncode:()=>dnsEncode,entropyToMnemonic:()=>entropyToMnemonic,fetchJson:()=>fetchJson,formatBytes32String:()=>formatBytes32String,formatEther:()=>formatEther,formatUnits:()=>formatUnits,getAccountPath:()=>getAccountPath,getAddress:()=>getAddress,getContractAddress:()=>getContractAddress,getCreate2Address:()=>getCreate2Address,getIcapAddress:()=>getIcapAddress,getJsonWalletAddress:()=>getJsonWalletAddress,getStatic:()=>getStatic,hashMessage:()=>hashMessage,hexConcat:()=>hexConcat,hexDataLength:()=>hexDataLength,hexDataSlice:()=>hexDataSlice,hexStripZeros:()=>hexStripZeros,hexValue:()=>hexValue,hexZeroPad:()=>hexZeroPad,hexlify:()=>hexlify,id:()=>id$5,isAddress:()=>isAddress,isBytes:()=>isBytes,isBytesLike:()=>isBytesLike,isHexString:()=>isHexString,isValidMnemonic:()=>isValidMnemonic,isValidName:()=>isValidName,joinSignature:()=>joinSignature,keccak256:()=>keccak256,mnemonicToEntropy:()=>mnemonicToEntropy,mnemonicToSeed:()=>mnemonicToSeed,namehash:()=>namehash,nameprep:()=>nameprep,parseBytes32String:()=>parseBytes32String,parseEther:()=>parseEther,parseTransaction:()=>parse,parseUnits:()=>parseUnits,poll:()=>poll,randomBytes:()=>randomBytes,recoverAddress:()=>recoverAddress,recoverPublicKey:()=>recoverPublicKey,resolveProperties:()=>resolveProperties,ripemd160:()=>ripemd160,serializeTransaction:()=>serialize,sha256:()=>sha256,sha512:()=>sha512,shallowCopy:()=>shallowCopy,shuffled:()=>shuffled,solidityKeccak256:()=>keccak2562,solidityPack:()=>pack2,soliditySha256:()=>sha2562,splitSignature:()=>splitSignature,stripZeros:()=>stripZeros,toUtf8Bytes:()=>toUtf8Bytes,toUtf8CodePoints:()=>toUtf8CodePoints,toUtf8String:()=>toUtf8String,verifyMessage:()=>verifyMessage,verifyTypedData:()=>verifyTypedData,zeroPad:()=>zeroPad});var version24="solidity/5.7.0",regexBytes=new RegExp("^bytes([0-9]+)$"),regexNumber=new RegExp("^(u?int)([0-9]*)$"),regexArray=new RegExp("^(.*)\\[([0-9]*)\\]$"),Zeros2="0000000000000000000000000000000000000000000000000000000000000000",logger44=new Logger(version24);function _pack(v,k,ie){switch(v){case"address":return ie?zeroPad(k,32):arrayify(k);case"string":return toUtf8Bytes(k);case"bytes":return arrayify(k);case"bool":return k=k?"0x01":"0x00",ie?zeroPad(k,32):arrayify(k)}let ae=v.match(regexNumber);if(ae){let ce=parseInt(ae[2]||"256");return(ae[2]&&String(ce)!==ae[2]||ce%8!==0||ce===0||ce>256)&&logger44.throwArgumentError("invalid number type","type",v),ie&&(ce=256),k=BigNumber.from(k).toTwos(ce),zeroPad(k,ce/8)}if(ae=v.match(regexBytes),ae){const ce=parseInt(ae[1]);return(String(ce)!==ae[1]||ce===0||ce>32)&&logger44.throwArgumentError("invalid bytes type","type",v),arrayify(k).byteLength!==ce&&logger44.throwArgumentError(`invalid value for ${v}`,"value",k),ie?arrayify((k+Zeros2).substring(0,66)):k}if(ae=v.match(regexArray),ae&&Array.isArray(k)){const ce=ae[1];parseInt(ae[2]||String(k.length))!=k.length&&logger44.throwArgumentError(`invalid array length for ${v}`,"value",k);const le=[];return k.forEach(function(ve){le.push(_pack(ce,ve,!0))}),concat$4(le)}return logger44.throwArgumentError("invalid type","type",v)}function pack2(v,k){v.length!=k.length&&logger44.throwArgumentError("wrong number of values; expected ${ types.length }","values",k);const ie=[];return v.forEach(function(ae,ce){ie.push(_pack(ae,k[ce]))}),hexlify(concat$4(ie))}function keccak2562(v,k){return keccak256(pack2(v,k))}function sha2562(v,k){return sha256(pack2(v,k))}var version25="units/5.7.0",logger45=new Logger(version25),names=["wei","kwei","mwei","gwei","szabo","finney","ether"];function commify(v){const k=String(v).split(".");(k.length>2||!k[0].match(/^-?[0-9]*$/)||k[1]&&!k[1].match(/^[0-9]*$/)||v==="."||v==="-.")&&logger45.throwArgumentError("invalid value","value",v);let ie=k[0],ae="";for(ie.substring(0,1)==="-"&&(ae="-",ie=ie.substring(1));ie.substring(0,1)==="0";)ie=ie.substring(1);ie===""&&(ie="0");let ce="";for(k.length===2&&(ce="."+(k[1]||"0"));ce.length>2&&ce[ce.length-1]==="0";)ce=ce.substring(0,ce.length-1);const fe=[];for(;ie.length;)if(ie.length<=3){fe.unshift(ie);break}else{const le=ie.length-3;fe.unshift(ie.substring(le)),ie=ie.substring(0,le)}return ae+fe.join(",")+ce}function formatUnits(v,k){if(typeof k=="string"){const ie=names.indexOf(k);ie!==-1&&(k=3*ie)}return formatFixed(v,k!=null?k:18)}function parseUnits(v,k){if(typeof v!="string"&&logger45.throwArgumentError("value must be a string","value",v),typeof k=="string"){const ie=names.indexOf(k);ie!==-1&&(k=3*ie)}return parseFixed(v,k!=null?k:18)}function formatEther(v){return formatUnits(v,18)}function parseEther(v){return parseUnits(v,18)}var version26="ethers/5.7.2",logger46=new Logger(version26);try{const v=window;v._ethers==null&&(v._ethers=ethers_exports)}catch(v){}var nearAPI=__toESM(require_browser_index2$1(),1),import_near_seed_phrase=__toESM(require_near_seed_phrase(),1);__toESM(require_bn$1(),1);var import_is_mobile$4=__toESM(require_is_mobile(),1);function __awaiter17(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var nethIc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Pair2,keyStores:{BrowserLocalStorageKeyStore},transactions:{addKey,deleteKey,functionCallAccessKey},utils:{PublicKey,format:{parseNearAmount}}}=nearAPI,NETH_SITE_URL="https://neth.app",PREV_NETH_SITE_URL="neardefi.github.io/neth",NETWORK={testnet:{FUNDING_ACCOUNT_ID:"neth.testnet",MAP_ACCOUNT_ID:"map.neth.testnet",ROOT_ACCOUNT_ID:"testnet"},mainnet:{MAP_ACCOUNT_ID:"nethmap.near",ROOT_ACCOUNT_ID:"near"}},WS_STORAGE_NAMESPACE="near-wallet-selector:neth:",REFRESH_MSG="Please refresh the page and try again.",TX_ARGS_ATTEMPT="__TX_ARGS_ATTEMPT",ATTEMPT_SECRET_KEY="__ATTEMPT_SECRET_KEY",ATTEMPT_ACCOUNT_ID="__ATTEMPT_ACCOUNT_ID",APP_KEY_SECRET="__APP_KEY_SECRET",APP_KEY_ACCOUNT_ID="__APP_KEY_ACCOUNT_ID",defaultGas="200000000000000";parseNearAmount("0.4");parseNearAmount("0.49");parseNearAmount("0.5");parseNearAmount("0.05");var defaultStorage=(v="")=>({getItem:k=>{const ie=localStorage.getItem(v+k);if((ie==null?void 0:ie.charAt(0))!=="{")return ie;try{return JSON.parse(ie)}catch{}},setItem:(k,ie)=>localStorage.setItem(v+k,typeof ie=="string"?ie:JSON.stringify(ie)),removeItem:k=>localStorage.removeItem(v+k)}),defaultLogger=()=>({log:v=>console.log(...v)}),near,gas,keyStore,logger47,storage,connection,networkId,contractAccount,initConnection=({network:v,gas:k=defaultGas,logger:ie=defaultLogger(),storage:ae=defaultStorage()})=>{gas=k,logger47=ie,storage=ae,keyStore=new BrowserLocalStorageKeyStore,near=new Near(Object.assign(Object.assign({},v),{keyStore})),connection=near.connection,networkId=v.networkId,contractAccount=new Account2(connection,networkId==="mainnet"?"near":networkId);const ce=document.createElement("div");return ce.style.display="none",ce.style.width="100%",ce.style.height="100vh",ce.style.zIndex="999999",ce.style.position="fixed",ce.style.top="0",ce.style.background="rgba(0, 0, 0, 0.5)",document.body.appendChild(ce),broadcastTXs(),ce},pub2hex=v=>ethers_exports.utils.hexlify(PublicKey.fromString(v).data).substring(2),hasAppKey=v=>v.some(k=>{var ie,ae;const ce=(ae=(ie=k==null?void 0:k.access_key)===null||ie===void 0?void 0:ie.permission)===null||ae===void 0?void 0:ae.FunctionCall;return ce.allowance!==null&&ce.method_names[0]==="execute"}),handleRefreshAppKey=(v,k)=>__awaiter17(void 0,void 0,void 0,function*(){var ie;const{account:ae,accountId:ce}=yield getUnlimitedKeyAccount(v,k),fe=parseInt(yield ae.viewFunction({contractId:ce,methodName:"get_nonce"}),16).toString(),{publicKey:le,secretKey:ve}=yield keyPairFromEthSig(v,appKeyPayload(ce,fe)),pe=pub2hex(le),ye=[{type:"AddKey",public_key:pe,allowance:parseNearAmount("1"),receiver_id:ce,method_names:"execute"}],me=yield ae.getAccessKeys();if(hasAppKey(me)){const Br=parseInt(yield ae.viewFunction({contractId:ce,methodName:"get_app_key_nonce"}),16).toString(),{publicKey:$r}=yield keyPairFromEthSig(v,appKeyPayload(ce,Br)),Pr=pub2hex($r);ye.unshift({type:"DeleteKey",public_key:Pr})}const Ee=yield ethSignJson(v,{nonce:fe,receivers:[ce],transactions:[{actions:ye}]}),cr=yield ae.functionCall({contractId:ce,methodName:"execute",args:Ee,gas});return((ie=cr==null?void 0:cr.status)===null||ie===void 0?void 0:ie.SuccessValue)!==""?logger47.log(`App key rotation unsuccessful. ${REFRESH_MSG}`):(yield storage.removeItem(APP_KEY_SECRET),yield storage.removeItem(APP_KEY_ACCOUNT_ID),{publicKey:pe,secretKey:ve})}),getUnlimitedKeyAccount=(v,k,ie=!1)=>__awaiter17(void 0,void 0,void 0,function*(){let ae,ce=yield storage.getItem(ATTEMPT_SECRET_KEY);if(ce)ae=yield storage.getItem(ATTEMPT_ACCOUNT_ID);else{ae=yield getNearMap(k);const{secretKey:ye}=yield keyPairFromEthSig(v,unlimitedKeyPayload(ae,ie));ce=ye}const fe=new Account2(connection,ae),le=KeyPair2.fromString(ce),ve=le.getPublicKey().toString();return(yield fe.getAccessKeys()).some(({public_key:ye})=>ve===ye)?(keyStore.setKey(networkId,ae,le),{account:fe,accountId:ae,secretKey:ce}):yield getUnlimitedKeyAccount(v,k,!0)}),appKeyPayload=(v,k)=>({WARNING:`Creating key for: ${v}`,nonce:k,description:"ONLY sign this on apps you trust! This key CAN use up to 1 N for transactions."}),unlimitedKeyPayload=(v,k)=>({WARNING:`Creates a key with access to your (new) paired NEAR Account: ${v}`,description:`ONLY sign this message on this website: ${k?PREV_NETH_SITE_URL:NETH_SITE_URL}`}),domain={name:"NETH",version:"1",chainId:1313161554},HEADER_OFFSET="NETH",HEADER_PAD=8,RECEIVER_MARKER="|~-_NETH~-_-~RECEIVER_-~|",PREFIX="|NETH_",SUFFIX="_NETH|",pack3=v=>v.map(k=>{const ie=typeof k=="string"?k:Object.entries(k).map(([ce,fe])=>`${PREFIX}${ce}:${typeof fe=="string"?fe:JSON.stringify(fe)}${SUFFIX}`).join(""),ae=ie.length.toString().padStart(HEADER_PAD,"0");return HEADER_OFFSET+ae+"__"+ie}).join(""),ethSignJson=(v,k)=>__awaiter17(void 0,void 0,void 0,function*(){const ae={Transaction:[]};if(Object.entries(k).forEach(([le])=>{ae.Transaction.push({type:"string",name:le})}),k.transactions&&(Object.values(k.transactions).forEach((le,ve)=>{le.actions.forEach(pe=>{if(!!pe.args){if(Buffer.isBuffer(pe.args)){pe.args="0x"+pe.args.toString("hex");return}Object.entries(pe.args).forEach(([ye,me])=>{/receiver_id|account_id/g.test(ye)&&(pe.args[ye]=RECEIVER_MARKER,k.receivers.splice(ve+1,0,me))})}})}),k.transactions=pack3(k.transactions.map(({actions:le})=>pack3(le)))),k.receivers){const le=k.receivers.length.toString();k.receivers=HEADER_OFFSET+k.receivers.join(",").length.toString().padStart(HEADER_PAD,"0")+"__"+k.receivers.join(","),k.receivers=k.receivers.substring(0,4)+le.padStart(3,"0")+k.receivers.substring(7)}return{sig:yield v._signTypedData(domain,ae,k),msg:k}}),keyPairFromEthSig=(v,k)=>__awaiter17(void 0,void 0,void 0,function*(){const{sig:ie}=yield ethSignJson(v,k),ae=ethers_exports.utils.id(ie);return(0,import_near_seed_phrase.generateSeedPhrase)(ae.substring(2,34))}),getEthereum=()=>__awaiter17(void 0,void 0,void 0,function*(){var v,k;if(!(yield(0,import_detect_provider.default)()))return alert("Please install/activate MetaMask and try again.");try{yield window.ethereum.request({method:"wallet_switchEthereumChain",params:[{chainId:"0x"+domain.chainId.toString(16)}]})}catch(le){if(logger47.log(le),((le==null?void 0:le.code)||((k=(v=le==null?void 0:le.data)===null||v===void 0?void 0:v.originalError)===null||k===void 0?void 0:k.code))!==4902)throw le;try{yield window.ethereum.request({method:"wallet_addEthereumChain",params:[{chainId:"0x"+domain.chainId.toString(16),chainName:"Aurora Mainnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},blockExplorerUrls:["https://explorer.mainnet.aurora.dev/"],rpcUrls:["https://mainnet.aurora.dev"]}]})}catch(pe){throw alert('Error adding chain. Please click "Choose Ethereum Account" and add the Aurora Network to continue.'),pe}}const ae=new ethers_exports.providers.Web3Provider(window.ethereum);(yield ae.listAccounts()).length===0&&(yield ae.send("eth_requestAccounts",[]));const fe=ae.getSigner();return{signer:fe,ethAddress:yield fe.getAddress()}}),switchEthereum=()=>__awaiter17(void 0,void 0,void 0,function*(){yield(yield(0,import_detect_provider.default)()).send("wallet_requestPermissions",[{eth_accounts:{}}]);const ie=new ethers_exports.providers.Web3Provider(window.ethereum).getSigner();return{signer:ie,ethAddress:yield ie.getAddress()}}),getNearMap=v=>__awaiter17(void 0,void 0,void 0,function*(){return contractAccount.viewFunction({contractId:NETWORK[networkId].MAP_ACCOUNT_ID,methodName:"get_near",args:{eth_address:v}})}),getNear=()=>__awaiter17(void 0,void 0,void 0,function*(){const v=yield storage.getItem(APP_KEY_SECRET),k=yield storage.getItem(APP_KEY_ACCOUNT_ID);if(!v||!k){const ce=yield getEthereum();return(yield getAppKey(ce))?yield getNear():!1}const ie=new Account2(connection,k),ae=KeyPair2.fromString(v);return keyStore.setKey(networkId,k,ae),{account:ie,accountId:k,keyPair:ae,secretKey:v}}),signIn$1=getNear,signOut=()=>__awaiter17(void 0,void 0,void 0,function*(){const v=yield storage.getItem(APP_KEY_ACCOUNT_ID);return v?(yield storage.removeItem(APP_KEY_SECRET),yield storage.removeItem(APP_KEY_ACCOUNT_ID),{accountId:v}):logger47.log("already signed out")}),verifyOwner=({message:v,provider:k,account:ie})=>__awaiter17(void 0,void 0,void 0,function*(){let ae;if(ie)({accountId:ae}=ie);else{const Ee=yield getNear();Ee&&({account:ie,accountId:ae}=Ee)}if(!ie)throw new Error("Wallet not signed in");const ce=yield ie.connection.signer.getPublicKey(ae,networkId),fe=Buffer.from(ce.data).toString("base64"),ve=(yield k.block({finality:"final"})).header.hash,pe={accountId:ae,message:v,blockId:ve,publicKey:fe,keyType:ce.keyType},ye=JSON.stringify(pe),me=yield ie.connection.signer.signMessage(new Uint8Array(Buffer.from(ye)),ae,networkId);return Object.assign(Object.assign({},pe),{signature:Buffer.from(me.signature).toString("base64")})}),isSignedIn$1=()=>__awaiter17(void 0,void 0,void 0,function*(){const v=defaultStorage(WS_STORAGE_NAMESPACE);return!!(yield v.getItem(APP_KEY_SECRET))||!!(yield v.getItem(APP_KEY_ACCOUNT_ID))}),getAppKey=({signer:v,ethAddress:k})=>__awaiter17(void 0,void 0,void 0,function*(){const ie=yield getNearMap(k);if(!ie){if(window.confirm(`Ethereum account ${k} is not connected to a NETH account. Would you like to try another Ethereum account?`)){try{const{signer:Ee,ethAddress:cr}=yield switchEthereum();return yield getAppKey({signer:Ee,ethAddress:cr})}catch(Ee){logger47.log(Ee)}return}const me=`${NETH_SITE_URL}/${networkId==="testnet"?"?network=testnet":""}`;window.prompt("We couldn't find a NETH account. To set up a NETH account visit",me)}const ae=parseInt(yield contractAccount.viewFunction({contractId:ie,methodName:"get_app_key_nonce"}),16).toString(),{publicKey:ce,secretKey:fe}=yield keyPairFromEthSig(v,appKeyPayload(ie,ae)),le=new Account2(connection,ie),ve=yield le.getAccessKeys();hasAppKey(ve)||(yield handleRefreshAppKey(v,k));const pe=KeyPair2.fromString(fe);return keyStore.setKey(networkId,ie,pe),yield storage.setItem(APP_KEY_SECRET,fe),yield storage.setItem(APP_KEY_ACCOUNT_ID,le.accountId),{publicKey:ce,secretKey:fe,account:le}}),broadcastTXs=()=>__awaiter17(void 0,void 0,void 0,function*(){const v=yield getNear();if(!v){logger47.log("NETH: ERROR broadcasting tx. No account found.");return}const{account:k,accountId:ie}=v,ae=yield storage.getItem(TX_ARGS_ATTEMPT);if(!ae||ae.length===0)return;const ce=[];for(;ae.length>0;){const fe=ae.shift();logger47.log("NETH: broadcasting tx",fe);try{const le=yield k.functionCall({contractId:ie,methodName:"execute",args:fe,gas});yield storage.setItem(TX_ARGS_ATTEMPT,ae),ce.push(le)}catch(le){logger47.log("NETH: ERROR broadcasting tx",le)}}return yield storage.removeItem(TX_ARGS_ATTEMPT),ce}),signAndSendTransactions=({transactions:v,bundle:k})=>__awaiter17(void 0,void 0,void 0,function*(){const ie=yield getEthereum(),{signer:ae}=ie,ce=yield getNear();if(!ce){logger47.log("NETH: ERROR signing and sending transactions. No account found.");return}const{account:fe,accountId:le}=ce,ve=v.map(({receiverId:cr})=>cr),pe=v.map(({receiverId:cr,actions:Br})=>({actions:convertActions(Br,le,cr)})),ye=parseInt(yield fe.viewFunction({contractId:le,methodName:"get_nonce"}),16),me=[];if(k)me.push(yield ethSignJson(ae,{nonce:ye.toString(),receivers:ve,transactions:pe}));else for(let cr=0;crv.map(ae=>{const{enum:ce}=ae,{gas:fe,publicKey:le,methodName:ve,args:pe,deposit:ye,accessKey:me,code:Ee}=ae[ce]||ae,cr={type:ce&&ce[0].toUpperCase()+ce.substr(1)||"FunctionCall",gas:fe&&fe.toString()||void 0,public_key:le&&pub2hex(le)||void 0,method_name:ve,args:pe||void 0,code:Ee||void 0,amount:ye&&ye.toString()||void 0,permission:void 0};if(Object.keys(cr).forEach(Br=>{cr[Br]===void 0&&delete cr[Br]}),me){if(ie===k)cr.allowance=parseNearAmount("1"),cr.method_names="execute",cr.receiver_id=k;else if(me.permission.enum==="functionCall"){const{receiverId:Br,methodNames:$r,allowance:Pr}=me.permission.functionCall;cr.receiver_id=Br,cr.allowance=Pr&&Pr.toString()||parseNearAmount("0.25"),cr.method_names=$r.join(",")}}return cr}),isInstalled$3=()=>__awaiter17(void 0,void 0,void 0,function*(){return yield(0,import_detect_provider.default)({timeout:100}),!!window.ethereum}),bundle=!0,useCover=!1,customGas,Neth=({metadata:v,logger:k,store:ie,storage:ae,options:ce,provider:fe})=>__awaiter17(void 0,void 0,void 0,function*(){const le=initConnection({network:ce.network,gas:customGas,logger:k,storage:ae}),ve=me=>me.every(Ee=>Ee.type==="FunctionCall"),pe=me=>{if(!ve(me))throw new Error(`Only 'FunctionCall' actions types are supported by ${v.name}`);return me.map(cr=>cr.params)},ye=me=>__awaiter17(void 0,void 0,void 0,function*(){k.log("NETH:signAndSendTransactions",{transactions:me});const{contract:Ee}=ie.getState();if(!(yield isSignedIn$1())||!Ee)throw new Error("Wallet not signed in");useCover&&(le.style.display="block");const cr=me.map(({receiverId:$r,actions:Pr})=>({receiverId:$r||Ee.contractId,actions:pe(Pr)}));let Br;try{Br=yield signAndSendTransactions({transactions:cr,bundle})}catch($r){throw k.log("NETH:signAndSendTransactions Error",$r),$r}return useCover&&(le.style.display="none"),Br});return{signIn(){return __awaiter17(this,void 0,void 0,function*(){let me;try{if(me=yield signIn$1(),!me)return[]}catch(Ee){if(!/not connected/.test(Ee.toString()))throw Ee}return[me]})},signOut(){return __awaiter17(this,void 0,void 0,function*(){yield signOut()})},verifyOwner({message:me}){return __awaiter17(this,void 0,void 0,function*(){return k.log("NETH:verifyOwner",{message:me}),verifyOwner({message:me,provider:fe,account:null})})},getAccounts(){return __awaiter17(this,void 0,void 0,function*(){const me=yield getNear();if(!me)return k.log("NETH:getAccounts"),[];const{account:Ee,accountId:cr}=me;return[{accountId:cr,publicKey:(yield Ee.connection.signer.getPublicKey(Ee.accountId,ce.network.networkId)).toString()}]})},signAndSendTransaction:({receiverId:me,actions:Ee})=>__awaiter17(void 0,void 0,void 0,function*(){return ye([{receiverId:me,actions:Ee}])}),signAndSendTransactions:({transactions:me})=>__awaiter17(void 0,void 0,void 0,function*(){return ye(me)})}});function setupNeth({iconUrl:v=nethIcon,gas:k,useModalCover:ie=!1,bundle:ae=!0,deprecated:ce=!1}={}){return()=>__awaiter17(this,void 0,void 0,function*(){if(useCover=ie,customGas=k,bundle=ae,(0,import_is_mobile$4.default)())return null;const le=yield isInstalled$3();return{id:"neth",type:"injected",metadata:{name:"NETH Account",description:null,iconUrl:v,downloadUrl:NETH_SITE_URL,deprecated:!1,available:le},deprecated:ce,init:Neth}})}/** +`)}static register(v,k){k||(k=v.locale)}},words="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo",wordlist=null;function loadWords(v){if(wordlist==null&&(wordlist=words.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),Wordlist.check(v)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw wordlist=null,new Error("BIP39 Wordlist for en (English) FAILED")}var LangEn=class extends Wordlist{constructor(){super("en")}getWord(v){return loadWords(this),wordlist[v]}getWordIndex(v){return loadWords(this),wordlist.indexOf(v)}},langEn=new LangEn;Wordlist.register(langEn);var wordlists={en:langEn},version17="hdnode/5.7.0",logger22=new Logger(version17),N=BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),MasterSecret=toUtf8Bytes("Bitcoin seed"),HardenedBit=2147483648;function getUpperMask(v){return(1<=256)throw new Error("Depth too large!");return base58check(concat$4([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",hexlify(this.depth),this.parentFingerprint,hexZeroPad(hexlify(this.index),4),this.chainCode,this.privateKey!=null?concat$4(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new HDNode(_constructorGuard4,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(v){if(v>4294967295)throw new Error("invalid index - "+String(v));let k=this.path;k&&(k+="/"+(v&~HardenedBit));const ie=new Uint8Array(37);if(v&HardenedBit){if(!this.privateKey)throw new Error("cannot derive child of neutered node");ie.set(arrayify(this.privateKey),1),k&&(k+="'")}else ie.set(arrayify(this.publicKey));for(let me=24;me>=0;me-=8)ie[33+(me>>3)]=v>>24-me&255;const ae=arrayify(computeHmac(SupportedAlgorithm.sha512,this.chainCode,ie)),ce=ae.slice(0,32),fe=ae.slice(32);let le=null,ve=null;this.privateKey?le=bytes32(BigNumber.from(ce).add(this.privateKey).mod(N)):ve=new SigningKey(hexlify(ce))._addPoint(this.publicKey);let pe=k;const ye=this.mnemonic;return ye&&(pe=Object.freeze({phrase:ye.phrase,path:k,locale:ye.locale||"en"})),new HDNode(_constructorGuard4,le,ve,this.fingerprint,bytes32(fe),v,this.depth+1,pe)}derivePath(v){const k=v.split("/");if(k.length===0||k[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+v);k[0]==="m"&&k.shift();let ie=this;for(let ae=0;ae=HardenedBit)throw new Error("invalid path index - "+ce);ie=ie._derive(HardenedBit+fe)}else if(ce.match(/^[0-9]+$/)){const fe=parseInt(ce);if(fe>=HardenedBit)throw new Error("invalid path index - "+ce);ie=ie._derive(fe)}else throw new Error("invalid path component - "+ce)}return ie}static _fromSeed(v,k){const ie=arrayify(v);if(ie.length<16||ie.length>64)throw new Error("invalid seed");const ae=arrayify(computeHmac(SupportedAlgorithm.sha512,MasterSecret,ie));return new HDNode(_constructorGuard4,bytes32(ae.slice(0,32)),null,"0x00000000",bytes32(ae.slice(32)),0,0,k)}static fromMnemonic(v,k,ie){return ie=getWordlist(ie),v=entropyToMnemonic(mnemonicToEntropy(v,ie),ie),HDNode._fromSeed(mnemonicToSeed(v,k),{phrase:v,path:"m",locale:ie.locale})}static fromSeed(v){return HDNode._fromSeed(v,null)}static fromExtendedKey(v){const k=Base58.decode(v);(k.length!==82||base58check(k.slice(0,78))!==v)&&logger22.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const ie=k[4],ae=hexlify(k.slice(5,9)),ce=parseInt(hexlify(k.slice(9,13)).substring(2),16),fe=hexlify(k.slice(13,45)),le=k.slice(45,78);switch(hexlify(k.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new HDNode(_constructorGuard4,null,hexlify(le),ae,fe,ce,ie,null);case"0x0488ade4":case"0x04358394 ":if(le[0]!==0)break;return new HDNode(_constructorGuard4,hexlify(le.slice(1)),null,ae,fe,ce,ie,null)}return logger22.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}};function mnemonicToSeed(v,k){k||(k="");const ie=toUtf8Bytes("mnemonic"+k,UnicodeNormalizationForm.NFKD);return pbkdf2(toUtf8Bytes(v,UnicodeNormalizationForm.NFKD),ie,2048,64,"sha512")}function mnemonicToEntropy(v,k){k=getWordlist(k),logger22.checkNormalize();const ie=k.split(v);if(ie.length%3!==0)throw new Error("invalid mnemonic");const ae=arrayify(new Uint8Array(Math.ceil(11*ie.length/8)));let ce=0;for(let ye=0;ye>3]|=1<<7-ce%8),ce++}const fe=32*ie.length/3,le=ie.length/3,ve=getUpperMask(le);if((arrayify(sha256(ae.slice(0,fe/8)))[0]&ve)!==(ae[ae.length-1]&ve))throw new Error("invalid checksum");return hexlify(ae.slice(0,fe/8))}function entropyToMnemonic(v,k){if(k=getWordlist(k),v=arrayify(v),v.length%4!==0||v.length<16||v.length>32)throw new Error("invalid entropy");const ie=[0];let ae=11;for(let le=0;le8?(ie[ie.length-1]<<=8,ie[ie.length-1]|=v[le],ae-=8):(ie[ie.length-1]<<=ae,ie[ie.length-1]|=v[le]>>8-ae,ie.push(v[le]&getLowerMask(8-ae)),ae+=3);const ce=v.length/4,fe=arrayify(sha256(v))[0]&getUpperMask(ce);return ie[ie.length-1]<<=ce,ie[ie.length-1]|=fe>>8-ce,k.join(ie.map(le=>k.getWord(le)))}function isValidMnemonic(v,k){try{return mnemonicToEntropy(v,k),!0}catch{}return!1}function getAccountPath(v){return(typeof v!="number"||v<0||v>=HardenedBit||v%1)&&logger22.throwArgumentError("invalid account index","index",v),`m/44'/60'/${v}'/0/0`}var version18="random/5.7.0",logger23=new Logger(version18);function getGlobal(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate globalThis object")}var anyGlobal=getGlobal(),crypto$1=anyGlobal.crypto||anyGlobal.msCrypto;(!crypto$1||!crypto$1.getRandomValues)&&(logger23.warn("WARNING: Missing strong random number source"),crypto$1={getRandomValues:function(v){return logger23.throwError("no secure random source avaialble",Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function randomBytes(v){(v<=0||v>1024||v%1||v!=v)&&logger23.throwArgumentError("invalid length","length",v);const k=new Uint8Array(v);return crypto$1.getRandomValues(k),arrayify(k)}function shuffled(v){v=v.slice();for(let k=v.length-1;k>0;k--){const ie=Math.floor(Math.random()*(k+1)),ae=v[k];v[k]=v[ie],v[ie]=ae}return v}var import_aes_js=__toESM(require_aes_js()),version19="json-wallets/5.7.0";function looseArrayify(v){return typeof v=="string"&&v.substring(0,2)!=="0x"&&(v="0x"+v),arrayify(v)}function zpad(v,k){for(v=String(v);v.length{Ar=arrayify(Ar);const ur=Ar.slice(0,16),jr=Ar.slice(16,32),Mr=Ar.slice(32,64),Lr=new import_aes_js2.default.Counter(Ee),Vr=new import_aes_js2.default.ModeOfOperation.ctr(ur,Lr),Gr=arrayify(Vr.encrypt(ce)),Ur=keccak256(concat$4([jr,Gr])),Qr={address:v.address.substring(2).toLowerCase(),id:uuidV4(cr),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:hexlify(Ee).substring(2)},ciphertext:hexlify(Gr).substring(2),kdf:"scrypt",kdfparams:{salt:hexlify(me).substring(2),n:Br,dklen:32,p:Pr,r:$r},mac:Ur.substring(2)}};if(le){const hn=randomBytes(16),Yt=new import_aes_js2.default.Counter(hn),fn=new import_aes_js2.default.ModeOfOperation.ctr(Mr,Yt),Qt=arrayify(fn.encrypt(le)),Xt=new Date,Kr=Xt.getUTCFullYear()+"-"+zpad(Xt.getUTCMonth()+1,2)+"-"+zpad(Xt.getUTCDate(),2)+"T"+zpad(Xt.getUTCHours(),2)+"-"+zpad(Xt.getUTCMinutes(),2)+"-"+zpad(Xt.getUTCSeconds(),2)+".0Z";Qr["x-ethers"]={client:ye,gethFilename:"UTC--"+Kr+"--"+Qr.address,mnemonicCounter:hexlify(hn).substring(2),mnemonicCiphertext:hexlify(Qt).substring(2),path:ve,locale:pe,version:"0.1"}}return JSON.stringify(Qr)})}function decryptJsonWallet(v,k,ie){if(isCrowdsaleWallet(v)){ie&&ie(0);const ae=decrypt(v,k);return ie&&ie(1),Promise.resolve(ae)}return isKeystoreWallet(v)?decrypt2(v,k,ie):Promise.reject(new Error("invalid JSON wallet"))}function decryptJsonWalletSync(v,k){if(isCrowdsaleWallet(v))return decrypt(v,k);if(isKeystoreWallet(v))return decryptSync(v,k);throw new Error("invalid JSON wallet")}var version20="wallet/5.7.0",__awaiter7=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger26=new Logger(version20);function isAccount(v){return v!=null&&isHexString(v.privateKey,32)&&v.address!=null}function hasMnemonic2(v){const k=v.mnemonic;return k&&k.phrase}var Wallet=class extends Signer{constructor(v,k){if(super(),isAccount(v)){const ie=new SigningKey(v.privateKey);if(defineReadOnly(this,"_signingKey",()=>ie),defineReadOnly(this,"address",computeAddress(this.publicKey)),this.address!==getAddress(v.address)&&logger26.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),hasMnemonic2(v)){const ae=v.mnemonic;defineReadOnly(this,"_mnemonic",()=>({phrase:ae.phrase,path:ae.path||defaultPath,locale:ae.locale||"en"}));const ce=this.mnemonic,fe=HDNode.fromMnemonic(ce.phrase,null,ce.locale).derivePath(ce.path);computeAddress(fe.privateKey)!==this.address&&logger26.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else defineReadOnly(this,"_mnemonic",()=>null)}else{if(SigningKey.isSigningKey(v))v.curve!=="secp256k1"&&logger26.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),defineReadOnly(this,"_signingKey",()=>v);else{typeof v=="string"&&v.match(/^[0-9a-f]*$/i)&&v.length===64&&(v="0x"+v);const ie=new SigningKey(v);defineReadOnly(this,"_signingKey",()=>ie)}defineReadOnly(this,"_mnemonic",()=>null),defineReadOnly(this,"address",computeAddress(this.publicKey))}k&&!Provider.isProvider(k)&&logger26.throwArgumentError("invalid provider","provider",k),defineReadOnly(this,"provider",k||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(v){return new Wallet(this,v)}signTransaction(v){return resolveProperties(v).then(k=>{k.from!=null&&(getAddress(k.from)!==this.address&&logger26.throwArgumentError("transaction from address mismatch","transaction.from",v.from),delete k.from);const ie=this._signingKey().signDigest(keccak256(serialize(k)));return serialize(k,ie)})}signMessage(v){return __awaiter7(this,void 0,void 0,function*(){return joinSignature(this._signingKey().signDigest(hashMessage(v)))})}_signTypedData(v,k,ie){return __awaiter7(this,void 0,void 0,function*(){const ae=yield TypedDataEncoder.resolveNames(v,k,ie,ce=>(this.provider==null&&logger26.throwError("cannot resolve ENS names without a provider",Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:ce}),this.provider.resolveName(ce)));return joinSignature(this._signingKey().signDigest(TypedDataEncoder.hash(ae.domain,k,ae.value)))})}encrypt(v,k,ie){if(typeof k=="function"&&!ie&&(ie=k,k={}),ie&&typeof ie!="function")throw new Error("invalid callback");return k||(k={}),encrypt(this,v,k,ie)}static createRandom(v){let k=randomBytes(16);v||(v={}),v.extraEntropy&&(k=arrayify(hexDataSlice(keccak256(concat$4([k,v.extraEntropy])),0,16)));const ie=entropyToMnemonic(k,v.locale);return Wallet.fromMnemonic(ie,v.path,v.locale)}static fromEncryptedJson(v,k,ie){return decryptJsonWallet(v,k,ie).then(ae=>new Wallet(ae))}static fromEncryptedJsonSync(v,k){return new Wallet(decryptJsonWalletSync(v,k))}static fromMnemonic(v,k,ie){return k||(k=defaultPath),new Wallet(HDNode.fromMnemonic(v,null,ie).derivePath(k))}};function verifyMessage(v,k){return recoverAddress(hashMessage(v),k)}function verifyTypedData(v,k,ie,ae){return recoverAddress(TypedDataEncoder.hash(v,k,ie),ae)}var lib_exports4={};__export$1(lib_exports4,{AlchemyProvider:()=>AlchemyProvider,AlchemyWebSocketProvider:()=>AlchemyWebSocketProvider,AnkrProvider:()=>AnkrProvider,BaseProvider:()=>BaseProvider,CloudflareProvider:()=>CloudflareProvider,EtherscanProvider:()=>EtherscanProvider,FallbackProvider:()=>FallbackProvider,Formatter:()=>Formatter,InfuraProvider:()=>InfuraProvider,InfuraWebSocketProvider:()=>InfuraWebSocketProvider,IpcProvider:()=>IpcProvider,JsonRpcBatchProvider:()=>JsonRpcBatchProvider,JsonRpcProvider:()=>JsonRpcProvider,JsonRpcSigner:()=>JsonRpcSigner,NodesmithProvider:()=>NodesmithProvider,PocketProvider:()=>PocketProvider,Provider:()=>Provider,Resolver:()=>Resolver,StaticJsonRpcProvider:()=>StaticJsonRpcProvider,UrlJsonRpcProvider:()=>UrlJsonRpcProvider,Web3Provider:()=>Web3Provider,WebSocketProvider:()=>WebSocketProvider,getDefaultProvider:()=>getDefaultProvider,getNetwork:()=>getNetwork,isCommunityResourcable:()=>isCommunityResourcable,isCommunityResource:()=>isCommunityResource,showThrottleMessage:()=>showThrottleMessage});var version21="networks/5.7.1",logger27=new Logger(version21);function isRenetworkable(v){return v&&typeof v.renetwork=="function"}function ethDefaultProvider(v){const k=function(ie,ae){ae==null&&(ae={});const ce=[];if(ie.InfuraProvider&&ae.infura!=="-")try{ce.push(new ie.InfuraProvider(v,ae.infura))}catch{}if(ie.EtherscanProvider&&ae.etherscan!=="-")try{ce.push(new ie.EtherscanProvider(v,ae.etherscan))}catch{}if(ie.AlchemyProvider&&ae.alchemy!=="-")try{ce.push(new ie.AlchemyProvider(v,ae.alchemy))}catch{}if(ie.PocketProvider&&ae.pocket!=="-"){const fe=["goerli","ropsten","rinkeby","sepolia"];try{const le=new ie.PocketProvider(v,ae.pocket);le.network&&fe.indexOf(le.network.name)===-1&&ce.push(le)}catch{}}if(ie.CloudflareProvider&&ae.cloudflare!=="-")try{ce.push(new ie.CloudflareProvider(v))}catch{}if(ie.AnkrProvider&&ae.ankr!=="-")try{const fe=["ropsten"],le=new ie.AnkrProvider(v,ae.ankr);le.network&&fe.indexOf(le.network.name)===-1&&ce.push(le)}catch{}if(ce.length===0)return null;if(ie.FallbackProvider){let fe=1;return ae.quorum!=null?fe=ae.quorum:v==="homestead"&&(fe=2),new ie.FallbackProvider(ce,fe)}return ce[0]};return k.renetwork=function(ie){return ethDefaultProvider(ie)},k}function etcDefaultProvider(v,k){const ie=function(ae,ce){return ae.JsonRpcProvider?new ae.JsonRpcProvider(v,k):null};return ie.renetwork=function(ae){return etcDefaultProvider(v,ae)},ie}var homestead={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:ethDefaultProvider("homestead")},ropsten={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:ethDefaultProvider("ropsten")},classicMordor={chainId:63,name:"classicMordor",_defaultProvider:etcDefaultProvider("https://www.ethercluster.com/mordor","classicMordor")},networks={unspecified:{chainId:0,name:"unspecified"},homestead,mainnet:homestead,morden:{chainId:2,name:"morden"},ropsten,testnet:ropsten,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:ethDefaultProvider("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:ethDefaultProvider("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:ethDefaultProvider("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:ethDefaultProvider("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:etcDefaultProvider("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor,classicTestnet:classicMordor,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:etcDefaultProvider("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:ethDefaultProvider("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:ethDefaultProvider("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function getNetwork(v){if(v==null)return null;if(typeof v=="number"){for(const ae in networks){const ce=networks[ae];if(ce.chainId===v)return{name:ce.name,chainId:ce.chainId,ensAddress:ce.ensAddress||null,_defaultProvider:ce._defaultProvider||null}}return{chainId:v,name:"unknown"}}if(typeof v=="string"){const ae=networks[v];return ae==null?null:{name:ae.name,chainId:ae.chainId,ensAddress:ae.ensAddress,_defaultProvider:ae._defaultProvider||null}}const k=networks[v.name];if(!k)return typeof v.chainId!="number"&&logger27.throwArgumentError("invalid network chainId","network",v),v;v.chainId!==0&&v.chainId!==k.chainId&&logger27.throwArgumentError("network chainId mismatch","network",v);let ie=v._defaultProvider||null;return ie==null&&k._defaultProvider&&(isRenetworkable(k._defaultProvider)?ie=k._defaultProvider.renetwork(v):ie=k._defaultProvider),{name:v.name,chainId:k.chainId,ensAddress:v.ensAddress||k.ensAddress||null,_defaultProvider:ie}}var version22="web/5.7.1",__awaiter8=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})};function getUrl(v,k){return __awaiter8(this,void 0,void 0,function*(){k==null&&(k={});const ie={method:k.method||"GET",headers:k.headers||{},body:k.body||void 0};if(k.skipFetchSetup!==!0&&(ie.mode="cors",ie.cache="no-cache",ie.credentials="same-origin",ie.redirect="follow",ie.referrer="client"),k.fetchOptions!=null){const le=k.fetchOptions;le.mode&&(ie.mode=le.mode),le.cache&&(ie.cache=le.cache),le.credentials&&(ie.credentials=le.credentials),le.redirect&&(ie.redirect=le.redirect),le.referrer&&(ie.referrer=le.referrer)}const ae=yield fetch(v,ie),ce=yield ae.arrayBuffer(),fe={};return ae.headers.forEach?ae.headers.forEach((le,ve)=>{fe[ve.toLowerCase()]=le}):ae.headers.keys().forEach(le=>{fe[le.toLowerCase()]=ae.headers.get(le)}),{headers:fe,statusCode:ae.status,statusMessage:ae.statusText,body:arrayify(new Uint8Array(ce))}})}var __awaiter9=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger28=new Logger(version22);function staller(v){return new Promise(k=>{setTimeout(k,v)})}function bodyify(v,k){if(v==null)return null;if(typeof v=="string")return v;if(isBytesLike(v)){if(k&&(k.split("/")[0]==="text"||k.split(";")[0].trim()==="application/json"))try{return toUtf8String(v)}catch{}return hexlify(v)}return v}function unpercent(v){return toUtf8Bytes(v.replace(/%([0-9a-f][0-9a-f])/gi,(k,ie)=>String.fromCharCode(parseInt(ie,16))))}function _fetchData(v,k,ie){const ae=typeof v=="object"&&v.throttleLimit!=null?v.throttleLimit:12;logger28.assertArgument(ae>0&&ae%1===0,"invalid connection throttle limit","connection.throttleLimit",ae);const ce=typeof v=="object"?v.throttleCallback:null,fe=typeof v=="object"&&typeof v.throttleSlotInterval=="number"?v.throttleSlotInterval:100;logger28.assertArgument(fe>0&&fe%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",fe);const le=typeof v=="object"?!!v.errorPassThrough:!1,ve={};let pe=null;const ye={method:"GET"};let me=!1,Ee=2*60*1e3;if(typeof v=="string")pe=v;else if(typeof v=="object"){if((v==null||v.url==null)&&logger28.throwArgumentError("missing URL","connection.url",v),pe=v.url,typeof v.timeout=="number"&&v.timeout>0&&(Ee=v.timeout),v.headers)for(const ur in v.headers)ve[ur.toLowerCase()]={key:ur,value:String(v.headers[ur])},["if-none-match","if-modified-since"].indexOf(ur.toLowerCase())>=0&&(me=!0);if(ye.allowGzip=!!v.allowGzip,v.user!=null&&v.password!=null){pe.substring(0,6)!=="https:"&&v.allowInsecureAuthentication!==!0&&logger28.throwError("basic authentication requires a secure https url",Logger.errors.INVALID_ARGUMENT,{argument:"url",url:pe,user:v.user,password:"[REDACTED]"});const ur=v.user+":"+v.password;ve.authorization={key:"Authorization",value:"Basic "+encode2(toUtf8Bytes(ur))}}v.skipFetchSetup!=null&&(ye.skipFetchSetup=!!v.skipFetchSetup),v.fetchOptions!=null&&(ye.fetchOptions=shallowCopy(v.fetchOptions))}const cr=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),Br=pe?pe.match(cr):null;if(Br)try{const ur={statusCode:200,statusMessage:"OK",headers:{"content-type":Br[1]||"text/plain"},body:Br[2]?decode2(Br[3]):unpercent(Br[3])};let jr=ur.body;return ie&&(jr=ie(ur.body,ur)),Promise.resolve(jr)}catch(ur){logger28.throwError("processing response error",Logger.errors.SERVER_ERROR,{body:bodyify(Br[1],Br[2]),error:ur,requestBody:null,requestMethod:"GET",url:pe})}k&&(ye.method="POST",ye.body=k,ve["content-type"]==null&&(ve["content-type"]={key:"Content-Type",value:"application/octet-stream"}),ve["content-length"]==null&&(ve["content-length"]={key:"Content-Length",value:String(k.length)}));const $r={};Object.keys(ve).forEach(ur=>{const jr=ve[ur];$r[jr.key]=jr.value}),ye.headers=$r;const Pr=function(){let ur=null;return{promise:new Promise(function(Lr,Vr){Ee&&(ur=setTimeout(()=>{ur!=null&&(ur=null,Vr(logger28.makeError("timeout",Logger.errors.TIMEOUT,{requestBody:bodyify(ye.body,$r["content-type"]),requestMethod:ye.method,timeout:Ee,url:pe})))},Ee))}),cancel:function(){ur!=null&&(clearTimeout(ur),ur=null)}}}(),Ar=function(){return __awaiter9(this,void 0,void 0,function*(){for(let ur=0;ur=300)&&(Pr.cancel(),logger28.throwError("bad response",Logger.errors.SERVER_ERROR,{status:jr.statusCode,headers:jr.headers,body:bodyify(Mr,jr.headers?jr.headers["content-type"]:null),requestBody:bodyify(ye.body,$r["content-type"]),requestMethod:ye.method,url:pe})),ie)try{const Lr=yield ie(Mr,jr);return Pr.cancel(),Lr}catch(Lr){if(Lr.throttleRetry&&ur{let ve=null;if(fe!=null)try{ve=JSON.parse(toUtf8String(fe))}catch(pe){logger28.throwError("invalid JSON",Logger.errors.SERVER_ERROR,{body:fe,error:pe})}return ie&&(ve=ie(ve,le)),ve},ce=null;if(k!=null){ce=toUtf8Bytes(k);const fe=typeof v=="string"?{url:v}:shallowCopy(v);fe.headers?Object.keys(fe.headers).filter(ve=>ve.toLowerCase()==="content-type").length!==0||(fe.headers=shallowCopy(fe.headers),fe.headers["content-type"]="application/json"):fe.headers={"content-type":"application/json"},v=fe}return _fetchData(v,ce,ae)}function poll(v,k){return k||(k={}),k=shallowCopy(k),k.floor==null&&(k.floor=0),k.ceiling==null&&(k.ceiling=1e4),k.interval==null&&(k.interval=250),new Promise(function(ie,ae){let ce=null,fe=!1;const le=()=>fe?!1:(fe=!0,ce&&clearTimeout(ce),!0);k.timeout&&(ce=setTimeout(()=>{le()&&ae(new Error("timeout"))},k.timeout));const ve=k.retryLimit;let pe=0;function ye(){return v().then(function(me){if(me!==void 0)le()&&ie(me);else if(k.oncePoll)k.oncePoll.once("poll",ye);else if(k.onceBlock)k.onceBlock.once("block",ye);else if(!fe){if(pe++,pe>ve){le()&&ae(new Error("retry limit reached"));return}let Ee=k.interval*parseInt(String(Math.random()*Math.pow(2,pe)));Eek.ceiling&&(Ee=k.ceiling),setTimeout(ye,Ee)}return null},function(me){le()&&ae(me)})}ye()})}var import_bech32=__toESM(require_bech32()),version23="providers/5.7.2",logger29=new Logger(version23),Formatter=class{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const v={},k=this.address.bind(this),ie=this.bigNumber.bind(this),ae=this.blockTag.bind(this),ce=this.data.bind(this),fe=this.hash.bind(this),le=this.hex.bind(this),ve=this.number.bind(this),pe=this.type.bind(this),ye=me=>this.data(me,!0);return v.transaction={hash:fe,type:pe,accessList:Formatter.allowNull(this.accessList.bind(this),null),blockHash:Formatter.allowNull(fe,null),blockNumber:Formatter.allowNull(ve,null),transactionIndex:Formatter.allowNull(ve,null),confirmations:Formatter.allowNull(ve,null),from:k,gasPrice:Formatter.allowNull(ie),maxPriorityFeePerGas:Formatter.allowNull(ie),maxFeePerGas:Formatter.allowNull(ie),gasLimit:ie,to:Formatter.allowNull(k,null),value:ie,nonce:ve,data:ce,r:Formatter.allowNull(this.uint256),s:Formatter.allowNull(this.uint256),v:Formatter.allowNull(ve),creates:Formatter.allowNull(k,null),raw:Formatter.allowNull(ce)},v.transactionRequest={from:Formatter.allowNull(k),nonce:Formatter.allowNull(ve),gasLimit:Formatter.allowNull(ie),gasPrice:Formatter.allowNull(ie),maxPriorityFeePerGas:Formatter.allowNull(ie),maxFeePerGas:Formatter.allowNull(ie),to:Formatter.allowNull(k),value:Formatter.allowNull(ie),data:Formatter.allowNull(ye),type:Formatter.allowNull(ve),accessList:Formatter.allowNull(this.accessList.bind(this),null)},v.receiptLog={transactionIndex:ve,blockNumber:ve,transactionHash:fe,address:k,topics:Formatter.arrayOf(fe),data:ce,logIndex:ve,blockHash:fe},v.receipt={to:Formatter.allowNull(this.address,null),from:Formatter.allowNull(this.address,null),contractAddress:Formatter.allowNull(k,null),transactionIndex:ve,root:Formatter.allowNull(le),gasUsed:ie,logsBloom:Formatter.allowNull(ce),blockHash:fe,transactionHash:fe,logs:Formatter.arrayOf(this.receiptLog.bind(this)),blockNumber:ve,confirmations:Formatter.allowNull(ve,null),cumulativeGasUsed:ie,effectiveGasPrice:Formatter.allowNull(ie),status:Formatter.allowNull(ve),type:pe},v.block={hash:Formatter.allowNull(fe),parentHash:fe,number:ve,timestamp:ve,nonce:Formatter.allowNull(le),difficulty:this.difficulty.bind(this),gasLimit:ie,gasUsed:ie,miner:Formatter.allowNull(k),extraData:ce,transactions:Formatter.allowNull(Formatter.arrayOf(fe)),baseFeePerGas:Formatter.allowNull(ie)},v.blockWithTransactions=shallowCopy(v.block),v.blockWithTransactions.transactions=Formatter.allowNull(Formatter.arrayOf(this.transactionResponse.bind(this))),v.filter={fromBlock:Formatter.allowNull(ae,void 0),toBlock:Formatter.allowNull(ae,void 0),blockHash:Formatter.allowNull(fe,void 0),address:Formatter.allowNull(k,void 0),topics:Formatter.allowNull(this.topics.bind(this),void 0)},v.filterLog={blockNumber:Formatter.allowNull(ve),blockHash:Formatter.allowNull(fe),transactionIndex:ve,removed:Formatter.allowNull(this.boolean.bind(this)),address:k,data:Formatter.allowFalsish(ce,"0x"),topics:Formatter.arrayOf(fe),transactionHash:fe,logIndex:ve},v}accessList(v){return accessListify(v||[])}number(v){return v==="0x"?0:BigNumber.from(v).toNumber()}type(v){return v==="0x"||v==null?0:BigNumber.from(v).toNumber()}bigNumber(v){return BigNumber.from(v)}boolean(v){if(typeof v=="boolean")return v;if(typeof v=="string"){if(v=v.toLowerCase(),v==="true")return!0;if(v==="false")return!1}throw new Error("invalid boolean - "+v)}hex(v,k){return typeof v=="string"&&(!k&&v.substring(0,2)!=="0x"&&(v="0x"+v),isHexString(v))?v.toLowerCase():logger29.throwArgumentError("invalid hash","value",v)}data(v,k){const ie=this.hex(v,k);if(ie.length%2!==0)throw new Error("invalid data; odd-length - "+v);return ie}address(v){return getAddress(v)}callAddress(v){if(!isHexString(v,32))return null;const k=getAddress(hexDataSlice(v,12));return k===AddressZero?null:k}contractAddress(v){return getContractAddress(v)}blockTag(v){if(v==null)return"latest";if(v==="earliest")return"0x0";switch(v){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return v}if(typeof v=="number"||isHexString(v))return hexValue(v);throw new Error("invalid blockTag")}hash(v,k){const ie=this.hex(v,k);return hexDataLength(ie)!==32?logger29.throwArgumentError("invalid hash","value",v):ie}difficulty(v){if(v==null)return null;const k=BigNumber.from(v);try{return k.toNumber()}catch{}return null}uint256(v){if(!isHexString(v))throw new Error("invalid uint256");return hexZeroPad(v,32)}_block(v,k){v.author!=null&&v.miner==null&&(v.miner=v.author);const ie=v._difficulty!=null?v._difficulty:v.difficulty,ae=Formatter.check(k,v);return ae._difficulty=ie==null?null:BigNumber.from(ie),ae}block(v){return this._block(v,this.formats.block)}blockWithTransactions(v){return this._block(v,this.formats.blockWithTransactions)}transactionRequest(v){return Formatter.check(this.formats.transactionRequest,v)}transactionResponse(v){v.gas!=null&&v.gasLimit==null&&(v.gasLimit=v.gas),v.to&&BigNumber.from(v.to).isZero()&&(v.to="0x0000000000000000000000000000000000000000"),v.input!=null&&v.data==null&&(v.data=v.input),v.to==null&&v.creates==null&&(v.creates=this.contractAddress(v)),(v.type===1||v.type===2)&&v.accessList==null&&(v.accessList=[]);const k=Formatter.check(this.formats.transaction,v);if(v.chainId!=null){let ie=v.chainId;isHexString(ie)&&(ie=BigNumber.from(ie).toNumber()),k.chainId=ie}else{let ie=v.networkId;ie==null&&k.v==null&&(ie=v.chainId),isHexString(ie)&&(ie=BigNumber.from(ie).toNumber()),typeof ie!="number"&&k.v!=null&&(ie=(k.v-35)/2,ie<0&&(ie=0),ie=parseInt(ie)),typeof ie!="number"&&(ie=0),k.chainId=ie}return k.blockHash&&k.blockHash.replace(/0/g,"")==="x"&&(k.blockHash=null),k}transaction(v){return parse(v)}receiptLog(v){return Formatter.check(this.formats.receiptLog,v)}receipt(v){const k=Formatter.check(this.formats.receipt,v);if(k.root!=null)if(k.root.length<=4){const ie=BigNumber.from(k.root).toNumber();ie===0||ie===1?(k.status!=null&&k.status!==ie&&logger29.throwArgumentError("alt-root-status/status mismatch","value",{root:k.root,status:k.status}),k.status=ie,delete k.root):logger29.throwArgumentError("invalid alt-root-status","value.root",k.root)}else k.root.length!==66&&logger29.throwArgumentError("invalid root hash","value.root",k.root);return k.status!=null&&(k.byzantium=!0),k}topics(v){return Array.isArray(v)?v.map(k=>this.topics(k)):v!=null?this.hash(v,!0):null}filter(v){return Formatter.check(this.formats.filter,v)}filterLog(v){return Formatter.check(this.formats.filterLog,v)}static check(v,k){const ie={};for(const ae in v)try{const ce=v[ae](k[ae]);ce!==void 0&&(ie[ae]=ce)}catch(ce){throw ce.checkKey=ae,ce.checkValue=k[ae],ce}return ie}static allowNull(v,k){return function(ie){return ie==null?k:v(ie)}}static allowFalsish(v,k){return function(ie){return ie?v(ie):k}}static arrayOf(v){return function(k){if(!Array.isArray(k))throw new Error("not an array");const ie=[];return k.forEach(function(ae){ie.push(v(ae))}),ie}}};function isCommunityResourcable(v){return v&&typeof v.isCommunityResource=="function"}function isCommunityResource(v){return isCommunityResourcable(v)&&v.isCommunityResource()}var throttleMessage=!1;function showThrottleMessage(){throttleMessage||(throttleMessage=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}var __awaiter10=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger30=new Logger(version23),MAX_CCIP_REDIRECTS=10;function checkTopic(v){return v==null?"null":(hexDataLength(v)!==32&&logger30.throwArgumentError("invalid topic","topic",v),v.toLowerCase())}function serializeTopics(v){for(v=v.slice();v.length>0&&v[v.length-1]==null;)v.pop();return v.map(k=>{if(Array.isArray(k)){const ie={};k.forEach(ce=>{ie[checkTopic(ce)]=!0});const ae=Object.keys(ie);return ae.sort(),ae.join("|")}else return checkTopic(k)}).join("&")}function deserializeTopics(v){return v===""?[]:v.split(/&/g).map(k=>{if(k==="")return[];const ie=k.split("|").map(ae=>ae==="null"?null:ae);return ie.length===1?ie[0]:ie})}function getEventTag2(v){if(typeof v=="string"){if(v=v.toLowerCase(),hexDataLength(v)===32)return"tx:"+v;if(v.indexOf(":")===-1)return v}else{if(Array.isArray(v))return"filter:*:"+serializeTopics(v);if(ForkEvent.isForkEvent(v))throw logger30.warn("not implemented"),new Error("not implemented");if(v&&typeof v=="object")return"filter:"+(v.address||"*")+":"+serializeTopics(v.topics||[])}throw new Error("invalid event - "+v)}function getTime(){return new Date().getTime()}function stall(v){return new Promise(k=>{setTimeout(k,v)})}var PollableEvents=["block","network","pending","poll"],Event=class{constructor(v,k,ie){defineReadOnly(this,"tag",v),defineReadOnly(this,"listener",k),defineReadOnly(this,"once",ie),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const v=this.tag.split(":");return v[0]!=="tx"?null:v[1]}get filter(){const v=this.tag.split(":");if(v[0]!=="filter")return null;const k=v[1],ie=deserializeTopics(v[2]),ae={};return ie.length>0&&(ae.topics=ie),k&&k!=="*"&&(ae.address=k),ae}pollable(){return this.tag.indexOf(":")>=0||PollableEvents.indexOf(this.tag)>=0}},coinInfos={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function bytes32ify(v){return hexZeroPad(BigNumber.from(v).toHexString(),32)}function base58Encode(v){return Base58.encode(concat$4([v,hexDataSlice(sha256(sha256(v)),0,4)]))}var matcherIpfs=new RegExp("^(ipfs)://(.*)$","i"),matchers=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),matcherIpfs,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function _parseString(v,k){try{return toUtf8String(_parseBytes(v,k))}catch{}return null}function _parseBytes(v,k){if(v==="0x")return null;const ie=BigNumber.from(hexDataSlice(v,k,k+32)).toNumber(),ae=BigNumber.from(hexDataSlice(v,ie,ie+32)).toNumber();return hexDataSlice(v,ie+32,ie+32+ae)}function getIpfsLink(v){return v.match(/^ipfs:\/\/ipfs\//i)?v=v.substring(12):v.match(/^ipfs:\/\//i)?v=v.substring(7):logger30.throwArgumentError("unsupported IPFS format","link",v),`https://gateway.ipfs.io/ipfs/${v}`}function numPad(v){const k=arrayify(v);if(k.length>32)throw new Error("internal; should not happen");const ie=new Uint8Array(32);return ie.set(k,32-k.length),ie}function bytesPad(v){if(v.length%32===0)return v;const k=new Uint8Array(Math.ceil(v.length/32)*32);return k.set(v),k}function encodeBytes(v){const k=[];let ie=0;for(let ae=0;aeBigNumber.from(v).eq(1)).catch(v=>{if(v.code===Logger.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,v})),this._supportsEip2544}_fetch(v,k){return __awaiter10(this,void 0,void 0,function*(){const ie={to:this.address,ccipReadEnabled:!0,data:hexConcat([v,namehash(this.name),k||"0x"])};let ae=!1;(yield this.supportsWildcard())&&(ae=!0,ie.data=hexConcat(["0x9061b923",encodeBytes([dnsEncode(this.name),ie.data])]));try{let ce=yield this.provider.call(ie);return arrayify(ce).length%32===4&&logger30.throwError("resolver threw error",Logger.errors.CALL_EXCEPTION,{transaction:ie,data:ce}),ae&&(ce=_parseBytes(ce,0)),ce}catch(ce){if(ce.code===Logger.errors.CALL_EXCEPTION)return null;throw ce}})}_fetchBytes(v,k){return __awaiter10(this,void 0,void 0,function*(){const ie=yield this._fetch(v,k);return ie!=null?_parseBytes(ie,0):null})}_getAddress(v,k){const ie=coinInfos[String(v)];if(ie==null&&logger30.throwError(`unsupported coin type: ${v}`,Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${v})`}),ie.ilk==="eth")return this.provider.formatter.address(k);const ae=arrayify(k);if(ie.p2pkh!=null){const ce=k.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(ce){const fe=parseInt(ce[1],16);if(ce[2].length===fe*2&&fe>=1&&fe<=75)return base58Encode(concat$4([[ie.p2pkh],"0x"+ce[2]]))}}if(ie.p2sh!=null){const ce=k.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(ce){const fe=parseInt(ce[1],16);if(ce[2].length===fe*2&&fe>=1&&fe<=75)return base58Encode(concat$4([[ie.p2sh],"0x"+ce[2]]))}}if(ie.prefix!=null){const ce=ae[1];let fe=ae[0];if(fe===0?ce!==20&&ce!==32&&(fe=-1):fe=-1,fe>=0&&ae.length===2+ce&&ce>=1&&ce<=75){const le=import_bech32.default.toWords(ae.slice(2));return le.unshift(fe),import_bech32.default.encode(ie.prefix,le)}}return null}getAddress(v){return __awaiter10(this,void 0,void 0,function*(){if(v==null&&(v=60),v===60)try{const ae=yield this._fetch("0x3b3b57de");return ae==="0x"||ae===HashZero?null:this.provider.formatter.callAddress(ae)}catch(ae){if(ae.code===Logger.errors.CALL_EXCEPTION)return null;throw ae}const k=yield this._fetchBytes("0xf1cb7e06",bytes32ify(v));if(k==null||k==="0x")return null;const ie=this._getAddress(v,k);return ie==null&&logger30.throwError("invalid or unsupported coin data",Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${v})`,coinType:v,data:k}),ie})}getAvatar(){return __awaiter10(this,void 0,void 0,function*(){const v=[{type:"name",content:this.name}];try{const k=yield this.getText("avatar");if(k==null)return null;for(let ie=0;iefe[ve]);return"sia://"+le}return logger30.throwError("invalid or unsupported content hash data",Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:v})})}getText(v){return __awaiter10(this,void 0,void 0,function*(){let k=toUtf8Bytes(v);k=concat$4([bytes32ify(64),bytes32ify(k.length),k]),k.length%32!==0&&(k=concat$4([k,hexZeroPad("0x",32-v.length%32)]));const ie=yield this._fetchBytes("0x59d1d43c",hexlify(k));return ie==null||ie==="0x"?null:toUtf8String(ie)})}},defaultFormatter=null,nextPollId=1,BaseProvider=class extends Provider{constructor(v){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),defineReadOnly(this,"anyNetwork",v==="any"),this.anyNetwork&&(v=this.detectNetwork()),v instanceof Promise)this._networkPromise=v,v.catch(k=>{}),this._ready().catch(k=>{});else{const k=getStatic(new.target,"getNetwork")(v);k?(defineReadOnly(this,"_network",k),this.emit("network",k,null)):logger30.throwArgumentError("invalid network","network",v)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return __awaiter10(this,void 0,void 0,function*(){if(this._network==null){let v=null;if(this._networkPromise)try{v=yield this._networkPromise}catch{}v==null&&(v=yield this.detectNetwork()),v||logger30.throwError("no network detected",Logger.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=v:defineReadOnly(this,"_network",v),this.emit("network",v,null))}return this._network})}get ready(){return poll(()=>this._ready().then(v=>v,v=>{if(!(v.code===Logger.errors.NETWORK_ERROR&&v.event==="noNetwork"))throw v}))}static getFormatter(){return defaultFormatter==null&&(defaultFormatter=new Formatter),defaultFormatter}static getNetwork(v){return getNetwork(v==null?"homestead":v)}ccipReadFetch(v,k,ie){return __awaiter10(this,void 0,void 0,function*(){if(this.disableCcipRead||ie.length===0)return null;const ae=v.to.toLowerCase(),ce=k.toLowerCase(),fe=[];for(let le=0;le=0?null:JSON.stringify({data:ce,sender:ae}),me=yield fetchJson({url:pe,errorPassThrough:!0},ye,(cr,Br)=>(cr.status=Br.statusCode,cr));if(me.data)return me.data;const Ee=me.message||"unknown error";if(me.status>=400&&me.status<500)return logger30.throwError(`response not found during CCIP fetch: ${Ee}`,Logger.errors.SERVER_ERROR,{url:ve,errorMessage:Ee});fe.push(Ee)}return logger30.throwError(`error encountered during CCIP fetch: ${fe.map(le=>JSON.stringify(le)).join(", ")}`,Logger.errors.SERVER_ERROR,{urls:ie,errorMessages:fe})})}_getInternalBlockNumber(v){return __awaiter10(this,void 0,void 0,function*(){if(yield this._ready(),v>0)for(;this._internalBlockNumber;){const ae=this._internalBlockNumber;try{const ce=yield ae;if(getTime()-ce.respTime<=v)return ce.blockNumber;break}catch{if(this._internalBlockNumber===ae)break}}const k=getTime(),ie=resolveProperties({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(ae=>null,ae=>ae)}).then(({blockNumber:ae,networkError:ce})=>{if(ce)throw this._internalBlockNumber===ie&&(this._internalBlockNumber=null),ce;const fe=getTime();return ae=BigNumber.from(ae).toNumber(),ae{this._internalBlockNumber===ie&&(this._internalBlockNumber=null)}),(yield ie).blockNumber})}poll(){return __awaiter10(this,void 0,void 0,function*(){const v=nextPollId++,k=[];let ie=null;try{ie=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(ae){this.emit("error",ae);return}if(this._setFastBlockNumber(ie),this.emit("poll",v,ie),ie===this._lastBlockNumber){this.emit("didPoll",v);return}if(this._emitted.block===-2&&(this._emitted.block=ie-1),Math.abs(this._emitted.block-ie)>1e3)logger30.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${ie})`),this.emit("error",logger30.makeError("network block skew detected",Logger.errors.NETWORK_ERROR,{blockNumber:ie,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",ie);else for(let ae=this._emitted.block+1;ae<=ie;ae++)this.emit("block",ae);this._emitted.block!==ie&&(this._emitted.block=ie,Object.keys(this._emitted).forEach(ae=>{if(ae==="block")return;const ce=this._emitted[ae];ce!=="pending"&&ie-ce>12&&delete this._emitted[ae]})),this._lastBlockNumber===-2&&(this._lastBlockNumber=ie-1),this._events.forEach(ae=>{switch(ae.type){case"tx":{const ce=ae.hash;let fe=this.getTransactionReceipt(ce).then(le=>(!le||le.blockNumber==null||(this._emitted["t:"+ce]=le.blockNumber,this.emit(ce,le)),null)).catch(le=>{this.emit("error",le)});k.push(fe);break}case"filter":{if(!ae._inflight){ae._inflight=!0,ae._lastBlockNumber===-2&&(ae._lastBlockNumber=ie-1);const ce=ae.filter;ce.fromBlock=ae._lastBlockNumber+1,ce.toBlock=ie;const fe=ce.toBlock-this._maxFilterBlockRange;fe>ce.fromBlock&&(ce.fromBlock=fe),ce.fromBlock<0&&(ce.fromBlock=0);const le=this.getLogs(ce).then(ve=>{ae._inflight=!1,ve.length!==0&&ve.forEach(pe=>{pe.blockNumber>ae._lastBlockNumber&&(ae._lastBlockNumber=pe.blockNumber),this._emitted["b:"+pe.blockHash]=pe.blockNumber,this._emitted["t:"+pe.transactionHash]=pe.blockNumber,this.emit(ce,pe)})}).catch(ve=>{this.emit("error",ve),ae._inflight=!1});k.push(le)}break}}}),this._lastBlockNumber=ie,Promise.all(k).then(()=>{this.emit("didPoll",v)}).catch(ae=>{this.emit("error",ae)})})}resetEventsBlock(v){this._lastBlockNumber=v-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return __awaiter10(this,void 0,void 0,function*(){return logger30.throwError("provider does not support network detection",Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return __awaiter10(this,void 0,void 0,function*(){const v=yield this._ready(),k=yield this.detectNetwork();if(v.chainId!==k.chainId){if(this.anyNetwork)return this._network=k,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",k,v),yield stall(0),this._network;const ie=logger30.makeError("underlying network changed",Logger.errors.NETWORK_ERROR,{event:"changed",network:v,detectedNetwork:k});throw this.emit("error",ie),ie}return v})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(v=>{this._setFastBlockNumber(v)},v=>{}),this._fastBlockNumber!=null?this._fastBlockNumber:-1}get polling(){return this._poller!=null}set polling(v){v&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!v&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(v){if(typeof v!="number"||v<=0||parseInt(String(v))!=v)throw new Error("invalid polling interval");this._pollingInterval=v,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const v=getTime();return v-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=v,this._fastBlockNumberPromise=this.getBlockNumber().then(k=>((this._fastBlockNumber==null||k>this._fastBlockNumber)&&(this._fastBlockNumber=k),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(v){this._fastBlockNumber!=null&&vthis._fastBlockNumber)&&(this._fastBlockNumber=v,this._fastBlockNumberPromise=Promise.resolve(v)))}waitForTransaction(v,k,ie){return __awaiter10(this,void 0,void 0,function*(){return this._waitForTransaction(v,k==null?1:k,ie||0,null)})}_waitForTransaction(v,k,ie,ae){return __awaiter10(this,void 0,void 0,function*(){const ce=yield this.getTransactionReceipt(v);return(ce?ce.confirmations:0)>=k?ce:new Promise((fe,le)=>{const ve=[];let pe=!1;const ye=function(){return pe?!0:(pe=!0,ve.forEach(Ee=>{Ee()}),!1)},me=Ee=>{Ee.confirmations{this.removeListener(v,me)}),ae){let Ee=ae.startBlock,cr=null;const Br=$r=>__awaiter10(this,void 0,void 0,function*(){pe||(yield stall(1e3),this.getTransactionCount(ae.from).then(Pr=>__awaiter10(this,void 0,void 0,function*(){if(!pe){if(Pr<=ae.nonce)Ee=$r;else{{const Ar=yield this.getTransaction(v);if(Ar&&Ar.blockNumber!=null)return}for(cr==null&&(cr=Ee-3,cr{pe||this.once("block",Br)}))});if(pe)return;this.once("block",Br),ve.push(()=>{this.removeListener("block",Br)})}if(typeof ie=="number"&&ie>0){const Ee=setTimeout(()=>{ye()||le(logger30.makeError("timeout exceeded",Logger.errors.TIMEOUT,{timeout:ie}))},ie);Ee.unref&&Ee.unref(),ve.push(()=>{clearTimeout(Ee)})}})})}getBlockNumber(){return __awaiter10(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork();const v=yield this.perform("getGasPrice",{});try{return BigNumber.from(v)}catch(k){return logger30.throwError("bad result from backend",Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:v,error:k})}})}getBalance(v,k){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork();const ie=yield resolveProperties({address:this._getAddress(v),blockTag:this._getBlockTag(k)}),ae=yield this.perform("getBalance",ie);try{return BigNumber.from(ae)}catch(ce){return logger30.throwError("bad result from backend",Logger.errors.SERVER_ERROR,{method:"getBalance",params:ie,result:ae,error:ce})}})}getTransactionCount(v,k){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork();const ie=yield resolveProperties({address:this._getAddress(v),blockTag:this._getBlockTag(k)}),ae=yield this.perform("getTransactionCount",ie);try{return BigNumber.from(ae).toNumber()}catch(ce){return logger30.throwError("bad result from backend",Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:ie,result:ae,error:ce})}})}getCode(v,k){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork();const ie=yield resolveProperties({address:this._getAddress(v),blockTag:this._getBlockTag(k)}),ae=yield this.perform("getCode",ie);try{return hexlify(ae)}catch(ce){return logger30.throwError("bad result from backend",Logger.errors.SERVER_ERROR,{method:"getCode",params:ie,result:ae,error:ce})}})}getStorageAt(v,k,ie){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork();const ae=yield resolveProperties({address:this._getAddress(v),blockTag:this._getBlockTag(ie),position:Promise.resolve(k).then(fe=>hexValue(fe))}),ce=yield this.perform("getStorageAt",ae);try{return hexlify(ce)}catch(fe){return logger30.throwError("bad result from backend",Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:ae,result:ce,error:fe})}})}_wrapTransaction(v,k,ie){if(k!=null&&hexDataLength(k)!==32)throw new Error("invalid response - sendTransaction");const ae=v;return k!=null&&v.hash!==k&&logger30.throwError("Transaction hash mismatch from Provider.sendTransaction.",Logger.errors.UNKNOWN_ERROR,{expectedHash:v.hash,returnedHash:k}),ae.wait=(ce,fe)=>__awaiter10(this,void 0,void 0,function*(){ce==null&&(ce=1),fe==null&&(fe=0);let le;ce!==0&&ie!=null&&(le={data:v.data,from:v.from,nonce:v.nonce,to:v.to,value:v.value,startBlock:ie});const ve=yield this._waitForTransaction(v.hash,ce,fe,le);return ve==null&&ce===0?null:(this._emitted["t:"+v.hash]=ve.blockNumber,ve.status===0&&logger30.throwError("transaction failed",Logger.errors.CALL_EXCEPTION,{transactionHash:v.hash,transaction:v,receipt:ve}),ve)}),ae}sendTransaction(v){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork();const k=yield Promise.resolve(v).then(ce=>hexlify(ce)),ie=this.formatter.transaction(v);ie.confirmations==null&&(ie.confirmations=0);const ae=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const ce=yield this.perform("sendTransaction",{signedTransaction:k});return this._wrapTransaction(ie,ce,ae)}catch(ce){throw ce.transaction=ie,ce.transactionHash=ie.hash,ce}})}_getTransactionRequest(v){return __awaiter10(this,void 0,void 0,function*(){const k=yield v,ie={};return["from","to"].forEach(ae=>{k[ae]!=null&&(ie[ae]=Promise.resolve(k[ae]).then(ce=>ce?this._getAddress(ce):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(ae=>{k[ae]!=null&&(ie[ae]=Promise.resolve(k[ae]).then(ce=>ce?BigNumber.from(ce):null))}),["type"].forEach(ae=>{k[ae]!=null&&(ie[ae]=Promise.resolve(k[ae]).then(ce=>ce!=null?ce:null))}),k.accessList&&(ie.accessList=this.formatter.accessList(k.accessList)),["data"].forEach(ae=>{k[ae]!=null&&(ie[ae]=Promise.resolve(k[ae]).then(ce=>ce?hexlify(ce):null))}),this.formatter.transactionRequest(yield resolveProperties(ie))})}_getFilter(v){return __awaiter10(this,void 0,void 0,function*(){v=yield v;const k={};return v.address!=null&&(k.address=this._getAddress(v.address)),["blockHash","topics"].forEach(ie=>{v[ie]!=null&&(k[ie]=v[ie])}),["fromBlock","toBlock"].forEach(ie=>{v[ie]!=null&&(k[ie]=this._getBlockTag(v[ie]))}),this.formatter.filter(yield resolveProperties(k))})}_call(v,k,ie){return __awaiter10(this,void 0,void 0,function*(){ie>=MAX_CCIP_REDIRECTS&&logger30.throwError("CCIP read exceeded maximum redirections",Logger.errors.SERVER_ERROR,{redirects:ie,transaction:v});const ae=v.to,ce=yield this.perform("call",{transaction:v,blockTag:k});if(ie>=0&&k==="latest"&&ae!=null&&ce.substring(0,10)==="0x556f1830"&&hexDataLength(ce)%32===4)try{const fe=hexDataSlice(ce,4),le=hexDataSlice(fe,0,32);BigNumber.from(le).eq(ae)||logger30.throwError("CCIP Read sender did not match",Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:v,data:ce});const ve=[],pe=BigNumber.from(hexDataSlice(fe,32,64)).toNumber(),ye=BigNumber.from(hexDataSlice(fe,pe,pe+32)).toNumber(),me=hexDataSlice(fe,pe+32);for(let Ar=0;Ar__awaiter10(this,void 0,void 0,function*(){const ce=yield this.perform("getBlock",ae);if(ce==null)return ae.blockHash!=null&&this._emitted["b:"+ae.blockHash]==null||ae.blockTag!=null&&ie>this._emitted.block?null:void 0;if(k){let fe=null;for(let ve=0;vethis._wrapTransaction(ve)),le}return this.formatter.block(ce)}),{oncePoll:this})})}getBlock(v){return this._getBlock(v,!1)}getBlockWithTransactions(v){return this._getBlock(v,!0)}getTransaction(v){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork(),v=yield v;const k={transactionHash:this.formatter.hash(v,!0)};return poll(()=>__awaiter10(this,void 0,void 0,function*(){const ie=yield this.perform("getTransaction",k);if(ie==null)return this._emitted["t:"+v]==null?null:void 0;const ae=this.formatter.transactionResponse(ie);if(ae.blockNumber==null)ae.confirmations=0;else if(ae.confirmations==null){let fe=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-ae.blockNumber+1;fe<=0&&(fe=1),ae.confirmations=fe}return this._wrapTransaction(ae)}),{oncePoll:this})})}getTransactionReceipt(v){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork(),v=yield v;const k={transactionHash:this.formatter.hash(v,!0)};return poll(()=>__awaiter10(this,void 0,void 0,function*(){const ie=yield this.perform("getTransactionReceipt",k);if(ie==null)return this._emitted["t:"+v]==null?null:void 0;if(ie.blockHash==null)return;const ae=this.formatter.receipt(ie);if(ae.blockNumber==null)ae.confirmations=0;else if(ae.confirmations==null){let fe=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-ae.blockNumber+1;fe<=0&&(fe=1),ae.confirmations=fe}return ae}),{oncePoll:this})})}getLogs(v){return __awaiter10(this,void 0,void 0,function*(){yield this.getNetwork();const k=yield resolveProperties({filter:this._getFilter(v)}),ie=yield this.perform("getLogs",k);return ie.forEach(ae=>{ae.removed==null&&(ae.removed=!1)}),Formatter.arrayOf(this.formatter.filterLog.bind(this.formatter))(ie)})}getEtherPrice(){return __awaiter10(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(v){return __awaiter10(this,void 0,void 0,function*(){if(v=yield v,typeof v=="number"&&v<0){v%1&&logger30.throwArgumentError("invalid BlockTag","blockTag",v);let k=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return k+=v,k<0&&(k=0),this.formatter.blockTag(k)}return this.formatter.blockTag(v)})}getResolver(v){return __awaiter10(this,void 0,void 0,function*(){let k=v;for(;;){if(k===""||k==="."||v!=="eth"&&k==="eth")return null;const ie=yield this._getResolver(k,"getResolver");if(ie!=null){const ae=new Resolver(this,ie,v);return k!==v&&!(yield ae.supportsWildcard())?null:ae}k=k.split(".").slice(1).join(".")}})}_getResolver(v,k){return __awaiter10(this,void 0,void 0,function*(){k==null&&(k="ENS");const ie=yield this.getNetwork();ie.ensAddress||logger30.throwError("network does not support ENS",Logger.errors.UNSUPPORTED_OPERATION,{operation:k,network:ie.name});try{const ae=yield this.call({to:ie.ensAddress,data:"0x0178b8bf"+namehash(v).substring(2)});return this.formatter.callAddress(ae)}catch{}return null})}resolveName(v){return __awaiter10(this,void 0,void 0,function*(){v=yield v;try{return Promise.resolve(this.formatter.address(v))}catch(ie){if(isHexString(v))throw ie}typeof v!="string"&&logger30.throwArgumentError("invalid ENS name","name",v);const k=yield this.getResolver(v);return k?yield k.getAddress():null})}lookupAddress(v){return __awaiter10(this,void 0,void 0,function*(){v=yield v,v=this.formatter.address(v);const k=v.substring(2).toLowerCase()+".addr.reverse",ie=yield this._getResolver(k,"lookupAddress");if(ie==null)return null;const ae=_parseString(yield this.call({to:ie,data:"0x691f3431"+namehash(k).substring(2)}),0);return(yield this.resolveName(ae))!=v?null:ae})}getAvatar(v){return __awaiter10(this,void 0,void 0,function*(){let k=null;if(isHexString(v)){const ce=this.formatter.address(v).substring(2).toLowerCase()+".addr.reverse",fe=yield this._getResolver(ce,"getAvatar");if(!fe)return null;k=new Resolver(this,fe,ce);try{const le=yield k.getAvatar();if(le)return le.url}catch(le){if(le.code!==Logger.errors.CALL_EXCEPTION)throw le}try{const le=_parseString(yield this.call({to:fe,data:"0x691f3431"+namehash(ce).substring(2)}),0);k=yield this.getResolver(le)}catch(le){if(le.code!==Logger.errors.CALL_EXCEPTION)throw le;return null}}else if(k=yield this.getResolver(v),!k)return null;const ie=yield k.getAvatar();return ie==null?null:ie.url})}perform(v,k){return logger30.throwError(v+" not implemented",Logger.errors.NOT_IMPLEMENTED,{operation:v})}_startEvent(v){this.polling=this._events.filter(k=>k.pollable()).length>0}_stopEvent(v){this.polling=this._events.filter(k=>k.pollable()).length>0}_addEventListener(v,k,ie){const ae=new Event(getEventTag2(v),k,ie);return this._events.push(ae),this._startEvent(ae),this}on(v,k){return this._addEventListener(v,k,!1)}once(v,k){return this._addEventListener(v,k,!0)}emit(v,...k){let ie=!1,ae=[],ce=getEventTag2(v);return this._events=this._events.filter(fe=>fe.tag!==ce?!0:(setTimeout(()=>{fe.listener.apply(this,k)},0),ie=!0,fe.once?(ae.push(fe),!1):!0)),ae.forEach(fe=>{this._stopEvent(fe)}),ie}listenerCount(v){if(!v)return this._events.length;let k=getEventTag2(v);return this._events.filter(ie=>ie.tag===k).length}listeners(v){if(v==null)return this._events.map(ie=>ie.listener);let k=getEventTag2(v);return this._events.filter(ie=>ie.tag===k).map(ie=>ie.listener)}off(v,k){if(k==null)return this.removeAllListeners(v);const ie=[];let ae=!1,ce=getEventTag2(v);return this._events=this._events.filter(fe=>fe.tag!==ce||fe.listener!=k||ae?!0:(ae=!0,ie.push(fe),!1)),ie.forEach(fe=>{this._stopEvent(fe)}),this}removeAllListeners(v){let k=[];if(v==null)k=this._events,this._events=[];else{const ie=getEventTag2(v);this._events=this._events.filter(ae=>ae.tag!==ie?!0:(k.push(ae),!1))}return k.forEach(ie=>{this._stopEvent(ie)}),this}},__awaiter11=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger31=new Logger(version23),errorGas=["call","estimateGas"];function spelunk(v,k){if(v==null)return null;if(typeof v.message=="string"&&v.message.match("reverted")){const ie=isHexString(v.data)?v.data:null;if(!k||ie)return{message:v.message,data:ie}}if(typeof v=="object"){for(const ie in v){const ae=spelunk(v[ie],k);if(ae)return ae}return null}if(typeof v=="string")try{return spelunk(JSON.parse(v),k)}catch{}return null}function checkError(v,k,ie){const ae=ie.transaction||ie.signedTransaction;if(v==="call"){const fe=spelunk(k,!0);if(fe)return fe.data;logger31.throwError("missing revert data in call exception; Transaction reverted without a reason string",Logger.errors.CALL_EXCEPTION,{data:"0x",transaction:ae,error:k})}if(v==="estimateGas"){let fe=spelunk(k.body,!1);fe==null&&(fe=spelunk(k,!1)),fe&&logger31.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Logger.errors.UNPREDICTABLE_GAS_LIMIT,{reason:fe.message,method:v,transaction:ae,error:k})}let ce=k.message;throw k.code===Logger.errors.SERVER_ERROR&&k.error&&typeof k.error.message=="string"?ce=k.error.message:typeof k.body=="string"?ce=k.body:typeof k.responseText=="string"&&(ce=k.responseText),ce=(ce||"").toLowerCase(),ce.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&logger31.throwError("insufficient funds for intrinsic transaction cost",Logger.errors.INSUFFICIENT_FUNDS,{error:k,method:v,transaction:ae}),ce.match(/nonce (is )?too low/i)&&logger31.throwError("nonce has already been used",Logger.errors.NONCE_EXPIRED,{error:k,method:v,transaction:ae}),ce.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&logger31.throwError("replacement fee too low",Logger.errors.REPLACEMENT_UNDERPRICED,{error:k,method:v,transaction:ae}),ce.match(/only replay-protected/i)&&logger31.throwError("legacy pre-eip-155 transactions not supported",Logger.errors.UNSUPPORTED_OPERATION,{error:k,method:v,transaction:ae}),errorGas.indexOf(v)>=0&&ce.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&logger31.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:k,method:v,transaction:ae}),k}function timer(v){return new Promise(function(k){setTimeout(k,v)})}function getResult(v){if(v.error){const k=new Error(v.error.message);throw k.code=v.error.code,k.data=v.error.data,k}return v.result}function getLowerCase(v){return v&&v.toLowerCase()}var _constructorGuard5={},JsonRpcSigner=class extends Signer{constructor(v,k,ie){if(super(),v!==_constructorGuard5)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");defineReadOnly(this,"provider",k),ie==null&&(ie=0),typeof ie=="string"?(defineReadOnly(this,"_address",this.provider.formatter.address(ie)),defineReadOnly(this,"_index",null)):typeof ie=="number"?(defineReadOnly(this,"_index",ie),defineReadOnly(this,"_address",null)):logger31.throwArgumentError("invalid address or index","addressOrIndex",ie)}connect(v){return logger31.throwError("cannot alter JSON-RPC Signer connection",Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new UncheckedJsonRpcSigner(_constructorGuard5,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(v=>(v.length<=this._index&&logger31.throwError("unknown account #"+this._index,Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(v[this._index])))}sendUncheckedTransaction(v){v=shallowCopy(v);const k=this.getAddress().then(ie=>(ie&&(ie=ie.toLowerCase()),ie));if(v.gasLimit==null){const ie=shallowCopy(v);ie.from=k,v.gasLimit=this.provider.estimateGas(ie)}return v.to!=null&&(v.to=Promise.resolve(v.to).then(ie=>__awaiter11(this,void 0,void 0,function*(){if(ie==null)return null;const ae=yield this.provider.resolveName(ie);return ae==null&&logger31.throwArgumentError("provided ENS name resolves to null","tx.to",ie),ae}))),resolveProperties({tx:resolveProperties(v),sender:k}).then(({tx:ie,sender:ae})=>{ie.from!=null?ie.from.toLowerCase()!==ae&&logger31.throwArgumentError("from address mismatch","transaction",v):ie.from=ae;const ce=this.provider.constructor.hexlifyTransaction(ie,{from:!0});return this.provider.send("eth_sendTransaction",[ce]).then(fe=>fe,fe=>(typeof fe.message=="string"&&fe.message.match(/user denied/i)&&logger31.throwError("user rejected transaction",Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:ie}),checkError("sendTransaction",fe,ce)))})}signTransaction(v){return logger31.throwError("signing transactions is unsupported",Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(v){return __awaiter11(this,void 0,void 0,function*(){const k=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),ie=yield this.sendUncheckedTransaction(v);try{return yield poll(()=>__awaiter11(this,void 0,void 0,function*(){const ae=yield this.provider.getTransaction(ie);if(ae!==null)return this.provider._wrapTransaction(ae,ie,k)}),{oncePoll:this.provider})}catch(ae){throw ae.transactionHash=ie,ae}})}signMessage(v){return __awaiter11(this,void 0,void 0,function*(){const k=typeof v=="string"?toUtf8Bytes(v):v,ie=yield this.getAddress();try{return yield this.provider.send("personal_sign",[hexlify(k),ie.toLowerCase()])}catch(ae){throw typeof ae.message=="string"&&ae.message.match(/user denied/i)&&logger31.throwError("user rejected signing",Logger.errors.ACTION_REJECTED,{action:"signMessage",from:ie,messageData:v}),ae}})}_legacySignMessage(v){return __awaiter11(this,void 0,void 0,function*(){const k=typeof v=="string"?toUtf8Bytes(v):v,ie=yield this.getAddress();try{return yield this.provider.send("eth_sign",[ie.toLowerCase(),hexlify(k)])}catch(ae){throw typeof ae.message=="string"&&ae.message.match(/user denied/i)&&logger31.throwError("user rejected signing",Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:ie,messageData:v}),ae}})}_signTypedData(v,k,ie){return __awaiter11(this,void 0,void 0,function*(){const ae=yield TypedDataEncoder.resolveNames(v,k,ie,fe=>this.provider.resolveName(fe)),ce=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[ce.toLowerCase(),JSON.stringify(TypedDataEncoder.getPayload(ae.domain,k,ae.value))])}catch(fe){throw typeof fe.message=="string"&&fe.message.match(/user denied/i)&&logger31.throwError("user rejected signing",Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:ce,messageData:{domain:ae.domain,types:k,value:ae.value}}),fe}})}unlock(v){return __awaiter11(this,void 0,void 0,function*(){const k=this.provider,ie=yield this.getAddress();return k.send("personal_unlockAccount",[ie.toLowerCase(),v,null])})}},UncheckedJsonRpcSigner=class extends JsonRpcSigner{sendTransaction(v){return this.sendUncheckedTransaction(v).then(k=>({hash:k,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:ie=>this.provider.waitForTransaction(k,ie)}))}},allowedTransactionKeys4={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},JsonRpcProvider=class extends BaseProvider{constructor(v,k){let ie=k;ie==null&&(ie=new Promise((ae,ce)=>{setTimeout(()=>{this.detectNetwork().then(fe=>{ae(fe)},fe=>{ce(fe)})},0)})),super(ie),v||(v=getStatic(this.constructor,"defaultUrl")()),typeof v=="string"?defineReadOnly(this,"connection",Object.freeze({url:v})):defineReadOnly(this,"connection",Object.freeze(shallowCopy(v))),this._nextId=42}get _cache(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return __awaiter11(this,void 0,void 0,function*(){yield timer(0);let v=null;try{v=yield this.send("eth_chainId",[])}catch{try{v=yield this.send("net_version",[])}catch{}}if(v!=null){const k=getStatic(this.constructor,"getNetwork");try{return k(BigNumber.from(v).toNumber())}catch(ie){return logger31.throwError("could not detect network",Logger.errors.NETWORK_ERROR,{chainId:v,event:"invalidNetwork",serverError:ie})}}return logger31.throwError("could not detect network",Logger.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(v){return new JsonRpcSigner(_constructorGuard5,this,v)}getUncheckedSigner(v){return this.getSigner(v).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(v=>v.map(k=>this.formatter.address(k)))}send(v,k){const ie={method:v,params:k,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:deepCopy(ie),provider:this});const ae=["eth_chainId","eth_blockNumber"].indexOf(v)>=0;if(ae&&this._cache[v])return this._cache[v];const ce=fetchJson(this.connection,JSON.stringify(ie),getResult).then(fe=>(this.emit("debug",{action:"response",request:ie,response:fe,provider:this}),fe),fe=>{throw this.emit("debug",{action:"response",error:fe,request:ie,provider:this}),fe});return ae&&(this._cache[v]=ce,setTimeout(()=>{this._cache[v]=null},0)),ce}prepareRequest(v,k){switch(v){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[getLowerCase(k.address),k.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[getLowerCase(k.address),k.blockTag]];case"getCode":return["eth_getCode",[getLowerCase(k.address),k.blockTag]];case"getStorageAt":return["eth_getStorageAt",[getLowerCase(k.address),hexZeroPad(k.position,32),k.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[k.signedTransaction]];case"getBlock":return k.blockTag?["eth_getBlockByNumber",[k.blockTag,!!k.includeTransactions]]:k.blockHash?["eth_getBlockByHash",[k.blockHash,!!k.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[k.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[k.transactionHash]];case"call":{const ie=getStatic(this.constructor,"hexlifyTransaction");return["eth_call",[ie(k.transaction,{from:!0}),k.blockTag]]}case"estimateGas":{const ie=getStatic(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[ie(k.transaction,{from:!0})]]}case"getLogs":return k.filter&&k.filter.address!=null&&(k.filter.address=getLowerCase(k.filter.address)),["eth_getLogs",[k.filter]]}return null}perform(v,k){return __awaiter11(this,void 0,void 0,function*(){if(v==="call"||v==="estimateGas"){const ae=k.transaction;if(ae&&ae.type!=null&&BigNumber.from(ae.type).isZero()&&ae.maxFeePerGas==null&&ae.maxPriorityFeePerGas==null){const ce=yield this.getFeeData();ce.maxFeePerGas==null&&ce.maxPriorityFeePerGas==null&&(k=shallowCopy(k),k.transaction=shallowCopy(ae),delete k.transaction.type)}}const ie=this.prepareRequest(v,k);ie==null&&logger31.throwError(v+" not implemented",Logger.errors.NOT_IMPLEMENTED,{operation:v});try{return yield this.send(ie[0],ie[1])}catch(ae){return checkError(v,ae,k)}})}_startEvent(v){v.tag==="pending"&&this._startPending(),super._startEvent(v)}_startPending(){if(this._pendingFilter!=null)return;const v=this,k=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=k,k.then(function(ie){function ae(){v.send("eth_getFilterChanges",[ie]).then(function(ce){if(v._pendingFilter!=k)return null;let fe=Promise.resolve();return ce.forEach(function(le){v._emitted["t:"+le.toLowerCase()]="pending",fe=fe.then(function(){return v.getTransaction(le).then(function(ve){return v.emit("pending",ve),null})})}),fe.then(function(){return timer(1e3)})}).then(function(){if(v._pendingFilter!=k){v.send("eth_uninstallFilter",[ie]);return}return setTimeout(function(){ae()},0),null}).catch(ce=>{})}return ae(),ie}).catch(ie=>{})}_stopEvent(v){v.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),super._stopEvent(v)}static hexlifyTransaction(v,k){const ie=shallowCopy(allowedTransactionKeys4);if(k)for(const ce in k)k[ce]&&(ie[ce]=!0);checkProperties(v,ie);const ae={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(ce){if(v[ce]==null)return;const fe=hexValue(BigNumber.from(v[ce]));ce==="gasLimit"&&(ce="gas"),ae[ce]=fe}),["from","to","data"].forEach(function(ce){v[ce]!=null&&(ae[ce]=hexlify(v[ce]))}),v.accessList&&(ae.accessList=accessListify(v.accessList)),ae}},WS=null;try{if(WS=WebSocket,WS==null)throw new Error("inject please")}catch(v){const k=new Logger(version23);WS=function(){k.throwError("WebSockets not supported in this environment",Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var __awaiter12=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger32=new Logger(version23),NextId=1,WebSocketProvider=class extends JsonRpcProvider{constructor(v,k){k==="any"&&logger32.throwError("WebSocketProvider does not support 'any' network yet",Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),typeof v=="string"?super(v,k):super("_websocket",k),this._pollingInterval=-1,this._wsReady=!1,typeof v=="string"?defineReadOnly(this,"_websocket",new WS(this.connection.url)):defineReadOnly(this,"_websocket",v),defineReadOnly(this,"_requests",{}),defineReadOnly(this,"_subs",{}),defineReadOnly(this,"_subIds",{}),defineReadOnly(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach(ae=>{this.websocket.send(this._requests[ae].payload)})},this.websocket.onmessage=ae=>{const ce=ae.data,fe=JSON.parse(ce);if(fe.id!=null){const le=String(fe.id),ve=this._requests[le];if(delete this._requests[le],fe.result!==void 0)ve.callback(null,fe.result),this.emit("debug",{action:"response",request:JSON.parse(ve.payload),response:fe.result,provider:this});else{let pe=null;fe.error?(pe=new Error(fe.error.message||"unknown error"),defineReadOnly(pe,"code",fe.error.code||null),defineReadOnly(pe,"response",ce)):pe=new Error("unknown error"),ve.callback(pe,void 0),this.emit("debug",{action:"response",error:pe,request:JSON.parse(ve.payload),provider:this})}}else if(fe.method==="eth_subscription"){const le=this._subs[fe.params.subscription];le&&le.processFunc(fe.params.result)}else console.warn("this should not happen")};const ie=setInterval(()=>{this.emit("poll")},1e3);ie.unref&&ie.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(v){logger32.throwError("cannot reset events block on WebSocketProvider",Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(v){logger32.throwError("cannot set polling interval on WebSocketProvider",Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return __awaiter12(this,void 0,void 0,function*(){return null})}set polling(v){!v||logger32.throwError("cannot set polling on WebSocketProvider",Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(v,k){const ie=NextId++;return new Promise((ae,ce)=>{function fe(ve,pe){return ve?ce(ve):ae(pe)}const le=JSON.stringify({method:v,params:k,id:ie,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(le),provider:this}),this._requests[String(ie)]={callback:fe,payload:le},this._wsReady&&this.websocket.send(le)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(v,k,ie){return __awaiter12(this,void 0,void 0,function*(){let ae=this._subIds[v];ae==null&&(ae=Promise.all(k).then(fe=>this.send("eth_subscribe",fe)),this._subIds[v]=ae);const ce=yield ae;this._subs[ce]={tag:v,processFunc:ie}})}_startEvent(v){switch(v.type){case"block":this._subscribe("block",["newHeads"],k=>{const ie=BigNumber.from(k.number).toNumber();this._emitted.block=ie,this.emit("block",ie)});break;case"pending":this._subscribe("pending",["newPendingTransactions"],k=>{this.emit("pending",k)});break;case"filter":this._subscribe(v.tag,["logs",this._getFilter(v.filter)],k=>{k.removed==null&&(k.removed=!1),this.emit(v.filter,this.formatter.filterLog(k))});break;case"tx":{const k=ie=>{const ae=ie.hash;this.getTransactionReceipt(ae).then(ce=>{!ce||this.emit(ae,ce)})};k(v),this._subscribe("tx",["newHeads"],ie=>{this._events.filter(ae=>ae.type==="tx").forEach(k)});break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",v);break}}_stopEvent(v){let k=v.tag;if(v.type==="tx"){if(this._events.filter(ae=>ae.type==="tx").length)return;k="tx"}else if(this.listenerCount(v.event))return;const ie=this._subIds[k];!ie||(delete this._subIds[k],ie.then(ae=>{!this._subs[ae]||(delete this._subs[ae],this.send("eth_unsubscribe",[ae]))}))}destroy(){return __awaiter12(this,void 0,void 0,function*(){this.websocket.readyState===WS.CONNECTING&&(yield new Promise(v=>{this.websocket.onopen=function(){v(!0)},this.websocket.onerror=function(){v(!1)}})),this.websocket.close(1e3)})}},__awaiter13=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger33=new Logger(version23),StaticJsonRpcProvider=class extends JsonRpcProvider{detectNetwork(){const v=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return __awaiter13(this,void 0,void 0,function*(){let k=this.network;return k==null&&(k=yield v.detectNetwork.call(this),k||logger33.throwError("no network detected",Logger.errors.UNKNOWN_ERROR,{}),this._network==null&&(defineReadOnly(this,"_network",k),this.emit("network",k,null))),k})}},UrlJsonRpcProvider=class extends StaticJsonRpcProvider{constructor(v,k){logger33.checkAbstract(new.target,UrlJsonRpcProvider),v=getStatic(new.target,"getNetwork")(v),k=getStatic(new.target,"getApiKey")(k);const ie=getStatic(new.target,"getUrl")(v,k);super(ie,v),typeof k=="string"?defineReadOnly(this,"apiKey",k):k!=null&&Object.keys(k).forEach(ae=>{defineReadOnly(this,ae,k[ae])})}_startPending(){logger33.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(v){return logger33.throwError("API provider does not support signing",Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(v){return v}static getUrl(v,k){return logger33.throwError("not implemented; sub-classes must override getUrl",Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}},logger34=new Logger(version23),defaultApiKey="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",AlchemyWebSocketProvider=class extends WebSocketProvider{constructor(v,k){const ie=new AlchemyProvider(v,k),ae=ie.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");super(ae,ie.network),defineReadOnly(this,"apiKey",ie.apiKey)}isCommunityResource(){return this.apiKey===defaultApiKey}},AlchemyProvider=class extends UrlJsonRpcProvider{static getWebSocketProvider(v,k){return new AlchemyWebSocketProvider(v,k)}static getApiKey(v){return v==null?defaultApiKey:(v&&typeof v!="string"&&logger34.throwArgumentError("invalid apiKey","apiKey",v),v)}static getUrl(v,k){let ie=null;switch(v.name){case"homestead":ie="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":ie="eth-goerli.g.alchemy.com/v2/";break;case"matic":ie="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":ie="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":ie="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":ie="arb-goerli.g.alchemy.com/v2/";break;case"optimism":ie="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":ie="opt-goerli.g.alchemy.com/v2/";break;default:logger34.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+ie+k,throttleCallback:(ae,ce)=>(k===defaultApiKey&&showThrottleMessage(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===defaultApiKey}},logger35=new Logger(version23),defaultApiKey2="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function getHost(v){switch(v){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return logger35.throwArgumentError("unsupported network","name",v)}var AnkrProvider=class extends UrlJsonRpcProvider{isCommunityResource(){return this.apiKey===defaultApiKey2}static getApiKey(v){return v==null?defaultApiKey2:v}static getUrl(v,k){k==null&&(k=defaultApiKey2);const ie={allowGzip:!0,url:"https://"+getHost(v.name)+k,throttleCallback:(ae,ce)=>(k.apiKey===defaultApiKey2&&showThrottleMessage(),Promise.resolve(!0))};return k.projectSecret!=null&&(ie.user="",ie.password=k.projectSecret),ie}},__awaiter14=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger36=new Logger(version23),CloudflareProvider=class extends UrlJsonRpcProvider{static getApiKey(v){return v!=null&&logger36.throwArgumentError("apiKey not supported for cloudflare","apiKey",v),null}static getUrl(v,k){let ie=null;switch(v.name){case"homestead":ie="https://cloudflare-eth.com/";break;default:logger36.throwArgumentError("unsupported network","network",arguments[0])}return ie}perform(v,k){const ie=Object.create(null,{perform:{get:()=>super.perform}});return __awaiter14(this,void 0,void 0,function*(){return v==="getBlockNumber"?(yield ie.perform.call(this,"getBlock",{blockTag:"latest"})).number:ie.perform.call(this,v,k)})}},__awaiter15=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger37=new Logger(version23);function getTransactionPostData(v){const k={};for(let ie in v){if(v[ie]==null)continue;let ae=v[ie];ie==="type"&&ae===0||({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[ie]?ae=hexValue(hexlify(ae)):ie==="accessList"?ae="["+accessListify(ae).map(ce=>`{address:"${ce.address}",storageKeys:["${ce.storageKeys.join('","')}"]}`).join(",")+"]":ae=hexlify(ae),k[ie]=ae)}return k}function getResult2(v){if(v.status==0&&(v.message==="No records found"||v.message==="No transactions found"))return v.result;if(v.status!=1||typeof v.message!="string"||!v.message.match(/^OK/)){const k=new Error("invalid response");throw k.result=JSON.stringify(v),(v.result||"").toLowerCase().indexOf("rate limit")>=0&&(k.throttleRetry=!0),k}return v.result}function getJsonResult(v){if(v&&v.status==0&&v.message=="NOTOK"&&(v.result||"").toLowerCase().indexOf("rate limit")>=0){const k=new Error("throttled response");throw k.result=JSON.stringify(v),k.throttleRetry=!0,k}if(v.jsonrpc!="2.0"){const k=new Error("invalid response");throw k.result=JSON.stringify(v),k}if(v.error){const k=new Error(v.error.message||"unknown error");throw v.error.code&&(k.code=v.error.code),v.error.data&&(k.data=v.error.data),k}return v.result}function checkLogTag(v){if(v==="pending")throw new Error("pending not supported");return v==="latest"?v:parseInt(v.substring(2),16)}function checkError2(v,k,ie){if(v==="call"&&k.code===Logger.errors.SERVER_ERROR){const ce=k.error;if(ce&&(ce.message.match(/reverted/i)||ce.message.match(/VM execution error/i))){let fe=ce.data;if(fe&&(fe="0x"+fe.replace(/^.*0x/i,"")),isHexString(fe))return fe;logger37.throwError("missing revert data in call exception",Logger.errors.CALL_EXCEPTION,{error:k,data:"0x"})}}let ae=k.message;throw k.code===Logger.errors.SERVER_ERROR&&(k.error&&typeof k.error.message=="string"?ae=k.error.message:typeof k.body=="string"?ae=k.body:typeof k.responseText=="string"&&(ae=k.responseText)),ae=(ae||"").toLowerCase(),ae.match(/insufficient funds/)&&logger37.throwError("insufficient funds for intrinsic transaction cost",Logger.errors.INSUFFICIENT_FUNDS,{error:k,method:v,transaction:ie}),ae.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&logger37.throwError("nonce has already been used",Logger.errors.NONCE_EXPIRED,{error:k,method:v,transaction:ie}),ae.match(/another transaction with same nonce/)&&logger37.throwError("replacement fee too low",Logger.errors.REPLACEMENT_UNDERPRICED,{error:k,method:v,transaction:ie}),ae.match(/execution failed due to an exception|execution reverted/)&&logger37.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:k,method:v,transaction:ie}),k}var EtherscanProvider=class extends BaseProvider{constructor(v,k){super(v),defineReadOnly(this,"baseUrl",this.getBaseUrl()),defineReadOnly(this,"apiKey",k||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return logger37.throwArgumentError("unsupported network","network",this.network.name)}getUrl(v,k){const ie=Object.keys(k).reduce((ce,fe)=>{const le=k[fe];return le!=null&&(ce+=`&${fe}=${le}`),ce},""),ae=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${v}${ie}${ae}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(v,k){return k.module=v,k.apikey=this.apiKey,k}fetch(v,k,ie){return __awaiter15(this,void 0,void 0,function*(){const ae=ie?this.getPostUrl():this.getUrl(v,k),ce=ie?this.getPostData(v,k):null,fe=v==="proxy"?getJsonResult:getResult2;this.emit("debug",{action:"request",request:ae,provider:this});const le={url:ae,throttleSlotInterval:1e3,throttleCallback:(ye,me)=>(this.isCommunityResource()&&showThrottleMessage(),Promise.resolve(!0))};let ve=null;ce&&(le.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},ve=Object.keys(ce).map(ye=>`${ye}=${ce[ye]}`).join("&"));const pe=yield fetchJson(le,ve,fe||getJsonResult);return this.emit("debug",{action:"response",request:ae,response:deepCopy(pe),provider:this}),pe})}detectNetwork(){return __awaiter15(this,void 0,void 0,function*(){return this.network})}perform(v,k){const ie=Object.create(null,{perform:{get:()=>super.perform}});return __awaiter15(this,void 0,void 0,function*(){switch(v){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:k.address,tag:k.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:k.address,tag:k.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:k.address,tag:k.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:k.address,position:k.position,tag:k.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:k.signedTransaction},!0).catch(ae=>checkError2("sendTransaction",ae,k.signedTransaction));case"getBlock":if(k.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:k.blockTag,boolean:k.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:k.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:k.transactionHash});case"call":{if(k.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const ae=getTransactionPostData(k.transaction);ae.module="proxy",ae.action="eth_call";try{return yield this.fetch("proxy",ae,!0)}catch(ce){return checkError2("call",ce,k.transaction)}}case"estimateGas":{const ae=getTransactionPostData(k.transaction);ae.module="proxy",ae.action="eth_estimateGas";try{return yield this.fetch("proxy",ae,!0)}catch(ce){return checkError2("estimateGas",ce,k.transaction)}}case"getLogs":{const ae={action:"getLogs"};if(k.filter.fromBlock&&(ae.fromBlock=checkLogTag(k.filter.fromBlock)),k.filter.toBlock&&(ae.toBlock=checkLogTag(k.filter.toBlock)),k.filter.address&&(ae.address=k.filter.address),k.filter.topics&&k.filter.topics.length>0&&(k.filter.topics.length>1&&logger37.throwError("unsupported topic count",Logger.errors.UNSUPPORTED_OPERATION,{topics:k.filter.topics}),k.filter.topics.length===1)){const le=k.filter.topics[0];(typeof le!="string"||le.length!==66)&&logger37.throwError("unsupported topic format",Logger.errors.UNSUPPORTED_OPERATION,{topic0:le}),ae.topic0=le}const ce=yield this.fetch("logs",ae);let fe={};for(let le=0;le{["contractAddress","to"].forEach(function(ve){fe[ve]==""&&delete fe[ve]}),fe.creates==null&&fe.contractAddress!=null&&(fe.creates=fe.contractAddress);const le=this.formatter.transactionResponse(fe);return fe.timeStamp&&(le.timestamp=parseInt(fe.timeStamp)),le})})}isCommunityResource(){return this.apiKey==null}},__awaiter16=function(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})},logger38=new Logger(version23);function now(){return new Date().getTime()}function checkNetworks(v){let k=null;for(let ie=0;iek?null:(ae+ce)/2}function serialize2(v){if(v===null)return"null";if(typeof v=="number"||typeof v=="boolean")return JSON.stringify(v);if(typeof v=="string")return v;if(BigNumber.isBigNumber(v))return v.toString();if(Array.isArray(v))return JSON.stringify(v.map(k=>serialize2(k)));if(typeof v=="object"){const k=Object.keys(v);return k.sort(),"{"+k.map(ie=>{let ae=v[ie];return typeof ae=="function"?ae="[function]":ae=serialize2(ae),JSON.stringify(ie)+":"+ae}).join(",")+"}"}throw new Error("unknown value type: "+typeof v)}var nextRid=1;function stall2(v){let k=null,ie=null,ae=new Promise(le=>{k=function(){ie&&(clearTimeout(ie),ie=null),le()},ie=setTimeout(k,v)});const ce=le=>(ae=ae.then(le),ae);function fe(){return ae}return{cancel:k,getPromise:fe,wait:ce}}var ForwardErrors=[Logger.errors.CALL_EXCEPTION,Logger.errors.INSUFFICIENT_FUNDS,Logger.errors.NONCE_EXPIRED,Logger.errors.REPLACEMENT_UNDERPRICED,Logger.errors.UNPREDICTABLE_GAS_LIMIT],ForwardProperties=["address","args","errorArgs","errorSignature","method","transaction"];function exposeDebugConfig(v,k){const ie={weight:v.weight};return Object.defineProperty(ie,"provider",{get:()=>v.provider}),v.start&&(ie.start=v.start),k&&(ie.duration=k-v.start),v.done&&(v.error?ie.error=v.error:ie.result=v.result||null),ie}function normalizedTally(v,k){return function(ie){const ae={};ie.forEach(fe=>{const le=v(fe.result);ae[le]||(ae[le]={count:0,result:fe.result}),ae[le].count++});const ce=Object.keys(ae);for(let fe=0;fe=k)return le.result}}}function getProcessFunc(v,k,ie){let ae=serialize2;switch(k){case"getBlockNumber":return function(ce){const fe=ce.map(ve=>ve.result);let le=median(ce.map(ve=>ve.result),2);if(le!=null)return le=Math.ceil(le),fe.indexOf(le+1)>=0&&le++,le>=v._highestBlockNumber&&(v._highestBlockNumber=le),v._highestBlockNumber};case"getGasPrice":return function(ce){const fe=ce.map(le=>le.result);return fe.sort(),fe[Math.floor(fe.length/2)]};case"getEtherPrice":return function(ce){return median(ce.map(fe=>fe.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":ae=function(ce){return ce==null?null:(ce=shallowCopy(ce),ce.confirmations=-1,serialize2(ce))};break;case"getBlock":ie.includeTransactions?ae=function(ce){return ce==null?null:(ce=shallowCopy(ce),ce.transactions=ce.transactions.map(fe=>(fe=shallowCopy(fe),fe.confirmations=-1,fe)),serialize2(ce))}:ae=function(ce){return ce==null?null:serialize2(ce)};break;default:throw new Error("unknown method: "+k)}return normalizedTally(ae,v.quorum)}function waitForSync(v,k){return __awaiter16(this,void 0,void 0,function*(){const ie=v.provider;return ie.blockNumber!=null&&ie.blockNumber>=k||k===-1?ie:poll(()=>new Promise((ae,ce)=>{setTimeout(function(){return ie.blockNumber>=k?ae(ie):v.cancelled?ae(null):ae(void 0)},0)}),{oncePoll:ie})})}function getRunner(v,k,ie,ae){return __awaiter16(this,void 0,void 0,function*(){let ce=v.provider;switch(ie){case"getBlockNumber":case"getGasPrice":return ce[ie]();case"getEtherPrice":if(ce.getEtherPrice)return ce.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return ae.blockTag&&isHexString(ae.blockTag)&&(ce=yield waitForSync(v,k)),ce[ie](ae.address,ae.blockTag||"latest");case"getStorageAt":return ae.blockTag&&isHexString(ae.blockTag)&&(ce=yield waitForSync(v,k)),ce.getStorageAt(ae.address,ae.position,ae.blockTag||"latest");case"getBlock":return ae.blockTag&&isHexString(ae.blockTag)&&(ce=yield waitForSync(v,k)),ce[ae.includeTransactions?"getBlockWithTransactions":"getBlock"](ae.blockTag||ae.blockHash);case"call":case"estimateGas":return ae.blockTag&&isHexString(ae.blockTag)&&(ce=yield waitForSync(v,k)),ie==="call"&&ae.blockTag?ce[ie](ae.transaction,ae.blockTag):ce[ie](ae.transaction);case"getTransaction":case"getTransactionReceipt":return ce[ie](ae.transactionHash);case"getLogs":{let fe=ae.filter;return(fe.fromBlock&&isHexString(fe.fromBlock)||fe.toBlock&&isHexString(fe.toBlock))&&(ce=yield waitForSync(v,k)),ce.getLogs(fe)}}return logger38.throwError("unknown method error",Logger.errors.UNKNOWN_ERROR,{method:ie,params:ae})})}var FallbackProvider=class extends BaseProvider{constructor(v,k){v.length===0&&logger38.throwArgumentError("missing providers","providers",v);const ie=v.map((fe,le)=>{if(Provider.isProvider(fe)){const ye=isCommunityResource(fe)?2e3:750;return Object.freeze({provider:fe,weight:1,stallTimeout:ye,priority:1})}const ve=shallowCopy(fe);ve.priority==null&&(ve.priority=1),ve.stallTimeout==null&&(ve.stallTimeout=isCommunityResource(fe)?2e3:750),ve.weight==null&&(ve.weight=1);const pe=ve.weight;return(pe%1||pe>512||pe<1)&&logger38.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${le}].weight`,pe),Object.freeze(ve)}),ae=ie.reduce((fe,le)=>fe+le.weight,0);k==null?k=ae/2:k>ae&&logger38.throwArgumentError("quorum will always fail; larger than total weight","quorum",k);let ce=checkNetworks(ie.map(fe=>fe.provider.network));ce==null&&(ce=new Promise((fe,le)=>{setTimeout(()=>{this.detectNetwork().then(fe,le)},0)})),super(ce),defineReadOnly(this,"providerConfigs",Object.freeze(ie)),defineReadOnly(this,"quorum",k),this._highestBlockNumber=-1}detectNetwork(){return __awaiter16(this,void 0,void 0,function*(){const v=yield Promise.all(this.providerConfigs.map(k=>k.provider.getNetwork()));return checkNetworks(v)})}perform(v,k){return __awaiter16(this,void 0,void 0,function*(){if(v==="sendTransaction"){const ve=yield Promise.all(this.providerConfigs.map(pe=>pe.provider.sendTransaction(k.signedTransaction).then(ye=>ye.hash,ye=>ye)));for(let pe=0;peve.priority-pe.priority);const ce=this._highestBlockNumber;let fe=0,le=!0;for(;;){const ve=now();let pe=ae.filter(cr=>cr.runner&&ve-cr.startcr+Br.weight,0);for(;pe{cr.staller=null}),cr.runner=getRunner(cr,ce,v,k).then($r=>{cr.done=!0,cr.result=$r,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:Br,backend:exposeDebugConfig(cr,now()),request:{method:v,params:deepCopy(k)},provider:this})},$r=>{cr.done=!0,cr.error=$r,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:Br,backend:exposeDebugConfig(cr,now()),request:{method:v,params:deepCopy(k)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:Br,backend:exposeDebugConfig(cr,null),request:{method:v,params:deepCopy(k)},provider:this}),pe+=cr.weight}const ye=[];ae.forEach(cr=>{cr.done||!cr.runner||(ye.push(cr.runner),cr.staller&&ye.push(cr.staller.getPromise()))}),ye.length&&(yield Promise.race(ye));const me=ae.filter(cr=>cr.done&&cr.error==null);if(me.length>=this.quorum){const cr=ie(me);if(cr!==void 0)return ae.forEach(Br=>{Br.staller&&Br.staller.cancel(),Br.cancelled=!0}),cr;le||(yield stall2(100).getPromise()),le=!1}const Ee=ae.reduce((cr,Br)=>{if(!Br.done||Br.error==null)return cr;const $r=Br.error.code;return ForwardErrors.indexOf($r)>=0&&(cr[$r]||(cr[$r]={error:Br.error,weight:0}),cr[$r].weight+=Br.weight),cr},{});if(Object.keys(Ee).forEach(cr=>{const Br=Ee[cr];if(Br.weight{Ar.staller&&Ar.staller.cancel(),Ar.cancelled=!0});const $r=Br.error,Pr={};ForwardProperties.forEach(Ar=>{$r[Ar]!=null&&(Pr[Ar]=$r[Ar])}),logger38.throwError($r.reason||$r.message,cr,Pr)}),ae.filter(cr=>!cr.done).length===0)break}return ae.forEach(ve=>{ve.staller&&ve.staller.cancel(),ve.cancelled=!0}),logger38.throwError("failed to meet quorum",Logger.errors.SERVER_ERROR,{method:v,params:k,results:ae.map(ve=>exposeDebugConfig(ve)),provider:this})})}},IpcProvider=null,logger39=new Logger(version23),defaultProjectId="84842078b09946638c03157f83405213",InfuraWebSocketProvider=class extends WebSocketProvider{constructor(v,k){const ie=new InfuraProvider(v,k),ae=ie.connection;ae.password&&logger39.throwError("INFURA WebSocket project secrets unsupported",Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});const ce=ae.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(ce,v),defineReadOnly(this,"apiKey",ie.projectId),defineReadOnly(this,"projectId",ie.projectId),defineReadOnly(this,"projectSecret",ie.projectSecret)}isCommunityResource(){return this.projectId===defaultProjectId}},InfuraProvider=class extends UrlJsonRpcProvider{static getWebSocketProvider(v,k){return new InfuraWebSocketProvider(v,k)}static getApiKey(v){const k={apiKey:defaultProjectId,projectId:defaultProjectId,projectSecret:null};return v==null||(typeof v=="string"?k.projectId=v:v.projectSecret!=null?(logger39.assertArgument(typeof v.projectId=="string","projectSecret requires a projectId","projectId",v.projectId),logger39.assertArgument(typeof v.projectSecret=="string","invalid projectSecret","projectSecret","[REDACTED]"),k.projectId=v.projectId,k.projectSecret=v.projectSecret):v.projectId&&(k.projectId=v.projectId),k.apiKey=k.projectId),k}static getUrl(v,k){let ie=null;switch(v?v.name:"unknown"){case"homestead":ie="mainnet.infura.io";break;case"goerli":ie="goerli.infura.io";break;case"sepolia":ie="sepolia.infura.io";break;case"matic":ie="polygon-mainnet.infura.io";break;case"maticmum":ie="polygon-mumbai.infura.io";break;case"optimism":ie="optimism-mainnet.infura.io";break;case"optimism-goerli":ie="optimism-goerli.infura.io";break;case"arbitrum":ie="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":ie="arbitrum-goerli.infura.io";break;default:logger39.throwError("unsupported network",Logger.errors.INVALID_ARGUMENT,{argument:"network",value:v})}const ae={allowGzip:!0,url:"https://"+ie+"/v3/"+k.projectId,throttleCallback:(ce,fe)=>(k.projectId===defaultProjectId&&showThrottleMessage(),Promise.resolve(!0))};return k.projectSecret!=null&&(ae.user="",ae.password=k.projectSecret),ae}isCommunityResource(){return this.projectId===defaultProjectId}},JsonRpcBatchProvider=class extends JsonRpcProvider{send(v,k){const ie={method:v,params:k,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch==null&&(this._pendingBatch=[]);const ae={request:ie,resolve:null,reject:null},ce=new Promise((fe,le)=>{ae.resolve=fe,ae.reject=le});return this._pendingBatch.push(ae),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{const fe=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const le=fe.map(ve=>ve.request);return this.emit("debug",{action:"requestBatch",request:deepCopy(le),provider:this}),fetchJson(this.connection,JSON.stringify(le)).then(ve=>{this.emit("debug",{action:"response",request:le,response:ve,provider:this}),fe.forEach((pe,ye)=>{const me=ve[ye];if(me.error){const Ee=new Error(me.error.message);Ee.code=me.error.code,Ee.data=me.error.data,pe.reject(Ee)}else pe.resolve(me.result)})},ve=>{this.emit("debug",{action:"response",error:ve,request:le,provider:this}),fe.forEach(pe=>{pe.reject(ve)})})},10)),ce}},logger40=new Logger(version23),defaultApiKey3="ETHERS_JS_SHARED",NodesmithProvider=class extends UrlJsonRpcProvider{static getApiKey(v){return v&&typeof v!="string"&&logger40.throwArgumentError("invalid apiKey","apiKey",v),v||defaultApiKey3}static getUrl(v,k){logger40.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let ie=null;switch(v.name){case"homestead":ie="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":ie="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":ie="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":ie="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":ie="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:logger40.throwArgumentError("unsupported network","network",arguments[0])}return ie+"?apiKey="+k}},logger41=new Logger(version23),defaultApplicationId="62e1ad51b37b8e00394bda3b",PocketProvider=class extends UrlJsonRpcProvider{static getApiKey(v){const k={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return v==null?k.applicationId=defaultApplicationId:typeof v=="string"?k.applicationId=v:v.applicationSecretKey!=null?(k.applicationId=v.applicationId,k.applicationSecretKey=v.applicationSecretKey):v.applicationId?k.applicationId=v.applicationId:logger41.throwArgumentError("unsupported PocketProvider apiKey","apiKey",v),k}static getUrl(v,k){let ie=null;switch(v?v.name:"unknown"){case"goerli":ie="eth-goerli.gateway.pokt.network";break;case"homestead":ie="eth-mainnet.gateway.pokt.network";break;case"kovan":ie="poa-kovan.gateway.pokt.network";break;case"matic":ie="poly-mainnet.gateway.pokt.network";break;case"maticmum":ie="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":ie="eth-rinkeby.gateway.pokt.network";break;case"ropsten":ie="eth-ropsten.gateway.pokt.network";break;default:logger41.throwError("unsupported network",Logger.errors.INVALID_ARGUMENT,{argument:"network",value:v})}const ae=`https://${ie}/v1/lb/${k.applicationId}`,ce={headers:{},url:ae};return k.applicationSecretKey!=null&&(ce.user="",ce.password=k.applicationSecretKey),ce}isCommunityResource(){return this.applicationId===defaultApplicationId}},logger42=new Logger(version23),_nextId=1;function buildWeb3LegacyFetcher(v,k){const ie="Web3LegacyFetcher";return function(ae,ce){const fe={method:ae,params:ce,id:_nextId++,jsonrpc:"2.0"};return new Promise((le,ve)=>{this.emit("debug",{action:"request",fetcher:ie,request:deepCopy(fe),provider:this}),k(fe,(pe,ye)=>{if(pe)return this.emit("debug",{action:"response",fetcher:ie,error:pe,request:fe,provider:this}),ve(pe);if(this.emit("debug",{action:"response",fetcher:ie,request:fe,response:ye,provider:this}),ye.error){const me=new Error(ye.error.message);return me.code=ye.error.code,me.data=ye.error.data,ve(me)}le(ye.result)})})}}function buildEip1193Fetcher(v){return function(k,ie){ie==null&&(ie=[]);const ae={method:k,params:ie};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:deepCopy(ae),provider:this}),v.request(ae).then(ce=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:ae,response:ce,provider:this}),ce),ce=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:ae,error:ce,provider:this}),ce})}}var Web3Provider=class extends JsonRpcProvider{constructor(v,k){v==null&&logger42.throwArgumentError("missing provider","provider",v);let ie=null,ae=null,ce=null;typeof v=="function"?(ie="unknown:",ae=v):(ie=v.host||v.path||"",!ie&&v.isMetaMask&&(ie="metamask"),ce=v,v.request?(ie===""&&(ie="eip-1193:"),ae=buildEip1193Fetcher(v)):v.sendAsync?ae=buildWeb3LegacyFetcher(v,v.sendAsync.bind(v)):v.send?ae=buildWeb3LegacyFetcher(v,v.send.bind(v)):logger42.throwArgumentError("unsupported provider","provider",v),ie||(ie="unknown:")),super(ie,k),defineReadOnly(this,"jsonRpcFetchFunc",ae),defineReadOnly(this,"provider",ce)}send(v,k){return this.jsonRpcFetchFunc(v,k)}},logger43=new Logger(version23);function getDefaultProvider(v,k){if(v==null&&(v="homestead"),typeof v=="string"){const ae=v.match(/^(ws|http)s?:/i);if(ae)switch(ae[1].toLowerCase()){case"http":case"https":return new JsonRpcProvider(v);case"ws":case"wss":return new WebSocketProvider(v);default:logger43.throwArgumentError("unsupported URL scheme","network",v)}}const ie=getNetwork(v);return(!ie||!ie._defaultProvider)&&logger43.throwError("unsupported getDefaultProvider network",Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:v}),ie._defaultProvider({FallbackProvider,AlchemyProvider,AnkrProvider,CloudflareProvider,EtherscanProvider,InfuraProvider,JsonRpcProvider,NodesmithProvider,PocketProvider,Web3Provider,IpcProvider},k)}var utils_exports={};__export$1(utils_exports,{AbiCoder:()=>AbiCoder,ConstructorFragment:()=>ConstructorFragment,ErrorFragment:()=>ErrorFragment,EventFragment:()=>EventFragment,FormatTypes:()=>FormatTypes,Fragment:()=>Fragment,FunctionFragment:()=>FunctionFragment,HDNode:()=>HDNode,Indexed:()=>Indexed,Interface:()=>Interface,LogDescription:()=>LogDescription,Logger:()=>Logger,ParamType:()=>ParamType,RLP:()=>lib_exports,SigningKey:()=>SigningKey,SupportedAlgorithm:()=>SupportedAlgorithm,TransactionDescription:()=>TransactionDescription,TransactionTypes:()=>TransactionTypes,UnicodeNormalizationForm:()=>UnicodeNormalizationForm,Utf8ErrorFuncs:()=>Utf8ErrorFuncs,Utf8ErrorReason:()=>Utf8ErrorReason,_TypedDataEncoder:()=>TypedDataEncoder,_fetchData:()=>_fetchData,_toEscapedUtf8String:()=>_toEscapedUtf8String,accessListify:()=>accessListify,arrayify:()=>arrayify,base58:()=>Base58,base64:()=>lib_exports3,checkProperties:()=>checkProperties,checkResultErrors:()=>checkResultErrors,commify:()=>commify,computeAddress:()=>computeAddress,computeHmac:()=>computeHmac,computePublicKey:()=>computePublicKey,concat:()=>concat$4,deepCopy:()=>deepCopy,defaultAbiCoder:()=>defaultAbiCoder,defaultPath:()=>defaultPath,defineReadOnly:()=>defineReadOnly,dnsEncode:()=>dnsEncode,entropyToMnemonic:()=>entropyToMnemonic,fetchJson:()=>fetchJson,formatBytes32String:()=>formatBytes32String,formatEther:()=>formatEther,formatUnits:()=>formatUnits,getAccountPath:()=>getAccountPath,getAddress:()=>getAddress,getContractAddress:()=>getContractAddress,getCreate2Address:()=>getCreate2Address,getIcapAddress:()=>getIcapAddress,getJsonWalletAddress:()=>getJsonWalletAddress,getStatic:()=>getStatic,hashMessage:()=>hashMessage,hexConcat:()=>hexConcat,hexDataLength:()=>hexDataLength,hexDataSlice:()=>hexDataSlice,hexStripZeros:()=>hexStripZeros,hexValue:()=>hexValue,hexZeroPad:()=>hexZeroPad,hexlify:()=>hexlify,id:()=>id$5,isAddress:()=>isAddress,isBytes:()=>isBytes,isBytesLike:()=>isBytesLike,isHexString:()=>isHexString,isValidMnemonic:()=>isValidMnemonic,isValidName:()=>isValidName,joinSignature:()=>joinSignature,keccak256:()=>keccak256,mnemonicToEntropy:()=>mnemonicToEntropy,mnemonicToSeed:()=>mnemonicToSeed,namehash:()=>namehash,nameprep:()=>nameprep,parseBytes32String:()=>parseBytes32String,parseEther:()=>parseEther,parseTransaction:()=>parse,parseUnits:()=>parseUnits,poll:()=>poll,randomBytes:()=>randomBytes,recoverAddress:()=>recoverAddress,recoverPublicKey:()=>recoverPublicKey,resolveProperties:()=>resolveProperties,ripemd160:()=>ripemd160,serializeTransaction:()=>serialize,sha256:()=>sha256,sha512:()=>sha512,shallowCopy:()=>shallowCopy,shuffled:()=>shuffled,solidityKeccak256:()=>keccak2562,solidityPack:()=>pack2,soliditySha256:()=>sha2562,splitSignature:()=>splitSignature,stripZeros:()=>stripZeros,toUtf8Bytes:()=>toUtf8Bytes,toUtf8CodePoints:()=>toUtf8CodePoints,toUtf8String:()=>toUtf8String,verifyMessage:()=>verifyMessage,verifyTypedData:()=>verifyTypedData,zeroPad:()=>zeroPad});var version24="solidity/5.7.0",regexBytes=new RegExp("^bytes([0-9]+)$"),regexNumber=new RegExp("^(u?int)([0-9]*)$"),regexArray=new RegExp("^(.*)\\[([0-9]*)\\]$"),Zeros2="0000000000000000000000000000000000000000000000000000000000000000",logger44=new Logger(version24);function _pack(v,k,ie){switch(v){case"address":return ie?zeroPad(k,32):arrayify(k);case"string":return toUtf8Bytes(k);case"bytes":return arrayify(k);case"bool":return k=k?"0x01":"0x00",ie?zeroPad(k,32):arrayify(k)}let ae=v.match(regexNumber);if(ae){let ce=parseInt(ae[2]||"256");return(ae[2]&&String(ce)!==ae[2]||ce%8!==0||ce===0||ce>256)&&logger44.throwArgumentError("invalid number type","type",v),ie&&(ce=256),k=BigNumber.from(k).toTwos(ce),zeroPad(k,ce/8)}if(ae=v.match(regexBytes),ae){const ce=parseInt(ae[1]);return(String(ce)!==ae[1]||ce===0||ce>32)&&logger44.throwArgumentError("invalid bytes type","type",v),arrayify(k).byteLength!==ce&&logger44.throwArgumentError(`invalid value for ${v}`,"value",k),ie?arrayify((k+Zeros2).substring(0,66)):k}if(ae=v.match(regexArray),ae&&Array.isArray(k)){const ce=ae[1];parseInt(ae[2]||String(k.length))!=k.length&&logger44.throwArgumentError(`invalid array length for ${v}`,"value",k);const le=[];return k.forEach(function(ve){le.push(_pack(ce,ve,!0))}),concat$4(le)}return logger44.throwArgumentError("invalid type","type",v)}function pack2(v,k){v.length!=k.length&&logger44.throwArgumentError("wrong number of values; expected ${ types.length }","values",k);const ie=[];return v.forEach(function(ae,ce){ie.push(_pack(ae,k[ce]))}),hexlify(concat$4(ie))}function keccak2562(v,k){return keccak256(pack2(v,k))}function sha2562(v,k){return sha256(pack2(v,k))}var version25="units/5.7.0",logger45=new Logger(version25),names=["wei","kwei","mwei","gwei","szabo","finney","ether"];function commify(v){const k=String(v).split(".");(k.length>2||!k[0].match(/^-?[0-9]*$/)||k[1]&&!k[1].match(/^[0-9]*$/)||v==="."||v==="-.")&&logger45.throwArgumentError("invalid value","value",v);let ie=k[0],ae="";for(ie.substring(0,1)==="-"&&(ae="-",ie=ie.substring(1));ie.substring(0,1)==="0";)ie=ie.substring(1);ie===""&&(ie="0");let ce="";for(k.length===2&&(ce="."+(k[1]||"0"));ce.length>2&&ce[ce.length-1]==="0";)ce=ce.substring(0,ce.length-1);const fe=[];for(;ie.length;)if(ie.length<=3){fe.unshift(ie);break}else{const le=ie.length-3;fe.unshift(ie.substring(le)),ie=ie.substring(0,le)}return ae+fe.join(",")+ce}function formatUnits(v,k){if(typeof k=="string"){const ie=names.indexOf(k);ie!==-1&&(k=3*ie)}return formatFixed(v,k!=null?k:18)}function parseUnits(v,k){if(typeof v!="string"&&logger45.throwArgumentError("value must be a string","value",v),typeof k=="string"){const ie=names.indexOf(k);ie!==-1&&(k=3*ie)}return parseFixed(v,k!=null?k:18)}function formatEther(v){return formatUnits(v,18)}function parseEther(v){return parseUnits(v,18)}var version26="ethers/5.7.2",logger46=new Logger(version26);try{const v=window;v._ethers==null&&(v._ethers=ethers_exports)}catch(v){}var nearAPI=__toESM(require_browser_index2$1(),1),import_near_seed_phrase=__toESM(require_near_seed_phrase(),1);__toESM(require_bn$1(),1);var import_is_mobile$4=__toESM(require_is_mobile(),1);function __awaiter17(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var nethIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABiCAYAAACmu3ZJAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAEqVJREFUeJztnHtUVXWbx797n/uBIxcvwNG4CGqCikZKpIFKr5TayItm5qsD1Vuu0bIsXSOrSJmVjk6OC8fpNisTWWW6alLGZLQy31ReFRIjSxAvIAYCcr+c+9nP/MFIL3I4Z1/O4eb7WWv/wTl7P8+zn+/ev9/zuxwYIiLcQ1VVFT799FMcPXoU169fR21tLex2O2QyGQICAhAaGor58+dj2bJlCA8Pv/fyIU1paSlycnLw/fff4+rV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SR6un/x493XXligc1n1yy+/FCxKeHg4vv32WwQGBooKpi/QqJjOCkkC3xcY8dMVx83RlQoLKmvELRdHBCsQH9P9De56dHx9fXHs2DFkZma67FNYlkVaWhoKCwsHRInrioejVD1uXAhEwN7DbT1G7M1tHH78VXiJCwBaDYMXF+t6TK0w5GDzVG1tLT7//HMcPXoUpaWlqK2thbe3N8aPH4/ExESkpqZi/PjxogLpLyxWwr/va3H5+wxnTAhVYH2qL85dMsFsIRw9ZRC8Kgh0LoS9+icfRIb3HCs5FGSo0mEkbPukmdcva3tjyR+84KNjkX/RhNJy4eIyDPDnlGFd444e399PggCdouz6rEXQSt7fIpMBM6JUOHfJLLiqksuA5/84DLGTex8f3XeCAJ0zux9/1YaiEnHtvxiGebFY9fQwPBjmfOX0vhQE6OyoT5w34r+/6xA11SGEyLFK/DlFBx8e5fd9K8hd6pvtOPC/HbhY6v63xVfHYuk8b8T20l844r4X5C7lVTYcPWVAcZlZ0KKSI0b4yZD0qAaPPaTu8SMfV/xdkHtoaeNw/pIZxWVmXL9lg9XGLz2j/GWIDFcidrIK44IVon4QCvxdEKdYrITfam1dy7NmC8FsJbAMA7WK6dw6NEKG0aPk8Bvmnlnu/wNWcf8As19BPQAAAABJRU5ErkJggg==",{Near,Account:Account2,KeyPair:KeyPair2,keyStores:{BrowserLocalStorageKeyStore},transactions:{addKey,deleteKey,functionCallAccessKey},utils:{PublicKey,format:{parseNearAmount}}}=nearAPI,NETH_SITE_URL="https://neth.app",PREV_NETH_SITE_URL="neardefi.github.io/neth",NETWORK={testnet:{FUNDING_ACCOUNT_ID:"neth.testnet",MAP_ACCOUNT_ID:"map.neth.testnet",ROOT_ACCOUNT_ID:"testnet"},mainnet:{MAP_ACCOUNT_ID:"nethmap.near",ROOT_ACCOUNT_ID:"near"}},WS_STORAGE_NAMESPACE="near-wallet-selector:neth:",REFRESH_MSG="Please refresh the page and try again.",TX_ARGS_ATTEMPT="__TX_ARGS_ATTEMPT",ATTEMPT_SECRET_KEY="__ATTEMPT_SECRET_KEY",ATTEMPT_ACCOUNT_ID="__ATTEMPT_ACCOUNT_ID",APP_KEY_SECRET="__APP_KEY_SECRET",APP_KEY_ACCOUNT_ID="__APP_KEY_ACCOUNT_ID",defaultGas="200000000000000";parseNearAmount("0.4");parseNearAmount("0.49");parseNearAmount("0.5");parseNearAmount("0.05");var defaultStorage=(v="")=>({getItem:k=>{const ie=localStorage.getItem(v+k);if((ie==null?void 0:ie.charAt(0))!=="{")return ie;try{return JSON.parse(ie)}catch{}},setItem:(k,ie)=>localStorage.setItem(v+k,typeof ie=="string"?ie:JSON.stringify(ie)),removeItem:k=>localStorage.removeItem(v+k)}),defaultLogger=()=>({log:v=>console.log(...v)}),near,gas,keyStore,logger47,storage,connection,networkId,contractAccount,initConnection=({network:v,gas:k=defaultGas,logger:ie=defaultLogger(),storage:ae=defaultStorage()})=>{gas=k,logger47=ie,storage=ae,keyStore=new BrowserLocalStorageKeyStore,near=new Near(Object.assign(Object.assign({},v),{keyStore})),connection=near.connection,networkId=v.networkId,contractAccount=new Account2(connection,networkId==="mainnet"?"near":networkId);const ce=document.createElement("div");return ce.style.display="none",ce.style.width="100%",ce.style.height="100vh",ce.style.zIndex="999999",ce.style.position="fixed",ce.style.top="0",ce.style.background="rgba(0, 0, 0, 0.5)",document.body.appendChild(ce),broadcastTXs(),ce},pub2hex=v=>ethers_exports.utils.hexlify(PublicKey.fromString(v).data).substring(2),hasAppKey=v=>v.some(k=>{var ie,ae;const ce=(ae=(ie=k==null?void 0:k.access_key)===null||ie===void 0?void 0:ie.permission)===null||ae===void 0?void 0:ae.FunctionCall;return ce.allowance!==null&&ce.method_names[0]==="execute"}),handleRefreshAppKey=(v,k)=>__awaiter17(void 0,void 0,void 0,function*(){var ie;const{account:ae,accountId:ce}=yield getUnlimitedKeyAccount(v,k),fe=parseInt(yield ae.viewFunction({contractId:ce,methodName:"get_nonce"}),16).toString(),{publicKey:le,secretKey:ve}=yield keyPairFromEthSig(v,appKeyPayload(ce,fe)),pe=pub2hex(le),ye=[{type:"AddKey",public_key:pe,allowance:parseNearAmount("1"),receiver_id:ce,method_names:"execute"}],me=yield ae.getAccessKeys();if(hasAppKey(me)){const Br=parseInt(yield ae.viewFunction({contractId:ce,methodName:"get_app_key_nonce"}),16).toString(),{publicKey:$r}=yield keyPairFromEthSig(v,appKeyPayload(ce,Br)),Pr=pub2hex($r);ye.unshift({type:"DeleteKey",public_key:Pr})}const Ee=yield ethSignJson(v,{nonce:fe,receivers:[ce],transactions:[{actions:ye}]}),cr=yield ae.functionCall({contractId:ce,methodName:"execute",args:Ee,gas});return((ie=cr==null?void 0:cr.status)===null||ie===void 0?void 0:ie.SuccessValue)!==""?logger47.log(`App key rotation unsuccessful. ${REFRESH_MSG}`):(yield storage.removeItem(APP_KEY_SECRET),yield storage.removeItem(APP_KEY_ACCOUNT_ID),{publicKey:pe,secretKey:ve})}),getUnlimitedKeyAccount=(v,k,ie=!1)=>__awaiter17(void 0,void 0,void 0,function*(){let ae,ce=yield storage.getItem(ATTEMPT_SECRET_KEY);if(ce)ae=yield storage.getItem(ATTEMPT_ACCOUNT_ID);else{ae=yield getNearMap(k);const{secretKey:ye}=yield keyPairFromEthSig(v,unlimitedKeyPayload(ae,ie));ce=ye}const fe=new Account2(connection,ae),le=KeyPair2.fromString(ce),ve=le.getPublicKey().toString();return(yield fe.getAccessKeys()).some(({public_key:ye})=>ve===ye)?(keyStore.setKey(networkId,ae,le),{account:fe,accountId:ae,secretKey:ce}):yield getUnlimitedKeyAccount(v,k,!0)}),appKeyPayload=(v,k)=>({WARNING:`Creating key for: ${v}`,nonce:k,description:"ONLY sign this on apps you trust! This key CAN use up to 1 N for transactions."}),unlimitedKeyPayload=(v,k)=>({WARNING:`Creates a key with access to your (new) paired NEAR Account: ${v}`,description:`ONLY sign this message on this website: ${k?PREV_NETH_SITE_URL:NETH_SITE_URL}`}),domain={name:"NETH",version:"1",chainId:1313161554},HEADER_OFFSET="NETH",HEADER_PAD=8,RECEIVER_MARKER="|~-_NETH~-_-~RECEIVER_-~|",PREFIX="|NETH_",SUFFIX="_NETH|",pack3=v=>v.map(k=>{const ie=typeof k=="string"?k:Object.entries(k).map(([ce,fe])=>`${PREFIX}${ce}:${typeof fe=="string"?fe:JSON.stringify(fe)}${SUFFIX}`).join(""),ae=ie.length.toString().padStart(HEADER_PAD,"0");return HEADER_OFFSET+ae+"__"+ie}).join(""),ethSignJson=(v,k)=>__awaiter17(void 0,void 0,void 0,function*(){const ae={Transaction:[]};if(Object.entries(k).forEach(([le])=>{ae.Transaction.push({type:"string",name:le})}),k.transactions&&(Object.values(k.transactions).forEach((le,ve)=>{le.actions.forEach(pe=>{if(!!pe.args){if(Buffer.isBuffer(pe.args)){pe.args="0x"+pe.args.toString("hex");return}Object.entries(pe.args).forEach(([ye,me])=>{/receiver_id|account_id/g.test(ye)&&(pe.args[ye]=RECEIVER_MARKER,k.receivers.splice(ve+1,0,me))})}})}),k.transactions=pack3(k.transactions.map(({actions:le})=>pack3(le)))),k.receivers){const le=k.receivers.length.toString();k.receivers=HEADER_OFFSET+k.receivers.join(",").length.toString().padStart(HEADER_PAD,"0")+"__"+k.receivers.join(","),k.receivers=k.receivers.substring(0,4)+le.padStart(3,"0")+k.receivers.substring(7)}return{sig:yield v._signTypedData(domain,ae,k),msg:k}}),keyPairFromEthSig=(v,k)=>__awaiter17(void 0,void 0,void 0,function*(){const{sig:ie}=yield ethSignJson(v,k),ae=ethers_exports.utils.id(ie);return(0,import_near_seed_phrase.generateSeedPhrase)(ae.substring(2,34))}),getEthereum=()=>__awaiter17(void 0,void 0,void 0,function*(){var v,k;if(!(yield(0,import_detect_provider.default)()))return alert("Please install/activate MetaMask and try again.");try{yield window.ethereum.request({method:"wallet_switchEthereumChain",params:[{chainId:"0x"+domain.chainId.toString(16)}]})}catch(le){if(logger47.log(le),((le==null?void 0:le.code)||((k=(v=le==null?void 0:le.data)===null||v===void 0?void 0:v.originalError)===null||k===void 0?void 0:k.code))!==4902)throw le;try{yield window.ethereum.request({method:"wallet_addEthereumChain",params:[{chainId:"0x"+domain.chainId.toString(16),chainName:"Aurora Mainnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},blockExplorerUrls:["https://explorer.mainnet.aurora.dev/"],rpcUrls:["https://mainnet.aurora.dev"]}]})}catch(pe){throw alert('Error adding chain. Please click "Choose Ethereum Account" and add the Aurora Network to continue.'),pe}}const ae=new ethers_exports.providers.Web3Provider(window.ethereum);(yield ae.listAccounts()).length===0&&(yield ae.send("eth_requestAccounts",[]));const fe=ae.getSigner();return{signer:fe,ethAddress:yield fe.getAddress()}}),switchEthereum=()=>__awaiter17(void 0,void 0,void 0,function*(){yield(yield(0,import_detect_provider.default)()).send("wallet_requestPermissions",[{eth_accounts:{}}]);const ie=new ethers_exports.providers.Web3Provider(window.ethereum).getSigner();return{signer:ie,ethAddress:yield ie.getAddress()}}),getNearMap=v=>__awaiter17(void 0,void 0,void 0,function*(){return contractAccount.viewFunction({contractId:NETWORK[networkId].MAP_ACCOUNT_ID,methodName:"get_near",args:{eth_address:v}})}),getNear=()=>__awaiter17(void 0,void 0,void 0,function*(){const v=yield storage.getItem(APP_KEY_SECRET),k=yield storage.getItem(APP_KEY_ACCOUNT_ID);if(!v||!k){const ce=yield getEthereum();return(yield getAppKey(ce))?yield getNear():!1}const ie=new Account2(connection,k),ae=KeyPair2.fromString(v);return keyStore.setKey(networkId,k,ae),{account:ie,accountId:k,keyPair:ae,secretKey:v}}),signIn$1=getNear,signOut=()=>__awaiter17(void 0,void 0,void 0,function*(){const v=yield storage.getItem(APP_KEY_ACCOUNT_ID);return v?(yield storage.removeItem(APP_KEY_SECRET),yield storage.removeItem(APP_KEY_ACCOUNT_ID),{accountId:v}):logger47.log("already signed out")}),verifyOwner=({message:v,provider:k,account:ie})=>__awaiter17(void 0,void 0,void 0,function*(){let ae;if(ie)({accountId:ae}=ie);else{const Ee=yield getNear();Ee&&({account:ie,accountId:ae}=Ee)}if(!ie)throw new Error("Wallet not signed in");const ce=yield ie.connection.signer.getPublicKey(ae,networkId),fe=Buffer.from(ce.data).toString("base64"),ve=(yield k.block({finality:"final"})).header.hash,pe={accountId:ae,message:v,blockId:ve,publicKey:fe,keyType:ce.keyType},ye=JSON.stringify(pe),me=yield ie.connection.signer.signMessage(new Uint8Array(Buffer.from(ye)),ae,networkId);return Object.assign(Object.assign({},pe),{signature:Buffer.from(me.signature).toString("base64")})}),isSignedIn$1=()=>__awaiter17(void 0,void 0,void 0,function*(){const v=defaultStorage(WS_STORAGE_NAMESPACE);return!!(yield v.getItem(APP_KEY_SECRET))||!!(yield v.getItem(APP_KEY_ACCOUNT_ID))}),getAppKey=({signer:v,ethAddress:k})=>__awaiter17(void 0,void 0,void 0,function*(){const ie=yield getNearMap(k);if(!ie){if(window.confirm(`Ethereum account ${k} is not connected to a NETH account. Would you like to try another Ethereum account?`)){try{const{signer:Ee,ethAddress:cr}=yield switchEthereum();return yield getAppKey({signer:Ee,ethAddress:cr})}catch(Ee){logger47.log(Ee)}return}const me=`${NETH_SITE_URL}/${networkId==="testnet"?"?network=testnet":""}`;window.prompt("We couldn't find a NETH account. To set up a NETH account visit",me)}const ae=parseInt(yield contractAccount.viewFunction({contractId:ie,methodName:"get_app_key_nonce"}),16).toString(),{publicKey:ce,secretKey:fe}=yield keyPairFromEthSig(v,appKeyPayload(ie,ae)),le=new Account2(connection,ie),ve=yield le.getAccessKeys();hasAppKey(ve)||(yield handleRefreshAppKey(v,k));const pe=KeyPair2.fromString(fe);return keyStore.setKey(networkId,ie,pe),yield storage.setItem(APP_KEY_SECRET,fe),yield storage.setItem(APP_KEY_ACCOUNT_ID,le.accountId),{publicKey:ce,secretKey:fe,account:le}}),broadcastTXs=()=>__awaiter17(void 0,void 0,void 0,function*(){const v=yield getNear();if(!v){logger47.log("NETH: ERROR broadcasting tx. No account found.");return}const{account:k,accountId:ie}=v,ae=yield storage.getItem(TX_ARGS_ATTEMPT);if(!ae||ae.length===0)return;const ce=[];for(;ae.length>0;){const fe=ae.shift();logger47.log("NETH: broadcasting tx",fe);try{const le=yield k.functionCall({contractId:ie,methodName:"execute",args:fe,gas});yield storage.setItem(TX_ARGS_ATTEMPT,ae),ce.push(le)}catch(le){logger47.log("NETH: ERROR broadcasting tx",le)}}return yield storage.removeItem(TX_ARGS_ATTEMPT),ce}),signAndSendTransactions=({transactions:v,bundle:k})=>__awaiter17(void 0,void 0,void 0,function*(){const ie=yield getEthereum(),{signer:ae}=ie,ce=yield getNear();if(!ce){logger47.log("NETH: ERROR signing and sending transactions. No account found.");return}const{account:fe,accountId:le}=ce,ve=v.map(({receiverId:cr})=>cr),pe=v.map(({receiverId:cr,actions:Br})=>({actions:convertActions(Br,le,cr)})),ye=parseInt(yield fe.viewFunction({contractId:le,methodName:"get_nonce"}),16),me=[];if(k)me.push(yield ethSignJson(ae,{nonce:ye.toString(),receivers:ve,transactions:pe}));else for(let cr=0;crv.map(ae=>{const{enum:ce}=ae,{gas:fe,publicKey:le,methodName:ve,args:pe,deposit:ye,accessKey:me,code:Ee}=ae[ce]||ae,cr={type:ce&&ce[0].toUpperCase()+ce.substr(1)||"FunctionCall",gas:fe&&fe.toString()||void 0,public_key:le&&pub2hex(le)||void 0,method_name:ve,args:pe||void 0,code:Ee||void 0,amount:ye&&ye.toString()||void 0,permission:void 0};if(Object.keys(cr).forEach(Br=>{cr[Br]===void 0&&delete cr[Br]}),me){if(ie===k)cr.allowance=parseNearAmount("1"),cr.method_names="execute",cr.receiver_id=k;else if(me.permission.enum==="functionCall"){const{receiverId:Br,methodNames:$r,allowance:Pr}=me.permission.functionCall;cr.receiver_id=Br,cr.allowance=Pr&&Pr.toString()||parseNearAmount("0.25"),cr.method_names=$r.join(",")}}return cr}),isInstalled$3=()=>__awaiter17(void 0,void 0,void 0,function*(){return yield(0,import_detect_provider.default)({timeout:100}),!!window.ethereum}),bundle=!0,useCover=!1,customGas,Neth=({metadata:v,logger:k,store:ie,storage:ae,options:ce,provider:fe})=>__awaiter17(void 0,void 0,void 0,function*(){const le=initConnection({network:ce.network,gas:customGas,logger:k,storage:ae}),ve=me=>me.every(Ee=>Ee.type==="FunctionCall"),pe=me=>{if(!ve(me))throw new Error(`Only 'FunctionCall' actions types are supported by ${v.name}`);return me.map(cr=>cr.params)},ye=me=>__awaiter17(void 0,void 0,void 0,function*(){k.log("NETH:signAndSendTransactions",{transactions:me});const{contract:Ee}=ie.getState();if(!(yield isSignedIn$1())||!Ee)throw new Error("Wallet not signed in");useCover&&(le.style.display="block");const cr=me.map(({receiverId:$r,actions:Pr})=>({receiverId:$r||Ee.contractId,actions:pe(Pr)}));let Br;try{Br=yield signAndSendTransactions({transactions:cr,bundle})}catch($r){throw k.log("NETH:signAndSendTransactions Error",$r),$r}return useCover&&(le.style.display="none"),Br});return{signIn(){return __awaiter17(this,void 0,void 0,function*(){let me;try{if(me=yield signIn$1(),!me)return[]}catch(Ee){if(!/not connected/.test(Ee.toString()))throw Ee}return[me]})},signOut(){return __awaiter17(this,void 0,void 0,function*(){yield signOut()})},verifyOwner({message:me}){return __awaiter17(this,void 0,void 0,function*(){return k.log("NETH:verifyOwner",{message:me}),verifyOwner({message:me,provider:fe,account:null})})},getAccounts(){return __awaiter17(this,void 0,void 0,function*(){const me=yield getNear();if(!me)return k.log("NETH:getAccounts"),[];const{account:Ee,accountId:cr}=me;return[{accountId:cr,publicKey:(yield Ee.connection.signer.getPublicKey(Ee.accountId,ce.network.networkId)).toString()}]})},signAndSendTransaction:({receiverId:me,actions:Ee})=>__awaiter17(void 0,void 0,void 0,function*(){return ye([{receiverId:me,actions:Ee}])}),signAndSendTransactions:({transactions:me})=>__awaiter17(void 0,void 0,void 0,function*(){return ye(me)})}});function setupNeth({iconUrl:v=nethIcon,gas:k,useModalCover:ie=!1,bundle:ae=!0,deprecated:ce=!1}={}){return()=>__awaiter17(this,void 0,void 0,function*(){if(useCover=ie,customGas=k,bundle=ae,(0,import_is_mobile$4.default)())return null;const le=yield isInstalled$3();return{id:"neth",type:"injected",metadata:{name:"NETH Account",description:null,iconUrl:v,downloadUrl:NETH_SITE_URL,deprecated:!1,available:le},deprecated:ce,init:Neth}})}/** * [js-sha3]{@link https://github.com/emn178/js-sha3} * * @version 0.8.0 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2015-2018 * @license MIT - */var require_types=__commonJS$1({"node_modules/@near-snap/sdk/build/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.NearSnapStatus=void 0;var k;(function(ie){ie[ie.NOT_SUPPORTED=0]="NOT_SUPPORTED",ie[ie.NOT_INSTALLED=1]="NOT_INSTALLED",ie[ie.INSTALLED=2]="INSTALLED"})(k||(v.NearSnapStatus=k={}))}}),require_provider2=__commonJS$1({"node_modules/@near-snap/sdk/build/provider.js"(v){var k=v&&v.__awaiter||function(ae,ce,fe,le){function ve(pe){return pe instanceof fe?pe:new fe(function(ye){ye(pe)})}return new(fe||(fe=Promise))(function(pe,ye){function me(Br){try{cr(le.next(Br))}catch($r){ye($r)}}function Ee(Br){try{cr(le.throw(Br))}catch($r){ye($r)}}function cr(Br){Br.done?pe(Br.value):ve(Br.value).then(me,Ee)}cr((le=le.apply(ae,ce||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0});var ie=class{isSnapsAvailable(){return k(this,void 0,void 0,function*(){try{const ae=window.ethereum,ce=yield ae==null?void 0:ae.request({method:"web3_clientVersion"}),fe=ce==null?void 0:ce.includes("flask");return Boolean(ae&&fe)}catch{return!1}})}getSnaps(){return k(this,void 0,void 0,function*(){return yield window.ethereum.request({method:"wallet_getSnaps"})})}connectSnap(ae,ce={}){return k(this,void 0,void 0,function*(){yield window.ethereum.request({method:"wallet_requestSnaps",params:{[ae]:ce}})})}getSnap(ae,ce){return k(this,void 0,void 0,function*(){try{const fe=yield this.getSnaps();return Object.values(fe).find(le=>le.id===ae&&(!ce||le.version===ce))}catch(fe){console.log("Failed to obtain installed snap",fe);return}})}invokeSnap(ae,ce,fe){return k(this,void 0,void 0,function*(){return yield window.ethereum.request({method:"wallet_invokeSnap",params:{snapId:ae,request:{method:ce,params:fe}}})})}};v.default=ie}}),require_snap=__commonJS$1({"node_modules/@near-snap/sdk/build/snap.js"(v){var k=v&&v.__awaiter||function(le,ve,pe,ye){function me(Ee){return Ee instanceof pe?Ee:new pe(function(cr){cr(Ee)})}return new(pe||(pe=Promise))(function(Ee,cr){function Br(Or){try{Pr(ye.next(Or))}catch(ur){cr(ur)}}function $r(Or){try{Pr(ye.throw(Or))}catch(ur){cr(ur)}}function Pr(Or){Or.done?Ee(Or.value):me(Or.value).then(Br,$r)}Pr((ye=ye.apply(le,ve||[])).next())})},ie=v&&v.__importDefault||function(le){return le&&le.__esModule?le:{default:le}};Object.defineProperty(v,"__esModule",{value:!0});var ae=ie(require_provider2()),ce=require_types(),fe=class{constructor(le){var ve,pe;this.provider=(ve=le==null?void 0:le.provider)!==null&&ve!==void 0?ve:new ae.default,this.id=(pe=le==null?void 0:le.id)!==null&&pe!==void 0?pe:"npm:@near-snap/plugin"}get isLocal(){return this.id.startsWith("local:")}getStatus(){return k(this,void 0,void 0,function*(){return(yield this.provider.isSnapsAvailable())?(yield this.provider.getSnap(this.id))?ce.NearSnapStatus.INSTALLED:ce.NearSnapStatus.NOT_INSTALLED:ce.NearSnapStatus.NOT_SUPPORTED})}install(){return k(this,void 0,void 0,function*(){yield this.provider.connectSnap(this.id)})}getAccount(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_getAccount",{network:le})})}connect(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_connect",le)})}disconnect(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_disconnect",le)})}getPermissions(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_getPermissions",{network:le})})}needActivate(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_needActivate",{network:le})})}signMessage(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_signMessage",le)})}signDelegatedTransactions(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_signDelegate",le)})}signTransactions(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_signTransactions",le)})}};v.default=fe}}),require_errors=__commonJS$1({"node_modules/@near-snap/sdk/build/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.TransactionInListError=v.TransactionSignRejected=void 0;var k=class extends Error{constructor(ae){super("Transaction was rejected by Metamask user"),this.name="TransactionSignRejected",this.trx=ae}};v.TransactionSignRejected=k;var ie=class extends Error{constructor(ae,ce){super(ce instanceof Error?ce.message:String(ce)),this.name="ListOfTransactionsError",this.completed=ae,this.reason=ce}};v.TransactionInListError=ie}}),require_fs=__commonJS$1({"browser-external:fs"(v,k){k.exports={}}}),require_path=__commonJS$1({"browser-external:path"(v,k){k.exports={}}}),require_unencrypted_file_system_keystore=__commonJS$1({"node_modules/@near-js/keystores-node/lib/unencrypted_file_system_keystore.js"(v){var k=v&&v.__awaiter||function(Mr,Lr,Vr,Gr){function Ur(Qr){return Qr instanceof Vr?Qr:new Vr(function(vn){vn(Qr)})}return new(Vr||(Vr=Promise))(function(Qr,vn){function Yt(Qt){try{Xt(Gr.next(Qt))}catch(Kr){vn(Kr)}}function fn(Qt){try{Xt(Gr.throw(Qt))}catch(Kr){vn(Kr)}}function Xt(Qt){Qt.done?Qr(Qt.value):Ur(Qt.value).then(Yt,fn)}Xt((Gr=Gr.apply(Mr,Lr||[])).next())})},ie=v&&v.__importDefault||function(Mr){return Mr&&Mr.__esModule?Mr:{default:Mr}};Object.defineProperty(v,"__esModule",{value:!0}),v.UnencryptedFileSystemKeyStore=v.readKeyFile=void 0;var ae=require_lib3(),ce=require_lib4$1(),fe=ie(require_fs()),le=ie(require_path()),ve=require_util(),pe=Mr=>Mr?(0,ve.promisify)(Mr):()=>{throw new Error("Trying to use unimplemented function. `fs` module not available in web build?")},ye=pe(fe.default.exists),me=pe(fe.default.readFile),Ee=pe(fe.default.writeFile),cr=pe(fe.default.unlink),Br=pe(fe.default.readdir),$r=pe(fe.default.mkdir);function Pr(Mr){return k(this,void 0,void 0,function*(){const Lr=yield me(Mr);return JSON.parse(Lr.toString())})}function Or(Mr){return k(this,void 0,void 0,function*(){try{yield $r(Mr,{recursive:!0})}catch(Lr){if(Lr.code!=="EEXIST")throw Lr}})}function ur(Mr){return k(this,void 0,void 0,function*(){const Lr=yield Pr(Mr);let Vr=Lr.private_key;return!Vr&&Lr.secret_key&&(Vr=Lr.secret_key),[Lr.account_id,ae.KeyPair.fromString(Vr)]})}v.readKeyFile=ur;var jr=class extends ce.KeyStore{constructor(Mr){super(),this.keyDir=le.default.resolve(Mr)}setKey(Mr,Lr,Vr){return k(this,void 0,void 0,function*(){yield Or(`${this.keyDir}/${Mr}`);const Gr={account_id:Lr,public_key:Vr.getPublicKey().toString(),private_key:Vr.toString()};yield Ee(this.getKeyFilePath(Mr,Lr),JSON.stringify(Gr),{mode:384})})}getKey(Mr,Lr){return k(this,void 0,void 0,function*(){return(yield ye(this.getKeyFilePath(Mr,Lr)))?(yield ur(this.getKeyFilePath(Mr,Lr)))[1]:null})}removeKey(Mr,Lr){return k(this,void 0,void 0,function*(){(yield ye(this.getKeyFilePath(Mr,Lr)))&&(yield cr(this.getKeyFilePath(Mr,Lr)))})}clear(){return k(this,void 0,void 0,function*(){for(const Mr of yield this.getNetworks())for(const Lr of yield this.getAccounts(Mr))yield this.removeKey(Mr,Lr)})}getKeyFilePath(Mr,Lr){return`${this.keyDir}/${Mr}/${Lr}.json`}getNetworks(){return k(this,void 0,void 0,function*(){const Mr=yield Br(this.keyDir),Lr=new Array;return Mr.forEach(Vr=>{Lr.push(Vr)}),Lr})}getAccounts(Mr){return k(this,void 0,void 0,function*(){return(yield ye(`${this.keyDir}/${Mr}`))?(yield Br(`${this.keyDir}/${Mr}`)).filter(Vr=>Vr.endsWith(".json")).map(Vr=>Vr.replace(/.json$/,"")):[]})}toString(){return`UnencryptedFileSystemKeyStore(${this.keyDir})`}};v.UnencryptedFileSystemKeyStore=jr}}),require_lib4=__commonJS$1({"node_modules/@near-js/keystores-node/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.UnencryptedFileSystemKeyStore=v.readKeyFile=void 0;var k=require_unencrypted_file_system_keystore();Object.defineProperty(v,"readKeyFile",{enumerable:!0,get:function(){return k.readKeyFile}}),Object.defineProperty(v,"UnencryptedFileSystemKeyStore",{enumerable:!0,get:function(){return k.UnencryptedFileSystemKeyStore}})}}),require_unencrypted_file_system_keystore2=__commonJS$1({"node_modules/near-api-js/lib/key_stores/unencrypted_file_system_keystore.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.UnencryptedFileSystemKeyStore=v.readKeyFile=void 0;var k=require_lib4();Object.defineProperty(v,"readKeyFile",{enumerable:!0,get:function(){return k.readKeyFile}}),Object.defineProperty(v,"UnencryptedFileSystemKeyStore",{enumerable:!0,get:function(){return k.UnencryptedFileSystemKeyStore}})}}),require_key_stores=__commonJS$1({"node_modules/near-api-js/lib/key_stores/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MergeKeyStore=v.UnencryptedFileSystemKeyStore=v.BrowserLocalStorageKeyStore=v.InMemoryKeyStore=v.KeyStore=void 0;var k=require_keystore2();Object.defineProperty(v,"KeyStore",{enumerable:!0,get:function(){return k.KeyStore}});var ie=require_in_memory_key_store2();Object.defineProperty(v,"InMemoryKeyStore",{enumerable:!0,get:function(){return ie.InMemoryKeyStore}});var ae=require_browser_local_storage_key_store2();Object.defineProperty(v,"BrowserLocalStorageKeyStore",{enumerable:!0,get:function(){return ae.BrowserLocalStorageKeyStore}});var ce=require_unencrypted_file_system_keystore2();Object.defineProperty(v,"UnencryptedFileSystemKeyStore",{enumerable:!0,get:function(){return ce.UnencryptedFileSystemKeyStore}});var fe=require_merge_key_store2();Object.defineProperty(v,"MergeKeyStore",{enumerable:!0,get:function(){return fe.MergeKeyStore}})}}),require_waitTransaction=__commonJS$1({"node_modules/@near-snap/sdk/build/utils/waitTransaction.js"(v){var k=v&&v.__awaiter||function(fe,le,ve,pe){function ye(me){return me instanceof ve?me:new ve(function(Ee){Ee(me)})}return new(ve||(ve=Promise))(function(me,Ee){function cr(Pr){try{$r(pe.next(Pr))}catch(Or){Ee(Or)}}function Br(Pr){try{$r(pe.throw(Pr))}catch(Or){Ee(Or)}}function $r(Pr){Pr.done?me(Pr.value):ye(Pr.value).then(cr,Br)}$r((pe=pe.apply(fe,le||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.waitTransactionResult=v.wait=void 0;var ie=require_provider4(),ae=fe=>new Promise(le=>setTimeout(le,fe));v.wait=ae;var ce=(fe,le,ve)=>k(void 0,void 0,void 0,function*(){yield(0,v.wait)(2e3);let pe;try{pe=yield ve.txStatus(fe,le)}catch{return yield(0,v.waitTransactionResult)(fe,le,ve)}const ye=[],me=pe.transaction_outcome.outcome,Ee=pe.receipts_outcome.reduce(($r,Pr)=>($r[Pr.id]=Pr.outcome,$r),{}),cr=$r=>$r.some(Pr=>{if(!Ee[Pr])return!1;const{status:Or}=Ee[Pr];return typeof Or=="string"?(Or===ie.ExecutionStatusBasic.Failure&&ye.push(Or),!1):Or.Failure?(ye.push(Or.Failure),!1):typeof Or.SuccessValue=="string"&&Ee[Pr].receipt_ids.length===0?!0:cr(Ee[Pr].receipt_ids)}),Br=cr(me.receipt_ids);if(ye.length>0)throw Error(JSON.stringify(ye,null,2));return Br?pe:yield(0,v.waitTransactionResult)(fe,le,ve)});v.waitTransactionResult=ce}}),require_convertAction=__commonJS$1({"node_modules/@near-snap/sdk/build/utils/convertAction.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.convertAction=v.TGAS=void 0,v.TGAS=Math.pow(10,12);var k=ae=>{try{return JSON.parse(Buffer.from(ae).toString("utf8"))}catch{return Array.from(ae)}},ie=ae=>{var ce,fe,le,ve,pe,ye;if(ae.addKey){const{accessKey:me,publicKey:Ee}=ae.addKey;if(me.permission.fullAccess)return{type:"AddKey",params:{accessKey:{permission:"FullAccess"},publicKey:Ee.toString()}};if(me.permission.functionCall){const cr=me.permission.functionCall;return{type:"AddKey",params:{publicKey:Ee.toString(),accessKey:{permission:{receiverId:cr.receiverId,methodNames:cr.methodNames,allowance:(ce=cr.allowance)===null||ce===void 0?void 0:ce.toString(10)}}}}}}if(ae.createAccount)return{type:"CreateAccount"};if(ae.deleteAccount)return{type:"DeleteAccount",params:{beneficiaryId:ae.deleteAccount.beneficiaryId}};if(ae.deleteKey)return{type:"DeleteKey",params:{publicKey:ae.deleteKey.publicKey.toString()}};if(ae.deployContract)return{type:"DeployContract",params:{code:ae.deployContract.code}};if(ae.functionCall)return{type:"FunctionCall",params:{args:k(ae.functionCall.args),deposit:(le=(fe=ae.functionCall.deposit)===null||fe===void 0?void 0:fe.toString())!==null&&le!==void 0?le:"0",gas:(pe=(ve=ae.functionCall.gas)===null||ve===void 0?void 0:ve.toString())!==null&&pe!==void 0?pe:String(300*v.TGAS),methodName:(ye=ae.functionCall.methodName)!==null&&ye!==void 0?ye:""}};if(ae.transfer)return{type:"Transfer",params:{deposit:ae.transfer.deposit.toString()}};if(ae.stake)return{type:"Stake",params:{publicKey:ae.stake.publicKey.toString(),stake:ae.stake.stake.toString()}};throw Error(`Action ${ae.enum} is not supported`)};v.convertAction=ie}}),require_createAction=__commonJS$1({"node_modules/@near-snap/sdk/build/utils/createAction.js"(v){var k=v&&v.__createBinding||(Object.create?function(ye,me,Ee,cr){cr===void 0&&(cr=Ee);var Br=Object.getOwnPropertyDescriptor(me,Ee);(!Br||("get"in Br?!me.__esModule:Br.writable||Br.configurable))&&(Br={enumerable:!0,get:function(){return me[Ee]}}),Object.defineProperty(ye,cr,Br)}:function(ye,me,Ee,cr){cr===void 0&&(cr=Ee),ye[cr]=me[Ee]}),ie=v&&v.__setModuleDefault||(Object.create?function(ye,me){Object.defineProperty(ye,"default",{enumerable:!0,value:me})}:function(ye,me){ye.default=me}),ae=v&&v.__importStar||function(ye){if(ye&&ye.__esModule)return ye;var me={};if(ye!=null)for(var Ee in ye)Ee!=="default"&&Object.prototype.hasOwnProperty.call(ye,Ee)&&k(me,ye,Ee);return ie(me,ye),me};Object.defineProperty(v,"__esModule",{value:!0}),v.createAction=void 0;var ce=require_bn$1(),fe=ae(require_transaction$1()),le=require_utils$5(),ve=ye=>{if(ye==="FullAccess")return fe.fullAccessKey();const{receiverId:me,methodNames:Ee=[]}=ye,cr=ye.allowance?new ce.BN(ye.allowance):void 0;return fe.functionCallAccessKey(me,Ee,cr)},pe=ye=>{switch(ye.type){case"CreateAccount":return fe.createAccount();case"DeployContract":{const{code:me}=ye.params;return fe.deployContract(me)}case"FunctionCall":{const{methodName:me,args:Ee,gas:cr,deposit:Br}=ye.params;return fe.functionCall(me,Ee,new ce.BN(cr),new ce.BN(Br))}case"Transfer":{const{deposit:me}=ye.params;return fe.transfer(new ce.BN(me))}case"Stake":{const{stake:me,publicKey:Ee}=ye.params;return fe.stake(new ce.BN(me),le.PublicKey.from(Ee))}case"AddKey":{const{publicKey:me,accessKey:Ee}=ye.params;return fe.addKey(le.PublicKey.from(me),ve(Ee.permission))}case"DeleteKey":{const{publicKey:me}=ye.params;return fe.deleteKey(le.PublicKey.from(me))}case"DeleteAccount":{const{beneficiaryId:me}=ye.params;return fe.deleteAccount(me)}default:throw new Error("Invalid action type")}};v.createAction=pe}}),require_nep0413=__commonJS$1({"node_modules/@near-snap/sdk/build/utils/nep0413.js"(v){var k=v&&v.__importDefault||function(ve){return ve&&ve.__esModule?ve:{default:ve}};Object.defineProperty(v,"__esModule",{value:!0}),v.verifySignature=v.authPayloadSchema=v.AuthPayload=void 0;var ie=k(require_crypto()),ae=require_utils$5(),ce=require_serialize$1(),fe=class{constructor({message:ve,nonce:pe,recipient:ye,callbackUrl:me}){this.tag=2147484061,this.message=ve,this.nonce=pe,this.recipient=ye,me&&(this.callbackUrl=me)}};v.AuthPayload=fe,v.authPayloadSchema=new Map([[fe,{kind:"struct",fields:[["tag","u32"],["message","string"],["nonce",[32]],["recipient","string"],["callbackUrl",{kind:"option",type:"string"}]]}]]);function le(ve,pe){const ye=new fe(ve),me=(0,ce.serialize)(v.authPayloadSchema,ye),Ee=ie.default.createHash("sha256"),cr=Uint8Array.from(Ee.update(me).digest()),Br=new Uint8Array(Buffer.from(pe.signature,"base64"));return ae.PublicKey.from(pe.publicKey).verify(cr,Br)}v.verifySignature=le}}),require_delegate=__commonJS$1({"node_modules/@near-snap/sdk/build/delegate.js"(v){var k=v&&v.__awaiter||function(ve,pe,ye,me){function Ee(cr){return cr instanceof ye?cr:new ye(function(Br){Br(cr)})}return new(ye||(ye=Promise))(function(cr,Br){function $r(ur){try{Or(me.next(ur))}catch(jr){Br(jr)}}function Pr(ur){try{Or(me.throw(ur))}catch(jr){Br(jr)}}function Or(ur){ur.done?cr(ur.value):Ee(ur.value).then($r,Pr)}Or((me=me.apply(ve,pe||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.HEREDelegateProvider=v.DelegateRequestError=v.DelegateNotAllowed=void 0;var ie=require_serialize$1(),ae=require_browser_index2$1(),ce=class extends Error{};v.DelegateNotAllowed=ce;var fe=class extends Error{};v.DelegateRequestError=fe;var le=class{constructor(){this.endpoint="https://api.herewallet.app/api/v1",this.payer="HERE Wallet"}activateAccount(ve,pe,ye){return k(this,void 0,void 0,function*(){yield fetch(`${this.endpoint}/user/create_near_username`,{method:"POST",body:JSON.stringify({near_account_id:ve,device_id:"metamask",public_key:pe,sign:""}),headers:{Network:ye}})})}isCanDelegate(ve,pe="mainnet"){return k(this,void 0,void 0,function*(){if(pe!=="mainnet")return!1;const ye=Buffer.from(ae.transactions.encodeDelegateAction(ve)).toString("base64"),me=yield fetch(`${this.endpoint}/transactions/is_delegate`,{body:JSON.stringify({transaction:ye}),method:"POST"});if(!me.ok)throw new fe(yield me.text());const{allowed:Ee}=yield me.json();return Ee})}sendDelegate(ve,pe="mainnet"){return k(this,void 0,void 0,function*(){if(pe!=="mainnet")throw new ce;const ye=Buffer.from(ae.transactions.encodeDelegateAction(ve.delegateAction)).toString("base64"),me=yield fetch(`${this.endpoint}/transactions/call_delegate`,{method:"POST",body:JSON.stringify({signature:(0,ie.base_encode)(ve.signature.data),transaction:ye})});if(!me.ok)throw new fe(yield me.text());const{hash:Ee}=yield me.json();return Ee})}};v.HEREDelegateProvider=le}}),require_account=__commonJS$1({"node_modules/@near-snap/sdk/build/account.js"(v){var k=v&&v.__createBinding||(Object.create?function(Yt,fn,Xt,Qt){Qt===void 0&&(Qt=Xt);var Kr=Object.getOwnPropertyDescriptor(fn,Xt);(!Kr||("get"in Kr?!fn.__esModule:Kr.writable||Kr.configurable))&&(Kr={enumerable:!0,get:function(){return fn[Xt]}}),Object.defineProperty(Yt,Qt,Kr)}:function(Yt,fn,Xt,Qt){Qt===void 0&&(Qt=Xt),Yt[Qt]=fn[Xt]}),ie=v&&v.__setModuleDefault||(Object.create?function(Yt,fn){Object.defineProperty(Yt,"default",{enumerable:!0,value:fn})}:function(Yt,fn){Yt.default=fn}),ae=v&&v.__importStar||function(Yt){if(Yt&&Yt.__esModule)return Yt;var fn={};if(Yt!=null)for(var Xt in Yt)Xt!=="default"&&Object.prototype.hasOwnProperty.call(Yt,Xt)&&k(fn,Yt,Xt);return ie(fn,Yt),fn},ce=v&&v.__awaiter||function(Yt,fn,Xt,Qt){function Kr(be){return be instanceof Xt?be:new Xt(function(kr){kr(be)})}return new(Xt||(Xt=Promise))(function(be,kr){function xr(Xr){try{Jt(Qt.next(Xr))}catch(zr){kr(zr)}}function Wr(Xr){try{Jt(Qt.throw(Xr))}catch(zr){kr(zr)}}function Jt(Xr){Xr.done?be(Xr.value):Kr(Xr.value).then(xr,Wr)}Jt((Qt=Qt.apply(Yt,fn||[])).next())})},fe=v&&v.__importDefault||function(Yt){return Yt&&Yt.__esModule?Yt:{default:Yt}};Object.defineProperty(v,"__esModule",{value:!0});var le=fe(require_crypto()),ve=require_lib7(),pe=require_browser_index2$1(),ye=require_key_stores(),me=require_providers$1(),Ee=require_serialize$1(),cr=require_transaction$1(),Br=require_key_pair2(),$r=require_utils$5(),Pr=require_bn$1(),Or=require_waitTransaction(),ur=require_convertAction(),jr=require_createAction(),Mr=ae(require_nep0413()),Lr=require_errors(),Vr=require_types(),Gr=fe(require_snap()),Ur=require_delegate(),Qr={mainnet:"https://rpc.mainnet.near.org",testnet:"https://rpc.testnet.near.org"},vn=class extends pe.Account{constructor(Yt){var fn,Xt;super({networkId:Yt.network,jsvmAccountId:`jsvm.${Yt.network}`,signer:new pe.InMemorySigner(new ye.InMemoryKeyStore),provider:new me.JsonRpcProvider({url:Qr[Yt.network]})},Yt.accountId),this.publicKey=Yt.publicKey,this.snap=(fn=Yt.snap)!==null&&fn!==void 0?fn:new Gr.default,this.delegateProvider=(Xt=Yt.delegateProvider)!==null&&Xt!==void 0?Xt:new Ur.HEREDelegateProvider}get network(){return this.connection.networkId}connect(Yt,fn=[]){return ce(this,void 0,void 0,function*(){return yield this.snap.connect({network:this.network,contractId:Yt,methods:fn})})}disconnect(){return ce(this,void 0,void 0,function*(){return yield this.snap.disconnect({network:this.network})})}authenticate(Yt,fn){return ce(this,void 0,void 0,function*(){const Xt=le.default.randomBytes(32),Qt={message:fn,recipient:Yt,nonce:Xt,network:this.network},Kr=yield this.signMessage(Qt);if(!Mr.verifySignature(Qt,Kr))throw Error("Signature is incorrect");if(!(yield this.getAccessKeys()).some(Wr=>Wr.public_key===Kr.publicKey&&Wr.access_key.permission==="FullAccess"))throw Error("Signer public key is not full access");return Kr})}signMessage(Yt){return ce(this,void 0,void 0,function*(){const fn=yield this.snap.signMessage({message:Yt.message,nonce:Array.from(Yt.nonce),recipient:Yt.recipient,network:this.network});if(!fn)throw Error("Signed result is undefined");const{accountId:Xt,publicKey:Qt,signature:Kr}=fn;if(!Xt||!Qt||!Kr)throw Error("Signed result is undefined");return{accountId:Xt,publicKey:Qt,signature:Kr}})}signTransaction(Yt,fn){return ce(this,void 0,void 0,function*(){const Xt=yield this.getLastNonce(),{total:Qt}=yield this.getAccountBalance(),Kr=yield this.snap.signTransactions({network:this.connection.networkId,hintBalance:Qt,transactions:[{recentBlockHash:Xt.block_hash,nonce:new Pr.BN(Xt.nonce).iaddn(1).toNumber(),actions:fn.map(ur.convertAction),receiverId:Yt}]});if(!(Kr!=null&&Kr[0]))throw Error("Access denided");return[(0,Ee.base_decode)(Kr[0][0]),cr.SignedTransaction.decode((0,Ee.base_decode)(Kr[0][1]))]})}activateIfNeeded(){var Yt;return ce(this,void 0,void 0,function*(){try{yield this.getLastNonce()}catch{if(!this.delegateProvider){yield this.snap.needActivate(this.network);return}try{yield(Yt=this.delegateProvider)===null||Yt===void 0?void 0:Yt.activateAccount(this.accountId,this.publicKey.toString(),this.network),yield(0,Or.wait)(1e3)}catch{yield this.snap.needActivate(this.network)}}})}getLastNonce(){return ce(this,void 0,void 0,function*(){return yield this.connection.provider.query({request_type:"view_access_key",public_key:this.publicKey.toString(),account_id:this.accountId,finality:"final"})})}signedDelegate({actions:Yt,blockHeightTtl:fn,receiverId:Xt,payer:Qt}){return ce(this,void 0,void 0,function*(){const Kr=yield this.getLastNonce(),be=(0,ve.buildDelegateAction)({maxBlockHeight:new Pr.BN(Kr.block_height).add(new Pr.BN(fn)),nonce:new Pr.BN(Kr.nonce).add(new Pr.BN(1)),publicKey:this.publicKey,senderId:this.accountId,receiverId:Xt,actions:Yt}),{total:kr}=yield this.getAccountBalance(),xr=yield this.snap.signDelegatedTransactions({payer:Qt,hintBalance:kr,network:this.connection.networkId,delegateAction:{maxBlockHeight:be.maxBlockHeight.toString(),actions:be.actions.map(ur.convertAction),publicKey:be.publicKey.toString(),nonce:be.nonce.toString(),receiverId:be.receiverId,senderId:be.senderId}});if(!(xr!=null&&xr.signature)||!(xr!=null&&xr.transaction))throw Error("Access denied");return{delegateAction:be,signature:{keyType:Br.KeyType.ED25519,data:(0,Ee.base_decode)(xr.signature)}}})}signAndSendTransaction({receiverId:Yt,actions:fn}){return ce(this,void 0,void 0,function*(){return(yield this.executeTransactions([{actions:fn.map(ur.convertAction),receiverId:Yt}]))[0]})}buildDelegateAction(Yt){return ce(this,void 0,void 0,function*(){if(!this.delegateProvider)throw new Ur.DelegateNotAllowed;if(Yt instanceof ve.DelegateAction){const be=this.connection.networkId,kr=yield this.delegateProvider.isCanDelegate(Yt,be);return{action:Yt,allowed:kr}}const fn=yield this.getLastNonce(),Xt=(0,ve.buildDelegateAction)({actions:Yt.actions.map(jr.createAction),maxBlockHeight:new Pr.BN(fn.block_height).add(new Pr.BN(100)),nonce:new Pr.BN(fn.nonce).add(new Pr.BN(1)),publicKey:this.publicKey,senderId:this.accountId,receiverId:Yt.receiverId}),Qt=this.connection.networkId,Kr=yield this.delegateProvider.isCanDelegate(Xt,Qt);return{action:Xt,allowed:Kr}})}executeDelegate(Yt){return ce(this,void 0,void 0,function*(){if(!this.delegateProvider)throw new Ur.DelegateNotAllowed;const{action:fn,allowed:Xt}=yield this.buildDelegateAction(Yt);if(!Xt){const xr=`Delegated transaction is now allowed by ${this.delegateProvider.payer}. Try other DelegateProvider`;throw new Ur.DelegateNotAllowed(xr)}const Qt=yield this.signedDelegate({payer:this.delegateProvider.payer,actions:fn.actions,receiverId:Yt.receiverId,blockHeightTtl:100}),{provider:Kr,networkId:be}=this.connection,kr=yield this.delegateProvider.sendDelegate(Qt,be);return yield(0,Or.waitTransactionResult)(kr,this.accountId,Kr)})}executeTransaction(Yt){return ce(this,void 0,void 0,function*(){try{if(Yt.disableDelegate)throw new Ur.DelegateNotAllowed;return yield this.executeDelegate(Yt)}catch(fn){if(fn instanceof Ur.DelegateNotAllowed||fn instanceof Ur.DelegateRequestError)return(yield this.executeTransactions([Yt]))[0];throw fn}})}executeTransactions(Yt){return ce(this,void 0,void 0,function*(){const fn=yield this.getLastNonce(),{total:Xt}=yield this.getAccountBalance(),Qt=yield this.snap.signTransactions({hintBalance:Xt,network:this.connection.networkId,transactions:Yt.map((be,kr)=>Object.assign({nonce:new Pr.BN(fn.nonce).iaddn(kr+1).toNumber(),recentBlockHash:fn.block_hash},be))});if(Qt==null)throw new Lr.TransactionSignRejected;const Kr=[];Qt==null||Qt.forEach((be,kr)=>{if(be==null)throw new Lr.TransactionSignRejected(Yt[kr])});try{for(const be of Qt){const kr=be,xr=cr.SignedTransaction.decode(Buffer.from(kr[1],"hex"));Kr.push(yield this.connection.provider.sendTransaction(xr))}}catch(be){throw new Lr.TransactionInListError(Kr,be)}return Kr})}static restore({network:Yt,delegateProvider:fn,snap:Xt=new Gr.default}){return ce(this,void 0,void 0,function*(){const Qt=yield Xt.getAccount(Yt).catch(()=>null);if(!(Qt!=null&&Qt.accountId)||!(Qt!=null&&Qt.publicKey))return null;const Kr=new vn({publicKey:$r.PublicKey.fromString(Qt.publicKey),accountId:Qt.accountId,delegateProvider:fn,network:Yt,snap:Xt});return yield Kr.activateIfNeeded(),Kr})}static connect({snap:Yt=new Gr.default,delegateProvider:fn,contractId:Xt,methods:Qt,network:Kr}){return ce(this,void 0,void 0,function*(){const be=yield Yt.getStatus();if(be===Vr.NearSnapStatus.NOT_SUPPORTED)throw Error("You need install Metamask Flask");be===Vr.NearSnapStatus.NOT_INSTALLED&&(yield Yt.install());const kr=yield Yt.connect({contractId:Xt,methods:Qt,network:Kr});if(!(kr!=null&&kr.accountId))throw Error("Metamask Near Snap did not return account id");if(!(kr!=null&&kr.publicKey))throw Error("Metamask Near Snap did not return public key");const xr=new vn({delegateProvider:fn,publicKey:$r.PublicKey.fromString(kr.publicKey),accountId:kr.accountId,network:Kr,snap:Yt});return yield xr.activateIfNeeded(),xr})}};v.default=vn}}),require_build=__commonJS$1({"node_modules/@near-snap/sdk/build/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(pe,ye,me,Ee){Ee===void 0&&(Ee=me);var cr=Object.getOwnPropertyDescriptor(ye,me);(!cr||("get"in cr?!ye.__esModule:cr.writable||cr.configurable))&&(cr={enumerable:!0,get:function(){return ye[me]}}),Object.defineProperty(pe,Ee,cr)}:function(pe,ye,me,Ee){Ee===void 0&&(Ee=me),pe[Ee]=ye[me]}),ie=v&&v.__exportStar||function(pe,ye){for(var me in pe)me!=="default"&&!Object.prototype.hasOwnProperty.call(ye,me)&&k(ye,pe,me)},ae=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.NearSnapAccount=v.TransactionSignRejected=v.TransactionInListError=v.NearSnapProvider=v.NearSnap=void 0,ie(require_types(),v);var ce=require_snap();Object.defineProperty(v,"NearSnap",{enumerable:!0,get:function(){return ae(ce).default}});var fe=require_provider2();Object.defineProperty(v,"NearSnapProvider",{enumerable:!0,get:function(){return ae(fe).default}});var le=require_errors();Object.defineProperty(v,"TransactionInListError",{enumerable:!0,get:function(){return le.TransactionInListError}}),Object.defineProperty(v,"TransactionSignRejected",{enumerable:!0,get:function(){return le.TransactionSignRejected}});var ve=require_account();Object.defineProperty(v,"NearSnapAccount",{enumerable:!0,get:function(){return ae(ve).default}})}}),import_sdk=__toESM(require_build(),1);function __awaiter$4(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var commonjsGlobal$4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$3=function(v){return v&&v.Math==Math&&v},global$a$2=check$3(typeof globalThis=="object"&&globalThis)||check$3(typeof window=="object"&&window)||check$3(typeof self=="object"&&self)||check$3(typeof commonjsGlobal$4=="object"&&commonjsGlobal$4)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$2={},fails$9$2=function(v){try{return!!v()}catch{return!0}},fails$8$2=fails$9$2,descriptors$3=!fails$8$2(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$7$3=fails$9$2,functionBindNative$3=!fails$7$3(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$1$3=functionBindNative$3,call$5$2=Function.prototype.call,functionCall$3=NATIVE_BIND$1$3?call$5$2.bind(call$5$2):function(){return call$5$2.apply(call$5$2,arguments)},objectPropertyIsEnumerable$2={},$propertyIsEnumerable$2={}.propertyIsEnumerable,getOwnPropertyDescriptor$1$2=Object.getOwnPropertyDescriptor,NASHORN_BUG$2=getOwnPropertyDescriptor$1$2&&!$propertyIsEnumerable$2.call({1:2},1);objectPropertyIsEnumerable$2.f=NASHORN_BUG$2?function v(k){var ie=getOwnPropertyDescriptor$1$2(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$2;var createPropertyDescriptor$2$2=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$6=functionBindNative$3,FunctionPrototype$1$3=Function.prototype,bind$8=FunctionPrototype$1$3.bind,call$4$3=FunctionPrototype$1$3.call,uncurryThis$a$2=NATIVE_BIND$6&&bind$8.bind(call$4$3,call$4$3),functionUncurryThis$3=NATIVE_BIND$6?function(v){return v&&uncurryThis$a$2(v)}:function(v){return v&&function(){return call$4$3.apply(v,arguments)}},uncurryThis$9$2=functionUncurryThis$3,toString$1$3=uncurryThis$9$2({}.toString),stringSlice$3=uncurryThis$9$2("".slice),classofRaw$4=function(v){return stringSlice$3(toString$1$3(v),8,-1)},uncurryThis$8$2=functionUncurryThis$3,fails$6$3=fails$9$2,classof$b=classofRaw$4,$Object$2$3=Object,split$2=uncurryThis$8$2("".split),indexedObject$2=fails$6$3(function(){return!$Object$2$3("z").propertyIsEnumerable(0)})?function(v){return classof$b(v)=="String"?split$2(v,""):$Object$2$3(v)}:$Object$2$3,$TypeError$5$3=TypeError,requireObjectCoercible$2$2=function(v){if(v==null)throw $TypeError$5$3("Can't call method on "+v);return v},IndexedObject$1$1=indexedObject$2,requireObjectCoercible$1$3=requireObjectCoercible$2$2,toIndexedObject$3$2=function(v){return IndexedObject$1$1(requireObjectCoercible$1$3(v))},isCallable$a$3=function(v){return typeof v=="function"},isCallable$9$3=isCallable$a$3,isObject$5$3=function(v){return typeof v=="object"?v!==null:isCallable$9$3(v)},global$9$3=global$a$2,isCallable$8$3=isCallable$a$3,aFunction$3=function(v){return isCallable$8$3(v)?v:void 0},getBuiltIn$3$2=function(v,k){return arguments.length<2?aFunction$3(global$9$3[v]):global$9$3[v]&&global$9$3[v][k]},uncurryThis$7$2=functionUncurryThis$3,objectIsPrototypeOf$3=uncurryThis$7$2({}.isPrototypeOf),getBuiltIn$2$3=getBuiltIn$3$2,engineUserAgent$3=getBuiltIn$2$3("navigator","userAgent")||"",global$8$3=global$a$2,userAgent$6=engineUserAgent$3,process$6=global$8$3.process,Deno$3=global$8$3.Deno,versions$3=process$6&&process$6.versions||Deno$3&&Deno$3.version,v8$3=versions$3&&versions$3.v8,match$3,version$3;v8$3&&(match$3=v8$3.split("."),version$3=match$3[0]>0&&match$3[0]<4?1:+(match$3[0]+match$3[1]));!version$3&&userAgent$6&&(match$3=userAgent$6.match(/Edge\/(\d+)/),(!match$3||match$3[1]>=74)&&(match$3=userAgent$6.match(/Chrome\/(\d+)/),match$3&&(version$3=+match$3[1])));var engineV8Version$3=version$3,V8_VERSION$4=engineV8Version$3,fails$5$3=fails$9$2,nativeSymbol$3=!!Object.getOwnPropertySymbols&&!fails$5$3(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$4&&V8_VERSION$4<41}),NATIVE_SYMBOL$1$3=nativeSymbol$3,useSymbolAsUid$3=NATIVE_SYMBOL$1$3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$1$3=getBuiltIn$3$2,isCallable$7$3=isCallable$a$3,isPrototypeOf$7=objectIsPrototypeOf$3,USE_SYMBOL_AS_UID$1$3=useSymbolAsUid$3,$Object$1$3=Object,isSymbol$2$3=USE_SYMBOL_AS_UID$1$3?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$1$3("Symbol");return isCallable$7$3(k)&&isPrototypeOf$7(k.prototype,$Object$1$3(v))},$String$1$3=String,tryToString$1$3=function(v){try{return $String$1$3(v)}catch{return"Object"}},isCallable$6$3=isCallable$a$3,tryToString$7=tryToString$1$3,$TypeError$4$3=TypeError,aCallable$1$3=function(v){if(isCallable$6$3(v))return v;throw $TypeError$4$3(tryToString$7(v)+" is not a function")},aCallable$a=aCallable$1$3,getMethod$1$3=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$a(ie)},call$3$3=functionCall$3,isCallable$5$3=isCallable$a$3,isObject$4$3=isObject$5$3,$TypeError$3$3=TypeError,ordinaryToPrimitive$1$3=function(v,k){var ie,ae;if(k==="string"&&isCallable$5$3(ie=v.toString)&&!isObject$4$3(ae=call$3$3(ie,v))||isCallable$5$3(ie=v.valueOf)&&!isObject$4$3(ae=call$3$3(ie,v))||k!=="string"&&isCallable$5$3(ie=v.toString)&&!isObject$4$3(ae=call$3$3(ie,v)))return ae;throw $TypeError$3$3("Can't convert object to primitive value")},shared$3$3={exports:{}},global$7$3=global$a$2,defineProperty$2$2=Object.defineProperty,defineGlobalProperty$3$2=function(v,k){try{defineProperty$2$2(global$7$3,v,{value:k,configurable:!0,writable:!0})}catch{global$7$3[v]=k}return k},global$6$3=global$a$2,defineGlobalProperty$2$3=defineGlobalProperty$3$2,SHARED$3="__core-js_shared__",store$3$3=global$6$3[SHARED$3]||defineGlobalProperty$2$3(SHARED$3,{}),sharedStore$3=store$3$3,store$2$3=sharedStore$3;(shared$3$3.exports=function(v,k){return store$2$3[v]||(store$2$3[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$5=requireObjectCoercible$2$2,$Object$7=Object,toObject$2$1=function(v){return $Object$7(requireObjectCoercible$5(v))},uncurryThis$6$3=functionUncurryThis$3,toObject$1$3=toObject$2$1,hasOwnProperty$3=uncurryThis$6$3({}.hasOwnProperty),hasOwnProperty_1$3=Object.hasOwn||function v(k,ie){return hasOwnProperty$3(toObject$1$3(k),ie)},uncurryThis$5$3=functionUncurryThis$3,id$4=0,postfix$3=Math.random(),toString$3=uncurryThis$5$3(1 .toString),uid$2$3=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$3(++id$4+postfix$3,36)},global$5$3=global$a$2,shared$2$3=shared$3$3.exports,hasOwn$6$2=hasOwnProperty_1$3,uid$1$3=uid$2$3,NATIVE_SYMBOL$4=nativeSymbol$3,USE_SYMBOL_AS_UID$4=useSymbolAsUid$3,WellKnownSymbolsStore$3=shared$2$3("wks"),Symbol$1$3=global$5$3.Symbol,symbolFor$3=Symbol$1$3&&Symbol$1$3.for,createWellKnownSymbol$3=USE_SYMBOL_AS_UID$4?Symbol$1$3:Symbol$1$3&&Symbol$1$3.withoutSetter||uid$1$3,wellKnownSymbol$1$3=function(v){if(!hasOwn$6$2(WellKnownSymbolsStore$3,v)||!(NATIVE_SYMBOL$4||typeof WellKnownSymbolsStore$3[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$4&&hasOwn$6$2(Symbol$1$3,v)?WellKnownSymbolsStore$3[v]=Symbol$1$3[v]:USE_SYMBOL_AS_UID$4&&symbolFor$3?WellKnownSymbolsStore$3[v]=symbolFor$3(k):WellKnownSymbolsStore$3[v]=createWellKnownSymbol$3(k)}return WellKnownSymbolsStore$3[v]},call$2$3=functionCall$3,isObject$3$3=isObject$5$3,isSymbol$1$3=isSymbol$2$3,getMethod$6=getMethod$1$3,ordinaryToPrimitive$4=ordinaryToPrimitive$1$3,wellKnownSymbol$h=wellKnownSymbol$1$3,$TypeError$2$3=TypeError,TO_PRIMITIVE$3=wellKnownSymbol$h("toPrimitive"),toPrimitive$1$3=function(v,k){if(!isObject$3$3(v)||isSymbol$1$3(v))return v;var ie=getMethod$6(v,TO_PRIMITIVE$3),ae;if(ie){if(k===void 0&&(k="default"),ae=call$2$3(ie,v,k),!isObject$3$3(ae)||isSymbol$1$3(ae))return ae;throw $TypeError$2$3("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$4(v,k)},toPrimitive$5=toPrimitive$1$3,isSymbol$6=isSymbol$2$3,toPropertyKey$2$2=function(v){var k=toPrimitive$5(v,"string");return isSymbol$6(k)?k:k+""},global$4$3=global$a$2,isObject$2$3=isObject$5$3,document$5=global$4$3.document,EXISTS$1$3=isObject$2$3(document$5)&&isObject$2$3(document$5.createElement),documentCreateElement$4=function(v){return EXISTS$1$3?document$5.createElement(v):{}},DESCRIPTORS$7$2=descriptors$3,fails$4$3=fails$9$2,createElement$4=documentCreateElement$4,ie8DomDefine$3=!DESCRIPTORS$7$2&&!fails$4$3(function(){return Object.defineProperty(createElement$4("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$6$2=descriptors$3,call$1$3=functionCall$3,propertyIsEnumerableModule$1$1=objectPropertyIsEnumerable$2,createPropertyDescriptor$1$3=createPropertyDescriptor$2$2,toIndexedObject$2$2=toIndexedObject$3$2,toPropertyKey$1$3=toPropertyKey$2$2,hasOwn$5$2=hasOwnProperty_1$3,IE8_DOM_DEFINE$1$2=ie8DomDefine$3,$getOwnPropertyDescriptor$1$2=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$2.f=DESCRIPTORS$6$2?$getOwnPropertyDescriptor$1$2:function v(k,ie){if(k=toIndexedObject$2$2(k),ie=toPropertyKey$1$3(ie),IE8_DOM_DEFINE$1$2)try{return $getOwnPropertyDescriptor$1$2(k,ie)}catch{}if(hasOwn$5$2(k,ie))return createPropertyDescriptor$1$3(!call$1$3(propertyIsEnumerableModule$1$1.f,k,ie),k[ie])};var objectDefineProperty$3={},DESCRIPTORS$5$3=descriptors$3,fails$3$3=fails$9$2,v8PrototypeDefineBug$3=DESCRIPTORS$5$3&&fails$3$3(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$1$3=isObject$5$3,$String$6=String,$TypeError$1$3=TypeError,anObject$2$3=function(v){if(isObject$1$3(v))return v;throw $TypeError$1$3($String$6(v)+" is not an object")},DESCRIPTORS$4$3=descriptors$3,IE8_DOM_DEFINE$4=ie8DomDefine$3,V8_PROTOTYPE_DEFINE_BUG$4=v8PrototypeDefineBug$3,anObject$1$3=anObject$2$3,toPropertyKey$7=toPropertyKey$2$2,$TypeError$e=TypeError,$defineProperty$3=Object.defineProperty,$getOwnPropertyDescriptor$4=Object.getOwnPropertyDescriptor,ENUMERABLE$3="enumerable",CONFIGURABLE$1$3="configurable",WRITABLE$3="writable";objectDefineProperty$3.f=DESCRIPTORS$4$3?V8_PROTOTYPE_DEFINE_BUG$4?function v(k,ie,ae){if(anObject$1$3(k),ie=toPropertyKey$7(ie),anObject$1$3(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$3 in ae&&!ae[WRITABLE$3]){var ce=$getOwnPropertyDescriptor$4(k,ie);ce&&ce[WRITABLE$3]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$3 in ae?ae[CONFIGURABLE$1$3]:ce[CONFIGURABLE$1$3],enumerable:ENUMERABLE$3 in ae?ae[ENUMERABLE$3]:ce[ENUMERABLE$3],writable:!1})}return $defineProperty$3(k,ie,ae)}:$defineProperty$3:function v(k,ie,ae){if(anObject$1$3(k),ie=toPropertyKey$7(ie),anObject$1$3(ae),IE8_DOM_DEFINE$4)try{return $defineProperty$3(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$e("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$3$3=descriptors$3,definePropertyModule$2$2=objectDefineProperty$3,createPropertyDescriptor$8=createPropertyDescriptor$2$2,createNonEnumerableProperty$2$2=DESCRIPTORS$3$3?function(v,k,ie){return definePropertyModule$2$2.f(v,k,createPropertyDescriptor$8(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$3={exports:{}},DESCRIPTORS$2$3=descriptors$3,hasOwn$4$3=hasOwnProperty_1$3,FunctionPrototype$5=Function.prototype,getDescriptor$3=DESCRIPTORS$2$3&&Object.getOwnPropertyDescriptor,EXISTS$4=hasOwn$4$3(FunctionPrototype$5,"name"),PROPER$3=EXISTS$4&&function v(){}.name==="something",CONFIGURABLE$4=EXISTS$4&&(!DESCRIPTORS$2$3||DESCRIPTORS$2$3&&getDescriptor$3(FunctionPrototype$5,"name").configurable),functionName$3={EXISTS:EXISTS$4,PROPER:PROPER$3,CONFIGURABLE:CONFIGURABLE$4},uncurryThis$4$3=functionUncurryThis$3,isCallable$4$3=isCallable$a$3,store$1$3=sharedStore$3,functionToString$3=uncurryThis$4$3(Function.toString);isCallable$4$3(store$1$3.inspectSource)||(store$1$3.inspectSource=function(v){return functionToString$3(v)});var inspectSource$2$3=store$1$3.inspectSource,global$3$3=global$a$2,isCallable$3$3=isCallable$a$3,inspectSource$1$3=inspectSource$2$3,WeakMap$1$3=global$3$3.WeakMap,nativeWeakMap$3=isCallable$3$3(WeakMap$1$3)&&/native code/.test(inspectSource$1$3(WeakMap$1$3)),shared$1$3=shared$3$3.exports,uid$6=uid$2$3,keys$3=shared$1$3("keys"),sharedKey$1$3=function(v){return keys$3[v]||(keys$3[v]=uid$6(v))},hiddenKeys$3$2={},NATIVE_WEAK_MAP$3=nativeWeakMap$3,global$2$3=global$a$2,uncurryThis$3$3=functionUncurryThis$3,isObject$d=isObject$5$3,createNonEnumerableProperty$1$3=createNonEnumerableProperty$2$2,hasOwn$3$3=hasOwnProperty_1$3,shared$6=sharedStore$3,sharedKey$6=sharedKey$1$3,hiddenKeys$2$2=hiddenKeys$3$2,OBJECT_ALREADY_INITIALIZED$3="Object already initialized",TypeError$1$3=global$2$3.TypeError,WeakMap$5=global$2$3.WeakMap,set$4,get$4,has$3,enforce$3=function(v){return has$3(v)?get$4(v):set$4(v,{})},getterFor$3=function(v){return function(k){var ie;if(!isObject$d(k)||(ie=get$4(k)).type!==v)throw TypeError$1$3("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$3||shared$6.state?(store$6=shared$6.state||(shared$6.state=new WeakMap$5),wmget$3=uncurryThis$3$3(store$6.get),wmhas$3=uncurryThis$3$3(store$6.has),wmset$3=uncurryThis$3$3(store$6.set),set$4=function(v,k){if(wmhas$3(store$6,v))throw new TypeError$1$3(OBJECT_ALREADY_INITIALIZED$3);return k.facade=v,wmset$3(store$6,v,k),k},get$4=function(v){return wmget$3(store$6,v)||{}},has$3=function(v){return wmhas$3(store$6,v)}):(STATE$3=sharedKey$6("state"),hiddenKeys$2$2[STATE$3]=!0,set$4=function(v,k){if(hasOwn$3$3(v,STATE$3))throw new TypeError$1$3(OBJECT_ALREADY_INITIALIZED$3);return k.facade=v,createNonEnumerableProperty$1$3(v,STATE$3,k),k},get$4=function(v){return hasOwn$3$3(v,STATE$3)?v[STATE$3]:{}},has$3=function(v){return hasOwn$3$3(v,STATE$3)});var store$6,wmget$3,wmhas$3,wmset$3,STATE$3,internalState$3={set:set$4,get:get$4,has:has$3,enforce:enforce$3,getterFor:getterFor$3},fails$2$3=fails$9$2,isCallable$2$3=isCallable$a$3,hasOwn$2$3=hasOwnProperty_1$3,DESCRIPTORS$1$3=descriptors$3,CONFIGURABLE_FUNCTION_NAME$5=functionName$3.CONFIGURABLE,inspectSource$7=inspectSource$2$3,InternalStateModule$7=internalState$3,enforceInternalState$5=InternalStateModule$7.enforce,getInternalState$7=InternalStateModule$7.get,defineProperty$1$3=Object.defineProperty,CONFIGURABLE_LENGTH$3=DESCRIPTORS$1$3&&!fails$2$3(function(){return defineProperty$1$3(function(){},"length",{value:8}).length!==8}),TEMPLATE$3=String(String).split("String"),makeBuiltIn$1$3=makeBuiltIn$2$3.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$2$3(v,"name")||CONFIGURABLE_FUNCTION_NAME$5&&v.name!==k)&&(DESCRIPTORS$1$3?defineProperty$1$3(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$3&&ie&&hasOwn$2$3(ie,"arity")&&v.length!==ie.arity&&defineProperty$1$3(v,"length",{value:ie.arity});try{ie&&hasOwn$2$3(ie,"constructor")&&ie.constructor?DESCRIPTORS$1$3&&defineProperty$1$3(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$5(v);return hasOwn$2$3(ae,"source")||(ae.source=TEMPLATE$3.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$3(function v(){return isCallable$2$3(this)&&getInternalState$7(this).source||inspectSource$7(this)},"toString");var isCallable$1$3=isCallable$a$3,definePropertyModule$1$3=objectDefineProperty$3,makeBuiltIn$5=makeBuiltIn$2$3.exports,defineGlobalProperty$1$3=defineGlobalProperty$3$2,defineBuiltIn$1$3=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$1$3(ie)&&makeBuiltIn$5(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$3(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$1$3.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$2={},ceil$2=Math.ceil,floor$5=Math.floor,mathTrunc$2=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$5:ceil$2)(ie)},trunc2$2=mathTrunc$2,toIntegerOrInfinity$2$2=function(v){var k=+v;return k!==k||k===0?0:trunc2$2(k)},toIntegerOrInfinity$1$2=toIntegerOrInfinity$2$2,max$3=Math.max,min$1$2=Math.min,toAbsoluteIndex$1$2=function(v,k){var ie=toIntegerOrInfinity$1$2(v);return ie<0?max$3(ie+k,0):min$1$2(ie,k)},toIntegerOrInfinity$7=toIntegerOrInfinity$2$2,min$3=Math.min,toLength$1$2=function(v){return v>0?min$3(toIntegerOrInfinity$7(v),9007199254740991):0},toLength$7=toLength$1$2,lengthOfArrayLike$1$2=function(v){return toLength$7(v.length)},toIndexedObject$1$2=toIndexedObject$3$2,toAbsoluteIndex$6=toAbsoluteIndex$1$2,lengthOfArrayLike$8=lengthOfArrayLike$1$2,createMethod$3=function(v){return function(k,ie,ae){var ce=toIndexedObject$1$2(k),fe=lengthOfArrayLike$8(ce),le=toAbsoluteIndex$6(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$2={includes:createMethod$3(!0),indexOf:createMethod$3(!1)},uncurryThis$2$3=functionUncurryThis$3,hasOwn$1$3=hasOwnProperty_1$3,toIndexedObject$8=toIndexedObject$3$2,indexOf$2=arrayIncludes$2.indexOf,hiddenKeys$1$2=hiddenKeys$3$2,push$3=uncurryThis$2$3([].push),objectKeysInternal$2=function(v,k){var ie=toIndexedObject$8(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$1$3(hiddenKeys$1$2,fe)&&hasOwn$1$3(ie,fe)&&push$3(ce,fe);for(;k.length>ae;)hasOwn$1$3(ie,fe=k[ae++])&&(~indexOf$2(ce,fe)||push$3(ce,fe));return ce},enumBugKeys$2$1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$1=objectKeysInternal$2,enumBugKeys$1$2=enumBugKeys$2$1,hiddenKeys$6=enumBugKeys$1$2.concat("length","prototype");objectGetOwnPropertyNames$2.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$1(k,hiddenKeys$6)};var objectGetOwnPropertySymbols$2={};objectGetOwnPropertySymbols$2.f=Object.getOwnPropertySymbols;var getBuiltIn$b=getBuiltIn$3$2,uncurryThis$1$3=functionUncurryThis$3,getOwnPropertyNamesModule$2=objectGetOwnPropertyNames$2,getOwnPropertySymbolsModule$1$1=objectGetOwnPropertySymbols$2,anObject$d=anObject$2$3,concat$1$1=uncurryThis$1$3([].concat),ownKeys$1$2=getBuiltIn$b("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$2.f(anObject$d(k)),ae=getOwnPropertySymbolsModule$1$1.f;return ae?concat$1$1(ie,ae(k)):ie},hasOwn2$3=hasOwnProperty_1$3,ownKeys2$2=ownKeys$1$2,getOwnPropertyDescriptorModule$3=objectGetOwnPropertyDescriptor$2,definePropertyModule$9=objectDefineProperty$3,copyConstructorProperties$1$2=function(v,k,ie){for(var ae=ownKeys2$2(k),ce=definePropertyModule$9.f,fe=getOwnPropertyDescriptorModule$3.f,le=0;lefe;)for(var pe=IndexedObject$4(arguments[fe++]),ye=le?concat$3(objectKeys$3(pe),le(pe)):objectKeys$3(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$g||call$g(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$1,$$7=_export$2,assign2$1=objectAssign$1;$$7({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$1},{assign:assign2$1});var initNearSnap=v=>__awaiter$4(void 0,void 0,void 0,function*(){const{store:k,logger:ie,options:ae}=v,ce=ae.network.networkId,fe=new import_sdk.NearSnap;let le=yield import_sdk.NearSnapAccount.restore({network:ce,snap:fe});return{isSignedIn(){return __awaiter$4(this,void 0,void 0,function*(){return ie.log("NearSnap:isSignedIn"),le!=null})},signIn({contractId:ve,methodNames:pe}){return __awaiter$4(this,void 0,void 0,function*(){return ie.log("NearSnap:signIn"),le=yield import_sdk.NearSnapAccount.connect({contractId:ve===""?void 0:ve,methods:pe,network:ce,snap:fe}),[{accountId:le.accountId}]})},signOut(){return __awaiter$4(this,void 0,void 0,function*(){ie.log("NearSnap:signOut"),yield le==null?void 0:le.disconnect()})},getAccounts(){return __awaiter$4(this,void 0,void 0,function*(){return le?[{accountId:le.accountId}]:[]})},signAndSendTransaction(ve){var pe;return __awaiter$4(this,void 0,void 0,function*(){if(ie.log("NearSnap:signAndSendTransaction",ve),le==null)throw new Error("Wallet not signed in");const{contract:ye}=k.getState(),me=(pe=ve.receiverId)!==null&&pe!==void 0?pe:ye==null?void 0:ye.contractId;if(me==null)throw new Error("ReceiverId is not defined");return yield le.executeTransaction(Object.assign({receiverId:me},ve))})},signMessage({message:ve,nonce:pe,recipient:ye}){return __awaiter$4(this,void 0,void 0,function*(){if(le==null)throw new Error("Wallet not signed in");return yield le.signMessage({message:ve,nonce:pe,recipient:ye})})},verifyOwner(){return __awaiter$4(this,void 0,void 0,function*(){throw Error("NearSnap:verifyOwner is not released yet")})},signAndSendTransactions({transactions:ve}){return __awaiter$4(this,void 0,void 0,function*(){if(ie.log("NearSnap:signAndSendTransactions",{transactions:ve}),le==null)throw new Error("Wallet not signed in");return yield le.executeTransactions(ve)})}}}),icon$4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAADAFBMVEUAAACfYruWaej2ged3PaPfdFS9cO2ynu9dXuSEQrCRS4ZpYOfZYOK/bu2HQ7KGQ7KKa9BnYelfL4plYOhlYOhjYOhlYelsNpZrNpXSYednNJNpNZSngfbgdlXQYuh2aPfWYefRYujddFf4nGNwN5qoh/fDY+ulhffedFWoi/epkfnDYurHY+redFbZd2XcYeWccPSfUszDp/q+qfvfdVT/n1oXFi3hYOXkj+3Hpfjuh+nmYOSeWt3OfO7ek++hWt2zhvbqiuvHifLKf+/KoPbyg+jYlvHKhPHbYebGhPGZhPpaXOLTmvNkYOiBbfvPnfRqYepmS8FfX+ath/eGbfrDifN+afmaW991ZPEiElafh/nReO2ym/q2lvnVYehvYu56Zv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63AfkbAd0CLDjTXkO0mJgcJEF1DRiAJqiM1HJxpE3AItir8rkNyN8I6BYgDTxFJf+7kmFwPqDgInW5LDRe1eZ/5GHj0U4nKtsbK4Nj3FP+fAO4EdAt2I/mQrmLzsbH+O0UeDKOpwGnQRJUWdt2YKpNCnZ5tvybIp/7oEye0ThlwTcjol3/PKx6MulFwYFTCsAK0FlOslFYo8S8cD2S8u2qur9NBn7LfVDORkDn9r5avS2jw0FEODBWCjFcAbHN4PQE8Z80UR9AWa+X07y62SiRcx+UxTH5ms3NFOlyXZcmigjWwQpIsHq6BmcHh/6cV29eHxj7zH0QOB70lxxeQ79lwYnAgZaBT7EqUlTS5hEHiiaft5N4z9A3d41qQXM8PmdxPJ5U+c3dG2/KTiZQss7juaqKFIvStkSxhzt5b8FvZN6Hi+jdRrPg9OvUZIGGmvzNu7BLWQ0XchGfjdv9gMP9DtvAJPWjD5+1tX1/yaEPuN80cQsa6M/jdIrLbzb3yrdLVoNVPBUXM6pARo2wU6x9ye4HV6QqOfQ+/BA0UQu+NtmEDx8awOVP/InwSCjcs2NdpFmWnmeXTOL1OcQPAaAH8w3g4AMuf5WFmIDIVbgNVBOh+qw+78MPQUML5htA+UK4/PXVoIpgEtRYKeq1ea99CGjBfAMoX1n+uauBrIprVNGh57zP5OauoQXzDKB8cMfln4cyEarrD148lT3vw3xIC+YZQPlh9pu5GpgEdeoZ817PBs6CGQZQfvj1n70a6uI6a+WTN3cS0IIXGQD56vDPnwhMgulEWNaVP/TzJwEteMkMgHxl+OdPhLdMgum2f9utQxyAYRgGgCooGS0uD9r/n7dKU2UykMlkc3xPiCPZA1VPwCTgBMqfP8JAqrx8IRJW+f0e8wRr+wlo56wbP1bRC9g+MlCICSg/JSjEnC4U/+2IWTf+/QR1499P0FNCovwetQzF7zczM7MvugDYLi9p2GpHGAAAAABJRU5ErkJggg==";function setupNearSnap({deprecated:v=!1,iconUrl:k=icon$4}={}){return()=>__awaiter$4(this,void 0,void 0,function*(){return{id:"near-snap",type:"injected",init:initNearSnap,metadata:{name:"Near Snap",description:"Metamask Snap for NEAR Protocol",downloadUrl:"https://near-snap.surge.sh",iconUrl:k,deprecated:v,available:!0}}})}var import_is_mobile$3=__toESM(require_is_mobile(),1),_a,_b,_c;function __awaiter$3(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var RAMPER_ENV=(_a={}.NEXT_PUBLIC_RAMPER_ENV)!=null?_a:globalThis.RAMPER_ENV,ENV={LOCAL:"local",PREVIEW:"preview",DEV:"dev",STAGING:"staging",PROD:"prod",VERCEL_PREVIEW_URL:(_b={}.NEXT_PUBLIC_VERCEL_URL)!=null?_b:"",VERCEL_GIT_COMMIT_REF:(_c={}.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF)!=null?_c:""},isDev=()=>RAMPER_ENV===ENV.DEV,isLocal=()=>RAMPER_ENV===ENV.LOCAL,isPreview=()=>RAMPER_ENV===ENV.PREVIEW,isProd=()=>RAMPER_ENV===ENV.PROD,isServer=()=>globalThis.window===void 0,isStaging=()=>RAMPER_ENV===ENV.STAGING,getEnv$1=()=>!isServer()&&window.location.hostname.includes("dev.ramper.xyz")?ENV.DEV:!isServer()&&window.location.hostname.includes("preview.ramper.xyz")?ENV.PREVIEW:!isServer()&&window.location.hostname.includes("staging.ramper.xyz")?ENV.STAGING:isProd()?ENV.PROD:isStaging()?ENV.STAGING:isDev()?ENV.DEV:isPreview()?ENV.PREVIEW:isLocal()?ENV.LOCAL:ENV.PROD,commonjsGlobal$3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function getAugmentedNamespace(v){if(v.__esModule)return v;var k=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(v).forEach(function(ie){var ae=Object.getOwnPropertyDescriptor(v,ie);Object.defineProperty(k,ie,ae.get?ae:{enumerable:!0,get:function(){return v[ie]}})}),k}var uaParser={exports:{}};(function(v,k){(function(ie,ae){var ce="1.0.2",fe="",le="?",ve="function",pe="undefined",ye="object",me="string",Ee="major",cr="model",Br="name",$r="type",Pr="vendor",Or="version",ur="architecture",jr="console",Mr="mobile",Lr="tablet",Vr="smarttv",Gr="wearable",Ur="embedded",Qr=255,vn="Amazon",Yt="Apple",fn="ASUS",Xt="BlackBerry",Qt="Browser",Kr="Chrome",be="Edge",kr="Firefox",xr="Google",Wr="Huawei",Jt="LG",Xr="Microsoft",zr="Motorola",Jr="Opera",Nr="Samsung",Hr="Sony",On="Xiaomi",Gn="Zebra",mn="Facebook",Nn=function(li,Pi){var Ai={};for(var Oi in li)Pi[Oi]&&Pi[Oi].length%2===0?Ai[Oi]=Pi[Oi].concat(li[Oi]):Ai[Oi]=li[Oi];return Ai},In=function(li){for(var Pi={},Ai=0;Ai0?Bt.length===2?typeof Bt[1]==ve?this[Bt[0]]=Bt[1].call(this,Tn):this[Bt[0]]=Bt[1]:Bt.length===3?typeof Bt[1]===ve&&!(Bt[1].exec&&Bt[1].test)?this[Bt[0]]=Tn?Bt[1].call(this,Tn,Bt[2]):ae:this[Bt[0]]=Tn?Tn.replace(Bt[1],Bt[2]):ae:Bt.length===4&&(this[Bt[0]]=Tn?Bt[3].call(this,Tn.replace(Bt[1],Bt[2])):ae):this[Bt]=Tn||ae;Ai+=2}},Qn=function(li,Pi){for(var Ai in Pi)if(typeof Pi[Ai]===ye&&Pi[Ai].length>0){for(var Oi=0;OiQr?pn(to,Qr):to,this},this.setUA(Ai),this};di.VERSION=ce,di.BROWSER=In([Br,Or,Ee]),di.CPU=In([ur]),di.DEVICE=In([cr,Pr,$r,jr,Mr,Vr,Lr,Gr,Ur]),di.ENGINE=di.OS=In([Br,Or]),v.exports&&(k=v.exports=di),k.UAParser=di;var Ci=typeof ie!==pe&&(ie.jQuery||ie.Zepto);if(Ci&&!Ci.ua){var yi=new di;Ci.ua=yi.getResult(),Ci.ua.get=function(){return yi.getUA()},Ci.ua.set=function(li){yi.setUA(li);var Pi=yi.getResult();for(var Ai in Pi)Ci.ua[Ai]=Pi[Ai]}}})(typeof window=="object"?window:commonjsGlobal$3)})(uaParser,uaParser.exports);var getUAParser=()=>new uaParser.exports.UAParser;getUAParser().getBrowser;var slugify={exports:{}};(function(v,k){(function(ie,ae,ce){v.exports=ce(),v.exports.default=ce()})("slugify",commonjsGlobal$3,function(){var ie=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),ae=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function ce(fe,le){if(typeof fe!="string")throw new Error("slugify: string argument expected");le=typeof le=="string"?{replacement:le}:le||{};var ve=ae[le.locale]||{},pe=le.replacement===void 0?"-":le.replacement,ye=le.trim===void 0?!0:le.trim,me=fe.normalize().split("").reduce(function(Ee,cr){var Br=ve[cr]||ie[cr]||cr;return Br===pe&&(Br=" "),Ee+Br.replace(le.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return le.strict&&(me=me.replace(/[^A-Za-z0-9\s]/g,"")),ye&&(me=me.trim()),me=me.replace(/\s+/g,pe),le.lower&&(me=me.toLowerCase()),me}return ce.extend=function(fe){Object.assign(ie,fe)},ce})})(slugify);var getHostname=()=>isServer()?"localhost":window.location.hostname,AUTH_HOST_ENV={local:`http://${getHostname()}:3000`,preview:"https://auth.v1.preview.ramper.xyz",dev:"https://auth.v1.dev.ramper.xyz",staging:"https://auth.v1.staging.ramper.xyz",prod:"https://auth.v1.ramper.xyz"};AUTH_HOST_ENV[getEnv$1()];var SSO_HOST_ENV={local:"https://us-central1-bright-zodiac-339920.cloudfunctions.net",preview:"https://us-central1-bright-zodiac-339920.cloudfunctions.net",dev:"https://us-central1-bright-zodiac-339920.cloudfunctions.net",staging:"https://us-central1-ramper-prod.cloudfunctions.net",prod:"https://us-central1-ramper-prod.cloudfunctions.net"};SSO_HOST_ENV[getEnv$1()];var WS_HOST_ENV={local:"wss://a5wwvzpwt7.execute-api.us-west-2.amazonaws.com/dev",preview:"wss://a5wwvzpwt7.execute-api.us-west-2.amazonaws.com/dev",dev:"wss://a5wwvzpwt7.execute-api.us-west-2.amazonaws.com/dev",staging:"wss://tauokxd7fh.execute-api.us-west-2.amazonaws.com/prod",prod:"wss://tauokxd7fh.execute-api.us-west-2.amazonaws.com/prod"};WS_HOST_ENV[getEnv$1()];var WS_HOST_HTTP_ENV={local:"https://q1otyh6t0j.execute-api.us-west-2.amazonaws.com/dev/v1_0",preview:"https://q1otyh6t0j.execute-api.us-west-2.amazonaws.com/dev/v1_0",dev:"https://q1otyh6t0j.execute-api.us-west-2.amazonaws.com/dev/v1_0",staging:"https://cjbz1h17i7.execute-api.us-west-2.amazonaws.com/prod/v1_0",prod:"https://cjbz1h17i7.execute-api.us-west-2.amazonaws.com/prod/v1_0"};WS_HOST_HTTP_ENV[getEnv$1()];var ANALYTIC_ID_ENV={local:"G-QDW3GW421L",preview:"G-QDW3GW421L",dev:"G-QDW3GW421L",staging:"G-7NRREF51EB",prod:"G-7NRREF51EB"};ANALYTIC_ID_ENV[getEnv$1()];var EXAMPLE_HOST_ENV={local:`http://${getHostname()}:3001`,preview:"https://example.preview.ramper.xyz",dev:"https://example.dev.ramper.xyz",staging:"https://example.staging.ramper.xyz",prod:"https://example.ramper.xyz"};EXAMPLE_HOST_ENV[getEnv$1()];var STATIC_HOST_ENV={local:`http://${getHostname()}:3002`,preview:"https://static.preview.ramper.xyz",dev:"https://static.dev.ramper.xyz",staging:"https://static.staging.ramper.xyz",prod:"https://static.ramper.xyz"};STATIC_HOST_ENV[getEnv$1()];var DOCS_HOST_ENV={local:`http://${getHostname()}:3004`,preview:"https://docs.preview.ramper.xyz",dev:"https://docs.dev.ramper.xyz",staging:"https://docs.staging.ramper.xyz",prod:"https://docs.ramper.xyz"};DOCS_HOST_ENV[getEnv$1()];var JS_HOST_ENV={local:`http://${getHostname()}:3005`,preview:"https://js.preview.ramper.xyz",dev:"https://js.dev.ramper.xyz",staging:"https://js.staging.ramper.xyz",prod:"https://js.ramper.xyz"};JS_HOST_ENV[getEnv$1()];var WALLET_APP_ID_ENV={local:"suyklxmori",preview:"suyklxmori",dev:"suyklxmori",staging:"dtofgevaxu",prod:"dtofgevaxu"};WALLET_APP_ID_ENV[getEnv$1()];var DASHBOARD_HOST_ENV={local:`http://${getHostname()}:3008`,preview:"https://developer.preview.ramper.xyz",dev:"https://developer.dev.ramper.xyz",staging:"https://developer.staging.ramper.xyz",prod:"https://developer.ramper.xyz"};DASHBOARD_HOST_ENV[getEnv$1()];var getNamespace=v=>window[v],cachedPromise,loadScript=(v,k)=>{const ie=document.querySelector(`[src="${v}"]`);if(ie!=null&&cachedPromise!==void 0)return cachedPromise;if(ie!=null&&getNamespace(k)!==void 0)return Promise.resolve(getNamespace(k));const ae=document.createElement("script");return ae.src=v,cachedPromise=new Promise((ce,fe)=>{document.head.appendChild(ae),window.addEventListener(`initialize:${k}`,()=>{getNamespace(k)!==void 0?ce(getNamespace(k)):fe(new Error(`Failed to load script: [${v}]`))})}),cachedPromise},AUTH_PROVIDER={GOOGLE:"google",FACEBOOK:"facebook",APPLE:"apple",TWITTER:"twitter",GITHUB:"github",EMAIL:"email"},THEME={DARK:"dark",LIGHT:"light"},LOGGING_LEVELS={ALL:"ALL",DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN",ERROR:"ERROR"},DEFAULT_LOGGING_LEVEL=LOGGING_LEVELS.DEBUG,NOOP=(v,...k)=>{},ConsoleLogger=class{constructor(v=DEFAULT_LOGGING_LEVEL){this.debug=NOOP,this.info=NOOP,this.warn=NOOP,this.error=NOOP;const k=Object.values(LOGGING_LEVELS).includes(v)?v:DEFAULT_LOGGING_LEVEL;this.error=console.error.bind(console),k!==LOGGING_LEVELS.ERROR&&(this.warn=console.warn.bind(console),k!==LOGGING_LEVELS.WARN&&(this.info=console.info.bind(console),k!==LOGGING_LEVELS.INFO&&(this.debug=console.log.bind(console),LOGGING_LEVELS.DEBUG)))}};if(globalThis.window!==void 0){const v=window.localStorage.getItem("ramper_loggingLevel")||DEFAULT_LOGGING_LEVEL;new ConsoleLogger(v)}function e(v){this.message=v}e.prototype=new Error,e.prototype.name="InvalidCharacterError";typeof window<"u"&&window.atob&&window.atob.bind(window);function n(v){this.message=v}n.prototype=new Error,n.prototype.name="InvalidTokenError";(function(){try{return window?window.Promise:Promise}catch{return null}})();var jwt={exports:{}},__viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);(function(v){var k=require$$0,ie={HS256:"sha256",HS384:"sha384",HS512:"sha512",RS256:"RSA-SHA256"},ae={HS256:"hmac",HS384:"hmac",HS512:"hmac",RS256:"sign"},ce=v.exports;ce.version="0.5.6",ce.decode=function(Br,$r,Pr,Or){if(!Br)throw new Error("No token supplied");var ur=Br.split(".");if(ur.length!==3)throw new Error("Not enough or too many segments");var jr=ur[0],Mr=ur[1],Lr=ur[2],Vr=JSON.parse(pe(jr)),Gr=JSON.parse(pe(Mr));if(!Pr){!Or&&/BEGIN( RSA)? PUBLIC KEY/.test($r.toString())&&(Or="RS256");var Ur=ie[Or||Vr.alg],Qr=ae[Or||Vr.alg];if(!Ur||!Qr)throw new Error("Algorithm not supported");var vn=[jr,Mr].join(".");if(!le(vn,$r,Ur,Qr,Lr))throw new Error("Signature verification failed");if(Gr.nbf&&Date.now()Gr.exp*1e3)throw new Error("Token expired")}return Gr},ce.encode=function(Br,$r,Pr,Or){if(!$r)throw new Error("Require key");Pr||(Pr="HS256");var ur=ie[Pr],jr=ae[Pr];if(!ur||!jr)throw new Error("Algorithm not supported");var Mr={typ:"JWT",alg:Pr};Or&&Or.header&&fe(Mr,Or.header);var Lr=[];return Lr.push(me(JSON.stringify(Mr))),Lr.push(me(JSON.stringify(Br))),Lr.push(ve(Lr.join("."),$r,ur,jr)),Lr.join(".")};function fe(cr,Br){for(var $r in Br)Br.hasOwnProperty($r)&&(cr[$r]=Br[$r])}function le(cr,Br,$r,Pr,Or){if(Pr==="hmac")return Or===ve(cr,Br,$r,Pr);if(Pr=="sign")return k.createVerify($r).update(cr).verify(Br,ye(Or),"base64");throw new Error("Algorithm type not recognized")}function ve(cr,Br,$r,Pr){var Or;if(Pr==="hmac")Or=k.createHmac($r,Br).update(cr).digest("base64");else if(Pr=="sign")Or=k.createSign($r).update(cr).sign(Br,"base64");else throw new Error("Algorithm type not recognized");return Ee(Or)}function pe(cr){return Buffer.from(ye(cr),"base64").toString()}function ye(cr){return cr+=new Array(5-cr.length%4).join("="),cr.replace(/\-/g,"+").replace(/_/g,"/")}function me(cr){return Ee(Buffer.from(cr).toString("base64"))}function Ee(cr){return cr.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}})(jwt);var getEnv=()=>{const v=globalThis.RAMPER_ENV;return v===ENV.PROD?ENV.PROD:v===ENV.STAGING?ENV.STAGING:v===ENV.DEV?ENV.DEV:v===ENV.PREVIEW?ENV.PREVIEW:v===ENV.LOCAL?ENV.LOCAL:ENV.PROD},getScriptURL=()=>`${JS_HOST_ENV[getEnv()]}/v1/near`,loadRamperNear=({src:v})=>isServer()?Promise.resolve({}):loadScript(v,"ramper"),getRamperInstance=()=>globalThis.ramper,init=(...v)=>__awaiter$3(void 0,void 0,void 0,function*(){const k=yield loadRamperNear({src:getScriptURL()});return yield k==null?void 0:k.init(...v),k}),signIn=(...v)=>{var k;return(k=getRamperInstance())===null||k===void 0?void 0:k.signIn(...v)},sendTransaction=(...v)=>{var k;return(k=getRamperInstance())===null||k===void 0?void 0:k.sendTransaction(...v)};function __awaiter2(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAYAAABS3GwHAAAe+0lEQVR42u2dV3ccV7bff7tCRyQiMIAgSIJJ1ChwNGNRWRqF0QTPeHxf/C38KfzkZ38Gey2v67m+9rWX585ao5E0IzETjCLFBBAAAZJgQu7uOuf44dRBg6QCQ8dC/dYCwwHQXVW9/7t27bPPPmKMMaSkNAtj7JeI/QKimzcoH/+S3Nuf4HX3Vr9fB4Jmn3/KOsUYjDGI51nj1prS1cssH/6C8tHPyQwOUvjNf7A/Wyfjh1QAKY3GGOvQPUFE0KUyi+fPsvD3L6hcPo9fWcSPlsm8+rr9ea3B8+p2OKkAUhqC0cY6chFEoHJ/jgcnTjF39AjR5DUCiQhCHwkKSAUyP/mZ/cU6en9IBZBSTwxxmCOIZw15aeoWs0dGmR89jb43S+ArMoUCni4jVDDLy4Q7duJvGmzIIaYCSKk5Lq8iYsMcozT3Lk1w69AZFr69DEsLZDIQFPJ4pozRJTAaBFAR4cg+JAjrHv5AKoCUGrLW8AHKiyVunRln5ug3rExO46mV2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QAInD6tGLiunls5ZcLdZzhd3UJv/ltwO9+H7Bt2Bq+E0xq+Cm1pmEh0PFjmnLZkM0JRlUXmUeVap3Or34d8stf+QwPVxtKrZYrpKTUgboKwBnv/Lzh1KgNf4jLocslWClZw//dvwv57b8N6O9PKzNTGkvdBSACly9pZqYN+bxda1suGQa3enzyacgHv/AZGKjO2kJq+CmNo+4CADh0yGZ/lBK2bhU++jjkk1/6dPdImsNPaSp1E4Bb+fXggeHYEc2uXR5/+IeAd971KRRSw09pDcSY+nTjceHP+Jjm+HHNb34brNbpuO+lYU5Ks/n/VnKP4Bbx7PAAAAAASUVORK5CYII=",setupRamperWalletState=()=>({wallet:window.ramper}),RamperWallet=({metadata:v,store:k,options:ie,logger:ae})=>__awaiter2(void 0,void 0,void 0,function*(){yield init({appName:"Ramper Wallet",authProviders:[AUTH_PROVIDER.GOOGLE,AUTH_PROVIDER.FACEBOOK,AUTH_PROVIDER.TWITTER,AUTH_PROVIDER.APPLE,AUTH_PROVIDER.EMAIL],walletProviders:[],network:ie.network.networkId,theme:THEME.DARK});const ce=setupRamperWalletState(),fe=()=>__awaiter2(void 0,void 0,void 0,function*(){const{wallets:ve}=ce.wallet.getUser(),{publicKey:pe}=ve.near;return pe?[{accountId:pe}]:[]}),le=ve=>__awaiter2(void 0,void 0,void 0,function*(){const pe=yield fe(),{contract:ye}=k.getState();if(!pe.length||!ye)throw new Error("Wallet not signed in");return ve.map(me=>{const Ee=me.actions.map(cr=>createAction(cr));return{receiverId:me.receiverId||ye.contractId,actions:Ee}})});return{signIn(){return __awaiter2(this,void 0,void 0,function*(){const ve=yield signIn();if(ve.method==="cancel"||ve.method==="none")throw new Error("Something went wrong");const pe=yield fe();return pe.length?pe:fe()})},signOut(){return __awaiter2(this,void 0,void 0,function*(){ce.wallet.signOut()})},getAccounts(){return __awaiter2(this,void 0,void 0,function*(){return fe()})},verifyOwner({message:ve}){return __awaiter2(this,void 0,void 0,function*(){throw ae.log("Ramper Wallet:verifyOwner",{message:ve}),new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction({receiverId:ve,actions:pe}){return __awaiter2(this,void 0,void 0,function*(){ae.log("signAndSendTransaction",{receiverId:ve,actions:pe});const{contract:ye}=k.getState();if(!(yield fe()).length||!ye)throw new Error("Wallet not signed in");const Ee=yield le([{receiverId:ve,actions:pe}]);try{const{result:cr}=yield sendTransaction({transactionActions:Ee});if(Object.keys(cr[0]).length===0&&cr[0].constructor===Object)throw new Error;return cr[0]}catch{throw new Error("Failed to send transaction")}})},signAndSendTransactions({transactions:ve}){return __awaiter2(this,void 0,void 0,function*(){ae.log("signAndSendTransactions",{transactions:ve});const pe=yield le(ve);try{const{result:ye}=yield sendTransaction({transactionActions:pe});if(Object.keys(ye[0]).length===0&&ye[0].constructor===Object)throw new Error;return ye}catch{throw new Error("Failed to send transactions")}})}}});function setupRamperWallet({iconUrl:v=icon$3,deprecated:k=!1}={}){return()=>__awaiter2(this,void 0,void 0,function*(){return(0,import_is_mobile$3.isMobile)()?null:{id:"ramper-wallet",type:"injected",metadata:{name:"Ramper Wallet",description:null,iconUrl:v,downloadUrl:"https://docs.ramper.xyz/",deprecated:k,available:!0},init:RamperWallet}})}/*! ***************************************************************************** + */var require_types=__commonJS$1({"node_modules/@near-snap/sdk/build/types.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.NearSnapStatus=void 0;var k;(function(ie){ie[ie.NOT_SUPPORTED=0]="NOT_SUPPORTED",ie[ie.NOT_INSTALLED=1]="NOT_INSTALLED",ie[ie.INSTALLED=2]="INSTALLED"})(k||(v.NearSnapStatus=k={}))}}),require_provider2=__commonJS$1({"node_modules/@near-snap/sdk/build/provider.js"(v){var k=v&&v.__awaiter||function(ae,ce,fe,le){function ve(pe){return pe instanceof fe?pe:new fe(function(ye){ye(pe)})}return new(fe||(fe=Promise))(function(pe,ye){function me(Br){try{cr(le.next(Br))}catch($r){ye($r)}}function Ee(Br){try{cr(le.throw(Br))}catch($r){ye($r)}}function cr(Br){Br.done?pe(Br.value):ve(Br.value).then(me,Ee)}cr((le=le.apply(ae,ce||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0});var ie=class{isSnapsAvailable(){return k(this,void 0,void 0,function*(){try{const ae=window.ethereum,ce=yield ae==null?void 0:ae.request({method:"web3_clientVersion"}),fe=ce==null?void 0:ce.includes("flask");return Boolean(ae&&fe)}catch{return!1}})}getSnaps(){return k(this,void 0,void 0,function*(){return yield window.ethereum.request({method:"wallet_getSnaps"})})}connectSnap(ae,ce={}){return k(this,void 0,void 0,function*(){yield window.ethereum.request({method:"wallet_requestSnaps",params:{[ae]:ce}})})}getSnap(ae,ce){return k(this,void 0,void 0,function*(){try{const fe=yield this.getSnaps();return Object.values(fe).find(le=>le.id===ae&&(!ce||le.version===ce))}catch(fe){console.log("Failed to obtain installed snap",fe);return}})}invokeSnap(ae,ce,fe){return k(this,void 0,void 0,function*(){return yield window.ethereum.request({method:"wallet_invokeSnap",params:{snapId:ae,request:{method:ce,params:fe}}})})}};v.default=ie}}),require_snap=__commonJS$1({"node_modules/@near-snap/sdk/build/snap.js"(v){var k=v&&v.__awaiter||function(le,ve,pe,ye){function me(Ee){return Ee instanceof pe?Ee:new pe(function(cr){cr(Ee)})}return new(pe||(pe=Promise))(function(Ee,cr){function Br(Ar){try{Pr(ye.next(Ar))}catch(ur){cr(ur)}}function $r(Ar){try{Pr(ye.throw(Ar))}catch(ur){cr(ur)}}function Pr(Ar){Ar.done?Ee(Ar.value):me(Ar.value).then(Br,$r)}Pr((ye=ye.apply(le,ve||[])).next())})},ie=v&&v.__importDefault||function(le){return le&&le.__esModule?le:{default:le}};Object.defineProperty(v,"__esModule",{value:!0});var ae=ie(require_provider2()),ce=require_types(),fe=class{constructor(le){var ve,pe;this.provider=(ve=le==null?void 0:le.provider)!==null&&ve!==void 0?ve:new ae.default,this.id=(pe=le==null?void 0:le.id)!==null&&pe!==void 0?pe:"npm:@near-snap/plugin"}get isLocal(){return this.id.startsWith("local:")}getStatus(){return k(this,void 0,void 0,function*(){return(yield this.provider.isSnapsAvailable())?(yield this.provider.getSnap(this.id))?ce.NearSnapStatus.INSTALLED:ce.NearSnapStatus.NOT_INSTALLED:ce.NearSnapStatus.NOT_SUPPORTED})}install(){return k(this,void 0,void 0,function*(){yield this.provider.connectSnap(this.id)})}getAccount(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_getAccount",{network:le})})}connect(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_connect",le)})}disconnect(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_disconnect",le)})}getPermissions(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_getPermissions",{network:le})})}needActivate(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_needActivate",{network:le})})}signMessage(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_signMessage",le)})}signDelegatedTransactions(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_signDelegate",le)})}signTransactions(le){return k(this,void 0,void 0,function*(){return yield this.provider.invokeSnap(this.id,"near_signTransactions",le)})}};v.default=fe}}),require_errors=__commonJS$1({"node_modules/@near-snap/sdk/build/errors.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.TransactionInListError=v.TransactionSignRejected=void 0;var k=class extends Error{constructor(ae){super("Transaction was rejected by Metamask user"),this.name="TransactionSignRejected",this.trx=ae}};v.TransactionSignRejected=k;var ie=class extends Error{constructor(ae,ce){super(ce instanceof Error?ce.message:String(ce)),this.name="ListOfTransactionsError",this.completed=ae,this.reason=ce}};v.TransactionInListError=ie}}),require_fs=__commonJS$1({"browser-external:fs"(v,k){k.exports={}}}),require_path=__commonJS$1({"browser-external:path"(v,k){k.exports={}}}),require_unencrypted_file_system_keystore=__commonJS$1({"node_modules/@near-js/keystores-node/lib/unencrypted_file_system_keystore.js"(v){var k=v&&v.__awaiter||function(Mr,Lr,Vr,Gr){function Ur(Qr){return Qr instanceof Vr?Qr:new Vr(function(hn){hn(Qr)})}return new(Vr||(Vr=Promise))(function(Qr,hn){function Yt(Xt){try{Qt(Gr.next(Xt))}catch(Kr){hn(Kr)}}function fn(Xt){try{Qt(Gr.throw(Xt))}catch(Kr){hn(Kr)}}function Qt(Xt){Xt.done?Qr(Xt.value):Ur(Xt.value).then(Yt,fn)}Qt((Gr=Gr.apply(Mr,Lr||[])).next())})},ie=v&&v.__importDefault||function(Mr){return Mr&&Mr.__esModule?Mr:{default:Mr}};Object.defineProperty(v,"__esModule",{value:!0}),v.UnencryptedFileSystemKeyStore=v.readKeyFile=void 0;var ae=require_lib3(),ce=require_lib4$1(),fe=ie(require_fs()),le=ie(require_path()),ve=require_util(),pe=Mr=>Mr?(0,ve.promisify)(Mr):()=>{throw new Error("Trying to use unimplemented function. `fs` module not available in web build?")},ye=pe(fe.default.exists),me=pe(fe.default.readFile),Ee=pe(fe.default.writeFile),cr=pe(fe.default.unlink),Br=pe(fe.default.readdir),$r=pe(fe.default.mkdir);function Pr(Mr){return k(this,void 0,void 0,function*(){const Lr=yield me(Mr);return JSON.parse(Lr.toString())})}function Ar(Mr){return k(this,void 0,void 0,function*(){try{yield $r(Mr,{recursive:!0})}catch(Lr){if(Lr.code!=="EEXIST")throw Lr}})}function ur(Mr){return k(this,void 0,void 0,function*(){const Lr=yield Pr(Mr);let Vr=Lr.private_key;return!Vr&&Lr.secret_key&&(Vr=Lr.secret_key),[Lr.account_id,ae.KeyPair.fromString(Vr)]})}v.readKeyFile=ur;var jr=class extends ce.KeyStore{constructor(Mr){super(),this.keyDir=le.default.resolve(Mr)}setKey(Mr,Lr,Vr){return k(this,void 0,void 0,function*(){yield Ar(`${this.keyDir}/${Mr}`);const Gr={account_id:Lr,public_key:Vr.getPublicKey().toString(),private_key:Vr.toString()};yield Ee(this.getKeyFilePath(Mr,Lr),JSON.stringify(Gr),{mode:384})})}getKey(Mr,Lr){return k(this,void 0,void 0,function*(){return(yield ye(this.getKeyFilePath(Mr,Lr)))?(yield ur(this.getKeyFilePath(Mr,Lr)))[1]:null})}removeKey(Mr,Lr){return k(this,void 0,void 0,function*(){(yield ye(this.getKeyFilePath(Mr,Lr)))&&(yield cr(this.getKeyFilePath(Mr,Lr)))})}clear(){return k(this,void 0,void 0,function*(){for(const Mr of yield this.getNetworks())for(const Lr of yield this.getAccounts(Mr))yield this.removeKey(Mr,Lr)})}getKeyFilePath(Mr,Lr){return`${this.keyDir}/${Mr}/${Lr}.json`}getNetworks(){return k(this,void 0,void 0,function*(){const Mr=yield Br(this.keyDir),Lr=new Array;return Mr.forEach(Vr=>{Lr.push(Vr)}),Lr})}getAccounts(Mr){return k(this,void 0,void 0,function*(){return(yield ye(`${this.keyDir}/${Mr}`))?(yield Br(`${this.keyDir}/${Mr}`)).filter(Vr=>Vr.endsWith(".json")).map(Vr=>Vr.replace(/.json$/,"")):[]})}toString(){return`UnencryptedFileSystemKeyStore(${this.keyDir})`}};v.UnencryptedFileSystemKeyStore=jr}}),require_lib4=__commonJS$1({"node_modules/@near-js/keystores-node/lib/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.UnencryptedFileSystemKeyStore=v.readKeyFile=void 0;var k=require_unencrypted_file_system_keystore();Object.defineProperty(v,"readKeyFile",{enumerable:!0,get:function(){return k.readKeyFile}}),Object.defineProperty(v,"UnencryptedFileSystemKeyStore",{enumerable:!0,get:function(){return k.UnencryptedFileSystemKeyStore}})}}),require_unencrypted_file_system_keystore2=__commonJS$1({"node_modules/near-api-js/lib/key_stores/unencrypted_file_system_keystore.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.UnencryptedFileSystemKeyStore=v.readKeyFile=void 0;var k=require_lib4();Object.defineProperty(v,"readKeyFile",{enumerable:!0,get:function(){return k.readKeyFile}}),Object.defineProperty(v,"UnencryptedFileSystemKeyStore",{enumerable:!0,get:function(){return k.UnencryptedFileSystemKeyStore}})}}),require_key_stores=__commonJS$1({"node_modules/near-api-js/lib/key_stores/index.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.MergeKeyStore=v.UnencryptedFileSystemKeyStore=v.BrowserLocalStorageKeyStore=v.InMemoryKeyStore=v.KeyStore=void 0;var k=require_keystore2();Object.defineProperty(v,"KeyStore",{enumerable:!0,get:function(){return k.KeyStore}});var ie=require_in_memory_key_store2();Object.defineProperty(v,"InMemoryKeyStore",{enumerable:!0,get:function(){return ie.InMemoryKeyStore}});var ae=require_browser_local_storage_key_store2();Object.defineProperty(v,"BrowserLocalStorageKeyStore",{enumerable:!0,get:function(){return ae.BrowserLocalStorageKeyStore}});var ce=require_unencrypted_file_system_keystore2();Object.defineProperty(v,"UnencryptedFileSystemKeyStore",{enumerable:!0,get:function(){return ce.UnencryptedFileSystemKeyStore}});var fe=require_merge_key_store2();Object.defineProperty(v,"MergeKeyStore",{enumerable:!0,get:function(){return fe.MergeKeyStore}})}}),require_waitTransaction=__commonJS$1({"node_modules/@near-snap/sdk/build/utils/waitTransaction.js"(v){var k=v&&v.__awaiter||function(fe,le,ve,pe){function ye(me){return me instanceof ve?me:new ve(function(Ee){Ee(me)})}return new(ve||(ve=Promise))(function(me,Ee){function cr(Pr){try{$r(pe.next(Pr))}catch(Ar){Ee(Ar)}}function Br(Pr){try{$r(pe.throw(Pr))}catch(Ar){Ee(Ar)}}function $r(Pr){Pr.done?me(Pr.value):ye(Pr.value).then(cr,Br)}$r((pe=pe.apply(fe,le||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.waitTransactionResult=v.wait=void 0;var ie=require_provider4(),ae=fe=>new Promise(le=>setTimeout(le,fe));v.wait=ae;var ce=(fe,le,ve)=>k(void 0,void 0,void 0,function*(){yield(0,v.wait)(2e3);let pe;try{pe=yield ve.txStatus(fe,le)}catch{return yield(0,v.waitTransactionResult)(fe,le,ve)}const ye=[],me=pe.transaction_outcome.outcome,Ee=pe.receipts_outcome.reduce(($r,Pr)=>($r[Pr.id]=Pr.outcome,$r),{}),cr=$r=>$r.some(Pr=>{if(!Ee[Pr])return!1;const{status:Ar}=Ee[Pr];return typeof Ar=="string"?(Ar===ie.ExecutionStatusBasic.Failure&&ye.push(Ar),!1):Ar.Failure?(ye.push(Ar.Failure),!1):typeof Ar.SuccessValue=="string"&&Ee[Pr].receipt_ids.length===0?!0:cr(Ee[Pr].receipt_ids)}),Br=cr(me.receipt_ids);if(ye.length>0)throw Error(JSON.stringify(ye,null,2));return Br?pe:yield(0,v.waitTransactionResult)(fe,le,ve)});v.waitTransactionResult=ce}}),require_convertAction=__commonJS$1({"node_modules/@near-snap/sdk/build/utils/convertAction.js"(v){Object.defineProperty(v,"__esModule",{value:!0}),v.convertAction=v.TGAS=void 0,v.TGAS=Math.pow(10,12);var k=ae=>{try{return JSON.parse(Buffer.from(ae).toString("utf8"))}catch{return Array.from(ae)}},ie=ae=>{var ce,fe,le,ve,pe,ye;if(ae.addKey){const{accessKey:me,publicKey:Ee}=ae.addKey;if(me.permission.fullAccess)return{type:"AddKey",params:{accessKey:{permission:"FullAccess"},publicKey:Ee.toString()}};if(me.permission.functionCall){const cr=me.permission.functionCall;return{type:"AddKey",params:{publicKey:Ee.toString(),accessKey:{permission:{receiverId:cr.receiverId,methodNames:cr.methodNames,allowance:(ce=cr.allowance)===null||ce===void 0?void 0:ce.toString(10)}}}}}}if(ae.createAccount)return{type:"CreateAccount"};if(ae.deleteAccount)return{type:"DeleteAccount",params:{beneficiaryId:ae.deleteAccount.beneficiaryId}};if(ae.deleteKey)return{type:"DeleteKey",params:{publicKey:ae.deleteKey.publicKey.toString()}};if(ae.deployContract)return{type:"DeployContract",params:{code:ae.deployContract.code}};if(ae.functionCall)return{type:"FunctionCall",params:{args:k(ae.functionCall.args),deposit:(le=(fe=ae.functionCall.deposit)===null||fe===void 0?void 0:fe.toString())!==null&&le!==void 0?le:"0",gas:(pe=(ve=ae.functionCall.gas)===null||ve===void 0?void 0:ve.toString())!==null&&pe!==void 0?pe:String(300*v.TGAS),methodName:(ye=ae.functionCall.methodName)!==null&&ye!==void 0?ye:""}};if(ae.transfer)return{type:"Transfer",params:{deposit:ae.transfer.deposit.toString()}};if(ae.stake)return{type:"Stake",params:{publicKey:ae.stake.publicKey.toString(),stake:ae.stake.stake.toString()}};throw Error(`Action ${ae.enum} is not supported`)};v.convertAction=ie}}),require_createAction=__commonJS$1({"node_modules/@near-snap/sdk/build/utils/createAction.js"(v){var k=v&&v.__createBinding||(Object.create?function(ye,me,Ee,cr){cr===void 0&&(cr=Ee);var Br=Object.getOwnPropertyDescriptor(me,Ee);(!Br||("get"in Br?!me.__esModule:Br.writable||Br.configurable))&&(Br={enumerable:!0,get:function(){return me[Ee]}}),Object.defineProperty(ye,cr,Br)}:function(ye,me,Ee,cr){cr===void 0&&(cr=Ee),ye[cr]=me[Ee]}),ie=v&&v.__setModuleDefault||(Object.create?function(ye,me){Object.defineProperty(ye,"default",{enumerable:!0,value:me})}:function(ye,me){ye.default=me}),ae=v&&v.__importStar||function(ye){if(ye&&ye.__esModule)return ye;var me={};if(ye!=null)for(var Ee in ye)Ee!=="default"&&Object.prototype.hasOwnProperty.call(ye,Ee)&&k(me,ye,Ee);return ie(me,ye),me};Object.defineProperty(v,"__esModule",{value:!0}),v.createAction=void 0;var ce=require_bn$1(),fe=ae(require_transaction$1()),le=require_utils$4(),ve=ye=>{if(ye==="FullAccess")return fe.fullAccessKey();const{receiverId:me,methodNames:Ee=[]}=ye,cr=ye.allowance?new ce.BN(ye.allowance):void 0;return fe.functionCallAccessKey(me,Ee,cr)},pe=ye=>{switch(ye.type){case"CreateAccount":return fe.createAccount();case"DeployContract":{const{code:me}=ye.params;return fe.deployContract(me)}case"FunctionCall":{const{methodName:me,args:Ee,gas:cr,deposit:Br}=ye.params;return fe.functionCall(me,Ee,new ce.BN(cr),new ce.BN(Br))}case"Transfer":{const{deposit:me}=ye.params;return fe.transfer(new ce.BN(me))}case"Stake":{const{stake:me,publicKey:Ee}=ye.params;return fe.stake(new ce.BN(me),le.PublicKey.from(Ee))}case"AddKey":{const{publicKey:me,accessKey:Ee}=ye.params;return fe.addKey(le.PublicKey.from(me),ve(Ee.permission))}case"DeleteKey":{const{publicKey:me}=ye.params;return fe.deleteKey(le.PublicKey.from(me))}case"DeleteAccount":{const{beneficiaryId:me}=ye.params;return fe.deleteAccount(me)}default:throw new Error("Invalid action type")}};v.createAction=pe}}),require_nep0413=__commonJS$1({"node_modules/@near-snap/sdk/build/utils/nep0413.js"(v){var k=v&&v.__importDefault||function(ve){return ve&&ve.__esModule?ve:{default:ve}};Object.defineProperty(v,"__esModule",{value:!0}),v.verifySignature=v.authPayloadSchema=v.AuthPayload=void 0;var ie=k(require_crypto()),ae=require_utils$4(),ce=require_serialize$1(),fe=class{constructor({message:ve,nonce:pe,recipient:ye,callbackUrl:me}){this.tag=2147484061,this.message=ve,this.nonce=pe,this.recipient=ye,me&&(this.callbackUrl=me)}};v.AuthPayload=fe,v.authPayloadSchema=new Map([[fe,{kind:"struct",fields:[["tag","u32"],["message","string"],["nonce",[32]],["recipient","string"],["callbackUrl",{kind:"option",type:"string"}]]}]]);function le(ve,pe){const ye=new fe(ve),me=(0,ce.serialize)(v.authPayloadSchema,ye),Ee=ie.default.createHash("sha256"),cr=Uint8Array.from(Ee.update(me).digest()),Br=new Uint8Array(Buffer.from(pe.signature,"base64"));return ae.PublicKey.from(pe.publicKey).verify(cr,Br)}v.verifySignature=le}}),require_delegate=__commonJS$1({"node_modules/@near-snap/sdk/build/delegate.js"(v){var k=v&&v.__awaiter||function(ve,pe,ye,me){function Ee(cr){return cr instanceof ye?cr:new ye(function(Br){Br(cr)})}return new(ye||(ye=Promise))(function(cr,Br){function $r(ur){try{Ar(me.next(ur))}catch(jr){Br(jr)}}function Pr(ur){try{Ar(me.throw(ur))}catch(jr){Br(jr)}}function Ar(ur){ur.done?cr(ur.value):Ee(ur.value).then($r,Pr)}Ar((me=me.apply(ve,pe||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0}),v.HEREDelegateProvider=v.DelegateRequestError=v.DelegateNotAllowed=void 0;var ie=require_serialize$1(),ae=require_browser_index2$1(),ce=class extends Error{};v.DelegateNotAllowed=ce;var fe=class extends Error{};v.DelegateRequestError=fe;var le=class{constructor(){this.endpoint="https://api.herewallet.app/api/v1",this.payer="HERE Wallet"}activateAccount(ve,pe,ye){return k(this,void 0,void 0,function*(){yield fetch(`${this.endpoint}/user/create_near_username`,{method:"POST",body:JSON.stringify({near_account_id:ve,device_id:"metamask",public_key:pe,sign:""}),headers:{Network:ye}})})}isCanDelegate(ve,pe="mainnet"){return k(this,void 0,void 0,function*(){if(pe!=="mainnet")return!1;const ye=Buffer.from(ae.transactions.encodeDelegateAction(ve)).toString("base64"),me=yield fetch(`${this.endpoint}/transactions/is_delegate`,{body:JSON.stringify({transaction:ye}),method:"POST"});if(!me.ok)throw new fe(yield me.text());const{allowed:Ee}=yield me.json();return Ee})}sendDelegate(ve,pe="mainnet"){return k(this,void 0,void 0,function*(){if(pe!=="mainnet")throw new ce;const ye=Buffer.from(ae.transactions.encodeDelegateAction(ve.delegateAction)).toString("base64"),me=yield fetch(`${this.endpoint}/transactions/call_delegate`,{method:"POST",body:JSON.stringify({signature:(0,ie.base_encode)(ve.signature.data),transaction:ye})});if(!me.ok)throw new fe(yield me.text());const{hash:Ee}=yield me.json();return Ee})}};v.HEREDelegateProvider=le}}),require_account=__commonJS$1({"node_modules/@near-snap/sdk/build/account.js"(v){var k=v&&v.__createBinding||(Object.create?function(Yt,fn,Qt,Xt){Xt===void 0&&(Xt=Qt);var Kr=Object.getOwnPropertyDescriptor(fn,Qt);(!Kr||("get"in Kr?!fn.__esModule:Kr.writable||Kr.configurable))&&(Kr={enumerable:!0,get:function(){return fn[Qt]}}),Object.defineProperty(Yt,Xt,Kr)}:function(Yt,fn,Qt,Xt){Xt===void 0&&(Xt=Qt),Yt[Xt]=fn[Qt]}),ie=v&&v.__setModuleDefault||(Object.create?function(Yt,fn){Object.defineProperty(Yt,"default",{enumerable:!0,value:fn})}:function(Yt,fn){Yt.default=fn}),ae=v&&v.__importStar||function(Yt){if(Yt&&Yt.__esModule)return Yt;var fn={};if(Yt!=null)for(var Qt in Yt)Qt!=="default"&&Object.prototype.hasOwnProperty.call(Yt,Qt)&&k(fn,Yt,Qt);return ie(fn,Yt),fn},ce=v&&v.__awaiter||function(Yt,fn,Qt,Xt){function Kr(be){return be instanceof Qt?be:new Qt(function(kr){kr(be)})}return new(Qt||(Qt=Promise))(function(be,kr){function xr(Xr){try{Jt(Xt.next(Xr))}catch(zr){kr(zr)}}function Wr(Xr){try{Jt(Xt.throw(Xr))}catch(zr){kr(zr)}}function Jt(Xr){Xr.done?be(Xr.value):Kr(Xr.value).then(xr,Wr)}Jt((Xt=Xt.apply(Yt,fn||[])).next())})},fe=v&&v.__importDefault||function(Yt){return Yt&&Yt.__esModule?Yt:{default:Yt}};Object.defineProperty(v,"__esModule",{value:!0});var le=fe(require_crypto()),ve=require_lib7(),pe=require_browser_index2$1(),ye=require_key_stores(),me=require_providers$1(),Ee=require_serialize$1(),cr=require_transaction$1(),Br=require_key_pair2(),$r=require_utils$4(),Pr=require_bn$1(),Ar=require_waitTransaction(),ur=require_convertAction(),jr=require_createAction(),Mr=ae(require_nep0413()),Lr=require_errors(),Vr=require_types(),Gr=fe(require_snap()),Ur=require_delegate(),Qr={mainnet:"https://rpc.mainnet.near.org",testnet:"https://rpc.testnet.near.org"},hn=class extends pe.Account{constructor(Yt){var fn,Qt;super({networkId:Yt.network,jsvmAccountId:`jsvm.${Yt.network}`,signer:new pe.InMemorySigner(new ye.InMemoryKeyStore),provider:new me.JsonRpcProvider({url:Qr[Yt.network]})},Yt.accountId),this.publicKey=Yt.publicKey,this.snap=(fn=Yt.snap)!==null&&fn!==void 0?fn:new Gr.default,this.delegateProvider=(Qt=Yt.delegateProvider)!==null&&Qt!==void 0?Qt:new Ur.HEREDelegateProvider}get network(){return this.connection.networkId}connect(Yt,fn=[]){return ce(this,void 0,void 0,function*(){return yield this.snap.connect({network:this.network,contractId:Yt,methods:fn})})}disconnect(){return ce(this,void 0,void 0,function*(){return yield this.snap.disconnect({network:this.network})})}authenticate(Yt,fn){return ce(this,void 0,void 0,function*(){const Qt=le.default.randomBytes(32),Xt={message:fn,recipient:Yt,nonce:Qt,network:this.network},Kr=yield this.signMessage(Xt);if(!Mr.verifySignature(Xt,Kr))throw Error("Signature is incorrect");if(!(yield this.getAccessKeys()).some(Wr=>Wr.public_key===Kr.publicKey&&Wr.access_key.permission==="FullAccess"))throw Error("Signer public key is not full access");return Kr})}signMessage(Yt){return ce(this,void 0,void 0,function*(){const fn=yield this.snap.signMessage({message:Yt.message,nonce:Array.from(Yt.nonce),recipient:Yt.recipient,network:this.network});if(!fn)throw Error("Signed result is undefined");const{accountId:Qt,publicKey:Xt,signature:Kr}=fn;if(!Qt||!Xt||!Kr)throw Error("Signed result is undefined");return{accountId:Qt,publicKey:Xt,signature:Kr}})}signTransaction(Yt,fn){return ce(this,void 0,void 0,function*(){const Qt=yield this.getLastNonce(),{total:Xt}=yield this.getAccountBalance(),Kr=yield this.snap.signTransactions({network:this.connection.networkId,hintBalance:Xt,transactions:[{recentBlockHash:Qt.block_hash,nonce:new Pr.BN(Qt.nonce).iaddn(1).toNumber(),actions:fn.map(ur.convertAction),receiverId:Yt}]});if(!(Kr!=null&&Kr[0]))throw Error("Access denided");return[(0,Ee.base_decode)(Kr[0][0]),cr.SignedTransaction.decode((0,Ee.base_decode)(Kr[0][1]))]})}activateIfNeeded(){var Yt;return ce(this,void 0,void 0,function*(){try{yield this.getLastNonce()}catch{if(!this.delegateProvider){yield this.snap.needActivate(this.network);return}try{yield(Yt=this.delegateProvider)===null||Yt===void 0?void 0:Yt.activateAccount(this.accountId,this.publicKey.toString(),this.network),yield(0,Ar.wait)(1e3)}catch{yield this.snap.needActivate(this.network)}}})}getLastNonce(){return ce(this,void 0,void 0,function*(){return yield this.connection.provider.query({request_type:"view_access_key",public_key:this.publicKey.toString(),account_id:this.accountId,finality:"final"})})}signedDelegate({actions:Yt,blockHeightTtl:fn,receiverId:Qt,payer:Xt}){return ce(this,void 0,void 0,function*(){const Kr=yield this.getLastNonce(),be=(0,ve.buildDelegateAction)({maxBlockHeight:new Pr.BN(Kr.block_height).add(new Pr.BN(fn)),nonce:new Pr.BN(Kr.nonce).add(new Pr.BN(1)),publicKey:this.publicKey,senderId:this.accountId,receiverId:Qt,actions:Yt}),{total:kr}=yield this.getAccountBalance(),xr=yield this.snap.signDelegatedTransactions({payer:Xt,hintBalance:kr,network:this.connection.networkId,delegateAction:{maxBlockHeight:be.maxBlockHeight.toString(),actions:be.actions.map(ur.convertAction),publicKey:be.publicKey.toString(),nonce:be.nonce.toString(),receiverId:be.receiverId,senderId:be.senderId}});if(!(xr!=null&&xr.signature)||!(xr!=null&&xr.transaction))throw Error("Access denied");return{delegateAction:be,signature:{keyType:Br.KeyType.ED25519,data:(0,Ee.base_decode)(xr.signature)}}})}signAndSendTransaction({receiverId:Yt,actions:fn}){return ce(this,void 0,void 0,function*(){return(yield this.executeTransactions([{actions:fn.map(ur.convertAction),receiverId:Yt}]))[0]})}buildDelegateAction(Yt){return ce(this,void 0,void 0,function*(){if(!this.delegateProvider)throw new Ur.DelegateNotAllowed;if(Yt instanceof ve.DelegateAction){const be=this.connection.networkId,kr=yield this.delegateProvider.isCanDelegate(Yt,be);return{action:Yt,allowed:kr}}const fn=yield this.getLastNonce(),Qt=(0,ve.buildDelegateAction)({actions:Yt.actions.map(jr.createAction),maxBlockHeight:new Pr.BN(fn.block_height).add(new Pr.BN(100)),nonce:new Pr.BN(fn.nonce).add(new Pr.BN(1)),publicKey:this.publicKey,senderId:this.accountId,receiverId:Yt.receiverId}),Xt=this.connection.networkId,Kr=yield this.delegateProvider.isCanDelegate(Qt,Xt);return{action:Qt,allowed:Kr}})}executeDelegate(Yt){return ce(this,void 0,void 0,function*(){if(!this.delegateProvider)throw new Ur.DelegateNotAllowed;const{action:fn,allowed:Qt}=yield this.buildDelegateAction(Yt);if(!Qt){const xr=`Delegated transaction is now allowed by ${this.delegateProvider.payer}. Try other DelegateProvider`;throw new Ur.DelegateNotAllowed(xr)}const Xt=yield this.signedDelegate({payer:this.delegateProvider.payer,actions:fn.actions,receiverId:Yt.receiverId,blockHeightTtl:100}),{provider:Kr,networkId:be}=this.connection,kr=yield this.delegateProvider.sendDelegate(Xt,be);return yield(0,Ar.waitTransactionResult)(kr,this.accountId,Kr)})}executeTransaction(Yt){return ce(this,void 0,void 0,function*(){try{if(Yt.disableDelegate)throw new Ur.DelegateNotAllowed;return yield this.executeDelegate(Yt)}catch(fn){if(fn instanceof Ur.DelegateNotAllowed||fn instanceof Ur.DelegateRequestError)return(yield this.executeTransactions([Yt]))[0];throw fn}})}executeTransactions(Yt){return ce(this,void 0,void 0,function*(){const fn=yield this.getLastNonce(),{total:Qt}=yield this.getAccountBalance(),Xt=yield this.snap.signTransactions({hintBalance:Qt,network:this.connection.networkId,transactions:Yt.map((be,kr)=>Object.assign({nonce:new Pr.BN(fn.nonce).iaddn(kr+1).toNumber(),recentBlockHash:fn.block_hash},be))});if(Xt==null)throw new Lr.TransactionSignRejected;const Kr=[];Xt==null||Xt.forEach((be,kr)=>{if(be==null)throw new Lr.TransactionSignRejected(Yt[kr])});try{for(const be of Xt){const kr=be,xr=cr.SignedTransaction.decode(Buffer.from(kr[1],"hex"));Kr.push(yield this.connection.provider.sendTransaction(xr))}}catch(be){throw new Lr.TransactionInListError(Kr,be)}return Kr})}static restore({network:Yt,delegateProvider:fn,snap:Qt=new Gr.default}){return ce(this,void 0,void 0,function*(){const Xt=yield Qt.getAccount(Yt).catch(()=>null);if(!(Xt!=null&&Xt.accountId)||!(Xt!=null&&Xt.publicKey))return null;const Kr=new hn({publicKey:$r.PublicKey.fromString(Xt.publicKey),accountId:Xt.accountId,delegateProvider:fn,network:Yt,snap:Qt});return yield Kr.activateIfNeeded(),Kr})}static connect({snap:Yt=new Gr.default,delegateProvider:fn,contractId:Qt,methods:Xt,network:Kr}){return ce(this,void 0,void 0,function*(){const be=yield Yt.getStatus();if(be===Vr.NearSnapStatus.NOT_SUPPORTED)throw Error("You need install Metamask Flask");be===Vr.NearSnapStatus.NOT_INSTALLED&&(yield Yt.install());const kr=yield Yt.connect({contractId:Qt,methods:Xt,network:Kr});if(!(kr!=null&&kr.accountId))throw Error("Metamask Near Snap did not return account id");if(!(kr!=null&&kr.publicKey))throw Error("Metamask Near Snap did not return public key");const xr=new hn({delegateProvider:fn,publicKey:$r.PublicKey.fromString(kr.publicKey),accountId:kr.accountId,network:Kr,snap:Yt});return yield xr.activateIfNeeded(),xr})}};v.default=hn}}),require_build=__commonJS$1({"node_modules/@near-snap/sdk/build/index.js"(v){var k=v&&v.__createBinding||(Object.create?function(pe,ye,me,Ee){Ee===void 0&&(Ee=me);var cr=Object.getOwnPropertyDescriptor(ye,me);(!cr||("get"in cr?!ye.__esModule:cr.writable||cr.configurable))&&(cr={enumerable:!0,get:function(){return ye[me]}}),Object.defineProperty(pe,Ee,cr)}:function(pe,ye,me,Ee){Ee===void 0&&(Ee=me),pe[Ee]=ye[me]}),ie=v&&v.__exportStar||function(pe,ye){for(var me in pe)me!=="default"&&!Object.prototype.hasOwnProperty.call(ye,me)&&k(ye,pe,me)},ae=v&&v.__importDefault||function(pe){return pe&&pe.__esModule?pe:{default:pe}};Object.defineProperty(v,"__esModule",{value:!0}),v.NearSnapAccount=v.TransactionSignRejected=v.TransactionInListError=v.NearSnapProvider=v.NearSnap=void 0,ie(require_types(),v);var ce=require_snap();Object.defineProperty(v,"NearSnap",{enumerable:!0,get:function(){return ae(ce).default}});var fe=require_provider2();Object.defineProperty(v,"NearSnapProvider",{enumerable:!0,get:function(){return ae(fe).default}});var le=require_errors();Object.defineProperty(v,"TransactionInListError",{enumerable:!0,get:function(){return le.TransactionInListError}}),Object.defineProperty(v,"TransactionSignRejected",{enumerable:!0,get:function(){return le.TransactionSignRejected}});var ve=require_account();Object.defineProperty(v,"NearSnapAccount",{enumerable:!0,get:function(){return ae(ve).default}})}}),import_sdk=__toESM(require_build(),1);function __awaiter$4(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var commonjsGlobal$4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$3=function(v){return v&&v.Math==Math&&v},global$a$2=check$3(typeof globalThis=="object"&&globalThis)||check$3(typeof window=="object"&&window)||check$3(typeof self=="object"&&self)||check$3(typeof commonjsGlobal$4=="object"&&commonjsGlobal$4)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$2={},fails$9$2=function(v){try{return!!v()}catch{return!0}},fails$8$2=fails$9$2,descriptors$3=!fails$8$2(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$7$3=fails$9$2,functionBindNative$3=!fails$7$3(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$1$3=functionBindNative$3,call$5$2=Function.prototype.call,functionCall$3=NATIVE_BIND$1$3?call$5$2.bind(call$5$2):function(){return call$5$2.apply(call$5$2,arguments)},objectPropertyIsEnumerable$2={},$propertyIsEnumerable$2={}.propertyIsEnumerable,getOwnPropertyDescriptor$1$2=Object.getOwnPropertyDescriptor,NASHORN_BUG$2=getOwnPropertyDescriptor$1$2&&!$propertyIsEnumerable$2.call({1:2},1);objectPropertyIsEnumerable$2.f=NASHORN_BUG$2?function v(k){var ie=getOwnPropertyDescriptor$1$2(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$2;var createPropertyDescriptor$2$2=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$6=functionBindNative$3,FunctionPrototype$1$3=Function.prototype,bind$8=FunctionPrototype$1$3.bind,call$4$3=FunctionPrototype$1$3.call,uncurryThis$a$2=NATIVE_BIND$6&&bind$8.bind(call$4$3,call$4$3),functionUncurryThis$3=NATIVE_BIND$6?function(v){return v&&uncurryThis$a$2(v)}:function(v){return v&&function(){return call$4$3.apply(v,arguments)}},uncurryThis$9$2=functionUncurryThis$3,toString$1$3=uncurryThis$9$2({}.toString),stringSlice$3=uncurryThis$9$2("".slice),classofRaw$4=function(v){return stringSlice$3(toString$1$3(v),8,-1)},uncurryThis$8$2=functionUncurryThis$3,fails$6$3=fails$9$2,classof$b=classofRaw$4,$Object$2$3=Object,split$2=uncurryThis$8$2("".split),indexedObject$2=fails$6$3(function(){return!$Object$2$3("z").propertyIsEnumerable(0)})?function(v){return classof$b(v)=="String"?split$2(v,""):$Object$2$3(v)}:$Object$2$3,$TypeError$5$3=TypeError,requireObjectCoercible$2$2=function(v){if(v==null)throw $TypeError$5$3("Can't call method on "+v);return v},IndexedObject$1$1=indexedObject$2,requireObjectCoercible$1$3=requireObjectCoercible$2$2,toIndexedObject$3$2=function(v){return IndexedObject$1$1(requireObjectCoercible$1$3(v))},isCallable$a$3=function(v){return typeof v=="function"},isCallable$9$3=isCallable$a$3,isObject$5$3=function(v){return typeof v=="object"?v!==null:isCallable$9$3(v)},global$9$3=global$a$2,isCallable$8$3=isCallable$a$3,aFunction$3=function(v){return isCallable$8$3(v)?v:void 0},getBuiltIn$3$2=function(v,k){return arguments.length<2?aFunction$3(global$9$3[v]):global$9$3[v]&&global$9$3[v][k]},uncurryThis$7$2=functionUncurryThis$3,objectIsPrototypeOf$3=uncurryThis$7$2({}.isPrototypeOf),getBuiltIn$2$3=getBuiltIn$3$2,engineUserAgent$3=getBuiltIn$2$3("navigator","userAgent")||"",global$8$3=global$a$2,userAgent$6=engineUserAgent$3,process$6=global$8$3.process,Deno$3=global$8$3.Deno,versions$3=process$6&&process$6.versions||Deno$3&&Deno$3.version,v8$3=versions$3&&versions$3.v8,match$3,version$3;v8$3&&(match$3=v8$3.split("."),version$3=match$3[0]>0&&match$3[0]<4?1:+(match$3[0]+match$3[1]));!version$3&&userAgent$6&&(match$3=userAgent$6.match(/Edge\/(\d+)/),(!match$3||match$3[1]>=74)&&(match$3=userAgent$6.match(/Chrome\/(\d+)/),match$3&&(version$3=+match$3[1])));var engineV8Version$3=version$3,V8_VERSION$4=engineV8Version$3,fails$5$3=fails$9$2,nativeSymbol$3=!!Object.getOwnPropertySymbols&&!fails$5$3(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$4&&V8_VERSION$4<41}),NATIVE_SYMBOL$1$3=nativeSymbol$3,useSymbolAsUid$3=NATIVE_SYMBOL$1$3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$1$3=getBuiltIn$3$2,isCallable$7$3=isCallable$a$3,isPrototypeOf$7=objectIsPrototypeOf$3,USE_SYMBOL_AS_UID$1$3=useSymbolAsUid$3,$Object$1$3=Object,isSymbol$2$3=USE_SYMBOL_AS_UID$1$3?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$1$3("Symbol");return isCallable$7$3(k)&&isPrototypeOf$7(k.prototype,$Object$1$3(v))},$String$1$3=String,tryToString$1$3=function(v){try{return $String$1$3(v)}catch{return"Object"}},isCallable$6$3=isCallable$a$3,tryToString$7=tryToString$1$3,$TypeError$4$3=TypeError,aCallable$1$3=function(v){if(isCallable$6$3(v))return v;throw $TypeError$4$3(tryToString$7(v)+" is not a function")},aCallable$a=aCallable$1$3,getMethod$1$3=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$a(ie)},call$3$3=functionCall$3,isCallable$5$3=isCallable$a$3,isObject$4$3=isObject$5$3,$TypeError$3$3=TypeError,ordinaryToPrimitive$1$3=function(v,k){var ie,ae;if(k==="string"&&isCallable$5$3(ie=v.toString)&&!isObject$4$3(ae=call$3$3(ie,v))||isCallable$5$3(ie=v.valueOf)&&!isObject$4$3(ae=call$3$3(ie,v))||k!=="string"&&isCallable$5$3(ie=v.toString)&&!isObject$4$3(ae=call$3$3(ie,v)))return ae;throw $TypeError$3$3("Can't convert object to primitive value")},shared$3$3={exports:{}},global$7$3=global$a$2,defineProperty$2$2=Object.defineProperty,defineGlobalProperty$3$2=function(v,k){try{defineProperty$2$2(global$7$3,v,{value:k,configurable:!0,writable:!0})}catch{global$7$3[v]=k}return k},global$6$3=global$a$2,defineGlobalProperty$2$3=defineGlobalProperty$3$2,SHARED$3="__core-js_shared__",store$3$3=global$6$3[SHARED$3]||defineGlobalProperty$2$3(SHARED$3,{}),sharedStore$3=store$3$3,store$2$3=sharedStore$3;(shared$3$3.exports=function(v,k){return store$2$3[v]||(store$2$3[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$5=requireObjectCoercible$2$2,$Object$7=Object,toObject$2$1=function(v){return $Object$7(requireObjectCoercible$5(v))},uncurryThis$6$3=functionUncurryThis$3,toObject$1$3=toObject$2$1,hasOwnProperty$3=uncurryThis$6$3({}.hasOwnProperty),hasOwnProperty_1$3=Object.hasOwn||function v(k,ie){return hasOwnProperty$3(toObject$1$3(k),ie)},uncurryThis$5$3=functionUncurryThis$3,id$4=0,postfix$3=Math.random(),toString$3=uncurryThis$5$3(1 .toString),uid$2$3=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$3(++id$4+postfix$3,36)},global$5$3=global$a$2,shared$2$3=shared$3$3.exports,hasOwn$6$2=hasOwnProperty_1$3,uid$1$3=uid$2$3,NATIVE_SYMBOL$4=nativeSymbol$3,USE_SYMBOL_AS_UID$4=useSymbolAsUid$3,WellKnownSymbolsStore$3=shared$2$3("wks"),Symbol$1$3=global$5$3.Symbol,symbolFor$3=Symbol$1$3&&Symbol$1$3.for,createWellKnownSymbol$3=USE_SYMBOL_AS_UID$4?Symbol$1$3:Symbol$1$3&&Symbol$1$3.withoutSetter||uid$1$3,wellKnownSymbol$1$3=function(v){if(!hasOwn$6$2(WellKnownSymbolsStore$3,v)||!(NATIVE_SYMBOL$4||typeof WellKnownSymbolsStore$3[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$4&&hasOwn$6$2(Symbol$1$3,v)?WellKnownSymbolsStore$3[v]=Symbol$1$3[v]:USE_SYMBOL_AS_UID$4&&symbolFor$3?WellKnownSymbolsStore$3[v]=symbolFor$3(k):WellKnownSymbolsStore$3[v]=createWellKnownSymbol$3(k)}return WellKnownSymbolsStore$3[v]},call$2$3=functionCall$3,isObject$3$3=isObject$5$3,isSymbol$1$3=isSymbol$2$3,getMethod$6=getMethod$1$3,ordinaryToPrimitive$4=ordinaryToPrimitive$1$3,wellKnownSymbol$h=wellKnownSymbol$1$3,$TypeError$2$3=TypeError,TO_PRIMITIVE$3=wellKnownSymbol$h("toPrimitive"),toPrimitive$1$3=function(v,k){if(!isObject$3$3(v)||isSymbol$1$3(v))return v;var ie=getMethod$6(v,TO_PRIMITIVE$3),ae;if(ie){if(k===void 0&&(k="default"),ae=call$2$3(ie,v,k),!isObject$3$3(ae)||isSymbol$1$3(ae))return ae;throw $TypeError$2$3("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$4(v,k)},toPrimitive$5=toPrimitive$1$3,isSymbol$6=isSymbol$2$3,toPropertyKey$2$2=function(v){var k=toPrimitive$5(v,"string");return isSymbol$6(k)?k:k+""},global$4$3=global$a$2,isObject$2$3=isObject$5$3,document$5=global$4$3.document,EXISTS$1$3=isObject$2$3(document$5)&&isObject$2$3(document$5.createElement),documentCreateElement$4=function(v){return EXISTS$1$3?document$5.createElement(v):{}},DESCRIPTORS$7$2=descriptors$3,fails$4$3=fails$9$2,createElement$4=documentCreateElement$4,ie8DomDefine$3=!DESCRIPTORS$7$2&&!fails$4$3(function(){return Object.defineProperty(createElement$4("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$6$2=descriptors$3,call$1$3=functionCall$3,propertyIsEnumerableModule$1$1=objectPropertyIsEnumerable$2,createPropertyDescriptor$1$3=createPropertyDescriptor$2$2,toIndexedObject$2$2=toIndexedObject$3$2,toPropertyKey$1$3=toPropertyKey$2$2,hasOwn$5$2=hasOwnProperty_1$3,IE8_DOM_DEFINE$1$2=ie8DomDefine$3,$getOwnPropertyDescriptor$1$2=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$2.f=DESCRIPTORS$6$2?$getOwnPropertyDescriptor$1$2:function v(k,ie){if(k=toIndexedObject$2$2(k),ie=toPropertyKey$1$3(ie),IE8_DOM_DEFINE$1$2)try{return $getOwnPropertyDescriptor$1$2(k,ie)}catch{}if(hasOwn$5$2(k,ie))return createPropertyDescriptor$1$3(!call$1$3(propertyIsEnumerableModule$1$1.f,k,ie),k[ie])};var objectDefineProperty$3={},DESCRIPTORS$5$3=descriptors$3,fails$3$3=fails$9$2,v8PrototypeDefineBug$3=DESCRIPTORS$5$3&&fails$3$3(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$1$3=isObject$5$3,$String$6=String,$TypeError$1$3=TypeError,anObject$2$3=function(v){if(isObject$1$3(v))return v;throw $TypeError$1$3($String$6(v)+" is not an object")},DESCRIPTORS$4$3=descriptors$3,IE8_DOM_DEFINE$4=ie8DomDefine$3,V8_PROTOTYPE_DEFINE_BUG$4=v8PrototypeDefineBug$3,anObject$1$3=anObject$2$3,toPropertyKey$7=toPropertyKey$2$2,$TypeError$e=TypeError,$defineProperty$3=Object.defineProperty,$getOwnPropertyDescriptor$4=Object.getOwnPropertyDescriptor,ENUMERABLE$3="enumerable",CONFIGURABLE$1$3="configurable",WRITABLE$3="writable";objectDefineProperty$3.f=DESCRIPTORS$4$3?V8_PROTOTYPE_DEFINE_BUG$4?function v(k,ie,ae){if(anObject$1$3(k),ie=toPropertyKey$7(ie),anObject$1$3(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$3 in ae&&!ae[WRITABLE$3]){var ce=$getOwnPropertyDescriptor$4(k,ie);ce&&ce[WRITABLE$3]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$3 in ae?ae[CONFIGURABLE$1$3]:ce[CONFIGURABLE$1$3],enumerable:ENUMERABLE$3 in ae?ae[ENUMERABLE$3]:ce[ENUMERABLE$3],writable:!1})}return $defineProperty$3(k,ie,ae)}:$defineProperty$3:function v(k,ie,ae){if(anObject$1$3(k),ie=toPropertyKey$7(ie),anObject$1$3(ae),IE8_DOM_DEFINE$4)try{return $defineProperty$3(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$e("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$3$3=descriptors$3,definePropertyModule$2$2=objectDefineProperty$3,createPropertyDescriptor$8=createPropertyDescriptor$2$2,createNonEnumerableProperty$2$2=DESCRIPTORS$3$3?function(v,k,ie){return definePropertyModule$2$2.f(v,k,createPropertyDescriptor$8(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$3={exports:{}},DESCRIPTORS$2$3=descriptors$3,hasOwn$4$3=hasOwnProperty_1$3,FunctionPrototype$5=Function.prototype,getDescriptor$3=DESCRIPTORS$2$3&&Object.getOwnPropertyDescriptor,EXISTS$4=hasOwn$4$3(FunctionPrototype$5,"name"),PROPER$3=EXISTS$4&&function v(){}.name==="something",CONFIGURABLE$4=EXISTS$4&&(!DESCRIPTORS$2$3||DESCRIPTORS$2$3&&getDescriptor$3(FunctionPrototype$5,"name").configurable),functionName$3={EXISTS:EXISTS$4,PROPER:PROPER$3,CONFIGURABLE:CONFIGURABLE$4},uncurryThis$4$3=functionUncurryThis$3,isCallable$4$3=isCallable$a$3,store$1$3=sharedStore$3,functionToString$3=uncurryThis$4$3(Function.toString);isCallable$4$3(store$1$3.inspectSource)||(store$1$3.inspectSource=function(v){return functionToString$3(v)});var inspectSource$2$3=store$1$3.inspectSource,global$3$3=global$a$2,isCallable$3$3=isCallable$a$3,inspectSource$1$3=inspectSource$2$3,WeakMap$1$3=global$3$3.WeakMap,nativeWeakMap$3=isCallable$3$3(WeakMap$1$3)&&/native code/.test(inspectSource$1$3(WeakMap$1$3)),shared$1$3=shared$3$3.exports,uid$6=uid$2$3,keys$3=shared$1$3("keys"),sharedKey$1$3=function(v){return keys$3[v]||(keys$3[v]=uid$6(v))},hiddenKeys$3$2={},NATIVE_WEAK_MAP$3=nativeWeakMap$3,global$2$3=global$a$2,uncurryThis$3$3=functionUncurryThis$3,isObject$d=isObject$5$3,createNonEnumerableProperty$1$3=createNonEnumerableProperty$2$2,hasOwn$3$3=hasOwnProperty_1$3,shared$6=sharedStore$3,sharedKey$6=sharedKey$1$3,hiddenKeys$2$2=hiddenKeys$3$2,OBJECT_ALREADY_INITIALIZED$3="Object already initialized",TypeError$1$3=global$2$3.TypeError,WeakMap$5=global$2$3.WeakMap,set$4,get$4,has$3,enforce$3=function(v){return has$3(v)?get$4(v):set$4(v,{})},getterFor$3=function(v){return function(k){var ie;if(!isObject$d(k)||(ie=get$4(k)).type!==v)throw TypeError$1$3("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$3||shared$6.state?(store$6=shared$6.state||(shared$6.state=new WeakMap$5),wmget$3=uncurryThis$3$3(store$6.get),wmhas$3=uncurryThis$3$3(store$6.has),wmset$3=uncurryThis$3$3(store$6.set),set$4=function(v,k){if(wmhas$3(store$6,v))throw new TypeError$1$3(OBJECT_ALREADY_INITIALIZED$3);return k.facade=v,wmset$3(store$6,v,k),k},get$4=function(v){return wmget$3(store$6,v)||{}},has$3=function(v){return wmhas$3(store$6,v)}):(STATE$3=sharedKey$6("state"),hiddenKeys$2$2[STATE$3]=!0,set$4=function(v,k){if(hasOwn$3$3(v,STATE$3))throw new TypeError$1$3(OBJECT_ALREADY_INITIALIZED$3);return k.facade=v,createNonEnumerableProperty$1$3(v,STATE$3,k),k},get$4=function(v){return hasOwn$3$3(v,STATE$3)?v[STATE$3]:{}},has$3=function(v){return hasOwn$3$3(v,STATE$3)});var store$6,wmget$3,wmhas$3,wmset$3,STATE$3,internalState$3={set:set$4,get:get$4,has:has$3,enforce:enforce$3,getterFor:getterFor$3},fails$2$3=fails$9$2,isCallable$2$3=isCallable$a$3,hasOwn$2$3=hasOwnProperty_1$3,DESCRIPTORS$1$3=descriptors$3,CONFIGURABLE_FUNCTION_NAME$5=functionName$3.CONFIGURABLE,inspectSource$7=inspectSource$2$3,InternalStateModule$7=internalState$3,enforceInternalState$5=InternalStateModule$7.enforce,getInternalState$7=InternalStateModule$7.get,defineProperty$1$3=Object.defineProperty,CONFIGURABLE_LENGTH$3=DESCRIPTORS$1$3&&!fails$2$3(function(){return defineProperty$1$3(function(){},"length",{value:8}).length!==8}),TEMPLATE$3=String(String).split("String"),makeBuiltIn$1$3=makeBuiltIn$2$3.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$2$3(v,"name")||CONFIGURABLE_FUNCTION_NAME$5&&v.name!==k)&&(DESCRIPTORS$1$3?defineProperty$1$3(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$3&&ie&&hasOwn$2$3(ie,"arity")&&v.length!==ie.arity&&defineProperty$1$3(v,"length",{value:ie.arity});try{ie&&hasOwn$2$3(ie,"constructor")&&ie.constructor?DESCRIPTORS$1$3&&defineProperty$1$3(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$5(v);return hasOwn$2$3(ae,"source")||(ae.source=TEMPLATE$3.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$3(function v(){return isCallable$2$3(this)&&getInternalState$7(this).source||inspectSource$7(this)},"toString");var isCallable$1$3=isCallable$a$3,definePropertyModule$1$3=objectDefineProperty$3,makeBuiltIn$5=makeBuiltIn$2$3.exports,defineGlobalProperty$1$3=defineGlobalProperty$3$2,defineBuiltIn$1$3=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$1$3(ie)&&makeBuiltIn$5(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$3(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$1$3.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$2={},ceil$2=Math.ceil,floor$5=Math.floor,mathTrunc$2=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$5:ceil$2)(ie)},trunc2$2=mathTrunc$2,toIntegerOrInfinity$2$2=function(v){var k=+v;return k!==k||k===0?0:trunc2$2(k)},toIntegerOrInfinity$1$2=toIntegerOrInfinity$2$2,max$3=Math.max,min$1$2=Math.min,toAbsoluteIndex$1$2=function(v,k){var ie=toIntegerOrInfinity$1$2(v);return ie<0?max$3(ie+k,0):min$1$2(ie,k)},toIntegerOrInfinity$7=toIntegerOrInfinity$2$2,min$3=Math.min,toLength$1$2=function(v){return v>0?min$3(toIntegerOrInfinity$7(v),9007199254740991):0},toLength$7=toLength$1$2,lengthOfArrayLike$1$2=function(v){return toLength$7(v.length)},toIndexedObject$1$2=toIndexedObject$3$2,toAbsoluteIndex$6=toAbsoluteIndex$1$2,lengthOfArrayLike$8=lengthOfArrayLike$1$2,createMethod$3=function(v){return function(k,ie,ae){var ce=toIndexedObject$1$2(k),fe=lengthOfArrayLike$8(ce),le=toAbsoluteIndex$6(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$2={includes:createMethod$3(!0),indexOf:createMethod$3(!1)},uncurryThis$2$3=functionUncurryThis$3,hasOwn$1$3=hasOwnProperty_1$3,toIndexedObject$8=toIndexedObject$3$2,indexOf$2=arrayIncludes$2.indexOf,hiddenKeys$1$2=hiddenKeys$3$2,push$3=uncurryThis$2$3([].push),objectKeysInternal$2=function(v,k){var ie=toIndexedObject$8(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$1$3(hiddenKeys$1$2,fe)&&hasOwn$1$3(ie,fe)&&push$3(ce,fe);for(;k.length>ae;)hasOwn$1$3(ie,fe=k[ae++])&&(~indexOf$2(ce,fe)||push$3(ce,fe));return ce},enumBugKeys$2$1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$1=objectKeysInternal$2,enumBugKeys$1$2=enumBugKeys$2$1,hiddenKeys$6=enumBugKeys$1$2.concat("length","prototype");objectGetOwnPropertyNames$2.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1$1(k,hiddenKeys$6)};var objectGetOwnPropertySymbols$2={};objectGetOwnPropertySymbols$2.f=Object.getOwnPropertySymbols;var getBuiltIn$b=getBuiltIn$3$2,uncurryThis$1$3=functionUncurryThis$3,getOwnPropertyNamesModule$2=objectGetOwnPropertyNames$2,getOwnPropertySymbolsModule$1$1=objectGetOwnPropertySymbols$2,anObject$d=anObject$2$3,concat$1$1=uncurryThis$1$3([].concat),ownKeys$1$2=getBuiltIn$b("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$2.f(anObject$d(k)),ae=getOwnPropertySymbolsModule$1$1.f;return ae?concat$1$1(ie,ae(k)):ie},hasOwn2$3=hasOwnProperty_1$3,ownKeys2$2=ownKeys$1$2,getOwnPropertyDescriptorModule$3=objectGetOwnPropertyDescriptor$2,definePropertyModule$9=objectDefineProperty$3,copyConstructorProperties$1$2=function(v,k,ie){for(var ae=ownKeys2$2(k),ce=definePropertyModule$9.f,fe=getOwnPropertyDescriptorModule$3.f,le=0;lefe;)for(var pe=IndexedObject$4(arguments[fe++]),ye=le?concat$3(objectKeys$3(pe),le(pe)):objectKeys$3(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$g||call$g(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign$1,$$7=_export$2,assign2$1=objectAssign$1;$$7({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2$1},{assign:assign2$1});var initNearSnap=v=>__awaiter$4(void 0,void 0,void 0,function*(){const{store:k,logger:ie,options:ae}=v,ce=ae.network.networkId,fe=new import_sdk.NearSnap;let le=yield import_sdk.NearSnapAccount.restore({network:ce,snap:fe});return{isSignedIn(){return __awaiter$4(this,void 0,void 0,function*(){return ie.log("NearSnap:isSignedIn"),le!=null})},signIn({contractId:ve,methodNames:pe}){return __awaiter$4(this,void 0,void 0,function*(){return ie.log("NearSnap:signIn"),le=yield import_sdk.NearSnapAccount.connect({contractId:ve===""?void 0:ve,methods:pe,network:ce,snap:fe}),[{accountId:le.accountId}]})},signOut(){return __awaiter$4(this,void 0,void 0,function*(){ie.log("NearSnap:signOut"),yield le==null?void 0:le.disconnect()})},getAccounts(){return __awaiter$4(this,void 0,void 0,function*(){return le?[{accountId:le.accountId}]:[]})},signAndSendTransaction(ve){var pe;return __awaiter$4(this,void 0,void 0,function*(){if(ie.log("NearSnap:signAndSendTransaction",ve),le==null)throw new Error("Wallet not signed in");const{contract:ye}=k.getState(),me=(pe=ve.receiverId)!==null&&pe!==void 0?pe:ye==null?void 0:ye.contractId;if(me==null)throw new Error("ReceiverId is not defined");return yield le.executeTransaction(Object.assign({receiverId:me},ve))})},signMessage({message:ve,nonce:pe,recipient:ye}){return __awaiter$4(this,void 0,void 0,function*(){if(le==null)throw new Error("Wallet not signed in");return yield le.signMessage({message:ve,nonce:pe,recipient:ye})})},verifyOwner(){return __awaiter$4(this,void 0,void 0,function*(){throw Error("NearSnap:verifyOwner is not released yet")})},signAndSendTransactions({transactions:ve}){return __awaiter$4(this,void 0,void 0,function*(){if(ie.log("NearSnap:signAndSendTransactions",{transactions:ve}),le==null)throw new Error("Wallet not signed in");return yield le.executeTransactions(ve)})}}}),icon$4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAADAFBMVEUAAACfYruWaej2ged3PaPfdFS9cO2ynu9dXuSEQrCRS4ZpYOfZYOK/bu2HQ7KGQ7KKa9BnYelfL4plYOhlYOhjYOhlYelsNpZrNpXSYednNJNpNZSngfbgdlXQYuh2aPfWYefRYujddFf4nGNwN5qoh/fDY+ulhffedFWoi/epkfnDYurHY+redFbZd2XcYeWccPSfUszDp/q+qfvfdVT/n1oXFi3hYOXkj+3Hpfjuh+nmYOSeWt3OfO7ek++hWt2zhvbqiuvHifLKf+/KoPbyg+jYlvHKhPHbYebGhPGZhPpaXOLTmvNkYOiBbfvPnfRqYepmS8FfX+ath/eGbfrDifN+afmaW991ZPEiElafh/nReO2ym/q2lvnVYehvYu56ZvX3gefqc+d3LIVnSb1lT8jUdOuqbfOrk/q0kPhhHmitmvtvMI2Lbfmun/y3n/p4afpiJ3ppLYizn/uvj/iKQrGwlfm2m/pzKYB4OZ9oMY6vdPOmWdxPFlZwJ3p1MItpJ3piLIVkIG2Cafmve/RuZfNlKoBpY+9dJHaCOJtYHml5NZdwLIazf/RaGmCqjPliL4yniPmBNZaFQ7GGPaVeHGWpc/R/PabYcOp+M5KxbfJmJHV7L4ptJHVkU899N5tdIW6FQKt0Z/bPYuliInJdKoF1M5KUg/uzi/epefVpInFsK4OJP6qAOqBVKX9UJXiMRreAQKyugfZ6MY+PgfxLHGa4hfR0N5utaPG6ovtRH2qyZu9DG2RbJ3xUGFtkYuyFOqBJIG9GHmrHY+qyiPZrKX5OJntpNZVwNJRIGV5yNZh6PKRSG2OpgvdQInI/GF5XIXFbLIa0Y+1KJHZBFlhIFleofvfAZOzMYumVfPnca+i1X+a9hvO7eu6jZeXwjlfJqPqraebIWdWzculuW9u/mvZxQj6Qc96MUsvcfuuyT8OaT8OWPqO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EDx8awOVP/InwSCjcs2NdpFmWnmeXTOL1OcQPAaAH8w3g4AMuf5WFmIDIVbgNVBOh+qw+78MPQUML5htA+UK4/PXVoIpgEtRYKeq1ea99CGjBfAMoX1n+uauBrIprVNGh57zP5OauoQXzDKB8cMfln4cyEarrD148lT3vw3xIC+YZQPlh9pu5GpgEdeoZ817PBs6CGQZQfvj1n70a6uI6a+WTN3cS0IIXGQD56vDPnwhMgulEWNaVP/TzJwEteMkMgHxl+OdPhLdMgum2f9utQxyAYRgGgCooGS0uD9r/n7dKU2UykMlkc3xPiCPZA1VPwCTgBMqfP8JAqrx8IRJW+f0e8wRr+wlo56wbP1bRC9g+MlCICSg/JSjEnC4U/+2IWTf+/QR1499P0FNCovwetQzF7zczM7MvugDYLi9p2GpHGAAAAABJRU5ErkJggg==";function setupNearSnap({deprecated:v=!1,iconUrl:k=icon$4}={}){return()=>__awaiter$4(this,void 0,void 0,function*(){return{id:"near-snap",type:"injected",init:initNearSnap,metadata:{name:"Near Snap",description:"Metamask Snap for NEAR Protocol",downloadUrl:"https://near-snap.surge.sh",iconUrl:k,deprecated:v,available:!0}}})}var import_is_mobile$3=__toESM(require_is_mobile(),1),_a,_b,_c;function __awaiter$3(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var RAMPER_ENV=(_a={}.NEXT_PUBLIC_RAMPER_ENV)!=null?_a:globalThis.RAMPER_ENV,ENV={LOCAL:"local",PREVIEW:"preview",DEV:"dev",STAGING:"staging",PROD:"prod",VERCEL_PREVIEW_URL:(_b={}.NEXT_PUBLIC_VERCEL_URL)!=null?_b:"",VERCEL_GIT_COMMIT_REF:(_c={}.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF)!=null?_c:""},isDev=()=>RAMPER_ENV===ENV.DEV,isLocal=()=>RAMPER_ENV===ENV.LOCAL,isPreview=()=>RAMPER_ENV===ENV.PREVIEW,isProd=()=>RAMPER_ENV===ENV.PROD,isServer=()=>globalThis.window===void 0,isStaging=()=>RAMPER_ENV===ENV.STAGING,getEnv$1=()=>!isServer()&&window.location.hostname.includes("dev.ramper.xyz")?ENV.DEV:!isServer()&&window.location.hostname.includes("preview.ramper.xyz")?ENV.PREVIEW:!isServer()&&window.location.hostname.includes("staging.ramper.xyz")?ENV.STAGING:isProd()?ENV.PROD:isStaging()?ENV.STAGING:isDev()?ENV.DEV:isPreview()?ENV.PREVIEW:isLocal()?ENV.LOCAL:ENV.PROD,commonjsGlobal$3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function getAugmentedNamespace(v){if(v.__esModule)return v;var k=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(v).forEach(function(ie){var ae=Object.getOwnPropertyDescriptor(v,ie);Object.defineProperty(k,ie,ae.get?ae:{enumerable:!0,get:function(){return v[ie]}})}),k}var uaParser={exports:{}};(function(v,k){(function(ie,ae){var ce="1.0.2",fe="",le="?",ve="function",pe="undefined",ye="object",me="string",Ee="major",cr="model",Br="name",$r="type",Pr="vendor",Ar="version",ur="architecture",jr="console",Mr="mobile",Lr="tablet",Vr="smarttv",Gr="wearable",Ur="embedded",Qr=255,hn="Amazon",Yt="Apple",fn="ASUS",Qt="BlackBerry",Xt="Browser",Kr="Chrome",be="Edge",kr="Firefox",xr="Google",Wr="Huawei",Jt="LG",Xr="Microsoft",zr="Motorola",Jr="Opera",Nr="Samsung",Hr="Sony",On="Xiaomi",Gn="Zebra",mn="Facebook",Nn=function(li,Pi){var Ai={};for(var Oi in li)Pi[Oi]&&Pi[Oi].length%2===0?Ai[Oi]=Pi[Oi].concat(li[Oi]):Ai[Oi]=li[Oi];return Ai},In=function(li){for(var Pi={},Ai=0;Ai0?Bt.length===2?typeof Bt[1]==ve?this[Bt[0]]=Bt[1].call(this,Tn):this[Bt[0]]=Bt[1]:Bt.length===3?typeof Bt[1]===ve&&!(Bt[1].exec&&Bt[1].test)?this[Bt[0]]=Tn?Bt[1].call(this,Tn,Bt[2]):ae:this[Bt[0]]=Tn?Tn.replace(Bt[1],Bt[2]):ae:Bt.length===4&&(this[Bt[0]]=Tn?Bt[3].call(this,Tn.replace(Bt[1],Bt[2])):ae):this[Bt]=Tn||ae;Ai+=2}},Qn=function(li,Pi){for(var Ai in Pi)if(typeof Pi[Ai]===ye&&Pi[Ai].length>0){for(var Oi=0;OiQr?pn(to,Qr):to,this},this.setUA(Ai),this};di.VERSION=ce,di.BROWSER=In([Br,Ar,Ee]),di.CPU=In([ur]),di.DEVICE=In([cr,Pr,$r,jr,Mr,Vr,Lr,Gr,Ur]),di.ENGINE=di.OS=In([Br,Ar]),v.exports&&(k=v.exports=di),k.UAParser=di;var Ci=typeof ie!==pe&&(ie.jQuery||ie.Zepto);if(Ci&&!Ci.ua){var yi=new di;Ci.ua=yi.getResult(),Ci.ua.get=function(){return yi.getUA()},Ci.ua.set=function(li){yi.setUA(li);var Pi=yi.getResult();for(var Ai in Pi)Ci.ua[Ai]=Pi[Ai]}}})(typeof window=="object"?window:commonjsGlobal$3)})(uaParser,uaParser.exports);var getUAParser=()=>new uaParser.exports.UAParser;getUAParser().getBrowser;var slugify={exports:{}};(function(v,k){(function(ie,ae,ce){v.exports=ce(),v.exports.default=ce()})("slugify",commonjsGlobal$3,function(){var ie=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),ae=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function ce(fe,le){if(typeof fe!="string")throw new Error("slugify: string argument expected");le=typeof le=="string"?{replacement:le}:le||{};var ve=ae[le.locale]||{},pe=le.replacement===void 0?"-":le.replacement,ye=le.trim===void 0?!0:le.trim,me=fe.normalize().split("").reduce(function(Ee,cr){var Br=ve[cr]||ie[cr]||cr;return Br===pe&&(Br=" "),Ee+Br.replace(le.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return le.strict&&(me=me.replace(/[^A-Za-z0-9\s]/g,"")),ye&&(me=me.trim()),me=me.replace(/\s+/g,pe),le.lower&&(me=me.toLowerCase()),me}return ce.extend=function(fe){Object.assign(ie,fe)},ce})})(slugify);var getHostname=()=>isServer()?"localhost":window.location.hostname,AUTH_HOST_ENV={local:`http://${getHostname()}:3000`,preview:"https://auth.v1.preview.ramper.xyz",dev:"https://auth.v1.dev.ramper.xyz",staging:"https://auth.v1.staging.ramper.xyz",prod:"https://auth.v1.ramper.xyz"};AUTH_HOST_ENV[getEnv$1()];var SSO_HOST_ENV={local:"https://us-central1-bright-zodiac-339920.cloudfunctions.net",preview:"https://us-central1-bright-zodiac-339920.cloudfunctions.net",dev:"https://us-central1-bright-zodiac-339920.cloudfunctions.net",staging:"https://us-central1-ramper-prod.cloudfunctions.net",prod:"https://us-central1-ramper-prod.cloudfunctions.net"};SSO_HOST_ENV[getEnv$1()];var WS_HOST_ENV={local:"wss://a5wwvzpwt7.execute-api.us-west-2.amazonaws.com/dev",preview:"wss://a5wwvzpwt7.execute-api.us-west-2.amazonaws.com/dev",dev:"wss://a5wwvzpwt7.execute-api.us-west-2.amazonaws.com/dev",staging:"wss://tauokxd7fh.execute-api.us-west-2.amazonaws.com/prod",prod:"wss://tauokxd7fh.execute-api.us-west-2.amazonaws.com/prod"};WS_HOST_ENV[getEnv$1()];var WS_HOST_HTTP_ENV={local:"https://q1otyh6t0j.execute-api.us-west-2.amazonaws.com/dev/v1_0",preview:"https://q1otyh6t0j.execute-api.us-west-2.amazonaws.com/dev/v1_0",dev:"https://q1otyh6t0j.execute-api.us-west-2.amazonaws.com/dev/v1_0",staging:"https://cjbz1h17i7.execute-api.us-west-2.amazonaws.com/prod/v1_0",prod:"https://cjbz1h17i7.execute-api.us-west-2.amazonaws.com/prod/v1_0"};WS_HOST_HTTP_ENV[getEnv$1()];var ANALYTIC_ID_ENV={local:"G-QDW3GW421L",preview:"G-QDW3GW421L",dev:"G-QDW3GW421L",staging:"G-7NRREF51EB",prod:"G-7NRREF51EB"};ANALYTIC_ID_ENV[getEnv$1()];var EXAMPLE_HOST_ENV={local:`http://${getHostname()}:3001`,preview:"https://example.preview.ramper.xyz",dev:"https://example.dev.ramper.xyz",staging:"https://example.staging.ramper.xyz",prod:"https://example.ramper.xyz"};EXAMPLE_HOST_ENV[getEnv$1()];var STATIC_HOST_ENV={local:`http://${getHostname()}:3002`,preview:"https://static.preview.ramper.xyz",dev:"https://static.dev.ramper.xyz",staging:"https://static.staging.ramper.xyz",prod:"https://static.ramper.xyz"};STATIC_HOST_ENV[getEnv$1()];var DOCS_HOST_ENV={local:`http://${getHostname()}:3004`,preview:"https://docs.preview.ramper.xyz",dev:"https://docs.dev.ramper.xyz",staging:"https://docs.staging.ramper.xyz",prod:"https://docs.ramper.xyz"};DOCS_HOST_ENV[getEnv$1()];var JS_HOST_ENV={local:`http://${getHostname()}:3005`,preview:"https://js.preview.ramper.xyz",dev:"https://js.dev.ramper.xyz",staging:"https://js.staging.ramper.xyz",prod:"https://js.ramper.xyz"};JS_HOST_ENV[getEnv$1()];var WALLET_APP_ID_ENV={local:"suyklxmori",preview:"suyklxmori",dev:"suyklxmori",staging:"dtofgevaxu",prod:"dtofgevaxu"};WALLET_APP_ID_ENV[getEnv$1()];var DASHBOARD_HOST_ENV={local:`http://${getHostname()}:3008`,preview:"https://developer.preview.ramper.xyz",dev:"https://developer.dev.ramper.xyz",staging:"https://developer.staging.ramper.xyz",prod:"https://developer.ramper.xyz"};DASHBOARD_HOST_ENV[getEnv$1()];var getNamespace=v=>window[v],cachedPromise,loadScript=(v,k)=>{const ie=document.querySelector(`[src="${v}"]`);if(ie!=null&&cachedPromise!==void 0)return cachedPromise;if(ie!=null&&getNamespace(k)!==void 0)return Promise.resolve(getNamespace(k));const ae=document.createElement("script");return ae.src=v,cachedPromise=new Promise((ce,fe)=>{document.head.appendChild(ae),window.addEventListener(`initialize:${k}`,()=>{getNamespace(k)!==void 0?ce(getNamespace(k)):fe(new Error(`Failed to load script: [${v}]`))})}),cachedPromise},AUTH_PROVIDER={GOOGLE:"google",FACEBOOK:"facebook",APPLE:"apple",TWITTER:"twitter",GITHUB:"github",EMAIL:"email"},THEME={DARK:"dark",LIGHT:"light"},LOGGING_LEVELS={ALL:"ALL",DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN",ERROR:"ERROR"},DEFAULT_LOGGING_LEVEL=LOGGING_LEVELS.DEBUG,NOOP=(v,...k)=>{},ConsoleLogger=class{constructor(v=DEFAULT_LOGGING_LEVEL){this.debug=NOOP,this.info=NOOP,this.warn=NOOP,this.error=NOOP;const k=Object.values(LOGGING_LEVELS).includes(v)?v:DEFAULT_LOGGING_LEVEL;this.error=console.error.bind(console),k!==LOGGING_LEVELS.ERROR&&(this.warn=console.warn.bind(console),k!==LOGGING_LEVELS.WARN&&(this.info=console.info.bind(console),k!==LOGGING_LEVELS.INFO&&(this.debug=console.log.bind(console),LOGGING_LEVELS.DEBUG)))}};if(globalThis.window!==void 0){const v=window.localStorage.getItem("ramper_loggingLevel")||DEFAULT_LOGGING_LEVEL;new ConsoleLogger(v)}function e(v){this.message=v}e.prototype=new Error,e.prototype.name="InvalidCharacterError";typeof window<"u"&&window.atob&&window.atob.bind(window);function n(v){this.message=v}n.prototype=new Error,n.prototype.name="InvalidTokenError";(function(){try{return window?window.Promise:Promise}catch{return null}})();var jwt={exports:{}},__viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);(function(v){var k=require$$0,ie={HS256:"sha256",HS384:"sha384",HS512:"sha512",RS256:"RSA-SHA256"},ae={HS256:"hmac",HS384:"hmac",HS512:"hmac",RS256:"sign"},ce=v.exports;ce.version="0.5.6",ce.decode=function(Br,$r,Pr,Ar){if(!Br)throw new Error("No token supplied");var ur=Br.split(".");if(ur.length!==3)throw new Error("Not enough or too many segments");var jr=ur[0],Mr=ur[1],Lr=ur[2],Vr=JSON.parse(pe(jr)),Gr=JSON.parse(pe(Mr));if(!Pr){!Ar&&/BEGIN( RSA)? PUBLIC KEY/.test($r.toString())&&(Ar="RS256");var Ur=ie[Ar||Vr.alg],Qr=ae[Ar||Vr.alg];if(!Ur||!Qr)throw new Error("Algorithm not supported");var hn=[jr,Mr].join(".");if(!le(hn,$r,Ur,Qr,Lr))throw new Error("Signature verification failed");if(Gr.nbf&&Date.now()Gr.exp*1e3)throw new Error("Token expired")}return Gr},ce.encode=function(Br,$r,Pr,Ar){if(!$r)throw new Error("Require key");Pr||(Pr="HS256");var ur=ie[Pr],jr=ae[Pr];if(!ur||!jr)throw new Error("Algorithm not supported");var Mr={typ:"JWT",alg:Pr};Ar&&Ar.header&&fe(Mr,Ar.header);var Lr=[];return Lr.push(me(JSON.stringify(Mr))),Lr.push(me(JSON.stringify(Br))),Lr.push(ve(Lr.join("."),$r,ur,jr)),Lr.join(".")};function fe(cr,Br){for(var $r in Br)Br.hasOwnProperty($r)&&(cr[$r]=Br[$r])}function le(cr,Br,$r,Pr,Ar){if(Pr==="hmac")return Ar===ve(cr,Br,$r,Pr);if(Pr=="sign")return k.createVerify($r).update(cr).verify(Br,ye(Ar),"base64");throw new Error("Algorithm type not recognized")}function ve(cr,Br,$r,Pr){var Ar;if(Pr==="hmac")Ar=k.createHmac($r,Br).update(cr).digest("base64");else if(Pr=="sign")Ar=k.createSign($r).update(cr).sign(Br,"base64");else throw new Error("Algorithm type not recognized");return Ee(Ar)}function pe(cr){return Buffer.from(ye(cr),"base64").toString()}function ye(cr){return cr+=new Array(5-cr.length%4).join("="),cr.replace(/\-/g,"+").replace(/_/g,"/")}function me(cr){return Ee(Buffer.from(cr).toString("base64"))}function Ee(cr){return cr.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}})(jwt);var getEnv=()=>{const v=globalThis.RAMPER_ENV;return v===ENV.PROD?ENV.PROD:v===ENV.STAGING?ENV.STAGING:v===ENV.DEV?ENV.DEV:v===ENV.PREVIEW?ENV.PREVIEW:v===ENV.LOCAL?ENV.LOCAL:ENV.PROD},getScriptURL=()=>`${JS_HOST_ENV[getEnv()]}/v1/near`,loadRamperNear=({src:v})=>isServer()?Promise.resolve({}):loadScript(v,"ramper"),getRamperInstance=()=>globalThis.ramper,init=(...v)=>__awaiter$3(void 0,void 0,void 0,function*(){const k=yield loadRamperNear({src:getScriptURL()});return yield k==null?void 0:k.init(...v),k}),signIn=(...v)=>{var k;return(k=getRamperInstance())===null||k===void 0?void 0:k.signIn(...v)},sendTransaction=(...v)=>{var k;return(k=getRamperInstance())===null||k===void 0?void 0:k.sendTransaction(...v)};function __awaiter2(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAYAAAB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Q98Pv7YZ9PmquG7n00Nf/3RUAE4D1suw5kzqm5dH1ymphJBZQkGNsJ77wd8+JHPhg2Pe/y0K/P6peECEIFvL2rGx2ob/gix4cfp1UoFhoaE9z7wefddnw29azw+6QRWiqUpIdDRo4pKxZDN1qbz29pyhSgyDA15fPyJzwcf+hSL1srTWduU76KhAvA8iCI4eVwRhs9v/C58Ka2A1oaR3R6f/irk9YMenZ0PG36aykz5LhomADeZdO6sZmrKPFfXZ+fxl5ft37t2e3z6q4C33/FXd5JPDT/lSWh4CDQ6qlhefrbS57WztiLwk5c8fvf7gNcP+qs7yKeGn/I0NEwAnmcXkRw7oshmn27md63h+z689jPr8Q8e9PFSw095DhoigNXw57xmevrJtjxyD6xa23KFIICf/dzjD/8+4JVXq21G3GunD7cpz0JDQ6CTJ2zp84+FP26hzMoyZHPw3vs+v/t9wJ693kOhTmr4Kc9L3QXgJptKJThx/PvDHxe+RBEsLNj1Ae9/4PP7PwTs3VctUEsNP6WWNEQAInD6tGLiunls5ZcLdZzhd3UJv/ltwO9+H7Bt2Bq+E0xq+Cm1pmEh0PFjmnLZkM0JRlUXmUeVap3Or34d8stf+QwPVxtKrZYrpKTUgboKwBnv/Lzh1KgNf4jLocslWClZw//dvwv57b8N6O9PKzNTGkvdBSACly9pZqYN+bxda1suGQa3enzyacgHv/AZGKjO2kJq+CmNo+4CADh0yGZ/lBK2bhU++jjkk1/6dPdImsNPaSp1E4Bb+fXggeHYEc2uXR5/+IeAd971KRRSw09pDcSY+nTjceHP+Jjm+HHNb34brNbpuO+lYU5Ks/n/VnKP4Bbx7PAAAAAASUVORK5CYII=",setupRamperWalletState=()=>({wallet:window.ramper}),RamperWallet=({metadata:v,store:k,options:ie,logger:ae})=>__awaiter2(void 0,void 0,void 0,function*(){yield init({appName:"Ramper Wallet",authProviders:[AUTH_PROVIDER.GOOGLE,AUTH_PROVIDER.FACEBOOK,AUTH_PROVIDER.TWITTER,AUTH_PROVIDER.APPLE,AUTH_PROVIDER.EMAIL],walletProviders:[],network:ie.network.networkId,theme:THEME.DARK});const ce=setupRamperWalletState(),fe=()=>__awaiter2(void 0,void 0,void 0,function*(){const{wallets:ve}=ce.wallet.getUser(),{publicKey:pe}=ve.near;return pe?[{accountId:pe}]:[]}),le=ve=>__awaiter2(void 0,void 0,void 0,function*(){const pe=yield fe(),{contract:ye}=k.getState();if(!pe.length||!ye)throw new Error("Wallet not signed in");return ve.map(me=>{const Ee=me.actions.map(cr=>createAction(cr));return{receiverId:me.receiverId||ye.contractId,actions:Ee}})});return{signIn(){return __awaiter2(this,void 0,void 0,function*(){const ve=yield signIn();if(ve.method==="cancel"||ve.method==="none")throw new Error("Something went wrong");const pe=yield fe();return pe.length?pe:fe()})},signOut(){return __awaiter2(this,void 0,void 0,function*(){ce.wallet.signOut()})},getAccounts(){return __awaiter2(this,void 0,void 0,function*(){return fe()})},verifyOwner({message:ve}){return __awaiter2(this,void 0,void 0,function*(){throw ae.log("Ramper Wallet:verifyOwner",{message:ve}),new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction({receiverId:ve,actions:pe}){return __awaiter2(this,void 0,void 0,function*(){ae.log("signAndSendTransaction",{receiverId:ve,actions:pe});const{contract:ye}=k.getState();if(!(yield fe()).length||!ye)throw new Error("Wallet not signed in");const Ee=yield le([{receiverId:ve,actions:pe}]);try{const{result:cr}=yield sendTransaction({transactionActions:Ee});if(Object.keys(cr[0]).length===0&&cr[0].constructor===Object)throw new Error;return cr[0]}catch{throw new Error("Failed to send transaction")}})},signAndSendTransactions({transactions:ve}){return __awaiter2(this,void 0,void 0,function*(){ae.log("signAndSendTransactions",{transactions:ve});const pe=yield le(ve);try{const{result:ye}=yield sendTransaction({transactionActions:pe});if(Object.keys(ye[0]).length===0&&ye[0].constructor===Object)throw new Error;return ye}catch{throw new Error("Failed to send transactions")}})}}});function setupRamperWallet({iconUrl:v=icon$3,deprecated:k=!1}={}){return()=>__awaiter2(this,void 0,void 0,function*(){return(0,import_is_mobile$3.isMobile)()?null:{id:"ramper-wallet",type:"injected",metadata:{name:"Ramper Wallet",description:null,iconUrl:v,downloadUrl:"https://docs.ramper.xyz/",deprecated:k,available:!0},init:RamperWallet}})}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -367,4 +367,4 @@ PERFORMANCE OF THIS SOFTWARE. @link https://github.com/dollarshaveclub/postmate @author Jacob Kelley @license MIT -**/var import_is_mobile$2=__toESM(require_is_mobile(),1),commonjsGlobal$2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$7$2=function(v){try{return!!v()}catch{return!0}},fails$6$2=fails$7$2,descriptors$2=!fails$6$2(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$5$2=fails$7$2,functionBindNative$2=!fails$5$2(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$1$2=functionBindNative$2,FunctionPrototype$1$2=Function.prototype,bind$7=FunctionPrototype$1$2.bind,call$4$2=FunctionPrototype$1$2.call,uncurryThis$6$2=NATIVE_BIND$1$2&&bind$7.bind(call$4$2,call$4$2),functionUncurryThis$2=NATIVE_BIND$1$2?function(v){return v&&uncurryThis$6$2(v)}:function(v){return v&&function(){return call$4$2.apply(v,arguments)}},$TypeError$5$2=TypeError,requireObjectCoercible$1$2=function(v){if(v==null)throw $TypeError$5$2("Can't call method on "+v);return v},requireObjectCoercible$4=requireObjectCoercible$1$2,$Object$2$2=Object,toObject$1$2=function(v){return $Object$2$2(requireObjectCoercible$4(v))},uncurryThis$5$2=functionUncurryThis$2,toObject$8=toObject$1$2,hasOwnProperty$2=uncurryThis$5$2({}.hasOwnProperty),hasOwnProperty_1$2=Object.hasOwn||function v(k,ie){return hasOwnProperty$2(toObject$8(k),ie)},DESCRIPTORS$5$2=descriptors$2,hasOwn$4$2=hasOwnProperty_1$2,FunctionPrototype$4=Function.prototype,getDescriptor$2=DESCRIPTORS$5$2&&Object.getOwnPropertyDescriptor,EXISTS$1$2=hasOwn$4$2(FunctionPrototype$4,"name"),PROPER$2=EXISTS$1$2&&function v(){}.name==="something",CONFIGURABLE$1$2=EXISTS$1$2&&(!DESCRIPTORS$5$2||DESCRIPTORS$5$2&&getDescriptor$2(FunctionPrototype$4,"name").configurable),functionName$2={EXISTS:EXISTS$1$2,PROPER:PROPER$2,CONFIGURABLE:CONFIGURABLE$1$2},isCallable$a$2=function(v){return typeof v=="function"},objectDefineProperty$2={},check$2=function(v){return v&&v.Math==Math&&v},global$9$2=check$2(typeof globalThis=="object"&&globalThis)||check$2(typeof window=="object"&&window)||check$2(typeof self=="object"&&self)||check$2(typeof commonjsGlobal$2=="object"&&commonjsGlobal$2)||function(){return this}()||Function("return this")(),isCallable$9$2=isCallable$a$2,isObject$5$2=function(v){return typeof v=="object"?v!==null:isCallable$9$2(v)},global$8$2=global$9$2,isObject$4$2=isObject$5$2,document$4=global$8$2.document,EXISTS$3=isObject$4$2(document$4)&&isObject$4$2(document$4.createElement),documentCreateElement$3=function(v){return EXISTS$3?document$4.createElement(v):{}},DESCRIPTORS$4$2=descriptors$2,fails$4$2=fails$7$2,createElement$3=documentCreateElement$3,ie8DomDefine$2=!DESCRIPTORS$4$2&&!fails$4$2(function(){return Object.defineProperty(createElement$3("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$3$2=descriptors$2,fails$3$2=fails$7$2,v8PrototypeDefineBug$2=DESCRIPTORS$3$2&&fails$3$2(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$3$2=isObject$5$2,$String$2$2=String,$TypeError$4$2=TypeError,anObject$3$2=function(v){if(isObject$3$2(v))return v;throw $TypeError$4$2($String$2$2(v)+" is not an object")},NATIVE_BIND$5=functionBindNative$2,call$3$2=Function.prototype.call,functionCall$2=NATIVE_BIND$5?call$3$2.bind(call$3$2):function(){return call$3$2.apply(call$3$2,arguments)},global$7$2=global$9$2,isCallable$8$2=isCallable$a$2,aFunction$2=function(v){return isCallable$8$2(v)?v:void 0},getBuiltIn$2$2=function(v,k){return arguments.length<2?aFunction$2(global$7$2[v]):global$7$2[v]&&global$7$2[v][k]},uncurryThis$4$2=functionUncurryThis$2,objectIsPrototypeOf$2=uncurryThis$4$2({}.isPrototypeOf),getBuiltIn$1$2=getBuiltIn$2$2,engineUserAgent$2=getBuiltIn$1$2("navigator","userAgent")||"",global$6$2=global$9$2,userAgent$5=engineUserAgent$2,process$5=global$6$2.process,Deno$2=global$6$2.Deno,versions$2=process$5&&process$5.versions||Deno$2&&Deno$2.version,v8$2=versions$2&&versions$2.v8,match$2,version$2;v8$2&&(match$2=v8$2.split("."),version$2=match$2[0]>0&&match$2[0]<4?1:+(match$2[0]+match$2[1]));!version$2&&userAgent$5&&(match$2=userAgent$5.match(/Edge\/(\d+)/),(!match$2||match$2[1]>=74)&&(match$2=userAgent$5.match(/Chrome\/(\d+)/),match$2&&(version$2=+match$2[1])));var engineV8Version$2=version$2,V8_VERSION$3=engineV8Version$2,fails$2$2=fails$7$2,nativeSymbol$2=!!Object.getOwnPropertySymbols&&!fails$2$2(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$3&&V8_VERSION$3<41}),NATIVE_SYMBOL$1$2=nativeSymbol$2,useSymbolAsUid$2=NATIVE_SYMBOL$1$2&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$a=getBuiltIn$2$2,isCallable$7$2=isCallable$a$2,isPrototypeOf$1$2=objectIsPrototypeOf$2,USE_SYMBOL_AS_UID$1$2=useSymbolAsUid$2,$Object$1$2=Object,isSymbol$2$2=USE_SYMBOL_AS_UID$1$2?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$a("Symbol");return isCallable$7$2(k)&&isPrototypeOf$1$2(k.prototype,$Object$1$2(v))},$String$1$2=String,tryToString$1$2=function(v){try{return $String$1$2(v)}catch{return"Object"}},isCallable$6$2=isCallable$a$2,tryToString$6=tryToString$1$2,$TypeError$3$2=TypeError,aCallable$1$2=function(v){if(isCallable$6$2(v))return v;throw $TypeError$3$2(tryToString$6(v)+" is not a function")},aCallable$9=aCallable$1$2,getMethod$1$2=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$9(ie)},call$2$2=functionCall$2,isCallable$5$2=isCallable$a$2,isObject$2$2=isObject$5$2,$TypeError$2$2=TypeError,ordinaryToPrimitive$1$2=function(v,k){var ie,ae;if(k==="string"&&isCallable$5$2(ie=v.toString)&&!isObject$2$2(ae=call$2$2(ie,v))||isCallable$5$2(ie=v.valueOf)&&!isObject$2$2(ae=call$2$2(ie,v))||k!=="string"&&isCallable$5$2(ie=v.toString)&&!isObject$2$2(ae=call$2$2(ie,v)))return ae;throw $TypeError$2$2("Can't convert object to primitive value")},shared$3$2={exports:{}},global$5$2=global$9$2,defineProperty$1$2=Object.defineProperty,defineGlobalProperty$2$2=function(v,k){try{defineProperty$1$2(global$5$2,v,{value:k,configurable:!0,writable:!0})}catch{global$5$2[v]=k}return k},global$4$2=global$9$2,defineGlobalProperty$1$2=defineGlobalProperty$2$2,SHARED$2="__core-js_shared__",store$3$2=global$4$2[SHARED$2]||defineGlobalProperty$1$2(SHARED$2,{}),sharedStore$2=store$3$2,store$2$2=sharedStore$2;(shared$3$2.exports=function(v,k){return store$2$2[v]||(store$2$2[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var uncurryThis$3$2=functionUncurryThis$2,id$3=0,postfix$2=Math.random(),toString$2$1=uncurryThis$3$2(1 .toString),uid$2$2=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$2$1(++id$3+postfix$2,36)},global$3$2=global$9$2,shared$2$2=shared$3$2.exports,hasOwn$3$2=hasOwnProperty_1$2,uid$1$2=uid$2$2,NATIVE_SYMBOL$3=nativeSymbol$2,USE_SYMBOL_AS_UID$3=useSymbolAsUid$2,WellKnownSymbolsStore$2=shared$2$2("wks"),Symbol$1$2=global$3$2.Symbol,symbolFor$2=Symbol$1$2&&Symbol$1$2.for,createWellKnownSymbol$2=USE_SYMBOL_AS_UID$3?Symbol$1$2:Symbol$1$2&&Symbol$1$2.withoutSetter||uid$1$2,wellKnownSymbol$3$2=function(v){if(!hasOwn$3$2(WellKnownSymbolsStore$2,v)||!(NATIVE_SYMBOL$3||typeof WellKnownSymbolsStore$2[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$3&&hasOwn$3$2(Symbol$1$2,v)?WellKnownSymbolsStore$2[v]=Symbol$1$2[v]:USE_SYMBOL_AS_UID$3&&symbolFor$2?WellKnownSymbolsStore$2[v]=symbolFor$2(k):WellKnownSymbolsStore$2[v]=createWellKnownSymbol$2(k)}return WellKnownSymbolsStore$2[v]},call$1$2=functionCall$2,isObject$1$2=isObject$5$2,isSymbol$1$2=isSymbol$2$2,getMethod$5=getMethod$1$2,ordinaryToPrimitive$3=ordinaryToPrimitive$1$2,wellKnownSymbol$2$2=wellKnownSymbol$3$2,$TypeError$1$2=TypeError,TO_PRIMITIVE$2=wellKnownSymbol$2$2("toPrimitive"),toPrimitive$1$2=function(v,k){if(!isObject$1$2(v)||isSymbol$1$2(v))return v;var ie=getMethod$5(v,TO_PRIMITIVE$2),ae;if(ie){if(k===void 0&&(k="default"),ae=call$1$2(ie,v,k),!isObject$1$2(ae)||isSymbol$1$2(ae))return ae;throw $TypeError$1$2("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$3(v,k)},toPrimitive$4=toPrimitive$1$2,isSymbol$5=isSymbol$2$2,toPropertyKey$1$2=function(v){var k=toPrimitive$4(v,"string");return isSymbol$5(k)?k:k+""},DESCRIPTORS$2$2=descriptors$2,IE8_DOM_DEFINE$3=ie8DomDefine$2,V8_PROTOTYPE_DEFINE_BUG$3=v8PrototypeDefineBug$2,anObject$2$2=anObject$3$2,toPropertyKey$6=toPropertyKey$1$2,$TypeError$d=TypeError,$defineProperty$2=Object.defineProperty,$getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,ENUMERABLE$2="enumerable",CONFIGURABLE$3="configurable",WRITABLE$2="writable";objectDefineProperty$2.f=DESCRIPTORS$2$2?V8_PROTOTYPE_DEFINE_BUG$3?function v(k,ie,ae){if(anObject$2$2(k),ie=toPropertyKey$6(ie),anObject$2$2(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$2 in ae&&!ae[WRITABLE$2]){var ce=$getOwnPropertyDescriptor$3(k,ie);ce&&ce[WRITABLE$2]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$3 in ae?ae[CONFIGURABLE$3]:ce[CONFIGURABLE$3],enumerable:ENUMERABLE$2 in ae?ae[ENUMERABLE$2]:ce[ENUMERABLE$2],writable:!1})}return $defineProperty$2(k,ie,ae)}:$defineProperty$2:function v(k,ie,ae){if(anObject$2$2(k),ie=toPropertyKey$6(ie),anObject$2$2(ae),IE8_DOM_DEFINE$3)try{return $defineProperty$2(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$d("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var makeBuiltIn$2$2={exports:{}},uncurryThis$2$2=functionUncurryThis$2,isCallable$4$2=isCallable$a$2,store$1$2=sharedStore$2,functionToString$2=uncurryThis$2$2(Function.toString);isCallable$4$2(store$1$2.inspectSource)||(store$1$2.inspectSource=function(v){return functionToString$2(v)});var inspectSource$2$2=store$1$2.inspectSource,global$2$2=global$9$2,isCallable$3$2=isCallable$a$2,inspectSource$1$2=inspectSource$2$2,WeakMap$1$2=global$2$2.WeakMap,nativeWeakMap$2=isCallable$3$2(WeakMap$1$2)&&/native code/.test(inspectSource$1$2(WeakMap$1$2)),createPropertyDescriptor$1$2=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$1$2=descriptors$2,definePropertyModule$1$2=objectDefineProperty$2,createPropertyDescriptor$7=createPropertyDescriptor$1$2,createNonEnumerableProperty$1$2=DESCRIPTORS$1$2?function(v,k,ie){return definePropertyModule$1$2.f(v,k,createPropertyDescriptor$7(1,ie))}:function(v,k,ie){return v[k]=ie,v},shared$1$2=shared$3$2.exports,uid$5=uid$2$2,keys$2=shared$1$2("keys"),sharedKey$1$2=function(v){return keys$2[v]||(keys$2[v]=uid$5(v))},NATIVE_WEAK_MAP$2=nativeWeakMap$2,global$1$2=global$9$2,uncurryThis$1$2=functionUncurryThis$2,isObject$c=isObject$5$2,createNonEnumerableProperty$8=createNonEnumerableProperty$1$2,hasOwn$2$2=hasOwnProperty_1$2,shared$5=sharedStore$2,sharedKey$5=sharedKey$1$2,OBJECT_ALREADY_INITIALIZED$2="Object already initialized",TypeError$1$2=global$1$2.TypeError,WeakMap$4=global$1$2.WeakMap,set$3,get$3,has$2,enforce$2=function(v){return has$2(v)?get$3(v):set$3(v,{})},getterFor$2=function(v){return function(k){var ie;if(!isObject$c(k)||(ie=get$3(k)).type!==v)throw TypeError$1$2("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$2||shared$5.state?(store$5=shared$5.state||(shared$5.state=new WeakMap$4),wmget$2=uncurryThis$1$2(store$5.get),wmhas$2=uncurryThis$1$2(store$5.has),wmset$2=uncurryThis$1$2(store$5.set),set$3=function(v,k){if(wmhas$2(store$5,v))throw new TypeError$1$2(OBJECT_ALREADY_INITIALIZED$2);return k.facade=v,wmset$2(store$5,v,k),k},get$3=function(v){return wmget$2(store$5,v)||{}},has$2=function(v){return wmhas$2(store$5,v)}):(STATE$2=sharedKey$5("state"),set$3=function(v,k){if(hasOwn$2$2(v,STATE$2))throw new TypeError$1$2(OBJECT_ALREADY_INITIALIZED$2);return k.facade=v,createNonEnumerableProperty$8(v,STATE$2,k),k},get$3=function(v){return hasOwn$2$2(v,STATE$2)?v[STATE$2]:{}},has$2=function(v){return hasOwn$2$2(v,STATE$2)});var store$5,wmget$2,wmhas$2,wmset$2,STATE$2,internalState$2={set:set$3,get:get$3,has:has$2,enforce:enforce$2,getterFor:getterFor$2},fails$1$2=fails$7$2,isCallable$2$2=isCallable$a$2,hasOwn$1$2=hasOwnProperty_1$2,DESCRIPTORS$f=descriptors$2,CONFIGURABLE_FUNCTION_NAME$4=functionName$2.CONFIGURABLE,inspectSource$6=inspectSource$2$2,InternalStateModule$6=internalState$2,enforceInternalState$4=InternalStateModule$6.enforce,getInternalState$6=InternalStateModule$6.get,defineProperty3$2=Object.defineProperty,CONFIGURABLE_LENGTH$2=DESCRIPTORS$f&&!fails$1$2(function(){return defineProperty3$2(function(){},"length",{value:8}).length!==8}),TEMPLATE$2=String(String).split("String"),makeBuiltIn$1$2=makeBuiltIn$2$2.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$1$2(v,"name")||CONFIGURABLE_FUNCTION_NAME$4&&v.name!==k)&&(DESCRIPTORS$f?defineProperty3$2(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$2&&ie&&hasOwn$1$2(ie,"arity")&&v.length!==ie.arity&&defineProperty3$2(v,"length",{value:ie.arity});try{ie&&hasOwn$1$2(ie,"constructor")&&ie.constructor?DESCRIPTORS$f&&defineProperty3$2(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$4(v);return hasOwn$1$2(ae,"source")||(ae.source=TEMPLATE$2.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$2(function v(){return isCallable$2$2(this)&&getInternalState$6(this).source||inspectSource$6(this)},"toString");var isCallable$1$2=isCallable$a$2,definePropertyModule$8=objectDefineProperty$2,makeBuiltIn$4=makeBuiltIn$2$2.exports,defineGlobalProperty$5=defineGlobalProperty$2$2,defineBuiltIn$1$2=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$1$2(ie)&&makeBuiltIn$4(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$5(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$8.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},wellKnownSymbol$1$2=wellKnownSymbol$3$2,TO_STRING_TAG$1$2=wellKnownSymbol$1$2("toStringTag"),test$2={};test$2[TO_STRING_TAG$1$2]="z";var toStringTagSupport$2=String(test$2)==="[object z]",uncurryThis$l=functionUncurryThis$2,toString$1$2=uncurryThis$l({}.toString),stringSlice$2=uncurryThis$l("".slice),classofRaw$1$2=function(v){return stringSlice$2(toString$1$2(v),8,-1)},TO_STRING_TAG_SUPPORT$2=toStringTagSupport$2,isCallable$k=isCallable$a$2,classofRaw$3=classofRaw$1$2,wellKnownSymbol$g=wellKnownSymbol$3$2,TO_STRING_TAG$5=wellKnownSymbol$g("toStringTag"),$Object$6=Object,CORRECT_ARGUMENTS$2=classofRaw$3(function(){return arguments}())=="Arguments",tryGet$2=function(v,k){try{return v[k]}catch{}},classof$1$2=TO_STRING_TAG_SUPPORT$2?classofRaw$3:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$2(k=$Object$6(v),TO_STRING_TAG$5))=="string"?ie:CORRECT_ARGUMENTS$2?classofRaw$3(k):(ae=classofRaw$3(k))=="Object"&&isCallable$k(k.callee)?"Arguments":ae},classof$a=classof$1$2,$String$5=String,toString2$1=function(v){if(classof$a(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$5(v)},anObject$1$2=anObject$3$2,regexpFlags$1=function(){var v=anObject$1$2(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$f=functionCall$2,hasOwn2$2=hasOwnProperty_1$2,isPrototypeOf$6=objectIsPrototypeOf$2,regExpFlags$1=regexpFlags$1,RegExpPrototype$1$1=RegExp.prototype,regexpGetFlags$1=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$1)&&!hasOwn2$2(v,"flags")&&isPrototypeOf$6(RegExpPrototype$1$1,v)?call$f(regExpFlags$1,v):k},PROPER_FUNCTION_NAME$3=functionName$2.PROPER,defineBuiltIn$8=defineBuiltIn$1$2,anObject$c=anObject$3$2,$toString$1=toString2$1,fails$m=fails$7$2,getRegExpFlags$1=regexpGetFlags$1,TO_STRING$1="toString",RegExpPrototype$2=RegExp.prototype,n$ToString$1=RegExpPrototype$2[TO_STRING$1],NOT_GENERIC$1=fails$m(function(){return n$ToString$1.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$1=PROPER_FUNCTION_NAME$3&&n$ToString$1.name!=TO_STRING$1;(NOT_GENERIC$1||INCORRECT_NAME$1)&&defineBuiltIn$8(RegExp.prototype,TO_STRING$1,function(){var k=anObject$c(this),ie=$toString$1(k.source),ae=$toString$1(getRegExpFlags$1(k));return"/"+ie+"/"+ae},{unsafe:!0});function __awaiter$2(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$2="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iYXV0byIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMTQ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aIiBmaWxsPSIjMjA0MUUwIj48L3BhdGg+PHBhdGggZD0iTTE5LjAxOTkgMTYuMjE5MUMxOC4zMTIgMTcuMTM4NiAxNy40NDA3IDE3LjkyMzIgMTYuNDQ4NSAxOC41MzQ0QzEyLjk1MTMgMjAuNzY0OSA4LjUwMjc1IDIxLjA1MjkgNS4zODg0NyAyMC44OTc2TDUuMzIyNzUgMjIuMTk5M0M1Ljg0NTYxIDIyLjIyNDcgNi4zNDg0NyAyMi4yMzYgNi44MzcwNCAyMi4yMzZDMTUuNjE5OSAyMi4yMzYgMTkuMTY4NSAxOC4yODMxIDIwLjE1OTkgMTYuODcxM0wxOS4wMTcgMTYuMjA3OCIgZmlsbD0iIzIwNDFFMCI+PC9wYXRoPjxwYXRoIGQ9Ik0xOC42ODU2IDExLjI5MjNDMTkuMjY3OSAxMS4yOTIzIDE5LjczOTkgMTAuODI1OCAxOS43Mzk5IDEwLjI1MDRDMTkuNzM5OSA5LjY3NDk2IDE5LjI2NzkgOS4yMDg1IDE4LjY4NTYgOS4yMDg1QzE4LjEwMzQgOS4yMDg1IDE3LjYzMTMgOS42NzQ5NiAxNy42MzEzIDEwLjI1MDRDMTcuNjMxMyAxMC44MjU4IDE4LjEwMzQgMTEuMjkyMyAxOC42ODU2IDExLjI5MjNaIiBmaWxsPSIjMjA0MUUwIj48L3BhdGg+Cjwvc3ZnPgo=",setupXDEFIState=(v,k)=>__awaiter$2(void 0,void 0,void 0,function*(){const{selectedWalletId:ie}=v.getState(),ae=window.xfi.near;return ie==="xdefi"&&(yield ae.connect(k.networkId).catch(()=>null)),{wallet:ae,network:k}}),isInstalled$2=()=>waitFor(()=>{var v;return!!(!((v=window.xfi)===null||v===void 0)&&v.near)}).catch(()=>!1),XDEFI=({metadata:v,store:k,logger:ie,options:ae})=>__awaiter$2(void 0,void 0,void 0,function*(){const ce=yield setupXDEFIState(k,ae.network),fe=()=>ce.wallet.accounts?ce.wallet.accounts:[],le=ve=>{const pe=fe(),{contract:ye}=k.getState();if(!pe.length||!ye)throw new Error("Wallet not signed in");return ve.map(me=>({signerId:me.signerId||pe[0].accountId,receiverId:me.receiverId||ye.contractId,actions:me.actions}))};return{signIn(){return __awaiter$2(this,void 0,void 0,function*(){const ve=fe().map(pe=>({accountId:pe.accountId,publicKey:pe.publicKey.toString()}));return ve.length?ve:(yield ce.wallet.connect(ce.network.networkId),fe().map(pe=>({accountId:pe.accountId,publicKey:pe.publicKey.toString()})))})},signOut(){return __awaiter$2(this,void 0,void 0,function*(){yield ce.wallet.disconnect()})},getAccounts(){return __awaiter$2(this,void 0,void 0,function*(){return fe().map(ve=>({accountId:ve.accountId,publicKey:ve.publicKey.toString()}))})},verifyOwner({message:ve}){return __awaiter$2(this,void 0,void 0,function*(){throw ie.log("XDEFI:verifyOwner",{message:ve}),new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction(ve){return __awaiter$2(this,void 0,void 0,function*(){ie.log("signAndSendTransaction",ve);const{contract:pe}=k.getState();if(!fe().length||!pe)throw new Error("Wallet not signed in");return yield ce.wallet.signAndSendTransaction(le([ve])[0])})},signAndSendTransactions({transactions:ve}){return __awaiter$2(this,void 0,void 0,function*(){return ie.log("signAndSendTransactions",{transactions:ve}),yield ce.wallet.signAndSendTransactions(le(ve))})}}});function setupXDEFI({iconUrl:v=icon$2,deprecated:k=!1}={}){return()=>__awaiter$2(this,void 0,void 0,function*(){if((0,import_is_mobile$2.isMobile)())return null;const ae=yield isInstalled$2();return{id:"xdefi",type:"injected",metadata:{name:"XDEFI Wallet",description:"One wallet for all your Crypto",iconUrl:v,downloadUrl:"https://www.xdefi.io",deprecated:k,available:ae},init:XDEFI}})}var import_is_mobile$1=__toESM(require_is_mobile(),1),commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$1=function(v){return v&&v.Math==Math&&v},global$i=check$1(typeof globalThis=="object"&&globalThis)||check$1(typeof window=="object"&&window)||check$1(typeof self=="object"&&self)||check$1(typeof commonjsGlobal$1=="object"&&commonjsGlobal$1)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$1={},fails$a$1=function(v){try{return!!v()}catch{return!0}},fails$9$1=fails$a$1,descriptors$1=!fails$9$1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$8$1=fails$a$1,functionBindNative$1=!fails$8$1(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$1=functionBindNative$1,call$c$1=Function.prototype.call,functionCall$1=NATIVE_BIND$3$1?call$c$1.bind(call$c$1):function(){return call$c$1.apply(call$c$1,arguments)},objectPropertyIsEnumerable$1={},$propertyIsEnumerable$1={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG$1=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable$1.call({1:2},1);objectPropertyIsEnumerable$1.f=NASHORN_BUG$1?function v(k){var ie=getOwnPropertyDescriptor$2(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$1;var createPropertyDescriptor$2$1=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2$1=functionBindNative$1,FunctionPrototype$2$1=Function.prototype,bind$5=FunctionPrototype$2$1.bind,call$b$1=FunctionPrototype$2$1.call,uncurryThis$d$1=NATIVE_BIND$2$1&&bind$5.bind(call$b$1,call$b$1),functionUncurryThis$1=NATIVE_BIND$2$1?function(v){return v&&uncurryThis$d$1(v)}:function(v){return v&&function(){return call$b$1.apply(v,arguments)}},uncurryThis$c$1=functionUncurryThis$1,toString$1$1=uncurryThis$c$1({}.toString),stringSlice$1=uncurryThis$c$1("".slice),classofRaw$1$1=function(v){return stringSlice$1(toString$1$1(v),8,-1)},uncurryThis$b$1=functionUncurryThis$1,fails$7$1=fails$a$1,classof$4$1=classofRaw$1$1,$Object$3$1=Object,split$1=uncurryThis$b$1("".split),indexedObject$1=fails$7$1(function(){return!$Object$3$1("z").propertyIsEnumerable(0)})?function(v){return classof$4$1(v)=="String"?split$1(v,""):$Object$3$1(v)}:$Object$3$1,$TypeError$b=TypeError,requireObjectCoercible$2$1=function(v){if(v==null)throw $TypeError$b("Can't call method on "+v);return v},IndexedObject$3=indexedObject$1,requireObjectCoercible$1$1=requireObjectCoercible$2$1,toIndexedObject$3$1=function(v){return IndexedObject$3(requireObjectCoercible$1$1(v))},isCallable$h$1=function(v){return typeof v=="function"},isCallable$g$1=isCallable$h$1,isObject$7$1=function(v){return typeof v=="object"?v!==null:isCallable$g$1(v)},global$h$1=global$i,isCallable$f$1=isCallable$h$1,aFunction$1=function(v){return isCallable$f$1(v)?v:void 0},getBuiltIn$8=function(v,k){return arguments.length<2?aFunction$1(global$h$1[v]):global$h$1[v]&&global$h$1[v][k]},uncurryThis$a$1=functionUncurryThis$1,objectIsPrototypeOf$1=uncurryThis$a$1({}.isPrototypeOf),getBuiltIn$7=getBuiltIn$8,engineUserAgent$1=getBuiltIn$7("navigator","userAgent")||"",global$g$1=global$i,userAgent$3=engineUserAgent$1,process$3=global$g$1.process,Deno$1$1=global$g$1.Deno,versions$1=process$3&&process$3.versions||Deno$1$1&&Deno$1$1.version,v8$1=versions$1&&versions$1.v8,match$1,version$1;v8$1&&(match$1=v8$1.split("."),version$1=match$1[0]>0&&match$1[0]<4?1:+(match$1[0]+match$1[1]));!version$1&&userAgent$3&&(match$1=userAgent$3.match(/Edge\/(\d+)/),(!match$1||match$1[1]>=74)&&(match$1=userAgent$3.match(/Chrome\/(\d+)/),match$1&&(version$1=+match$1[1])));var engineV8Version$1=version$1,V8_VERSION$1=engineV8Version$1,fails$6$1=fails$a$1,nativeSymbol$1=!!Object.getOwnPropertySymbols&&!fails$6$1(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$1$1=nativeSymbol$1,useSymbolAsUid$1=NATIVE_SYMBOL$1$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$6$1=getBuiltIn$8,isCallable$e$1=isCallable$h$1,isPrototypeOf$2$1=objectIsPrototypeOf$1,USE_SYMBOL_AS_UID$1$1=useSymbolAsUid$1,$Object$2$1=Object,isSymbol$2$1=USE_SYMBOL_AS_UID$1$1?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$1("Symbol");return isCallable$e$1(k)&&isPrototypeOf$2$1(k.prototype,$Object$2$1(v))},$String$2$1=String,tryToString$4$1=function(v){try{return $String$2$1(v)}catch{return"Object"}},isCallable$d$1=isCallable$h$1,tryToString$3$1=tryToString$4$1,$TypeError$a$1=TypeError,aCallable$7=function(v){if(isCallable$d$1(v))return v;throw $TypeError$a$1(tryToString$3$1(v)+" is not a function")},aCallable$6=aCallable$7,getMethod$3=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$6(ie)},call$a$1=functionCall$1,isCallable$c$1=isCallable$h$1,isObject$6$1=isObject$7$1,$TypeError$9$1=TypeError,ordinaryToPrimitive$1$1=function(v,k){var ie,ae;if(k==="string"&&isCallable$c$1(ie=v.toString)&&!isObject$6$1(ae=call$a$1(ie,v))||isCallable$c$1(ie=v.valueOf)&&!isObject$6$1(ae=call$a$1(ie,v))||k!=="string"&&isCallable$c$1(ie=v.toString)&&!isObject$6$1(ae=call$a$1(ie,v)))return ae;throw $TypeError$9$1("Can't convert object to primitive value")},shared$3$1={exports:{}},global$f$1=global$i,defineProperty$2$1=Object.defineProperty,defineGlobalProperty$3$1=function(v,k){try{defineProperty$2$1(global$f$1,v,{value:k,configurable:!0,writable:!0})}catch{global$f$1[v]=k}return k},global$e$1=global$i,defineGlobalProperty$2$1=defineGlobalProperty$3$1,SHARED$1="__core-js_shared__",store$3$1=global$e$1[SHARED$1]||defineGlobalProperty$2$1(SHARED$1,{}),sharedStore$1=store$3$1,store$2$1=sharedStore$1;(shared$3$1.exports=function(v,k){return store$2$1[v]||(store$2$1[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$3=requireObjectCoercible$2$1,$Object$1$1=Object,toObject$1$1=function(v){return $Object$1$1(requireObjectCoercible$3(v))},uncurryThis$9$1=functionUncurryThis$1,toObject$7=toObject$1$1,hasOwnProperty$1=uncurryThis$9$1({}.hasOwnProperty),hasOwnProperty_1$1=Object.hasOwn||function v(k,ie){return hasOwnProperty$1(toObject$7(k),ie)},uncurryThis$8$1=functionUncurryThis$1,id$1=0,postfix$1=Math.random(),toString=uncurryThis$8$1(1 .toString),uid$2$1=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString(++id$1+postfix$1,36)},global$d$1=global$i,shared$2$1=shared$3$1.exports,hasOwn$8$1=hasOwnProperty_1$1,uid$1$1=uid$2$1,NATIVE_SYMBOL$2=nativeSymbol$1,USE_SYMBOL_AS_UID$2=useSymbolAsUid$1,WellKnownSymbolsStore$1=shared$2$1("wks"),Symbol$1$1=global$d$1.Symbol,symbolFor$1=Symbol$1$1&&Symbol$1$1.for,createWellKnownSymbol$1=USE_SYMBOL_AS_UID$2?Symbol$1$1:Symbol$1$1&&Symbol$1$1.withoutSetter||uid$1$1,wellKnownSymbol$a$1=function(v){if(!hasOwn$8$1(WellKnownSymbolsStore$1,v)||!(NATIVE_SYMBOL$2||typeof WellKnownSymbolsStore$1[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$2&&hasOwn$8$1(Symbol$1$1,v)?WellKnownSymbolsStore$1[v]=Symbol$1$1[v]:USE_SYMBOL_AS_UID$2&&symbolFor$1?WellKnownSymbolsStore$1[v]=symbolFor$1(k):WellKnownSymbolsStore$1[v]=createWellKnownSymbol$1(k)}return WellKnownSymbolsStore$1[v]},call$9$1=functionCall$1,isObject$5$1=isObject$7$1,isSymbol$1$1=isSymbol$2$1,getMethod$2$1=getMethod$3,ordinaryToPrimitive$2=ordinaryToPrimitive$1$1,wellKnownSymbol$9$1=wellKnownSymbol$a$1,$TypeError$8$1=TypeError,TO_PRIMITIVE$1=wellKnownSymbol$9$1("toPrimitive"),toPrimitive$1$1=function(v,k){if(!isObject$5$1(v)||isSymbol$1$1(v))return v;var ie=getMethod$2$1(v,TO_PRIMITIVE$1),ae;if(ie){if(k===void 0&&(k="default"),ae=call$9$1(ie,v,k),!isObject$5$1(ae)||isSymbol$1$1(ae))return ae;throw $TypeError$8$1("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$2(v,k)},toPrimitive$3=toPrimitive$1$1,isSymbol$4=isSymbol$2$1,toPropertyKey$2$1=function(v){var k=toPrimitive$3(v,"string");return isSymbol$4(k)?k:k+""},global$c$1=global$i,isObject$4$1=isObject$7$1,document$2=global$c$1.document,EXISTS$1$1=isObject$4$1(document$2)&&isObject$4$1(document$2.createElement),documentCreateElement$2=function(v){return EXISTS$1$1?document$2.createElement(v):{}},DESCRIPTORS$7$1=descriptors$1,fails$5$1=fails$a$1,createElement$1=documentCreateElement$2,ie8DomDefine$1=!DESCRIPTORS$7$1&&!fails$5$1(function(){return Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$6$1=descriptors$1,call$8$1=functionCall$1,propertyIsEnumerableModule$2=objectPropertyIsEnumerable$1,createPropertyDescriptor$1$1=createPropertyDescriptor$2$1,toIndexedObject$2$1=toIndexedObject$3$1,toPropertyKey$1$1=toPropertyKey$2$1,hasOwn$7$1=hasOwnProperty_1$1,IE8_DOM_DEFINE$1$1=ie8DomDefine$1,$getOwnPropertyDescriptor$1$1=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$1.f=DESCRIPTORS$6$1?$getOwnPropertyDescriptor$1$1:function v(k,ie){if(k=toIndexedObject$2$1(k),ie=toPropertyKey$1$1(ie),IE8_DOM_DEFINE$1$1)try{return $getOwnPropertyDescriptor$1$1(k,ie)}catch{}if(hasOwn$7$1(k,ie))return createPropertyDescriptor$1$1(!call$8$1(propertyIsEnumerableModule$2.f,k,ie),k[ie])};var objectDefineProperty$1={},DESCRIPTORS$5$1=descriptors$1,fails$4$1=fails$a$1,v8PrototypeDefineBug$1=DESCRIPTORS$5$1&&fails$4$1(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$3$1=isObject$7$1,$String$1$1=String,$TypeError$7$1=TypeError,anObject$8$1=function(v){if(isObject$3$1(v))return v;throw $TypeError$7$1($String$1$1(v)+" is not an object")},DESCRIPTORS$4$1=descriptors$1,IE8_DOM_DEFINE$2=ie8DomDefine$1,V8_PROTOTYPE_DEFINE_BUG$2=v8PrototypeDefineBug$1,anObject$7$1=anObject$8$1,toPropertyKey$5=toPropertyKey$2$1,$TypeError$6$1=TypeError,$defineProperty$1=Object.defineProperty,$getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,ENUMERABLE$1="enumerable",CONFIGURABLE$1$1="configurable",WRITABLE$1="writable";objectDefineProperty$1.f=DESCRIPTORS$4$1?V8_PROTOTYPE_DEFINE_BUG$2?function v(k,ie,ae){if(anObject$7$1(k),ie=toPropertyKey$5(ie),anObject$7$1(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$1 in ae&&!ae[WRITABLE$1]){var ce=$getOwnPropertyDescriptor$2(k,ie);ce&&ce[WRITABLE$1]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$1 in ae?ae[CONFIGURABLE$1$1]:ce[CONFIGURABLE$1$1],enumerable:ENUMERABLE$1 in ae?ae[ENUMERABLE$1]:ce[ENUMERABLE$1],writable:!1})}return $defineProperty$1(k,ie,ae)}:$defineProperty$1:function v(k,ie,ae){if(anObject$7$1(k),ie=toPropertyKey$5(ie),anObject$7$1(ae),IE8_DOM_DEFINE$2)try{return $defineProperty$1(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$6$1("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$3$1=descriptors$1,definePropertyModule$3$1=objectDefineProperty$1,createPropertyDescriptor$6=createPropertyDescriptor$2$1,createNonEnumerableProperty$2$1=DESCRIPTORS$3$1?function(v,k,ie){return definePropertyModule$3$1.f(v,k,createPropertyDescriptor$6(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$1={exports:{}},DESCRIPTORS$2$1=descriptors$1,hasOwn$6$1=hasOwnProperty_1$1,FunctionPrototype$1$1=Function.prototype,getDescriptor$1=DESCRIPTORS$2$1&&Object.getOwnPropertyDescriptor,EXISTS$2=hasOwn$6$1(FunctionPrototype$1$1,"name"),PROPER$1=EXISTS$2&&function v(){}.name==="something",CONFIGURABLE$2=EXISTS$2&&(!DESCRIPTORS$2$1||DESCRIPTORS$2$1&&getDescriptor$1(FunctionPrototype$1$1,"name").configurable),functionName$1={EXISTS:EXISTS$2,PROPER:PROPER$1,CONFIGURABLE:CONFIGURABLE$2},uncurryThis$7$1=functionUncurryThis$1,isCallable$b$1=isCallable$h$1,store$1$1=sharedStore$1,functionToString$1=uncurryThis$7$1(Function.toString);isCallable$b$1(store$1$1.inspectSource)||(store$1$1.inspectSource=function(v){return functionToString$1(v)});var inspectSource$4=store$1$1.inspectSource,global$b$1=global$i,isCallable$a$1=isCallable$h$1,inspectSource$3$1=inspectSource$4,WeakMap$1$1=global$b$1.WeakMap,nativeWeakMap$1=isCallable$a$1(WeakMap$1$1)&&/native code/.test(inspectSource$3$1(WeakMap$1$1)),shared$1$1=shared$3$1.exports,uid$4=uid$2$1,keys=shared$1$1("keys"),sharedKey$1$1=function(v){return keys[v]||(keys[v]=uid$4(v))},hiddenKeys$3$1={},NATIVE_WEAK_MAP$1=nativeWeakMap$1,global$a$1=global$i,uncurryThis$6$1=functionUncurryThis$1,isObject$2$1=isObject$7$1,createNonEnumerableProperty$1$1=createNonEnumerableProperty$2$1,hasOwn$5$1=hasOwnProperty_1$1,shared$4=sharedStore$1,sharedKey$4=sharedKey$1$1,hiddenKeys$2$1=hiddenKeys$3$1,OBJECT_ALREADY_INITIALIZED$1="Object already initialized",TypeError$2$1=global$a$1.TypeError,WeakMap$3=global$a$1.WeakMap,set$1$1,get$2,has$1,enforce$1=function(v){return has$1(v)?get$2(v):set$1$1(v,{})},getterFor$1=function(v){return function(k){var ie;if(!isObject$2$1(k)||(ie=get$2(k)).type!==v)throw TypeError$2$1("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$1||shared$4.state?(store$4=shared$4.state||(shared$4.state=new WeakMap$3),wmget$1=uncurryThis$6$1(store$4.get),wmhas$1=uncurryThis$6$1(store$4.has),wmset$1=uncurryThis$6$1(store$4.set),set$1$1=function(v,k){if(wmhas$1(store$4,v))throw new TypeError$2$1(OBJECT_ALREADY_INITIALIZED$1);return k.facade=v,wmset$1(store$4,v,k),k},get$2=function(v){return wmget$1(store$4,v)||{}},has$1=function(v){return wmhas$1(store$4,v)}):(STATE$1=sharedKey$4("state"),hiddenKeys$2$1[STATE$1]=!0,set$1$1=function(v,k){if(hasOwn$5$1(v,STATE$1))throw new TypeError$2$1(OBJECT_ALREADY_INITIALIZED$1);return k.facade=v,createNonEnumerableProperty$1$1(v,STATE$1,k),k},get$2=function(v){return hasOwn$5$1(v,STATE$1)?v[STATE$1]:{}},has$1=function(v){return hasOwn$5$1(v,STATE$1)});var store$4,wmget$1,wmhas$1,wmset$1,STATE$1,internalState$1={set:set$1$1,get:get$2,has:has$1,enforce:enforce$1,getterFor:getterFor$1},fails$3$1=fails$a$1,isCallable$9$1=isCallable$h$1,hasOwn$4$1=hasOwnProperty_1$1,DESCRIPTORS$1$1=descriptors$1,CONFIGURABLE_FUNCTION_NAME$3=functionName$1.CONFIGURABLE,inspectSource$2$1=inspectSource$4,InternalStateModule$1$1=internalState$1,enforceInternalState$3=InternalStateModule$1$1.enforce,getInternalState$5=InternalStateModule$1$1.get,defineProperty$1$1=Object.defineProperty,CONFIGURABLE_LENGTH$1=DESCRIPTORS$1$1&&!fails$3$1(function(){return defineProperty$1$1(function(){},"length",{value:8}).length!==8}),TEMPLATE$1=String(String).split("String"),makeBuiltIn$1$1=makeBuiltIn$2$1.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$4$1(v,"name")||CONFIGURABLE_FUNCTION_NAME$3&&v.name!==k)&&(DESCRIPTORS$1$1?defineProperty$1$1(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$1&&ie&&hasOwn$4$1(ie,"arity")&&v.length!==ie.arity&&defineProperty$1$1(v,"length",{value:ie.arity});try{ie&&hasOwn$4$1(ie,"constructor")&&ie.constructor?DESCRIPTORS$1$1&&defineProperty$1$1(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$3(v);return hasOwn$4$1(ae,"source")||(ae.source=TEMPLATE$1.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$1(function v(){return isCallable$9$1(this)&&getInternalState$5(this).source||inspectSource$2$1(this)},"toString");var isCallable$8$1=isCallable$h$1,definePropertyModule$2$1=objectDefineProperty$1,makeBuiltIn$3=makeBuiltIn$2$1.exports,defineGlobalProperty$1$1=defineGlobalProperty$3$1,defineBuiltIn$3$1=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$8$1(ie)&&makeBuiltIn$3(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$1(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$2$1.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$1={},ceil$1=Math.ceil,floor$4=Math.floor,mathTrunc$1=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$4:ceil$1)(ie)},trunc2$1=mathTrunc$1,toIntegerOrInfinity$2$1=function(v){var k=+v;return k!==k||k===0?0:trunc2$1(k)},toIntegerOrInfinity$1$1=toIntegerOrInfinity$2$1,max$2=Math.max,min$1$1=Math.min,toAbsoluteIndex$1$1=function(v,k){var ie=toIntegerOrInfinity$1$1(v);return ie<0?max$2(ie+k,0):min$1$1(ie,k)},toIntegerOrInfinity$6=toIntegerOrInfinity$2$1,min$2=Math.min,toLength$1$1=function(v){return v>0?min$2(toIntegerOrInfinity$6(v),9007199254740991):0},toLength$6=toLength$1$1,lengthOfArrayLike$2$1=function(v){return toLength$6(v.length)},toIndexedObject$1$1=toIndexedObject$3$1,toAbsoluteIndex$5=toAbsoluteIndex$1$1,lengthOfArrayLike$1$1=lengthOfArrayLike$2$1,createMethod$2=function(v){return function(k,ie,ae){var ce=toIndexedObject$1$1(k),fe=lengthOfArrayLike$1$1(ce),le=toAbsoluteIndex$5(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$1={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$5$1=functionUncurryThis$1,hasOwn$3$1=hasOwnProperty_1$1,toIndexedObject$7=toIndexedObject$3$1,indexOf$1=arrayIncludes$1.indexOf,hiddenKeys$1$1=hiddenKeys$3$1,push$2=uncurryThis$5$1([].push),objectKeysInternal$1=function(v,k){var ie=toIndexedObject$7(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$3$1(hiddenKeys$1$1,fe)&&hasOwn$3$1(ie,fe)&&push$2(ce,fe);for(;k.length>ae;)hasOwn$3$1(ie,fe=k[ae++])&&(~indexOf$1(ce,fe)||push$2(ce,fe));return ce},enumBugKeys$1$1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$2=objectKeysInternal$1,enumBugKeys$4=enumBugKeys$1$1,hiddenKeys$5=enumBugKeys$4.concat("length","prototype");objectGetOwnPropertyNames$1.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$2(k,hiddenKeys$5)};var objectGetOwnPropertySymbols$1={};objectGetOwnPropertySymbols$1.f=Object.getOwnPropertySymbols;var getBuiltIn$5$1=getBuiltIn$8,uncurryThis$4$1=functionUncurryThis$1,getOwnPropertyNamesModule$1=objectGetOwnPropertyNames$1,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols$1,anObject$6$1=anObject$8$1,concat$2=uncurryThis$4$1([].concat),ownKeys$1$1=getBuiltIn$5$1("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$1.f(anObject$6$1(k)),ae=getOwnPropertySymbolsModule$2.f;return ae?concat$2(ie,ae(k)):ie},hasOwn$2$1=hasOwnProperty_1$1,ownKeys2$1=ownKeys$1$1,getOwnPropertyDescriptorModule$2=objectGetOwnPropertyDescriptor$1,definePropertyModule$1$1=objectDefineProperty$1,copyConstructorProperties$1$1=function(v,k,ie){for(var ae=ownKeys2$1(k),ce=definePropertyModule$1$1.f,fe=getOwnPropertyDescriptorModule$2.f,le=0;le=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$3]=ae,SUBCLASSING=ie.then(function(){})instanceof ae,SUBCLASSING?!k&&IS_BROWSER&&!NATIVE_PROMISE_REJECTION_EVENT$1:!0}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING},newPromiseCapability$2={},aCallable$4$1=aCallable$7,PromiseCapability=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$1(k),this.reject=aCallable$4$1(ie)};newPromiseCapability$2.f=function(v){return new PromiseCapability(v)};var $$5=_export$1,IS_NODE=engineIsNode,global$1$1=global$i,call$6$1=functionCall$1,defineBuiltIn$1$1=defineBuiltIn$3$1,setPrototypeOf$5=objectSetPrototypeOf$1,setToStringTag$4=setToStringTag$1$1,setSpecies$2=setSpecies$1$1,aCallable$3$1=aCallable$7,isCallable$1$1=isCallable$h$1,isObject$1$1=isObject$7$1,anInstance$3=anInstance$1$1,speciesConstructor$2=speciesConstructor$1$1,task=task$1.set,microtask=microtask$1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue,InternalStateModule$5=internalState$1,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule$5.getterFor(PROMISE),setInternalState$3=InternalStateModule$5.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1$1=global$1$1.TypeError,document$3=global$1$1.document,process$4=global$1$1.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$3&&document$3.createEvent&&global$1$1.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,isThenable=function(v){var k;return isObject$1$1(v)&&isCallable$1$1(k=v.then)?k:!1},callReaction=function(v,k){var ie=k.value,ae=k.state==FULFILLED,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED&&onHandleUnhandled(k),k.rejection=HANDLED),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$1("Promise-chain cycle")):(ye=isThenable(pe))?call$6$1(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify=function(v,k){v.notified||(v.notified=!0,microtask(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled(v)}))},dispatchEvent=function(v,k,ie){var ae,ce;DISPATCH_EVENT?(ae=document$3.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$1$1.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT&&(ce=global$1$1["on"+v])?ce(ae):v===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",ie)},onUnhandled=function(v){call$6$1(task,global$1$1,function(){var k=v.facade,ie=v.value,ae=isUnhandled(v),ce;if(ae&&(ce=perform$2(function(){IS_NODE?process$4.emit("unhandledRejection",ie,k):dispatchEvent(UNHANDLED_REJECTION,k,ie)}),v.rejection=IS_NODE||isUnhandled(v)?UNHANDLED:HANDLED,ce.error))throw ce.value})},isUnhandled=function(v){return v.rejection!==HANDLED&&!v.parent},onHandleUnhandled=function(v){call$6$1(task,global$1$1,function(){var k=v.facade;IS_NODE?process$4.emit("rejectionHandled",k):dispatchEvent(REJECTION_HANDLED,k,v.value)})},bind$1$1=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED,notify(v,!0))},internalResolve=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$1("Promise can't be resolved itself");var ae=isThenable(k);ae?microtask(function(){var ce={done:!1};try{call$6$1(ae,k,bind$1$1(internalResolve,ce,v),bind$1$1(internalReject,ce,v))}catch(fe){internalReject(ce,fe,v)}}):(v.value=k,v.state=FULFILLED,notify(v,!1))}catch(ce){internalReject({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromiseConstructor=function(k){anInstance$3(this,PromisePrototype),aCallable$3$1(k),call$6$1(Internal,this);var ie=getInternalPromiseState(this);try{k(bind$1$1(internalResolve,ie),bind$1$1(internalReject,ie))}catch(ae){internalReject(ie,ae)}},PromisePrototype=PromiseConstructor.prototype,Internal=function(k){setInternalState$3(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})},Internal.prototype=defineBuiltIn$1$1(PromisePrototype,"then",function(k,ie){var ae=getInternalPromiseState(this),ce=newPromiseCapability$1(speciesConstructor$2(this,PromiseConstructor));return ae.parent=!0,ce.ok=isCallable$1$1(k)?k:!0,ce.fail=isCallable$1$1(ie)&&ie,ce.domain=IS_NODE?process$4.domain:void 0,ae.state==PENDING?ae.reactions.add(ce):microtask(function(){callReaction(ce,ae)}),ce.promise}),OwnPromiseCapability=function(){var v=new Internal,k=getInternalPromiseState(v);this.promise=v,this.resolve=bind$1$1(internalResolve,k),this.reject=bind$1$1(internalReject,k)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(v){return v===PromiseConstructor||v===PromiseWrapper?new OwnPromiseCapability(v):newGenericPromiseCapability(v)},isCallable$1$1(NativePromiseConstructor$2)&&NativePromisePrototype$1!==Object.prototype)){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$1$1(NativePromisePrototype$1,"then",function(k,ie){var ae=this;return new PromiseConstructor(function(ce,fe){call$6$1(nativeThen,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch{}setPrototypeOf$5&&setPrototypeOf$5(NativePromisePrototype$1,PromisePrototype)}$$5({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor});setToStringTag$4(PromiseConstructor,PROMISE,!1);setSpecies$2(PROMISE);var iterators$1={},wellKnownSymbol$2$1=wellKnownSymbol$a$1,Iterators$1$1=iterators$1,ITERATOR$2$1=wellKnownSymbol$2$1("iterator"),ArrayPrototype$2=Array.prototype,isArrayIteratorMethod$1$1=function(v){return v!==void 0&&(Iterators$1$1.Array===v||ArrayPrototype$2[ITERATOR$2$1]===v)},classof$9=classof$2$1,getMethod$1$1=getMethod$3,Iterators$5=iterators$1,wellKnownSymbol$1$1=wellKnownSymbol$a$1,ITERATOR$1$1=wellKnownSymbol$1$1("iterator"),getIteratorMethod$2$1=function(v){if(v!=null)return getMethod$1$1(v,ITERATOR$1$1)||getMethod$1$1(v,"@@iterator")||Iterators$5[classof$9(v)]},call$5$1=functionCall$1,aCallable$2$1=aCallable$7,anObject$3$1=anObject$8$1,tryToString$1$1=tryToString$4$1,getIteratorMethod$1$1=getIteratorMethod$2$1,$TypeError$1$1=TypeError,getIterator$1$1=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$1(v):k;if(aCallable$2$1(ie))return anObject$3$1(call$5$1(ie,v));throw $TypeError$1$1(tryToString$1$1(v)+" is not iterable")},call$4$1=functionCall$1,anObject$2$1=anObject$8$1,getMethod$4=getMethod$3,iteratorClose$1=function(v,k,ie){var ae,ce;anObject$2$1(v);try{if(ae=getMethod$4(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$4$1(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$2$1(ae),ie},bind$6=functionBindContext$1,call$3$1=functionCall$1,anObject$1$1=anObject$8$1,tryToString$5=tryToString$4$1,isArrayIteratorMethod$2=isArrayIteratorMethod$1$1,lengthOfArrayLike$7=lengthOfArrayLike$2$1,isPrototypeOf$5=objectIsPrototypeOf$1,getIterator$2=getIterator$1$1,getIteratorMethod$3=getIteratorMethod$2$1,iteratorClose=iteratorClose$1,$TypeError$c=TypeError,Result=function(v,k){this.stopped=v,this.result=k},ResultPrototype=Result.prototype,iterate$2=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$6(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose(pe,"normal",ur),new Result(!0,ur)},Or=function(ur){return ce?(anObject$1$1(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$3(v),!ye)throw $TypeError$c(tryToString$5(v)+" is not iterable");if(isArrayIteratorMethod$2(ye)){for(me=0,Ee=lengthOfArrayLike$7(v);Ee>me;me++)if(cr=Or(v[me]),cr&&isPrototypeOf$5(ResultPrototype,cr))return cr;return new Result(!1)}pe=getIterator$2(v,ye)}for(Br=pe.next;!($r=call$3$1(Br,pe)).done;){try{cr=Or($r.value)}catch(ur){iteratorClose(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$5(ResultPrototype,cr))return cr}return new Result(!1)},wellKnownSymbol$f=wellKnownSymbol$a$1,ITERATOR$5=wellKnownSymbol$f("iterator"),SAFE_CLOSING$1=!1;try{called$1=0,iteratorWithReturn$1={next:function(){return{done:!!called$1++}},return:function(){SAFE_CLOSING$1=!0}},iteratorWithReturn$1[ITERATOR$5]=function(){return this},Array.from(iteratorWithReturn$1,function(){throw 2})}catch(v){}var called$1,iteratorWithReturn$1,checkCorrectnessOfIteration$1$1=function(v,k){if(!k&&!SAFE_CLOSING$1)return!1;var ie=!1;try{var ae={};ae[ITERATOR$5]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration$2=checkCorrectnessOfIteration$1$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration$2(function(v){NativePromiseConstructor$1.all(v).then(void 0,function(){})}),$$4=_export$1,call$2$1=functionCall$1,aCallable$1$1=aCallable$7,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration;$$4({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1(function(){var ve=aCallable$1$1(ie.resolve),pe=[],ye=0,me=1;iterate$1(k,function(Ee){var cr=ye++,Br=!1;me++,call$2$1(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$3$1=_export$1,FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1$1=getBuiltIn$8,isCallable$j=isCallable$h$1,defineBuiltIn$7=defineBuiltIn$3$1,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype;$$3$1({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$j(NativePromiseConstructor)&&(method=getBuiltIn$1$1("Promise").prototype.catch,NativePromisePrototype.catch!==method&&defineBuiltIn$7(NativePromisePrototype,"catch",method,{unsafe:!0}));var method,$$2$1=_export$1,call$1$1=functionCall$1,aCallable$8=aCallable$7,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration;$$2$1({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1.f(ie),ce=ae.reject,fe=perform(function(){var le=aCallable$8(ie.resolve);iterate(k,function(ve){call$1$1(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$1$1=_export$1,call$e=functionCall$1,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR;$$1$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function v(k){var ie=newPromiseCapabilityModule.f(this);return call$e(ie.reject,void 0,k),ie.promise}});var anObject$b=anObject$8$1,isObject$b=isObject$7$1,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(v,k){if(anObject$b(v),isObject$b(k)&&k.constructor===v)return k;var ie=newPromiseCapability.f(v),ae=ie.resolve;return ae(k),ie.promise},$$6=_export$1,getBuiltIn$9=getBuiltIn$8,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;getBuiltIn$9("Promise");$$6({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function v(k){return promiseResolve(this,k)}});function __awaiter$1(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAXFAAAFxQFJPlfkAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMg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Efr7IB65Ct1nOyJvHHTcoq0fApEFMgOhpEupZwupZANIofsLofgj9eoO+0EGgNLSWW+/4I/fVRjjAhQxxp3s3ZsSAEWWhXCE+A/Qmf8N2oQQrzjyLK8viYo0K+bVG7og9UkeRhFvIJJbQLxxtV27GxYARTRCCIoyFin/jifh0grKdSAa5AeW8E7LKtrgREWeOWf84O8gngMa32CMP40Qc5B8aQkPPVxRByluhJkctHatqYVd7QliCNAPqFFBh5oKcjFC+TFBtUVfD6v+pgTA5UGXrK5I2QshegGtr/OQ9iLECqS+Ilmruq6k4FQlAK4ijY5eV68KpjCQYTi2jdvi6ircK6N0HAGbrUAciPXlkZVTCYByNyI3NAF5B0I2BdHEaT/UBQKdf/xwFMiqWhiMATuQg2MPPwXkGRBJII6CfhSp7CuvLJyKRP8/AIZkfQXsT/DhAAAAAElFTkSuQmCC",NARWALLETS_CODES={SIGN_IN:"sign-in",IS_INSTALLED:"is-installed",IS_SIGNED_IN:"is-signed-in",SIGN_OUT:"sign-out",GET_ACCOUNT_ID:"get-account-id",SIGN_AND_SEND_TRANSACTION:"sign-and-send-transaction",SIGN_AND_SEND_TRANSACTIONS:"sign-and-send-transactions"},id$2=0,pendingPromises=[],sendToNarwallets=(v,k=!1,ie)=>new Promise((ce,fe)=>{id$2++;let le;k&&(le=setTimeout(()=>fe(Error("timeout")),2e3)),pendingPromises.push({id_wallet_selector:id$2,code:v,resolve:ce,reject:fe,timeout:le}),window.postMessage({id:id$2,src:"ws",type:"nw",code:v,dest:"ext",params:ie})}),isInstalled$1=()=>__awaiter$1(void 0,void 0,void 0,function*(){return waitFor(()=>!!window.narwallets).catch(()=>!1)}),isSignedIn=()=>sendToNarwallets(NARWALLETS_CODES.IS_SIGNED_IN,!0),getAccountId=()=>sendToNarwallets(NARWALLETS_CODES.GET_ACCOUNT_ID,!1),callSignAndSendTransaction=v=>sendToNarwallets(NARWALLETS_CODES.SIGN_AND_SEND_TRANSACTION,!1,v),callSignAndSendTransactions=v=>sendToNarwallets(NARWALLETS_CODES.SIGN_AND_SEND_TRANSACTIONS,!1,v),findPendingPromiseById=v=>pendingPromises.filter(k=>k.id_wallet_selector===v)[0],removePendingPromise=v=>{const k=pendingPromises.indexOf(v);k>-1&&pendingPromises.splice(k,1)},setupNarwalletsState=()=>{window.addEventListener("message",v=>{if(v.source!==window)return;const{data:k}=v;if(!(!k||k.dest!=="page")&&k.id&&k.type==="nw"){const ie=findPendingPromiseById(k.id);ie&&(removePendingPromise(ie),ie.timeout&&clearTimeout(ie.timeout),k.result?k.result.err?ie.reject(k.result.err):ie.resolve(k.result.data):ie.reject("result is empty"))}})},Narwallets=({metadata:v,store:k,logger:ie})=>__awaiter$1(void 0,void 0,void 0,function*(){return{signIn(){return __awaiter$1(this,void 0,void 0,function*(){const ce=yield isSignedIn();let fe;return ce?fe=NARWALLETS_CODES.GET_ACCOUNT_ID:fe=NARWALLETS_CODES.SIGN_IN,[{accountId:yield sendToNarwallets(fe)}]})},signOut:()=>__awaiter$1(void 0,void 0,void 0,function*(){if(!(yield isSignedIn()))return;const ce=yield sendToNarwallets("sign-out");if(ce===!0)return;const fe=ce,le=new Error(typeof fe.error=="string"?fe.error:fe.error.type);if(le.message==="User reject")throw le;ie.log("Failed to sign out"),ie.error(le)}),getAccounts(){return __awaiter$1(this,void 0,void 0,function*(){return[{accountId:yield getAccountId()}]})},verifyOwner({message:ce}){return __awaiter$1(this,void 0,void 0,function*(){throw ie.log("Narwallets:verifyOwner",{message:ce}),new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction({signerId:ce,receiverId:fe,actions:le}){return __awaiter$1(this,void 0,void 0,function*(){ie.log("signAndSendTransaction",{signerId:ce,receiverId:fe,actions:le});const{contract:ve,accounts:pe}=k.getState();if(!pe||pe.length===0||!ve)throw new Error("Wallet not signed in");return callSignAndSendTransaction({signerId:ce,receiverId:fe||ve.contractId,actions:le})})},signAndSendTransactions({transactions:ce}){return __awaiter$1(this,void 0,void 0,function*(){ie.log("signAndSendTransactions",{transactions:ce});const{contract:fe,accounts:le}=k.getState();if(!le||le.length===0||!fe)throw new Error("Wallet not signed in");return callSignAndSendTransactions(ce)})}}}),setupNarwallets=({iconUrl:v=icon$1,deprecated:k=!1}={})=>()=>__awaiter$1(void 0,void 0,void 0,function*(){if((0,import_is_mobile$1.isMobile)())return null;setupNarwalletsState();const ae=yield isInstalled$1();return{id:"narwallets",type:"injected",metadata:{name:"Narwallets",description:null,iconUrl:v,downloadUrl:"https://chrome.google.com/webstore/detail/narwallets-v4/lkpeokpdkmcdaiadpmnnpimlgmdobkdj",deprecated:k,available:ae},init:Narwallets}}),import_is_mobile=__toESM(require_is_mobile(),1);function __awaiter(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check=function(v){return v&&v.Math==Math&&v},global$h=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$k=function(v){try{return!!v()}catch{return!0}},fails$j=fails$k,descriptors=!fails$j(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$i=fails$k,functionBindNative=!fails$i(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$d=Function.prototype.call,functionCall=NATIVE_BIND$3?call$d.bind(call$d):function(){return call$d.apply(call$d,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$1&&!$propertyIsEnumerable.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function v(k){var ie=getOwnPropertyDescriptor$1(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable;var createPropertyDescriptor$5=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,bind$3=FunctionPrototype$2.bind,call$c=FunctionPrototype$2.call,uncurryThis$j=NATIVE_BIND$2&&bind$3.bind(call$c,call$c),functionUncurryThis=NATIVE_BIND$2?function(v){return v&&uncurryThis$j(v)}:function(v){return v&&function(){return call$c.apply(v,arguments)}},uncurryThis$i=functionUncurryThis,toString$2=uncurryThis$i({}.toString),stringSlice=uncurryThis$i("".slice),classofRaw$1=function(v){return stringSlice(toString$2(v),8,-1)},uncurryThis$h=functionUncurryThis,fails$h=fails$k,classof$8=classofRaw$1,$Object$4=Object,split=uncurryThis$h("".split),indexedObject=fails$h(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(v){return classof$8(v)=="String"?split(v,""):$Object$4(v)}:$Object$4,$TypeError$a=TypeError,requireObjectCoercible$2=function(v){if(v==null)throw $TypeError$a("Can't call method on "+v);return v},IndexedObject$2=indexedObject,requireObjectCoercible$1=requireObjectCoercible$2,toIndexedObject$6=function(v){return IndexedObject$2(requireObjectCoercible$1(v))},isCallable$i=function(v){return typeof v=="function"},isCallable$h=isCallable$i,isObject$a=function(v){return typeof v=="object"?v!==null:isCallable$h(v)},global$g=global$h,isCallable$g=isCallable$i,aFunction=function(v){return isCallable$g(v)?v:void 0},getBuiltIn$6=function(v,k){return arguments.length<2?aFunction(global$g[v]):global$g[v]&&global$g[v][k]},uncurryThis$g=functionUncurryThis,objectIsPrototypeOf=uncurryThis$g({}.isPrototypeOf),getBuiltIn$5=getBuiltIn$6,engineUserAgent=getBuiltIn$5("navigator","userAgent")||"",global$f=global$h,userAgent$2=engineUserAgent,process$1=global$f.process,Deno$1=global$f.Deno,versions=process$1&&process$1.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,match,version;v8&&(match=v8.split("."),version=match[0]>0&&match[0]<4?1:+(match[0]+match[1]));!version&&userAgent$2&&(match=userAgent$2.match(/Edge\/(\d+)/),(!match||match[1]>=74)&&(match=userAgent$2.match(/Chrome\/(\d+)/),match&&(version=+match[1])));var engineV8Version=version,V8_VERSION=engineV8Version,fails$g=fails$k,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$g(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41}),NATIVE_SYMBOL$1=nativeSymbol,useSymbolAsUid=NATIVE_SYMBOL$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$4=getBuiltIn$6,isCallable$f=isCallable$i,isPrototypeOf$4=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$3=USE_SYMBOL_AS_UID$1?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$4("Symbol");return isCallable$f(k)&&isPrototypeOf$4(k.prototype,$Object$3(v))},$String$3=String,tryToString$4=function(v){try{return $String$3(v)}catch{return"Object"}},isCallable$e=isCallable$i,tryToString$3=tryToString$4,$TypeError$9=TypeError,aCallable$4=function(v){if(isCallable$e(v))return v;throw $TypeError$9(tryToString$3(v)+" is not a function")},aCallable$3=aCallable$4,getMethod$2=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$3(ie)},call$b=functionCall,isCallable$d=isCallable$i,isObject$9=isObject$a,$TypeError$8=TypeError,ordinaryToPrimitive$1=function(v,k){var ie,ae;if(k==="string"&&isCallable$d(ie=v.toString)&&!isObject$9(ae=call$b(ie,v))||isCallable$d(ie=v.valueOf)&&!isObject$9(ae=call$b(ie,v))||k!=="string"&&isCallable$d(ie=v.toString)&&!isObject$9(ae=call$b(ie,v)))return ae;throw $TypeError$8("Can't convert object to primitive value")},shared$3={exports:{}},global$e=global$h,defineProperty$7=Object.defineProperty,defineGlobalProperty$3=function(v,k){try{defineProperty$7(global$e,v,{value:k,configurable:!0,writable:!0})}catch{global$e[v]=k}return k},global$d=global$h,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$d[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore;(shared$3.exports=function(v,k){return store$2[v]||(store$2[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible=requireObjectCoercible$2,$Object$2=Object,toObject$6=function(v){return $Object$2(requireObjectCoercible(v))},uncurryThis$f=functionUncurryThis,toObject$5=toObject$6,hasOwnProperty=uncurryThis$f({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function v(k,ie){return hasOwnProperty(toObject$5(k),ie)},uncurryThis$e=functionUncurryThis,id=0,postfix=Math.random(),toString$1=uncurryThis$e(1 .toString),uid$3=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$1(++id+postfix,36)},global$c=global$h,shared$2=shared$3.exports,hasOwn$b=hasOwnProperty_1,uid$2=uid$3,NATIVE_SYMBOL=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$2("wks"),Symbol$1=global$c.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$2,wellKnownSymbol$e=function(v){if(!hasOwn$b(WellKnownSymbolsStore,v)||!(NATIVE_SYMBOL||typeof WellKnownSymbolsStore[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL&&hasOwn$b(Symbol$1,v)?WellKnownSymbolsStore[v]=Symbol$1[v]:USE_SYMBOL_AS_UID&&symbolFor?WellKnownSymbolsStore[v]=symbolFor(k):WellKnownSymbolsStore[v]=createWellKnownSymbol(k)}return WellKnownSymbolsStore[v]},call$a=functionCall,isObject$8=isObject$a,isSymbol$2=isSymbol$3,getMethod$1=getMethod$2,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$d=wellKnownSymbol$e,$TypeError$7=TypeError,TO_PRIMITIVE=wellKnownSymbol$d("toPrimitive"),toPrimitive$2=function(v,k){if(!isObject$8(v)||isSymbol$2(v))return v;var ie=getMethod$1(v,TO_PRIMITIVE),ae;if(ie){if(k===void 0&&(k="default"),ae=call$a(ie,v,k),!isObject$8(ae)||isSymbol$2(ae))return ae;throw $TypeError$7("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive(v,k)},toPrimitive$1=toPrimitive$2,isSymbol$1=isSymbol$3,toPropertyKey$4=function(v){var k=toPrimitive$1(v,"string");return isSymbol$1(k)?k:k+""},global$b=global$h,isObject$7=isObject$a,document$1=global$b.document,EXISTS$1=isObject$7(document$1)&&isObject$7(document$1.createElement),documentCreateElement$1=function(v){return EXISTS$1?document$1.createElement(v):{}},DESCRIPTORS$d=descriptors,fails$f=fails$k,createElement=documentCreateElement$1,ie8DomDefine=!DESCRIPTORS$d&&!fails$f(function(){return Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$c=descriptors,call$9=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$5=toIndexedObject$6,toPropertyKey$3=toPropertyKey$4,hasOwn$a=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$c?$getOwnPropertyDescriptor$1:function v(k,ie){if(k=toIndexedObject$5(k),ie=toPropertyKey$3(ie),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(k,ie)}catch{}if(hasOwn$a(k,ie))return createPropertyDescriptor$4(!call$9(propertyIsEnumerableModule$1.f,k,ie),k[ie])};var objectDefineProperty={},DESCRIPTORS$b=descriptors,fails$e=fails$k,v8PrototypeDefineBug=DESCRIPTORS$b&&fails$e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$6=isObject$a,$String$2=String,$TypeError$6=TypeError,anObject$a=function(v){if(isObject$6(v))return v;throw $TypeError$6($String$2(v)+" is not an object")},DESCRIPTORS$a=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$9=anObject$a,toPropertyKey$2=toPropertyKey$4,$TypeError$5=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable";objectDefineProperty.f=DESCRIPTORS$a?V8_PROTOTYPE_DEFINE_BUG$1?function v(k,ie,ae){if(anObject$9(k),ie=toPropertyKey$2(ie),anObject$9(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE in ae&&!ae[WRITABLE]){var ce=$getOwnPropertyDescriptor(k,ie);ce&&ce[WRITABLE]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1 in ae?ae[CONFIGURABLE$1]:ce[CONFIGURABLE$1],enumerable:ENUMERABLE in ae?ae[ENUMERABLE]:ce[ENUMERABLE],writable:!1})}return $defineProperty(k,ie,ae)}:$defineProperty:function v(k,ie,ae){if(anObject$9(k),ie=toPropertyKey$2(ie),anObject$9(ae),IE8_DOM_DEFINE)try{return $defineProperty(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$5("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$9=descriptors,definePropertyModule$6=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$6=DESCRIPTORS$9?function(v,k,ie){return definePropertyModule$6.f(v,k,createPropertyDescriptor$3(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2={exports:{}},DESCRIPTORS$8=descriptors,hasOwn$9=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$8&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$9(FunctionPrototype$1,"name"),PROPER=EXISTS&&function v(){}.name==="something",CONFIGURABLE=EXISTS&&(!DESCRIPTORS$8||DESCRIPTORS$8&&getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS,PROPER,CONFIGURABLE},uncurryThis$d=functionUncurryThis,isCallable$c=isCallable$i,store$1=sharedStore,functionToString=uncurryThis$d(Function.toString);isCallable$c(store$1.inspectSource)||(store$1.inspectSource=function(v){return functionToString(v)});var inspectSource$3=store$1.inspectSource,global$a=global$h,isCallable$b=isCallable$i,inspectSource$2=inspectSource$3,WeakMap$1=global$a.WeakMap,nativeWeakMap=isCallable$b(WeakMap$1)&&/native code/.test(inspectSource$2(WeakMap$1)),shared$1=shared$3.exports,uid$1=uid$3,keys$1=shared$1("keys"),sharedKey$3=function(v){return keys$1[v]||(keys$1[v]=uid$1(v))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$9=global$h,uncurryThis$c=functionUncurryThis,isObject$5=isObject$a,createNonEnumerableProperty$5=createNonEnumerableProperty$6,hasOwn$8=hasOwnProperty_1,shared=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=global$9.TypeError,WeakMap$2=global$9.WeakMap,set$1,get$1,has,enforce=function(v){return has(v)?get$1(v):set$1(v,{})},getterFor=function(v){return function(k){var ie;if(!isObject$5(k)||(ie=get$1(k)).type!==v)throw TypeError$2("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP||shared.state?(store=shared.state||(shared.state=new WeakMap$2),wmget=uncurryThis$c(store.get),wmhas=uncurryThis$c(store.has),wmset=uncurryThis$c(store.set),set$1=function(v,k){if(wmhas(store,v))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return k.facade=v,wmset(store,v,k),k},get$1=function(v){return wmget(store,v)||{}},has=function(v){return wmhas(store,v)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(v,k){if(hasOwn$8(v,STATE))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return k.facade=v,createNonEnumerableProperty$5(v,STATE,k),k},get$1=function(v){return hasOwn$8(v,STATE)?v[STATE]:{}},has=function(v){return hasOwn$8(v,STATE)});var store,wmget,wmhas,wmset,STATE,internalState={set:set$1,get:get$1,has,enforce,getterFor},fails$d=fails$k,isCallable$a=isCallable$i,hasOwn$7=hasOwnProperty_1,DESCRIPTORS$7=descriptors,CONFIGURABLE_FUNCTION_NAME$2=functionName.CONFIGURABLE,inspectSource$1=inspectSource$3,InternalStateModule$4=internalState,enforceInternalState$2=InternalStateModule$4.enforce,getInternalState$4=InternalStateModule$4.get,defineProperty$6=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$7&&!fails$d(function(){return defineProperty$6(function(){},"length",{value:8}).length!==8}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$7(v,"name")||CONFIGURABLE_FUNCTION_NAME$2&&v.name!==k)&&(DESCRIPTORS$7?defineProperty$6(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH&&ie&&hasOwn$7(ie,"arity")&&v.length!==ie.arity&&defineProperty$6(v,"length",{value:ie.arity});try{ie&&hasOwn$7(ie,"constructor")&&ie.constructor?DESCRIPTORS$7&&defineProperty$6(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$2(v);return hasOwn$7(ae,"source")||(ae.source=TEMPLATE.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1(function v(){return isCallable$a(this)&&getInternalState$4(this).source||inspectSource$1(this)},"toString");var isCallable$9=isCallable$i,definePropertyModule$5=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$6=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$9(ie)&&makeBuiltIn(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$5.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$3=Math.floor,mathTrunc=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$3:ceil)(ie)},trunc2=mathTrunc,toIntegerOrInfinity$5=function(v){var k=+v;return k!==k||k===0?0:trunc2(k)},toIntegerOrInfinity$4=toIntegerOrInfinity$5,max$1=Math.max,min$1=Math.min,toAbsoluteIndex$4=function(v,k){var ie=toIntegerOrInfinity$4(v);return ie<0?max$1(ie+k,0):min$1(ie,k)},toIntegerOrInfinity$3=toIntegerOrInfinity$5,min=Math.min,toLength$5=function(v){return v>0?min(toIntegerOrInfinity$3(v),9007199254740991):0},toLength$4=toLength$5,lengthOfArrayLike$6=function(v){return toLength$4(v.length)},toIndexedObject$4=toIndexedObject$6,toAbsoluteIndex$3=toAbsoluteIndex$4,lengthOfArrayLike$5=lengthOfArrayLike$6,createMethod$1=function(v){return function(k,ie,ae){var ce=toIndexedObject$4(k),fe=lengthOfArrayLike$5(ce),le=toAbsoluteIndex$3(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes={includes:createMethod$1(!0),indexOf:createMethod$1(!1)},uncurryThis$b=functionUncurryThis,hasOwn$6=hasOwnProperty_1,toIndexedObject$3=toIndexedObject$6,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$1=uncurryThis$b([].push),objectKeysInternal=function(v,k){var ie=toIndexedObject$3(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$6(hiddenKeys$2,fe)&&hasOwn$6(ie,fe)&&push$1(ce,fe);for(;k.length>ae;)hasOwn$6(ie,fe=k[ae++])&&(~indexOf(ce,fe)||push$1(ce,fe));return ce},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$2.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1(k,hiddenKeys$1)};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var getBuiltIn$3=getBuiltIn$6,uncurryThis$a=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$8=anObject$a,concat$1=uncurryThis$a([].concat),ownKeys$1=getBuiltIn$3("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule.f(anObject$8(k)),ae=getOwnPropertySymbolsModule$1.f;return ae?concat$1(ie,ae(k)):ie},hasOwn$5=hasOwnProperty_1,ownKeys2=ownKeys$1,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor,definePropertyModule$4=objectDefineProperty,copyConstructorProperties$1=function(v,k,ie){for(var ae=ownKeys2(k),ce=definePropertyModule$4.f,fe=getOwnPropertyDescriptorModule$1.f,le=0;lefe;)for(var pe=IndexedObject$1(arguments[fe++]),ye=le?concat(objectKeys$1(pe),le(pe)):objectKeys$1(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$6||call$8(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign,$$3=_export,assign2=objectAssign;$$3({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2},{assign:assign2});var icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAAC9FBMVEUAAAAAEQsAEAgAEBAAEQsAEAsAEAsAEA0AEAsAEAsAEQsAEAsAEAoAEAoAEAwAEQsAEQs3wf8P5P4nz/4wyP8syv5Auv8pzf8j0/4c2P4I6/8W3v5Ct/49vP87vv4xxv8h1P4l0f4T4f8xdKA1w/8xgKYzxP9GtP8wr78K6f8U4P8Z3P82wv8tyf4wkrAxcp8X3f4xXJMG7P85v/8e1/4rzP8+u/8wrb4wpboxgqgyxf8wv8gxhqoxhKkxe6MO5v9LsP8wz9Axd6Exbp0g1v8wuMQwlrIM5/8xfqUxV5Ewo7kwmrQxeaIxX5Uwys0a2v8ws8Ewq70xja0xaJoxbJwxapsL6P8wtsNBuP8wnLUxcJ4R4v9Hs/8wvcYxZpkwlbExi6wwxsswwckxfaQxZJgxVI8xYZYF7v8wn7cwmLMwka9Ksf8wprsxiasxTItJsv8xWZJEtf9Etv8wusUxYpcxUo4xUI06v/8wyMwwxMowsMAyTowR4/9Nrv8wnrYwqbwwj64xiKsc2v8wqLwm0P8wtMIwobgEKSYwzM8wvMYySYkb3P8P5f8Y3v8wnbYW3/8g1f8uyv8j1P8e2P4D8P8yRocLIis8vv8xjq5Dt/8xoLgGHR0f2P8xb54LLzQoz/8xf6YGGBol0v8wssAworgwmbMwjKwPO0cKQEcMPkcLKTAU3/8HQkcxtMIMNTYX0vIdvOAxusUyQoUkYoA4sfAFeoIFRUc6hcIFIiABHRosy/8WwuAww8kkj5ckg5AkVngDGxYqtbcPVVUntOAkd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JiczTsThotlfODIM7tzhVa3mwClQjbkKxLS3OzVN0XAh5hO14XMzO3X5p5Vzs+QNiaSbrI83z9m+p789+ofyVWPwH1E/DHjh3gIAwCURAdpIAVrf/+pzVqmh5ieEeYwEI2citA5FaAyK0AkVsBIkeJ2mYPcGeP2s47apNX1Bojagc1ahX3M1CAR8QmuIfAAOoWrwrwjNbk64jW4Ed7Bwp/LVIdQDwGyw33EWicqvI3WLj0CHUuxrXIp1x7yWEYBoEAOoD/+bT3P22VHWqkxMouzLvBIAts5BWe0vXBpPD49iIFHt+jcOCftS+RhjMlmoWioK7AkZ+5Akd+5gq4/CdK0AmbwqObhsNwrYS+E6YNtzTwjrArZpSgvVAKZuWAJUjZME+jnQIXf1aN83MgrTuesPoJcA5kVMNztuelt1eORpG+bLfhf6Z11HBPfkUZAAAAAElFTkSuQmCC",resolveWalletUrl=(v,k)=>{if(k)return k;switch(v.networkId){case"mainnet":return"https://near-wallet-mainnet.finerwallet.io";case"testnet":return"https://near-wallet-testnet.finerwallet.io";default:throw new Error("Invalid wallet url")}};function setupFinerBrowser({walletUrl:v,iconUrl:k=icon,deprecated:ie=!1}={}){return ae=>__awaiter(this,void 0,void 0,function*(){const ce=yield setupMyNearWallet({walletUrl:resolveWalletUrl(ae.options.network,v),iconUrl:k})(ae);return ce?Object.assign(Object.assign({},ce),{id:"finer-wallet",metadata:Object.assign(Object.assign({},ce.metadata),{name:"FiNER Wallet",description:"FiNER Wallet Mobile",iconUrl:k,deprecated:ie,available:!0})}):null})}var wellKnownSymbol$c=wellKnownSymbol$e,TO_STRING_TAG$3=wellKnownSymbol$c("toStringTag"),test={};test[TO_STRING_TAG$3]="z";var toStringTagSupport=String(test)==="[object z]",TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$7=isCallable$i,classofRaw=classofRaw$1,wellKnownSymbol$b=wellKnownSymbol$e,TO_STRING_TAG$2=wellKnownSymbol$b("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS=classofRaw(function(){return arguments}())=="Arguments",tryGet=function(v,k){try{return v[k]}catch{}},classof$7=TO_STRING_TAG_SUPPORT?classofRaw:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet(k=$Object$1(v),TO_STRING_TAG$2))=="string"?ie:CORRECT_ARGUMENTS?classofRaw(k):(ae=classofRaw(k))=="Object"&&isCallable$7(k.callee)?"Arguments":ae},classof$6=classof$7,$String$1=String,toString2=function(v){if(classof$6(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$1(v)},anObject$7=anObject$a,regexpFlags=function(){var v=anObject$7(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$7=functionCall,hasOwn$4=hasOwnProperty_1,isPrototypeOf$3=objectIsPrototypeOf,regExpFlags=regexpFlags,RegExpPrototype$1=RegExp.prototype,regexpGetFlags=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1)&&!hasOwn$4(v,"flags")&&isPrototypeOf$3(RegExpPrototype$1,v)?call$7(regExpFlags,v):k},PROPER_FUNCTION_NAME$2=functionName.PROPER,defineBuiltIn$4=defineBuiltIn$6,anObject$6=anObject$a,$toString=toString2,fails$a=fails$k,getRegExpFlags=regexpGetFlags,TO_STRING="toString",RegExpPrototype=RegExp.prototype,n$ToString=RegExpPrototype[TO_STRING],NOT_GENERIC=fails$a(function(){return n$ToString.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME=PROPER_FUNCTION_NAME$2&&n$ToString.name!=TO_STRING;(NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$4(RegExp.prototype,TO_STRING,function(){var k=anObject$6(this),ie=$toString(k.source),ae=$toString(getRegExpFlags(k));return"/"+ie+"/"+ae},{unsafe:!0});var objectDefineProperties={},DESCRIPTORS$5=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$3=objectDefineProperty,anObject$5=anObject$a,toIndexedObject$2=toIndexedObject$6,objectKeys=objectKeys$2;objectDefineProperties.f=DESCRIPTORS$5&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function v(k,ie){anObject$5(k);for(var ae=toIndexedObject$2(ie),ce=objectKeys(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$3.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$2=getBuiltIn$6,html$1=getBuiltIn$2("document","documentElement"),anObject$4=anObject$a,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$1,documentCreateElement=documentCreateElement$1,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE$1="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$1("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(v){return LT+SCRIPT+GT+v+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(v){v.write(scriptTag("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame=function(){var v=documentCreateElement("iframe"),k="java"+SCRIPT+":",ie;return v.style.display="none",html.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag("document.F=Object")),ie.close(),ie.F},activeXDocument,NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch{}NullProtoObject=typeof document<"u"?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var v=enumBugKeys.length;v--;)delete NullProtoObject[PROTOTYPE$1][enumBugKeys[v]];return NullProtoObject()};hiddenKeys[IE_PROTO$1]=!0;var objectCreate=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor[PROTOTYPE$1]=anObject$4(k),ae=new EmptyConstructor,EmptyConstructor[PROTOTYPE$1]=null,ae[IE_PROTO$1]=k):ae=NullProtoObject(),ie===void 0?ae:definePropertiesModule.f(ae,ie)},wellKnownSymbol$a=wellKnownSymbol$e,create$2=objectCreate,defineProperty$4=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$a("unscopables"),ArrayPrototype$1=Array.prototype;ArrayPrototype$1[UNSCOPABLES]==null&&defineProperty$4(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$2(null)});var addToUnscopables$1=function(v){ArrayPrototype$1[UNSCOPABLES][v]=!0},iterators={},fails$9=fails$k,correctPrototypeGetter=!fails$9(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype}),hasOwn$3=hasOwnProperty_1,isCallable$6=isCallable$i,toObject$3=toObject$6,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey("IE_PROTO"),$Object=Object,ObjectPrototype$2=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(v){var k=toObject$3(v);if(hasOwn$3(k,IE_PROTO))return k[IE_PROTO];var ie=k.constructor;return isCallable$6(ie)&&k instanceof ie?ie.prototype:k instanceof $Object?ObjectPrototype$2:null},fails$8=fails$k,isCallable$5=isCallable$i,getPrototypeOf$3=objectGetPrototypeOf,defineBuiltIn$3=defineBuiltIn$6,wellKnownSymbol$9=wellKnownSymbol$e,ITERATOR$4=wellKnownSymbol$9("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator;[].keys&&(arrayIterator=[].keys(),"next"in arrayIterator?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$3(getPrototypeOf$3(arrayIterator)),PrototypeOfArrayIteratorPrototype!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype)):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=IteratorPrototype$2==null||fails$8(function(){var v={};return IteratorPrototype$2[ITERATOR$4].call(v)!==v});NEW_ITERATOR_PROTOTYPE&&(IteratorPrototype$2={});isCallable$5(IteratorPrototype$2[ITERATOR$4])||defineBuiltIn$3(IteratorPrototype$2,ITERATOR$4,function(){return this});var iteratorsCore={IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},defineProperty$3=objectDefineProperty.f,hasOwn$2=hasOwnProperty_1,wellKnownSymbol$8=wellKnownSymbol$e,TO_STRING_TAG$1=wellKnownSymbol$8("toStringTag"),setToStringTag$3=function(v,k,ie){v&&!ie&&(v=v.prototype),v&&!hasOwn$2(v,TO_STRING_TAG$1)&&defineProperty$3(v,TO_STRING_TAG$1,{configurable:!0,value:k})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$1=objectCreate,createPropertyDescriptor$2=createPropertyDescriptor$5,setToStringTag$2=setToStringTag$3,Iterators$4=iterators,returnThis$1=function(){return this},createIteratorConstructor$1=function(v,k,ie,ae){var ce=k+" Iterator";return v.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor$2(+!ae,ie)}),setToStringTag$2(v,ce,!1),Iterators$4[ce]=returnThis$1,v},isCallable$4=isCallable$i,$String=String,$TypeError$4=TypeError,aPossiblePrototype$1=function(v){if(typeof v=="object"||isCallable$4(v))return v;throw $TypeError$4("Can't set "+$String(v)+" as a prototype")},uncurryThis$8=functionUncurryThis,anObject$3=anObject$a,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var v=!1,k={},ie;try{ie=uncurryThis$8(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),ie(k,[]),v=k instanceof Array}catch{}return function(ce,fe){return anObject$3(ce),aPossiblePrototype(fe),v?ie(ce,fe):ce.__proto__=fe,ce}}():void 0),$$2=_export,call$6=functionCall,FunctionName$1=functionName,isCallable$3=isCallable$i,createIteratorConstructor=createIteratorConstructor$1,getPrototypeOf$2=objectGetPrototypeOf,setPrototypeOf$4=objectSetPrototypeOf,setToStringTag$1=setToStringTag$3,createNonEnumerableProperty$3=createNonEnumerableProperty$6,defineBuiltIn$2=defineBuiltIn$6,wellKnownSymbol$7=wellKnownSymbol$e,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$1=FunctionName$1.PROPER,CONFIGURABLE_FUNCTION_NAME$1=FunctionName$1.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$3=wellKnownSymbol$7("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(v,k,ie,ae,ce,fe,le){createIteratorConstructor(ie,k,ae);var ve=function(ur){if(ur===ce&&cr)return cr;if(!BUGGY_SAFARI_ITERATORS&&ur in me)return me[ur];switch(ur){case KEYS:return function(){return new ie(this,ur)};case VALUES:return function(){return new ie(this,ur)};case ENTRIES:return function(){return new ie(this,ur)}}return function(){return new ie(this)}},pe=k+" Iterator",ye=!1,me=v.prototype,Ee=me[ITERATOR$3]||me["@@iterator"]||ce&&me[ce],cr=!BUGGY_SAFARI_ITERATORS&&Ee||ve(ce),Br=k=="Array"&&me.entries||Ee,$r,Pr,Or;if(Br&&($r=getPrototypeOf$2(Br.call(new v)),$r!==Object.prototype&&$r.next&&(getPrototypeOf$2($r)!==IteratorPrototype&&(setPrototypeOf$4?setPrototypeOf$4($r,IteratorPrototype):isCallable$3($r[ITERATOR$3])||defineBuiltIn$2($r,ITERATOR$3,returnThis)),setToStringTag$1($r,pe,!0))),PROPER_FUNCTION_NAME$1&&ce==VALUES&&Ee&&Ee.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME$1?createNonEnumerableProperty$3(me,"name",VALUES):(ye=!0,cr=function(){return call$6(Ee,this)})),ce)if(Pr={values:ve(VALUES),keys:fe?cr:ve(KEYS),entries:ve(ENTRIES)},le)for(Or in Pr)(BUGGY_SAFARI_ITERATORS||ye||!(Or in me))&&defineBuiltIn$2(me,Or,Pr[Or]);else $$2({target:k,proto:!0,forced:BUGGY_SAFARI_ITERATORS||ye},Pr);return me[ITERATOR$3]!==cr&&defineBuiltIn$2(me,ITERATOR$3,cr,{name:ce}),Iterators$3[k]=cr,Pr},toIndexedObject$1=toIndexedObject$6,addToUnscopables=addToUnscopables$1,Iterators$2=iterators,InternalStateModule$3=internalState,defineProperty$2=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS$4=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$2=InternalStateModule$3.set,getInternalState$3=InternalStateModule$3.getterFor(ARRAY_ITERATOR);defineIterator(Array,"Array",function(v,k){setInternalState$2(this,{type:ARRAY_ITERATOR,target:toIndexedObject$1(v),index:0,kind:k})},function(){var v=getInternalState$3(this),k=v.target,ie=v.kind,ae=v.index++;return!k||ae>=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values");var values=Iterators$2.Arguments=Iterators$2.Array;addToUnscopables("keys");addToUnscopables("values");addToUnscopables("entries");if(DESCRIPTORS$4&&values.name!=="values")try{defineProperty$2(values,"name",{value:"values"})}catch(v){}var arrayBufferNative=typeof ArrayBuffer<"u"&&typeof DataView<"u",defineBuiltIn$1=defineBuiltIn$6,defineBuiltIns$1=function(v,k,ie){for(var ae in k)defineBuiltIn$1(v,ae,k[ae],ie);return v},isPrototypeOf$2=objectIsPrototypeOf,$TypeError$3=TypeError,anInstance$2=function(v,k){if(isPrototypeOf$2(k,v))return v;throw $TypeError$3("Incorrect invocation")},toIntegerOrInfinity$2=toIntegerOrInfinity$5,toLength$3=toLength$5,$RangeError$2=RangeError,toIndex$2=function(v){if(v===void 0)return 0;var k=toIntegerOrInfinity$2(v),ie=toLength$3(k);if(k!==ie)throw $RangeError$2("Wrong length or index");return ie},$Array$2=Array,abs=Math.abs,pow=Math.pow,floor$2=Math.floor,log=Math.log,LN2=Math.LN2,pack=function(v,k,ie){var ae=$Array$2(ie),ce=ie*8-k-1,fe=(1<>1,ve=k===23?pow(2,-24)-pow(2,-77):0,pe=v<0||v===0&&1/v<0?1:0,ye=0,me,Ee,cr;for(v=abs(v),v!=v||v===1/0?(Ee=v!=v?1:0,me=fe):(me=floor$2(log(v)/LN2),cr=pow(2,-me),v*cr<1&&(me--,cr*=2),me+le>=1?v+=ve/cr:v+=ve*pow(2,1-le),v*cr>=2&&(me++,cr/=2),me+le>=fe?(Ee=0,me=fe):me+le>=1?(Ee=(v*cr-1)*pow(2,k),me=me+le):(Ee=v*pow(2,le-1)*pow(2,k),me=0));k>=8;)ae[ye++]=Ee&255,Ee/=256,k-=8;for(me=me<0;)ae[ye++]=me&255,me/=256,ce-=8;return ae[--ye]|=pe*128,ae},unpack=function(v,k){var ie=v.length,ae=ie*8-k-1,ce=(1<>1,le=ae-7,ve=ie-1,pe=v[ve--],ye=pe&127,me;for(pe>>=7;le>0;)ye=ye*256+v[ve--],le-=8;for(me=ye&(1<<-le)-1,ye>>=-le,le+=k;le>0;)me=me*256+v[ve--],le-=8;if(ye===0)ye=1-fe;else{if(ye===ce)return me?NaN:pe?-1/0:1/0;me=me+pow(2,k),ye=ye-fe}return(pe?-1:1)*me*pow(2,ye-k)},ieee754={pack,unpack},toObject$2=toObject$6,toAbsoluteIndex$2=toAbsoluteIndex$4,lengthOfArrayLike$4=lengthOfArrayLike$6,arrayFill$1=function v(k){for(var ie=toObject$2(this),ae=lengthOfArrayLike$4(ie),ce=arguments.length,fe=toAbsoluteIndex$2(ce>1?arguments[1]:void 0,ae),le=ce>2?arguments[2]:void 0,ve=le===void 0?ae:toAbsoluteIndex$2(le,ae);ve>fe;)ie[fe++]=k;return ie},toPropertyKey$1=toPropertyKey$4,definePropertyModule$2=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$5,createProperty$1=function(v,k,ie){var ae=toPropertyKey$1(k);ae in v?definePropertyModule$2.f(v,ae,createPropertyDescriptor$1(0,ie)):v[ae]=ie},toAbsoluteIndex$1=toAbsoluteIndex$4,lengthOfArrayLike$3=lengthOfArrayLike$6,createProperty=createProperty$1,$Array$1=Array,max=Math.max,arraySliceSimple=function(v,k,ie){for(var ae=lengthOfArrayLike$3(v),ce=toAbsoluteIndex$1(k,ae),fe=toAbsoluteIndex$1(ie===void 0?ae:ie,ae),le=$Array$1(max(fe-ce,0)),ve=0;ce>8&255]},packInt32=function(v){return[v&255,v>>8&255,v>>16&255,v>>24&255]},unpackInt32=function(v){return v[3]<<24|v[2]<<16|v[1]<<8|v[0]},packFloat32=function(v){return packIEEE754(v,23,4)},packFloat64=function(v){return packIEEE754(v,52,8)},addGetter$1=function(v,k){defineProperty$1(v[PROTOTYPE],k,{get:function(){return getInternalState$2(this)[k]}})},get=function(v,k,ie,ae){var ce=toIndex$1(ie),fe=getInternalState$2(v);if(ce+k>fe.byteLength)throw RangeError$3(WRONG_INDEX);var le=getInternalState$2(fe.buffer).bytes,ve=ce+fe.byteOffset,pe=arraySlice$3(le,ve,ve+k);return ae?pe:reverse(pe)},set=function(v,k,ie,ae,ce,fe){var le=toIndex$1(ie),ve=getInternalState$2(v);if(le+k>ve.byteLength)throw RangeError$3(WRONG_INDEX);for(var pe=getInternalState$2(ve.buffer).bytes,ye=le+ve.byteOffset,me=ae(+ce),Ee=0;Eece)throw RangeError$3("Wrong offset");if(ae=ae===void 0?ce-fe:toLength$2(ae),fe+ae>ce)throw RangeError$3(WRONG_LENGTH$1);setInternalState$1(this,{buffer:k,byteLength:ae,byteOffset:fe}),DESCRIPTORS$3||(this.buffer=k,this.byteLength=ae,this.byteOffset=fe)},DataViewPrototype$1=$DataView[PROTOTYPE],DESCRIPTORS$3&&(addGetter$1($ArrayBuffer,"byteLength"),addGetter$1($DataView,"buffer"),addGetter$1($DataView,"byteLength"),addGetter$1($DataView,"byteOffset")),defineBuiltIns(DataViewPrototype$1,{getInt8:function(k){return get(this,1,k)[0]<<24>>24},getUint8:function(k){return get(this,1,k)[0]},getInt16:function(k){var ie=get(this,2,k,arguments.length>1?arguments[1]:void 0);return(ie[1]<<8|ie[0])<<16>>16},getUint16:function(k){var ie=get(this,2,k,arguments.length>1?arguments[1]:void 0);return ie[1]<<8|ie[0]},getInt32:function(k){return unpackInt32(get(this,4,k,arguments.length>1?arguments[1]:void 0))},getUint32:function(k){return unpackInt32(get(this,4,k,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(k){return unpackIEEE754(get(this,4,k,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(k){return unpackIEEE754(get(this,8,k,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(k,ie){set(this,1,k,packInt8,ie)},setUint8:function(k,ie){set(this,1,k,packInt8,ie)},setInt16:function(k,ie){set(this,2,k,packInt16,ie,arguments.length>2?arguments[2]:void 0)},setUint16:function(k,ie){set(this,2,k,packInt16,ie,arguments.length>2?arguments[2]:void 0)},setInt32:function(k,ie){set(this,4,k,packInt32,ie,arguments.length>2?arguments[2]:void 0)},setUint32:function(k,ie){set(this,4,k,packInt32,ie,arguments.length>2?arguments[2]:void 0)},setFloat32:function(k,ie){set(this,4,k,packFloat32,ie,arguments.length>2?arguments[2]:void 0)},setFloat64:function(k,ie){set(this,8,k,packFloat64,ie,arguments.length>2?arguments[2]:void 0)}});else{if(INCORRECT_ARRAY_BUFFER_NAME=PROPER_FUNCTION_NAME&&NativeArrayBuffer.name!==ARRAY_BUFFER,!fails$7(function(){NativeArrayBuffer(1)})||!fails$7(function(){new NativeArrayBuffer(-1)})||fails$7(function(){return new NativeArrayBuffer,new NativeArrayBuffer(1.5),new NativeArrayBuffer(NaN),INCORRECT_ARRAY_BUFFER_NAME&&!CONFIGURABLE_FUNCTION_NAME})){for($ArrayBuffer=function(k){return anInstance$1(this,ArrayBufferPrototype$1),new NativeArrayBuffer(toIndex$1(k))},$ArrayBuffer[PROTOTYPE]=ArrayBufferPrototype$1,keys2=getOwnPropertyNames$1(NativeArrayBuffer),j=0;keys2.length>j;)(key=keys2[j++])in $ArrayBuffer||createNonEnumerableProperty$2($ArrayBuffer,key,NativeArrayBuffer[key]);ArrayBufferPrototype$1.constructor=$ArrayBuffer}else INCORRECT_ARRAY_BUFFER_NAME&&CONFIGURABLE_FUNCTION_NAME&&createNonEnumerableProperty$2(NativeArrayBuffer,"name",ARRAY_BUFFER);setPrototypeOf$3&&getPrototypeOf$1(DataViewPrototype$1)!==ObjectPrototype$1&&setPrototypeOf$3(DataViewPrototype$1,ObjectPrototype$1),testView=new $DataView(new $ArrayBuffer(2)),$setInt8=uncurryThis$7(DataViewPrototype$1.setInt8),testView.setInt8(0,2147483648),testView.setInt8(1,2147483649),(testView.getInt8(0)||!testView.getInt8(1))&&defineBuiltIns(DataViewPrototype$1,{setInt8:function(k,ie){$setInt8(this,k,ie<<24>>24)},setUint8:function(k,ie){$setInt8(this,k,ie<<24>>24)}},{unsafe:!0})}var INCORRECT_ARRAY_BUFFER_NAME,keys2,j,key,testView,$setInt8;setToStringTag($ArrayBuffer,ARRAY_BUFFER);setToStringTag($DataView,DATA_VIEW);var arrayBuffer={ArrayBuffer:$ArrayBuffer,DataView:$DataView},uncurryThis$6=functionUncurryThis,fails$6=fails$k,isCallable$2=isCallable$i,classof$5=classof$7,getBuiltIn$1=getBuiltIn$6,inspectSource=inspectSource$3,noop=function(){},empty=[],construct=getBuiltIn$1("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$6(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function v(k){if(!isCallable$2(k))return!1;try{return construct(noop,empty,k),!0}catch{return!1}},isConstructorLegacy=function v(k){if(!isCallable$2(k))return!1;switch(classof$5(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource(k))}catch{return!0}};isConstructorLegacy.sham=!0;var isConstructor$2=!construct||fails$6(function(){var v;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){v=!0})||v})?isConstructorLegacy:isConstructorModern,isConstructor$1=isConstructor$2,tryToString$2=tryToString$4,$TypeError$2=TypeError,aConstructor$2=function(v){if(isConstructor$1(v))return v;throw $TypeError$2(tryToString$2(v)+" is not a constructor")},anObject$2=anObject$a,aConstructor$1=aConstructor$2,wellKnownSymbol$6=wellKnownSymbol$e,SPECIES$2=wellKnownSymbol$6("species"),speciesConstructor$1=function(v,k){var ie=anObject$2(v).constructor,ae;return ie===void 0||(ae=anObject$2(ie)[SPECIES$2])==null?k:aConstructor$1(ae)},$$1=_export,uncurryThis$5=functionUncurryThis,fails$5=fails$k,ArrayBufferModule$1=arrayBuffer,anObject$1=anObject$a,toAbsoluteIndex=toAbsoluteIndex$4,toLength$1=toLength$5,speciesConstructor=speciesConstructor$1,ArrayBuffer$3=ArrayBufferModule$1.ArrayBuffer,DataView$2=ArrayBufferModule$1.DataView,DataViewPrototype=DataView$2.prototype,un$ArrayBufferSlice=uncurryThis$5(ArrayBuffer$3.prototype.slice),getUint8=uncurryThis$5(DataViewPrototype.getUint8),setUint8=uncurryThis$5(DataViewPrototype.setUint8),INCORRECT_SLICE=fails$5(function(){return!new ArrayBuffer$3(2).slice(1,void 0).byteLength});$$1({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:INCORRECT_SLICE},{slice:function v(k,ie){if(un$ArrayBufferSlice&&ie===void 0)return un$ArrayBufferSlice(anObject$1(this),k);for(var ae=anObject$1(this).byteLength,ce=toAbsoluteIndex(k,ae),fe=toAbsoluteIndex(ie===void 0?ae:ie,ae),le=new(speciesConstructor(this,ArrayBuffer$3))(toLength$1(fe-ce)),ve=new DataView$2(this),pe=new DataView$2(le),ye=0;ce1?arguments[1]:void 0,le=fe!==void 0,ve=getIteratorMethod(ae),pe,ye,me,Ee,cr,Br;if(ve&&!isArrayIteratorMethod(ve))for(cr=getIterator(ae,ve),Br=cr.next,ae=[];!(Ee=call$4(Br,cr)).done;)ae.push(Ee.value);for(le&&ce>2&&(fe=bind$1(fe,arguments[2])),ye=lengthOfArrayLike$2(ae),me=new(aTypedArrayConstructor$1(ie))(ye),pe=0;ye>pe;pe++)me[pe]=le?fe(ae[pe],pe):ae[pe];return me},classof$2=classofRaw$1,isArray$1=Array.isArray||function v(k){return classof$2(k)=="Array"},isArray2=isArray$1,isConstructor3=isConstructor$2,isObject$2=isObject$a,wellKnownSymbol$1=wellKnownSymbol$e,SPECIES$1=wellKnownSymbol$1("species"),$Array=Array,arraySpeciesConstructor$1=function(v){var k;return isArray2(v)&&(k=v.constructor,isConstructor3(k)&&(k===$Array||isArray2(k.prototype))?k=void 0:isObject$2(k)&&(k=k[SPECIES$1],k===null&&(k=void 0))),k===void 0?$Array:k},arraySpeciesConstructor=arraySpeciesConstructor$1,arraySpeciesCreate$1=function(v,k){return new(arraySpeciesConstructor(v))(k===0?0:k)},bind=functionBindContext,uncurryThis$3=functionUncurryThis,IndexedObject=indexedObject,toObject=toObject$6,lengthOfArrayLike$1=lengthOfArrayLike$6,arraySpeciesCreate=arraySpeciesCreate$1,push=uncurryThis$3([].push),createMethod=function(v){var k=v==1,ie=v==2,ae=v==3,ce=v==4,fe=v==6,le=v==7,ve=v==5||fe;return function(pe,ye,me,Ee){for(var cr=toObject(pe),Br=IndexedObject(cr),$r=bind(ye,me),Pr=lengthOfArrayLike$1(Br),Or=0,ur=Ee||arraySpeciesCreate,jr=k?ur(pe,Pr):ie||le?ur(pe,0):void 0,Mr,Lr;Pr>Or;Or++)if((ve||Or in Br)&&(Mr=Br[Or],Lr=$r(Mr,Or,cr),v))if(k)jr[Or]=Lr;else if(Lr)switch(v){case 3:return!0;case 5:return Mr;case 6:return Or;case 2:push(jr,Mr)}else switch(v){case 4:return!1;case 7:push(jr,Mr)}return fe?-1:ae||ce?ce:jr}},arrayIteration={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterReject:createMethod(7)},getBuiltIn=getBuiltIn$6,definePropertyModule$1=objectDefineProperty,wellKnownSymbol=wellKnownSymbol$e,DESCRIPTORS$1=descriptors,SPECIES=wellKnownSymbol("species"),setSpecies$1=function(v){var k=getBuiltIn(v),ie=definePropertyModule$1.f;DESCRIPTORS$1&&k&&!k[SPECIES]&&ie(k,SPECIES,{configurable:!0,get:function(){return this}})},isCallable=isCallable$i,isObject$1=isObject$a,setPrototypeOf$1=objectSetPrototypeOf,inheritIfRequired$1=function(v,k,ie){var ae,ce;return setPrototypeOf$1&&isCallable(ae=k.constructor)&&ae!==ie&&isObject$1(ce=ae.prototype)&&ce!==ie.prototype&&setPrototypeOf$1(v,ce),v},$=_export,global$4=global$h,call$3=functionCall,DESCRIPTORS=descriptors,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS=typedArrayConstructorsRequireWrappers,ArrayBufferViewCore$4=arrayBufferViewCore,ArrayBufferModule=arrayBuffer,anInstance=anInstance$2,createPropertyDescriptor=createPropertyDescriptor$5,createNonEnumerableProperty=createNonEnumerableProperty$6,isIntegralNumber=isIntegralNumber$1,toLength=toLength$5,toIndex=toIndex$2,toOffset$1=toOffset$2,toPropertyKey=toPropertyKey$4,hasOwn2=hasOwnProperty_1,classof$1=classof$7,isObject=isObject$a,isSymbol=isSymbol$3,create2=objectCreate,isPrototypeOf=objectIsPrototypeOf,setPrototypeOf=objectSetPrototypeOf,getOwnPropertyNames2=objectGetOwnPropertyNames.f,typedArrayFrom=typedArrayFrom$1,forEach=arrayIteration.forEach,setSpecies=setSpecies$1,definePropertyModule=objectDefineProperty,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,InternalStateModule=internalState,inheritIfRequired=inheritIfRequired$1,getInternalState=InternalStateModule.get,setInternalState=InternalStateModule.set,enforceInternalState=InternalStateModule.enforce,nativeDefineProperty=definePropertyModule.f,nativeGetOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,round=Math.round,RangeError$2=global$4.RangeError,ArrayBuffer$1=ArrayBufferModule.ArrayBuffer,ArrayBufferPrototype=ArrayBuffer$1.prototype,DataView$1=ArrayBufferModule.DataView,NATIVE_ARRAY_BUFFER_VIEWS=ArrayBufferViewCore$4.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG=ArrayBufferViewCore$4.TYPED_ARRAY_TAG,TypedArray=ArrayBufferViewCore$4.TypedArray,TypedArrayPrototype=ArrayBufferViewCore$4.TypedArrayPrototype,aTypedArrayConstructor=ArrayBufferViewCore$4.aTypedArrayConstructor,isTypedArray=ArrayBufferViewCore$4.isTypedArray,BYTES_PER_ELEMENT="BYTES_PER_ELEMENT",WRONG_LENGTH="Wrong length",fromList=function(v,k){aTypedArrayConstructor(v);for(var ie=0,ae=k.length,ce=new v(ae);ae>ie;)ce[ie]=k[ie++];return ce},addGetter=function(v,k){nativeDefineProperty(v,k,{get:function(){return getInternalState(this)[k]}})},isArrayBuffer=function(v){var k;return isPrototypeOf(ArrayBufferPrototype,v)||(k=classof$1(v))=="ArrayBuffer"||k=="SharedArrayBuffer"},isTypedArrayIndex=function(v,k){return isTypedArray(v)&&!isSymbol(k)&&k in v&&isIntegralNumber(+k)&&k>=0},wrappedGetOwnPropertyDescriptor=function v(k,ie){return ie=toPropertyKey(ie),isTypedArrayIndex(k,ie)?createPropertyDescriptor(2,k[ie]):nativeGetOwnPropertyDescriptor(k,ie)},wrappedDefineProperty=function v(k,ie,ae){return ie=toPropertyKey(ie),isTypedArrayIndex(k,ie)&&isObject(ae)&&hasOwn2(ae,"value")&&!hasOwn2(ae,"get")&&!hasOwn2(ae,"set")&&!ae.configurable&&(!hasOwn2(ae,"writable")||ae.writable)&&(!hasOwn2(ae,"enumerable")||ae.enumerable)?(k[ie]=ae.value,k):nativeDefineProperty(k,ie,ae)};DESCRIPTORS?(NATIVE_ARRAY_BUFFER_VIEWS||(getOwnPropertyDescriptorModule.f=wrappedGetOwnPropertyDescriptor,definePropertyModule.f=wrappedDefineProperty,addGetter(TypedArrayPrototype,"buffer"),addGetter(TypedArrayPrototype,"byteOffset"),addGetter(TypedArrayPrototype,"byteLength"),addGetter(TypedArrayPrototype,"length")),$({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor,defineProperty:wrappedDefineProperty}),typedArrayConstructor.exports=function(v,k,ie){var ae=v.match(/\d+$/)[0]/8,ce=v+(ie?"Clamped":"")+"Array",fe="get"+v,le="set"+v,ve=global$4[ce],pe=ve,ye=pe&&pe.prototype,me={},Ee=function(Pr,Or){var ur=getInternalState(Pr);return ur.view[fe](Or*ae+ur.byteOffset,!0)},cr=function(Pr,Or,ur){var jr=getInternalState(Pr);ie&&(ur=(ur=round(ur))<0?0:ur>255?255:ur&255),jr.view[le](Or*ae+jr.byteOffset,ur,!0)},Br=function(Pr,Or){nativeDefineProperty(Pr,Or,{get:function(){return Ee(this,Or)},set:function(ur){return cr(this,Or,ur)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS&&(pe=k(function(Pr,Or,ur,jr){return anInstance(Pr,ye),inheritIfRequired(function(){return isObject(Or)?isArrayBuffer(Or)?jr!==void 0?new ve(Or,toOffset$1(ur,ae),jr):ur!==void 0?new ve(Or,toOffset$1(ur,ae)):new ve(Or):isTypedArray(Or)?fromList(pe,Or):call$3(typedArrayFrom,pe,Or):new ve(toIndex(Or))}(),Pr,pe)}),setPrototypeOf&&setPrototypeOf(pe,TypedArray),forEach(getOwnPropertyNames2(ve),function(Pr){Pr in pe||createNonEnumerableProperty(pe,Pr,ve[Pr])}),pe.prototype=ye):(pe=k(function(Pr,Or,ur,jr){anInstance(Pr,ye);var Mr=0,Lr=0,Vr,Gr,Ur;if(!isObject(Or))Ur=toIndex(Or),Gr=Ur*ae,Vr=new ArrayBuffer$1(Gr);else if(isArrayBuffer(Or)){Vr=Or,Lr=toOffset$1(ur,ae);var Qr=Or.byteLength;if(jr===void 0){if(Qr%ae||(Gr=Qr-Lr,Gr<0))throw RangeError$2(WRONG_LENGTH)}else if(Gr=toLength(jr)*ae,Gr+Lr>Qr)throw RangeError$2(WRONG_LENGTH);Ur=Gr/ae}else return isTypedArray(Or)?fromList(pe,Or):call$3(typedArrayFrom,pe,Or);for(setInternalState(Pr,{buffer:Vr,byteOffset:Lr,byteLength:Gr,length:Ur,view:new DataView$1(Vr)});Mr1?arguments[1]:void 0,ie>2?arguments[2]:void 0)},CONVERSION_BUG);var global$3=global$h,call$1=functionCall,ArrayBufferViewCore$2=arrayBufferViewCore,lengthOfArrayLike=lengthOfArrayLike$6,toOffset=toOffset$2,toIndexedObject=toObject$6,fails$2=fails$k,RangeError$1=global$3.RangeError,Int8Array$2=global$3.Int8Array,Int8ArrayPrototype=Int8Array$2&&Int8Array$2.prototype,$set=Int8ArrayPrototype&&Int8ArrayPrototype.set,aTypedArray$2=ArrayBufferViewCore$2.aTypedArray,exportTypedArrayMethod$2=ArrayBufferViewCore$2.exportTypedArrayMethod,WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS=!fails$2(function(){var v=new Uint8ClampedArray(2);return call$1($set,v,{length:1,0:3},1),v[1]!==3}),TO_OBJECT_BUG=WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS&&ArrayBufferViewCore$2.NATIVE_ARRAY_BUFFER_VIEWS&&fails$2(function(){var v=new Int8Array$2(2);return v.set(1),v.set("2",1),v[0]!==0||v[1]!==2});exportTypedArrayMethod$2("set",function v(k){aTypedArray$2(this);var ie=toOffset(arguments.length>1?arguments[1]:void 0,1),ae=toIndexedObject(k);if(WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS)return call$1($set,this,ae,ie);var ce=this.length,fe=lengthOfArrayLike(ae),le=0;if(fe+ie>ce)throw RangeError$1("Wrong length");for(;le0;)v[fe]=v[--fe];fe!==ae++&&(v[fe]=ce)}return v},merge=function(v,k,ie,ae){for(var ce=k.length,fe=ie.length,le=0,ve=0;le0&&1/ie<0?1:-1:k>ie}};exportTypedArrayMethod$1("sort",function v(k){return k!==void 0&&aCallable(k),STABLE_SORT?un$Sort(this,k):internalSort(aTypedArray$1(this),getSortCompare(k))},!STABLE_SORT||ACCEPT_INCORRECT_ARGUMENTS);var NATIVE_BIND=functionBindNative,FunctionPrototype=Function.prototype,apply$1=FunctionPrototype.apply,call=FunctionPrototype.call,functionApply=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND?call.bind(apply$1):function(){return call.apply(apply$1,arguments)}),uncurryThis=functionUncurryThis,arraySlice$1=uncurryThis([].slice),global$1=global$h,apply=functionApply,ArrayBufferViewCore=arrayBufferViewCore,fails=fails$k,arraySlice=arraySlice$1,Int8Array$1=global$1.Int8Array,aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod,$toLocaleString=[].toLocaleString,TO_LOCALE_STRING_BUG=!!Int8Array$1&&fails(function(){$toLocaleString.call(new Int8Array$1(1))}),FORCED=fails(function(){return[1,2].toLocaleString()!=new Int8Array$1([1,2]).toLocaleString()})||!fails(function(){Int8Array$1.prototype.toLocaleString.call([1,2])});exportTypedArrayMethod("toLocaleString",function v(){return apply($toLocaleString,TO_LOCALE_STRING_BUG?arraySlice(aTypedArray(this)):aTypedArray(this),arraySlice(arguments))},FORCED);var isInstalled=()=>waitFor(()=>{var v,k;return!!(!((k=(v=window.finer)===null||v===void 0?void 0:v.near)===null||k===void 0)&&k.isFiner)}).catch(()=>!1),setupFinerState=()=>{var v;return{wallet:(v=window.finer)===null||v===void 0?void 0:v.near}},FinerExtension=({options:v,metadata:k,store:ie,provider:ae,emitter:ce,logger:fe})=>__awaiter(void 0,void 0,void 0,function*(){const le=setupFinerState(),ve=()=>__awaiter(void 0,void 0,void 0,function*(){if(!le.wallet.isSignedIn())return;const Br=yield le.wallet.signOut();if(Br===!0)return;const $r=new Error(typeof Br.error=="string"?Br.error:Br.error.type);if($r.message==="User reject")throw $r;fe.log("Failed to sign out"),fe.error($r)}),pe=()=>{le.wallet.on("accountChanged",Br=>__awaiter(void 0,void 0,void 0,function*(){fe.log("onAccountChange",Br),ce.emit("signedOut",null)})),le.wallet.on("rpcChanged",Br=>__awaiter(void 0,void 0,void 0,function*(){fe.log("onNetworkChange",Br),v.network.networkId!==Br.networkId&&(yield ve(),ce.emit("signedOut",null),ce.emit("networkChanged",{networkId:Br.networkId}))}))},ye=()=>{const Br=le.wallet.getAccountId();return Br?[{accountId:Br}]:[]},me=Br=>Br.every($r=>$r.type==="FunctionCall"),Ee=Br=>{if(!me(Br))throw new Error(`Only 'FunctionCall' actions types are supported by ${k.name}`);return Br.map(Pr=>Pr.params)},cr=Br=>Br.map($r=>({receiverId:$r.receiverId,actions:Ee($r.actions)}));return le.wallet&&le.wallet.isSignedIn()&&pe(),{signIn({contractId:Br,methodNames:$r}){return __awaiter(this,void 0,void 0,function*(){const Pr=ye();if(Pr.length)return Pr;const{accessKey:Or,error:ur}=yield le.wallet.requestSignIn({contractId:Br,methodNames:$r});if(!Or||ur)throw yield ve(),new Error((typeof ur=="string"?ur:ur.type)||"Failed to sign in");return pe(),ye()})},signOut:ve,getAccounts(){return __awaiter(this,void 0,void 0,function*(){return ye()})},verifyOwner({message:Br}){return __awaiter(this,void 0,void 0,function*(){fe.log("Finer:verifyOwner",{message:Br});const $r=le.wallet.account();if(!$r){const Gr=yield le.wallet.signMessage(Br);if(Gr.error)throw new Error(Gr.error);return Gr.response}if(!$r.connection.signer.signMessage)throw new Error("Wallet is locked");const Pr=v.network.networkId,Or=$r.accountId,ur=yield $r.connection.signer.getPublicKey(Or,Pr),jr=yield ae.block({finality:"final"}),Mr={accountId:Or,message:Br,blockId:jr.header.hash,publicKey:Buffer.from(ur.data).toString("base64"),keyType:ur.keyType},Lr=JSON.stringify(Mr),Vr=yield $r.connection.signer.signMessage(new Uint8Array(Buffer.from(Lr)),Or,Pr);return Object.assign(Object.assign({},Mr),{signature:Buffer.from(Vr.signature).toString("base64"),keyType:Vr.publicKey.keyType})})},signAndSendTransaction({signerId:Br,receiverId:$r,actions:Pr}){return __awaiter(this,void 0,void 0,function*(){fe.log("signAndSendTransaction",{signerId:Br,receiverId:$r,actions:Pr});const{contract:Or}=ie.getState();if(!le.wallet.isSignedIn()||!Or)throw new Error("Wallet not signed in");return le.wallet.signAndSendTransaction({receiverId:$r||Or.contractId,actions:Ee(Pr)}).then(ur=>{var jr;if(ur.error)throw new Error(ur.error);if(ur.response&&"error"in ur.response)throw new Error(ur.response.error.message);if(!(!((jr=ur.response)===null||jr===void 0)&&jr.length))throw new Error("Invalid response");return ur.response[0]})})},signAndSendTransactions({transactions:Br}){return __awaiter(this,void 0,void 0,function*(){if(fe.log("signAndSendTransactions",{transactions:Br}),!le.wallet.isSignedIn())throw new Error("Wallet not signed in");return le.wallet.requestSignTransactions({transactions:cr(Br)}).then($r=>{var Pr;if($r.error)throw new Error($r.error);if($r.response&&"error"in $r.response)throw new Error($r.response.error.message);if(!(!((Pr=$r.response)===null||Pr===void 0)&&Pr.length))throw new Error("Invalid response");return $r.response})})}}});function setupFinerInjected({iconUrl:v=icon,deprecated:k=!1}={}){return()=>__awaiter(this,void 0,void 0,function*(){const ie=(0,import_is_mobile.isMobile)(),ae=yield isInstalled();return ie?null:(ae&&(yield waitFor(()=>{var ce,fe;return!!(!((fe=(ce=window.finer)===null||ce===void 0?void 0:ce.near)===null||fe===void 0)&&fe.isSignedIn())},{timeout:200}).catch(()=>!1)),{id:"finer-wallet",type:"injected",metadata:{name:"FiNER Wallet",description:"Browser extension wallet built on NEAR.",iconUrl:v,downloadUrl:"https://chrome.google.com/webstore/detail/finer-wallet/mbboloafhcopdfokibemggdnhcocggpl",deprecated:k,available:ae},init:FinerExtension})})}function setupFinerWallet({walletUrl:v,iconUrl:k=icon,deprecated:ie=!0}={}){return ae=>__awaiter(this,void 0,void 0,function*(){return(0,import_is_mobile.isMobile)()?yield setupFinerBrowser({walletUrl:v,iconUrl:k,deprecated:ie})(ae):yield setupFinerInjected({iconUrl:k,deprecated:ie})(ae)})}const _hoisted_1=createBaseVNode("h1",null,"NEAR Guest Book",-1),_sfc_main=defineComponent({__name:"App",setup(v){const k=shallowRef(),ie=shallowRef(),ae=shallowRef(),ce=shallowRef();return onMounted(async()=>{var pe;const fe=await setupWalletSelector({network:"testnet",modules:[setupNearWallet(),setupSender(),setupMathWallet(),setupNightly(),setupMeteorWallet(),setupHereWallet(),setupCoin98Wallet(),setupWelldoneWallet(),setupNearFi(),setupNeth({bundle:!1}),setupOptoWallet(),setupXDEFI(),setupNarwallets(),setupFinerWallet(),setupNearSnap(),setupRamperWallet(),setupWalletConnect({projectId:process.env.WALLETCONNECT_PROJECT_ID,metadata:{name:"NEAR Wallet Selector",description:"Example dApp used by NEAR Wallet Selector",url:"https://github.com/near/wallet-selector",icons:["https://avatars.githubusercontent.com/u/37784886"]}}),setupNightlyConnect({url:"wss://relay.nightly.app/app",appMetadata:{additionalInfo:"",application:"NEAR Wallet Selector",description:"Example dApp used by NEAR Wallet Selector",icon:"https://near.org/wp-content/uploads/2020/09/cropped-favicon-192x192.png"}})]}),le=setupModal(fe,{contractId:CONTRACT_ID});k.value=fe,ie.value=le;const ve=fe.store.getState();ce.value=ve.accounts,ae.value=((pe=ve.accounts.find(ye=>ye.active))==null?void 0:pe.accountId)||null,window.selector=fe,window.modal=le}),(fe,le)=>(openBlock(),createElementBlock(Fragment$1,null,[_hoisted_1,unref(k)?(openBlock(),createBlock(_sfc_main$1,{key:0,selector:unref(k),modal:unref(ie),accountId:unref(ae),accounts:unref(ce)},null,8,["selector","modal","accountId","accounts"])):createCommentVNode("",!0)],64))}});createApp(_sfc_main).mount("#app");export{F,G,N$2 as N,Q$1 as Q,T,__toESM as _,d,f,i,q$1 as q,require_browser$2 as r}; +**/var import_is_mobile$2=__toESM(require_is_mobile(),1),commonjsGlobal$2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},fails$7$2=function(v){try{return!!v()}catch{return!0}},fails$6$2=fails$7$2,descriptors$2=!fails$6$2(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$5$2=fails$7$2,functionBindNative$2=!fails$5$2(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$1$2=functionBindNative$2,FunctionPrototype$1$2=Function.prototype,bind$7=FunctionPrototype$1$2.bind,call$4$2=FunctionPrototype$1$2.call,uncurryThis$6$2=NATIVE_BIND$1$2&&bind$7.bind(call$4$2,call$4$2),functionUncurryThis$2=NATIVE_BIND$1$2?function(v){return v&&uncurryThis$6$2(v)}:function(v){return v&&function(){return call$4$2.apply(v,arguments)}},$TypeError$5$2=TypeError,requireObjectCoercible$1$2=function(v){if(v==null)throw $TypeError$5$2("Can't call method on "+v);return v},requireObjectCoercible$4=requireObjectCoercible$1$2,$Object$2$2=Object,toObject$1$2=function(v){return $Object$2$2(requireObjectCoercible$4(v))},uncurryThis$5$2=functionUncurryThis$2,toObject$8=toObject$1$2,hasOwnProperty$2=uncurryThis$5$2({}.hasOwnProperty),hasOwnProperty_1$2=Object.hasOwn||function v(k,ie){return hasOwnProperty$2(toObject$8(k),ie)},DESCRIPTORS$5$2=descriptors$2,hasOwn$4$2=hasOwnProperty_1$2,FunctionPrototype$4=Function.prototype,getDescriptor$2=DESCRIPTORS$5$2&&Object.getOwnPropertyDescriptor,EXISTS$1$2=hasOwn$4$2(FunctionPrototype$4,"name"),PROPER$2=EXISTS$1$2&&function v(){}.name==="something",CONFIGURABLE$1$2=EXISTS$1$2&&(!DESCRIPTORS$5$2||DESCRIPTORS$5$2&&getDescriptor$2(FunctionPrototype$4,"name").configurable),functionName$2={EXISTS:EXISTS$1$2,PROPER:PROPER$2,CONFIGURABLE:CONFIGURABLE$1$2},isCallable$a$2=function(v){return typeof v=="function"},objectDefineProperty$2={},check$2=function(v){return v&&v.Math==Math&&v},global$9$2=check$2(typeof globalThis=="object"&&globalThis)||check$2(typeof window=="object"&&window)||check$2(typeof self=="object"&&self)||check$2(typeof commonjsGlobal$2=="object"&&commonjsGlobal$2)||function(){return this}()||Function("return this")(),isCallable$9$2=isCallable$a$2,isObject$5$2=function(v){return typeof v=="object"?v!==null:isCallable$9$2(v)},global$8$2=global$9$2,isObject$4$2=isObject$5$2,document$4=global$8$2.document,EXISTS$3=isObject$4$2(document$4)&&isObject$4$2(document$4.createElement),documentCreateElement$3=function(v){return EXISTS$3?document$4.createElement(v):{}},DESCRIPTORS$4$2=descriptors$2,fails$4$2=fails$7$2,createElement$3=documentCreateElement$3,ie8DomDefine$2=!DESCRIPTORS$4$2&&!fails$4$2(function(){return Object.defineProperty(createElement$3("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$3$2=descriptors$2,fails$3$2=fails$7$2,v8PrototypeDefineBug$2=DESCRIPTORS$3$2&&fails$3$2(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$3$2=isObject$5$2,$String$2$2=String,$TypeError$4$2=TypeError,anObject$3$2=function(v){if(isObject$3$2(v))return v;throw $TypeError$4$2($String$2$2(v)+" is not an object")},NATIVE_BIND$5=functionBindNative$2,call$3$2=Function.prototype.call,functionCall$2=NATIVE_BIND$5?call$3$2.bind(call$3$2):function(){return call$3$2.apply(call$3$2,arguments)},global$7$2=global$9$2,isCallable$8$2=isCallable$a$2,aFunction$2=function(v){return isCallable$8$2(v)?v:void 0},getBuiltIn$2$2=function(v,k){return arguments.length<2?aFunction$2(global$7$2[v]):global$7$2[v]&&global$7$2[v][k]},uncurryThis$4$2=functionUncurryThis$2,objectIsPrototypeOf$2=uncurryThis$4$2({}.isPrototypeOf),getBuiltIn$1$2=getBuiltIn$2$2,engineUserAgent$2=getBuiltIn$1$2("navigator","userAgent")||"",global$6$2=global$9$2,userAgent$5=engineUserAgent$2,process$5=global$6$2.process,Deno$2=global$6$2.Deno,versions$2=process$5&&process$5.versions||Deno$2&&Deno$2.version,v8$2=versions$2&&versions$2.v8,match$2,version$2;v8$2&&(match$2=v8$2.split("."),version$2=match$2[0]>0&&match$2[0]<4?1:+(match$2[0]+match$2[1]));!version$2&&userAgent$5&&(match$2=userAgent$5.match(/Edge\/(\d+)/),(!match$2||match$2[1]>=74)&&(match$2=userAgent$5.match(/Chrome\/(\d+)/),match$2&&(version$2=+match$2[1])));var engineV8Version$2=version$2,V8_VERSION$3=engineV8Version$2,fails$2$2=fails$7$2,nativeSymbol$2=!!Object.getOwnPropertySymbols&&!fails$2$2(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$3&&V8_VERSION$3<41}),NATIVE_SYMBOL$1$2=nativeSymbol$2,useSymbolAsUid$2=NATIVE_SYMBOL$1$2&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$a=getBuiltIn$2$2,isCallable$7$2=isCallable$a$2,isPrototypeOf$1$2=objectIsPrototypeOf$2,USE_SYMBOL_AS_UID$1$2=useSymbolAsUid$2,$Object$1$2=Object,isSymbol$2$2=USE_SYMBOL_AS_UID$1$2?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$a("Symbol");return isCallable$7$2(k)&&isPrototypeOf$1$2(k.prototype,$Object$1$2(v))},$String$1$2=String,tryToString$1$2=function(v){try{return $String$1$2(v)}catch{return"Object"}},isCallable$6$2=isCallable$a$2,tryToString$6=tryToString$1$2,$TypeError$3$2=TypeError,aCallable$1$2=function(v){if(isCallable$6$2(v))return v;throw $TypeError$3$2(tryToString$6(v)+" is not a function")},aCallable$9=aCallable$1$2,getMethod$1$2=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$9(ie)},call$2$2=functionCall$2,isCallable$5$2=isCallable$a$2,isObject$2$2=isObject$5$2,$TypeError$2$2=TypeError,ordinaryToPrimitive$1$2=function(v,k){var ie,ae;if(k==="string"&&isCallable$5$2(ie=v.toString)&&!isObject$2$2(ae=call$2$2(ie,v))||isCallable$5$2(ie=v.valueOf)&&!isObject$2$2(ae=call$2$2(ie,v))||k!=="string"&&isCallable$5$2(ie=v.toString)&&!isObject$2$2(ae=call$2$2(ie,v)))return ae;throw $TypeError$2$2("Can't convert object to primitive value")},shared$3$2={exports:{}},global$5$2=global$9$2,defineProperty$1$2=Object.defineProperty,defineGlobalProperty$2$2=function(v,k){try{defineProperty$1$2(global$5$2,v,{value:k,configurable:!0,writable:!0})}catch{global$5$2[v]=k}return k},global$4$2=global$9$2,defineGlobalProperty$1$2=defineGlobalProperty$2$2,SHARED$2="__core-js_shared__",store$3$2=global$4$2[SHARED$2]||defineGlobalProperty$1$2(SHARED$2,{}),sharedStore$2=store$3$2,store$2$2=sharedStore$2;(shared$3$2.exports=function(v,k){return store$2$2[v]||(store$2$2[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var uncurryThis$3$2=functionUncurryThis$2,id$3=0,postfix$2=Math.random(),toString$2$1=uncurryThis$3$2(1 .toString),uid$2$2=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$2$1(++id$3+postfix$2,36)},global$3$2=global$9$2,shared$2$2=shared$3$2.exports,hasOwn$3$2=hasOwnProperty_1$2,uid$1$2=uid$2$2,NATIVE_SYMBOL$3=nativeSymbol$2,USE_SYMBOL_AS_UID$3=useSymbolAsUid$2,WellKnownSymbolsStore$2=shared$2$2("wks"),Symbol$1$2=global$3$2.Symbol,symbolFor$2=Symbol$1$2&&Symbol$1$2.for,createWellKnownSymbol$2=USE_SYMBOL_AS_UID$3?Symbol$1$2:Symbol$1$2&&Symbol$1$2.withoutSetter||uid$1$2,wellKnownSymbol$3$2=function(v){if(!hasOwn$3$2(WellKnownSymbolsStore$2,v)||!(NATIVE_SYMBOL$3||typeof WellKnownSymbolsStore$2[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$3&&hasOwn$3$2(Symbol$1$2,v)?WellKnownSymbolsStore$2[v]=Symbol$1$2[v]:USE_SYMBOL_AS_UID$3&&symbolFor$2?WellKnownSymbolsStore$2[v]=symbolFor$2(k):WellKnownSymbolsStore$2[v]=createWellKnownSymbol$2(k)}return WellKnownSymbolsStore$2[v]},call$1$2=functionCall$2,isObject$1$2=isObject$5$2,isSymbol$1$2=isSymbol$2$2,getMethod$5=getMethod$1$2,ordinaryToPrimitive$3=ordinaryToPrimitive$1$2,wellKnownSymbol$2$2=wellKnownSymbol$3$2,$TypeError$1$2=TypeError,TO_PRIMITIVE$2=wellKnownSymbol$2$2("toPrimitive"),toPrimitive$1$2=function(v,k){if(!isObject$1$2(v)||isSymbol$1$2(v))return v;var ie=getMethod$5(v,TO_PRIMITIVE$2),ae;if(ie){if(k===void 0&&(k="default"),ae=call$1$2(ie,v,k),!isObject$1$2(ae)||isSymbol$1$2(ae))return ae;throw $TypeError$1$2("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$3(v,k)},toPrimitive$4=toPrimitive$1$2,isSymbol$5=isSymbol$2$2,toPropertyKey$1$2=function(v){var k=toPrimitive$4(v,"string");return isSymbol$5(k)?k:k+""},DESCRIPTORS$2$2=descriptors$2,IE8_DOM_DEFINE$3=ie8DomDefine$2,V8_PROTOTYPE_DEFINE_BUG$3=v8PrototypeDefineBug$2,anObject$2$2=anObject$3$2,toPropertyKey$6=toPropertyKey$1$2,$TypeError$d=TypeError,$defineProperty$2=Object.defineProperty,$getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,ENUMERABLE$2="enumerable",CONFIGURABLE$3="configurable",WRITABLE$2="writable";objectDefineProperty$2.f=DESCRIPTORS$2$2?V8_PROTOTYPE_DEFINE_BUG$3?function v(k,ie,ae){if(anObject$2$2(k),ie=toPropertyKey$6(ie),anObject$2$2(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$2 in ae&&!ae[WRITABLE$2]){var ce=$getOwnPropertyDescriptor$3(k,ie);ce&&ce[WRITABLE$2]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$3 in ae?ae[CONFIGURABLE$3]:ce[CONFIGURABLE$3],enumerable:ENUMERABLE$2 in ae?ae[ENUMERABLE$2]:ce[ENUMERABLE$2],writable:!1})}return $defineProperty$2(k,ie,ae)}:$defineProperty$2:function v(k,ie,ae){if(anObject$2$2(k),ie=toPropertyKey$6(ie),anObject$2$2(ae),IE8_DOM_DEFINE$3)try{return $defineProperty$2(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$d("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var makeBuiltIn$2$2={exports:{}},uncurryThis$2$2=functionUncurryThis$2,isCallable$4$2=isCallable$a$2,store$1$2=sharedStore$2,functionToString$2=uncurryThis$2$2(Function.toString);isCallable$4$2(store$1$2.inspectSource)||(store$1$2.inspectSource=function(v){return functionToString$2(v)});var inspectSource$2$2=store$1$2.inspectSource,global$2$2=global$9$2,isCallable$3$2=isCallable$a$2,inspectSource$1$2=inspectSource$2$2,WeakMap$1$2=global$2$2.WeakMap,nativeWeakMap$2=isCallable$3$2(WeakMap$1$2)&&/native code/.test(inspectSource$1$2(WeakMap$1$2)),createPropertyDescriptor$1$2=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},DESCRIPTORS$1$2=descriptors$2,definePropertyModule$1$2=objectDefineProperty$2,createPropertyDescriptor$7=createPropertyDescriptor$1$2,createNonEnumerableProperty$1$2=DESCRIPTORS$1$2?function(v,k,ie){return definePropertyModule$1$2.f(v,k,createPropertyDescriptor$7(1,ie))}:function(v,k,ie){return v[k]=ie,v},shared$1$2=shared$3$2.exports,uid$5=uid$2$2,keys$2=shared$1$2("keys"),sharedKey$1$2=function(v){return keys$2[v]||(keys$2[v]=uid$5(v))},NATIVE_WEAK_MAP$2=nativeWeakMap$2,global$1$2=global$9$2,uncurryThis$1$2=functionUncurryThis$2,isObject$c=isObject$5$2,createNonEnumerableProperty$8=createNonEnumerableProperty$1$2,hasOwn$2$2=hasOwnProperty_1$2,shared$5=sharedStore$2,sharedKey$5=sharedKey$1$2,OBJECT_ALREADY_INITIALIZED$2="Object already initialized",TypeError$1$2=global$1$2.TypeError,WeakMap$4=global$1$2.WeakMap,set$3,get$3,has$2,enforce$2=function(v){return has$2(v)?get$3(v):set$3(v,{})},getterFor$2=function(v){return function(k){var ie;if(!isObject$c(k)||(ie=get$3(k)).type!==v)throw TypeError$1$2("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$2||shared$5.state?(store$5=shared$5.state||(shared$5.state=new WeakMap$4),wmget$2=uncurryThis$1$2(store$5.get),wmhas$2=uncurryThis$1$2(store$5.has),wmset$2=uncurryThis$1$2(store$5.set),set$3=function(v,k){if(wmhas$2(store$5,v))throw new TypeError$1$2(OBJECT_ALREADY_INITIALIZED$2);return k.facade=v,wmset$2(store$5,v,k),k},get$3=function(v){return wmget$2(store$5,v)||{}},has$2=function(v){return wmhas$2(store$5,v)}):(STATE$2=sharedKey$5("state"),set$3=function(v,k){if(hasOwn$2$2(v,STATE$2))throw new TypeError$1$2(OBJECT_ALREADY_INITIALIZED$2);return k.facade=v,createNonEnumerableProperty$8(v,STATE$2,k),k},get$3=function(v){return hasOwn$2$2(v,STATE$2)?v[STATE$2]:{}},has$2=function(v){return hasOwn$2$2(v,STATE$2)});var store$5,wmget$2,wmhas$2,wmset$2,STATE$2,internalState$2={set:set$3,get:get$3,has:has$2,enforce:enforce$2,getterFor:getterFor$2},fails$1$2=fails$7$2,isCallable$2$2=isCallable$a$2,hasOwn$1$2=hasOwnProperty_1$2,DESCRIPTORS$f=descriptors$2,CONFIGURABLE_FUNCTION_NAME$4=functionName$2.CONFIGURABLE,inspectSource$6=inspectSource$2$2,InternalStateModule$6=internalState$2,enforceInternalState$4=InternalStateModule$6.enforce,getInternalState$6=InternalStateModule$6.get,defineProperty3$2=Object.defineProperty,CONFIGURABLE_LENGTH$2=DESCRIPTORS$f&&!fails$1$2(function(){return defineProperty3$2(function(){},"length",{value:8}).length!==8}),TEMPLATE$2=String(String).split("String"),makeBuiltIn$1$2=makeBuiltIn$2$2.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$1$2(v,"name")||CONFIGURABLE_FUNCTION_NAME$4&&v.name!==k)&&(DESCRIPTORS$f?defineProperty3$2(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$2&&ie&&hasOwn$1$2(ie,"arity")&&v.length!==ie.arity&&defineProperty3$2(v,"length",{value:ie.arity});try{ie&&hasOwn$1$2(ie,"constructor")&&ie.constructor?DESCRIPTORS$f&&defineProperty3$2(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$4(v);return hasOwn$1$2(ae,"source")||(ae.source=TEMPLATE$2.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$2(function v(){return isCallable$2$2(this)&&getInternalState$6(this).source||inspectSource$6(this)},"toString");var isCallable$1$2=isCallable$a$2,definePropertyModule$8=objectDefineProperty$2,makeBuiltIn$4=makeBuiltIn$2$2.exports,defineGlobalProperty$5=defineGlobalProperty$2$2,defineBuiltIn$1$2=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$1$2(ie)&&makeBuiltIn$4(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$5(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$8.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},wellKnownSymbol$1$2=wellKnownSymbol$3$2,TO_STRING_TAG$1$2=wellKnownSymbol$1$2("toStringTag"),test$2={};test$2[TO_STRING_TAG$1$2]="z";var toStringTagSupport$2=String(test$2)==="[object z]",uncurryThis$l=functionUncurryThis$2,toString$1$2=uncurryThis$l({}.toString),stringSlice$2=uncurryThis$l("".slice),classofRaw$1$2=function(v){return stringSlice$2(toString$1$2(v),8,-1)},TO_STRING_TAG_SUPPORT$2=toStringTagSupport$2,isCallable$k=isCallable$a$2,classofRaw$3=classofRaw$1$2,wellKnownSymbol$g=wellKnownSymbol$3$2,TO_STRING_TAG$5=wellKnownSymbol$g("toStringTag"),$Object$6=Object,CORRECT_ARGUMENTS$2=classofRaw$3(function(){return arguments}())=="Arguments",tryGet$2=function(v,k){try{return v[k]}catch{}},classof$1$2=TO_STRING_TAG_SUPPORT$2?classofRaw$3:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet$2(k=$Object$6(v),TO_STRING_TAG$5))=="string"?ie:CORRECT_ARGUMENTS$2?classofRaw$3(k):(ae=classofRaw$3(k))=="Object"&&isCallable$k(k.callee)?"Arguments":ae},classof$a=classof$1$2,$String$5=String,toString2$1=function(v){if(classof$a(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$5(v)},anObject$1$2=anObject$3$2,regexpFlags$1=function(){var v=anObject$1$2(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$f=functionCall$2,hasOwn2$2=hasOwnProperty_1$2,isPrototypeOf$6=objectIsPrototypeOf$2,regExpFlags$1=regexpFlags$1,RegExpPrototype$1$1=RegExp.prototype,regexpGetFlags$1=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1$1)&&!hasOwn2$2(v,"flags")&&isPrototypeOf$6(RegExpPrototype$1$1,v)?call$f(regExpFlags$1,v):k},PROPER_FUNCTION_NAME$3=functionName$2.PROPER,defineBuiltIn$8=defineBuiltIn$1$2,anObject$c=anObject$3$2,$toString$1=toString2$1,fails$m=fails$7$2,getRegExpFlags$1=regexpGetFlags$1,TO_STRING$1="toString",RegExpPrototype$2=RegExp.prototype,n$ToString$1=RegExpPrototype$2[TO_STRING$1],NOT_GENERIC$1=fails$m(function(){return n$ToString$1.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME$1=PROPER_FUNCTION_NAME$3&&n$ToString$1.name!=TO_STRING$1;(NOT_GENERIC$1||INCORRECT_NAME$1)&&defineBuiltIn$8(RegExp.prototype,TO_STRING$1,function(){var k=anObject$c(this),ie=$toString$1(k.source),ae=$toString$1(getRegExpFlags$1(k));return"/"+ie+"/"+ae},{unsafe:!0});function __awaiter$2(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$2="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iYXV0byIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMTQuMjYyNyAxMy40MDEzQzEyLjQyMjcgMTQuNTMwNyA5Ljk1OTg3IDE1LjExMjQgNy40NjU1OCAxNC45ODgxQzUuMzY4NDQgMTQuODg2NSAzLjY0ODQ0IDE0LjE0MTEgMi42MDg0NCAxMi45MTU3QzEuNjk0MTYgMTEuODIwMSAxLjMzOTg3IDEwLjM3NDUgMS41Nzk4NyA4LjcxMTQzQzEuNjYxMjEgOC4xNTg3NCAxLjgyNzkxIDcuNjIxNjYgMi4wNzQxNSA3LjExODk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yMi4yMzZDMTUuNjE5OSAyMi4yMzYgMTkuMTY4NSAxOC4yODMxIDIwLjE1OTkgMTYuODcxM0wxOS4wMTcgMTYuMjA3OCIgZmlsbD0iIzIwNDFFMCI+PC9wYXRoPjxwYXRoIGQ9Ik0xOC42ODU2IDExLjI5MjNDMTkuMjY3OSAxMS4yOTIzIDE5LjczOTkgMTAuODI1OCAxOS43Mzk5IDEwLjI1MDRDMTkuNzM5OSA5LjY3NDk2IDE5LjI2NzkgOS4yMDg1IDE4LjY4NTYgOS4yMDg1QzE4LjEwMzQgOS4yMDg1IDE3LjYzMTMgOS42NzQ5NiAxNy42MzEzIDEwLjI1MDRDMTcuNjMxMyAxMC44MjU4IDE4LjEwMzQgMTEuMjkyMyAxOC42ODU2IDExLjI5MjNaIiBmaWxsPSIjMjA0MUUwIj48L3BhdGg+Cjwvc3ZnPgo=",setupXDEFIState=(v,k)=>__awaiter$2(void 0,void 0,void 0,function*(){const{selectedWalletId:ie}=v.getState(),ae=window.xfi.near;return ie==="xdefi"&&(yield ae.connect(k.networkId).catch(()=>null)),{wallet:ae,network:k}}),isInstalled$2=()=>waitFor(()=>{var v;return!!(!((v=window.xfi)===null||v===void 0)&&v.near)}).catch(()=>!1),XDEFI=({metadata:v,store:k,logger:ie,options:ae})=>__awaiter$2(void 0,void 0,void 0,function*(){const ce=yield setupXDEFIState(k,ae.network),fe=()=>ce.wallet.accounts?ce.wallet.accounts:[],le=ve=>{const pe=fe(),{contract:ye}=k.getState();if(!pe.length||!ye)throw new Error("Wallet not signed in");return ve.map(me=>({signerId:me.signerId||pe[0].accountId,receiverId:me.receiverId||ye.contractId,actions:me.actions}))};return{signIn(){return __awaiter$2(this,void 0,void 0,function*(){const ve=fe().map(pe=>({accountId:pe.accountId,publicKey:pe.publicKey.toString()}));return ve.length?ve:(yield ce.wallet.connect(ce.network.networkId),fe().map(pe=>({accountId:pe.accountId,publicKey:pe.publicKey.toString()})))})},signOut(){return __awaiter$2(this,void 0,void 0,function*(){yield ce.wallet.disconnect()})},getAccounts(){return __awaiter$2(this,void 0,void 0,function*(){return fe().map(ve=>({accountId:ve.accountId,publicKey:ve.publicKey.toString()}))})},verifyOwner({message:ve}){return __awaiter$2(this,void 0,void 0,function*(){throw ie.log("XDEFI:verifyOwner",{message:ve}),new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction(ve){return __awaiter$2(this,void 0,void 0,function*(){ie.log("signAndSendTransaction",ve);const{contract:pe}=k.getState();if(!fe().length||!pe)throw new Error("Wallet not signed in");return yield ce.wallet.signAndSendTransaction(le([ve])[0])})},signAndSendTransactions({transactions:ve}){return __awaiter$2(this,void 0,void 0,function*(){return ie.log("signAndSendTransactions",{transactions:ve}),yield ce.wallet.signAndSendTransactions(le(ve))})}}});function setupXDEFI({iconUrl:v=icon$2,deprecated:k=!1}={}){return()=>__awaiter$2(this,void 0,void 0,function*(){if((0,import_is_mobile$2.isMobile)())return null;const ae=yield isInstalled$2();return{id:"xdefi",type:"injected",metadata:{name:"XDEFI Wallet",description:"One wallet for all your Crypto",iconUrl:v,downloadUrl:"https://www.xdefi.io",deprecated:k,available:ae},init:XDEFI}})}var import_is_mobile$1=__toESM(require_is_mobile(),1),commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check$1=function(v){return v&&v.Math==Math&&v},global$i=check$1(typeof globalThis=="object"&&globalThis)||check$1(typeof window=="object"&&window)||check$1(typeof self=="object"&&self)||check$1(typeof commonjsGlobal$1=="object"&&commonjsGlobal$1)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor$1={},fails$a$1=function(v){try{return!!v()}catch{return!0}},fails$9$1=fails$a$1,descriptors$1=!fails$9$1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$8$1=fails$a$1,functionBindNative$1=!fails$8$1(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3$1=functionBindNative$1,call$c$1=Function.prototype.call,functionCall$1=NATIVE_BIND$3$1?call$c$1.bind(call$c$1):function(){return call$c$1.apply(call$c$1,arguments)},objectPropertyIsEnumerable$1={},$propertyIsEnumerable$1={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG$1=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable$1.call({1:2},1);objectPropertyIsEnumerable$1.f=NASHORN_BUG$1?function v(k){var ie=getOwnPropertyDescriptor$2(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable$1;var createPropertyDescriptor$2$1=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2$1=functionBindNative$1,FunctionPrototype$2$1=Function.prototype,bind$5=FunctionPrototype$2$1.bind,call$b$1=FunctionPrototype$2$1.call,uncurryThis$d$1=NATIVE_BIND$2$1&&bind$5.bind(call$b$1,call$b$1),functionUncurryThis$1=NATIVE_BIND$2$1?function(v){return v&&uncurryThis$d$1(v)}:function(v){return v&&function(){return call$b$1.apply(v,arguments)}},uncurryThis$c$1=functionUncurryThis$1,toString$1$1=uncurryThis$c$1({}.toString),stringSlice$1=uncurryThis$c$1("".slice),classofRaw$1$1=function(v){return stringSlice$1(toString$1$1(v),8,-1)},uncurryThis$b$1=functionUncurryThis$1,fails$7$1=fails$a$1,classof$4$1=classofRaw$1$1,$Object$3$1=Object,split$1=uncurryThis$b$1("".split),indexedObject$1=fails$7$1(function(){return!$Object$3$1("z").propertyIsEnumerable(0)})?function(v){return classof$4$1(v)=="String"?split$1(v,""):$Object$3$1(v)}:$Object$3$1,$TypeError$b=TypeError,requireObjectCoercible$2$1=function(v){if(v==null)throw $TypeError$b("Can't call method on "+v);return v},IndexedObject$3=indexedObject$1,requireObjectCoercible$1$1=requireObjectCoercible$2$1,toIndexedObject$3$1=function(v){return IndexedObject$3(requireObjectCoercible$1$1(v))},isCallable$h$1=function(v){return typeof v=="function"},isCallable$g$1=isCallable$h$1,isObject$7$1=function(v){return typeof v=="object"?v!==null:isCallable$g$1(v)},global$h$1=global$i,isCallable$f$1=isCallable$h$1,aFunction$1=function(v){return isCallable$f$1(v)?v:void 0},getBuiltIn$8=function(v,k){return arguments.length<2?aFunction$1(global$h$1[v]):global$h$1[v]&&global$h$1[v][k]},uncurryThis$a$1=functionUncurryThis$1,objectIsPrototypeOf$1=uncurryThis$a$1({}.isPrototypeOf),getBuiltIn$7=getBuiltIn$8,engineUserAgent$1=getBuiltIn$7("navigator","userAgent")||"",global$g$1=global$i,userAgent$3=engineUserAgent$1,process$3=global$g$1.process,Deno$1$1=global$g$1.Deno,versions$1=process$3&&process$3.versions||Deno$1$1&&Deno$1$1.version,v8$1=versions$1&&versions$1.v8,match$1,version$1;v8$1&&(match$1=v8$1.split("."),version$1=match$1[0]>0&&match$1[0]<4?1:+(match$1[0]+match$1[1]));!version$1&&userAgent$3&&(match$1=userAgent$3.match(/Edge\/(\d+)/),(!match$1||match$1[1]>=74)&&(match$1=userAgent$3.match(/Chrome\/(\d+)/),match$1&&(version$1=+match$1[1])));var engineV8Version$1=version$1,V8_VERSION$1=engineV8Version$1,fails$6$1=fails$a$1,nativeSymbol$1=!!Object.getOwnPropertySymbols&&!fails$6$1(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$1$1=nativeSymbol$1,useSymbolAsUid$1=NATIVE_SYMBOL$1$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$6$1=getBuiltIn$8,isCallable$e$1=isCallable$h$1,isPrototypeOf$2$1=objectIsPrototypeOf$1,USE_SYMBOL_AS_UID$1$1=useSymbolAsUid$1,$Object$2$1=Object,isSymbol$2$1=USE_SYMBOL_AS_UID$1$1?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$6$1("Symbol");return isCallable$e$1(k)&&isPrototypeOf$2$1(k.prototype,$Object$2$1(v))},$String$2$1=String,tryToString$4$1=function(v){try{return $String$2$1(v)}catch{return"Object"}},isCallable$d$1=isCallable$h$1,tryToString$3$1=tryToString$4$1,$TypeError$a$1=TypeError,aCallable$7=function(v){if(isCallable$d$1(v))return v;throw $TypeError$a$1(tryToString$3$1(v)+" is not a function")},aCallable$6=aCallable$7,getMethod$3=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$6(ie)},call$a$1=functionCall$1,isCallable$c$1=isCallable$h$1,isObject$6$1=isObject$7$1,$TypeError$9$1=TypeError,ordinaryToPrimitive$1$1=function(v,k){var ie,ae;if(k==="string"&&isCallable$c$1(ie=v.toString)&&!isObject$6$1(ae=call$a$1(ie,v))||isCallable$c$1(ie=v.valueOf)&&!isObject$6$1(ae=call$a$1(ie,v))||k!=="string"&&isCallable$c$1(ie=v.toString)&&!isObject$6$1(ae=call$a$1(ie,v)))return ae;throw $TypeError$9$1("Can't convert object to primitive value")},shared$3$1={exports:{}},global$f$1=global$i,defineProperty$2$1=Object.defineProperty,defineGlobalProperty$3$1=function(v,k){try{defineProperty$2$1(global$f$1,v,{value:k,configurable:!0,writable:!0})}catch{global$f$1[v]=k}return k},global$e$1=global$i,defineGlobalProperty$2$1=defineGlobalProperty$3$1,SHARED$1="__core-js_shared__",store$3$1=global$e$1[SHARED$1]||defineGlobalProperty$2$1(SHARED$1,{}),sharedStore$1=store$3$1,store$2$1=sharedStore$1;(shared$3$1.exports=function(v,k){return store$2$1[v]||(store$2$1[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$3=requireObjectCoercible$2$1,$Object$1$1=Object,toObject$1$1=function(v){return $Object$1$1(requireObjectCoercible$3(v))},uncurryThis$9$1=functionUncurryThis$1,toObject$7=toObject$1$1,hasOwnProperty$1=uncurryThis$9$1({}.hasOwnProperty),hasOwnProperty_1$1=Object.hasOwn||function v(k,ie){return hasOwnProperty$1(toObject$7(k),ie)},uncurryThis$8$1=functionUncurryThis$1,id$1=0,postfix$1=Math.random(),toString=uncurryThis$8$1(1 .toString),uid$2$1=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString(++id$1+postfix$1,36)},global$d$1=global$i,shared$2$1=shared$3$1.exports,hasOwn$8$1=hasOwnProperty_1$1,uid$1$1=uid$2$1,NATIVE_SYMBOL$2=nativeSymbol$1,USE_SYMBOL_AS_UID$2=useSymbolAsUid$1,WellKnownSymbolsStore$1=shared$2$1("wks"),Symbol$1$1=global$d$1.Symbol,symbolFor$1=Symbol$1$1&&Symbol$1$1.for,createWellKnownSymbol$1=USE_SYMBOL_AS_UID$2?Symbol$1$1:Symbol$1$1&&Symbol$1$1.withoutSetter||uid$1$1,wellKnownSymbol$a$1=function(v){if(!hasOwn$8$1(WellKnownSymbolsStore$1,v)||!(NATIVE_SYMBOL$2||typeof WellKnownSymbolsStore$1[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL$2&&hasOwn$8$1(Symbol$1$1,v)?WellKnownSymbolsStore$1[v]=Symbol$1$1[v]:USE_SYMBOL_AS_UID$2&&symbolFor$1?WellKnownSymbolsStore$1[v]=symbolFor$1(k):WellKnownSymbolsStore$1[v]=createWellKnownSymbol$1(k)}return WellKnownSymbolsStore$1[v]},call$9$1=functionCall$1,isObject$5$1=isObject$7$1,isSymbol$1$1=isSymbol$2$1,getMethod$2$1=getMethod$3,ordinaryToPrimitive$2=ordinaryToPrimitive$1$1,wellKnownSymbol$9$1=wellKnownSymbol$a$1,$TypeError$8$1=TypeError,TO_PRIMITIVE$1=wellKnownSymbol$9$1("toPrimitive"),toPrimitive$1$1=function(v,k){if(!isObject$5$1(v)||isSymbol$1$1(v))return v;var ie=getMethod$2$1(v,TO_PRIMITIVE$1),ae;if(ie){if(k===void 0&&(k="default"),ae=call$9$1(ie,v,k),!isObject$5$1(ae)||isSymbol$1$1(ae))return ae;throw $TypeError$8$1("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive$2(v,k)},toPrimitive$3=toPrimitive$1$1,isSymbol$4=isSymbol$2$1,toPropertyKey$2$1=function(v){var k=toPrimitive$3(v,"string");return isSymbol$4(k)?k:k+""},global$c$1=global$i,isObject$4$1=isObject$7$1,document$2=global$c$1.document,EXISTS$1$1=isObject$4$1(document$2)&&isObject$4$1(document$2.createElement),documentCreateElement$2=function(v){return EXISTS$1$1?document$2.createElement(v):{}},DESCRIPTORS$7$1=descriptors$1,fails$5$1=fails$a$1,createElement$1=documentCreateElement$2,ie8DomDefine$1=!DESCRIPTORS$7$1&&!fails$5$1(function(){return Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$6$1=descriptors$1,call$8$1=functionCall$1,propertyIsEnumerableModule$2=objectPropertyIsEnumerable$1,createPropertyDescriptor$1$1=createPropertyDescriptor$2$1,toIndexedObject$2$1=toIndexedObject$3$1,toPropertyKey$1$1=toPropertyKey$2$1,hasOwn$7$1=hasOwnProperty_1$1,IE8_DOM_DEFINE$1$1=ie8DomDefine$1,$getOwnPropertyDescriptor$1$1=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$1.f=DESCRIPTORS$6$1?$getOwnPropertyDescriptor$1$1:function v(k,ie){if(k=toIndexedObject$2$1(k),ie=toPropertyKey$1$1(ie),IE8_DOM_DEFINE$1$1)try{return $getOwnPropertyDescriptor$1$1(k,ie)}catch{}if(hasOwn$7$1(k,ie))return createPropertyDescriptor$1$1(!call$8$1(propertyIsEnumerableModule$2.f,k,ie),k[ie])};var objectDefineProperty$1={},DESCRIPTORS$5$1=descriptors$1,fails$4$1=fails$a$1,v8PrototypeDefineBug$1=DESCRIPTORS$5$1&&fails$4$1(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$3$1=isObject$7$1,$String$1$1=String,$TypeError$7$1=TypeError,anObject$8$1=function(v){if(isObject$3$1(v))return v;throw $TypeError$7$1($String$1$1(v)+" is not an object")},DESCRIPTORS$4$1=descriptors$1,IE8_DOM_DEFINE$2=ie8DomDefine$1,V8_PROTOTYPE_DEFINE_BUG$2=v8PrototypeDefineBug$1,anObject$7$1=anObject$8$1,toPropertyKey$5=toPropertyKey$2$1,$TypeError$6$1=TypeError,$defineProperty$1=Object.defineProperty,$getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,ENUMERABLE$1="enumerable",CONFIGURABLE$1$1="configurable",WRITABLE$1="writable";objectDefineProperty$1.f=DESCRIPTORS$4$1?V8_PROTOTYPE_DEFINE_BUG$2?function v(k,ie,ae){if(anObject$7$1(k),ie=toPropertyKey$5(ie),anObject$7$1(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE$1 in ae&&!ae[WRITABLE$1]){var ce=$getOwnPropertyDescriptor$2(k,ie);ce&&ce[WRITABLE$1]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1$1 in ae?ae[CONFIGURABLE$1$1]:ce[CONFIGURABLE$1$1],enumerable:ENUMERABLE$1 in ae?ae[ENUMERABLE$1]:ce[ENUMERABLE$1],writable:!1})}return $defineProperty$1(k,ie,ae)}:$defineProperty$1:function v(k,ie,ae){if(anObject$7$1(k),ie=toPropertyKey$5(ie),anObject$7$1(ae),IE8_DOM_DEFINE$2)try{return $defineProperty$1(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$6$1("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$3$1=descriptors$1,definePropertyModule$3$1=objectDefineProperty$1,createPropertyDescriptor$6=createPropertyDescriptor$2$1,createNonEnumerableProperty$2$1=DESCRIPTORS$3$1?function(v,k,ie){return definePropertyModule$3$1.f(v,k,createPropertyDescriptor$6(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2$1={exports:{}},DESCRIPTORS$2$1=descriptors$1,hasOwn$6$1=hasOwnProperty_1$1,FunctionPrototype$1$1=Function.prototype,getDescriptor$1=DESCRIPTORS$2$1&&Object.getOwnPropertyDescriptor,EXISTS$2=hasOwn$6$1(FunctionPrototype$1$1,"name"),PROPER$1=EXISTS$2&&function v(){}.name==="something",CONFIGURABLE$2=EXISTS$2&&(!DESCRIPTORS$2$1||DESCRIPTORS$2$1&&getDescriptor$1(FunctionPrototype$1$1,"name").configurable),functionName$1={EXISTS:EXISTS$2,PROPER:PROPER$1,CONFIGURABLE:CONFIGURABLE$2},uncurryThis$7$1=functionUncurryThis$1,isCallable$b$1=isCallable$h$1,store$1$1=sharedStore$1,functionToString$1=uncurryThis$7$1(Function.toString);isCallable$b$1(store$1$1.inspectSource)||(store$1$1.inspectSource=function(v){return functionToString$1(v)});var inspectSource$4=store$1$1.inspectSource,global$b$1=global$i,isCallable$a$1=isCallable$h$1,inspectSource$3$1=inspectSource$4,WeakMap$1$1=global$b$1.WeakMap,nativeWeakMap$1=isCallable$a$1(WeakMap$1$1)&&/native code/.test(inspectSource$3$1(WeakMap$1$1)),shared$1$1=shared$3$1.exports,uid$4=uid$2$1,keys=shared$1$1("keys"),sharedKey$1$1=function(v){return keys[v]||(keys[v]=uid$4(v))},hiddenKeys$3$1={},NATIVE_WEAK_MAP$1=nativeWeakMap$1,global$a$1=global$i,uncurryThis$6$1=functionUncurryThis$1,isObject$2$1=isObject$7$1,createNonEnumerableProperty$1$1=createNonEnumerableProperty$2$1,hasOwn$5$1=hasOwnProperty_1$1,shared$4=sharedStore$1,sharedKey$4=sharedKey$1$1,hiddenKeys$2$1=hiddenKeys$3$1,OBJECT_ALREADY_INITIALIZED$1="Object already initialized",TypeError$2$1=global$a$1.TypeError,WeakMap$3=global$a$1.WeakMap,set$1$1,get$2,has$1,enforce$1=function(v){return has$1(v)?get$2(v):set$1$1(v,{})},getterFor$1=function(v){return function(k){var ie;if(!isObject$2$1(k)||(ie=get$2(k)).type!==v)throw TypeError$2$1("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP$1||shared$4.state?(store$4=shared$4.state||(shared$4.state=new WeakMap$3),wmget$1=uncurryThis$6$1(store$4.get),wmhas$1=uncurryThis$6$1(store$4.has),wmset$1=uncurryThis$6$1(store$4.set),set$1$1=function(v,k){if(wmhas$1(store$4,v))throw new TypeError$2$1(OBJECT_ALREADY_INITIALIZED$1);return k.facade=v,wmset$1(store$4,v,k),k},get$2=function(v){return wmget$1(store$4,v)||{}},has$1=function(v){return wmhas$1(store$4,v)}):(STATE$1=sharedKey$4("state"),hiddenKeys$2$1[STATE$1]=!0,set$1$1=function(v,k){if(hasOwn$5$1(v,STATE$1))throw new TypeError$2$1(OBJECT_ALREADY_INITIALIZED$1);return k.facade=v,createNonEnumerableProperty$1$1(v,STATE$1,k),k},get$2=function(v){return hasOwn$5$1(v,STATE$1)?v[STATE$1]:{}},has$1=function(v){return hasOwn$5$1(v,STATE$1)});var store$4,wmget$1,wmhas$1,wmset$1,STATE$1,internalState$1={set:set$1$1,get:get$2,has:has$1,enforce:enforce$1,getterFor:getterFor$1},fails$3$1=fails$a$1,isCallable$9$1=isCallable$h$1,hasOwn$4$1=hasOwnProperty_1$1,DESCRIPTORS$1$1=descriptors$1,CONFIGURABLE_FUNCTION_NAME$3=functionName$1.CONFIGURABLE,inspectSource$2$1=inspectSource$4,InternalStateModule$1$1=internalState$1,enforceInternalState$3=InternalStateModule$1$1.enforce,getInternalState$5=InternalStateModule$1$1.get,defineProperty$1$1=Object.defineProperty,CONFIGURABLE_LENGTH$1=DESCRIPTORS$1$1&&!fails$3$1(function(){return defineProperty$1$1(function(){},"length",{value:8}).length!==8}),TEMPLATE$1=String(String).split("String"),makeBuiltIn$1$1=makeBuiltIn$2$1.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$4$1(v,"name")||CONFIGURABLE_FUNCTION_NAME$3&&v.name!==k)&&(DESCRIPTORS$1$1?defineProperty$1$1(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH$1&&ie&&hasOwn$4$1(ie,"arity")&&v.length!==ie.arity&&defineProperty$1$1(v,"length",{value:ie.arity});try{ie&&hasOwn$4$1(ie,"constructor")&&ie.constructor?DESCRIPTORS$1$1&&defineProperty$1$1(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$3(v);return hasOwn$4$1(ae,"source")||(ae.source=TEMPLATE$1.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1$1(function v(){return isCallable$9$1(this)&&getInternalState$5(this).source||inspectSource$2$1(this)},"toString");var isCallable$8$1=isCallable$h$1,definePropertyModule$2$1=objectDefineProperty$1,makeBuiltIn$3=makeBuiltIn$2$1.exports,defineGlobalProperty$1$1=defineGlobalProperty$3$1,defineBuiltIn$3$1=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$8$1(ie)&&makeBuiltIn$3(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1$1(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$2$1.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames$1={},ceil$1=Math.ceil,floor$4=Math.floor,mathTrunc$1=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$4:ceil$1)(ie)},trunc2$1=mathTrunc$1,toIntegerOrInfinity$2$1=function(v){var k=+v;return k!==k||k===0?0:trunc2$1(k)},toIntegerOrInfinity$1$1=toIntegerOrInfinity$2$1,max$2=Math.max,min$1$1=Math.min,toAbsoluteIndex$1$1=function(v,k){var ie=toIntegerOrInfinity$1$1(v);return ie<0?max$2(ie+k,0):min$1$1(ie,k)},toIntegerOrInfinity$6=toIntegerOrInfinity$2$1,min$2=Math.min,toLength$1$1=function(v){return v>0?min$2(toIntegerOrInfinity$6(v),9007199254740991):0},toLength$6=toLength$1$1,lengthOfArrayLike$2$1=function(v){return toLength$6(v.length)},toIndexedObject$1$1=toIndexedObject$3$1,toAbsoluteIndex$5=toAbsoluteIndex$1$1,lengthOfArrayLike$1$1=lengthOfArrayLike$2$1,createMethod$2=function(v){return function(k,ie,ae){var ce=toIndexedObject$1$1(k),fe=lengthOfArrayLike$1$1(ce),le=toAbsoluteIndex$5(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes$1={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$5$1=functionUncurryThis$1,hasOwn$3$1=hasOwnProperty_1$1,toIndexedObject$7=toIndexedObject$3$1,indexOf$1=arrayIncludes$1.indexOf,hiddenKeys$1$1=hiddenKeys$3$1,push$2=uncurryThis$5$1([].push),objectKeysInternal$1=function(v,k){var ie=toIndexedObject$7(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$3$1(hiddenKeys$1$1,fe)&&hasOwn$3$1(ie,fe)&&push$2(ce,fe);for(;k.length>ae;)hasOwn$3$1(ie,fe=k[ae++])&&(~indexOf$1(ce,fe)||push$2(ce,fe));return ce},enumBugKeys$1$1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$2=objectKeysInternal$1,enumBugKeys$4=enumBugKeys$1$1,hiddenKeys$5=enumBugKeys$4.concat("length","prototype");objectGetOwnPropertyNames$1.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$2(k,hiddenKeys$5)};var objectGetOwnPropertySymbols$1={};objectGetOwnPropertySymbols$1.f=Object.getOwnPropertySymbols;var getBuiltIn$5$1=getBuiltIn$8,uncurryThis$4$1=functionUncurryThis$1,getOwnPropertyNamesModule$1=objectGetOwnPropertyNames$1,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols$1,anObject$6$1=anObject$8$1,concat$2=uncurryThis$4$1([].concat),ownKeys$1$1=getBuiltIn$5$1("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule$1.f(anObject$6$1(k)),ae=getOwnPropertySymbolsModule$2.f;return ae?concat$2(ie,ae(k)):ie},hasOwn$2$1=hasOwnProperty_1$1,ownKeys2$1=ownKeys$1$1,getOwnPropertyDescriptorModule$2=objectGetOwnPropertyDescriptor$1,definePropertyModule$1$1=objectDefineProperty$1,copyConstructorProperties$1$1=function(v,k,ie){for(var ae=ownKeys2$1(k),ce=definePropertyModule$1$1.f,fe=getOwnPropertyDescriptorModule$2.f,le=0;le=51&&/native code/.test(v))return!1;var ie=new NativePromiseConstructor$3(function(fe){fe(1)}),ae=function(fe){fe(function(){},function(){})},ce=ie.constructor={};return ce[SPECIES$3]=ae,SUBCLASSING=ie.then(function(){})instanceof ae,SUBCLASSING?!k&&IS_BROWSER&&!NATIVE_PROMISE_REJECTION_EVENT$1:!0}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING},newPromiseCapability$2={},aCallable$4$1=aCallable$7,PromiseCapability=function(v){var k,ie;this.promise=new v(function(ae,ce){if(k!==void 0||ie!==void 0)throw TypeError("Bad Promise constructor");k=ae,ie=ce}),this.resolve=aCallable$4$1(k),this.reject=aCallable$4$1(ie)};newPromiseCapability$2.f=function(v){return new PromiseCapability(v)};var $$5=_export$1,IS_NODE=engineIsNode,global$1$1=global$i,call$6$1=functionCall$1,defineBuiltIn$1$1=defineBuiltIn$3$1,setPrototypeOf$5=objectSetPrototypeOf$1,setToStringTag$4=setToStringTag$1$1,setSpecies$2=setSpecies$1$1,aCallable$3$1=aCallable$7,isCallable$1$1=isCallable$h$1,isObject$1$1=isObject$7$1,anInstance$3=anInstance$1$1,speciesConstructor$2=speciesConstructor$1$1,task=task$1.set,microtask=microtask$1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue,InternalStateModule$5=internalState$1,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule$5.getterFor(PROMISE),setInternalState$3=InternalStateModule$5.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1$1=global$1$1.TypeError,document$3=global$1$1.document,process$4=global$1$1.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$3&&document$3.createEvent&&global$1$1.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,isThenable=function(v){var k;return isObject$1$1(v)&&isCallable$1$1(k=v.then)?k:!1},callReaction=function(v,k){var ie=k.value,ae=k.state==FULFILLED,ce=ae?v.ok:v.fail,fe=v.resolve,le=v.reject,ve=v.domain,pe,ye,me;try{ce?(ae||(k.rejection===UNHANDLED&&onHandleUnhandled(k),k.rejection=HANDLED),ce===!0?pe=ie:(ve&&ve.enter(),pe=ce(ie),ve&&(ve.exit(),me=!0)),pe===v.promise?le(TypeError$1$1("Promise-chain cycle")):(ye=isThenable(pe))?call$6$1(ye,pe,fe,le):fe(pe)):le(ie)}catch(Ee){ve&&!me&&ve.exit(),le(Ee)}},notify=function(v,k){v.notified||(v.notified=!0,microtask(function(){for(var ie=v.reactions,ae;ae=ie.get();)callReaction(ae,v);v.notified=!1,k&&!v.rejection&&onUnhandled(v)}))},dispatchEvent=function(v,k,ie){var ae,ce;DISPATCH_EVENT?(ae=document$3.createEvent("Event"),ae.promise=k,ae.reason=ie,ae.initEvent(v,!1,!0),global$1$1.dispatchEvent(ae)):ae={promise:k,reason:ie},!NATIVE_PROMISE_REJECTION_EVENT&&(ce=global$1$1["on"+v])?ce(ae):v===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",ie)},onUnhandled=function(v){call$6$1(task,global$1$1,function(){var k=v.facade,ie=v.value,ae=isUnhandled(v),ce;if(ae&&(ce=perform$2(function(){IS_NODE?process$4.emit("unhandledRejection",ie,k):dispatchEvent(UNHANDLED_REJECTION,k,ie)}),v.rejection=IS_NODE||isUnhandled(v)?UNHANDLED:HANDLED,ce.error))throw ce.value})},isUnhandled=function(v){return v.rejection!==HANDLED&&!v.parent},onHandleUnhandled=function(v){call$6$1(task,global$1$1,function(){var k=v.facade;IS_NODE?process$4.emit("rejectionHandled",k):dispatchEvent(REJECTION_HANDLED,k,v.value)})},bind$1$1=function(v,k,ie){return function(ae){v(k,ae,ie)}},internalReject=function(v,k,ie){v.done||(v.done=!0,ie&&(v=ie),v.value=k,v.state=REJECTED,notify(v,!0))},internalResolve=function(v,k,ie){if(!v.done){v.done=!0,ie&&(v=ie);try{if(v.facade===k)throw TypeError$1$1("Promise can't be resolved itself");var ae=isThenable(k);ae?microtask(function(){var ce={done:!1};try{call$6$1(ae,k,bind$1$1(internalResolve,ce,v),bind$1$1(internalReject,ce,v))}catch(fe){internalReject(ce,fe,v)}}):(v.value=k,v.state=FULFILLED,notify(v,!1))}catch(ce){internalReject({done:!1},ce,v)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromiseConstructor=function(k){anInstance$3(this,PromisePrototype),aCallable$3$1(k),call$6$1(Internal,this);var ie=getInternalPromiseState(this);try{k(bind$1$1(internalResolve,ie),bind$1$1(internalReject,ie))}catch(ae){internalReject(ie,ae)}},PromisePrototype=PromiseConstructor.prototype,Internal=function(k){setInternalState$3(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})},Internal.prototype=defineBuiltIn$1$1(PromisePrototype,"then",function(k,ie){var ae=getInternalPromiseState(this),ce=newPromiseCapability$1(speciesConstructor$2(this,PromiseConstructor));return ae.parent=!0,ce.ok=isCallable$1$1(k)?k:!0,ce.fail=isCallable$1$1(ie)&&ie,ce.domain=IS_NODE?process$4.domain:void 0,ae.state==PENDING?ae.reactions.add(ce):microtask(function(){callReaction(ce,ae)}),ce.promise}),OwnPromiseCapability=function(){var v=new Internal,k=getInternalPromiseState(v);this.promise=v,this.resolve=bind$1$1(internalResolve,k),this.reject=bind$1$1(internalReject,k)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(v){return v===PromiseConstructor||v===PromiseWrapper?new OwnPromiseCapability(v):newGenericPromiseCapability(v)},isCallable$1$1(NativePromiseConstructor$2)&&NativePromisePrototype$1!==Object.prototype)){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$1$1(NativePromisePrototype$1,"then",function(k,ie){var ae=this;return new PromiseConstructor(function(ce,fe){call$6$1(nativeThen,ae,ce,fe)}).then(k,ie)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch{}setPrototypeOf$5&&setPrototypeOf$5(NativePromisePrototype$1,PromisePrototype)}$$5({globalThis:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor});setToStringTag$4(PromiseConstructor,PROMISE,!1);setSpecies$2(PROMISE);var iterators$1={},wellKnownSymbol$2$1=wellKnownSymbol$a$1,Iterators$1$1=iterators$1,ITERATOR$2$1=wellKnownSymbol$2$1("iterator"),ArrayPrototype$2=Array.prototype,isArrayIteratorMethod$1$1=function(v){return v!==void 0&&(Iterators$1$1.Array===v||ArrayPrototype$2[ITERATOR$2$1]===v)},classof$9=classof$2$1,getMethod$1$1=getMethod$3,Iterators$5=iterators$1,wellKnownSymbol$1$1=wellKnownSymbol$a$1,ITERATOR$1$1=wellKnownSymbol$1$1("iterator"),getIteratorMethod$2$1=function(v){if(v!=null)return getMethod$1$1(v,ITERATOR$1$1)||getMethod$1$1(v,"@@iterator")||Iterators$5[classof$9(v)]},call$5$1=functionCall$1,aCallable$2$1=aCallable$7,anObject$3$1=anObject$8$1,tryToString$1$1=tryToString$4$1,getIteratorMethod$1$1=getIteratorMethod$2$1,$TypeError$1$1=TypeError,getIterator$1$1=function(v,k){var ie=arguments.length<2?getIteratorMethod$1$1(v):k;if(aCallable$2$1(ie))return anObject$3$1(call$5$1(ie,v));throw $TypeError$1$1(tryToString$1$1(v)+" is not iterable")},call$4$1=functionCall$1,anObject$2$1=anObject$8$1,getMethod$4=getMethod$3,iteratorClose$1=function(v,k,ie){var ae,ce;anObject$2$1(v);try{if(ae=getMethod$4(v,"return"),!ae){if(k==="throw")throw ie;return ie}ae=call$4$1(ae,v)}catch(fe){ce=!0,ae=fe}if(k==="throw")throw ie;if(ce)throw ae;return anObject$2$1(ae),ie},bind$6=functionBindContext$1,call$3$1=functionCall$1,anObject$1$1=anObject$8$1,tryToString$5=tryToString$4$1,isArrayIteratorMethod$2=isArrayIteratorMethod$1$1,lengthOfArrayLike$7=lengthOfArrayLike$2$1,isPrototypeOf$5=objectIsPrototypeOf$1,getIterator$2=getIterator$1$1,getIteratorMethod$3=getIteratorMethod$2$1,iteratorClose=iteratorClose$1,$TypeError$c=TypeError,Result=function(v,k){this.stopped=v,this.result=k},ResultPrototype=Result.prototype,iterate$2=function(v,k,ie){var ae=ie&&ie.that,ce=!!(ie&&ie.AS_ENTRIES),fe=!!(ie&&ie.IS_ITERATOR),le=!!(ie&&ie.INTERRUPTED),ve=bind$6(k,ae),pe,ye,me,Ee,cr,Br,$r,Pr=function(ur){return pe&&iteratorClose(pe,"normal",ur),new Result(!0,ur)},Ar=function(ur){return ce?(anObject$1$1(ur),le?ve(ur[0],ur[1],Pr):ve(ur[0],ur[1])):le?ve(ur,Pr):ve(ur)};if(fe)pe=v;else{if(ye=getIteratorMethod$3(v),!ye)throw $TypeError$c(tryToString$5(v)+" is not iterable");if(isArrayIteratorMethod$2(ye)){for(me=0,Ee=lengthOfArrayLike$7(v);Ee>me;me++)if(cr=Ar(v[me]),cr&&isPrototypeOf$5(ResultPrototype,cr))return cr;return new Result(!1)}pe=getIterator$2(v,ye)}for(Br=pe.next;!($r=call$3$1(Br,pe)).done;){try{cr=Ar($r.value)}catch(ur){iteratorClose(pe,"throw",ur)}if(typeof cr=="object"&&cr&&isPrototypeOf$5(ResultPrototype,cr))return cr}return new Result(!1)},wellKnownSymbol$f=wellKnownSymbol$a$1,ITERATOR$5=wellKnownSymbol$f("iterator"),SAFE_CLOSING$1=!1;try{called$1=0,iteratorWithReturn$1={next:function(){return{done:!!called$1++}},return:function(){SAFE_CLOSING$1=!0}},iteratorWithReturn$1[ITERATOR$5]=function(){return this},Array.from(iteratorWithReturn$1,function(){throw 2})}catch(v){}var called$1,iteratorWithReturn$1,checkCorrectnessOfIteration$1$1=function(v,k){if(!k&&!SAFE_CLOSING$1)return!1;var ie=!1;try{var ae={};ae[ITERATOR$5]=function(){return{next:function(){return{done:ie=!0}}}},v(ae)}catch{}return ie},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration$2=checkCorrectnessOfIteration$1$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration$2(function(v){NativePromiseConstructor$1.all(v).then(void 0,function(){})}),$$4=_export$1,call$2$1=functionCall$1,aCallable$1$1=aCallable$7,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration;$$4({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1},{all:function v(k){var ie=this,ae=newPromiseCapabilityModule$2.f(ie),ce=ae.resolve,fe=ae.reject,le=perform$1(function(){var ve=aCallable$1$1(ie.resolve),pe=[],ye=0,me=1;iterate$1(k,function(Ee){var cr=ye++,Br=!1;me++,call$2$1(ve,ie,Ee).then(function($r){Br||(Br=!0,pe[cr]=$r,--me||ce(pe))},fe)}),--me||ce(pe)});return le.error&&fe(le.value),ae.promise}});var $$3$1=_export$1,FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1$1=getBuiltIn$8,isCallable$j=isCallable$h$1,defineBuiltIn$7=defineBuiltIn$3$1,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype;$$3$1({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(v){return this.then(void 0,v)}});isCallable$j(NativePromiseConstructor)&&(method=getBuiltIn$1$1("Promise").prototype.catch,NativePromisePrototype.catch!==method&&defineBuiltIn$7(NativePromisePrototype,"catch",method,{unsafe:!0}));var method,$$2$1=_export$1,call$1$1=functionCall$1,aCallable$8=aCallable$7,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration;$$2$1({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION},{race:function v(k){var ie=this,ae=newPromiseCapabilityModule$1.f(ie),ce=ae.reject,fe=perform(function(){var le=aCallable$8(ie.resolve);iterate(k,function(ve){call$1$1(le,ie,ve).then(ae.resolve,ce)})});return fe.error&&ce(fe.value),ae.promise}});var $$1$1=_export$1,call$e=functionCall$1,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR;$$1$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function v(k){var ie=newPromiseCapabilityModule.f(this);return call$e(ie.reject,void 0,k),ie.promise}});var anObject$b=anObject$8$1,isObject$b=isObject$7$1,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(v,k){if(anObject$b(v),isObject$b(k)&&k.constructor===v)return k;var ie=newPromiseCapability.f(v),ae=ie.resolve;return ae(k),ie.promise},$$6=_export$1,getBuiltIn$9=getBuiltIn$8,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;getBuiltIn$9("Promise");$$6({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function v(k){return promiseResolve(this,k)}});function __awaiter$1(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var icon$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAXFAAAFxQFJPlfkAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4E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K5I2QshegGtr/OQ9iLECqS+Ilmruq6k4FQlAK4ijY5eV68KpjCQYTi2jdvi6ircK6N0HAGbrUAciPXlkZVTCYByNyI3NAF5B0I2BdHEaT/UBQKdf/xwFMiqWhiMATuQg2MPPwXkGRBJII6CfhSp7CuvLJyKRP8/AIZkfQXsT/DhAAAAAElFTkSuQmCC",NARWALLETS_CODES={SIGN_IN:"sign-in",IS_INSTALLED:"is-installed",IS_SIGNED_IN:"is-signed-in",SIGN_OUT:"sign-out",GET_ACCOUNT_ID:"get-account-id",SIGN_AND_SEND_TRANSACTION:"sign-and-send-transaction",SIGN_AND_SEND_TRANSACTIONS:"sign-and-send-transactions"},id$2=0,pendingPromises=[],sendToNarwallets=(v,k=!1,ie)=>new Promise((ce,fe)=>{id$2++;let le;k&&(le=setTimeout(()=>fe(Error("timeout")),2e3)),pendingPromises.push({id_wallet_selector:id$2,code:v,resolve:ce,reject:fe,timeout:le}),window.postMessage({id:id$2,src:"ws",type:"nw",code:v,dest:"ext",params:ie})}),isInstalled$1=()=>__awaiter$1(void 0,void 0,void 0,function*(){return waitFor(()=>!!window.narwallets).catch(()=>!1)}),isSignedIn=()=>sendToNarwallets(NARWALLETS_CODES.IS_SIGNED_IN,!0),getAccountId=()=>sendToNarwallets(NARWALLETS_CODES.GET_ACCOUNT_ID,!1),callSignAndSendTransaction=v=>sendToNarwallets(NARWALLETS_CODES.SIGN_AND_SEND_TRANSACTION,!1,v),callSignAndSendTransactions=v=>sendToNarwallets(NARWALLETS_CODES.SIGN_AND_SEND_TRANSACTIONS,!1,v),findPendingPromiseById=v=>pendingPromises.filter(k=>k.id_wallet_selector===v)[0],removePendingPromise=v=>{const k=pendingPromises.indexOf(v);k>-1&&pendingPromises.splice(k,1)},setupNarwalletsState=()=>{window.addEventListener("message",v=>{if(v.source!==window)return;const{data:k}=v;if(!(!k||k.dest!=="page")&&k.id&&k.type==="nw"){const ie=findPendingPromiseById(k.id);ie&&(removePendingPromise(ie),ie.timeout&&clearTimeout(ie.timeout),k.result?k.result.err?ie.reject(k.result.err):ie.resolve(k.result.data):ie.reject("result is empty"))}})},Narwallets=({metadata:v,store:k,logger:ie})=>__awaiter$1(void 0,void 0,void 0,function*(){return{signIn(){return __awaiter$1(this,void 0,void 0,function*(){const ce=yield isSignedIn();let fe;return ce?fe=NARWALLETS_CODES.GET_ACCOUNT_ID:fe=NARWALLETS_CODES.SIGN_IN,[{accountId:yield sendToNarwallets(fe)}]})},signOut:()=>__awaiter$1(void 0,void 0,void 0,function*(){if(!(yield isSignedIn()))return;const ce=yield sendToNarwallets("sign-out");if(ce===!0)return;const fe=ce,le=new Error(typeof fe.error=="string"?fe.error:fe.error.type);if(le.message==="User reject")throw le;ie.log("Failed to sign out"),ie.error(le)}),getAccounts(){return __awaiter$1(this,void 0,void 0,function*(){return[{accountId:yield getAccountId()}]})},verifyOwner({message:ce}){return __awaiter$1(this,void 0,void 0,function*(){throw ie.log("Narwallets:verifyOwner",{message:ce}),new Error(`Method not supported by ${v.name}`)})},signAndSendTransaction({signerId:ce,receiverId:fe,actions:le}){return __awaiter$1(this,void 0,void 0,function*(){ie.log("signAndSendTransaction",{signerId:ce,receiverId:fe,actions:le});const{contract:ve,accounts:pe}=k.getState();if(!pe||pe.length===0||!ve)throw new Error("Wallet not signed in");return callSignAndSendTransaction({signerId:ce,receiverId:fe||ve.contractId,actions:le})})},signAndSendTransactions({transactions:ce}){return __awaiter$1(this,void 0,void 0,function*(){ie.log("signAndSendTransactions",{transactions:ce});const{contract:fe,accounts:le}=k.getState();if(!le||le.length===0||!fe)throw new Error("Wallet not signed in");return callSignAndSendTransactions(ce)})}}}),setupNarwallets=({iconUrl:v=icon$1,deprecated:k=!1}={})=>()=>__awaiter$1(void 0,void 0,void 0,function*(){if((0,import_is_mobile$1.isMobile)())return null;setupNarwalletsState();const ae=yield isInstalled$1();return{id:"narwallets",type:"injected",metadata:{name:"Narwallets",description:null,iconUrl:v,downloadUrl:"https://chrome.google.com/webstore/detail/narwallets-v4/lkpeokpdkmcdaiadpmnnpimlgmdobkdj",deprecated:k,available:ae},init:Narwallets}}),import_is_mobile=__toESM(require_is_mobile(),1);function __awaiter(v,k,ie,ae){function ce(fe){return fe instanceof ie?fe:new ie(function(le){le(fe)})}return new(ie||(ie=Promise))(function(fe,le){function ve(me){try{ye(ae.next(me))}catch(Ee){le(Ee)}}function pe(me){try{ye(ae.throw(me))}catch(Ee){le(Ee)}}function ye(me){me.done?fe(me.value):ce(me.value).then(ve,pe)}ye((ae=ae.apply(v,k||[])).next())})}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},check=function(v){return v&&v.Math==Math&&v},global$h=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$k=function(v){try{return!!v()}catch{return!0}},fails$j=fails$k,descriptors=!fails$j(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fails$i=fails$k,functionBindNative=!fails$i(function(){var v=function(){}.bind();return typeof v!="function"||v.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$d=Function.prototype.call,functionCall=NATIVE_BIND$3?call$d.bind(call$d):function(){return call$d.apply(call$d,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$1&&!$propertyIsEnumerable.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function v(k){var ie=getOwnPropertyDescriptor$1(this,k);return!!ie&&ie.enumerable}:$propertyIsEnumerable;var createPropertyDescriptor$5=function(v,k){return{enumerable:!(v&1),configurable:!(v&2),writable:!(v&4),value:k}},NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,bind$3=FunctionPrototype$2.bind,call$c=FunctionPrototype$2.call,uncurryThis$j=NATIVE_BIND$2&&bind$3.bind(call$c,call$c),functionUncurryThis=NATIVE_BIND$2?function(v){return v&&uncurryThis$j(v)}:function(v){return v&&function(){return call$c.apply(v,arguments)}},uncurryThis$i=functionUncurryThis,toString$2=uncurryThis$i({}.toString),stringSlice=uncurryThis$i("".slice),classofRaw$1=function(v){return stringSlice(toString$2(v),8,-1)},uncurryThis$h=functionUncurryThis,fails$h=fails$k,classof$8=classofRaw$1,$Object$4=Object,split=uncurryThis$h("".split),indexedObject=fails$h(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(v){return classof$8(v)=="String"?split(v,""):$Object$4(v)}:$Object$4,$TypeError$a=TypeError,requireObjectCoercible$2=function(v){if(v==null)throw $TypeError$a("Can't call method on "+v);return v},IndexedObject$2=indexedObject,requireObjectCoercible$1=requireObjectCoercible$2,toIndexedObject$6=function(v){return IndexedObject$2(requireObjectCoercible$1(v))},isCallable$i=function(v){return typeof v=="function"},isCallable$h=isCallable$i,isObject$a=function(v){return typeof v=="object"?v!==null:isCallable$h(v)},global$g=global$h,isCallable$g=isCallable$i,aFunction=function(v){return isCallable$g(v)?v:void 0},getBuiltIn$6=function(v,k){return arguments.length<2?aFunction(global$g[v]):global$g[v]&&global$g[v][k]},uncurryThis$g=functionUncurryThis,objectIsPrototypeOf=uncurryThis$g({}.isPrototypeOf),getBuiltIn$5=getBuiltIn$6,engineUserAgent=getBuiltIn$5("navigator","userAgent")||"",global$f=global$h,userAgent$2=engineUserAgent,process$1=global$f.process,Deno$1=global$f.Deno,versions=process$1&&process$1.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,match,version;v8&&(match=v8.split("."),version=match[0]>0&&match[0]<4?1:+(match[0]+match[1]));!version&&userAgent$2&&(match=userAgent$2.match(/Edge\/(\d+)/),(!match||match[1]>=74)&&(match=userAgent$2.match(/Chrome\/(\d+)/),match&&(version=+match[1])));var engineV8Version=version,V8_VERSION=engineV8Version,fails$g=fails$k,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$g(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41}),NATIVE_SYMBOL$1=nativeSymbol,useSymbolAsUid=NATIVE_SYMBOL$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn$4=getBuiltIn$6,isCallable$f=isCallable$i,isPrototypeOf$4=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$3=USE_SYMBOL_AS_UID$1?function(v){return typeof v=="symbol"}:function(v){var k=getBuiltIn$4("Symbol");return isCallable$f(k)&&isPrototypeOf$4(k.prototype,$Object$3(v))},$String$3=String,tryToString$4=function(v){try{return $String$3(v)}catch{return"Object"}},isCallable$e=isCallable$i,tryToString$3=tryToString$4,$TypeError$9=TypeError,aCallable$4=function(v){if(isCallable$e(v))return v;throw $TypeError$9(tryToString$3(v)+" is not a function")},aCallable$3=aCallable$4,getMethod$2=function(v,k){var ie=v[k];return ie==null?void 0:aCallable$3(ie)},call$b=functionCall,isCallable$d=isCallable$i,isObject$9=isObject$a,$TypeError$8=TypeError,ordinaryToPrimitive$1=function(v,k){var ie,ae;if(k==="string"&&isCallable$d(ie=v.toString)&&!isObject$9(ae=call$b(ie,v))||isCallable$d(ie=v.valueOf)&&!isObject$9(ae=call$b(ie,v))||k!=="string"&&isCallable$d(ie=v.toString)&&!isObject$9(ae=call$b(ie,v)))return ae;throw $TypeError$8("Can't convert object to primitive value")},shared$3={exports:{}},global$e=global$h,defineProperty$7=Object.defineProperty,defineGlobalProperty$3=function(v,k){try{defineProperty$7(global$e,v,{value:k,configurable:!0,writable:!0})}catch{global$e[v]=k}return k},global$d=global$h,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$d[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore;(shared$3.exports=function(v,k){return store$2[v]||(store$2[v]=k!==void 0?k:{})})("versions",[]).push({version:"3.23.3",mode:"globalThis",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible=requireObjectCoercible$2,$Object$2=Object,toObject$6=function(v){return $Object$2(requireObjectCoercible(v))},uncurryThis$f=functionUncurryThis,toObject$5=toObject$6,hasOwnProperty=uncurryThis$f({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function v(k,ie){return hasOwnProperty(toObject$5(k),ie)},uncurryThis$e=functionUncurryThis,id=0,postfix=Math.random(),toString$1=uncurryThis$e(1 .toString),uid$3=function(v){return"Symbol("+(v===void 0?"":v)+")_"+toString$1(++id+postfix,36)},global$c=global$h,shared$2=shared$3.exports,hasOwn$b=hasOwnProperty_1,uid$2=uid$3,NATIVE_SYMBOL=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$2("wks"),Symbol$1=global$c.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$2,wellKnownSymbol$e=function(v){if(!hasOwn$b(WellKnownSymbolsStore,v)||!(NATIVE_SYMBOL||typeof WellKnownSymbolsStore[v]=="string")){var k="Symbol."+v;NATIVE_SYMBOL&&hasOwn$b(Symbol$1,v)?WellKnownSymbolsStore[v]=Symbol$1[v]:USE_SYMBOL_AS_UID&&symbolFor?WellKnownSymbolsStore[v]=symbolFor(k):WellKnownSymbolsStore[v]=createWellKnownSymbol(k)}return WellKnownSymbolsStore[v]},call$a=functionCall,isObject$8=isObject$a,isSymbol$2=isSymbol$3,getMethod$1=getMethod$2,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$d=wellKnownSymbol$e,$TypeError$7=TypeError,TO_PRIMITIVE=wellKnownSymbol$d("toPrimitive"),toPrimitive$2=function(v,k){if(!isObject$8(v)||isSymbol$2(v))return v;var ie=getMethod$1(v,TO_PRIMITIVE),ae;if(ie){if(k===void 0&&(k="default"),ae=call$a(ie,v,k),!isObject$8(ae)||isSymbol$2(ae))return ae;throw $TypeError$7("Can't convert object to primitive value")}return k===void 0&&(k="number"),ordinaryToPrimitive(v,k)},toPrimitive$1=toPrimitive$2,isSymbol$1=isSymbol$3,toPropertyKey$4=function(v){var k=toPrimitive$1(v,"string");return isSymbol$1(k)?k:k+""},global$b=global$h,isObject$7=isObject$a,document$1=global$b.document,EXISTS$1=isObject$7(document$1)&&isObject$7(document$1.createElement),documentCreateElement$1=function(v){return EXISTS$1?document$1.createElement(v):{}},DESCRIPTORS$d=descriptors,fails$f=fails$k,createElement=documentCreateElement$1,ie8DomDefine=!DESCRIPTORS$d&&!fails$f(function(){return Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$c=descriptors,call$9=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$5=toIndexedObject$6,toPropertyKey$3=toPropertyKey$4,hasOwn$a=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$c?$getOwnPropertyDescriptor$1:function v(k,ie){if(k=toIndexedObject$5(k),ie=toPropertyKey$3(ie),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(k,ie)}catch{}if(hasOwn$a(k,ie))return createPropertyDescriptor$4(!call$9(propertyIsEnumerableModule$1.f,k,ie),k[ie])};var objectDefineProperty={},DESCRIPTORS$b=descriptors,fails$e=fails$k,v8PrototypeDefineBug=DESCRIPTORS$b&&fails$e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),isObject$6=isObject$a,$String$2=String,$TypeError$6=TypeError,anObject$a=function(v){if(isObject$6(v))return v;throw $TypeError$6($String$2(v)+" is not an object")},DESCRIPTORS$a=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$9=anObject$a,toPropertyKey$2=toPropertyKey$4,$TypeError$5=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable";objectDefineProperty.f=DESCRIPTORS$a?V8_PROTOTYPE_DEFINE_BUG$1?function v(k,ie,ae){if(anObject$9(k),ie=toPropertyKey$2(ie),anObject$9(ae),typeof k=="function"&&ie==="prototype"&&"value"in ae&&WRITABLE in ae&&!ae[WRITABLE]){var ce=$getOwnPropertyDescriptor(k,ie);ce&&ce[WRITABLE]&&(k[ie]=ae.value,ae={configurable:CONFIGURABLE$1 in ae?ae[CONFIGURABLE$1]:ce[CONFIGURABLE$1],enumerable:ENUMERABLE in ae?ae[ENUMERABLE]:ce[ENUMERABLE],writable:!1})}return $defineProperty(k,ie,ae)}:$defineProperty:function v(k,ie,ae){if(anObject$9(k),ie=toPropertyKey$2(ie),anObject$9(ae),IE8_DOM_DEFINE)try{return $defineProperty(k,ie,ae)}catch{}if("get"in ae||"set"in ae)throw $TypeError$5("Accessors not supported");return"value"in ae&&(k[ie]=ae.value),k};var DESCRIPTORS$9=descriptors,definePropertyModule$6=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$6=DESCRIPTORS$9?function(v,k,ie){return definePropertyModule$6.f(v,k,createPropertyDescriptor$3(1,ie))}:function(v,k,ie){return v[k]=ie,v},makeBuiltIn$2={exports:{}},DESCRIPTORS$8=descriptors,hasOwn$9=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$8&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$9(FunctionPrototype$1,"name"),PROPER=EXISTS&&function v(){}.name==="something",CONFIGURABLE=EXISTS&&(!DESCRIPTORS$8||DESCRIPTORS$8&&getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS,PROPER,CONFIGURABLE},uncurryThis$d=functionUncurryThis,isCallable$c=isCallable$i,store$1=sharedStore,functionToString=uncurryThis$d(Function.toString);isCallable$c(store$1.inspectSource)||(store$1.inspectSource=function(v){return functionToString(v)});var inspectSource$3=store$1.inspectSource,global$a=global$h,isCallable$b=isCallable$i,inspectSource$2=inspectSource$3,WeakMap$1=global$a.WeakMap,nativeWeakMap=isCallable$b(WeakMap$1)&&/native code/.test(inspectSource$2(WeakMap$1)),shared$1=shared$3.exports,uid$1=uid$3,keys$1=shared$1("keys"),sharedKey$3=function(v){return keys$1[v]||(keys$1[v]=uid$1(v))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$9=global$h,uncurryThis$c=functionUncurryThis,isObject$5=isObject$a,createNonEnumerableProperty$5=createNonEnumerableProperty$6,hasOwn$8=hasOwnProperty_1,shared=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=global$9.TypeError,WeakMap$2=global$9.WeakMap,set$1,get$1,has,enforce=function(v){return has(v)?get$1(v):set$1(v,{})},getterFor=function(v){return function(k){var ie;if(!isObject$5(k)||(ie=get$1(k)).type!==v)throw TypeError$2("Incompatible receiver, "+v+" required");return ie}};NATIVE_WEAK_MAP||shared.state?(store=shared.state||(shared.state=new WeakMap$2),wmget=uncurryThis$c(store.get),wmhas=uncurryThis$c(store.has),wmset=uncurryThis$c(store.set),set$1=function(v,k){if(wmhas(store,v))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return k.facade=v,wmset(store,v,k),k},get$1=function(v){return wmget(store,v)||{}},has=function(v){return wmhas(store,v)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(v,k){if(hasOwn$8(v,STATE))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return k.facade=v,createNonEnumerableProperty$5(v,STATE,k),k},get$1=function(v){return hasOwn$8(v,STATE)?v[STATE]:{}},has=function(v){return hasOwn$8(v,STATE)});var store,wmget,wmhas,wmset,STATE,internalState={set:set$1,get:get$1,has,enforce,getterFor},fails$d=fails$k,isCallable$a=isCallable$i,hasOwn$7=hasOwnProperty_1,DESCRIPTORS$7=descriptors,CONFIGURABLE_FUNCTION_NAME$2=functionName.CONFIGURABLE,inspectSource$1=inspectSource$3,InternalStateModule$4=internalState,enforceInternalState$2=InternalStateModule$4.enforce,getInternalState$4=InternalStateModule$4.get,defineProperty$6=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$7&&!fails$d(function(){return defineProperty$6(function(){},"length",{value:8}).length!==8}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(v,k,ie){String(k).slice(0,7)==="Symbol("&&(k="["+String(k).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),ie&&ie.getter&&(k="get "+k),ie&&ie.setter&&(k="set "+k),(!hasOwn$7(v,"name")||CONFIGURABLE_FUNCTION_NAME$2&&v.name!==k)&&(DESCRIPTORS$7?defineProperty$6(v,"name",{value:k,configurable:!0}):v.name=k),CONFIGURABLE_LENGTH&&ie&&hasOwn$7(ie,"arity")&&v.length!==ie.arity&&defineProperty$6(v,"length",{value:ie.arity});try{ie&&hasOwn$7(ie,"constructor")&&ie.constructor?DESCRIPTORS$7&&defineProperty$6(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var ae=enforceInternalState$2(v);return hasOwn$7(ae,"source")||(ae.source=TEMPLATE.join(typeof k=="string"?k:"")),v};Function.prototype.toString=makeBuiltIn$1(function v(){return isCallable$a(this)&&getInternalState$4(this).source||inspectSource$1(this)},"toString");var isCallable$9=isCallable$i,definePropertyModule$5=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$6=function(v,k,ie,ae){ae||(ae={});var ce=ae.enumerable,fe=ae.name!==void 0?ae.name:k;if(isCallable$9(ie)&&makeBuiltIn(ie,fe,ae),ae.global)ce?v[k]=ie:defineGlobalProperty$1(k,ie);else{try{ae.unsafe?v[k]&&(ce=!0):delete v[k]}catch{}ce?v[k]=ie:definePropertyModule$5.f(v,k,{value:ie,enumerable:!1,configurable:!ae.nonConfigurable,writable:!ae.nonWritable})}return v},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$3=Math.floor,mathTrunc=Math.trunc||function v(k){var ie=+k;return(ie>0?floor$3:ceil)(ie)},trunc2=mathTrunc,toIntegerOrInfinity$5=function(v){var k=+v;return k!==k||k===0?0:trunc2(k)},toIntegerOrInfinity$4=toIntegerOrInfinity$5,max$1=Math.max,min$1=Math.min,toAbsoluteIndex$4=function(v,k){var ie=toIntegerOrInfinity$4(v);return ie<0?max$1(ie+k,0):min$1(ie,k)},toIntegerOrInfinity$3=toIntegerOrInfinity$5,min=Math.min,toLength$5=function(v){return v>0?min(toIntegerOrInfinity$3(v),9007199254740991):0},toLength$4=toLength$5,lengthOfArrayLike$6=function(v){return toLength$4(v.length)},toIndexedObject$4=toIndexedObject$6,toAbsoluteIndex$3=toAbsoluteIndex$4,lengthOfArrayLike$5=lengthOfArrayLike$6,createMethod$1=function(v){return function(k,ie,ae){var ce=toIndexedObject$4(k),fe=lengthOfArrayLike$5(ce),le=toAbsoluteIndex$3(ae,fe),ve;if(v&&ie!=ie){for(;fe>le;)if(ve=ce[le++],ve!=ve)return!0}else for(;fe>le;le++)if((v||le in ce)&&ce[le]===ie)return v||le||0;return!v&&-1}},arrayIncludes={includes:createMethod$1(!0),indexOf:createMethod$1(!1)},uncurryThis$b=functionUncurryThis,hasOwn$6=hasOwnProperty_1,toIndexedObject$3=toIndexedObject$6,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$1=uncurryThis$b([].push),objectKeysInternal=function(v,k){var ie=toIndexedObject$3(v),ae=0,ce=[],fe;for(fe in ie)!hasOwn$6(hiddenKeys$2,fe)&&hasOwn$6(ie,fe)&&push$1(ce,fe);for(;k.length>ae;)hasOwn$6(ie,fe=k[ae++])&&(~indexOf(ce,fe)||push$1(ce,fe));return ce},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$2.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function v(k){return internalObjectKeys$1(k,hiddenKeys$1)};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var getBuiltIn$3=getBuiltIn$6,uncurryThis$a=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$8=anObject$a,concat$1=uncurryThis$a([].concat),ownKeys$1=getBuiltIn$3("Reflect","ownKeys")||function v(k){var ie=getOwnPropertyNamesModule.f(anObject$8(k)),ae=getOwnPropertySymbolsModule$1.f;return ae?concat$1(ie,ae(k)):ie},hasOwn$5=hasOwnProperty_1,ownKeys2=ownKeys$1,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor,definePropertyModule$4=objectDefineProperty,copyConstructorProperties$1=function(v,k,ie){for(var ae=ownKeys2(k),ce=definePropertyModule$4.f,fe=getOwnPropertyDescriptorModule$1.f,le=0;lefe;)for(var pe=IndexedObject$1(arguments[fe++]),ye=le?concat(objectKeys$1(pe),le(pe)):objectKeys$1(pe),me=ye.length,Ee=0,cr;me>Ee;)cr=ye[Ee++],(!DESCRIPTORS$6||call$8(ve,pe,cr))&&(ae[cr]=pe[cr]);return ae}:$assign,$$3=_export,assign2=objectAssign;$$3({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign2},{assign:assign2});var icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAAC9FB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ouzLvBIAts5BWe0vXBpPD49iIFHt+jcOCftS+RhjMlmoWioK7AkZ+5Akd+5gq4/CdK0AmbwqObhsNwrYS+E6YNtzTwjrArZpSgvVAKZuWAJUjZME+jnQIXf1aN83MgrTuesPoJcA5kVMNztuelt1eORpG+bLfhf6Z11HBPfkUZAAAAAElFTkSuQmCC",resolveWalletUrl=(v,k)=>{if(k)return k;switch(v.networkId){case"mainnet":return"https://near-wallet-mainnet.finerwallet.io";case"testnet":return"https://near-wallet-testnet.finerwallet.io";default:throw new Error("Invalid wallet url")}};function setupFinerBrowser({walletUrl:v,iconUrl:k=icon,deprecated:ie=!1}={}){return ae=>__awaiter(this,void 0,void 0,function*(){const ce=yield setupMyNearWallet({walletUrl:resolveWalletUrl(ae.options.network,v),iconUrl:k})(ae);return ce?Object.assign(Object.assign({},ce),{id:"finer-wallet",metadata:Object.assign(Object.assign({},ce.metadata),{name:"FiNER Wallet",description:"FiNER Wallet Mobile",iconUrl:k,deprecated:ie,available:!0})}):null})}var wellKnownSymbol$c=wellKnownSymbol$e,TO_STRING_TAG$3=wellKnownSymbol$c("toStringTag"),test={};test[TO_STRING_TAG$3]="z";var toStringTagSupport=String(test)==="[object z]",TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$7=isCallable$i,classofRaw=classofRaw$1,wellKnownSymbol$b=wellKnownSymbol$e,TO_STRING_TAG$2=wellKnownSymbol$b("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS=classofRaw(function(){return arguments}())=="Arguments",tryGet=function(v,k){try{return v[k]}catch{}},classof$7=TO_STRING_TAG_SUPPORT?classofRaw:function(v){var k,ie,ae;return v===void 0?"Undefined":v===null?"Null":typeof(ie=tryGet(k=$Object$1(v),TO_STRING_TAG$2))=="string"?ie:CORRECT_ARGUMENTS?classofRaw(k):(ae=classofRaw(k))=="Object"&&isCallable$7(k.callee)?"Arguments":ae},classof$6=classof$7,$String$1=String,toString2=function(v){if(classof$6(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $String$1(v)},anObject$7=anObject$a,regexpFlags=function(){var v=anObject$7(this),k="";return v.hasIndices&&(k+="d"),v.global&&(k+="g"),v.ignoreCase&&(k+="i"),v.multiline&&(k+="m"),v.dotAll&&(k+="s"),v.unicode&&(k+="u"),v.unicodeSets&&(k+="v"),v.sticky&&(k+="y"),k},call$7=functionCall,hasOwn$4=hasOwnProperty_1,isPrototypeOf$3=objectIsPrototypeOf,regExpFlags=regexpFlags,RegExpPrototype$1=RegExp.prototype,regexpGetFlags=function(v){var k=v.flags;return k===void 0&&!("flags"in RegExpPrototype$1)&&!hasOwn$4(v,"flags")&&isPrototypeOf$3(RegExpPrototype$1,v)?call$7(regExpFlags,v):k},PROPER_FUNCTION_NAME$2=functionName.PROPER,defineBuiltIn$4=defineBuiltIn$6,anObject$6=anObject$a,$toString=toString2,fails$a=fails$k,getRegExpFlags=regexpGetFlags,TO_STRING="toString",RegExpPrototype=RegExp.prototype,n$ToString=RegExpPrototype[TO_STRING],NOT_GENERIC=fails$a(function(){return n$ToString.call({source:"a",flags:"b"})!="/a/b"}),INCORRECT_NAME=PROPER_FUNCTION_NAME$2&&n$ToString.name!=TO_STRING;(NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$4(RegExp.prototype,TO_STRING,function(){var k=anObject$6(this),ie=$toString(k.source),ae=$toString(getRegExpFlags(k));return"/"+ie+"/"+ae},{unsafe:!0});var objectDefineProperties={},DESCRIPTORS$5=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$3=objectDefineProperty,anObject$5=anObject$a,toIndexedObject$2=toIndexedObject$6,objectKeys=objectKeys$2;objectDefineProperties.f=DESCRIPTORS$5&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function v(k,ie){anObject$5(k);for(var ae=toIndexedObject$2(ie),ce=objectKeys(ie),fe=ce.length,le=0,ve;fe>le;)definePropertyModule$3.f(k,ve=ce[le++],ae[ve]);return k};var getBuiltIn$2=getBuiltIn$6,html$1=getBuiltIn$2("document","documentElement"),anObject$4=anObject$a,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$1,documentCreateElement=documentCreateElement$1,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE$1="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$1("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(v){return LT+SCRIPT+GT+v+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(v){v.write(scriptTag("")),v.close();var k=v.parentWindow.Object;return v=null,k},NullProtoObjectViaIFrame=function(){var v=documentCreateElement("iframe"),k="java"+SCRIPT+":",ie;return v.style.display="none",html.appendChild(v),v.src=String(k),ie=v.contentWindow.document,ie.open(),ie.write(scriptTag("document.F=Object")),ie.close(),ie.F},activeXDocument,NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch{}NullProtoObject=typeof document<"u"?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var v=enumBugKeys.length;v--;)delete NullProtoObject[PROTOTYPE$1][enumBugKeys[v]];return NullProtoObject()};hiddenKeys[IE_PROTO$1]=!0;var objectCreate=Object.create||function v(k,ie){var ae;return k!==null?(EmptyConstructor[PROTOTYPE$1]=anObject$4(k),ae=new EmptyConstructor,EmptyConstructor[PROTOTYPE$1]=null,ae[IE_PROTO$1]=k):ae=NullProtoObject(),ie===void 0?ae:definePropertiesModule.f(ae,ie)},wellKnownSymbol$a=wellKnownSymbol$e,create$2=objectCreate,defineProperty$4=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$a("unscopables"),ArrayPrototype$1=Array.prototype;ArrayPrototype$1[UNSCOPABLES]==null&&defineProperty$4(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$2(null)});var addToUnscopables$1=function(v){ArrayPrototype$1[UNSCOPABLES][v]=!0},iterators={},fails$9=fails$k,correctPrototypeGetter=!fails$9(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype}),hasOwn$3=hasOwnProperty_1,isCallable$6=isCallable$i,toObject$3=toObject$6,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey("IE_PROTO"),$Object=Object,ObjectPrototype$2=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(v){var k=toObject$3(v);if(hasOwn$3(k,IE_PROTO))return k[IE_PROTO];var ie=k.constructor;return isCallable$6(ie)&&k instanceof ie?ie.prototype:k instanceof $Object?ObjectPrototype$2:null},fails$8=fails$k,isCallable$5=isCallable$i,getPrototypeOf$3=objectGetPrototypeOf,defineBuiltIn$3=defineBuiltIn$6,wellKnownSymbol$9=wellKnownSymbol$e,ITERATOR$4=wellKnownSymbol$9("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator;[].keys&&(arrayIterator=[].keys(),"next"in arrayIterator?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$3(getPrototypeOf$3(arrayIterator)),PrototypeOfArrayIteratorPrototype!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype)):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=IteratorPrototype$2==null||fails$8(function(){var v={};return IteratorPrototype$2[ITERATOR$4].call(v)!==v});NEW_ITERATOR_PROTOTYPE&&(IteratorPrototype$2={});isCallable$5(IteratorPrototype$2[ITERATOR$4])||defineBuiltIn$3(IteratorPrototype$2,ITERATOR$4,function(){return this});var iteratorsCore={IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},defineProperty$3=objectDefineProperty.f,hasOwn$2=hasOwnProperty_1,wellKnownSymbol$8=wellKnownSymbol$e,TO_STRING_TAG$1=wellKnownSymbol$8("toStringTag"),setToStringTag$3=function(v,k,ie){v&&!ie&&(v=v.prototype),v&&!hasOwn$2(v,TO_STRING_TAG$1)&&defineProperty$3(v,TO_STRING_TAG$1,{configurable:!0,value:k})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$1=objectCreate,createPropertyDescriptor$2=createPropertyDescriptor$5,setToStringTag$2=setToStringTag$3,Iterators$4=iterators,returnThis$1=function(){return this},createIteratorConstructor$1=function(v,k,ie,ae){var ce=k+" Iterator";return v.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor$2(+!ae,ie)}),setToStringTag$2(v,ce,!1),Iterators$4[ce]=returnThis$1,v},isCallable$4=isCallable$i,$String=String,$TypeError$4=TypeError,aPossiblePrototype$1=function(v){if(typeof v=="object"||isCallable$4(v))return v;throw $TypeError$4("Can't set "+$String(v)+" as a prototype")},uncurryThis$8=functionUncurryThis,anObject$3=anObject$a,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var v=!1,k={},ie;try{ie=uncurryThis$8(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),ie(k,[]),v=k instanceof Array}catch{}return function(ce,fe){return anObject$3(ce),aPossiblePrototype(fe),v?ie(ce,fe):ce.__proto__=fe,ce}}():void 0),$$2=_export,call$6=functionCall,FunctionName$1=functionName,isCallable$3=isCallable$i,createIteratorConstructor=createIteratorConstructor$1,getPrototypeOf$2=objectGetPrototypeOf,setPrototypeOf$4=objectSetPrototypeOf,setToStringTag$1=setToStringTag$3,createNonEnumerableProperty$3=createNonEnumerableProperty$6,defineBuiltIn$2=defineBuiltIn$6,wellKnownSymbol$7=wellKnownSymbol$e,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$1=FunctionName$1.PROPER,CONFIGURABLE_FUNCTION_NAME$1=FunctionName$1.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$3=wellKnownSymbol$7("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(v,k,ie,ae,ce,fe,le){createIteratorConstructor(ie,k,ae);var ve=function(ur){if(ur===ce&&cr)return cr;if(!BUGGY_SAFARI_ITERATORS&&ur in me)return me[ur];switch(ur){case KEYS:return function(){return new ie(this,ur)};case VALUES:return function(){return new ie(this,ur)};case ENTRIES:return function(){return new ie(this,ur)}}return function(){return new ie(this)}},pe=k+" Iterator",ye=!1,me=v.prototype,Ee=me[ITERATOR$3]||me["@@iterator"]||ce&&me[ce],cr=!BUGGY_SAFARI_ITERATORS&&Ee||ve(ce),Br=k=="Array"&&me.entries||Ee,$r,Pr,Ar;if(Br&&($r=getPrototypeOf$2(Br.call(new v)),$r!==Object.prototype&&$r.next&&(getPrototypeOf$2($r)!==IteratorPrototype&&(setPrototypeOf$4?setPrototypeOf$4($r,IteratorPrototype):isCallable$3($r[ITERATOR$3])||defineBuiltIn$2($r,ITERATOR$3,returnThis)),setToStringTag$1($r,pe,!0))),PROPER_FUNCTION_NAME$1&&ce==VALUES&&Ee&&Ee.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME$1?createNonEnumerableProperty$3(me,"name",VALUES):(ye=!0,cr=function(){return call$6(Ee,this)})),ce)if(Pr={values:ve(VALUES),keys:fe?cr:ve(KEYS),entries:ve(ENTRIES)},le)for(Ar in Pr)(BUGGY_SAFARI_ITERATORS||ye||!(Ar in me))&&defineBuiltIn$2(me,Ar,Pr[Ar]);else $$2({target:k,proto:!0,forced:BUGGY_SAFARI_ITERATORS||ye},Pr);return me[ITERATOR$3]!==cr&&defineBuiltIn$2(me,ITERATOR$3,cr,{name:ce}),Iterators$3[k]=cr,Pr},toIndexedObject$1=toIndexedObject$6,addToUnscopables=addToUnscopables$1,Iterators$2=iterators,InternalStateModule$3=internalState,defineProperty$2=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS$4=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$2=InternalStateModule$3.set,getInternalState$3=InternalStateModule$3.getterFor(ARRAY_ITERATOR);defineIterator(Array,"Array",function(v,k){setInternalState$2(this,{type:ARRAY_ITERATOR,target:toIndexedObject$1(v),index:0,kind:k})},function(){var v=getInternalState$3(this),k=v.target,ie=v.kind,ae=v.index++;return!k||ae>=k.length?(v.target=void 0,{value:void 0,done:!0}):ie=="keys"?{value:ae,done:!1}:ie=="values"?{value:k[ae],done:!1}:{value:[ae,k[ae]],done:!1}},"values");var values=Iterators$2.Arguments=Iterators$2.Array;addToUnscopables("keys");addToUnscopables("values");addToUnscopables("entries");if(DESCRIPTORS$4&&values.name!=="values")try{defineProperty$2(values,"name",{value:"values"})}catch(v){}var arrayBufferNative=typeof ArrayBuffer<"u"&&typeof DataView<"u",defineBuiltIn$1=defineBuiltIn$6,defineBuiltIns$1=function(v,k,ie){for(var ae in k)defineBuiltIn$1(v,ae,k[ae],ie);return v},isPrototypeOf$2=objectIsPrototypeOf,$TypeError$3=TypeError,anInstance$2=function(v,k){if(isPrototypeOf$2(k,v))return v;throw $TypeError$3("Incorrect invocation")},toIntegerOrInfinity$2=toIntegerOrInfinity$5,toLength$3=toLength$5,$RangeError$2=RangeError,toIndex$2=function(v){if(v===void 0)return 0;var k=toIntegerOrInfinity$2(v),ie=toLength$3(k);if(k!==ie)throw $RangeError$2("Wrong length or index");return ie},$Array$2=Array,abs=Math.abs,pow=Math.pow,floor$2=Math.floor,log=Math.log,LN2=Math.LN2,pack=function(v,k,ie){var ae=$Array$2(ie),ce=ie*8-k-1,fe=(1<>1,ve=k===23?pow(2,-24)-pow(2,-77):0,pe=v<0||v===0&&1/v<0?1:0,ye=0,me,Ee,cr;for(v=abs(v),v!=v||v===1/0?(Ee=v!=v?1:0,me=fe):(me=floor$2(log(v)/LN2),cr=pow(2,-me),v*cr<1&&(me--,cr*=2),me+le>=1?v+=ve/cr:v+=ve*pow(2,1-le),v*cr>=2&&(me++,cr/=2),me+le>=fe?(Ee=0,me=fe):me+le>=1?(Ee=(v*cr-1)*pow(2,k),me=me+le):(Ee=v*pow(2,le-1)*pow(2,k),me=0));k>=8;)ae[ye++]=Ee&255,Ee/=256,k-=8;for(me=me<0;)ae[ye++]=me&255,me/=256,ce-=8;return ae[--ye]|=pe*128,ae},unpack=function(v,k){var ie=v.length,ae=ie*8-k-1,ce=(1<>1,le=ae-7,ve=ie-1,pe=v[ve--],ye=pe&127,me;for(pe>>=7;le>0;)ye=ye*256+v[ve--],le-=8;for(me=ye&(1<<-le)-1,ye>>=-le,le+=k;le>0;)me=me*256+v[ve--],le-=8;if(ye===0)ye=1-fe;else{if(ye===ce)return me?NaN:pe?-1/0:1/0;me=me+pow(2,k),ye=ye-fe}return(pe?-1:1)*me*pow(2,ye-k)},ieee754={pack,unpack},toObject$2=toObject$6,toAbsoluteIndex$2=toAbsoluteIndex$4,lengthOfArrayLike$4=lengthOfArrayLike$6,arrayFill$1=function v(k){for(var ie=toObject$2(this),ae=lengthOfArrayLike$4(ie),ce=arguments.length,fe=toAbsoluteIndex$2(ce>1?arguments[1]:void 0,ae),le=ce>2?arguments[2]:void 0,ve=le===void 0?ae:toAbsoluteIndex$2(le,ae);ve>fe;)ie[fe++]=k;return ie},toPropertyKey$1=toPropertyKey$4,definePropertyModule$2=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$5,createProperty$1=function(v,k,ie){var ae=toPropertyKey$1(k);ae in v?definePropertyModule$2.f(v,ae,createPropertyDescriptor$1(0,ie)):v[ae]=ie},toAbsoluteIndex$1=toAbsoluteIndex$4,lengthOfArrayLike$3=lengthOfArrayLike$6,createProperty=createProperty$1,$Array$1=Array,max=Math.max,arraySliceSimple=function(v,k,ie){for(var ae=lengthOfArrayLike$3(v),ce=toAbsoluteIndex$1(k,ae),fe=toAbsoluteIndex$1(ie===void 0?ae:ie,ae),le=$Array$1(max(fe-ce,0)),ve=0;ce>8&255]},packInt32=function(v){return[v&255,v>>8&255,v>>16&255,v>>24&255]},unpackInt32=function(v){return v[3]<<24|v[2]<<16|v[1]<<8|v[0]},packFloat32=function(v){return packIEEE754(v,23,4)},packFloat64=function(v){return packIEEE754(v,52,8)},addGetter$1=function(v,k){defineProperty$1(v[PROTOTYPE],k,{get:function(){return getInternalState$2(this)[k]}})},get=function(v,k,ie,ae){var ce=toIndex$1(ie),fe=getInternalState$2(v);if(ce+k>fe.byteLength)throw RangeError$3(WRONG_INDEX);var le=getInternalState$2(fe.buffer).bytes,ve=ce+fe.byteOffset,pe=arraySlice$3(le,ve,ve+k);return ae?pe:reverse(pe)},set=function(v,k,ie,ae,ce,fe){var le=toIndex$1(ie),ve=getInternalState$2(v);if(le+k>ve.byteLength)throw RangeError$3(WRONG_INDEX);for(var pe=getInternalState$2(ve.buffer).bytes,ye=le+ve.byteOffset,me=ae(+ce),Ee=0;Eece)throw RangeError$3("Wrong offset");if(ae=ae===void 0?ce-fe:toLength$2(ae),fe+ae>ce)throw RangeError$3(WRONG_LENGTH$1);setInternalState$1(this,{buffer:k,byteLength:ae,byteOffset:fe}),DESCRIPTORS$3||(this.buffer=k,this.byteLength=ae,this.byteOffset=fe)},DataViewPrototype$1=$DataView[PROTOTYPE],DESCRIPTORS$3&&(addGetter$1($ArrayBuffer,"byteLength"),addGetter$1($DataView,"buffer"),addGetter$1($DataView,"byteLength"),addGetter$1($DataView,"byteOffset")),defineBuiltIns(DataViewPrototype$1,{getInt8:function(k){return get(this,1,k)[0]<<24>>24},getUint8:function(k){return get(this,1,k)[0]},getInt16:function(k){var ie=get(this,2,k,arguments.length>1?arguments[1]:void 0);return(ie[1]<<8|ie[0])<<16>>16},getUint16:function(k){var ie=get(this,2,k,arguments.length>1?arguments[1]:void 0);return ie[1]<<8|ie[0]},getInt32:function(k){return unpackInt32(get(this,4,k,arguments.length>1?arguments[1]:void 0))},getUint32:function(k){return unpackInt32(get(this,4,k,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(k){return unpackIEEE754(get(this,4,k,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(k){return unpackIEEE754(get(this,8,k,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(k,ie){set(this,1,k,packInt8,ie)},setUint8:function(k,ie){set(this,1,k,packInt8,ie)},setInt16:function(k,ie){set(this,2,k,packInt16,ie,arguments.length>2?arguments[2]:void 0)},setUint16:function(k,ie){set(this,2,k,packInt16,ie,arguments.length>2?arguments[2]:void 0)},setInt32:function(k,ie){set(this,4,k,packInt32,ie,arguments.length>2?arguments[2]:void 0)},setUint32:function(k,ie){set(this,4,k,packInt32,ie,arguments.length>2?arguments[2]:void 0)},setFloat32:function(k,ie){set(this,4,k,packFloat32,ie,arguments.length>2?arguments[2]:void 0)},setFloat64:function(k,ie){set(this,8,k,packFloat64,ie,arguments.length>2?arguments[2]:void 0)}});else{if(INCORRECT_ARRAY_BUFFER_NAME=PROPER_FUNCTION_NAME&&NativeArrayBuffer.name!==ARRAY_BUFFER,!fails$7(function(){NativeArrayBuffer(1)})||!fails$7(function(){new NativeArrayBuffer(-1)})||fails$7(function(){return new NativeArrayBuffer,new NativeArrayBuffer(1.5),new NativeArrayBuffer(NaN),INCORRECT_ARRAY_BUFFER_NAME&&!CONFIGURABLE_FUNCTION_NAME})){for($ArrayBuffer=function(k){return anInstance$1(this,ArrayBufferPrototype$1),new NativeArrayBuffer(toIndex$1(k))},$ArrayBuffer[PROTOTYPE]=ArrayBufferPrototype$1,keys2=getOwnPropertyNames$1(NativeArrayBuffer),j=0;keys2.length>j;)(key=keys2[j++])in $ArrayBuffer||createNonEnumerableProperty$2($ArrayBuffer,key,NativeArrayBuffer[key]);ArrayBufferPrototype$1.constructor=$ArrayBuffer}else INCORRECT_ARRAY_BUFFER_NAME&&CONFIGURABLE_FUNCTION_NAME&&createNonEnumerableProperty$2(NativeArrayBuffer,"name",ARRAY_BUFFER);setPrototypeOf$3&&getPrototypeOf$1(DataViewPrototype$1)!==ObjectPrototype$1&&setPrototypeOf$3(DataViewPrototype$1,ObjectPrototype$1),testView=new $DataView(new $ArrayBuffer(2)),$setInt8=uncurryThis$7(DataViewPrototype$1.setInt8),testView.setInt8(0,2147483648),testView.setInt8(1,2147483649),(testView.getInt8(0)||!testView.getInt8(1))&&defineBuiltIns(DataViewPrototype$1,{setInt8:function(k,ie){$setInt8(this,k,ie<<24>>24)},setUint8:function(k,ie){$setInt8(this,k,ie<<24>>24)}},{unsafe:!0})}var INCORRECT_ARRAY_BUFFER_NAME,keys2,j,key,testView,$setInt8;setToStringTag($ArrayBuffer,ARRAY_BUFFER);setToStringTag($DataView,DATA_VIEW);var arrayBuffer={ArrayBuffer:$ArrayBuffer,DataView:$DataView},uncurryThis$6=functionUncurryThis,fails$6=fails$k,isCallable$2=isCallable$i,classof$5=classof$7,getBuiltIn$1=getBuiltIn$6,inspectSource=inspectSource$3,noop=function(){},empty=[],construct=getBuiltIn$1("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$6(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function v(k){if(!isCallable$2(k))return!1;try{return construct(noop,empty,k),!0}catch{return!1}},isConstructorLegacy=function v(k){if(!isCallable$2(k))return!1;switch(classof$5(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource(k))}catch{return!0}};isConstructorLegacy.sham=!0;var isConstructor$2=!construct||fails$6(function(){var v;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){v=!0})||v})?isConstructorLegacy:isConstructorModern,isConstructor$1=isConstructor$2,tryToString$2=tryToString$4,$TypeError$2=TypeError,aConstructor$2=function(v){if(isConstructor$1(v))return v;throw $TypeError$2(tryToString$2(v)+" is not a constructor")},anObject$2=anObject$a,aConstructor$1=aConstructor$2,wellKnownSymbol$6=wellKnownSymbol$e,SPECIES$2=wellKnownSymbol$6("species"),speciesConstructor$1=function(v,k){var ie=anObject$2(v).constructor,ae;return ie===void 0||(ae=anObject$2(ie)[SPECIES$2])==null?k:aConstructor$1(ae)},$$1=_export,uncurryThis$5=functionUncurryThis,fails$5=fails$k,ArrayBufferModule$1=arrayBuffer,anObject$1=anObject$a,toAbsoluteIndex=toAbsoluteIndex$4,toLength$1=toLength$5,speciesConstructor=speciesConstructor$1,ArrayBuffer$3=ArrayBufferModule$1.ArrayBuffer,DataView$2=ArrayBufferModule$1.DataView,DataViewPrototype=DataView$2.prototype,un$ArrayBufferSlice=uncurryThis$5(ArrayBuffer$3.prototype.slice),getUint8=uncurryThis$5(DataViewPrototype.getUint8),setUint8=uncurryThis$5(DataViewPrototype.setUint8),INCORRECT_SLICE=fails$5(function(){return!new ArrayBuffer$3(2).slice(1,void 0).byteLength});$$1({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:INCORRECT_SLICE},{slice:function v(k,ie){if(un$ArrayBufferSlice&&ie===void 0)return un$ArrayBufferSlice(anObject$1(this),k);for(var ae=anObject$1(this).byteLength,ce=toAbsoluteIndex(k,ae),fe=toAbsoluteIndex(ie===void 0?ae:ie,ae),le=new(speciesConstructor(this,ArrayBuffer$3))(toLength$1(fe-ce)),ve=new DataView$2(this),pe=new DataView$2(le),ye=0;ce1?arguments[1]:void 0,le=fe!==void 0,ve=getIteratorMethod(ae),pe,ye,me,Ee,cr,Br;if(ve&&!isArrayIteratorMethod(ve))for(cr=getIterator(ae,ve),Br=cr.next,ae=[];!(Ee=call$4(Br,cr)).done;)ae.push(Ee.value);for(le&&ce>2&&(fe=bind$1(fe,arguments[2])),ye=lengthOfArrayLike$2(ae),me=new(aTypedArrayConstructor$1(ie))(ye),pe=0;ye>pe;pe++)me[pe]=le?fe(ae[pe],pe):ae[pe];return me},classof$2=classofRaw$1,isArray$1=Array.isArray||function v(k){return classof$2(k)=="Array"},isArray2=isArray$1,isConstructor3=isConstructor$2,isObject$2=isObject$a,wellKnownSymbol$1=wellKnownSymbol$e,SPECIES$1=wellKnownSymbol$1("species"),$Array=Array,arraySpeciesConstructor$1=function(v){var k;return isArray2(v)&&(k=v.constructor,isConstructor3(k)&&(k===$Array||isArray2(k.prototype))?k=void 0:isObject$2(k)&&(k=k[SPECIES$1],k===null&&(k=void 0))),k===void 0?$Array:k},arraySpeciesConstructor=arraySpeciesConstructor$1,arraySpeciesCreate$1=function(v,k){return new(arraySpeciesConstructor(v))(k===0?0:k)},bind=functionBindContext,uncurryThis$3=functionUncurryThis,IndexedObject=indexedObject,toObject=toObject$6,lengthOfArrayLike$1=lengthOfArrayLike$6,arraySpeciesCreate=arraySpeciesCreate$1,push=uncurryThis$3([].push),createMethod=function(v){var k=v==1,ie=v==2,ae=v==3,ce=v==4,fe=v==6,le=v==7,ve=v==5||fe;return function(pe,ye,me,Ee){for(var cr=toObject(pe),Br=IndexedObject(cr),$r=bind(ye,me),Pr=lengthOfArrayLike$1(Br),Ar=0,ur=Ee||arraySpeciesCreate,jr=k?ur(pe,Pr):ie||le?ur(pe,0):void 0,Mr,Lr;Pr>Ar;Ar++)if((ve||Ar in Br)&&(Mr=Br[Ar],Lr=$r(Mr,Ar,cr),v))if(k)jr[Ar]=Lr;else if(Lr)switch(v){case 3:return!0;case 5:return Mr;case 6:return Ar;case 2:push(jr,Mr)}else switch(v){case 4:return!1;case 7:push(jr,Mr)}return fe?-1:ae||ce?ce:jr}},arrayIteration={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterReject:createMethod(7)},getBuiltIn=getBuiltIn$6,definePropertyModule$1=objectDefineProperty,wellKnownSymbol=wellKnownSymbol$e,DESCRIPTORS$1=descriptors,SPECIES=wellKnownSymbol("species"),setSpecies$1=function(v){var k=getBuiltIn(v),ie=definePropertyModule$1.f;DESCRIPTORS$1&&k&&!k[SPECIES]&&ie(k,SPECIES,{configurable:!0,get:function(){return this}})},isCallable=isCallable$i,isObject$1=isObject$a,setPrototypeOf$1=objectSetPrototypeOf,inheritIfRequired$1=function(v,k,ie){var ae,ce;return setPrototypeOf$1&&isCallable(ae=k.constructor)&&ae!==ie&&isObject$1(ce=ae.prototype)&&ce!==ie.prototype&&setPrototypeOf$1(v,ce),v},$=_export,global$4=global$h,call$3=functionCall,DESCRIPTORS=descriptors,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS=typedArrayConstructorsRequireWrappers,ArrayBufferViewCore$4=arrayBufferViewCore,ArrayBufferModule=arrayBuffer,anInstance=anInstance$2,createPropertyDescriptor=createPropertyDescriptor$5,createNonEnumerableProperty=createNonEnumerableProperty$6,isIntegralNumber=isIntegralNumber$1,toLength=toLength$5,toIndex=toIndex$2,toOffset$1=toOffset$2,toPropertyKey=toPropertyKey$4,hasOwn2=hasOwnProperty_1,classof$1=classof$7,isObject=isObject$a,isSymbol=isSymbol$3,create2=objectCreate,isPrototypeOf=objectIsPrototypeOf,setPrototypeOf=objectSetPrototypeOf,getOwnPropertyNames2=objectGetOwnPropertyNames.f,typedArrayFrom=typedArrayFrom$1,forEach=arrayIteration.forEach,setSpecies=setSpecies$1,definePropertyModule=objectDefineProperty,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,InternalStateModule=internalState,inheritIfRequired=inheritIfRequired$1,getInternalState=InternalStateModule.get,setInternalState=InternalStateModule.set,enforceInternalState=InternalStateModule.enforce,nativeDefineProperty=definePropertyModule.f,nativeGetOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,round=Math.round,RangeError$2=global$4.RangeError,ArrayBuffer$1=ArrayBufferModule.ArrayBuffer,ArrayBufferPrototype=ArrayBuffer$1.prototype,DataView$1=ArrayBufferModule.DataView,NATIVE_ARRAY_BUFFER_VIEWS=ArrayBufferViewCore$4.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG=ArrayBufferViewCore$4.TYPED_ARRAY_TAG,TypedArray=ArrayBufferViewCore$4.TypedArray,TypedArrayPrototype=ArrayBufferViewCore$4.TypedArrayPrototype,aTypedArrayConstructor=ArrayBufferViewCore$4.aTypedArrayConstructor,isTypedArray=ArrayBufferViewCore$4.isTypedArray,BYTES_PER_ELEMENT="BYTES_PER_ELEMENT",WRONG_LENGTH="Wrong length",fromList=function(v,k){aTypedArrayConstructor(v);for(var ie=0,ae=k.length,ce=new v(ae);ae>ie;)ce[ie]=k[ie++];return ce},addGetter=function(v,k){nativeDefineProperty(v,k,{get:function(){return getInternalState(this)[k]}})},isArrayBuffer=function(v){var k;return isPrototypeOf(ArrayBufferPrototype,v)||(k=classof$1(v))=="ArrayBuffer"||k=="SharedArrayBuffer"},isTypedArrayIndex=function(v,k){return isTypedArray(v)&&!isSymbol(k)&&k in v&&isIntegralNumber(+k)&&k>=0},wrappedGetOwnPropertyDescriptor=function v(k,ie){return ie=toPropertyKey(ie),isTypedArrayIndex(k,ie)?createPropertyDescriptor(2,k[ie]):nativeGetOwnPropertyDescriptor(k,ie)},wrappedDefineProperty=function v(k,ie,ae){return ie=toPropertyKey(ie),isTypedArrayIndex(k,ie)&&isObject(ae)&&hasOwn2(ae,"value")&&!hasOwn2(ae,"get")&&!hasOwn2(ae,"set")&&!ae.configurable&&(!hasOwn2(ae,"writable")||ae.writable)&&(!hasOwn2(ae,"enumerable")||ae.enumerable)?(k[ie]=ae.value,k):nativeDefineProperty(k,ie,ae)};DESCRIPTORS?(NATIVE_ARRAY_BUFFER_VIEWS||(getOwnPropertyDescriptorModule.f=wrappedGetOwnPropertyDescriptor,definePropertyModule.f=wrappedDefineProperty,addGetter(TypedArrayPrototype,"buffer"),addGetter(TypedArrayPrototype,"byteOffset"),addGetter(TypedArrayPrototype,"byteLength"),addGetter(TypedArrayPrototype,"length")),$({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor,defineProperty:wrappedDefineProperty}),typedArrayConstructor.exports=function(v,k,ie){var ae=v.match(/\d+$/)[0]/8,ce=v+(ie?"Clamped":"")+"Array",fe="get"+v,le="set"+v,ve=global$4[ce],pe=ve,ye=pe&&pe.prototype,me={},Ee=function(Pr,Ar){var ur=getInternalState(Pr);return ur.view[fe](Ar*ae+ur.byteOffset,!0)},cr=function(Pr,Ar,ur){var jr=getInternalState(Pr);ie&&(ur=(ur=round(ur))<0?0:ur>255?255:ur&255),jr.view[le](Ar*ae+jr.byteOffset,ur,!0)},Br=function(Pr,Ar){nativeDefineProperty(Pr,Ar,{get:function(){return Ee(this,Ar)},set:function(ur){return cr(this,Ar,ur)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS&&(pe=k(function(Pr,Ar,ur,jr){return anInstance(Pr,ye),inheritIfRequired(function(){return isObject(Ar)?isArrayBuffer(Ar)?jr!==void 0?new ve(Ar,toOffset$1(ur,ae),jr):ur!==void 0?new ve(Ar,toOffset$1(ur,ae)):new ve(Ar):isTypedArray(Ar)?fromList(pe,Ar):call$3(typedArrayFrom,pe,Ar):new ve(toIndex(Ar))}(),Pr,pe)}),setPrototypeOf&&setPrototypeOf(pe,TypedArray),forEach(getOwnPropertyNames2(ve),function(Pr){Pr in pe||createNonEnumerableProperty(pe,Pr,ve[Pr])}),pe.prototype=ye):(pe=k(function(Pr,Ar,ur,jr){anInstance(Pr,ye);var Mr=0,Lr=0,Vr,Gr,Ur;if(!isObject(Ar))Ur=toIndex(Ar),Gr=Ur*ae,Vr=new ArrayBuffer$1(Gr);else if(isArrayBuffer(Ar)){Vr=Ar,Lr=toOffset$1(ur,ae);var Qr=Ar.byteLength;if(jr===void 0){if(Qr%ae||(Gr=Qr-Lr,Gr<0))throw RangeError$2(WRONG_LENGTH)}else if(Gr=toLength(jr)*ae,Gr+Lr>Qr)throw RangeError$2(WRONG_LENGTH);Ur=Gr/ae}else return isTypedArray(Ar)?fromList(pe,Ar):call$3(typedArrayFrom,pe,Ar);for(setInternalState(Pr,{buffer:Vr,byteOffset:Lr,byteLength:Gr,length:Ur,view:new DataView$1(Vr)});Mr1?arguments[1]:void 0,ie>2?arguments[2]:void 0)},CONVERSION_BUG);var global$3=global$h,call$1=functionCall,ArrayBufferViewCore$2=arrayBufferViewCore,lengthOfArrayLike=lengthOfArrayLike$6,toOffset=toOffset$2,toIndexedObject=toObject$6,fails$2=fails$k,RangeError$1=global$3.RangeError,Int8Array$2=global$3.Int8Array,Int8ArrayPrototype=Int8Array$2&&Int8Array$2.prototype,$set=Int8ArrayPrototype&&Int8ArrayPrototype.set,aTypedArray$2=ArrayBufferViewCore$2.aTypedArray,exportTypedArrayMethod$2=ArrayBufferViewCore$2.exportTypedArrayMethod,WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS=!fails$2(function(){var v=new Uint8ClampedArray(2);return call$1($set,v,{length:1,0:3},1),v[1]!==3}),TO_OBJECT_BUG=WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS&&ArrayBufferViewCore$2.NATIVE_ARRAY_BUFFER_VIEWS&&fails$2(function(){var v=new Int8Array$2(2);return v.set(1),v.set("2",1),v[0]!==0||v[1]!==2});exportTypedArrayMethod$2("set",function v(k){aTypedArray$2(this);var ie=toOffset(arguments.length>1?arguments[1]:void 0,1),ae=toIndexedObject(k);if(WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS)return call$1($set,this,ae,ie);var ce=this.length,fe=lengthOfArrayLike(ae),le=0;if(fe+ie>ce)throw RangeError$1("Wrong length");for(;le0;)v[fe]=v[--fe];fe!==ae++&&(v[fe]=ce)}return v},merge=function(v,k,ie,ae){for(var ce=k.length,fe=ie.length,le=0,ve=0;le0&&1/ie<0?1:-1:k>ie}};exportTypedArrayMethod$1("sort",function v(k){return k!==void 0&&aCallable(k),STABLE_SORT?un$Sort(this,k):internalSort(aTypedArray$1(this),getSortCompare(k))},!STABLE_SORT||ACCEPT_INCORRECT_ARGUMENTS);var NATIVE_BIND=functionBindNative,FunctionPrototype=Function.prototype,apply$1=FunctionPrototype.apply,call=FunctionPrototype.call,functionApply=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND?call.bind(apply$1):function(){return call.apply(apply$1,arguments)}),uncurryThis=functionUncurryThis,arraySlice$1=uncurryThis([].slice),global$1=global$h,apply=functionApply,ArrayBufferViewCore=arrayBufferViewCore,fails=fails$k,arraySlice=arraySlice$1,Int8Array$1=global$1.Int8Array,aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod,$toLocaleString=[].toLocaleString,TO_LOCALE_STRING_BUG=!!Int8Array$1&&fails(function(){$toLocaleString.call(new Int8Array$1(1))}),FORCED=fails(function(){return[1,2].toLocaleString()!=new Int8Array$1([1,2]).toLocaleString()})||!fails(function(){Int8Array$1.prototype.toLocaleString.call([1,2])});exportTypedArrayMethod("toLocaleString",function v(){return apply($toLocaleString,TO_LOCALE_STRING_BUG?arraySlice(aTypedArray(this)):aTypedArray(this),arraySlice(arguments))},FORCED);var isInstalled=()=>waitFor(()=>{var v,k;return!!(!((k=(v=window.finer)===null||v===void 0?void 0:v.near)===null||k===void 0)&&k.isFiner)}).catch(()=>!1),setupFinerState=()=>{var v;return{wallet:(v=window.finer)===null||v===void 0?void 0:v.near}},FinerExtension=({options:v,metadata:k,store:ie,provider:ae,emitter:ce,logger:fe})=>__awaiter(void 0,void 0,void 0,function*(){const le=setupFinerState(),ve=()=>__awaiter(void 0,void 0,void 0,function*(){if(!le.wallet.isSignedIn())return;const Br=yield le.wallet.signOut();if(Br===!0)return;const $r=new Error(typeof Br.error=="string"?Br.error:Br.error.type);if($r.message==="User reject")throw $r;fe.log("Failed to sign out"),fe.error($r)}),pe=()=>{le.wallet.on("accountChanged",Br=>__awaiter(void 0,void 0,void 0,function*(){fe.log("onAccountChange",Br),ce.emit("signedOut",null)})),le.wallet.on("rpcChanged",Br=>__awaiter(void 0,void 0,void 0,function*(){fe.log("onNetworkChange",Br),v.network.networkId!==Br.networkId&&(yield ve(),ce.emit("signedOut",null),ce.emit("networkChanged",{networkId:Br.networkId}))}))},ye=()=>{const Br=le.wallet.getAccountId();return Br?[{accountId:Br}]:[]},me=Br=>Br.every($r=>$r.type==="FunctionCall"),Ee=Br=>{if(!me(Br))throw new Error(`Only 'FunctionCall' actions types are supported by ${k.name}`);return Br.map(Pr=>Pr.params)},cr=Br=>Br.map($r=>({receiverId:$r.receiverId,actions:Ee($r.actions)}));return le.wallet&&le.wallet.isSignedIn()&&pe(),{signIn({contractId:Br,methodNames:$r}){return __awaiter(this,void 0,void 0,function*(){const Pr=ye();if(Pr.length)return Pr;const{accessKey:Ar,error:ur}=yield le.wallet.requestSignIn({contractId:Br,methodNames:$r});if(!Ar||ur)throw yield ve(),new Error((typeof ur=="string"?ur:ur.type)||"Failed to sign in");return pe(),ye()})},signOut:ve,getAccounts(){return __awaiter(this,void 0,void 0,function*(){return ye()})},verifyOwner({message:Br}){return __awaiter(this,void 0,void 0,function*(){fe.log("Finer:verifyOwner",{message:Br});const $r=le.wallet.account();if(!$r){const Gr=yield le.wallet.signMessage(Br);if(Gr.error)throw new Error(Gr.error);return Gr.response}if(!$r.connection.signer.signMessage)throw new Error("Wallet is locked");const Pr=v.network.networkId,Ar=$r.accountId,ur=yield $r.connection.signer.getPublicKey(Ar,Pr),jr=yield ae.block({finality:"final"}),Mr={accountId:Ar,message:Br,blockId:jr.header.hash,publicKey:Buffer.from(ur.data).toString("base64"),keyType:ur.keyType},Lr=JSON.stringify(Mr),Vr=yield $r.connection.signer.signMessage(new Uint8Array(Buffer.from(Lr)),Ar,Pr);return Object.assign(Object.assign({},Mr),{signature:Buffer.from(Vr.signature).toString("base64"),keyType:Vr.publicKey.keyType})})},signAndSendTransaction({signerId:Br,receiverId:$r,actions:Pr}){return __awaiter(this,void 0,void 0,function*(){fe.log("signAndSendTransaction",{signerId:Br,receiverId:$r,actions:Pr});const{contract:Ar}=ie.getState();if(!le.wallet.isSignedIn()||!Ar)throw new Error("Wallet not signed in");return le.wallet.signAndSendTransaction({receiverId:$r||Ar.contractId,actions:Ee(Pr)}).then(ur=>{var jr;if(ur.error)throw new Error(ur.error);if(ur.response&&"error"in ur.response)throw new Error(ur.response.error.message);if(!(!((jr=ur.response)===null||jr===void 0)&&jr.length))throw new Error("Invalid response");return ur.response[0]})})},signAndSendTransactions({transactions:Br}){return __awaiter(this,void 0,void 0,function*(){if(fe.log("signAndSendTransactions",{transactions:Br}),!le.wallet.isSignedIn())throw new Error("Wallet not signed in");return le.wallet.requestSignTransactions({transactions:cr(Br)}).then($r=>{var Pr;if($r.error)throw new Error($r.error);if($r.response&&"error"in $r.response)throw new Error($r.response.error.message);if(!(!((Pr=$r.response)===null||Pr===void 0)&&Pr.length))throw new Error("Invalid response");return $r.response})})}}});function setupFinerInjected({iconUrl:v=icon,deprecated:k=!1}={}){return()=>__awaiter(this,void 0,void 0,function*(){const ie=(0,import_is_mobile.isMobile)(),ae=yield isInstalled();return ie?null:(ae&&(yield waitFor(()=>{var ce,fe;return!!(!((fe=(ce=window.finer)===null||ce===void 0?void 0:ce.near)===null||fe===void 0)&&fe.isSignedIn())},{timeout:200}).catch(()=>!1)),{id:"finer-wallet",type:"injected",metadata:{name:"FiNER Wallet",description:"Browser extension wallet built on NEAR.",iconUrl:v,downloadUrl:"https://chrome.google.com/webstore/detail/finer-wallet/mbboloafhcopdfokibemggdnhcocggpl",deprecated:k,available:ae},init:FinerExtension})})}function setupFinerWallet({walletUrl:v,iconUrl:k=icon,deprecated:ie=!0}={}){return ae=>__awaiter(this,void 0,void 0,function*(){return(0,import_is_mobile.isMobile)()?yield setupFinerBrowser({walletUrl:v,iconUrl:k,deprecated:ie})(ae):yield setupFinerInjected({iconUrl:k,deprecated:ie})(ae)})}const _hoisted_1=createBaseVNode("h1",null,"NEAR Guest Book",-1),_sfc_main=defineComponent({__name:"App",setup(v){const k=shallowRef(),ie=shallowRef(),ae=shallowRef(),ce=shallowRef();return onMounted(async()=>{var pe;const fe=await setupWalletSelector({network:"testnet",modules:[setupNearWallet(),setupSender(),setupMathWallet(),setupNightly(),setupMeteorWallet(),setupHereWallet(),setupCoin98Wallet(),setupWelldoneWallet(),setupNearFi(),setupNeth({bundle:!1}),setupOptoWallet(),setupXDEFI(),setupNarwallets(),setupFinerWallet(),setupNearSnap(),setupRamperWallet(),setupWalletConnect({projectId:process.env.WALLETCONNECT_PROJECT_ID,metadata:{name:"NEAR Wallet Selector",description:"Example dApp used by NEAR Wallet Selector",url:"https://github.com/near/wallet-selector",icons:["https://avatars.githubusercontent.com/u/37784886"]}}),setupNightlyConnect({url:"wss://relay.nightly.app/app",appMetadata:{additionalInfo:"",application:"NEAR Wallet Selector",description:"Example dApp used by NEAR Wallet Selector",icon:"https://near.org/wp-content/uploads/2020/09/cropped-favicon-192x192.png"}})]}),le=setupModal(fe,{contractId:CONTRACT_ID});k.value=fe,ie.value=le;const ve=fe.store.getState();ce.value=ve.accounts,ae.value=((pe=ve.accounts.find(ye=>ye.active))==null?void 0:pe.accountId)||null,window.selector=fe,window.modal=le}),(fe,le)=>(openBlock(),createElementBlock(Fragment$1,null,[_hoisted_1,unref(k)?(openBlock(),createBlock(_sfc_main$1,{key:0,selector:unref(k),modal:unref(ie),accountId:unref(ae),accounts:unref(ce)},null,8,["selector","modal","accountId","accounts"])):createCommentVNode("",!0)],64))}});createApp(_sfc_main).mount("#app");export{F,G,N$2 as N,Q$1 as Q,T,__toESM as _,d,f,i,q$1 as q,require_browser$2 as r}; diff --git a/index.html b/index.html index ab6797b..35f8c75 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ NEAR Guest Book - +