(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[124],{57829:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.useMbWallet=G.MintbaseWalletContextProvider=G.MintbaseWalletContext=void 0;let Q=H(33353),ee=H(29599),et=H(16037);G.MintbaseWalletContext=(0,ee.createContext)(null);let eo=({children:W,network:H,contractAddress:eo,additionalWallets:ei,onlyMbWallet:ea,callbackUrl:es,successUrl:eu,failureUrl:ec})=>{let[ef,ed]=(0,ee.useState)(""),[eh,ep]=(0,ee.useState)(null),[ey,ev]=(0,ee.useState)([]),[em,eg]=(0,ee.useState)(!1),[eb,ew]=(0,ee.useState)(!1),e_=H,eS=eo,eE=()=>J(void 0,void 0,void 0,function*(){let W=!!ea||!!(ei&&ei.length>0);return yield(0,et.setupMintbaseWalletSelector)(es,W,e_,eS,W?{additionalWallets:ei}:void 0,eu,ec)}),eO=(0,ee.useCallback)(()=>J(void 0,void 0,void 0,function*(){let W=yield eE();ew(!0),ep(W)}),[]),eA=()=>{eg(!1)},eP=()=>J(void 0,void 0,void 0,function*(){let W=yield eE();return W});(0,ee.useEffect)(()=>{eP(),eO().catch(W=>{(W||W.message.length>0)&&ed(W.message)});let W=null==document?void 0:document.getElementsByClassName("close-button")[0];return null==W||W.addEventListener("click",eA),()=>{null==W||W.removeEventListener("click",eA)}},[eO]),(0,ee.useEffect)(()=>{if(!eh)return;let W=(0,et.registerWalletAccountsSubscriber)(W=>{ev(W)});return()=>{W.unsubscribe()}},[eh]);let{selector:eM,modal:ej}=eh||{},eT=()=>J(void 0,void 0,void 0,function*(){eg(!0),ed(null),(0,et.connectWalletSelector)();try{let W=yield(0,et.pollForWalletConnection)();eg(!1),ev(W)}catch(W){W&&ed(W.message)}}),ex=()=>J(void 0,void 0,void 0,function*(){yield(0,et.disconnectFromWalletSelector)(),eg(!1)}),eI=(0,ee.useMemo)(()=>{var W;return{selector:eM,modal:ej,accounts:ey,activeAccountId:(null===(W=ey.find(W=>W.active))||void 0===W?void 0:W.accountId)||null,isConnected:ey&&ey.length>0,isWaitingForConnection:em,isWalletSelectorSetup:eb,errorMessage:ef,connect:eT,disconnect:ex,signMessage:et.signMessage}},[eM,ej,ey]);return(0,Q.jsx)(G.MintbaseWalletContext.Provider,Object.assign({value:eI},{children:W}))};G.MintbaseWalletContextProvider=eo;let ei=()=>(0,ee.useContext)(G.MintbaseWalletContext);G.useMbWallet=ei},57472:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.MINTBASE_API_KEY_HEADER=G.COIN_GECKO_API=G.BINANCE_API=G.META_SERVICE_HOST_TESTNET=G.META_SERVICE_HOST=G.QUERY_OPS_PREFIX=void 0,G.QUERY_OPS_PREFIX="mintbase_js_data_",G.META_SERVICE_HOST="https://api.mintbase.xyz",G.META_SERVICE_HOST_TESTNET="https://surface-api-testnet-z3w7d7dnea-ew.a.run.app",G.BINANCE_API="https://api.binance.com/api/v3/ticker/price?symbol=NEARUSDT",G.COIN_GECKO_API="https://api.coingecko.com/api/v3/simple/price?ids=near%2Cusn%2Cjumbo-exchange&include_last_updated_at=true&vs_currencies=usd%2Ceur%2Ccny",G.MINTBASE_API_KEY_HEADER="mb-api-key"},82444:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.nearPrice=G.fetchPriceFromBinance=G.fetchPriceFromCoinGecko=void 0;let Q=H(57472),ee=H(15965),et=()=>J(void 0,void 0,void 0,function*(){let W=yield fetch(Q.COIN_GECKO_API),G=yield W.json();return{price:G.near.usd}});G.fetchPriceFromCoinGecko=et;let eo=()=>J(void 0,void 0,void 0,function*(){let W=yield fetch(Q.BINANCE_API),G=yield W.json();return G});G.fetchPriceFromBinance=eo;let ei=()=>J(void 0,void 0,void 0,function*(){try{let W=yield Promise.any([(0,G.fetchPriceFromCoinGecko)(),(0,G.fetchPriceFromBinance)()]);return(0,ee.parseData)(W.price)}catch(W){return console.error(`No price data was able to be fetched ${JSON.stringify(W.errors)}`),(0,ee.parseData)(null,W,W.message)}});G.nearPrice=ei},15965:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.parseData=void 0;let H=(W,G,H)=>G?(console.error(H),{error:G}):{data:W};G.parseData=H},34662:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.useNearPrice=void 0;let Q=H(29599),ee=H(82444),et=()=>{let[W,G]=(0,Q.useState)(0),[H,et]=(0,Q.useState)(null);return(0,Q.useEffect)(()=>{let W=()=>J(void 0,void 0,void 0,function*(){let{data:W,error:H}=yield(0,ee.nearPrice)();if(H){et(H);return}G(Number(W))});W()},[]),{nearPrice:W,error:H}};G.useNearPrice=et},27661:function(W,G,H){"use strict";var J=this&&this.__createBinding||(Object.create?function(W,G,H,J){void 0===J&&(J=H);var Q=Object.getOwnPropertyDescriptor(G,H);(!Q||("get"in Q?!G.__esModule:Q.writable||Q.configurable))&&(Q={enumerable:!0,get:function(){return G[H]}}),Object.defineProperty(W,J,Q)}:function(W,G,H,J){void 0===J&&(J=H),W[J]=G[H]}),Q=this&&this.__exportStar||function(W,G){for(var H in W)"default"===H||Object.prototype.hasOwnProperty.call(G,H)||J(G,W,H)};Object.defineProperty(G,"__esModule",{value:!0}),Q(H(57829),G),Q(H(34662),G)},11871:function(W,G,H){"use strict";var J=H(20352);Object.defineProperty(G,"__esModule",{value:!0}),G.MINTBASE_CONNECT_HOST=G.WALLET_CONNECTION_TIMEOUT=G.WALLET_CONNECTION_POLL_INTERVAL=G.NEAR_LOGIN_CONTRACT_ID=void 0,G.NEAR_LOGIN_CONTRACT_ID=J.env.NEAR_LOGIN_CONTRACT_ID,G.WALLET_CONNECTION_POLL_INTERVAL=1e3,G.WALLET_CONNECTION_TIMEOUT=3e4,G.MINTBASE_CONNECT_HOST="https://connect.mintbase.xyz"},16037:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.signMessage=G.getVerifiedOwner=G.disconnectFromWalletSelector=G.connectWalletSelector=G.getWallet=G.pollForWalletConnection=G.registerWalletAccountsSubscriber=G.ConnectionTimeoutError=G.SetupNotCalledError=G.setupWalletSelectorComponents=G.setupMintbaseWalletSelector=G.walletSelectorComponents=G.SUPPORTED_NEAR_WALLETS=G.ERROR_MESSAGES=void 0;let Q=H(38590),ee=H(62282),et=H(70326),eo=H(11871),ei=H(9840),ea=H(81951),es=H(81310),eu=H(47108),ec="- further help available on our telegram channel: https://t.me/mintdev";G.ERROR_MESSAGES={WALLET_SETUP_NOT_CALLED_ERROR:`Call and await setupWalletSelectorComponents() before registering a subscriber - ${ec}`,WALLET_CONNECTION_NOT_FOUND:`Wallet connection not received after ${eo.WALLET_CONNECTION_TIMEOUT}ms - ${ec}`},G.SUPPORTED_NEAR_WALLETS=[(0,ei.setupMeteorWallet)(),(0,es.setupMyNearWallet)(),(0,ea.setupHereWallet)()],G.walletSelectorComponents={selector:null,modal:null};let ef={testnet:"https://testnet.wallet.mintbase.xyz/",mainnet:"https://wallet.mintbase.xyz"},ed=(W,H=!1,et,eo,ei,ea,es)=>J(void 0,void 0,void 0,function*(){return!1===H?G.walletSelectorComponents.selector=yield(0,Q.setupWalletSelector)({network:et,modules:[(0,eu.setupMintbaseWallet)({walletUrl:ef[et],callbackUrl:W,successUrl:ea||window.location.href,failureUrl:ea||window.location.href}),...(null==ei?void 0:ei.additionalWallets)||[],...G.SUPPORTED_NEAR_WALLETS]}):G.walletSelectorComponents.selector=yield(0,Q.setupWalletSelector)({network:et,modules:[(0,eu.setupMintbaseWallet)({walletUrl:ef[et],callbackUrl:W}),...(null==ei?void 0:ei.additionalWallets)||[]]}),G.walletSelectorComponents.modal=(0,ee.setupModal)(G.walletSelectorComponents.selector,{contractId:eo}),G.walletSelectorComponents});G.setupMintbaseWalletSelector=ed;let eh=(W,H,et)=>J(void 0,void 0,void 0,function*(){let J=yield(0,Q.setupWalletSelector)({network:W,modules:[...G.SUPPORTED_NEAR_WALLETS,...(null==et?void 0:et.additionalWallets)||[]]}),eo=(0,ee.setupModal)(J,{contractId:H});return G.walletSelectorComponents={selector:J,modal:eo},G.walletSelectorComponents});G.setupWalletSelectorComponents=eh;class ep extends Error{}G.SetupNotCalledError=ep;class ey extends Error{}G.ConnectionTimeoutError=ey;let ev=()=>{if(!G.walletSelectorComponents.selector)throw new ep(G.ERROR_MESSAGES.WALLET_SETUP_NOT_CALLED_ERROR)},em=W=>(ev(),G.walletSelectorComponents.selector.store.observable.pipe((0,et.map)(W=>W.accounts),(0,et.distinctUntilChanged)()).subscribe(W));G.registerWalletAccountsSubscriber=em;let eg=null,eb=()=>J(void 0,void 0,void 0,function*(){ev(),clearTimeout(eg);let W=(H,J,Q=0)=>{let{accounts:ee}=G.walletSelectorComponents.selector.store.getState()||{};ee&&H(ee),Q>eo.WALLET_CONNECTION_TIMEOUT&&J(new ey(G.ERROR_MESSAGES.WALLET_CONNECTION_NOT_FOUND)),clearTimeout(eg),eg=setTimeout(()=>W(H,J,Q+eo.WALLET_CONNECTION_POLL_INTERVAL),eo.WALLET_CONNECTION_POLL_INTERVAL)};return new Promise((G,H)=>W(G,H))});G.pollForWalletConnection=eb;let ew=()=>J(void 0,void 0,void 0,function*(){return ev(),yield G.walletSelectorComponents.selector.wallet()});G.getWallet=ew;let e_=()=>{ev(),G.walletSelectorComponents.modal.show()};G.connectWalletSelector=e_;let eS=()=>J(void 0,void 0,void 0,function*(){ev();let W=yield G.walletSelectorComponents.selector.wallet();W.signOut()});G.disconnectFromWalletSelector=eS;let eE=W=>J(void 0,void 0,void 0,function*(){ev();let{message:H,callbackUrl:J,meta:Q}=W,ee=yield G.walletSelectorComponents.selector.wallet(),et=yield ee.verifyOwner({message:H,callbackUrl:J,meta:Q});return et});G.getVerifiedOwner=eE;let eO=W=>J(void 0,void 0,void 0,function*(){let H=yield(0,G.getVerifiedOwner)(W);return H});G.signMessage=eO},47108:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.setupMintbaseWallet=void 0;var J=H(50659);Object.defineProperty(G,"setupMintbaseWallet",{enumerable:!0,get:function(){return J.setupMintbaseWallet}})},43150:function(W,G,H){"use strict";var J,Q=this&&this.__createBinding||(Object.create?function(W,G,H,J){void 0===J&&(J=H);var Q=Object.getOwnPropertyDescriptor(G,H);(!Q||("get"in Q?!G.__esModule:Q.writable||Q.configurable))&&(Q={enumerable:!0,get:function(){return G[H]}}),Object.defineProperty(W,J,Q)}:function(W,G,H,J){void 0===J&&(J=H),W[J]=G[H]}),ee=this&&this.__setModuleDefault||(Object.create?function(W,G){Object.defineProperty(W,"default",{enumerable:!0,value:G})}:function(W,G){W.default=G}),et=this&&this.__importStar||function(W){if(W&&W.__esModule)return W;var G={};if(null!=W)for(var H in W)"default"!==H&&Object.prototype.hasOwnProperty.call(W,H)&&Q(G,W,H);return ee(G,W),G},eo=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.MintbaseWallet=G.TransactionSuccessEnum=void 0;let ei=et(H(52434)),ea=H(94714);!function(W){W.MINT="mint",W.TRANSFER="transfer",W.BURN="burn",W.DEPLOY_STORE="deploy-store",W.MAKE_OFFER="make-offer",W.REVOKE_MINTER="revoke-minter",W.ADD_MINTER="add-minter",W.TRANSFER_STORE_OWNERSHIP="transfer-store-ownership",W.AUCTION_LIST="list",W.SIMPLE_SALE_LIST="simple-sale-list",W.UNLIST="unlist",W.TAKE_OFFER="take-offer",W.WITHDRAW_OFFER="withdraw-offer"}(J=G.TransactionSuccessEnum||(G.TransactionSuccessEnum={}));let es=({metadata:W,options:G,successUrl:H,failureUrl:J,contractId:Q,callback:ee,networkId:et})=>eo(void 0,void 0,void 0,function*(){let es;let eu=()=>eo(void 0,void 0,void 0,function*(){{let{connect:H,WalletConnection:J,keyStores:Q}=ei,eo={networkId:et,keyStore:new Q.BrowserLocalStorageKeyStore,nodeUrl:G.network.nodeUrl,walletUrl:W.walletUrl,headers:{}},ea=new URL(window.location.href),es=ea.searchParams.get("account_id");es&&(null==es?void 0:es.length)>0&&(localStorage.setItem("mintbase-wallet:callback_url",ee),localStorage.setItem("mintbase-wallet_wallet_auth_key",JSON.stringify({accountId:es,allKeys:[]})));let eu=yield H(eo),ec=new J(eu,"mintbase-wallet");return{wallet:ec}}}),ec=yield eu(),ef=()=>es,ed=()=>eo(void 0,void 0,void 0,function*(){return!!es}),eh=()=>eo(void 0,void 0,void 0,function*(){var W;let G=yield e_(),Q=encodeURI(null===(W=null==window?void 0:window.location)||void 0===W?void 0:W.href);return G.length?G:(yield ec.wallet.requestSignIn({methodNames:[],successUrl:H||Q,failureUrl:J||Q}),e_())}),ep=()=>eo(void 0,void 0,void 0,function*(){window.localStorage.removeItem("mintbase-wallet:account-data"),ec.wallet.isSignedIn()&&ec.wallet.signOut()}),ey=W=>{if(W&&W!==ec.wallet.getAccountId())throw Error(`Cannot sign transactions for ${W} while signed in as ${es}`)},ev=({transactions:G,callbackUrl:H})=>eo(void 0,void 0,void 0,function*(){let{cbUrl:J}=(0,ea.getCallbackUrl)(null!=H?H:"");for(let{signerId:W}of G)ey(W);let Q=JSON.stringify(G),ee=encodeURIComponent(Q),et=new URL(`${W.walletUrl}/sign-transaction`);et.searchParams.set("transactions_data",ee),et.searchParams.set("callback_url",J),window.location.assign(et.toString())}),em=({receiverId:G,actions:J,signerId:ee,callbackUrl:et})=>eo(void 0,void 0,void 0,function*(){if(ey(ee),!G&&!Q)throw Error("No receiver found to send the transaction to");let eo=JSON.stringify([{receiverId:G,signerId:ee,actions:J}]),{cbUrl:ei}=(0,ea.getCallbackUrl)(null!=et?et:""),es=encodeURIComponent(eo),eu=new URL(window.location.href),ec=new URL(`${W.walletUrl}/sign-transaction`);ec.searchParams.set("transactions_data",es),H&&H&&H.length>0&&ec.searchParams.set("success_url",H||eu.toString()),ec.searchParams.set("callback_url",ei),window.location.assign(ec.toString())}),eg=()=>eo(void 0,void 0,void 0,function*(){throw Error(`The verifyOwner method is not supported by ${W.name}`)}),eb=()=>eo(void 0,void 0,void 0,function*(){throw Error(`The signMessage method is not supported by ${W.name}`)}),ew=()=>eo(void 0,void 0,void 0,function*(){throw`The getAvailableBalance method is not supported by ${W.name}`}),e_=()=>eo(void 0,void 0,void 0,function*(){var W;let G=ec.wallet.getAccountId(),H=ec.wallet.account();if(!G||!H)return[];let J=window.localStorage.getItem("mintbase-wallet:account-creation-data");return[{accountId:G,publicKey:null===(W=JSON.parse(J))||void 0===W?void 0:W.devicePublicKey}]}),eS=W=>eo(void 0,void 0,void 0,function*(){return eE(W),null}),eE=W=>(es=W,window.localStorage.setItem("mintbase-wallet:activeAccountId",W),null);return{getAccountId:ef,isSignedIn:ed,signIn:eh,signOut:ep,signAndSendTransaction:em,verifyOwner:eg,signMessage:eb,getAvailableBalance:ew,getAccounts:e_,switchAccount:eS,signAndSendTransactions:ev}});G.MintbaseWallet=es},50659:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.setupMintbaseWallet=void 0;let Q=H(43150),ee=H(94714),et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAnySURBVHgB7Z0HjBVFHMa/B/YK9u6BvUSwd8EeGyrWxMKJRk3sRBNb4NDYGyQaje3EXqJCrIkN7N2zS2gHhCJVaujnfDe37szcvvd273Zv/27mlyz3Zt6+t7z9dqd+/9kSImhqauqi/vRTW2+19VRbDTxp0KC2RrUNL5VKw6J2KLkZSozT1J96tXWBJ0smqG2wK0wnM6HEeEj9eRNejI6gm9rq1TkfZGb+d4e0vFEHTx48pO6UAXzRLIgSoxa6mPLkQ5Pa+ipRhgeCsDyrgSdP5qqte+eWu6MWnrxZS21/s1I/FR4JsLTqRUFq4JFCj5IqsprgkULTaigqixYB77wDjBgBfPttmH/QQUCfPsApp6hSey1Io3h3yMyZwMMPA2+8ASxZUn6/jTYCbrgBOPNMCKKpWIJMnw6cey4wZUr8z5x0EvDgg2rMohME0CTif5EaF14YLcaaawJ77BH9GRZrd98NKRRHkKFD1XDdBDvvqKOA114DfvtNja8OB8aMAZ54AthlF3u/Z54BfvoJEihGkcUK/MADgaVLw7zbb9fFVxT8yYMHAy+8EObtvz/w4ovImYIUWR98YItxzDHlxSAl1Qe76SZgu+3CvO+/1w2CnCmGIN99Z6cvuqj6Z1ivnH++nffll8ibYggycaKd3nVXxGLnncPXLMaStM4yohiCLFtmpzfYALHYeGM7PWcO8qYYgmy6qZ0ePRqx+PNPO71yJfKmGIK4zdiXX67+GRZRL71k5wnoHBZDkFOdGQQ2Z6v1K9jEdfdZtQp5UwxBtt9eN3UDePVfcgnw0Uet9+V7Tz4J3HEHJFKc0d6BA3WzdfFinZ4/H7j8cuCww3SnkS2qX34BRo4Efv89+js6d0beFEeQLbcEHn9c90GWLw/zP/9cb3HwlXrK8E54+mmgS0xbWc+edtpX6hnACaj33tO98Jqa8vtQuCFD7HwBw3rFnDHcZBNgUIshcPZsYNy48GRvsw2w9db69dSp9udKJeRNcadwA9gbd3vkAW4z1zd7PS5eEGF4QYThBRGGF0QYXhBheEGE4QURhhdEGF4QYcg2ytEA19AA/Pqrnt1buBCpQnMEvz9g8831ZJcLjdn77gv06AHsvTcyRKjZmmNKjz2mXezm3IYENtwQqKsDTj4ZGSBQkPHjgQEDys/qSeHoo7VJu0uqIf3CBKEvij807aIpK3bcEXjrLTVmntqguTBB+vcHPvvMzjv9dOC447QZesYMbRulW911utO0cPbZSASdir17R7/H2cczzgD2209HWn31FfD228Ann9j7XXYZcP31SAlBgrzyCnDrrWF6q620O2SnnaL3f+opO65js82Ajz/Wnt24RAnCSSqGNpxwQvRnPv0UuPhie3+GPLDCbz+C3O+86k14UsqJQXhSTjwxTPPuee45JCLqWrzmmvJikCOOCGcjg+8YNgxpIUeQsWPD18cf39qAEMWNN9rpDz9EIlxTQ9euwBVXVP/ceefpOzjgjz+QFjIEcVtUcd3rtP6ss06Y5l2SBHfK1rWkVsIMkWPLMCVkCOL+oG23RWx22CF8TXNcEtz6xgzgqQTrjagOZArIEMQNJ2hsRGzM1lYSIQndKeuvn/y4rDfMfVN0q8gcy3LDBMoxaZLdZ2FTNSl77RW+TtIZNfdNUtRVQaYgo0bpmL9KsPy/8047jwa4JPDKNusCjp098kjlz/DueP55YNq0MG/33ZEWMgVZsUI3a999N7ppumABcO21trudveZynbxKnHOOnaab8f77o4/LvEcfBW67LcyjqP36IS1kdAxff711EzaA65Lssw+w227A2msD33yjY83dFhU7Z3GaylEwVmTQIDtvzz113AmbtyzWfvhBx52YAaYU4+abgdpapISQnnolQeJwwQU6HKGt8BTQNf/FF/E/QzG4MAFHpdNDaJw6h7jjtFy4z1VXtU+M4Hs41N+3b/zjcvwqXTGakSkIBwpZubKY4o83T1KQPvRQPdh39dVIhfXWA+65R4+RcVys3HH5f+L6KJdeiiyQabbmDz/2WL1xhR+uUcKmMFtWrE8OOACZcfjhuuhi7Dub1ezn8LjsgHbvHjrnM0KmIOaQxhZb6I0nqiNhT5xbBx/XmxyE4QURhhdEGF4QYXhBhOEFEYYXRBheEGF4QYThBRFGxwydBCP8nGXj+JCLa3KgJejrr5EqtHvSpRLYdwSs2hBFtvMh/Gqu7ka3388/i1iGtdlpQnsovV9cSlaWMBlOUHFmjfMUpgFOGt266WH+Sg7JjiUjQejJ5dxCFLwi4xyyLVdupe8td1wuoMkp3HIrB3UsGQjCaCfOvJnwZPB5HZzLoBeK8+K0fZrODRP6a+l2TwLnTVwXOo/L4XPag2iCYLFJR4tr9+Fcx/vvQwApC8LndfDEmyYyLq1HJ4dbLNBPxfXXuUi+C4sRhiAkgSLSpRLAQJq77rLXYgzgHXzvvfYdw2eJZDQLmICU59R51ZticCqUYQZRZTSnTO+7r/WKos3/rYTXCB0ophg0UdfXR4tBuECm6+mi10oA6QrCIsGE8Rs88ZVgvB6DKk2S1h9cjN+EVzptPJVgMI45G8giT8AjK9IV5Mcfw9f0zMaZ/qRgjLloD1xt1KRSfEcARefTdQJ4V1ZzS3YA6Qpinpgk9spyT7+Jy6xZdjrusekgMSnc4ypMJ3mShe3nzrXTNDUkYfXVK39f3OOusQbyJl1BTCsnrTtx4SOJTExHehzcuI647nkz8olFWNz4kAxJVxA38JFLsVaDwjHCNaAtTvIjj7TT9TEefM0murtoP1fBzpl0BWHHz+SBB4C//iq/P08K2//mag1J7w5y8MF2McfO36uvlt+fFTj7KOZAJ+9uM24wJ9IV5JBDbFchI6No92dfhCfB3Nhb5vIUZq+Znl7GfbeFK68MX/P7b7lFhw3w2VTmcdkAYDy8+QAwFlftMXunSPpDJ6zMGezvLlLM4ExegeuuC0ye3LrS50mh3T/pkIkJn2NoFn8BrBu4di+HatjfcI971llSnpaQ0eAiV5LmUEbcJ91wmINBMr16oV1wOIaicDwtDhSDS3kwCEcGGYUjcLCOznRGQVXqdfM9VqQc9mivGISdTAbxV5vn4Hu8U7lyhBwxmsk+YIdNWq5fwnWp2JOfN09PELFFxvrGbSGlBe9SLsrPJ0VzfI1FFdfD4jA7V4DgIGi1YZ2Op2APJ/7/U7CHExcACtIIjxQaKEgDPFKYSEFGwSMB1uVvslLnooE0RnWFJ08mlEql7p3UP/+oRH948oR3Rx1fNLeylCh0GgyBJw8oxmClwbNMWN1ZVXzVqT8D3XxPZlCMoUqM64KMVideiVILLUoNvDBZQSE4XdlfiTHCfKPsCW8Rpg+0MG1c1cXj0AjdzRiptmdb6m+LfwEGoUIy8K/6BwAAAABJRU5ErkJggg==";function eo({walletUrl:W="",deprecated:G=!1,successUrl:H="",failureUrl:eo="",callbackUrl:ei="",contractId:ea=""}={}){return es=>J(this,void 0,void 0,function*(){let J={id:"mintbase-wallet",type:"browser",metadata:{name:"Mintbase Wallet",description:"NEAR wallet to store, buy, send and stake assets for DeFi.",iconUrl:et,deprecated:G,available:!0,successUrl:H,failureUrl:eo,walletUrl:(0,ee.resolveWalletUrl)(es.options.network.networkId,W)},init:W=>(0,Q.MintbaseWallet)(Object.assign({callback:ei,networkId:es.options.network,successUrl:H,failureUrl:eo,contractId:ea},W))};return J})}G.setupMintbaseWallet=eo},94714:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.resolveWalletUrl=G.getCallbackUrl=G.checkCallbackUrl=void 0;let H=W=>{function G(W){let G=/^(https?|ftp|http?):\/\/[^\s/$.?#].[^\s]*$/;return G.test(W)}if(null!==W&&W.length>0){if(G(W)){if(W.startsWith("https://")||W.startsWith("http://"))return W.endsWith("/")?W.slice(0,-1):W}else console.error("callbackUrl set with wrong format. please use an URL with http:// or https:// instead.Further help available on our telegram channel: https://t.me/mintdev")}else{let W=localStorage.getItem("mintbase-wallet:callback_url");if(G(W))return W;console.error("please set your callbackUrl property on setupMintbaseWallet - further help available on our telegram channel: https://t.me/mintdev")}return new URL(window.location.href).toString()};G.checkCallbackUrl=H;let J=W=>{var G,J,Q,ee,et,eo;{let ei="";(null===(J=null===(G=null==window?void 0:window.mbjs)||void 0===G?void 0:G.keys)||void 0===J?void 0:J.callbackUrl)&&(null===(ee=null===(Q=null==window?void 0:window.mbjs)||void 0===Q?void 0:Q.keys)||void 0===ee?void 0:ee.callbackUrl.length)>0&&(ei=null===(eo=null===(et=null==window?void 0:window.mbjs)||void 0===et?void 0:et.keys)||void 0===eo?void 0:eo.callbackUrl);let ea=(null==localStorage?void 0:localStorage.getItem("mintbase-wallet:callback_url"))||ei,es=null!=W?W:ea,eu=H(es);return{cbUrl:eu}}};G.getCallbackUrl=J;let Q=(W,G)=>{if(G)return G;switch(W){case"mainnet":return"https://wallet.mintbase.xyz";case"testnet":return"https://testnet.wallet.mintbase.xyz/";default:throw Error("Invalid wallet url")}};G.resolveWalletUrl=Q},44213:function(W,G,H){"use strict";var J=H(80854).Buffer,Q=H(20352),ee=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})},et=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.Account=void 0;let eo=H(34990),ei=H(84216),ea=H(58598),es=H(96367),eu=H(60077),ec=et(H(60079)),ef=H(66012),{addKey:ed,createAccount:eh,deleteAccount:ep,deleteKey:ey,deployContract:ev,fullAccessKey:em,functionCall:eg,functionCallAccessKey:eb,stake:ew,transfer:e_}=ea.actionCreators,eS=12,eE=500,eO=1.5;function eA(W){return JSON.parse(J.from(W).toString())}function eP(W){return J.from(JSON.stringify(W))}class eM{constructor(W,G){this.accessKeyByPublicKeyCache={},this.connection=W,this.accountId=G}state(){return ee(this,void 0,void 0,function*(){return this.connection.provider.query({request_type:"view_account",account_id:this.accountId,finality:"optimistic"})})}signTransaction(W,G){return ee(this,void 0,void 0,function*(){let H=yield this.findAccessKey(W,G);if(!H)throw new es.TypedError(`Can not sign transactions for account ${this.accountId} on network ${this.connection.networkId}, no matching key pair exists for this account`,"KeyNotFound");let{accessKey:J}=H,Q=yield this.connection.provider.block({finality:"final"}),ee=Q.header.hash,et=J.nonce.add(new ec.default(1));return yield(0,ea.signTransaction)(W,et,G,(0,ef.baseDecode)(ee),this.connection.signer,this.accountId,this.connection.networkId)})}signAndSendTransaction({receiverId:W,actions:G,returnError:H}){return ee(this,void 0,void 0,function*(){let J,Q;let et=yield(0,ei.exponentialBackoff)(eE,eS,eO,()=>ee(this,void 0,void 0,function*(){[J,Q]=yield this.signTransaction(W,G);let H=Q.transaction.publicKey;try{return yield this.connection.provider.sendTransaction(Q)}catch(G){if("InvalidNonce"===G.type)return(0,eu.logWarning)(`Retrying transaction ${W}:${(0,ef.baseEncode)(J)} with new nonce.`),delete this.accessKeyByPublicKeyCache[H.toString()],null;if("Expired"===G.type)return(0,eu.logWarning)(`Retrying transaction ${W}:${(0,ef.baseEncode)(J)} due to expired block hash`),null;throw G.context=new es.ErrorContext((0,ef.baseEncode)(J)),G}}));if(!et)throw new es.TypedError("nonce retries exceeded for transaction. This usually means there are too many parallel requests with the same access key.","RetriesExceeded");if((0,eu.printTxOutcomeLogsAndFailures)({contractId:Q.transaction.receiverId,outcome:et}),!H&&"object"==typeof et.status&&"object"==typeof et.status.Failure&&null!==et.status.Failure){if(et.status.Failure.error_message&&et.status.Failure.error_type)throw new es.TypedError(`Transaction ${et.transaction_outcome.id} failed. ${et.status.Failure.error_message}`,et.status.Failure.error_type);throw(0,eu.parseResultError)(et)}return et})}findAccessKey(W,G){return ee(this,void 0,void 0,function*(){let W=yield this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);if(!W)throw new es.TypedError(`no matching key pair found in ${this.connection.signer}`,"PublicKeyNotFound");let G=this.accessKeyByPublicKeyCache[W.toString()];if(void 0!==G)return{publicKey:W,accessKey:G};try{let G=yield this.connection.provider.query({request_type:"view_access_key",account_id:this.accountId,public_key:W.toString(),finality:"optimistic"}),H=Object.assign(Object.assign({},G),{nonce:new ec.default(G.nonce)});if(this.accessKeyByPublicKeyCache[W.toString()])return{publicKey:W,accessKey:this.accessKeyByPublicKeyCache[W.toString()]};return this.accessKeyByPublicKeyCache[W.toString()]=H,{publicKey:W,accessKey:H}}catch(W){if("AccessKeyDoesNotExist"==W.type)return null;throw W}})}createAndDeployContract(W,G,H,J){return ee(this,void 0,void 0,function*(){let Q=em();yield this.signAndSendTransaction({receiverId:W,actions:[eh(),e_(J),ed(eo.PublicKey.from(G),Q),ev(H)]});let ee=new eM(this.connection,W);return ee})}sendMoney(W,G){return ee(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:W,actions:[e_(G)]})})}createAccount(W,G,H){return ee(this,void 0,void 0,function*(){let J=em();return this.signAndSendTransaction({receiverId:W,actions:[eh(),e_(H),ed(eo.PublicKey.from(G),J)]})})}deleteAccount(W){return ee(this,void 0,void 0,function*(){return Q.env.NEAR_NO_LOGS||console.log("Deleting an account does not automatically transfer NFTs and FTs to the beneficiary address. Ensure to transfer assets before deleting."),this.signAndSendTransaction({receiverId:this.accountId,actions:[ep(W)]})})}deployContract(W){return ee(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:this.accountId,actions:[ev(W)]})})}encodeJSContractArgs(W,G,H){return J.concat([J.from(W),J.from([0]),J.from(G),J.from([0]),J.from(H)])}functionCall({contractId:W,methodName:G,args:H={},gas:J=eu.DEFAULT_FUNCTION_CALL_GAS,attachedDeposit:Q,walletMeta:et,walletCallbackUrl:eo,stringify:ei,jsContract:es}){return ee(this,void 0,void 0,function*(){let ee;if(this.validateArgs(H),es){let et=this.encodeJSContractArgs(W,G,JSON.stringify(H));ee=["call_js_contract",et,J,Q,null,!0]}else{let W=void 0===ei?ea.stringifyJsonOrBytes:ei;ee=[G,H,J,Q,W,!1]}return this.signAndSendTransaction({receiverId:es?this.connection.jsvmAccountId:W,actions:[eg.apply(void 0,ee)],walletMeta:et,walletCallbackUrl:eo})})}addKey(W,G,H,J){return ee(this,void 0,void 0,function*(){let Q;return H||(H=[]),Array.isArray(H)||(H=[H]),Q=G?eb(G,H,J):em(),this.signAndSendTransaction({receiverId:this.accountId,actions:[ed(eo.PublicKey.from(W),Q)]})})}deleteKey(W){return ee(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:this.accountId,actions:[ey(eo.PublicKey.from(W))]})})}stake(W,G){return ee(this,void 0,void 0,function*(){return this.signAndSendTransaction({receiverId:this.accountId,actions:[ew(G,eo.PublicKey.from(W))]})})}signedDelegate({actions:W,blockHeightTtl:G,receiverId:H}){return ee(this,void 0,void 0,function*(){let{provider:J,signer:Q}=this.connection,{header:et}=yield J.block({finality:"final"}),{accessKey:eo,publicKey:ei}=yield this.findAccessKey(null,null),es=(0,ea.buildDelegateAction)({actions:W,maxBlockHeight:new ec.default(et.height).add(new ec.default(G)),nonce:new ec.default(eo.nonce).add(new ec.default(1)),publicKey:ei,receiverId:H,senderId:this.accountId}),{signedDelegateAction:eu}=yield(0,ea.signDelegateAction)({delegateAction:es,signer:{sign:W=>ee(this,void 0,void 0,function*(){let{signature:G}=yield Q.signMessage(W,es.senderId,this.connection.networkId);return G})}});return eu})}validateArgs(W){let G=void 0!==W.byteLength&&W.byteLength===W.length;if(!G&&(Array.isArray(W)||"object"!=typeof W))throw new es.PositionalArgsError}viewFunction({contractId:W,methodName:G,args:H={},parse:Q=eA,stringify:et=eP,jsContract:eo=!1,blockQuery:ei={finality:"optimistic"}}){return ee(this,void 0,void 0,function*(){let ee;this.validateArgs(H),ee=eo?this.encodeJSContractArgs(W,G,Object.keys(H).length>0?JSON.stringify(H):""):et(H);let ea=yield this.connection.provider.query(Object.assign(Object.assign({request_type:"call_function"},ei),{account_id:eo?this.connection.jsvmAccountId:W,method_name:eo?"view_js_contract":G,args_base64:ee.toString("base64")}));return ea.logs&&(0,eu.printTxOutcomeLogs)({contractId:W,logs:ea.logs}),ea.result&&ea.result.length>0&&Q(J.from(ea.result))})}viewState(W,G={finality:"optimistic"}){return ee(this,void 0,void 0,function*(){let{values:H}=yield this.connection.provider.query(Object.assign(Object.assign({request_type:"view_state"},G),{account_id:this.accountId,prefix_base64:J.from(W).toString("base64")}));return H.map(({key:W,value:G})=>({key:J.from(W,"base64"),value:J.from(G,"base64")}))})}getAccessKeys(){var W;return ee(this,void 0,void 0,function*(){let G=yield this.connection.provider.query({request_type:"view_access_key_list",account_id:this.accountId,finality:"optimistic"});return null===(W=null==G?void 0:G.keys)||void 0===W?void 0:W.map(W=>Object.assign(Object.assign({},W),{access_key:Object.assign(Object.assign({},W.access_key),{nonce:new ec.default(W.access_key.nonce)})}))})}getAccountDetails(){return ee(this,void 0,void 0,function*(){let W=yield this.getAccessKeys(),G=W.filter(W=>"FullAccess"!==W.access_key.permission).map(W=>{let G=W.access_key.permission;return{contractId:G.FunctionCall.receiver_id,amount:G.FunctionCall.allowance,publicKey:W.public_key}});return{authorizedApps:G}})}getAccountBalance(){return ee(this,void 0,void 0,function*(){let W=yield this.connection.provider.experimental_protocolConfig({finality:"final"}),G=yield this.state(),H=new ec.default(W.runtime_config.storage_amount_per_byte),J=new ec.default(G.storage_usage).mul(H),Q=new ec.default(G.locked),ee=new ec.default(G.amount).add(Q),et=ee.sub(ec.default.max(Q,J));return{total:ee.toString(),stateStaked:J.toString(),staked:Q.toString(),available:et.toString()}})}getActiveDelegatedStakeBalance(){return ee(this,void 0,void 0,function*(){let W=yield this.connection.provider.block({finality:"final"}),G=W.header.hash,H=W.header.epoch_id,{current_validators:J,next_validators:Q,current_proposals:ee}=yield this.connection.provider.validators(H),et=new Set;[...J,...Q,...ee].forEach(W=>et.add(W.account_id));let eo=[...et],ei=eo.map(W=>this.viewFunction({contractId:W,methodName:"get_account_total_balance",args:{account_id:this.accountId},blockQuery:{blockId:G}})),ea=yield Promise.allSettled(ei),es=ea.some(W=>"rejected"===W.status&&"TimeoutError"===W.reason.type);if(es)throw Error("Failed to get delegated stake balance");let eu=ea.reduce((W,G,H)=>{let J=eo[H];if("fulfilled"===G.status){let H=new ec.default(G.value);if(!H.isZero())return Object.assign(Object.assign({},W),{stakedValidators:[...W.stakedValidators,{validatorId:J,amount:H.toString()}],total:W.total.add(H)})}return"rejected"===G.status?Object.assign(Object.assign({},W),{failedValidators:[...W.failedValidators,{validatorId:J,error:G.reason}]}):W},{stakedValidators:[],failedValidators:[],total:new ec.default(0)});return Object.assign(Object.assign({},eu),{total:eu.total.toString()})})}}G.Account=eM},6327:function(W,G,H){"use strict";var J=H(80854).Buffer,Q=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})},ee=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.Account2FA=void 0;let et=H(34990),eo=H(96367),ei=H(84216),ea=H(58598),es=ee(H(60079)),eu=H(87202),ec=H(42001),ef=H(20414),{addKey:ed,deleteKey:eh,deployContract:ep,fullAccessKey:ey,functionCall:ev,functionCallAccessKey:em}=ea.actionCreators;class eg extends eu.AccountMultisig{constructor(W,G,H){super(W,G,H),this.helperUrl="https://helper.testnet.near.org",this.helperUrl=H.helperUrl||this.helperUrl,this.storage=H.storage,this.sendCode=H.sendCode||this.sendCodeDefault,this.getCode=H.getCode||this.getCodeDefault,this.verifyCode=H.verifyCode||this.verifyCodeDefault,this.onConfirmResult=H.onConfirmResult}signAndSendTransaction({receiverId:W,actions:G}){let H=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return Q(this,void 0,void 0,function*(){yield H.signAndSendTransaction.call(this,{receiverId:W,actions:G}),yield this.sendCode();let J=yield this.promptAndVerify();return this.onConfirmResult&&(yield this.onConfirmResult(J)),J})}deployMultisig(W){let G=Object.create(null,{signAndSendTransactionWithAccount:{get:()=>super.signAndSendTransactionWithAccount}});return Q(this,void 0,void 0,function*(){let{accountId:H}=this,Q=(yield this.getRecoveryMethods()).data.filter(({kind:W,publicKey:G})=>("phrase"===W||"ledger"===W)&&null!==G).map(W=>W.publicKey),ee=(yield this.getAccessKeys()).filter(({public_key:W,access_key:{permission:G}})=>"FullAccess"===G&&!Q.includes(W)).map(W=>W.public_key).map(eb),et=eb((yield this.postSignedJson("/2fa/getAccessKey",{accountId:H})).publicKey),ei=J.from(JSON.stringify({num_confirmations:2})),ea=[...ee.map(W=>eh(W)),...ee.map(W=>ed(W,em(H,ec.MULTISIG_CHANGE_METHODS,null))),ed(et,em(H,ec.MULTISIG_CONFIRM_METHODS,null)),ep(W)],es=ea.concat(ev("new",ei,ec.MULTISIG_GAS,ec.MULTISIG_DEPOSIT));console.log("deploying multisig contract for",H);let{stateStatus:eu}=yield this.checkMultisigCodeAndStateStatus(W);switch(eu){case ef.MultisigStateStatus.STATE_NOT_INITIALIZED:return yield G.signAndSendTransactionWithAccount.call(this,H,es);case ef.MultisigStateStatus.VALID_STATE:return yield G.signAndSendTransactionWithAccount.call(this,H,ea);case ef.MultisigStateStatus.INVALID_STATE:throw new eo.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account has existing state.`,"ContractHasExistingState");default:throw new eo.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account state could not be verified.`,"ContractStateUnknown")}})}disableWithFAK({contractBytes:W,cleanupContractBytes:G}){return Q(this,void 0,void 0,function*(){let H=[];G&&(yield this.deleteAllRequests().catch(W=>W),H=yield this.get2faDisableCleanupActions(G));let J=yield this.get2faDisableKeyConversionActions(),Q=[...H,...J,ep(W)],ee=yield this.findAccessKey(this.accountId,Q);if(ee&&ee.accessKey&&"FullAccess"!==ee.accessKey.permission)throw new eo.TypedError("No full access key found in keystore. Unable to bypass multisig","NoFAKFound");return this.signAndSendTransactionWithAccount(this.accountId,Q)})}get2faDisableCleanupActions(W){return Q(this,void 0,void 0,function*(){let G=yield this.viewState("").catch(W=>{let G=W.cause&&W.cause.name;if("NO_CONTRACT_CODE"==G)return[];throw"TOO_LARGE_CONTRACT_STATE"==G?new eo.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account has existing state.`,"ContractHasExistingState"):W}),H=G.map(({key:W})=>W.toString("base64"));return G.length?[ep(W),ev("clean",{keys:H},ec.MULTISIG_GAS,new es.default("0"))]:[]})}get2faDisableKeyConversionActions(){return Q(this,void 0,void 0,function*(){let{accountId:W}=this,G=yield this.getAccessKeys(),H=G.filter(({access_key:W})=>"FullAccess"!==W.permission).filter(({access_key:G})=>{let H=G.permission.FunctionCall;return H.receiver_id===W&&4===H.method_names.length&&H.method_names.includes("add_request_and_confirm")}),J=et.PublicKey.from((yield this.postSignedJson("/2fa/getAccessKey",{accountId:W})).publicKey);return[eh(J),...H.map(({public_key:W})=>eh(et.PublicKey.from(W))),...H.map(({public_key:W})=>ed(et.PublicKey.from(W),ey()))]})}disable(W,G){return Q(this,void 0,void 0,function*(){let H;let{stateStatus:J}=yield this.checkMultisigCodeAndStateStatus();if(J!==ef.MultisigStateStatus.VALID_STATE&&J!==ef.MultisigStateStatus.STATE_NOT_INITIALIZED)throw new eo.TypedError(`Can not deploy a contract to account ${this.accountId} on network ${this.connection.networkId}, the account state could not be verified.`,"ContractStateUnknown");yield this.deleteAllRequests().catch(W=>H=W);let Q=yield this.get2faDisableCleanupActions(G).catch(W=>{if("ContractHasExistingState"===W.type)throw H||W;throw W}),ee=[...Q,...yield this.get2faDisableKeyConversionActions(),ep(W)];return console.log("disabling 2fa for",this.accountId),yield this.signAndSendTransaction({receiverId:this.accountId,actions:ee})})}sendCodeDefault(){return Q(this,void 0,void 0,function*(){let{accountId:W}=this,{requestId:G}=this.getRequest(),H=yield this.get2faMethod();return yield this.postSignedJson("/2fa/send",{accountId:W,method:H,requestId:G}),G})}getCodeDefault(){return Q(this,void 0,void 0,function*(){throw Error('There is no getCode callback provided. Please provide your own in AccountMultisig constructor options. It has a parameter method where method.kind is "email" or "phone".')})}promptAndVerify(){return Q(this,void 0,void 0,function*(){let W=yield this.get2faMethod(),G=yield this.getCode(W);try{let W=yield this.verifyCode(G);return W}catch(W){if(console.warn("Error validating security code:",W),W.toString().includes("invalid 2fa code provided")||W.toString().includes("2fa code not valid"))return yield this.promptAndVerify();throw W}})}verifyCodeDefault(W){return Q(this,void 0,void 0,function*(){let{accountId:G}=this,H=this.getRequest();if(!H)throw Error("no request pending");let{requestId:J}=H;return yield this.postSignedJson("/2fa/verify",{accountId:G,securityCode:W,requestId:J})})}getRecoveryMethods(){return Q(this,void 0,void 0,function*(){let{accountId:W}=this;return{accountId:W,data:yield this.postSignedJson("/account/recoveryMethods",{accountId:W})}})}get2faMethod(){return Q(this,void 0,void 0,function*(){let{data:W}=yield this.getRecoveryMethods();if(W&&W.length&&(W=W.find(W=>0===W.kind.indexOf("2fa-"))),!W)return null;let{kind:G,detail:H}=W;return{kind:G,detail:H}})}signatureFor(){return Q(this,void 0,void 0,function*(){let{accountId:W}=this,G=yield this.connection.provider.block({finality:"final"}),H=G.header.height.toString(),Q=yield this.connection.signer.signMessage(J.from(H),W,this.connection.networkId),ee=J.from(Q.signature).toString("base64");return{blockNumber:H,blockNumberSignature:ee}})}postSignedJson(W,G){return Q(this,void 0,void 0,function*(){return yield(0,ei.fetchJson)(this.helperUrl+W,JSON.stringify(Object.assign(Object.assign({},G),(yield this.signatureFor()))))})}}G.Account2FA=eg;let eb=W=>et.PublicKey.from(W)},33100:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.UrlAccountCreator=G.LocalAccountCreator=G.AccountCreator=void 0;let Q=H(84216);class ee{}G.AccountCreator=ee;class et extends ee{constructor(W,G){super(),this.masterAccount=W,this.initialBalance=G}createAccount(W,G){return J(this,void 0,void 0,function*(){yield this.masterAccount.createAccount(W,G,this.initialBalance)})}}G.LocalAccountCreator=et;class eo extends ee{constructor(W,G){super(),this.connection=W,this.helperUrl=G}createAccount(W,G){return J(this,void 0,void 0,function*(){yield(0,Q.fetchJson)(`${this.helperUrl}/account`,JSON.stringify({newAccountId:W,newAccountPublicKey:G.toString()}))})}}G.UrlAccountCreator=eo},87202:function(W,G,H){"use strict";var J,Q=H(80854).Buffer,ee=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.AccountMultisig=void 0;let et=H(58598),eo=H(44213),ei=H(42001),ea=H(20414),{deployContract:es,functionCall:eu}=et.actionCreators;!function(W){W[W.INVALID_CODE=0]="INVALID_CODE",W[W.VALID_CODE=1]="VALID_CODE",W[W.UNKNOWN_CODE=2]="UNKNOWN_CODE"}(J||(J={}));let ec={[ei.MULTISIG_STORAGE_KEY]:null};class ef extends eo.Account{constructor(W,G,H){super(W,G),this.storage=H.storage,this.onAddRequestResult=H.onAddRequestResult}signAndSendTransactionWithAccount(W,G){let H=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return ee(this,void 0,void 0,function*(){return H.signAndSendTransaction.call(this,{receiverId:W,actions:G})})}signAndSendTransaction({receiverId:W,actions:G}){let H=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return ee(this,void 0,void 0,function*(){let J;let{accountId:ee}=this,et=Q.from(JSON.stringify({request:{receiver_id:W,actions:eh(G,ee,W)}}));try{J=yield H.signAndSendTransaction.call(this,{receiverId:ee,actions:[eu("add_request_and_confirm",et,ei.MULTISIG_GAS,ei.MULTISIG_DEPOSIT)]})}catch(H){if(H.toString().includes("Account has too many active requests. Confirm or delete some"))return yield this.deleteUnconfirmedRequests(),yield this.signAndSendTransaction({receiverId:W,actions:G});throw H}if(!J.status)throw Error("Request failed");let eo=Object.assign({},J.status);if(!eo.SuccessValue||"string"!=typeof eo.SuccessValue)throw Error("Request failed");return this.setRequest({accountId:ee,actions:G,requestId:parseInt(Q.from(eo.SuccessValue,"base64").toString("ascii"),10)}),this.onAddRequestResult&&(yield this.onAddRequestResult(J)),this.deleteUnconfirmedRequests(),J})}checkMultisigCodeAndStateStatus(W){let G=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return ee(this,void 0,void 0,function*(){let H=4294967295,Q=W?J.UNKNOWN_CODE:J.VALID_CODE;try{return W?yield G.signAndSendTransaction.call(this,{receiverId:this.accountId,actions:[es(W),eu("delete_request",{request_id:H},ei.MULTISIG_GAS,ei.MULTISIG_DEPOSIT)]}):yield this.deleteRequest(H),{codeStatus:J.VALID_CODE,stateStatus:ea.MultisigStateStatus.VALID_STATE}}catch(W){if(new RegExp(ea.MultisigDeleteRequestRejectionError.CANNOT_DESERIALIZE_STATE).test(W&&W.kind&&W.kind.ExecutionError))return{codeStatus:Q,stateStatus:ea.MultisigStateStatus.INVALID_STATE};if(new RegExp(ea.MultisigDeleteRequestRejectionError.MULTISIG_NOT_INITIALIZED).test(W&&W.kind&&W.kind.ExecutionError))return{codeStatus:Q,stateStatus:ea.MultisigStateStatus.STATE_NOT_INITIALIZED};if(new RegExp(ea.MultisigDeleteRequestRejectionError.NO_SUCH_REQUEST).test(W&&W.kind&&W.kind.ExecutionError))return{codeStatus:Q,stateStatus:ea.MultisigStateStatus.VALID_STATE};if(new RegExp(ea.MultisigDeleteRequestRejectionError.METHOD_NOT_FOUND).test(W&&W.message))return{codeStatus:J.INVALID_CODE,stateStatus:ea.MultisigStateStatus.UNKNOWN_STATE};throw W}})}deleteRequest(W){return super.signAndSendTransaction({receiverId:this.accountId,actions:[eu("delete_request",{request_id:W},ei.MULTISIG_GAS,ei.MULTISIG_DEPOSIT)]})}deleteAllRequests(){return ee(this,void 0,void 0,function*(){let W=yield this.getRequestIds();W.length&&(yield Promise.all(W.map(W=>this.deleteRequest(W))))})}deleteUnconfirmedRequests(){let W=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return ee(this,void 0,void 0,function*(){let G=yield this.getRequestIds(),{requestId:H}=this.getRequest();for(let J of G)if(J!=H)try{yield W.signAndSendTransaction.call(this,{receiverId:this.accountId,actions:[eu("delete_request",{request_id:J},ei.MULTISIG_GAS,ei.MULTISIG_DEPOSIT)]})}catch(W){console.warn("Attempt to delete an earlier request before 15 minutes failed. Will try again.")}})}getRequestIds(){return ee(this,void 0,void 0,function*(){return this.viewFunction({contractId:this.accountId,methodName:"list_request_ids"})})}getRequest(){return this.storage?JSON.parse(this.storage.getItem(ei.MULTISIG_STORAGE_KEY)||"{}"):ec[ei.MULTISIG_STORAGE_KEY]}setRequest(W){if(this.storage)return this.storage.setItem(ei.MULTISIG_STORAGE_KEY,JSON.stringify(W));ec[ei.MULTISIG_STORAGE_KEY]=W}}G.AccountMultisig=ef;let ed=W=>W.toString().replace("ed25519:",""),eh=(W,G,H)=>W.map(W=>{let J=W.enum,{gas:ee,publicKey:et,methodName:eo,args:ea,deposit:es,accessKey:eu,code:ec}=W[J],ef={type:J[0].toUpperCase()+J.substr(1),gas:ee&&ee.toString()||void 0,public_key:et&&ed(et)||void 0,method_name:eo,args:ea&&Q.from(ea).toString("base64")||void 0,code:ec&&Q.from(ec).toString("base64")||void 0,amount:es&&es.toString()||void 0,deposit:es&&es.toString()||"0",permission:void 0};if(eu&&(H===G&&"fullAccess"!==eu.permission.enum&&(ef.permission={receiver_id:G,allowance:ei.MULTISIG_ALLOWANCE.toString(),method_names:ei.MULTISIG_CHANGE_METHODS}),"functionCall"===eu.permission.enum)){let{receiverId:W,methodNames:G,allowance:H}=eu.permission.functionCall;ef.permission={receiver_id:W,allowance:H&&H.toString()||void 0,method_names:G}}return ef})},18010:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Connection=void 0;let J=H(14865),Q=H(84216);function ee(W){switch(W.type){case void 0:return W;case"JsonRpcProvider":return new Q.JsonRpcProvider(Object.assign({},W.args));default:throw Error(`Unknown provider type ${W.type}`)}}function et(W){switch(W.type){case void 0:return W;case"InMemorySigner":return new J.InMemorySigner(W.keyStore);default:throw Error(`Unknown signer type ${W.type}`)}}class eo{constructor(W,G,H,J){this.networkId=W,this.provider=G,this.signer=H,this.jsvmAccountId=J}static fromConfig(W){let G=ee(W.provider),H=et(W.signer);return new eo(W.networkId,G,H,W.jsvmAccountId)}}G.Connection=eo},42001:function(W,G,H){"use strict";var J=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.MULTISIG_CONFIRM_METHODS=G.MULTISIG_CHANGE_METHODS=G.MULTISIG_DEPOSIT=G.MULTISIG_GAS=G.MULTISIG_ALLOWANCE=G.MULTISIG_STORAGE_KEY=void 0;let Q=H(60077),ee=J(H(60079));G.MULTISIG_STORAGE_KEY="__multisigRequest",G.MULTISIG_ALLOWANCE=new ee.default((0,Q.parseNearAmount)("1")),G.MULTISIG_GAS=new ee.default("100000000000000"),G.MULTISIG_DEPOSIT=new ee.default("0"),G.MULTISIG_CHANGE_METHODS=["add_request","add_request_and_confirm","delete_request","confirm"],G.MULTISIG_CONFIRM_METHODS=["confirm"]},39292:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})},Q=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.Contract=void 0;let ee=H(60077),et=H(96367),eo=Q(H(53758)),ei=Q(H(98286)),ea=Q(H(60079)),es=Q(H(73492)),eu=H(8312),ec=H(29810);function ef(W,G){return({[W]:(...W)=>G(...W)})[W]}function ed(W,G,H,J){var Q;if(!ey(W))return;if(G.params&&G.params.serialization_type!==eu.AbiSerializationType.Json)throw new ec.UnsupportedSerializationError(G.name,G.params.serialization_type);if(G.result&&G.result.serialization_type!==eu.AbiSerializationType.Json)throw new ec.UnsupportedSerializationError(G.name,G.result.serialization_type);let ee=(null===(Q=G.params)||void 0===Q?void 0:Q.args)||[];for(let G of ee){let Q=W[G.name],ee=G.type_schema;ee.definitions=J.body.root_schema.definitions;let et=H.compile(ee);if(!et(Q))throw new ec.ArgumentSchemaError(G.name,et.errors)}for(let G of Object.keys(W)){let W=ee.find(W=>W.name===G);if(!W)throw new ec.UnknownArgumentError(G,ee.map(W=>W.name))}}function eh(){let W=new eo.default({strictSchema:!1,formats:{uint32:!0,uint64:!0}});return(0,ei.default)(W),W}let ep=W=>W&&void 0!==W.byteLength&&W.byteLength===W.length,ey=W=>"[object Object]"===Object.prototype.toString.call(W);class ev{constructor(W,G,H){this.account=W,this.contractId=G;let{viewMethods:Q=[],changeMethods:ee=[],abi:eo}=H,ei=Q.map(W=>({name:W,abi:null})),ea=ee.map(W=>({name:W,abi:null}));if(eo){if(ei.length>0||ea.length>0)throw new ec.ConflictingOptions;ei=eo.body.functions.filter(W=>W.kind===eu.AbiFunctionKind.View).map(W=>({name:W.name,abi:W})),ea=eo.body.functions.filter(W=>W.kind===eu.AbiFunctionKind.Call).map(W=>({name:W.name,abi:W}))}let ev=eh();ei.forEach(({name:W,abi:G})=>{Object.defineProperty(this,W,{writable:!1,enumerable:!0,value:ef(W,(H={},Q={},...ee)=>J(this,void 0,void 0,function*(){if(ee.length||!(ey(H)||ep(H))||!ey(Q))throw new et.PositionalArgsError;return G&&ed(H,G,ev,eo),this.account.viewFunction(Object.assign({contractId:this.contractId,methodName:W,args:H},Q))}))})}),ea.forEach(({name:W,abi:G})=>{Object.defineProperty(this,W,{writable:!1,enumerable:!0,value:ef(W,(...H)=>J(this,void 0,void 0,function*(){if(H.length&&(H.length>3||!(ey(H[0])||ep(H[0]))))throw new et.PositionalArgsError;if(H.length>1||!(H[0]&&H[0].args)){let W=(0,es.default)("contract.methodName(args, gas, amount)");W("use `contract.methodName({ args, gas?, amount?, callbackUrl?, meta? })` instead"),H[0]={args:H[0],gas:H[1],amount:H[2]}}return G&&ed(H[0].args,G,ev,eo),this._changeMethod(Object.assign({methodName:W},H[0]))}))})})}_changeMethod({args:W,methodName:G,gas:H,amount:Q,meta:et,callbackUrl:eo}){return J(this,void 0,void 0,function*(){em({gas:H,amount:Q});let J=yield this.account.functionCall({contractId:this.contractId,methodName:G,args:W,gas:H,attachedDeposit:Q,walletMeta:et,walletCallbackUrl:eo});return(0,ee.getTransactionLastResult)(J)})}}function em(W){let G="number, decimal string or BN";for(let H of Object.keys(W)){let J=W[H];if(J&&!ea.default.isBN(J)&&isNaN(J))throw new et.ArgumentTypeError(H,G,J)}}G.Contract=ev},29810:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.ConflictingOptions=G.ArgumentSchemaError=G.UnknownArgumentError=G.UnsupportedSerializationError=void 0;class H extends Error{constructor(W,G){super(`Contract method '${W}' is using an unsupported serialization type ${G}`)}}G.UnsupportedSerializationError=H;class J extends Error{constructor(W,G){super(`Unrecognized argument '${W}', expected '${JSON.stringify(G)}'`)}}G.UnknownArgumentError=J;class Q extends Error{constructor(W,G){super(`Argument '${W}' does not conform to the specified ABI schema: '${JSON.stringify(G)}'`)}}G.ArgumentSchemaError=Q;class ee extends Error{constructor(){super("Conflicting contract method options have been passed. You can either specify ABI or a list of view/call methods.")}}G.ConflictingOptions=ee},98204:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.MultisigStateStatus=G.MultisigDeleteRequestRejectionError=G.UnsupportedSerializationError=G.UnknownArgumentError=G.ConflictingOptions=G.ArgumentSchemaError=G.Contract=G.MULTISIG_CONFIRM_METHODS=G.MULTISIG_CHANGE_METHODS=G.MULTISIG_DEPOSIT=G.MULTISIG_GAS=G.MULTISIG_ALLOWANCE=G.MULTISIG_STORAGE_KEY=G.Connection=G.AccountMultisig=G.UrlAccountCreator=G.LocalAccountCreator=G.AccountCreator=G.Account2FA=G.Account=void 0;var J=H(44213);Object.defineProperty(G,"Account",{enumerable:!0,get:function(){return J.Account}});var Q=H(6327);Object.defineProperty(G,"Account2FA",{enumerable:!0,get:function(){return Q.Account2FA}});var ee=H(33100);Object.defineProperty(G,"AccountCreator",{enumerable:!0,get:function(){return ee.AccountCreator}}),Object.defineProperty(G,"LocalAccountCreator",{enumerable:!0,get:function(){return ee.LocalAccountCreator}}),Object.defineProperty(G,"UrlAccountCreator",{enumerable:!0,get:function(){return ee.UrlAccountCreator}});var et=H(87202);Object.defineProperty(G,"AccountMultisig",{enumerable:!0,get:function(){return et.AccountMultisig}});var eo=H(18010);Object.defineProperty(G,"Connection",{enumerable:!0,get:function(){return eo.Connection}});var ei=H(42001);Object.defineProperty(G,"MULTISIG_STORAGE_KEY",{enumerable:!0,get:function(){return ei.MULTISIG_STORAGE_KEY}}),Object.defineProperty(G,"MULTISIG_ALLOWANCE",{enumerable:!0,get:function(){return ei.MULTISIG_ALLOWANCE}}),Object.defineProperty(G,"MULTISIG_GAS",{enumerable:!0,get:function(){return ei.MULTISIG_GAS}}),Object.defineProperty(G,"MULTISIG_DEPOSIT",{enumerable:!0,get:function(){return ei.MULTISIG_DEPOSIT}}),Object.defineProperty(G,"MULTISIG_CHANGE_METHODS",{enumerable:!0,get:function(){return ei.MULTISIG_CHANGE_METHODS}}),Object.defineProperty(G,"MULTISIG_CONFIRM_METHODS",{enumerable:!0,get:function(){return ei.MULTISIG_CONFIRM_METHODS}});var ea=H(39292);Object.defineProperty(G,"Contract",{enumerable:!0,get:function(){return ea.Contract}});var es=H(29810);Object.defineProperty(G,"ArgumentSchemaError",{enumerable:!0,get:function(){return es.ArgumentSchemaError}}),Object.defineProperty(G,"ConflictingOptions",{enumerable:!0,get:function(){return es.ConflictingOptions}}),Object.defineProperty(G,"UnknownArgumentError",{enumerable:!0,get:function(){return es.UnknownArgumentError}}),Object.defineProperty(G,"UnsupportedSerializationError",{enumerable:!0,get:function(){return es.UnsupportedSerializationError}});var eu=H(20414);Object.defineProperty(G,"MultisigDeleteRequestRejectionError",{enumerable:!0,get:function(){return eu.MultisigDeleteRequestRejectionError}}),Object.defineProperty(G,"MultisigStateStatus",{enumerable:!0,get:function(){return eu.MultisigStateStatus}})},20414:function(W,G){"use strict";var H,J;Object.defineProperty(G,"__esModule",{value:!0}),G.MultisigStateStatus=G.MultisigDeleteRequestRejectionError=void 0,function(W){W.CANNOT_DESERIALIZE_STATE="Cannot deserialize the contract state",W.MULTISIG_NOT_INITIALIZED="Smart contract panicked: Multisig contract should be initialized before usage",W.NO_SUCH_REQUEST="Smart contract panicked: panicked at 'No such request: either wrong number or already confirmed'",W.REQUEST_COOLDOWN_ERROR="Request cannot be deleted immediately after creation.",W.METHOD_NOT_FOUND="Contract method is not found"}(H=G.MultisigDeleteRequestRejectionError||(G.MultisigDeleteRequestRejectionError={})),function(W){W[W.INVALID_STATE=0]="INVALID_STATE",W[W.STATE_NOT_INITIALIZED=1]="STATE_NOT_INITIALIZED",W[W.VALID_STATE=2]="VALID_STATE",W[W.UNKNOWN_STATE=3]="UNKNOWN_STATE"}(J=G.MultisigStateStatus||(G.MultisigStateStatus={}))},94543:function(W,G){"use strict";var H;Object.defineProperty(G,"__esModule",{value:!0}),G.KeyType=void 0,function(W){W[W.ED25519=0]="ED25519"}(H=G.KeyType||(G.KeyType={}))},34990:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.PublicKey=G.KeyPairEd25519=G.KeyPair=G.KeyType=void 0;var J=H(94543);Object.defineProperty(G,"KeyType",{enumerable:!0,get:function(){return J.KeyType}});var Q=H(53012);Object.defineProperty(G,"KeyPair",{enumerable:!0,get:function(){return Q.KeyPair}});var ee=H(78955);Object.defineProperty(G,"KeyPairEd25519",{enumerable:!0,get:function(){return ee.KeyPairEd25519}});var et=H(63148);Object.defineProperty(G,"PublicKey",{enumerable:!0,get:function(){return et.PublicKey}})},53012:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.KeyPair=void 0;let J=H(93373),Q=H(78955);class ee extends J.KeyPairBase{static fromRandom(W){if("ED25519"===W.toUpperCase())return Q.KeyPairEd25519.fromRandom();throw Error(`Unknown curve ${W}`)}static fromString(W){let G=W.split(":");if(1===G.length)return new Q.KeyPairEd25519(G[0]);if(2===G.length){if("ED25519"===G[0].toUpperCase())return new Q.KeyPairEd25519(G[1]);throw Error(`Unknown curve: ${G[0]}`)}throw Error("Invalid encoded key format, must be <curve>:<encoded key>")}}G.KeyPair=ee},93373:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.KeyPairBase=void 0;class H{}G.KeyPairBase=H},78955:function(W,G,H){"use strict";var J=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.KeyPairEd25519=void 0;let Q=H(66012),ee=J(H(6005)),et=H(94543),eo=H(93373),ei=H(63148);class ea extends eo.KeyPairBase{constructor(W){super();let G=ee.default.sign.keyPair.fromSecretKey((0,Q.baseDecode)(W));this.publicKey=new ei.PublicKey({keyType:et.KeyType.ED25519,data:G.publicKey}),this.secretKey=W}static fromRandom(){let W=ee.default.sign.keyPair();return new ea((0,Q.baseEncode)(W.secretKey))}sign(W){let G=ee.default.sign.detached(W,(0,Q.baseDecode)(this.secretKey));return{signature:G,publicKey:this.publicKey}}verify(W,G){return this.publicKey.verify(W,G)}toString(){return`ed25519:${this.secretKey}`}getPublicKey(){return this.publicKey}}G.KeyPairEd25519=ea},63148:function(W,G,H){"use strict";var J=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.PublicKey=void 0;let Q=H(96367),ee=H(66012),et=J(H(6005)),eo=H(94543);function ei(W){if(W===eo.KeyType.ED25519)return"ed25519";throw Error(`Unknown key type ${W}`)}function ea(W){if("ed25519"===W.toLowerCase())return eo.KeyType.ED25519;throw Error(`Unknown key type ${W}`)}class es extends Q.Assignable{static from(W){return"string"==typeof W?es.fromString(W):W}static fromString(W){let G;let H=W.split(":"),J=eo.KeyType.ED25519;if(1===H.length)G=H[0];else if(2===H.length)G=H[1],J=ea(H[0]);else throw Error("Invalid encoded key format, must be <curve>:<encoded key>");let Q=(0,ee.baseDecode)(G);if(Q.length!==et.default.box.publicKeyLength)throw Error(`Invalid public key size (${Q.length}), must be ${et.default.box.publicKeyLength}`);return new es({keyType:J,data:Q})}toString(){return`${ei(this.keyType)}:${(0,ee.baseEncode)(this.data)}`}verify(W,G){if(this.keyType===eo.KeyType.ED25519)return et.default.sign.detached.verify(W,G,this.data);throw Error(`Unknown key type ${this.keyType}`)}}G.PublicKey=es},37579:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.BrowserLocalStorageKeyStore=void 0;let Q=H(34990),ee=H(37115),et="near-api-js:keystore:";class eo extends ee.KeyStore{constructor(W=window.localStorage,G=et){super(),this.localStorage=W,this.prefix=G}setKey(W,G,H){return J(this,void 0,void 0,function*(){this.localStorage.setItem(this.storageKeyForSecretKey(W,G),H.toString())})}getKey(W,G){return J(this,void 0,void 0,function*(){let H=this.localStorage.getItem(this.storageKeyForSecretKey(W,G));return H?Q.KeyPair.fromString(H):null})}removeKey(W,G){return J(this,void 0,void 0,function*(){this.localStorage.removeItem(this.storageKeyForSecretKey(W,G))})}clear(){return J(this,void 0,void 0,function*(){for(let W of this.storageKeys())W.startsWith(this.prefix)&&this.localStorage.removeItem(W)})}getNetworks(){return J(this,void 0,void 0,function*(){let W=new Set;for(let G of this.storageKeys())if(G.startsWith(this.prefix)){let H=G.substring(this.prefix.length).split(":");W.add(H[1])}return Array.from(W.values())})}getAccounts(W){return J(this,void 0,void 0,function*(){let G=[];for(let H of this.storageKeys())if(H.startsWith(this.prefix)){let J=H.substring(this.prefix.length).split(":");J[1]===W&&G.push(J[0])}return G})}storageKeyForSecretKey(W,G){return`${this.prefix}${G}:${W}`}*storageKeys(){for(let W=0;W<this.localStorage.length;W++)yield this.localStorage.key(W)}}G.BrowserLocalStorageKeyStore=eo},41472:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.BrowserLocalStorageKeyStore=void 0;var J=H(37579);Object.defineProperty(G,"BrowserLocalStorageKeyStore",{enumerable:!0,get:function(){return J.BrowserLocalStorageKeyStore}})},83504:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.InMemoryKeyStore=void 0;let Q=H(34990),ee=H(84759);class et extends ee.KeyStore{constructor(){super(),this.keys={}}setKey(W,G,H){return J(this,void 0,void 0,function*(){this.keys[`${G}:${W}`]=H.toString()})}getKey(W,G){return J(this,void 0,void 0,function*(){let H=this.keys[`${G}:${W}`];return H?Q.KeyPair.fromString(H):null})}removeKey(W,G){return J(this,void 0,void 0,function*(){delete this.keys[`${G}:${W}`]})}clear(){return J(this,void 0,void 0,function*(){this.keys={}})}getNetworks(){return J(this,void 0,void 0,function*(){let W=new Set;return Object.keys(this.keys).forEach(G=>{let H=G.split(":");W.add(H[1])}),Array.from(W.values())})}getAccounts(W){return J(this,void 0,void 0,function*(){let G=[];return Object.keys(this.keys).forEach(H=>{let J=H.split(":");J[J.length-1]===W&&G.push(J.slice(0,J.length-1).join(":"))}),G})}toString(){return"InMemoryKeyStore"}}G.InMemoryKeyStore=et},37115:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.MergeKeyStore=G.KeyStore=G.InMemoryKeyStore=void 0;var J=H(83504);Object.defineProperty(G,"InMemoryKeyStore",{enumerable:!0,get:function(){return J.InMemoryKeyStore}});var Q=H(84759);Object.defineProperty(G,"KeyStore",{enumerable:!0,get:function(){return Q.KeyStore}});var ee=H(10459);Object.defineProperty(G,"MergeKeyStore",{enumerable:!0,get:function(){return ee.MergeKeyStore}})},84759:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.KeyStore=void 0;class H{}G.KeyStore=H},10459:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.MergeKeyStore=void 0;let Q=H(84759);class ee extends Q.KeyStore{constructor(W,G={writeKeyStoreIndex:0}){super(),this.options=G,this.keyStores=W}setKey(W,G,H){return J(this,void 0,void 0,function*(){yield this.keyStores[this.options.writeKeyStoreIndex].setKey(W,G,H)})}getKey(W,G){return J(this,void 0,void 0,function*(){for(let H of this.keyStores){let J=yield H.getKey(W,G);if(J)return J}return null})}removeKey(W,G){return J(this,void 0,void 0,function*(){for(let H of this.keyStores)yield H.removeKey(W,G)})}clear(){return J(this,void 0,void 0,function*(){for(let W of this.keyStores)yield W.clear()})}getNetworks(){return J(this,void 0,void 0,function*(){let W=new Set;for(let G of this.keyStores)for(let H of yield G.getNetworks())W.add(H);return Array.from(W)})}getAccounts(W){return J(this,void 0,void 0,function*(){let G=new Set;for(let H of this.keyStores)for(let J of yield H.getAccounts(W))G.add(J);return Array.from(G)})}toString(){return`MergeKeyStore(${this.keyStores.join(", ")})`}}G.MergeKeyStore=ee},50204:function(W,G){"use strict";var H=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})};function J(W,G,J,ee){return H(this,void 0,void 0,function*(){let H=W;for(let W=0;W<G;W++){let W=yield ee();if(W)return W;yield Q(H),H*=J}return null})}function Q(W){return new Promise(G=>setTimeout(G,W))}Object.defineProperty(G,"__esModule",{value:!0}),G.exponentialBackoff=void 0,G.exponentialBackoff=J},40739:function(W,G,H){"use strict";var J=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0});let Q=J(H(88826)),ee=J(H(75152)),et=J(H(19964)),eo=new ee.default.Agent({keepAlive:!0}),ei=new et.default.Agent({keepAlive:!0});function ea(W){return"http:"===W.protocol?eo:ei}function es(W,G){return(0,Q.default)(W,Object.assign({agent:ea(new URL(W.toString()))},G))}G.default=es},21215:function(W,G,H){"use strict";var J=H(20352),Q=this&&this.__createBinding||(Object.create?function(W,G,H,J){void 0===J&&(J=H);var Q=Object.getOwnPropertyDescriptor(G,H);(!Q||("get"in Q?!G.__esModule:Q.writable||Q.configurable))&&(Q={enumerable:!0,get:function(){return G[H]}}),Object.defineProperty(W,J,Q)}:function(W,G,H,J){void 0===J&&(J=H),W[J]=G[H]}),ee=this&&this.__setModuleDefault||(Object.create?function(W,G){Object.defineProperty(W,"default",{enumerable:!0,value:G})}:function(W,G){W.default=G}),et=this&&this.__importStar||function(W){if(W&&W.__esModule)return W;var G={};if(null!=W)for(var H in W)"default"!==H&&Object.prototype.hasOwnProperty.call(W,H)&&Q(G,W,H);return ee(G,W),G},eo=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})},ei=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.fetchJson=void 0;let ea=H(96367),es=ei(H(91138)),eu=H(50204),ec=1e3,ef=1.5,ed=10,eh=(...W)=>!J.env.NEAR_NO_LOGS&&console.warn(...W);function ep(W,G){return eo(this,void 0,void 0,function*(){let J={url:null};"string"==typeof W?J.url=W:J=W;let Q=yield(0,eu.exponentialBackoff)(ec,ed,ef,()=>eo(this,void 0,void 0,function*(){try{H.g.fetch||(H.g.fetch=(yield Promise.resolve().then(()=>et(H(40739)))).default);let W=yield H.g.fetch(J.url,{method:G?"POST":"GET",body:G||void 0,headers:Object.assign(Object.assign({},J.headers),{"Content-Type":"application/json"})});if(!W.ok){if(503===W.status)return eh(`Retrying HTTP request for ${J.url} as it's not available now`),null;throw(0,es.default)(W.status,(yield W.text()))}return W}catch(W){if(W.toString().includes("FetchError")||W.toString().includes("Failed to fetch"))return eh(`Retrying HTTP request for ${J.url} because of error: ${W}`),null;throw W}}));if(!Q)throw new ea.TypedError(`Exceeded ${ed} attempts for ${J.url}.`,"RetriesExceeded");return yield Q.json()})}G.fetchJson=ep},84216:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.fetchJson=G.Provider=G.JsonRpcProvider=G.exponentialBackoff=void 0;var J=H(50204);Object.defineProperty(G,"exponentialBackoff",{enumerable:!0,get:function(){return J.exponentialBackoff}});var Q=H(1634);Object.defineProperty(G,"JsonRpcProvider",{enumerable:!0,get:function(){return Q.JsonRpcProvider}});var ee=H(73167);Object.defineProperty(G,"Provider",{enumerable:!0,get:function(){return ee.Provider}});var et=H(21215);Object.defineProperty(G,"fetchJson",{enumerable:!0,get:function(){return et.fetchJson}})},1634:function(W,G,H){"use strict";var J=H(80854).Buffer,Q=H(20352),ee=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})},et=this&&this.__rest||function(W,G){var H={};for(var J in W)Object.prototype.hasOwnProperty.call(W,J)&&0>G.indexOf(J)&&(H[J]=W[J]);if(null!=W&&"function"==typeof Object.getOwnPropertySymbols)for(var Q=0,J=Object.getOwnPropertySymbols(W);Q<J.length;Q++)0>G.indexOf(J[Q])&&Object.prototype.propertyIsEnumerable.call(W,J[Q])&&(H[J[Q]]=W[J[Q]]);return H};Object.defineProperty(G,"__esModule",{value:!0}),G.JsonRpcProvider=void 0;let eo=H(60077),ei=H(96367),ea=H(58598),es=H(66012),eu=H(50204),ec=H(73167),ef=H(21215),ed=12,eh=500,ep=1.5,ey=123;class ev extends ec.Provider{constructor(W){super(),this.connection=W||{url:""}}status(){return ee(this,void 0,void 0,function*(){return this.sendJsonRpc("status",[])})}sendTransaction(W){return ee(this,void 0,void 0,function*(){let G=(0,ea.encodeTransaction)(W);return this.sendJsonRpc("broadcast_tx_commit",[J.from(G).toString("base64")])})}sendTransactionAsync(W){return ee(this,void 0,void 0,function*(){let G=(0,ea.encodeTransaction)(W);return this.sendJsonRpc("broadcast_tx_async",[J.from(G).toString("base64")])})}txStatus(W,G){return ee(this,void 0,void 0,function*(){return"string"==typeof W?this.txStatusString(W,G):this.txStatusUint8Array(W,G)})}txStatusUint8Array(W,G){return ee(this,void 0,void 0,function*(){return this.sendJsonRpc("tx",[(0,es.baseEncode)(W),G])})}txStatusString(W,G){return ee(this,void 0,void 0,function*(){return this.sendJsonRpc("tx",[W,G])})}txStatusReceipts(W,G){return ee(this,void 0,void 0,function*(){return"string"==typeof W?this.sendJsonRpc("EXPERIMENTAL_tx_status",[W,G]):this.sendJsonRpc("EXPERIMENTAL_tx_status",[(0,es.baseEncode)(W),G])})}query(...W){return ee(this,void 0,void 0,function*(){let G;if(1===W.length){let H=W[0],{block_id:J,blockId:Q}=H,ee=et(H,["block_id","blockId"]);G=yield this.sendJsonRpc("query",Object.assign(Object.assign({},ee),{block_id:J||Q}))}else{let[H,J]=W;G=yield this.sendJsonRpc("query",[H,J])}if(G&&G.error)throw new ei.TypedError(`Querying failed: ${G.error}.
${JSON.stringify(G,null,2)}`,(0,eo.getErrorTypeFromErrorMessage)(G.error,G.error.name));return G})}block(W){return ee(this,void 0,void 0,function*(){let{finality:G}=W,{blockId:H}=W;return this.sendJsonRpc("block",{block_id:H,finality:G})})}blockChanges(W){return ee(this,void 0,void 0,function*(){let{finality:G}=W,{blockId:H}=W;return this.sendJsonRpc("EXPERIMENTAL_changes_in_block",{block_id:H,finality:G})})}chunk(W){return ee(this,void 0,void 0,function*(){return this.sendJsonRpc("chunk",[W])})}validators(W){return ee(this,void 0,void 0,function*(){return this.sendJsonRpc("validators",[W])})}experimental_protocolConfig(W){return ee(this,void 0,void 0,function*(){let G=W,{blockId:H}=G,J=et(G,["blockId"]);return yield this.sendJsonRpc("EXPERIMENTAL_protocol_config",Object.assign(Object.assign({},J),{block_id:H}))})}lightClientProof(W){return ee(this,void 0,void 0,function*(){return yield this.sendJsonRpc("EXPERIMENTAL_light_client_proof",W)})}nextLightClientBlock(W){return ee(this,void 0,void 0,function*(){return yield this.sendJsonRpc("next_light_client_block",W)})}accessKeyChanges(W,G){return ee(this,void 0,void 0,function*(){let{finality:H}=G,{blockId:J}=G;return this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"all_access_key_changes",account_ids:W,block_id:J,finality:H})})}singleAccessKeyChanges(W,G){return ee(this,void 0,void 0,function*(){let{finality:H}=G,{blockId:J}=G;return this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"single_access_key_changes",keys:W,block_id:J,finality:H})})}accountChanges(W,G){return ee(this,void 0,void 0,function*(){let{finality:H}=G,{blockId:J}=G;return this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"account_changes",account_ids:W,block_id:J,finality:H})})}contractStateChanges(W,G,H=""){return ee(this,void 0,void 0,function*(){let{finality:J}=G,{blockId:Q}=G;return this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"data_changes",account_ids:W,key_prefix_base64:H,block_id:Q,finality:J})})}contractCodeChanges(W,G){return ee(this,void 0,void 0,function*(){let{finality:H}=G,{blockId:J}=G;return this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"contract_code_changes",account_ids:W,block_id:J,finality:H})})}gasPrice(W){return ee(this,void 0,void 0,function*(){return yield this.sendJsonRpc("gas_price",[W])})}sendJsonRpc(W,G){return ee(this,void 0,void 0,function*(){let H=yield(0,eu.exponentialBackoff)(eh,ed,ep,()=>ee(this,void 0,void 0,function*(){try{let H={method:W,params:G,id:ey++,jsonrpc:"2.0"},J=yield(0,ef.fetchJson)(this.connection,JSON.stringify(H));if(J.error){if("object"==typeof J.error.data){if("string"==typeof J.error.data.error_message&&"string"==typeof J.error.data.error_type)throw new ei.TypedError(J.error.data.error_message,J.error.data.error_type);throw(0,eo.parseRpcError)(J.error.data)}{let W=`[${J.error.code}] ${J.error.message}: ${J.error.data}`;if("Timeout"===J.error.data||W.includes("Timeout error")||W.includes("query has timed out"))throw new ei.TypedError(W,"TimeoutError");throw new ei.TypedError(W,(0,eo.getErrorTypeFromErrorMessage)(J.error.data,J.error.name))}}return J}catch(H){if("TimeoutError"===H.type)return Q.env.NEAR_NO_LOGS||console.warn(`Retrying request to ${W} as it has timed out`,G),null;throw H}})),{result:J}=H;if(void 0===J)throw new ei.TypedError(`Exceeded ${ed} attempts for request to ${W}.`,"RetriesExceeded");return J})}}G.JsonRpcProvider=ev},73167:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Provider=void 0;class H{}G.Provider=H},4565:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})},Q=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.InMemorySigner=void 0;let ee=H(34990),et=H(37115),eo=Q(H(36616)),ei=H(4882);class ea extends ei.Signer{constructor(W){super(),this.keyStore=W}static fromKeyPair(W,G,H){return J(this,void 0,void 0,function*(){let J=new et.InMemoryKeyStore;return yield J.setKey(W,G,H),new ea(J)})}createKey(W,G){return J(this,void 0,void 0,function*(){let H=ee.KeyPair.fromRandom("ed25519");return yield this.keyStore.setKey(G,W,H),H.getPublicKey()})}getPublicKey(W,G){return J(this,void 0,void 0,function*(){let H=yield this.keyStore.getKey(G,W);return null===H?null:H.getPublicKey()})}signMessage(W,G,H){return J(this,void 0,void 0,function*(){let J=new Uint8Array(eo.default.sha256.array(W));if(!G)throw Error("InMemorySigner requires provided account id");let Q=yield this.keyStore.getKey(H,G);if(null===Q)throw Error(`Key for ${G} not found in ${H}`);return Q.sign(J)})}toString(){return`InMemorySigner(${this.keyStore})`}}G.InMemorySigner=ea},14865:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Signer=G.InMemorySigner=void 0;var J=H(4565);Object.defineProperty(G,"InMemorySigner",{enumerable:!0,get:function(){return J.InMemorySigner}});var Q=H(4882);Object.defineProperty(G,"Signer",{enumerable:!0,get:function(){return Q.Signer}})},4882:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Signer=void 0;class H{}G.Signer=H},36261:function(W,G,H){"use strict";var J=H(80854).Buffer;Object.defineProperty(G,"__esModule",{value:!0}),G.actionCreators=G.stringifyJsonOrBytes=void 0;let Q=H(12217);function ee(){return new Q.AccessKey({permission:new Q.AccessKeyPermission({fullAccess:new Q.FullAccessPermission({})})})}function et(W,G,H){return new Q.AccessKey({permission:new Q.AccessKeyPermission({functionCall:new Q.FunctionCallPermission({receiverId:W,allowance:H,methodNames:G})})})}function eo(){return new Q.Action({createAccount:new Q.CreateAccount({})})}function ei(W){return new Q.Action({deployContract:new Q.DeployContract({code:W})})}function ea(W){let G=void 0!==W.byteLength&&W.byteLength===W.length;return G?W:J.from(JSON.stringify(W))}function es(W,G,H,J,ee=ea,et=!1){return new Q.Action(et?{functionCall:new Q.FunctionCall({methodName:W,args:G,gas:H,deposit:J})}:{functionCall:new Q.FunctionCall({methodName:W,args:ee(G),gas:H,deposit:J})})}function eu(W){return new Q.Action({transfer:new Q.Transfer({deposit:W})})}function ec(W,G){return new Q.Action({stake:new Q.Stake({stake:W,publicKey:G})})}function ef(W,G){return new Q.Action({addKey:new Q.AddKey({publicKey:W,accessKey:G})})}function ed(W){return new Q.Action({deleteKey:new Q.DeleteKey({publicKey:W})})}function eh(W){return new Q.Action({deleteAccount:new Q.DeleteAccount({beneficiaryId:W})})}function ep({delegateAction:W,signature:G}){return new Q.Action({signedDelegate:new Q.SignedDelegate({delegateAction:W,signature:G})})}G.stringifyJsonOrBytes=ea,G.actionCreators={addKey:ef,createAccount:eo,deleteAccount:eh,deleteKey:ed,deployContract:ei,fullAccessKey:ee,functionCall:es,functionCallAccessKey:et,signedDelegate:ep,stake:ec,transfer:eu}},12217:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Action=G.SignedDelegate=G.DeleteAccount=G.DeleteKey=G.AddKey=G.Stake=G.Transfer=G.FunctionCall=G.DeployContract=G.CreateAccount=G.IAction=G.AccessKey=G.AccessKeyPermission=G.FullAccessPermission=G.FunctionCallPermission=void 0;let J=H(96367);class Q{constructor(W){if(1!==Object.keys(W).length)throw Error("Enum can only take single value");Object.keys(W).map(G=>{this[G]=W[G],this.enum=G})}}class ee extends J.Assignable{}G.FunctionCallPermission=ee;class et extends J.Assignable{}G.FullAccessPermission=et;class eo extends Q{}G.AccessKeyPermission=eo;class ei extends J.Assignable{}G.AccessKey=ei;class ea extends J.Assignable{}G.IAction=ea;class es extends ea{}G.CreateAccount=es;class eu extends ea{}G.DeployContract=eu;class ec extends ea{}G.FunctionCall=ec;class ef extends ea{}G.Transfer=ef;class ed extends ea{}G.Stake=ed;class eh extends ea{}G.AddKey=eh;class ep extends ea{}G.DeleteKey=ep;class ey extends ea{}G.DeleteAccount=ey;class ev extends ea{}G.SignedDelegate=ev;class em extends Q{}G.Action=em},16176:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.createTransaction=void 0;let J=H(41469);function Q(W,G,H,Q,ee,et){return new J.Transaction({signerId:W,publicKey:G,nonce:Q,receiverId:H,actions:ee,blockHash:et})}G.createTransaction=Q},97364:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.buildDelegateAction=G.DelegateAction=void 0;let J=H(96367),Q=H(36261),{addKey:ee,createAccount:et,deleteAccount:eo,deleteKey:ei,deployContract:ea,functionCall:es,stake:eu,transfer:ec}=Q.actionCreators;class ef extends J.Assignable{}function ed({actions:W,maxBlockHeight:G,nonce:H,publicKey:J,receiverId:Q,senderId:ed}){return new ef({senderId:ed,receiverId:Q,actions:W.map(W=>{if(!W.type&&!W.params)return W;switch(W.type){case"AddKey":{let{publicKey:G,accessKey:H}=W.params;return ee(G,H)}case"CreateAccount":return et(W.params.createAccount);case"DeleteAccount":return eo(W.params.deleteAccount);case"DeleteKey":return ei(W.params.publicKey);case"DeployContract":return ea(W.params.code);case"FunctionCall":{let{methodName:G,args:H,gas:J,deposit:Q}=W.params;return es(G,H,J,Q)}case"Stake":return eu(W.params.stake,W.params.publicKey);case"Transfer":{let{deposit:G}=W.params;return ec(G)}}throw Error("Unrecognized action")}),nonce:H,maxBlockHeight:G,publicKey:J})}G.DelegateAction=ef,G.buildDelegateAction=ed},58598:function(W,G,H){"use strict";var J=this&&this.__createBinding||(Object.create?function(W,G,H,J){void 0===J&&(J=H);var Q=Object.getOwnPropertyDescriptor(G,H);(!Q||("get"in Q?!G.__esModule:Q.writable||Q.configurable))&&(Q={enumerable:!0,get:function(){return G[H]}}),Object.defineProperty(W,J,Q)}:function(W,G,H,J){void 0===J&&(J=H),W[J]=G[H]}),Q=this&&this.__exportStar||function(W,G){for(var H in W)"default"===H||Object.prototype.hasOwnProperty.call(G,H)||J(G,W,H)};Object.defineProperty(G,"__esModule",{value:!0}),Q(H(36261),G),Q(H(12217),G),Q(H(16176),G),Q(H(97364),G),Q(H(41469),G),Q(H(65811),G),Q(H(59942),G)},9487:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.DelegateActionPrefix=void 0;let J=H(96367),Q=1073741824;class ee extends J.Assignable{}class et extends ee{constructor(W){super({prefix:Q+W})}}class eo extends et{constructor(){super(366)}}G.DelegateActionPrefix=eo},41469:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.SCHEMA=G.SignedTransaction=G.Transaction=G.decodeSignedTransaction=G.decodeTransaction=G.encodeTransaction=G.encodeSignedDelegate=G.encodeDelegateAction=void 0;let J=H(34990),Q=H(96367),ee=H(66012),et=H(12217),eo=H(97364),ei=H(9487),ea=H(59942);function es(W){return new Uint8Array([...(0,ee.serialize)(G.SCHEMA,new ei.DelegateActionPrefix),...(0,ee.serialize)(G.SCHEMA,W)])}function eu(W){return(0,ee.serialize)(G.SCHEMA,W)}function ec(W){return(0,ee.serialize)(G.SCHEMA,W)}function ef(W){return(0,ee.deserialize)(G.SCHEMA,eh,W)}function ed(W){return(0,ee.deserialize)(G.SCHEMA,ep,W)}G.encodeDelegateAction=es,G.encodeSignedDelegate=eu,G.encodeTransaction=ec,G.decodeTransaction=ef,G.decodeSignedTransaction=ed;class eh extends Q.Assignable{encode(){return ec(this)}static decode(W){return ef(W)}}G.Transaction=eh;class ep extends Q.Assignable{encode(){return ec(this)}static decode(W){return ed(W)}}G.SignedTransaction=ep,G.SCHEMA=new Map([[ea.Signature,{kind:"struct",fields:[["keyType","u8"],["data",[64]]]}],[ep,{kind:"struct",fields:[["transaction",eh],["signature",ea.Signature]]}],[eh,{kind:"struct",fields:[["signerId","string"],["publicKey",J.PublicKey],["nonce","u64"],["receiverId","string"],["blockHash",[32]],["actions",[et.Action]]]}],[J.PublicKey,{kind:"struct",fields:[["keyType","u8"],["data",[32]]]}],[et.AccessKey,{kind:"struct",fields:[["nonce","u64"],["permission",et.AccessKeyPermission]]}],[et.AccessKeyPermission,{kind:"enum",field:"enum",values:[["functionCall",et.FunctionCallPermission],["fullAccess",et.FullAccessPermission]]}],[et.FunctionCallPermission,{kind:"struct",fields:[["allowance",{kind:"option",type:"u128"}],["receiverId","string"],["methodNames",["string"]]]}],[et.FullAccessPermission,{kind:"struct",fields:[]}],[et.Action,{kind:"enum",field:"enum",values:[["createAccount",et.CreateAccount],["deployContract",et.DeployContract],["functionCall",et.FunctionCall],["transfer",et.Transfer],["stake",et.Stake],["addKey",et.AddKey],["deleteKey",et.DeleteKey],["deleteAccount",et.DeleteAccount],["signedDelegate",et.SignedDelegate]]}],[et.CreateAccount,{kind:"struct",fields:[]}],[et.DeployContract,{kind:"struct",fields:[["code",["u8"]]]}],[et.FunctionCall,{kind:"struct",fields:[["methodName","string"],["args",["u8"]],["gas","u64"],["deposit","u128"]]}],[et.Transfer,{kind:"struct",fields:[["deposit","u128"]]}],[et.Stake,{kind:"struct",fields:[["stake","u128"],["publicKey",J.PublicKey]]}],[et.AddKey,{kind:"struct",fields:[["publicKey",J.PublicKey],["accessKey",et.AccessKey]]}],[et.DeleteKey,{kind:"struct",fields:[["publicKey",J.PublicKey]]}],[et.DeleteAccount,{kind:"struct",fields:[["beneficiaryId","string"]]}],[eo.DelegateAction,{kind:"struct",fields:[["senderId","string"],["receiverId","string"],["actions",[et.Action]],["nonce","u64"],["maxBlockHeight","u64"],["publicKey",J.PublicKey]]}],[ei.DelegateActionPrefix,{kind:"struct",fields:[["prefix","u32"]]}],[et.SignedDelegate,{kind:"struct",fields:[["delegateAction",eo.DelegateAction],["signature",ea.Signature]]}]])},65811:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})},Q=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.signDelegateAction=G.signTransaction=void 0;let ee=Q(H(36616)),et=H(12217),eo=H(16176),ei=H(41469),ea=H(59942);function es(W,G,H,Q){return J(this,void 0,void 0,function*(){let J=(0,ei.encodeTransaction)(W),et=new Uint8Array(ee.default.sha256.array(J)),eo=yield G.signMessage(J,H,Q),es=new ei.SignedTransaction({transaction:W,signature:new ea.Signature({keyType:W.publicKey.keyType,data:eo.signature})});return[et,es]})}function eu(...W){return J(this,void 0,void 0,function*(){if(W[0].constructor===ei.Transaction){let[G,H,J,Q]=W;return es(G,H,J,Q)}{let[G,H,J,Q,ee,et,ei]=W,ea=yield ee.getPublicKey(et,ei),eu=(0,eo.createTransaction)(et,ea,G,H,J,Q);return es(eu,ee,et,ei)}})}function ec({delegateAction:W,signer:G}){return J(this,void 0,void 0,function*(){let H=(0,ei.encodeDelegateAction)(W),J=yield G.sign(H),Q=new et.SignedDelegate({delegateAction:W,signature:new ea.Signature({keyType:W.publicKey.keyType,data:J})});return{hash:new Uint8Array(ee.default.sha256.array(H)),signedDelegateAction:Q}})}G.signTransaction=eu,G.signDelegateAction=ec},59942:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Signature=void 0;let J=H(96367);class Q extends J.Assignable{}G.Signature=Q},30295:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Assignable=void 0;class H{constructor(W){Object.keys(W).map(G=>{this[G]=W[G]})}}G.Assignable=H},22805:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.ErrorContext=G.TypedError=G.ArgumentTypeError=G.PositionalArgsError=void 0;class H extends Error{constructor(){super("Contract method calls expect named arguments wrapped in object, e.g. { argName1: argValue1, argName2: argValue2 }")}}G.PositionalArgsError=H;class J extends Error{constructor(W,G,H){super(`Expected ${G} for '${W}' argument, but got '${JSON.stringify(H)}'`)}}G.ArgumentTypeError=J;class Q extends Error{constructor(W,G,H){super(W),this.type=G||"UntypedError",this.context=H}}G.TypedError=Q;class ee{constructor(W){this.transactionHash=W}}G.ErrorContext=ee},96367:function(W,G,H){"use strict";var J=this&&this.__createBinding||(Object.create?function(W,G,H,J){void 0===J&&(J=H);var Q=Object.getOwnPropertyDescriptor(G,H);(!Q||("get"in Q?!G.__esModule:Q.writable||Q.configurable))&&(Q={enumerable:!0,get:function(){return G[H]}}),Object.defineProperty(W,J,Q)}:function(W,G,H,J){void 0===J&&(J=H),W[J]=G[H]}),Q=this&&this.__exportStar||function(W,G){for(var H in W)"default"===H||Object.prototype.hasOwnProperty.call(G,H)||J(G,W,H)};Object.defineProperty(G,"__esModule",{value:!0}),Q(H(30295),G),Q(H(22805),G),Q(H(75251),G)},75251:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.FinalExecutionStatusBasic=G.ExecutionStatusBasic=G.IdType=void 0;var J=H(56924);Object.defineProperty(G,"IdType",{enumerable:!0,get:function(){return J.IdType}});var Q=H(67792);Object.defineProperty(G,"ExecutionStatusBasic",{enumerable:!0,get:function(){return Q.ExecutionStatusBasic}}),Object.defineProperty(G,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return Q.FinalExecutionStatusBasic}})},56924:function(W,G){"use strict";var H;Object.defineProperty(G,"__esModule",{value:!0}),G.IdType=void 0,function(W){W.Transaction="transaction",W.Receipt="receipt"}(H=G.IdType||(G.IdType={}))},67792:function(W,G){"use strict";var H,J;Object.defineProperty(G,"__esModule",{value:!0}),G.FinalExecutionStatusBasic=G.ExecutionStatusBasic=void 0,function(W){W.Unknown="Unknown",W.Pending="Pending",W.Failure="Failure"}(H=G.ExecutionStatusBasic||(G.ExecutionStatusBasic={})),function(W){W.NotStarted="NotStarted",W.Started="Started",W.Failure="Failure"}(J=G.FinalExecutionStatusBasic||(G.FinalExecutionStatusBasic={}))},15068:function(W,G,H){"use strict";var J=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.DEFAULT_FUNCTION_CALL_GAS=void 0;let Q=J(H(60079));G.DEFAULT_FUNCTION_CALL_GAS=new Q.default("30000000000000")},63594:function(W,G,H){"use strict";var J=H(20352);function Q(...W){J.env.NEAR_NO_LOGS||console.warn(...W)}Object.defineProperty(G,"__esModule",{value:!0}),G.logWarning=void 0,G.logWarning=Q},27836:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.parseRpcError=G.parseResultError=G.getErrorTypeFromErrorMessage=G.formatError=G.ServerError=G.logWarning=void 0;var J=H(63594);Object.defineProperty(G,"logWarning",{enumerable:!0,get:function(){return J.logWarning}});var Q=H(16239);Object.defineProperty(G,"ServerError",{enumerable:!0,get:function(){return Q.ServerError}}),Object.defineProperty(G,"formatError",{enumerable:!0,get:function(){return Q.formatError}}),Object.defineProperty(G,"getErrorTypeFromErrorMessage",{enumerable:!0,get:function(){return Q.getErrorTypeFromErrorMessage}}),Object.defineProperty(G,"parseResultError",{enumerable:!0,get:function(){return Q.parseResultError}}),Object.defineProperty(G,"parseRpcError",{enumerable:!0,get:function(){return Q.parseRpcError}})},16239:function(W,G,H){"use strict";var J=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.getErrorTypeFromErrorMessage=G.formatError=G.parseResultError=G.parseRpcError=G.ServerError=void 0;let Q=H(96367),ee=J(H(22794)),et=H(29629),eo=J(H(65267)),ei=J(H(71217)),ea={formatNear:()=>(W,G)=>(0,et.formatNearAmount)(G(W))};class es extends Q.TypedError{}G.ServerError=es;class eu extends es{}function ec(W){let G={},H=eh(W,ei.default.schema,G,""),J=new es(ed(H,G),H);return Object.assign(J,G),J}function ef(W){let G=ec(W.status.Failure),H=new eu;return Object.assign(H,G),H.type=G.type,H.message=G.message,H.transaction_outcome=W.transaction_outcome,H}function ed(W,G){return"string"==typeof eo.default[W]?ee.default.render(eo.default[W],Object.assign(Object.assign({},G),ea)):JSON.stringify(G)}function eh(W,G,H,J){let Q,ee,et;for(let H in G){if(ev(W[H]))return W[H];if(ey(W[H]))Q=W[H],ee=G[H],et=H;else{if(!(ey(W.kind)&&ey(W.kind[H])))continue;Q=W.kind[H],ee=G[H],et=H}}if(!Q||!ee)return H.kind=W,J;for(let W of Object.keys(ee.props))H[W]=Q[W];return eh(Q,G,H,et)}function ep(W,G){switch(!0){case/^account .*? does not exist while viewing$/.test(W):case/^Account .*? doesn't exist$/.test(W):return"AccountDoesNotExist";case/^access key .*? does not exist while viewing$/.test(W):return"AccessKeyDoesNotExist";case/wasm execution failed with error: FunctionCallError\(CompilationError\(CodeDoesNotExist/.test(W):return"CodeDoesNotExist";case/Transaction nonce \d+ must be larger than nonce of the used access key \d+/.test(W):return"InvalidNonce";default:return G}}function ey(W){return"[object Object]"===Object.prototype.toString.call(W)}function ev(W){return"[object String]"===Object.prototype.toString.call(W)}G.parseRpcError=ec,G.parseResultError=ef,G.formatError=ed,G.getErrorTypeFromErrorMessage=ep},29629:function(W,G,H){"use strict";var J=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.parseNearAmount=G.formatNearAmount=G.NEAR_NOMINATION=G.NEAR_NOMINATION_EXP=void 0;let Q=J(H(60079));G.NEAR_NOMINATION_EXP=24,G.NEAR_NOMINATION=new Q.default("10",10).pow(new Q.default(G.NEAR_NOMINATION_EXP,10));let ee=[],et=new Q.default(10);for(let W=0,H=new Q.default(5);W<G.NEAR_NOMINATION_EXP;W++,H=H.mul(et))ee[W]=H;function eo(W,H=G.NEAR_NOMINATION_EXP){let J=new Q.default(W,10);if(H!==G.NEAR_NOMINATION_EXP){let W=G.NEAR_NOMINATION_EXP-H-1;W>0&&J.iadd(ee[W])}W=J.toString();let et=W.substring(0,W.length-G.NEAR_NOMINATION_EXP)||"0",eo=W.substring(W.length-G.NEAR_NOMINATION_EXP).padStart(G.NEAR_NOMINATION_EXP,"0").substring(0,H);return es(`${ec(et)}.${eo}`)}function ei(W){if(!W)return null;W=ea(W);let H=W.split("."),J=H[0],Q=H[1]||"";if(H.length>2||Q.length>G.NEAR_NOMINATION_EXP)throw Error(`Cannot parse '${W}' as NEAR amount`);return eu(J+Q.padEnd(G.NEAR_NOMINATION_EXP,"0"))}function ea(W){return W.replace(/,/g,"").trim()}function es(W){return W.replace(/\.?0*$/,"")}function eu(W){return""===(W=W.replace(/^0+/,""))?"0":W}function ec(W){let G=/(-?\d+)(\d{3})/;for(;G.test(W);)W=W.replace(G,"$1,$2");return W}G.formatNearAmount=eo,G.parseNearAmount=ei},60077:function(W,G,H){"use strict";var J=this&&this.__createBinding||(Object.create?function(W,G,H,J){void 0===J&&(J=H);var Q=Object.getOwnPropertyDescriptor(G,H);(!Q||("get"in Q?!G.__esModule:Q.writable||Q.configurable))&&(Q={enumerable:!0,get:function(){return G[H]}}),Object.defineProperty(W,J,Q)}:function(W,G,H,J){void 0===J&&(J=H),W[J]=G[H]}),Q=this&&this.__exportStar||function(W,G){for(var H in W)"default"===H||Object.prototype.hasOwnProperty.call(G,H)||J(G,W,H)};Object.defineProperty(G,"__esModule",{value:!0}),Q(H(15068),G),Q(H(27836),G),Q(H(29629),G),Q(H(86181),G),Q(H(42425),G),Q(H(5729),G)},86181:function(W,G,H){"use strict";var J=H(20352);Object.defineProperty(G,"__esModule",{value:!0}),G.printTxOutcomeLogs=G.printTxOutcomeLogsAndFailures=void 0;let Q=H(27836),ee=!!J.env.NEAR_NO_LOGS;function et({contractId:W,outcome:G}){if(ee)return;let H=[G.transaction_outcome,...G.receipts_outcome].reduce((W,G)=>{let H="object"==typeof G.outcome.status&&"object"==typeof G.outcome.status.Failure;return G.outcome.logs.length||H?W.concat({receiptIds:G.outcome.receipt_ids,logs:G.outcome.logs,failure:"object"==typeof G.outcome.status&&void 0!==G.outcome.status.Failure?(0,Q.parseRpcError)(G.outcome.status.Failure):null}):W},[]);for(let G of H)console.log(`Receipt${G.receiptIds.length>1?"s":""}: ${G.receiptIds.join(", ")}`),eo({contractId:W,logs:G.logs,prefix:"	"}),G.failure&&console.warn(`	Failure [${W}]: ${G.failure}`)}function eo({contractId:W,logs:G,prefix:H=""}){if(!ee)for(let J of G)console.log(`${H}Log [${W}]: ${J}`)}G.printTxOutcomeLogsAndFailures=et,G.printTxOutcomeLogs=eo},42425:function(W,G,H){"use strict";var J=H(80854).Buffer;function Q(W){if("object"==typeof W.status&&"string"==typeof W.status.SuccessValue){let G=J.from(W.status.SuccessValue,"base64").toString();try{return JSON.parse(G)}catch(W){return G}}return null}Object.defineProperty(G,"__esModule",{value:!0}),G.getTransactionLastResult=void 0,G.getTransactionLastResult=Q},5729:function(W,G,H){"use strict";var J=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.diffEpochValidators=G.findSeatPrice=void 0;let Q=J(H(60079)),ee=J(H(73492));function et(W,G,H,J){if(J&&J<49)return eo(W,G);if(!H){let W=(0,ee.default)("findSeatPrice(validators, maxNumberOfSeats)");W("`use `findSeatPrice(validators, maxNumberOfSeats, minimumStakeRatio)` instead"),H=[1,6250]}return ei(W,G,H)}function eo(W,G){let H=W.map(W=>new Q.default(W.stake,10)).sort((W,G)=>W.cmp(G)),J=new Q.default(G),ee=H.reduce((W,G)=>W.add(G));if(ee.lt(J))throw Error("Stakes are below seats");let et=new Q.default(1),eo=ee.add(new Q.default(1));for(;!et.eq(eo.sub(new Q.default(1)));){let W=et.add(eo).div(new Q.default(2)),G=!1,ee=new Q.default(0);for(let Q=0;Q<H.length;++Q)if((ee=ee.add(H[Q].div(W))).gte(J)){et=W,G=!0;break}G||(eo=W)}return et}function ei(W,G,H){if(2!=H.length)throw Error("minimumStakeRatio should have 2 elements");let J=W.map(W=>new Q.default(W.stake,10)).sort((W,G)=>W.cmp(G)),ee=J.reduce((W,G)=>W.add(G));return W.length<G?ee.mul(new Q.default(H[0])).div(new Q.default(H[1])):J[0].add(new Q.default(1))}function ea(W,G){let H=new Map;W.forEach(W=>H.set(W.account_id,W));let J=new Set(G.map(W=>W.account_id));return{newValidators:G.filter(W=>!H.has(W.account_id)),removedValidators:W.filter(W=>!J.has(W.account_id)),changedValidators:G.filter(W=>H.has(W.account_id)&&H.get(W.account_id).stake!=W.stake).map(W=>({current:H.get(W.account_id),next:W}))}}G.findSeatPrice=et,G.diffEpochValidators=ea},33687:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.WalletConnection=G.ConnectedWalletAccount=G.Near=void 0;var J=H(94225);Object.defineProperty(G,"Near",{enumerable:!0,get:function(){return J.Near}});var Q=H(93716);Object.defineProperty(G,"ConnectedWalletAccount",{enumerable:!0,get:function(){return Q.ConnectedWalletAccount}}),Object.defineProperty(G,"WalletConnection",{enumerable:!0,get:function(){return Q.WalletConnection}})},94225:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})},Q=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.Near=void 0;let ee=H(98204),et=Q(H(60079));class eo{constructor(W){var G;if(this.config=W,this.connection=ee.Connection.fromConfig({networkId:W.networkId,provider:{type:"JsonRpcProvider",args:{url:W.nodeUrl,headers:W.headers}},signer:W.signer||{type:"InMemorySigner",keyStore:W.keyStore||(null===(G=W.deps)||void 0===G?void 0:G.keyStore)},jsvmAccountId:W.jsvmAccountId||`jsvm.${W.networkId}`}),W.masterAccount){let G=new et.default(W.initialBalance?W.initialBalance:"500000000000000000000000000");this.accountCreator=new ee.LocalAccountCreator(new ee.Account(this.connection,W.masterAccount),G)}else W.helperUrl?this.accountCreator=new ee.UrlAccountCreator(this.connection,W.helperUrl):this.accountCreator=null}account(W){return J(this,void 0,void 0,function*(){let G=new ee.Account(this.connection,W);return G})}createAccount(W,G){return J(this,void 0,void 0,function*(){if(!this.accountCreator)throw Error("Must specify account creator, either via masterAccount or helperUrl configuration settings.");return yield this.accountCreator.createAccount(W,G),new ee.Account(this.connection,W)})}}G.Near=eo},93716:function(W,G,H){"use strict";var J=H(80854).Buffer,Q=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})},ee=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.ConnectedWalletAccount=G.WalletConnection=void 0;let et=H(98204),eo=H(34990),ei=H(58598),ea=ee(H(60079)),es=H(66012),eu="/login/",ec="add_request_and_confirm",ef="_wallet_auth_key",ed="pending_key";class eh{constructor(W,G){if("string"!=typeof G)throw Error("Please define a clear appKeyPrefix for this WalletConnection instance as the second argument to the constructor");if("undefined"==typeof window)return new Proxy(this,{get:(W,G)=>"isSignedIn"===G?()=>!1:"getAccountId"===G?()=>"":W[G]&&"function"==typeof W[G]?()=>{throw Error("No window found in context, please ensure you are using WalletConnection on the browser")}:W[G]});this._near=W;let H=G+ef,J=JSON.parse(window.localStorage.getItem(H));this._networkId=W.config.networkId,this._walletBaseUrl=W.config.walletUrl,G=G||W.config.contractName||"default",this._keyStore=W.connection.signer.keyStore,this._authData=J||{allKeys:[]},this._authDataKey=H,this.isSignedIn()||(this._completeSignInPromise=this._completeSignInWithAccessKey())}isSignedIn(){return!!this._authData.accountId}isSignedInAsync(){return Q(this,void 0,void 0,function*(){return this._completeSignInPromise&&(yield this._completeSignInPromise),this.isSignedIn()})}getAccountId(){return this._authData.accountId||""}requestSignIn({contractId:W,methodNames:G,successUrl:H,failureUrl:J}){return Q(this,void 0,void 0,function*(){let Q=new URL(window.location.href),ee=new URL(this._walletBaseUrl+eu);if(ee.searchParams.set("success_url",H||Q.href),ee.searchParams.set("failure_url",J||Q.href),W){let G=yield this._near.account(W);yield G.state(),ee.searchParams.set("contract_id",W);let H=eo.KeyPair.fromRandom("ed25519");ee.searchParams.set("public_key",H.getPublicKey().toString()),yield this._keyStore.setKey(this._networkId,ed+H.getPublicKey(),H)}G&&G.forEach(W=>{ee.searchParams.append("methodNames",W)}),window.location.assign(ee.toString())})}requestSignTransactions({transactions:W,meta:G,callbackUrl:H}){return Q(this,void 0,void 0,function*(){let Q=new URL(window.location.href),ee=new URL("sign",this._walletBaseUrl);ee.searchParams.set("transactions",W.map(W=>(0,es.serialize)(ei.SCHEMA,W)).map(W=>J.from(W).toString("base64")).join(",")),ee.searchParams.set("callbackUrl",H||Q.href),G&&ee.searchParams.set("meta",G),window.location.assign(ee.toString())})}_completeSignInWithAccessKey(){return Q(this,void 0,void 0,function*(){let W=new URL(window.location.href),G=W.searchParams.get("public_key")||"",H=(W.searchParams.get("all_keys")||"").split(","),J=W.searchParams.get("account_id")||"";if(J){let W={accountId:J,allKeys:H};window.localStorage.setItem(this._authDataKey,JSON.stringify(W)),G&&(yield this._moveKeyFromTempToPermanent(J,G)),this._authData=W}W.searchParams.delete("public_key"),W.searchParams.delete("all_keys"),W.searchParams.delete("account_id"),W.searchParams.delete("meta"),W.searchParams.delete("transactionHashes"),window.history.replaceState({},document.title,W.toString())})}_moveKeyFromTempToPermanent(W,G){return Q(this,void 0,void 0,function*(){let H=yield this._keyStore.getKey(this._networkId,ed+G);yield this._keyStore.setKey(this._networkId,W,H),yield this._keyStore.removeKey(this._networkId,ed+G)})}signOut(){this._authData={},window.localStorage.removeItem(this._authDataKey)}account(){return this._connectedAccount||(this._connectedAccount=new ep(this,this._near.connection,this._authData.accountId)),this._connectedAccount}}G.WalletConnection=eh;class ep extends et.Account{constructor(W,G,H){super(G,H),this.walletConnection=W}signAndSendTransaction({receiverId:W,actions:G,walletMeta:H,walletCallbackUrl:J=window.location.href}){let ee=Object.create(null,{signAndSendTransaction:{get:()=>super.signAndSendTransaction}});return Q(this,void 0,void 0,function*(){let Q=yield this.connection.signer.getPublicKey(this.accountId,this.connection.networkId),et=yield this.accessKeyForTransaction(W,G,Q);if(!et)throw Error(`Cannot find matching key for transaction sent to ${W}`);if(Q&&Q.toString()===et.public_key)try{return yield ee.signAndSendTransaction.call(this,{receiverId:W,actions:G})}catch(H){if("NotEnoughAllowance"===H.type)et=yield this.accessKeyForTransaction(W,G);else throw H}let eu=yield this.connection.provider.block({finality:"final"}),ec=(0,es.baseDecode)(eu.header.hash),ef=eo.PublicKey.from(et.public_key),ed=et.access_key.nonce.add(new ea.default(1)),eh=(0,ei.createTransaction)(this.accountId,ef,W,ed,G,ec);return yield this.walletConnection.requestSignTransactions({transactions:[eh],meta:H,callbackUrl:J}),new Promise((W,G)=>{setTimeout(()=>{G(Error("Failed to redirect to sign transaction"))},1e3)})})}accessKeyMatchesTransaction(W,G,H){return Q(this,void 0,void 0,function*(){let{access_key:{permission:J}}=W;if("FullAccess"===J)return!0;if(J.FunctionCall){let{receiver_id:W,method_names:Q}=J.FunctionCall;if(W===this.accountId&&Q.includes(ec))return!0;if(W===G){if(1!==H.length)return!1;let[{functionCall:W}]=H;return W&&(!W.deposit||"0"===W.deposit.toString())&&(0===Q.length||Q.includes(W.methodName))}}return!1})}accessKeyForTransaction(W,G,H){return Q(this,void 0,void 0,function*(){let J=yield this.getAccessKeys();if(H){let Q=J.find(W=>W.public_key.toString()===H.toString());if(Q&&(yield this.accessKeyMatchesTransaction(Q,W,G)))return Q}let Q=this.walletConnection._authData.allKeys;for(let H of J)if(-1!==Q.indexOf(H.public_key)&&(yield this.accessKeyMatchesTransaction(H,W,G)))return H;return null})}}G.ConnectedWalletAccount=ep},9142:function(W,G){"use strict";function H(W,G){return{validate:W,compare:G}}function J(W){return W%4==0&&(W%100!=0||W%400==0)}Object.defineProperty(G,"__esModule",{value:!0}),G.formatNames=G.fastFormats=G.fullFormats=void 0,G.fullFormats={date:H(et,eo),time:H(ea,es),"date-time":H(ec,ef),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:ep,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:eE,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:ev,int32:{type:"number",validate:eb},int64:{type:"number",validate:ew},float:{type:"number",validate:e_},double:{type:"number",validate:e_},password:!0,binary:!0},G.fastFormats={...G.fullFormats,date:H(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,eo),time:H(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,es),"date-time":H(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,ef),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},G.formatNames=Object.keys(G.fullFormats);let Q=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ee=[0,31,28,31,30,31,30,31,31,30,31,30,31];function et(W){let G=Q.exec(W);if(!G)return!1;let H=+G[1],et=+G[2],eo=+G[3];return et>=1&&et<=12&&eo>=1&&eo<=(2===et&&J(H)?29:ee[et])}function eo(W,G){if(W&&G)return W>G?1:W<G?-1:0}let ei=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function ea(W,G){let H=ei.exec(W);if(!H)return!1;let J=+H[1],Q=+H[2],ee=+H[3],et=H[5];return(J<=23&&Q<=59&&ee<=59||23===J&&59===Q&&60===ee)&&(!G||""!==et)}function es(W,G){if(!(W&&G))return;let H=ei.exec(W),J=ei.exec(G);if(H&&J)return(W=H[1]+H[2]+H[3]+(H[4]||""))>(G=J[1]+J[2]+J[3]+(J[4]||""))?1:W<G?-1:0}let eu=/t|\s/i;function ec(W){let G=W.split(eu);return 2===G.length&&et(G[0])&&ea(G[1],!0)}function ef(W,G){if(!(W&&G))return;let[H,J]=W.split(eu),[Q,ee]=G.split(eu),et=eo(H,Q);if(void 0!==et)return et||es(J,ee)}let ed=/\/|:/,eh=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function ep(W){return ed.test(W)&&eh.test(W)}let ey=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function ev(W){return ey.lastIndex=0,ey.test(W)}let em=-2147483648,eg=2147483648-1;function eb(W){return Number.isInteger(W)&&W<=eg&&W>=em}function ew(W){return Number.isInteger(W)}function e_(){return!0}let eS=/[^\\]\\Z/;function eE(W){if(eS.test(W))return!1;try{return new RegExp(W),!0}catch(W){return!1}}},98286:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(9142),Q=H(85643),ee=H(31609),et=new ee.Name("fullFormats"),eo=new ee.Name("fastFormats"),ei=(W,G={keywords:!0})=>{if(Array.isArray(G))return ea(W,G,J.fullFormats,et),W;let[H,ee]="fast"===G.mode?[J.fastFormats,eo]:[J.fullFormats,et],ei=G.formats||J.formatNames;return ea(W,ei,H,ee),G.keywords&&Q.default(W),W};function ea(W,G,H,J){var Q,et;for(let eo of(null!==(Q=(et=W.opts.code).formats)&&void 0!==Q||(et.formats=ee._`require("ajv-formats/dist/formats").${J}`),G))W.addFormat(eo,H[eo])}ei.get=(W,G="full")=>{let H="fast"===G?J.fastFormats:J.fullFormats,Q=H[W];if(!Q)throw Error(`Unknown format "${W}"`);return Q},W.exports=G=ei,Object.defineProperty(G,"__esModule",{value:!0}),G.default=ei},85643:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.formatLimitDefinition=void 0;let J=H(53758),Q=H(31609),ee=Q.operators,et={formatMaximum:{okStr:"<=",ok:ee.LTE,fail:ee.GT},formatMinimum:{okStr:">=",ok:ee.GTE,fail:ee.LT},formatExclusiveMaximum:{okStr:"<",ok:ee.LT,fail:ee.GTE},formatExclusiveMinimum:{okStr:">",ok:ee.GT,fail:ee.LTE}},eo={message:({keyword:W,schemaCode:G})=>Q.str`should be ${et[W].okStr} ${G}`,params:({keyword:W,schemaCode:G})=>Q._`{comparison: ${et[W].okStr}, limit: ${G}}`};G.formatLimitDefinition={keyword:Object.keys(et),type:"string",schemaType:"string",$data:!0,error:eo,code(W){let{gen:G,data:H,schemaCode:ee,keyword:eo,it:ei}=W,{opts:ea,self:es}=ei;if(!ea.validateFormats)return;let eu=new J.KeywordCxt(ei,es.RULES.all.format.definition,"format");function ec(){let H=G.scopeValue("formats",{ref:es.formats,code:ea.code.formats}),J=G.const("fmt",Q._`${H}[${eu.schemaCode}]`);W.fail$data(Q.or(Q._`typeof ${J} != "object"`,Q._`${J} instanceof RegExp`,Q._`typeof ${J}.compare != "function"`,ed(J)))}function ef(){let H=eu.schema,J=es.formats[H];if(!J||!0===J)return;if("object"!=typeof J||J instanceof RegExp||"function"!=typeof J.compare)throw Error(`"${eo}": format "${H}" does not define "compare" function`);let ee=G.scopeValue("formats",{key:H,ref:J,code:ea.code.formats?Q._`${ea.code.formats}${Q.getProperty(H)}`:void 0});W.fail$data(ed(ee))}function ed(W){return Q._`${W}.compare(${H}, ${ee}) ${et[eo].fail} 0`}eu.$data?ec():ef()},dependencies:["format"]};let ei=W=>(W.addKeyword(G.formatLimitDefinition),W);G.default=ei},53758:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.MissingRefError=G.ValidationError=G.CodeGen=G.Name=G.nil=G.stringify=G.str=G._=G.KeywordCxt=void 0;let J=H(25917),Q=H(17896),ee=H(19140),et=H(56695),eo=["/properties"],ei="http://json-schema.org/draft-07/schema";class ea extends J.default{_addVocabularies(){super._addVocabularies(),Q.default.forEach(W=>this.addVocabulary(W)),this.opts.discriminator&&this.addKeyword(ee.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let W=this.opts.$data?this.$dataMetaSchema(et,eo):et;this.addMetaSchema(W,ei,!1),this.refs["http://json-schema.org/schema"]=ei}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ei)?ei:void 0)}}W.exports=G=ea,Object.defineProperty(G,"__esModule",{value:!0}),G.default=ea;var es=H(48008);Object.defineProperty(G,"KeywordCxt",{enumerable:!0,get:function(){return es.KeywordCxt}});var eu=H(31609);Object.defineProperty(G,"_",{enumerable:!0,get:function(){return eu._}}),Object.defineProperty(G,"str",{enumerable:!0,get:function(){return eu.str}}),Object.defineProperty(G,"stringify",{enumerable:!0,get:function(){return eu.stringify}}),Object.defineProperty(G,"nil",{enumerable:!0,get:function(){return eu.nil}}),Object.defineProperty(G,"Name",{enumerable:!0,get:function(){return eu.Name}}),Object.defineProperty(G,"CodeGen",{enumerable:!0,get:function(){return eu.CodeGen}});var ec=H(77437);Object.defineProperty(G,"ValidationError",{enumerable:!0,get:function(){return ec.default}});var ef=H(8487);Object.defineProperty(G,"MissingRefError",{enumerable:!0,get:function(){return ef.default}})},17986:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.regexpCode=G.getEsmExportName=G.getProperty=G.safeStringify=G.stringify=G.strConcat=G.addCodeArg=G.str=G._=G.nil=G._Code=G.Name=G.IDENTIFIER=G._CodeOrName=void 0;class H{}G._CodeOrName=H,G.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class J extends H{constructor(W){if(super(),!G.IDENTIFIER.test(W))throw Error("CodeGen: name must be a valid identifier");this.str=W}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}G.Name=J;class Q extends H{constructor(W){super(),this._items="string"==typeof W?[W]:W}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let W=this._items[0];return""===W||'""'===W}get str(){var W;return null!==(W=this._str)&&void 0!==W?W:this._str=this._items.reduce((W,G)=>`${W}${G}`,"")}get names(){var W;return null!==(W=this._names)&&void 0!==W?W:this._names=this._items.reduce((W,G)=>(G instanceof J&&(W[G.str]=(W[G.str]||0)+1),W),{})}}function ee(W,...G){let H=[W[0]],J=0;for(;J<G.length;)ei(H,G[J]),H.push(W[++J]);return new Q(H)}G._Code=Q,G.nil=new Q(""),G._=ee;let et=new Q("+");function eo(W,...G){let H=[ed(W[0])],J=0;for(;J<G.length;)H.push(et),ei(H,G[J]),H.push(et,ed(W[++J]));return ea(H),new Q(H)}function ei(W,G){G instanceof Q?W.push(...G._items):G instanceof J?W.push(G):W.push(ec(G))}function ea(W){let G=1;for(;G<W.length-1;){if(W[G]===et){let H=es(W[G-1],W[G+1]);if(void 0!==H){W.splice(G-1,3,H);continue}W[G++]="+"}G++}}function es(W,G){return'""'===G?W:'""'===W?G:"string"==typeof W?G instanceof J||'"'!==W[W.length-1]?void 0:"string"!=typeof G?`${W.slice(0,-1)}${G}"`:'"'===G[0]?W.slice(0,-1)+G.slice(1):void 0:"string"!=typeof G||'"'!==G[0]||W instanceof J?void 0:`"${W}${G.slice(1)}`}function eu(W,G){return G.emptyStr()?W:W.emptyStr()?G:eo`${W}${G}`}function ec(W){return"number"==typeof W||"boolean"==typeof W||null===W?W:ed(Array.isArray(W)?W.join(","):W)}function ef(W){return new Q(ed(W))}function ed(W){return JSON.stringify(W).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function eh(W){return"string"==typeof W&&G.IDENTIFIER.test(W)?new Q(`.${W}`):ee`[${W}]`}function ep(W){if("string"==typeof W&&G.IDENTIFIER.test(W))return new Q(`${W}`);throw Error(`CodeGen: invalid export name: ${W}, use explicit $id name mapping`)}function ey(W){return new Q(W.toString())}G.str=eo,G.addCodeArg=ei,G.strConcat=eu,G.stringify=ef,G.safeStringify=ed,G.getProperty=eh,G.getEsmExportName=ep,G.regexpCode=ey},31609:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.or=G.and=G.not=G.CodeGen=G.operators=G.varKinds=G.ValueScopeName=G.ValueScope=G.Scope=G.Name=G.regexpCode=G.stringify=G.getProperty=G.nil=G.strConcat=G.str=G._=void 0;let J=H(17986),Q=H(49096);var ee=H(17986);Object.defineProperty(G,"_",{enumerable:!0,get:function(){return ee._}}),Object.defineProperty(G,"str",{enumerable:!0,get:function(){return ee.str}}),Object.defineProperty(G,"strConcat",{enumerable:!0,get:function(){return ee.strConcat}}),Object.defineProperty(G,"nil",{enumerable:!0,get:function(){return ee.nil}}),Object.defineProperty(G,"getProperty",{enumerable:!0,get:function(){return ee.getProperty}}),Object.defineProperty(G,"stringify",{enumerable:!0,get:function(){return ee.stringify}}),Object.defineProperty(G,"regexpCode",{enumerable:!0,get:function(){return ee.regexpCode}}),Object.defineProperty(G,"Name",{enumerable:!0,get:function(){return ee.Name}});var et=H(49096);Object.defineProperty(G,"Scope",{enumerable:!0,get:function(){return et.Scope}}),Object.defineProperty(G,"ValueScope",{enumerable:!0,get:function(){return et.ValueScope}}),Object.defineProperty(G,"ValueScopeName",{enumerable:!0,get:function(){return et.ValueScopeName}}),Object.defineProperty(G,"varKinds",{enumerable:!0,get:function(){return et.varKinds}}),G.operators={GT:new J._Code(">"),GTE:new J._Code(">="),LT:new J._Code("<"),LTE:new J._Code("<="),EQ:new J._Code("==="),NEQ:new J._Code("!=="),NOT:new J._Code("!"),OR:new J._Code("||"),AND:new J._Code("&&"),ADD:new J._Code("+")};class Node{optimizeNodes(){return this}optimizeNames(W,G){return this}}class eo extends Node{constructor(W,G,H){super(),this.varKind=W,this.name=G,this.rhs=H}render({es5:W,_n:G}){let H=W?Q.varKinds.var:this.varKind,J=void 0===this.rhs?"":` = ${this.rhs}`;return`${H} ${this.name}${J};`+G}optimizeNames(W,G){if(W[this.name.str])return this.rhs&&(this.rhs=eT(this.rhs,W,G)),this}get names(){return this.rhs instanceof J._CodeOrName?this.rhs.names:{}}}class ei extends Node{constructor(W,G,H){super(),this.lhs=W,this.rhs=G,this.sideEffects=H}render({_n:W}){return`${this.lhs} = ${this.rhs};`+W}optimizeNames(W,G){if(!(this.lhs instanceof J.Name)||W[this.lhs.str]||this.sideEffects)return this.rhs=eT(this.rhs,W,G),this}get names(){let W=this.lhs instanceof J.Name?{}:{...this.lhs.names};return ej(W,this.rhs)}}class ea extends ei{constructor(W,G,H,J){super(W,H,J),this.op=G}render({_n:W}){return`${this.lhs} ${this.op}= ${this.rhs};`+W}}class es extends Node{constructor(W){super(),this.label=W,this.names={}}render({_n:W}){return`${this.label}:`+W}}class eu extends Node{constructor(W){super(),this.label=W,this.names={}}render({_n:W}){let G=this.label?` ${this.label}`:"";return`break${G};`+W}}class ec extends Node{constructor(W){super(),this.error=W}render({_n:W}){return`throw ${this.error};`+W}get names(){return this.error.names}}class ef extends Node{constructor(W){super(),this.code=W}render({_n:W}){return`${this.code};`+W}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(W,G){return this.code=eT(this.code,W,G),this}get names(){return this.code instanceof J._CodeOrName?this.code.names:{}}}class ed extends Node{constructor(W=[]){super(),this.nodes=W}render(W){return this.nodes.reduce((G,H)=>G+H.render(W),"")}optimizeNodes(){let{nodes:W}=this,G=W.length;for(;G--;){let H=W[G].optimizeNodes();Array.isArray(H)?W.splice(G,1,...H):H?W[G]=H:W.splice(G,1)}return W.length>0?this:void 0}optimizeNames(W,G){let{nodes:H}=this,J=H.length;for(;J--;){let Q=H[J];Q.optimizeNames(W,G)||(ex(W,Q.names),H.splice(J,1))}return H.length>0?this:void 0}get names(){return this.nodes.reduce((W,G)=>eM(W,G.names),{})}}class eh extends ed{render(W){return"{"+W._n+super.render(W)+"}"+W._n}}class ep extends ed{}class ey extends eh{}ey.kind="else";class ev extends eh{constructor(W,G){super(G),this.condition=W}render(W){let G=`if(${this.condition})`+super.render(W);return this.else&&(G+="else "+this.else.render(W)),G}optimizeNodes(){super.optimizeNodes();let W=this.condition;if(!0===W)return this.nodes;let G=this.else;if(G){let W=G.optimizeNodes();G=this.else=Array.isArray(W)?new ey(W):W}return G?!1===W?G instanceof ev?G:G.nodes:this.nodes.length?this:new ev(eI(W),G instanceof ev?[G]:G.nodes):!1!==W&&this.nodes.length?this:void 0}optimizeNames(W,G){var H;if(this.else=null===(H=this.else)||void 0===H?void 0:H.optimizeNames(W,G),super.optimizeNames(W,G)||this.else)return this.condition=eT(this.condition,W,G),this}get names(){let W=super.names;return ej(W,this.condition),this.else&&eM(W,this.else.names),W}}ev.kind="if";class em extends eh{}em.kind="for";class eg extends em{constructor(W){super(),this.iteration=W}render(W){return`for(${this.iteration})`+super.render(W)}optimizeNames(W,G){if(super.optimizeNames(W,G))return this.iteration=eT(this.iteration,W,G),this}get names(){return eM(super.names,this.iteration.names)}}class eb extends em{constructor(W,G,H,J){super(),this.varKind=W,this.name=G,this.from=H,this.to=J}render(W){let G=W.es5?Q.varKinds.var:this.varKind,{name:H,from:J,to:ee}=this;return`for(${G} ${H}=${J}; ${H}<${ee}; ${H}++)`+super.render(W)}get names(){let W=ej(super.names,this.from);return ej(W,this.to)}}class ew extends em{constructor(W,G,H,J){super(),this.loop=W,this.varKind=G,this.name=H,this.iterable=J}render(W){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(W)}optimizeNames(W,G){if(super.optimizeNames(W,G))return this.iterable=eT(this.iterable,W,G),this}get names(){return eM(super.names,this.iterable.names)}}class e_ extends eh{constructor(W,G,H){super(),this.name=W,this.args=G,this.async=H}render(W){let G=this.async?"async ":"";return`${G}function ${this.name}(${this.args})`+super.render(W)}}e_.kind="func";class eS extends ed{render(W){return"return "+super.render(W)}}eS.kind="return";class eE extends eh{render(W){let G="try"+super.render(W);return this.catch&&(G+=this.catch.render(W)),this.finally&&(G+=this.finally.render(W)),G}optimizeNodes(){var W,G;return super.optimizeNodes(),null===(W=this.catch)||void 0===W||W.optimizeNodes(),null===(G=this.finally)||void 0===G||G.optimizeNodes(),this}optimizeNames(W,G){var H,J;return super.optimizeNames(W,G),null===(H=this.catch)||void 0===H||H.optimizeNames(W,G),null===(J=this.finally)||void 0===J||J.optimizeNames(W,G),this}get names(){let W=super.names;return this.catch&&eM(W,this.catch.names),this.finally&&eM(W,this.finally.names),W}}class eO extends eh{constructor(W){super(),this.error=W}render(W){return`catch(${this.error})`+super.render(W)}}eO.kind="catch";class eA extends eh{render(W){return"finally"+super.render(W)}}eA.kind="finally";class eP{constructor(W,G={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...G,_n:G.lines?"\n":""},this._extScope=W,this._scope=new Q.Scope({parent:W}),this._nodes=[new ep]}toString(){return this._root.render(this.opts)}name(W){return this._scope.name(W)}scopeName(W){return this._extScope.name(W)}scopeValue(W,G){let H=this._extScope.value(W,G),J=this._values[H.prefix]||(this._values[H.prefix]=new Set);return J.add(H),H}getScopeValue(W,G){return this._extScope.getValue(W,G)}scopeRefs(W){return this._extScope.scopeRefs(W,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(W,G,H,J){let Q=this._scope.toName(G);return void 0!==H&&J&&(this._constants[Q.str]=H),this._leafNode(new eo(W,Q,H)),Q}const(W,G,H){return this._def(Q.varKinds.const,W,G,H)}let(W,G,H){return this._def(Q.varKinds.let,W,G,H)}var(W,G,H){return this._def(Q.varKinds.var,W,G,H)}assign(W,G,H){return this._leafNode(new ei(W,G,H))}add(W,H){return this._leafNode(new ea(W,G.operators.ADD,H))}code(W){return"function"==typeof W?W():W!==J.nil&&this._leafNode(new ef(W)),this}object(...W){let G=["{"];for(let[H,Q]of W)G.length>1&&G.push(","),G.push(H),(H!==Q||this.opts.es5)&&(G.push(":"),(0,J.addCodeArg)(G,Q));return G.push("}"),new J._Code(G)}if(W,G,H){if(this._blockNode(new ev(W)),G&&H)this.code(G).else().code(H).endIf();else if(G)this.code(G).endIf();else if(H)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(W){return this._elseNode(new ev(W))}else(){return this._elseNode(new ey)}endIf(){return this._endBlockNode(ev,ey)}_for(W,G){return this._blockNode(W),G&&this.code(G).endFor(),this}for(W,G){return this._for(new eg(W),G)}forRange(W,G,H,J,ee=this.opts.es5?Q.varKinds.var:Q.varKinds.let){let et=this._scope.toName(W);return this._for(new eb(ee,et,G,H),()=>J(et))}forOf(W,G,H,ee=Q.varKinds.const){let et=this._scope.toName(W);if(this.opts.es5){let W=G instanceof J.Name?G:this.var("_arr",G);return this.forRange("_i",0,(0,J._)`${W}.length`,G=>{this.var(et,(0,J._)`${W}[${G}]`),H(et)})}return this._for(new ew("of",ee,et,G),()=>H(et))}forIn(W,G,H,ee=this.opts.es5?Q.varKinds.var:Q.varKinds.const){if(this.opts.ownProperties)return this.forOf(W,(0,J._)`Object.keys(${G})`,H);let et=this._scope.toName(W);return this._for(new ew("in",ee,et,G),()=>H(et))}endFor(){return this._endBlockNode(em)}label(W){return this._leafNode(new es(W))}break(W){return this._leafNode(new eu(W))}return(W){let G=new eS;if(this._blockNode(G),this.code(W),1!==G.nodes.length)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(eS)}try(W,G,H){if(!G&&!H)throw Error('CodeGen: "try" without "catch" and "finally"');let J=new eE;if(this._blockNode(J),this.code(W),G){let W=this.name("e");this._currNode=J.catch=new eO(W),G(W)}return H&&(this._currNode=J.finally=new eA,this.code(H)),this._endBlockNode(eO,eA)}throw(W){return this._leafNode(new ec(W))}block(W,G){return this._blockStarts.push(this._nodes.length),W&&this.code(W).endBlock(G),this}endBlock(W){let G=this._blockStarts.pop();if(void 0===G)throw Error("CodeGen: not in self-balancing block");let H=this._nodes.length-G;if(H<0||void 0!==W&&H!==W)throw Error(`CodeGen: wrong number of nodes: ${H} vs ${W} expected`);return this._nodes.length=G,this}func(W,G=J.nil,H,Q){return this._blockNode(new e_(W,G,H)),Q&&this.code(Q).endFunc(),this}endFunc(){return this._endBlockNode(e_)}optimize(W=1){for(;W-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(W){return this._currNode.nodes.push(W),this}_blockNode(W){this._currNode.nodes.push(W),this._nodes.push(W)}_endBlockNode(W,G){let H=this._currNode;if(H instanceof W||G&&H instanceof G)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${G?`${W.kind}/${G.kind}`:W.kind}"`)}_elseNode(W){let G=this._currNode;if(!(G instanceof ev))throw Error('CodeGen: "else" without "if"');return this._currNode=G.else=W,this}get _root(){return this._nodes[0]}get _currNode(){let W=this._nodes;return W[W.length-1]}set _currNode(W){let G=this._nodes;G[G.length-1]=W}}function eM(W,G){for(let H in G)W[H]=(W[H]||0)+(G[H]||0);return W}function ej(W,G){return G instanceof J._CodeOrName?eM(W,G.names):W}function eT(W,G,H){if(W instanceof J.Name)return Q(W);if(!ee(W))return W;return new J._Code(W._items.reduce((W,G)=>(G instanceof J.Name&&(G=Q(G)),G instanceof J._Code?W.push(...G._items):W.push(G),W),[]));function Q(W){let J=H[W.str];return void 0===J||1!==G[W.str]?W:(delete G[W.str],J)}function ee(W){return W instanceof J._Code&&W._items.some(W=>W instanceof J.Name&&1===G[W.str]&&void 0!==H[W.str])}}function ex(W,G){for(let H in G)W[H]=(W[H]||0)-(G[H]||0)}function eI(W){return"boolean"==typeof W||"number"==typeof W||null===W?!W:(0,J._)`!${eL(W)}`}G.CodeGen=eP,G.not=eI;let eC=eD(G.operators.AND);function eN(...W){return W.reduce(eC)}G.and=eN;let ek=eD(G.operators.OR);function eR(...W){return W.reduce(ek)}function eD(W){return(G,H)=>G===J.nil?H:H===J.nil?G:(0,J._)`${eL(G)} ${W} ${eL(H)}`}function eL(W){return W instanceof J.Name?W:(0,J._)`(${W})`}G.or=eR},49096:function(W,G,H){"use strict";var J;Object.defineProperty(G,"__esModule",{value:!0}),G.ValueScope=G.ValueScopeName=G.Scope=G.varKinds=G.UsedValueState=void 0;let Q=H(17986);class ee extends Error{constructor(W){super(`CodeGen: "code" for ${W} not defined`),this.value=W.value}}!function(W){W[W.Started=0]="Started",W[W.Completed=1]="Completed"}(J=G.UsedValueState||(G.UsedValueState={})),G.varKinds={const:new Q.Name("const"),let:new Q.Name("let"),var:new Q.Name("var")};class et{constructor({prefixes:W,parent:G}={}){this._names={},this._prefixes=W,this._parent=G}toName(W){return W instanceof Q.Name?W:this.name(W)}name(W){return new Q.Name(this._newName(W))}_newName(W){let G=this._names[W]||this._nameGroup(W);return`${W}${G.index++}`}_nameGroup(W){var G,H;if((null===(H=null===(G=this._parent)||void 0===G?void 0:G._prefixes)||void 0===H?void 0:H.has(W))||this._prefixes&&!this._prefixes.has(W))throw Error(`CodeGen: prefix "${W}" is not allowed in this scope`);return this._names[W]={prefix:W,index:0}}}G.Scope=et;class eo extends Q.Name{constructor(W,G){super(G),this.prefix=W}setValue(W,{property:G,itemIndex:H}){this.value=W,this.scopePath=(0,Q._)`.${new Q.Name(G)}[${H}]`}}G.ValueScopeName=eo;let ei=(0,Q._)`\n`;class ea extends et{constructor(W){super(W),this._values={},this._scope=W.scope,this.opts={...W,_n:W.lines?ei:Q.nil}}get(){return this._scope}name(W){return new eo(W,this._newName(W))}value(W,G){var H;if(void 0===G.ref)throw Error("CodeGen: ref must be passed in value");let J=this.toName(W),{prefix:Q}=J,ee=null!==(H=G.key)&&void 0!==H?H:G.ref,et=this._values[Q];if(et){let W=et.get(ee);if(W)return W}else et=this._values[Q]=new Map;et.set(ee,J);let eo=this._scope[Q]||(this._scope[Q]=[]),ei=eo.length;return eo[ei]=G.ref,J.setValue(G,{property:Q,itemIndex:ei}),J}getValue(W,G){let H=this._values[W];if(H)return H.get(G)}scopeRefs(W,G=this._values){return this._reduceValues(G,G=>{if(void 0===G.scopePath)throw Error(`CodeGen: name "${G}" has no value`);return(0,Q._)`${W}${G.scopePath}`})}scopeCode(W=this._values,G,H){return this._reduceValues(W,W=>{if(void 0===W.value)throw Error(`CodeGen: name "${W}" has no value`);return W.value.code},G,H)}_reduceValues(W,H,et={},eo){let ei=Q.nil;for(let ea in W){let es=W[ea];if(!es)continue;let eu=et[ea]=et[ea]||new Map;es.forEach(W=>{if(eu.has(W))return;eu.set(W,J.Started);let et=H(W);if(et){let H=this.opts.es5?G.varKinds.var:G.varKinds.const;ei=(0,Q._)`${ei}${H} ${W} = ${et};${this.opts._n}`}else if(et=null==eo?void 0:eo(W))ei=(0,Q._)`${ei}${et}${this.opts._n}`;else throw new ee(W);eu.set(W,J.Completed)})}return ei}}G.ValueScope=ea},20887:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.extendErrors=G.resetErrorsCount=G.reportExtraError=G.reportError=G.keyword$DataError=G.keywordError=void 0;let J=H(31609),Q=H(11164),ee=H(5021);function et(W,H=G.keywordError,Q,ee){let{it:et}=W,{gen:eo,compositeRule:ei,allErrors:ea}=et,ec=ef(W,H,Q);(null!=ee?ee:ei||ea)?es(eo,ec):eu(et,(0,J._)`[${ec}]`)}function eo(W,H=G.keywordError,J){let{it:Q}=W,{gen:et,compositeRule:eo,allErrors:ei}=Q,ea=ef(W,H,J);es(et,ea),eo||ei||eu(Q,ee.default.vErrors)}function ei(W,G){W.assign(ee.default.errors,G),W.if((0,J._)`${ee.default.vErrors} !== null`,()=>W.if(G,()=>W.assign((0,J._)`${ee.default.vErrors}.length`,G),()=>W.assign(ee.default.vErrors,null)))}function ea({gen:W,keyword:G,schemaValue:H,data:Q,errsCount:et,it:eo}){if(void 0===et)throw Error("ajv implementation error");let ei=W.name("err");W.forRange("i",et,ee.default.errors,et=>{W.const(ei,(0,J._)`${ee.default.vErrors}[${et}]`),W.if((0,J._)`${ei}.instancePath === undefined`,()=>W.assign((0,J._)`${ei}.instancePath`,(0,J.strConcat)(ee.default.instancePath,eo.errorPath))),W.assign((0,J._)`${ei}.schemaPath`,(0,J.str)`${eo.errSchemaPath}/${G}`),eo.opts.verbose&&(W.assign((0,J._)`${ei}.schema`,H),W.assign((0,J._)`${ei}.data`,Q))})}function es(W,G){let H=W.const("err",G);W.if((0,J._)`${ee.default.vErrors} === null`,()=>W.assign(ee.default.vErrors,(0,J._)`[${H}]`),(0,J._)`${ee.default.vErrors}.push(${H})`),W.code((0,J._)`${ee.default.errors}++`)}function eu(W,G){let{gen:H,validateName:Q,schemaEnv:ee}=W;ee.$async?H.throw((0,J._)`new ${W.ValidationError}(${G})`):(H.assign((0,J._)`${Q}.errors`,G),H.return(!1))}G.keywordError={message:({keyword:W})=>(0,J.str)`must pass "${W}" keyword validation`},G.keyword$DataError={message:({keyword:W,schemaType:G})=>G?(0,J.str)`"${W}" keyword must be ${G} ($data)`:(0,J.str)`"${W}" keyword is invalid ($data)`},G.reportError=et,G.reportExtraError=eo,G.resetErrorsCount=ei,G.extendErrors=ea;let ec={keyword:new J.Name("keyword"),schemaPath:new J.Name("schemaPath"),params:new J.Name("params"),propertyName:new J.Name("propertyName"),message:new J.Name("message"),schema:new J.Name("schema"),parentSchema:new J.Name("parentSchema")};function ef(W,G,H){let{createErrors:Q}=W.it;return!1===Q?(0,J._)`{}`:ed(W,G,H)}function ed(W,G,H={}){let{gen:J,it:Q}=W,ee=[eh(Q,H),ep(W,H)];return ey(W,G,ee),J.object(...ee)}function eh({errorPath:W},{instancePath:G}){let H=G?(0,J.str)`${W}${(0,Q.getErrorPath)(G,Q.Type.Str)}`:W;return[ee.default.instancePath,(0,J.strConcat)(ee.default.instancePath,H)]}function ep({keyword:W,it:{errSchemaPath:G}},{schemaPath:H,parentSchema:ee}){let et=ee?G:(0,J.str)`${G}/${W}`;return H&&(et=(0,J.str)`${et}${(0,Q.getErrorPath)(H,Q.Type.Str)}`),[ec.schemaPath,et]}function ey(W,{params:G,message:H},Q){let{keyword:et,data:eo,schemaValue:ei,it:ea}=W,{opts:es,propertyName:eu,topSchemaRef:ef,schemaPath:ed}=ea;Q.push([ec.keyword,et],[ec.params,"function"==typeof G?G(W):G||(0,J._)`{}`]),es.messages&&Q.push([ec.message,"function"==typeof H?H(W):H]),es.verbose&&Q.push([ec.schema,ei],[ec.parentSchema,(0,J._)`${ef}${ed}`],[ee.default.data,eo]),eu&&Q.push([ec.propertyName,eu])}},6346:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.resolveSchema=G.getCompilingSchema=G.resolveRef=G.compileSchema=G.SchemaEnv=void 0;let J=H(31609),Q=H(77437),ee=H(5021),et=H(43106),eo=H(11164),ei=H(48008);class ea{constructor(W){var G;let H;this.refs={},this.dynamicAnchors={},"object"==typeof W.schema&&(H=W.schema),this.schema=W.schema,this.schemaId=W.schemaId,this.root=W.root||this,this.baseId=null!==(G=W.baseId)&&void 0!==G?G:(0,et.normalizeId)(null==H?void 0:H[W.schemaId||"$id"]),this.schemaPath=W.schemaPath,this.localRefs=W.localRefs,this.meta=W.meta,this.$async=null==H?void 0:H.$async,this.refs={}}}function es(W){let G,H;let eo=ef.call(this,W);if(eo)return eo;let ea=(0,et.getFullPath)(this.opts.uriResolver,W.root.baseId),{es5:es,lines:eu}=this.opts.code,{ownProperties:ec}=this.opts,ed=new J.CodeGen(this.scope,{es5:es,lines:eu,ownProperties:ec});W.$async&&(G=ed.scopeValue("Error",{ref:Q.default,code:(0,J._)`require("ajv/dist/runtime/validation_error").default`}));let eh=ed.scopeName("validate");W.validateName=eh;let ep={gen:ed,allErrors:this.opts.allErrors,data:ee.default.data,parentData:ee.default.parentData,parentDataProperty:ee.default.parentDataProperty,dataNames:[ee.default.data],dataPathArr:[J.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:ed.scopeValue("schema",!0===this.opts.code.source?{ref:W.schema,code:(0,J.stringify)(W.schema)}:{ref:W.schema}),validateName:eh,ValidationError:G,schema:W.schema,schemaEnv:W,rootId:ea,baseId:W.baseId||ea,schemaPath:J.nil,errSchemaPath:W.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,J._)`""`,opts:this.opts,self:this};try{this._compilations.add(W),(0,ei.validateFunctionCode)(ep),ed.optimize(this.opts.code.optimize);let G=ed.toString();H=`${ed.scopeRefs(ee.default.scope)}return ${G}`,this.opts.code.process&&(H=this.opts.code.process(H,W));let Q=Function(`${ee.default.self}`,`${ee.default.scope}`,H),et=Q(this,this.scope.get());if(this.scope.value(eh,{ref:et}),et.errors=null,et.schema=W.schema,et.schemaEnv=W,W.$async&&(et.$async=!0),!0===this.opts.code.source&&(et.source={validateName:eh,validateCode:G,scopeValues:ed._values}),this.opts.unevaluated){let{props:W,items:G}=ep;et.evaluated={props:W instanceof J.Name?void 0:W,items:G instanceof J.Name?void 0:G,dynamicProps:W instanceof J.Name,dynamicItems:G instanceof J.Name},et.source&&(et.source.evaluated=(0,J.stringify)(et.evaluated))}return W.validate=et,W}catch(G){throw delete W.validate,delete W.validateName,H&&this.logger.error("Error compiling schema, function code:",H),G}finally{this._compilations.delete(W)}}function eu(W,G,H){var J;H=(0,et.resolveUrl)(this.opts.uriResolver,G,H);let Q=W.refs[H];if(Q)return Q;let ee=eh.call(this,W,H);if(void 0===ee){let Q=null===(J=W.localRefs)||void 0===J?void 0:J[H],{schemaId:et}=this.opts;Q&&(ee=new ea({schema:Q,schemaId:et,root:W,baseId:G}))}if(void 0!==ee)return W.refs[H]=ec.call(this,ee)}function ec(W){return(0,et.inlineRef)(W.schema,this.opts.inlineRefs)?W.schema:W.validate?W:es.call(this,W)}function ef(W){for(let G of this._compilations)if(ed(G,W))return G}function ed(W,G){return W.schema===G.schema&&W.root===G.root&&W.baseId===G.baseId}function eh(W,G){let H;for(;"string"==typeof(H=this.refs[G]);)G=H;return H||this.schemas[G]||ep.call(this,W,G)}function ep(W,G){let H=this.opts.uriResolver.parse(G),J=(0,et._getFullPath)(this.opts.uriResolver,H),Q=(0,et.getFullPath)(this.opts.uriResolver,W.baseId,void 0);if(Object.keys(W.schema).length>0&&J===Q)return ev.call(this,H,W);let ee=(0,et.normalizeId)(J),eo=this.refs[ee]||this.schemas[ee];if("string"==typeof eo){let G=ep.call(this,W,eo);if("object"!=typeof(null==G?void 0:G.schema))return;return ev.call(this,H,G)}if("object"==typeof(null==eo?void 0:eo.schema)){if(eo.validate||es.call(this,eo),ee===(0,et.normalizeId)(G)){let{schema:G}=eo,{schemaId:H}=this.opts,J=G[H];return J&&(Q=(0,et.resolveUrl)(this.opts.uriResolver,Q,J)),new ea({schema:G,schemaId:H,root:W,baseId:Q})}return ev.call(this,H,eo)}}G.SchemaEnv=ea,G.compileSchema=es,G.resolveRef=eu,G.getCompilingSchema=ef,G.resolveSchema=ep;let ey=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ev(W,{baseId:G,schema:H,root:J}){var Q;let ee;if((null===(Q=W.fragment)||void 0===Q?void 0:Q[0])!=="/")return;for(let J of W.fragment.slice(1).split("/")){if("boolean"==typeof H)return;let W=H[(0,eo.unescapeFragment)(J)];if(void 0===W)return;H=W;let Q="object"==typeof H&&H[this.opts.schemaId];!ey.has(J)&&Q&&(G=(0,et.resolveUrl)(this.opts.uriResolver,G,Q))}if("boolean"!=typeof H&&H.$ref&&!(0,eo.schemaHasRulesButRef)(H,this.RULES)){let W=(0,et.resolveUrl)(this.opts.uriResolver,G,H.$ref);ee=ep.call(this,J,W)}let{schemaId:ei}=this.opts;if((ee=ee||new ea({schema:H,schemaId:ei,root:J,baseId:G})).schema!==ee.root.schema)return ee}},5021:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(31609),Q={data:new J.Name("data"),valCxt:new J.Name("valCxt"),instancePath:new J.Name("instancePath"),parentData:new J.Name("parentData"),parentDataProperty:new J.Name("parentDataProperty"),rootData:new J.Name("rootData"),dynamicAnchors:new J.Name("dynamicAnchors"),vErrors:new J.Name("vErrors"),errors:new J.Name("errors"),this:new J.Name("this"),self:new J.Name("self"),scope:new J.Name("scope"),json:new J.Name("json"),jsonPos:new J.Name("jsonPos"),jsonLen:new J.Name("jsonLen"),jsonPart:new J.Name("jsonPart")};G.default=Q},8487:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(43106);class Q extends Error{constructor(W,G,H,Q){super(Q||`can't resolve reference ${H} from id ${G}`),this.missingRef=(0,J.resolveUrl)(W,G,H),this.missingSchema=(0,J.normalizeId)((0,J.getFullPath)(W,this.missingRef))}}G.default=Q},43106:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.getSchemaRefs=G.resolveUrl=G.normalizeId=G._getFullPath=G.getFullPath=G.inlineRef=void 0;let J=H(11164),Q=H(95087),ee=H(52435),et=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function eo(W,G=!0){return"boolean"==typeof W||(!0===G?!ea(W):!!G&&es(W)<=G)}G.inlineRef=eo;let ei=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ea(W){for(let G in W){if(ei.has(G))return!0;let H=W[G];if(Array.isArray(H)&&H.some(ea)||"object"==typeof H&&ea(H))return!0}return!1}function es(W){let G=0;for(let H in W)if("$ref"===H||(G++,!et.has(H)&&("object"==typeof W[H]&&(0,J.eachItem)(W[H],W=>G+=es(W)),G===1/0)))return 1/0;return G}function eu(W,G="",H){!1!==H&&(G=ed(G));let J=W.parse(G);return ec(W,J)}function ec(W,G){let H=W.serialize(G);return H.split("#")[0]+"#"}G.getFullPath=eu,G._getFullPath=ec;let ef=/#\/?$/;function ed(W){return W?W.replace(ef,""):""}function eh(W,G,H){return H=ed(H),W.resolve(G,H)}G.normalizeId=ed,G.resolveUrl=eh;let ep=/^[a-z_][-a-z0-9._]*$/i;function ey(W,G){if("boolean"==typeof W)return{};let{schemaId:H,uriResolver:J}=this.opts,et=ed(W[H]||G),eo={"":et},ei=eu(J,et,!1),ea={},es=new Set;return ee(W,{allKeys:!0},(W,G,J,Q)=>{if(void 0===Q)return;let ee=ei+G,et=eo[Q];function eu(G){let H=this.opts.uriResolver.resolve;if(G=ed(et?H(et,G):G),es.has(G))throw ef(G);es.add(G);let J=this.refs[G];return"string"==typeof J&&(J=this.refs[J]),"object"==typeof J?ec(W,J.schema,G):G!==ed(ee)&&("#"===G[0]?(ec(W,ea[G],G),ea[G]=W):this.refs[G]=ee),G}function eh(W){if("string"==typeof W){if(!ep.test(W))throw Error(`invalid anchor "${W}"`);eu.call(this,`#${W}`)}}"string"==typeof W[H]&&(et=eu.call(this,W[H])),eh.call(this,W.$anchor),eh.call(this,W.$dynamicAnchor),eo[G]=et}),ea;function ec(W,G,H){if(void 0!==G&&!Q(W,G))throw ef(H)}function ef(W){return Error(`reference "${W}" resolves to more than one schema`)}}G.getSchemaRefs=ey},5359:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.getRules=G.isJSONType=void 0;let H=["string","number","integer","boolean","null","object","array"],J=new Set(H);function Q(W){return"string"==typeof W&&J.has(W)}function ee(){let W={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...W,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},W.number,W.string,W.array,W.object],post:{rules:[]},all:{},keywords:{}}}G.isJSONType=Q,G.getRules=ee},11164:function(W,G,H){"use strict";var J;Object.defineProperty(G,"__esModule",{value:!0}),G.checkStrictMode=G.getErrorPath=G.Type=G.useFunc=G.setEvaluated=G.evaluatedPropsToName=G.mergeEvaluated=G.eachItem=G.unescapeJsonPointer=G.escapeJsonPointer=G.escapeFragment=G.unescapeFragment=G.schemaRefOrVal=G.schemaHasRulesButRef=G.schemaHasRules=G.checkUnknownRules=G.alwaysValidSchema=G.toHash=void 0;let Q=H(31609),ee=H(17986);function et(W){let G={};for(let H of W)G[H]=!0;return G}function eo(W,G){return"boolean"==typeof G?G:0===Object.keys(G).length||(ei(W,G),!ea(G,W.self.RULES.all))}function ei(W,G=W.schema){let{opts:H,self:J}=W;if(!H.strictSchema||"boolean"==typeof G)return;let Q=J.RULES.keywords;for(let H in G)Q[H]||e_(W,`unknown keyword: "${H}"`)}function ea(W,G){if("boolean"==typeof W)return!W;for(let H in W)if(G[H])return!0;return!1}function es(W,G){if("boolean"==typeof W)return!W;for(let H in W)if("$ref"!==H&&G.all[H])return!0;return!1}function eu({topSchemaRef:W,schemaPath:G},H,J,ee){if(!ee){if("number"==typeof H||"boolean"==typeof H)return H;if("string"==typeof H)return(0,Q._)`${H}`}return(0,Q._)`${W}${G}${(0,Q.getProperty)(J)}`}function ec(W){return eh(decodeURIComponent(W))}function ef(W){return encodeURIComponent(ed(W))}function ed(W){return"number"==typeof W?`${W}`:W.replace(/~/g,"~0").replace(/\//g,"~1")}function eh(W){return W.replace(/~1/g,"/").replace(/~0/g,"~")}function ep(W,G){if(Array.isArray(W))for(let H of W)G(H);else G(W)}function ey({mergeNames:W,mergeToName:G,mergeValues:H,resultToName:J}){return(ee,et,eo,ei)=>{let ea=void 0===eo?et:eo instanceof Q.Name?(et instanceof Q.Name?W(ee,et,eo):G(ee,et,eo),eo):et instanceof Q.Name?(G(ee,eo,et),et):H(et,eo);return ei!==Q.Name||ea instanceof Q.Name?ea:J(ee,ea)}}function ev(W,G){if(!0===G)return W.var("props",!0);let H=W.var("props",(0,Q._)`{}`);return void 0!==G&&em(W,H,G),H}function em(W,G,H){Object.keys(H).forEach(H=>W.assign((0,Q._)`${G}${(0,Q.getProperty)(H)}`,!0))}G.toHash=et,G.alwaysValidSchema=eo,G.checkUnknownRules=ei,G.schemaHasRules=ea,G.schemaHasRulesButRef=es,G.schemaRefOrVal=eu,G.unescapeFragment=ec,G.escapeFragment=ef,G.escapeJsonPointer=ed,G.unescapeJsonPointer=eh,G.eachItem=ep,G.mergeEvaluated={props:ey({mergeNames:(W,G,H)=>W.if((0,Q._)`${H} !== true && ${G} !== undefined`,()=>{W.if((0,Q._)`${G} === true`,()=>W.assign(H,!0),()=>W.assign(H,(0,Q._)`${H} || {}`).code((0,Q._)`Object.assign(${H}, ${G})`))}),mergeToName:(W,G,H)=>W.if((0,Q._)`${H} !== true`,()=>{!0===G?W.assign(H,!0):(W.assign(H,(0,Q._)`${H} || {}`),em(W,H,G))}),mergeValues:(W,G)=>!0===W||{...W,...G},resultToName:ev}),items:ey({mergeNames:(W,G,H)=>W.if((0,Q._)`${H} !== true && ${G} !== undefined`,()=>W.assign(H,(0,Q._)`${G} === true ? true : ${H} > ${G} ? ${H} : ${G}`)),mergeToName:(W,G,H)=>W.if((0,Q._)`${H} !== true`,()=>W.assign(H,!0===G||(0,Q._)`${H} > ${G} ? ${H} : ${G}`)),mergeValues:(W,G)=>!0===W||Math.max(W,G),resultToName:(W,G)=>W.var("items",G)})},G.evaluatedPropsToName=ev,G.setEvaluated=em;let eg={};function eb(W,G){return W.scopeValue("func",{ref:G,code:eg[G.code]||(eg[G.code]=new ee._Code(G.code))})}function ew(W,G,H){if(W instanceof Q.Name){let ee=G===J.Num;return H?ee?(0,Q._)`"[" + ${W} + "]"`:(0,Q._)`"['" + ${W} + "']"`:ee?(0,Q._)`"/" + ${W}`:(0,Q._)`"/" + ${W}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return H?(0,Q.getProperty)(W).toString():"/"+ed(W)}function e_(W,G,H=W.opts.strictSchema){if(H){if(G=`strict mode: ${G}`,!0===H)throw Error(G);W.self.logger.warn(G)}}G.useFunc=eb,function(W){W[W.Num=0]="Num",W[W.Str=1]="Str"}(J=G.Type||(G.Type={})),G.getErrorPath=ew,G.checkStrictMode=e_},38598:function(W,G){"use strict";function H({schema:W,self:G},H){let Q=G.RULES.types[H];return Q&&!0!==Q&&J(W,Q)}function J(W,G){return G.rules.some(G=>Q(W,G))}function Q(W,G){var H;return void 0!==W[G.keyword]||(null===(H=G.definition.implements)||void 0===H?void 0:H.some(G=>void 0!==W[G]))}Object.defineProperty(G,"__esModule",{value:!0}),G.shouldUseRule=G.shouldUseGroup=G.schemaHasRulesForType=void 0,G.schemaHasRulesForType=H,G.shouldUseGroup=J,G.shouldUseRule=Q},48034:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.boolOrEmptySchema=G.topBoolOrEmptySchema=void 0;let J=H(20887),Q=H(31609),ee=H(5021),et={message:"boolean schema is false"};function eo(W){let{gen:G,schema:H,validateName:J}=W;!1===H?ea(W,!1):"object"==typeof H&&!0===H.$async?G.return(ee.default.data):(G.assign((0,Q._)`${J}.errors`,null),G.return(!0))}function ei(W,G){let{gen:H,schema:J}=W;!1===J?(H.var(G,!1),ea(W)):H.var(G,!0)}function ea(W,G){let{gen:H,data:Q}=W,ee={gen:H,keyword:"false schema",data:Q,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:W};(0,J.reportError)(ee,et,void 0,G)}G.topBoolOrEmptySchema=eo,G.boolOrEmptySchema=ei},25918:function(W,G,H){"use strict";var J;Object.defineProperty(G,"__esModule",{value:!0}),G.reportTypeError=G.checkDataTypes=G.checkDataType=G.coerceAndCheckDataType=G.getJSONTypes=G.getSchemaTypes=G.DataType=void 0;let Q=H(5359),ee=H(38598),et=H(20887),eo=H(31609),ei=H(11164);function ea(W){let G=es(W.type),H=G.includes("null");if(H){if(!1===W.nullable)throw Error("type: null contradicts nullable: false")}else{if(!G.length&&void 0!==W.nullable)throw Error('"nullable" cannot be used without "type"');!0===W.nullable&&G.push("null")}return G}function es(W){let G=Array.isArray(W)?W:W?[W]:[];if(G.every(Q.isJSONType))return G;throw Error("type must be JSONType or JSONType[]: "+G.join(","))}function eu(W,G){let{gen:H,data:Q,opts:et}=W,eo=ef(G,et.coerceTypes),ei=G.length>0&&!(0===eo.length&&1===G.length&&(0,ee.schemaHasRulesForType)(W,G[0]));if(ei){let ee=ey(G,Q,et.strictNumbers,J.Wrong);H.if(ee,()=>{eo.length?ed(W,G,eo):em(W)})}return ei}!function(W){W[W.Correct=0]="Correct",W[W.Wrong=1]="Wrong"}(J=G.DataType||(G.DataType={})),G.getSchemaTypes=ea,G.getJSONTypes=es,G.coerceAndCheckDataType=eu;let ec=new Set(["string","number","integer","boolean","null"]);function ef(W,G){return G?W.filter(W=>ec.has(W)||"array"===G&&"array"===W):[]}function ed(W,G,H){let{gen:J,data:Q,opts:ee}=W,et=J.let("dataType",(0,eo._)`typeof ${Q}`),ei=J.let("coerced",(0,eo._)`undefined`);for(let W of("array"===ee.coerceTypes&&J.if((0,eo._)`${et} == 'object' && Array.isArray(${Q}) && ${Q}.length == 1`,()=>J.assign(Q,(0,eo._)`${Q}[0]`).assign(et,(0,eo._)`typeof ${Q}`).if(ey(G,Q,ee.strictNumbers),()=>J.assign(ei,Q))),J.if((0,eo._)`${ei} !== undefined`),H))(ec.has(W)||"array"===W&&"array"===ee.coerceTypes)&&ea(W);function ea(W){switch(W){case"string":J.elseIf((0,eo._)`${et} == "number" || ${et} == "boolean"`).assign(ei,(0,eo._)`"" + ${Q}`).elseIf((0,eo._)`${Q} === null`).assign(ei,(0,eo._)`""`);return;case"number":J.elseIf((0,eo._)`${et} == "boolean" || ${Q} === null
              || (${et} == "string" && ${Q} && ${Q} == +${Q})`).assign(ei,(0,eo._)`+${Q}`);return;case"integer":J.elseIf((0,eo._)`${et} === "boolean" || ${Q} === null
              || (${et} === "string" && ${Q} && ${Q} == +${Q} && !(${Q} % 1))`).assign(ei,(0,eo._)`+${Q}`);return;case"boolean":J.elseIf((0,eo._)`${Q} === "false" || ${Q} === 0 || ${Q} === null`).assign(ei,!1).elseIf((0,eo._)`${Q} === "true" || ${Q} === 1`).assign(ei,!0);return;case"null":J.elseIf((0,eo._)`${Q} === "" || ${Q} === 0 || ${Q} === false`),J.assign(ei,null);return;case"array":J.elseIf((0,eo._)`${et} === "string" || ${et} === "number"
              || ${et} === "boolean" || ${Q} === null`).assign(ei,(0,eo._)`[${Q}]`)}}J.else(),em(W),J.endIf(),J.if((0,eo._)`${ei} !== undefined`,()=>{J.assign(Q,ei),eh(W,ei)})}function eh({gen:W,parentData:G,parentDataProperty:H},J){W.if((0,eo._)`${G} !== undefined`,()=>W.assign((0,eo._)`${G}[${H}]`,J))}function ep(W,G,H,Q=J.Correct){let ee;let et=Q===J.Correct?eo.operators.EQ:eo.operators.NEQ;switch(W){case"null":return(0,eo._)`${G} ${et} null`;case"array":ee=(0,eo._)`Array.isArray(${G})`;break;case"object":ee=(0,eo._)`${G} && typeof ${G} == "object" && !Array.isArray(${G})`;break;case"integer":ee=ei((0,eo._)`!(${G} % 1) && !isNaN(${G})`);break;case"number":ee=ei();break;default:return(0,eo._)`typeof ${G} ${et} ${W}`}return Q===J.Correct?ee:(0,eo.not)(ee);function ei(W=eo.nil){return(0,eo.and)((0,eo._)`typeof ${G} == "number"`,W,H?(0,eo._)`isFinite(${G})`:eo.nil)}}function ey(W,G,H,J){let Q;if(1===W.length)return ep(W[0],G,H,J);let ee=(0,ei.toHash)(W);if(ee.array&&ee.object){let W=(0,eo._)`typeof ${G} != "object"`;Q=ee.null?W:(0,eo._)`!${G} || ${W}`,delete ee.null,delete ee.array,delete ee.object}else Q=eo.nil;for(let W in ee.number&&delete ee.integer,ee)Q=(0,eo.and)(Q,ep(W,G,H,J));return Q}G.checkDataType=ep,G.checkDataTypes=ey;let ev={message:({schema:W})=>`must be ${W}`,params:({schema:W,schemaValue:G})=>"string"==typeof W?(0,eo._)`{type: ${W}}`:(0,eo._)`{type: ${G}}`};function em(W){let G=eg(W);(0,et.reportError)(G,ev)}function eg(W){let{gen:G,data:H,schema:J}=W,Q=(0,ei.schemaRefOrVal)(W,J,"type");return{gen:G,keyword:"type",data:H,schema:J.type,schemaCode:Q,schemaValue:Q,parentSchema:J,params:{},it:W}}G.reportTypeError=em},37895:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.assignDefaults=void 0;let J=H(31609),Q=H(11164);function ee(W,G){let{properties:H,items:J}=W.schema;if("object"===G&&H)for(let G in H)et(W,G,H[G].default);else"array"===G&&Array.isArray(J)&&J.forEach((G,H)=>et(W,H,G.default))}function et(W,G,H){let{gen:ee,compositeRule:et,data:eo,opts:ei}=W;if(void 0===H)return;let ea=(0,J._)`${eo}${(0,J.getProperty)(G)}`;if(et){(0,Q.checkStrictMode)(W,`default is ignored for: ${ea}`);return}let es=(0,J._)`${ea} === undefined`;"empty"===ei.useDefaults&&(es=(0,J._)`${es} || ${ea} === null || ${ea} === ""`),ee.if(es,(0,J._)`${ea} = ${(0,J.stringify)(H)}`)}G.assignDefaults=ee},48008:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.getData=G.KeywordCxt=G.validateFunctionCode=void 0;let J=H(48034),Q=H(25918),ee=H(38598),et=H(25918),eo=H(37895),ei=H(18458),ea=H(89229),es=H(31609),eu=H(5021),ec=H(43106),ef=H(11164),ed=H(20887);function eh(W){if(eS(W)&&(eO(W),e_(W))){em(W);return}ep(W,()=>(0,J.topBoolOrEmptySchema)(W))}function ep({gen:W,validateName:G,schema:H,schemaEnv:J,opts:Q},ee){Q.code.es5?W.func(G,(0,es._)`${eu.default.data}, ${eu.default.valCxt}`,J.$async,()=>{W.code((0,es._)`"use strict"; ${eb(H,Q)}`),ev(W,Q),W.code(ee)}):W.func(G,(0,es._)`${eu.default.data}, ${ey(Q)}`,J.$async,()=>W.code(eb(H,Q)).code(ee))}function ey(W){return(0,es._)`{${eu.default.instancePath}="", ${eu.default.parentData}, ${eu.default.parentDataProperty}, ${eu.default.rootData}=${eu.default.data}${W.dynamicRef?(0,es._)`, ${eu.default.dynamicAnchors}={}`:es.nil}}={}`}function ev(W,G){W.if(eu.default.valCxt,()=>{W.var(eu.default.instancePath,(0,es._)`${eu.default.valCxt}.${eu.default.instancePath}`),W.var(eu.default.parentData,(0,es._)`${eu.default.valCxt}.${eu.default.parentData}`),W.var(eu.default.parentDataProperty,(0,es._)`${eu.default.valCxt}.${eu.default.parentDataProperty}`),W.var(eu.default.rootData,(0,es._)`${eu.default.valCxt}.${eu.default.rootData}`),G.dynamicRef&&W.var(eu.default.dynamicAnchors,(0,es._)`${eu.default.valCxt}.${eu.default.dynamicAnchors}`)},()=>{W.var(eu.default.instancePath,(0,es._)`""`),W.var(eu.default.parentData,(0,es._)`undefined`),W.var(eu.default.parentDataProperty,(0,es._)`undefined`),W.var(eu.default.rootData,eu.default.data),G.dynamicRef&&W.var(eu.default.dynamicAnchors,(0,es._)`{}`)})}function em(W){let{schema:G,opts:H,gen:J}=W;ep(W,()=>{H.$comment&&G.$comment&&ex(W),eM(W),J.let(eu.default.vErrors,null),J.let(eu.default.errors,0),H.unevaluated&&eg(W),eA(W),eI(W)})}function eg(W){let{gen:G,validateName:H}=W;W.evaluated=G.const("evaluated",(0,es._)`${H}.evaluated`),G.if((0,es._)`${W.evaluated}.dynamicProps`,()=>G.assign((0,es._)`${W.evaluated}.props`,(0,es._)`undefined`)),G.if((0,es._)`${W.evaluated}.dynamicItems`,()=>G.assign((0,es._)`${W.evaluated}.items`,(0,es._)`undefined`))}function eb(W,G){let H="object"==typeof W&&W[G.schemaId];return H&&(G.code.source||G.code.process)?(0,es._)`/*# sourceURL=${H} */`:es.nil}function ew(W,G){if(eS(W)&&(eO(W),e_(W))){eE(W,G);return}(0,J.boolOrEmptySchema)(W,G)}function e_({schema:W,self:G}){if("boolean"==typeof W)return!W;for(let H in W)if(G.RULES.all[H])return!0;return!1}function eS(W){return"boolean"!=typeof W.schema}function eE(W,G){let{schema:H,gen:J,opts:Q}=W;Q.$comment&&H.$comment&&ex(W),ej(W),eT(W);let ee=J.const("_errs",eu.default.errors);eA(W,ee),J.var(G,(0,es._)`${ee} === ${eu.default.errors}`)}function eO(W){(0,ef.checkUnknownRules)(W),eP(W)}function eA(W,G){if(W.opts.jtd)return eN(W,[],!1,G);let H=(0,Q.getSchemaTypes)(W.schema),J=(0,Q.coerceAndCheckDataType)(W,H);eN(W,H,!J,G)}function eP(W){let{schema:G,errSchemaPath:H,opts:J,self:Q}=W;G.$ref&&J.ignoreKeywordsWithRef&&(0,ef.schemaHasRulesButRef)(G,Q.RULES)&&Q.logger.warn(`$ref: keywords ignored in schema at path "${H}"`)}function eM(W){let{schema:G,opts:H}=W;void 0!==G.default&&H.useDefaults&&H.strictSchema&&(0,ef.checkStrictMode)(W,"default is ignored in the schema root")}function ej(W){let G=W.schema[W.opts.schemaId];G&&(W.baseId=(0,ec.resolveUrl)(W.opts.uriResolver,W.baseId,G))}function eT(W){if(W.schema.$async&&!W.schemaEnv.$async)throw Error("async schema in sync schema")}function ex({gen:W,schemaEnv:G,schema:H,errSchemaPath:J,opts:Q}){let ee=H.$comment;if(!0===Q.$comment)W.code((0,es._)`${eu.default.self}.logger.log(${ee})`);else if("function"==typeof Q.$comment){let H=(0,es.str)`${J}/$comment`,Q=W.scopeValue("root",{ref:G.root});W.code((0,es._)`${eu.default.self}.opts.$comment(${ee}, ${H}, ${Q}.schema)`)}}function eI(W){let{gen:G,schemaEnv:H,validateName:J,ValidationError:Q,opts:ee}=W;H.$async?G.if((0,es._)`${eu.default.errors} === 0`,()=>G.return(eu.default.data),()=>G.throw((0,es._)`new ${Q}(${eu.default.vErrors})`)):(G.assign((0,es._)`${J}.errors`,eu.default.vErrors),ee.unevaluated&&eC(W),G.return((0,es._)`${eu.default.errors} === 0`))}function eC({gen:W,evaluated:G,props:H,items:J}){H instanceof es.Name&&W.assign((0,es._)`${G}.props`,H),J instanceof es.Name&&W.assign((0,es._)`${G}.items`,J)}function eN(W,G,H,J){let{gen:Q,schema:eo,data:ei,allErrors:ea,opts:ec,self:ed}=W,{RULES:eh}=ed;if(eo.$ref&&(ec.ignoreKeywordsWithRef||!(0,ef.schemaHasRulesButRef)(eo,eh))){Q.block(()=>ez(W,"$ref",eh.all.$ref.definition));return}function ep(ef){(0,ee.shouldUseGroup)(eo,ef)&&(ef.type?(Q.if((0,et.checkDataType)(ef.type,ei,ec.strictNumbers)),ek(W,ef),1===G.length&&G[0]===ef.type&&H&&(Q.else(),(0,et.reportTypeError)(W)),Q.endIf()):ek(W,ef),ea||Q.if((0,es._)`${eu.default.errors} === ${J||0}`))}ec.jtd||eR(W,G),Q.block(()=>{for(let W of eh.rules)ep(W);ep(eh.post)})}function ek(W,G){let{gen:H,schema:J,opts:{useDefaults:Q}}=W;Q&&(0,eo.assignDefaults)(W,G.type),H.block(()=>{for(let H of G.rules)(0,ee.shouldUseRule)(J,H)&&ez(W,H.keyword,H.definition,G.type)})}function eR(W,G){!W.schemaEnv.meta&&W.opts.strictTypes&&(eD(W,G),W.opts.allowUnionTypes||eL(W,G),eU(W,W.dataTypes))}function eD(W,G){if(G.length){if(!W.dataTypes.length){W.dataTypes=G;return}G.forEach(G=>{e$(W.dataTypes,G)||eK(W,`type "${G}" not allowed by context "${W.dataTypes.join(",")}"`)}),eB(W,G)}}function eL(W,G){G.length>1&&!(2===G.length&&G.includes("null"))&&eK(W,"use allowUnionTypes to allow union type keyword")}function eU(W,G){let H=W.self.RULES.all;for(let J in H){let Q=H[J];if("object"==typeof Q&&(0,ee.shouldUseRule)(W.schema,Q)){let{type:H}=Q.definition;H.length&&!H.some(W=>eF(G,W))&&eK(W,`missing type "${H.join(",")}" for keyword "${J}"`)}}}function eF(W,G){return W.includes(G)||"number"===G&&W.includes("integer")}function e$(W,G){return W.includes(G)||"integer"===G&&W.includes("number")}function eB(W,G){let H=[];for(let J of W.dataTypes)e$(G,J)?H.push(J):G.includes("integer")&&"number"===J&&H.push("integer");W.dataTypes=H}function eK(W,G){let H=W.schemaEnv.baseId+W.errSchemaPath;G+=` at "${H}" (strictTypes)`,(0,ef.checkStrictMode)(W,G,W.opts.strictTypes)}G.validateFunctionCode=eh;class eW{constructor(W,G,H){if((0,ei.validateKeywordUsage)(W,G,H),this.gen=W.gen,this.allErrors=W.allErrors,this.keyword=H,this.data=W.data,this.schema=W.schema[H],this.$data=G.$data&&W.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,ef.schemaRefOrVal)(W,this.schema,H,this.$data),this.schemaType=G.schemaType,this.parentSchema=W.schema,this.params={},this.it=W,this.def=G,this.$data)this.schemaCode=W.gen.const("vSchema",eH(this.$data,W));else if(this.schemaCode=this.schemaValue,!(0,ei.validSchemaType)(this.schema,G.schemaType,G.allowUndefined))throw Error(`${H} value must be ${JSON.stringify(G.schemaType)}`);("code"in G?G.trackErrors:!1!==G.errors)&&(this.errsCount=W.gen.const("_errs",eu.default.errors))}result(W,G,H){this.failResult((0,es.not)(W),G,H)}failResult(W,G,H){this.gen.if(W),H?H():this.error(),G?(this.gen.else(),G(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(W,G){this.failResult((0,es.not)(W),void 0,G)}fail(W){if(void 0===W){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(W),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(W){if(!this.$data)return this.fail(W);let{schemaCode:G}=this;this.fail((0,es._)`${G} !== undefined && (${(0,es.or)(this.invalid$data(),W)})`)}error(W,G,H){if(G){this.setParams(G),this._error(W,H),this.setParams({});return}this._error(W,H)}_error(W,G){(W?ed.reportExtraError:ed.reportError)(this,this.def.error,G)}$dataError(){(0,ed.reportError)(this,this.def.$dataError||ed.keyword$DataError)}reset(){if(void 0===this.errsCount)throw Error('add "trackErrors" to keyword definition');(0,ed.resetErrorsCount)(this.gen,this.errsCount)}ok(W){this.allErrors||this.gen.if(W)}setParams(W,G){G?Object.assign(this.params,W):this.params=W}block$data(W,G,H=es.nil){this.gen.block(()=>{this.check$data(W,H),G()})}check$data(W=es.nil,G=es.nil){if(!this.$data)return;let{gen:H,schemaCode:J,schemaType:Q,def:ee}=this;H.if((0,es.or)((0,es._)`${J} === undefined`,G)),W!==es.nil&&H.assign(W,!0),(Q.length||ee.validateSchema)&&(H.elseIf(this.invalid$data()),this.$dataError(),W!==es.nil&&H.assign(W,!1)),H.else()}invalid$data(){let{gen:W,schemaCode:G,schemaType:H,def:J,it:Q}=this;return(0,es.or)(ee(),eo());function ee(){if(H.length){if(!(G instanceof es.Name))throw Error("ajv implementation error");let W=Array.isArray(H)?H:[H];return(0,es._)`${(0,et.checkDataTypes)(W,G,Q.opts.strictNumbers,et.DataType.Wrong)}`}return es.nil}function eo(){if(J.validateSchema){let H=W.scopeValue("validate$data",{ref:J.validateSchema});return(0,es._)`!${H}(${G})`}return es.nil}}subschema(W,G){let H=(0,ea.getSubschema)(this.it,W);(0,ea.extendSubschemaData)(H,this.it,W),(0,ea.extendSubschemaMode)(H,W);let J={...this.it,...H,items:void 0,props:void 0};return ew(J,G),J}mergeEvaluated(W,G){let{it:H,gen:J}=this;H.opts.unevaluated&&(!0!==H.props&&void 0!==W.props&&(H.props=ef.mergeEvaluated.props(J,W.props,H.props,G)),!0!==H.items&&void 0!==W.items&&(H.items=ef.mergeEvaluated.items(J,W.items,H.items,G)))}mergeValidEvaluated(W,G){let{it:H,gen:J}=this;if(H.opts.unevaluated&&(!0!==H.props||!0!==H.items))return J.if(G,()=>this.mergeEvaluated(W,es.Name)),!0}}function ez(W,G,H,J){let Q=new eW(W,H,G);"code"in H?H.code(Q,J):Q.$data&&H.validate?(0,ei.funcKeywordCode)(Q,H):"macro"in H?(0,ei.macroKeywordCode)(Q,H):(H.compile||H.validate)&&(0,ei.funcKeywordCode)(Q,H)}G.KeywordCxt=eW;let eG=/^\/(?:[^~]|~0|~1)*$/,eq=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function eH(W,{dataLevel:G,dataNames:H,dataPathArr:J}){let Q,ee;if(""===W)return eu.default.rootData;if("/"===W[0]){if(!eG.test(W))throw Error(`Invalid JSON-pointer: ${W}`);Q=W,ee=eu.default.rootData}else{let et=eq.exec(W);if(!et)throw Error(`Invalid JSON-pointer: ${W}`);let eo=+et[1];if("#"===(Q=et[2])){if(eo>=G)throw Error(ei("property/index",eo));return J[G-eo]}if(eo>G)throw Error(ei("data",eo));if(ee=H[G-eo],!Q)return ee}let et=ee,eo=Q.split("/");for(let W of eo)W&&(ee=(0,es._)`${ee}${(0,es.getProperty)((0,ef.unescapeJsonPointer)(W))}`,et=(0,es._)`${et} && ${ee}`);return et;function ei(W,H){return`Cannot access ${W} ${H} levels up, current level is ${G}`}}G.getData=eH},18458:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.validateKeywordUsage=G.validSchemaType=G.funcKeywordCode=G.macroKeywordCode=void 0;let J=H(31609),Q=H(5021),ee=H(98689),et=H(20887);function eo(W,G){let{gen:H,keyword:Q,schema:ee,parentSchema:et,it:eo}=W,ei=G.macro.call(eo.self,ee,et,eo),ea=ec(H,Q,ei);!1!==eo.opts.validateSchema&&eo.self.validateSchema(ei,!0);let es=H.name("valid");W.subschema({schema:ei,schemaPath:J.nil,errSchemaPath:`${eo.errSchemaPath}/${Q}`,topSchemaRef:ea,compositeRule:!0},es),W.pass(es,()=>W.error(!0))}function ei(W,G){var H;let{gen:et,keyword:eo,schema:ei,parentSchema:ef,$data:ed,it:eh}=W;eu(eh,G);let ep=!ed&&G.compile?G.compile.call(eh.self,ei,ef,eh):G.validate,ey=ec(et,eo,ep),ev=et.let("valid");function em(){if(!1===G.errors)ew(),G.modifying&&ea(W),e_(()=>W.error());else{let H=G.async?eg():eb();G.modifying&&ea(W),e_(()=>es(W,H))}}function eg(){let W=et.let("ruleErrs",null);return et.try(()=>ew((0,J._)`await `),G=>et.assign(ev,!1).if((0,J._)`${G} instanceof ${eh.ValidationError}`,()=>et.assign(W,(0,J._)`${G}.errors`),()=>et.throw(G))),W}function eb(){let W=(0,J._)`${ey}.errors`;return et.assign(W,null),ew(J.nil),W}function ew(H=G.async?(0,J._)`await `:J.nil){let eo=eh.opts.passContext?Q.default.this:Q.default.self,ei=!("compile"in G&&!ed||!1===G.schema);et.assign(ev,(0,J._)`${H}${(0,ee.callValidateCode)(W,ey,eo,ei)}`,G.modifying)}function e_(W){var H;et.if((0,J.not)(null!==(H=G.valid)&&void 0!==H?H:ev),W)}W.block$data(ev,em),W.ok(null!==(H=G.valid)&&void 0!==H?H:ev)}function ea(W){let{gen:G,data:H,it:Q}=W;G.if(Q.parentData,()=>G.assign(H,(0,J._)`${Q.parentData}[${Q.parentDataProperty}]`))}function es(W,G){let{gen:H}=W;H.if((0,J._)`Array.isArray(${G})`,()=>{H.assign(Q.default.vErrors,(0,J._)`${Q.default.vErrors} === null ? ${G} : ${Q.default.vErrors}.concat(${G})`).assign(Q.default.errors,(0,J._)`${Q.default.vErrors}.length`),(0,et.extendErrors)(W)},()=>W.error())}function eu({schemaEnv:W},G){if(G.async&&!W.$async)throw Error("async keyword in sync schema")}function ec(W,G,H){if(void 0===H)throw Error(`keyword "${G}" failed to compile`);return W.scopeValue("keyword","function"==typeof H?{ref:H}:{ref:H,code:(0,J.stringify)(H)})}function ef(W,G,H=!1){return!G.length||G.some(G=>"array"===G?Array.isArray(W):"object"===G?W&&"object"==typeof W&&!Array.isArray(W):typeof W==G||H&&void 0===W)}function ed({schema:W,opts:G,self:H,errSchemaPath:J},Q,ee){if(Array.isArray(Q.keyword)?!Q.keyword.includes(ee):Q.keyword!==ee)throw Error("ajv implementation error");let et=Q.dependencies;if(null==et?void 0:et.some(G=>!Object.prototype.hasOwnProperty.call(W,G)))throw Error(`parent schema must have dependencies of ${ee}: ${et.join(",")}`);if(Q.validateSchema){let et=Q.validateSchema(W[ee]);if(!et){let W=`keyword "${ee}" value is invalid at path "${J}": `+H.errorsText(Q.validateSchema.errors);if("log"===G.validateSchema)H.logger.error(W);else throw Error(W)}}}G.macroKeywordCode=eo,G.funcKeywordCode=ei,G.validSchemaType=ef,G.validateKeywordUsage=ed},89229:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.extendSubschemaMode=G.extendSubschemaData=G.getSubschema=void 0;let J=H(31609),Q=H(11164);function ee(W,{keyword:G,schemaProp:H,schema:ee,schemaPath:et,errSchemaPath:eo,topSchemaRef:ei}){if(void 0!==G&&void 0!==ee)throw Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==G){let ee=W.schema[G];return void 0===H?{schema:ee,schemaPath:(0,J._)`${W.schemaPath}${(0,J.getProperty)(G)}`,errSchemaPath:`${W.errSchemaPath}/${G}`}:{schema:ee[H],schemaPath:(0,J._)`${W.schemaPath}${(0,J.getProperty)(G)}${(0,J.getProperty)(H)}`,errSchemaPath:`${W.errSchemaPath}/${G}/${(0,Q.escapeFragment)(H)}`}}if(void 0!==ee){if(void 0===et||void 0===eo||void 0===ei)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:ee,schemaPath:et,topSchemaRef:ei,errSchemaPath:eo}}throw Error('either "keyword" or "schema" must be passed')}function et(W,G,{dataProp:H,dataPropType:ee,data:et,dataTypes:eo,propertyName:ei}){if(void 0!==et&&void 0!==H)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:ea}=G;if(void 0!==H){let{errorPath:et,dataPathArr:eo,opts:ei}=G,eu=ea.let("data",(0,J._)`${G.data}${(0,J.getProperty)(H)}`,!0);es(eu),W.errorPath=(0,J.str)`${et}${(0,Q.getErrorPath)(H,ee,ei.jsPropertySyntax)}`,W.parentDataProperty=(0,J._)`${H}`,W.dataPathArr=[...eo,W.parentDataProperty]}if(void 0!==et){let G=et instanceof J.Name?et:ea.let("data",et,!0);es(G),void 0!==ei&&(W.propertyName=ei)}function es(H){W.data=H,W.dataLevel=G.dataLevel+1,W.dataTypes=[],G.definedProperties=new Set,W.parentData=G.data,W.dataNames=[...G.dataNames,H]}eo&&(W.dataTypes=eo)}function eo(W,{jtdDiscriminator:G,jtdMetadata:H,compositeRule:J,createErrors:Q,allErrors:ee}){void 0!==J&&(W.compositeRule=J),void 0!==Q&&(W.createErrors=Q),void 0!==ee&&(W.allErrors=ee),W.jtdDiscriminator=G,W.jtdMetadata=H}G.getSubschema=ee,G.extendSubschemaData=et,G.extendSubschemaMode=eo},25917:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.CodeGen=G.Name=G.nil=G.stringify=G.str=G._=G.KeywordCxt=void 0;var J=H(48008);Object.defineProperty(G,"KeywordCxt",{enumerable:!0,get:function(){return J.KeywordCxt}});var Q=H(31609);Object.defineProperty(G,"_",{enumerable:!0,get:function(){return Q._}}),Object.defineProperty(G,"str",{enumerable:!0,get:function(){return Q.str}}),Object.defineProperty(G,"stringify",{enumerable:!0,get:function(){return Q.stringify}}),Object.defineProperty(G,"nil",{enumerable:!0,get:function(){return Q.nil}}),Object.defineProperty(G,"Name",{enumerable:!0,get:function(){return Q.Name}}),Object.defineProperty(G,"CodeGen",{enumerable:!0,get:function(){return Q.CodeGen}});let ee=H(77437),et=H(8487),eo=H(5359),ei=H(6346),ea=H(31609),es=H(43106),eu=H(25918),ec=H(11164),ef=H(65655),ed=H(47131),eh=(W,G)=>new RegExp(W,G);eh.code="new RegExp";let ep=["removeAdditional","useDefaults","coerceTypes"],ey=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),ev={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},em={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},eg=200;function eb(W){var G,H,J,Q,ee,et,eo,ei,ea,es,eu,ec,ef,ep,ey,ev,em,eb,ew,e_,eS,eE,eO,eA,eP;let eM=W.strict,ej=null===(G=W.code)||void 0===G?void 0:G.optimize,eT=!0===ej||void 0===ej?1:ej||0,ex=null!==(J=null===(H=W.code)||void 0===H?void 0:H.regExp)&&void 0!==J?J:eh,eI=null!==(Q=W.uriResolver)&&void 0!==Q?Q:ed.default;return{strictSchema:null===(et=null!==(ee=W.strictSchema)&&void 0!==ee?ee:eM)||void 0===et||et,strictNumbers:null===(ei=null!==(eo=W.strictNumbers)&&void 0!==eo?eo:eM)||void 0===ei||ei,strictTypes:null!==(es=null!==(ea=W.strictTypes)&&void 0!==ea?ea:eM)&&void 0!==es?es:"log",strictTuples:null!==(ec=null!==(eu=W.strictTuples)&&void 0!==eu?eu:eM)&&void 0!==ec?ec:"log",strictRequired:null!==(ep=null!==(ef=W.strictRequired)&&void 0!==ef?ef:eM)&&void 0!==ep&&ep,code:W.code?{...W.code,optimize:eT,regExp:ex}:{optimize:eT,regExp:ex},loopRequired:null!==(ey=W.loopRequired)&&void 0!==ey?ey:eg,loopEnum:null!==(ev=W.loopEnum)&&void 0!==ev?ev:eg,meta:null===(em=W.meta)||void 0===em||em,messages:null===(eb=W.messages)||void 0===eb||eb,inlineRefs:null===(ew=W.inlineRefs)||void 0===ew||ew,schemaId:null!==(e_=W.schemaId)&&void 0!==e_?e_:"$id",addUsedSchema:null===(eS=W.addUsedSchema)||void 0===eS||eS,validateSchema:null===(eE=W.validateSchema)||void 0===eE||eE,validateFormats:null===(eO=W.validateFormats)||void 0===eO||eO,unicodeRegExp:null===(eA=W.unicodeRegExp)||void 0===eA||eA,int32range:null===(eP=W.int32range)||void 0===eP||eP,uriResolver:eI}}class ew{constructor(W={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,W=this.opts={...W,...eb(W)};let{es5:G,lines:H}=this.opts.code;this.scope=new ea.ValueScope({scope:{},prefixes:ey,es5:G,lines:H}),this.logger=ej(W.logger);let J=W.validateFormats;W.validateFormats=!1,this.RULES=(0,eo.getRules)(),e_.call(this,ev,W,"NOT SUPPORTED"),e_.call(this,em,W,"DEPRECATED","warn"),this._metaOpts=eP.call(this),W.formats&&eO.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),W.keywords&&eA.call(this,W.keywords),"object"==typeof W.meta&&this.addMetaSchema(W.meta),eE.call(this),W.validateFormats=J}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:W,meta:G,schemaId:H}=this.opts,J=ef;"id"===H&&((J={...ef}).id=J.$id,delete J.$id),G&&W&&this.addMetaSchema(J,J[H],!1)}defaultMeta(){let{meta:W,schemaId:G}=this.opts;return this.opts.defaultMeta="object"==typeof W?W[G]||W:void 0}validate(W,G){let H;if("string"==typeof W){if(!(H=this.getSchema(W)))throw Error(`no schema with key or ref "${W}"`)}else H=this.compile(W);let J=H(G);return"$async"in H||(this.errors=H.errors),J}compile(W,G){let H=this._addSchema(W,G);return H.validate||this._compileSchemaEnv(H)}compileAsync(W,G){if("function"!=typeof this.opts.loadSchema)throw Error("options.loadSchema should be a function");let{loadSchema:H}=this.opts;return J.call(this,W,G);async function J(W,G){await Q.call(this,W.$schema);let H=this._addSchema(W,G);return H.validate||ee.call(this,H)}async function Q(W){W&&!this.getSchema(W)&&await J.call(this,{$ref:W},!0)}async function ee(W){try{return this._compileSchemaEnv(W)}catch(G){if(!(G instanceof et.default))throw G;return eo.call(this,G),await ei.call(this,G.missingSchema),ee.call(this,W)}}function eo({missingSchema:W,missingRef:G}){if(this.refs[W])throw Error(`AnySchema ${W} is loaded but ${G} cannot be resolved`)}async function ei(W){let H=await ea.call(this,W);this.refs[W]||await Q.call(this,H.$schema),this.refs[W]||this.addSchema(H,W,G)}async function ea(W){let G=this._loading[W];if(G)return G;try{return await (this._loading[W]=H(W))}finally{delete this._loading[W]}}}addSchema(W,G,H,J=this.opts.validateSchema){let Q;if(Array.isArray(W)){for(let G of W)this.addSchema(G,void 0,H,J);return this}if("object"==typeof W){let{schemaId:G}=this.opts;if(void 0!==(Q=W[G])&&"string"!=typeof Q)throw Error(`schema ${G} must be string`)}return G=(0,es.normalizeId)(G||Q),this._checkUnique(G),this.schemas[G]=this._addSchema(W,H,G,J,!0),this}addMetaSchema(W,G,H=this.opts.validateSchema){return this.addSchema(W,G,!0,H),this}validateSchema(W,G){let H;if("boolean"==typeof W)return!0;if(void 0!==(H=W.$schema)&&"string"!=typeof H)throw Error("$schema must be a string");if(!(H=H||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;let J=this.validate(H,W);if(!J&&G){let W="schema is invalid: "+this.errorsText();if("log"===this.opts.validateSchema)this.logger.error(W);else throw Error(W)}return J}getSchema(W){let G;for(;"string"==typeof(G=eS.call(this,W));)W=G;if(void 0===G){let{schemaId:H}=this.opts,J=new ei.SchemaEnv({schema:{},schemaId:H});if(!(G=ei.resolveSchema.call(this,J,W)))return;this.refs[W]=G}return G.validate||this._compileSchemaEnv(G)}removeSchema(W){if(W instanceof RegExp)return this._removeAllSchemas(this.schemas,W),this._removeAllSchemas(this.refs,W),this;switch(typeof W){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let G=eS.call(this,W);return"object"==typeof G&&this._cache.delete(G.schema),delete this.schemas[W],delete this.refs[W],this}case"object":{let G=W;this._cache.delete(G);let H=W[this.opts.schemaId];return H&&(H=(0,es.normalizeId)(H),delete this.schemas[H],delete this.refs[H]),this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(W){for(let G of W)this.addKeyword(G);return this}addKeyword(W,G){let H;if("string"==typeof W)H=W,"object"==typeof G&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),G.keyword=H);else if("object"==typeof W&&void 0===G){if(Array.isArray(H=(G=W).keyword)&&!H.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(ex.call(this,H,G),!G)return(0,ec.eachItem)(H,W=>eI.call(this,W)),this;eN.call(this,G);let J={...G,type:(0,eu.getJSONTypes)(G.type),schemaType:(0,eu.getJSONTypes)(G.schemaType)};return(0,ec.eachItem)(H,0===J.type.length?W=>eI.call(this,W,J):W=>J.type.forEach(G=>eI.call(this,W,J,G))),this}getKeyword(W){let G=this.RULES.all[W];return"object"==typeof G?G.definition:!!G}removeKeyword(W){let{RULES:G}=this;for(let H of(delete G.keywords[W],delete G.all[W],G.rules)){let G=H.rules.findIndex(G=>G.keyword===W);G>=0&&H.rules.splice(G,1)}return this}addFormat(W,G){return"string"==typeof G&&(G=new RegExp(G)),this.formats[W]=G,this}errorsText(W=this.errors,{separator:G=", ",dataVar:H="data"}={}){return W&&0!==W.length?W.map(W=>`${H}${W.instancePath} ${W.message}`).reduce((W,H)=>W+G+H):"No errors"}$dataMetaSchema(W,G){let H=this.RULES.all;for(let J of(W=JSON.parse(JSON.stringify(W)),G)){let G=J.split("/").slice(1),Q=W;for(let W of G)Q=Q[W];for(let W in H){let G=H[W];if("object"!=typeof G)continue;let{$data:J}=G.definition,ee=Q[W];J&&ee&&(Q[W]=eR(ee))}}return W}_removeAllSchemas(W,G){for(let H in W){let J=W[H];(!G||G.test(H))&&("string"==typeof J?delete W[H]:J&&!J.meta&&(this._cache.delete(J.schema),delete W[H]))}}_addSchema(W,G,H,J=this.opts.validateSchema,Q=this.opts.addUsedSchema){let ee;let{schemaId:et}=this.opts;if("object"==typeof W)ee=W[et];else{if(this.opts.jtd)throw Error("schema must be object");if("boolean"!=typeof W)throw Error("schema must be object or boolean")}let eo=this._cache.get(W);if(void 0!==eo)return eo;H=(0,es.normalizeId)(ee||H);let ea=es.getSchemaRefs.call(this,W,H);return eo=new ei.SchemaEnv({schema:W,schemaId:et,meta:G,baseId:H,localRefs:ea}),this._cache.set(eo.schema,eo),Q&&!H.startsWith("#")&&(H&&this._checkUnique(H),this.refs[H]=eo),J&&this.validateSchema(W,!0),eo}_checkUnique(W){if(this.schemas[W]||this.refs[W])throw Error(`schema with key or id "${W}" already exists`)}_compileSchemaEnv(W){if(W.meta?this._compileMetaSchema(W):ei.compileSchema.call(this,W),!W.validate)throw Error("ajv implementation error");return W.validate}_compileMetaSchema(W){let G=this.opts;this.opts=this._metaOpts;try{ei.compileSchema.call(this,W)}finally{this.opts=G}}}function e_(W,G,H,J="error"){for(let Q in W){let ee=Q;ee in G&&this.logger[J](`${H}: option ${Q}. ${W[ee]}`)}}function eS(W){return W=(0,es.normalizeId)(W),this.schemas[W]||this.refs[W]}function eE(){let W=this.opts.schemas;if(W){if(Array.isArray(W))this.addSchema(W);else for(let G in W)this.addSchema(W[G],G)}}function eO(){for(let W in this.opts.formats){let G=this.opts.formats[W];G&&this.addFormat(W,G)}}function eA(W){if(Array.isArray(W)){this.addVocabulary(W);return}for(let G in this.logger.warn("keywords option as map is deprecated, pass array"),W){let H=W[G];H.keyword||(H.keyword=G),this.addKeyword(H)}}function eP(){let W={...this.opts};for(let G of ep)delete W[G];return W}G.default=ew,ew.ValidationError=ee.default,ew.MissingRefError=et.default;let eM={log(){},warn(){},error(){}};function ej(W){if(!1===W)return eM;if(void 0===W)return console;if(W.log&&W.warn&&W.error)return W;throw Error("logger must implement log, warn and error methods")}let eT=/^[a-z_$][a-z0-9_$:-]*$/i;function ex(W,G){let{RULES:H}=this;if((0,ec.eachItem)(W,W=>{if(H.keywords[W])throw Error(`Keyword ${W} is already defined`);if(!eT.test(W))throw Error(`Keyword ${W} has invalid name`)}),G&&G.$data&&!("code"in G||"validate"in G))throw Error('$data keyword must have "code" or "validate" function')}function eI(W,G,H){var J;let Q=null==G?void 0:G.post;if(H&&Q)throw Error('keyword with "post" flag cannot have "type"');let{RULES:ee}=this,et=Q?ee.post:ee.rules.find(({type:W})=>W===H);if(et||(et={type:H,rules:[]},ee.rules.push(et)),ee.keywords[W]=!0,!G)return;let eo={keyword:W,definition:{...G,type:(0,eu.getJSONTypes)(G.type),schemaType:(0,eu.getJSONTypes)(G.schemaType)}};G.before?eC.call(this,et,eo,G.before):et.rules.push(eo),ee.all[W]=eo,null===(J=G.implements)||void 0===J||J.forEach(W=>this.addKeyword(W))}function eC(W,G,H){let J=W.rules.findIndex(W=>W.keyword===H);J>=0?W.rules.splice(J,0,G):(W.rules.push(G),this.logger.warn(`rule ${H} is not defined`))}function eN(W){let{metaSchema:G}=W;void 0!==G&&(W.$data&&this.opts.$data&&(G=eR(G)),W.validateSchema=this.compile(G,!0))}let ek={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function eR(W){return{anyOf:[W,ek]}}},33332:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(95087);J.code='require("ajv/dist/runtime/equal").default',G.default=J},84123:function(W,G){"use strict";function H(W){let G;let H=W.length,J=0,Q=0;for(;Q<H;)J++,(G=W.charCodeAt(Q++))>=55296&&G<=56319&&Q<H&&(64512&(G=W.charCodeAt(Q)))==56320&&Q++;return J}Object.defineProperty(G,"__esModule",{value:!0}),G.default=H,H.code='require("ajv/dist/runtime/ucs2length").default'},47131:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(10061);J.code='require("ajv/dist/runtime/uri").default',G.default=J},77437:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0});class H extends Error{constructor(W){super("validation failed"),this.errors=W,this.ajv=this.validation=!0}}G.default=H},59728:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.validateAdditionalItems=void 0;let J=H(31609),Q=H(11164),ee={message:({params:{len:W}})=>(0,J.str)`must NOT have more than ${W} items`,params:({params:{len:W}})=>(0,J._)`{limit: ${W}}`},et={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:ee,code(W){let{parentSchema:G,it:H}=W,{items:J}=G;if(!Array.isArray(J)){(0,Q.checkStrictMode)(H,'"additionalItems" is ignored when "items" is not an array of schemas');return}eo(W,J)}};function eo(W,G){let{gen:H,schema:ee,data:et,keyword:eo,it:ei}=W;ei.items=!0;let ea=H.const("len",(0,J._)`${et}.length`);if(!1===ee)W.setParams({len:G.length}),W.pass((0,J._)`${ea} <= ${G.length}`);else if("object"==typeof ee&&!(0,Q.alwaysValidSchema)(ei,ee)){let Q=H.var("valid",(0,J._)`${ea} <= ${G.length}`);H.if((0,J.not)(Q),()=>es(Q)),W.ok(Q)}function es(ee){H.forRange("i",G.length,ea,G=>{W.subschema({keyword:eo,dataProp:G,dataPropType:Q.Type.Num},ee),ei.allErrors||H.if((0,J.not)(ee),()=>H.break())})}}G.validateAdditionalItems=eo,G.default=et},40485:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(98689),Q=H(31609),ee=H(5021),et=H(11164),eo={message:"must NOT have additional properties",params:({params:W})=>(0,Q._)`{additionalProperty: ${W.additionalProperty}}`},ei={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:eo,code(W){let{gen:G,schema:H,parentSchema:eo,data:ei,errsCount:ea,it:es}=W;if(!ea)throw Error("ajv implementation error");let{allErrors:eu,opts:ec}=es;if(es.props=!0,"all"!==ec.removeAdditional&&(0,et.alwaysValidSchema)(es,H))return;let ef=(0,J.allSchemaProperties)(eo.properties),ed=(0,J.allSchemaProperties)(eo.patternProperties);function eh(H){let ee;if(ef.length>8){let W=(0,et.schemaRefOrVal)(es,eo.properties,"properties");ee=(0,J.isOwnProperty)(G,W,H)}else ee=ef.length?(0,Q.or)(...ef.map(W=>(0,Q._)`${H} === ${W}`)):Q.nil;return ed.length&&(ee=(0,Q.or)(ee,...ed.map(G=>(0,Q._)`${(0,J.usePattern)(W,G)}.test(${H})`))),(0,Q.not)(ee)}function ep(W){G.code((0,Q._)`delete ${ei}[${W}]`)}function ey(J){if("all"===ec.removeAdditional||ec.removeAdditional&&!1===H){ep(J);return}if(!1===H){W.setParams({additionalProperty:J}),W.error(),eu||G.break();return}if("object"==typeof H&&!(0,et.alwaysValidSchema)(es,H)){let H=G.name("valid");"failing"===ec.removeAdditional?(ev(J,H,!1),G.if((0,Q.not)(H),()=>{W.reset(),ep(J)})):(ev(J,H),eu||G.if((0,Q.not)(H),()=>G.break()))}}function ev(G,H,J){let Q={keyword:"additionalProperties",dataProp:G,dataPropType:et.Type.Str};!1===J&&Object.assign(Q,{compositeRule:!0,createErrors:!1,allErrors:!1}),W.subschema(Q,H)}(function(){G.forIn("key",ei,W=>{ef.length||ed.length?G.if(eh(W),()=>ey(W)):ey(W)})})(),W.ok((0,Q._)`${ea} === ${ee.default.errors}`)}};G.default=ei},58264:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(11164),Q={keyword:"allOf",schemaType:"array",code(W){let{gen:G,schema:H,it:Q}=W;if(!Array.isArray(H))throw Error("ajv implementation error");let ee=G.name("valid");H.forEach((G,H)=>{if((0,J.alwaysValidSchema)(Q,G))return;let et=W.subschema({keyword:"allOf",schemaProp:H},ee);W.ok(ee),W.mergeEvaluated(et)})}};G.default=Q},15809:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(98689),Q={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:J.validateUnion,error:{message:"must match a schema in anyOf"}};G.default=Q},71618:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(31609),Q=H(11164),ee={message:({params:{min:W,max:G}})=>void 0===G?(0,J.str)`must contain at least ${W} valid item(s)`:(0,J.str)`must contain at least ${W} and no more than ${G} valid item(s)`,params:({params:{min:W,max:G}})=>void 0===G?(0,J._)`{minContains: ${W}}`:(0,J._)`{minContains: ${W}, maxContains: ${G}}`},et={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:ee,code(W){let G,H;let{gen:ee,schema:et,parentSchema:eo,data:ei,it:ea}=W,{minContains:es,maxContains:eu}=eo;ea.opts.next?(G=void 0===es?1:es,H=eu):G=1;let ec=ee.const("len",(0,J._)`${ei}.length`);if(W.setParams({min:G,max:H}),void 0===H&&0===G){(0,Q.checkStrictMode)(ea,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(void 0!==H&&G>H){(0,Q.checkStrictMode)(ea,'"minContains" > "maxContains" is always invalid'),W.fail();return}if((0,Q.alwaysValidSchema)(ea,et)){let Q=(0,J._)`${ec} >= ${G}`;void 0!==H&&(Q=(0,J._)`${Q} && ${ec} <= ${H}`),W.pass(Q);return}ea.items=!0;let ef=ee.name("valid");function ed(){let W=ee.name("_valid"),G=ee.let("count",0);eh(W,()=>ee.if(W,()=>ep(G)))}function eh(G,H){ee.forRange("i",0,ec,J=>{W.subschema({keyword:"contains",dataProp:J,dataPropType:Q.Type.Num,compositeRule:!0},G),H()})}function ep(W){ee.code((0,J._)`${W}++`),void 0===H?ee.if((0,J._)`${W} >= ${G}`,()=>ee.assign(ef,!0).break()):(ee.if((0,J._)`${W} > ${H}`,()=>ee.assign(ef,!1).break()),1===G?ee.assign(ef,!0):ee.if((0,J._)`${W} >= ${G}`,()=>ee.assign(ef,!0)))}void 0===H&&1===G?eh(ef,()=>ee.if(ef,()=>ee.break())):0===G?(ee.let(ef,!0),void 0!==H&&ee.if((0,J._)`${ei}.length > 0`,ed)):(ee.let(ef,!1),ed()),W.result(ef,()=>W.reset())}};G.default=et},92982:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.validateSchemaDeps=G.validatePropertyDeps=G.error=void 0;let J=H(31609),Q=H(11164),ee=H(98689);G.error={message:({params:{property:W,depsCount:G,deps:H}})=>{let Q=1===G?"property":"properties";return(0,J.str)`must have ${Q} ${H} when property ${W} is present`},params:({params:{property:W,depsCount:G,deps:H,missingProperty:Q}})=>(0,J._)`{property: ${W},
    missingProperty: ${Q},
    depsCount: ${G},
    deps: ${H}}`};let et={keyword:"dependencies",type:"object",schemaType:"object",error:G.error,code(W){let[G,H]=eo(W);ei(W,G),ea(W,H)}};function eo({schema:W}){let G={},H={};for(let J in W){if("__proto__"===J)continue;let Q=Array.isArray(W[J])?G:H;Q[J]=W[J]}return[G,H]}function ei(W,G=W.schema){let{gen:H,data:Q,it:et}=W;if(0===Object.keys(G).length)return;let eo=H.let("missing");for(let ei in G){let ea=G[ei];if(0===ea.length)continue;let es=(0,ee.propertyInData)(H,Q,ei,et.opts.ownProperties);W.setParams({property:ei,depsCount:ea.length,deps:ea.join(", ")}),et.allErrors?H.if(es,()=>{for(let G of ea)(0,ee.checkReportMissingProp)(W,G)}):(H.if((0,J._)`${es} && (${(0,ee.checkMissingProp)(W,ea,eo)})`),(0,ee.reportMissingProp)(W,eo),H.else())}}function ea(W,G=W.schema){let{gen:H,data:J,keyword:et,it:eo}=W,ei=H.name("valid");for(let ea in G)(0,Q.alwaysValidSchema)(eo,G[ea])||(H.if((0,ee.propertyInData)(H,J,ea,eo.opts.ownProperties),()=>{let G=W.subschema({keyword:et,schemaProp:ea},ei);W.mergeValidEvaluated(G,ei)},()=>H.var(ei,!0)),W.ok(ei))}G.validatePropertyDeps=ei,G.validateSchemaDeps=ea,G.default=et},88517:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(31609),Q=H(11164),ee={message:({params:W})=>(0,J.str)`must match "${W.ifClause}" schema`,params:({params:W})=>(0,J._)`{failingKeyword: ${W.ifClause}}`},et={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:ee,code(W){let{gen:G,parentSchema:H,it:ee}=W;void 0===H.then&&void 0===H.else&&(0,Q.checkStrictMode)(ee,'"if" without "then" and "else" is ignored');let et=eo(ee,"then"),ei=eo(ee,"else");if(!et&&!ei)return;let ea=G.let("valid",!0),es=G.name("_valid");if(eu(),W.reset(),et&&ei){let H=G.let("ifClause");W.setParams({ifClause:H}),G.if(es,ec("then",H),ec("else",H))}else et?G.if(es,ec("then")):G.if((0,J.not)(es),ec("else"));function eu(){let G=W.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},es);W.mergeEvaluated(G)}function ec(H,Q){return()=>{let ee=W.subschema({keyword:H},es);G.assign(ea,es),W.mergeValidEvaluated(ee,ea),Q?G.assign(Q,(0,J._)`${H}`):W.setParams({ifClause:H})}}W.pass(ea,()=>W.error(!0))}};function eo(W,G){let H=W.schema[G];return void 0!==H&&!(0,Q.alwaysValidSchema)(W,H)}G.default=et},37289:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(59728),Q=H(31802),ee=H(82452),et=H(39232),eo=H(71618),ei=H(92982),ea=H(77545),es=H(40485),eu=H(18398),ec=H(53651),ef=H(74492),ed=H(15809),eh=H(5626),ep=H(58264),ey=H(88517),ev=H(27085);function em(W=!1){let G=[ef.default,ed.default,eh.default,ep.default,ey.default,ev.default,ea.default,es.default,ei.default,eu.default,ec.default];return W?G.push(Q.default,et.default):G.push(J.default,ee.default),G.push(eo.default),G}G.default=em},82452:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.validateTuple=void 0;let J=H(31609),Q=H(11164),ee=H(98689),et={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(W){let{schema:G,it:H}=W;if(Array.isArray(G))return eo(W,"additionalItems",G);H.items=!0,(0,Q.alwaysValidSchema)(H,G)||W.ok((0,ee.validateArray)(W))}};function eo(W,G,H=W.schema){let{gen:ee,parentSchema:et,data:eo,keyword:ei,it:ea}=W;ec(et),ea.opts.unevaluated&&H.length&&!0!==ea.items&&(ea.items=Q.mergeEvaluated.items(ee,H.length,ea.items));let es=ee.name("valid"),eu=ee.const("len",(0,J._)`${eo}.length`);function ec(W){let{opts:J,errSchemaPath:ee}=ea,et=H.length,eo=et===W.minItems&&(et===W.maxItems||!1===W[G]);if(J.strictTuples&&!eo){let W=`"${ei}" is ${et}-tuple, but minItems or maxItems/${G} are not specified or different at path "${ee}"`;(0,Q.checkStrictMode)(ea,W,J.strictTuples)}}H.forEach((G,H)=>{(0,Q.alwaysValidSchema)(ea,G)||(ee.if((0,J._)`${eu} > ${H}`,()=>W.subschema({keyword:ei,schemaProp:H,dataProp:H},es)),W.ok(es))})}G.validateTuple=eo,G.default=et},39232:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(31609),Q=H(11164),ee=H(98689),et=H(59728),eo={message:({params:{len:W}})=>(0,J.str)`must NOT have more than ${W} items`,params:({params:{len:W}})=>(0,J._)`{limit: ${W}}`},ei={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:eo,code(W){let{schema:G,parentSchema:H,it:J}=W,{prefixItems:eo}=H;J.items=!0,(0,Q.alwaysValidSchema)(J,G)||(eo?(0,et.validateAdditionalItems)(W,eo):W.ok((0,ee.validateArray)(W)))}};G.default=ei},74492:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(11164),Q={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(W){let{gen:G,schema:H,it:Q}=W;if((0,J.alwaysValidSchema)(Q,H)){W.fail();return}let ee=G.name("valid");W.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},ee),W.failResult(ee,()=>W.reset(),()=>W.error())},error:{message:"must NOT be valid"}};G.default=Q},5626:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(31609),Q=H(11164),ee={message:"must match exactly one schema in oneOf",params:({params:W})=>(0,J._)`{passingSchemas: ${W.passing}}`},et={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:ee,code(W){let{gen:G,schema:H,parentSchema:ee,it:et}=W;if(!Array.isArray(H))throw Error("ajv implementation error");if(et.opts.discriminator&&ee.discriminator)return;let eo=H,ei=G.let("valid",!1),ea=G.let("passing",null),es=G.name("_valid");function eu(){eo.forEach((H,ee)=>{let eo;(0,Q.alwaysValidSchema)(et,H)?G.var(es,!0):eo=W.subschema({keyword:"oneOf",schemaProp:ee,compositeRule:!0},es),ee>0&&G.if((0,J._)`${es} && ${ei}`).assign(ei,!1).assign(ea,(0,J._)`[${ea}, ${ee}]`).else(),G.if(es,()=>{G.assign(ei,!0),G.assign(ea,ee),eo&&W.mergeEvaluated(eo,J.Name)})})}W.setParams({passing:ea}),G.block(eu),W.result(ei,()=>W.reset(),()=>W.error(!0))}};G.default=et},53651:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(98689),Q=H(31609),ee=H(11164),et=H(11164),eo={keyword:"patternProperties",type:"object",schemaType:"object",code(W){let{gen:G,schema:H,data:eo,parentSchema:ei,it:ea}=W,{opts:es}=ea,eu=(0,J.allSchemaProperties)(H),ec=eu.filter(W=>(0,ee.alwaysValidSchema)(ea,H[W]));if(0===eu.length||ec.length===eu.length&&(!ea.opts.unevaluated||!0===ea.props))return;let ef=es.strictSchema&&!es.allowMatchingProperties&&ei.properties,ed=G.name("valid");!0===ea.props||ea.props instanceof Q.Name||(ea.props=(0,et.evaluatedPropsToName)(G,ea.props));let{props:eh}=ea;function ep(W){for(let G in ef)new RegExp(W).test(G)&&(0,ee.checkStrictMode)(ea,`property ${G} matches pattern ${W} (use allowMatchingProperties)`)}function ey(H){G.forIn("key",eo,ee=>{G.if((0,Q._)`${(0,J.usePattern)(W,H)}.test(${ee})`,()=>{let J=ec.includes(H);J||W.subschema({keyword:"patternProperties",schemaProp:H,dataProp:ee,dataPropType:et.Type.Str},ed),ea.opts.unevaluated&&!0!==eh?G.assign((0,Q._)`${eh}[${ee}]`,!0):J||ea.allErrors||G.if((0,Q.not)(ed),()=>G.break())})})}!function(){for(let W of eu)ef&&ep(W),ea.allErrors?ey(W):(G.var(ed,!0),ey(W),G.if(ed))}()}};G.default=eo},31802:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(82452),Q={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:W=>(0,J.validateTuple)(W,"items")};G.default=Q},18398:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(48008),Q=H(98689),ee=H(11164),et=H(40485),eo={keyword:"properties",type:"object",schemaType:"object",code(W){let{gen:G,schema:H,parentSchema:eo,data:ei,it:ea}=W;"all"===ea.opts.removeAdditional&&void 0===eo.additionalProperties&&et.default.code(new J.KeywordCxt(ea,et.default,"additionalProperties"));let es=(0,Q.allSchemaProperties)(H);for(let W of es)ea.definedProperties.add(W);ea.opts.unevaluated&&es.length&&!0!==ea.props&&(ea.props=ee.mergeEvaluated.props(G,(0,ee.toHash)(es),ea.props));let eu=es.filter(W=>!(0,ee.alwaysValidSchema)(ea,H[W]));if(0===eu.length)return;let ec=G.name("valid");for(let H of eu)ef(H)?ed(H):(G.if((0,Q.propertyInData)(G,ei,H,ea.opts.ownProperties)),ed(H),ea.allErrors||G.else().var(ec,!0),G.endIf()),W.it.definedProperties.add(H),W.ok(ec);function ef(W){return ea.opts.useDefaults&&!ea.compositeRule&&void 0!==H[W].default}function ed(G){W.subschema({keyword:"properties",schemaProp:G,dataProp:G},ec)}}};G.default=eo},77545:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(31609),Q=H(11164),ee={message:"property name must be valid",params:({params:W})=>(0,J._)`{propertyName: ${W.propertyName}}`},et={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:ee,code(W){let{gen:G,schema:H,data:ee,it:et}=W;if((0,Q.alwaysValidSchema)(et,H))return;let eo=G.name("valid");G.forIn("key",ee,H=>{W.setParams({propertyName:H}),W.subschema({keyword:"propertyNames",data:H,dataTypes:["string"],propertyName:H,compositeRule:!0},eo),G.if((0,J.not)(eo),()=>{W.error(!0),et.allErrors||G.break()})}),W.ok(eo)}};G.default=et},27085:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(11164),Q={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:W,parentSchema:G,it:H}){void 0===G.if&&(0,J.checkStrictMode)(H,`"${W}" without "if" is ignored`)}};G.default=Q},98689:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.validateUnion=G.validateArray=G.usePattern=G.callValidateCode=G.schemaProperties=G.allSchemaProperties=G.noPropertyInData=G.propertyInData=G.isOwnProperty=G.hasPropFunc=G.reportMissingProp=G.checkMissingProp=G.checkReportMissingProp=void 0;let J=H(31609),Q=H(11164),ee=H(5021),et=H(11164);function eo(W,G){let{gen:H,data:Q,it:ee}=W;H.if(ef(H,Q,G,ee.opts.ownProperties),()=>{W.setParams({missingProperty:(0,J._)`${G}`},!0),W.error()})}function ei({gen:W,data:G,it:{opts:H}},Q,ee){return(0,J.or)(...Q.map(Q=>(0,J.and)(ef(W,G,Q,H.ownProperties),(0,J._)`${ee} = ${Q}`)))}function ea(W,G){W.setParams({missingProperty:G},!0),W.error()}function es(W){return W.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,J._)`Object.prototype.hasOwnProperty`})}function eu(W,G,H){return(0,J._)`${es(W)}.call(${G}, ${H})`}function ec(W,G,H,Q){let ee=(0,J._)`${G}${(0,J.getProperty)(H)} !== undefined`;return Q?(0,J._)`${ee} && ${eu(W,G,H)}`:ee}function ef(W,G,H,Q){let ee=(0,J._)`${G}${(0,J.getProperty)(H)} === undefined`;return Q?(0,J.or)(ee,(0,J.not)(eu(W,G,H))):ee}function ed(W){return W?Object.keys(W).filter(W=>"__proto__"!==W):[]}function eh(W,G){return ed(G).filter(H=>!(0,Q.alwaysValidSchema)(W,G[H]))}function ep({schemaCode:W,data:G,it:{gen:H,topSchemaRef:Q,schemaPath:et,errorPath:eo},it:ei},ea,es,eu){let ec=eu?(0,J._)`${W}, ${G}, ${Q}${et}`:G,ef=[[ee.default.instancePath,(0,J.strConcat)(ee.default.instancePath,eo)],[ee.default.parentData,ei.parentData],[ee.default.parentDataProperty,ei.parentDataProperty],[ee.default.rootData,ee.default.rootData]];ei.opts.dynamicRef&&ef.push([ee.default.dynamicAnchors,ee.default.dynamicAnchors]);let ed=(0,J._)`${ec}, ${H.object(...ef)}`;return es!==J.nil?(0,J._)`${ea}.call(${es}, ${ed})`:(0,J._)`${ea}(${ed})`}G.checkReportMissingProp=eo,G.checkMissingProp=ei,G.reportMissingProp=ea,G.hasPropFunc=es,G.isOwnProperty=eu,G.propertyInData=ec,G.noPropertyInData=ef,G.allSchemaProperties=ed,G.schemaProperties=eh,G.callValidateCode=ep;let ey=(0,J._)`new RegExp`;function ev({gen:W,it:{opts:G}},H){let Q=G.unicodeRegExp?"u":"",{regExp:ee}=G.code,eo=ee(H,Q);return W.scopeValue("pattern",{key:eo.toString(),ref:eo,code:(0,J._)`${"new RegExp"===ee.code?ey:(0,et.useFunc)(W,ee)}(${H}, ${Q})`})}function em(W){let{gen:G,data:H,keyword:ee,it:et}=W,eo=G.name("valid");if(et.allErrors){let W=G.let("valid",!0);return ei(()=>G.assign(W,!1)),W}return G.var(eo,!0),ei(()=>G.break()),eo;function ei(et){let ei=G.const("len",(0,J._)`${H}.length`);G.forRange("i",0,ei,H=>{W.subschema({keyword:ee,dataProp:H,dataPropType:Q.Type.Num},eo),G.if((0,J.not)(eo),et)})}}function eg(W){let{gen:G,schema:H,keyword:ee,it:et}=W;if(!Array.isArray(H))throw Error("ajv implementation error");let eo=H.some(W=>(0,Q.alwaysValidSchema)(et,W));if(eo&&!et.opts.unevaluated)return;let ei=G.let("valid",!1),ea=G.name("_valid");G.block(()=>H.forEach((H,Q)=>{let et=W.subschema({keyword:ee,schemaProp:Q,compositeRule:!0},ea);G.assign(ei,(0,J._)`${ei} || ${ea}`);let eo=W.mergeValidEvaluated(et,ea);eo||G.if((0,J.not)(ei))})),W.result(ei,()=>W.reset(),()=>W.error(!0))}G.usePattern=ev,G.validateArray=em,G.validateUnion=eg},18095:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let H={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};G.default=H},25634:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(18095),Q=H(86301),ee=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",J.default,Q.default];G.default=ee},86301:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.callRef=G.getValidate=void 0;let J=H(8487),Q=H(98689),ee=H(31609),et=H(5021),eo=H(6346),ei=H(11164),ea={keyword:"$ref",schemaType:"string",code(W){let{gen:G,schema:H,it:Q}=W,{baseId:et,schemaEnv:ei,validateName:ea,opts:ec,self:ef}=Q,{root:ed}=ei;if(("#"===H||"#/"===H)&&et===ed.baseId)return ep();let eh=eo.resolveRef.call(ef,ed,et,H);if(void 0===eh)throw new J.default(Q.opts.uriResolver,et,H);if(eh instanceof eo.SchemaEnv)return ey(eh);return ev(eh);function ep(){if(ei===ed)return eu(W,ea,ei,ei.$async);let H=G.scopeValue("root",{ref:ed});return eu(W,(0,ee._)`${H}.validate`,ed,ed.$async)}function ey(G){let H=es(W,G);eu(W,H,G,G.$async)}function ev(J){let Q=G.scopeValue("schema",!0===ec.code.source?{ref:J,code:(0,ee.stringify)(J)}:{ref:J}),et=G.name("valid"),eo=W.subschema({schema:J,dataTypes:[],schemaPath:ee.nil,topSchemaRef:Q,errSchemaPath:H},et);W.mergeEvaluated(eo),W.ok(et)}}};function es(W,G){let{gen:H}=W;return G.validate?H.scopeValue("validate",{ref:G.validate}):(0,ee._)`${H.scopeValue("wrapper",{ref:G})}.validate`}function eu(W,G,H,J){let{gen:eo,it:ea}=W,{allErrors:es,schemaEnv:eu,opts:ec}=ea,ef=ec.passContext?et.default.this:ee.nil;function ed(){if(!eu.$async)throw Error("async schema referenced by sync schema");let H=eo.let("valid");eo.try(()=>{eo.code((0,ee._)`await ${(0,Q.callValidateCode)(W,G,ef)}`),ey(G),es||eo.assign(H,!0)},W=>{eo.if((0,ee._)`!(${W} instanceof ${ea.ValidationError})`,()=>eo.throw(W)),ep(W),es||eo.assign(H,!1)}),W.ok(H)}function eh(){W.result((0,Q.callValidateCode)(W,G,ef),()=>ey(G),()=>ep(G))}function ep(W){let G=(0,ee._)`${W}.errors`;eo.assign(et.default.vErrors,(0,ee._)`${et.default.vErrors} === null ? ${G} : ${et.default.vErrors}.concat(${G})`),eo.assign(et.default.errors,(0,ee._)`${et.default.vErrors}.length`)}function ey(W){var G;if(!ea.opts.unevaluated)return;let J=null===(G=null==H?void 0:H.validate)||void 0===G?void 0:G.evaluated;if(!0!==ea.props){if(J&&!J.dynamicProps)void 0!==J.props&&(ea.props=ei.mergeEvaluated.props(eo,J.props,ea.props));else{let G=eo.var("props",(0,ee._)`${W}.evaluated.props`);ea.props=ei.mergeEvaluated.props(eo,G,ea.props,ee.Name)}}if(!0!==ea.items){if(J&&!J.dynamicItems)void 0!==J.items&&(ea.items=ei.mergeEvaluated.items(eo,J.items,ea.items));else{let G=eo.var("items",(0,ee._)`${W}.evaluated.items`);ea.items=ei.mergeEvaluated.items(eo,G,ea.items,ee.Name)}}}J?ed():eh()}G.getValidate=es,G.callRef=eu,G.default=ea},19140:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(31609),Q=H(19207),ee=H(6346),et=H(11164),eo={message:({params:{discrError:W,tagName:G}})=>W===Q.DiscrError.Tag?`tag "${G}" must be string`:`value of tag "${G}" must be in oneOf`,params:({params:{discrError:W,tag:G,tagName:H}})=>(0,J._)`{error: ${W}, tag: ${H}, tagValue: ${G}}`},ei={keyword:"discriminator",type:"object",schemaType:"object",error:eo,code(W){let{gen:G,data:H,schema:eo,parentSchema:ei,it:ea}=W,{oneOf:es}=ei;if(!ea.opts.discriminator)throw Error("discriminator: requires discriminator option");let eu=eo.propertyName;if("string"!=typeof eu)throw Error("discriminator: requires propertyName");if(eo.mapping)throw Error("discriminator: mapping is not supported");if(!es)throw Error("discriminator: requires oneOf keyword");let ec=G.let("valid",!1),ef=G.const("tag",(0,J._)`${H}${(0,J.getProperty)(eu)}`);function ed(){let H=ep();for(let W in G.if(!1),H)G.elseIf((0,J._)`${ef} === ${W}`),G.assign(ec,eh(H[W]));G.else(),W.error(!1,{discrError:Q.DiscrError.Mapping,tag:ef,tagName:eu}),G.endIf()}function eh(H){let Q=G.name("valid"),ee=W.subschema({keyword:"oneOf",schemaProp:H},Q);return W.mergeEvaluated(ee,J.Name),Q}function ep(){var W;let G={},H=Q(ei),J=!0;for(let G=0;G<es.length;G++){let ei=es[G];(null==ei?void 0:ei.$ref)&&!(0,et.schemaHasRulesButRef)(ei,ea.self.RULES)&&(ei=ee.resolveRef.call(ea.self,ea.schemaEnv.root,ea.baseId,null==ei?void 0:ei.$ref))instanceof ee.SchemaEnv&&(ei=ei.schema);let ec=null===(W=null==ei?void 0:ei.properties)||void 0===W?void 0:W[eu];if("object"!=typeof ec)throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${eu}"`);J=J&&(H||Q(ei)),eo(ec,G)}if(!J)throw Error(`discriminator: "${eu}" must be required`);return G;function Q({required:W}){return Array.isArray(W)&&W.includes(eu)}function eo(W,G){if(W.const)ec(W.const,G);else if(W.enum)for(let H of W.enum)ec(H,G);else throw Error(`discriminator: "properties/${eu}" must have "const" or "enum"`)}function ec(W,H){if("string"!=typeof W||W in G)throw Error(`discriminator: "${eu}" values must be unique strings`);G[W]=H}}G.if((0,J._)`typeof ${ef} == "string"`,()=>ed(),()=>W.error(!1,{discrError:Q.DiscrError.Tag,tag:ef,tagName:eu})),W.ok(ec)}};G.default=ei},19207:function(W,G){"use strict";var H;Object.defineProperty(G,"__esModule",{value:!0}),G.DiscrError=void 0,function(W){W.Tag="tag",W.Mapping="mapping"}(H=G.DiscrError||(G.DiscrError={}))},17896:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(25634),Q=H(77428),ee=H(37289),et=H(62419),eo=H(96469),ei=[J.default,Q.default,(0,ee.default)(),et.default,eo.metadataVocabulary,eo.contentVocabulary];G.default=ei},43983:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(31609),Q={message:({schemaCode:W})=>(0,J.str)`must match format "${W}"`,params:({schemaCode:W})=>(0,J._)`{format: ${W}}`},ee={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Q,code(W,G){let{gen:H,data:Q,$data:ee,schema:et,schemaCode:eo,it:ei}=W,{opts:ea,errSchemaPath:es,schemaEnv:eu,self:ec}=ei;function ef(){let ee=H.scopeValue("formats",{ref:ec.formats,code:ea.code.formats}),et=H.const("fDef",(0,J._)`${ee}[${eo}]`),ei=H.let("fType"),es=H.let("format");function ef(){return!1===ea.strictSchema?J.nil:(0,J._)`${eo} && !${es}`}function ed(){let W=eu.$async?(0,J._)`(${et}.async ? await ${es}(${Q}) : ${es}(${Q}))`:(0,J._)`${es}(${Q})`,H=(0,J._)`(typeof ${es} == "function" ? ${W} : ${es}.test(${Q}))`;return(0,J._)`${es} && ${es} !== true && ${ei} === ${G} && !${H}`}H.if((0,J._)`typeof ${et} == "object" && !(${et} instanceof RegExp)`,()=>H.assign(ei,(0,J._)`${et}.type || "string"`).assign(es,(0,J._)`${et}.validate`),()=>H.assign(ei,(0,J._)`"string"`).assign(es,et)),W.fail$data((0,J.or)(ef(),ed()))}function ed(){let ee=ec.formats[et];if(!ee){ed();return}if(!0===ee)return;let[eo,ei,ef]=eh(ee);function ed(){if(!1===ea.strictSchema){ec.logger.warn(W());return}throw Error(W());function W(){return`unknown format "${et}" ignored in schema at path "${es}"`}}function eh(W){let G=W instanceof RegExp?(0,J.regexpCode)(W):ea.code.formats?(0,J._)`${ea.code.formats}${(0,J.getProperty)(et)}`:void 0,Q=H.scopeValue("formats",{key:et,ref:W,code:G});return"object"!=typeof W||W instanceof RegExp?["string",W,Q]:[W.type||"string",W.validate,(0,J._)`${Q}.validate`]}function ep(){if("object"==typeof ee&&!(ee instanceof RegExp)&&ee.async){if(!eu.$async)throw Error("async format in sync schema");return(0,J._)`await ${ef}(${Q})`}return"function"==typeof ei?(0,J._)`${ef}(${Q})`:(0,J._)`${ef}.test(${Q})`}eo===G&&W.pass(ep())}ea.validateFormats&&(ee?ef():ed())}};G.default=ee},62419:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(43983),Q=[J.default];G.default=Q},96469:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.contentVocabulary=G.metadataVocabulary=void 0,G.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],G.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},60178:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(31609),Q=H(11164),ee=H(33332),et={message:"must be equal to constant",params:({schemaCode:W})=>(0,J._)`{allowedValue: ${W}}`},eo={keyword:"const",$data:!0,error:et,code(W){let{gen:G,data:H,$data:et,schemaCode:eo,schema:ei}=W;et||ei&&"object"==typeof ei?W.fail$data((0,J._)`!${(0,Q.useFunc)(G,ee.default)}(${H}, ${eo})`):W.fail((0,J._)`${ei} !== ${H}`)}};G.default=eo},651:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(31609),Q=H(11164),ee=H(33332),et={message:"must be equal to one of the allowed values",params:({schemaCode:W})=>(0,J._)`{allowedValues: ${W}}`},eo={keyword:"enum",schemaType:"array",$data:!0,error:et,code(W){let G,H;let{gen:et,data:eo,$data:ei,schema:ea,schemaCode:es,it:eu}=W;if(!ei&&0===ea.length)throw Error("enum must have non-empty array");let ec=ea.length>=eu.opts.loopEnum,ef=()=>null!=G?G:G=(0,Q.useFunc)(et,ee.default);if(ec||ei)H=et.let("valid"),W.block$data(H,ed);else{if(!Array.isArray(ea))throw Error("ajv implementation error");let W=et.const("vSchema",es);H=(0,J.or)(...ea.map((G,H)=>eh(W,H)))}function ed(){et.assign(H,!1),et.forOf("v",es,W=>et.if((0,J._)`${ef()}(${eo}, ${W})`,()=>et.assign(H,!0).break()))}function eh(W,G){let H=ea[G];return"object"==typeof H&&null!==H?(0,J._)`${ef()}(${eo}, ${W}[${G}])`:(0,J._)`${eo} === ${H}`}W.pass(H)}};G.default=eo},77428:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(32376),Q=H(74537),ee=H(95803),et=H(87262),eo=H(63627),ei=H(37298),ea=H(71873),es=H(9534),eu=H(60178),ec=H(651),ef=[J.default,Q.default,ee.default,et.default,eo.default,ei.default,ea.default,es.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},eu.default,ec.default];G.default=ef},71873:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(31609),Q={message({keyword:W,schemaCode:G}){let H="maxItems"===W?"more":"fewer";return(0,J.str)`must NOT have ${H} than ${G} items`},params:({schemaCode:W})=>(0,J._)`{limit: ${W}}`},ee={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Q,code(W){let{keyword:G,data:H,schemaCode:Q}=W,ee="maxItems"===G?J.operators.GT:J.operators.LT;W.fail$data((0,J._)`${H}.length ${ee} ${Q}`)}};G.default=ee},95803:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(31609),Q=H(11164),ee=H(84123),et={message({keyword:W,schemaCode:G}){let H="maxLength"===W?"more":"fewer";return(0,J.str)`must NOT have ${H} than ${G} characters`},params:({schemaCode:W})=>(0,J._)`{limit: ${W}}`},eo={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:et,code(W){let{keyword:G,data:H,schemaCode:et,it:eo}=W,ei="maxLength"===G?J.operators.GT:J.operators.LT,ea=!1===eo.opts.unicode?(0,J._)`${H}.length`:(0,J._)`${(0,Q.useFunc)(W.gen,ee.default)}(${H})`;W.fail$data((0,J._)`${ea} ${ei} ${et}`)}};G.default=eo},32376:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(31609),Q=J.operators,ee={maximum:{okStr:"<=",ok:Q.LTE,fail:Q.GT},minimum:{okStr:">=",ok:Q.GTE,fail:Q.LT},exclusiveMaximum:{okStr:"<",ok:Q.LT,fail:Q.GTE},exclusiveMinimum:{okStr:">",ok:Q.GT,fail:Q.LTE}},et={message:({keyword:W,schemaCode:G})=>(0,J.str)`must be ${ee[W].okStr} ${G}`,params:({keyword:W,schemaCode:G})=>(0,J._)`{comparison: ${ee[W].okStr}, limit: ${G}}`},eo={keyword:Object.keys(ee),type:"number",schemaType:"number",$data:!0,error:et,code(W){let{keyword:G,data:H,schemaCode:Q}=W;W.fail$data((0,J._)`${H} ${ee[G].fail} ${Q} || isNaN(${H})`)}};G.default=eo},63627:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(31609),Q={message({keyword:W,schemaCode:G}){let H="maxProperties"===W?"more":"fewer";return(0,J.str)`must NOT have ${H} than ${G} properties`},params:({schemaCode:W})=>(0,J._)`{limit: ${W}}`},ee={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Q,code(W){let{keyword:G,data:H,schemaCode:Q}=W,ee="maxProperties"===G?J.operators.GT:J.operators.LT;W.fail$data((0,J._)`Object.keys(${H}).length ${ee} ${Q}`)}};G.default=ee},74537:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(31609),Q={message:({schemaCode:W})=>(0,J.str)`must be multiple of ${W}`,params:({schemaCode:W})=>(0,J._)`{multipleOf: ${W}}`},ee={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Q,code(W){let{gen:G,data:H,schemaCode:Q,it:ee}=W,et=ee.opts.multipleOfPrecision,eo=G.let("res"),ei=et?(0,J._)`Math.abs(Math.round(${eo}) - ${eo}) > 1e-${et}`:(0,J._)`${eo} !== parseInt(${eo})`;W.fail$data((0,J._)`(${Q} === 0 || (${eo} = ${H}/${Q}, ${ei}))`)}};G.default=ee},87262:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(98689),Q=H(31609),ee={message:({schemaCode:W})=>(0,Q.str)`must match pattern "${W}"`,params:({schemaCode:W})=>(0,Q._)`{pattern: ${W}}`},et={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:ee,code(W){let{data:G,$data:H,schema:ee,schemaCode:et,it:eo}=W,ei=eo.opts.unicodeRegExp?"u":"",ea=H?(0,Q._)`(new RegExp(${et}, ${ei}))`:(0,J.usePattern)(W,ee);W.fail$data((0,Q._)`!${ea}.test(${G})`)}};G.default=et},37298:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(98689),Q=H(31609),ee=H(11164),et={message:({params:{missingProperty:W}})=>(0,Q.str)`must have required property '${W}'`,params:({params:{missingProperty:W}})=>(0,Q._)`{missingProperty: ${W}}`},eo={keyword:"required",type:"object",schemaType:"array",$data:!0,error:et,code(W){let{gen:G,schema:H,schemaCode:et,data:eo,$data:ei,it:ea}=W,{opts:es}=ea;if(!ei&&0===H.length)return;let eu=H.length>=es.loopRequired;if(ea.allErrors?ec():ef(),es.strictRequired){let G=W.parentSchema.properties,{definedProperties:J}=W.it;for(let W of H)if((null==G?void 0:G[W])===void 0&&!J.has(W)){let G=ea.schemaEnv.baseId+ea.errSchemaPath,H=`required property "${W}" is not defined at "${G}" (strictRequired)`;(0,ee.checkStrictMode)(ea,H,ea.opts.strictRequired)}}function ec(){if(eu||ei)W.block$data(Q.nil,ed);else for(let G of H)(0,J.checkReportMissingProp)(W,G)}function ef(){let Q=G.let("missing");if(eu||ei){let H=G.let("valid",!0);W.block$data(H,()=>eh(Q,H)),W.ok(H)}else G.if((0,J.checkMissingProp)(W,H,Q)),(0,J.reportMissingProp)(W,Q),G.else()}function ed(){G.forOf("prop",et,H=>{W.setParams({missingProperty:H}),G.if((0,J.noPropertyInData)(G,eo,H,es.ownProperties),()=>W.error())})}function eh(H,ee){W.setParams({missingProperty:H}),G.forOf(H,et,()=>{G.assign(ee,(0,J.propertyInData)(G,eo,H,es.ownProperties)),G.if((0,Q.not)(ee),()=>{W.error(),G.break()})},Q.nil)}}};G.default=eo},9534:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0});let J=H(25918),Q=H(31609),ee=H(11164),et=H(33332),eo={message:({params:{i:W,j:G}})=>(0,Q.str)`must NOT have duplicate items (items ## ${G} and ${W} are identical)`,params:({params:{i:W,j:G}})=>(0,Q._)`{i: ${W}, j: ${G}}`},ei={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:eo,code(W){let{gen:G,data:H,$data:eo,schema:ei,parentSchema:ea,schemaCode:es,it:eu}=W;if(!eo&&!ei)return;let ec=G.let("valid"),ef=ea.items?(0,J.getSchemaTypes)(ea.items):[];function ed(){let J=G.let("i",(0,Q._)`${H}.length`),ee=G.let("j");W.setParams({i:J,j:ee}),G.assign(ec,!0),G.if((0,Q._)`${J} > 1`,()=>(eh()?ep:ey)(J,ee))}function eh(){return ef.length>0&&!ef.some(W=>"object"===W||"array"===W)}function ep(ee,et){let eo=G.name("item"),ei=(0,J.checkDataTypes)(ef,eo,eu.opts.strictNumbers,J.DataType.Wrong),ea=G.const("indices",(0,Q._)`{}`);G.for((0,Q._)`;${ee}--;`,()=>{G.let(eo,(0,Q._)`${H}[${ee}]`),G.if(ei,(0,Q._)`continue`),ef.length>1&&G.if((0,Q._)`typeof ${eo} == "string"`,(0,Q._)`${eo} += "_"`),G.if((0,Q._)`typeof ${ea}[${eo}] == "number"`,()=>{G.assign(et,(0,Q._)`${ea}[${eo}]`),W.error(),G.assign(ec,!1).break()}).code((0,Q._)`${ea}[${eo}] = ${ee}`)})}function ey(J,eo){let ei=(0,ee.useFunc)(G,et.default),ea=G.name("outer");G.label(ea).for((0,Q._)`;${J}--;`,()=>G.for((0,Q._)`${eo} = ${J}; ${eo}--;`,()=>G.if((0,Q._)`${ei}(${H}[${J}], ${H}[${eo}])`,()=>{W.error(),G.assign(ec,!1).break(ea)})))}W.block$data(ec,ed,(0,Q._)`${es} === false`),W.ok(ec)}};G.default=ei},22165:function(W,G,H){"use strict";var J=H(40413).Buffer;function Q(W){if(W.length>=255)throw TypeError("Alphabet too long");for(var G=new Uint8Array(256),H=0;H<G.length;H++)G[H]=255;for(var Q=0;Q<W.length;Q++){var ee=W.charAt(Q),et=ee.charCodeAt(0);if(255!==G[et])throw TypeError(ee+" is ambiguous");G[et]=Q}var eo=W.length,ei=W.charAt(0),ea=Math.log(eo)/Math.log(256),es=Math.log(256)/Math.log(eo);function eu(W){if("string"!=typeof W)throw TypeError("Expected String");if(0===W.length)return J.alloc(0);for(var H=0,Q=0,ee=0;W[H]===ei;)Q++,H++;for(var et=(W.length-H)*ea+1>>>0,es=new Uint8Array(et);W[H];){var eu=G[W.charCodeAt(H)];if(255===eu)return;for(var ec=0,ef=et-1;(0!==eu||ec<ee)&&-1!==ef;ef--,ec++)eu+=eo*es[ef]>>>0,es[ef]=eu%256>>>0,eu=eu/256>>>0;if(0!==eu)throw Error("Non-zero carry");ee=ec,H++}for(var ed=et-ee;ed!==et&&0===es[ed];)ed++;var eh=J.allocUnsafe(Q+(et-ed));eh.fill(0,0,Q);for(var ep=Q;ed!==et;)eh[ep++]=es[ed++];return eh}function ec(W){var G=eu(W);if(G)return G;throw Error("Non-base"+eo+" character")}return{encode:function(G){if((Array.isArray(G)||G instanceof Uint8Array)&&(G=J.from(G)),!J.isBuffer(G))throw TypeError("Expected Buffer");if(0===G.length)return"";for(var H=0,Q=0,ee=0,et=G.length;ee!==et&&0===G[ee];)ee++,H++;for(var ea=(et-ee)*es+1>>>0,eu=new Uint8Array(ea);ee!==et;){for(var ec=G[ee],ef=0,ed=ea-1;(0!==ec||ef<Q)&&-1!==ed;ed--,ef++)ec+=256*eu[ed]>>>0,eu[ed]=ec%eo>>>0,ec=ec/eo>>>0;if(0!==ec)throw Error("Non-zero carry");Q=ef,ee++}for(var eh=ea-Q;eh!==ea&&0===eu[eh];)eh++;for(var ep=ei.repeat(H);eh<ea;++eh)ep+=W.charAt(eu[eh]);return ep},decodeUnsafe:eu,decode:ec}}W.exports=Q},60079:function(W,G,H){!function(W,G){"use strict";function J(W,G){if(!W)throw Error(G||"Assertion failed")}function Q(W,G){W.super_=G;var H=function(){};H.prototype=G.prototype,W.prototype=new H,W.prototype.constructor=W}function ee(W,G,H){if(ee.isBN(W))return W;this.negative=0,this.words=null,this.length=0,this.red=null,null!==W&&(("le"===G||"be"===G)&&(H=G,G=10),this._init(W||0,G||10,H||"be"))}"object"==typeof W?W.exports=ee:G.BN=ee,ee.BN=ee,ee.wordSize=26;try{eu="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:H(79391).Buffer}catch(W){}function et(W,G){var H=W.charCodeAt(G);return H>=48&&H<=57?H-48:H>=65&&H<=70?H-55:H>=97&&H<=102?H-87:void J(!1,"Invalid character in "+W)}function eo(W,G,H){var J=et(W,H);return H-1>=G&&(J|=et(W,H-1)<<4),J}function ei(W,G,H,Q){for(var ee=0,et=0,eo=Math.min(W.length,H),ei=G;ei<eo;ei++){var ea=W.charCodeAt(ei)-48;ee*=Q,et=ea>=49?ea-49+10:ea>=17?ea-17+10:ea,J(ea>=0&&et<Q,"Invalid character"),ee+=et}return ee}function ea(W,G){W.words=G.words,W.length=G.length,W.negative=G.negative,W.red=G.red}if(ee.isBN=function(W){return W instanceof ee||null!==W&&"object"==typeof W&&W.constructor.wordSize===ee.wordSize&&Array.isArray(W.words)},ee.max=function(W,G){return W.cmp(G)>0?W:G},ee.min=function(W,G){return 0>W.cmp(G)?W:G},ee.prototype._init=function(W,G,H){if("number"==typeof W)return this._initNumber(W,G,H);if("object"==typeof W)return this._initArray(W,G,H);"hex"===G&&(G=16),J(G===(0|G)&&G>=2&&G<=36);var Q=0;"-"===(W=W.toString().replace(/\s+/g,""))[0]&&(Q++,this.negative=1),Q<W.length&&(16===G?this._parseHex(W,Q,H):(this._parseBase(W,G,Q),"le"===H&&this._initArray(this.toArray(),G,H)))},ee.prototype._initNumber=function(W,G,H){W<0&&(this.negative=1,W=-W),W<67108864?(this.words=[67108863&W],this.length=1):W<4503599627370496?(this.words=[67108863&W,W/67108864&67108863],this.length=2):(J(W<9007199254740992),this.words=[67108863&W,W/67108864&67108863,1],this.length=3),"le"===H&&this._initArray(this.toArray(),G,H)},ee.prototype._initArray=function(W,G,H){if(J("number"==typeof W.length),W.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(W.length/3),this.words=Array(this.length);for(var Q,ee,et=0;et<this.length;et++)this.words[et]=0;var eo=0;if("be"===H)for(et=W.length-1,Q=0;et>=0;et-=3)ee=W[et]|W[et-1]<<8|W[et-2]<<16,this.words[Q]|=ee<<eo&67108863,this.words[Q+1]=ee>>>26-eo&67108863,(eo+=24)>=26&&(eo-=26,Q++);else if("le"===H)for(et=0,Q=0;et<W.length;et+=3)ee=W[et]|W[et+1]<<8|W[et+2]<<16,this.words[Q]|=ee<<eo&67108863,this.words[Q+1]=ee>>>26-eo&67108863,(eo+=24)>=26&&(eo-=26,Q++);return this._strip()},ee.prototype._parseHex=function(W,G,H){this.length=Math.ceil((W.length-G)/6),this.words=Array(this.length);for(var J,Q=0;Q<this.length;Q++)this.words[Q]=0;var ee=0,et=0;if("be"===H)for(Q=W.length-1;Q>=G;Q-=2)J=eo(W,G,Q)<<ee,this.words[et]|=67108863&J,ee>=18?(ee-=18,et+=1,this.words[et]|=J>>>26):ee+=8;else for(Q=(W.length-G)%2==0?G+1:G;Q<W.length;Q+=2)J=eo(W,G,Q)<<ee,this.words[et]|=67108863&J,ee>=18?(ee-=18,et+=1,this.words[et]|=J>>>26):ee+=8;this._strip()},ee.prototype._parseBase=function(W,G,H){this.words=[0],this.length=1;for(var J=0,Q=1;Q<=67108863;Q*=G)J++;J--,Q=Q/G|0;for(var ee=W.length-H,et=ee%J,eo=Math.min(ee,ee-et)+H,ea=0,es=H;es<eo;es+=J)ea=ei(W,es,es+J,G),this.imuln(Q),this.words[0]+ea<67108864?this.words[0]+=ea:this._iaddn(ea);if(0!==et){var eu=1;for(ea=ei(W,es,W.length,G),es=0;es<et;es++)eu*=G;this.imuln(eu),this.words[0]+ea<67108864?this.words[0]+=ea:this._iaddn(ea)}this._strip()},ee.prototype.copy=function(W){W.words=Array(this.length);for(var G=0;G<this.length;G++)W.words[G]=this.words[G];W.length=this.length,W.negative=this.negative,W.red=this.red},ee.prototype._move=function(W){ea(W,this)},ee.prototype.clone=function(){var W=new ee(null);return this.copy(W),W},ee.prototype._expand=function(W){for(;this.length<W;)this.words[this.length++]=0;return this},ee.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},ee.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{ee.prototype[Symbol.for("nodejs.util.inspect.custom")]=es}catch(W){ee.prototype.inspect=es}else ee.prototype.inspect=es;function es(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var eu,ec=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],ef=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],ed=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];ee.prototype.toString=function(W,G){if(G=0|G||1,16===(W=W||10)||"hex"===W){H="";for(var H,Q=0,ee=0,et=0;et<this.length;et++){var eo=this.words[et],ei=((eo<<Q|ee)&16777215).toString(16);ee=eo>>>24-Q&16777215,(Q+=2)>=26&&(Q-=26,et--),H=0!==ee||et!==this.length-1?ec[6-ei.length]+ei+H:ei+H}for(0!==ee&&(H=ee.toString(16)+H);H.length%G!=0;)H="0"+H;return 0!==this.negative&&(H="-"+H),H}if(W===(0|W)&&W>=2&&W<=36){var ea=ef[W],es=ed[W];H="";var eu=this.clone();for(eu.negative=0;!eu.isZero();){var eh=eu.modrn(es).toString(W);H=(eu=eu.idivn(es)).isZero()?eh+H:ec[ea-eh.length]+eh+H}for(this.isZero()&&(H="0"+H);H.length%G!=0;)H="0"+H;return 0!==this.negative&&(H="-"+H),H}J(!1,"Base should be between 2 and 36")},ee.prototype.toNumber=function(){var W=this.words[0];return 2===this.length?W+=67108864*this.words[1]:3===this.length&&1===this.words[2]?W+=4503599627370496+67108864*this.words[1]:this.length>2&&J(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-W:W},ee.prototype.toJSON=function(){return this.toString(16,2)},eu&&(ee.prototype.toBuffer=function(W,G){return this.toArrayLike(eu,W,G)}),ee.prototype.toArray=function(W,G){return this.toArrayLike(Array,W,G)};var eh=function(W,G){return W.allocUnsafe?W.allocUnsafe(G):new W(G)};function ep(W){for(var G=Array(W.bitLength()),H=0;H<G.length;H++){var J=H/26|0,Q=H%26;G[H]=W.words[J]>>>Q&1}return G}function ey(W,G,H){H.negative=G.negative^W.negative;var J=W.length+G.length|0;H.length=J,J=J-1|0;var Q=0|W.words[0],ee=0|G.words[0],et=Q*ee,eo=67108863&et,ei=et/67108864|0;H.words[0]=eo;for(var ea=1;ea<J;ea++){for(var es=ei>>>26,eu=67108863&ei,ec=Math.min(ea,G.length-1),ef=Math.max(0,ea-W.length+1);ef<=ec;ef++){var ed=ea-ef|0;es+=(et=(Q=0|W.words[ed])*(ee=0|G.words[ef])+eu)/67108864|0,eu=67108863&et}H.words[ea]=0|eu,ei=0|es}return 0!==ei?H.words[ea]=0|ei:H.length--,H._strip()}ee.prototype.toArrayLike=function(W,G,H){this._strip();var Q=this.byteLength(),ee=H||Math.max(1,Q);J(Q<=ee,"byte array longer than desired length"),J(ee>0,"Requested array length <= 0");var et=eh(W,ee);return this["_toArrayLike"+("le"===G?"LE":"BE")](et,Q),et},ee.prototype._toArrayLikeLE=function(W,G){for(var H=0,J=0,Q=0,ee=0;Q<this.length;Q++){var et=this.words[Q]<<ee|J;W[H++]=255&et,H<W.length&&(W[H++]=et>>8&255),H<W.length&&(W[H++]=et>>16&255),6===ee?(H<W.length&&(W[H++]=et>>24&255),J=0,ee=0):(J=et>>>24,ee+=2)}if(H<W.length)for(W[H++]=J;H<W.length;)W[H++]=0},ee.prototype._toArrayLikeBE=function(W,G){for(var H=W.length-1,J=0,Q=0,ee=0;Q<this.length;Q++){var et=this.words[Q]<<ee|J;W[H--]=255&et,H>=0&&(W[H--]=et>>8&255),H>=0&&(W[H--]=et>>16&255),6===ee?(H>=0&&(W[H--]=et>>24&255),J=0,ee=0):(J=et>>>24,ee+=2)}if(H>=0)for(W[H--]=J;H>=0;)W[H--]=0},Math.clz32?ee.prototype._countBits=function(W){return 32-Math.clz32(W)}:ee.prototype._countBits=function(W){var G=W,H=0;return G>=4096&&(H+=13,G>>>=13),G>=64&&(H+=7,G>>>=7),G>=8&&(H+=4,G>>>=4),G>=2&&(H+=2,G>>>=2),H+G},ee.prototype._zeroBits=function(W){if(0===W)return 26;var G=W,H=0;return(8191&G)==0&&(H+=13,G>>>=13),(127&G)==0&&(H+=7,G>>>=7),(15&G)==0&&(H+=4,G>>>=4),(3&G)==0&&(H+=2,G>>>=2),(1&G)==0&&H++,H},ee.prototype.bitLength=function(){var W=this.words[this.length-1],G=this._countBits(W);return(this.length-1)*26+G},ee.prototype.zeroBits=function(){if(this.isZero())return 0;for(var W=0,G=0;G<this.length;G++){var H=this._zeroBits(this.words[G]);if(W+=H,26!==H)break}return W},ee.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},ee.prototype.toTwos=function(W){return 0!==this.negative?this.abs().inotn(W).iaddn(1):this.clone()},ee.prototype.fromTwos=function(W){return this.testn(W-1)?this.notn(W).iaddn(1).ineg():this.clone()},ee.prototype.isNeg=function(){return 0!==this.negative},ee.prototype.neg=function(){return this.clone().ineg()},ee.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},ee.prototype.iuor=function(W){for(;this.length<W.length;)this.words[this.length++]=0;for(var G=0;G<W.length;G++)this.words[G]=this.words[G]|W.words[G];return this._strip()},ee.prototype.ior=function(W){return J((this.negative|W.negative)==0),this.iuor(W)},ee.prototype.or=function(W){return this.length>W.length?this.clone().ior(W):W.clone().ior(this)},ee.prototype.uor=function(W){return this.length>W.length?this.clone().iuor(W):W.clone().iuor(this)},ee.prototype.iuand=function(W){var G;G=this.length>W.length?W:this;for(var H=0;H<G.length;H++)this.words[H]=this.words[H]&W.words[H];return this.length=G.length,this._strip()},ee.prototype.iand=function(W){return J((this.negative|W.negative)==0),this.iuand(W)},ee.prototype.and=function(W){return this.length>W.length?this.clone().iand(W):W.clone().iand(this)},ee.prototype.uand=function(W){return this.length>W.length?this.clone().iuand(W):W.clone().iuand(this)},ee.prototype.iuxor=function(W){this.length>W.length?(G=this,H=W):(G=W,H=this);for(var G,H,J=0;J<H.length;J++)this.words[J]=G.words[J]^H.words[J];if(this!==G)for(;J<G.length;J++)this.words[J]=G.words[J];return this.length=G.length,this._strip()},ee.prototype.ixor=function(W){return J((this.negative|W.negative)==0),this.iuxor(W)},ee.prototype.xor=function(W){return this.length>W.length?this.clone().ixor(W):W.clone().ixor(this)},ee.prototype.uxor=function(W){return this.length>W.length?this.clone().iuxor(W):W.clone().iuxor(this)},ee.prototype.inotn=function(W){J("number"==typeof W&&W>=0);var G=0|Math.ceil(W/26),H=W%26;this._expand(G),H>0&&G--;for(var Q=0;Q<G;Q++)this.words[Q]=67108863&~this.words[Q];return H>0&&(this.words[Q]=~this.words[Q]&67108863>>26-H),this._strip()},ee.prototype.notn=function(W){return this.clone().inotn(W)},ee.prototype.setn=function(W,G){J("number"==typeof W&&W>=0);var H=W/26|0,Q=W%26;return this._expand(H+1),G?this.words[H]=this.words[H]|1<<Q:this.words[H]=this.words[H]&~(1<<Q),this._strip()},ee.prototype.iadd=function(W){if(0!==this.negative&&0===W.negative)return this.negative=0,G=this.isub(W),this.negative^=1,this._normSign();if(0===this.negative&&0!==W.negative)return W.negative=0,G=this.isub(W),W.negative=1,G._normSign();this.length>W.length?(H=this,J=W):(H=W,J=this);for(var G,H,J,Q=0,ee=0;ee<J.length;ee++)G=(0|H.words[ee])+(0|J.words[ee])+Q,this.words[ee]=67108863&G,Q=G>>>26;for(;0!==Q&&ee<H.length;ee++)G=(0|H.words[ee])+Q,this.words[ee]=67108863&G,Q=G>>>26;if(this.length=H.length,0!==Q)this.words[this.length]=Q,this.length++;else if(H!==this)for(;ee<H.length;ee++)this.words[ee]=H.words[ee];return this},ee.prototype.add=function(W){var G;return 0!==W.negative&&0===this.negative?(W.negative=0,G=this.sub(W),W.negative^=1,G):0===W.negative&&0!==this.negative?(this.negative=0,G=W.sub(this),this.negative=1,G):this.length>W.length?this.clone().iadd(W):W.clone().iadd(this)},ee.prototype.isub=function(W){if(0!==W.negative){W.negative=0;var G,H,J=this.iadd(W);return W.negative=1,J._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(W),this.negative=1,this._normSign();var Q=this.cmp(W);if(0===Q)return this.negative=0,this.length=1,this.words[0]=0,this;Q>0?(G=this,H=W):(G=W,H=this);for(var ee=0,et=0;et<H.length;et++)ee=(J=(0|G.words[et])-(0|H.words[et])+ee)>>26,this.words[et]=67108863&J;for(;0!==ee&&et<G.length;et++)ee=(J=(0|G.words[et])+ee)>>26,this.words[et]=67108863&J;if(0===ee&&et<G.length&&G!==this)for(;et<G.length;et++)this.words[et]=G.words[et];return this.length=Math.max(this.length,et),G!==this&&(this.negative=1),this._strip()},ee.prototype.sub=function(W){return this.clone().isub(W)};var ev=function(W,G,H){var J,Q,ee,et=W.words,eo=G.words,ei=H.words,ea=0,es=0|et[0],eu=8191&es,ec=es>>>13,ef=0|et[1],ed=8191&ef,eh=ef>>>13,ep=0|et[2],ey=8191&ep,ev=ep>>>13,em=0|et[3],eg=8191&em,eb=em>>>13,ew=0|et[4],e_=8191&ew,eS=ew>>>13,eE=0|et[5],eO=8191&eE,eA=eE>>>13,eP=0|et[6],eM=8191&eP,ej=eP>>>13,eT=0|et[7],ex=8191&eT,eI=eT>>>13,eC=0|et[8],eN=8191&eC,ek=eC>>>13,eR=0|et[9],eD=8191&eR,eL=eR>>>13,eU=0|eo[0],eF=8191&eU,e$=eU>>>13,eB=0|eo[1],eK=8191&eB,eW=eB>>>13,ez=0|eo[2],eG=8191&ez,eq=ez>>>13,eH=0|eo[3],eV=8191&eH,eJ=eH>>>13,eY=0|eo[4],eZ=8191&eY,eQ=eY>>>13,eX=0|eo[5],e0=8191&eX,e1=eX>>>13,e2=0|eo[6],e5=8191&e2,e6=e2>>>13,e3=0|eo[7],e8=8191&e3,e4=e3>>>13,e9=0|eo[8],e7=8191&e9,te=e9>>>13,tt=0|eo[9],tr=8191&tt,tn=tt>>>13;H.negative=W.negative^G.negative,H.length=19;var ti=(ea+(J=Math.imul(eu,eF))|0)+((8191&(Q=(Q=Math.imul(eu,e$))+Math.imul(ec,eF)|0))<<13)|0;ea=((ee=Math.imul(ec,e$))+(Q>>>13)|0)+(ti>>>26)|0,ti&=67108863,J=Math.imul(ed,eF),Q=(Q=Math.imul(ed,e$))+Math.imul(eh,eF)|0,ee=Math.imul(eh,e$);var ta=(ea+(J=J+Math.imul(eu,eK)|0)|0)+((8191&(Q=(Q=Q+Math.imul(eu,eW)|0)+Math.imul(ec,eK)|0))<<13)|0;ea=((ee=ee+Math.imul(ec,eW)|0)+(Q>>>13)|0)+(ta>>>26)|0,ta&=67108863,J=Math.imul(ey,eF),Q=(Q=Math.imul(ey,e$))+Math.imul(ev,eF)|0,ee=Math.imul(ev,e$),J=J+Math.imul(ed,eK)|0,Q=(Q=Q+Math.imul(ed,eW)|0)+Math.imul(eh,eK)|0,ee=ee+Math.imul(eh,eW)|0;var tu=(ea+(J=J+Math.imul(eu,eG)|0)|0)+((8191&(Q=(Q=Q+Math.imul(eu,eq)|0)+Math.imul(ec,eG)|0))<<13)|0;ea=((ee=ee+Math.imul(ec,eq)|0)+(Q>>>13)|0)+(tu>>>26)|0,tu&=67108863,J=Math.imul(eg,eF),Q=(Q=Math.imul(eg,e$))+Math.imul(eb,eF)|0,ee=Math.imul(eb,e$),J=J+Math.imul(ey,eK)|0,Q=(Q=Q+Math.imul(ey,eW)|0)+Math.imul(ev,eK)|0,ee=ee+Math.imul(ev,eW)|0,J=J+Math.imul(ed,eG)|0,Q=(Q=Q+Math.imul(ed,eq)|0)+Math.imul(eh,eG)|0,ee=ee+Math.imul(eh,eq)|0;var tc=(ea+(J=J+Math.imul(eu,eV)|0)|0)+((8191&(Q=(Q=Q+Math.imul(eu,eJ)|0)+Math.imul(ec,eV)|0))<<13)|0;ea=((ee=ee+Math.imul(ec,eJ)|0)+(Q>>>13)|0)+(tc>>>26)|0,tc&=67108863,J=Math.imul(e_,eF),Q=(Q=Math.imul(e_,e$))+Math.imul(eS,eF)|0,ee=Math.imul(eS,e$),J=J+Math.imul(eg,eK)|0,Q=(Q=Q+Math.imul(eg,eW)|0)+Math.imul(eb,eK)|0,ee=ee+Math.imul(eb,eW)|0,J=J+Math.imul(ey,eG)|0,Q=(Q=Q+Math.imul(ey,eq)|0)+Math.imul(ev,eG)|0,ee=ee+Math.imul(ev,eq)|0,J=J+Math.imul(ed,eV)|0,Q=(Q=Q+Math.imul(ed,eJ)|0)+Math.imul(eh,eV)|0,ee=ee+Math.imul(eh,eJ)|0;var tf=(ea+(J=J+Math.imul(eu,eZ)|0)|0)+((8191&(Q=(Q=Q+Math.imul(eu,eQ)|0)+Math.imul(ec,eZ)|0))<<13)|0;ea=((ee=ee+Math.imul(ec,eQ)|0)+(Q>>>13)|0)+(tf>>>26)|0,tf&=67108863,J=Math.imul(eO,eF),Q=(Q=Math.imul(eO,e$))+Math.imul(eA,eF)|0,ee=Math.imul(eA,e$),J=J+Math.imul(e_,eK)|0,Q=(Q=Q+Math.imul(e_,eW)|0)+Math.imul(eS,eK)|0,ee=ee+Math.imul(eS,eW)|0,J=J+Math.imul(eg,eG)|0,Q=(Q=Q+Math.imul(eg,eq)|0)+Math.imul(eb,eG)|0,ee=ee+Math.imul(eb,eq)|0,J=J+Math.imul(ey,eV)|0,Q=(Q=Q+Math.imul(ey,eJ)|0)+Math.imul(ev,eV)|0,ee=ee+Math.imul(ev,eJ)|0,J=J+Math.imul(ed,eZ)|0,Q=(Q=Q+Math.imul(ed,eQ)|0)+Math.imul(eh,eZ)|0,ee=ee+Math.imul(eh,eQ)|0;var td=(ea+(J=J+Math.imul(eu,e0)|0)|0)+((8191&(Q=(Q=Q+Math.imul(eu,e1)|0)+Math.imul(ec,e0)|0))<<13)|0;ea=((ee=ee+Math.imul(ec,e1)|0)+(Q>>>13)|0)+(td>>>26)|0,td&=67108863,J=Math.imul(eM,eF),Q=(Q=Math.imul(eM,e$))+Math.imul(ej,eF)|0,ee=Math.imul(ej,e$),J=J+Math.imul(eO,eK)|0,Q=(Q=Q+Math.imul(eO,eW)|0)+Math.imul(eA,eK)|0,ee=ee+Math.imul(eA,eW)|0,J=J+Math.imul(e_,eG)|0,Q=(Q=Q+Math.imul(e_,eq)|0)+Math.imul(eS,eG)|0,ee=ee+Math.imul(eS,eq)|0,J=J+Math.imul(eg,eV)|0,Q=(Q=Q+Math.imul(eg,eJ)|0)+Math.imul(eb,eV)|0,ee=ee+Math.imul(eb,eJ)|0,J=J+Math.imul(ey,eZ)|0,Q=(Q=Q+Math.imul(ey,eQ)|0)+Math.imul(ev,eZ)|0,ee=ee+Math.imul(ev,eQ)|0,J=J+Math.imul(ed,e0)|0,Q=(Q=Q+Math.imul(ed,e1)|0)+Math.imul(eh,e0)|0,ee=ee+Math.imul(eh,e1)|0;var tp=(ea+(J=J+Math.imul(eu,e5)|0)|0)+((8191&(Q=(Q=Q+Math.imul(eu,e6)|0)+Math.imul(ec,e5)|0))<<13)|0;ea=((ee=ee+Math.imul(ec,e6)|0)+(Q>>>13)|0)+(tp>>>26)|0,tp&=67108863,J=Math.imul(ex,eF),Q=(Q=Math.imul(ex,e$))+Math.imul(eI,eF)|0,ee=Math.imul(eI,e$),J=J+Math.imul(eM,eK)|0,Q=(Q=Q+Math.imul(eM,eW)|0)+Math.imul(ej,eK)|0,ee=ee+Math.imul(ej,eW)|0,J=J+Math.imul(eO,eG)|0,Q=(Q=Q+Math.imul(eO,eq)|0)+Math.imul(eA,eG)|0,ee=ee+Math.imul(eA,eq)|0,J=J+Math.imul(e_,eV)|0,Q=(Q=Q+Math.imul(e_,eJ)|0)+Math.imul(eS,eV)|0,ee=ee+Math.imul(eS,eJ)|0,J=J+Math.imul(eg,eZ)|0,Q=(Q=Q+Math.imul(eg,eQ)|0)+Math.imul(eb,eZ)|0,ee=ee+Math.imul(eb,eQ)|0,J=J+Math.imul(ey,e0)|0,Q=(Q=Q+Math.imul(ey,e1)|0)+Math.imul(ev,e0)|0,ee=ee+Math.imul(ev,e1)|0,J=J+Math.imul(ed,e5)|0,Q=(Q=Q+Math.imul(ed,e6)|0)+Math.imul(eh,e5)|0,ee=ee+Math.imul(eh,e6)|0;var tv=(ea+(J=J+Math.imul(eu,e8)|0)|0)+((8191&(Q=(Q=Q+Math.imul(eu,e4)|0)+Math.imul(ec,e8)|0))<<13)|0;ea=((ee=ee+Math.imul(ec,e4)|0)+(Q>>>13)|0)+(tv>>>26)|0,tv&=67108863,J=Math.imul(eN,eF),Q=(Q=Math.imul(eN,e$))+Math.imul(ek,eF)|0,ee=Math.imul(ek,e$),J=J+Math.imul(ex,eK)|0,Q=(Q=Q+Math.imul(ex,eW)|0)+Math.imul(eI,eK)|0,ee=ee+Math.imul(eI,eW)|0,J=J+Math.imul(eM,eG)|0,Q=(Q=Q+Math.imul(eM,eq)|0)+Math.imul(ej,eG)|0,ee=ee+Math.imul(ej,eq)|0,J=J+Math.imul(eO,eV)|0,Q=(Q=Q+Math.imul(eO,eJ)|0)+Math.imul(eA,eV)|0,ee=ee+Math.imul(eA,eJ)|0,J=J+Math.imul(e_,eZ)|0,Q=(Q=Q+Math.imul(e_,eQ)|0)+Math.imul(eS,eZ)|0,ee=ee+Math.imul(eS,eQ)|0,J=J+Math.imul(eg,e0)|0,Q=(Q=Q+Math.imul(eg,e1)|0)+Math.imul(eb,e0)|0,ee=ee+Math.imul(eb,e1)|0,J=J+Math.imul(ey,e5)|0,Q=(Q=Q+Math.imul(ey,e6)|0)+Math.imul(ev,e5)|0,ee=ee+Math.imul(ev,e6)|0,J=J+Math.imul(ed,e8)|0,Q=(Q=Q+Math.imul(ed,e4)|0)+Math.imul(eh,e8)|0,ee=ee+Math.imul(eh,e4)|0;var tm=(ea+(J=J+Math.imul(eu,e7)|0)|0)+((8191&(Q=(Q=Q+Math.imul(eu,te)|0)+Math.imul(ec,e7)|0))<<13)|0;ea=((ee=ee+Math.imul(ec,te)|0)+(Q>>>13)|0)+(tm>>>26)|0,tm&=67108863,J=Math.imul(eD,eF),Q=(Q=Math.imul(eD,e$))+Math.imul(eL,eF)|0,ee=Math.imul(eL,e$),J=J+Math.imul(eN,eK)|0,Q=(Q=Q+Math.imul(eN,eW)|0)+Math.imul(ek,eK)|0,ee=ee+Math.imul(ek,eW)|0,J=J+Math.imul(ex,eG)|0,Q=(Q=Q+Math.imul(ex,eq)|0)+Math.imul(eI,eG)|0,ee=ee+Math.imul(eI,eq)|0,J=J+Math.imul(eM,eV)|0,Q=(Q=Q+Math.imul(eM,eJ)|0)+Math.imul(ej,eV)|0,ee=ee+Math.imul(ej,eJ)|0,J=J+Math.imul(eO,eZ)|0,Q=(Q=Q+Math.imul(eO,eQ)|0)+Math.imul(eA,eZ)|0,ee=ee+Math.imul(eA,eQ)|0,J=J+Math.imul(e_,e0)|0,Q=(Q=Q+Math.imul(e_,e1)|0)+Math.imul(eS,e0)|0,ee=ee+Math.imul(eS,e1)|0,J=J+Math.imul(eg,e5)|0,Q=(Q=Q+Math.imul(eg,e6)|0)+Math.imul(eb,e5)|0,ee=ee+Math.imul(eb,e6)|0,J=J+Math.imul(ey,e8)|0,Q=(Q=Q+Math.imul(ey,e4)|0)+Math.imul(ev,e8)|0,ee=ee+Math.imul(ev,e4)|0,J=J+Math.imul(ed,e7)|0,Q=(Q=Q+Math.imul(ed,te)|0)+Math.imul(eh,e7)|0,ee=ee+Math.imul(eh,te)|0;var tg=(ea+(J=J+Math.imul(eu,tr)|0)|0)+((8191&(Q=(Q=Q+Math.imul(eu,tn)|0)+Math.imul(ec,tr)|0))<<13)|0;ea=((ee=ee+Math.imul(ec,tn)|0)+(Q>>>13)|0)+(tg>>>26)|0,tg&=67108863,J=Math.imul(eD,eK),Q=(Q=Math.imul(eD,eW))+Math.imul(eL,eK)|0,ee=Math.imul(eL,eW),J=J+Math.imul(eN,eG)|0,Q=(Q=Q+Math.imul(eN,eq)|0)+Math.imul(ek,eG)|0,ee=ee+Math.imul(ek,eq)|0,J=J+Math.imul(ex,eV)|0,Q=(Q=Q+Math.imul(ex,eJ)|0)+Math.imul(eI,eV)|0,ee=ee+Math.imul(eI,eJ)|0,J=J+Math.imul(eM,eZ)|0,Q=(Q=Q+Math.imul(eM,eQ)|0)+Math.imul(ej,eZ)|0,ee=ee+Math.imul(ej,eQ)|0,J=J+Math.imul(eO,e0)|0,Q=(Q=Q+Math.imul(eO,e1)|0)+Math.imul(eA,e0)|0,ee=ee+Math.imul(eA,e1)|0,J=J+Math.imul(e_,e5)|0,Q=(Q=Q+Math.imul(e_,e6)|0)+Math.imul(eS,e5)|0,ee=ee+Math.imul(eS,e6)|0,J=J+Math.imul(eg,e8)|0,Q=(Q=Q+Math.imul(eg,e4)|0)+Math.imul(eb,e8)|0,ee=ee+Math.imul(eb,e4)|0,J=J+Math.imul(ey,e7)|0,Q=(Q=Q+Math.imul(ey,te)|0)+Math.imul(ev,e7)|0,ee=ee+Math.imul(ev,te)|0;var tb=(ea+(J=J+Math.imul(ed,tr)|0)|0)+((8191&(Q=(Q=Q+Math.imul(ed,tn)|0)+Math.imul(eh,tr)|0))<<13)|0;ea=((ee=ee+Math.imul(eh,tn)|0)+(Q>>>13)|0)+(tb>>>26)|0,tb&=67108863,J=Math.imul(eD,eG),Q=(Q=Math.imul(eD,eq))+Math.imul(eL,eG)|0,ee=Math.imul(eL,eq),J=J+Math.imul(eN,eV)|0,Q=(Q=Q+Math.imul(eN,eJ)|0)+Math.imul(ek,eV)|0,ee=ee+Math.imul(ek,eJ)|0,J=J+Math.imul(ex,eZ)|0,Q=(Q=Q+Math.imul(ex,eQ)|0)+Math.imul(eI,eZ)|0,ee=ee+Math.imul(eI,eQ)|0,J=J+Math.imul(eM,e0)|0,Q=(Q=Q+Math.imul(eM,e1)|0)+Math.imul(ej,e0)|0,ee=ee+Math.imul(ej,e1)|0,J=J+Math.imul(eO,e5)|0,Q=(Q=Q+Math.imul(eO,e6)|0)+Math.imul(eA,e5)|0,ee=ee+Math.imul(eA,e6)|0,J=J+Math.imul(e_,e8)|0,Q=(Q=Q+Math.imul(e_,e4)|0)+Math.imul(eS,e8)|0,ee=ee+Math.imul(eS,e4)|0,J=J+Math.imul(eg,e7)|0,Q=(Q=Q+Math.imul(eg,te)|0)+Math.imul(eb,e7)|0,ee=ee+Math.imul(eb,te)|0;var tw=(ea+(J=J+Math.imul(ey,tr)|0)|0)+((8191&(Q=(Q=Q+Math.imul(ey,tn)|0)+Math.imul(ev,tr)|0))<<13)|0;ea=((ee=ee+Math.imul(ev,tn)|0)+(Q>>>13)|0)+(tw>>>26)|0,tw&=67108863,J=Math.imul(eD,eV),Q=(Q=Math.imul(eD,eJ))+Math.imul(eL,eV)|0,ee=Math.imul(eL,eJ),J=J+Math.imul(eN,eZ)|0,Q=(Q=Q+Math.imul(eN,eQ)|0)+Math.imul(ek,eZ)|0,ee=ee+Math.imul(ek,eQ)|0,J=J+Math.imul(ex,e0)|0,Q=(Q=Q+Math.imul(ex,e1)|0)+Math.imul(eI,e0)|0,ee=ee+Math.imul(eI,e1)|0,J=J+Math.imul(eM,e5)|0,Q=(Q=Q+Math.imul(eM,e6)|0)+Math.imul(ej,e5)|0,ee=ee+Math.imul(ej,e6)|0,J=J+Math.imul(eO,e8)|0,Q=(Q=Q+Math.imul(eO,e4)|0)+Math.imul(eA,e8)|0,ee=ee+Math.imul(eA,e4)|0,J=J+Math.imul(e_,e7)|0,Q=(Q=Q+Math.imul(e_,te)|0)+Math.imul(eS,e7)|0,ee=ee+Math.imul(eS,te)|0;var t_=(ea+(J=J+Math.imul(eg,tr)|0)|0)+((8191&(Q=(Q=Q+Math.imul(eg,tn)|0)+Math.imul(eb,tr)|0))<<13)|0;ea=((ee=ee+Math.imul(eb,tn)|0)+(Q>>>13)|0)+(t_>>>26)|0,t_&=67108863,J=Math.imul(eD,eZ),Q=(Q=Math.imul(eD,eQ))+Math.imul(eL,eZ)|0,ee=Math.imul(eL,eQ),J=J+Math.imul(eN,e0)|0,Q=(Q=Q+Math.imul(eN,e1)|0)+Math.imul(ek,e0)|0,ee=ee+Math.imul(ek,e1)|0,J=J+Math.imul(ex,e5)|0,Q=(Q=Q+Math.imul(ex,e6)|0)+Math.imul(eI,e5)|0,ee=ee+Math.imul(eI,e6)|0,J=J+Math.imul(eM,e8)|0,Q=(Q=Q+Math.imul(eM,e4)|0)+Math.imul(ej,e8)|0,ee=ee+Math.imul(ej,e4)|0,J=J+Math.imul(eO,e7)|0,Q=(Q=Q+Math.imul(eO,te)|0)+Math.imul(eA,e7)|0,ee=ee+Math.imul(eA,te)|0;var tS=(ea+(J=J+Math.imul(e_,tr)|0)|0)+((8191&(Q=(Q=Q+Math.imul(e_,tn)|0)+Math.imul(eS,tr)|0))<<13)|0;ea=((ee=ee+Math.imul(eS,tn)|0)+(Q>>>13)|0)+(tS>>>26)|0,tS&=67108863,J=Math.imul(eD,e0),Q=(Q=Math.imul(eD,e1))+Math.imul(eL,e0)|0,ee=Math.imul(eL,e1),J=J+Math.imul(eN,e5)|0,Q=(Q=Q+Math.imul(eN,e6)|0)+Math.imul(ek,e5)|0,ee=ee+Math.imul(ek,e6)|0,J=J+Math.imul(ex,e8)|0,Q=(Q=Q+Math.imul(ex,e4)|0)+Math.imul(eI,e8)|0,ee=ee+Math.imul(eI,e4)|0,J=J+Math.imul(eM,e7)|0,Q=(Q=Q+Math.imul(eM,te)|0)+Math.imul(ej,e7)|0,ee=ee+Math.imul(ej,te)|0;var tE=(ea+(J=J+Math.imul(eO,tr)|0)|0)+((8191&(Q=(Q=Q+Math.imul(eO,tn)|0)+Math.imul(eA,tr)|0))<<13)|0;ea=((ee=ee+Math.imul(eA,tn)|0)+(Q>>>13)|0)+(tE>>>26)|0,tE&=67108863,J=Math.imul(eD,e5),Q=(Q=Math.imul(eD,e6))+Math.imul(eL,e5)|0,ee=Math.imul(eL,e6),J=J+Math.imul(eN,e8)|0,Q=(Q=Q+Math.imul(eN,e4)|0)+Math.imul(ek,e8)|0,ee=ee+Math.imul(ek,e4)|0,J=J+Math.imul(ex,e7)|0,Q=(Q=Q+Math.imul(ex,te)|0)+Math.imul(eI,e7)|0,ee=ee+Math.imul(eI,te)|0;var tO=(ea+(J=J+Math.imul(eM,tr)|0)|0)+((8191&(Q=(Q=Q+Math.imul(eM,tn)|0)+Math.imul(ej,tr)|0))<<13)|0;ea=((ee=ee+Math.imul(ej,tn)|0)+(Q>>>13)|0)+(tO>>>26)|0,tO&=67108863,J=Math.imul(eD,e8),Q=(Q=Math.imul(eD,e4))+Math.imul(eL,e8)|0,ee=Math.imul(eL,e4),J=J+Math.imul(eN,e7)|0,Q=(Q=Q+Math.imul(eN,te)|0)+Math.imul(ek,e7)|0,ee=ee+Math.imul(ek,te)|0;var tA=(ea+(J=J+Math.imul(ex,tr)|0)|0)+((8191&(Q=(Q=Q+Math.imul(ex,tn)|0)+Math.imul(eI,tr)|0))<<13)|0;ea=((ee=ee+Math.imul(eI,tn)|0)+(Q>>>13)|0)+(tA>>>26)|0,tA&=67108863,J=Math.imul(eD,e7),Q=(Q=Math.imul(eD,te))+Math.imul(eL,e7)|0,ee=Math.imul(eL,te);var tP=(ea+(J=J+Math.imul(eN,tr)|0)|0)+((8191&(Q=(Q=Q+Math.imul(eN,tn)|0)+Math.imul(ek,tr)|0))<<13)|0;ea=((ee=ee+Math.imul(ek,tn)|0)+(Q>>>13)|0)+(tP>>>26)|0,tP&=67108863;var tM=(ea+(J=Math.imul(eD,tr))|0)+((8191&(Q=(Q=Math.imul(eD,tn))+Math.imul(eL,tr)|0))<<13)|0;return ea=((ee=Math.imul(eL,tn))+(Q>>>13)|0)+(tM>>>26)|0,tM&=67108863,ei[0]=ti,ei[1]=ta,ei[2]=tu,ei[3]=tc,ei[4]=tf,ei[5]=td,ei[6]=tp,ei[7]=tv,ei[8]=tm,ei[9]=tg,ei[10]=tb,ei[11]=tw,ei[12]=t_,ei[13]=tS,ei[14]=tE,ei[15]=tO,ei[16]=tA,ei[17]=tP,ei[18]=tM,0!==ea&&(ei[19]=ea,H.length++),H};function em(W,G,H){H.negative=G.negative^W.negative,H.length=W.length+G.length;for(var J=0,Q=0,ee=0;ee<H.length-1;ee++){var et=Q;Q=0;for(var eo=67108863&J,ei=Math.min(ee,G.length-1),ea=Math.max(0,ee-W.length+1);ea<=ei;ea++){var es=ee-ea,eu=(0|W.words[es])*(0|G.words[ea]),ec=67108863&eu;et=et+(eu/67108864|0)|0,eo=67108863&(ec=ec+eo|0),Q+=(et=et+(ec>>>26)|0)>>>26,et&=67108863}H.words[ee]=eo,J=et,et=Q}return 0!==J?H.words[ee]=J:H.length--,H._strip()}function eg(W,G,H){return em(W,G,H)}function eb(W,G){this.x=W,this.y=G}Math.imul||(ev=ey),ee.prototype.mulTo=function(W,G){var H=this.length+W.length;return 10===this.length&&10===W.length?ev(this,W,G):H<63?ey(this,W,G):H<1024?em(this,W,G):eg(this,W,G)},eb.prototype.makeRBT=function(W){for(var G=Array(W),H=ee.prototype._countBits(W)-1,J=0;J<W;J++)G[J]=this.revBin(J,H,W);return G},eb.prototype.revBin=function(W,G,H){if(0===W||W===H-1)return W;for(var J=0,Q=0;Q<G;Q++)J|=(1&W)<<G-Q-1,W>>=1;return J},eb.prototype.permute=function(W,G,H,J,Q,ee){for(var et=0;et<ee;et++)J[et]=G[W[et]],Q[et]=H[W[et]]},eb.prototype.transform=function(W,G,H,J,Q,ee){this.permute(ee,W,G,H,J,Q);for(var et=1;et<Q;et<<=1)for(var eo=et<<1,ei=Math.cos(2*Math.PI/eo),ea=Math.sin(2*Math.PI/eo),es=0;es<Q;es+=eo)for(var eu=ei,ec=ea,ef=0;ef<et;ef++){var ed=H[es+ef],eh=J[es+ef],ep=H[es+ef+et],ey=J[es+ef+et],ev=eu*ep-ec*ey;ey=eu*ey+ec*ep,ep=ev,H[es+ef]=ed+ep,J[es+ef]=eh+ey,H[es+ef+et]=ed-ep,J[es+ef+et]=eh-ey,ef!==eo&&(ev=ei*eu-ea*ec,ec=ei*ec+ea*eu,eu=ev)}},eb.prototype.guessLen13b=function(W,G){var H=1|Math.max(G,W),J=1&H,Q=0;for(H=H/2|0;H;H>>>=1)Q++;return 1<<Q+1+J},eb.prototype.conjugate=function(W,G,H){if(!(H<=1))for(var J=0;J<H/2;J++){var Q=W[J];W[J]=W[H-J-1],W[H-J-1]=Q,Q=G[J],G[J]=-G[H-J-1],G[H-J-1]=-Q}},eb.prototype.normalize13b=function(W,G){for(var H=0,J=0;J<G/2;J++){var Q=8192*Math.round(W[2*J+1]/G)+Math.round(W[2*J]/G)+H;W[J]=67108863&Q,H=Q<67108864?0:Q/67108864|0}return W},eb.prototype.convert13b=function(W,G,H,Q){for(var ee=0,et=0;et<G;et++)ee+=0|W[et],H[2*et]=8191&ee,ee>>>=13,H[2*et+1]=8191&ee,ee>>>=13;for(et=2*G;et<Q;++et)H[et]=0;J(0===ee),J((-8192&ee)==0)},eb.prototype.stub=function(W){for(var G=Array(W),H=0;H<W;H++)G[H]=0;return G},eb.prototype.mulp=function(W,G,H){var J=2*this.guessLen13b(W.length,G.length),Q=this.makeRBT(J),ee=this.stub(J),et=Array(J),eo=Array(J),ei=Array(J),ea=Array(J),es=Array(J),eu=Array(J),ec=H.words;ec.length=J,this.convert13b(W.words,W.length,et,J),this.convert13b(G.words,G.length,ea,J),this.transform(et,ee,eo,ei,J,Q),this.transform(ea,ee,es,eu,J,Q);for(var ef=0;ef<J;ef++){var ed=eo[ef]*es[ef]-ei[ef]*eu[ef];ei[ef]=eo[ef]*eu[ef]+ei[ef]*es[ef],eo[ef]=ed}return this.conjugate(eo,ei,J),this.transform(eo,ei,ec,ee,J,Q),this.conjugate(ec,ee,J),this.normalize13b(ec,J),H.negative=W.negative^G.negative,H.length=W.length+G.length,H._strip()},ee.prototype.mul=function(W){var G=new ee(null);return G.words=Array(this.length+W.length),this.mulTo(W,G)},ee.prototype.mulf=function(W){var G=new ee(null);return G.words=Array(this.length+W.length),eg(this,W,G)},ee.prototype.imul=function(W){return this.clone().mulTo(W,this)},ee.prototype.imuln=function(W){var G=W<0;G&&(W=-W),J("number"==typeof W),J(W<67108864);for(var H=0,Q=0;Q<this.length;Q++){var ee=(0|this.words[Q])*W,et=(67108863&ee)+(67108863&H);H>>=26,H+=(ee/67108864|0)+(et>>>26),this.words[Q]=67108863&et}return 0!==H&&(this.words[Q]=H,this.length++),G?this.ineg():this},ee.prototype.muln=function(W){return this.clone().imuln(W)},ee.prototype.sqr=function(){return this.mul(this)},ee.prototype.isqr=function(){return this.imul(this.clone())},ee.prototype.pow=function(W){var G=ep(W);if(0===G.length)return new ee(1);for(var H=this,J=0;J<G.length&&0===G[J];J++,H=H.sqr());if(++J<G.length)for(var Q=H.sqr();J<G.length;J++,Q=Q.sqr())0!==G[J]&&(H=H.mul(Q));return H},ee.prototype.iushln=function(W){J("number"==typeof W&&W>=0);var G,H=W%26,Q=(W-H)/26,ee=67108863>>>26-H<<26-H;if(0!==H){var et=0;for(G=0;G<this.length;G++){var eo=this.words[G]&ee,ei=(0|this.words[G])-eo<<H;this.words[G]=ei|et,et=eo>>>26-H}et&&(this.words[G]=et,this.length++)}if(0!==Q){for(G=this.length-1;G>=0;G--)this.words[G+Q]=this.words[G];for(G=0;G<Q;G++)this.words[G]=0;this.length+=Q}return this._strip()},ee.prototype.ishln=function(W){return J(0===this.negative),this.iushln(W)},ee.prototype.iushrn=function(W,G,H){J("number"==typeof W&&W>=0),Q=G?(G-G%26)/26:0;var Q,ee=W%26,et=Math.min((W-ee)/26,this.length),eo=67108863^67108863>>>ee<<ee,ei=H;if(Q-=et,Q=Math.max(0,Q),ei){for(var ea=0;ea<et;ea++)ei.words[ea]=this.words[ea];ei.length=et}if(0===et);else if(this.length>et)for(this.length-=et,ea=0;ea<this.length;ea++)this.words[ea]=this.words[ea+et];else this.words[0]=0,this.length=1;var es=0;for(ea=this.length-1;ea>=0&&(0!==es||ea>=Q);ea--){var eu=0|this.words[ea];this.words[ea]=es<<26-ee|eu>>>ee,es=eu&eo}return ei&&0!==es&&(ei.words[ei.length++]=es),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},ee.prototype.ishrn=function(W,G,H){return J(0===this.negative),this.iushrn(W,G,H)},ee.prototype.shln=function(W){return this.clone().ishln(W)},ee.prototype.ushln=function(W){return this.clone().iushln(W)},ee.prototype.shrn=function(W){return this.clone().ishrn(W)},ee.prototype.ushrn=function(W){return this.clone().iushrn(W)},ee.prototype.testn=function(W){J("number"==typeof W&&W>=0);var G=W%26,H=(W-G)/26,Q=1<<G;return!(this.length<=H)&&!!(this.words[H]&Q)},ee.prototype.imaskn=function(W){J("number"==typeof W&&W>=0);var G=W%26,H=(W-G)/26;if(J(0===this.negative,"imaskn works only with positive numbers"),this.length<=H)return this;if(0!==G&&H++,this.length=Math.min(H,this.length),0!==G){var Q=67108863^67108863>>>G<<G;this.words[this.length-1]&=Q}return this._strip()},ee.prototype.maskn=function(W){return this.clone().imaskn(W)},ee.prototype.iaddn=function(W){return(J("number"==typeof W),J(W<67108864),W<0)?this.isubn(-W):0!==this.negative?(1===this.length&&(0|this.words[0])<=W?(this.words[0]=W-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(W),this.negative=1),this):this._iaddn(W)},ee.prototype._iaddn=function(W){this.words[0]+=W;for(var G=0;G<this.length&&this.words[G]>=67108864;G++)this.words[G]-=67108864,G===this.length-1?this.words[G+1]=1:this.words[G+1]++;return this.length=Math.max(this.length,G+1),this},ee.prototype.isubn=function(W){if(J("number"==typeof W),J(W<67108864),W<0)return this.iaddn(-W);if(0!==this.negative)return this.negative=0,this.iaddn(W),this.negative=1,this;if(this.words[0]-=W,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var G=0;G<this.length&&this.words[G]<0;G++)this.words[G]+=67108864,this.words[G+1]-=1;return this._strip()},ee.prototype.addn=function(W){return this.clone().iaddn(W)},ee.prototype.subn=function(W){return this.clone().isubn(W)},ee.prototype.iabs=function(){return this.negative=0,this},ee.prototype.abs=function(){return this.clone().iabs()},ee.prototype._ishlnsubmul=function(W,G,H){var Q,ee,et=W.length+H;this._expand(et);var eo=0;for(Q=0;Q<W.length;Q++){ee=(0|this.words[Q+H])+eo;var ei=(0|W.words[Q])*G;ee-=67108863&ei,eo=(ee>>26)-(ei/67108864|0),this.words[Q+H]=67108863&ee}for(;Q<this.length-H;Q++)eo=(ee=(0|this.words[Q+H])+eo)>>26,this.words[Q+H]=67108863&ee;if(0===eo)return this._strip();for(J(-1===eo),eo=0,Q=0;Q<this.length;Q++)eo=(ee=-(0|this.words[Q])+eo)>>26,this.words[Q]=67108863&ee;return this.negative=1,this._strip()},ee.prototype._wordDiv=function(W,G){var H,J=this.length-W.length,Q=this.clone(),et=W,eo=0|et.words[et.length-1];0!=(J=26-this._countBits(eo))&&(et=et.ushln(J),Q.iushln(J),eo=0|et.words[et.length-1]);var ei=Q.length-et.length;if("mod"!==G){(H=new ee(null)).length=ei+1,H.words=Array(H.length);for(var ea=0;ea<H.length;ea++)H.words[ea]=0}var es=Q.clone()._ishlnsubmul(et,1,ei);0===es.negative&&(Q=es,H&&(H.words[ei]=1));for(var eu=ei-1;eu>=0;eu--){var ec=(0|Q.words[et.length+eu])*67108864+(0|Q.words[et.length+eu-1]);for(ec=Math.min(ec/eo|0,67108863),Q._ishlnsubmul(et,ec,eu);0!==Q.negative;)ec--,Q.negative=0,Q._ishlnsubmul(et,1,eu),Q.isZero()||(Q.negative^=1);H&&(H.words[eu]=ec)}return H&&H._strip(),Q._strip(),"div"!==G&&0!==J&&Q.iushrn(J),{div:H||null,mod:Q}},ee.prototype.divmod=function(W,G,H){var Q,et,eo;return(J(!W.isZero()),this.isZero())?{div:new ee(0),mod:new ee(0)}:0!==this.negative&&0===W.negative?(eo=this.neg().divmod(W,G),"mod"!==G&&(Q=eo.div.neg()),"div"!==G&&(et=eo.mod.neg(),H&&0!==et.negative&&et.iadd(W)),{div:Q,mod:et}):0===this.negative&&0!==W.negative?(eo=this.divmod(W.neg(),G),"mod"!==G&&(Q=eo.div.neg()),{div:Q,mod:eo.mod}):(this.negative&W.negative)!=0?(eo=this.neg().divmod(W.neg(),G),"div"!==G&&(et=eo.mod.neg(),H&&0!==et.negative&&et.isub(W)),{div:eo.div,mod:et}):W.length>this.length||0>this.cmp(W)?{div:new ee(0),mod:this}:1===W.length?"div"===G?{div:this.divn(W.words[0]),mod:null}:"mod"===G?{div:null,mod:new ee(this.modrn(W.words[0]))}:{div:this.divn(W.words[0]),mod:new ee(this.modrn(W.words[0]))}:this._wordDiv(W,G)},ee.prototype.div=function(W){return this.divmod(W,"div",!1).div},ee.prototype.mod=function(W){return this.divmod(W,"mod",!1).mod},ee.prototype.umod=function(W){return this.divmod(W,"mod",!0).mod},ee.prototype.divRound=function(W){var G=this.divmod(W);if(G.mod.isZero())return G.div;var H=0!==G.div.negative?G.mod.isub(W):G.mod,J=W.ushrn(1),Q=W.andln(1),ee=H.cmp(J);return ee<0||1===Q&&0===ee?G.div:0!==G.div.negative?G.div.isubn(1):G.div.iaddn(1)},ee.prototype.modrn=function(W){var G=W<0;G&&(W=-W),J(W<=67108863);for(var H=67108864%W,Q=0,ee=this.length-1;ee>=0;ee--)Q=(H*Q+(0|this.words[ee]))%W;return G?-Q:Q},ee.prototype.modn=function(W){return this.modrn(W)},ee.prototype.idivn=function(W){var G=W<0;G&&(W=-W),J(W<=67108863);for(var H=0,Q=this.length-1;Q>=0;Q--){var ee=(0|this.words[Q])+67108864*H;this.words[Q]=ee/W|0,H=ee%W}return this._strip(),G?this.ineg():this},ee.prototype.divn=function(W){return this.clone().idivn(W)},ee.prototype.egcd=function(W){J(0===W.negative),J(!W.isZero());var G=this,H=W.clone();G=0!==G.negative?G.umod(W):G.clone();for(var Q=new ee(1),et=new ee(0),eo=new ee(0),ei=new ee(1),ea=0;G.isEven()&&H.isEven();)G.iushrn(1),H.iushrn(1),++ea;for(var es=H.clone(),eu=G.clone();!G.isZero();){for(var ec=0,ef=1;(G.words[0]&ef)==0&&ec<26;++ec,ef<<=1);if(ec>0)for(G.iushrn(ec);ec-- >0;)(Q.isOdd()||et.isOdd())&&(Q.iadd(es),et.isub(eu)),Q.iushrn(1),et.iushrn(1);for(var ed=0,eh=1;(H.words[0]&eh)==0&&ed<26;++ed,eh<<=1);if(ed>0)for(H.iushrn(ed);ed-- >0;)(eo.isOdd()||ei.isOdd())&&(eo.iadd(es),ei.isub(eu)),eo.iushrn(1),ei.iushrn(1);G.cmp(H)>=0?(G.isub(H),Q.isub(eo),et.isub(ei)):(H.isub(G),eo.isub(Q),ei.isub(et))}return{a:eo,b:ei,gcd:H.iushln(ea)}},ee.prototype._invmp=function(W){J(0===W.negative),J(!W.isZero());var G,H=this,Q=W.clone();H=0!==H.negative?H.umod(W):H.clone();for(var et=new ee(1),eo=new ee(0),ei=Q.clone();H.cmpn(1)>0&&Q.cmpn(1)>0;){for(var ea=0,es=1;(H.words[0]&es)==0&&ea<26;++ea,es<<=1);if(ea>0)for(H.iushrn(ea);ea-- >0;)et.isOdd()&&et.iadd(ei),et.iushrn(1);for(var eu=0,ec=1;(Q.words[0]&ec)==0&&eu<26;++eu,ec<<=1);if(eu>0)for(Q.iushrn(eu);eu-- >0;)eo.isOdd()&&eo.iadd(ei),eo.iushrn(1);H.cmp(Q)>=0?(H.isub(Q),et.isub(eo)):(Q.isub(H),eo.isub(et))}return 0>(G=0===H.cmpn(1)?et:eo).cmpn(0)&&G.iadd(W),G},ee.prototype.gcd=function(W){if(this.isZero())return W.abs();if(W.isZero())return this.abs();var G=this.clone(),H=W.clone();G.negative=0,H.negative=0;for(var J=0;G.isEven()&&H.isEven();J++)G.iushrn(1),H.iushrn(1);for(;;){for(;G.isEven();)G.iushrn(1);for(;H.isEven();)H.iushrn(1);var Q=G.cmp(H);if(Q<0){var ee=G;G=H,H=ee}else if(0===Q||0===H.cmpn(1))break;G.isub(H)}return H.iushln(J)},ee.prototype.invm=function(W){return this.egcd(W).a.umod(W)},ee.prototype.isEven=function(){return(1&this.words[0])==0},ee.prototype.isOdd=function(){return(1&this.words[0])==1},ee.prototype.andln=function(W){return this.words[0]&W},ee.prototype.bincn=function(W){J("number"==typeof W);var G=W%26,H=(W-G)/26,Q=1<<G;if(this.length<=H)return this._expand(H+1),this.words[H]|=Q,this;for(var ee=Q,et=H;0!==ee&&et<this.length;et++){var eo=0|this.words[et];eo+=ee,ee=eo>>>26,eo&=67108863,this.words[et]=eo}return 0!==ee&&(this.words[et]=ee,this.length++),this},ee.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},ee.prototype.cmpn=function(W){var G,H=W<0;if(0!==this.negative&&!H)return -1;if(0===this.negative&&H)return 1;if(this._strip(),this.length>1)G=1;else{H&&(W=-W),J(W<=67108863,"Number is too big");var Q=0|this.words[0];G=Q===W?0:Q<W?-1:1}return 0!==this.negative?0|-G:G},ee.prototype.cmp=function(W){if(0!==this.negative&&0===W.negative)return -1;if(0===this.negative&&0!==W.negative)return 1;var G=this.ucmp(W);return 0!==this.negative?0|-G:G},ee.prototype.ucmp=function(W){if(this.length>W.length)return 1;if(this.length<W.length)return -1;for(var G=0,H=this.length-1;H>=0;H--){var J=0|this.words[H],Q=0|W.words[H];if(J!==Q){J<Q?G=-1:J>Q&&(G=1);break}}return G},ee.prototype.gtn=function(W){return 1===this.cmpn(W)},ee.prototype.gt=function(W){return 1===this.cmp(W)},ee.prototype.gten=function(W){return this.cmpn(W)>=0},ee.prototype.gte=function(W){return this.cmp(W)>=0},ee.prototype.ltn=function(W){return -1===this.cmpn(W)},ee.prototype.lt=function(W){return -1===this.cmp(W)},ee.prototype.lten=function(W){return 0>=this.cmpn(W)},ee.prototype.lte=function(W){return 0>=this.cmp(W)},ee.prototype.eqn=function(W){return 0===this.cmpn(W)},ee.prototype.eq=function(W){return 0===this.cmp(W)},ee.red=function(W){return new eP(W)},ee.prototype.toRed=function(W){return J(!this.red,"Already a number in reduction context"),J(0===this.negative,"red works only with positives"),W.convertTo(this)._forceRed(W)},ee.prototype.fromRed=function(){return J(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},ee.prototype._forceRed=function(W){return this.red=W,this},ee.prototype.forceRed=function(W){return J(!this.red,"Already a number in reduction context"),this._forceRed(W)},ee.prototype.redAdd=function(W){return J(this.red,"redAdd works only with red numbers"),this.red.add(this,W)},ee.prototype.redIAdd=function(W){return J(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,W)},ee.prototype.redSub=function(W){return J(this.red,"redSub works only with red numbers"),this.red.sub(this,W)},ee.prototype.redISub=function(W){return J(this.red,"redISub works only with red numbers"),this.red.isub(this,W)},ee.prototype.redShl=function(W){return J(this.red,"redShl works only with red numbers"),this.red.shl(this,W)},ee.prototype.redMul=function(W){return J(this.red,"redMul works only with red numbers"),this.red._verify2(this,W),this.red.mul(this,W)},ee.prototype.redIMul=function(W){return J(this.red,"redMul works only with red numbers"),this.red._verify2(this,W),this.red.imul(this,W)},ee.prototype.redSqr=function(){return J(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},ee.prototype.redISqr=function(){return J(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},ee.prototype.redSqrt=function(){return J(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},ee.prototype.redInvm=function(){return J(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},ee.prototype.redNeg=function(){return J(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},ee.prototype.redPow=function(W){return J(this.red&&!W.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,W)};var ew={k256:null,p224:null,p192:null,p25519:null};function e_(W,G){this.name=W,this.p=new ee(G,16),this.n=this.p.bitLength(),this.k=new ee(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function eS(){e_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function eE(){e_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function eO(){e_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function eA(){e_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function eP(W){if("string"==typeof W){var G=ee._prime(W);this.m=G.p,this.prime=G}else J(W.gtn(1),"modulus must be greater than 1"),this.m=W,this.prime=null}function eM(W){eP.call(this,W),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new ee(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}e_.prototype._tmp=function(){var W=new ee(null);return W.words=Array(Math.ceil(this.n/13)),W},e_.prototype.ireduce=function(W){var G,H=W;do this.split(H,this.tmp),G=(H=(H=this.imulK(H)).iadd(this.tmp)).bitLength();while(G>this.n);var J=G<this.n?-1:H.ucmp(this.p);return 0===J?(H.words[0]=0,H.length=1):J>0?H.isub(this.p):void 0!==H.strip?H.strip():H._strip(),H},e_.prototype.split=function(W,G){W.iushrn(this.n,0,G)},e_.prototype.imulK=function(W){return W.imul(this.k)},Q(eS,e_),eS.prototype.split=function(W,G){for(var H=4194303,J=Math.min(W.length,9),Q=0;Q<J;Q++)G.words[Q]=W.words[Q];if(G.length=J,W.length<=9){W.words[0]=0,W.length=1;return}var ee=W.words[9];for(Q=10,G.words[G.length++]=ee&H;Q<W.length;Q++){var et=0|W.words[Q];W.words[Q-10]=(et&H)<<4|ee>>>22,ee=et}ee>>>=22,W.words[Q-10]=ee,0===ee&&W.length>10?W.length-=10:W.length-=9},eS.prototype.imulK=function(W){W.words[W.length]=0,W.words[W.length+1]=0,W.length+=2;for(var G=0,H=0;H<W.length;H++){var J=0|W.words[H];G+=977*J,W.words[H]=67108863&G,G=64*J+(G/67108864|0)}return 0===W.words[W.length-1]&&(W.length--,0===W.words[W.length-1]&&W.length--),W},Q(eE,e_),Q(eO,e_),Q(eA,e_),eA.prototype.imulK=function(W){for(var G=0,H=0;H<W.length;H++){var J=(0|W.words[H])*19+G,Q=67108863&J;J>>>=26,W.words[H]=Q,G=J}return 0!==G&&(W.words[W.length++]=G),W},ee._prime=function(W){var G;if(ew[W])return ew[W];if("k256"===W)G=new eS;else if("p224"===W)G=new eE;else if("p192"===W)G=new eO;else if("p25519"===W)G=new eA;else throw Error("Unknown prime "+W);return ew[W]=G,G},eP.prototype._verify1=function(W){J(0===W.negative,"red works only with positives"),J(W.red,"red works only with red numbers")},eP.prototype._verify2=function(W,G){J((W.negative|G.negative)==0,"red works only with positives"),J(W.red&&W.red===G.red,"red works only with red numbers")},eP.prototype.imod=function(W){return this.prime?this.prime.ireduce(W)._forceRed(this):(ea(W,W.umod(this.m)._forceRed(this)),W)},eP.prototype.neg=function(W){return W.isZero()?W.clone():this.m.sub(W)._forceRed(this)},eP.prototype.add=function(W,G){this._verify2(W,G);var H=W.add(G);return H.cmp(this.m)>=0&&H.isub(this.m),H._forceRed(this)},eP.prototype.iadd=function(W,G){this._verify2(W,G);var H=W.iadd(G);return H.cmp(this.m)>=0&&H.isub(this.m),H},eP.prototype.sub=function(W,G){this._verify2(W,G);var H=W.sub(G);return 0>H.cmpn(0)&&H.iadd(this.m),H._forceRed(this)},eP.prototype.isub=function(W,G){this._verify2(W,G);var H=W.isub(G);return 0>H.cmpn(0)&&H.iadd(this.m),H},eP.prototype.shl=function(W,G){return this._verify1(W),this.imod(W.ushln(G))},eP.prototype.imul=function(W,G){return this._verify2(W,G),this.imod(W.imul(G))},eP.prototype.mul=function(W,G){return this._verify2(W,G),this.imod(W.mul(G))},eP.prototype.isqr=function(W){return this.imul(W,W.clone())},eP.prototype.sqr=function(W){return this.mul(W,W)},eP.prototype.sqrt=function(W){if(W.isZero())return W.clone();var G=this.m.andln(3);if(J(G%2==1),3===G){var H=this.m.add(new ee(1)).iushrn(2);return this.pow(W,H)}for(var Q=this.m.subn(1),et=0;!Q.isZero()&&0===Q.andln(1);)et++,Q.iushrn(1);J(!Q.isZero());var eo=new ee(1).toRed(this),ei=eo.redNeg(),ea=this.m.subn(1).iushrn(1),es=this.m.bitLength();for(es=new ee(2*es*es).toRed(this);0!==this.pow(es,ea).cmp(ei);)es.redIAdd(ei);for(var eu=this.pow(es,Q),ec=this.pow(W,Q.addn(1).iushrn(1)),ef=this.pow(W,Q),ed=et;0!==ef.cmp(eo);){for(var eh=ef,ep=0;0!==eh.cmp(eo);ep++)eh=eh.redSqr();J(ep<ed);var ey=this.pow(eu,new ee(1).iushln(ed-ep-1));ec=ec.redMul(ey),eu=ey.redSqr(),ef=ef.redMul(eu),ed=ep}return ec},eP.prototype.invm=function(W){var G=W._invmp(this.m);return 0!==G.negative?(G.negative=0,this.imod(G).redNeg()):this.imod(G)},eP.prototype.pow=function(W,G){if(G.isZero())return new ee(1).toRed(this);if(0===G.cmpn(1))return W.clone();var H=4,J=Array(16);J[0]=new ee(1).toRed(this),J[1]=W;for(var Q=2;Q<J.length;Q++)J[Q]=this.mul(J[Q-1],W);var et=J[0],eo=0,ei=0,ea=G.bitLength()%26;for(0===ea&&(ea=26),Q=G.length-1;Q>=0;Q--){for(var es=G.words[Q],eu=ea-1;eu>=0;eu--){var ec=es>>eu&1;if(et!==J[0]&&(et=this.sqr(et)),0===ec&&0===eo){ei=0;continue}eo<<=1,eo|=ec,(++ei===H||0===Q&&0===eu)&&(et=this.mul(et,J[eo]),ei=0,eo=0)}ea=26}return et},eP.prototype.convertTo=function(W){var G=W.umod(this.m);return G===W?G.clone():G},eP.prototype.convertFrom=function(W){var G=W.clone();return G.red=null,G},ee.mont=function(W){return new eM(W)},Q(eM,eP),eM.prototype.convertTo=function(W){return this.imod(W.ushln(this.shift))},eM.prototype.convertFrom=function(W){var G=this.imod(W.mul(this.rinv));return G.red=null,G},eM.prototype.imul=function(W,G){if(W.isZero()||G.isZero())return W.words[0]=0,W.length=1,W;var H=W.imul(G),J=H.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=H.isub(J).iushrn(this.shift),ee=Q;return Q.cmp(this.m)>=0?ee=Q.isub(this.m):0>Q.cmpn(0)&&(ee=Q.iadd(this.m)),ee._forceRed(this)},eM.prototype.mul=function(W,G){if(W.isZero()||G.isZero())return new ee(0)._forceRed(this);var H=W.mul(G),J=H.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Q=H.isub(J).iushrn(this.shift),et=Q;return Q.cmp(this.m)>=0?et=Q.isub(this.m):0>Q.cmpn(0)&&(et=Q.iadd(this.m)),et._forceRed(this)},eM.prototype.invm=function(W){return this.imod(W._invmp(this.m).mul(this.r2))._forceRed(this)}}(W=H.nmd(W),this)},66012:function(W,G,H){"use strict";var J=H(80854).Buffer,Q=this&&this.__createBinding||(Object.create?function(W,G,H,J){void 0===J&&(J=H),Object.defineProperty(W,J,{enumerable:!0,get:function(){return G[H]}})}:function(W,G,H,J){void 0===J&&(J=H),W[J]=G[H]}),ee=this&&this.__setModuleDefault||(Object.create?function(W,G){Object.defineProperty(W,"default",{enumerable:!0,value:G})}:function(W,G){W.default=G}),et=this&&this.__decorate||function(W,G,H,J){var Q,ee=arguments.length,et=ee<3?G:null===J?J=Object.getOwnPropertyDescriptor(G,H):J;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)et=Reflect.decorate(W,G,H,J);else for(var eo=W.length-1;eo>=0;eo--)(Q=W[eo])&&(et=(ee<3?Q(et):ee>3?Q(G,H,et):Q(G,H))||et);return ee>3&&et&&Object.defineProperty(G,H,et),et},eo=this&&this.__importStar||function(W){if(W&&W.__esModule)return W;var G={};if(null!=W)for(var H in W)"default"!==H&&Object.hasOwnProperty.call(W,H)&&Q(G,W,H);return ee(G,W),G},ei=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.deserializeUnchecked=G.deserialize=G.serialize=G.BinaryReader=G.BinaryWriter=G.BorshError=G.baseDecode=G.baseEncode=void 0;let ea=ei(H(60079)),es=ei(H(75236)),eu=eo(H(22131)),ec="function"!=typeof TextDecoder?eu.TextDecoder:TextDecoder,ef=new ec("utf-8",{fatal:!0});function ed(W){return"string"==typeof W&&(W=J.from(W,"utf8")),es.default.encode(J.from(W))}function eh(W){return J.from(es.default.decode(W))}G.baseEncode=ed,G.baseDecode=eh;let ep=1024;class ey extends Error{constructor(W){super(W),this.fieldPath=[],this.originalMessage=W}addToFieldPath(W){this.fieldPath.splice(0,0,W),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}G.BorshError=ey;class ev{constructor(){this.buf=J.alloc(ep),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=J.concat([this.buf,J.alloc(ep)]))}writeU8(W){this.maybeResize(),this.buf.writeUInt8(W,this.length),this.length+=1}writeU16(W){this.maybeResize(),this.buf.writeUInt16LE(W,this.length),this.length+=2}writeU32(W){this.maybeResize(),this.buf.writeUInt32LE(W,this.length),this.length+=4}writeU64(W){this.maybeResize(),this.writeBuffer(J.from(new ea.default(W).toArray("le",8)))}writeU128(W){this.maybeResize(),this.writeBuffer(J.from(new ea.default(W).toArray("le",16)))}writeU256(W){this.maybeResize(),this.writeBuffer(J.from(new ea.default(W).toArray("le",32)))}writeU512(W){this.maybeResize(),this.writeBuffer(J.from(new ea.default(W).toArray("le",64)))}writeBuffer(W){this.buf=J.concat([J.from(this.buf.subarray(0,this.length)),W,J.alloc(ep)]),this.length+=W.length}writeString(W){this.maybeResize();let G=J.from(W,"utf8");this.writeU32(G.length),this.writeBuffer(G)}writeFixedArray(W){this.writeBuffer(J.from(W))}writeArray(W,G){for(let H of(this.maybeResize(),this.writeU32(W.length),W))this.maybeResize(),G(H)}toArray(){return this.buf.subarray(0,this.length)}}function em(W,G,H){let J=H.value;H.value=function(...W){try{return J.apply(this,W)}catch(W){if(W instanceof RangeError){let G=W.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(G)>=0)throw new ey("Reached the end of buffer when deserializing")}throw W}}}G.BinaryWriter=ev;class eg{constructor(W){this.buf=W,this.offset=0}readU8(){let W=this.buf.readUInt8(this.offset);return this.offset+=1,W}readU16(){let W=this.buf.readUInt16LE(this.offset);return this.offset+=2,W}readU32(){let W=this.buf.readUInt32LE(this.offset);return this.offset+=4,W}readU64(){let W=this.readBuffer(8);return new ea.default(W,"le")}readU128(){let W=this.readBuffer(16);return new ea.default(W,"le")}readU256(){let W=this.readBuffer(32);return new ea.default(W,"le")}readU512(){let W=this.readBuffer(64);return new ea.default(W,"le")}readBuffer(W){if(this.offset+W>this.buf.length)throw new ey(`Expected buffer length ${W} isn't within bounds`);let G=this.buf.slice(this.offset,this.offset+W);return this.offset+=W,G}readString(){let W=this.readU32(),G=this.readBuffer(W);try{return ef.decode(G)}catch(W){throw new ey(`Error decoding UTF-8 string: ${W}`)}}readFixedArray(W){return new Uint8Array(this.readBuffer(W))}readArray(W){let G=this.readU32(),H=[];for(let J=0;J<G;++J)H.push(W());return H}}function eb(W){return W.charAt(0).toUpperCase()+W.slice(1)}function ew(W,G,H,J,Q){try{if("string"==typeof J)Q[`write${eb(J)}`](H);else if(J instanceof Array){if("number"==typeof J[0]){if(H.length!==J[0])throw new ey(`Expecting byte array of length ${J[0]}, but got ${H.length} bytes`);Q.writeFixedArray(H)}else if(2===J.length&&"number"==typeof J[1]){if(H.length!==J[1])throw new ey(`Expecting byte array of length ${J[1]}, but got ${H.length} bytes`);for(let G=0;G<J[1];G++)ew(W,null,H[G],J[0],Q)}else Q.writeArray(H,H=>{ew(W,G,H,J[0],Q)})}else if(void 0!==J.kind)switch(J.kind){case"option":null==H?Q.writeU8(0):(Q.writeU8(1),ew(W,G,H,J.type,Q));break;case"map":Q.writeU32(H.size),H.forEach((H,ee)=>{ew(W,G,ee,J.key,Q),ew(W,G,H,J.value,Q)});break;default:throw new ey(`FieldType ${J} unrecognized`)}else e_(W,H,Q)}catch(W){throw W instanceof ey&&W.addToFieldPath(G),W}}function e_(W,G,H){if("function"==typeof G.borshSerialize){G.borshSerialize(H);return}let J=W.get(G.constructor);if(!J)throw new ey(`Class ${G.constructor.name} is missing in schema`);if("struct"===J.kind)J.fields.map(([J,Q])=>{ew(W,J,G[J],Q,H)});else if("enum"===J.kind){let Q=G[J.field];for(let ee=0;ee<J.values.length;++ee){let[et,eo]=J.values[ee];if(et===Q){H.writeU8(ee),ew(W,et,G[et],eo,H);break}}}else throw new ey(`Unexpected schema kind: ${J.kind} for ${G.constructor.name}`)}function eS(W,G,H=ev){let J=new H;return e_(W,G,J),J.toArray()}function eE(W,G,H,J){try{if("string"==typeof H)return J[`read${eb(H)}`]();if(H instanceof Array){if("number"==typeof H[0])return J.readFixedArray(H[0]);if("number"!=typeof H[1])return J.readArray(()=>eE(W,G,H[0],J));{let G=[];for(let Q=0;Q<H[1];Q++)G.push(eE(W,null,H[0],J));return G}}if("option"===H.kind){let Q=J.readU8();if(Q)return eE(W,G,H.type,J);return}if("map"===H.kind){let Q=new Map,ee=J.readU32();for(let et=0;et<ee;et++){let ee=eE(W,G,H.key,J),et=eE(W,G,H.value,J);Q.set(ee,et)}return Q}return eO(W,H,J)}catch(W){throw W instanceof ey&&W.addToFieldPath(G),W}}function eO(W,G,H){if("function"==typeof G.borshDeserialize)return G.borshDeserialize(H);let J=W.get(G);if(!J)throw new ey(`Class ${G.name} is missing in schema`);if("struct"===J.kind){let J={};for(let[Q,ee]of W.get(G).fields)J[Q]=eE(W,Q,ee,H);return new G(J)}if("enum"===J.kind){let Q=H.readU8();if(Q>=J.values.length)throw new ey(`Enum index: ${Q} is out of range`);let[ee,et]=J.values[Q],eo=eE(W,ee,et,H);return new G({[ee]:eo})}throw new ey(`Unexpected schema kind: ${J.kind} for ${G.constructor.name}`)}function eA(W,G,H,J=eg){let Q=new J(H),ee=eO(W,G,Q);if(Q.offset<H.length)throw new ey(`Unexpected ${H.length-Q.offset} bytes after deserialized data`);return ee}function eP(W,G,H,J=eg){let Q=new J(H);return eO(W,G,Q)}et([em],eg.prototype,"readU8",null),et([em],eg.prototype,"readU16",null),et([em],eg.prototype,"readU32",null),et([em],eg.prototype,"readU64",null),et([em],eg.prototype,"readU128",null),et([em],eg.prototype,"readU256",null),et([em],eg.prototype,"readU512",null),et([em],eg.prototype,"readString",null),et([em],eg.prototype,"readFixedArray",null),et([em],eg.prototype,"readArray",null),G.BinaryReader=eg,G.serialize=eS,G.deserialize=eA,G.deserializeUnchecked=eP},75236:function(W,G,H){var J=H(22165),Q="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";W.exports=J(Q)},55590:function(W,G,H){H(71412).check("es5")},71412:function(W,G,H){H(28548),W.exports=H(1086)},87676:function(W){var G=function(){this.tests={},this.cache={}};G.prototype={constructor:G,define:function(W,G){if("string"!=typeof W||!(G instanceof Function))throw Error("Invalid capability definition.");if(this.tests[W])throw Error('Duplicated capability definition by "'+W+'".');this.tests[W]=G},check:function(W){if(!this.test(W))throw Error('The current environment does not support "'+W+'", therefore we cannot continue.')},test:function(W){if(void 0!==this.cache[W])return this.cache[W];if(!this.tests[W])throw Error('Unknown capability with name "'+W+'".');var G=this.tests[W];return this.cache[W]=!!G(),this.cache[W]}},W.exports=G},28548:function(W,G,H){var J=H(1086),Q=J.define,ee=J.test;Q("strict mode",function(){return void 0===this}),Q("arguments.callee.caller",function(){try{return function(){return arguments.callee.caller}()===arguments.callee}catch(W){return!1}}),Q("es5",function(){return ee("Array.prototype.forEach")&&ee("Array.prototype.map")&&ee("Function.prototype.bind")&&ee("Object.create")&&ee("Object.defineProperties")&&ee("Object.defineProperty")&&ee("Object.prototype.hasOwnProperty")}),Q("Array.prototype.forEach",function(){return Array.prototype.forEach}),Q("Array.prototype.map",function(){return Array.prototype.map}),Q("Function.prototype.bind",function(){return Function.prototype.bind}),Q("Object.create",function(){return Object.create}),Q("Object.defineProperties",function(){return Object.defineProperties}),Q("Object.defineProperty",function(){return Object.defineProperty}),Q("Object.prototype.hasOwnProperty",function(){return Object.prototype.hasOwnProperty}),Q("Error.captureStackTrace",function(){return Error.captureStackTrace}),Q("Error.prototype.stack",function(){try{throw Error()}catch(W){return W.stack||W.stacktrace}})},1086:function(W,G,H){var J=new(H(87676)),Q=function(W){return J.test(W)};Q.define=function(W,G){J.define(W,G)},Q.check=function(W){J.check(W)},Q.test=Q,W.exports=Q},61995:function(W){var G={utf8:{stringToBytes:function(W){return G.bin.stringToBytes(unescape(encodeURIComponent(W)))},bytesToString:function(W){return decodeURIComponent(escape(G.bin.bytesToString(W)))}},bin:{stringToBytes:function(W){for(var G=[],H=0;H<W.length;H++)G.push(255&W.charCodeAt(H));return G},bytesToString:function(W){for(var G=[],H=0;H<W.length;H++)G.push(String.fromCharCode(W[H]));return G.join("")}}};W.exports=G},37077:function(W,G,H){"use strict";var J=H(57966),Q={"text/plain":"Text","text/html":"Url",default:"Text"},ee="Copy to clipboard: #{key}, Enter";function et(W){var G=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return W.replace(/#{\s*key\s*}/g,G)}function eo(W,G){var H,eo,ei,ea,es,eu,ec=!1;G||(G={}),H=G.debug||!1;try{if(ei=J(),ea=document.createRange(),es=document.getSelection(),(eu=document.createElement("span")).textContent=W,eu.ariaHidden="true",eu.style.all="unset",eu.style.position="fixed",eu.style.top=0,eu.style.clip="rect(0, 0, 0, 0)",eu.style.whiteSpace="pre",eu.style.webkitUserSelect="text",eu.style.MozUserSelect="text",eu.style.msUserSelect="text",eu.style.userSelect="text",eu.addEventListener("copy",function(J){if(J.stopPropagation(),G.format){if(J.preventDefault(),void 0===J.clipboardData){H&&console.warn("unable to use e.clipboardData"),H&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var ee=Q[G.format]||Q.default;window.clipboardData.setData(ee,W)}else J.clipboardData.clearData(),J.clipboardData.setData(G.format,W)}G.onCopy&&(J.preventDefault(),G.onCopy(J.clipboardData))}),document.body.appendChild(eu),ea.selectNodeContents(eu),es.addRange(ea),!document.execCommand("copy"))throw Error("copy command was unsuccessful");ec=!0}catch(J){H&&console.error("unable to copy using execCommand: ",J),H&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(G.format||"text",W),G.onCopy&&G.onCopy(window.clipboardData),ec=!0}catch(J){H&&console.error("unable to copy using clipboardData: ",J),H&&console.error("falling back to prompt"),eo=et("message"in G?G.message:ee),window.prompt(eo,W)}}finally{es&&("function"==typeof es.removeRange?es.removeRange(ea):es.removeAllRanges()),eu&&document.body.removeChild(eu),ei()}return ec}W.exports=eo},44507:function(W){!function(){var G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",H={rotl:function(W,G){return W<<G|W>>>32-G},rotr:function(W,G){return W<<32-G|W>>>G},endian:function(W){if(W.constructor==Number)return 16711935&H.rotl(W,8)|4278255360&H.rotl(W,24);for(var G=0;G<W.length;G++)W[G]=H.endian(W[G]);return W},randomBytes:function(W){for(var G=[];W>0;W--)G.push(Math.floor(256*Math.random()));return G},bytesToWords:function(W){for(var G=[],H=0,J=0;H<W.length;H++,J+=8)G[J>>>5]|=W[H]<<24-J%32;return G},wordsToBytes:function(W){for(var G=[],H=0;H<32*W.length;H+=8)G.push(W[H>>>5]>>>24-H%32&255);return G},bytesToHex:function(W){for(var G=[],H=0;H<W.length;H++)G.push((W[H]>>>4).toString(16)),G.push((15&W[H]).toString(16));return G.join("")},hexToBytes:function(W){for(var G=[],H=0;H<W.length;H+=2)G.push(parseInt(W.substr(H,2),16));return G},bytesToBase64:function(W){for(var H=[],J=0;J<W.length;J+=3)for(var Q=W[J]<<16|W[J+1]<<8|W[J+2],ee=0;ee<4;ee++)8*J+6*ee<=8*W.length?H.push(G.charAt(Q>>>6*(3-ee)&63)):H.push("=");return H.join("")},base64ToBytes:function(W){W=W.replace(/[^A-Z0-9+\/]/ig,"");for(var H=[],J=0,Q=0;J<W.length;Q=++J%4)0!=Q&&H.push((G.indexOf(W.charAt(J-1))&Math.pow(2,-2*Q+8)-1)<<2*Q|G.indexOf(W.charAt(J))>>>6-2*Q);return H}};W.exports=H}()},77372:function(W){"use strict";var G="%[a-f0-9]{2}",H=RegExp("("+G+")|([^%]+?)","gi"),J=RegExp("("+G+")+","gi");function Q(W,G){try{return[decodeURIComponent(W.join(""))]}catch(W){}if(1===W.length)return W;G=G||1;var H=W.slice(0,G),J=W.slice(G);return Array.prototype.concat.call([],Q(H),Q(J))}function ee(W){try{return decodeURIComponent(W)}catch(ee){for(var G=W.match(H)||[],J=1;J<G.length;J++)G=(W=Q(G,J).join("")).match(H)||[];return W}}function et(W){for(var G={"%FE%FF":"��","%FF%FE":"��"},H=J.exec(W);H;){try{G[H[0]]=decodeURIComponent(H[0])}catch(W){var Q=ee(H[0]);Q!==H[0]&&(G[H[0]]=Q)}H=J.exec(W)}G["%C2"]="�";for(var et=Object.keys(G),eo=0;eo<et.length;eo++){var ei=et[eo];W=W.replace(RegExp(ei,"g"),G[ei])}return W}W.exports=function(W){if("string"!=typeof W)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof W+"`");try{return W=W.replace(/\+/g," "),decodeURIComponent(W)}catch(G){return et(W)}}},21909:function(W){"use strict";function G(W){if(!W)throw TypeError("argument namespace is required");function G(W){}return G._file=void 0,G._ignored=!0,G._namespace=W,G._traced=!1,G._warned=Object.create(null),G.function=H,G.property=J,G}function H(W,G){if("function"!=typeof W)throw TypeError("argument fn must be a function");return W}function J(W,G,H){if(!W||"object"!=typeof W&&"function"!=typeof W)throw TypeError("argument obj must be object");var J=Object.getOwnPropertyDescriptor(W,G);if(!J)throw TypeError("must call property on owner object");if(!J.configurable)throw TypeError("property must be configurable")}/*!
 * depd
 * Copyright(c) 2015 Douglas Christopher Wilson
 * MIT Licensed
 */W.exports=G},73492:function(W){"use strict";function G(W){if(!W)throw TypeError("argument namespace is required");function G(W){}return G._file=void 0,G._ignored=!0,G._namespace=W,G._traced=!1,G._warned=Object.create(null),G.function=H,G.property=J,G}function H(W,G){if("function"!=typeof W)throw TypeError("argument fn must be a function");return W}function J(W,G,H){if(!W||"object"!=typeof W&&"function"!=typeof W)throw TypeError("argument obj must be object");var J=Object.getOwnPropertyDescriptor(W,G);if(!J)throw TypeError("must call property on owner object");if(!J.configurable)throw TypeError("property must be configurable")}/*!
 * depd
 * Copyright(c) 2015 Douglas Christopher Wilson
 * MIT Licensed
 */W.exports=G},13526:function(W){"use strict";var G={single_source_shortest_paths:function(W,H,J){var Q,ee,et,eo,ei,ea,es,eu={},ec={};ec[H]=0;var ef=G.PriorityQueue.make();for(ef.push(H,0);!ef.empty();)for(et in ee=(Q=ef.pop()).value,eo=Q.cost,ei=W[ee]||{})ei.hasOwnProperty(et)&&(ea=eo+ei[et],es=ec[et],(void 0===ec[et]||es>ea)&&(ec[et]=ea,ef.push(et,ea),eu[et]=ee));if(void 0!==J&&void 0===ec[J])throw Error(["Could not find a path from ",H," to ",J,"."].join(""));return eu},extract_shortest_path_from_predecessor_list:function(W,G){for(var H,J=[],Q=G;Q;)J.push(Q),H=W[Q],Q=W[Q];return J.reverse(),J},find_path:function(W,H,J){var Q=G.single_source_shortest_paths(W,H,J);return G.extract_shortest_path_from_predecessor_list(Q,J)},PriorityQueue:{make:function(W){var H,J=G.PriorityQueue,Q={};for(H in W=W||{},J)J.hasOwnProperty(H)&&(Q[H]=J[H]);return Q.queue=[],Q.sorter=W.sorter||J.default_sorter,Q},default_sorter:function(W,G){return W.cost-G.cost},push:function(W,G){var H={value:W,cost:G};this.queue.push(H),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};W.exports=G},62981:function(W){"use strict";W.exports=function(W){for(var G=[],H=W.length,J=0;J<H;J++){var Q=W.charCodeAt(J);if(Q>=55296&&Q<=56319&&H>J+1){var ee=W.charCodeAt(J+1);ee>=56320&&ee<=57343&&(Q=(Q-55296)*1024+ee-56320+65536,J+=1)}if(Q<128){G.push(Q);continue}if(Q<2048){G.push(Q>>6|192),G.push(63&Q|128);continue}if(Q<55296||Q>=57344&&Q<65536){G.push(Q>>12|224),G.push(Q>>6&63|128),G.push(63&Q|128);continue}if(Q>=65536&&Q<=1114111){G.push(Q>>18|240),G.push(Q>>12&63|128),G.push(Q>>6&63|128),G.push(63&Q|128);continue}G.push(239,191,189)}return new Uint8Array(G).buffer}},83324:function(W,G,H){W.exports=H(38118)},38118:function(W,G,H){H(55590);var J,Q=H(71412);J=H(Q("Error.captureStackTrace")?1732:Q("Error.prototype.stack")?6198:34943),W.exports=J()},85242:function(W,G,H){var J=H(10558).Class,Q=H(10558).abstractMethod,ee=J(Object,{prototype:{init:J.prototype.merge,frameString:void 0,toString:function(){return this.frameString},functionValue:void 0,getThis:Q,getTypeName:Q,getFunction:function(){return this.functionValue},getFunctionName:Q,getMethodName:Q,getFileName:Q,getLineNumber:Q,getColumnNumber:Q,getEvalOrigin:Q,isTopLevel:Q,isEval:Q,isNative:Q,isConstructor:Q}});W.exports=ee},69470:function(W,G,H){var J=H(10558).Class,Q=H(85242),ee=H(17213).cache,et=J(Object,{prototype:{stackParser:null,frameParser:null,locationParsers:null,constructor:function(W){J.prototype.merge.call(this,W)},getFrames:function(W,G){for(var H=[],J=0,Q=W.length;J<Q;++J)H[J]=this.getFrame(W[J],G[J]);return H},getFrame:function(W,G){return new Q({frameString:W,functionValue:G})}}});W.exports={getClass:ee(function(){return et}),getInstance:ee(function(){return new(this.getClass())})}},76888:function(W,G,H){var J=H(10558).Class,Q=H(10558).abstractMethod,ee=H(17213).eachCombination,et=H(17213).cache,eo=H(71412),ei=J(Object,{prototype:{captureFrameStrings:function(W){var G=this.createError();W.unshift(this.captureFrameStrings),W.unshift(this.createError);var H=this.getFrameStrings(G).slice(W.length),J=[];if(eo("arguments.callee.caller")){var Q=[this.createError,this.captureFrameStrings];try{for(var ee=arguments.callee;ee=ee.caller;)Q.push(ee)}catch(W){}J=Q.slice(W.length)}return{frameStrings:H,functionValues:J}},getFrameStrings:function(W){var G=W.message||"",H=W.name||"",J=this.getStackString(W);if(void 0!==J){var Q=J.split("\n"),ee=0,et=Q.length;return this.hasHeader&&(ee+=H.split("\n").length+G.split("\n").length-1),this.hasFooter&&(et-=1),Q.slice(ee,et)}},createError:Q,getStackString:Q,hasHeader:void 0,hasFooter:void 0}}),ea=J(Object,{prototype:{calibrateClass:function(W){return this.calibrateMethods(W)&&this.calibrateEnvelope(W)},calibrateMethods:function(W){try{ee([[function(W){return Error(W)},function(W){try{throw Error(W)}catch(W){return W}}],[function(W){return W.stack},function(W){return W.stacktrace}]],function(W,G){if(G(W()))throw{getStackString:G,createError:W}})}catch(G){return J.merge.call(W,{prototype:G}),!0}return!1},calibrateEnvelope:function(W){var G=(0,W.prototype.getStackString)((0,W.prototype.createError)("marker")).split("\n");return J.merge.call(W,{prototype:{hasHeader:/marker/.test(G[0]),hasFooter:""===G[G.length-1]}}),!0}}});W.exports={getClass:et(function(){var W;if(W)return W;if(W=J(ei,{}),!new ea().calibrateClass(W))throw Error("Cannot read Error.prototype.stack in this environment.");return W}),getInstance:et(function(){return new(this.getClass())})}},6198:function(W,G,H){var J=H(76888),Q=H(69470),ee=H(17213).cache,et=H(55785);W.exports=function(){return Error.captureStackTrace=function W(G,H){var eo,ei=[W];H&&ei.push(H);var ea=J.getInstance().captureFrameStrings(ei);Object.defineProperties(G,{stack:{configurable:!0,get:ee(function(){return(Error.prepareStackTrace||et)(G,Q.getInstance().getFrames(ea.frameStrings,ea.functionValues),eo)})},cachedStack:{configurable:!0,writable:!0,enumerable:!1,value:!0}})},Error.getStackTrace=function(W){if(W.cachedStack)return W.stack;var G,H=J.getInstance().getFrameStrings(W),ee=[];H?ee=Q.getInstance().getFrames(H,[]):G=["The stack is not readable by unthrown errors in this environment."];var eo=(Error.prepareStackTrace||et)(W,ee,G);if(H)try{Object.defineProperties(W,{stack:{configurable:!0,writable:!0,enumerable:!1,value:eo},cachedStack:{configurable:!0,writable:!0,enumerable:!1,value:!0}})}catch(W){}return eo},{prepareStackTrace:et}}},55785:function(W){var G=function(W,G,H){var J="";if(J+=(W.name||"Error")+": "+(W.message||""),H instanceof Array)for(var Q in H)J+="\n   # "+H[Q];for(var ee in G)J+="\n   at "+G[ee].toString();return J};W.exports=G},34943:function(W,G,H){var J=H(17213).cache,Q=H(55785);W.exports=function(){return Error.captureStackTrace=function(W,G){Object.defineProperties(W,{stack:{configurable:!0,get:J(function(){return(Error.prepareStackTrace||Q)(W,[])})},cachedStack:{configurable:!0,writable:!0,enumerable:!1,value:!0}})},Error.getStackTrace=function(W){if(W.cachedStack)return W.stack;var G=(Error.prepareStackTrace||Q)(W,[]);try{Object.defineProperties(W,{stack:{configurable:!0,writable:!0,enumerable:!1,value:G},cachedStack:{configurable:!0,writable:!0,enumerable:!1,value:!0}})}catch(W){}return G},{prepareStackTrace:Q}}},1732:function(W,G,H){var J=H(55785);W.exports=function(){return Error.getStackTrace=function(W){return W.stack},{prepareStackTrace:J}}},68495:function(W){"use strict";var G,H="object"==typeof Reflect?Reflect:null,J=H&&"function"==typeof H.apply?H.apply:function(W,G,H){return Function.prototype.apply.call(W,G,H)};function Q(W){console&&console.warn&&console.warn(W)}G=H&&"function"==typeof H.ownKeys?H.ownKeys:Object.getOwnPropertySymbols?function(W){return Object.getOwnPropertyNames(W).concat(Object.getOwnPropertySymbols(W))}:function(W){return Object.getOwnPropertyNames(W)};var ee=Number.isNaN||function(W){return W!=W};function et(){et.init.call(this)}W.exports=et,W.exports.once=ev,et.EventEmitter=et,et.prototype._events=void 0,et.prototype._eventsCount=0,et.prototype._maxListeners=void 0;var eo=10;function ei(W){if("function"!=typeof W)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof W)}function ea(W){return void 0===W._maxListeners?et.defaultMaxListeners:W._maxListeners}function es(W,G,H,J){if(ei(H),void 0===(et=W._events)?(et=W._events=Object.create(null),W._eventsCount=0):(void 0!==et.newListener&&(W.emit("newListener",G,H.listener?H.listener:H),et=W._events),eo=et[G]),void 0===eo)eo=et[G]=H,++W._eventsCount;else if("function"==typeof eo?eo=et[G]=J?[H,eo]:[eo,H]:J?eo.unshift(H):eo.push(H),(ee=ea(W))>0&&eo.length>ee&&!eo.warned){eo.warned=!0;var ee,et,eo,es=Error("Possible EventEmitter memory leak detected. "+eo.length+" "+String(G)+" listeners added. Use emitter.setMaxListeners() to increase limit");es.name="MaxListenersExceededWarning",es.emitter=W,es.type=G,es.count=eo.length,Q(es)}return W}function eu(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ec(W,G,H){var J={fired:!1,wrapFn:void 0,target:W,type:G,listener:H},Q=eu.bind(J);return Q.listener=H,J.wrapFn=Q,Q}function ef(W,G,H){var J=W._events;if(void 0===J)return[];var Q=J[G];return void 0===Q?[]:"function"==typeof Q?H?[Q.listener||Q]:[Q]:H?ey(Q):eh(Q,Q.length)}function ed(W){var G=this._events;if(void 0!==G){var H=G[W];if("function"==typeof H)return 1;if(void 0!==H)return H.length}return 0}function eh(W,G){for(var H=Array(G),J=0;J<G;++J)H[J]=W[J];return H}function ep(W,G){for(;G+1<W.length;G++)W[G]=W[G+1];W.pop()}function ey(W){for(var G=Array(W.length),H=0;H<G.length;++H)G[H]=W[H].listener||W[H];return G}function ev(W,G){return new Promise(function(H,J){function Q(H){W.removeListener(G,ee),J(H)}function ee(){"function"==typeof W.removeListener&&W.removeListener("error",Q),H([].slice.call(arguments))}eg(W,G,ee,{once:!0}),"error"!==G&&em(W,Q,{once:!0})})}function em(W,G,H){"function"==typeof W.on&&eg(W,"error",G,H)}function eg(W,G,H,J){if("function"==typeof W.on)J.once?W.once(G,H):W.on(G,H);else if("function"==typeof W.addEventListener)W.addEventListener(G,function Q(ee){J.once&&W.removeEventListener(G,Q),H(ee)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof W)}Object.defineProperty(et,"defaultMaxListeners",{enumerable:!0,get:function(){return eo},set:function(W){if("number"!=typeof W||W<0||ee(W))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+W+".");eo=W}}),et.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},et.prototype.setMaxListeners=function(W){if("number"!=typeof W||W<0||ee(W))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+W+".");return this._maxListeners=W,this},et.prototype.getMaxListeners=function(){return ea(this)},et.prototype.emit=function(W){for(var G=[],H=1;H<arguments.length;H++)G.push(arguments[H]);var Q="error"===W,ee=this._events;if(void 0!==ee)Q=Q&&void 0===ee.error;else if(!Q)return!1;if(Q){if(G.length>0&&(et=G[0]),et instanceof Error)throw et;var et,eo=Error("Unhandled error."+(et?" ("+et.message+")":""));throw eo.context=et,eo}var ei=ee[W];if(void 0===ei)return!1;if("function"==typeof ei)J(ei,this,G);else for(var ea=ei.length,es=eh(ei,ea),H=0;H<ea;++H)J(es[H],this,G);return!0},et.prototype.addListener=function(W,G){return es(this,W,G,!1)},et.prototype.on=et.prototype.addListener,et.prototype.prependListener=function(W,G){return es(this,W,G,!0)},et.prototype.once=function(W,G){return ei(G),this.on(W,ec(this,W,G)),this},et.prototype.prependOnceListener=function(W,G){return ei(G),this.prependListener(W,ec(this,W,G)),this},et.prototype.removeListener=function(W,G){var H,J,Q,ee,et;if(ei(G),void 0===(J=this._events)||void 0===(H=J[W]))return this;if(H===G||H.listener===G)0==--this._eventsCount?this._events=Object.create(null):(delete J[W],J.removeListener&&this.emit("removeListener",W,H.listener||G));else if("function"!=typeof H){for(Q=-1,ee=H.length-1;ee>=0;ee--)if(H[ee]===G||H[ee].listener===G){et=H[ee].listener,Q=ee;break}if(Q<0)return this;0===Q?H.shift():ep(H,Q),1===H.length&&(J[W]=H[0]),void 0!==J.removeListener&&this.emit("removeListener",W,et||G)}return this},et.prototype.off=et.prototype.removeListener,et.prototype.removeAllListeners=function(W){var G,H,J;if(void 0===(H=this._events))return this;if(void 0===H.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==H[W]&&(0==--this._eventsCount?this._events=Object.create(null):delete H[W]),this;if(0==arguments.length){var Q,ee=Object.keys(H);for(J=0;J<ee.length;++J)"removeListener"!==(Q=ee[J])&&this.removeAllListeners(Q);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(G=H[W]))this.removeListener(W,G);else if(void 0!==G)for(J=G.length-1;J>=0;J--)this.removeListener(W,G[J]);return this},et.prototype.listeners=function(W){return ef(this,W,!0)},et.prototype.rawListeners=function(W){return ef(this,W,!1)},et.listenerCount=function(W,G){return"function"==typeof W.listenerCount?W.listenerCount(G):ed.call(W,G)},et.prototype.listenerCount=ed,et.prototype.eventNames=function(){return this._eventsCount>0?G(this._events):[]}},95087:function(W){"use strict";W.exports=function W(G,H){if(G===H)return!0;if(G&&H&&"object"==typeof G&&"object"==typeof H){if(G.constructor!==H.constructor)return!1;if(Array.isArray(G)){if((J=G.length)!=H.length)return!1;for(Q=J;0!=Q--;)if(!W(G[Q],H[Q]))return!1;return!0}if(G.constructor===RegExp)return G.source===H.source&&G.flags===H.flags;if(G.valueOf!==Object.prototype.valueOf)return G.valueOf()===H.valueOf();if(G.toString!==Object.prototype.toString)return G.toString()===H.toString();if((J=(ee=Object.keys(G)).length)!==Object.keys(H).length)return!1;for(Q=J;0!=Q--;)if(!Object.prototype.hasOwnProperty.call(H,ee[Q]))return!1;for(Q=J;0!=Q--;){var J,Q,ee,et=ee[Q];if(!W(G[et],H[et]))return!1}return!0}return G!=G&&H!=H}},65194:function(W){"use strict";W.exports=function(W,G){for(var H={},J=Object.keys(W),Q=Array.isArray(G),ee=0;ee<J.length;ee++){var et=J[ee],eo=W[et];(Q?-1!==G.indexOf(et):G(et,eo,W))&&(H[et]=eo)}return H}},91138:function(W,G,H){"use strict";/*!
 * http-errors
 * Copyright(c) 2014 Jonathan Ong
 * Copyright(c) 2016 Douglas Christopher Wilson
 * MIT Licensed
 */var J=H(21909)("http-errors"),Q=H(84398),ee=H(74626),et=H(89790),eo=H(62454);function ei(W){return Number(String(W).charAt(0)+"00")}function ea(){for(var W,G,H=500,Q={},et=0;et<arguments.length;et++){var eo=arguments[et];if(eo instanceof Error){H=(W=eo).status||W.statusCode||H;continue}switch(typeof eo){case"string":G=eo;break;case"number":H=eo,0!==et&&J("non-first-argument status code; replace with createError("+eo+", ...)");break;case"object":Q=eo}}"number"==typeof H&&(H<400||H>=600)&&J("non-error status code; use only 4xx or 5xx status codes"),("number"!=typeof H||!ee[H]&&(H<400||H>=600))&&(H=500);var es=ea[H]||ea[ei(H)];for(var eu in W||Error.captureStackTrace(W=es?new es(G):Error(G||ee[H]),ea),es&&W instanceof es&&W.status===H||(W.expose=H<500,W.status=W.statusCode=H),Q)"status"!==eu&&"statusCode"!==eu&&(W[eu]=Q[eu]);return W}function es(){function W(){throw TypeError("cannot construct abstract class")}return et(W,Error),W}function eu(W,G,H){var J=ep(G);function eo(W){var G=null!=W?W:ee[H],et=Error(G);return Error.captureStackTrace(et,eo),Q(et,eo.prototype),Object.defineProperty(et,"message",{enumerable:!0,configurable:!0,value:G,writable:!0}),Object.defineProperty(et,"name",{enumerable:!1,configurable:!0,value:J,writable:!0}),et}return et(eo,W),ed(eo,J),eo.prototype.status=H,eo.prototype.statusCode=H,eo.prototype.expose=!0,eo}function ec(W){return function(G){return!!G&&"object"==typeof G&&(G instanceof W||G instanceof Error&&"boolean"==typeof G.expose&&"number"==typeof G.statusCode&&G.status===G.statusCode)}}function ef(W,G,H){var J=ep(G);function eo(W){var G=null!=W?W:ee[H],et=Error(G);return Error.captureStackTrace(et,eo),Q(et,eo.prototype),Object.defineProperty(et,"message",{enumerable:!0,configurable:!0,value:G,writable:!0}),Object.defineProperty(et,"name",{enumerable:!1,configurable:!0,value:J,writable:!0}),et}return et(eo,W),ed(eo,J),eo.prototype.status=H,eo.prototype.statusCode=H,eo.prototype.expose=!1,eo}function ed(W,G){var H=Object.getOwnPropertyDescriptor(W,"name");H&&H.configurable&&(H.value=G,Object.defineProperty(W,"name",H))}function eh(W,G,H){G.forEach(function(G){var J,Q=eo(ee[G]);switch(ei(G)){case 400:J=eu(H,Q,G);break;case 500:J=ef(H,Q,G)}J&&(W[G]=J,W[Q]=J)}),W["I'mateapot"]=J.function(W.ImATeapot,'"I\'mateapot"; use "ImATeapot" instead')}function ep(W){return"Error"!==W.substr(-5)?W+"Error":W}W.exports=ea,W.exports.HttpError=es(),W.exports.isHttpError=ec(W.exports.HttpError),eh(W.exports,ee.codes,W.exports.HttpError)},89790:function(W){"function"==typeof Object.create?W.exports=function(W,G){G&&(W.super_=G,W.prototype=Object.create(G.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}))}:W.exports=function(W,G){if(G){W.super_=G;var H=function(){};H.prototype=G.prototype,W.prototype=new H,W.prototype.constructor=W}}},36616:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__,process=__webpack_require__(20352);!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,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(W){return"[object Array]"===Object.prototype.toString.call(W)}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(W){return"object"==typeof W&&W.buffer&&W.buffer.constructor===ArrayBuffer});var createOutputMethod=function(W,G){return function(H){return new Sha256(G,!0).update(H)[W]()}},createMethod=function(W){var G=createOutputMethod("hex",W);NODE_JS&&(G=nodeWrap(G,W)),G.create=function(){return new Sha256(W)},G.update=function(W){return G.create().update(W)};for(var H=0;H<OUTPUT_TYPES.length;++H){var J=OUTPUT_TYPES[H];G[J]=createOutputMethod(J,W)}return G},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(W){if("string"==typeof W)return crypto.createHash(algorithm).update(W,"utf8").digest("hex");if(null==W)throw Error(ERROR);return W.constructor===ArrayBuffer&&(W=new Uint8Array(W)),Array.isArray(W)||ArrayBuffer.isView(W)||W.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(W)).digest("hex"):method(W)};return nodeMethod},createHmacOutputMethod=function(W,G){return function(H,J){return new HmacSha256(H,G,!0).update(J)[W]()}},createHmacMethod=function(W){var G=createHmacOutputMethod("hex",W);G.create=function(G){return new HmacSha256(G,W)},G.update=function(W,H){return G.create(W).update(H)};for(var H=0;H<OUTPUT_TYPES.length;++H){var J=OUTPUT_TYPES[H];G[J]=createHmacOutputMethod(J,W)}return G};function Sha256(W,G){G?(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],W?(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=W}function HmacSha256(W,G,H){var J,Q=typeof W;if("string"===Q){var ee,et=[],eo=W.length,ei=0;for(J=0;J<eo;++J)(ee=W.charCodeAt(J))<128?et[ei++]=ee:(ee<2048?et[ei++]=192|ee>>6:(ee<55296||ee>=57344?et[ei++]=224|ee>>12:(ee=65536+((1023&ee)<<10|1023&W.charCodeAt(++J)),et[ei++]=240|ee>>18,et[ei++]=128|ee>>12&63),et[ei++]=128|ee>>6&63),et[ei++]=128|63&ee);W=et}else if("object"===Q){if(null===W)throw Error(ERROR);if(ARRAY_BUFFER&&W.constructor===ArrayBuffer)W=new Uint8Array(W);else if(!Array.isArray(W)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(W)))throw Error(ERROR)}else throw Error(ERROR);W.length>64&&(W=new Sha256(G,!0).update(W).array());var ea=[],es=[];for(J=0;J<64;++J){var eu=W[J]||0;ea[J]=92^eu,es[J]=54^eu}Sha256.call(this,G,H),this.update(es),this.oKeyPad=ea,this.inner=!0,this.sharedMemory=H}Sha256.prototype.update=function(W){if(!this.finalized){var G,H=typeof W;if("string"!==H){if("object"===H){if(null===W)throw Error(ERROR);if(ARRAY_BUFFER&&W.constructor===ArrayBuffer)W=new Uint8Array(W);else if(!Array.isArray(W)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(W)))throw Error(ERROR)}else throw Error(ERROR);G=!0}for(var J,Q,ee=0,et=W.length,eo=this.blocks;ee<et;){if(this.hashed&&(this.hashed=!1,eo[0]=this.block,eo[16]=eo[1]=eo[2]=eo[3]=eo[4]=eo[5]=eo[6]=eo[7]=eo[8]=eo[9]=eo[10]=eo[11]=eo[12]=eo[13]=eo[14]=eo[15]=0),G)for(Q=this.start;ee<et&&Q<64;++ee)eo[Q>>2]|=W[ee]<<SHIFT[3&Q++];else for(Q=this.start;ee<et&&Q<64;++ee)(J=W.charCodeAt(ee))<128?eo[Q>>2]|=J<<SHIFT[3&Q++]:(J<2048?eo[Q>>2]|=(192|J>>6)<<SHIFT[3&Q++]:(J<55296||J>=57344?eo[Q>>2]|=(224|J>>12)<<SHIFT[3&Q++]:(J=65536+((1023&J)<<10|1023&W.charCodeAt(++ee)),eo[Q>>2]|=(240|J>>18)<<SHIFT[3&Q++],eo[Q>>2]|=(128|J>>12&63)<<SHIFT[3&Q++]),eo[Q>>2]|=(128|J>>6&63)<<SHIFT[3&Q++]),eo[Q>>2]|=(128|63&J)<<SHIFT[3&Q++]);this.lastByteIndex=Q,this.bytes+=Q-this.start,Q>=64?(this.block=eo[16],this.start=Q-64,this.hash(),this.hashed=!0):this.start=Q}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 W=this.blocks,G=this.lastByteIndex;W[16]=this.block,W[G>>2]|=EXTRA[3&G],this.block=W[16],G>=56&&(this.hashed||this.hash(),W[0]=this.block,W[16]=W[1]=W[2]=W[3]=W[4]=W[5]=W[6]=W[7]=W[8]=W[9]=W[10]=W[11]=W[12]=W[13]=W[14]=W[15]=0),W[14]=this.hBytes<<3|this.bytes>>>29,W[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,G,H,J,Q,ee,et,eo,ei,ea,es,eu=this.h0,ec=this.h1,ef=this.h2,ed=this.h3,eh=this.h4,ep=this.h5,ey=this.h6,ev=this.h7,em=this.blocks;for(W=16;W<64;++W)G=((Q=em[W-15])>>>7|Q<<25)^(Q>>>18|Q<<14)^Q>>>3,H=((Q=em[W-2])>>>17|Q<<15)^(Q>>>19|Q<<13)^Q>>>10,em[W]=em[W-16]+G+em[W-7]+H<<0;for(W=0,es=ec&ef;W<64;W+=4)this.first?(this.is224?(eo=300032,ev=(Q=em[0]-1413257819)-150054599<<0,ed=Q+24177077<<0):(eo=704751109,ev=(Q=em[0]-210244248)-1521486534<<0,ed=Q+143694565<<0),this.first=!1):(G=(eu>>>2|eu<<30)^(eu>>>13|eu<<19)^(eu>>>22|eu<<10),H=(eh>>>6|eh<<26)^(eh>>>11|eh<<21)^(eh>>>25|eh<<7),J=(eo=eu&ec)^eu&ef^es,Q=ev+H+(et=eh&ep^~eh&ey)+K[W]+em[W],ee=G+J,ev=ed+Q<<0,ed=Q+ee<<0),G=(ed>>>2|ed<<30)^(ed>>>13|ed<<19)^(ed>>>22|ed<<10),H=(ev>>>6|ev<<26)^(ev>>>11|ev<<21)^(ev>>>25|ev<<7),J=(ei=ed&eu)^ed&ec^eo,Q=ey+H+(et=ev&eh^~ev&ep)+K[W+1]+em[W+1],ee=G+J,ey=ef+Q<<0,G=((ef=Q+ee<<0)>>>2|ef<<30)^(ef>>>13|ef<<19)^(ef>>>22|ef<<10),H=(ey>>>6|ey<<26)^(ey>>>11|ey<<21)^(ey>>>25|ey<<7),J=(ea=ef&ed)^ef&eu^ei,Q=ep+H+(et=ey&ev^~ey&eh)+K[W+2]+em[W+2],ee=G+J,ep=ec+Q<<0,G=((ec=Q+ee<<0)>>>2|ec<<30)^(ec>>>13|ec<<19)^(ec>>>22|ec<<10),H=(ep>>>6|ep<<26)^(ep>>>11|ep<<21)^(ep>>>25|ep<<7),J=(es=ec&ef)^ec&ed^ea,Q=eh+H+(et=ep&ey^~ep&ev)+K[W+3]+em[W+3],ee=G+J,eh=eu+Q<<0,eu=Q+ee<<0;this.h0=this.h0+eu<<0,this.h1=this.h1+ec<<0,this.h2=this.h2+ef<<0,this.h3=this.h3+ed<<0,this.h4=this.h4+eh<<0,this.h5=this.h5+ep<<0,this.h6=this.h6+ey<<0,this.h7=this.h7+ev<<0},Sha256.prototype.hex=function(){this.finalize();var W=this.h0,G=this.h1,H=this.h2,J=this.h3,Q=this.h4,ee=this.h5,et=this.h6,eo=this.h7,ei=HEX_CHARS[W>>28&15]+HEX_CHARS[W>>24&15]+HEX_CHARS[W>>20&15]+HEX_CHARS[W>>16&15]+HEX_CHARS[W>>12&15]+HEX_CHARS[W>>8&15]+HEX_CHARS[W>>4&15]+HEX_CHARS[15&W]+HEX_CHARS[G>>28&15]+HEX_CHARS[G>>24&15]+HEX_CHARS[G>>20&15]+HEX_CHARS[G>>16&15]+HEX_CHARS[G>>12&15]+HEX_CHARS[G>>8&15]+HEX_CHARS[G>>4&15]+HEX_CHARS[15&G]+HEX_CHARS[H>>28&15]+HEX_CHARS[H>>24&15]+HEX_CHARS[H>>20&15]+HEX_CHARS[H>>16&15]+HEX_CHARS[H>>12&15]+HEX_CHARS[H>>8&15]+HEX_CHARS[H>>4&15]+HEX_CHARS[15&H]+HEX_CHARS[J>>28&15]+HEX_CHARS[J>>24&15]+HEX_CHARS[J>>20&15]+HEX_CHARS[J>>16&15]+HEX_CHARS[J>>12&15]+HEX_CHARS[J>>8&15]+HEX_CHARS[J>>4&15]+HEX_CHARS[15&J]+HEX_CHARS[Q>>28&15]+HEX_CHARS[Q>>24&15]+HEX_CHARS[Q>>20&15]+HEX_CHARS[Q>>16&15]+HEX_CHARS[Q>>12&15]+HEX_CHARS[Q>>8&15]+HEX_CHARS[Q>>4&15]+HEX_CHARS[15&Q]+HEX_CHARS[ee>>28&15]+HEX_CHARS[ee>>24&15]+HEX_CHARS[ee>>20&15]+HEX_CHARS[ee>>16&15]+HEX_CHARS[ee>>12&15]+HEX_CHARS[ee>>8&15]+HEX_CHARS[ee>>4&15]+HEX_CHARS[15&ee]+HEX_CHARS[et>>28&15]+HEX_CHARS[et>>24&15]+HEX_CHARS[et>>20&15]+HEX_CHARS[et>>16&15]+HEX_CHARS[et>>12&15]+HEX_CHARS[et>>8&15]+HEX_CHARS[et>>4&15]+HEX_CHARS[15&et];return this.is224||(ei+=HEX_CHARS[eo>>28&15]+HEX_CHARS[eo>>24&15]+HEX_CHARS[eo>>20&15]+HEX_CHARS[eo>>16&15]+HEX_CHARS[eo>>12&15]+HEX_CHARS[eo>>8&15]+HEX_CHARS[eo>>4&15]+HEX_CHARS[15&eo]),ei},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var W=this.h0,G=this.h1,H=this.h2,J=this.h3,Q=this.h4,ee=this.h5,et=this.h6,eo=this.h7,ei=[W>>24&255,W>>16&255,W>>8&255,255&W,G>>24&255,G>>16&255,G>>8&255,255&G,H>>24&255,H>>16&255,H>>8&255,255&H,J>>24&255,J>>16&255,J>>8&255,255&J,Q>>24&255,Q>>16&255,Q>>8&255,255&Q,ee>>24&255,ee>>16&255,ee>>8&255,255&ee,et>>24&255,et>>16&255,et>>8&255,255&et];return this.is224||ei.push(eo>>24&255,eo>>16&255,eo>>8&255,255&eo),ei},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var W=new ArrayBuffer(this.is224?28:32),G=new DataView(W);return G.setUint32(0,this.h0),G.setUint32(4,this.h1),G.setUint32(8,this.h2),G.setUint32(12,this.h3),G.setUint32(16,this.h4),G.setUint32(20,this.h5),G.setUint32(24,this.h6),this.is224||G.setUint32(28,this.h7),W},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var W=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(W),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=(function(){return exports}).call(exports,__webpack_require__,exports,module))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}()},52435:function(W){"use strict";var G=W.exports=function(W,G,J){"function"==typeof G&&(J=G,G={});var Q="function"==typeof(J=G.cb||J)?J:J.pre||function(){};H(G,Q,J.post||function(){},W,"",W)};function H(W,Q,ee,et,eo,ei,ea,es,eu,ec){if(et&&"object"==typeof et&&!Array.isArray(et)){for(var ef in Q(et,eo,ei,ea,es,eu,ec),et){var ed=et[ef];if(Array.isArray(ed)){if(ef in G.arrayKeywords)for(var eh=0;eh<ed.length;eh++)H(W,Q,ee,ed[eh],eo+"/"+ef+"/"+eh,ei,eo,ef,et,eh)}else if(ef in G.propsKeywords){if(ed&&"object"==typeof ed)for(var ep in ed)H(W,Q,ee,ed[ep],eo+"/"+ef+"/"+J(ep),ei,eo,ef,et,ep)}else(ef in G.keywords||W.allKeys&&!(ef in G.skipKeywords))&&H(W,Q,ee,ed,eo+"/"+ef,ei,eo,ef,et)}ee(et,eo,ei,ea,es,eu,ec)}}function J(W){return W.replace(/~/g,"~0").replace(/\//g,"~1")}G.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},G.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},G.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},G.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},22794:function(W){!function(G,H){W.exports=H()}(0,function(){"use strict";/*!
   * mustache.js - Logic-less {{mustache}} templates with JavaScript
   * http://github.com/janl/mustache.js
   */var W=Object.prototype.toString,G=Array.isArray||function(G){return"[object Array]"===W.call(G)};function H(W){return"function"==typeof W}function J(W){return G(W)?"array":typeof W}function Q(W){return W.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function ee(W,G){return null!=W&&"object"==typeof W&&G in W}function et(W,G){return null!=W&&"object"!=typeof W&&W.hasOwnProperty&&W.hasOwnProperty(G)}var eo=RegExp.prototype.test;function ei(W,G){return eo.call(W,G)}var ea=/\S/;function es(W){return!ei(ea,W)}var eu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function ec(W){return String(W).replace(/[&<>"'`=\/]/g,function(W){return eu[W]})}var ef=/\s*/,ed=/\s+/,eh=/\s*=/,ep=/\s*\}/,ey=/#|\^|\/|>|\{|&|=|!/;function ev(W,H){if(!W)return[];var J,ee,et,eo,ei,ea,eu,ec,ev,ew=!1,e_=[],eE=[],eO=[],eA=!1,eP=!1,eM="",ej=0;function eT(){if(eA&&!eP)for(;eO.length;)delete eE[eO.pop()];else eO=[];eA=!1,eP=!1}function ex(W){if("string"==typeof W&&(W=W.split(ed,2)),!G(W)||2!==W.length)throw Error("Invalid tags: "+W);J=RegExp(Q(W[0])+"\\s*"),ee=RegExp("\\s*"+Q(W[1])),et=RegExp("\\s*"+Q("}"+W[1]))}ex(H||eS.tags);for(var eI=new eb(W);!eI.eos();){if(eo=eI.pos,ea=eI.scanUntil(J))for(var eC=0,eN=ea.length;eC<eN;++eC)es(eu=ea.charAt(eC))?(eO.push(eE.length),eM+=eu):(eP=!0,ew=!0,eM+=" "),eE.push(["text",eu,eo,eo+1]),eo+=1,"\n"===eu&&(eT(),eM="",ej=0,ew=!1);if(!eI.scan(J))break;if(eA=!0,ei=eI.scan(ey)||"name",eI.scan(ef),"="===ei?(ea=eI.scanUntil(eh),eI.scan(eh),eI.scanUntil(ee)):"{"===ei?(ea=eI.scanUntil(et),eI.scan(ep),eI.scanUntil(ee),ei="&"):ea=eI.scanUntil(ee),!eI.scan(ee))throw Error("Unclosed tag at "+eI.pos);if(ec=">"==ei?[ei,ea,eo,eI.pos,eM,ej,ew]:[ei,ea,eo,eI.pos],ej++,eE.push(ec),"#"===ei||"^"===ei)e_.push(ec);else if("/"===ei){if(!(ev=e_.pop()))throw Error('Unopened section "'+ea+'" at '+eo);if(ev[1]!==ea)throw Error('Unclosed section "'+ev[1]+'" at '+eo)}else"name"===ei||"{"===ei||"&"===ei?eP=!0:"="===ei&&ex(ea)}if(eT(),ev=e_.pop())throw Error('Unclosed section "'+ev[1]+'" at '+eI.pos);return eg(em(eE))}function em(W){for(var G,H,J=[],Q=0,ee=W.length;Q<ee;++Q)(G=W[Q])&&("text"===G[0]&&H&&"text"===H[0]?(H[1]+=G[1],H[3]=G[3]):(J.push(G),H=G));return J}function eg(W){for(var G,H=[],J=H,Q=[],ee=0,et=W.length;ee<et;++ee)switch((G=W[ee])[0]){case"#":case"^":J.push(G),Q.push(G),J=G[4]=[];break;case"/":Q.pop()[5]=G[2],J=Q.length>0?Q[Q.length-1][4]:H;break;default:J.push(G)}return H}function eb(W){this.string=W,this.tail=W,this.pos=0}function ew(W,G){this.view=W,this.cache={".":this.view},this.parent=G}function e_(){this.templateCache={_cache:{},set:function(W,G){this._cache[W]=G},get:function(W){return this._cache[W]},clear:function(){this._cache={}}}}eb.prototype.eos=function(){return""===this.tail},eb.prototype.scan=function(W){var G=this.tail.match(W);if(!G||0!==G.index)return"";var H=G[0];return this.tail=this.tail.substring(H.length),this.pos+=H.length,H},eb.prototype.scanUntil=function(W){var G,H=this.tail.search(W);switch(H){case -1:G=this.tail,this.tail="";break;case 0:G="";break;default:G=this.tail.substring(0,H),this.tail=this.tail.substring(H)}return this.pos+=G.length,G},ew.prototype.push=function(W){return new ew(W,this)},ew.prototype.lookup=function(W){var G=this.cache;if(G.hasOwnProperty(W))J=G[W];else{for(var J,Q,eo,ei,ea=this,es=!1;ea;){if(W.indexOf(".")>0)for(Q=ea.view,eo=W.split("."),ei=0;null!=Q&&ei<eo.length;)ei===eo.length-1&&(es=ee(Q,eo[ei])||et(Q,eo[ei])),Q=Q[eo[ei++]];else Q=ea.view[W],es=ee(ea.view,W);if(es){J=Q;break}ea=ea.parent}G[W]=J}return H(J)&&(J=J.call(this.view)),J},e_.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},e_.prototype.parse=function(W,G){var H=this.templateCache,J=W+":"+(G||eS.tags).join(":"),Q=void 0!==H,ee=Q?H.get(J):void 0;return void 0==ee&&(ee=ev(W,G),Q&&H.set(J,ee)),ee},e_.prototype.render=function(W,G,H,J){var Q=this.getConfigTags(J),ee=this.parse(W,Q),et=G instanceof ew?G:new ew(G,void 0);return this.renderTokens(ee,et,H,W,J)},e_.prototype.renderTokens=function(W,G,H,J,Q){for(var ee,et,eo,ei="",ea=0,es=W.length;ea<es;++ea)eo=void 0,"#"===(et=(ee=W[ea])[0])?eo=this.renderSection(ee,G,H,J,Q):"^"===et?eo=this.renderInverted(ee,G,H,J,Q):">"===et?eo=this.renderPartial(ee,G,H,Q):"&"===et?eo=this.unescapedValue(ee,G):"name"===et?eo=this.escapedValue(ee,G,Q):"text"===et&&(eo=this.rawValue(ee)),void 0!==eo&&(ei+=eo);return ei},e_.prototype.renderSection=function(W,J,Q,ee,et){var eo=this,ei="",ea=J.lookup(W[1]);function es(W){return eo.render(W,J,Q,et)}if(ea){if(G(ea))for(var eu=0,ec=ea.length;eu<ec;++eu)ei+=this.renderTokens(W[4],J.push(ea[eu]),Q,ee,et);else if("object"==typeof ea||"string"==typeof ea||"number"==typeof ea)ei+=this.renderTokens(W[4],J.push(ea),Q,ee,et);else if(H(ea)){if("string"!=typeof ee)throw Error("Cannot use higher-order sections without the original template");null!=(ea=ea.call(J.view,ee.slice(W[3],W[5]),es))&&(ei+=ea)}else ei+=this.renderTokens(W[4],J,Q,ee,et);return ei}},e_.prototype.renderInverted=function(W,H,J,Q,ee){var et=H.lookup(W[1]);if(!et||G(et)&&0===et.length)return this.renderTokens(W[4],H,J,Q,ee)},e_.prototype.indentPartial=function(W,G,H){for(var J=G.replace(/[^ \t]/g,""),Q=W.split("\n"),ee=0;ee<Q.length;ee++)Q[ee].length&&(ee>0||!H)&&(Q[ee]=J+Q[ee]);return Q.join("\n")},e_.prototype.renderPartial=function(W,G,J,Q){if(J){var ee=this.getConfigTags(Q),et=H(J)?J(W[1]):J[W[1]];if(null!=et){var eo=W[6],ei=W[5],ea=W[4],es=et;0==ei&&ea&&(es=this.indentPartial(et,ea,eo));var eu=this.parse(es,ee);return this.renderTokens(eu,G,J,es,Q)}}},e_.prototype.unescapedValue=function(W,G){var H=G.lookup(W[1]);if(null!=H)return H},e_.prototype.escapedValue=function(W,G,H){var J=this.getConfigEscape(H)||eS.escape,Q=G.lookup(W[1]);if(null!=Q)return"number"==typeof Q&&J===eS.escape?String(Q):J(Q)},e_.prototype.rawValue=function(W){return W[1]},e_.prototype.getConfigTags=function(W){return G(W)?W:W&&"object"==typeof W?W.tags:void 0},e_.prototype.getConfigEscape=function(W){return W&&"object"==typeof W&&!G(W)?W.escape:void 0};var eS={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(cache){eE.templateCache=cache},get templateCache(){return eE.templateCache}},eE=new e_;return eS.clearCache=function(){return eE.clearCache()},eS.parse=function(W,G){return eE.parse(W,G)},eS.render=function(W,G,H,Q){if("string"!=typeof W)throw TypeError('Invalid template! Template should be a "string" but "'+J(W)+'" was given as the first argument for mustache#render(template, view, partials)');return eE.render(W,G,H,Q)},eS.escape=ec,eS.Scanner=eb,eS.Context=ew,eS.Writer=e_,eS})},8312:function(W,G){"use strict";var H,J,Q;Object.defineProperty(G,"__esModule",{value:!0}),G.AbiSerializationType=G.AbiFunctionModifier=G.AbiFunctionKind=G.SCHEMA_VERSION=void 0,G.SCHEMA_VERSION="0.3.0",function(W){W.View="view",W.Call="call"}(H=G.AbiFunctionKind||(G.AbiFunctionKind={})),function(W){W.Init="init",W.Private="private",W.Payable="payable"}(J=G.AbiFunctionModifier||(G.AbiFunctionModifier={})),function(W){W.Json="json",W.Borsh="borsh"}(Q=G.AbiSerializationType||(G.AbiSerializationType={}))},57749:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Account=void 0;var J=H(98204);Object.defineProperty(G,"Account",{enumerable:!0,get:function(){return J.Account}})},75145:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.UrlAccountCreator=G.LocalAccountCreator=G.AccountCreator=void 0;var J=H(98204);Object.defineProperty(G,"AccountCreator",{enumerable:!0,get:function(){return J.AccountCreator}}),Object.defineProperty(G,"LocalAccountCreator",{enumerable:!0,get:function(){return J.LocalAccountCreator}}),Object.defineProperty(G,"UrlAccountCreator",{enumerable:!0,get:function(){return J.UrlAccountCreator}})},79964:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.MultisigStateStatus=G.MultisigDeleteRequestRejectionError=G.MULTISIG_CONFIRM_METHODS=G.MULTISIG_CHANGE_METHODS=G.MULTISIG_DEPOSIT=G.MULTISIG_GAS=G.MULTISIG_ALLOWANCE=G.MULTISIG_STORAGE_KEY=G.AccountMultisig=G.Account2FA=void 0;var J=H(98204);Object.defineProperty(G,"Account2FA",{enumerable:!0,get:function(){return J.Account2FA}}),Object.defineProperty(G,"AccountMultisig",{enumerable:!0,get:function(){return J.AccountMultisig}}),Object.defineProperty(G,"MULTISIG_STORAGE_KEY",{enumerable:!0,get:function(){return J.MULTISIG_STORAGE_KEY}}),Object.defineProperty(G,"MULTISIG_ALLOWANCE",{enumerable:!0,get:function(){return J.MULTISIG_ALLOWANCE}}),Object.defineProperty(G,"MULTISIG_GAS",{enumerable:!0,get:function(){return J.MULTISIG_GAS}}),Object.defineProperty(G,"MULTISIG_DEPOSIT",{enumerable:!0,get:function(){return J.MULTISIG_DEPOSIT}}),Object.defineProperty(G,"MULTISIG_CHANGE_METHODS",{enumerable:!0,get:function(){return J.MULTISIG_CHANGE_METHODS}}),Object.defineProperty(G,"MULTISIG_CONFIRM_METHODS",{enumerable:!0,get:function(){return J.MULTISIG_CONFIRM_METHODS}}),Object.defineProperty(G,"MultisigDeleteRequestRejectionError",{enumerable:!0,get:function(){return J.MultisigDeleteRequestRejectionError}}),Object.defineProperty(G,"MultisigStateStatus",{enumerable:!0,get:function(){return J.MultisigStateStatus}})},14371:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.connect=void 0;let Q=H(29826);function ee(W){return J(this,void 0,void 0,function*(){return new Q.Near(W)})}G.connect=ee},52434:function(W,G,H){"use strict";var J=this&&this.__createBinding||(Object.create?function(W,G,H,J){void 0===J&&(J=H);var Q=Object.getOwnPropertyDescriptor(G,H);(!Q||("get"in Q?!G.__esModule:Q.writable||Q.configurable))&&(Q={enumerable:!0,get:function(){return G[H]}}),Object.defineProperty(W,J,Q)}:function(W,G,H,J){void 0===J&&(J=H),W[J]=G[H]}),Q=this&&this.__setModuleDefault||(Object.create?function(W,G){Object.defineProperty(W,"default",{enumerable:!0,value:G})}:function(W,G){W.default=G}),ee=this&&this.__importStar||function(W){if(W&&W.__esModule)return W;var G={};if(null!=W)for(var H in W)"default"!==H&&Object.prototype.hasOwnProperty.call(W,H)&&J(G,W,H);return Q(G,W),G},et=this&&this.__exportStar||function(W,G){for(var H in W)"default"===H||Object.prototype.hasOwnProperty.call(G,H)||J(G,W,H)};Object.defineProperty(G,"__esModule",{value:!0}),G.keyStores=void 0,G.keyStores=ee(H(14818)),et(H(66205),G),et(H(14371),G),H(83324)},66205:function(W,G,H){"use strict";var J=this&&this.__createBinding||(Object.create?function(W,G,H,J){void 0===J&&(J=H);var Q=Object.getOwnPropertyDescriptor(G,H);(!Q||("get"in Q?!G.__esModule:Q.writable||Q.configurable))&&(Q={enumerable:!0,get:function(){return G[H]}}),Object.defineProperty(W,J,Q)}:function(W,G,H,J){void 0===J&&(J=H),W[J]=G[H]}),Q=this&&this.__setModuleDefault||(Object.create?function(W,G){Object.defineProperty(W,"default",{enumerable:!0,value:G})}:function(W,G){W.default=G}),ee=this&&this.__importStar||function(W){if(W&&W.__esModule)return W;var G={};if(null!=W)for(var H in W)"default"!==H&&Object.prototype.hasOwnProperty.call(W,H)&&J(G,W,H);return Q(G,W),G};Object.defineProperty(G,"__esModule",{value:!0}),G.WalletConnection=G.ConnectedWalletAccount=G.Near=G.KeyPair=G.Signer=G.InMemorySigner=G.Contract=G.Connection=G.Account=G.multisig=G.validators=G.transactions=G.utils=G.providers=G.accountCreator=void 0;let et=ee(H(82759));G.providers=et;let eo=ee(H(39606));G.utils=eo;let ei=ee(H(88617));G.transactions=ei;let ea=ee(H(20463));G.validators=ea;let es=H(57749);Object.defineProperty(G,"Account",{enumerable:!0,get:function(){return es.Account}});let eu=ee(H(79964));G.multisig=eu;let ec=ee(H(75145));G.accountCreator=ec;let ef=H(93665);Object.defineProperty(G,"Connection",{enumerable:!0,get:function(){return ef.Connection}});let ed=H(56586);Object.defineProperty(G,"Signer",{enumerable:!0,get:function(){return ed.Signer}}),Object.defineProperty(G,"InMemorySigner",{enumerable:!0,get:function(){return ed.InMemorySigner}});let eh=H(88214);Object.defineProperty(G,"Contract",{enumerable:!0,get:function(){return eh.Contract}});let ep=H(11634);Object.defineProperty(G,"KeyPair",{enumerable:!0,get:function(){return ep.KeyPair}});let ey=H(29826);Object.defineProperty(G,"Near",{enumerable:!0,get:function(){return ey.Near}});let ev=H(29345);Object.defineProperty(G,"ConnectedWalletAccount",{enumerable:!0,get:function(){return ev.ConnectedWalletAccount}}),Object.defineProperty(G,"WalletConnection",{enumerable:!0,get:function(){return ev.WalletConnection}})},93665:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Connection=void 0;var J=H(98204);Object.defineProperty(G,"Connection",{enumerable:!0,get:function(){return J.Connection}})},88214:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Contract=void 0;var J=H(98204);Object.defineProperty(G,"Contract",{enumerable:!0,get:function(){return J.Contract}})},14818:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.MergeKeyStore=G.BrowserLocalStorageKeyStore=G.InMemoryKeyStore=G.KeyStore=void 0;let J=H(69631);Object.defineProperty(G,"KeyStore",{enumerable:!0,get:function(){return J.KeyStore}});let Q=H(53583);Object.defineProperty(G,"InMemoryKeyStore",{enumerable:!0,get:function(){return Q.InMemoryKeyStore}});let ee=H(55254);Object.defineProperty(G,"BrowserLocalStorageKeyStore",{enumerable:!0,get:function(){return ee.BrowserLocalStorageKeyStore}});let et=H(66266);Object.defineProperty(G,"MergeKeyStore",{enumerable:!0,get:function(){return et.MergeKeyStore}})},55254:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.BrowserLocalStorageKeyStore=void 0;var J=H(41472);Object.defineProperty(G,"BrowserLocalStorageKeyStore",{enumerable:!0,get:function(){return J.BrowserLocalStorageKeyStore}})},53583:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.InMemoryKeyStore=void 0;var J=H(37115);Object.defineProperty(G,"InMemoryKeyStore",{enumerable:!0,get:function(){return J.InMemoryKeyStore}})},69631:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.KeyStore=void 0;var J=H(37115);Object.defineProperty(G,"KeyStore",{enumerable:!0,get:function(){return J.KeyStore}})},66266:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.MergeKeyStore=void 0;var J=H(37115);Object.defineProperty(G,"MergeKeyStore",{enumerable:!0,get:function(){return J.MergeKeyStore}})},29826:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Near=void 0;var J=H(33687);Object.defineProperty(G,"Near",{enumerable:!0,get:function(){return J.Near}})},82759:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.ErrorContext=G.TypedError=G.getTransactionLastResult=G.FinalExecutionStatusBasic=G.JsonRpcProvider=G.Provider=void 0;let J=H(85750);Object.defineProperty(G,"Provider",{enumerable:!0,get:function(){return J.Provider}}),Object.defineProperty(G,"getTransactionLastResult",{enumerable:!0,get:function(){return J.getTransactionLastResult}}),Object.defineProperty(G,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return J.FinalExecutionStatusBasic}});let Q=H(19537);Object.defineProperty(G,"JsonRpcProvider",{enumerable:!0,get:function(){return Q.JsonRpcProvider}}),Object.defineProperty(G,"TypedError",{enumerable:!0,get:function(){return Q.TypedError}}),Object.defineProperty(G,"ErrorContext",{enumerable:!0,get:function(){return Q.ErrorContext}})},19537:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.JsonRpcProvider=G.TypedError=G.ErrorContext=void 0;var J=H(96367);Object.defineProperty(G,"ErrorContext",{enumerable:!0,get:function(){return J.ErrorContext}}),Object.defineProperty(G,"TypedError",{enumerable:!0,get:function(){return J.TypedError}});var Q=H(84216);Object.defineProperty(G,"JsonRpcProvider",{enumerable:!0,get:function(){return Q.JsonRpcProvider}})},85750:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.FinalExecutionStatusBasic=G.ExecutionStatusBasic=G.IdType=G.Provider=G.getTransactionLastResult=void 0;var J=H(60077);Object.defineProperty(G,"getTransactionLastResult",{enumerable:!0,get:function(){return J.getTransactionLastResult}});var Q=H(84216);Object.defineProperty(G,"Provider",{enumerable:!0,get:function(){return Q.Provider}});var ee=H(96367);Object.defineProperty(G,"IdType",{enumerable:!0,get:function(){return ee.IdType}}),Object.defineProperty(G,"ExecutionStatusBasic",{enumerable:!0,get:function(){return ee.ExecutionStatusBasic}}),Object.defineProperty(G,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return ee.FinalExecutionStatusBasic}})},56586:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Signer=G.InMemorySigner=void 0;var J=H(14865);Object.defineProperty(G,"InMemorySigner",{enumerable:!0,get:function(){return J.InMemorySigner}}),Object.defineProperty(G,"Signer",{enumerable:!0,get:function(){return J.Signer}})},88617:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.transfer=G.stake=G.functionCallAccessKey=G.functionCall=G.fullAccessKey=G.deployContract=G.deleteKey=G.deleteAccount=G.createAccount=G.addKey=G.encodeDelegateAction=G.encodeSignedDelegate=G.Transaction=G.SignedTransaction=G.Signature=G.signTransaction=G.createTransaction=G.SCHEMA=G.Transfer=G.Stake=G.FunctionCallPermission=G.FunctionCall=G.FullAccessPermission=G.DeployContract=G.DeleteKey=G.DeleteAccount=G.CreateAccount=G.AddKey=G.AccessKeyPermission=G.AccessKey=G.Action=G.stringifyJsonOrBytes=void 0;var J=H(58598);Object.defineProperty(G,"stringifyJsonOrBytes",{enumerable:!0,get:function(){return J.stringifyJsonOrBytes}}),Object.defineProperty(G,"Action",{enumerable:!0,get:function(){return J.Action}}),Object.defineProperty(G,"AccessKey",{enumerable:!0,get:function(){return J.AccessKey}}),Object.defineProperty(G,"AccessKeyPermission",{enumerable:!0,get:function(){return J.AccessKeyPermission}}),Object.defineProperty(G,"AddKey",{enumerable:!0,get:function(){return J.AddKey}}),Object.defineProperty(G,"CreateAccount",{enumerable:!0,get:function(){return J.CreateAccount}}),Object.defineProperty(G,"DeleteAccount",{enumerable:!0,get:function(){return J.DeleteAccount}}),Object.defineProperty(G,"DeleteKey",{enumerable:!0,get:function(){return J.DeleteKey}}),Object.defineProperty(G,"DeployContract",{enumerable:!0,get:function(){return J.DeployContract}}),Object.defineProperty(G,"FullAccessPermission",{enumerable:!0,get:function(){return J.FullAccessPermission}}),Object.defineProperty(G,"FunctionCall",{enumerable:!0,get:function(){return J.FunctionCall}}),Object.defineProperty(G,"FunctionCallPermission",{enumerable:!0,get:function(){return J.FunctionCallPermission}}),Object.defineProperty(G,"Stake",{enumerable:!0,get:function(){return J.Stake}}),Object.defineProperty(G,"Transfer",{enumerable:!0,get:function(){return J.Transfer}}),Object.defineProperty(G,"SCHEMA",{enumerable:!0,get:function(){return J.SCHEMA}}),Object.defineProperty(G,"createTransaction",{enumerable:!0,get:function(){return J.createTransaction}}),Object.defineProperty(G,"signTransaction",{enumerable:!0,get:function(){return J.signTransaction}}),Object.defineProperty(G,"Signature",{enumerable:!0,get:function(){return J.Signature}}),Object.defineProperty(G,"SignedTransaction",{enumerable:!0,get:function(){return J.SignedTransaction}}),Object.defineProperty(G,"Transaction",{enumerable:!0,get:function(){return J.Transaction}}),Object.defineProperty(G,"encodeSignedDelegate",{enumerable:!0,get:function(){return J.encodeSignedDelegate}}),Object.defineProperty(G,"encodeDelegateAction",{enumerable:!0,get:function(){return J.encodeDelegateAction}});let Q=H(58598),ee=(W,G)=>Q.actionCreators.addKey(W,G);G.addKey=ee;let et=()=>Q.actionCreators.createAccount();G.createAccount=et;let eo=W=>Q.actionCreators.deleteAccount(W);G.deleteAccount=eo;let ei=W=>Q.actionCreators.deleteKey(W);G.deleteKey=ei;let ea=W=>Q.actionCreators.deployContract(W);G.deployContract=ea;let es=()=>Q.actionCreators.fullAccessKey();G.fullAccessKey=es;let eu=(W,G,H,J,ee,et)=>Q.actionCreators.functionCall(W,G,H,J,ee,et);G.functionCall=eu;let ec=(W,G,H)=>Q.actionCreators.functionCallAccessKey(W,G,H);G.functionCallAccessKey=ec;let ef=(W,G)=>Q.actionCreators.stake(W,G);G.stake=ef;let ed=W=>Q.actionCreators.transfer(W);G.transfer=ed},53490:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Enum=G.Assignable=void 0;var J=H(96367);Object.defineProperty(G,"Assignable",{enumerable:!0,get:function(){return J.Assignable}});class Q{constructor(W){if(1!==Object.keys(W).length)throw Error("Enum can only take single value");Object.keys(W).map(G=>{this[G]=W[G],this.enum=G})}}G.Enum=Q},91058:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.logWarning=G.TypedError=G.PositionalArgsError=G.ErrorContext=G.ArgumentTypeError=G.UnsupportedSerializationError=G.UnknownArgumentError=G.ConflictingOptions=G.ArgumentSchemaError=void 0;var J=H(98204);Object.defineProperty(G,"ArgumentSchemaError",{enumerable:!0,get:function(){return J.ArgumentSchemaError}}),Object.defineProperty(G,"ConflictingOptions",{enumerable:!0,get:function(){return J.ConflictingOptions}}),Object.defineProperty(G,"UnknownArgumentError",{enumerable:!0,get:function(){return J.UnknownArgumentError}}),Object.defineProperty(G,"UnsupportedSerializationError",{enumerable:!0,get:function(){return J.UnsupportedSerializationError}});var Q=H(96367);Object.defineProperty(G,"ArgumentTypeError",{enumerable:!0,get:function(){return Q.ArgumentTypeError}}),Object.defineProperty(G,"ErrorContext",{enumerable:!0,get:function(){return Q.ErrorContext}}),Object.defineProperty(G,"PositionalArgsError",{enumerable:!0,get:function(){return Q.PositionalArgsError}}),Object.defineProperty(G,"TypedError",{enumerable:!0,get:function(){return Q.TypedError}});var ee=H(60077);Object.defineProperty(G,"logWarning",{enumerable:!0,get:function(){return ee.logWarning}})},43031:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.parseNearAmount=G.formatNearAmount=G.NEAR_NOMINATION_EXP=G.NEAR_NOMINATION=void 0;var J=H(60077);Object.defineProperty(G,"NEAR_NOMINATION",{enumerable:!0,get:function(){return J.NEAR_NOMINATION}}),Object.defineProperty(G,"NEAR_NOMINATION_EXP",{enumerable:!0,get:function(){return J.NEAR_NOMINATION_EXP}}),Object.defineProperty(G,"formatNearAmount",{enumerable:!0,get:function(){return J.formatNearAmount}}),Object.defineProperty(G,"parseNearAmount",{enumerable:!0,get:function(){return J.parseNearAmount}})},39606:function(W,G,H){"use strict";var J=this&&this.__createBinding||(Object.create?function(W,G,H,J){void 0===J&&(J=H);var Q=Object.getOwnPropertyDescriptor(G,H);(!Q||("get"in Q?!G.__esModule:Q.writable||Q.configurable))&&(Q={enumerable:!0,get:function(){return G[H]}}),Object.defineProperty(W,J,Q)}:function(W,G,H,J){void 0===J&&(J=H),W[J]=G[H]}),Q=this&&this.__setModuleDefault||(Object.create?function(W,G){Object.defineProperty(W,"default",{enumerable:!0,value:G})}:function(W,G){W.default=G}),ee=this&&this.__importStar||function(W){if(W&&W.__esModule)return W;var G={};if(null!=W)for(var H in W)"default"!==H&&Object.prototype.hasOwnProperty.call(W,H)&&J(G,W,H);return Q(G,W),G};Object.defineProperty(G,"__esModule",{value:!0}),G.logWarning=G.rpc_errors=G.KeyPairEd25519=G.KeyPair=G.PublicKey=G.format=G.enums=G.web=G.serialize=G.key_pair=void 0;let et=ee(H(11634));G.key_pair=et;let eo=ee(H(82417));G.serialize=eo;let ei=ee(H(90875));G.web=ei;let ea=ee(H(53490));G.enums=ea;let es=ee(H(43031));G.format=es;let eu=ee(H(25281));G.rpc_errors=eu;let ec=H(11634);Object.defineProperty(G,"PublicKey",{enumerable:!0,get:function(){return ec.PublicKey}}),Object.defineProperty(G,"KeyPair",{enumerable:!0,get:function(){return ec.KeyPair}}),Object.defineProperty(G,"KeyPairEd25519",{enumerable:!0,get:function(){return ec.KeyPairEd25519}});let ef=H(91058);Object.defineProperty(G,"logWarning",{enumerable:!0,get:function(){return ef.logWarning}})},11634:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.PublicKey=G.KeyType=G.KeyPairEd25519=G.KeyPair=void 0;var J=H(34990);Object.defineProperty(G,"KeyPair",{enumerable:!0,get:function(){return J.KeyPair}}),Object.defineProperty(G,"KeyPairEd25519",{enumerable:!0,get:function(){return J.KeyPairEd25519}}),Object.defineProperty(G,"KeyType",{enumerable:!0,get:function(){return J.KeyType}}),Object.defineProperty(G,"PublicKey",{enumerable:!0,get:function(){return J.PublicKey}})},25281:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.ServerError=G.getErrorTypeFromErrorMessage=G.formatError=G.parseResultError=G.parseRpcError=void 0;var J=H(60077);Object.defineProperty(G,"parseRpcError",{enumerable:!0,get:function(){return J.parseRpcError}}),Object.defineProperty(G,"parseResultError",{enumerable:!0,get:function(){return J.parseResultError}}),Object.defineProperty(G,"formatError",{enumerable:!0,get:function(){return J.formatError}}),Object.defineProperty(G,"getErrorTypeFromErrorMessage",{enumerable:!0,get:function(){return J.getErrorTypeFromErrorMessage}}),Object.defineProperty(G,"ServerError",{enumerable:!0,get:function(){return J.ServerError}})},82417:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.BinaryReader=G.BinaryWriter=G.BorshError=G.deserialize=G.serialize=G.base_decode=G.base_encode=void 0;var J=H(66012);Object.defineProperty(G,"base_encode",{enumerable:!0,get:function(){return J.baseEncode}}),Object.defineProperty(G,"base_decode",{enumerable:!0,get:function(){return J.baseDecode}}),Object.defineProperty(G,"serialize",{enumerable:!0,get:function(){return J.serialize}}),Object.defineProperty(G,"deserialize",{enumerable:!0,get:function(){return J.deserialize}}),Object.defineProperty(G,"BorshError",{enumerable:!0,get:function(){return J.BorshError}}),Object.defineProperty(G,"BinaryWriter",{enumerable:!0,get:function(){return J.BinaryWriter}}),Object.defineProperty(G,"BinaryReader",{enumerable:!0,get:function(){return J.BinaryReader}})},90875:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.fetchJson=void 0;var J=H(84216);Object.defineProperty(G,"fetchJson",{enumerable:!0,get:function(){return J.fetchJson}})},20463:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.findSeatPrice=G.diffEpochValidators=void 0;var J=H(60077);Object.defineProperty(G,"diffEpochValidators",{enumerable:!0,get:function(){return J.diffEpochValidators}}),Object.defineProperty(G,"findSeatPrice",{enumerable:!0,get:function(){return J.findSeatPrice}})},29345:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.WalletConnection=G.ConnectedWalletAccount=void 0;var J=H(33687);Object.defineProperty(G,"ConnectedWalletAccount",{enumerable:!0,get:function(){return J.ConnectedWalletAccount}}),Object.defineProperty(G,"WalletConnection",{enumerable:!0,get:function(){return J.WalletConnection}})},20352:function(W,G,H){"use strict";var J,Q;W.exports=(null==(J=H.g.process)?void 0:J.env)&&"object"==typeof(null==(Q=H.g.process)?void 0:Q.env)?H.g.process:H(49424)},80854:function(W){var G="/";!function(){var H={675:function(W,G){"use strict";G.byteLength=ea,G.toByteArray=eu,G.fromByteArray=ed;for(var H=[],J=[],Q="undefined"!=typeof Uint8Array?Uint8Array:Array,ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",et=0,eo=ee.length;et<eo;++et)H[et]=ee[et],J[ee.charCodeAt(et)]=et;function ei(W){var G=W.length;if(G%4>0)throw Error("Invalid string. Length must be a multiple of 4");var H=W.indexOf("=");-1===H&&(H=G);var J=H===G?0:4-H%4;return[H,J]}function ea(W){var G=ei(W),H=G[0],J=G[1];return(H+J)*3/4-J}function es(W,G,H){return(G+H)*3/4-H}function eu(W){var G,H,ee=ei(W),et=ee[0],eo=ee[1],ea=new Q(es(W,et,eo)),eu=0,ec=eo>0?et-4:et;for(H=0;H<ec;H+=4)G=J[W.charCodeAt(H)]<<18|J[W.charCodeAt(H+1)]<<12|J[W.charCodeAt(H+2)]<<6|J[W.charCodeAt(H+3)],ea[eu++]=G>>16&255,ea[eu++]=G>>8&255,ea[eu++]=255&G;return 2===eo&&(G=J[W.charCodeAt(H)]<<2|J[W.charCodeAt(H+1)]>>4,ea[eu++]=255&G),1===eo&&(G=J[W.charCodeAt(H)]<<10|J[W.charCodeAt(H+1)]<<4|J[W.charCodeAt(H+2)]>>2,ea[eu++]=G>>8&255,ea[eu++]=255&G),ea}function ec(W){return H[W>>18&63]+H[W>>12&63]+H[W>>6&63]+H[63&W]}function ef(W,G,H){for(var J=[],Q=G;Q<H;Q+=3)J.push(ec((W[Q]<<16&16711680)+(W[Q+1]<<8&65280)+(255&W[Q+2])));return J.join("")}function ed(W){for(var G,J=W.length,Q=J%3,ee=[],et=16383,eo=0,ei=J-Q;eo<ei;eo+=et)ee.push(ef(W,eo,eo+et>ei?ei:eo+et));return 1===Q?ee.push(H[(G=W[J-1])>>2]+H[G<<4&63]+"=="):2===Q&&ee.push(H[(G=(W[J-2]<<8)+W[J-1])>>10]+H[G>>4&63]+H[G<<2&63]+"="),ee.join("")}J["-".charCodeAt(0)]=62,J["_".charCodeAt(0)]=63},72:function(W,G,H){"use strict";/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var J=H(675),Q=H(783),ee="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;G.Buffer=ea,G.SlowBuffer=em,G.INSPECT_MAX_BYTES=50;var et=2147483647;function eo(){try{var W=new Uint8Array(1),G={foo:function(){return 42}};return Object.setPrototypeOf(G,Uint8Array.prototype),Object.setPrototypeOf(W,G),42===W.foo()}catch(W){return!1}}function ei(W){if(W>et)throw RangeError('The value "'+W+'" is invalid for option "size"');var G=new Uint8Array(W);return Object.setPrototypeOf(G,ea.prototype),G}function ea(W,G,H){if("number"==typeof W){if("string"==typeof G)throw TypeError('The "string" argument must be of type string. Received type number');return ef(W)}return es(W,G,H)}function es(W,G,H){if("string"==typeof W)return ed(W,G);if(ArrayBuffer.isView(W))return eh(W);if(null==W)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W);if(eJ(W,ArrayBuffer)||W&&eJ(W.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(eJ(W,SharedArrayBuffer)||W&&eJ(W.buffer,SharedArrayBuffer)))return ep(W,G,H);if("number"==typeof W)throw TypeError('The "value" argument must not be of type number. Received type number');var J=W.valueOf&&W.valueOf();if(null!=J&&J!==W)return ea.from(J,G,H);var Q=ey(W);if(Q)return Q;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof W[Symbol.toPrimitive])return ea.from(W[Symbol.toPrimitive]("string"),G,H);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W)}function eu(W){if("number"!=typeof W)throw TypeError('"size" argument must be of type number');if(W<0)throw RangeError('The value "'+W+'" is invalid for option "size"')}function ec(W,G,H){return(eu(W),W<=0)?ei(W):void 0!==G?"string"==typeof H?ei(W).fill(G,H):ei(W).fill(G):ei(W)}function ef(W){return eu(W),ei(W<0?0:0|ev(W))}function ed(W,G){if(("string"!=typeof G||""===G)&&(G="utf8"),!ea.isEncoding(G))throw TypeError("Unknown encoding: "+G);var H=0|eg(W,G),J=ei(H),Q=J.write(W,G);return Q!==H&&(J=J.slice(0,Q)),J}function eh(W){for(var G=W.length<0?0:0|ev(W.length),H=ei(G),J=0;J<G;J+=1)H[J]=255&W[J];return H}function ep(W,G,H){var J;if(G<0||W.byteLength<G)throw RangeError('"offset" is outside of buffer bounds');if(W.byteLength<G+(H||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(J=void 0===G&&void 0===H?new Uint8Array(W):void 0===H?new Uint8Array(W,G):new Uint8Array(W,G,H),ea.prototype),J}function ey(W){if(ea.isBuffer(W)){var G=0|ev(W.length),H=ei(G);return 0===H.length||W.copy(H,0,0,G),H}return void 0!==W.length?"number"!=typeof W.length||eY(W.length)?ei(0):eh(W):"Buffer"===W.type&&Array.isArray(W.data)?eh(W.data):void 0}function ev(W){if(W>=et)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+et.toString(16)+" bytes");return 0|W}function em(W){return+W!=W&&(W=0),ea.alloc(+W)}function eg(W,G){if(ea.isBuffer(W))return W.length;if(ArrayBuffer.isView(W)||eJ(W,ArrayBuffer))return W.byteLength;if("string"!=typeof W)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof W);var H=W.length,J=arguments.length>2&&!0===arguments[2];if(!J&&0===H)return 0;for(var Q=!1;;)switch(G){case"ascii":case"latin1":case"binary":return H;case"utf8":case"utf-8":return ez(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*H;case"hex":return H>>>1;case"base64":return eH(W).length;default:if(Q)return J?-1:ez(W).length;G=(""+G).toLowerCase(),Q=!0}}function eb(W,G,H){var J=!1;if((void 0===G||G<0)&&(G=0),G>this.length||((void 0===H||H>this.length)&&(H=this.length),H<=0||(H>>>=0)<=(G>>>=0)))return"";for(W||(W="utf8");;)switch(W){case"hex":return eR(this,G,H);case"utf8":case"utf-8":return ex(this,G,H);case"ascii":return eN(this,G,H);case"latin1":case"binary":return ek(this,G,H);case"base64":return eT(this,G,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return eD(this,G,H);default:if(J)throw TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),J=!0}}function ew(W,G,H){var J=W[G];W[G]=W[H],W[H]=J}function e_(W,G,H,J,Q){if(0===W.length)return -1;if("string"==typeof H?(J=H,H=0):H>2147483647?H=2147483647:H<-2147483648&&(H=-2147483648),eY(H=+H)&&(H=Q?0:W.length-1),H<0&&(H=W.length+H),H>=W.length){if(Q)return -1;H=W.length-1}else if(H<0){if(!Q)return -1;H=0}if("string"==typeof G&&(G=ea.from(G,J)),ea.isBuffer(G))return 0===G.length?-1:eS(W,G,H,J,Q);if("number"==typeof G)return(G&=255,"function"==typeof Uint8Array.prototype.indexOf)?Q?Uint8Array.prototype.indexOf.call(W,G,H):Uint8Array.prototype.lastIndexOf.call(W,G,H):eS(W,[G],H,J,Q);throw TypeError("val must be string, number or Buffer")}function eS(W,G,H,J,Q){var ee,et=1,eo=W.length,ei=G.length;if(void 0!==J&&("ucs2"===(J=String(J).toLowerCase())||"ucs-2"===J||"utf16le"===J||"utf-16le"===J)){if(W.length<2||G.length<2)return -1;et=2,eo/=2,ei/=2,H/=2}function ea(W,G){return 1===et?W[G]:W.readUInt16BE(G*et)}if(Q){var es=-1;for(ee=H;ee<eo;ee++)if(ea(W,ee)===ea(G,-1===es?0:ee-es)){if(-1===es&&(es=ee),ee-es+1===ei)return es*et}else -1!==es&&(ee-=ee-es),es=-1}else for(H+ei>eo&&(H=eo-ei),ee=H;ee>=0;ee--){for(var eu=!0,ec=0;ec<ei;ec++)if(ea(W,ee+ec)!==ea(G,ec)){eu=!1;break}if(eu)return ee}return -1}function eE(W,G,H,J){H=Number(H)||0;var Q=W.length-H;J?(J=Number(J))>Q&&(J=Q):J=Q;var ee=G.length;J>ee/2&&(J=ee/2);for(var et=0;et<J;++et){var eo=parseInt(G.substr(2*et,2),16);if(eY(eo))break;W[H+et]=eo}return et}function eO(W,G,H,J){return eV(ez(G,W.length-H),W,H,J)}function eA(W,G,H,J){return eV(eG(G),W,H,J)}function eP(W,G,H,J){return eA(W,G,H,J)}function eM(W,G,H,J){return eV(eH(G),W,H,J)}function ej(W,G,H,J){return eV(eq(G,W.length-H),W,H,J)}function eT(W,G,H){return 0===G&&H===W.length?J.fromByteArray(W):J.fromByteArray(W.slice(G,H))}function ex(W,G,H){H=Math.min(W.length,H);for(var J=[],Q=G;Q<H;){var ee,et,eo,ei,ea=W[Q],es=null,eu=ea>239?4:ea>223?3:ea>191?2:1;if(Q+eu<=H)switch(eu){case 1:ea<128&&(es=ea);break;case 2:(192&(ee=W[Q+1]))==128&&(ei=(31&ea)<<6|63&ee)>127&&(es=ei);break;case 3:ee=W[Q+1],et=W[Q+2],(192&ee)==128&&(192&et)==128&&(ei=(15&ea)<<12|(63&ee)<<6|63&et)>2047&&(ei<55296||ei>57343)&&(es=ei);break;case 4:ee=W[Q+1],et=W[Q+2],eo=W[Q+3],(192&ee)==128&&(192&et)==128&&(192&eo)==128&&(ei=(15&ea)<<18|(63&ee)<<12|(63&et)<<6|63&eo)>65535&&ei<1114112&&(es=ei)}null===es?(es=65533,eu=1):es>65535&&(es-=65536,J.push(es>>>10&1023|55296),es=56320|1023&es),J.push(es),Q+=eu}return eC(J)}G.kMaxLength=et,ea.TYPED_ARRAY_SUPPORT=eo(),ea.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(ea.prototype,"parent",{enumerable:!0,get:function(){if(ea.isBuffer(this))return this.buffer}}),Object.defineProperty(ea.prototype,"offset",{enumerable:!0,get:function(){if(ea.isBuffer(this))return this.byteOffset}}),ea.poolSize=8192,ea.from=function(W,G,H){return es(W,G,H)},Object.setPrototypeOf(ea.prototype,Uint8Array.prototype),Object.setPrototypeOf(ea,Uint8Array),ea.alloc=function(W,G,H){return ec(W,G,H)},ea.allocUnsafe=function(W){return ef(W)},ea.allocUnsafeSlow=function(W){return ef(W)},ea.isBuffer=function(W){return null!=W&&!0===W._isBuffer&&W!==ea.prototype},ea.compare=function(W,G){if(eJ(W,Uint8Array)&&(W=ea.from(W,W.offset,W.byteLength)),eJ(G,Uint8Array)&&(G=ea.from(G,G.offset,G.byteLength)),!ea.isBuffer(W)||!ea.isBuffer(G))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(W===G)return 0;for(var H=W.length,J=G.length,Q=0,ee=Math.min(H,J);Q<ee;++Q)if(W[Q]!==G[Q]){H=W[Q],J=G[Q];break}return H<J?-1:J<H?1:0},ea.isEncoding=function(W){switch(String(W).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ea.concat=function(W,G){if(!Array.isArray(W))throw TypeError('"list" argument must be an Array of Buffers');if(0===W.length)return ea.alloc(0);if(void 0===G)for(H=0,G=0;H<W.length;++H)G+=W[H].length;var H,J=ea.allocUnsafe(G),Q=0;for(H=0;H<W.length;++H){var ee=W[H];if(eJ(ee,Uint8Array)&&(ee=ea.from(ee)),!ea.isBuffer(ee))throw TypeError('"list" argument must be an Array of Buffers');ee.copy(J,Q),Q+=ee.length}return J},ea.byteLength=eg,ea.prototype._isBuffer=!0,ea.prototype.swap16=function(){var W=this.length;if(W%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;G<W;G+=2)ew(this,G,G+1);return this},ea.prototype.swap32=function(){var W=this.length;if(W%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var G=0;G<W;G+=4)ew(this,G,G+3),ew(this,G+1,G+2);return this},ea.prototype.swap64=function(){var W=this.length;if(W%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var G=0;G<W;G+=8)ew(this,G,G+7),ew(this,G+1,G+6),ew(this,G+2,G+5),ew(this,G+3,G+4);return this},ea.prototype.toString=function(){var W=this.length;return 0===W?"":0==arguments.length?ex(this,0,W):eb.apply(this,arguments)},ea.prototype.toLocaleString=ea.prototype.toString,ea.prototype.equals=function(W){if(!ea.isBuffer(W))throw TypeError("Argument must be a Buffer");return this===W||0===ea.compare(this,W)},ea.prototype.inspect=function(){var W="",H=G.INSPECT_MAX_BYTES;return W=this.toString("hex",0,H).replace(/(.{2})/g,"$1 ").trim(),this.length>H&&(W+=" ... "),"<Buffer "+W+">"},ee&&(ea.prototype[ee]=ea.prototype.inspect),ea.prototype.compare=function(W,G,H,J,Q){if(eJ(W,Uint8Array)&&(W=ea.from(W,W.offset,W.byteLength)),!ea.isBuffer(W))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof W);if(void 0===G&&(G=0),void 0===H&&(H=W?W.length:0),void 0===J&&(J=0),void 0===Q&&(Q=this.length),G<0||H>W.length||J<0||Q>this.length)throw RangeError("out of range index");if(J>=Q&&G>=H)return 0;if(J>=Q)return -1;if(G>=H)return 1;if(G>>>=0,H>>>=0,J>>>=0,Q>>>=0,this===W)return 0;for(var ee=Q-J,et=H-G,eo=Math.min(ee,et),ei=this.slice(J,Q),es=W.slice(G,H),eu=0;eu<eo;++eu)if(ei[eu]!==es[eu]){ee=ei[eu],et=es[eu];break}return ee<et?-1:et<ee?1:0},ea.prototype.includes=function(W,G,H){return -1!==this.indexOf(W,G,H)},ea.prototype.indexOf=function(W,G,H){return e_(this,W,G,H,!0)},ea.prototype.lastIndexOf=function(W,G,H){return e_(this,W,G,H,!1)},ea.prototype.write=function(W,G,H,J){if(void 0===G)J="utf8",H=this.length,G=0;else if(void 0===H&&"string"==typeof G)J=G,H=this.length,G=0;else if(isFinite(G))G>>>=0,isFinite(H)?(H>>>=0,void 0===J&&(J="utf8")):(J=H,H=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Q=this.length-G;if((void 0===H||H>Q)&&(H=Q),W.length>0&&(H<0||G<0)||G>this.length)throw RangeError("Attempt to write outside buffer bounds");J||(J="utf8");for(var ee=!1;;)switch(J){case"hex":return eE(this,W,G,H);case"utf8":case"utf-8":return eO(this,W,G,H);case"ascii":return eA(this,W,G,H);case"latin1":case"binary":return eP(this,W,G,H);case"base64":return eM(this,W,G,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ej(this,W,G,H);default:if(ee)throw TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),ee=!0}},ea.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var eI=4096;function eC(W){var G=W.length;if(G<=eI)return String.fromCharCode.apply(String,W);for(var H="",J=0;J<G;)H+=String.fromCharCode.apply(String,W.slice(J,J+=eI));return H}function eN(W,G,H){var J="";H=Math.min(W.length,H);for(var Q=G;Q<H;++Q)J+=String.fromCharCode(127&W[Q]);return J}function ek(W,G,H){var J="";H=Math.min(W.length,H);for(var Q=G;Q<H;++Q)J+=String.fromCharCode(W[Q]);return J}function eR(W,G,H){var J=W.length;(!G||G<0)&&(G=0),(!H||H<0||H>J)&&(H=J);for(var Q="",ee=G;ee<H;++ee)Q+=eZ[W[ee]];return Q}function eD(W,G,H){for(var J=W.slice(G,H),Q="",ee=0;ee<J.length;ee+=2)Q+=String.fromCharCode(J[ee]+256*J[ee+1]);return Q}function eL(W,G,H){if(W%1!=0||W<0)throw RangeError("offset is not uint");if(W+G>H)throw RangeError("Trying to access beyond buffer length")}function eU(W,G,H,J,Q,ee){if(!ea.isBuffer(W))throw TypeError('"buffer" argument must be a Buffer instance');if(G>Q||G<ee)throw RangeError('"value" argument is out of bounds');if(H+J>W.length)throw RangeError("Index out of range")}function eF(W,G,H,J,Q,ee){if(H+J>W.length||H<0)throw RangeError("Index out of range")}function e$(W,G,H,J,ee){return G=+G,H>>>=0,ee||eF(W,G,H,4,34028234663852886e22,-34028234663852886e22),Q.write(W,G,H,J,23,4),H+4}function eB(W,G,H,J,ee){return G=+G,H>>>=0,ee||eF(W,G,H,8,17976931348623157e292,-17976931348623157e292),Q.write(W,G,H,J,52,8),H+8}ea.prototype.slice=function(W,G){var H=this.length;W=~~W,G=void 0===G?H:~~G,W<0?(W+=H)<0&&(W=0):W>H&&(W=H),G<0?(G+=H)<0&&(G=0):G>H&&(G=H),G<W&&(G=W);var J=this.subarray(W,G);return Object.setPrototypeOf(J,ea.prototype),J},ea.prototype.readUIntLE=function(W,G,H){W>>>=0,G>>>=0,H||eL(W,G,this.length);for(var J=this[W],Q=1,ee=0;++ee<G&&(Q*=256);)J+=this[W+ee]*Q;return J},ea.prototype.readUIntBE=function(W,G,H){W>>>=0,G>>>=0,H||eL(W,G,this.length);for(var J=this[W+--G],Q=1;G>0&&(Q*=256);)J+=this[W+--G]*Q;return J},ea.prototype.readUInt8=function(W,G){return W>>>=0,G||eL(W,1,this.length),this[W]},ea.prototype.readUInt16LE=function(W,G){return W>>>=0,G||eL(W,2,this.length),this[W]|this[W+1]<<8},ea.prototype.readUInt16BE=function(W,G){return W>>>=0,G||eL(W,2,this.length),this[W]<<8|this[W+1]},ea.prototype.readUInt32LE=function(W,G){return W>>>=0,G||eL(W,4,this.length),(this[W]|this[W+1]<<8|this[W+2]<<16)+16777216*this[W+3]},ea.prototype.readUInt32BE=function(W,G){return W>>>=0,G||eL(W,4,this.length),16777216*this[W]+(this[W+1]<<16|this[W+2]<<8|this[W+3])},ea.prototype.readIntLE=function(W,G,H){W>>>=0,G>>>=0,H||eL(W,G,this.length);for(var J=this[W],Q=1,ee=0;++ee<G&&(Q*=256);)J+=this[W+ee]*Q;return J>=(Q*=128)&&(J-=Math.pow(2,8*G)),J},ea.prototype.readIntBE=function(W,G,H){W>>>=0,G>>>=0,H||eL(W,G,this.length);for(var J=G,Q=1,ee=this[W+--J];J>0&&(Q*=256);)ee+=this[W+--J]*Q;return ee>=(Q*=128)&&(ee-=Math.pow(2,8*G)),ee},ea.prototype.readInt8=function(W,G){return(W>>>=0,G||eL(W,1,this.length),128&this[W])?-((255-this[W]+1)*1):this[W]},ea.prototype.readInt16LE=function(W,G){W>>>=0,G||eL(W,2,this.length);var H=this[W]|this[W+1]<<8;return 32768&H?4294901760|H:H},ea.prototype.readInt16BE=function(W,G){W>>>=0,G||eL(W,2,this.length);var H=this[W+1]|this[W]<<8;return 32768&H?4294901760|H:H},ea.prototype.readInt32LE=function(W,G){return W>>>=0,G||eL(W,4,this.length),this[W]|this[W+1]<<8|this[W+2]<<16|this[W+3]<<24},ea.prototype.readInt32BE=function(W,G){return W>>>=0,G||eL(W,4,this.length),this[W]<<24|this[W+1]<<16|this[W+2]<<8|this[W+3]},ea.prototype.readFloatLE=function(W,G){return W>>>=0,G||eL(W,4,this.length),Q.read(this,W,!0,23,4)},ea.prototype.readFloatBE=function(W,G){return W>>>=0,G||eL(W,4,this.length),Q.read(this,W,!1,23,4)},ea.prototype.readDoubleLE=function(W,G){return W>>>=0,G||eL(W,8,this.length),Q.read(this,W,!0,52,8)},ea.prototype.readDoubleBE=function(W,G){return W>>>=0,G||eL(W,8,this.length),Q.read(this,W,!1,52,8)},ea.prototype.writeUIntLE=function(W,G,H,J){if(W=+W,G>>>=0,H>>>=0,!J){var Q=Math.pow(2,8*H)-1;eU(this,W,G,H,Q,0)}var ee=1,et=0;for(this[G]=255&W;++et<H&&(ee*=256);)this[G+et]=W/ee&255;return G+H},ea.prototype.writeUIntBE=function(W,G,H,J){if(W=+W,G>>>=0,H>>>=0,!J){var Q=Math.pow(2,8*H)-1;eU(this,W,G,H,Q,0)}var ee=H-1,et=1;for(this[G+ee]=255&W;--ee>=0&&(et*=256);)this[G+ee]=W/et&255;return G+H},ea.prototype.writeUInt8=function(W,G,H){return W=+W,G>>>=0,H||eU(this,W,G,1,255,0),this[G]=255&W,G+1},ea.prototype.writeUInt16LE=function(W,G,H){return W=+W,G>>>=0,H||eU(this,W,G,2,65535,0),this[G]=255&W,this[G+1]=W>>>8,G+2},ea.prototype.writeUInt16BE=function(W,G,H){return W=+W,G>>>=0,H||eU(this,W,G,2,65535,0),this[G]=W>>>8,this[G+1]=255&W,G+2},ea.prototype.writeUInt32LE=function(W,G,H){return W=+W,G>>>=0,H||eU(this,W,G,4,4294967295,0),this[G+3]=W>>>24,this[G+2]=W>>>16,this[G+1]=W>>>8,this[G]=255&W,G+4},ea.prototype.writeUInt32BE=function(W,G,H){return W=+W,G>>>=0,H||eU(this,W,G,4,4294967295,0),this[G]=W>>>24,this[G+1]=W>>>16,this[G+2]=W>>>8,this[G+3]=255&W,G+4},ea.prototype.writeIntLE=function(W,G,H,J){if(W=+W,G>>>=0,!J){var Q=Math.pow(2,8*H-1);eU(this,W,G,H,Q-1,-Q)}var ee=0,et=1,eo=0;for(this[G]=255&W;++ee<H&&(et*=256);)W<0&&0===eo&&0!==this[G+ee-1]&&(eo=1),this[G+ee]=(W/et>>0)-eo&255;return G+H},ea.prototype.writeIntBE=function(W,G,H,J){if(W=+W,G>>>=0,!J){var Q=Math.pow(2,8*H-1);eU(this,W,G,H,Q-1,-Q)}var ee=H-1,et=1,eo=0;for(this[G+ee]=255&W;--ee>=0&&(et*=256);)W<0&&0===eo&&0!==this[G+ee+1]&&(eo=1),this[G+ee]=(W/et>>0)-eo&255;return G+H},ea.prototype.writeInt8=function(W,G,H){return W=+W,G>>>=0,H||eU(this,W,G,1,127,-128),W<0&&(W=255+W+1),this[G]=255&W,G+1},ea.prototype.writeInt16LE=function(W,G,H){return W=+W,G>>>=0,H||eU(this,W,G,2,32767,-32768),this[G]=255&W,this[G+1]=W>>>8,G+2},ea.prototype.writeInt16BE=function(W,G,H){return W=+W,G>>>=0,H||eU(this,W,G,2,32767,-32768),this[G]=W>>>8,this[G+1]=255&W,G+2},ea.prototype.writeInt32LE=function(W,G,H){return W=+W,G>>>=0,H||eU(this,W,G,4,2147483647,-2147483648),this[G]=255&W,this[G+1]=W>>>8,this[G+2]=W>>>16,this[G+3]=W>>>24,G+4},ea.prototype.writeInt32BE=function(W,G,H){return W=+W,G>>>=0,H||eU(this,W,G,4,2147483647,-2147483648),W<0&&(W=4294967295+W+1),this[G]=W>>>24,this[G+1]=W>>>16,this[G+2]=W>>>8,this[G+3]=255&W,G+4},ea.prototype.writeFloatLE=function(W,G,H){return e$(this,W,G,!0,H)},ea.prototype.writeFloatBE=function(W,G,H){return e$(this,W,G,!1,H)},ea.prototype.writeDoubleLE=function(W,G,H){return eB(this,W,G,!0,H)},ea.prototype.writeDoubleBE=function(W,G,H){return eB(this,W,G,!1,H)},ea.prototype.copy=function(W,G,H,J){if(!ea.isBuffer(W))throw TypeError("argument should be a Buffer");if(H||(H=0),J||0===J||(J=this.length),G>=W.length&&(G=W.length),G||(G=0),J>0&&J<H&&(J=H),J===H||0===W.length||0===this.length)return 0;if(G<0)throw RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw RangeError("Index out of range");if(J<0)throw RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),W.length-G<J-H&&(J=W.length-G+H);var Q=J-H;if(this===W&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(G,H,J);else if(this===W&&H<G&&G<J)for(var ee=Q-1;ee>=0;--ee)W[ee+G]=this[ee+H];else Uint8Array.prototype.set.call(W,this.subarray(H,J),G);return Q},ea.prototype.fill=function(W,G,H,J){if("string"==typeof W){if("string"==typeof G?(J=G,G=0,H=this.length):"string"==typeof H&&(J=H,H=this.length),void 0!==J&&"string"!=typeof J)throw TypeError("encoding must be a string");if("string"==typeof J&&!ea.isEncoding(J))throw TypeError("Unknown encoding: "+J);if(1===W.length){var Q,ee=W.charCodeAt(0);("utf8"===J&&ee<128||"latin1"===J)&&(W=ee)}}else"number"==typeof W?W&=255:"boolean"==typeof W&&(W=Number(W));if(G<0||this.length<G||this.length<H)throw RangeError("Out of range index");if(H<=G)return this;if(G>>>=0,H=void 0===H?this.length:H>>>0,W||(W=0),"number"==typeof W)for(Q=G;Q<H;++Q)this[Q]=W;else{var et=ea.isBuffer(W)?W:ea.from(W,J),eo=et.length;if(0===eo)throw TypeError('The value "'+W+'" is invalid for argument "value"');for(Q=0;Q<H-G;++Q)this[Q+G]=et[Q%eo]}return this};var eK=/[^+/0-9A-Za-z-_]/g;function eW(W){if((W=(W=W.split("=")[0]).trim().replace(eK,"")).length<2)return"";for(;W.length%4!=0;)W+="=";return W}function ez(W,G){G=G||1/0;for(var H,J=W.length,Q=null,ee=[],et=0;et<J;++et){if((H=W.charCodeAt(et))>55295&&H<57344){if(!Q){if(H>56319||et+1===J){(G-=3)>-1&&ee.push(239,191,189);continue}Q=H;continue}if(H<56320){(G-=3)>-1&&ee.push(239,191,189),Q=H;continue}H=(Q-55296<<10|H-56320)+65536}else Q&&(G-=3)>-1&&ee.push(239,191,189);if(Q=null,H<128){if((G-=1)<0)break;ee.push(H)}else if(H<2048){if((G-=2)<0)break;ee.push(H>>6|192,63&H|128)}else if(H<65536){if((G-=3)<0)break;ee.push(H>>12|224,H>>6&63|128,63&H|128)}else if(H<1114112){if((G-=4)<0)break;ee.push(H>>18|240,H>>12&63|128,H>>6&63|128,63&H|128)}else throw Error("Invalid code point")}return ee}function eG(W){for(var G=[],H=0;H<W.length;++H)G.push(255&W.charCodeAt(H));return G}function eq(W,G){for(var H,J,Q=[],ee=0;ee<W.length&&!((G-=2)<0);++ee)J=(H=W.charCodeAt(ee))>>8,Q.push(H%256),Q.push(J);return Q}function eH(W){return J.toByteArray(eW(W))}function eV(W,G,H,J){for(var Q=0;Q<J&&!(Q+H>=G.length)&&!(Q>=W.length);++Q)G[Q+H]=W[Q];return Q}function eJ(W,G){return W instanceof G||null!=W&&null!=W.constructor&&null!=W.constructor.name&&W.constructor.name===G.name}function eY(W){return W!=W}var eZ=function(){for(var W="0123456789abcdef",G=Array(256),H=0;H<16;++H)for(var J=16*H,Q=0;Q<16;++Q)G[J+Q]=W[H]+W[Q];return G}()},783:function(W,G){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */G.read=function(W,G,H,J,Q){var ee,et,eo=8*Q-J-1,ei=(1<<eo)-1,ea=ei>>1,es=-7,eu=H?Q-1:0,ec=H?-1:1,ef=W[G+eu];for(eu+=ec,ee=ef&(1<<-es)-1,ef>>=-es,es+=eo;es>0;ee=256*ee+W[G+eu],eu+=ec,es-=8);for(et=ee&(1<<-es)-1,ee>>=-es,es+=J;es>0;et=256*et+W[G+eu],eu+=ec,es-=8);if(0===ee)ee=1-ea;else{if(ee===ei)return et?NaN:(ef?-1:1)*(1/0);et+=Math.pow(2,J),ee-=ea}return(ef?-1:1)*et*Math.pow(2,ee-J)},G.write=function(W,G,H,J,Q,ee){var et,eo,ei,ea=8*ee-Q-1,es=(1<<ea)-1,eu=es>>1,ec=23===Q?5960464477539062e-23:0,ef=J?0:ee-1,ed=J?1:-1,eh=G<0||0===G&&1/G<0?1:0;for(isNaN(G=Math.abs(G))||G===1/0?(eo=isNaN(G)?1:0,et=es):(et=Math.floor(Math.log(G)/Math.LN2),G*(ei=Math.pow(2,-et))<1&&(et--,ei*=2),et+eu>=1?G+=ec/ei:G+=ec*Math.pow(2,1-eu),G*ei>=2&&(et++,ei/=2),et+eu>=es?(eo=0,et=es):et+eu>=1?(eo=(G*ei-1)*Math.pow(2,Q),et+=eu):(eo=G*Math.pow(2,eu-1)*Math.pow(2,Q),et=0));Q>=8;W[H+ef]=255&eo,ef+=ed,eo/=256,Q-=8);for(et=et<<Q|eo,ea+=Q;ea>0;W[H+ef]=255&et,ef+=ed,et/=256,ea-=8);W[H+ef-ed]|=128*eh}}},J={};function Q(W){var G=J[W];if(void 0!==G)return G.exports;var ee=J[W]={exports:{}},et=!0;try{H[W](ee,ee.exports,Q),et=!1}finally{et&&delete J[W]}return ee.exports}Q.ab=G+"/";var ee=Q(72);W.exports=ee}()},19964:function(W,G,H){var J="/";!function(){var G={528:function(W,G,H){var J=H(685),Q=H(310),ee=W.exports;for(var et in J)J.hasOwnProperty(et)&&(ee[et]=J[et]);function eo(W){if("string"==typeof W&&(W=Q.parse(W)),W.protocol||(W.protocol="https:"),"https:"!==W.protocol)throw Error('Protocol "'+W.protocol+'" not supported. Expected "https:"');return W}ee.request=function(W,G){return W=eo(W),J.request.call(this,W,G)},ee.get=function(W,G){return W=eo(W),J.get.call(this,W,G)}},685:function(W){"use strict";W.exports=H(75152)},310:function(W){"use strict";W.exports=H(28126)}},Q={};function ee(W){var H=Q[W];if(void 0!==H)return H.exports;var J=Q[W]={exports:{}},et=!0;try{G[W](J,J.exports,ee),et=!1}finally{et&&delete Q[W]}return J.exports}ee.ab=J+"/";var et=ee(528);W.exports=et}()},28126:function(W,G,H){var J="/";!function(){var G={452:function(W){"use strict";W.exports=H(11438)}},Q={};function ee(W){var H=Q[W];if(void 0!==H)return H.exports;var J=Q[W]={exports:{}},et=!0;try{G[W](J,J.exports,ee),et=!1}finally{et&&delete Q[W]}return J.exports}ee.ab=J+"/";var et={};!function(){var W,G=et,H=(W=ee(452))&&"object"==typeof W&&"default"in W?W.default:W,J=/https?|ftp|gopher|file/;function Q(W){"string"==typeof W&&(W=em(W));var G=function(W,G,H){var J=W.auth,Q=W.hostname,ee=W.protocol||"",et=W.pathname||"",eo=W.hash||"",ei=W.query||"",ea=!1;J=J?encodeURIComponent(J).replace(/%3A/i,":")+"@":"",W.host?ea=J+W.host:Q&&(ea=J+(~Q.indexOf(":")?"["+Q+"]":Q),W.port&&(ea+=":"+W.port)),ei&&"object"==typeof ei&&(ei=G.encode(ei));var es=W.search||ei&&"?"+ei||"";return ee&&":"!==ee.substr(-1)&&(ee+=":"),W.slashes||(!ee||H.test(ee))&&!1!==ea?(ea="//"+(ea||""),et&&"/"!==et[0]&&(et="/"+et)):ea||(ea=""),eo&&"#"!==eo[0]&&(eo="#"+eo),es&&"?"!==es[0]&&(es="?"+es),{protocol:ee,host:ea,pathname:et=et.replace(/[?#]/g,encodeURIComponent),search:es=es.replace("#","%23"),hash:eo}}(W,H,J);return""+G.protocol+G.host+G.pathname+G.search+G.hash}var eo="http://",ei="w.w",ea=eo+ei,es=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,eu=/https?|ftp|gopher|file/;function ec(W,G){var H="string"==typeof W?em(W):W;W="object"==typeof W?Q(W):W;var J=em(G),ee="";H.protocol&&!H.slashes&&(ee=H.protocol,W=W.replace(H.protocol,""),ee+="/"===G[0]||"/"===W[0]?"/":""),ee&&J.protocol&&(ee="",J.slashes||(ee=J.protocol,G=G.replace(J.protocol,"")));var et=W.match(es);et&&!J.protocol&&(W=W.substr((ee=et[1]+(et[2]||"")).length),/^\/\/[^/]/.test(G)&&(ee=ee.slice(0,-1)));var ei=new URL(W,ea+"/"),ec=new URL(G,ei).toString().replace(ea,""),ef=J.protocol||H.protocol;return ef+=H.slashes||J.slashes?"//":"",!ee&&ef?ec=ec.replace(eo,ef):ee&&(ec=ec.replace(eo,"")),eu.test(ec)||~G.indexOf(".")||"/"===W.slice(-1)||"/"===G.slice(-1)||"/"!==ec.slice(-1)||(ec=ec.slice(0,-1)),ee&&(ec=ee+("/"===ec[0]?ec.substr(1):ec)),ec}function ef(){}ef.prototype.parse=em,ef.prototype.format=Q,ef.prototype.resolve=ec,ef.prototype.resolveObject=ec;var ed=/^https?|ftp|gopher|file/,eh=/^(.*?)([#?].*)/,ep=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,ey=/^([a-z0-9.+-]*:)?\/\/\/*/i,ev=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function em(W,G,J){if(void 0===G&&(G=!1),void 0===J&&(J=!1),W&&"object"==typeof W&&W instanceof ef)return W;var ee=(W=W.trim()).match(eh);W=ee?ee[1].replace(/\\/g,"/")+ee[2]:W.replace(/\\/g,"/"),ev.test(W)&&"/"!==W.slice(-1)&&(W+="/");var et=!/(^javascript)/.test(W)&&W.match(ep),eo=ey.test(W),es="";et&&(ed.test(et[1])||(es=et[1].toLowerCase(),W=""+et[2]+et[3]),et[2]||(eo=!1,ed.test(et[1])?(es=et[1],W=""+et[3]):W="//"+et[3]),3!==et[2].length&&1!==et[2].length||(es=et[1],W="/"+et[3]));var eu,ec=(ee?ee[1]:W).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),em=ec&&ec[1],eg=new ef,eb="",ew="";try{eu=new URL(W)}catch(G){eb=G,es||J||!/^\/\//.test(W)||/^\/\/.+[@.]/.test(W)||(ew="/",W=W.substr(1));try{eu=new URL(W,ea)}catch(W){return eg.protocol=es,eg.href=es,eg}}eg.slashes=eo&&!ew,eg.host=eu.host===ei?"":eu.host,eg.hostname=eu.hostname===ei?"":eu.hostname.replace(/(\[|\])/g,""),eg.protocol=eb?es||null:eu.protocol,eg.search=eu.search.replace(/\\/g,"%5C"),eg.hash=eu.hash.replace(/\\/g,"%5C");var e_=W.split("#");!eg.search&&~e_[0].indexOf("?")&&(eg.search="?"),eg.hash||""!==e_[1]||(eg.hash="#"),eg.query=G?H.decode(eu.search.substr(1)):eg.search.substr(1),eg.pathname=ew+(et?function(W){return W.replace(/['^|`]/g,function(W){return"%"+W.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(W,G){try{return decodeURIComponent(G).split("").map(function(W){var G=W.charCodeAt();return G>256||/^[a-z0-9]$/i.test(W)?W:"%"+G.toString(16).toUpperCase()}).join("")}catch(W){return G}})}(eu.pathname):eu.pathname),"about:"===eg.protocol&&"blank"===eg.pathname&&(eg.protocol="",eg.pathname=""),eb&&"/"!==W[0]&&(eg.pathname=eg.pathname.substr(1)),es&&!ed.test(es)&&"/"!==W.slice(-1)&&"/"===eg.pathname&&(eg.pathname=""),eg.path=eg.pathname+eg.search,eg.auth=[eu.username,eu.password].map(decodeURIComponent).filter(Boolean).join(":"),eg.port=eu.port,em&&!eg.host.endsWith(em)&&(eg.host+=em,eg.port=em.slice(1)),eg.href=ew?""+eg.pathname+eg.search+eg.hash:Q(eg);var eS=/^(file)/.test(eg.href)?["host","hostname"]:[];return Object.keys(eg).forEach(function(W){~eS.indexOf(W)||(eg[W]=eg[W]||null)}),eg}G.parse=em,G.format=Q,G.resolve=ec,G.resolveObject=function(W,G){return em(ec(W,G))},G.Url=ef}(),W.exports=et}()},49424:function(W){var G="/";!function(){var H={229:function(W){var G,H,J,Q=W.exports={};function ee(){throw Error("setTimeout has not been defined")}function et(){throw Error("clearTimeout has not been defined")}function eo(W){if(G===setTimeout)return setTimeout(W,0);if((G===ee||!G)&&setTimeout)return G=setTimeout,setTimeout(W,0);try{return G(W,0)}catch(H){try{return G.call(null,W,0)}catch(H){return G.call(this,W,0)}}}function ei(W){if(H===clearTimeout)return clearTimeout(W);if((H===et||!H)&&clearTimeout)return H=clearTimeout,clearTimeout(W);try{return H(W)}catch(G){try{return H.call(null,W)}catch(G){return H.call(this,W)}}}!function(){try{G="function"==typeof setTimeout?setTimeout:ee}catch(W){G=ee}try{H="function"==typeof clearTimeout?clearTimeout:et}catch(W){H=et}}();var ea=[],es=!1,eu=-1;function ec(){es&&J&&(es=!1,J.length?ea=J.concat(ea):eu=-1,ea.length&&ef())}function ef(){if(!es){var W=eo(ec);es=!0;for(var G=ea.length;G;){for(J=ea,ea=[];++eu<G;)J&&J[eu].run();eu=-1,G=ea.length}J=null,es=!1,ei(W)}}function ed(W,G){this.fun=W,this.array=G}function eh(){}Q.nextTick=function(W){var G=Array(arguments.length-1);if(arguments.length>1)for(var H=1;H<arguments.length;H++)G[H-1]=arguments[H];ea.push(new ed(W,G)),1!==ea.length||es||eo(ef)},ed.prototype.run=function(){this.fun.apply(null,this.array)},Q.title="browser",Q.browser=!0,Q.env={},Q.argv=[],Q.version="",Q.versions={},Q.on=eh,Q.addListener=eh,Q.once=eh,Q.off=eh,Q.removeListener=eh,Q.removeAllListeners=eh,Q.emit=eh,Q.prependListener=eh,Q.prependOnceListener=eh,Q.listeners=function(W){return[]},Q.binding=function(W){throw Error("process.binding is not supported")},Q.cwd=function(){return"/"},Q.chdir=function(W){throw Error("process.chdir is not supported")},Q.umask=function(){return 0}}},J={};function Q(W){var G=J[W];if(void 0!==G)return G.exports;var ee=J[W]={exports:{}},et=!0;try{H[W](ee,ee.exports,Q),et=!1}finally{et&&delete J[W]}return ee.exports}Q.ab=G+"/";var ee=Q(229);W.exports=ee}()},11438:function(W){var G="/";!function(){"use strict";var H={815:function(W){function G(W,G){return Object.prototype.hasOwnProperty.call(W,G)}W.exports=function(W,J,Q,ee){J=J||"&",Q=Q||"=";var et={};if("string"!=typeof W||0===W.length)return et;var eo=/\+/g;W=W.split(J);var ei=1e3;ee&&"number"==typeof ee.maxKeys&&(ei=ee.maxKeys);var ea=W.length;ei>0&&ea>ei&&(ea=ei);for(var es=0;es<ea;++es){var eu,ec,ef,ed,eh=W[es].replace(eo,"%20"),ep=eh.indexOf(Q);ep>=0?(eu=eh.substr(0,ep),ec=eh.substr(ep+1)):(eu=eh,ec=""),ef=decodeURIComponent(eu),ed=decodeURIComponent(ec),G(et,ef)?H(et[ef])?et[ef].push(ed):et[ef]=[et[ef],ed]:et[ef]=ed}return et};var H=Array.isArray||function(W){return"[object Array]"===Object.prototype.toString.call(W)}},577:function(W){var G=function(W){switch(typeof W){case"string":return W;case"boolean":return W?"true":"false";case"number":return isFinite(W)?W:"";default:return""}};W.exports=function(W,ee,et,eo){return(ee=ee||"&",et=et||"=",null===W&&(W=void 0),"object"==typeof W)?J(Q(W),function(Q){var eo=encodeURIComponent(G(Q))+et;return H(W[Q])?J(W[Q],function(W){return eo+encodeURIComponent(G(W))}).join(ee):eo+encodeURIComponent(G(W[Q]))}).join(ee):eo?encodeURIComponent(G(eo))+et+encodeURIComponent(G(W)):""};var H=Array.isArray||function(W){return"[object Array]"===Object.prototype.toString.call(W)};function J(W,G){if(W.map)return W.map(G);for(var H=[],J=0;J<W.length;J++)H.push(G(W[J],J));return H}var Q=Object.keys||function(W){var G=[];for(var H in W)Object.prototype.hasOwnProperty.call(W,H)&&G.push(H);return G}}},J={};function Q(W){var G=J[W];if(void 0!==G)return G.exports;var ee=J[W]={exports:{}},et=!0;try{H[W](ee,ee.exports,Q),et=!1}finally{et&&delete J[W]}return ee.exports}Q.ab=G+"/";var ee={};!function(){var W=ee;W.decode=W.parse=Q(815),W.encode=W.stringify=Q(577)}(),W.exports=ee}()},10901:function(W,G,H){"use strict";var J=H(29599),Q=Symbol.for("react.element"),ee=Symbol.for("react.fragment"),et=Object.prototype.hasOwnProperty,eo=J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ei={key:!0,ref:!0,__self:!0,__source:!0};function ea(W,G,H){var J,ee={},ea=null,es=null;for(J in void 0!==H&&(ea=""+H),void 0!==G.key&&(ea=""+G.key),void 0!==G.ref&&(es=G.ref),G)et.call(G,J)&&!ei.hasOwnProperty(J)&&(ee[J]=G[J]);if(W&&W.defaultProps)for(J in G=W.defaultProps)void 0===ee[J]&&(ee[J]=G[J]);return{$$typeof:Q,type:W,key:ea,ref:es,props:ee,_owner:eo.current}}G.Fragment=ee,G.jsx=ea,G.jsxs=ea},33353:function(W,G,H){"use strict";W.exports=H(10901)},171:function(W,G,H){var J="/",Q=H(20352);!function(){var G={782:function(W){"function"==typeof Object.create?W.exports=function(W,G){G&&(W.super_=G,W.prototype=Object.create(G.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}))}:W.exports=function(W,G){if(G){W.super_=G;var H=function(){};H.prototype=G.prototype,W.prototype=new H,W.prototype.constructor=W}}},646:function(W){"use strict";let G={};function H(W,H,J){function Q(W,G,J){return"string"==typeof H?H:H(W,G,J)}J||(J=Error);class ee extends J{constructor(W,G,H){super(Q(W,G,H))}}ee.prototype.name=J.name,ee.prototype.code=W,G[W]=ee}function J(W,G){if(!Array.isArray(W))return`of ${G} ${String(W)}`;{let H=W.length;return(W=W.map(W=>String(W)),H>2)?`one of ${G} ${W.slice(0,H-1).join(", ")}, or `+W[H-1]:2===H?`one of ${G} ${W[0]} or ${W[1]}`:`of ${G} ${W[0]}`}}function Q(W,G,H){return W.substr(!H||H<0?0:+H,G.length)===G}function ee(W,G,H){return(void 0===H||H>W.length)&&(H=W.length),W.substring(H-G.length,H)===G}function et(W,G,H){return"number"!=typeof H&&(H=0),!(H+G.length>W.length)&&-1!==W.indexOf(G,H)}H("ERR_INVALID_OPT_VALUE",function(W,G){return'The value "'+G+'" is invalid for option "'+W+'"'},TypeError),H("ERR_INVALID_ARG_TYPE",function(W,G,H){let eo,ei;if("string"==typeof G&&Q(G,"not ")?(eo="must not be",G=G.replace(/^not /,"")):eo="must be",ee(W," argument"))ei=`The ${W} ${eo} ${J(G,"type")}`;else{let H=et(W,".")?"property":"argument";ei=`The "${W}" ${H} ${eo} ${J(G,"type")}`}return ei+`. Received type ${typeof H}`},TypeError),H("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),H("ERR_METHOD_NOT_IMPLEMENTED",function(W){return"The "+W+" method is not implemented"}),H("ERR_STREAM_PREMATURE_CLOSE","Premature close"),H("ERR_STREAM_DESTROYED",function(W){return"Cannot call "+W+" after a stream was destroyed"}),H("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),H("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),H("ERR_STREAM_WRITE_AFTER_END","write after end"),H("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),H("ERR_UNKNOWN_ENCODING",function(W){return"Unknown encoding: "+W},TypeError),H("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),W.exports.q=G},403:function(W,G,H){"use strict";var J=Object.keys||function(W){var G=[];for(var H in W)G.push(H);return G};W.exports=es;var ee=H(709),et=H(337);H(782)(es,ee);for(var eo=J(et.prototype),ei=0;ei<eo.length;ei++){var ea=eo[ei];es.prototype[ea]||(es.prototype[ea]=et.prototype[ea])}function es(W){if(!(this instanceof es))return new es(W);ee.call(this,W),et.call(this,W),this.allowHalfOpen=!0,W&&(!1===W.readable&&(this.readable=!1),!1===W.writable&&(this.writable=!1),!1===W.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",eu)))}function eu(){this._writableState.ended||Q.nextTick(ec,this)}function ec(W){W.end()}Object.defineProperty(es.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(es.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(es.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(es.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(W){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=W,this._writableState.destroyed=W)}})},889:function(W,G,H){"use strict";W.exports=Q;var J=H(170);function Q(W){if(!(this instanceof Q))return new Q(W);J.call(this,W)}H(782)(Q,J),Q.prototype._transform=function(W,G,H){H(null,W)}},709:function(W,G,J){"use strict";W.exports=eM,eM.ReadableState=eP,J(361).EventEmitter;var ee,et,eo,ei,ea,es=function(W,G){return W.listeners(G).length},eu=J(678),ec=J(300).Buffer,ef=H.g.Uint8Array||function(){};function ed(W){return ec.from(W)}function eh(W){return ec.isBuffer(W)||W instanceof ef}var ep=J(837);et=ep&&ep.debuglog?ep.debuglog("stream"):function(){};var ey=J(379),ev=J(25),em=J(776).getHighWaterMark,eg=J(646).q,eb=eg.ERR_INVALID_ARG_TYPE,ew=eg.ERR_STREAM_PUSH_AFTER_EOF,e_=eg.ERR_METHOD_NOT_IMPLEMENTED,eS=eg.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;J(782)(eM,eu);var eE=ev.errorOrDestroy,eO=["error","close","destroy","pause","resume"];function eA(W,G,H){if("function"==typeof W.prependListener)return W.prependListener(G,H);W._events&&W._events[G]?Array.isArray(W._events[G])?W._events[G].unshift(H):W._events[G]=[H,W._events[G]]:W.on(G,H)}function eP(W,G,H){ee=ee||J(403),W=W||{},"boolean"!=typeof H&&(H=G instanceof ee),this.objectMode=!!W.objectMode,H&&(this.objectMode=this.objectMode||!!W.readableObjectMode),this.highWaterMark=em(this,W,"readableHighWaterMark",H),this.buffer=new ey,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==W.emitClose,this.autoDestroy=!!W.autoDestroy,this.destroyed=!1,this.defaultEncoding=W.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,W.encoding&&(eo||(eo=J(704).s),this.decoder=new eo(W.encoding),this.encoding=W.encoding)}function eM(W){if(ee=ee||J(403),!(this instanceof eM))return new eM(W);var G=this instanceof ee;this._readableState=new eP(W,this,G),this.readable=!0,W&&("function"==typeof W.read&&(this._read=W.read),"function"==typeof W.destroy&&(this._destroy=W.destroy)),eu.call(this)}function ej(W,G,H,J,Q){et("readableAddChunk",G);var ee,eo=W._readableState;if(null===G)eo.reading=!1,ek(W,eo);else if(Q||(ee=ex(eo,G)),ee)eE(W,ee);else if(eo.objectMode||G&&G.length>0){if("string"==typeof G||eo.objectMode||Object.getPrototypeOf(G)===ec.prototype||(G=ed(G)),J)eo.endEmitted?eE(W,new eS):eT(W,eo,G,!0);else if(eo.ended)eE(W,new ew);else{if(eo.destroyed)return!1;eo.reading=!1,eo.decoder&&!H?(G=eo.decoder.write(G),eo.objectMode||0!==G.length?eT(W,eo,G,!1):eL(W,eo)):eT(W,eo,G,!1)}}else J||(eo.reading=!1,eL(W,eo));return!eo.ended&&(eo.length<eo.highWaterMark||0===eo.length)}function eT(W,G,H,J){G.flowing&&0===G.length&&!G.sync?(G.awaitDrain=0,W.emit("data",H)):(G.length+=G.objectMode?1:H.length,J?G.buffer.unshift(H):G.buffer.push(H),G.needReadable&&eR(W)),eL(W,G)}function ex(W,G){var H;return eh(G)||"string"==typeof G||void 0===G||W.objectMode||(H=new eb("chunk",["string","Buffer","Uint8Array"],G)),H}Object.defineProperty(eM.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(W){this._readableState&&(this._readableState.destroyed=W)}}),eM.prototype.destroy=ev.destroy,eM.prototype._undestroy=ev.undestroy,eM.prototype._destroy=function(W,G){G(W)},eM.prototype.push=function(W,G){var H,J=this._readableState;return J.objectMode?H=!0:"string"==typeof W&&((G=G||J.defaultEncoding)!==J.encoding&&(W=ec.from(W,G),G=""),H=!0),ej(this,W,G,!1,H)},eM.prototype.unshift=function(W){return ej(this,W,null,!0,!1)},eM.prototype.isPaused=function(){return!1===this._readableState.flowing},eM.prototype.setEncoding=function(W){eo||(eo=J(704).s);var G=new eo(W);this._readableState.decoder=G,this._readableState.encoding=this._readableState.decoder.encoding;for(var H=this._readableState.buffer.head,Q="";null!==H;)Q+=G.write(H.data),H=H.next;return this._readableState.buffer.clear(),""!==Q&&this._readableState.buffer.push(Q),this._readableState.length=Q.length,this};var eI=1073741824;function eC(W){return W>=eI?W=eI:(W--,W|=W>>>1,W|=W>>>2,W|=W>>>4,W|=W>>>8,W|=W>>>16,W++),W}function eN(W,G){return W<=0||0===G.length&&G.ended?0:G.objectMode?1:W!=W?G.flowing&&G.length?G.buffer.head.data.length:G.length:(W>G.highWaterMark&&(G.highWaterMark=eC(W)),W<=G.length)?W:G.ended?G.length:(G.needReadable=!0,0)}function ek(W,G){if(et("onEofChunk"),!G.ended){if(G.decoder){var H=G.decoder.end();H&&H.length&&(G.buffer.push(H),G.length+=G.objectMode?1:H.length)}G.ended=!0,G.sync?eR(W):(G.needReadable=!1,G.emittedReadable||(G.emittedReadable=!0,eD(W)))}}function eR(W){var G=W._readableState;et("emitReadable",G.needReadable,G.emittedReadable),G.needReadable=!1,G.emittedReadable||(et("emitReadable",G.flowing),G.emittedReadable=!0,Q.nextTick(eD,W))}function eD(W){var G=W._readableState;et("emitReadable_",G.destroyed,G.length,G.ended),!G.destroyed&&(G.length||G.ended)&&(W.emit("readable"),G.emittedReadable=!1),G.needReadable=!G.flowing&&!G.ended&&G.length<=G.highWaterMark,ez(W)}function eL(W,G){G.readingMore||(G.readingMore=!0,Q.nextTick(eU,W,G))}function eU(W,G){for(;!G.reading&&!G.ended&&(G.length<G.highWaterMark||G.flowing&&0===G.length);){var H=G.length;if(et("maybeReadMore read 0"),W.read(0),H===G.length)break}G.readingMore=!1}function eF(W){return function(){var G=W._readableState;et("pipeOnDrain",G.awaitDrain),G.awaitDrain&&G.awaitDrain--,0===G.awaitDrain&&es(W,"data")&&(G.flowing=!0,ez(W))}}function e$(W){var G=W._readableState;G.readableListening=W.listenerCount("readable")>0,G.resumeScheduled&&!G.paused?G.flowing=!0:W.listenerCount("data")>0&&W.resume()}function eB(W){et("readable nexttick read 0"),W.read(0)}function eK(W,G){G.resumeScheduled||(G.resumeScheduled=!0,Q.nextTick(eW,W,G))}function eW(W,G){et("resume",G.reading),G.reading||W.read(0),G.resumeScheduled=!1,W.emit("resume"),ez(W),G.flowing&&!G.reading&&W.read(0)}function ez(W){var G=W._readableState;for(et("flow",G.flowing);G.flowing&&null!==W.read(););}function eG(W,G){var H;return 0===G.length?null:(G.objectMode?H=G.buffer.shift():!W||W>=G.length?(H=G.decoder?G.buffer.join(""):1===G.buffer.length?G.buffer.first():G.buffer.concat(G.length),G.buffer.clear()):H=G.buffer.consume(W,G.decoder),H)}function eq(W){var G=W._readableState;et("endReadable",G.endEmitted),G.endEmitted||(G.ended=!0,Q.nextTick(eH,G,W))}function eH(W,G){if(et("endReadableNT",W.endEmitted,W.length),!W.endEmitted&&0===W.length&&(W.endEmitted=!0,G.readable=!1,G.emit("end"),W.autoDestroy)){var H=G._writableState;(!H||H.autoDestroy&&H.finished)&&G.destroy()}}function eV(W,G){for(var H=0,J=W.length;H<J;H++)if(W[H]===G)return H;return -1}eM.prototype.read=function(W){et("read",W),W=parseInt(W,10);var G,H=this._readableState,J=W;if(0!==W&&(H.emittedReadable=!1),0===W&&H.needReadable&&((0!==H.highWaterMark?H.length>=H.highWaterMark:H.length>0)||H.ended))return et("read: emitReadable",H.length,H.ended),0===H.length&&H.ended?eq(this):eR(this),null;if(0===(W=eN(W,H))&&H.ended)return 0===H.length&&eq(this),null;var Q=H.needReadable;return et("need readable",Q),(0===H.length||H.length-W<H.highWaterMark)&&et("length less than watermark",Q=!0),H.ended||H.reading?et("reading or ended",Q=!1):Q&&(et("do read"),H.reading=!0,H.sync=!0,0===H.length&&(H.needReadable=!0),this._read(H.highWaterMark),H.sync=!1,H.reading||(W=eN(J,H))),null===(G=W>0?eG(W,H):null)?(H.needReadable=H.length<=H.highWaterMark,W=0):(H.length-=W,H.awaitDrain=0),0===H.length&&(H.ended||(H.needReadable=!0),J!==W&&H.ended&&eq(this)),null!==G&&this.emit("data",G),G},eM.prototype._read=function(W){eE(this,new e_("_read()"))},eM.prototype.pipe=function(W,G){var H=this,J=this._readableState;switch(J.pipesCount){case 0:J.pipes=W;break;case 1:J.pipes=[J.pipes,W];break;default:J.pipes.push(W)}J.pipesCount+=1,et("pipe count=%d opts=%j",J.pipesCount,G);var ee=G&&!1===G.end||W===Q.stdout||W===Q.stderr?ey:ei;function eo(W,G){et("onunpipe"),W===H&&G&&!1===G.hasUnpiped&&(G.hasUnpiped=!0,ec())}function ei(){et("onend"),W.end()}J.endEmitted?Q.nextTick(ee):H.once("end",ee),W.on("unpipe",eo);var ea=eF(H);W.on("drain",ea);var eu=!1;function ec(){et("cleanup"),W.removeListener("close",eh),W.removeListener("finish",ep),W.removeListener("drain",ea),W.removeListener("error",ed),W.removeListener("unpipe",eo),H.removeListener("end",ei),H.removeListener("end",ey),H.removeListener("data",ef),eu=!0,J.awaitDrain&&(!W._writableState||W._writableState.needDrain)&&ea()}function ef(G){et("ondata");var Q=W.write(G);et("dest.write",Q),!1===Q&&((1===J.pipesCount&&J.pipes===W||J.pipesCount>1&&-1!==eV(J.pipes,W))&&!eu&&(et("false write response, pause",J.awaitDrain),J.awaitDrain++),H.pause())}function ed(G){et("onerror",G),ey(),W.removeListener("error",ed),0===es(W,"error")&&eE(W,G)}function eh(){W.removeListener("finish",ep),ey()}function ep(){et("onfinish"),W.removeListener("close",eh),ey()}function ey(){et("unpipe"),H.unpipe(W)}return H.on("data",ef),eA(W,"error",ed),W.once("close",eh),W.once("finish",ep),W.emit("pipe",H),J.flowing||(et("pipe resume"),H.resume()),W},eM.prototype.unpipe=function(W){var G=this._readableState,H={hasUnpiped:!1};if(0===G.pipesCount)return this;if(1===G.pipesCount)return W&&W!==G.pipes||(W||(W=G.pipes),G.pipes=null,G.pipesCount=0,G.flowing=!1,W&&W.emit("unpipe",this,H)),this;if(!W){var J=G.pipes,Q=G.pipesCount;G.pipes=null,G.pipesCount=0,G.flowing=!1;for(var ee=0;ee<Q;ee++)J[ee].emit("unpipe",this,{hasUnpiped:!1});return this}var et=eV(G.pipes,W);return -1===et||(G.pipes.splice(et,1),G.pipesCount-=1,1===G.pipesCount&&(G.pipes=G.pipes[0]),W.emit("unpipe",this,H)),this},eM.prototype.on=function(W,G){var H=eu.prototype.on.call(this,W,G),J=this._readableState;return"data"===W?(J.readableListening=this.listenerCount("readable")>0,!1!==J.flowing&&this.resume()):"readable"!==W||J.endEmitted||J.readableListening||(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,et("on readable",J.length,J.reading),J.length?eR(this):J.reading||Q.nextTick(eB,this)),H},eM.prototype.addListener=eM.prototype.on,eM.prototype.removeListener=function(W,G){var H=eu.prototype.removeListener.call(this,W,G);return"readable"===W&&Q.nextTick(e$,this),H},eM.prototype.removeAllListeners=function(W){var G=eu.prototype.removeAllListeners.apply(this,arguments);return("readable"===W||void 0===W)&&Q.nextTick(e$,this),G},eM.prototype.resume=function(){var W=this._readableState;return W.flowing||(et("resume"),W.flowing=!W.readableListening,eK(this,W)),W.paused=!1,this},eM.prototype.pause=function(){return et("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(et("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},eM.prototype.wrap=function(W){var G=this,H=this._readableState,J=!1;for(var Q in W.on("end",function(){if(et("wrapped end"),H.decoder&&!H.ended){var W=H.decoder.end();W&&W.length&&G.push(W)}G.push(null)}),W.on("data",function(Q){et("wrapped data"),H.decoder&&(Q=H.decoder.write(Q)),(!H.objectMode||null!=Q)&&(H.objectMode||Q&&Q.length)&&(G.push(Q)||(J=!0,W.pause()))}),W)void 0===this[Q]&&"function"==typeof W[Q]&&(this[Q]=function(G){return function(){return W[G].apply(W,arguments)}}(Q));for(var ee=0;ee<eO.length;ee++)W.on(eO[ee],this.emit.bind(this,eO[ee]));return this._read=function(G){et("wrapped _read",G),J&&(J=!1,W.resume())},this},"function"==typeof Symbol&&(eM.prototype[Symbol.asyncIterator]=function(){return void 0===ei&&(ei=J(871)),ei(this)}),Object.defineProperty(eM.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(eM.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(eM.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(W){this._readableState&&(this._readableState.flowing=W)}}),eM._fromList=eG,Object.defineProperty(eM.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(eM.from=function(W,G){return void 0===ea&&(ea=J(727)),ea(eM,W,G)})},170:function(W,G,H){"use strict";W.exports=es;var J=H(646).q,Q=J.ERR_METHOD_NOT_IMPLEMENTED,ee=J.ERR_MULTIPLE_CALLBACK,et=J.ERR_TRANSFORM_ALREADY_TRANSFORMING,eo=J.ERR_TRANSFORM_WITH_LENGTH_0,ei=H(403);function ea(W,G){var H=this._transformState;H.transforming=!1;var J=H.writecb;if(null===J)return this.emit("error",new ee);H.writechunk=null,H.writecb=null,null!=G&&this.push(G),J(W);var Q=this._readableState;Q.reading=!1,(Q.needReadable||Q.length<Q.highWaterMark)&&this._read(Q.highWaterMark)}function es(W){if(!(this instanceof es))return new es(W);ei.call(this,W),this._transformState={afterTransform:ea.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,W&&("function"==typeof W.transform&&(this._transform=W.transform),"function"==typeof W.flush&&(this._flush=W.flush)),this.on("prefinish",eu)}function eu(){var W=this;"function"!=typeof this._flush||this._readableState.destroyed?ec(this,null,null):this._flush(function(G,H){ec(W,G,H)})}function ec(W,G,H){if(G)return W.emit("error",G);if(null!=H&&W.push(H),W._writableState.length)throw new eo;if(W._transformState.transforming)throw new et;return W.push(null)}H(782)(es,ei),es.prototype.push=function(W,G){return this._transformState.needTransform=!1,ei.prototype.push.call(this,W,G)},es.prototype._transform=function(W,G,H){H(new Q("_transform()"))},es.prototype._write=function(W,G,H){var J=this._transformState;if(J.writecb=H,J.writechunk=W,J.writeencoding=G,!J.transforming){var Q=this._readableState;(J.needTransform||Q.needReadable||Q.length<Q.highWaterMark)&&this._read(Q.highWaterMark)}},es.prototype._read=function(W){var G=this._transformState;null===G.writechunk||G.transforming?G.needTransform=!0:(G.transforming=!0,this._transform(G.writechunk,G.writeencoding,G.afterTransform))},es.prototype._destroy=function(W,G){ei.prototype._destroy.call(this,W,function(W){G(W)})}},337:function(W,G,J){"use strict";function ee(W){var G=this;this.next=null,this.entry=null,this.finish=function(){eW(G,W)}}W.exports=eP,eP.WritableState=eA;var et,eo,ei={deprecate:J(769)},ea=J(678),es=J(300).Buffer,eu=H.g.Uint8Array||function(){};function ec(W){return es.from(W)}function ef(W){return es.isBuffer(W)||W instanceof eu}var ed=J(25),eh=J(776).getHighWaterMark,ep=J(646).q,ey=ep.ERR_INVALID_ARG_TYPE,ev=ep.ERR_METHOD_NOT_IMPLEMENTED,em=ep.ERR_MULTIPLE_CALLBACK,eg=ep.ERR_STREAM_CANNOT_PIPE,eb=ep.ERR_STREAM_DESTROYED,ew=ep.ERR_STREAM_NULL_VALUES,e_=ep.ERR_STREAM_WRITE_AFTER_END,eS=ep.ERR_UNKNOWN_ENCODING,eE=ed.errorOrDestroy;function eO(){}function eA(W,G,H){et=et||J(403),W=W||{},"boolean"!=typeof H&&(H=G instanceof et),this.objectMode=!!W.objectMode,H&&(this.objectMode=this.objectMode||!!W.writableObjectMode),this.highWaterMark=eh(this,W,"writableHighWaterMark",H),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Q=!1===W.decodeStrings;this.decodeStrings=!Q,this.defaultEncoding=W.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(W){ek(G,W)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==W.emitClose,this.autoDestroy=!!W.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ee(this)}function eP(W){var G=this instanceof(et=et||J(403));if(!G&&!eo.call(eP,this))return new eP(W);this._writableState=new eA(W,this,G),this.writable=!0,W&&("function"==typeof W.write&&(this._write=W.write),"function"==typeof W.writev&&(this._writev=W.writev),"function"==typeof W.destroy&&(this._destroy=W.destroy),"function"==typeof W.final&&(this._final=W.final)),ea.call(this)}function eM(W,G){var H=new e_;eE(W,H),Q.nextTick(G,H)}function ej(W,G,H,J){var ee;return null===H?ee=new ew:"string"==typeof H||G.objectMode||(ee=new ey("chunk",["string","Buffer"],H)),!ee||(eE(W,ee),Q.nextTick(J,ee),!1)}function eT(W,G,H){return W.objectMode||!1===W.decodeStrings||"string"!=typeof G||(G=es.from(G,H)),G}function ex(W,G,H,J,Q,ee){if(!H){var et=eT(G,J,Q);J!==et&&(H=!0,Q="buffer",J=et)}var eo=G.objectMode?1:J.length;G.length+=eo;var ei=G.length<G.highWaterMark;if(ei||(G.needDrain=!0),G.writing||G.corked){var ea=G.lastBufferedRequest;G.lastBufferedRequest={chunk:J,encoding:Q,isBuf:H,callback:ee,next:null},ea?ea.next=G.lastBufferedRequest:G.bufferedRequest=G.lastBufferedRequest,G.bufferedRequestCount+=1}else eI(W,G,!1,eo,J,Q,ee);return ei}function eI(W,G,H,J,Q,ee,et){G.writelen=J,G.writecb=et,G.writing=!0,G.sync=!0,G.destroyed?G.onwrite(new eb("write")):H?W._writev(Q,G.onwrite):W._write(Q,ee,G.onwrite),G.sync=!1}function eC(W,G,H,J,ee){--G.pendingcb,H?(Q.nextTick(ee,J),Q.nextTick(eB,W,G),W._writableState.errorEmitted=!0,eE(W,J)):(ee(J),W._writableState.errorEmitted=!0,eE(W,J),eB(W,G))}function eN(W){W.writing=!1,W.writecb=null,W.length-=W.writelen,W.writelen=0}function ek(W,G){var H=W._writableState,J=H.sync,ee=H.writecb;if("function"!=typeof ee)throw new em;if(eN(H),G)eC(W,H,J,G,ee);else{var et=eU(H)||W.destroyed;et||H.corked||H.bufferProcessing||!H.bufferedRequest||eL(W,H),J?Q.nextTick(eR,W,H,et,ee):eR(W,H,et,ee)}}function eR(W,G,H,J){H||eD(W,G),G.pendingcb--,J(),eB(W,G)}function eD(W,G){0===G.length&&G.needDrain&&(G.needDrain=!1,W.emit("drain"))}function eL(W,G){G.bufferProcessing=!0;var H=G.bufferedRequest;if(W._writev&&H&&H.next){var J=Array(G.bufferedRequestCount),Q=G.corkedRequestsFree;Q.entry=H;for(var et=0,eo=!0;H;)J[et]=H,H.isBuf||(eo=!1),H=H.next,et+=1;J.allBuffers=eo,eI(W,G,!0,G.length,J,"",Q.finish),G.pendingcb++,G.lastBufferedRequest=null,Q.next?(G.corkedRequestsFree=Q.next,Q.next=null):G.corkedRequestsFree=new ee(G),G.bufferedRequestCount=0}else{for(;H;){var ei=H.chunk,ea=H.encoding,es=H.callback,eu=G.objectMode?1:ei.length;if(eI(W,G,!1,eu,ei,ea,es),H=H.next,G.bufferedRequestCount--,G.writing)break}null===H&&(G.lastBufferedRequest=null)}G.bufferedRequest=H,G.bufferProcessing=!1}function eU(W){return W.ending&&0===W.length&&null===W.bufferedRequest&&!W.finished&&!W.writing}function eF(W,G){W._final(function(H){G.pendingcb--,H&&eE(W,H),G.prefinished=!0,W.emit("prefinish"),eB(W,G)})}function e$(W,G){G.prefinished||G.finalCalled||("function"!=typeof W._final||G.destroyed?(G.prefinished=!0,W.emit("prefinish")):(G.pendingcb++,G.finalCalled=!0,Q.nextTick(eF,W,G)))}function eB(W,G){var H=eU(G);if(H&&(e$(W,G),0===G.pendingcb&&(G.finished=!0,W.emit("finish"),G.autoDestroy))){var J=W._readableState;(!J||J.autoDestroy&&J.endEmitted)&&W.destroy()}return H}function eK(W,G,H){G.ending=!0,eB(W,G),H&&(G.finished?Q.nextTick(H):W.once("finish",H)),G.ended=!0,W.writable=!1}function eW(W,G,H){var J=W.entry;for(W.entry=null;J;){var Q=J.callback;G.pendingcb--,Q(H),J=J.next}G.corkedRequestsFree.next=W}J(782)(eP,ea),eA.prototype.getBuffer=function(){for(var W=this.bufferedRequest,G=[];W;)G.push(W),W=W.next;return G},function(){try{Object.defineProperty(eA.prototype,"buffer",{get:ei.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(W){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(eo=Function.prototype[Symbol.hasInstance],Object.defineProperty(eP,Symbol.hasInstance,{value:function(W){return!!eo.call(this,W)||this===eP&&W&&W._writableState instanceof eA}})):eo=function(W){return W instanceof this},eP.prototype.pipe=function(){eE(this,new eg)},eP.prototype.write=function(W,G,H){var J=this._writableState,Q=!1,ee=!J.objectMode&&ef(W);return ee&&!es.isBuffer(W)&&(W=ec(W)),"function"==typeof G&&(H=G,G=null),ee?G="buffer":G||(G=J.defaultEncoding),"function"!=typeof H&&(H=eO),J.ending?eM(this,H):(ee||ej(this,J,W,H))&&(J.pendingcb++,Q=ex(this,J,ee,W,G,H)),Q},eP.prototype.cork=function(){this._writableState.corked++},eP.prototype.uncork=function(){var W=this._writableState;!W.corked||(W.corked--,W.writing||W.corked||W.bufferProcessing||!W.bufferedRequest||eL(this,W))},eP.prototype.setDefaultEncoding=function(W){if("string"==typeof W&&(W=W.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((W+"").toLowerCase())>-1))throw new eS(W);return this._writableState.defaultEncoding=W,this},Object.defineProperty(eP.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(eP.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),eP.prototype._write=function(W,G,H){H(new ev("_write()"))},eP.prototype._writev=null,eP.prototype.end=function(W,G,H){var J=this._writableState;return"function"==typeof W?(H=W,W=null,G=null):"function"==typeof G&&(H=G,G=null),null!=W&&this.write(W,G),J.corked&&(J.corked=1,this.uncork()),J.ending||eK(this,J,H),this},Object.defineProperty(eP.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(eP.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(W){this._writableState&&(this._writableState.destroyed=W)}}),eP.prototype.destroy=ed.destroy,eP.prototype._undestroy=ed.undestroy,eP.prototype._destroy=function(W,G){G(W)}},871:function(W,G,H){"use strict";function J(W,G,H){return G in W?Object.defineProperty(W,G,{value:H,enumerable:!0,configurable:!0,writable:!0}):W[G]=H,W}var ee,et=H(698),eo=Symbol("lastResolve"),ei=Symbol("lastReject"),ea=Symbol("error"),es=Symbol("ended"),eu=Symbol("lastPromise"),ec=Symbol("handlePromise"),ef=Symbol("stream");function ed(W,G){return{value:W,done:G}}function eh(W){var G=W[eo];if(null!==G){var H=W[ef].read();null!==H&&(W[eu]=null,W[eo]=null,W[ei]=null,G(ed(H,!1)))}}function ep(W){Q.nextTick(eh,W)}function ey(W,G){return function(H,J){W.then(function(){if(G[es]){H(ed(void 0,!0));return}G[ec](H,J)},J)}}var ev=Object.getPrototypeOf(function(){}),em=Object.setPrototypeOf((J(ee={get stream(){return this[ef]},next:function(){var W,G=this,H=this[ea];if(null!==H)return Promise.reject(H);if(this[es])return Promise.resolve(ed(void 0,!0));if(this[ef].destroyed)return new Promise(function(W,H){Q.nextTick(function(){G[ea]?H(G[ea]):W(ed(void 0,!0))})});var J=this[eu];if(J)W=new Promise(ey(J,this));else{var ee=this[ef].read();if(null!==ee)return Promise.resolve(ed(ee,!1));W=new Promise(this[ec])}return this[eu]=W,W}},Symbol.asyncIterator,function(){return this}),J(ee,"return",function(){var W=this;return new Promise(function(G,H){W[ef].destroy(null,function(W){if(W){H(W);return}G(ed(void 0,!0))})})}),ee),ev),eg=function(W){var G,H=Object.create(em,(J(G={},ef,{value:W,writable:!0}),J(G,eo,{value:null,writable:!0}),J(G,ei,{value:null,writable:!0}),J(G,ea,{value:null,writable:!0}),J(G,es,{value:W._readableState.endEmitted,writable:!0}),J(G,ec,{value:function(W,G){var J=H[ef].read();J?(H[eu]=null,H[eo]=null,H[ei]=null,W(ed(J,!1))):(H[eo]=W,H[ei]=G)},writable:!0}),G));return H[eu]=null,et(W,function(W){if(W&&"ERR_STREAM_PREMATURE_CLOSE"!==W.code){var G=H[ei];null!==G&&(H[eu]=null,H[eo]=null,H[ei]=null,G(W)),H[ea]=W;return}var J=H[eo];null!==J&&(H[eu]=null,H[eo]=null,H[ei]=null,J(ed(void 0,!0))),H[es]=!0}),W.on("readable",ep.bind(null,H)),H};W.exports=eg},379:function(W,G,H){"use strict";function J(W,G){var H=Object.keys(W);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(W);G&&(J=J.filter(function(G){return Object.getOwnPropertyDescriptor(W,G).enumerable})),H.push.apply(H,J)}return H}function Q(W){for(var G=1;G<arguments.length;G++){var H=null!=arguments[G]?arguments[G]:{};G%2?J(Object(H),!0).forEach(function(G){ee(W,G,H[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(H)):J(Object(H)).forEach(function(G){Object.defineProperty(W,G,Object.getOwnPropertyDescriptor(H,G))})}return W}function ee(W,G,H){return G in W?Object.defineProperty(W,G,{value:H,enumerable:!0,configurable:!0,writable:!0}):W[G]=H,W}function et(W,G){if(!(W instanceof G))throw TypeError("Cannot call a class as a function")}function eo(W,G){for(var H=0;H<G.length;H++){var J=G[H];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(W,J.key,J)}}function ei(W,G,H){return G&&eo(W.prototype,G),H&&eo(W,H),W}var ea=H(300).Buffer,es=H(837).inspect,eu=es&&es.custom||"inspect";function ec(W,G,H){ea.prototype.copy.call(W,G,H)}W.exports=function(){function W(){et(this,W),this.head=null,this.tail=null,this.length=0}return ei(W,[{key:"push",value:function(W){var G={data:W,next:null};this.length>0?this.tail.next=G:this.head=G,this.tail=G,++this.length}},{key:"unshift",value:function(W){var G={data:W,next:this.head};0===this.length&&(this.tail=G),this.head=G,++this.length}},{key:"shift",value:function(){if(0!==this.length){var W=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,W}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(W){if(0===this.length)return"";for(var G=this.head,H=""+G.data;G=G.next;)H+=W+G.data;return H}},{key:"concat",value:function(W){if(0===this.length)return ea.alloc(0);for(var G=ea.allocUnsafe(W>>>0),H=this.head,J=0;H;)ec(H.data,G,J),J+=H.data.length,H=H.next;return G}},{key:"consume",value:function(W,G){var H;return W<this.head.data.length?(H=this.head.data.slice(0,W),this.head.data=this.head.data.slice(W)):H=W===this.head.data.length?this.shift():G?this._getString(W):this._getBuffer(W),H}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(W){var G=this.head,H=1,J=G.data;for(W-=J.length;G=G.next;){var Q=G.data,ee=W>Q.length?Q.length:W;if(ee===Q.length?J+=Q:J+=Q.slice(0,W),0==(W-=ee)){ee===Q.length?(++H,G.next?this.head=G.next:this.head=this.tail=null):(this.head=G,G.data=Q.slice(ee));break}++H}return this.length-=H,J}},{key:"_getBuffer",value:function(W){var G=ea.allocUnsafe(W),H=this.head,J=1;for(H.data.copy(G),W-=H.data.length;H=H.next;){var Q=H.data,ee=W>Q.length?Q.length:W;if(Q.copy(G,G.length-W,0,ee),0==(W-=ee)){ee===Q.length?(++J,H.next?this.head=H.next:this.head=this.tail=null):(this.head=H,H.data=Q.slice(ee));break}++J}return this.length-=J,G}},{key:eu,value:function(W,G){return es(this,Q({},G,{depth:0,customInspect:!1}))}}]),W}()},25:function(W){"use strict";function G(W,G){var ee=this,eo=this._readableState&&this._readableState.destroyed,ei=this._writableState&&this._writableState.destroyed;return eo||ei?G?G(W):W&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Q.nextTick(et,this,W)):Q.nextTick(et,this,W)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(W||null,function(W){!G&&W?ee._writableState?ee._writableState.errorEmitted?Q.nextTick(J,ee):(ee._writableState.errorEmitted=!0,Q.nextTick(H,ee,W)):Q.nextTick(H,ee,W):G?(Q.nextTick(J,ee),G(W)):Q.nextTick(J,ee)})),this}function H(W,G){et(W,G),J(W)}function J(W){(!W._writableState||W._writableState.emitClose)&&(!W._readableState||W._readableState.emitClose)&&W.emit("close")}function ee(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function et(W,G){W.emit("error",G)}function eo(W,G){var H=W._readableState,J=W._writableState;H&&H.autoDestroy||J&&J.autoDestroy?W.destroy(G):W.emit("error",G)}W.exports={destroy:G,undestroy:ee,errorOrDestroy:eo}},698:function(W,G,H){"use strict";var J=H(646).q.ERR_STREAM_PREMATURE_CLOSE;function Q(W){var G=!1;return function(){if(!G){G=!0;for(var H=arguments.length,J=Array(H),Q=0;Q<H;Q++)J[Q]=arguments[Q];W.apply(this,J)}}}function ee(){}function et(W){return W.setHeader&&"function"==typeof W.abort}function eo(W,G,H){if("function"==typeof G)return eo(W,null,G);G||(G={}),H=Q(H||ee);var ei=G.readable||!1!==G.readable&&W.readable,ea=G.writable||!1!==G.writable&&W.writable,es=function(){W.writable||ec()},eu=W._writableState&&W._writableState.finished,ec=function(){ea=!1,eu=!0,ei||H.call(W)},ef=W._readableState&&W._readableState.endEmitted,ed=function(){ei=!1,ef=!0,ea||H.call(W)},eh=function(G){H.call(W,G)},ep=function(){var G;return ei&&!ef?(W._readableState&&W._readableState.ended||(G=new J),H.call(W,G)):ea&&!eu?(W._writableState&&W._writableState.ended||(G=new J),H.call(W,G)):void 0},ey=function(){W.req.on("finish",ec)};return et(W)?(W.on("complete",ec),W.on("abort",ep),W.req?ey():W.on("request",ey)):ea&&!W._writableState&&(W.on("end",es),W.on("close",es)),W.on("end",ed),W.on("finish",ec),!1!==G.error&&W.on("error",eh),W.on("close",ep),function(){W.removeListener("complete",ec),W.removeListener("abort",ep),W.removeListener("request",ey),W.req&&W.req.removeListener("finish",ec),W.removeListener("end",es),W.removeListener("close",es),W.removeListener("finish",ec),W.removeListener("end",ed),W.removeListener("error",eh),W.removeListener("close",ep)}}W.exports=eo},727:function(W,G,H){"use strict";function J(W,G,H,J,Q,ee,et){try{var eo=W[ee](et),ei=eo.value}catch(W){H(W);return}eo.done?G(ei):Promise.resolve(ei).then(J,Q)}function Q(W){return function(){var G=this,H=arguments;return new Promise(function(Q,ee){var et=W.apply(G,H);function eo(W){J(et,Q,ee,eo,ei,"next",W)}function ei(W){J(et,Q,ee,eo,ei,"throw",W)}eo(void 0)})}}function ee(W,G){var H=Object.keys(W);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(W);G&&(J=J.filter(function(G){return Object.getOwnPropertyDescriptor(W,G).enumerable})),H.push.apply(H,J)}return H}function et(W){for(var G=1;G<arguments.length;G++){var H=null!=arguments[G]?arguments[G]:{};G%2?ee(Object(H),!0).forEach(function(G){eo(W,G,H[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(H)):ee(Object(H)).forEach(function(G){Object.defineProperty(W,G,Object.getOwnPropertyDescriptor(H,G))})}return W}function eo(W,G,H){return G in W?Object.defineProperty(W,G,{value:H,enumerable:!0,configurable:!0,writable:!0}):W[G]=H,W}var ei=H(646).q.ERR_INVALID_ARG_TYPE;function ea(W,G,H){if(G&&"function"==typeof G.next)J=G;else if(G&&G[Symbol.asyncIterator])J=G[Symbol.asyncIterator]();else if(G&&G[Symbol.iterator])J=G[Symbol.iterator]();else throw new ei("iterable",["Iterable"],G);var J,ee=new W(et({objectMode:!0},H)),eo=!1;function ea(){return es.apply(this,arguments)}function es(){return(es=Q(function*(){try{var W=yield J.next(),G=W.value;W.done?ee.push(null):ee.push((yield G))?ea():eo=!1}catch(W){ee.destroy(W)}})).apply(this,arguments)}return ee._read=function(){eo||(eo=!0,ea())},ee}W.exports=ea},442:function(W,G,H){"use strict";function J(W){var G=!1;return function(){G||(G=!0,W.apply(void 0,arguments))}}var Q,ee=H(646).q,et=ee.ERR_MISSING_ARGS,eo=ee.ERR_STREAM_DESTROYED;function ei(W){if(W)throw W}function ea(W){return W.setHeader&&"function"==typeof W.abort}function es(W,G,ee,et){et=J(et);var ei=!1;W.on("close",function(){ei=!0}),void 0===Q&&(Q=H(698)),Q(W,{readable:G,writable:ee},function(W){if(W)return et(W);ei=!0,et()});var es=!1;return function(G){if(!ei&&!es){if(es=!0,ea(W))return W.abort();if("function"==typeof W.destroy)return W.destroy();et(G||new eo("pipe"))}}}function eu(W){W()}function ec(W,G){return W.pipe(G)}function ef(W){return W.length&&"function"==typeof W[W.length-1]?W.pop():ei}function ed(){for(var W,G=arguments.length,H=Array(G),J=0;J<G;J++)H[J]=arguments[J];var Q=ef(H);if(Array.isArray(H[0])&&(H=H[0]),H.length<2)throw new et("streams");var ee=H.map(function(G,J){var et=J<H.length-1;return es(G,et,J>0,function(G){W||(W=G),G&&ee.forEach(eu),et||(ee.forEach(eu),Q(W))})});return H.reduce(ec)}W.exports=ed},776:function(W,G,H){"use strict";var J=H(646).q.ERR_INVALID_OPT_VALUE;function Q(W,G,H){return null!=W.highWaterMark?W.highWaterMark:G?W[H]:null}function ee(W,G,H,ee){var et=Q(G,ee,H);if(null!=et){if(!(isFinite(et)&&Math.floor(et)===et)||et<0)throw new J(ee?H:"highWaterMark",et);return Math.floor(et)}return W.objectMode?16:16384}W.exports={getHighWaterMark:ee}},678:function(W,G,H){W.exports=H(781)},55:function(W,G,H){var J=H(300),Q=J.Buffer;function ee(W,G){for(var H in W)G[H]=W[H]}function et(W,G,H){return Q(W,G,H)}Q.from&&Q.alloc&&Q.allocUnsafe&&Q.allocUnsafeSlow?W.exports=J:(ee(J,G),G.Buffer=et),et.prototype=Object.create(Q.prototype),ee(Q,et),et.from=function(W,G,H){if("number"==typeof W)throw TypeError("Argument must not be a number");return Q(W,G,H)},et.alloc=function(W,G,H){if("number"!=typeof W)throw TypeError("Argument must be a number");var J=Q(W);return void 0!==G?"string"==typeof H?J.fill(G,H):J.fill(G):J.fill(0),J},et.allocUnsafe=function(W){if("number"!=typeof W)throw TypeError("Argument must be a number");return Q(W)},et.allocUnsafeSlow=function(W){if("number"!=typeof W)throw TypeError("Argument must be a number");return J.SlowBuffer(W)}},173:function(W,G,H){W.exports=Q;var J=H(361).EventEmitter;function Q(){J.call(this)}H(782)(Q,J),Q.Readable=H(709),Q.Writable=H(337),Q.Duplex=H(403),Q.Transform=H(170),Q.PassThrough=H(889),Q.finished=H(698),Q.pipeline=H(442),Q.Stream=Q,Q.prototype.pipe=function(W,G){var H=this;function Q(G){W.writable&&!1===W.write(G)&&H.pause&&H.pause()}function ee(){H.readable&&H.resume&&H.resume()}H.on("data",Q),W.on("drain",ee),W._isStdio||G&&!1===G.end||(H.on("end",eo),H.on("close",ei));var et=!1;function eo(){et||(et=!0,W.end())}function ei(){et||(et=!0,"function"==typeof W.destroy&&W.destroy())}function ea(W){if(es(),0===J.listenerCount(this,"error"))throw W}function es(){H.removeListener("data",Q),W.removeListener("drain",ee),H.removeListener("end",eo),H.removeListener("close",ei),H.removeListener("error",ea),W.removeListener("error",ea),H.removeListener("end",es),H.removeListener("close",es),W.removeListener("close",es)}return H.on("error",ea),W.on("error",ea),H.on("end",es),H.on("close",es),W.on("close",es),W.emit("pipe",H),W}},704:function(W,G,H){"use strict";var J=H(55).Buffer,Q=J.isEncoding||function(W){switch((W=""+W)&&W.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ee(W){var G;if(!W)return"utf8";for(;;)switch(W){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return W;default:if(G)return;W=(""+W).toLowerCase(),G=!0}}function et(W){var G=ee(W);if("string"!=typeof G&&(J.isEncoding===Q||!Q(W)))throw Error("Unknown encoding: "+W);return G||W}function eo(W){var G;switch(this.encoding=et(W),this.encoding){case"utf16le":this.text=ed,this.end=eh,G=4;break;case"utf8":this.fillLast=eu,G=4;break;case"base64":this.text=ep,this.end=ey,G=3;break;default:this.write=ev,this.end=em;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=J.allocUnsafe(G)}function ei(W){return W<=127?0:W>>5==6?2:W>>4==14?3:W>>3==30?4:W>>6==2?-1:-2}function ea(W,G,H){var J=G.length-1;if(J<H)return 0;var Q=ei(G[J]);return Q>=0?(Q>0&&(W.lastNeed=Q-1),Q):--J<H||-2===Q?0:(Q=ei(G[J]))>=0?(Q>0&&(W.lastNeed=Q-2),Q):--J<H||-2===Q?0:(Q=ei(G[J]))>=0?(Q>0&&(2===Q?Q=0:W.lastNeed=Q-3),Q):0}function es(W,G,H){if((192&G[0])!=128)return W.lastNeed=0,"�";if(W.lastNeed>1&&G.length>1){if((192&G[1])!=128)return W.lastNeed=1,"�";if(W.lastNeed>2&&G.length>2&&(192&G[2])!=128)return W.lastNeed=2,"�"}}function eu(W){var G=this.lastTotal-this.lastNeed,H=es(this,W,G);return void 0!==H?H:this.lastNeed<=W.length?(W.copy(this.lastChar,G,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(W.copy(this.lastChar,G,0,W.length),this.lastNeed-=W.length)}function ec(W,G){var H=ea(this,W,G);if(!this.lastNeed)return W.toString("utf8",G);this.lastTotal=H;var J=W.length-(H-this.lastNeed);return W.copy(this.lastChar,0,J),W.toString("utf8",G,J)}function ef(W){var G=W&&W.length?this.write(W):"";return this.lastNeed?G+"�":G}function ed(W,G){if((W.length-G)%2==0){var H=W.toString("utf16le",G);if(H){var J=H.charCodeAt(H.length-1);if(J>=55296&&J<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],H.slice(0,-1)}return H}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",G,W.length-1)}function eh(W){var G=W&&W.length?this.write(W):"";if(this.lastNeed){var H=this.lastTotal-this.lastNeed;return G+this.lastChar.toString("utf16le",0,H)}return G}function ep(W,G){var H=(W.length-G)%3;return 0===H?W.toString("base64",G):(this.lastNeed=3-H,this.lastTotal=3,1===H?this.lastChar[0]=W[W.length-1]:(this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1]),W.toString("base64",G,W.length-H))}function ey(W){var G=W&&W.length?this.write(W):"";return this.lastNeed?G+this.lastChar.toString("base64",0,3-this.lastNeed):G}function ev(W){return W.toString(this.encoding)}function em(W){return W&&W.length?this.write(W):""}G.s=eo,eo.prototype.write=function(W){var G,H;if(0===W.length)return"";if(this.lastNeed){if(void 0===(G=this.fillLast(W)))return"";H=this.lastNeed,this.lastNeed=0}else H=0;return H<W.length?G?G+this.text(W,H):this.text(W,H):G||""},eo.prototype.end=ef,eo.prototype.text=ec,eo.prototype.fillLast=function(W){if(this.lastNeed<=W.length)return W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,W.length),this.lastNeed-=W.length}},769:function(W){function G(W,G){if(J("noDeprecation"))return W;var H=!1;return function(){if(!H){if(J("throwDeprecation"))throw Error(G);J("traceDeprecation")?console.trace(G):console.warn(G),H=!0}return W.apply(this,arguments)}}function J(W){try{if(!H.g.localStorage)return!1}catch(W){return!1}var G=H.g.localStorage[W];return null!=G&&"true"===String(G).toLowerCase()}W.exports=G},300:function(W){"use strict";W.exports=H(80854)},361:function(W){"use strict";W.exports=H(68495)},781:function(W){"use strict";W.exports=H(68495).EventEmitter},837:function(W){"use strict";W.exports=H(88110)}},ee={};function et(W){var H=ee[W];if(void 0!==H)return H.exports;var J=ee[W]={exports:{}},Q=!0;try{G[W](J,J.exports,et),Q=!1}finally{Q&&delete ee[W]}return J.exports}et.ab=J+"/";var eo=et(173);W.exports=eo}()},75152:function(W,G,H){var J="/",Q=H(20352),ee=H(80854).Buffer;!function(){var G={523:function(W){W.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},782:function(W){"function"==typeof Object.create?W.exports=function(W,G){G&&(W.super_=G,W.prototype=Object.create(G.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}))}:W.exports=function(W,G){if(G){W.super_=G;var H=function(){};H.prototype=G.prototype,W.prototype=new H,W.prototype.constructor=W}}},646:function(W){"use strict";let G={};function H(W,H,J){function Q(W,G,J){return"string"==typeof H?H:H(W,G,J)}J||(J=Error);class ee extends J{constructor(W,G,H){super(Q(W,G,H))}}ee.prototype.name=J.name,ee.prototype.code=W,G[W]=ee}function J(W,G){if(!Array.isArray(W))return`of ${G} ${String(W)}`;{let H=W.length;return(W=W.map(W=>String(W)),H>2)?`one of ${G} ${W.slice(0,H-1).join(", ")}, or `+W[H-1]:2===H?`one of ${G} ${W[0]} or ${W[1]}`:`of ${G} ${W[0]}`}}function Q(W,G,H){return W.substr(!H||H<0?0:+H,G.length)===G}function ee(W,G,H){return(void 0===H||H>W.length)&&(H=W.length),W.substring(H-G.length,H)===G}function et(W,G,H){return"number"!=typeof H&&(H=0),!(H+G.length>W.length)&&-1!==W.indexOf(G,H)}H("ERR_INVALID_OPT_VALUE",function(W,G){return'The value "'+G+'" is invalid for option "'+W+'"'},TypeError),H("ERR_INVALID_ARG_TYPE",function(W,G,H){let eo,ei;if("string"==typeof G&&Q(G,"not ")?(eo="must not be",G=G.replace(/^not /,"")):eo="must be",ee(W," argument"))ei=`The ${W} ${eo} ${J(G,"type")}`;else{let H=et(W,".")?"property":"argument";ei=`The "${W}" ${H} ${eo} ${J(G,"type")}`}return ei+`. Received type ${typeof H}`},TypeError),H("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),H("ERR_METHOD_NOT_IMPLEMENTED",function(W){return"The "+W+" method is not implemented"}),H("ERR_STREAM_PREMATURE_CLOSE","Premature close"),H("ERR_STREAM_DESTROYED",function(W){return"Cannot call "+W+" after a stream was destroyed"}),H("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),H("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),H("ERR_STREAM_WRITE_AFTER_END","write after end"),H("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),H("ERR_UNKNOWN_ENCODING",function(W){return"Unknown encoding: "+W},TypeError),H("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),W.exports.q=G},403:function(W,G,H){"use strict";var J=Object.keys||function(W){var G=[];for(var H in W)G.push(H);return G};W.exports=es;var ee=H(709),et=H(337);H(782)(es,ee);for(var eo=J(et.prototype),ei=0;ei<eo.length;ei++){var ea=eo[ei];es.prototype[ea]||(es.prototype[ea]=et.prototype[ea])}function es(W){if(!(this instanceof es))return new es(W);ee.call(this,W),et.call(this,W),this.allowHalfOpen=!0,W&&(!1===W.readable&&(this.readable=!1),!1===W.writable&&(this.writable=!1),!1===W.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",eu)))}function eu(){this._writableState.ended||Q.nextTick(ec,this)}function ec(W){W.end()}Object.defineProperty(es.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(es.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(es.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(es.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(W){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=W,this._writableState.destroyed=W)}})},889:function(W,G,H){"use strict";W.exports=Q;var J=H(170);function Q(W){if(!(this instanceof Q))return new Q(W);J.call(this,W)}H(782)(Q,J),Q.prototype._transform=function(W,G,H){H(null,W)}},709:function(W,G,J){"use strict";W.exports=eM,eM.ReadableState=eP,J(361).EventEmitter;var ee,et,eo,ei,ea,es=function(W,G){return W.listeners(G).length},eu=J(678),ec=J(300).Buffer,ef=H.g.Uint8Array||function(){};function ed(W){return ec.from(W)}function eh(W){return ec.isBuffer(W)||W instanceof ef}var ep=J(837);et=ep&&ep.debuglog?ep.debuglog("stream"):function(){};var ey=J(379),ev=J(25),em=J(776).getHighWaterMark,eg=J(646).q,eb=eg.ERR_INVALID_ARG_TYPE,ew=eg.ERR_STREAM_PUSH_AFTER_EOF,e_=eg.ERR_METHOD_NOT_IMPLEMENTED,eS=eg.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;J(782)(eM,eu);var eE=ev.errorOrDestroy,eO=["error","close","destroy","pause","resume"];function eA(W,G,H){if("function"==typeof W.prependListener)return W.prependListener(G,H);W._events&&W._events[G]?Array.isArray(W._events[G])?W._events[G].unshift(H):W._events[G]=[H,W._events[G]]:W.on(G,H)}function eP(W,G,H){ee=ee||J(403),W=W||{},"boolean"!=typeof H&&(H=G instanceof ee),this.objectMode=!!W.objectMode,H&&(this.objectMode=this.objectMode||!!W.readableObjectMode),this.highWaterMark=em(this,W,"readableHighWaterMark",H),this.buffer=new ey,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==W.emitClose,this.autoDestroy=!!W.autoDestroy,this.destroyed=!1,this.defaultEncoding=W.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,W.encoding&&(eo||(eo=J(704).s),this.decoder=new eo(W.encoding),this.encoding=W.encoding)}function eM(W){if(ee=ee||J(403),!(this instanceof eM))return new eM(W);var G=this instanceof ee;this._readableState=new eP(W,this,G),this.readable=!0,W&&("function"==typeof W.read&&(this._read=W.read),"function"==typeof W.destroy&&(this._destroy=W.destroy)),eu.call(this)}function ej(W,G,H,J,Q){et("readableAddChunk",G);var ee,eo=W._readableState;if(null===G)eo.reading=!1,ek(W,eo);else if(Q||(ee=ex(eo,G)),ee)eE(W,ee);else if(eo.objectMode||G&&G.length>0){if("string"==typeof G||eo.objectMode||Object.getPrototypeOf(G)===ec.prototype||(G=ed(G)),J)eo.endEmitted?eE(W,new eS):eT(W,eo,G,!0);else if(eo.ended)eE(W,new ew);else{if(eo.destroyed)return!1;eo.reading=!1,eo.decoder&&!H?(G=eo.decoder.write(G),eo.objectMode||0!==G.length?eT(W,eo,G,!1):eL(W,eo)):eT(W,eo,G,!1)}}else J||(eo.reading=!1,eL(W,eo));return!eo.ended&&(eo.length<eo.highWaterMark||0===eo.length)}function eT(W,G,H,J){G.flowing&&0===G.length&&!G.sync?(G.awaitDrain=0,W.emit("data",H)):(G.length+=G.objectMode?1:H.length,J?G.buffer.unshift(H):G.buffer.push(H),G.needReadable&&eR(W)),eL(W,G)}function ex(W,G){var H;return eh(G)||"string"==typeof G||void 0===G||W.objectMode||(H=new eb("chunk",["string","Buffer","Uint8Array"],G)),H}Object.defineProperty(eM.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(W){this._readableState&&(this._readableState.destroyed=W)}}),eM.prototype.destroy=ev.destroy,eM.prototype._undestroy=ev.undestroy,eM.prototype._destroy=function(W,G){G(W)},eM.prototype.push=function(W,G){var H,J=this._readableState;return J.objectMode?H=!0:"string"==typeof W&&((G=G||J.defaultEncoding)!==J.encoding&&(W=ec.from(W,G),G=""),H=!0),ej(this,W,G,!1,H)},eM.prototype.unshift=function(W){return ej(this,W,null,!0,!1)},eM.prototype.isPaused=function(){return!1===this._readableState.flowing},eM.prototype.setEncoding=function(W){eo||(eo=J(704).s);var G=new eo(W);this._readableState.decoder=G,this._readableState.encoding=this._readableState.decoder.encoding;for(var H=this._readableState.buffer.head,Q="";null!==H;)Q+=G.write(H.data),H=H.next;return this._readableState.buffer.clear(),""!==Q&&this._readableState.buffer.push(Q),this._readableState.length=Q.length,this};var eI=1073741824;function eC(W){return W>=eI?W=eI:(W--,W|=W>>>1,W|=W>>>2,W|=W>>>4,W|=W>>>8,W|=W>>>16,W++),W}function eN(W,G){return W<=0||0===G.length&&G.ended?0:G.objectMode?1:W!=W?G.flowing&&G.length?G.buffer.head.data.length:G.length:(W>G.highWaterMark&&(G.highWaterMark=eC(W)),W<=G.length)?W:G.ended?G.length:(G.needReadable=!0,0)}function ek(W,G){if(et("onEofChunk"),!G.ended){if(G.decoder){var H=G.decoder.end();H&&H.length&&(G.buffer.push(H),G.length+=G.objectMode?1:H.length)}G.ended=!0,G.sync?eR(W):(G.needReadable=!1,G.emittedReadable||(G.emittedReadable=!0,eD(W)))}}function eR(W){var G=W._readableState;et("emitReadable",G.needReadable,G.emittedReadable),G.needReadable=!1,G.emittedReadable||(et("emitReadable",G.flowing),G.emittedReadable=!0,Q.nextTick(eD,W))}function eD(W){var G=W._readableState;et("emitReadable_",G.destroyed,G.length,G.ended),!G.destroyed&&(G.length||G.ended)&&(W.emit("readable"),G.emittedReadable=!1),G.needReadable=!G.flowing&&!G.ended&&G.length<=G.highWaterMark,ez(W)}function eL(W,G){G.readingMore||(G.readingMore=!0,Q.nextTick(eU,W,G))}function eU(W,G){for(;!G.reading&&!G.ended&&(G.length<G.highWaterMark||G.flowing&&0===G.length);){var H=G.length;if(et("maybeReadMore read 0"),W.read(0),H===G.length)break}G.readingMore=!1}function eF(W){return function(){var G=W._readableState;et("pipeOnDrain",G.awaitDrain),G.awaitDrain&&G.awaitDrain--,0===G.awaitDrain&&es(W,"data")&&(G.flowing=!0,ez(W))}}function e$(W){var G=W._readableState;G.readableListening=W.listenerCount("readable")>0,G.resumeScheduled&&!G.paused?G.flowing=!0:W.listenerCount("data")>0&&W.resume()}function eB(W){et("readable nexttick read 0"),W.read(0)}function eK(W,G){G.resumeScheduled||(G.resumeScheduled=!0,Q.nextTick(eW,W,G))}function eW(W,G){et("resume",G.reading),G.reading||W.read(0),G.resumeScheduled=!1,W.emit("resume"),ez(W),G.flowing&&!G.reading&&W.read(0)}function ez(W){var G=W._readableState;for(et("flow",G.flowing);G.flowing&&null!==W.read(););}function eG(W,G){var H;return 0===G.length?null:(G.objectMode?H=G.buffer.shift():!W||W>=G.length?(H=G.decoder?G.buffer.join(""):1===G.buffer.length?G.buffer.first():G.buffer.concat(G.length),G.buffer.clear()):H=G.buffer.consume(W,G.decoder),H)}function eq(W){var G=W._readableState;et("endReadable",G.endEmitted),G.endEmitted||(G.ended=!0,Q.nextTick(eH,G,W))}function eH(W,G){if(et("endReadableNT",W.endEmitted,W.length),!W.endEmitted&&0===W.length&&(W.endEmitted=!0,G.readable=!1,G.emit("end"),W.autoDestroy)){var H=G._writableState;(!H||H.autoDestroy&&H.finished)&&G.destroy()}}function eV(W,G){for(var H=0,J=W.length;H<J;H++)if(W[H]===G)return H;return -1}eM.prototype.read=function(W){et("read",W),W=parseInt(W,10);var G,H=this._readableState,J=W;if(0!==W&&(H.emittedReadable=!1),0===W&&H.needReadable&&((0!==H.highWaterMark?H.length>=H.highWaterMark:H.length>0)||H.ended))return et("read: emitReadable",H.length,H.ended),0===H.length&&H.ended?eq(this):eR(this),null;if(0===(W=eN(W,H))&&H.ended)return 0===H.length&&eq(this),null;var Q=H.needReadable;return et("need readable",Q),(0===H.length||H.length-W<H.highWaterMark)&&et("length less than watermark",Q=!0),H.ended||H.reading?et("reading or ended",Q=!1):Q&&(et("do read"),H.reading=!0,H.sync=!0,0===H.length&&(H.needReadable=!0),this._read(H.highWaterMark),H.sync=!1,H.reading||(W=eN(J,H))),null===(G=W>0?eG(W,H):null)?(H.needReadable=H.length<=H.highWaterMark,W=0):(H.length-=W,H.awaitDrain=0),0===H.length&&(H.ended||(H.needReadable=!0),J!==W&&H.ended&&eq(this)),null!==G&&this.emit("data",G),G},eM.prototype._read=function(W){eE(this,new e_("_read()"))},eM.prototype.pipe=function(W,G){var H=this,J=this._readableState;switch(J.pipesCount){case 0:J.pipes=W;break;case 1:J.pipes=[J.pipes,W];break;default:J.pipes.push(W)}J.pipesCount+=1,et("pipe count=%d opts=%j",J.pipesCount,G);var ee=G&&!1===G.end||W===Q.stdout||W===Q.stderr?ey:ei;function eo(W,G){et("onunpipe"),W===H&&G&&!1===G.hasUnpiped&&(G.hasUnpiped=!0,ec())}function ei(){et("onend"),W.end()}J.endEmitted?Q.nextTick(ee):H.once("end",ee),W.on("unpipe",eo);var ea=eF(H);W.on("drain",ea);var eu=!1;function ec(){et("cleanup"),W.removeListener("close",eh),W.removeListener("finish",ep),W.removeListener("drain",ea),W.removeListener("error",ed),W.removeListener("unpipe",eo),H.removeListener("end",ei),H.removeListener("end",ey),H.removeListener("data",ef),eu=!0,J.awaitDrain&&(!W._writableState||W._writableState.needDrain)&&ea()}function ef(G){et("ondata");var Q=W.write(G);et("dest.write",Q),!1===Q&&((1===J.pipesCount&&J.pipes===W||J.pipesCount>1&&-1!==eV(J.pipes,W))&&!eu&&(et("false write response, pause",J.awaitDrain),J.awaitDrain++),H.pause())}function ed(G){et("onerror",G),ey(),W.removeListener("error",ed),0===es(W,"error")&&eE(W,G)}function eh(){W.removeListener("finish",ep),ey()}function ep(){et("onfinish"),W.removeListener("close",eh),ey()}function ey(){et("unpipe"),H.unpipe(W)}return H.on("data",ef),eA(W,"error",ed),W.once("close",eh),W.once("finish",ep),W.emit("pipe",H),J.flowing||(et("pipe resume"),H.resume()),W},eM.prototype.unpipe=function(W){var G=this._readableState,H={hasUnpiped:!1};if(0===G.pipesCount)return this;if(1===G.pipesCount)return W&&W!==G.pipes||(W||(W=G.pipes),G.pipes=null,G.pipesCount=0,G.flowing=!1,W&&W.emit("unpipe",this,H)),this;if(!W){var J=G.pipes,Q=G.pipesCount;G.pipes=null,G.pipesCount=0,G.flowing=!1;for(var ee=0;ee<Q;ee++)J[ee].emit("unpipe",this,{hasUnpiped:!1});return this}var et=eV(G.pipes,W);return -1===et||(G.pipes.splice(et,1),G.pipesCount-=1,1===G.pipesCount&&(G.pipes=G.pipes[0]),W.emit("unpipe",this,H)),this},eM.prototype.on=function(W,G){var H=eu.prototype.on.call(this,W,G),J=this._readableState;return"data"===W?(J.readableListening=this.listenerCount("readable")>0,!1!==J.flowing&&this.resume()):"readable"!==W||J.endEmitted||J.readableListening||(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,et("on readable",J.length,J.reading),J.length?eR(this):J.reading||Q.nextTick(eB,this)),H},eM.prototype.addListener=eM.prototype.on,eM.prototype.removeListener=function(W,G){var H=eu.prototype.removeListener.call(this,W,G);return"readable"===W&&Q.nextTick(e$,this),H},eM.prototype.removeAllListeners=function(W){var G=eu.prototype.removeAllListeners.apply(this,arguments);return("readable"===W||void 0===W)&&Q.nextTick(e$,this),G},eM.prototype.resume=function(){var W=this._readableState;return W.flowing||(et("resume"),W.flowing=!W.readableListening,eK(this,W)),W.paused=!1,this},eM.prototype.pause=function(){return et("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(et("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},eM.prototype.wrap=function(W){var G=this,H=this._readableState,J=!1;for(var Q in W.on("end",function(){if(et("wrapped end"),H.decoder&&!H.ended){var W=H.decoder.end();W&&W.length&&G.push(W)}G.push(null)}),W.on("data",function(Q){et("wrapped data"),H.decoder&&(Q=H.decoder.write(Q)),(!H.objectMode||null!=Q)&&(H.objectMode||Q&&Q.length)&&(G.push(Q)||(J=!0,W.pause()))}),W)void 0===this[Q]&&"function"==typeof W[Q]&&(this[Q]=function(G){return function(){return W[G].apply(W,arguments)}}(Q));for(var ee=0;ee<eO.length;ee++)W.on(eO[ee],this.emit.bind(this,eO[ee]));return this._read=function(G){et("wrapped _read",G),J&&(J=!1,W.resume())},this},"function"==typeof Symbol&&(eM.prototype[Symbol.asyncIterator]=function(){return void 0===ei&&(ei=J(871)),ei(this)}),Object.defineProperty(eM.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(eM.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(eM.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(W){this._readableState&&(this._readableState.flowing=W)}}),eM._fromList=eG,Object.defineProperty(eM.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(eM.from=function(W,G){return void 0===ea&&(ea=J(727)),ea(eM,W,G)})},170:function(W,G,H){"use strict";W.exports=es;var J=H(646).q,Q=J.ERR_METHOD_NOT_IMPLEMENTED,ee=J.ERR_MULTIPLE_CALLBACK,et=J.ERR_TRANSFORM_ALREADY_TRANSFORMING,eo=J.ERR_TRANSFORM_WITH_LENGTH_0,ei=H(403);function ea(W,G){var H=this._transformState;H.transforming=!1;var J=H.writecb;if(null===J)return this.emit("error",new ee);H.writechunk=null,H.writecb=null,null!=G&&this.push(G),J(W);var Q=this._readableState;Q.reading=!1,(Q.needReadable||Q.length<Q.highWaterMark)&&this._read(Q.highWaterMark)}function es(W){if(!(this instanceof es))return new es(W);ei.call(this,W),this._transformState={afterTransform:ea.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,W&&("function"==typeof W.transform&&(this._transform=W.transform),"function"==typeof W.flush&&(this._flush=W.flush)),this.on("prefinish",eu)}function eu(){var W=this;"function"!=typeof this._flush||this._readableState.destroyed?ec(this,null,null):this._flush(function(G,H){ec(W,G,H)})}function ec(W,G,H){if(G)return W.emit("error",G);if(null!=H&&W.push(H),W._writableState.length)throw new eo;if(W._transformState.transforming)throw new et;return W.push(null)}H(782)(es,ei),es.prototype.push=function(W,G){return this._transformState.needTransform=!1,ei.prototype.push.call(this,W,G)},es.prototype._transform=function(W,G,H){H(new Q("_transform()"))},es.prototype._write=function(W,G,H){var J=this._transformState;if(J.writecb=H,J.writechunk=W,J.writeencoding=G,!J.transforming){var Q=this._readableState;(J.needTransform||Q.needReadable||Q.length<Q.highWaterMark)&&this._read(Q.highWaterMark)}},es.prototype._read=function(W){var G=this._transformState;null===G.writechunk||G.transforming?G.needTransform=!0:(G.transforming=!0,this._transform(G.writechunk,G.writeencoding,G.afterTransform))},es.prototype._destroy=function(W,G){ei.prototype._destroy.call(this,W,function(W){G(W)})}},337:function(W,G,J){"use strict";function ee(W){var G=this;this.next=null,this.entry=null,this.finish=function(){eW(G,W)}}W.exports=eP,eP.WritableState=eA;var et,eo,ei={deprecate:J(769)},ea=J(678),es=J(300).Buffer,eu=H.g.Uint8Array||function(){};function ec(W){return es.from(W)}function ef(W){return es.isBuffer(W)||W instanceof eu}var ed=J(25),eh=J(776).getHighWaterMark,ep=J(646).q,ey=ep.ERR_INVALID_ARG_TYPE,ev=ep.ERR_METHOD_NOT_IMPLEMENTED,em=ep.ERR_MULTIPLE_CALLBACK,eg=ep.ERR_STREAM_CANNOT_PIPE,eb=ep.ERR_STREAM_DESTROYED,ew=ep.ERR_STREAM_NULL_VALUES,e_=ep.ERR_STREAM_WRITE_AFTER_END,eS=ep.ERR_UNKNOWN_ENCODING,eE=ed.errorOrDestroy;function eO(){}function eA(W,G,H){et=et||J(403),W=W||{},"boolean"!=typeof H&&(H=G instanceof et),this.objectMode=!!W.objectMode,H&&(this.objectMode=this.objectMode||!!W.writableObjectMode),this.highWaterMark=eh(this,W,"writableHighWaterMark",H),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Q=!1===W.decodeStrings;this.decodeStrings=!Q,this.defaultEncoding=W.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(W){ek(G,W)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==W.emitClose,this.autoDestroy=!!W.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ee(this)}function eP(W){var G=this instanceof(et=et||J(403));if(!G&&!eo.call(eP,this))return new eP(W);this._writableState=new eA(W,this,G),this.writable=!0,W&&("function"==typeof W.write&&(this._write=W.write),"function"==typeof W.writev&&(this._writev=W.writev),"function"==typeof W.destroy&&(this._destroy=W.destroy),"function"==typeof W.final&&(this._final=W.final)),ea.call(this)}function eM(W,G){var H=new e_;eE(W,H),Q.nextTick(G,H)}function ej(W,G,H,J){var ee;return null===H?ee=new ew:"string"==typeof H||G.objectMode||(ee=new ey("chunk",["string","Buffer"],H)),!ee||(eE(W,ee),Q.nextTick(J,ee),!1)}function eT(W,G,H){return W.objectMode||!1===W.decodeStrings||"string"!=typeof G||(G=es.from(G,H)),G}function ex(W,G,H,J,Q,ee){if(!H){var et=eT(G,J,Q);J!==et&&(H=!0,Q="buffer",J=et)}var eo=G.objectMode?1:J.length;G.length+=eo;var ei=G.length<G.highWaterMark;if(ei||(G.needDrain=!0),G.writing||G.corked){var ea=G.lastBufferedRequest;G.lastBufferedRequest={chunk:J,encoding:Q,isBuf:H,callback:ee,next:null},ea?ea.next=G.lastBufferedRequest:G.bufferedRequest=G.lastBufferedRequest,G.bufferedRequestCount+=1}else eI(W,G,!1,eo,J,Q,ee);return ei}function eI(W,G,H,J,Q,ee,et){G.writelen=J,G.writecb=et,G.writing=!0,G.sync=!0,G.destroyed?G.onwrite(new eb("write")):H?W._writev(Q,G.onwrite):W._write(Q,ee,G.onwrite),G.sync=!1}function eC(W,G,H,J,ee){--G.pendingcb,H?(Q.nextTick(ee,J),Q.nextTick(eB,W,G),W._writableState.errorEmitted=!0,eE(W,J)):(ee(J),W._writableState.errorEmitted=!0,eE(W,J),eB(W,G))}function eN(W){W.writing=!1,W.writecb=null,W.length-=W.writelen,W.writelen=0}function ek(W,G){var H=W._writableState,J=H.sync,ee=H.writecb;if("function"!=typeof ee)throw new em;if(eN(H),G)eC(W,H,J,G,ee);else{var et=eU(H)||W.destroyed;et||H.corked||H.bufferProcessing||!H.bufferedRequest||eL(W,H),J?Q.nextTick(eR,W,H,et,ee):eR(W,H,et,ee)}}function eR(W,G,H,J){H||eD(W,G),G.pendingcb--,J(),eB(W,G)}function eD(W,G){0===G.length&&G.needDrain&&(G.needDrain=!1,W.emit("drain"))}function eL(W,G){G.bufferProcessing=!0;var H=G.bufferedRequest;if(W._writev&&H&&H.next){var J=Array(G.bufferedRequestCount),Q=G.corkedRequestsFree;Q.entry=H;for(var et=0,eo=!0;H;)J[et]=H,H.isBuf||(eo=!1),H=H.next,et+=1;J.allBuffers=eo,eI(W,G,!0,G.length,J,"",Q.finish),G.pendingcb++,G.lastBufferedRequest=null,Q.next?(G.corkedRequestsFree=Q.next,Q.next=null):G.corkedRequestsFree=new ee(G),G.bufferedRequestCount=0}else{for(;H;){var ei=H.chunk,ea=H.encoding,es=H.callback,eu=G.objectMode?1:ei.length;if(eI(W,G,!1,eu,ei,ea,es),H=H.next,G.bufferedRequestCount--,G.writing)break}null===H&&(G.lastBufferedRequest=null)}G.bufferedRequest=H,G.bufferProcessing=!1}function eU(W){return W.ending&&0===W.length&&null===W.bufferedRequest&&!W.finished&&!W.writing}function eF(W,G){W._final(function(H){G.pendingcb--,H&&eE(W,H),G.prefinished=!0,W.emit("prefinish"),eB(W,G)})}function e$(W,G){G.prefinished||G.finalCalled||("function"!=typeof W._final||G.destroyed?(G.prefinished=!0,W.emit("prefinish")):(G.pendingcb++,G.finalCalled=!0,Q.nextTick(eF,W,G)))}function eB(W,G){var H=eU(G);if(H&&(e$(W,G),0===G.pendingcb&&(G.finished=!0,W.emit("finish"),G.autoDestroy))){var J=W._readableState;(!J||J.autoDestroy&&J.endEmitted)&&W.destroy()}return H}function eK(W,G,H){G.ending=!0,eB(W,G),H&&(G.finished?Q.nextTick(H):W.once("finish",H)),G.ended=!0,W.writable=!1}function eW(W,G,H){var J=W.entry;for(W.entry=null;J;){var Q=J.callback;G.pendingcb--,Q(H),J=J.next}G.corkedRequestsFree.next=W}J(782)(eP,ea),eA.prototype.getBuffer=function(){for(var W=this.bufferedRequest,G=[];W;)G.push(W),W=W.next;return G},function(){try{Object.defineProperty(eA.prototype,"buffer",{get:ei.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(W){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(eo=Function.prototype[Symbol.hasInstance],Object.defineProperty(eP,Symbol.hasInstance,{value:function(W){return!!eo.call(this,W)||this===eP&&W&&W._writableState instanceof eA}})):eo=function(W){return W instanceof this},eP.prototype.pipe=function(){eE(this,new eg)},eP.prototype.write=function(W,G,H){var J=this._writableState,Q=!1,ee=!J.objectMode&&ef(W);return ee&&!es.isBuffer(W)&&(W=ec(W)),"function"==typeof G&&(H=G,G=null),ee?G="buffer":G||(G=J.defaultEncoding),"function"!=typeof H&&(H=eO),J.ending?eM(this,H):(ee||ej(this,J,W,H))&&(J.pendingcb++,Q=ex(this,J,ee,W,G,H)),Q},eP.prototype.cork=function(){this._writableState.corked++},eP.prototype.uncork=function(){var W=this._writableState;!W.corked||(W.corked--,W.writing||W.corked||W.bufferProcessing||!W.bufferedRequest||eL(this,W))},eP.prototype.setDefaultEncoding=function(W){if("string"==typeof W&&(W=W.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((W+"").toLowerCase())>-1))throw new eS(W);return this._writableState.defaultEncoding=W,this},Object.defineProperty(eP.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(eP.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),eP.prototype._write=function(W,G,H){H(new ev("_write()"))},eP.prototype._writev=null,eP.prototype.end=function(W,G,H){var J=this._writableState;return"function"==typeof W?(H=W,W=null,G=null):"function"==typeof G&&(H=G,G=null),null!=W&&this.write(W,G),J.corked&&(J.corked=1,this.uncork()),J.ending||eK(this,J,H),this},Object.defineProperty(eP.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(eP.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(W){this._writableState&&(this._writableState.destroyed=W)}}),eP.prototype.destroy=ed.destroy,eP.prototype._undestroy=ed.undestroy,eP.prototype._destroy=function(W,G){G(W)}},871:function(W,G,H){"use strict";function J(W,G,H){return G in W?Object.defineProperty(W,G,{value:H,enumerable:!0,configurable:!0,writable:!0}):W[G]=H,W}var ee,et=H(698),eo=Symbol("lastResolve"),ei=Symbol("lastReject"),ea=Symbol("error"),es=Symbol("ended"),eu=Symbol("lastPromise"),ec=Symbol("handlePromise"),ef=Symbol("stream");function ed(W,G){return{value:W,done:G}}function eh(W){var G=W[eo];if(null!==G){var H=W[ef].read();null!==H&&(W[eu]=null,W[eo]=null,W[ei]=null,G(ed(H,!1)))}}function ep(W){Q.nextTick(eh,W)}function ey(W,G){return function(H,J){W.then(function(){if(G[es]){H(ed(void 0,!0));return}G[ec](H,J)},J)}}var ev=Object.getPrototypeOf(function(){}),em=Object.setPrototypeOf((J(ee={get stream(){return this[ef]},next:function(){var W,G=this,H=this[ea];if(null!==H)return Promise.reject(H);if(this[es])return Promise.resolve(ed(void 0,!0));if(this[ef].destroyed)return new Promise(function(W,H){Q.nextTick(function(){G[ea]?H(G[ea]):W(ed(void 0,!0))})});var J=this[eu];if(J)W=new Promise(ey(J,this));else{var ee=this[ef].read();if(null!==ee)return Promise.resolve(ed(ee,!1));W=new Promise(this[ec])}return this[eu]=W,W}},Symbol.asyncIterator,function(){return this}),J(ee,"return",function(){var W=this;return new Promise(function(G,H){W[ef].destroy(null,function(W){if(W){H(W);return}G(ed(void 0,!0))})})}),ee),ev),eg=function(W){var G,H=Object.create(em,(J(G={},ef,{value:W,writable:!0}),J(G,eo,{value:null,writable:!0}),J(G,ei,{value:null,writable:!0}),J(G,ea,{value:null,writable:!0}),J(G,es,{value:W._readableState.endEmitted,writable:!0}),J(G,ec,{value:function(W,G){var J=H[ef].read();J?(H[eu]=null,H[eo]=null,H[ei]=null,W(ed(J,!1))):(H[eo]=W,H[ei]=G)},writable:!0}),G));return H[eu]=null,et(W,function(W){if(W&&"ERR_STREAM_PREMATURE_CLOSE"!==W.code){var G=H[ei];null!==G&&(H[eu]=null,H[eo]=null,H[ei]=null,G(W)),H[ea]=W;return}var J=H[eo];null!==J&&(H[eu]=null,H[eo]=null,H[ei]=null,J(ed(void 0,!0))),H[es]=!0}),W.on("readable",ep.bind(null,H)),H};W.exports=eg},379:function(W,G,H){"use strict";function J(W,G){var H=Object.keys(W);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(W);G&&(J=J.filter(function(G){return Object.getOwnPropertyDescriptor(W,G).enumerable})),H.push.apply(H,J)}return H}function Q(W){for(var G=1;G<arguments.length;G++){var H=null!=arguments[G]?arguments[G]:{};G%2?J(Object(H),!0).forEach(function(G){ee(W,G,H[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(H)):J(Object(H)).forEach(function(G){Object.defineProperty(W,G,Object.getOwnPropertyDescriptor(H,G))})}return W}function ee(W,G,H){return G in W?Object.defineProperty(W,G,{value:H,enumerable:!0,configurable:!0,writable:!0}):W[G]=H,W}function et(W,G){if(!(W instanceof G))throw TypeError("Cannot call a class as a function")}function eo(W,G){for(var H=0;H<G.length;H++){var J=G[H];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(W,J.key,J)}}function ei(W,G,H){return G&&eo(W.prototype,G),H&&eo(W,H),W}var ea=H(300).Buffer,es=H(837).inspect,eu=es&&es.custom||"inspect";function ec(W,G,H){ea.prototype.copy.call(W,G,H)}W.exports=function(){function W(){et(this,W),this.head=null,this.tail=null,this.length=0}return ei(W,[{key:"push",value:function(W){var G={data:W,next:null};this.length>0?this.tail.next=G:this.head=G,this.tail=G,++this.length}},{key:"unshift",value:function(W){var G={data:W,next:this.head};0===this.length&&(this.tail=G),this.head=G,++this.length}},{key:"shift",value:function(){if(0!==this.length){var W=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,W}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(W){if(0===this.length)return"";for(var G=this.head,H=""+G.data;G=G.next;)H+=W+G.data;return H}},{key:"concat",value:function(W){if(0===this.length)return ea.alloc(0);for(var G=ea.allocUnsafe(W>>>0),H=this.head,J=0;H;)ec(H.data,G,J),J+=H.data.length,H=H.next;return G}},{key:"consume",value:function(W,G){var H;return W<this.head.data.length?(H=this.head.data.slice(0,W),this.head.data=this.head.data.slice(W)):H=W===this.head.data.length?this.shift():G?this._getString(W):this._getBuffer(W),H}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(W){var G=this.head,H=1,J=G.data;for(W-=J.length;G=G.next;){var Q=G.data,ee=W>Q.length?Q.length:W;if(ee===Q.length?J+=Q:J+=Q.slice(0,W),0==(W-=ee)){ee===Q.length?(++H,G.next?this.head=G.next:this.head=this.tail=null):(this.head=G,G.data=Q.slice(ee));break}++H}return this.length-=H,J}},{key:"_getBuffer",value:function(W){var G=ea.allocUnsafe(W),H=this.head,J=1;for(H.data.copy(G),W-=H.data.length;H=H.next;){var Q=H.data,ee=W>Q.length?Q.length:W;if(Q.copy(G,G.length-W,0,ee),0==(W-=ee)){ee===Q.length?(++J,H.next?this.head=H.next:this.head=this.tail=null):(this.head=H,H.data=Q.slice(ee));break}++J}return this.length-=J,G}},{key:eu,value:function(W,G){return es(this,Q({},G,{depth:0,customInspect:!1}))}}]),W}()},25:function(W){"use strict";function G(W,G){var ee=this,eo=this._readableState&&this._readableState.destroyed,ei=this._writableState&&this._writableState.destroyed;return eo||ei?G?G(W):W&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Q.nextTick(et,this,W)):Q.nextTick(et,this,W)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(W||null,function(W){!G&&W?ee._writableState?ee._writableState.errorEmitted?Q.nextTick(J,ee):(ee._writableState.errorEmitted=!0,Q.nextTick(H,ee,W)):Q.nextTick(H,ee,W):G?(Q.nextTick(J,ee),G(W)):Q.nextTick(J,ee)})),this}function H(W,G){et(W,G),J(W)}function J(W){(!W._writableState||W._writableState.emitClose)&&(!W._readableState||W._readableState.emitClose)&&W.emit("close")}function ee(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function et(W,G){W.emit("error",G)}function eo(W,G){var H=W._readableState,J=W._writableState;H&&H.autoDestroy||J&&J.autoDestroy?W.destroy(G):W.emit("error",G)}W.exports={destroy:G,undestroy:ee,errorOrDestroy:eo}},698:function(W,G,H){"use strict";var J=H(646).q.ERR_STREAM_PREMATURE_CLOSE;function Q(W){var G=!1;return function(){if(!G){G=!0;for(var H=arguments.length,J=Array(H),Q=0;Q<H;Q++)J[Q]=arguments[Q];W.apply(this,J)}}}function ee(){}function et(W){return W.setHeader&&"function"==typeof W.abort}function eo(W,G,H){if("function"==typeof G)return eo(W,null,G);G||(G={}),H=Q(H||ee);var ei=G.readable||!1!==G.readable&&W.readable,ea=G.writable||!1!==G.writable&&W.writable,es=function(){W.writable||ec()},eu=W._writableState&&W._writableState.finished,ec=function(){ea=!1,eu=!0,ei||H.call(W)},ef=W._readableState&&W._readableState.endEmitted,ed=function(){ei=!1,ef=!0,ea||H.call(W)},eh=function(G){H.call(W,G)},ep=function(){var G;return ei&&!ef?(W._readableState&&W._readableState.ended||(G=new J),H.call(W,G)):ea&&!eu?(W._writableState&&W._writableState.ended||(G=new J),H.call(W,G)):void 0},ey=function(){W.req.on("finish",ec)};return et(W)?(W.on("complete",ec),W.on("abort",ep),W.req?ey():W.on("request",ey)):ea&&!W._writableState&&(W.on("end",es),W.on("close",es)),W.on("end",ed),W.on("finish",ec),!1!==G.error&&W.on("error",eh),W.on("close",ep),function(){W.removeListener("complete",ec),W.removeListener("abort",ep),W.removeListener("request",ey),W.req&&W.req.removeListener("finish",ec),W.removeListener("end",es),W.removeListener("close",es),W.removeListener("finish",ec),W.removeListener("end",ed),W.removeListener("error",eh),W.removeListener("close",ep)}}W.exports=eo},727:function(W,G,H){"use strict";function J(W,G,H,J,Q,ee,et){try{var eo=W[ee](et),ei=eo.value}catch(W){H(W);return}eo.done?G(ei):Promise.resolve(ei).then(J,Q)}function Q(W){return function(){var G=this,H=arguments;return new Promise(function(Q,ee){var et=W.apply(G,H);function eo(W){J(et,Q,ee,eo,ei,"next",W)}function ei(W){J(et,Q,ee,eo,ei,"throw",W)}eo(void 0)})}}function ee(W,G){var H=Object.keys(W);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(W);G&&(J=J.filter(function(G){return Object.getOwnPropertyDescriptor(W,G).enumerable})),H.push.apply(H,J)}return H}function et(W){for(var G=1;G<arguments.length;G++){var H=null!=arguments[G]?arguments[G]:{};G%2?ee(Object(H),!0).forEach(function(G){eo(W,G,H[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(H)):ee(Object(H)).forEach(function(G){Object.defineProperty(W,G,Object.getOwnPropertyDescriptor(H,G))})}return W}function eo(W,G,H){return G in W?Object.defineProperty(W,G,{value:H,enumerable:!0,configurable:!0,writable:!0}):W[G]=H,W}var ei=H(646).q.ERR_INVALID_ARG_TYPE;function ea(W,G,H){if(G&&"function"==typeof G.next)J=G;else if(G&&G[Symbol.asyncIterator])J=G[Symbol.asyncIterator]();else if(G&&G[Symbol.iterator])J=G[Symbol.iterator]();else throw new ei("iterable",["Iterable"],G);var J,ee=new W(et({objectMode:!0},H)),eo=!1;function ea(){return es.apply(this,arguments)}function es(){return(es=Q(function*(){try{var W=yield J.next(),G=W.value;W.done?ee.push(null):ee.push((yield G))?ea():eo=!1}catch(W){ee.destroy(W)}})).apply(this,arguments)}return ee._read=function(){eo||(eo=!0,ea())},ee}W.exports=ea},442:function(W,G,H){"use strict";function J(W){var G=!1;return function(){G||(G=!0,W.apply(void 0,arguments))}}var Q,ee=H(646).q,et=ee.ERR_MISSING_ARGS,eo=ee.ERR_STREAM_DESTROYED;function ei(W){if(W)throw W}function ea(W){return W.setHeader&&"function"==typeof W.abort}function es(W,G,ee,et){et=J(et);var ei=!1;W.on("close",function(){ei=!0}),void 0===Q&&(Q=H(698)),Q(W,{readable:G,writable:ee},function(W){if(W)return et(W);ei=!0,et()});var es=!1;return function(G){if(!ei&&!es){if(es=!0,ea(W))return W.abort();if("function"==typeof W.destroy)return W.destroy();et(G||new eo("pipe"))}}}function eu(W){W()}function ec(W,G){return W.pipe(G)}function ef(W){return W.length&&"function"==typeof W[W.length-1]?W.pop():ei}function ed(){for(var W,G=arguments.length,H=Array(G),J=0;J<G;J++)H[J]=arguments[J];var Q=ef(H);if(Array.isArray(H[0])&&(H=H[0]),H.length<2)throw new et("streams");var ee=H.map(function(G,J){var et=J<H.length-1;return es(G,et,J>0,function(G){W||(W=G),G&&ee.forEach(eu),et||(ee.forEach(eu),Q(W))})});return H.reduce(ec)}W.exports=ed},776:function(W,G,H){"use strict";var J=H(646).q.ERR_INVALID_OPT_VALUE;function Q(W,G,H){return null!=W.highWaterMark?W.highWaterMark:G?W[H]:null}function ee(W,G,H,ee){var et=Q(G,ee,H);if(null!=et){if(!(isFinite(et)&&Math.floor(et)===et)||et<0)throw new J(ee?H:"highWaterMark",et);return Math.floor(et)}return W.objectMode?16:16384}W.exports={getHighWaterMark:ee}},678:function(W,G,H){W.exports=H(781)},726:function(W,G,H){var J=H(781);"disable"===Q.env.READABLE_STREAM&&J?(W.exports=J.Readable,Object.assign(W.exports,J),W.exports.Stream=J):((G=W.exports=H(709)).Stream=J||G,G.Readable=G,G.Writable=H(337),G.Duplex=H(403),G.Transform=H(170),G.PassThrough=H(889),G.finished=H(698),G.pipeline=H(442))},55:function(W,G,H){var J=H(300),Q=J.Buffer;function ee(W,G){for(var H in W)G[H]=W[H]}function et(W,G,H){return Q(W,G,H)}Q.from&&Q.alloc&&Q.allocUnsafe&&Q.allocUnsafeSlow?W.exports=J:(ee(J,G),G.Buffer=et),et.prototype=Object.create(Q.prototype),ee(Q,et),et.from=function(W,G,H){if("number"==typeof W)throw TypeError("Argument must not be a number");return Q(W,G,H)},et.alloc=function(W,G,H){if("number"!=typeof W)throw TypeError("Argument must be a number");var J=Q(W);return void 0!==G?"string"==typeof H?J.fill(G,H):J.fill(G):J.fill(0),J},et.allocUnsafe=function(W){if("number"!=typeof W)throw TypeError("Argument must be a number");return Q(W)},et.allocUnsafeSlow=function(W){if("number"!=typeof W)throw TypeError("Argument must be a number");return J.SlowBuffer(W)}},813:function(W,G,J){var Q=J(450),ee=J(254),et=J(911),eo=J(523),ei=J(310),ea=G;ea.request=function(W,G){W="string"==typeof W?ei.parse(W):et(W);var J=-1===H.g.location.protocol.search(/^https?:$/)?"http:":"",ee=W.protocol||J,eo=W.hostname||W.host,ea=W.port,es=W.path||"/";eo&&-1!==eo.indexOf(":")&&(eo="["+eo+"]"),W.url=(eo?ee+"//"+eo:"")+(ea?":"+ea:"")+es,W.method=(W.method||"GET").toUpperCase(),W.headers=W.headers||{};var eu=new Q(W);return G&&eu.on("response",G),eu},ea.get=function(W,G){var H=ea.request(W,G);return H.end(),H},ea.ClientRequest=Q,ea.IncomingMessage=ee.IncomingMessage,ea.Agent=function(){},ea.Agent.defaultMaxSockets=4,ea.globalAgent=new ea.Agent,ea.STATUS_CODES=eo,ea.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},301:function(W,G){var J;function Q(){if(void 0!==J)return J;if(H.g.XMLHttpRequest){J=new H.g.XMLHttpRequest;try{J.open("GET",H.g.XDomainRequest?"/":"https://example.com")}catch(W){J=null}}else J=null;return J}function ee(W){var G=Q();if(!G)return!1;try{return G.responseType=W,G.responseType===W}catch(W){}return!1}function et(W){return"function"==typeof W}G.fetch=et(H.g.fetch)&&et(H.g.ReadableStream),G.writableStream=et(H.g.WritableStream),G.abortController=et(H.g.AbortController),G.arraybuffer=G.fetch||ee("arraybuffer"),G.msstream=!G.fetch&&ee("ms-stream"),G.mozchunkedarraybuffer=!G.fetch&&ee("moz-chunked-arraybuffer"),G.overrideMimeType=G.fetch||!!Q()&&et(Q().overrideMimeType),J=null},450:function(W,G,J){var et=J(301),eo=J(782),ei=J(254),ea=J(726),es=ei.IncomingMessage,eu=ei.readyStates;function ec(W,G){return et.fetch&&G?"fetch":et.mozchunkedarraybuffer?"moz-chunked-arraybuffer":et.msstream?"ms-stream":et.arraybuffer&&W?"arraybuffer":"text"}var ef=W.exports=function(W){var G,H=this;ea.Writable.call(H),H._opts=W,H._body=[],H._headers={},W.auth&&H.setHeader("Authorization","Basic "+ee.from(W.auth).toString("base64")),Object.keys(W.headers).forEach(function(G){H.setHeader(G,W.headers[G])});var J=!0;if("disable-fetch"===W.mode||"requestTimeout"in W&&!et.abortController)J=!1,G=!0;else if("prefer-streaming"===W.mode)G=!1;else if("allow-wrong-content-type"===W.mode)G=!et.overrideMimeType;else if(W.mode&&"default"!==W.mode&&"prefer-fast"!==W.mode)throw Error("Invalid value for opts.mode");else G=!0;H._mode=ec(G,J),H._fetchTimer=null,H.on("finish",function(){H._onFinish()})};function ed(W){try{var G=W.status;return null!==G&&0!==G}catch(W){return!1}}eo(ef,ea.Writable),ef.prototype.setHeader=function(W,G){var H=this,J=W.toLowerCase();-1===eh.indexOf(J)&&(H._headers[J]={name:W,value:G})},ef.prototype.getHeader=function(W){var G=this._headers[W.toLowerCase()];return G?G.value:null},ef.prototype.removeHeader=function(W){var G=this;delete G._headers[W.toLowerCase()]},ef.prototype._onFinish=function(){var W=this;if(!W._destroyed){var G=W._opts,J=W._headers,ee=null;"GET"!==G.method&&"HEAD"!==G.method&&(ee=new Blob(W._body,{type:(J["content-type"]||{}).value||""}));var eo=[];if(Object.keys(J).forEach(function(W){var G=J[W].name,H=J[W].value;Array.isArray(H)?H.forEach(function(W){eo.push([G,W])}):eo.push([G,H])}),"fetch"===W._mode){var ei=null;if(et.abortController){var ea=new AbortController;ei=ea.signal,W._fetchAbortController=ea,"requestTimeout"in G&&0!==G.requestTimeout&&(W._fetchTimer=H.g.setTimeout(function(){W.emit("requestTimeout"),W._fetchAbortController&&W._fetchAbortController.abort()},G.requestTimeout))}H.g.fetch(W._opts.url,{method:W._opts.method,headers:eo,body:ee||void 0,mode:"cors",credentials:G.withCredentials?"include":"same-origin",signal:ei}).then(function(G){W._fetchResponse=G,W._connect()},function(G){H.g.clearTimeout(W._fetchTimer),W._destroyed||W.emit("error",G)})}else{var es=W._xhr=new H.g.XMLHttpRequest;try{es.open(W._opts.method,W._opts.url,!0)}catch(G){Q.nextTick(function(){W.emit("error",G)});return}"responseType"in es&&(es.responseType=W._mode),"withCredentials"in es&&(es.withCredentials=!!G.withCredentials),"text"===W._mode&&"overrideMimeType"in es&&es.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in G&&(es.timeout=G.requestTimeout,es.ontimeout=function(){W.emit("requestTimeout")}),eo.forEach(function(W){es.setRequestHeader(W[0],W[1])}),W._response=null,es.onreadystatechange=function(){switch(es.readyState){case eu.LOADING:case eu.DONE:W._onXHRProgress()}},"moz-chunked-arraybuffer"===W._mode&&(es.onprogress=function(){W._onXHRProgress()}),es.onerror=function(){W._destroyed||W.emit("error",Error("XHR error"))};try{es.send(ee)}catch(G){Q.nextTick(function(){W.emit("error",G)});return}}}},ef.prototype._onXHRProgress=function(){var W=this;ed(W._xhr)&&!W._destroyed&&(W._response||W._connect(),W._response._onXHRProgress())},ef.prototype._connect=function(){var W=this;W._destroyed||(W._response=new es(W._xhr,W._fetchResponse,W._mode,W._fetchTimer),W._response.on("error",function(G){W.emit("error",G)}),W.emit("response",W._response))},ef.prototype._write=function(W,G,H){var J=this;J._body.push(W),H()},ef.prototype.abort=ef.prototype.destroy=function(){var W=this;W._destroyed=!0,H.g.clearTimeout(W._fetchTimer),W._response&&(W._response._destroyed=!0),W._xhr?W._xhr.abort():W._fetchAbortController&&W._fetchAbortController.abort()},ef.prototype.end=function(W,G,H){var J=this;"function"==typeof W&&(H=W,W=void 0),ea.Writable.prototype.end.call(J,W,G,H)},ef.prototype.flushHeaders=function(){},ef.prototype.setTimeout=function(){},ef.prototype.setNoDelay=function(){},ef.prototype.setSocketKeepAlive=function(){};var eh=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},254:function(W,G,J){var et=J(301),eo=J(782),ei=J(726),ea=G.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},es=G.IncomingMessage=function(W,G,J,eo){var ea=this;if(ei.Readable.call(ea),ea._mode=J,ea.headers={},ea.rawHeaders=[],ea.trailers={},ea.rawTrailers=[],ea.on("end",function(){Q.nextTick(function(){ea.emit("close")})}),"fetch"===J){if(ea._fetchResponse=G,ea.url=G.url,ea.statusCode=G.status,ea.statusMessage=G.statusText,G.headers.forEach(function(W,G){ea.headers[G.toLowerCase()]=W,ea.rawHeaders.push(G,W)}),et.writableStream){var es=new WritableStream({write:function(W){return new Promise(function(G,H){ea._destroyed?H():ea.push(ee.from(W))?G():ea._resumeFetch=G})},close:function(){H.g.clearTimeout(eo),ea._destroyed||ea.push(null)},abort:function(W){ea._destroyed||ea.emit("error",W)}});try{G.body.pipeTo(es).catch(function(W){H.g.clearTimeout(eo),ea._destroyed||ea.emit("error",W)});return}catch(W){}}var eu=G.body.getReader();function ec(){eu.read().then(function(W){if(!ea._destroyed){if(W.done){H.g.clearTimeout(eo),ea.push(null);return}ea.push(ee.from(W.value)),ec()}}).catch(function(W){H.g.clearTimeout(eo),ea._destroyed||ea.emit("error",W)})}ec()}else if(ea._xhr=W,ea._pos=0,ea.url=W.responseURL,ea.statusCode=W.status,ea.statusMessage=W.statusText,W.getAllResponseHeaders().split(/\r?\n/).forEach(function(W){var G=W.match(/^([^:]+):\s*(.*)/);if(G){var H=G[1].toLowerCase();"set-cookie"===H?(void 0===ea.headers[H]&&(ea.headers[H]=[]),ea.headers[H].push(G[2])):void 0!==ea.headers[H]?ea.headers[H]+=", "+G[2]:ea.headers[H]=G[2],ea.rawHeaders.push(G[1],G[2])}}),ea._charset="x-user-defined",!et.overrideMimeType){var ef=ea.rawHeaders["mime-type"];if(ef){var ed=ef.match(/;\s*charset=([^;])(;|$)/);ed&&(ea._charset=ed[1].toLowerCase())}ea._charset||(ea._charset="utf-8")}};eo(es,ei.Readable),es.prototype._read=function(){var W=this,G=W._resumeFetch;G&&(W._resumeFetch=null,G())},es.prototype._onXHRProgress=function(){var W=this,G=W._xhr,J=null;switch(W._mode){case"text":if((J=G.responseText).length>W._pos){var Q=J.substr(W._pos);if("x-user-defined"===W._charset){for(var et=ee.alloc(Q.length),eo=0;eo<Q.length;eo++)et[eo]=255&Q.charCodeAt(eo);W.push(et)}else W.push(Q,W._charset);W._pos=J.length}break;case"arraybuffer":if(G.readyState!==ea.DONE||!G.response)break;J=G.response,W.push(ee.from(new Uint8Array(J)));break;case"moz-chunked-arraybuffer":if(J=G.response,G.readyState!==ea.LOADING||!J)break;W.push(ee.from(new Uint8Array(J)));break;case"ms-stream":if(J=G.response,G.readyState!==ea.LOADING)break;var ei=new H.g.MSStreamReader;ei.onprogress=function(){ei.result.byteLength>W._pos&&(W.push(ee.from(new Uint8Array(ei.result.slice(W._pos)))),W._pos=ei.result.byteLength)},ei.onload=function(){W.push(null)},ei.readAsArrayBuffer(J)}W._xhr.readyState===ea.DONE&&"ms-stream"!==W._mode&&W.push(null)}},704:function(W,G,H){"use strict";var J=H(55).Buffer,Q=J.isEncoding||function(W){switch((W=""+W)&&W.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ee(W){var G;if(!W)return"utf8";for(;;)switch(W){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return W;default:if(G)return;W=(""+W).toLowerCase(),G=!0}}function et(W){var G=ee(W);if("string"!=typeof G&&(J.isEncoding===Q||!Q(W)))throw Error("Unknown encoding: "+W);return G||W}function eo(W){var G;switch(this.encoding=et(W),this.encoding){case"utf16le":this.text=ed,this.end=eh,G=4;break;case"utf8":this.fillLast=eu,G=4;break;case"base64":this.text=ep,this.end=ey,G=3;break;default:this.write=ev,this.end=em;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=J.allocUnsafe(G)}function ei(W){return W<=127?0:W>>5==6?2:W>>4==14?3:W>>3==30?4:W>>6==2?-1:-2}function ea(W,G,H){var J=G.length-1;if(J<H)return 0;var Q=ei(G[J]);return Q>=0?(Q>0&&(W.lastNeed=Q-1),Q):--J<H||-2===Q?0:(Q=ei(G[J]))>=0?(Q>0&&(W.lastNeed=Q-2),Q):--J<H||-2===Q?0:(Q=ei(G[J]))>=0?(Q>0&&(2===Q?Q=0:W.lastNeed=Q-3),Q):0}function es(W,G,H){if((192&G[0])!=128)return W.lastNeed=0,"�";if(W.lastNeed>1&&G.length>1){if((192&G[1])!=128)return W.lastNeed=1,"�";if(W.lastNeed>2&&G.length>2&&(192&G[2])!=128)return W.lastNeed=2,"�"}}function eu(W){var G=this.lastTotal-this.lastNeed,H=es(this,W,G);return void 0!==H?H:this.lastNeed<=W.length?(W.copy(this.lastChar,G,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(W.copy(this.lastChar,G,0,W.length),this.lastNeed-=W.length)}function ec(W,G){var H=ea(this,W,G);if(!this.lastNeed)return W.toString("utf8",G);this.lastTotal=H;var J=W.length-(H-this.lastNeed);return W.copy(this.lastChar,0,J),W.toString("utf8",G,J)}function ef(W){var G=W&&W.length?this.write(W):"";return this.lastNeed?G+"�":G}function ed(W,G){if((W.length-G)%2==0){var H=W.toString("utf16le",G);if(H){var J=H.charCodeAt(H.length-1);if(J>=55296&&J<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],H.slice(0,-1)}return H}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",G,W.length-1)}function eh(W){var G=W&&W.length?this.write(W):"";if(this.lastNeed){var H=this.lastTotal-this.lastNeed;return G+this.lastChar.toString("utf16le",0,H)}return G}function ep(W,G){var H=(W.length-G)%3;return 0===H?W.toString("base64",G):(this.lastNeed=3-H,this.lastTotal=3,1===H?this.lastChar[0]=W[W.length-1]:(this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1]),W.toString("base64",G,W.length-H))}function ey(W){var G=W&&W.length?this.write(W):"";return this.lastNeed?G+this.lastChar.toString("base64",0,3-this.lastNeed):G}function ev(W){return W.toString(this.encoding)}function em(W){return W&&W.length?this.write(W):""}G.s=eo,eo.prototype.write=function(W){var G,H;if(0===W.length)return"";if(this.lastNeed){if(void 0===(G=this.fillLast(W)))return"";H=this.lastNeed,this.lastNeed=0}else H=0;return H<W.length?G?G+this.text(W,H):this.text(W,H):G||""},eo.prototype.end=ef,eo.prototype.text=ec,eo.prototype.fillLast=function(W){if(this.lastNeed<=W.length)return W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,W.length),this.lastNeed-=W.length}},769:function(W){function G(W,G){if(J("noDeprecation"))return W;var H=!1;return function(){if(!H){if(J("throwDeprecation"))throw Error(G);J("traceDeprecation")?console.trace(G):console.warn(G),H=!0}return W.apply(this,arguments)}}function J(W){try{if(!H.g.localStorage)return!1}catch(W){return!1}var G=H.g.localStorage[W];return null!=G&&"true"===String(G).toLowerCase()}W.exports=G},911:function(W){W.exports=H;var G=Object.prototype.hasOwnProperty;function H(){for(var W={},H=0;H<arguments.length;H++){var J=arguments[H];for(var Q in J)G.call(J,Q)&&(W[Q]=J[Q])}return W}},300:function(W){"use strict";W.exports=H(80854)},361:function(W){"use strict";W.exports=H(68495)},781:function(W){"use strict";W.exports=H(171)},310:function(W){"use strict";W.exports=H(28126)},837:function(W){"use strict";W.exports=H(88110)}},et={};function eo(W){var H=et[W];if(void 0!==H)return H.exports;var J=et[W]={exports:{}},Q=!0;try{G[W](J,J.exports,eo),Q=!1}finally{Q&&delete et[W]}return J.exports}eo.ab=J+"/";var ei=eo(813);W.exports=ei}()},68186:function(W,G,H){var J="/";!function(){var G={55:function(W,G,H){var J=H(300),Q=J.Buffer;function ee(W,G){for(var H in W)G[H]=W[H]}function et(W,G,H){return Q(W,G,H)}Q.from&&Q.alloc&&Q.allocUnsafe&&Q.allocUnsafeSlow?W.exports=J:(ee(J,G),G.Buffer=et),et.prototype=Object.create(Q.prototype),ee(Q,et),et.from=function(W,G,H){if("number"==typeof W)throw TypeError("Argument must not be a number");return Q(W,G,H)},et.alloc=function(W,G,H){if("number"!=typeof W)throw TypeError("Argument must be a number");var J=Q(W);return void 0!==G?"string"==typeof H?J.fill(G,H):J.fill(G):J.fill(0),J},et.allocUnsafe=function(W){if("number"!=typeof W)throw TypeError("Argument must be a number");return Q(W)},et.allocUnsafeSlow=function(W){if("number"!=typeof W)throw TypeError("Argument must be a number");return J.SlowBuffer(W)}},300:function(W){"use strict";W.exports=H(80854)}},Q={};function ee(W){var H=Q[W];if(void 0!==H)return H.exports;var J=Q[W]={exports:{}},et=!0;try{G[W](J,J.exports,ee),et=!1}finally{et&&delete Q[W]}return J.exports}ee.ab=J+"/";var et={};!function(){"use strict";var W=et,G=ee(55).Buffer,H=G.isEncoding||function(W){switch((W=""+W)&&W.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function J(W){var G;if(!W)return"utf8";for(;;)switch(W){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return W;default:if(G)return;W=(""+W).toLowerCase(),G=!0}}function Q(W){var Q=J(W);if("string"!=typeof Q&&(G.isEncoding===H||!H(W)))throw Error("Unknown encoding: "+W);return Q||W}function eo(W){var H;switch(this.encoding=Q(W),this.encoding){case"utf16le":this.text=ed,this.end=eh,H=4;break;case"utf8":this.fillLast=eu,H=4;break;case"base64":this.text=ep,this.end=ey,H=3;break;default:this.write=ev,this.end=em;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=G.allocUnsafe(H)}function ei(W){return W<=127?0:W>>5==6?2:W>>4==14?3:W>>3==30?4:W>>6==2?-1:-2}function ea(W,G,H){var J=G.length-1;if(J<H)return 0;var Q=ei(G[J]);return Q>=0?(Q>0&&(W.lastNeed=Q-1),Q):--J<H||-2===Q?0:(Q=ei(G[J]))>=0?(Q>0&&(W.lastNeed=Q-2),Q):--J<H||-2===Q?0:(Q=ei(G[J]))>=0?(Q>0&&(2===Q?Q=0:W.lastNeed=Q-3),Q):0}function es(W,G,H){if((192&G[0])!=128)return W.lastNeed=0,"�";if(W.lastNeed>1&&G.length>1){if((192&G[1])!=128)return W.lastNeed=1,"�";if(W.lastNeed>2&&G.length>2&&(192&G[2])!=128)return W.lastNeed=2,"�"}}function eu(W){var G=this.lastTotal-this.lastNeed,H=es(this,W,G);return void 0!==H?H:this.lastNeed<=W.length?(W.copy(this.lastChar,G,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(W.copy(this.lastChar,G,0,W.length),this.lastNeed-=W.length)}function ec(W,G){var H=ea(this,W,G);if(!this.lastNeed)return W.toString("utf8",G);this.lastTotal=H;var J=W.length-(H-this.lastNeed);return W.copy(this.lastChar,0,J),W.toString("utf8",G,J)}function ef(W){var G=W&&W.length?this.write(W):"";return this.lastNeed?G+"�":G}function ed(W,G){if((W.length-G)%2==0){var H=W.toString("utf16le",G);if(H){var J=H.charCodeAt(H.length-1);if(J>=55296&&J<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],H.slice(0,-1)}return H}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",G,W.length-1)}function eh(W){var G=W&&W.length?this.write(W):"";if(this.lastNeed){var H=this.lastTotal-this.lastNeed;return G+this.lastChar.toString("utf16le",0,H)}return G}function ep(W,G){var H=(W.length-G)%3;return 0===H?W.toString("base64",G):(this.lastNeed=3-H,this.lastTotal=3,1===H?this.lastChar[0]=W[W.length-1]:(this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1]),W.toString("base64",G,W.length-H))}function ey(W){var G=W&&W.length?this.write(W):"";return this.lastNeed?G+this.lastChar.toString("base64",0,3-this.lastNeed):G}function ev(W){return W.toString(this.encoding)}function em(W){return W&&W.length?this.write(W):""}W.StringDecoder=eo,eo.prototype.write=function(W){var G,H;if(0===W.length)return"";if(this.lastNeed){if(void 0===(G=this.fillLast(W)))return"";H=this.lastNeed,this.lastNeed=0}else H=0;return H<W.length?G?G+this.text(W,H):this.text(W,H):G||""},eo.prototype.end=ef,eo.prototype.text=ec,eo.prototype.fillLast=function(W){if(this.lastNeed<=W.length)return W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,W.length),this.lastNeed-=W.length}}(),W.exports=et}()},88110:function(W,G,H){var J="/",Q=H(80854).Buffer,ee=H(20352);!function(){var G={992:function(W){W.exports=function(W,H,J){if(W.filter)return W.filter(H,J);if(null==W||"function"!=typeof H)throw TypeError();for(var Q=[],ee=0;ee<W.length;ee++)if(G.call(W,ee)){var et=W[ee];H.call(J,et,ee,W)&&Q.push(et)}return Q};var G=Object.prototype.hasOwnProperty},256:function(W,G,H){"use strict";var J=H(925),Q=H(139),ee=Q(J("String.prototype.indexOf"));W.exports=function(W,G){var H=J(W,!!G);return"function"==typeof H&&ee(W,".prototype.")>-1?Q(H):H}},139:function(W,G,H){"use strict";var J=H(174),Q=H(925),ee=Q("%Function.prototype.apply%"),et=Q("%Function.prototype.call%"),eo=Q("%Reflect.apply%",!0)||J.call(et,ee),ei=Q("%Object.getOwnPropertyDescriptor%",!0),ea=Q("%Object.defineProperty%",!0),es=Q("%Math.max%");if(ea)try{ea({},"a",{value:1})}catch(W){ea=null}W.exports=function(W){var G=eo(J,et,arguments);return ei&&ea&&ei(G,"length").configurable&&ea(G,"length",{value:1+es(0,W.length-(arguments.length-1))}),G};var eu=function(){return eo(J,ee,arguments)};ea?ea(W.exports,"apply",{value:eu}):W.exports.apply=eu},144:function(W){var G=Object.prototype.hasOwnProperty,H=Object.prototype.toString;W.exports=function(W,J,Q){if("[object Function]"!==H.call(J))throw TypeError("iterator must be a function");var ee=W.length;if(ee===+ee)for(var et=0;et<ee;et++)J.call(Q,W[et],et,W);else for(var eo in W)G.call(W,eo)&&J.call(Q,W[eo],eo,W)}},426:function(W){"use strict";var G="Function.prototype.bind called on incompatible ",H=Array.prototype.slice,J=Object.prototype.toString,Q="[object Function]";W.exports=function(W){var ee,et=this;if("function"!=typeof et||J.call(et)!==Q)throw TypeError(G+et);for(var eo=H.call(arguments,1),ei=function(){if(!(this instanceof ee))return et.apply(W,eo.concat(H.call(arguments)));var G=et.apply(this,eo.concat(H.call(arguments)));return Object(G)===G?G:this},ea=Math.max(0,et.length-eo.length),es=[],eu=0;eu<ea;eu++)es.push("$"+eu);if(ee=Function("binder","return function ("+es.join(",")+"){ return binder.apply(this,arguments); }")(ei),et.prototype){var ec=function(){};ec.prototype=et.prototype,ee.prototype=new ec,ec.prototype=null}return ee}},174:function(W,G,H){"use strict";var J=H(426);W.exports=Function.prototype.bind||J},500:function(W,G,H){"use strict";var J,Q=SyntaxError,ee=Function,et=TypeError,eo=function(W){try{return ee('"use strict"; return ('+W+").constructor;")()}catch(W){}},ei=Object.getOwnPropertyDescriptor;if(ei)try{ei({},"")}catch(W){ei=null}var ea=function(){throw new et},es=ei?function(){try{return arguments.callee,ea}catch(W){try{return ei(arguments,"callee").get}catch(W){return ea}}}():ea,eu=H(115)(),ec=Object.getPrototypeOf||function(W){return W.__proto__},ef={},ed="undefined"==typeof Uint8Array?J:ec(Uint8Array),eh={"%AggregateError%":"undefined"==typeof AggregateError?J:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?J:ArrayBuffer,"%ArrayIteratorPrototype%":eu?ec([][Symbol.iterator]()):J,"%AsyncFromSyncIteratorPrototype%":J,"%AsyncFunction%":ef,"%AsyncGenerator%":ef,"%AsyncGeneratorFunction%":ef,"%AsyncIteratorPrototype%":ef,"%Atomics%":"undefined"==typeof Atomics?J:Atomics,"%BigInt%":"undefined"==typeof BigInt?J:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?J:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?J:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?J:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?J:FinalizationRegistry,"%Function%":ee,"%GeneratorFunction%":ef,"%Int8Array%":"undefined"==typeof Int8Array?J:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?J:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?J:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":eu?ec(ec([][Symbol.iterator]())):J,"%JSON%":"object"==typeof JSON?JSON:J,"%Map%":"undefined"==typeof Map?J:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&eu?ec((new Map)[Symbol.iterator]()):J,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?J:Promise,"%Proxy%":"undefined"==typeof Proxy?J:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?J:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?J:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&eu?ec((new Set)[Symbol.iterator]()):J,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?J:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":eu?ec(""[Symbol.iterator]()):J,"%Symbol%":eu?Symbol:J,"%SyntaxError%":Q,"%ThrowTypeError%":es,"%TypedArray%":ed,"%TypeError%":et,"%Uint8Array%":"undefined"==typeof Uint8Array?J:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?J:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?J:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?J:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?J:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?J:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?J:WeakSet},ep=function W(G){var H;if("%AsyncFunction%"===G)H=eo("async function () {}");else if("%GeneratorFunction%"===G)H=eo("function* () {}");else if("%AsyncGeneratorFunction%"===G)H=eo("async function* () {}");else if("%AsyncGenerator%"===G){var J=W("%AsyncGeneratorFunction%");J&&(H=J.prototype)}else if("%AsyncIteratorPrototype%"===G){var Q=W("%AsyncGenerator%");Q&&(H=ec(Q.prototype))}return eh[G]=H,H},ey={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ev=H(174),em=H(101),eg=ev.call(Function.call,Array.prototype.concat),eb=ev.call(Function.apply,Array.prototype.splice),ew=ev.call(Function.call,String.prototype.replace),e_=ev.call(Function.call,String.prototype.slice),eS=ev.call(Function.call,RegExp.prototype.exec),eE=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,eO=/\\(\\)?/g,eA=function(W){var G=e_(W,0,1),H=e_(W,-1);if("%"===G&&"%"!==H)throw new Q("invalid intrinsic syntax, expected closing `%`");if("%"===H&&"%"!==G)throw new Q("invalid intrinsic syntax, expected opening `%`");var J=[];return ew(W,eE,function(W,G,H,Q){J[J.length]=H?ew(Q,eO,"$1"):G||W}),J},eP=function(W,G){var H,J=W;if(em(ey,J)&&(J="%"+(H=ey[J])[0]+"%"),em(eh,J)){var ee=eh[J];if(ee===ef&&(ee=ep(J)),void 0===ee&&!G)throw new et("intrinsic "+W+" exists, but is not available. Please file an issue!");return{alias:H,name:J,value:ee}}throw new Q("intrinsic "+W+" does not exist!")};W.exports=function(W,G){if("string"!=typeof W||0===W.length)throw new et("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof G)throw new et('"allowMissing" argument must be a boolean');if(null===eS(/^%?[^%]*%?$/g,W))throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var H=eA(W),J=H.length>0?H[0]:"",ee=eP("%"+J+"%",G),eo=ee.name,ea=ee.value,es=!1,eu=ee.alias;eu&&(J=eu[0],eb(H,eg([0,1],eu)));for(var ec=1,ef=!0;ec<H.length;ec+=1){var ed=H[ec],ep=e_(ed,0,1),ey=e_(ed,-1);if(('"'===ep||"'"===ep||"`"===ep||'"'===ey||"'"===ey||"`"===ey)&&ep!==ey)throw new Q("property names with quotes must have matching quotes");if("constructor"!==ed&&ef||(es=!0),J+="."+ed,em(eh,eo="%"+J+"%"))ea=eh[eo];else if(null!=ea){if(!(ed in ea)){if(!G)throw new et("base intrinsic for "+W+" exists, but the property is not available.");return}if(ei&&ec+1>=H.length){var ev=ei(ea,ed);ea=(ef=!!ev)&&"get"in ev&&!("originalValue"in ev.get)?ev.get:ea[ed]}else ef=em(ea,ed),ea=ea[ed];ef&&!es&&(eh[eo]=ea)}}return ea}},925:function(W,G,H){"use strict";var J,Q=SyntaxError,ee=Function,et=TypeError,eo=function(W){try{return ee('"use strict"; return ('+W+").constructor;")()}catch(W){}},ei=Object.getOwnPropertyDescriptor;if(ei)try{ei({},"")}catch(W){ei=null}var ea=function(){throw new et},es=ei?function(){try{return arguments.callee,ea}catch(W){try{return ei(arguments,"callee").get}catch(W){return ea}}}():ea,eu=H(115)(),ec=H(504)(),ef=Object.getPrototypeOf||(ec?function(W){return W.__proto__}:null),ed={},eh="undefined"!=typeof Uint8Array&&ef?ef(Uint8Array):J,ep={"%AggregateError%":"undefined"==typeof AggregateError?J:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?J:ArrayBuffer,"%ArrayIteratorPrototype%":eu&&ef?ef([][Symbol.iterator]()):J,"%AsyncFromSyncIteratorPrototype%":J,"%AsyncFunction%":ed,"%AsyncGenerator%":ed,"%AsyncGeneratorFunction%":ed,"%AsyncIteratorPrototype%":ed,"%Atomics%":"undefined"==typeof Atomics?J:Atomics,"%BigInt%":"undefined"==typeof BigInt?J:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?J:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?J:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?J:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?J:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?J:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?J:FinalizationRegistry,"%Function%":ee,"%GeneratorFunction%":ed,"%Int8Array%":"undefined"==typeof Int8Array?J:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?J:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?J:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":eu&&ef?ef(ef([][Symbol.iterator]())):J,"%JSON%":"object"==typeof JSON?JSON:J,"%Map%":"undefined"==typeof Map?J:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&eu&&ef?ef((new Map)[Symbol.iterator]()):J,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?J:Promise,"%Proxy%":"undefined"==typeof Proxy?J:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?J:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?J:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&eu&&ef?ef((new Set)[Symbol.iterator]()):J,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?J:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":eu&&ef?ef(""[Symbol.iterator]()):J,"%Symbol%":eu?Symbol:J,"%SyntaxError%":Q,"%ThrowTypeError%":es,"%TypedArray%":eh,"%TypeError%":et,"%Uint8Array%":"undefined"==typeof Uint8Array?J:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?J:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?J:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?J:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?J:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?J:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?J:WeakSet};if(ef)try{null.error}catch(W){var ey=ef(ef(W));ep["%Error.prototype%"]=ey}var ev=function W(G){var H;if("%AsyncFunction%"===G)H=eo("async function () {}");else if("%GeneratorFunction%"===G)H=eo("function* () {}");else if("%AsyncGeneratorFunction%"===G)H=eo("async function* () {}");else if("%AsyncGenerator%"===G){var J=W("%AsyncGeneratorFunction%");J&&(H=J.prototype)}else if("%AsyncIteratorPrototype%"===G){var Q=W("%AsyncGenerator%");Q&&ef&&(H=ef(Q.prototype))}return ep[G]=H,H},em={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},eg=H(174),eb=H(101),ew=eg.call(Function.call,Array.prototype.concat),e_=eg.call(Function.apply,Array.prototype.splice),eS=eg.call(Function.call,String.prototype.replace),eE=eg.call(Function.call,String.prototype.slice),eO=eg.call(Function.call,RegExp.prototype.exec),eA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,eP=/\\(\\)?/g,eM=function(W){var G=eE(W,0,1),H=eE(W,-1);if("%"===G&&"%"!==H)throw new Q("invalid intrinsic syntax, expected closing `%`");if("%"===H&&"%"!==G)throw new Q("invalid intrinsic syntax, expected opening `%`");var J=[];return eS(W,eA,function(W,G,H,Q){J[J.length]=H?eS(Q,eP,"$1"):G||W}),J},ej=function(W,G){var H,J=W;if(eb(em,J)&&(J="%"+(H=em[J])[0]+"%"),eb(ep,J)){var ee=ep[J];if(ee===ed&&(ee=ev(J)),void 0===ee&&!G)throw new et("intrinsic "+W+" exists, but is not available. Please file an issue!");return{alias:H,name:J,value:ee}}throw new Q("intrinsic "+W+" does not exist!")};W.exports=function(W,G){if("string"!=typeof W||0===W.length)throw new et("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof G)throw new et('"allowMissing" argument must be a boolean');if(null===eO(/^%?[^%]*%?$/,W))throw new Q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var H=eM(W),J=H.length>0?H[0]:"",ee=ej("%"+J+"%",G),eo=ee.name,ea=ee.value,es=!1,eu=ee.alias;eu&&(J=eu[0],e_(H,ew([0,1],eu)));for(var ec=1,ef=!0;ec<H.length;ec+=1){var ed=H[ec],eh=eE(ed,0,1),ey=eE(ed,-1);if(('"'===eh||"'"===eh||"`"===eh||'"'===ey||"'"===ey||"`"===ey)&&eh!==ey)throw new Q("property names with quotes must have matching quotes");if("constructor"!==ed&&ef||(es=!0),J+="."+ed,eb(ep,eo="%"+J+"%"))ea=ep[eo];else if(null!=ea){if(!(ed in ea)){if(!G)throw new et("base intrinsic for "+W+" exists, but the property is not available.");return}if(ei&&ec+1>=H.length){var ev=ei(ea,ed);ea=(ef=!!ev)&&"get"in ev&&!("originalValue"in ev.get)?ev.get:ea[ed]}else ef=eb(ea,ed),ea=ea[ed];ef&&!es&&(ep[eo]=ea)}}return ea}},504:function(W){"use strict";var G={foo:{}},H=Object;W.exports=function(){return({__proto__:G}).foo===G.foo&&!(({__proto__:null})instanceof H)}},942:function(W,G,H){"use strict";var J="undefined"!=typeof Symbol&&Symbol,Q=H(773);W.exports=function(){return"function"==typeof J&&"function"==typeof Symbol&&"symbol"==typeof J("foo")&&"symbol"==typeof Symbol("bar")&&Q()}},773:function(W){"use strict";W.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var W={},G=Symbol("test"),H=Object(G);if("string"==typeof G||"[object Symbol]"!==Object.prototype.toString.call(G)||"[object Symbol]"!==Object.prototype.toString.call(H))return!1;var J=42;for(G in W[G]=J,W)return!1;if("function"==typeof Object.keys&&0!==Object.keys(W).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(W).length)return!1;var Q=Object.getOwnPropertySymbols(W);if(1!==Q.length||Q[0]!==G||!Object.prototype.propertyIsEnumerable.call(W,G))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var ee=Object.getOwnPropertyDescriptor(W,G);if(ee.value!==J||!0!==ee.enumerable)return!1}return!0}},115:function(W,G,H){"use strict";var J="undefined"!=typeof Symbol&&Symbol,Q=H(832);W.exports=function(){return"function"==typeof J&&"function"==typeof Symbol&&"symbol"==typeof J("foo")&&"symbol"==typeof Symbol("bar")&&Q()}},832:function(W){"use strict";W.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var W={},G=Symbol("test"),H=Object(G);if("string"==typeof G||"[object Symbol]"!==Object.prototype.toString.call(G)||"[object Symbol]"!==Object.prototype.toString.call(H))return!1;var J=42;for(G in W[G]=J,W)return!1;if("function"==typeof Object.keys&&0!==Object.keys(W).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(W).length)return!1;var Q=Object.getOwnPropertySymbols(W);if(1!==Q.length||Q[0]!==G||!Object.prototype.propertyIsEnumerable.call(W,G))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var ee=Object.getOwnPropertyDescriptor(W,G);if(ee.value!==J||!0!==ee.enumerable)return!1}return!0}},101:function(W,G,H){"use strict";var J=H(174);W.exports=J.call(Function.call,Object.prototype.hasOwnProperty)},782:function(W){"function"==typeof Object.create?W.exports=function(W,G){G&&(W.super_=G,W.prototype=Object.create(G.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}))}:W.exports=function(W,G){if(G){W.super_=G;var H=function(){};H.prototype=G.prototype,W.prototype=new H,W.prototype.constructor=W}}},157:function(W){"use strict";var G="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,H=Object.prototype.toString,J=function(W){return(!G||!W||"object"!=typeof W||!(Symbol.toStringTag in W))&&"[object Arguments]"===H.call(W)},Q=function(W){return!!J(W)||null!==W&&"object"==typeof W&&"number"==typeof W.length&&W.length>=0&&"[object Array]"!==H.call(W)&&"[object Function]"===H.call(W.callee)},ee=function(){return J(arguments)}();J.isLegacyArguments=Q,W.exports=ee?J:Q},391:function(W){"use strict";var G=Object.prototype.toString,H=Function.prototype.toString,J=/^\s*(?:function)?\*/,Q="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,ee=Object.getPrototypeOf,et=function(){if(!Q)return!1;try{return Function("return function*() {}")()}catch(W){}}(),eo=et?ee(et):{};W.exports=function(W){return"function"==typeof W&&(!!J.test(H.call(W))||(Q?ee(W)===eo:"[object GeneratorFunction]"===G.call(W)))}},994:function(W,G,J){"use strict";var Q=J(144),ee=J(349),et=J(256),eo=et("Object.prototype.toString"),ei=J(942)()&&"symbol"==typeof Symbol.toStringTag,ea=ee(),es=et("Array.prototype.indexOf",!0)||function(W,G){for(var H=0;H<W.length;H+=1)if(W[H]===G)return H;return -1},eu=et("String.prototype.slice"),ec={},ef=J(24),ed=Object.getPrototypeOf;ei&&ef&&ed&&Q(ea,function(W){var G=new H.g[W];if(!(Symbol.toStringTag in G))throw EvalError("this engine has support for Symbol.toStringTag, but "+W+" does not have the property! Please report this.");var J=ed(G),Q=ef(J,Symbol.toStringTag);Q||(Q=ef(ed(J),Symbol.toStringTag)),ec[W]=Q.get});var eh=function(W){var G=!1;return Q(ec,function(H,J){if(!G)try{G=H.call(W)===J}catch(W){}}),G};W.exports=function(W){return!!W&&"object"==typeof W&&(ei?!!ef&&eh(W):es(ea,eu(eo(W),8,-1))>-1)}},369:function(W){W.exports=function(W){return W instanceof Q}},584:function(W,G,H){"use strict";var J=H(157),Q=H(391),ee=H(490),et=H(994);function eo(W){return W.call.bind(W)}var ei="undefined"!=typeof BigInt,ea="undefined"!=typeof Symbol,es=eo(Object.prototype.toString),eu=eo(Number.prototype.valueOf),ec=eo(String.prototype.valueOf),ef=eo(Boolean.prototype.valueOf);if(ei)var ed=eo(BigInt.prototype.valueOf);if(ea)var eh=eo(Symbol.prototype.valueOf);function ep(W,G){if("object"!=typeof W)return!1;try{return G(W),!0}catch(W){return!1}}function ey(W){return"undefined"!=typeof Promise&&W instanceof Promise||null!==W&&"object"==typeof W&&"function"==typeof W.then&&"function"==typeof W.catch}function ev(W){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(W):et(W)||eF(W)}function em(W){return"Uint8Array"===ee(W)}function eg(W){return"Uint8ClampedArray"===ee(W)}function eb(W){return"Uint16Array"===ee(W)}function ew(W){return"Uint32Array"===ee(W)}function e_(W){return"Int8Array"===ee(W)}function eS(W){return"Int16Array"===ee(W)}function eE(W){return"Int32Array"===ee(W)}function eO(W){return"Float32Array"===ee(W)}function eA(W){return"Float64Array"===ee(W)}function eP(W){return"BigInt64Array"===ee(W)}function eM(W){return"BigUint64Array"===ee(W)}function ej(W){return"[object Map]"===es(W)}function eT(W){return"undefined"!=typeof Map&&(ej.working?ej(W):W instanceof Map)}function ex(W){return"[object Set]"===es(W)}function eI(W){return"undefined"!=typeof Set&&(ex.working?ex(W):W instanceof Set)}function eC(W){return"[object WeakMap]"===es(W)}function eN(W){return"undefined"!=typeof WeakMap&&(eC.working?eC(W):W instanceof WeakMap)}function ek(W){return"[object WeakSet]"===es(W)}function eR(W){return ek(W)}function eD(W){return"[object ArrayBuffer]"===es(W)}function eL(W){return"undefined"!=typeof ArrayBuffer&&(eD.working?eD(W):W instanceof ArrayBuffer)}function eU(W){return"[object DataView]"===es(W)}function eF(W){return"undefined"!=typeof DataView&&(eU.working?eU(W):W instanceof DataView)}G.isArgumentsObject=J,G.isGeneratorFunction=Q,G.isTypedArray=et,G.isPromise=ey,G.isArrayBufferView=ev,G.isUint8Array=em,G.isUint8ClampedArray=eg,G.isUint16Array=eb,G.isUint32Array=ew,G.isInt8Array=e_,G.isInt16Array=eS,G.isInt32Array=eE,G.isFloat32Array=eO,G.isFloat64Array=eA,G.isBigInt64Array=eP,G.isBigUint64Array=eM,ej.working="undefined"!=typeof Map&&ej(new Map),G.isMap=eT,ex.working="undefined"!=typeof Set&&ex(new Set),G.isSet=eI,eC.working="undefined"!=typeof WeakMap&&eC(new WeakMap),G.isWeakMap=eN,ek.working="undefined"!=typeof WeakSet&&ek(new WeakSet),G.isWeakSet=eR,eD.working="undefined"!=typeof ArrayBuffer&&eD(new ArrayBuffer),G.isArrayBuffer=eL,eU.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&eU(new DataView(new ArrayBuffer(1),0,1)),G.isDataView=eF;var e$="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function eB(W){return"[object SharedArrayBuffer]"===es(W)}function eK(W){return void 0!==e$&&(void 0===eB.working&&(eB.working=eB(new e$)),eB.working?eB(W):W instanceof e$)}function eW(W){return"[object AsyncFunction]"===es(W)}function ez(W){return"[object Map Iterator]"===es(W)}function eG(W){return"[object Set Iterator]"===es(W)}function eq(W){return"[object Generator]"===es(W)}function eH(W){return"[object WebAssembly.Module]"===es(W)}function eV(W){return ep(W,eu)}function eJ(W){return ep(W,ec)}function eY(W){return ep(W,ef)}function eZ(W){return ei&&ep(W,ed)}function eQ(W){return ea&&ep(W,eh)}function eX(W){return eV(W)||eJ(W)||eY(W)||eZ(W)||eQ(W)}function e0(W){return"undefined"!=typeof Uint8Array&&(eL(W)||eK(W))}G.isSharedArrayBuffer=eK,G.isAsyncFunction=eW,G.isMapIterator=ez,G.isSetIterator=eG,G.isGeneratorObject=eq,G.isWebAssemblyCompiledModule=eH,G.isNumberObject=eV,G.isStringObject=eJ,G.isBooleanObject=eY,G.isBigIntObject=eZ,G.isSymbolObject=eQ,G.isBoxedPrimitive=eX,G.isAnyArrayBuffer=e0,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(W){Object.defineProperty(G,W,{enumerable:!1,value:function(){throw Error(W+" is not supported in userland")}})})},177:function(W,G,H){var J=Object.getOwnPropertyDescriptors||function(W){for(var G=Object.keys(W),H={},J=0;J<G.length;J++)H[G[J]]=Object.getOwnPropertyDescriptor(W,G[J]);return H},Q=/%[sdj%]/g;G.format=function(W){if(!eS(W)){for(var G=[],H=0;H<arguments.length;H++)G.push(ea(arguments[H]));return G.join(" ")}for(var H=1,J=arguments,ee=J.length,et=String(W).replace(Q,function(W){if("%%"===W)return"%";if(H>=ee)return W;switch(W){case"%s":return String(J[H++]);case"%d":return Number(J[H++]);case"%j":try{return JSON.stringify(J[H++])}catch(W){return"[Circular]"}default:return W}}),eo=J[H];H<ee;eo=J[++H])eb(eo)||!eP(eo)?et+=" "+eo:et+=" "+ea(eo);return et},G.deprecate=function(W,H){if(void 0!==ee&&!0===ee.noDeprecation)return W;if(void 0===ee)return function(){return G.deprecate(W,H).apply(this,arguments)};var J=!1;return function(){if(!J){if(ee.throwDeprecation)throw Error(H);ee.traceDeprecation?console.trace(H):console.error(H),J=!0}return W.apply(this,arguments)}};var et={},eo=/^$/;if(ee.env.NODE_DEBUG){var ei=ee.env.NODE_DEBUG;eo=RegExp("^"+(ei=ei.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function ea(W,H){var J={seen:[],stylize:eu};return arguments.length>=3&&(J.depth=arguments[2]),arguments.length>=4&&(J.colors=arguments[3]),eg(H)?J.showHidden=H:H&&G._extend(J,H),eO(J.showHidden)&&(J.showHidden=!1),eO(J.depth)&&(J.depth=2),eO(J.colors)&&(J.colors=!1),eO(J.customInspect)&&(J.customInspect=!0),J.colors&&(J.stylize=es),ef(J,W,J.depth)}function es(W,G){var H=ea.styles[G];return H?"\x1b["+ea.colors[H][0]+"m"+W+"\x1b["+ea.colors[H][1]+"m":W}function eu(W,G){return W}function ec(W){var G={};return W.forEach(function(W,H){G[W]=!0}),G}function ef(W,H,J){if(W.customInspect&&H&&eT(H.inspect)&&H.inspect!==G.inspect&&!(H.constructor&&H.constructor.prototype===H)){var Q,ee=H.inspect(J,W);return eS(ee)||(ee=ef(W,ee,J)),ee}var et=ed(W,H);if(et)return et;var eo=Object.keys(H),ei=ec(eo);if(W.showHidden&&(eo=Object.getOwnPropertyNames(H)),ej(H)&&(eo.indexOf("message")>=0||eo.indexOf("description")>=0))return eh(H);if(0===eo.length){if(eT(H)){var ea=H.name?": "+H.name:"";return W.stylize("[Function"+ea+"]","special")}if(eA(H))return W.stylize(RegExp.prototype.toString.call(H),"regexp");if(eM(H))return W.stylize(Date.prototype.toString.call(H),"date");if(ej(H))return eh(H)}var es="",eu=!1,eg=["{","}"];return(em(H)&&(eu=!0,eg=["[","]"]),eT(H)&&(es=" [Function"+(H.name?": "+H.name:"")+"]"),eA(H)&&(es=" "+RegExp.prototype.toString.call(H)),eM(H)&&(es=" "+Date.prototype.toUTCString.call(H)),ej(H)&&(es=" "+eh(H)),0!==eo.length||eu&&0!=H.length)?J<0?eA(H)?W.stylize(RegExp.prototype.toString.call(H),"regexp"):W.stylize("[Object]","special"):(W.seen.push(H),Q=eu?ep(W,H,J,ei,eo):eo.map(function(G){return ey(W,H,J,ei,G,eu)}),W.seen.pop(),ev(Q,es,eg)):eg[0]+es+eg[1]}function ed(W,G){if(eO(G))return W.stylize("undefined","undefined");if(eS(G)){var H="'"+JSON.stringify(G).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return W.stylize(H,"string")}return e_(G)?W.stylize(""+G,"number"):eg(G)?W.stylize(""+G,"boolean"):eb(G)?W.stylize("null","null"):void 0}function eh(W){return"["+Error.prototype.toString.call(W)+"]"}function ep(W,G,H,J,Q){for(var ee=[],et=0,eo=G.length;et<eo;++et)eR(G,String(et))?ee.push(ey(W,G,H,J,String(et),!0)):ee.push("");return Q.forEach(function(Q){Q.match(/^\d+$/)||ee.push(ey(W,G,H,J,Q,!0))}),ee}function ey(W,G,H,J,Q,ee){var et,eo,ei;if((ei=Object.getOwnPropertyDescriptor(G,Q)||{value:G[Q]}).get?eo=ei.set?W.stylize("[Getter/Setter]","special"):W.stylize("[Getter]","special"):ei.set&&(eo=W.stylize("[Setter]","special")),eR(J,Q)||(et="["+Q+"]"),!eo&&(0>W.seen.indexOf(ei.value)?(eo=eb(H)?ef(W,ei.value,null):ef(W,ei.value,H-1)).indexOf("\n")>-1&&(eo=ee?eo.split("\n").map(function(W){return"  "+W}).join("\n").substr(2):"\n"+eo.split("\n").map(function(W){return"   "+W}).join("\n")):eo=W.stylize("[Circular]","special")),eO(et)){if(ee&&Q.match(/^\d+$/))return eo;(et=JSON.stringify(""+Q)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(et=et.substr(1,et.length-2),et=W.stylize(et,"name")):(et=et.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),et=W.stylize(et,"string"))}return et+": "+eo}function ev(W,G,H){var J=0;return W.reduce(function(W,G){return J++,G.indexOf("\n")>=0&&J++,W+G.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?H[0]+(""===G?"":G+"\n ")+" "+W.join(",\n  ")+" "+H[1]:H[0]+G+" "+W.join(", ")+" "+H[1]}function em(W){return Array.isArray(W)}function eg(W){return"boolean"==typeof W}function eb(W){return null===W}function ew(W){return null==W}function e_(W){return"number"==typeof W}function eS(W){return"string"==typeof W}function eE(W){return"symbol"==typeof W}function eO(W){return void 0===W}function eA(W){return eP(W)&&"[object RegExp]"===eI(W)}function eP(W){return"object"==typeof W&&null!==W}function eM(W){return eP(W)&&"[object Date]"===eI(W)}function ej(W){return eP(W)&&("[object Error]"===eI(W)||W instanceof Error)}function eT(W){return"function"==typeof W}function ex(W){return null===W||"boolean"==typeof W||"number"==typeof W||"string"==typeof W||"symbol"==typeof W||void 0===W}function eI(W){return Object.prototype.toString.call(W)}function eC(W){return W<10?"0"+W.toString(10):W.toString(10)}G.debuglog=function(W){if(!et[W=W.toUpperCase()]){if(eo.test(W)){var H=ee.pid;et[W]=function(){var J=G.format.apply(G,arguments);console.error("%s %d: %s",W,H,J)}}else et[W]=function(){}}return et[W]},G.inspect=ea,ea.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ea.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},G.types=H(584),G.isArray=em,G.isBoolean=eg,G.isNull=eb,G.isNullOrUndefined=ew,G.isNumber=e_,G.isString=eS,G.isSymbol=eE,G.isUndefined=eO,G.isRegExp=eA,G.types.isRegExp=eA,G.isObject=eP,G.isDate=eM,G.types.isDate=eM,G.isError=ej,G.types.isNativeError=ej,G.isFunction=eT,G.isPrimitive=ex,G.isBuffer=H(369);var eN=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ek(){var W=new Date,G=[eC(W.getHours()),eC(W.getMinutes()),eC(W.getSeconds())].join(":");return[W.getDate(),eN[W.getMonth()],G].join(" ")}function eR(W,G){return Object.prototype.hasOwnProperty.call(W,G)}G.log=function(){console.log("%s - %s",ek(),G.format.apply(G,arguments))},G.inherits=H(782),G._extend=function(W,G){if(!G||!eP(G))return W;for(var H=Object.keys(G),J=H.length;J--;)W[H[J]]=G[H[J]];return W};var eD="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function eL(W,G){if(!W){var H=Error("Promise was rejected with a falsy value");H.reason=W,W=H}return G(W)}function eU(W){if("function"!=typeof W)throw TypeError('The "original" argument must be of type Function');function G(){for(var G=[],H=0;H<arguments.length;H++)G.push(arguments[H]);var J=G.pop();if("function"!=typeof J)throw TypeError("The last argument must be of type Function");var Q=this,et=function(){return J.apply(Q,arguments)};W.apply(this,G).then(function(W){ee.nextTick(et.bind(null,null,W))},function(W){ee.nextTick(eL.bind(null,W,et))})}return Object.setPrototypeOf(G,Object.getPrototypeOf(W)),Object.defineProperties(G,J(W)),G}G.promisify=function(W){if("function"!=typeof W)throw TypeError('The "original" argument must be of type Function');if(eD&&W[eD]){var G=W[eD];if("function"!=typeof G)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(G,eD,{value:G,enumerable:!1,writable:!1,configurable:!0}),G}function G(){for(var G,H,J=new Promise(function(W,J){G=W,H=J}),Q=[],ee=0;ee<arguments.length;ee++)Q.push(arguments[ee]);Q.push(function(W,J){W?H(W):G(J)});try{W.apply(this,Q)}catch(W){H(W)}return J}return Object.setPrototypeOf(G,Object.getPrototypeOf(W)),eD&&Object.defineProperty(G,eD,{value:G,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(G,J(W))},G.promisify.custom=eD,G.callbackify=eU},490:function(W,G,J){"use strict";var Q=J(144),ee=J(349),et=J(256),eo=et("Object.prototype.toString"),ei=J(942)()&&"symbol"==typeof Symbol.toStringTag,ea=ee(),es=et("String.prototype.slice"),eu={},ec=J(24),ef=Object.getPrototypeOf;ei&&ec&&ef&&Q(ea,function(W){if("function"==typeof H.g[W]){var G=new H.g[W];if(!(Symbol.toStringTag in G))throw EvalError("this engine has support for Symbol.toStringTag, but "+W+" does not have the property! Please report this.");var J=ef(G),Q=ec(J,Symbol.toStringTag);Q||(Q=ec(ef(J),Symbol.toStringTag)),eu[W]=Q.get}});var ed=function(W){var G=!1;return Q(eu,function(H,J){if(!G)try{var Q=H.call(W);Q===J&&(G=Q)}catch(W){}}),G},eh=J(994);W.exports=function(W){return!!eh(W)&&(ei?ed(W):es(eo(W),8,-1))}},349:function(W,G,J){"use strict";var Q=J(992);W.exports=function(){return Q(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(W){return"function"==typeof H.g[W]})}},24:function(W,G,H){"use strict";var J=H(500)("%Object.getOwnPropertyDescriptor%",!0);if(J)try{J([],"length")}catch(W){J=null}W.exports=J}},et={};function eo(W){var H=et[W];if(void 0!==H)return H.exports;var J=et[W]={exports:{}},Q=!0;try{G[W](J,J.exports,eo),Q=!1}finally{Q&&delete et[W]}return J.exports}eo.ab=J+"/";var ei=eo(177);W.exports=ei}()},31407:function(module){var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(W,G){if(W.indexOf)return W.indexOf(G);for(var H=0;H<W.length;H++)if(W[H]===G)return H;return -1},Object_keys=function(W){if(Object.keys)return Object.keys(W);var G=[];for(var H in W)G.push(H);return G},forEach=function(W,G){if(W.forEach)return W.forEach(G);for(var H=0;H<W.length;H++)G(W[H],H,W)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(W,G,H){Object.defineProperty(W,G,{writable:!0,enumerable:!1,configurable:!0,value:H})}}catch(W){return function(W,G,H){W[G]=H}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(W){if(!(this instanceof Script))return new Script(W);this.code=W};Script.prototype.runInContext=function(W){if(!(W instanceof Context))throw TypeError("needs a 'context' argument.");var G=document.createElement("iframe");G.style||(G.style={}),G.style.display="none",document.body.appendChild(G);var H=G.contentWindow,J=H.eval,Q=H.execScript;!J&&Q&&(Q.call(H,"null"),J=H.eval),forEach(Object_keys(W),function(G){H[G]=W[G]}),forEach(globals,function(G){W[G]&&(H[G]=W[G])});var ee=Object_keys(H),et=J.call(H,this.code);return forEach(Object_keys(H),function(G){(G in W||-1===indexOf(ee,G))&&(W[G]=H[G])}),forEach(globals,function(G){G in W||defineProp(W,G,H[G])}),document.body.removeChild(G),et},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(W){var G=Script.createContext(W),H=this.runInContext(G);return W&&forEach(Object_keys(G),function(H){W[H]=G[H]}),H},forEach(Object_keys(Script.prototype),function(W){exports[W]=Script[W]=function(G){var H=Script(G);return H[W].apply(H,[].slice.call(arguments,1))}}),exports.isContext=function(W){return W instanceof Context},exports.createScript=function(W){return exports.Script(W)},exports.createContext=Script.createContext=function(W){var G=new Context;return"object"==typeof W&&forEach(Object_keys(W),function(H){G[H]=W[H]}),G}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},88826:function(W,G,H){"use strict";var J=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==H.g)return H.g;throw Error("unable to locate global object")}();W.exports=G=J.fetch,J.fetch&&(G.default=J.fetch.bind(J)),G.Headers=J.Headers,G.Request=J.Request,G.Response=J.Response},10558:function(W,G,H){H(55590),W.exports=H(85215)},75548:function(W){var G=function(){var W=Object.create({Source:Object,config:{},buildArgs:[]});function H(G){var H="config";if(G instanceof Function)H="Source";else if(G instanceof Array)H="buildArgs";else if(G instanceof Object)H="config";else throw Error("Invalid configuration option.");if(W.hasOwnProperty(H))throw Error("Duplicated configuration option: "+H+".");W[H]=G}for(var J=0,Q=arguments.length;J<Q;++J)H(arguments[J]);var ee=W.Source,et=W.config,eo=W.buildArgs;return(ee.extend||G.extend).call(ee,et,eo)};G.factory=function(){return function(){var W=this;W.build instanceof Function&&W.build.apply(W,arguments),W.init instanceof Function&&W.init.apply(W,arguments)}},G.extend=function(W,H){var J,Q=this;return W||(W={}),W.prototype instanceof Object&&W.prototype.constructor!==Object?J=W.prototype.constructor:W.factory instanceof Function&&(J=W.factory.call(Q)),((J=(Q.clone||G.clone).call(Q,J,H)).merge||G.merge).call(J,W),J},G.prototype.extend=function(W,H){var J=this,Q=(J.clone||G.prototype.clone).apply(J,H);return(Q.merge||G.prototype.merge).call(Q,W),Q},G.clone=function(W,H){var J=this;for(var Q in W instanceof Function||(W=(J.factory||G.factory).call(J)),W.prototype=(J.prototype.clone||G.prototype.clone).apply(J.prototype,H||[]),W.prototype.constructor=W,J)"prototype"!==Q&&(W[Q]=J[Q]);return W},G.prototype.clone=function(){var W=this,G=Object.create(W);return G.build instanceof Function&&G.build.apply(G,arguments),G},G.merge=function(W){var H=this;for(var J in W)"prototype"!==J&&(H[J]=W[J]);return W.prototype instanceof Object&&(H.prototype.merge||G.prototype.merge).call(H.prototype,W.prototype),H},G.prototype.merge=function(W){var G=this;for(var H in W)"constructor"!==H&&(G[H]=W[H]);return G},G.absorb=function(W){var H=this;for(var J in W)"prototype"!==J&&(void 0===H[J]||H[J]===Function.prototype[J])&&(H[J]=W[J]);return W.prototype instanceof Object&&(H.prototype.absorb||G.prototype.absorb).call(H.prototype,W.prototype),H},G.prototype.absorb=function(W){var G=this;for(var H in W)"constructor"!==H&&(void 0===G[H]||G[H]===Object.prototype[H])&&(G[H]=W[H]);return G},G.getAncestor=function(){var W=this;if(W!==W.prototype.constructor)return W.prototype.constructor},G.newInstance=function(){var W=this,G=Object.create(this.prototype);return W.apply(G,arguments),G},W.exports=G},3794:function(W){W.exports=function(){throw Error("Not implemented.")}},85215:function(W,G,H){W.exports={Class:H(75548),abstractMethod:H(3794)}},20102:function(W,G,H){let J=H(5364),Q=H(63865),ee=H(52503),et=H(99104);function eo(W,G,H,ee,et){let eo=[].slice.call(arguments,1),ei=eo.length,ea="function"==typeof eo[ei-1];if(!ea&&!J())throw Error("Callback required as last argument");if(ea){if(ei<2)throw Error("Too few arguments provided");2===ei?(et=H,H=G,G=ee=void 0):3===ei&&(G.getContext&&void 0===et?(et=ee,ee=void 0):(et=ee,ee=H,H=G,G=void 0))}else{if(ei<1)throw Error("Too few arguments provided");return 1===ei?(H=G,G=ee=void 0):2!==ei||G.getContext||(ee=H,H=G,G=void 0),new Promise(function(J,et){try{let et=Q.create(H,ee);J(W(et,G,ee))}catch(W){et(W)}})}try{let J=Q.create(H,ee);et(null,W(J,G,ee))}catch(W){et(W)}}G.create=Q.create,G.toCanvas=eo.bind(null,ee.render),G.toDataURL=eo.bind(null,ee.renderToDataURL),G.toString=eo.bind(null,function(W,G,H){return et.render(W,H)})},5364:function(W){W.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},75428:function(W,G,H){let J=H(49210).getSymbolSize;G.getRowColCoords=function(W){if(1===W)return[];let G=Math.floor(W/7)+2,H=J(W),Q=145===H?26:2*Math.ceil((H-13)/(2*G-2)),ee=[H-7];for(let W=1;W<G-1;W++)ee[W]=ee[W-1]-Q;return ee.push(6),ee.reverse()},G.getPositions=function(W){let H=[],J=G.getRowColCoords(W),Q=J.length;for(let W=0;W<Q;W++)for(let G=0;G<Q;G++)(0!==W||0!==G)&&(0!==W||G!==Q-1)&&(W!==Q-1||0!==G)&&H.push([J[W],J[G]]);return H}},60051:function(W,G,H){let J=H(20608),Q=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ee(W){this.mode=J.ALPHANUMERIC,this.data=W}ee.getBitsLength=function(W){return 11*Math.floor(W/2)+6*(W%2)},ee.prototype.getLength=function(){return this.data.length},ee.prototype.getBitsLength=function(){return ee.getBitsLength(this.data.length)},ee.prototype.write=function(W){let G;for(G=0;G+2<=this.data.length;G+=2){let H=45*Q.indexOf(this.data[G]);H+=Q.indexOf(this.data[G+1]),W.put(H,11)}this.data.length%2&&W.put(Q.indexOf(this.data[G]),6)},W.exports=ee},69873:function(W){function G(){this.buffer=[],this.length=0}G.prototype={get:function(W){let G=Math.floor(W/8);return(this.buffer[G]>>>7-W%8&1)==1},put:function(W,G){for(let H=0;H<G;H++)this.putBit((W>>>G-H-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(W){let G=Math.floor(this.length/8);this.buffer.length<=G&&this.buffer.push(0),W&&(this.buffer[G]|=128>>>this.length%8),this.length++}},W.exports=G},54813:function(W){function G(W){if(!W||W<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=W,this.data=new Uint8Array(W*W),this.reservedBit=new Uint8Array(W*W)}G.prototype.set=function(W,G,H,J){let Q=W*this.size+G;this.data[Q]=H,J&&(this.reservedBit[Q]=!0)},G.prototype.get=function(W,G){return this.data[W*this.size+G]},G.prototype.xor=function(W,G,H){this.data[W*this.size+G]^=H},G.prototype.isReserved=function(W,G){return this.reservedBit[W*this.size+G]},W.exports=G},75112:function(W,G,H){let J=H(62981),Q=H(20608);function ee(W){this.mode=Q.BYTE,"string"==typeof W&&(W=J(W)),this.data=new Uint8Array(W)}ee.getBitsLength=function(W){return 8*W},ee.prototype.getLength=function(){return this.data.length},ee.prototype.getBitsLength=function(){return ee.getBitsLength(this.data.length)},ee.prototype.write=function(W){for(let G=0,H=this.data.length;G<H;G++)W.put(this.data[G],8)},W.exports=ee},58045:function(W,G,H){let J=H(6084),Q=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],ee=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];G.getBlocksCount=function(W,G){switch(G){case J.L:return Q[(W-1)*4+0];case J.M:return Q[(W-1)*4+1];case J.Q:return Q[(W-1)*4+2];case J.H:return Q[(W-1)*4+3];default:return}},G.getTotalCodewordsCount=function(W,G){switch(G){case J.L:return ee[(W-1)*4+0];case J.M:return ee[(W-1)*4+1];case J.Q:return ee[(W-1)*4+2];case J.H:return ee[(W-1)*4+3];default:return}}},6084:function(W,G){function H(W){if("string"!=typeof W)throw Error("Param is not a string");let H=W.toLowerCase();switch(H){case"l":case"low":return G.L;case"m":case"medium":return G.M;case"q":case"quartile":return G.Q;case"h":case"high":return G.H;default:throw Error("Unknown EC Level: "+W)}}G.L={bit:1},G.M={bit:0},G.Q={bit:3},G.H={bit:2},G.isValid=function(W){return W&&void 0!==W.bit&&W.bit>=0&&W.bit<4},G.from=function(W,J){if(G.isValid(W))return W;try{return H(W)}catch(W){return J}}},2379:function(W,G,H){let J=H(49210).getSymbolSize,Q=7;G.getPositions=function(W){let G=J(W);return[[0,0],[G-Q,0],[0,G-Q]]}},88566:function(W,G,H){let J=H(49210),Q=1335,ee=21522,et=J.getBCHDigit(Q);G.getEncodedBits=function(W,G){let H=W.bit<<3|G,eo=H<<10;for(;J.getBCHDigit(eo)-et>=0;)eo^=Q<<J.getBCHDigit(eo)-et;return(H<<10|eo)^ee}},88201:function(W,G){let H=new Uint8Array(512),J=new Uint8Array(256);!function(){let W=1;for(let G=0;G<255;G++)H[G]=W,J[W]=G,256&(W<<=1)&&(W^=285);for(let W=255;W<512;W++)H[W]=H[W-255]}(),G.log=function(W){if(W<1)throw Error("log("+W+")");return J[W]},G.exp=function(W){return H[W]},G.mul=function(W,G){return 0===W||0===G?0:H[J[W]+J[G]]}},26250:function(W,G,H){let J=H(20608),Q=H(49210);function ee(W){this.mode=J.KANJI,this.data=W}ee.getBitsLength=function(W){return 13*W},ee.prototype.getLength=function(){return this.data.length},ee.prototype.getBitsLength=function(){return ee.getBitsLength(this.data.length)},ee.prototype.write=function(W){let G;for(G=0;G<this.data.length;G++){let H=Q.toSJIS(this.data[G]);if(H>=33088&&H<=40956)H-=33088;else if(H>=57408&&H<=60351)H-=49472;else throw Error("Invalid SJIS character: "+this.data[G]+"\nMake sure your charset is UTF-8");H=(H>>>8&255)*192+(255&H),W.put(H,13)}},W.exports=ee},61760:function(W,G){G.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let H={N1:3,N2:3,N3:40,N4:10};function J(W,H,J){switch(W){case G.Patterns.PATTERN000:return(H+J)%2==0;case G.Patterns.PATTERN001:return H%2==0;case G.Patterns.PATTERN010:return J%3==0;case G.Patterns.PATTERN011:return(H+J)%3==0;case G.Patterns.PATTERN100:return(Math.floor(H/2)+Math.floor(J/3))%2==0;case G.Patterns.PATTERN101:return H*J%2+H*J%3==0;case G.Patterns.PATTERN110:return(H*J%2+H*J%3)%2==0;case G.Patterns.PATTERN111:return(H*J%3+(H+J)%2)%2==0;default:throw Error("bad maskPattern:"+W)}}G.isValid=function(W){return null!=W&&""!==W&&!isNaN(W)&&W>=0&&W<=7},G.from=function(W){return G.isValid(W)?parseInt(W,10):void 0},G.getPenaltyN1=function(W){let G=W.size,J=0,Q=0,ee=0,et=null,eo=null;for(let ei=0;ei<G;ei++){Q=ee=0,et=eo=null;for(let ea=0;ea<G;ea++){let G=W.get(ei,ea);G===et?Q++:(Q>=5&&(J+=H.N1+(Q-5)),et=G,Q=1),(G=W.get(ea,ei))===eo?ee++:(ee>=5&&(J+=H.N1+(ee-5)),eo=G,ee=1)}Q>=5&&(J+=H.N1+(Q-5)),ee>=5&&(J+=H.N1+(ee-5))}return J},G.getPenaltyN2=function(W){let G=W.size,J=0;for(let H=0;H<G-1;H++)for(let Q=0;Q<G-1;Q++){let G=W.get(H,Q)+W.get(H,Q+1)+W.get(H+1,Q)+W.get(H+1,Q+1);(4===G||0===G)&&J++}return J*H.N2},G.getPenaltyN3=function(W){let G=W.size,J=0,Q=0,ee=0;for(let H=0;H<G;H++){Q=ee=0;for(let et=0;et<G;et++)Q=Q<<1&2047|W.get(H,et),et>=10&&(1488===Q||93===Q)&&J++,ee=ee<<1&2047|W.get(et,H),et>=10&&(1488===ee||93===ee)&&J++}return J*H.N3},G.getPenaltyN4=function(W){let G=0,J=W.data.length;for(let H=0;H<J;H++)G+=W.data[H];let Q=Math.abs(Math.ceil(100*G/J/5)-10);return Q*H.N4},G.applyMask=function(W,G){let H=G.size;for(let Q=0;Q<H;Q++)for(let ee=0;ee<H;ee++)G.isReserved(ee,Q)||G.xor(ee,Q,J(W,ee,Q))},G.getBestMask=function(W,H){let J=Object.keys(G.Patterns).length,Q=0,ee=1/0;for(let et=0;et<J;et++){H(et),G.applyMask(et,W);let J=G.getPenaltyN1(W)+G.getPenaltyN2(W)+G.getPenaltyN3(W)+G.getPenaltyN4(W);G.applyMask(et,W),J<ee&&(ee=J,Q=et)}return Q}},20608:function(W,G,H){let J=H(80789),Q=H(80347);function ee(W){if("string"!=typeof W)throw Error("Param is not a string");let H=W.toLowerCase();switch(H){case"numeric":return G.NUMERIC;case"alphanumeric":return G.ALPHANUMERIC;case"kanji":return G.KANJI;case"byte":return G.BYTE;default:throw Error("Unknown mode: "+W)}}G.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},G.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},G.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},G.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},G.MIXED={bit:-1},G.getCharCountIndicator=function(W,G){if(!W.ccBits)throw Error("Invalid mode: "+W);if(!J.isValid(G))throw Error("Invalid version: "+G);return G>=1&&G<10?W.ccBits[0]:G<27?W.ccBits[1]:W.ccBits[2]},G.getBestModeForData=function(W){return Q.testNumeric(W)?G.NUMERIC:Q.testAlphanumeric(W)?G.ALPHANUMERIC:Q.testKanji(W)?G.KANJI:G.BYTE},G.toString=function(W){if(W&&W.id)return W.id;throw Error("Invalid mode")},G.isValid=function(W){return W&&W.bit&&W.ccBits},G.from=function(W,H){if(G.isValid(W))return W;try{return ee(W)}catch(W){return H}}},98163:function(W,G,H){let J=H(20608);function Q(W){this.mode=J.NUMERIC,this.data=W.toString()}Q.getBitsLength=function(W){return 10*Math.floor(W/3)+(W%3?W%3*3+1:0)},Q.prototype.getLength=function(){return this.data.length},Q.prototype.getBitsLength=function(){return Q.getBitsLength(this.data.length)},Q.prototype.write=function(W){let G,H,J;for(G=0;G+3<=this.data.length;G+=3)J=parseInt(H=this.data.substr(G,3),10),W.put(J,10);let Q=this.data.length-G;Q>0&&(J=parseInt(H=this.data.substr(G),10),W.put(J,3*Q+1))},W.exports=Q},60466:function(W,G,H){let J=H(88201);G.mul=function(W,G){let H=new Uint8Array(W.length+G.length-1);for(let Q=0;Q<W.length;Q++)for(let ee=0;ee<G.length;ee++)H[Q+ee]^=J.mul(W[Q],G[ee]);return H},G.mod=function(W,G){let H=new Uint8Array(W);for(;H.length-G.length>=0;){let W=H[0];for(let Q=0;Q<G.length;Q++)H[Q]^=J.mul(G[Q],W);let Q=0;for(;Q<H.length&&0===H[Q];)Q++;H=H.slice(Q)}return H},G.generateECPolynomial=function(W){let H=new Uint8Array([1]);for(let Q=0;Q<W;Q++)H=G.mul(H,new Uint8Array([1,J.exp(Q)]));return H}},63865:function(W,G,H){let J=H(49210),Q=H(6084),ee=H(69873),et=H(54813),eo=H(75428),ei=H(2379),ea=H(61760),es=H(58045),eu=H(14196),ec=H(87667),ef=H(88566),ed=H(20608),eh=H(22844);function ep(W,G){let H=W.size,J=ei.getPositions(G);for(let G=0;G<J.length;G++){let Q=J[G][0],ee=J[G][1];for(let G=-1;G<=7;G++)if(!(Q+G<=-1)&&!(H<=Q+G))for(let J=-1;J<=7;J++)ee+J<=-1||H<=ee+J||(G>=0&&G<=6&&(0===J||6===J)||J>=0&&J<=6&&(0===G||6===G)||G>=2&&G<=4&&J>=2&&J<=4?W.set(Q+G,ee+J,!0,!0):W.set(Q+G,ee+J,!1,!0))}}function ey(W){let G=W.size;for(let H=8;H<G-8;H++){let G=H%2==0;W.set(H,6,G,!0),W.set(6,H,G,!0)}}function ev(W,G){let H=eo.getPositions(G);for(let G=0;G<H.length;G++){let J=H[G][0],Q=H[G][1];for(let G=-2;G<=2;G++)for(let H=-2;H<=2;H++)-2===G||2===G||-2===H||2===H||0===G&&0===H?W.set(J+G,Q+H,!0,!0):W.set(J+G,Q+H,!1,!0)}}function em(W,G){let H,J,Q;let ee=W.size,et=ec.getEncodedBits(G);for(let G=0;G<18;G++)H=Math.floor(G/3),J=G%3+ee-8-3,Q=(et>>G&1)==1,W.set(H,J,Q,!0),W.set(J,H,Q,!0)}function eg(W,G,H){let J,Q;let ee=W.size,et=ef.getEncodedBits(G,H);for(J=0;J<15;J++)Q=(et>>J&1)==1,J<6?W.set(J,8,Q,!0):J<8?W.set(J+1,8,Q,!0):W.set(ee-15+J,8,Q,!0),J<8?W.set(8,ee-J-1,Q,!0):J<9?W.set(8,15-J-1+1,Q,!0):W.set(8,15-J-1,Q,!0);W.set(ee-8,8,1,!0)}function eb(W,G){let H=W.size,J=-1,Q=H-1,ee=7,et=0;for(let eo=H-1;eo>0;eo-=2)for(6===eo&&eo--;;){for(let H=0;H<2;H++)if(!W.isReserved(Q,eo-H)){let J=!1;et<G.length&&(J=(G[et]>>>ee&1)==1),W.set(Q,eo-H,J),-1==--ee&&(et++,ee=7)}if((Q+=J)<0||H<=Q){Q-=J,J=-J;break}}}function ew(W,G,H){let Q=new ee;H.forEach(function(G){Q.put(G.mode.bit,4),Q.put(G.getLength(),ed.getCharCountIndicator(G.mode,W)),G.write(Q)});let et=J.getSymbolTotalCodewords(W),eo=es.getTotalCodewordsCount(W,G),ei=(et-eo)*8;for(Q.getLengthInBits()+4<=ei&&Q.put(0,4);Q.getLengthInBits()%8!=0;)Q.putBit(0);let ea=(ei-Q.getLengthInBits())/8;for(let W=0;W<ea;W++)Q.put(W%2?17:236,8);return e_(Q,W,G)}function e_(W,G,H){let Q,ee;let et=J.getSymbolTotalCodewords(G),eo=es.getTotalCodewordsCount(G,H),ei=et-eo,ea=es.getBlocksCount(G,H),ec=et%ea,ef=ea-ec,ed=Math.floor(et/ea),eh=Math.floor(ei/ea),ep=eh+1,ey=ed-eh,ev=new eu(ey),em=0,eg=Array(ea),eb=Array(ea),ew=0,e_=new Uint8Array(W.buffer);for(let W=0;W<ea;W++){let G=W<ef?eh:ep;eg[W]=e_.slice(em,em+G),eb[W]=ev.encode(eg[W]),em+=G,ew=Math.max(ew,G)}let eS=new Uint8Array(et),eE=0;for(Q=0;Q<ew;Q++)for(ee=0;ee<ea;ee++)Q<eg[ee].length&&(eS[eE++]=eg[ee][Q]);for(Q=0;Q<ey;Q++)for(ee=0;ee<ea;ee++)eS[eE++]=eb[ee][Q];return eS}function eS(W,G,H,Q){let ee;if(Array.isArray(W))ee=eh.fromArray(W);else if("string"==typeof W){let J=G;if(!J){let G=eh.rawSplit(W);J=ec.getBestVersionForData(G,H)}ee=eh.fromString(W,J||40)}else throw Error("Invalid data");let eo=ec.getBestVersionForData(ee,H);if(!eo)throw Error("The amount of data is too big to be stored in a QR Code");if(G){if(G<eo)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+eo+".\n")}else G=eo;let ei=ew(G,H,ee),es=J.getSymbolSize(G),eu=new et(es);return ep(eu,G),ey(eu),ev(eu,G),eg(eu,H,0),G>=7&&em(eu,G),eb(eu,ei),isNaN(Q)&&(Q=ea.getBestMask(eu,eg.bind(null,eu,H))),ea.applyMask(Q,eu),eg(eu,H,Q),{modules:eu,version:G,errorCorrectionLevel:H,maskPattern:Q,segments:ee}}G.create=function(W,G){let H,ee;if(void 0===W||""===W)throw Error("No input text");let et=Q.M;return void 0!==G&&(et=Q.from(G.errorCorrectionLevel,Q.M),H=ec.from(G.version),ee=ea.from(G.maskPattern),G.toSJISFunc&&J.setToSJISFunction(G.toSJISFunc)),eS(W,H,et,ee)}},14196:function(W,G,H){let J=H(60466);function Q(W){this.genPoly=void 0,this.degree=W,this.degree&&this.initialize(this.degree)}Q.prototype.initialize=function(W){this.degree=W,this.genPoly=J.generateECPolynomial(this.degree)},Q.prototype.encode=function(W){if(!this.genPoly)throw Error("Encoder not initialized");let G=new Uint8Array(W.length+this.degree);G.set(W);let H=J.mod(G,this.genPoly),Q=this.degree-H.length;if(Q>0){let W=new Uint8Array(this.degree);return W.set(H,Q),W}return H},W.exports=Q},80347:function(W,G){let H="[0-9]+",J="[A-Z $%*+\\-./:]+",Q="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Q=Q.replace(/u/g,"\\u");let ee="(?:(?![A-Z0-9 $%*+\\-./:]|"+Q+")(?:.|[\r\n]))+";G.KANJI=RegExp(Q,"g"),G.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),G.BYTE=RegExp(ee,"g"),G.NUMERIC=RegExp(H,"g"),G.ALPHANUMERIC=RegExp(J,"g");let et=RegExp("^"+Q+"$"),eo=RegExp("^"+H+"$"),ei=RegExp("^[A-Z0-9 $%*+\\-./:]+$");G.testKanji=function(W){return et.test(W)},G.testNumeric=function(W){return eo.test(W)},G.testAlphanumeric=function(W){return ei.test(W)}},22844:function(W,G,H){let J=H(20608),Q=H(98163),ee=H(60051),et=H(75112),eo=H(26250),ei=H(80347),ea=H(49210),es=H(13526);function eu(W){return unescape(encodeURIComponent(W)).length}function ec(W,G,H){let J;let Q=[];for(;null!==(J=W.exec(H));)Q.push({data:J[0],index:J.index,mode:G,length:J[0].length});return Q}function ef(W){let G,H;let Q=ec(ei.NUMERIC,J.NUMERIC,W),ee=ec(ei.ALPHANUMERIC,J.ALPHANUMERIC,W);ea.isKanjiModeEnabled()?(G=ec(ei.BYTE,J.BYTE,W),H=ec(ei.KANJI,J.KANJI,W)):(G=ec(ei.BYTE_KANJI,J.BYTE,W),H=[]);let et=Q.concat(ee,G,H);return et.sort(function(W,G){return W.index-G.index}).map(function(W){return{data:W.data,mode:W.mode,length:W.length}})}function ed(W,G){switch(G){case J.NUMERIC:return Q.getBitsLength(W);case J.ALPHANUMERIC:return ee.getBitsLength(W);case J.KANJI:return eo.getBitsLength(W);case J.BYTE:return et.getBitsLength(W)}}function eh(W){return W.reduce(function(W,G){let H=W.length-1>=0?W[W.length-1]:null;return H&&H.mode===G.mode?W[W.length-1].data+=G.data:W.push(G),W},[])}function ep(W){let G=[];for(let H=0;H<W.length;H++){let Q=W[H];switch(Q.mode){case J.NUMERIC:G.push([Q,{data:Q.data,mode:J.ALPHANUMERIC,length:Q.length},{data:Q.data,mode:J.BYTE,length:Q.length}]);break;case J.ALPHANUMERIC:G.push([Q,{data:Q.data,mode:J.BYTE,length:Q.length}]);break;case J.KANJI:G.push([Q,{data:Q.data,mode:J.BYTE,length:eu(Q.data)}]);break;case J.BYTE:G.push([{data:Q.data,mode:J.BYTE,length:eu(Q.data)}])}}return G}function ey(W,G){let H={},Q={start:{}},ee=["start"];for(let et=0;et<W.length;et++){let eo=W[et],ei=[];for(let W=0;W<eo.length;W++){let ea=eo[W],es=""+et+W;ei.push(es),H[es]={node:ea,lastCount:0},Q[es]={};for(let W=0;W<ee.length;W++){let et=ee[W];H[et]&&H[et].node.mode===ea.mode?(Q[et][es]=ed(H[et].lastCount+ea.length,ea.mode)-ed(H[et].lastCount,ea.mode),H[et].lastCount+=ea.length):(H[et]&&(H[et].lastCount=ea.length),Q[et][es]=ed(ea.length,ea.mode)+4+J.getCharCountIndicator(ea.mode,G))}}ee=ei}for(let W=0;W<ee.length;W++)Q[ee[W]].end=0;return{map:Q,table:H}}function ev(W,G){let H;let ei=J.getBestModeForData(W);if((H=J.from(G,ei))!==J.BYTE&&H.bit<ei.bit)throw Error('"'+W+'" cannot be encoded with mode '+J.toString(H)+".\n Suggested mode is: "+J.toString(ei));switch(H!==J.KANJI||ea.isKanjiModeEnabled()||(H=J.BYTE),H){case J.NUMERIC:return new Q(W);case J.ALPHANUMERIC:return new ee(W);case J.KANJI:return new eo(W);case J.BYTE:return new et(W)}}G.fromArray=function(W){return W.reduce(function(W,G){return"string"==typeof G?W.push(ev(G,null)):G.data&&W.push(ev(G.data,G.mode)),W},[])},G.fromString=function(W,H){let J=ef(W,ea.isKanjiModeEnabled()),Q=ep(J),ee=ey(Q,H),et=es.find_path(ee.map,"start","end"),eo=[];for(let W=1;W<et.length-1;W++)eo.push(ee.table[et[W]].node);return G.fromArray(eh(eo))},G.rawSplit=function(W){return G.fromArray(ef(W,ea.isKanjiModeEnabled()))}},49210:function(W,G){let H;let J=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];G.getSymbolSize=function(W){if(!W)throw Error('"version" cannot be null or undefined');if(W<1||W>40)throw Error('"version" should be in range from 1 to 40');return 4*W+17},G.getSymbolTotalCodewords=function(W){return J[W]},G.getBCHDigit=function(W){let G=0;for(;0!==W;)G++,W>>>=1;return G},G.setToSJISFunction=function(W){if("function"!=typeof W)throw Error('"toSJISFunc" is not a valid function.');H=W},G.isKanjiModeEnabled=function(){return void 0!==H},G.toSJIS=function(W){return H(W)}},80789:function(W,G){G.isValid=function(W){return!isNaN(W)&&W>=1&&W<=40}},87667:function(W,G,H){let J=H(49210),Q=H(58045),ee=H(6084),et=H(20608),eo=H(80789),ei=7973,ea=J.getBCHDigit(ei);function es(W,H,J){for(let Q=1;Q<=40;Q++)if(H<=G.getCapacity(Q,J,W))return Q}function eu(W,G){return et.getCharCountIndicator(W,G)+4}function ec(W,G){let H=0;return W.forEach(function(W){let J=eu(W.mode,G);H+=J+W.getBitsLength()}),H}function ef(W,H){for(let J=1;J<=40;J++){let Q=ec(W,J);if(Q<=G.getCapacity(J,H,et.MIXED))return J}}G.from=function(W,G){return eo.isValid(W)?parseInt(W,10):G},G.getCapacity=function(W,G,H){if(!eo.isValid(W))throw Error("Invalid QR Code version");void 0===H&&(H=et.BYTE);let ee=J.getSymbolTotalCodewords(W),ei=Q.getTotalCodewordsCount(W,G),ea=(ee-ei)*8;if(H===et.MIXED)return ea;let es=ea-eu(H,W);switch(H){case et.NUMERIC:return Math.floor(es/10*3);case et.ALPHANUMERIC:return Math.floor(es/11*2);case et.KANJI:return Math.floor(es/13);case et.BYTE:default:return Math.floor(es/8)}},G.getBestVersionForData=function(W,G){let H;let J=ee.from(G,ee.M);if(Array.isArray(W)){if(W.length>1)return ef(W,J);if(0===W.length)return 1;H=W[0]}else H=W;return es(H.mode,H.getLength(),J)},G.getEncodedBits=function(W){if(!eo.isValid(W)||W<7)throw Error("Invalid QR Code version");let G=W<<12;for(;J.getBCHDigit(G)-ea>=0;)G^=ei<<J.getBCHDigit(G)-ea;return W<<12|G}},52503:function(W,G,H){let J=H(86957);function Q(W,G,H){W.clearRect(0,0,G.width,G.height),G.style||(G.style={}),G.height=H,G.width=H,G.style.height=H+"px",G.style.width=H+"px"}function ee(){try{return document.createElement("canvas")}catch(W){throw Error("You need to specify a canvas element")}}G.render=function(W,G,H){let et=H,eo=G;void 0!==et||G&&G.getContext||(et=G,G=void 0),G||(eo=ee()),et=J.getOptions(et);let ei=J.getImageWidth(W.modules.size,et),ea=eo.getContext("2d"),es=ea.createImageData(ei,ei);return J.qrToImageData(es.data,W,et),Q(ea,eo,ei),ea.putImageData(es,0,0),eo},G.renderToDataURL=function(W,H,J){let Q=J;void 0!==Q||H&&H.getContext||(Q=H,H=void 0),Q||(Q={});let ee=G.render(W,H,Q),et=Q.type||"image/png",eo=Q.rendererOpts||{};return ee.toDataURL(et,eo.quality)}},99104:function(W,G,H){let J=H(86957);function Q(W,G){let H=W.a/255,J=G+'="'+W.hex+'"';return H<1?J+" "+G+'-opacity="'+H.toFixed(2).slice(1)+'"':J}function ee(W,G,H){let J=W+G;return void 0!==H&&(J+=" "+H),J}function et(W,G,H){let J="",Q=0,et=!1,eo=0;for(let ei=0;ei<W.length;ei++){let ea=Math.floor(ei%G),es=Math.floor(ei/G);ea||et||(et=!0),W[ei]?(eo++,ei>0&&ea>0&&W[ei-1]||(J+=et?ee("M",ea+H,.5+es+H):ee("m",Q,0),Q=0,et=!1),ea+1<G&&W[ei+1]||(J+=ee("h",eo),eo=0)):Q++}return J}G.render=function(W,G,H){let ee=J.getOptions(G),eo=W.modules.size,ei=W.modules.data,ea=eo+2*ee.margin,es=ee.color.light.a?"<path "+Q(ee.color.light,"fill")+' d="M0 0h'+ea+"v"+ea+'H0z"/>':"",eu="<path "+Q(ee.color.dark,"stroke")+' d="'+et(ei,eo,ee.margin)+'"/>',ec='viewBox="0 0 '+ea+" "+ea+'"',ef=ee.width?'width="'+ee.width+'" height="'+ee.width+'" ':"",ed='<svg xmlns="http://www.w3.org/2000/svg" '+ef+ec+' shape-rendering="crispEdges">'+es+eu+"</svg>\n";return"function"==typeof H&&H(null,ed),ed}},86957:function(W,G){function H(W){if("number"==typeof W&&(W=W.toString()),"string"!=typeof W)throw Error("Color should be defined as hex string");let G=W.slice().replace("#","").split("");if(G.length<3||5===G.length||G.length>8)throw Error("Invalid hex color: "+W);(3===G.length||4===G.length)&&(G=Array.prototype.concat.apply([],G.map(function(W){return[W,W]}))),6===G.length&&G.push("F","F");let H=parseInt(G.join(""),16);return{r:H>>24&255,g:H>>16&255,b:H>>8&255,a:255&H,hex:"#"+G.slice(0,6).join("")}}G.getOptions=function(W){W||(W={}),W.color||(W.color={});let G=void 0===W.margin||null===W.margin||W.margin<0?4:W.margin,J=W.width&&W.width>=21?W.width:void 0,Q=W.scale||4;return{width:J,scale:J?4:Q,margin:G,color:{dark:H(W.color.dark||"#000000ff"),light:H(W.color.light||"#ffffffff")},type:W.type,rendererOpts:W.rendererOpts||{}}},G.getScale=function(W,G){return G.width&&G.width>=W+2*G.margin?G.width/(W+2*G.margin):G.scale},G.getImageWidth=function(W,H){let J=G.getScale(W,H);return Math.floor((W+2*H.margin)*J)},G.qrToImageData=function(W,H,J){let Q=H.modules.size,ee=H.modules.data,et=G.getScale(Q,J),eo=Math.floor((Q+2*J.margin)*et),ei=J.margin*et,ea=[J.color.light,J.color.dark];for(let G=0;G<eo;G++)for(let H=0;H<eo;H++){let es=(G*eo+H)*4,eu=J.color.light;if(G>=ei&&H>=ei&&G<eo-ei&&H<eo-ei){let W=Math.floor((G-ei)/et),J=Math.floor((H-ei)/et);eu=ea[ee[W*Q+J]?1:0]}W[es++]=eu.r,W[es++]=eu.g,W[es++]=eu.b,W[es]=eu.a}}},84875:function(W,G,H){"use strict";let J=H(55517),Q=H(77372),ee=H(31770),et=H(65194),eo=W=>null==W,ei=Symbol("encodeFragmentIdentifier");function ea(W){switch(W.arrayFormat){case"index":return G=>(H,J)=>{let Q=H.length;return void 0===J||W.skipNull&&null===J||W.skipEmptyString&&""===J?H:null===J?[...H,[ec(G,W),"[",Q,"]"].join("")]:[...H,[ec(G,W),"[",ec(Q,W),"]=",ec(J,W)].join("")]};case"bracket":return G=>(H,J)=>void 0===J||W.skipNull&&null===J||W.skipEmptyString&&""===J?H:null===J?[...H,[ec(G,W),"[]"].join("")]:[...H,[ec(G,W),"[]=",ec(J,W)].join("")];case"colon-list-separator":return G=>(H,J)=>void 0===J||W.skipNull&&null===J||W.skipEmptyString&&""===J?H:null===J?[...H,[ec(G,W),":list="].join("")]:[...H,[ec(G,W),":list=",ec(J,W)].join("")];case"comma":case"separator":case"bracket-separator":{let G="bracket-separator"===W.arrayFormat?"[]=":"=";return H=>(J,Q)=>void 0===Q||W.skipNull&&null===Q||W.skipEmptyString&&""===Q?J:(Q=null===Q?"":Q,0===J.length)?[[ec(H,W),G,ec(Q,W)].join("")]:[[J,ec(Q,W)].join(W.arrayFormatSeparator)]}default:return G=>(H,J)=>void 0===J||W.skipNull&&null===J||W.skipEmptyString&&""===J?H:null===J?[...H,ec(G,W)]:[...H,[ec(G,W),"=",ec(J,W)].join("")]}}function es(W){let G;switch(W.arrayFormat){case"index":return(W,H,J)=>{if(G=/\[(\d*)\]$/.exec(W),W=W.replace(/\[\d*\]$/,""),!G){J[W]=H;return}void 0===J[W]&&(J[W]={}),J[W][G[1]]=H};case"bracket":return(W,H,J)=>{if(G=/(\[\])$/.exec(W),W=W.replace(/\[\]$/,""),!G){J[W]=H;return}if(void 0===J[W]){J[W]=[H];return}J[W]=[].concat(J[W],H)};case"colon-list-separator":return(W,H,J)=>{if(G=/(:list)$/.exec(W),W=W.replace(/:list$/,""),!G){J[W]=H;return}if(void 0===J[W]){J[W]=[H];return}J[W]=[].concat(J[W],H)};case"comma":case"separator":return(G,H,J)=>{let Q="string"==typeof H&&H.includes(W.arrayFormatSeparator),ee="string"==typeof H&&!Q&&ef(H,W).includes(W.arrayFormatSeparator);H=ee?ef(H,W):H;let et=Q||ee?H.split(W.arrayFormatSeparator).map(G=>ef(G,W)):null===H?H:ef(H,W);J[G]=et};case"bracket-separator":return(G,H,J)=>{let Q=/(\[\])$/.test(G);if(G=G.replace(/\[\]$/,""),!Q){J[G]=H?ef(H,W):H;return}let ee=null===H?[]:H.split(W.arrayFormatSeparator).map(G=>ef(G,W));if(void 0===J[G]){J[G]=ee;return}J[G]=[].concat(J[G],ee)};default:return(W,G,H)=>{if(void 0===H[W]){H[W]=G;return}H[W]=[].concat(H[W],G)}}}function eu(W){if("string"!=typeof W||1!==W.length)throw TypeError("arrayFormatSeparator must be single character string")}function ec(W,G){return G.encode?G.strict?J(W):encodeURIComponent(W):W}function ef(W,G){return G.decode?Q(W):W}function ed(W){return Array.isArray(W)?W.sort():"object"==typeof W?ed(Object.keys(W)).sort((W,G)=>Number(W)-Number(G)).map(G=>W[G]):W}function eh(W){let G=W.indexOf("#");return -1!==G&&(W=W.slice(0,G)),W}function ep(W){let G="",H=W.indexOf("#");return -1!==H&&(G=W.slice(H)),G}function ey(W){W=eh(W);let G=W.indexOf("?");return -1===G?"":W.slice(G+1)}function ev(W,G){return G.parseNumbers&&!Number.isNaN(Number(W))&&"string"==typeof W&&""!==W.trim()?W=Number(W):G.parseBooleans&&null!==W&&("true"===W.toLowerCase()||"false"===W.toLowerCase())&&(W="true"===W.toLowerCase()),W}function em(W,G){eu((G=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},G)).arrayFormatSeparator);let H=es(G),J=Object.create(null);if("string"!=typeof W||!(W=W.trim().replace(/^[?#&]/,"")))return J;for(let Q of W.split("&")){if(""===Q)continue;let[W,et]=ee(G.decode?Q.replace(/\+/g," "):Q,"=");et=void 0===et?null:["comma","separator","bracket-separator"].includes(G.arrayFormat)?et:ef(et,G),H(ef(W,G),et,J)}for(let W of Object.keys(J)){let H=J[W];if("object"==typeof H&&null!==H)for(let W of Object.keys(H))H[W]=ev(H[W],G);else J[W]=ev(H,G)}return!1===G.sort?J:(!0===G.sort?Object.keys(J).sort():Object.keys(J).sort(G.sort)).reduce((W,G)=>{let H=J[G];return H&&"object"==typeof H&&!Array.isArray(H)?W[G]=ed(H):W[G]=H,W},Object.create(null))}G.extract=ey,G.parse=em,G.stringify=(W,G)=>{if(!W)return"";eu((G=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},G)).arrayFormatSeparator);let H=H=>G.skipNull&&eo(W[H])||G.skipEmptyString&&""===W[H],J=ea(G),Q={};for(let G of Object.keys(W))H(G)||(Q[G]=W[G]);let ee=Object.keys(Q);return!1!==G.sort&&ee.sort(G.sort),ee.map(H=>{let Q=W[H];return void 0===Q?"":null===Q?ec(H,G):Array.isArray(Q)?0===Q.length&&"bracket-separator"===G.arrayFormat?ec(H,G)+"[]":Q.reduce(J(H),[]).join("&"):ec(H,G)+"="+ec(Q,G)}).filter(W=>W.length>0).join("&")},G.parseUrl=(W,G)=>{G=Object.assign({decode:!0},G);let[H,J]=ee(W,"#");return Object.assign({url:H.split("?")[0]||"",query:em(ey(W),G)},G&&G.parseFragmentIdentifier&&J?{fragmentIdentifier:ef(J,G)}:{})},G.stringifyUrl=(W,H)=>{H=Object.assign({encode:!0,strict:!0,[ei]:!0},H);let J=eh(W.url).split("?")[0]||"",Q=G.extract(W.url),ee=G.parse(Q,{sort:!1}),et=Object.assign(ee,W.query),eo=G.stringify(et,H);eo&&(eo=`?${eo}`);let ea=ep(W.url);return W.fragmentIdentifier&&(ea=`#${H[ei]?ec(W.fragmentIdentifier,H):W.fragmentIdentifier}`),`${J}${eo}${ea}`},G.pick=(W,H,J)=>{J=Object.assign({parseFragmentIdentifier:!0,[ei]:!1},J);let{url:Q,query:ee,fragmentIdentifier:eo}=G.parseUrl(W,J);return G.stringifyUrl({url:Q,query:et(ee,H),fragmentIdentifier:eo},J)},G.exclude=(W,H,J)=>{let Q=Array.isArray(H)?W=>!H.includes(W):(W,G)=>!H(W,G);return G.pick(W,Q,J)}},70326:function(W,G,H){"use strict";var J=this&&this.__createBinding||(Object.create?function(W,G,H,J){void 0===J&&(J=H),Object.defineProperty(W,J,{enumerable:!0,get:function(){return G[H]}})}:function(W,G,H,J){void 0===J&&(J=H),W[J]=G[H]}),Q=this&&this.__exportStar||function(W,G){for(var H in W)"default"===H||Object.prototype.hasOwnProperty.call(G,H)||J(G,W,H)};Object.defineProperty(G,"__esModule",{value:!0}),G.interval=G.iif=G.generate=G.fromEventPattern=G.fromEvent=G.from=G.forkJoin=G.empty=G.defer=G.connectable=G.concat=G.combineLatest=G.bindNodeCallback=G.bindCallback=G.UnsubscriptionError=G.TimeoutError=G.SequenceError=G.ObjectUnsubscribedError=G.NotFoundError=G.EmptyError=G.ArgumentOutOfRangeError=G.firstValueFrom=G.lastValueFrom=G.isObservable=G.identity=G.noop=G.pipe=G.NotificationKind=G.Notification=G.Subscriber=G.Subscription=G.Scheduler=G.VirtualAction=G.VirtualTimeScheduler=G.animationFrameScheduler=G.animationFrame=G.queueScheduler=G.queue=G.asyncScheduler=G.async=G.asapScheduler=G.asap=G.AsyncSubject=G.ReplaySubject=G.BehaviorSubject=G.Subject=G.animationFrames=G.observable=G.ConnectableObservable=G.Observable=void 0,G.filter=G.expand=G.exhaustMap=G.exhaustAll=G.exhaust=G.every=G.endWith=G.elementAt=G.distinctUntilKeyChanged=G.distinctUntilChanged=G.distinct=G.dematerialize=G.delayWhen=G.delay=G.defaultIfEmpty=G.debounceTime=G.debounce=G.count=G.connect=G.concatWith=G.concatMapTo=G.concatMap=G.concatAll=G.combineLatestWith=G.combineLatestAll=G.combineAll=G.catchError=G.bufferWhen=G.bufferToggle=G.bufferTime=G.bufferCount=G.buffer=G.auditTime=G.audit=G.config=G.NEVER=G.EMPTY=G.scheduled=G.zip=G.using=G.timer=G.throwError=G.range=G.race=G.partition=G.pairs=G.onErrorResumeNext=G.of=G.never=G.merge=void 0,G.switchMap=G.switchAll=G.subscribeOn=G.startWith=G.skipWhile=G.skipUntil=G.skipLast=G.skip=G.single=G.shareReplay=G.share=G.sequenceEqual=G.scan=G.sampleTime=G.sample=G.refCount=G.retryWhen=G.retry=G.repeatWhen=G.repeat=G.reduce=G.raceWith=G.publishReplay=G.publishLast=G.publishBehavior=G.publish=G.pluck=G.pairwise=G.onErrorResumeNextWith=G.observeOn=G.multicast=G.min=G.mergeWith=G.mergeScan=G.mergeMapTo=G.mergeMap=G.flatMap=G.mergeAll=G.max=G.materialize=G.mapTo=G.map=G.last=G.isEmpty=G.ignoreElements=G.groupBy=G.first=G.findIndex=G.find=G.finalize=void 0,G.zipWith=G.zipAll=G.withLatestFrom=G.windowWhen=G.windowToggle=G.windowTime=G.windowCount=G.window=G.toArray=G.timestamp=G.timeoutWith=G.timeout=G.timeInterval=G.throwIfEmpty=G.throttleTime=G.throttle=G.tap=G.takeWhile=G.takeUntil=G.takeLast=G.take=G.switchScan=G.switchMapTo=void 0;var ee=H(95190);Object.defineProperty(G,"Observable",{enumerable:!0,get:function(){return ee.Observable}});var et=H(55330);Object.defineProperty(G,"ConnectableObservable",{enumerable:!0,get:function(){return et.ConnectableObservable}});var eo=H(98835);Object.defineProperty(G,"observable",{enumerable:!0,get:function(){return eo.observable}});var ei=H(70755);Object.defineProperty(G,"animationFrames",{enumerable:!0,get:function(){return ei.animationFrames}});var ea=H(91045);Object.defineProperty(G,"Subject",{enumerable:!0,get:function(){return ea.Subject}});var es=H(68445);Object.defineProperty(G,"BehaviorSubject",{enumerable:!0,get:function(){return es.BehaviorSubject}});var eu=H(81559);Object.defineProperty(G,"ReplaySubject",{enumerable:!0,get:function(){return eu.ReplaySubject}});var ec=H(82398);Object.defineProperty(G,"AsyncSubject",{enumerable:!0,get:function(){return ec.AsyncSubject}});var ef=H(82646);Object.defineProperty(G,"asap",{enumerable:!0,get:function(){return ef.asap}}),Object.defineProperty(G,"asapScheduler",{enumerable:!0,get:function(){return ef.asapScheduler}});var ed=H(54176);Object.defineProperty(G,"async",{enumerable:!0,get:function(){return ed.async}}),Object.defineProperty(G,"asyncScheduler",{enumerable:!0,get:function(){return ed.asyncScheduler}});var eh=H(38267);Object.defineProperty(G,"queue",{enumerable:!0,get:function(){return eh.queue}}),Object.defineProperty(G,"queueScheduler",{enumerable:!0,get:function(){return eh.queueScheduler}});var ep=H(50559);Object.defineProperty(G,"animationFrame",{enumerable:!0,get:function(){return ep.animationFrame}}),Object.defineProperty(G,"animationFrameScheduler",{enumerable:!0,get:function(){return ep.animationFrameScheduler}});var ey=H(48571);Object.defineProperty(G,"VirtualTimeScheduler",{enumerable:!0,get:function(){return ey.VirtualTimeScheduler}}),Object.defineProperty(G,"VirtualAction",{enumerable:!0,get:function(){return ey.VirtualAction}});var ev=H(59939);Object.defineProperty(G,"Scheduler",{enumerable:!0,get:function(){return ev.Scheduler}});var em=H(45088);Object.defineProperty(G,"Subscription",{enumerable:!0,get:function(){return em.Subscription}});var eg=H(29770);Object.defineProperty(G,"Subscriber",{enumerable:!0,get:function(){return eg.Subscriber}});var eb=H(74588);Object.defineProperty(G,"Notification",{enumerable:!0,get:function(){return eb.Notification}}),Object.defineProperty(G,"NotificationKind",{enumerable:!0,get:function(){return eb.NotificationKind}});var ew=H(75720);Object.defineProperty(G,"pipe",{enumerable:!0,get:function(){return ew.pipe}});var e_=H(34842);Object.defineProperty(G,"noop",{enumerable:!0,get:function(){return e_.noop}});var eS=H(54327);Object.defineProperty(G,"identity",{enumerable:!0,get:function(){return eS.identity}});var eE=H(39578);Object.defineProperty(G,"isObservable",{enumerable:!0,get:function(){return eE.isObservable}});var eO=H(96685);Object.defineProperty(G,"lastValueFrom",{enumerable:!0,get:function(){return eO.lastValueFrom}});var eA=H(74054);Object.defineProperty(G,"firstValueFrom",{enumerable:!0,get:function(){return eA.firstValueFrom}});var eP=H(67711);Object.defineProperty(G,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return eP.ArgumentOutOfRangeError}});var eM=H(81585);Object.defineProperty(G,"EmptyError",{enumerable:!0,get:function(){return eM.EmptyError}});var ej=H(84577);Object.defineProperty(G,"NotFoundError",{enumerable:!0,get:function(){return ej.NotFoundError}});var eT=H(23778);Object.defineProperty(G,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return eT.ObjectUnsubscribedError}});var ex=H(23975);Object.defineProperty(G,"SequenceError",{enumerable:!0,get:function(){return ex.SequenceError}});var eI=H(61815);Object.defineProperty(G,"TimeoutError",{enumerable:!0,get:function(){return eI.TimeoutError}});var eC=H(16664);Object.defineProperty(G,"UnsubscriptionError",{enumerable:!0,get:function(){return eC.UnsubscriptionError}});var eN=H(63847);Object.defineProperty(G,"bindCallback",{enumerable:!0,get:function(){return eN.bindCallback}});var ek=H(65838);Object.defineProperty(G,"bindNodeCallback",{enumerable:!0,get:function(){return ek.bindNodeCallback}});var eR=H(49213);Object.defineProperty(G,"combineLatest",{enumerable:!0,get:function(){return eR.combineLatest}});var eD=H(3153);Object.defineProperty(G,"concat",{enumerable:!0,get:function(){return eD.concat}});var eL=H(93683);Object.defineProperty(G,"connectable",{enumerable:!0,get:function(){return eL.connectable}});var eU=H(56614);Object.defineProperty(G,"defer",{enumerable:!0,get:function(){return eU.defer}});var eF=H(88868);Object.defineProperty(G,"empty",{enumerable:!0,get:function(){return eF.empty}});var e$=H(61171);Object.defineProperty(G,"forkJoin",{enumerable:!0,get:function(){return e$.forkJoin}});var eB=H(77324);Object.defineProperty(G,"from",{enumerable:!0,get:function(){return eB.from}});var eK=H(19325);Object.defineProperty(G,"fromEvent",{enumerable:!0,get:function(){return eK.fromEvent}});var eW=H(54106);Object.defineProperty(G,"fromEventPattern",{enumerable:!0,get:function(){return eW.fromEventPattern}});var ez=H(47268);Object.defineProperty(G,"generate",{enumerable:!0,get:function(){return ez.generate}});var eG=H(71263);Object.defineProperty(G,"iif",{enumerable:!0,get:function(){return eG.iif}});var eq=H(11327);Object.defineProperty(G,"interval",{enumerable:!0,get:function(){return eq.interval}});var eH=H(71434);Object.defineProperty(G,"merge",{enumerable:!0,get:function(){return eH.merge}});var eV=H(67469);Object.defineProperty(G,"never",{enumerable:!0,get:function(){return eV.never}});var eJ=H(76487);Object.defineProperty(G,"of",{enumerable:!0,get:function(){return eJ.of}});var eY=H(52904);Object.defineProperty(G,"onErrorResumeNext",{enumerable:!0,get:function(){return eY.onErrorResumeNext}});var eZ=H(8555);Object.defineProperty(G,"pairs",{enumerable:!0,get:function(){return eZ.pairs}});var eQ=H(89118);Object.defineProperty(G,"partition",{enumerable:!0,get:function(){return eQ.partition}});var eX=H(60670);Object.defineProperty(G,"race",{enumerable:!0,get:function(){return eX.race}});var e0=H(98257);Object.defineProperty(G,"range",{enumerable:!0,get:function(){return e0.range}});var e1=H(27659);Object.defineProperty(G,"throwError",{enumerable:!0,get:function(){return e1.throwError}});var e2=H(19785);Object.defineProperty(G,"timer",{enumerable:!0,get:function(){return e2.timer}});var e5=H(52856);Object.defineProperty(G,"using",{enumerable:!0,get:function(){return e5.using}});var e6=H(87373);Object.defineProperty(G,"zip",{enumerable:!0,get:function(){return e6.zip}});var e3=H(35002);Object.defineProperty(G,"scheduled",{enumerable:!0,get:function(){return e3.scheduled}});var e8=H(88868);Object.defineProperty(G,"EMPTY",{enumerable:!0,get:function(){return e8.EMPTY}});var e4=H(67469);Object.defineProperty(G,"NEVER",{enumerable:!0,get:function(){return e4.NEVER}}),Q(H(17160),G);var e9=H(7524);Object.defineProperty(G,"config",{enumerable:!0,get:function(){return e9.config}});var e7=H(95490);Object.defineProperty(G,"audit",{enumerable:!0,get:function(){return e7.audit}});var te=H(21650);Object.defineProperty(G,"auditTime",{enumerable:!0,get:function(){return te.auditTime}});var tt=H(3583);Object.defineProperty(G,"buffer",{enumerable:!0,get:function(){return tt.buffer}});var tr=H(24341);Object.defineProperty(G,"bufferCount",{enumerable:!0,get:function(){return tr.bufferCount}});var tn=H(7399);Object.defineProperty(G,"bufferTime",{enumerable:!0,get:function(){return tn.bufferTime}});var ti=H(2729);Object.defineProperty(G,"bufferToggle",{enumerable:!0,get:function(){return ti.bufferToggle}});var ta=H(86880);Object.defineProperty(G,"bufferWhen",{enumerable:!0,get:function(){return ta.bufferWhen}});var tu=H(63747);Object.defineProperty(G,"catchError",{enumerable:!0,get:function(){return tu.catchError}});var tc=H(83804);Object.defineProperty(G,"combineAll",{enumerable:!0,get:function(){return tc.combineAll}});var tf=H(35428);Object.defineProperty(G,"combineLatestAll",{enumerable:!0,get:function(){return tf.combineLatestAll}});var td=H(92853);Object.defineProperty(G,"combineLatestWith",{enumerable:!0,get:function(){return td.combineLatestWith}});var tp=H(71637);Object.defineProperty(G,"concatAll",{enumerable:!0,get:function(){return tp.concatAll}});var tv=H(76868);Object.defineProperty(G,"concatMap",{enumerable:!0,get:function(){return tv.concatMap}});var tm=H(17155);Object.defineProperty(G,"concatMapTo",{enumerable:!0,get:function(){return tm.concatMapTo}});var tg=H(55536);Object.defineProperty(G,"concatWith",{enumerable:!0,get:function(){return tg.concatWith}});var tb=H(56917);Object.defineProperty(G,"connect",{enumerable:!0,get:function(){return tb.connect}});var tw=H(58921);Object.defineProperty(G,"count",{enumerable:!0,get:function(){return tw.count}});var t_=H(90218);Object.defineProperty(G,"debounce",{enumerable:!0,get:function(){return t_.debounce}});var tS=H(90766);Object.defineProperty(G,"debounceTime",{enumerable:!0,get:function(){return tS.debounceTime}});var tE=H(58595);Object.defineProperty(G,"defaultIfEmpty",{enumerable:!0,get:function(){return tE.defaultIfEmpty}});var tO=H(33759);Object.defineProperty(G,"delay",{enumerable:!0,get:function(){return tO.delay}});var tA=H(93489);Object.defineProperty(G,"delayWhen",{enumerable:!0,get:function(){return tA.delayWhen}});var tP=H(13014);Object.defineProperty(G,"dematerialize",{enumerable:!0,get:function(){return tP.dematerialize}});var tM=H(89264);Object.defineProperty(G,"distinct",{enumerable:!0,get:function(){return tM.distinct}});var tj=H(44896);Object.defineProperty(G,"distinctUntilChanged",{enumerable:!0,get:function(){return tj.distinctUntilChanged}});var tT=H(56942);Object.defineProperty(G,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return tT.distinctUntilKeyChanged}});var tI=H(92943);Object.defineProperty(G,"elementAt",{enumerable:!0,get:function(){return tI.elementAt}});var tC=H(98562);Object.defineProperty(G,"endWith",{enumerable:!0,get:function(){return tC.endWith}});var tN=H(29386);Object.defineProperty(G,"every",{enumerable:!0,get:function(){return tN.every}});var tk=H(7447);Object.defineProperty(G,"exhaust",{enumerable:!0,get:function(){return tk.exhaust}});var tR=H(53014);Object.defineProperty(G,"exhaustAll",{enumerable:!0,get:function(){return tR.exhaustAll}});var tD=H(85922);Object.defineProperty(G,"exhaustMap",{enumerable:!0,get:function(){return tD.exhaustMap}});var tL=H(54189);Object.defineProperty(G,"expand",{enumerable:!0,get:function(){return tL.expand}});var tU=H(63926);Object.defineProperty(G,"filter",{enumerable:!0,get:function(){return tU.filter}});var tF=H(91993);Object.defineProperty(G,"finalize",{enumerable:!0,get:function(){return tF.finalize}});var t$=H(46680);Object.defineProperty(G,"find",{enumerable:!0,get:function(){return t$.find}});var tB=H(2404);Object.defineProperty(G,"findIndex",{enumerable:!0,get:function(){return tB.findIndex}});var tK=H(99714);Object.defineProperty(G,"first",{enumerable:!0,get:function(){return tK.first}});var tW=H(80944);Object.defineProperty(G,"groupBy",{enumerable:!0,get:function(){return tW.groupBy}});var tz=H(56323);Object.defineProperty(G,"ignoreElements",{enumerable:!0,get:function(){return tz.ignoreElements}});var tG=H(84337);Object.defineProperty(G,"isEmpty",{enumerable:!0,get:function(){return tG.isEmpty}});var tq=H(89259);Object.defineProperty(G,"last",{enumerable:!0,get:function(){return tq.last}});var tH=H(13946);Object.defineProperty(G,"map",{enumerable:!0,get:function(){return tH.map}});var tV=H(25930);Object.defineProperty(G,"mapTo",{enumerable:!0,get:function(){return tV.mapTo}});var tJ=H(22395);Object.defineProperty(G,"materialize",{enumerable:!0,get:function(){return tJ.materialize}});var tY=H(31721);Object.defineProperty(G,"max",{enumerable:!0,get:function(){return tY.max}});var tZ=H(12390);Object.defineProperty(G,"mergeAll",{enumerable:!0,get:function(){return tZ.mergeAll}});var tQ=H(68029);Object.defineProperty(G,"flatMap",{enumerable:!0,get:function(){return tQ.flatMap}});var tX=H(82140);Object.defineProperty(G,"mergeMap",{enumerable:!0,get:function(){return tX.mergeMap}});var rt=H(31903);Object.defineProperty(G,"mergeMapTo",{enumerable:!0,get:function(){return rt.mergeMapTo}});var rr=H(66882);Object.defineProperty(G,"mergeScan",{enumerable:!0,get:function(){return rr.mergeScan}});var rn=H(60117);Object.defineProperty(G,"mergeWith",{enumerable:!0,get:function(){return rn.mergeWith}});var ri=H(73029);Object.defineProperty(G,"min",{enumerable:!0,get:function(){return ri.min}});var ra=H(90110);Object.defineProperty(G,"multicast",{enumerable:!0,get:function(){return ra.multicast}});var ru=H(55001);Object.defineProperty(G,"observeOn",{enumerable:!0,get:function(){return ru.observeOn}});var rc=H(48828);Object.defineProperty(G,"onErrorResumeNextWith",{enumerable:!0,get:function(){return rc.onErrorResumeNextWith}});var rl=H(75705);Object.defineProperty(G,"pairwise",{enumerable:!0,get:function(){return rl.pairwise}});var rf=H(27764);Object.defineProperty(G,"pluck",{enumerable:!0,get:function(){return rf.pluck}});var rd=H(7264);Object.defineProperty(G,"publish",{enumerable:!0,get:function(){return rd.publish}});var rh=H(78209);Object.defineProperty(G,"publishBehavior",{enumerable:!0,get:function(){return rh.publishBehavior}});var rp=H(99676);Object.defineProperty(G,"publishLast",{enumerable:!0,get:function(){return rp.publishLast}});var ry=H(82484);Object.defineProperty(G,"publishReplay",{enumerable:!0,get:function(){return ry.publishReplay}});var rv=H(46893);Object.defineProperty(G,"raceWith",{enumerable:!0,get:function(){return rv.raceWith}});var rg=H(59631);Object.defineProperty(G,"reduce",{enumerable:!0,get:function(){return rg.reduce}});var rw=H(63478);Object.defineProperty(G,"repeat",{enumerable:!0,get:function(){return rw.repeat}});var r_=H(27222);Object.defineProperty(G,"repeatWhen",{enumerable:!0,get:function(){return r_.repeatWhen}});var rS=H(65490);Object.defineProperty(G,"retry",{enumerable:!0,get:function(){return rS.retry}});var rE=H(43478);Object.defineProperty(G,"retryWhen",{enumerable:!0,get:function(){return rE.retryWhen}});var rO=H(98919);Object.defineProperty(G,"refCount",{enumerable:!0,get:function(){return rO.refCount}});var rA=H(21849);Object.defineProperty(G,"sample",{enumerable:!0,get:function(){return rA.sample}});var rP=H(61155);Object.defineProperty(G,"sampleTime",{enumerable:!0,get:function(){return rP.sampleTime}});var rM=H(19953);Object.defineProperty(G,"scan",{enumerable:!0,get:function(){return rM.scan}});var rj=H(99273);Object.defineProperty(G,"sequenceEqual",{enumerable:!0,get:function(){return rj.sequenceEqual}});var rT=H(15830);Object.defineProperty(G,"share",{enumerable:!0,get:function(){return rT.share}});var rI=H(29590);Object.defineProperty(G,"shareReplay",{enumerable:!0,get:function(){return rI.shareReplay}});var rC=H(52093);Object.defineProperty(G,"single",{enumerable:!0,get:function(){return rC.single}});var rN=H(68373);Object.defineProperty(G,"skip",{enumerable:!0,get:function(){return rN.skip}});var rk=H(68093);Object.defineProperty(G,"skipLast",{enumerable:!0,get:function(){return rk.skipLast}});var rR=H(96072);Object.defineProperty(G,"skipUntil",{enumerable:!0,get:function(){return rR.skipUntil}});var rD=H(52219);Object.defineProperty(G,"skipWhile",{enumerable:!0,get:function(){return rD.skipWhile}});var rL=H(63032);Object.defineProperty(G,"startWith",{enumerable:!0,get:function(){return rL.startWith}});var rU=H(21321);Object.defineProperty(G,"subscribeOn",{enumerable:!0,get:function(){return rU.subscribeOn}});var rF=H(72808);Object.defineProperty(G,"switchAll",{enumerable:!0,get:function(){return rF.switchAll}});var r$=H(21691);Object.defineProperty(G,"switchMap",{enumerable:!0,get:function(){return r$.switchMap}});var rB=H(31814);Object.defineProperty(G,"switchMapTo",{enumerable:!0,get:function(){return rB.switchMapTo}});var rK=H(60003);Object.defineProperty(G,"switchScan",{enumerable:!0,get:function(){return rK.switchScan}});var rW=H(33030);Object.defineProperty(G,"take",{enumerable:!0,get:function(){return rW.take}});var rz=H(73584);Object.defineProperty(G,"takeLast",{enumerable:!0,get:function(){return rz.takeLast}});var rG=H(5035);Object.defineProperty(G,"takeUntil",{enumerable:!0,get:function(){return rG.takeUntil}});var rq=H(54525);Object.defineProperty(G,"takeWhile",{enumerable:!0,get:function(){return rq.takeWhile}});var rH=H(4697);Object.defineProperty(G,"tap",{enumerable:!0,get:function(){return rH.tap}});var rV=H(51905);Object.defineProperty(G,"throttle",{enumerable:!0,get:function(){return rV.throttle}});var rJ=H(71607);Object.defineProperty(G,"throttleTime",{enumerable:!0,get:function(){return rJ.throttleTime}});var rY=H(35239);Object.defineProperty(G,"throwIfEmpty",{enumerable:!0,get:function(){return rY.throwIfEmpty}});var rZ=H(20265);Object.defineProperty(G,"timeInterval",{enumerable:!0,get:function(){return rZ.timeInterval}});var rQ=H(61815);Object.defineProperty(G,"timeout",{enumerable:!0,get:function(){return rQ.timeout}});var rX=H(98008);Object.defineProperty(G,"timeoutWith",{enumerable:!0,get:function(){return rX.timeoutWith}});var ne=H(14255);Object.defineProperty(G,"timestamp",{enumerable:!0,get:function(){return ne.timestamp}});var nt=H(89752);Object.defineProperty(G,"toArray",{enumerable:!0,get:function(){return nt.toArray}});var nr=H(53110);Object.defineProperty(G,"window",{enumerable:!0,get:function(){return nr.window}});var nn=H(36118);Object.defineProperty(G,"windowCount",{enumerable:!0,get:function(){return nn.windowCount}});var no=H(8815);Object.defineProperty(G,"windowTime",{enumerable:!0,get:function(){return no.windowTime}});var ni=H(64947);Object.defineProperty(G,"windowToggle",{enumerable:!0,get:function(){return ni.windowToggle}});var na=H(91544);Object.defineProperty(G,"windowWhen",{enumerable:!0,get:function(){return na.windowWhen}});var nu=H(49543);Object.defineProperty(G,"withLatestFrom",{enumerable:!0,get:function(){return nu.withLatestFrom}});var nc=H(78165);Object.defineProperty(G,"zipAll",{enumerable:!0,get:function(){return nc.zipAll}});var nl=H(83541);Object.defineProperty(G,"zipWith",{enumerable:!0,get:function(){return nl.zipWith}})},82398:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.AsyncSubject=void 0;var Q=function(W){function G(){var G=null!==W&&W.apply(this,arguments)||this;return G._value=null,G._hasValue=!1,G._isComplete=!1,G}return J(G,W),G.prototype._checkFinalizedStatuses=function(W){var G=this,H=G.hasError,J=G._hasValue,Q=G._value,ee=G.thrownError,et=G.isStopped,eo=G._isComplete;H?W.error(ee):(et||eo)&&(J&&W.next(Q),W.complete())},G.prototype.next=function(W){this.isStopped||(this._value=W,this._hasValue=!0)},G.prototype.complete=function(){var G=this,H=G._hasValue,J=G._value;G._isComplete||(this._isComplete=!0,H&&W.prototype.next.call(this,J),W.prototype.complete.call(this))},G}(H(91045).Subject);G.AsyncSubject=Q},68445:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.BehaviorSubject=void 0;var Q=function(W){function G(G){var H=W.call(this)||this;return H._value=G,H}return J(G,W),Object.defineProperty(G.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),G.prototype._subscribe=function(G){var H=W.prototype._subscribe.call(this,G);return H.closed||G.next(this._value),H},G.prototype.getValue=function(){var W=this,G=W.hasError,H=W.thrownError,J=W._value;if(G)throw H;return this._throwIfClosed(),J},G.prototype.next=function(G){W.prototype.next.call(this,this._value=G)},G}(H(91045).Subject);G.BehaviorSubject=Q},74588:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.observeNotification=G.Notification=G.NotificationKind=void 0;var J,Q=H(88868),ee=H(76487),et=H(27659),eo=H(64870);!function(W){W.NEXT="N",W.ERROR="E",W.COMPLETE="C"}(J=G.NotificationKind||(G.NotificationKind={}));var Notification=function(){function Notification(W,G,H){this.kind=W,this.value=G,this.error=H,this.hasValue="N"===W}return Notification.prototype.observe=function(W){return ei(this,W)},Notification.prototype.do=function(W,G,H){var J=this,Q=J.kind,ee=J.value,et=J.error;return"N"===Q?null==W?void 0:W(ee):"E"===Q?null==G?void 0:G(et):null==H?void 0:H()},Notification.prototype.accept=function(W,G,H){var J;return eo.isFunction(null===(J=W)||void 0===J?void 0:J.next)?this.observe(W):this.do(W,G,H)},Notification.prototype.toObservable=function(){var W=this,G=W.kind,H=W.value,J=W.error,eo="N"===G?ee.of(H):"E"===G?et.throwError(function(){return J}):"C"===G?Q.EMPTY:0;if(!eo)throw TypeError("Unexpected notification kind "+G);return eo},Notification.createNext=function(W){return new Notification("N",W)},Notification.createError=function(W){return new Notification("E",void 0,W)},Notification.createComplete=function(){return Notification.completeNotification},Notification.completeNotification=new Notification("C"),Notification}();function ei(W,G){var H,J,Q,ee=W,et=ee.kind,eo=ee.value,ei=ee.error;if("string"!=typeof et)throw TypeError('Invalid notification, missing "kind"');"N"===et?null===(H=G.next)||void 0===H||H.call(G,eo):"E"===et?null===(J=G.error)||void 0===J||J.call(G,ei):null===(Q=G.complete)||void 0===Q||Q.call(G)}G.Notification=Notification,G.observeNotification=ei},29671:function(W,G){"use strict";function H(W){return Q("E",void 0,W)}function J(W){return Q("N",W,void 0)}function Q(W,G,H){return{kind:W,value:G,error:H}}Object.defineProperty(G,"__esModule",{value:!0}),G.createNotification=G.nextNotification=G.errorNotification=G.COMPLETE_NOTIFICATION=void 0,G.COMPLETE_NOTIFICATION=function(){return Q("C",void 0,void 0)}(),G.errorNotification=H,G.nextNotification=J,G.createNotification=Q},95190:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Observable=void 0;var J=H(29770),Q=H(45088),ee=H(98835),et=H(75720),eo=H(7524),ei=H(64870),ea=H(44676),es=function(){function W(W){W&&(this._subscribe=W)}return W.prototype.lift=function(G){var H=new W;return H.source=this,H.operator=G,H},W.prototype.subscribe=function(W,G,H){var Q=this,ee=ef(W)?W:new J.SafeSubscriber(W,G,H);return ea.errorContext(function(){var W=Q,G=W.operator,H=W.source;ee.add(G?G.call(ee,H):H?Q._subscribe(ee):Q._trySubscribe(ee))}),ee},W.prototype._trySubscribe=function(W){try{return this._subscribe(W)}catch(G){W.error(G)}},W.prototype.forEach=function(W,G){var H=this;return new(G=eu(G))(function(G,Q){var ee=new J.SafeSubscriber({next:function(G){try{W(G)}catch(W){Q(W),ee.unsubscribe()}},error:Q,complete:G});H.subscribe(ee)})},W.prototype._subscribe=function(W){var G;return null===(G=this.source)||void 0===G?void 0:G.subscribe(W)},W.prototype[ee.observable]=function(){return this},W.prototype.pipe=function(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];return et.pipeFromArray(W)(this)},W.prototype.toPromise=function(W){var G=this;return new(W=eu(W))(function(W,H){var J;G.subscribe(function(W){return J=W},function(W){return H(W)},function(){return W(J)})})},W.create=function(G){return new W(G)},W}();function eu(W){var G;return null!==(G=null!=W?W:eo.config.Promise)&&void 0!==G?G:Promise}function ec(W){return W&&ei.isFunction(W.next)&&ei.isFunction(W.error)&&ei.isFunction(W.complete)}function ef(W){return W&&W instanceof J.Subscriber||ec(W)&&Q.isSubscription(W)}G.Observable=es},81559:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.ReplaySubject=void 0;var Q=H(91045),ee=H(47885),et=function(W){function G(G,H,J){void 0===G&&(G=1/0),void 0===H&&(H=1/0),void 0===J&&(J=ee.dateTimestampProvider);var Q=W.call(this)||this;return Q._bufferSize=G,Q._windowTime=H,Q._timestampProvider=J,Q._buffer=[],Q._infiniteTimeWindow=!0,Q._infiniteTimeWindow=H===1/0,Q._bufferSize=Math.max(1,G),Q._windowTime=Math.max(1,H),Q}return J(G,W),G.prototype.next=function(G){var H=this,J=H.isStopped,Q=H._buffer,ee=H._infiniteTimeWindow,et=H._timestampProvider,eo=H._windowTime;!J&&(Q.push(G),ee||Q.push(et.now()+eo)),this._trimBuffer(),W.prototype.next.call(this,G)},G.prototype._subscribe=function(W){this._throwIfClosed(),this._trimBuffer();for(var G=this._innerSubscribe(W),H=this,J=H._infiniteTimeWindow,Q=H._buffer.slice(),ee=0;ee<Q.length&&!W.closed;ee+=J?1:2)W.next(Q[ee]);return this._checkFinalizedStatuses(W),G},G.prototype._trimBuffer=function(){var W=this,G=W._bufferSize,H=W._timestampProvider,J=W._buffer,Q=W._infiniteTimeWindow,ee=(Q?1:2)*G;if(G<1/0&&ee<J.length&&J.splice(0,J.length-ee),!Q){for(var et=H.now(),eo=0,ei=1;ei<J.length&&J[ei]<=et;ei+=2)eo=ei;eo&&J.splice(0,eo+1)}},G}(Q.Subject);G.ReplaySubject=et},59939:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.Scheduler=void 0;var J=H(47885),Q=function(){function W(G,H){void 0===H&&(H=W.now),this.schedulerActionCtor=G,this.now=H}return W.prototype.schedule=function(W,G,H){return void 0===G&&(G=0),new this.schedulerActionCtor(this,W).schedule(H,G)},W.now=J.dateTimestampProvider.now,W}();G.Scheduler=Q},91045:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}(),Q=this&&this.__values||function(W){var G="function"==typeof Symbol&&Symbol.iterator,H=G&&W[G],J=0;if(H)return H.call(W);if(W&&"number"==typeof W.length)return{next:function(){return W&&J>=W.length&&(W=void 0),{value:W&&W[J++],done:!W}}};throw TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(G,"__esModule",{value:!0}),G.AnonymousSubject=G.Subject=void 0;var ee=H(95190),et=H(45088),eo=H(23778),ei=H(71555),ea=H(44676),es=function(W){function G(){var G=W.call(this)||this;return G.closed=!1,G.currentObservers=null,G.observers=[],G.isStopped=!1,G.hasError=!1,G.thrownError=null,G}return J(G,W),G.prototype.lift=function(W){var G=new eu(this,this);return G.operator=W,G},G.prototype._throwIfClosed=function(){if(this.closed)throw new eo.ObjectUnsubscribedError},G.prototype.next=function(W){var G=this;ea.errorContext(function(){var H,J;if(G._throwIfClosed(),!G.isStopped){G.currentObservers||(G.currentObservers=Array.from(G.observers));try{for(var ee=Q(G.currentObservers),et=ee.next();!et.done;et=ee.next())et.value.next(W)}catch(W){H={error:W}}finally{try{et&&!et.done&&(J=ee.return)&&J.call(ee)}finally{if(H)throw H.error}}}})},G.prototype.error=function(W){var G=this;ea.errorContext(function(){if(G._throwIfClosed(),!G.isStopped){G.hasError=G.isStopped=!0,G.thrownError=W;for(var H=G.observers;H.length;)H.shift().error(W)}})},G.prototype.complete=function(){var W=this;ea.errorContext(function(){if(W._throwIfClosed(),!W.isStopped){W.isStopped=!0;for(var G=W.observers;G.length;)G.shift().complete()}})},G.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(G.prototype,"observed",{get:function(){var W;return(null===(W=this.observers)||void 0===W?void 0:W.length)>0},enumerable:!1,configurable:!0}),G.prototype._trySubscribe=function(G){return this._throwIfClosed(),W.prototype._trySubscribe.call(this,G)},G.prototype._subscribe=function(W){return this._throwIfClosed(),this._checkFinalizedStatuses(W),this._innerSubscribe(W)},G.prototype._innerSubscribe=function(W){var G=this,H=this,J=H.hasError,Q=H.isStopped,ee=H.observers;return J||Q?et.EMPTY_SUBSCRIPTION:(this.currentObservers=null,ee.push(W),new et.Subscription(function(){G.currentObservers=null,ei.arrRemove(ee,W)}))},G.prototype._checkFinalizedStatuses=function(W){var G=this,H=G.hasError,J=G.thrownError,Q=G.isStopped;H?W.error(J):Q&&W.complete()},G.prototype.asObservable=function(){var W=new ee.Observable;return W.source=this,W},G.create=function(W,G){return new eu(W,G)},G}(ee.Observable);G.Subject=es;var eu=function(W){function G(G,H){var J=W.call(this)||this;return J.destination=G,J.source=H,J}return J(G,W),G.prototype.next=function(W){var G,H;null===(H=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===H||H.call(G,W)},G.prototype.error=function(W){var G,H;null===(H=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===H||H.call(G,W)},G.prototype.complete=function(){var W,G;null===(G=null===(W=this.destination)||void 0===W?void 0:W.complete)||void 0===G||G.call(W)},G.prototype._subscribe=function(W){var G,H;return null!==(H=null===(G=this.source)||void 0===G?void 0:G.subscribe(W))&&void 0!==H?H:et.EMPTY_SUBSCRIPTION},G}(es);G.AnonymousSubject=eu},29770:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.EMPTY_OBSERVER=G.SafeSubscriber=G.Subscriber=void 0;var Q=H(64870),ee=H(45088),et=H(7524),eo=H(38553),ei=H(34842),ea=H(29671),es=H(7720),eu=H(44676),ec=function(W){function H(H){var J=W.call(this)||this;return J.isStopped=!1,H?(J.destination=H,ee.isSubscription(H)&&H.add(J)):J.destination=G.EMPTY_OBSERVER,J}return J(H,W),H.create=function(W,G,H){return new ep(W,G,H)},H.prototype.next=function(W){this.isStopped?em(ea.nextNotification(W),this):this._next(W)},H.prototype.error=function(W){this.isStopped?em(ea.errorNotification(W),this):(this.isStopped=!0,this._error(W))},H.prototype.complete=function(){this.isStopped?em(ea.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},H.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,W.prototype.unsubscribe.call(this),this.destination=null)},H.prototype._next=function(W){this.destination.next(W)},H.prototype._error=function(W){try{this.destination.error(W)}finally{this.unsubscribe()}},H.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},H}(ee.Subscription);G.Subscriber=ec;var ef=Function.prototype.bind;function ed(W,G){return ef.call(W,G)}var eh=function(){function W(W){this.partialObserver=W}return W.prototype.next=function(W){var G=this.partialObserver;if(G.next)try{G.next(W)}catch(W){ey(W)}},W.prototype.error=function(W){var G=this.partialObserver;if(G.error)try{G.error(W)}catch(W){ey(W)}else ey(W)},W.prototype.complete=function(){var W=this.partialObserver;if(W.complete)try{W.complete()}catch(W){ey(W)}},W}(),ep=function(W){function G(G,H,J){var ee,eo,ei=W.call(this)||this;return Q.isFunction(G)||!G?ee={next:null!=G?G:void 0,error:null!=H?H:void 0,complete:null!=J?J:void 0}:ei&&et.config.useDeprecatedNextContext?((eo=Object.create(G)).unsubscribe=function(){return ei.unsubscribe()},ee={next:G.next&&ed(G.next,eo),error:G.error&&ed(G.error,eo),complete:G.complete&&ed(G.complete,eo)}):ee=G,ei.destination=new eh(ee),ei}return J(G,W),G}(ec);function ey(W){et.config.useDeprecatedSynchronousErrorHandling?eu.captureError(W):eo.reportUnhandledError(W)}function ev(W){throw W}function em(W,G){var H=et.config.onStoppedNotification;H&&es.timeoutProvider.setTimeout(function(){return H(W,G)})}G.SafeSubscriber=ep,G.EMPTY_OBSERVER={closed:!0,next:ei.noop,error:ev,complete:ei.noop}},45088:function(W,G,H){"use strict";var J=this&&this.__values||function(W){var G="function"==typeof Symbol&&Symbol.iterator,H=G&&W[G],J=0;if(H)return H.call(W);if(W&&"number"==typeof W.length)return{next:function(){return W&&J>=W.length&&(W=void 0),{value:W&&W[J++],done:!W}}};throw TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")},Q=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},ee=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.isSubscription=G.EMPTY_SUBSCRIPTION=G.Subscription=void 0;var et=H(64870),eo=H(16664),ei=H(71555),ea=function(){function W(W){this.initialTeardown=W,this.closed=!1,this._parentage=null,this._finalizers=null}return W.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var W,G,H,ei,ea,es=this._parentage;if(es){if(this._parentage=null,Array.isArray(es))try{for(var ec=J(es),ef=ec.next();!ef.done;ef=ec.next())ef.value.remove(this)}catch(G){W={error:G}}finally{try{ef&&!ef.done&&(G=ec.return)&&G.call(ec)}finally{if(W)throw W.error}}else es.remove(this)}var ed=this.initialTeardown;if(et.isFunction(ed))try{ed()}catch(W){ea=W instanceof eo.UnsubscriptionError?W.errors:[W]}var eh=this._finalizers;if(eh){this._finalizers=null;try{for(var ep=J(eh),ey=ep.next();!ey.done;ey=ep.next()){var ev=ey.value;try{eu(ev)}catch(W){ea=null!=ea?ea:[],W instanceof eo.UnsubscriptionError?ea=ee(ee([],Q(ea)),Q(W.errors)):ea.push(W)}}}catch(W){H={error:W}}finally{try{ey&&!ey.done&&(ei=ep.return)&&ei.call(ep)}finally{if(H)throw H.error}}}if(ea)throw new eo.UnsubscriptionError(ea)}},W.prototype.add=function(G){var H;if(G&&G!==this){if(this.closed)eu(G);else{if(G instanceof W){if(G.closed||G._hasParent(this))return;G._addParent(this)}(this._finalizers=null!==(H=this._finalizers)&&void 0!==H?H:[]).push(G)}}},W.prototype._hasParent=function(W){var G=this._parentage;return G===W||Array.isArray(G)&&G.includes(W)},W.prototype._addParent=function(W){var G=this._parentage;this._parentage=Array.isArray(G)?(G.push(W),G):G?[G,W]:W},W.prototype._removeParent=function(W){var G=this._parentage;G===W?this._parentage=null:Array.isArray(G)&&ei.arrRemove(G,W)},W.prototype.remove=function(G){var H=this._finalizers;H&&ei.arrRemove(H,G),G instanceof W&&G._removeParent(this)},W.EMPTY=function(){var G=new W;return G.closed=!0,G}(),W}();function es(W){return W instanceof ea||W&&"closed"in W&&et.isFunction(W.remove)&&et.isFunction(W.add)&&et.isFunction(W.unsubscribe)}function eu(W){et.isFunction(W)?W():W.unsubscribe()}G.Subscription=ea,G.EMPTY_SUBSCRIPTION=ea.EMPTY,G.isSubscription=es},7524:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.config=void 0,G.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},74054:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.firstValueFrom=void 0;var J=H(81585),Q=H(29770);function ee(W,G){var H="object"==typeof G;return new Promise(function(ee,et){var eo=new Q.SafeSubscriber({next:function(W){ee(W),eo.unsubscribe()},error:et,complete:function(){H?ee(G.defaultValue):et(new J.EmptyError)}});W.subscribe(eo)})}G.firstValueFrom=ee},96685:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.lastValueFrom=void 0;var J=H(81585);function Q(W,G){var H="object"==typeof G;return new Promise(function(Q,ee){var et,eo=!1;W.subscribe({next:function(W){et=W,eo=!0},error:ee,complete:function(){eo?Q(et):H?Q(G.defaultValue):ee(new J.EmptyError)}})})}G.lastValueFrom=Q},55330:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.ConnectableObservable=void 0;var Q=H(95190),ee=H(45088),et=H(98919),eo=H(40990),ei=H(72896),ea=function(W){function G(G,H){var J=W.call(this)||this;return J.source=G,J.subjectFactory=H,J._subject=null,J._refCount=0,J._connection=null,ei.hasLift(G)&&(J.lift=G.lift),J}return J(G,W),G.prototype._subscribe=function(W){return this.getSubject().subscribe(W)},G.prototype.getSubject=function(){var W=this._subject;return(!W||W.isStopped)&&(this._subject=this.subjectFactory()),this._subject},G.prototype._teardown=function(){this._refCount=0;var W=this._connection;this._subject=this._connection=null,null==W||W.unsubscribe()},G.prototype.connect=function(){var W=this,G=this._connection;if(!G){G=this._connection=new ee.Subscription;var H=this.getSubject();G.add(this.source.subscribe(eo.createOperatorSubscriber(H,void 0,function(){W._teardown(),H.complete()},function(G){W._teardown(),H.error(G)},function(){return W._teardown()}))),G.closed&&(this._connection=null,G=ee.Subscription.EMPTY)}return G},G.prototype.refCount=function(){return et.refCount()(this)},G}(Q.Observable);G.ConnectableObservable=ea},63847:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.bindCallback=void 0;var J=H(78956);function Q(W,G,H){return J.bindCallbackInternals(!1,W,G,H)}G.bindCallback=Q},78956:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.bindCallbackInternals=void 0;var ee=H(95460),et=H(95190),eo=H(21321),ei=H(14878),ea=H(55001),es=H(82398);function eu(W,G,H,ec){if(H){if(!ee.isScheduler(H))return function(){for(var J=[],Q=0;Q<arguments.length;Q++)J[Q]=arguments[Q];return eu(W,G,ec).apply(this,J).pipe(ei.mapOneOrManyArgs(H))};ec=H}return ec?function(){for(var H=[],J=0;J<arguments.length;J++)H[J]=arguments[J];return eu(W,G).apply(this,H).pipe(eo.subscribeOn(ec),ea.observeOn(ec))}:function(){for(var H=this,ee=[],eo=0;eo<arguments.length;eo++)ee[eo]=arguments[eo];var ei=new es.AsyncSubject,ea=!0;return new et.Observable(function(et){var eo=ei.subscribe(et);if(ea){ea=!1;var es=!1,eu=!1;G.apply(H,Q(Q([],J(ee)),[function(){for(var G=[],H=0;H<arguments.length;H++)G[H]=arguments[H];if(W){var J=G.shift();if(null!=J){ei.error(J);return}}ei.next(1<G.length?G:G[0]),eu=!0,es&&ei.complete()}])),eu&&ei.complete(),es=!0}return eo})}}G.bindCallbackInternals=eu},65838:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.bindNodeCallback=void 0;var J=H(78956);function Q(W,G,H){return J.bindCallbackInternals(!0,W,G,H)}G.bindNodeCallback=Q},49213:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.combineLatestInit=G.combineLatest=void 0;var J=H(95190),Q=H(85089),ee=H(77324),et=H(54327),eo=H(14878),ei=H(51672),ea=H(56047),es=H(40990),eu=H(11239);function ec(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];var H=ei.popScheduler(W),es=ei.popResultSelector(W),eu=Q.argsArgArrayOrObject(W),ec=eu.args,ed=eu.keys;if(0===ec.length)return ee.from([],H);var eh=new J.Observable(ef(ec,H,ed?function(W){return ea.createObject(ed,W)}:et.identity));return es?eh.pipe(eo.mapOneOrManyArgs(es)):eh}function ef(W,G,H){return void 0===H&&(H=et.identity),function(J){ed(G,function(){for(var Q=W.length,et=Array(Q),eo=Q,ei=Q,ea=function(Q){ed(G,function(){var ea=ee.from(W[Q],G),eu=!1;ea.subscribe(es.createOperatorSubscriber(J,function(W){et[Q]=W,!eu&&(eu=!0,ei--),ei||J.next(H(et.slice()))},function(){--eo||J.complete()}))},J)},eu=0;eu<Q;eu++)ea(eu)},J)}}function ed(W,G,H){W?eu.executeSchedule(H,W,G):G()}G.combineLatest=ec,G.combineLatestInit=ef},3153:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.concat=void 0;var J=H(71637),Q=H(51672),ee=H(77324);function et(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];return J.concatAll()(ee.from(W,Q.popScheduler(W)))}G.concat=et},93683:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.connectable=void 0;var J=H(91045),Q=H(95190),ee=H(56614),et={connector:function(){return new J.Subject},resetOnDisconnect:!0};function eo(W,G){void 0===G&&(G=et);var H=null,J=G.connector,eo=G.resetOnDisconnect,ei=void 0===eo||eo,ea=J(),es=new Q.Observable(function(W){return ea.subscribe(W)});return es.connect=function(){return(!H||H.closed)&&(H=ee.defer(function(){return W}).subscribe(ea),ei&&H.add(function(){return ea=J()})),H},es}G.connectable=eo},56614:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.defer=void 0;var J=H(95190),Q=H(98309);function ee(W){return new J.Observable(function(G){Q.innerFrom(W()).subscribe(G)})}G.defer=ee},70755:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.animationFrames=void 0;var J=H(95190),Q=H(1747),ee=H(41315);function et(W){return W?eo(W):ei}function eo(W){return new J.Observable(function(G){var H=W||Q.performanceTimestampProvider,J=H.now(),et=0,eo=function(){G.closed||(et=ee.animationFrameProvider.requestAnimationFrame(function(Q){et=0;var ee=H.now();G.next({timestamp:W?ee:Q,elapsed:ee-J}),eo()}))};return eo(),function(){et&&ee.animationFrameProvider.cancelAnimationFrame(et)}})}G.animationFrames=et;var ei=eo()},88868:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.empty=G.EMPTY=void 0;var J=H(95190);function Q(W){return W?ee(W):G.EMPTY}function ee(W){return new J.Observable(function(G){return W.schedule(function(){return G.complete()})})}G.EMPTY=new J.Observable(function(W){return W.complete()}),G.empty=Q},61171:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.forkJoin=void 0;var J=H(95190),Q=H(85089),ee=H(98309),et=H(51672),eo=H(40990),ei=H(14878),ea=H(56047);function es(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];var H=et.popResultSelector(W),es=Q.argsArgArrayOrObject(W),eu=es.args,ec=es.keys,ef=new J.Observable(function(W){var G=eu.length;if(!G){W.complete();return}for(var H=Array(G),J=G,Q=G,et=function(G){var et=!1;ee.innerFrom(eu[G]).subscribe(eo.createOperatorSubscriber(W,function(W){!et&&(et=!0,Q--),H[G]=W},function(){return J--},void 0,function(){J&&et||(Q||W.next(ec?ea.createObject(ec,H):H),W.complete())}))},ei=0;ei<G;ei++)et(ei)});return H?ef.pipe(ei.mapOneOrManyArgs(H)):ef}G.forkJoin=es},77324:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.from=void 0;var J=H(35002),Q=H(98309);function ee(W,G){return G?J.scheduled(W,G):Q.innerFrom(W)}G.from=ee},19325:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et};Object.defineProperty(G,"__esModule",{value:!0}),G.fromEvent=void 0;var Q=H(98309),ee=H(95190),et=H(82140),eo=H(26815),ei=H(64870),ea=H(14878),es=["addListener","removeListener"],eu=["addEventListener","removeEventListener"],ec=["on","off"];function ef(W,G,H,ev){if(ei.isFunction(H)&&(ev=H,H=void 0),ev)return ef(W,G,H).pipe(ea.mapOneOrManyArgs(ev));var em=J(ey(W)?eu.map(function(J){return function(Q){return W[J](G,Q,H)}}):eh(W)?es.map(ed(W,G)):ep(W)?ec.map(ed(W,G)):[],2),eg=em[0],eb=em[1];if(!eg&&eo.isArrayLike(W))return et.mergeMap(function(W){return ef(W,G,H)})(Q.innerFrom(W));if(!eg)throw TypeError("Invalid event target");return new ee.Observable(function(W){var G=function(){for(var G=[],H=0;H<arguments.length;H++)G[H]=arguments[H];return W.next(1<G.length?G:G[0])};return eg(G),function(){return eb(G)}})}function ed(W,G){return function(H){return function(J){return W[H](G,J)}}}function eh(W){return ei.isFunction(W.addListener)&&ei.isFunction(W.removeListener)}function ep(W){return ei.isFunction(W.on)&&ei.isFunction(W.off)}function ey(W){return ei.isFunction(W.addEventListener)&&ei.isFunction(W.removeEventListener)}G.fromEvent=ef},54106:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.fromEventPattern=void 0;var J=H(95190),Q=H(64870),ee=H(14878);function et(W,G,H){return H?et(W,G).pipe(ee.mapOneOrManyArgs(H)):new J.Observable(function(H){var J=function(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];return H.next(1===W.length?W[0]:W)},ee=W(J);return Q.isFunction(G)?function(){return G(J,ee)}:void 0})}G.fromEventPattern=et},32692:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.fromSubscribable=void 0;var J=H(95190);function Q(W){return new J.Observable(function(G){return W.subscribe(G)})}G.fromSubscribable=Q},47268:function(W,G,H){"use strict";var J=this&&this.__generator||function(W,G){var H,J,Q,ee,et={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return ee={next:eo(0),throw:eo(1),return:eo(2)},"function"==typeof Symbol&&(ee[Symbol.iterator]=function(){return this}),ee;function eo(W){return function(G){return ei([W,G])}}function ei(ee){if(H)throw TypeError("Generator is already executing.");for(;et;)try{if(H=1,J&&(Q=2&ee[0]?J.return:ee[0]?J.throw||((Q=J.return)&&Q.call(J),0):J.next)&&!(Q=Q.call(J,ee[1])).done)return Q;switch(J=0,Q&&(ee=[2&ee[0],Q.value]),ee[0]){case 0:case 1:Q=ee;break;case 4:return et.label++,{value:ee[1],done:!1};case 5:et.label++,J=ee[1],ee=[0];continue;case 7:ee=et.ops.pop(),et.trys.pop();continue;default:if(!(Q=(Q=et.trys).length>0&&Q[Q.length-1])&&(6===ee[0]||2===ee[0])){et=0;continue}if(3===ee[0]&&(!Q||ee[1]>Q[0]&&ee[1]<Q[3])){et.label=ee[1];break}if(6===ee[0]&&et.label<Q[1]){et.label=Q[1],Q=ee;break}if(Q&&et.label<Q[2]){et.label=Q[2],et.ops.push(ee);break}Q[2]&&et.ops.pop(),et.trys.pop();continue}ee=G.call(W,et)}catch(W){ee=[6,W],J=0}finally{H=Q=0}if(5&ee[0])throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}};Object.defineProperty(G,"__esModule",{value:!0}),G.generate=void 0;var Q=H(54327),ee=H(95460),et=H(56614),eo=H(62696);function ei(W,G,H,ei,ea){var es,eu,ec,ef;function ed(){var W;return J(this,function(J){switch(J.label){case 0:W=ef,J.label=1;case 1:if(!(!G||G(W)))return[3,4];return[4,ec(W)];case 2:J.sent(),J.label=3;case 3:return W=H(W),[3,1];case 4:return[2]}})}return 1==arguments.length?(ef=(es=W).initialState,G=es.condition,H=es.iterate,ec=void 0===(eu=es.resultSelector)?Q.identity:eu,ea=es.scheduler):(ef=W,!ei||ee.isScheduler(ei)?(ec=Q.identity,ea=ei):ec=ei),et.defer(ea?function(){return eo.scheduleIterable(ed(),ea)}:ed)}G.generate=ei},71263:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.iif=void 0;var J=H(56614);function Q(W,G,H){return J.defer(function(){return W()?G:H})}G.iif=Q},98309:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})},Q=this&&this.__generator||function(W,G){var H,J,Q,ee,et={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return ee={next:eo(0),throw:eo(1),return:eo(2)},"function"==typeof Symbol&&(ee[Symbol.iterator]=function(){return this}),ee;function eo(W){return function(G){return ei([W,G])}}function ei(ee){if(H)throw TypeError("Generator is already executing.");for(;et;)try{if(H=1,J&&(Q=2&ee[0]?J.return:ee[0]?J.throw||((Q=J.return)&&Q.call(J),0):J.next)&&!(Q=Q.call(J,ee[1])).done)return Q;switch(J=0,Q&&(ee=[2&ee[0],Q.value]),ee[0]){case 0:case 1:Q=ee;break;case 4:return et.label++,{value:ee[1],done:!1};case 5:et.label++,J=ee[1],ee=[0];continue;case 7:ee=et.ops.pop(),et.trys.pop();continue;default:if(!(Q=(Q=et.trys).length>0&&Q[Q.length-1])&&(6===ee[0]||2===ee[0])){et=0;continue}if(3===ee[0]&&(!Q||ee[1]>Q[0]&&ee[1]<Q[3])){et.label=ee[1];break}if(6===ee[0]&&et.label<Q[1]){et.label=Q[1],Q=ee;break}if(Q&&et.label<Q[2]){et.label=Q[2],et.ops.push(ee);break}Q[2]&&et.ops.pop(),et.trys.pop();continue}ee=G.call(W,et)}catch(W){ee=[6,W],J=0}finally{H=Q=0}if(5&ee[0])throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}},ee=this&&this.__asyncValues||function(W){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var G,H=W[Symbol.asyncIterator];return H?H.call(W):(W="function"==typeof et?et(W):W[Symbol.iterator](),G={},J("next"),J("throw"),J("return"),G[Symbol.asyncIterator]=function(){return this},G);function J(H){G[H]=W[H]&&function(G){return new Promise(function(J,ee){Q(J,ee,(G=W[H](G)).done,G.value)})}}function Q(W,G,H,J){Promise.resolve(J).then(function(G){W({value:G,done:H})},G)}},et=this&&this.__values||function(W){var G="function"==typeof Symbol&&Symbol.iterator,H=G&&W[G],J=0;if(H)return H.call(W);if(W&&"number"==typeof W.length)return{next:function(){return W&&J>=W.length&&(W=void 0),{value:W&&W[J++],done:!W}}};throw TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(G,"__esModule",{value:!0}),G.fromReadableStreamLike=G.fromAsyncIterable=G.fromIterable=G.fromPromise=G.fromArrayLike=G.fromInteropObservable=G.innerFrom=void 0;var eo=H(26815),ei=H(28017),ea=H(95190),es=H(40269),eu=H(23635),ec=H(70650),ef=H(31932),ed=H(9838),eh=H(64870),ep=H(38553),ey=H(98835);function ev(W){if(W instanceof ea.Observable)return W;if(null!=W){if(es.isInteropObservable(W))return em(W);if(eo.isArrayLike(W))return eg(W);if(ei.isPromise(W))return eb(W);if(eu.isAsyncIterable(W))return e_(W);if(ef.isIterable(W))return ew(W);if(ed.isReadableStreamLike(W))return eS(W)}throw ec.createInvalidObservableTypeError(W)}function em(W){return new ea.Observable(function(G){var H=W[ey.observable]();if(eh.isFunction(H.subscribe))return H.subscribe(G);throw TypeError("Provided object does not correctly implement Symbol.observable")})}function eg(W){return new ea.Observable(function(G){for(var H=0;H<W.length&&!G.closed;H++)G.next(W[H]);G.complete()})}function eb(W){return new ea.Observable(function(G){W.then(function(W){G.closed||(G.next(W),G.complete())},function(W){return G.error(W)}).then(null,ep.reportUnhandledError)})}function ew(W){return new ea.Observable(function(G){var H,J;try{for(var Q=et(W),ee=Q.next();!ee.done;ee=Q.next()){var eo=ee.value;if(G.next(eo),G.closed)return}}catch(W){H={error:W}}finally{try{ee&&!ee.done&&(J=Q.return)&&J.call(Q)}finally{if(H)throw H.error}}G.complete()})}function e_(W){return new ea.Observable(function(G){eE(W,G).catch(function(W){return G.error(W)})})}function eS(W){return e_(ed.readableStreamLikeToAsyncGenerator(W))}function eE(W,G){var H,et,eo,ei;return J(this,void 0,void 0,function(){var J;return Q(this,function(Q){switch(Q.label){case 0:Q.trys.push([0,5,6,11]),H=ee(W),Q.label=1;case 1:return[4,H.next()];case 2:if((et=Q.sent()).done)return[3,4];if(J=et.value,G.next(J),G.closed)return[2];Q.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return eo={error:Q.sent()},[3,11];case 6:if(Q.trys.push([6,,9,10]),!(et&&!et.done&&(ei=H.return)))return[3,8];return[4,ei.call(H)];case 7:Q.sent(),Q.label=8;case 8:return[3,10];case 9:if(eo)throw eo.error;return[7];case 10:return[7];case 11:return G.complete(),[2]}})})}G.innerFrom=ev,G.fromInteropObservable=em,G.fromArrayLike=eg,G.fromPromise=eb,G.fromIterable=ew,G.fromAsyncIterable=e_,G.fromReadableStreamLike=eS},11327:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.interval=void 0;var J=H(54176),Q=H(19785);function ee(W,G){return void 0===W&&(W=0),void 0===G&&(G=J.asyncScheduler),W<0&&(W=0),Q.timer(W,W,G)}G.interval=ee},71434:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.merge=void 0;var J=H(12390),Q=H(98309),ee=H(88868),et=H(51672),eo=H(77324);function ei(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];var H=et.popScheduler(W),ei=et.popNumber(W,1/0),ea=W;return ea.length?1===ea.length?Q.innerFrom(ea[0]):J.mergeAll(ei)(eo.from(ea,H)):ee.EMPTY}G.merge=ei},67469:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.never=G.NEVER=void 0;var J=H(95190),Q=H(34842);function ee(){return G.NEVER}G.NEVER=new J.Observable(Q.noop),G.never=ee},76487:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.of=void 0;var J=H(51672),Q=H(77324);function ee(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];var H=J.popScheduler(W);return Q.from(W,H)}G.of=ee},52904:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.onErrorResumeNext=void 0;var J=H(95190),Q=H(69129),ee=H(40990),et=H(34842),eo=H(98309);function ei(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];var H=Q.argsOrArgArray(W);return new J.Observable(function(W){var G=0,J=function(){if(G<H.length){var Q=void 0;try{Q=eo.innerFrom(H[G++])}catch(W){J();return}var ei=new ee.OperatorSubscriber(W,void 0,et.noop,et.noop);Q.subscribe(ei),ei.add(J)}else W.complete()};J()})}G.onErrorResumeNext=ei},8555:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.pairs=void 0;var J=H(77324);function Q(W,G){return J.from(Object.entries(W),G)}G.pairs=Q},89118:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.partition=void 0;var J=H(87867),Q=H(63926),ee=H(98309);function et(W,G,H){return[Q.filter(G,H)(ee.innerFrom(W)),Q.filter(J.not(G,H))(ee.innerFrom(W))]}G.partition=et},60670:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.raceInit=G.race=void 0;var J=H(95190),Q=H(98309),ee=H(69129),et=H(40990);function eo(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];return 1===(W=ee.argsOrArgArray(W)).length?Q.innerFrom(W[0]):new J.Observable(ei(W))}function ei(W){return function(G){for(var H=[],J=function(J){H.push(Q.innerFrom(W[J]).subscribe(et.createOperatorSubscriber(G,function(W){if(H){for(var Q=0;Q<H.length;Q++)Q!==J&&H[Q].unsubscribe();H=null}G.next(W)})))},ee=0;H&&!G.closed&&ee<W.length;ee++)J(ee)}}G.race=eo,G.raceInit=ei},98257:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.range=void 0;var J=H(95190),Q=H(88868);function ee(W,G,H){if(null==G&&(G=W,W=0),G<=0)return Q.EMPTY;var ee=G+W;return new J.Observable(H?function(G){var J=W;return H.schedule(function(){J<ee?(G.next(J++),this.schedule()):G.complete()})}:function(G){for(var H=W;H<ee&&!G.closed;)G.next(H++);G.complete()})}G.range=ee},27659:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.throwError=void 0;var J=H(95190),Q=H(64870);function ee(W,G){var H=Q.isFunction(W)?W:function(){return W},ee=function(W){return W.error(H())};return new J.Observable(G?function(W){return G.schedule(ee,0,W)}:ee)}G.throwError=ee},19785:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.timer=void 0;var J=H(95190),Q=H(54176),ee=H(95460),et=H(86701);function eo(W,G,H){void 0===W&&(W=0),void 0===H&&(H=Q.async);var eo=-1;return null!=G&&(ee.isScheduler(G)?H=G:eo=G),new J.Observable(function(G){var J=et.isValidDate(W)?+W-H.now():W;J<0&&(J=0);var Q=0;return H.schedule(function(){G.closed||(G.next(Q++),0<=eo?this.schedule(void 0,eo):G.complete())},J)})}G.timer=eo},52856:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.using=void 0;var J=H(95190),Q=H(98309),ee=H(88868);function et(W,G){return new J.Observable(function(H){var J=W(),et=G(J);return(et?Q.innerFrom(et):ee.EMPTY).subscribe(H),function(){J&&J.unsubscribe()}})}G.using=et},87373:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.zip=void 0;var ee=H(95190),et=H(98309),eo=H(69129),ei=H(88868),ea=H(40990),es=H(51672);function eu(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];var H=es.popResultSelector(W),eu=eo.argsOrArgArray(W);return eu.length?new ee.Observable(function(W){var G=eu.map(function(){return[]}),ee=eu.map(function(){return!1});W.add(function(){G=ee=null});for(var eo=function(eo){et.innerFrom(eu[eo]).subscribe(ea.createOperatorSubscriber(W,function(et){if(G[eo].push(et),G.every(function(W){return W.length})){var ei=G.map(function(W){return W.shift()});W.next(H?H.apply(void 0,Q([],J(ei))):ei),G.some(function(W,G){return!W.length&&ee[G]})&&W.complete()}},function(){ee[eo]=!0,G[eo].length||W.complete()}))},ei=0;!W.closed&&ei<eu.length;ei++)eo(ei);return function(){G=ee=null}}):ei.EMPTY}G.zip=eu},40990:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.OperatorSubscriber=G.createOperatorSubscriber=void 0;var Q=H(29770);function ee(W,G,H,J,Q){return new et(W,G,H,J,Q)}G.createOperatorSubscriber=ee;var et=function(W){function G(G,H,J,Q,ee,et){var eo=W.call(this,G)||this;return eo.onFinalize=ee,eo.shouldUnsubscribe=et,eo._next=H?function(W){try{H(W)}catch(W){G.error(W)}}:W.prototype._next,eo._error=Q?function(W){try{Q(W)}catch(W){G.error(W)}finally{this.unsubscribe()}}:W.prototype._error,eo._complete=J?function(){try{J()}catch(W){G.error(W)}finally{this.unsubscribe()}}:W.prototype._complete,eo}return J(G,W),G.prototype.unsubscribe=function(){var G;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var H=this.closed;W.prototype.unsubscribe.call(this),H||null===(G=this.onFinalize)||void 0===G||G.call(this)}},G}(Q.Subscriber);G.OperatorSubscriber=et},95490:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.audit=void 0;var J=H(72896),Q=H(98309),ee=H(40990);function et(W){return J.operate(function(G,H){var J=!1,et=null,eo=null,ei=!1,ea=function(){if(null==eo||eo.unsubscribe(),eo=null,J){J=!1;var W=et;et=null,H.next(W)}ei&&H.complete()},es=function(){eo=null,ei&&H.complete()};G.subscribe(ee.createOperatorSubscriber(H,function(G){J=!0,et=G,eo||Q.innerFrom(W(G)).subscribe(eo=ee.createOperatorSubscriber(H,ea,es))},function(){ei=!0,J&&eo&&!eo.closed||H.complete()}))})}G.audit=et},21650:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.auditTime=void 0;var J=H(54176),Q=H(95490),ee=H(19785);function et(W,G){return void 0===G&&(G=J.asyncScheduler),Q.audit(function(){return ee.timer(W,G)})}G.auditTime=et},3583:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.buffer=void 0;var J=H(72896),Q=H(34842),ee=H(40990),et=H(98309);function eo(W){return J.operate(function(G,H){var J=[];return G.subscribe(ee.createOperatorSubscriber(H,function(W){return J.push(W)},function(){H.next(J),H.complete()})),et.innerFrom(W).subscribe(ee.createOperatorSubscriber(H,function(){var W=J;J=[],H.next(W)},Q.noop)),function(){J=null}})}G.buffer=eo},24341:function(W,G,H){"use strict";var J=this&&this.__values||function(W){var G="function"==typeof Symbol&&Symbol.iterator,H=G&&W[G],J=0;if(H)return H.call(W);if(W&&"number"==typeof W.length)return{next:function(){return W&&J>=W.length&&(W=void 0),{value:W&&W[J++],done:!W}}};throw TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(G,"__esModule",{value:!0}),G.bufferCount=void 0;var Q=H(72896),ee=H(40990),et=H(71555);function eo(W,G){return void 0===G&&(G=null),G=null!=G?G:W,Q.operate(function(H,Q){var eo=[],ei=0;H.subscribe(ee.createOperatorSubscriber(Q,function(H){var ee,ea,es,eu,ec=null;ei++%G==0&&eo.push([]);try{for(var ef=J(eo),ed=ef.next();!ed.done;ed=ef.next()){var eh=ed.value;eh.push(H),W<=eh.length&&(ec=null!=ec?ec:[]).push(eh)}}catch(W){ee={error:W}}finally{try{ed&&!ed.done&&(ea=ef.return)&&ea.call(ef)}finally{if(ee)throw ee.error}}if(ec)try{for(var ep=J(ec),ey=ep.next();!ey.done;ey=ep.next()){var eh=ey.value;et.arrRemove(eo,eh),Q.next(eh)}}catch(W){es={error:W}}finally{try{ey&&!ey.done&&(eu=ep.return)&&eu.call(ep)}finally{if(es)throw es.error}}},function(){var W,G;try{for(var H=J(eo),ee=H.next();!ee.done;ee=H.next()){var et=ee.value;Q.next(et)}}catch(G){W={error:G}}finally{try{ee&&!ee.done&&(G=H.return)&&G.call(H)}finally{if(W)throw W.error}}Q.complete()},void 0,function(){eo=null}))})}G.bufferCount=eo},7399:function(W,G,H){"use strict";var J=this&&this.__values||function(W){var G="function"==typeof Symbol&&Symbol.iterator,H=G&&W[G],J=0;if(H)return H.call(W);if(W&&"number"==typeof W.length)return{next:function(){return W&&J>=W.length&&(W=void 0),{value:W&&W[J++],done:!W}}};throw TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(G,"__esModule",{value:!0}),G.bufferTime=void 0;var Q=H(45088),ee=H(72896),et=H(40990),eo=H(71555),ei=H(54176),ea=H(51672),es=H(11239);function eu(W){for(var G,H,eu=[],ec=1;ec<arguments.length;ec++)eu[ec-1]=arguments[ec];var ef=null!==(G=ea.popScheduler(eu))&&void 0!==G?G:ei.asyncScheduler,ed=null!==(H=eu[0])&&void 0!==H?H:null,eh=eu[1]||1/0;return ee.operate(function(G,H){var ee=[],ei=!1,ea=function(W){var G=W.buffer;W.subs.unsubscribe(),eo.arrRemove(ee,W),H.next(G),ei&&eu()},eu=function(){if(ee){var G=new Q.Subscription;H.add(G);var J={buffer:[],subs:G};ee.push(J),es.executeSchedule(G,ef,function(){return ea(J)},W)}};null!==ed&&ed>=0?es.executeSchedule(H,ef,eu,ed,!0):ei=!0,eu();var ec=et.createOperatorSubscriber(H,function(W){var G,H,Q=ee.slice();try{for(var et=J(Q),eo=et.next();!eo.done;eo=et.next()){var ei=eo.value,es=ei.buffer;es.push(W),eh<=es.length&&ea(ei)}}catch(W){G={error:W}}finally{try{eo&&!eo.done&&(H=et.return)&&H.call(et)}finally{if(G)throw G.error}}},function(){for(;null==ee?void 0:ee.length;)H.next(ee.shift().buffer);null==ec||ec.unsubscribe(),H.complete(),H.unsubscribe()},void 0,function(){return ee=null});G.subscribe(ec)})}G.bufferTime=eu},2729:function(W,G,H){"use strict";var J=this&&this.__values||function(W){var G="function"==typeof Symbol&&Symbol.iterator,H=G&&W[G],J=0;if(H)return H.call(W);if(W&&"number"==typeof W.length)return{next:function(){return W&&J>=W.length&&(W=void 0),{value:W&&W[J++],done:!W}}};throw TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(G,"__esModule",{value:!0}),G.bufferToggle=void 0;var Q=H(45088),ee=H(72896),et=H(98309),eo=H(40990),ei=H(34842),ea=H(71555);function es(W,G){return ee.operate(function(H,ee){var es=[];et.innerFrom(W).subscribe(eo.createOperatorSubscriber(ee,function(W){var H=[];es.push(H);var J=new Q.Subscription,eu=function(){ea.arrRemove(es,H),ee.next(H),J.unsubscribe()};J.add(et.innerFrom(G(W)).subscribe(eo.createOperatorSubscriber(ee,eu,ei.noop)))},ei.noop)),H.subscribe(eo.createOperatorSubscriber(ee,function(W){var G,H;try{for(var Q=J(es),ee=Q.next();!ee.done;ee=Q.next())ee.value.push(W)}catch(W){G={error:W}}finally{try{ee&&!ee.done&&(H=Q.return)&&H.call(Q)}finally{if(G)throw G.error}}},function(){for(;es.length>0;)ee.next(es.shift());ee.complete()}))})}G.bufferToggle=es},86880:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.bufferWhen=void 0;var J=H(72896),Q=H(34842),ee=H(40990),et=H(98309);function eo(W){return J.operate(function(G,H){var J=null,eo=null,ei=function(){null==eo||eo.unsubscribe();var G=J;J=[],G&&H.next(G),et.innerFrom(W()).subscribe(eo=ee.createOperatorSubscriber(H,ei,Q.noop))};ei(),G.subscribe(ee.createOperatorSubscriber(H,function(W){return null==J?void 0:J.push(W)},function(){J&&H.next(J),H.complete()},void 0,function(){return J=eo=null}))})}G.bufferWhen=eo},63747:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.catchError=void 0;var J=H(98309),Q=H(40990),ee=H(72896);function et(W){return ee.operate(function(G,H){var ee,eo=null,ei=!1;eo=G.subscribe(Q.createOperatorSubscriber(H,void 0,void 0,function(Q){ee=J.innerFrom(W(Q,et(W)(G))),eo?(eo.unsubscribe(),eo=null,ee.subscribe(H)):ei=!0})),ei&&(eo.unsubscribe(),eo=null,ee.subscribe(H))})}G.catchError=et},83804:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.combineAll=void 0;var J=H(35428);G.combineAll=J.combineLatestAll},38059:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.combineLatest=void 0;var ee=H(49213),et=H(72896),eo=H(69129),ei=H(14878),ea=H(75720),es=H(51672);function eu(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];var H=es.popResultSelector(W);return H?ea.pipe(eu.apply(void 0,Q([],J(W))),ei.mapOneOrManyArgs(H)):et.operate(function(G,H){ee.combineLatestInit(Q([G],J(eo.argsOrArgArray(W))))(H)})}G.combineLatest=eu},35428:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.combineLatestAll=void 0;var J=H(49213),Q=H(5091);function ee(W){return Q.joinAllInternals(J.combineLatest,W)}G.combineLatestAll=ee},92853:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.combineLatestWith=void 0;var ee=H(38059);function et(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];return ee.combineLatest.apply(void 0,Q([],J(W)))}G.combineLatestWith=et},59444:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.concat=void 0;var ee=H(72896),et=H(71637),eo=H(51672),ei=H(77324);function ea(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];var H=eo.popScheduler(W);return ee.operate(function(G,ee){et.concatAll()(ei.from(Q([G],J(W)),H)).subscribe(ee)})}G.concat=ea},71637:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.concatAll=void 0;var J=H(12390);function Q(){return J.mergeAll(1)}G.concatAll=Q},76868:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.concatMap=void 0;var J=H(82140),Q=H(64870);function ee(W,G){return Q.isFunction(G)?J.mergeMap(W,G,1):J.mergeMap(W,1)}G.concatMap=ee},17155:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.concatMapTo=void 0;var J=H(76868),Q=H(64870);function ee(W,G){return Q.isFunction(G)?J.concatMap(function(){return W},G):J.concatMap(function(){return W})}G.concatMapTo=ee},55536:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.concatWith=void 0;var ee=H(59444);function et(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];return ee.concat.apply(void 0,Q([],J(W)))}G.concatWith=et},56917:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.connect=void 0;var J=H(91045),Q=H(98309),ee=H(72896),et=H(32692),eo={connector:function(){return new J.Subject}};function ei(W,G){void 0===G&&(G=eo);var H=G.connector;return ee.operate(function(G,J){var ee=H();Q.innerFrom(W(et.fromSubscribable(ee))).subscribe(J),J.add(G.subscribe(ee))})}G.connect=ei},58921:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.count=void 0;var J=H(59631);function Q(W){return J.reduce(function(G,H,J){return!W||W(H,J)?G+1:G},0)}G.count=Q},90218:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.debounce=void 0;var J=H(72896),Q=H(34842),ee=H(40990),et=H(98309);function eo(W){return J.operate(function(G,H){var J=!1,eo=null,ei=null,ea=function(){if(null==ei||ei.unsubscribe(),ei=null,J){J=!1;var W=eo;eo=null,H.next(W)}};G.subscribe(ee.createOperatorSubscriber(H,function(G){null==ei||ei.unsubscribe(),J=!0,eo=G,ei=ee.createOperatorSubscriber(H,ea,Q.noop),et.innerFrom(W(G)).subscribe(ei)},function(){ea(),H.complete()},void 0,function(){eo=ei=null}))})}G.debounce=eo},90766:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.debounceTime=void 0;var J=H(54176),Q=H(72896),ee=H(40990);function et(W,G){return void 0===G&&(G=J.asyncScheduler),Q.operate(function(H,J){var Q=null,et=null,eo=null,ei=function(){if(Q){Q.unsubscribe(),Q=null;var W=et;et=null,J.next(W)}};function ea(){var H=eo+W,ee=G.now();if(ee<H){Q=this.schedule(void 0,H-ee),J.add(Q);return}ei()}H.subscribe(ee.createOperatorSubscriber(J,function(H){et=H,eo=G.now(),Q||(Q=G.schedule(ea,W),J.add(Q))},function(){ei(),J.complete()},void 0,function(){et=Q=null}))})}G.debounceTime=et},58595:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.defaultIfEmpty=void 0;var J=H(72896),Q=H(40990);function ee(W){return J.operate(function(G,H){var J=!1;G.subscribe(Q.createOperatorSubscriber(H,function(W){J=!0,H.next(W)},function(){J||H.next(W),H.complete()}))})}G.defaultIfEmpty=ee},33759:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.delay=void 0;var J=H(54176),Q=H(93489),ee=H(19785);function et(W,G){void 0===G&&(G=J.asyncScheduler);var H=ee.timer(W,G);return Q.delayWhen(function(){return H})}G.delay=et},93489:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.delayWhen=void 0;var J=H(3153),Q=H(33030),ee=H(56323),et=H(25930),eo=H(82140),ei=H(98309);function ea(W,G){return G?function(H){return J.concat(G.pipe(Q.take(1),ee.ignoreElements()),H.pipe(ea(W)))}:eo.mergeMap(function(G,H){return ei.innerFrom(W(G,H)).pipe(Q.take(1),et.mapTo(G))})}G.delayWhen=ea},13014:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.dematerialize=void 0;var J=H(74588),Q=H(72896),ee=H(40990);function et(){return Q.operate(function(W,G){W.subscribe(ee.createOperatorSubscriber(G,function(W){return J.observeNotification(W,G)}))})}G.dematerialize=et},89264:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.distinct=void 0;var J=H(72896),Q=H(40990),ee=H(34842),et=H(98309);function eo(W,G){return J.operate(function(H,J){var eo=new Set;H.subscribe(Q.createOperatorSubscriber(J,function(G){var H=W?W(G):G;eo.has(H)||(eo.add(H),J.next(G))})),G&&et.innerFrom(G).subscribe(Q.createOperatorSubscriber(J,function(){return eo.clear()},ee.noop))})}G.distinct=eo},44896:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.distinctUntilChanged=void 0;var J=H(54327),Q=H(72896),ee=H(40990);function et(W,G){return void 0===G&&(G=J.identity),W=null!=W?W:eo,Q.operate(function(H,J){var Q,et=!0;H.subscribe(ee.createOperatorSubscriber(J,function(H){var ee=G(H);(et||!W(Q,ee))&&(et=!1,Q=ee,J.next(H))}))})}function eo(W,G){return W===G}G.distinctUntilChanged=et},56942:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.distinctUntilKeyChanged=void 0;var J=H(44896);function Q(W,G){return J.distinctUntilChanged(function(H,J){return G?G(H[W],J[W]):H[W]===J[W]})}G.distinctUntilKeyChanged=Q},92943:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.elementAt=void 0;var J=H(67711),Q=H(63926),ee=H(35239),et=H(58595),eo=H(33030);function ei(W,G){if(W<0)throw new J.ArgumentOutOfRangeError;var H=arguments.length>=2;return function(ei){return ei.pipe(Q.filter(function(G,H){return H===W}),eo.take(1),H?et.defaultIfEmpty(G):ee.throwIfEmpty(function(){return new J.ArgumentOutOfRangeError}))}}G.elementAt=ei},98562:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.endWith=void 0;var ee=H(3153),et=H(76487);function eo(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];return function(G){return ee.concat(G,et.of.apply(void 0,Q([],J(W))))}}G.endWith=eo},29386:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.every=void 0;var J=H(72896),Q=H(40990);function ee(W,G){return J.operate(function(H,J){var ee=0;H.subscribe(Q.createOperatorSubscriber(J,function(Q){W.call(G,Q,ee++,H)||(J.next(!1),J.complete())},function(){J.next(!0),J.complete()}))})}G.every=ee},7447:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.exhaust=void 0;var J=H(53014);G.exhaust=J.exhaustAll},53014:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.exhaustAll=void 0;var J=H(85922),Q=H(54327);function ee(){return J.exhaustMap(Q.identity)}G.exhaustAll=ee},85922:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.exhaustMap=void 0;var J=H(13946),Q=H(98309),ee=H(72896),et=H(40990);function eo(W,G){return G?function(H){return H.pipe(eo(function(H,ee){return Q.innerFrom(W(H,ee)).pipe(J.map(function(W,J){return G(H,W,ee,J)}))}))}:ee.operate(function(G,H){var J=0,ee=null,eo=!1;G.subscribe(et.createOperatorSubscriber(H,function(G){ee||(ee=et.createOperatorSubscriber(H,void 0,function(){ee=null,eo&&H.complete()}),Q.innerFrom(W(G,J++)).subscribe(ee))},function(){eo=!0,ee||H.complete()}))})}G.exhaustMap=eo},54189:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.expand=void 0;var J=H(72896),Q=H(35658);function ee(W,G,H){return void 0===G&&(G=1/0),G=1>(G||0)?1/0:G,J.operate(function(J,ee){return Q.mergeInternals(J,ee,W,G,void 0,!0,H)})}G.expand=ee},63926:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.filter=void 0;var J=H(72896),Q=H(40990);function ee(W,G){return J.operate(function(H,J){var ee=0;H.subscribe(Q.createOperatorSubscriber(J,function(H){return W.call(G,H,ee++)&&J.next(H)}))})}G.filter=ee},91993:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.finalize=void 0;var J=H(72896);function Q(W){return J.operate(function(G,H){try{G.subscribe(H)}finally{H.add(W)}})}G.finalize=Q},46680:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.createFind=G.find=void 0;var J=H(72896),Q=H(40990);function ee(W,G){return J.operate(et(W,G,"value"))}function et(W,G,H){var J="index"===H;return function(H,ee){var et=0;H.subscribe(Q.createOperatorSubscriber(ee,function(Q){var eo=et++;W.call(G,Q,eo,H)&&(ee.next(J?eo:Q),ee.complete())},function(){ee.next(J?-1:void 0),ee.complete()}))}}G.find=ee,G.createFind=et},2404:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.findIndex=void 0;var J=H(72896),Q=H(46680);function ee(W,G){return J.operate(Q.createFind(W,G,"index"))}G.findIndex=ee},99714:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.first=void 0;var J=H(81585),Q=H(63926),ee=H(33030),et=H(58595),eo=H(35239),ei=H(54327);function ea(W,G){var H=arguments.length>=2;return function(ea){return ea.pipe(W?Q.filter(function(G,H){return W(G,H,ea)}):ei.identity,ee.take(1),H?et.defaultIfEmpty(G):eo.throwIfEmpty(function(){return new J.EmptyError}))}}G.first=ea},68029:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.flatMap=void 0;var J=H(82140);G.flatMap=J.mergeMap},80944:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.groupBy=void 0;var J=H(95190),Q=H(98309),ee=H(91045),et=H(72896),eo=H(40990);function ei(W,G,H,ei){return et.operate(function(et,ea){G&&"function"!=typeof G?(H=G.duration,es=G.element,ei=G.connector):es=G;var es,eu=new Map,ec=function(W){eu.forEach(W),W(ea)},ef=function(W){return ec(function(G){return G.error(W)})},ed=0,eh=!1,ep=new eo.OperatorSubscriber(ea,function(G){try{var J=W(G),et=eu.get(J);if(!et){eu.set(J,et=ei?ei():new ee.Subject);var ec=ey(J,et);if(ea.next(ec),H){var ed=eo.createOperatorSubscriber(et,function(){et.complete(),null==ed||ed.unsubscribe()},void 0,void 0,function(){return eu.delete(J)});ep.add(Q.innerFrom(H(ec)).subscribe(ed))}}et.next(es?es(G):G)}catch(W){ef(W)}},function(){return ec(function(W){return W.complete()})},ef,function(){return eu.clear()},function(){return eh=!0,0===ed});function ey(W,G){var H=new J.Observable(function(W){ed++;var H=G.subscribe(W);return function(){H.unsubscribe(),0==--ed&&eh&&ep.unsubscribe()}});return H.key=W,H}et.subscribe(ep)})}G.groupBy=ei},56323:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.ignoreElements=void 0;var J=H(72896),Q=H(40990),ee=H(34842);function et(){return J.operate(function(W,G){W.subscribe(Q.createOperatorSubscriber(G,ee.noop))})}G.ignoreElements=et},84337:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.isEmpty=void 0;var J=H(72896),Q=H(40990);function ee(){return J.operate(function(W,G){W.subscribe(Q.createOperatorSubscriber(G,function(){G.next(!1),G.complete()},function(){G.next(!0),G.complete()}))})}G.isEmpty=ee},5091:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.joinAllInternals=void 0;var J=H(54327),Q=H(14878),ee=H(75720),et=H(82140),eo=H(89752);function ei(W,G){return ee.pipe(eo.toArray(),et.mergeMap(function(G){return W(G)}),G?Q.mapOneOrManyArgs(G):J.identity)}G.joinAllInternals=ei},89259:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.last=void 0;var J=H(81585),Q=H(63926),ee=H(73584),et=H(35239),eo=H(58595),ei=H(54327);function ea(W,G){var H=arguments.length>=2;return function(ea){return ea.pipe(W?Q.filter(function(G,H){return W(G,H,ea)}):ei.identity,ee.takeLast(1),H?eo.defaultIfEmpty(G):et.throwIfEmpty(function(){return new J.EmptyError}))}}G.last=ea},13946:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.map=void 0;var J=H(72896),Q=H(40990);function ee(W,G){return J.operate(function(H,J){var ee=0;H.subscribe(Q.createOperatorSubscriber(J,function(H){J.next(W.call(G,H,ee++))}))})}G.map=ee},25930:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.mapTo=void 0;var J=H(13946);function Q(W){return J.map(function(){return W})}G.mapTo=Q},22395:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.materialize=void 0;var J=H(74588),Q=H(72896),ee=H(40990);function et(){return Q.operate(function(W,G){W.subscribe(ee.createOperatorSubscriber(G,function(W){G.next(J.Notification.createNext(W))},function(){G.next(J.Notification.createComplete()),G.complete()},function(W){G.next(J.Notification.createError(W)),G.complete()}))})}G.materialize=et},31721:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.max=void 0;var J=H(59631),Q=H(64870);function ee(W){return J.reduce(Q.isFunction(W)?function(G,H){return W(G,H)>0?G:H}:function(W,G){return W>G?W:G})}G.max=ee},94668:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.merge=void 0;var ee=H(72896),et=H(69129),eo=H(12390),ei=H(51672),ea=H(77324);function es(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];var H=ei.popScheduler(W),es=ei.popNumber(W,1/0);return W=et.argsOrArgArray(W),ee.operate(function(G,ee){eo.mergeAll(es)(ea.from(Q([G],J(W)),H)).subscribe(ee)})}G.merge=es},12390:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.mergeAll=void 0;var J=H(82140),Q=H(54327);function ee(W){return void 0===W&&(W=1/0),J.mergeMap(Q.identity,W)}G.mergeAll=ee},35658:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.mergeInternals=void 0;var J=H(98309),Q=H(11239),ee=H(40990);function et(W,G,H,et,eo,ei,ea,es){var eu=[],ec=0,ef=0,ed=!1,eh=function(){!ed||eu.length||ec||G.complete()},ep=function(W){return ec<et?ey(W):eu.push(W)},ey=function(W){ei&&G.next(W),ec++;var es=!1;J.innerFrom(H(W,ef++)).subscribe(ee.createOperatorSubscriber(G,function(W){null==eo||eo(W),ei?ep(W):G.next(W)},function(){es=!0},void 0,function(){if(es)try{ec--;for(var W=function(){var W=eu.shift();ea?Q.executeSchedule(G,ea,function(){return ey(W)}):ey(W)};eu.length&&ec<et;)W();eh()}catch(W){G.error(W)}}))};return W.subscribe(ee.createOperatorSubscriber(G,ep,function(){ed=!0,eh()})),function(){null==es||es()}}G.mergeInternals=et},82140:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.mergeMap=void 0;var J=H(13946),Q=H(98309),ee=H(72896),et=H(35658),eo=H(64870);function ei(W,G,H){return(void 0===H&&(H=1/0),eo.isFunction(G))?ei(function(H,ee){return J.map(function(W,J){return G(H,W,ee,J)})(Q.innerFrom(W(H,ee)))},H):("number"==typeof G&&(H=G),ee.operate(function(G,J){return et.mergeInternals(G,J,W,H)}))}G.mergeMap=ei},31903:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.mergeMapTo=void 0;var J=H(82140),Q=H(64870);function ee(W,G,H){return(void 0===H&&(H=1/0),Q.isFunction(G))?J.mergeMap(function(){return W},G,H):("number"==typeof G&&(H=G),J.mergeMap(function(){return W},H))}G.mergeMapTo=ee},66882:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.mergeScan=void 0;var J=H(72896),Q=H(35658);function ee(W,G,H){return void 0===H&&(H=1/0),J.operate(function(J,ee){var et=G;return Q.mergeInternals(J,ee,function(G,H){return W(et,G,H)},H,function(W){et=W},!1,void 0,function(){return et=null})})}G.mergeScan=ee},60117:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.mergeWith=void 0;var ee=H(94668);function et(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];return ee.merge.apply(void 0,Q([],J(W)))}G.mergeWith=et},73029:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.min=void 0;var J=H(59631),Q=H(64870);function ee(W){return J.reduce(Q.isFunction(W)?function(G,H){return 0>W(G,H)?G:H}:function(W,G){return W<G?W:G})}G.min=ee},90110:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.multicast=void 0;var J=H(55330),Q=H(64870),ee=H(56917);function et(W,G){var H=Q.isFunction(W)?W:function(){return W};return Q.isFunction(G)?ee.connect(G,{connector:H}):function(W){return new J.ConnectableObservable(W,H)}}G.multicast=et},55001:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.observeOn=void 0;var J=H(11239),Q=H(72896),ee=H(40990);function et(W,G){return void 0===G&&(G=0),Q.operate(function(H,Q){H.subscribe(ee.createOperatorSubscriber(Q,function(H){return J.executeSchedule(Q,W,function(){return Q.next(H)},G)},function(){return J.executeSchedule(Q,W,function(){return Q.complete()},G)},function(H){return J.executeSchedule(Q,W,function(){return Q.error(H)},G)}))})}G.observeOn=et},48828:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.onErrorResumeNext=G.onErrorResumeNextWith=void 0;var ee=H(69129),et=H(52904);function eo(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];var H=ee.argsOrArgArray(W);return function(W){return et.onErrorResumeNext.apply(void 0,Q([W],J(H)))}}G.onErrorResumeNextWith=eo,G.onErrorResumeNext=eo},75705:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.pairwise=void 0;var J=H(72896),Q=H(40990);function ee(){return J.operate(function(W,G){var H,J=!1;W.subscribe(Q.createOperatorSubscriber(G,function(W){var Q=H;H=W,J&&G.next([Q,W]),J=!0}))})}G.pairwise=ee},27764:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.pluck=void 0;var J=H(13946);function Q(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];var H=W.length;if(0===H)throw Error("list of properties cannot be empty.");return J.map(function(G){for(var J=G,Q=0;Q<H;Q++){var ee=null==J?void 0:J[W[Q]];if(void 0===ee)return;J=ee}return J})}G.pluck=Q},7264:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.publish=void 0;var J=H(91045),Q=H(90110),ee=H(56917);function et(W){return W?function(G){return ee.connect(W)(G)}:function(W){return Q.multicast(new J.Subject)(W)}}G.publish=et},78209:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.publishBehavior=void 0;var J=H(68445),Q=H(55330);function ee(W){return function(G){var H=new J.BehaviorSubject(W);return new Q.ConnectableObservable(G,function(){return H})}}G.publishBehavior=ee},99676:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.publishLast=void 0;var J=H(82398),Q=H(55330);function ee(){return function(W){var G=new J.AsyncSubject;return new Q.ConnectableObservable(W,function(){return G})}}G.publishLast=ee},82484:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.publishReplay=void 0;var J=H(81559),Q=H(90110),ee=H(64870);function et(W,G,H,et){H&&!ee.isFunction(H)&&(et=H);var eo=ee.isFunction(H)?H:void 0;return function(H){return Q.multicast(new J.ReplaySubject(W,G,et),eo)(H)}}G.publishReplay=et},46893:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.raceWith=void 0;var ee=H(60670),et=H(72896),eo=H(54327);function ei(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];return W.length?et.operate(function(G,H){ee.raceInit(Q([G],J(W)))(H)}):eo.identity}G.raceWith=ei},59631:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.reduce=void 0;var J=H(74692),Q=H(72896);function ee(W,G){return Q.operate(J.scanInternals(W,G,arguments.length>=2,!1,!0))}G.reduce=ee},98919:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.refCount=void 0;var J=H(72896),Q=H(40990);function ee(){return J.operate(function(W,G){var H=null;W._refCount++;var J=Q.createOperatorSubscriber(G,void 0,void 0,void 0,function(){if(!W||W._refCount<=0||0<--W._refCount){H=null;return}var J=W._connection,Q=H;H=null,J&&(!Q||J===Q)&&J.unsubscribe(),G.unsubscribe()});W.subscribe(J),J.closed||(H=W.connect())})}G.refCount=ee},63478:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.repeat=void 0;var J=H(88868),Q=H(72896),ee=H(40990),et=H(98309),eo=H(19785);function ei(W){var G,H,ei=1/0;return null!=W&&("object"==typeof W?(ei=void 0===(G=W.count)?1/0:G,H=W.delay):ei=W),ei<=0?function(){return J.EMPTY}:Q.operate(function(W,G){var J,Q=0,ea=function(){if(null==J||J.unsubscribe(),J=null,null!=H){var W="number"==typeof H?eo.timer(H):et.innerFrom(H(Q)),ei=ee.createOperatorSubscriber(G,function(){ei.unsubscribe(),es()});W.subscribe(ei)}else es()},es=function(){var H=!1;J=W.subscribe(ee.createOperatorSubscriber(G,void 0,function(){++Q<ei?J?ea():H=!0:G.complete()})),H&&ea()};es()})}G.repeat=ei},27222:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.repeatWhen=void 0;var J=H(98309),Q=H(91045),ee=H(72896),et=H(40990);function eo(W){return ee.operate(function(G,H){var ee,eo,ei=!1,ea=!1,es=!1,eu=function(){return es&&ea&&(H.complete(),!0)},ec=function(){return eo||(eo=new Q.Subject,J.innerFrom(W(eo)).subscribe(et.createOperatorSubscriber(H,function(){ee?ef():ei=!0},function(){ea=!0,eu()}))),eo},ef=function(){es=!1,ee=G.subscribe(et.createOperatorSubscriber(H,void 0,function(){es=!0,eu()||ec().next()})),ei&&(ee.unsubscribe(),ee=null,ei=!1,ef())};ef()})}G.repeatWhen=eo},65490:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.retry=void 0;var J=H(72896),Q=H(40990),ee=H(54327),et=H(19785),eo=H(98309);function ei(W){void 0===W&&(W=1/0);var G,H=(G=W&&"object"==typeof W?W:{count:W}).count,ei=void 0===H?1/0:H,ea=G.delay,es=G.resetOnSuccess,eu=void 0!==es&&es;return ei<=0?ee.identity:J.operate(function(W,G){var H,J=0,ee=function(){var es=!1;H=W.subscribe(Q.createOperatorSubscriber(G,function(W){eu&&(J=0),G.next(W)},void 0,function(W){if(J++<ei){var eu=function(){H?(H.unsubscribe(),H=null,ee()):es=!0};if(null!=ea){var ec="number"==typeof ea?et.timer(ea):eo.innerFrom(ea(W,J)),ef=Q.createOperatorSubscriber(G,function(){ef.unsubscribe(),eu()},function(){G.complete()});ec.subscribe(ef)}else eu()}else G.error(W)})),es&&(H.unsubscribe(),H=null,ee())};ee()})}G.retry=ei},43478:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.retryWhen=void 0;var J=H(98309),Q=H(91045),ee=H(72896),et=H(40990);function eo(W){return ee.operate(function(G,H){var ee,eo,ei=!1,ea=function(){ee=G.subscribe(et.createOperatorSubscriber(H,void 0,void 0,function(G){eo||(eo=new Q.Subject,J.innerFrom(W(eo)).subscribe(et.createOperatorSubscriber(H,function(){return ee?ea():ei=!0}))),eo&&eo.next(G)})),ei&&(ee.unsubscribe(),ee=null,ei=!1,ea())};ea()})}G.retryWhen=eo},21849:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.sample=void 0;var J=H(98309),Q=H(72896),ee=H(34842),et=H(40990);function eo(W){return Q.operate(function(G,H){var Q=!1,eo=null;G.subscribe(et.createOperatorSubscriber(H,function(W){Q=!0,eo=W})),J.innerFrom(W).subscribe(et.createOperatorSubscriber(H,function(){if(Q){Q=!1;var W=eo;eo=null,H.next(W)}},ee.noop))})}G.sample=eo},61155:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.sampleTime=void 0;var J=H(54176),Q=H(21849),ee=H(11327);function et(W,G){return void 0===G&&(G=J.asyncScheduler),Q.sample(ee.interval(W,G))}G.sampleTime=et},19953:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.scan=void 0;var J=H(72896),Q=H(74692);function ee(W,G){return J.operate(Q.scanInternals(W,G,arguments.length>=2,!0))}G.scan=ee},74692:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.scanInternals=void 0;var J=H(40990);function Q(W,G,H,Q,ee){return function(et,eo){var ei=H,ea=G,es=0;et.subscribe(J.createOperatorSubscriber(eo,function(G){var H=es++;ea=ei?W(ea,G,H):(ei=!0,G),Q&&eo.next(ea)},ee&&function(){ei&&eo.next(ea),eo.complete()}))}}G.scanInternals=Q},99273:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.sequenceEqual=void 0;var J=H(72896),Q=H(40990),ee=H(98309);function et(W,G){return void 0===G&&(G=function(W,G){return W===G}),J.operate(function(H,J){var et=eo(),ei=eo(),ea=function(W){J.next(W),J.complete()},es=function(W,H){var ee=Q.createOperatorSubscriber(J,function(J){var Q=H.buffer,ee=H.complete;0===Q.length?ee?ea(!1):W.buffer.push(J):G(J,Q.shift())||ea(!1)},function(){W.complete=!0;var G=H.complete,J=H.buffer;G&&ea(0===J.length),null==ee||ee.unsubscribe()});return ee};H.subscribe(es(et,ei)),ee.innerFrom(W).subscribe(es(ei,et))})}function eo(){return{buffer:[],complete:!1}}G.sequenceEqual=et},15830:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.share=void 0;var ee=H(98309),et=H(91045),eo=H(29770),ei=H(72896);function ea(W){void 0===W&&(W={});var G=W.connector,H=void 0===G?function(){return new et.Subject}:G,J=W.resetOnError,Q=void 0===J||J,ea=W.resetOnComplete,eu=void 0===ea||ea,ec=W.resetOnRefCountZero,ef=void 0===ec||ec;return function(W){var G,J,et,ea=0,ec=!1,ed=!1,eh=function(){null==J||J.unsubscribe(),J=void 0},ep=function(){eh(),G=et=void 0,ec=ed=!1},ey=function(){var W=G;ep(),null==W||W.unsubscribe()};return ei.operate(function(W,ei){ea++,ed||ec||eh();var ev=et=null!=et?et:H();ei.add(function(){0!=--ea||ed||ec||(J=es(ey,ef))}),ev.subscribe(ei),!G&&ea>0&&(G=new eo.SafeSubscriber({next:function(W){return ev.next(W)},error:function(W){ed=!0,eh(),J=es(ep,Q,W),ev.error(W)},complete:function(){ec=!0,eh(),J=es(ep,eu),ev.complete()}}),ee.innerFrom(W).subscribe(G))})(W)}}function es(W,G){for(var H=[],et=2;et<arguments.length;et++)H[et-2]=arguments[et];if(!0===G){W();return}if(!1!==G){var ei=new eo.SafeSubscriber({next:function(){ei.unsubscribe(),W()}});return ee.innerFrom(G.apply(void 0,Q([],J(H)))).subscribe(ei)}}G.share=ea},29590:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.shareReplay=void 0;var J=H(81559),Q=H(15830);function ee(W,G,H){var ee,et,eo,ei,ea=!1;return W&&"object"==typeof W?(ei=void 0===(ee=W.bufferSize)?1/0:ee,G=void 0===(et=W.windowTime)?1/0:et,ea=void 0!==(eo=W.refCount)&&eo,H=W.scheduler):ei=null!=W?W:1/0,Q.share({connector:function(){return new J.ReplaySubject(ei,G,H)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:ea})}G.shareReplay=ee},52093:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.single=void 0;var J=H(81585),Q=H(23975),ee=H(84577),et=H(72896),eo=H(40990);function ei(W){return et.operate(function(G,H){var et,ei=!1,ea=!1,es=0;G.subscribe(eo.createOperatorSubscriber(H,function(J){ea=!0,(!W||W(J,es++,G))&&(ei&&H.error(new Q.SequenceError("Too many matching values")),ei=!0,et=J)},function(){ei?(H.next(et),H.complete()):H.error(ea?new ee.NotFoundError("No matching values"):new J.EmptyError)}))})}G.single=ei},68373:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.skip=void 0;var J=H(63926);function Q(W){return J.filter(function(G,H){return W<=H})}G.skip=Q},68093:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.skipLast=void 0;var J=H(54327),Q=H(72896),ee=H(40990);function et(W){return W<=0?J.identity:Q.operate(function(G,H){var J=Array(W),Q=0;return G.subscribe(ee.createOperatorSubscriber(H,function(G){var ee=Q++;if(ee<W)J[ee]=G;else{var et=ee%W,eo=J[et];J[et]=G,H.next(eo)}})),function(){J=null}})}G.skipLast=et},96072:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.skipUntil=void 0;var J=H(72896),Q=H(40990),ee=H(98309),et=H(34842);function eo(W){return J.operate(function(G,H){var J=!1,eo=Q.createOperatorSubscriber(H,function(){null==eo||eo.unsubscribe(),J=!0},et.noop);ee.innerFrom(W).subscribe(eo),G.subscribe(Q.createOperatorSubscriber(H,function(W){return J&&H.next(W)}))})}G.skipUntil=eo},52219:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.skipWhile=void 0;var J=H(72896),Q=H(40990);function ee(W){return J.operate(function(G,H){var J=!1,ee=0;G.subscribe(Q.createOperatorSubscriber(H,function(G){return(J||(J=!W(G,ee++)))&&H.next(G)}))})}G.skipWhile=ee},63032:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.startWith=void 0;var J=H(3153),Q=H(51672),ee=H(72896);function et(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];var H=Q.popScheduler(W);return ee.operate(function(G,Q){(H?J.concat(W,G,H):J.concat(W,G)).subscribe(Q)})}G.startWith=et},21321:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.subscribeOn=void 0;var J=H(72896);function Q(W,G){return void 0===G&&(G=0),J.operate(function(H,J){J.add(W.schedule(function(){return H.subscribe(J)},G))})}G.subscribeOn=Q},72808:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.switchAll=void 0;var J=H(21691),Q=H(54327);function ee(){return J.switchMap(Q.identity)}G.switchAll=ee},21691:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.switchMap=void 0;var J=H(98309),Q=H(72896),ee=H(40990);function et(W,G){return Q.operate(function(H,Q){var et=null,eo=0,ei=!1,ea=function(){return ei&&!et&&Q.complete()};H.subscribe(ee.createOperatorSubscriber(Q,function(H){null==et||et.unsubscribe();var ei=0,es=eo++;J.innerFrom(W(H,es)).subscribe(et=ee.createOperatorSubscriber(Q,function(W){return Q.next(G?G(H,W,es,ei++):W)},function(){et=null,ea()}))},function(){ei=!0,ea()}))})}G.switchMap=et},31814:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.switchMapTo=void 0;var J=H(21691),Q=H(64870);function ee(W,G){return Q.isFunction(G)?J.switchMap(function(){return W},G):J.switchMap(function(){return W})}G.switchMapTo=ee},60003:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.switchScan=void 0;var J=H(21691),Q=H(72896);function ee(W,G){return Q.operate(function(H,Q){var ee=G;return J.switchMap(function(G,H){return W(ee,G,H)},function(W,G){return ee=G,G})(H).subscribe(Q),function(){ee=null}})}G.switchScan=ee},33030:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.take=void 0;var J=H(88868),Q=H(72896),ee=H(40990);function et(W){return W<=0?function(){return J.EMPTY}:Q.operate(function(G,H){var J=0;G.subscribe(ee.createOperatorSubscriber(H,function(G){++J<=W&&(H.next(G),W<=J&&H.complete())}))})}G.take=et},73584:function(W,G,H){"use strict";var J=this&&this.__values||function(W){var G="function"==typeof Symbol&&Symbol.iterator,H=G&&W[G],J=0;if(H)return H.call(W);if(W&&"number"==typeof W.length)return{next:function(){return W&&J>=W.length&&(W=void 0),{value:W&&W[J++],done:!W}}};throw TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(G,"__esModule",{value:!0}),G.takeLast=void 0;var Q=H(88868),ee=H(72896),et=H(40990);function eo(W){return W<=0?function(){return Q.EMPTY}:ee.operate(function(G,H){var Q=[];G.subscribe(et.createOperatorSubscriber(H,function(G){Q.push(G),W<Q.length&&Q.shift()},function(){var W,G;try{for(var ee=J(Q),et=ee.next();!et.done;et=ee.next()){var eo=et.value;H.next(eo)}}catch(G){W={error:G}}finally{try{et&&!et.done&&(G=ee.return)&&G.call(ee)}finally{if(W)throw W.error}}H.complete()},void 0,function(){Q=null}))})}G.takeLast=eo},5035:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.takeUntil=void 0;var J=H(72896),Q=H(40990),ee=H(98309),et=H(34842);function eo(W){return J.operate(function(G,H){ee.innerFrom(W).subscribe(Q.createOperatorSubscriber(H,function(){return H.complete()},et.noop)),H.closed||G.subscribe(H)})}G.takeUntil=eo},54525:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.takeWhile=void 0;var J=H(72896),Q=H(40990);function ee(W,G){return void 0===G&&(G=!1),J.operate(function(H,J){var ee=0;H.subscribe(Q.createOperatorSubscriber(J,function(H){var Q=W(H,ee++);(Q||G)&&J.next(H),Q||J.complete()}))})}G.takeWhile=ee},4697:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.tap=void 0;var J=H(64870),Q=H(72896),ee=H(40990),et=H(54327);function eo(W,G,H){var eo=J.isFunction(W)||G||H?{next:W,error:G,complete:H}:W;return eo?Q.operate(function(W,G){null===(H=eo.subscribe)||void 0===H||H.call(eo);var H,J=!0;W.subscribe(ee.createOperatorSubscriber(G,function(W){var H;null===(H=eo.next)||void 0===H||H.call(eo,W),G.next(W)},function(){var W;J=!1,null===(W=eo.complete)||void 0===W||W.call(eo),G.complete()},function(W){var H;J=!1,null===(H=eo.error)||void 0===H||H.call(eo,W),G.error(W)},function(){var W,G;J&&(null===(W=eo.unsubscribe)||void 0===W||W.call(eo)),null===(G=eo.finalize)||void 0===G||G.call(eo)}))}):et.identity}G.tap=eo},51905:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.throttle=void 0;var J=H(72896),Q=H(40990),ee=H(98309);function et(W,G){return J.operate(function(H,J){var et=null!=G?G:{},eo=et.leading,ei=void 0===eo||eo,ea=et.trailing,es=void 0!==ea&&ea,eu=!1,ec=null,ef=null,ed=!1,eh=function(){null==ef||ef.unsubscribe(),ef=null,es&&(ev(),ed&&J.complete())},ep=function(){ef=null,ed&&J.complete()},ey=function(G){return ef=ee.innerFrom(W(G)).subscribe(Q.createOperatorSubscriber(J,eh,ep))},ev=function(){if(eu){eu=!1;var W=ec;ec=null,J.next(W),ed||ey(W)}};H.subscribe(Q.createOperatorSubscriber(J,function(W){eu=!0,ec=W,ef&&!ef.closed||(ei?ev():ey(W))},function(){ed=!0,es&&eu&&ef&&!ef.closed||J.complete()}))})}G.throttle=et},71607:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.throttleTime=void 0;var J=H(54176),Q=H(51905),ee=H(19785);function et(W,G,H){void 0===G&&(G=J.asyncScheduler);var et=ee.timer(W,G);return Q.throttle(function(){return et},H)}G.throttleTime=et},35239:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.throwIfEmpty=void 0;var J=H(81585),Q=H(72896),ee=H(40990);function et(W){return void 0===W&&(W=eo),Q.operate(function(G,H){var J=!1;G.subscribe(ee.createOperatorSubscriber(H,function(W){J=!0,H.next(W)},function(){return J?H.complete():H.error(W())}))})}function eo(){return new J.EmptyError}G.throwIfEmpty=et},20265:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.TimeInterval=G.timeInterval=void 0;var J=H(54176),Q=H(72896),ee=H(40990);function et(W){return void 0===W&&(W=J.asyncScheduler),Q.operate(function(G,H){var J=W.now();G.subscribe(ee.createOperatorSubscriber(H,function(G){var Q=W.now(),ee=Q-J;J=Q,H.next(new eo(G,ee))}))})}G.timeInterval=et;var eo=function(){return function(W,G){this.value=W,this.interval=G}}();G.TimeInterval=eo},61815:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.timeout=G.TimeoutError=void 0;var J=H(54176),Q=H(86701),ee=H(72896),et=H(98309),eo=H(33302),ei=H(40990),ea=H(11239);function es(W,G){var H=Q.isValidDate(W)?{first:W}:"number"==typeof W?{each:W}:W,eo=H.first,es=H.each,ec=H.with,ef=void 0===ec?eu:ec,ed=H.scheduler,eh=void 0===ed?null!=G?G:J.asyncScheduler:ed,ep=H.meta,ey=void 0===ep?null:ep;if(null==eo&&null==es)throw TypeError("No timeout provided.");return ee.operate(function(W,G){var H,J,Q=null,ee=0,eu=function(W){J=ea.executeSchedule(G,eh,function(){try{H.unsubscribe(),et.innerFrom(ef({meta:ey,lastValue:Q,seen:ee})).subscribe(G)}catch(W){G.error(W)}},W)};H=W.subscribe(ei.createOperatorSubscriber(G,function(W){null==J||J.unsubscribe(),ee++,G.next(Q=W),es>0&&eu(es)},void 0,void 0,function(){(null==J?void 0:J.closed)||null==J||J.unsubscribe(),Q=null})),ee||eu(null!=eo?"number"==typeof eo?eo:+eo-eh.now():es)})}function eu(W){throw new G.TimeoutError(W)}G.TimeoutError=eo.createErrorClass(function(W){return function(G){void 0===G&&(G=null),W(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=G}}),G.timeout=es},98008:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.timeoutWith=void 0;var J=H(54176),Q=H(86701),ee=H(61815);function et(W,G,H){var et,eo,ei;if(H=null!=H?H:J.async,Q.isValidDate(W)?et=W:"number"==typeof W&&(eo=W),G)ei=function(){return G};else throw TypeError("No observable provided to switch to");if(null==et&&null==eo)throw TypeError("No timeout provided.");return ee.timeout({first:et,each:eo,scheduler:H,with:ei})}G.timeoutWith=et},14255:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.timestamp=void 0;var J=H(47885),Q=H(13946);function ee(W){return void 0===W&&(W=J.dateTimestampProvider),Q.map(function(G){return{value:G,timestamp:W.now()}})}G.timestamp=ee},89752:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.toArray=void 0;var J=H(59631),Q=H(72896),ee=function(W,G){return W.push(G),W};function et(){return Q.operate(function(W,G){J.reduce(ee,[])(W).subscribe(G)})}G.toArray=et},53110:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.window=void 0;var J=H(91045),Q=H(72896),ee=H(40990),et=H(34842),eo=H(98309);function ei(W){return Q.operate(function(G,H){var Q=new J.Subject;H.next(Q.asObservable());var ei=function(W){Q.error(W),H.error(W)};return G.subscribe(ee.createOperatorSubscriber(H,function(W){return null==Q?void 0:Q.next(W)},function(){Q.complete(),H.complete()},ei)),eo.innerFrom(W).subscribe(ee.createOperatorSubscriber(H,function(){Q.complete(),H.next(Q=new J.Subject)},et.noop,ei)),function(){null==Q||Q.unsubscribe(),Q=null}})}G.window=ei},36118:function(W,G,H){"use strict";var J=this&&this.__values||function(W){var G="function"==typeof Symbol&&Symbol.iterator,H=G&&W[G],J=0;if(H)return H.call(W);if(W&&"number"==typeof W.length)return{next:function(){return W&&J>=W.length&&(W=void 0),{value:W&&W[J++],done:!W}}};throw TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(G,"__esModule",{value:!0}),G.windowCount=void 0;var Q=H(91045),ee=H(72896),et=H(40990);function eo(W,G){void 0===G&&(G=0);var H=G>0?G:W;return ee.operate(function(G,ee){var eo=[new Q.Subject],ei=0;ee.next(eo[0].asObservable()),G.subscribe(et.createOperatorSubscriber(ee,function(G){try{for(var et,ea,es=J(eo),eu=es.next();!eu.done;eu=es.next())eu.value.next(G)}catch(W){et={error:W}}finally{try{eu&&!eu.done&&(ea=es.return)&&ea.call(es)}finally{if(et)throw et.error}}var ec=ei-W+1;if(ec>=0&&ec%H==0&&eo.shift().complete(),++ei%H==0){var ef=new Q.Subject;eo.push(ef),ee.next(ef.asObservable())}},function(){for(;eo.length>0;)eo.shift().complete();ee.complete()},function(W){for(;eo.length>0;)eo.shift().error(W);ee.error(W)},function(){eo=null}))})}G.windowCount=eo},8815:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.windowTime=void 0;var J=H(91045),Q=H(54176),ee=H(45088),et=H(72896),eo=H(40990),ei=H(71555),ea=H(51672),es=H(11239);function eu(W){for(var G,H,eu=[],ec=1;ec<arguments.length;ec++)eu[ec-1]=arguments[ec];var ef=null!==(G=ea.popScheduler(eu))&&void 0!==G?G:Q.asyncScheduler,ed=null!==(H=eu[0])&&void 0!==H?H:null,eh=eu[1]||1/0;return et.operate(function(G,H){var Q=[],et=!1,ea=function(W){var G=W.window,H=W.subs;G.complete(),H.unsubscribe(),ei.arrRemove(Q,W),et&&eu()},eu=function(){if(Q){var G=new ee.Subscription;H.add(G);var et=new J.Subject,eo={window:et,subs:G,seen:0};Q.push(eo),H.next(et.asObservable()),es.executeSchedule(G,ef,function(){return ea(eo)},W)}};null!==ed&&ed>=0?es.executeSchedule(H,ef,eu,ed,!0):et=!0,eu();var ec=function(W){return Q.slice().forEach(W)},ep=function(W){ec(function(G){return W(G.window)}),W(H),H.unsubscribe()};return G.subscribe(eo.createOperatorSubscriber(H,function(W){ec(function(G){G.window.next(W),eh<=++G.seen&&ea(G)})},function(){return ep(function(W){return W.complete()})},function(W){return ep(function(G){return G.error(W)})})),function(){Q=null}})}G.windowTime=eu},64947:function(W,G,H){"use strict";var J=this&&this.__values||function(W){var G="function"==typeof Symbol&&Symbol.iterator,H=G&&W[G],J=0;if(H)return H.call(W);if(W&&"number"==typeof W.length)return{next:function(){return W&&J>=W.length&&(W=void 0),{value:W&&W[J++],done:!W}}};throw TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(G,"__esModule",{value:!0}),G.windowToggle=void 0;var Q=H(91045),ee=H(45088),et=H(72896),eo=H(98309),ei=H(40990),ea=H(34842),es=H(71555);function eu(W,G){return et.operate(function(H,et){var eu=[],ec=function(W){for(;0<eu.length;)eu.shift().error(W);et.error(W)};eo.innerFrom(W).subscribe(ei.createOperatorSubscriber(et,function(W){var H,J=new Q.Subject;eu.push(J);var ef=new ee.Subscription,ed=function(){es.arrRemove(eu,J),J.complete(),ef.unsubscribe()};try{H=eo.innerFrom(G(W))}catch(W){ec(W);return}et.next(J.asObservable()),ef.add(H.subscribe(ei.createOperatorSubscriber(et,ed,ea.noop,ec)))},ea.noop)),H.subscribe(ei.createOperatorSubscriber(et,function(W){var G,H,Q=eu.slice();try{for(var ee=J(Q),et=ee.next();!et.done;et=ee.next())et.value.next(W)}catch(W){G={error:W}}finally{try{et&&!et.done&&(H=ee.return)&&H.call(ee)}finally{if(G)throw G.error}}},function(){for(;0<eu.length;)eu.shift().complete();et.complete()},ec,function(){for(;0<eu.length;)eu.shift().unsubscribe()}))})}G.windowToggle=eu},91544:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.windowWhen=void 0;var J=H(91045),Q=H(72896),ee=H(40990),et=H(98309);function eo(W){return Q.operate(function(G,H){var Q,eo,ei=function(W){Q.error(W),H.error(W)},ea=function(){var G;null==eo||eo.unsubscribe(),null==Q||Q.complete(),Q=new J.Subject,H.next(Q.asObservable());try{G=et.innerFrom(W())}catch(W){ei(W);return}G.subscribe(eo=ee.createOperatorSubscriber(H,ea,ea,ei))};ea(),G.subscribe(ee.createOperatorSubscriber(H,function(W){return Q.next(W)},function(){Q.complete(),H.complete()},ei,function(){null==eo||eo.unsubscribe(),Q=null}))})}G.windowWhen=eo},49543:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.withLatestFrom=void 0;var ee=H(72896),et=H(40990),eo=H(98309),ei=H(54327),ea=H(34842),es=H(51672);function eu(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];var H=es.popResultSelector(W);return ee.operate(function(G,ee){for(var es=W.length,eu=Array(es),ec=W.map(function(){return!1}),ef=!1,ed=function(G){eo.innerFrom(W[G]).subscribe(et.createOperatorSubscriber(ee,function(W){eu[G]=W,!ef&&!ec[G]&&(ec[G]=!0,(ef=ec.every(ei.identity))&&(ec=null))},ea.noop))},eh=0;eh<es;eh++)ed(eh);G.subscribe(et.createOperatorSubscriber(ee,function(W){if(ef){var G=Q([W],J(eu));ee.next(H?H.apply(void 0,Q([],J(G))):G)}}))})}G.withLatestFrom=eu},33875:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.zip=void 0;var ee=H(87373),et=H(72896);function eo(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];return et.operate(function(G,H){ee.zip.apply(void 0,Q([G],J(W))).subscribe(H)})}G.zip=eo},78165:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.zipAll=void 0;var J=H(87373),Q=H(5091);function ee(W){return Q.joinAllInternals(J.zip,W)}G.zipAll=ee},83541:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.zipWith=void 0;var ee=H(33875);function et(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];return ee.zip.apply(void 0,Q([],J(W)))}G.zipWith=et},57483:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.scheduleArray=void 0;var J=H(95190);function Q(W,G){return new J.Observable(function(H){var J=0;return G.schedule(function(){J===W.length?H.complete():(H.next(W[J++]),H.closed||this.schedule())})})}G.scheduleArray=Q},95154:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.scheduleAsyncIterable=void 0;var J=H(95190),Q=H(11239);function ee(W,G){if(!W)throw Error("Iterable cannot be null");return new J.Observable(function(H){Q.executeSchedule(H,G,function(){var J=W[Symbol.asyncIterator]();Q.executeSchedule(H,G,function(){J.next().then(function(W){W.done?H.complete():H.next(W.value)})},0,!0)})})}G.scheduleAsyncIterable=ee},62696:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.scheduleIterable=void 0;var J=H(95190),Q=H(14089),ee=H(64870),et=H(11239);function eo(W,G){return new J.Observable(function(H){var J;return et.executeSchedule(H,G,function(){J=W[Q.iterator](),et.executeSchedule(H,G,function(){var W,G,Q;try{G=(W=J.next()).value,Q=W.done}catch(W){H.error(W);return}Q?H.complete():H.next(G)},0,!0)}),function(){return ee.isFunction(null==J?void 0:J.return)&&J.return()}})}G.scheduleIterable=eo},16887:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.scheduleObservable=void 0;var J=H(98309),Q=H(55001),ee=H(21321);function et(W,G){return J.innerFrom(W).pipe(ee.subscribeOn(G),Q.observeOn(G))}G.scheduleObservable=et},25813:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.schedulePromise=void 0;var J=H(98309),Q=H(55001),ee=H(21321);function et(W,G){return J.innerFrom(W).pipe(ee.subscribeOn(G),Q.observeOn(G))}G.schedulePromise=et},63681:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.scheduleReadableStreamLike=void 0;var J=H(95154),Q=H(9838);function ee(W,G){return J.scheduleAsyncIterable(Q.readableStreamLikeToAsyncGenerator(W),G)}G.scheduleReadableStreamLike=ee},35002:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.scheduled=void 0;var J=H(16887),Q=H(25813),ee=H(57483),et=H(62696),eo=H(95154),ei=H(40269),ea=H(28017),es=H(26815),eu=H(31932),ec=H(23635),ef=H(70650),ed=H(9838),eh=H(63681);function ep(W,G){if(null!=W){if(ei.isInteropObservable(W))return J.scheduleObservable(W,G);if(es.isArrayLike(W))return ee.scheduleArray(W,G);if(ea.isPromise(W))return Q.schedulePromise(W,G);if(ec.isAsyncIterable(W))return eo.scheduleAsyncIterable(W,G);if(eu.isIterable(W))return et.scheduleIterable(W,G);if(ed.isReadableStreamLike(W))return eh.scheduleReadableStreamLike(W,G)}throw ef.createInvalidObservableTypeError(W)}G.scheduled=ep},36577:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.Action=void 0;var Q=function(W){function G(G,H){return W.call(this)||this}return J(G,W),G.prototype.schedule=function(W,G){return void 0===G&&(G=0),this},G}(H(45088).Subscription);G.Action=Q},8452:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.AnimationFrameAction=void 0;var Q=H(85691),ee=H(41315),et=function(W){function G(G,H){var J=W.call(this,G,H)||this;return J.scheduler=G,J.work=H,J}return J(G,W),G.prototype.requestAsyncId=function(G,H,J){return(void 0===J&&(J=0),null!==J&&J>0)?W.prototype.requestAsyncId.call(this,G,H,J):(G.actions.push(this),G._scheduled||(G._scheduled=ee.animationFrameProvider.requestAnimationFrame(function(){return G.flush(void 0)})))},G.prototype.recycleAsyncId=function(G,H,J){if(void 0===J&&(J=0),null!=J?J>0:this.delay>0)return W.prototype.recycleAsyncId.call(this,G,H,J);var Q,et=G.actions;null!=H&&(null===(Q=et[et.length-1])||void 0===Q?void 0:Q.id)!==H&&(ee.animationFrameProvider.cancelAnimationFrame(H),G._scheduled=void 0)},G}(Q.AsyncAction);G.AnimationFrameAction=et},73679:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.AnimationFrameScheduler=void 0;var Q=function(W){function G(){return null!==W&&W.apply(this,arguments)||this}return J(G,W),G.prototype.flush=function(W){this._active=!0;var G,H=this._scheduled;this._scheduled=void 0;var J=this.actions;W=W||J.shift();do if(G=W.execute(W.state,W.delay))break;while((W=J[0])&&W.id===H&&J.shift());if(this._active=!1,G){for(;(W=J[0])&&W.id===H&&J.shift();)W.unsubscribe();throw G}},G}(H(79421).AsyncScheduler);G.AnimationFrameScheduler=Q},82047:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.AsapAction=void 0;var Q=H(85691),ee=H(79052),et=function(W){function G(G,H){var J=W.call(this,G,H)||this;return J.scheduler=G,J.work=H,J}return J(G,W),G.prototype.requestAsyncId=function(G,H,J){return(void 0===J&&(J=0),null!==J&&J>0)?W.prototype.requestAsyncId.call(this,G,H,J):(G.actions.push(this),G._scheduled||(G._scheduled=ee.immediateProvider.setImmediate(G.flush.bind(G,void 0))))},G.prototype.recycleAsyncId=function(G,H,J){if(void 0===J&&(J=0),null!=J?J>0:this.delay>0)return W.prototype.recycleAsyncId.call(this,G,H,J);var Q,et=G.actions;null!=H&&(null===(Q=et[et.length-1])||void 0===Q?void 0:Q.id)!==H&&(ee.immediateProvider.clearImmediate(H),G._scheduled===H&&(G._scheduled=void 0))},G}(Q.AsyncAction);G.AsapAction=et},21055:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.AsapScheduler=void 0;var Q=function(W){function G(){return null!==W&&W.apply(this,arguments)||this}return J(G,W),G.prototype.flush=function(W){this._active=!0;var G,H=this._scheduled;this._scheduled=void 0;var J=this.actions;W=W||J.shift();do if(G=W.execute(W.state,W.delay))break;while((W=J[0])&&W.id===H&&J.shift());if(this._active=!1,G){for(;(W=J[0])&&W.id===H&&J.shift();)W.unsubscribe();throw G}},G}(H(79421).AsyncScheduler);G.AsapScheduler=Q},85691:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.AsyncAction=void 0;var Q=H(36577),ee=H(89648),et=H(71555),eo=function(W){function G(G,H){var J=W.call(this,G,H)||this;return J.scheduler=G,J.work=H,J.pending=!1,J}return J(G,W),G.prototype.schedule=function(W,G){if(void 0===G&&(G=0),this.closed)return this;this.state=W;var H,J=this.id,Q=this.scheduler;return null!=J&&(this.id=this.recycleAsyncId(Q,J,G)),this.pending=!0,this.delay=G,this.id=null!==(H=this.id)&&void 0!==H?H:this.requestAsyncId(Q,this.id,G),this},G.prototype.requestAsyncId=function(W,G,H){return void 0===H&&(H=0),ee.intervalProvider.setInterval(W.flush.bind(W,this),H)},G.prototype.recycleAsyncId=function(W,G,H){if(void 0===H&&(H=0),null!=H&&this.delay===H&&!1===this.pending)return G;null!=G&&ee.intervalProvider.clearInterval(G)},G.prototype.execute=function(W,G){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var H=this._execute(W,G);if(H)return H;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},G.prototype._execute=function(W,G){var H,J=!1;try{this.work(W)}catch(W){J=!0,H=W||Error("Scheduled action threw falsy error")}if(J)return this.unsubscribe(),H},G.prototype.unsubscribe=function(){if(!this.closed){var G=this,H=G.id,J=G.scheduler,Q=J.actions;this.work=this.state=this.scheduler=null,this.pending=!1,et.arrRemove(Q,this),null!=H&&(this.id=this.recycleAsyncId(J,H,null)),this.delay=null,W.prototype.unsubscribe.call(this)}},G}(Q.Action);G.AsyncAction=eo},79421:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.AsyncScheduler=void 0;var Q=H(59939),ee=function(W){function G(G,H){void 0===H&&(H=Q.Scheduler.now);var J=W.call(this,G,H)||this;return J.actions=[],J._active=!1,J}return J(G,W),G.prototype.flush=function(W){var G,H=this.actions;if(this._active){H.push(W);return}this._active=!0;do if(G=W.execute(W.state,W.delay))break;while(W=H.shift());if(this._active=!1,G){for(;W=H.shift();)W.unsubscribe();throw G}},G}(Q.Scheduler);G.AsyncScheduler=ee},78933:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.QueueAction=void 0;var Q=function(W){function G(G,H){var J=W.call(this,G,H)||this;return J.scheduler=G,J.work=H,J}return J(G,W),G.prototype.schedule=function(G,H){return(void 0===H&&(H=0),H>0)?W.prototype.schedule.call(this,G,H):(this.delay=H,this.state=G,this.scheduler.flush(this),this)},G.prototype.execute=function(G,H){return H>0||this.closed?W.prototype.execute.call(this,G,H):this._execute(G,H)},G.prototype.requestAsyncId=function(G,H,J){return(void 0===J&&(J=0),null!=J&&J>0||null==J&&this.delay>0)?W.prototype.requestAsyncId.call(this,G,H,J):(G.flush(this),0)},G}(H(85691).AsyncAction);G.QueueAction=Q},51334:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.QueueScheduler=void 0;var Q=function(W){function G(){return null!==W&&W.apply(this,arguments)||this}return J(G,W),G}(H(79421).AsyncScheduler);G.QueueScheduler=Q},48571:function(W,G,H){"use strict";var J=this&&this.__extends||function(){var W=function(G,H){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(G,H)};return function(G,H){if("function"!=typeof H&&null!==H)throw TypeError("Class extends value "+String(H)+" is not a constructor or null");function J(){this.constructor=G}W(G,H),G.prototype=null===H?Object.create(H):(J.prototype=H.prototype,new J)}}();Object.defineProperty(G,"__esModule",{value:!0}),G.VirtualAction=G.VirtualTimeScheduler=void 0;var Q=H(85691),ee=H(45088),et=function(W){function G(G,H){void 0===G&&(G=eo),void 0===H&&(H=1/0);var J=W.call(this,G,function(){return J.frame})||this;return J.maxFrames=H,J.frame=0,J.index=-1,J}return J(G,W),G.prototype.flush=function(){for(var W,G,H=this,J=H.actions,Q=H.maxFrames;(G=J[0])&&G.delay<=Q&&(J.shift(),this.frame=G.delay,!(W=G.execute(G.state,G.delay))););if(W){for(;G=J.shift();)G.unsubscribe();throw W}},G.frameTimeFactor=10,G}(H(79421).AsyncScheduler);G.VirtualTimeScheduler=et;var eo=function(W){function G(G,H,J){void 0===J&&(J=G.index+=1);var Q=W.call(this,G,H)||this;return Q.scheduler=G,Q.work=H,Q.index=J,Q.active=!0,Q.index=G.index=J,Q}return J(G,W),G.prototype.schedule=function(H,J){if(void 0===J&&(J=0),!Number.isFinite(J))return ee.Subscription.EMPTY;if(!this.id)return W.prototype.schedule.call(this,H,J);this.active=!1;var Q=new G(this.scheduler,this.work);return this.add(Q),Q.schedule(H,J)},G.prototype.requestAsyncId=function(W,H,J){void 0===J&&(J=0),this.delay=W.frame+J;var Q=W.actions;return Q.push(this),Q.sort(G.sortActions),1},G.prototype.recycleAsyncId=function(W,G,H){void 0===H&&(H=0)},G.prototype._execute=function(G,H){if(!0===this.active)return W.prototype._execute.call(this,G,H)},G.sortActions=function(W,G){return W.delay===G.delay?W.index===G.index?0:W.index>G.index?1:-1:W.delay>G.delay?1:-1},G}(Q.AsyncAction);G.VirtualAction=eo},50559:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.animationFrame=G.animationFrameScheduler=void 0;var J=H(8452),Q=H(73679);G.animationFrameScheduler=new Q.AnimationFrameScheduler(J.AnimationFrameAction),G.animationFrame=G.animationFrameScheduler},41315:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.animationFrameProvider=void 0;var ee=H(45088);G.animationFrameProvider={schedule:function(W){var H=requestAnimationFrame,J=cancelAnimationFrame,Q=G.animationFrameProvider.delegate;Q&&(H=Q.requestAnimationFrame,J=Q.cancelAnimationFrame);var et=H(function(G){J=void 0,W(G)});return new ee.Subscription(function(){return null==J?void 0:J(et)})},requestAnimationFrame:function(){for(var W=[],H=0;H<arguments.length;H++)W[H]=arguments[H];var ee=G.animationFrameProvider.delegate;return((null==ee?void 0:ee.requestAnimationFrame)||requestAnimationFrame).apply(void 0,Q([],J(W)))},cancelAnimationFrame:function(){for(var W=[],H=0;H<arguments.length;H++)W[H]=arguments[H];var ee=G.animationFrameProvider.delegate;return((null==ee?void 0:ee.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,Q([],J(W)))},delegate:void 0}},82646:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.asap=G.asapScheduler=void 0;var J=H(82047),Q=H(21055);G.asapScheduler=new Q.AsapScheduler(J.AsapAction),G.asap=G.asapScheduler},54176:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.async=G.asyncScheduler=void 0;var J=H(85691),Q=H(79421);G.asyncScheduler=new Q.AsyncScheduler(J.AsyncAction),G.async=G.asyncScheduler},47885:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.dateTimestampProvider=void 0,G.dateTimestampProvider={now:function(){return(G.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},79052:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.immediateProvider=void 0;var ee=H(86471),et=ee.Immediate.setImmediate,eo=ee.Immediate.clearImmediate;G.immediateProvider={setImmediate:function(){for(var W=[],H=0;H<arguments.length;H++)W[H]=arguments[H];var ee=G.immediateProvider.delegate;return((null==ee?void 0:ee.setImmediate)||et).apply(void 0,Q([],J(W)))},clearImmediate:function(W){var H=G.immediateProvider.delegate;return((null==H?void 0:H.clearImmediate)||eo)(W)},delegate:void 0}},89648:function(W,G){"use strict";var H=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},J=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.intervalProvider=void 0,G.intervalProvider={setInterval:function(W,Q){for(var ee=[],et=2;et<arguments.length;et++)ee[et-2]=arguments[et];var eo=G.intervalProvider.delegate;return(null==eo?void 0:eo.setInterval)?eo.setInterval.apply(eo,J([W,Q],H(ee))):setInterval.apply(void 0,J([W,Q],H(ee)))},clearInterval:function(W){var H=G.intervalProvider.delegate;return((null==H?void 0:H.clearInterval)||clearInterval)(W)},delegate:void 0}},1747:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.performanceTimestampProvider=void 0,G.performanceTimestampProvider={now:function(){return(G.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},38267:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.queue=G.queueScheduler=void 0;var J=H(78933),Q=H(51334);G.queueScheduler=new Q.QueueScheduler(J.QueueAction),G.queue=G.queueScheduler},7720:function(W,G){"use strict";var H=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},J=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.timeoutProvider=void 0,G.timeoutProvider={setTimeout:function(W,Q){for(var ee=[],et=2;et<arguments.length;et++)ee[et-2]=arguments[et];var eo=G.timeoutProvider.delegate;return(null==eo?void 0:eo.setTimeout)?eo.setTimeout.apply(eo,J([W,Q],H(ee))):setTimeout.apply(void 0,J([W,Q],H(ee)))},clearTimeout:function(W){var H=G.timeoutProvider.delegate;return((null==H?void 0:H.clearTimeout)||clearTimeout)(W)},delegate:void 0}},14089:function(W,G){"use strict";function H(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(G,"__esModule",{value:!0}),G.iterator=G.getSymbolIterator=void 0,G.getSymbolIterator=H,G.iterator=H()},98835:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.observable=void 0,G.observable=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},17160:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0})},67711:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.ArgumentOutOfRangeError=void 0;var J=H(33302);G.ArgumentOutOfRangeError=J.createErrorClass(function(W){return function(){W(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},81585:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.EmptyError=void 0;var J=H(33302);G.EmptyError=J.createErrorClass(function(W){return function(){W(this),this.name="EmptyError",this.message="no elements in sequence"}})},86471:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.TestTools=G.Immediate=void 0;var H,J=1,Q={};function ee(W){return W in Q&&(delete Q[W],!0)}G.Immediate={setImmediate:function(W){var G=J++;return Q[G]=!0,H||(H=Promise.resolve()),H.then(function(){return ee(G)&&W()}),G},clearImmediate:function(W){ee(W)}},G.TestTools={pending:function(){return Object.keys(Q).length}}},84577:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.NotFoundError=void 0;var J=H(33302);G.NotFoundError=J.createErrorClass(function(W){return function(G){W(this),this.name="NotFoundError",this.message=G}})},23778:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.ObjectUnsubscribedError=void 0;var J=H(33302);G.ObjectUnsubscribedError=J.createErrorClass(function(W){return function(){W(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},23975:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.SequenceError=void 0;var J=H(33302);G.SequenceError=J.createErrorClass(function(W){return function(G){W(this),this.name="SequenceError",this.message=G}})},16664:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.UnsubscriptionError=void 0;var J=H(33302);G.UnsubscriptionError=J.createErrorClass(function(W){return function(G){W(this),this.message=G?G.length+" errors occurred during unsubscription:\n"+G.map(function(W,G){return G+1+") "+W.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=G}})},51672:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.popNumber=G.popScheduler=G.popResultSelector=void 0;var J=H(64870),Q=H(95460);function ee(W){return W[W.length-1]}function et(W){return J.isFunction(ee(W))?W.pop():void 0}function eo(W){return Q.isScheduler(ee(W))?W.pop():void 0}function ei(W,G){return"number"==typeof ee(W)?W.pop():G}G.popResultSelector=et,G.popScheduler=eo,G.popNumber=ei},85089:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.argsArgArrayOrObject=void 0;var H=Array.isArray,J=Object.getPrototypeOf,Q=Object.prototype,ee=Object.keys;function et(W){if(1===W.length){var G=W[0];if(H(G))return{args:G,keys:null};if(eo(G)){var J=ee(G);return{args:J.map(function(W){return G[W]}),keys:J}}}return{args:W,keys:null}}function eo(W){return W&&"object"==typeof W&&J(W)===Q}G.argsArgArrayOrObject=et},69129:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.argsOrArgArray=void 0;var H=Array.isArray;function J(W){return 1===W.length&&H(W[0])?W[0]:W}G.argsOrArgArray=J},71555:function(W,G){"use strict";function H(W,G){if(W){var H=W.indexOf(G);0<=H&&W.splice(H,1)}}Object.defineProperty(G,"__esModule",{value:!0}),G.arrRemove=void 0,G.arrRemove=H},33302:function(W,G){"use strict";function H(W){var G=W(function(W){Error.call(W),W.stack=Error().stack});return G.prototype=Object.create(Error.prototype),G.prototype.constructor=G,G}Object.defineProperty(G,"__esModule",{value:!0}),G.createErrorClass=void 0,G.createErrorClass=H},56047:function(W,G){"use strict";function H(W,G){return W.reduce(function(W,H,J){return W[H]=G[J],W},{})}Object.defineProperty(G,"__esModule",{value:!0}),G.createObject=void 0,G.createObject=H},44676:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.captureError=G.errorContext=void 0;var J=H(7524),Q=null;function ee(W){if(J.config.useDeprecatedSynchronousErrorHandling){var G=!Q;if(G&&(Q={errorThrown:!1,error:null}),W(),G){var H=Q,ee=H.errorThrown,et=H.error;if(Q=null,ee)throw et}}else W()}function et(W){J.config.useDeprecatedSynchronousErrorHandling&&Q&&(Q.errorThrown=!0,Q.error=W)}G.errorContext=ee,G.captureError=et},11239:function(W,G){"use strict";function H(W,G,H,J,Q){void 0===J&&(J=0),void 0===Q&&(Q=!1);var ee=G.schedule(function(){H(),Q?W.add(this.schedule(null,J)):this.unsubscribe()},J);if(W.add(ee),!Q)return ee}Object.defineProperty(G,"__esModule",{value:!0}),G.executeSchedule=void 0,G.executeSchedule=H},54327:function(W,G){"use strict";function H(W){return W}Object.defineProperty(G,"__esModule",{value:!0}),G.identity=void 0,G.identity=H},26815:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.isArrayLike=void 0,G.isArrayLike=function(W){return W&&"number"==typeof W.length&&"function"!=typeof W}},23635:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.isAsyncIterable=void 0;var J=H(64870);function Q(W){return Symbol.asyncIterator&&J.isFunction(null==W?void 0:W[Symbol.asyncIterator])}G.isAsyncIterable=Q},86701:function(W,G){"use strict";function H(W){return W instanceof Date&&!isNaN(W)}Object.defineProperty(G,"__esModule",{value:!0}),G.isValidDate=void 0,G.isValidDate=H},64870:function(W,G){"use strict";function H(W){return"function"==typeof W}Object.defineProperty(G,"__esModule",{value:!0}),G.isFunction=void 0,G.isFunction=H},40269:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.isInteropObservable=void 0;var J=H(98835),Q=H(64870);function ee(W){return Q.isFunction(W[J.observable])}G.isInteropObservable=ee},31932:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.isIterable=void 0;var J=H(14089),Q=H(64870);function ee(W){return Q.isFunction(null==W?void 0:W[J.iterator])}G.isIterable=ee},39578:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.isObservable=void 0;var J=H(95190),Q=H(64870);function ee(W){return!!W&&(W instanceof J.Observable||Q.isFunction(W.lift)&&Q.isFunction(W.subscribe))}G.isObservable=ee},28017:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.isPromise=void 0;var J=H(64870);function Q(W){return J.isFunction(null==W?void 0:W.then)}G.isPromise=Q},9838:function(W,G,H){"use strict";var J=this&&this.__generator||function(W,G){var H,J,Q,ee,et={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return ee={next:eo(0),throw:eo(1),return:eo(2)},"function"==typeof Symbol&&(ee[Symbol.iterator]=function(){return this}),ee;function eo(W){return function(G){return ei([W,G])}}function ei(ee){if(H)throw TypeError("Generator is already executing.");for(;et;)try{if(H=1,J&&(Q=2&ee[0]?J.return:ee[0]?J.throw||((Q=J.return)&&Q.call(J),0):J.next)&&!(Q=Q.call(J,ee[1])).done)return Q;switch(J=0,Q&&(ee=[2&ee[0],Q.value]),ee[0]){case 0:case 1:Q=ee;break;case 4:return et.label++,{value:ee[1],done:!1};case 5:et.label++,J=ee[1],ee=[0];continue;case 7:ee=et.ops.pop(),et.trys.pop();continue;default:if(!(Q=(Q=et.trys).length>0&&Q[Q.length-1])&&(6===ee[0]||2===ee[0])){et=0;continue}if(3===ee[0]&&(!Q||ee[1]>Q[0]&&ee[1]<Q[3])){et.label=ee[1];break}if(6===ee[0]&&et.label<Q[1]){et.label=Q[1],Q=ee;break}if(Q&&et.label<Q[2]){et.label=Q[2],et.ops.push(ee);break}Q[2]&&et.ops.pop(),et.trys.pop();continue}ee=G.call(W,et)}catch(W){ee=[6,W],J=0}finally{H=Q=0}if(5&ee[0])throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}},Q=this&&this.__await||function(W){return this instanceof Q?(this.v=W,this):new Q(W)},ee=this&&this.__asyncGenerator||function(W,G,H){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var J,ee=H.apply(W,G||[]),et=[];return J={},eo("next"),eo("throw"),eo("return"),J[Symbol.asyncIterator]=function(){return this},J;function eo(W){ee[W]&&(J[W]=function(G){return new Promise(function(H,J){et.push([W,G,H,J])>1||ei(W,G)})})}function ei(W,G){try{ea(ee[W](G))}catch(W){ec(et[0][3],W)}}function ea(W){W.value instanceof Q?Promise.resolve(W.value.v).then(es,eu):ec(et[0][2],W)}function es(W){ei("next",W)}function eu(W){ei("throw",W)}function ec(W,G){W(G),et.shift(),et.length&&ei(et[0][0],et[0][1])}};Object.defineProperty(G,"__esModule",{value:!0}),G.isReadableStreamLike=G.readableStreamLikeToAsyncGenerator=void 0;var et=H(64870);function eo(W){return ee(this,arguments,function(){var G,H,ee;return J(this,function(J){switch(J.label){case 0:G=W.getReader(),J.label=1;case 1:J.trys.push([1,,9,10]),J.label=2;case 2:return[4,Q(G.read())];case 3:if(ee=(H=J.sent()).value,!H.done)return[3,5];return[4,Q(void 0)];case 4:return[2,J.sent()];case 5:return[4,Q(ee)];case 6:return[4,J.sent()];case 7:return J.sent(),[3,2];case 8:return[3,10];case 9:return G.releaseLock(),[7];case 10:return[2]}})})}function ei(W){return et.isFunction(null==W?void 0:W.getReader)}G.readableStreamLikeToAsyncGenerator=eo,G.isReadableStreamLike=ei},95460:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.isScheduler=void 0;var J=H(64870);function Q(W){return W&&J.isFunction(W.schedule)}G.isScheduler=Q},72896:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.operate=G.hasLift=void 0;var J=H(64870);function Q(W){return J.isFunction(null==W?void 0:W.lift)}function ee(W){return function(G){if(Q(G))return G.lift(function(G){try{return W(G,this)}catch(W){this.error(W)}});throw TypeError("Unable to lift unknown Observable type")}}G.hasLift=Q,G.operate=ee},14878:function(W,G,H){"use strict";var J=this&&this.__read||function(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et},Q=this&&this.__spreadArray||function(W,G){for(var H=0,J=G.length,Q=W.length;H<J;H++,Q++)W[Q]=G[H];return W};Object.defineProperty(G,"__esModule",{value:!0}),G.mapOneOrManyArgs=void 0;var ee=H(13946),et=Array.isArray;function eo(W,G){return et(G)?W.apply(void 0,Q([],J(G))):W(G)}function ei(W){return ee.map(function(G){return eo(W,G)})}G.mapOneOrManyArgs=ei},34842:function(W,G){"use strict";function H(){}Object.defineProperty(G,"__esModule",{value:!0}),G.noop=void 0,G.noop=H},87867:function(W,G){"use strict";function H(W,G){return function(H,J){return!W.call(G,H,J)}}Object.defineProperty(G,"__esModule",{value:!0}),G.not=void 0,G.not=H},75720:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.pipeFromArray=G.pipe=void 0;var J=H(54327);function Q(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];return ee(W)}function ee(W){return 0===W.length?J.identity:1===W.length?W[0]:function(G){return W.reduce(function(W,G){return G(W)},G)}}G.pipe=Q,G.pipeFromArray=ee},38553:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.reportUnhandledError=void 0;var J=H(7524),Q=H(7720);function ee(W){Q.timeoutProvider.setTimeout(function(){var G=J.config.onUnhandledError;if(G)G(W);else throw W})}G.reportUnhandledError=ee},70650:function(W,G){"use strict";function H(W){return TypeError("You provided "+(null!==W&&"object"==typeof W?"an invalid object":"'"+W+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}Object.defineProperty(G,"__esModule",{value:!0}),G.createInvalidObservableTypeError=void 0,G.createInvalidObservableTypeError=H},77732:function(W,G,H){"use strict";H.d(G,{X:function(){return Q}});var J=H(90701),Q=function(W){function G(G){var H=W.call(this)||this;return H._value=G,H}return(0,J.ZT)(G,W),Object.defineProperty(G.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),G.prototype._subscribe=function(G){var H=W.prototype._subscribe.call(this,G);return H.closed||G.next(this._value),H},G.prototype.getValue=function(){var W=this,G=W.hasError,H=W.thrownError,J=W._value;if(G)throw H;return this._throwIfClosed(),J},G.prototype.next=function(G){W.prototype.next.call(this,this._value=G)},G}(H(84374).x)},84374:function(W,G,H){"use strict";H.d(G,{x:function(){return ev}});var J=H(90701),Q=H(14661),ee=H(18343),et=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function eo(W){return W}function ei(W){return 0===W.length?eo:1===W.length?W[0]:function(G){return W.reduce(function(W,G){return G(W)},G)}}var ea=H(67193),es=H(66677),eu=H(67155),ec=function(){function W(W){W&&(this._subscribe=W)}return W.prototype.lift=function(G){var H=new W;return H.source=this,H.operator=G,H},W.prototype.subscribe=function(W,G,H){var J=this,ee=eh(W)?W:new Q.Hp(W,G,H);return(0,eu.x)(function(){var W=J,G=W.operator,H=W.source;ee.add(G?G.call(ee,H):H?J._subscribe(ee):J._trySubscribe(ee))}),ee},W.prototype._trySubscribe=function(W){try{return this._subscribe(W)}catch(G){W.error(G)}},W.prototype.forEach=function(W,G){var H=this;return new(G=ef(G))(function(G,J){var ee=new Q.Hp({next:function(G){try{W(G)}catch(W){J(W),ee.unsubscribe()}},error:J,complete:G});H.subscribe(ee)})},W.prototype._subscribe=function(W){var G;return null===(G=this.source)||void 0===G?void 0:G.subscribe(W)},W.prototype[et]=function(){return this},W.prototype.pipe=function(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];return ei(W)(this)},W.prototype.toPromise=function(W){var G=this;return new(W=ef(W))(function(W,H){var J;G.subscribe(function(W){return J=W},function(W){return H(W)},function(){return W(J)})})},W.create=function(G){return new W(G)},W}();function ef(W){var G;return null!==(G=null!=W?W:ea.v.Promise)&&void 0!==G?G:Promise}function ed(W){return W&&(0,es.m)(W.next)&&(0,es.m)(W.error)&&(0,es.m)(W.complete)}function eh(W){return W&&W instanceof Q.Lv||ed(W)&&(0,ee.Nn)(W)}var ep=(0,H(15420).d)(function(W){return function(){W(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ey=H(97475),ev=function(W){function G(){var G=W.call(this)||this;return G.closed=!1,G.currentObservers=null,G.observers=[],G.isStopped=!1,G.hasError=!1,G.thrownError=null,G}return(0,J.ZT)(G,W),G.prototype.lift=function(W){var G=new em(this,this);return G.operator=W,G},G.prototype._throwIfClosed=function(){if(this.closed)throw new ep},G.prototype.next=function(W){var G=this;(0,eu.x)(function(){var H,Q;if(G._throwIfClosed(),!G.isStopped){G.currentObservers||(G.currentObservers=Array.from(G.observers));try{for(var ee=(0,J.XA)(G.currentObservers),et=ee.next();!et.done;et=ee.next())et.value.next(W)}catch(W){H={error:W}}finally{try{et&&!et.done&&(Q=ee.return)&&Q.call(ee)}finally{if(H)throw H.error}}}})},G.prototype.error=function(W){var G=this;(0,eu.x)(function(){if(G._throwIfClosed(),!G.isStopped){G.hasError=G.isStopped=!0,G.thrownError=W;for(var H=G.observers;H.length;)H.shift().error(W)}})},G.prototype.complete=function(){var W=this;(0,eu.x)(function(){if(W._throwIfClosed(),!W.isStopped){W.isStopped=!0;for(var G=W.observers;G.length;)G.shift().complete()}})},G.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(G.prototype,"observed",{get:function(){var W;return(null===(W=this.observers)||void 0===W?void 0:W.length)>0},enumerable:!1,configurable:!0}),G.prototype._trySubscribe=function(G){return this._throwIfClosed(),W.prototype._trySubscribe.call(this,G)},G.prototype._subscribe=function(W){return this._throwIfClosed(),this._checkFinalizedStatuses(W),this._innerSubscribe(W)},G.prototype._innerSubscribe=function(W){var G=this,H=this,J=H.hasError,Q=H.isStopped,et=H.observers;return J||Q?ee.Lc:(this.currentObservers=null,et.push(W),new ee.w0(function(){G.currentObservers=null,(0,ey.P)(et,W)}))},G.prototype._checkFinalizedStatuses=function(W){var G=this,H=G.hasError,J=G.thrownError,Q=G.isStopped;H?W.error(J):Q&&W.complete()},G.prototype.asObservable=function(){var W=new ec;return W.source=this,W},G.create=function(W,G){return new em(W,G)},G}(ec),em=function(W){function G(G,H){var J=W.call(this)||this;return J.destination=G,J.source=H,J}return(0,J.ZT)(G,W),G.prototype.next=function(W){var G,H;null===(H=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===H||H.call(G,W)},G.prototype.error=function(W){var G,H;null===(H=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===H||H.call(G,W)},G.prototype.complete=function(){var W,G;null===(G=null===(W=this.destination)||void 0===W?void 0:W.complete)||void 0===G||G.call(W)},G.prototype._subscribe=function(W){var G,H;return null!==(H=null===(G=this.source)||void 0===G?void 0:G.subscribe(W))&&void 0!==H?H:ee.Lc},G}(ev)},14661:function(W,G,H){"use strict";H.d(G,{Hp:function(){return em},Lv:function(){return eh}});var J=H(90701),Q=H(66677),ee=H(18343),et=H(67193),eo={setTimeout:function(W,G){for(var H=[],Q=2;Q<arguments.length;Q++)H[Q-2]=arguments[Q];var ee=eo.delegate;return(null==ee?void 0:ee.setTimeout)?ee.setTimeout.apply(ee,(0,J.ev)([W,G],(0,J.CR)(H))):setTimeout.apply(void 0,(0,J.ev)([W,G],(0,J.CR)(H)))},clearTimeout:function(W){var G=eo.delegate;return((null==G?void 0:G.clearTimeout)||clearTimeout)(W)},delegate:void 0};function ei(W){eo.setTimeout(function(){var G=et.v.onUnhandledError;if(G)G(W);else throw W})}function ea(){}var es=function(){return ef("C",void 0,void 0)}();function eu(W){return ef("E",void 0,W)}function ec(W){return ef("N",W,void 0)}function ef(W,G,H){return{kind:W,value:G,error:H}}var ed=H(67155),eh=function(W){function G(G){var H=W.call(this)||this;return H.isStopped=!1,G?(H.destination=G,(0,ee.Nn)(G)&&G.add(H)):H.destination=ew,H}return(0,J.ZT)(G,W),G.create=function(W,G,H){return new em(W,G,H)},G.prototype.next=function(W){this.isStopped?eb(ec(W),this):this._next(W)},G.prototype.error=function(W){this.isStopped?eb(eu(W),this):(this.isStopped=!0,this._error(W))},G.prototype.complete=function(){this.isStopped?eb(es,this):(this.isStopped=!0,this._complete())},G.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,W.prototype.unsubscribe.call(this),this.destination=null)},G.prototype._next=function(W){this.destination.next(W)},G.prototype._error=function(W){try{this.destination.error(W)}finally{this.unsubscribe()}},G.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},G}(ee.w0),ep=Function.prototype.bind;function ey(W,G){return ep.call(W,G)}var ev=function(){function W(W){this.partialObserver=W}return W.prototype.next=function(W){var G=this.partialObserver;if(G.next)try{G.next(W)}catch(W){eg(W)}},W.prototype.error=function(W){var G=this.partialObserver;if(G.error)try{G.error(W)}catch(W){eg(W)}else eg(W)},W.prototype.complete=function(){var W=this.partialObserver;if(W.complete)try{W.complete()}catch(W){eg(W)}},W}(),em=function(W){function G(G,H,J){var ee,eo,ei=W.call(this)||this;return(0,Q.m)(G)||!G?ee={next:null!=G?G:void 0,error:null!=H?H:void 0,complete:null!=J?J:void 0}:ei&&et.v.useDeprecatedNextContext?((eo=Object.create(G)).unsubscribe=function(){return ei.unsubscribe()},ee={next:G.next&&ey(G.next,eo),error:G.error&&ey(G.error,eo),complete:G.complete&&ey(G.complete,eo)}):ee=G,ei.destination=new ev(ee),ei}return(0,J.ZT)(G,W),G}(eh);function eg(W){et.v.useDeprecatedSynchronousErrorHandling?(0,ed.O)(W):ei(W)}function eb(W,G){var H=et.v.onStoppedNotification;H&&eo.setTimeout(function(){return H(W,G)})}var ew={closed:!0,next:ea,error:function(W){throw W},complete:ea}},18343:function(W,G,H){"use strict";H.d(G,{Lc:function(){return ei},w0:function(){return eo},Nn:function(){return ea}});var J=H(90701),Q=H(66677),ee=(0,H(15420).d)(function(W){return function(G){W(this),this.message=G?G.length+" errors occurred during unsubscription:\n"+G.map(function(W,G){return G+1+") "+W.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=G}}),et=H(97475),eo=function(){function W(W){this.initialTeardown=W,this.closed=!1,this._parentage=null,this._finalizers=null}return W.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var W,G,H,et,eo,ei=this._parentage;if(ei){if(this._parentage=null,Array.isArray(ei))try{for(var ea=(0,J.XA)(ei),eu=ea.next();!eu.done;eu=ea.next())eu.value.remove(this)}catch(G){W={error:G}}finally{try{eu&&!eu.done&&(G=ea.return)&&G.call(ea)}finally{if(W)throw W.error}}else ei.remove(this)}var ec=this.initialTeardown;if((0,Q.m)(ec))try{ec()}catch(W){eo=W instanceof ee?W.errors:[W]}var ef=this._finalizers;if(ef){this._finalizers=null;try{for(var ed=(0,J.XA)(ef),eh=ed.next();!eh.done;eh=ed.next()){var ep=eh.value;try{es(ep)}catch(W){eo=null!=eo?eo:[],W instanceof ee?eo=(0,J.ev)((0,J.ev)([],(0,J.CR)(eo)),(0,J.CR)(W.errors)):eo.push(W)}}}catch(W){H={error:W}}finally{try{eh&&!eh.done&&(et=ed.return)&&et.call(ed)}finally{if(H)throw H.error}}}if(eo)throw new ee(eo)}},W.prototype.add=function(G){var H;if(G&&G!==this){if(this.closed)es(G);else{if(G instanceof W){if(G.closed||G._hasParent(this))return;G._addParent(this)}(this._finalizers=null!==(H=this._finalizers)&&void 0!==H?H:[]).push(G)}}},W.prototype._hasParent=function(W){var G=this._parentage;return G===W||Array.isArray(G)&&G.includes(W)},W.prototype._addParent=function(W){var G=this._parentage;this._parentage=Array.isArray(G)?(G.push(W),G):G?[G,W]:W},W.prototype._removeParent=function(W){var G=this._parentage;G===W?this._parentage=null:Array.isArray(G)&&(0,et.P)(G,W)},W.prototype.remove=function(G){var H=this._finalizers;H&&(0,et.P)(H,G),G instanceof W&&G._removeParent(this)},W.EMPTY=function(){var G=new W;return G.closed=!0,G}(),W}(),ei=eo.EMPTY;function ea(W){return W instanceof eo||W&&"closed"in W&&(0,Q.m)(W.remove)&&(0,Q.m)(W.add)&&(0,Q.m)(W.unsubscribe)}function es(W){(0,Q.m)(W)?W():W.unsubscribe()}},67193:function(W,G,H){"use strict";H.d(G,{v:function(){return J}});var J={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},51602:function(W,G,H){"use strict";H.d(G,{R:function(){return es}});var J=H(66677);function Q(W){return(0,J.m)(null==W?void 0:W.lift)}function ee(W){return function(G){if(Q(G))return G.lift(function(G){try{return W(G,this)}catch(W){this.error(W)}});throw TypeError("Unable to lift unknown Observable type")}}var et=H(90701);function eo(W,G,H,J,Q){return new ei(W,G,H,J,Q)}var ei=function(W){function G(G,H,J,Q,ee,et){var eo=W.call(this,G)||this;return eo.onFinalize=ee,eo.shouldUnsubscribe=et,eo._next=H?function(W){try{H(W)}catch(W){G.error(W)}}:W.prototype._next,eo._error=Q?function(W){try{Q(W)}catch(W){G.error(W)}finally{this.unsubscribe()}}:W.prototype._error,eo._complete=J?function(){try{J()}catch(W){G.error(W)}finally{this.unsubscribe()}}:W.prototype._complete,eo}return(0,et.ZT)(G,W),G.prototype.unsubscribe=function(){var G;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var H=this.closed;W.prototype.unsubscribe.call(this),H||null===(G=this.onFinalize)||void 0===G||G.call(this)}},G}(H(14661).Lv);function ea(W,G,H,J,Q){return function(ee,et){var ei=H,ea=G,es=0;ee.subscribe(eo(et,function(G){var H=es++;ea=ei?W(ea,G,H):(ei=!0,G),J&&et.next(ea)},Q&&function(){ei&&et.next(ea),et.complete()}))}}function es(W,G){return ee(ea(W,G,arguments.length>=2,!0))}},97475:function(W,G,H){"use strict";function J(W,G){if(W){var H=W.indexOf(G);0<=H&&W.splice(H,1)}}H.d(G,{P:function(){return J}})},15420:function(W,G,H){"use strict";function J(W){var G=W(function(W){Error.call(W),W.stack=Error().stack});return G.prototype=Object.create(Error.prototype),G.prototype.constructor=G,G}H.d(G,{d:function(){return J}})},67155:function(W,G,H){"use strict";H.d(G,{O:function(){return et},x:function(){return ee}});var J=H(67193),Q=null;function ee(W){if(J.v.useDeprecatedSynchronousErrorHandling){var G=!Q;if(G&&(Q={errorThrown:!1,error:null}),W(),G){var H=Q,ee=H.errorThrown,et=H.error;if(Q=null,ee)throw et}}else W()}function et(W){J.v.useDeprecatedSynchronousErrorHandling&&Q&&(Q.errorThrown=!0,Q.error=W)}},66677:function(W,G,H){"use strict";function J(W){return"function"==typeof W}H.d(G,{m:function(){return J}})},40413:function(W,G,H){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var J=H(80854),Q=J.Buffer;function ee(W,G){for(var H in W)G[H]=W[H]}function et(W,G,H){return Q(W,G,H)}Q.from&&Q.alloc&&Q.allocUnsafe&&Q.allocUnsafeSlow?W.exports=J:(ee(J,G),G.Buffer=et),et.prototype=Object.create(Q.prototype),ee(Q,et),et.from=function(W,G,H){if("number"==typeof W)throw TypeError("Argument must not be a number");return Q(W,G,H)},et.alloc=function(W,G,H){if("number"!=typeof W)throw TypeError("Argument must be a number");var J=Q(W);return void 0!==G?"string"==typeof H?J.fill(G,H):J.fill(G):J.fill(0),J},et.allocUnsafe=function(W){if("number"!=typeof W)throw TypeError("Argument must be a number");return Q(W)},et.allocUnsafeSlow=function(W){if("number"!=typeof W)throw TypeError("Argument must be a number");return J.SlowBuffer(W)}},84398:function(W){"use strict";function G(W,G){return W.__proto__=G,W}function H(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(W,H)||(W[H]=G[H]);return W}W.exports=Object.setPrototypeOf||(({__proto__:[]})instanceof Array?G:H)},79232:function(W,G,H){var J=H(80854).Buffer;!function(){var G=H(44507),Q=H(61995).utf8,ee=H(61995).bin,et=function(W){W.constructor==String?W=Q.stringToBytes(W):void 0!==J&&"function"==typeof J.isBuffer&&J.isBuffer(W)?W=Array.prototype.slice.call(W,0):Array.isArray(W)||(W=W.toString());var H=G.bytesToWords(W),ee=8*W.length,et=[],eo=1732584193,ei=-271733879,ea=-1732584194,es=271733878,eu=-1009589776;H[ee>>5]|=128<<24-ee%32,H[(ee+64>>>9<<4)+15]=ee;for(var ec=0;ec<H.length;ec+=16){for(var ef=eo,ed=ei,eh=ea,ep=es,ey=eu,ev=0;ev<80;ev++){if(ev<16)et[ev]=H[ec+ev];else{var em=et[ev-3]^et[ev-8]^et[ev-14]^et[ev-16];et[ev]=em<<1|em>>>31}var eg=(eo<<5|eo>>>27)+eu+(et[ev]>>>0)+(ev<20?(ei&ea|~ei&es)+1518500249:ev<40?(ei^ea^es)+1859775393:ev<60?(ei&ea|ei&es|ea&es)-1894007588:(ei^ea^es)-899497514);eu=es,es=ea,ea=ei<<30|ei>>>2,ei=eo,eo=eg}eo+=ef,ei+=ed,ea+=eh,es+=ep,eu+=ey}return[eo,ei,ea,es,eu]},eo=function(W,H){var J=G.wordsToBytes(et(W));return H&&H.asBytes?J:H&&H.asString?ee.bytesToString(J):G.bytesToHex(J)};eo._blocksize=16,eo._digestsize=20,W.exports=eo}()},31770:function(W){"use strict";W.exports=(W,G)=>{if(!("string"==typeof W&&"string"==typeof G))throw TypeError("Expected the arguments to be of type `string`");if(""===G)return[W];let H=W.indexOf(G);return -1===H?[W]:[W.slice(0,H),W.slice(H+G.length)]}},74626:function(W,G,H){"use strict";/*!
 * statuses
 * Copyright(c) 2014 Jonathan Ong
 * Copyright(c) 2016 Douglas Christopher Wilson
 * MIT Licensed
 */var J=H(1546);function Q(W,G){var H=[];return Object.keys(G).forEach(function(J){var Q=G[J],ee=Number(J);W[ee]=Q,W[Q]=ee,W[Q.toLowerCase()]=ee,H.push(ee)}),H}function ee(W){if("number"==typeof W){if(!ee[W])throw Error("invalid status code: "+W);return W}if("string"!=typeof W)throw TypeError("code must be a number or string");var G=parseInt(W,10);if(!isNaN(G)){if(!ee[G])throw Error("invalid status code: "+G);return G}if(!(G=ee[W.toLowerCase()]))throw Error('invalid status message: "'+W+'"');return G}W.exports=ee,ee.STATUS_CODES=J,ee.codes=Q(ee,J),ee.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},ee.empty={204:!0,205:!0,304:!0},ee.retry={502:!0,503:!0,504:!0}},55517:function(W){"use strict";W.exports=W=>encodeURIComponent(W).replace(/[!'()*]/g,W=>`%${W.charCodeAt(0).toString(16).toUpperCase()}`)},57966:function(W){W.exports=function(){var W=document.getSelection();if(!W.rangeCount)return function(){};for(var G=document.activeElement,H=[],J=0;J<W.rangeCount;J++)H.push(W.getRangeAt(J));switch(G.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":G.blur();break;default:G=null}return W.removeAllRanges(),function(){"Caret"===W.type&&W.removeAllRanges(),W.rangeCount||H.forEach(function(G){W.addRange(G)}),G&&G.focus()}}},62454:function(W){"use strict";function G(W){return W.split(" ").map(function(W){return W.slice(0,1).toUpperCase()+W.slice(1)}).join("").replace(/[^ _0-9a-z]/gi,"")}/*!
 * toidentifier
 * Copyright(c) 2016 Douglas Christopher Wilson
 * MIT Licensed
 */W.exports=G},6005:function(W,G,H){!function(W){"use strict";var G=function(W){var G,H=new Float64Array(16);if(W)for(G=0;G<W.length;G++)H[G]=W[G];return H},J=function(){throw Error("no PRNG")},Q=new Uint8Array(16),ee=new Uint8Array(32);ee[0]=9;var et=G(),eo=G([1]),ei=G([56129,1]),ea=G([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),es=G([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),eu=G([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),ec=G([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),ef=G([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function ed(W,G,H,J){W[G]=H>>24&255,W[G+1]=H>>16&255,W[G+2]=H>>8&255,W[G+3]=255&H,W[G+4]=J>>24&255,W[G+5]=J>>16&255,W[G+6]=J>>8&255,W[G+7]=255&J}function eh(W,G,H,J,Q){var ee,et=0;for(ee=0;ee<Q;ee++)et|=W[G+ee]^H[J+ee];return(1&et-1>>>8)-1}function ep(W,G,H,J){return eh(W,G,H,J,16)}function ey(W,G,H,J){return eh(W,G,H,J,32)}function ev(W,G,H,J){for(var Q,ee=255&J[0]|(255&J[1])<<8|(255&J[2])<<16|(255&J[3])<<24,et=255&H[0]|(255&H[1])<<8|(255&H[2])<<16|(255&H[3])<<24,eo=255&H[4]|(255&H[5])<<8|(255&H[6])<<16|(255&H[7])<<24,ei=255&H[8]|(255&H[9])<<8|(255&H[10])<<16|(255&H[11])<<24,ea=255&H[12]|(255&H[13])<<8|(255&H[14])<<16|(255&H[15])<<24,es=255&J[4]|(255&J[5])<<8|(255&J[6])<<16|(255&J[7])<<24,eu=255&G[0]|(255&G[1])<<8|(255&G[2])<<16|(255&G[3])<<24,ec=255&G[4]|(255&G[5])<<8|(255&G[6])<<16|(255&G[7])<<24,ef=255&G[8]|(255&G[9])<<8|(255&G[10])<<16|(255&G[11])<<24,ed=255&G[12]|(255&G[13])<<8|(255&G[14])<<16|(255&G[15])<<24,eh=255&J[8]|(255&J[9])<<8|(255&J[10])<<16|(255&J[11])<<24,ep=255&H[16]|(255&H[17])<<8|(255&H[18])<<16|(255&H[19])<<24,ey=255&H[20]|(255&H[21])<<8|(255&H[22])<<16|(255&H[23])<<24,ev=255&H[24]|(255&H[25])<<8|(255&H[26])<<16|(255&H[27])<<24,em=255&H[28]|(255&H[29])<<8|(255&H[30])<<16|(255&H[31])<<24,eg=255&J[12]|(255&J[13])<<8|(255&J[14])<<16|(255&J[15])<<24,eb=ee,ew=et,e_=eo,eS=ei,eE=ea,eO=es,eA=eu,eP=ec,eM=ef,ej=ed,eT=eh,ex=ep,eI=ey,eC=ev,eN=em,ek=eg,eR=0;eR<20;eR+=2)eE^=(Q=eb+eI|0)<<7|Q>>>25,eM^=(Q=eE+eb|0)<<9|Q>>>23,eI^=(Q=eM+eE|0)<<13|Q>>>19,eb^=(Q=eI+eM|0)<<18|Q>>>14,ej^=(Q=eO+ew|0)<<7|Q>>>25,eC^=(Q=ej+eO|0)<<9|Q>>>23,ew^=(Q=eC+ej|0)<<13|Q>>>19,eO^=(Q=ew+eC|0)<<18|Q>>>14,eN^=(Q=eT+eA|0)<<7|Q>>>25,e_^=(Q=eN+eT|0)<<9|Q>>>23,eA^=(Q=e_+eN|0)<<13|Q>>>19,eT^=(Q=eA+e_|0)<<18|Q>>>14,eS^=(Q=ek+ex|0)<<7|Q>>>25,eP^=(Q=eS+ek|0)<<9|Q>>>23,ex^=(Q=eP+eS|0)<<13|Q>>>19,ek^=(Q=ex+eP|0)<<18|Q>>>14,ew^=(Q=eb+eS|0)<<7|Q>>>25,e_^=(Q=ew+eb|0)<<9|Q>>>23,eS^=(Q=e_+ew|0)<<13|Q>>>19,eb^=(Q=eS+e_|0)<<18|Q>>>14,eA^=(Q=eO+eE|0)<<7|Q>>>25,eP^=(Q=eA+eO|0)<<9|Q>>>23,eE^=(Q=eP+eA|0)<<13|Q>>>19,eO^=(Q=eE+eP|0)<<18|Q>>>14,ex^=(Q=eT+ej|0)<<7|Q>>>25,eM^=(Q=ex+eT|0)<<9|Q>>>23,ej^=(Q=eM+ex|0)<<13|Q>>>19,eT^=(Q=ej+eM|0)<<18|Q>>>14,eI^=(Q=ek+eN|0)<<7|Q>>>25,eC^=(Q=eI+ek|0)<<9|Q>>>23,eN^=(Q=eC+eI|0)<<13|Q>>>19,ek^=(Q=eN+eC|0)<<18|Q>>>14;eb=eb+ee|0,ew=ew+et|0,e_=e_+eo|0,eS=eS+ei|0,eE=eE+ea|0,eO=eO+es|0,eA=eA+eu|0,eP=eP+ec|0,eM=eM+ef|0,ej=ej+ed|0,eT=eT+eh|0,ex=ex+ep|0,eI=eI+ey|0,eC=eC+ev|0,eN=eN+em|0,ek=ek+eg|0,W[0]=eb>>>0&255,W[1]=eb>>>8&255,W[2]=eb>>>16&255,W[3]=eb>>>24&255,W[4]=ew>>>0&255,W[5]=ew>>>8&255,W[6]=ew>>>16&255,W[7]=ew>>>24&255,W[8]=e_>>>0&255,W[9]=e_>>>8&255,W[10]=e_>>>16&255,W[11]=e_>>>24&255,W[12]=eS>>>0&255,W[13]=eS>>>8&255,W[14]=eS>>>16&255,W[15]=eS>>>24&255,W[16]=eE>>>0&255,W[17]=eE>>>8&255,W[18]=eE>>>16&255,W[19]=eE>>>24&255,W[20]=eO>>>0&255,W[21]=eO>>>8&255,W[22]=eO>>>16&255,W[23]=eO>>>24&255,W[24]=eA>>>0&255,W[25]=eA>>>8&255,W[26]=eA>>>16&255,W[27]=eA>>>24&255,W[28]=eP>>>0&255,W[29]=eP>>>8&255,W[30]=eP>>>16&255,W[31]=eP>>>24&255,W[32]=eM>>>0&255,W[33]=eM>>>8&255,W[34]=eM>>>16&255,W[35]=eM>>>24&255,W[36]=ej>>>0&255,W[37]=ej>>>8&255,W[38]=ej>>>16&255,W[39]=ej>>>24&255,W[40]=eT>>>0&255,W[41]=eT>>>8&255,W[42]=eT>>>16&255,W[43]=eT>>>24&255,W[44]=ex>>>0&255,W[45]=ex>>>8&255,W[46]=ex>>>16&255,W[47]=ex>>>24&255,W[48]=eI>>>0&255,W[49]=eI>>>8&255,W[50]=eI>>>16&255,W[51]=eI>>>24&255,W[52]=eC>>>0&255,W[53]=eC>>>8&255,W[54]=eC>>>16&255,W[55]=eC>>>24&255,W[56]=eN>>>0&255,W[57]=eN>>>8&255,W[58]=eN>>>16&255,W[59]=eN>>>24&255,W[60]=ek>>>0&255,W[61]=ek>>>8&255,W[62]=ek>>>16&255,W[63]=ek>>>24&255}function em(W,G,H,J){for(var Q,ee=255&J[0]|(255&J[1])<<8|(255&J[2])<<16|(255&J[3])<<24,et=255&H[0]|(255&H[1])<<8|(255&H[2])<<16|(255&H[3])<<24,eo=255&H[4]|(255&H[5])<<8|(255&H[6])<<16|(255&H[7])<<24,ei=255&H[8]|(255&H[9])<<8|(255&H[10])<<16|(255&H[11])<<24,ea=255&H[12]|(255&H[13])<<8|(255&H[14])<<16|(255&H[15])<<24,es=255&J[4]|(255&J[5])<<8|(255&J[6])<<16|(255&J[7])<<24,eu=255&G[0]|(255&G[1])<<8|(255&G[2])<<16|(255&G[3])<<24,ec=255&G[4]|(255&G[5])<<8|(255&G[6])<<16|(255&G[7])<<24,ef=255&G[8]|(255&G[9])<<8|(255&G[10])<<16|(255&G[11])<<24,ed=255&G[12]|(255&G[13])<<8|(255&G[14])<<16|(255&G[15])<<24,eh=255&J[8]|(255&J[9])<<8|(255&J[10])<<16|(255&J[11])<<24,ep=255&H[16]|(255&H[17])<<8|(255&H[18])<<16|(255&H[19])<<24,ey=255&H[20]|(255&H[21])<<8|(255&H[22])<<16|(255&H[23])<<24,ev=255&H[24]|(255&H[25])<<8|(255&H[26])<<16|(255&H[27])<<24,em=255&H[28]|(255&H[29])<<8|(255&H[30])<<16|(255&H[31])<<24,eg=255&J[12]|(255&J[13])<<8|(255&J[14])<<16|(255&J[15])<<24,eb=ee,ew=et,e_=eo,eS=ei,eE=ea,eO=es,eA=eu,eP=ec,eM=ef,ej=ed,eT=eh,ex=ep,eI=ey,eC=ev,eN=em,ek=eg,eR=0;eR<20;eR+=2)eE^=(Q=eb+eI|0)<<7|Q>>>25,eM^=(Q=eE+eb|0)<<9|Q>>>23,eI^=(Q=eM+eE|0)<<13|Q>>>19,eb^=(Q=eI+eM|0)<<18|Q>>>14,ej^=(Q=eO+ew|0)<<7|Q>>>25,eC^=(Q=ej+eO|0)<<9|Q>>>23,ew^=(Q=eC+ej|0)<<13|Q>>>19,eO^=(Q=ew+eC|0)<<18|Q>>>14,eN^=(Q=eT+eA|0)<<7|Q>>>25,e_^=(Q=eN+eT|0)<<9|Q>>>23,eA^=(Q=e_+eN|0)<<13|Q>>>19,eT^=(Q=eA+e_|0)<<18|Q>>>14,eS^=(Q=ek+ex|0)<<7|Q>>>25,eP^=(Q=eS+ek|0)<<9|Q>>>23,ex^=(Q=eP+eS|0)<<13|Q>>>19,ek^=(Q=ex+eP|0)<<18|Q>>>14,ew^=(Q=eb+eS|0)<<7|Q>>>25,e_^=(Q=ew+eb|0)<<9|Q>>>23,eS^=(Q=e_+ew|0)<<13|Q>>>19,eb^=(Q=eS+e_|0)<<18|Q>>>14,eA^=(Q=eO+eE|0)<<7|Q>>>25,eP^=(Q=eA+eO|0)<<9|Q>>>23,eE^=(Q=eP+eA|0)<<13|Q>>>19,eO^=(Q=eE+eP|0)<<18|Q>>>14,ex^=(Q=eT+ej|0)<<7|Q>>>25,eM^=(Q=ex+eT|0)<<9|Q>>>23,ej^=(Q=eM+ex|0)<<13|Q>>>19,eT^=(Q=ej+eM|0)<<18|Q>>>14,eI^=(Q=ek+eN|0)<<7|Q>>>25,eC^=(Q=eI+ek|0)<<9|Q>>>23,eN^=(Q=eC+eI|0)<<13|Q>>>19,ek^=(Q=eN+eC|0)<<18|Q>>>14;W[0]=eb>>>0&255,W[1]=eb>>>8&255,W[2]=eb>>>16&255,W[3]=eb>>>24&255,W[4]=eO>>>0&255,W[5]=eO>>>8&255,W[6]=eO>>>16&255,W[7]=eO>>>24&255,W[8]=eT>>>0&255,W[9]=eT>>>8&255,W[10]=eT>>>16&255,W[11]=eT>>>24&255,W[12]=ek>>>0&255,W[13]=ek>>>8&255,W[14]=ek>>>16&255,W[15]=ek>>>24&255,W[16]=eA>>>0&255,W[17]=eA>>>8&255,W[18]=eA>>>16&255,W[19]=eA>>>24&255,W[20]=eP>>>0&255,W[21]=eP>>>8&255,W[22]=eP>>>16&255,W[23]=eP>>>24&255,W[24]=eM>>>0&255,W[25]=eM>>>8&255,W[26]=eM>>>16&255,W[27]=eM>>>24&255,W[28]=ej>>>0&255,W[29]=ej>>>8&255,W[30]=ej>>>16&255,W[31]=ej>>>24&255}function eg(W,G,H,J){ev(W,G,H,J)}function eb(W,G,H,J){em(W,G,H,J)}var ew=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function e_(W,G,H,J,Q,ee,et){var eo,ei,ea=new Uint8Array(16),es=new Uint8Array(64);for(ei=0;ei<16;ei++)ea[ei]=0;for(ei=0;ei<8;ei++)ea[ei]=ee[ei];for(;Q>=64;){for(eg(es,ea,et,ew),ei=0;ei<64;ei++)W[G+ei]=H[J+ei]^es[ei];for(ei=8,eo=1;ei<16;ei++)eo=eo+(255&ea[ei])|0,ea[ei]=255&eo,eo>>>=8;Q-=64,G+=64,J+=64}if(Q>0)for(eg(es,ea,et,ew),ei=0;ei<Q;ei++)W[G+ei]=H[J+ei]^es[ei];return 0}function eS(W,G,H,J,Q){var ee,et,eo=new Uint8Array(16),ei=new Uint8Array(64);for(et=0;et<16;et++)eo[et]=0;for(et=0;et<8;et++)eo[et]=J[et];for(;H>=64;){for(eg(ei,eo,Q,ew),et=0;et<64;et++)W[G+et]=ei[et];for(et=8,ee=1;et<16;et++)ee=ee+(255&eo[et])|0,eo[et]=255&ee,ee>>>=8;H-=64,G+=64}if(H>0)for(eg(ei,eo,Q,ew),et=0;et<H;et++)W[G+et]=ei[et];return 0}function eE(W,G,H,J,Q){var ee=new Uint8Array(32);eb(ee,J,Q,ew);for(var et=new Uint8Array(8),eo=0;eo<8;eo++)et[eo]=J[eo+16];return eS(W,G,H,et,ee)}function eO(W,G,H,J,Q,ee,et){var eo=new Uint8Array(32);eb(eo,ee,et,ew);for(var ei=new Uint8Array(8),ea=0;ea<8;ea++)ei[ea]=ee[ea+16];return e_(W,G,H,J,Q,ei,eo)}var eA=function(W){var G,H,J,Q,ee,et,eo,ei;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,G=255&W[0]|(255&W[1])<<8,this.r[0]=8191&G,H=255&W[2]|(255&W[3])<<8,this.r[1]=(G>>>13|H<<3)&8191,J=255&W[4]|(255&W[5])<<8,this.r[2]=(H>>>10|J<<6)&7939,Q=255&W[6]|(255&W[7])<<8,this.r[3]=(J>>>7|Q<<9)&8191,ee=255&W[8]|(255&W[9])<<8,this.r[4]=(Q>>>4|ee<<12)&255,this.r[5]=ee>>>1&8190,et=255&W[10]|(255&W[11])<<8,this.r[6]=(ee>>>14|et<<2)&8191,eo=255&W[12]|(255&W[13])<<8,this.r[7]=(et>>>11|eo<<5)&8065,ei=255&W[14]|(255&W[15])<<8,this.r[8]=(eo>>>8|ei<<8)&8191,this.r[9]=ei>>>5&127,this.pad[0]=255&W[16]|(255&W[17])<<8,this.pad[1]=255&W[18]|(255&W[19])<<8,this.pad[2]=255&W[20]|(255&W[21])<<8,this.pad[3]=255&W[22]|(255&W[23])<<8,this.pad[4]=255&W[24]|(255&W[25])<<8,this.pad[5]=255&W[26]|(255&W[27])<<8,this.pad[6]=255&W[28]|(255&W[29])<<8,this.pad[7]=255&W[30]|(255&W[31])<<8};function eP(W,G,H,J,Q,ee){var et=new eA(ee);return et.update(H,J,Q),et.finish(W,G),0}function eM(W,G,H,J,Q,ee){var et=new Uint8Array(16);return eP(et,0,H,J,Q,ee),ep(W,G,et,0)}function ej(W,G,H,J,Q){var ee;if(H<32)return -1;for(eO(W,0,G,0,H,J,Q),eP(W,16,W,32,H-32,W),ee=0;ee<16;ee++)W[ee]=0;return 0}function eT(W,G,H,J,Q){var ee,et=new Uint8Array(32);if(H<32||(eE(et,0,32,J,Q),0!==eM(G,16,G,32,H-32,et)))return -1;for(eO(W,0,G,0,H,J,Q),ee=0;ee<32;ee++)W[ee]=0;return 0}function ex(W,G){var H;for(H=0;H<16;H++)W[H]=0|G[H]}function eI(W){var G,H,J=1;for(G=0;G<16;G++)J=Math.floor((H=W[G]+J+65535)/65536),W[G]=H-65536*J;W[0]+=J-1+37*(J-1)}function eC(W,G,H){for(var J,Q=~(H-1),ee=0;ee<16;ee++)J=Q&(W[ee]^G[ee]),W[ee]^=J,G[ee]^=J}function eN(W,H){var J,Q,ee,et=G(),eo=G();for(J=0;J<16;J++)eo[J]=H[J];for(eI(eo),eI(eo),eI(eo),Q=0;Q<2;Q++){for(J=1,et[0]=eo[0]-65517;J<15;J++)et[J]=eo[J]-65535-(et[J-1]>>16&1),et[J-1]&=65535;et[15]=eo[15]-32767-(et[14]>>16&1),ee=et[15]>>16&1,et[14]&=65535,eC(eo,et,1-ee)}for(J=0;J<16;J++)W[2*J]=255&eo[J],W[2*J+1]=eo[J]>>8}function ek(W,G){var H=new Uint8Array(32),J=new Uint8Array(32);return eN(H,W),eN(J,G),ey(H,0,J,0)}function eR(W){var G=new Uint8Array(32);return eN(G,W),1&G[0]}function eD(W,G){var H;for(H=0;H<16;H++)W[H]=G[2*H]+(G[2*H+1]<<8);W[15]&=32767}function eL(W,G,H){for(var J=0;J<16;J++)W[J]=G[J]+H[J]}function eU(W,G,H){for(var J=0;J<16;J++)W[J]=G[J]-H[J]}function eF(W,G,H){var J,Q,ee=0,et=0,eo=0,ei=0,ea=0,es=0,eu=0,ec=0,ef=0,ed=0,eh=0,ep=0,ey=0,ev=0,em=0,eg=0,eb=0,ew=0,e_=0,eS=0,eE=0,eO=0,eA=0,eP=0,eM=0,ej=0,eT=0,ex=0,eI=0,eC=0,eN=0,ek=H[0],eR=H[1],eD=H[2],eL=H[3],eU=H[4],eF=H[5],e$=H[6],eB=H[7],eK=H[8],eW=H[9],ez=H[10],eG=H[11],eq=H[12],eH=H[13],eV=H[14],eJ=H[15];ee+=(J=G[0])*ek,et+=J*eR,eo+=J*eD,ei+=J*eL,ea+=J*eU,es+=J*eF,eu+=J*e$,ec+=J*eB,ef+=J*eK,ed+=J*eW,eh+=J*ez,ep+=J*eG,ey+=J*eq,ev+=J*eH,em+=J*eV,eg+=J*eJ,et+=(J=G[1])*ek,eo+=J*eR,ei+=J*eD,ea+=J*eL,es+=J*eU,eu+=J*eF,ec+=J*e$,ef+=J*eB,ed+=J*eK,eh+=J*eW,ep+=J*ez,ey+=J*eG,ev+=J*eq,em+=J*eH,eg+=J*eV,eb+=J*eJ,eo+=(J=G[2])*ek,ei+=J*eR,ea+=J*eD,es+=J*eL,eu+=J*eU,ec+=J*eF,ef+=J*e$,ed+=J*eB,eh+=J*eK,ep+=J*eW,ey+=J*ez,ev+=J*eG,em+=J*eq,eg+=J*eH,eb+=J*eV,ew+=J*eJ,ei+=(J=G[3])*ek,ea+=J*eR,es+=J*eD,eu+=J*eL,ec+=J*eU,ef+=J*eF,ed+=J*e$,eh+=J*eB,ep+=J*eK,ey+=J*eW,ev+=J*ez,em+=J*eG,eg+=J*eq,eb+=J*eH,ew+=J*eV,e_+=J*eJ,ea+=(J=G[4])*ek,es+=J*eR,eu+=J*eD,ec+=J*eL,ef+=J*eU,ed+=J*eF,eh+=J*e$,ep+=J*eB,ey+=J*eK,ev+=J*eW,em+=J*ez,eg+=J*eG,eb+=J*eq,ew+=J*eH,e_+=J*eV,eS+=J*eJ,es+=(J=G[5])*ek,eu+=J*eR,ec+=J*eD,ef+=J*eL,ed+=J*eU,eh+=J*eF,ep+=J*e$,ey+=J*eB,ev+=J*eK,em+=J*eW,eg+=J*ez,eb+=J*eG,ew+=J*eq,e_+=J*eH,eS+=J*eV,eE+=J*eJ,eu+=(J=G[6])*ek,ec+=J*eR,ef+=J*eD,ed+=J*eL,eh+=J*eU,ep+=J*eF,ey+=J*e$,ev+=J*eB,em+=J*eK,eg+=J*eW,eb+=J*ez,ew+=J*eG,e_+=J*eq,eS+=J*eH,eE+=J*eV,eO+=J*eJ,ec+=(J=G[7])*ek,ef+=J*eR,ed+=J*eD,eh+=J*eL,ep+=J*eU,ey+=J*eF,ev+=J*e$,em+=J*eB,eg+=J*eK,eb+=J*eW,ew+=J*ez,e_+=J*eG,eS+=J*eq,eE+=J*eH,eO+=J*eV,eA+=J*eJ,ef+=(J=G[8])*ek,ed+=J*eR,eh+=J*eD,ep+=J*eL,ey+=J*eU,ev+=J*eF,em+=J*e$,eg+=J*eB,eb+=J*eK,ew+=J*eW,e_+=J*ez,eS+=J*eG,eE+=J*eq,eO+=J*eH,eA+=J*eV,eP+=J*eJ,ed+=(J=G[9])*ek,eh+=J*eR,ep+=J*eD,ey+=J*eL,ev+=J*eU,em+=J*eF,eg+=J*e$,eb+=J*eB,ew+=J*eK,e_+=J*eW,eS+=J*ez,eE+=J*eG,eO+=J*eq,eA+=J*eH,eP+=J*eV,eM+=J*eJ,eh+=(J=G[10])*ek,ep+=J*eR,ey+=J*eD,ev+=J*eL,em+=J*eU,eg+=J*eF,eb+=J*e$,ew+=J*eB,e_+=J*eK,eS+=J*eW,eE+=J*ez,eO+=J*eG,eA+=J*eq,eP+=J*eH,eM+=J*eV,ej+=J*eJ,ep+=(J=G[11])*ek,ey+=J*eR,ev+=J*eD,em+=J*eL,eg+=J*eU,eb+=J*eF,ew+=J*e$,e_+=J*eB,eS+=J*eK,eE+=J*eW,eO+=J*ez,eA+=J*eG,eP+=J*eq,eM+=J*eH,ej+=J*eV,eT+=J*eJ,ey+=(J=G[12])*ek,ev+=J*eR,em+=J*eD,eg+=J*eL,eb+=J*eU,ew+=J*eF,e_+=J*e$,eS+=J*eB,eE+=J*eK,eO+=J*eW,eA+=J*ez,eP+=J*eG,eM+=J*eq,ej+=J*eH,eT+=J*eV,ex+=J*eJ,ev+=(J=G[13])*ek,em+=J*eR,eg+=J*eD,eb+=J*eL,ew+=J*eU,e_+=J*eF,eS+=J*e$,eE+=J*eB,eO+=J*eK,eA+=J*eW,eP+=J*ez,eM+=J*eG,ej+=J*eq,eT+=J*eH,ex+=J*eV,eI+=J*eJ,em+=(J=G[14])*ek,eg+=J*eR,eb+=J*eD,ew+=J*eL,e_+=J*eU,eS+=J*eF,eE+=J*e$,eO+=J*eB,eA+=J*eK,eP+=J*eW,eM+=J*ez,ej+=J*eG,eT+=J*eq,ex+=J*eH,eI+=J*eV,eC+=J*eJ,eg+=(J=G[15])*ek,eb+=J*eR,ew+=J*eD,e_+=J*eL,eS+=J*eU,eE+=J*eF,eO+=J*e$,eA+=J*eB,eP+=J*eK,eM+=J*eW,ej+=J*ez,eT+=J*eG,ex+=J*eq,eI+=J*eH,eC+=J*eV,eN+=J*eJ,ee+=38*eb,et+=38*ew,eo+=38*e_,ei+=38*eS,ea+=38*eE,es+=38*eO,eu+=38*eA,ec+=38*eP,ef+=38*eM,ed+=38*ej,eh+=38*eT,ep+=38*ex,ey+=38*eI,ev+=38*eC,em+=38*eN,Q=Math.floor((J=ee+(Q=1)+65535)/65536),ee=J-65536*Q,Q=Math.floor((J=et+Q+65535)/65536),et=J-65536*Q,Q=Math.floor((J=eo+Q+65535)/65536),eo=J-65536*Q,Q=Math.floor((J=ei+Q+65535)/65536),ei=J-65536*Q,Q=Math.floor((J=ea+Q+65535)/65536),ea=J-65536*Q,Q=Math.floor((J=es+Q+65535)/65536),es=J-65536*Q,Q=Math.floor((J=eu+Q+65535)/65536),eu=J-65536*Q,Q=Math.floor((J=ec+Q+65535)/65536),ec=J-65536*Q,Q=Math.floor((J=ef+Q+65535)/65536),ef=J-65536*Q,Q=Math.floor((J=ed+Q+65535)/65536),ed=J-65536*Q,Q=Math.floor((J=eh+Q+65535)/65536),eh=J-65536*Q,Q=Math.floor((J=ep+Q+65535)/65536),ep=J-65536*Q,Q=Math.floor((J=ey+Q+65535)/65536),ey=J-65536*Q,Q=Math.floor((J=ev+Q+65535)/65536),ev=J-65536*Q,Q=Math.floor((J=em+Q+65535)/65536),em=J-65536*Q,Q=Math.floor((J=eg+Q+65535)/65536),eg=J-65536*Q,ee+=Q-1+37*(Q-1),Q=Math.floor((J=ee+(Q=1)+65535)/65536),ee=J-65536*Q,Q=Math.floor((J=et+Q+65535)/65536),et=J-65536*Q,Q=Math.floor((J=eo+Q+65535)/65536),eo=J-65536*Q,Q=Math.floor((J=ei+Q+65535)/65536),ei=J-65536*Q,Q=Math.floor((J=ea+Q+65535)/65536),ea=J-65536*Q,Q=Math.floor((J=es+Q+65535)/65536),es=J-65536*Q,Q=Math.floor((J=eu+Q+65535)/65536),eu=J-65536*Q,Q=Math.floor((J=ec+Q+65535)/65536),ec=J-65536*Q,Q=Math.floor((J=ef+Q+65535)/65536),ef=J-65536*Q,Q=Math.floor((J=ed+Q+65535)/65536),ed=J-65536*Q,Q=Math.floor((J=eh+Q+65535)/65536),eh=J-65536*Q,Q=Math.floor((J=ep+Q+65535)/65536),ep=J-65536*Q,Q=Math.floor((J=ey+Q+65535)/65536),ey=J-65536*Q,Q=Math.floor((J=ev+Q+65535)/65536),ev=J-65536*Q,Q=Math.floor((J=em+Q+65535)/65536),em=J-65536*Q,Q=Math.floor((J=eg+Q+65535)/65536),eg=J-65536*Q,ee+=Q-1+37*(Q-1),W[0]=ee,W[1]=et,W[2]=eo,W[3]=ei,W[4]=ea,W[5]=es,W[6]=eu,W[7]=ec,W[8]=ef,W[9]=ed,W[10]=eh,W[11]=ep,W[12]=ey,W[13]=ev,W[14]=em,W[15]=eg}function e$(W,G){eF(W,G,G)}function eB(W,H){var J,Q=G();for(J=0;J<16;J++)Q[J]=H[J];for(J=253;J>=0;J--)e$(Q,Q),2!==J&&4!==J&&eF(Q,Q,H);for(J=0;J<16;J++)W[J]=Q[J]}function eK(W,H){var J,Q=G();for(J=0;J<16;J++)Q[J]=H[J];for(J=250;J>=0;J--)e$(Q,Q),1!==J&&eF(Q,Q,H);for(J=0;J<16;J++)W[J]=Q[J]}function eW(W,H,J){var Q,ee,et=new Uint8Array(32),eo=new Float64Array(80),ea=G(),es=G(),eu=G(),ec=G(),ef=G(),ed=G();for(ee=0;ee<31;ee++)et[ee]=H[ee];for(et[31]=127&H[31]|64,et[0]&=248,eD(eo,J),ee=0;ee<16;ee++)es[ee]=eo[ee],ec[ee]=ea[ee]=eu[ee]=0;for(ee=254,ea[0]=ec[0]=1;ee>=0;--ee)eC(ea,es,Q=et[ee>>>3]>>>(7&ee)&1),eC(eu,ec,Q),eL(ef,ea,eu),eU(ea,ea,eu),eL(eu,es,ec),eU(es,es,ec),e$(ec,ef),e$(ed,ea),eF(ea,eu,ea),eF(eu,es,ef),eL(ef,ea,eu),eU(ea,ea,eu),e$(es,ea),eU(eu,ec,ed),eF(ea,eu,ei),eL(ea,ea,ec),eF(eu,eu,ea),eF(ea,ec,ed),eF(ec,es,eo),e$(es,ef),eC(ea,es,Q),eC(eu,ec,Q);for(ee=0;ee<16;ee++)eo[ee+16]=ea[ee],eo[ee+32]=eu[ee],eo[ee+48]=es[ee],eo[ee+64]=ec[ee];var eh=eo.subarray(32),ep=eo.subarray(16);return eB(eh,eh),eF(ep,ep,eh),eN(W,ep),0}function ez(W,G){return eW(W,G,ee)}function eG(W,G){return J(G,32),ez(W,G)}function eq(W,G,H){var J=new Uint8Array(32);return eW(J,H,G),eb(W,Q,J,ew)}eA.prototype.blocks=function(W,G,H){for(var J,Q,ee,et,eo,ei,ea,es,eu,ec,ef,ed,eh,ep,ey,ev,em,eg,eb,ew=this.fin?0:2048,e_=this.h[0],eS=this.h[1],eE=this.h[2],eO=this.h[3],eA=this.h[4],eP=this.h[5],eM=this.h[6],ej=this.h[7],eT=this.h[8],ex=this.h[9],eI=this.r[0],eC=this.r[1],eN=this.r[2],ek=this.r[3],eR=this.r[4],eD=this.r[5],eL=this.r[6],eU=this.r[7],eF=this.r[8],e$=this.r[9];H>=16;)e_+=8191&(J=255&W[G+0]|(255&W[G+1])<<8),eS+=(J>>>13|(Q=255&W[G+2]|(255&W[G+3])<<8)<<3)&8191,eE+=(Q>>>10|(ee=255&W[G+4]|(255&W[G+5])<<8)<<6)&8191,eO+=(ee>>>7|(et=255&W[G+6]|(255&W[G+7])<<8)<<9)&8191,eA+=(et>>>4|(eo=255&W[G+8]|(255&W[G+9])<<8)<<12)&8191,eP+=eo>>>1&8191,eM+=(eo>>>14|(ei=255&W[G+10]|(255&W[G+11])<<8)<<2)&8191,ej+=(ei>>>11|(ea=255&W[G+12]|(255&W[G+13])<<8)<<5)&8191,eT+=(ea>>>8|(es=255&W[G+14]|(255&W[G+15])<<8)<<8)&8191,ex+=es>>>5|ew,eu=(ec=(eu=0)+e_*eI+eS*(5*e$)+eE*(5*eF)+eO*(5*eU)+eA*(5*eL))>>>13,ec&=8191,ec+=eP*(5*eD)+eM*(5*eR)+ej*(5*ek)+eT*(5*eN)+ex*(5*eC),eu+=ec>>>13,ec&=8191,eu=(ef=eu+e_*eC+eS*eI+eE*(5*e$)+eO*(5*eF)+eA*(5*eU))>>>13,ef&=8191,ef+=eP*(5*eL)+eM*(5*eD)+ej*(5*eR)+eT*(5*ek)+ex*(5*eN),eu+=ef>>>13,ef&=8191,eu=(ed=eu+e_*eN+eS*eC+eE*eI+eO*(5*e$)+eA*(5*eF))>>>13,ed&=8191,ed+=eP*(5*eU)+eM*(5*eL)+ej*(5*eD)+eT*(5*eR)+ex*(5*ek),eu+=ed>>>13,ed&=8191,eu=(eh=eu+e_*ek+eS*eN+eE*eC+eO*eI+eA*(5*e$))>>>13,eh&=8191,eh+=eP*(5*eF)+eM*(5*eU)+ej*(5*eL)+eT*(5*eD)+ex*(5*eR),eu+=eh>>>13,eh&=8191,eu=(ep=eu+e_*eR+eS*ek+eE*eN+eO*eC+eA*eI)>>>13,ep&=8191,ep+=eP*(5*e$)+eM*(5*eF)+ej*(5*eU)+eT*(5*eL)+ex*(5*eD),eu+=ep>>>13,ep&=8191,eu=(ey=eu+e_*eD+eS*eR+eE*ek+eO*eN+eA*eC)>>>13,ey&=8191,ey+=eP*eI+eM*(5*e$)+ej*(5*eF)+eT*(5*eU)+ex*(5*eL),eu+=ey>>>13,ey&=8191,eu=(ev=eu+e_*eL+eS*eD+eE*eR+eO*ek+eA*eN)>>>13,ev&=8191,ev+=eP*eC+eM*eI+ej*(5*e$)+eT*(5*eF)+ex*(5*eU),eu+=ev>>>13,ev&=8191,eu=(em=eu+e_*eU+eS*eL+eE*eD+eO*eR+eA*ek)>>>13,em&=8191,em+=eP*eN+eM*eC+ej*eI+eT*(5*e$)+ex*(5*eF),eu+=em>>>13,em&=8191,eu=(eg=eu+e_*eF+eS*eU+eE*eL+eO*eD+eA*eR)>>>13,eg&=8191,eg+=eP*ek+eM*eN+ej*eC+eT*eI+ex*(5*e$),eu+=eg>>>13,eg&=8191,eu=(eb=eu+e_*e$+eS*eF+eE*eU+eO*eL+eA*eD)>>>13,eb&=8191,eb+=eP*eR+eM*ek+ej*eN+eT*eC+ex*eI,eu+=eb>>>13,eb&=8191,ec=8191&(eu=(eu=(eu<<2)+eu|0)+ec|0),eu>>>=13,ef+=eu,e_=ec,eS=ef,eE=ed,eO=eh,eA=ep,eP=ey,eM=ev,ej=em,eT=eg,ex=eb,G+=16,H-=16;this.h[0]=e_,this.h[1]=eS,this.h[2]=eE,this.h[3]=eO,this.h[4]=eA,this.h[5]=eP,this.h[6]=eM,this.h[7]=ej,this.h[8]=eT,this.h[9]=ex},eA.prototype.finish=function(W,G){var H,J,Q,ee,et=new Uint16Array(10);if(this.leftover){for(ee=this.leftover,this.buffer[ee++]=1;ee<16;ee++)this.buffer[ee]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(H=this.h[1]>>>13,this.h[1]&=8191,ee=2;ee<10;ee++)this.h[ee]+=H,H=this.h[ee]>>>13,this.h[ee]&=8191;for(this.h[0]+=5*H,H=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=H,H=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=H,et[0]=this.h[0]+5,H=et[0]>>>13,et[0]&=8191,ee=1;ee<10;ee++)et[ee]=this.h[ee]+H,H=et[ee]>>>13,et[ee]&=8191;for(et[9]-=8192,J=(1^H)-1,ee=0;ee<10;ee++)et[ee]&=J;for(ee=0,J=~J;ee<10;ee++)this.h[ee]=this.h[ee]&J|et[ee];for(ee=1,this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Q=this.h[0]+this.pad[0],this.h[0]=65535&Q;ee<8;ee++)Q=(this.h[ee]+this.pad[ee]|0)+(Q>>>16)|0,this.h[ee]=65535&Q;W[G+0]=this.h[0]>>>0&255,W[G+1]=this.h[0]>>>8&255,W[G+2]=this.h[1]>>>0&255,W[G+3]=this.h[1]>>>8&255,W[G+4]=this.h[2]>>>0&255,W[G+5]=this.h[2]>>>8&255,W[G+6]=this.h[3]>>>0&255,W[G+7]=this.h[3]>>>8&255,W[G+8]=this.h[4]>>>0&255,W[G+9]=this.h[4]>>>8&255,W[G+10]=this.h[5]>>>0&255,W[G+11]=this.h[5]>>>8&255,W[G+12]=this.h[6]>>>0&255,W[G+13]=this.h[6]>>>8&255,W[G+14]=this.h[7]>>>0&255,W[G+15]=this.h[7]>>>8&255},eA.prototype.update=function(W,G,H){var J,Q;if(this.leftover){for((Q=16-this.leftover)>H&&(Q=H),J=0;J<Q;J++)this.buffer[this.leftover+J]=W[G+J];if(H-=Q,G+=Q,this.leftover+=Q,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(H>=16&&(Q=H-H%16,this.blocks(W,G,Q),G+=Q,H-=Q),H){for(J=0;J<H;J++)this.buffer[this.leftover+J]=W[G+J];this.leftover+=H}};var eH=ej,eV=eT;function eJ(W,G,H,J,Q,ee){var et=new Uint8Array(32);return eq(et,Q,ee),eH(W,G,H,J,et)}function eY(W,G,H,J,Q,ee){var et=new Uint8Array(32);return eq(et,Q,ee),eV(W,G,H,J,et)}var eZ=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function eQ(W,G,H,J){for(var Q,ee,et,eo,ei,ea,es,eu,ec,ef,ed,eh,ep,ey,ev,em,eg,eb,ew,e_,eS,eE,eO,eA,eP,eM,ej=new Int32Array(16),eT=new Int32Array(16),ex=W[0],eI=W[1],eC=W[2],eN=W[3],ek=W[4],eR=W[5],eD=W[6],eL=W[7],eU=G[0],eF=G[1],e$=G[2],eB=G[3],eK=G[4],eW=G[5],ez=G[6],eG=G[7],eq=0;J>=128;){for(ew=0;ew<16;ew++)e_=8*ew+eq,ej[ew]=H[e_+0]<<24|H[e_+1]<<16|H[e_+2]<<8|H[e_+3],eT[ew]=H[e_+4]<<24|H[e_+5]<<16|H[e_+6]<<8|H[e_+7];for(ew=0;ew<80;ew++)if(Q=ex,ee=eI,et=eC,eo=eN,ei=ek,ea=eR,es=eD,eu=eL,ec=eU,ef=eF,ed=e$,eh=eB,ep=eK,ey=eW,ev=ez,em=eG,eS=eL,eO=65535&(eE=eG),eA=eE>>>16,eP=65535&eS,eM=eS>>>16,eS=(ek>>>14|eK<<18)^(ek>>>18|eK<<14)^(eK>>>9|ek<<23),eO+=65535&(eE=(eK>>>14|ek<<18)^(eK>>>18|ek<<14)^(ek>>>9|eK<<23)),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eS=ek&eR^~ek&eD,eO+=65535&(eE=eK&eW^~eK&ez),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eS=eZ[2*ew],eO+=65535&(eE=eZ[2*ew+1]),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eS=ej[ew%16],eO+=65535&(eE=eT[ew%16]),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eA+=eO>>>16,eP+=eA>>>16,eM+=eP>>>16,eg=65535&eP|eM<<16,eb=65535&eO|eA<<16,eS=eg,eO=65535&(eE=eb),eA=eE>>>16,eP=65535&eS,eM=eS>>>16,eS=(ex>>>28|eU<<4)^(eU>>>2|ex<<30)^(eU>>>7|ex<<25),eO+=65535&(eE=(eU>>>28|ex<<4)^(ex>>>2|eU<<30)^(ex>>>7|eU<<25)),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eS=ex&eI^ex&eC^eI&eC,eO+=65535&(eE=eU&eF^eU&e$^eF&e$),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eA+=eO>>>16,eP+=eA>>>16,eM+=eP>>>16,eu=65535&eP|eM<<16,em=65535&eO|eA<<16,eS=eo,eO=65535&(eE=eh),eA=eE>>>16,eP=65535&eS,eM=eS>>>16,eS=eg,eO+=65535&(eE=eb),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eA+=eO>>>16,eP+=eA>>>16,eM+=eP>>>16,eo=65535&eP|eM<<16,eh=65535&eO|eA<<16,eI=Q,eC=ee,eN=et,ek=eo,eR=ei,eD=ea,eL=es,ex=eu,eF=ec,e$=ef,eB=ed,eK=eh,eW=ep,ez=ey,eG=ev,eU=em,ew%16==15)for(e_=0;e_<16;e_++)eS=ej[e_],eO=65535&(eE=eT[e_]),eA=eE>>>16,eP=65535&eS,eM=eS>>>16,eS=ej[(e_+9)%16],eO+=65535&(eE=eT[(e_+9)%16]),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eS=((eg=ej[(e_+1)%16])>>>1|(eb=eT[(e_+1)%16])<<31)^(eg>>>8|eb<<24)^eg>>>7,eO+=65535&(eE=(eb>>>1|eg<<31)^(eb>>>8|eg<<24)^(eb>>>7|eg<<25)),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eS=((eg=ej[(e_+14)%16])>>>19|(eb=eT[(e_+14)%16])<<13)^(eb>>>29|eg<<3)^eg>>>6,eO+=65535&(eE=(eb>>>19|eg<<13)^(eg>>>29|eb<<3)^(eb>>>6|eg<<26)),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eA+=eO>>>16,eP+=eA>>>16,eM+=eP>>>16,ej[e_]=65535&eP|eM<<16,eT[e_]=65535&eO|eA<<16;eS=ex,eO=65535&(eE=eU),eA=eE>>>16,eP=65535&eS,eM=eS>>>16,eS=W[0],eO+=65535&(eE=G[0]),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eA+=eO>>>16,eP+=eA>>>16,eM+=eP>>>16,W[0]=ex=65535&eP|eM<<16,G[0]=eU=65535&eO|eA<<16,eS=eI,eO=65535&(eE=eF),eA=eE>>>16,eP=65535&eS,eM=eS>>>16,eS=W[1],eO+=65535&(eE=G[1]),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eA+=eO>>>16,eP+=eA>>>16,eM+=eP>>>16,W[1]=eI=65535&eP|eM<<16,G[1]=eF=65535&eO|eA<<16,eS=eC,eO=65535&(eE=e$),eA=eE>>>16,eP=65535&eS,eM=eS>>>16,eS=W[2],eO+=65535&(eE=G[2]),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eA+=eO>>>16,eP+=eA>>>16,eM+=eP>>>16,W[2]=eC=65535&eP|eM<<16,G[2]=e$=65535&eO|eA<<16,eS=eN,eO=65535&(eE=eB),eA=eE>>>16,eP=65535&eS,eM=eS>>>16,eS=W[3],eO+=65535&(eE=G[3]),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eA+=eO>>>16,eP+=eA>>>16,eM+=eP>>>16,W[3]=eN=65535&eP|eM<<16,G[3]=eB=65535&eO|eA<<16,eS=ek,eO=65535&(eE=eK),eA=eE>>>16,eP=65535&eS,eM=eS>>>16,eS=W[4],eO+=65535&(eE=G[4]),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eA+=eO>>>16,eP+=eA>>>16,eM+=eP>>>16,W[4]=ek=65535&eP|eM<<16,G[4]=eK=65535&eO|eA<<16,eS=eR,eO=65535&(eE=eW),eA=eE>>>16,eP=65535&eS,eM=eS>>>16,eS=W[5],eO+=65535&(eE=G[5]),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eA+=eO>>>16,eP+=eA>>>16,eM+=eP>>>16,W[5]=eR=65535&eP|eM<<16,G[5]=eW=65535&eO|eA<<16,eS=eD,eO=65535&(eE=ez),eA=eE>>>16,eP=65535&eS,eM=eS>>>16,eS=W[6],eO+=65535&(eE=G[6]),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eA+=eO>>>16,eP+=eA>>>16,eM+=eP>>>16,W[6]=eD=65535&eP|eM<<16,G[6]=ez=65535&eO|eA<<16,eS=eL,eO=65535&(eE=eG),eA=eE>>>16,eP=65535&eS,eM=eS>>>16,eS=W[7],eO+=65535&(eE=G[7]),eA+=eE>>>16,eP+=65535&eS,eM+=eS>>>16,eA+=eO>>>16,eP+=eA>>>16,eM+=eP>>>16,W[7]=eL=65535&eP|eM<<16,G[7]=eG=65535&eO|eA<<16,eq+=128,J-=128}return J}function eX(W,G,H){var J,Q=new Int32Array(8),ee=new Int32Array(8),et=new Uint8Array(256),eo=H;for(Q[0]=1779033703,Q[1]=3144134277,Q[2]=1013904242,Q[3]=2773480762,Q[4]=1359893119,Q[5]=2600822924,Q[6]=528734635,Q[7]=1541459225,ee[0]=4089235720,ee[1]=2227873595,ee[2]=4271175723,ee[3]=1595750129,ee[4]=2917565137,ee[5]=725511199,ee[6]=4215389547,ee[7]=327033209,eQ(Q,ee,G,H),H%=128,J=0;J<H;J++)et[J]=G[eo-H+J];for(et[H]=128,et[(H=256-128*(H<112?1:0))-9]=0,ed(et,H-8,eo/536870912|0,eo<<3),eQ(Q,ee,et,H),J=0;J<8;J++)ed(W,8*J,Q[J],ee[J]);return 0}function e0(W,H){var J=G(),Q=G(),ee=G(),et=G(),eo=G(),ei=G(),ea=G(),eu=G(),ec=G();eU(J,W[1],W[0]),eU(ec,H[1],H[0]),eF(J,J,ec),eL(Q,W[0],W[1]),eL(ec,H[0],H[1]),eF(Q,Q,ec),eF(ee,W[3],H[3]),eF(ee,ee,es),eF(et,W[2],H[2]),eL(et,et,et),eU(eo,Q,J),eU(ei,et,ee),eL(ea,et,ee),eL(eu,Q,J),eF(W[0],eo,ei),eF(W[1],eu,ea),eF(W[2],ea,ei),eF(W[3],eo,eu)}function e1(W,G,H){var J;for(J=0;J<4;J++)eC(W[J],G[J],H)}function e2(W,H){var J=G(),Q=G(),ee=G();eB(ee,H[2]),eF(J,H[0],ee),eF(Q,H[1],ee),eN(W,Q),W[31]^=eR(J)<<7}function e5(W,G,H){var J,Q;for(ex(W[0],et),ex(W[1],eo),ex(W[2],eo),ex(W[3],et),Q=255;Q>=0;--Q)e1(W,G,J=H[Q/8|0]>>(7&Q)&1),e0(G,W),e0(W,W),e1(W,G,J)}function e6(W,H){var J=[G(),G(),G(),G()];ex(J[0],eu),ex(J[1],ec),ex(J[2],eo),eF(J[3],eu,ec),e5(W,J,H)}function e3(W,H,Q){var ee,et=new Uint8Array(64),eo=[G(),G(),G(),G()];for(Q||J(H,32),eX(et,H,32),et[0]&=248,et[31]&=127,et[31]|=64,e6(eo,et),e2(W,eo),ee=0;ee<32;ee++)H[ee+32]=W[ee];return 0}var e8=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function e4(W,G){var H,J,Q,ee;for(J=63;J>=32;--J){for(H=0,Q=J-32,ee=J-12;Q<ee;++Q)G[Q]+=H-16*G[J]*e8[Q-(J-32)],H=Math.floor((G[Q]+128)/256),G[Q]-=256*H;G[Q]+=H,G[J]=0}for(Q=0,H=0;Q<32;Q++)G[Q]+=H-(G[31]>>4)*e8[Q],H=G[Q]>>8,G[Q]&=255;for(Q=0;Q<32;Q++)G[Q]-=H*e8[Q];for(J=0;J<32;J++)G[J+1]+=G[J]>>8,W[J]=255&G[J]}function e9(W){var G,H=new Float64Array(64);for(G=0;G<64;G++)H[G]=W[G];for(G=0;G<64;G++)W[G]=0;e4(W,H)}function e7(W,H,J,Q){var ee,et,eo=new Uint8Array(64),ei=new Uint8Array(64),ea=new Uint8Array(64),es=new Float64Array(64),eu=[G(),G(),G(),G()];eX(eo,Q,32),eo[0]&=248,eo[31]&=127,eo[31]|=64;var ec=J+64;for(ee=0;ee<J;ee++)W[64+ee]=H[ee];for(ee=0;ee<32;ee++)W[32+ee]=eo[32+ee];for(eX(ea,W.subarray(32),J+32),e9(ea),e6(eu,ea),e2(W,eu),ee=32;ee<64;ee++)W[ee]=Q[ee];for(eX(ei,W,J+64),e9(ei),ee=0;ee<64;ee++)es[ee]=0;for(ee=0;ee<32;ee++)es[ee]=ea[ee];for(ee=0;ee<32;ee++)for(et=0;et<32;et++)es[ee+et]+=ei[ee]*eo[et];return e4(W.subarray(32),es),ec}function te(W,H){var J=G(),Q=G(),ee=G(),ei=G(),es=G(),eu=G(),ec=G();return(ex(W[2],eo),eD(W[1],H),e$(ee,W[1]),eF(ei,ee,ea),eU(ee,ee,W[2]),eL(ei,W[2],ei),e$(es,ei),e$(eu,es),eF(ec,eu,es),eF(J,ec,ee),eF(J,J,ei),eK(J,J),eF(J,J,ee),eF(J,J,ei),eF(J,J,ei),eF(W[0],J,ei),e$(Q,W[0]),eF(Q,Q,ei),ek(Q,ee)&&eF(W[0],W[0],ef),e$(Q,W[0]),eF(Q,Q,ei),ek(Q,ee))?-1:(eR(W[0])===H[31]>>7&&eU(W[0],et,W[0]),eF(W[3],W[0],W[1]),0)}function tt(W,H,J,Q){var ee,et=new Uint8Array(32),eo=new Uint8Array(64),ei=[G(),G(),G(),G()],ea=[G(),G(),G(),G()];if(J<64||te(ea,Q))return -1;for(ee=0;ee<J;ee++)W[ee]=H[ee];for(ee=0;ee<32;ee++)W[ee+32]=Q[ee];if(eX(eo,W,J),e9(eo),e5(ei,ea,eo),e6(ea,H.subarray(32)),e0(ei,ea),e2(et,ei),J-=64,ey(H,0,et,0)){for(ee=0;ee<J;ee++)W[ee]=0;return -1}for(ee=0;ee<J;ee++)W[ee]=H[ee+64];return J}var tr=32,tn=24,ti=32,ta=16,tu=32,tc=32,tf=32,td=32,tp=32,tv=24,tm=32,tg=16,tb=64,tw=32,t_=64,tS=32,tE=64;function tO(W,G){if(W.length!==tr)throw Error("bad key size");if(G.length!==tn)throw Error("bad nonce size")}function tA(W,G){if(W.length!==tf)throw Error("bad public key size");if(G.length!==td)throw Error("bad secret key size")}function tP(){for(var W=0;W<arguments.length;W++)if(!(arguments[W]instanceof Uint8Array))throw TypeError("unexpected type, use Uint8Array")}function tM(W){for(var G=0;G<W.length;G++)W[G]=0}W.lowlevel={crypto_core_hsalsa20:eb,crypto_stream_xor:eO,crypto_stream:eE,crypto_stream_salsa20_xor:e_,crypto_stream_salsa20:eS,crypto_onetimeauth:eP,crypto_onetimeauth_verify:eM,crypto_verify_16:ep,crypto_verify_32:ey,crypto_secretbox:ej,crypto_secretbox_open:eT,crypto_scalarmult:eW,crypto_scalarmult_base:ez,crypto_box_beforenm:eq,crypto_box_afternm:eH,crypto_box:eJ,crypto_box_open:eY,crypto_box_keypair:eG,crypto_hash:eX,crypto_sign:e7,crypto_sign_keypair:e3,crypto_sign_open:tt,crypto_secretbox_KEYBYTES:tr,crypto_secretbox_NONCEBYTES:tn,crypto_secretbox_ZEROBYTES:ti,crypto_secretbox_BOXZEROBYTES:ta,crypto_scalarmult_BYTES:tu,crypto_scalarmult_SCALARBYTES:tc,crypto_box_PUBLICKEYBYTES:tf,crypto_box_SECRETKEYBYTES:td,crypto_box_BEFORENMBYTES:tp,crypto_box_NONCEBYTES:tv,crypto_box_ZEROBYTES:tm,crypto_box_BOXZEROBYTES:tg,crypto_sign_BYTES:tb,crypto_sign_PUBLICKEYBYTES:tw,crypto_sign_SECRETKEYBYTES:t_,crypto_sign_SEEDBYTES:tS,crypto_hash_BYTES:tE,gf:G,D:ea,L:e8,pack25519:eN,unpack25519:eD,M:eF,A:eL,S:e$,Z:eU,pow2523:eK,add:e0,set25519:ex,modL:e4,scalarmult:e5,scalarbase:e6},W.randomBytes=function(W){var G=new Uint8Array(W);return J(G,W),G},W.secretbox=function(W,G,H){tP(W,G,H),tO(H,G);for(var J=new Uint8Array(ti+W.length),Q=new Uint8Array(J.length),ee=0;ee<W.length;ee++)J[ee+ti]=W[ee];return ej(Q,J,J.length,G,H),Q.subarray(ta)},W.secretbox.open=function(W,G,H){tP(W,G,H),tO(H,G);for(var J=new Uint8Array(ta+W.length),Q=new Uint8Array(J.length),ee=0;ee<W.length;ee++)J[ee+ta]=W[ee];return J.length<32||0!==eT(Q,J,J.length,G,H)?null:Q.subarray(ti)},W.secretbox.keyLength=tr,W.secretbox.nonceLength=tn,W.secretbox.overheadLength=ta,W.scalarMult=function(W,G){if(tP(W,G),W.length!==tc)throw Error("bad n size");if(G.length!==tu)throw Error("bad p size");var H=new Uint8Array(tu);return eW(H,W,G),H},W.scalarMult.base=function(W){if(tP(W),W.length!==tc)throw Error("bad n size");var G=new Uint8Array(tu);return ez(G,W),G},W.scalarMult.scalarLength=tc,W.scalarMult.groupElementLength=tu,W.box=function(G,H,J,Q){var ee=W.box.before(J,Q);return W.secretbox(G,H,ee)},W.box.before=function(W,G){tP(W,G),tA(W,G);var H=new Uint8Array(tp);return eq(H,W,G),H},W.box.after=W.secretbox,W.box.open=function(G,H,J,Q){var ee=W.box.before(J,Q);return W.secretbox.open(G,H,ee)},W.box.open.after=W.secretbox.open,W.box.keyPair=function(){var W=new Uint8Array(tf),G=new Uint8Array(td);return eG(W,G),{publicKey:W,secretKey:G}},W.box.keyPair.fromSecretKey=function(W){if(tP(W),W.length!==td)throw Error("bad secret key size");var G=new Uint8Array(tf);return ez(G,W),{publicKey:G,secretKey:new Uint8Array(W)}},W.box.publicKeyLength=tf,W.box.secretKeyLength=td,W.box.sharedKeyLength=tp,W.box.nonceLength=tv,W.box.overheadLength=W.secretbox.overheadLength,W.sign=function(W,G){if(tP(W,G),G.length!==t_)throw Error("bad secret key size");var H=new Uint8Array(tb+W.length);return e7(H,W,W.length,G),H},W.sign.open=function(W,G){if(tP(W,G),G.length!==tw)throw Error("bad public key size");var H=new Uint8Array(W.length),J=tt(H,W,W.length,G);if(J<0)return null;for(var Q=new Uint8Array(J),ee=0;ee<Q.length;ee++)Q[ee]=H[ee];return Q},W.sign.detached=function(G,H){for(var J=W.sign(G,H),Q=new Uint8Array(tb),ee=0;ee<Q.length;ee++)Q[ee]=J[ee];return Q},W.sign.detached.verify=function(W,G,H){if(tP(W,G,H),G.length!==tb)throw Error("bad signature size");if(H.length!==tw)throw Error("bad public key size");var J,Q=new Uint8Array(tb+W.length),ee=new Uint8Array(tb+W.length);for(J=0;J<tb;J++)Q[J]=G[J];for(J=0;J<W.length;J++)Q[J+tb]=W[J];return tt(ee,Q,Q.length,H)>=0},W.sign.keyPair=function(){var W=new Uint8Array(tw),G=new Uint8Array(t_);return e3(W,G),{publicKey:W,secretKey:G}},W.sign.keyPair.fromSecretKey=function(W){if(tP(W),W.length!==t_)throw Error("bad secret key size");for(var G=new Uint8Array(tw),H=0;H<G.length;H++)G[H]=W[32+H];return{publicKey:G,secretKey:new Uint8Array(W)}},W.sign.keyPair.fromSeed=function(W){if(tP(W),W.length!==tS)throw Error("bad seed size");for(var G=new Uint8Array(tw),H=new Uint8Array(t_),J=0;J<32;J++)H[J]=W[J];return e3(G,H,!0),{publicKey:G,secretKey:H}},W.sign.publicKeyLength=tw,W.sign.secretKeyLength=t_,W.sign.seedLength=tS,W.sign.signatureLength=tb,W.hash=function(W){tP(W);var G=new Uint8Array(tE);return eX(G,W,W.length),G},W.hash.hashLength=tE,W.verify=function(W,G){return tP(W,G),0!==W.length&&0!==G.length&&W.length===G.length&&0===eh(W,0,G,0,W.length)},W.setPRNG=function(W){J=W},function(){var G="undefined"!=typeof self?self.crypto||self.msCrypto:null;if(G&&G.getRandomValues){var J=65536;W.setPRNG(function(W,H){var Q,ee=new Uint8Array(H);for(Q=0;Q<H;Q+=J)G.getRandomValues(ee.subarray(Q,Q+Math.min(H-Q,J)));for(Q=0;Q<H;Q++)W[Q]=ee[Q];tM(ee)})}else(G=H(39201))&&G.randomBytes&&W.setPRNG(function(W,H){var J,Q=G.randomBytes(H);for(J=0;J<H;J++)W[J]=Q[J];tM(Q)})}()}(W.exports?W.exports:self.nacl=self.nacl||{})},17213:function(W,G,H){W.exports=H(29919)},34203:function(W){var G=function(W){var G,H=!1;return W instanceof Function||(H=!0,G=W,W=null),function(){return H||(H=!0,G=W.apply(this,arguments),W=null),G}};W.exports=G},10484:function(W){W.exports=function W(G,H,J){if(J||(J=[]),J.length<G.length){var Q=G[J.length];for(var ee in Q)J[J.length]=Q[ee],W(G,H,J),--J.length}else H.apply(null,J)}},29919:function(W,G,H){W.exports={cache:H(34203),eachCombination:H(10484)}},10061:function(W,G){/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */!function(W,H){H(G)}(0,function(W){"use strict";function G(){for(var W=arguments.length,G=Array(W),H=0;H<W;H++)G[H]=arguments[H];if(!(G.length>1))return G[0];G[0]=G[0].slice(0,-1);for(var J=G.length-1,Q=1;Q<J;++Q)G[Q]=G[Q].slice(1,-1);return G[J]=G[J].slice(1),G.join("")}function H(W){return"(?:"+W+")"}function J(W){return void 0===W?"undefined":null===W?"null":Object.prototype.toString.call(W).split(" ").pop().split("]").shift().toLowerCase()}function Q(W){return W.toUpperCase()}function ee(W){return null!=W?W instanceof Array?W:"number"!=typeof W.length||W.split||W.setInterval||W.call?[W]:Array.prototype.slice.call(W):[]}function et(W,G){var H=W;if(G)for(var J in G)H[J]=G[J];return H}function eo(W){var J="[A-Za-z]",Q="[0-9]",ee=G(Q,"[A-Fa-f]"),et=H(H("%[EFef]"+ee+"%"+ee+ee+"%"+ee+ee)+"|"+H("%[89A-Fa-f]"+ee+"%"+ee+ee)+"|"+H("%"+ee+ee)),eo="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",ei=G("[\\:\\/\\?\\#\\[\\]\\@]",eo),ea=W?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",es=W?"[\\uE000-\\uF8FF]":"[]",eu=G(J,Q,"[\\-\\.\\_\\~]",ea),ec=H(J+G(J,Q,"[\\+\\-\\.]")+"*"),ef=H(H(et+"|"+G(eu,eo,"[\\:]"))+"*"),ed=(H(H("25[0-5]")+"|"+H("2[0-4]"+Q)+"|"+H("1"+Q+Q)+"|"+H("[1-9]"+Q)+"|"+Q),H(H("25[0-5]")+"|"+H("2[0-4]"+Q)+"|"+H("1"+Q+Q)+"|"+H("0?[1-9]"+Q)+"|0?0?"+Q)),eh=H(ed+"\\."+ed+"\\."+ed+"\\."+ed),ep=H(ee+"{1,4}"),ey=H(H(ep+"\\:"+ep)+"|"+eh),ev=H(H(ep+"\\:")+"{6}"+ey),em=H("\\:\\:"+H(ep+"\\:")+"{5}"+ey),eg=H(H(ep)+"?\\:\\:"+H(ep+"\\:")+"{4}"+ey),eb=H(H(H(ep+"\\:")+"{0,1}"+ep)+"?\\:\\:"+H(ep+"\\:")+"{3}"+ey),ew=H(H(H(ep+"\\:")+"{0,2}"+ep)+"?\\:\\:"+H(ep+"\\:")+"{2}"+ey),e_=H(H(H(ep+"\\:")+"{0,3}"+ep)+"?\\:\\:"+ep+"\\:"+ey),eS=H(H(H(ep+"\\:")+"{0,4}"+ep)+"?\\:\\:"+ey),eE=H(H(H(ep+"\\:")+"{0,5}"+ep)+"?\\:\\:"+ep),eO=H(H(H(ep+"\\:")+"{0,6}"+ep)+"?\\:\\:"),eA=H([ev,em,eg,eb,ew,e_,eS,eE,eO].join("|")),eP=H(H(eu+"|"+et)+"+"),eM=(H(eA+"\\%25"+eP),H(eA+H("\\%25|\\%(?!"+ee+"{2})")+eP)),ej=H("[vV]"+ee+"+\\."+G(eu,eo,"[\\:]")+"+"),eT=H("\\["+H(eM+"|"+eA+"|"+ej)+"\\]"),ex=H(H(et+"|"+G(eu,eo))+"*"),eI=H(eT+"|"+eh+"(?!"+ex+")|"+ex),eC=H(Q+"*"),eN=H(H(ef+"@")+"?"+eI+H("\\:"+eC)+"?"),ek=H(et+"|"+G(eu,eo,"[\\:\\@]")),eR=H(ek+"*"),eD=H(ek+"+"),eL=H(H(et+"|"+G(eu,eo,"[\\@]"))+"+"),eU=H(H("\\/"+eR)+"*"),eF=H("\\/"+H(eD+eU)+"?"),e$=H(eL+eU),eB=H(eD+eU),eK="(?!"+ek+")",eW=(H(eU+"|"+eF+"|"+e$+"|"+eB+"|"+eK),H(H(ek+"|"+G("[\\/\\?]",es))+"*")),ez=H(H(ek+"|[\\/\\?]")+"*"),eG=H(H("\\/\\/"+eN+eU)+"|"+eF+"|"+eB+"|"+eK),eq=H(ec+"\\:"+eG+H("\\?"+eW)+"?"+H("\\#"+ez)+"?"),eH=H(H("\\/\\/"+eN+eU)+"|"+eF+"|"+e$+"|"+eK),eV=H(eH+H("\\?"+eW)+"?"+H("\\#"+ez)+"?");return H(eq+"|"+eV),H(ec+"\\:"+eG+H("\\?"+eW)+"?"),H(H("\\/\\/("+H("("+ef+")@")+"?("+eI+")"+H("\\:("+eC+")")+"?)")+"?("+eU+"|"+eF+"|"+eB+"|"+eK+")"),H("\\?("+eW+")"),H("\\#("+ez+")"),H(H("\\/\\/("+H("("+ef+")@")+"?("+eI+")"+H("\\:("+eC+")")+"?)")+"?("+eU+"|"+eF+"|"+e$+"|"+eK+")"),H("\\?("+eW+")"),H("\\#("+ez+")"),H(H("\\/\\/("+H("("+ef+")@")+"?("+eI+")"+H("\\:("+eC+")")+"?)")+"?("+eU+"|"+eF+"|"+eB+"|"+eK+")"),H("\\?("+eW+")"),H("\\#("+ez+")"),H("("+ef+")@"),H("\\:("+eC+")"),{NOT_SCHEME:RegExp(G("[^]",J,Q,"[\\+\\-\\.]"),"g"),NOT_USERINFO:RegExp(G("[^\\%\\:]",eu,eo),"g"),NOT_HOST:RegExp(G("[^\\%\\[\\]\\:]",eu,eo),"g"),NOT_PATH:RegExp(G("[^\\%\\/\\:\\@]",eu,eo),"g"),NOT_PATH_NOSCHEME:RegExp(G("[^\\%\\/\\@]",eu,eo),"g"),NOT_QUERY:RegExp(G("[^\\%]",eu,eo,"[\\:\\@\\/\\?]",es),"g"),NOT_FRAGMENT:RegExp(G("[^\\%]",eu,eo,"[\\:\\@\\/\\?]"),"g"),ESCAPE:RegExp(G("[^]",eu,eo),"g"),UNRESERVED:RegExp(eu,"g"),OTHER_CHARS:RegExp(G("[^\\%]",eu,ei),"g"),PCT_ENCODED:RegExp(et,"g"),IPV4ADDRESS:RegExp("^("+eh+")$"),IPV6ADDRESS:RegExp("^\\[?("+eA+")"+H(H("\\%25|\\%(?!"+ee+"{2})")+"("+eP+")")+"?\\]?$")}}var ei=eo(!1),ea=eo(!0),es=function(){function W(W,G){var H=[],J=!0,Q=!1,ee=void 0;try{for(var et,eo=W[Symbol.iterator]();!(J=(et=eo.next()).done)&&(H.push(et.value),!G||H.length!==G);J=!0);}catch(W){Q=!0,ee=W}finally{try{!J&&eo.return&&eo.return()}finally{if(Q)throw ee}}return H}return function(G,H){if(Array.isArray(G))return G;if(Symbol.iterator in Object(G))return W(G,H);throw TypeError("Invalid attempt to destructure non-iterable instance")}}(),eu=function(W){if(!Array.isArray(W))return Array.from(W);for(var G=0,H=Array(W.length);G<W.length;G++)H[G]=W[G];return H},ec=2147483647,ef=36,ed=1,eh=26,ep=38,ey=700,ev=72,em=128,eg="-",eb=/^xn--/,ew=/[^\0-\x7E]/,e_=/[\x2E\u3002\uFF0E\uFF61]/g,eS={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},eE=35,eO=Math.floor,eA=String.fromCharCode;function eP(W){throw RangeError(eS[W])}function eM(W,G){for(var H=[],J=W.length;J--;)H[J]=G(W[J]);return H}function ej(W,G){var H=W.split("@"),J="";return H.length>1&&(J=H[0]+"@",W=H[1]),J+eM((W=W.replace(e_,".")).split("."),G).join(".")}function eT(W){for(var G=[],H=0,J=W.length;H<J;){var Q=W.charCodeAt(H++);if(Q>=55296&&Q<=56319&&H<J){var ee=W.charCodeAt(H++);(64512&ee)==56320?G.push(((1023&Q)<<10)+(1023&ee)+65536):(G.push(Q),H--)}else G.push(Q)}return G}var ex=function(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:ef},eI=function(W,G){return W+22+75*(W<26)-((0!=G)<<5)},eC=function(W,G,H){var J=0;for(W=H?eO(W/ey):W>>1,W+=eO(W/G);W>eE*eh>>1;J+=ef)W=eO(W/eE);return eO(J+(eE+1)*W/(W+ep))},eN=function(W){var G=[],H=W.length,J=0,Q=em,ee=ev,et=W.lastIndexOf(eg);et<0&&(et=0);for(var eo=0;eo<et;++eo)W.charCodeAt(eo)>=128&&eP("not-basic"),G.push(W.charCodeAt(eo));for(var ei=et>0?et+1:0;ei<H;){for(var ea=J,es=1,eu=ef;;eu+=ef){ei>=H&&eP("invalid-input");var ep=ex(W.charCodeAt(ei++));(ep>=ef||ep>eO((ec-J)/es))&&eP("overflow"),J+=ep*es;var ey=eu<=ee?ed:eu>=ee+eh?eh:eu-ee;if(ep<ey)break;var eb=ef-ey;es>eO(ec/eb)&&eP("overflow"),es*=eb}var ew=G.length+1;ee=eC(J-ea,ew,0==ea),eO(J/ew)>ec-Q&&eP("overflow"),Q+=eO(J/ew),J%=ew,G.splice(J++,0,Q)}return String.fromCodePoint.apply(String,G)},ek=function(W){var G=[],H=(W=eT(W)).length,J=em,Q=0,ee=ev,et=!0,eo=!1,ei=void 0;try{for(var ea,es=W[Symbol.iterator]();!(et=(ea=es.next()).done);et=!0){var eu=ea.value;eu<128&&G.push(eA(eu))}}catch(W){eo=!0,ei=W}finally{try{!et&&es.return&&es.return()}finally{if(eo)throw ei}}var ep=G.length,ey=ep;for(ep&&G.push(eg);ey<H;){var eb=ec,ew=!0,e_=!1,eS=void 0;try{for(var eE,eM=W[Symbol.iterator]();!(ew=(eE=eM.next()).done);ew=!0){var ej=eE.value;ej>=J&&ej<eb&&(eb=ej)}}catch(W){e_=!0,eS=W}finally{try{!ew&&eM.return&&eM.return()}finally{if(e_)throw eS}}var ex=ey+1;eb-J>eO((ec-Q)/ex)&&eP("overflow"),Q+=(eb-J)*ex,J=eb;var eN=!0,ek=!1,eR=void 0;try{for(var eD,eL=W[Symbol.iterator]();!(eN=(eD=eL.next()).done);eN=!0){var eU=eD.value;if(eU<J&&++Q>ec&&eP("overflow"),eU==J){for(var eF=Q,e$=ef;;e$+=ef){var eB=e$<=ee?ed:e$>=ee+eh?eh:e$-ee;if(eF<eB)break;var eK=eF-eB,eW=ef-eB;G.push(eA(eI(eB+eK%eW,0))),eF=eO(eK/eW)}G.push(eA(eI(eF,0))),ee=eC(Q,ex,ey==ep),Q=0,++ey}}}catch(W){ek=!0,eR=W}finally{try{!eN&&eL.return&&eL.return()}finally{if(ek)throw eR}}++Q,++J}return G.join("")},eR=function(W){return ej(W,function(W){return eb.test(W)?eN(W.slice(4).toLowerCase()):W})},eD=function(W){return ej(W,function(W){return ew.test(W)?"xn--"+ek(W):W})},eL={version:"2.1.0",ucs2:{decode:eT,encode:function(W){return String.fromCodePoint.apply(String,eu(W))}},decode:eN,encode:ek,toASCII:eD,toUnicode:eR},eU={};function eF(W){var G=W.charCodeAt(0);return G<16?"%0"+G.toString(16).toUpperCase():G<128?"%"+G.toString(16).toUpperCase():G<2048?"%"+(G>>6|192).toString(16).toUpperCase()+"%"+(63&G|128).toString(16).toUpperCase():"%"+(G>>12|224).toString(16).toUpperCase()+"%"+(G>>6&63|128).toString(16).toUpperCase()+"%"+(63&G|128).toString(16).toUpperCase()}function e$(W){for(var G="",H=0,J=W.length;H<J;){var Q=parseInt(W.substr(H+1,2),16);Q<128?(G+=String.fromCharCode(Q),H+=3):Q>=194&&Q<224?(J-H>=6?G+=String.fromCharCode((31&Q)<<6|63&parseInt(W.substr(H+4,2),16)):G+=W.substr(H,6),H+=6):Q>=224?(J-H>=9?G+=String.fromCharCode((15&Q)<<12|(63&parseInt(W.substr(H+4,2),16))<<6|63&parseInt(W.substr(H+7,2),16)):G+=W.substr(H,9),H+=9):(G+=W.substr(H,3),H+=3)}return G}function eB(W,G){function H(W){var H=e$(W);return H.match(G.UNRESERVED)?H:W}return W.scheme&&(W.scheme=String(W.scheme).replace(G.PCT_ENCODED,H).toLowerCase().replace(G.NOT_SCHEME,"")),void 0!==W.userinfo&&(W.userinfo=String(W.userinfo).replace(G.PCT_ENCODED,H).replace(G.NOT_USERINFO,eF).replace(G.PCT_ENCODED,Q)),void 0!==W.host&&(W.host=String(W.host).replace(G.PCT_ENCODED,H).toLowerCase().replace(G.NOT_HOST,eF).replace(G.PCT_ENCODED,Q)),void 0!==W.path&&(W.path=String(W.path).replace(G.PCT_ENCODED,H).replace(W.scheme?G.NOT_PATH:G.NOT_PATH_NOSCHEME,eF).replace(G.PCT_ENCODED,Q)),void 0!==W.query&&(W.query=String(W.query).replace(G.PCT_ENCODED,H).replace(G.NOT_QUERY,eF).replace(G.PCT_ENCODED,Q)),void 0!==W.fragment&&(W.fragment=String(W.fragment).replace(G.PCT_ENCODED,H).replace(G.NOT_FRAGMENT,eF).replace(G.PCT_ENCODED,Q)),W}function eK(W){return W.replace(/^0*(.*)/,"$1")||"0"}function eW(W,G){var H=es(W.match(G.IPV4ADDRESS)||[],2)[1];return H?H.split(".").map(eK).join("."):W}function ez(W,G){var H=es(W.match(G.IPV6ADDRESS)||[],3),J=H[1],Q=H[2];if(!J)return W;for(var ee=es(J.toLowerCase().split("::").reverse(),2),et=ee[0],eo=ee[1],ei=eo?eo.split(":").map(eK):[],ea=et.split(":").map(eK),eu=G.IPV4ADDRESS.test(ea[ea.length-1]),ec=eu?7:8,ef=ea.length-ec,ed=Array(ec),eh=0;eh<ec;++eh)ed[eh]=ei[eh]||ea[ef+eh]||"";eu&&(ed[ec-1]=eW(ed[ec-1],G));var ep=ed.reduce(function(W,G,H){if(!G||"0"===G){var J=W[W.length-1];J&&J.index+J.length===H?J.length++:W.push({index:H,length:1})}return W},[]).sort(function(W,G){return G.length-W.length})[0],ey=void 0;if(ep&&ep.length>1){var ev=ed.slice(0,ep.index),em=ed.slice(ep.index+ep.length);ey=ev.join(":")+"::"+em.join(":")}else ey=ed.join(":");return Q&&(ey+="%"+Q),ey}var eG=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,eq=void 0==="".match(/(){0}/)[1];function eH(W){var G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},H={},J=!1!==G.iri?ea:ei;"suffix"===G.reference&&(W=(G.scheme?G.scheme+":":"")+"//"+W);var Q=W.match(eG);if(Q){eq?(H.scheme=Q[1],H.userinfo=Q[3],H.host=Q[4],H.port=parseInt(Q[5],10),H.path=Q[6]||"",H.query=Q[7],H.fragment=Q[8],isNaN(H.port)&&(H.port=Q[5])):(H.scheme=Q[1]||void 0,H.userinfo=-1!==W.indexOf("@")?Q[3]:void 0,H.host=-1!==W.indexOf("//")?Q[4]:void 0,H.port=parseInt(Q[5],10),H.path=Q[6]||"",H.query=-1!==W.indexOf("?")?Q[7]:void 0,H.fragment=-1!==W.indexOf("#")?Q[8]:void 0,isNaN(H.port)&&(H.port=W.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Q[4]:void 0)),H.host&&(H.host=ez(eW(H.host,J),J)),void 0!==H.scheme||void 0!==H.userinfo||void 0!==H.host||void 0!==H.port||H.path||void 0!==H.query?void 0===H.scheme?H.reference="relative":void 0===H.fragment?H.reference="absolute":H.reference="uri":H.reference="same-document",G.reference&&"suffix"!==G.reference&&G.reference!==H.reference&&(H.error=H.error||"URI is not a "+G.reference+" reference.");var ee=eU[(G.scheme||H.scheme||"").toLowerCase()];if(G.unicodeSupport||ee&&ee.unicodeSupport)eB(H,J);else{if(H.host&&(G.domainHost||ee&&ee.domainHost))try{H.host=eL.toASCII(H.host.replace(J.PCT_ENCODED,e$).toLowerCase())}catch(W){H.error=H.error||"Host's domain name can not be converted to ASCII via punycode: "+W}eB(H,ei)}ee&&ee.parse&&ee.parse(H,G)}else H.error=H.error||"URI can not be parsed.";return H}function eV(W,G){var H=!1!==G.iri?ea:ei,J=[];return void 0!==W.userinfo&&(J.push(W.userinfo),J.push("@")),void 0!==W.host&&J.push(ez(eW(String(W.host),H),H).replace(H.IPV6ADDRESS,function(W,G,H){return"["+G+(H?"%25"+H:"")+"]"})),("number"==typeof W.port||"string"==typeof W.port)&&(J.push(":"),J.push(String(W.port))),J.length?J.join(""):void 0}var eJ=/^\.\.?\//,eY=/^\/\.(\/|$)/,eZ=/^\/\.\.(\/|$)/,eQ=/^\/?(?:.|\n)*?(?=\/|$)/;function eX(W){for(var G=[];W.length;)if(W.match(eJ))W=W.replace(eJ,"");else if(W.match(eY))W=W.replace(eY,"/");else if(W.match(eZ))W=W.replace(eZ,"/"),G.pop();else if("."===W||".."===W)W="";else{var H=W.match(eQ);if(H){var J=H[0];W=W.slice(J.length),G.push(J)}else throw Error("Unexpected dot segment condition")}return G.join("")}function e0(W){var G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},H=G.iri?ea:ei,J=[],Q=eU[(G.scheme||W.scheme||"").toLowerCase()];if(Q&&Q.serialize&&Q.serialize(W,G),W.host){if(H.IPV6ADDRESS.test(W.host));else if(G.domainHost||Q&&Q.domainHost)try{W.host=G.iri?eL.toUnicode(W.host):eL.toASCII(W.host.replace(H.PCT_ENCODED,e$).toLowerCase())}catch(H){W.error=W.error||"Host's domain name can not be converted to "+(G.iri?"Unicode":"ASCII")+" via punycode: "+H}}eB(W,H),"suffix"!==G.reference&&W.scheme&&(J.push(W.scheme),J.push(":"));var ee=eV(W,G);if(void 0!==ee&&("suffix"!==G.reference&&J.push("//"),J.push(ee),W.path&&"/"!==W.path.charAt(0)&&J.push("/")),void 0!==W.path){var et=W.path;G.absolutePath||Q&&Q.absolutePath||(et=eX(et)),void 0===ee&&(et=et.replace(/^\/\//,"/%2F")),J.push(et)}return void 0!==W.query&&(J.push("?"),J.push(W.query)),void 0!==W.fragment&&(J.push("#"),J.push(W.fragment)),J.join("")}function e1(W,G){var H=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},J=arguments[3],Q={};return J||(W=eH(e0(W,H),H),G=eH(e0(G,H),H)),!(H=H||{}).tolerant&&G.scheme?(Q.scheme=G.scheme,Q.userinfo=G.userinfo,Q.host=G.host,Q.port=G.port,Q.path=eX(G.path||""),Q.query=G.query):(void 0!==G.userinfo||void 0!==G.host||void 0!==G.port?(Q.userinfo=G.userinfo,Q.host=G.host,Q.port=G.port,Q.path=eX(G.path||""),Q.query=G.query):(G.path?("/"===G.path.charAt(0)?Q.path=eX(G.path):(void 0===W.userinfo&&void 0===W.host&&void 0===W.port||W.path?W.path?Q.path=W.path.slice(0,W.path.lastIndexOf("/")+1)+G.path:Q.path=G.path:Q.path="/"+G.path,Q.path=eX(Q.path)),Q.query=G.query):(Q.path=W.path,void 0!==G.query?Q.query=G.query:Q.query=W.query),Q.userinfo=W.userinfo,Q.host=W.host,Q.port=W.port),Q.scheme=W.scheme),Q.fragment=G.fragment,Q}function e2(W,G,H){var J=et({scheme:"null"},H);return e0(e1(eH(W,J),eH(G,J),J,!0),J)}function e5(W,G){return"string"==typeof W?W=e0(eH(W,G),G):"object"===J(W)&&(W=eH(e0(W,G),G)),W}function e6(W,G,H){return"string"==typeof W?W=e0(eH(W,H),H):"object"===J(W)&&(W=e0(W,H)),"string"==typeof G?G=e0(eH(G,H),H):"object"===J(G)&&(G=e0(G,H)),W===G}function e3(W,G){return W&&W.toString().replace(G&&G.iri?ea.ESCAPE:ei.ESCAPE,eF)}function e8(W,G){return W&&W.toString().replace(G&&G.iri?ea.PCT_ENCODED:ei.PCT_ENCODED,e$)}var e4={scheme:"http",domainHost:!0,parse:function(W,G){return W.host||(W.error=W.error||"HTTP URIs must have a host."),W},serialize:function(W,G){var H="https"===String(W.scheme).toLowerCase();return(W.port===(H?443:80)||""===W.port)&&(W.port=void 0),W.path||(W.path="/"),W}},e9={scheme:"https",domainHost:e4.domainHost,parse:e4.parse,serialize:e4.serialize};function e7(W){return"boolean"==typeof W.secure?W.secure:"wss"===String(W.scheme).toLowerCase()}var te={scheme:"ws",domainHost:!0,parse:function(W,G){var H=W;return H.secure=e7(H),H.resourceName=(H.path||"/")+(H.query?"?"+H.query:""),H.path=void 0,H.query=void 0,H},serialize:function(W,G){if((W.port===(e7(W)?443:80)||""===W.port)&&(W.port=void 0),"boolean"==typeof W.secure&&(W.scheme=W.secure?"wss":"ws",W.secure=void 0),W.resourceName){var H=es(W.resourceName.split("?"),2),J=H[0],Q=H[1];W.path=J&&"/"!==J?J:void 0,W.query=Q,W.resourceName=void 0}return W.fragment=void 0,W}},tt={scheme:"wss",domainHost:te.domainHost,parse:te.parse,serialize:te.serialize},tr={},tn="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ti="[0-9A-Fa-f]",ta=H(H("%[EFef]"+ti+"%"+ti+ti+"%"+ti+ti)+"|"+H("%[89A-Fa-f]"+ti+"%"+ti+ti)+"|"+H("%"+ti+ti)),tu="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",tc=G("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),tf="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",td=RegExp(tn,"g"),tp=RegExp(ta,"g"),tv=RegExp(G("[^]",tu,"[\\.]",'[\\"]',tc),"g"),tm=RegExp(G("[^]",tn,tf),"g"),tg=tm;function tb(W){var G=e$(W);return G.match(td)?G:W}var tw={scheme:"mailto",parse:function(W,G){var H=W,J=H.to=H.path?H.path.split(","):[];if(H.path=void 0,H.query){for(var Q=!1,ee={},et=H.query.split("&"),eo=0,ei=et.length;eo<ei;++eo){var ea=et[eo].split("=");switch(ea[0]){case"to":for(var es=ea[1].split(","),eu=0,ec=es.length;eu<ec;++eu)J.push(es[eu]);break;case"subject":H.subject=e8(ea[1],G);break;case"body":H.body=e8(ea[1],G);break;default:Q=!0,ee[e8(ea[0],G)]=e8(ea[1],G)}}Q&&(H.headers=ee)}H.query=void 0;for(var ef=0,ed=J.length;ef<ed;++ef){var eh=J[ef].split("@");if(eh[0]=e8(eh[0]),G.unicodeSupport)eh[1]=e8(eh[1],G).toLowerCase();else try{eh[1]=eL.toASCII(e8(eh[1],G).toLowerCase())}catch(W){H.error=H.error||"Email address's domain name can not be converted to ASCII via punycode: "+W}J[ef]=eh.join("@")}return H},serialize:function(W,G){var H=W,J=ee(W.to);if(J){for(var et=0,eo=J.length;et<eo;++et){var ei=String(J[et]),ea=ei.lastIndexOf("@"),es=ei.slice(0,ea).replace(tp,tb).replace(tp,Q).replace(tv,eF),eu=ei.slice(ea+1);try{eu=G.iri?eL.toUnicode(eu):eL.toASCII(e8(eu,G).toLowerCase())}catch(W){H.error=H.error||"Email address's domain name can not be converted to "+(G.iri?"Unicode":"ASCII")+" via punycode: "+W}J[et]=es+"@"+eu}H.path=J.join(",")}var ec=W.headers=W.headers||{};W.subject&&(ec.subject=W.subject),W.body&&(ec.body=W.body);var ef=[];for(var ed in ec)ec[ed]!==tr[ed]&&ef.push(ed.replace(tp,tb).replace(tp,Q).replace(tm,eF)+"="+ec[ed].replace(tp,tb).replace(tp,Q).replace(tg,eF));return ef.length&&(H.query=ef.join("&")),H}},t_=/^([^\:]+)\:(.*)/,tS={scheme:"urn",parse:function(W,G){var H=W.path&&W.path.match(t_),J=W;if(H){var Q=G.scheme||J.scheme||"urn",ee=H[1].toLowerCase(),et=H[2],eo=eU[Q+":"+(G.nid||ee)];J.nid=ee,J.nss=et,J.path=void 0,eo&&(J=eo.parse(J,G))}else J.error=J.error||"URN can not be parsed.";return J},serialize:function(W,G){var H=G.scheme||W.scheme||"urn",J=W.nid,Q=eU[H+":"+(G.nid||J)];Q&&(W=Q.serialize(W,G));var ee=W,et=W.nss;return ee.path=(J||G.nid)+":"+et,ee}},tE=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,tO={scheme:"urn:uuid",parse:function(W,G){var H=W;return H.uuid=H.nss,H.nss=void 0,G.tolerant||H.uuid&&H.uuid.match(tE)||(H.error=H.error||"UUID is not valid."),H},serialize:function(W,G){var H=W;return H.nss=(W.uuid||"").toLowerCase(),H}};eU[e4.scheme]=e4,eU[e9.scheme]=e9,eU[te.scheme]=te,eU[tt.scheme]=tt,eU[tw.scheme]=tw,eU[tS.scheme]=tS,eU[tO.scheme]=tO,W.SCHEMES=eU,W.pctEncChar=eF,W.pctDecChars=e$,W.parse=eH,W.removeDotSegments=eX,W.serialize=e0,W.resolveComponents=e1,W.resolve=e2,W.normalize=e5,W.equal=e6,W.escapeComponent=e3,W.unescapeComponent=e8,Object.defineProperty(W,"__esModule",{value:!0})})},9703:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.HereKeyStore=void 0;let Q=H(11634),ee=H(63818);class et{constructor(W=new ee.StateStorage){this.storage=W}setActiveAccount(W,G){return J(this,void 0,void 0,function*(){let H=yield this.storage.getState(W);H.activeAccount=G,this.storage.setState(W,H)})}setKey(W,G,H){return J(this,void 0,void 0,function*(){let J=yield this.storage.getState(W);J.accounts[G]=H.toString(),this.storage.setState(W,J)})}getAccounts(W){return J(this,void 0,void 0,function*(){let G=yield this.storage.getState(W);return Object.keys(G.accounts)})}getActiveAccount(W){return J(this,void 0,void 0,function*(){let G=yield this.storage.getState(W);return G.activeAccount})}getKey(W,G){return J(this,void 0,void 0,function*(){let H=yield this.storage.getState(W),J=H.accounts[G];if(null==J)throw Error(`For ${G} in ${W} network key not found`);let ee=Q.KeyPair.fromString(J);return ee})}removeKey(W,G){return J(this,void 0,void 0,function*(){let H=yield this.storage.getState(W);H.activeAccount===G&&(H.activeAccount=null),delete H.accounts[G],this.storage.setState(W,H)})}getNetworks(){return J(this,void 0,void 0,function*(){return Object.keys((yield this.storage.getFullState()).accounts)})}clear(){return J(this,void 0,void 0,function*(){yield this.storage.clear()})}}G.HereKeyStore=et},63818:function(W,G){"use strict";var H=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})};Object.defineProperty(G,"__esModule",{value:!0}),G.StateStorage=void 0;class J{constructor(){this.dataKey="herewallet:keystore"}setState(W,G){return H(this,void 0,void 0,function*(){let H=yield this.getFullState();H[W]=G,window.localStorage.setItem(this.dataKey,JSON.stringify(H))})}getFullState(){return H(this,void 0,void 0,function*(){try{return JSON.parse(window.localStorage.getItem(this.dataKey))||{}}catch(W){return{}}})}getState(W){return H(this,void 0,void 0,function*(){let G=yield this.getFullState();return G[W]||{activeAccount:null,accounts:{}}})}clear(){return H(this,void 0,void 0,function*(){window.localStorage.removeItem(this.dataKey)})}}G.StateStorage=J},79705:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.WidgetStrategy=G.defaultUrl=void 0;let H=W=>{let G=document.createElement("iframe");return G.src=W,G.style.border="none",G.style.zIndex="10000",G.style.position="fixed",G.style.display="none",G.style.top="0",G.style.left="0",G.style.width="100%",G.style.height="100%",document.body.appendChild(G),G};G.defaultUrl="https://my.herewallet.app/connector/index.html";class J{constructor(W={widget:G.defaultUrl,lazy:!1}){this.options={lazy:"object"==typeof W&&(W.lazy||!1),widget:"string"==typeof W?W:W.widget||G.defaultUrl},this.options.lazy||this.initIframe()}initIframe(){return null==J.connector&&(J.connector=H(this.options.widget),J.connector.addEventListener("load",()=>{J.isLoaded=!0})),J.connector}onRequested(W,G,H){let Q=this.initIframe();Q.style.display="block";let ee=()=>{var H,Q,et;null===(H=J.connector)||void 0===H||H.removeEventListener("load",ee),null===(et=null===(Q=J.connector)||void 0===Q?void 0:Q.contentWindow)||void 0===et||et.postMessage(JSON.stringify({type:"request",payload:{id:W,request:G}}),new URL(this.options.widget).origin)};J.isLoaded?ee():Q.addEventListener("load",ee),this.messageHandler=W=>{try{if(W.origin!==new URL(this.options.widget).origin)return;"reject"===JSON.parse(W.data).type&&H()}catch(W){}},window.addEventListener("message",this.messageHandler)}postMessage(W){var G;let H=this.initIframe(),J=JSON.stringify(W),Q=new URL(this.options.widget).origin;null===(G=H.contentWindow)||void 0===G||G.postMessage(J,Q)}onApproving(){this.postMessage({type:"approving"})}onSuccess(W){console.log(W),this.postMessage({type:"result",payload:{request:W}}),this.close()}onFailed(W){this.postMessage({type:"result",payload:{request:W}}),this.close()}close(){this.messageHandler&&(window.removeEventListener("message",this.messageHandler),this.messageHandler=void 0),J.connector&&(J.connector.style.display="none")}}G.WidgetStrategy=J,J.isLoaded=!1},94138:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.WindowStrategy=void 0;class H{constructor(W="https://my.herewallet.app"){this.endpoint=W,this.signWindow=null,this.onFailed=()=>this.close(),this.onSuccess=()=>this.close()}onInitialized(){if(this.signWindow)return;let W=window.innerWidth/2-210,G=window.innerHeight/2-350;this.signWindow=window.open(`${this.endpoint}/loading`,"_blank",`popup=1,width=420,height=700,top=${G},left=${W}`)}onRequested(W,G,H){null!=this.signWindow&&(this.unloadHandler=()=>{var W;return null===(W=this.signWindow)||void 0===W?void 0:W.close()},window.addEventListener("beforeunload",this.unloadHandler),this.signWindow.location=`${this.endpoint}/request/${W}`,this.timerHandler=setInterval(()=>{var W;(null===(W=this.signWindow)||void 0===W?void 0:W.closed)&&H("CLOSED")},1e3))}close(){var W;clearInterval(this.timerHandler),null===(W=this.signWindow)||void 0===W||W.close(),this.signWindow=null,this.unloadHandler&&window.removeEventListener("beforeunload",this.unloadHandler)}}G.WindowStrategy=H},54354:function(W,G,H){"use strict";var J=H(80854).Buffer;Object.defineProperty(G,"__esModule",{value:!0}),G.createAction=G.parseArgs=void 0;let Q=H(60079),ee=H(52434),et=W=>{if("FullAccess"===W)return ee.transactions.fullAccessKey();let{receiverId:G,methodNames:H=[]}=W,J=W.allowance?new Q.BN(W.allowance):void 0;return ee.transactions.functionCallAccessKey(G,H,J)},eo=W=>"string"==typeof W?J.from(W,"base64"):W;G.parseArgs=eo;let ei=W=>{switch(W.type){case"CreateAccount":return ee.transactions.createAccount();case"DeployContract":{let{code:G}=W.params;return ee.transactions.deployContract(G)}case"FunctionCall":{let{methodName:H,args:J,gas:et,deposit:eo}=W.params;return ee.transactions.functionCall(H,(0,G.parseArgs)(J),new Q.BN(et),new Q.BN(eo))}case"Transfer":{let{deposit:G}=W.params;return ee.transactions.transfer(new Q.BN(G))}case"Stake":{let{stake:G,publicKey:H}=W.params;return ee.transactions.stake(new Q.BN(G),ee.utils.PublicKey.from(H))}case"AddKey":{let{publicKey:G,accessKey:H}=W.params;return ee.transactions.addKey(ee.utils.PublicKey.from(G),et(H.permission))}case"DeleteKey":{let{publicKey:G}=W.params;return ee.transactions.deleteKey(ee.utils.PublicKey.from(G))}case"DeleteAccount":{let{beneficiaryId:G}=W.params;return ee.transactions.deleteAccount(G)}default:throw Error("Invalid action type")}};G.createAction=ei},789:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0})},33991:function(W,G,H){"use strict";var J=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})},Q=this&&this.__rest||function(W,G){var H={};for(var J in W)Object.prototype.hasOwnProperty.call(W,J)&&0>G.indexOf(J)&&(H[J]=W[J]);if(null!=W&&"function"==typeof Object.getOwnPropertySymbols)for(var Q=0,J=Object.getOwnPropertySymbols(W);Q<J.length;Q++)0>G.indexOf(J[Q])&&Object.prototype.propertyIsEnumerable.call(W,J[Q])&&(H[J[Q]]=W[J[Q]]);return H};Object.defineProperty(G,"__esModule",{value:!0}),G.proxyProvider=G.getRequest=G.proxyApi=G.deleteRequest=G.getResponse=G.createRequest=void 0;let ee=H(4987),et=H(25534),eo=H(16528);Object.defineProperty(G,"createRequest",{enumerable:!0,get:function(){return eo.createRequest}}),Object.defineProperty(G,"getResponse",{enumerable:!0,get:function(){return eo.getResponse}}),Object.defineProperty(G,"deleteRequest",{enumerable:!0,get:function(){return eo.deleteRequest}}),Object.defineProperty(G,"proxyApi",{enumerable:!0,get:function(){return eo.proxyApi}}),Object.defineProperty(G,"getRequest",{enumerable:!0,get:function(){return eo.getRequest}});let ei=W=>J(void 0,void 0,void 0,function*(){let{strategy:G,request:H,disableCleanupRequest:ei,id:ea,signal:es}=W,eu=Q(W,["strategy","request","disableCleanupRequest","id","signal"]);return null!=ea?H=yield(0,eo.getRequest)(ea,es):ea=yield(0,eo.createRequest)(H,es),new Promise((W,Q)=>{var ec,ef;let ed=eo.proxyApi.replace("https","wss"),eh=null,ep=null,ey=()=>J(void 0,void 0,void 0,function*(){clearInterval(eh=-1),null==ep||ep.close(),!0!==ei&&(yield(0,eo.deleteRequest)(ea))}),ev=H=>{var J,ee,eo,ei,ea,es;switch(H.status){case et.HereProviderStatus.APPROVING:null===(J=eu.onApproving)||void 0===J||J.call(eu,H),null===(ee=null==G?void 0:G.onApproving)||void 0===ee||ee.call(G,H);return;case et.HereProviderStatus.FAILED:ey(),Q(new et.HereProviderError(H.payload)),null===(eo=eu.onFailed)||void 0===eo||eo.call(eu,H),null===(ei=null==G?void 0:G.onFailed)||void 0===ei||ei.call(G,H);return;case et.HereProviderStatus.SUCCESS:ey(),W(H),null===(ea=eu.onSuccess)||void 0===ea||ea.call(eu,H),null===(es=null==G?void 0:G.onSuccess)||void 0===es||es.call(G,H);return}},em=W=>{ev({status:et.HereProviderStatus.FAILED,payload:W})};null===(ec=eu.onRequested)||void 0===ec||ec.call(eu,ea,H,em),null===(ef=null==G?void 0:G.onRequested)||void 0===ef||ef.call(G,ea,H,em),null==es||es.addEventListener("abort",()=>em());let eg=()=>{-1!==eh&&(eh=setTimeout(()=>J(void 0,void 0,void 0,function*(){var W,H;try{let W=yield(0,eo.getResponse)(ea);if(-1===eh)return;ev(W),eg()}catch(ei){let J=et.HereProviderStatus.FAILED,ee=ei instanceof Error?ei:void 0,eo=null==ee?void 0:ee.message;ey(),Q(new et.HereProviderError(eo,ee)),null===(W=eu.onFailed)||void 0===W||W.call(eu,{status:J,payload:eo}),null===(H=null==G?void 0:G.onFailed)||void 0===H||H.call(G,{status:J,payload:eo})}}),3e3))};if(eg(),!1===(0,ee.isMobile)()){let W=`${ed}/ws/${ea}`;(ep=new WebSocket(W)).onmessage=W=>{if(null!=W.data)try{let G=JSON.parse(W.data);ev(G)}catch(W){}}}})});G.proxyProvider=ei},16528:function(W,G,H){"use strict";var J=H(80854).Buffer,Q=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})},ee=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.createRequest=G.deleteRequest=G.getResponse=G.getRequest=G.proxyApi=void 0;let et=ee(H(79232)),eo=ee(H(77339)),ei=H(82417),ea=H(4987);G.proxyApi="https://h4n.app";let es=(W,H)=>Q(void 0,void 0,void 0,function*(){let J=yield fetch(`${G.proxyApi}/${W}/request`,{signal:H,headers:{"content-type":"application/json"},method:"GET"});if(!1===J.ok)throw Error((yield J.text()));let{data:Q}=yield J.json();return JSON.parse((0,ei.base_decode)(Q).toString("utf8"))});G.getRequest=es;let eu=W=>Q(void 0,void 0,void 0,function*(){var H,J,Q,ee;let et=yield fetch(`${G.proxyApi}/${W}/response`,{headers:{"content-type":"application/json"},method:"GET"});if(!1===et.ok)throw Error((yield et.text()));let{data:eo}=yield et.json(),ei=null!==(H=JSON.parse(eo))&&void 0!==H?H:{};return{account_id:null!==(J=ei.account_id)&&void 0!==J?J:"",payload:null!==(Q=ei.payload)&&void 0!==Q?Q:"",status:null!==(ee=ei.status)&&void 0!==ee?ee:-1,topic:ei.topic}});G.getResponse=eu;let ec=W=>Q(void 0,void 0,void 0,function*(){let H=yield fetch(`${G.proxyApi}/${W}`,{headers:{"content-type":"application/json"},method:"DELETE"});if(!1===H.ok)throw Error((yield H.text()))});G.deleteRequest=ec;let ef=(W,H)=>Q(void 0,void 0,void 0,function*(){let Q=(0,ei.base_encode)(JSON.stringify(Object.assign(Object.assign({},W),{_id:(0,eo.default)()}))),ee=(0,et.default)(Q),es=J.from(ee,"hex").toString("base64"),eu=es.replaceAll("/","_").replaceAll("-","+").slice(0,13),ec=yield fetch(`${G.proxyApi}/${eu}/request`,{method:"POST",signal:H,body:JSON.stringify({topic_id:(0,ea.getDeviceId)(),data:Q}),headers:{"content-type":"application/json"}});if(!1===ec.ok)throw Error((yield ec.text()));return eu});G.createRequest=ef},85887:function(W,G,H){"use strict";var J=this&&this.__createBinding||(Object.create?function(W,G,H,J){void 0===J&&(J=H),Object.defineProperty(W,J,{enumerable:!0,get:function(){return G[H]}})}:function(W,G,H,J){void 0===J&&(J=H),W[J]=G[H]}),Q=this&&this.__exportStar||function(W,G){for(var H in W)"default"===H||Object.prototype.hasOwnProperty.call(G,H)||J(G,W,H)};Object.defineProperty(G,"__esModule",{value:!0}),G.HereWallet=void 0;var ee=H(44022);Object.defineProperty(G,"HereWallet",{enumerable:!0,get:function(){return ee.HereWallet}}),Q(H(54354),G),Q(H(9703),G),Q(H(63818),G),Q(H(789),G),Q(H(79705),G),Q(H(94138),G),Q(H(25534),G),Q(H(13433),G),Q(H(4987),G),Q(H(33991),G)},10608:function(W,G,H){"use strict";var J=H(80854).Buffer,Q=this&&this.__createBinding||(Object.create?function(W,G,H,J){void 0===J&&(J=H),Object.defineProperty(W,J,{enumerable:!0,get:function(){return G[H]}})}:function(W,G,H,J){void 0===J&&(J=H),W[J]=G[H]}),ee=this&&this.__setModuleDefault||(Object.create?function(W,G){Object.defineProperty(W,"default",{enumerable:!0,value:G})}:function(W,G){W.default=G}),et=this&&this.__importStar||function(W){if(W&&W.__esModule)return W;var G={};if(null!=W)for(var H in W)"default"!==H&&Object.prototype.hasOwnProperty.call(W,H)&&Q(G,W,H);return ee(G,W),G},eo=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.verifySignature=G.authPayloadSchema=G.AuthPayload=void 0;let ei=et(H(66012)),ea=eo(H(36616)),es=H(39606);class eu{constructor({message:W,nonce:G,recipient:H,callbackUrl:J}){this.tag=2147484061,this.message=W,this.nonce=G,this.recipient=H,J&&(this.callbackUrl=J)}}function ec(W,H){let Q=new eu(W),ee=ei.serialize(G.authPayloadSchema,Q),et=Uint8Array.from(ea.default.sha256.array(ee)),eo=new Uint8Array(J.from(H.signature,"base64")),ec=es.PublicKey.from(H.publicKey);return ec.verify(et,eo)}G.AuthPayload=eu,G.authPayloadSchema=new Map([[eu,{kind:"struct",fields:[["tag","u32"],["message","string"],["nonce",[32]],["recipient","string"],["callbackUrl",{kind:"option",type:"string"}]]}]]),G.verifySignature=ec},25534:function(W,G){"use strict";var H;Object.defineProperty(G,"__esModule",{value:!0}),G.HereProviderError=G.HereProviderStatus=void 0,function(W){W[W.APPROVING=1]="APPROVING",W[W.FAILED=2]="FAILED",W[W.SUCCESS=3]="SUCCESS"}(H=G.HereProviderStatus||(G.HereProviderStatus={}));class J extends Error{constructor(W,G){super(null!=W?W:null==G?void 0:G.message),this.payload=W,this.parentError=G}}G.HereProviderError=J},13433:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0})},4987:function(W,G,H){"use strict";var J=H(80854).Buffer,Q=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})},ee=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.isValidAccessKey=G.internalThrow=G.getPublicKeys=G.serializeActions=G.isMobile=G.getDeviceId=void 0;let et=ee(H(77339)),eo=H(25534),ei=()=>{let W=window.localStorage.getItem("herewallet-topic")||(0,et.default)();return window.localStorage.setItem("herewallet-topic",W),W};G.getDeviceId=ei;let ea=()=>window.matchMedia("(any-pointer:coarse)").matches;G.isMobile=ea;let es=W=>W.map(W=>{if("FunctionCall"!==W.type)return W;let{args:G,deposit:H,gas:Q,methodName:ee}=W.params;return ArrayBuffer.isView(G)&&(G=J.from(G.buffer,G.byteOffset,G.byteLength)),G instanceof J&&(G=G.toString("base64")),{type:W.type,params:{args:G,deposit:H,gas:Q,methodName:ee}}});G.serializeActions=es;let eu=(W,G)=>Q(void 0,void 0,void 0,function*(){let H=yield fetch(W,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:"dontcare",method:"query",params:{request_type:"view_access_key_list",finality:"final",account_id:G}}),headers:{"content-type":"application/json"}});if(!1===H.ok)return[];let J=yield H.json();return J.result.keys});G.getPublicKeys=eu;let ec=(W,G)=>{var H,J,Q;if(W instanceof eo.HereProviderError)throw W;let ee={payload:W instanceof Error?W.message:"UNKNOWN",status:eo.HereProviderStatus.FAILED,account_id:""};throw null===(H=G.onFailed)||void 0===H||H.call(G,ee),null===(Q=null===(J=null==G?void 0:G.strategy)||void 0===J?void 0:J.onFailed)||void 0===Q||Q.call(J,ee),W};G.internalThrow=ec;let ef=(W,G,H)=>{let{permission:J}=G.access_key;if("FullAccess"===J)return!0;if(J.FunctionCall){let{receiver_id:G,method_names:Q}=J.FunctionCall;if(G===W&&Q.includes("add_request_and_confirm"))return!0;if(G===H.receiverId)return 1===H.actions.length&&H.actions.every(W=>"FunctionCall"===W.type&&(!W.params.deposit||"0"===W.params.deposit.toString())&&(0===Q.length||Q.includes(W.params.methodName)))}return!1};G.isValidAccessKey=ef},44022:function(W,G,H){"use strict";var J=H(80854).Buffer,Q=this&&this.__awaiter||function(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})},ee=this&&this.__rest||function(W,G){var H={};for(var J in W)Object.prototype.hasOwnProperty.call(W,J)&&0>G.indexOf(J)&&(H[J]=W[J]);if(null!=W&&"function"==typeof Object.getOwnPropertySymbols)for(var Q=0,J=Object.getOwnPropertySymbols(W);Q<J.length;Q++)0>G.indexOf(J[Q])&&Object.prototype.propertyIsEnumerable.call(W,J[Q])&&(H[J[Q]]=W[J[Q]]);return H},et=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(G,"__esModule",{value:!0}),G.HereWallet=void 0;let eo=H(52434),ei=H(82759),ea=H(11634),es=H(36616),eu=H(32519),ec=et(H(60079)),ef=H(9703),ed=H(25534),eh=H(4987),ep=H(33991),ey=H(54354),ev=H(79705),em=H(10608);class eg extends Error{}class eb{constructor({nodeUrl:W,networkId:G="mainnet",authStorage:H=new ef.HereKeyStore,defaultStrategy:J=()=>new ev.WidgetStrategy,defaultProvider:Q=ep.proxyProvider}={}){this.authStorage=H,this.defaultProvider=Q,this.defaultStrategy=J;let ee=new eo.InMemorySigner(this.authStorage),et=new ei.JsonRpcProvider({url:null!=W?W:`https://rpc.${G}.near.org`});this.connection=eo.Connection.fromConfig({jsvmAccountId:`jsvm.${G}`,provider:et,networkId:G,signer:ee})}get rpc(){return this.connection.provider}get signer(){return this.connection.signer}get networkId(){return this.connection.networkId}account(W){return Q(this,void 0,void 0,function*(){let G=null!=W?W:yield this.authStorage.getActiveAccount(this.networkId);if(null==G)throw new eg("Wallet not signed in");return new eo.Account(this.connection,G)})}isSignedIn(){return Q(this,void 0,void 0,function*(){let W=yield this.authStorage.getActiveAccount(this.networkId);return null!=W})}signOut(){return Q(this,void 0,void 0,function*(){let W=yield this.authStorage.getActiveAccount(this.networkId);if(null==W)throw new eg("Wallet not signed in");let G=yield this.authStorage.getKey(this.networkId,W);if(null!=G){let H=G.getPublicKey().toString();yield this.silentSignAndSendTransaction({receiverId:W,actions:[{type:"DeleteKey",params:{publicKey:H}}]}).catch(()=>{})}yield this.authStorage.removeKey(this.networkId,W)})}getHereBalance(W){return Q(this,void 0,void 0,function*(){let G=yield this.account(W),H="mainnet"===this.networkId?"here.storage.near":"here.storage.testnet",J=yield G.viewFunction({args:{account_id:G.accountId},methodName:"ft_balance_of",contractId:H}).catch(()=>"0");return new ec.default(J)})}getAvailableBalance(W){return Q(this,void 0,void 0,function*(){let G=yield this.account(W),H=yield G.getAccountBalance(),J=yield this.getHereBalance();return new ec.default(H.available).add(new ec.default(J))})}getAccounts(){return Q(this,void 0,void 0,function*(){return yield this.authStorage.getAccounts(this.networkId)})}getAccountId(){return Q(this,void 0,void 0,function*(){let W=yield this.authStorage.getActiveAccount(this.networkId);if(null==W)throw new eg("Wallet not signed in");return W})}switchAccount(W){return Q(this,void 0,void 0,function*(){let G=yield this.authStorage.getKey(this.networkId,W);if(null==G)throw Error(`Account ${W} not signed in`);yield this.authStorage.setActiveAccount(this.networkId,W)})}signIn(W={}){var G,H,J,et,ei,{contractId:es,allowance:eu,methodNames:ec=[]}=W,ef=ee(W,["contractId","allowance","methodNames"]);return Q(this,void 0,void 0,function*(){if(null==es){let{accountId:W}=yield this.authenticate(ef);return yield this.authStorage.setKey(this.networkId,W,ea.KeyPairEd25519.fromRandom()),yield this.authStorage.setActiveAccount(this.networkId,W),W}ef.strategy=null!==(G=ef.strategy)&&void 0!==G?G:this.defaultStrategy(),ef.provider=null!==(H=ef.provider)&&void 0!==H?H:this.defaultProvider,null===(J=ef.onInitialized)||void 0===J||J.call(ef),null===(ei=null===(et=ef.strategy)||void 0===et?void 0:et.onInitialized)||void 0===ei||ei.call(et);try{let W=eo.KeyPair.fromRandom("ed25519"),G={receiverId:es,methodNames:ec,allowance:eu},H=yield ef.provider(Object.assign(Object.assign({},ef),{request:{type:"call",network:this.networkId,transactions:[{actions:[{type:"AddKey",params:{publicKey:W.getPublicKey().toString(),accessKey:{permission:G}}}]}]}}));if(null==H.account_id)throw Error("Transaction is failed");return yield this.authStorage.setKey(this.networkId,H.account_id,W),yield this.authStorage.setActiveAccount(this.networkId,H.account_id),H.account_id}catch(W){throw(0,eh.internalThrow)(W,ef),W}})}silentSignAndSendTransaction({actions:W,receiverId:G,signerId:H}){return Q(this,void 0,void 0,function*(){let J=yield this.account(H),Q=yield this.authStorage.getKey(this.networkId,J.accountId);if(null==Q)throw new eg;let ee=Q.getPublicKey(),et=yield J.getAccessKeys(),eo={receiverId:G,actions:W},ei=et.some(W=>W.public_key===ee.toString()&&(0,eh.isValidAccessKey)(J.accountId,W,eo));if(!1===ei)throw new eg;return yield J.signAndSendTransaction({actions:W.map(W=>(0,ey.createAction)(W)),receiverId:null!=G?G:J.accountId})})}signAndSendTransaction(W){var G,H,J,et,eo,ei,ea,es;return Q(this,void 0,void 0,function*(){let{signerId:Q,receiverId:eu,actions:ec}=W,ef=ee(W,["signerId","receiverId","actions"]),ep=ef;ep.strategy=null!==(G=ep.strategy)&&void 0!==G?G:this.defaultStrategy(),ep.provider=null!==(H=ep.provider)&&void 0!==H?H:this.defaultProvider,null===(J=ep.onInitialized)||void 0===J||J.call(ep),null===(eo=null===(et=ep.strategy)||void 0===et?void 0:et.onInitialized)||void 0===eo||eo.call(et);try{let W=yield this.silentSignAndSendTransaction({receiverId:eu,actions:ec,signerId:Q}),G={status:ed.HereProviderStatus.SUCCESS,payload:null==W?void 0:W.transaction_outcome.id};return null===(ei=ep.onSuccess)||void 0===ei||ei.call(ep,G),null===(es=null===(ea=ep.strategy)||void 0===ea?void 0:ea.onSuccess)||void 0===es||es.call(ea,G),W}catch(W){try{if(!(W instanceof eg)&&(null==W?void 0:W.type)!=="NotEnoughAllowance")throw(0,eh.internalThrow)(W,ep),W;let G=yield ep.provider(Object.assign(Object.assign({},ep),{request:{type:"call",transactions:[{actions:(0,eh.serializeActions)(ec),receiverId:eu,signerId:Q}],network:this.networkId}}));if(null==G.payload||null==G.account_id)throw Error("Transaction not found, but maybe executed");return yield this.rpc.txStatus(G.payload,G.account_id)}catch(W){throw(0,eh.internalThrow)(W,ep),W}}})}verifyMessageNEP0413(W,G){return Q(this,void 0,void 0,function*(){let H=(0,em.verifySignature)(W,G);if(!H)throw Error("Incorrect signature");let J=yield this.account(G.accountId),Q=yield J.getAccessKeys(),ee=Q.some(W=>W.public_key===G.publicKey&&"FullAccess"===W.access_key.permission);if(!ee)throw Error("Signer public key is not full access");return!0})}authenticate(W={}){var G,H,J;return Q(this,void 0,void 0,function*(){let Q={nonce:null!==(G=W.nonce)&&void 0!==G?G:(0,eu.randomBytes)(32),recipient:null!==(H=W.recipient)&&void 0!==H?H:window.location.host,message:null!==(J=W.message)&&void 0!==J?J:"Authenticate"},ee=yield this.signMessage(Object.assign(Object.assign({},Q),W));return yield this.verifyMessageNEP0413(Q,ee),ee})}signMessage(W){var G,H,J,ee,et;return Q(this,void 0,void 0,function*(){if(W.strategy=null!==(G=W.strategy)&&void 0!==G?G:this.defaultStrategy(),W.provider=null!==(H=W.provider)&&void 0!==H?H:this.defaultProvider,null===(J=W.onInitialized)||void 0===J||J.call(W),null===(et=null===(ee=W.strategy)||void 0===ee?void 0:ee.onInitialized)||void 0===et||et.call(ee),"receiver"in W)return yield this.legacySignMessage(W);let Q=yield W.provider(Object.assign(Object.assign({},W),{request:{type:"sign",message:W.message,recipient:W.recipient,nonce:Array.from(W.nonce),network:this.networkId}}));if((null==Q?void 0:Q.payload)==null)throw Error("Signature not found");let{publicKey:eo,signature:ei,accountId:ea}=JSON.parse(Q.payload);return{publicKey:eo,signature:ei,accountId:ea}})}legacySignMessage(W){var G,{message:H,receiver:et,nonce:eo}=W,ei=ee(W,["message","receiver","nonce"]);return Q(this,void 0,void 0,function*(){if(null==eo){let W=new Uint8Array(32);eo=[...crypto.getRandomValues(W)]}let W=yield null===(G=ei.provider)||void 0===G?void 0:G.call(ei,Object.assign(Object.assign({},ei),{request:{type:"sign",message:H,receiver:et,nonce:eo,network:this.networkId}}));if((null==W?void 0:W.payload)==null)throw Error("Signature not found");try{let{publicKey:G,signature:Q,accountId:ee}=JSON.parse(W.payload),ei=new Uint8Array(J.from(Q,"base64")),eu=JSON.stringify({message:H,receiver:et,nonce:eo}),ec=new Uint8Array(es.sha256.digest("NEP0413:"+eu)),ef=ea.PublicKey.from(G).verify(ec,ei);if(!1===ef)throw Error();let ed=yield this.account(ee),eh=yield ed.getAccessKeys(),ep=G.toString(),ey=eh.some(W=>W.public_key===ep&&"FullAccess"===W.access_key.permission);if(!1===ey)throw Error();return{signature:new Uint8Array(J.from(Q,"base64")),publicKey:ea.PublicKey.from(G),message:"NEP0413:"+eu,receiver:et,accountId:ee,nonce:eo}}catch(W){throw Error("Signature not correct")}})}signAndSendTransactions(W){var G,H,J,et,eo,ei,ea,es,{transactions:eu}=W,ec=ee(W,["transactions"]);return Q(this,void 0,void 0,function*(){ec.strategy=null!==(G=ec.strategy)&&void 0!==G?G:this.defaultStrategy(),ec.provider=null!==(H=ec.provider)&&void 0!==H?H:this.defaultProvider,null===(J=ec.onInitialized)||void 0===J||J.call(ec),null===(eo=null===(et=ec.strategy)||void 0===et?void 0:et.onInitialized)||void 0===eo||eo.call(et);let W=[];try{for(let G of eu){let H=yield this.silentSignAndSendTransaction(G);W.push(H)}let G=W.map(W=>W.transaction_outcome.id).join(","),H={status:ed.HereProviderStatus.SUCCESS,payload:G};return null===(ei=ec.onSuccess)||void 0===ei||ei.call(ec,H),null===(es=null===(ea=ec.strategy)||void 0===ea?void 0:ea.onSuccess)||void 0===es||es.call(ea,H),W}catch(G){try{if(!(G instanceof eg)&&(null==G?void 0:G.type)!=="NotEnoughAllowance")throw(0,eh.internalThrow)(G,ec),G;let H=eu.slice(W.length),J=yield ec.provider(Object.assign(Object.assign({},ec),{request:{type:"call",transactions:H.map(W=>Object.assign(Object.assign({},W),{actions:(0,eh.serializeActions)(W.actions)})),network:this.networkId}}));if(null==J.payload||null==J.account_id)throw Error("Transaction not found, but maybe executed");let Q=J.payload.split(",").map(W=>this.rpc.txStatus(W,J.account_id));return yield Promise.all(Q)}catch(W){throw(0,eh.internalThrow)(W,ec),W}}})}}G.HereWallet=eb},72580:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.THEME_SMALL_WINDOW_WIDTH_MAX=G.THEME_CONSTANT_BADGE_GREY_COLOR=G.THEME_CONSTANT_GREEN_COLOR=G.THEME_CONSTANT_RED_COLOR=G.THEME_CONSTANT_COLOR_DARK=G.THEME_CONSTANT_COLOR_BRAND=G.SIGN_POPUP_HEIGHT=G.SIGN_POPUP_WIDTH=void 0,G.SIGN_POPUP_WIDTH=390,G.SIGN_POPUP_HEIGHT=650,G.THEME_CONSTANT_COLOR_BRAND="#471be8",G.THEME_CONSTANT_COLOR_DARK="#101046",G.THEME_CONSTANT_RED_COLOR="#e25252",G.THEME_CONSTANT_GREEN_COLOR="#8bdaa1",G.THEME_CONSTANT_BADGE_GREY_COLOR="rgba(116,117,126,0.67)",G.THEME_SMALL_WINDOW_WIDTH_MAX=600},38266:function(W,G){"use strict";var H,J;Object.defineProperty(G,"__esModule",{value:!0}),G.ENearNetworkSuffix=G.ENearNetwork=void 0,function(W){W.localnet="localnet",W.testnet="testnet",W.betanet="betanet",W.mainnet="mainnet"}(H=G.ENearNetwork||(G.ENearNetwork={})),function(W){W.testnet=".testnet",W.mainnet=".near"}(J=G.ENearNetworkSuffix||(G.ENearNetworkSuffix={}))},81839:function(W,G){"use strict";var H;Object.defineProperty(G,"__esModule",{value:!0}),G.getExternalActionErrorMessageForEndTag=G.EDappActionErrorTag=void 0,function(W){W.NEW_ACTION_STARTED="NEW_ACTION_STARTED",W.INCOMPLETE_ACTION="INCOMPLETE_ACTION",W.NO_ACCOUNTS="NO_ACCOUNTS",W.WINDOW_CLOSED="WINDOW_CLOSED",W.USER_CANCELLED="USER_CANCELLED",W.POPUP_WINDOW_REFUSED="POPUP_WINDOW_REFUSED",W.POPUP_WINDOW_OPEN_FAILED="POPUP_WINDOW_OPEN_FAILED"}(H=G.EDappActionErrorTag||(G.EDappActionErrorTag={}));let J={[H.WINDOW_CLOSED]:"User closed the window",[H.INCOMPLETE_ACTION]:"User didn't complete the action",[H.NEW_ACTION_STARTED]:"A new action was started by the user, old action failed",[H.POPUP_WINDOW_OPEN_FAILED]:"Popup window failed to open",[H.POPUP_WINDOW_REFUSED]:"User refused to allow the popup window to open",[H.USER_CANCELLED]:"User cancelled the action",[H.NO_ACCOUNTS]:"No Meteor account found- try again after creating one"};function Q(W){return J[W]??"An unknown error occurred"}G.getExternalActionErrorMessageForEndTag=Q},88301:function(W,G,H){"use strict";var J,Q,ee,et,eo,ei,ea,es;Object.defineProperty(G,"__esModule",{value:!0}),G.EDappActionConnectionStatus=G.EDappActionSource=G.EMeteorInjectedFeature=G.EMeteorExtensionDirectActionType=G.EWalletExternalActionStatus=G.EWalletExternalAction_SignIn_AccessType=G.EMeteorWalletSignInType=G.EExternalActionType=G.MeteorActionError=void 0;let eu=H(81839);class ec extends Error{constructor(W,G){super(),null==W.message&&(W.message=(0,eu.getExternalActionErrorMessageForEndTag)(W.endTags?.[W.endTags.length-1]??"unknown")),this._reason=W,this.message=W.message,this.name="MeteorActionError",this.cause=G}}G.MeteorActionError=ec,function(W){W.login="login",W.sign="sign",W.logout="logout",W.verify_owner="verify_owner",W.keypom_claim="keypom_claim",W.sign_message="sign_message"}(J=G.EExternalActionType||(G.EExternalActionType={})),function(W){W.ALL_METHODS="ALL_METHODS",W.SELECTED_METHODS="SELECTED_METHODS",W.FULL_ACCESS="FULL_ACCESS"}(Q=G.EMeteorWalletSignInType||(G.EMeteorWalletSignInType={})),function(W){W.FULL_ACCESS="fullAccess",W.LIMITED_ACCESS="limitedAccess"}(ee=G.EWalletExternalAction_SignIn_AccessType||(G.EWalletExternalAction_SignIn_AccessType={})),function(W){W.UNCONFIRMED="UNCONFIRMED",W.PENDING="PENDING",W.SUCCESS="SUCCESS",W.FAILURE="FAILURE"}(et=G.EWalletExternalActionStatus||(G.EWalletExternalActionStatus={})),function(W){W.check_sync_status="check_sync_status",W.sync_accounts="sync_accounts",W.open_page="open_page"}(eo=G.EMeteorExtensionDirectActionType||(G.EMeteorExtensionDirectActionType={})),function(W){W.open_page="open_page",W.batch_import="batch_import",W.sync_check="sync_check",W.account_sync="account_sync"}(ei=G.EMeteorInjectedFeature||(G.EMeteorInjectedFeature={})),function(W){W.website_callback="wcb",W.website_post_message="wpm",W.website_visit="wv",W.extension_injected="ext"}(ea=G.EDappActionSource||(G.EDappActionSource={})),function(W){W.initializing="initializing",W.connected="connected",W.attempting_reconnect="attempting_reconnect",W.disconnected="disconnected",W.closed_success="closed_success",W.closed_fail="closed_fail",W.closed_window="closed_window"}(es=G.EDappActionConnectionStatus||(G.EDappActionConnectionStatus={}))},30704:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.StringUtils=G.stringToConstantStyledString=G.convertToSlug=G.pad=G.createPadder=G.BetterStringArray=G.safeAppend=G.firstNotNullEmpty=G.nullEmpty=G.notNullEmpty=G.StringRegex=void 0,G.StringRegex={digitsRegex:/\b\d+\b/gi};let H=W=>null!=W&&W.length>0;G.notNullEmpty=H;let J=W=>!(0,G.notNullEmpty)(W);G.nullEmpty=J;let Q=(...W)=>{for(let H of W)if((0,G.notNullEmpty)(H))return H};G.firstNotNullEmpty=Q;let ee=W=>{for(let H of W)if((0,G.nullEmpty)(H))return!0;return!1},et=(W,H,J=null)=>(0,G.notNullEmpty)(W)?W+H:null!=J?J:H;G.safeAppend=et;class eo extends Array{pushIfNotNullEmpty(W){(0,G.notNullEmpty)(W)&&this.push(W)}}function ei(W,G,H=!1){return J=>ea(J,W,G,H)}function ea(W,G,H,J=!1){let Q=H-`${W}`.length;if(Q>0){let H=Array(Q).fill(G);return J?`${W}${H.join("")}`:`${H.join("")}${W}`}return`${W}`}G.BetterStringArray=eo,G.createPadder=ei,G.pad=ea;let es=RegExp("\\s+","g"),eu=/--+/g,ec=RegExp("^-+","g"),ef=/-+$/g,ed=/-/g,eh=RegExp("[^\\w\\-]+","g"),ep=/_/g;function ey(W){return W.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let ev=(W,{slugDivider:G="-",letterCase:H="LOWER",normalize:J=!0,excludeCharacters:Q=[]}={})=>{if(!W||0===W.length)return"";let ee=W.toString();return J&&(ee=ee.normalize("NFD")),"LOWER"===H?ee=ee.toLowerCase():"UPPER"===H&&(ee=ee.toUpperCase()),ee.replace(es,"-").replace(Q.length>0?RegExp(`[^\\w\\-${Q.map(W=>ey(W)).join("")}]+`,"g"):eh,"").replace(Q.includes("_")?es:ep,"-").replace(eu,"-").replace(ec,"").replace(ef,"").replace(ed,G)};G.convertToSlug=ev;let em=W=>(0,G.convertToSlug)(W,{normalize:!0,slugDivider:"_",letterCase:"UPPER"});G.stringToConstantStyledString=em;let eg=W=>{let G="";for(let H of W)G=`${H}${G}`;return G};function eb(W){return(W=W||"")!==decodeURIComponent(W)}let ew=W=>{let G=0;for(;eb(W);)if(G+=1,W=decodeURIComponent(W),G>20)throw Error("String Utils: Decode URI Fully: Enacted while loop too many times with attempt to decode fully.");return W},e_=(W,G,{spaceAware:H=!0,insideWords:J=!1}={})=>{let Q=`${W}`;for(let W of G)if(H){if(J){let G=[RegExp(`\\s${W}\\s`,"g"),RegExp(`\\s${W}`,"g"),RegExp(`${W}\\s`,"g")];for(let W of G)W.test(Q)&&(console.log(`Replacing "${W}" in "${Q}"`),Q=Q.replace(W," "),console.log(`Text after: "${Q}"`))}else Q.indexOf(` ${W} `)>=0?Q=Q.replace(` ${W} `," "):(Q.startsWith(`${W} `)&&(Q=Q.substring(W.length+1)),Q.endsWith(` ${W}`)&&(Q=Q.substring(0,Q.length-(W.length+1))))}else Q.indexOf(W)>=0&&(Q=Q.replace(W,""));return Q.trim()};function eS(W,G){let H=W.toLowerCase(),J=G.toLowerCase();return H<J?-1:H>J?1:0}function eE(W,G){return W>G?1:W<G?-1:0}function eO(W){let H=[];for(let J of W)(0,G.notNullEmpty)(J)&&H.push(J);return H}let eA=(...W)=>W.filter(W=>W).map((W,G,H)=>{let J=0!==G,Q=G!==H.length-1;return J&&(W=W.startsWith("/")?W.slice(1):W),Q&&(W=W.endsWith("/")?W.slice(0,-1):W),W}).join("/"),eP=(W,G)=>{let H=G.startsWith("http://")||G.startsWith("https://");return H?G:eA(W,G)},eM=W=>{let G=W.match(/^[a-zA-Z0-9]+$/);return!!G};G.StringUtils={isUriEncoded:eb,decodeUriFully:ew,StringRegex:G.StringRegex,reverse:eg,notNullEmpty:G.notNullEmpty,nullEmpty:G.nullEmpty,anyNullEmpty:ee,safeAppend:G.safeAppend,createPadder:ei,pad:ea,convertToSlug:G.convertToSlug,stringToConstantStyledString:G.stringToConstantStyledString,removeAndTrim:e_,sortCompareStrings:eS,comparePure:eE,onlyNotNullEmpty:eO,firstNotNullEmpty:G.firstNotNullEmpty,joinIntoUrl:eA,getUrlWithBaseUrl:eP,isHashId:eM}},89982:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.EnvironmentStateAdapter_Sync=G.EnvironmentStateAdapter=void 0;class H{constructor(W){this.implementation=W}async setJson(W,G){await this.implementation.setString(W,JSON.stringify(G))}async getJson(W){let G=await this.implementation.getString(W);if(null!=G&&"undefined"!==G&&"null"!==G)return JSON.parse(G)}async setString(W,G){await this.implementation.setString(W,G)}async getString(W){let G=await this.implementation.getString(W);if(null!=G)return G}createJsonGetterSetter(W){return{get:()=>this.getJson(W),set:G=>this.setJson(W,G)}}createStringGetterSetter(W){return{get:()=>this.getString(W),set:G=>this.setString(W,G)}}}G.EnvironmentStateAdapter=H;class J{constructor(W){this.implementation=W}setJson(W,G){this.implementation.setString(W,JSON.stringify(G))}getJson(W){let G=this.implementation.getString(W);if(null!=G&&"undefined"!==G&&"null"!==G)return JSON.parse(G)}setString(W,G){this.implementation.setString(W,G)}getString(W){let G=this.implementation.getString(W);if(null!=G)return G}clear(W){this.implementation.clear(W)}createJsonGetterSetter(W){return{get:()=>this.getJson(W),set:G=>this.setJson(W,G)}}createStringGetterSetter(W){return{get:()=>this.getString(W),set:G=>this.setString(W,G)}}}G.EnvironmentStateAdapter_Sync=J},71002:function(W,G,H){"use strict";var J=H(80854).Buffer;Object.defineProperty(G,"__esModule",{value:!0}),G.ConnectedMeteorWalletAccount=G.MeteorWallet=void 0;let Q=H(52434),ee=H(58598),et=H(88301),eo=H(66012),ei=H(30704),ea=H(89982),es=H(3109),eu=H(30639),ec=H(12787),ef=H(34990),ed=H(62577),eh=H(60079),ep="add_request_and_confirm",ey="_meteor_wallet_auth_key",ev=new ea.EnvironmentStateAdapter_Sync({getString:W=>window.localStorage.getItem(W),setString:(W,G)=>window.localStorage.setItem(W,G),clear:W=>window.localStorage.removeItem(W)});new ea.EnvironmentStateAdapter_Sync({getString:W=>window.sessionStorage.getItem(W),setString:(W,G)=>window.sessionStorage.setItem(W,G),clear:W=>window.sessionStorage.removeItem(W)});class em{static async init({walletUrl:W,...G}){let H=new Q.keyStores.BrowserLocalStorageKeyStore,J=await (0,Q.connect)({keyStore:H,headers:{},walletUrl:(0,es.resolveWalletUrl)(G.networkId,W),...(0,es.getNetworkPreset)(G.networkId),...G}),ee=new em({near:J,appKeyPrefix:"near_app"});return ee.isSignedIn()||await H.clear(),ee}constructor({near:W,appKeyPrefix:G=W.config.contractName??"default"}){this._initializationPromises=[],this._near=W;let H=G+ey;this._authDataKey=H,this._authData=ev.getJson(H)??{allKeys:[]},this._networkId=W.config.networkId,this._walletBaseUrl=W.config.walletUrl,this._keyStore=W.connection.signer.keyStore}isExtensionInstalled(){return null!=window.meteorWallet}isSignedIn(){return!!this._authData.accountId}getAccountId(){return this._authData.accountId}async verifyOwner(W){let G=W.accountId??this.getAccountId(),H=await (0,eu.getMeteorPostMessenger)().connectAndWaitForResponse({actionType:et.EExternalActionType.verify_owner,inputs:{accountId:G,message:W.message},network:this._networkId});if(H.success)return H;throw new et.MeteorActionError({endTags:H.endTags,message:H.message})}async requestSignIn(W){let{keyPair:G,...H}=W,J=G??Q.KeyPair.fromRandom("ed25519"),ee=J.getPublicKey().toString(),eo=await (0,eu.getMeteorPostMessenger)().connectAndWaitForResponse({actionType:et.EExternalActionType.login,inputs:{public_key:ee,...H},network:this._networkId});if(eo.success){let{allKeys:W,accountId:G}=eo.payload;return this._authData={accountId:G,allKeys:W,signedInContract:{contract_id:H.contract_id,public_key:ee}},ev.setJson(this._authDataKey,this._authData),await this._keyStore.setKey(this._networkId,G,J),{success:!0,endTags:[],payload:{accessKey:J,accountId:G}}}throw new et.MeteorActionError({endTags:eo.endTags,message:eo.message})}async signOut(){let W=this.getAccountId();if(null!=this._authData.signedInContract&&null!=W){let G={accountId:W,contractInfo:this._authData.signedInContract};await (0,eu.getMeteorPostMessenger)().connectAndWaitForResponse({actionType:et.EExternalActionType.logout,inputs:G,network:this._networkId})}this._authData={allKeys:[]},ev.clear(this._authDataKey)}async signMessage({message:W,nonce:G,recipient:H,callbackUrl:J,state:Q,accountId:ee}){let eo=await (0,eu.getMeteorPostMessenger)().connectAndWaitForResponse({actionType:et.EExternalActionType.sign_message,inputs:{message:W,nonce:G,recipient:H,callbackUrl:J,state:Q,accountId:ee},network:this._networkId});if(eo.success)return eo.payload.state=Q,eo;throw new et.MeteorActionError({endTags:eo.endTags,message:eo.message})}async requestSignTransactions(W){let{transactions:G}=W,H=await this.transformTransactions(G);console.log("Transformed transactions",H);let Q=await (0,eu.getMeteorPostMessenger)().connectAndWaitForResponse({actionType:et.EExternalActionType.sign,inputs:{transactions:H.map(W=>(0,eo.serialize)(ec.SCHEMA_V2,W)).map(W=>J.from(W).toString("base64")).join(",")},network:this._networkId});if(Q.success)return Q.payload.executionOutcomes;throw new et.MeteorActionError({endTags:Q.endTags,message:Q.message})}account(){let W=this.getAccountId();return(0,ei.notNullEmpty)(W)&&this._connectedAccount?.accountId!==W&&(this._connectedAccount=new eg(this,this._near.connection,W)),this._connectedAccount}async transformTransactions(W){let G=this.account(),{networkId:H,signer:J,provider:et}=G.connection,eo=await J.getPublicKey(G.accountId,H);return Promise.all(W.map(async(W,H)=>{let J=await G.accessKeyForTransaction(eo);if(!J)throw Error(`Failed to find matching key for transaction sent to ${W.receiverId}`);let ei=W.actions.map(W=>(0,ed.createAction)(W)),ea=await et.block({finality:"final"});return(0,ee.createTransaction)(G.accountId,ef.PublicKey.from(J.public_key),W.receiverId,new eh.BN(J.access_key.nonce).add(new eh.BN(H)).add(new eh.BN(1)),ei,Q.utils.serialize.base_decode(ea.header.hash))}))}}G.MeteorWallet=em;class eg extends Q.Account{constructor(W,G,H){super(G,H),this.meteorWallet=W}async signAndSendTransaction(...W){return"string"==typeof W[0]?this.signAndSendTransaction_direct({receiverId:W[0],actions:W[1]}):this.signAndSendTransaction_direct(W[0])}async trySendOrCreateTransaction({receiverId:W,actions:G}){let H=await this.connection.signer.getPublicKey(this.accountId,this.connection.networkId),J=await this.accessKeyForTransaction(H);if(null!=J&&"FullAccess"!==J.access_key.permission){let H=await this.accessKeyMatchesTransaction(J,W,G);if(!H)return{sent:!1,transaction:{receiverId:W,signerId:this.accountId,actions:G}}}if(J&&H&&H.toString()===J.public_key)try{return{executionOutcome:await super.signAndSendTransaction({receiverId:W,actions:G.map(W=>(0,ed.createAction)(W))}),sent:!0}}catch(W){if("NotEnoughAllowance"!==W.type)throw W}return{sent:!1,transaction:{receiverId:W,signerId:this.accountId,actions:G}}}async signAndSendTransaction_direct({receiverId:W,actions:G}){let{transaction:H,sent:J,executionOutcome:Q}=await this.trySendOrCreateTransaction({receiverId:W,actions:G});return J?Q:(await this.meteorWallet.requestSignTransactions({transactions:[H]}))[0]}async accessKeyMatchesTransaction(W,G,H){let{access_key:{permission:J}}=W;if("FullAccess"===J)return!0;if(console.log("Comparing access key and actions",{accessKey:W,receiverId:G,actions:H}),J.FunctionCall){let{receiver_id:W,method_names:Q}=J.FunctionCall;if(W===G&&Q.includes(ep))return!0;if(W===G){if(1!==H.length)return!1;let W=H[0];if(console.log(W),"FunctionCall"===W.type){let G=W.params;return(!G.deposit||"0"===G.deposit.toString())&&(0===Q.length||Q.includes(G.methodName))}}}return!1}async accessKeyForTransaction(W){let G=await this.getAccessKeys();if(console.log("accessKeys",G),W){let H=G.find(G=>G.public_key.toString()===W.toString());if(H)return H}let H=this.meteorWallet._authData.allKeys;for(let W of G)if(-1!==H.indexOf(W.public_key))return W;for(let W of G)if("FullAccess"===W.access_key.permission)return W;return null}}G.ConnectedMeteorWalletAccount=eg},33506:function(W,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.WALLET_URL_LOCALHOST_BASE=G.WALLET_URL_PRODUCTION_BASE=G.WALLET_URL_DEV_BASE=void 0,G.WALLET_URL_DEV_BASE="https://dev.wallet.meteorwallet.app",G.WALLET_URL_PRODUCTION_BASE="https://wallet.meteorwallet.app",G.WALLET_URL_LOCALHOST_BASE="https://localhost:3000"},37440:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.setEnvConfig=G.envConfig=void 0;let J=H(33506),Q="undefined"!=typeof window?window.localStorage.getItem("DEV__METEOR_WALLET_BASE_URL"):void 0;function ee(W){Object.assign(G.envConfig,W)}G.envConfig={wallet_base_url:Q??J.WALLET_URL_PRODUCTION_BASE},G.setEnvConfig=ee},2201:function(W,G,H){"use strict";var J=this&&this.__createBinding||(Object.create?function(W,G,H,J){void 0===J&&(J=H);var Q=Object.getOwnPropertyDescriptor(G,H);(!Q||("get"in Q?!G.__esModule:Q.writable||Q.configurable))&&(Q={enumerable:!0,get:function(){return G[H]}}),Object.defineProperty(W,J,Q)}:function(W,G,H,J){void 0===J&&(J=H),W[J]=G[H]}),Q=this&&this.__exportStar||function(W,G){for(var H in W)"default"===H||Object.prototype.hasOwnProperty.call(G,H)||J(G,W,H)};Object.defineProperty(G,"__esModule",{value:!0}),G.setEnvConfig=G.ENearNetwork=void 0,Q(H(71002),G),Q(H(3109),G),Q(H(33506),G),Q(H(88301),G);var ee=H(38266);Object.defineProperty(G,"ENearNetwork",{enumerable:!0,get:function(){return ee.ENearNetwork}});var et=H(37440);Object.defineProperty(G,"setEnvConfig",{enumerable:!0,get:function(){return et.setEnvConfig}})},12787:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.SCHEMA_V2=void 0;let J=H(34990),Q=H(58598);G.SCHEMA_V2=new Map([[Q.Signature,{kind:"struct",fields:[["keyType","u8"],["data",[64]]]}],[Q.SignedTransaction,{kind:"struct",fields:[["transaction",Q.Transaction],["signature",Q.Signature]]}],[Q.Transaction,{kind:"struct",fields:[["signerId","string"],["publicKey",J.PublicKey],["nonce","u64"],["receiverId","string"],["blockHash",[32]],["actions",[Q.Action]]]}],[J.PublicKey,{kind:"struct",fields:[["keyType","u8"],["data",[32]]]}],[Q.AccessKey,{kind:"struct",fields:[["nonce","u64"],["permission",Q.AccessKeyPermission]]}],[Q.AccessKeyPermission,{kind:"enum",field:"enum",values:[["functionCall",Q.FunctionCallPermission],["fullAccess",Q.FullAccessPermission]]}],[Q.FunctionCallPermission,{kind:"struct",fields:[["allowance",{kind:"option",type:"u128"}],["receiverId","string"],["methodNames",["string"]]]}],[Q.FullAccessPermission,{kind:"struct",fields:[]}],[Q.Action,{kind:"enum",field:"enum",values:[["createAccount",Q.CreateAccount],["deployContract",Q.DeployContract],["functionCall",Q.FunctionCall],["transfer",Q.Transfer],["stake",Q.Stake],["addKey",Q.AddKey],["deleteKey",Q.DeleteKey],["deleteAccount",Q.DeleteAccount],["signedDelegate",Q.SignedDelegate]]}],[Q.CreateAccount,{kind:"struct",fields:[]}],[Q.DeployContract,{kind:"struct",fields:[["code",["u8"]]]}],[Q.FunctionCall,{kind:"struct",fields:[["methodName","string"],["args",["u8"]],["gas","u64"],["deposit","u128"]]}],[Q.Transfer,{kind:"struct",fields:[["deposit","u128"]]}],[Q.Stake,{kind:"struct",fields:[["stake","u128"],["publicKey",J.PublicKey]]}],[Q.AddKey,{kind:"struct",fields:[["publicKey",J.PublicKey],["accessKey",Q.AccessKey]]}],[Q.DeleteKey,{kind:"struct",fields:[["publicKey",J.PublicKey]]}],[Q.DeleteAccount,{kind:"struct",fields:[["beneficiaryId","string"]]}],[Q.DelegateAction,{kind:"struct",fields:[["senderId","string"],["receiverId","string"],["actions",[Q.Action]],["nonce","u64"],["maxBlockHeight","u64"],["publicKey",J.PublicKey]]}],[Q.SignedDelegate,{kind:"struct",fields:[["delegateAction",Q.DelegateAction],["signature",Q.Signature]]}]])},30639:function(W,G,H){"use strict";let J;Object.defineProperty(G,"__esModule",{value:!0}),G.getMeteorPostMessenger=void 0;let Q=H(46465),ee=H(37440),et=H(88301),eo=H(84875),ei=H(81839),ea=H(72580);class es{constructor(W,G){let H=ee.envConfig.wallet_base_url,J=new URL(H);if(this.walletOrigin=J.origin,null==window.meteorCom){this.comType=et.EDappActionSource.website_post_message,console.log("No extension found. Need to connect to web popup for Meteor communication");let J={source:et.EDappActionSource.website_post_message,connectionUid:W.uid},Q=ea.SIGN_POPUP_WIDTH,ee=ea.SIGN_POPUP_HEIGHT,es=window.top.outerHeight/2+window.top.screenY-ee/2,eu=window.top.outerWidth/2+window.top.screenX-Q/2,ec=window.open(`${H}/connect/${W.network}/${W.actionType}?${(0,eo.stringify)(J)}`,"_blank",`popup=1,width=${Q},height=${ee},top=${es},left=${eu}`);if(null!=ec)this.websiteWindow=ec;else throw new et.MeteorActionError({message:"Couldn't open popup window to complete wallet action",endTags:[ei.EDappActionErrorTag.POPUP_WINDOW_OPEN_FAILED]});window.addEventListener("message",W=>G(W.data)),this.wasOpened=!1}else this.comType=et.EDappActionSource.extension_injected,this.wasOpened=!0,window.meteorCom.addMessageDataListener(G)}focus(){this.comType===et.EDappActionSource.website_post_message&&this.websiteWindow?.focus()}sendMessage(W){this.comType===et.EDappActionSource.website_post_message?this.websiteWindow?.postMessage(W,this.walletOrigin):window.meteorCom?.sendMessageData(W)}isWindowClosed(){return this.comType===et.EDappActionSource.website_post_message&&(this.websiteWindow?.closed??!0)}hasActiveWindow(){return this.comType!==et.EDappActionSource.website_post_message||null!=this.websiteWindow}close(){this.comType===et.EDappActionSource.website_post_message&&delete this.websiteWindow}}let eu=450;class ec{constructor(){this.connections=[];let W=ee.envConfig.wallet_base_url,G=new URL(W);this.baseWalletUrl=W,this.walletOrigin=G.origin,this.listener=W=>{if(null!=W){let G=this.connections.find(G=>G.uid===W.uid);null!=G&&(this.updateConnection(G.uid,{lastConnection:Date.now()}),W.status===et.EDappActionConnectionStatus.attempting_reconnect&&(this.updateConnection(G.uid,{status:et.EDappActionConnectionStatus.initializing}),this.sendComs()),W.status===et.EDappActionConnectionStatus.connected&&G.status===et.EDappActionConnectionStatus.initializing&&this.updateConnection(G.uid,{status:et.EDappActionConnectionStatus.connected}),W.status===et.EDappActionConnectionStatus.closed_success&&(G.resolve({success:!0,endTags:[],payload:W.payload}),this.updateConnection(G.uid,{status:et.EDappActionConnectionStatus.closed_success}),this.sendComs()),W.status===et.EDappActionConnectionStatus.closed_fail&&(this.updateConnection(G.uid,{status:et.EDappActionConnectionStatus.closed_fail}),this.sendComs(),G.reject(new et.MeteorActionError({endTags:W.endTags}))),W.status===et.EDappActionConnectionStatus.closed_window&&(this.updateConnection(G.uid,{status:et.EDappActionConnectionStatus.closed_window}),G.reject(new et.MeteorActionError({endTags:W.endTags,message:"User closed the window"}))),[et.EDappActionConnectionStatus.disconnected,et.EDappActionConnectionStatus.closed_fail,et.EDappActionConnectionStatus.closed_window,et.EDappActionConnectionStatus.closed_success].includes(W.status)&&this.removeConnection(G.uid))}}}removeConnection(W){this.connections=this.connections.filter(G=>G.uid!==W),0===this.connections.length&&(delete this.comWindow,clearInterval(this.comInterval),delete this.comInterval)}updateConnection(W,G){this.connections=this.connections.map(H=>H.uid===W?{...H,...G,uid:H.uid}:H)}sendComs(){if(this.comWindow?.hasActiveWindow()&&this.connections.length>0){if(null==this.comInterval&&(this.comInterval=setInterval(()=>this.sendComs(),eu)),this.comWindow.isWindowClosed()){if(this.comWindow.wasOpened){for(let W of this.connections)W.reject(new et.MeteorActionError({message:"User closed the window before completing the action",endTags:[ei.EDappActionErrorTag.INCOMPLETE_ACTION,ei.EDappActionErrorTag.WINDOW_CLOSED]}));this.connections=[],this.comWindow.close()}else console.log("Window is closed, need to allow popup")}else for(let{network:W,actionType:G,endTags:H,status:J,inputs:Q,uid:ee}of(this.comWindow.wasOpened=!0,this.connections)){let eo={endTags:H,actionType:G,status:J,uid:ee,network:W};J===et.EDappActionConnectionStatus.initializing&&(eo.inputs=Q),this.comWindow.sendMessage(eo)}}else clearInterval(this.comInterval),delete this.comInterval}addAndStartConnection(W){if(this.connections.length>0)for(let W of this.connections)W.status=et.EDappActionConnectionStatus.disconnected,W.endTags=[ei.EDappActionErrorTag.NEW_ACTION_STARTED];this.connections.push(W),null!=this.comWindow&&this.comWindow.hasActiveWindow()?this.comWindow.focus():this.comWindow=new es(W,this.listener),this.sendComs()}async connectAndWaitForResponse({actionType:W,network:G,inputs:H}){let J={uid:(0,Q.nanoid)(),actionType:W,lastAttemptedConnection:0,lastConnection:0,status:et.EDappActionConnectionStatus.initializing,promise:void 0,reject:void 0,resolve:void 0,currentPayload:{},inputs:H,network:G,endTags:[]},ee=new Promise((W,G)=>{J.resolve=W,J.reject=W=>{this.connections=this.connections.filter(W=>W.uid!==J.uid),G(W)}});return J.promise=ee,this.addAndStartConnection(J),await ee}}function ef(){return null==J&&(J=new ec),J}G.getMeteorPostMessenger=ef},3109:function(W,G,H){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.getNetworkPreset=G.resolveWalletUrl=void 0;let J=H(37440),Q=(W,G)=>{if(G)return G;let H=J.envConfig.wallet_base_url;switch(W){case"mainnet":return`${H}/connect/mainnet`;case"testnet":return`${H}/connect/testnet`;case"betanet":return`${H}/connect/betanet`;default:throw Error("Invalid wallet URL")}};G.resolveWalletUrl=Q;let ee=W=>{switch(W){case"mainnet":return{networkId:W,nodeUrl:"https://rpc.mainnet.near.org",helperUrl:"https://helper.mainnet.near.org",explorerUrl:"https://explorer.near.org"};case"testnet":return{networkId:W,nodeUrl:"https://rpc.testnet.near.org",helperUrl:"https://helper.testnet.near.org",explorerUrl:"https://explorer.testnet.near.org"};case"betanet":return{networkId:W,nodeUrl:"https://rpc.betanet.near.org",helperUrl:"https://helper.betanet.near.org",explorerUrl:"https://explorer.betanet.near.org"};default:throw Error(`Failed to find config for: '${W}'`)}};G.getNetworkPreset=ee},62577:function(W,G,H){"use strict";var J=H(80854).Buffer;Object.defineProperty(G,"__esModule",{value:!0}),G.createAction=G.parseArgs=void 0;let Q=H(60079),ee=H(58598),et=H(34990),eo=W=>{if("FullAccess"===W)return ee.actionCreators.fullAccessKey();let{receiverId:G,methodNames:H=[]}=W,J=W.allowance?new Q.BN(W.allowance):void 0;return ee.actionCreators.functionCallAccessKey(G,H,J)},ei=W=>"string"==typeof W?J.from(W,"base64"):W;G.parseArgs=ei;let ea=W=>{switch(W.type){case"CreateAccount":return ee.actionCreators.createAccount();case"DeployContract":{let{code:G}=W.params;return ee.actionCreators.deployContract(G)}case"FunctionCall":{let{methodName:H,args:J,gas:et,deposit:eo}=W.params;return ee.actionCreators.functionCall(H,(0,G.parseArgs)(J),new Q.BN(et),new Q.BN(eo))}case"Transfer":{let{deposit:G}=W.params;return ee.actionCreators.transfer(new Q.BN(G))}case"Stake":{let{stake:G,publicKey:H}=W.params;return ee.actionCreators.stake(new Q.BN(G),et.PublicKey.from(H))}case"AddKey":{let{publicKey:G,accessKey:H}=W.params;return ee.actionCreators.addKey(et.PublicKey.from(G),eo(H.permission))}case"DeleteKey":{let{publicKey:G}=W.params;return ee.actionCreators.deleteKey(et.PublicKey.from(G))}case"DeleteAccount":{let{beneficiaryId:G}=W.params;return ee.actionCreators.deleteAccount(G)}default:throw Error("Invalid action type")}};G.createAction=ea},81951:function(W,G,H){"use strict";H.r(G),H.d(G,{setupHereWallet:function(){return iD}});var J,Q,ee,et,eo,ei=H(85887),ea="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},es=function(W){return W&&W.Math==Math&&W},eu=es("object"==typeof globalThis&&globalThis)||es("object"==typeof window&&window)||es("object"==typeof self&&self)||es("object"==typeof ea&&ea)||function(){return this}()||Function("return this")(),ec={},ef=function(W){try{return!!W()}catch(W){return!0}},ed=!ef(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),eh=!ef(function(){var W=(function(){}).bind();return"function"!=typeof W||W.hasOwnProperty("prototype")}),ep=eh,ey=Function.prototype.call,ev=ep?ey.bind(ey):function(){return ey.apply(ey,arguments)},em={},eg={}.propertyIsEnumerable,eb=Object.getOwnPropertyDescriptor,ew=eb&&!eg.call({1:2},1);em.f=ew?function(W){var G=eb(this,W);return!!G&&G.enumerable}:eg;var e_=function(W,G){return{enumerable:!(1&W),configurable:!(2&W),writable:!(4&W),value:G}},eS=eh,eE=Function.prototype,eO=eE.bind,eA=eE.call,eP=eS&&eO.bind(eA,eA),eM=eS?function(W){return W&&eP(W)}:function(W){return W&&function(){return eA.apply(W,arguments)}},ej=eM,eT=ej({}.toString),ex=ej("".slice),eI=function(W){return ex(eT(W),8,-1)},eC=ef,eN=eI,ek=Object,eR=eM("".split),eD=eC(function(){return!ek("z").propertyIsEnumerable(0)})?function(W){return"String"==eN(W)?eR(W,""):ek(W)}:ek,eL=TypeError,eU=function(W){if(void 0==W)throw eL("Can't call method on "+W);return W},eF=eD,e$=eU,eB=function(W){return eF(e$(W))},eK=function(W){return"function"==typeof W},eW=eK,ez=function(W){return"object"==typeof W?null!==W:eW(W)},eG=eu,eq=eK,eH=function(W){return eq(W)?W:void 0},eV=function(W,G){return arguments.length<2?eH(eG[W]):eG[W]&&eG[W][G]},eJ=eM({}.isPrototypeOf),eY=eV("navigator","userAgent")||"",eZ=eu,eQ=eY,eX=eZ.process,e0=eZ.Deno,e1=eX&&eX.versions||e0&&e0.version,e2=e1&&e1.v8;e2&&(Q=(J=e2.split("."))[0]>0&&J[0]<4?1:+(J[0]+J[1])),!Q&&eQ&&(!(J=eQ.match(/Edge\/(\d+)/))||J[1]>=74)&&(J=eQ.match(/Chrome\/(\d+)/))&&(Q=+J[1]);var e5=Q,e6=ef,e3=!!Object.getOwnPropertySymbols&&!e6(function(){var W=Symbol();return!String(W)||!(Object(W) instanceof Symbol)||!Symbol.sham&&e5&&e5<41}),e8=e3&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,e4=eV,e9=eK,e7=eJ,te=Object,tt=e8?function(W){return"symbol"==typeof W}:function(W){var G=e4("Symbol");return e9(G)&&e7(G.prototype,te(W))},tr=String,tn=eK,ti=function(W){try{return tr(W)}catch(W){return"Object"}},ta=TypeError,tu=function(W){if(tn(W))return W;throw ta(ti(W)+" is not a function")},tc=function(W,G){var H=W[G];return null==H?void 0:tu(H)},tf=ev,td=eK,tp=ez,tv=TypeError,tm=function(W,G){var H,J;if("string"===G&&td(H=W.toString)&&!tp(J=tf(H,W))||td(H=W.valueOf)&&!tp(J=tf(H,W))||"string"!==G&&td(H=W.toString)&&!tp(J=tf(H,W)))return J;throw tv("Can't convert object to primitive value")},tg={exports:{}},tb=eu,tw=Object.defineProperty,t_=function(W,G){try{tw(tb,W,{value:G,configurable:!0,writable:!0})}catch(H){tb[W]=G}return G},tS=t_,tE="__core-js_shared__",tO=eu[tE]||tS(tE,{}),tA=tO;(tg.exports=function(W,G){return tA[W]||(tA[W]=void 0!==G?G:{})})("versions",[]).push({version:"3.23.3",mode:"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var tP=eU,tM=Object,tj=function(W){return tM(tP(W))},tT=tj,tI=eM({}.hasOwnProperty),tC=Object.hasOwn||function(W,G){return tI(tT(W),G)},tN=0,tk=Math.random(),tR=eM(1..toString),tD=function(W){return"Symbol("+(void 0===W?"":W)+")_"+tR(++tN+tk,36)},tL=eu,tU=tg.exports,tF=tC,t$=tD,tB=e3,tK=e8,tW=tU("wks"),tz=tL.Symbol,tG=tz&&tz.for,tq=tK?tz:tz&&tz.withoutSetter||t$,tH=function(W){if(!tF(tW,W)||!(tB||"string"==typeof tW[W])){var G="Symbol."+W;tB&&tF(tz,W)?tW[W]=tz[W]:tK&&tG?tW[W]=tG(G):tW[W]=tq(G)}return tW[W]},tV=ev,tJ=ez,tY=tt,tZ=tc,tQ=tm,tX=TypeError,rt=tH("toPrimitive"),rr=function(W,G){if(!tJ(W)||tY(W))return W;var H,J=tZ(W,rt);if(J){if(void 0===G&&(G="default"),!tJ(H=tV(J,W,G))||tY(H))return H;throw tX("Can't convert object to primitive value")}return void 0===G&&(G="number"),tQ(W,G)},rn=tt,ri=function(W){var G=rr(W,"string");return rn(G)?G:G+""},ra=ez,ru=eu.document,rc=ra(ru)&&ra(ru.createElement),rl=ef,rf=function(W){return rc?ru.createElement(W):{}},rd=!ed&&!rl(function(){return 7!=Object.defineProperty(rf("div"),"a",{get:function(){return 7}}).a}),rh=ed,rp=ev,ry=em,rv=e_,rg=eB,rw=ri,r_=tC,rS=rd,rE=Object.getOwnPropertyDescriptor;ec.f=rh?rE:function(W,G){if(W=rg(W),G=rw(G),rS)try{return rE(W,G)}catch(W){}if(r_(W,G))return rv(!rp(ry.f,W,G),W[G])};var rO={},rA=ef,rP=ed&&rA(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),rM=ez,rj=String,rT=TypeError,rI=function(W){if(rM(W))return W;throw rT(rj(W)+" is not an object")},rC=ed,rN=rd,rk=rP,rR=rI,rD=ri,rL=TypeError,rU=Object.defineProperty,rF=Object.getOwnPropertyDescriptor,r$="enumerable",rB="configurable",rK="writable";rO.f=rC?rk?function(W,G,H){if(rR(W),G=rD(G),rR(H),"function"==typeof W&&"prototype"===G&&"value"in H&&rK in H&&!H[rK]){var J=rF(W,G);J&&J[rK]&&(W[G]=H.value,H={configurable:rB in H?H[rB]:J[rB],enumerable:r$ in H?H[r$]:J[r$],writable:!1})}return rU(W,G,H)}:rU:function(W,G,H){if(rR(W),G=rD(G),rR(H),rN)try{return rU(W,G,H)}catch(W){}if("get"in H||"set"in H)throw rL("Accessors not supported");return"value"in H&&(W[G]=H.value),W};var rW=rO,rz=e_,rG=ed?function(W,G,H){return rW.f(W,G,rz(1,H))}:function(W,G,H){return W[G]=H,W},rq={exports:{}},rH=ed,rV=Function.prototype,rJ=rH&&Object.getOwnPropertyDescriptor,rY=tC(rV,"name"),rZ={PROPER:rY&&"something"===(function(){}).name,CONFIGURABLE:rY&&(!rH||rH&&rJ(rV,"name").configurable)},rQ=eK,rX=tO,ne=eM(Function.toString);rQ(rX.inspectSource)||(rX.inspectSource=function(W){return ne(W)});var nt=rX.inspectSource,nr=eK,nn=nt,no=eu.WeakMap,ni=nr(no)&&/native code/.test(nn(no)),na=tg.exports,nu=tD,nc=na("keys"),nl={},nf=ni,nd=eu,nh=eM,np=ez,ny=rG,nv=tC,nm=tO,nb=function(W){return nc[W]||(nc[W]=nu(W))},nw=nl,n_="Object already initialized",nS=nd.TypeError,WeakMap=nd.WeakMap,nE=function(W){return eo(W)?et(W):ee(W,{})},nO=function(W){return function(G){var H;if(!np(G)||(H=et(G)).type!==W)throw nS("Incompatible receiver, "+W+" required");return H}};if(nf||nm.state){var nA=nm.state||(nm.state=new WeakMap),nP=nh(nA.get),nM=nh(nA.has),nj=nh(nA.set);ee=function(W,G){if(nM(nA,W))throw new nS(n_);return G.facade=W,nj(nA,W,G),G},et=function(W){return nP(nA,W)||{}},eo=function(W){return nM(nA,W)}}else{var nT=nb("state");nw[nT]=!0,ee=function(W,G){if(nv(W,nT))throw new nS(n_);return G.facade=W,ny(W,nT,G),G},et=function(W){return nv(W,nT)?W[nT]:{}},eo=function(W){return nv(W,nT)}}var nx={set:ee,get:et,has:eo,enforce:nE,getterFor:nO},nI=ef,nC=eK,nN=tC,nk=ed,nR=rZ.CONFIGURABLE,nD=nt,nL=nx,nU=nL.enforce,nF=nL.get,n$=Object.defineProperty,nB=nk&&!nI(function(){return 8!==n$(function(){},"length",{value:8}).length}),nK=String(String).split("String"),nW=rq.exports=function(W,G,H){"Symbol("===String(G).slice(0,7)&&(G="["+String(G).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),H&&H.getter&&(G="get "+G),H&&H.setter&&(G="set "+G),(!nN(W,"name")||nR&&W.name!==G)&&(nk?n$(W,"name",{value:G,configurable:!0}):W.name=G),nB&&H&&nN(H,"arity")&&W.length!==H.arity&&n$(W,"length",{value:H.arity});try{H&&nN(H,"constructor")&&H.constructor?nk&&n$(W,"prototype",{writable:!1}):W.prototype&&(W.prototype=void 0)}catch(W){}var J=nU(W);return nN(J,"source")||(J.source=nK.join("string"==typeof G?G:"")),W};Function.prototype.toString=nW(function(){return nC(this)&&nF(this).source||nD(this)},"toString");var nz=eK,nG=rO,nq=rq.exports,nH=t_,nV=function(W,G,H,J){J||(J={});var Q=J.enumerable,ee=void 0!==J.name?J.name:G;if(nz(H)&&nq(H,ee,J),J.global)Q?W[G]=H:nH(G,H);else{try{J.unsafe?W[G]&&(Q=!0):delete W[G]}catch(W){}Q?W[G]=H:nG.f(W,G,{value:H,enumerable:!1,configurable:!J.nonConfigurable,writable:!J.nonWritable})}return W},nJ={},nY=Math.ceil,nZ=Math.floor,nQ=Math.trunc||function(W){var G=+W;return(G>0?nZ:nY)(G)},nX=function(W){var G=+W;return G!=G||0===G?0:nQ(G)},n0=nX,n1=Math.max,n2=Math.min,n5=nX,n6=Math.min,n3=function(W){return W>0?n6(n5(W),9007199254740991):0},n8=eB,n4=function(W,G){var H=n0(W);return H<0?n1(H+G,0):n2(H,G)},n9=function(W){return n3(W.length)},n7=function(W){return function(G,H,J){var Q,ee=n8(G),et=n9(ee),eo=n4(J,et);if(W&&H!=H){for(;et>eo;)if((Q=ee[eo++])!=Q)return!0}else for(;et>eo;eo++)if((W||eo in ee)&&ee[eo]===H)return W||eo||0;return!W&&-1}},oe={includes:n7(!0),indexOf:n7(!1)},ot=eM,oo=tC,oi=eB,oa=oe.indexOf,os=nl,ou=ot([].push),oc=function(W,G){var H,J=oi(W),Q=0,ee=[];for(H in J)!oo(os,H)&&oo(J,H)&&ou(ee,H);for(;G.length>Q;)oo(J,H=G[Q++])&&(~oa(ee,H)||ou(ee,H));return ee},ol=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],od=oc,oh=ol.concat("length","prototype");nJ.f=Object.getOwnPropertyNames||function(W){return od(W,oh)};var oy={};oy.f=Object.getOwnPropertySymbols;var ov=eV,om=nJ,og=oy,ob=rI,ow=eM([].concat),o_=ov("Reflect","ownKeys")||function(W){var G=om.f(ob(W)),H=og.f;return H?ow(G,H(W)):G},oS=tC,oE=o_,oO=ec,oA=rO,oP=function(W,G,H){for(var J=oE(G),Q=oA.f,ee=oO.f,et=0;et<J.length;et++){var eo=J[et];oS(W,eo)||H&&oS(H,eo)||Q(W,eo,ee(G,eo))}},oM=ef,oj=eK,oT=/#|\.prototype\./,ox=function(W,G){var H=oC[oI(W)];return H==oR||H!=oN&&(oj(G)?oM(G):!!G)},oI=ox.normalize=function(W){return String(W).replace(oT,".").toLowerCase()},oC=ox.data={},oN=ox.NATIVE="N",oR=ox.POLYFILL="P",oD=ox,oL=eu,oU=ec.f,oF=rG,o$=nV,oB=t_,oK=oP,oW=oD,oz=function(W,G){var H,J,Q,ee,et,eo=W.target,ei=W.global,ea=W.stat;if(H=ei?oL:ea?oL[eo]||oB(eo,{}):(oL[eo]||{}).prototype)for(J in G){if(ee=G[J],Q=W.dontCallGetSet?(et=oU(H,J))&&et.value:H[J],!oW(ei?J:eo+(ea?".":"#")+J,W.forced)&&void 0!==Q){if(typeof ee==typeof Q)continue;oK(ee,Q)}(W.sham||Q&&Q.sham)&&oF(ee,"sham",!0),o$(H,J,ee,W)}},oG=oc,oq=ol,oH=ed,oV=ev,oJ=ef,oY=Object.keys||function(W){return oG(W,oq)},oZ=oy,oQ=em,oX=tj,o0=eD,o1=Object.assign,o2=Object.defineProperty,o5=eM([].concat),o6=!o1||oJ(function(){if(oH&&1!==o1({b:1},o1(o2({},"a",{enumerable:!0,get:function(){o2(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var W={},G={},H=Symbol(),J="abcdefghijklmnopqrst";return W[H]=7,J.split("").forEach(function(W){G[W]=W}),7!=o1({},W)[H]||oY(o1({},G)).join("")!=J})?function(W,G){for(var H=oX(W),J=arguments.length,Q=1,ee=oZ.f,et=oQ.f;J>Q;)for(var eo,ei=o0(arguments[Q++]),ea=ee?o5(oY(ei),ee(ei)):oY(ei),es=ea.length,eu=0;es>eu;)eo=ea[eu++],(!oH||oV(et,ei,eo))&&(H[eo]=ei[eo]);return H}:o1;function o3(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})}oz({target:"Object",stat:!0,arity:2,forced:Object.assign!==o6},{assign:o6}),"function"==typeof SuppressedError&&SuppressedError;var o8=tH("toStringTag"),o4={};o4[o8]="z";var o9="[object z]"===String(o4),o7=eK,ir=eI,ia=tH("toStringTag"),is=Object,iu="Arguments"==ir(function(){return arguments}()),ic=function(W,G){try{return W[G]}catch(W){}},ih=o9?ir:function(W){var G,H,J;return void 0===W?"Undefined":null===W?"Null":"string"==typeof(H=ic(G=is(W),ia))?H:iu?ir(G):"Object"==(J=ir(G))&&o7(G.callee)?"Arguments":J},ip=String,iy=function(W){if("Symbol"===ih(W))throw TypeError("Cannot convert a Symbol value to a string");return ip(W)},iv=rI,ig=ev,ib=tC,iw=eJ,i_=function(){var W=iv(this),G="";return W.hasIndices&&(G+="d"),W.global&&(G+="g"),W.ignoreCase&&(G+="i"),W.multiline&&(G+="m"),W.dotAll&&(G+="s"),W.unicode&&(G+="u"),W.unicodeSets&&(G+="v"),W.sticky&&(G+="y"),G},iS=RegExp.prototype,iE=function(W){var G=W.flags;return!(void 0===G&&!("flags"in iS)&&!ib(W,"flags")&&iw(iS,W))?G:ig(i_,W)},iO=rZ.PROPER,iA=nV,iP=rI,iM=iy,ij=ef,iT=iE,ix="toString",iI=RegExp.prototype[ix],iC=ij(function(){return"/a/b"!=iI.call({source:"a",flags:"b"})}),iN=iO&&iI.name!=ix;(iC||iN)&&iA(RegExp.prototype,ix,function(){var W=iP(this);return"/"+iM(W.source)+"/"+iM(iT(W))},{unsafe:!0});let ik=W=>o3(void 0,void 0,void 0,function*(){let{store:G,logger:H,emitter:J,options:Q,defaultProvider:ee,defaultStrategy:et}=W,eo=new ei.HereWallet({networkId:Q.network.networkId,nodeUrl:Q.network.nodeUrl,defaultProvider:ee,defaultStrategy:et});function ea(){return o3(this,void 0,void 0,function*(){H.log("HereWallet:getAccounts");let W=yield eo.getAccounts(),G=[];for(let H=0;H<W.length;H++)G.push({accountId:W[H],publicKey:(yield eo.signer.getPublicKey(W[H],Q.network.networkId)).toString()});return G})}return{get networkId(){return eo.networkId},buildImportAccountsUrl:()=>`https://my.herewallet.app/import?network=${Q.network.networkId}`,account(W){return o3(this,void 0,void 0,function*(){return H.log("HereWallet:account"),yield eo.account(W)})},switchAccount(W){return o3(this,void 0,void 0,function*(){H.log("HereWallet:switchAccount"),yield eo.switchAccount(W)})},getAccountId(){return o3(this,void 0,void 0,function*(){return H.log("HereWallet:getAccountId"),yield eo.getAccountId()})},isSignedIn(){return o3(this,void 0,void 0,function*(){return H.log("HereWallet:isSignedIn"),yield eo.isSignedIn()})},signIn(W){var G;return o3(this,void 0,void 0,function*(){H.log("HereWallet:signIn");let Q=""!==W.contractId?W.contractId:void 0;return yield eo.signIn(Object.assign(Object.assign({},W),{contractId:Q})),J.emit("signedIn",{contractId:W.contractId,methodNames:null!==(G=W.methodNames)&&void 0!==G?G:[],accounts:yield ea()}),yield ea()})},getHereBalance(){return o3(this,void 0,void 0,function*(){return H.log("HereWallet:getHereBalance"),yield eo.getHereBalance()})},getAvailableBalance(){return o3(this,void 0,void 0,function*(){return H.log("HereWallet:getAvailableBalance"),yield eo.getAvailableBalance()})},signOut(){return o3(this,void 0,void 0,function*(){H.log("HereWallet:signOut"),yield eo.signOut()})},getAccounts(){return o3(this,void 0,void 0,function*(){return ea()})},signAndSendTransaction(W){return o3(this,void 0,void 0,function*(){H.log("HereWallet:signAndSendTransaction",W);let{contract:J}=G.getState();if(!eo.isSignedIn||!J)throw Error("Wallet not signed in");return yield eo.signAndSendTransaction(Object.assign({receiverId:J.contractId},W))})},verifyOwner(){return o3(this,void 0,void 0,function*(){throw Error("HereWallet:verifyOwner is deprecated, use signMessage method with implementation NEP0413 Standard")})},signMessage(W){return o3(this,void 0,void 0,function*(){return H.log("HereWallet:signMessage",W),yield eo.signMessage(W)})},signAndSendTransactions(W){return o3(this,void 0,void 0,function*(){return H.log("HereWallet:signAndSendTransactions",W),yield eo.signAndSendTransactions(W)})}}});var iR="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xOS43MzM1IDExLjY4MzFMMjEuNzA4OSA4TDI0LjI5ODMgMTYuNjc2NkwyMC40MTYgMTQuOTIxNUwxOS43MzM1IDExLjY4MzFaTTUuNzYzODggMTUuNTQwOUwzLjc1NTYyIDE5LjE2MjFMOS44OTYwNSAyMi4xNjYxTDE4LjM0NzMgMjEuNTgyOEw1Ljc2Mzg4IDE1LjU0MDlaTTQuNjQ0NjQgMjIuMzY5NEwyLjY0ODY1IDI1Ljk3MTNMMTQuOTA4MyAzMi4wNTc1TDM1LjMzODggMzAuODE3NEwzNy4zMzQ4IDI3LjIxNTRMMTYuOTA0MyAyOC40NTU3TDQuNjQ0NjQgMjIuMzY5NFoiIGZpbGw9IiMyQzMwMzQiLz4KPHBhdGggZD0iTTM3LjMzNTkgMjcuMjE1N0wxNi45MTEyIDI4LjQ1NjFMNC41NDYzMyAyMi4zNTU0TDE3LjkzNTggMjEuNTQ1M0w1Ljc2Mzg3IDE1LjU0MDlMMTEuNzQxIDEwLjQ3ODZMMjQuMTQwMSAxNi41NzYzTDIxLjcwOSA4TDMzLjU1NyAxMy44MUwzNy4zMzU5IDI3LjIxNTdaIiBmaWxsPSIjRkRCRjFDIi8+Cjwvc3ZnPgo=";function iD({deprecated:W=!1,iconUrl:G=iR,defaultStrategy:H,defaultProvider:J}={}){return()=>o3(this,void 0,void 0,function*(){return{id:"here-wallet",type:"injected",metadata:{name:"Here Wallet",description:"Mobile wallet for NEAR Protocol",useUrlAccountImport:!0,downloadUrl:"https://herewallet.app",iconUrl:G,deprecated:W,available:!0},init:W=>ik(Object.assign(Object.assign({},W),{defaultStrategy:H,defaultProvider:J}))}})}},9840:function(W,G,H){"use strict";H.r(G),H.d(G,{setupMeteorWallet:function(){return iU}});var J,Q,ee,et,eo,ei=H(52434),ea=H(2201),es="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},eu=function(W){return W&&W.Math==Math&&W},ec=eu("object"==typeof globalThis&&globalThis)||eu("object"==typeof window&&window)||eu("object"==typeof self&&self)||eu("object"==typeof es&&es)||function(){return this}()||Function("return this")(),ef={},ed=function(W){try{return!!W()}catch(W){return!0}},eh=!ed(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),ep=!ed(function(){var W=(function(){}).bind();return"function"!=typeof W||W.hasOwnProperty("prototype")}),ey=ep,ev=Function.prototype.call,em=ey?ev.bind(ev):function(){return ev.apply(ev,arguments)},eg={},eb={}.propertyIsEnumerable,ew=Object.getOwnPropertyDescriptor,e_=ew&&!eb.call({1:2},1);eg.f=e_?function(W){var G=ew(this,W);return!!G&&G.enumerable}:eb;var eS=function(W,G){return{enumerable:!(1&W),configurable:!(2&W),writable:!(4&W),value:G}},eE=ep,eO=Function.prototype,eA=eO.bind,eP=eO.call,eM=eE&&eA.bind(eP,eP),ej=eE?function(W){return W&&eM(W)}:function(W){return W&&function(){return eP.apply(W,arguments)}},eT=ej,ex=eT({}.toString),eI=eT("".slice),eC=function(W){return eI(ex(W),8,-1)},eN=ed,ek=eC,eR=Object,eD=ej("".split),eL=eN(function(){return!eR("z").propertyIsEnumerable(0)})?function(W){return"String"==ek(W)?eD(W,""):eR(W)}:eR,eU=TypeError,eF=function(W){if(void 0==W)throw eU("Can't call method on "+W);return W},e$=eL,eB=eF,eK=function(W){return e$(eB(W))},eW=function(W){return"function"==typeof W},ez=eW,eG=function(W){return"object"==typeof W?null!==W:ez(W)},eq=ec,eH=eW,eV=function(W){return eH(W)?W:void 0},eJ=function(W,G){return arguments.length<2?eV(eq[W]):eq[W]&&eq[W][G]},eY=ej({}.isPrototypeOf),eZ=eJ("navigator","userAgent")||"",eQ=ec,eX=eZ,e0=eQ.process,e1=eQ.Deno,e2=e0&&e0.versions||e1&&e1.version,e5=e2&&e2.v8;e5&&(Q=(J=e5.split("."))[0]>0&&J[0]<4?1:+(J[0]+J[1])),!Q&&eX&&(!(J=eX.match(/Edge\/(\d+)/))||J[1]>=74)&&(J=eX.match(/Chrome\/(\d+)/))&&(Q=+J[1]);var e6=Q,e3=ed,e8=!!Object.getOwnPropertySymbols&&!e3(function(){var W=Symbol();return!String(W)||!(Object(W) instanceof Symbol)||!Symbol.sham&&e6&&e6<41}),e4=e8&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,e9=eJ,e7=eW,te=eY,tt=Object,tr=e4?function(W){return"symbol"==typeof W}:function(W){var G=e9("Symbol");return e7(G)&&te(G.prototype,tt(W))},tn=String,ti=eW,ta=function(W){try{return tn(W)}catch(W){return"Object"}},tu=TypeError,tc=function(W){if(ti(W))return W;throw tu(ta(W)+" is not a function")},tf=function(W,G){var H=W[G];return null==H?void 0:tc(H)},td=em,tp=eW,tv=eG,tm=TypeError,tg=function(W,G){var H,J;if("string"===G&&tp(H=W.toString)&&!tv(J=td(H,W))||tp(H=W.valueOf)&&!tv(J=td(H,W))||"string"!==G&&tp(H=W.toString)&&!tv(J=td(H,W)))return J;throw tm("Can't convert object to primitive value")},tb={exports:{}},tw=ec,t_=Object.defineProperty,tS=function(W,G){try{t_(tw,W,{value:G,configurable:!0,writable:!0})}catch(H){tw[W]=G}return G},tE=tS,tO="__core-js_shared__",tA=ec[tO]||tE(tO,{}),tP=tA;(tb.exports=function(W,G){return tP[W]||(tP[W]=void 0!==G?G:{})})("versions",[]).push({version:"3.23.3",mode:"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var tM=eF,tj=Object,tT=function(W){return tj(tM(W))},tI=tT,tC=ej({}.hasOwnProperty),tN=Object.hasOwn||function(W,G){return tC(tI(W),G)},tk=0,tR=Math.random(),tD=ej(1..toString),tL=function(W){return"Symbol("+(void 0===W?"":W)+")_"+tD(++tk+tR,36)},tU=ec,tF=tb.exports,t$=tN,tB=tL,tK=e8,tW=e4,tz=tF("wks"),tG=tU.Symbol,tq=tG&&tG.for,tH=tW?tG:tG&&tG.withoutSetter||tB,tV=function(W){if(!t$(tz,W)||!(tK||"string"==typeof tz[W])){var G="Symbol."+W;tK&&t$(tG,W)?tz[W]=tG[W]:tW&&tq?tz[W]=tq(G):tz[W]=tH(G)}return tz[W]},tJ=em,tY=eG,tZ=tr,tQ=tf,tX=tg,rt=TypeError,rr=tV("toPrimitive"),rn=function(W,G){if(!tY(W)||tZ(W))return W;var H,J=tQ(W,rr);if(J){if(void 0===G&&(G="default"),!tY(H=tJ(J,W,G))||tZ(H))return H;throw rt("Can't convert object to primitive value")}return void 0===G&&(G="number"),tX(W,G)},ri=tr,ra=function(W){var G=rn(W,"string");return ri(G)?G:G+""},ru=eG,rc=ec.document,rl=ru(rc)&&ru(rc.createElement),rf=ed,rd=function(W){return rl?rc.createElement(W):{}},rh=!eh&&!rf(function(){return 7!=Object.defineProperty(rd("div"),"a",{get:function(){return 7}}).a}),rp=eh,ry=em,rv=eg,rg=eS,rw=eK,r_=ra,rS=tN,rE=rh,rO=Object.getOwnPropertyDescriptor;ef.f=rp?rO:function(W,G){if(W=rw(W),G=r_(G),rE)try{return rO(W,G)}catch(W){}if(rS(W,G))return rg(!ry(rv.f,W,G),W[G])};var rA={},rP=ed,rM=eh&&rP(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),rj=eG,rT=String,rI=TypeError,rC=function(W){if(rj(W))return W;throw rI(rT(W)+" is not an object")},rN=eh,rk=rh,rR=rM,rD=rC,rL=ra,rU=TypeError,rF=Object.defineProperty,r$=Object.getOwnPropertyDescriptor,rB="enumerable",rK="configurable",rW="writable";rA.f=rN?rR?function(W,G,H){if(rD(W),G=rL(G),rD(H),"function"==typeof W&&"prototype"===G&&"value"in H&&rW in H&&!H[rW]){var J=r$(W,G);J&&J[rW]&&(W[G]=H.value,H={configurable:rK in H?H[rK]:J[rK],enumerable:rB in H?H[rB]:J[rB],writable:!1})}return rF(W,G,H)}:rF:function(W,G,H){if(rD(W),G=rL(G),rD(H),rk)try{return rF(W,G,H)}catch(W){}if("get"in H||"set"in H)throw rU("Accessors not supported");return"value"in H&&(W[G]=H.value),W};var rz=rA,rG=eS,rq=eh?function(W,G,H){return rz.f(W,G,rG(1,H))}:function(W,G,H){return W[G]=H,W},rH={exports:{}},rV=eh,rJ=Function.prototype,rY=rV&&Object.getOwnPropertyDescriptor,rZ=tN(rJ,"name"),rQ={PROPER:rZ&&"something"===(function(){}).name,CONFIGURABLE:rZ&&(!rV||rV&&rY(rJ,"name").configurable)},rX=eW,ne=tA,nt=ej(Function.toString);rX(ne.inspectSource)||(ne.inspectSource=function(W){return nt(W)});var nr=ne.inspectSource,nn=eW,no=nr,ni=ec.WeakMap,na=nn(ni)&&/native code/.test(no(ni)),nu=tb.exports,nc=tL,nl=nu("keys"),nf={},nd=na,nh=ec,np=ej,ny=eG,nv=rq,nm=tN,nb=tA,nw=function(W){return nl[W]||(nl[W]=nc(W))},n_=nf,nS="Object already initialized",nE=nh.TypeError,WeakMap=nh.WeakMap,nO=function(W){return eo(W)?et(W):ee(W,{})},nA=function(W){return function(G){var H;if(!ny(G)||(H=et(G)).type!==W)throw nE("Incompatible receiver, "+W+" required");return H}};if(nd||nb.state){var nP=nb.state||(nb.state=new WeakMap),nM=np(nP.get),nj=np(nP.has),nT=np(nP.set);ee=function(W,G){if(nj(nP,W))throw new nE(nS);return G.facade=W,nT(nP,W,G),G},et=function(W){return nM(nP,W)||{}},eo=function(W){return nj(nP,W)}}else{var nx=nw("state");n_[nx]=!0,ee=function(W,G){if(nm(W,nx))throw new nE(nS);return G.facade=W,nv(W,nx,G),G},et=function(W){return nm(W,nx)?W[nx]:{}},eo=function(W){return nm(W,nx)}}var nI={set:ee,get:et,has:eo,enforce:nO,getterFor:nA},nC=ed,nN=eW,nk=tN,nR=eh,nD=rQ.CONFIGURABLE,nL=nr,nU=nI,nF=nU.enforce,n$=nU.get,nB=Object.defineProperty,nK=nR&&!nC(function(){return 8!==nB(function(){},"length",{value:8}).length}),nW=String(String).split("String"),nz=rH.exports=function(W,G,H){"Symbol("===String(G).slice(0,7)&&(G="["+String(G).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),H&&H.getter&&(G="get "+G),H&&H.setter&&(G="set "+G),(!nk(W,"name")||nD&&W.name!==G)&&(nR?nB(W,"name",{value:G,configurable:!0}):W.name=G),nK&&H&&nk(H,"arity")&&W.length!==H.arity&&nB(W,"length",{value:H.arity});try{H&&nk(H,"constructor")&&H.constructor?nR&&nB(W,"prototype",{writable:!1}):W.prototype&&(W.prototype=void 0)}catch(W){}var J=nF(W);return nk(J,"source")||(J.source=nW.join("string"==typeof G?G:"")),W};Function.prototype.toString=nz(function(){return nN(this)&&n$(this).source||nL(this)},"toString");var nG=eW,nq=rA,nH=rH.exports,nV=tS,nJ=function(W,G,H,J){J||(J={});var Q=J.enumerable,ee=void 0!==J.name?J.name:G;if(nG(H)&&nH(H,ee,J),J.global)Q?W[G]=H:nV(G,H);else{try{J.unsafe?W[G]&&(Q=!0):delete W[G]}catch(W){}Q?W[G]=H:nq.f(W,G,{value:H,enumerable:!1,configurable:!J.nonConfigurable,writable:!J.nonWritable})}return W},nY={},nZ=Math.ceil,nQ=Math.floor,nX=Math.trunc||function(W){var G=+W;return(G>0?nQ:nZ)(G)},n0=function(W){var G=+W;return G!=G||0===G?0:nX(G)},n1=n0,n2=Math.max,n5=Math.min,n6=n0,n3=Math.min,n8=function(W){return W>0?n3(n6(W),9007199254740991):0},n4=eK,n9=function(W,G){var H=n1(W);return H<0?n2(H+G,0):n5(H,G)},n7=function(W){return n8(W.length)},oe=function(W){return function(G,H,J){var Q,ee=n4(G),et=n7(ee),eo=n9(J,et);if(W&&H!=H){for(;et>eo;)if((Q=ee[eo++])!=Q)return!0}else for(;et>eo;eo++)if((W||eo in ee)&&ee[eo]===H)return W||eo||0;return!W&&-1}},ot={includes:oe(!0),indexOf:oe(!1)},oo=ej,oi=tN,oa=eK,os=ot.indexOf,ou=nf,oc=oo([].push),ol=function(W,G){var H,J=oa(W),Q=0,ee=[];for(H in J)!oi(ou,H)&&oi(J,H)&&oc(ee,H);for(;G.length>Q;)oi(J,H=G[Q++])&&(~os(ee,H)||oc(ee,H));return ee},od=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oh=ol,oy=od.concat("length","prototype");nY.f=Object.getOwnPropertyNames||function(W){return oh(W,oy)};var ov={};ov.f=Object.getOwnPropertySymbols;var om=eJ,og=nY,ob=ov,ow=rC,o_=ej([].concat),oS=om("Reflect","ownKeys")||function(W){var G=og.f(ow(W)),H=ob.f;return H?o_(G,H(W)):G},oE=tN,oO=oS,oA=ef,oP=rA,oM=function(W,G,H){for(var J=oO(G),Q=oP.f,ee=oA.f,et=0;et<J.length;et++){var eo=J[et];oE(W,eo)||H&&oE(H,eo)||Q(W,eo,ee(G,eo))}},oj=ed,oT=eW,ox=/#|\.prototype\./,oI=function(W,G){var H=oN[oC(W)];return H==oD||H!=oR&&(oT(G)?oj(G):!!G)},oC=oI.normalize=function(W){return String(W).replace(ox,".").toLowerCase()},oN=oI.data={},oR=oI.NATIVE="N",oD=oI.POLYFILL="P",oL=oI,oU=ec,oF=ef.f,o$=rq,oB=nJ,oK=tS,oW=oM,oz=oL,oG=function(W,G){var H,J,Q,ee,et,eo=W.target,ei=W.global,ea=W.stat;if(H=ei?oU:ea?oU[eo]||oK(eo,{}):(oU[eo]||{}).prototype)for(J in G){if(ee=G[J],Q=W.dontCallGetSet?(et=oF(H,J))&&et.value:H[J],!oz(ei?J:eo+(ea?".":"#")+J,W.forced)&&void 0!==Q){if(typeof ee==typeof Q)continue;oW(ee,Q)}(W.sham||Q&&Q.sham)&&o$(ee,"sham",!0),oB(H,J,ee,W)}},oq=ol,oH=od,oV=eh,oJ=em,oY=ed,oZ=Object.keys||function(W){return oq(W,oH)},oQ=ov,oX=eg,o0=tT,o1=eL,o2=Object.assign,o5=Object.defineProperty,o6=ej([].concat),o3=!o2||oY(function(){if(oV&&1!==o2({b:1},o2(o5({},"a",{enumerable:!0,get:function(){o5(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var W={},G={},H=Symbol(),J="abcdefghijklmnopqrst";return W[H]=7,J.split("").forEach(function(W){G[W]=W}),7!=o2({},W)[H]||oZ(o2({},G)).join("")!=J})?function(W,G){for(var H=o0(W),J=arguments.length,Q=1,ee=oQ.f,et=oX.f;J>Q;)for(var eo,ei=o1(arguments[Q++]),ea=ee?o6(oZ(ei),ee(ei)):oZ(ei),es=ea.length,eu=0;es>eu;)eo=ea[eu++],(!oV||oJ(et,ei,eo))&&(H[eo]=ei[eo]);return H}:o2;oG({target:"Object",stat:!0,arity:2,forced:Object.assign!==o3},{assign:o3});var o8=tV("toStringTag"),o4={};o4[o8]="z";var o9="[object z]"===String(o4),o7=eW,ir=eC,ia=tV("toStringTag"),is=Object,iu="Arguments"==ir(function(){return arguments}()),ic=function(W,G){try{return W[G]}catch(W){}},ih=o9?ir:function(W){var G,H,J;return void 0===W?"Undefined":null===W?"Null":"string"==typeof(H=ic(G=is(W),ia))?H:iu?ir(G):"Object"==(J=ir(G))&&o7(G.callee)?"Arguments":J},ip=String,iy=function(W){if("Symbol"===ih(W))throw TypeError("Cannot convert a Symbol value to a string");return ip(W)},iv=rC,ig=em,ib=tN,iw=eY,i_=function(){var W=iv(this),G="";return W.hasIndices&&(G+="d"),W.global&&(G+="g"),W.ignoreCase&&(G+="i"),W.multiline&&(G+="m"),W.dotAll&&(G+="s"),W.unicode&&(G+="u"),W.unicodeSets&&(G+="v"),W.sticky&&(G+="y"),G},iS=RegExp.prototype,iE=function(W){var G=W.flags;return!(void 0===G&&!("flags"in iS)&&!ib(W,"flags")&&iw(iS,W))?G:ig(i_,W)},iO=rQ.PROPER,iA=nJ,iP=rC,iM=iy,ij=ed,iT=iE,ix="toString",iI=RegExp.prototype[ix],iC=ij(function(){return"/a/b"!=iI.call({source:"a",flags:"b"})}),iN=iO&&iI.name!=ix;function ik(W,G,H,J){function Q(W){return W instanceof H?W:new H(function(G){G(W)})}return new(H||(H=Promise))(function(H,ee){function et(W){try{ei(J.next(W))}catch(W){ee(W)}}function eo(W){try{ei(J.throw(W))}catch(W){ee(W)}}function ei(W){W.done?H(W.value):Q(W.value).then(et,eo)}ei((J=J.apply(W,G||[])).next())})}(iC||iN)&&iA(RegExp.prototype,ix,function(){var W=iP(this);return"/"+iM(W.source)+"/"+iM(iT(W))},{unsafe:!0}),"function"==typeof SuppressedError&&SuppressedError;var iR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZsAAAGbCAMAAAAlRs3KAAAC/VBMVEUAAAB1gdddWs6cq+JsadRdXalLTJhFRXtTU415iNhOTo5+pe41NXxjYM8qKmscHGuRn+MSGZl0ovJ3eL6EqPEXF19QUcFdnfNlctZZmvNvc9prbdaMsPA1NoYkJHFdXdFSg+08ReFMO9VVTdg3k/Vdk/BHSL1bXac+mPVDlvQcIqFKcupJlfQvL3lRculLS404ivJLRNw9P7dHkPIoKHQ/lPQpLapPm/RGRohmlvF0oPCBg7pFPt4UFFBOQ9AkKag0OK9Ie+04PLJYT9ZeYLtJRsc4OH9LXOE/TuIrL64kJG9dZ+EVHJxDZudFgu5AXuZHk/NHjfE9PMA2OLVQfOtLd+tQjfBrbLZ7fbFGdOs8d+1Dj/JCK9hPT49Jk/JqnvJaVc4jI3EXHptRTclVUcxOS8dUQdhNQ91SO9pZUdBLRt5WR9UgIGlLScVYU80YGFJXTNJGRcMbG1tDfO1BXOVDeexSPttJR8RVRNZDV+MUFEVTUMohIW5BaOhCcuqkoe9Eh+9DgO5CQcBCdetAX+VHT+FCbelBZedPQdxBaulITeBJS99GUeFFU+JAYeZYTtEdHWBKSd8XF04WFkseHmNCWeQTE0JEVeISEj94a+49Pr1WStRQP9xAQL5FivBCb+lFj/IfH2YZGVVBY+YaGlhGlvNEhO4VFUk5O7tGkvNFjPEPDzoRET0tMLDCv/02OLgwM7IqLa00NrZaVM8cIqAcHF4kKagyNbQhJqVCWuQODjVGmvQnK6tEQsIKCi0dHW1MR8tQSsuAcfUYGGmrqPNiXd97bfFKSN9hXNFNS9CvrPQGBiMFDJMTE2ZIRMhfWtsVG6NFRc0/QMfIxf9AlvQICFxQTtUoJ3lpZNU5OcCbmOw0NJrRzv8ZHopoYONcV9UwL4ampPAPFpgSElRRTcJEQacwMbo6Oq1WU9g8PLM+jvIVFV0dIamBfeAoKpM3cOsnKrOOi+ZJSNE7g+9GM9s4VuU7OqJ0cNo1e+83aOlyZ+q7uPkyX+gzT+RLR7VJUHVbAAAAYHRSTlMACZEcgRAaYFcjjy+3ib/zE9xhVFP2lmouhmk/Q3XcXEv+/bL+qGNK9d7Vq8yjfzb+2a2k7em8saKagj/++dCljvvGnHfp0r7s6s2b7u3z3b7u6NrO8+HPcNr59ujU+LDlSLXNAAApKklEQVR42uzYPU7EMBAF4IlQftZEASkNTdxSRdtssdK2aIvcYu4xd5vCtUvEdRACaSRgvSlINsLvu8LzjJ9NAAAAAAAAAAAAAAAAAJCzsjoNbhzd0FcVwXZUjTt7/uInVz8RbMLe+fAqLMIfhDnGw1gXBLfWtxqUv9Gg55eS4Jb2owb+VQhdQ3A79SEIX6I8YLHdjAvKCRLaHa2prO77pq6b/qnK/FSUY+Ar4rSntVS18wdVEVHVw3loMo6naCNfpX6dcIrno5coLHbdvU1uT3myaJKC39HiiuEcflx8IoG7njJUWjRpsStoYc2kKvwLERl3lJuyDTxTGGlR1VGVLxH1uTX5wqK5Lja0oJNX4QRVRzmxhTaH+pIW8/ygnCaxzej31aKZJwy0lMaiuUynbAqbNbSZ1N+RWW1qjHSZTM7n1GxicCyaK7TL4iFqDW0+nQoy6y00E3MoBIloEuKJzB9Gs5WyuAmJhZYSj2RWXGhG/SP9b+/s2rFrE1EcB/BLbFqjRcWaUBTtIOgkhVKkIARRU1G3OOgiRK635QXO5YY7EO4vyNCp4FBwTWiE6OLjkOsQAhHhCCYli4iTEezk0MXna8jvJeba9L0neSl+h66v8Mn39969O9oaHptVGGqSW/N/qgENV5zPi+OhgTiJY317Qwaa4/DhNK7/C5r/xWFpSPhsno6JBuItn9COa8hAc2jGfxhgaY7PUS0yfeHixYsX4rEIV2u4cfyVsdM892c1dXPp2t1U2sWmiTPp1KOFeQ4aXhxvVioN1+/DUfYYHVu4qiPTMNB+rBZOJy8dgeZ7zhHAcWaltobP5rmiQ23hqoWQ8SeoG8vCZnJ+dJqcCI43K5OGt7yXNQUzf9WkMAM4Fn68MDKNEI6/Io+Gu7yNFU29TKWRbUAAB5k4GRuZhsUZw8MFtIbTxl/VlEvU1EmG4ZDgpfhhNGcojVBzGnOSaHxn4F9Q5QUsVyJ3EZEJx7Ey04fTiOJ4i1JoNoGGA8dZVuwVWyRKaSiOibH5N465FNPCM00HmiCOv3pOSms2yfI5fpyzatlEooZOY2GMstVq1nRdNIDjJg9szWZOGMe/IYeGLn9cbLo0tuEav3Zqe6XS3pfdJt5AAzgLB9FsiuP4JyXQdP8PJzdEZwJnWiSq2zahMY0ftaDdDkjI35dN19T7cDLxkIFGaYRxnOWYOE1iHZbnw/GuKPTVAKUhOLi63W6XemkHOwizOOhVNOzwTGDEceqnJAw0SkPDu+XUn2nKhNKQ4GaJyDAJ2tvI7WvORnzoQPu6vi4Bxzkbl9QaseY01HmDQ2jW1oCmL+0vlmkADmpFhw60dRJxnPqKRJrhe86E3dlQGoKD9BrQAM7uRt9pLRVGI47jLcflDTRYnmPXu6WpkUjUXqPBu0ADCYKmy+LguWEDTQpOY0ZOa0Sb41zR1EiPBlVLAZCwU81EDE5rarA1XwsFKTj+rDBNBZYO23Mm6IOBHo39EWrDhoBVsQE47v2/aaTgeA8FHypmEgV2ae7TmuOr8cV6JLrWjW7XgtLQtH+0DAYnHWMHGqWRgeMkFgVbQ2hIxJvjryrxdENo8vk8tTGqpTCbHYwYnPT0QGsAh4YPxxO9gJ6pVOB3wbfnwGdYCoTSdHHQrzCbYNuwDMDJnGBpKhXAEWiOVxelSVToyjSHNWcCXt5QGrAJwmz28qYBOK0LDM0LsBFojnhrTia+04UlNKeuQm0ITTab3w/0JsQGcFrnGZoXgMPRHIk0FVhZbM+p39DGH0oDOEa4Tc224GWbtXGaoeHDkb7XkNbAyjS8zfGvKPBRZySaz2YB56CzwEsDbAyUOQc01IYbRz7N6M0JvdFT4EqAtobFse3tMJtdVzcg6WmGhrc5kml663LuOUAzo409PRrACX32DJpYBxwzBTQCOHJpCoAjdFqrK3DJCTSA86EZcmdT05EOOO4USyM01uDwHL8+lVy6eXMpOTW3yEVT4GiOou8GgIbB+bjTHmrzi9QGcNAcpXkNMiLN8RK3tNi125lO5325WCy/7XzaunMvfhSaF4RmdJz+KEgDrenD+VDdC4beChg6g5Pap3ktBccrPJlPPtjaKr7bIin+SbnTeXD70hFpOJvjTAJNtzjw+MlONMvWAQc/6tIADv9Yy+W+Vd/8fPfmzTuwKZbL79+Wb8ePMtC4m6MazW/q7i60rTIOA7jzC4coykBkIkIHE7zTCxH82Jh6oezOC28U0iaZ69YmSy/WkQwCvfKuNSkhzZaLhsIJJCH9yloObWhCEtO07KwV1i5zSVNbt+Iy7CgtdFD8vydJ/yc5zTnp+5529ZmgF2rAn89z3ryJFgdNpnO7+MefNTTP0pNAs4vT/u1bx77nfISGvTn91zfn/x0OD0NKOKjz+LsPG6PBF6VrzpGiwdbshbP47M8/pF8XsNssQIM4t19+4c2/fD5NcHqbH94bDkNEnOrqDI1PvK9OMzDQg32lfOb8H2jKs5bO/vEn8JS+BPWsaOy0Vdk8+vFNzkcywDxrvQtr8/5w2aZ21kh13lFtzUAEwtico0ODg1ZHJza1SL46CHlWKJomjTYI0tzVdbiIDHtzgMY/74eIOvJZg9z5RJUG/41gaM4RocHWwC2NzQbX0DIcg9GiTy9CdO0WI/w5UhxDa7PbZzaz4xAaD9CQgExJpTJriHNWedAilbpGmJpzxGgMeoMOANLkD2pwIDZjO/wy2gwQm0TH8GjJbYYo4kQawiGt8ZRoBsfCnslOb3gsNCTD+UClNTIcqhuCo0RjiKWL61k7JLteTMdMMhyDJGhjE+5bzT60UXjmqH2eEyE0HoIzFo4Jue2+vr7tXGvXUAhnjdjc+uhYXRrJxQTVM+do0uhtRXsmkShAEomMfctmk+GY9sIRVq2cWQzrrEWaPUADCY915uLxeIoEfi+Eh6qfOXfeqTdovg4MxawdUZpYej2TsO8mkVlP61VxII9WOaDRAqenQuMP5+Pxvt2k4n2WGpzxd/emwdZQz1rb0aPRL9oz9qpksoCjNmsGYZWzmqU21Efpjt3W+JPxVJ808XgMcbA4dQYNQ3GUPkI0lcOzcbFQosGAlU5t1oDGijQszZHS5HZLg9WZqmrOxHfH5TQ+pGF55hwVmt1BW7TjniHOusGkhCPSuBwOdpzys8br9SJNNU7KOzSGOHhUQ5ov/8LXY5q1/wMN4GzFdAqzVqZBHPpZg9bc9pIgTXXiyZC0OLc+kdPg6zHO2lGgeWGXpoA00iSyOkNdHJshWaZhb85AhcaPNLU4Fun7nIkfjslpSNhmDWle/fybs2fOnDl78l2mr/xq3xrE2cLjgGzWhFW3y+xgxyGt8ZZpPEhTayOExhBnKPReFY2jTKM6a+o4/3z2wntnz52fXV5uaWlZXp49f+6s6uX3IdKgTTFWz8aUXHW5nSIM66zBoM15uxRpwGY7PCi9IDhd3ZrSq7HPWn/P0o9nWpZnWzCzyy2f4uONMeyDhqOGV2tVOmUapzqOenN8zV6ggSjRwGnAEpJcfA6+X0ODOAyz1t/b9mAcClMTsPoUekoRptYY67cGUsimDbq9cIDGDTSIQz9rvuswaITGo0ADgfc4ks9zHp+WDJrDJ4Z11qA0zS13UKRKp+UNbQFoBw1t7GnbXja6Mg2EddYGoDVdIo0XaBRtQpKPDO6cxNaUaRhmDSK2ZgFp9qgO5amAfdDUbVBnJLfqDgILOw60pkLjTwKNig3iQG+QBl6tnP3OGuoATf8DlNlL56PXXzj4HFOmwSRw0zCkNcGgk+PAhXXWzNe7gIbEnwcaRZupkORj6rH3cdDMZsShn7VeFRrAOS+/jdCexiQbNNWzAGYkuRogNBrg+K5PTpVoPMZUSpEGzgKDYQnOaWyNrKc0OL29QKOS2bdf0UaAnQbP0NLAoAUDnBjWWYPWTFssoo03p1abbenH1KGxEyUavAOnnzWkUcU5q5EBO02hsKiX2eRWAwHOakUc6uaY2yanJi0WyyTWRsEmPyjBCf3wFqFxIg1Lc5BGFecEOwALDSaxjpOGgybSEBzGWTNfF2kIjvrTJtU3OexHnMFz2BoNcJBGJcvyj1y1p9Gn1WkKeNdZNWjWUhhnzdEGg1ZOA5MmjEm/ffP4ZTkNztp+j9I9PUijVhx8z3tgrVGiwc8I9Cb5oFVo2GYt4myzAE3FxrKdUqbp8w77EWcwdBxOaEizn+bIcZBGPctv47ucA2rNYiM0WVPtATq5yiMNy6xFHIQGbdqVbVJxI9QGcULvwLPGii9EP2tI02hx8ELigAYtq06TwM+kcdACPMpQzhrSYLztfSlFmm7SGrT5+8RrX3IOBwWObNaQpsHifMoAoE5jMGUz6q2xp2O1g7YT4F0uF5iwzpqz3zLd2dmJvencTinRtI75PR7UGZ7/mePwhVhmDWkaHrXjGpIgjWGkVJuiOk1CTpNccfNWF+JQzxrQdE5bOiH4vMmllFpDaCQ48/cDVocY5lnriCANw6ix07SKNvrFQqHhQcPk871RVymMs0aOAUQGbSa9ybhCa8JAgzjhe8M+l0MM86xFkKZhmxe1t3nxSmsrwTHp1zMUg6bLLUXdLi1wuH7L3RIN6nhaU/VphokL4njmm4MOCFNzaFsDNue0b00MaAiOLW0vqNJga3DRgrwbcehnjevtvNvejjj4wFGkQZy5J0HOqYajfvFJRwP56BWtWxPrbi3h6LcS+xg0vA9ojrohzDhcP6GR4Xjz8XqDJn41CnHmN61WfBmGZw7NoJGc1/gdzhvXusFGTKyoYpPJ4qBhbXYCAWLDOmswaEAjx4F3n/G9aUBGajO/5nA7IezNEVvz/G3eaOqGoE2jNBhhAWqDOLRHaVdPu0gjx8HbTllrpDhza76gE8KO09EBNM/f5mTTlStXKjqx9USjg4bJr7h4AsM4a1Z41hiNdXAMqbiMxi/CoM480rDNWmSA0Dx/m/e+7VawUWgNJnk/GgiCC9usuXo7HxmN9XC8xu24pDogpfd7u9BGbI054IQwNwdpnu9Z4N2PbwBNSQc3raETGr63aYsGg5Q4SBMhNAo4k0JfvLRsqVQ8lbSEvV0QxCE0+CIUzUGaAQoa7c/Qx7+6fKOCQ3RiW4kGBw0j2Dg+CGGZNZ+1hwyaEk6X1yjkwAV8tgWjx0NkEKdMQ43DSqP9e8+Xvmq6AZHY4PsbtUFDG/hoAG3omuPqWYHW1MOpXHp6J42t+XyrsQtkKtmlcQCNFjh0g6b9nc2ppsuXoTiS5sTWM/ugwceNGGocd2Tlkd5YDwd1KhRlF8QBGt7KaYHjG3jwmAJF87vOF5tuXK7BiS0mCo0OGt7XkOIwzJoLaIx6NRzMZFdVyjRWLXB8Phoa7T8jONl07bIYyaxdweKotQYvBWZkNvtqjrsHWgNRwrFUpcZm7qEzYIWw4xCa0ZZR6kn7QKsjWtO1a3KcWN6eaYgGbdqiAcChnbXSoJHQNufpGkdaw44jDtroKDXOslYn6Le+unBNhgM6U2nEQRq9rq6N0E9sqGct2EFo6HG8T9ecQKMFjtgaCNCMPteTwKkmsJE3h+BkMwU7JpFZ1wFNfZu2GZChnbUgtoZu1uawNYw4ZjPQiKGQ0fI7UKc3rl2oh2MoFjLlI0EhkbEXbUBTP8nrxIZy1gIdK4INTKib8/Qh0rDhmKE142Uaqlmb/VAbmhNNFyByHFHnylS6mC1kIAl7tqiLmXRKyS3M8CBDNWswaHmbjQHn6ZoVaZhwoDX/Ak05FDiz32j1sLl4oZQ9cbpjsdbFrWKxuLVo0ht0ykkuRcGGCicQARoxlDhzQIN/fxYch/nBxPj4+CjhoXrmLJ/RaNG+birJ1Js1wjMVg98M0Bk1m01iQzNr4qBBaJvTNedxAo0WOA7SGhKszT5ptPrPCD7YuHi1Hg5efJKM6FQj7PBgQ4ETGAAag4Ee5/YU+QYJOw6hefLvrVslnHGaWZt9+yWN3tn8dPGiCg6kjKOqkzc54BC931kjrbERGgacu0u826UBjs/hABpIVXMQh4KGOqeARhmnu8Hm4MXAvpvDw6ABDAPO9Fow4HKx4/icZZqa5hCZ0UOmeXnjopgLGs1abnOG57E4DTXHyfv0QMOE87QfFo0FB2n+nhBlKjiYQ6Y5DosGYZ81HDUuyvP7m7WAzwY0TDjTcP/tZsLB1kxMAA7RwebgiYCChnrRNq5eBRgNZy25BMUpyTR4Q8APrCRNBgoctOmEg4DbzY5DWjNUtsFZk5ykD5HmA6ABHC1nTVjhowSn0aM0x5uBxkSDgzrTm4GAmx2HcwLNEOBgc2TPnMOiOd508yqJprOWg+Jgc1RnjTfbBJMYBpy7C1AbJhykQRxsDoaChnbRblbhXNBi1gQTV8LhG5k13getEcMwa1MWM+9mxnECTQhtZM3B4hwCzYmNX28eAE5udSaKzVGetSgMGv6/b2hxpjeBhhWHIzQhxKnTHMA5BJpjH9/8tQan4RsCJZ2R0nGgkdMaDBrQMONML4ENIw6hGQyVcBSeOXgiUKRhf2vzKwRw0EbttAZpoDl5IVLBkdtI//mRQdOhjRwH0gjOdFvUzYhj5Z7cAxqSKpu9bggOnub1jV9+QRwtj9Km5IgDcFRPa1EH0FTC8syZ8kWD1DhIM1iFU/+0Br8Uadhz6otf9okDaRTHxmFz6uFEyaBh6GdtysvxQSYcq/XJveFBxFE5rbUcMM17QENwUAdxKqE9SgOOYUD5meNyR3tNhAZDPWvTay4+CKHGITT4A3QaeeaMKtOw1wZycLOWb1Y8rfHRhTzSsM3a9EM32lDglGnABiK1kTUHZUYPkObkhihzcLMmJDcDoLP3m9BA1LqZFEw6DMusTT8Mgg01jtv6ZD4s+7Fg6qe1g6J56+MvLl1CHFFH2xsCUz6nX+BBJ1A7ayDDL6zk8kDDjIM21Dgu631Co4gDkeFoToO1uURs2GdNKUJyp5mfmameNT4aDbTtJAUdhnXWxOcNBQ7S1PxYMLkNNgeCpzWk0bI2QCPH0fricySZ3FnyRWdmohCeB5aZqCuytCMk4a/TDifWxUUDlDhu6/05f5ikweagDrZG07z8xe/EpnbWtL/4HBGS+dX7S70+zh10Wc29C5sr+aQwgnOmxawZY75ogA6HtMbvV8BROa2NIo1mtfn9t0sUzaH8mDon5E2GlZ0VmwmocMy0aw7cCwRocCo0aKN0kpaf1pBGu5z8j717i42iCuMAvmu9gEUliAgCYuOFKOIFFFEeVEQF7wQvqC+u8fbQ2tCChLoQWi4Nd9gtZUNSSguhwK4BTCi4abdt9oFsmq5tI7tp+mDDA21NA00JBBIwfrPd9ut2Zs45c3pWZqbnM9EXn/jl+8/Z7xvOZO3ZAzjpjjXk+Rvqzz/hX/g/i+ycWAfYcOAESttb9gMNoXOIE4I00IxffG7PIA7GmpjBJ73E48TgtjYOHB/SHDXyzEGaZ4BGdNts2wY253Q75yeeWBNvw4zTkOMJGcbxJmig0IYaa9g5SCP6abMtgSPwmSO4jOJ0xRv9RnH8CRrEIXxhVz0hwEAT3TZbt0EJjbVvbm+sxTqDQYM4fp9CgziGT2sXnhkvnMb54tatAziYawYHn9g6Ap85/IPPhkhFox9x6IPPqgDQ4OU3HM+cCxBowmtG1lbEocfaL5aItS58R56pc/wKDdqocMiDT6QRXI9nbQIbu8VaDBqHHccfaO8r2484Rw11DhQGmsiamrVpEwmHfZ9jqljr+jcY8rPGmtI1RWVKccZaM3aNyHo/YWO/WOuCF0gYOwdo+gbvvsFij7UL6aGZvHiTUsZi7QcLxNqvXRVsOIlAK0rScMVaMwaa0Loza/t2Ag518GmOWNPCieV4Gv0MOMEETZFKB4oJp7pnHnaNyHK+u2k74AzY2CrWulYXUHGQhqVztBvn9TR9d+ix7TvARq9zfjRrrDHirPBSYy3ku9ZXWwRFaBzi4LMaaQTXW1k7EIfyzLFerHXlnCbj+ELezgSNSocVpyZtNGMX71BsNGLtnFlna0YGnzm7YvFQSBen1B+qgI8dYqljjTL4RBrxdeetHUohjqJjjcEnW+d819Ve2ggLai0cfyjQUd+HMmoc+uBTPA2eBHbs2wc26lizzT6noSsn7ged4TgB+Gnq7o5Ea2uLiDpHSac1pBFfU4EGbNSxZqN9Ts6urn87vCGINsQBmGCBqzMSwYuJSI+c/XqxNgdphNdzWWsAx7Kxxjr43NWV057tCYYGK+itaC8Dmf6q5Y211x1Qd89cfu/82bPn37v8+btFRtrH+9YATmqs2XHw+X1DLLa6s70j7q6ocMU72q8VRSL1q3WvkVSnmlas9cInOxdMn/1SuKnO7XK565rCL82e/rywHzdroIbh2HLwqbxDADyxSEN9fUMkEoshDAGHPCHofXvszHFhVxhcBsoddtWNG+MUM+a8NYCDsWbPwSfgKJX8r8bFREZj7eTF/V+8Ew67VBUOj1sgItI+XLMXaEZJrBm6HZc2vjlz4veOkiY3kgxtnqbpI7fJXLx3717eWLPYhIADhzQhOHoifjrb5QYcLZ2mcXeP+JR2td8GasDG/rGmi0OxgUKcthPx3dluKJd2hR99fqQ/PK/+sXdY51hy8Pm/x1rb0Xhedjbg6OrU1T04ski7unKlFo5d9zmiYi1JQ8EJzxyJzcO3VgIOxhppQmDXWFvBcVpra4vnVSRsSLHmfmAkz5x3oW+Gdc4Oq8bad6I6h44DNJUlFYijpxO+38kfaR/uBRp1rNl5nyMg1lrbXJUlYEPvnPP38r9pe3UjyKhizdb7HO5YQ5r98crdJVBUHEi1ydwn6FsbEadfx9KDz5/TGmvYNbn9H8ivoMda02zuOefKjVo4dt/njCTWoGtc3rzdKhzdRw7nr5yMxTvBxlisnVN1Du/FRCKL/2IitGHrnNYylwe+uQY2bLHWNJ/PZsJKsEntnFE2+DQca61Fbm8eFDNOHZyj+QY2OxEHCmzk4FM71pCm4HDys8UqHG2d81zTAeenYKPqnNG0zzGEk6SpPJzE2c2GU8d1Gpi8duNONc4aGWt6R+lobXZBZSUBR9PmUSfPyvPWoUM7d8pYY+2c1la3LxdsjHVOXZxnz/ba1UODONg5cp+jjVNW2+oqzYVixMG6h8NmVrFiQ4k1sLHti+zGJgR9HT5PLh1HbTOdx2ZncbEaxx77HOFH6bKWa74qsDHeOU1jeAadYFM8PNbkPkcTpyxaVunzeNQ4p6njm/OLjNvMWAs0KbFmj8FnWmKttiXu93oRx0CsnV/OMYS+WazCoU4ILBRrQjunpbOqwMuKk6pTx3EWePXm2kTnYKzJwacuTl/cX+VNxTlMirURngW+LAYbaqzZ/0V2lliL7vf4qgCHI9bcrjEcC4Ita9U49trnCDuttVwKwp0qup2zm3AgqHtprPEFwYdAM6gjJwREnGgJ2KhwQIc++Ky7n2NBULyFG8d+FxORcaJlXn8B4kCxHwjC8zkWBGu3bFHZyH2OJg58HixQoBTHM+f8Aj6bLTLWmHDg7k/lXhWeWAu/5+SwublFjSP3OZo4kXioFIon1sLTeRZrN4CGFmvyRfb+r1G6Qj6w4Yg19wMZHBd0frZ2M9BwxZo9LybSx1kdzQ75+HC4Xh6cXL55cyqOHHzq4UQVG8CBMoiTXHo6M2c+BTU1g9HmxmbESdrIfY4KBzPNx9M5D42BP+lFcxb+3n9PxJJ5kx68i24z7SbQqDsnFUe+yA46/TaBAAfO4emOGXPO9Jw8VXMKZOBOolM9PfMWjaUupG+Wp+Lc9sGniWMtFm8MqHCog8+S0/EvFv7Wm3KvNPicXTKJ0jtTboDNsFiz5z5HwOAzdkn5XovBWDtdcunoxZMa961VNy+cSd4Q3ChPxbH94HMEnQPf2A0CjqFYy8vubNO8kR3q7AekXahz1rry8nKzxZpZ9zk5K6pCfr+hWDtccbKVcI1k8xz9ccFds9YBzrDOkfscPZyIG2yMxFplRWcr8UMTgEPoG8AZbbHGjRNrDwXpOLjPqdzd2Ur+0ATg6I4FZt1QcDDW5OCThFMfLVAah/WZk1sCNLTbcZvf0Pt589nldQZxRvXgMwa3gCMOZfCZm+gaGk71t1MJNpRYky+yI06kqBQah+2Z48nrbKV+aALq7Dxtm4lvKjYy1hhwsHGCTLEGNC1s3zJoXqRjU76BgiNfZB+KUx/NRRxSrHkTNEw41Us0z2oT3ly3AXBSYk3uc0g4sU7lU7G0WKusqgQa1u/nnJ2ha8PQObZ8kZ2vc+CjICFqrFXlJmmYOqdnoa5NKo7c55BxcmDiGSTFGuAUAI2BG9lreibr2hiNtdF9MVF9xNVIjrVSD9Aw38gO1fyIpg3ApHaO3OdQcWJxQqx5vAHoGmMfmqiZ49Q6p21YNQTHjINPE8Zafazd3wg2mjil/uzuFqYb2RGnZt5d2jbDcOQ+h+WZ03061KgRayDj6aiNst3IjjZnl2Xq2CDOaBx88p3WIrF2TyMkW2Aojs8fLIh399WWGf3QRM3JRzRsPlJszB5rJtznrKiP1bfn+RsbgwPBFgiGArkgE9W+Nor4zDl1cpHGPE2xMdo58mKiRIFOd0e2xx9MlL+qJN5e1tKif98a4WuHBJvbH2sWPEpD5URikSL4toFS17pX9PWtqCXfv6qDAzaPaNi8+RXAII4cfBrCgaqPJKs+Sru6WD/WapY8qLbJ+PRy/lAcEww+LbXPGdGN7IhTszBDbeOcuwpsUnDkPiftN7KrP0Wp9fvGOSs/P3+VjLXb8qEJ7Jzq+xyaNlBmizXrTAgoOKxf2G2eqmUzF220Yk2+yC7g6mJq5/y2bLzme51fIQ5b58iLicidw3FaOzVJ+33o6yCTEmtyn5PmWFPj1CzQtHntcorNaB183oZYQ5veOTrXCyg2xFgz0eDToqc12uCzd4G2TaaSaagjB5+icehf2O3Ve7FzcmFhfr45Ys3iL7IjjLEv7J5ZlqFncyQFxxSDT4s+czhjbclU3auGluarcKDkhEB0rOmlWu9TDr1yfn69ECq/kPGZIy8mEnuU7r2P9JcKEzagUmimWLPohMBwrPVOIt5nU5iofhk5+PwfYw2KTOOYciRpo/xjxsGnjfc5F8k0jgmFgKMba/JF9jTuc6BryDXtypEBHJPFmg0nBIM6SEMq55dHAGcg1+TgM/04ycJAIxyiwWZIrMl9TpoHn0hDr2evII7qtCZfZBfdOUjDUK9dXw82ZjmtWf9FdmqsIQ21HruyfhDHPINPC7/IzhBrF+9wMNW0A0dScArNNSGw4ovslM7BrqGV81lonCE4cp+TbhzsGmrNhb4Z3jlmiDW77nOQhl5PKn2DOHKfk97TGgQae028DjKqzpH7HNGxhl3DXpmJvmF75siLiUYw+EQa5sqAw4Be58gX2QXGGtKw1xSwGcAx6+DTHrGGNMw2Bw4kbcw0IbDhi+xtSMMcah9p4kDJfY7IWMOuYS/n0gOIQ37myIuJOHCQhqNevTKAY64Jga32ORBoPPUw2PTjmHNCYPFYQxqOmrZ0vQ6O3OcIeuYADWd9otCY8rRmk31O230O3npy/fEhOHKfI3rwydM1OFIDG8SR+xxhncNPg2+sHzhO7xxrxJrp9jk5GGh8ofaCYmOK05rtLiZCGr6acOX4EByT73OsdZTGQOOs8S8cPA5F6Bw5+OSINaQZaaglcEw7IbDmPgcDjb8efuHgQYw1uc8RE2tCaByZTys2AzpynyMm1oqARkC98k8Sx6wTAgvucwTROCZAqPWfB0wxIbBDrLUKonGMXQqNQ+0ceTERO07RHQ5RNVexOWj205p1Bp/QNcJqIoRaAsc0EwKTz9bInVMkkMbhfBoah9Y58mIixs6pBRqBNSXROCY/rVlk8CmYxjHta0XGVKc1q77ILo4Gf+IcG8SR+xzOZw7SCK3H/jmWxNEffMqLieixBjTCK+NpwGF75siLifRxxNLgwPMYdo52rMmLiWixFkUakTX+5YNJHDn45OscpBFeUyDUCDimusHDnPscpBFdmS8rNqTTmryYSAMnzTR4jKZ1jjnvWzPHhCCdNI6JTxxLlAUmBCYcfKaVxuH85K+EjekmBFaItXTR4DT6v/bOoLWJKIjjs6wKYRHKGojRBZMYpSEhWEIIhuAlhxZKbQUVRNCbeBRE6EWoWBXRjyClICnYq8dc9CRePO2n2IuHNNBAC07WrjGmJumyu5l5O79D6P3HzJvM//WldZLKkYvsg8pBNSFTcv7IIZ/nkLrI/uUUhA0WTuvIjeQ50xGRGmTNbo1WDpMbn7NbfH4JvaF5hdNiM60RyXPCrxpvVEM5NKc1qnkOqomGZL7lyZE8ZyqwoUVF7Y8cyXNIVQ2SqLY8OQTzHHKLz6+oJjqu256cKfOcOF9kx6qJEr3a8uRInkNLDUA678lhnudM2hAwa2h95gr2kRzJc2hVDWLlWyesHPQSv4eJUM0MqLmFw2lD4DfPYacGu5prhuGG4KRtjZ0agJTX1STPoaYGtJLX1STPIaYGwPAKR/Icamq8LzmjlcPoBY9p5XBTA4BdbUxbo/PGZxB5DjM1YM23W8SntcAeJmKmBruaPSRnYIdRnjPtKM1MDc5qrhxZfNJTA2DMt1EOww2BrzyHlZr+N9DfciTPIacGoGK3pa3RVAN66bccyXPIqXGPHFcOxTwn+IvsrNQA1G1Xjo88R72HiYipcY8cptOar8UnJzWgF1AO+Q1BYLs1TmoAjGrbb+Wo9DARRTUAmXlXjup5zp/FJyM1/bigjbDNc056kZ2TGnceQGKc5/wgqwa02kDOuIvsqv7CLt2qQfRa2/eZw/9hIsJV0ydRaiPxzHOIq+mnoKgmlotP8moAkiiH64bAV57D4azxMFEO3cVn8G2NTdW4chRpa9NuCBipAUj15TDNc3wtPnk0tDFytqm0teDzHDZV48pBM2TynJAvsn/mpQblcJ3WfFxkZ6bmt5x45Dns1ExROUw2BJPk4Gsb/EA5MchznjSBIyhH+Tzne/M0sMS0Vc9zck0NmGJV20rnOTmOZ42HscYiz/G5+Mzxm9D+JlGzZ57nhHSRfX3hEvBGu5JXYvE5Iie3cBHYU6/y3BCMv8i+fuM8KECmao/KobIh8NnWHjV1UALLvY7L47+ppxulmU8Bf2PUbJYbguPznPVHuQugDlra5rwhGJKznruhwBTwN2bB9lM59PKcx3uXE6AYRinPcVr7t3Ier18F9dCv5G32ec7eZcX62aCvHclh+yL7XvMMKIpes21fZw6Rh4nYb2nGoaUKNvVp7T8PE6GapnJDwDBGZbRyXKjnOWoXzRFYOn6mtRkvPveaSuzPJmHgwMZsQ7B3Q6VNwKTS4ZTnfMgtKzuejaKn5202eY6y32n+h4XjNIsNQWMhNu1sgFnK2/TynHfDchoLZxUfnI9Hr1fzn3xUTnQPEzUay7E049pJVx2601qjEbeDZhgD7XwiuSH41rh8DmJO344d0rTmf0PwLbsYgzXAZBLpap7WtJbNXs6wvUwbeO0UHIdKnvMKzVwUMwP0esHZJpHnZJfiPQEch2auOc7Mf2E3u1CO7dQ8Di1Z23acGf7CbnZp8cIcCMdjpQvXnN3JeU4Ybe390rI0swmtrfLg2m7ki8/s+0VpZlNgpGo4tkX1gge6Oeyuls/LZDb1UF26tu1E0da63e5S8ZIiF8+jwkpX7ne2tsL9hd3u4cqyKce/r+ZWubXb2QhpWusebi4Wk1IxvjEy6dLNrQ4WUIAbgo+b3c3u6u0LspcJoHzSdzc6G52dnQDynM3Nj4eHK8VyUrwExFzCrKztbnX20Y3PPAfNPD84eP56sVg3ZFoOGiOTeli6vbOxs7//4oS7tTcHb96+WV0tXsgYIISFZqXK6dLdmy/2nz7dwY8xZ87rt73eW/w4WFm5d6VcTso8FglzifNmvVKsoCMsnWc/h+j1egc99PPyzp3bxeJy3UqcFy3RoxtGBqlfR6544N/1DHLR0OXAnykaYljJZNI0zVQqhZ/4tzWnaeJFEARBEARBEARBEARBEARBEARBEASBMr8ADJvUZ0bGgJQAAAAASUVORK5CYII=";let iD=(W,G)=>ik(void 0,void 0,void 0,function*(){let W=new ei.keyStores.BrowserLocalStorageKeyStore(window.localStorage,"_meteor_wallet"),H=yield ei.connect(Object.assign(Object.assign({keyStore:W},G),{headers:{}})),J=new ea.MeteorWallet({near:H,appKeyPrefix:"near_app"});return{wallet:J,keyStore:W}}),iL=({options:W,logger:G,store:H,params:J})=>ik(void 0,void 0,void 0,function*(){let Q=yield iD(J,W.network),ee=()=>ik(void 0,void 0,void 0,function*(){let G=Q.wallet.getAccountId(),H=Q.wallet.account();if(!G||!H)return[];let J=yield H.connection.signer.getPublicKey(H.accountId,W.network.networkId);return[{accountId:G,publicKey:J?J.toString():""}]});return{signIn({contractId:W,methodNames:H=[]}){return ik(this,void 0,void 0,function*(){G.log("MeteorWallet:signIn",{contractId:W,methodNames:H}),H.length?yield Q.wallet.requestSignIn({methods:H,type:ea.EMeteorWalletSignInType.SELECTED_METHODS,contract_id:W}):yield Q.wallet.requestSignIn({type:ea.EMeteorWalletSignInType.ALL_METHODS,contract_id:W});let J=yield ee();return G.log("MeteorWallet:signIn",{contractId:W,methodNames:H,account:J[0]}),J})},signOut(){return ik(this,void 0,void 0,function*(){Q.wallet.isSignedIn()&&(yield Q.wallet.signOut())})},isSignedIn(){return ik(this,void 0,void 0,function*(){return!!Q.wallet&&Q.wallet.isSignedIn()})},getAccounts(){return ik(this,void 0,void 0,function*(){return ee()})},verifyOwner({message:W}){return ik(this,void 0,void 0,function*(){G.log("MeteorWallet:verifyOwner",{message:W});let H=yield Q.wallet.verifyOwner({message:W});if(H.success)return H.payload;throw Error(`Couldn't verify owner: ${H.message}`)})},signMessage({message:W,nonce:H,recipient:J,state:ee}){return ik(this,void 0,void 0,function*(){G.log("MeteorWallet:signMessage",{message:W,nonce:H,recipient:J,state:ee});let et=Q.wallet.getAccountId(),eo=yield Q.wallet.signMessage({message:W,nonce:H,recipient:J,accountId:et,state:ee});if(eo.success)return eo.payload;throw Error(`Couldn't sign message owner: ${eo.message}`)})},signAndSendTransaction({signerId:W,receiverId:J,actions:ee}){return ik(this,void 0,void 0,function*(){G.log("MeteorWallet:signAndSendTransaction",{signerId:W,receiverId:J,actions:ee});let{contract:et}=H.getState();if(!Q.wallet.isSignedIn())throw Error("Wallet not signed in");if(!J&&!et)throw Error("No receiver found to send the transaction to");let eo=Q.wallet.account();return eo.signAndSendTransaction_direct({receiverId:null!=J?J:et.contractId,actions:ee})})},signAndSendTransactions({transactions:W}){return ik(this,void 0,void 0,function*(){if(G.log("MeteorWallet:signAndSendTransactions",{transactions:W}),!Q.wallet.isSignedIn())throw Error("Wallet not signed in");return Q.wallet.requestSignTransactions({transactions:W})})},buildImportAccountsUrl:()=>`https://wallet.meteorwallet.app/batch-import?network=${Q.wallet._networkId}`}});function iU({iconUrl:W=iR,deprecated:G=!1}={}){return()=>ik(this,void 0,void 0,function*(){return{id:"meteor-wallet",type:"injected",metadata:{available:!0,name:"Meteor Wallet",description:"Securely store and stake your NEAR tokens and compatible assets with Meteor.",iconUrl:W,deprecated:G,downloadUrl:"https://wallet.meteorwallet.app",useUrlAccountImport:!0},init:G=>iL(Object.assign(Object.assign({},G),{params:{iconUrl:W}}))}})}},49466:function(W,G,H){"use strict";H.d(G,{P:function(){return eC}});var J,Q,ee,et,eo,ei,ea,es,eu,ec,ef,ed,eh,ep,ey,ev,em,eg,eb,ew,e_,eS,eE,eO,eA,eP,eM=H(60079),ej=H(52434);let{transactions:eT,utils:ex}=J||(J=H.t(ej,2)),eI=W=>{if("FullAccess"===W)return eT.fullAccessKey();let{receiverId:G,methodNames:H=[]}=W,J=W.allowance?new eM.BN(W.allowance):void 0;return eT.functionCallAccessKey(G,H,J)},eC=W=>{switch(W.type){case"CreateAccount":return eT.createAccount();case"DeployContract":{let{code:G}=W.params;return eT.deployContract(G)}case"FunctionCall":{let{methodName:G,args:H,gas:J,deposit:Q}=W.params;return eT.functionCall(G,H,new eM.BN(J),new eM.BN(Q))}case"Transfer":{let{deposit:G}=W.params;return eT.transfer(new eM.BN(G))}case"Stake":{let{stake:G,publicKey:H}=W.params;return eT.stake(new eM.BN(G),ex.PublicKey.from(H))}case"AddKey":{let{publicKey:G,accessKey:H}=W.params;return eT.addKey(ex.PublicKey.from(G),eI(H.permission))}case"DeleteKey":{let{publicKey:G}=W.params;return eT.deleteKey(ex.PublicKey.from(G))}case"DeleteAccount":{let{beneficiaryId:G}=W.params;return eT.deleteAccount(G)}default:throw Error("Invalid action type")}};var eN="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ek=function(W){try{return!!W()}catch(W){return!0}},eR=!ek(function(){var W=(function(){}).bind();return"function"!=typeof W||W.hasOwnProperty("prototype")}),eD=eR,eL=Function.prototype,eU=eL.bind,eF=eL.call,e$=eD&&eU.bind(eF,eF),eB=eD?function(W){return W&&e$(W)}:function(W){return W&&function(){return eF.apply(W,arguments)}},eK=eB,eW=eK({}.toString),ez=eK("".slice),eG=function(W){return ez(eW(W),8,-1)},eq=ek,eH=eG,eV=Object,eJ=eB("".split),eY=eq(function(){return!eV("z").propertyIsEnumerable(0)})?function(W){return"String"==eH(W)?eJ(W,""):eV(W)}:eV,eZ=TypeError,eQ=function(W){if(void 0==W)throw eZ("Can't call method on "+W);return W},eX=eY,e0=eQ,e1=function(W){return eX(e0(W))},e2=function(W){return W&&W.Math==Math&&W},e5=e2("object"==typeof globalThis&&globalThis)||e2("object"==typeof window&&window)||e2("object"==typeof self&&self)||e2("object"==typeof eN&&eN)||function(){return this}()||Function("return this")(),e6={exports:{}},e3=e5,e8=Object.defineProperty,e4=function(W,G){try{e8(e3,W,{value:G,configurable:!0,writable:!0})}catch(H){e3[W]=G}return G},e9=e4,e7="__core-js_shared__",te=e5[e7]||e9(e7,{}),tt=te;(e6.exports=function(W,G){return tt[W]||(tt[W]=void 0!==G?G:{})})("versions",[]).push({version:"3.23.3",mode:"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"});var tr=eQ,tn=Object,ti=function(W){return tn(tr(W))},ta=ti,tu=eB({}.hasOwnProperty),tc=Object.hasOwn||function(W,G){return tu(ta(W),G)},tf=0,td=Math.random(),tp=eB(1..toString),tv=function(W){return"Symbol("+(void 0===W?"":W)+")_"+tp(++tf+td,36)},tm=function(W){return"function"==typeof W},tg=e5,tb=tm,tw=function(W){return tb(W)?W:void 0},t_=function(W,G){return arguments.length<2?tw(tg[W]):tg[W]&&tg[W][G]},tS=t_("navigator","userAgent")||"",tE=e5,tO=tS,tA=tE.process,tP=tE.Deno,tM=tA&&tA.versions||tP&&tP.version,tj=tM&&tM.v8;tj&&(ee=(Q=tj.split("."))[0]>0&&Q[0]<4?1:+(Q[0]+Q[1])),!ee&&tO&&(!(Q=tO.match(/Edge\/(\d+)/))||Q[1]>=74)&&(Q=tO.match(/Chrome\/(\d+)/))&&(ee=+Q[1]);var tT=ee,tI=tT,tC=ek,tN=!!Object.getOwnPropertySymbols&&!tC(function(){var W=Symbol();return!String(W)||!(Object(W) instanceof Symbol)||!Symbol.sham&&tI&&tI<41}),tk=tN&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,tR=e5,tD=e6.exports,tL=tc,tU=tv,tF=tN,t$=tk,tB=tD("wks"),tK=tR.Symbol,tW=tK&&tK.for,tz=t$?tK:tK&&tK.withoutSetter||tU,tG=function(W){if(!tL(tB,W)||!(tF||"string"==typeof tB[W])){var G="Symbol."+W;tF&&tL(tK,W)?tB[W]=tK[W]:t$&&tW?tB[W]=tW(G):tB[W]=tz(G)}return tB[W]},tq=tm,tH=function(W){return"object"==typeof W?null!==W:tq(W)},tV=tH,tJ=String,tY=TypeError,tZ=function(W){if(tV(W))return W;throw tY(tJ(W)+" is not an object")},tQ={},tX=!ek(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),rt=ek,rr=tX&&rt(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),rn={},ri=tH,ra=e5.document,ru=ri(ra)&&ri(ra.createElement),rc=function(W){return ru?ra.createElement(W):{}},rl=ek,rf=rc,rd=!tX&&!rl(function(){return 7!=Object.defineProperty(rf("div"),"a",{get:function(){return 7}}).a}),rh=eR,rp=Function.prototype.call,ry=rh?rp.bind(rp):function(){return rp.apply(rp,arguments)},rv=eB({}.isPrototypeOf),rg=t_,rw=tm,r_=rv,rS=Object,rE=tk?function(W){return"symbol"==typeof W}:function(W){var G=rg("Symbol");return rw(G)&&r_(G.prototype,rS(W))},rO=String,rA=function(W){try{return rO(W)}catch(W){return"Object"}},rP=tm,rM=rA,rj=TypeError,rT=function(W){if(rP(W))return W;throw rj(rM(W)+" is not a function")},rI=rT,rC=function(W,G){var H=W[G];return null==H?void 0:rI(H)},rN=ry,rk=tm,rR=tH,rD=TypeError,rL=ry,rU=tH,rF=rE,r$=rC,rB=function(W,G){var H,J;if("string"===G&&rk(H=W.toString)&&!rR(J=rN(H,W))||rk(H=W.valueOf)&&!rR(J=rN(H,W))||"string"!==G&&rk(H=W.toString)&&!rR(J=rN(H,W)))return J;throw rD("Can't convert object to primitive value")},rK=TypeError,rW=tG("toPrimitive"),rz=function(W,G){if(!rU(W)||rF(W))return W;var H,J=r$(W,rW);if(J){if(void 0===G&&(G="default"),!rU(H=rL(J,W,G))||rF(H))return H;throw rK("Can't convert object to primitive value")}return void 0===G&&(G="number"),rB(W,G)},rG=rE,rq=function(W){var G=rz(W,"string");return rG(G)?G:G+""},rH=tX,rV=rd,rJ=rr,rY=tZ,rZ=rq,rQ=TypeError,rX=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,nt="enumerable",nr="configurable",nn="writable";rn.f=rH?rJ?function(W,G,H){if(rY(W),G=rZ(G),rY(H),"function"==typeof W&&"prototype"===G&&"value"in H&&nn in H&&!H[nn]){var J=ne(W,G);J&&J[nn]&&(W[G]=H.value,H={configurable:nr in H?H[nr]:J[nr],enumerable:nt in H?H[nt]:J[nt],writable:!1})}return rX(W,G,H)}:rX:function(W,G,H){if(rY(W),G=rZ(G),rY(H),rV)try{return rX(W,G,H)}catch(W){}if("get"in H||"set"in H)throw rQ("Accessors not supported");return"value"in H&&(W[G]=H.value),W};var no=Math.ceil,ni=Math.floor,na=Math.trunc||function(W){var G=+W;return(G>0?ni:no)(G)},nu=function(W){var G=+W;return G!=G||0===G?0:na(G)},nc=nu,nl=Math.max,nf=Math.min,nd=nu,nh=Math.min,np=function(W){return W>0?nh(nd(W),9007199254740991):0},ny=function(W){return np(W.length)},nv=e1,nm=function(W,G){var H=nc(W);return H<0?nl(H+G,0):nf(H,G)},nb=ny,nw=function(W){return function(G,H,J){var Q,ee=nv(G),et=nb(ee),eo=nm(J,et);if(W&&H!=H){for(;et>eo;)if((Q=ee[eo++])!=Q)return!0}else for(;et>eo;eo++)if((W||eo in ee)&&ee[eo]===H)return W||eo||0;return!W&&-1}},n_={includes:nw(!0),indexOf:nw(!1)},nS={},nE=eB,nO=tc,nA=e1,nP=n_.indexOf,nM=nS,nj=nE([].push),nT=function(W,G){var H,J=nA(W),Q=0,ee=[];for(H in J)!nO(nM,H)&&nO(J,H)&&nj(ee,H);for(;G.length>Q;)nO(J,H=G[Q++])&&(~nP(ee,H)||nj(ee,H));return ee},nx=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nI=nT,nC=nx,nN=tX,nk=rr,nR=rn,nD=tZ,nL=e1,nU=Object.keys||function(W){return nI(W,nC)};tQ.f=nN&&!nk?Object.defineProperties:function(W,G){nD(W);for(var H,J=nL(G),Q=nU(G),ee=Q.length,et=0;ee>et;)nR.f(W,H=Q[et++],J[H]);return W};var nF=t_("document","documentElement"),n$=e6.exports,nB=tv,nK=n$("keys"),nW=function(W){return nK[W]||(nK[W]=nB(W))},nz=tZ,nG=tQ,nq=nx,nH=nS,nV=nF,nJ=rc,nY=">",nZ="<",nQ="prototype",nX="script",n0=nW("IE_PROTO"),n1=function(){},n2=function(W){return nZ+nX+nY+W+nZ+"/"+nX+nY},n5=function(W){W.write(n2("")),W.close();var G=W.parentWindow.Object;return W=null,G},n6=function(){var W,G=nJ("iframe"),H="java"+nX+":";return G.style.display="none",nV.appendChild(G),G.src=String(H),(W=G.contentWindow.document).open(),W.write(n2("document.F=Object")),W.close(),W.F},n3=function(){try{et=new ActiveXObject("htmlfile")}catch(W){}n3="undefined"!=typeof document?document.domain&&et?n5(et):n6():n5(et);for(var W=nq.length;W--;)delete n3[nQ][nq[W]];return n3()};nH[n0]=!0;var n8=Object.create||function(W,G){var H;return null!==W?(n1[nQ]=nz(W),H=new n1,n1[nQ]=null,H[n0]=W):H=n3(),void 0===G?H:nG.f(H,G)},n4=tG,n9=n8,n7=rn.f,oe=n4("unscopables"),ot=Array.prototype;void 0==ot[oe]&&n7(ot,oe,{configurable:!0,value:n9(null)});var oo=function(W){ot[oe][W]=!0},oi={},oa=tm,os=te,ou=eB(Function.toString);oa(os.inspectSource)||(os.inspectSource=function(W){return ou(W)});var oc=os.inspectSource,ol=tm,od=oc,oh=e5.WeakMap,oy=ol(oh)&&/native code/.test(od(oh)),ov=function(W,G){return{enumerable:!(1&W),configurable:!(2&W),writable:!(4&W),value:G}},om=rn,og=ov,ob=tX?function(W,G,H){return om.f(W,G,og(1,H))}:function(W,G,H){return W[G]=H,W},ow=oy,o_=e5,oS=eB,oE=tH,oO=ob,oA=tc,oP=te,oM=nW,oj=nS,oT="Object already initialized",ox=o_.TypeError,WeakMap=o_.WeakMap,oI=function(W){return ea(W)?ei(W):eo(W,{})},oC=function(W){return function(G){var H;if(!oE(G)||(H=ei(G)).type!==W)throw ox("Incompatible receiver, "+W+" required");return H}};if(ow||oP.state){var oN=oP.state||(oP.state=new WeakMap),oR=oS(oN.get),oD=oS(oN.has),oL=oS(oN.set);eo=function(W,G){if(oD(oN,W))throw new ox(oT);return G.facade=W,oL(oN,W,G),G},ei=function(W){return oR(oN,W)||{}},ea=function(W){return oD(oN,W)}}else{var oU=oM("state");oj[oU]=!0,eo=function(W,G){if(oA(W,oU))throw new ox(oT);return G.facade=W,oO(W,oU,G),G},ei=function(W){return oA(W,oU)?W[oU]:{}},ea=function(W){return oA(W,oU)}}var oF={set:eo,get:ei,has:ea,enforce:oI,getterFor:oC},o$={},oB={},oK={}.propertyIsEnumerable,oW=Object.getOwnPropertyDescriptor,oz=oW&&!oK.call({1:2},1);oB.f=oz?function(W){var G=oW(this,W);return!!G&&G.enumerable}:oK;var oG=tX,oq=ry,oH=oB,oV=ov,oJ=e1,oY=rq,oZ=tc,oQ=rd,oX=Object.getOwnPropertyDescriptor;o$.f=oG?oX:function(W,G){if(W=oJ(W),G=oY(G),oQ)try{return oX(W,G)}catch(W){}if(oZ(W,G))return oV(!oq(oH.f,W,G),W[G])};var o0={exports:{}},o1=tX,o2=Function.prototype,o5=o1&&Object.getOwnPropertyDescriptor,o6=tc(o2,"name"),o3=o6&&"something"===(function(){}).name,o8=o6&&(!o1||o1&&o5(o2,"name").configurable),o4={EXISTS:o6,PROPER:o3,CONFIGURABLE:o8},o9=ek,o7=tm,ir=tc,ia=tX,is=o4.CONFIGURABLE,iu=oc,ic=oF,ih=ic.enforce,ip=ic.get,iy=Object.defineProperty,iv=ia&&!o9(function(){return 8!==iy(function(){},"length",{value:8}).length}),ig=String(String).split("String"),ib=o0.exports=function(W,G,H){"Symbol("===String(G).slice(0,7)&&(G="["+String(G).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),H&&H.getter&&(G="get "+G),H&&H.setter&&(G="set "+G),(!ir(W,"name")||is&&W.name!==G)&&(ia?iy(W,"name",{value:G,configurable:!0}):W.name=G),iv&&H&&ir(H,"arity")&&W.length!==H.arity&&iy(W,"length",{value:H.arity});try{H&&ir(H,"constructor")&&H.constructor?ia&&iy(W,"prototype",{writable:!1}):W.prototype&&(W.prototype=void 0)}catch(W){}var J=ih(W);return ir(J,"source")||(J.source=ig.join("string"==typeof G?G:"")),W};Function.prototype.toString=ib(function(){return o7(this)&&ip(this).source||iu(this)},"toString");var iw=tm,i_=rn,iS=o0.exports,iE=e4,iO=function(W,G,H,J){J||(J={});var Q=J.enumerable,ee=void 0!==J.name?J.name:G;if(iw(H)&&iS(H,ee,J),J.global)Q?W[G]=H:iE(G,H);else{try{J.unsafe?W[G]&&(Q=!0):delete W[G]}catch(W){}Q?W[G]=H:i_.f(W,G,{value:H,enumerable:!1,configurable:!J.nonConfigurable,writable:!J.nonWritable})}return W},iA={},iP=nT,iM=nx.concat("length","prototype");iA.f=Object.getOwnPropertyNames||function(W){return iP(W,iM)};var ij={};ij.f=Object.getOwnPropertySymbols;var iT=t_,ix=iA,iI=ij,iC=tZ,iN=eB([].concat),ik=iT("Reflect","ownKeys")||function(W){var G=ix.f(iC(W)),H=iI.f;return H?iN(G,H(W)):G},iR=tc,iD=ik,iL=o$,iU=rn,iF=function(W,G,H){for(var J=iD(G),Q=iU.f,ee=iL.f,et=0;et<J.length;et++){var eo=J[et];iR(W,eo)||H&&iR(H,eo)||Q(W,eo,ee(G,eo))}},i$=ek,iB=tm,iK=/#|\.prototype\./,iW=function(W,G){var H=iG[iz(W)];return H==iH||H!=iq&&(iB(G)?i$(G):!!G)},iz=iW.normalize=function(W){return String(W).replace(iK,".").toLowerCase()},iG=iW.data={},iq=iW.NATIVE="N",iH=iW.POLYFILL="P",iV=iW,iJ=e5,iY=o$.f,iZ=ob,iQ=iO,iX=e4,i0=iF,i1=iV,i2=function(W,G){var H,J,Q,ee,et,eo=W.target,ei=W.global,ea=W.stat;if(H=ei?iJ:ea?iJ[eo]||iX(eo,{}):(iJ[eo]||{}).prototype)for(J in G){if(ee=G[J],Q=W.dontCallGetSet?(et=iY(H,J))&&et.value:H[J],!i1(ei?J:eo+(ea?".":"#")+J,W.forced)&&void 0!==Q){if(typeof ee==typeof Q)continue;i0(ee,Q)}(W.sham||Q&&Q.sham)&&iZ(ee,"sham",!0),iQ(H,J,ee,W)}},i5=!ek(function(){function W(){}return W.prototype.constructor=null,Object.getPrototypeOf(new W)!==W.prototype}),i6=tc,i3=tm,i8=ti,i4=i5,i9=nW("IE_PROTO"),i7=Object,ae=i7.prototype,at=i4?i7.getPrototypeOf:function(W){var G=i8(W);if(i6(G,i9))return G[i9];var H=G.constructor;return i3(H)&&G instanceof H?H.prototype:G instanceof i7?ae:null},an=ek,ao=tm,ai=at,as=iO,au=tG("iterator"),ac=!1;[].keys&&("next"in(ec=[].keys())?(eu=ai(ai(ec)))!==Object.prototype&&(es=eu):ac=!0),(void 0==es||an(function(){var W={};return es[au].call(W)!==W}))&&(es={}),ao(es[au])||as(es,au,function(){return this});var al={IteratorPrototype:es,BUGGY_SAFARI_ITERATORS:ac},af=rn.f,ad=tc,ah=tG("toStringTag"),ap=function(W,G,H){W&&!H&&(W=W.prototype),W&&!ad(W,ah)&&af(W,ah,{configurable:!0,value:G})},ay=al.IteratorPrototype,av=n8,am=ov,ag=ap,aw=oi,a_=function(){return this},aS=function(W,G,H,J){var Q=G+" Iterator";return W.prototype=av(ay,{next:am(+!J,H)}),ag(W,Q,!1),aw[Q]=a_,W},aE=tm,aO=String,aA=TypeError,aP=eB,aM=tZ,aj=function(W){if("object"==typeof W||aE(W))return W;throw aA("Can't set "+aO(W)+" as a prototype")},aT=Object.setPrototypeOf||("__proto__"in{}?function(){var W,G=!1,H={};try{(W=aP(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(H,[]),G=H instanceof Array}catch(W){}return function(H,J){return aM(H),aj(J),G?W(H,J):H.__proto__=J,H}}():void 0),ax=i2,aI=ry,aC=o4,aN=tm,aR=aS,aD=at,aL=aT,aU=ap,aF=ob,a$=iO,aB=tG,aK=oi,aW=al,az=aC.PROPER,aG=aC.CONFIGURABLE,aq=aW.IteratorPrototype,aH=aW.BUGGY_SAFARI_ITERATORS,aV=aB("iterator"),aJ="keys",aY="values",aZ="entries",aQ=function(){return this},aX=function(W,G,H,J,Q,ee,et){aR(H,G,J);var eo,ei,ea,es=function(W){if(W===Q&&eh)return eh;if(!aH&&W in ef)return ef[W];switch(W){case aJ:case aY:case aZ:return function(){return new H(this,W)}}return function(){return new H(this)}},eu=G+" Iterator",ec=!1,ef=W.prototype,ed=ef[aV]||ef["@@iterator"]||Q&&ef[Q],eh=!aH&&ed||es(Q),ep="Array"==G&&ef.entries||ed;if(ep&&(eo=aD(ep.call(new W)))!==Object.prototype&&eo.next&&(aD(eo)===aq||(aL?aL(eo,aq):aN(eo[aV])||a$(eo,aV,aQ)),aU(eo,eu,!0)),az&&Q==aY&&ed&&ed.name!==aY&&(aG?aF(ef,"name",aY):(ec=!0,eh=function(){return aI(ed,this)})),Q){if(ei={values:es(aY),keys:ee?eh:es(aJ),entries:es(aZ)},et)for(ea in ei)!aH&&!ec&&ea in ef||a$(ef,ea,ei[ea]);else ax({target:G,proto:!0,forced:aH||ec},ei)}return ef[aV]!==eh&&a$(ef,aV,eh,{name:Q}),aK[G]=eh,ei},se=e1,sr=oo,so=oi,si=oF,sa=rn.f,ss=aX,su=tX,sc="Array Iterator",sl=si.set,sf=si.getterFor(sc),sd=ss(Array,"Array",function(W,G){sl(this,{type:sc,target:se(W),index:0,kind:G})},function(){var W=sf(this),G=W.target,H=W.kind,J=W.index++;return!G||J>=G.length?(W.target=void 0,{value:void 0,done:!0}):"keys"==H?{value:J,done:!1}:"values"==H?{value:G[J],done:!1}:{value:[J,G[J]],done:!1}},"values"),sh=so.Arguments=so.Array;if(sr("keys"),sr("values"),sr("entries"),su&&"values"!==sh.name)try{sa(sh,"name",{value:"values"})}catch(W){}var sp={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},sy=rc("span").classList,sv=sy&&sy.constructor&&sy.constructor.prototype,sg=e5,sb=sp,sw=sv===Object.prototype?void 0:sv,s_=sd,sS=ob,sE=tG,sO=sE("iterator"),sA=sE("toStringTag"),sP=s_.values,sM=function(W,G){if(W){if(W[sO]!==sP)try{sS(W,sO,sP)}catch(G){W[sO]=sP}if(W[sA]||sS(W,sA,G),sb[G]){for(var H in s_)if(W[H]!==s_[H])try{sS(W,H,s_[H])}catch(G){W[H]=s_[H]}}}};for(var sj in sb)sM(sg[sj]&&sg[sj].prototype,sj);sM(sw,"DOMTokenList");var sT="process"==eG(e5.process),sx=t_,sI=rn,sC=tX,sN=tG("species"),sR=function(W){var G=sx(W),H=sI.f;sC&&G&&!G[sN]&&H(G,sN,{configurable:!0,get:function(){return this}})},sD=rv,sL=TypeError,sU=function(W,G){if(sD(G,W))return W;throw sL("Incorrect invocation")},sF=tG("toStringTag"),s$={};s$[sF]="z";var sB="[object z]"===String(s$),sK=tm,sW=eG,sz=tG("toStringTag"),sG=Object,sq="Arguments"==sW(function(){return arguments}()),sH=function(W,G){try{return W[G]}catch(W){}},sV=sB?sW:function(W){var G,H,J;return void 0===W?"Undefined":null===W?"Null":"string"==typeof(H=sH(G=sG(W),sz))?H:sq?sW(G):"Object"==(J=sW(G))&&sK(G.callee)?"Arguments":J},sJ=eB,sY=ek,sZ=tm,sQ=sV,sX=oc,s5=function(){},s6=[],s3=t_("Reflect","construct"),s8=/^\s*(?:class|function)\b/,s4=sJ(s8.exec),s9=!s8.exec(s5),s7=function(W){if(!sZ(W))return!1;try{return s3(s5,s6,W),!0}catch(W){return!1}},ue=function(W){if(!sZ(W))return!1;switch(sQ(W)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s9||!!s4(s8,sX(W))}catch(W){return!0}};ue.sham=!0;var ut=!s3||sY(function(){var W;return s7(s7.call)||!s7(Object)||!s7(function(){W=!0})||W})?ue:s7,ur=rA,un=TypeError,uo=tZ,ui=function(W){if(ut(W))return W;throw un(ur(W)+" is not a constructor")},ua=tG("species"),us=function(W,G){var H,J=uo(W).constructor;return void 0===J||void 0==(H=uo(J)[ua])?G:ui(H)},uu=eR,uc=Function.prototype,ul=uc.apply,uf=uc.call,ud="object"==typeof Reflect&&Reflect.apply||(uu?uf.bind(ul):function(){return uf.apply(ul,arguments)}),uh=eB,uy=rT,uv=eR,um=uh(uh.bind),ug=function(W,G){return uy(W),void 0===G?W:uv?um(W,G):function(){return W.apply(G,arguments)}},ub=eB([].slice),uw=TypeError,u_=function(W,G){if(W<G)throw uw("Not enough arguments");return W},uS=tS,uE=/(?:ipad|iphone|ipod).*applewebkit/i.test(uS),uO=e5,uA=ud,uP=ug,uM=tm,uj=tc,uT=ek,ux=nF,uI=ub,uC=rc,uN=u_,uk=uE,uR=sT,uD=uO.setImmediate,uL=uO.clearImmediate,uU=uO.process,uF=uO.Dispatch,u$=uO.Function,MessageChannel=uO.MessageChannel,uB=uO.String,uK=0,uW={},uz="onreadystatechange";try{ef=uO.location}catch(W){}var uG=function(W){if(uj(uW,W)){var G=uW[W];delete uW[W],G()}},uq=function(W){return function(){uG(W)}},uH=function(W){uG(W.data)},uV=function(W){uO.postMessage(uB(W),ef.protocol+"//"+ef.host)};uD&&uL||(uD=function(W){uN(arguments.length,1);var G=uM(W)?W:u$(W),H=uI(arguments,1);return uW[++uK]=function(){uA(G,void 0,H)},ed(uK),uK},uL=function(W){delete uW[W]},uR?ed=function(W){uU.nextTick(uq(W))}:uF&&uF.now?ed=function(W){uF.now(uq(W))}:MessageChannel&&!uk?(ep=(eh=new MessageChannel).port2,eh.port1.onmessage=uH,ed=uP(ep.postMessage,ep)):uO.addEventListener&&uM(uO.postMessage)&&!uO.importScripts&&ef&&"file:"!==ef.protocol&&!uT(uV)?(ed=uV,uO.addEventListener("message",uH,!1)):ed=uz in uC("script")?function(W){ux.appendChild(uC("script"))[uz]=function(){ux.removeChild(this),uG(W)}}:function(W){setTimeout(uq(W),0)});var uJ={set:uD},uY=tS,uZ=e5,uQ=/ipad|iphone|ipod/i.test(uY)&&void 0!==uZ.Pebble,uX=tS,u0=/web0s(?!.*chrome)/i.test(uX),u1=e5,u2=ug,u5=o$.f,u6=uJ.set,u3=uE,u8=uQ,u4=u0,u9=sT,MutationObserver=u1.MutationObserver||u1.WebKitMutationObserver,u7=u1.document,ce=u1.process,ct=u1.Promise,cr=u5(u1,"queueMicrotask"),cn=cr&&cr.value;cn||(ey=function(){var W,G;for(u9&&(W=ce.domain)&&W.exit();ev;){G=ev.fn,ev=ev.next;try{G()}catch(W){throw ev?eg():em=void 0,W}}em=void 0,W&&W.enter()},u3||u9||u4||!MutationObserver||!u7?!u8&&ct&&ct.resolve?((e_=ct.resolve(void 0)).constructor=ct,eS=u2(e_.then,e_),eg=function(){eS(ey)}):u9?eg=function(){ce.nextTick(ey)}:(u6=u2(u6,u1),eg=function(){u6(ey)}):(eb=!0,ew=u7.createTextNode(""),new MutationObserver(ey).observe(ew,{characterData:!0}),eg=function(){ew.data=eb=!eb}));var co=cn||function(W){var G={fn:W,next:void 0};em&&(em.next=G),ev||(ev=G,eg()),em=G},ci=e5,ca=function(W,G){var H=ci.console;H&&H.error&&(1==arguments.length?H.error(W):H.error(W,G))},cs=function(W){try{return{error:!1,value:W()}}catch(W){return{error:!0,value:W}}},cu=function(){this.head=null,this.tail=null};cu.prototype={add:function(W){var G={item:W,next:null};this.head?this.tail.next=G:this.head=G,this.tail=G},get:function(){var W=this.head;if(W)return this.head=W.next,this.tail===W&&(this.tail=null),W.item}};var cc=cu,cl=e5.Promise,cf="object"==typeof window&&"object"!=typeof Deno,cy=e5,cv=cl,cm=tm,cg=iV,cw=oc,c_=tG,cS=cf,cE=tT;cv&&cv.prototype;var cO=c_("species"),cA=!1,cP=cm(cy.PromiseRejectionEvent),cM={CONSTRUCTOR:cg("Promise",function(){var W=cw(cv),G=W!==String(cv);if(!G&&66===cE)return!0;if(cE>=51&&/native code/.test(W))return!1;var H=new cv(function(W){W(1)}),J=function(W){W(function(){},function(){})};return(H.constructor={})[cO]=J,!(cA=H.then(function(){}) instanceof J)||!G&&cS&&!cP}),REJECTION_EVENT:cP,SUBCLASSING:cA},cj={},cT=rT,cx=function(W){var G,H;this.promise=new W(function(W,J){if(void 0!==G||void 0!==H)throw TypeError("Bad Promise constructor");G=W,H=J}),this.resolve=cT(G),this.reject=cT(H)};cj.f=function(W){return new cx(W)};var cI=i2,cC=sT,cN=e5,ck=ry,cR=iO,cD=aT,cL=ap,cU=sR,cF=rT,c$=tm,cB=tH,cK=sU,cW=us,cz=uJ.set,cG=co,cq=ca,cH=cs,cV=cc,cJ=oF,cY=cl,cZ=cM,cQ=cj,cX="Promise",c0=cZ.CONSTRUCTOR,c5=cZ.REJECTION_EVENT,c6=cZ.SUBCLASSING,c3=cJ.getterFor(cX),c8=cJ.set,c4=cY&&cY.prototype,c9=cY,c7=c4,le=cN.TypeError,lt=cN.document,lr=cN.process,ln=cQ.f,li=ln,la=!!(lt&&lt.createEvent&&cN.dispatchEvent),ls="unhandledrejection",lu="rejectionhandled",lc=0,ll=1,lf=2,ld=1,lh=2,lp=function(W){var G;return!!(cB(W)&&c$(G=W.then))&&G},ly=function(W,G){var H,J,Q,ee=G.value,et=G.state==ll,eo=et?W.ok:W.fail,ei=W.resolve,ea=W.reject,es=W.domain;try{eo?(et||(G.rejection===lh&&lw(G),G.rejection=ld),!0===eo?H=ee:(es&&es.enter(),H=eo(ee),es&&(es.exit(),Q=!0)),H===W.promise?ea(le("Promise-chain cycle")):(J=lp(H))?ck(J,H,ei,ea):ei(H)):ea(ee)}catch(W){es&&!Q&&es.exit(),ea(W)}},lv=function(W,G){W.notified||(W.notified=!0,cG(function(){for(var H,J=W.reactions;H=J.get();)ly(H,W);W.notified=!1,G&&!W.rejection&&lg(W)}))},lm=function(W,G,H){var J,Q;la?((J=lt.createEvent("Event")).promise=G,J.reason=H,J.initEvent(W,!1,!0),cN.dispatchEvent(J)):J={promise:G,reason:H},!c5&&(Q=cN["on"+W])?Q(J):W===ls&&cq("Unhandled promise rejection",H)},lg=function(W){ck(cz,cN,function(){var G,H=W.facade,J=W.value;if(lb(W)&&(G=cH(function(){cC?lr.emit("unhandledRejection",J,H):lm(ls,H,J)}),W.rejection=cC||lb(W)?lh:ld,G.error))throw G.value})},lb=function(W){return W.rejection!==ld&&!W.parent},lw=function(W){ck(cz,cN,function(){var G=W.facade;cC?lr.emit("rejectionHandled",G):lm(lu,G,W.value)})},l_=function(W,G,H){return function(J){W(G,J,H)}},lS=function(W,G,H){W.done||(W.done=!0,H&&(W=H),W.value=G,W.state=lf,lv(W,!0))},lE=function(W,G,H){if(!W.done){W.done=!0,H&&(W=H);try{if(W.facade===G)throw le("Promise can't be resolved itself");var J=lp(G);J?cG(function(){var H={done:!1};try{ck(J,G,l_(lE,H,W),l_(lS,H,W))}catch(G){lS(H,G,W)}}):(W.value=G,W.state=ll,lv(W,!1))}catch(G){lS({done:!1},G,W)}}};if(c0&&(c7=(c9=function(W){cK(this,c7),cF(W),ck(eE,this);var G=c3(this);try{W(l_(lE,G),l_(lS,G))}catch(W){lS(G,W)}}).prototype,(eE=function(W){c8(this,{type:cX,done:!1,notified:!1,parent:!1,reactions:new cV,rejection:!1,state:lc,value:void 0})}).prototype=cR(c7,"then",function(W,G){var H=c3(this),J=ln(cW(this,c9));return H.parent=!0,J.ok=!c$(W)||W,J.fail=c$(G)&&G,J.domain=cC?lr.domain:void 0,H.state==lc?H.reactions.add(J):cG(function(){ly(J,H)}),J.promise}),eO=function(){var W=new eE,G=c3(W);this.promise=W,this.resolve=l_(lE,G),this.reject=l_(lS,G)},cQ.f=ln=function(W){return W===c9||W===eA?new eO(W):li(W)},c$(cY)&&c4!==Object.prototype)){eP=c4.then,c6||cR(c4,"then",function(W,G){var H=this;return new c9(function(W,G){ck(eP,H,W,G)}).then(W,G)},{unsafe:!0});try{delete c4.constructor}catch(W){}cD&&cD(c4,c7)}cI({global:!0,constructor:!0,wrap:!0,forced:c0},{Promise:c9}),cL(c9,cX,!1),cU(cX);var lO=oi,lA=tG("iterator"),lP=Array.prototype,lM=function(W){return void 0!==W&&(lO.Array===W||lP[lA]===W)},lj=sV,lT=rC,lx=oi,lI=tG("iterator"),lC=function(W){if(void 0!=W)return lT(W,lI)||lT(W,"@@iterator")||lx[lj(W)]},lN=ry,lk=rT,lR=tZ,lD=rA,lL=lC,lU=TypeError,lF=ry,l$=tZ,lB=rC,lK=ug,lW=ry,lz=tZ,lG=rA,lq=lM,lH=ny,lV=rv,lJ=function(W,G){var H=arguments.length<2?lL(W):G;if(lk(H))return lR(lN(H,W));throw lU(lD(W)+" is not iterable")},lY=lC,lZ=function(W,G,H){var J,Q;l$(W);try{if(!(J=lB(W,"return"))){if("throw"===G)throw H;return H}J=lF(J,W)}catch(W){Q=!0,J=W}if("throw"===G)throw H;if(Q)throw J;return l$(J),H},lQ=TypeError,lX=function(W,G){this.stopped=W,this.result=G},l0=lX.prototype,l1=function(W,G,H){var J,Q,ee,et,eo,ei,ea,es=H&&H.that,eu=!!(H&&H.AS_ENTRIES),ec=!!(H&&H.IS_ITERATOR),ef=!!(H&&H.INTERRUPTED),ed=lK(G,es),eh=function(W){return J&&lZ(J,"normal",W),new lX(!0,W)},ep=function(W){return eu?(lz(W),ef?ed(W[0],W[1],eh):ed(W[0],W[1])):ef?ed(W,eh):ed(W)};if(ec)J=W;else{if(!(Q=lY(W)))throw lQ(lG(W)+" is not iterable");if(lq(Q)){for(ee=0,et=lH(W);et>ee;ee++)if((eo=ep(W[ee]))&&lV(l0,eo))return eo;return new lX(!1)}J=lJ(W,Q)}for(ei=J.next;!(ea=lW(ei,J)).done;){try{eo=ep(ea.value)}catch(W){lZ(J,"throw",W)}if("object"==typeof eo&&eo&&lV(l0,eo))return eo}return new lX(!1)},l2=tG("iterator"),l5=!1;try{var l6=0,l3={next:function(){return{done:!!l6++}},return:function(){l5=!0}};l3[l2]=function(){return this},Array.from(l3,function(){throw 2})}catch(W){}var l8=cl,l4=function(W,G){if(!G&&!l5)return!1;var H=!1;try{var J={};J[l2]=function(){return{next:function(){return{done:H=!0}}}},W(J)}catch(W){}return H},l9=cM.CONSTRUCTOR||!l4(function(W){l8.all(W).then(void 0,function(){})}),l7=ry,fe=rT,ft=cj,fr=cs,fo=l1;i2({target:"Promise",stat:!0,forced:l9},{all:function(W){var G=this,H=ft.f(G),J=H.resolve,Q=H.reject,ee=fr(function(){var H=fe(G.resolve),ee=[],et=0,eo=1;fo(W,function(W){var ei=et++,ea=!1;eo++,l7(H,G,W).then(function(W){!ea&&(ea=!0,ee[ei]=W,--eo||J(ee))},Q)}),--eo||J(ee)});return ee.error&&Q(ee.value),H.promise}});var fi=i2,fa=cM.CONSTRUCTOR,fu=cl,fc=t_,fl=tm,ff=iO,fd=fu&&fu.prototype;if(fi({target:"Promise",proto:!0,forced:fa,real:!0},{catch:function(W){return this.then(void 0,W)}}),fl(fu)){var fh=fc("Promise").prototype.catch;fd.catch!==fh&&ff(fd,"catch",fh,{unsafe:!0})}var fp=ry,fy=rT,fv=cj,fm=cs,fg=l1;i2({target:"Promise",stat:!0,forced:l9},{race:function(W){var G=this,H=fv.f(G),J=H.reject,Q=fm(function(){var Q=fy(G.resolve);fg(W,function(W){fp(Q,G,W).then(H.resolve,J)})});return Q.error&&J(Q.value),H.promise}});var fb=ry,fw=cj;i2({target:"Promise",stat:!0,forced:cM.CONSTRUCTOR},{reject:function(W){var G=fw.f(this);return fb(G.reject,void 0,W),G.promise}});var f_=tZ,fS=tH,fE=cj,fO=function(W,G){if(f_(W),fS(G)&&G.constructor===W)return G;var H=fE.f(W);return(0,H.resolve)(G),H.promise},fA=i2,fP=t_,fM=cM.CONSTRUCTOR,fj=fO;fP("Promise"),fA({target:"Promise",stat:!0,forced:fM},{resolve:function(W){return fj(this,W)}});var fT=sV,fx=String,fI=function(W){if("Symbol"===fT(W))throw TypeError("Cannot convert a Symbol value to a string");return fx(W)},fC=tZ,fN=ry,fk=tc,fR=rv,fD=function(){var W=fC(this),G="";return W.hasIndices&&(G+="d"),W.global&&(G+="g"),W.ignoreCase&&(G+="i"),W.multiline&&(G+="m"),W.dotAll&&(G+="s"),W.unicode&&(G+="u"),W.unicodeSets&&(G+="v"),W.sticky&&(G+="y"),G},fL=RegExp.prototype,fU=function(W){var G=W.flags;return!(void 0===G&&!("flags"in fL)&&!fk(W,"flags")&&fR(fL,W))?G:fN(fD,W)},fF=o4.PROPER,f$=iO,fB=tZ,fK=fI,fW=ek,fz=fU,fG="toString",fq=RegExp.prototype[fG],fH=fW(function(){return"/a/b"!=fq.call({source:"a",flags:"b"})}),fV=fF&&fq.name!=fG;(fH||fV)&&f$(RegExp.prototype,fG,function(){var W=fB(this);return"/"+fK(W.source)+"/"+fK(fz(W))},{unsafe:!0}),"function"==typeof SuppressedError&&SuppressedError},46465:function(W,G,H){"use strict";H.r(G),H.d(G,{customAlphabet:function(){return et},customRandom:function(){return ee},nanoid:function(){return eo},random:function(){return Q},urlAlphabet:function(){return J}});let J="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Q=W=>crypto.getRandomValues(new Uint8Array(W)),ee=(W,G,H)=>{let J=(2<<Math.log(W.length-1)/Math.LN2)-1,Q=-~(1.6*J*G/W.length);return (ee=G)=>{let et="";for(;;){let G=H(Q),eo=Q;for(;eo--;)if((et+=W[G[eo]&J]||"").length===ee)return et}}},et=(W,G=21)=>ee(W,G,Q),eo=(W=21)=>crypto.getRandomValues(new Uint8Array(W)).reduce((W,G)=>((G&=63)<36?W+=G.toString(36):G<62?W+=(G-26).toString(36).toUpperCase():G>62?W+="-":W+="_",W),"")},22131:function(W,G,H){"use strict";function J(W,G,H){return G<=W&&W<=H}function Q(W){if(void 0===W)return{};if(W===Object(W))return W;throw TypeError("Could not convert argument to dictionary")}function ee(W){for(var G=String(W),H=G.length,J=0,Q=[];J<H;){var ee=G.charCodeAt(J);if(ee<55296||ee>57343)Q.push(ee);else if(56320<=ee&&ee<=57343)Q.push(65533);else if(55296<=ee&&ee<=56319){if(J===H-1)Q.push(65533);else{var et=W.charCodeAt(J+1);if(56320<=et&&et<=57343){var eo=1023&ee,ei=1023&et;Q.push(65536+(eo<<10)+ei),J+=1}else Q.push(65533)}}J+=1}return Q}function et(W){for(var G="",H=0;H<W.length;++H){var J=W[H];J<=65535?G+=String.fromCharCode(J):(J-=65536,G+=String.fromCharCode((J>>10)+55296,(1023&J)+56320))}return G}H.r(G),H.d(G,{TextDecoder:function(){return TextDecoder},TextEncoder:function(){return TextEncoder}});var eo=-1;function ei(W){this.tokens=[].slice.call(W)}ei.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():eo},prepend:function(W){if(Array.isArray(W))for(var G=W;G.length;)this.tokens.unshift(G.pop());else this.tokens.unshift(W)},push:function(W){if(Array.isArray(W))for(var G=W;G.length;)this.tokens.push(G.shift());else this.tokens.push(W)}};var ea=-1;function es(W,G){if(W)throw TypeError("Decoder error");return G||65533}var eu="utf-8";function TextDecoder(W,G){if(!(this instanceof TextDecoder))return new TextDecoder(W,G);if((W=void 0!==W?String(W).toLowerCase():eu)!==eu)throw Error("Encoding not supported. Only utf-8 is supported");G=Q(G),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!G.fatal,this._ignoreBOM=!!G.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function TextEncoder(W,G){if(!(this instanceof TextEncoder))return new TextEncoder(W,G);if((W=void 0!==W?String(W).toLowerCase():eu)!==eu)throw Error("Encoding not supported. Only utf-8 is supported");G=Q(G),this._streaming=!1,this._encoder=null,this._options={fatal:!!G.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}function ec(W){var G=W.fatal,H=0,Q=0,ee=0,et=128,ei=191;this.handler=function(W,eu){if(eu===eo&&0!==ee)return ee=0,es(G);if(eu===eo)return ea;if(0===ee){if(J(eu,0,127))return eu;if(J(eu,194,223))ee=1,H=eu-192;else if(J(eu,224,239))224===eu&&(et=160),237===eu&&(ei=159),ee=2,H=eu-224;else{if(!J(eu,240,244))return es(G);240===eu&&(et=144),244===eu&&(ei=143),ee=3,H=eu-240}return H<<=6*ee,null}if(!J(eu,et,ei))return H=ee=Q=0,et=128,ei=191,W.prepend(eu),es(G);if(et=128,ei=191,Q+=1,H+=eu-128<<6*(ee-Q),Q!==ee)return null;var ec=H;return H=ee=Q=0,ec}}function ef(W){W.fatal,this.handler=function(W,G){if(G===eo)return ea;if(J(G,0,127))return G;J(G,128,2047)?(H=1,Q=192):J(G,2048,65535)?(H=2,Q=224):J(G,65536,1114111)&&(H=3,Q=240);for(var H,Q,ee=[(G>>6*H)+Q];H>0;){var et=G>>6*(H-1);ee.push(128|63&et),H-=1}return ee}}TextDecoder.prototype={decode:function(W,G){H="object"==typeof W&&W instanceof ArrayBuffer?new Uint8Array(W):"object"==typeof W&&"buffer"in W&&W.buffer instanceof ArrayBuffer?new Uint8Array(W.buffer,W.byteOffset,W.byteLength):new Uint8Array(0),G=Q(G),this._streaming||(this._decoder=new ec({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!G.stream;for(var H,J,ee=new ei(H),eo=[];!ee.endOfStream()&&(J=this._decoder.handler(ee,ee.read()))!==ea;)null!==J&&(Array.isArray(J)?eo.push.apply(eo,J):eo.push(J));if(!this._streaming){do{if((J=this._decoder.handler(ee,ee.read()))===ea)break;if(null===J)continue;Array.isArray(J)?eo.push.apply(eo,J):eo.push(J)}while(!ee.endOfStream());this._decoder=null}return!eo.length||-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===eo[0]?(this._BOMseen=!0,eo.shift()):this._BOMseen=!0),et(eo)}},TextEncoder.prototype={encode:function(W,G){W=W?String(W):"",G=Q(G),this._streaming||(this._encoder=new ef(this._options)),this._streaming=!!G.stream;for(var H,J=[],et=new ei(ee(W));!et.endOfStream()&&(H=this._encoder.handler(et,et.read()))!==ea;)Array.isArray(H)?J.push.apply(J,H):J.push(H);if(!this._streaming){for(;(H=this._encoder.handler(et,et.read()))!==ea;)Array.isArray(H)?J.push.apply(J,H):J.push(H);this._encoder=null}return new Uint8Array(J)}}},90701:function(W,G,H){"use strict";H.d(G,{CR:function(){return et},XA:function(){return ee},ZT:function(){return Q},ev:function(){return eo}});var J=function(W,G){return(J=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(W,G){W.__proto__=G}||function(W,G){for(var H in G)Object.prototype.hasOwnProperty.call(G,H)&&(W[H]=G[H])})(W,G)};function Q(W,G){if("function"!=typeof G&&null!==G)throw TypeError("Class extends value "+String(G)+" is not a constructor or null");function H(){this.constructor=W}J(W,G),W.prototype=null===G?Object.create(G):(H.prototype=G.prototype,new H)}function ee(W){var G="function"==typeof Symbol&&Symbol.iterator,H=G&&W[G],J=0;if(H)return H.call(W);if(W&&"number"==typeof W.length)return{next:function(){return W&&J>=W.length&&(W=void 0),{value:W&&W[J++],done:!W}}};throw TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")}function et(W,G){var H="function"==typeof Symbol&&W[Symbol.iterator];if(!H)return W;var J,Q,ee=H.call(W),et=[];try{for(;(void 0===G||G-- >0)&&!(J=ee.next()).done;)et.push(J.value)}catch(W){Q={error:W}}finally{try{J&&!J.done&&(H=ee.return)&&H.call(ee)}finally{if(Q)throw Q.error}}return et}function eo(W,G,H){if(H||2==arguments.length)for(var J,Q=0,ee=G.length;Q<ee;Q++)!J&&Q in G||(J||(J=Array.prototype.slice.call(G,0,Q)),J[Q]=G[Q]);return W.concat(J||Array.prototype.slice.call(G))}"function"==typeof SuppressedError&&SuppressedError},77339:function(W,G,H){"use strict";H.r(G),H.d(G,{uuid4:function(){return ee},valid:function(){return Q}});let J=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function Q(W){return J.test(W)}function ee(){var W=URL.createObjectURL(new Blob),G=W.toString();return URL.revokeObjectURL(W),G.split(/[:\/]/g).pop().toLowerCase()}ee.valid=Q,G.default=ee},65267:function(W){"use strict";W.exports=JSON.parse('{"GasLimitExceeded":"Exceeded the maximum amount of gas allowed to burn per contract","MethodEmptyName":"Method name is empty","WasmerCompileError":"Wasmer compilation error: {{msg}}","GuestPanic":"Smart contract panicked: {{panic_msg}}","Memory":"Error creating Wasm memory","GasExceeded":"Exceeded the prepaid gas","MethodUTF8Error":"Method name is not valid UTF8 string","BadUTF16":"String encoding is bad UTF-16 sequence","WasmTrap":"WebAssembly trap: {{msg}}","GasInstrumentation":"Gas instrumentation failed or contract has denied instructions.","InvalidPromiseIndex":"{{promise_idx}} does not correspond to existing promises","InvalidPromiseResultIndex":"Accessed invalid promise result index: {{result_idx}}","Deserialization":"Error happened while deserializing the module","MethodNotFound":"Contract method is not found","InvalidRegisterId":"Accessed invalid register id: {{register_id}}","InvalidReceiptIndex":"VM Logic returned an invalid receipt index: {{receipt_index}}","EmptyMethodName":"Method name is empty in contract call","CannotReturnJointPromise":"Returning joint promise is currently prohibited","StackHeightInstrumentation":"Stack instrumentation failed","CodeDoesNotExist":"Cannot find contract code for account {{account_id}}","MethodInvalidSignature":"Invalid method signature","IntegerOverflow":"Integer overflow happened during contract execution","MemoryAccessViolation":"MemoryAccessViolation","InvalidIteratorIndex":"Iterator index {{iterator_index}} does not exist","IteratorWasInvalidated":"Iterator {{iterator_index}} was invalidated after its creation by performing a mutable operation on trie","InvalidAccountId":"VM Logic returned an invalid account id","Serialization":"Error happened while serializing the module","CannotAppendActionToJointPromise":"Actions can only be appended to non-joint promise.","InternalMemoryDeclared":"Internal memory declaration has been found in the module","Instantiate":"Error happened during instantiation","ProhibitedInView":"{{method_name}} is not allowed in view calls","InvalidMethodName":"VM Logic returned an invalid method name","BadUTF8":"String encoding is bad UTF-8 sequence","BalanceExceeded":"Exceeded the account balance","LinkError":"Wasm contract link error: {{msg}}","InvalidPublicKey":"VM Logic provided an invalid public key","ActorNoPermission":"Actor {{actor_id}} doesn\'t have permission to account {{account_id}} to complete the action","LackBalanceForState":"The account {{account_id}} wouldn\'t have enough balance to cover storage, required to have {{amount}} yoctoNEAR more","ReceiverMismatch":"Wrong AccessKey used for transaction: transaction is sent to receiver_id={{tx_receiver}}, but is signed with function call access key that restricted to only use with receiver_id={{ak_receiver}}. Either change receiver_id in your transaction or switch to use a FullAccessKey.","CostOverflow":"Transaction gas or balance cost is too high","InvalidSignature":"Transaction is not signed with the given public key","AccessKeyNotFound":"Signer \\"{{account_id}}\\" doesn\'t have access key with the given public_key {{public_key}}","NotEnoughBalance":"Sender {{signer_id}} does not have enough balance {{#formatNear}}{{balance}}{{/formatNear}} for operation costing {{#formatNear}}{{cost}}{{/formatNear}}","NotEnoughAllowance":"Access Key {account_id}:{public_key} does not have enough balance {{#formatNear}}{{allowance}}{{/formatNear}} for transaction costing {{#formatNear}}{{cost}}{{/formatNear}}","Expired":"Transaction has expired","DeleteAccountStaking":"Account {{account_id}} is staking and can not be deleted","SignerDoesNotExist":"Signer {{signer_id}} does not exist","TriesToStake":"Account {{account_id}} tried to stake {{#formatNear}}{{stake}}{{/formatNear}}, but has staked {{#formatNear}}{{locked}}{{/formatNear}} and only has {{#formatNear}}{{balance}}{{/formatNear}}","AddKeyAlreadyExists":"The public key {{public_key}} is already used for an existing access key","InvalidSigner":"Invalid signer account ID {{signer_id}} according to requirements","CreateAccountNotAllowed":"The new account_id {{account_id}} can\'t be created by {{predecessor_id}}","RequiresFullAccess":"The transaction contains more then one action, but it was signed with an access key which allows transaction to apply only one specific action. To apply more then one actions TX must be signed with a full access key","TriesToUnstake":"Account {{account_id}} is not yet staked, but tried to unstake","InvalidNonce":"Transaction nonce {{tx_nonce}} must be larger than nonce of the used access key {{ak_nonce}}","AccountAlreadyExists":"Can\'t create a new account {{account_id}}, because it already exists","InvalidChain":"Transaction parent block hash doesn\'t belong to the current chain","AccountDoesNotExist":"Can\'t complete the action because account {{account_id}} doesn\'t exist","MethodNameMismatch":"Transaction method name {{method_name}} isn\'t allowed by the access key","DeleteAccountHasRent":"Account {{account_id}} can\'t be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover the rent","DeleteAccountHasEnoughBalance":"Account {{account_id}} can\'t be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover it\'s storage","InvalidReceiver":"Invalid receiver account ID {{receiver_id}} according to requirements","DeleteKeyDoesNotExist":"Account {{account_id}} tries to remove an access key that doesn\'t exist","Timeout":"Timeout exceeded","Closed":"Connection closed"}')},71217:function(W){"use strict";W.exports=JSON.parse('{"schema":{"BadUTF16":{"name":"BadUTF16","subtypes":[],"props":{}},"BadUTF8":{"name":"BadUTF8","subtypes":[],"props":{}},"BalanceExceeded":{"name":"BalanceExceeded","subtypes":[],"props":{}},"BreakpointTrap":{"name":"BreakpointTrap","subtypes":[],"props":{}},"CacheError":{"name":"CacheError","subtypes":["ReadError","WriteError","DeserializationError","SerializationError"],"props":{}},"CallIndirectOOB":{"name":"CallIndirectOOB","subtypes":[],"props":{}},"CannotAppendActionToJointPromise":{"name":"CannotAppendActionToJointPromise","subtypes":[],"props":{}},"CannotReturnJointPromise":{"name":"CannotReturnJointPromise","subtypes":[],"props":{}},"CodeDoesNotExist":{"name":"CodeDoesNotExist","subtypes":[],"props":{"account_id":""}},"CompilationError":{"name":"CompilationError","subtypes":["CodeDoesNotExist","PrepareError","WasmerCompileError"],"props":{}},"ContractSizeExceeded":{"name":"ContractSizeExceeded","subtypes":[],"props":{"limit":"","size":""}},"Deprecated":{"name":"Deprecated","subtypes":[],"props":{"method_name":""}},"Deserialization":{"name":"Deserialization","subtypes":[],"props":{}},"DeserializationError":{"name":"DeserializationError","subtypes":[],"props":{}},"EmptyMethodName":{"name":"EmptyMethodName","subtypes":[],"props":{}},"FunctionCallError":{"name":"FunctionCallError","subtypes":["CompilationError","LinkError","MethodResolveError","WasmTrap","WasmUnknownError","HostError","EvmError"],"props":{}},"GasExceeded":{"name":"GasExceeded","subtypes":[],"props":{}},"GasInstrumentation":{"name":"GasInstrumentation","subtypes":[],"props":{}},"GasLimitExceeded":{"name":"GasLimitExceeded","subtypes":[],"props":{}},"GenericTrap":{"name":"GenericTrap","subtypes":[],"props":{}},"GuestPanic":{"name":"GuestPanic","subtypes":[],"props":{"panic_msg":""}},"HostError":{"name":"HostError","subtypes":["BadUTF16","BadUTF8","GasExceeded","GasLimitExceeded","BalanceExceeded","EmptyMethodName","GuestPanic","IntegerOverflow","InvalidPromiseIndex","CannotAppendActionToJointPromise","CannotReturnJointPromise","InvalidPromiseResultIndex","InvalidRegisterId","IteratorWasInvalidated","MemoryAccessViolation","InvalidReceiptIndex","InvalidIteratorIndex","InvalidAccountId","InvalidMethodName","InvalidPublicKey","ProhibitedInView","NumberOfLogsExceeded","KeyLengthExceeded","ValueLengthExceeded","TotalLogLengthExceeded","NumberPromisesExceeded","NumberInputDataDependenciesExceeded","ReturnedValueLengthExceeded","ContractSizeExceeded","Deprecated"],"props":{}},"IllegalArithmetic":{"name":"IllegalArithmetic","subtypes":[],"props":{}},"IncorrectCallIndirectSignature":{"name":"IncorrectCallIndirectSignature","subtypes":[],"props":{}},"Instantiate":{"name":"Instantiate","subtypes":[],"props":{}},"IntegerOverflow":{"name":"IntegerOverflow","subtypes":[],"props":{}},"InternalMemoryDeclared":{"name":"InternalMemoryDeclared","subtypes":[],"props":{}},"InvalidAccountId":{"name":"InvalidAccountId","subtypes":[],"props":{"account_id":""}},"InvalidIteratorIndex":{"name":"InvalidIteratorIndex","subtypes":[],"props":{"iterator_index":""}},"InvalidMethodName":{"name":"InvalidMethodName","subtypes":[],"props":{}},"InvalidPromiseIndex":{"name":"InvalidPromiseIndex","subtypes":[],"props":{"promise_idx":""}},"InvalidPromiseResultIndex":{"name":"InvalidPromiseResultIndex","subtypes":[],"props":{"result_idx":""}},"InvalidPublicKey":{"name":"InvalidPublicKey","subtypes":[],"props":{}},"InvalidReceiptIndex":{"name":"InvalidReceiptIndex","subtypes":[],"props":{"receipt_index":""}},"InvalidRegisterId":{"name":"InvalidRegisterId","subtypes":[],"props":{"register_id":""}},"IteratorWasInvalidated":{"name":"IteratorWasInvalidated","subtypes":[],"props":{"iterator_index":""}},"KeyLengthExceeded":{"name":"KeyLengthExceeded","subtypes":[],"props":{"length":"","limit":""}},"LinkError":{"name":"LinkError","subtypes":[],"props":{"msg":""}},"Memory":{"name":"Memory","subtypes":[],"props":{}},"MemoryAccessViolation":{"name":"MemoryAccessViolation","subtypes":[],"props":{}},"MemoryOutOfBounds":{"name":"MemoryOutOfBounds","subtypes":[],"props":{}},"MethodEmptyName":{"name":"MethodEmptyName","subtypes":[],"props":{}},"MethodInvalidSignature":{"name":"MethodInvalidSignature","subtypes":[],"props":{}},"MethodNotFound":{"name":"MethodNotFound","subtypes":[],"props":{}},"MethodResolveError":{"name":"MethodResolveError","subtypes":["MethodEmptyName","MethodUTF8Error","MethodNotFound","MethodInvalidSignature"],"props":{}},"MethodUTF8Error":{"name":"MethodUTF8Error","subtypes":[],"props":{}},"MisalignedAtomicAccess":{"name":"MisalignedAtomicAccess","subtypes":[],"props":{}},"NumberInputDataDependenciesExceeded":{"name":"NumberInputDataDependenciesExceeded","subtypes":[],"props":{"limit":"","number_of_input_data_dependencies":""}},"NumberOfLogsExceeded":{"name":"NumberOfLogsExceeded","subtypes":[],"props":{"limit":""}},"NumberPromisesExceeded":{"name":"NumberPromisesExceeded","subtypes":[],"props":{"limit":"","number_of_promises":""}},"PrepareError":{"name":"PrepareError","subtypes":["Serialization","Deserialization","InternalMemoryDeclared","GasInstrumentation","StackHeightInstrumentation","Instantiate","Memory"],"props":{}},"ProhibitedInView":{"name":"ProhibitedInView","subtypes":[],"props":{"method_name":""}},"ReadError":{"name":"ReadError","subtypes":[],"props":{}},"ReturnedValueLengthExceeded":{"name":"ReturnedValueLengthExceeded","subtypes":[],"props":{"length":"","limit":""}},"Serialization":{"name":"Serialization","subtypes":[],"props":{}},"SerializationError":{"name":"SerializationError","subtypes":[],"props":{"hash":""}},"StackHeightInstrumentation":{"name":"StackHeightInstrumentation","subtypes":[],"props":{}},"StackOverflow":{"name":"StackOverflow","subtypes":[],"props":{}},"TotalLogLengthExceeded":{"name":"TotalLogLengthExceeded","subtypes":[],"props":{"length":"","limit":""}},"Unreachable":{"name":"Unreachable","subtypes":[],"props":{}},"ValueLengthExceeded":{"name":"ValueLengthExceeded","subtypes":[],"props":{"length":"","limit":""}},"WasmTrap":{"name":"WasmTrap","subtypes":["Unreachable","IncorrectCallIndirectSignature","MemoryOutOfBounds","CallIndirectOOB","IllegalArithmetic","MisalignedAtomicAccess","BreakpointTrap","StackOverflow","GenericTrap"],"props":{}},"WasmUnknownError":{"name":"WasmUnknownError","subtypes":[],"props":{}},"WasmerCompileError":{"name":"WasmerCompileError","subtypes":[],"props":{"msg":""}},"WriteError":{"name":"WriteError","subtypes":[],"props":{}},"AccessKeyNotFound":{"name":"AccessKeyNotFound","subtypes":[],"props":{"account_id":"","public_key":""}},"AccountAlreadyExists":{"name":"AccountAlreadyExists","subtypes":[],"props":{"account_id":""}},"AccountDoesNotExist":{"name":"AccountDoesNotExist","subtypes":[],"props":{"account_id":""}},"ActionError":{"name":"ActionError","subtypes":["AccountAlreadyExists","AccountDoesNotExist","CreateAccountOnlyByRegistrar","CreateAccountNotAllowed","ActorNoPermission","DeleteKeyDoesNotExist","AddKeyAlreadyExists","DeleteAccountStaking","LackBalanceForState","TriesToUnstake","TriesToStake","InsufficientStake","FunctionCallError","NewReceiptValidationError","OnlyImplicitAccountCreationAllowed"],"props":{"index":""}},"ActionsValidationError":{"name":"ActionsValidationError","subtypes":["DeleteActionMustBeFinal","TotalPrepaidGasExceeded","TotalNumberOfActionsExceeded","AddKeyMethodNamesNumberOfBytesExceeded","AddKeyMethodNameLengthExceeded","IntegerOverflow","InvalidAccountId","ContractSizeExceeded","FunctionCallMethodNameLengthExceeded","FunctionCallArgumentsLengthExceeded","UnsuitableStakingKey","FunctionCallZeroAttachedGas"],"props":{}},"ActorNoPermission":{"name":"ActorNoPermission","subtypes":[],"props":{"account_id":"","actor_id":""}},"AddKeyAlreadyExists":{"name":"AddKeyAlreadyExists","subtypes":[],"props":{"account_id":"","public_key":""}},"AddKeyMethodNameLengthExceeded":{"name":"AddKeyMethodNameLengthExceeded","subtypes":[],"props":{"length":"","limit":""}},"AddKeyMethodNamesNumberOfBytesExceeded":{"name":"AddKeyMethodNamesNumberOfBytesExceeded","subtypes":[],"props":{"limit":"","total_number_of_bytes":""}},"BalanceMismatchError":{"name":"BalanceMismatchError","subtypes":[],"props":{"final_accounts_balance":"","final_postponed_receipts_balance":"","incoming_receipts_balance":"","incoming_validator_rewards":"","initial_accounts_balance":"","initial_postponed_receipts_balance":"","new_delayed_receipts_balance":"","other_burnt_amount":"","outgoing_receipts_balance":"","processed_delayed_receipts_balance":"","slashed_burnt_amount":"","tx_burnt_amount":""}},"CostOverflow":{"name":"CostOverflow","subtypes":[],"props":{}},"CreateAccountNotAllowed":{"name":"CreateAccountNotAllowed","subtypes":[],"props":{"account_id":"","predecessor_id":""}},"CreateAccountOnlyByRegistrar":{"name":"CreateAccountOnlyByRegistrar","subtypes":[],"props":{"account_id":"","predecessor_id":"","registrar_account_id":""}},"DeleteAccountStaking":{"name":"DeleteAccountStaking","subtypes":[],"props":{"account_id":""}},"DeleteActionMustBeFinal":{"name":"DeleteActionMustBeFinal","subtypes":[],"props":{}},"DeleteKeyDoesNotExist":{"name":"DeleteKeyDoesNotExist","subtypes":[],"props":{"account_id":"","public_key":""}},"DepositWithFunctionCall":{"name":"DepositWithFunctionCall","subtypes":[],"props":{}},"Expired":{"name":"Expired","subtypes":[],"props":{}},"FunctionCallArgumentsLengthExceeded":{"name":"FunctionCallArgumentsLengthExceeded","subtypes":[],"props":{"length":"","limit":""}},"FunctionCallMethodNameLengthExceeded":{"name":"FunctionCallMethodNameLengthExceeded","subtypes":[],"props":{"length":"","limit":""}},"FunctionCallZeroAttachedGas":{"name":"FunctionCallZeroAttachedGas","subtypes":[],"props":{}},"InsufficientStake":{"name":"InsufficientStake","subtypes":[],"props":{"account_id":"","minimum_stake":"","stake":""}},"InvalidAccessKeyError":{"name":"InvalidAccessKeyError","subtypes":["AccessKeyNotFound","ReceiverMismatch","MethodNameMismatch","RequiresFullAccess","NotEnoughAllowance","DepositWithFunctionCall"],"props":{}},"InvalidChain":{"name":"InvalidChain","subtypes":[],"props":{}},"InvalidDataReceiverId":{"name":"InvalidDataReceiverId","subtypes":[],"props":{"account_id":""}},"InvalidNonce":{"name":"InvalidNonce","subtypes":[],"props":{"ak_nonce":"","tx_nonce":""}},"InvalidPredecessorId":{"name":"InvalidPredecessorId","subtypes":[],"props":{"account_id":""}},"InvalidReceiverId":{"name":"InvalidReceiverId","subtypes":[],"props":{"account_id":""}},"InvalidSignature":{"name":"InvalidSignature","subtypes":[],"props":{}},"InvalidSignerId":{"name":"InvalidSignerId","subtypes":[],"props":{"account_id":""}},"InvalidTxError":{"name":"InvalidTxError","subtypes":["InvalidAccessKeyError","InvalidSignerId","SignerDoesNotExist","InvalidNonce","InvalidReceiverId","InvalidSignature","NotEnoughBalance","LackBalanceForState","CostOverflow","InvalidChain","Expired","ActionsValidation"],"props":{}},"LackBalanceForState":{"name":"LackBalanceForState","subtypes":[],"props":{"account_id":"","amount":""}},"MethodNameMismatch":{"name":"MethodNameMismatch","subtypes":[],"props":{"method_name":""}},"NotEnoughAllowance":{"name":"NotEnoughAllowance","subtypes":[],"props":{"account_id":"","allowance":"","cost":"","public_key":""}},"NotEnoughBalance":{"name":"NotEnoughBalance","subtypes":[],"props":{"balance":"","cost":"","signer_id":""}},"OnlyImplicitAccountCreationAllowed":{"name":"OnlyImplicitAccountCreationAllowed","subtypes":[],"props":{"account_id":""}},"ReceiptValidationError":{"name":"ReceiptValidationError","subtypes":["InvalidPredecessorId","InvalidReceiverId","InvalidSignerId","InvalidDataReceiverId","ReturnedValueLengthExceeded","NumberInputDataDependenciesExceeded","ActionsValidation"],"props":{}},"ReceiverMismatch":{"name":"ReceiverMismatch","subtypes":[],"props":{"ak_receiver":"","tx_receiver":""}},"RequiresFullAccess":{"name":"RequiresFullAccess","subtypes":[],"props":{}},"SignerDoesNotExist":{"name":"SignerDoesNotExist","subtypes":[],"props":{"signer_id":""}},"TotalNumberOfActionsExceeded":{"name":"TotalNumberOfActionsExceeded","subtypes":[],"props":{"limit":"","total_number_of_actions":""}},"TotalPrepaidGasExceeded":{"name":"TotalPrepaidGasExceeded","subtypes":[],"props":{"limit":"","total_prepaid_gas":""}},"TriesToStake":{"name":"TriesToStake","subtypes":[],"props":{"account_id":"","balance":"","locked":"","stake":""}},"TriesToUnstake":{"name":"TriesToUnstake","subtypes":[],"props":{"account_id":""}},"TxExecutionError":{"name":"TxExecutionError","subtypes":["ActionError","InvalidTxError"],"props":{}},"UnsuitableStakingKey":{"name":"UnsuitableStakingKey","subtypes":[],"props":{"public_key":""}},"Closed":{"name":"Closed","subtypes":[],"props":{}},"InternalError":{"name":"InternalError","subtypes":[],"props":{}},"ServerError":{"name":"ServerError","subtypes":["TxExecutionError","Timeout","Closed","InternalError"],"props":{}},"Timeout":{"name":"Timeout","subtypes":[],"props":{}}}}')},65655:function(W){"use strict";W.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},56695:function(W){"use strict";W.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},1546:function(W){"use strict";W.exports=JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","306":"(Unused)","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}')}}]);