Reading from NEAR testnet…
Reading from NEAR testnet…
2uN4PctTJEFdvt4w1oJJWPmLZyZ1mWK5zQkNjFcMxL8L
web4.nearbuilders.testnet to web4.nearbuilders.testnet · failed
fs_store()
import{a4 as A,a5 as v,a6 as E,a7 as T,a8 as C,a9 as I,aa as y,ab as b,ac as l,ad as _,ae as x,af as S,ag as d,ah as g,ai as p,aj as m,ak as N,al as O}from"./index-DhqGQKi4.js";import{an as P,am as z}from"./index-DhqGQKi4.js";const s=A({status:"uninitialized"}),u={state:s,subscribeKey(t,e){return v(s,t,e)},subscribe(t){return E(s,()=>t(s))},_getClient(){if(!s._client)throw new Error("SIWEController client not set");return s._client},async getNonce(t){const n=await this._getClient().getNonce(t);return this.setNonce(n),n},async getSession(){try{const e=await this._getClient().getSession();return e&&(this.setSession(e),this.setStatus("success")),e}catch{return}},createMessage(t){const n=this._getClient().createMessage(t);return this.setMessage(n),n},async verifyMessage(t){return await this._getClient().verifyMessage(t)},async signIn(){return await this._getClient().signIn()},async signOut(){var e;const t=this._getClient();await t.signOut(),this.setStatus("ready"),this.setSession(void 0),(e=t.onSignOut)==null||e.call(t)},onSignIn(t){var n;const e=this._getClient();(n=e.onSignIn)==null||n.call(e,t)},onSignOut(){var e;const t=this._getClient();(e=t.onSignOut)==null||e.call(t)},setSIWEClient(t){s._client=T(t),s.status="ready",C.setIsSiweEnabled(t.options.enabled)},setNonce(t){s.nonce=t},setStatus(t){s.status=t},setMessage(t){s.message=t},setSession(t){s.session=t,s.status=t?"success":"ready"}},R=I`
:host {
display: flex;
justify-content: center;
gap: var(--wui-spacing-2xl);
}
wui-visual-thumbnail:nth-child(1) {
z-index: 1;
}
`;var U=function(t,e,n,a){var r=arguments.length,i=r<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,n):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,n,a);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(i=(r<3?o(i):r>3?o(e,n,i):o(e,n))||i);return r>3&&i&&Object.defineProperty(e,n,i),i};let w=class extends b{constructor(){var e,n;super(...arguments),this.dappImageUrl=(e=C.state.metadata)==null?void 0:e.icons,this.walletImageUrl=(n=l.state.connectedWalletInfo)==null?void 0:n.icon}firstUpdated(){var n;const e=(n=this.shadowRoot)==null?void 0:n.querySelectorAll("wui-visual-thumbnail");e!=null&&e[0]&&this.createAnimation(e[0],"translate(18px)"),e!=null&&e[1]&&this.createAnimation(e[1],"translate(-18px)")}render(){var e;return _`
<wui-visual-thumbnail
?borderRadiusFull=${!0}
.imageSrc=${(e=this.dappImageUrl)==null?void 0:e[0]}
></wui-visual-thumbnail>
<wui-visual-thumbnail .imageSrc=${this.walletImageUrl}></wui-visual-thumbnail>
`}createAnimation(e,n){e.animate([{transform:"translateX(0px)"},{transform:n}],{duration:1600,easing:"cubic-bezier(0.56, 0, 0.48, 1)",direction:"alternate",iterations:1/0})}};w.styles=R;w=U([y("w3m-connecting-siwe")],w);var h=function(t,e,n,a){var r=arguments.length,i=r<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,n):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,n,a);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(i=(r<3?o(i):r>3?o(e,n,i):o(e,n))||i);return r>3&&i&&Object.defineProperty(e,n,i),i};let f=class extends b{constructor(){var e;super(...arguments),this.dappName=(e=C.state.metadata)==null?void 0:e.name,this.isSigning=!1,this.isCancelling=!1}render(){return this.onRender(),_`
<wui-flex justifyContent="center" .padding=${["2xl","0","xxl","0"]}>
<w3m-connecting-siwe></w3m-connecting-siwe>
</wui-flex>
<wui-flex
.padding=${["0","4xl","l","4xl"]}
gap="s"
justifyContent="space-between"
>
<wui-text variant="paragraph-500" align="center" color="fg-100"
>${this.dappName??"Dapp"} needs to connect to your wallet</wui-text
>
</wui-flex>
<wui-flex
.padding=${["0","3xl","l","3xl"]}
gap="s"
justifyContent="space-between"
>
<wui-text variant="small-400" align="center" color="fg-200"
>Sign this message to prove you own this wallet and proceed. Canceling will disconnect
you.</wui-text
>
</wui-flex>
<wui-flex .padding=${["l","xl","xl","xl"]} gap="s" justifyContent="space-between">
<wui-button
size="lg"
borderRadius="xs"
fullWidth
variant="neutral"
?loading=${this.isCancelling}
@click=${this.onCancel.bind(this)}
data-testid="w3m-connecting-siwe-cancel"
>
Cancel
</wui-button>
<wui-button
size="lg"
borderRadius="xs"
fullWidth
variant="main"
@click=${this.onSign.bind(this)}
?loading=${this.isSigning}
data-testid="w3m-connecting-siwe-sign"
>
${this.isSigning?"Signing...":"Sign"}
</wui-button>
</wui-flex>
`}onRender(){u.state.session&&S.close()}async onSign(){var e,n,a;this.isSigning=!0,d.sendEvent({event:"CLICK_SIGN_SIWE_MESSAGE",type:"track",properties:{network:((e=g.state.caipNetwork)==null?void 0:e.id)||"",isSmartAccount:l.state.preferredAccountType===p.ACCOUNT_TYPES.SMART_ACCOUNT}});try{u.setStatus("loading");const r=await u.signIn();return u.setStatus("success"),d.sendEvent({event:"SIWE_AUTH_SUCCESS",type:"track",properties:{network:((n=g.state.caipNetwork)==null?void 0:n.id)||"",isSmartAccount:l.state.preferredAccountType===p.ACCOUNT_TYPES.SMART_ACCOUNT}}),r}catch{const o=l.state.preferredAccountType===p.ACCOUNT_TYPES.SMART_ACCOUNT;return o?m.showError("This application might not support Smart Accounts"):m.showError("Signature declined"),u.setStatus("error"),d.sendEvent({event:"SIWE_AUTH_ERROR",type:"track",properties:{network:((a=g.state.caipNetwork)==null?void 0:a.id)||"",isSmartAccount:o}})}finally{this.isSigning=!1}}async onCancel(){var n;this.isCancelling=!0,l.state.isConnected?(await N.disconnect(),S.close()):O.push("Connect"),this.isCancelling=!1,d.sendEvent({event:"CLICK_CANCEL_SIWE",type:"track",properties:{network:((n=g.state.caipNetwork)==null?void 0:n.id)||"",isSmartAccount:l.state.preferredAccountType===p.ACCOUNT_TYPES.SMART_ACCOUNT}})}};h([x()],f.prototype,"isSigning",void 0);h([x()],f.prototype,"isCancelling",void 0);f=h([y("w3m-connecting-siwe-view")],f);export{u as SIWEController,w as W3mConnectingSiwe,f as W3mConnectingSiweView,P as getDidAddress,z as getDidChainId};
fs_store()
message}"`),utils_1$h.Logger.warn("Fallback to normal RPC call")}return this.account?this.account.viewFunction({contractId:this.contractId,methodName:zo,args:Vo,...Yo}):(0,utils_2$4.viewFunction)(this.connection,{contractId:this.contractId,methodName:zo,args:Vo,...Yo})})})}),Ho.forEach(({name:zo,abi:Go})=>{Object.defineProperty(this,zo,{writable:!1,enumerable:!0,value:nameFunction$1(zo,async(...Vo)=>{if(Vo.length&&(Vo.length>3||!(isObject$n(Vo[0])||isUint8Array$1(Vo[0]))))throw new types_1$i.PositionalArgsError;return(Vo.length>1||!(Vo[0]&&Vo[0].args))&&((0,depd_1$2.default)("contract.methodName(args, gas, amount)")("use `contract.methodName({ signerAccount, args, gas?, amount?, callbackUrl?, meta? })` instead"),Vo[0]={args:Vo[0],gas:Vo[1],amount:Vo[2]}),Go&&validateArguments$1(Vo[0].args,Go,Ao),this._changeMethod({methodName:zo,...Vo[0]})})})})}async _changeMethod({signerAccount:Fn,args:io,methodName:fo,gas:$o,amount:mo,meta:Ao,callbackUrl:jo}){validateBNLike$1({gas:$o,amount:mo});const Lo=this.account||Fn;if(!Lo)throw new Error("signerAccount must be specified");const Ho=await Lo.functionCall({contractId:this.contractId,methodName:fo,args:io,gas:$o,attachedDeposit:mo,walletMeta:Ao,walletCallbackUrl:jo});return(0,utils_1$h.getTransactionLastResult)(Ho)}};contract$3.Contract=Contract$1;function validateBNLike$1(Mn){const Fn="number, decimal string or BigInt";for(const io of Object.keys(Mn)){const fo=Mn[io];if(fo&&typeof fo!="bigint"&&isNaN(fo))throw new types_1$i.ArgumentTypeError(io,Fn,fo)}}(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.MultisigStateStatus=Mn.MultisigDeleteRequestRejectionError=Mn.UnsupportedSerializationError=Mn.UnknownArgumentError=Mn.ConflictingOptions=Mn.ArgumentSchemaError=Mn.Contract=Mn.MULTISIG_CONFIRM_METHODS=Mn.MULTISIG_CHANGE_METHODS=Mn.MULTISIG_DEPOSIT=Mn.MULTISIG_GAS=Mn.MULTISIG_ALLOWANCE=Mn.MULTISIG_STORAGE_KEY=Mn.Connection=Mn.AccountMultisig=Mn.UrlAccountCreator=Mn.LocalAccountCreator=Mn.AccountCreator=Mn.Account2FA=Mn.Account=void 0;var Fn=account$2;Object.defineProperty(Mn,"Account",{enumerable:!0,get:function(){return Fn.Account}});var io=account_2fa$1;Object.defineProperty(Mn,"Account2FA",{enumerable:!0,get:function(){return io.Account2FA}});var fo=account_creator$3;Object.defineProperty(Mn,"AccountCreator",{enumerable:!0,get:function(){return fo.AccountCreator}}),Object.defineProperty(Mn,"LocalAccountCreator",{enumerable:!0,get:function(){return fo.LocalAccountCreator}}),Object.defineProperty(Mn,"UrlAccountCreator",{enumerable:!0,get:function(){return fo.UrlAccountCreator}});var $o=account_multisig$3;Object.defineProperty(Mn,"AccountMultisig",{enumerable:!0,get:function(){return $o.AccountMultisig}});var mo=connection$3;Object.defineProperty(Mn,"Connection",{enumerable:!0,get:function(){return mo.Connection}});var Ao=constants$5;Object.defineProperty(Mn,"MULTISIG_STORAGE_KEY",{enumerable:!0,get:function(){return Ao.MULTISIG_STORAGE_KEY}}),Object.defineProperty(Mn,"MULTISIG_ALLOWANCE",{enumerable:!0,get:function(){return Ao.MULTISIG_ALLOWANCE}}),Object.defineProperty(Mn,"MULTISIG_GAS",{enumerable:!0,get:function(){return Ao.MULTISIG_GAS}}),Object.defineProperty(Mn,"MULTISIG_DEPOSIT",{enumerable:!0,get:function(){return Ao.MULTISIG_DEPOSIT}}),Object.defineProperty(Mn,"MULTISIG_CHANGE_METHODS",{enumerable:!0,get:function(){return Ao.MULTISIG_CHANGE_METHODS}}),Object.defineProperty(Mn,"MULTISIG_CONFIRM_METHODS",{enumerable:!0,get:function(){return Ao.MULTISIG_CONFIRM_METHODS}});var jo=contract$3;Object.defineProperty(Mn,"Contract",{enumerable:!0,get:function(){return jo.Contract}});var Lo=errors$4;Object.defineProperty(Mn,"ArgumentSchemaError",{enumerable:!0,get:function(){return Lo.ArgumentSchemaError}}),Object.defineProperty(Mn,"ConflictingOptions",{enumerable:!0,get:function(){return Lo.ConflictingOptions}}),Object.defineProperty(Mn,"UnknownArgumentError",{enumerable:!0,get:function(){return Lo.UnknownArgumentError}}),Object.defineProperty(Mn,"UnsupportedSerializationError",{enumerable:!0,get:function(){return Lo.UnsupportedSerializationError}});var Ho=types$3;Object.defineProperty(Mn,"MultisigDeleteRequestRejectionError",{enumerable:!0,get:function(){return Ho.MultisigDeleteRequestRejectionError}}),Object.defineProperty(Mn,"MultisigStateStatus",{enumerable:!0,get:function(){return Ho.MultisigStateStatus}})})(commonjs$2);(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.Account=void 0;var Fn=commonjs$2;Object.defineProperty(Mn,"Account",{enumerable:!0,get:function(){return Fn.Account}})})(account$3);var account_multisig$2={};(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.MultisigStateStatus=Mn.MultisigDeleteRequestRejectionError=Mn.MULTISIG_CONFIRM_METHODS=Mn.MULTISIG_CHANGE_METHODS=Mn.MULTISIG_DEPOSIT=Mn.MULTISIG_GAS=Mn.MULTISIG_ALLOWANCE=Mn.MULTISIG_STORAGE_KEY=Mn.AccountMultisig=Mn.Account2FA=void 0;var Fn=commonjs$2;Object.defineProperty(Mn,"Account2FA",{enumerable:!0,get:function(){return Fn.Account2FA}}),Object.defineProperty(Mn,"AccountMultisig",{enumerable:!0,get:function(){return Fn.AccountMultisig}}),Object.defineProperty(Mn,"MULTISIG_STORAGE_KEY",{enumerable:!0,get:function(){return Fn.MULTISIG_STORAGE_KEY}}),Object.defineProperty(Mn,"MULTISIG_ALLOWANCE",{enumerable:!0,get:function(){return Fn.MULTISIG_ALLOWANCE}}),Object.defineProperty(Mn,"MULTISIG_GAS",{enumerable:!0,get:function(){return Fn.MULTISIG_GAS}}),Object.defineProperty(Mn,"MULTISIG_DEPOSIT",{enumerable:!0,get:function(){return Fn.MULTISIG_DEPOSIT}}),Object.defineProperty(Mn,"MULTISIG_CHANGE_METHODS",{enumerable:!0,get:function(){return Fn.MULTISIG_CHANGE_METHODS}}),Object.defineProperty(Mn,"MULTISIG_CONFIRM_METHODS",{enumerable:!0,get:function(){return Fn.MULTISIG_CONFIRM_METHODS}}),Object.defineProperty(Mn,"MultisigDeleteRequestRejectionError",{enumerable:!0,get:function(){return Fn.MultisigDeleteRequestRejectionError}}),Object.defineProperty(Mn,"MultisigStateStatus",{enumerable:!0,get:function(){return Fn.MultisigStateStatus}})})(account_multisig$2);var account_creator$2={};(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.UrlAccountCreator=Mn.LocalAccountCreator=Mn.AccountCreator=void 0;var Fn=commonjs$2;Object.defineProperty(Mn,"AccountCreator",{enumerable:!0,get:function(){return Fn.AccountCreator}}),Object.defineProperty(Mn,"LocalAccountCreator",{enumerable:!0,get:function(){return Fn.LocalAccountCreator}}),Object.defineProperty(Mn,"UrlAccountCreator",{enumerable:!0,get:function(){return Fn.UrlAccountCreator}})})(account_creator$2);var connection$2={};(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.Connection=void 0;var Fn=commonjs$2;Object.defineProperty(Mn,"Connection",{enumerable:!0,get:function(){return Fn.Connection}})})(connection$2);var signer$2={};(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.Signer=Mn.InMemorySigner=void 0;var Fn=commonjs$1;Object.defineProperty(Mn,"InMemorySigner",{enumerable:!0,get:function(){return Fn.InMemorySigner}}),Object.defineProperty(Mn,"Signer",{enumerable:!0,get:function(){return Fn.Signer}})})(signer$2);var contract$2={};(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.Contract=void 0;var Fn=commonjs$2;Object.defineProperty(Mn,"Contract",{enumerable:!0,get:function(){return Fn.Contract}})})(contract$2);var near$3={},commonjs={},near$2={};Object.defineProperty(near$2,"__esModule",{value:!0});near$2.Near=void 0;const accounts_1$4=commonjs$2;let Near$1=class{constructor(Fn){ap(this,"config");ap(this,"connection");ap(this,"accountCreator");var io;if(this.config=Fn,this.connection=accounts_1$4.Connection.fromConfig({networkId:Fn.networkId,provider:Fn.provider||{type:"JsonRpcProvider",args:{url:Fn.nodeUrl,headers:Fn.headers}},signer:Fn.signer||{type:"InMemorySigner",keyStore:Fn.keyStore||((io=Fn.deps)==null?void 0:io.keyStore)},jsvmAccountId:Fn.jsvmAccountId||`jsvm.${Fn.networkId}`}),Fn.masterAccount){const fo=Fn.initialBalance?BigInt(Fn.initialBalance):500000000000000000000000000n;this.accountCreator=new accounts_1$4.LocalAccountCreator(new accounts_1$4.Account(this.connection,Fn.masterAccount),fo)}else Fn.helperUrl?this.accountCreator=new accounts_1$4.UrlAccountCreator(this.connection,Fn.helperUrl):this.accountCreator=null}async account(Fn){return new accounts_1$4.Account(this.connection,Fn)}async createAccount(Fn,io){if(!this.accountCreator)throw new Error("Must specify account creator, either via masterAccount or helperUrl configuration settings.");return await this.accountCreator.createAccount(Fn,io),new accounts_1$4.Account(this.connection,Fn)}};near$2.Near=Near$1;var wallet_account$1={};Object.defineProperty(wallet_account$1,"__esModule",{value:!0});wallet_account$1.ConnectedWalletAccount=wallet_account$1.WalletConnection=void 0;const accounts_1$3=commonjs$2,crypto_1$d=commonjs$9,utils_1$g=commonjs$6,transactions_1$7=commonjs$3,borsh_1$2=cjs,LOGIN_WALLET_URL_SUFFIX$1="/login/",MULTISIG_HAS_METHOD$2="add_request_and_confirm",LOCAL_STORAGE_KEY_SUFFIX$2="_wallet_auth_key",PENDING_ACCESS_KEY_PREFIX$1="pending_key";let WalletConnection$1=class{constructor(Fn,io){ap(this,"_walletBaseUrl");ap(this,"_authDataKey");ap(this,"_keyStore");ap(this,"_authData");ap(this,"_networkId");ap(this,"_near");ap(this,"_connectedAccount");ap(this,"_completeSignInPromise");if(typeof io!="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(mo,Ao){return Ao==="isSignedIn"?()=>!1:Ao==="getAccountId"?()=>"":mo[Ao]&&typeof mo[Ao]=="function"?()=>{throw new Error("No window found in context, please ensure you are using WalletConnection on the browser")}:mo[Ao]}});this._near=Fn;const fo=io+LOCAL_STORAGE_KEY_SUFFIX$2,$o=JSON.parse(window.localStorage.getItem(fo));this._networkId=Fn.config.networkId,this._walletBaseUrl=Fn.config.walletUrl,io=io||Fn.config.contractName||"default",this._keyStore=Fn.connection.signer.keyStore,this._authData=$o||{allKeys:[]},this._authDataKey=fo,this.isSignedIn()||(this._completeSignInPromise=this._completeSignInWithAccessKey())}isSignedIn(){return!!this._authData.accountId}async isSignedInAsync(){return this._completeSignInPromise?(await this._completeSignInPromise,this.isSignedIn()):this.isSignedIn()}getAccountId(){return this._authData.accountId||""}async requestSignInUrl({contractId:Fn,methodNames:io,successUrl:fo,failureUrl:$o,keyType:mo="ed25519"}){const Ao=new URL(window.location.href),jo=new URL(this._walletBaseUrl+LOGIN_WALLET_URL_SUFFIX$1);if(jo.searchParams.set("success_url",fo||Ao.href),jo.searchParams.set("failure_url",$o||Ao.href),Fn){await(await this._near.account(Fn)).state(),jo.searchParams.set("contract_id",Fn);const Ho=crypto_1$d.KeyPair.fromRandom(mo);jo.searchParams.set("public_key",Ho.getPublicKey().toString()),await this._keyStore.setKey(this._networkId,PENDING_ACCESS_KEY_PREFIX$1+Ho.getPublicKey(),Ho)}return io&&io.forEach(Lo=>{jo.searchParams.append("methodNames",Lo)}),jo.toString()}async requestSignIn(Fn){const io=await this.requestSignInUrl(Fn);window.location.assign(io)}requestSignTransactionsUrl({transactions:Fn,meta:io,callbackUrl:fo}){const $o=new URL(window.location.href),mo=new URL("sign",this._walletBaseUrl);return mo.searchParams.set("transactions",Fn.map(Ao=>(0,borsh_1$2.serialize)(transactions_1$7.SCHEMA.Transaction,Ao)).map(Ao=>Buffer$D.from(Ao).toString("base64")).join(",")),mo.searchParams.set("callbackUrl",fo||$o.href),io&&mo.searchParams.set("meta",io),mo.toString()}requestSignTransactions(Fn){const io=this.requestSignTransactionsUrl(Fn);window.location.assign(io)}async _completeSignInWithAccessKey(){const Fn=new URL(window.location.href),io=Fn.searchParams.get("public_key")||"",fo=(Fn.searchParams.get("all_keys")||"").split(","),$o=Fn.searchParams.get("account_id")||"";if($o){const mo={accountId:$o,allKeys:fo};window.localStorage.setItem(this._authDataKey,JSON.stringify(mo)),io&&await this._moveKeyFromTempToPermanent($o,io),this._authData=mo}Fn.searchParams.delete("public_key"),Fn.searchParams.delete("all_keys"),Fn.searchParams.delete("account_id"),Fn.searchParams.delete("meta"),Fn.searchParams.delete("transactionHashes"),window.history.replaceState({},document.title,Fn.toString())}async _moveKeyFromTempToPermanent(Fn,io){const fo=await this._keyStore.getKey(this._networkId,PENDING_ACCESS_KEY_PREFIX$1+io);await this._keyStore.setKey(this._networkId,Fn,fo),await this._keyStore.removeKey(this._networkId,PENDING_ACCESS_KEY_PREFIX$1+io)}signOut(){this._authData={},window.localStorage.removeItem(this._authDataKey)}account(){return this._connectedAccount||(this._connectedAccount=new ConnectedWalletAccount$1(this,this._near.connection,this._authData.accountId)),this._connectedAccount}};wallet_account$1.WalletConnection=WalletConnection$1;let ConnectedWalletAccount$1=class extends accounts_1$3.Account{constructor(io,fo,$o){super(fo,$o);ap(this,"walletConnection");this.walletConnection=io}async signAndSendTransaction({receiverId:io,actions:fo,walletMeta:$o,walletCallbackUrl:mo=window.location.href}){const Ao=await this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);let jo=await this.accessKeyForTransaction(io,fo,Ao);if(!jo)throw new Error(`Cannot find matching key for transaction sent to ${io}`);if(Ao&&Ao.toString()===jo.public_key)try{return await super.signAndSendTransaction({receiverId:io,actions:fo})}catch(Yo){if(Yo.type==="NotEnoughAllowance")jo=await this.accessKeyForTransaction(io,fo);else throw Yo}const Lo=await this.connection.provider.block({finality:"final"}),Ho=(0,utils_1$g.baseDecode)(Lo.header.hash),zo=crypto_1$d.PublicKey.from(jo.public_key),Go=jo.access_key.nonce+1n,Vo=(0,transactions_1$7.createTransaction)(this.accountId,zo,io,Go,fo,Ho);return await this.walletConnection.requestSignTransactions({transactions:[Vo],meta:$o,callbackUrl:mo}),new Promise((Yo,Xo)=>{setTimeout(()=>{Xo(new Error("Failed to redirect to sign transaction"))},1e3)})}async accessKeyMatchesTransaction(io,fo,$o){const{access_key:{permission:mo}}=io;if(mo==="FullAccess")return!0;if(mo.FunctionCall){const{receiver_id:Ao,method_names:jo}=mo.FunctionCall;if(Ao===this.accountId&&jo.includes(MULTISIG_HAS_METHOD$2))return!0;if(Ao===fo){if($o.length!==1)return!1;const[{functionCall:Lo}]=$o;return Lo&&(!Lo.deposit||Lo.deposit.toString()==="0")&&(jo.length===0||jo.includes(Lo.methodName))}}return!1}async accessKeyForTransaction(io,fo,$o){const mo=await this.getAccessKeys();if($o){const jo=mo.find(Lo=>Lo.public_key.toString()===$o.toString());if(jo&&await this.accessKeyMatchesTransaction(jo,io,fo))return jo}const Ao=this.walletConnection._authData.allKeys;for(const jo of mo)if(Ao.indexOf(jo.public_key)!==-1&&await this.accessKeyMatchesTransaction(jo,io,fo))return jo;return null}};wallet_account$1.ConnectedWalletAccount=ConnectedWalletAccount$1;(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.WalletConnection=Mn.ConnectedWalletAccount=Mn.Near=void 0;var Fn=near$2;Object.defineProperty(Mn,"Near",{enumerable:!0,get:function(){return Fn.Near}});var io=wallet_account$1;Object.defineProperty(Mn,"ConnectedWalletAccount",{enumerable:!0,get:function(){return io.ConnectedWalletAccount}}),Object.defineProperty(Mn,"WalletConnection",{enumerable:!0,get:function(){return io.WalletConnection}})})(commonjs);(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.Near=void 0;var Fn=commonjs;Object.defineProperty(Mn,"Near",{enumerable:!0,get:function(){return Fn.Near}})})(near$3);var walletAccount$1={};(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.WalletConnection=Mn.ConnectedWalletAccount=void 0;var Fn=commonjs;Object.defineProperty(Mn,"ConnectedWalletAccount",{enumerable:!0,get:function(){return Fn.ConnectedWalletAccount}}),Object.defineProperty(Mn,"WalletConnection",{enumerable:!0,get:function(){return Fn.WalletConnection}})})(walletAccount$1);(function(Mn){var Fn=commonjsGlobal$c&&commonjsGlobal$c.__createBinding||(Object.create?function(us,hs,_l,xl){xl===void 0&&(xl=_l);var Il=Object.getOwnPropertyDescriptor(hs,_l);(!Il||("get"in Il?!hs.__esModule:Il.writable||Il.configurable))&&(Il={enumerable:!0,get:function(){return hs[_l]}}),Object.defineProperty(us,xl,Il)}:function(us,hs,_l,xl){xl===void 0&&(xl=_l),us[xl]=hs[_l]}),io=commonjsGlobal$c&&commonjsGlobal$c.__setModuleDefault||(Object.create?function(us,hs){Object.defineProperty(us,"default",{enumerable:!0,value:hs})}:function(us,hs){us.default=hs}),fo=commonjsGlobal$c&&commonjsGlobal$c.__importStar||function(us){if(us&&us.__esModule)return us;var hs={};if(us!=null)for(var _l in us)_l!=="default"&&Object.prototype.hasOwnProperty.call(us,_l)&&Fn(hs,us,_l);return io(hs,us),hs};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.WalletConnection=Mn.ConnectedWalletAccount=Mn.Near=Mn.KeyPair=Mn.Signer=Mn.InMemorySigner=Mn.Contract=Mn.Connection=Mn.Account=Mn.multisig=Mn.validators=Mn.transactions=Mn.utils=Mn.providers=Mn.accountCreator=void 0;const $o=fo(providers$1);Mn.providers=$o;const mo=fo(utils$8);Mn.utils=mo;const Ao=fo(transaction$1);Mn.transactions=Ao;const jo=fo(validators$2);Mn.validators=jo;const Lo=account$3;Object.defineProperty(Mn,"Account",{enumerable:!0,get:function(){return Lo.Account}});const Ho=fo(account_multisig$2);Mn.multisig=Ho;const zo=fo(account_creator$2);Mn.accountCreator=zo;const Go=connection$2;Object.defineProperty(Mn,"Connection",{enumerable:!0,get:function(){return Go.Connection}});const Vo=signer$2;Object.defineProperty(Mn,"Signer",{enumerable:!0,get:function(){return Vo.Signer}}),Object.defineProperty(Mn,"InMemorySigner",{enumerable:!0,get:function(){return Vo.InMemorySigner}});const Yo=contract$2;Object.defineProperty(Mn,"Contract",{enumerable:!0,get:function(){return Yo.Contract}});const Xo=key_pair$2;Object.defineProperty(Mn,"KeyPair",{enumerable:!0,get:function(){return Xo.KeyPair}});const is=near$3;Object.defineProperty(Mn,"Near",{enumerable:!0,get:function(){return is.Near}});const yl=walletAccount$1;Object.defineProperty(Mn,"ConnectedWalletAccount",{enumerable:!0,get:function(){return yl.ConnectedWalletAccount}}),Object.defineProperty(Mn,"WalletConnection",{enumerable:!0,get:function(){return yl.WalletConnection}})})(commonIndex$1);var browserConnect$1={};Object.defineProperty(browserConnect$1,"__esModule",{value:!0});browserConnect$1.connect=void 0;const near_1$1=near$3;async function connect$1(Mn){return new near_1$1.Near(Mn)}browserConnect$1.connect=connect$1;(function(Mn){var Fn=commonjsGlobal$c&&commonjsGlobal$c.__createBinding||(Object.create?function(mo,Ao,jo,Lo){Lo===void 0&&(Lo=jo);var Ho=Object.getOwnPropertyDescriptor(Ao,jo);(!Ho||("get"in Ho?!Ao.__esModule:Ho.writable||Ho.configurable))&&(Ho={enumerable:!0,get:function(){return Ao[jo]}}),Object.defineProperty(mo,Lo,Ho)}:function(mo,Ao,jo,Lo){Lo===void 0&&(Lo=jo),mo[Lo]=Ao[jo]}),io=commonjsGlobal$c&&commonjsGlobal$c.__setModuleDefault||(Object.create?function(mo,Ao){Object.defineProperty(mo,"default",{enumerable:!0,value:Ao})}:function(mo,Ao){mo.default=Ao}),fo=commonjsGlobal$c&&commonjsGlobal$c.__importStar||function(mo){if(mo&&mo.__esModule)return mo;var Ao={};if(mo!=null)for(var jo in mo)jo!=="default"&&Object.prototype.hasOwnProperty.call(mo,jo)&&Fn(Ao,mo,jo);return io(Ao,mo),Ao},$o=commonjsGlobal$c&&commonjsGlobal$c.__exportStar||function(mo,Ao){for(var jo in mo)jo!=="default"&&!Object.prototype.hasOwnProperty.call(Ao,jo)&&Fn(Ao,mo,jo)};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.keyStores=void 0,Mn.keyStores=fo(browserIndex$3),$o(commonIndex$1,Mn),$o(browserConnect$1,Mn)})(browserIndex$4);function isFunction(Mn){return typeof Mn=="function"}function createErrorClass(Mn){var Fn=function(fo){Error.call(fo),fo.stack=new Error().stack},io=Mn(Fn);return io.prototype=Object.create(Error.prototype),io.prototype.constructor=io,io}var UnsubscriptionError=createErrorClass(function(Mn){return function(io){Mn(this),this.message=io?io.length+` errors occurred during unsubscription:
`+io.map(function(fo,$o){return $o+1+") "+fo.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=io}});function arrRemove(Mn,Fn){if(Mn){var io=Mn.indexOf(Fn);0<=io&&Mn.splice(io,1)}}var Subscription=function(){function Mn(Fn){this.initialTeardown=Fn,this.closed=!1,this._parentage=null,this._finalizers=null}return Mn.prototype.unsubscribe=function(){var Fn,io,fo,$o,mo;if(!this.closed){this.closed=!0;var Ao=this._parentage;if(Ao)if(this._parentage=null,Array.isArray(Ao))try{for(var jo=__values$1(Ao),Lo=jo.next();!Lo.done;Lo=jo.next()){var Ho=Lo.value;Ho.remove(this)}}catch(is){Fn={error:is}}finally{try{Lo&&!Lo.done&&(io=jo.return)&&io.call(jo)}finally{if(Fn)throw Fn.error}}else Ao.remove(this);var zo=this.initialTeardown;if(isFunction(zo))try{zo()}catch(is){mo=is instanceof UnsubscriptionError?is.errors:[is]}var Go=this._finalizers;if(Go){this._finalizers=null;try{for(var Vo=__values$1(Go),Yo=Vo.next();!Yo.done;Yo=Vo.next()){var Xo=Yo.value;try{execFinalizer(Xo)}catch(is){mo=mo??[],is instanceof UnsubscriptionError?mo=__spreadArray$1(__spreadArray$1([],__read$1(mo)),__read$1(is.errors)):mo.push(is)}}}catch(is){fo={error:is}}finally{try{Yo&&!Yo.done&&($o=Vo.return)&&$o.call(Vo)}finally{if(fo)throw fo.error}}}if(mo)throw new UnsubscriptionError(mo)}},Mn.prototype.add=function(Fn){var io;if(Fn&&Fn!==this)if(this.closed)execFinalizer(Fn);else{if(Fn instanceof Mn){if(Fn.closed||Fn._hasParent(this))return;Fn._addParent(this)}(this._finalizers=(io=this._finalizers)!==null&&io!==void 0?io:[]).push(Fn)}},Mn.prototype._hasParent=function(Fn){var io=this._parentage;return io===Fn||Array.isArray(io)&&io.includes(Fn)},Mn.prototype._addParent=function(Fn){var io=this._parentage;this._parentage=Array.isArray(io)?(io.push(Fn),io):io?[io,Fn]:Fn},Mn.prototype._removeParent=function(Fn){var io=this._parentage;io===Fn?this._parentage=null:Array.isArray(io)&&arrRemove(io,Fn)},Mn.prototype.remove=function(Fn){var io=this._finalizers;io&&arrRemove(io,Fn),Fn instanceof Mn&&Fn._removeParent(this)},Mn.EMPTY=function(){var Fn=new Mn;return Fn.closed=!0,Fn}(),Mn}(),EMPTY_SUBSCRIPTION=Subscription.EMPTY;function isSubscription(Mn){return Mn instanceof Subscription||Mn&&"closed"in Mn&&isFunction(Mn.remove)&&isFunction(Mn.add)&&isFunction(Mn.unsubscribe)}function execFinalizer(Mn){isFunction(Mn)?Mn():Mn.unsubscribe()}var config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},timeoutProvider={setTimeout:function(Mn,Fn){for(var io=[],fo=2;fo<arguments.length;fo++)io[fo-2]=arguments[fo];return setTimeout.apply(void 0,__spreadArray$1([Mn,Fn],__read$1(io)))},clearTimeout:function(Mn){return clearTimeout(Mn)},delegate:void 0};function reportUnhandledError(Mn){timeoutProvider.setTimeout(function(){throw Mn})}function noop$1(){}function errorContext(Mn){Mn()}var Subscriber=function(Mn){__extends$5(Fn,Mn);function Fn(io){var fo=Mn.call(this)||this;return fo.isStopped=!1,io?(fo.destination=io,isSubscription(io)&&io.add(fo)):fo.destination=EMPTY_OBSERVER,fo}return Fn.create=function(io,fo,$o){return new SafeSubscriber(io,fo,$o)},Fn.prototype.next=function(io){this.isStopped||this._next(io)},Fn.prototype.error=function(io){this.isStopped||(this.isStopped=!0,this._error(io))},Fn.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Fn.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Mn.prototype.unsubscribe.call(this),this.destination=null)},Fn.prototype._next=function(io){this.destination.next(io)},Fn.prototype._error=function(io){try{this.destination.error(io)}finally{this.unsubscribe()}},Fn.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Fn}(Subscription),_bind=Function.prototype.bind;function bind$b(Mn,Fn){return _bind.call(Mn,Fn)}var ConsumerObserver=function(){function Mn(Fn){this.partialObserver=Fn}return Mn.prototype.next=function(Fn){var io=this.partialObserver;if(io.next)try{io.next(Fn)}catch(fo){handleUnhandledError(fo)}},Mn.prototype.error=function(Fn){var io=this.partialObserver;if(io.error)try{io.error(Fn)}catch(fo){handleUnhandledError(fo)}else handleUnhandledError(Fn)},Mn.prototype.complete=function(){var Fn=this.partialObserver;if(Fn.complete)try{Fn.complete()}catch(io){handleUnhandledError(io)}},Mn}(),SafeSubscriber=function(Mn){__extends$5(Fn,Mn);function Fn(io,fo,$o){var mo=Mn.call(this)||this,Ao;if(isFunction(io)||!io)Ao={next:io??void 0,error:fo??void 0,complete:$o??void 0};else{var jo;mo&&config.useDeprecatedNextContext?(jo=Object.create(io),jo.unsubscribe=function(){return mo.unsubscribe()},Ao={next:io.next&&bind$b(io.next,jo),error:io.error&&bind$b(io.error,jo),complete:io.complete&&bind$b(io.complete,jo)}):Ao=io}return mo.destination=new ConsumerObserver(Ao),mo}return Fn}(Subscriber);function handleUnhandledError(Mn){reportUnhandledError(Mn)}function defaultErrorHandler(Mn){throw Mn}var EMPTY_OBSERVER={closed:!0,next:noop$1,error:defaultErrorHandler,complete:noop$1},observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function identity$1(Mn){return Mn}function pipeFromArray(Mn){return Mn.length===0?identity$1:Mn.length===1?Mn[0]:function(io){return Mn.reduce(function(fo,$o){return $o(fo)},io)}}var Observable=function(){function Mn(Fn){Fn&&(this._subscribe=Fn)}return Mn.prototype.lift=function(Fn){var io=new Mn;return io.source=this,io.operator=Fn,io},Mn.prototype.subscribe=function(Fn,io,fo){var $o=this,mo=isSubscriber(Fn)?Fn:new SafeSubscriber(Fn,io,fo);return errorContext(function(){var Ao=$o,jo=Ao.operator,Lo=Ao.source;mo.add(jo?jo.call(mo,Lo):Lo?$o._subscribe(mo):$o._trySubscribe(mo))}),mo},Mn.prototype._trySubscribe=function(Fn){try{return this._subscribe(Fn)}catch(io){Fn.error(io)}},Mn.prototype.forEach=function(Fn,io){var fo=this;return io=getPromiseCtor(io),new io(function($o,mo){var Ao=new SafeSubscriber({next:function(jo){try{Fn(jo)}catch(Lo){mo(Lo),Ao.unsubscribe()}},error:mo,complete:$o});fo.subscribe(Ao)})},Mn.prototype._subscribe=function(Fn){var io;return(io=this.source)===null||io===void 0?void 0:io.subscribe(Fn)},Mn.prototype[observable]=function(){return this},Mn.prototype.pipe=function(){for(var Fn=[],io=0;io<arguments.length;io++)Fn[io]=arguments[io];return pipeFromArray(Fn)(this)},Mn.prototype.toPromise=function(Fn){var io=this;return Fn=getPromiseCtor(Fn),new Fn(function(fo,$o){var mo;io.subscribe(function(Ao){return mo=Ao},function(Ao){return $o(Ao)},function(){return fo(mo)})})},Mn.create=function(Fn){return new Mn(Fn)},Mn}();function getPromiseCtor(Mn){var Fn;return(Fn=Mn??config.Promise)!==null&&Fn!==void 0?Fn:Promise}function isObserver(Mn){return Mn&&isFunction(Mn.next)&&isFunction(Mn.error)&&isFunction(Mn.complete)}function isSubscriber(Mn){return Mn&&Mn instanceof Subscriber||isObserver(Mn)&&isSubscription(Mn)}function hasLift(Mn){return isFunction(Mn==null?void 0:Mn.lift)}function operate(Mn){return function(Fn){if(hasLift(Fn))return Fn.lift(function(io){try{return Mn(io,this)}catch(fo){this.error(fo)}});throw new TypeError("Unable to lift unknown Observable type")}}function createOperatorSubscriber(Mn,Fn,io,fo,$o){return new OperatorSubscriber(Mn,Fn,io,fo,$o)}var OperatorSubscriber=function(Mn){__extends$5(Fn,Mn);function Fn(io,fo,$o,mo,Ao,jo){var Lo=Mn.call(this,io)||this;return Lo.onFinalize=Ao,Lo.shouldUnsubscribe=jo,Lo._next=fo?function(Ho){try{fo(Ho)}catch(zo){io.error(zo)}}:Mn.prototype._next,Lo._error=mo?function(Ho){try{mo(Ho)}catch(zo){io.error(zo)}finally{this.unsubscribe()}}:Mn.prototype._error,Lo._complete=$o?function(){try{$o()}catch(Ho){io.error(Ho)}finally{this.unsubscribe()}}:Mn.prototype._complete,Lo}return Fn.prototype.unsubscribe=function(){var io;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var fo=this.closed;Mn.prototype.unsubscribe.call(this),!fo&&((io=this.onFinalize)===null||io===void 0||io.call(this))}},Fn}(Subscriber),ObjectUnsubscribedError=createErrorClass(function(Mn){return function(){Mn(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Subject=function(Mn){__extends$5(Fn,Mn);function Fn(){var io=Mn.call(this)||this;return io.closed=!1,io.currentObservers=null,io.observers=[],io.isStopped=!1,io.hasError=!1,io.thrownError=null,io}return Fn.prototype.lift=function(io){var fo=new AnonymousSubject(this,this);return fo.operator=io,fo},Fn.prototype._throwIfClosed=function(){if(this.closed)throw new ObjectUnsubscribedError},Fn.prototype.next=function(io){var fo=this;errorContext(function(){var $o,mo;if(fo._throwIfClosed(),!fo.isStopped){fo.currentObservers||(fo.currentObservers=Array.from(fo.observers));try{for(var Ao=__values$1(fo.currentObservers),jo=Ao.next();!jo.done;jo=Ao.next()){var Lo=jo.value;Lo.next(io)}}catch(Ho){$o={error:Ho}}finally{try{jo&&!jo.done&&(mo=Ao.return)&&mo.call(Ao)}finally{if($o)throw $o.error}}}})},Fn.prototype.error=function(io){var fo=this;errorContext(function(){if(fo._throwIfClosed(),!fo.isStopped){fo.hasError=fo.isStopped=!0,fo.thrownError=io;for(var $o=fo.observers;$o.length;)$o.shift().error(io)}})},Fn.prototype.complete=function(){var io=this;errorContext(function(){if(io._throwIfClosed(),!io.isStopped){io.isStopped=!0;for(var fo=io.observers;fo.length;)fo.shift().complete()}})},Fn.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(Fn.prototype,"observed",{get:function(){var io;return((io=this.observers)===null||io===void 0?void 0:io.length)>0},enumerable:!1,configurable:!0}),Fn.prototype._trySubscribe=function(io){return this._throwIfClosed(),Mn.prototype._trySubscribe.call(this,io)},Fn.prototype._subscribe=function(io){return this._throwIfClosed(),this._checkFinalizedStatuses(io),this._innerSubscribe(io)},Fn.prototype._innerSubscribe=function(io){var fo=this,$o=this,mo=$o.hasError,Ao=$o.isStopped,jo=$o.observers;return mo||Ao?EMPTY_SUBSCRIPTION:(this.currentObservers=null,jo.push(io),new Subscription(function(){fo.currentObservers=null,arrRemove(jo,io)}))},Fn.prototype._checkFinalizedStatuses=function(io){var fo=this,$o=fo.hasError,mo=fo.thrownError,Ao=fo.isStopped;$o?io.error(mo):Ao&&io.complete()},Fn.prototype.asObservable=function(){var io=new Observable;return io.source=this,io},Fn.create=function(io,fo){return new AnonymousSubject(io,fo)},Fn}(Observable),AnonymousSubject=function(Mn){__extends$5(Fn,Mn);function Fn(io,fo){var $o=Mn.call(this)||this;return $o.destination=io,$o.source=fo,$o}return Fn.prototype.next=function(io){var fo,$o;($o=(fo=this.destination)===null||fo===void 0?void 0:fo.next)===null||$o===void 0||$o.call(fo,io)},Fn.prototype.error=function(io){var fo,$o;($o=(fo=this.destination)===null||fo===void 0?void 0:fo.error)===null||$o===void 0||$o.call(fo,io)},Fn.prototype.complete=function(){var io,fo;(fo=(io=this.destination)===null||io===void 0?void 0:io.complete)===null||fo===void 0||fo.call(io)},Fn.prototype._subscribe=function(io){var fo,$o;return($o=(fo=this.source)===null||fo===void 0?void 0:fo.subscribe(io))!==null&&$o!==void 0?$o:EMPTY_SUBSCRIPTION},Fn}(Subject),BehaviorSubject=function(Mn){__extends$5(Fn,Mn);function Fn(io){var fo=Mn.call(this)||this;return fo._value=io,fo}return Object.defineProperty(Fn.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),Fn.prototype._subscribe=function(io){var fo=Mn.prototype._subscribe.call(this,io);return!fo.closed&&io.next(this._value),fo},Fn.prototype.getValue=function(){var io=this,fo=io.hasError,$o=io.thrownError,mo=io._value;if(fo)throw $o;return this._throwIfClosed(),mo},Fn.prototype.next=function(io){Mn.prototype.next.call(this,this._value=io)},Fn}(Subject);function map(Mn,Fn){return operate(function(io,fo){var $o=0;io.subscribe(createOperatorSubscriber(fo,function(mo){fo.next(Mn.call(Fn,mo,$o++))}))})}function scanInternals(Mn,Fn,io,fo,$o){return function(mo,Ao){var jo=io,Lo=Fn,Ho=0;mo.subscribe(createOperatorSubscriber(Ao,function(zo){var Go=Ho++;Lo=jo?Mn(Lo,zo,Go):(jo=!0,zo),Ao.next(Lo)},$o))}}function distinctUntilChanged(Mn,Fn){return Fn===void 0&&(Fn=identity$1),Mn=Mn??defaultCompare,operate(function(io,fo){var $o,mo=!0;io.subscribe(createOperatorSubscriber(fo,function(Ao){var jo=Fn(Ao);(mo||!Mn($o,jo))&&(mo=!1,$o=jo,fo.next(Ao))}))})}function defaultCompare(Mn,Fn){return Mn===Fn}function scan(Mn,Fn){return operate(scanInternals(Mn,Fn,arguments.length>=2,!0))}var lib$9={},_Buffer=safeBufferExports$1.Buffer;function base$2(Mn){if(Mn.length>=255)throw new TypeError("Alphabet too long");for(var Fn=new Uint8Array(256),io=0;io<Fn.length;io++)Fn[io]=255;for(var fo=0;fo<Mn.length;fo++){var $o=Mn.charAt(fo),mo=$o.charCodeAt(0);if(Fn[mo]!==255)throw new TypeError($o+" is ambiguous");Fn[mo]=fo}var Ao=Mn.length,jo=Mn.charAt(0),Lo=Math.log(Ao)/Math.log(256),Ho=Math.log(256)/Math.log(Ao);function zo(Yo){if((Array.isArray(Yo)||Yo instanceof Uint8Array)&&(Yo=_Buffer.from(Yo)),!_Buffer.isBuffer(Yo))throw new TypeError("Expected Buffer");if(Yo.length===0)return"";for(var Xo=0,is=0,yl=0,us=Yo.length;yl!==us&&Yo[yl]===0;)yl++,Xo++;for(var hs=(us-yl)*Ho+1>>>0,_l=new Uint8Array(hs);yl!==us;){for(var xl=Yo[yl],Il=0,Ol=hs-1;(xl!==0||Il<is)&&Ol!==-1;Ol--,Il++)xl+=256*_l[Ol]>>>0,_l[Ol]=xl%Ao>>>0,xl=xl/Ao>>>0;if(xl!==0)throw new Error("Non-zero carry");is=Il,yl++}for(var Tl=hs-is;Tl!==hs&&_l[Tl]===0;)Tl++;for(var Cl=jo.repeat(Xo);Tl<hs;++Tl)Cl+=Mn.charAt(_l[Tl]);return Cl}function Go(Yo){if(typeof Yo!="string")throw new TypeError("Expected String");if(Yo.length===0)return _Buffer.alloc(0);for(var Xo=0,is=0,yl=0;Yo[Xo]===jo;)is++,Xo++;for(var us=(Yo.length-Xo)*Lo+1>>>0,hs=new Uint8Array(us);Xo<Yo.length;){var _l=Fn[Yo.charCodeAt(Xo)];if(_l===255)return;for(var xl=0,Il=us-1;(_l!==0||xl<yl)&&Il!==-1;Il--,xl++)_l+=Ao*hs[Il]>>>0,hs[Il]=_l%256>>>0,_l=_l/256>>>0;if(_l!==0)throw new Error("Non-zero carry");yl=xl,Xo++}for(var Ol=us-yl;Ol!==us&&hs[Ol]===0;)Ol++;var Tl=_Buffer.allocUnsafe(is+(us-Ol));Tl.fill(0,0,is);for(var Cl=is;Ol!==us;)Tl[Cl++]=hs[Ol++];return Tl}function Vo(Yo){var Xo=Go(Yo);if(Xo)return Xo;throw new Error("Non-base"+Ao+" character")}return{encode:zo,decodeUnsafe:Go,decode:Vo}}var src$2=base$2,basex$1=src$2,ALPHABET$1="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",bs58$2=basex$1(ALPHABET$1);function inRange(Mn,Fn,io){return Fn<=Mn&&Mn<=io}function ToDictionary(Mn){if(Mn===void 0)return{};if(Mn===Object(Mn))return Mn;throw TypeError("Could not convert argument to dictionary")}function stringToCodePoints(Mn){for(var Fn=String(Mn),io=Fn.length,fo=0,$o=[];fo<io;){var mo=Fn.charCodeAt(fo);if(mo<55296||mo>57343)$o.push(mo);else if(56320<=mo&&mo<=57343)$o.push(65533);else if(55296<=mo&&mo<=56319)if(fo===io-1)$o.push(65533);else{var Ao=Mn.charCodeAt(fo+1);if(56320<=Ao&&Ao<=57343){var jo=mo&1023,Lo=Ao&1023;$o.push(65536+(jo<<10)+Lo),fo+=1}else $o.push(65533)}fo+=1}return $o}function codePointsToString(Mn){for(var Fn="",io=0;io<Mn.length;++io){var fo=Mn[io];fo<=65535?Fn+=String.fromCharCode(fo):(fo-=65536,Fn+=String.fromCharCode((fo>>10)+55296,(fo&1023)+56320))}return Fn}var end_of_stream=-1;function Stream(Mn){this.tokens=[].slice.call(Mn)}Stream.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():end_of_stream},prepend:function(Mn){if(Array.isArray(Mn))for(var Fn=Mn;Fn.length;)this.tokens.unshift(Fn.pop());else this.tokens.unshift(Mn)},push:function(Mn){if(Array.isArray(Mn))for(var Fn=Mn;Fn.length;)this.tokens.push(Fn.shift());else this.tokens.push(Mn)}};var finished=-1;function decoderError(Mn,Fn){if(Mn)throw TypeError("Decoder error");return Fn||65533}var DEFAULT_ENCODING="utf-8";function TextDecoder$1(Mn,Fn){if(!(this instanceof TextDecoder$1))return new TextDecoder$1(Mn,Fn);if(Mn=Mn!==void 0?String(Mn).toLowerCase():DEFAULT_ENCODING,Mn!==DEFAULT_ENCODING)throw new Error("Encoding not supported. Only utf-8 is supported");Fn=ToDictionary(Fn),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!Fn.fatal,this._ignoreBOM=!!Fn.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}TextDecoder$1.prototype={decode:function Mn(Fn,io){var fo;typeof Fn=="object"&&Fn instanceof ArrayBuffer?fo=new Uint8Array(Fn):typeof Fn=="object"&&"buffer"in Fn&&Fn.buffer instanceof ArrayBuffer?fo=new Uint8Array(Fn.buffer,Fn.byteOffset,Fn.byteLength):fo=new Uint8Array(0),io=ToDictionary(io),this._streaming||(this._decoder=new UTF8Decoder({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!io.stream;for(var $o=new Stream(fo),mo=[],Ao;!$o.endOfStream()&&(Ao=this._decoder.handler($o,$o.read()),Ao!==finished);)Ao!==null&&(Array.isArray(Ao)?mo.push.apply(mo,Ao):mo.push(Ao));if(!this._streaming){do{if(Ao=this._decoder.handler($o,$o.read()),Ao===finished)break;Ao!==null&&(Array.isArray(Ao)?mo.push.apply(mo,Ao):mo.push(Ao))}while(!$o.endOfStream());this._decoder=null}return mo.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(mo[0]===65279?(this._BOMseen=!0,mo.shift()):this._BOMseen=!0),codePointsToString(mo)}};function TextEncoder$1(Mn,Fn){if(!(this instanceof TextEncoder$1))return new TextEncoder$1(Mn,Fn);if(Mn=Mn!==void 0?String(Mn).toLowerCase():DEFAULT_ENCODING,Mn!==DEFAULT_ENCODING)throw new Error("Encoding not supported. Only utf-8 is supported");Fn=ToDictionary(Fn),this._streaming=!1,this._encoder=null,this._options={fatal:!!Fn.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}TextEncoder$1.prototype={encode:function Mn(Fn,io){Fn=Fn?String(Fn):"",io=ToDictionary(io),this._streaming||(this._encoder=new UTF8Encoder(this._options)),this._streaming=!!io.stream;for(var fo=[],$o=new Stream(stringToCodePoints(Fn)),mo;!$o.endOfStream()&&(mo=this._encoder.handler($o,$o.read()),mo!==finished);)Array.isArray(mo)?fo.push.apply(fo,mo):fo.push(mo);if(!this._streaming){for(;mo=this._encoder.handler($o,$o.read()),mo!==finished;)Array.isArray(mo)?fo.push.apply(fo,mo):fo.push(mo);this._encoder=null}return new Uint8Array(fo)}};function UTF8Decoder(Mn){var Fn=Mn.fatal,io=0,fo=0,$o=0,mo=128,Ao=191;this.handler=function(jo,Lo){if(Lo===end_of_stream&&$o!==0)return $o=0,decoderError(Fn);if(Lo===end_of_stream)return finished;if($o===0){if(inRange(Lo,0,127))return Lo;if(inRange(Lo,194,223))$o=1,io=Lo-192;else if(inRange(Lo,224,239))Lo===224&&(mo=160),Lo===237&&(Ao=159),$o=2,io=Lo-224;else if(inRange(Lo,240,244))Lo===240&&(mo=144),Lo===244&&(Ao=143),$o=3,io=Lo-240;else return decoderError(Fn);return io=io<<6*$o,null}if(!inRange(Lo,mo,Ao))return io=$o=fo=0,mo=128,Ao=191,jo.prepend(Lo),decoderError(Fn);if(mo=128,Ao=191,fo+=1,io+=Lo-128<<6*($o-fo),fo!==$o)return null;var Ho=io;return io=$o=fo=0,Ho}}function UTF8Encoder(Mn){Mn.fatal,this.handler=function(Fn,io){if(io===end_of_stream)return finished;if(inRange(io,0,127))return io;var fo,$o;inRange(io,128,2047)?(fo=1,$o=192):inRange(io,2048,65535)?(fo=2,$o=224):inRange(io,65536,1114111)&&(fo=3,$o=240);for(var mo=[(io>>6*fo)+$o];fo>0;){var Ao=io>>6*(fo-1);mo.push(128|Ao&63),fo-=1}return mo}}const encoding$1=Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:TextDecoder$1,TextEncoder:TextEncoder$1},Symbol.toStringTag,{value:"Module"})),require$$2$1=getAugmentedNamespace(encoding$1);var __createBinding$1=commonjsGlobal$c&&commonjsGlobal$c.__createBinding||(Object.create?function(Mn,Fn,io,fo){fo===void 0&&(fo=io),Object.defineProperty(Mn,fo,{enumerable:!0,get:function(){return Fn[io]}})}:function(Mn,Fn,io,fo){fo===void 0&&(fo=io),Mn[fo]=Fn[io]}),__setModuleDefault$1=commonjsGlobal$c&&commonjsGlobal$c.__setModuleDefault||(Object.create?function(Mn,Fn){Object.defineProperty(Mn,"default",{enumerable:!0,value:Fn})}:function(Mn,Fn){Mn.default=Fn}),__decorate=commonjsGlobal$c&&commonjsGlobal$c.__decorate||function(Mn,Fn,io,fo){var $o=arguments.length,mo=$o<3?Fn:fo===null?fo=Object.getOwnPropertyDescriptor(Fn,io):fo,Ao;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")mo=Reflect.decorate(Mn,Fn,io,fo);else for(var jo=Mn.length-1;jo>=0;jo--)(Ao=Mn[jo])&&(mo=($o<3?Ao(mo):$o>3?Ao(Fn,io,mo):Ao(Fn,io))||mo);return $o>3&&mo&&Object.defineProperty(Fn,io,mo),mo},__importStar$1=commonjsGlobal$c&&commonjsGlobal$c.__importStar||function(Mn){if(Mn&&Mn.__esModule)return Mn;var Fn={};if(Mn!=null)for(var io in Mn)io!=="default"&&Object.hasOwnProperty.call(Mn,io)&&__createBinding$1(Fn,Mn,io);return __setModuleDefault$1(Fn,Mn),Fn},__importDefault$9=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(Mn){return Mn&&Mn.__esModule?Mn:{default:Mn}};Object.defineProperty(lib$9,"__esModule",{value:!0});lib$9.deserializeUnchecked=lib$9.deserialize=lib$9.serialize=lib$9.BinaryReader=lib$9.BinaryWriter=lib$9.BorshError=lib$9.baseDecode=lib$9.baseEncode=void 0;const bn_js_1$2=__importDefault$9(bnExports),bs58_1=__importDefault$9(bs58$2),encoding=__importStar$1(require$$2$1),ResolvedTextDecoder=typeof TextDecoder!="function"?encoding.TextDecoder:TextDecoder,textDecoder=new ResolvedTextDecoder("utf-8",{fatal:!0});function baseEncode(Mn){return typeof Mn=="string"&&(Mn=Buffer$D.from(Mn,"utf8")),bs58_1.default.encode(Buffer$D.from(Mn))}lib$9.baseEncode=baseEncode;function baseDecode(Mn){return Buffer$D.from(bs58_1.default.decode(Mn))}lib$9.baseDecode=baseDecode;const INITIAL_LENGTH=1024;class BorshError extends Error{constructor(Fn){super(Fn),this.fieldPath=[],this.originalMessage=Fn}addToFieldPath(Fn){this.fieldPath.splice(0,0,Fn),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}lib$9.BorshError=BorshError;class BinaryWriter{constructor(){this.buf=Buffer$D.alloc(INITIAL_LENGTH),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer$D.concat([this.buf,Buffer$D.alloc(INITIAL_LENGTH)]))}writeU8(Fn){this.maybeResize(),this.buf.writeUInt8(Fn,this.length),this.length+=1}writeU16(Fn){this.maybeResize(),this.buf.writeUInt16LE(Fn,this.length),this.length+=2}writeU32(Fn){this.maybeResize(),this.buf.writeUInt32LE(Fn,this.length),this.length+=4}writeU64(Fn){this.maybeResize(),this.writeBuffer(Buffer$D.from(new bn_js_1$2.default(Fn).toArray("le",8)))}writeU128(Fn){this.maybeResize(),this.writeBuffer(Buffer$D.from(new bn_js_1$2.default(Fn).toArray("le",16)))}writeU256(Fn){this.maybeResize(),this.writeBuffer(Buffer$D.from(new bn_js_1$2.default(Fn).toArray("le",32)))}writeU512(Fn){this.maybeResize(),this.writeBuffer(Buffer$D.from(new bn_js_1$2.default(Fn).toArray("le",64)))}writeBuffer(Fn){this.buf=Buffer$D.concat([Buffer$D.from(this.buf.subarray(0,this.length)),Fn,Buffer$D.alloc(INITIAL_LENGTH)]),this.length+=Fn.length}writeString(Fn){this.maybeResize();const io=Buffer$D.from(Fn,"utf8");this.writeU32(io.length),this.writeBuffer(io)}writeFixedArray(Fn){this.writeBuffer(Buffer$D.from(Fn))}writeArray(Fn,io){this.maybeResize(),this.writeU32(Fn.length);for(const fo of Fn)this.maybeResize(),io(fo)}toArray(){return this.buf.subarray(0,this.length)}}lib$9.BinaryWriter=BinaryWriter;function handlingRangeError(Mn,Fn,io){const fo=io.value;io.value=function(...$o){try{return fo.apply(this,$o)}catch(mo){if(mo instanceof RangeError){const Ao=mo.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(Ao)>=0)throw new BorshError("Reached the end of buffer when deserializing")}throw mo}}}class BinaryReader{constructor(Fn){this.buf=Fn,this.offset=0}readU8(){const Fn=this.buf.readUInt8(this.offset);return this.offset+=1,Fn}readU16(){const Fn=this.buf.readUInt16LE(this.offset);return this.offset+=2,Fn}readU32(){const Fn=this.buf.readUInt32LE(this.offset);return this.offset+=4,Fn}readU64(){const Fn=this.readBuffer(8);return new bn_js_1$2.default(Fn,"le")}readU128(){const Fn=this.readBuffer(16);return new bn_js_1$2.default(Fn,"le")}readU256(){const Fn=this.readBuffer(32);return new bn_js_1$2.default(Fn,"le")}readU512(){const Fn=this.readBuffer(64);return new bn_js_1$2.default(Fn,"le")}readBuffer(Fn){if(this.offset+Fn>this.buf.length)throw new BorshError(`Expected buffer length ${Fn} isn't within bounds`);const io=this.buf.slice(this.offset,this.offset+Fn);return this.offset+=Fn,io}readString(){const Fn=this.readU32(),io=this.readBuffer(Fn);try{return textDecoder.decode(io)}catch(fo){throw new BorshError(`Error decoding UTF-8 string: ${fo}`)}}readFixedArray(Fn){return new Uint8Array(this.readBuffer(Fn))}readArray(Fn){const io=this.readU32(),fo=Array();for(let $o=0;$o<io;++$o)fo.push(Fn());return fo}}__decorate([handlingRangeError],BinaryReader.prototype,"readU8",null);__decorate([handlingRangeError],BinaryReader.prototype,"readU16",null);__decorate([handlingRangeError],BinaryReader.prototype,"readU32",null);__decorate([handlingRangeError],BinaryReader.prototype,"readU64",null);__decorate([handlingRangeError],BinaryReader.prototype,"readU128",null);__decorate([handlingRangeError],BinaryReader.prototype,"readU256",null);__decorate([handlingRangeError],BinaryReader.prototype,"readU512",null);__decorate([handlingRangeError],BinaryReader.prototype,"readString",null);__decorate([handlingRangeError],BinaryReader.prototype,"readFixedArray",null);__decorate([handlingRangeError],BinaryReader.prototype,"readArray",null);lib$9.BinaryReader=BinaryReader;function capitalizeFirstLetter(Mn){return Mn.charAt(0).toUpperCase()+Mn.slice(1)}function serializeField(Mn,Fn,io,fo,$o){try{if(typeof fo=="string")$o[`write${capitalizeFirstLetter(fo)}`](io);else if(fo instanceof Array)if(typeof fo[0]=="number"){if(io.length!==fo[0])throw new BorshError(`Expecting byte array of length ${fo[0]}, but got ${io.length} bytes`);$o.writeFixedArray(io)}else if(fo.length===2&&typeof fo[1]=="number"){if(io.length!==fo[1])throw new BorshError(`Expecting byte array of length ${fo[1]}, but got ${io.length} bytes`);for(let mo=0;mo<fo[1];mo++)serializeField(Mn,null,io[mo],fo[0],$o)}else $o.writeArray(io,mo=>{serializeField(Mn,Fn,mo,fo[0],$o)});else if(fo.kind!==void 0)switch(fo.kind){case"option":{io==null?$o.writeU8(0):($o.writeU8(1),serializeField(Mn,Fn,io,fo.type,$o));break}case"map":{$o.writeU32(io.size),io.forEach((mo,Ao)=>{serializeField(Mn,Fn,Ao,fo.key,$o),serializeField(Mn,Fn,mo,fo.value,$o)});break}default:throw new BorshError(`FieldType ${fo} unrecognized`)}else serializeStruct(Mn,io,$o)}catch(mo){throw mo instanceof BorshError&&mo.addToFieldPath(Fn),mo}}function serializeStruct(Mn,Fn,io){if(typeof Fn.borshSerialize=="function"){Fn.borshSerialize(io);return}const fo=Mn.get(Fn.constructor);if(!fo)throw new BorshError(`Class ${Fn.constructor.name} is missing in schema`);if(fo.kind==="struct")fo.fields.map(([$o,mo])=>{serializeField(Mn,$o,Fn[$o],mo,io)});else if(fo.kind==="enum"){const $o=Fn[fo.field];for(let mo=0;mo<fo.values.length;++mo){const[Ao,jo]=fo.values[mo];if(Ao===$o){io.writeU8(mo),serializeField(Mn,Ao,Fn[Ao],jo,io);break}}}else throw new BorshError(`Unexpected schema kind: ${fo.kind} for ${Fn.constructor.name}`)}function serialize$2(Mn,Fn,io=BinaryWriter){const fo=new io;return serializeStruct(Mn,Fn,fo),fo.toArray()}lib$9.serialize=serialize$2;function deserializeField(Mn,Fn,io,fo){try{if(typeof io=="string")return fo[`read${capitalizeFirstLetter(io)}`]();if(io instanceof Array){if(typeof io[0]=="number")return fo.readFixedArray(io[0]);if(typeof io[1]=="number"){const $o=[];for(let mo=0;mo<io[1];mo++)$o.push(deserializeField(Mn,null,io[0],fo));return $o}else return fo.readArray(()=>deserializeField(Mn,Fn,io[0],fo))}if(io.kind==="option")return fo.readU8()?deserializeField(Mn,Fn,io.type,fo):void 0;if(io.kind==="map"){let $o=new Map;const mo=fo.readU32();for(let Ao=0;Ao<mo;Ao++){const jo=deserializeField(Mn,Fn,io.key,fo),Lo=deserializeField(Mn,Fn,io.value,fo);$o.set(jo,Lo)}return $o}return deserializeStruct(Mn,io,fo)}catch($o){throw $o instanceof BorshError&&$o.addToFieldPath(Fn),$o}}function deserializeStruct(Mn,Fn,io){if(typeof Fn.borshDeserialize=="function")return Fn.borshDeserialize(io);const fo=Mn.get(Fn);if(!fo)throw new BorshError(`Class ${Fn.name} is missing in schema`);if(fo.kind==="struct"){const $o={};for(const[mo,Ao]of Mn.get(Fn).fields)$o[mo]=deserializeField(Mn,mo,Ao,io);return new Fn($o)}if(fo.kind==="enum"){const $o=io.readU8();if($o>=fo.values.length)throw new BorshError(`Enum index: ${$o} is out of range`);const[mo,Ao]=fo.values[$o],jo=deserializeField(Mn,mo,Ao,io);return new Fn({[mo]:jo})}throw new BorshError(`Unexpected schema kind: ${fo.kind} for ${Fn.constructor.name}`)}function deserialize$1(Mn,Fn,io,fo=BinaryReader){const $o=new fo(io),mo=deserializeStruct(Mn,Fn,$o);if($o.offset<io.length)throw new BorshError(`Unexpected ${io.length-$o.offset} bytes after deserialized data`);return mo}lib$9.deserialize=deserialize$1;function deserializeUnchecked(Mn,Fn,io,fo=BinaryReader){const $o=new fo(io);return deserializeStruct(Mn,Fn,$o)}lib$9.deserializeUnchecked=deserializeUnchecked;var sha256$1={exports:{}};(function(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$1$7=="object"&&process$1$7.versions&&process$1$7.versions.node;NODE_JS?root=commonjsGlobal$c:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&!0&&module.exports,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(Mn){return Object.prototype.toString.call(Mn)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(Mn){return typeof Mn=="object"&&Mn.buffer&&Mn.buffer.constructor===ArrayBuffer});var createOutputMethod=function(Mn,Fn){return function(io){return new Sha256(Fn,!0).update(io)[Mn]()}},createMethod=function(Mn){var Fn=createOutputMethod("hex",Mn);NODE_JS&&(Fn=nodeWrap(Fn,Mn)),Fn.create=function(){return new Sha256(Mn)},Fn.update=function($o){return Fn.create().update($o)};for(var io=0;io<OUTPUT_TYPES.length;++io){var fo=OUTPUT_TYPES[io];Fn[fo]=createOutputMethod(fo,Mn)}return Fn},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(Mn){if(typeof Mn=="string")return crypto.createHash(algorithm).update(Mn,"utf8").digest("hex");if(Mn==null)throw new Error(ERROR);return Mn.constructor===ArrayBuffer&&(Mn=new Uint8Array(Mn)),Array.isArray(Mn)||ArrayBuffer.isView(Mn)||Mn.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(Mn)).digest("hex"):method(Mn)};return nodeMethod},createHmacOutputMethod=function(Mn,Fn){return function(io,fo){return new HmacSha256(io,Fn,!0).update(fo)[Mn]()}},createHmacMethod=function(Mn){var Fn=createHmacOutputMethod("hex",Mn);Fn.create=function($o){return new HmacSha256($o,Mn)},Fn.update=function($o,mo){return Fn.create($o).update(mo)};for(var io=0;io<OUTPUT_TYPES.length;++io){var fo=OUTPUT_TYPES[io];Fn[fo]=createHmacOutputMethod(fo,Mn)}return Fn};function Sha256(Mn,Fn){Fn?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Mn?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=Mn}Sha256.prototype.update=function(Mn){if(!this.finalized){var Fn,io=typeof Mn;if(io!=="string"){if(io==="object"){if(Mn===null)throw new Error(ERROR);if(ARRAY_BUFFER&&Mn.constructor===ArrayBuffer)Mn=new Uint8Array(Mn);else if(!Array.isArray(Mn)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(Mn)))throw new Error(ERROR)}else throw new Error(ERROR);Fn=!0}for(var fo,$o=0,mo,Ao=Mn.length,jo=this.blocks;$o<Ao;){if(this.hashed&&(this.hashed=!1,jo[0]=this.block,jo[16]=jo[1]=jo[2]=jo[3]=jo[4]=jo[5]=jo[6]=jo[7]=jo[8]=jo[9]=jo[10]=jo[11]=jo[12]=jo[13]=jo[14]=jo[15]=0),Fn)for(mo=this.start;$o<Ao&&mo<64;++$o)jo[mo>>2]|=Mn[$o]<<SHIFT[mo++&3];else for(mo=this.start;$o<Ao&&mo<64;++$o)fo=Mn.charCodeAt($o),fo<128?jo[mo>>2]|=fo<<SHIFT[mo++&3]:fo<2048?(jo[mo>>2]|=(192|fo>>6)<<SHIFT[mo++&3],jo[mo>>2]|=(128|fo&63)<<SHIFT[mo++&3]):fo<55296||fo>=57344?(jo[mo>>2]|=(224|fo>>12)<<SHIFT[mo++&3],jo[mo>>2]|=(128|fo>>6&63)<<SHIFT[mo++&3],jo[mo>>2]|=(128|fo&63)<<SHIFT[mo++&3]):(fo=65536+((fo&1023)<<10|Mn.charCodeAt(++$o)&1023),jo[mo>>2]|=(240|fo>>18)<<SHIFT[mo++&3],jo[mo>>2]|=(128|fo>>12&63)<<SHIFT[mo++&3],jo[mo>>2]|=(128|fo>>6&63)<<SHIFT[mo++&3],jo[mo>>2]|=(128|fo&63)<<SHIFT[mo++&3]);this.lastByteIndex=mo,this.bytes+=mo-this.start,mo>=64?(this.block=jo[16],this.start=mo-64,this.hash(),this.hashed=!0):this.start=mo}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 Mn=this.blocks,Fn=this.lastByteIndex;Mn[16]=this.block,Mn[Fn>>2]|=EXTRA[Fn&3],this.block=Mn[16],Fn>=56&&(this.hashed||this.hash(),Mn[0]=this.block,Mn[16]=Mn[1]=Mn[2]=Mn[3]=Mn[4]=Mn[5]=Mn[6]=Mn[7]=Mn[8]=Mn[9]=Mn[10]=Mn[11]=Mn[12]=Mn[13]=Mn[14]=Mn[15]=0),Mn[14]=this.hBytes<<3|this.bytes>>>29,Mn[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var Mn=this.h0,Fn=this.h1,io=this.h2,fo=this.h3,$o=this.h4,mo=this.h5,Ao=this.h6,jo=this.h7,Lo=this.blocks,Ho,zo,Go,Vo,Yo,Xo,is,yl,us,hs,_l;for(Ho=16;Ho<64;++Ho)Yo=Lo[Ho-15],zo=(Yo>>>7|Yo<<25)^(Yo>>>18|Yo<<14)^Yo>>>3,Yo=Lo[Ho-2],Go=(Yo>>>17|Yo<<15)^(Yo>>>19|Yo<<13)^Yo>>>10,Lo[Ho]=Lo[Ho-16]+zo+Lo[Ho-7]+Go<<0;for(_l=Fn&io,Ho=0;Ho<64;Ho+=4)this.first?(this.is224?(yl=300032,Yo=Lo[0]-1413257819,jo=Yo-150054599<<0,fo=Yo+24177077<<0):(yl=704751109,Yo=Lo[0]-210244248,jo=Yo-1521486534<<0,fo=Yo+143694565<<0),this.first=!1):(zo=(Mn>>>2|Mn<<30)^(Mn>>>13|Mn<<19)^(Mn>>>22|Mn<<10),Go=($o>>>6|$o<<26)^($o>>>11|$o<<21)^($o>>>25|$o<<7),yl=Mn&Fn,Vo=yl^Mn&io^_l,is=$o&mo^~$o&Ao,Yo=jo+Go+is+K[Ho]+Lo[Ho],Xo=zo+Vo,jo=fo+Yo<<0,fo=Yo+Xo<<0),zo=(fo>>>2|fo<<30)^(fo>>>13|fo<<19)^(fo>>>22|fo<<10),Go=(jo>>>6|jo<<26)^(jo>>>11|jo<<21)^(jo>>>25|jo<<7),us=fo&Mn,Vo=us^fo&Fn^yl,is=jo&$o^~jo&mo,Yo=Ao+Go+is+K[Ho+1]+Lo[Ho+1],Xo=zo+Vo,Ao=io+Yo<<0,io=Yo+Xo<<0,zo=(io>>>2|io<<30)^(io>>>13|io<<19)^(io>>>22|io<<10),Go=(Ao>>>6|Ao<<26)^(Ao>>>11|Ao<<21)^(Ao>>>25|Ao<<7),hs=io&fo,Vo=hs^io&Mn^us,is=Ao&jo^~Ao&$o,Yo=mo+Go+is+K[Ho+2]+Lo[Ho+2],Xo=zo+Vo,mo=Fn+Yo<<0,Fn=Yo+Xo<<0,zo=(Fn>>>2|Fn<<30)^(Fn>>>13|Fn<<19)^(Fn>>>22|Fn<<10),Go=(mo>>>6|mo<<26)^(mo>>>11|mo<<21)^(mo>>>25|mo<<7),_l=Fn&io,Vo=_l^Fn&fo^hs,is=mo&Ao^~mo&jo,Yo=$o+Go+is+K[Ho+3]+Lo[Ho+3],Xo=zo+Vo,$o=Mn+Yo<<0,Mn=Yo+Xo<<0;this.h0=this.h0+Mn<<0,this.h1=this.h1+Fn<<0,this.h2=this.h2+io<<0,this.h3=this.h3+fo<<0,this.h4=this.h4+$o<<0,this.h5=this.h5+mo<<0,this.h6=this.h6+Ao<<0,this.h7=this.h7+jo<<0},Sha256.prototype.hex=function(){this.finalize();var Mn=this.h0,Fn=this.h1,io=this.h2,fo=this.h3,$o=this.h4,mo=this.h5,Ao=this.h6,jo=this.h7,Lo=HEX_CHARS[Mn>>28&15]+HEX_CHARS[Mn>>24&15]+HEX_CHARS[Mn>>20&15]+HEX_CHARS[Mn>>16&15]+HEX_CHARS[Mn>>12&15]+HEX_CHARS[Mn>>8&15]+HEX_CHARS[Mn>>4&15]+HEX_CHARS[Mn&15]+HEX_CHARS[Fn>>28&15]+HEX_CHARS[Fn>>24&15]+HEX_CHARS[Fn>>20&15]+HEX_CHARS[Fn>>16&15]+HEX_CHARS[Fn>>12&15]+HEX_CHARS[Fn>>8&15]+HEX_CHARS[Fn>>4&15]+HEX_CHARS[Fn&15]+HEX_CHARS[io>>28&15]+HEX_CHARS[io>>24&15]+HEX_CHARS[io>>20&15]+HEX_CHARS[io>>16&15]+HEX_CHARS[io>>12&15]+HEX_CHARS[io>>8&15]+HEX_CHARS[io>>4&15]+HEX_CHARS[io&15]+HEX_CHARS[fo>>28&15]+HEX_CHARS[fo>>24&15]+HEX_CHARS[fo>>20&15]+HEX_CHARS[fo>>16&15]+HEX_CHARS[fo>>12&15]+HEX_CHARS[fo>>8&15]+HEX_CHARS[fo>>4&15]+HEX_CHARS[fo&15]+HEX_CHARS[$o>>28&15]+HEX_CHARS[$o>>24&15]+HEX_CHARS[$o>>20&15]+HEX_CHARS[$o>>16&15]+HEX_CHARS[$o>>12&15]+HEX_CHARS[$o>>8&15]+HEX_CHARS[$o>>4&15]+HEX_CHARS[$o&15]+HEX_CHARS[mo>>28&15]+HEX_CHARS[mo>>24&15]+HEX_CHARS[mo>>20&15]+HEX_CHARS[mo>>16&15]+HEX_CHARS[mo>>12&15]+HEX_CHARS[mo>>8&15]+HEX_CHARS[mo>>4&15]+HEX_CHARS[mo&15]+HEX_CHARS[Ao>>28&15]+HEX_CHARS[Ao>>24&15]+HEX_CHARS[Ao>>20&15]+HEX_CHARS[Ao>>16&15]+HEX_CHARS[Ao>>12&15]+HEX_CHARS[Ao>>8&15]+HEX_CHARS[Ao>>4&15]+HEX_CHARS[Ao&15];return this.is224||(Lo+=HEX_CHARS[jo>>28&15]+HEX_CHARS[jo>>24&15]+HEX_CHARS[jo>>20&15]+HEX_CHARS[jo>>16&15]+HEX_CHARS[jo>>12&15]+HEX_CHARS[jo>>8&15]+HEX_CHARS[jo>>4&15]+HEX_CHARS[jo&15]),Lo},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Mn=this.h0,Fn=this.h1,io=this.h2,fo=this.h3,$o=this.h4,mo=this.h5,Ao=this.h6,jo=this.h7,Lo=[Mn>>24&255,Mn>>16&255,Mn>>8&255,Mn&255,Fn>>24&255,Fn>>16&255,Fn>>8&255,Fn&255,io>>24&255,io>>16&255,io>>8&255,io&255,fo>>24&255,fo>>16&255,fo>>8&255,fo&255,$o>>24&255,$o>>16&255,$o>>8&255,$o&255,mo>>24&255,mo>>16&255,mo>>8&255,mo&255,Ao>>24&255,Ao>>16&255,Ao>>8&255,Ao&255];return this.is224||Lo.push(jo>>24&255,jo>>16&255,jo>>8&255,jo&255),Lo},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Mn=new ArrayBuffer(this.is224?28:32),Fn=new DataView(Mn);return Fn.setUint32(0,this.h0),Fn.setUint32(4,this.h1),Fn.setUint32(8,this.h2),Fn.setUint32(12,this.h3),Fn.setUint32(16,this.h4),Fn.setUint32(20,this.h5),Fn.setUint32(24,this.h6),this.is224||Fn.setUint32(28,this.h7),Mn};function HmacSha256(Mn,Fn,io){var fo,$o=typeof Mn;if($o==="string"){var mo=[],Ao=Mn.length,jo=0,Lo;for(fo=0;fo<Ao;++fo)Lo=Mn.charCodeAt(fo),Lo<128?mo[jo++]=Lo:Lo<2048?(mo[jo++]=192|Lo>>6,mo[jo++]=128|Lo&63):Lo<55296||Lo>=57344?(mo[jo++]=224|Lo>>12,mo[jo++]=128|Lo>>6&63,mo[jo++]=128|Lo&63):(Lo=65536+((Lo&1023)<<10|Mn.charCodeAt(++fo)&1023),mo[jo++]=240|Lo>>18,mo[jo++]=128|Lo>>12&63,mo[jo++]=128|Lo>>6&63,mo[jo++]=128|Lo&63);Mn=mo}else if($o==="object"){if(Mn===null)throw new Error(ERROR);if(ARRAY_BUFFER&&Mn.constructor===ArrayBuffer)Mn=new Uint8Array(Mn);else if(!Array.isArray(Mn)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(Mn)))throw new Error(ERROR)}else throw new Error(ERROR);Mn.length>64&&(Mn=new Sha256(Fn,!0).update(Mn).array());var Ho=[],zo=[];for(fo=0;fo<64;++fo){var Go=Mn[fo]||0;Ho[fo]=92^Go,zo[fo]=54^Go}Sha256.call(this,Fn,io),this.update(zo),this.oKeyPad=Ho,this.inner=!0,this.sharedMemory=io}HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Mn=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Mn),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)})()})(sha256$1);function __awaiter$E(Mn,Fn,io,fo){function $o(mo){return mo instanceof io?mo:new io(function(Ao){Ao(mo)})}return new(io||(io=Promise))(function(mo,Ao){function jo(zo){try{Ho(fo.next(zo))}catch(Go){Ao(Go)}}function Lo(zo){try{Ho(fo.throw(zo))}catch(Go){Ao(Go)}}function Ho(zo){zo.done?mo(zo.value):$o(zo.value).then(jo,Lo)}Ho((fo=fo.apply(Mn,[])).next())})}typeof SuppressedError=="function"&&SuppressedError;let Provider$1=class{constructor(Fn){this.provider=new browserIndex$4.providers.FailoverRpcProvider(this.urlsToProviders(Fn))}query(Fn,io){return typeof Fn=="string"&&io!==void 0?this.provider.query(Fn,io):this.provider.query(Fn)}viewAccessKey({accountId:Fn,publicKey:io}){return this.query({request_type:"view_access_key",finality:"final",account_id:Fn,public_key:io})}block(Fn){return this.provider.block(Fn)}sendTransaction(Fn){return this.provider.sendTransaction(Fn)}urlsToProviders(Fn){return Fn&&Fn.length>0?Fn.map(io=>new providers$1.JsonRpcProvider({url:io})):[]}};const KEY_DELIMITER=":";class JsonStorage{constructor(Fn,io){this.storage=Fn,this.namespace=Array.isArray(io)?io.join(KEY_DELIMITER):io}resolveKey(Fn){return[this.namespace,Fn].join(KEY_DELIMITER)}getItem(Fn){return this.storage.getItem(this.resolveKey(Fn)).then(io=>typeof io=="string"?JSON.parse(io):null)}setItem(Fn,io){return this.storage.setItem(this.resolveKey(Fn),JSON.stringify(io))}removeItem(Fn){return this.storage.removeItem(this.resolveKey(Fn))}}var commonjsGlobal$a=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global$o<"u"?global$o:typeof self<"u"?self:{},check$a=function(Mn){return Mn&&Mn.Math==Math&&Mn},global$n$1=check$a(typeof globalThis=="object"&&globalThis)||check$a(typeof window=="object"&&window)||check$a(typeof self=="object"&&self)||check$a(typeof commonjsGlobal$a=="object"&&commonjsGlobal$a)||Function("return this")(),objectGetOwnPropertyDescriptor$9={},fails$h$2=function(Mn){try{return!!Mn()}catch{return!0}},fails$g$2=fails$h$2,descriptors$a=!fails$g$2(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),objectPropertyIsEnumerable$9={},nativePropertyIsEnumerable$9={}.propertyIsEnumerable,getOwnPropertyDescriptor$2$6=Object.getOwnPropertyDescriptor,NASHORN_BUG$9=getOwnPropertyDescriptor$2$6&&!nativePropertyIsEnumerable$9.call({1:2},1);objectPropertyIsEnumerable$9.f=NASHORN_BUG$9?function Mn(Fn){var io=getOwnPropertyDescriptor$2$6(this,Fn);return!!io&&io.enumerable}:nativePropertyIsEnumerable$9;var createPropertyDescriptor$4$3=function(Mn,Fn){return{enumerable:!(Mn&1),configurable:!(Mn&2),writable:!(Mn&4),value:Fn}},toString$9={}.toString,classofRaw$1$6=function(Mn){return toString$9.call(Mn).slice(8,-1)},fails$f$2=fails$h$2,classof$9$2=classofRaw$1$6,split$9="".split,indexedObject$9=fails$f$2(function(){return!Object("z").propertyIsEnumerable(0)})?function(Mn){return classof$9$2(Mn)=="String"?split$9.call(Mn,""):Object(Mn)}:Object,requireObjectCoercible$4$3=function(Mn){if(Mn==null)throw TypeError("Can't call method on "+Mn);return Mn},IndexedObject$3$2=indexedObject$9,requireObjectCoercible$3$5=requireObjectCoercible$4$3,toIndexedObject$4$7=function(Mn){return IndexedObject$3$2(requireObjectCoercible$3$5(Mn))},isObject$c$2=function(Mn){return typeof Mn=="object"?Mn!==null:typeof Mn=="function"},isObject$b$2=isObject$c$2,toPrimitive$3$3=function(Mn,Fn){if(!isObject$b$2(Mn))return Mn;var io,fo;if(Fn&&typeof(io=Mn.toString)=="function"&&!isObject$b$2(fo=io.call(Mn))||typeof(io=Mn.valueOf)=="function"&&!isObject$b$2(fo=io.call(Mn))||!Fn&&typeof(io=Mn.toString)=="function"&&!isObject$b$2(fo=io.call(Mn)))return fo;throw TypeError("Can't convert object to primitive value")},hasOwnProperty$a={}.hasOwnProperty,has$c$2=function(Mn,Fn){return hasOwnProperty$a.call(Mn,Fn)},global$m$1=global$n$1,isObject$a$2=isObject$c$2,document$2$6=global$m$1.document,EXISTS$a=isObject$a$2(document$2$6)&&isObject$a$2(document$2$6.createElement),documentCreateElement$1$7=function(Mn){return EXISTS$a?document$2$6.createElement(Mn):{}},DESCRIPTORS$a$2=descriptors$a,fails$e$2=fails$h$2,createElement$1$6=documentCreateElement$1$7,ie8DomDefine$a=!DESCRIPTORS$a$2&&!fails$e$2(function(){return Object.defineProperty(createElement$1$6("div"),"a",{get:function(){return 7}}).a!=7}),DESCRIPTORS$9$2=descriptors$a,propertyIsEnumerableModule$1$7=objectPropertyIsEnumerable$9,createPropertyDescriptor$3$7=createPropertyDescriptor$4$3,toIndexedObject$3$9=toIndexedObject$4$7,toPrimitive$2$9=toPrimitive$3$3,has$b$3=has$c$2,IE8_DOM_DEFINE$1$9=ie8DomDefine$a,nativeGetOwnPropertyDescriptor$1$2=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor$9.f=DESCRIPTORS$9$2?nativeGetOwnPropertyDescriptor$1$2:function Mn(Fn,io){if(Fn=toIndexedObject$3$9(Fn),io=toPrimitive$2$9(io,!0),IE8_DOM_DEFINE$1$9)try{return nativeGetOwnPropertyDescriptor$1$2(Fn,io)}catch{}if(has$b$3(Fn,io))return createPropertyDescriptor$3$7(!propertyIsEnumerableModule$1$7.f.call(Fn,io),Fn[io])};var objectDefineProperty$a={},isObject$9$4=isObject$c$2,anObject$b$5=function(Mn){if(!isObject$9$4(Mn))throw TypeError(String(Mn)+" is not an object");return Mn},DESCRIPTORS$8$3=descriptors$a,IE8_DOM_DEFINE$b=ie8DomDefine$a,anObject$a$6=anObject$b$5,toPrimitive$1$a=toPrimitive$3$3,nativeDefineProperty$1$2=Object.defineProperty;objectDefineProperty$a.f=DESCRIPTORS$8$3?nativeDefineProperty$1$2:function Mn(Fn,io,fo){if(anObject$a$6(Fn),io=toPrimitive$1$a(io,!0),anObject$a$6(fo),IE8_DOM_DEFINE$b)try{return nativeDefineProperty$1$2(Fn,io,fo)}catch{}if("get"in fo||"set"in fo)throw TypeError("Accessors not supported");return"value"in fo&&(Fn[io]=fo.value),Fn};var DESCRIPTORS$7$5=descriptors$a,definePropertyModule$5$3=objectDefineProperty$a,createPropertyDescriptor$2$9=createPropertyDescriptor$4$3,createNonEnumerableProperty$a$2=DESCRIPTORS$7$5?function(Mn,Fn,io){return definePropertyModule$5$3.f(Mn,Fn,createPropertyDescriptor$2$9(1,io))}:function(Mn,Fn,io){return Mn[Fn]=io,Mn},redefine$5$6={exports:{}},global$l$1=global$n$1,createNonEnumerableProperty$9$2=createNonEnumerableProperty$a$2,setGlobal$3$9=function(Mn,Fn){try{createNonEnumerableProperty$9$2(global$l$1,Mn,Fn)}catch{global$l$1[Mn]=Fn}return Fn},global$k$1=global$n$1,setGlobal$2$a=setGlobal$3$9,SHARED$a="__core-js_shared__",store$3$a=global$k$1[SHARED$a]||setGlobal$2$a(SHARED$a,{}),sharedStore$a=store$3$a,store$2$a=sharedStore$a,functionToString$a=Function.toString;typeof store$2$a.inspectSource!="function"&&(store$2$a.inspectSource=function(Mn){return functionToString$a.call(Mn)});var inspectSource$3$6=store$2$a.inspectSource,global$j$3=global$n$1,inspectSource$2$a=inspectSource$3$6,WeakMap$1$a=global$j$3.WeakMap,nativeWeakMap$a=typeof WeakMap$1$a=="function"&&/native code/.test(inspectSource$2$a(WeakMap$1$a)),shared$2$7={exports:{}},store$1$a=sharedStore$a;(shared$2$7.exports=function(Mn,Fn){return store$1$a[Mn]||(store$1$a[Mn]=Fn!==void 0?Fn:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var id$e=0,postfix$a=Math.random(),uid$3$2=function(Mn){return"Symbol("+String(Mn===void 0?"":Mn)+")_"+(++id$e+postfix$a).toString(36)},shared$1$a=shared$2$7.exports,uid$2$7=uid$3$2,keys$1$2=shared$1$a("keys"),sharedKey$3$7=function(Mn){return keys$1$2[Mn]||(keys$1$2[Mn]=uid$2$7(Mn))},hiddenKeys$4$7={},NATIVE_WEAK_MAP$a=nativeWeakMap$a,global$i$5=global$n$1,isObject$8$5=isObject$c$2,createNonEnumerableProperty$8$3=createNonEnumerableProperty$a$2,objectHas$a=has$c$2,sharedKey$2$7=sharedKey$3$7,hiddenKeys$3$9=hiddenKeys$4$7,WeakMap$c=global$i$5.WeakMap,set$2$2,get$1$2,has$a$5,enforce$a=function(Mn){return has$a$5(Mn)?get$1$2(Mn):set$2$2(Mn,{})},getterFor$a=function(Mn){return function(Fn){var io;if(!isObject$8$5(Fn)||(io=get$1$2(Fn)).type!==Mn)throw TypeError("Incompatible receiver, "+Mn+" required");return io}};if(NATIVE_WEAK_MAP$a){var store$d=new WeakMap$c,wmget$a=store$d.get,wmhas$a=store$d.has,wmset$a=store$d.set;set$2$2=function(Mn,Fn){return wmset$a.call(store$d,Mn,Fn),Fn},get$1$2=function(Mn){return wmget$a.call(store$d,Mn)||{}},has$a$5=function(Mn){return wmhas$a.call(store$d,Mn)}}else{var STATE$a=sharedKey$2$7("state");hiddenKeys$3$9[STATE$a]=!0,set$2$2=function(Mn,Fn){return createNonEnumerableProperty$8$3(Mn,STATE$a,Fn),Fn},get$1$2=function(Mn){return objectHas$a(Mn,STATE$a)?Mn[STATE$a]:{}},has$a$5=function(Mn){return objectHas$a(Mn,STATE$a)}}var internalState$a={set:set$2$2,get:get$1$2,has:has$a$5,enforce:enforce$a,getterFor:getterFor$a},global$h$5=global$n$1,createNonEnumerableProperty$7$7=createNonEnumerableProperty$a$2,has$9$7=has$c$2,setGlobal$1$a=setGlobal$3$9,inspectSource$1$a=inspectSource$3$6,InternalStateModule$4$3=internalState$a,getInternalState$4$2=InternalStateModule$4$3.get,enforceInternalState$a=InternalStateModule$4$3.enforce,TEMPLATE$a=String(String).split("String");(redefine$5$6.exports=function(Mn,Fn,io,fo){var $o=fo?!!fo.unsafe:!1,mo=fo?!!fo.enumerable:!1,Ao=fo?!!fo.noTargetGet:!1;if(typeof io=="function"&&(typeof Fn=="string"&&!has$9$7(io,"name")&&createNonEnumerableProperty$7$7(io,"name",Fn),enforceInternalState$a(io).source=TEMPLATE$a.join(typeof Fn=="string"?Fn:"")),Mn===global$h$5){mo?Mn[Fn]=io:setGlobal$1$a(Fn,io);return}else $o?!Ao&&Mn[Fn]&&(mo=!0):delete Mn[Fn];mo?Mn[Fn]=io:createNonEnumerableProperty$7$7(Mn,Fn,io)})(Function.prototype,"toString",function Mn(){return typeof this=="function"&&getInternalState$4$2(this).source||inspectSource$1$a(this)});var global$g$6=global$n$1,path$1$9=global$g$6,path$a=path$1$9,global$f$6=global$n$1,aFunction$6$3=function(Mn){return typeof Mn=="function"?Mn:void 0},getBuiltIn$5$5=function(Mn,Fn){return arguments.length<2?aFunction$6$3(path$a[Mn])||aFunction$6$3(global$f$6[Mn]):path$a[Mn]&&path$a[Mn][Fn]||global$f$6[Mn]&&global$f$6[Mn][Fn]},objectGetOwnPropertyNames$9={},ceil$9=Math.ceil,floor$1$3=Math.floor,toInteger$5$2=function(Mn){return isNaN(Mn=+Mn)?0:(Mn>0?floor$1$3:ceil$9)(Mn)},toInteger$4$3=toInteger$5$2,min$1$9=Math.min,toLength$b$2=function(Mn){return Mn>0?min$1$9(toInteger$4$3(Mn),9007199254740991):0},toInteger$3$4=toInteger$5$2,max$a=Math.max,min$b=Math.min,toAbsoluteIndex$3$2=function(Mn,Fn){var io=toInteger$3$4(Mn);return io<0?max$a(io+Fn,0):min$b(io,Fn)},toIndexedObject$2$9=toIndexedObject$4$7,toLength$a$2=toLength$b$2,toAbsoluteIndex$2$2=toAbsoluteIndex$3$2,createMethod$3$2=function(Mn){return function(Fn,io,fo){var $o=toIndexedObject$2$9(Fn),mo=toLength$a$2($o.length),Ao=toAbsoluteIndex$2$2(fo,mo),jo;if(Mn&&io!=io){for(;mo>Ao;)if(jo=$o[Ao++],jo!=jo)return!0}else for(;mo>Ao;Ao++)if((Mn||Ao in $o)&&$o[Ao]===io)return Mn||Ao||0;return!Mn&&-1}},arrayIncludes$9={includes:createMethod$3$2(!0),indexOf:createMethod$3$2(!1)},has$8$7=has$c$2,toIndexedObject$1$9=toIndexedObject$4$7,indexOf$9=arrayIncludes$9.indexOf,hiddenKeys$2$9=hiddenKeys$4$7,objectKeysInternal$9=function(Mn,Fn){var io=toIndexedObject$1$9(Mn),fo=0,$o=[],mo;for(mo in io)!has$8$7(hiddenKeys$2$9,mo)&&has$8$7(io,mo)&&$o.push(mo);for(;Fn.length>fo;)has$8$7(io,mo=Fn[fo++])&&(~indexOf$9($o,mo)||$o.push(mo));return $o},enumBugKeys$3$7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1$9=objectKeysInternal$9,enumBugKeys$2$9=enumBugKeys$3$7,hiddenKeys$1$9=enumBugKeys$2$9.concat("length","prototype");objectGetOwnPropertyNames$9.f=Object.getOwnPropertyNames||function Mn(Fn){return internalObjectKeys$1$9(Fn,hiddenKeys$1$9)};var objectGetOwnPropertySymbols$9={};objectGetOwnPropertySymbols$9.f=Object.getOwnPropertySymbols;var getBuiltIn$4$5=getBuiltIn$5$5,getOwnPropertyNamesModule$9=objectGetOwnPropertyNames$9,getOwnPropertySymbolsModule$1$7=objectGetOwnPropertySymbols$9,anObject$9$6=anObject$b$5,ownKeys$1$9=getBuiltIn$4$5("Reflect","ownKeys")||function Mn(Fn){var io=getOwnPropertyNamesModule$9.f(anObject$9$6(Fn)),fo=getOwnPropertySymbolsModule$1$7.f;return fo?io.concat(fo(Fn)):io},has$7$7=has$c$2,ownKeys$a=ownKeys$1$9,getOwnPropertyDescriptorModule$1$2=objectGetOwnPropertyDescriptor$9,definePropertyModule$4$6=objectDefineProperty$a,copyConstructorProperties$1$9=function(Mn,Fn){for(var io=ownKeys$a(Fn),fo=definePropertyModule$4$6.f,$o=getOwnPropertyDescriptorModule$1$2.f,mo=0;mo<io.length;mo++){var Ao=io[mo];has$7$7(Mn,Ao)||fo(Mn,Ao,$o(Fn,Ao))}},fails$d$2=fails$h$2,replacement$9=/#|\.prototype\./,isForced$2$5=function(Mn,Fn){var io=data$9[normalize$9(Mn)];return io==POLYFILL$9?!0:io==NATIVE$9?!1:typeof Fn=="function"?fails$d$2(Fn):!!Fn},normalize$9=isForced$2$5.normalize=function(Mn){return String(Mn).replace(replacement$9,".").toLowerCase()},data$9=isForced$2$5.data={},NATIVE$9=isForced$2$5.NATIVE="N",POLYFILL$9=isForced$2$5.POLYFILL="P",isForced_1$9=isForced$2$5,global$e$6=global$n$1,getOwnPropertyDescriptor$1$9=objectGetOwnPropertyDescriptor$9.f,createNonEnumerableProperty$6$7=createNonEnumerableProperty$a$2,redefine$4$6=redefine$5$6.exports,setGlobal$d=setGlobal$3$9,copyConstructorProperties$a=copyConstructorProperties$1$9,isForced$1$9=isForced_1$9,_export$9=function(Mn,Fn){var io=Mn.target,fo=Mn.global,$o=Mn.stat,mo,Ao,jo,Lo,Ho,zo;if(fo?Ao=global$e$6:$o?Ao=global$e$6[io]||setGlobal$d(io,{}):Ao=(global$e$6[io]||{}).prototype,Ao)for(jo in Fn){if(Ho=Fn[jo],Mn.noTargetGet?(zo=getOwnPropertyDescriptor$1$9(Ao,jo),Lo=zo&&zo.value):Lo=Ao[jo],mo=isForced$1$9(fo?jo:io+($o?".":"#")+jo,Mn.forced),!mo&&Lo!==void 0){if(typeof Ho==typeof Lo)continue;copyConstructorProperties$a(Ho,Lo)}(Mn.sham||Lo&&Lo.sham)&&createNonEnumerableProperty$6$7(Ho,"sham",!0),redefine$4$6(Ao,jo,Ho,Mn)}},global$d$7=global$n$1,nativePromiseConstructor$5=global$d$7.Promise,redefine$3$6=redefine$5$6.exports,redefineAll$2$2=function(Mn,Fn,io){for(var fo in Fn)redefine$3$6(Mn,fo,Fn[fo],io);return Mn},fails$c$4=fails$h$2,nativeSymbol$7=!!Object.getOwnPropertySymbols&&!fails$c$4(function(){return!String(Symbol())}),NATIVE_SYMBOL$1$7=nativeSymbol$7,useSymbolAsUid$7=NATIVE_SYMBOL$1$7&&!Symbol.sham&&typeof Symbol.iterator=="symbol",global$c$7=global$n$1,shared$c=shared$2$7.exports,has$6$7=has$c$2,uid$1$a=uid$3$2,NATIVE_SYMBOL$8=nativeSymbol$7,USE_SYMBOL_AS_UID$7=useSymbolAsUid$7,WellKnownSymbolsStore$7=shared$c("wks"),Symbol$1$7=global$c$7.Symbol,createWellKnownSymbol$7=USE_SYMBOL_AS_UID$7?Symbol$1$7:Symbol$1$7&&Symbol$1$7.withoutSetter||uid$1$a,wellKnownSymbol$h$2=function(Mn){return has$6$7(WellKnownSymbolsStore$7,Mn)||(NATIVE_SYMBOL$8&&has$6$7(Symbol$1$7,Mn)?WellKnownSymbolsStore$7[Mn]=Symbol$1$7[Mn]:WellKnownSymbolsStore$7[Mn]=createWellKnownSymbol$7("Symbol."+Mn)),WellKnownSymbolsStore$7[Mn]},defineProperty$4$2=objectDefineProperty$a.f,has$5$9=has$c$2,wellKnownSymbol$g$3=wellKnownSymbol$h$2,TO_STRING_TAG$4$2=wellKnownSymbol$g$3("toStringTag"),setToStringTag$4$2=function(Mn,Fn,io){Mn&&!has$5$9(Mn=io?Mn:Mn.prototype,TO_STRING_TAG$4$2)&&defineProperty$4$2(Mn,TO_STRING_TAG$4$2,{configurable:!0,value:Fn})},getBuiltIn$3$6=getBuiltIn$5$5,definePropertyModule$3$7=objectDefineProperty$a,wellKnownSymbol$f$4=wellKnownSymbol$h$2,DESCRIPTORS$6$5=descriptors$a,SPECIES$3$3=wellKnownSymbol$f$4("species"),setSpecies$2$2=function(Mn){var Fn=getBuiltIn$3$6(Mn),io=definePropertyModule$3$7.f;DESCRIPTORS$6$5&&Fn&&!Fn[SPECIES$3$3]&&io(Fn,SPECIES$3$3,{configurable:!0,get:function(){return this}})},aFunction$5$5=function(Mn){if(typeof Mn!="function")throw TypeError(String(Mn)+" is not a function");return Mn},anInstance$3$2=function(Mn,Fn,io){if(!(Mn instanceof Fn))throw TypeError("Incorrect "+(io?io+" ":"")+"invocation");return Mn},iterate$2$5={exports:{}},iterators$7={},wellKnownSymbol$e$4=wellKnownSymbol$h$2,Iterators$4$6=iterators$7,ITERATOR$5$5=wellKnownSymbol$e$4("iterator"),ArrayPrototype$1$6=Array.prototype,isArrayIteratorMethod$2$2=function(Mn){return Mn!==void 0&&(Iterators$4$6.Array===Mn||ArrayPrototype$1$6[ITERATOR$5$5]===Mn)},aFunction$4$5=aFunction$5$5,functionBindContext$6=function(Mn,Fn,io){if(aFunction$4$5(Mn),Fn===void 0)return Mn;switch(io){case 0:return function(){return Mn.call(Fn)};case 1:return function(fo){return Mn.call(Fn,fo)};case 2:return function(fo,$o){return Mn.call(Fn,fo,$o)};case 3:return function(fo,$o,mo){return Mn.call(Fn,fo,$o,mo)}}return function(){return Mn.apply(Fn,arguments)}},wellKnownSymbol$d$6=wellKnownSymbol$h$2,TO_STRING_TAG$3$6=wellKnownSymbol$d$6("toStringTag"),test$7={};test$7[TO_STRING_TAG$3$6]="z";var toStringTagSupport$6=String(test$7)==="[object z]",TO_STRING_TAG_SUPPORT$6=toStringTagSupport$6,classofRaw$a=classofRaw$1$6,wellKnownSymbol$c$6=wellKnownSymbol$h$2,TO_STRING_TAG$2$6=wellKnownSymbol$c$6("toStringTag"),CORRECT_ARGUMENTS$6=classofRaw$a(function(){return arguments}())=="Arguments",tryGet$6=function(Mn,Fn){try{return Mn[Fn]}catch{}},classof$8$2=TO_STRING_TAG_SUPPORT$6?classofRaw$a:function(Mn){var Fn,io,fo;return Mn===void 0?"Undefined":Mn===null?"Null":typeof(io=tryGet$6(Fn=Object(Mn),TO_STRING_TAG$2$6))=="string"?io:CORRECT_ARGUMENTS$6?classofRaw$a(Fn):(fo=classofRaw$a(Fn))=="Object"&&typeof Fn.callee=="function"?"Arguments":fo},classof$7$3=classof$8$2,Iterators$3$6=iterators$7,wellKnownSymbol$b$6=wellKnownSymbol$h$2,ITERATOR$4$6=wellKnownSymbol$b$6("iterator"),getIteratorMethod$2$2=function(Mn){if(Mn!=null)return Mn[ITERATOR$4$6]||Mn["@@iterator"]||Iterators$3$6[classof$7$3(Mn)]},anObject$8$6=anObject$b$5,callWithSafeIterationClosing$1$5=function(Mn,Fn,io,fo){try{return fo?Fn(anObject$8$6(io)[0],io[1]):Fn(io)}catch(mo){var $o=Mn.return;throw $o!==void 0&&anObject$8$6($o.call(Mn)),mo}},anObject$7$6=anObject$b$5,isArrayIteratorMethod$1$6=isArrayIteratorMethod$2$2,toLength$9$2=toLength$b$2,bind$4$2=functionBindContext$6,getIteratorMethod$1$6=getIteratorMethod$2$2,callWithSafeIterationClosing$7=callWithSafeIterationClosing$1$5,Result$5=function(Mn,Fn){this.stopped=Mn,this.result=Fn},iterate$1$5=iterate$2$5.exports=function(Mn,Fn,io,fo,$o){var mo=bind$4$2(Fn,io,fo?2:1),Ao,jo,Lo,Ho,zo,Go,Vo;if($o)Ao=Mn;else{if(jo=getIteratorMethod$1$6(Mn),typeof jo!="function")throw TypeError("Target is not iterable");if(isArrayIteratorMethod$1$6(jo)){for(Lo=0,Ho=toLength$9$2(Mn.length);Ho>Lo;Lo++)if(zo=fo?mo(anObject$7$6(Vo=Mn[Lo])[0],Vo[1]):mo(Mn[Lo]),zo&&zo instanceof Result$5)return zo;return new Result$5(!1)}Ao=jo.call(Mn)}for(Go=Ao.next;!(Vo=Go.call(Ao)).done;)if(zo=callWithSafeIterationClosing$7(Ao,mo,Vo.value,fo),typeof zo=="object"&&zo&&zo instanceof Result$5)return zo;return new Result$5(!1)};iterate$1$5.stop=function(Mn){return new Result$5(!0,Mn)};var wellKnownSymbol$a$6=wellKnownSymbol$h$2,ITERATOR$3$6=wellKnownSymbol$a$6("iterator"),SAFE_CLOSING$6=!1;try{var called$6=0,iteratorWithReturn$6={next:function(){return{done:!!called$6++}},return:function(){SAFE_CLOSING$6=!0}};iteratorWithReturn$6[ITERATOR$3$6]=function(){return this},Array.from(iteratorWithReturn$6,function(){throw 2})}catch(Mn){}var checkCorrectnessOfIteration$2$2=function(Mn,Fn){if(!Fn&&!SAFE_CLOSING$6)return!1;var io=!1;try{var fo={};fo[ITERATOR$3$6]=function(){return{next:function(){return{done:io=!0}}}},Mn(fo)}catch{}return io},anObject$6$6=anObject$b$5,aFunction$3$6=aFunction$5$5,wellKnownSymbol$9$6=wellKnownSymbol$h$2,SPECIES$2$6=wellKnownSymbol$9$6("species"),speciesConstructor$2$2=function(Mn,Fn){var io=anObject$6$6(Mn).constructor,fo;return io===void 0||(fo=anObject$6$6(io)[SPECIES$2$6])==null?Fn:aFunction$3$6(fo)},getBuiltIn$2$7=getBuiltIn$5$5,html$2$5=getBuiltIn$2$7("document","documentElement"),getBuiltIn$1$9=getBuiltIn$5$5,engineUserAgent$5=getBuiltIn$1$9("navigator","userAgent")||"",userAgent$1$5=engineUserAgent$5,engineIsIos$5=/(iphone|ipod|ipad).*applewebkit/i.test(userAgent$1$5),global$b$7=global$n$1,fails$b$5=fails$h$2,classof$6$4=classofRaw$1$6,bind$3$3=functionBindContext$6,html$1$7=html$2$5,createElement$a=documentCreateElement$1$7,IS_IOS$1$5=engineIsIos$5,location$6=global$b$7.location,set$1$6=global$b$7.setImmediate,clear$5=global$b$7.clearImmediate,process$3$5=global$b$7.process,MessageChannel$6=global$b$7.MessageChannel,Dispatch$5=global$b$7.Dispatch,counter$5=0,queue$5={},ONREADYSTATECHANGE$5="onreadystatechange",defer$5,channel$5,port$5,run$5=function(Mn){if(queue$5.hasOwnProperty(Mn)){var Fn=queue$5[Mn];delete queue$5[Mn],Fn()}},runner$5=function(Mn){return function(){run$5(Mn)}},listener$5=function(Mn){run$5(Mn.data)},post$5=function(Mn){global$b$7.postMessage(Mn+"",location$6.protocol+"//"+location$6.host)};(!set$1$6||!clear$5)&&(set$1$6=function(Fn){for(var io=[],fo=1;arguments.length>fo;)io.push(arguments[fo++]);return queue$5[++counter$5]=function(){(typeof Fn=="function"?Fn:Function(Fn)).apply(void 0,io)},defer$5(counter$5),counter$5},clear$5=function(Fn){delete queue$5[Fn]},classof$6$4(process$3$5)=="process"?defer$5=function(Mn){process$3$5.nextTick(runner$5(Mn))}:Dispatch$5&&Dispatch$5.now?defer$5=function(Mn){Dispatch$5.now(runner$5(Mn))}:MessageChannel$6&&!IS_IOS$1$5?(channel$5=new MessageChannel$6,port$5=channel$5.port2,channel$5.port1.onmessage=listener$5,defer$5=bind$3$3(port$5.postMessage,port$5,1)):global$b$7.addEventListener&&typeof postMessage=="function"&&!global$b$7.importScripts&&!fails$b$5(post$5)&&location$6.protocol!=="file:"?(defer$5=post$5,global$b$7.addEventListener("message",listener$5,!1)):ONREADYSTATECHANGE$5 in createElement$a("script")?defer$5=function(Mn){html$1$7.appendChild(createElement$a("script"))[ONREADYSTATECHANGE$5]=function(){html$1$7.removeChild(this),run$5(Mn)}}:defer$5=function(Mn){setTimeout(runner$5(Mn),0)});var task$1$5={set:set$1$6,clear:clear$5},global$a$9=global$n$1,getOwnPropertyDescriptor$b=objectGetOwnPropertyDescriptor$9.f,classof$5$6=classofRaw$1$6,macrotask$5=task$1$5.set,IS_IOS$6=engineIsIos$5,MutationObserver$6=global$a$9.MutationObserver||global$a$9.WebKitMutationObserver,process$2$5=global$a$9.process,Promise$1$5=global$a$9.Promise,IS_NODE$1$5=classof$5$6(process$2$5)=="process",queueMicrotaskDescriptor$5=getOwnPropertyDescriptor$b(global$a$9,"queueMicrotask"),queueMicrotask$6=queueMicrotaskDescriptor$5&&queueMicrotaskDescriptor$5.value,flush$5,head$5,last$5,notify$1$5,toggle$5,node$5,promise$5,then$5;queueMicrotask$6||(flush$5=function(){var Mn,Fn;for(IS_NODE$1$5&&(Mn=process$2$5.domain)&&Mn.exit();head$5;){Fn=head$5.fn,head$5=head$5.next;try{Fn()}catch(io){throw head$5?notify$1$5():last$5=void 0,io}}last$5=void 0,Mn&&Mn.enter()},IS_NODE$1$5?notify$1$5=function(){process$2$5.nextTick(flush$5)}:MutationObserver$6&&!IS_IOS$6?(toggle$5=!0,node$5=document.createTextNode(""),new MutationObserver$6(flush$5).observe(node$5,{characterData:!0}),notify$1$5=function(){node$5.data=toggle$5=!toggle$5}):Promise$1$5&&Promise$1$5.resolve?(promise$5=Promise$1$5.resolve(void 0),then$5=promise$5.then,notify$1$5=function(){then$5.call(promise$5,flush$5)}):notify$1$5=function(){macrotask$5.call(global$a$9,flush$5)});var microtask$1$5=queueMicrotask$6||function(Mn){var Fn={fn:Mn,next:void 0};last$5&&(last$5.next=Fn),head$5||(head$5=Fn,notify$1$5()),last$5=Fn},newPromiseCapability$2$5={},aFunction$2$6=aFunction$5$5,PromiseCapability$5=function(Mn){var Fn,io;this.promise=new Mn(function(fo,$o){if(Fn!==void 0||io!==void 0)throw TypeError("Bad Promise constructor");Fn=fo,io=$o}),this.resolve=aFunction$2$6(Fn),this.reject=aFunction$2$6(io)};newPromiseCapability$2$5.f=function(Mn){return new PromiseCapability$5(Mn)};var anObject$5$7=anObject$b$5,isObject$7$6=isObject$c$2,newPromiseCapability$1$5=newPromiseCapability$2$5,promiseResolve$1$5=function(Mn,Fn){if(anObject$5$7(Mn),isObject$7$6(Fn)&&Fn.constructor===Mn)return Fn;var io=newPromiseCapability$1$5.f(Mn),fo=io.resolve;return fo(Fn),io.promise},global$9$9=global$n$1,hostReportErrors$1$5=function(Mn,Fn){var io=global$9$9.console;io&&io.error&&(arguments.length===1?io.error(Mn):io.error(Mn,Fn))},perform$1$5=function(Mn){try{return{error:!1,value:Mn()}}catch(Fn){return{error:!0,value:Fn}}},global$8$9=global$n$1,userAgent$6=engineUserAgent$5,process$1$5=global$8$9.process,versions$5=process$1$5&&process$1$5.versions,v8$5=versions$5&&versions$5.v8,match$5,version$8;v8$5?(match$5=v8$5.split("."),version$8=match$5[0]+match$5[1]):userAgent$6&&(match$5=userAgent$6.match(/Edge\/(\d+)/),(!match$5||match$5[1]>=74)&&(match$5=userAgent$6.match(/Chrome\/(\d+)/),match$5&&(version$8=match$5[1])));var engineV8Version$5=version$8&&+version$8,$$9$2=_export$9,global$7$a=global$n$1,getBuiltIn$f=getBuiltIn$5$5,NativePromise$5=nativePromiseConstructor$5,redefine$2$9=redefine$5$6.exports,redefineAll$1$6=redefineAll$2$2,setToStringTag$3$6=setToStringTag$4$2,setSpecies$1$6=setSpecies$2$2,isObject$6$7=isObject$c$2,aFunction$1$6=aFunction$5$5,anInstance$2$3=anInstance$3$2,classof$4$6=classofRaw$1$6,inspectSource$c=inspectSource$3$6,iterate$7=iterate$2$5.exports,checkCorrectnessOfIteration$1$6=checkCorrectnessOfIteration$2$2,speciesConstructor$1$6=speciesConstructor$2$2,task$6=task$1$5.set,microtask$7=microtask$1$5,promiseResolve$6=promiseResolve$1$5,hostReportErrors$6=hostReportErrors$1$5,newPromiseCapabilityModule$5=newPromiseCapability$2$5,perform$6=perform$1$5,InternalStateModule$3$3=internalState$a,isForced$b=isForced_1$9,wellKnownSymbol$8$6=wellKnownSymbol$h$2,V8_VERSION$5=engineV8Version$5,SPECIES$1$6=wellKnownSymbol$8$6("species"),PROMISE$5="Promise",getInternalState$3$3=InternalStateModule$3$3.get,setInternalState$3$2=InternalStateModule$3$3.set,getInternalPromiseState$5=InternalStateModule$3$3.getterFor(PROMISE$5),PromiseConstructor$5=NativePromise$5,TypeError$1$5=global$7$a.TypeError,document$1$7=global$7$a.document,process$8=global$7$a.process,$fetch$6=getBuiltIn$f("fetch"),newPromiseCapability$7=newPromiseCapabilityModule$5.f,newGenericPromiseCapability$5=newPromiseCapability$7,IS_NODE$6=classof$4$6(process$8)=="process",DISPATCH_EVENT$5=!!(document$1$7&&document$1$7.createEvent&&global$7$a.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,FORCED$2$2=isForced$b(PROMISE$5,function(){var Mn=inspectSource$c(PromiseConstructor$5)!==String(PromiseConstructor$5);if(!Mn&&(V8_VERSION$5===66||!IS_NODE$6&&typeof PromiseRejectionEvent!="function"))return!0;if(V8_VERSION$5>=51&&/native code/.test(PromiseConstructor$5))return!1;var Fn=PromiseConstructor$5.resolve(1),io=function($o){$o(function(){},function(){})},fo=Fn.constructor={};return fo[SPECIES$1$6]=io,!(Fn.then(function(){})instanceof io)}),INCORRECT_ITERATION$5=FORCED$2$2||!checkCorrectnessOfIteration$1$6(function(Mn){PromiseConstructor$5.all(Mn).catch(function(){})}),isThenable$5=function(Mn){var Fn;return isObject$6$7(Mn)&&typeof(Fn=Mn.then)=="function"?Fn:!1},notify$6=function(Mn,Fn,io){if(!Fn.notified){Fn.notified=!0;var fo=Fn.reactions;microtask$7(function(){for(var $o=Fn.value,mo=Fn.state==FULFILLED$5,Ao=0;fo.length>Ao;){var jo=fo[Ao++],Lo=mo?jo.ok:jo.fail,Ho=jo.resolve,zo=jo.reject,Go=jo.domain,Vo,Yo,Xo;try{Lo?(mo||(Fn.rejection===UNHANDLED$5&&onHandleUnhandled$5(Mn,Fn),Fn.rejection=HANDLED$5),Lo===!0?Vo=$o:(Go&&Go.enter(),Vo=Lo($o),Go&&(Go.exit(),Xo=!0)),Vo===jo.promise?zo(TypeError$1$5("Promise-chain cycle")):(Yo=isThenable$5(Vo))?Yo.call(Vo,Ho,zo):Ho(Vo)):zo($o)}catch(is){Go&&!Xo&&Go.exit(),zo(is)}}Fn.reactions=[],Fn.notified=!1,io&&!Fn.rejection&&onUnhandled$5(Mn,Fn)})}},dispatchEvent$5=function(Mn,Fn,io){var fo,$o;DISPATCH_EVENT$5?(fo=document$1$7.createEvent("Event"),fo.promise=Fn,fo.reason=io,fo.initEvent(Mn,!1,!0),global$7$a.dispatchEvent(fo)):fo={promise:Fn,reason:io},($o=global$7$a["on"+Mn])?$o(fo):Mn===UNHANDLED_REJECTION$5&&hostReportErrors$6("Unhandled promise rejection",io)},onUnhandled$5=function(Mn,Fn){task$6.call(global$7$a,function(){var io=Fn.value,fo=isUnhandled$5(Fn),$o;if(fo&&($o=perform$6(function(){IS_NODE$6?process$8.emit("unhandledRejection",io,Mn):dispatchEvent$5(UNHANDLED_REJECTION$5,Mn,io)}),Fn.rejection=IS_NODE$6||isUnhandled$5(Fn)?UNHANDLED$5:HANDLED$5,$o.error))throw $o.value})},isUnhandled$5=function(Mn){return Mn.rejection!==HANDLED$5&&!Mn.parent},onHandleUnhandled$5=function(Mn,Fn){task$6.call(global$7$a,function(){IS_NODE$6?process$8.emit("rejectionHandled",Mn):dispatchEvent$5(REJECTION_HANDLED$5,Mn,Fn.value)})},bind$2$5=function(Mn,Fn,io,fo){return function($o){Mn(Fn,io,$o,fo)}},internalReject$5=function(Mn,Fn,io,fo){Fn.done||(Fn.done=!0,fo&&(Fn=fo),Fn.value=io,Fn.state=REJECTED$5,notify$6(Mn,Fn,!0))},internalResolve$5=function(Mn,Fn,io,fo){if(!Fn.done){Fn.done=!0,fo&&(Fn=fo);try{if(Mn===io)throw TypeError$1$5("Promise can't be resolved itself");var $o=isThenable$5(io);$o?microtask$7(function(){var mo={done:!1};try{$o.call(io,bind$2$5(internalResolve$5,Mn,mo,Fn),bind$2$5(internalReject$5,Mn,mo,Fn))}catch(Ao){internalReject$5(Mn,mo,Ao,Fn)}}):(Fn.value=io,Fn.state=FULFILLED$5,notify$6(Mn,Fn,!1))}catch(mo){internalReject$5(Mn,{done:!1},mo,Fn)}}};FORCED$2$2&&(PromiseConstructor$5=function(Fn){anInstance$2$3(this,PromiseConstructor$5,PROMISE$5),aFunction$1$6(Fn),Internal$5.call(this);var io=getInternalState$3$3(this);try{Fn(bind$2$5(internalResolve$5,this,io),bind$2$5(internalReject$5,this,io))}catch(fo){internalReject$5(this,io,fo)}},Internal$5=function(Fn){setInternalState$3$2(this,{type:PROMISE$5,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:PENDING$5,value:void 0})},Internal$5.prototype=redefineAll$1$6(PromiseConstructor$5.prototype,{then:function(Fn,io){var fo=getInternalPromiseState$5(this),$o=newPromiseCapability$7(speciesConstructor$1$6(this,PromiseConstructor$5));return $o.ok=typeof Fn=="function"?Fn:!0,$o.fail=typeof io=="function"&&io,$o.domain=IS_NODE$6?process$8.domain:void 0,fo.parent=!0,fo.reactions.push($o),fo.state!=PENDING$5&¬ify$6(this,fo,!1),$o.promise},catch:function(Mn){return this.then(void 0,Mn)}}),OwnPromiseCapability$5=function(){var Mn=new Internal$5,Fn=getInternalState$3$3(Mn);this.promise=Mn,this.resolve=bind$2$5(internalResolve$5,Mn,Fn),this.reject=bind$2$5(internalReject$5,Mn,Fn)},newPromiseCapabilityModule$5.f=newPromiseCapability$7=function(Mn){return Mn===PromiseConstructor$5||Mn===PromiseWrapper$5?new OwnPromiseCapability$5(Mn):newGenericPromiseCapability$5(Mn)},typeof NativePromise$5=="function"&&(nativeThen$5=NativePromise$5.prototype.then,redefine$2$9(NativePromise$5.prototype,"then",function(Fn,io){var fo=this;return new PromiseConstructor$5(function($o,mo){nativeThen$5.call(fo,$o,mo)}).then(Fn,io)},{unsafe:!0}),typeof $fetch$6=="function"&&$$9$2({global:!0,enumerable:!0,forced:!0},{fetch:function(Fn){return promiseResolve$6(PromiseConstructor$5,$fetch$6.apply(global$7$a,arguments))}})));$$9$2({global:!0,wrap:!0,forced:FORCED$2$2},{Promise:PromiseConstructor$5});setToStringTag$3$6(PromiseConstructor$5,PROMISE$5,!1);setSpecies$1$6(PROMISE$5);PromiseWrapper$5=getBuiltIn$f(PROMISE$5);$$9$2({target:PROMISE$5,stat:!0,forced:FORCED$2$2},{reject:function Mn(Fn){var io=newPromiseCapability$7(this);return io.reject.call(void 0,Fn),io.promise}});$$9$2({target:PROMISE$5,stat:!0,forced:FORCED$2$2},{resolve:function Mn(Fn){return promiseResolve$6(this,Fn)}});$$9$2({target:PROMISE$5,stat:!0,forced:INCORRECT_ITERATION$5},{all:function Mn(Fn){var io=this,fo=newPromiseCapability$7(io),$o=fo.resolve,mo=fo.reject,Ao=perform$6(function(){var jo=aFunction$1$6(io.resolve),Lo=[],Ho=0,zo=1;iterate$7(Fn,function(Go){var Vo=Ho++,Yo=!1;Lo.push(void 0),zo++,jo.call(io,Go).then(function(Xo){Yo||(Yo=!0,Lo[Vo]=Xo,--zo||$o(Lo))},mo)}),--zo||$o(Lo)});return Ao.error&&mo(Ao.value),fo.promise},race:function Mn(Fn){var io=this,fo=newPromiseCapability$7(io),$o=fo.reject,mo=perform$6(function(){var Ao=aFunction$1$6(io.resolve);iterate$7(Fn,function(jo){Ao.call(io,jo).then(fo.resolve,$o)})});return mo.error&&$o(mo.value),fo.promise}});class WebStorageService{getItem(Fn){return new Promise(io=>{const fo=localStorage.getItem(Fn);io(fo)})}setItem(Fn,io){return new Promise(fo=>{localStorage.setItem(Fn,io),fo()})}removeItem(Fn){return new Promise(io=>{localStorage.removeItem(Fn),io()})}}var internalObjectKeys$a=objectKeysInternal$9,enumBugKeys$1$9=enumBugKeys$3$7,objectKeys$2$5=Object.keys||function Mn(Fn){return internalObjectKeys$a(Fn,enumBugKeys$1$9)},DESCRIPTORS$5$6=descriptors$a,definePropertyModule$2$7=objectDefineProperty$a,anObject$4$9=anObject$b$5,objectKeys$1$9=objectKeys$2$5,objectDefineProperties$7=DESCRIPTORS$5$6?Object.defineProperties:function Mn(Fn,io){anObject$4$9(Fn);for(var fo=objectKeys$1$9(io),$o=fo.length,mo=0,Ao;$o>mo;)definePropertyModule$2$7.f(Fn,Ao=fo[mo++],io[Ao]);return Fn},anObject$3$a=anObject$b$5,defineProperties$8=objectDefineProperties$7,enumBugKeys$c=enumBugKeys$3$7,hiddenKeys$d=hiddenKeys$4$7,html$9=html$2$5,documentCreateElement$b=documentCreateElement$1$7,sharedKey$1$a=sharedKey$3$7,GT$7=">",LT$7="<",PROTOTYPE$1$2="prototype",SCRIPT$7="script",IE_PROTO$1$7=sharedKey$1$a("IE_PROTO"),EmptyConstructor$7=function(){},scriptTag$7=function(Mn){return LT$7+SCRIPT$7+GT$7+Mn+LT$7+"/"+SCRIPT$7+GT$7},NullProtoObjectViaActiveX$7=function(Mn){Mn.write(scriptTag$7("")),Mn.close();var Fn=Mn.parentWindow.Object;return Mn=null,Fn},NullProtoObjectViaIFrame$7=function(){var Mn=documentCreateElement$b("iframe"),Fn="java"+SCRIPT$7+":",io;return Mn.style.display="none",html$9.appendChild(Mn),Mn.src=String(Fn),io=Mn.contentWindow.document,io.open(),io.write(scriptTag$7("document.F=Object")),io.close(),io.F},activeXDocument$7,NullProtoObject$7=function(){try{activeXDocument$7=document.domain&&new ActiveXObject("htmlfile")}catch{}NullProtoObject$7=activeXDocument$7?NullProtoObjectViaActiveX$7(activeXDocument$7):NullProtoObjectViaIFrame$7();for(var Mn=enumBugKeys$c.length;Mn--;)delete NullProtoObject$7[PROTOTYPE$1$2][enumBugKeys$c[Mn]];return NullProtoObject$7()};hiddenKeys$d[IE_PROTO$1$7]=!0;var objectCreate$7=Object.create||function Mn(Fn,io){var fo;return Fn!==null?(EmptyConstructor$7[PROTOTYPE$1$2]=anObject$3$a(Fn),fo=new EmptyConstructor$7,EmptyConstructor$7[PROTOTYPE$1$2]=null,fo[IE_PROTO$1$7]=Fn):fo=NullProtoObject$7(),io===void 0?fo:defineProperties$8(fo,io)},wellKnownSymbol$7$7=wellKnownSymbol$h$2,create$2$3=objectCreate$7,definePropertyModule$1$9=objectDefineProperty$a,UNSCOPABLES$7=wellKnownSymbol$7$7("unscopables"),ArrayPrototype$8=Array.prototype;ArrayPrototype$8[UNSCOPABLES$7]==null&&definePropertyModule$1$9.f(ArrayPrototype$8,UNSCOPABLES$7,{configurable:!0,value:create$2$3(null)});var addToUnscopables$2$4=function(Mn){ArrayPrototype$8[UNSCOPABLES$7][Mn]=!0},requireObjectCoercible$2$9=requireObjectCoercible$4$3,toObject$7$2=function(Mn){return Object(requireObjectCoercible$2$9(Mn))},fails$a$5=fails$h$2,correctPrototypeGetter$7=!fails$a$5(function(){function Mn(){}return Mn.prototype.constructor=null,Object.getPrototypeOf(new Mn)!==Mn.prototype}),has$4$9=has$c$2,toObject$6$2=toObject$7$2,sharedKey$d=sharedKey$3$7,CORRECT_PROTOTYPE_GETTER$7=correctPrototypeGetter$7,IE_PROTO$8=sharedKey$d("IE_PROTO"),ObjectPrototype$2$2=Object.prototype,objectGetPrototypeOf$7=CORRECT_PROTOTYPE_GETTER$7?Object.getPrototypeOf:function(Mn){return Mn=toObject$6$2(Mn),has$4$9(Mn,IE_PROTO$8)?Mn[IE_PROTO$8]:typeof Mn.constructor=="function"&&Mn instanceof Mn.constructor?Mn.constructor.prototype:Mn instanceof Object?ObjectPrototype$2$2:null},getPrototypeOf$3$2=objectGetPrototypeOf$7,createNonEnumerableProperty$5$7=createNonEnumerableProperty$a$2,has$3$9=has$c$2,wellKnownSymbol$6$7=wellKnownSymbol$h$2,ITERATOR$2$7=wellKnownSymbol$6$7("iterator"),BUGGY_SAFARI_ITERATORS$1$7=!1,returnThis$2$7=function(){return this},IteratorPrototype$2$7,PrototypeOfArrayIteratorPrototype$7,arrayIterator$7;[].keys&&(arrayIterator$7=[].keys(),"next"in arrayIterator$7?(PrototypeOfArrayIteratorPrototype$7=getPrototypeOf$3$2(getPrototypeOf$3$2(arrayIterator$7)),PrototypeOfArrayIteratorPrototype$7!==Object.prototype&&(IteratorPrototype$2$7=PrototypeOfArrayIteratorPrototype$7)):BUGGY_SAFARI_ITERATORS$1$7=!0);IteratorPrototype$2$7==null&&(IteratorPrototype$2$7={});has$3$9(IteratorPrototype$2$7,ITERATOR$2$7)||createNonEnumerableProperty$5$7(IteratorPrototype$2$7,ITERATOR$2$7,returnThis$2$7);var iteratorsCore$7={IteratorPrototype:IteratorPrototype$2$7,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1$7},IteratorPrototype$1$7=iteratorsCore$7.IteratorPrototype,create$1$7=objectCreate$7,createPropertyDescriptor$1$a=createPropertyDescriptor$4$3,setToStringTag$2$7=setToStringTag$4$2,Iterators$2$7=iterators$7,returnThis$1$7=function(){return this},createIteratorConstructor$1$7=function(Mn,Fn,io){var fo=Fn+" Iterator";return Mn.prototype=create$1$7(IteratorPrototype$1$7,{next:createPropertyDescriptor$1$a(1,io)}),setToStringTag$2$7(Mn,fo,!1),Iterators$2$7[fo]=returnThis$1$7,Mn},isObject$5$7=isObject$c$2,aPossiblePrototype$1$7=function(Mn){if(!isObject$5$7(Mn)&&Mn!==null)throw TypeError("Can't set "+String(Mn)+" as a prototype");return Mn},anObject$2$a=anObject$b$5,aPossiblePrototype$8=aPossiblePrototype$1$7,objectSetPrototypeOf$7=Object.setPrototypeOf||("__proto__"in{}?function(){var Mn=!1,Fn={},io;try{io=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,io.call(Fn,[]),Mn=Fn instanceof Array}catch{}return function($o,mo){return anObject$2$a($o),aPossiblePrototype$8(mo),Mn?io.call($o,mo):$o.__proto__=mo,$o}}():void 0),$$8$2=_export$9,createIteratorConstructor$9=createIteratorConstructor$1$7,getPrototypeOf$2$2=objectGetPrototypeOf$7,setPrototypeOf$4$2=objectSetPrototypeOf$7,setToStringTag$1$7=setToStringTag$4$2,createNonEnumerableProperty$4$9=createNonEnumerableProperty$a$2,redefine$1$a=redefine$5$6.exports,wellKnownSymbol$5$7=wellKnownSymbol$h$2,Iterators$1$7=iterators$7,IteratorsCore$7=iteratorsCore$7,IteratorPrototype$9=IteratorsCore$7.IteratorPrototype,BUGGY_SAFARI_ITERATORS$8=IteratorsCore$7.BUGGY_SAFARI_ITERATORS,ITERATOR$1$7=wellKnownSymbol$5$7("iterator"),KEYS$7="keys",VALUES$7="values",ENTRIES$7="entries",returnThis$9=function(){return this},defineIterator$1$7=function(Mn,Fn,io,fo,$o,mo,Ao){createIteratorConstructor$9(io,Fn,fo);var jo=function(us){if(us===$o&&Vo)return Vo;if(!BUGGY_SAFARI_ITERATORS$8&&us in zo)return zo[us];switch(us){case KEYS$7:return function(){return new io(this,us)};case VALUES$7:return function(){return new io(this,us)};case ENTRIES$7:return function(){return new io(this,us)}}return function(){return new io(this)}},Lo=Fn+" Iterator",Ho=!1,zo=Mn.prototype,Go=zo[ITERATOR$1$7]||zo["@@iterator"]||$o&&zo[$o],Vo=!BUGGY_SAFARI_ITERATORS$8&&Go||jo($o),Yo=Fn=="Array"&&zo.entries||Go,Xo,is,yl;if(Yo&&(Xo=getPrototypeOf$2$2(Yo.call(new Mn)),IteratorPrototype$9!==Object.prototype&&Xo.next&&(getPrototypeOf$2$2(Xo)!==IteratorPrototype$9&&(setPrototypeOf$4$2?setPrototypeOf$4$2(Xo,IteratorPrototype$9):typeof Xo[ITERATOR$1$7]!="function"&&createNonEnumerableProperty$4$9(Xo,ITERATOR$1$7,returnThis$9)),setToStringTag$1$7(Xo,Lo,!0))),$o==VALUES$7&&Go&&Go.name!==VALUES$7&&(Ho=!0,Vo=function(){return Go.call(this)}),zo[ITERATOR$1$7]!==Vo&&createNonEnumerableProperty$4$9(zo,ITERATOR$1$7,Vo),Iterators$1$7[Fn]=Vo,$o)if(is={values:jo(VALUES$7),keys:mo?Vo:jo(KEYS$7),entries:jo(ENTRIES$7)},Ao)for(yl in is)(BUGGY_SAFARI_ITERATORS$8||Ho||!(yl in zo))&&redefine$1$a(zo,yl,is[yl]);else $$8$2({target:Fn,proto:!0,forced:BUGGY_SAFARI_ITERATORS$8||Ho},is);return is},toIndexedObject$d=toIndexedObject$4$7,addToUnscopables$1$7=addToUnscopables$2$4,Iterators$b=iterators$7,InternalStateModule$2$6=internalState$a,defineIterator$9=defineIterator$1$7,ARRAY_ITERATOR$7="Array Iterator",setInternalState$2$3=InternalStateModule$2$6.set,getInternalState$2$6=InternalStateModule$2$6.getterFor(ARRAY_ITERATOR$7),es_array_iterator$6=defineIterator$9(Array,"Array",function(Mn,Fn){setInternalState$2$3(this,{type:ARRAY_ITERATOR$7,target:toIndexedObject$d(Mn),index:0,kind:Fn})},function(){var Mn=getInternalState$2$6(this),Fn=Mn.target,io=Mn.kind,fo=Mn.index++;return!Fn||fo>=Fn.length?(Mn.target=void 0,{value:void 0,done:!0}):io=="keys"?{value:fo,done:!1}:io=="values"?{value:Fn[fo],done:!1}:{value:[fo,Fn[fo]],done:!1}},"values");Iterators$b.Arguments=Iterators$b.Array;addToUnscopables$1$7("keys");addToUnscopables$1$7("values");addToUnscopables$1$7("entries");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},global$6$a=global$n$1,DOMIterables$6=domIterables$6,ArrayIteratorMethods$6=es_array_iterator$6,createNonEnumerableProperty$3$a=createNonEnumerableProperty$a$2,wellKnownSymbol$4$7=wellKnownSymbol$h$2,ITERATOR$e=wellKnownSymbol$4$7("iterator"),TO_STRING_TAG$1$7=wellKnownSymbol$4$7("toStringTag"),ArrayValues$6=ArrayIteratorMethods$6.values;for(var COLLECTION_NAME$6 in DOMIterables$6){var Collection$6=global$6$a[COLLECTION_NAME$6],CollectionPrototype$6=Collection$6&&Collection$6.prototype;if(CollectionPrototype$6){if(CollectionPrototype$6[ITERATOR$e]!==ArrayValues$6)try{createNonEnumerableProperty$3$a(CollectionPrototype$6,ITERATOR$e,ArrayValues$6)}catch{CollectionPrototype$6[ITERATOR$e]=ArrayValues$6}if(CollectionPrototype$6[TO_STRING_TAG$1$7]||createNonEnumerableProperty$3$a(CollectionPrototype$6,TO_STRING_TAG$1$7,COLLECTION_NAME$6),DOMIterables$6[COLLECTION_NAME$6]){for(var METHOD_NAME$6 in ArrayIteratorMethods$6)if(CollectionPrototype$6[METHOD_NAME$6]!==ArrayIteratorMethods$6[METHOD_NAME$6])try{createNonEnumerableProperty$3$a(CollectionPrototype$6,METHOD_NAME$6,ArrayIteratorMethods$6[METHOD_NAME$6])}catch{CollectionPrototype$6[METHOD_NAME$6]=ArrayIteratorMethods$6[METHOD_NAME$6]}}}}let Logger$1=class w_{constructor(Fn){this.namespace=Fn}emit(Fn,...io){if(w_.debug){if(this.namespace&&Fn!=="error"){console[Fn](this.namespace,...io);return}console[Fn](...io)}}log(...Fn){this.emit("log",...Fn)}info(...Fn){this.emit("info",...Fn)}warn(...Fn){this.emit("warn",...Fn)}error(...Fn){this.emit("error",...Fn)}};Logger$1.debug=!1;const logger$3=new Logger$1;var DESCRIPTORS$4$9=descriptors$a,fails$9$5=fails$h$2,has$2$a=has$c$2,defineProperty$3$3=Object.defineProperty,cache$3={},thrower$3=function(Mn){throw Mn},arrayMethodUsesToLength$2$2=function(Mn,Fn){if(has$2$a(cache$3,Mn))return cache$3[Mn];Fn||(Fn={});var io=[][Mn],fo=has$2$a(Fn,"ACCESSORS")?Fn.ACCESSORS:!1,$o=has$2$a(Fn,0)?Fn[0]:thrower$3,mo=has$2$a(Fn,1)?Fn[1]:void 0;return cache$3[Mn]=!!io&&!fails$9$5(function(){if(fo&&!DESCRIPTORS$4$9)return!0;var Ao={length:-1};fo?defineProperty$3$3(Ao,1,{enumerable:!0,get:thrower$3}):Ao[1]=1,io.call(Ao,$o,mo)})},$$7$3=_export$9,$includes$3=arrayIncludes$9.includes,addToUnscopables$8=addToUnscopables$2$4,arrayMethodUsesToLength$1$3=arrayMethodUsesToLength$2$2,USES_TO_LENGTH$1$2=arrayMethodUsesToLength$1$3("indexOf",{ACCESSORS:!0,1:0});$$7$3({target:"Array",proto:!0,forced:!USES_TO_LENGTH$1$2},{includes:function Mn(Fn){return $includes$3(this,Fn,arguments.length>1?arguments[1]:void 0)}});addToUnscopables$8("includes");var DESCRIPTORS$3$9=descriptors$a,fails$8$6=fails$h$2,objectKeys$b=objectKeys$2$5,getOwnPropertySymbolsModule$a=objectGetOwnPropertySymbols$9,propertyIsEnumerableModule$a=objectPropertyIsEnumerable$9,toObject$5$2=toObject$7$2,IndexedObject$2$3=indexedObject$9,nativeAssign$7=Object.assign,defineProperty$2$4=Object.defineProperty,objectAssign$7=!nativeAssign$7||fails$8$6(function(){if(DESCRIPTORS$3$9&&nativeAssign$7({b:1},nativeAssign$7(defineProperty$2$4({},"a",{enumerable:!0,get:function(){defineProperty$2$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Mn={},Fn={},io=Symbol(),fo="abcdefghijklmnopqrst";return Mn[io]=7,fo.split("").forEach(function($o){Fn[$o]=$o}),nativeAssign$7({},Mn)[io]!=7||objectKeys$b(nativeAssign$7({},Fn)).join("")!=fo})?function Mn(Fn,io){for(var fo=toObject$5$2(Fn),$o=arguments.length,mo=1,Ao=getOwnPropertySymbolsModule$a.f,jo=propertyIsEnumerableModule$a.f;$o>mo;)for(var Lo=IndexedObject$2$3(arguments[mo++]),Ho=Ao?objectKeys$b(Lo).concat(Ao(Lo)):objectKeys$b(Lo),zo=Ho.length,Go=0,Vo;zo>Go;)Vo=Ho[Go++],(!DESCRIPTORS$3$9||jo.call(Lo,Vo))&&(fo[Vo]=Lo[Vo]);return fo}:nativeAssign$7,$$6$4=_export$9,assign$8=objectAssign$7;$$6$4({target:"Object",stat:!0,forced:Object.assign!==assign$8},{assign:assign$8});var isObject$4$a=isObject$c$2,classof$3$6=classofRaw$1$6,wellKnownSymbol$3$7=wellKnownSymbol$h$2,MATCH$1$4=wellKnownSymbol$3$7("match"),isRegexp$4=function(Mn){var Fn;return isObject$4$a(Mn)&&((Fn=Mn[MATCH$1$4])!==void 0?!!Fn:classof$3$6(Mn)=="RegExp")},isRegExp$4=isRegexp$4,notARegexp$4=function(Mn){if(isRegExp$4(Mn))throw TypeError("The method doesn't accept regular expressions");return Mn},wellKnownSymbol$2$7=wellKnownSymbol$h$2,MATCH$5=wellKnownSymbol$2$7("match"),correctIsRegexpLogic$4=function(Mn){var Fn=/./;try{"/./"[Mn](Fn)}catch{try{return Fn[MATCH$5]=!1,"/./"[Mn](Fn)}catch{}}return!1},$$5$4=_export$9,notARegExp$4=notARegexp$4,requireObjectCoercible$1$9=requireObjectCoercible$4$3,correctIsRegExpLogic$4=correctIsRegexpLogic$4;$$5$4({target:"String",proto:!0,forced:!correctIsRegExpLogic$4("includes")},{includes:function Mn(Fn){return!!~String(requireObjectCoercible$1$9(this)).indexOf(notARegExp$4(Fn),arguments.length>1?arguments[1]:void 0)}});var whitespaces$2$2=`
\v\f\r \u2028\u2029\uFEFF`,requireObjectCoercible$d=requireObjectCoercible$4$3,whitespaces$1$2=whitespaces$2$2,whitespace$2="["+whitespaces$1$2+"]",ltrim$2=RegExp("^"+whitespace$2+whitespace$2+"*"),rtrim$2=RegExp(whitespace$2+whitespace$2+"*$"),createMethod$2$2=function(Mn){return function(Fn){var io=String(requireObjectCoercible$d(Fn));return Mn&1&&(io=io.replace(ltrim$2,"")),Mn&2&&(io=io.replace(rtrim$2,"")),io}},stringTrim$2={start:createMethod$2$2(1),end:createMethod$2$2(2),trim:createMethod$2$2(3)},fails$7$6=fails$h$2,whitespaces$4=whitespaces$2$2,non$1="
",stringTrimForced$1=function(Mn){return fails$7$6(function(){return!!whitespaces$4[Mn]()||non$1[Mn]()!=non$1||whitespaces$4[Mn].name!==Mn})},$$4$4=_export$9,$trim$1=stringTrim$2.trim,forcedStringTrimMethod$1=stringTrimForced$1;$$4$4({target:"String",proto:!0,forced:forcedStringTrimMethod$1("trim")},{trim:function Mn(){return $trim$1(this)}});class EventEmitter{constructor(){this.emitter=new eventsExports.EventEmitter}on(Fn,io){return this.emitter.on(Fn,io),{remove:()=>this.emitter.off(Fn,io)}}off(Fn,io){this.emitter.off(Fn,io)}emit(Fn,io){this.emitter.emit(Fn,io)}}const PACKAGE_NAME="near-wallet-selector",RECENTLY_SIGNED_IN_WALLETS="recentlySignedInWallets",REMEMBER_RECENT_WALLETS="rememberRecentWallets",REMEMBER_RECENT_WALLETS_STATE={ENABLED:"enabled",DISABLED:"disabled"},CONTRACT="contract",PENDING_CONTRACT="contract:pending",SELECTED_WALLET_ID="selectedWalletId",PENDING_SELECTED_WALLET_ID="selectedWalletId:pending";class WalletModules{constructor({factories:Fn,storage:io,options:fo,store:$o,emitter:mo,provider:Ao}){this.factories=Fn,this.storage=io,this.options=fo,this.store=$o,this.emitter=mo,this.provider=Ao,this.modules=[],this.instances={}}validateWallet(Fn){return __awaiter$E(this,void 0,void 0,function*(){let io=[];const fo=yield this.getWallet(Fn);return fo&&(io=yield fo.getAccounts().catch($o=>(logger$3.log(`Failed to validate ${fo.id} during setup`),logger$3.error($o),[]))),io})}resolveStorageState(){return __awaiter$E(this,void 0,void 0,function*(){const Fn=new JsonStorage(this.storage,PACKAGE_NAME),io=yield Fn.getItem(PENDING_SELECTED_WALLET_ID),fo=yield Fn.getItem(PENDING_CONTRACT),$o=yield Fn.getItem(REMEMBER_RECENT_WALLETS);if(io&&fo){const Ho=yield this.validateWallet(io);if(yield Fn.removeItem(PENDING_SELECTED_WALLET_ID),yield Fn.removeItem(PENDING_CONTRACT),Ho.length){const{selectedWalletId:zo}=this.store.getState(),Go=yield this.getWallet(zo);Go&&io!==zo&&(yield Go.signOut().catch(Yo=>{logger$3.log("Failed to sign out existing wallet"),logger$3.error(Yo)}));let Vo=[];return $o===REMEMBER_RECENT_WALLETS_STATE.ENABLED&&(Vo=yield this.setWalletAsRecentlySignedIn(io)),{accounts:Ho,contract:fo,selectedWalletId:io,recentlySignedInWallets:Vo,rememberRecentWallets:$o||REMEMBER_RECENT_WALLETS_STATE.ENABLED}}}const{contract:mo,selectedWalletId:Ao}=this.store.getState(),jo=yield this.validateWallet(Ao),Lo=yield Fn.getItem(RECENTLY_SIGNED_IN_WALLETS);return jo.length?{accounts:jo,contract:mo,selectedWalletId:Ao,recentlySignedInWallets:Lo||[],rememberRecentWallets:$o||REMEMBER_RECENT_WALLETS_STATE.ENABLED}:{accounts:[],contract:null,selectedWalletId:null,recentlySignedInWallets:Lo||[],rememberRecentWallets:$o||REMEMBER_RECENT_WALLETS_STATE.ENABLED}})}setWalletAsRecentlySignedIn(Fn){return __awaiter$E(this,void 0,void 0,function*(){const io=new JsonStorage(this.storage,PACKAGE_NAME);let fo=yield io.getItem(RECENTLY_SIGNED_IN_WALLETS);return fo||(fo=[]),fo.includes(Fn)||(fo.unshift(Fn),fo=fo.slice(0,5),yield io.setItem(RECENTLY_SIGNED_IN_WALLETS,fo)),fo})}signOutWallet(Fn){return __awaiter$E(this,void 0,void 0,function*(){const io=yield this.getWallet(Fn);yield io.signOut().catch(fo=>{logger$3.log(`Failed to sign out ${io.id}`),logger$3.error(fo),this.onWalletSignedOut(io.id)})})}onWalletSignedIn(Fn,{accounts:io,contractId:fo,methodNames:$o}){return __awaiter$E(this,void 0,void 0,function*(){const{selectedWalletId:mo,rememberRecentWallets:Ao}=this.store.getState(),jo=new JsonStorage(this.storage,PACKAGE_NAME),Lo={contractId:fo,methodNames:$o};if(!io.length){this.getModule(Fn).type==="browser"&&(yield jo.setItem(PENDING_SELECTED_WALLET_ID,Fn),yield jo.setItem(PENDING_CONTRACT,Lo));return}mo&&mo!==Fn&&(yield this.signOutWallet(mo));let Ho=[];Ao===REMEMBER_RECENT_WALLETS_STATE.ENABLED&&(Ho=yield this.setWalletAsRecentlySignedIn(Fn)),this.store.dispatch({type:"WALLET_CONNECTED",payload:{walletId:Fn,contract:Lo,accounts:io,recentlySignedInWallets:Ho,rememberRecentWallets:Ao}}),this.emitter.emit("signedIn",{walletId:Fn,contractId:fo,methodNames:$o,accounts:io})})}onWalletSignedOut(Fn){this.store.dispatch({type:"WALLET_DISCONNECTED",payload:{walletId:Fn}}),this.emitter.emit("signedOut",{walletId:Fn})}setupWalletEmitter(Fn){const io=new EventEmitter;return io.on("signedOut",()=>{this.onWalletSignedOut(Fn.id)}),io.on("signedIn",fo=>{this.onWalletSignedIn(Fn.id,fo)}),io.on("accountsChanged",({accounts:fo})=>__awaiter$E(this,void 0,void 0,function*(){if(this.emitter.emit("accountsChanged",{walletId:Fn.id,accounts:fo}),!fo.length)return this.signOutWallet(Fn.id);this.store.dispatch({type:"ACCOUNTS_CHANGED",payload:{walletId:Fn.id,accounts:fo}})})),io.on("networkChanged",({networkId:fo})=>{this.emitter.emit("networkChanged",{walletId:Fn.id,networkId:fo})}),io.on("uriChanged",({uri:fo})=>{this.emitter.emit("uriChanged",{walletId:Fn.id,uri:fo})}),io}validateSignMessageParams({message:Fn,nonce:io,recipient:fo}){if(!Fn||Fn.trim()==="")throw new Error("Invalid message. It must be a non-empty string.");if(!Buffer$D.isBuffer(io)||io.length!==32)throw new Error("Invalid nonce. It must be a Buffer with a length of 32 bytes.");if(!fo||fo.trim()==="")throw new Error("Invalid recipient. It must be a non-empty string.")}decorateWallet(Fn){const io=Fn.signIn,fo=Fn.signOut,$o=Fn.signMessage;return Fn.signIn=mo=>__awaiter$E(this,void 0,void 0,function*(){const Ao=yield io(mo),{contractId:jo,methodNames:Lo=[]}=mo;return yield this.onWalletSignedIn(Fn.id,{accounts:Ao,contractId:jo,methodNames:Lo}),Ao}),Fn.signOut=()=>__awaiter$E(this,void 0,void 0,function*(){yield fo(),this.onWalletSignedOut(Fn.id)}),Fn.signMessage=mo=>__awaiter$E(this,void 0,void 0,function*(){if($o===void 0)throw Error(`The signMessage method is not supported by ${Fn.metadata.name}`);return this.validateSignMessageParams(mo),yield $o(mo)}),Fn}setupInstance(Fn){return __awaiter$E(this,void 0,void 0,function*(){if(!Fn.metadata.available){const fo=Fn.type==="injected"?"not installed":"not available";throw Error(`${Fn.metadata.name} is ${fo}`)}const io=Object.assign({id:Fn.id,type:Fn.type,metadata:Fn.metadata},yield Fn.init({id:Fn.id,type:Fn.type,metadata:Fn.metadata,options:this.options,store:this.store.toReadOnly(),provider:this.provider,emitter:this.setupWalletEmitter(Fn),logger:new Logger$1(Fn.id),storage:new JsonStorage(this.storage,[PACKAGE_NAME,Fn.id])}));return this.decorateWallet(io)})}getModule(Fn){return this.modules.find(io=>io.id===Fn)}getWallet(Fn){return __awaiter$E(this,void 0,void 0,function*(){const io=this.getModule(Fn);if(!io)return null;const{selectedWalletId:fo}=this.store.getState();return!io.metadata.available&&fo?(this.onWalletSignedOut(fo),null):yield io.wallet()})}setup(){return __awaiter$E(this,void 0,void 0,function*(){const Fn=[];for(let jo=0;jo<this.factories.length;jo+=1){const Lo=yield this.factories[jo]({options:this.options}).catch(Ho=>(logger$3.log("Failed to setup module"),logger$3.error(Ho),null));Lo&&(Fn.some(Ho=>Ho.id===Lo.id)||Fn.push({id:Lo.id,type:Lo.type,metadata:Lo.metadata,wallet:()=>__awaiter$E(this,void 0,void 0,function*(){let Ho=this.instances[Lo.id];return Ho||(Ho=yield this.setupInstance(Lo),this.instances[Lo.id]=Ho,Ho)})}))}this.modules=Fn;const{accounts:io,contract:fo,selectedWalletId:$o,recentlySignedInWallets:mo,rememberRecentWallets:Ao}=yield this.resolveStorageState();this.store.dispatch({type:"SETUP_WALLET_MODULES",payload:{modules:Fn,accounts:io,contract:fo,selectedWalletId:$o,recentlySignedInWallets:mo,rememberRecentWallets:Ao}});for(let jo=0;jo<this.modules.length;jo++){if(this.modules[jo].type!=="instant-link")continue;const Lo=yield this.modules[jo].wallet();if(Lo.metadata.runOnStartup)try{yield Lo.signIn({contractId:Lo.getContractId()})}catch(Ho){logger$3.error("Failed to sign in to wallet. "+Ho)}}})}}const getNetworkPreset$1=(Mn,Fn)=>{switch(Mn){case"mainnet":return{networkId:Mn,nodeUrl:(Fn==null?void 0:Fn[0])||"https://rpc.mainnet.near.org",helperUrl:"https://helper.mainnet.near.org",explorerUrl:"https://nearblocks.io",indexerUrl:"https://api.kitwallet.app"};case"testnet":return{networkId:Mn,nodeUrl:(Fn==null?void 0:Fn[0])||"https://rpc.testnet.near.org",helperUrl:"https://helper.testnet.near.org",explorerUrl:"https://testnet.nearblocks.io",indexerUrl:"https://testnet-api.kitwallet.app"};default:throw Error(`Failed to find config for: '${Mn}'`)}},resolveNetwork=Mn=>typeof Mn=="string"?getNetworkPreset$1(Mn):Mn,resolveOptions=Mn=>({options:{languageCode:Mn.languageCode||void 0,network:resolveNetwork(Mn.network),debug:Mn.debug||!1,optimizeWalletOrder:Mn.optimizeWalletOrder!==!1,randomizeWalletOrder:Mn.randomizeWalletOrder||!1,relayerUrl:Mn.relayerUrl||void 0},storage:Mn.storage||new WebStorageService}),reducer=(Mn,Fn)=>{switch(logger$3.log("Store Action",Fn),Fn.type){case"SETUP_WALLET_MODULES":{const{modules:io,accounts:fo,contract:$o,selectedWalletId:mo,recentlySignedInWallets:Ao,rememberRecentWallets:jo}=Fn.payload,Lo=fo.map((Ho,zo)=>Object.assign(Object.assign({},Ho),{active:zo===0}));return Object.assign(Object.assign({},Mn),{modules:io,accounts:Lo,contract:$o,selectedWalletId:mo,recentlySignedInWallets:Ao,rememberRecentWallets:jo})}case"WALLET_CONNECTED":{const{walletId:io,contract:fo,accounts:$o,recentlySignedInWallets:mo}=Fn.payload;if(!$o.length)return Mn;const Ao=Mn.accounts.findIndex(Lo=>Lo.active),jo=$o.map((Lo,Ho)=>Object.assign(Object.assign({},Lo),{active:Ho===(Ao>-1?Ao:0)}));return Object.assign(Object.assign({},Mn),{contract:fo,accounts:jo,selectedWalletId:io,recentlySignedInWallets:mo})}case"WALLET_DISCONNECTED":{const{walletId:io}=Fn.payload;return io!==Mn.selectedWalletId?Mn:Object.assign(Object.assign({},Mn),{contract:null,accounts:[],selectedWalletId:null})}case"ACCOUNTS_CHANGED":{const{walletId:io,accounts:fo}=Fn.payload;if(io!==Mn.selectedWalletId)return Mn;const $o=Mn.accounts.find(jo=>jo.active),mo=!fo.some(jo=>jo.accountId===($o==null?void 0:$o.accountId)),Ao=fo.map((jo,Lo)=>Object.assign(Object.assign({},jo),{active:mo?Lo===0:jo.accountId===($o==null?void 0:$o.accountId)}));return Object.assign(Object.assign({},Mn),{accounts:Ao})}case"SET_ACTIVE_ACCOUNT":{const{accountId:io}=Fn.payload,fo=Mn.accounts.map($o=>Object.assign(Object.assign({},$o),{active:$o.accountId===io}));return Object.assign(Object.assign({},Mn),{accounts:fo})}case"SET_REMEMBER_RECENT_WALLETS":{const{selectedWalletId:io,recentlySignedInWallets:fo}=Mn,{rememberRecentWallets:$o}=Fn.payload,mo=$o===REMEMBER_RECENT_WALLETS_STATE.ENABLED?REMEMBER_RECENT_WALLETS_STATE.DISABLED:REMEMBER_RECENT_WALLETS_STATE.ENABLED,Ao=[...fo];io&&!fo.includes(io)&&Ao.push(io);const jo=mo===REMEMBER_RECENT_WALLETS_STATE.ENABLED?Ao:[];return Object.assign(Object.assign({},Mn),{rememberRecentWallets:mo,recentlySignedInWallets:jo})}default:return Mn}},createStore=Mn=>__awaiter$E(void 0,void 0,void 0,function*(){const Fn=new JsonStorage(Mn,PACKAGE_NAME),io={modules:[],accounts:[],contract:yield Fn.getItem(CONTRACT),selectedWalletId:yield Fn.getItem(SELECTED_WALLET_ID),recentlySignedInWallets:(yield Fn.getItem(RECENTLY_SIGNED_IN_WALLETS))||[],rememberRecentWallets:(yield Fn.getItem(REMEMBER_RECENT_WALLETS))||""},fo=new BehaviorSubject(io),$o=new Subject;$o.pipe(scan(reducer,io)).subscribe(fo);const mo=(jo,Lo,Ho,zo)=>__awaiter$E(void 0,void 0,void 0,function*(){if(Lo[zo]!==jo[zo]){if(Lo[zo]){yield Fn.setItem(Ho,Lo[zo]);return}yield Fn.removeItem(Ho)}});let Ao=fo.getValue();return fo.subscribe(jo=>{mo(Ao,jo,SELECTED_WALLET_ID,"selectedWalletId"),mo(Ao,jo,CONTRACT,"contract"),mo(Ao,jo,RECENTLY_SIGNED_IN_WALLETS,"recentlySignedInWallets"),mo(Ao,jo,REMEMBER_RECENT_WALLETS,"rememberRecentWallets"),Ao=jo}),{observable:fo,getState:()=>fo.getValue(),dispatch:jo=>$o.next(jo),toReadOnly:()=>({getState:()=>fo.getValue(),observable:fo.asObservable()})}});let walletSelectorInstance=null;const createSelector=(Mn,Fn,io,fo)=>({options:Mn,store:Fn.toReadOnly(),wallet:$o=>__awaiter$E(void 0,void 0,void 0,function*(){const{selectedWalletId:mo}=Fn.getState(),Ao=yield io.getWallet($o||mo);if(!Ao)throw $o?new Error("Invalid wallet id"):new Error("No wallet selected");return Ao}),setActiveAccount:$o=>{const{accounts:mo}=Fn.getState();if(!mo.some(Ao=>Ao.accountId===$o))throw new Error("Invalid account id");Fn.dispatch({type:"SET_ACTIVE_ACCOUNT",payload:{accountId:$o}})},setRememberRecentWallets:()=>{const{rememberRecentWallets:$o}=Fn.getState();Fn.dispatch({type:"SET_REMEMBER_RECENT_WALLETS",payload:{rememberRecentWallets:$o}})},isSignedIn(){const{accounts:$o}=Fn.getState();return!!$o.length},on:($o,mo)=>fo.on($o,mo),off:($o,mo)=>{fo.off($o,mo)}}),setupWalletSelector=Mn=>__awaiter$E(void 0,void 0,void 0,function*(){const{options:Fn,storage:io}=resolveOptions(Mn);Logger$1.debug=Fn.debug;const fo=new EventEmitter,$o=yield createStore(io),mo=yield getNetworkPreset$1(Fn.network.networkId,Mn.fallbackRpcUrls),Ao=Mn.fallbackRpcUrls&&Mn.fallbackRpcUrls.length>0?Mn.fallbackRpcUrls:[mo.nodeUrl],jo=new WalletModules({factories:Mn.modules,storage:io,options:Fn,store:$o,emitter:fo,provider:new Provider$1(Ao)});return yield jo.setup(),Mn.allowMultipleSelectors?createSelector(Fn,$o,jo,fo):(walletSelectorInstance||(walletSelectorInstance=createSelector(Fn,$o,jo,fo)),walletSelectorInstance)});var aFunction$f=aFunction$5$5,toObject$4$4=toObject$7$2,IndexedObject$1$7=indexedObject$9,toLength$8$2=toLength$b$2,createMethod$1$5=function(Mn){return function(Fn,io,fo,$o){aFunction$f(io);var mo=toObject$4$4(Fn),Ao=IndexedObject$1$7(mo),jo=toLength$8$2(mo.length),Lo=Mn?jo-1:0,Ho=Mn?-1:1;if(fo<2)for(;;){if(Lo in Ao){$o=Ao[Lo],Lo+=Ho;break}if(Lo+=Ho,Mn?Lo<0:jo<=Lo)throw TypeError("Reduce of empty array with no initial value")}for(;Mn?Lo>=0:jo>Lo;Lo+=Ho)Lo in Ao&&($o=io($o,Ao[Lo],Lo,mo));return $o}},arrayReduce$2={left:createMethod$1$5(!1),right:createMethod$1$5(!0)},fails$6$9=fails$h$2,arrayMethodIsStrict$1$2=function(Mn,Fn){var io=[][Mn];return!!io&&fails$6$9(function(){io.call(null,Fn||function(){throw 1},1)})},$$3$5=_export$9,$reduce$2=arrayReduce$2.left,arrayMethodIsStrict$4=arrayMethodIsStrict$1$2,arrayMethodUsesToLength$5=arrayMethodUsesToLength$2$2,STRICT_METHOD$3=arrayMethodIsStrict$4("reduce"),USES_TO_LENGTH$4=arrayMethodUsesToLength$5("reduce",{1:0});$$3$5({target:"Array",proto:!0,forced:!STRICT_METHOD$3||!USES_TO_LENGTH$4},{reduce:function Mn(Fn){return $reduce$2(this,Fn,arguments.length,arguments.length>1?arguments[1]:void 0)}});var anObject$1$a=anObject$b$5,regexpFlags$1$4=function(){var Mn=anObject$1$a(this),Fn="";return Mn.global&&(Fn+="g"),Mn.ignoreCase&&(Fn+="i"),Mn.multiline&&(Fn+="m"),Mn.dotAll&&(Fn+="s"),Mn.unicode&&(Fn+="u"),Mn.sticky&&(Fn+="y"),Fn},regexpStickyHelpers$3={},fails$5$9=fails$h$2;function RE$3(Mn,Fn){return RegExp(Mn,Fn)}regexpStickyHelpers$3.UNSUPPORTED_Y=fails$5$9(function(){var Mn=RE$3("a","y");return Mn.lastIndex=2,Mn.exec("abcd")!=null});regexpStickyHelpers$3.BROKEN_CARET=fails$5$9(function(){var Mn=RE$3("^r","gy");return Mn.lastIndex=2,Mn.exec("str")!=null});var regexpFlags$9=regexpFlags$1$4,stickyHelpers$3=regexpStickyHelpers$3,nativeExec$3=RegExp.prototype.exec,nativeReplace$3=String.prototype.replace,patchedExec$3=nativeExec$3,UPDATES_LAST_INDEX_WRONG$3=function(){var Mn=/a/,Fn=/b*/g;return nativeExec$3.call(Mn,"a"),nativeExec$3.call(Fn,"a"),Mn.lastIndex!==0||Fn.lastIndex!==0}(),UNSUPPORTED_Y$3=stickyHelpers$3.UNSUPPORTED_Y||stickyHelpers$3.BROKEN_CARET,NPCG_INCLUDED$3=/()??/.exec("")[1]!==void 0,PATCH$3=UPDATES_LAST_INDEX_WRONG$3||NPCG_INCLUDED$3||UNSUPPORTED_Y$3;PATCH$3&&(patchedExec$3=function(Fn){var io=this,fo,$o,mo,Ao,jo=UNSUPPORTED_Y$3&&io.sticky,Lo=regexpFlags$9.call(io),Ho=io.source,zo=0,Go=Fn;return jo&&(Lo=Lo.replace("y",""),Lo.indexOf("g")===-1&&(Lo+="g"),Go=String(Fn).slice(io.lastIndex),io.lastIndex>0&&(!io.multiline||io.multiline&&Fn[io.lastIndex-1]!==`
`)&&(Ho="(?: "+Ho+")",Go=" "+Go,zo++),$o=new RegExp("^(?:"+Ho+")",Lo)),NPCG_INCLUDED$3&&($o=new RegExp("^"+Ho+"$(?!\\s)",Lo)),UPDATES_LAST_INDEX_WRONG$3&&(fo=io.lastIndex),mo=nativeExec$3.call(jo?$o:io,Go),jo?mo?(mo.input=mo.input.slice(zo),mo[0]=mo[0].slice(zo),mo.index=io.lastIndex,io.lastIndex+=mo[0].length):io.lastIndex=0:UPDATES_LAST_INDEX_WRONG$3&&mo&&(io.lastIndex=io.global?mo.index+mo[0].length:fo),NPCG_INCLUDED$3&&mo&&mo.length>1&&nativeReplace$3.call(mo[0],$o,function(){for(Ao=1;Ao<arguments.length-2;Ao++)arguments[Ao]===void 0&&(mo[Ao]=void 0)}),mo});var regexpExec$5=patchedExec$3,$$2$6=_export$9,exec$3=regexpExec$5;$$2$6({target:"RegExp",proto:!0,forced:/./.exec!==exec$3},{exec:exec$3});var arrayBufferNative$2=typeof ArrayBuffer<"u"&&typeof DataView<"u",toInteger$2$9=toInteger$5$2,toLength$7$2=toLength$b$2,toIndex$2$2=function(Mn){if(Mn===void 0)return 0;var Fn=toInteger$2$9(Mn),io=toLength$7$2(Fn);if(Fn!==io)throw RangeError("Wrong length or index");return io},Infinity$3=1/0,abs$2=Math.abs,pow$3=Math.pow,floor$c=Math.floor,log$3=Math.log,LN2$2=Math.LN2,pack$2=function(Mn,Fn,io){var fo=new Array(io),$o=io*8-Fn-1,mo=(1<<$o)-1,Ao=mo>>1,jo=Fn===23?pow$3(2,-24)-pow$3(2,-77):0,Lo=Mn<0||Mn===0&&1/Mn<0?1:0,Ho=0,zo,Go,Vo;for(Mn=abs$2(Mn),Mn!=Mn||Mn===Infinity$3?(Go=Mn!=Mn?1:0,zo=mo):(zo=floor$c(log$3(Mn)/LN2$2),Mn*(Vo=pow$3(2,-zo))<1&&(zo--,Vo*=2),zo+Ao>=1?Mn+=jo/Vo:Mn+=jo*pow$3(2,1-Ao),Mn*Vo>=2&&(zo++,Vo/=2),zo+Ao>=mo?(Go=0,zo=mo):zo+Ao>=1?(Go=(Mn*Vo-1)*pow$3(2,Fn),zo=zo+Ao):(Go=Mn*pow$3(2,Ao-1)*pow$3(2,Fn),zo=0));Fn>=8;fo[Ho++]=Go&255,Go/=256,Fn-=8);for(zo=zo<<Fn|Go,$o+=Fn;$o>0;fo[Ho++]=zo&255,zo/=256,$o-=8);return fo[--Ho]|=Lo*128,fo},unpack$2=function(Mn,Fn){var io=Mn.length,fo=io*8-Fn-1,$o=(1<<fo)-1,mo=$o>>1,Ao=fo-7,jo=io-1,Lo=Mn[jo--],Ho=Lo&127,zo;for(Lo>>=7;Ao>0;Ho=Ho*256+Mn[jo],jo--,Ao-=8);for(zo=Ho&(1<<-Ao)-1,Ho>>=-Ao,Ao+=Fn;Ao>0;zo=zo*256+Mn[jo],jo--,Ao-=8);if(Ho===0)Ho=1-mo;else{if(Ho===$o)return zo?NaN:Lo?-Infinity$3:Infinity$3;zo=zo+pow$3(2,Fn),Ho=Ho-mo}return(Lo?-1:1)*zo*pow$3(2,Ho-Fn)},ieee754$2={pack:pack$2,unpack:unpack$2},toObject$3$5=toObject$7$2,toAbsoluteIndex$1$9=toAbsoluteIndex$3$2,toLength$6$2=toLength$b$2,arrayFill$1$2=function Mn(Fn){for(var io=toObject$3$5(this),fo=toLength$6$2(io.length),$o=arguments.length,mo=toAbsoluteIndex$1$9($o>1?arguments[1]:void 0,fo),Ao=$o>2?arguments[2]:void 0,jo=Ao===void 0?fo:toAbsoluteIndex$1$9(Ao,fo);jo>mo;)io[mo++]=Fn;return io},global$5$a=global$n$1,DESCRIPTORS$2$a=descriptors$a,NATIVE_ARRAY_BUFFER$1$2=arrayBufferNative$2,createNonEnumerableProperty$2$a=createNonEnumerableProperty$a$2,redefineAll$8=redefineAll$2$2,fails$4$9=fails$h$2,anInstance$1$6=anInstance$3$2,toInteger$1$9=toInteger$5$2,toLength$5$2=toLength$b$2,toIndex$1$2=toIndex$2$2,IEEE754$2=ieee754$2,getPrototypeOf$1$7=objectGetPrototypeOf$7,setPrototypeOf$3$2=objectSetPrototypeOf$7,getOwnPropertyNames$1$2=objectGetOwnPropertyNames$9.f,defineProperty$1$5=objectDefineProperty$a.f,arrayFill$3=arrayFill$1$2,setToStringTag$c=setToStringTag$4$2,InternalStateModule$1$7=internalState$a,getInternalState$1$7=InternalStateModule$1$7.get,setInternalState$1$6=InternalStateModule$1$7.set,ARRAY_BUFFER$2="ArrayBuffer",DATA_VIEW$2="DataView",PROTOTYPE$8="prototype",WRONG_LENGTH$1$2="Wrong length",WRONG_INDEX$2="Wrong index",NativeArrayBuffer$2=global$5$a[ARRAY_BUFFER$2],$ArrayBuffer$2=NativeArrayBuffer$2,$DataView$2=global$5$a[DATA_VIEW$2],$DataViewPrototype$2=$DataView$2&&$DataView$2[PROTOTYPE$8],ObjectPrototype$1$2=Object.prototype,RangeError$2$2=global$5$a.RangeError,packIEEE754$2=IEEE754$2.pack,unpackIEEE754$2=IEEE754$2.unpack,packInt8$2=function(Mn){return[Mn&255]},packInt16$2=function(Mn){return[Mn&255,Mn>>8&255]},packInt32$2=function(Mn){return[Mn&255,Mn>>8&255,Mn>>16&255,Mn>>24&255]},unpackInt32$2=function(Mn){return Mn[3]<<24|Mn[2]<<16|Mn[1]<<8|Mn[0]},packFloat32$2=function(Mn){return packIEEE754$2(Mn,23,4)},packFloat64$2=function(Mn){return packIEEE754$2(Mn,52,8)},addGetter$1$2=function(Mn,Fn){defineProperty$1$5(Mn[PROTOTYPE$8],Fn,{get:function(){return getInternalState$1$7(this)[Fn]}})},get$b=function(Mn,Fn,io,fo){var $o=toIndex$1$2(io),mo=getInternalState$1$7(Mn);if($o+Fn>mo.byteLength)throw RangeError$2$2(WRONG_INDEX$2);var Ao=getInternalState$1$7(mo.buffer).bytes,jo=$o+mo.byteOffset,Lo=Ao.slice(jo,jo+Fn);return fo?Lo:Lo.reverse()},set$b=function(Mn,Fn,io,fo,$o,mo){var Ao=toIndex$1$2(io),jo=getInternalState$1$7(Mn);if(Ao+Fn>jo.byteLength)throw RangeError$2$2(WRONG_INDEX$2);for(var Lo=getInternalState$1$7(jo.buffer).bytes,Ho=Ao+jo.byteOffset,zo=fo(+$o),Go=0;Go<Fn;Go++)Lo[Ho+Go]=zo[mo?Go:Fn-Go-1]};if(!NATIVE_ARRAY_BUFFER$1$2)$ArrayBuffer$2=function(Fn){anInstance$1$6(this,$ArrayBuffer$2,ARRAY_BUFFER$2);var io=toIndex$1$2(Fn);setInternalState$1$6(this,{bytes:arrayFill$3.call(new Array(io),0),byteLength:io}),DESCRIPTORS$2$a||(this.byteLength=io)},$DataView$2=function(Fn,io,fo){anInstance$1$6(this,$DataView$2,DATA_VIEW$2),anInstance$1$6(Fn,$ArrayBuffer$2,DATA_VIEW$2);var $o=getInternalState$1$7(Fn).byteLength,mo=toInteger$1$9(io);if(mo<0||mo>$o)throw RangeError$2$2("Wrong offset");if(fo=fo===void 0?$o-mo:toLength$5$2(fo),mo+fo>$o)throw RangeError$2$2(WRONG_LENGTH$1$2);setInternalState$1$6(this,{buffer:Fn,byteLength:fo,byteOffset:mo}),DESCRIPTORS$2$a||(this.buffer=Fn,this.byteLength=fo,this.byteOffset=mo)},DESCRIPTORS$2$a&&(addGetter$1$2($ArrayBuffer$2,"byteLength"),addGetter$1$2($DataView$2,"buffer"),addGetter$1$2($DataView$2,"byteLength"),addGetter$1$2($DataView$2,"byteOffset")),redefineAll$8($DataView$2[PROTOTYPE$8],{getInt8:function(Fn){return get$b(this,1,Fn)[0]<<24>>24},getUint8:function(Fn){return get$b(this,1,Fn)[0]},getInt16:function(Fn){var io=get$b(this,2,Fn,arguments.length>1?arguments[1]:void 0);return(io[1]<<8|io[0])<<16>>16},getUint16:function(Fn){var io=get$b(this,2,Fn,arguments.length>1?arguments[1]:void 0);return io[1]<<8|io[0]},getInt32:function(Fn){return unpackInt32$2(get$b(this,4,Fn,arguments.length>1?arguments[1]:void 0))},getUint32:function(Fn){return unpackInt32$2(get$b(this,4,Fn,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Fn){return unpackIEEE754$2(get$b(this,4,Fn,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Fn){return unpackIEEE754$2(get$b(this,8,Fn,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Fn,io){set$b(this,1,Fn,packInt8$2,io)},setUint8:function(Fn,io){set$b(this,1,Fn,packInt8$2,io)},setInt16:function(Fn,io){set$b(this,2,Fn,packInt16$2,io,arguments.length>2?arguments[2]:void 0)},setUint16:function(Fn,io){set$b(this,2,Fn,packInt16$2,io,arguments.length>2?arguments[2]:void 0)},setInt32:function(Fn,io){set$b(this,4,Fn,packInt32$2,io,arguments.length>2?arguments[2]:void 0)},setUint32:function(Fn,io){set$b(this,4,Fn,packInt32$2,io,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Fn,io){set$b(this,4,Fn,packFloat32$2,io,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Fn,io){set$b(this,8,Fn,packFloat64$2,io,arguments.length>2?arguments[2]:void 0)}});else{if(!fails$4$9(function(){NativeArrayBuffer$2(1)})||!fails$4$9(function(){new NativeArrayBuffer$2(-1)})||fails$4$9(function(){return new NativeArrayBuffer$2,new NativeArrayBuffer$2(1.5),new NativeArrayBuffer$2(NaN),NativeArrayBuffer$2.name!=ARRAY_BUFFER$2})){$ArrayBuffer$2=function(Fn){return anInstance$1$6(this,$ArrayBuffer$2),new NativeArrayBuffer$2(toIndex$1$2(Fn))};for(var ArrayBufferPrototype$2=$ArrayBuffer$2[PROTOTYPE$8]=NativeArrayBuffer$2[PROTOTYPE$8],keys$b=getOwnPropertyNames$1$2(NativeArrayBuffer$2),j$2=0,key$2;keys$b.length>j$2;)(key$2=keys$b[j$2++])in $ArrayBuffer$2||createNonEnumerableProperty$2$a($ArrayBuffer$2,key$2,NativeArrayBuffer$2[key$2]);ArrayBufferPrototype$2.constructor=$ArrayBuffer$2}setPrototypeOf$3$2&&getPrototypeOf$1$7($DataViewPrototype$2)!==ObjectPrototype$1$2&&setPrototypeOf$3$2($DataViewPrototype$2,ObjectPrototype$1$2);var testView$2=new $DataView$2(new $ArrayBuffer$2(2)),nativeSetInt8$2=$DataViewPrototype$2.setInt8;testView$2.setInt8(0,2147483648),testView$2.setInt8(1,2147483649),(testView$2.getInt8(0)||!testView$2.getInt8(1))&&redefineAll$8($DataViewPrototype$2,{setInt8:function(Fn,io){nativeSetInt8$2.call(this,Fn,io<<24>>24)},setUint8:function(Fn,io){nativeSetInt8$2.call(this,Fn,io<<24>>24)}},{unsafe:!0})}setToStringTag$c($ArrayBuffer$2,ARRAY_BUFFER$2);setToStringTag$c($DataView$2,DATA_VIEW$2);var arrayBuffer$2={ArrayBuffer:$ArrayBuffer$2,DataView:$DataView$2},$$1$7=_export$9,fails$3$a=fails$h$2,ArrayBufferModule$1$2=arrayBuffer$2,anObject$n=anObject$b$5,toAbsoluteIndex$c=toAbsoluteIndex$3$2,toLength$4$4=toLength$b$2,speciesConstructor$7=speciesConstructor$2$2,ArrayBuffer$3$2=ArrayBufferModule$1$2.ArrayBuffer,DataView$2$2=ArrayBufferModule$1$2.DataView,nativeArrayBufferSlice$2=ArrayBuffer$3$2.prototype.slice,INCORRECT_SLICE$2=fails$3$a(function(){return!new ArrayBuffer$3$2(2).slice(1,void 0).byteLength});$$1$7({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:INCORRECT_SLICE$2},{slice:function Mn(Fn,io){if(nativeArrayBufferSlice$2!==void 0&&io===void 0)return nativeArrayBufferSlice$2.call(anObject$n(this),Fn);for(var fo=anObject$n(this).byteLength,$o=toAbsoluteIndex$c(Fn,fo),mo=toAbsoluteIndex$c(io===void 0?fo:io,fo),Ao=new(speciesConstructor$7(this,ArrayBuffer$3$2))(toLength$4$4(mo-$o)),jo=new DataView$2$2(this),Lo=new DataView$2$2(Ao),Ho=0;$o<mo;)Lo.setUint8(Ho++,jo.getUint8($o++));return Ao}});var typedArrayConstructor$2={exports:{}},NATIVE_ARRAY_BUFFER$3=arrayBufferNative$2,DESCRIPTORS$1$a=descriptors$a,global$4$a=global$n$1,isObject$3$a=isObject$c$2,has$1$a=has$c$2,classof$2$6=classof$8$2,createNonEnumerableProperty$1$a=createNonEnumerableProperty$a$2,redefine$h=redefine$5$6.exports,defineProperty$c=objectDefineProperty$a.f,getPrototypeOf$a=objectGetPrototypeOf$7,setPrototypeOf$2$2=objectSetPrototypeOf$7,wellKnownSymbol$1$7=wellKnownSymbol$h$2,uid$d=uid$3$2,Int8Array$3$2=global$4$a.Int8Array,Int8ArrayPrototype$2=Int8Array$3$2&&Int8Array$3$2.prototype,Uint8ClampedArray$3=global$4$a.Uint8ClampedArray,Uint8ClampedArrayPrototype$2=Uint8ClampedArray$3&&Uint8ClampedArray$3.prototype,TypedArray$1$2=Int8Array$3$2&&getPrototypeOf$a(Int8Array$3$2),TypedArrayPrototype$1$2=Int8ArrayPrototype$2&&getPrototypeOf$a(Int8ArrayPrototype$2),ObjectPrototype$9=Object.prototype,isPrototypeOf$2=ObjectPrototype$9.isPrototypeOf,TO_STRING_TAG$a=wellKnownSymbol$1$7("toStringTag"),TYPED_ARRAY_TAG$1$2=uid$d("TYPED_ARRAY_TAG"),NATIVE_ARRAY_BUFFER_VIEWS$2$2=NATIVE_ARRAY_BUFFER$3&&!!setPrototypeOf$2$2&&classof$2$6(global$4$a.opera)!=="Opera",TYPED_ARRAY_TAG_REQIRED$2=!1,NAME$2,TypedArrayConstructorsList$2={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},isView$2=function Mn(Fn){var io=classof$2$6(Fn);return io==="DataView"||has$1$a(TypedArrayConstructorsList$2,io)},isTypedArray$1$2=function(Mn){return isObject$3$a(Mn)&&has$1$a(TypedArrayConstructorsList$2,classof$2$6(Mn))},aTypedArray$4$2=function(Mn){if(isTypedArray$1$2(Mn))return Mn;throw TypeError("Target is not a typed array")},aTypedArrayConstructor$2$2=function(Mn){if(setPrototypeOf$2$2){if(isPrototypeOf$2.call(TypedArray$1$2,Mn))return Mn}else for(var Fn in TypedArrayConstructorsList$2)if(has$1$a(TypedArrayConstructorsList$2,NAME$2)){var io=global$4$a[Fn];if(io&&(Mn===io||isPrototypeOf$2.call(io,Mn)))return Mn}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod$4$2=function(Mn,Fn,io){if(DESCRIPTORS$1$a){if(io)for(var fo in TypedArrayConstructorsList$2){var $o=global$4$a[fo];$o&&has$1$a($o.prototype,Mn)&&delete $o.prototype[Mn]}(!TypedArrayPrototype$1$2[Mn]||io)&&redefine$h(TypedArrayPrototype$1$2,Mn,io?Fn:NATIVE_ARRAY_BUFFER_VIEWS$2$2&&Int8ArrayPrototype$2[Mn]||Fn)}},exportTypedArrayStaticMethod$1$1=function(Mn,Fn,io){var fo,$o;if(DESCRIPTORS$1$a){if(setPrototypeOf$2$2){if(io)for(fo in TypedArrayConstructorsList$2)$o=global$4$a[fo],$o&&has$1$a($o,Mn)&&delete $o[Mn];if(!TypedArray$1$2[Mn]||io)try{return redefine$h(TypedArray$1$2,Mn,io?Fn:NATIVE_ARRAY_BUFFER_VIEWS$2$2&&Int8Array$3$2[Mn]||Fn)}catch{}else return}for(fo in TypedArrayConstructorsList$2)$o=global$4$a[fo],$o&&(!$o[Mn]||io)&&redefine$h($o,Mn,Fn)}};for(NAME$2 in TypedArrayConstructorsList$2)global$4$a[NAME$2]||(NATIVE_ARRAY_BUFFER_VIEWS$2$2=!1);if((!NATIVE_ARRAY_BUFFER_VIEWS$2$2||typeof TypedArray$1$2!="function"||TypedArray$1$2===Function.prototype)&&(TypedArray$1$2=function(){throw TypeError("Incorrect invocation")},NATIVE_ARRAY_BUFFER_VIEWS$2$2))for(NAME$2 in TypedArrayConstructorsList$2)global$4$a[NAME$2]&&setPrototypeOf$2$2(global$4$a[NAME$2],TypedArray$1$2);if((!NATIVE_ARRAY_BUFFER_VIEWS$2$2||!TypedArrayPrototype$1$2||TypedArrayPrototype$1$2===ObjectPrototype$9)&&(TypedArrayPrototype$1$2=TypedArray$1$2.prototype,NATIVE_ARRAY_BUFFER_VIEWS$2$2))for(NAME$2 in TypedArrayConstructorsList$2)global$4$a[NAME$2]&&setPrototypeOf$2$2(global$4$a[NAME$2].prototype,TypedArrayPrototype$1$2);NATIVE_ARRAY_BUFFER_VIEWS$2$2&&getPrototypeOf$a(Uint8ClampedArrayPrototype$2)!==TypedArrayPrototype$1$2&&setPrototypeOf$2$2(Uint8ClampedArrayPrototype$2,TypedArrayPrototype$1$2);if(DESCRIPTORS$1$a&&!has$1$a(TypedArrayPrototype$1$2,TO_STRING_TAG$a)){TYPED_ARRAY_TAG_REQIRED$2=!0,defineProperty$c(TypedArrayPrototype$1$2,TO_STRING_TAG$a,{get:function(){return isObject$3$a(this)?this[TYPED_ARRAY_TAG$1$2]:void 0}});for(NAME$2 in TypedArrayConstructorsList$2)global$4$a[NAME$2]&&createNonEnumerableProperty$1$a(global$4$a[NAME$2],TYPED_ARRAY_TAG$1$2,NAME$2)}var arrayBufferViewCore$2={NATIVE_ARRAY_BUFFER_VIEWS:NATIVE_ARRAY_BUFFER_VIEWS$2$2,TYPED_ARRAY_TAG:TYPED_ARRAY_TAG_REQIRED$2&&TYPED_ARRAY_TAG$1$2,aTypedArray:aTypedArray$4$2,aTypedArrayConstructor:aTypedArrayConstructor$2$2,exportTypedArrayMethod:exportTypedArrayMethod$4$2,exportTypedArrayStaticMethod:exportTypedArrayStaticMethod$1$1,isView:isView$2,isTypedArray:isTypedArray$1$2,TypedArray:TypedArray$1$2,TypedArrayPrototype:TypedArrayPrototype$1$2},global$3$a=global$n$1,fails$2$a=fails$h$2,checkCorrectnessOfIteration$7=checkCorrectnessOfIteration$2$2,NATIVE_ARRAY_BUFFER_VIEWS$1$2=arrayBufferViewCore$2.NATIVE_ARRAY_BUFFER_VIEWS,ArrayBuffer$2$2=global$3$a.ArrayBuffer,Int8Array$2$2=global$3$a.Int8Array,typedArrayConstructorsRequireWrappers$2=!NATIVE_ARRAY_BUFFER_VIEWS$1$2||!fails$2$a(function(){Int8Array$2$2(1)})||!fails$2$a(function(){new Int8Array$2$2(-1)})||!checkCorrectnessOfIteration$7(function(Mn){new Int8Array$2$2,new Int8Array$2$2(null),new Int8Array$2$2(1.5),new Int8Array$2$2(Mn)},!0)||fails$2$a(function(){return new Int8Array$2$2(new ArrayBuffer$2$2(2),1,void 0).length!==1}),toInteger$e=toInteger$5$2,toPositiveInteger$1$2=function(Mn){var Fn=toInteger$e(Mn);if(Fn<0)throw RangeError("The argument can't be less than 0");return Fn},toPositiveInteger$3=toPositiveInteger$1$2,toOffset$2$2=function(Mn,Fn){var io=toPositiveInteger$3(Mn);if(io%Fn)throw RangeError("Wrong offset");return io},toObject$2$5=toObject$7$2,toLength$3$5=toLength$b$2,getIteratorMethod$a=getIteratorMethod$2$2,isArrayIteratorMethod$8=isArrayIteratorMethod$2$2,bind$1$6=functionBindContext$6,aTypedArrayConstructor$1$2=arrayBufferViewCore$2.aTypedArrayConstructor,typedArrayFrom$2$1=function Mn(Fn){var io=toObject$2$5(Fn),fo=arguments.length,$o=fo>1?arguments[1]:void 0,mo=$o!==void 0,Ao=getIteratorMethod$a(io),jo,Lo,Ho,zo,Go,Vo;if(Ao!=null&&!isArrayIteratorMethod$8(Ao))for(Go=Ao.call(io),Vo=Go.next,io=[];!(zo=Vo.call(Go)).done;)io.push(zo.value);for(mo&&fo>2&&($o=bind$1$6($o,arguments[2],2)),Lo=toLength$3$5(io.length),Ho=new(aTypedArrayConstructor$1$2(this))(Lo),jo=0;Lo>jo;jo++)Ho[jo]=mo?$o(io[jo],jo):io[jo];return Ho},classof$1$7=classofRaw$1$6,isArray$1$3=Array.isArray||function Mn(Fn){return classof$1$7(Fn)=="Array"},isObject$2$a=isObject$c$2,isArray$4=isArray$1$3,wellKnownSymbol$n=wellKnownSymbol$h$2,SPECIES$9=wellKnownSymbol$n("species"),arraySpeciesCreate$1$3=function(Mn,Fn){var io;return isArray$4(Mn)&&(io=Mn.constructor,typeof io=="function"&&(io===Array||isArray$4(io.prototype))?io=void 0:isObject$2$a(io)&&(io=io[SPECIES$9],io===null&&(io=void 0))),new(io===void 0?Array:io)(Fn===0?0:Fn)},bind$a=functionBindContext$6,IndexedObject$b=indexedObject$9,toObject$1$9=toObject$7$2,toLength$2$7=toLength$b$2,arraySpeciesCreate$4=arraySpeciesCreate$1$3,push$2=[].push,createMethod$a=function(Mn){var Fn=Mn==1,io=Mn==2,fo=Mn==3,$o=Mn==4,mo=Mn==6,Ao=Mn==5||mo;return function(jo,Lo,Ho,zo){for(var Go=toObject$1$9(jo),Vo=IndexedObject$b(Go),Yo=bind$a(Lo,Ho,3),Xo=toLength$2$7(Vo.length),is=0,yl=zo||arraySpeciesCreate$4,us=Fn?yl(jo,Xo):io?yl(jo,0):void 0,hs,_l;Xo>is;is++)if((Ao||is in Vo)&&(hs=Vo[is],_l=Yo(hs,is,Go),Mn)){if(Fn)us[is]=_l;else if(_l)switch(Mn){case 3:return!0;case 5:return hs;case 6:return is;case 2:push$2.call(us,hs)}else if($o)return!1}return mo?-1:fo||$o?$o:us}},arrayIteration$2={forEach:createMethod$a(0),map:createMethod$a(1),filter:createMethod$a(2),some:createMethod$a(3),every:createMethod$a(4),find:createMethod$a(5),findIndex:createMethod$a(6)},isObject$1$a=isObject$c$2,setPrototypeOf$1$2=objectSetPrototypeOf$7,inheritIfRequired$1$2=function(Mn,Fn,io){var fo,$o;return setPrototypeOf$1$2&&typeof(fo=Fn.constructor)=="function"&&fo!==io&&isObject$1$a($o=fo.prototype)&&$o!==io.prototype&&setPrototypeOf$1$2(Mn,$o),Mn},$$f=_export$9,global$2$a=global$n$1,DESCRIPTORS$j=descriptors$a,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$1$1=typedArrayConstructorsRequireWrappers$2,ArrayBufferViewCore$4$2=arrayBufferViewCore$2,ArrayBufferModule$3=arrayBuffer$2,anInstance$9=anInstance$3$2,createPropertyDescriptor$e=createPropertyDescriptor$4$3,createNonEnumerableProperty$j=createNonEnumerableProperty$a$2,toLength$1$9=toLength$b$2,toIndex$4=toIndex$2$2,toOffset$1$2=toOffset$2$2,toPrimitive$d=toPrimitive$3$3,has$l=has$c$2,classof$g=classof$8$2,isObject$m=isObject$c$2,create$a=objectCreate$7,setPrototypeOf$b=objectSetPrototypeOf$7,getOwnPropertyNames$3=objectGetOwnPropertyNames$9.f,typedArrayFrom$1$2=typedArrayFrom$2$1,forEach$2=arrayIteration$2.forEach,setSpecies$7=setSpecies$2$2,definePropertyModule$f=objectDefineProperty$a,getOwnPropertyDescriptorModule$a=objectGetOwnPropertyDescriptor$9,InternalStateModule$e=internalState$a,inheritIfRequired$3=inheritIfRequired$1$2,getInternalState$d=InternalStateModule$e.get,setInternalState$b=InternalStateModule$e.set,nativeDefineProperty$b=definePropertyModule$f.f,nativeGetOwnPropertyDescriptor$a=getOwnPropertyDescriptorModule$a.f,round$2=Math.round,RangeError$1$2=global$2$a.RangeError,ArrayBuffer$1$2=ArrayBufferModule$3.ArrayBuffer,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(Mn,Fn){for(var io=0,fo=Fn.length,$o=new(aTypedArrayConstructor$4(Mn))(fo);fo>io;)$o[io]=Fn[io++];return $o},addGetter$3=function(Mn,Fn){nativeDefineProperty$b(Mn,Fn,{get:function(){return getInternalState$d(this)[Fn]}})},isArrayBuffer$2=function(Mn){var Fn;return Mn instanceof ArrayBuffer$1$2||(Fn=classof$g(Mn))=="ArrayBuffer"||Fn=="SharedArrayBuffer"},isTypedArrayIndex$2=function(Mn,Fn){return isTypedArray$3(Mn)&&typeof Fn!="symbol"&&Fn in Mn&&String(+Fn)==String(Fn)},wrappedGetOwnPropertyDescriptor$2=function Mn(Fn,io){return isTypedArrayIndex$2(Fn,io=toPrimitive$d(io,!0))?createPropertyDescriptor$e(2,Fn[io]):nativeGetOwnPropertyDescriptor$a(Fn,io)},wrappedDefineProperty$2=function Mn(Fn,io,fo){return isTypedArrayIndex$2(Fn,io=toPrimitive$d(io,!0))&&isObject$m(fo)&&has$l(fo,"value")&&!has$l(fo,"get")&&!has$l(fo,"set")&&!fo.configurable&&(!has$l(fo,"writable")||fo.writable)&&(!has$l(fo,"enumerable")||fo.enumerable)?(Fn[io]=fo.value,Fn):nativeDefineProperty$b(Fn,io,fo)};DESCRIPTORS$j?(NATIVE_ARRAY_BUFFER_VIEWS$4||(getOwnPropertyDescriptorModule$a.f=wrappedGetOwnPropertyDescriptor$2,definePropertyModule$f.f=wrappedDefineProperty$2,addGetter$3(TypedArrayPrototype$3,"buffer"),addGetter$3(TypedArrayPrototype$3,"byteOffset"),addGetter$3(TypedArrayPrototype$3,"byteLength"),addGetter$3(TypedArrayPrototype$3,"length")),$$f({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS$4},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor$2,defineProperty:wrappedDefineProperty$2}),typedArrayConstructor$2.exports=function(Mn,Fn,io){var fo=Mn.match(/\d+$/)[0]/8,$o=Mn+(io?"Clamped":"")+"Array",mo="get"+Mn,Ao="set"+Mn,jo=global$2$a[$o],Lo=jo,Ho=Lo&&Lo.prototype,zo={},Go=function(Xo,is){var yl=getInternalState$d(Xo);return yl.view[mo](is*fo+yl.byteOffset,!0)},Vo=function(Xo,is,yl){var us=getInternalState$d(Xo);io&&(yl=(yl=round$2(yl))<0?0:yl>255?255:yl&255),us.view[Ao](is*fo+us.byteOffset,yl,!0)},Yo=function(Xo,is){nativeDefineProperty$b(Xo,is,{get:function(){return Go(this,is)},set:function(yl){return Vo(this,is,yl)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS$4?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$1$1&&(Lo=Fn(function(Xo,is,yl,us){return anInstance$9(Xo,Lo,$o),inheritIfRequired$3(function(){return isObject$m(is)?isArrayBuffer$2(is)?us!==void 0?new jo(is,toOffset$1$2(yl,fo),us):yl!==void 0?new jo(is,toOffset$1$2(yl,fo)):new jo(is):isTypedArray$3(is)?fromList$2(Lo,is):typedArrayFrom$1$2.call(Lo,is):new jo(toIndex$4(is))}(),Xo,Lo)}),setPrototypeOf$b&&setPrototypeOf$b(Lo,TypedArray$3),forEach$2(getOwnPropertyNames$3(jo),function(Xo){Xo in Lo||createNonEnumerableProperty$j(Lo,Xo,jo[Xo])}),Lo.prototype=Ho):(Lo=Fn(function(Xo,is,yl,us){anInstance$9(Xo,Lo,$o);var hs=0,_l=0,xl,Il,Ol;if(!isObject$m(is))Ol=toIndex$4(is),Il=Ol*fo,xl=new ArrayBuffer$1$2(Il);else if(isArrayBuffer$2(is)){xl=is,_l=toOffset$1$2(yl,fo);var Tl=is.byteLength;if(us===void 0){if(Tl%fo||(Il=Tl-_l,Il<0))throw RangeError$1$2(WRONG_LENGTH$3)}else if(Il=toLength$1$9(us)*fo,Il+_l>Tl)throw RangeError$1$2(WRONG_LENGTH$3);Ol=Il/fo}else return isTypedArray$3(is)?fromList$2(Lo,is):typedArrayFrom$1$2.call(Lo,is);for(setInternalState$b(Xo,{buffer:xl,byteOffset:_l,byteLength:Il,length:Ol,view:new DataView$1$2(xl)});hs<Ol;)Yo(Xo,hs++)}),setPrototypeOf$b&&setPrototypeOf$b(Lo,TypedArray$3),Ho=Lo.prototype=create$a(TypedArrayPrototype$3)),Ho.constructor!==Lo&&createNonEnumerableProperty$j(Ho,"constructor",Lo),TYPED_ARRAY_TAG$3&&createNonEnumerableProperty$j(Ho,TYPED_ARRAY_TAG$3,$o),zo[$o]=Lo,$$f({global:!0,forced:Lo!=jo,sham:!NATIVE_ARRAY_BUFFER_VIEWS$4},zo),BYTES_PER_ELEMENT$2 in Lo||createNonEnumerableProperty$j(Lo,BYTES_PER_ELEMENT$2,fo),BYTES_PER_ELEMENT$2 in Ho||createNonEnumerableProperty$j(Ho,BYTES_PER_ELEMENT$2,fo),setSpecies$7($o)}):typedArrayConstructor$2.exports=function(){};var createTypedArrayConstructor$2=typedArrayConstructor$2.exports;createTypedArrayConstructor$2("Uint8",function(Mn){return function(io,fo,$o){return Mn(this,io,fo,$o)}});var ArrayBufferViewCore$3$2=arrayBufferViewCore$2,$fill$2=arrayFill$1$2,aTypedArray$3$2=ArrayBufferViewCore$3$2.aTypedArray,exportTypedArrayMethod$3$2=ArrayBufferViewCore$3$2.exportTypedArrayMethod;exportTypedArrayMethod$3$2("fill",function Mn(Fn){return $fill$2.apply(aTypedArray$3$2(this),arguments)});var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$3=typedArrayConstructorsRequireWrappers$2,exportTypedArrayStaticMethod$3=arrayBufferViewCore$2.exportTypedArrayStaticMethod,typedArrayFrom$4=typedArrayFrom$2$1;exportTypedArrayStaticMethod$3("from",typedArrayFrom$4,TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$3);var ArrayBufferViewCore$2$2=arrayBufferViewCore$2,toLength$i=toLength$b$2,toOffset$4=toOffset$2$2,toObject$f=toObject$7$2,fails$1$a=fails$h$2,aTypedArray$2$2=ArrayBufferViewCore$2$2.aTypedArray,exportTypedArrayMethod$2$2=ArrayBufferViewCore$2$2.exportTypedArrayMethod,FORCED$1$3=fails$1$a(function(){new Int8Array(1).set({})});exportTypedArrayMethod$2$2("set",function Mn(Fn){aTypedArray$2$2(this);var io=toOffset$4(arguments.length>1?arguments[1]:void 0,1),fo=this.length,$o=toObject$f(Fn),mo=toLength$i($o.length),Ao=0;if(mo+io>fo)throw RangeError("Wrong length");for(;Ao<mo;)this[io+Ao]=$o[Ao++]},FORCED$1$3);var ArrayBufferViewCore$1$2=arrayBufferViewCore$2,aTypedArray$1$2=ArrayBufferViewCore$1$2.aTypedArray,exportTypedArrayMethod$1$2=ArrayBufferViewCore$1$2.exportTypedArrayMethod,$sort$2=[].sort;exportTypedArrayMethod$1$2("sort",function Mn(Fn){return $sort$2.call(aTypedArray$1$2(this),Fn)});var global$1$a=global$n$1,ArrayBufferViewCore$6=arrayBufferViewCore$2,fails$n=fails$h$2,Int8Array$1$2=global$1$a.Int8Array,aTypedArray$6=ArrayBufferViewCore$6.aTypedArray,exportTypedArrayMethod$6=ArrayBufferViewCore$6.exportTypedArrayMethod,$toLocaleString$2=[].toLocaleString,$slice$2=[].slice,TO_LOCALE_STRING_BUG$2=!!Int8Array$1$2&&fails$n(function(){$toLocaleString$2.call(new Int8Array$1$2(1))}),FORCED$8=fails$n(function(){return[1,2].toLocaleString()!=new Int8Array$1$2([1,2]).toLocaleString()})||!fails$n(function(){Int8Array$1$2.prototype.toLocaleString.call([1,2])});exportTypedArrayMethod$6("toLocaleString",function Mn(){return $toLocaleString$2.apply(TO_LOCALE_STRING_BUG$2?$slice$2.call(aTypedArray$6(this)):aTypedArray$6(this),arguments)},FORCED$8);var modal$b={wallet:{connectYourWallet:"Connect Your Wallet",whatIsAWallet:"What is a Wallet?",secureAndManage:"Secure & Manage Your Digital Assets",safelyStore:"Safely store and transfer your crypto and NFTs.",logInToAny:"Log In to Any NEAR App",noNeedToCreate:"No need to create new accounts or credentials. Connect your wallet and you are good to go!",getAWallet:"Get a Wallet",useAWallet:"Use a wallet to secure and manage your NEAR assets, and to log in to any NEAR app without the need for usernames and passwords.",connectionFailed:"Connection Failed",connectionSuccessful:"Connection Successful",rememberWallet:"Remember wallets",connected:"Connected",connectingTo:"Connecting to",connectingMessage:{injected:"Confirm the connection in the extension window",browser:"Confirm the connection in the wallet after redirect",hardware:"Confirm the connection in the ledger device",bridge:"Confirm the connection in the wallet"}},ledger:{connectWithLedger:"Connect with Ledger",makeSureYourLedger:"Make sure your Ledger is connected securely, and that the NEAR app is open on your device",continue:"Continue",specifyHDPath:"Specify HD Path",enterYourPreferredHDPath:"Enter your preferred HD path, then scan for any active accounts.",scan:"Scan",retry:"Retry",ledgerIsNotAvailable:"Ledger is not available",accessDeniedToUseLedgerDevice:"Access denied to use Ledger device",noAccountsFound:"No Accounts Found",selectYourAccounts:"Select Your Accounts",connecting1Account:"Connecting 1 Account",cantFindAnyAccount:"Can't find any account associated with this Ledger. Please create a new NEAR account on",orConnectAnAnotherLedger:"or connect an another Ledger.",connecting:"Connecting",ofAccounts:"of Accounts",failedToAutomatically:"Failed to automatically find account id. Provide it manually:",overviewTheListOfAuthorized:"Overview the list of authorized account(s), complete sign in by clicking the button below.",finish:"Finish"},install:{youllNeedToInstall:"You'll need to install",toContinueAfterInstalling:"to continue. After installing",refreshThePage:"refresh the page.",open:"Open"},qr:{copiedToClipboard:"Copied to clipboard",failedToCopy:"Failed to copy to clipboard",scanWithYourMobile:"Scan with Your Mobile Device",copyToClipboard:" Copy to clipboard",preferTheOfficial:"Prefer the official dialogue of",open:"Open"},walletTypes:{hardware:"Hardware Wallet",browser:"Browser Wallet",injected:"Wallet Extension",bridge:"Bridge Wallet",mobile:"Mobile Wallet","instant-link":"Instant Wallet"},exportAccounts:{chooseAWallet:"Choose a Wallet",transferYourAccounts:"Transfer Your Accounts",selectAWallet:"Select a wallet that fits your needs and supports your connected accounts.",selectYourAccounts:"Select Your Accounts",afterDecide:"After you decide on a wallet, you can select which accounts you want to transfer.",disclaimer:"You won’t be able to transfer accounts that have never been funded or used on NEAR.",warning:"does not support account export at this time. Please select another wallet.",walletTypes:{hardware:"Hardware Wallet",browser:"Browser Wallet",injected:"Wallet Extension",bridge:"Bridge Wallet",mobile:"Mobile Wallet"},selectAccounts:{title:"Select Accounts to Transfer",button:"Continue",deselectAll:"Deselect All",selectAll:"Select All",unavailable:"Transfer Unavailable",error:"Account does not exist",warningLedger:"Ledger support required",noBalance:"Account not funded"},getPassphrase:{title:"Copy Temporary Password",desc:"You’ll need to enter this password when you begin exporting your accounts to a different wallet.",button:"Continue",transferButton:"Transfer Accounts",label:"Click to Copy",checkLabel:"I copied or wrote down the password"},complete:{title:"Complete the Transfer",descOne:"You will now be redirected to the wallet you selected to complete the transfer.",descTwo:"Once import part of process is completed from selected wallet, press button to complete the transfer process.",startOverButton:"Start Over",button:"Complete"}}},component$2={clickToCopy:{label:"Copied",tooltip:"Click to copy"}},en={modal:modal$b,component:component$2},modal$a={wallet:{connectYourWallet:"Conecta Tu Billetera",whatIsAWallet:"¿Que es una Billetera?",secureAndManage:"Resguarda y Administrar Tus Activos Digitales",safelyStore:"Almacena de forma segura y transfiere tus cryptos y NFT's",logInToAny:"Inicie sesión en Cualquier Aplicacion NEAR",noNeedToCreate:"No es necesario crear nuevas cuentas o credenciales, ¡Conecta tu billetera y listo!",getAWallet:"Obten una Billetera",useAWallet:"Usa tu Billetera para resguardar y administrar tus activos en NEAR, e Iniciar sesión en cualquier aplicacion NEAR sin la necesidad de nombres de usuarios y contraseñas",connectionFailed:"Conexión Fallida",connectionSuccessful:"Conexión Existosa",rememberWallet:"Recordar las carteras",connected:"Conectado",connectingTo:"Conectando a ",connectingMessage:{injected:"Confirme la conexión en la ventana de extensión",browser:"Confirme la conexión en la billetera después de la redirección",hardware:"Confirme la conexión en el dispositivo de libro mayor",bridge:"Confirmar la conexión en la billetera"}},ledger:{connectWithLedger:"Conectar con Ledger",makeSureYourLedger:"Asegúrese de que su ledger está conectada de forma segura y que la aplicacion NEAR esté abierta en su dispositivo",continue:"Continuar",specifyHDPath:"Especifique la ruta HD",enterYourPreferredHDPath:"Ingrese su ruta HD prerida,y luego busque cualquier cuenta activa.",scan:"Escanear",retry:"Reintentar",ledgerIsNotAvailable:"El Ledger no está disponible",accessDeniedToUseLedgerDevice:"Acceso denegado para usar el dispositivo ledger",noAccountsFound:"No se encontraron cuentas",selectYourAccounts:"Selecciona tus cuentas",connecting1Account:"Conectando a 1 cuenta",cantFindAnyAccount:"No se pudo encontrar ninguna cuenta asociada con este ledger,Por favor crea una nueva cuenta en NEAR",orConnectAnAnotherLedger:"o conecta otro ledger",connecting:"Conectando",ofAccounts:"de Cuentas",failedToAutomatically:"No se pudo encontrar automaticamente el id de la cuenta,Ingresalo manualmente:",overviewTheListOfAuthorized:"Revise la lista de las cuentas autorizadas,Complete el inicio de sesión haciedo click a countinuacion.",finish:"Finalizar"},install:{youllNeedToInstall:"Tendrás que instalar",toContinueAfterInstalling:"Para continuar, Despues de instalar",refreshThePage:"Recarga la pagina",open:"Abrir"},qr:{copiedToClipboard:"Copiado al Portapapeles",failedToCopy:"Falló la copia al Portapapeles",scanWithYourMobile:"Busca con tu dispositivo movil",copyToClipboard:" Copiar al Portapapeles",preferTheOfficial:"¿Prefires el diálogo oficial de",open:"Abrir"},walletTypes:{hardware:"Cartera de Hardware",browser:"Cartera de Navegador",injected:"Extensión de Cartera",bridge:"Cartera de Puente",mobile:"Cartera Móvil","instant-link":"Cartera Instantánea"}},es={modal:modal$a},modal$9={wallet:{connectYourWallet:"连接你的钱包",whatIsAWallet:"什么是钱包?",secureAndManage:"保护和管理你的数字资产",safelyStore:"安全存储和转移你的加密货币和NFT",logInToAny:"登录任何 NEAR 应用",noNeedToCreate:"不需要创建新账户或密码。连接你的钱包,即可开始使用!",getAWallet:"获取新账户",useAWallet:"使用钱包来保护和管理你的 NEAR 资产,无需用户名和密码即可登录任何 NEAR 应用",connectionFailed:"连接失败",connectionSuccessful:"连接成功",rememberWallet:"记住钱包选择",connected:"已连接",connectingTo:"正在连接"},ledger:{connectWithLedger:"连接 Ledger",makeSureYourLedger:"确保你的 Ledger 已经安全连接,并且 NEAR 应用已经在你设备上打开",continue:"继续",specifyHDPath:"指定 HD 路径",enterYourPreferredHDPath:"输入你偏好的 HD 路径,然后为任意活跃账户扫码",scan:"扫码",retry:"重试",ledgerIsNotAvailable:"Ledger 不可用",accessDeniedToUseLedgerDevice:"访问 Ledger 设备被拒绝",noAccountsFound:"没有找到账户",selectYourAccounts:"选择你的账户",connecting1Account:"正在连接1个账户",cantFindAnyAccount:"没有找到任何与这个 Ledger 相关联的账户。请创建新账户于","orConnectAnAnotherLedger.":"或连接另一个 Ledger",connecting:"正在连接",ofAccounts:"个账户",failedToAutomatically:"无法自动找到账户ID,请主动提供:",overviewTheListOfAuthorized:"请查看已授权的账户列表,点击以下按钮完成登录",finish:"完成"},install:{youllNeedToInstall:"你将需要安装",toContinueAfterInstalling:"以继续。安装完",refreshThePage:"请刷新页面",open:"打开"},qr:{copiedToClipboard:"复制到了剪贴板",failedToCopy:"复制到剪贴板失败",scanWithYourMobile:"用你的移动设备扫码",copyToClipboard:" 复制到剪贴板",preferTheOfficial:"希望使用官方对话框于",open:"打开"},walletTypes:{hardware:"硬件钱包",browser:"浏览器钱包",injected:"钱包扩展",bridge:"桥接钱包",mobile:"移动钱包","instant-link":"即时钱包"}},zh$1={modal:modal$9},modal$8={wallet:{connectYourWallet:"Свържете вашия Портфейл",whatIsAWallet:"Какво е Портфейл?",secureAndManage:"Защитете и управлявайте дигиталните си активи",safelyStore:"Съхранявайте и прехвърляйте безопасно вашите крипто и NFT.",logInToAny:"Използвайте всяко приложение на NEAR",noNeedToCreate:"Няма нужда да създавате нови профили. Свържете портфейла си и сте готови!",getAWallet:"Създайте Портфейл",useAWallet:"Използвайте портфейла, за да защитите и управлявате активите си на NEAR както и да използвате всяко приложение на NEAR без нужда от потребителски имена и пароли.",connectionFailed:"Свързването неуспешно",connectionSuccessful:"Свързването успешно",rememberWallet:"Запази портфейлите",connected:"Свързан",connectingTo:"Свързване към",connectingMessage:{injected:"Потвърдете свързването в прозореца на разширението",browser:"Потвърдете свързването в портфейла след пренасочването",hardware:"Потвърдете свързването в хардуерния портфейл",bridge:"Потвърдете връзката в портфейла"}},ledger:{connectWithLedger:"Свържете се с Ledger",makeSureYourLedger:"Уверете се, че вашият Ledger е свързан и че приложението NEAR е отворено нa него.",continue:"Продължете",specifyHDPath:"Посочете HD път",enterYourPreferredHDPath:"Въведете предпочитания HD път, след което сканирайте за активни акаунти.",scan:"Сканирайте",retry:"Опитайте отново",ledgerIsNotAvailable:"Ledger устройството не е достъпно",accessDeniedToUseLedgerDevice:"Достъпът за използване на Ledger е отказан",noAccountsFound:"Няма намерени профили",selectYourAccounts:"Изберете вашите профили",connecting1Account:"Свързване на 1 профил",cantFindAnyAccount:"Няма намерени профили, съврзани с този Ledger. Моля, създайте нов NEAR профил на",orConnectAnAnotherLedger:"или свържете друг Ledger.",connecting:"Свързване",ofAccounts:"от профили",failedToAutomatically:"Автоматичното намиране на профила не бе успешно. Въведете го ръчно:",overviewTheListOfAuthorized:"Прегледайте списъка с упълномощени профили, завършете влизането, като щракнете върху бутона по-долу..",finish:"Завършете"},install:{youllNeedToInstall:"Ще трябва да инсталирате",toContinueAfterInstalling:"за да продължите. След инсталиране",refreshThePage:"презаредете страницата.",open:"Отворете"},qr:{copiedToClipboard:"Копирано в клипборда",failedToCopy:"Неуспешно копиране в клипборда",scanWithYourMobile:" Сканирайте с мобилното си устройство",copyToClipboard:" Копирайте в клипборда",preferTheOfficial:"Предпочитан език за кореспонденция",open:"Отворете"},walletTypes:{hardware:"Хардуерен портфейл",browser:"Портфейл в браузъра",injected:"Разширение на портфейл",bridge:"Мостов портфейл",mobile:"Мобилен портфейл","instant-link":"Мигновен портфейл"}},bg$1={modal:modal$8},modal$7={wallet:{connectYourWallet:"지갑 연결하기",whatIsAWallet:"지갑은 무슨 역할을 하나요?",secureAndManage:"당신의 디지털 자산을 보호하고 관리합니다.",safelyStore:"암호화폐와 NFT를 안전하게 저장하고 전송할 수 있습니다.",logInToAny:"NEAR App에 로그인합니다.",noNeedToCreate:"새로운 계정이나 비밀번호를 만들 필요 없이 지갑을 연결한 후 바로 사용할 수 있습니다.",getAWallet:"지갑 가져오기",useAWallet:"지갑을 사용하여 NEAR 자산을 보호·관리하고, 아이디와 비밀번호 없이 NEAR 앱에 로그인할 수 있습니다.",connectionFailed:"연결 실패",connectionSuccessful:"연결 성공",rememberWallet:"지갑들 기억하기",connected:"Connected",connectingTo:"연결 중: ",connectingMessage:{injected:"익스텐션 창에서 연결을 확인하세요",browser:"리다이렉트 된 지갑에서 연결을 확인하세요",hardware:"Ledger 기기에서 연결을 확인하세요",bridge:"지갑에서 연결 확인"}},ledger:{connectWithLedger:"Ledger 연결하기",makeSureYourLedger:"Ledger가 안전하게 연결되어 있고, NEAR 앱이 열려 있는 지 확인하세요",continue:"계속하기",specifyHDPath:"HD Path 지정하기",enterYourPreferredHDPath:"원하는 HD Path를 선택하고, 활성화된 계정이 있는 지 검색하세요",scan:"검색",retry:"다시 시도",ledgerIsNotAvailable:"Ledger를 사용할 수 없습니다",accessDeniedToUseLedgerDevice:"Ledger 기기 접근 권한이 거부되었습니다",noAccountsFound:"계정을 찾을 수 없습니다",selectYourAccounts:"계정 선택하기",connecting1Account:"하나의 계정에 연결",cantFindAnyAccount:"Ledger와 연결된 계정을 찾을 수 없습니다. 새로운 계정을 생성하거나 ",orConnectAnAnotherLedger:"다른 Ledger를 연결하세요",connecting:"계정 연결하기: ",ofAccounts:"개 계정을 찾았습니다",failedToAutomatically:"계정 ID를 찾지 못했습니다. 수동으로 입력해주세요.",overviewTheListOfAuthorized:"인증된 계정 목록을 확인한 후 아래 버튼을 클릭하여 로그인을 완료하세요",finish:"완료"},walletTypes:{hardware:"하드웨어 지갑",browser:"브라우저 지갑",injected:"지갑 확장",bridge:"브리지 지갑",mobile:"모바일 지갑","instant-link":"인스턴트 지갑"},install:{youllNeedToInstall:"다음 확장 프로그램을 설치해주세요:",toContinueAfterInstalling:". 설치 완료 후 페이지 새로 고침이 필요합니다. ",refreshThePage:"새로 고침",open:"Open"},qr:{copiedToClipboard:"클립보드에 복사 완료",failedToCopy:"클립보드에 복사 실패",scanWithYourMobile:"모바일 장치를 사용하여 스캔해주세요",copyToClipboard:" 클립보드에 복사하기",preferTheOfficial:"다음 프로그램에서 제공하는 공식 프로세스를 선호하십니까: ",open:"Open"}},ko={modal:modal$7},modal$6={wallet:{connectYourWallet:"Kết nối ví của bạn",whatIsAWallet:"Ví là gì?",secureAndManage:"Bảo mật & Quản lý tài sản số của bạn",safelyStore:"Lưu trữ và chuyển tiền điện tử và NFT của bạn một cách an toàn.",logInToAny:"Đăng nhập vào bất kỳ ứng dụng trên NEAR",noNeedToCreate:"Không cần tạo tài khoản hoặc thông tin đăng nhập mới. Kết nối ví của bạn và bắt đầu!",getAWallet:"Tạo Ví",useAWallet:"Sử dụng ví để bảo mật và quản lý tài sản trên NEAR của bạn và đăng nhập vào bất kỳ ứng dụng NEAR nào, không cần tên người dùng và mật khẩu.",connectionFailed:"Kết nối thất bại",connectionSuccessful:"Kết nối thành công",rememberWallet:"Ghi nhớ lựa chọn ví",connected:"Đã kết nối",connectingTo:"Đang kết nối tới",connectingMessage:{injected:"Xác nhận kết nối trong cửa sổ tiện ích mở rộng",browser:"Xác nhận kết nối trong ví sau khi được chuyển hướng",hardware:"Xác nhận kết nối với ví lạnh",bridge:"Xác nhận kết nối trong ví"}},ledger:{connectWithLedger:"Kết nối ví Ledger",makeSureYourLedger:"Đảm bảo Ledger của bạn được kết nối an toàn và ứng dụng NEAR đang mở sẵn trên thiết bị",continue:"Tiếp tục",specifyHDPath:"Chỉ định HD Path",enterYourPreferredHDPath:"Nhập HD Path của bạn, sau đó quét tìm các tài khoản hoạt động",scan:"Quét",retry:"Thử lại",ledgerIsNotAvailable:"Ledger không khả dụng",accessDeniedToUseLedgerDevice:"Truy cập Ledger bị từ chối",noAccountsFound:"Không tìm thấy tài khoản",selectYourAccounts:"Chọn tài khoản của bạn",connecting1Account:"Đang kết nối 1 tài khoản",cantFindAnyAccount:"Không thể tìm thấy bất kỳ tài khoản nào được liên kết với Ledger này. Vui lòng tạo một tài khoản NEAR mới",orConnectAnAnotherLedger:"hoặc kết nối với ví Ledger khác.",connecting:"Đang kết nối",ofAccounts:"của tài khoản",failedToAutomatically:"Không thể tự động tìm id tài khoản. Nhập thủ công:",overviewTheListOfAuthorized:"Tổng quan danh sách các tài khoản được ủy quyền, hoàn tất đăng nhập bằng cách bấm vào nút bên dưới.",finish:"Hoàn thành"},install:{youllNeedToInstall:"Bạn sẽ cần cài đặt",toContinueAfterInstalling:"để bắt đầu. Sau khi cài đặt xong",refreshThePage:"Tải lại trang.",open:"Mở"},qr:{copiedToClipboard:"Đã sao chép vào bảng ghi tạm",failedToCopy:"Sao chép vào bảng ghi tạm thất bại",scanWithYourMobile:"Quét với điện thoại của bạn",copyToClipboard:" Sao chép vào bảng ghi tạm",preferTheOfficial:"Dialogue chính thức của",open:"Mở"},walletTypes:{hardware:"Ví lạnh",browser:"Ví trình duyệt",injected:"Ví tiện ích mở rộng",bridge:"Ví Cầu",mobile:"Ví Mobile","instant-link":"Ví tức thì"},exportAccounts:{chooseAWallet:"Chọn ví",transferYourAccounts:"Chuyển tài khoản",selectAWallet:"Chọn ví phù hợp với nhu cầu của bạn, ví được chọn cần hỗ trợ các tài khoản đang sử dụng.",selectYourAccounts:"Chọn tài khoản",afterDecide:"Sau khi chọn được tài khoản bạn có chuyển.",disclaimer:"Bạn không thể chuyển tài khoản nếu tài khoản đó chưa được nhận tiền hoặc chưa phát sinh giao dịch trên NEAR.",warning:"không hỗ trợ xuất tài khoản. Vui lòng chọn ví khác.",walletTypes:{hardware:"Ví lạnh",browser:"Ví trình duyệt",injected:"Ví tiện ích mở rộng",bridge:"Ví Cầu",mobile:"Ví Mobile"},selectAccounts:{title:"Chọn tài khoản để chuyển",button:"Lấy cụm mật khẩu",deselectAll:"Bỏ chọn tất cả",selectAll:"Chọn tất cả",unavailable:"Chuyển không khả dụng",error:"Tài khoản không tồn tại",warningLedger:"Yêu cầu hỗ trợ Ledger",noBalance:"Tài khoản trống"},getPassphrase:{title:"Sao chép mật khẩu tạm thời",desc:"Bạn sẽ cần nhập mật khẩu khi bắt đầu xuất các khoản tới ví khác.",button:"Tiếp tục",label:"Bấm để sao chép",checkLabel:"Tôi đã chép hoặc ghi lại mật khẩu"},complete:{title:"Hoàn thành chuyển",descOne:"Bạn sẽ được chuyển hướng tới tài khoản đã chọn để hoàn tất quá trình.",descTwo:"Sau khi nhập, nhấn nút để hoàn tất quy trình chuyển.",button:"Hoàn thành"}}},component$1={clickToCopy:{label:"Đã sao chép",tooltip:"Bấm để sao chép"}},vi$1={modal:modal$6,component:component$1},modal$5={wallet:{connectYourWallet:"अपना वॉलेट (Wallet) कनेक्ट करें।",whatIsAWallet:"वॉलेट क्या है?",secureAndManage:"सुरक्षित और प्रबंधित करें।",safelyStore:"अपनी क्रिप्टोकरेंसी और एनएफटी को सुरक्षित रूप से स्टोर और ट्रांसफर करें।",logInToAny:"NEAR पर किसी भी ऐप में साइन इन करें।",noNeedToCreate:"नए खाते या लॉगिन बनाने की आवश्यकता नहीं है। अपना वॉलेट(NEAR Wallet)कनेक्ट करें और आरंभ करें।",getAWallet:"एक वॉलेट बनाएँ।",useAWallet:"अपनी NEAR संपत्तियों को सुरक्षित और प्रबंधित करने के लिए वॉलेट का उपयोग करें और किसी भी NEAR ऐप (app) में लॉग इन करें, किसी उपयोगकर्ता (user) नाम और पासवर्ड की आवश्यकता नहीं है।",connectionFailed:"कनेक्शन विफल|",connectionSuccessful:"कनेक्शन सफल|",rememberWallet:"वॉलेटों को याद रखें",connected:"वॉलेट जुड़ गया|",connectingTo:"वॉलेट जुड़ रहा हे|",connectingMessage:{injected:"एक्सटेंशन विंडो में कनेक्शन की पुष्टि करें|",browser:"रीडायरेक्ट होने के बाद वॉलेट में कनेक्शन की पुष्टि करें|",hardware:"कोल्ड वॉलेट के साथ कनेक्शन की पुष्टि करें|"}},ledger:{connectWithLedger:"लेजर(Ledger)वॉलेट कनेक्ट करें|",makeSureYourLedger:"सुनिश्चित करें कि आपका लेजर सुरक्षित रूप से जुड़ा हुआ है और NEAR ऐप आपके डिवाइस (Device)पर पहले से ही खुला है|",continue:"जारी रखे|",specifyHDPath:"हार्ड डिस्क(Hard Disk)पथ(Path)निर्धारित करे|",enterYourPreferredHDPath:"अपना एचडी पथ दर्ज करें, फिर सक्रिय खातों के लिए स्कैन करें|",scan:"स्कैन करे|",retry:"दोबारा प्रयास करे|",ledgerIsNotAvailable:"लेजर उपलब्ध नहीं है|",accessDeniedToUseLedgerDevice:"लेजर डिवाइस का उपयोग करने के लिए प्रवेश निषेध|",noAccountsFound:"खाता नहीं मिला|",selectYourAccounts:"अपने खाते चुनें|",connecting1Account:"एक खाता कनेक्ट हो रहा है|",cantFindAnyAccount:"इस लेजर से जुड़ा कोई खाता नहीं मिला। कृपया एक नया NEAR खाता बनाएँ|",orConnectAnAnotherLedger:"अथवा दूसरे लेजर वॉलेट से कनेक्ट करें।",connecting:"जुड़ रहा हे|",ofAccounts:"खाता अब जुड़ा नहीं हे|",failedToAutomatically:"खाता आईडी स्वचालित रूप से खोजने में असमर्थ। मैन्युअल (Manuall) रूप से कोशिश करें|",overviewTheListOfAuthorized:"अवलोकन अधिकृत की सूची, नीचे दिए गए बटन पर क्लिक करके लॉगिन पूरा करें।",finish:"समाप्त|"},install:{youllNeedToInstall:"आपको इंस्टॉल करना होगा|",toContinueAfterInstalling:"इंस्टॉल करने के बाद जारी रखे|",refreshThePage:"पुन: लोड करें।",open:"खोले|"},qr:{copiedToClipboard:"क्लिपबोर्ड(Clipboard)पर कॉपी किया गया|",failedToCopy:"क्लिपबोर्ड पर कॉपी करना विफल रहा|",scanWithYourMobile:"अपने फोन (Mobile)से स्कैन करें|",copyToClipboard:" क्लिपबोर्ड पर कॉपी करें|",preferTheOfficial:"आधिकारिक संवाद को प्राथमिकता दें|",open:"खोले|"},walletTypes:{hardware:"हार्डवेयर वॉलेट",browser:"ब्राउज़र वॉलेट",injected:"वॉलेट एक्सटेंशन",bridge:"ब्रिज वॉलेट",mobile:"मोबाइल वॉलेट","instant-link":"इंस्टेंट वॉलेट"}},hi$1={modal:modal$5},modal$4={wallet:{connectYourWallet:"صل محفظتك",whatIsAWallet:"ما هي المحفظة؟",secureAndManage:"تأمين وإدارة الممتلكات الرقمية الخاصة بك",safelyStore:"قم بتخزين و ارسال عملاتك و أصولك الرقمية بأمان",logInToAny:"سجل الدخول إلى أي تطبيق يستخدم نير",noNeedToCreate:".لا داعي لإنشاء حساب جديد. فقط قم بتوصيل محفظتك وانطلق",getAWallet:"احصل على محفظة",useAWallet:"استخدم محفظة لتأمين وإدارة أصول نير الخاصة بك، وادخل لأي تطبيق يستخدم نير دون الحاجة إلى اسم المستخدم وكلمةالمرور",connectionFailed:"اتصال فاشل",connectionSuccessful:"اتصال ناجح",rememberWallet:"تذكر المحافظ",connected:"متصل",connectingTo:"جاري الاتصال ب",connectingMessage:{injected:"وافق على الاتصال في نافذة الإضافة",browser:"وافق على الاتصال في المحفظة بعد إعادة توجيه",hardware:"وافق على الاتصال في جهاز ليدجر",bridge:"وافق على الاتصال في المحفظة"}},ledger:{connectWithLedger:"اتصل مع ليدجر",makeSureYourLedger:"تأكد أن ليدجر متصل بأمان, و أن تطبيق نير مفتوح في جهازك",continue:"تابع",specifyHDPath:"حدد مسار الحساب",enterYourPreferredHDPath:"أدخل مسار الحساب المفضل، ثم ابحث عن كل الحسابات النشطة",scan:"مسح",retry:"أعد المحاولة",ledgerIsNotAvailable:"ليدجر غير متوفر",accessDeniedToUseLedgerDevice:"تم رفض الاتصال بليدجر",noAccountsFound:"لم يتم العثور على أي حسابات",selectYourAccounts:"حدد حساباتك",connecting1Account:"جاري الاتصال بحساب واحد",cantFindAnyAccount:"لا يمكن العثور على أي حساب مرتبط بهذا ليدجر الرجاء إنشاء حساب نير جديد على",orConnectAnAnotherLedger:"او اربط جهاز ليدجر آخر",connecting:"جاري الاتصال",ofAccounts:"من الحسابات",failedToAutomatically:"فشل في الاتصال بالحساب تلقائيا. يرجى الاتصال بالحساب يدويا",overviewTheListOfAuthorized:"لائحة الحسابات المصرح بها, أكمل تسجيل الدخول بالنقر على الزر أدناه",finish:"إنهاء"},install:{youllNeedToInstall:"ستحتاج لتثبيت",toContinueAfterInstalling:"للاستكمال. بعد التثبيت",refreshThePage:"قم بتحديث الصفحة",open:"افتح"},qr:{copiedToClipboard:"تم النسخ",failedToCopy:"فشل النسخ",scanWithYourMobile:"امسح بجهازك المحمول",copyToClipboard:"نسخ",preferTheOfficial:"تفضل الحوار الرسمي ل",open:"فتح"},walletTypes:{hardware:"محفظة الأجهزة",browser:"محفظة المتصفح",injected:"ملحق المحفظة",bridge:"محفظة الجسر",mobile:"محفظة الجوال","instant-link":"محفظة الرابط الفوري"},exportAccounts:{afterDecide:"بعد اتخاذ قرار بشأن محفظة، يمكنك اختيار الحسابات التي تريد نقلها.",chooseAWallet:"اختر محفظة",disclaimer:"لن تتمكن من نقل الحسابات التي لم يتم تمويلها أو استخدامها على NEAR.",selectAWallet:"اختر محفظة تناسب احتياجاتك وتدعم حساباتك المتصلة.",selectYourAccounts:"حدد حساباتك",transferYourAccounts:"نقل حساباتك",warning:"لا تدعم تصدير الحسابات في الوقت الحالي. يرجى اختيار محفظة أخرى.",complete:{button:"أكمل",descOne:"سيتم توجيهك الآن إلى المحفظة التي اخترتها لإكمال النقل.",descTwo:"بمجرد إكمال جزء الاستيراد من العملية من المحفظة المحددة، اضغط على الزر لإكمال عملية النقل.",startOverButton:"ابدأ من جديد",title:"أكمل النقل"},getPassphrase:{button:"تابع",checkLabel:"لقد قمت بنسخ أو كتابة كلمة المرور",desc:"ستحتاج إلى إدخال هذه الكلمة السرية عند بدء تصدير حساباتك إلى محفظة مختلفة.",label:"انقر لنسخ",title:"انسخ كلمة المرور المؤقتة",transferButton:"نقل الحسابات"},selectAccounts:{button:"تابع",deselectAll:"إلغاء تحديد الكل",error:"الحساب غير موجود",noBalance:"الحساب غير ممول",selectAll:"تحديد الكل",title:"حدد الحسابات لنقلها",unavailable:"النقل غير متاح",warningLedger:"دعم Ledger مطلوب"},walletTypes:{bridge:"محفظة الجسر",browser:"محفظة المتصفح",hardware:"محفظة الأجهزة",injected:"ملحق المحفظة",mobile:"محفظة الجوال"}}},component={clickToCopy:{label:"تم النسخ",tooltip:"انقر لنسخ"}},ar={modal:modal$4,component},modal$3={wallet:{connectYourWallet:"Spojite crypto novčanik!",whatIsAWallet:"Što je to crypto novčanik?",secureAndManage:"Osigurajte i upravljajte svojom digitalnom imovinom.",safelyStore:"Sigurno pohranite i prebacite svoj crypto i NFT-eve.",logInToAny:" Prijavite se u bilo koju NEAR aplikaciju",noNeedToCreate:"Nema potrebe za stvaranjem novih naloga ili korisničkih podataka. Spojite svoj crypto novčanik i spremni ste!",getAWallet:"Otvorite crypto novčanik",useAWallet:"Koristite crypto novčanik da biste osigurali i upravljali svojom NEAR imovinom, te se prijavite u bilo koju NEAR aplikaciju bez korisničkog imena i lozinke.",connectionFailed:"Neuspješno povezivanje.",connectionSuccessful:"Uspješno povezivanje.",rememberWallet:"Zapamti novčanike",connected:"Povezano.",connectingTo:"Povezivanje u tijeku",connectingMessage:{injected:"Potvrdite vezu u eksternom prozoru",browser:"Nakon redirekcije, potvrdite vezu u novčaniku",hardware:"Potvrdite vezu sa novčanikom",bridge:"Potvrdite vezu u novčaniku"}},ledger:{connectWithLedger:"Povežite se hardverskim novčanikom",makeSureYourLedger:"Osigurajte sigurnu vezu s hardverskim novčanikom, te da je NEAR aplikacija otvorena na vašem uređaju",continue:"Nastavite",specifyHDPath:"Specificirajte HD putanju",enterYourPreferredHDPath:"Upišite preferiranu HD putanju, zatim skenirajte aktivne naloge",scan:"Skenirajte",retry:"Pokušajte ponovno",ledgerIsNotAvailable:"Hardverski novčanik nije dostupan.",accessDeniedToUseLedgerDevice:"Odbijen pristup za korištenjem hardverskog novčanika",noAccountsFound:"Nalozi nisu pronađeni",selectYourAccounts:"Odaberite svoje naloge",connecting1Account:"Povezivanje 1 naloga",cantFindAnyAccount:"Nije moguće pronaći niti jedan nalog povezan s ovim hardverskim novčanikom. Molimo vas, kreirajte novi NEAR nalog",orConnectAnAnotherLedger:"Ili povežite drugi hardverski novčanik.",connecting:"Povezivanje",ofAccounts:"naloga",failedToAutomatically:"Neuspješno automatsko pronalaženje ID naloga. Unesite ručno:",overviewTheListOfAuthorized:"Pregledajte popis odobrenih naloga, završite prijavu pritiskom na niže prikazani gumb.",finish:"Završite"},install:{youllNeedToInstall:" Potrebno je instalirati modal",toContinueAfterInstalling:"za nastavak. Nakon instalacije",refreshThePage:"osvježite stranicu.",open:"Otvorite QR modal"},qr:{copiedToClipboard:"Kopirano u međuspremnik",failedToCopy:"Neupsješno kopiranje u međuspremnik",scanWithYourMobile:"Skenirajte svojim mobilnim uređajem",copyToClipboard:" Kopirajte u međuspremnik",preferTheOfficial:"Odaberite službeni dijalog",open:"Otvorite"},walletTypes:{hardware:"Hardware Wallet",browser:"Browser Wallet",injected:"Wallet Extension",bridge:"Bridge Wallet",mobile:"Mobile Wallet","instant-link":"Instant Wallet"},exportAccounts:{chooseAWallet:"Odaberi Wallet",transferYourAccounts:"Prenesi svoje naloge",selectAWallet:"Odaberite wallet koji odgovara vašim potrebama i podržava vaše povezane naloge.",selectYourAccounts:"Odaberi svoje naloge",afterDecide:"Nakon što odlučite koji wallet koristite, možete odabrati koje račune želite prebaciti.",disclaimer:"Nećete moći prebaciti naloge koji nisu nikada bili korišteni na NEAR-u.",warning:"ne podržava izvoz naloga u ovom trenutku. Molimo odaberite drugi wallet.",walletTypes:{hardware:"Hardware Wallet",browser:"Browser Wallet",injected:"Wallet Extension",bridge:"Bridge Wallet",mobile:"Mobile Wallet"},selectAccounts:{title:"Odaberi naloge za prijenos",button:"Generiraj lozinku",deselectAll:"Makni odabir sa svih",selectAll:"Odaberi sve",unavailable:"Prijenos nije dostupan",error:"Nalog ne postoji",warningLedger:"Potrebna ledger podrška",noBalance:"Nalog nema sredstava"},getPassphrase:{title:"Kopiraj privremenu lozinku",desc:"Bit će potrebno unijeti ovu lozinku na početku izvoza naloga na drugi wallet.",button:"Nastavi",label:"Klikni za kopiju",checkLabel:"Kopirao sam ili zapisao lozinku"},complete:{title:"Završi prijenos",descOne:"You will now be redirected to the wallet you selected to complete the transfer.",descTwo:"Kada je unos s odabranog walleta završen, pritisnite gumb da biste završili prijenos.",button:"Završi"}}},hr={modal:modal$3},modal$2={wallet:{connectYourWallet:"Поврзете го вашиот новчаник!",whatIsAWallet:"Што е новчаник?",secureAndManage:"Заштитете ги и управувајте со вашите дигитални средства.",safelyStore:"Безбедно складирајте и извршувајте трансакции со вашите крипто и NFT.",logInToAny:"Најавете се на која било NEAR апликација",noNeedToCreate:"Нема потреба да креирате нови сметки или ингеренции. Поврзете го вашиот паричник и сте подготвени!",getAWallet:"Направете новчаник",useAWallet:"Користете паричник за да ги заштитите и управувате вашите NEAR средства и да се најавите на која било NEAR апликација без потреба од кориснички имиња и лозинки.",connectionFailed:"Поврзувањето не беше успешно.",connectionSuccessful:"Успешно поврзување.",rememberWallet:"Запомни паричници",connected:"Поврзано.",connectingTo:"Поврзување со",connectingMessage:{injected:"Потврдете го поврзувањето во екстерниот прозорец",browser:"По преусмерувањето, потврдете го поврзувањето од новчаниокт",hardware:"Потврдете го поврзувањето со ладен новчаник",bridge:"Потврдете ја врската во новчаникот"}},ledger:{connectWithLedger:"Поврзете се со Леџер",makeSureYourLedger:"Осигурајте се дека вашиот Леџер е поврзан безбедно, и дека NEAR апликацијата е отворена на вашиот уред",continue:"Продолжете",specifyHDPath:"Наведете ХД локација",enterYourPreferredHDPath:"Внесете ја вашата преферирана ХД локација, а потоа скенирајте да ги најдете активните сметки.",scan:"Скенирајте",retry:"Обидете се повторно",ledgerIsNotAvailable:"Леџерот не е достапен.",accessDeniedToUseLedgerDevice:"Пристапот за користење на Леџер уред е одбиен",noAccountsFound:"Нема најдени сметки",selectYourAccounts:"Изберете ги вашите сметки",connecting1Account:"Поврзување на една сметка",cantFindAnyAccount:"Не се најдени сметки поврзани со овој Леџер. Ве молиме креирајте нова NEAR сметка ",orConnectAnAnotherLedger:"или поврзете друг Леџер.",connecting:"Поврзување",ofAccounts:"на сметки",failedToAutomatically:"Неуспешно автоматско барање на ИД на сметката. Внесете го рачно:",overviewTheListOfAuthorized:"Преглед на листата на овластени сметки, завршете се најавата со кликнување на копчето подолу.",finish:"Завршете"},install:{youllNeedToInstall:"Треба да инсталирате",toContinueAfterInstalling:"за да продолжите. По инсталирањето",refreshThePage:"Освежете ја страната.",open:"Отворете"},qr:{copiedToClipboard:"Копирано на клипбордот",failedToCopy:"Неуспешно копирање на клипборд",scanWithYourMobile:"Скенирајте со вашиот телефонски уред",copyToClipboard:"Копирајте на клипборд",preferTheOfficial:"Преферирајте официјален диалог на",open:"Отворете"},walletTypes:{hardware:"Хардверски новчаник",browser:"Новчаник на интернет прелистувач",injected:"Екстензија за новчаник",bridge:"Bridge новчаник",mobile:"Мобилен новчаник","instant-link":"Инстант паричник"},exportAccounts:{chooseAWallet:"Одберете паричник",transferYourAccounts:"Префрлете ги вашите кориснички сметки",selectAWallet:"Изберетен новчаник кој ги задоволува вашите баранња и ги поддржува вашите поврзани кориснички сметки.",selectYourAccounts:"Изберете ги вашите кориснички сметки",afterDecide:"Одкако ќе изберете новчаник, можете да изберете кои кориснички сметки сакате да ги префрлите.",disclaimer:"Не можете да прфрлате кориснички сметки кои никогаш не биле надополнати или користени на NEAR.",warning:"не поддржува извезување на кориснички сметки во овој момент. Ве молиме изберете друг новчаник.",walletTypes:{hardware:"Хардверски новчаник",browser:"Новчаник на интернет прелистувач",injected:"Екстензија за новчаник",bridge:"Bridge новчаник",mobile:"Мобилен новчаник"},selectAccounts:{title:"Изберете ги корисничките сметки за да ги префрлите.",button:"Добијте лозинка",deselectAll:"Отселектирајте се",selectAll:"Изберете се",unavailable:"Трансферот е недостапен",error:"Корисничката сметка не постои",warningLedger:"Потребна е поддршка од Леџер",noBalance:"Сметката не е финансирана"},getPassphrase:{title:"Копирајте ја привремената лозинка",desc:"Ќе треба да ја внесете оваа лозинка кога ќе започнете да ги извезувате вашите сметки на друг новчаник.",button:"Продолжете",label:"Кликнете за да копирате",checkLabel:"Ја копирав или запишав лозинката"},complete:{title:"Завршете го преносот",descOne:"Сега ќе бидете пренасочени на избраниот новчаник за завршување на преносот.",descTwo:"Откако ќе заврши увозот од избраниот новчаник, притиснете го копчето за да го завршите преносот.",button:"Завршете"}}},mk$1={modal:modal$2},modal$1={wallet:{connectYourWallet:"Povežite svojo denarnico!",whatIsAWallet:"Kaj je denarnica?",secureAndManage:"Zavarujte in upravljajte svoja digitalna sredstva.",safelyStore:"Varno shranjujte in prenašajte svoje kriptovalute in NFTje.",logInToAny:"Prijavite se v katero koli aplikacijo na NEAR",noNeedToCreate:"Ni vam treba ustvarjati novih računov. Povežite svojo denarnico in začnite!",getAWallet:"Ustvarite denarnico",useAWallet:"Uporabite denarnico, da bi zavarovali in upravljali s svoja NEAR digitalna sredstva, in se prijavite v katero koli aplikacijo ekosistema NEAR",connectionFailed:"Povezava ni bila uspešna.",connectionSuccessful:"Povezava je bila uspešna.",rememberWallet:"Zapomni si denarnice",connected:"Vaša denarnica je povezana.",connectingTo:"Povezovanje z",connectingMessage:{injected:"Potrdite povezavo v oknu razširitve",browser:"Po preusmeritvi potrdite povezavo v denarnici",hardware:"Potrdite povezavo s hladno denarnico",bridge:"Potrdite povezavo v denarnici"}},ledger:{connectWithLedger:"Povežite se z Ledger",makeSureYourLedger:"Prepričajte se, da je vaš Ledger varno povezan in da je aplikacija NEAR odprta v vaši napravi",continue:"Nadaljuj",specifyHDPath:"Določite HD pot",enterYourPreferredHDPath:"Vnesite želeno HD pot, nato poiščite vse aktivne račune.",scan:"Skenirajte",retry:"Poskusite znova",ledgerIsNotAvailable:"Ledger ni na voljo",accessDeniedToUseLedgerDevice:"Dostop za uporabo naprave Ledger zavrnjen",noAccountsFound:"Ni najdenih računov",selectYourAccounts:"Izberite Vaši računi",connecting1Account:"Povezovanje enega računa",cantFindAnyAccount:"Ni mogoče najti nobenega računa, povezanega s tem Ledgerjem. Ustvarite nov NEAR račun ",orConnectAnAnotherLedger:"ali povežite drug Ledger..",connecting:"Povezovanje",ofAccounts:"računov",failedToAutomatically:"ID-ja računa ni bilo mogoče samodejno najti. Zagotovite ga ročno:",overviewTheListOfAuthorized:"Oglejte si seznam pooblaščenih računov, dokončajte prijavo s klikom na spodnji gumb.",finish:"Končajte"},install:{youllNeedToInstall:"Morali ga boste namestiti",toContinueAfterInstalling:"nadaljevati. Po namestitvi",refreshThePage:"Osvežite stran.",open:"Odprite"},qr:{copiedToClipboard:"Kopirano v podložni mapi",failedToCopy:"Kopiranje v podložni mapi ni uspelo",scanWithYourMobile:"Skenirajte s svojo mobilno napravo",copyToClipboard:" Kopirajte v podložni mapi",preferTheOfficial:"Preferirajte uradno pogovorno okno",open:"Odprite"},walletTypes:{hardware:"Hladna denarnica",browser:"Denarnica brskalnika",injected:"Razširitev za denarnico",bridge:"Bridge denarnica",mobile:"Mobilna denarnica","instant-link":"Takojšnja denarnica"},exportAccounts:{chooseAWallet:"Izberite denarnico",transferYourAccounts:"Prenesite svoje račune",selectAWallet:"Izberite denarnico, ki ustreza vašim potrebam in podpira vaše povezane račune.",selectYourAccounts:"Izberite vaši računi",afterDecide:"Ko se odločite za denarnico, lahko izberete, katere račune želite prenesti.",disclaimer:"Ne boste mogli prenesti Računov, ki nikoli niso bili financirani ali uporabljeni na NEAR.",warning:"trenutno ne podpira izvoza računa. Izberite drugo denarnico",walletTypes:{hardware:"Hladna denarnica",browser:"Denarnica brskalnika",injected:"Razširitev za denarnico",bridge:"Bridge denarnica",mobile:"Mobilna denarnica"},selectAccounts:{title:"Izberite računi za prenos.",button:"Pridobite geslo",deselectAll:"Prekliči izbiro vseh",selectAll:"Izberi vse",unavailable:"Prenos ni na voljo",error:"Račun ne obstaja",warningLedger:"Potrebna je podpora za Ledger",noBalance:"Račun ni financiran"},getPassphrase:{title:"Kopiraj začasno geslo",desc:"To geslo boste morali vnesti, ko boste začeli izvažati svoje račune v drugo denarnico.",button:"Nadaljujte",label:"Kliknite za kopiranje",checkLabel:"Geslo sem kopiral ali zapisal"},complete:{title:"Dokončajte prenos",descOne:"Zdaj boste preusmerjeni v denarnico, ki ste jo izbrali za dokončanje prenosa.",descTwo:"Ko je uvozni del postopka končan iz izbrane denarnice, pritisnite gumb za dokončanje postopka prenosa.",button:"Končajte"}}},sl$1={modal:modal$1},modal={wallet:{connectYourWallet:"Повежите свој новчаник!",whatIsAWallet:"Шта је новчаник?",secureAndManage:"Обезбедите и управљајте својом дигиталном имовином.",safelyStore:"Безбедно чувајте и преносите своје криптовалуте и NFT.",logInToAny:"Пријавите се на било коју апликацију NEAR",noNeedToCreate:"Нема потребе да креирате нове налоге или акредитиве. Повежите новчаник и спремни стe!",getAWallet:"Набавите новчаник",useAWallet:"Користите новчаник да обезбедите и управљате својим NEAR средствима и да се пријавите у било коју апликацију NEAR без потребе за корисничким именима и лозинкама.",connectionFailed:"Веза није успостављена.",connectionSuccessful:"Веза је успела.",rememberWallet:"Запамти новчанике",connected:"Повезан.",connectingTo:"Повезивање на",connectingMessage:{injected:"Потврдите везу у спољном прозору",browser:"Након преусмеравања, потврдите везу у новчанику",hardware:"Потврдите везу са хладним новчаником",bridge:"Потврдите везу са новчаником"}},ledger:{connectWithLedger:"Повежите се са Ledger",makeSureYourLedger:"Уверите се да је ваш Ledger безбедно повезан и да је апликација NEAR отворена на вашем уређају",continue:"Настави",specifyHDPath:"Наведите ХД путању",enterYourPreferredHDPath:"Унесите жељену жељену ХД путању, а затим скенирајте све активне налоге.",scan:"Скенирајте",retry:"Покушај поново",ledgerIsNotAvailable:"Ledger није доступан.",accessDeniedToUseLedgerDevice:"Приступ је одбијен за коришћење Ledger уређаја",noAccountsFound:"Наlози нису пронађени",selectYourAccounts:"Изаберите Ваш наlог",connecting1Account:"Повезати 1 наlог",cantFindAnyAccount:"Није могуће пронаћи ниједан наlог повезан са овим Ledger-ом. Направите нови NEAR наlог",orConnectAnAnotherLedger:"или повежите други Ledger.",connecting:"Повезивање",ofAccounts:"наlога",failedToAutomatically:"Аутоматско проналажење ID-a наlога није успело. Наведите га ручно:",overviewTheListOfAuthorized:"Прегледајте листу овлашћених рачуна, завршите пријаву кликом на дугме испод.",finish:"Заврши"},install:{youllNeedToInstall:"Мораћете да инсталирате",toContinueAfterInstalling:"за наставак. Након инсталирања",refreshThePage:"поново учитати страницу.",open:"Отвори"},qr:{copiedToClipboard:"Копирано у међуспремник",failedToCopy:"Копирање у међуспремник није успело",scanWithYourMobile:"Скенирајте помоћу мобилног уређаја",copyToClipboard:" Копирај у међуспремник",preferTheOfficial:"Преферирате званични дијалог од",open:"Отвори"},walletTypes:{hardware:"Хардверски новчаник",browser:"Новчаник претраживача,",injected:"Додатак за новчаник,",bridge:"Bridge новчаник",mobile:"Мобилни новчаник","instant-link":"Инстант новчаник"},exportAccounts:{chooseAWallet:"Изаберите новчаник",transferYourAccounts:"Пренесите своје налоге",selectAWallet:"Изаберите новчаник који одговара вашим потребама и који подржава ваше повезане налоге.",selectYourAccounts:"Изаберите ваше налоге",afterDecide:"Након што се одлучите за новчаник, можете изабрати које налоге желите да пренесете.",disclaimer:"Нећете моћи да пренесете налоге који никада нису били финансирани или коришћени на NEAR.",warning:"тренутно не подржава извоз налога. Изаберите други новчаник.",walletTypes:{hardware:"Хардверски новчаник",browser:"Новчаник претраживача,",injected:"Додатак за новчаник,",bridge:"Bridge новчаник",mobile:"Мобилни новчаник"},selectAccounts:{title:"Изаберите налоге за пренос.",button:"Добијте приступну фразу",deselectAll:"Поништите избор",selectAll:"Изаберите све",unavailable:"Трансфер није доступан",error:"Налог не постоји",warningLedger:"Потребна подршка за Ledger",noBalance:"Налог није финансиран"},getPassphrase:{title:"Копирај привремену лозинку",desc:"Мораћете да унесете ову лозинку када почнете да извозите своје налоге у други новчаник.",button:"Наставите",label:"Кликните да бисте копирали",checkLabel:"Копирао сам или записао лозинку"},complete:{title:"Довршите трансфер",descOne:"Сада ћете бити преусмерени на новчаник који сте изабрали да завршите трансфер.",descTwo:"Када се део процеса увоза заврши из изабраног новчаника, притисните дугме да завршите процес преноса.",button:"Завршите"}}},sr={modal};const getLanguage=Mn=>{switch(Mn){case"en":return en;case"es":return es;case"zh":return zh$1;case"bg":return bg$1;case"ko":return ko;case"vi":return vi$1;case"hi":return hi$1;case"ar":return ar;case"hr":return hr;case"mk":return mk$1;case"sl":return sl$1;case"sr":return sr;default:return en}};let chosenLang;const allowOnlyLanguage=Mn=>{chosenLang=Mn},shortenLanguageCode=Mn=>Mn.indexOf("-")!==-1?Mn.split("-")[0]:Mn.split("_")[0],findObjectPropByStringPath=(Mn,Fn)=>{if(!Mn)return"";const io=Fn.indexOf(".");if(io>-1){const fo=Fn.substring(0,io),$o=Fn.substring(io+1);return findObjectPropByStringPath(Mn[fo],$o)}return Mn[Fn]},translate=Mn=>{let Fn=window.navigator.languages?window.navigator.languages[0]:null;Fn=Fn||window.navigator.language;const io=shortenLanguageCode(chosenLang||Fn),fo=getLanguage(io),$o=findObjectPropByStringPath(fo,Mn);return $o&&typeof $o=="string"?$o:Mn};var browserIndex$2={},browserIndex$1={},keystore$1={},lib$8={},in_memory_key_store$1={},lib$7={},constants$4={};(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.KeySize=Mn.KeyType=void 0,function(Fn){Fn[Fn.ED25519=0]="ED25519"}(Mn.KeyType||(Mn.KeyType={})),function(Fn){Fn[Fn.SECRET_KEY=32]="SECRET_KEY"}(Mn.KeySize||(Mn.KeySize={}))})(constants$4);var key_pair$1={},key_pair_base={};Object.defineProperty(key_pair_base,"__esModule",{value:!0});key_pair_base.KeyPairBase=void 0;class KeyPairBase{}key_pair_base.KeyPairBase=KeyPairBase;var key_pair_ed25519={},lib$6={},constants$3={};Object.defineProperty(constants$3,"__esModule",{value:!0});constants$3.DEFAULT_FUNCTION_CALL_GAS=void 0;constants$3.DEFAULT_FUNCTION_CALL_GAS=BigInt("30000000000000");var errors$3={},errors$2={},logger$2={},logger$1={},console_logger={};Object.defineProperty(console_logger,"__esModule",{value:!0});console_logger.ConsoleLogger=void 0;class ConsoleLogger{constructor(Fn){this.logLevels=Fn,this.isLevelEnabled=io=>this.logLevels.includes(io)}print(Fn,io,...fo){switch(Fn){case"error":case"fatal":return console.error(io,...fo);case"warn":return console.warn(io,...fo);case"log":return console.log(io,...fo);case"debug":case"verbose":return console.debug(io,...fo)}}verbose(Fn,...io){this.isLevelEnabled("verbose")&&this.print("verbose",Fn,...io)}debug(Fn,...io){this.isLevelEnabled("debug")&&this.print("debug",Fn,...io)}log(Fn,...io){this.isLevelEnabled("log")&&this.print("log",Fn,...io)}warn(Fn,...io){this.isLevelEnabled("warn")&&this.print("warn",Fn,...io)}error(Fn,...io){this.isLevelEnabled("error")&&this.print("error",Fn,...io)}fatal(Fn,...io){this.isLevelEnabled("fatal")&&this.print("fatal",Fn,...io)}}console_logger.ConsoleLogger=ConsoleLogger;var define_process_env_default$1={},_a;Object.defineProperty(logger$1,"__esModule",{value:!0});logger$1.Logger=void 0;const console_logger_1=console_logger,DEFAULT_LOG_LEVELS=["verbose","debug","log","warn","error","fatal"],DEFAULT_LOGGER=typeof process$1$7=="object"&&define_process_env_default$1.NEAR_NO_LOGS?void 0:new console_logger_1.ConsoleLogger(DEFAULT_LOG_LEVELS);class Logger{static error(Fn,...io){var fo;(fo=this.instanceRef)===null||fo===void 0||fo.error(Fn,...io)}static log(Fn,...io){var fo;(fo=this.instanceRef)===null||fo===void 0||fo.log(Fn,...io)}static warn(Fn,...io){var fo;(fo=this.instanceRef)===null||fo===void 0||fo.warn(Fn,...io)}static debug(Fn,...io){var fo,$o;($o=(fo=this.instanceRef)===null||fo===void 0?void 0:fo.debug)===null||$o===void 0||$o.call(fo,Fn,...io)}static verbose(Fn,...io){var fo,$o;($o=(fo=this.instanceRef)===null||fo===void 0?void 0:fo.verbose)===null||$o===void 0||$o.call(fo,Fn,...io)}static fatal(Fn,...io){var fo,$o;($o=(fo=this.instanceRef)===null||fo===void 0?void 0:fo.fatal)===null||$o===void 0||$o.call(fo,Fn,...io)}}logger$1.Logger=Logger;_a=Logger;Logger.instanceRef=DEFAULT_LOGGER;Logger.overrideLogger=Mn=>{_a.instanceRef=Mn};(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.Logger=void 0;var Fn=logger$1;Object.defineProperty(Mn,"Logger",{enumerable:!0,get:function(){return Fn.Logger}})})(logger$2);Object.defineProperty(errors$2,"__esModule",{value:!0});errors$2.logWarning=void 0;const logger_1$1=logger$2;function logWarning(...Mn){const[Fn,...io]=Mn;logger_1$1.Logger.warn(Fn,...io)}errors$2.logWarning=logWarning;var rpc_errors$1={},format$2={};(function(Mn){var Fn=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(Yo){return Yo&&Yo.__esModule?Yo:{default:Yo}};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.baseDecode=Mn.baseEncode=Mn.parseNearAmount=Mn.formatNearAmount=Mn.NEAR_NOMINATION=Mn.NEAR_NOMINATION_EXP=void 0;const io=Fn(bs58$3);Mn.NEAR_NOMINATION_EXP=24,Mn.NEAR_NOMINATION=BigInt(10)**BigInt(Mn.NEAR_NOMINATION_EXP);const fo=[],$o=BigInt(10);for(let Yo=0,Xo=BigInt(5);Yo<Mn.NEAR_NOMINATION_EXP;Yo++,Xo=Xo*$o)fo[Yo]=Xo;function mo(Yo,Xo=Mn.NEAR_NOMINATION_EXP){let is=BigInt(Yo);if(Xo!==Mn.NEAR_NOMINATION_EXP){const hs=Mn.NEAR_NOMINATION_EXP-Xo-1;hs>0&&(is+=fo[hs])}Yo=is.toString();const yl=Yo.substring(0,Yo.length-Mn.NEAR_NOMINATION_EXP)||"0",us=Yo.substring(Yo.length-Mn.NEAR_NOMINATION_EXP).padStart(Mn.NEAR_NOMINATION_EXP,"0").substring(0,Xo);return Lo(`${zo(yl)}.${us}`)}Mn.formatNearAmount=mo;function Ao(Yo){if(!Yo)return null;Yo=jo(Yo);const Xo=Yo.split("."),is=Xo[0],yl=Xo[1]||"";if(Xo.length>2||yl.length>Mn.NEAR_NOMINATION_EXP)throw new Error(`Cannot parse '${Yo}' as NEAR amount`);return Ho(is+yl.padEnd(Mn.NEAR_NOMINATION_EXP,"0"))}Mn.parseNearAmount=Ao;function jo(Yo){return Yo.replace(/,/g,"").trim()}function Lo(Yo){return Yo.replace(/\.?0*$/,"")}function Ho(Yo){return Yo=Yo.replace(/^0+/,""),Yo===""?"0":Yo}function zo(Yo){const Xo=/(-?\d+)(\d{3})/;for(;Xo.test(Yo);)Yo=Yo.replace(Xo,"$1,$2");return Yo}function Go(Yo){if(typeof Yo=="string"){const Xo=[];for(let is=0;is<Yo.length;is++)Xo.push(Yo.charCodeAt(is));Yo=new Uint8Array(Xo)}return io.default.encode(Yo)}Mn.baseEncode=Go;function Vo(Yo){return new Uint8Array(io.default.decode(Yo))}Mn.baseDecode=Vo})(format$2);const 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",AccessKeyDoesNotExist="Can't complete the action because access key {{public_key}} 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$$3={GasLimitExceeded,MethodEmptyName,WasmerCompileError,GuestPanic,Memory,GasExceeded,MethodUTF8Error,BadUTF16,WasmTrap,GasInstrumentation,InvalidPromiseIndex,InvalidPromiseResultIndex,Deserialization,MethodNotFound,InvalidRegisterId,InvalidReceiptIndex,EmptyMethodName,CannotReturnJointPromise,StackHeightInstrumentation,CodeDoesNotExist,MethodInvalidSignature,IntegerOverflow,MemoryAccessViolation,InvalidIteratorIndex,IteratorWasInvalidated,InvalidAccountId,Serialization,CannotAppendActionToJointPromise,InternalMemoryDeclared,Instantiate,ProhibitedInView,InvalidMethodName,BadUTF8,BalanceExceeded,LinkError,InvalidPublicKey,ActorNoPermission,LackBalanceForState,ReceiverMismatch,CostOverflow,InvalidSignature,AccessKeyNotFound,NotEnoughBalance,NotEnoughAllowance,Expired,DeleteAccountStaking,SignerDoesNotExist,TriesToStake,AddKeyAlreadyExists,InvalidSigner,CreateAccountNotAllowed,RequiresFullAccess,TriesToUnstake,InvalidNonce,AccountAlreadyExists,InvalidChain,AccountDoesNotExist,AccessKeyDoesNotExist,MethodNameMismatch,DeleteAccountHasRent,DeleteAccountHasEnoughBalance,InvalidReceiver,DeleteKeyDoesNotExist,Timeout,Closed},schema$1={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","DeleteAccountWithLargeState","DelegateActionInvalidSignature","DelegateActionSenderDoesNotMatchTxReceiver","DelegateActionExpired","DelegateActionAccessKeyError","DelegateActionInvalidNonce","DelegateActionNonceTooLarge"],props:{index:""}},ActionsValidationError:{name:"ActionsValidationError",subtypes:["DeleteActionMustBeFinal","TotalPrepaidGasExceeded","TotalNumberOfActionsExceeded","AddKeyMethodNamesNumberOfBytesExceeded","AddKeyMethodNameLengthExceeded","IntegerOverflow","InvalidAccountId","ContractSizeExceeded","FunctionCallMethodNameLengthExceeded","FunctionCallArgumentsLengthExceeded","UnsuitableStakingKey","FunctionCallZeroAttachedGas","DelegateActionMustBeOnlyOne","UnsupportedProtocolFeature"],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:""}},AltBn128InvalidInput:{name:"AltBn128InvalidInput",subtypes:[],props:{msg:""}},BadUTF16:{name:"BadUTF16",subtypes:[],props:{}},BadUTF8:{name:"BadUTF8",subtypes:[],props:{}},BalanceExceeded:{name:"BalanceExceeded",subtypes:[],props:{}},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:""}},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:""}},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:""}},DelegateActionExpired:{name:"DelegateActionExpired",subtypes:[],props:{}},DelegateActionInvalidNonce:{name:"DelegateActionInvalidNonce",subtypes:[],props:{ak_nonce:"",delegate_nonce:""}},DelegateActionInvalidSignature:{name:"DelegateActionInvalidSignature",subtypes:[],props:{}},DelegateActionMustBeOnlyOne:{name:"DelegateActionMustBeOnlyOne",subtypes:[],props:{}},DelegateActionNonceTooLarge:{name:"DelegateActionNonceTooLarge",subtypes:[],props:{delegate_nonce:"",upper_bound:""}},DelegateActionSenderDoesNotMatchTxReceiver:{name:"DelegateActionSenderDoesNotMatchTxReceiver",subtypes:[],props:{receiver_id:"",sender_id:""}},DeleteAccountStaking:{name:"DeleteAccountStaking",subtypes:[],props:{account_id:""}},DeleteAccountWithLargeState:{name:"DeleteAccountWithLargeState",subtypes:[],props:{account_id:""}},DeleteActionMustBeFinal:{name:"DeleteActionMustBeFinal",subtypes:[],props:{}},DeleteKeyDoesNotExist:{name:"DeleteKeyDoesNotExist",subtypes:[],props:{account_id:"",public_key:""}},DepositWithFunctionCall:{name:"DepositWithFunctionCall",subtypes:[],props:{}},Deprecated:{name:"Deprecated",subtypes:[],props:{method_name:""}},Deserialization:{name:"Deserialization",subtypes:[],props:{}},ECRecoverError:{name:"ECRecoverError",subtypes:[],props:{msg:""}},Ed25519VerifyInvalidInput:{name:"Ed25519VerifyInvalidInput",subtypes:[],props:{msg:""}},EmptyMethodName:{name:"EmptyMethodName",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:{}},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","ECRecoverError","AltBn128InvalidInput","Ed25519VerifyInvalidInput"],props:{}},IllegalArithmetic:{name:"IllegalArithmetic",subtypes:[],props:{}},IncorrectCallIndirectSignature:{name:"IncorrectCallIndirectSignature",subtypes:[],props:{}},IndirectCallToNull:{name:"IndirectCallToNull",subtypes:[],props:{}},Instantiate:{name:"Instantiate",subtypes:[],props:{}},InsufficientStake:{name:"InsufficientStake",subtypes:[],props:{account_id:"",minimum_stake:"",stake:""}},IntegerOverflow:{name:"IntegerOverflow",subtypes:[],props:{}},InternalMemoryDeclared:{name:"InternalMemoryDeclared",subtypes:[],props:{}},InvalidAccessKeyError:{name:"InvalidAccessKeyError",subtypes:["AccessKeyNotFound","ReceiverMismatch","MethodNameMismatch","RequiresFullAccess","NotEnoughAllowance","DepositWithFunctionCall"],props:{}},InvalidAccountId:{name:"InvalidAccountId",subtypes:[],props:{}},InvalidChain:{name:"InvalidChain",subtypes:[],props:{}},InvalidDataReceiverId:{name:"InvalidDataReceiverId",subtypes:[],props:{account_id:""}},InvalidIteratorIndex:{name:"InvalidIteratorIndex",subtypes:[],props:{iterator_index:""}},InvalidMethodName:{name:"InvalidMethodName",subtypes:[],props:{}},InvalidNonce:{name:"InvalidNonce",subtypes:[],props:{ak_nonce:"",tx_nonce:""}},InvalidPredecessorId:{name:"InvalidPredecessorId",subtypes:[],props:{account_id:""}},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:""}},InvalidReceiverId:{name:"InvalidReceiverId",subtypes:[],props:{account_id:""}},InvalidRegisterId:{name:"InvalidRegisterId",subtypes:[],props:{register_id:""}},InvalidSignature:{name:"InvalidSignature",subtypes:[],props:{}},InvalidSignerId:{name:"InvalidSignerId",subtypes:[],props:{account_id:""}},InvalidTxError:{name:"InvalidTxError",subtypes:["InvalidAccessKeyError","InvalidSignerId","SignerDoesNotExist","InvalidNonce","NonceTooLarge","InvalidReceiverId","InvalidSignature","NotEnoughBalance","LackBalanceForState","CostOverflow","InvalidChain","Expired","ActionsValidation","TransactionSizeExceeded"],props:{}},IteratorWasInvalidated:{name:"IteratorWasInvalidated",subtypes:[],props:{iterator_index:""}},KeyLengthExceeded:{name:"KeyLengthExceeded",subtypes:[],props:{length:"",limit:""}},LackBalanceForState:{name:"LackBalanceForState",subtypes:[],props:{account_id:"",amount:""}},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:{}},MethodNameMismatch:{name:"MethodNameMismatch",subtypes:[],props:{method_name:""}},MethodNotFound:{name:"MethodNotFound",subtypes:[],props:{}},MethodResolveError:{name:"MethodResolveError",subtypes:["MethodEmptyName","MethodNotFound","MethodInvalidSignature"],props:{}},MisalignedAtomicAccess:{name:"MisalignedAtomicAccess",subtypes:[],props:{}},NonceTooLarge:{name:"NonceTooLarge",subtypes:[],props:{tx_nonce:"",upper_bound:""}},NotEnoughAllowance:{name:"NotEnoughAllowance",subtypes:[],props:{account_id:"",allowance:"",cost:"",public_key:""}},NotEnoughBalance:{name:"NotEnoughBalance",subtypes:[],props:{balance:"",cost:"",signer_id:""}},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:""}},OnlyImplicitAccountCreationAllowed:{name:"OnlyImplicitAccountCreationAllowed",subtypes:[],props:{account_id:""}},PrepareError:{name:"PrepareError",subtypes:["Serialization","Deserialization","InternalMemoryDeclared","GasInstrumentation","StackHeightInstrumentation","Instantiate","Memory","TooManyFunctions","TooManyLocals"],props:{}},ProhibitedInView:{name:"ProhibitedInView",subtypes:[],props:{method_name:""}},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:{}},ReturnedValueLengthExceeded:{name:"ReturnedValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},Serialization:{name:"Serialization",subtypes:[],props:{}},SignerDoesNotExist:{name:"SignerDoesNotExist",subtypes:[],props:{signer_id:""}},StackHeightInstrumentation:{name:"StackHeightInstrumentation",subtypes:[],props:{}},StackOverflow:{name:"StackOverflow",subtypes:[],props:{}},TooManyFunctions:{name:"TooManyFunctions",subtypes:[],props:{}},TooManyLocals:{name:"TooManyLocals",subtypes:[],props:{}},TotalLogLengthExceeded:{name:"TotalLogLengthExceeded",subtypes:[],props:{length:"",limit:""}},TotalNumberOfActionsExceeded:{name:"TotalNumberOfActionsExceeded",subtypes:[],props:{limit:"",total_number_of_actions:""}},TotalPrepaidGasExceeded:{name:"TotalPrepaidGasExceeded",subtypes:[],props:{limit:"",total_prepaid_gas:""}},TransactionSizeExceeded:{name:"TransactionSizeExceeded",subtypes:[],props:{limit:"",size:""}},TriesToStake:{name:"TriesToStake",subtypes:[],props:{account_id:"",balance:"",locked:"",stake:""}},TriesToUnstake:{name:"TriesToUnstake",subtypes:[],props:{account_id:""}},TxExecutionError:{name:"TxExecutionError",subtypes:["ActionError","InvalidTxError"],props:{}},Unreachable:{name:"Unreachable",subtypes:[],props:{}},UnsuitableStakingKey:{name:"UnsuitableStakingKey",subtypes:[],props:{public_key:""}},UnsupportedProtocolFeature:{name:"UnsupportedProtocolFeature",subtypes:[],props:{protocol_feature:"",version:""}},ValueLengthExceeded:{name:"ValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},WasmTrap:{name:"WasmTrap",subtypes:["Unreachable","IncorrectCallIndirectSignature","MemoryOutOfBounds","CallIndirectOOB","IllegalArithmetic","MisalignedAtomicAccess","IndirectCallToNull","StackOverflow","GenericTrap"],props:{}},WasmerCompileError:{name:"WasmerCompileError",subtypes:[],props:{msg:""}},Closed:{name:"Closed",subtypes:[],props:{}},ServerError:{name:"ServerError",subtypes:["TxExecutionError","Timeout","Closed"],props:{}},Timeout:{name:"Timeout",subtypes:[],props:{}}},require$$4={schema:schema$1};var __importDefault$8=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(Mn){return Mn&&Mn.__esModule?Mn:{default:Mn}};Object.defineProperty(rpc_errors$1,"__esModule",{value:!0});rpc_errors$1.getErrorTypeFromErrorMessage=rpc_errors$1.formatError=rpc_errors$1.parseResultError=rpc_errors$1.parseRpcError=rpc_errors$1.ServerError=void 0;const types_1$h=lib$i,mustache_1=__importDefault$8(mustacheExports),format_1=format$2,error_messages_json_1=__importDefault$8(require$$3),rpc_error_schema_json_1=__importDefault$8(require$$4),mustacheHelpers={formatNear:()=>(Mn,Fn)=>(0,format_1.formatNearAmount)(Fn(Mn))};class ServerError extends types_1$h.TypedError{}rpc_errors$1.ServerError=ServerError;class ServerTransactionError extends ServerError{}function parseRpcError(Mn){const Fn={},io=walkSubtype(Mn,rpc_error_schema_json_1.default.schema,Fn,""),fo=new ServerError(formatError(io,Fn),io);return Object.assign(fo,Fn),fo}rpc_errors$1.parseRpcError=parseRpcError;function parseResultError(Mn){const Fn=parseRpcError(Mn.status.Failure),io=new ServerTransactionError;return Object.assign(io,Fn),io.type=Fn.type,io.message=Fn.message,io.transaction_outcome=Mn.transaction_outcome,io}rpc_errors$1.parseResultError=parseResultError;function formatError(Mn,Fn){return typeof error_messages_json_1.default[Mn]=="string"?mustache_1.default.render(error_messages_json_1.default[Mn],Object.assign(Object.assign({},Fn),mustacheHelpers)):JSON.stringify(Fn)}rpc_errors$1.formatError=formatError;function walkSubtype(Mn,Fn,io,fo){let $o,mo,Ao;for(const jo in Fn){if(isString(Mn[jo]))return Mn[jo];if(isObject$l(Mn[jo]))$o=Mn[jo],mo=Fn[jo],Ao=jo;else if(isObject$l(Mn.kind)&&isObject$l(Mn.kind[jo]))$o=Mn.kind[jo],mo=Fn[jo],Ao=jo;else continue}if($o&&mo){for(const jo of Object.keys(mo.props))io[jo]=$o[jo];return walkSubtype($o,Fn,io,Ao)}else return io.kind=Mn,fo}function getErrorTypeFromErrorMessage(Mn,Fn){switch(!0){case/^account .*? does not exist while viewing$/.test(Mn):return"AccountDoesNotExist";case/^Account .*? doesn't exist$/.test(Mn):return"AccountDoesNotExist";case/^access key .*? does not exist while viewing$/.test(Mn):return"AccessKeyDoesNotExist";case/wasm execution failed with error: FunctionCallError\(CompilationError\(CodeDoesNotExist/.test(Mn):return"CodeDoesNotExist";case/wasm execution failed with error: CompilationError\(CodeDoesNotExist/.test(Mn):return"CodeDoesNotExist";case/wasm execution failed with error: FunctionCallError\(MethodResolveError\(MethodNotFound/.test(Mn):return"MethodNotFound";case/wasm execution failed with error: MethodResolveError\(MethodNotFound/.test(Mn):return"MethodNotFound";case/Transaction nonce \d+ must be larger than nonce of the used access key \d+/.test(Mn):return"InvalidNonce";default:return Fn}}rpc_errors$1.getErrorTypeFromErrorMessage=getErrorTypeFromErrorMessage;function isObject$l(Mn){return Object.prototype.toString.call(Mn)==="[object Object]"}function isString(Mn){return Object.prototype.toString.call(Mn)==="[object String]"}(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.parseRpcError=Mn.parseResultError=Mn.getErrorTypeFromErrorMessage=Mn.formatError=Mn.ServerError=Mn.logWarning=void 0;var Fn=errors$2;Object.defineProperty(Mn,"logWarning",{enumerable:!0,get:function(){return Fn.logWarning}});var io=rpc_errors$1;Object.defineProperty(Mn,"ServerError",{enumerable:!0,get:function(){return io.ServerError}}),Object.defineProperty(Mn,"formatError",{enumerable:!0,get:function(){return io.formatError}}),Object.defineProperty(Mn,"getErrorTypeFromErrorMessage",{enumerable:!0,get:function(){return io.getErrorTypeFromErrorMessage}}),Object.defineProperty(Mn,"parseResultError",{enumerable:!0,get:function(){return io.parseResultError}}),Object.defineProperty(Mn,"parseRpcError",{enumerable:!0,get:function(){return io.parseRpcError}})})(errors$3);var logging={};Object.defineProperty(logging,"__esModule",{value:!0});logging.printTxOutcomeLogs=logging.printTxOutcomeLogsAndFailures=void 0;const errors_1$1=errors$3,logger_1=logger$2;function printTxOutcomeLogsAndFailures({contractId:Mn,outcome:Fn}){const io=[Fn.transaction_outcome,...Fn.receipts_outcome].reduce((fo,$o)=>{const mo=typeof $o.outcome.status=="object"&&typeof $o.outcome.status.Failure=="object";return $o.outcome.logs.length||mo?fo.concat({receiptIds:$o.outcome.receipt_ids,logs:$o.outcome.logs,failure:typeof $o.outcome.status=="object"&&$o.outcome.status.Failure!==void 0?(0,errors_1$1.parseRpcError)($o.outcome.status.Failure):null}):fo},[]);for(const fo of io)logger_1.Logger.log(`Receipt${fo.receiptIds.length>1?"s":""}: ${fo.receiptIds.join(", ")}`),printTxOutcomeLogs({contractId:Mn,logs:fo.logs,prefix:" "}),fo.failure&&logger_1.Logger.warn(` Failure [${Mn}]: ${fo.failure}`)}logging.printTxOutcomeLogsAndFailures=printTxOutcomeLogsAndFailures;function printTxOutcomeLogs({contractId:Mn,logs:Fn,prefix:io=""}){for(const fo of Fn)logger_1.Logger.log(`${io}Log [${Mn}]: ${fo}`)}logging.printTxOutcomeLogs=printTxOutcomeLogs;var provider$2={};Object.defineProperty(provider$2,"__esModule",{value:!0});provider$2.getTransactionLastResult=void 0;function getTransactionLastResult(Mn){if(typeof Mn.status=="object"&&typeof Mn.status.SuccessValue=="string"){const Fn=Buffer$D.from(Mn.status.SuccessValue,"base64").toString();try{return JSON.parse(Fn)}catch{return Fn}}return null}provider$2.getTransactionLastResult=getTransactionLastResult;var validators$1={},utils$6={};Object.defineProperty(utils$6,"__esModule",{value:!0});utils$6.sortBigIntAsc=void 0;function sortBigIntAsc(Mn,Fn){return Mn<Fn?-1:Mn>Fn?1:0}utils$6.sortBigIntAsc=sortBigIntAsc;var __importDefault$7=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(Mn){return Mn&&Mn.__esModule?Mn:{default:Mn}};Object.defineProperty(validators$1,"__esModule",{value:!0});validators$1.diffEpochValidators=validators$1.findSeatPrice=void 0;const depd_1$1=__importDefault$7(browser$m),utils_1$f=utils$6;function findSeatPrice(Mn,Fn,io,fo){return fo&&fo<49?findSeatPriceForProtocolBefore49(Mn,Fn):(io||((0,depd_1$1.default)("findSeatPrice(validators, maxNumberOfSeats)")("`use `findSeatPrice(validators, maxNumberOfSeats, minimumStakeRatio)` instead"),io=[1,6250]),findSeatPriceForProtocolAfter49(Mn,Fn,io))}validators$1.findSeatPrice=findSeatPrice;function findSeatPriceForProtocolBefore49(Mn,Fn){const io=Mn.map(jo=>BigInt(jo.stake)).sort(utils_1$f.sortBigIntAsc),fo=BigInt(Fn),$o=io.reduce((jo,Lo)=>jo+Lo);if($o<fo)throw new Error("Stakes are below seats");let mo=BigInt(1),Ao=$o+BigInt(1);for(;mo!==Ao-BigInt(1);){const jo=(mo+Ao)/BigInt(2);let Lo=!1,Ho=BigInt(0);for(let zo=0;zo<io.length;++zo)if(Ho=Ho+io[zo]/jo,Ho>=fo){mo=jo,Lo=!0;break}Lo||(Ao=jo)}return mo}function findSeatPriceForProtocolAfter49(Mn,Fn,io){if(io.length!=2)throw Error("minimumStakeRatio should have 2 elements");const fo=Mn.map(mo=>BigInt(mo.stake)).sort(utils_1$f.sortBigIntAsc),$o=fo.reduce((mo,Ao)=>mo+Ao);return Mn.length<Fn?$o*BigInt(io[0])/BigInt(io[1]):fo[0]+BigInt(1)}function diffEpochValidators(Mn,Fn){const io=new Map;Mn.forEach($o=>io.set($o.account_id,$o));const fo=new Set(Fn.map($o=>$o.account_id));return{newValidators:Fn.filter($o=>!io.has($o.account_id)),removedValidators:Mn.filter($o=>!fo.has($o.account_id)),changedValidators:Fn.filter($o=>io.has($o.account_id)&&io.get($o.account_id).stake!=$o.stake).map($o=>({current:io.get($o.account_id),next:$o}))}}validators$1.diffEpochValidators=diffEpochValidators;(function(Mn){var Fn=commonjsGlobal$c&&commonjsGlobal$c.__createBinding||(Object.create?function(fo,$o,mo,Ao){Ao===void 0&&(Ao=mo);var jo=Object.getOwnPropertyDescriptor($o,mo);(!jo||("get"in jo?!$o.__esModule:jo.writable||jo.configurable))&&(jo={enumerable:!0,get:function(){return $o[mo]}}),Object.defineProperty(fo,Ao,jo)}:function(fo,$o,mo,Ao){Ao===void 0&&(Ao=mo),fo[Ao]=$o[mo]}),io=commonjsGlobal$c&&commonjsGlobal$c.__exportStar||function(fo,$o){for(var mo in fo)mo!=="default"&&!Object.prototype.hasOwnProperty.call($o,mo)&&Fn($o,fo,mo)};Object.defineProperty(Mn,"__esModule",{value:!0}),io(constants$3,Mn),io(errors$3,Mn),io(format$2,Mn),io(logging,Mn),io(provider$2,Mn),io(validators$1,Mn),io(logger$2,Mn),io(utils$6,Mn)})(lib$6);var public_key={};Object.defineProperty(public_key,"__esModule",{value:!0});public_key.PublicKey=void 0;const types_1$g=lib$i,utils_1$e=lib$6,ed25519_1$1=ed25519,constants_1$3=constants$4;function key_type_to_str(Mn){switch(Mn){case constants_1$3.KeyType.ED25519:return"ed25519";default:throw new Error(`Unknown key type ${Mn}`)}}function str_to_key_type(Mn){switch(Mn.toLowerCase()){case"ed25519":return constants_1$3.KeyType.ED25519;default:throw new Error(`Unknown key type ${Mn}`)}}class PublicKey extends types_1$g.Assignable{static from(Fn){return typeof Fn=="string"?PublicKey.fromString(Fn):Fn}static fromString(Fn){const io=Fn.split(":");let fo,$o=constants_1$3.KeyType.ED25519;if(io.length===1)fo=io[0];else if(io.length===2)fo=io[1],$o=str_to_key_type(io[0]);else throw new Error("Invalid encoded key format, must be <curve>:<encoded key>");const mo=(0,utils_1$e.baseDecode)(fo);if(mo.length!==constants_1$3.KeySize.SECRET_KEY)throw new Error(`Invalid public key size (${mo.length}), must be ${constants_1$3.KeySize.SECRET_KEY}`);return new PublicKey({keyType:$o,data:mo})}toString(){return`${key_type_to_str(this.keyType)}:${(0,utils_1$e.baseEncode)(this.data)}`}verify(Fn,io){switch(this.keyType){case constants_1$3.KeyType.ED25519:return ed25519_1$1.ed25519.verify(io,Fn,this.data);default:throw new Error(`Unknown key type ${this.keyType}`)}}}public_key.PublicKey=PublicKey;var __importDefault$6=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(Mn){return Mn&&Mn.__esModule?Mn:{default:Mn}};Object.defineProperty(key_pair_ed25519,"__esModule",{value:!0});key_pair_ed25519.KeyPairEd25519=void 0;const utils_1$d=lib$6,ed25519_1=ed25519,randombytes_1=__importDefault$6(browserExports),constants_1$2=constants$4,key_pair_base_1$1=key_pair_base,public_key_1=public_key;class KeyPairEd25519 extends key_pair_base_1$1.KeyPairBase{constructor(Fn){super();const io=(0,utils_1$d.baseDecode)(Fn),fo=new Uint8Array(io.slice(0,constants_1$2.KeySize.SECRET_KEY)),$o=ed25519_1.ed25519.getPublicKey(new Uint8Array(fo));this.publicKey=new public_key_1.PublicKey({keyType:constants_1$2.KeyType.ED25519,data:$o}),this.secretKey=(0,utils_1$d.baseEncode)(fo),this.extendedSecretKey=Fn}static fromRandom(){const Fn=(0,randombytes_1.default)(constants_1$2.KeySize.SECRET_KEY),io=ed25519_1.ed25519.getPublicKey(new Uint8Array(Fn)),fo=new Uint8Array([...Fn,...io]);return new KeyPairEd25519((0,utils_1$d.baseEncode)(fo))}sign(Fn){return{signature:ed25519_1.ed25519.sign(Fn,(0,utils_1$d.baseDecode)(this.secretKey)),publicKey:this.publicKey}}verify(Fn,io){return this.publicKey.verify(Fn,io)}toString(){return`ed25519:${this.extendedSecretKey}`}getPublicKey(){return this.publicKey}}key_pair_ed25519.KeyPairEd25519=KeyPairEd25519;Object.defineProperty(key_pair$1,"__esModule",{value:!0});key_pair$1.KeyPair=void 0;const key_pair_base_1=key_pair_base,key_pair_ed25519_1=key_pair_ed25519;class KeyPair extends key_pair_base_1.KeyPairBase{static fromRandom(Fn){switch(Fn.toUpperCase()){case"ED25519":return key_pair_ed25519_1.KeyPairEd25519.fromRandom();default:throw new Error(`Unknown curve ${Fn}`)}}static fromString(Fn){const io=Fn.split(":");if(io.length===1)return new key_pair_ed25519_1.KeyPairEd25519(io[0]);if(io.length===2)switch(io[0].toUpperCase()){case"ED25519":return new key_pair_ed25519_1.KeyPairEd25519(io[1]);default:throw new Error(`Unknown curve: ${io[0]}`)}else throw new Error("Invalid encoded key format, must be <curve>:<encoded key>")}}key_pair$1.KeyPair=KeyPair;(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.PublicKey=Mn.KeyPairEd25519=Mn.KeyPair=Mn.KeyType=void 0;var Fn=constants$4;Object.defineProperty(Mn,"KeyType",{enumerable:!0,get:function(){return Fn.KeyType}});var io=key_pair$1;Object.defineProperty(Mn,"KeyPair",{enumerable:!0,get:function(){return io.KeyPair}});var fo=key_pair_ed25519;Object.defineProperty(Mn,"KeyPairEd25519",{enumerable:!0,get:function(){return fo.KeyPairEd25519}});var $o=public_key;Object.defineProperty(Mn,"PublicKey",{enumerable:!0,get:function(){return $o.PublicKey}})})(lib$7);var keystore={};Object.defineProperty(keystore,"__esModule",{value:!0});keystore.KeyStore=void 0;class KeyStore{}keystore.KeyStore=KeyStore;var __awaiter$D=commonjsGlobal$c&&commonjsGlobal$c.__awaiter||function(Mn,Fn,io,fo){function $o(mo){return mo instanceof io?mo:new io(function(Ao){Ao(mo)})}return new(io||(io=Promise))(function(mo,Ao){function jo(zo){try{Ho(fo.next(zo))}catch(Go){Ao(Go)}}function Lo(zo){try{Ho(fo.throw(zo))}catch(Go){Ao(Go)}}function Ho(zo){zo.done?mo(zo.value):$o(zo.value).then(jo,Lo)}Ho((fo=fo.apply(Mn,Fn||[])).next())})};Object.defineProperty(in_memory_key_store$1,"__esModule",{value:!0});in_memory_key_store$1.InMemoryKeyStore=void 0;const crypto_1$c=lib$7,keystore_1$1=keystore;class InMemoryKeyStore extends keystore_1$1.KeyStore{constructor(){super(),this.keys={}}setKey(Fn,io,fo){return __awaiter$D(this,void 0,void 0,function*(){this.keys[`${io}:${Fn}`]=fo.toString()})}getKey(Fn,io){return __awaiter$D(this,void 0,void 0,function*(){const fo=this.keys[`${io}:${Fn}`];return fo?crypto_1$c.KeyPair.fromString(fo):null})}removeKey(Fn,io){return __awaiter$D(this,void 0,void 0,function*(){delete this.keys[`${io}:${Fn}`]})}clear(){return __awaiter$D(this,void 0,void 0,function*(){this.keys={}})}getNetworks(){return __awaiter$D(this,void 0,void 0,function*(){const Fn=new Set;return Object.keys(this.keys).forEach(io=>{const fo=io.split(":");Fn.add(fo[1])}),Array.from(Fn.values())})}getAccounts(Fn){return __awaiter$D(this,void 0,void 0,function*(){const io=new Array;return Object.keys(this.keys).forEach(fo=>{const $o=fo.split(":");$o[$o.length-1]===Fn&&io.push($o.slice(0,$o.length-1).join(":"))}),io})}toString(){return"InMemoryKeyStore"}}in_memory_key_store$1.InMemoryKeyStore=InMemoryKeyStore;var merge_key_store$1={},__awaiter$C=commonjsGlobal$c&&commonjsGlobal$c.__awaiter||function(Mn,Fn,io,fo){function $o(mo){return mo instanceof io?mo:new io(function(Ao){Ao(mo)})}return new(io||(io=Promise))(function(mo,Ao){function jo(zo){try{Ho(fo.next(zo))}catch(Go){Ao(Go)}}function Lo(zo){try{Ho(fo.throw(zo))}catch(Go){Ao(Go)}}function Ho(zo){zo.done?mo(zo.value):$o(zo.value).then(jo,Lo)}Ho((fo=fo.apply(Mn,Fn||[])).next())})};Object.defineProperty(merge_key_store$1,"__esModule",{value:!0});merge_key_store$1.MergeKeyStore=void 0;const keystore_1=keystore;class MergeKeyStore extends keystore_1.KeyStore{constructor(Fn,io={writeKeyStoreIndex:0}){super(),this.options=io,this.keyStores=Fn}setKey(Fn,io,fo){return __awaiter$C(this,void 0,void 0,function*(){yield this.keyStores[this.options.writeKeyStoreIndex].setKey(Fn,io,fo)})}getKey(Fn,io){return __awaiter$C(this,void 0,void 0,function*(){for(const fo of this.keyStores){const $o=yield fo.getKey(Fn,io);if($o)return $o}return null})}removeKey(Fn,io){return __awaiter$C(this,void 0,void 0,function*(){for(const fo of this.keyStores)yield fo.removeKey(Fn,io)})}clear(){return __awaiter$C(this,void 0,void 0,function*(){for(const Fn of this.keyStores)yield Fn.clear()})}getNetworks(){return __awaiter$C(this,void 0,void 0,function*(){const Fn=new Set;for(const io of this.keyStores)for(const fo of yield io.getNetworks())Fn.add(fo);return Array.from(Fn)})}getAccounts(Fn){return __awaiter$C(this,void 0,void 0,function*(){const io=new Set;for(const fo of this.keyStores)for(const $o of yield fo.getAccounts(Fn))io.add($o);return Array.from(io)})}toString(){return`MergeKeyStore(${this.keyStores.join(", ")})`}}merge_key_store$1.MergeKeyStore=MergeKeyStore;(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.MergeKeyStore=Mn.KeyStore=Mn.InMemoryKeyStore=void 0;var Fn=in_memory_key_store$1;Object.defineProperty(Mn,"InMemoryKeyStore",{enumerable:!0,get:function(){return Fn.InMemoryKeyStore}});var io=keystore;Object.defineProperty(Mn,"KeyStore",{enumerable:!0,get:function(){return io.KeyStore}});var fo=merge_key_store$1;Object.defineProperty(Mn,"MergeKeyStore",{enumerable:!0,get:function(){return fo.MergeKeyStore}})})(lib$8);(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.KeyStore=void 0;var Fn=lib$8;Object.defineProperty(Mn,"KeyStore",{enumerable:!0,get:function(){return Fn.KeyStore}})})(keystore$1);var in_memory_key_store={};(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.InMemoryKeyStore=void 0;var Fn=lib$8;Object.defineProperty(Mn,"InMemoryKeyStore",{enumerable:!0,get:function(){return Fn.InMemoryKeyStore}})})(in_memory_key_store);var browser_local_storage_key_store$1={},lib$5={},browser_local_storage_key_store={},__awaiter$B=commonjsGlobal$c&&commonjsGlobal$c.__awaiter||function(Mn,Fn,io,fo){function $o(mo){return mo instanceof io?mo:new io(function(Ao){Ao(mo)})}return new(io||(io=Promise))(function(mo,Ao){function jo(zo){try{Ho(fo.next(zo))}catch(Go){Ao(Go)}}function Lo(zo){try{Ho(fo.throw(zo))}catch(Go){Ao(Go)}}function Ho(zo){zo.done?mo(zo.value):$o(zo.value).then(jo,Lo)}Ho((fo=fo.apply(Mn,Fn||[])).next())})};Object.defineProperty(browser_local_storage_key_store,"__esModule",{value:!0});browser_local_storage_key_store.BrowserLocalStorageKeyStore=void 0;const crypto_1$b=lib$7,keystores_1$1=lib$8,LOCAL_STORAGE_KEY_PREFIX="near-api-js:keystore:";class BrowserLocalStorageKeyStore extends keystores_1$1.KeyStore{constructor(Fn=window.localStorage,io=LOCAL_STORAGE_KEY_PREFIX){super(),this.localStorage=Fn,this.prefix=io}setKey(Fn,io,fo){return __awaiter$B(this,void 0,void 0,function*(){this.localStorage.setItem(this.storageKeyForSecretKey(Fn,io),fo.toString())})}getKey(Fn,io){return __awaiter$B(this,void 0,void 0,function*(){const fo=this.localStorage.getItem(this.storageKeyForSecretKey(Fn,io));return fo?crypto_1$b.KeyPair.fromString(fo):null})}removeKey(Fn,io){return __awaiter$B(this,void 0,void 0,function*(){this.localStorage.removeItem(this.storageKeyForSecretKey(Fn,io))})}clear(){return __awaiter$B(this,void 0,void 0,function*(){for(const Fn of this.storageKeys())Fn.startsWith(this.prefix)&&this.localStorage.removeItem(Fn)})}getNetworks(){return __awaiter$B(this,void 0,void 0,function*(){const Fn=new Set;for(const io of this.storageKeys())if(io.startsWith(this.prefix)){const fo=io.substring(this.prefix.length).split(":");Fn.add(fo[1])}return Array.from(Fn.values())})}getAccounts(Fn){return __awaiter$B(this,void 0,void 0,function*(){const io=new Array;for(const fo of this.storageKeys())if(fo.startsWith(this.prefix)){const $o=fo.substring(this.prefix.length).split(":");$o[1]===Fn&&io.push($o[0])}return io})}storageKeyForSecretKey(Fn,io){return`${this.prefix}${io}:${Fn}`}*storageKeys(){for(let Fn=0;Fn<this.localStorage.length;Fn++)yield this.localStorage.key(Fn)}}browser_local_storage_key_store.BrowserLocalStorageKeyStore=BrowserLocalStorageKeyStore;(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.BrowserLocalStorageKeyStore=void 0;var Fn=browser_local_storage_key_store;Object.defineProperty(Mn,"BrowserLocalStorageKeyStore",{enumerable:!0,get:function(){return Fn.BrowserLocalStorageKeyStore}})})(lib$5);(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.BrowserLocalStorageKeyStore=void 0;var Fn=lib$5;Object.defineProperty(Mn,"BrowserLocalStorageKeyStore",{enumerable:!0,get:function(){return Fn.BrowserLocalStorageKeyStore}})})(browser_local_storage_key_store$1);var merge_key_store={};(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.MergeKeyStore=void 0;var Fn=lib$8;Object.defineProperty(Mn,"MergeKeyStore",{enumerable:!0,get:function(){return Fn.MergeKeyStore}})})(merge_key_store);(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.MergeKeyStore=Mn.BrowserLocalStorageKeyStore=Mn.InMemoryKeyStore=Mn.KeyStore=void 0;const Fn=keystore$1;Object.defineProperty(Mn,"KeyStore",{enumerable:!0,get:function(){return Fn.KeyStore}});const io=in_memory_key_store;Object.defineProperty(Mn,"InMemoryKeyStore",{enumerable:!0,get:function(){return io.InMemoryKeyStore}});const fo=browser_local_storage_key_store$1;Object.defineProperty(Mn,"BrowserLocalStorageKeyStore",{enumerable:!0,get:function(){return fo.BrowserLocalStorageKeyStore}});const $o=merge_key_store;Object.defineProperty(Mn,"MergeKeyStore",{enumerable:!0,get:function(){return $o.MergeKeyStore}})})(browserIndex$1);var commonIndex={},providers={},provider$1={},lib$4={},exponentialBackoff$1={},__awaiter$A=commonjsGlobal$c&&commonjsGlobal$c.__awaiter||function(Mn,Fn,io,fo){function $o(mo){return mo instanceof io?mo:new io(function(Ao){Ao(mo)})}return new(io||(io=Promise))(function(mo,Ao){function jo(zo){try{Ho(fo.next(zo))}catch(Go){Ao(Go)}}function Lo(zo){try{Ho(fo.throw(zo))}catch(Go){Ao(Go)}}function Ho(zo){zo.done?mo(zo.value):$o(zo.value).then(jo,Lo)}Ho((fo=fo.apply(Mn,Fn||[])).next())})};Object.defineProperty(exponentialBackoff$1,"__esModule",{value:!0});exponentialBackoff$1.exponentialBackoff=void 0;function exponentialBackoff(Mn,Fn,io,fo){return __awaiter$A(this,void 0,void 0,function*(){let $o=Mn;for(let mo=0;mo<Fn;mo++){const Ao=yield fo();if(Ao)return Ao;yield sleep($o),$o*=io}return null})}exponentialBackoff$1.exponentialBackoff=exponentialBackoff;function sleep(Mn){return new Promise(Fn=>setTimeout(Fn,Mn))}var jsonRpcProvider$1={},lib$3={},action_creators={},actions$1={};Object.defineProperty(actions$1,"__esModule",{value:!0});actions$1.Action=actions$1.SignedDelegate=actions$1.DeleteAccount=actions$1.DeleteKey=actions$1.AddKey=actions$1.Stake=actions$1.Transfer=actions$1.FunctionCall=actions$1.DeployContract=actions$1.CreateAccount=actions$1.IAction=actions$1.AccessKey=actions$1.AccessKeyPermission=actions$1.FullAccessPermission=actions$1.FunctionCallPermission=void 0;const types_1$f=lib$i;class Enum{constructor(Fn){if(Object.keys(Fn).length!==1)throw new Error("Enum can only take single value");Object.keys(Fn).map(io=>{this[io]=Fn[io],this.enum=io})}}class FunctionCallPermission extends types_1$f.Assignable{}actions$1.FunctionCallPermission=FunctionCallPermission;class FullAccessPermission extends types_1$f.Assignable{}actions$1.FullAccessPermission=FullAccessPermission;class AccessKeyPermission extends Enum{}actions$1.AccessKeyPermission=AccessKeyPermission;class AccessKey extends types_1$f.Assignable{}actions$1.AccessKey=AccessKey;class IAction extends types_1$f.Assignable{}actions$1.IAction=IAction;class CreateAccount extends IAction{}actions$1.CreateAccount=CreateAccount;class DeployContract extends IAction{}actions$1.DeployContract=DeployContract;class FunctionCall extends IAction{}actions$1.FunctionCall=FunctionCall;class Transfer extends IAction{}actions$1.Transfer=Transfer;class Stake extends IAction{}actions$1.Stake=Stake;class AddKey extends IAction{}actions$1.AddKey=AddKey;class DeleteKey extends IAction{}actions$1.DeleteKey=DeleteKey;class DeleteAccount extends IAction{}actions$1.DeleteAccount=DeleteAccount;class SignedDelegate extends IAction{}actions$1.SignedDelegate=SignedDelegate;class Action extends Enum{}actions$1.Action=Action;Object.defineProperty(action_creators,"__esModule",{value:!0});action_creators.actionCreators=action_creators.stringifyJsonOrBytes=void 0;const actions_1$2=actions$1;function fullAccessKey$2(){return new actions_1$2.AccessKey({nonce:0,permission:new actions_1$2.AccessKeyPermission({fullAccess:new actions_1$2.FullAccessPermission({})})})}function functionCallAccessKey$2(Mn,Fn,io){return new actions_1$2.AccessKey({nonce:0,permission:new actions_1$2.AccessKeyPermission({functionCall:new actions_1$2.FunctionCallPermission({receiverId:Mn,allowance:io,methodNames:Fn})})})}function createAccount$2(){return new actions_1$2.Action({createAccount:new actions_1$2.CreateAccount({})})}function deployContract$4(Mn){return new actions_1$2.Action({deployContract:new actions_1$2.DeployContract({code:Mn})})}function stringifyJsonOrBytes(Mn){return Mn.byteLength!==void 0&&Mn.byteLength===Mn.length?Mn:Buffer$D.from(JSON.stringify(Mn))}action_creators.stringifyJsonOrBytes=stringifyJsonOrBytes;function functionCall$4(Mn,Fn,io=BigInt(0),fo=BigInt(0),$o=stringifyJsonOrBytes,mo=!1){return mo?new actions_1$2.Action({functionCall:new actions_1$2.FunctionCall({methodName:Mn,args:Fn,gas:io,deposit:fo})}):new actions_1$2.Action({functionCall:new actions_1$2.FunctionCall({methodName:Mn,args:$o(Fn),gas:io,deposit:fo})})}function transfer$2(Mn=BigInt(0)){return new actions_1$2.Action({transfer:new actions_1$2.Transfer({deposit:Mn})})}function stake$2(Mn=BigInt(0),Fn){return new actions_1$2.Action({stake:new actions_1$2.Stake({stake:Mn,publicKey:Fn})})}function addKey$3(Mn,Fn){return new actions_1$2.Action({addKey:new actions_1$2.AddKey({publicKey:Mn,accessKey:Fn})})}function deleteKey$3(Mn){return new actions_1$2.Action({deleteKey:new actions_1$2.DeleteKey({publicKey:Mn})})}function deleteAccount$2(Mn){return new actions_1$2.Action({deleteAccount:new actions_1$2.DeleteAccount({beneficiaryId:Mn})})}function signedDelegate({delegateAction:Mn,signature:Fn}){return new actions_1$2.Action({signedDelegate:new actions_1$2.SignedDelegate({delegateAction:Mn,signature:Fn})})}action_creators.actionCreators={addKey:addKey$3,createAccount:createAccount$2,deleteAccount:deleteAccount$2,deleteKey:deleteKey$3,deployContract:deployContract$4,fullAccessKey:fullAccessKey$2,functionCall:functionCall$4,functionCallAccessKey:functionCallAccessKey$2,signedDelegate,stake:stake$2,transfer:transfer$2};var create_transaction={},schema={},prefix={};Object.defineProperty(prefix,"__esModule",{value:!0});prefix.DelegateActionPrefix=void 0;const types_1$e=lib$i,ACTIONABLE_MESSAGE_BASE=Math.pow(2,30),NEP={MetaTransactions:366};class NEPPrefix extends types_1$e.Assignable{}class ActionableMessagePrefix extends NEPPrefix{constructor(Fn){super({prefix:ACTIONABLE_MESSAGE_BASE+Fn})}}class DelegateActionPrefix extends ActionableMessagePrefix{constructor(){super(NEP.MetaTransactions)}}prefix.DelegateActionPrefix=DelegateActionPrefix;(function(Mn){Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.SCHEMA=Mn.SignedTransaction=Mn.Transaction=Mn.decodeSignedTransaction=Mn.decodeTransaction=Mn.encodeTransaction=Mn.encodeSignedDelegate=Mn.encodeDelegateAction=void 0;const Fn=lib$i,io=cjs,fo=prefix;function $o(Go){return new Uint8Array([...(0,io.serialize)(Mn.SCHEMA.DelegateActionPrefix,new fo.DelegateActionPrefix),...(0,io.serialize)(Mn.SCHEMA.DelegateAction,Go)])}Mn.encodeDelegateAction=$o;function mo(Go){return(0,io.serialize)(Mn.SCHEMA.SignedDelegate,Go)}Mn.encodeSignedDelegate=mo;function Ao(Go){const Vo=Go instanceof zo?Mn.SCHEMA.SignedTransaction:Mn.SCHEMA.Transaction;return(0,io.serialize)(Vo,Go)}Mn.encodeTransaction=Ao;function jo(Go){return new Ho((0,io.deserialize)(Mn.SCHEMA.Transaction,Go))}Mn.decodeTransaction=jo;function Lo(Go){return new zo((0,io.deserialize)(Mn.SCHEMA.SignedTransaction,Go))}Mn.decodeSignedTransaction=Lo;class Ho extends Fn.Assignable{encode(){return Ao(this)}static decode(Vo){return jo(Vo)}}Mn.Transaction=Ho;class zo extends Fn.Assignable{encode(){return Ao(this)}static decode(Vo){return Lo(Vo)}}Mn.SignedTransaction=zo,Mn.SCHEMA=new class{constructor(){this.Signature={struct:{keyType:"u8",data:{array:{type:"u8",len:64}}}},this.PublicKey={struct:{keyType:"u8",data:{array:{type:"u8",len:32}}}},this.FunctionCallPermission={struct:{allowance:{option:"u128"},receiverId:"string",methodNames:{array:{type:"string"}}}},this.FullAccessPermission={struct:{}},this.AccessKeyPermission={enum:[{struct:{functionCall:this.FunctionCallPermission}},{struct:{fullAccess:this.FullAccessPermission}}]},this.AccessKey={struct:{nonce:"u64",permission:this.AccessKeyPermission}},this.CreateAccount={struct:{}},this.DeployContract={struct:{code:{array:{type:"u8"}}}},this.FunctionCall={struct:{methodName:"string",args:{array:{type:"u8"}},gas:"u64",deposit:"u128"}},this.Transfer={struct:{deposit:"u128"}},this.Stake={struct:{stake:"u128",publicKey:this.PublicKey}},this.AddKey={struct:{publicKey:this.PublicKey,accessKey:this.AccessKey}},this.DeleteKey={struct:{publicKey:this.PublicKey}},this.DeleteAccount={struct:{beneficiaryId:"string"}},this.DelegateActionPrefix={struct:{prefix:"u32"}},this.ClassicActions={enum:[{struct:{createAccount:this.CreateAccount}},{struct:{deployContract:this.DeployContract}},{struct:{functionCall:this.FunctionCall}},{struct:{transfer:this.Transfer}},{struct:{stake:this.Stake}},{struct:{addKey:this.AddKey}},{struct:{deleteKey:this.DeleteKey}},{struct:{deleteAccount:this.DeleteAccount}}]},this.DelegateAction={struct:{senderId:"string",receiverId:"string",actions:{array:{type:this.ClassicActions}},nonce:"u64",maxBlockHeight:"u64",publicKey:this.PublicKey}},this.SignedDelegate={struct:{delegateAction:this.DelegateAction,signature:this.Signature}},this.Action={enum:[{struct:{createAccount:this.CreateAccount}},{struct:{deployContract:this.DeployContract}},{struct:{functionCall:this.FunctionCall}},{struct:{transfer:this.Transfer}},{struct:{stake:this.Stake}},{struct:{addKey:this.AddKey}},{struct:{deleteKey:this.DeleteKey}},{struct:{deleteAccount:this.DeleteAccount}},{struct:{signedDelegate:this.SignedDelegate}}]},this.Transaction={struct:{signerId:"string",publicKey:this.PublicKey,nonce:"u64",receiverId:"string",blockHash:{array:{type:"u8",len:32}},actions:{array:{type:this.Action}}}},this.SignedTransaction={struct:{transaction:this.Transaction,signature:this.Signature}}}}})(schema);Object.defineProperty(create_transaction,"__esModule",{value:!0});create_transaction.createTransaction=void 0;const schema_1$1=schema;function createTransaction(Mn,Fn,io,fo,$o,mo){const Ao=typeof fo=="bigint"?fo:BigInt(fo);return new schema_1$1.Transaction({signerId:Mn,publicKey:Fn,nonce:Ao,receiverId:io,actions:$o,blockHash:mo})}create_transaction.createTransaction=createTransaction;var delegate={};Object.defineProperty(delegate,"__esModule",{value:!0});delegate.buildDelegateAction=delegate.DelegateAction=void 0;const types_1$d=lib$i,action_creators_1=action_creators,{addKey:addKey$2,createAccount:createAccount$1,deleteAccount:deleteAccount$1,deleteKey:deleteKey$2,deployContract:deployContract$3,functionCall:functionCall$3,stake:stake$1,transfer:transfer$1}=action_creators_1.actionCreators;class DelegateAction extends types_1$d.Assignable{}delegate.DelegateAction=DelegateAction;function buildDelegateAction({actions:Mn,maxBlockHeight:Fn,nonce:io,publicKey:fo,receiverId:$o,senderId:mo}){return new DelegateAction({senderId:mo,receiverId:$o,actions:Mn.map(Ao=>{if(!Ao.type&&!Ao.params)return Ao;switch(Ao.type){case"AddKey":{const{publicKey:jo,accessKey:Lo}=Ao.params;return addKey$2(jo,Lo)}case"CreateAccount":return createAccount$1(Ao.params.createAccount);case"DeleteAccount":return deleteAccount$1(Ao.params.deleteAccount);case"DeleteKey":return deleteKey$2(Ao.params.publicKey);case"DeployContract":return deployContract$3(Ao.params.code);case"FunctionCall":{const{methodName:jo,args:Lo,gas:Ho,deposit:zo}=Ao.params;return functionCall$3(jo,Lo,Ho,zo)}case"Stake":return stake$1(Ao.params.stake,Ao.params.publicKey);case"Transfer":{const{deposit:jo}=Ao.params;return transfer$1(jo)}}throw new Error("Unrecognized action")}),nonce:io,maxBlockHeight:Fn,publicKey:fo})}delegate.buildDelegateAction=buildDelegateAction;var sign={},signature={};Object.defineProperty(signature,"__esModule",{value:!0});signature.Signature=void 0;const types_1$c=lib$i;class Signature extends types_1$c.Assignable{}signature.Signature=Signature;var __awaiter$z=commonjsGlobal$c&&commonjsGlobal$c.__awaiter||function(Mn,Fn,io,fo){function $o(mo){return mo instanceof io?mo:new io(function(Ao){Ao(mo)})}return new(io||(io=Promise))(function(mo,Ao){function jo(zo){try{Ho(fo.next(zo))}catch(Go){Ao(Go)}}function Lo(zo){try{Ho(fo.throw(zo))}catch(Go){Ao(Go)}}function Ho(zo){zo.done?mo(zo.value):$o(zo.value).then(jo,Lo)}Ho((fo=fo.apply(Mn,Fn||[])).next())})};Object.defineProperty(sign,"__esModule",{value:!0});sign.signDelegateAction=sign.signTransaction=void 0;const sha256_1$1=sha256$2,actions_1$1=actions$1,create_transaction_1=create_transaction,schema_1=schema,signature_1=signature;function signTransactionObject(Mn,Fn,io,fo){return __awaiter$z(this,void 0,void 0,function*(){const $o=(0,schema_1.encodeTransaction)(Mn),mo=new Uint8Array((0,sha256_1$1.sha256)($o)),Ao=yield Fn.signMessage($o,io,fo),jo=new schema_1.SignedTransaction({transaction:Mn,signature:new signature_1.Signature({keyType:Mn.publicKey.keyType,data:Ao.signature})});return[mo,jo]})}function signTransaction(...Mn){return __awaiter$z(this,void 0,void 0,function*(){if(Mn[0].constructor===schema_1.Transaction){const[Fn,io,fo,$o]=Mn;return signTransactionObject(Fn,io,fo,$o)}else{const[Fn,io,fo,$o,mo,Ao,jo]=Mn,Lo=yield mo.getPublicKey(Ao,jo),Ho=(0,create_transaction_1.createTransaction)(Ao,Lo,Fn,io,fo,$o);return signTransactionObject(Ho,mo,Ao,jo)}})}sign.signTransaction=signTransaction;function signDelegateAction({delegateAction:Mn,signer:Fn}){return __awaiter$z(this,void 0,void 0,function*(){const io=(0,schema_1.encodeDelegateAction)(Mn),fo=yield Fn.sign(io),$o=new actions_1$1.SignedDelegate({delegateAction:Mn,signature:new signature_1.Signature({keyType:Mn.publicKey.keyType,data:fo})});return{hash:new Uint8Array((0,sha256_1$1.sha256)(io)),signedDelegateAction:$o}})}sign.signDelegateAction=signDelegateAction;(function(Mn){var Fn=commonjsGlobal$c&&commonjsGlobal$c.__createBinding||(Object.create?function(fo,$o,mo,Ao){Ao===void 0&&(Ao=mo);var jo=Object.getOwnPropertyDescriptor($o,mo);(!jo||("get"in jo?!$o.__esModule:jo.writable||jo.configurable))&&(jo={enumerable:!0,get:function(){return $o[mo]}}),Object.defineProperty(fo,Ao,jo)}:function(fo,$o,mo,Ao){Ao===void 0&&(Ao=mo),fo[Ao]=$o[mo]}),io=commonjsGlobal$c&&commonjsGlobal$c.__exportStar||function(fo,$o){for(var mo in fo)mo!=="default"&&!Object.prototype.hasOwnProperty.call($o,mo)&&Fn($o,fo,mo)};Object.defineProperty(Mn,"__esModule",{value:!0}),io(action_creators,Mn),io(actions$1,Mn),io(create_transaction,Mn),io(delegate,Mn),io(schema,Mn),io(sign,Mn),io(signature,Mn)})(lib$3);var provider={};Object.defineProperty(provider,"__esModule",{value:!0});provider.Provider=void 0;class Provider{}provider.Provider=Provider;var fetch_json={},fetch$1={},hasRequiredFetch;function requireFetch(){if(hasRequiredFetch)return fetch$1;hasRequiredFetch=1;var Mn=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(Lo){return Lo&&Lo.__esModule?Lo:{default:Lo}};Object.defineProperty(fetch$1,"__esModule",{value:!0});const Fn=Mn(requireBrowser$1()),io=Mn(requireStreamHttp()),fo=Mn(requireHttpsBrowserify()),$o=new io.default.Agent({keepAlive:!0}),mo=new fo.default.Agent({keepAlive:!0});function Ao(Lo){return Lo.protocol==="http:"?$o:mo}function jo(Lo,Ho){return(0,Fn.default)(Lo,Object.assign({agent:Ao(new URL(Lo.toString()))},Ho))}return fetch$1.default=jo,fetch$1}var __createBinding=commonjsGlobal$c&&commonjsGlobal$c.__createBinding||(Object.create?function(Mn,Fn,io,fo){fo===void 0&&(fo=io);var $o=Object.getOwnPropertyDescriptor(Fn,io);(!$o||("get"in $o?!Fn.__esModule:$o.writable||$o.configurable))&&($o={enumerable:!0,get:function(){return Fn[io]}}),Object.defineProperty(Mn,fo,$o)}:function(Mn,Fn,io,fo){fo===void 0&&(fo=io),Mn[fo]=Fn[io]}),__setModuleDefault=commonjsGlobal$c&&commonjsGlobal$c.__setModuleDefault||(Object.create?function(Mn,Fn){Object.defineProperty(Mn,"default",{enumerable:!0,value:Fn})}:function(Mn,Fn){Mn.default=Fn}),__importStar=commonjsGlobal$c&&commonjsGlobal$c.__importStar||function(Mn){if(Mn&&Mn.__esModule)return Mn;var Fn={};if(Mn!=null)for(var io in Mn)io!=="default"&&Object.prototype.hasOwnProperty.call(Mn,io)&&__createBinding(Fn,Mn,io);return __setModuleDefault(Fn,Mn),Fn},__awaiter$y=commonjsGlobal$c&&commonjsGlobal$c.__awaiter||function(Mn,Fn,io,fo){function $o(mo){return mo instanceof io?mo:new io(function(Ao){Ao(mo)})}return new(io||(io=Promise))(function(mo,Ao){function jo(zo){try{Ho(fo.next(zo))}catch(Go){Ao(Go)}}function Lo(zo){try{Ho(fo.throw(zo))}catch(Go){Ao(Go)}}function Ho(zo){zo.done?mo(zo.value):$o(zo.value).then(jo,Lo)}Ho((fo=fo.apply(Mn,Fn||[])).next())})},__importDefault$5=commonjsGlobal$c&&commonjsGlobal$c.__importDefault||function(Mn){return Mn&&Mn.__esModule?Mn:{default:Mn}};Object.defineProperty(fetch_json,"__esModule",{value:!0});fetch_json.fetchJson=void 0;const types_1$b=lib$i,utils_1$c=lib$6,http_errors_1=__importDefault$5(httpErrorsExports),exponential_backoff_1$1=exponentialBackoff$1,START_WAIT_TIME_MS=1e3,BACKOFF_MULTIPLIER=1.5,RETRY_NUMBER=10;function fetchJson(Mn,Fn){return __awaiter$y(this,void 0,void 0,function*(){let io={url:null};typeof Mn=="string"?io.url=Mn:io=Mn;const fo=yield(0,exponential_backoff_1$1.exponentialBackoff)(START_WAIT_TIME_MS,RETRY_NUMBER,BACKOFF_MULTIPLIER,()=>__awaiter$y(this,void 0,void 0,function*(){var $o;try{const mo=yield(($o=commonjsGlobal$c.fetch)!==null&&$o!==void 0?$o:(yield Promise.resolve().then(()=>__importStar(requireFetch()))).default)(io.url,{method:Fn?"POST":"GET",body:Fn||void 0,headers:Object.assign(Object.assign({},io.headers),{"Content-Type":"application/json"})});if(!mo.ok){if(mo.status===503)return utils_1$c.Logger.warn(`Retrying HTTP request for ${io.url} as it's not available now`),null;if(mo.status===408)return utils_1$c.Logger.warn(`Retrying HTTP request for ${io.url} as the previou{"ActionError":{"index":0,"kind":{"FunctionCallError":{"CompilationError":{"CodeDoesNotExist":{"account_id":"web4.nearbuilders.testnet"}}}}}}
1 automatic refund step from the network not shown.
This page reads FastNEAR's public transaction index and stores nothing. This command asks a NEAR archival node for the same transaction and needs no keys.
curl -s https://archival-rpc.testnet.fastnear.com -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tx","params":{"tx_hash":"2uN4PctTJEFdvt4w1oJJWPmLZyZ1mWK5zQkNjFcMxL8L","sender_account_id":"web4.nearbuilders.testnet","wait_until":"FINAL"}}'Vouch has its own page because testnet.nearblocks.io stopped indexing on 27 Sep 2026, so it can't show newer transactions.